commit 58507feb1bf42bb966e668beedea1138d3c76635 Author: Llewellyn van der Merwe Date: Mon Nov 30 23:30:54 2015 +0200 first commit diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 00000000..df50810b --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,340 @@ +GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) 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 +this service 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 make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. 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. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute 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 and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +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 +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the 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 a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, 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. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE 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. + + 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 +convey 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 2 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, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision 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, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This 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 Library General +Public License instead of this License. diff --git a/README.md b/README.md new file mode 100644 index 00000000..d2ac6b96 --- /dev/null +++ b/README.md @@ -0,0 +1,59 @@ +# Sermon Distributor (1.2.9) + + ![Sermon Distributor image](https://raw.githubusercontent.com/SermonDistributor/Joomla-3-Component/master/admin/assets/images/component-300.jpg "The Sermon Distributor") + +Distributor is a highly advanced sermon distributor that runs on the [Joomla] (http://www.joomla.org) framework. You can link a shared folder from Dropbox to the component and use Dropbox as your file host, not to mention the advanced auto builder that gives you the ability to simply load sermons to your website by only adding them to Dropbox. + +The best way to see all your options is to install this component on you Joomla website and test all features yourself. Here is a [direct download link] (https://github.com/SermonDistributor/Joomla-3-Component/archive/master.zip) + +### Example Website, That Has Over 6000 Audio Files + +[LoudVoice.org] (http://www.loudvoice.org) + +### Some Video Demonstrations + ++ [Setup overview] (https://youtu.be/yMPp1Cp3W_0?t=20m) ++ [Setup Dropbox] (https://youtu.be/btpKFDk0-dI) ++ [Component Build] (https://youtu.be/yMPp1Cp3W_0) + +# Build Details + ++ *Company*: [Vast Development Method] (https://www.vdm.io/) ++ *Author*: [Llewellyn van der Merwe] (mailto:llewellyn@vdm.io) ++ *Name*: [Sermon Distributor] (https://www.vdm.io/) ++ *Created*: 22nd October, 2015 ++ *Build*: 30th November, 2015 ++ *Version*: 1.2.9 ++ *Copyright*: Copyright (C) 2015. All Rights Reserved ++ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + +## Build Time + +**126 Hours** or **16 Eight Hour Days** (actual time the author saved - +due to [Automated Component Builder] (https://www.vdm.io/joomla-component-builder)) + +> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**, +> never making one mistake or taking any coffee break.) + ++ *Line count*: **45140** ++ *File count*: **347** ++ *Folder count*: **79** + +**83 Hours** or **10 Eight Hour Days** (the actual time the author spent) + +> (with the following break down: +> **debugging @31hours** = codingtime / 4; +> **planning @18hours** = codingtime / 7; +> **mapping @13hours** = codingtime / 10; +> **office @21hours** = codingtime / 6;) + +**209 Hours** or **26 Eight Hour Days** +(a total of the realistic time frame for this project) + +> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**, +> with the normal everyday realities at the office, that includes the component planning, mapping & debugging.) + +Project duration: **5.2 weeks** or **1.1 months** + +> This **component** was build with a Joomla [Automated Component Builder] (https://www.vdm.io/joomla-component-builder). +> Developed by [Llewellyn van der Merwe] (mailto:joomla@vdm.io) \ No newline at end of file diff --git a/admin/access.xml b/admin/access.xml new file mode 100644 index 00000000..58942c86 --- /dev/null +++ b/admin/access.xml @@ -0,0 +1,157 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + +
+
+ + + + + + + + + +
+
+ + + + + + + + + +
+
+ + + + + + + + + +
+
+ + + + + + + +
+
+ + + + + +
+
\ No newline at end of file diff --git a/admin/assets/css/admin.css b/admin/assets/css/admin.css new file mode 100644 index 00000000..b4a572de --- /dev/null +++ b/admin/assets/css/admin.css @@ -0,0 +1,24 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage admin.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ +.no-click { + pointer-events: none; +} + diff --git a/admin/assets/css/dashboard.css b/admin/assets/css/dashboard.css new file mode 100644 index 00000000..20c0d8c2 --- /dev/null +++ b/admin/assets/css/dashboard.css @@ -0,0 +1,172 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage dashboard.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + +.dashboard-container { + margin-left: 10px; + margin-top: 10px; + width: 100%; +} +.dashboard-container [class*="span"] { + display: block; + float: none; + margin-left: 0; + width: auto; +} +.dashboard-container:before, .dashboard-container:after { + content: ""; + display: table; +} +.dashboard-container:after { + clear: both; +} +.dashboard-container [class*="span"] { + box-sizing: border-box; + display: block; + float: left; + min-height: 145px; + min-width: 96px; + width: 100%; +} +.dashboard-container [class*="span"]:first-child { + margin-left: 0; +} +.dashboard-wraper { + background: none repeat scroll 0 0 hsl(0, 0%, 93%); + border-radius: 5px; + float: left; + margin: 1%; + padding: 3px; + width: 17%; + min-height: 194px; + min-width: 96px; +} +.dashboard-content a { + background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0); + border: 1px solid hsl(0, 0%, 85%); + border-radius: 4px; + box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset; + color: hsl(0, 0%, 20%); + display: block; + min-height: 89px; + padding: 10px; + text-align: center; + text-decoration: none; +} +.dashboard-content a:hover { + background: linear-gradient(to bottom, hsl(0, 0%, 90%) 0%, hsl(0, 0%, 100%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0); + color: hsl(200, 100%, 30%); + text-decoration: none; +} +.dashboard-title { + display: block; + padding-top: 5px; +} +.dashboard-info { + background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0); + border: 1px solid hsl(0, 0%, 85%); + border-radius: 4px; + box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset; + color: hsl(0, 0%, 20%); + display: block; + font-size: 12px; + padding: 10px; + text-align: center; +} +.dashboard-info span { + display: block; + text-align: center; +} +.dashboard-info img { + margin: 0 auto; +} +.dashboard-table { + border-top: 1px solid hsl(0, 0%, 87%); + margin-top: 5px; + width: 100%; +} +.dashboard-info h5 { + font-size: 11px; + font-weight: bold; +} +.dashboard-block { + background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%, 86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0); + border: 1px solid hsl(0, 0%, 76%); + border-radius: 3px; + box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset; + margin-bottom: 20px; +} +.dashboard-block .dashboard-block-head { + background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%, 86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0); + border-bottom: 1px solid hsl(0, 0%, 76%); + border-radius: 3px 3px 0 0; + box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset, 0 0 3px hsl(0, 0%, 87%); + height: 40px; + position: relative; +} +.dashboard-block .dashboard-block-head h5 { + font-size: 12px; + margin: 0; + padding-left: 10px; + padding-top: 11px; + text-transform: uppercase; +} +.dashboard-block .dashboard-block-content { + background: none repeat scroll 0 0 hsl(0, 0%, 93%); + border-radius: 0 0 3px 3px; +} +.dashboard-block .dashboard-block-box { + background: none repeat scroll 0 0 hsl(0, 0%, 100%); + border-top: 1px solid hsl(0, 0%, 82%); + box-shadow: 0 0 5px hsl(0, 0%, 87%) inset; +} +.dashboard-block .dashboard-block-content .dashboard-block-box { + margin-top: 0 !important; +} +.dashboard-block .dashboard-block-content .dashboard-block-box .dashboard-block-table { + margin-bottom: 0 !important; +} +.dashboard-block-table { + background-color: hsla(0, 0%, 0%, 0); + border-collapse: collapse; + border-spacing: 0; + margin-bottom: 20px; + max-width: 100%; + width: 100%; +} +.dashboard-block-table th, .dashboard-block-table td { + border-top: 1px solid hsl(0, 0%, 87%); + line-height: 20px; + padding: 5px; + text-align: left; + vertical-align: middle; +} +.dashboard-badge { + background-color: hsl(0, 0%, 60%); + border-radius: 9px; + color: hsl(0, 0%, 100%); + font-size: 11.844px; + font-weight: bold; + line-height: 14px; + padding: 1px 9px 2px; + text-shadow: 0 -1px 0 hsla(0, 0%, 0%, 0.25); + vertical-align: baseline; + white-space: nowrap; +} \ No newline at end of file diff --git a/admin/assets/css/help_document.css b/admin/assets/css/help_document.css new file mode 100644 index 00000000..cd9da6d8 --- /dev/null +++ b/admin/assets/css/help_document.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage help_document.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/css/help_documents.css b/admin/assets/css/help_documents.css new file mode 100644 index 00000000..fde347bd --- /dev/null +++ b/admin/assets/css/help_documents.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage help_documents.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/css/index.html b/admin/assets/css/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/assets/css/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/assets/css/preacher.css b/admin/assets/css/preacher.css new file mode 100644 index 00000000..e1269cc8 --- /dev/null +++ b/admin/assets/css/preacher.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage preacher.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/css/preachers.css b/admin/assets/css/preachers.css new file mode 100644 index 00000000..7fa8f104 --- /dev/null +++ b/admin/assets/css/preachers.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage preachers.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/css/series.css b/admin/assets/css/series.css new file mode 100644 index 00000000..41600fb4 --- /dev/null +++ b/admin/assets/css/series.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage series.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/css/series_list.css b/admin/assets/css/series_list.css new file mode 100644 index 00000000..901fe69b --- /dev/null +++ b/admin/assets/css/series_list.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage series_list.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/css/sermon.css b/admin/assets/css/sermon.css new file mode 100644 index 00000000..8844fbdc --- /dev/null +++ b/admin/assets/css/sermon.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermon.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/css/sermons.css b/admin/assets/css/sermons.css new file mode 100644 index 00000000..cbeb9658 --- /dev/null +++ b/admin/assets/css/sermons.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermons.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/css/statistic.css b/admin/assets/css/statistic.css new file mode 100644 index 00000000..feb2a403 --- /dev/null +++ b/admin/assets/css/statistic.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage statistic.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/css/statistics.css b/admin/assets/css/statistics.css new file mode 100644 index 00000000..9ec0932d --- /dev/null +++ b/admin/assets/css/statistics.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage statistics.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/images/component-300.jpg b/admin/assets/images/component-300.jpg new file mode 100644 index 00000000..046a172f Binary files /dev/null and b/admin/assets/images/component-300.jpg differ diff --git a/admin/assets/images/icons/help_documents.png b/admin/assets/images/icons/help_documents.png new file mode 100644 index 00000000..bdf2b46b Binary files /dev/null and b/admin/assets/images/icons/help_documents.png differ diff --git a/admin/assets/images/icons/index.html b/admin/assets/images/icons/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/assets/images/icons/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/assets/images/icons/preacher_add.png b/admin/assets/images/icons/preacher_add.png new file mode 100644 index 00000000..e0167752 Binary files /dev/null and b/admin/assets/images/icons/preacher_add.png differ diff --git a/admin/assets/images/icons/preachers.png b/admin/assets/images/icons/preachers.png new file mode 100644 index 00000000..2bcb2c41 Binary files /dev/null and b/admin/assets/images/icons/preachers.png differ diff --git a/admin/assets/images/icons/series_add.png b/admin/assets/images/icons/series_add.png new file mode 100644 index 00000000..5872e92a Binary files /dev/null and b/admin/assets/images/icons/series_add.png differ diff --git a/admin/assets/images/icons/series_list.png b/admin/assets/images/icons/series_list.png new file mode 100644 index 00000000..32d7a055 Binary files /dev/null and b/admin/assets/images/icons/series_list.png differ diff --git a/admin/assets/images/icons/sermon_add.png b/admin/assets/images/icons/sermon_add.png new file mode 100644 index 00000000..6b9aa74b Binary files /dev/null and b/admin/assets/images/icons/sermon_add.png differ diff --git a/admin/assets/images/icons/sermons.png b/admin/assets/images/icons/sermons.png new file mode 100644 index 00000000..174458dd Binary files /dev/null and b/admin/assets/images/icons/sermons.png differ diff --git a/admin/assets/images/icons/sermons_catid.png b/admin/assets/images/icons/sermons_catid.png new file mode 100644 index 00000000..0c68a1e3 Binary files /dev/null and b/admin/assets/images/icons/sermons_catid.png differ diff --git a/admin/assets/images/icons/statistics.png b/admin/assets/images/icons/statistics.png new file mode 100644 index 00000000..a3790e9c Binary files /dev/null and b/admin/assets/images/icons/statistics.png differ diff --git a/admin/assets/images/import.gif b/admin/assets/images/import.gif new file mode 100644 index 00000000..4371cc61 Binary files /dev/null and b/admin/assets/images/import.gif differ diff --git a/admin/assets/images/index.html b/admin/assets/images/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/assets/images/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/assets/index.html b/admin/assets/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/assets/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/assets/js/admin.js b/admin/assets/js/admin.js new file mode 100644 index 00000000..e69de29b diff --git a/admin/assets/js/index.html b/admin/assets/js/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/assets/js/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/config.xml b/admin/config.xml new file mode 100644 index 00000000..cbd05fe3 --- /dev/null +++ b/admin/config.xml @@ -0,0 +1,2286 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + " + " + " + " + + + + " + " + + + + " + " + " + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
\ No newline at end of file diff --git a/admin/controller.php b/admin/controller.php new file mode 100644 index 00000000..8ebaf218 --- /dev/null +++ b/admin/controller.php @@ -0,0 +1,105 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controller library +jimport('joomla.application.component.controller'); + +/** + * General Controller of Sermondistributor component + */ +class SermondistributorController extends JControllerLegacy +{ + /** + * display task + * + * @return void + */ + function display($cachable = false, $urlparams = false) + { + // set default view if not set + $view = $this->input->getCmd('view', 'Sermondistributor'); + $data = $this->getViewRelation($view); + $layout = $this->input->get('layout', null, 'WORD'); + $id = $this->input->getInt('id'); + + // Check for edit form. + if(SermondistributorHelper::checkArray($data)) + { + if ($data['edit'] && $layout == 'edit' && !$this->checkEditId('com_sermondistributor.edit.'.$data['view'], $id)) + { + // Somehow the person just went to the form - we don't allow that. + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id)); + $this->setMessage($this->getError(), 'error'); + // check if item was opend from other then its own list view + $ref = $this->input->getCmd('ref', 0); + $refid = $this->input->getInt('refid', 0); + // set redirect + if ($refid > 0 && SermondistributorHelper::checkString($ref)) + { + // redirect to item of ref + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view='.(string)$ref.'&layout=edit&id='.(int)$refid, false)); + } + elseif (SermondistributorHelper::checkString($ref)) + { + + // redirect to ref + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view='.(string)$ref, false)); + } + else + { + // normal redirect back to the list view + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view='.$data['views'], false)); + } + + return false; + } + } + + return parent::display($cachable, $urlparams); + } + + protected function getViewRelation($view) + { + if (SermondistributorHelper::checkString($view)) + { + $views = array( + 'preacher' => 'preachers', + 'sermon' => 'sermons', + 'series' => 'series_list', + 'statistic' => 'statistics', + 'help_document' => 'help_documents' + ); + // check if this is a list view + if (in_array($view,$views)) + { + return array('edit' => false, 'view' => array_search($view,$views), 'views' => $view); + } + // check if it is an edit view + elseif (array_key_exists($view,$views)) + { + return array('edit' => true, 'view' => $view, 'views' => $views[$view]); + } + } + return false; + } +} diff --git a/admin/controllers/ajax.json.php b/admin/controllers/ajax.json.php new file mode 100644 index 00000000..01009fc1 --- /dev/null +++ b/admin/controllers/ajax.json.php @@ -0,0 +1,170 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controllerform library +jimport('joomla.application.component.controller'); + +/** + * Sermondistributor Ajax Controller + */ +class SermondistributorControllerAjax extends JControllerLegacy +{ + public function __construct($config) + { + parent::__construct($config); + // make sure all json stuff are set + JFactory::getDocument()->setMimeEncoding( 'application/json' ); + JResponse::setHeader('Content-Disposition','attachment;filename="getajax.json"'); + JResponse::setHeader("Access-Control-Allow-Origin", "*"); + // load the tasks + $this->registerTask('checkDropboxListing', 'ajax'); + $this->registerTask('updateDropboxListing', 'ajax'); + $this->registerTask('getUpdateProgress', 'ajax'); + } + + public function ajax() + { + $user = JFactory::getUser(); + $jinput = JFactory::getApplication()->input; + // Check Token! + $token = JSession::getFormToken(); + $call_token = $jinput->get('token', 0, 'ALNUM'); + if($token == $call_token) + { + $task = $this->getTask(); + switch($task) + { + case 'checkDropboxListing': + try + { + $viewValue = $jinput->get('view', NULL, 'INT'); + if($viewValue && $user->id != 0) + { + $result = $this->getModel('ajax')->dropbox($viewValue); + } + else + { + $result = false; + } + if(array_key_exists('callback',$_GET)) + { + echo $_GET['callback'] . "(".json_encode($result).");"; + } + else + { + echo "(".json_encode($result).");"; + } + } + catch(Exception $e) + { + if(array_key_exists('callback',$_GET)) + { + echo $_GET['callback']."(".json_encode($e).");"; + } + else + { + echo "(".json_encode($e).");"; + } + } + break; + case 'updateDropboxListing': + try + { + $typeValue = $jinput->get('type', NULL, 'INT'); + if($typeValue && $user->id != 0) + { + $result = $this->getModel('ajax')->updateDropbox($typeValue); + } + else + { + $result = false; + } + if(array_key_exists('callback',$_GET)) + { + echo $_GET['callback'] . "(".json_encode($result).");"; + } + else + { + echo "(".json_encode($result).");"; + } + } + catch(Exception $e) + { + if(array_key_exists('callback',$_GET)) + { + echo $_GET['callback']."(".json_encode($e).");"; + } + else + { + echo "(".json_encode($e).");"; + } + } + break; + case 'getUpdateProgress': + try + { + $typeValue = $jinput->get('type', NULL, 'INT'); + if($typeValue && $user->id != 0) + { + $result = $this->getModel('ajax')->updateProgress($typeValue); + } + else + { + $result = false; + } + if(array_key_exists('callback',$_GET)) + { + echo $_GET['callback'] . "(".json_encode($result).");"; + } + else + { + echo "(".json_encode($result).");"; + } + } + catch(Exception $e) + { + if(array_key_exists('callback',$_GET)) + { + echo $_GET['callback']."(".json_encode($e).");"; + } + else + { + echo "(".json_encode($e).");"; + } + } + break; + } + } + else + { + if(array_key_exists('callback',$_GET)) + { + echo $_GET['callback']."(".json_encode(false).");"; + } + else + { + echo "(".json_encode(false).");"; + } + } + } +} diff --git a/admin/controllers/help.php b/admin/controllers/help.php new file mode 100644 index 00000000..45486a6e --- /dev/null +++ b/admin/controllers/help.php @@ -0,0 +1,124 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controllerform library +jimport('joomla.application.component.controller'); + +/** + * Sermondistributor Help Controller + */ +class SermondistributorControllerHelp extends JControllerLegacy +{ + public function __construct($config) + { + parent::__construct($config); + // load the tasks + $this->registerTask('getText', 'help'); + } + + public function help() + { + $user = JFactory::getUser(); + $jinput = JFactory::getApplication()->input; + // Check Token! + $token = JSession::getFormToken(); + $call_token = $jinput->get('token', 0, 'ALNUM'); + if($user->id != 0 && $token == $call_token){ + $task = $this->getTask(); + switch($task){ + case 'getText': + try + { + $idValue = $jinput->get('id', 0, 'INT'); + if($idValue) + { + $result = $this->getHelpDocumentText($idValue); + } + else + { + $result = ''; + } + echo $result; + // stop execution gracefully + jexit(); + } + catch(Exception $e) + { + // stop execution gracefully + jexit(); + } + break; + } + } + else + { + // stop execution gracefully + jexit(); + } + } + + protected function getHelpDocumentText($id) + { + $db = JFactory::getDbo(); + $query = $db->getQuery(true); + $query->select(array('a.title','a.content')); + $query->from('#__sermondistributor_help_document AS a'); + $query->where('a.id = '.(int) $id); + $query->where('a.published = 1'); + $db->setQuery($query); + $db->execute(); + if($db->getNumRows()) + { + $text = array(); + $document = $db->loadObject(); + // fix image issue + $images['src="images'] = 'src="'.JURI::root().'images'; + $images["src='images"] = "src='".JURI::root()."images"; + $images['src="/images'] = 'src="'.JURI::root().'images'; + $images["src='/images"] = "src='".JURI::root()."images"; + // set document template + $text[] = ""; + $text[] = ''; + $text[] = ""; + $text[] = ''; + $text[] = "".$document->title.""; + $text[] = ''; + $text[] = ''; + $text[] = ""; + $text[] = '
'; + $text[] = '
'; + $text[] = '
'; + // build the help text + $text[] = '

'.$document->title."

"; + $text[] = str_replace(array_keys($images),array_values($images),$document->content); + // end template + $text[] = '
'; + $text[] = '
'; + $text[] = ""; + $text[] = ""; + + return implode("\n",$text); + } + return false; + } +} diff --git a/admin/controllers/help_document.php b/admin/controllers/help_document.php new file mode 100644 index 00000000..ca8d1392 --- /dev/null +++ b/admin/controllers/help_document.php @@ -0,0 +1,321 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controllerform library +jimport('joomla.application.component.controllerform'); + +/** + * Help_document Controller + */ +class SermondistributorControllerHelp_document extends JControllerForm +{ + /** + * Current or most recently performed task. + * + * @var string + * @since 12.2 + * @note Replaces _task. + */ + protected $task; + + public function __construct($config = array()) + { + $this->view_list = 'Help_documents'; // safeguard for setting the return view listing to the main view. + parent::__construct($config); + } + + /** + * Method override to check if you can add a new record. + * + * @param array $data An array of input data. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowAdd($data = array()) + { + // [9285] Access check. + $access = JFactory::getUser()->authorise('help_document.access', 'com_sermondistributor'); + if (!$access) + { + return false; + } + // [9296] In the absense of better information, revert to the component permissions. + return JFactory::getUser()->authorise('help_document.create', $this->option); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // [9439] get user object. + $user = JFactory::getUser(); + // [9441] get record id. + $recordId = (int) isset($data[$key]) ? $data[$key] : 0; + + + // [9448] Access check. + $access = ($user->authorise('help_document.access', 'com_sermondistributor.help_document.' . (int) $recordId) && $user->authorise('help_document.access', 'com_sermondistributor')); + if (!$access) + { + return false; + } + + if ($recordId) + { + // [9457] The record has been set. Check the record permissions. + $permission = $user->authorise('help_document.edit', 'com_sermondistributor.help_document.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + if ($user->authorise('help_document.edit.own', 'com_sermondistributor.help_document.' . $recordId)) + { + // [9479] Now test the owner is the user. + $ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0; + if (empty($ownerId)) + { + // [9483] Need to do a lookup from the model. + $record = $this->getModel()->getItem($recordId); + + if (empty($record)) + { + return false; + } + $ownerId = $record->created_by; + } + + // [9491] If the owner matches 'me' then allow. + if ($ownerId == $user->id) + { + if ($user->authorise('help_document.edit.own', 'com_sermondistributor')) + { + return true; + } + } + } + return false; + } + } + // [9513] Since there is no permission, revert to the component permissions. + return $user->authorise('help_document.edit', $this->option); + } + + /** + * Gets the URL arguments to append to an item redirect. + * + * @param integer $recordId The primary key id for the item. + * @param string $urlVar The name of the URL variable for the id. + * + * @return string The arguments to append to the redirect URL. + * + * @since 12.2 + */ + protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') + { + $tmpl = $this->input->get('tmpl'); + $layout = $this->input->get('layout', 'edit', 'string'); + + $ref = $this->input->get('ref', 0, 'string'); + $refid = $this->input->get('refid', 0, 'int'); + + // Setup redirect info. + + $append = ''; + + if ($refid) + { + $append .= '&ref='.(string)$ref.'&refid='.(int)$refid; + } + elseif ($ref) + { + $append .= '&ref='.(string)$ref; + } + + if ($tmpl) + { + $append .= '&tmpl=' . $tmpl; + } + + if ($layout) + { + $append .= '&layout=' . $layout; + } + + if ($recordId) + { + $append .= '&' . $urlVar . '=' . $recordId; + } + + return $append; + } + + /** + * Method to run batch operations. + * + * @param object $model The model. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 2.5 + */ + public function batch($model = null) + { + JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); + + // Set the model + $model = $this->getModel('Help_document', '', array()); + + // Preset the redirect + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=help_documents' . $this->getRedirectToListAppend(), false)); + + return parent::batch($model); + } + + /** + * Method to cancel an edit. + * + * @param string $key The name of the primary key of the URL variable. + * + * @return boolean True if access level checks pass, false otherwise. + * + * @since 12.2 + */ + public function cancel($key = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + $cancel = parent::cancel($key); + + if ($cancel) + { + if ($this->refid) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + } + else + { + // Redirect to the items screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . '&view=' . $this->view_list, false + ) + ); + } + return $cancel; + } + + /** + * Method to save a record. + * + * @param string $key The name of the primary key of the URL variable. + * @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). + * + * @return boolean True if successful, false otherwise. + * + * @since 12.2 + */ + public function save($key = null, $urlVar = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + if ($this->ref || $this->refid) + { + // to make sure the item is checkedin on redirect + $this->task = 'save'; + } + + $saved = parent::save($key, $urlVar); + + if ($this->refid && $saved) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref && $saved) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + return $saved; + } + + /** + * Function that allows child controller access to model data + * after the data has been saved. + * + * @param JModel &$model The data model object. + * @param array $validData The validated data. + * + * @return void + * + * @since 11.1 + */ + protected function postSaveHook(JModelLegacy &$model, $validData = array()) + { + return; + } + +} diff --git a/admin/controllers/help_documents.php b/admin/controllers/help_documents.php new file mode 100644 index 00000000..049233e6 --- /dev/null +++ b/admin/controllers/help_documents.php @@ -0,0 +1,106 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controlleradmin library +jimport('joomla.application.component.controlleradmin'); + +/** + * Help_documents Controller + */ +class SermondistributorControllerHelp_documents extends JControllerAdmin +{ + protected $text_prefix = 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS'; + /** + * Proxy for getModel. + * @since 2.5 + */ + public function getModel($name = 'Help_document', $prefix = 'SermondistributorModel', $config = array()) + { + $model = parent::getModel($name, $prefix, array('ignore_request' => true)); + + return $model; + } + + public function exportData() + { + // [7235] Check for request forgeries + JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); + // [7237] check if export is allowed for this user. + $user = JFactory::getUser(); + if ($user->authorise('help_document.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor')) + { + // [7241] Get the input + $input = JFactory::getApplication()->input; + $pks = $input->post->get('cid', array(), 'array'); + // [7244] Sanitize the input + JArrayHelper::toInteger($pks); + // [7246] Get the model + $model = $this->getModel('Help_documents'); + // [7248] get the data to export + $data = $model->getExportData($pks); + if (SermondistributorHelper::checkArray($data)) + { + // [7252] now set the data to the spreadsheet + $date = JFactory::getDate(); + SermondistributorHelper::xls($data,'Help_documents_'.$date->format('jS_F_Y'),'Help documents exported ('.$date->format('jS F, Y').')','help documents'); + } + } + // [7257] Redirect to the list screen with error. + $message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED'); + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=help_documents', false), $message, 'error'); + return; + } + + + public function importData() + { + // [7266] Check for request forgeries + JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); + // [7268] check if import is allowed for this user. + $user = JFactory::getUser(); + if ($user->authorise('help_document.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor')) + { + // [7272] Get the import model + $model = $this->getModel('Help_documents'); + // [7274] get the headers to import + $headers = $model->getExImPortHeaders(); + if (SermondistributorHelper::checkObject($headers)) + { + // [7278] Load headers to session. + $session = JFactory::getSession(); + $headers = json_encode($headers); + $session->set('help_document_VDM_IMPORTHEADERS', $headers); + $session->set('backto_VDM_IMPORT', 'help_documents'); + $session->set('dataType_VDM_IMPORTINTO', 'help_document'); + // [7284] Redirect to import view. + $message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_HELP_DOCUMENTS'); + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message); + return; + } + } + // [7296] Redirect to the list screen with error. + $message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED'); + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=help_documents', false), $message, 'error'); + return; + } +} diff --git a/admin/controllers/import.php b/admin/controllers/import.php new file mode 100644 index 00000000..1805c447 --- /dev/null +++ b/admin/controllers/import.php @@ -0,0 +1,62 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Sermondistributor Import Controller + */ +class SermondistributorControllerImport extends JControllerLegacy +{ + /** + * Import an spreadsheet. + * + * @return void + */ + public function import() + { + // Check for request forgeries + JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); + + $model = $this->getModel('import'); + if ($model->import()) + { + $cache = JFactory::getCache('mod_menu'); + $cache->clean(); + // TODO: Reset the users acl here as well to kill off any missing bits + } + + $app = JFactory::getApplication(); + $redirect_url = $app->getUserState('com_sermondistributor.redirect_url'); + if (empty($redirect_url)) + { + $redirect_url = JRoute::_('index.php?option=com_sermondistributor&view=import', false); + } + else + { + // wipe out the user state when we're going to redirect + $app->setUserState('com_sermondistributor.redirect_url', ''); + $app->setUserState('com_sermondistributor.message', ''); + $app->setUserState('com_sermondistributor.extension_message', ''); + } + $this->setRedirect($redirect_url); + } +} diff --git a/admin/controllers/index.html b/admin/controllers/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/controllers/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/controllers/preacher.php b/admin/controllers/preacher.php new file mode 100644 index 00000000..6be1e516 --- /dev/null +++ b/admin/controllers/preacher.php @@ -0,0 +1,321 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controllerform library +jimport('joomla.application.component.controllerform'); + +/** + * Preacher Controller + */ +class SermondistributorControllerPreacher extends JControllerForm +{ + /** + * Current or most recently performed task. + * + * @var string + * @since 12.2 + * @note Replaces _task. + */ + protected $task; + + public function __construct($config = array()) + { + $this->view_list = 'Preachers'; // safeguard for setting the return view listing to the main view. + parent::__construct($config); + } + + /** + * Method override to check if you can add a new record. + * + * @param array $data An array of input data. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowAdd($data = array()) + { + // [9285] Access check. + $access = JFactory::getUser()->authorise('preacher.access', 'com_sermondistributor'); + if (!$access) + { + return false; + } + // [9296] In the absense of better information, revert to the component permissions. + return JFactory::getUser()->authorise('preacher.create', $this->option); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // [9439] get user object. + $user = JFactory::getUser(); + // [9441] get record id. + $recordId = (int) isset($data[$key]) ? $data[$key] : 0; + + + // [9448] Access check. + $access = ($user->authorise('preacher.access', 'com_sermondistributor.preacher.' . (int) $recordId) && $user->authorise('preacher.access', 'com_sermondistributor')); + if (!$access) + { + return false; + } + + if ($recordId) + { + // [9457] The record has been set. Check the record permissions. + $permission = $user->authorise('preacher.edit', 'com_sermondistributor.preacher.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + if ($user->authorise('preacher.edit.own', 'com_sermondistributor.preacher.' . $recordId)) + { + // [9479] Now test the owner is the user. + $ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0; + if (empty($ownerId)) + { + // [9483] Need to do a lookup from the model. + $record = $this->getModel()->getItem($recordId); + + if (empty($record)) + { + return false; + } + $ownerId = $record->created_by; + } + + // [9491] If the owner matches 'me' then allow. + if ($ownerId == $user->id) + { + if ($user->authorise('preacher.edit.own', 'com_sermondistributor')) + { + return true; + } + } + } + return false; + } + } + // [9513] Since there is no permission, revert to the component permissions. + return $user->authorise('preacher.edit', $this->option); + } + + /** + * Gets the URL arguments to append to an item redirect. + * + * @param integer $recordId The primary key id for the item. + * @param string $urlVar The name of the URL variable for the id. + * + * @return string The arguments to append to the redirect URL. + * + * @since 12.2 + */ + protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') + { + $tmpl = $this->input->get('tmpl'); + $layout = $this->input->get('layout', 'edit', 'string'); + + $ref = $this->input->get('ref', 0, 'string'); + $refid = $this->input->get('refid', 0, 'int'); + + // Setup redirect info. + + $append = ''; + + if ($refid) + { + $append .= '&ref='.(string)$ref.'&refid='.(int)$refid; + } + elseif ($ref) + { + $append .= '&ref='.(string)$ref; + } + + if ($tmpl) + { + $append .= '&tmpl=' . $tmpl; + } + + if ($layout) + { + $append .= '&layout=' . $layout; + } + + if ($recordId) + { + $append .= '&' . $urlVar . '=' . $recordId; + } + + return $append; + } + + /** + * Method to run batch operations. + * + * @param object $model The model. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 2.5 + */ + public function batch($model = null) + { + JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); + + // Set the model + $model = $this->getModel('Preacher', '', array()); + + // Preset the redirect + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers' . $this->getRedirectToListAppend(), false)); + + return parent::batch($model); + } + + /** + * Method to cancel an edit. + * + * @param string $key The name of the primary key of the URL variable. + * + * @return boolean True if access level checks pass, false otherwise. + * + * @since 12.2 + */ + public function cancel($key = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + $cancel = parent::cancel($key); + + if ($cancel) + { + if ($this->refid) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + } + else + { + // Redirect to the items screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . '&view=' . $this->view_list, false + ) + ); + } + return $cancel; + } + + /** + * Method to save a record. + * + * @param string $key The name of the primary key of the URL variable. + * @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). + * + * @return boolean True if successful, false otherwise. + * + * @since 12.2 + */ + public function save($key = null, $urlVar = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + if ($this->ref || $this->refid) + { + // to make sure the item is checkedin on redirect + $this->task = 'save'; + } + + $saved = parent::save($key, $urlVar); + + if ($this->refid && $saved) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref && $saved) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + return $saved; + } + + /** + * Function that allows child controller access to model data + * after the data has been saved. + * + * @param JModel &$model The data model object. + * @param array $validData The validated data. + * + * @return void + * + * @since 11.1 + */ + protected function postSaveHook(JModelLegacy &$model, $validData = array()) + { + return; + } + +} diff --git a/admin/controllers/preachers.php b/admin/controllers/preachers.php new file mode 100644 index 00000000..b68b6b18 --- /dev/null +++ b/admin/controllers/preachers.php @@ -0,0 +1,106 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controlleradmin library +jimport('joomla.application.component.controlleradmin'); + +/** + * Preachers Controller + */ +class SermondistributorControllerPreachers extends JControllerAdmin +{ + protected $text_prefix = 'COM_SERMONDISTRIBUTOR_PREACHERS'; + /** + * Proxy for getModel. + * @since 2.5 + */ + public function getModel($name = 'Preacher', $prefix = 'SermondistributorModel', $config = array()) + { + $model = parent::getModel($name, $prefix, array('ignore_request' => true)); + + return $model; + } + + public function exportData() + { + // [7235] Check for request forgeries + JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); + // [7237] check if export is allowed for this user. + $user = JFactory::getUser(); + if ($user->authorise('preacher.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor')) + { + // [7241] Get the input + $input = JFactory::getApplication()->input; + $pks = $input->post->get('cid', array(), 'array'); + // [7244] Sanitize the input + JArrayHelper::toInteger($pks); + // [7246] Get the model + $model = $this->getModel('Preachers'); + // [7248] get the data to export + $data = $model->getExportData($pks); + if (SermondistributorHelper::checkArray($data)) + { + // [7252] now set the data to the spreadsheet + $date = JFactory::getDate(); + SermondistributorHelper::xls($data,'Preachers_'.$date->format('jS_F_Y'),'Preachers exported ('.$date->format('jS F, Y').')','preachers'); + } + } + // [7257] Redirect to the list screen with error. + $message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED'); + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers', false), $message, 'error'); + return; + } + + + public function importData() + { + // [7266] Check for request forgeries + JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); + // [7268] check if import is allowed for this user. + $user = JFactory::getUser(); + if ($user->authorise('preacher.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor')) + { + // [7272] Get the import model + $model = $this->getModel('Preachers'); + // [7274] get the headers to import + $headers = $model->getExImPortHeaders(); + if (SermondistributorHelper::checkObject($headers)) + { + // [7278] Load headers to session. + $session = JFactory::getSession(); + $headers = json_encode($headers); + $session->set('preacher_VDM_IMPORTHEADERS', $headers); + $session->set('backto_VDM_IMPORT', 'preachers'); + $session->set('dataType_VDM_IMPORTINTO', 'preacher'); + // [7284] Redirect to import view. + $message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_PREACHERS'); + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message); + return; + } + } + // [7296] Redirect to the list screen with error. + $message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED'); + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers', false), $message, 'error'); + return; + } +} diff --git a/admin/controllers/series.php b/admin/controllers/series.php new file mode 100644 index 00000000..90cfa608 --- /dev/null +++ b/admin/controllers/series.php @@ -0,0 +1,321 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controllerform library +jimport('joomla.application.component.controllerform'); + +/** + * Series Controller + */ +class SermondistributorControllerSeries extends JControllerForm +{ + /** + * Current or most recently performed task. + * + * @var string + * @since 12.2 + * @note Replaces _task. + */ + protected $task; + + public function __construct($config = array()) + { + $this->view_list = 'Series_list'; // safeguard for setting the return view listing to the main view. + parent::__construct($config); + } + + /** + * Method override to check if you can add a new record. + * + * @param array $data An array of input data. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowAdd($data = array()) + { + // [9285] Access check. + $access = JFactory::getUser()->authorise('series.access', 'com_sermondistributor'); + if (!$access) + { + return false; + } + // [9296] In the absense of better information, revert to the component permissions. + return JFactory::getUser()->authorise('series.create', $this->option); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // [9439] get user object. + $user = JFactory::getUser(); + // [9441] get record id. + $recordId = (int) isset($data[$key]) ? $data[$key] : 0; + + + // [9448] Access check. + $access = ($user->authorise('series.access', 'com_sermondistributor.series.' . (int) $recordId) && $user->authorise('series.access', 'com_sermondistributor')); + if (!$access) + { + return false; + } + + if ($recordId) + { + // [9457] The record has been set. Check the record permissions. + $permission = $user->authorise('series.edit', 'com_sermondistributor.series.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + if ($user->authorise('series.edit.own', 'com_sermondistributor.series.' . $recordId)) + { + // [9479] Now test the owner is the user. + $ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0; + if (empty($ownerId)) + { + // [9483] Need to do a lookup from the model. + $record = $this->getModel()->getItem($recordId); + + if (empty($record)) + { + return false; + } + $ownerId = $record->created_by; + } + + // [9491] If the owner matches 'me' then allow. + if ($ownerId == $user->id) + { + if ($user->authorise('series.edit.own', 'com_sermondistributor')) + { + return true; + } + } + } + return false; + } + } + // [9513] Since there is no permission, revert to the component permissions. + return $user->authorise('series.edit', $this->option); + } + + /** + * Gets the URL arguments to append to an item redirect. + * + * @param integer $recordId The primary key id for the item. + * @param string $urlVar The name of the URL variable for the id. + * + * @return string The arguments to append to the redirect URL. + * + * @since 12.2 + */ + protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') + { + $tmpl = $this->input->get('tmpl'); + $layout = $this->input->get('layout', 'edit', 'string'); + + $ref = $this->input->get('ref', 0, 'string'); + $refid = $this->input->get('refid', 0, 'int'); + + // Setup redirect info. + + $append = ''; + + if ($refid) + { + $append .= '&ref='.(string)$ref.'&refid='.(int)$refid; + } + elseif ($ref) + { + $append .= '&ref='.(string)$ref; + } + + if ($tmpl) + { + $append .= '&tmpl=' . $tmpl; + } + + if ($layout) + { + $append .= '&layout=' . $layout; + } + + if ($recordId) + { + $append .= '&' . $urlVar . '=' . $recordId; + } + + return $append; + } + + /** + * Method to run batch operations. + * + * @param object $model The model. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 2.5 + */ + public function batch($model = null) + { + JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); + + // Set the model + $model = $this->getModel('Series', '', array()); + + // Preset the redirect + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=series_list' . $this->getRedirectToListAppend(), false)); + + return parent::batch($model); + } + + /** + * Method to cancel an edit. + * + * @param string $key The name of the primary key of the URL variable. + * + * @return boolean True if access level checks pass, false otherwise. + * + * @since 12.2 + */ + public function cancel($key = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + $cancel = parent::cancel($key); + + if ($cancel) + { + if ($this->refid) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + } + else + { + // Redirect to the items screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . '&view=' . $this->view_list, false + ) + ); + } + return $cancel; + } + + /** + * Method to save a record. + * + * @param string $key The name of the primary key of the URL variable. + * @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). + * + * @return boolean True if successful, false otherwise. + * + * @since 12.2 + */ + public function save($key = null, $urlVar = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + if ($this->ref || $this->refid) + { + // to make sure the item is checkedin on redirect + $this->task = 'save'; + } + + $saved = parent::save($key, $urlVar); + + if ($this->refid && $saved) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref && $saved) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + return $saved; + } + + /** + * Function that allows child controller access to model data + * after the data has been saved. + * + * @param JModel &$model The data model object. + * @param array $validData The validated data. + * + * @return void + * + * @since 11.1 + */ + protected function postSaveHook(JModelLegacy &$model, $validData = array()) + { + return; + } + +} diff --git a/admin/controllers/series_list.php b/admin/controllers/series_list.php new file mode 100644 index 00000000..266a0235 --- /dev/null +++ b/admin/controllers/series_list.php @@ -0,0 +1,106 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controlleradmin library +jimport('joomla.application.component.controlleradmin'); + +/** + * Series_list Controller + */ +class SermondistributorControllerSeries_list extends JControllerAdmin +{ + protected $text_prefix = 'COM_SERMONDISTRIBUTOR_SERIES_LIST'; + /** + * Proxy for getModel. + * @since 2.5 + */ + public function getModel($name = 'Series', $prefix = 'SermondistributorModel', $config = array()) + { + $model = parent::getModel($name, $prefix, array('ignore_request' => true)); + + return $model; + } + + public function exportData() + { + // [7235] Check for request forgeries + JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); + // [7237] check if export is allowed for this user. + $user = JFactory::getUser(); + if ($user->authorise('series.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor')) + { + // [7241] Get the input + $input = JFactory::getApplication()->input; + $pks = $input->post->get('cid', array(), 'array'); + // [7244] Sanitize the input + JArrayHelper::toInteger($pks); + // [7246] Get the model + $model = $this->getModel('Series_list'); + // [7248] get the data to export + $data = $model->getExportData($pks); + if (SermondistributorHelper::checkArray($data)) + { + // [7252] now set the data to the spreadsheet + $date = JFactory::getDate(); + SermondistributorHelper::xls($data,'Series_list_'.$date->format('jS_F_Y'),'Series list exported ('.$date->format('jS F, Y').')','series list'); + } + } + // [7257] Redirect to the list screen with error. + $message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED'); + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=series_list', false), $message, 'error'); + return; + } + + + public function importData() + { + // [7266] Check for request forgeries + JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); + // [7268] check if import is allowed for this user. + $user = JFactory::getUser(); + if ($user->authorise('series.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor')) + { + // [7272] Get the import model + $model = $this->getModel('Series_list'); + // [7274] get the headers to import + $headers = $model->getExImPortHeaders(); + if (SermondistributorHelper::checkObject($headers)) + { + // [7278] Load headers to session. + $session = JFactory::getSession(); + $headers = json_encode($headers); + $session->set('series_VDM_IMPORTHEADERS', $headers); + $session->set('backto_VDM_IMPORT', 'series_list'); + $session->set('dataType_VDM_IMPORTINTO', 'series'); + // [7284] Redirect to import view. + $message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_SERIES_LIST'); + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message); + return; + } + } + // [7296] Redirect to the list screen with error. + $message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED'); + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=series_list', false), $message, 'error'); + return; + } +} diff --git a/admin/controllers/sermon.php b/admin/controllers/sermon.php new file mode 100644 index 00000000..9d7c450b --- /dev/null +++ b/admin/controllers/sermon.php @@ -0,0 +1,351 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controllerform library +jimport('joomla.application.component.controllerform'); + +/** + * Sermon Controller + */ +class SermondistributorControllerSermon extends JControllerForm +{ + /** + * Current or most recently performed task. + * + * @var string + * @since 12.2 + * @note Replaces _task. + */ + protected $task; + + public function __construct($config = array()) + { + $this->view_list = 'Sermons'; // safeguard for setting the return view listing to the main view. + parent::__construct($config); + } + + /** + * Method override to check if you can add a new record. + * + * @param array $data An array of input data. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowAdd($data = array()) + { + // [9240] get the user object + $user = JFactory::getUser(); + + // [9245] Access check. + $access = $user->authorise('sermon.access', 'com_sermondistributor'); + if (!$access) + { + return false; + } + $categoryId = JArrayHelper::getValue($data, 'catid', $this->input->getInt('filter_category_id'), 'int'); + $allow = null; + + if ($categoryId) + { + // [9256] If the category has been passed in the URL check it. + $allow = $user->authorise('core.create', $this->option . '.sermons.category.' . $categoryId); + } + + if ($allow === null) + { + // [9265] In the absense of better information, revert to the component permissions. + return $user->authorise('sermon.create', $this->option); + } + else + { + return $allow; + } + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowEdit($data = array(), $key = 'id') + { // [9343] get user object. + $user = JFactory::getUser(); + // [9345] get record id. + $recordId = (int) isset($data[$key]) ? $data[$key] : 0; + + + // [9352] Access check. + $access = ($user->authorise('sermon.access', 'com_sermondistributor.sermon.' . (int) $recordId) && $user->authorise('sermon.access', 'com_sermondistributor')); + if (!$access) + { + return false; + } + + if ($recordId) + { + // [9361] The record has been set. Check the record permissions. + $permission = $user->authorise('sermon.edit', 'com_sermondistributor.sermon.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + if ($user->authorise('sermon.edit.own', 'com_sermondistributor.sermon.' . $recordId)) + { + // [9383] Fallback on edit.own. Now test the owner is the user. + $ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0; + if (empty($ownerId)) + { + // [9387] Need to do a lookup from the model. + $record = $this->getModel()->getItem($recordId); + + if (empty($record)) + { + return false; + } + $ownerId = $record->created_by; + } + + // [9395] If the owner matches 'me' then do the test. + if ($ownerId == $user->id) + { + if ($user->authorise('sermon.edit.own', 'com_sermondistributor')) + { + return true; + } + } + } + return false; + } + + $categoryId = (int) isset($data['catid']) ? $data['catid']: $this->getModel()->getItem($recordId)->catid; + + if ($categoryId) + { + // [9417] The category has been set. Check the category permissions. + $catpermission = $user->authorise('core.edit', $this->option . '.sermons.category.' . $categoryId); + if (!$catpermission && !is_null($catpermission)) + { + return false; + } + } + } + // [9427] Since there is no permission, revert to the component permissions. + return $user->authorise('sermon.edit', $this->option); + } + + /** + * Gets the URL arguments to append to an item redirect. + * + * @param integer $recordId The primary key id for the item. + * @param string $urlVar The name of the URL variable for the id. + * + * @return string The arguments to append to the redirect URL. + * + * @since 12.2 + */ + protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') + { + $tmpl = $this->input->get('tmpl'); + $layout = $this->input->get('layout', 'edit', 'string'); + + $ref = $this->input->get('ref', 0, 'string'); + $refid = $this->input->get('refid', 0, 'int'); + + // Setup redirect info. + + $append = ''; + + if ($refid) + { + $append .= '&ref='.(string)$ref.'&refid='.(int)$refid; + } + elseif ($ref) + { + $append .= '&ref='.(string)$ref; + } + + if ($tmpl) + { + $append .= '&tmpl=' . $tmpl; + } + + if ($layout) + { + $append .= '&layout=' . $layout; + } + + if ($recordId) + { + $append .= '&' . $urlVar . '=' . $recordId; + } + + return $append; + } + + /** + * Method to run batch operations. + * + * @param object $model The model. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 2.5 + */ + public function batch($model = null) + { + JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); + + // Set the model + $model = $this->getModel('Sermon', '', array()); + + // Preset the redirect + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=sermons' . $this->getRedirectToListAppend(), false)); + + return parent::batch($model); + } + + /** + * Method to cancel an edit. + * + * @param string $key The name of the primary key of the URL variable. + * + * @return boolean True if access level checks pass, false otherwise. + * + * @since 12.2 + */ + public function cancel($key = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + $cancel = parent::cancel($key); + + if ($cancel) + { + if ($this->refid) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + } + else + { + // Redirect to the items screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . '&view=' . $this->view_list, false + ) + ); + } + return $cancel; + } + + /** + * Method to save a record. + * + * @param string $key The name of the primary key of the URL variable. + * @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). + * + * @return boolean True if successful, false otherwise. + * + * @since 12.2 + */ + public function save($key = null, $urlVar = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + if ($this->ref || $this->refid) + { + // to make sure the item is checkedin on redirect + $this->task = 'save'; + } + + $saved = parent::save($key, $urlVar); + + if ($this->refid && $saved) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref && $saved) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + return $saved; + } + + /** + * Function that allows child controller access to model data + * after the data has been saved. + * + * @param JModel &$model The data model object. + * @param array $validData The validated data. + * + * @return void + * + * @since 11.1 + */ + protected function postSaveHook(JModelLegacy &$model, $validData = array()) + { + return; + } + +} diff --git a/admin/controllers/sermondistributor.php b/admin/controllers/sermondistributor.php new file mode 100644 index 00000000..28b5a0f5 --- /dev/null +++ b/admin/controllers/sermondistributor.php @@ -0,0 +1,33 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controlleradmin library +jimport('joomla.application.component.controlleradmin'); + +/** + * Sermondistributor Controller + */ +class SermondistributorControllerSermondistributor extends JControllerAdmin +{ + +} diff --git a/admin/controllers/sermons.php b/admin/controllers/sermons.php new file mode 100644 index 00000000..70c7ac84 --- /dev/null +++ b/admin/controllers/sermons.php @@ -0,0 +1,106 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controlleradmin library +jimport('joomla.application.component.controlleradmin'); + +/** + * Sermons Controller + */ +class SermondistributorControllerSermons extends JControllerAdmin +{ + protected $text_prefix = 'COM_SERMONDISTRIBUTOR_SERMONS'; + /** + * Proxy for getModel. + * @since 2.5 + */ + public function getModel($name = 'Sermon', $prefix = 'SermondistributorModel', $config = array()) + { + $model = parent::getModel($name, $prefix, array('ignore_request' => true)); + + return $model; + } + + public function exportData() + { + // [7235] Check for request forgeries + JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); + // [7237] check if export is allowed for this user. + $user = JFactory::getUser(); + if ($user->authorise('sermon.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor')) + { + // [7241] Get the input + $input = JFactory::getApplication()->input; + $pks = $input->post->get('cid', array(), 'array'); + // [7244] Sanitize the input + JArrayHelper::toInteger($pks); + // [7246] Get the model + $model = $this->getModel('Sermons'); + // [7248] get the data to export + $data = $model->getExportData($pks); + if (SermondistributorHelper::checkArray($data)) + { + // [7252] now set the data to the spreadsheet + $date = JFactory::getDate(); + SermondistributorHelper::xls($data,'Sermons_'.$date->format('jS_F_Y'),'Sermons exported ('.$date->format('jS F, Y').')','sermons'); + } + } + // [7257] Redirect to the list screen with error. + $message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED'); + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=sermons', false), $message, 'error'); + return; + } + + + public function importData() + { + // [7266] Check for request forgeries + JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); + // [7268] check if import is allowed for this user. + $user = JFactory::getUser(); + if ($user->authorise('sermon.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor')) + { + // [7272] Get the import model + $model = $this->getModel('Sermons'); + // [7274] get the headers to import + $headers = $model->getExImPortHeaders(); + if (SermondistributorHelper::checkObject($headers)) + { + // [7278] Load headers to session. + $session = JFactory::getSession(); + $headers = json_encode($headers); + $session->set('sermon_VDM_IMPORTHEADERS', $headers); + $session->set('backto_VDM_IMPORT', 'sermons'); + $session->set('dataType_VDM_IMPORTINTO', 'sermon'); + // [7284] Redirect to import view. + $message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_SERMONS'); + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message); + return; + } + } + // [7296] Redirect to the list screen with error. + $message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED'); + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=sermons', false), $message, 'error'); + return; + } +} diff --git a/admin/controllers/statistic.php b/admin/controllers/statistic.php new file mode 100644 index 00000000..e684af00 --- /dev/null +++ b/admin/controllers/statistic.php @@ -0,0 +1,321 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controllerform library +jimport('joomla.application.component.controllerform'); + +/** + * Statistic Controller + */ +class SermondistributorControllerStatistic extends JControllerForm +{ + /** + * Current or most recently performed task. + * + * @var string + * @since 12.2 + * @note Replaces _task. + */ + protected $task; + + public function __construct($config = array()) + { + $this->view_list = 'Statistics'; // safeguard for setting the return view listing to the main view. + parent::__construct($config); + } + + /** + * Method override to check if you can add a new record. + * + * @param array $data An array of input data. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowAdd($data = array()) + { + // [9285] Access check. + $access = JFactory::getUser()->authorise('statistic.access', 'com_sermondistributor'); + if (!$access) + { + return false; + } + // [9296] In the absense of better information, revert to the component permissions. + return JFactory::getUser()->authorise('statistic.create', $this->option); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // [9439] get user object. + $user = JFactory::getUser(); + // [9441] get record id. + $recordId = (int) isset($data[$key]) ? $data[$key] : 0; + + + // [9448] Access check. + $access = ($user->authorise('statistic.access', 'com_sermondistributor.statistic.' . (int) $recordId) && $user->authorise('statistic.access', 'com_sermondistributor')); + if (!$access) + { + return false; + } + + if ($recordId) + { + // [9457] The record has been set. Check the record permissions. + $permission = $user->authorise('statistic.edit', 'com_sermondistributor.statistic.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + if ($user->authorise('statistic.edit.own', 'com_sermondistributor.statistic.' . $recordId)) + { + // [9479] Now test the owner is the user. + $ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0; + if (empty($ownerId)) + { + // [9483] Need to do a lookup from the model. + $record = $this->getModel()->getItem($recordId); + + if (empty($record)) + { + return false; + } + $ownerId = $record->created_by; + } + + // [9491] If the owner matches 'me' then allow. + if ($ownerId == $user->id) + { + if ($user->authorise('statistic.edit.own', 'com_sermondistributor')) + { + return true; + } + } + } + return false; + } + } + // [9513] Since there is no permission, revert to the component permissions. + return $user->authorise('statistic.edit', $this->option); + } + + /** + * Gets the URL arguments to append to an item redirect. + * + * @param integer $recordId The primary key id for the item. + * @param string $urlVar The name of the URL variable for the id. + * + * @return string The arguments to append to the redirect URL. + * + * @since 12.2 + */ + protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') + { + $tmpl = $this->input->get('tmpl'); + $layout = $this->input->get('layout', 'edit', 'string'); + + $ref = $this->input->get('ref', 0, 'string'); + $refid = $this->input->get('refid', 0, 'int'); + + // Setup redirect info. + + $append = ''; + + if ($refid) + { + $append .= '&ref='.(string)$ref.'&refid='.(int)$refid; + } + elseif ($ref) + { + $append .= '&ref='.(string)$ref; + } + + if ($tmpl) + { + $append .= '&tmpl=' . $tmpl; + } + + if ($layout) + { + $append .= '&layout=' . $layout; + } + + if ($recordId) + { + $append .= '&' . $urlVar . '=' . $recordId; + } + + return $append; + } + + /** + * Method to run batch operations. + * + * @param object $model The model. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 2.5 + */ + public function batch($model = null) + { + JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); + + // Set the model + $model = $this->getModel('Statistic', '', array()); + + // Preset the redirect + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=statistics' . $this->getRedirectToListAppend(), false)); + + return parent::batch($model); + } + + /** + * Method to cancel an edit. + * + * @param string $key The name of the primary key of the URL variable. + * + * @return boolean True if access level checks pass, false otherwise. + * + * @since 12.2 + */ + public function cancel($key = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + $cancel = parent::cancel($key); + + if ($cancel) + { + if ($this->refid) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + } + else + { + // Redirect to the items screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . '&view=' . $this->view_list, false + ) + ); + } + return $cancel; + } + + /** + * Method to save a record. + * + * @param string $key The name of the primary key of the URL variable. + * @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). + * + * @return boolean True if successful, false otherwise. + * + * @since 12.2 + */ + public function save($key = null, $urlVar = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + if ($this->ref || $this->refid) + { + // to make sure the item is checkedin on redirect + $this->task = 'save'; + } + + $saved = parent::save($key, $urlVar); + + if ($this->refid && $saved) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref && $saved) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + return $saved; + } + + /** + * Function that allows child controller access to model data + * after the data has been saved. + * + * @param JModel &$model The data model object. + * @param array $validData The validated data. + * + * @return void + * + * @since 11.1 + */ + protected function postSaveHook(JModelLegacy &$model, $validData = array()) + { + return; + } + +} diff --git a/admin/controllers/statistics.php b/admin/controllers/statistics.php new file mode 100644 index 00000000..0b764a8a --- /dev/null +++ b/admin/controllers/statistics.php @@ -0,0 +1,106 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controlleradmin library +jimport('joomla.application.component.controlleradmin'); + +/** + * Statistics Controller + */ +class SermondistributorControllerStatistics extends JControllerAdmin +{ + protected $text_prefix = 'COM_SERMONDISTRIBUTOR_STATISTICS'; + /** + * Proxy for getModel. + * @since 2.5 + */ + public function getModel($name = 'Statistic', $prefix = 'SermondistributorModel', $config = array()) + { + $model = parent::getModel($name, $prefix, array('ignore_request' => true)); + + return $model; + } + + public function exportData() + { + // [7235] Check for request forgeries + JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); + // [7237] check if export is allowed for this user. + $user = JFactory::getUser(); + if ($user->authorise('statistic.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor')) + { + // [7241] Get the input + $input = JFactory::getApplication()->input; + $pks = $input->post->get('cid', array(), 'array'); + // [7244] Sanitize the input + JArrayHelper::toInteger($pks); + // [7246] Get the model + $model = $this->getModel('Statistics'); + // [7248] get the data to export + $data = $model->getExportData($pks); + if (SermondistributorHelper::checkArray($data)) + { + // [7252] now set the data to the spreadsheet + $date = JFactory::getDate(); + SermondistributorHelper::xls($data,'Statistics_'.$date->format('jS_F_Y'),'Statistics exported ('.$date->format('jS F, Y').')','statistics'); + } + } + // [7257] Redirect to the list screen with error. + $message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED'); + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=statistics', false), $message, 'error'); + return; + } + + + public function importData() + { + // [7266] Check for request forgeries + JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); + // [7268] check if import is allowed for this user. + $user = JFactory::getUser(); + if ($user->authorise('statistic.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor')) + { + // [7272] Get the import model + $model = $this->getModel('Statistics'); + // [7274] get the headers to import + $headers = $model->getExImPortHeaders(); + if (SermondistributorHelper::checkObject($headers)) + { + // [7278] Load headers to session. + $session = JFactory::getSession(); + $headers = json_encode($headers); + $session->set('statistic_VDM_IMPORTHEADERS', $headers); + $session->set('backto_VDM_IMPORT', 'statistics'); + $session->set('dataType_VDM_IMPORTINTO', 'statistic'); + // [7284] Redirect to import view. + $message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_STATISTICS'); + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message); + return; + } + } + // [7296] Redirect to the list screen with error. + $message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED'); + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=statistics', false), $message, 'error'); + return; + } +} diff --git a/admin/helpers/PHPExcel.php b/admin/helpers/PHPExcel.php new file mode 100644 index 00000000..27aa77ae --- /dev/null +++ b/admin/helpers/PHPExcel.php @@ -0,0 +1,1139 @@ +_hasMacros; + } + + /** + * Define if a workbook has macros + * + * @param true|false + */ + public function setHasMacros($hasMacros=false){ + $this->_hasMacros=(bool)$hasMacros; + } + + /** + * Set the macros code + * + * @param binary string|null + */ + public function setMacrosCode($MacrosCode){ + $this->_macrosCode=$MacrosCode; + $this->setHasMacros(!is_null($MacrosCode)); + } + + /** + * Return the macros code + * + * @return binary|null + */ + public function getMacrosCode(){ + return $this->_macrosCode; + } + + /** + * Set the macros certificate + * + * @param binary|null + */ + public function setMacrosCertificate($Certificate=NULL){ + $this->_macrosCertificate=$Certificate; + } + + /** + * Is the project signed ? + * + * @return true|false + */ + public function hasMacrosCertificate(){ + return !is_null($this->_macrosCertificate); + } + + /** + * Return the macros certificate + * + * @return binary|null + */ + public function getMacrosCertificate(){ + return $this->_macrosCertificate; + } + + /** + * Remove all macros, certificate from spreadsheet + * + * @param none + * @return void + */ + public function discardMacros(){ + $this->_hasMacros=false; + $this->_macrosCode=NULL; + $this->_macrosCertificate=NULL; + } + + /** + * set ribbon XML data + * + */ + public function setRibbonXMLData($Target=NULL, $XMLData=NULL){ + if(!is_null($Target) && !is_null($XMLData)){ + $this->_ribbonXMLData=array('target'=>$Target, 'data'=>$XMLData); + }else{ + $this->_ribbonXMLData=NULL; + } + } + + /** + * retrieve ribbon XML Data + * + * return string|null|array + */ + public function getRibbonXMLData($What='all'){//we need some constants here... + $ReturnData=NULL; + $What=strtolower($What); + switch($What){ + case 'all': + $ReturnData=$this->_ribbonXMLData; + break; + case 'target': + case 'data': + if(is_array($this->_ribbonXMLData) && array_key_exists($What,$this->_ribbonXMLData)){ + $ReturnData=$this->_ribbonXMLData[$What]; + }//else $ReturnData stay at null + break; + }//default: $ReturnData at null + return $ReturnData; + } + + /** + * store binaries ribbon objects (pictures) + * + */ + public function setRibbonBinObjects($BinObjectsNames=NULL, $BinObjectsData=NULL){ + if(!is_null($BinObjectsNames) && !is_null($BinObjectsData)){ + $this->_ribbonBinObjects=array('names'=>$BinObjectsNames, 'data'=>$BinObjectsData); + }else{ + $this->_ribbonBinObjects=NULL; + } + } + /** + * return the extension of a filename. Internal use for a array_map callback (php<5.3 don't like lambda function) + * + */ + private function _getExtensionOnly($ThePath){ + return pathinfo($ThePath, PATHINFO_EXTENSION); + } + + /** + * retrieve Binaries Ribbon Objects + * + */ + public function getRibbonBinObjects($What='all'){ + $ReturnData=NULL; + $What=strtolower($What); + switch($What){ + case 'all': + return $this->_ribbonBinObjects; + break; + case 'names': + case 'data': + if(is_array($this->_ribbonBinObjects) && array_key_exists($What, $this->_ribbonBinObjects)){ + $ReturnData=$this->_ribbonBinObjects[$What]; + } + break; + case 'types': + if(is_array($this->_ribbonBinObjects) && array_key_exists('data', $this->_ribbonBinObjects) && is_array($this->_ribbonBinObjects['data'])){ + $tmpTypes=array_keys($this->_ribbonBinObjects['data']); + $ReturnData=array_unique(array_map(array($this,'_getExtensionOnly'), $tmpTypes)); + }else + $ReturnData=array();//the caller want an array... not null if empty + break; + } + return $ReturnData; + } + + /** + * This workbook have a custom UI ? + * + * @return true|false + */ + public function hasRibbon(){ + return !is_null($this->_ribbonXMLData); + } + + /** + * This workbook have additionnal object for the ribbon ? + * + * @return true|false + */ + public function hasRibbonBinObjects(){ + return !is_null($this->_ribbonBinObjects); + } + + /** + * Check if a sheet with a specified code name already exists + * + * @param string $pSheetCodeName Name of the worksheet to check + * @return boolean + */ + public function sheetCodeNameExists($pSheetCodeName) + { + return ($this->getSheetByCodeName($pSheetCodeName) !== NULL); + } + + /** + * Get sheet by code name. Warning : sheet don't have always a code name ! + * + * @param string $pName Sheet name + * @return PHPExcel_Worksheet + */ + public function getSheetByCodeName($pName = '') + { + $worksheetCount = count($this->_workSheetCollection); + for ($i = 0; $i < $worksheetCount; ++$i) { + if ($this->_workSheetCollection[$i]->getCodeName() == $pName) { + return $this->_workSheetCollection[$i]; + } + } + + return null; + } + + /** + * Create a new PHPExcel with one Worksheet + */ + public function __construct() + { + $this->_uniqueID = uniqid(); + $this->_calculationEngine = PHPExcel_Calculation::getInstance($this); + + // Initialise worksheet collection and add one worksheet + $this->_workSheetCollection = array(); + $this->_workSheetCollection[] = new PHPExcel_Worksheet($this); + $this->_activeSheetIndex = 0; + + // Create document properties + $this->_properties = new PHPExcel_DocumentProperties(); + + // Create document security + $this->_security = new PHPExcel_DocumentSecurity(); + + // Set named ranges + $this->_namedRanges = array(); + + // Create the cellXf supervisor + $this->_cellXfSupervisor = new PHPExcel_Style(true); + $this->_cellXfSupervisor->bindParent($this); + + // Create the default style + $this->addCellXf(new PHPExcel_Style); + $this->addCellStyleXf(new PHPExcel_Style); + } + + /** + * Code to execute when this worksheet is unset() + * + */ + public function __destruct() { + PHPExcel_Calculation::unsetInstance($this); + $this->disconnectWorksheets(); + } // function __destruct() + + /** + * Disconnect all worksheets from this PHPExcel workbook object, + * typically so that the PHPExcel object can be unset + * + */ + public function disconnectWorksheets() + { + $worksheet = NULL; + foreach($this->_workSheetCollection as $k => &$worksheet) { + $worksheet->disconnectCells(); + $this->_workSheetCollection[$k] = null; + } + unset($worksheet); + $this->_workSheetCollection = array(); + } + + /** + * Return the calculation engine for this worksheet + * + * @return PHPExcel_Calculation + */ + public function getCalculationEngine() + { + return $this->_calculationEngine; + } // function getCellCacheController() + + /** + * Get properties + * + * @return PHPExcel_DocumentProperties + */ + public function getProperties() + { + return $this->_properties; + } + + /** + * Set properties + * + * @param PHPExcel_DocumentProperties $pValue + */ + public function setProperties(PHPExcel_DocumentProperties $pValue) + { + $this->_properties = $pValue; + } + + /** + * Get security + * + * @return PHPExcel_DocumentSecurity + */ + public function getSecurity() + { + return $this->_security; + } + + /** + * Set security + * + * @param PHPExcel_DocumentSecurity $pValue + */ + public function setSecurity(PHPExcel_DocumentSecurity $pValue) + { + $this->_security = $pValue; + } + + /** + * Get active sheet + * + * @return PHPExcel_Worksheet + * + * @throws PHPExcel_Exception + */ + public function getActiveSheet() + { + return $this->getSheet($this->_activeSheetIndex); + } + + /** + * Create sheet and add it to this workbook + * + * @param int|null $iSheetIndex Index where sheet should go (0,1,..., or null for last) + * @return PHPExcel_Worksheet + * @throws PHPExcel_Exception + */ + public function createSheet($iSheetIndex = NULL) + { + $newSheet = new PHPExcel_Worksheet($this); + $this->addSheet($newSheet, $iSheetIndex); + return $newSheet; + } + + /** + * Check if a sheet with a specified name already exists + * + * @param string $pSheetName Name of the worksheet to check + * @return boolean + */ + public function sheetNameExists($pSheetName) + { + return ($this->getSheetByName($pSheetName) !== NULL); + } + + /** + * Add sheet + * + * @param PHPExcel_Worksheet $pSheet + * @param int|null $iSheetIndex Index where sheet should go (0,1,..., or null for last) + * @return PHPExcel_Worksheet + * @throws PHPExcel_Exception + */ + public function addSheet(PHPExcel_Worksheet $pSheet, $iSheetIndex = NULL) + { + if ($this->sheetNameExists($pSheet->getTitle())) { + throw new PHPExcel_Exception( + "Workbook already contains a worksheet named '{$pSheet->getTitle()}'. Rename this worksheet first." + ); + } + + if($iSheetIndex === NULL) { + if ($this->_activeSheetIndex < 0) { + $this->_activeSheetIndex = 0; + } + $this->_workSheetCollection[] = $pSheet; + } else { + // Insert the sheet at the requested index + array_splice( + $this->_workSheetCollection, + $iSheetIndex, + 0, + array($pSheet) + ); + + // Adjust active sheet index if necessary + if ($this->_activeSheetIndex >= $iSheetIndex) { + ++$this->_activeSheetIndex; + } + } + + if ($pSheet->getParent() === null) { + $pSheet->rebindParent($this); + } + + return $pSheet; + } + + /** + * Remove sheet by index + * + * @param int $pIndex Active sheet index + * @throws PHPExcel_Exception + */ + public function removeSheetByIndex($pIndex = 0) + { + + $numSheets = count($this->_workSheetCollection); + + if ($pIndex > $numSheets - 1) { + throw new PHPExcel_Exception( + "You tried to remove a sheet by the out of bounds index: {$pIndex}. The actual number of sheets is {$numSheets}." + ); + } else { + array_splice($this->_workSheetCollection, $pIndex, 1); + } + // Adjust active sheet index if necessary + if (($this->_activeSheetIndex >= $pIndex) && + ($pIndex > count($this->_workSheetCollection) - 1)) { + --$this->_activeSheetIndex; + } + + } + + /** + * Get sheet by index + * + * @param int $pIndex Sheet index + * @return PHPExcel_Worksheet + * @throws PHPExcel_Exception + */ + public function getSheet($pIndex = 0) + { + if (!isset($this->_workSheetCollection[$pIndex])) { + $numSheets = $this->getSheetCount(); + throw new PHPExcel_Exception( + "Your requested sheet index: {$pIndex} is out of bounds. The actual number of sheets is {$numSheets}." + ); + } + + return $this->_workSheetCollection[$pIndex]; + } + + /** + * Get all sheets + * + * @return PHPExcel_Worksheet[] + */ + public function getAllSheets() + { + return $this->_workSheetCollection; + } + + /** + * Get sheet by name + * + * @param string $pName Sheet name + * @return PHPExcel_Worksheet + */ + public function getSheetByName($pName = '') + { + $worksheetCount = count($this->_workSheetCollection); + for ($i = 0; $i < $worksheetCount; ++$i) { + if ($this->_workSheetCollection[$i]->getTitle() === $pName) { + return $this->_workSheetCollection[$i]; + } + } + + return NULL; + } + + /** + * Get index for sheet + * + * @param PHPExcel_Worksheet $pSheet + * @return Sheet index + * @throws PHPExcel_Exception + */ + public function getIndex(PHPExcel_Worksheet $pSheet) + { + foreach ($this->_workSheetCollection as $key => $value) { + if ($value->getHashCode() == $pSheet->getHashCode()) { + return $key; + } + } + + throw new PHPExcel_Exception("Sheet does not exist."); + } + + /** + * Set index for sheet by sheet name. + * + * @param string $sheetName Sheet name to modify index for + * @param int $newIndex New index for the sheet + * @return New sheet index + * @throws PHPExcel_Exception + */ + public function setIndexByName($sheetName, $newIndex) + { + $oldIndex = $this->getIndex($this->getSheetByName($sheetName)); + $pSheet = array_splice( + $this->_workSheetCollection, + $oldIndex, + 1 + ); + array_splice( + $this->_workSheetCollection, + $newIndex, + 0, + $pSheet + ); + return $newIndex; + } + + /** + * Get sheet count + * + * @return int + */ + public function getSheetCount() + { + return count($this->_workSheetCollection); + } + + /** + * Get active sheet index + * + * @return int Active sheet index + */ + public function getActiveSheetIndex() + { + return $this->_activeSheetIndex; + } + + /** + * Set active sheet index + * + * @param int $pIndex Active sheet index + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function setActiveSheetIndex($pIndex = 0) + { + $numSheets = count($this->_workSheetCollection); + + if ($pIndex > $numSheets - 1) { + throw new PHPExcel_Exception( + "You tried to set a sheet active by the out of bounds index: {$pIndex}. The actual number of sheets is {$numSheets}." + ); + } else { + $this->_activeSheetIndex = $pIndex; + } + return $this->getActiveSheet(); + } + + /** + * Set active sheet index by name + * + * @param string $pValue Sheet title + * @return PHPExcel_Worksheet + * @throws PHPExcel_Exception + */ + public function setActiveSheetIndexByName($pValue = '') + { + if (($worksheet = $this->getSheetByName($pValue)) instanceof PHPExcel_Worksheet) { + $this->setActiveSheetIndex($this->getIndex($worksheet)); + return $worksheet; + } + + throw new PHPExcel_Exception('Workbook does not contain sheet:' . $pValue); + } + + /** + * Get sheet names + * + * @return string[] + */ + public function getSheetNames() + { + $returnValue = array(); + $worksheetCount = $this->getSheetCount(); + for ($i = 0; $i < $worksheetCount; ++$i) { + $returnValue[] = $this->getSheet($i)->getTitle(); + } + + return $returnValue; + } + + /** + * Add external sheet + * + * @param PHPExcel_Worksheet $pSheet External sheet to add + * @param int|null $iSheetIndex Index where sheet should go (0,1,..., or null for last) + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function addExternalSheet(PHPExcel_Worksheet $pSheet, $iSheetIndex = null) { + if ($this->sheetNameExists($pSheet->getTitle())) { + throw new PHPExcel_Exception("Workbook already contains a worksheet named '{$pSheet->getTitle()}'. Rename the external sheet first."); + } + + // count how many cellXfs there are in this workbook currently, we will need this below + $countCellXfs = count($this->_cellXfCollection); + + // copy all the shared cellXfs from the external workbook and append them to the current + foreach ($pSheet->getParent()->getCellXfCollection() as $cellXf) { + $this->addCellXf(clone $cellXf); + } + + // move sheet to this workbook + $pSheet->rebindParent($this); + + // update the cellXfs + foreach ($pSheet->getCellCollection(false) as $cellID) { + $cell = $pSheet->getCell($cellID); + $cell->setXfIndex( $cell->getXfIndex() + $countCellXfs ); + } + + return $this->addSheet($pSheet, $iSheetIndex); + } + + /** + * Get named ranges + * + * @return PHPExcel_NamedRange[] + */ + public function getNamedRanges() { + return $this->_namedRanges; + } + + /** + * Add named range + * + * @param PHPExcel_NamedRange $namedRange + * @return PHPExcel + */ + public function addNamedRange(PHPExcel_NamedRange $namedRange) { + if ($namedRange->getScope() == null) { + // global scope + $this->_namedRanges[$namedRange->getName()] = $namedRange; + } else { + // local scope + $this->_namedRanges[$namedRange->getScope()->getTitle().'!'.$namedRange->getName()] = $namedRange; + } + return true; + } + + /** + * Get named range + * + * @param string $namedRange + * @param PHPExcel_Worksheet|null $pSheet Scope. Use null for global scope + * @return PHPExcel_NamedRange|null + */ + public function getNamedRange($namedRange, PHPExcel_Worksheet $pSheet = null) { + $returnValue = null; + + if ($namedRange != '' && ($namedRange !== NULL)) { + // first look for global defined name + if (isset($this->_namedRanges[$namedRange])) { + $returnValue = $this->_namedRanges[$namedRange]; + } + + // then look for local defined name (has priority over global defined name if both names exist) + if (($pSheet !== NULL) && isset($this->_namedRanges[$pSheet->getTitle() . '!' . $namedRange])) { + $returnValue = $this->_namedRanges[$pSheet->getTitle() . '!' . $namedRange]; + } + } + + return $returnValue; + } + + /** + * Remove named range + * + * @param string $namedRange + * @param PHPExcel_Worksheet|null $pSheet Scope: use null for global scope. + * @return PHPExcel + */ + public function removeNamedRange($namedRange, PHPExcel_Worksheet $pSheet = null) { + if ($pSheet === NULL) { + if (isset($this->_namedRanges[$namedRange])) { + unset($this->_namedRanges[$namedRange]); + } + } else { + if (isset($this->_namedRanges[$pSheet->getTitle() . '!' . $namedRange])) { + unset($this->_namedRanges[$pSheet->getTitle() . '!' . $namedRange]); + } + } + return $this; + } + + /** + * Get worksheet iterator + * + * @return PHPExcel_WorksheetIterator + */ + public function getWorksheetIterator() { + return new PHPExcel_WorksheetIterator($this); + } + + /** + * Copy workbook (!= clone!) + * + * @return PHPExcel + */ + public function copy() { + $copied = clone $this; + + $worksheetCount = count($this->_workSheetCollection); + for ($i = 0; $i < $worksheetCount; ++$i) { + $this->_workSheetCollection[$i] = $this->_workSheetCollection[$i]->copy(); + $this->_workSheetCollection[$i]->rebindParent($this); + } + + return $copied; + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + foreach($this as $key => $val) { + if (is_object($val) || (is_array($val))) { + $this->{$key} = unserialize(serialize($val)); + } + } + } + + /** + * Get the workbook collection of cellXfs + * + * @return PHPExcel_Style[] + */ + public function getCellXfCollection() + { + return $this->_cellXfCollection; + } + + /** + * Get cellXf by index + * + * @param int $pIndex + * @return PHPExcel_Style + */ + public function getCellXfByIndex($pIndex = 0) + { + return $this->_cellXfCollection[$pIndex]; + } + + /** + * Get cellXf by hash code + * + * @param string $pValue + * @return PHPExcel_Style|false + */ + public function getCellXfByHashCode($pValue = '') + { + foreach ($this->_cellXfCollection as $cellXf) { + if ($cellXf->getHashCode() == $pValue) { + return $cellXf; + } + } + return false; + } + + /** + * Check if style exists in style collection + * + * @param PHPExcel_Style $pCellStyle + * @return boolean + */ + public function cellXfExists($pCellStyle = null) + { + return in_array($pCellStyle, $this->_cellXfCollection, true); + } + + /** + * Get default style + * + * @return PHPExcel_Style + * @throws PHPExcel_Exception + */ + public function getDefaultStyle() + { + if (isset($this->_cellXfCollection[0])) { + return $this->_cellXfCollection[0]; + } + throw new PHPExcel_Exception('No default style found for this workbook'); + } + + /** + * Add a cellXf to the workbook + * + * @param PHPExcel_Style $style + */ + public function addCellXf(PHPExcel_Style $style) + { + $this->_cellXfCollection[] = $style; + $style->setIndex(count($this->_cellXfCollection) - 1); + } + + /** + * Remove cellXf by index. It is ensured that all cells get their xf index updated. + * + * @param int $pIndex Index to cellXf + * @throws PHPExcel_Exception + */ + public function removeCellXfByIndex($pIndex = 0) + { + if ($pIndex > count($this->_cellXfCollection) - 1) { + throw new PHPExcel_Exception("CellXf index is out of bounds."); + } else { + // first remove the cellXf + array_splice($this->_cellXfCollection, $pIndex, 1); + + // then update cellXf indexes for cells + foreach ($this->_workSheetCollection as $worksheet) { + foreach ($worksheet->getCellCollection(false) as $cellID) { + $cell = $worksheet->getCell($cellID); + $xfIndex = $cell->getXfIndex(); + if ($xfIndex > $pIndex ) { + // decrease xf index by 1 + $cell->setXfIndex($xfIndex - 1); + } else if ($xfIndex == $pIndex) { + // set to default xf index 0 + $cell->setXfIndex(0); + } + } + } + } + } + + /** + * Get the cellXf supervisor + * + * @return PHPExcel_Style + */ + public function getCellXfSupervisor() + { + return $this->_cellXfSupervisor; + } + + /** + * Get the workbook collection of cellStyleXfs + * + * @return PHPExcel_Style[] + */ + public function getCellStyleXfCollection() + { + return $this->_cellStyleXfCollection; + } + + /** + * Get cellStyleXf by index + * + * @param int $pIndex + * @return PHPExcel_Style + */ + public function getCellStyleXfByIndex($pIndex = 0) + { + return $this->_cellStyleXfCollection[$pIndex]; + } + + /** + * Get cellStyleXf by hash code + * + * @param string $pValue + * @return PHPExcel_Style|false + */ + public function getCellStyleXfByHashCode($pValue = '') + { + foreach ($this->_cellXfStyleCollection as $cellStyleXf) { + if ($cellStyleXf->getHashCode() == $pValue) { + return $cellStyleXf; + } + } + return false; + } + + /** + * Add a cellStyleXf to the workbook + * + * @param PHPExcel_Style $pStyle + */ + public function addCellStyleXf(PHPExcel_Style $pStyle) + { + $this->_cellStyleXfCollection[] = $pStyle; + $pStyle->setIndex(count($this->_cellStyleXfCollection) - 1); + } + + /** + * Remove cellStyleXf by index + * + * @param int $pIndex + * @throws PHPExcel_Exception + */ + public function removeCellStyleXfByIndex($pIndex = 0) + { + if ($pIndex > count($this->_cellStyleXfCollection) - 1) { + throw new PHPExcel_Exception("CellStyleXf index is out of bounds."); + } else { + array_splice($this->_cellStyleXfCollection, $pIndex, 1); + } + } + + /** + * Eliminate all unneeded cellXf and afterwards update the xfIndex for all cells + * and columns in the workbook + */ + public function garbageCollect() + { + // how many references are there to each cellXf ? + $countReferencesCellXf = array(); + foreach ($this->_cellXfCollection as $index => $cellXf) { + $countReferencesCellXf[$index] = 0; + } + + foreach ($this->getWorksheetIterator() as $sheet) { + + // from cells + foreach ($sheet->getCellCollection(false) as $cellID) { + $cell = $sheet->getCell($cellID); + ++$countReferencesCellXf[$cell->getXfIndex()]; + } + + // from row dimensions + foreach ($sheet->getRowDimensions() as $rowDimension) { + if ($rowDimension->getXfIndex() !== null) { + ++$countReferencesCellXf[$rowDimension->getXfIndex()]; + } + } + + // from column dimensions + foreach ($sheet->getColumnDimensions() as $columnDimension) { + ++$countReferencesCellXf[$columnDimension->getXfIndex()]; + } + } + + // remove cellXfs without references and create mapping so we can update xfIndex + // for all cells and columns + $countNeededCellXfs = 0; + foreach ($this->_cellXfCollection as $index => $cellXf) { + if ($countReferencesCellXf[$index] > 0 || $index == 0) { // we must never remove the first cellXf + ++$countNeededCellXfs; + } else { + unset($this->_cellXfCollection[$index]); + } + $map[$index] = $countNeededCellXfs - 1; + } + $this->_cellXfCollection = array_values($this->_cellXfCollection); + + // update the index for all cellXfs + foreach ($this->_cellXfCollection as $i => $cellXf) { + $cellXf->setIndex($i); + } + + // make sure there is always at least one cellXf (there should be) + if (empty($this->_cellXfCollection)) { + $this->_cellXfCollection[] = new PHPExcel_Style(); + } + + // update the xfIndex for all cells, row dimensions, column dimensions + foreach ($this->getWorksheetIterator() as $sheet) { + + // for all cells + foreach ($sheet->getCellCollection(false) as $cellID) { + $cell = $sheet->getCell($cellID); + $cell->setXfIndex( $map[$cell->getXfIndex()] ); + } + + // for all row dimensions + foreach ($sheet->getRowDimensions() as $rowDimension) { + if ($rowDimension->getXfIndex() !== null) { + $rowDimension->setXfIndex( $map[$rowDimension->getXfIndex()] ); + } + } + + // for all column dimensions + foreach ($sheet->getColumnDimensions() as $columnDimension) { + $columnDimension->setXfIndex( $map[$columnDimension->getXfIndex()] ); + } + + // also do garbage collection for all the sheets + $sheet->garbageCollect(); + } + } + + /** + * Return the unique ID value assigned to this spreadsheet workbook + * + * @return string + */ + public function getID() { + return $this->_uniqueID; + } + +} diff --git a/admin/helpers/PHPExcel/Autoloader.php b/admin/helpers/PHPExcel/Autoloader.php new file mode 100644 index 00000000..f0b22516 --- /dev/null +++ b/admin/helpers/PHPExcel/Autoloader.php @@ -0,0 +1,89 @@ += 0) { + return spl_autoload_register(array('PHPExcel_Autoloader', 'Load'), true, true); + } else { + return spl_autoload_register(array('PHPExcel_Autoloader', 'Load')); + } + } // function Register() + + + /** + * Autoload a class identified by name + * + * @param string $pClassName Name of the object to load + */ + public static function Load($pClassName){ + if ((class_exists($pClassName,FALSE)) || (strpos($pClassName, 'PHPExcel') !== 0)) { + // Either already loaded, or not a PHPExcel class request + return FALSE; + } + + $pClassFilePath = PHPEXCEL_ROOT . + str_replace('_',DIRECTORY_SEPARATOR,$pClassName) . + '.php'; + + if ((file_exists($pClassFilePath) === FALSE) || (is_readable($pClassFilePath) === FALSE)) { + // Can't load + return FALSE; + } + + require($pClassFilePath); + } // function Load() + +} diff --git a/admin/helpers/PHPExcel/CachedObjectStorage/APC.php b/admin/helpers/PHPExcel/CachedObjectStorage/APC.php new file mode 100644 index 00000000..8bde7fe3 --- /dev/null +++ b/admin/helpers/PHPExcel/CachedObjectStorage/APC.php @@ -0,0 +1,295 @@ +_currentCellIsDirty && !empty($this->_currentObjectID)) { + $this->_currentObject->detach(); + + if (!apc_store($this->_cachePrefix.$this->_currentObjectID.'.cache',serialize($this->_currentObject),$this->_cacheTime)) { + $this->__destruct(); + throw new PHPExcel_Exception('Failed to store cell '.$this->_currentObjectID.' in APC'); + } + $this->_currentCellIsDirty = false; + } + $this->_currentObjectID = $this->_currentObject = null; + } // function _storeData() + + + /** + * Add or Update a cell in cache identified by coordinate address + * + * @access public + * @param string $pCoord Coordinate address of the cell to update + * @param PHPExcel_Cell $cell Cell to update + * @return PHPExcel_Cell + * @throws PHPExcel_Exception + */ + public function addCacheData($pCoord, PHPExcel_Cell $cell) { + if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { + $this->_storeData(); + } + $this->_cellCache[$pCoord] = true; + + $this->_currentObjectID = $pCoord; + $this->_currentObject = $cell; + $this->_currentCellIsDirty = true; + + return $cell; + } // function addCacheData() + + + /** + * Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell? + * + * @access public + * @param string $pCoord Coordinate address of the cell to check + * @throws PHPExcel_Exception + * @return boolean + */ + public function isDataSet($pCoord) { + // Check if the requested entry is the current object, or exists in the cache + if (parent::isDataSet($pCoord)) { + if ($this->_currentObjectID == $pCoord) { + return true; + } + // Check if the requested entry still exists in apc + $success = apc_fetch($this->_cachePrefix.$pCoord.'.cache'); + if ($success === FALSE) { + // Entry no longer exists in APC, so clear it from the cache array + parent::deleteCacheData($pCoord); + throw new PHPExcel_Exception('Cell entry '.$pCoord.' no longer exists in APC cache'); + } + return true; + } + return false; + } // function isDataSet() + + + /** + * Get cell at a specific coordinate + * + * @access public + * @param string $pCoord Coordinate of the cell + * @throws PHPExcel_Exception + * @return PHPExcel_Cell Cell that was found, or null if not found + */ + public function getCacheData($pCoord) { + if ($pCoord === $this->_currentObjectID) { + return $this->_currentObject; + } + $this->_storeData(); + + // Check if the entry that has been requested actually exists + if (parent::isDataSet($pCoord)) { + $obj = apc_fetch($this->_cachePrefix.$pCoord.'.cache'); + if ($obj === FALSE) { + // Entry no longer exists in APC, so clear it from the cache array + parent::deleteCacheData($pCoord); + throw new PHPExcel_Exception('Cell entry '.$pCoord.' no longer exists in APC cache'); + } + } else { + // Return null if requested entry doesn't exist in cache + return null; + } + + // Set current entry to the requested entry + $this->_currentObjectID = $pCoord; + $this->_currentObject = unserialize($obj); + // Re-attach this as the cell's parent + $this->_currentObject->attach($this); + + // Return requested entry + return $this->_currentObject; + } // function getCacheData() + + + /** + * Get a list of all cell addresses currently held in cache + * + * @return string[] + */ + public function getCellList() { + if ($this->_currentObjectID !== null) { + $this->_storeData(); + } + + return parent::getCellList(); + } + + + /** + * Delete a cell in cache identified by coordinate address + * + * @access public + * @param string $pCoord Coordinate address of the cell to delete + * @throws PHPExcel_Exception + */ + public function deleteCacheData($pCoord) { + // Delete the entry from APC + apc_delete($this->_cachePrefix.$pCoord.'.cache'); + + // Delete the entry from our cell address array + parent::deleteCacheData($pCoord); + } // function deleteCacheData() + + + /** + * Clone the cell collection + * + * @access public + * @param PHPExcel_Worksheet $parent The new worksheet + * @throws PHPExcel_Exception + * @return void + */ + public function copyCellCollection(PHPExcel_Worksheet $parent) { + parent::copyCellCollection($parent); + // Get a new id for the new file name + $baseUnique = $this->_getUniqueID(); + $newCachePrefix = substr(md5($baseUnique),0,8).'.'; + $cacheList = $this->getCellList(); + foreach($cacheList as $cellID) { + if ($cellID != $this->_currentObjectID) { + $obj = apc_fetch($this->_cachePrefix.$cellID.'.cache'); + if ($obj === FALSE) { + // Entry no longer exists in APC, so clear it from the cache array + parent::deleteCacheData($cellID); + throw new PHPExcel_Exception('Cell entry '.$cellID.' no longer exists in APC'); + } + if (!apc_store($newCachePrefix.$cellID.'.cache',$obj,$this->_cacheTime)) { + $this->__destruct(); + throw new PHPExcel_Exception('Failed to store cell '.$cellID.' in APC'); + } + } + } + $this->_cachePrefix = $newCachePrefix; + } // function copyCellCollection() + + + /** + * Clear the cell collection and disconnect from our parent + * + * @return void + */ + public function unsetWorksheetCells() { + if ($this->_currentObject !== NULL) { + $this->_currentObject->detach(); + $this->_currentObject = $this->_currentObjectID = null; + } + + // Flush the APC cache + $this->__destruct(); + + $this->_cellCache = array(); + + // detach ourself from the worksheet, so that it can then delete this object successfully + $this->_parent = null; + } // function unsetWorksheetCells() + + + /** + * Initialise this new cell collection + * + * @param PHPExcel_Worksheet $parent The worksheet for this cell collection + * @param array of mixed $arguments Additional initialisation arguments + */ + public function __construct(PHPExcel_Worksheet $parent, $arguments) { + $cacheTime = (isset($arguments['cacheTime'])) ? $arguments['cacheTime'] : 600; + + if ($this->_cachePrefix === NULL) { + $baseUnique = $this->_getUniqueID(); + $this->_cachePrefix = substr(md5($baseUnique),0,8).'.'; + $this->_cacheTime = $cacheTime; + + parent::__construct($parent); + } + } // function __construct() + + + /** + * Destroy this cell collection + */ + public function __destruct() { + $cacheList = $this->getCellList(); + foreach($cacheList as $cellID) { + apc_delete($this->_cachePrefix.$cellID.'.cache'); + } + } // function __destruct() + + + /** + * Identify whether the caching method is currently available + * Some methods are dependent on the availability of certain extensions being enabled in the PHP build + * + * @return boolean + */ + public static function cacheMethodIsAvailable() { + if (!function_exists('apc_store')) { + return FALSE; + } + if (apc_sma_info() === FALSE) { + return FALSE; + } + + return TRUE; + } + +} diff --git a/admin/helpers/PHPExcel/CachedObjectStorage/CacheBase.php b/admin/helpers/PHPExcel/CachedObjectStorage/CacheBase.php new file mode 100644 index 00000000..9f780b2a --- /dev/null +++ b/admin/helpers/PHPExcel/CachedObjectStorage/CacheBase.php @@ -0,0 +1,347 @@ +_parent = $parent; + } // function __construct() + + + /** + * Return the parent worksheet for this cell collection + * + * @return PHPExcel_Worksheet + */ + public function getParent() + { + return $this->_parent; + } + + /** + * Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell? + * + * @param string $pCoord Coordinate address of the cell to check + * @return boolean + */ + public function isDataSet($pCoord) { + if ($pCoord === $this->_currentObjectID) { + return true; + } + // Check if the requested entry exists in the cache + return isset($this->_cellCache[$pCoord]); + } // function isDataSet() + + + /** + * Move a cell object from one address to another + * + * @param string $fromAddress Current address of the cell to move + * @param string $toAddress Destination address of the cell to move + * @return boolean + */ + public function moveCell($fromAddress, $toAddress) { + if ($fromAddress === $this->_currentObjectID) { + $this->_currentObjectID = $toAddress; + } + $this->_currentCellIsDirty = true; + if (isset($this->_cellCache[$fromAddress])) { + $this->_cellCache[$toAddress] = &$this->_cellCache[$fromAddress]; + unset($this->_cellCache[$fromAddress]); + } + + return TRUE; + } // function moveCell() + + + /** + * Add or Update a cell in cache + * + * @param PHPExcel_Cell $cell Cell to update + * @return PHPExcel_Cell + * @throws PHPExcel_Exception + */ + public function updateCacheData(PHPExcel_Cell $cell) { + return $this->addCacheData($cell->getCoordinate(),$cell); + } // function updateCacheData() + + + /** + * Delete a cell in cache identified by coordinate address + * + * @param string $pCoord Coordinate address of the cell to delete + * @throws PHPExcel_Exception + */ + public function deleteCacheData($pCoord) { + if ($pCoord === $this->_currentObjectID) { + $this->_currentObject->detach(); + $this->_currentObjectID = $this->_currentObject = null; + } + + if (is_object($this->_cellCache[$pCoord])) { + $this->_cellCache[$pCoord]->detach(); + unset($this->_cellCache[$pCoord]); + } + $this->_currentCellIsDirty = false; + } // function deleteCacheData() + + + /** + * Get a list of all cell addresses currently held in cache + * + * @return string[] + */ + public function getCellList() { + return array_keys($this->_cellCache); + } // function getCellList() + + + /** + * Sort the list of all cell addresses currently held in cache by row and column + * + * @return string[] + */ + public function getSortedCellList() { + $sortKeys = array(); + foreach ($this->getCellList() as $coord) { + sscanf($coord,'%[A-Z]%d', $column, $row); + $sortKeys[sprintf('%09d%3s',$row,$column)] = $coord; + } + ksort($sortKeys); + + return array_values($sortKeys); + } // function sortCellList() + + + + /** + * Get highest worksheet column and highest row that have cell records + * + * @return array Highest column name and highest row number + */ + public function getHighestRowAndColumn() + { + // Lookup highest column and highest row + $col = array('A' => '1A'); + $row = array(1); + foreach ($this->getCellList() as $coord) { + sscanf($coord,'%[A-Z]%d', $c, $r); + $row[$r] = $r; + $col[$c] = strlen($c).$c; + } + if (!empty($row)) { + // Determine highest column and row + $highestRow = max($row); + $highestColumn = substr(max($col),1); + } + + return array( 'row' => $highestRow, + 'column' => $highestColumn + ); + } + + + /** + * Return the cell address of the currently active cell object + * + * @return string + */ + public function getCurrentAddress() + { + return $this->_currentObjectID; + } + + /** + * Return the column address of the currently active cell object + * + * @return string + */ + public function getCurrentColumn() + { + sscanf($this->_currentObjectID, '%[A-Z]%d', $column, $row); + return $column; + } + + /** + * Return the row address of the currently active cell object + * + * @return integer + */ + public function getCurrentRow() + { + sscanf($this->_currentObjectID, '%[A-Z]%d', $column, $row); + return (integer) $row; + } + + /** + * Get highest worksheet column + * + * @param string $row Return the highest column for the specified row, + * or the highest column of any row if no row number is passed + * @return string Highest column name + */ + public function getHighestColumn($row = null) + { + if ($row == null) { + $colRow = $this->getHighestRowAndColumn(); + return $colRow['column']; + } + + $columnList = array(1); + foreach ($this->getCellList() as $coord) { + sscanf($coord,'%[A-Z]%d', $c, $r); + if ($r != $row) { + continue; + } + $columnList[] = PHPExcel_Cell::columnIndexFromString($c); + } + return PHPExcel_Cell::stringFromColumnIndex(max($columnList) - 1); + } + + /** + * Get highest worksheet row + * + * @param string $column Return the highest row for the specified column, + * or the highest row of any column if no column letter is passed + * @return int Highest row number + */ + public function getHighestRow($column = null) + { + if ($column == null) { + $colRow = $this->getHighestRowAndColumn(); + return $colRow['row']; + } + + $rowList = array(0); + foreach ($this->getCellList() as $coord) { + sscanf($coord,'%[A-Z]%d', $c, $r); + if ($c != $column) { + continue; + } + $rowList[] = $r; + } + + return max($rowList); + } + + + /** + * Generate a unique ID for cache referencing + * + * @return string Unique Reference + */ + protected function _getUniqueID() { + if (function_exists('posix_getpid')) { + $baseUnique = posix_getpid(); + } else { + $baseUnique = mt_rand(); + } + return uniqid($baseUnique,true); + } + + /** + * Clone the cell collection + * + * @param PHPExcel_Worksheet $parent The new worksheet + * @return void + */ + public function copyCellCollection(PHPExcel_Worksheet $parent) { + $this->_currentCellIsDirty; + $this->_storeData(); + + $this->_parent = $parent; + if (($this->_currentObject !== NULL) && (is_object($this->_currentObject))) { + $this->_currentObject->attach($this); + } + } // function copyCellCollection() + + + /** + * Identify whether the caching method is currently available + * Some methods are dependent on the availability of certain extensions being enabled in the PHP build + * + * @return boolean + */ + public static function cacheMethodIsAvailable() { + return true; + } + +} diff --git a/admin/helpers/PHPExcel/CachedObjectStorage/DiscISAM.php b/admin/helpers/PHPExcel/CachedObjectStorage/DiscISAM.php new file mode 100644 index 00000000..cb38d0de --- /dev/null +++ b/admin/helpers/PHPExcel/CachedObjectStorage/DiscISAM.php @@ -0,0 +1,219 @@ +_currentCellIsDirty && !empty($this->_currentObjectID)) { + $this->_currentObject->detach(); + + fseek($this->_fileHandle,0,SEEK_END); + + $this->_cellCache[$this->_currentObjectID] = array( + 'ptr' => ftell($this->_fileHandle), + 'sz' => fwrite($this->_fileHandle, serialize($this->_currentObject)) + ); + $this->_currentCellIsDirty = false; + } + $this->_currentObjectID = $this->_currentObject = null; + } // function _storeData() + + + /** + * Add or Update a cell in cache identified by coordinate address + * + * @param string $pCoord Coordinate address of the cell to update + * @param PHPExcel_Cell $cell Cell to update + * @return PHPExcel_Cell + * @throws PHPExcel_Exception + */ + public function addCacheData($pCoord, PHPExcel_Cell $cell) { + if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { + $this->_storeData(); + } + + $this->_currentObjectID = $pCoord; + $this->_currentObject = $cell; + $this->_currentCellIsDirty = true; + + return $cell; + } // function addCacheData() + + + /** + * Get cell at a specific coordinate + * + * @param string $pCoord Coordinate of the cell + * @throws PHPExcel_Exception + * @return PHPExcel_Cell Cell that was found, or null if not found + */ + public function getCacheData($pCoord) { + if ($pCoord === $this->_currentObjectID) { + return $this->_currentObject; + } + $this->_storeData(); + + // Check if the entry that has been requested actually exists + if (!isset($this->_cellCache[$pCoord])) { + // Return null if requested entry doesn't exist in cache + return null; + } + + // Set current entry to the requested entry + $this->_currentObjectID = $pCoord; + fseek($this->_fileHandle, $this->_cellCache[$pCoord]['ptr']); + $this->_currentObject = unserialize(fread($this->_fileHandle, $this->_cellCache[$pCoord]['sz'])); + // Re-attach this as the cell's parent + $this->_currentObject->attach($this); + + // Return requested entry + return $this->_currentObject; + } // function getCacheData() + + + /** + * Get a list of all cell addresses currently held in cache + * + * @return string[] + */ + public function getCellList() { + if ($this->_currentObjectID !== null) { + $this->_storeData(); + } + + return parent::getCellList(); + } + + + /** + * Clone the cell collection + * + * @param PHPExcel_Worksheet $parent The new worksheet + * @return void + */ + public function copyCellCollection(PHPExcel_Worksheet $parent) { + parent::copyCellCollection($parent); + // Get a new id for the new file name + $baseUnique = $this->_getUniqueID(); + $newFileName = $this->_cacheDirectory.'/PHPExcel.'.$baseUnique.'.cache'; + // Copy the existing cell cache file + copy ($this->_fileName,$newFileName); + $this->_fileName = $newFileName; + // Open the copied cell cache file + $this->_fileHandle = fopen($this->_fileName,'a+'); + } // function copyCellCollection() + + + /** + * Clear the cell collection and disconnect from our parent + * + * @return void + */ + public function unsetWorksheetCells() { + if(!is_null($this->_currentObject)) { + $this->_currentObject->detach(); + $this->_currentObject = $this->_currentObjectID = null; + } + $this->_cellCache = array(); + + // detach ourself from the worksheet, so that it can then delete this object successfully + $this->_parent = null; + + // Close down the temporary cache file + $this->__destruct(); + } // function unsetWorksheetCells() + + + /** + * Initialise this new cell collection + * + * @param PHPExcel_Worksheet $parent The worksheet for this cell collection + * @param array of mixed $arguments Additional initialisation arguments + */ + public function __construct(PHPExcel_Worksheet $parent, $arguments) { + $this->_cacheDirectory = ((isset($arguments['dir'])) && ($arguments['dir'] !== NULL)) + ? $arguments['dir'] + : PHPExcel_Shared_File::sys_get_temp_dir(); + + parent::__construct($parent); + if (is_null($this->_fileHandle)) { + $baseUnique = $this->_getUniqueID(); + $this->_fileName = $this->_cacheDirectory.'/PHPExcel.'.$baseUnique.'.cache'; + $this->_fileHandle = fopen($this->_fileName,'a+'); + } + } // function __construct() + + + /** + * Destroy this cell collection + */ + public function __destruct() { + if (!is_null($this->_fileHandle)) { + fclose($this->_fileHandle); + unlink($this->_fileName); + } + $this->_fileHandle = null; + } // function __destruct() + +} diff --git a/admin/helpers/PHPExcel/CachedObjectStorage/ICache.php b/admin/helpers/PHPExcel/CachedObjectStorage/ICache.php new file mode 100644 index 00000000..220905cd --- /dev/null +++ b/admin/helpers/PHPExcel/CachedObjectStorage/ICache.php @@ -0,0 +1,112 @@ +_currentCellIsDirty && !empty($this->_currentObjectID)) { + $this->_currentObject->detach(); + + $this->_cellCache[$this->_currentObjectID] = igbinary_serialize($this->_currentObject); + $this->_currentCellIsDirty = false; + } + $this->_currentObjectID = $this->_currentObject = null; + } // function _storeData() + + + /** + * Add or Update a cell in cache identified by coordinate address + * + * @param string $pCoord Coordinate address of the cell to update + * @param PHPExcel_Cell $cell Cell to update + * @return PHPExcel_Cell + * @throws PHPExcel_Exception + */ + public function addCacheData($pCoord, PHPExcel_Cell $cell) { + if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { + $this->_storeData(); + } + + $this->_currentObjectID = $pCoord; + $this->_currentObject = $cell; + $this->_currentCellIsDirty = true; + + return $cell; + } // function addCacheData() + + + /** + * Get cell at a specific coordinate + * + * @param string $pCoord Coordinate of the cell + * @throws PHPExcel_Exception + * @return PHPExcel_Cell Cell that was found, or null if not found + */ + public function getCacheData($pCoord) { + if ($pCoord === $this->_currentObjectID) { + return $this->_currentObject; + } + $this->_storeData(); + + // Check if the entry that has been requested actually exists + if (!isset($this->_cellCache[$pCoord])) { + // Return null if requested entry doesn't exist in cache + return null; + } + + // Set current entry to the requested entry + $this->_currentObjectID = $pCoord; + $this->_currentObject = igbinary_unserialize($this->_cellCache[$pCoord]); + // Re-attach this as the cell's parent + $this->_currentObject->attach($this); + + // Return requested entry + return $this->_currentObject; + } // function getCacheData() + + + /** + * Get a list of all cell addresses currently held in cache + * + * @return string[] + */ + public function getCellList() { + if ($this->_currentObjectID !== null) { + $this->_storeData(); + } + + return parent::getCellList(); + } + + + /** + * Clear the cell collection and disconnect from our parent + * + * @return void + */ + public function unsetWorksheetCells() { + if(!is_null($this->_currentObject)) { + $this->_currentObject->detach(); + $this->_currentObject = $this->_currentObjectID = null; + } + $this->_cellCache = array(); + + // detach ourself from the worksheet, so that it can then delete this object successfully + $this->_parent = null; + } // function unsetWorksheetCells() + + + /** + * Identify whether the caching method is currently available + * Some methods are dependent on the availability of certain extensions being enabled in the PHP build + * + * @return boolean + */ + public static function cacheMethodIsAvailable() { + if (!function_exists('igbinary_serialize')) { + return false; + } + + return true; + } + +} diff --git a/admin/helpers/PHPExcel/CachedObjectStorage/Memcache.php b/admin/helpers/PHPExcel/CachedObjectStorage/Memcache.php new file mode 100644 index 00000000..6a096769 --- /dev/null +++ b/admin/helpers/PHPExcel/CachedObjectStorage/Memcache.php @@ -0,0 +1,312 @@ +_currentCellIsDirty && !empty($this->_currentObjectID)) { + $this->_currentObject->detach(); + + $obj = serialize($this->_currentObject); + if (!$this->_memcache->replace($this->_cachePrefix.$this->_currentObjectID.'.cache',$obj,NULL,$this->_cacheTime)) { + if (!$this->_memcache->add($this->_cachePrefix.$this->_currentObjectID.'.cache',$obj,NULL,$this->_cacheTime)) { + $this->__destruct(); + throw new PHPExcel_Exception('Failed to store cell '.$this->_currentObjectID.' in MemCache'); + } + } + $this->_currentCellIsDirty = false; + } + $this->_currentObjectID = $this->_currentObject = null; + } // function _storeData() + + + /** + * Add or Update a cell in cache identified by coordinate address + * + * @param string $pCoord Coordinate address of the cell to update + * @param PHPExcel_Cell $cell Cell to update + * @return PHPExcel_Cell + * @throws PHPExcel_Exception + */ + public function addCacheData($pCoord, PHPExcel_Cell $cell) { + if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { + $this->_storeData(); + } + $this->_cellCache[$pCoord] = true; + + $this->_currentObjectID = $pCoord; + $this->_currentObject = $cell; + $this->_currentCellIsDirty = true; + + return $cell; + } // function addCacheData() + + + /** + * Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell? + * + * @param string $pCoord Coordinate address of the cell to check + * @return boolean + * @return boolean + */ + public function isDataSet($pCoord) { + // Check if the requested entry is the current object, or exists in the cache + if (parent::isDataSet($pCoord)) { + if ($this->_currentObjectID == $pCoord) { + return true; + } + // Check if the requested entry still exists in Memcache + $success = $this->_memcache->get($this->_cachePrefix.$pCoord.'.cache'); + if ($success === false) { + // Entry no longer exists in Memcache, so clear it from the cache array + parent::deleteCacheData($pCoord); + throw new PHPExcel_Exception('Cell entry '.$pCoord.' no longer exists in MemCache'); + } + return true; + } + return false; + } // function isDataSet() + + + /** + * Get cell at a specific coordinate + * + * @param string $pCoord Coordinate of the cell + * @throws PHPExcel_Exception + * @return PHPExcel_Cell Cell that was found, or null if not found + */ + public function getCacheData($pCoord) { + if ($pCoord === $this->_currentObjectID) { + return $this->_currentObject; + } + $this->_storeData(); + + // Check if the entry that has been requested actually exists + if (parent::isDataSet($pCoord)) { + $obj = $this->_memcache->get($this->_cachePrefix.$pCoord.'.cache'); + if ($obj === false) { + // Entry no longer exists in Memcache, so clear it from the cache array + parent::deleteCacheData($pCoord); + throw new PHPExcel_Exception('Cell entry '.$pCoord.' no longer exists in MemCache'); + } + } else { + // Return null if requested entry doesn't exist in cache + return null; + } + + // Set current entry to the requested entry + $this->_currentObjectID = $pCoord; + $this->_currentObject = unserialize($obj); + // Re-attach this as the cell's parent + $this->_currentObject->attach($this); + + // Return requested entry + return $this->_currentObject; + } // function getCacheData() + + + /** + * Get a list of all cell addresses currently held in cache + * + * @return string[] + */ + public function getCellList() { + if ($this->_currentObjectID !== null) { + $this->_storeData(); + } + + return parent::getCellList(); + } + + + /** + * Delete a cell in cache identified by coordinate address + * + * @param string $pCoord Coordinate address of the cell to delete + * @throws PHPExcel_Exception + */ + public function deleteCacheData($pCoord) { + // Delete the entry from Memcache + $this->_memcache->delete($this->_cachePrefix.$pCoord.'.cache'); + + // Delete the entry from our cell address array + parent::deleteCacheData($pCoord); + } // function deleteCacheData() + + + /** + * Clone the cell collection + * + * @param PHPExcel_Worksheet $parent The new worksheet + * @return void + */ + public function copyCellCollection(PHPExcel_Worksheet $parent) { + parent::copyCellCollection($parent); + // Get a new id for the new file name + $baseUnique = $this->_getUniqueID(); + $newCachePrefix = substr(md5($baseUnique),0,8).'.'; + $cacheList = $this->getCellList(); + foreach($cacheList as $cellID) { + if ($cellID != $this->_currentObjectID) { + $obj = $this->_memcache->get($this->_cachePrefix.$cellID.'.cache'); + if ($obj === false) { + // Entry no longer exists in Memcache, so clear it from the cache array + parent::deleteCacheData($cellID); + throw new PHPExcel_Exception('Cell entry '.$cellID.' no longer exists in MemCache'); + } + if (!$this->_memcache->add($newCachePrefix.$cellID.'.cache',$obj,NULL,$this->_cacheTime)) { + $this->__destruct(); + throw new PHPExcel_Exception('Failed to store cell '.$cellID.' in MemCache'); + } + } + } + $this->_cachePrefix = $newCachePrefix; + } // function copyCellCollection() + + + /** + * Clear the cell collection and disconnect from our parent + * + * @return void + */ + public function unsetWorksheetCells() { + if(!is_null($this->_currentObject)) { + $this->_currentObject->detach(); + $this->_currentObject = $this->_currentObjectID = null; + } + + // Flush the Memcache cache + $this->__destruct(); + + $this->_cellCache = array(); + + // detach ourself from the worksheet, so that it can then delete this object successfully + $this->_parent = null; + } // function unsetWorksheetCells() + + + /** + * Initialise this new cell collection + * + * @param PHPExcel_Worksheet $parent The worksheet for this cell collection + * @param array of mixed $arguments Additional initialisation arguments + */ + public function __construct(PHPExcel_Worksheet $parent, $arguments) { + $memcacheServer = (isset($arguments['memcacheServer'])) ? $arguments['memcacheServer'] : 'localhost'; + $memcachePort = (isset($arguments['memcachePort'])) ? $arguments['memcachePort'] : 11211; + $cacheTime = (isset($arguments['cacheTime'])) ? $arguments['cacheTime'] : 600; + + if (is_null($this->_cachePrefix)) { + $baseUnique = $this->_getUniqueID(); + $this->_cachePrefix = substr(md5($baseUnique),0,8).'.'; + + // Set a new Memcache object and connect to the Memcache server + $this->_memcache = new Memcache(); + if (!$this->_memcache->addServer($memcacheServer, $memcachePort, false, 50, 5, 5, true, array($this, 'failureCallback'))) { + throw new PHPExcel_Exception('Could not connect to MemCache server at '.$memcacheServer.':'.$memcachePort); + } + $this->_cacheTime = $cacheTime; + + parent::__construct($parent); + } + } // function __construct() + + + /** + * Memcache error handler + * + * @param string $host Memcache server + * @param integer $port Memcache port + * @throws PHPExcel_Exception + */ + public function failureCallback($host, $port) { + throw new PHPExcel_Exception('memcache '.$host.':'.$port.' failed'); + } + + + /** + * Destroy this cell collection + */ + public function __destruct() { + $cacheList = $this->getCellList(); + foreach($cacheList as $cellID) { + $this->_memcache->delete($this->_cachePrefix.$cellID.'.cache'); + } + } // function __destruct() + + /** + * Identify whether the caching method is currently available + * Some methods are dependent on the availability of certain extensions being enabled in the PHP build + * + * @return boolean + */ + public static function cacheMethodIsAvailable() { + if (!function_exists('memcache_add')) { + return false; + } + + return true; + } + +} diff --git a/admin/helpers/PHPExcel/CachedObjectStorage/Memory.php b/admin/helpers/PHPExcel/CachedObjectStorage/Memory.php new file mode 100644 index 00000000..1319a18d --- /dev/null +++ b/admin/helpers/PHPExcel/CachedObjectStorage/Memory.php @@ -0,0 +1,125 @@ +_cellCache[$pCoord] = $cell; + + // Set current entry to the new/updated entry + $this->_currentObjectID = $pCoord; + + return $cell; + } // function addCacheData() + + + /** + * Get cell at a specific coordinate + * + * @param string $pCoord Coordinate of the cell + * @throws PHPExcel_Exception + * @return PHPExcel_Cell Cell that was found, or null if not found + */ + public function getCacheData($pCoord) { + // Check if the entry that has been requested actually exists + if (!isset($this->_cellCache[$pCoord])) { + $this->_currentObjectID = NULL; + // Return null if requested entry doesn't exist in cache + return null; + } + + // Set current entry to the requested entry + $this->_currentObjectID = $pCoord; + + // Return requested entry + return $this->_cellCache[$pCoord]; + } // function getCacheData() + + + /** + * Clone the cell collection + * + * @param PHPExcel_Worksheet $parent The new worksheet + * @return void + */ + public function copyCellCollection(PHPExcel_Worksheet $parent) { + parent::copyCellCollection($parent); + + $newCollection = array(); + foreach($this->_cellCache as $k => &$cell) { + $newCollection[$k] = clone $cell; + $newCollection[$k]->attach($this); + } + + $this->_cellCache = $newCollection; + } + + + /** + * Clear the cell collection and disconnect from our parent + * + * @return void + */ + public function unsetWorksheetCells() { + // Because cells are all stored as intact objects in memory, we need to detach each one from the parent + foreach($this->_cellCache as $k => &$cell) { + $cell->detach(); + $this->_cellCache[$k] = null; + } + unset($cell); + + $this->_cellCache = array(); + + // detach ourself from the worksheet, so that it can then delete this object successfully + $this->_parent = null; + } // function unsetWorksheetCells() + +} diff --git a/admin/helpers/PHPExcel/CachedObjectStorage/MemoryGZip.php b/admin/helpers/PHPExcel/CachedObjectStorage/MemoryGZip.php new file mode 100644 index 00000000..e35563c4 --- /dev/null +++ b/admin/helpers/PHPExcel/CachedObjectStorage/MemoryGZip.php @@ -0,0 +1,137 @@ +_currentCellIsDirty && !empty($this->_currentObjectID)) { + $this->_currentObject->detach(); + + $this->_cellCache[$this->_currentObjectID] = gzdeflate(serialize($this->_currentObject)); + $this->_currentCellIsDirty = false; + } + $this->_currentObjectID = $this->_currentObject = null; + } // function _storeData() + + + /** + * Add or Update a cell in cache identified by coordinate address + * + * @param string $pCoord Coordinate address of the cell to update + * @param PHPExcel_Cell $cell Cell to update + * @return PHPExcel_Cell + * @throws PHPExcel_Exception + */ + public function addCacheData($pCoord, PHPExcel_Cell $cell) { + if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { + $this->_storeData(); + } + + $this->_currentObjectID = $pCoord; + $this->_currentObject = $cell; + $this->_currentCellIsDirty = true; + + return $cell; + } // function addCacheData() + + + /** + * Get cell at a specific coordinate + * + * @param string $pCoord Coordinate of the cell + * @throws PHPExcel_Exception + * @return PHPExcel_Cell Cell that was found, or null if not found + */ + public function getCacheData($pCoord) { + if ($pCoord === $this->_currentObjectID) { + return $this->_currentObject; + } + $this->_storeData(); + + // Check if the entry that has been requested actually exists + if (!isset($this->_cellCache[$pCoord])) { + // Return null if requested entry doesn't exist in cache + return null; + } + + // Set current entry to the requested entry + $this->_currentObjectID = $pCoord; + $this->_currentObject = unserialize(gzinflate($this->_cellCache[$pCoord])); + // Re-attach this as the cell's parent + $this->_currentObject->attach($this); + + // Return requested entry + return $this->_currentObject; + } // function getCacheData() + + + /** + * Get a list of all cell addresses currently held in cache + * + * @return string[] + */ + public function getCellList() { + if ($this->_currentObjectID !== null) { + $this->_storeData(); + } + + return parent::getCellList(); + } + + + /** + * Clear the cell collection and disconnect from our parent + * + * @return void + */ + public function unsetWorksheetCells() { + if(!is_null($this->_currentObject)) { + $this->_currentObject->detach(); + $this->_currentObject = $this->_currentObjectID = null; + } + $this->_cellCache = array(); + + // detach ourself from the worksheet, so that it can then delete this object successfully + $this->_parent = null; + } // function unsetWorksheetCells() + +} diff --git a/admin/helpers/PHPExcel/CachedObjectStorage/MemorySerialized.php b/admin/helpers/PHPExcel/CachedObjectStorage/MemorySerialized.php new file mode 100644 index 00000000..1082deae --- /dev/null +++ b/admin/helpers/PHPExcel/CachedObjectStorage/MemorySerialized.php @@ -0,0 +1,137 @@ +_currentCellIsDirty && !empty($this->_currentObjectID)) { + $this->_currentObject->detach(); + + $this->_cellCache[$this->_currentObjectID] = serialize($this->_currentObject); + $this->_currentCellIsDirty = false; + } + $this->_currentObjectID = $this->_currentObject = null; + } // function _storeData() + + + /** + * Add or Update a cell in cache identified by coordinate address + * + * @param string $pCoord Coordinate address of the cell to update + * @param PHPExcel_Cell $cell Cell to update + * @return PHPExcel_Cell + * @throws PHPExcel_Exception + */ + public function addCacheData($pCoord, PHPExcel_Cell $cell) { + if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { + $this->_storeData(); + } + + $this->_currentObjectID = $pCoord; + $this->_currentObject = $cell; + $this->_currentCellIsDirty = true; + + return $cell; + } // function addCacheData() + + + /** + * Get cell at a specific coordinate + * + * @param string $pCoord Coordinate of the cell + * @throws PHPExcel_Exception + * @return PHPExcel_Cell Cell that was found, or null if not found + */ + public function getCacheData($pCoord) { + if ($pCoord === $this->_currentObjectID) { + return $this->_currentObject; + } + $this->_storeData(); + + // Check if the entry that has been requested actually exists + if (!isset($this->_cellCache[$pCoord])) { + // Return null if requested entry doesn't exist in cache + return null; + } + + // Set current entry to the requested entry + $this->_currentObjectID = $pCoord; + $this->_currentObject = unserialize($this->_cellCache[$pCoord]); + // Re-attach this as the cell's parent + $this->_currentObject->attach($this); + + // Return requested entry + return $this->_currentObject; + } // function getCacheData() + + + /** + * Get a list of all cell addresses currently held in cache + * + * @return string[] + */ + public function getCellList() { + if ($this->_currentObjectID !== null) { + $this->_storeData(); + } + + return parent::getCellList(); + } + + + /** + * Clear the cell collection and disconnect from our parent + * + * @return void + */ + public function unsetWorksheetCells() { + if(!is_null($this->_currentObject)) { + $this->_currentObject->detach(); + $this->_currentObject = $this->_currentObjectID = null; + } + $this->_cellCache = array(); + + // detach ourself from the worksheet, so that it can then delete this object successfully + $this->_parent = null; + } // function unsetWorksheetCells() + +} diff --git a/admin/helpers/PHPExcel/CachedObjectStorage/PHPTemp.php b/admin/helpers/PHPExcel/CachedObjectStorage/PHPTemp.php new file mode 100644 index 00000000..e28429de --- /dev/null +++ b/admin/helpers/PHPExcel/CachedObjectStorage/PHPTemp.php @@ -0,0 +1,206 @@ +_currentCellIsDirty && !empty($this->_currentObjectID)) { + $this->_currentObject->detach(); + + fseek($this->_fileHandle,0,SEEK_END); + + $this->_cellCache[$this->_currentObjectID] = array( + 'ptr' => ftell($this->_fileHandle), + 'sz' => fwrite($this->_fileHandle, serialize($this->_currentObject)) + ); + $this->_currentCellIsDirty = false; + } + $this->_currentObjectID = $this->_currentObject = null; + } // function _storeData() + + + /** + * Add or Update a cell in cache identified by coordinate address + * + * @param string $pCoord Coordinate address of the cell to update + * @param PHPExcel_Cell $cell Cell to update + * @return PHPExcel_Cell + * @throws PHPExcel_Exception + */ + public function addCacheData($pCoord, PHPExcel_Cell $cell) { + if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { + $this->_storeData(); + } + + $this->_currentObjectID = $pCoord; + $this->_currentObject = $cell; + $this->_currentCellIsDirty = true; + + return $cell; + } // function addCacheData() + + + /** + * Get cell at a specific coordinate + * + * @param string $pCoord Coordinate of the cell + * @throws PHPExcel_Exception + * @return PHPExcel_Cell Cell that was found, or null if not found + */ + public function getCacheData($pCoord) { + if ($pCoord === $this->_currentObjectID) { + return $this->_currentObject; + } + $this->_storeData(); + + // Check if the entry that has been requested actually exists + if (!isset($this->_cellCache[$pCoord])) { + // Return null if requested entry doesn't exist in cache + return null; + } + + // Set current entry to the requested entry + $this->_currentObjectID = $pCoord; + fseek($this->_fileHandle,$this->_cellCache[$pCoord]['ptr']); + $this->_currentObject = unserialize(fread($this->_fileHandle,$this->_cellCache[$pCoord]['sz'])); + // Re-attach this as the cell's parent + $this->_currentObject->attach($this); + + // Return requested entry + return $this->_currentObject; + } // function getCacheData() + + + /** + * Get a list of all cell addresses currently held in cache + * + * @return string[] + */ + public function getCellList() { + if ($this->_currentObjectID !== null) { + $this->_storeData(); + } + + return parent::getCellList(); + } + + + /** + * Clone the cell collection + * + * @param PHPExcel_Worksheet $parent The new worksheet + * @return void + */ + public function copyCellCollection(PHPExcel_Worksheet $parent) { + parent::copyCellCollection($parent); + // Open a new stream for the cell cache data + $newFileHandle = fopen('php://temp/maxmemory:'.$this->_memoryCacheSize,'a+'); + // Copy the existing cell cache data to the new stream + fseek($this->_fileHandle,0); + while (!feof($this->_fileHandle)) { + fwrite($newFileHandle,fread($this->_fileHandle, 1024)); + } + $this->_fileHandle = $newFileHandle; + } // function copyCellCollection() + + + /** + * Clear the cell collection and disconnect from our parent + * + * @return void + */ + public function unsetWorksheetCells() { + if(!is_null($this->_currentObject)) { + $this->_currentObject->detach(); + $this->_currentObject = $this->_currentObjectID = null; + } + $this->_cellCache = array(); + + // detach ourself from the worksheet, so that it can then delete this object successfully + $this->_parent = null; + + // Close down the php://temp file + $this->__destruct(); + } // function unsetWorksheetCells() + + + /** + * Initialise this new cell collection + * + * @param PHPExcel_Worksheet $parent The worksheet for this cell collection + * @param array of mixed $arguments Additional initialisation arguments + */ + public function __construct(PHPExcel_Worksheet $parent, $arguments) { + $this->_memoryCacheSize = (isset($arguments['memoryCacheSize'])) ? $arguments['memoryCacheSize'] : '1MB'; + + parent::__construct($parent); + if (is_null($this->_fileHandle)) { + $this->_fileHandle = fopen('php://temp/maxmemory:'.$this->_memoryCacheSize,'a+'); + } + } // function __construct() + + + /** + * Destroy this cell collection + */ + public function __destruct() { + if (!is_null($this->_fileHandle)) { + fclose($this->_fileHandle); + } + $this->_fileHandle = null; + } // function __destruct() + +} diff --git a/admin/helpers/PHPExcel/CachedObjectStorage/SQLite.php b/admin/helpers/PHPExcel/CachedObjectStorage/SQLite.php new file mode 100644 index 00000000..dd4f0e99 --- /dev/null +++ b/admin/helpers/PHPExcel/CachedObjectStorage/SQLite.php @@ -0,0 +1,306 @@ +_currentCellIsDirty && !empty($this->_currentObjectID)) { + $this->_currentObject->detach(); + + if (!$this->_DBHandle->queryExec("INSERT OR REPLACE INTO kvp_".$this->_TableName." VALUES('".$this->_currentObjectID."','".sqlite_escape_string(serialize($this->_currentObject))."')")) + throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError())); + $this->_currentCellIsDirty = false; + } + $this->_currentObjectID = $this->_currentObject = null; + } // function _storeData() + + + /** + * Add or Update a cell in cache identified by coordinate address + * + * @param string $pCoord Coordinate address of the cell to update + * @param PHPExcel_Cell $cell Cell to update + * @return PHPExcel_Cell + * @throws PHPExcel_Exception + */ + public function addCacheData($pCoord, PHPExcel_Cell $cell) { + if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { + $this->_storeData(); + } + + $this->_currentObjectID = $pCoord; + $this->_currentObject = $cell; + $this->_currentCellIsDirty = true; + + return $cell; + } // function addCacheData() + + + /** + * Get cell at a specific coordinate + * + * @param string $pCoord Coordinate of the cell + * @throws PHPExcel_Exception + * @return PHPExcel_Cell Cell that was found, or null if not found + */ + public function getCacheData($pCoord) { + if ($pCoord === $this->_currentObjectID) { + return $this->_currentObject; + } + $this->_storeData(); + + $query = "SELECT value FROM kvp_".$this->_TableName." WHERE id='".$pCoord."'"; + $cellResultSet = $this->_DBHandle->query($query,SQLITE_ASSOC); + if ($cellResultSet === false) { + throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError())); + } elseif ($cellResultSet->numRows() == 0) { + // Return null if requested entry doesn't exist in cache + return null; + } + + // Set current entry to the requested entry + $this->_currentObjectID = $pCoord; + + $cellResult = $cellResultSet->fetchSingle(); + $this->_currentObject = unserialize($cellResult); + // Re-attach this as the cell's parent + $this->_currentObject->attach($this); + + // Return requested entry + return $this->_currentObject; + } // function getCacheData() + + + /** + * Is a value set for an indexed cell? + * + * @param string $pCoord Coordinate address of the cell to check + * @return boolean + */ + public function isDataSet($pCoord) { + if ($pCoord === $this->_currentObjectID) { + return true; + } + + // Check if the requested entry exists in the cache + $query = "SELECT id FROM kvp_".$this->_TableName." WHERE id='".$pCoord."'"; + $cellResultSet = $this->_DBHandle->query($query,SQLITE_ASSOC); + if ($cellResultSet === false) { + throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError())); + } elseif ($cellResultSet->numRows() == 0) { + // Return null if requested entry doesn't exist in cache + return false; + } + return true; + } // function isDataSet() + + + /** + * Delete a cell in cache identified by coordinate address + * + * @param string $pCoord Coordinate address of the cell to delete + * @throws PHPExcel_Exception + */ + public function deleteCacheData($pCoord) { + if ($pCoord === $this->_currentObjectID) { + $this->_currentObject->detach(); + $this->_currentObjectID = $this->_currentObject = null; + } + + // Check if the requested entry exists in the cache + $query = "DELETE FROM kvp_".$this->_TableName." WHERE id='".$pCoord."'"; + if (!$this->_DBHandle->queryExec($query)) + throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError())); + + $this->_currentCellIsDirty = false; + } // function deleteCacheData() + + + /** + * Move a cell object from one address to another + * + * @param string $fromAddress Current address of the cell to move + * @param string $toAddress Destination address of the cell to move + * @return boolean + */ + public function moveCell($fromAddress, $toAddress) { + if ($fromAddress === $this->_currentObjectID) { + $this->_currentObjectID = $toAddress; + } + + $query = "DELETE FROM kvp_".$this->_TableName." WHERE id='".$toAddress."'"; + $result = $this->_DBHandle->exec($query); + if ($result === false) + throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); + + $query = "UPDATE kvp_".$this->_TableName." SET id='".$toAddress."' WHERE id='".$fromAddress."'"; + $result = $this->_DBHandle->exec($query); + if ($result === false) + throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); + + return TRUE; + } // function moveCell() + + + /** + * Get a list of all cell addresses currently held in cache + * + * @return string[] + */ + public function getCellList() { + if ($this->_currentObjectID !== null) { + $this->_storeData(); + } + + $query = "SELECT id FROM kvp_".$this->_TableName; + $cellIdsResult = $this->_DBHandle->unbufferedQuery($query,SQLITE_ASSOC); + if ($cellIdsResult === false) + throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError())); + + $cellKeys = array(); + foreach($cellIdsResult as $row) { + $cellKeys[] = $row['id']; + } + + return $cellKeys; + } // function getCellList() + + + /** + * Clone the cell collection + * + * @param PHPExcel_Worksheet $parent The new worksheet + * @return void + */ + public function copyCellCollection(PHPExcel_Worksheet $parent) { + $this->_currentCellIsDirty; + $this->_storeData(); + + // Get a new id for the new table name + $tableName = str_replace('.','_',$this->_getUniqueID()); + if (!$this->_DBHandle->queryExec('CREATE TABLE kvp_'.$tableName.' (id VARCHAR(12) PRIMARY KEY, value BLOB) + AS SELECT * FROM kvp_'.$this->_TableName)) + throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError())); + + // Copy the existing cell cache file + $this->_TableName = $tableName; + } // function copyCellCollection() + + + /** + * Clear the cell collection and disconnect from our parent + * + * @return void + */ + public function unsetWorksheetCells() { + if(!is_null($this->_currentObject)) { + $this->_currentObject->detach(); + $this->_currentObject = $this->_currentObjectID = null; + } + // detach ourself from the worksheet, so that it can then delete this object successfully + $this->_parent = null; + + // Close down the temporary cache file + $this->__destruct(); + } // function unsetWorksheetCells() + + + /** + * Initialise this new cell collection + * + * @param PHPExcel_Worksheet $parent The worksheet for this cell collection + */ + public function __construct(PHPExcel_Worksheet $parent) { + parent::__construct($parent); + if (is_null($this->_DBHandle)) { + $this->_TableName = str_replace('.','_',$this->_getUniqueID()); + $_DBName = ':memory:'; + + $this->_DBHandle = new SQLiteDatabase($_DBName); + if ($this->_DBHandle === false) + throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError())); + if (!$this->_DBHandle->queryExec('CREATE TABLE kvp_'.$this->_TableName.' (id VARCHAR(12) PRIMARY KEY, value BLOB)')) + throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError())); + } + } // function __construct() + + + /** + * Destroy this cell collection + */ + public function __destruct() { + if (!is_null($this->_DBHandle)) { + $this->_DBHandle->queryExec('DROP TABLE kvp_'.$this->_TableName); + } + $this->_DBHandle = null; + } // function __destruct() + + + /** + * Identify whether the caching method is currently available + * Some methods are dependent on the availability of certain extensions being enabled in the PHP build + * + * @return boolean + */ + public static function cacheMethodIsAvailable() { + if (!function_exists('sqlite_open')) { + return false; + } + + return true; + } + +} diff --git a/admin/helpers/PHPExcel/CachedObjectStorage/SQLite3.php b/admin/helpers/PHPExcel/CachedObjectStorage/SQLite3.php new file mode 100644 index 00000000..bdc1d979 --- /dev/null +++ b/admin/helpers/PHPExcel/CachedObjectStorage/SQLite3.php @@ -0,0 +1,345 @@ +_currentCellIsDirty && !empty($this->_currentObjectID)) { + $this->_currentObject->detach(); + + $this->_insertQuery->bindValue('id',$this->_currentObjectID,SQLITE3_TEXT); + $this->_insertQuery->bindValue('data',serialize($this->_currentObject),SQLITE3_BLOB); + $result = $this->_insertQuery->execute(); + if ($result === false) + throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); + $this->_currentCellIsDirty = false; + } + $this->_currentObjectID = $this->_currentObject = null; + } // function _storeData() + + + /** + * Add or Update a cell in cache identified by coordinate address + * + * @param string $pCoord Coordinate address of the cell to update + * @param PHPExcel_Cell $cell Cell to update + * @return PHPExcel_Cell + * @throws PHPExcel_Exception + */ + public function addCacheData($pCoord, PHPExcel_Cell $cell) { + if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { + $this->_storeData(); + } + + $this->_currentObjectID = $pCoord; + $this->_currentObject = $cell; + $this->_currentCellIsDirty = true; + + return $cell; + } // function addCacheData() + + + /** + * Get cell at a specific coordinate + * + * @param string $pCoord Coordinate of the cell + * @throws PHPExcel_Exception + * @return PHPExcel_Cell Cell that was found, or null if not found + */ + public function getCacheData($pCoord) { + if ($pCoord === $this->_currentObjectID) { + return $this->_currentObject; + } + $this->_storeData(); + + $this->_selectQuery->bindValue('id',$pCoord,SQLITE3_TEXT); + $cellResult = $this->_selectQuery->execute(); + if ($cellResult === FALSE) { + throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); + } + $cellData = $cellResult->fetchArray(SQLITE3_ASSOC); + if ($cellData === FALSE) { + // Return null if requested entry doesn't exist in cache + return NULL; + } + + // Set current entry to the requested entry + $this->_currentObjectID = $pCoord; + + $this->_currentObject = unserialize($cellData['value']); + // Re-attach this as the cell's parent + $this->_currentObject->attach($this); + + // Return requested entry + return $this->_currentObject; + } // function getCacheData() + + + /** + * Is a value set for an indexed cell? + * + * @param string $pCoord Coordinate address of the cell to check + * @return boolean + */ + public function isDataSet($pCoord) { + if ($pCoord === $this->_currentObjectID) { + return TRUE; + } + + // Check if the requested entry exists in the cache + $this->_selectQuery->bindValue('id',$pCoord,SQLITE3_TEXT); + $cellResult = $this->_selectQuery->execute(); + if ($cellResult === FALSE) { + throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); + } + $cellData = $cellResult->fetchArray(SQLITE3_ASSOC); + + return ($cellData === FALSE) ? FALSE : TRUE; + } // function isDataSet() + + + /** + * Delete a cell in cache identified by coordinate address + * + * @param string $pCoord Coordinate address of the cell to delete + * @throws PHPExcel_Exception + */ + public function deleteCacheData($pCoord) { + if ($pCoord === $this->_currentObjectID) { + $this->_currentObject->detach(); + $this->_currentObjectID = $this->_currentObject = NULL; + } + + // Check if the requested entry exists in the cache + $this->_deleteQuery->bindValue('id',$pCoord,SQLITE3_TEXT); + $result = $this->_deleteQuery->execute(); + if ($result === FALSE) + throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); + + $this->_currentCellIsDirty = FALSE; + } // function deleteCacheData() + + + /** + * Move a cell object from one address to another + * + * @param string $fromAddress Current address of the cell to move + * @param string $toAddress Destination address of the cell to move + * @return boolean + */ + public function moveCell($fromAddress, $toAddress) { + if ($fromAddress === $this->_currentObjectID) { + $this->_currentObjectID = $toAddress; + } + + $this->_deleteQuery->bindValue('id',$toAddress,SQLITE3_TEXT); + $result = $this->_deleteQuery->execute(); + if ($result === false) + throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); + + $this->_updateQuery->bindValue('toid',$toAddress,SQLITE3_TEXT); + $this->_updateQuery->bindValue('fromid',$fromAddress,SQLITE3_TEXT); + $result = $this->_updateQuery->execute(); + if ($result === false) + throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); + + return TRUE; + } // function moveCell() + + + /** + * Get a list of all cell addresses currently held in cache + * + * @return string[] + */ + public function getCellList() { + if ($this->_currentObjectID !== null) { + $this->_storeData(); + } + + $query = "SELECT id FROM kvp_".$this->_TableName; + $cellIdsResult = $this->_DBHandle->query($query); + if ($cellIdsResult === false) + throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); + + $cellKeys = array(); + while ($row = $cellIdsResult->fetchArray(SQLITE3_ASSOC)) { + $cellKeys[] = $row['id']; + } + + return $cellKeys; + } // function getCellList() + + + /** + * Clone the cell collection + * + * @param PHPExcel_Worksheet $parent The new worksheet + * @return void + */ + public function copyCellCollection(PHPExcel_Worksheet $parent) { + $this->_currentCellIsDirty; + $this->_storeData(); + + // Get a new id for the new table name + $tableName = str_replace('.','_',$this->_getUniqueID()); + if (!$this->_DBHandle->exec('CREATE TABLE kvp_'.$tableName.' (id VARCHAR(12) PRIMARY KEY, value BLOB) + AS SELECT * FROM kvp_'.$this->_TableName)) + throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); + + // Copy the existing cell cache file + $this->_TableName = $tableName; + } // function copyCellCollection() + + + /** + * Clear the cell collection and disconnect from our parent + * + * @return void + */ + public function unsetWorksheetCells() { + if(!is_null($this->_currentObject)) { + $this->_currentObject->detach(); + $this->_currentObject = $this->_currentObjectID = null; + } + // detach ourself from the worksheet, so that it can then delete this object successfully + $this->_parent = null; + + // Close down the temporary cache file + $this->__destruct(); + } // function unsetWorksheetCells() + + + /** + * Initialise this new cell collection + * + * @param PHPExcel_Worksheet $parent The worksheet for this cell collection + */ + public function __construct(PHPExcel_Worksheet $parent) { + parent::__construct($parent); + if (is_null($this->_DBHandle)) { + $this->_TableName = str_replace('.','_',$this->_getUniqueID()); + $_DBName = ':memory:'; + + $this->_DBHandle = new SQLite3($_DBName); + if ($this->_DBHandle === false) + throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); + if (!$this->_DBHandle->exec('CREATE TABLE kvp_'.$this->_TableName.' (id VARCHAR(12) PRIMARY KEY, value BLOB)')) + throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); + } + + $this->_selectQuery = $this->_DBHandle->prepare("SELECT value FROM kvp_".$this->_TableName." WHERE id = :id"); + $this->_insertQuery = $this->_DBHandle->prepare("INSERT OR REPLACE INTO kvp_".$this->_TableName." VALUES(:id,:data)"); + $this->_updateQuery = $this->_DBHandle->prepare("UPDATE kvp_".$this->_TableName." SET id=:toId WHERE id=:fromId"); + $this->_deleteQuery = $this->_DBHandle->prepare("DELETE FROM kvp_".$this->_TableName." WHERE id = :id"); + } // function __construct() + + + /** + * Destroy this cell collection + */ + public function __destruct() { + if (!is_null($this->_DBHandle)) { + $this->_DBHandle->exec('DROP TABLE kvp_'.$this->_TableName); + $this->_DBHandle->close(); + } + $this->_DBHandle = null; + } // function __destruct() + + + /** + * Identify whether the caching method is currently available + * Some methods are dependent on the availability of certain extensions being enabled in the PHP build + * + * @return boolean + */ + public static function cacheMethodIsAvailable() { + if (!class_exists('SQLite3',FALSE)) { + return false; + } + + return true; + } + +} diff --git a/admin/helpers/PHPExcel/CachedObjectStorage/Wincache.php b/admin/helpers/PHPExcel/CachedObjectStorage/Wincache.php new file mode 100644 index 00000000..cdbef641 --- /dev/null +++ b/admin/helpers/PHPExcel/CachedObjectStorage/Wincache.php @@ -0,0 +1,294 @@ +_currentCellIsDirty && !empty($this->_currentObjectID)) { + $this->_currentObject->detach(); + + $obj = serialize($this->_currentObject); + if (wincache_ucache_exists($this->_cachePrefix.$this->_currentObjectID.'.cache')) { + if (!wincache_ucache_set($this->_cachePrefix.$this->_currentObjectID.'.cache', $obj, $this->_cacheTime)) { + $this->__destruct(); + throw new PHPExcel_Exception('Failed to store cell '.$this->_currentObjectID.' in WinCache'); + } + } else { + if (!wincache_ucache_add($this->_cachePrefix.$this->_currentObjectID.'.cache', $obj, $this->_cacheTime)) { + $this->__destruct(); + throw new PHPExcel_Exception('Failed to store cell '.$this->_currentObjectID.' in WinCache'); + } + } + $this->_currentCellIsDirty = false; + } + + $this->_currentObjectID = $this->_currentObject = null; + } // function _storeData() + + + /** + * Add or Update a cell in cache identified by coordinate address + * + * @param string $pCoord Coordinate address of the cell to update + * @param PHPExcel_Cell $cell Cell to update + * @return PHPExcel_Cell + * @throws PHPExcel_Exception + */ + public function addCacheData($pCoord, PHPExcel_Cell $cell) { + if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { + $this->_storeData(); + } + $this->_cellCache[$pCoord] = true; + + $this->_currentObjectID = $pCoord; + $this->_currentObject = $cell; + $this->_currentCellIsDirty = true; + + return $cell; + } // function addCacheData() + + + /** + * Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell? + * + * @param string $pCoord Coordinate address of the cell to check + * @return boolean + */ + public function isDataSet($pCoord) { + // Check if the requested entry is the current object, or exists in the cache + if (parent::isDataSet($pCoord)) { + if ($this->_currentObjectID == $pCoord) { + return true; + } + // Check if the requested entry still exists in cache + $success = wincache_ucache_exists($this->_cachePrefix.$pCoord.'.cache'); + if ($success === false) { + // Entry no longer exists in Wincache, so clear it from the cache array + parent::deleteCacheData($pCoord); + throw new PHPExcel_Exception('Cell entry '.$pCoord.' no longer exists in WinCache'); + } + return true; + } + return false; + } // function isDataSet() + + + /** + * Get cell at a specific coordinate + * + * @param string $pCoord Coordinate of the cell + * @throws PHPExcel_Exception + * @return PHPExcel_Cell Cell that was found, or null if not found + */ + public function getCacheData($pCoord) { + if ($pCoord === $this->_currentObjectID) { + return $this->_currentObject; + } + $this->_storeData(); + + // Check if the entry that has been requested actually exists + $obj = null; + if (parent::isDataSet($pCoord)) { + $success = false; + $obj = wincache_ucache_get($this->_cachePrefix.$pCoord.'.cache', $success); + if ($success === false) { + // Entry no longer exists in WinCache, so clear it from the cache array + parent::deleteCacheData($pCoord); + throw new PHPExcel_Exception('Cell entry '.$pCoord.' no longer exists in WinCache'); + } + } else { + // Return null if requested entry doesn't exist in cache + return null; + } + + // Set current entry to the requested entry + $this->_currentObjectID = $pCoord; + $this->_currentObject = unserialize($obj); + // Re-attach this as the cell's parent + $this->_currentObject->attach($this); + + // Return requested entry + return $this->_currentObject; + } // function getCacheData() + + + /** + * Get a list of all cell addresses currently held in cache + * + * @return string[] + */ + public function getCellList() { + if ($this->_currentObjectID !== null) { + $this->_storeData(); + } + + return parent::getCellList(); + } + + + /** + * Delete a cell in cache identified by coordinate address + * + * @param string $pCoord Coordinate address of the cell to delete + * @throws PHPExcel_Exception + */ + public function deleteCacheData($pCoord) { + // Delete the entry from Wincache + wincache_ucache_delete($this->_cachePrefix.$pCoord.'.cache'); + + // Delete the entry from our cell address array + parent::deleteCacheData($pCoord); + } // function deleteCacheData() + + + /** + * Clone the cell collection + * + * @param PHPExcel_Worksheet $parent The new worksheet + * @return void + */ + public function copyCellCollection(PHPExcel_Worksheet $parent) { + parent::copyCellCollection($parent); + // Get a new id for the new file name + $baseUnique = $this->_getUniqueID(); + $newCachePrefix = substr(md5($baseUnique),0,8).'.'; + $cacheList = $this->getCellList(); + foreach($cacheList as $cellID) { + if ($cellID != $this->_currentObjectID) { + $success = false; + $obj = wincache_ucache_get($this->_cachePrefix.$cellID.'.cache', $success); + if ($success === false) { + // Entry no longer exists in WinCache, so clear it from the cache array + parent::deleteCacheData($cellID); + throw new PHPExcel_Exception('Cell entry '.$cellID.' no longer exists in Wincache'); + } + if (!wincache_ucache_add($newCachePrefix.$cellID.'.cache', $obj, $this->_cacheTime)) { + $this->__destruct(); + throw new PHPExcel_Exception('Failed to store cell '.$cellID.' in Wincache'); + } + } + } + $this->_cachePrefix = $newCachePrefix; + } // function copyCellCollection() + + + /** + * Clear the cell collection and disconnect from our parent + * + * @return void + */ + public function unsetWorksheetCells() { + if(!is_null($this->_currentObject)) { + $this->_currentObject->detach(); + $this->_currentObject = $this->_currentObjectID = null; + } + + // Flush the WinCache cache + $this->__destruct(); + + $this->_cellCache = array(); + + // detach ourself from the worksheet, so that it can then delete this object successfully + $this->_parent = null; + } // function unsetWorksheetCells() + + + /** + * Initialise this new cell collection + * + * @param PHPExcel_Worksheet $parent The worksheet for this cell collection + * @param array of mixed $arguments Additional initialisation arguments + */ + public function __construct(PHPExcel_Worksheet $parent, $arguments) { + $cacheTime = (isset($arguments['cacheTime'])) ? $arguments['cacheTime'] : 600; + + if (is_null($this->_cachePrefix)) { + $baseUnique = $this->_getUniqueID(); + $this->_cachePrefix = substr(md5($baseUnique),0,8).'.'; + $this->_cacheTime = $cacheTime; + + parent::__construct($parent); + } + } // function __construct() + + + /** + * Destroy this cell collection + */ + public function __destruct() { + $cacheList = $this->getCellList(); + foreach($cacheList as $cellID) { + wincache_ucache_delete($this->_cachePrefix.$cellID.'.cache'); + } + } // function __destruct() + + + /** + * Identify whether the caching method is currently available + * Some methods are dependent on the availability of certain extensions being enabled in the PHP build + * + * @return boolean + */ + public static function cacheMethodIsAvailable() { + if (!function_exists('wincache_ucache_add')) { + return false; + } + + return true; + } + +} diff --git a/admin/helpers/PHPExcel/CachedObjectStorage/index.html b/admin/helpers/PHPExcel/CachedObjectStorage/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/CachedObjectStorage/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/helpers/PHPExcel/CachedObjectStorageFactory.php b/admin/helpers/PHPExcel/CachedObjectStorageFactory.php new file mode 100644 index 00000000..2da92346 --- /dev/null +++ b/admin/helpers/PHPExcel/CachedObjectStorageFactory.php @@ -0,0 +1,251 @@ + array( + ), + self::cache_in_memory_gzip => array( + ), + self::cache_in_memory_serialized => array( + ), + self::cache_igbinary => array( + ), + self::cache_to_phpTemp => array( 'memoryCacheSize' => '1MB' + ), + self::cache_to_discISAM => array( 'dir' => NULL + ), + self::cache_to_apc => array( 'cacheTime' => 600 + ), + self::cache_to_memcache => array( 'memcacheServer' => 'localhost', + 'memcachePort' => 11211, + 'cacheTime' => 600 + ), + self::cache_to_wincache => array( 'cacheTime' => 600 + ), + self::cache_to_sqlite => array( + ), + self::cache_to_sqlite3 => array( + ), + ); + + + /** + * Arguments for the active cache storage method + * + * @var array of mixed array + */ + private static $_storageMethodParameters = array(); + + + /** + * Return the current cache storage method + * + * @return string|NULL + **/ + public static function getCacheStorageMethod() + { + return self::$_cacheStorageMethod; + } // function getCacheStorageMethod() + + + /** + * Return the current cache storage class + * + * @return PHPExcel_CachedObjectStorage_ICache|NULL + **/ + public static function getCacheStorageClass() + { + return self::$_cacheStorageClass; + } // function getCacheStorageClass() + + + /** + * Return the list of all possible cache storage methods + * + * @return string[] + **/ + public static function getAllCacheStorageMethods() + { + return self::$_storageMethods; + } // function getCacheStorageMethods() + + + /** + * Return the list of all available cache storage methods + * + * @return string[] + **/ + public static function getCacheStorageMethods() + { + $activeMethods = array(); + foreach(self::$_storageMethods as $storageMethod) { + $cacheStorageClass = 'PHPExcel_CachedObjectStorage_' . $storageMethod; + if (call_user_func(array($cacheStorageClass, 'cacheMethodIsAvailable'))) { + $activeMethods[] = $storageMethod; + } + } + return $activeMethods; + } // function getCacheStorageMethods() + + + /** + * Identify the cache storage method to use + * + * @param string $method Name of the method to use for cell cacheing + * @param array of mixed $arguments Additional arguments to pass to the cell caching class + * when instantiating + * @return boolean + **/ + public static function initialize($method = self::cache_in_memory, $arguments = array()) + { + if (!in_array($method,self::$_storageMethods)) { + return FALSE; + } + + $cacheStorageClass = 'PHPExcel_CachedObjectStorage_'.$method; + if (!call_user_func(array( $cacheStorageClass, + 'cacheMethodIsAvailable'))) { + return FALSE; + } + + self::$_storageMethodParameters[$method] = self::$_storageMethodDefaultParameters[$method]; + foreach($arguments as $k => $v) { + if (array_key_exists($k, self::$_storageMethodParameters[$method])) { + self::$_storageMethodParameters[$method][$k] = $v; + } + } + + if (self::$_cacheStorageMethod === NULL) { + self::$_cacheStorageClass = 'PHPExcel_CachedObjectStorage_' . $method; + self::$_cacheStorageMethod = $method; + } + return TRUE; + } // function initialize() + + + /** + * Initialise the cache storage + * + * @param PHPExcel_Worksheet $parent Enable cell caching for this worksheet + * @return PHPExcel_CachedObjectStorage_ICache + **/ + public static function getInstance(PHPExcel_Worksheet $parent) + { + $cacheMethodIsAvailable = TRUE; + if (self::$_cacheStorageMethod === NULL) { + $cacheMethodIsAvailable = self::initialize(); + } + + if ($cacheMethodIsAvailable) { + $instance = new self::$_cacheStorageClass( $parent, + self::$_storageMethodParameters[self::$_cacheStorageMethod] + ); + if ($instance !== NULL) { + return $instance; + } + } + + return FALSE; + } // function getInstance() + + + /** + * Clear the cache storage + * + **/ + public static function finalize() + { + self::$_cacheStorageMethod = NULL; + self::$_cacheStorageClass = NULL; + self::$_storageMethodParameters = array(); + } + +} diff --git a/admin/helpers/PHPExcel/CalcEngine/CyclicReferenceStack.php b/admin/helpers/PHPExcel/CalcEngine/CyclicReferenceStack.php new file mode 100644 index 00000000..a633c2c3 --- /dev/null +++ b/admin/helpers/PHPExcel/CalcEngine/CyclicReferenceStack.php @@ -0,0 +1,98 @@ +_stack); + } + + /** + * Push a new entry onto the stack + * + * @param mixed $value + */ + public function push($value) { + $this->_stack[] = $value; + } // function push() + + /** + * Pop the last entry from the stack + * + * @return mixed + */ + public function pop() { + return array_pop($this->_stack); + } // function pop() + + /** + * Test to see if a specified entry exists on the stack + * + * @param mixed $value The value to test + */ + public function onStack($value) { + return in_array($value, $this->_stack); + } + + /** + * Clear the stack + */ + public function clear() { + $this->_stack = array(); + } // function push() + + /** + * Return an array of all entries on the stack + * + * @return mixed[] + */ + public function showStack() { + return $this->_stack; + } + +} // class PHPExcel_CalcEngine_CyclicReferenceStack diff --git a/admin/helpers/PHPExcel/CalcEngine/Logger.php b/admin/helpers/PHPExcel/CalcEngine/Logger.php new file mode 100644 index 00000000..fe43ae4f --- /dev/null +++ b/admin/helpers/PHPExcel/CalcEngine/Logger.php @@ -0,0 +1,153 @@ +_cellStack = $stack; + } + + /** + * Enable/Disable Calculation engine logging + * + * @param boolean $pValue + */ + public function setWriteDebugLog($pValue = FALSE) { + $this->_writeDebugLog = $pValue; + } + + /** + * Return whether calculation engine logging is enabled or disabled + * + * @return boolean + */ + public function getWriteDebugLog() { + return $this->_writeDebugLog; + } + + /** + * Enable/Disable echoing of debug log information + * + * @param boolean $pValue + */ + public function setEchoDebugLog($pValue = FALSE) { + $this->_echoDebugLog = $pValue; + } + + /** + * Return whether echoing of debug log information is enabled or disabled + * + * @return boolean + */ + public function getEchoDebugLog() { + return $this->_echoDebugLog; + } + + /** + * Write an entry to the calculation engine debug log + */ + public function writeDebugLog() { + // Only write the debug log if logging is enabled + if ($this->_writeDebugLog) { + $message = implode(func_get_args()); + $cellReference = implode(' -> ', $this->_cellStack->showStack()); + if ($this->_echoDebugLog) { + echo $cellReference, + ($this->_cellStack->count() > 0 ? ' => ' : ''), + $message, + PHP_EOL; + } + $this->_debugLog[] = $cellReference . + ($this->_cellStack->count() > 0 ? ' => ' : '') . + $message; + } + } // function _writeDebug() + + /** + * Clear the calculation engine debug log + */ + public function clearLog() { + $this->_debugLog = array(); + } // function flushLogger() + + /** + * Return the calculation engine debug log + * + * @return string[] + */ + public function getLog() { + return $this->_debugLog; + } // function flushLogger() + +} // class PHPExcel_CalcEngine_Logger + diff --git a/admin/helpers/PHPExcel/CalcEngine/index.html b/admin/helpers/PHPExcel/CalcEngine/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/CalcEngine/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Calculation.php b/admin/helpers/PHPExcel/Calculation.php new file mode 100644 index 00000000..fa89671f --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation.php @@ -0,0 +1,3946 @@ +=-]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?\$?([a-z]{1,3})\$?(\d{1,7})'); + // Named Range of cells + define('CALCULATION_REGEXP_NAMEDRANGE','((([^\s,!&%^\/\*\+<>=-]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?([_A-Z][_A-Z0-9\.]*)'); + } else { + // Cell reference (cell or range of cells, with or without a sheet reference) + define('CALCULATION_REGEXP_CELLREF','(((\w*)|(\'[^\']*\')|(\"[^\"]*\"))!)?\$?([a-z]{1,3})\$?(\d+)'); + // Named Range of cells + define('CALCULATION_REGEXP_NAMEDRANGE','(((\w*)|(\'.*\')|(\".*\"))!)?([_A-Z][_A-Z0-9\.]*)'); + } +} + + +/** + * PHPExcel_Calculation (Multiton) + * + * @category PHPExcel + * @package PHPExcel_Calculation + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Calculation { + + /** Constants */ + /** Regular Expressions */ + // Numeric operand + const CALCULATION_REGEXP_NUMBER = '[-+]?\d*\.?\d+(e[-+]?\d+)?'; + // String operand + const CALCULATION_REGEXP_STRING = '"(?:[^"]|"")*"'; + // Opening bracket + const CALCULATION_REGEXP_OPENBRACE = '\('; + // Function (allow for the old @ symbol that could be used to prefix a function, but we'll ignore it) + const CALCULATION_REGEXP_FUNCTION = '@?([A-Z][A-Z0-9\.]*)[\s]*\('; + // Cell reference (cell or range of cells, with or without a sheet reference) + const CALCULATION_REGEXP_CELLREF = CALCULATION_REGEXP_CELLREF; + // Named Range of cells + const CALCULATION_REGEXP_NAMEDRANGE = CALCULATION_REGEXP_NAMEDRANGE; + // Error + const CALCULATION_REGEXP_ERROR = '\#[A-Z][A-Z0_\/]*[!\?]?'; + + + /** constants */ + const RETURN_ARRAY_AS_ERROR = 'error'; + const RETURN_ARRAY_AS_VALUE = 'value'; + const RETURN_ARRAY_AS_ARRAY = 'array'; + + private static $returnArrayAsType = self::RETURN_ARRAY_AS_VALUE; + + + /** + * Instance of this class + * + * @access private + * @var PHPExcel_Calculation + */ + private static $_instance; + + + /** + * Instance of the workbook this Calculation Engine is using + * + * @access private + * @var PHPExcel + */ + private $_workbook; + + /** + * List of instances of the calculation engine that we've instantiated for individual workbooks + * + * @access private + * @var PHPExcel_Calculation[] + */ + private static $_workbookSets; + + /** + * Calculation cache + * + * @access private + * @var array + */ + private $_calculationCache = array (); + + + /** + * Calculation cache enabled + * + * @access private + * @var boolean + */ + private $_calculationCacheEnabled = TRUE; + + + /** + * List of operators that can be used within formulae + * The true/false value indicates whether it is a binary operator or a unary operator + * + * @access private + * @var array + */ + private static $_operators = array('+' => TRUE, '-' => TRUE, '*' => TRUE, '/' => TRUE, + '^' => TRUE, '&' => TRUE, '%' => FALSE, '~' => FALSE, + '>' => TRUE, '<' => TRUE, '=' => TRUE, '>=' => TRUE, + '<=' => TRUE, '<>' => TRUE, '|' => TRUE, ':' => TRUE + ); + + + /** + * List of binary operators (those that expect two operands) + * + * @access private + * @var array + */ + private static $_binaryOperators = array('+' => TRUE, '-' => TRUE, '*' => TRUE, '/' => TRUE, + '^' => TRUE, '&' => TRUE, '>' => TRUE, '<' => TRUE, + '=' => TRUE, '>=' => TRUE, '<=' => TRUE, '<>' => TRUE, + '|' => TRUE, ':' => TRUE + ); + + /** + * The debug log generated by the calculation engine + * + * @access private + * @var PHPExcel_CalcEngine_Logger + * + */ + private $debugLog; + + /** + * Flag to determine how formula errors should be handled + * If true, then a user error will be triggered + * If false, then an exception will be thrown + * + * @access public + * @var boolean + * + */ + public $suppressFormulaErrors = FALSE; + + /** + * Error message for any error that was raised/thrown by the calculation engine + * + * @access public + * @var string + * + */ + public $formulaError = NULL; + + /** + * An array of the nested cell references accessed by the calculation engine, used for the debug log + * + * @access private + * @var array of string + * + */ + private $_cyclicReferenceStack; + + private $_cellStack = array(); + + /** + * Current iteration counter for cyclic formulae + * If the value is 0 (or less) then cyclic formulae will throw an exception, + * otherwise they will iterate to the limit defined here before returning a result + * + * @var integer + * + */ + private $_cyclicFormulaCount = 0; + + private $_cyclicFormulaCell = ''; + + /** + * Number of iterations for cyclic formulae + * + * @var integer + * + */ + public $cyclicFormulaCount = 0; + + /** + * Precision used for calculations + * + * @var integer + * + */ + private $_savedPrecision = 14; + + + /** + * The current locale setting + * + * @var string + * + */ + private static $_localeLanguage = 'en_us'; // US English (default locale) + + /** + * List of available locale settings + * Note that this is read for the locale subdirectory only when requested + * + * @var string[] + * + */ + private static $_validLocaleLanguages = array( 'en' // English (default language) + ); + /** + * Locale-specific argument separator for function arguments + * + * @var string + * + */ + private static $_localeArgumentSeparator = ','; + private static $_localeFunctions = array(); + + /** + * Locale-specific translations for Excel constants (True, False and Null) + * + * @var string[] + * + */ + public static $_localeBoolean = array( 'TRUE' => 'TRUE', + 'FALSE' => 'FALSE', + 'NULL' => 'NULL' + ); + + + /** + * Excel constant string translations to their PHP equivalents + * Constant conversion from text name/value to actual (datatyped) value + * + * @var string[] + * + */ + private static $_ExcelConstants = array('TRUE' => TRUE, + 'FALSE' => FALSE, + 'NULL' => NULL + ); + + // PHPExcel functions + private static $_PHPExcelFunctions = array( // PHPExcel functions + 'ABS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'abs', + 'argumentCount' => '1' + ), + 'ACCRINT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::ACCRINT', + 'argumentCount' => '4-7' + ), + 'ACCRINTM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::ACCRINTM', + 'argumentCount' => '3-5' + ), + 'ACOS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'acos', + 'argumentCount' => '1' + ), + 'ACOSH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'acosh', + 'argumentCount' => '1' + ), + 'ADDRESS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_LookupRef::CELL_ADDRESS', + 'argumentCount' => '2-5' + ), + 'AMORDEGRC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::AMORDEGRC', + 'argumentCount' => '6,7' + ), + 'AMORLINC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::AMORLINC', + 'argumentCount' => '6,7' + ), + 'AND' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL, + 'functionCall' => 'PHPExcel_Calculation_Logical::LOGICAL_AND', + 'argumentCount' => '1+' + ), + 'AREAS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '1' + ), + 'ASC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '1' + ), + 'ASIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'asin', + 'argumentCount' => '1' + ), + 'ASINH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'asinh', + 'argumentCount' => '1' + ), + 'ATAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'atan', + 'argumentCount' => '1' + ), + 'ATAN2' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::ATAN2', + 'argumentCount' => '2' + ), + 'ATANH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'atanh', + 'argumentCount' => '1' + ), + 'AVEDEV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::AVEDEV', + 'argumentCount' => '1+' + ), + 'AVERAGE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::AVERAGE', + 'argumentCount' => '1+' + ), + 'AVERAGEA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::AVERAGEA', + 'argumentCount' => '1+' + ), + 'AVERAGEIF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::AVERAGEIF', + 'argumentCount' => '2,3' + ), + 'AVERAGEIFS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '3+' + ), + 'BAHTTEXT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '1' + ), + 'BESSELI' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::BESSELI', + 'argumentCount' => '2' + ), + 'BESSELJ' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::BESSELJ', + 'argumentCount' => '2' + ), + 'BESSELK' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::BESSELK', + 'argumentCount' => '2' + ), + 'BESSELY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::BESSELY', + 'argumentCount' => '2' + ), + 'BETADIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::BETADIST', + 'argumentCount' => '3-5' + ), + 'BETAINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::BETAINV', + 'argumentCount' => '3-5' + ), + 'BIN2DEC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::BINTODEC', + 'argumentCount' => '1' + ), + 'BIN2HEX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::BINTOHEX', + 'argumentCount' => '1,2' + ), + 'BIN2OCT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::BINTOOCT', + 'argumentCount' => '1,2' + ), + 'BINOMDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::BINOMDIST', + 'argumentCount' => '4' + ), + 'CEILING' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::CEILING', + 'argumentCount' => '2' + ), + 'CELL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '1,2' + ), + 'CHAR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::CHARACTER', + 'argumentCount' => '1' + ), + 'CHIDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::CHIDIST', + 'argumentCount' => '2' + ), + 'CHIINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::CHIINV', + 'argumentCount' => '2' + ), + 'CHITEST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '2' + ), + 'CHOOSE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_LookupRef::CHOOSE', + 'argumentCount' => '2+' + ), + 'CLEAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::TRIMNONPRINTABLE', + 'argumentCount' => '1' + ), + 'CODE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::ASCIICODE', + 'argumentCount' => '1' + ), + 'COLUMN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_LookupRef::COLUMN', + 'argumentCount' => '-1', + 'passByReference' => array(TRUE) + ), + 'COLUMNS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_LookupRef::COLUMNS', + 'argumentCount' => '1' + ), + 'COMBIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::COMBIN', + 'argumentCount' => '2' + ), + 'COMPLEX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::COMPLEX', + 'argumentCount' => '2,3' + ), + 'CONCATENATE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::CONCATENATE', + 'argumentCount' => '1+' + ), + 'CONFIDENCE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::CONFIDENCE', + 'argumentCount' => '3' + ), + 'CONVERT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::CONVERTUOM', + 'argumentCount' => '3' + ), + 'CORREL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::CORREL', + 'argumentCount' => '2' + ), + 'COS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'cos', + 'argumentCount' => '1' + ), + 'COSH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'cosh', + 'argumentCount' => '1' + ), + 'COUNT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::COUNT', + 'argumentCount' => '1+' + ), + 'COUNTA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::COUNTA', + 'argumentCount' => '1+' + ), + 'COUNTBLANK' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::COUNTBLANK', + 'argumentCount' => '1' + ), + 'COUNTIF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::COUNTIF', + 'argumentCount' => '2' + ), + 'COUNTIFS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '2' + ), + 'COUPDAYBS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::COUPDAYBS', + 'argumentCount' => '3,4' + ), + 'COUPDAYS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::COUPDAYS', + 'argumentCount' => '3,4' + ), + 'COUPDAYSNC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::COUPDAYSNC', + 'argumentCount' => '3,4' + ), + 'COUPNCD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::COUPNCD', + 'argumentCount' => '3,4' + ), + 'COUPNUM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::COUPNUM', + 'argumentCount' => '3,4' + ), + 'COUPPCD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::COUPPCD', + 'argumentCount' => '3,4' + ), + 'COVAR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::COVAR', + 'argumentCount' => '2' + ), + 'CRITBINOM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::CRITBINOM', + 'argumentCount' => '3' + ), + 'CUBEKPIMEMBER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_CUBE, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '?' + ), + 'CUBEMEMBER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_CUBE, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '?' + ), + 'CUBEMEMBERPROPERTY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_CUBE, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '?' + ), + 'CUBERANKEDMEMBER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_CUBE, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '?' + ), + 'CUBESET' => array('category' => PHPExcel_Calculation_Function::CATEGORY_CUBE, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '?' + ), + 'CUBESETCOUNT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_CUBE, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '?' + ), + 'CUBEVALUE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_CUBE, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '?' + ), + 'CUMIPMT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::CUMIPMT', + 'argumentCount' => '6' + ), + 'CUMPRINC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::CUMPRINC', + 'argumentCount' => '6' + ), + 'DATE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::DATE', + 'argumentCount' => '3' + ), + 'DATEDIF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::DATEDIF', + 'argumentCount' => '2,3' + ), + 'DATEVALUE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::DATEVALUE', + 'argumentCount' => '1' + ), + 'DAVERAGE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, + 'functionCall' => 'PHPExcel_Calculation_Database::DAVERAGE', + 'argumentCount' => '3' + ), + 'DAY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::DAYOFMONTH', + 'argumentCount' => '1' + ), + 'DAYS360' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::DAYS360', + 'argumentCount' => '2,3' + ), + 'DB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::DB', + 'argumentCount' => '4,5' + ), + 'DCOUNT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, + 'functionCall' => 'PHPExcel_Calculation_Database::DCOUNT', + 'argumentCount' => '3' + ), + 'DCOUNTA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, + 'functionCall' => 'PHPExcel_Calculation_Database::DCOUNTA', + 'argumentCount' => '3' + ), + 'DDB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::DDB', + 'argumentCount' => '4,5' + ), + 'DEC2BIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::DECTOBIN', + 'argumentCount' => '1,2' + ), + 'DEC2HEX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::DECTOHEX', + 'argumentCount' => '1,2' + ), + 'DEC2OCT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::DECTOOCT', + 'argumentCount' => '1,2' + ), + 'DEGREES' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'rad2deg', + 'argumentCount' => '1' + ), + 'DELTA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::DELTA', + 'argumentCount' => '1,2' + ), + 'DEVSQ' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::DEVSQ', + 'argumentCount' => '1+' + ), + 'DGET' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, + 'functionCall' => 'PHPExcel_Calculation_Database::DGET', + 'argumentCount' => '3' + ), + 'DISC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::DISC', + 'argumentCount' => '4,5' + ), + 'DMAX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, + 'functionCall' => 'PHPExcel_Calculation_Database::DMAX', + 'argumentCount' => '3' + ), + 'DMIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, + 'functionCall' => 'PHPExcel_Calculation_Database::DMIN', + 'argumentCount' => '3' + ), + 'DOLLAR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::DOLLAR', + 'argumentCount' => '1,2' + ), + 'DOLLARDE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::DOLLARDE', + 'argumentCount' => '2' + ), + 'DOLLARFR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::DOLLARFR', + 'argumentCount' => '2' + ), + 'DPRODUCT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, + 'functionCall' => 'PHPExcel_Calculation_Database::DPRODUCT', + 'argumentCount' => '3' + ), + 'DSTDEV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, + 'functionCall' => 'PHPExcel_Calculation_Database::DSTDEV', + 'argumentCount' => '3' + ), + 'DSTDEVP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, + 'functionCall' => 'PHPExcel_Calculation_Database::DSTDEVP', + 'argumentCount' => '3' + ), + 'DSUM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, + 'functionCall' => 'PHPExcel_Calculation_Database::DSUM', + 'argumentCount' => '3' + ), + 'DURATION' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '5,6' + ), + 'DVAR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, + 'functionCall' => 'PHPExcel_Calculation_Database::DVAR', + 'argumentCount' => '3' + ), + 'DVARP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, + 'functionCall' => 'PHPExcel_Calculation_Database::DVARP', + 'argumentCount' => '3' + ), + 'EDATE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::EDATE', + 'argumentCount' => '2' + ), + 'EFFECT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::EFFECT', + 'argumentCount' => '2' + ), + 'EOMONTH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::EOMONTH', + 'argumentCount' => '2' + ), + 'ERF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::ERF', + 'argumentCount' => '1,2' + ), + 'ERFC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::ERFC', + 'argumentCount' => '1' + ), + 'ERROR.TYPE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::ERROR_TYPE', + 'argumentCount' => '1' + ), + 'EVEN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::EVEN', + 'argumentCount' => '1' + ), + 'EXACT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '2' + ), + 'EXP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'exp', + 'argumentCount' => '1' + ), + 'EXPONDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::EXPONDIST', + 'argumentCount' => '3' + ), + 'FACT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::FACT', + 'argumentCount' => '1' + ), + 'FACTDOUBLE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::FACTDOUBLE', + 'argumentCount' => '1' + ), + 'FALSE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL, + 'functionCall' => 'PHPExcel_Calculation_Logical::FALSE', + 'argumentCount' => '0' + ), + 'FDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '3' + ), + 'FIND' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::SEARCHSENSITIVE', + 'argumentCount' => '2,3' + ), + 'FINDB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::SEARCHSENSITIVE', + 'argumentCount' => '2,3' + ), + 'FINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '3' + ), + 'FISHER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::FISHER', + 'argumentCount' => '1' + ), + 'FISHERINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::FISHERINV', + 'argumentCount' => '1' + ), + 'FIXED' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::FIXEDFORMAT', + 'argumentCount' => '1-3' + ), + 'FLOOR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::FLOOR', + 'argumentCount' => '2' + ), + 'FORECAST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::FORECAST', + 'argumentCount' => '3' + ), + 'FREQUENCY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '2' + ), + 'FTEST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '2' + ), + 'FV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::FV', + 'argumentCount' => '3-5' + ), + 'FVSCHEDULE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::FVSCHEDULE', + 'argumentCount' => '2' + ), + 'GAMMADIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::GAMMADIST', + 'argumentCount' => '4' + ), + 'GAMMAINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::GAMMAINV', + 'argumentCount' => '3' + ), + 'GAMMALN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::GAMMALN', + 'argumentCount' => '1' + ), + 'GCD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::GCD', + 'argumentCount' => '1+' + ), + 'GEOMEAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::GEOMEAN', + 'argumentCount' => '1+' + ), + 'GESTEP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::GESTEP', + 'argumentCount' => '1,2' + ), + 'GETPIVOTDATA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '2+' + ), + 'GROWTH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::GROWTH', + 'argumentCount' => '1-4' + ), + 'HARMEAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::HARMEAN', + 'argumentCount' => '1+' + ), + 'HEX2BIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::HEXTOBIN', + 'argumentCount' => '1,2' + ), + 'HEX2DEC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::HEXTODEC', + 'argumentCount' => '1' + ), + 'HEX2OCT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::HEXTOOCT', + 'argumentCount' => '1,2' + ), + 'HLOOKUP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_LookupRef::HLOOKUP', + 'argumentCount' => '3,4' + ), + 'HOUR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::HOUROFDAY', + 'argumentCount' => '1' + ), + 'HYPERLINK' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_LookupRef::HYPERLINK', + 'argumentCount' => '1,2', + 'passCellReference'=> TRUE + ), + 'HYPGEOMDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::HYPGEOMDIST', + 'argumentCount' => '4' + ), + 'IF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL, + 'functionCall' => 'PHPExcel_Calculation_Logical::STATEMENT_IF', + 'argumentCount' => '1-3' + ), + 'IFERROR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL, + 'functionCall' => 'PHPExcel_Calculation_Logical::IFERROR', + 'argumentCount' => '2' + ), + 'IMABS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMABS', + 'argumentCount' => '1' + ), + 'IMAGINARY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMAGINARY', + 'argumentCount' => '1' + ), + 'IMARGUMENT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMARGUMENT', + 'argumentCount' => '1' + ), + 'IMCONJUGATE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMCONJUGATE', + 'argumentCount' => '1' + ), + 'IMCOS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMCOS', + 'argumentCount' => '1' + ), + 'IMDIV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMDIV', + 'argumentCount' => '2' + ), + 'IMEXP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMEXP', + 'argumentCount' => '1' + ), + 'IMLN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMLN', + 'argumentCount' => '1' + ), + 'IMLOG10' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMLOG10', + 'argumentCount' => '1' + ), + 'IMLOG2' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMLOG2', + 'argumentCount' => '1' + ), + 'IMPOWER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMPOWER', + 'argumentCount' => '2' + ), + 'IMPRODUCT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMPRODUCT', + 'argumentCount' => '1+' + ), + 'IMREAL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMREAL', + 'argumentCount' => '1' + ), + 'IMSIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMSIN', + 'argumentCount' => '1' + ), + 'IMSQRT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMSQRT', + 'argumentCount' => '1' + ), + 'IMSUB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMSUB', + 'argumentCount' => '2' + ), + 'IMSUM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::IMSUM', + 'argumentCount' => '1+' + ), + 'INDEX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_LookupRef::INDEX', + 'argumentCount' => '1-4' + ), + 'INDIRECT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_LookupRef::INDIRECT', + 'argumentCount' => '1,2', + 'passCellReference'=> TRUE + ), + 'INFO' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '1' + ), + 'INT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::INT', + 'argumentCount' => '1' + ), + 'INTERCEPT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::INTERCEPT', + 'argumentCount' => '2' + ), + 'INTRATE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::INTRATE', + 'argumentCount' => '4,5' + ), + 'IPMT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::IPMT', + 'argumentCount' => '4-6' + ), + 'IRR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::IRR', + 'argumentCount' => '1,2' + ), + 'ISBLANK' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::IS_BLANK', + 'argumentCount' => '1' + ), + 'ISERR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::IS_ERR', + 'argumentCount' => '1' + ), + 'ISERROR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::IS_ERROR', + 'argumentCount' => '1' + ), + 'ISEVEN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::IS_EVEN', + 'argumentCount' => '1' + ), + 'ISLOGICAL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::IS_LOGICAL', + 'argumentCount' => '1' + ), + 'ISNA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::IS_NA', + 'argumentCount' => '1' + ), + 'ISNONTEXT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::IS_NONTEXT', + 'argumentCount' => '1' + ), + 'ISNUMBER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::IS_NUMBER', + 'argumentCount' => '1' + ), + 'ISODD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::IS_ODD', + 'argumentCount' => '1' + ), + 'ISPMT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::ISPMT', + 'argumentCount' => '4' + ), + 'ISREF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '1' + ), + 'ISTEXT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::IS_TEXT', + 'argumentCount' => '1' + ), + 'JIS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '1' + ), + 'KURT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::KURT', + 'argumentCount' => '1+' + ), + 'LARGE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::LARGE', + 'argumentCount' => '2' + ), + 'LCM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::LCM', + 'argumentCount' => '1+' + ), + 'LEFT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::LEFT', + 'argumentCount' => '1,2' + ), + 'LEFTB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::LEFT', + 'argumentCount' => '1,2' + ), + 'LEN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::STRINGLENGTH', + 'argumentCount' => '1' + ), + 'LENB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::STRINGLENGTH', + 'argumentCount' => '1' + ), + 'LINEST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::LINEST', + 'argumentCount' => '1-4' + ), + 'LN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'log', + 'argumentCount' => '1' + ), + 'LOG' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::LOG_BASE', + 'argumentCount' => '1,2' + ), + 'LOG10' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'log10', + 'argumentCount' => '1' + ), + 'LOGEST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::LOGEST', + 'argumentCount' => '1-4' + ), + 'LOGINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::LOGINV', + 'argumentCount' => '3' + ), + 'LOGNORMDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::LOGNORMDIST', + 'argumentCount' => '3' + ), + 'LOOKUP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_LookupRef::LOOKUP', + 'argumentCount' => '2,3' + ), + 'LOWER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::LOWERCASE', + 'argumentCount' => '1' + ), + 'MATCH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_LookupRef::MATCH', + 'argumentCount' => '2,3' + ), + 'MAX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::MAX', + 'argumentCount' => '1+' + ), + 'MAXA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::MAXA', + 'argumentCount' => '1+' + ), + 'MAXIF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::MAXIF', + 'argumentCount' => '2+' + ), + 'MDETERM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::MDETERM', + 'argumentCount' => '1' + ), + 'MDURATION' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '5,6' + ), + 'MEDIAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::MEDIAN', + 'argumentCount' => '1+' + ), + 'MEDIANIF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '2+' + ), + 'MID' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::MID', + 'argumentCount' => '3' + ), + 'MIDB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::MID', + 'argumentCount' => '3' + ), + 'MIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::MIN', + 'argumentCount' => '1+' + ), + 'MINA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::MINA', + 'argumentCount' => '1+' + ), + 'MINIF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::MINIF', + 'argumentCount' => '2+' + ), + 'MINUTE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::MINUTEOFHOUR', + 'argumentCount' => '1' + ), + 'MINVERSE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::MINVERSE', + 'argumentCount' => '1' + ), + 'MIRR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::MIRR', + 'argumentCount' => '3' + ), + 'MMULT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::MMULT', + 'argumentCount' => '2' + ), + 'MOD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::MOD', + 'argumentCount' => '2' + ), + 'MODE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::MODE', + 'argumentCount' => '1+' + ), + 'MONTH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::MONTHOFYEAR', + 'argumentCount' => '1' + ), + 'MROUND' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::MROUND', + 'argumentCount' => '2' + ), + 'MULTINOMIAL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::MULTINOMIAL', + 'argumentCount' => '1+' + ), + 'N' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::N', + 'argumentCount' => '1' + ), + 'NA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::NA', + 'argumentCount' => '0' + ), + 'NEGBINOMDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::NEGBINOMDIST', + 'argumentCount' => '3' + ), + 'NETWORKDAYS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::NETWORKDAYS', + 'argumentCount' => '2+' + ), + 'NOMINAL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::NOMINAL', + 'argumentCount' => '2' + ), + 'NORMDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::NORMDIST', + 'argumentCount' => '4' + ), + 'NORMINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::NORMINV', + 'argumentCount' => '3' + ), + 'NORMSDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::NORMSDIST', + 'argumentCount' => '1' + ), + 'NORMSINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::NORMSINV', + 'argumentCount' => '1' + ), + 'NOT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL, + 'functionCall' => 'PHPExcel_Calculation_Logical::NOT', + 'argumentCount' => '1' + ), + 'NOW' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::DATETIMENOW', + 'argumentCount' => '0' + ), + 'NPER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::NPER', + 'argumentCount' => '3-5' + ), + 'NPV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::NPV', + 'argumentCount' => '2+' + ), + 'OCT2BIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::OCTTOBIN', + 'argumentCount' => '1,2' + ), + 'OCT2DEC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::OCTTODEC', + 'argumentCount' => '1' + ), + 'OCT2HEX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, + 'functionCall' => 'PHPExcel_Calculation_Engineering::OCTTOHEX', + 'argumentCount' => '1,2' + ), + 'ODD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::ODD', + 'argumentCount' => '1' + ), + 'ODDFPRICE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '8,9' + ), + 'ODDFYIELD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '8,9' + ), + 'ODDLPRICE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '7,8' + ), + 'ODDLYIELD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '7,8' + ), + 'OFFSET' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_LookupRef::OFFSET', + 'argumentCount' => '3,5', + 'passCellReference'=> TRUE, + 'passByReference' => array(TRUE) + ), + 'OR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL, + 'functionCall' => 'PHPExcel_Calculation_Logical::LOGICAL_OR', + 'argumentCount' => '1+' + ), + 'PEARSON' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::CORREL', + 'argumentCount' => '2' + ), + 'PERCENTILE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::PERCENTILE', + 'argumentCount' => '2' + ), + 'PERCENTRANK' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::PERCENTRANK', + 'argumentCount' => '2,3' + ), + 'PERMUT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::PERMUT', + 'argumentCount' => '2' + ), + 'PHONETIC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '1' + ), + 'PI' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'pi', + 'argumentCount' => '0' + ), + 'PMT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::PMT', + 'argumentCount' => '3-5' + ), + 'POISSON' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::POISSON', + 'argumentCount' => '3' + ), + 'POWER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::POWER', + 'argumentCount' => '2' + ), + 'PPMT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::PPMT', + 'argumentCount' => '4-6' + ), + 'PRICE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::PRICE', + 'argumentCount' => '6,7' + ), + 'PRICEDISC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::PRICEDISC', + 'argumentCount' => '4,5' + ), + 'PRICEMAT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::PRICEMAT', + 'argumentCount' => '5,6' + ), + 'PROB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '3,4' + ), + 'PRODUCT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::PRODUCT', + 'argumentCount' => '1+' + ), + 'PROPER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::PROPERCASE', + 'argumentCount' => '1' + ), + 'PV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::PV', + 'argumentCount' => '3-5' + ), + 'QUARTILE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::QUARTILE', + 'argumentCount' => '2' + ), + 'QUOTIENT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::QUOTIENT', + 'argumentCount' => '2' + ), + 'RADIANS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'deg2rad', + 'argumentCount' => '1' + ), + 'RAND' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::RAND', + 'argumentCount' => '0' + ), + 'RANDBETWEEN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::RAND', + 'argumentCount' => '2' + ), + 'RANK' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::RANK', + 'argumentCount' => '2,3' + ), + 'RATE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::RATE', + 'argumentCount' => '3-6' + ), + 'RECEIVED' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::RECEIVED', + 'argumentCount' => '4-5' + ), + 'REPLACE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::REPLACE', + 'argumentCount' => '4' + ), + 'REPLACEB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::REPLACE', + 'argumentCount' => '4' + ), + 'REPT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'str_repeat', + 'argumentCount' => '2' + ), + 'RIGHT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::RIGHT', + 'argumentCount' => '1,2' + ), + 'RIGHTB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::RIGHT', + 'argumentCount' => '1,2' + ), + 'ROMAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::ROMAN', + 'argumentCount' => '1,2' + ), + 'ROUND' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'round', + 'argumentCount' => '2' + ), + 'ROUNDDOWN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::ROUNDDOWN', + 'argumentCount' => '2' + ), + 'ROUNDUP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::ROUNDUP', + 'argumentCount' => '2' + ), + 'ROW' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_LookupRef::ROW', + 'argumentCount' => '-1', + 'passByReference' => array(TRUE) + ), + 'ROWS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_LookupRef::ROWS', + 'argumentCount' => '1' + ), + 'RSQ' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::RSQ', + 'argumentCount' => '2' + ), + 'RTD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '1+' + ), + 'SEARCH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::SEARCHINSENSITIVE', + 'argumentCount' => '2,3' + ), + 'SEARCHB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::SEARCHINSENSITIVE', + 'argumentCount' => '2,3' + ), + 'SECOND' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::SECONDOFMINUTE', + 'argumentCount' => '1' + ), + 'SERIESSUM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::SERIESSUM', + 'argumentCount' => '4' + ), + 'SIGN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::SIGN', + 'argumentCount' => '1' + ), + 'SIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'sin', + 'argumentCount' => '1' + ), + 'SINH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'sinh', + 'argumentCount' => '1' + ), + 'SKEW' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::SKEW', + 'argumentCount' => '1+' + ), + 'SLN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::SLN', + 'argumentCount' => '3' + ), + 'SLOPE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::SLOPE', + 'argumentCount' => '2' + ), + 'SMALL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::SMALL', + 'argumentCount' => '2' + ), + 'SQRT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'sqrt', + 'argumentCount' => '1' + ), + 'SQRTPI' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::SQRTPI', + 'argumentCount' => '1' + ), + 'STANDARDIZE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::STANDARDIZE', + 'argumentCount' => '3' + ), + 'STDEV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::STDEV', + 'argumentCount' => '1+' + ), + 'STDEVA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::STDEVA', + 'argumentCount' => '1+' + ), + 'STDEVP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::STDEVP', + 'argumentCount' => '1+' + ), + 'STDEVPA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::STDEVPA', + 'argumentCount' => '1+' + ), + 'STEYX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::STEYX', + 'argumentCount' => '2' + ), + 'SUBSTITUTE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::SUBSTITUTE', + 'argumentCount' => '3,4' + ), + 'SUBTOTAL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUBTOTAL', + 'argumentCount' => '2+' + ), + 'SUM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUM', + 'argumentCount' => '1+' + ), + 'SUMIF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUMIF', + 'argumentCount' => '2,3' + ), + 'SUMIFS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '?' + ), + 'SUMPRODUCT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUMPRODUCT', + 'argumentCount' => '1+' + ), + 'SUMSQ' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUMSQ', + 'argumentCount' => '1+' + ), + 'SUMX2MY2' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUMX2MY2', + 'argumentCount' => '2' + ), + 'SUMX2PY2' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUMX2PY2', + 'argumentCount' => '2' + ), + 'SUMXMY2' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUMXMY2', + 'argumentCount' => '2' + ), + 'SYD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::SYD', + 'argumentCount' => '4' + ), + 'T' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::RETURNSTRING', + 'argumentCount' => '1' + ), + 'TAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'tan', + 'argumentCount' => '1' + ), + 'TANH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'tanh', + 'argumentCount' => '1' + ), + 'TBILLEQ' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::TBILLEQ', + 'argumentCount' => '3' + ), + 'TBILLPRICE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::TBILLPRICE', + 'argumentCount' => '3' + ), + 'TBILLYIELD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::TBILLYIELD', + 'argumentCount' => '3' + ), + 'TDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::TDIST', + 'argumentCount' => '3' + ), + 'TEXT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::TEXTFORMAT', + 'argumentCount' => '2' + ), + 'TIME' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::TIME', + 'argumentCount' => '3' + ), + 'TIMEVALUE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::TIMEVALUE', + 'argumentCount' => '1' + ), + 'TINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::TINV', + 'argumentCount' => '2' + ), + 'TODAY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::DATENOW', + 'argumentCount' => '0' + ), + 'TRANSPOSE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_LookupRef::TRANSPOSE', + 'argumentCount' => '1' + ), + 'TREND' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::TREND', + 'argumentCount' => '1-4' + ), + 'TRIM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::TRIMSPACES', + 'argumentCount' => '1' + ), + 'TRIMMEAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::TRIMMEAN', + 'argumentCount' => '2' + ), + 'TRUE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL, + 'functionCall' => 'PHPExcel_Calculation_Logical::TRUE', + 'argumentCount' => '0' + ), + 'TRUNC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, + 'functionCall' => 'PHPExcel_Calculation_MathTrig::TRUNC', + 'argumentCount' => '1,2' + ), + 'TTEST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '4' + ), + 'TYPE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::TYPE', + 'argumentCount' => '1' + ), + 'UPPER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::UPPERCASE', + 'argumentCount' => '1' + ), + 'USDOLLAR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '2' + ), + 'VALUE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, + 'functionCall' => 'PHPExcel_Calculation_TextData::VALUE', + 'argumentCount' => '1' + ), + 'VAR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::VARFunc', + 'argumentCount' => '1+' + ), + 'VARA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::VARA', + 'argumentCount' => '1+' + ), + 'VARP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::VARP', + 'argumentCount' => '1+' + ), + 'VARPA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::VARPA', + 'argumentCount' => '1+' + ), + 'VDB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '5-7' + ), + 'VERSION' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, + 'functionCall' => 'PHPExcel_Calculation_Functions::VERSION', + 'argumentCount' => '0' + ), + 'VLOOKUP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, + 'functionCall' => 'PHPExcel_Calculation_LookupRef::VLOOKUP', + 'argumentCount' => '3,4' + ), + 'WEEKDAY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::DAYOFWEEK', + 'argumentCount' => '1,2' + ), + 'WEEKNUM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::WEEKOFYEAR', + 'argumentCount' => '1,2' + ), + 'WEIBULL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::WEIBULL', + 'argumentCount' => '4' + ), + 'WORKDAY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::WORKDAY', + 'argumentCount' => '2+' + ), + 'XIRR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::XIRR', + 'argumentCount' => '2,3' + ), + 'XNPV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::XNPV', + 'argumentCount' => '3' + ), + 'YEAR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::YEAR', + 'argumentCount' => '1' + ), + 'YEARFRAC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, + 'functionCall' => 'PHPExcel_Calculation_DateTime::YEARFRAC', + 'argumentCount' => '2,3' + ), + 'YIELD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', + 'argumentCount' => '6,7' + ), + 'YIELDDISC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::YIELDDISC', + 'argumentCount' => '4,5' + ), + 'YIELDMAT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, + 'functionCall' => 'PHPExcel_Calculation_Financial::YIELDMAT', + 'argumentCount' => '5,6' + ), + 'ZTEST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, + 'functionCall' => 'PHPExcel_Calculation_Statistical::ZTEST', + 'argumentCount' => '2-3' + ) + ); + + + // Internal functions used for special control purposes + private static $_controlFunctions = array( + 'MKMATRIX' => array('argumentCount' => '*', + 'functionCall' => 'self::_mkMatrix' + ) + ); + + + + + private function __construct(PHPExcel $workbook = NULL) { + $setPrecision = (PHP_INT_SIZE == 4) ? 14 : 16; + $this->_savedPrecision = ini_get('precision'); + if ($this->_savedPrecision < $setPrecision) { + ini_set('precision',$setPrecision); + } + + if ($workbook !== NULL) { + self::$_workbookSets[$workbook->getID()] = $this; + } + + $this->_workbook = $workbook; + $this->_cyclicReferenceStack = new PHPExcel_CalcEngine_CyclicReferenceStack(); + $this->_debugLog = new PHPExcel_CalcEngine_Logger($this->_cyclicReferenceStack); + } // function __construct() + + + public function __destruct() { + if ($this->_savedPrecision != ini_get('precision')) { + ini_set('precision',$this->_savedPrecision); + } + } + + private static function _loadLocales() { + $localeFileDirectory = PHPEXCEL_ROOT.'PHPExcel/locale/'; + foreach (glob($localeFileDirectory.'/*',GLOB_ONLYDIR) as $filename) { + $filename = substr($filename,strlen($localeFileDirectory)+1); + if ($filename != 'en') { + self::$_validLocaleLanguages[] = $filename; + } + } + } + + /** + * Get an instance of this class + * + * @access public + * @param PHPExcel $workbook Injected workbook for working with a PHPExcel object, + * or NULL to create a standalone claculation engine + * @return PHPExcel_Calculation + */ + public static function getInstance(PHPExcel $workbook = NULL) { + if ($workbook !== NULL) { + if (isset(self::$_workbookSets[$workbook->getID()])) { + return self::$_workbookSets[$workbook->getID()]; + } + return new PHPExcel_Calculation($workbook); + } + + if (!isset(self::$_instance) || (self::$_instance === NULL)) { + self::$_instance = new PHPExcel_Calculation(); + } + + return self::$_instance; + } // function getInstance() + + /** + * Unset an instance of this class + * + * @access public + * @param PHPExcel $workbook Injected workbook identifying the instance to unset + */ + public static function unsetInstance(PHPExcel $workbook = NULL) { + if ($workbook !== NULL) { + if (isset(self::$_workbookSets[$workbook->getID()])) { + unset(self::$_workbookSets[$workbook->getID()]); + } + } + } + + /** + * Flush the calculation cache for any existing instance of this class + * but only if a PHPExcel_Calculation instance exists + * + * @access public + * @return null + */ + public function flushInstance() { + $this->clearCalculationCache(); + } // function flushInstance() + + + /** + * Get the debuglog for this claculation engine instance + * + * @access public + * @return PHPExcel_CalcEngine_Logger + */ + public function getDebugLog() { + return $this->_debugLog; + } + + /** + * __clone implementation. Cloning should not be allowed in a Singleton! + * + * @access public + * @throws PHPExcel_Calculation_Exception + */ + public final function __clone() { + throw new PHPExcel_Calculation_Exception ('Cloning the calculation engine is not allowed!'); + } // function __clone() + + + /** + * Return the locale-specific translation of TRUE + * + * @access public + * @return string locale-specific translation of TRUE + */ + public static function getTRUE() { + return self::$_localeBoolean['TRUE']; + } + + /** + * Return the locale-specific translation of FALSE + * + * @access public + * @return string locale-specific translation of FALSE + */ + public static function getFALSE() { + return self::$_localeBoolean['FALSE']; + } + + /** + * Set the Array Return Type (Array or Value of first element in the array) + * + * @access public + * @param string $returnType Array return type + * @return boolean Success or failure + */ + public static function setArrayReturnType($returnType) { + if (($returnType == self::RETURN_ARRAY_AS_VALUE) || + ($returnType == self::RETURN_ARRAY_AS_ERROR) || + ($returnType == self::RETURN_ARRAY_AS_ARRAY)) { + self::$returnArrayAsType = $returnType; + return TRUE; + } + return FALSE; + } // function setArrayReturnType() + + + /** + * Return the Array Return Type (Array or Value of first element in the array) + * + * @access public + * @return string $returnType Array return type + */ + public static function getArrayReturnType() { + return self::$returnArrayAsType; + } // function getArrayReturnType() + + + /** + * Is calculation caching enabled? + * + * @access public + * @return boolean + */ + public function getCalculationCacheEnabled() { + return $this->_calculationCacheEnabled; + } // function getCalculationCacheEnabled() + + /** + * Enable/disable calculation cache + * + * @access public + * @param boolean $pValue + */ + public function setCalculationCacheEnabled($pValue = TRUE) { + $this->_calculationCacheEnabled = $pValue; + $this->clearCalculationCache(); + } // function setCalculationCacheEnabled() + + + /** + * Enable calculation cache + */ + public function enableCalculationCache() { + $this->setCalculationCacheEnabled(TRUE); + } // function enableCalculationCache() + + + /** + * Disable calculation cache + */ + public function disableCalculationCache() { + $this->setCalculationCacheEnabled(FALSE); + } // function disableCalculationCache() + + + /** + * Clear calculation cache + */ + public function clearCalculationCache() { + $this->_calculationCache = array(); + } // function clearCalculationCache() + + /** + * Clear calculation cache for a specified worksheet + * + * @param string $worksheetName + */ + public function clearCalculationCacheForWorksheet($worksheetName) { + if (isset($this->_calculationCache[$worksheetName])) { + unset($this->_calculationCache[$worksheetName]); + } + } // function clearCalculationCacheForWorksheet() + + /** + * Rename calculation cache for a specified worksheet + * + * @param string $fromWorksheetName + * @param string $toWorksheetName + */ + public function renameCalculationCacheForWorksheet($fromWorksheetName, $toWorksheetName) { + if (isset($this->_calculationCache[$fromWorksheetName])) { + $this->_calculationCache[$toWorksheetName] = &$this->_calculationCache[$fromWorksheetName]; + unset($this->_calculationCache[$fromWorksheetName]); + } + } // function renameCalculationCacheForWorksheet() + + + /** + * Get the currently defined locale code + * + * @return string + */ + public function getLocale() { + return self::$_localeLanguage; + } // function getLocale() + + + /** + * Set the locale code + * + * @param string $locale The locale to use for formula translation + * @return boolean + */ + public function setLocale($locale = 'en_us') { + // Identify our locale and language + $language = $locale = strtolower($locale); + if (strpos($locale,'_') !== FALSE) { + list($language) = explode('_',$locale); + } + + if (count(self::$_validLocaleLanguages) == 1) + self::_loadLocales(); + + // Test whether we have any language data for this language (any locale) + if (in_array($language,self::$_validLocaleLanguages)) { + // initialise language/locale settings + self::$_localeFunctions = array(); + self::$_localeArgumentSeparator = ','; + self::$_localeBoolean = array('TRUE' => 'TRUE', 'FALSE' => 'FALSE', 'NULL' => 'NULL'); + // Default is English, if user isn't requesting english, then read the necessary data from the locale files + if ($locale != 'en_us') { + // Search for a file with a list of function names for locale + $functionNamesFile = PHPEXCEL_ROOT . 'PHPExcel'.DIRECTORY_SEPARATOR.'locale'.DIRECTORY_SEPARATOR.str_replace('_',DIRECTORY_SEPARATOR,$locale).DIRECTORY_SEPARATOR.'functions'; + if (!file_exists($functionNamesFile)) { + // If there isn't a locale specific function file, look for a language specific function file + $functionNamesFile = PHPEXCEL_ROOT . 'PHPExcel'.DIRECTORY_SEPARATOR.'locale'.DIRECTORY_SEPARATOR.$language.DIRECTORY_SEPARATOR.'functions'; + if (!file_exists($functionNamesFile)) { + return FALSE; + } + } + // Retrieve the list of locale or language specific function names + $localeFunctions = file($functionNamesFile,FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); + foreach ($localeFunctions as $localeFunction) { + list($localeFunction) = explode('##',$localeFunction); // Strip out comments + if (strpos($localeFunction,'=') !== FALSE) { + list($fName,$lfName) = explode('=',$localeFunction); + $fName = trim($fName); + $lfName = trim($lfName); + if ((isset(self::$_PHPExcelFunctions[$fName])) && ($lfName != '') && ($fName != $lfName)) { + self::$_localeFunctions[$fName] = $lfName; + } + } + } + // Default the TRUE and FALSE constants to the locale names of the TRUE() and FALSE() functions + if (isset(self::$_localeFunctions['TRUE'])) { self::$_localeBoolean['TRUE'] = self::$_localeFunctions['TRUE']; } + if (isset(self::$_localeFunctions['FALSE'])) { self::$_localeBoolean['FALSE'] = self::$_localeFunctions['FALSE']; } + + $configFile = PHPEXCEL_ROOT . 'PHPExcel'.DIRECTORY_SEPARATOR.'locale'.DIRECTORY_SEPARATOR.str_replace('_',DIRECTORY_SEPARATOR,$locale).DIRECTORY_SEPARATOR.'config'; + if (!file_exists($configFile)) { + $configFile = PHPEXCEL_ROOT . 'PHPExcel'.DIRECTORY_SEPARATOR.'locale'.DIRECTORY_SEPARATOR.$language.DIRECTORY_SEPARATOR.'config'; + } + if (file_exists($configFile)) { + $localeSettings = file($configFile,FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); + foreach ($localeSettings as $localeSetting) { + list($localeSetting) = explode('##',$localeSetting); // Strip out comments + if (strpos($localeSetting,'=') !== FALSE) { + list($settingName,$settingValue) = explode('=',$localeSetting); + $settingName = strtoupper(trim($settingName)); + switch ($settingName) { + case 'ARGUMENTSEPARATOR' : + self::$_localeArgumentSeparator = trim($settingValue); + break; + } + } + } + } + } + + self::$functionReplaceFromExcel = self::$functionReplaceToExcel = + self::$functionReplaceFromLocale = self::$functionReplaceToLocale = NULL; + self::$_localeLanguage = $locale; + return TRUE; + } + return FALSE; + } // function setLocale() + + + + public static function _translateSeparator($fromSeparator,$toSeparator,$formula,&$inBraces) { + $strlen = mb_strlen($formula); + for ($i = 0; $i < $strlen; ++$i) { + $chr = mb_substr($formula,$i,1); + switch ($chr) { + case '{' : $inBraces = TRUE; + break; + case '}' : $inBraces = FALSE; + break; + case $fromSeparator : + if (!$inBraces) { + $formula = mb_substr($formula,0,$i).$toSeparator.mb_substr($formula,$i+1); + } + } + } + return $formula; + } + + private static function _translateFormula($from,$to,$formula,$fromSeparator,$toSeparator) { + // Convert any Excel function names to the required language + if (self::$_localeLanguage !== 'en_us') { + $inBraces = FALSE; + // If there is the possibility of braces within a quoted string, then we don't treat those as matrix indicators + if (strpos($formula,'"') !== FALSE) { + // So instead we skip replacing in any quoted strings by only replacing in every other array element after we've exploded + // the formula + $temp = explode('"',$formula); + $i = FALSE; + foreach($temp as &$value) { + // Only count/replace in alternating array entries + if ($i = !$i) { + $value = preg_replace($from,$to,$value); + $value = self::_translateSeparator($fromSeparator,$toSeparator,$value,$inBraces); + } + } + unset($value); + // Then rebuild the formula string + $formula = implode('"',$temp); + } else { + // If there's no quoted strings, then we do a simple count/replace + $formula = preg_replace($from,$to,$formula); + $formula = self::_translateSeparator($fromSeparator,$toSeparator,$formula,$inBraces); + } + } + + return $formula; + } + + private static $functionReplaceFromExcel = NULL; + private static $functionReplaceToLocale = NULL; + + public function _translateFormulaToLocale($formula) { + if (self::$functionReplaceFromExcel === NULL) { + self::$functionReplaceFromExcel = array(); + foreach(array_keys(self::$_localeFunctions) as $excelFunctionName) { + self::$functionReplaceFromExcel[] = '/(@?[^\w\.])'.preg_quote($excelFunctionName).'([\s]*\()/Ui'; + } + foreach(array_keys(self::$_localeBoolean) as $excelBoolean) { + self::$functionReplaceFromExcel[] = '/(@?[^\w\.])'.preg_quote($excelBoolean).'([^\w\.])/Ui'; + } + + } + + if (self::$functionReplaceToLocale === NULL) { + self::$functionReplaceToLocale = array(); + foreach(array_values(self::$_localeFunctions) as $localeFunctionName) { + self::$functionReplaceToLocale[] = '$1'.trim($localeFunctionName).'$2'; + } + foreach(array_values(self::$_localeBoolean) as $localeBoolean) { + self::$functionReplaceToLocale[] = '$1'.trim($localeBoolean).'$2'; + } + } + + return self::_translateFormula(self::$functionReplaceFromExcel,self::$functionReplaceToLocale,$formula,',',self::$_localeArgumentSeparator); + } // function _translateFormulaToLocale() + + + private static $functionReplaceFromLocale = NULL; + private static $functionReplaceToExcel = NULL; + + public function _translateFormulaToEnglish($formula) { + if (self::$functionReplaceFromLocale === NULL) { + self::$functionReplaceFromLocale = array(); + foreach(array_values(self::$_localeFunctions) as $localeFunctionName) { + self::$functionReplaceFromLocale[] = '/(@?[^\w\.])'.preg_quote($localeFunctionName).'([\s]*\()/Ui'; + } + foreach(array_values(self::$_localeBoolean) as $excelBoolean) { + self::$functionReplaceFromLocale[] = '/(@?[^\w\.])'.preg_quote($excelBoolean).'([^\w\.])/Ui'; + } + } + + if (self::$functionReplaceToExcel === NULL) { + self::$functionReplaceToExcel = array(); + foreach(array_keys(self::$_localeFunctions) as $excelFunctionName) { + self::$functionReplaceToExcel[] = '$1'.trim($excelFunctionName).'$2'; + } + foreach(array_keys(self::$_localeBoolean) as $excelBoolean) { + self::$functionReplaceToExcel[] = '$1'.trim($excelBoolean).'$2'; + } + } + + return self::_translateFormula(self::$functionReplaceFromLocale,self::$functionReplaceToExcel,$formula,self::$_localeArgumentSeparator,','); + } // function _translateFormulaToEnglish() + + + public static function _localeFunc($function) { + if (self::$_localeLanguage !== 'en_us') { + $functionName = trim($function,'('); + if (isset(self::$_localeFunctions[$functionName])) { + $brace = ($functionName != $function); + $function = self::$_localeFunctions[$functionName]; + if ($brace) { $function .= '('; } + } + } + return $function; + } + + + + + /** + * Wrap string values in quotes + * + * @param mixed $value + * @return mixed + */ + public static function _wrapResult($value) { + if (is_string($value)) { + // Error values cannot be "wrapped" + if (preg_match('/^'.self::CALCULATION_REGEXP_ERROR.'$/i', $value, $match)) { + // Return Excel errors "as is" + return $value; + } + // Return strings wrapped in quotes + return '"'.$value.'"'; + // Convert numeric errors to NaN error + } else if((is_float($value)) && ((is_nan($value)) || (is_infinite($value)))) { + return PHPExcel_Calculation_Functions::NaN(); + } + + return $value; + } // function _wrapResult() + + + /** + * Remove quotes used as a wrapper to identify string values + * + * @param mixed $value + * @return mixed + */ + public static function _unwrapResult($value) { + if (is_string($value)) { + if ((isset($value{0})) && ($value{0} == '"') && (substr($value,-1) == '"')) { + return substr($value,1,-1); + } + // Convert numeric errors to NaN error + } else if((is_float($value)) && ((is_nan($value)) || (is_infinite($value)))) { + return PHPExcel_Calculation_Functions::NaN(); + } + return $value; + } // function _unwrapResult() + + + + + /** + * Calculate cell value (using formula from a cell ID) + * Retained for backward compatibility + * + * @access public + * @param PHPExcel_Cell $pCell Cell to calculate + * @return mixed + * @throws PHPExcel_Calculation_Exception + */ + public function calculate(PHPExcel_Cell $pCell = NULL) { + try { + return $this->calculateCellValue($pCell); + } catch (PHPExcel_Exception $e) { + throw new PHPExcel_Calculation_Exception($e->getMessage()); + } + } // function calculate() + + + /** + * Calculate the value of a cell formula + * + * @access public + * @param PHPExcel_Cell $pCell Cell to calculate + * @param Boolean $resetLog Flag indicating whether the debug log should be reset or not + * @return mixed + * @throws PHPExcel_Calculation_Exception + */ + public function calculateCellValue(PHPExcel_Cell $pCell = NULL, $resetLog = TRUE) { + if ($pCell === NULL) { + return NULL; + } + + $returnArrayAsType = self::$returnArrayAsType; + if ($resetLog) { + // Initialise the logging settings if requested + $this->formulaError = null; + $this->_debugLog->clearLog(); + $this->_cyclicReferenceStack->clear(); + $this->_cyclicFormulaCount = 1; + + self::$returnArrayAsType = self::RETURN_ARRAY_AS_ARRAY; + } + + // Execute the calculation for the cell formula + $this->_cellStack[] = array( + 'sheet' => $pCell->getWorksheet()->getTitle(), + 'cell' => $pCell->getCoordinate(), + ); + try { + $result = self::_unwrapResult($this->_calculateFormulaValue($pCell->getValue(), $pCell->getCoordinate(), $pCell)); + $cellAddress = array_pop($this->_cellStack); + $this->_workbook->getSheetByName($cellAddress['sheet'])->getCell($cellAddress['cell']); + } catch (PHPExcel_Exception $e) { + $cellAddress = array_pop($this->_cellStack); + $this->_workbook->getSheetByName($cellAddress['sheet'])->getCell($cellAddress['cell']); + throw new PHPExcel_Calculation_Exception($e->getMessage()); + } + + if ((is_array($result)) && (self::$returnArrayAsType != self::RETURN_ARRAY_AS_ARRAY)) { + self::$returnArrayAsType = $returnArrayAsType; + $testResult = PHPExcel_Calculation_Functions::flattenArray($result); + if (self::$returnArrayAsType == self::RETURN_ARRAY_AS_ERROR) { + return PHPExcel_Calculation_Functions::VALUE(); + } + // If there's only a single cell in the array, then we allow it + if (count($testResult) != 1) { + // If keys are numeric, then it's a matrix result rather than a cell range result, so we permit it + $r = array_keys($result); + $r = array_shift($r); + if (!is_numeric($r)) { return PHPExcel_Calculation_Functions::VALUE(); } + if (is_array($result[$r])) { + $c = array_keys($result[$r]); + $c = array_shift($c); + if (!is_numeric($c)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + } + $result = array_shift($testResult); + } + self::$returnArrayAsType = $returnArrayAsType; + + + if ($result === NULL) { + return 0; + } elseif((is_float($result)) && ((is_nan($result)) || (is_infinite($result)))) { + return PHPExcel_Calculation_Functions::NaN(); + } + return $result; + } // function calculateCellValue( + + + /** + * Validate and parse a formula string + * + * @param string $formula Formula to parse + * @return array + * @throws PHPExcel_Calculation_Exception + */ + public function parseFormula($formula) { + // Basic validation that this is indeed a formula + // We return an empty array if not + $formula = trim($formula); + if ((!isset($formula{0})) || ($formula{0} != '=')) return array(); + $formula = ltrim(substr($formula,1)); + if (!isset($formula{0})) return array(); + + // Parse the formula and return the token stack + return $this->_parseFormula($formula); + } // function parseFormula() + + + /** + * Calculate the value of a formula + * + * @param string $formula Formula to parse + * @param string $cellID Address of the cell to calculate + * @param PHPExcel_Cell $pCell Cell to calculate + * @return mixed + * @throws PHPExcel_Calculation_Exception + */ + public function calculateFormula($formula, $cellID=NULL, PHPExcel_Cell $pCell = NULL) { + // Initialise the logging settings + $this->formulaError = null; + $this->_debugLog->clearLog(); + $this->_cyclicReferenceStack->clear(); + + // Disable calculation cacheing because it only applies to cell calculations, not straight formulae + // But don't actually flush any cache + $resetCache = $this->getCalculationCacheEnabled(); + $this->_calculationCacheEnabled = FALSE; + // Execute the calculation + try { + $result = self::_unwrapResult($this->_calculateFormulaValue($formula, $cellID, $pCell)); + } catch (PHPExcel_Exception $e) { + throw new PHPExcel_Calculation_Exception($e->getMessage()); + } + + // Reset calculation cacheing to its previous state + $this->_calculationCacheEnabled = $resetCache; + + return $result; + } // function calculateFormula() + + + public function getValueFromCache($worksheetName, $cellID, &$cellValue) { + // Is calculation cacheing enabled? + // Is the value present in calculation cache? +//echo 'Test cache for ',$worksheetName,'!',$cellID,PHP_EOL; + $this->_debugLog->writeDebugLog('Testing cache value for cell ', $worksheetName, '!', $cellID); + if (($this->_calculationCacheEnabled) && (isset($this->_calculationCache[$worksheetName][$cellID]))) { +//echo 'Retrieve from cache',PHP_EOL; + $this->_debugLog->writeDebugLog('Retrieving value for cell ', $worksheetName, '!', $cellID, ' from cache'); + // Return the cached result + $cellValue = $this->_calculationCache[$worksheetName][$cellID]; + return TRUE; + } + return FALSE; + } + + public function saveValueToCache($worksheetName, $cellID, $cellValue) { + if ($this->_calculationCacheEnabled) { + $this->_calculationCache[$worksheetName][$cellID] = $cellValue; + } + } + + /** + * Parse a cell formula and calculate its value + * + * @param string $formula The formula to parse and calculate + * @param string $cellID The ID (e.g. A3) of the cell that we are calculating + * @param PHPExcel_Cell $pCell Cell to calculate + * @return mixed + * @throws PHPExcel_Calculation_Exception + */ + public function _calculateFormulaValue($formula, $cellID=null, PHPExcel_Cell $pCell = null) { + $cellValue = null; + + // Basic validation that this is indeed a formula + // We simply return the cell value if not + $formula = trim($formula); + if ($formula{0} != '=') return self::_wrapResult($formula); + $formula = ltrim(substr($formula, 1)); + if (!isset($formula{0})) return self::_wrapResult($formula); + + $pCellParent = ($pCell !== NULL) ? $pCell->getWorksheet() : NULL; + $wsTitle = ($pCellParent !== NULL) ? $pCellParent->getTitle() : "\x00Wrk"; + + if (($cellID !== NULL) && ($this->getValueFromCache($wsTitle, $cellID, $cellValue))) { + return $cellValue; + } + + if (($wsTitle{0} !== "\x00") && ($this->_cyclicReferenceStack->onStack($wsTitle.'!'.$cellID))) { + if ($this->cyclicFormulaCount <= 0) { + $this->_cyclicFormulaCell = ''; + return $this->_raiseFormulaError('Cyclic Reference in Formula'); + } elseif (($this->_cyclicFormulaCount >= $this->cyclicFormulaCount) && + ($this->_cyclicFormulaCell == $wsTitle.'!'.$cellID)) { + $this->_cyclicFormulaCell = ''; + return $cellValue; + } elseif ($this->_cyclicFormulaCell == $wsTitle.'!'.$cellID) { + ++$this->_cyclicFormulaCount; + if ($this->_cyclicFormulaCount >= $this->cyclicFormulaCount) { + $this->_cyclicFormulaCell = ''; + return $cellValue; + } + } elseif ($this->_cyclicFormulaCell == '') { + if ($this->_cyclicFormulaCount >= $this->cyclicFormulaCount) { + return $cellValue; + } + $this->_cyclicFormulaCell = $wsTitle.'!'.$cellID; + } + } + + // Parse the formula onto the token stack and calculate the value + $this->_cyclicReferenceStack->push($wsTitle.'!'.$cellID); + $cellValue = $this->_processTokenStack($this->_parseFormula($formula, $pCell), $cellID, $pCell); + $this->_cyclicReferenceStack->pop(); + + // Save to calculation cache + if ($cellID !== NULL) { + $this->saveValueToCache($wsTitle, $cellID, $cellValue); + } + + // Return the calculated value + return $cellValue; + } // function _calculateFormulaValue() + + + /** + * Ensure that paired matrix operands are both matrices and of the same size + * + * @param mixed &$operand1 First matrix operand + * @param mixed &$operand2 Second matrix operand + * @param integer $resize Flag indicating whether the matrices should be resized to match + * and (if so), whether the smaller dimension should grow or the + * larger should shrink. + * 0 = no resize + * 1 = shrink to fit + * 2 = extend to fit + */ + private static function _checkMatrixOperands(&$operand1,&$operand2,$resize = 1) { + // Examine each of the two operands, and turn them into an array if they aren't one already + // Note that this function should only be called if one or both of the operand is already an array + if (!is_array($operand1)) { + list($matrixRows,$matrixColumns) = self::_getMatrixDimensions($operand2); + $operand1 = array_fill(0,$matrixRows,array_fill(0,$matrixColumns,$operand1)); + $resize = 0; + } elseif (!is_array($operand2)) { + list($matrixRows,$matrixColumns) = self::_getMatrixDimensions($operand1); + $operand2 = array_fill(0,$matrixRows,array_fill(0,$matrixColumns,$operand2)); + $resize = 0; + } + + list($matrix1Rows,$matrix1Columns) = self::_getMatrixDimensions($operand1); + list($matrix2Rows,$matrix2Columns) = self::_getMatrixDimensions($operand2); + if (($matrix1Rows == $matrix2Columns) && ($matrix2Rows == $matrix1Columns)) { + $resize = 1; + } + + if ($resize == 2) { + // Given two matrices of (potentially) unequal size, convert the smaller in each dimension to match the larger + self::_resizeMatricesExtend($operand1,$operand2,$matrix1Rows,$matrix1Columns,$matrix2Rows,$matrix2Columns); + } elseif ($resize == 1) { + // Given two matrices of (potentially) unequal size, convert the larger in each dimension to match the smaller + self::_resizeMatricesShrink($operand1,$operand2,$matrix1Rows,$matrix1Columns,$matrix2Rows,$matrix2Columns); + } + return array( $matrix1Rows,$matrix1Columns,$matrix2Rows,$matrix2Columns); + } // function _checkMatrixOperands() + + + /** + * Read the dimensions of a matrix, and re-index it with straight numeric keys starting from row 0, column 0 + * + * @param mixed &$matrix matrix operand + * @return array An array comprising the number of rows, and number of columns + */ + public static function _getMatrixDimensions(&$matrix) { + $matrixRows = count($matrix); + $matrixColumns = 0; + foreach($matrix as $rowKey => $rowValue) { + $matrixColumns = max(count($rowValue),$matrixColumns); + if (!is_array($rowValue)) { + $matrix[$rowKey] = array($rowValue); + } else { + $matrix[$rowKey] = array_values($rowValue); + } + } + $matrix = array_values($matrix); + return array($matrixRows,$matrixColumns); + } // function _getMatrixDimensions() + + + /** + * Ensure that paired matrix operands are both matrices of the same size + * + * @param mixed &$matrix1 First matrix operand + * @param mixed &$matrix2 Second matrix operand + * @param integer $matrix1Rows Row size of first matrix operand + * @param integer $matrix1Columns Column size of first matrix operand + * @param integer $matrix2Rows Row size of second matrix operand + * @param integer $matrix2Columns Column size of second matrix operand + */ + private static function _resizeMatricesShrink(&$matrix1,&$matrix2,$matrix1Rows,$matrix1Columns,$matrix2Rows,$matrix2Columns) { + if (($matrix2Columns < $matrix1Columns) || ($matrix2Rows < $matrix1Rows)) { + if ($matrix2Rows < $matrix1Rows) { + for ($i = $matrix2Rows; $i < $matrix1Rows; ++$i) { + unset($matrix1[$i]); + } + } + if ($matrix2Columns < $matrix1Columns) { + for ($i = 0; $i < $matrix1Rows; ++$i) { + for ($j = $matrix2Columns; $j < $matrix1Columns; ++$j) { + unset($matrix1[$i][$j]); + } + } + } + } + + if (($matrix1Columns < $matrix2Columns) || ($matrix1Rows < $matrix2Rows)) { + if ($matrix1Rows < $matrix2Rows) { + for ($i = $matrix1Rows; $i < $matrix2Rows; ++$i) { + unset($matrix2[$i]); + } + } + if ($matrix1Columns < $matrix2Columns) { + for ($i = 0; $i < $matrix2Rows; ++$i) { + for ($j = $matrix1Columns; $j < $matrix2Columns; ++$j) { + unset($matrix2[$i][$j]); + } + } + } + } + } // function _resizeMatricesShrink() + + + /** + * Ensure that paired matrix operands are both matrices of the same size + * + * @param mixed &$matrix1 First matrix operand + * @param mixed &$matrix2 Second matrix operand + * @param integer $matrix1Rows Row size of first matrix operand + * @param integer $matrix1Columns Column size of first matrix operand + * @param integer $matrix2Rows Row size of second matrix operand + * @param integer $matrix2Columns Column size of second matrix operand + */ + private static function _resizeMatricesExtend(&$matrix1,&$matrix2,$matrix1Rows,$matrix1Columns,$matrix2Rows,$matrix2Columns) { + if (($matrix2Columns < $matrix1Columns) || ($matrix2Rows < $matrix1Rows)) { + if ($matrix2Columns < $matrix1Columns) { + for ($i = 0; $i < $matrix2Rows; ++$i) { + $x = $matrix2[$i][$matrix2Columns-1]; + for ($j = $matrix2Columns; $j < $matrix1Columns; ++$j) { + $matrix2[$i][$j] = $x; + } + } + } + if ($matrix2Rows < $matrix1Rows) { + $x = $matrix2[$matrix2Rows-1]; + for ($i = 0; $i < $matrix1Rows; ++$i) { + $matrix2[$i] = $x; + } + } + } + + if (($matrix1Columns < $matrix2Columns) || ($matrix1Rows < $matrix2Rows)) { + if ($matrix1Columns < $matrix2Columns) { + for ($i = 0; $i < $matrix1Rows; ++$i) { + $x = $matrix1[$i][$matrix1Columns-1]; + for ($j = $matrix1Columns; $j < $matrix2Columns; ++$j) { + $matrix1[$i][$j] = $x; + } + } + } + if ($matrix1Rows < $matrix2Rows) { + $x = $matrix1[$matrix1Rows-1]; + for ($i = 0; $i < $matrix2Rows; ++$i) { + $matrix1[$i] = $x; + } + } + } + } // function _resizeMatricesExtend() + + + /** + * Format details of an operand for display in the log (based on operand type) + * + * @param mixed $value First matrix operand + * @return mixed + */ + private function _showValue($value) { + if ($this->_debugLog->getWriteDebugLog()) { + $testArray = PHPExcel_Calculation_Functions::flattenArray($value); + if (count($testArray) == 1) { + $value = array_pop($testArray); + } + + if (is_array($value)) { + $returnMatrix = array(); + $pad = $rpad = ', '; + foreach($value as $row) { + if (is_array($row)) { + $returnMatrix[] = implode($pad,array_map(array($this,'_showValue'),$row)); + $rpad = '; '; + } else { + $returnMatrix[] = $this->_showValue($row); + } + } + return '{ '.implode($rpad,$returnMatrix).' }'; + } elseif(is_string($value) && (trim($value,'"') == $value)) { + return '"'.$value.'"'; + } elseif(is_bool($value)) { + return ($value) ? self::$_localeBoolean['TRUE'] : self::$_localeBoolean['FALSE']; + } + } + return PHPExcel_Calculation_Functions::flattenSingleValue($value); + } // function _showValue() + + + /** + * Format type and details of an operand for display in the log (based on operand type) + * + * @param mixed $value First matrix operand + * @return mixed + */ + private function _showTypeDetails($value) { + if ($this->_debugLog->getWriteDebugLog()) { + $testArray = PHPExcel_Calculation_Functions::flattenArray($value); + if (count($testArray) == 1) { + $value = array_pop($testArray); + } + + if ($value === NULL) { + return 'a NULL value'; + } elseif (is_float($value)) { + $typeString = 'a floating point number'; + } elseif(is_int($value)) { + $typeString = 'an integer number'; + } elseif(is_bool($value)) { + $typeString = 'a boolean'; + } elseif(is_array($value)) { + $typeString = 'a matrix'; + } else { + if ($value == '') { + return 'an empty string'; + } elseif ($value{0} == '#') { + return 'a '.$value.' error'; + } else { + $typeString = 'a string'; + } + } + return $typeString.' with a value of '.$this->_showValue($value); + } + } // function _showTypeDetails() + + + private function _convertMatrixReferences($formula) { + static $matrixReplaceFrom = array('{',';','}'); + static $matrixReplaceTo = array('MKMATRIX(MKMATRIX(','),MKMATRIX(','))'); + + // Convert any Excel matrix references to the MKMATRIX() function + if (strpos($formula,'{') !== FALSE) { + // If there is the possibility of braces within a quoted string, then we don't treat those as matrix indicators + if (strpos($formula,'"') !== FALSE) { + // So instead we skip replacing in any quoted strings by only replacing in every other array element after we've exploded + // the formula + $temp = explode('"',$formula); + // Open and Closed counts used for trapping mismatched braces in the formula + $openCount = $closeCount = 0; + $i = FALSE; + foreach($temp as &$value) { + // Only count/replace in alternating array entries + if ($i = !$i) { + $openCount += substr_count($value,'{'); + $closeCount += substr_count($value,'}'); + $value = str_replace($matrixReplaceFrom,$matrixReplaceTo,$value); + } + } + unset($value); + // Then rebuild the formula string + $formula = implode('"',$temp); + } else { + // If there's no quoted strings, then we do a simple count/replace + $openCount = substr_count($formula,'{'); + $closeCount = substr_count($formula,'}'); + $formula = str_replace($matrixReplaceFrom,$matrixReplaceTo,$formula); + } + // Trap for mismatched braces and trigger an appropriate error + if ($openCount < $closeCount) { + if ($openCount > 0) { + return $this->_raiseFormulaError("Formula Error: Mismatched matrix braces '}'"); + } else { + return $this->_raiseFormulaError("Formula Error: Unexpected '}' encountered"); + } + } elseif ($openCount > $closeCount) { + if ($closeCount > 0) { + return $this->_raiseFormulaError("Formula Error: Mismatched matrix braces '{'"); + } else { + return $this->_raiseFormulaError("Formula Error: Unexpected '{' encountered"); + } + } + } + + return $formula; + } // function _convertMatrixReferences() + + + private static function _mkMatrix() { + return func_get_args(); + } // function _mkMatrix() + + + // Binary Operators + // These operators always work on two values + // Array key is the operator, the value indicates whether this is a left or right associative operator + private static $_operatorAssociativity = array( + '^' => 0, // Exponentiation + '*' => 0, '/' => 0, // Multiplication and Division + '+' => 0, '-' => 0, // Addition and Subtraction + '&' => 0, // Concatenation + '|' => 0, ':' => 0, // Intersect and Range + '>' => 0, '<' => 0, '=' => 0, '>=' => 0, '<=' => 0, '<>' => 0 // Comparison + ); + + // Comparison (Boolean) Operators + // These operators work on two values, but always return a boolean result + private static $_comparisonOperators = array('>' => TRUE, '<' => TRUE, '=' => TRUE, '>=' => TRUE, '<=' => TRUE, '<>' => TRUE); + + // Operator Precedence + // This list includes all valid operators, whether binary (including boolean) or unary (such as %) + // Array key is the operator, the value is its precedence + private static $_operatorPrecedence = array( + ':' => 8, // Range + '|' => 7, // Intersect + '~' => 6, // Negation + '%' => 5, // Percentage + '^' => 4, // Exponentiation + '*' => 3, '/' => 3, // Multiplication and Division + '+' => 2, '-' => 2, // Addition and Subtraction + '&' => 1, // Concatenation + '>' => 0, '<' => 0, '=' => 0, '>=' => 0, '<=' => 0, '<>' => 0 // Comparison + ); + + // Convert infix to postfix notation + private function _parseFormula($formula, PHPExcel_Cell $pCell = NULL) { + if (($formula = $this->_convertMatrixReferences(trim($formula))) === FALSE) { + return FALSE; + } + + // If we're using cell caching, then $pCell may well be flushed back to the cache (which detaches the parent worksheet), + // so we store the parent worksheet so that we can re-attach it when necessary + $pCellParent = ($pCell !== NULL) ? $pCell->getWorksheet() : NULL; + + $regexpMatchString = '/^('.self::CALCULATION_REGEXP_FUNCTION. + '|'.self::CALCULATION_REGEXP_CELLREF. + '|'.self::CALCULATION_REGEXP_NUMBER. + '|'.self::CALCULATION_REGEXP_STRING. + '|'.self::CALCULATION_REGEXP_OPENBRACE. + '|'.self::CALCULATION_REGEXP_NAMEDRANGE. + '|'.self::CALCULATION_REGEXP_ERROR. + ')/si'; + + // Start with initialisation + $index = 0; + $stack = new PHPExcel_Calculation_Token_Stack; + $output = array(); + $expectingOperator = FALSE; // We use this test in syntax-checking the expression to determine when a + // - is a negation or + is a positive operator rather than an operation + $expectingOperand = FALSE; // We use this test in syntax-checking the expression to determine whether an operand + // should be null in a function call + // The guts of the lexical parser + // Loop through the formula extracting each operator and operand in turn + while(TRUE) { +//echo 'Assessing Expression '.substr($formula, $index),PHP_EOL; + $opCharacter = $formula{$index}; // Get the first character of the value at the current index position +//echo 'Initial character of expression block is '.$opCharacter,PHP_EOL; + if ((isset(self::$_comparisonOperators[$opCharacter])) && (strlen($formula) > $index) && (isset(self::$_comparisonOperators[$formula{$index+1}]))) { + $opCharacter .= $formula{++$index}; +//echo 'Initial character of expression block is comparison operator '.$opCharacter.PHP_EOL; + } + + // Find out if we're currently at the beginning of a number, variable, cell reference, function, parenthesis or operand + $isOperandOrFunction = preg_match($regexpMatchString, substr($formula, $index), $match); +//echo '$isOperandOrFunction is '.(($isOperandOrFunction) ? 'True' : 'False').PHP_EOL; +//var_dump($match); + + if ($opCharacter == '-' && !$expectingOperator) { // Is it a negation instead of a minus? +//echo 'Element is a Negation operator',PHP_EOL; + $stack->push('Unary Operator','~'); // Put a negation on the stack + ++$index; // and drop the negation symbol + } elseif ($opCharacter == '%' && $expectingOperator) { +//echo 'Element is a Percentage operator',PHP_EOL; + $stack->push('Unary Operator','%'); // Put a percentage on the stack + ++$index; + } elseif ($opCharacter == '+' && !$expectingOperator) { // Positive (unary plus rather than binary operator plus) can be discarded? +//echo 'Element is a Positive number, not Plus operator',PHP_EOL; + ++$index; // Drop the redundant plus symbol + } elseif ((($opCharacter == '~') || ($opCharacter == '|')) && (!$isOperandOrFunction)) { // We have to explicitly deny a tilde or pipe, because they are legal + return $this->_raiseFormulaError("Formula Error: Illegal character '~'"); // on the stack but not in the input expression + + } elseif ((isset(self::$_operators[$opCharacter]) or $isOperandOrFunction) && $expectingOperator) { // Are we putting an operator on the stack? +//echo 'Element with value '.$opCharacter.' is an Operator',PHP_EOL; + while($stack->count() > 0 && + ($o2 = $stack->last()) && + isset(self::$_operators[$o2['value']]) && + @(self::$_operatorAssociativity[$opCharacter] ? self::$_operatorPrecedence[$opCharacter] < self::$_operatorPrecedence[$o2['value']] : self::$_operatorPrecedence[$opCharacter] <= self::$_operatorPrecedence[$o2['value']])) { + $output[] = $stack->pop(); // Swap operands and higher precedence operators from the stack to the output + } + $stack->push('Binary Operator',$opCharacter); // Finally put our current operator onto the stack + ++$index; + $expectingOperator = FALSE; + + } elseif ($opCharacter == ')' && $expectingOperator) { // Are we expecting to close a parenthesis? +//echo 'Element is a Closing bracket',PHP_EOL; + $expectingOperand = FALSE; + while (($o2 = $stack->pop()) && $o2['value'] != '(') { // Pop off the stack back to the last ( + if ($o2 === NULL) return $this->_raiseFormulaError('Formula Error: Unexpected closing brace ")"'); + else $output[] = $o2; + } + $d = $stack->last(2); + if (preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $d['value'], $matches)) { // Did this parenthesis just close a function? + $functionName = $matches[1]; // Get the function name +//echo 'Closed Function is '.$functionName,PHP_EOL; + $d = $stack->pop(); + $argumentCount = $d['value']; // See how many arguments there were (argument count is the next value stored on the stack) +//if ($argumentCount == 0) { +// echo 'With no arguments',PHP_EOL; +//} elseif ($argumentCount == 1) { +// echo 'With 1 argument',PHP_EOL; +//} else { +// echo 'With '.$argumentCount.' arguments',PHP_EOL; +//} + $output[] = $d; // Dump the argument count on the output + $output[] = $stack->pop(); // Pop the function and push onto the output + if (isset(self::$_controlFunctions[$functionName])) { +//echo 'Built-in function '.$functionName,PHP_EOL; + $expectedArgumentCount = self::$_controlFunctions[$functionName]['argumentCount']; + $functionCall = self::$_controlFunctions[$functionName]['functionCall']; + } elseif (isset(self::$_PHPExcelFunctions[$functionName])) { +//echo 'PHPExcel function '.$functionName,PHP_EOL; + $expectedArgumentCount = self::$_PHPExcelFunctions[$functionName]['argumentCount']; + $functionCall = self::$_PHPExcelFunctions[$functionName]['functionCall']; + } else { // did we somehow push a non-function on the stack? this should never happen + return $this->_raiseFormulaError("Formula Error: Internal error, non-function on stack"); + } + // Check the argument count + $argumentCountError = FALSE; + if (is_numeric($expectedArgumentCount)) { + if ($expectedArgumentCount < 0) { +//echo '$expectedArgumentCount is between 0 and '.abs($expectedArgumentCount),PHP_EOL; + if ($argumentCount > abs($expectedArgumentCount)) { + $argumentCountError = TRUE; + $expectedArgumentCountString = 'no more than '.abs($expectedArgumentCount); + } + } else { +//echo '$expectedArgumentCount is numeric '.$expectedArgumentCount,PHP_EOL; + if ($argumentCount != $expectedArgumentCount) { + $argumentCountError = TRUE; + $expectedArgumentCountString = $expectedArgumentCount; + } + } + } elseif ($expectedArgumentCount != '*') { + $isOperandOrFunction = preg_match('/(\d*)([-+,])(\d*)/',$expectedArgumentCount,$argMatch); +//print_r($argMatch); +//echo PHP_EOL; + switch ($argMatch[2]) { + case '+' : + if ($argumentCount < $argMatch[1]) { + $argumentCountError = TRUE; + $expectedArgumentCountString = $argMatch[1].' or more '; + } + break; + case '-' : + if (($argumentCount < $argMatch[1]) || ($argumentCount > $argMatch[3])) { + $argumentCountError = TRUE; + $expectedArgumentCountString = 'between '.$argMatch[1].' and '.$argMatch[3]; + } + break; + case ',' : + if (($argumentCount != $argMatch[1]) && ($argumentCount != $argMatch[3])) { + $argumentCountError = TRUE; + $expectedArgumentCountString = 'either '.$argMatch[1].' or '.$argMatch[3]; + } + break; + } + } + if ($argumentCountError) { + return $this->_raiseFormulaError("Formula Error: Wrong number of arguments for $functionName() function: $argumentCount given, ".$expectedArgumentCountString." expected"); + } + } + ++$index; + + } elseif ($opCharacter == ',') { // Is this the separator for function arguments? +//echo 'Element is a Function argument separator',PHP_EOL; + while (($o2 = $stack->pop()) && $o2['value'] != '(') { // Pop off the stack back to the last ( + if ($o2 === NULL) return $this->_raiseFormulaError("Formula Error: Unexpected ,"); + else $output[] = $o2; // pop the argument expression stuff and push onto the output + } + // If we've a comma when we're expecting an operand, then what we actually have is a null operand; + // so push a null onto the stack + if (($expectingOperand) || (!$expectingOperator)) { + $output[] = array('type' => 'NULL Value', 'value' => self::$_ExcelConstants['NULL'], 'reference' => NULL); + } + // make sure there was a function + $d = $stack->last(2); + if (!preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $d['value'], $matches)) + return $this->_raiseFormulaError("Formula Error: Unexpected ,"); + $d = $stack->pop(); + $stack->push($d['type'],++$d['value'],$d['reference']); // increment the argument count + $stack->push('Brace', '('); // put the ( back on, we'll need to pop back to it again + $expectingOperator = FALSE; + $expectingOperand = TRUE; + ++$index; + + } elseif ($opCharacter == '(' && !$expectingOperator) { +// echo 'Element is an Opening Bracket
'; + $stack->push('Brace', '('); + ++$index; + + } elseif ($isOperandOrFunction && !$expectingOperator) { // do we now have a function/variable/number? + $expectingOperator = TRUE; + $expectingOperand = FALSE; + $val = $match[1]; + $length = strlen($val); +// echo 'Element with value '.$val.' is an Operand, Variable, Constant, String, Number, Cell Reference or Function
'; + + if (preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $val, $matches)) { + $val = preg_replace('/\s/','',$val); +// echo 'Element '.$val.' is a Function
'; + if (isset(self::$_PHPExcelFunctions[strtoupper($matches[1])]) || isset(self::$_controlFunctions[strtoupper($matches[1])])) { // it's a function + $stack->push('Function', strtoupper($val)); + $ax = preg_match('/^\s*(\s*\))/i', substr($formula, $index+$length), $amatch); + if ($ax) { + $stack->push('Operand Count for Function '.strtoupper($val).')', 0); + $expectingOperator = TRUE; + } else { + $stack->push('Operand Count for Function '.strtoupper($val).')', 1); + $expectingOperator = FALSE; + } + $stack->push('Brace', '('); + } else { // it's a var w/ implicit multiplication + $output[] = array('type' => 'Value', 'value' => $matches[1], 'reference' => NULL); + } + } elseif (preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'$/i', $val, $matches)) { +// echo 'Element '.$val.' is a Cell reference
'; + // Watch for this case-change when modifying to allow cell references in different worksheets... + // Should only be applied to the actual cell column, not the worksheet name + + // If the last entry on the stack was a : operator, then we have a cell range reference + $testPrevOp = $stack->last(1); + if ($testPrevOp['value'] == ':') { + // If we have a worksheet reference, then we're playing with a 3D reference + if ($matches[2] == '') { + // Otherwise, we 'inherit' the worksheet reference from the start cell reference + // The start of the cell range reference should be the last entry in $output + $startCellRef = $output[count($output)-1]['value']; + preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'$/i', $startCellRef, $startMatches); + if ($startMatches[2] > '') { + $val = $startMatches[2].'!'.$val; + } + } else { + return $this->_raiseFormulaError("3D Range references are not yet supported"); + } + } + + $output[] = array('type' => 'Cell Reference', 'value' => $val, 'reference' => $val); +// $expectingOperator = FALSE; + } else { // it's a variable, constant, string, number or boolean +// echo 'Element is a Variable, Constant, String, Number or Boolean
'; + // If the last entry on the stack was a : operator, then we may have a row or column range reference + $testPrevOp = $stack->last(1); + if ($testPrevOp['value'] == ':') { + $startRowColRef = $output[count($output)-1]['value']; + $rangeWS1 = ''; + if (strpos('!',$startRowColRef) !== FALSE) { + list($rangeWS1,$startRowColRef) = explode('!',$startRowColRef); + } + if ($rangeWS1 != '') $rangeWS1 .= '!'; + $rangeWS2 = $rangeWS1; + if (strpos('!',$val) !== FALSE) { + list($rangeWS2,$val) = explode('!',$val); + } + if ($rangeWS2 != '') $rangeWS2 .= '!'; + if ((is_integer($startRowColRef)) && (ctype_digit($val)) && + ($startRowColRef <= 1048576) && ($val <= 1048576)) { + // Row range + $endRowColRef = ($pCellParent !== NULL) ? $pCellParent->getHighestColumn() : 'XFD'; // Max 16,384 columns for Excel2007 + $output[count($output)-1]['value'] = $rangeWS1.'A'.$startRowColRef; + $val = $rangeWS2.$endRowColRef.$val; + } elseif ((ctype_alpha($startRowColRef)) && (ctype_alpha($val)) && + (strlen($startRowColRef) <= 3) && (strlen($val) <= 3)) { + // Column range + $endRowColRef = ($pCellParent !== NULL) ? $pCellParent->getHighestRow() : 1048576; // Max 1,048,576 rows for Excel2007 + $output[count($output)-1]['value'] = $rangeWS1.strtoupper($startRowColRef).'1'; + $val = $rangeWS2.$val.$endRowColRef; + } + } + + $localeConstant = FALSE; + if ($opCharacter == '"') { +// echo 'Element is a String
'; + // UnEscape any quotes within the string + $val = self::_wrapResult(str_replace('""','"',self::_unwrapResult($val))); + } elseif (is_numeric($val)) { +// echo 'Element is a Number
'; + if ((strpos($val,'.') !== FALSE) || (stripos($val,'e') !== FALSE) || ($val > PHP_INT_MAX) || ($val < -PHP_INT_MAX)) { +// echo 'Casting '.$val.' to float
'; + $val = (float) $val; + } else { +// echo 'Casting '.$val.' to integer
'; + $val = (integer) $val; + } + } elseif (isset(self::$_ExcelConstants[trim(strtoupper($val))])) { + $excelConstant = trim(strtoupper($val)); +// echo 'Element '.$excelConstant.' is an Excel Constant
'; + $val = self::$_ExcelConstants[$excelConstant]; + } elseif (($localeConstant = array_search(trim(strtoupper($val)), self::$_localeBoolean)) !== FALSE) { +// echo 'Element '.$localeConstant.' is an Excel Constant
'; + $val = self::$_ExcelConstants[$localeConstant]; + } + $details = array('type' => 'Value', 'value' => $val, 'reference' => NULL); + if ($localeConstant) { $details['localeValue'] = $localeConstant; } + $output[] = $details; + } + $index += $length; + + } elseif ($opCharacter == '$') { // absolute row or column range + ++$index; + } elseif ($opCharacter == ')') { // miscellaneous error checking + if ($expectingOperand) { + $output[] = array('type' => 'NULL Value', 'value' => self::$_ExcelConstants['NULL'], 'reference' => NULL); + $expectingOperand = FALSE; + $expectingOperator = TRUE; + } else { + return $this->_raiseFormulaError("Formula Error: Unexpected ')'"); + } + } elseif (isset(self::$_operators[$opCharacter]) && !$expectingOperator) { + return $this->_raiseFormulaError("Formula Error: Unexpected operator '$opCharacter'"); + } else { // I don't even want to know what you did to get here + return $this->_raiseFormulaError("Formula Error: An unexpected error occured"); + } + // Test for end of formula string + if ($index == strlen($formula)) { + // Did we end with an operator?. + // Only valid for the % unary operator + if ((isset(self::$_operators[$opCharacter])) && ($opCharacter != '%')) { + return $this->_raiseFormulaError("Formula Error: Operator '$opCharacter' has no operands"); + } else { + break; + } + } + // Ignore white space + while (($formula{$index} == "\n") || ($formula{$index} == "\r")) { + ++$index; + } + if ($formula{$index} == ' ') { + while ($formula{$index} == ' ') { + ++$index; + } + // If we're expecting an operator, but only have a space between the previous and next operands (and both are + // Cell References) then we have an INTERSECTION operator +// echo 'Possible Intersect Operator
'; + if (($expectingOperator) && (preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'.*/Ui', substr($formula, $index), $match)) && + ($output[count($output)-1]['type'] == 'Cell Reference')) { +// echo 'Element is an Intersect Operator
'; + while($stack->count() > 0 && + ($o2 = $stack->last()) && + isset(self::$_operators[$o2['value']]) && + @(self::$_operatorAssociativity[$opCharacter] ? self::$_operatorPrecedence[$opCharacter] < self::$_operatorPrecedence[$o2['value']] : self::$_operatorPrecedence[$opCharacter] <= self::$_operatorPrecedence[$o2['value']])) { + $output[] = $stack->pop(); // Swap operands and higher precedence operators from the stack to the output + } + $stack->push('Binary Operator','|'); // Put an Intersect Operator on the stack + $expectingOperator = FALSE; + } + } + } + + while (($op = $stack->pop()) !== NULL) { // pop everything off the stack and push onto output + if ((is_array($op) && $op['value'] == '(') || ($op === '(')) + return $this->_raiseFormulaError("Formula Error: Expecting ')'"); // if there are any opening braces on the stack, then braces were unbalanced + $output[] = $op; + } + return $output; + } // function _parseFormula() + + + private static function _dataTestReference(&$operandData) + { + $operand = $operandData['value']; + if (($operandData['reference'] === NULL) && (is_array($operand))) { + $rKeys = array_keys($operand); + $rowKey = array_shift($rKeys); + $cKeys = array_keys(array_keys($operand[$rowKey])); + $colKey = array_shift($cKeys); + if (ctype_upper($colKey)) { + $operandData['reference'] = $colKey.$rowKey; + } + } + return $operand; + } + + // evaluate postfix notation + private function _processTokenStack($tokens, $cellID = NULL, PHPExcel_Cell $pCell = NULL) { + if ($tokens == FALSE) return FALSE; + + // If we're using cell caching, then $pCell may well be flushed back to the cache (which detaches the parent cell collection), + // so we store the parent cell collection so that we can re-attach it when necessary + $pCellWorksheet = ($pCell !== NULL) ? $pCell->getWorksheet() : NULL; + $pCellParent = ($pCell !== NULL) ? $pCell->getParent() : null; + $stack = new PHPExcel_Calculation_Token_Stack; + + // Loop through each token in turn + foreach ($tokens as $tokenData) { +// print_r($tokenData); +// echo '
'; + $token = $tokenData['value']; +// echo 'Token is '.$token.'
'; + // if the token is a binary operator, pop the top two values off the stack, do the operation, and push the result back on the stack + if (isset(self::$_binaryOperators[$token])) { +// echo 'Token is a binary operator
'; + // We must have two operands, error if we don't + if (($operand2Data = $stack->pop()) === NULL) return $this->_raiseFormulaError('Internal error - Operand value missing from stack'); + if (($operand1Data = $stack->pop()) === NULL) return $this->_raiseFormulaError('Internal error - Operand value missing from stack'); + + $operand1 = self::_dataTestReference($operand1Data); + $operand2 = self::_dataTestReference($operand2Data); + + // Log what we're doing + if ($token == ':') { + $this->_debugLog->writeDebugLog('Evaluating Range ', $this->_showValue($operand1Data['reference']), ' ', $token, ' ', $this->_showValue($operand2Data['reference'])); + } else { + $this->_debugLog->writeDebugLog('Evaluating ', $this->_showValue($operand1), ' ', $token, ' ', $this->_showValue($operand2)); + } + + // Process the operation in the appropriate manner + switch ($token) { + // Comparison (Boolean) Operators + case '>' : // Greater than + case '<' : // Less than + case '>=' : // Greater than or Equal to + case '<=' : // Less than or Equal to + case '=' : // Equality + case '<>' : // Inequality + $this->_executeBinaryComparisonOperation($cellID,$operand1,$operand2,$token,$stack); + break; + // Binary Operators + case ':' : // Range + $sheet1 = $sheet2 = ''; + if (strpos($operand1Data['reference'],'!') !== FALSE) { + list($sheet1,$operand1Data['reference']) = explode('!',$operand1Data['reference']); + } else { + $sheet1 = ($pCellParent !== NULL) ? $pCellWorksheet->getTitle() : ''; + } + if (strpos($operand2Data['reference'],'!') !== FALSE) { + list($sheet2,$operand2Data['reference']) = explode('!',$operand2Data['reference']); + } else { + $sheet2 = $sheet1; + } + if ($sheet1 == $sheet2) { + if ($operand1Data['reference'] === NULL) { + if ((trim($operand1Data['value']) != '') && (is_numeric($operand1Data['value']))) { + $operand1Data['reference'] = $pCell->getColumn().$operand1Data['value']; + } elseif (trim($operand1Data['reference']) == '') { + $operand1Data['reference'] = $pCell->getCoordinate(); + } else { + $operand1Data['reference'] = $operand1Data['value'].$pCell->getRow(); + } + } + if ($operand2Data['reference'] === NULL) { + if ((trim($operand2Data['value']) != '') && (is_numeric($operand2Data['value']))) { + $operand2Data['reference'] = $pCell->getColumn().$operand2Data['value']; + } elseif (trim($operand2Data['reference']) == '') { + $operand2Data['reference'] = $pCell->getCoordinate(); + } else { + $operand2Data['reference'] = $operand2Data['value'].$pCell->getRow(); + } + } + + $oData = array_merge(explode(':',$operand1Data['reference']),explode(':',$operand2Data['reference'])); + $oCol = $oRow = array(); + foreach($oData as $oDatum) { + $oCR = PHPExcel_Cell::coordinateFromString($oDatum); + $oCol[] = PHPExcel_Cell::columnIndexFromString($oCR[0]) - 1; + $oRow[] = $oCR[1]; + } + $cellRef = PHPExcel_Cell::stringFromColumnIndex(min($oCol)).min($oRow).':'.PHPExcel_Cell::stringFromColumnIndex(max($oCol)).max($oRow); + if ($pCellParent !== NULL) { + $cellValue = $this->extractCellRange($cellRef, $this->_workbook->getSheetByName($sheet1), FALSE); + } else { + return $this->_raiseFormulaError('Unable to access Cell Reference'); + } + $stack->push('Cell Reference',$cellValue,$cellRef); + } else { + $stack->push('Error',PHPExcel_Calculation_Functions::REF(),NULL); + } + + break; + case '+' : // Addition + $this->_executeNumericBinaryOperation($cellID,$operand1,$operand2,$token,'plusEquals',$stack); + break; + case '-' : // Subtraction + $this->_executeNumericBinaryOperation($cellID,$operand1,$operand2,$token,'minusEquals',$stack); + break; + case '*' : // Multiplication + $this->_executeNumericBinaryOperation($cellID,$operand1,$operand2,$token,'arrayTimesEquals',$stack); + break; + case '/' : // Division + $this->_executeNumericBinaryOperation($cellID,$operand1,$operand2,$token,'arrayRightDivide',$stack); + break; + case '^' : // Exponential + $this->_executeNumericBinaryOperation($cellID,$operand1,$operand2,$token,'power',$stack); + break; + case '&' : // Concatenation + // If either of the operands is a matrix, we need to treat them both as matrices + // (converting the other operand to a matrix if need be); then perform the required + // matrix operation + if (is_bool($operand1)) { + $operand1 = ($operand1) ? self::$_localeBoolean['TRUE'] : self::$_localeBoolean['FALSE']; + } + if (is_bool($operand2)) { + $operand2 = ($operand2) ? self::$_localeBoolean['TRUE'] : self::$_localeBoolean['FALSE']; + } + if ((is_array($operand1)) || (is_array($operand2))) { + // Ensure that both operands are arrays/matrices + self::_checkMatrixOperands($operand1,$operand2,2); + try { + // Convert operand 1 from a PHP array to a matrix + $matrix = new PHPExcel_Shared_JAMA_Matrix($operand1); + // Perform the required operation against the operand 1 matrix, passing in operand 2 + $matrixResult = $matrix->concat($operand2); + $result = $matrixResult->getArray(); + } catch (PHPExcel_Exception $ex) { + $this->_debugLog->writeDebugLog('JAMA Matrix Exception: ', $ex->getMessage()); + $result = '#VALUE!'; + } + } else { + $result = '"'.str_replace('""','"',self::_unwrapResult($operand1,'"').self::_unwrapResult($operand2,'"')).'"'; + } + $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->_showTypeDetails($result)); + $stack->push('Value',$result); + break; + case '|' : // Intersect + $rowIntersect = array_intersect_key($operand1,$operand2); + $cellIntersect = $oCol = $oRow = array(); + foreach(array_keys($rowIntersect) as $row) { + $oRow[] = $row; + foreach($rowIntersect[$row] as $col => $data) { + $oCol[] = PHPExcel_Cell::columnIndexFromString($col) - 1; + $cellIntersect[$row] = array_intersect_key($operand1[$row],$operand2[$row]); + } + } + $cellRef = PHPExcel_Cell::stringFromColumnIndex(min($oCol)).min($oRow).':'.PHPExcel_Cell::stringFromColumnIndex(max($oCol)).max($oRow); + $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->_showTypeDetails($cellIntersect)); + $stack->push('Value',$cellIntersect,$cellRef); + break; + } + + // if the token is a unary operator, pop one value off the stack, do the operation, and push it back on + } elseif (($token === '~') || ($token === '%')) { +// echo 'Token is a unary operator
'; + if (($arg = $stack->pop()) === NULL) return $this->_raiseFormulaError('Internal error - Operand value missing from stack'); + $arg = $arg['value']; + if ($token === '~') { +// echo 'Token is a negation operator
'; + $this->_debugLog->writeDebugLog('Evaluating Negation of ', $this->_showValue($arg)); + $multiplier = -1; + } else { +// echo 'Token is a percentile operator
'; + $this->_debugLog->writeDebugLog('Evaluating Percentile of ', $this->_showValue($arg)); + $multiplier = 0.01; + } + if (is_array($arg)) { + self::_checkMatrixOperands($arg,$multiplier,2); + try { + $matrix1 = new PHPExcel_Shared_JAMA_Matrix($arg); + $matrixResult = $matrix1->arrayTimesEquals($multiplier); + $result = $matrixResult->getArray(); + } catch (PHPExcel_Exception $ex) { + $this->_debugLog->writeDebugLog('JAMA Matrix Exception: ', $ex->getMessage()); + $result = '#VALUE!'; + } + $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->_showTypeDetails($result)); + $stack->push('Value',$result); + } else { + $this->_executeNumericBinaryOperation($cellID,$multiplier,$arg,'*','arrayTimesEquals',$stack); + } + + } elseif (preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'$/i', $token, $matches)) { + $cellRef = NULL; +// echo 'Element '.$token.' is a Cell reference
'; + if (isset($matches[8])) { +// echo 'Reference is a Range of cells
'; + if ($pCell === NULL) { +// We can't access the range, so return a REF error + $cellValue = PHPExcel_Calculation_Functions::REF(); + } else { + $cellRef = $matches[6].$matches[7].':'.$matches[9].$matches[10]; + if ($matches[2] > '') { + $matches[2] = trim($matches[2],"\"'"); + if ((strpos($matches[2],'[') !== FALSE) || (strpos($matches[2],']') !== FALSE)) { + // It's a Reference to an external workbook (not currently supported) + return $this->_raiseFormulaError('Unable to access External Workbook'); + } + $matches[2] = trim($matches[2],"\"'"); +// echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].'
'; + $this->_debugLog->writeDebugLog('Evaluating Cell Range ', $cellRef, ' in worksheet ', $matches[2]); + if ($pCellParent !== NULL) { + $cellValue = $this->extractCellRange($cellRef, $this->_workbook->getSheetByName($matches[2]), FALSE); + } else { + return $this->_raiseFormulaError('Unable to access Cell Reference'); + } + $this->_debugLog->writeDebugLog('Evaluation Result for cells ', $cellRef, ' in worksheet ', $matches[2], ' is ', $this->_showTypeDetails($cellValue)); +// $cellRef = $matches[2].'!'.$cellRef; + } else { +// echo '$cellRef='.$cellRef.' in current worksheet
'; + $this->_debugLog->writeDebugLog('Evaluating Cell Range ', $cellRef, ' in current worksheet'); + if ($pCellParent !== NULL) { + $cellValue = $this->extractCellRange($cellRef, $pCellWorksheet, FALSE); + } else { + return $this->_raiseFormulaError('Unable to access Cell Reference'); + } + $this->_debugLog->writeDebugLog('Evaluation Result for cells ', $cellRef, ' is ', $this->_showTypeDetails($cellValue)); + } + } + } else { +// echo 'Reference is a single Cell
'; + if ($pCell === NULL) { +// We can't access the cell, so return a REF error + $cellValue = PHPExcel_Calculation_Functions::REF(); + } else { + $cellRef = $matches[6].$matches[7]; + if ($matches[2] > '') { + $matches[2] = trim($matches[2],"\"'"); + if ((strpos($matches[2],'[') !== FALSE) || (strpos($matches[2],']') !== FALSE)) { + // It's a Reference to an external workbook (not currently supported) + return $this->_raiseFormulaError('Unable to access External Workbook'); + } +// echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].'
'; + $this->_debugLog->writeDebugLog('Evaluating Cell ', $cellRef, ' in worksheet ', $matches[2]); + if ($pCellParent !== NULL) { + $cellSheet = $this->_workbook->getSheetByName($matches[2]); + if ($cellSheet && $cellSheet->cellExists($cellRef)) { + $cellValue = $this->extractCellRange($cellRef, $this->_workbook->getSheetByName($matches[2]), FALSE); + $pCell->attach($pCellParent); + } else { + $cellValue = NULL; + } + } else { + return $this->_raiseFormulaError('Unable to access Cell Reference'); + } + $this->_debugLog->writeDebugLog('Evaluation Result for cell ', $cellRef, ' in worksheet ', $matches[2], ' is ', $this->_showTypeDetails($cellValue)); +// $cellRef = $matches[2].'!'.$cellRef; + } else { +// echo '$cellRef='.$cellRef.' in current worksheet
'; + $this->_debugLog->writeDebugLog('Evaluating Cell ', $cellRef, ' in current worksheet'); + if ($pCellParent->isDataSet($cellRef)) { + $cellValue = $this->extractCellRange($cellRef, $pCellWorksheet, FALSE); + $pCell->attach($pCellParent); + } else { + $cellValue = NULL; + } + $this->_debugLog->writeDebugLog('Evaluation Result for cell ', $cellRef, ' is ', $this->_showTypeDetails($cellValue)); + } + } + } + $stack->push('Value',$cellValue,$cellRef); + + // if the token is a function, pop arguments off the stack, hand them to the function, and push the result back on + } elseif (preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $token, $matches)) { +// echo 'Token is a function
'; + $functionName = $matches[1]; + $argCount = $stack->pop(); + $argCount = $argCount['value']; + if ($functionName != 'MKMATRIX') { + $this->_debugLog->writeDebugLog('Evaluating Function ', self::_localeFunc($functionName), '() with ', (($argCount == 0) ? 'no' : $argCount), ' argument', (($argCount == 1) ? '' : 's')); + } + if ((isset(self::$_PHPExcelFunctions[$functionName])) || (isset(self::$_controlFunctions[$functionName]))) { // function + if (isset(self::$_PHPExcelFunctions[$functionName])) { + $functionCall = self::$_PHPExcelFunctions[$functionName]['functionCall']; + $passByReference = isset(self::$_PHPExcelFunctions[$functionName]['passByReference']); + $passCellReference = isset(self::$_PHPExcelFunctions[$functionName]['passCellReference']); + } elseif (isset(self::$_controlFunctions[$functionName])) { + $functionCall = self::$_controlFunctions[$functionName]['functionCall']; + $passByReference = isset(self::$_controlFunctions[$functionName]['passByReference']); + $passCellReference = isset(self::$_controlFunctions[$functionName]['passCellReference']); + } + // get the arguments for this function +// echo 'Function '.$functionName.' expects '.$argCount.' arguments
'; + $args = $argArrayVals = array(); + for ($i = 0; $i < $argCount; ++$i) { + $arg = $stack->pop(); + $a = $argCount - $i - 1; + if (($passByReference) && + (isset(self::$_PHPExcelFunctions[$functionName]['passByReference'][$a])) && + (self::$_PHPExcelFunctions[$functionName]['passByReference'][$a])) { + if ($arg['reference'] === NULL) { + $args[] = $cellID; + if ($functionName != 'MKMATRIX') { $argArrayVals[] = $this->_showValue($cellID); } + } else { + $args[] = $arg['reference']; + if ($functionName != 'MKMATRIX') { $argArrayVals[] = $this->_showValue($arg['reference']); } + } + } else { + $args[] = self::_unwrapResult($arg['value']); + if ($functionName != 'MKMATRIX') { $argArrayVals[] = $this->_showValue($arg['value']); } + } + } + // Reverse the order of the arguments + krsort($args); + if (($passByReference) && ($argCount == 0)) { + $args[] = $cellID; + $argArrayVals[] = $this->_showValue($cellID); + } +// echo 'Arguments are: '; +// print_r($args); +// echo '
'; + if ($functionName != 'MKMATRIX') { + if ($this->_debugLog->getWriteDebugLog()) { + krsort($argArrayVals); + $this->_debugLog->writeDebugLog('Evaluating ', self::_localeFunc($functionName), '( ', implode(self::$_localeArgumentSeparator.' ',PHPExcel_Calculation_Functions::flattenArray($argArrayVals)), ' )'); + } + } + // Process each argument in turn, building the return value as an array +// if (($argCount == 1) && (is_array($args[1])) && ($functionName != 'MKMATRIX')) { +// $operand1 = $args[1]; +// $this->_debugLog->writeDebugLog('Argument is a matrix: ', $this->_showValue($operand1)); +// $result = array(); +// $row = 0; +// foreach($operand1 as $args) { +// if (is_array($args)) { +// foreach($args as $arg) { +// $this->_debugLog->writeDebugLog('Evaluating ', self::_localeFunc($functionName), '( ', $this->_showValue($arg), ' )'); +// $r = call_user_func_array($functionCall,$arg); +// $this->_debugLog->writeDebugLog('Evaluation Result for ', self::_localeFunc($functionName), '() function call is ', $this->_showTypeDetails($r)); +// $result[$row][] = $r; +// } +// ++$row; +// } else { +// $this->_debugLog->writeDebugLog('Evaluating ', self::_localeFunc($functionName), '( ', $this->_showValue($args), ' )'); +// $r = call_user_func_array($functionCall,$args); +// $this->_debugLog->writeDebugLog('Evaluation Result for ', self::_localeFunc($functionName), '() function call is ', $this->_showTypeDetails($r)); +// $result[] = $r; +// } +// } +// } else { + // Process the argument with the appropriate function call + if ($passCellReference) { + $args[] = $pCell; + } + if (strpos($functionCall,'::') !== FALSE) { + $result = call_user_func_array(explode('::',$functionCall),$args); + } else { + foreach($args as &$arg) { + $arg = PHPExcel_Calculation_Functions::flattenSingleValue($arg); + } + unset($arg); + $result = call_user_func_array($functionCall,$args); + } +// } + if ($functionName != 'MKMATRIX') { + $this->_debugLog->writeDebugLog('Evaluation Result for ', self::_localeFunc($functionName), '() function call is ', $this->_showTypeDetails($result)); + } + $stack->push('Value',self::_wrapResult($result)); + } + + } else { + // if the token is a number, boolean, string or an Excel error, push it onto the stack + if (isset(self::$_ExcelConstants[strtoupper($token)])) { + $excelConstant = strtoupper($token); +// echo 'Token is a PHPExcel constant: '.$excelConstant.'
'; + $stack->push('Constant Value',self::$_ExcelConstants[$excelConstant]); + $this->_debugLog->writeDebugLog('Evaluating Constant ', $excelConstant, ' as ', $this->_showTypeDetails(self::$_ExcelConstants[$excelConstant])); + } elseif ((is_numeric($token)) || ($token === NULL) || (is_bool($token)) || ($token == '') || ($token{0} == '"') || ($token{0} == '#')) { +// echo 'Token is a number, boolean, string, null or an Excel error
'; + $stack->push('Value',$token); + // if the token is a named range, push the named range name onto the stack + } elseif (preg_match('/^'.self::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $token, $matches)) { +// echo 'Token is a named range
'; + $namedRange = $matches[6]; +// echo 'Named Range is '.$namedRange.'
'; + $this->_debugLog->writeDebugLog('Evaluating Named Range ', $namedRange); + $cellValue = $this->extractNamedRange($namedRange, ((NULL !== $pCell) ? $pCellWorksheet : NULL), FALSE); + $pCell->attach($pCellParent); + $this->_debugLog->writeDebugLog('Evaluation Result for named range ', $namedRange, ' is ', $this->_showTypeDetails($cellValue)); + $stack->push('Named Range',$cellValue,$namedRange); + } else { + return $this->_raiseFormulaError("undefined variable '$token'"); + } + } + } + // when we're out of tokens, the stack should have a single element, the final result + if ($stack->count() != 1) return $this->_raiseFormulaError("internal error"); + $output = $stack->pop(); + $output = $output['value']; + +// if ((is_array($output)) && (self::$returnArrayAsType != self::RETURN_ARRAY_AS_ARRAY)) { +// return array_shift(PHPExcel_Calculation_Functions::flattenArray($output)); +// } + return $output; + } // function _processTokenStack() + + + private function _validateBinaryOperand($cellID, &$operand, &$stack) { + if (is_array($operand)) { + if ((count($operand, COUNT_RECURSIVE) - count($operand)) == 1) { + do { + $operand = array_pop($operand); + } while (is_array($operand)); + } + } + // Numbers, matrices and booleans can pass straight through, as they're already valid + if (is_string($operand)) { + // We only need special validations for the operand if it is a string + // Start by stripping off the quotation marks we use to identify true excel string values internally + if ($operand > '' && $operand{0} == '"') { $operand = self::_unwrapResult($operand); } + // If the string is a numeric value, we treat it as a numeric, so no further testing + if (!is_numeric($operand)) { + // If not a numeric, test to see if the value is an Excel error, and so can't be used in normal binary operations + if ($operand > '' && $operand{0} == '#') { + $stack->push('Value', $operand); + $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->_showTypeDetails($operand)); + return FALSE; + } elseif (!PHPExcel_Shared_String::convertToNumberIfFraction($operand)) { + // If not a numeric or a fraction, then it's a text string, and so can't be used in mathematical binary operations + $stack->push('Value', '#VALUE!'); + $this->_debugLog->writeDebugLog('Evaluation Result is a ', $this->_showTypeDetails('#VALUE!')); + return FALSE; + } + } + } + + // return a true if the value of the operand is one that we can use in normal binary operations + return TRUE; + } // function _validateBinaryOperand() + + + private function _executeBinaryComparisonOperation($cellID, $operand1, $operand2, $operation, &$stack, $recursingArrays=FALSE) { + // If we're dealing with matrix operations, we want a matrix result + if ((is_array($operand1)) || (is_array($operand2))) { + $result = array(); + if ((is_array($operand1)) && (!is_array($operand2))) { + foreach($operand1 as $x => $operandData) { + $this->_debugLog->writeDebugLog('Evaluating Comparison ', $this->_showValue($operandData), ' ', $operation, ' ', $this->_showValue($operand2)); + $this->_executeBinaryComparisonOperation($cellID,$operandData,$operand2,$operation,$stack); + $r = $stack->pop(); + $result[$x] = $r['value']; + } + } elseif ((!is_array($operand1)) && (is_array($operand2))) { + foreach($operand2 as $x => $operandData) { + $this->_debugLog->writeDebugLog('Evaluating Comparison ', $this->_showValue($operand1), ' ', $operation, ' ', $this->_showValue($operandData)); + $this->_executeBinaryComparisonOperation($cellID,$operand1,$operandData,$operation,$stack); + $r = $stack->pop(); + $result[$x] = $r['value']; + } + } else { + if (!$recursingArrays) { self::_checkMatrixOperands($operand1,$operand2,2); } + foreach($operand1 as $x => $operandData) { + $this->_debugLog->writeDebugLog('Evaluating Comparison ', $this->_showValue($operandData), ' ', $operation, ' ', $this->_showValue($operand2[$x])); + $this->_executeBinaryComparisonOperation($cellID,$operandData,$operand2[$x],$operation,$stack,TRUE); + $r = $stack->pop(); + $result[$x] = $r['value']; + } + } + // Log the result details + $this->_debugLog->writeDebugLog('Comparison Evaluation Result is ', $this->_showTypeDetails($result)); + // And push the result onto the stack + $stack->push('Array',$result); + return TRUE; + } + + // Simple validate the two operands if they are string values + if (is_string($operand1) && $operand1 > '' && $operand1{0} == '"') { $operand1 = self::_unwrapResult($operand1); } + if (is_string($operand2) && $operand2 > '' && $operand2{0} == '"') { $operand2 = self::_unwrapResult($operand2); } + + // Use case insensitive comparaison if not OpenOffice mode + if (PHPExcel_Calculation_Functions::getCompatibilityMode() != PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) + { + if (is_string($operand1)) { + $operand1 = strtoupper($operand1); + } + + if (is_string($operand2)) { + $operand2 = strtoupper($operand2); + } + } + + $useLowercaseFirstComparison = is_string($operand1) && is_string($operand2) && PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE; + + // execute the necessary operation + switch ($operation) { + // Greater than + case '>': + if ($useLowercaseFirstComparison) { + $result = $this->strcmpLowercaseFirst($operand1, $operand2) > 0; + } else { + $result = ($operand1 > $operand2); + } + break; + // Less than + case '<': + if ($useLowercaseFirstComparison) { + $result = $this->strcmpLowercaseFirst($operand1, $operand2) < 0; + } else { + $result = ($operand1 < $operand2); + } + break; + // Equality + case '=': + $result = ($operand1 == $operand2); + break; + // Greater than or equal + case '>=': + if ($useLowercaseFirstComparison) { + $result = $this->strcmpLowercaseFirst($operand1, $operand2) >= 0; + } else { + $result = ($operand1 >= $operand2); + } + break; + // Less than or equal + case '<=': + if ($useLowercaseFirstComparison) { + $result = $this->strcmpLowercaseFirst($operand1, $operand2) <= 0; + } else { + $result = ($operand1 <= $operand2); + } + break; + // Inequality + case '<>': + $result = ($operand1 != $operand2); + break; + } + + // Log the result details + $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->_showTypeDetails($result)); + // And push the result onto the stack + $stack->push('Value',$result); + return TRUE; + } // function _executeBinaryComparisonOperation() + + /** + * Compare two strings in the same way as strcmp() except that lowercase come before uppercase letters + * @param string $str1 + * @param string $str2 + * @return integer + */ + private function strcmpLowercaseFirst($str1, $str2) + { + $from = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; + $to = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; + $inversedStr1 = strtr($str1, $from, $to); + $inversedStr2 = strtr($str2, $from, $to); + + return strcmp($inversedStr1, $inversedStr2); + } + + private function _executeNumericBinaryOperation($cellID,$operand1,$operand2,$operation,$matrixFunction,&$stack) { + // Validate the two operands + if (!$this->_validateBinaryOperand($cellID,$operand1,$stack)) return FALSE; + if (!$this->_validateBinaryOperand($cellID,$operand2,$stack)) return FALSE; + + // If either of the operands is a matrix, we need to treat them both as matrices + // (converting the other operand to a matrix if need be); then perform the required + // matrix operation + if ((is_array($operand1)) || (is_array($operand2))) { + // Ensure that both operands are arrays/matrices of the same size + self::_checkMatrixOperands($operand1, $operand2, 2); + + try { + // Convert operand 1 from a PHP array to a matrix + $matrix = new PHPExcel_Shared_JAMA_Matrix($operand1); + // Perform the required operation against the operand 1 matrix, passing in operand 2 + $matrixResult = $matrix->$matrixFunction($operand2); + $result = $matrixResult->getArray(); + } catch (PHPExcel_Exception $ex) { + $this->_debugLog->writeDebugLog('JAMA Matrix Exception: ', $ex->getMessage()); + $result = '#VALUE!'; + } + } else { + if ((PHPExcel_Calculation_Functions::getCompatibilityMode() != PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) && + ((is_string($operand1) && !is_numeric($operand1) && strlen($operand1)>0) || + (is_string($operand2) && !is_numeric($operand2) && strlen($operand2)>0))) { + $result = PHPExcel_Calculation_Functions::VALUE(); + } else { + // If we're dealing with non-matrix operations, execute the necessary operation + switch ($operation) { + // Addition + case '+': + $result = $operand1 + $operand2; + break; + // Subtraction + case '-': + $result = $operand1 - $operand2; + break; + // Multiplication + case '*': + $result = $operand1 * $operand2; + break; + // Division + case '/': + if ($operand2 == 0) { + // Trap for Divide by Zero error + $stack->push('Value','#DIV/0!'); + $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->_showTypeDetails('#DIV/0!')); + return FALSE; + } else { + $result = $operand1 / $operand2; + } + break; + // Power + case '^': + $result = pow($operand1, $operand2); + break; + } + } + } + + // Log the result details + $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->_showTypeDetails($result)); + // And push the result onto the stack + $stack->push('Value',$result); + return TRUE; + } // function _executeNumericBinaryOperation() + + + // trigger an error, but nicely, if need be + protected function _raiseFormulaError($errorMessage) { + $this->formulaError = $errorMessage; + $this->_cyclicReferenceStack->clear(); + if (!$this->suppressFormulaErrors) throw new PHPExcel_Calculation_Exception($errorMessage); + trigger_error($errorMessage, E_USER_ERROR); + } // function _raiseFormulaError() + + + /** + * Extract range values + * + * @param string &$pRange String based range representation + * @param PHPExcel_Worksheet $pSheet Worksheet + * @param boolean $resetLog Flag indicating whether calculation log should be reset or not + * @return mixed Array of values in range if range contains more than one element. Otherwise, a single value is returned. + * @throws PHPExcel_Calculation_Exception + */ + public function extractCellRange(&$pRange = 'A1', PHPExcel_Worksheet $pSheet = NULL, $resetLog = TRUE) { + // Return value + $returnValue = array (); + +// echo 'extractCellRange('.$pRange.')',PHP_EOL; + if ($pSheet !== NULL) { + $pSheetName = $pSheet->getTitle(); +// echo 'Passed sheet name is '.$pSheetName.PHP_EOL; +// echo 'Range reference is '.$pRange.PHP_EOL; + if (strpos ($pRange, '!') !== false) { +// echo '$pRange reference includes sheet reference',PHP_EOL; + list($pSheetName,$pRange) = PHPExcel_Worksheet::extractSheetTitle($pRange, true); +// echo 'New sheet name is '.$pSheetName,PHP_EOL; +// echo 'Adjusted Range reference is '.$pRange,PHP_EOL; + $pSheet = $this->_workbook->getSheetByName($pSheetName); + } + + // Extract range + $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($pRange); + $pRange = $pSheetName.'!'.$pRange; + if (!isset($aReferences[1])) { + // Single cell in range + sscanf($aReferences[0],'%[A-Z]%d', $currentCol, $currentRow); + $cellValue = NULL; + if ($pSheet->cellExists($aReferences[0])) { + $returnValue[$currentRow][$currentCol] = $pSheet->getCell($aReferences[0])->getCalculatedValue($resetLog); + } else { + $returnValue[$currentRow][$currentCol] = NULL; + } + } else { + // Extract cell data for all cells in the range + foreach ($aReferences as $reference) { + // Extract range + sscanf($reference,'%[A-Z]%d', $currentCol, $currentRow); + $cellValue = NULL; + if ($pSheet->cellExists($reference)) { + $returnValue[$currentRow][$currentCol] = $pSheet->getCell($reference)->getCalculatedValue($resetLog); + } else { + $returnValue[$currentRow][$currentCol] = NULL; + } + } + } + } + + // Return + return $returnValue; + } // function extractCellRange() + + + /** + * Extract range values + * + * @param string &$pRange String based range representation + * @param PHPExcel_Worksheet $pSheet Worksheet + * @return mixed Array of values in range if range contains more than one element. Otherwise, a single value is returned. + * @param boolean $resetLog Flag indicating whether calculation log should be reset or not + * @throws PHPExcel_Calculation_Exception + */ + public function extractNamedRange(&$pRange = 'A1', PHPExcel_Worksheet $pSheet = NULL, $resetLog = TRUE) { + // Return value + $returnValue = array (); + +// echo 'extractNamedRange('.$pRange.')
'; + if ($pSheet !== NULL) { + $pSheetName = $pSheet->getTitle(); +// echo 'Current sheet name is '.$pSheetName.'
'; +// echo 'Range reference is '.$pRange.'
'; + if (strpos ($pRange, '!') !== false) { +// echo '$pRange reference includes sheet reference',PHP_EOL; + list($pSheetName,$pRange) = PHPExcel_Worksheet::extractSheetTitle($pRange, true); +// echo 'New sheet name is '.$pSheetName,PHP_EOL; +// echo 'Adjusted Range reference is '.$pRange,PHP_EOL; + $pSheet = $this->_workbook->getSheetByName($pSheetName); + } + + // Named range? + $namedRange = PHPExcel_NamedRange::resolveRange($pRange, $pSheet); + if ($namedRange !== NULL) { + $pSheet = $namedRange->getWorksheet(); +// echo 'Named Range '.$pRange.' ('; + $pRange = $namedRange->getRange(); + $splitRange = PHPExcel_Cell::splitRange($pRange); + // Convert row and column references + if (ctype_alpha($splitRange[0][0])) { + $pRange = $splitRange[0][0] . '1:' . $splitRange[0][1] . $namedRange->getWorksheet()->getHighestRow(); + } elseif(ctype_digit($splitRange[0][0])) { + $pRange = 'A' . $splitRange[0][0] . ':' . $namedRange->getWorksheet()->getHighestColumn() . $splitRange[0][1]; + } +// echo $pRange.') is in sheet '.$namedRange->getWorksheet()->getTitle().'
'; + +// if ($pSheet->getTitle() != $namedRange->getWorksheet()->getTitle()) { +// if (!$namedRange->getLocalOnly()) { +// $pSheet = $namedRange->getWorksheet(); +// } else { +// return $returnValue; +// } +// } + } else { + return PHPExcel_Calculation_Functions::REF(); + } + + // Extract range + $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($pRange); +// var_dump($aReferences); + if (!isset($aReferences[1])) { + // Single cell (or single column or row) in range + list($currentCol,$currentRow) = PHPExcel_Cell::coordinateFromString($aReferences[0]); + $cellValue = NULL; + if ($pSheet->cellExists($aReferences[0])) { + $returnValue[$currentRow][$currentCol] = $pSheet->getCell($aReferences[0])->getCalculatedValue($resetLog); + } else { + $returnValue[$currentRow][$currentCol] = NULL; + } + } else { + // Extract cell data for all cells in the range + foreach ($aReferences as $reference) { + // Extract range + list($currentCol,$currentRow) = PHPExcel_Cell::coordinateFromString($reference); +// echo 'NAMED RANGE: $currentCol='.$currentCol.' $currentRow='.$currentRow.'
'; + $cellValue = NULL; + if ($pSheet->cellExists($reference)) { + $returnValue[$currentRow][$currentCol] = $pSheet->getCell($reference)->getCalculatedValue($resetLog); + } else { + $returnValue[$currentRow][$currentCol] = NULL; + } + } + } +// print_r($returnValue); +// echo '
'; + } + + // Return + return $returnValue; + } // function extractNamedRange() + + + /** + * Is a specific function implemented? + * + * @param string $pFunction Function Name + * @return boolean + */ + public function isImplemented($pFunction = '') { + $pFunction = strtoupper ($pFunction); + if (isset(self::$_PHPExcelFunctions[$pFunction])) { + return (self::$_PHPExcelFunctions[$pFunction]['functionCall'] != 'PHPExcel_Calculation_Functions::DUMMY'); + } else { + return FALSE; + } + } // function isImplemented() + + + /** + * Get a list of all implemented functions as an array of function objects + * + * @return array of PHPExcel_Calculation_Function + */ + public function listFunctions() { + // Return value + $returnValue = array(); + // Loop functions + foreach(self::$_PHPExcelFunctions as $functionName => $function) { + if ($function['functionCall'] != 'PHPExcel_Calculation_Functions::DUMMY') { + $returnValue[$functionName] = new PHPExcel_Calculation_Function($function['category'], + $functionName, + $function['functionCall'] + ); + } + } + + // Return + return $returnValue; + } // function listFunctions() + + + /** + * Get a list of all Excel function names + * + * @return array + */ + public function listAllFunctionNames() { + return array_keys(self::$_PHPExcelFunctions); + } // function listAllFunctionNames() + + /** + * Get a list of implemented Excel function names + * + * @return array + */ + public function listFunctionNames() { + // Return value + $returnValue = array(); + // Loop functions + foreach(self::$_PHPExcelFunctions as $functionName => $function) { + if ($function['functionCall'] != 'PHPExcel_Calculation_Functions::DUMMY') { + $returnValue[] = $functionName; + } + } + + // Return + return $returnValue; + } // function listFunctionNames() + +} // class PHPExcel_Calculation + diff --git a/admin/helpers/PHPExcel/Calculation/Database.php b/admin/helpers/PHPExcel/Calculation/Database.php new file mode 100644 index 00000000..908decfc --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/Database.php @@ -0,0 +1,725 @@ + $criteriaName) { + $testCondition = array(); + $testConditionCount = 0; + foreach($criteria as $row => $criterion) { + if ($criterion[$key] > '') { + $testCondition[] = '[:'.$criteriaName.']'.PHPExcel_Calculation_Functions::_ifCondition($criterion[$key]); + $testConditionCount++; + } + } + if ($testConditionCount > 1) { + $testConditions[] = 'OR('.implode(',',$testCondition).')'; + $testConditionsCount++; + } elseif($testConditionCount == 1) { + $testConditions[] = $testCondition[0]; + $testConditionsCount++; + } + } + + if ($testConditionsCount > 1) { + $testConditionSet = 'AND('.implode(',',$testConditions).')'; + } elseif($testConditionsCount == 1) { + $testConditionSet = $testConditions[0]; + } + + // Loop through each row of the database + foreach($database as $dataRow => $dataValues) { + // Substitute actual values from the database row for our [:placeholders] + $testConditionList = $testConditionSet; + foreach($criteriaNames as $key => $criteriaName) { + $k = array_search($criteriaName,$fieldNames); + if (isset($dataValues[$k])) { + $dataValue = $dataValues[$k]; + $dataValue = (is_string($dataValue)) ? PHPExcel_Calculation::_wrapResult(strtoupper($dataValue)) : $dataValue; + $testConditionList = str_replace('[:'.$criteriaName.']',$dataValue,$testConditionList); + } + } + // evaluate the criteria against the row data + $result = PHPExcel_Calculation::getInstance()->_calculateFormulaValue('='.$testConditionList); + // If the row failed to meet the criteria, remove it from the database + if (!$result) { + unset($database[$dataRow]); + } + } + + return $database; + } + + + /** + * DAVERAGE + * + * Averages the values in a column of a list or database that match conditions you specify. + * + * Excel Function: + * DAVERAGE(database,field,criteria) + * + * @access public + * @category Database Functions + * @param mixed[] $database The range of cells that makes up the list or database. + * A database is a list of related data in which rows of related + * information are records, and columns of data are fields. The + * first row of the list contains labels for each column. + * @param string|integer $field Indicates which column is used in the function. Enter the + * column label enclosed between double quotation marks, such as + * "Age" or "Yield," or a number (without quotation marks) that + * represents the position of the column within the list: 1 for + * the first column, 2 for the second column, and so on. + * @param mixed[] $criteria The range of cells that contains the conditions you specify. + * You can use any range for the criteria argument, as long as it + * includes at least one column label and at least one cell below + * the column label in which you specify a condition for the + * column. + * @return float + * + */ + public static function DAVERAGE($database,$field,$criteria) { + $field = self::__fieldExtract($database,$field); + if (is_null($field)) { + return NULL; + } + // reduce the database to a set of rows that match all the criteria + $database = self::__filter($database,$criteria); + // extract an array of values for the requested column + $colData = array(); + foreach($database as $row) { + $colData[] = $row[$field]; + } + + // Return + return PHPExcel_Calculation_Statistical::AVERAGE($colData); + } // function DAVERAGE() + + + /** + * DCOUNT + * + * Counts the cells that contain numbers in a column of a list or database that match conditions + * that you specify. + * + * Excel Function: + * DCOUNT(database,[field],criteria) + * + * Excel Function: + * DAVERAGE(database,field,criteria) + * + * @access public + * @category Database Functions + * @param mixed[] $database The range of cells that makes up the list or database. + * A database is a list of related data in which rows of related + * information are records, and columns of data are fields. The + * first row of the list contains labels for each column. + * @param string|integer $field Indicates which column is used in the function. Enter the + * column label enclosed between double quotation marks, such as + * "Age" or "Yield," or a number (without quotation marks) that + * represents the position of the column within the list: 1 for + * the first column, 2 for the second column, and so on. + * @param mixed[] $criteria The range of cells that contains the conditions you specify. + * You can use any range for the criteria argument, as long as it + * includes at least one column label and at least one cell below + * the column label in which you specify a condition for the + * column. + * @return integer + * + * @TODO The field argument is optional. If field is omitted, DCOUNT counts all records in the + * database that match the criteria. + * + */ + public static function DCOUNT($database,$field,$criteria) { + $field = self::__fieldExtract($database,$field); + if (is_null($field)) { + return NULL; + } + + // reduce the database to a set of rows that match all the criteria + $database = self::__filter($database,$criteria); + // extract an array of values for the requested column + $colData = array(); + foreach($database as $row) { + $colData[] = $row[$field]; + } + + // Return + return PHPExcel_Calculation_Statistical::COUNT($colData); + } // function DCOUNT() + + + /** + * DCOUNTA + * + * Counts the nonblank cells in a column of a list or database that match conditions that you specify. + * + * Excel Function: + * DCOUNTA(database,[field],criteria) + * + * @access public + * @category Database Functions + * @param mixed[] $database The range of cells that makes up the list or database. + * A database is a list of related data in which rows of related + * information are records, and columns of data are fields. The + * first row of the list contains labels for each column. + * @param string|integer $field Indicates which column is used in the function. Enter the + * column label enclosed between double quotation marks, such as + * "Age" or "Yield," or a number (without quotation marks) that + * represents the position of the column within the list: 1 for + * the first column, 2 for the second column, and so on. + * @param mixed[] $criteria The range of cells that contains the conditions you specify. + * You can use any range for the criteria argument, as long as it + * includes at least one column label and at least one cell below + * the column label in which you specify a condition for the + * column. + * @return integer + * + * @TODO The field argument is optional. If field is omitted, DCOUNTA counts all records in the + * database that match the criteria. + * + */ + public static function DCOUNTA($database,$field,$criteria) { + $field = self::__fieldExtract($database,$field); + if (is_null($field)) { + return NULL; + } + + // reduce the database to a set of rows that match all the criteria + $database = self::__filter($database,$criteria); + // extract an array of values for the requested column + $colData = array(); + foreach($database as $row) { + $colData[] = $row[$field]; + } + + // Return + return PHPExcel_Calculation_Statistical::COUNTA($colData); + } // function DCOUNTA() + + + /** + * DGET + * + * Extracts a single value from a column of a list or database that matches conditions that you + * specify. + * + * Excel Function: + * DGET(database,field,criteria) + * + * @access public + * @category Database Functions + * @param mixed[] $database The range of cells that makes up the list or database. + * A database is a list of related data in which rows of related + * information are records, and columns of data are fields. The + * first row of the list contains labels for each column. + * @param string|integer $field Indicates which column is used in the function. Enter the + * column label enclosed between double quotation marks, such as + * "Age" or "Yield," or a number (without quotation marks) that + * represents the position of the column within the list: 1 for + * the first column, 2 for the second column, and so on. + * @param mixed[] $criteria The range of cells that contains the conditions you specify. + * You can use any range for the criteria argument, as long as it + * includes at least one column label and at least one cell below + * the column label in which you specify a condition for the + * column. + * @return mixed + * + */ + public static function DGET($database,$field,$criteria) { + $field = self::__fieldExtract($database,$field); + if (is_null($field)) { + return NULL; + } + + // reduce the database to a set of rows that match all the criteria + $database = self::__filter($database,$criteria); + // extract an array of values for the requested column + $colData = array(); + foreach($database as $row) { + $colData[] = $row[$field]; + } + + // Return + if (count($colData) > 1) { + return PHPExcel_Calculation_Functions::NaN(); + } + + return $colData[0]; + } // function DGET() + + + /** + * DMAX + * + * Returns the largest number in a column of a list or database that matches conditions you that + * specify. + * + * Excel Function: + * DMAX(database,field,criteria) + * + * @access public + * @category Database Functions + * @param mixed[] $database The range of cells that makes up the list or database. + * A database is a list of related data in which rows of related + * information are records, and columns of data are fields. The + * first row of the list contains labels for each column. + * @param string|integer $field Indicates which column is used in the function. Enter the + * column label enclosed between double quotation marks, such as + * "Age" or "Yield," or a number (without quotation marks) that + * represents the position of the column within the list: 1 for + * the first column, 2 for the second column, and so on. + * @param mixed[] $criteria The range of cells that contains the conditions you specify. + * You can use any range for the criteria argument, as long as it + * includes at least one column label and at least one cell below + * the column label in which you specify a condition for the + * column. + * @return float + * + */ + public static function DMAX($database,$field,$criteria) { + $field = self::__fieldExtract($database,$field); + if (is_null($field)) { + return NULL; + } + + // reduce the database to a set of rows that match all the criteria + $database = self::__filter($database,$criteria); + // extract an array of values for the requested column + $colData = array(); + foreach($database as $row) { + $colData[] = $row[$field]; + } + + // Return + return PHPExcel_Calculation_Statistical::MAX($colData); + } // function DMAX() + + + /** + * DMIN + * + * Returns the smallest number in a column of a list or database that matches conditions you that + * specify. + * + * Excel Function: + * DMIN(database,field,criteria) + * + * @access public + * @category Database Functions + * @param mixed[] $database The range of cells that makes up the list or database. + * A database is a list of related data in which rows of related + * information are records, and columns of data are fields. The + * first row of the list contains labels for each column. + * @param string|integer $field Indicates which column is used in the function. Enter the + * column label enclosed between double quotation marks, such as + * "Age" or "Yield," or a number (without quotation marks) that + * represents the position of the column within the list: 1 for + * the first column, 2 for the second column, and so on. + * @param mixed[] $criteria The range of cells that contains the conditions you specify. + * You can use any range for the criteria argument, as long as it + * includes at least one column label and at least one cell below + * the column label in which you specify a condition for the + * column. + * @return float + * + */ + public static function DMIN($database,$field,$criteria) { + $field = self::__fieldExtract($database,$field); + if (is_null($field)) { + return NULL; + } + + // reduce the database to a set of rows that match all the criteria + $database = self::__filter($database,$criteria); + // extract an array of values for the requested column + $colData = array(); + foreach($database as $row) { + $colData[] = $row[$field]; + } + + // Return + return PHPExcel_Calculation_Statistical::MIN($colData); + } // function DMIN() + + + /** + * DPRODUCT + * + * Multiplies the values in a column of a list or database that match conditions that you specify. + * + * Excel Function: + * DPRODUCT(database,field,criteria) + * + * @access public + * @category Database Functions + * @param mixed[] $database The range of cells that makes up the list or database. + * A database is a list of related data in which rows of related + * information are records, and columns of data are fields. The + * first row of the list contains labels for each column. + * @param string|integer $field Indicates which column is used in the function. Enter the + * column label enclosed between double quotation marks, such as + * "Age" or "Yield," or a number (without quotation marks) that + * represents the position of the column within the list: 1 for + * the first column, 2 for the second column, and so on. + * @param mixed[] $criteria The range of cells that contains the conditions you specify. + * You can use any range for the criteria argument, as long as it + * includes at least one column label and at least one cell below + * the column label in which you specify a condition for the + * column. + * @return float + * + */ + public static function DPRODUCT($database,$field,$criteria) { + $field = self::__fieldExtract($database,$field); + if (is_null($field)) { + return NULL; + } + + // reduce the database to a set of rows that match all the criteria + $database = self::__filter($database,$criteria); + // extract an array of values for the requested column + $colData = array(); + foreach($database as $row) { + $colData[] = $row[$field]; + } + + // Return + return PHPExcel_Calculation_MathTrig::PRODUCT($colData); + } // function DPRODUCT() + + + /** + * DSTDEV + * + * Estimates the standard deviation of a population based on a sample by using the numbers in a + * column of a list or database that match conditions that you specify. + * + * Excel Function: + * DSTDEV(database,field,criteria) + * + * @access public + * @category Database Functions + * @param mixed[] $database The range of cells that makes up the list or database. + * A database is a list of related data in which rows of related + * information are records, and columns of data are fields. The + * first row of the list contains labels for each column. + * @param string|integer $field Indicates which column is used in the function. Enter the + * column label enclosed between double quotation marks, such as + * "Age" or "Yield," or a number (without quotation marks) that + * represents the position of the column within the list: 1 for + * the first column, 2 for the second column, and so on. + * @param mixed[] $criteria The range of cells that contains the conditions you specify. + * You can use any range for the criteria argument, as long as it + * includes at least one column label and at least one cell below + * the column label in which you specify a condition for the + * column. + * @return float + * + */ + public static function DSTDEV($database,$field,$criteria) { + $field = self::__fieldExtract($database,$field); + if (is_null($field)) { + return NULL; + } + + // reduce the database to a set of rows that match all the criteria + $database = self::__filter($database,$criteria); + // extract an array of values for the requested column + $colData = array(); + foreach($database as $row) { + $colData[] = $row[$field]; + } + + // Return + return PHPExcel_Calculation_Statistical::STDEV($colData); + } // function DSTDEV() + + + /** + * DSTDEVP + * + * Calculates the standard deviation of a population based on the entire population by using the + * numbers in a column of a list or database that match conditions that you specify. + * + * Excel Function: + * DSTDEVP(database,field,criteria) + * + * @access public + * @category Database Functions + * @param mixed[] $database The range of cells that makes up the list or database. + * A database is a list of related data in which rows of related + * information are records, and columns of data are fields. The + * first row of the list contains labels for each column. + * @param string|integer $field Indicates which column is used in the function. Enter the + * column label enclosed between double quotation marks, such as + * "Age" or "Yield," or a number (without quotation marks) that + * represents the position of the column within the list: 1 for + * the first column, 2 for the second column, and so on. + * @param mixed[] $criteria The range of cells that contains the conditions you specify. + * You can use any range for the criteria argument, as long as it + * includes at least one column label and at least one cell below + * the column label in which you specify a condition for the + * column. + * @return float + * + */ + public static function DSTDEVP($database,$field,$criteria) { + $field = self::__fieldExtract($database,$field); + if (is_null($field)) { + return NULL; + } + + // reduce the database to a set of rows that match all the criteria + $database = self::__filter($database,$criteria); + // extract an array of values for the requested column + $colData = array(); + foreach($database as $row) { + $colData[] = $row[$field]; + } + + // Return + return PHPExcel_Calculation_Statistical::STDEVP($colData); + } // function DSTDEVP() + + + /** + * DSUM + * + * Adds the numbers in a column of a list or database that match conditions that you specify. + * + * Excel Function: + * DSUM(database,field,criteria) + * + * @access public + * @category Database Functions + * @param mixed[] $database The range of cells that makes up the list or database. + * A database is a list of related data in which rows of related + * information are records, and columns of data are fields. The + * first row of the list contains labels for each column. + * @param string|integer $field Indicates which column is used in the function. Enter the + * column label enclosed between double quotation marks, such as + * "Age" or "Yield," or a number (without quotation marks) that + * represents the position of the column within the list: 1 for + * the first column, 2 for the second column, and so on. + * @param mixed[] $criteria The range of cells that contains the conditions you specify. + * You can use any range for the criteria argument, as long as it + * includes at least one column label and at least one cell below + * the column label in which you specify a condition for the + * column. + * @return float + * + */ + public static function DSUM($database,$field,$criteria) { + $field = self::__fieldExtract($database,$field); + if (is_null($field)) { + return NULL; + } + + // reduce the database to a set of rows that match all the criteria + $database = self::__filter($database,$criteria); + // extract an array of values for the requested column + $colData = array(); + foreach($database as $row) { + $colData[] = $row[$field]; + } + + // Return + return PHPExcel_Calculation_MathTrig::SUM($colData); + } // function DSUM() + + + /** + * DVAR + * + * Estimates the variance of a population based on a sample by using the numbers in a column + * of a list or database that match conditions that you specify. + * + * Excel Function: + * DVAR(database,field,criteria) + * + * @access public + * @category Database Functions + * @param mixed[] $database The range of cells that makes up the list or database. + * A database is a list of related data in which rows of related + * information are records, and columns of data are fields. The + * first row of the list contains labels for each column. + * @param string|integer $field Indicates which column is used in the function. Enter the + * column label enclosed between double quotation marks, such as + * "Age" or "Yield," or a number (without quotation marks) that + * represents the position of the column within the list: 1 for + * the first column, 2 for the second column, and so on. + * @param mixed[] $criteria The range of cells that contains the conditions you specify. + * You can use any range for the criteria argument, as long as it + * includes at least one column label and at least one cell below + * the column label in which you specify a condition for the + * column. + * @return float + * + */ + public static function DVAR($database,$field,$criteria) { + $field = self::__fieldExtract($database,$field); + if (is_null($field)) { + return NULL; + } + + // reduce the database to a set of rows that match all the criteria + $database = self::__filter($database,$criteria); + // extract an array of values for the requested column + $colData = array(); + foreach($database as $row) { + $colData[] = $row[$field]; + } + + // Return + return PHPExcel_Calculation_Statistical::VARFunc($colData); + } // function DVAR() + + + /** + * DVARP + * + * Calculates the variance of a population based on the entire population by using the numbers + * in a column of a list or database that match conditions that you specify. + * + * Excel Function: + * DVARP(database,field,criteria) + * + * @access public + * @category Database Functions + * @param mixed[] $database The range of cells that makes up the list or database. + * A database is a list of related data in which rows of related + * information are records, and columns of data are fields. The + * first row of the list contains labels for each column. + * @param string|integer $field Indicates which column is used in the function. Enter the + * column label enclosed between double quotation marks, such as + * "Age" or "Yield," or a number (without quotation marks) that + * represents the position of the column within the list: 1 for + * the first column, 2 for the second column, and so on. + * @param mixed[] $criteria The range of cells that contains the conditions you specify. + * You can use any range for the criteria argument, as long as it + * includes at least one column label and at least one cell below + * the column label in which you specify a condition for the + * column. + * @return float + * + */ + public static function DVARP($database,$field,$criteria) { + $field = self::__fieldExtract($database,$field); + if (is_null($field)) { + return NULL; + } + + // reduce the database to a set of rows that match all the criteria + $database = self::__filter($database,$criteria); + // extract an array of values for the requested column + $colData = array(); + foreach($database as $row) { + $colData[] = $row[$field]; + } + + // Return + return PHPExcel_Calculation_Statistical::VARP($colData); + } // function DVARP() + + +} // class PHPExcel_Calculation_Database diff --git a/admin/helpers/PHPExcel/Calculation/DateTime.php b/admin/helpers/PHPExcel/Calculation/DateTime.php new file mode 100644 index 00000000..6eb96fd2 --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/DateTime.php @@ -0,0 +1,1475 @@ +format('m'); + $oYear = (int) $PHPDateObject->format('Y'); + + $adjustmentMonthsString = (string) $adjustmentMonths; + if ($adjustmentMonths > 0) { + $adjustmentMonthsString = '+'.$adjustmentMonths; + } + if ($adjustmentMonths != 0) { + $PHPDateObject->modify($adjustmentMonthsString.' months'); + } + $nMonth = (int) $PHPDateObject->format('m'); + $nYear = (int) $PHPDateObject->format('Y'); + + $monthDiff = ($nMonth - $oMonth) + (($nYear - $oYear) * 12); + if ($monthDiff != $adjustmentMonths) { + $adjustDays = (int) $PHPDateObject->format('d'); + $adjustDaysString = '-'.$adjustDays.' days'; + $PHPDateObject->modify($adjustDaysString); + } + return $PHPDateObject; + } // function _adjustDateByMonths() + + + /** + * DATETIMENOW + * + * Returns the current date and time. + * The NOW function is useful when you need to display the current date and time on a worksheet or + * calculate a value based on the current date and time, and have that value updated each time you + * open the worksheet. + * + * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date + * and time format of your regional settings. PHPExcel does not change cell formatting in this way. + * + * Excel Function: + * NOW() + * + * @access public + * @category Date/Time Functions + * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, + * depending on the value of the ReturnDateType flag + */ + public static function DATETIMENOW() { + $saveTimeZone = date_default_timezone_get(); + date_default_timezone_set('UTC'); + $retValue = False; + switch (PHPExcel_Calculation_Functions::getReturnDateType()) { + case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL : + $retValue = (float) PHPExcel_Shared_Date::PHPToExcel(time()); + break; + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC : + $retValue = (integer) time(); + break; + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT : + $retValue = new DateTime(); + break; + } + date_default_timezone_set($saveTimeZone); + + return $retValue; + } // function DATETIMENOW() + + + /** + * DATENOW + * + * Returns the current date. + * The NOW function is useful when you need to display the current date and time on a worksheet or + * calculate a value based on the current date and time, and have that value updated each time you + * open the worksheet. + * + * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date + * and time format of your regional settings. PHPExcel does not change cell formatting in this way. + * + * Excel Function: + * TODAY() + * + * @access public + * @category Date/Time Functions + * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, + * depending on the value of the ReturnDateType flag + */ + public static function DATENOW() { + $saveTimeZone = date_default_timezone_get(); + date_default_timezone_set('UTC'); + $retValue = False; + $excelDateTime = floor(PHPExcel_Shared_Date::PHPToExcel(time())); + switch (PHPExcel_Calculation_Functions::getReturnDateType()) { + case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL : + $retValue = (float) $excelDateTime; + break; + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC : + $retValue = (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateTime); + break; + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT : + $retValue = PHPExcel_Shared_Date::ExcelToPHPObject($excelDateTime); + break; + } + date_default_timezone_set($saveTimeZone); + + return $retValue; + } // function DATENOW() + + + /** + * DATE + * + * The DATE function returns a value that represents a particular date. + * + * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date + * format of your regional settings. PHPExcel does not change cell formatting in this way. + * + * Excel Function: + * DATE(year,month,day) + * + * PHPExcel is a lot more forgiving than MS Excel when passing non numeric values to this function. + * A Month name or abbreviation (English only at this point) such as 'January' or 'Jan' will still be accepted, + * as will a day value with a suffix (e.g. '21st' rather than simply 21); again only English language. + * + * @access public + * @category Date/Time Functions + * @param integer $year The value of the year argument can include one to four digits. + * Excel interprets the year argument according to the configured + * date system: 1900 or 1904. + * If year is between 0 (zero) and 1899 (inclusive), Excel adds that + * value to 1900 to calculate the year. For example, DATE(108,1,2) + * returns January 2, 2008 (1900+108). + * If year is between 1900 and 9999 (inclusive), Excel uses that + * value as the year. For example, DATE(2008,1,2) returns January 2, + * 2008. + * If year is less than 0 or is 10000 or greater, Excel returns the + * #NUM! error value. + * @param integer $month A positive or negative integer representing the month of the year + * from 1 to 12 (January to December). + * If month is greater than 12, month adds that number of months to + * the first month in the year specified. For example, DATE(2008,14,2) + * returns the serial number representing February 2, 2009. + * If month is less than 1, month subtracts the magnitude of that + * number of months, plus 1, from the first month in the year + * specified. For example, DATE(2008,-3,2) returns the serial number + * representing September 2, 2007. + * @param integer $day A positive or negative integer representing the day of the month + * from 1 to 31. + * If day is greater than the number of days in the month specified, + * day adds that number of days to the first day in the month. For + * example, DATE(2008,1,35) returns the serial number representing + * February 4, 2008. + * If day is less than 1, day subtracts the magnitude that number of + * days, plus one, from the first day of the month specified. For + * example, DATE(2008,1,-15) returns the serial number representing + * December 16, 2007. + * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, + * depending on the value of the ReturnDateType flag + */ + public static function DATE($year = 0, $month = 1, $day = 1) { + $year = PHPExcel_Calculation_Functions::flattenSingleValue($year); + $month = PHPExcel_Calculation_Functions::flattenSingleValue($month); + $day = PHPExcel_Calculation_Functions::flattenSingleValue($day); + + if (($month !== NULL) && (!is_numeric($month))) { + $month = PHPExcel_Shared_Date::monthStringToNumber($month); + } + + if (($day !== NULL) && (!is_numeric($day))) { + $day = PHPExcel_Shared_Date::dayStringToNumber($day); + } + + $year = ($year !== NULL) ? PHPExcel_Shared_String::testStringAsNumeric($year) : 0; + $month = ($month !== NULL) ? PHPExcel_Shared_String::testStringAsNumeric($month) : 0; + $day = ($day !== NULL) ? PHPExcel_Shared_String::testStringAsNumeric($day) : 0; + if ((!is_numeric($year)) || + (!is_numeric($month)) || + (!is_numeric($day))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $year = (integer) $year; + $month = (integer) $month; + $day = (integer) $day; + + $baseYear = PHPExcel_Shared_Date::getExcelCalendar(); + // Validate parameters + if ($year < ($baseYear-1900)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ((($baseYear-1900) != 0) && ($year < $baseYear) && ($year >= 1900)) { + return PHPExcel_Calculation_Functions::NaN(); + } + + if (($year < $baseYear) && ($year >= ($baseYear-1900))) { + $year += 1900; + } + + if ($month < 1) { + // Handle year/month adjustment if month < 1 + --$month; + $year += ceil($month / 12) - 1; + $month = 13 - abs($month % 12); + } elseif ($month > 12) { + // Handle year/month adjustment if month > 12 + $year += floor($month / 12); + $month = ($month % 12); + } + + // Re-validate the year parameter after adjustments + if (($year < $baseYear) || ($year >= 10000)) { + return PHPExcel_Calculation_Functions::NaN(); + } + + // Execute function + $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($year, $month, $day); + switch (PHPExcel_Calculation_Functions::getReturnDateType()) { + case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL : + return (float) $excelDateValue; + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC : + return (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateValue); + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT : + return PHPExcel_Shared_Date::ExcelToPHPObject($excelDateValue); + } + } // function DATE() + + + /** + * TIME + * + * The TIME function returns a value that represents a particular time. + * + * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the time + * format of your regional settings. PHPExcel does not change cell formatting in this way. + * + * Excel Function: + * TIME(hour,minute,second) + * + * @access public + * @category Date/Time Functions + * @param integer $hour A number from 0 (zero) to 32767 representing the hour. + * Any value greater than 23 will be divided by 24 and the remainder + * will be treated as the hour value. For example, TIME(27,0,0) = + * TIME(3,0,0) = .125 or 3:00 AM. + * @param integer $minute A number from 0 to 32767 representing the minute. + * Any value greater than 59 will be converted to hours and minutes. + * For example, TIME(0,750,0) = TIME(12,30,0) = .520833 or 12:30 PM. + * @param integer $second A number from 0 to 32767 representing the second. + * Any value greater than 59 will be converted to hours, minutes, + * and seconds. For example, TIME(0,0,2000) = TIME(0,33,22) = .023148 + * or 12:33:20 AM + * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, + * depending on the value of the ReturnDateType flag + */ + public static function TIME($hour = 0, $minute = 0, $second = 0) { + $hour = PHPExcel_Calculation_Functions::flattenSingleValue($hour); + $minute = PHPExcel_Calculation_Functions::flattenSingleValue($minute); + $second = PHPExcel_Calculation_Functions::flattenSingleValue($second); + + if ($hour == '') { $hour = 0; } + if ($minute == '') { $minute = 0; } + if ($second == '') { $second = 0; } + + if ((!is_numeric($hour)) || (!is_numeric($minute)) || (!is_numeric($second))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $hour = (integer) $hour; + $minute = (integer) $minute; + $second = (integer) $second; + + if ($second < 0) { + $minute += floor($second / 60); + $second = 60 - abs($second % 60); + if ($second == 60) { $second = 0; } + } elseif ($second >= 60) { + $minute += floor($second / 60); + $second = $second % 60; + } + if ($minute < 0) { + $hour += floor($minute / 60); + $minute = 60 - abs($minute % 60); + if ($minute == 60) { $minute = 0; } + } elseif ($minute >= 60) { + $hour += floor($minute / 60); + $minute = $minute % 60; + } + + if ($hour > 23) { + $hour = $hour % 24; + } elseif ($hour < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + + // Execute function + switch (PHPExcel_Calculation_Functions::getReturnDateType()) { + case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL : + $date = 0; + $calendar = PHPExcel_Shared_Date::getExcelCalendar(); + if ($calendar != PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900) { + $date = 1; + } + return (float) PHPExcel_Shared_Date::FormattedPHPToExcel($calendar, 1, $date, $hour, $minute, $second); + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC : + return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::FormattedPHPToExcel(1970, 1, 1, $hour, $minute, $second)); // -2147468400; // -2147472000 + 3600 + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT : + $dayAdjust = 0; + if ($hour < 0) { + $dayAdjust = floor($hour / 24); + $hour = 24 - abs($hour % 24); + if ($hour == 24) { $hour = 0; } + } elseif ($hour >= 24) { + $dayAdjust = floor($hour / 24); + $hour = $hour % 24; + } + $phpDateObject = new DateTime('1900-01-01 '.$hour.':'.$minute.':'.$second); + if ($dayAdjust != 0) { + $phpDateObject->modify($dayAdjust.' days'); + } + return $phpDateObject; + } + } // function TIME() + + + /** + * DATEVALUE + * + * Returns a value that represents a particular date. + * Use DATEVALUE to convert a date represented by a text string to an Excel or PHP date/time stamp + * value. + * + * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date + * format of your regional settings. PHPExcel does not change cell formatting in this way. + * + * Excel Function: + * DATEVALUE(dateValue) + * + * @access public + * @category Date/Time Functions + * @param string $dateValue Text that represents a date in a Microsoft Excel date format. + * For example, "1/30/2008" or "30-Jan-2008" are text strings within + * quotation marks that represent dates. Using the default date + * system in Excel for Windows, date_text must represent a date from + * January 1, 1900, to December 31, 9999. Using the default date + * system in Excel for the Macintosh, date_text must represent a date + * from January 1, 1904, to December 31, 9999. DATEVALUE returns the + * #VALUE! error value if date_text is out of this range. + * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, + * depending on the value of the ReturnDateType flag + */ + public static function DATEVALUE($dateValue = 1) { + $dateValue = trim(PHPExcel_Calculation_Functions::flattenSingleValue($dateValue),'"'); + // Strip any ordinals because they're allowed in Excel (English only) + $dateValue = preg_replace('/(\d)(st|nd|rd|th)([ -\/])/Ui','$1$3',$dateValue); + // Convert separators (/ . or space) to hyphens (should also handle dot used for ordinals in some countries, e.g. Denmark, Germany) + $dateValue = str_replace(array('/','.','-',' '),array(' ',' ',' ',' '),$dateValue); + + $yearFound = false; + $t1 = explode(' ',$dateValue); + foreach($t1 as &$t) { + if ((is_numeric($t)) && ($t > 31)) { + if ($yearFound) { + return PHPExcel_Calculation_Functions::VALUE(); + } else { + if ($t < 100) { $t += 1900; } + $yearFound = true; + } + } + } + if ((count($t1) == 1) && (strpos($t,':') != false)) { + // We've been fed a time value without any date + return 0.0; + } elseif (count($t1) == 2) { + // We only have two parts of the date: either day/month or month/year + if ($yearFound) { + array_unshift($t1,1); + } else { + array_push($t1,date('Y')); + } + } + unset($t); + $dateValue = implode(' ',$t1); + + $PHPDateArray = date_parse($dateValue); + if (($PHPDateArray === False) || ($PHPDateArray['error_count'] > 0)) { + $testVal1 = strtok($dateValue,'- '); + if ($testVal1 !== False) { + $testVal2 = strtok('- '); + if ($testVal2 !== False) { + $testVal3 = strtok('- '); + if ($testVal3 === False) { + $testVal3 = strftime('%Y'); + } + } else { + return PHPExcel_Calculation_Functions::VALUE(); + } + } else { + return PHPExcel_Calculation_Functions::VALUE(); + } + $PHPDateArray = date_parse($testVal1.'-'.$testVal2.'-'.$testVal3); + if (($PHPDateArray === False) || ($PHPDateArray['error_count'] > 0)) { + $PHPDateArray = date_parse($testVal2.'-'.$testVal1.'-'.$testVal3); + if (($PHPDateArray === False) || ($PHPDateArray['error_count'] > 0)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + } + + if (($PHPDateArray !== False) && ($PHPDateArray['error_count'] == 0)) { + // Execute function + if ($PHPDateArray['year'] == '') { $PHPDateArray['year'] = strftime('%Y'); } + if ($PHPDateArray['year'] < 1900) + return PHPExcel_Calculation_Functions::VALUE(); + if ($PHPDateArray['month'] == '') { $PHPDateArray['month'] = strftime('%m'); } + if ($PHPDateArray['day'] == '') { $PHPDateArray['day'] = strftime('%d'); } + $excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second'])); + + switch (PHPExcel_Calculation_Functions::getReturnDateType()) { + case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL : + return (float) $excelDateValue; + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC : + return (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateValue); + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT : + return new DateTime($PHPDateArray['year'].'-'.$PHPDateArray['month'].'-'.$PHPDateArray['day'].' 00:00:00'); + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function DATEVALUE() + + + /** + * TIMEVALUE + * + * Returns a value that represents a particular time. + * Use TIMEVALUE to convert a time represented by a text string to an Excel or PHP date/time stamp + * value. + * + * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the time + * format of your regional settings. PHPExcel does not change cell formatting in this way. + * + * Excel Function: + * TIMEVALUE(timeValue) + * + * @access public + * @category Date/Time Functions + * @param string $timeValue A text string that represents a time in any one of the Microsoft + * Excel time formats; for example, "6:45 PM" and "18:45" text strings + * within quotation marks that represent time. + * Date information in time_text is ignored. + * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, + * depending on the value of the ReturnDateType flag + */ + public static function TIMEVALUE($timeValue) { + $timeValue = trim(PHPExcel_Calculation_Functions::flattenSingleValue($timeValue),'"'); + $timeValue = str_replace(array('/','.'),array('-','-'),$timeValue); + + $PHPDateArray = date_parse($timeValue); + if (($PHPDateArray !== False) && ($PHPDateArray['error_count'] == 0)) { + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { + $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']); + } else { + $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900,1,1,$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']) - 1; + } + + switch (PHPExcel_Calculation_Functions::getReturnDateType()) { + case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL : + return (float) $excelDateValue; + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC : + return (integer) $phpDateValue = PHPExcel_Shared_Date::ExcelToPHP($excelDateValue+25569) - 3600;; + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT : + return new DateTime('1900-01-01 '.$PHPDateArray['hour'].':'.$PHPDateArray['minute'].':'.$PHPDateArray['second']); + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function TIMEVALUE() + + + /** + * DATEDIF + * + * @param mixed $startDate Excel date serial value, PHP date/time stamp, PHP DateTime object + * or a standard date string + * @param mixed $endDate Excel date serial value, PHP date/time stamp, PHP DateTime object + * or a standard date string + * @param string $unit + * @return integer Interval between the dates + */ + public static function DATEDIF($startDate = 0, $endDate = 0, $unit = 'D') { + $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate); + $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate); + $unit = strtoupper(PHPExcel_Calculation_Functions::flattenSingleValue($unit)); + + if (is_string($startDate = self::_getDateValue($startDate))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + if (is_string($endDate = self::_getDateValue($endDate))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + // Validate parameters + if ($startDate >= $endDate) { + return PHPExcel_Calculation_Functions::NaN(); + } + + // Execute function + $difference = $endDate - $startDate; + + $PHPStartDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($startDate); + $startDays = $PHPStartDateObject->format('j'); + $startMonths = $PHPStartDateObject->format('n'); + $startYears = $PHPStartDateObject->format('Y'); + + $PHPEndDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($endDate); + $endDays = $PHPEndDateObject->format('j'); + $endMonths = $PHPEndDateObject->format('n'); + $endYears = $PHPEndDateObject->format('Y'); + + $retVal = PHPExcel_Calculation_Functions::NaN(); + switch ($unit) { + case 'D': + $retVal = intval($difference); + break; + case 'M': + $retVal = intval($endMonths - $startMonths) + (intval($endYears - $startYears) * 12); + // We're only interested in full months + if ($endDays < $startDays) { + --$retVal; + } + break; + case 'Y': + $retVal = intval($endYears - $startYears); + // We're only interested in full months + if ($endMonths < $startMonths) { + --$retVal; + } elseif (($endMonths == $startMonths) && ($endDays < $startDays)) { + --$retVal; + } + break; + case 'MD': + if ($endDays < $startDays) { + $retVal = $endDays; + $PHPEndDateObject->modify('-'.$endDays.' days'); + $adjustDays = $PHPEndDateObject->format('j'); + if ($adjustDays > $startDays) { + $retVal += ($adjustDays - $startDays); + } + } else { + $retVal = $endDays - $startDays; + } + break; + case 'YM': + $retVal = intval($endMonths - $startMonths); + if ($retVal < 0) $retVal = 12 + $retVal; + // We're only interested in full months + if ($endDays < $startDays) { + --$retVal; + } + break; + case 'YD': + $retVal = intval($difference); + if ($endYears > $startYears) { + while ($endYears > $startYears) { + $PHPEndDateObject->modify('-1 year'); + $endYears = $PHPEndDateObject->format('Y'); + } + $retVal = $PHPEndDateObject->format('z') - $PHPStartDateObject->format('z'); + if ($retVal < 0) { $retVal += 365; } + } + break; + default: + $retVal = PHPExcel_Calculation_Functions::NaN(); + } + return $retVal; + } // function DATEDIF() + + + /** + * DAYS360 + * + * Returns the number of days between two dates based on a 360-day year (twelve 30-day months), + * which is used in some accounting calculations. Use this function to help compute payments if + * your accounting system is based on twelve 30-day months. + * + * Excel Function: + * DAYS360(startDate,endDate[,method]) + * + * @access public + * @category Date/Time Functions + * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard date string + * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard date string + * @param boolean $method US or European Method + * FALSE or omitted: U.S. (NASD) method. If the starting date is + * the last day of a month, it becomes equal to the 30th of the + * same month. If the ending date is the last day of a month and + * the starting date is earlier than the 30th of a month, the + * ending date becomes equal to the 1st of the next month; + * otherwise the ending date becomes equal to the 30th of the + * same month. + * TRUE: European method. Starting dates and ending dates that + * occur on the 31st of a month become equal to the 30th of the + * same month. + * @return integer Number of days between start date and end date + */ + public static function DAYS360($startDate = 0, $endDate = 0, $method = false) { + $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate); + $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate); + + if (is_string($startDate = self::_getDateValue($startDate))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + if (is_string($endDate = self::_getDateValue($endDate))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (!is_bool($method)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + // Execute function + $PHPStartDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($startDate); + $startDay = $PHPStartDateObject->format('j'); + $startMonth = $PHPStartDateObject->format('n'); + $startYear = $PHPStartDateObject->format('Y'); + + $PHPEndDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($endDate); + $endDay = $PHPEndDateObject->format('j'); + $endMonth = $PHPEndDateObject->format('n'); + $endYear = $PHPEndDateObject->format('Y'); + + return self::_dateDiff360($startDay, $startMonth, $startYear, $endDay, $endMonth, $endYear, !$method); + } // function DAYS360() + + + /** + * YEARFRAC + * + * Calculates the fraction of the year represented by the number of whole days between two dates + * (the start_date and the end_date). + * Use the YEARFRAC worksheet function to identify the proportion of a whole year's benefits or + * obligations to assign to a specific term. + * + * Excel Function: + * YEARFRAC(startDate,endDate[,method]) + * + * @access public + * @category Date/Time Functions + * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard date string + * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard date string + * @param integer $method Method used for the calculation + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return float fraction of the year + */ + public static function YEARFRAC($startDate = 0, $endDate = 0, $method = 0) { + $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate); + $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate); + $method = PHPExcel_Calculation_Functions::flattenSingleValue($method); + + if (is_string($startDate = self::_getDateValue($startDate))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + if (is_string($endDate = self::_getDateValue($endDate))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (((is_numeric($method)) && (!is_string($method))) || ($method == '')) { + switch($method) { + case 0 : + return self::DAYS360($startDate,$endDate) / 360; + case 1 : + $days = self::DATEDIF($startDate,$endDate); + $startYear = self::YEAR($startDate); + $endYear = self::YEAR($endDate); + $years = $endYear - $startYear + 1; + $leapDays = 0; + if ($years == 1) { + if (self::_isLeapYear($endYear)) { + $startMonth = self::MONTHOFYEAR($startDate); + $endMonth = self::MONTHOFYEAR($endDate); + $endDay = self::DAYOFMONTH($endDate); + if (($startMonth < 3) || + (($endMonth * 100 + $endDay) >= (2 * 100 + 29))) { + $leapDays += 1; + } + } + } else { + for($year = $startYear; $year <= $endYear; ++$year) { + if ($year == $startYear) { + $startMonth = self::MONTHOFYEAR($startDate); + $startDay = self::DAYOFMONTH($startDate); + if ($startMonth < 3) { + $leapDays += (self::_isLeapYear($year)) ? 1 : 0; + } + } elseif($year == $endYear) { + $endMonth = self::MONTHOFYEAR($endDate); + $endDay = self::DAYOFMONTH($endDate); + if (($endMonth * 100 + $endDay) >= (2 * 100 + 29)) { + $leapDays += (self::_isLeapYear($year)) ? 1 : 0; + } + } else { + $leapDays += (self::_isLeapYear($year)) ? 1 : 0; + } + } + if ($years == 2) { + if (($leapDays == 0) && (self::_isLeapYear($startYear)) && ($days > 365)) { + $leapDays = 1; + } elseif ($days < 366) { + $years = 1; + } + } + $leapDays /= $years; + } + return $days / (365 + $leapDays); + case 2 : + return self::DATEDIF($startDate,$endDate) / 360; + case 3 : + return self::DATEDIF($startDate,$endDate) / 365; + case 4 : + return self::DAYS360($startDate,$endDate,True) / 360; + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function YEARFRAC() + + + /** + * NETWORKDAYS + * + * Returns the number of whole working days between start_date and end_date. Working days + * exclude weekends and any dates identified in holidays. + * Use NETWORKDAYS to calculate employee benefits that accrue based on the number of days + * worked during a specific term. + * + * Excel Function: + * NETWORKDAYS(startDate,endDate[,holidays[,holiday[,...]]]) + * + * @access public + * @category Date/Time Functions + * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard date string + * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard date string + * @param mixed $holidays,... Optional series of Excel date serial value (float), PHP date + * timestamp (integer), PHP DateTime object, or a standard date + * strings that will be excluded from the working calendar, such + * as state and federal holidays and floating holidays. + * @return integer Interval between the dates + */ + public static function NETWORKDAYS($startDate,$endDate) { + // Retrieve the mandatory start and end date that are referenced in the function definition + $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate); + $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate); + // Flush the mandatory start and end date that are referenced in the function definition, and get the optional days + $dateArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + array_shift($dateArgs); + array_shift($dateArgs); + + // Validate the start and end dates + if (is_string($startDate = $sDate = self::_getDateValue($startDate))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $startDate = (float) floor($startDate); + if (is_string($endDate = $eDate = self::_getDateValue($endDate))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $endDate = (float) floor($endDate); + + if ($sDate > $eDate) { + $startDate = $eDate; + $endDate = $sDate; + } + + // Execute function + $startDoW = 6 - self::DAYOFWEEK($startDate,2); + if ($startDoW < 0) { $startDoW = 0; } + $endDoW = self::DAYOFWEEK($endDate,2); + if ($endDoW >= 6) { $endDoW = 0; } + + $wholeWeekDays = floor(($endDate - $startDate) / 7) * 5; + $partWeekDays = $endDoW + $startDoW; + if ($partWeekDays > 5) { + $partWeekDays -= 5; + } + + // Test any extra holiday parameters + $holidayCountedArray = array(); + foreach ($dateArgs as $holidayDate) { + if (is_string($holidayDate = self::_getDateValue($holidayDate))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + if (($holidayDate >= $startDate) && ($holidayDate <= $endDate)) { + if ((self::DAYOFWEEK($holidayDate,2) < 6) && (!in_array($holidayDate,$holidayCountedArray))) { + --$partWeekDays; + $holidayCountedArray[] = $holidayDate; + } + } + } + + if ($sDate > $eDate) { + return 0 - ($wholeWeekDays + $partWeekDays); + } + return $wholeWeekDays + $partWeekDays; + } // function NETWORKDAYS() + + + /** + * WORKDAY + * + * Returns the date that is the indicated number of working days before or after a date (the + * starting date). Working days exclude weekends and any dates identified as holidays. + * Use WORKDAY to exclude weekends or holidays when you calculate invoice due dates, expected + * delivery times, or the number of days of work performed. + * + * Excel Function: + * WORKDAY(startDate,endDays[,holidays[,holiday[,...]]]) + * + * @access public + * @category Date/Time Functions + * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard date string + * @param integer $endDays The number of nonweekend and nonholiday days before or after + * startDate. A positive value for days yields a future date; a + * negative value yields a past date. + * @param mixed $holidays,... Optional series of Excel date serial value (float), PHP date + * timestamp (integer), PHP DateTime object, or a standard date + * strings that will be excluded from the working calendar, such + * as state and federal holidays and floating holidays. + * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, + * depending on the value of the ReturnDateType flag + */ + public static function WORKDAY($startDate,$endDays) { + // Retrieve the mandatory start date and days that are referenced in the function definition + $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate); + $endDays = PHPExcel_Calculation_Functions::flattenSingleValue($endDays); + // Flush the mandatory start date and days that are referenced in the function definition, and get the optional days + $dateArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + array_shift($dateArgs); + array_shift($dateArgs); + + if ((is_string($startDate = self::_getDateValue($startDate))) || (!is_numeric($endDays))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $startDate = (float) floor($startDate); + $endDays = (int) floor($endDays); + // If endDays is 0, we always return startDate + if ($endDays == 0) { return $startDate; } + + $decrementing = ($endDays < 0) ? True : False; + + // Adjust the start date if it falls over a weekend + + $startDoW = self::DAYOFWEEK($startDate,3); + if (self::DAYOFWEEK($startDate,3) >= 5) { + $startDate += ($decrementing) ? -$startDoW + 4: 7 - $startDoW; + ($decrementing) ? $endDays++ : $endDays--; + } + + // Add endDays + $endDate = (float) $startDate + (intval($endDays / 5) * 7) + ($endDays % 5); + + // Adjust the calculated end date if it falls over a weekend + $endDoW = self::DAYOFWEEK($endDate,3); + if ($endDoW >= 5) { + $endDate += ($decrementing) ? -$endDoW + 4: 7 - $endDoW; + } + + // Test any extra holiday parameters + if (!empty($dateArgs)) { + $holidayCountedArray = $holidayDates = array(); + foreach ($dateArgs as $holidayDate) { + if (($holidayDate !== NULL) && (trim($holidayDate) > '')) { + if (is_string($holidayDate = self::_getDateValue($holidayDate))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + if (self::DAYOFWEEK($holidayDate,3) < 5) { + $holidayDates[] = $holidayDate; + } + } + } + if ($decrementing) { + rsort($holidayDates, SORT_NUMERIC); + } else { + sort($holidayDates, SORT_NUMERIC); + } + foreach ($holidayDates as $holidayDate) { + if ($decrementing) { + if (($holidayDate <= $startDate) && ($holidayDate >= $endDate)) { + if (!in_array($holidayDate,$holidayCountedArray)) { + --$endDate; + $holidayCountedArray[] = $holidayDate; + } + } + } else { + if (($holidayDate >= $startDate) && ($holidayDate <= $endDate)) { + if (!in_array($holidayDate,$holidayCountedArray)) { + ++$endDate; + $holidayCountedArray[] = $holidayDate; + } + } + } + // Adjust the calculated end date if it falls over a weekend + $endDoW = self::DAYOFWEEK($endDate,3); + if ($endDoW >= 5) { + $endDate += ($decrementing) ? -$endDoW + 4: 7 - $endDoW; + } + + } + } + + switch (PHPExcel_Calculation_Functions::getReturnDateType()) { + case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL : + return (float) $endDate; + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC : + return (integer) PHPExcel_Shared_Date::ExcelToPHP($endDate); + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT : + return PHPExcel_Shared_Date::ExcelToPHPObject($endDate); + } + } // function WORKDAY() + + + /** + * DAYOFMONTH + * + * Returns the day of the month, for a specified date. The day is given as an integer + * ranging from 1 to 31. + * + * Excel Function: + * DAY(dateValue) + * + * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard date string + * @return int Day of the month + */ + public static function DAYOFMONTH($dateValue = 1) { + $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue); + + if (is_string($dateValue = self::_getDateValue($dateValue))) { + return PHPExcel_Calculation_Functions::VALUE(); + } elseif ($dateValue == 0.0) { + return 0; + } elseif ($dateValue < 0.0) { + return PHPExcel_Calculation_Functions::NaN(); + } + + // Execute function + $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue); + + return (int) $PHPDateObject->format('j'); + } // function DAYOFMONTH() + + + /** + * DAYOFWEEK + * + * Returns the day of the week for a specified date. The day is given as an integer + * ranging from 0 to 7 (dependent on the requested style). + * + * Excel Function: + * WEEKDAY(dateValue[,style]) + * + * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard date string + * @param int $style A number that determines the type of return value + * 1 or omitted Numbers 1 (Sunday) through 7 (Saturday). + * 2 Numbers 1 (Monday) through 7 (Sunday). + * 3 Numbers 0 (Monday) through 6 (Sunday). + * @return int Day of the week value + */ + public static function DAYOFWEEK($dateValue = 1, $style = 1) { + $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue); + $style = PHPExcel_Calculation_Functions::flattenSingleValue($style); + + if (!is_numeric($style)) { + return PHPExcel_Calculation_Functions::VALUE(); + } elseif (($style < 1) || ($style > 3)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $style = floor($style); + + if (is_string($dateValue = self::_getDateValue($dateValue))) { + return PHPExcel_Calculation_Functions::VALUE(); + } elseif ($dateValue < 0.0) { + return PHPExcel_Calculation_Functions::NaN(); + } + + // Execute function + $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue); + $DoW = $PHPDateObject->format('w'); + + $firstDay = 1; + switch ($style) { + case 1: ++$DoW; + break; + case 2: if ($DoW == 0) { $DoW = 7; } + break; + case 3: if ($DoW == 0) { $DoW = 7; } + $firstDay = 0; + --$DoW; + break; + } + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL) { + // Test for Excel's 1900 leap year, and introduce the error as required + if (($PHPDateObject->format('Y') == 1900) && ($PHPDateObject->format('n') <= 2)) { + --$DoW; + if ($DoW < $firstDay) { + $DoW += 7; + } + } + } + + return (int) $DoW; + } // function DAYOFWEEK() + + + /** + * WEEKOFYEAR + * + * Returns the week of the year for a specified date. + * The WEEKNUM function considers the week containing January 1 to be the first week of the year. + * However, there is a European standard that defines the first week as the one with the majority + * of days (four or more) falling in the new year. This means that for years in which there are + * three days or less in the first week of January, the WEEKNUM function returns week numbers + * that are incorrect according to the European standard. + * + * Excel Function: + * WEEKNUM(dateValue[,style]) + * + * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard date string + * @param boolean $method Week begins on Sunday or Monday + * 1 or omitted Week begins on Sunday. + * 2 Week begins on Monday. + * @return int Week Number + */ + public static function WEEKOFYEAR($dateValue = 1, $method = 1) { + $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue); + $method = PHPExcel_Calculation_Functions::flattenSingleValue($method); + + if (!is_numeric($method)) { + return PHPExcel_Calculation_Functions::VALUE(); + } elseif (($method < 1) || ($method > 2)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $method = floor($method); + + if (is_string($dateValue = self::_getDateValue($dateValue))) { + return PHPExcel_Calculation_Functions::VALUE(); + } elseif ($dateValue < 0.0) { + return PHPExcel_Calculation_Functions::NaN(); + } + + // Execute function + $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue); + $dayOfYear = $PHPDateObject->format('z'); + $dow = $PHPDateObject->format('w'); + $PHPDateObject->modify('-'.$dayOfYear.' days'); + $dow = $PHPDateObject->format('w'); + $daysInFirstWeek = 7 - (($dow + (2 - $method)) % 7); + $dayOfYear -= $daysInFirstWeek; + $weekOfYear = ceil($dayOfYear / 7) + 1; + + return (int) $weekOfYear; + } // function WEEKOFYEAR() + + + /** + * MONTHOFYEAR + * + * Returns the month of a date represented by a serial number. + * The month is given as an integer, ranging from 1 (January) to 12 (December). + * + * Excel Function: + * MONTH(dateValue) + * + * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard date string + * @return int Month of the year + */ + public static function MONTHOFYEAR($dateValue = 1) { + $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue); + + if (is_string($dateValue = self::_getDateValue($dateValue))) { + return PHPExcel_Calculation_Functions::VALUE(); + } elseif ($dateValue < 0.0) { + return PHPExcel_Calculation_Functions::NaN(); + } + + // Execute function + $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue); + + return (int) $PHPDateObject->format('n'); + } // function MONTHOFYEAR() + + + /** + * YEAR + * + * Returns the year corresponding to a date. + * The year is returned as an integer in the range 1900-9999. + * + * Excel Function: + * YEAR(dateValue) + * + * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard date string + * @return int Year + */ + public static function YEAR($dateValue = 1) { + $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue); + + if (is_string($dateValue = self::_getDateValue($dateValue))) { + return PHPExcel_Calculation_Functions::VALUE(); + } elseif ($dateValue < 0.0) { + return PHPExcel_Calculation_Functions::NaN(); + } + + // Execute function + $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue); + + return (int) $PHPDateObject->format('Y'); + } // function YEAR() + + + /** + * HOUROFDAY + * + * Returns the hour of a time value. + * The hour is given as an integer, ranging from 0 (12:00 A.M.) to 23 (11:00 P.M.). + * + * Excel Function: + * HOUR(timeValue) + * + * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard time string + * @return int Hour + */ + public static function HOUROFDAY($timeValue = 0) { + $timeValue = PHPExcel_Calculation_Functions::flattenSingleValue($timeValue); + + if (!is_numeric($timeValue)) { + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { + $testVal = strtok($timeValue,'/-: '); + if (strlen($testVal) < strlen($timeValue)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + $timeValue = self::_getTimeValue($timeValue); + if (is_string($timeValue)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + // Execute function + if ($timeValue >= 1) { + $timeValue = fmod($timeValue,1); + } elseif ($timeValue < 0.0) { + return PHPExcel_Calculation_Functions::NaN(); + } + $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue); + + return (int) gmdate('G',$timeValue); + } // function HOUROFDAY() + + + /** + * MINUTEOFHOUR + * + * Returns the minutes of a time value. + * The minute is given as an integer, ranging from 0 to 59. + * + * Excel Function: + * MINUTE(timeValue) + * + * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard time string + * @return int Minute + */ + public static function MINUTEOFHOUR($timeValue = 0) { + $timeValue = $timeTester = PHPExcel_Calculation_Functions::flattenSingleValue($timeValue); + + if (!is_numeric($timeValue)) { + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { + $testVal = strtok($timeValue,'/-: '); + if (strlen($testVal) < strlen($timeValue)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + $timeValue = self::_getTimeValue($timeValue); + if (is_string($timeValue)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + // Execute function + if ($timeValue >= 1) { + $timeValue = fmod($timeValue,1); + } elseif ($timeValue < 0.0) { + return PHPExcel_Calculation_Functions::NaN(); + } + $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue); + + return (int) gmdate('i',$timeValue); + } // function MINUTEOFHOUR() + + + /** + * SECONDOFMINUTE + * + * Returns the seconds of a time value. + * The second is given as an integer in the range 0 (zero) to 59. + * + * Excel Function: + * SECOND(timeValue) + * + * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard time string + * @return int Second + */ + public static function SECONDOFMINUTE($timeValue = 0) { + $timeValue = PHPExcel_Calculation_Functions::flattenSingleValue($timeValue); + + if (!is_numeric($timeValue)) { + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { + $testVal = strtok($timeValue,'/-: '); + if (strlen($testVal) < strlen($timeValue)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + $timeValue = self::_getTimeValue($timeValue); + if (is_string($timeValue)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + // Execute function + if ($timeValue >= 1) { + $timeValue = fmod($timeValue,1); + } elseif ($timeValue < 0.0) { + return PHPExcel_Calculation_Functions::NaN(); + } + $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue); + + return (int) gmdate('s',$timeValue); + } // function SECONDOFMINUTE() + + + /** + * EDATE + * + * Returns the serial number that represents the date that is the indicated number of months + * before or after a specified date (the start_date). + * Use EDATE to calculate maturity dates or due dates that fall on the same day of the month + * as the date of issue. + * + * Excel Function: + * EDATE(dateValue,adjustmentMonths) + * + * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard date string + * @param int $adjustmentMonths The number of months before or after start_date. + * A positive value for months yields a future date; + * a negative value yields a past date. + * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, + * depending on the value of the ReturnDateType flag + */ + public static function EDATE($dateValue = 1, $adjustmentMonths = 0) { + $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue); + $adjustmentMonths = PHPExcel_Calculation_Functions::flattenSingleValue($adjustmentMonths); + + if (!is_numeric($adjustmentMonths)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $adjustmentMonths = floor($adjustmentMonths); + + if (is_string($dateValue = self::_getDateValue($dateValue))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + // Execute function + $PHPDateObject = self::_adjustDateByMonths($dateValue,$adjustmentMonths); + + switch (PHPExcel_Calculation_Functions::getReturnDateType()) { + case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL : + return (float) PHPExcel_Shared_Date::PHPToExcel($PHPDateObject); + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC : + return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject)); + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT : + return $PHPDateObject; + } + } // function EDATE() + + + /** + * EOMONTH + * + * Returns the date value for the last day of the month that is the indicated number of months + * before or after start_date. + * Use EOMONTH to calculate maturity dates or due dates that fall on the last day of the month. + * + * Excel Function: + * EOMONTH(dateValue,adjustmentMonths) + * + * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), + * PHP DateTime object, or a standard date string + * @param int $adjustmentMonths The number of months before or after start_date. + * A positive value for months yields a future date; + * a negative value yields a past date. + * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, + * depending on the value of the ReturnDateType flag + */ + public static function EOMONTH($dateValue = 1, $adjustmentMonths = 0) { + $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue); + $adjustmentMonths = PHPExcel_Calculation_Functions::flattenSingleValue($adjustmentMonths); + + if (!is_numeric($adjustmentMonths)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $adjustmentMonths = floor($adjustmentMonths); + + if (is_string($dateValue = self::_getDateValue($dateValue))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + // Execute function + $PHPDateObject = self::_adjustDateByMonths($dateValue,$adjustmentMonths+1); + $adjustDays = (int) $PHPDateObject->format('d'); + $adjustDaysString = '-'.$adjustDays.' days'; + $PHPDateObject->modify($adjustDaysString); + + switch (PHPExcel_Calculation_Functions::getReturnDateType()) { + case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL : + return (float) PHPExcel_Shared_Date::PHPToExcel($PHPDateObject); + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC : + return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject)); + case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT : + return $PHPDateObject; + } + } // function EOMONTH() + +} // class PHPExcel_Calculation_DateTime + diff --git a/admin/helpers/PHPExcel/Calculation/Engineering.php b/admin/helpers/PHPExcel/Calculation/Engineering.php new file mode 100644 index 00000000..b60163e5 --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/Engineering.php @@ -0,0 +1,2505 @@ + array( 'Group' => 'Mass', 'Unit Name' => 'Gram', 'AllowPrefix' => True ), + 'sg' => array( 'Group' => 'Mass', 'Unit Name' => 'Slug', 'AllowPrefix' => False ), + 'lbm' => array( 'Group' => 'Mass', 'Unit Name' => 'Pound mass (avoirdupois)', 'AllowPrefix' => False ), + 'u' => array( 'Group' => 'Mass', 'Unit Name' => 'U (atomic mass unit)', 'AllowPrefix' => True ), + 'ozm' => array( 'Group' => 'Mass', 'Unit Name' => 'Ounce mass (avoirdupois)', 'AllowPrefix' => False ), + 'm' => array( 'Group' => 'Distance', 'Unit Name' => 'Meter', 'AllowPrefix' => True ), + 'mi' => array( 'Group' => 'Distance', 'Unit Name' => 'Statute mile', 'AllowPrefix' => False ), + 'Nmi' => array( 'Group' => 'Distance', 'Unit Name' => 'Nautical mile', 'AllowPrefix' => False ), + 'in' => array( 'Group' => 'Distance', 'Unit Name' => 'Inch', 'AllowPrefix' => False ), + 'ft' => array( 'Group' => 'Distance', 'Unit Name' => 'Foot', 'AllowPrefix' => False ), + 'yd' => array( 'Group' => 'Distance', 'Unit Name' => 'Yard', 'AllowPrefix' => False ), + 'ang' => array( 'Group' => 'Distance', 'Unit Name' => 'Angstrom', 'AllowPrefix' => True ), + 'Pica' => array( 'Group' => 'Distance', 'Unit Name' => 'Pica (1/72 in)', 'AllowPrefix' => False ), + 'yr' => array( 'Group' => 'Time', 'Unit Name' => 'Year', 'AllowPrefix' => False ), + 'day' => array( 'Group' => 'Time', 'Unit Name' => 'Day', 'AllowPrefix' => False ), + 'hr' => array( 'Group' => 'Time', 'Unit Name' => 'Hour', 'AllowPrefix' => False ), + 'mn' => array( 'Group' => 'Time', 'Unit Name' => 'Minute', 'AllowPrefix' => False ), + 'sec' => array( 'Group' => 'Time', 'Unit Name' => 'Second', 'AllowPrefix' => True ), + 'Pa' => array( 'Group' => 'Pressure', 'Unit Name' => 'Pascal', 'AllowPrefix' => True ), + 'p' => array( 'Group' => 'Pressure', 'Unit Name' => 'Pascal', 'AllowPrefix' => True ), + 'atm' => array( 'Group' => 'Pressure', 'Unit Name' => 'Atmosphere', 'AllowPrefix' => True ), + 'at' => array( 'Group' => 'Pressure', 'Unit Name' => 'Atmosphere', 'AllowPrefix' => True ), + 'mmHg' => array( 'Group' => 'Pressure', 'Unit Name' => 'mm of Mercury', 'AllowPrefix' => True ), + 'N' => array( 'Group' => 'Force', 'Unit Name' => 'Newton', 'AllowPrefix' => True ), + 'dyn' => array( 'Group' => 'Force', 'Unit Name' => 'Dyne', 'AllowPrefix' => True ), + 'dy' => array( 'Group' => 'Force', 'Unit Name' => 'Dyne', 'AllowPrefix' => True ), + 'lbf' => array( 'Group' => 'Force', 'Unit Name' => 'Pound force', 'AllowPrefix' => False ), + 'J' => array( 'Group' => 'Energy', 'Unit Name' => 'Joule', 'AllowPrefix' => True ), + 'e' => array( 'Group' => 'Energy', 'Unit Name' => 'Erg', 'AllowPrefix' => True ), + 'c' => array( 'Group' => 'Energy', 'Unit Name' => 'Thermodynamic calorie', 'AllowPrefix' => True ), + 'cal' => array( 'Group' => 'Energy', 'Unit Name' => 'IT calorie', 'AllowPrefix' => True ), + 'eV' => array( 'Group' => 'Energy', 'Unit Name' => 'Electron volt', 'AllowPrefix' => True ), + 'ev' => array( 'Group' => 'Energy', 'Unit Name' => 'Electron volt', 'AllowPrefix' => True ), + 'HPh' => array( 'Group' => 'Energy', 'Unit Name' => 'Horsepower-hour', 'AllowPrefix' => False ), + 'hh' => array( 'Group' => 'Energy', 'Unit Name' => 'Horsepower-hour', 'AllowPrefix' => False ), + 'Wh' => array( 'Group' => 'Energy', 'Unit Name' => 'Watt-hour', 'AllowPrefix' => True ), + 'wh' => array( 'Group' => 'Energy', 'Unit Name' => 'Watt-hour', 'AllowPrefix' => True ), + 'flb' => array( 'Group' => 'Energy', 'Unit Name' => 'Foot-pound', 'AllowPrefix' => False ), + 'BTU' => array( 'Group' => 'Energy', 'Unit Name' => 'BTU', 'AllowPrefix' => False ), + 'btu' => array( 'Group' => 'Energy', 'Unit Name' => 'BTU', 'AllowPrefix' => False ), + 'HP' => array( 'Group' => 'Power', 'Unit Name' => 'Horsepower', 'AllowPrefix' => False ), + 'h' => array( 'Group' => 'Power', 'Unit Name' => 'Horsepower', 'AllowPrefix' => False ), + 'W' => array( 'Group' => 'Power', 'Unit Name' => 'Watt', 'AllowPrefix' => True ), + 'w' => array( 'Group' => 'Power', 'Unit Name' => 'Watt', 'AllowPrefix' => True ), + 'T' => array( 'Group' => 'Magnetism', 'Unit Name' => 'Tesla', 'AllowPrefix' => True ), + 'ga' => array( 'Group' => 'Magnetism', 'Unit Name' => 'Gauss', 'AllowPrefix' => True ), + 'C' => array( 'Group' => 'Temperature', 'Unit Name' => 'Celsius', 'AllowPrefix' => False ), + 'cel' => array( 'Group' => 'Temperature', 'Unit Name' => 'Celsius', 'AllowPrefix' => False ), + 'F' => array( 'Group' => 'Temperature', 'Unit Name' => 'Fahrenheit', 'AllowPrefix' => False ), + 'fah' => array( 'Group' => 'Temperature', 'Unit Name' => 'Fahrenheit', 'AllowPrefix' => False ), + 'K' => array( 'Group' => 'Temperature', 'Unit Name' => 'Kelvin', 'AllowPrefix' => False ), + 'kel' => array( 'Group' => 'Temperature', 'Unit Name' => 'Kelvin', 'AllowPrefix' => False ), + 'tsp' => array( 'Group' => 'Liquid', 'Unit Name' => 'Teaspoon', 'AllowPrefix' => False ), + 'tbs' => array( 'Group' => 'Liquid', 'Unit Name' => 'Tablespoon', 'AllowPrefix' => False ), + 'oz' => array( 'Group' => 'Liquid', 'Unit Name' => 'Fluid Ounce', 'AllowPrefix' => False ), + 'cup' => array( 'Group' => 'Liquid', 'Unit Name' => 'Cup', 'AllowPrefix' => False ), + 'pt' => array( 'Group' => 'Liquid', 'Unit Name' => 'U.S. Pint', 'AllowPrefix' => False ), + 'us_pt' => array( 'Group' => 'Liquid', 'Unit Name' => 'U.S. Pint', 'AllowPrefix' => False ), + 'uk_pt' => array( 'Group' => 'Liquid', 'Unit Name' => 'U.K. Pint', 'AllowPrefix' => False ), + 'qt' => array( 'Group' => 'Liquid', 'Unit Name' => 'Quart', 'AllowPrefix' => False ), + 'gal' => array( 'Group' => 'Liquid', 'Unit Name' => 'Gallon', 'AllowPrefix' => False ), + 'l' => array( 'Group' => 'Liquid', 'Unit Name' => 'Litre', 'AllowPrefix' => True ), + 'lt' => array( 'Group' => 'Liquid', 'Unit Name' => 'Litre', 'AllowPrefix' => True ) + ); + + /** + * Details of the Multiplier prefixes that can be used with Units of Measure in CONVERTUOM() + * + * @var mixed[] + */ + private static $_conversionMultipliers = array( 'Y' => array( 'multiplier' => 1E24, 'name' => 'yotta' ), + 'Z' => array( 'multiplier' => 1E21, 'name' => 'zetta' ), + 'E' => array( 'multiplier' => 1E18, 'name' => 'exa' ), + 'P' => array( 'multiplier' => 1E15, 'name' => 'peta' ), + 'T' => array( 'multiplier' => 1E12, 'name' => 'tera' ), + 'G' => array( 'multiplier' => 1E9, 'name' => 'giga' ), + 'M' => array( 'multiplier' => 1E6, 'name' => 'mega' ), + 'k' => array( 'multiplier' => 1E3, 'name' => 'kilo' ), + 'h' => array( 'multiplier' => 1E2, 'name' => 'hecto' ), + 'e' => array( 'multiplier' => 1E1, 'name' => 'deka' ), + 'd' => array( 'multiplier' => 1E-1, 'name' => 'deci' ), + 'c' => array( 'multiplier' => 1E-2, 'name' => 'centi' ), + 'm' => array( 'multiplier' => 1E-3, 'name' => 'milli' ), + 'u' => array( 'multiplier' => 1E-6, 'name' => 'micro' ), + 'n' => array( 'multiplier' => 1E-9, 'name' => 'nano' ), + 'p' => array( 'multiplier' => 1E-12, 'name' => 'pico' ), + 'f' => array( 'multiplier' => 1E-15, 'name' => 'femto' ), + 'a' => array( 'multiplier' => 1E-18, 'name' => 'atto' ), + 'z' => array( 'multiplier' => 1E-21, 'name' => 'zepto' ), + 'y' => array( 'multiplier' => 1E-24, 'name' => 'yocto' ) + ); + + /** + * Details of the Units of measure conversion factors, organised by group + * + * @var mixed[] + */ + private static $_unitConversions = array( 'Mass' => array( 'g' => array( 'g' => 1.0, + 'sg' => 6.85220500053478E-05, + 'lbm' => 2.20462291469134E-03, + 'u' => 6.02217000000000E+23, + 'ozm' => 3.52739718003627E-02 + ), + 'sg' => array( 'g' => 1.45938424189287E+04, + 'sg' => 1.0, + 'lbm' => 3.21739194101647E+01, + 'u' => 8.78866000000000E+27, + 'ozm' => 5.14782785944229E+02 + ), + 'lbm' => array( 'g' => 4.5359230974881148E+02, + 'sg' => 3.10810749306493E-02, + 'lbm' => 1.0, + 'u' => 2.73161000000000E+26, + 'ozm' => 1.60000023429410E+01 + ), + 'u' => array( 'g' => 1.66053100460465E-24, + 'sg' => 1.13782988532950E-28, + 'lbm' => 3.66084470330684E-27, + 'u' => 1.0, + 'ozm' => 5.85735238300524E-26 + ), + 'ozm' => array( 'g' => 2.83495152079732E+01, + 'sg' => 1.94256689870811E-03, + 'lbm' => 6.24999908478882E-02, + 'u' => 1.70725600000000E+25, + 'ozm' => 1.0 + ) + ), + 'Distance' => array( 'm' => array( 'm' => 1.0, + 'mi' => 6.21371192237334E-04, + 'Nmi' => 5.39956803455724E-04, + 'in' => 3.93700787401575E+01, + 'ft' => 3.28083989501312E+00, + 'yd' => 1.09361329797891E+00, + 'ang' => 1.00000000000000E+10, + 'Pica' => 2.83464566929116E+03 + ), + 'mi' => array( 'm' => 1.60934400000000E+03, + 'mi' => 1.0, + 'Nmi' => 8.68976241900648E-01, + 'in' => 6.33600000000000E+04, + 'ft' => 5.28000000000000E+03, + 'yd' => 1.76000000000000E+03, + 'ang' => 1.60934400000000E+13, + 'Pica' => 4.56191999999971E+06 + ), + 'Nmi' => array( 'm' => 1.85200000000000E+03, + 'mi' => 1.15077944802354E+00, + 'Nmi' => 1.0, + 'in' => 7.29133858267717E+04, + 'ft' => 6.07611548556430E+03, + 'yd' => 2.02537182785694E+03, + 'ang' => 1.85200000000000E+13, + 'Pica' => 5.24976377952723E+06 + ), + 'in' => array( 'm' => 2.54000000000000E-02, + 'mi' => 1.57828282828283E-05, + 'Nmi' => 1.37149028077754E-05, + 'in' => 1.0, + 'ft' => 8.33333333333333E-02, + 'yd' => 2.77777777686643E-02, + 'ang' => 2.54000000000000E+08, + 'Pica' => 7.19999999999955E+01 + ), + 'ft' => array( 'm' => 3.04800000000000E-01, + 'mi' => 1.89393939393939E-04, + 'Nmi' => 1.64578833693305E-04, + 'in' => 1.20000000000000E+01, + 'ft' => 1.0, + 'yd' => 3.33333333223972E-01, + 'ang' => 3.04800000000000E+09, + 'Pica' => 8.63999999999946E+02 + ), + 'yd' => array( 'm' => 9.14400000300000E-01, + 'mi' => 5.68181818368230E-04, + 'Nmi' => 4.93736501241901E-04, + 'in' => 3.60000000118110E+01, + 'ft' => 3.00000000000000E+00, + 'yd' => 1.0, + 'ang' => 9.14400000300000E+09, + 'Pica' => 2.59200000085023E+03 + ), + 'ang' => array( 'm' => 1.00000000000000E-10, + 'mi' => 6.21371192237334E-14, + 'Nmi' => 5.39956803455724E-14, + 'in' => 3.93700787401575E-09, + 'ft' => 3.28083989501312E-10, + 'yd' => 1.09361329797891E-10, + 'ang' => 1.0, + 'Pica' => 2.83464566929116E-07 + ), + 'Pica' => array( 'm' => 3.52777777777800E-04, + 'mi' => 2.19205948372629E-07, + 'Nmi' => 1.90484761219114E-07, + 'in' => 1.38888888888898E-02, + 'ft' => 1.15740740740748E-03, + 'yd' => 3.85802469009251E-04, + 'ang' => 3.52777777777800E+06, + 'Pica' => 1.0 + ) + ), + 'Time' => array( 'yr' => array( 'yr' => 1.0, + 'day' => 365.25, + 'hr' => 8766.0, + 'mn' => 525960.0, + 'sec' => 31557600.0 + ), + 'day' => array( 'yr' => 2.73785078713210E-03, + 'day' => 1.0, + 'hr' => 24.0, + 'mn' => 1440.0, + 'sec' => 86400.0 + ), + 'hr' => array( 'yr' => 1.14077116130504E-04, + 'day' => 4.16666666666667E-02, + 'hr' => 1.0, + 'mn' => 60.0, + 'sec' => 3600.0 + ), + 'mn' => array( 'yr' => 1.90128526884174E-06, + 'day' => 6.94444444444444E-04, + 'hr' => 1.66666666666667E-02, + 'mn' => 1.0, + 'sec' => 60.0 + ), + 'sec' => array( 'yr' => 3.16880878140289E-08, + 'day' => 1.15740740740741E-05, + 'hr' => 2.77777777777778E-04, + 'mn' => 1.66666666666667E-02, + 'sec' => 1.0 + ) + ), + 'Pressure' => array( 'Pa' => array( 'Pa' => 1.0, + 'p' => 1.0, + 'atm' => 9.86923299998193E-06, + 'at' => 9.86923299998193E-06, + 'mmHg' => 7.50061707998627E-03 + ), + 'p' => array( 'Pa' => 1.0, + 'p' => 1.0, + 'atm' => 9.86923299998193E-06, + 'at' => 9.86923299998193E-06, + 'mmHg' => 7.50061707998627E-03 + ), + 'atm' => array( 'Pa' => 1.01324996583000E+05, + 'p' => 1.01324996583000E+05, + 'atm' => 1.0, + 'at' => 1.0, + 'mmHg' => 760.0 + ), + 'at' => array( 'Pa' => 1.01324996583000E+05, + 'p' => 1.01324996583000E+05, + 'atm' => 1.0, + 'at' => 1.0, + 'mmHg' => 760.0 + ), + 'mmHg' => array( 'Pa' => 1.33322363925000E+02, + 'p' => 1.33322363925000E+02, + 'atm' => 1.31578947368421E-03, + 'at' => 1.31578947368421E-03, + 'mmHg' => 1.0 + ) + ), + 'Force' => array( 'N' => array( 'N' => 1.0, + 'dyn' => 1.0E+5, + 'dy' => 1.0E+5, + 'lbf' => 2.24808923655339E-01 + ), + 'dyn' => array( 'N' => 1.0E-5, + 'dyn' => 1.0, + 'dy' => 1.0, + 'lbf' => 2.24808923655339E-06 + ), + 'dy' => array( 'N' => 1.0E-5, + 'dyn' => 1.0, + 'dy' => 1.0, + 'lbf' => 2.24808923655339E-06 + ), + 'lbf' => array( 'N' => 4.448222, + 'dyn' => 4.448222E+5, + 'dy' => 4.448222E+5, + 'lbf' => 1.0 + ) + ), + 'Energy' => array( 'J' => array( 'J' => 1.0, + 'e' => 9.99999519343231E+06, + 'c' => 2.39006249473467E-01, + 'cal' => 2.38846190642017E-01, + 'eV' => 6.24145700000000E+18, + 'ev' => 6.24145700000000E+18, + 'HPh' => 3.72506430801000E-07, + 'hh' => 3.72506430801000E-07, + 'Wh' => 2.77777916238711E-04, + 'wh' => 2.77777916238711E-04, + 'flb' => 2.37304222192651E+01, + 'BTU' => 9.47815067349015E-04, + 'btu' => 9.47815067349015E-04 + ), + 'e' => array( 'J' => 1.00000048065700E-07, + 'e' => 1.0, + 'c' => 2.39006364353494E-08, + 'cal' => 2.38846305445111E-08, + 'eV' => 6.24146000000000E+11, + 'ev' => 6.24146000000000E+11, + 'HPh' => 3.72506609848824E-14, + 'hh' => 3.72506609848824E-14, + 'Wh' => 2.77778049754611E-11, + 'wh' => 2.77778049754611E-11, + 'flb' => 2.37304336254586E-06, + 'BTU' => 9.47815522922962E-11, + 'btu' => 9.47815522922962E-11 + ), + 'c' => array( 'J' => 4.18399101363672E+00, + 'e' => 4.18398900257312E+07, + 'c' => 1.0, + 'cal' => 9.99330315287563E-01, + 'eV' => 2.61142000000000E+19, + 'ev' => 2.61142000000000E+19, + 'HPh' => 1.55856355899327E-06, + 'hh' => 1.55856355899327E-06, + 'Wh' => 1.16222030532950E-03, + 'wh' => 1.16222030532950E-03, + 'flb' => 9.92878733152102E+01, + 'BTU' => 3.96564972437776E-03, + 'btu' => 3.96564972437776E-03 + ), + 'cal' => array( 'J' => 4.18679484613929E+00, + 'e' => 4.18679283372801E+07, + 'c' => 1.00067013349059E+00, + 'cal' => 1.0, + 'eV' => 2.61317000000000E+19, + 'ev' => 2.61317000000000E+19, + 'HPh' => 1.55960800463137E-06, + 'hh' => 1.55960800463137E-06, + 'Wh' => 1.16299914807955E-03, + 'wh' => 1.16299914807955E-03, + 'flb' => 9.93544094443283E+01, + 'BTU' => 3.96830723907002E-03, + 'btu' => 3.96830723907002E-03 + ), + 'eV' => array( 'J' => 1.60219000146921E-19, + 'e' => 1.60218923136574E-12, + 'c' => 3.82933423195043E-20, + 'cal' => 3.82676978535648E-20, + 'eV' => 1.0, + 'ev' => 1.0, + 'HPh' => 5.96826078912344E-26, + 'hh' => 5.96826078912344E-26, + 'Wh' => 4.45053000026614E-23, + 'wh' => 4.45053000026614E-23, + 'flb' => 3.80206452103492E-18, + 'BTU' => 1.51857982414846E-22, + 'btu' => 1.51857982414846E-22 + ), + 'ev' => array( 'J' => 1.60219000146921E-19, + 'e' => 1.60218923136574E-12, + 'c' => 3.82933423195043E-20, + 'cal' => 3.82676978535648E-20, + 'eV' => 1.0, + 'ev' => 1.0, + 'HPh' => 5.96826078912344E-26, + 'hh' => 5.96826078912344E-26, + 'Wh' => 4.45053000026614E-23, + 'wh' => 4.45053000026614E-23, + 'flb' => 3.80206452103492E-18, + 'BTU' => 1.51857982414846E-22, + 'btu' => 1.51857982414846E-22 + ), + 'HPh' => array( 'J' => 2.68451741316170E+06, + 'e' => 2.68451612283024E+13, + 'c' => 6.41616438565991E+05, + 'cal' => 6.41186757845835E+05, + 'eV' => 1.67553000000000E+25, + 'ev' => 1.67553000000000E+25, + 'HPh' => 1.0, + 'hh' => 1.0, + 'Wh' => 7.45699653134593E+02, + 'wh' => 7.45699653134593E+02, + 'flb' => 6.37047316692964E+07, + 'BTU' => 2.54442605275546E+03, + 'btu' => 2.54442605275546E+03 + ), + 'hh' => array( 'J' => 2.68451741316170E+06, + 'e' => 2.68451612283024E+13, + 'c' => 6.41616438565991E+05, + 'cal' => 6.41186757845835E+05, + 'eV' => 1.67553000000000E+25, + 'ev' => 1.67553000000000E+25, + 'HPh' => 1.0, + 'hh' => 1.0, + 'Wh' => 7.45699653134593E+02, + 'wh' => 7.45699653134593E+02, + 'flb' => 6.37047316692964E+07, + 'BTU' => 2.54442605275546E+03, + 'btu' => 2.54442605275546E+03 + ), + 'Wh' => array( 'J' => 3.59999820554720E+03, + 'e' => 3.59999647518369E+10, + 'c' => 8.60422069219046E+02, + 'cal' => 8.59845857713046E+02, + 'eV' => 2.24692340000000E+22, + 'ev' => 2.24692340000000E+22, + 'HPh' => 1.34102248243839E-03, + 'hh' => 1.34102248243839E-03, + 'Wh' => 1.0, + 'wh' => 1.0, + 'flb' => 8.54294774062316E+04, + 'BTU' => 3.41213254164705E+00, + 'btu' => 3.41213254164705E+00 + ), + 'wh' => array( 'J' => 3.59999820554720E+03, + 'e' => 3.59999647518369E+10, + 'c' => 8.60422069219046E+02, + 'cal' => 8.59845857713046E+02, + 'eV' => 2.24692340000000E+22, + 'ev' => 2.24692340000000E+22, + 'HPh' => 1.34102248243839E-03, + 'hh' => 1.34102248243839E-03, + 'Wh' => 1.0, + 'wh' => 1.0, + 'flb' => 8.54294774062316E+04, + 'BTU' => 3.41213254164705E+00, + 'btu' => 3.41213254164705E+00 + ), + 'flb' => array( 'J' => 4.21400003236424E-02, + 'e' => 4.21399800687660E+05, + 'c' => 1.00717234301644E-02, + 'cal' => 1.00649785509554E-02, + 'eV' => 2.63015000000000E+17, + 'ev' => 2.63015000000000E+17, + 'HPh' => 1.56974211145130E-08, + 'hh' => 1.56974211145130E-08, + 'Wh' => 1.17055614802000E-05, + 'wh' => 1.17055614802000E-05, + 'flb' => 1.0, + 'BTU' => 3.99409272448406E-05, + 'btu' => 3.99409272448406E-05 + ), + 'BTU' => array( 'J' => 1.05505813786749E+03, + 'e' => 1.05505763074665E+10, + 'c' => 2.52165488508168E+02, + 'cal' => 2.51996617135510E+02, + 'eV' => 6.58510000000000E+21, + 'ev' => 6.58510000000000E+21, + 'HPh' => 3.93015941224568E-04, + 'hh' => 3.93015941224568E-04, + 'Wh' => 2.93071851047526E-01, + 'wh' => 2.93071851047526E-01, + 'flb' => 2.50369750774671E+04, + 'BTU' => 1.0, + 'btu' => 1.0, + ), + 'btu' => array( 'J' => 1.05505813786749E+03, + 'e' => 1.05505763074665E+10, + 'c' => 2.52165488508168E+02, + 'cal' => 2.51996617135510E+02, + 'eV' => 6.58510000000000E+21, + 'ev' => 6.58510000000000E+21, + 'HPh' => 3.93015941224568E-04, + 'hh' => 3.93015941224568E-04, + 'Wh' => 2.93071851047526E-01, + 'wh' => 2.93071851047526E-01, + 'flb' => 2.50369750774671E+04, + 'BTU' => 1.0, + 'btu' => 1.0, + ) + ), + 'Power' => array( 'HP' => array( 'HP' => 1.0, + 'h' => 1.0, + 'W' => 7.45701000000000E+02, + 'w' => 7.45701000000000E+02 + ), + 'h' => array( 'HP' => 1.0, + 'h' => 1.0, + 'W' => 7.45701000000000E+02, + 'w' => 7.45701000000000E+02 + ), + 'W' => array( 'HP' => 1.34102006031908E-03, + 'h' => 1.34102006031908E-03, + 'W' => 1.0, + 'w' => 1.0 + ), + 'w' => array( 'HP' => 1.34102006031908E-03, + 'h' => 1.34102006031908E-03, + 'W' => 1.0, + 'w' => 1.0 + ) + ), + 'Magnetism' => array( 'T' => array( 'T' => 1.0, + 'ga' => 10000.0 + ), + 'ga' => array( 'T' => 0.0001, + 'ga' => 1.0 + ) + ), + 'Liquid' => array( 'tsp' => array( 'tsp' => 1.0, + 'tbs' => 3.33333333333333E-01, + 'oz' => 1.66666666666667E-01, + 'cup' => 2.08333333333333E-02, + 'pt' => 1.04166666666667E-02, + 'us_pt' => 1.04166666666667E-02, + 'uk_pt' => 8.67558516821960E-03, + 'qt' => 5.20833333333333E-03, + 'gal' => 1.30208333333333E-03, + 'l' => 4.92999408400710E-03, + 'lt' => 4.92999408400710E-03 + ), + 'tbs' => array( 'tsp' => 3.00000000000000E+00, + 'tbs' => 1.0, + 'oz' => 5.00000000000000E-01, + 'cup' => 6.25000000000000E-02, + 'pt' => 3.12500000000000E-02, + 'us_pt' => 3.12500000000000E-02, + 'uk_pt' => 2.60267555046588E-02, + 'qt' => 1.56250000000000E-02, + 'gal' => 3.90625000000000E-03, + 'l' => 1.47899822520213E-02, + 'lt' => 1.47899822520213E-02 + ), + 'oz' => array( 'tsp' => 6.00000000000000E+00, + 'tbs' => 2.00000000000000E+00, + 'oz' => 1.0, + 'cup' => 1.25000000000000E-01, + 'pt' => 6.25000000000000E-02, + 'us_pt' => 6.25000000000000E-02, + 'uk_pt' => 5.20535110093176E-02, + 'qt' => 3.12500000000000E-02, + 'gal' => 7.81250000000000E-03, + 'l' => 2.95799645040426E-02, + 'lt' => 2.95799645040426E-02 + ), + 'cup' => array( 'tsp' => 4.80000000000000E+01, + 'tbs' => 1.60000000000000E+01, + 'oz' => 8.00000000000000E+00, + 'cup' => 1.0, + 'pt' => 5.00000000000000E-01, + 'us_pt' => 5.00000000000000E-01, + 'uk_pt' => 4.16428088074541E-01, + 'qt' => 2.50000000000000E-01, + 'gal' => 6.25000000000000E-02, + 'l' => 2.36639716032341E-01, + 'lt' => 2.36639716032341E-01 + ), + 'pt' => array( 'tsp' => 9.60000000000000E+01, + 'tbs' => 3.20000000000000E+01, + 'oz' => 1.60000000000000E+01, + 'cup' => 2.00000000000000E+00, + 'pt' => 1.0, + 'us_pt' => 1.0, + 'uk_pt' => 8.32856176149081E-01, + 'qt' => 5.00000000000000E-01, + 'gal' => 1.25000000000000E-01, + 'l' => 4.73279432064682E-01, + 'lt' => 4.73279432064682E-01 + ), + 'us_pt' => array( 'tsp' => 9.60000000000000E+01, + 'tbs' => 3.20000000000000E+01, + 'oz' => 1.60000000000000E+01, + 'cup' => 2.00000000000000E+00, + 'pt' => 1.0, + 'us_pt' => 1.0, + 'uk_pt' => 8.32856176149081E-01, + 'qt' => 5.00000000000000E-01, + 'gal' => 1.25000000000000E-01, + 'l' => 4.73279432064682E-01, + 'lt' => 4.73279432064682E-01 + ), + 'uk_pt' => array( 'tsp' => 1.15266000000000E+02, + 'tbs' => 3.84220000000000E+01, + 'oz' => 1.92110000000000E+01, + 'cup' => 2.40137500000000E+00, + 'pt' => 1.20068750000000E+00, + 'us_pt' => 1.20068750000000E+00, + 'uk_pt' => 1.0, + 'qt' => 6.00343750000000E-01, + 'gal' => 1.50085937500000E-01, + 'l' => 5.68260698087162E-01, + 'lt' => 5.68260698087162E-01 + ), + 'qt' => array( 'tsp' => 1.92000000000000E+02, + 'tbs' => 6.40000000000000E+01, + 'oz' => 3.20000000000000E+01, + 'cup' => 4.00000000000000E+00, + 'pt' => 2.00000000000000E+00, + 'us_pt' => 2.00000000000000E+00, + 'uk_pt' => 1.66571235229816E+00, + 'qt' => 1.0, + 'gal' => 2.50000000000000E-01, + 'l' => 9.46558864129363E-01, + 'lt' => 9.46558864129363E-01 + ), + 'gal' => array( 'tsp' => 7.68000000000000E+02, + 'tbs' => 2.56000000000000E+02, + 'oz' => 1.28000000000000E+02, + 'cup' => 1.60000000000000E+01, + 'pt' => 8.00000000000000E+00, + 'us_pt' => 8.00000000000000E+00, + 'uk_pt' => 6.66284940919265E+00, + 'qt' => 4.00000000000000E+00, + 'gal' => 1.0, + 'l' => 3.78623545651745E+00, + 'lt' => 3.78623545651745E+00 + ), + 'l' => array( 'tsp' => 2.02840000000000E+02, + 'tbs' => 6.76133333333333E+01, + 'oz' => 3.38066666666667E+01, + 'cup' => 4.22583333333333E+00, + 'pt' => 2.11291666666667E+00, + 'us_pt' => 2.11291666666667E+00, + 'uk_pt' => 1.75975569552166E+00, + 'qt' => 1.05645833333333E+00, + 'gal' => 2.64114583333333E-01, + 'l' => 1.0, + 'lt' => 1.0 + ), + 'lt' => array( 'tsp' => 2.02840000000000E+02, + 'tbs' => 6.76133333333333E+01, + 'oz' => 3.38066666666667E+01, + 'cup' => 4.22583333333333E+00, + 'pt' => 2.11291666666667E+00, + 'us_pt' => 2.11291666666667E+00, + 'uk_pt' => 1.75975569552166E+00, + 'qt' => 1.05645833333333E+00, + 'gal' => 2.64114583333333E-01, + 'l' => 1.0, + 'lt' => 1.0 + ) + ) + ); + + + /** + * _parseComplex + * + * Parses a complex number into its real and imaginary parts, and an I or J suffix + * + * @param string $complexNumber The complex number + * @return string[] Indexed on "real", "imaginary" and "suffix" + */ + public static function _parseComplex($complexNumber) { + $workString = (string) $complexNumber; + + $realNumber = $imaginary = 0; + // Extract the suffix, if there is one + $suffix = substr($workString,-1); + if (!is_numeric($suffix)) { + $workString = substr($workString,0,-1); + } else { + $suffix = ''; + } + + // Split the input into its Real and Imaginary components + $leadingSign = 0; + if (strlen($workString) > 0) { + $leadingSign = (($workString{0} == '+') || ($workString{0} == '-')) ? 1 : 0; + } + $power = ''; + $realNumber = strtok($workString, '+-'); + if (strtoupper(substr($realNumber,-1)) == 'E') { + $power = strtok('+-'); + ++$leadingSign; + } + + $realNumber = substr($workString,0,strlen($realNumber)+strlen($power)+$leadingSign); + + if ($suffix != '') { + $imaginary = substr($workString,strlen($realNumber)); + + if (($imaginary == '') && (($realNumber == '') || ($realNumber == '+') || ($realNumber == '-'))) { + $imaginary = $realNumber.'1'; + $realNumber = '0'; + } else if ($imaginary == '') { + $imaginary = $realNumber; + $realNumber = '0'; + } elseif (($imaginary == '+') || ($imaginary == '-')) { + $imaginary .= '1'; + } + } + + return array( 'real' => $realNumber, + 'imaginary' => $imaginary, + 'suffix' => $suffix + ); + } // function _parseComplex() + + + /** + * Cleans the leading characters in a complex number string + * + * @param string $complexNumber The complex number to clean + * @return string The "cleaned" complex number + */ + private static function _cleanComplex($complexNumber) { + if ($complexNumber{0} == '+') $complexNumber = substr($complexNumber,1); + if ($complexNumber{0} == '0') $complexNumber = substr($complexNumber,1); + if ($complexNumber{0} == '.') $complexNumber = '0'.$complexNumber; + if ($complexNumber{0} == '+') $complexNumber = substr($complexNumber,1); + return $complexNumber; + } + + /** + * Formats a number base string value with leading zeroes + * + * @param string $xVal The "number" to pad + * @param integer $places The length that we want to pad this value + * @return string The padded "number" + */ + private static function _nbrConversionFormat($xVal, $places) { + if (!is_null($places)) { + if (strlen($xVal) <= $places) { + return substr(str_pad($xVal, $places, '0', STR_PAD_LEFT), -10); + } else { + return PHPExcel_Calculation_Functions::NaN(); + } + } + + return substr($xVal, -10); + } // function _nbrConversionFormat() + + /** + * BESSELI + * + * Returns the modified Bessel function In(x), which is equivalent to the Bessel function evaluated + * for purely imaginary arguments + * + * Excel Function: + * BESSELI(x,ord) + * + * @access public + * @category Engineering Functions + * @param float $x The value at which to evaluate the function. + * If x is nonnumeric, BESSELI returns the #VALUE! error value. + * @param integer $ord The order of the Bessel function. + * If ord is not an integer, it is truncated. + * If $ord is nonnumeric, BESSELI returns the #VALUE! error value. + * If $ord < 0, BESSELI returns the #NUM! error value. + * @return float + * + */ + public static function BESSELI($x, $ord) { + $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x); + $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord); + + if ((is_numeric($x)) && (is_numeric($ord))) { + $ord = floor($ord); + if ($ord < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + + if (abs($x) <= 30) { + $fResult = $fTerm = pow($x / 2, $ord) / PHPExcel_Calculation_MathTrig::FACT($ord); + $ordK = 1; + $fSqrX = ($x * $x) / 4; + do { + $fTerm *= $fSqrX; + $fTerm /= ($ordK * ($ordK + $ord)); + $fResult += $fTerm; + } while ((abs($fTerm) > 1e-12) && (++$ordK < 100)); + } else { + $f_2_PI = 2 * M_PI; + + $fXAbs = abs($x); + $fResult = exp($fXAbs) / sqrt($f_2_PI * $fXAbs); + if (($ord & 1) && ($x < 0)) { + $fResult = -$fResult; + } + } + return (is_nan($fResult)) ? PHPExcel_Calculation_Functions::NaN() : $fResult; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function BESSELI() + + + /** + * BESSELJ + * + * Returns the Bessel function + * + * Excel Function: + * BESSELJ(x,ord) + * + * @access public + * @category Engineering Functions + * @param float $x The value at which to evaluate the function. + * If x is nonnumeric, BESSELJ returns the #VALUE! error value. + * @param integer $ord The order of the Bessel function. If n is not an integer, it is truncated. + * If $ord is nonnumeric, BESSELJ returns the #VALUE! error value. + * If $ord < 0, BESSELJ returns the #NUM! error value. + * @return float + * + */ + public static function BESSELJ($x, $ord) { + $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x); + $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord); + + if ((is_numeric($x)) && (is_numeric($ord))) { + $ord = floor($ord); + if ($ord < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + + $fResult = 0; + if (abs($x) <= 30) { + $fResult = $fTerm = pow($x / 2, $ord) / PHPExcel_Calculation_MathTrig::FACT($ord); + $ordK = 1; + $fSqrX = ($x * $x) / -4; + do { + $fTerm *= $fSqrX; + $fTerm /= ($ordK * ($ordK + $ord)); + $fResult += $fTerm; + } while ((abs($fTerm) > 1e-12) && (++$ordK < 100)); + } else { + $f_PI_DIV_2 = M_PI / 2; + $f_PI_DIV_4 = M_PI / 4; + + $fXAbs = abs($x); + $fResult = sqrt(M_2DIVPI / $fXAbs) * cos($fXAbs - $ord * $f_PI_DIV_2 - $f_PI_DIV_4); + if (($ord & 1) && ($x < 0)) { + $fResult = -$fResult; + } + } + return (is_nan($fResult)) ? PHPExcel_Calculation_Functions::NaN() : $fResult; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function BESSELJ() + + + private static function _Besselk0($fNum) { + if ($fNum <= 2) { + $fNum2 = $fNum * 0.5; + $y = ($fNum2 * $fNum2); + $fRet = -log($fNum2) * self::BESSELI($fNum, 0) + + (-0.57721566 + $y * (0.42278420 + $y * (0.23069756 + $y * (0.3488590e-1 + $y * (0.262698e-2 + $y * + (0.10750e-3 + $y * 0.74e-5)))))); + } else { + $y = 2 / $fNum; + $fRet = exp(-$fNum) / sqrt($fNum) * + (1.25331414 + $y * (-0.7832358e-1 + $y * (0.2189568e-1 + $y * (-0.1062446e-1 + $y * + (0.587872e-2 + $y * (-0.251540e-2 + $y * 0.53208e-3)))))); + } + return $fRet; + } // function _Besselk0() + + + private static function _Besselk1($fNum) { + if ($fNum <= 2) { + $fNum2 = $fNum * 0.5; + $y = ($fNum2 * $fNum2); + $fRet = log($fNum2) * self::BESSELI($fNum, 1) + + (1 + $y * (0.15443144 + $y * (-0.67278579 + $y * (-0.18156897 + $y * (-0.1919402e-1 + $y * + (-0.110404e-2 + $y * (-0.4686e-4))))))) / $fNum; + } else { + $y = 2 / $fNum; + $fRet = exp(-$fNum) / sqrt($fNum) * + (1.25331414 + $y * (0.23498619 + $y * (-0.3655620e-1 + $y * (0.1504268e-1 + $y * (-0.780353e-2 + $y * + (0.325614e-2 + $y * (-0.68245e-3))))))); + } + return $fRet; + } // function _Besselk1() + + + /** + * BESSELK + * + * Returns the modified Bessel function Kn(x), which is equivalent to the Bessel functions evaluated + * for purely imaginary arguments. + * + * Excel Function: + * BESSELK(x,ord) + * + * @access public + * @category Engineering Functions + * @param float $x The value at which to evaluate the function. + * If x is nonnumeric, BESSELK returns the #VALUE! error value. + * @param integer $ord The order of the Bessel function. If n is not an integer, it is truncated. + * If $ord is nonnumeric, BESSELK returns the #VALUE! error value. + * If $ord < 0, BESSELK returns the #NUM! error value. + * @return float + * + */ + public static function BESSELK($x, $ord) { + $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x); + $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord); + + if ((is_numeric($x)) && (is_numeric($ord))) { + if (($ord < 0) || ($x == 0.0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + + switch(floor($ord)) { + case 0 : return self::_Besselk0($x); + break; + case 1 : return self::_Besselk1($x); + break; + default : $fTox = 2 / $x; + $fBkm = self::_Besselk0($x); + $fBk = self::_Besselk1($x); + for ($n = 1; $n < $ord; ++$n) { + $fBkp = $fBkm + $n * $fTox * $fBk; + $fBkm = $fBk; + $fBk = $fBkp; + } + } + return (is_nan($fBk)) ? PHPExcel_Calculation_Functions::NaN() : $fBk; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function BESSELK() + + + private static function _Bessely0($fNum) { + if ($fNum < 8.0) { + $y = ($fNum * $fNum); + $f1 = -2957821389.0 + $y * (7062834065.0 + $y * (-512359803.6 + $y * (10879881.29 + $y * (-86327.92757 + $y * 228.4622733)))); + $f2 = 40076544269.0 + $y * (745249964.8 + $y * (7189466.438 + $y * (47447.26470 + $y * (226.1030244 + $y)))); + $fRet = $f1 / $f2 + 0.636619772 * self::BESSELJ($fNum, 0) * log($fNum); + } else { + $z = 8.0 / $fNum; + $y = ($z * $z); + $xx = $fNum - 0.785398164; + $f1 = 1 + $y * (-0.1098628627e-2 + $y * (0.2734510407e-4 + $y * (-0.2073370639e-5 + $y * 0.2093887211e-6))); + $f2 = -0.1562499995e-1 + $y * (0.1430488765e-3 + $y * (-0.6911147651e-5 + $y * (0.7621095161e-6 + $y * (-0.934945152e-7)))); + $fRet = sqrt(0.636619772 / $fNum) * (sin($xx) * $f1 + $z * cos($xx) * $f2); + } + return $fRet; + } // function _Bessely0() + + + private static function _Bessely1($fNum) { + if ($fNum < 8.0) { + $y = ($fNum * $fNum); + $f1 = $fNum * (-0.4900604943e13 + $y * (0.1275274390e13 + $y * (-0.5153438139e11 + $y * (0.7349264551e9 + $y * + (-0.4237922726e7 + $y * 0.8511937935e4))))); + $f2 = 0.2499580570e14 + $y * (0.4244419664e12 + $y * (0.3733650367e10 + $y * (0.2245904002e8 + $y * + (0.1020426050e6 + $y * (0.3549632885e3 + $y))))); + $fRet = $f1 / $f2 + 0.636619772 * ( self::BESSELJ($fNum, 1) * log($fNum) - 1 / $fNum); + } else { + $fRet = sqrt(0.636619772 / $fNum) * sin($fNum - 2.356194491); + } + return $fRet; + } // function _Bessely1() + + + /** + * BESSELY + * + * Returns the Bessel function, which is also called the Weber function or the Neumann function. + * + * Excel Function: + * BESSELY(x,ord) + * + * @access public + * @category Engineering Functions + * @param float $x The value at which to evaluate the function. + * If x is nonnumeric, BESSELK returns the #VALUE! error value. + * @param integer $ord The order of the Bessel function. If n is not an integer, it is truncated. + * If $ord is nonnumeric, BESSELK returns the #VALUE! error value. + * If $ord < 0, BESSELK returns the #NUM! error value. + * + * @return float + */ + public static function BESSELY($x, $ord) { + $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x); + $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord); + + if ((is_numeric($x)) && (is_numeric($ord))) { + if (($ord < 0) || ($x == 0.0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + + switch(floor($ord)) { + case 0 : return self::_Bessely0($x); + break; + case 1 : return self::_Bessely1($x); + break; + default: $fTox = 2 / $x; + $fBym = self::_Bessely0($x); + $fBy = self::_Bessely1($x); + for ($n = 1; $n < $ord; ++$n) { + $fByp = $n * $fTox * $fBy - $fBym; + $fBym = $fBy; + $fBy = $fByp; + } + } + return (is_nan($fBy)) ? PHPExcel_Calculation_Functions::NaN() : $fBy; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function BESSELY() + + + /** + * BINTODEC + * + * Return a binary value as decimal. + * + * Excel Function: + * BIN2DEC(x) + * + * @access public + * @category Engineering Functions + * @param string $x The binary number (as a string) that you want to convert. The number + * cannot contain more than 10 characters (10 bits). The most significant + * bit of number is the sign bit. The remaining 9 bits are magnitude bits. + * Negative numbers are represented using two's-complement notation. + * If number is not a valid binary number, or if number contains more than + * 10 characters (10 bits), BIN2DEC returns the #NUM! error value. + * @return string + */ + public static function BINTODEC($x) { + $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); + + if (is_bool($x)) { + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { + $x = (int) $x; + } else { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { + $x = floor($x); + } + $x = (string) $x; + if (strlen($x) > preg_match_all('/[01]/',$x,$out)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if (strlen($x) > 10) { + return PHPExcel_Calculation_Functions::NaN(); + } elseif (strlen($x) == 10) { + // Two's Complement + $x = substr($x,-9); + return '-'.(512-bindec($x)); + } + return bindec($x); + } // function BINTODEC() + + + /** + * BINTOHEX + * + * Return a binary value as hex. + * + * Excel Function: + * BIN2HEX(x[,places]) + * + * @access public + * @category Engineering Functions + * @param string $x The binary number (as a string) that you want to convert. The number + * cannot contain more than 10 characters (10 bits). The most significant + * bit of number is the sign bit. The remaining 9 bits are magnitude bits. + * Negative numbers are represented using two's-complement notation. + * If number is not a valid binary number, or if number contains more than + * 10 characters (10 bits), BIN2HEX returns the #NUM! error value. + * @param integer $places The number of characters to use. If places is omitted, BIN2HEX uses the + * minimum number of characters necessary. Places is useful for padding the + * return value with leading 0s (zeros). + * If places is not an integer, it is truncated. + * If places is nonnumeric, BIN2HEX returns the #VALUE! error value. + * If places is negative, BIN2HEX returns the #NUM! error value. + * @return string + */ + public static function BINTOHEX($x, $places=NULL) { + $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); + $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); + + if (is_bool($x)) { + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { + $x = (int) $x; + } else { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { + $x = floor($x); + } + $x = (string) $x; + if (strlen($x) > preg_match_all('/[01]/',$x,$out)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if (strlen($x) > 10) { + return PHPExcel_Calculation_Functions::NaN(); + } elseif (strlen($x) == 10) { + // Two's Complement + return str_repeat('F',8).substr(strtoupper(dechex(bindec(substr($x,-9)))),-2); + } + $hexVal = (string) strtoupper(dechex(bindec($x))); + + return self::_nbrConversionFormat($hexVal,$places); + } // function BINTOHEX() + + + /** + * BINTOOCT + * + * Return a binary value as octal. + * + * Excel Function: + * BIN2OCT(x[,places]) + * + * @access public + * @category Engineering Functions + * @param string $x The binary number (as a string) that you want to convert. The number + * cannot contain more than 10 characters (10 bits). The most significant + * bit of number is the sign bit. The remaining 9 bits are magnitude bits. + * Negative numbers are represented using two's-complement notation. + * If number is not a valid binary number, or if number contains more than + * 10 characters (10 bits), BIN2OCT returns the #NUM! error value. + * @param integer $places The number of characters to use. If places is omitted, BIN2OCT uses the + * minimum number of characters necessary. Places is useful for padding the + * return value with leading 0s (zeros). + * If places is not an integer, it is truncated. + * If places is nonnumeric, BIN2OCT returns the #VALUE! error value. + * If places is negative, BIN2OCT returns the #NUM! error value. + * @return string + */ + public static function BINTOOCT($x, $places=NULL) { + $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); + $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); + + if (is_bool($x)) { + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { + $x = (int) $x; + } else { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { + $x = floor($x); + } + $x = (string) $x; + if (strlen($x) > preg_match_all('/[01]/',$x,$out)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if (strlen($x) > 10) { + return PHPExcel_Calculation_Functions::NaN(); + } elseif (strlen($x) == 10) { + // Two's Complement + return str_repeat('7',7).substr(strtoupper(decoct(bindec(substr($x,-9)))),-3); + } + $octVal = (string) decoct(bindec($x)); + + return self::_nbrConversionFormat($octVal,$places); + } // function BINTOOCT() + + + /** + * DECTOBIN + * + * Return a decimal value as binary. + * + * Excel Function: + * DEC2BIN(x[,places]) + * + * @access public + * @category Engineering Functions + * @param string $x The decimal integer you want to convert. If number is negative, + * valid place values are ignored and DEC2BIN returns a 10-character + * (10-bit) binary number in which the most significant bit is the sign + * bit. The remaining 9 bits are magnitude bits. Negative numbers are + * represented using two's-complement notation. + * If number < -512 or if number > 511, DEC2BIN returns the #NUM! error + * value. + * If number is nonnumeric, DEC2BIN returns the #VALUE! error value. + * If DEC2BIN requires more than places characters, it returns the #NUM! + * error value. + * @param integer $places The number of characters to use. If places is omitted, DEC2BIN uses + * the minimum number of characters necessary. Places is useful for + * padding the return value with leading 0s (zeros). + * If places is not an integer, it is truncated. + * If places is nonnumeric, DEC2BIN returns the #VALUE! error value. + * If places is zero or negative, DEC2BIN returns the #NUM! error value. + * @return string + */ + public static function DECTOBIN($x, $places=NULL) { + $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); + $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); + + if (is_bool($x)) { + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { + $x = (int) $x; + } else { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + $x = (string) $x; + if (strlen($x) > preg_match_all('/[-0123456789.]/',$x,$out)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $x = (string) floor($x); + $r = decbin($x); + if (strlen($r) == 32) { + // Two's Complement + $r = substr($r,-10); + } elseif (strlen($r) > 11) { + return PHPExcel_Calculation_Functions::NaN(); + } + + return self::_nbrConversionFormat($r,$places); + } // function DECTOBIN() + + + /** + * DECTOHEX + * + * Return a decimal value as hex. + * + * Excel Function: + * DEC2HEX(x[,places]) + * + * @access public + * @category Engineering Functions + * @param string $x The decimal integer you want to convert. If number is negative, + * places is ignored and DEC2HEX returns a 10-character (40-bit) + * hexadecimal number in which the most significant bit is the sign + * bit. The remaining 39 bits are magnitude bits. Negative numbers + * are represented using two's-complement notation. + * If number < -549,755,813,888 or if number > 549,755,813,887, + * DEC2HEX returns the #NUM! error value. + * If number is nonnumeric, DEC2HEX returns the #VALUE! error value. + * If DEC2HEX requires more than places characters, it returns the + * #NUM! error value. + * @param integer $places The number of characters to use. If places is omitted, DEC2HEX uses + * the minimum number of characters necessary. Places is useful for + * padding the return value with leading 0s (zeros). + * If places is not an integer, it is truncated. + * If places is nonnumeric, DEC2HEX returns the #VALUE! error value. + * If places is zero or negative, DEC2HEX returns the #NUM! error value. + * @return string + */ + public static function DECTOHEX($x, $places=null) { + $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); + $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); + + if (is_bool($x)) { + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { + $x = (int) $x; + } else { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + $x = (string) $x; + if (strlen($x) > preg_match_all('/[-0123456789.]/',$x,$out)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $x = (string) floor($x); + $r = strtoupper(dechex($x)); + if (strlen($r) == 8) { + // Two's Complement + $r = 'FF'.$r; + } + + return self::_nbrConversionFormat($r,$places); + } // function DECTOHEX() + + + /** + * DECTOOCT + * + * Return an decimal value as octal. + * + * Excel Function: + * DEC2OCT(x[,places]) + * + * @access public + * @category Engineering Functions + * @param string $x The decimal integer you want to convert. If number is negative, + * places is ignored and DEC2OCT returns a 10-character (30-bit) + * octal number in which the most significant bit is the sign bit. + * The remaining 29 bits are magnitude bits. Negative numbers are + * represented using two's-complement notation. + * If number < -536,870,912 or if number > 536,870,911, DEC2OCT + * returns the #NUM! error value. + * If number is nonnumeric, DEC2OCT returns the #VALUE! error value. + * If DEC2OCT requires more than places characters, it returns the + * #NUM! error value. + * @param integer $places The number of characters to use. If places is omitted, DEC2OCT uses + * the minimum number of characters necessary. Places is useful for + * padding the return value with leading 0s (zeros). + * If places is not an integer, it is truncated. + * If places is nonnumeric, DEC2OCT returns the #VALUE! error value. + * If places is zero or negative, DEC2OCT returns the #NUM! error value. + * @return string + */ + public static function DECTOOCT($x, $places=null) { + $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); + $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); + + if (is_bool($x)) { + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { + $x = (int) $x; + } else { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + $x = (string) $x; + if (strlen($x) > preg_match_all('/[-0123456789.]/',$x,$out)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $x = (string) floor($x); + $r = decoct($x); + if (strlen($r) == 11) { + // Two's Complement + $r = substr($r,-10); + } + + return self::_nbrConversionFormat($r,$places); + } // function DECTOOCT() + + + /** + * HEXTOBIN + * + * Return a hex value as binary. + * + * Excel Function: + * HEX2BIN(x[,places]) + * + * @access public + * @category Engineering Functions + * @param string $x the hexadecimal number you want to convert. Number cannot + * contain more than 10 characters. The most significant bit of + * number is the sign bit (40th bit from the right). The remaining + * 9 bits are magnitude bits. Negative numbers are represented + * using two's-complement notation. + * If number is negative, HEX2BIN ignores places and returns a + * 10-character binary number. + * If number is negative, it cannot be less than FFFFFFFE00, and + * if number is positive, it cannot be greater than 1FF. + * If number is not a valid hexadecimal number, HEX2BIN returns + * the #NUM! error value. + * If HEX2BIN requires more than places characters, it returns + * the #NUM! error value. + * @param integer $places The number of characters to use. If places is omitted, + * HEX2BIN uses the minimum number of characters necessary. Places + * is useful for padding the return value with leading 0s (zeros). + * If places is not an integer, it is truncated. + * If places is nonnumeric, HEX2BIN returns the #VALUE! error value. + * If places is negative, HEX2BIN returns the #NUM! error value. + * @return string + */ + public static function HEXTOBIN($x, $places=null) { + $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); + $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); + + if (is_bool($x)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $x = (string) $x; + if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/',strtoupper($x),$out)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $binVal = decbin(hexdec($x)); + + return substr(self::_nbrConversionFormat($binVal,$places),-10); + } // function HEXTOBIN() + + + /** + * HEXTODEC + * + * Return a hex value as decimal. + * + * Excel Function: + * HEX2DEC(x) + * + * @access public + * @category Engineering Functions + * @param string $x The hexadecimal number you want to convert. This number cannot + * contain more than 10 characters (40 bits). The most significant + * bit of number is the sign bit. The remaining 39 bits are magnitude + * bits. Negative numbers are represented using two's-complement + * notation. + * If number is not a valid hexadecimal number, HEX2DEC returns the + * #NUM! error value. + * @return string + */ + public static function HEXTODEC($x) { + $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); + + if (is_bool($x)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $x = (string) $x; + if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/',strtoupper($x),$out)) { + return PHPExcel_Calculation_Functions::NaN(); + } + return hexdec($x); + } // function HEXTODEC() + + + /** + * HEXTOOCT + * + * Return a hex value as octal. + * + * Excel Function: + * HEX2OCT(x[,places]) + * + * @access public + * @category Engineering Functions + * @param string $x The hexadecimal number you want to convert. Number cannot + * contain more than 10 characters. The most significant bit of + * number is the sign bit. The remaining 39 bits are magnitude + * bits. Negative numbers are represented using two's-complement + * notation. + * If number is negative, HEX2OCT ignores places and returns a + * 10-character octal number. + * If number is negative, it cannot be less than FFE0000000, and + * if number is positive, it cannot be greater than 1FFFFFFF. + * If number is not a valid hexadecimal number, HEX2OCT returns + * the #NUM! error value. + * If HEX2OCT requires more than places characters, it returns + * the #NUM! error value. + * @param integer $places The number of characters to use. If places is omitted, HEX2OCT + * uses the minimum number of characters necessary. Places is + * useful for padding the return value with leading 0s (zeros). + * If places is not an integer, it is truncated. + * If places is nonnumeric, HEX2OCT returns the #VALUE! error + * value. + * If places is negative, HEX2OCT returns the #NUM! error value. + * @return string + */ + public static function HEXTOOCT($x, $places=null) { + $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); + $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); + + if (is_bool($x)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $x = (string) $x; + if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/',strtoupper($x),$out)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $octVal = decoct(hexdec($x)); + + return self::_nbrConversionFormat($octVal,$places); + } // function HEXTOOCT() + + + /** + * OCTTOBIN + * + * Return an octal value as binary. + * + * Excel Function: + * OCT2BIN(x[,places]) + * + * @access public + * @category Engineering Functions + * @param string $x The octal number you want to convert. Number may not + * contain more than 10 characters. The most significant + * bit of number is the sign bit. The remaining 29 bits + * are magnitude bits. Negative numbers are represented + * using two's-complement notation. + * If number is negative, OCT2BIN ignores places and returns + * a 10-character binary number. + * If number is negative, it cannot be less than 7777777000, + * and if number is positive, it cannot be greater than 777. + * If number is not a valid octal number, OCT2BIN returns + * the #NUM! error value. + * If OCT2BIN requires more than places characters, it + * returns the #NUM! error value. + * @param integer $places The number of characters to use. If places is omitted, + * OCT2BIN uses the minimum number of characters necessary. + * Places is useful for padding the return value with + * leading 0s (zeros). + * If places is not an integer, it is truncated. + * If places is nonnumeric, OCT2BIN returns the #VALUE! + * error value. + * If places is negative, OCT2BIN returns the #NUM! error + * value. + * @return string + */ + public static function OCTTOBIN($x, $places=null) { + $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); + $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); + + if (is_bool($x)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $x = (string) $x; + if (preg_match_all('/[01234567]/',$x,$out) != strlen($x)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $r = decbin(octdec($x)); + + return self::_nbrConversionFormat($r,$places); + } // function OCTTOBIN() + + + /** + * OCTTODEC + * + * Return an octal value as decimal. + * + * Excel Function: + * OCT2DEC(x) + * + * @access public + * @category Engineering Functions + * @param string $x The octal number you want to convert. Number may not contain + * more than 10 octal characters (30 bits). The most significant + * bit of number is the sign bit. The remaining 29 bits are + * magnitude bits. Negative numbers are represented using + * two's-complement notation. + * If number is not a valid octal number, OCT2DEC returns the + * #NUM! error value. + * @return string + */ + public static function OCTTODEC($x) { + $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); + + if (is_bool($x)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $x = (string) $x; + if (preg_match_all('/[01234567]/',$x,$out) != strlen($x)) { + return PHPExcel_Calculation_Functions::NaN(); + } + return octdec($x); + } // function OCTTODEC() + + + /** + * OCTTOHEX + * + * Return an octal value as hex. + * + * Excel Function: + * OCT2HEX(x[,places]) + * + * @access public + * @category Engineering Functions + * @param string $x The octal number you want to convert. Number may not contain + * more than 10 octal characters (30 bits). The most significant + * bit of number is the sign bit. The remaining 29 bits are + * magnitude bits. Negative numbers are represented using + * two's-complement notation. + * If number is negative, OCT2HEX ignores places and returns a + * 10-character hexadecimal number. + * If number is not a valid octal number, OCT2HEX returns the + * #NUM! error value. + * If OCT2HEX requires more than places characters, it returns + * the #NUM! error value. + * @param integer $places The number of characters to use. If places is omitted, OCT2HEX + * uses the minimum number of characters necessary. Places is useful + * for padding the return value with leading 0s (zeros). + * If places is not an integer, it is truncated. + * If places is nonnumeric, OCT2HEX returns the #VALUE! error value. + * If places is negative, OCT2HEX returns the #NUM! error value. + * @return string + */ + public static function OCTTOHEX($x, $places=null) { + $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); + $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); + + if (is_bool($x)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $x = (string) $x; + if (preg_match_all('/[01234567]/',$x,$out) != strlen($x)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $hexVal = strtoupper(dechex(octdec($x))); + + return self::_nbrConversionFormat($hexVal,$places); + } // function OCTTOHEX() + + + /** + * COMPLEX + * + * Converts real and imaginary coefficients into a complex number of the form x + yi or x + yj. + * + * Excel Function: + * COMPLEX(realNumber,imaginary[,places]) + * + * @access public + * @category Engineering Functions + * @param float $realNumber The real coefficient of the complex number. + * @param float $imaginary The imaginary coefficient of the complex number. + * @param string $suffix The suffix for the imaginary component of the complex number. + * If omitted, the suffix is assumed to be "i". + * @return string + */ + public static function COMPLEX($realNumber=0.0, $imaginary=0.0, $suffix='i') { + $realNumber = (is_null($realNumber)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($realNumber); + $imaginary = (is_null($imaginary)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($imaginary); + $suffix = (is_null($suffix)) ? 'i' : PHPExcel_Calculation_Functions::flattenSingleValue($suffix); + + if (((is_numeric($realNumber)) && (is_numeric($imaginary))) && + (($suffix == 'i') || ($suffix == 'j') || ($suffix == ''))) { + $realNumber = (float) $realNumber; + $imaginary = (float) $imaginary; + + if ($suffix == '') $suffix = 'i'; + if ($realNumber == 0.0) { + if ($imaginary == 0.0) { + return (string) '0'; + } elseif ($imaginary == 1.0) { + return (string) $suffix; + } elseif ($imaginary == -1.0) { + return (string) '-'.$suffix; + } + return (string) $imaginary.$suffix; + } elseif ($imaginary == 0.0) { + return (string) $realNumber; + } elseif ($imaginary == 1.0) { + return (string) $realNumber.'+'.$suffix; + } elseif ($imaginary == -1.0) { + return (string) $realNumber.'-'.$suffix; + } + if ($imaginary > 0) { $imaginary = (string) '+'.$imaginary; } + return (string) $realNumber.$imaginary.$suffix; + } + + return PHPExcel_Calculation_Functions::VALUE(); + } // function COMPLEX() + + + /** + * IMAGINARY + * + * Returns the imaginary coefficient of a complex number in x + yi or x + yj text format. + * + * Excel Function: + * IMAGINARY(complexNumber) + * + * @access public + * @category Engineering Functions + * @param string $complexNumber The complex number for which you want the imaginary + * coefficient. + * @return float + */ + public static function IMAGINARY($complexNumber) { + $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); + + $parsedComplex = self::_parseComplex($complexNumber); + return $parsedComplex['imaginary']; + } // function IMAGINARY() + + + /** + * IMREAL + * + * Returns the real coefficient of a complex number in x + yi or x + yj text format. + * + * Excel Function: + * IMREAL(complexNumber) + * + * @access public + * @category Engineering Functions + * @param string $complexNumber The complex number for which you want the real coefficient. + * @return float + */ + public static function IMREAL($complexNumber) { + $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); + + $parsedComplex = self::_parseComplex($complexNumber); + return $parsedComplex['real']; + } // function IMREAL() + + + /** + * IMABS + * + * Returns the absolute value (modulus) of a complex number in x + yi or x + yj text format. + * + * Excel Function: + * IMABS(complexNumber) + * + * @param string $complexNumber The complex number for which you want the absolute value. + * @return float + */ + public static function IMABS($complexNumber) { + $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); + + $parsedComplex = self::_parseComplex($complexNumber); + + return sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary'])); + } // function IMABS() + + + /** + * IMARGUMENT + * + * Returns the argument theta of a complex number, i.e. the angle in radians from the real + * axis to the representation of the number in polar coordinates. + * + * Excel Function: + * IMARGUMENT(complexNumber) + * + * @param string $complexNumber The complex number for which you want the argument theta. + * @return float + */ + public static function IMARGUMENT($complexNumber) { + $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); + + $parsedComplex = self::_parseComplex($complexNumber); + + if ($parsedComplex['real'] == 0.0) { + if ($parsedComplex['imaginary'] == 0.0) { + return 0.0; + } elseif($parsedComplex['imaginary'] < 0.0) { + return M_PI / -2; + } else { + return M_PI / 2; + } + } elseif ($parsedComplex['real'] > 0.0) { + return atan($parsedComplex['imaginary'] / $parsedComplex['real']); + } elseif ($parsedComplex['imaginary'] < 0.0) { + return 0 - (M_PI - atan(abs($parsedComplex['imaginary']) / abs($parsedComplex['real']))); + } else { + return M_PI - atan($parsedComplex['imaginary'] / abs($parsedComplex['real'])); + } + } // function IMARGUMENT() + + + /** + * IMCONJUGATE + * + * Returns the complex conjugate of a complex number in x + yi or x + yj text format. + * + * Excel Function: + * IMCONJUGATE(complexNumber) + * + * @param string $complexNumber The complex number for which you want the conjugate. + * @return string + */ + public static function IMCONJUGATE($complexNumber) { + $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); + + $parsedComplex = self::_parseComplex($complexNumber); + + if ($parsedComplex['imaginary'] == 0.0) { + return $parsedComplex['real']; + } else { + return self::_cleanComplex( self::COMPLEX( $parsedComplex['real'], + 0 - $parsedComplex['imaginary'], + $parsedComplex['suffix'] + ) + ); + } + } // function IMCONJUGATE() + + + /** + * IMCOS + * + * Returns the cosine of a complex number in x + yi or x + yj text format. + * + * Excel Function: + * IMCOS(complexNumber) + * + * @param string $complexNumber The complex number for which you want the cosine. + * @return string|float + */ + public static function IMCOS($complexNumber) { + $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); + + $parsedComplex = self::_parseComplex($complexNumber); + + if ($parsedComplex['imaginary'] == 0.0) { + return cos($parsedComplex['real']); + } else { + return self::IMCONJUGATE(self::COMPLEX(cos($parsedComplex['real']) * cosh($parsedComplex['imaginary']),sin($parsedComplex['real']) * sinh($parsedComplex['imaginary']),$parsedComplex['suffix'])); + } + } // function IMCOS() + + + /** + * IMSIN + * + * Returns the sine of a complex number in x + yi or x + yj text format. + * + * Excel Function: + * IMSIN(complexNumber) + * + * @param string $complexNumber The complex number for which you want the sine. + * @return string|float + */ + public static function IMSIN($complexNumber) { + $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); + + $parsedComplex = self::_parseComplex($complexNumber); + + if ($parsedComplex['imaginary'] == 0.0) { + return sin($parsedComplex['real']); + } else { + return self::COMPLEX(sin($parsedComplex['real']) * cosh($parsedComplex['imaginary']),cos($parsedComplex['real']) * sinh($parsedComplex['imaginary']),$parsedComplex['suffix']); + } + } // function IMSIN() + + + /** + * IMSQRT + * + * Returns the square root of a complex number in x + yi or x + yj text format. + * + * Excel Function: + * IMSQRT(complexNumber) + * + * @param string $complexNumber The complex number for which you want the square root. + * @return string + */ + public static function IMSQRT($complexNumber) { + $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); + + $parsedComplex = self::_parseComplex($complexNumber); + + $theta = self::IMARGUMENT($complexNumber); + $d1 = cos($theta / 2); + $d2 = sin($theta / 2); + $r = sqrt(sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary']))); + + if ($parsedComplex['suffix'] == '') { + return self::COMPLEX($d1 * $r,$d2 * $r); + } else { + return self::COMPLEX($d1 * $r,$d2 * $r,$parsedComplex['suffix']); + } + } // function IMSQRT() + + + /** + * IMLN + * + * Returns the natural logarithm of a complex number in x + yi or x + yj text format. + * + * Excel Function: + * IMLN(complexNumber) + * + * @param string $complexNumber The complex number for which you want the natural logarithm. + * @return string + */ + public static function IMLN($complexNumber) { + $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); + + $parsedComplex = self::_parseComplex($complexNumber); + + if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + + $logR = log(sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary']))); + $t = self::IMARGUMENT($complexNumber); + + if ($parsedComplex['suffix'] == '') { + return self::COMPLEX($logR,$t); + } else { + return self::COMPLEX($logR,$t,$parsedComplex['suffix']); + } + } // function IMLN() + + + /** + * IMLOG10 + * + * Returns the common logarithm (base 10) of a complex number in x + yi or x + yj text format. + * + * Excel Function: + * IMLOG10(complexNumber) + * + * @param string $complexNumber The complex number for which you want the common logarithm. + * @return string + */ + public static function IMLOG10($complexNumber) { + $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); + + $parsedComplex = self::_parseComplex($complexNumber); + + if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) { + return PHPExcel_Calculation_Functions::NaN(); + } elseif (($parsedComplex['real'] > 0.0) && ($parsedComplex['imaginary'] == 0.0)) { + return log10($parsedComplex['real']); + } + + return self::IMPRODUCT(log10(EULER),self::IMLN($complexNumber)); + } // function IMLOG10() + + + /** + * IMLOG2 + * + * Returns the base-2 logarithm of a complex number in x + yi or x + yj text format. + * + * Excel Function: + * IMLOG2(complexNumber) + * + * @param string $complexNumber The complex number for which you want the base-2 logarithm. + * @return string + */ + public static function IMLOG2($complexNumber) { + $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); + + $parsedComplex = self::_parseComplex($complexNumber); + + if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) { + return PHPExcel_Calculation_Functions::NaN(); + } elseif (($parsedComplex['real'] > 0.0) && ($parsedComplex['imaginary'] == 0.0)) { + return log($parsedComplex['real'],2); + } + + return self::IMPRODUCT(log(EULER,2),self::IMLN($complexNumber)); + } // function IMLOG2() + + + /** + * IMEXP + * + * Returns the exponential of a complex number in x + yi or x + yj text format. + * + * Excel Function: + * IMEXP(complexNumber) + * + * @param string $complexNumber The complex number for which you want the exponential. + * @return string + */ + public static function IMEXP($complexNumber) { + $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); + + $parsedComplex = self::_parseComplex($complexNumber); + + if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) { + return '1'; + } + + $e = exp($parsedComplex['real']); + $eX = $e * cos($parsedComplex['imaginary']); + $eY = $e * sin($parsedComplex['imaginary']); + + if ($parsedComplex['suffix'] == '') { + return self::COMPLEX($eX,$eY); + } else { + return self::COMPLEX($eX,$eY,$parsedComplex['suffix']); + } + } // function IMEXP() + + + /** + * IMPOWER + * + * Returns a complex number in x + yi or x + yj text format raised to a power. + * + * Excel Function: + * IMPOWER(complexNumber,realNumber) + * + * @param string $complexNumber The complex number you want to raise to a power. + * @param float $realNumber The power to which you want to raise the complex number. + * @return string + */ + public static function IMPOWER($complexNumber,$realNumber) { + $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); + $realNumber = PHPExcel_Calculation_Functions::flattenSingleValue($realNumber); + + if (!is_numeric($realNumber)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + $parsedComplex = self::_parseComplex($complexNumber); + + $r = sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary'])); + $rPower = pow($r,$realNumber); + $theta = self::IMARGUMENT($complexNumber) * $realNumber; + if ($theta == 0) { + return 1; + } elseif ($parsedComplex['imaginary'] == 0.0) { + return self::COMPLEX($rPower * cos($theta),$rPower * sin($theta),$parsedComplex['suffix']); + } else { + return self::COMPLEX($rPower * cos($theta),$rPower * sin($theta),$parsedComplex['suffix']); + } + } // function IMPOWER() + + + /** + * IMDIV + * + * Returns the quotient of two complex numbers in x + yi or x + yj text format. + * + * Excel Function: + * IMDIV(complexDividend,complexDivisor) + * + * @param string $complexDividend The complex numerator or dividend. + * @param string $complexDivisor The complex denominator or divisor. + * @return string + */ + public static function IMDIV($complexDividend,$complexDivisor) { + $complexDividend = PHPExcel_Calculation_Functions::flattenSingleValue($complexDividend); + $complexDivisor = PHPExcel_Calculation_Functions::flattenSingleValue($complexDivisor); + + $parsedComplexDividend = self::_parseComplex($complexDividend); + $parsedComplexDivisor = self::_parseComplex($complexDivisor); + + if (($parsedComplexDividend['suffix'] != '') && ($parsedComplexDivisor['suffix'] != '') && + ($parsedComplexDividend['suffix'] != $parsedComplexDivisor['suffix'])) { + return PHPExcel_Calculation_Functions::NaN(); + } + if (($parsedComplexDividend['suffix'] != '') && ($parsedComplexDivisor['suffix'] == '')) { + $parsedComplexDivisor['suffix'] = $parsedComplexDividend['suffix']; + } + + $d1 = ($parsedComplexDividend['real'] * $parsedComplexDivisor['real']) + ($parsedComplexDividend['imaginary'] * $parsedComplexDivisor['imaginary']); + $d2 = ($parsedComplexDividend['imaginary'] * $parsedComplexDivisor['real']) - ($parsedComplexDividend['real'] * $parsedComplexDivisor['imaginary']); + $d3 = ($parsedComplexDivisor['real'] * $parsedComplexDivisor['real']) + ($parsedComplexDivisor['imaginary'] * $parsedComplexDivisor['imaginary']); + + $r = $d1/$d3; + $i = $d2/$d3; + + if ($i > 0.0) { + return self::_cleanComplex($r.'+'.$i.$parsedComplexDivisor['suffix']); + } elseif ($i < 0.0) { + return self::_cleanComplex($r.$i.$parsedComplexDivisor['suffix']); + } else { + return $r; + } + } // function IMDIV() + + + /** + * IMSUB + * + * Returns the difference of two complex numbers in x + yi or x + yj text format. + * + * Excel Function: + * IMSUB(complexNumber1,complexNumber2) + * + * @param string $complexNumber1 The complex number from which to subtract complexNumber2. + * @param string $complexNumber2 The complex number to subtract from complexNumber1. + * @return string + */ + public static function IMSUB($complexNumber1,$complexNumber2) { + $complexNumber1 = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber1); + $complexNumber2 = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber2); + + $parsedComplex1 = self::_parseComplex($complexNumber1); + $parsedComplex2 = self::_parseComplex($complexNumber2); + + if ((($parsedComplex1['suffix'] != '') && ($parsedComplex2['suffix'] != '')) && + ($parsedComplex1['suffix'] != $parsedComplex2['suffix'])) { + return PHPExcel_Calculation_Functions::NaN(); + } elseif (($parsedComplex1['suffix'] == '') && ($parsedComplex2['suffix'] != '')) { + $parsedComplex1['suffix'] = $parsedComplex2['suffix']; + } + + $d1 = $parsedComplex1['real'] - $parsedComplex2['real']; + $d2 = $parsedComplex1['imaginary'] - $parsedComplex2['imaginary']; + + return self::COMPLEX($d1,$d2,$parsedComplex1['suffix']); + } // function IMSUB() + + + /** + * IMSUM + * + * Returns the sum of two or more complex numbers in x + yi or x + yj text format. + * + * Excel Function: + * IMSUM(complexNumber[,complexNumber[,...]]) + * + * @param string $complexNumber,... Series of complex numbers to add + * @return string + */ + public static function IMSUM() { + // Return value + $returnValue = self::_parseComplex('0'); + $activeSuffix = ''; + + // Loop through the arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + foreach ($aArgs as $arg) { + $parsedComplex = self::_parseComplex($arg); + + if ($activeSuffix == '') { + $activeSuffix = $parsedComplex['suffix']; + } elseif (($parsedComplex['suffix'] != '') && ($activeSuffix != $parsedComplex['suffix'])) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + $returnValue['real'] += $parsedComplex['real']; + $returnValue['imaginary'] += $parsedComplex['imaginary']; + } + + if ($returnValue['imaginary'] == 0.0) { $activeSuffix = ''; } + return self::COMPLEX($returnValue['real'],$returnValue['imaginary'],$activeSuffix); + } // function IMSUM() + + + /** + * IMPRODUCT + * + * Returns the product of two or more complex numbers in x + yi or x + yj text format. + * + * Excel Function: + * IMPRODUCT(complexNumber[,complexNumber[,...]]) + * + * @param string $complexNumber,... Series of complex numbers to multiply + * @return string + */ + public static function IMPRODUCT() { + // Return value + $returnValue = self::_parseComplex('1'); + $activeSuffix = ''; + + // Loop through the arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + foreach ($aArgs as $arg) { + $parsedComplex = self::_parseComplex($arg); + + $workValue = $returnValue; + if (($parsedComplex['suffix'] != '') && ($activeSuffix == '')) { + $activeSuffix = $parsedComplex['suffix']; + } elseif (($parsedComplex['suffix'] != '') && ($activeSuffix != $parsedComplex['suffix'])) { + return PHPExcel_Calculation_Functions::NaN(); + } + $returnValue['real'] = ($workValue['real'] * $parsedComplex['real']) - ($workValue['imaginary'] * $parsedComplex['imaginary']); + $returnValue['imaginary'] = ($workValue['real'] * $parsedComplex['imaginary']) + ($workValue['imaginary'] * $parsedComplex['real']); + } + + if ($returnValue['imaginary'] == 0.0) { $activeSuffix = ''; } + return self::COMPLEX($returnValue['real'],$returnValue['imaginary'],$activeSuffix); + } // function IMPRODUCT() + + + /** + * DELTA + * + * Tests whether two values are equal. Returns 1 if number1 = number2; returns 0 otherwise. + * Use this function to filter a set of values. For example, by summing several DELTA + * functions you calculate the count of equal pairs. This function is also known as the + * Kronecker Delta function. + * + * Excel Function: + * DELTA(a[,b]) + * + * @param float $a The first number. + * @param float $b The second number. If omitted, b is assumed to be zero. + * @return int + */ + public static function DELTA($a, $b=0) { + $a = PHPExcel_Calculation_Functions::flattenSingleValue($a); + $b = PHPExcel_Calculation_Functions::flattenSingleValue($b); + + return (int) ($a == $b); + } // function DELTA() + + + /** + * GESTEP + * + * Excel Function: + * GESTEP(number[,step]) + * + * Returns 1 if number >= step; returns 0 (zero) otherwise + * Use this function to filter a set of values. For example, by summing several GESTEP + * functions you calculate the count of values that exceed a threshold. + * + * @param float $number The value to test against step. + * @param float $step The threshold value. + * If you omit a value for step, GESTEP uses zero. + * @return int + */ + public static function GESTEP($number, $step=0) { + $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); + $step = PHPExcel_Calculation_Functions::flattenSingleValue($step); + + return (int) ($number >= $step); + } // function GESTEP() + + + // + // Private method to calculate the erf value + // + private static $_two_sqrtpi = 1.128379167095512574; + + public static function _erfVal($x) { + if (abs($x) > 2.2) { + return 1 - self::_erfcVal($x); + } + $sum = $term = $x; + $xsqr = ($x * $x); + $j = 1; + do { + $term *= $xsqr / $j; + $sum -= $term / (2 * $j + 1); + ++$j; + $term *= $xsqr / $j; + $sum += $term / (2 * $j + 1); + ++$j; + if ($sum == 0.0) { + break; + } + } while (abs($term / $sum) > PRECISION); + return self::$_two_sqrtpi * $sum; + } // function _erfVal() + + + /** + * ERF + * + * Returns the error function integrated between the lower and upper bound arguments. + * + * Note: In Excel 2007 or earlier, if you input a negative value for the upper or lower bound arguments, + * the function would return a #NUM! error. However, in Excel 2010, the function algorithm was + * improved, so that it can now calculate the function for both positive and negative ranges. + * PHPExcel follows Excel 2010 behaviour, and accepts nagative arguments. + * + * Excel Function: + * ERF(lower[,upper]) + * + * @param float $lower lower bound for integrating ERF + * @param float $upper upper bound for integrating ERF. + * If omitted, ERF integrates between zero and lower_limit + * @return float + */ + public static function ERF($lower, $upper = NULL) { + $lower = PHPExcel_Calculation_Functions::flattenSingleValue($lower); + $upper = PHPExcel_Calculation_Functions::flattenSingleValue($upper); + + if (is_numeric($lower)) { + if (is_null($upper)) { + return self::_erfVal($lower); + } + if (is_numeric($upper)) { + return self::_erfVal($upper) - self::_erfVal($lower); + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function ERF() + + + // + // Private method to calculate the erfc value + // + private static $_one_sqrtpi = 0.564189583547756287; + + private static function _erfcVal($x) { + if (abs($x) < 2.2) { + return 1 - self::_erfVal($x); + } + if ($x < 0) { + return 2 - self::ERFC(-$x); + } + $a = $n = 1; + $b = $c = $x; + $d = ($x * $x) + 0.5; + $q1 = $q2 = $b / $d; + $t = 0; + do { + $t = $a * $n + $b * $x; + $a = $b; + $b = $t; + $t = $c * $n + $d * $x; + $c = $d; + $d = $t; + $n += 0.5; + $q1 = $q2; + $q2 = $b / $d; + } while ((abs($q1 - $q2) / $q2) > PRECISION); + return self::$_one_sqrtpi * exp(-$x * $x) * $q2; + } // function _erfcVal() + + + /** + * ERFC + * + * Returns the complementary ERF function integrated between x and infinity + * + * Note: In Excel 2007 or earlier, if you input a negative value for the lower bound argument, + * the function would return a #NUM! error. However, in Excel 2010, the function algorithm was + * improved, so that it can now calculate the function for both positive and negative x values. + * PHPExcel follows Excel 2010 behaviour, and accepts nagative arguments. + * + * Excel Function: + * ERFC(x) + * + * @param float $x The lower bound for integrating ERFC + * @return float + */ + public static function ERFC($x) { + $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); + + if (is_numeric($x)) { + return self::_erfcVal($x); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function ERFC() + + + /** + * getConversionGroups + * Returns a list of the different conversion groups for UOM conversions + * + * @return array + */ + public static function getConversionGroups() { + $conversionGroups = array(); + foreach(self::$_conversionUnits as $conversionUnit) { + $conversionGroups[] = $conversionUnit['Group']; + } + return array_merge(array_unique($conversionGroups)); + } // function getConversionGroups() + + + /** + * getConversionGroupUnits + * Returns an array of units of measure, for a specified conversion group, or for all groups + * + * @param string $group The group whose units of measure you want to retrieve + * @return array + */ + public static function getConversionGroupUnits($group = NULL) { + $conversionGroups = array(); + foreach(self::$_conversionUnits as $conversionUnit => $conversionGroup) { + if ((is_null($group)) || ($conversionGroup['Group'] == $group)) { + $conversionGroups[$conversionGroup['Group']][] = $conversionUnit; + } + } + return $conversionGroups; + } // function getConversionGroupUnits() + + + /** + * getConversionGroupUnitDetails + * + * @param string $group The group whose units of measure you want to retrieve + * @return array + */ + public static function getConversionGroupUnitDetails($group = NULL) { + $conversionGroups = array(); + foreach(self::$_conversionUnits as $conversionUnit => $conversionGroup) { + if ((is_null($group)) || ($conversionGroup['Group'] == $group)) { + $conversionGroups[$conversionGroup['Group']][] = array( 'unit' => $conversionUnit, + 'description' => $conversionGroup['Unit Name'] + ); + } + } + return $conversionGroups; + } // function getConversionGroupUnitDetails() + + + /** + * getConversionMultipliers + * Returns an array of the Multiplier prefixes that can be used with Units of Measure in CONVERTUOM() + * + * @return array of mixed + */ + public static function getConversionMultipliers() { + return self::$_conversionMultipliers; + } // function getConversionGroups() + + + /** + * CONVERTUOM + * + * Converts a number from one measurement system to another. + * For example, CONVERT can translate a table of distances in miles to a table of distances + * in kilometers. + * + * Excel Function: + * CONVERT(value,fromUOM,toUOM) + * + * @param float $value The value in fromUOM to convert. + * @param string $fromUOM The units for value. + * @param string $toUOM The units for the result. + * + * @return float + */ + public static function CONVERTUOM($value, $fromUOM, $toUOM) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $fromUOM = PHPExcel_Calculation_Functions::flattenSingleValue($fromUOM); + $toUOM = PHPExcel_Calculation_Functions::flattenSingleValue($toUOM); + + if (!is_numeric($value)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $fromMultiplier = 1.0; + if (isset(self::$_conversionUnits[$fromUOM])) { + $unitGroup1 = self::$_conversionUnits[$fromUOM]['Group']; + } else { + $fromMultiplier = substr($fromUOM,0,1); + $fromUOM = substr($fromUOM,1); + if (isset(self::$_conversionMultipliers[$fromMultiplier])) { + $fromMultiplier = self::$_conversionMultipliers[$fromMultiplier]['multiplier']; + } else { + return PHPExcel_Calculation_Functions::NA(); + } + if ((isset(self::$_conversionUnits[$fromUOM])) && (self::$_conversionUnits[$fromUOM]['AllowPrefix'])) { + $unitGroup1 = self::$_conversionUnits[$fromUOM]['Group']; + } else { + return PHPExcel_Calculation_Functions::NA(); + } + } + $value *= $fromMultiplier; + + $toMultiplier = 1.0; + if (isset(self::$_conversionUnits[$toUOM])) { + $unitGroup2 = self::$_conversionUnits[$toUOM]['Group']; + } else { + $toMultiplier = substr($toUOM,0,1); + $toUOM = substr($toUOM,1); + if (isset(self::$_conversionMultipliers[$toMultiplier])) { + $toMultiplier = self::$_conversionMultipliers[$toMultiplier]['multiplier']; + } else { + return PHPExcel_Calculation_Functions::NA(); + } + if ((isset(self::$_conversionUnits[$toUOM])) && (self::$_conversionUnits[$toUOM]['AllowPrefix'])) { + $unitGroup2 = self::$_conversionUnits[$toUOM]['Group']; + } else { + return PHPExcel_Calculation_Functions::NA(); + } + } + if ($unitGroup1 != $unitGroup2) { + return PHPExcel_Calculation_Functions::NA(); + } + + if (($fromUOM == $toUOM) && ($fromMultiplier == $toMultiplier)) { + // We've already factored $fromMultiplier into the value, so we need + // to reverse it again + return $value / $fromMultiplier; + } elseif ($unitGroup1 == 'Temperature') { + if (($fromUOM == 'F') || ($fromUOM == 'fah')) { + if (($toUOM == 'F') || ($toUOM == 'fah')) { + return $value; + } else { + $value = (($value - 32) / 1.8); + if (($toUOM == 'K') || ($toUOM == 'kel')) { + $value += 273.15; + } + return $value; + } + } elseif ((($fromUOM == 'K') || ($fromUOM == 'kel')) && + (($toUOM == 'K') || ($toUOM == 'kel'))) { + return $value; + } elseif ((($fromUOM == 'C') || ($fromUOM == 'cel')) && + (($toUOM == 'C') || ($toUOM == 'cel'))) { + return $value; + } + if (($toUOM == 'F') || ($toUOM == 'fah')) { + if (($fromUOM == 'K') || ($fromUOM == 'kel')) { + $value -= 273.15; + } + return ($value * 1.8) + 32; + } + if (($toUOM == 'C') || ($toUOM == 'cel')) { + return $value - 273.15; + } + return $value + 273.15; + } + return ($value * self::$_unitConversions[$unitGroup1][$fromUOM][$toUOM]) / $toMultiplier; + } // function CONVERTUOM() + +} // class PHPExcel_Calculation_Engineering diff --git a/admin/helpers/PHPExcel/Calculation/Exception.php b/admin/helpers/PHPExcel/Calculation/Exception.php new file mode 100644 index 00000000..2ddf666d --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/Exception.php @@ -0,0 +1,52 @@ +line = $line; + $e->file = $file; + throw $e; + } +} diff --git a/admin/helpers/PHPExcel/Calculation/ExceptionHandler.php b/admin/helpers/PHPExcel/Calculation/ExceptionHandler.php new file mode 100644 index 00000000..41c42d7a --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/ExceptionHandler.php @@ -0,0 +1,49 @@ +format('d') == $testDate->format('t')); + } // function _lastDayOfMonth() + + + /** + * _firstDayOfMonth + * + * Returns a boolean TRUE/FALSE indicating if this date is the first date of the month + * + * @param DateTime $testDate The date for testing + * @return boolean + */ + private static function _firstDayOfMonth($testDate) + { + return ($testDate->format('d') == 1); + } // function _firstDayOfMonth() + + + private static function _coupFirstPeriodDate($settlement, $maturity, $frequency, $next) + { + $months = 12 / $frequency; + + $result = PHPExcel_Shared_Date::ExcelToPHPObject($maturity); + $eom = self::_lastDayOfMonth($result); + + while ($settlement < PHPExcel_Shared_Date::PHPToExcel($result)) { + $result->modify('-'.$months.' months'); + } + if ($next) { + $result->modify('+'.$months.' months'); + } + + if ($eom) { + $result->modify('-1 day'); + } + + return PHPExcel_Shared_Date::PHPToExcel($result); + } // function _coupFirstPeriodDate() + + + private static function _validFrequency($frequency) + { + if (($frequency == 1) || ($frequency == 2) || ($frequency == 4)) { + return true; + } + if ((PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) && + (($frequency == 6) || ($frequency == 12))) { + return true; + } + return false; + } // function _validFrequency() + + + /** + * _daysPerYear + * + * Returns the number of days in a specified year, as defined by the "basis" value + * + * @param integer $year The year against which we're testing + * @param integer $basis The type of day count: + * 0 or omitted US (NASD) 360 + * 1 Actual (365 or 366 in a leap year) + * 2 360 + * 3 365 + * 4 European 360 + * @return integer + */ + private static function _daysPerYear($year, $basis=0) + { + switch ($basis) { + case 0 : + case 2 : + case 4 : + $daysPerYear = 360; + break; + case 3 : + $daysPerYear = 365; + break; + case 1 : + $daysPerYear = (PHPExcel_Calculation_DateTime::_isLeapYear($year)) ? 366 : 365; + break; + default : + return PHPExcel_Calculation_Functions::NaN(); + } + return $daysPerYear; + } // function _daysPerYear() + + + private static function _interestAndPrincipal($rate=0, $per=0, $nper=0, $pv=0, $fv=0, $type=0) + { + $pmt = self::PMT($rate, $nper, $pv, $fv, $type); + $capital = $pv; + for ($i = 1; $i<= $per; ++$i) { + $interest = ($type && $i == 1) ? 0 : -$capital * $rate; + $principal = $pmt - $interest; + $capital += $principal; + } + return array($interest, $principal); + } // function _interestAndPrincipal() + + + /** + * ACCRINT + * + * Returns the accrued interest for a security that pays periodic interest. + * + * Excel Function: + * ACCRINT(issue,firstinterest,settlement,rate,par,frequency[,basis]) + * + * @access public + * @category Financial Functions + * @param mixed $issue The security's issue date. + * @param mixed $firstinterest The security's first interest date. + * @param mixed $settlement The security's settlement date. + * The security settlement date is the date after the issue date + * when the security is traded to the buyer. + * @param float $rate The security's annual coupon rate. + * @param float $par The security's par value. + * If you omit par, ACCRINT uses $1,000. + * @param integer $frequency the number of coupon payments per year. + * Valid frequency values are: + * 1 Annual + * 2 Semi-Annual + * 4 Quarterly + * If working in Gnumeric Mode, the following frequency options are + * also available + * 6 Bimonthly + * 12 Monthly + * @param integer $basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return float + */ + public static function ACCRINT($issue, $firstinterest, $settlement, $rate, $par=1000, $frequency=1, $basis=0) + { + $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue); + $firstinterest = PHPExcel_Calculation_Functions::flattenSingleValue($firstinterest); + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); + $par = (is_null($par)) ? 1000 : PHPExcel_Calculation_Functions::flattenSingleValue($par); + $frequency = (is_null($frequency)) ? 1 : PHPExcel_Calculation_Functions::flattenSingleValue($frequency); + $basis = (is_null($basis)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + // Validate + if ((is_numeric($rate)) && (is_numeric($par))) { + $rate = (float) $rate; + $par = (float) $par; + if (($rate <= 0) || ($par <= 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis); + if (!is_numeric($daysBetweenIssueAndSettlement)) { + // return date error + return $daysBetweenIssueAndSettlement; + } + + return $par * $rate * $daysBetweenIssueAndSettlement; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function ACCRINT() + + + /** + * ACCRINTM + * + * Returns the accrued interest for a security that pays interest at maturity. + * + * Excel Function: + * ACCRINTM(issue,settlement,rate[,par[,basis]]) + * + * @access public + * @category Financial Functions + * @param mixed issue The security's issue date. + * @param mixed settlement The security's settlement (or maturity) date. + * @param float rate The security's annual coupon rate. + * @param float par The security's par value. + * If you omit par, ACCRINT uses $1,000. + * @param integer basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return float + */ + public static function ACCRINTM($issue, $settlement, $rate, $par=1000, $basis=0) { + $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue); + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); + $par = (is_null($par)) ? 1000 : PHPExcel_Calculation_Functions::flattenSingleValue($par); + $basis = (is_null($basis)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + // Validate + if ((is_numeric($rate)) && (is_numeric($par))) { + $rate = (float) $rate; + $par = (float) $par; + if (($rate <= 0) || ($par <= 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis); + if (!is_numeric($daysBetweenIssueAndSettlement)) { + // return date error + return $daysBetweenIssueAndSettlement; + } + return $par * $rate * $daysBetweenIssueAndSettlement; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function ACCRINTM() + + + /** + * AMORDEGRC + * + * Returns the depreciation for each accounting period. + * This function is provided for the French accounting system. If an asset is purchased in + * the middle of the accounting period, the prorated depreciation is taken into account. + * The function is similar to AMORLINC, except that a depreciation coefficient is applied in + * the calculation depending on the life of the assets. + * This function will return the depreciation until the last period of the life of the assets + * or until the cumulated value of depreciation is greater than the cost of the assets minus + * the salvage value. + * + * Excel Function: + * AMORDEGRC(cost,purchased,firstPeriod,salvage,period,rate[,basis]) + * + * @access public + * @category Financial Functions + * @param float cost The cost of the asset. + * @param mixed purchased Date of the purchase of the asset. + * @param mixed firstPeriod Date of the end of the first period. + * @param mixed salvage The salvage value at the end of the life of the asset. + * @param float period The period. + * @param float rate Rate of depreciation. + * @param integer basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return float + */ + public static function AMORDEGRC($cost, $purchased, $firstPeriod, $salvage, $period, $rate, $basis=0) { + $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost); + $purchased = PHPExcel_Calculation_Functions::flattenSingleValue($purchased); + $firstPeriod = PHPExcel_Calculation_Functions::flattenSingleValue($firstPeriod); + $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage); + $period = floor(PHPExcel_Calculation_Functions::flattenSingleValue($period)); + $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); + $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + // The depreciation coefficients are: + // Life of assets (1/rate) Depreciation coefficient + // Less than 3 years 1 + // Between 3 and 4 years 1.5 + // Between 5 and 6 years 2 + // More than 6 years 2.5 + $fUsePer = 1.0 / $rate; + if ($fUsePer < 3.0) { + $amortiseCoeff = 1.0; + } elseif ($fUsePer < 5.0) { + $amortiseCoeff = 1.5; + } elseif ($fUsePer <= 6.0) { + $amortiseCoeff = 2.0; + } else { + $amortiseCoeff = 2.5; + } + + $rate *= $amortiseCoeff; + $fNRate = round(PHPExcel_Calculation_DateTime::YEARFRAC($purchased, $firstPeriod, $basis) * $rate * $cost,0); + $cost -= $fNRate; + $fRest = $cost - $salvage; + + for ($n = 0; $n < $period; ++$n) { + $fNRate = round($rate * $cost,0); + $fRest -= $fNRate; + + if ($fRest < 0.0) { + switch ($period - $n) { + case 0 : + case 1 : return round($cost * 0.5, 0); + break; + default : return 0.0; + break; + } + } + $cost -= $fNRate; + } + return $fNRate; + } // function AMORDEGRC() + + + /** + * AMORLINC + * + * Returns the depreciation for each accounting period. + * This function is provided for the French accounting system. If an asset is purchased in + * the middle of the accounting period, the prorated depreciation is taken into account. + * + * Excel Function: + * AMORLINC(cost,purchased,firstPeriod,salvage,period,rate[,basis]) + * + * @access public + * @category Financial Functions + * @param float cost The cost of the asset. + * @param mixed purchased Date of the purchase of the asset. + * @param mixed firstPeriod Date of the end of the first period. + * @param mixed salvage The salvage value at the end of the life of the asset. + * @param float period The period. + * @param float rate Rate of depreciation. + * @param integer basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return float + */ + public static function AMORLINC($cost, $purchased, $firstPeriod, $salvage, $period, $rate, $basis=0) { + $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost); + $purchased = PHPExcel_Calculation_Functions::flattenSingleValue($purchased); + $firstPeriod = PHPExcel_Calculation_Functions::flattenSingleValue($firstPeriod); + $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage); + $period = PHPExcel_Calculation_Functions::flattenSingleValue($period); + $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); + $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + $fOneRate = $cost * $rate; + $fCostDelta = $cost - $salvage; + // Note, quirky variation for leap years on the YEARFRAC for this function + $purchasedYear = PHPExcel_Calculation_DateTime::YEAR($purchased); + $yearFrac = PHPExcel_Calculation_DateTime::YEARFRAC($purchased, $firstPeriod, $basis); + + if (($basis == 1) && ($yearFrac < 1) && (PHPExcel_Calculation_DateTime::_isLeapYear($purchasedYear))) { + $yearFrac *= 365 / 366; + } + + $f0Rate = $yearFrac * $rate * $cost; + $nNumOfFullPeriods = intval(($cost - $salvage - $f0Rate) / $fOneRate); + + if ($period == 0) { + return $f0Rate; + } elseif ($period <= $nNumOfFullPeriods) { + return $fOneRate; + } elseif ($period == ($nNumOfFullPeriods + 1)) { + return ($fCostDelta - $fOneRate * $nNumOfFullPeriods - $f0Rate); + } else { + return 0.0; + } + } // function AMORLINC() + + + /** + * COUPDAYBS + * + * Returns the number of days from the beginning of the coupon period to the settlement date. + * + * Excel Function: + * COUPDAYBS(settlement,maturity,frequency[,basis]) + * + * @access public + * @category Financial Functions + * @param mixed settlement The security's settlement date. + * The security settlement date is the date after the issue + * date when the security is traded to the buyer. + * @param mixed maturity The security's maturity date. + * The maturity date is the date when the security expires. + * @param mixed frequency the number of coupon payments per year. + * Valid frequency values are: + * 1 Annual + * 2 Semi-Annual + * 4 Quarterly + * If working in Gnumeric Mode, the following frequency options are + * also available + * 6 Bimonthly + * 12 Monthly + * @param integer basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return float + */ + public static function COUPDAYBS($settlement, $maturity, $frequency, $basis=0) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency); + $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (($settlement > $maturity) || + (!self::_validFrequency($frequency)) || + (($basis < 0) || ($basis > 4))) { + return PHPExcel_Calculation_Functions::NaN(); + } + + $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement),$basis); + $prev = self::_coupFirstPeriodDate($settlement, $maturity, $frequency, False); + + return PHPExcel_Calculation_DateTime::YEARFRAC($prev, $settlement, $basis) * $daysPerYear; + } // function COUPDAYBS() + + + /** + * COUPDAYS + * + * Returns the number of days in the coupon period that contains the settlement date. + * + * Excel Function: + * COUPDAYS(settlement,maturity,frequency[,basis]) + * + * @access public + * @category Financial Functions + * @param mixed settlement The security's settlement date. + * The security settlement date is the date after the issue + * date when the security is traded to the buyer. + * @param mixed maturity The security's maturity date. + * The maturity date is the date when the security expires. + * @param mixed frequency the number of coupon payments per year. + * Valid frequency values are: + * 1 Annual + * 2 Semi-Annual + * 4 Quarterly + * If working in Gnumeric Mode, the following frequency options are + * also available + * 6 Bimonthly + * 12 Monthly + * @param integer basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return float + */ + public static function COUPDAYS($settlement, $maturity, $frequency, $basis=0) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency); + $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (($settlement > $maturity) || + (!self::_validFrequency($frequency)) || + (($basis < 0) || ($basis > 4))) { + return PHPExcel_Calculation_Functions::NaN(); + } + + switch ($basis) { + case 3: // Actual/365 + return 365 / $frequency; + case 1: // Actual/actual + if ($frequency == 1) { + $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($maturity),$basis); + return ($daysPerYear / $frequency); + } else { + $prev = self::_coupFirstPeriodDate($settlement, $maturity, $frequency, False); + $next = self::_coupFirstPeriodDate($settlement, $maturity, $frequency, True); + return ($next - $prev); + } + default: // US (NASD) 30/360, Actual/360 or European 30/360 + return 360 / $frequency; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function COUPDAYS() + + + /** + * COUPDAYSNC + * + * Returns the number of days from the settlement date to the next coupon date. + * + * Excel Function: + * COUPDAYSNC(settlement,maturity,frequency[,basis]) + * + * @access public + * @category Financial Functions + * @param mixed settlement The security's settlement date. + * The security settlement date is the date after the issue + * date when the security is traded to the buyer. + * @param mixed maturity The security's maturity date. + * The maturity date is the date when the security expires. + * @param mixed frequency the number of coupon payments per year. + * Valid frequency values are: + * 1 Annual + * 2 Semi-Annual + * 4 Quarterly + * If working in Gnumeric Mode, the following frequency options are + * also available + * 6 Bimonthly + * 12 Monthly + * @param integer basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return float + */ + public static function COUPDAYSNC($settlement, $maturity, $frequency, $basis=0) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency); + $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (($settlement > $maturity) || + (!self::_validFrequency($frequency)) || + (($basis < 0) || ($basis > 4))) { + return PHPExcel_Calculation_Functions::NaN(); + } + + $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement),$basis); + $next = self::_coupFirstPeriodDate($settlement, $maturity, $frequency, True); + + return PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $next, $basis) * $daysPerYear; + } // function COUPDAYSNC() + + + /** + * COUPNCD + * + * Returns the next coupon date after the settlement date. + * + * Excel Function: + * COUPNCD(settlement,maturity,frequency[,basis]) + * + * @access public + * @category Financial Functions + * @param mixed settlement The security's settlement date. + * The security settlement date is the date after the issue + * date when the security is traded to the buyer. + * @param mixed maturity The security's maturity date. + * The maturity date is the date when the security expires. + * @param mixed frequency the number of coupon payments per year. + * Valid frequency values are: + * 1 Annual + * 2 Semi-Annual + * 4 Quarterly + * If working in Gnumeric Mode, the following frequency options are + * also available + * 6 Bimonthly + * 12 Monthly + * @param integer basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, + * depending on the value of the ReturnDateType flag + */ + public static function COUPNCD($settlement, $maturity, $frequency, $basis=0) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency); + $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (($settlement > $maturity) || + (!self::_validFrequency($frequency)) || + (($basis < 0) || ($basis > 4))) { + return PHPExcel_Calculation_Functions::NaN(); + } + + return self::_coupFirstPeriodDate($settlement, $maturity, $frequency, True); + } // function COUPNCD() + + + /** + * COUPNUM + * + * Returns the number of coupons payable between the settlement date and maturity date, + * rounded up to the nearest whole coupon. + * + * Excel Function: + * COUPNUM(settlement,maturity,frequency[,basis]) + * + * @access public + * @category Financial Functions + * @param mixed settlement The security's settlement date. + * The security settlement date is the date after the issue + * date when the security is traded to the buyer. + * @param mixed maturity The security's maturity date. + * The maturity date is the date when the security expires. + * @param mixed frequency the number of coupon payments per year. + * Valid frequency values are: + * 1 Annual + * 2 Semi-Annual + * 4 Quarterly + * If working in Gnumeric Mode, the following frequency options are + * also available + * 6 Bimonthly + * 12 Monthly + * @param integer basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return integer + */ + public static function COUPNUM($settlement, $maturity, $frequency, $basis=0) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency); + $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (($settlement > $maturity) || + (!self::_validFrequency($frequency)) || + (($basis < 0) || ($basis > 4))) { + return PHPExcel_Calculation_Functions::NaN(); + } + + $settlement = self::_coupFirstPeriodDate($settlement, $maturity, $frequency, True); + $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis) * 365; + + switch ($frequency) { + case 1: // annual payments + return ceil($daysBetweenSettlementAndMaturity / 360); + case 2: // half-yearly + return ceil($daysBetweenSettlementAndMaturity / 180); + case 4: // quarterly + return ceil($daysBetweenSettlementAndMaturity / 90); + case 6: // bimonthly + return ceil($daysBetweenSettlementAndMaturity / 60); + case 12: // monthly + return ceil($daysBetweenSettlementAndMaturity / 30); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function COUPNUM() + + + /** + * COUPPCD + * + * Returns the previous coupon date before the settlement date. + * + * Excel Function: + * COUPPCD(settlement,maturity,frequency[,basis]) + * + * @access public + * @category Financial Functions + * @param mixed settlement The security's settlement date. + * The security settlement date is the date after the issue + * date when the security is traded to the buyer. + * @param mixed maturity The security's maturity date. + * The maturity date is the date when the security expires. + * @param mixed frequency the number of coupon payments per year. + * Valid frequency values are: + * 1 Annual + * 2 Semi-Annual + * 4 Quarterly + * If working in Gnumeric Mode, the following frequency options are + * also available + * 6 Bimonthly + * 12 Monthly + * @param integer basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, + * depending on the value of the ReturnDateType flag + */ + public static function COUPPCD($settlement, $maturity, $frequency, $basis=0) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency); + $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (($settlement > $maturity) || + (!self::_validFrequency($frequency)) || + (($basis < 0) || ($basis > 4))) { + return PHPExcel_Calculation_Functions::NaN(); + } + + return self::_coupFirstPeriodDate($settlement, $maturity, $frequency, False); + } // function COUPPCD() + + + /** + * CUMIPMT + * + * Returns the cumulative interest paid on a loan between the start and end periods. + * + * Excel Function: + * CUMIPMT(rate,nper,pv,start,end[,type]) + * + * @access public + * @category Financial Functions + * @param float $rate The Interest rate + * @param integer $nper The total number of payment periods + * @param float $pv Present Value + * @param integer $start The first period in the calculation. + * Payment periods are numbered beginning with 1. + * @param integer $end The last period in the calculation. + * @param integer $type A number 0 or 1 and indicates when payments are due: + * 0 or omitted At the end of the period. + * 1 At the beginning of the period. + * @return float + */ + public static function CUMIPMT($rate, $nper, $pv, $start, $end, $type = 0) { + $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); + $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper); + $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); + $start = (int) PHPExcel_Calculation_Functions::flattenSingleValue($start); + $end = (int) PHPExcel_Calculation_Functions::flattenSingleValue($end); + $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type); + + // Validate parameters + if ($type != 0 && $type != 1) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ($start < 1 || $start > $end) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + // Calculate + $interest = 0; + for ($per = $start; $per <= $end; ++$per) { + $interest += self::IPMT($rate, $per, $nper, $pv, 0, $type); + } + + return $interest; + } // function CUMIPMT() + + + /** + * CUMPRINC + * + * Returns the cumulative principal paid on a loan between the start and end periods. + * + * Excel Function: + * CUMPRINC(rate,nper,pv,start,end[,type]) + * + * @access public + * @category Financial Functions + * @param float $rate The Interest rate + * @param integer $nper The total number of payment periods + * @param float $pv Present Value + * @param integer $start The first period in the calculation. + * Payment periods are numbered beginning with 1. + * @param integer $end The last period in the calculation. + * @param integer $type A number 0 or 1 and indicates when payments are due: + * 0 or omitted At the end of the period. + * 1 At the beginning of the period. + * @return float + */ + public static function CUMPRINC($rate, $nper, $pv, $start, $end, $type = 0) { + $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); + $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper); + $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); + $start = (int) PHPExcel_Calculation_Functions::flattenSingleValue($start); + $end = (int) PHPExcel_Calculation_Functions::flattenSingleValue($end); + $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type); + + // Validate parameters + if ($type != 0 && $type != 1) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ($start < 1 || $start > $end) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + // Calculate + $principal = 0; + for ($per = $start; $per <= $end; ++$per) { + $principal += self::PPMT($rate, $per, $nper, $pv, 0, $type); + } + + return $principal; + } // function CUMPRINC() + + + /** + * DB + * + * Returns the depreciation of an asset for a specified period using the + * fixed-declining balance method. + * This form of depreciation is used if you want to get a higher depreciation value + * at the beginning of the depreciation (as opposed to linear depreciation). The + * depreciation value is reduced with every depreciation period by the depreciation + * already deducted from the initial cost. + * + * Excel Function: + * DB(cost,salvage,life,period[,month]) + * + * @access public + * @category Financial Functions + * @param float cost Initial cost of the asset. + * @param float salvage Value at the end of the depreciation. + * (Sometimes called the salvage value of the asset) + * @param integer life Number of periods over which the asset is depreciated. + * (Sometimes called the useful life of the asset) + * @param integer period The period for which you want to calculate the + * depreciation. Period must use the same units as life. + * @param integer month Number of months in the first year. If month is omitted, + * it defaults to 12. + * @return float + */ + public static function DB($cost, $salvage, $life, $period, $month=12) { + $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost); + $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage); + $life = PHPExcel_Calculation_Functions::flattenSingleValue($life); + $period = PHPExcel_Calculation_Functions::flattenSingleValue($period); + $month = PHPExcel_Calculation_Functions::flattenSingleValue($month); + + // Validate + if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period)) && (is_numeric($month))) { + $cost = (float) $cost; + $salvage = (float) $salvage; + $life = (int) $life; + $period = (int) $period; + $month = (int) $month; + if ($cost == 0) { + return 0.0; + } elseif (($cost < 0) || (($salvage / $cost) < 0) || ($life <= 0) || ($period < 1) || ($month < 1)) { + return PHPExcel_Calculation_Functions::NaN(); + } + // Set Fixed Depreciation Rate + $fixedDepreciationRate = 1 - pow(($salvage / $cost), (1 / $life)); + $fixedDepreciationRate = round($fixedDepreciationRate, 3); + + // Loop through each period calculating the depreciation + $previousDepreciation = 0; + for ($per = 1; $per <= $period; ++$per) { + if ($per == 1) { + $depreciation = $cost * $fixedDepreciationRate * $month / 12; + } elseif ($per == ($life + 1)) { + $depreciation = ($cost - $previousDepreciation) * $fixedDepreciationRate * (12 - $month) / 12; + } else { + $depreciation = ($cost - $previousDepreciation) * $fixedDepreciationRate; + } + $previousDepreciation += $depreciation; + } + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { + $depreciation = round($depreciation,2); + } + return $depreciation; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function DB() + + + /** + * DDB + * + * Returns the depreciation of an asset for a specified period using the + * double-declining balance method or some other method you specify. + * + * Excel Function: + * DDB(cost,salvage,life,period[,factor]) + * + * @access public + * @category Financial Functions + * @param float cost Initial cost of the asset. + * @param float salvage Value at the end of the depreciation. + * (Sometimes called the salvage value of the asset) + * @param integer life Number of periods over which the asset is depreciated. + * (Sometimes called the useful life of the asset) + * @param integer period The period for which you want to calculate the + * depreciation. Period must use the same units as life. + * @param float factor The rate at which the balance declines. + * If factor is omitted, it is assumed to be 2 (the + * double-declining balance method). + * @return float + */ + public static function DDB($cost, $salvage, $life, $period, $factor=2.0) { + $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost); + $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage); + $life = PHPExcel_Calculation_Functions::flattenSingleValue($life); + $period = PHPExcel_Calculation_Functions::flattenSingleValue($period); + $factor = PHPExcel_Calculation_Functions::flattenSingleValue($factor); + + // Validate + if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period)) && (is_numeric($factor))) { + $cost = (float) $cost; + $salvage = (float) $salvage; + $life = (int) $life; + $period = (int) $period; + $factor = (float) $factor; + if (($cost <= 0) || (($salvage / $cost) < 0) || ($life <= 0) || ($period < 1) || ($factor <= 0.0) || ($period > $life)) { + return PHPExcel_Calculation_Functions::NaN(); + } + // Set Fixed Depreciation Rate + $fixedDepreciationRate = 1 - pow(($salvage / $cost), (1 / $life)); + $fixedDepreciationRate = round($fixedDepreciationRate, 3); + + // Loop through each period calculating the depreciation + $previousDepreciation = 0; + for ($per = 1; $per <= $period; ++$per) { + $depreciation = min( ($cost - $previousDepreciation) * ($factor / $life), ($cost - $salvage - $previousDepreciation) ); + $previousDepreciation += $depreciation; + } + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { + $depreciation = round($depreciation,2); + } + return $depreciation; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function DDB() + + + /** + * DISC + * + * Returns the discount rate for a security. + * + * Excel Function: + * DISC(settlement,maturity,price,redemption[,basis]) + * + * @access public + * @category Financial Functions + * @param mixed settlement The security's settlement date. + * The security settlement date is the date after the issue + * date when the security is traded to the buyer. + * @param mixed maturity The security's maturity date. + * The maturity date is the date when the security expires. + * @param integer price The security's price per $100 face value. + * @param integer redemption The security's redemption value per $100 face value. + * @param integer basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return float + */ + public static function DISC($settlement, $maturity, $price, $redemption, $basis=0) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $price = PHPExcel_Calculation_Functions::flattenSingleValue($price); + $redemption = PHPExcel_Calculation_Functions::flattenSingleValue($redemption); + $basis = PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + // Validate + if ((is_numeric($price)) && (is_numeric($redemption)) && (is_numeric($basis))) { + $price = (float) $price; + $redemption = (float) $redemption; + $basis = (int) $basis; + if (($price <= 0) || ($redemption <= 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis); + if (!is_numeric($daysBetweenSettlementAndMaturity)) { + // return date error + return $daysBetweenSettlementAndMaturity; + } + + return ((1 - $price / $redemption) / $daysBetweenSettlementAndMaturity); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function DISC() + + + /** + * DOLLARDE + * + * Converts a dollar price expressed as an integer part and a fraction + * part into a dollar price expressed as a decimal number. + * Fractional dollar numbers are sometimes used for security prices. + * + * Excel Function: + * DOLLARDE(fractional_dollar,fraction) + * + * @access public + * @category Financial Functions + * @param float $fractional_dollar Fractional Dollar + * @param integer $fraction Fraction + * @return float + */ + public static function DOLLARDE($fractional_dollar = Null, $fraction = 0) { + $fractional_dollar = PHPExcel_Calculation_Functions::flattenSingleValue($fractional_dollar); + $fraction = (int)PHPExcel_Calculation_Functions::flattenSingleValue($fraction); + + // Validate parameters + if (is_null($fractional_dollar) || $fraction < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ($fraction == 0) { + return PHPExcel_Calculation_Functions::DIV0(); + } + + $dollars = floor($fractional_dollar); + $cents = fmod($fractional_dollar,1); + $cents /= $fraction; + $cents *= pow(10,ceil(log10($fraction))); + return $dollars + $cents; + } // function DOLLARDE() + + + /** + * DOLLARFR + * + * Converts a dollar price expressed as a decimal number into a dollar price + * expressed as a fraction. + * Fractional dollar numbers are sometimes used for security prices. + * + * Excel Function: + * DOLLARFR(decimal_dollar,fraction) + * + * @access public + * @category Financial Functions + * @param float $decimal_dollar Decimal Dollar + * @param integer $fraction Fraction + * @return float + */ + public static function DOLLARFR($decimal_dollar = Null, $fraction = 0) { + $decimal_dollar = PHPExcel_Calculation_Functions::flattenSingleValue($decimal_dollar); + $fraction = (int)PHPExcel_Calculation_Functions::flattenSingleValue($fraction); + + // Validate parameters + if (is_null($decimal_dollar) || $fraction < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ($fraction == 0) { + return PHPExcel_Calculation_Functions::DIV0(); + } + + $dollars = floor($decimal_dollar); + $cents = fmod($decimal_dollar,1); + $cents *= $fraction; + $cents *= pow(10,-ceil(log10($fraction))); + return $dollars + $cents; + } // function DOLLARFR() + + + /** + * EFFECT + * + * Returns the effective interest rate given the nominal rate and the number of + * compounding payments per year. + * + * Excel Function: + * EFFECT(nominal_rate,npery) + * + * @access public + * @category Financial Functions + * @param float $nominal_rate Nominal interest rate + * @param integer $npery Number of compounding payments per year + * @return float + */ + public static function EFFECT($nominal_rate = 0, $npery = 0) { + $nominal_rate = PHPExcel_Calculation_Functions::flattenSingleValue($nominal_rate); + $npery = (int)PHPExcel_Calculation_Functions::flattenSingleValue($npery); + + // Validate parameters + if ($nominal_rate <= 0 || $npery < 1) { + return PHPExcel_Calculation_Functions::NaN(); + } + + return pow((1 + $nominal_rate / $npery), $npery) - 1; + } // function EFFECT() + + + /** + * FV + * + * Returns the Future Value of a cash flow with constant payments and interest rate (annuities). + * + * Excel Function: + * FV(rate,nper,pmt[,pv[,type]]) + * + * @access public + * @category Financial Functions + * @param float $rate The interest rate per period + * @param int $nper Total number of payment periods in an annuity + * @param float $pmt The payment made each period: it cannot change over the + * life of the annuity. Typically, pmt contains principal + * and interest but no other fees or taxes. + * @param float $pv Present Value, or the lump-sum amount that a series of + * future payments is worth right now. + * @param integer $type A number 0 or 1 and indicates when payments are due: + * 0 or omitted At the end of the period. + * 1 At the beginning of the period. + * @return float + */ + public static function FV($rate = 0, $nper = 0, $pmt = 0, $pv = 0, $type = 0) { + $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); + $nper = PHPExcel_Calculation_Functions::flattenSingleValue($nper); + $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt); + $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); + $type = PHPExcel_Calculation_Functions::flattenSingleValue($type); + + // Validate parameters + if ($type != 0 && $type != 1) { + return PHPExcel_Calculation_Functions::NaN(); + } + + // Calculate + if (!is_null($rate) && $rate != 0) { + return -$pv * pow(1 + $rate, $nper) - $pmt * (1 + $rate * $type) * (pow(1 + $rate, $nper) - 1) / $rate; + } else { + return -$pv - $pmt * $nper; + } + } // function FV() + + + /** + * FVSCHEDULE + * + * Returns the future value of an initial principal after applying a series of compound interest rates. + * Use FVSCHEDULE to calculate the future value of an investment with a variable or adjustable rate. + * + * Excel Function: + * FVSCHEDULE(principal,schedule) + * + * @param float $principal The present value. + * @param float[] $schedule An array of interest rates to apply. + * @return float + */ + public static function FVSCHEDULE($principal, $schedule) { + $principal = PHPExcel_Calculation_Functions::flattenSingleValue($principal); + $schedule = PHPExcel_Calculation_Functions::flattenArray($schedule); + + foreach($schedule as $rate) { + $principal *= 1 + $rate; + } + + return $principal; + } // function FVSCHEDULE() + + + /** + * INTRATE + * + * Returns the interest rate for a fully invested security. + * + * Excel Function: + * INTRATE(settlement,maturity,investment,redemption[,basis]) + * + * @param mixed $settlement The security's settlement date. + * The security settlement date is the date after the issue date when the security is traded to the buyer. + * @param mixed $maturity The security's maturity date. + * The maturity date is the date when the security expires. + * @param integer $investment The amount invested in the security. + * @param integer $redemption The amount to be received at maturity. + * @param integer $basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return float + */ + public static function INTRATE($settlement, $maturity, $investment, $redemption, $basis=0) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $investment = PHPExcel_Calculation_Functions::flattenSingleValue($investment); + $redemption = PHPExcel_Calculation_Functions::flattenSingleValue($redemption); + $basis = PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + // Validate + if ((is_numeric($investment)) && (is_numeric($redemption)) && (is_numeric($basis))) { + $investment = (float) $investment; + $redemption = (float) $redemption; + $basis = (int) $basis; + if (($investment <= 0) || ($redemption <= 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis); + if (!is_numeric($daysBetweenSettlementAndMaturity)) { + // return date error + return $daysBetweenSettlementAndMaturity; + } + + return (($redemption / $investment) - 1) / ($daysBetweenSettlementAndMaturity); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function INTRATE() + + + /** + * IPMT + * + * Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate. + * + * Excel Function: + * IPMT(rate,per,nper,pv[,fv][,type]) + * + * @param float $rate Interest rate per period + * @param int $per Period for which we want to find the interest + * @param int $nper Number of periods + * @param float $pv Present Value + * @param float $fv Future Value + * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period + * @return float + */ + public static function IPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0) { + $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); + $per = (int) PHPExcel_Calculation_Functions::flattenSingleValue($per); + $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper); + $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); + $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv); + $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type); + + // Validate parameters + if ($type != 0 && $type != 1) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ($per <= 0 || $per > $nper) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + // Calculate + $interestAndPrincipal = self::_interestAndPrincipal($rate, $per, $nper, $pv, $fv, $type); + return $interestAndPrincipal[0]; + } // function IPMT() + + /** + * IRR + * + * Returns the internal rate of return for a series of cash flows represented by the numbers in values. + * These cash flows do not have to be even, as they would be for an annuity. However, the cash flows must occur + * at regular intervals, such as monthly or annually. The internal rate of return is the interest rate received + * for an investment consisting of payments (negative values) and income (positive values) that occur at regular + * periods. + * + * Excel Function: + * IRR(values[,guess]) + * + * @param float[] $values An array or a reference to cells that contain numbers for which you want + * to calculate the internal rate of return. + * Values must contain at least one positive value and one negative value to + * calculate the internal rate of return. + * @param float $guess A number that you guess is close to the result of IRR + * @return float + */ + public static function IRR($values, $guess = 0.1) { + if (!is_array($values)) return PHPExcel_Calculation_Functions::VALUE(); + $values = PHPExcel_Calculation_Functions::flattenArray($values); + $guess = PHPExcel_Calculation_Functions::flattenSingleValue($guess); + + // create an initial range, with a root somewhere between 0 and guess + $x1 = 0.0; + $x2 = $guess; + $f1 = self::NPV($x1, $values); + $f2 = self::NPV($x2, $values); + for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) { + if (($f1 * $f2) < 0.0) break; + if (abs($f1) < abs($f2)) { + $f1 = self::NPV($x1 += 1.6 * ($x1 - $x2), $values); + } else { + $f2 = self::NPV($x2 += 1.6 * ($x2 - $x1), $values); + } + } + if (($f1 * $f2) > 0.0) return PHPExcel_Calculation_Functions::VALUE(); + + $f = self::NPV($x1, $values); + if ($f < 0.0) { + $rtb = $x1; + $dx = $x2 - $x1; + } else { + $rtb = $x2; + $dx = $x1 - $x2; + } + + for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) { + $dx *= 0.5; + $x_mid = $rtb + $dx; + $f_mid = self::NPV($x_mid, $values); + if ($f_mid <= 0.0) + $rtb = $x_mid; + if ((abs($f_mid) < FINANCIAL_PRECISION) || (abs($dx) < FINANCIAL_PRECISION)) + return $x_mid; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function IRR() + + + /** + * ISPMT + * + * Returns the interest payment for an investment based on an interest rate and a constant payment schedule. + * + * Excel Function: + * =ISPMT(interest_rate, period, number_payments, PV) + * + * interest_rate is the interest rate for the investment + * + * period is the period to calculate the interest rate. It must be betweeen 1 and number_payments. + * + * number_payments is the number of payments for the annuity + * + * PV is the loan amount or present value of the payments + */ + public static function ISPMT() { + // Return value + $returnValue = 0; + + // Get the parameters + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + $interestRate = array_shift($aArgs); + $period = array_shift($aArgs); + $numberPeriods = array_shift($aArgs); + $principleRemaining = array_shift($aArgs); + + // Calculate + $principlePayment = ($principleRemaining * 1.0) / ($numberPeriods * 1.0); + for($i=0; $i <= $period; ++$i) { + $returnValue = $interestRate * $principleRemaining * -1; + $principleRemaining -= $principlePayment; + // principle needs to be 0 after the last payment, don't let floating point screw it up + if($i == $numberPeriods) { + $returnValue = 0; + } + } + return($returnValue); + } // function ISPMT() + + + /** + * MIRR + * + * Returns the modified internal rate of return for a series of periodic cash flows. MIRR considers both + * the cost of the investment and the interest received on reinvestment of cash. + * + * Excel Function: + * MIRR(values,finance_rate, reinvestment_rate) + * + * @param float[] $values An array or a reference to cells that contain a series of payments and + * income occurring at regular intervals. + * Payments are negative value, income is positive values. + * @param float $finance_rate The interest rate you pay on the money used in the cash flows + * @param float $reinvestment_rate The interest rate you receive on the cash flows as you reinvest them + * @return float + */ + public static function MIRR($values, $finance_rate, $reinvestment_rate) { + if (!is_array($values)) return PHPExcel_Calculation_Functions::VALUE(); + $values = PHPExcel_Calculation_Functions::flattenArray($values); + $finance_rate = PHPExcel_Calculation_Functions::flattenSingleValue($finance_rate); + $reinvestment_rate = PHPExcel_Calculation_Functions::flattenSingleValue($reinvestment_rate); + $n = count($values); + + $rr = 1.0 + $reinvestment_rate; + $fr = 1.0 + $finance_rate; + + $npv_pos = $npv_neg = 0.0; + foreach($values as $i => $v) { + if ($v >= 0) { + $npv_pos += $v / pow($rr, $i); + } else { + $npv_neg += $v / pow($fr, $i); + } + } + + if (($npv_neg == 0) || ($npv_pos == 0) || ($reinvestment_rate <= -1)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + $mirr = pow((-$npv_pos * pow($rr, $n)) + / ($npv_neg * ($rr)), (1.0 / ($n - 1))) - 1.0; + + return (is_finite($mirr) ? $mirr : PHPExcel_Calculation_Functions::VALUE()); + } // function MIRR() + + + /** + * NOMINAL + * + * Returns the nominal interest rate given the effective rate and the number of compounding payments per year. + * + * @param float $effect_rate Effective interest rate + * @param int $npery Number of compounding payments per year + * @return float + */ + public static function NOMINAL($effect_rate = 0, $npery = 0) { + $effect_rate = PHPExcel_Calculation_Functions::flattenSingleValue($effect_rate); + $npery = (int)PHPExcel_Calculation_Functions::flattenSingleValue($npery); + + // Validate parameters + if ($effect_rate <= 0 || $npery < 1) { + return PHPExcel_Calculation_Functions::NaN(); + } + + // Calculate + return $npery * (pow($effect_rate + 1, 1 / $npery) - 1); + } // function NOMINAL() + + + /** + * NPER + * + * Returns the number of periods for a cash flow with constant periodic payments (annuities), and interest rate. + * + * @param float $rate Interest rate per period + * @param int $pmt Periodic payment (annuity) + * @param float $pv Present Value + * @param float $fv Future Value + * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period + * @return float + */ + public static function NPER($rate = 0, $pmt = 0, $pv = 0, $fv = 0, $type = 0) { + $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); + $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt); + $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); + $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv); + $type = PHPExcel_Calculation_Functions::flattenSingleValue($type); + + // Validate parameters + if ($type != 0 && $type != 1) { + return PHPExcel_Calculation_Functions::NaN(); + } + + // Calculate + if (!is_null($rate) && $rate != 0) { + if ($pmt == 0 && $pv == 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + return log(($pmt * (1 + $rate * $type) / $rate - $fv) / ($pv + $pmt * (1 + $rate * $type) / $rate)) / log(1 + $rate); + } else { + if ($pmt == 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + return (-$pv -$fv) / $pmt; + } + } // function NPER() + + /** + * NPV + * + * Returns the Net Present Value of a cash flow series given a discount rate. + * + * @return float + */ + public static function NPV() { + // Return value + $returnValue = 0; + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + + // Calculate + $rate = array_shift($aArgs); + for ($i = 1; $i <= count($aArgs); ++$i) { + // Is it a numeric value? + if (is_numeric($aArgs[$i - 1])) { + $returnValue += $aArgs[$i - 1] / pow(1 + $rate, $i); + } + } + + // Return + return $returnValue; + } // function NPV() + + /** + * PMT + * + * Returns the constant payment (annuity) for a cash flow with a constant interest rate. + * + * @param float $rate Interest rate per period + * @param int $nper Number of periods + * @param float $pv Present Value + * @param float $fv Future Value + * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period + * @return float + */ + public static function PMT($rate = 0, $nper = 0, $pv = 0, $fv = 0, $type = 0) { + $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); + $nper = PHPExcel_Calculation_Functions::flattenSingleValue($nper); + $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); + $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv); + $type = PHPExcel_Calculation_Functions::flattenSingleValue($type); + + // Validate parameters + if ($type != 0 && $type != 1) { + return PHPExcel_Calculation_Functions::NaN(); + } + + // Calculate + if (!is_null($rate) && $rate != 0) { + return (-$fv - $pv * pow(1 + $rate, $nper)) / (1 + $rate * $type) / ((pow(1 + $rate, $nper) - 1) / $rate); + } else { + return (-$pv - $fv) / $nper; + } + } // function PMT() + + + /** + * PPMT + * + * Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate. + * + * @param float $rate Interest rate per period + * @param int $per Period for which we want to find the interest + * @param int $nper Number of periods + * @param float $pv Present Value + * @param float $fv Future Value + * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period + * @return float + */ + public static function PPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0) { + $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); + $per = (int) PHPExcel_Calculation_Functions::flattenSingleValue($per); + $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper); + $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); + $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv); + $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type); + + // Validate parameters + if ($type != 0 && $type != 1) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ($per <= 0 || $per > $nper) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + // Calculate + $interestAndPrincipal = self::_interestAndPrincipal($rate, $per, $nper, $pv, $fv, $type); + return $interestAndPrincipal[1]; + } // function PPMT() + + + public static function PRICE($settlement, $maturity, $rate, $yield, $redemption, $frequency, $basis=0) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $rate = (float) PHPExcel_Calculation_Functions::flattenSingleValue($rate); + $yield = (float) PHPExcel_Calculation_Functions::flattenSingleValue($yield); + $redemption = (float) PHPExcel_Calculation_Functions::flattenSingleValue($redemption); + $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency); + $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (($settlement > $maturity) || + (!self::_validFrequency($frequency)) || + (($basis < 0) || ($basis > 4))) { + return PHPExcel_Calculation_Functions::NaN(); + } + + $dsc = self::COUPDAYSNC($settlement, $maturity, $frequency, $basis); + $e = self::COUPDAYS($settlement, $maturity, $frequency, $basis); + $n = self::COUPNUM($settlement, $maturity, $frequency, $basis); + $a = self::COUPDAYBS($settlement, $maturity, $frequency, $basis); + + $baseYF = 1.0 + ($yield / $frequency); + $rfp = 100 * ($rate / $frequency); + $de = $dsc / $e; + + $result = $redemption / pow($baseYF, (--$n + $de)); + for($k = 0; $k <= $n; ++$k) { + $result += $rfp / (pow($baseYF, ($k + $de))); + } + $result -= $rfp * ($a / $e); + + return $result; + } // function PRICE() + + + /** + * PRICEDISC + * + * Returns the price per $100 face value of a discounted security. + * + * @param mixed settlement The security's settlement date. + * The security settlement date is the date after the issue date when the security is traded to the buyer. + * @param mixed maturity The security's maturity date. + * The maturity date is the date when the security expires. + * @param int discount The security's discount rate. + * @param int redemption The security's redemption value per $100 face value. + * @param int basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return float + */ + public static function PRICEDISC($settlement, $maturity, $discount, $redemption, $basis=0) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $discount = (float) PHPExcel_Calculation_Functions::flattenSingleValue($discount); + $redemption = (float) PHPExcel_Calculation_Functions::flattenSingleValue($redemption); + $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + // Validate + if ((is_numeric($discount)) && (is_numeric($redemption)) && (is_numeric($basis))) { + if (($discount <= 0) || ($redemption <= 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis); + if (!is_numeric($daysBetweenSettlementAndMaturity)) { + // return date error + return $daysBetweenSettlementAndMaturity; + } + + return $redemption * (1 - $discount * $daysBetweenSettlementAndMaturity); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function PRICEDISC() + + + /** + * PRICEMAT + * + * Returns the price per $100 face value of a security that pays interest at maturity. + * + * @param mixed settlement The security's settlement date. + * The security's settlement date is the date after the issue date when the security is traded to the buyer. + * @param mixed maturity The security's maturity date. + * The maturity date is the date when the security expires. + * @param mixed issue The security's issue date. + * @param int rate The security's interest rate at date of issue. + * @param int yield The security's annual yield. + * @param int basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return float + */ + public static function PRICEMAT($settlement, $maturity, $issue, $rate, $yield, $basis=0) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue); + $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); + $yield = PHPExcel_Calculation_Functions::flattenSingleValue($yield); + $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + // Validate + if (is_numeric($rate) && is_numeric($yield)) { + if (($rate <= 0) || ($yield <= 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement),$basis); + if (!is_numeric($daysPerYear)) { + return $daysPerYear; + } + $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis); + if (!is_numeric($daysBetweenIssueAndSettlement)) { + // return date error + return $daysBetweenIssueAndSettlement; + } + $daysBetweenIssueAndSettlement *= $daysPerYear; + $daysBetweenIssueAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $maturity, $basis); + if (!is_numeric($daysBetweenIssueAndMaturity)) { + // return date error + return $daysBetweenIssueAndMaturity; + } + $daysBetweenIssueAndMaturity *= $daysPerYear; + $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis); + if (!is_numeric($daysBetweenSettlementAndMaturity)) { + // return date error + return $daysBetweenSettlementAndMaturity; + } + $daysBetweenSettlementAndMaturity *= $daysPerYear; + + return ((100 + (($daysBetweenIssueAndMaturity / $daysPerYear) * $rate * 100)) / + (1 + (($daysBetweenSettlementAndMaturity / $daysPerYear) * $yield)) - + (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate * 100)); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function PRICEMAT() + + + /** + * PV + * + * Returns the Present Value of a cash flow with constant payments and interest rate (annuities). + * + * @param float $rate Interest rate per period + * @param int $nper Number of periods + * @param float $pmt Periodic payment (annuity) + * @param float $fv Future Value + * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period + * @return float + */ + public static function PV($rate = 0, $nper = 0, $pmt = 0, $fv = 0, $type = 0) { + $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); + $nper = PHPExcel_Calculation_Functions::flattenSingleValue($nper); + $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt); + $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv); + $type = PHPExcel_Calculation_Functions::flattenSingleValue($type); + + // Validate parameters + if ($type != 0 && $type != 1) { + return PHPExcel_Calculation_Functions::NaN(); + } + + // Calculate + if (!is_null($rate) && $rate != 0) { + return (-$pmt * (1 + $rate * $type) * ((pow(1 + $rate, $nper) - 1) / $rate) - $fv) / pow(1 + $rate, $nper); + } else { + return -$fv - $pmt * $nper; + } + } // function PV() + + + /** + * RATE + * + * Returns the interest rate per period of an annuity. + * RATE is calculated by iteration and can have zero or more solutions. + * If the successive results of RATE do not converge to within 0.0000001 after 20 iterations, + * RATE returns the #NUM! error value. + * + * Excel Function: + * RATE(nper,pmt,pv[,fv[,type[,guess]]]) + * + * @access public + * @category Financial Functions + * @param float nper The total number of payment periods in an annuity. + * @param float pmt The payment made each period and cannot change over the life + * of the annuity. + * Typically, pmt includes principal and interest but no other + * fees or taxes. + * @param float pv The present value - the total amount that a series of future + * payments is worth now. + * @param float fv The future value, or a cash balance you want to attain after + * the last payment is made. If fv is omitted, it is assumed + * to be 0 (the future value of a loan, for example, is 0). + * @param integer type A number 0 or 1 and indicates when payments are due: + * 0 or omitted At the end of the period. + * 1 At the beginning of the period. + * @param float guess Your guess for what the rate will be. + * If you omit guess, it is assumed to be 10 percent. + * @return float + **/ + public static function RATE($nper, $pmt, $pv, $fv = 0.0, $type = 0, $guess = 0.1) { + $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper); + $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt); + $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); + $fv = (is_null($fv)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($fv); + $type = (is_null($type)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($type); + $guess = (is_null($guess)) ? 0.1 : PHPExcel_Calculation_Functions::flattenSingleValue($guess); + + $rate = $guess; + if (abs($rate) < FINANCIAL_PRECISION) { + $y = $pv * (1 + $nper * $rate) + $pmt * (1 + $rate * $type) * $nper + $fv; + } else { + $f = exp($nper * log(1 + $rate)); + $y = $pv * $f + $pmt * (1 / $rate + $type) * ($f - 1) + $fv; + } + $y0 = $pv + $pmt * $nper + $fv; + $y1 = $pv * $f + $pmt * (1 / $rate + $type) * ($f - 1) + $fv; + + // find root by secant method + $i = $x0 = 0.0; + $x1 = $rate; + while ((abs($y0 - $y1) > FINANCIAL_PRECISION) && ($i < FINANCIAL_MAX_ITERATIONS)) { + $rate = ($y1 * $x0 - $y0 * $x1) / ($y1 - $y0); + $x0 = $x1; + $x1 = $rate; + if (($nper * abs($pmt)) > ($pv - $fv)) + $x1 = abs($x1); + + if (abs($rate) < FINANCIAL_PRECISION) { + $y = $pv * (1 + $nper * $rate) + $pmt * (1 + $rate * $type) * $nper + $fv; + } else { + $f = exp($nper * log(1 + $rate)); + $y = $pv * $f + $pmt * (1 / $rate + $type) * ($f - 1) + $fv; + } + + $y0 = $y1; + $y1 = $y; + ++$i; + } + return $rate; + } // function RATE() + + + /** + * RECEIVED + * + * Returns the price per $100 face value of a discounted security. + * + * @param mixed settlement The security's settlement date. + * The security settlement date is the date after the issue date when the security is traded to the buyer. + * @param mixed maturity The security's maturity date. + * The maturity date is the date when the security expires. + * @param int investment The amount invested in the security. + * @param int discount The security's discount rate. + * @param int basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return float + */ + public static function RECEIVED($settlement, $maturity, $investment, $discount, $basis=0) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $investment = (float) PHPExcel_Calculation_Functions::flattenSingleValue($investment); + $discount = (float) PHPExcel_Calculation_Functions::flattenSingleValue($discount); + $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + // Validate + if ((is_numeric($investment)) && (is_numeric($discount)) && (is_numeric($basis))) { + if (($investment <= 0) || ($discount <= 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis); + if (!is_numeric($daysBetweenSettlementAndMaturity)) { + // return date error + return $daysBetweenSettlementAndMaturity; + } + + return $investment / ( 1 - ($discount * $daysBetweenSettlementAndMaturity)); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function RECEIVED() + + + /** + * SLN + * + * Returns the straight-line depreciation of an asset for one period + * + * @param cost Initial cost of the asset + * @param salvage Value at the end of the depreciation + * @param life Number of periods over which the asset is depreciated + * @return float + */ + public static function SLN($cost, $salvage, $life) { + $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost); + $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage); + $life = PHPExcel_Calculation_Functions::flattenSingleValue($life); + + // Calculate + if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life))) { + if ($life < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + return ($cost - $salvage) / $life; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function SLN() + + + /** + * SYD + * + * Returns the sum-of-years' digits depreciation of an asset for a specified period. + * + * @param cost Initial cost of the asset + * @param salvage Value at the end of the depreciation + * @param life Number of periods over which the asset is depreciated + * @param period Period + * @return float + */ + public static function SYD($cost, $salvage, $life, $period) { + $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost); + $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage); + $life = PHPExcel_Calculation_Functions::flattenSingleValue($life); + $period = PHPExcel_Calculation_Functions::flattenSingleValue($period); + + // Calculate + if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period))) { + if (($life < 1) || ($period > $life)) { + return PHPExcel_Calculation_Functions::NaN(); + } + return (($cost - $salvage) * ($life - $period + 1) * 2) / ($life * ($life + 1)); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function SYD() + + + /** + * TBILLEQ + * + * Returns the bond-equivalent yield for a Treasury bill. + * + * @param mixed settlement The Treasury bill's settlement date. + * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer. + * @param mixed maturity The Treasury bill's maturity date. + * The maturity date is the date when the Treasury bill expires. + * @param int discount The Treasury bill's discount rate. + * @return float + */ + public static function TBILLEQ($settlement, $maturity, $discount) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $discount = PHPExcel_Calculation_Functions::flattenSingleValue($discount); + + // Use TBILLPRICE for validation + $testValue = self::TBILLPRICE($settlement, $maturity, $discount); + if (is_string($testValue)) { + return $testValue; + } + + if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { + ++$maturity; + $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity) * 360; + } else { + $daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::_getDateValue($maturity) - PHPExcel_Calculation_DateTime::_getDateValue($settlement)); + } + + return (365 * $discount) / (360 - $discount * $daysBetweenSettlementAndMaturity); + } // function TBILLEQ() + + + /** + * TBILLPRICE + * + * Returns the yield for a Treasury bill. + * + * @param mixed settlement The Treasury bill's settlement date. + * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer. + * @param mixed maturity The Treasury bill's maturity date. + * The maturity date is the date when the Treasury bill expires. + * @param int discount The Treasury bill's discount rate. + * @return float + */ + public static function TBILLPRICE($settlement, $maturity, $discount) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $discount = PHPExcel_Calculation_Functions::flattenSingleValue($discount); + + if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + // Validate + if (is_numeric($discount)) { + if ($discount <= 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { + ++$maturity; + $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity) * 360; + if (!is_numeric($daysBetweenSettlementAndMaturity)) { + // return date error + return $daysBetweenSettlementAndMaturity; + } + } else { + $daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::_getDateValue($maturity) - PHPExcel_Calculation_DateTime::_getDateValue($settlement)); + } + + if ($daysBetweenSettlementAndMaturity > 360) { + return PHPExcel_Calculation_Functions::NaN(); + } + + $price = 100 * (1 - (($discount * $daysBetweenSettlementAndMaturity) / 360)); + if ($price <= 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + return $price; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function TBILLPRICE() + + + /** + * TBILLYIELD + * + * Returns the yield for a Treasury bill. + * + * @param mixed settlement The Treasury bill's settlement date. + * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer. + * @param mixed maturity The Treasury bill's maturity date. + * The maturity date is the date when the Treasury bill expires. + * @param int price The Treasury bill's price per $100 face value. + * @return float + */ + public static function TBILLYIELD($settlement, $maturity, $price) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $price = PHPExcel_Calculation_Functions::flattenSingleValue($price); + + // Validate + if (is_numeric($price)) { + if ($price <= 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { + ++$maturity; + $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity) * 360; + if (!is_numeric($daysBetweenSettlementAndMaturity)) { + // return date error + return $daysBetweenSettlementAndMaturity; + } + } else { + $daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::_getDateValue($maturity) - PHPExcel_Calculation_DateTime::_getDateValue($settlement)); + } + + if ($daysBetweenSettlementAndMaturity > 360) { + return PHPExcel_Calculation_Functions::NaN(); + } + + return ((100 - $price) / $price) * (360 / $daysBetweenSettlementAndMaturity); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function TBILLYIELD() + + + public static function XIRR($values, $dates, $guess = 0.1) { + if ((!is_array($values)) && (!is_array($dates))) return PHPExcel_Calculation_Functions::VALUE(); + $values = PHPExcel_Calculation_Functions::flattenArray($values); + $dates = PHPExcel_Calculation_Functions::flattenArray($dates); + $guess = PHPExcel_Calculation_Functions::flattenSingleValue($guess); + if (count($values) != count($dates)) return PHPExcel_Calculation_Functions::NaN(); + + // create an initial range, with a root somewhere between 0 and guess + $x1 = 0.0; + $x2 = $guess; + $f1 = self::XNPV($x1, $values, $dates); + $f2 = self::XNPV($x2, $values, $dates); + for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) { + if (($f1 * $f2) < 0.0) break; + if (abs($f1) < abs($f2)) { + $f1 = self::XNPV($x1 += 1.6 * ($x1 - $x2), $values, $dates); + } else { + $f2 = self::XNPV($x2 += 1.6 * ($x2 - $x1), $values, $dates); + } + } + if (($f1 * $f2) > 0.0) return PHPExcel_Calculation_Functions::VALUE(); + + $f = self::XNPV($x1, $values, $dates); + if ($f < 0.0) { + $rtb = $x1; + $dx = $x2 - $x1; + } else { + $rtb = $x2; + $dx = $x1 - $x2; + } + + for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) { + $dx *= 0.5; + $x_mid = $rtb + $dx; + $f_mid = self::XNPV($x_mid, $values, $dates); + if ($f_mid <= 0.0) $rtb = $x_mid; + if ((abs($f_mid) < FINANCIAL_PRECISION) || (abs($dx) < FINANCIAL_PRECISION)) return $x_mid; + } + return PHPExcel_Calculation_Functions::VALUE(); + } + + + /** + * XNPV + * + * Returns the net present value for a schedule of cash flows that is not necessarily periodic. + * To calculate the net present value for a series of cash flows that is periodic, use the NPV function. + * + * Excel Function: + * =XNPV(rate,values,dates) + * + * @param float $rate The discount rate to apply to the cash flows. + * @param array of float $values A series of cash flows that corresponds to a schedule of payments in dates. The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment. If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year. The series of values must contain at least one positive value and one negative value. + * @param array of mixed $dates A schedule of payment dates that corresponds to the cash flow payments. The first payment date indicates the beginning of the schedule of payments. All other dates must be later than this date, but they may occur in any order. + * @return float + */ + public static function XNPV($rate, $values, $dates) { + $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); + if (!is_numeric($rate)) return PHPExcel_Calculation_Functions::VALUE(); + if ((!is_array($values)) || (!is_array($dates))) return PHPExcel_Calculation_Functions::VALUE(); + $values = PHPExcel_Calculation_Functions::flattenArray($values); + $dates = PHPExcel_Calculation_Functions::flattenArray($dates); + $valCount = count($values); + if ($valCount != count($dates)) return PHPExcel_Calculation_Functions::NaN(); + if ((min($values) > 0) || (max($values) < 0)) return PHPExcel_Calculation_Functions::VALUE(); + + $xnpv = 0.0; + for ($i = 0; $i < $valCount; ++$i) { + if (!is_numeric($values[$i])) return PHPExcel_Calculation_Functions::VALUE(); + $xnpv += $values[$i] / pow(1 + $rate, PHPExcel_Calculation_DateTime::DATEDIF($dates[0],$dates[$i],'d') / 365); + } + return (is_finite($xnpv)) ? $xnpv : PHPExcel_Calculation_Functions::VALUE(); + } // function XNPV() + + + /** + * YIELDDISC + * + * Returns the annual yield of a security that pays interest at maturity. + * + * @param mixed settlement The security's settlement date. + * The security's settlement date is the date after the issue date when the security is traded to the buyer. + * @param mixed maturity The security's maturity date. + * The maturity date is the date when the security expires. + * @param int price The security's price per $100 face value. + * @param int redemption The security's redemption value per $100 face value. + * @param int basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return float + */ + public static function YIELDDISC($settlement, $maturity, $price, $redemption, $basis=0) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $price = PHPExcel_Calculation_Functions::flattenSingleValue($price); + $redemption = PHPExcel_Calculation_Functions::flattenSingleValue($redemption); + $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + // Validate + if (is_numeric($price) && is_numeric($redemption)) { + if (($price <= 0) || ($redemption <= 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement),$basis); + if (!is_numeric($daysPerYear)) { + return $daysPerYear; + } + $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity,$basis); + if (!is_numeric($daysBetweenSettlementAndMaturity)) { + // return date error + return $daysBetweenSettlementAndMaturity; + } + $daysBetweenSettlementAndMaturity *= $daysPerYear; + + return (($redemption - $price) / $price) * ($daysPerYear / $daysBetweenSettlementAndMaturity); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function YIELDDISC() + + + /** + * YIELDMAT + * + * Returns the annual yield of a security that pays interest at maturity. + * + * @param mixed settlement The security's settlement date. + * The security's settlement date is the date after the issue date when the security is traded to the buyer. + * @param mixed maturity The security's maturity date. + * The maturity date is the date when the security expires. + * @param mixed issue The security's issue date. + * @param int rate The security's interest rate at date of issue. + * @param int price The security's price per $100 face value. + * @param int basis The type of day count to use. + * 0 or omitted US (NASD) 30/360 + * 1 Actual/actual + * 2 Actual/360 + * 3 Actual/365 + * 4 European 30/360 + * @return float + */ + public static function YIELDMAT($settlement, $maturity, $issue, $rate, $price, $basis=0) { + $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); + $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); + $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue); + $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); + $price = PHPExcel_Calculation_Functions::flattenSingleValue($price); + $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); + + // Validate + if (is_numeric($rate) && is_numeric($price)) { + if (($rate <= 0) || ($price <= 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement),$basis); + if (!is_numeric($daysPerYear)) { + return $daysPerYear; + } + $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis); + if (!is_numeric($daysBetweenIssueAndSettlement)) { + // return date error + return $daysBetweenIssueAndSettlement; + } + $daysBetweenIssueAndSettlement *= $daysPerYear; + $daysBetweenIssueAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $maturity, $basis); + if (!is_numeric($daysBetweenIssueAndMaturity)) { + // return date error + return $daysBetweenIssueAndMaturity; + } + $daysBetweenIssueAndMaturity *= $daysPerYear; + $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis); + if (!is_numeric($daysBetweenSettlementAndMaturity)) { + // return date error + return $daysBetweenSettlementAndMaturity; + } + $daysBetweenSettlementAndMaturity *= $daysPerYear; + + return ((1 + (($daysBetweenIssueAndMaturity / $daysPerYear) * $rate) - (($price / 100) + (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate))) / + (($price / 100) + (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate))) * + ($daysPerYear / $daysBetweenSettlementAndMaturity); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function YIELDMAT() + +} // class PHPExcel_Calculation_Financial diff --git a/admin/helpers/PHPExcel/Calculation/FormulaParser.php b/admin/helpers/PHPExcel/Calculation/FormulaParser.php new file mode 100644 index 00000000..3884fd20 --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/FormulaParser.php @@ -0,0 +1,614 @@ +<"; + const OPERATORS_POSTFIX = "%"; + + /** + * Formula + * + * @var string + */ + private $_formula; + + /** + * Tokens + * + * @var PHPExcel_Calculation_FormulaToken[] + */ + private $_tokens = array(); + + /** + * Create a new PHPExcel_Calculation_FormulaParser + * + * @param string $pFormula Formula to parse + * @throws PHPExcel_Calculation_Exception + */ + public function __construct($pFormula = '') + { + // Check parameters + if (is_null($pFormula)) { + throw new PHPExcel_Calculation_Exception("Invalid parameter passed: formula"); + } + + // Initialise values + $this->_formula = trim($pFormula); + // Parse! + $this->_parseToTokens(); + } + + /** + * Get Formula + * + * @return string + */ + public function getFormula() { + return $this->_formula; + } + + /** + * Get Token + * + * @param int $pId Token id + * @return string + * @throws PHPExcel_Calculation_Exception + */ + public function getToken($pId = 0) { + if (isset($this->_tokens[$pId])) { + return $this->_tokens[$pId]; + } else { + throw new PHPExcel_Calculation_Exception("Token with id $pId does not exist."); + } + } + + /** + * Get Token count + * + * @return string + */ + public function getTokenCount() { + return count($this->_tokens); + } + + /** + * Get Tokens + * + * @return PHPExcel_Calculation_FormulaToken[] + */ + public function getTokens() { + return $this->_tokens; + } + + /** + * Parse to tokens + */ + private function _parseToTokens() { + // No attempt is made to verify formulas; assumes formulas are derived from Excel, where + // they can only exist if valid; stack overflows/underflows sunk as nulls without exceptions. + + // Check if the formula has a valid starting = + $formulaLength = strlen($this->_formula); + if ($formulaLength < 2 || $this->_formula{0} != '=') return; + + // Helper variables + $tokens1 = $tokens2 = $stack = array(); + $inString = $inPath = $inRange = $inError = false; + $token = $previousToken = $nextToken = null; + + $index = 1; + $value = ''; + + $ERRORS = array("#NULL!", "#DIV/0!", "#VALUE!", "#REF!", "#NAME?", "#NUM!", "#N/A"); + $COMPARATORS_MULTI = array(">=", "<=", "<>"); + + while ($index < $formulaLength) { + // state-dependent character evaluation (order is important) + + // double-quoted strings + // embeds are doubled + // end marks token + if ($inString) { + if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE) { + if ((($index + 2) <= $formulaLength) && ($this->_formula{$index + 1} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE)) { + $value .= PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE; + ++$index; + } else { + $inString = false; + $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_TEXT); + $value = ""; + } + } else { + $value .= $this->_formula{$index}; + } + ++$index; + continue; + } + + // single-quoted strings (links) + // embeds are double + // end does not mark a token + if ($inPath) { + if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE) { + if ((($index + 2) <= $formulaLength) && ($this->_formula{$index + 1} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE)) { + $value .= PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE; + ++$index; + } else { + $inPath = false; + } + } else { + $value .= $this->_formula{$index}; + } + ++$index; + continue; + } + + // bracked strings (R1C1 range index or linked workbook name) + // no embeds (changed to "()" by Excel) + // end does not mark a token + if ($inRange) { + if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACKET_CLOSE) { + $inRange = false; + } + $value .= $this->_formula{$index}; + ++$index; + continue; + } + + // error values + // end marks a token, determined from absolute list of values + if ($inError) { + $value .= $this->_formula{$index}; + ++$index; + if (in_array($value, $ERRORS)) { + $inError = false; + $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_ERROR); + $value = ""; + } + continue; + } + + // scientific notation check + if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_SN, $this->_formula{$index}) !== false) { + if (strlen($value) > 1) { + if (preg_match("/^[1-9]{1}(\.[0-9]+)?E{1}$/", $this->_formula{$index}) != 0) { + $value .= $this->_formula{$index}; + ++$index; + continue; + } + } + } + + // independent character evaluation (order not important) + + // establish state-dependent character evaluations + if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE) { + if (strlen($value > 0)) { // unexpected + $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN); + $value = ""; + } + $inString = true; + ++$index; + continue; + } + + if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE) { + if (strlen($value) > 0) { // unexpected + $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN); + $value = ""; + } + $inPath = true; + ++$index; + continue; + } + + if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACKET_OPEN) { + $inRange = true; + $value .= PHPExcel_Calculation_FormulaParser::BRACKET_OPEN; + ++$index; + continue; + } + + if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::ERROR_START) { + if (strlen($value) > 0) { // unexpected + $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN); + $value = ""; + } + $inError = true; + $value .= PHPExcel_Calculation_FormulaParser::ERROR_START; + ++$index; + continue; + } + + // mark start and end of arrays and array rows + if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACE_OPEN) { + if (strlen($value) > 0) { // unexpected + $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN); + $value = ""; + } + + $tmp = new PHPExcel_Calculation_FormulaToken("ARRAY", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START); + $tokens1[] = $tmp; + $stack[] = clone $tmp; + + $tmp = new PHPExcel_Calculation_FormulaToken("ARRAYROW", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START); + $tokens1[] = $tmp; + $stack[] = clone $tmp; + + ++$index; + continue; + } + + if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::SEMICOLON) { + if (strlen($value) > 0) { + $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); + $value = ""; + } + + $tmp = array_pop($stack); + $tmp->setValue(""); + $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP); + $tokens1[] = $tmp; + + $tmp = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_ARGUMENT); + $tokens1[] = $tmp; + + $tmp = new PHPExcel_Calculation_FormulaToken("ARRAYROW", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START); + $tokens1[] = $tmp; + $stack[] = clone $tmp; + + ++$index; + continue; + } + + if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACE_CLOSE) { + if (strlen($value) > 0) { + $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); + $value = ""; + } + + $tmp = array_pop($stack); + $tmp->setValue(""); + $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP); + $tokens1[] = $tmp; + + $tmp = array_pop($stack); + $tmp->setValue(""); + $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP); + $tokens1[] = $tmp; + + ++$index; + continue; + } + + // trim white-space + if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::WHITESPACE) { + if (strlen($value) > 0) { + $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); + $value = ""; + } + $tokens1[] = new PHPExcel_Calculation_FormulaToken("", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_WHITESPACE); + ++$index; + while (($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::WHITESPACE) && ($index < $formulaLength)) { + ++$index; + } + continue; + } + + // multi-character comparators + if (($index + 2) <= $formulaLength) { + if (in_array(substr($this->_formula, $index, 2), $COMPARATORS_MULTI)) { + if (strlen($value) > 0) { + $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); + $value = ""; + } + $tokens1[] = new PHPExcel_Calculation_FormulaToken(substr($this->_formula, $index, 2), PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL); + $index += 2; + continue; + } + } + + // standard infix operators + if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_INFIX, $this->_formula{$index}) !== false) { + if (strlen($value) > 0) { + $tokens1[] =new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); + $value = ""; + } + $tokens1[] = new PHPExcel_Calculation_FormulaToken($this->_formula{$index}, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX); + ++$index; + continue; + } + + // standard postfix operators (only one) + if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_POSTFIX, $this->_formula{$index}) !== false) { + if (strlen($value) > 0) { + $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); + $value = ""; + } + $tokens1[] = new PHPExcel_Calculation_FormulaToken($this->_formula{$index}, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX); + ++$index; + continue; + } + + // start subexpression or function + if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::PAREN_OPEN) { + if (strlen($value) > 0) { + $tmp = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START); + $tokens1[] = $tmp; + $stack[] = clone $tmp; + $value = ""; + } else { + $tmp = new PHPExcel_Calculation_FormulaToken("", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START); + $tokens1[] = $tmp; + $stack[] = clone $tmp; + } + ++$index; + continue; + } + + // function, subexpression, or array parameters, or operand unions + if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::COMMA) { + if (strlen($value) > 0) { + $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); + $value = ""; + } + + $tmp = array_pop($stack); + $tmp->setValue(""); + $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP); + $stack[] = $tmp; + + if ($tmp->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) { + $tokens1[] = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_UNION); + } else { + $tokens1[] = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_ARGUMENT); + } + ++$index; + continue; + } + + // stop subexpression + if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::PAREN_CLOSE) { + if (strlen($value) > 0) { + $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); + $value = ""; + } + + $tmp = array_pop($stack); + $tmp->setValue(""); + $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP); + $tokens1[] = $tmp; + + ++$index; + continue; + } + + // token accumulation + $value .= $this->_formula{$index}; + ++$index; + } + + // dump remaining accumulation + if (strlen($value) > 0) { + $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); + } + + // move tokenList to new set, excluding unnecessary white-space tokens and converting necessary ones to intersections + $tokenCount = count($tokens1); + for ($i = 0; $i < $tokenCount; ++$i) { + $token = $tokens1[$i]; + if (isset($tokens1[$i - 1])) { + $previousToken = $tokens1[$i - 1]; + } else { + $previousToken = null; + } + if (isset($tokens1[$i + 1])) { + $nextToken = $tokens1[$i + 1]; + } else { + $nextToken = null; + } + + if (is_null($token)) { + continue; + } + + if ($token->getTokenType() != PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_WHITESPACE) { + $tokens2[] = $token; + continue; + } + + if (is_null($previousToken)) { + continue; + } + + if (! ( + (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) || + (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) || + ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND) + ) ) { + continue; + } + + if (is_null($nextToken)) { + continue; + } + + if (! ( + (($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($nextToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START)) || + (($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($nextToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START)) || + ($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND) + ) ) { + continue; + } + + $tokens2[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_INTERSECTION); + } + + // move tokens to final list, switching infix "-" operators to prefix when appropriate, switching infix "+" operators + // to noop when appropriate, identifying operand and infix-operator subtypes, and pulling "@" from function names + $this->_tokens = array(); + + $tokenCount = count($tokens2); + for ($i = 0; $i < $tokenCount; ++$i) { + $token = $tokens2[$i]; + if (isset($tokens2[$i - 1])) { + $previousToken = $tokens2[$i - 1]; + } else { + $previousToken = null; + } + if (isset($tokens2[$i + 1])) { + $nextToken = $tokens2[$i + 1]; + } else { + $nextToken = null; + } + + if (is_null($token)) { + continue; + } + + if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getValue() == "-") { + if ($i == 0) { + $token->setTokenType(PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPREFIX); + } else if ( + (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) || + (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) || + ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX) || + ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND) + ) { + $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH); + } else { + $token->setTokenType(PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPREFIX); + } + + $this->_tokens[] = $token; + continue; + } + + if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getValue() == "+") { + if ($i == 0) { + continue; + } else if ( + (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) || + (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) || + ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX) || + ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND) + ) { + $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH); + } else { + continue; + } + + $this->_tokens[] = $token; + continue; + } + + if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) { + if (strpos("<>=", substr($token->getValue(), 0, 1)) !== false) { + $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL); + } else if ($token->getValue() == "&") { + $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_CONCATENATION); + } else { + $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH); + } + + $this->_tokens[] = $token; + continue; + } + + if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND && $token->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) { + if (!is_numeric($token->getValue())) { + if (strtoupper($token->getValue()) == "TRUE" || strtoupper($token->getValue() == "FALSE")) { + $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL); + } else { + $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_RANGE); + } + } else { + $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NUMBER); + } + + $this->_tokens[] = $token; + continue; + } + + if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) { + if (strlen($token->getValue() > 0)) { + if (substr($token->getValue(), 0, 1) == "@") { + $token->setValue(substr($token->getValue(), 1)); + } + } + } + + $this->_tokens[] = $token; + } + } +} diff --git a/admin/helpers/PHPExcel/Calculation/FormulaToken.php b/admin/helpers/PHPExcel/Calculation/FormulaToken.php new file mode 100644 index 00000000..ad10c00a --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/FormulaToken.php @@ -0,0 +1,176 @@ +_value = $pValue; + $this->_tokenType = $pTokenType; + $this->_tokenSubType = $pTokenSubType; + } + + /** + * Get Value + * + * @return string + */ + public function getValue() { + return $this->_value; + } + + /** + * Set Value + * + * @param string $value + */ + public function setValue($value) { + $this->_value = $value; + } + + /** + * Get Token Type (represented by TOKEN_TYPE_*) + * + * @return string + */ + public function getTokenType() { + return $this->_tokenType; + } + + /** + * Set Token Type + * + * @param string $value + */ + public function setTokenType($value = PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN) { + $this->_tokenType = $value; + } + + /** + * Get Token SubType (represented by TOKEN_SUBTYPE_*) + * + * @return string + */ + public function getTokenSubType() { + return $this->_tokenSubType; + } + + /** + * Set Token SubType + * + * @param string $value + */ + public function setTokenSubType($value = PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) { + $this->_tokenSubType = $value; + } +} diff --git a/admin/helpers/PHPExcel/Calculation/Function.php b/admin/helpers/PHPExcel/Calculation/Function.php new file mode 100644 index 00000000..1301cd09 --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/Function.php @@ -0,0 +1,149 @@ +_category = $pCategory; + $this->_excelName = $pExcelName; + $this->_phpExcelName = $pPHPExcelName; + } else { + throw new PHPExcel_Calculation_Exception("Invalid parameters passed."); + } + } + + /** + * Get Category (represented by CATEGORY_*) + * + * @return string + */ + public function getCategory() { + return $this->_category; + } + + /** + * Set Category (represented by CATEGORY_*) + * + * @param string $value + * @throws PHPExcel_Calculation_Exception + */ + public function setCategory($value = null) { + if (!is_null($value)) { + $this->_category = $value; + } else { + throw new PHPExcel_Calculation_Exception("Invalid parameter passed."); + } + } + + /** + * Get Excel name + * + * @return string + */ + public function getExcelName() { + return $this->_excelName; + } + + /** + * Set Excel name + * + * @param string $value + */ + public function setExcelName($value) { + $this->_excelName = $value; + } + + /** + * Get PHPExcel name + * + * @return string + */ + public function getPHPExcelName() { + return $this->_phpExcelName; + } + + /** + * Set PHPExcel name + * + * @param string $value + */ + public function setPHPExcelName($value) { + $this->_phpExcelName = $value; + } +} diff --git a/admin/helpers/PHPExcel/Calculation/Functions.php b/admin/helpers/PHPExcel/Calculation/Functions.php new file mode 100644 index 00000000..9a139ec7 --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/Functions.php @@ -0,0 +1,725 @@ + '#NULL!', + 'divisionbyzero' => '#DIV/0!', + 'value' => '#VALUE!', + 'reference' => '#REF!', + 'name' => '#NAME?', + 'num' => '#NUM!', + 'na' => '#N/A', + 'gettingdata' => '#GETTING_DATA' + ); + + + /** + * Set the Compatibility Mode + * + * @access public + * @category Function Configuration + * @param string $compatibilityMode Compatibility Mode + * Permitted values are: + * PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL 'Excel' + * PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC 'Gnumeric' + * PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE 'OpenOfficeCalc' + * @return boolean (Success or Failure) + */ + public static function setCompatibilityMode($compatibilityMode) { + if (($compatibilityMode == self::COMPATIBILITY_EXCEL) || + ($compatibilityMode == self::COMPATIBILITY_GNUMERIC) || + ($compatibilityMode == self::COMPATIBILITY_OPENOFFICE)) { + self::$compatibilityMode = $compatibilityMode; + return True; + } + return False; + } // function setCompatibilityMode() + + + /** + * Return the current Compatibility Mode + * + * @access public + * @category Function Configuration + * @return string Compatibility Mode + * Possible Return values are: + * PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL 'Excel' + * PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC 'Gnumeric' + * PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE 'OpenOfficeCalc' + */ + public static function getCompatibilityMode() { + return self::$compatibilityMode; + } // function getCompatibilityMode() + + + /** + * Set the Return Date Format used by functions that return a date/time (Excel, PHP Serialized Numeric or PHP Object) + * + * @access public + * @category Function Configuration + * @param string $returnDateType Return Date Format + * Permitted values are: + * PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC 'P' + * PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT 'O' + * PHPExcel_Calculation_Functions::RETURNDATE_EXCEL 'E' + * @return boolean Success or failure + */ + public static function setReturnDateType($returnDateType) { + if (($returnDateType == self::RETURNDATE_PHP_NUMERIC) || + ($returnDateType == self::RETURNDATE_PHP_OBJECT) || + ($returnDateType == self::RETURNDATE_EXCEL)) { + self::$ReturnDateType = $returnDateType; + return True; + } + return False; + } // function setReturnDateType() + + + /** + * Return the current Return Date Format for functions that return a date/time (Excel, PHP Serialized Numeric or PHP Object) + * + * @access public + * @category Function Configuration + * @return string Return Date Format + * Possible Return values are: + * PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC 'P' + * PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT 'O' + * PHPExcel_Calculation_Functions::RETURNDATE_EXCEL 'E' + */ + public static function getReturnDateType() { + return self::$ReturnDateType; + } // function getReturnDateType() + + + /** + * DUMMY + * + * @access public + * @category Error Returns + * @return string #Not Yet Implemented + */ + public static function DUMMY() { + return '#Not Yet Implemented'; + } // function DUMMY() + + + /** + * DIV0 + * + * @access public + * @category Error Returns + * @return string #Not Yet Implemented + */ + public static function DIV0() { + return self::$_errorCodes['divisionbyzero']; + } // function DIV0() + + + /** + * NA + * + * Excel Function: + * =NA() + * + * Returns the error value #N/A + * #N/A is the error value that means "no value is available." + * + * @access public + * @category Logical Functions + * @return string #N/A! + */ + public static function NA() { + return self::$_errorCodes['na']; + } // function NA() + + + /** + * NaN + * + * Returns the error value #NUM! + * + * @access public + * @category Error Returns + * @return string #NUM! + */ + public static function NaN() { + return self::$_errorCodes['num']; + } // function NaN() + + + /** + * NAME + * + * Returns the error value #NAME? + * + * @access public + * @category Error Returns + * @return string #NAME? + */ + public static function NAME() { + return self::$_errorCodes['name']; + } // function NAME() + + + /** + * REF + * + * Returns the error value #REF! + * + * @access public + * @category Error Returns + * @return string #REF! + */ + public static function REF() { + return self::$_errorCodes['reference']; + } // function REF() + + + /** + * NULL + * + * Returns the error value #NULL! + * + * @access public + * @category Error Returns + * @return string #NULL! + */ + public static function NULL() { + return self::$_errorCodes['null']; + } // function NULL() + + + /** + * VALUE + * + * Returns the error value #VALUE! + * + * @access public + * @category Error Returns + * @return string #VALUE! + */ + public static function VALUE() { + return self::$_errorCodes['value']; + } // function VALUE() + + + public static function isMatrixValue($idx) { + return ((substr_count($idx,'.') <= 1) || (preg_match('/\.[A-Z]/',$idx) > 0)); + } + + + public static function isValue($idx) { + return (substr_count($idx,'.') == 0); + } + + + public static function isCellValue($idx) { + return (substr_count($idx,'.') > 1); + } + + + public static function _ifCondition($condition) { + $condition = PHPExcel_Calculation_Functions::flattenSingleValue($condition); + if (!isset($condition{0})) + $condition = '=""'; + if (!in_array($condition{0},array('>', '<', '='))) { + if (!is_numeric($condition)) { $condition = PHPExcel_Calculation::_wrapResult(strtoupper($condition)); } + return '='.$condition; + } else { + preg_match('/([<>=]+)(.*)/',$condition,$matches); + list(,$operator,$operand) = $matches; + + if (!is_numeric($operand)) { + $operand = str_replace('"', '""', $operand); + $operand = PHPExcel_Calculation::_wrapResult(strtoupper($operand)); + } + + return $operator.$operand; + } + } // function _ifCondition() + + + /** + * ERROR_TYPE + * + * @param mixed $value Value to check + * @return boolean + */ + public static function ERROR_TYPE($value = '') { + $value = self::flattenSingleValue($value); + + $i = 1; + foreach(self::$_errorCodes as $errorCode) { + if ($value === $errorCode) { + return $i; + } + ++$i; + } + return self::NA(); + } // function ERROR_TYPE() + + + /** + * IS_BLANK + * + * @param mixed $value Value to check + * @return boolean + */ + public static function IS_BLANK($value = NULL) { + if (!is_null($value)) { + $value = self::flattenSingleValue($value); + } + + return is_null($value); + } // function IS_BLANK() + + + /** + * IS_ERR + * + * @param mixed $value Value to check + * @return boolean + */ + public static function IS_ERR($value = '') { + $value = self::flattenSingleValue($value); + + return self::IS_ERROR($value) && (!self::IS_NA($value)); + } // function IS_ERR() + + + /** + * IS_ERROR + * + * @param mixed $value Value to check + * @return boolean + */ + public static function IS_ERROR($value = '') { + $value = self::flattenSingleValue($value); + + if (!is_string($value)) + return false; + return in_array($value, array_values(self::$_errorCodes)); + } // function IS_ERROR() + + + /** + * IS_NA + * + * @param mixed $value Value to check + * @return boolean + */ + public static function IS_NA($value = '') { + $value = self::flattenSingleValue($value); + + return ($value === self::NA()); + } // function IS_NA() + + + /** + * IS_EVEN + * + * @param mixed $value Value to check + * @return boolean + */ + public static function IS_EVEN($value = NULL) { + $value = self::flattenSingleValue($value); + + if ($value === NULL) + return self::NAME(); + if ((is_bool($value)) || ((is_string($value)) && (!is_numeric($value)))) + return self::VALUE(); + return ($value % 2 == 0); + } // function IS_EVEN() + + + /** + * IS_ODD + * + * @param mixed $value Value to check + * @return boolean + */ + public static function IS_ODD($value = NULL) { + $value = self::flattenSingleValue($value); + + if ($value === NULL) + return self::NAME(); + if ((is_bool($value)) || ((is_string($value)) && (!is_numeric($value)))) + return self::VALUE(); + return (abs($value) % 2 == 1); + } // function IS_ODD() + + + /** + * IS_NUMBER + * + * @param mixed $value Value to check + * @return boolean + */ + public static function IS_NUMBER($value = NULL) { + $value = self::flattenSingleValue($value); + + if (is_string($value)) { + return False; + } + return is_numeric($value); + } // function IS_NUMBER() + + + /** + * IS_LOGICAL + * + * @param mixed $value Value to check + * @return boolean + */ + public static function IS_LOGICAL($value = NULL) { + $value = self::flattenSingleValue($value); + + return is_bool($value); + } // function IS_LOGICAL() + + + /** + * IS_TEXT + * + * @param mixed $value Value to check + * @return boolean + */ + public static function IS_TEXT($value = NULL) { + $value = self::flattenSingleValue($value); + + return (is_string($value) && !self::IS_ERROR($value)); + } // function IS_TEXT() + + + /** + * IS_NONTEXT + * + * @param mixed $value Value to check + * @return boolean + */ + public static function IS_NONTEXT($value = NULL) { + return !self::IS_TEXT($value); + } // function IS_NONTEXT() + + + /** + * VERSION + * + * @return string Version information + */ + public static function VERSION() { + return 'PHPExcel ##VERSION##, ##DATE##'; + } // function VERSION() + + + /** + * N + * + * Returns a value converted to a number + * + * @param value The value you want converted + * @return number N converts values listed in the following table + * If value is or refers to N returns + * A number That number + * A date The serial number of that date + * TRUE 1 + * FALSE 0 + * An error value The error value + * Anything else 0 + */ + public static function N($value = NULL) { + while (is_array($value)) { + $value = array_shift($value); + } + + switch (gettype($value)) { + case 'double' : + case 'float' : + case 'integer' : + return $value; + break; + case 'boolean' : + return (integer) $value; + break; + case 'string' : + // Errors + if ((strlen($value) > 0) && ($value{0} == '#')) { + return $value; + } + break; + } + return 0; + } // function N() + + + /** + * TYPE + * + * Returns a number that identifies the type of a value + * + * @param value The value you want tested + * @return number N converts values listed in the following table + * If value is or refers to N returns + * A number 1 + * Text 2 + * Logical Value 4 + * An error value 16 + * Array or Matrix 64 + */ + public static function TYPE($value = NULL) { + $value = self::flattenArrayIndexed($value); + if (is_array($value) && (count($value) > 1)) { + $a = array_keys($value); + $a = array_pop($a); + // Range of cells is an error + if (self::isCellValue($a)) { + return 16; + // Test for Matrix + } elseif (self::isMatrixValue($a)) { + return 64; + } + } elseif(empty($value)) { + // Empty Cell + return 1; + } + $value = self::flattenSingleValue($value); + + if (($value === NULL) || (is_float($value)) || (is_int($value))) { + return 1; + } elseif(is_bool($value)) { + return 4; + } elseif(is_array($value)) { + return 64; + } elseif(is_string($value)) { + // Errors + if ((strlen($value) > 0) && ($value{0} == '#')) { + return 16; + } + return 2; + } + return 0; + } // function TYPE() + + + /** + * Convert a multi-dimensional array to a simple 1-dimensional array + * + * @param array $array Array to be flattened + * @return array Flattened array + */ + public static function flattenArray($array) { + if (!is_array($array)) { + return (array) $array; + } + + $arrayValues = array(); + foreach ($array as $value) { + if (is_array($value)) { + foreach ($value as $val) { + if (is_array($val)) { + foreach ($val as $v) { + $arrayValues[] = $v; + } + } else { + $arrayValues[] = $val; + } + } + } else { + $arrayValues[] = $value; + } + } + + return $arrayValues; + } // function flattenArray() + + + /** + * Convert a multi-dimensional array to a simple 1-dimensional array, but retain an element of indexing + * + * @param array $array Array to be flattened + * @return array Flattened array + */ + public static function flattenArrayIndexed($array) { + if (!is_array($array)) { + return (array) $array; + } + + $arrayValues = array(); + foreach ($array as $k1 => $value) { + if (is_array($value)) { + foreach ($value as $k2 => $val) { + if (is_array($val)) { + foreach ($val as $k3 => $v) { + $arrayValues[$k1.'.'.$k2.'.'.$k3] = $v; + } + } else { + $arrayValues[$k1.'.'.$k2] = $val; + } + } + } else { + $arrayValues[$k1] = $value; + } + } + + return $arrayValues; + } // function flattenArrayIndexed() + + + /** + * Convert an array to a single scalar value by extracting the first element + * + * @param mixed $value Array or scalar value + * @return mixed + */ + public static function flattenSingleValue($value = '') { + while (is_array($value)) { + $value = array_pop($value); + } + + return $value; + } // function flattenSingleValue() + +} // class PHPExcel_Calculation_Functions + + +// +// There are a few mathematical functions that aren't available on all versions of PHP for all platforms +// These functions aren't available in Windows implementations of PHP prior to version 5.3.0 +// So we test if they do exist for this version of PHP/operating platform; and if not we create them +// +if (!function_exists('acosh')) { + function acosh($x) { + return 2 * log(sqrt(($x + 1) / 2) + sqrt(($x - 1) / 2)); + } // function acosh() +} + +if (!function_exists('asinh')) { + function asinh($x) { + return log($x + sqrt(1 + $x * $x)); + } // function asinh() +} + +if (!function_exists('atanh')) { + function atanh($x) { + return (log(1 + $x) - log(1 - $x)) / 2; + } // function atanh() +} + + +// +// Strangely, PHP doesn't have a mb_str_replace multibyte function +// As we'll only ever use this function with UTF-8 characters, we can simply "hard-code" the character set +// +if ((!function_exists('mb_str_replace')) && + (function_exists('mb_substr')) && (function_exists('mb_strlen')) && (function_exists('mb_strpos'))) { + function mb_str_replace($search, $replace, $subject) { + if(is_array($subject)) { + $ret = array(); + foreach($subject as $key => $val) { + $ret[$key] = mb_str_replace($search, $replace, $val); + } + return $ret; + } + + foreach((array) $search as $key => $s) { + if($s == '') { + continue; + } + $r = !is_array($replace) ? $replace : (array_key_exists($key, $replace) ? $replace[$key] : ''); + $pos = mb_strpos($subject, $s, 0, 'UTF-8'); + while($pos !== false) { + $subject = mb_substr($subject, 0, $pos, 'UTF-8') . $r . mb_substr($subject, $pos + mb_strlen($s, 'UTF-8'), 65535, 'UTF-8'); + $pos = mb_strpos($subject, $s, $pos + mb_strlen($r, 'UTF-8'), 'UTF-8'); + } + } + return $subject; + } +} diff --git a/admin/helpers/PHPExcel/Calculation/Logical.php b/admin/helpers/PHPExcel/Calculation/Logical.php new file mode 100644 index 00000000..48fdb17f --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/Logical.php @@ -0,0 +1,288 @@ + $arg) { + // Is it a boolean value? + if (is_bool($arg)) { + $returnValue = $returnValue && $arg; + } elseif ((is_numeric($arg)) && (!is_string($arg))) { + $returnValue = $returnValue && ($arg != 0); + } elseif (is_string($arg)) { + $arg = strtoupper($arg); + if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) { + $arg = TRUE; + } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) { + $arg = FALSE; + } else { + return PHPExcel_Calculation_Functions::VALUE(); + } + $returnValue = $returnValue && ($arg != 0); + } + } + + // Return + if ($argCount < 0) { + return PHPExcel_Calculation_Functions::VALUE(); + } + return $returnValue; + } // function LOGICAL_AND() + + + /** + * LOGICAL_OR + * + * Returns boolean TRUE if any argument is TRUE; returns FALSE if all arguments are FALSE. + * + * Excel Function: + * =OR(logical1[,logical2[, ...]]) + * + * The arguments must evaluate to logical values such as TRUE or FALSE, or the arguments must be arrays + * or references that contain logical values. + * + * Boolean arguments are treated as True or False as appropriate + * Integer or floating point arguments are treated as True, except for 0 or 0.0 which are False + * If any argument value is a string, or a Null, the function returns a #VALUE! error, unless the string holds + * the value TRUE or FALSE, in which case it is evaluated as the corresponding boolean value + * + * @access public + * @category Logical Functions + * @param mixed $arg,... Data values + * @return boolean The logical OR of the arguments. + */ + public static function LOGICAL_OR() { + // Return value + $returnValue = FALSE; + + // Loop through the arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + $argCount = -1; + foreach ($aArgs as $argCount => $arg) { + // Is it a boolean value? + if (is_bool($arg)) { + $returnValue = $returnValue || $arg; + } elseif ((is_numeric($arg)) && (!is_string($arg))) { + $returnValue = $returnValue || ($arg != 0); + } elseif (is_string($arg)) { + $arg = strtoupper($arg); + if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) { + $arg = TRUE; + } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) { + $arg = FALSE; + } else { + return PHPExcel_Calculation_Functions::VALUE(); + } + $returnValue = $returnValue || ($arg != 0); + } + } + + // Return + if ($argCount < 0) { + return PHPExcel_Calculation_Functions::VALUE(); + } + return $returnValue; + } // function LOGICAL_OR() + + + /** + * NOT + * + * Returns the boolean inverse of the argument. + * + * Excel Function: + * =NOT(logical) + * + * The argument must evaluate to a logical value such as TRUE or FALSE + * + * Boolean arguments are treated as True or False as appropriate + * Integer or floating point arguments are treated as True, except for 0 or 0.0 which are False + * If any argument value is a string, or a Null, the function returns a #VALUE! error, unless the string holds + * the value TRUE or FALSE, in which case it is evaluated as the corresponding boolean value + * + * @access public + * @category Logical Functions + * @param mixed $logical A value or expression that can be evaluated to TRUE or FALSE + * @return boolean The boolean inverse of the argument. + */ + public static function NOT($logical=FALSE) { + $logical = PHPExcel_Calculation_Functions::flattenSingleValue($logical); + if (is_string($logical)) { + $logical = strtoupper($logical); + if (($logical == 'TRUE') || ($logical == PHPExcel_Calculation::getTRUE())) { + return FALSE; + } elseif (($logical == 'FALSE') || ($logical == PHPExcel_Calculation::getFALSE())) { + return TRUE; + } else { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + + return !$logical; + } // function NOT() + + /** + * STATEMENT_IF + * + * Returns one value if a condition you specify evaluates to TRUE and another value if it evaluates to FALSE. + * + * Excel Function: + * =IF(condition[,returnIfTrue[,returnIfFalse]]) + * + * Condition is any value or expression that can be evaluated to TRUE or FALSE. + * For example, A10=100 is a logical expression; if the value in cell A10 is equal to 100, + * the expression evaluates to TRUE. Otherwise, the expression evaluates to FALSE. + * This argument can use any comparison calculation operator. + * ReturnIfTrue is the value that is returned if condition evaluates to TRUE. + * For example, if this argument is the text string "Within budget" and the condition argument evaluates to TRUE, + * then the IF function returns the text "Within budget" + * If condition is TRUE and ReturnIfTrue is blank, this argument returns 0 (zero). To display the word TRUE, use + * the logical value TRUE for this argument. + * ReturnIfTrue can be another formula. + * ReturnIfFalse is the value that is returned if condition evaluates to FALSE. + * For example, if this argument is the text string "Over budget" and the condition argument evaluates to FALSE, + * then the IF function returns the text "Over budget". + * If condition is FALSE and ReturnIfFalse is omitted, then the logical value FALSE is returned. + * If condition is FALSE and ReturnIfFalse is blank, then the value 0 (zero) is returned. + * ReturnIfFalse can be another formula. + * + * @access public + * @category Logical Functions + * @param mixed $condition Condition to evaluate + * @param mixed $returnIfTrue Value to return when condition is true + * @param mixed $returnIfFalse Optional value to return when condition is false + * @return mixed The value of returnIfTrue or returnIfFalse determined by condition + */ + public static function STATEMENT_IF($condition = TRUE, $returnIfTrue = 0, $returnIfFalse = FALSE) { + $condition = (is_null($condition)) ? TRUE : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($condition); + $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue); + $returnIfFalse = (is_null($returnIfFalse)) ? FALSE : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfFalse); + + return ($condition) ? $returnIfTrue : $returnIfFalse; + } // function STATEMENT_IF() + + + /** + * IFERROR + * + * Excel Function: + * =IFERROR(testValue,errorpart) + * + * @access public + * @category Logical Functions + * @param mixed $testValue Value to check, is also the value returned when no error + * @param mixed $errorpart Value to return when testValue is an error condition + * @return mixed The value of errorpart or testValue determined by error condition + */ + public static function IFERROR($testValue = '', $errorpart = '') { + $testValue = (is_null($testValue)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($testValue); + $errorpart = (is_null($errorpart)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($errorpart); + + return self::STATEMENT_IF(PHPExcel_Calculation_Functions::IS_ERROR($testValue), $errorpart, $testValue); + } // function IFERROR() + +} // class PHPExcel_Calculation_Logical diff --git a/admin/helpers/PHPExcel/Calculation/LookupRef.php b/admin/helpers/PHPExcel/Calculation/LookupRef.php new file mode 100644 index 00000000..94f42e5f --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/LookupRef.php @@ -0,0 +1,881 @@ + '') { + if (strpos($sheetText,' ') !== False) { $sheetText = "'".$sheetText."'"; } + $sheetText .='!'; + } + if ((!is_bool($referenceStyle)) || $referenceStyle) { + $rowRelative = $columnRelative = '$'; + $column = PHPExcel_Cell::stringFromColumnIndex($column-1); + if (($relativity == 2) || ($relativity == 4)) { $columnRelative = ''; } + if (($relativity == 3) || ($relativity == 4)) { $rowRelative = ''; } + return $sheetText.$columnRelative.$column.$rowRelative.$row; + } else { + if (($relativity == 2) || ($relativity == 4)) { $column = '['.$column.']'; } + if (($relativity == 3) || ($relativity == 4)) { $row = '['.$row.']'; } + return $sheetText.'R'.$row.'C'.$column; + } + } // function CELL_ADDRESS() + + + /** + * COLUMN + * + * Returns the column number of the given cell reference + * If the cell reference is a range of cells, COLUMN returns the column numbers of each column in the reference as a horizontal array. + * If cell reference is omitted, and the function is being called through the calculation engine, then it is assumed to be the + * reference of the cell in which the COLUMN function appears; otherwise this function returns 0. + * + * Excel Function: + * =COLUMN([cellAddress]) + * + * @param cellAddress A reference to a range of cells for which you want the column numbers + * @return integer or array of integer + */ + public static function COLUMN($cellAddress=Null) { + if (is_null($cellAddress) || trim($cellAddress) === '') { return 0; } + + if (is_array($cellAddress)) { + foreach($cellAddress as $columnKey => $value) { + $columnKey = preg_replace('/[^a-z]/i','',$columnKey); + return (integer) PHPExcel_Cell::columnIndexFromString($columnKey); + } + } else { + if (strpos($cellAddress,'!') !== false) { + list($sheet,$cellAddress) = explode('!',$cellAddress); + } + if (strpos($cellAddress,':') !== false) { + list($startAddress,$endAddress) = explode(':',$cellAddress); + $startAddress = preg_replace('/[^a-z]/i','',$startAddress); + $endAddress = preg_replace('/[^a-z]/i','',$endAddress); + $returnValue = array(); + do { + $returnValue[] = (integer) PHPExcel_Cell::columnIndexFromString($startAddress); + } while ($startAddress++ != $endAddress); + return $returnValue; + } else { + $cellAddress = preg_replace('/[^a-z]/i','',$cellAddress); + return (integer) PHPExcel_Cell::columnIndexFromString($cellAddress); + } + } + } // function COLUMN() + + + /** + * COLUMNS + * + * Returns the number of columns in an array or reference. + * + * Excel Function: + * =COLUMNS(cellAddress) + * + * @param cellAddress An array or array formula, or a reference to a range of cells for which you want the number of columns + * @return integer The number of columns in cellAddress + */ + public static function COLUMNS($cellAddress=Null) { + if (is_null($cellAddress) || $cellAddress === '') { + return 1; + } elseif (!is_array($cellAddress)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + $x = array_keys($cellAddress); + $x = array_shift($x); + $isMatrix = (is_numeric($x)); + list($columns,$rows) = PHPExcel_Calculation::_getMatrixDimensions($cellAddress); + + if ($isMatrix) { + return $rows; + } else { + return $columns; + } + } // function COLUMNS() + + + /** + * ROW + * + * Returns the row number of the given cell reference + * If the cell reference is a range of cells, ROW returns the row numbers of each row in the reference as a vertical array. + * If cell reference is omitted, and the function is being called through the calculation engine, then it is assumed to be the + * reference of the cell in which the ROW function appears; otherwise this function returns 0. + * + * Excel Function: + * =ROW([cellAddress]) + * + * @param cellAddress A reference to a range of cells for which you want the row numbers + * @return integer or array of integer + */ + public static function ROW($cellAddress=Null) { + if (is_null($cellAddress) || trim($cellAddress) === '') { return 0; } + + if (is_array($cellAddress)) { + foreach($cellAddress as $columnKey => $rowValue) { + foreach($rowValue as $rowKey => $cellValue) { + return (integer) preg_replace('/[^0-9]/i','',$rowKey); + } + } + } else { + if (strpos($cellAddress,'!') !== false) { + list($sheet,$cellAddress) = explode('!',$cellAddress); + } + if (strpos($cellAddress,':') !== false) { + list($startAddress,$endAddress) = explode(':',$cellAddress); + $startAddress = preg_replace('/[^0-9]/','',$startAddress); + $endAddress = preg_replace('/[^0-9]/','',$endAddress); + $returnValue = array(); + do { + $returnValue[][] = (integer) $startAddress; + } while ($startAddress++ != $endAddress); + return $returnValue; + } else { + list($cellAddress) = explode(':',$cellAddress); + return (integer) preg_replace('/[^0-9]/','',$cellAddress); + } + } + } // function ROW() + + + /** + * ROWS + * + * Returns the number of rows in an array or reference. + * + * Excel Function: + * =ROWS(cellAddress) + * + * @param cellAddress An array or array formula, or a reference to a range of cells for which you want the number of rows + * @return integer The number of rows in cellAddress + */ + public static function ROWS($cellAddress=Null) { + if (is_null($cellAddress) || $cellAddress === '') { + return 1; + } elseif (!is_array($cellAddress)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + $i = array_keys($cellAddress); + $isMatrix = (is_numeric(array_shift($i))); + list($columns,$rows) = PHPExcel_Calculation::_getMatrixDimensions($cellAddress); + + if ($isMatrix) { + return $columns; + } else { + return $rows; + } + } // function ROWS() + + + /** + * HYPERLINK + * + * Excel Function: + * =HYPERLINK(linkURL,displayName) + * + * @access public + * @category Logical Functions + * @param string $linkURL Value to check, is also the value returned when no error + * @param string $displayName Value to return when testValue is an error condition + * @param PHPExcel_Cell $pCell The cell to set the hyperlink in + * @return mixed The value of $displayName (or $linkURL if $displayName was blank) + */ + public static function HYPERLINK($linkURL = '', $displayName = null, PHPExcel_Cell $pCell = null) { + $args = func_get_args(); + $pCell = array_pop($args); + + $linkURL = (is_null($linkURL)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($linkURL); + $displayName = (is_null($displayName)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($displayName); + + if ((!is_object($pCell)) || (trim($linkURL) == '')) { + return PHPExcel_Calculation_Functions::REF(); + } + + if ((is_object($displayName)) || trim($displayName) == '') { + $displayName = $linkURL; + } + + $pCell->getHyperlink()->setUrl($linkURL); + + return $displayName; + } // function HYPERLINK() + + + /** + * INDIRECT + * + * Returns the reference specified by a text string. + * References are immediately evaluated to display their contents. + * + * Excel Function: + * =INDIRECT(cellAddress) + * + * NOTE - INDIRECT() does not yet support the optional a1 parameter introduced in Excel 2010 + * + * @param cellAddress $cellAddress The cell address of the current cell (containing this formula) + * @param PHPExcel_Cell $pCell The current cell (containing this formula) + * @return mixed The cells referenced by cellAddress + * + * @todo Support for the optional a1 parameter introduced in Excel 2010 + * + */ + public static function INDIRECT($cellAddress = NULL, PHPExcel_Cell $pCell = NULL) { + $cellAddress = PHPExcel_Calculation_Functions::flattenSingleValue($cellAddress); + if (is_null($cellAddress) || $cellAddress === '') { + return PHPExcel_Calculation_Functions::REF(); + } + + $cellAddress1 = $cellAddress; + $cellAddress2 = NULL; + if (strpos($cellAddress,':') !== false) { + list($cellAddress1,$cellAddress2) = explode(':',$cellAddress); + } + + if ((!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $cellAddress1, $matches)) || + ((!is_null($cellAddress2)) && (!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $cellAddress2, $matches)))) { + if (!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $cellAddress1, $matches)) { + return PHPExcel_Calculation_Functions::REF(); + } + + if (strpos($cellAddress,'!') !== FALSE) { + list($sheetName, $cellAddress) = explode('!',$cellAddress); + $sheetName = trim($sheetName, "'"); + $pSheet = $pCell->getWorksheet()->getParent()->getSheetByName($sheetName); + } else { + $pSheet = $pCell->getWorksheet(); + } + + return PHPExcel_Calculation::getInstance()->extractNamedRange($cellAddress, $pSheet, FALSE); + } + + if (strpos($cellAddress,'!') !== FALSE) { + list($sheetName,$cellAddress) = explode('!',$cellAddress); + $sheetName = trim($sheetName, "'"); + $pSheet = $pCell->getWorksheet()->getParent()->getSheetByName($sheetName); + } else { + $pSheet = $pCell->getWorksheet(); + } + + return PHPExcel_Calculation::getInstance()->extractCellRange($cellAddress, $pSheet, FALSE); + } // function INDIRECT() + + + /** + * OFFSET + * + * Returns a reference to a range that is a specified number of rows and columns from a cell or range of cells. + * The reference that is returned can be a single cell or a range of cells. You can specify the number of rows and + * the number of columns to be returned. + * + * Excel Function: + * =OFFSET(cellAddress, rows, cols, [height], [width]) + * + * @param cellAddress The reference from which you want to base the offset. Reference must refer to a cell or + * range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value. + * @param rows The number of rows, up or down, that you want the upper-left cell to refer to. + * Using 5 as the rows argument specifies that the upper-left cell in the reference is + * five rows below reference. Rows can be positive (which means below the starting reference) + * or negative (which means above the starting reference). + * @param cols The number of columns, to the left or right, that you want the upper-left cell of the result + * to refer to. Using 5 as the cols argument specifies that the upper-left cell in the + * reference is five columns to the right of reference. Cols can be positive (which means + * to the right of the starting reference) or negative (which means to the left of the + * starting reference). + * @param height The height, in number of rows, that you want the returned reference to be. Height must be a positive number. + * @param width The width, in number of columns, that you want the returned reference to be. Width must be a positive number. + * @return string A reference to a cell or range of cells + */ + public static function OFFSET($cellAddress=Null,$rows=0,$columns=0,$height=null,$width=null) { + $rows = PHPExcel_Calculation_Functions::flattenSingleValue($rows); + $columns = PHPExcel_Calculation_Functions::flattenSingleValue($columns); + $height = PHPExcel_Calculation_Functions::flattenSingleValue($height); + $width = PHPExcel_Calculation_Functions::flattenSingleValue($width); + if ($cellAddress == Null) { + return 0; + } + + $args = func_get_args(); + $pCell = array_pop($args); + if (!is_object($pCell)) { + return PHPExcel_Calculation_Functions::REF(); + } + + $sheetName = NULL; + if (strpos($cellAddress,"!")) { + list($sheetName,$cellAddress) = explode("!",$cellAddress); + $sheetName = trim($sheetName, "'"); + } + if (strpos($cellAddress,":")) { + list($startCell,$endCell) = explode(":",$cellAddress); + } else { + $startCell = $endCell = $cellAddress; + } + list($startCellColumn,$startCellRow) = PHPExcel_Cell::coordinateFromString($startCell); + list($endCellColumn,$endCellRow) = PHPExcel_Cell::coordinateFromString($endCell); + + $startCellRow += $rows; + $startCellColumn = PHPExcel_Cell::columnIndexFromString($startCellColumn) - 1; + $startCellColumn += $columns; + + if (($startCellRow <= 0) || ($startCellColumn < 0)) { + return PHPExcel_Calculation_Functions::REF(); + } + $endCellColumn = PHPExcel_Cell::columnIndexFromString($endCellColumn) - 1; + if (($width != null) && (!is_object($width))) { + $endCellColumn = $startCellColumn + $width - 1; + } else { + $endCellColumn += $columns; + } + $startCellColumn = PHPExcel_Cell::stringFromColumnIndex($startCellColumn); + + if (($height != null) && (!is_object($height))) { + $endCellRow = $startCellRow + $height - 1; + } else { + $endCellRow += $rows; + } + + if (($endCellRow <= 0) || ($endCellColumn < 0)) { + return PHPExcel_Calculation_Functions::REF(); + } + $endCellColumn = PHPExcel_Cell::stringFromColumnIndex($endCellColumn); + + $cellAddress = $startCellColumn.$startCellRow; + if (($startCellColumn != $endCellColumn) || ($startCellRow != $endCellRow)) { + $cellAddress .= ':'.$endCellColumn.$endCellRow; + } + + if ($sheetName !== NULL) { + $pSheet = $pCell->getWorksheet()->getParent()->getSheetByName($sheetName); + } else { + $pSheet = $pCell->getWorksheet(); + } + + return PHPExcel_Calculation::getInstance()->extractCellRange($cellAddress, $pSheet, False); + } // function OFFSET() + + + /** + * CHOOSE + * + * Uses lookup_value to return a value from the list of value arguments. + * Use CHOOSE to select one of up to 254 values based on the lookup_value. + * + * Excel Function: + * =CHOOSE(index_num, value1, [value2], ...) + * + * @param index_num Specifies which value argument is selected. + * Index_num must be a number between 1 and 254, or a formula or reference to a cell containing a number + * between 1 and 254. + * @param value1... Value1 is required, subsequent values are optional. + * Between 1 to 254 value arguments from which CHOOSE selects a value or an action to perform based on + * index_num. The arguments can be numbers, cell references, defined names, formulas, functions, or + * text. + * @return mixed The selected value + */ + public static function CHOOSE() { + $chooseArgs = func_get_args(); + $chosenEntry = PHPExcel_Calculation_Functions::flattenArray(array_shift($chooseArgs)); + $entryCount = count($chooseArgs) - 1; + + if(is_array($chosenEntry)) { + $chosenEntry = array_shift($chosenEntry); + } + if ((is_numeric($chosenEntry)) && (!is_bool($chosenEntry))) { + --$chosenEntry; + } else { + return PHPExcel_Calculation_Functions::VALUE(); + } + $chosenEntry = floor($chosenEntry); + if (($chosenEntry < 0) || ($chosenEntry > $entryCount)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (is_array($chooseArgs[$chosenEntry])) { + return PHPExcel_Calculation_Functions::flattenArray($chooseArgs[$chosenEntry]); + } else { + return $chooseArgs[$chosenEntry]; + } + } // function CHOOSE() + + + /** + * MATCH + * + * The MATCH function searches for a specified item in a range of cells + * + * Excel Function: + * =MATCH(lookup_value, lookup_array, [match_type]) + * + * @param lookup_value The value that you want to match in lookup_array + * @param lookup_array The range of cells being searched + * @param match_type The number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered. + * @return integer The relative position of the found item + */ + public static function MATCH($lookup_value, $lookup_array, $match_type=1) { + $lookup_array = PHPExcel_Calculation_Functions::flattenArray($lookup_array); + $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value); + $match_type = (is_null($match_type)) ? 1 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($match_type); + // MATCH is not case sensitive + $lookup_value = strtolower($lookup_value); + + // lookup_value type has to be number, text, or logical values + if ((!is_numeric($lookup_value)) && (!is_string($lookup_value)) && (!is_bool($lookup_value))) { + return PHPExcel_Calculation_Functions::NA(); + } + + // match_type is 0, 1 or -1 + if (($match_type !== 0) && ($match_type !== -1) && ($match_type !== 1)) { + return PHPExcel_Calculation_Functions::NA(); + } + + // lookup_array should not be empty + $lookupArraySize = count($lookup_array); + if ($lookupArraySize <= 0) { + return PHPExcel_Calculation_Functions::NA(); + } + + // lookup_array should contain only number, text, or logical values, or empty (null) cells + foreach($lookup_array as $i => $lookupArrayValue) { + // check the type of the value + if ((!is_numeric($lookupArrayValue)) && (!is_string($lookupArrayValue)) && + (!is_bool($lookupArrayValue)) && (!is_null($lookupArrayValue))) { + return PHPExcel_Calculation_Functions::NA(); + } + // convert strings to lowercase for case-insensitive testing + if (is_string($lookupArrayValue)) { + $lookup_array[$i] = strtolower($lookupArrayValue); + } + if ((is_null($lookupArrayValue)) && (($match_type == 1) || ($match_type == -1))) { + $lookup_array = array_slice($lookup_array,0,$i-1); + } + } + + // if match_type is 1 or -1, the list has to be ordered + if ($match_type == 1) { + asort($lookup_array); + $keySet = array_keys($lookup_array); + } elseif($match_type == -1) { + arsort($lookup_array); + $keySet = array_keys($lookup_array); + } + + // ** + // find the match + // ** + // loop on the cells +// var_dump($lookup_array); +// echo '
'; + foreach($lookup_array as $i => $lookupArrayValue) { + if (($match_type == 0) && ($lookupArrayValue == $lookup_value)) { + // exact match + return ++$i; + } elseif (($match_type == -1) && ($lookupArrayValue <= $lookup_value)) { +// echo '$i = '.$i.' => '; +// var_dump($lookupArrayValue); +// echo '
'; +// echo 'Keyset = '; +// var_dump($keySet); +// echo '
'; + $i = array_search($i,$keySet); +// echo '$i='.$i.'
'; + // if match_type is -1 <=> find the smallest value that is greater than or equal to lookup_value + if ($i < 1){ + // 1st cell was allready smaller than the lookup_value + break; + } else { + // the previous cell was the match + return $keySet[$i-1]+1; + } + } elseif (($match_type == 1) && ($lookupArrayValue >= $lookup_value)) { +// echo '$i = '.$i.' => '; +// var_dump($lookupArrayValue); +// echo '
'; +// echo 'Keyset = '; +// var_dump($keySet); +// echo '
'; + $i = array_search($i,$keySet); +// echo '$i='.$i.'
'; + // if match_type is 1 <=> find the largest value that is less than or equal to lookup_value + if ($i < 1){ + // 1st cell was allready bigger than the lookup_value + break; + } else { + // the previous cell was the match + return $keySet[$i-1]+1; + } + } + } + + // unsuccessful in finding a match, return #N/A error value + return PHPExcel_Calculation_Functions::NA(); + } // function MATCH() + + + /** + * INDEX + * + * Uses an index to choose a value from a reference or array + * + * Excel Function: + * =INDEX(range_array, row_num, [column_num]) + * + * @param range_array A range of cells or an array constant + * @param row_num The row in array from which to return a value. If row_num is omitted, column_num is required. + * @param column_num The column in array from which to return a value. If column_num is omitted, row_num is required. + * @return mixed the value of a specified cell or array of cells + */ + public static function INDEX($arrayValues,$rowNum = 0,$columnNum = 0) { + + if (($rowNum < 0) || ($columnNum < 0)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (!is_array($arrayValues)) { + return PHPExcel_Calculation_Functions::REF(); + } + + $rowKeys = array_keys($arrayValues); + $columnKeys = @array_keys($arrayValues[$rowKeys[0]]); + + if ($columnNum > count($columnKeys)) { + return PHPExcel_Calculation_Functions::VALUE(); + } elseif ($columnNum == 0) { + if ($rowNum == 0) { + return $arrayValues; + } + $rowNum = $rowKeys[--$rowNum]; + $returnArray = array(); + foreach($arrayValues as $arrayColumn) { + if (is_array($arrayColumn)) { + if (isset($arrayColumn[$rowNum])) { + $returnArray[] = $arrayColumn[$rowNum]; + } else { + return $arrayValues[$rowNum]; + } + } else { + return $arrayValues[$rowNum]; + } + } + return $returnArray; + } + $columnNum = $columnKeys[--$columnNum]; + if ($rowNum > count($rowKeys)) { + return PHPExcel_Calculation_Functions::VALUE(); + } elseif ($rowNum == 0) { + return $arrayValues[$columnNum]; + } + $rowNum = $rowKeys[--$rowNum]; + + return $arrayValues[$rowNum][$columnNum]; + } // function INDEX() + + + /** + * TRANSPOSE + * + * @param array $matrixData A matrix of values + * @return array + * + * Unlike the Excel TRANSPOSE function, which will only work on a single row or column, this function will transpose a full matrix. + */ + public static function TRANSPOSE($matrixData) { + $returnMatrix = array(); + if (!is_array($matrixData)) { $matrixData = array(array($matrixData)); } + + $column = 0; + foreach($matrixData as $matrixRow) { + $row = 0; + foreach($matrixRow as $matrixCell) { + $returnMatrix[$row][$column] = $matrixCell; + ++$row; + } + ++$column; + } + return $returnMatrix; + } // function TRANSPOSE() + + + private static function _vlookupSort($a,$b) { + $f = array_keys($a); + $firstColumn = array_shift($f); + if (strtolower($a[$firstColumn]) == strtolower($b[$firstColumn])) { + return 0; + } + return (strtolower($a[$firstColumn]) < strtolower($b[$firstColumn])) ? -1 : 1; + } // function _vlookupSort() + + + /** + * VLOOKUP + * The VLOOKUP function searches for value in the left-most column of lookup_array and returns the value in the same row based on the index_number. + * @param lookup_value The value that you want to match in lookup_array + * @param lookup_array The range of cells being searched + * @param index_number The column number in table_array from which the matching value must be returned. The first column is 1. + * @param not_exact_match Determines if you are looking for an exact match based on lookup_value. + * @return mixed The value of the found cell + */ + public static function VLOOKUP($lookup_value, $lookup_array, $index_number, $not_exact_match=true) { + $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value); + $index_number = PHPExcel_Calculation_Functions::flattenSingleValue($index_number); + $not_exact_match = PHPExcel_Calculation_Functions::flattenSingleValue($not_exact_match); + + // index_number must be greater than or equal to 1 + if ($index_number < 1) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + // index_number must be less than or equal to the number of columns in lookup_array + if ((!is_array($lookup_array)) || (empty($lookup_array))) { + return PHPExcel_Calculation_Functions::REF(); + } else { + $f = array_keys($lookup_array); + $firstRow = array_pop($f); + if ((!is_array($lookup_array[$firstRow])) || ($index_number > count($lookup_array[$firstRow]))) { + return PHPExcel_Calculation_Functions::REF(); + } else { + $columnKeys = array_keys($lookup_array[$firstRow]); + $returnColumn = $columnKeys[--$index_number]; + $firstColumn = array_shift($columnKeys); + } + } + + if (!$not_exact_match) { + uasort($lookup_array,array('self','_vlookupSort')); + } + + $rowNumber = $rowValue = False; + foreach($lookup_array as $rowKey => $rowData) { + if ((is_numeric($lookup_value) && is_numeric($rowData[$firstColumn]) && ($rowData[$firstColumn] > $lookup_value)) || + (!is_numeric($lookup_value) && !is_numeric($rowData[$firstColumn]) && (strtolower($rowData[$firstColumn]) > strtolower($lookup_value)))) { + break; + } + $rowNumber = $rowKey; + $rowValue = $rowData[$firstColumn]; + } + + if ($rowNumber !== false) { + if ((!$not_exact_match) && ($rowValue != $lookup_value)) { + // if an exact match is required, we have what we need to return an appropriate response + return PHPExcel_Calculation_Functions::NA(); + } else { + // otherwise return the appropriate value + $result = $lookup_array[$rowNumber][$returnColumn]; + if ((is_numeric($lookup_value) && is_numeric($result)) || + (!is_numeric($lookup_value) && !is_numeric($result))) { + return $result; + } + } + } + + return PHPExcel_Calculation_Functions::NA(); + } // function VLOOKUP() + + +/** + * HLOOKUP + * The HLOOKUP function searches for value in the top-most row of lookup_array and returns the value in the same column based on the index_number. + * @param lookup_value The value that you want to match in lookup_array + * @param lookup_array The range of cells being searched + * @param index_number The row number in table_array from which the matching value must be returned. The first row is 1. + * @param not_exact_match Determines if you are looking for an exact match based on lookup_value. + * @return mixed The value of the found cell + */ + public static function HLOOKUP($lookup_value, $lookup_array, $index_number, $not_exact_match=true) { + $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value); + $index_number = PHPExcel_Calculation_Functions::flattenSingleValue($index_number); + $not_exact_match = PHPExcel_Calculation_Functions::flattenSingleValue($not_exact_match); + + // index_number must be greater than or equal to 1 + if ($index_number < 1) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + // index_number must be less than or equal to the number of columns in lookup_array + if ((!is_array($lookup_array)) || (empty($lookup_array))) { + return PHPExcel_Calculation_Functions::REF(); + } else { + $f = array_keys($lookup_array); + $firstRow = array_pop($f); + if ((!is_array($lookup_array[$firstRow])) || ($index_number > count($lookup_array[$firstRow]))) { + return PHPExcel_Calculation_Functions::REF(); + } else { + $columnKeys = array_keys($lookup_array[$firstRow]); + $firstkey = $f[0] - 1; + $returnColumn = $firstkey + $index_number; + $firstColumn = array_shift($f); + } + } + + if (!$not_exact_match) { + $firstRowH = asort($lookup_array[$firstColumn]); + } + + $rowNumber = $rowValue = False; + foreach($lookup_array[$firstColumn] as $rowKey => $rowData) { + if ((is_numeric($lookup_value) && is_numeric($rowData) && ($rowData > $lookup_value)) || + (!is_numeric($lookup_value) && !is_numeric($rowData) && (strtolower($rowData) > strtolower($lookup_value)))) { + break; + } + $rowNumber = $rowKey; + $rowValue = $rowData; + } + + if ($rowNumber !== false) { + if ((!$not_exact_match) && ($rowValue != $lookup_value)) { + // if an exact match is required, we have what we need to return an appropriate response + return PHPExcel_Calculation_Functions::NA(); + } else { + // otherwise return the appropriate value + $result = $lookup_array[$returnColumn][$rowNumber]; + return $result; + } + } + + return PHPExcel_Calculation_Functions::NA(); + } // function HLOOKUP() + + + /** + * LOOKUP + * The LOOKUP function searches for value either from a one-row or one-column range or from an array. + * @param lookup_value The value that you want to match in lookup_array + * @param lookup_vector The range of cells being searched + * @param result_vector The column from which the matching value must be returned + * @return mixed The value of the found cell + */ + public static function LOOKUP($lookup_value, $lookup_vector, $result_vector=null) { + $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value); + + if (!is_array($lookup_vector)) { + return PHPExcel_Calculation_Functions::NA(); + } + $lookupRows = count($lookup_vector); + $l = array_keys($lookup_vector); + $l = array_shift($l); + $lookupColumns = count($lookup_vector[$l]); + if ((($lookupRows == 1) && ($lookupColumns > 1)) || (($lookupRows == 2) && ($lookupColumns != 2))) { + $lookup_vector = self::TRANSPOSE($lookup_vector); + $lookupRows = count($lookup_vector); + $l = array_keys($lookup_vector); + $lookupColumns = count($lookup_vector[array_shift($l)]); + } + + if (is_null($result_vector)) { + $result_vector = $lookup_vector; + } + $resultRows = count($result_vector); + $l = array_keys($result_vector); + $l = array_shift($l); + $resultColumns = count($result_vector[$l]); + if ((($resultRows == 1) && ($resultColumns > 1)) || (($resultRows == 2) && ($resultColumns != 2))) { + $result_vector = self::TRANSPOSE($result_vector); + $resultRows = count($result_vector); + $r = array_keys($result_vector); + $resultColumns = count($result_vector[array_shift($r)]); + } + + if ($lookupRows == 2) { + $result_vector = array_pop($lookup_vector); + $lookup_vector = array_shift($lookup_vector); + } + if ($lookupColumns != 2) { + foreach($lookup_vector as &$value) { + if (is_array($value)) { + $k = array_keys($value); + $key1 = $key2 = array_shift($k); + $key2++; + $dataValue1 = $value[$key1]; + } else { + $key1 = 0; + $key2 = 1; + $dataValue1 = $value; + } + $dataValue2 = array_shift($result_vector); + if (is_array($dataValue2)) { + $dataValue2 = array_shift($dataValue2); + } + $value = array($key1 => $dataValue1, $key2 => $dataValue2); + } + unset($value); + } + + return self::VLOOKUP($lookup_value,$lookup_vector,2); + } // function LOOKUP() + +} // class PHPExcel_Calculation_LookupRef diff --git a/admin/helpers/PHPExcel/Calculation/MathTrig.php b/admin/helpers/PHPExcel/Calculation/MathTrig.php new file mode 100644 index 00000000..b2bb19d4 --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/MathTrig.php @@ -0,0 +1,1373 @@ + 1; --$i) { + if (($value % $i) == 0) { + $factorArray = array_merge($factorArray,self::_factors($value / $i)); + $factorArray = array_merge($factorArray,self::_factors($i)); + if ($i <= sqrt($value)) { + break; + } + } + } + if (!empty($factorArray)) { + rsort($factorArray); + return $factorArray; + } else { + return array((integer) $value); + } + } // function _factors() + + + private static function _romanCut($num, $n) { + return ($num - ($num % $n ) ) / $n; + } // function _romanCut() + + + /** + * ATAN2 + * + * This function calculates the arc tangent of the two variables x and y. It is similar to + * calculating the arc tangent of y ÷ x, except that the signs of both arguments are used + * to determine the quadrant of the result. + * The arctangent is the angle from the x-axis to a line containing the origin (0, 0) and a + * point with coordinates (xCoordinate, yCoordinate). The angle is given in radians between + * -pi and pi, excluding -pi. + * + * Note that the Excel ATAN2() function accepts its arguments in the reverse order to the standard + * PHP atan2() function, so we need to reverse them here before calling the PHP atan() function. + * + * Excel Function: + * ATAN2(xCoordinate,yCoordinate) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param float $xCoordinate The x-coordinate of the point. + * @param float $yCoordinate The y-coordinate of the point. + * @return float The inverse tangent of the specified x- and y-coordinates. + */ + public static function ATAN2($xCoordinate = NULL, $yCoordinate = NULL) { + $xCoordinate = PHPExcel_Calculation_Functions::flattenSingleValue($xCoordinate); + $yCoordinate = PHPExcel_Calculation_Functions::flattenSingleValue($yCoordinate); + + $xCoordinate = ($xCoordinate !== NULL) ? $xCoordinate : 0.0; + $yCoordinate = ($yCoordinate !== NULL) ? $yCoordinate : 0.0; + + if (((is_numeric($xCoordinate)) || (is_bool($xCoordinate))) && + ((is_numeric($yCoordinate))) || (is_bool($yCoordinate))) { + $xCoordinate = (float) $xCoordinate; + $yCoordinate = (float) $yCoordinate; + + if (($xCoordinate == 0) && ($yCoordinate == 0)) { + return PHPExcel_Calculation_Functions::DIV0(); + } + + return atan2($yCoordinate, $xCoordinate); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function ATAN2() + + + /** + * CEILING + * + * Returns number rounded up, away from zero, to the nearest multiple of significance. + * For example, if you want to avoid using pennies in your prices and your product is + * priced at $4.42, use the formula =CEILING(4.42,0.05) to round prices up to the + * nearest nickel. + * + * Excel Function: + * CEILING(number[,significance]) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param float $number The number you want to round. + * @param float $significance The multiple to which you want to round. + * @return float Rounded Number + */ + public static function CEILING($number, $significance = NULL) { + $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); + $significance = PHPExcel_Calculation_Functions::flattenSingleValue($significance); + + if ((is_null($significance)) && + (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC)) { + $significance = $number/abs($number); + } + + if ((is_numeric($number)) && (is_numeric($significance))) { + if ($significance == 0.0) { + return 0.0; + } elseif (self::SIGN($number) == self::SIGN($significance)) { + return ceil($number / $significance) * $significance; + } else { + return PHPExcel_Calculation_Functions::NaN(); + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function CEILING() + + + /** + * COMBIN + * + * Returns the number of combinations for a given number of items. Use COMBIN to + * determine the total possible number of groups for a given number of items. + * + * Excel Function: + * COMBIN(numObjs,numInSet) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param int $numObjs Number of different objects + * @param int $numInSet Number of objects in each combination + * @return int Number of combinations + */ + public static function COMBIN($numObjs, $numInSet) { + $numObjs = PHPExcel_Calculation_Functions::flattenSingleValue($numObjs); + $numInSet = PHPExcel_Calculation_Functions::flattenSingleValue($numInSet); + + if ((is_numeric($numObjs)) && (is_numeric($numInSet))) { + if ($numObjs < $numInSet) { + return PHPExcel_Calculation_Functions::NaN(); + } elseif ($numInSet < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + return round(self::FACT($numObjs) / self::FACT($numObjs - $numInSet)) / self::FACT($numInSet); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function COMBIN() + + + /** + * EVEN + * + * Returns number rounded up to the nearest even integer. + * You can use this function for processing items that come in twos. For example, + * a packing crate accepts rows of one or two items. The crate is full when + * the number of items, rounded up to the nearest two, matches the crate's + * capacity. + * + * Excel Function: + * EVEN(number) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param float $number Number to round + * @return int Rounded Number + */ + public static function EVEN($number) { + $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); + + if (is_null($number)) { + return 0; + } elseif (is_bool($number)) { + $number = (int) $number; + } + + if (is_numeric($number)) { + $significance = 2 * self::SIGN($number); + return (int) self::CEILING($number,$significance); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function EVEN() + + + /** + * FACT + * + * Returns the factorial of a number. + * The factorial of a number is equal to 1*2*3*...* number. + * + * Excel Function: + * FACT(factVal) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param float $factVal Factorial Value + * @return int Factorial + */ + public static function FACT($factVal) { + $factVal = PHPExcel_Calculation_Functions::flattenSingleValue($factVal); + + if (is_numeric($factVal)) { + if ($factVal < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + $factLoop = floor($factVal); + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { + if ($factVal > $factLoop) { + return PHPExcel_Calculation_Functions::NaN(); + } + } + + $factorial = 1; + while ($factLoop > 1) { + $factorial *= $factLoop--; + } + return $factorial ; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function FACT() + + + /** + * FACTDOUBLE + * + * Returns the double factorial of a number. + * + * Excel Function: + * FACTDOUBLE(factVal) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param float $factVal Factorial Value + * @return int Double Factorial + */ + public static function FACTDOUBLE($factVal) { + $factLoop = PHPExcel_Calculation_Functions::flattenSingleValue($factVal); + + if (is_numeric($factLoop)) { + $factLoop = floor($factLoop); + if ($factVal < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + $factorial = 1; + while ($factLoop > 1) { + $factorial *= $factLoop--; + --$factLoop; + } + return $factorial ; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function FACTDOUBLE() + + + /** + * FLOOR + * + * Rounds number down, toward zero, to the nearest multiple of significance. + * + * Excel Function: + * FLOOR(number[,significance]) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param float $number Number to round + * @param float $significance Significance + * @return float Rounded Number + */ + public static function FLOOR($number, $significance = NULL) { + $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); + $significance = PHPExcel_Calculation_Functions::flattenSingleValue($significance); + + if ((is_null($significance)) && (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC)) { + $significance = $number/abs($number); + } + + if ((is_numeric($number)) && (is_numeric($significance))) { + if ((float) $significance == 0.0) { + return PHPExcel_Calculation_Functions::DIV0(); + } + if (self::SIGN($number) == self::SIGN($significance)) { + return floor($number / $significance) * $significance; + } else { + return PHPExcel_Calculation_Functions::NaN(); + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function FLOOR() + + + /** + * GCD + * + * Returns the greatest common divisor of a series of numbers. + * The greatest common divisor is the largest integer that divides both + * number1 and number2 without a remainder. + * + * Excel Function: + * GCD(number1[,number2[, ...]]) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param mixed $arg,... Data values + * @return integer Greatest Common Divisor + */ + public static function GCD() { + $returnValue = 1; + $allValuesFactors = array(); + // Loop through arguments + foreach(PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $value) { + if (!is_numeric($value)) { + return PHPExcel_Calculation_Functions::VALUE(); + } elseif ($value == 0) { + continue; + } elseif($value < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + $myFactors = self::_factors($value); + $myCountedFactors = array_count_values($myFactors); + $allValuesFactors[] = $myCountedFactors; + } + $allValuesCount = count($allValuesFactors); + if ($allValuesCount == 0) { + return 0; + } + + $mergedArray = $allValuesFactors[0]; + for ($i=1;$i < $allValuesCount; ++$i) { + $mergedArray = array_intersect_key($mergedArray,$allValuesFactors[$i]); + } + $mergedArrayValues = count($mergedArray); + if ($mergedArrayValues == 0) { + return $returnValue; + } elseif ($mergedArrayValues > 1) { + foreach($mergedArray as $mergedKey => $mergedValue) { + foreach($allValuesFactors as $highestPowerTest) { + foreach($highestPowerTest as $testKey => $testValue) { + if (($testKey == $mergedKey) && ($testValue < $mergedValue)) { + $mergedArray[$mergedKey] = $testValue; + $mergedValue = $testValue; + } + } + } + } + + $returnValue = 1; + foreach($mergedArray as $key => $value) { + $returnValue *= pow($key,$value); + } + return $returnValue; + } else { + $keys = array_keys($mergedArray); + $key = $keys[0]; + $value = $mergedArray[$key]; + foreach($allValuesFactors as $testValue) { + foreach($testValue as $mergedKey => $mergedValue) { + if (($mergedKey == $key) && ($mergedValue < $value)) { + $value = $mergedValue; + } + } + } + return pow($key,$value); + } + } // function GCD() + + + /** + * INT + * + * Casts a floating point value to an integer + * + * Excel Function: + * INT(number) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param float $number Number to cast to an integer + * @return integer Integer value + */ + public static function INT($number) { + $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); + + if (is_null($number)) { + return 0; + } elseif (is_bool($number)) { + return (int) $number; + } + if (is_numeric($number)) { + return (int) floor($number); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function INT() + + + /** + * LCM + * + * Returns the lowest common multiplier of a series of numbers + * The least common multiple is the smallest positive integer that is a multiple + * of all integer arguments number1, number2, and so on. Use LCM to add fractions + * with different denominators. + * + * Excel Function: + * LCM(number1[,number2[, ...]]) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param mixed $arg,... Data values + * @return int Lowest Common Multiplier + */ + public static function LCM() { + $returnValue = 1; + $allPoweredFactors = array(); + // Loop through arguments + foreach(PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $value) { + if (!is_numeric($value)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + if ($value == 0) { + return 0; + } elseif ($value < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + $myFactors = self::_factors(floor($value)); + $myCountedFactors = array_count_values($myFactors); + $myPoweredFactors = array(); + foreach($myCountedFactors as $myCountedFactor => $myCountedPower) { + $myPoweredFactors[$myCountedFactor] = pow($myCountedFactor,$myCountedPower); + } + foreach($myPoweredFactors as $myPoweredValue => $myPoweredFactor) { + if (array_key_exists($myPoweredValue,$allPoweredFactors)) { + if ($allPoweredFactors[$myPoweredValue] < $myPoweredFactor) { + $allPoweredFactors[$myPoweredValue] = $myPoweredFactor; + } + } else { + $allPoweredFactors[$myPoweredValue] = $myPoweredFactor; + } + } + } + foreach($allPoweredFactors as $allPoweredFactor) { + $returnValue *= (integer) $allPoweredFactor; + } + return $returnValue; + } // function LCM() + + + /** + * LOG_BASE + * + * Returns the logarithm of a number to a specified base. The default base is 10. + * + * Excel Function: + * LOG(number[,base]) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param float $number The positive real number for which you want the logarithm + * @param float $base The base of the logarithm. If base is omitted, it is assumed to be 10. + * @return float + */ + public static function LOG_BASE($number = NULL, $base = 10) { + $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); + $base = (is_null($base)) ? 10 : (float) PHPExcel_Calculation_Functions::flattenSingleValue($base); + + if ((!is_numeric($base)) || (!is_numeric($number))) + return PHPExcel_Calculation_Functions::VALUE(); + if (($base <= 0) || ($number <= 0)) + return PHPExcel_Calculation_Functions::NaN(); + return log($number, $base); + } // function LOG_BASE() + + + /** + * MDETERM + * + * Returns the matrix determinant of an array. + * + * Excel Function: + * MDETERM(array) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param array $matrixValues A matrix of values + * @return float + */ + public static function MDETERM($matrixValues) { + $matrixData = array(); + if (!is_array($matrixValues)) { $matrixValues = array(array($matrixValues)); } + + $row = $maxColumn = 0; + foreach($matrixValues as $matrixRow) { + if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); } + $column = 0; + foreach($matrixRow as $matrixCell) { + if ((is_string($matrixCell)) || ($matrixCell === null)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $matrixData[$column][$row] = $matrixCell; + ++$column; + } + if ($column > $maxColumn) { $maxColumn = $column; } + ++$row; + } + if ($row != $maxColumn) { return PHPExcel_Calculation_Functions::VALUE(); } + + try { + $matrix = new PHPExcel_Shared_JAMA_Matrix($matrixData); + return $matrix->det(); + } catch (PHPExcel_Exception $ex) { + return PHPExcel_Calculation_Functions::VALUE(); + } + } // function MDETERM() + + + /** + * MINVERSE + * + * Returns the inverse matrix for the matrix stored in an array. + * + * Excel Function: + * MINVERSE(array) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param array $matrixValues A matrix of values + * @return array + */ + public static function MINVERSE($matrixValues) { + $matrixData = array(); + if (!is_array($matrixValues)) { $matrixValues = array(array($matrixValues)); } + + $row = $maxColumn = 0; + foreach($matrixValues as $matrixRow) { + if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); } + $column = 0; + foreach($matrixRow as $matrixCell) { + if ((is_string($matrixCell)) || ($matrixCell === null)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $matrixData[$column][$row] = $matrixCell; + ++$column; + } + if ($column > $maxColumn) { $maxColumn = $column; } + ++$row; + } + if ($row != $maxColumn) { return PHPExcel_Calculation_Functions::VALUE(); } + + try { + $matrix = new PHPExcel_Shared_JAMA_Matrix($matrixData); + return $matrix->inverse()->getArray(); + } catch (PHPExcel_Exception $ex) { + return PHPExcel_Calculation_Functions::VALUE(); + } + } // function MINVERSE() + + + /** + * MMULT + * + * @param array $matrixData1 A matrix of values + * @param array $matrixData2 A matrix of values + * @return array + */ + public static function MMULT($matrixData1,$matrixData2) { + $matrixAData = $matrixBData = array(); + if (!is_array($matrixData1)) { $matrixData1 = array(array($matrixData1)); } + if (!is_array($matrixData2)) { $matrixData2 = array(array($matrixData2)); } + + $rowA = 0; + foreach($matrixData1 as $matrixRow) { + if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); } + $columnA = 0; + foreach($matrixRow as $matrixCell) { + if ((is_string($matrixCell)) || ($matrixCell === null)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $matrixAData[$rowA][$columnA] = $matrixCell; + ++$columnA; + } + ++$rowA; + } + try { + $matrixA = new PHPExcel_Shared_JAMA_Matrix($matrixAData); + $rowB = 0; + foreach($matrixData2 as $matrixRow) { + if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); } + $columnB = 0; + foreach($matrixRow as $matrixCell) { + if ((is_string($matrixCell)) || ($matrixCell === null)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $matrixBData[$rowB][$columnB] = $matrixCell; + ++$columnB; + } + ++$rowB; + } + $matrixB = new PHPExcel_Shared_JAMA_Matrix($matrixBData); + + if (($rowA != $columnB) || ($rowB != $columnA)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + return $matrixA->times($matrixB)->getArray(); + } catch (PHPExcel_Exception $ex) { + return PHPExcel_Calculation_Functions::VALUE(); + } + } // function MMULT() + + + /** + * MOD + * + * @param int $a Dividend + * @param int $b Divisor + * @return int Remainder + */ + public static function MOD($a = 1, $b = 1) { + $a = PHPExcel_Calculation_Functions::flattenSingleValue($a); + $b = PHPExcel_Calculation_Functions::flattenSingleValue($b); + + if ($b == 0.0) { + return PHPExcel_Calculation_Functions::DIV0(); + } elseif (($a < 0.0) && ($b > 0.0)) { + return $b - fmod(abs($a),$b); + } elseif (($a > 0.0) && ($b < 0.0)) { + return $b + fmod($a,abs($b)); + } + + return fmod($a,$b); + } // function MOD() + + + /** + * MROUND + * + * Rounds a number to the nearest multiple of a specified value + * + * @param float $number Number to round + * @param int $multiple Multiple to which you want to round $number + * @return float Rounded Number + */ + public static function MROUND($number,$multiple) { + $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); + $multiple = PHPExcel_Calculation_Functions::flattenSingleValue($multiple); + + if ((is_numeric($number)) && (is_numeric($multiple))) { + if ($multiple == 0) { + return 0; + } + if ((self::SIGN($number)) == (self::SIGN($multiple))) { + $multiplier = 1 / $multiple; + return round($number * $multiplier) / $multiplier; + } + return PHPExcel_Calculation_Functions::NaN(); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function MROUND() + + + /** + * MULTINOMIAL + * + * Returns the ratio of the factorial of a sum of values to the product of factorials. + * + * @param array of mixed Data Series + * @return float + */ + public static function MULTINOMIAL() { + $summer = 0; + $divisor = 1; + // Loop through arguments + foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) { + // Is it a numeric value? + if (is_numeric($arg)) { + if ($arg < 1) { + return PHPExcel_Calculation_Functions::NaN(); + } + $summer += floor($arg); + $divisor *= self::FACT($arg); + } else { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + + // Return + if ($summer > 0) { + $summer = self::FACT($summer); + return $summer / $divisor; + } + return 0; + } // function MULTINOMIAL() + + + /** + * ODD + * + * Returns number rounded up to the nearest odd integer. + * + * @param float $number Number to round + * @return int Rounded Number + */ + public static function ODD($number) { + $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); + + if (is_null($number)) { + return 1; + } elseif (is_bool($number)) { + $number = (int) $number; + } + + if (is_numeric($number)) { + $significance = self::SIGN($number); + if ($significance == 0) { + return 1; + } + + $result = self::CEILING($number,$significance); + if ($result == self::EVEN($result)) { + $result += $significance; + } + + return (int) $result; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function ODD() + + + /** + * POWER + * + * Computes x raised to the power y. + * + * @param float $x + * @param float $y + * @return float + */ + public static function POWER($x = 0, $y = 2) { + $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); + $y = PHPExcel_Calculation_Functions::flattenSingleValue($y); + + // Validate parameters + if ($x == 0.0 && $y == 0.0) { + return PHPExcel_Calculation_Functions::NaN(); + } elseif ($x == 0.0 && $y < 0.0) { + return PHPExcel_Calculation_Functions::DIV0(); + } + + // Return + $result = pow($x, $y); + return (!is_nan($result) && !is_infinite($result)) ? $result : PHPExcel_Calculation_Functions::NaN(); + } // function POWER() + + + /** + * PRODUCT + * + * PRODUCT returns the product of all the values and cells referenced in the argument list. + * + * Excel Function: + * PRODUCT(value1[,value2[, ...]]) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function PRODUCT() { + // Return value + $returnValue = null; + + // Loop through arguments + foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + if (is_null($returnValue)) { + $returnValue = $arg; + } else { + $returnValue *= $arg; + } + } + } + + // Return + if (is_null($returnValue)) { + return 0; + } + return $returnValue; + } // function PRODUCT() + + + /** + * QUOTIENT + * + * QUOTIENT function returns the integer portion of a division. Numerator is the divided number + * and denominator is the divisor. + * + * Excel Function: + * QUOTIENT(value1[,value2[, ...]]) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function QUOTIENT() { + // Return value + $returnValue = null; + + // Loop through arguments + foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + if (is_null($returnValue)) { + $returnValue = ($arg == 0) ? 0 : $arg; + } else { + if (($returnValue == 0) || ($arg == 0)) { + $returnValue = 0; + } else { + $returnValue /= $arg; + } + } + } + } + + // Return + return intval($returnValue); + } // function QUOTIENT() + + + /** + * RAND + * + * @param int $min Minimal value + * @param int $max Maximal value + * @return int Random number + */ + public static function RAND($min = 0, $max = 0) { + $min = PHPExcel_Calculation_Functions::flattenSingleValue($min); + $max = PHPExcel_Calculation_Functions::flattenSingleValue($max); + + if ($min == 0 && $max == 0) { + return (rand(0,10000000)) / 10000000; + } else { + return rand($min, $max); + } + } // function RAND() + + + public static function ROMAN($aValue, $style=0) { + $aValue = PHPExcel_Calculation_Functions::flattenSingleValue($aValue); + $style = (is_null($style)) ? 0 : (integer) PHPExcel_Calculation_Functions::flattenSingleValue($style); + if ((!is_numeric($aValue)) || ($aValue < 0) || ($aValue >= 4000)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $aValue = (integer) $aValue; + if ($aValue == 0) { + return ''; + } + + $mill = Array('', 'M', 'MM', 'MMM', 'MMMM', 'MMMMM'); + $cent = Array('', 'C', 'CC', 'CCC', 'CD', 'D', 'DC', 'DCC', 'DCCC', 'CM'); + $tens = Array('', 'X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC'); + $ones = Array('', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX'); + + $roman = ''; + while ($aValue > 5999) { + $roman .= 'M'; + $aValue -= 1000; + } + $m = self::_romanCut($aValue, 1000); $aValue %= 1000; + $c = self::_romanCut($aValue, 100); $aValue %= 100; + $t = self::_romanCut($aValue, 10); $aValue %= 10; + + return $roman.$mill[$m].$cent[$c].$tens[$t].$ones[$aValue]; + } // function ROMAN() + + + /** + * ROUNDUP + * + * Rounds a number up to a specified number of decimal places + * + * @param float $number Number to round + * @param int $digits Number of digits to which you want to round $number + * @return float Rounded Number + */ + public static function ROUNDUP($number,$digits) { + $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); + $digits = PHPExcel_Calculation_Functions::flattenSingleValue($digits); + + if ((is_numeric($number)) && (is_numeric($digits))) { + $significance = pow(10,(int) $digits); + if ($number < 0.0) { + return floor($number * $significance) / $significance; + } else { + return ceil($number * $significance) / $significance; + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function ROUNDUP() + + + /** + * ROUNDDOWN + * + * Rounds a number down to a specified number of decimal places + * + * @param float $number Number to round + * @param int $digits Number of digits to which you want to round $number + * @return float Rounded Number + */ + public static function ROUNDDOWN($number,$digits) { + $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); + $digits = PHPExcel_Calculation_Functions::flattenSingleValue($digits); + + if ((is_numeric($number)) && (is_numeric($digits))) { + $significance = pow(10,(int) $digits); + if ($number < 0.0) { + return ceil($number * $significance) / $significance; + } else { + return floor($number * $significance) / $significance; + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function ROUNDDOWN() + + + /** + * SERIESSUM + * + * Returns the sum of a power series + * + * @param float $x Input value to the power series + * @param float $n Initial power to which you want to raise $x + * @param float $m Step by which to increase $n for each term in the series + * @param array of mixed Data Series + * @return float + */ + public static function SERIESSUM() { + // Return value + $returnValue = 0; + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + + $x = array_shift($aArgs); + $n = array_shift($aArgs); + $m = array_shift($aArgs); + + if ((is_numeric($x)) && (is_numeric($n)) && (is_numeric($m))) { + // Calculate + $i = 0; + foreach($aArgs as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + $returnValue += $arg * pow($x,$n + ($m * $i++)); + } else { + return PHPExcel_Calculation_Functions::VALUE(); + } + } + // Return + return $returnValue; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function SERIESSUM() + + + /** + * SIGN + * + * Determines the sign of a number. Returns 1 if the number is positive, zero (0) + * if the number is 0, and -1 if the number is negative. + * + * @param float $number Number to round + * @return int sign value + */ + public static function SIGN($number) { + $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); + + if (is_bool($number)) + return (int) $number; + if (is_numeric($number)) { + if ($number == 0.0) { + return 0; + } + return $number / abs($number); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function SIGN() + + + /** + * SQRTPI + * + * Returns the square root of (number * pi). + * + * @param float $number Number + * @return float Square Root of Number * Pi + */ + public static function SQRTPI($number) { + $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); + + if (is_numeric($number)) { + if ($number < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + return sqrt($number * M_PI) ; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function SQRTPI() + + + /** + * SUBTOTAL + * + * Returns a subtotal in a list or database. + * + * @param int the number 1 to 11 that specifies which function to + * use in calculating subtotals within a list. + * @param array of mixed Data Series + * @return float + */ + public static function SUBTOTAL() { + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + + // Calculate + $subtotal = array_shift($aArgs); + + if ((is_numeric($subtotal)) && (!is_string($subtotal))) { + switch($subtotal) { + case 1 : + return PHPExcel_Calculation_Statistical::AVERAGE($aArgs); + break; + case 2 : + return PHPExcel_Calculation_Statistical::COUNT($aArgs); + break; + case 3 : + return PHPExcel_Calculation_Statistical::COUNTA($aArgs); + break; + case 4 : + return PHPExcel_Calculation_Statistical::MAX($aArgs); + break; + case 5 : + return PHPExcel_Calculation_Statistical::MIN($aArgs); + break; + case 6 : + return self::PRODUCT($aArgs); + break; + case 7 : + return PHPExcel_Calculation_Statistical::STDEV($aArgs); + break; + case 8 : + return PHPExcel_Calculation_Statistical::STDEVP($aArgs); + break; + case 9 : + return self::SUM($aArgs); + break; + case 10 : + return PHPExcel_Calculation_Statistical::VARFunc($aArgs); + break; + case 11 : + return PHPExcel_Calculation_Statistical::VARP($aArgs); + break; + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function SUBTOTAL() + + + /** + * SUM + * + * SUM computes the sum of all the values and cells referenced in the argument list. + * + * Excel Function: + * SUM(value1[,value2[, ...]]) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function SUM() { + // Return value + $returnValue = 0; + + // Loop through the arguments + foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + $returnValue += $arg; + } + } + + // Return + return $returnValue; + } // function SUM() + + + /** + * SUMIF + * + * Counts the number of cells that contain numbers within the list of arguments + * + * Excel Function: + * SUMIF(value1[,value2[, ...]],condition) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param mixed $arg,... Data values + * @param string $condition The criteria that defines which cells will be summed. + * @return float + */ + public static function SUMIF($aArgs,$condition,$sumArgs = array()) { + // Return value + $returnValue = 0; + + $aArgs = PHPExcel_Calculation_Functions::flattenArray($aArgs); + $sumArgs = PHPExcel_Calculation_Functions::flattenArray($sumArgs); + if (empty($sumArgs)) { + $sumArgs = $aArgs; + } + $condition = PHPExcel_Calculation_Functions::_ifCondition($condition); + // Loop through arguments + foreach ($aArgs as $key => $arg) { + if (!is_numeric($arg)) { + $arg = str_replace('"', '""', $arg); + $arg = PHPExcel_Calculation::_wrapResult(strtoupper($arg)); + } + + $testCondition = '='.$arg.$condition; + if (PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) { + // Is it a value within our criteria + $returnValue += $sumArgs[$key]; + } + } + + // Return + return $returnValue; + } // function SUMIF() + + + /** + * SUMPRODUCT + * + * Excel Function: + * SUMPRODUCT(value1[,value2[, ...]]) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function SUMPRODUCT() { + $arrayList = func_get_args(); + + $wrkArray = PHPExcel_Calculation_Functions::flattenArray(array_shift($arrayList)); + $wrkCellCount = count($wrkArray); + + for ($i=0; $i< $wrkCellCount; ++$i) { + if ((!is_numeric($wrkArray[$i])) || (is_string($wrkArray[$i]))) { + $wrkArray[$i] = 0; + } + } + + foreach($arrayList as $matrixData) { + $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData); + $count = count($array2); + if ($wrkCellCount != $count) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + foreach ($array2 as $i => $val) { + if ((!is_numeric($val)) || (is_string($val))) { + $val = 0; + } + $wrkArray[$i] *= $val; + } + } + + return array_sum($wrkArray); + } // function SUMPRODUCT() + + + /** + * SUMSQ + * + * SUMSQ returns the sum of the squares of the arguments + * + * Excel Function: + * SUMSQ(value1[,value2[, ...]]) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function SUMSQ() { + // Return value + $returnValue = 0; + + // Loop through arguments + foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + $returnValue += ($arg * $arg); + } + } + + // Return + return $returnValue; + } // function SUMSQ() + + + /** + * SUMX2MY2 + * + * @param mixed[] $matrixData1 Matrix #1 + * @param mixed[] $matrixData2 Matrix #2 + * @return float + */ + public static function SUMX2MY2($matrixData1,$matrixData2) { + $array1 = PHPExcel_Calculation_Functions::flattenArray($matrixData1); + $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData2); + $count1 = count($array1); + $count2 = count($array2); + if ($count1 < $count2) { + $count = $count1; + } else { + $count = $count2; + } + + $result = 0; + for ($i = 0; $i < $count; ++$i) { + if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) && + ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) { + $result += ($array1[$i] * $array1[$i]) - ($array2[$i] * $array2[$i]); + } + } + + return $result; + } // function SUMX2MY2() + + + /** + * SUMX2PY2 + * + * @param mixed[] $matrixData1 Matrix #1 + * @param mixed[] $matrixData2 Matrix #2 + * @return float + */ + public static function SUMX2PY2($matrixData1,$matrixData2) { + $array1 = PHPExcel_Calculation_Functions::flattenArray($matrixData1); + $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData2); + $count1 = count($array1); + $count2 = count($array2); + if ($count1 < $count2) { + $count = $count1; + } else { + $count = $count2; + } + + $result = 0; + for ($i = 0; $i < $count; ++$i) { + if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) && + ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) { + $result += ($array1[$i] * $array1[$i]) + ($array2[$i] * $array2[$i]); + } + } + + return $result; + } // function SUMX2PY2() + + + /** + * SUMXMY2 + * + * @param mixed[] $matrixData1 Matrix #1 + * @param mixed[] $matrixData2 Matrix #2 + * @return float + */ + public static function SUMXMY2($matrixData1,$matrixData2) { + $array1 = PHPExcel_Calculation_Functions::flattenArray($matrixData1); + $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData2); + $count1 = count($array1); + $count2 = count($array2); + if ($count1 < $count2) { + $count = $count1; + } else { + $count = $count2; + } + + $result = 0; + for ($i = 0; $i < $count; ++$i) { + if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) && + ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) { + $result += ($array1[$i] - $array2[$i]) * ($array1[$i] - $array2[$i]); + } + } + + return $result; + } // function SUMXMY2() + + + /** + * TRUNC + * + * Truncates value to the number of fractional digits by number_digits. + * + * @param float $value + * @param int $digits + * @return float Truncated value + */ + public static function TRUNC($value = 0, $digits = 0) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $digits = PHPExcel_Calculation_Functions::flattenSingleValue($digits); + + // Validate parameters + if ((!is_numeric($value)) || (!is_numeric($digits))) + return PHPExcel_Calculation_Functions::VALUE(); + $digits = floor($digits); + + // Truncate + $adjust = pow(10, $digits); + + if (($digits > 0) && (rtrim(intval((abs($value) - abs(intval($value))) * $adjust),'0') < $adjust/10)) + return $value; + + return (intval($value * $adjust)) / $adjust; + } // function TRUNC() + +} // class PHPExcel_Calculation_MathTrig diff --git a/admin/helpers/PHPExcel/Calculation/Statistical.php b/admin/helpers/PHPExcel/Calculation/Statistical.php new file mode 100644 index 00000000..67e1951c --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/Statistical.php @@ -0,0 +1,3651 @@ + $value) { + if ((is_bool($value)) || (is_string($value)) || (is_null($value))) { + unset($array1[$key]); + unset($array2[$key]); + } + } + foreach($array2 as $key => $value) { + if ((is_bool($value)) || (is_string($value)) || (is_null($value))) { + unset($array1[$key]); + unset($array2[$key]); + } + } + $array1 = array_merge($array1); + $array2 = array_merge($array2); + + return True; + } // function _checkTrendArrays() + + + /** + * Beta function. + * + * @author Jaco van Kooten + * + * @param p require p>0 + * @param q require q>0 + * @return 0 if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow + */ + private static function _beta($p, $q) { + if ($p <= 0.0 || $q <= 0.0 || ($p + $q) > LOG_GAMMA_X_MAX_VALUE) { + return 0.0; + } else { + return exp(self::_logBeta($p, $q)); + } + } // function _beta() + + + /** + * Incomplete beta function + * + * @author Jaco van Kooten + * @author Paul Meagher + * + * The computation is based on formulas from Numerical Recipes, Chapter 6.4 (W.H. Press et al, 1992). + * @param x require 0<=x<=1 + * @param p require p>0 + * @param q require q>0 + * @return 0 if x<0, p<=0, q<=0 or p+q>2.55E305 and 1 if x>1 to avoid errors and over/underflow + */ + private static function _incompleteBeta($x, $p, $q) { + if ($x <= 0.0) { + return 0.0; + } elseif ($x >= 1.0) { + return 1.0; + } elseif (($p <= 0.0) || ($q <= 0.0) || (($p + $q) > LOG_GAMMA_X_MAX_VALUE)) { + return 0.0; + } + $beta_gam = exp((0 - self::_logBeta($p, $q)) + $p * log($x) + $q * log(1.0 - $x)); + if ($x < ($p + 1.0) / ($p + $q + 2.0)) { + return $beta_gam * self::_betaFraction($x, $p, $q) / $p; + } else { + return 1.0 - ($beta_gam * self::_betaFraction(1 - $x, $q, $p) / $q); + } + } // function _incompleteBeta() + + + // Function cache for _logBeta function + private static $_logBetaCache_p = 0.0; + private static $_logBetaCache_q = 0.0; + private static $_logBetaCache_result = 0.0; + + /** + * The natural logarithm of the beta function. + * + * @param p require p>0 + * @param q require q>0 + * @return 0 if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow + * @author Jaco van Kooten + */ + private static function _logBeta($p, $q) { + if ($p != self::$_logBetaCache_p || $q != self::$_logBetaCache_q) { + self::$_logBetaCache_p = $p; + self::$_logBetaCache_q = $q; + if (($p <= 0.0) || ($q <= 0.0) || (($p + $q) > LOG_GAMMA_X_MAX_VALUE)) { + self::$_logBetaCache_result = 0.0; + } else { + self::$_logBetaCache_result = self::_logGamma($p) + self::_logGamma($q) - self::_logGamma($p + $q); + } + } + return self::$_logBetaCache_result; + } // function _logBeta() + + + /** + * Evaluates of continued fraction part of incomplete beta function. + * Based on an idea from Numerical Recipes (W.H. Press et al, 1992). + * @author Jaco van Kooten + */ + private static function _betaFraction($x, $p, $q) { + $c = 1.0; + $sum_pq = $p + $q; + $p_plus = $p + 1.0; + $p_minus = $p - 1.0; + $h = 1.0 - $sum_pq * $x / $p_plus; + if (abs($h) < XMININ) { + $h = XMININ; + } + $h = 1.0 / $h; + $frac = $h; + $m = 1; + $delta = 0.0; + while ($m <= MAX_ITERATIONS && abs($delta-1.0) > PRECISION ) { + $m2 = 2 * $m; + // even index for d + $d = $m * ($q - $m) * $x / ( ($p_minus + $m2) * ($p + $m2)); + $h = 1.0 + $d * $h; + if (abs($h) < XMININ) { + $h = XMININ; + } + $h = 1.0 / $h; + $c = 1.0 + $d / $c; + if (abs($c) < XMININ) { + $c = XMININ; + } + $frac *= $h * $c; + // odd index for d + $d = -($p + $m) * ($sum_pq + $m) * $x / (($p + $m2) * ($p_plus + $m2)); + $h = 1.0 + $d * $h; + if (abs($h) < XMININ) { + $h = XMININ; + } + $h = 1.0 / $h; + $c = 1.0 + $d / $c; + if (abs($c) < XMININ) { + $c = XMININ; + } + $delta = $h * $c; + $frac *= $delta; + ++$m; + } + return $frac; + } // function _betaFraction() + + + /** + * logGamma function + * + * @version 1.1 + * @author Jaco van Kooten + * + * Original author was Jaco van Kooten. Ported to PHP by Paul Meagher. + * + * The natural logarithm of the gamma function.
+ * Based on public domain NETLIB (Fortran) code by W. J. Cody and L. Stoltz
+ * Applied Mathematics Division
+ * Argonne National Laboratory
+ * Argonne, IL 60439
+ *

+ * References: + *

    + *
  1. W. J. Cody and K. E. Hillstrom, 'Chebyshev Approximations for the Natural + * Logarithm of the Gamma Function,' Math. Comp. 21, 1967, pp. 198-203.
  2. + *
  3. K. E. Hillstrom, ANL/AMD Program ANLC366S, DGAMMA/DLGAMA, May, 1969.
  4. + *
  5. Hart, Et. Al., Computer Approximations, Wiley and sons, New York, 1968.
  6. + *
+ *

+ *

+ * From the original documentation: + *

+ *

+ * This routine calculates the LOG(GAMMA) function for a positive real argument X. + * Computation is based on an algorithm outlined in references 1 and 2. + * The program uses rational functions that theoretically approximate LOG(GAMMA) + * to at least 18 significant decimal digits. The approximation for X > 12 is from + * reference 3, while approximations for X < 12.0 are similar to those in reference + * 1, but are unpublished. The accuracy achieved depends on the arithmetic system, + * the compiler, the intrinsic functions, and proper selection of the + * machine-dependent constants. + *

+ *

+ * Error returns:
+ * The program returns the value XINF for X .LE. 0.0 or when overflow would occur. + * The computation is believed to be free of underflow and overflow. + *

+ * @return MAX_VALUE for x < 0.0 or when overflow would occur, i.e. x > 2.55E305 + */ + + // Function cache for logGamma + private static $_logGammaCache_result = 0.0; + private static $_logGammaCache_x = 0.0; + + private static function _logGamma($x) { + // Log Gamma related constants + static $lg_d1 = -0.5772156649015328605195174; + static $lg_d2 = 0.4227843350984671393993777; + static $lg_d4 = 1.791759469228055000094023; + + static $lg_p1 = array( 4.945235359296727046734888, + 201.8112620856775083915565, + 2290.838373831346393026739, + 11319.67205903380828685045, + 28557.24635671635335736389, + 38484.96228443793359990269, + 26377.48787624195437963534, + 7225.813979700288197698961 ); + static $lg_p2 = array( 4.974607845568932035012064, + 542.4138599891070494101986, + 15506.93864978364947665077, + 184793.2904445632425417223, + 1088204.76946882876749847, + 3338152.967987029735917223, + 5106661.678927352456275255, + 3074109.054850539556250927 ); + static $lg_p4 = array( 14745.02166059939948905062, + 2426813.369486704502836312, + 121475557.4045093227939592, + 2663432449.630976949898078, + 29403789566.34553899906876, + 170266573776.5398868392998, + 492612579337.743088758812, + 560625185622.3951465078242 ); + + static $lg_q1 = array( 67.48212550303777196073036, + 1113.332393857199323513008, + 7738.757056935398733233834, + 27639.87074403340708898585, + 54993.10206226157329794414, + 61611.22180066002127833352, + 36351.27591501940507276287, + 8785.536302431013170870835 ); + static $lg_q2 = array( 183.0328399370592604055942, + 7765.049321445005871323047, + 133190.3827966074194402448, + 1136705.821321969608938755, + 5267964.117437946917577538, + 13467014.54311101692290052, + 17827365.30353274213975932, + 9533095.591844353613395747 ); + static $lg_q4 = array( 2690.530175870899333379843, + 639388.5654300092398984238, + 41355999.30241388052042842, + 1120872109.61614794137657, + 14886137286.78813811542398, + 101680358627.2438228077304, + 341747634550.7377132798597, + 446315818741.9713286462081 ); + + static $lg_c = array( -0.001910444077728, + 8.4171387781295e-4, + -5.952379913043012e-4, + 7.93650793500350248e-4, + -0.002777777777777681622553, + 0.08333333333333333331554247, + 0.0057083835261 ); + + // Rough estimate of the fourth root of logGamma_xBig + static $lg_frtbig = 2.25e76; + static $pnt68 = 0.6796875; + + + if ($x == self::$_logGammaCache_x) { + return self::$_logGammaCache_result; + } + $y = $x; + if ($y > 0.0 && $y <= LOG_GAMMA_X_MAX_VALUE) { + if ($y <= EPS) { + $res = -log(y); + } elseif ($y <= 1.5) { + // --------------------- + // EPS .LT. X .LE. 1.5 + // --------------------- + if ($y < $pnt68) { + $corr = -log($y); + $xm1 = $y; + } else { + $corr = 0.0; + $xm1 = $y - 1.0; + } + if ($y <= 0.5 || $y >= $pnt68) { + $xden = 1.0; + $xnum = 0.0; + for ($i = 0; $i < 8; ++$i) { + $xnum = $xnum * $xm1 + $lg_p1[$i]; + $xden = $xden * $xm1 + $lg_q1[$i]; + } + $res = $corr + $xm1 * ($lg_d1 + $xm1 * ($xnum / $xden)); + } else { + $xm2 = $y - 1.0; + $xden = 1.0; + $xnum = 0.0; + for ($i = 0; $i < 8; ++$i) { + $xnum = $xnum * $xm2 + $lg_p2[$i]; + $xden = $xden * $xm2 + $lg_q2[$i]; + } + $res = $corr + $xm2 * ($lg_d2 + $xm2 * ($xnum / $xden)); + } + } elseif ($y <= 4.0) { + // --------------------- + // 1.5 .LT. X .LE. 4.0 + // --------------------- + $xm2 = $y - 2.0; + $xden = 1.0; + $xnum = 0.0; + for ($i = 0; $i < 8; ++$i) { + $xnum = $xnum * $xm2 + $lg_p2[$i]; + $xden = $xden * $xm2 + $lg_q2[$i]; + } + $res = $xm2 * ($lg_d2 + $xm2 * ($xnum / $xden)); + } elseif ($y <= 12.0) { + // ---------------------- + // 4.0 .LT. X .LE. 12.0 + // ---------------------- + $xm4 = $y - 4.0; + $xden = -1.0; + $xnum = 0.0; + for ($i = 0; $i < 8; ++$i) { + $xnum = $xnum * $xm4 + $lg_p4[$i]; + $xden = $xden * $xm4 + $lg_q4[$i]; + } + $res = $lg_d4 + $xm4 * ($xnum / $xden); + } else { + // --------------------------------- + // Evaluate for argument .GE. 12.0 + // --------------------------------- + $res = 0.0; + if ($y <= $lg_frtbig) { + $res = $lg_c[6]; + $ysq = $y * $y; + for ($i = 0; $i < 6; ++$i) + $res = $res / $ysq + $lg_c[$i]; + } + $res /= $y; + $corr = log($y); + $res = $res + log(SQRT2PI) - 0.5 * $corr; + $res += $y * ($corr - 1.0); + } + } else { + // -------------------------- + // Return for bad arguments + // -------------------------- + $res = MAX_VALUE; + } + // ------------------------------ + // Final adjustments and return + // ------------------------------ + self::$_logGammaCache_x = $x; + self::$_logGammaCache_result = $res; + return $res; + } // function _logGamma() + + + // + // Private implementation of the incomplete Gamma function + // + private static function _incompleteGamma($a,$x) { + static $max = 32; + $summer = 0; + for ($n=0; $n<=$max; ++$n) { + $divisor = $a; + for ($i=1; $i<=$n; ++$i) { + $divisor *= ($a + $i); + } + $summer += (pow($x,$n) / $divisor); + } + return pow($x,$a) * exp(0-$x) * $summer; + } // function _incompleteGamma() + + + // + // Private implementation of the Gamma function + // + private static function _gamma($data) { + if ($data == 0.0) return 0; + + static $p0 = 1.000000000190015; + static $p = array ( 1 => 76.18009172947146, + 2 => -86.50532032941677, + 3 => 24.01409824083091, + 4 => -1.231739572450155, + 5 => 1.208650973866179e-3, + 6 => -5.395239384953e-6 + ); + + $y = $x = $data; + $tmp = $x + 5.5; + $tmp -= ($x + 0.5) * log($tmp); + + $summer = $p0; + for ($j=1;$j<=6;++$j) { + $summer += ($p[$j] / ++$y); + } + return exp(0 - $tmp + log(SQRT2PI * $summer / $x)); + } // function _gamma() + + + /*************************************************************************** + * inverse_ncdf.php + * ------------------- + * begin : Friday, January 16, 2004 + * copyright : (C) 2004 Michael Nickerson + * email : nickersonm@yahoo.com + * + ***************************************************************************/ + private static function _inverse_ncdf($p) { + // Inverse ncdf approximation by Peter J. Acklam, implementation adapted to + // PHP by Michael Nickerson, using Dr. Thomas Ziegler's C implementation as + // a guide. http://home.online.no/~pjacklam/notes/invnorm/index.html + // I have not checked the accuracy of this implementation. Be aware that PHP + // will truncate the coeficcients to 14 digits. + + // You have permission to use and distribute this function freely for + // whatever purpose you want, but please show common courtesy and give credit + // where credit is due. + + // Input paramater is $p - probability - where 0 < p < 1. + + // Coefficients in rational approximations + static $a = array( 1 => -3.969683028665376e+01, + 2 => 2.209460984245205e+02, + 3 => -2.759285104469687e+02, + 4 => 1.383577518672690e+02, + 5 => -3.066479806614716e+01, + 6 => 2.506628277459239e+00 + ); + + static $b = array( 1 => -5.447609879822406e+01, + 2 => 1.615858368580409e+02, + 3 => -1.556989798598866e+02, + 4 => 6.680131188771972e+01, + 5 => -1.328068155288572e+01 + ); + + static $c = array( 1 => -7.784894002430293e-03, + 2 => -3.223964580411365e-01, + 3 => -2.400758277161838e+00, + 4 => -2.549732539343734e+00, + 5 => 4.374664141464968e+00, + 6 => 2.938163982698783e+00 + ); + + static $d = array( 1 => 7.784695709041462e-03, + 2 => 3.224671290700398e-01, + 3 => 2.445134137142996e+00, + 4 => 3.754408661907416e+00 + ); + + // Define lower and upper region break-points. + $p_low = 0.02425; //Use lower region approx. below this + $p_high = 1 - $p_low; //Use upper region approx. above this + + if (0 < $p && $p < $p_low) { + // Rational approximation for lower region. + $q = sqrt(-2 * log($p)); + return ((((($c[1] * $q + $c[2]) * $q + $c[3]) * $q + $c[4]) * $q + $c[5]) * $q + $c[6]) / + (((($d[1] * $q + $d[2]) * $q + $d[3]) * $q + $d[4]) * $q + 1); + } elseif ($p_low <= $p && $p <= $p_high) { + // Rational approximation for central region. + $q = $p - 0.5; + $r = $q * $q; + return ((((($a[1] * $r + $a[2]) * $r + $a[3]) * $r + $a[4]) * $r + $a[5]) * $r + $a[6]) * $q / + ((((($b[1] * $r + $b[2]) * $r + $b[3]) * $r + $b[4]) * $r + $b[5]) * $r + 1); + } elseif ($p_high < $p && $p < 1) { + // Rational approximation for upper region. + $q = sqrt(-2 * log(1 - $p)); + return -((((($c[1] * $q + $c[2]) * $q + $c[3]) * $q + $c[4]) * $q + $c[5]) * $q + $c[6]) / + (((($d[1] * $q + $d[2]) * $q + $d[3]) * $q + $d[4]) * $q + 1); + } + // If 0 < p < 1, return a null value + return PHPExcel_Calculation_Functions::NULL(); + } // function _inverse_ncdf() + + + private static function _inverse_ncdf2($prob) { + // Approximation of inverse standard normal CDF developed by + // B. Moro, "The Full Monte," Risk 8(2), Feb 1995, 57-58. + + $a1 = 2.50662823884; + $a2 = -18.61500062529; + $a3 = 41.39119773534; + $a4 = -25.44106049637; + + $b1 = -8.4735109309; + $b2 = 23.08336743743; + $b3 = -21.06224101826; + $b4 = 3.13082909833; + + $c1 = 0.337475482272615; + $c2 = 0.976169019091719; + $c3 = 0.160797971491821; + $c4 = 2.76438810333863E-02; + $c5 = 3.8405729373609E-03; + $c6 = 3.951896511919E-04; + $c7 = 3.21767881768E-05; + $c8 = 2.888167364E-07; + $c9 = 3.960315187E-07; + + $y = $prob - 0.5; + if (abs($y) < 0.42) { + $z = ($y * $y); + $z = $y * ((($a4 * $z + $a3) * $z + $a2) * $z + $a1) / (((($b4 * $z + $b3) * $z + $b2) * $z + $b1) * $z + 1); + } else { + if ($y > 0) { + $z = log(-log(1 - $prob)); + } else { + $z = log(-log($prob)); + } + $z = $c1 + $z * ($c2 + $z * ($c3 + $z * ($c4 + $z * ($c5 + $z * ($c6 + $z * ($c7 + $z * ($c8 + $z * $c9))))))); + if ($y < 0) { + $z = -$z; + } + } + return $z; + } // function _inverse_ncdf2() + + + private static function _inverse_ncdf3($p) { + // ALGORITHM AS241 APPL. STATIST. (1988) VOL. 37, NO. 3. + // Produces the normal deviate Z corresponding to a given lower + // tail area of P; Z is accurate to about 1 part in 10**16. + // + // This is a PHP version of the original FORTRAN code that can + // be found at http://lib.stat.cmu.edu/apstat/ + $split1 = 0.425; + $split2 = 5; + $const1 = 0.180625; + $const2 = 1.6; + + // coefficients for p close to 0.5 + $a0 = 3.3871328727963666080; + $a1 = 1.3314166789178437745E+2; + $a2 = 1.9715909503065514427E+3; + $a3 = 1.3731693765509461125E+4; + $a4 = 4.5921953931549871457E+4; + $a5 = 6.7265770927008700853E+4; + $a6 = 3.3430575583588128105E+4; + $a7 = 2.5090809287301226727E+3; + + $b1 = 4.2313330701600911252E+1; + $b2 = 6.8718700749205790830E+2; + $b3 = 5.3941960214247511077E+3; + $b4 = 2.1213794301586595867E+4; + $b5 = 3.9307895800092710610E+4; + $b6 = 2.8729085735721942674E+4; + $b7 = 5.2264952788528545610E+3; + + // coefficients for p not close to 0, 0.5 or 1. + $c0 = 1.42343711074968357734; + $c1 = 4.63033784615654529590; + $c2 = 5.76949722146069140550; + $c3 = 3.64784832476320460504; + $c4 = 1.27045825245236838258; + $c5 = 2.41780725177450611770E-1; + $c6 = 2.27238449892691845833E-2; + $c7 = 7.74545014278341407640E-4; + + $d1 = 2.05319162663775882187; + $d2 = 1.67638483018380384940; + $d3 = 6.89767334985100004550E-1; + $d4 = 1.48103976427480074590E-1; + $d5 = 1.51986665636164571966E-2; + $d6 = 5.47593808499534494600E-4; + $d7 = 1.05075007164441684324E-9; + + // coefficients for p near 0 or 1. + $e0 = 6.65790464350110377720; + $e1 = 5.46378491116411436990; + $e2 = 1.78482653991729133580; + $e3 = 2.96560571828504891230E-1; + $e4 = 2.65321895265761230930E-2; + $e5 = 1.24266094738807843860E-3; + $e6 = 2.71155556874348757815E-5; + $e7 = 2.01033439929228813265E-7; + + $f1 = 5.99832206555887937690E-1; + $f2 = 1.36929880922735805310E-1; + $f3 = 1.48753612908506148525E-2; + $f4 = 7.86869131145613259100E-4; + $f5 = 1.84631831751005468180E-5; + $f6 = 1.42151175831644588870E-7; + $f7 = 2.04426310338993978564E-15; + + $q = $p - 0.5; + + // computation for p close to 0.5 + if (abs($q) <= split1) { + $R = $const1 - $q * $q; + $z = $q * ((((((($a7 * $R + $a6) * $R + $a5) * $R + $a4) * $R + $a3) * $R + $a2) * $R + $a1) * $R + $a0) / + ((((((($b7 * $R + $b6) * $R + $b5) * $R + $b4) * $R + $b3) * $R + $b2) * $R + $b1) * $R + 1); + } else { + if ($q < 0) { + $R = $p; + } else { + $R = 1 - $p; + } + $R = pow(-log($R),2); + + // computation for p not close to 0, 0.5 or 1. + If ($R <= $split2) { + $R = $R - $const2; + $z = ((((((($c7 * $R + $c6) * $R + $c5) * $R + $c4) * $R + $c3) * $R + $c2) * $R + $c1) * $R + $c0) / + ((((((($d7 * $R + $d6) * $R + $d5) * $R + $d4) * $R + $d3) * $R + $d2) * $R + $d1) * $R + 1); + } else { + // computation for p near 0 or 1. + $R = $R - $split2; + $z = ((((((($e7 * $R + $e6) * $R + $e5) * $R + $e4) * $R + $e3) * $R + $e2) * $R + $e1) * $R + $e0) / + ((((((($f7 * $R + $f6) * $R + $f5) * $R + $f4) * $R + $f3) * $R + $f2) * $R + $f1) * $R + 1); + } + if ($q < 0) { + $z = -$z; + } + } + return $z; + } // function _inverse_ncdf3() + + + /** + * AVEDEV + * + * Returns the average of the absolute deviations of data points from their mean. + * AVEDEV is a measure of the variability in a data set. + * + * Excel Function: + * AVEDEV(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function AVEDEV() { + $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); + + // Return value + $returnValue = null; + + $aMean = self::AVERAGE($aArgs); + if ($aMean != PHPExcel_Calculation_Functions::DIV0()) { + $aCount = 0; + foreach ($aArgs as $k => $arg) { + if ((is_bool($arg)) && + ((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) { + $arg = (integer) $arg; + } + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + if (is_null($returnValue)) { + $returnValue = abs($arg - $aMean); + } else { + $returnValue += abs($arg - $aMean); + } + ++$aCount; + } + } + + // Return + if ($aCount == 0) { + return PHPExcel_Calculation_Functions::DIV0(); + } + return $returnValue / $aCount; + } + return PHPExcel_Calculation_Functions::NaN(); + } // function AVEDEV() + + + /** + * AVERAGE + * + * Returns the average (arithmetic mean) of the arguments + * + * Excel Function: + * AVERAGE(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function AVERAGE() { + $returnValue = $aCount = 0; + + // Loop through arguments + foreach (PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()) as $k => $arg) { + if ((is_bool($arg)) && + ((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) { + $arg = (integer) $arg; + } + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + if (is_null($returnValue)) { + $returnValue = $arg; + } else { + $returnValue += $arg; + } + ++$aCount; + } + } + + // Return + if ($aCount > 0) { + return $returnValue / $aCount; + } else { + return PHPExcel_Calculation_Functions::DIV0(); + } + } // function AVERAGE() + + + /** + * AVERAGEA + * + * Returns the average of its arguments, including numbers, text, and logical values + * + * Excel Function: + * AVERAGEA(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function AVERAGEA() { + // Return value + $returnValue = null; + + $aCount = 0; + // Loop through arguments + foreach (PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()) as $k => $arg) { + if ((is_bool($arg)) && + (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { + } else { + if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) && ($arg != '')))) { + if (is_bool($arg)) { + $arg = (integer) $arg; + } elseif (is_string($arg)) { + $arg = 0; + } + if (is_null($returnValue)) { + $returnValue = $arg; + } else { + $returnValue += $arg; + } + ++$aCount; + } + } + } + + // Return + if ($aCount > 0) { + return $returnValue / $aCount; + } else { + return PHPExcel_Calculation_Functions::DIV0(); + } + } // function AVERAGEA() + + + /** + * AVERAGEIF + * + * Returns the average value from a range of cells that contain numbers within the list of arguments + * + * Excel Function: + * AVERAGEIF(value1[,value2[, ...]],condition) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param mixed $arg,... Data values + * @param string $condition The criteria that defines which cells will be checked. + * @param mixed[] $averageArgs Data values + * @return float + */ + public static function AVERAGEIF($aArgs,$condition,$averageArgs = array()) { + // Return value + $returnValue = 0; + + $aArgs = PHPExcel_Calculation_Functions::flattenArray($aArgs); + $averageArgs = PHPExcel_Calculation_Functions::flattenArray($averageArgs); + if (empty($averageArgs)) { + $averageArgs = $aArgs; + } + $condition = PHPExcel_Calculation_Functions::_ifCondition($condition); + // Loop through arguments + $aCount = 0; + foreach ($aArgs as $key => $arg) { + if (!is_numeric($arg)) { $arg = PHPExcel_Calculation::_wrapResult(strtoupper($arg)); } + $testCondition = '='.$arg.$condition; + if (PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) { + if ((is_null($returnValue)) || ($arg > $returnValue)) { + $returnValue += $arg; + ++$aCount; + } + } + } + + // Return + if ($aCount > 0) { + return $returnValue / $aCount; + } else { + return PHPExcel_Calculation_Functions::DIV0(); + } + } // function AVERAGEIF() + + + /** + * BETADIST + * + * Returns the beta distribution. + * + * @param float $value Value at which you want to evaluate the distribution + * @param float $alpha Parameter to the distribution + * @param float $beta Parameter to the distribution + * @param boolean $cumulative + * @return float + * + */ + public static function BETADIST($value,$alpha,$beta,$rMin=0,$rMax=1) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $alpha = PHPExcel_Calculation_Functions::flattenSingleValue($alpha); + $beta = PHPExcel_Calculation_Functions::flattenSingleValue($beta); + $rMin = PHPExcel_Calculation_Functions::flattenSingleValue($rMin); + $rMax = PHPExcel_Calculation_Functions::flattenSingleValue($rMax); + + if ((is_numeric($value)) && (is_numeric($alpha)) && (is_numeric($beta)) && (is_numeric($rMin)) && (is_numeric($rMax))) { + if (($value < $rMin) || ($value > $rMax) || ($alpha <= 0) || ($beta <= 0) || ($rMin == $rMax)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ($rMin > $rMax) { + $tmp = $rMin; + $rMin = $rMax; + $rMax = $tmp; + } + $value -= $rMin; + $value /= ($rMax - $rMin); + return self::_incompleteBeta($value,$alpha,$beta); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function BETADIST() + + + /** + * BETAINV + * + * Returns the inverse of the beta distribution. + * + * @param float $probability Probability at which you want to evaluate the distribution + * @param float $alpha Parameter to the distribution + * @param float $beta Parameter to the distribution + * @param float $rMin Minimum value + * @param float $rMax Maximum value + * @param boolean $cumulative + * @return float + * + */ + public static function BETAINV($probability,$alpha,$beta,$rMin=0,$rMax=1) { + $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); + $alpha = PHPExcel_Calculation_Functions::flattenSingleValue($alpha); + $beta = PHPExcel_Calculation_Functions::flattenSingleValue($beta); + $rMin = PHPExcel_Calculation_Functions::flattenSingleValue($rMin); + $rMax = PHPExcel_Calculation_Functions::flattenSingleValue($rMax); + + if ((is_numeric($probability)) && (is_numeric($alpha)) && (is_numeric($beta)) && (is_numeric($rMin)) && (is_numeric($rMax))) { + if (($alpha <= 0) || ($beta <= 0) || ($rMin == $rMax) || ($probability <= 0) || ($probability > 1)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ($rMin > $rMax) { + $tmp = $rMin; + $rMin = $rMax; + $rMax = $tmp; + } + $a = 0; + $b = 2; + + $i = 0; + while ((($b - $a) > PRECISION) && ($i++ < MAX_ITERATIONS)) { + $guess = ($a + $b) / 2; + $result = self::BETADIST($guess, $alpha, $beta); + if (($result == $probability) || ($result == 0)) { + $b = $a; + } elseif ($result > $probability) { + $b = $guess; + } else { + $a = $guess; + } + } + if ($i == MAX_ITERATIONS) { + return PHPExcel_Calculation_Functions::NA(); + } + return round($rMin + $guess * ($rMax - $rMin),12); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function BETAINV() + + + /** + * BINOMDIST + * + * Returns the individual term binomial distribution probability. Use BINOMDIST in problems with + * a fixed number of tests or trials, when the outcomes of any trial are only success or failure, + * when trials are independent, and when the probability of success is constant throughout the + * experiment. For example, BINOMDIST can calculate the probability that two of the next three + * babies born are male. + * + * @param float $value Number of successes in trials + * @param float $trials Number of trials + * @param float $probability Probability of success on each trial + * @param boolean $cumulative + * @return float + * + * @todo Cumulative distribution function + * + */ + public static function BINOMDIST($value, $trials, $probability, $cumulative) { + $value = floor(PHPExcel_Calculation_Functions::flattenSingleValue($value)); + $trials = floor(PHPExcel_Calculation_Functions::flattenSingleValue($trials)); + $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); + + if ((is_numeric($value)) && (is_numeric($trials)) && (is_numeric($probability))) { + if (($value < 0) || ($value > $trials)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if (($probability < 0) || ($probability > 1)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ((is_numeric($cumulative)) || (is_bool($cumulative))) { + if ($cumulative) { + $summer = 0; + for ($i = 0; $i <= $value; ++$i) { + $summer += PHPExcel_Calculation_MathTrig::COMBIN($trials,$i) * pow($probability,$i) * pow(1 - $probability,$trials - $i); + } + return $summer; + } else { + return PHPExcel_Calculation_MathTrig::COMBIN($trials,$value) * pow($probability,$value) * pow(1 - $probability,$trials - $value) ; + } + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function BINOMDIST() + + + /** + * CHIDIST + * + * Returns the one-tailed probability of the chi-squared distribution. + * + * @param float $value Value for the function + * @param float $degrees degrees of freedom + * @return float + */ + public static function CHIDIST($value, $degrees) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $degrees = floor(PHPExcel_Calculation_Functions::flattenSingleValue($degrees)); + + if ((is_numeric($value)) && (is_numeric($degrees))) { + if ($degrees < 1) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ($value < 0) { + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { + return 1; + } + return PHPExcel_Calculation_Functions::NaN(); + } + return 1 - (self::_incompleteGamma($degrees/2,$value/2) / self::_gamma($degrees/2)); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function CHIDIST() + + + /** + * CHIINV + * + * Returns the one-tailed probability of the chi-squared distribution. + * + * @param float $probability Probability for the function + * @param float $degrees degrees of freedom + * @return float + */ + public static function CHIINV($probability, $degrees) { + $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); + $degrees = floor(PHPExcel_Calculation_Functions::flattenSingleValue($degrees)); + + if ((is_numeric($probability)) && (is_numeric($degrees))) { + + $xLo = 100; + $xHi = 0; + + $x = $xNew = 1; + $dx = 1; + $i = 0; + + while ((abs($dx) > PRECISION) && ($i++ < MAX_ITERATIONS)) { + // Apply Newton-Raphson step + $result = self::CHIDIST($x, $degrees); + $error = $result - $probability; + if ($error == 0.0) { + $dx = 0; + } elseif ($error < 0.0) { + $xLo = $x; + } else { + $xHi = $x; + } + // Avoid division by zero + if ($result != 0.0) { + $dx = $error / $result; + $xNew = $x - $dx; + } + // If the NR fails to converge (which for example may be the + // case if the initial guess is too rough) we apply a bisection + // step to determine a more narrow interval around the root. + if (($xNew < $xLo) || ($xNew > $xHi) || ($result == 0.0)) { + $xNew = ($xLo + $xHi) / 2; + $dx = $xNew - $x; + } + $x = $xNew; + } + if ($i == MAX_ITERATIONS) { + return PHPExcel_Calculation_Functions::NA(); + } + return round($x,12); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function CHIINV() + + + /** + * CONFIDENCE + * + * Returns the confidence interval for a population mean + * + * @param float $alpha + * @param float $stdDev Standard Deviation + * @param float $size + * @return float + * + */ + public static function CONFIDENCE($alpha,$stdDev,$size) { + $alpha = PHPExcel_Calculation_Functions::flattenSingleValue($alpha); + $stdDev = PHPExcel_Calculation_Functions::flattenSingleValue($stdDev); + $size = floor(PHPExcel_Calculation_Functions::flattenSingleValue($size)); + + if ((is_numeric($alpha)) && (is_numeric($stdDev)) && (is_numeric($size))) { + if (($alpha <= 0) || ($alpha >= 1)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if (($stdDev <= 0) || ($size < 1)) { + return PHPExcel_Calculation_Functions::NaN(); + } + return self::NORMSINV(1 - $alpha / 2) * $stdDev / sqrt($size); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function CONFIDENCE() + + + /** + * CORREL + * + * Returns covariance, the average of the products of deviations for each data point pair. + * + * @param array of mixed Data Series Y + * @param array of mixed Data Series X + * @return float + */ + public static function CORREL($yValues,$xValues=null) { + if ((is_null($xValues)) || (!is_array($yValues)) || (!is_array($xValues))) { + return PHPExcel_Calculation_Functions::VALUE(); + } + if (!self::_checkTrendArrays($yValues,$xValues)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $yValueCount = count($yValues); + $xValueCount = count($xValues); + + if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { + return PHPExcel_Calculation_Functions::NA(); + } elseif ($yValueCount == 1) { + return PHPExcel_Calculation_Functions::DIV0(); + } + + $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues); + return $bestFitLinear->getCorrelation(); + } // function CORREL() + + + /** + * COUNT + * + * Counts the number of cells that contain numbers within the list of arguments + * + * Excel Function: + * COUNT(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return int + */ + public static function COUNT() { + // Return value + $returnValue = 0; + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); + foreach ($aArgs as $k => $arg) { + if ((is_bool($arg)) && + ((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) { + $arg = (integer) $arg; + } + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + ++$returnValue; + } + } + + // Return + return $returnValue; + } // function COUNT() + + + /** + * COUNTA + * + * Counts the number of cells that are not empty within the list of arguments + * + * Excel Function: + * COUNTA(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return int + */ + public static function COUNTA() { + // Return value + $returnValue = 0; + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + foreach ($aArgs as $arg) { + // Is it a numeric, boolean or string value? + if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) && ($arg != '')))) { + ++$returnValue; + } + } + + // Return + return $returnValue; + } // function COUNTA() + + + /** + * COUNTBLANK + * + * Counts the number of empty cells within the list of arguments + * + * Excel Function: + * COUNTBLANK(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return int + */ + public static function COUNTBLANK() { + // Return value + $returnValue = 0; + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + foreach ($aArgs as $arg) { + // Is it a blank cell? + if ((is_null($arg)) || ((is_string($arg)) && ($arg == ''))) { + ++$returnValue; + } + } + + // Return + return $returnValue; + } // function COUNTBLANK() + + + /** + * COUNTIF + * + * Counts the number of cells that contain numbers within the list of arguments + * + * Excel Function: + * COUNTIF(value1[,value2[, ...]],condition) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @param string $condition The criteria that defines which cells will be counted. + * @return int + */ + public static function COUNTIF($aArgs,$condition) { + // Return value + $returnValue = 0; + + $aArgs = PHPExcel_Calculation_Functions::flattenArray($aArgs); + $condition = PHPExcel_Calculation_Functions::_ifCondition($condition); + // Loop through arguments + foreach ($aArgs as $arg) { + if (!is_numeric($arg)) { $arg = PHPExcel_Calculation::_wrapResult(strtoupper($arg)); } + $testCondition = '='.$arg.$condition; + if (PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) { + // Is it a value within our criteria + ++$returnValue; + } + } + + // Return + return $returnValue; + } // function COUNTIF() + + + /** + * COVAR + * + * Returns covariance, the average of the products of deviations for each data point pair. + * + * @param array of mixed Data Series Y + * @param array of mixed Data Series X + * @return float + */ + public static function COVAR($yValues,$xValues) { + if (!self::_checkTrendArrays($yValues,$xValues)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $yValueCount = count($yValues); + $xValueCount = count($xValues); + + if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { + return PHPExcel_Calculation_Functions::NA(); + } elseif ($yValueCount == 1) { + return PHPExcel_Calculation_Functions::DIV0(); + } + + $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues); + return $bestFitLinear->getCovariance(); + } // function COVAR() + + + /** + * CRITBINOM + * + * Returns the smallest value for which the cumulative binomial distribution is greater + * than or equal to a criterion value + * + * See http://support.microsoft.com/kb/828117/ for details of the algorithm used + * + * @param float $trials number of Bernoulli trials + * @param float $probability probability of a success on each trial + * @param float $alpha criterion value + * @return int + * + * @todo Warning. This implementation differs from the algorithm detailed on the MS + * web site in that $CumPGuessMinus1 = $CumPGuess - 1 rather than $CumPGuess - $PGuess + * This eliminates a potential endless loop error, but may have an adverse affect on the + * accuracy of the function (although all my tests have so far returned correct results). + * + */ + public static function CRITBINOM($trials, $probability, $alpha) { + $trials = floor(PHPExcel_Calculation_Functions::flattenSingleValue($trials)); + $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); + $alpha = PHPExcel_Calculation_Functions::flattenSingleValue($alpha); + + if ((is_numeric($trials)) && (is_numeric($probability)) && (is_numeric($alpha))) { + if ($trials < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + if (($probability < 0) || ($probability > 1)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if (($alpha < 0) || ($alpha > 1)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ($alpha <= 0.5) { + $t = sqrt(log(1 / ($alpha * $alpha))); + $trialsApprox = 0 - ($t + (2.515517 + 0.802853 * $t + 0.010328 * $t * $t) / (1 + 1.432788 * $t + 0.189269 * $t * $t + 0.001308 * $t * $t * $t)); + } else { + $t = sqrt(log(1 / pow(1 - $alpha,2))); + $trialsApprox = $t - (2.515517 + 0.802853 * $t + 0.010328 * $t * $t) / (1 + 1.432788 * $t + 0.189269 * $t * $t + 0.001308 * $t * $t * $t); + } + $Guess = floor($trials * $probability + $trialsApprox * sqrt($trials * $probability * (1 - $probability))); + if ($Guess < 0) { + $Guess = 0; + } elseif ($Guess > $trials) { + $Guess = $trials; + } + + $TotalUnscaledProbability = $UnscaledPGuess = $UnscaledCumPGuess = 0.0; + $EssentiallyZero = 10e-12; + + $m = floor($trials * $probability); + ++$TotalUnscaledProbability; + if ($m == $Guess) { ++$UnscaledPGuess; } + if ($m <= $Guess) { ++$UnscaledCumPGuess; } + + $PreviousValue = 1; + $Done = False; + $k = $m + 1; + while ((!$Done) && ($k <= $trials)) { + $CurrentValue = $PreviousValue * ($trials - $k + 1) * $probability / ($k * (1 - $probability)); + $TotalUnscaledProbability += $CurrentValue; + if ($k == $Guess) { $UnscaledPGuess += $CurrentValue; } + if ($k <= $Guess) { $UnscaledCumPGuess += $CurrentValue; } + if ($CurrentValue <= $EssentiallyZero) { $Done = True; } + $PreviousValue = $CurrentValue; + ++$k; + } + + $PreviousValue = 1; + $Done = False; + $k = $m - 1; + while ((!$Done) && ($k >= 0)) { + $CurrentValue = $PreviousValue * $k + 1 * (1 - $probability) / (($trials - $k) * $probability); + $TotalUnscaledProbability += $CurrentValue; + if ($k == $Guess) { $UnscaledPGuess += $CurrentValue; } + if ($k <= $Guess) { $UnscaledCumPGuess += $CurrentValue; } + if ($CurrentValue <= $EssentiallyZero) { $Done = True; } + $PreviousValue = $CurrentValue; + --$k; + } + + $PGuess = $UnscaledPGuess / $TotalUnscaledProbability; + $CumPGuess = $UnscaledCumPGuess / $TotalUnscaledProbability; + +// $CumPGuessMinus1 = $CumPGuess - $PGuess; + $CumPGuessMinus1 = $CumPGuess - 1; + + while (True) { + if (($CumPGuessMinus1 < $alpha) && ($CumPGuess >= $alpha)) { + return $Guess; + } elseif (($CumPGuessMinus1 < $alpha) && ($CumPGuess < $alpha)) { + $PGuessPlus1 = $PGuess * ($trials - $Guess) * $probability / $Guess / (1 - $probability); + $CumPGuessMinus1 = $CumPGuess; + $CumPGuess = $CumPGuess + $PGuessPlus1; + $PGuess = $PGuessPlus1; + ++$Guess; + } elseif (($CumPGuessMinus1 >= $alpha) && ($CumPGuess >= $alpha)) { + $PGuessMinus1 = $PGuess * $Guess * (1 - $probability) / ($trials - $Guess + 1) / $probability; + $CumPGuess = $CumPGuessMinus1; + $CumPGuessMinus1 = $CumPGuessMinus1 - $PGuess; + $PGuess = $PGuessMinus1; + --$Guess; + } + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function CRITBINOM() + + + /** + * DEVSQ + * + * Returns the sum of squares of deviations of data points from their sample mean. + * + * Excel Function: + * DEVSQ(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function DEVSQ() { + $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); + + // Return value + $returnValue = null; + + $aMean = self::AVERAGE($aArgs); + if ($aMean != PHPExcel_Calculation_Functions::DIV0()) { + $aCount = -1; + foreach ($aArgs as $k => $arg) { + // Is it a numeric value? + if ((is_bool($arg)) && + ((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) { + $arg = (integer) $arg; + } + if ((is_numeric($arg)) && (!is_string($arg))) { + if (is_null($returnValue)) { + $returnValue = pow(($arg - $aMean),2); + } else { + $returnValue += pow(($arg - $aMean),2); + } + ++$aCount; + } + } + + // Return + if (is_null($returnValue)) { + return PHPExcel_Calculation_Functions::NaN(); + } else { + return $returnValue; + } + } + return self::NA(); + } // function DEVSQ() + + + /** + * EXPONDIST + * + * Returns the exponential distribution. Use EXPONDIST to model the time between events, + * such as how long an automated bank teller takes to deliver cash. For example, you can + * use EXPONDIST to determine the probability that the process takes at most 1 minute. + * + * @param float $value Value of the function + * @param float $lambda The parameter value + * @param boolean $cumulative + * @return float + */ + public static function EXPONDIST($value, $lambda, $cumulative) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $lambda = PHPExcel_Calculation_Functions::flattenSingleValue($lambda); + $cumulative = PHPExcel_Calculation_Functions::flattenSingleValue($cumulative); + + if ((is_numeric($value)) && (is_numeric($lambda))) { + if (($value < 0) || ($lambda < 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ((is_numeric($cumulative)) || (is_bool($cumulative))) { + if ($cumulative) { + return 1 - exp(0-$value*$lambda); + } else { + return $lambda * exp(0-$value*$lambda); + } + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function EXPONDIST() + + + /** + * FISHER + * + * Returns the Fisher transformation at x. This transformation produces a function that + * is normally distributed rather than skewed. Use this function to perform hypothesis + * testing on the correlation coefficient. + * + * @param float $value + * @return float + */ + public static function FISHER($value) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + + if (is_numeric($value)) { + if (($value <= -1) || ($value >= 1)) { + return PHPExcel_Calculation_Functions::NaN(); + } + return 0.5 * log((1+$value)/(1-$value)); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function FISHER() + + + /** + * FISHERINV + * + * Returns the inverse of the Fisher transformation. Use this transformation when + * analyzing correlations between ranges or arrays of data. If y = FISHER(x), then + * FISHERINV(y) = x. + * + * @param float $value + * @return float + */ + public static function FISHERINV($value) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + + if (is_numeric($value)) { + return (exp(2 * $value) - 1) / (exp(2 * $value) + 1); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function FISHERINV() + + + /** + * FORECAST + * + * Calculates, or predicts, a future value by using existing values. The predicted value is a y-value for a given x-value. + * + * @param float Value of X for which we want to find Y + * @param array of mixed Data Series Y + * @param array of mixed Data Series X + * @return float + */ + public static function FORECAST($xValue,$yValues,$xValues) { + $xValue = PHPExcel_Calculation_Functions::flattenSingleValue($xValue); + if (!is_numeric($xValue)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (!self::_checkTrendArrays($yValues,$xValues)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $yValueCount = count($yValues); + $xValueCount = count($xValues); + + if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { + return PHPExcel_Calculation_Functions::NA(); + } elseif ($yValueCount == 1) { + return PHPExcel_Calculation_Functions::DIV0(); + } + + $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues); + return $bestFitLinear->getValueOfYForX($xValue); + } // function FORECAST() + + + /** + * GAMMADIST + * + * Returns the gamma distribution. + * + * @param float $value Value at which you want to evaluate the distribution + * @param float $a Parameter to the distribution + * @param float $b Parameter to the distribution + * @param boolean $cumulative + * @return float + * + */ + public static function GAMMADIST($value,$a,$b,$cumulative) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $a = PHPExcel_Calculation_Functions::flattenSingleValue($a); + $b = PHPExcel_Calculation_Functions::flattenSingleValue($b); + + if ((is_numeric($value)) && (is_numeric($a)) && (is_numeric($b))) { + if (($value < 0) || ($a <= 0) || ($b <= 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ((is_numeric($cumulative)) || (is_bool($cumulative))) { + if ($cumulative) { + return self::_incompleteGamma($a,$value / $b) / self::_gamma($a); + } else { + return (1 / (pow($b,$a) * self::_gamma($a))) * pow($value,$a-1) * exp(0-($value / $b)); + } + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function GAMMADIST() + + + /** + * GAMMAINV + * + * Returns the inverse of the beta distribution. + * + * @param float $probability Probability at which you want to evaluate the distribution + * @param float $alpha Parameter to the distribution + * @param float $beta Parameter to the distribution + * @return float + * + */ + public static function GAMMAINV($probability,$alpha,$beta) { + $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); + $alpha = PHPExcel_Calculation_Functions::flattenSingleValue($alpha); + $beta = PHPExcel_Calculation_Functions::flattenSingleValue($beta); + + if ((is_numeric($probability)) && (is_numeric($alpha)) && (is_numeric($beta))) { + if (($alpha <= 0) || ($beta <= 0) || ($probability < 0) || ($probability > 1)) { + return PHPExcel_Calculation_Functions::NaN(); + } + + $xLo = 0; + $xHi = $alpha * $beta * 5; + + $x = $xNew = 1; + $error = $pdf = 0; + $dx = 1024; + $i = 0; + + while ((abs($dx) > PRECISION) && ($i++ < MAX_ITERATIONS)) { + // Apply Newton-Raphson step + $error = self::GAMMADIST($x, $alpha, $beta, True) - $probability; + if ($error < 0.0) { + $xLo = $x; + } else { + $xHi = $x; + } + $pdf = self::GAMMADIST($x, $alpha, $beta, False); + // Avoid division by zero + if ($pdf != 0.0) { + $dx = $error / $pdf; + $xNew = $x - $dx; + } + // If the NR fails to converge (which for example may be the + // case if the initial guess is too rough) we apply a bisection + // step to determine a more narrow interval around the root. + if (($xNew < $xLo) || ($xNew > $xHi) || ($pdf == 0.0)) { + $xNew = ($xLo + $xHi) / 2; + $dx = $xNew - $x; + } + $x = $xNew; + } + if ($i == MAX_ITERATIONS) { + return PHPExcel_Calculation_Functions::NA(); + } + return $x; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function GAMMAINV() + + + /** + * GAMMALN + * + * Returns the natural logarithm of the gamma function. + * + * @param float $value + * @return float + */ + public static function GAMMALN($value) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + + if (is_numeric($value)) { + if ($value <= 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + return log(self::_gamma($value)); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function GAMMALN() + + + /** + * GEOMEAN + * + * Returns the geometric mean of an array or range of positive data. For example, you + * can use GEOMEAN to calculate average growth rate given compound interest with + * variable rates. + * + * Excel Function: + * GEOMEAN(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function GEOMEAN() { + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + + $aMean = PHPExcel_Calculation_MathTrig::PRODUCT($aArgs); + if (is_numeric($aMean) && ($aMean > 0)) { + $aCount = self::COUNT($aArgs) ; + if (self::MIN($aArgs) > 0) { + return pow($aMean, (1 / $aCount)); + } + } + return PHPExcel_Calculation_Functions::NaN(); + } // GEOMEAN() + + + /** + * GROWTH + * + * Returns values along a predicted emponential trend + * + * @param array of mixed Data Series Y + * @param array of mixed Data Series X + * @param array of mixed Values of X for which we want to find Y + * @param boolean A logical value specifying whether to force the intersect to equal 0. + * @return array of float + */ + public static function GROWTH($yValues,$xValues=array(),$newValues=array(),$const=True) { + $yValues = PHPExcel_Calculation_Functions::flattenArray($yValues); + $xValues = PHPExcel_Calculation_Functions::flattenArray($xValues); + $newValues = PHPExcel_Calculation_Functions::flattenArray($newValues); + $const = (is_null($const)) ? True : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($const); + + $bestFitExponential = trendClass::calculate(trendClass::TREND_EXPONENTIAL,$yValues,$xValues,$const); + if (empty($newValues)) { + $newValues = $bestFitExponential->getXValues(); + } + + $returnArray = array(); + foreach($newValues as $xValue) { + $returnArray[0][] = $bestFitExponential->getValueOfYForX($xValue); + } + + return $returnArray; + } // function GROWTH() + + + /** + * HARMEAN + * + * Returns the harmonic mean of a data set. The harmonic mean is the reciprocal of the + * arithmetic mean of reciprocals. + * + * Excel Function: + * HARMEAN(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function HARMEAN() { + // Return value + $returnValue = PHPExcel_Calculation_Functions::NA(); + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + if (self::MIN($aArgs) < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + $aCount = 0; + foreach ($aArgs as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + if ($arg <= 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + if (is_null($returnValue)) { + $returnValue = (1 / $arg); + } else { + $returnValue += (1 / $arg); + } + ++$aCount; + } + } + + // Return + if ($aCount > 0) { + return 1 / ($returnValue / $aCount); + } else { + return $returnValue; + } + } // function HARMEAN() + + + /** + * HYPGEOMDIST + * + * Returns the hypergeometric distribution. HYPGEOMDIST returns the probability of a given number of + * sample successes, given the sample size, population successes, and population size. + * + * @param float $sampleSuccesses Number of successes in the sample + * @param float $sampleNumber Size of the sample + * @param float $populationSuccesses Number of successes in the population + * @param float $populationNumber Population size + * @return float + * + */ + public static function HYPGEOMDIST($sampleSuccesses, $sampleNumber, $populationSuccesses, $populationNumber) { + $sampleSuccesses = floor(PHPExcel_Calculation_Functions::flattenSingleValue($sampleSuccesses)); + $sampleNumber = floor(PHPExcel_Calculation_Functions::flattenSingleValue($sampleNumber)); + $populationSuccesses = floor(PHPExcel_Calculation_Functions::flattenSingleValue($populationSuccesses)); + $populationNumber = floor(PHPExcel_Calculation_Functions::flattenSingleValue($populationNumber)); + + if ((is_numeric($sampleSuccesses)) && (is_numeric($sampleNumber)) && (is_numeric($populationSuccesses)) && (is_numeric($populationNumber))) { + if (($sampleSuccesses < 0) || ($sampleSuccesses > $sampleNumber) || ($sampleSuccesses > $populationSuccesses)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if (($sampleNumber <= 0) || ($sampleNumber > $populationNumber)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if (($populationSuccesses <= 0) || ($populationSuccesses > $populationNumber)) { + return PHPExcel_Calculation_Functions::NaN(); + } + return PHPExcel_Calculation_MathTrig::COMBIN($populationSuccesses,$sampleSuccesses) * + PHPExcel_Calculation_MathTrig::COMBIN($populationNumber - $populationSuccesses,$sampleNumber - $sampleSuccesses) / + PHPExcel_Calculation_MathTrig::COMBIN($populationNumber,$sampleNumber); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function HYPGEOMDIST() + + + /** + * INTERCEPT + * + * Calculates the point at which a line will intersect the y-axis by using existing x-values and y-values. + * + * @param array of mixed Data Series Y + * @param array of mixed Data Series X + * @return float + */ + public static function INTERCEPT($yValues,$xValues) { + if (!self::_checkTrendArrays($yValues,$xValues)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $yValueCount = count($yValues); + $xValueCount = count($xValues); + + if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { + return PHPExcel_Calculation_Functions::NA(); + } elseif ($yValueCount == 1) { + return PHPExcel_Calculation_Functions::DIV0(); + } + + $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues); + return $bestFitLinear->getIntersect(); + } // function INTERCEPT() + + + /** + * KURT + * + * Returns the kurtosis of a data set. Kurtosis characterizes the relative peakedness + * or flatness of a distribution compared with the normal distribution. Positive + * kurtosis indicates a relatively peaked distribution. Negative kurtosis indicates a + * relatively flat distribution. + * + * @param array Data Series + * @return float + */ + public static function KURT() { + $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); + $mean = self::AVERAGE($aArgs); + $stdDev = self::STDEV($aArgs); + + if ($stdDev > 0) { + $count = $summer = 0; + // Loop through arguments + foreach ($aArgs as $k => $arg) { + if ((is_bool($arg)) && + (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { + } else { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + $summer += pow((($arg - $mean) / $stdDev),4) ; + ++$count; + } + } + } + + // Return + if ($count > 3) { + return $summer * ($count * ($count+1) / (($count-1) * ($count-2) * ($count-3))) - (3 * pow($count-1,2) / (($count-2) * ($count-3))); + } + } + return PHPExcel_Calculation_Functions::DIV0(); + } // function KURT() + + + /** + * LARGE + * + * Returns the nth largest value in a data set. You can use this function to + * select a value based on its relative standing. + * + * Excel Function: + * LARGE(value1[,value2[, ...]],entry) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @param int $entry Position (ordered from the largest) in the array or range of data to return + * @return float + * + */ + public static function LARGE() { + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + + // Calculate + $entry = floor(array_pop($aArgs)); + + if ((is_numeric($entry)) && (!is_string($entry))) { + $mArgs = array(); + foreach ($aArgs as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + $mArgs[] = $arg; + } + } + $count = self::COUNT($mArgs); + $entry = floor(--$entry); + if (($entry < 0) || ($entry >= $count) || ($count == 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + rsort($mArgs); + return $mArgs[$entry]; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function LARGE() + + + /** + * LINEST + * + * Calculates the statistics for a line by using the "least squares" method to calculate a straight line that best fits your data, + * and then returns an array that describes the line. + * + * @param array of mixed Data Series Y + * @param array of mixed Data Series X + * @param boolean A logical value specifying whether to force the intersect to equal 0. + * @param boolean A logical value specifying whether to return additional regression statistics. + * @return array + */ + public static function LINEST($yValues, $xValues = NULL, $const = TRUE, $stats = FALSE) { + $const = (is_null($const)) ? TRUE : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($const); + $stats = (is_null($stats)) ? FALSE : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($stats); + if (is_null($xValues)) $xValues = range(1,count(PHPExcel_Calculation_Functions::flattenArray($yValues))); + + if (!self::_checkTrendArrays($yValues,$xValues)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $yValueCount = count($yValues); + $xValueCount = count($xValues); + + + if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { + return PHPExcel_Calculation_Functions::NA(); + } elseif ($yValueCount == 1) { + return 0; + } + + $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues,$const); + if ($stats) { + return array( array( $bestFitLinear->getSlope(), + $bestFitLinear->getSlopeSE(), + $bestFitLinear->getGoodnessOfFit(), + $bestFitLinear->getF(), + $bestFitLinear->getSSRegression(), + ), + array( $bestFitLinear->getIntersect(), + $bestFitLinear->getIntersectSE(), + $bestFitLinear->getStdevOfResiduals(), + $bestFitLinear->getDFResiduals(), + $bestFitLinear->getSSResiduals() + ) + ); + } else { + return array( $bestFitLinear->getSlope(), + $bestFitLinear->getIntersect() + ); + } + } // function LINEST() + + + /** + * LOGEST + * + * Calculates an exponential curve that best fits the X and Y data series, + * and then returns an array that describes the line. + * + * @param array of mixed Data Series Y + * @param array of mixed Data Series X + * @param boolean A logical value specifying whether to force the intersect to equal 0. + * @param boolean A logical value specifying whether to return additional regression statistics. + * @return array + */ + public static function LOGEST($yValues,$xValues=null,$const=True,$stats=False) { + $const = (is_null($const)) ? True : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($const); + $stats = (is_null($stats)) ? False : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($stats); + if (is_null($xValues)) $xValues = range(1,count(PHPExcel_Calculation_Functions::flattenArray($yValues))); + + if (!self::_checkTrendArrays($yValues,$xValues)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $yValueCount = count($yValues); + $xValueCount = count($xValues); + + foreach($yValues as $value) { + if ($value <= 0.0) { + return PHPExcel_Calculation_Functions::NaN(); + } + } + + + if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { + return PHPExcel_Calculation_Functions::NA(); + } elseif ($yValueCount == 1) { + return 1; + } + + $bestFitExponential = trendClass::calculate(trendClass::TREND_EXPONENTIAL,$yValues,$xValues,$const); + if ($stats) { + return array( array( $bestFitExponential->getSlope(), + $bestFitExponential->getSlopeSE(), + $bestFitExponential->getGoodnessOfFit(), + $bestFitExponential->getF(), + $bestFitExponential->getSSRegression(), + ), + array( $bestFitExponential->getIntersect(), + $bestFitExponential->getIntersectSE(), + $bestFitExponential->getStdevOfResiduals(), + $bestFitExponential->getDFResiduals(), + $bestFitExponential->getSSResiduals() + ) + ); + } else { + return array( $bestFitExponential->getSlope(), + $bestFitExponential->getIntersect() + ); + } + } // function LOGEST() + + + /** + * LOGINV + * + * Returns the inverse of the normal cumulative distribution + * + * @param float $probability + * @param float $mean + * @param float $stdDev + * @return float + * + * @todo Try implementing P J Acklam's refinement algorithm for greater + * accuracy if I can get my head round the mathematics + * (as described at) http://home.online.no/~pjacklam/notes/invnorm/ + */ + public static function LOGINV($probability, $mean, $stdDev) { + $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); + $mean = PHPExcel_Calculation_Functions::flattenSingleValue($mean); + $stdDev = PHPExcel_Calculation_Functions::flattenSingleValue($stdDev); + + if ((is_numeric($probability)) && (is_numeric($mean)) && (is_numeric($stdDev))) { + if (($probability < 0) || ($probability > 1) || ($stdDev <= 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + return exp($mean + $stdDev * self::NORMSINV($probability)); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function LOGINV() + + + /** + * LOGNORMDIST + * + * Returns the cumulative lognormal distribution of x, where ln(x) is normally distributed + * with parameters mean and standard_dev. + * + * @param float $value + * @param float $mean + * @param float $stdDev + * @return float + */ + public static function LOGNORMDIST($value, $mean, $stdDev) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $mean = PHPExcel_Calculation_Functions::flattenSingleValue($mean); + $stdDev = PHPExcel_Calculation_Functions::flattenSingleValue($stdDev); + + if ((is_numeric($value)) && (is_numeric($mean)) && (is_numeric($stdDev))) { + if (($value <= 0) || ($stdDev <= 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + return self::NORMSDIST((log($value) - $mean) / $stdDev); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function LOGNORMDIST() + + + /** + * MAX + * + * MAX returns the value of the element of the values passed that has the highest value, + * with negative numbers considered smaller than positive numbers. + * + * Excel Function: + * MAX(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function MAX() { + // Return value + $returnValue = null; + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + foreach ($aArgs as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + if ((is_null($returnValue)) || ($arg > $returnValue)) { + $returnValue = $arg; + } + } + } + + // Return + if(is_null($returnValue)) { + return 0; + } + return $returnValue; + } // function MAX() + + + /** + * MAXA + * + * Returns the greatest value in a list of arguments, including numbers, text, and logical values + * + * Excel Function: + * MAXA(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function MAXA() { + // Return value + $returnValue = null; + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + foreach ($aArgs as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) && ($arg != '')))) { + if (is_bool($arg)) { + $arg = (integer) $arg; + } elseif (is_string($arg)) { + $arg = 0; + } + if ((is_null($returnValue)) || ($arg > $returnValue)) { + $returnValue = $arg; + } + } + } + + // Return + if(is_null($returnValue)) { + return 0; + } + return $returnValue; + } // function MAXA() + + + /** + * MAXIF + * + * Counts the maximum value within a range of cells that contain numbers within the list of arguments + * + * Excel Function: + * MAXIF(value1[,value2[, ...]],condition) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param mixed $arg,... Data values + * @param string $condition The criteria that defines which cells will be checked. + * @return float + */ + public static function MAXIF($aArgs,$condition,$sumArgs = array()) { + // Return value + $returnValue = null; + + $aArgs = PHPExcel_Calculation_Functions::flattenArray($aArgs); + $sumArgs = PHPExcel_Calculation_Functions::flattenArray($sumArgs); + if (empty($sumArgs)) { + $sumArgs = $aArgs; + } + $condition = PHPExcel_Calculation_Functions::_ifCondition($condition); + // Loop through arguments + foreach ($aArgs as $key => $arg) { + if (!is_numeric($arg)) { $arg = PHPExcel_Calculation::_wrapResult(strtoupper($arg)); } + $testCondition = '='.$arg.$condition; + if (PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) { + if ((is_null($returnValue)) || ($arg > $returnValue)) { + $returnValue = $arg; + } + } + } + + // Return + return $returnValue; + } // function MAXIF() + + + /** + * MEDIAN + * + * Returns the median of the given numbers. The median is the number in the middle of a set of numbers. + * + * Excel Function: + * MEDIAN(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function MEDIAN() { + // Return value + $returnValue = PHPExcel_Calculation_Functions::NaN(); + + $mArgs = array(); + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + foreach ($aArgs as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + $mArgs[] = $arg; + } + } + + $mValueCount = count($mArgs); + if ($mValueCount > 0) { + sort($mArgs,SORT_NUMERIC); + $mValueCount = $mValueCount / 2; + if ($mValueCount == floor($mValueCount)) { + $returnValue = ($mArgs[$mValueCount--] + $mArgs[$mValueCount]) / 2; + } else { + $mValueCount == floor($mValueCount); + $returnValue = $mArgs[$mValueCount]; + } + } + + // Return + return $returnValue; + } // function MEDIAN() + + + /** + * MIN + * + * MIN returns the value of the element of the values passed that has the smallest value, + * with negative numbers considered smaller than positive numbers. + * + * Excel Function: + * MIN(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function MIN() { + // Return value + $returnValue = null; + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + foreach ($aArgs as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + if ((is_null($returnValue)) || ($arg < $returnValue)) { + $returnValue = $arg; + } + } + } + + // Return + if(is_null($returnValue)) { + return 0; + } + return $returnValue; + } // function MIN() + + + /** + * MINA + * + * Returns the smallest value in a list of arguments, including numbers, text, and logical values + * + * Excel Function: + * MINA(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function MINA() { + // Return value + $returnValue = null; + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + foreach ($aArgs as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) && ($arg != '')))) { + if (is_bool($arg)) { + $arg = (integer) $arg; + } elseif (is_string($arg)) { + $arg = 0; + } + if ((is_null($returnValue)) || ($arg < $returnValue)) { + $returnValue = $arg; + } + } + } + + // Return + if(is_null($returnValue)) { + return 0; + } + return $returnValue; + } // function MINA() + + + /** + * MINIF + * + * Returns the minimum value within a range of cells that contain numbers within the list of arguments + * + * Excel Function: + * MINIF(value1[,value2[, ...]],condition) + * + * @access public + * @category Mathematical and Trigonometric Functions + * @param mixed $arg,... Data values + * @param string $condition The criteria that defines which cells will be checked. + * @return float + */ + public static function MINIF($aArgs,$condition,$sumArgs = array()) { + // Return value + $returnValue = null; + + $aArgs = PHPExcel_Calculation_Functions::flattenArray($aArgs); + $sumArgs = PHPExcel_Calculation_Functions::flattenArray($sumArgs); + if (empty($sumArgs)) { + $sumArgs = $aArgs; + } + $condition = PHPExcel_Calculation_Functions::_ifCondition($condition); + // Loop through arguments + foreach ($aArgs as $key => $arg) { + if (!is_numeric($arg)) { $arg = PHPExcel_Calculation::_wrapResult(strtoupper($arg)); } + $testCondition = '='.$arg.$condition; + if (PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) { + if ((is_null($returnValue)) || ($arg < $returnValue)) { + $returnValue = $arg; + } + } + } + + // Return + return $returnValue; + } // function MINIF() + + + // + // Special variant of array_count_values that isn't limited to strings and integers, + // but can work with floating point numbers as values + // + private static function _modeCalc($data) { + $frequencyArray = array(); + foreach($data as $datum) { + $found = False; + foreach($frequencyArray as $key => $value) { + if ((string) $value['value'] == (string) $datum) { + ++$frequencyArray[$key]['frequency']; + $found = True; + break; + } + } + if (!$found) { + $frequencyArray[] = array('value' => $datum, + 'frequency' => 1 ); + } + } + + foreach($frequencyArray as $key => $value) { + $frequencyList[$key] = $value['frequency']; + $valueList[$key] = $value['value']; + } + array_multisort($frequencyList, SORT_DESC, $valueList, SORT_ASC, SORT_NUMERIC, $frequencyArray); + + if ($frequencyArray[0]['frequency'] == 1) { + return PHPExcel_Calculation_Functions::NA(); + } + return $frequencyArray[0]['value']; + } // function _modeCalc() + + + /** + * MODE + * + * Returns the most frequently occurring, or repetitive, value in an array or range of data + * + * Excel Function: + * MODE(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function MODE() { + // Return value + $returnValue = PHPExcel_Calculation_Functions::NA(); + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + + $mArgs = array(); + foreach ($aArgs as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + $mArgs[] = $arg; + } + } + + if (!empty($mArgs)) { + return self::_modeCalc($mArgs); + } + + // Return + return $returnValue; + } // function MODE() + + + /** + * NEGBINOMDIST + * + * Returns the negative binomial distribution. NEGBINOMDIST returns the probability that + * there will be number_f failures before the number_s-th success, when the constant + * probability of a success is probability_s. This function is similar to the binomial + * distribution, except that the number of successes is fixed, and the number of trials is + * variable. Like the binomial, trials are assumed to be independent. + * + * @param float $failures Number of Failures + * @param float $successes Threshold number of Successes + * @param float $probability Probability of success on each trial + * @return float + * + */ + public static function NEGBINOMDIST($failures, $successes, $probability) { + $failures = floor(PHPExcel_Calculation_Functions::flattenSingleValue($failures)); + $successes = floor(PHPExcel_Calculation_Functions::flattenSingleValue($successes)); + $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); + + if ((is_numeric($failures)) && (is_numeric($successes)) && (is_numeric($probability))) { + if (($failures < 0) || ($successes < 1)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if (($probability < 0) || ($probability > 1)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { + if (($failures + $successes - 1) <= 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + } + return (PHPExcel_Calculation_MathTrig::COMBIN($failures + $successes - 1,$successes - 1)) * (pow($probability,$successes)) * (pow(1 - $probability,$failures)) ; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function NEGBINOMDIST() + + + /** + * NORMDIST + * + * Returns the normal distribution for the specified mean and standard deviation. This + * function has a very wide range of applications in statistics, including hypothesis + * testing. + * + * @param float $value + * @param float $mean Mean Value + * @param float $stdDev Standard Deviation + * @param boolean $cumulative + * @return float + * + */ + public static function NORMDIST($value, $mean, $stdDev, $cumulative) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $mean = PHPExcel_Calculation_Functions::flattenSingleValue($mean); + $stdDev = PHPExcel_Calculation_Functions::flattenSingleValue($stdDev); + + if ((is_numeric($value)) && (is_numeric($mean)) && (is_numeric($stdDev))) { + if ($stdDev < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ((is_numeric($cumulative)) || (is_bool($cumulative))) { + if ($cumulative) { + return 0.5 * (1 + PHPExcel_Calculation_Engineering::_erfVal(($value - $mean) / ($stdDev * sqrt(2)))); + } else { + return (1 / (SQRT2PI * $stdDev)) * exp(0 - (pow($value - $mean,2) / (2 * ($stdDev * $stdDev)))); + } + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function NORMDIST() + + + /** + * NORMINV + * + * Returns the inverse of the normal cumulative distribution for the specified mean and standard deviation. + * + * @param float $value + * @param float $mean Mean Value + * @param float $stdDev Standard Deviation + * @return float + * + */ + public static function NORMINV($probability,$mean,$stdDev) { + $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); + $mean = PHPExcel_Calculation_Functions::flattenSingleValue($mean); + $stdDev = PHPExcel_Calculation_Functions::flattenSingleValue($stdDev); + + if ((is_numeric($probability)) && (is_numeric($mean)) && (is_numeric($stdDev))) { + if (($probability < 0) || ($probability > 1)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ($stdDev < 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + return (self::_inverse_ncdf($probability) * $stdDev) + $mean; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function NORMINV() + + + /** + * NORMSDIST + * + * Returns the standard normal cumulative distribution function. The distribution has + * a mean of 0 (zero) and a standard deviation of one. Use this function in place of a + * table of standard normal curve areas. + * + * @param float $value + * @return float + */ + public static function NORMSDIST($value) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + + return self::NORMDIST($value, 0, 1, True); + } // function NORMSDIST() + + + /** + * NORMSINV + * + * Returns the inverse of the standard normal cumulative distribution + * + * @param float $value + * @return float + */ + public static function NORMSINV($value) { + return self::NORMINV($value, 0, 1); + } // function NORMSINV() + + + /** + * PERCENTILE + * + * Returns the nth percentile of values in a range.. + * + * Excel Function: + * PERCENTILE(value1[,value2[, ...]],entry) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @param float $entry Percentile value in the range 0..1, inclusive. + * @return float + */ + public static function PERCENTILE() { + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + + // Calculate + $entry = array_pop($aArgs); + + if ((is_numeric($entry)) && (!is_string($entry))) { + if (($entry < 0) || ($entry > 1)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $mArgs = array(); + foreach ($aArgs as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + $mArgs[] = $arg; + } + } + $mValueCount = count($mArgs); + if ($mValueCount > 0) { + sort($mArgs); + $count = self::COUNT($mArgs); + $index = $entry * ($count-1); + $iBase = floor($index); + if ($index == $iBase) { + return $mArgs[$index]; + } else { + $iNext = $iBase + 1; + $iProportion = $index - $iBase; + return $mArgs[$iBase] + (($mArgs[$iNext] - $mArgs[$iBase]) * $iProportion) ; + } + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function PERCENTILE() + + + /** + * PERCENTRANK + * + * Returns the rank of a value in a data set as a percentage of the data set. + * + * @param array of number An array of, or a reference to, a list of numbers. + * @param number The number whose rank you want to find. + * @param number The number of significant digits for the returned percentage value. + * @return float + */ + public static function PERCENTRANK($valueSet,$value,$significance=3) { + $valueSet = PHPExcel_Calculation_Functions::flattenArray($valueSet); + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $significance = (is_null($significance)) ? 3 : (integer) PHPExcel_Calculation_Functions::flattenSingleValue($significance); + + foreach($valueSet as $key => $valueEntry) { + if (!is_numeric($valueEntry)) { + unset($valueSet[$key]); + } + } + sort($valueSet,SORT_NUMERIC); + $valueCount = count($valueSet); + if ($valueCount == 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + + $valueAdjustor = $valueCount - 1; + if (($value < $valueSet[0]) || ($value > $valueSet[$valueAdjustor])) { + return PHPExcel_Calculation_Functions::NA(); + } + + $pos = array_search($value,$valueSet); + if ($pos === False) { + $pos = 0; + $testValue = $valueSet[0]; + while ($testValue < $value) { + $testValue = $valueSet[++$pos]; + } + --$pos; + $pos += (($value - $valueSet[$pos]) / ($testValue - $valueSet[$pos])); + } + + return round($pos / $valueAdjustor,$significance); + } // function PERCENTRANK() + + + /** + * PERMUT + * + * Returns the number of permutations for a given number of objects that can be + * selected from number objects. A permutation is any set or subset of objects or + * events where internal order is significant. Permutations are different from + * combinations, for which the internal order is not significant. Use this function + * for lottery-style probability calculations. + * + * @param int $numObjs Number of different objects + * @param int $numInSet Number of objects in each permutation + * @return int Number of permutations + */ + public static function PERMUT($numObjs,$numInSet) { + $numObjs = PHPExcel_Calculation_Functions::flattenSingleValue($numObjs); + $numInSet = PHPExcel_Calculation_Functions::flattenSingleValue($numInSet); + + if ((is_numeric($numObjs)) && (is_numeric($numInSet))) { + $numInSet = floor($numInSet); + if ($numObjs < $numInSet) { + return PHPExcel_Calculation_Functions::NaN(); + } + return round(PHPExcel_Calculation_MathTrig::FACT($numObjs) / PHPExcel_Calculation_MathTrig::FACT($numObjs - $numInSet)); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function PERMUT() + + + /** + * POISSON + * + * Returns the Poisson distribution. A common application of the Poisson distribution + * is predicting the number of events over a specific time, such as the number of + * cars arriving at a toll plaza in 1 minute. + * + * @param float $value + * @param float $mean Mean Value + * @param boolean $cumulative + * @return float + * + */ + public static function POISSON($value, $mean, $cumulative) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $mean = PHPExcel_Calculation_Functions::flattenSingleValue($mean); + + if ((is_numeric($value)) && (is_numeric($mean))) { + if (($value < 0) || ($mean <= 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ((is_numeric($cumulative)) || (is_bool($cumulative))) { + if ($cumulative) { + $summer = 0; + for ($i = 0; $i <= floor($value); ++$i) { + $summer += pow($mean,$i) / PHPExcel_Calculation_MathTrig::FACT($i); + } + return exp(0-$mean) * $summer; + } else { + return (exp(0-$mean) * pow($mean,$value)) / PHPExcel_Calculation_MathTrig::FACT($value); + } + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function POISSON() + + + /** + * QUARTILE + * + * Returns the quartile of a data set. + * + * Excel Function: + * QUARTILE(value1[,value2[, ...]],entry) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @param int $entry Quartile value in the range 1..3, inclusive. + * @return float + */ + public static function QUARTILE() { + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + + // Calculate + $entry = floor(array_pop($aArgs)); + + if ((is_numeric($entry)) && (!is_string($entry))) { + $entry /= 4; + if (($entry < 0) || ($entry > 1)) { + return PHPExcel_Calculation_Functions::NaN(); + } + return self::PERCENTILE($aArgs,$entry); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function QUARTILE() + + + /** + * RANK + * + * Returns the rank of a number in a list of numbers. + * + * @param number The number whose rank you want to find. + * @param array of number An array of, or a reference to, a list of numbers. + * @param mixed Order to sort the values in the value set + * @return float + */ + public static function RANK($value,$valueSet,$order=0) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $valueSet = PHPExcel_Calculation_Functions::flattenArray($valueSet); + $order = (is_null($order)) ? 0 : (integer) PHPExcel_Calculation_Functions::flattenSingleValue($order); + + foreach($valueSet as $key => $valueEntry) { + if (!is_numeric($valueEntry)) { + unset($valueSet[$key]); + } + } + + if ($order == 0) { + rsort($valueSet,SORT_NUMERIC); + } else { + sort($valueSet,SORT_NUMERIC); + } + $pos = array_search($value,$valueSet); + if ($pos === False) { + return PHPExcel_Calculation_Functions::NA(); + } + + return ++$pos; + } // function RANK() + + + /** + * RSQ + * + * Returns the square of the Pearson product moment correlation coefficient through data points in known_y's and known_x's. + * + * @param array of mixed Data Series Y + * @param array of mixed Data Series X + * @return float + */ + public static function RSQ($yValues,$xValues) { + if (!self::_checkTrendArrays($yValues,$xValues)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $yValueCount = count($yValues); + $xValueCount = count($xValues); + + if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { + return PHPExcel_Calculation_Functions::NA(); + } elseif ($yValueCount == 1) { + return PHPExcel_Calculation_Functions::DIV0(); + } + + $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues); + return $bestFitLinear->getGoodnessOfFit(); + } // function RSQ() + + + /** + * SKEW + * + * Returns the skewness of a distribution. Skewness characterizes the degree of asymmetry + * of a distribution around its mean. Positive skewness indicates a distribution with an + * asymmetric tail extending toward more positive values. Negative skewness indicates a + * distribution with an asymmetric tail extending toward more negative values. + * + * @param array Data Series + * @return float + */ + public static function SKEW() { + $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); + $mean = self::AVERAGE($aArgs); + $stdDev = self::STDEV($aArgs); + + $count = $summer = 0; + // Loop through arguments + foreach ($aArgs as $k => $arg) { + if ((is_bool($arg)) && + (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { + } else { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + $summer += pow((($arg - $mean) / $stdDev),3) ; + ++$count; + } + } + } + + // Return + if ($count > 2) { + return $summer * ($count / (($count-1) * ($count-2))); + } + return PHPExcel_Calculation_Functions::DIV0(); + } // function SKEW() + + + /** + * SLOPE + * + * Returns the slope of the linear regression line through data points in known_y's and known_x's. + * + * @param array of mixed Data Series Y + * @param array of mixed Data Series X + * @return float + */ + public static function SLOPE($yValues,$xValues) { + if (!self::_checkTrendArrays($yValues,$xValues)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $yValueCount = count($yValues); + $xValueCount = count($xValues); + + if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { + return PHPExcel_Calculation_Functions::NA(); + } elseif ($yValueCount == 1) { + return PHPExcel_Calculation_Functions::DIV0(); + } + + $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues); + return $bestFitLinear->getSlope(); + } // function SLOPE() + + + /** + * SMALL + * + * Returns the nth smallest value in a data set. You can use this function to + * select a value based on its relative standing. + * + * Excel Function: + * SMALL(value1[,value2[, ...]],entry) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @param int $entry Position (ordered from the smallest) in the array or range of data to return + * @return float + */ + public static function SMALL() { + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + + // Calculate + $entry = array_pop($aArgs); + + if ((is_numeric($entry)) && (!is_string($entry))) { + $mArgs = array(); + foreach ($aArgs as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + $mArgs[] = $arg; + } + } + $count = self::COUNT($mArgs); + $entry = floor(--$entry); + if (($entry < 0) || ($entry >= $count) || ($count == 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + sort($mArgs); + return $mArgs[$entry]; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function SMALL() + + + /** + * STANDARDIZE + * + * Returns a normalized value from a distribution characterized by mean and standard_dev. + * + * @param float $value Value to normalize + * @param float $mean Mean Value + * @param float $stdDev Standard Deviation + * @return float Standardized value + */ + public static function STANDARDIZE($value,$mean,$stdDev) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $mean = PHPExcel_Calculation_Functions::flattenSingleValue($mean); + $stdDev = PHPExcel_Calculation_Functions::flattenSingleValue($stdDev); + + if ((is_numeric($value)) && (is_numeric($mean)) && (is_numeric($stdDev))) { + if ($stdDev <= 0) { + return PHPExcel_Calculation_Functions::NaN(); + } + return ($value - $mean) / $stdDev ; + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function STANDARDIZE() + + + /** + * STDEV + * + * Estimates standard deviation based on a sample. The standard deviation is a measure of how + * widely values are dispersed from the average value (the mean). + * + * Excel Function: + * STDEV(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function STDEV() { + $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); + + // Return value + $returnValue = null; + + $aMean = self::AVERAGE($aArgs); + if (!is_null($aMean)) { + $aCount = -1; + foreach ($aArgs as $k => $arg) { + if ((is_bool($arg)) && + ((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) { + $arg = (integer) $arg; + } + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + if (is_null($returnValue)) { + $returnValue = pow(($arg - $aMean),2); + } else { + $returnValue += pow(($arg - $aMean),2); + } + ++$aCount; + } + } + + // Return + if (($aCount > 0) && ($returnValue >= 0)) { + return sqrt($returnValue / $aCount); + } + } + return PHPExcel_Calculation_Functions::DIV0(); + } // function STDEV() + + + /** + * STDEVA + * + * Estimates standard deviation based on a sample, including numbers, text, and logical values + * + * Excel Function: + * STDEVA(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function STDEVA() { + $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); + + // Return value + $returnValue = null; + + $aMean = self::AVERAGEA($aArgs); + if (!is_null($aMean)) { + $aCount = -1; + foreach ($aArgs as $k => $arg) { + if ((is_bool($arg)) && + (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { + } else { + // Is it a numeric value? + if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) & ($arg != '')))) { + if (is_bool($arg)) { + $arg = (integer) $arg; + } elseif (is_string($arg)) { + $arg = 0; + } + if (is_null($returnValue)) { + $returnValue = pow(($arg - $aMean),2); + } else { + $returnValue += pow(($arg - $aMean),2); + } + ++$aCount; + } + } + } + + // Return + if (($aCount > 0) && ($returnValue >= 0)) { + return sqrt($returnValue / $aCount); + } + } + return PHPExcel_Calculation_Functions::DIV0(); + } // function STDEVA() + + + /** + * STDEVP + * + * Calculates standard deviation based on the entire population + * + * Excel Function: + * STDEVP(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function STDEVP() { + $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); + + // Return value + $returnValue = null; + + $aMean = self::AVERAGE($aArgs); + if (!is_null($aMean)) { + $aCount = 0; + foreach ($aArgs as $k => $arg) { + if ((is_bool($arg)) && + ((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) { + $arg = (integer) $arg; + } + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + if (is_null($returnValue)) { + $returnValue = pow(($arg - $aMean),2); + } else { + $returnValue += pow(($arg - $aMean),2); + } + ++$aCount; + } + } + + // Return + if (($aCount > 0) && ($returnValue >= 0)) { + return sqrt($returnValue / $aCount); + } + } + return PHPExcel_Calculation_Functions::DIV0(); + } // function STDEVP() + + + /** + * STDEVPA + * + * Calculates standard deviation based on the entire population, including numbers, text, and logical values + * + * Excel Function: + * STDEVPA(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function STDEVPA() { + $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); + + // Return value + $returnValue = null; + + $aMean = self::AVERAGEA($aArgs); + if (!is_null($aMean)) { + $aCount = 0; + foreach ($aArgs as $k => $arg) { + if ((is_bool($arg)) && + (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { + } else { + // Is it a numeric value? + if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) & ($arg != '')))) { + if (is_bool($arg)) { + $arg = (integer) $arg; + } elseif (is_string($arg)) { + $arg = 0; + } + if (is_null($returnValue)) { + $returnValue = pow(($arg - $aMean),2); + } else { + $returnValue += pow(($arg - $aMean),2); + } + ++$aCount; + } + } + } + + // Return + if (($aCount > 0) && ($returnValue >= 0)) { + return sqrt($returnValue / $aCount); + } + } + return PHPExcel_Calculation_Functions::DIV0(); + } // function STDEVPA() + + + /** + * STEYX + * + * Returns the standard error of the predicted y-value for each x in the regression. + * + * @param array of mixed Data Series Y + * @param array of mixed Data Series X + * @return float + */ + public static function STEYX($yValues,$xValues) { + if (!self::_checkTrendArrays($yValues,$xValues)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + $yValueCount = count($yValues); + $xValueCount = count($xValues); + + if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { + return PHPExcel_Calculation_Functions::NA(); + } elseif ($yValueCount == 1) { + return PHPExcel_Calculation_Functions::DIV0(); + } + + $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues); + return $bestFitLinear->getStdevOfResiduals(); + } // function STEYX() + + + /** + * TDIST + * + * Returns the probability of Student's T distribution. + * + * @param float $value Value for the function + * @param float $degrees degrees of freedom + * @param float $tails number of tails (1 or 2) + * @return float + */ + public static function TDIST($value, $degrees, $tails) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $degrees = floor(PHPExcel_Calculation_Functions::flattenSingleValue($degrees)); + $tails = floor(PHPExcel_Calculation_Functions::flattenSingleValue($tails)); + + if ((is_numeric($value)) && (is_numeric($degrees)) && (is_numeric($tails))) { + if (($value < 0) || ($degrees < 1) || ($tails < 1) || ($tails > 2)) { + return PHPExcel_Calculation_Functions::NaN(); + } + // tdist, which finds the probability that corresponds to a given value + // of t with k degrees of freedom. This algorithm is translated from a + // pascal function on p81 of "Statistical Computing in Pascal" by D + // Cooke, A H Craven & G M Clark (1985: Edward Arnold (Pubs.) Ltd: + // London). The above Pascal algorithm is itself a translation of the + // fortran algoritm "AS 3" by B E Cooper of the Atlas Computer + // Laboratory as reported in (among other places) "Applied Statistics + // Algorithms", editied by P Griffiths and I D Hill (1985; Ellis + // Horwood Ltd.; W. Sussex, England). + $tterm = $degrees; + $ttheta = atan2($value,sqrt($tterm)); + $tc = cos($ttheta); + $ts = sin($ttheta); + $tsum = 0; + + if (($degrees % 2) == 1) { + $ti = 3; + $tterm = $tc; + } else { + $ti = 2; + $tterm = 1; + } + + $tsum = $tterm; + while ($ti < $degrees) { + $tterm *= $tc * $tc * ($ti - 1) / $ti; + $tsum += $tterm; + $ti += 2; + } + $tsum *= $ts; + if (($degrees % 2) == 1) { $tsum = M_2DIVPI * ($tsum + $ttheta); } + $tValue = 0.5 * (1 + $tsum); + if ($tails == 1) { + return 1 - abs($tValue); + } else { + return 1 - abs((1 - $tValue) - $tValue); + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function TDIST() + + + /** + * TINV + * + * Returns the one-tailed probability of the chi-squared distribution. + * + * @param float $probability Probability for the function + * @param float $degrees degrees of freedom + * @return float + */ + public static function TINV($probability, $degrees) { + $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); + $degrees = floor(PHPExcel_Calculation_Functions::flattenSingleValue($degrees)); + + if ((is_numeric($probability)) && (is_numeric($degrees))) { + $xLo = 100; + $xHi = 0; + + $x = $xNew = 1; + $dx = 1; + $i = 0; + + while ((abs($dx) > PRECISION) && ($i++ < MAX_ITERATIONS)) { + // Apply Newton-Raphson step + $result = self::TDIST($x, $degrees, 2); + $error = $result - $probability; + if ($error == 0.0) { + $dx = 0; + } elseif ($error < 0.0) { + $xLo = $x; + } else { + $xHi = $x; + } + // Avoid division by zero + if ($result != 0.0) { + $dx = $error / $result; + $xNew = $x - $dx; + } + // If the NR fails to converge (which for example may be the + // case if the initial guess is too rough) we apply a bisection + // step to determine a more narrow interval around the root. + if (($xNew < $xLo) || ($xNew > $xHi) || ($result == 0.0)) { + $xNew = ($xLo + $xHi) / 2; + $dx = $xNew - $x; + } + $x = $xNew; + } + if ($i == MAX_ITERATIONS) { + return PHPExcel_Calculation_Functions::NA(); + } + return round($x,12); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function TINV() + + + /** + * TREND + * + * Returns values along a linear trend + * + * @param array of mixed Data Series Y + * @param array of mixed Data Series X + * @param array of mixed Values of X for which we want to find Y + * @param boolean A logical value specifying whether to force the intersect to equal 0. + * @return array of float + */ + public static function TREND($yValues,$xValues=array(),$newValues=array(),$const=True) { + $yValues = PHPExcel_Calculation_Functions::flattenArray($yValues); + $xValues = PHPExcel_Calculation_Functions::flattenArray($xValues); + $newValues = PHPExcel_Calculation_Functions::flattenArray($newValues); + $const = (is_null($const)) ? True : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($const); + + $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues,$const); + if (empty($newValues)) { + $newValues = $bestFitLinear->getXValues(); + } + + $returnArray = array(); + foreach($newValues as $xValue) { + $returnArray[0][] = $bestFitLinear->getValueOfYForX($xValue); + } + + return $returnArray; + } // function TREND() + + + /** + * TRIMMEAN + * + * Returns the mean of the interior of a data set. TRIMMEAN calculates the mean + * taken by excluding a percentage of data points from the top and bottom tails + * of a data set. + * + * Excel Function: + * TRIMEAN(value1[,value2[, ...]],$discard) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @param float $discard Percentage to discard + * @return float + */ + public static function TRIMMEAN() { + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + + // Calculate + $percent = array_pop($aArgs); + + if ((is_numeric($percent)) && (!is_string($percent))) { + if (($percent < 0) || ($percent > 1)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $mArgs = array(); + foreach ($aArgs as $arg) { + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + $mArgs[] = $arg; + } + } + $discard = floor(self::COUNT($mArgs) * $percent / 2); + sort($mArgs); + for ($i=0; $i < $discard; ++$i) { + array_pop($mArgs); + array_shift($mArgs); + } + return self::AVERAGE($mArgs); + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function TRIMMEAN() + + + /** + * VARFunc + * + * Estimates variance based on a sample. + * + * Excel Function: + * VAR(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function VARFunc() { + // Return value + $returnValue = PHPExcel_Calculation_Functions::DIV0(); + + $summerA = $summerB = 0; + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + $aCount = 0; + foreach ($aArgs as $arg) { + if (is_bool($arg)) { $arg = (integer) $arg; } + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + $summerA += ($arg * $arg); + $summerB += $arg; + ++$aCount; + } + } + + // Return + if ($aCount > 1) { + $summerA *= $aCount; + $summerB *= $summerB; + $returnValue = ($summerA - $summerB) / ($aCount * ($aCount - 1)); + } + return $returnValue; + } // function VARFunc() + + + /** + * VARA + * + * Estimates variance based on a sample, including numbers, text, and logical values + * + * Excel Function: + * VARA(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function VARA() { + // Return value + $returnValue = PHPExcel_Calculation_Functions::DIV0(); + + $summerA = $summerB = 0; + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); + $aCount = 0; + foreach ($aArgs as $k => $arg) { + if ((is_string($arg)) && + (PHPExcel_Calculation_Functions::isValue($k))) { + return PHPExcel_Calculation_Functions::VALUE(); + } elseif ((is_string($arg)) && + (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { + } else { + // Is it a numeric value? + if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) & ($arg != '')))) { + if (is_bool($arg)) { + $arg = (integer) $arg; + } elseif (is_string($arg)) { + $arg = 0; + } + $summerA += ($arg * $arg); + $summerB += $arg; + ++$aCount; + } + } + } + + // Return + if ($aCount > 1) { + $summerA *= $aCount; + $summerB *= $summerB; + $returnValue = ($summerA - $summerB) / ($aCount * ($aCount - 1)); + } + return $returnValue; + } // function VARA() + + + /** + * VARP + * + * Calculates variance based on the entire population + * + * Excel Function: + * VARP(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function VARP() { + // Return value + $returnValue = PHPExcel_Calculation_Functions::DIV0(); + + $summerA = $summerB = 0; + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + $aCount = 0; + foreach ($aArgs as $arg) { + if (is_bool($arg)) { $arg = (integer) $arg; } + // Is it a numeric value? + if ((is_numeric($arg)) && (!is_string($arg))) { + $summerA += ($arg * $arg); + $summerB += $arg; + ++$aCount; + } + } + + // Return + if ($aCount > 0) { + $summerA *= $aCount; + $summerB *= $summerB; + $returnValue = ($summerA - $summerB) / ($aCount * $aCount); + } + return $returnValue; + } // function VARP() + + + /** + * VARPA + * + * Calculates variance based on the entire population, including numbers, text, and logical values + * + * Excel Function: + * VARPA(value1[,value2[, ...]]) + * + * @access public + * @category Statistical Functions + * @param mixed $arg,... Data values + * @return float + */ + public static function VARPA() { + // Return value + $returnValue = PHPExcel_Calculation_Functions::DIV0(); + + $summerA = $summerB = 0; + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); + $aCount = 0; + foreach ($aArgs as $k => $arg) { + if ((is_string($arg)) && + (PHPExcel_Calculation_Functions::isValue($k))) { + return PHPExcel_Calculation_Functions::VALUE(); + } elseif ((is_string($arg)) && + (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { + } else { + // Is it a numeric value? + if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) & ($arg != '')))) { + if (is_bool($arg)) { + $arg = (integer) $arg; + } elseif (is_string($arg)) { + $arg = 0; + } + $summerA += ($arg * $arg); + $summerB += $arg; + ++$aCount; + } + } + } + + // Return + if ($aCount > 0) { + $summerA *= $aCount; + $summerB *= $summerB; + $returnValue = ($summerA - $summerB) / ($aCount * $aCount); + } + return $returnValue; + } // function VARPA() + + + /** + * WEIBULL + * + * Returns the Weibull distribution. Use this distribution in reliability + * analysis, such as calculating a device's mean time to failure. + * + * @param float $value + * @param float $alpha Alpha Parameter + * @param float $beta Beta Parameter + * @param boolean $cumulative + * @return float + * + */ + public static function WEIBULL($value, $alpha, $beta, $cumulative) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $alpha = PHPExcel_Calculation_Functions::flattenSingleValue($alpha); + $beta = PHPExcel_Calculation_Functions::flattenSingleValue($beta); + + if ((is_numeric($value)) && (is_numeric($alpha)) && (is_numeric($beta))) { + if (($value < 0) || ($alpha <= 0) || ($beta <= 0)) { + return PHPExcel_Calculation_Functions::NaN(); + } + if ((is_numeric($cumulative)) || (is_bool($cumulative))) { + if ($cumulative) { + return 1 - exp(0 - pow($value / $beta,$alpha)); + } else { + return ($alpha / pow($beta,$alpha)) * pow($value,$alpha - 1) * exp(0 - pow($value / $beta,$alpha)); + } + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function WEIBULL() + + + /** + * ZTEST + * + * Returns the Weibull distribution. Use this distribution in reliability + * analysis, such as calculating a device's mean time to failure. + * + * @param float $dataSet + * @param float $m0 Alpha Parameter + * @param float $sigma Beta Parameter + * @param boolean $cumulative + * @return float + * + */ + public static function ZTEST($dataSet, $m0, $sigma = NULL) { + $dataSet = PHPExcel_Calculation_Functions::flattenArrayIndexed($dataSet); + $m0 = PHPExcel_Calculation_Functions::flattenSingleValue($m0); + $sigma = PHPExcel_Calculation_Functions::flattenSingleValue($sigma); + + if (is_null($sigma)) { + $sigma = self::STDEV($dataSet); + } + $n = count($dataSet); + + return 1 - self::NORMSDIST((self::AVERAGE($dataSet) - $m0)/($sigma/SQRT($n))); + } // function ZTEST() + +} // class PHPExcel_Calculation_Statistical diff --git a/admin/helpers/PHPExcel/Calculation/TextData.php b/admin/helpers/PHPExcel/Calculation/TextData.php new file mode 100644 index 00000000..7a52d2e7 --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/TextData.php @@ -0,0 +1,631 @@ +=0 && ord($c{0}) <= 127) + return ord($c{0}); + if (ord($c{0}) >= 192 && ord($c{0}) <= 223) + return (ord($c{0})-192)*64 + (ord($c{1})-128); + if (ord($c{0}) >= 224 && ord($c{0}) <= 239) + return (ord($c{0})-224)*4096 + (ord($c{1})-128)*64 + (ord($c{2})-128); + if (ord($c{0}) >= 240 && ord($c{0}) <= 247) + return (ord($c{0})-240)*262144 + (ord($c{1})-128)*4096 + (ord($c{2})-128)*64 + (ord($c{3})-128); + if (ord($c{0}) >= 248 && ord($c{0}) <= 251) + return (ord($c{0})-248)*16777216 + (ord($c{1})-128)*262144 + (ord($c{2})-128)*4096 + (ord($c{3})-128)*64 + (ord($c{4})-128); + if (ord($c{0}) >= 252 && ord($c{0}) <= 253) + return (ord($c{0})-252)*1073741824 + (ord($c{1})-128)*16777216 + (ord($c{2})-128)*262144 + (ord($c{3})-128)*4096 + (ord($c{4})-128)*64 + (ord($c{5})-128); + if (ord($c{0}) >= 254 && ord($c{0}) <= 255) //error + return PHPExcel_Calculation_Functions::VALUE(); + return 0; + } // function _uniord() + + /** + * CHARACTER + * + * @param string $character Value + * @return int + */ + public static function CHARACTER($character) { + $character = PHPExcel_Calculation_Functions::flattenSingleValue($character); + + if ((!is_numeric($character)) || ($character < 0)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (function_exists('mb_convert_encoding')) { + return mb_convert_encoding('&#'.intval($character).';', 'UTF-8', 'HTML-ENTITIES'); + } else { + return chr(intval($character)); + } + } + + + /** + * TRIMNONPRINTABLE + * + * @param mixed $stringValue Value to check + * @return string + */ + public static function TRIMNONPRINTABLE($stringValue = '') { + $stringValue = PHPExcel_Calculation_Functions::flattenSingleValue($stringValue); + + if (is_bool($stringValue)) { + return ($stringValue) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); + } + + if (self::$_invalidChars == Null) { + self::$_invalidChars = range(chr(0),chr(31)); + } + + if (is_string($stringValue) || is_numeric($stringValue)) { + return str_replace(self::$_invalidChars, '', trim($stringValue, "\x00..\x1F")); + } + return NULL; + } // function TRIMNONPRINTABLE() + + + /** + * TRIMSPACES + * + * @param mixed $stringValue Value to check + * @return string + */ + public static function TRIMSPACES($stringValue = '') { + $stringValue = PHPExcel_Calculation_Functions::flattenSingleValue($stringValue); + + if (is_bool($stringValue)) { + return ($stringValue) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); + } + + if (is_string($stringValue) || is_numeric($stringValue)) { + return trim(preg_replace('/ +/',' ',trim($stringValue,' '))); + } + return NULL; + } // function TRIMSPACES() + + + /** + * ASCIICODE + * + * @param string $characters Value + * @return int + */ + public static function ASCIICODE($characters) { + if (($characters === NULL) || ($characters === '')) + return PHPExcel_Calculation_Functions::VALUE(); + $characters = PHPExcel_Calculation_Functions::flattenSingleValue($characters); + if (is_bool($characters)) { + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { + $characters = (int) $characters; + } else { + $characters = ($characters) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); + } + } + + $character = $characters; + if ((function_exists('mb_strlen')) && (function_exists('mb_substr'))) { + if (mb_strlen($characters, 'UTF-8') > 1) { $character = mb_substr($characters, 0, 1, 'UTF-8'); } + return self::_uniord($character); + } else { + if (strlen($characters) > 0) { $character = substr($characters, 0, 1); } + return ord($character); + } + } // function ASCIICODE() + + + /** + * CONCATENATE + * + * @return string + */ + public static function CONCATENATE() { + // Return value + $returnValue = ''; + + // Loop through arguments + $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); + foreach ($aArgs as $arg) { + if (is_bool($arg)) { + if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { + $arg = (int) $arg; + } else { + $arg = ($arg) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); + } + } + $returnValue .= $arg; + } + + // Return + return $returnValue; + } // function CONCATENATE() + + + /** + * DOLLAR + * + * This function converts a number to text using currency format, with the decimals rounded to the specified place. + * The format used is $#,##0.00_);($#,##0.00).. + * + * @param float $value The value to format + * @param int $decimals The number of digits to display to the right of the decimal point. + * If decimals is negative, number is rounded to the left of the decimal point. + * If you omit decimals, it is assumed to be 2 + * @return string + */ + public static function DOLLAR($value = 0, $decimals = 2) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $decimals = is_null($decimals) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($decimals); + + // Validate parameters + if (!is_numeric($value) || !is_numeric($decimals)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $decimals = floor($decimals); + + $mask = '$#,##0'; + if ($decimals > 0) { + $mask .= '.' . str_repeat('0',$decimals); + } else { + $round = pow(10,abs($decimals)); + if ($value < 0) { $round = 0-$round; } + $value = PHPExcel_Calculation_MathTrig::MROUND($value, $round); + } + + return PHPExcel_Style_NumberFormat::toFormattedString($value, $mask); + + } // function DOLLAR() + + + /** + * SEARCHSENSITIVE + * + * @param string $needle The string to look for + * @param string $haystack The string in which to look + * @param int $offset Offset within $haystack + * @return string + */ + public static function SEARCHSENSITIVE($needle,$haystack,$offset=1) { + $needle = PHPExcel_Calculation_Functions::flattenSingleValue($needle); + $haystack = PHPExcel_Calculation_Functions::flattenSingleValue($haystack); + $offset = PHPExcel_Calculation_Functions::flattenSingleValue($offset); + + if (!is_bool($needle)) { + if (is_bool($haystack)) { + $haystack = ($haystack) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); + } + + if (($offset > 0) && (PHPExcel_Shared_String::CountCharacters($haystack) > $offset)) { + if (PHPExcel_Shared_String::CountCharacters($needle) == 0) { + return $offset; + } + if (function_exists('mb_strpos')) { + $pos = mb_strpos($haystack, $needle, --$offset, 'UTF-8'); + } else { + $pos = strpos($haystack, $needle, --$offset); + } + if ($pos !== false) { + return ++$pos; + } + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function SEARCHSENSITIVE() + + + /** + * SEARCHINSENSITIVE + * + * @param string $needle The string to look for + * @param string $haystack The string in which to look + * @param int $offset Offset within $haystack + * @return string + */ + public static function SEARCHINSENSITIVE($needle,$haystack,$offset=1) { + $needle = PHPExcel_Calculation_Functions::flattenSingleValue($needle); + $haystack = PHPExcel_Calculation_Functions::flattenSingleValue($haystack); + $offset = PHPExcel_Calculation_Functions::flattenSingleValue($offset); + + if (!is_bool($needle)) { + if (is_bool($haystack)) { + $haystack = ($haystack) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); + } + + if (($offset > 0) && (PHPExcel_Shared_String::CountCharacters($haystack) > $offset)) { + if (PHPExcel_Shared_String::CountCharacters($needle) == 0) { + return $offset; + } + if (function_exists('mb_stripos')) { + $pos = mb_stripos($haystack, $needle, --$offset,'UTF-8'); + } else { + $pos = stripos($haystack, $needle, --$offset); + } + if ($pos !== false) { + return ++$pos; + } + } + } + return PHPExcel_Calculation_Functions::VALUE(); + } // function SEARCHINSENSITIVE() + + + /** + * FIXEDFORMAT + * + * @param mixed $value Value to check + * @param integer $decimals + * @param boolean $no_commas + * @return boolean + */ + public static function FIXEDFORMAT($value, $decimals = 2, $no_commas = FALSE) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $decimals = PHPExcel_Calculation_Functions::flattenSingleValue($decimals); + $no_commas = PHPExcel_Calculation_Functions::flattenSingleValue($no_commas); + + // Validate parameters + if (!is_numeric($value) || !is_numeric($decimals)) { + return PHPExcel_Calculation_Functions::NaN(); + } + $decimals = floor($decimals); + + $valueResult = round($value,$decimals); + if ($decimals < 0) { $decimals = 0; } + if (!$no_commas) { + $valueResult = number_format($valueResult,$decimals); + } + + return (string) $valueResult; + } // function FIXEDFORMAT() + + + /** + * LEFT + * + * @param string $value Value + * @param int $chars Number of characters + * @return string + */ + public static function LEFT($value = '', $chars = 1) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $chars = PHPExcel_Calculation_Functions::flattenSingleValue($chars); + + if ($chars < 0) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (is_bool($value)) { + $value = ($value) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); + } + + if (function_exists('mb_substr')) { + return mb_substr($value, 0, $chars, 'UTF-8'); + } else { + return substr($value, 0, $chars); + } + } // function LEFT() + + + /** + * MID + * + * @param string $value Value + * @param int $start Start character + * @param int $chars Number of characters + * @return string + */ + public static function MID($value = '', $start = 1, $chars = null) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $start = PHPExcel_Calculation_Functions::flattenSingleValue($start); + $chars = PHPExcel_Calculation_Functions::flattenSingleValue($chars); + + if (($start < 1) || ($chars < 0)) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (is_bool($value)) { + $value = ($value) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); + } + + if (function_exists('mb_substr')) { + return mb_substr($value, --$start, $chars, 'UTF-8'); + } else { + return substr($value, --$start, $chars); + } + } // function MID() + + + /** + * RIGHT + * + * @param string $value Value + * @param int $chars Number of characters + * @return string + */ + public static function RIGHT($value = '', $chars = 1) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $chars = PHPExcel_Calculation_Functions::flattenSingleValue($chars); + + if ($chars < 0) { + return PHPExcel_Calculation_Functions::VALUE(); + } + + if (is_bool($value)) { + $value = ($value) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); + } + + if ((function_exists('mb_substr')) && (function_exists('mb_strlen'))) { + return mb_substr($value, mb_strlen($value, 'UTF-8') - $chars, $chars, 'UTF-8'); + } else { + return substr($value, strlen($value) - $chars); + } + } // function RIGHT() + + + /** + * STRINGLENGTH + * + * @param string $value Value + * @return string + */ + public static function STRINGLENGTH($value = '') { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + + if (is_bool($value)) { + $value = ($value) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); + } + + if (function_exists('mb_strlen')) { + return mb_strlen($value, 'UTF-8'); + } else { + return strlen($value); + } + } // function STRINGLENGTH() + + + /** + * LOWERCASE + * + * Converts a string value to upper case. + * + * @param string $mixedCaseString + * @return string + */ + public static function LOWERCASE($mixedCaseString) { + $mixedCaseString = PHPExcel_Calculation_Functions::flattenSingleValue($mixedCaseString); + + if (is_bool($mixedCaseString)) { + $mixedCaseString = ($mixedCaseString) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); + } + + return PHPExcel_Shared_String::StrToLower($mixedCaseString); + } // function LOWERCASE() + + + /** + * UPPERCASE + * + * Converts a string value to upper case. + * + * @param string $mixedCaseString + * @return string + */ + public static function UPPERCASE($mixedCaseString) { + $mixedCaseString = PHPExcel_Calculation_Functions::flattenSingleValue($mixedCaseString); + + if (is_bool($mixedCaseString)) { + $mixedCaseString = ($mixedCaseString) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); + } + + return PHPExcel_Shared_String::StrToUpper($mixedCaseString); + } // function UPPERCASE() + + + /** + * PROPERCASE + * + * Converts a string value to upper case. + * + * @param string $mixedCaseString + * @return string + */ + public static function PROPERCASE($mixedCaseString) { + $mixedCaseString = PHPExcel_Calculation_Functions::flattenSingleValue($mixedCaseString); + + if (is_bool($mixedCaseString)) { + $mixedCaseString = ($mixedCaseString) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); + } + + return PHPExcel_Shared_String::StrToTitle($mixedCaseString); + } // function PROPERCASE() + + + /** + * REPLACE + * + * @param string $oldText String to modify + * @param int $start Start character + * @param int $chars Number of characters + * @param string $newText String to replace in defined position + * @return string + */ + public static function REPLACE($oldText = '', $start = 1, $chars = null, $newText) { + $oldText = PHPExcel_Calculation_Functions::flattenSingleValue($oldText); + $start = PHPExcel_Calculation_Functions::flattenSingleValue($start); + $chars = PHPExcel_Calculation_Functions::flattenSingleValue($chars); + $newText = PHPExcel_Calculation_Functions::flattenSingleValue($newText); + + $left = self::LEFT($oldText,$start-1); + $right = self::RIGHT($oldText,self::STRINGLENGTH($oldText)-($start+$chars)+1); + + return $left.$newText.$right; + } // function REPLACE() + + + /** + * SUBSTITUTE + * + * @param string $text Value + * @param string $fromText From Value + * @param string $toText To Value + * @param integer $instance Instance Number + * @return string + */ + public static function SUBSTITUTE($text = '', $fromText = '', $toText = '', $instance = 0) { + $text = PHPExcel_Calculation_Functions::flattenSingleValue($text); + $fromText = PHPExcel_Calculation_Functions::flattenSingleValue($fromText); + $toText = PHPExcel_Calculation_Functions::flattenSingleValue($toText); + $instance = floor(PHPExcel_Calculation_Functions::flattenSingleValue($instance)); + + if ($instance == 0) { + if(function_exists('mb_str_replace')) { + return mb_str_replace($fromText,$toText,$text); + } else { + return str_replace($fromText,$toText,$text); + } + } else { + $pos = -1; + while($instance > 0) { + if (function_exists('mb_strpos')) { + $pos = mb_strpos($text, $fromText, $pos+1, 'UTF-8'); + } else { + $pos = strpos($text, $fromText, $pos+1); + } + if ($pos === false) { + break; + } + --$instance; + } + if ($pos !== false) { + if (function_exists('mb_strlen')) { + return self::REPLACE($text,++$pos,mb_strlen($fromText, 'UTF-8'),$toText); + } else { + return self::REPLACE($text,++$pos,strlen($fromText),$toText); + } + } + } + + return $text; + } // function SUBSTITUTE() + + + /** + * RETURNSTRING + * + * @param mixed $testValue Value to check + * @return boolean + */ + public static function RETURNSTRING($testValue = '') { + $testValue = PHPExcel_Calculation_Functions::flattenSingleValue($testValue); + + if (is_string($testValue)) { + return $testValue; + } + return Null; + } // function RETURNSTRING() + + + /** + * TEXTFORMAT + * + * @param mixed $value Value to check + * @param string $format Format mask to use + * @return boolean + */ + public static function TEXTFORMAT($value,$format) { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + $format = PHPExcel_Calculation_Functions::flattenSingleValue($format); + + if ((is_string($value)) && (!is_numeric($value)) && PHPExcel_Shared_Date::isDateTimeFormatCode($format)) { + $value = PHPExcel_Calculation_DateTime::DATEVALUE($value); + } + + return (string) PHPExcel_Style_NumberFormat::toFormattedString($value,$format); + } // function TEXTFORMAT() + + /** + * VALUE + * + * @param mixed $value Value to check + * @return boolean + */ + public static function VALUE($value = '') { + $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); + + if (!is_numeric($value)) { + $numberValue = str_replace( + PHPExcel_Shared_String::getThousandsSeparator(), + '', + trim($value, " \t\n\r\0\x0B" . PHPExcel_Shared_String::getCurrencyCode()) + ); + if (is_numeric($numberValue)) { + return (float) $numberValue; + } + + $dateSetting = PHPExcel_Calculation_Functions::getReturnDateType(); + PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_EXCEL); + + if (strpos($value, ':') !== false) { + $timeValue = PHPExcel_Calculation_DateTime::TIMEVALUE($value); + if ($timeValue !== PHPExcel_Calculation_Functions::VALUE()) { + PHPExcel_Calculation_Functions::setReturnDateType($dateSetting); + return $timeValue; + } + } + $dateValue = PHPExcel_Calculation_DateTime::DATEVALUE($value); + if ($dateValue !== PHPExcel_Calculation_Functions::VALUE()) { + PHPExcel_Calculation_Functions::setReturnDateType($dateSetting); + return $dateValue; + } + PHPExcel_Calculation_Functions::setReturnDateType($dateSetting); + + return PHPExcel_Calculation_Functions::VALUE(); + } + return (float) $value; + } + +} diff --git a/admin/helpers/PHPExcel/Calculation/Token/Stack.php b/admin/helpers/PHPExcel/Calculation/Token/Stack.php new file mode 100644 index 00000000..57963e73 --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/Token/Stack.php @@ -0,0 +1,115 @@ +_count; + } // function count() + + /** + * Push a new entry onto the stack + * + * @param mixed $type + * @param mixed $value + * @param mixed $reference + */ + public function push($type, $value, $reference = NULL) { + $this->_stack[$this->_count++] = array('type' => $type, + 'value' => $value, + 'reference' => $reference + ); + if ($type == 'Function') { + $localeFunction = PHPExcel_Calculation::_localeFunc($value); + if ($localeFunction != $value) { + $this->_stack[($this->_count - 1)]['localeValue'] = $localeFunction; + } + } + } // function push() + + /** + * Pop the last entry from the stack + * + * @return mixed + */ + public function pop() { + if ($this->_count > 0) { + return $this->_stack[--$this->_count]; + } + return NULL; + } // function pop() + + /** + * Return an entry from the stack without removing it + * + * @param integer $n number indicating how far back in the stack we want to look + * @return mixed + */ + public function last($n = 1) { + if ($this->_count - $n < 0) { + return NULL; + } + return $this->_stack[$this->_count - $n]; + } // function last() + + /** + * Clear the stack + */ + function clear() { + $this->_stack = array(); + $this->_count = 0; + } + +} // class PHPExcel_Calculation_Token_Stack diff --git a/admin/helpers/PHPExcel/Calculation/Token/index.html b/admin/helpers/PHPExcel/Calculation/Token/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/Token/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Calculation/functionlist.txt b/admin/helpers/PHPExcel/Calculation/functionlist.txt new file mode 100644 index 00000000..67dbd49c --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/functionlist.txt @@ -0,0 +1,351 @@ +ABS +ACCRINT +ACCRINTM +ACOS +ACOSH +ADDRESS +AMORDEGRC +AMORLINC +AND +AREAS +ASC +ASIN +ASINH +ATAN +ATAN2 +ATANH +AVEDEV +AVERAGE +AVERAGEA +AVERAGEIF +AVERAGEIFS +BAHTTEXT +BESSELI +BESSELJ +BESSELK +BESSELY +BETADIST +BETAINV +BIN2DEC +BIN2HEX +BIN2OCT +BINOMDIST +CEILING +CELL +CHAR +CHIDIST +CHIINV +CHITEST +CHOOSE +CLEAN +CODE +COLUMN +COLUMNS +COMBIN +COMPLEX +CONCATENATE +CONFIDENCE +CONVERT +CORREL +COS +COSH +COUNT +COUNTA +COUNTBLANK +COUNTIF +COUNTIFS +COUPDAYBS +COUPDAYBS +COUPDAYSNC +COUPNCD +COUPNUM +COUPPCD +COVAR +CRITBINOM +CUBEKPIMEMBER +CUBEMEMBER +CUBEMEMBERPROPERTY +CUBERANKEDMEMBER +CUBESET +CUBESETCOUNT +CUBEVALUE +CUMIPMT +CUMPRINC +DATE +DATEDIF +DATEVALUE +DAVERAGE +DAY +DAYS360 +DB +DCOUNT +DCOUNTA +DDB +DEC2BIN +DEC2HEX +DEC2OCT +DEGREES +DELTA +DEVSQ +DGET +DISC +DMAX +DMIN +DOLLAR +DOLLARDE +DOLLARFR +DPRODUCT +DSTDEV +DSTDEVP +DSUM +DURATION +DVAR +DVARP +EDATE +EFFECT +EOMONTH +ERF +ERFC +ERROR.TYPE +EVEN +EXACT +EXP +EXPONDIST +FACT +FACTDOUBLE +FALSE +FDIST +FIND +FINDB +FINV +FISHER +FISHERINV +FIXED +FLOOR +FORECAST +FREQUENCY +FTEST +FV +FVSCHEDULE +GAMAMDIST +GAMMAINV +GAMMALN +GCD +GEOMEAN +GESTEP +GETPIVOTDATA +GROWTH +HARMEAN +HEX2BIN +HEX2OCT +HLOOKUP +HOUR +HYPERLINK +HYPGEOMDIST +IF +IFERROR +IMABS +IMAGINARY +IMARGUMENT +IMCONJUGATE +IMCOS +IMEXP +IMLN +IMLOG10 +IMLOG2 +IMPOWER +IMPRODUCT +IMREAL +IMSIN +IMSQRT +IMSUB +IMSUM +INDEX +INDIRECT +INFO +INT +INTERCEPT +INTRATE +IPMT +IRR +ISBLANK +ISERR +ISERROR +ISEVEN +ISLOGICAL +ISNA +ISNONTEXT +ISNUMBER +ISODD +ISPMT +ISREF +ISTEXT +JIS +KURT +LARGE +LCM +LEFT +LEFTB +LEN +LENB +LINEST +LN +LOG +LOG10 +LOGEST +LOGINV +LOGNORMDIST +LOOKUP +LOWER +MATCH +MAX +MAXA +MDETERM +MDURATION +MEDIAN +MID +MIDB +MIN +MINA +MINUTE +MINVERSE +MIRR +MMULT +MOD +MODE +MONTH +MROUND +MULTINOMIAL +N +NA +NEGBINOMDIST +NETWORKDAYS +NOMINAL +NORMDIST +NORMINV +NORMSDIST +NORMSINV +NOT +NOW +NPER +NPV +OCT2BIN +OCT2DEC +OCT2HEX +ODD +ODDFPRICE +ODDFYIELD +ODDLPRICE +ODDLYIELD +OFFSET +OR +PEARSON +PERCENTILE +PERCENTRANK +PERMUT +PHONETIC +PI +PMT +POISSON +POWER +PPMT +PRICE +PRICEDISC +PRICEMAT +PROB +PRODUCT +PROPER +PV +QUARTILE +QUOTIENT +RADIANS +RAND +RANDBETWEEN +RANK +RATE +RECEIVED +REPLACE +REPLACEB +REPT +RIGHT +RIGHTB +ROMAN +ROUND +ROUNDDOWN +ROUNDUP +ROW +ROWS +RSQ +RTD +SEARCH +SEARCHB +SECOND +SERIESSUM +SIGN +SIN +SINH +SKEW +SLN +SLOPE +SMALL +SQRT +SQRTPI +STANDARDIZE +STDEV +STDEVA +STDEVP +STDEVPA +STEYX +SUBSTITUTE +SUBTOTAL +SUM +SUMIF +SUMIFS +SUMPRODUCT +SUMSQ +SUMX2MY2 +SUMX2PY2 +SUMXMY2 +SYD +T +TAN +TANH +TBILLEQ +TBILLPRICE +TBILLYIELD +TDIST +TEXT +TIME +TIMEVALUE +TINV +TODAY +TRANSPOSE +TREND +TRIM +TRIMMEAN +TRUE +TRUNC +TTEST +TYPE +UPPER +USDOLLAR +VALUE +VAR +VARA +VARP +VARPA +VDB +VERSION +VLOOKUP +WEEKDAY +WEEKNUM +WEIBULL +WORKDAY +XIRR +XNPV +YEAR +YEARFRAC +YIELD +YIELDDISC +YIELDMAT +ZTEST diff --git a/admin/helpers/PHPExcel/Calculation/index.html b/admin/helpers/PHPExcel/Calculation/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Calculation/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Cell.php b/admin/helpers/PHPExcel/Cell.php new file mode 100644 index 00000000..2d5f9102 --- /dev/null +++ b/admin/helpers/PHPExcel/Cell.php @@ -0,0 +1,1022 @@ +_parent->updateCacheData($this); + + return $this; + } + + public function detach() { + $this->_parent = NULL; + } + + public function attach(PHPExcel_CachedObjectStorage_CacheBase $parent) { + $this->_parent = $parent; + } + + + /** + * Create a new Cell + * + * @param mixed $pValue + * @param string $pDataType + * @param PHPExcel_Worksheet $pSheet + * @throws PHPExcel_Exception + */ + public function __construct($pValue = NULL, $pDataType = NULL, PHPExcel_Worksheet $pSheet = NULL) + { + // Initialise cell value + $this->_value = $pValue; + + // Set worksheet cache + $this->_parent = $pSheet->getCellCacheController(); + + // Set datatype? + if ($pDataType !== NULL) { + if ($pDataType == PHPExcel_Cell_DataType::TYPE_STRING2) + $pDataType = PHPExcel_Cell_DataType::TYPE_STRING; + $this->_dataType = $pDataType; + } elseif (!self::getValueBinder()->bindValue($this, $pValue)) { + throw new PHPExcel_Exception("Value could not be bound to cell."); + } + } + + /** + * Get cell coordinate column + * + * @return string + */ + public function getColumn() + { + return $this->_parent->getCurrentColumn(); + } + + /** + * Get cell coordinate row + * + * @return int + */ + public function getRow() + { + return $this->_parent->getCurrentRow(); + } + + /** + * Get cell coordinate + * + * @return string + */ + public function getCoordinate() + { + return $this->_parent->getCurrentAddress(); + } + + /** + * Get cell value + * + * @return mixed + */ + public function getValue() + { + return $this->_value; + } + + /** + * Get cell value with formatting + * + * @return string + */ + public function getFormattedValue() + { + return (string) PHPExcel_Style_NumberFormat::toFormattedString( + $this->getCalculatedValue(), + $this->getStyle() + ->getNumberFormat()->getFormatCode() + ); + } + + /** + * Set cell value + * + * Sets the value for a cell, automatically determining the datatype using the value binder + * + * @param mixed $pValue Value + * @return PHPExcel_Cell + * @throws PHPExcel_Exception + */ + public function setValue($pValue = NULL) + { + if (!self::getValueBinder()->bindValue($this, $pValue)) { + throw new PHPExcel_Exception("Value could not be bound to cell."); + } + return $this; + } + + /** + * Set the value for a cell, with the explicit data type passed to the method (bypassing any use of the value binder) + * + * @param mixed $pValue Value + * @param string $pDataType Explicit data type + * @return PHPExcel_Cell + * @throws PHPExcel_Exception + */ + public function setValueExplicit($pValue = NULL, $pDataType = PHPExcel_Cell_DataType::TYPE_STRING) + { + // set the value according to data type + switch ($pDataType) { + case PHPExcel_Cell_DataType::TYPE_NULL: + $this->_value = $pValue; + break; + case PHPExcel_Cell_DataType::TYPE_STRING2: + $pDataType = PHPExcel_Cell_DataType::TYPE_STRING; + case PHPExcel_Cell_DataType::TYPE_STRING: + case PHPExcel_Cell_DataType::TYPE_INLINE: + $this->_value = PHPExcel_Cell_DataType::checkString($pValue); + break; + case PHPExcel_Cell_DataType::TYPE_NUMERIC: + $this->_value = (float)$pValue; + break; + case PHPExcel_Cell_DataType::TYPE_FORMULA: + $this->_value = (string)$pValue; + break; + case PHPExcel_Cell_DataType::TYPE_BOOL: + $this->_value = (bool)$pValue; + break; + case PHPExcel_Cell_DataType::TYPE_ERROR: + $this->_value = PHPExcel_Cell_DataType::checkErrorCode($pValue); + break; + default: + throw new PHPExcel_Exception('Invalid datatype: ' . $pDataType); + break; + } + + // set the datatype + $this->_dataType = $pDataType; + + return $this->notifyCacheController(); + } + + /** + * Get calculated cell value + * + * @deprecated Since version 1.7.8 for planned changes to cell for array formula handling + * + * @param boolean $resetLog Whether the calculation engine logger should be reset or not + * @return mixed + * @throws PHPExcel_Exception + */ + public function getCalculatedValue($resetLog = TRUE) + { +//echo 'Cell '.$this->getCoordinate().' value is a '.$this->_dataType.' with a value of '.$this->getValue().PHP_EOL; + if ($this->_dataType == PHPExcel_Cell_DataType::TYPE_FORMULA) { + try { +//echo 'Cell value for '.$this->getCoordinate().' is a formula: Calculating value'.PHP_EOL; + $result = PHPExcel_Calculation::getInstance( + $this->getWorksheet()->getParent() + )->calculateCellValue($this,$resetLog); +//echo $this->getCoordinate().' calculation result is '.$result.PHP_EOL; + // We don't yet handle array returns + if (is_array($result)) { + while (is_array($result)) { + $result = array_pop($result); + } + } + } catch ( PHPExcel_Exception $ex ) { + if (($ex->getMessage() === 'Unable to access External Workbook') && ($this->_calculatedValue !== NULL)) { +//echo 'Returning fallback value of '.$this->_calculatedValue.' for cell '.$this->getCoordinate().PHP_EOL; + return $this->_calculatedValue; // Fallback for calculations referencing external files. + } +//echo 'Calculation Exception: '.$ex->getMessage().PHP_EOL; + $result = '#N/A'; + throw new PHPExcel_Calculation_Exception( + $this->getWorksheet()->getTitle().'!'.$this->getCoordinate().' -> '.$ex->getMessage() + ); + } + + if ($result === '#Not Yet Implemented') { +//echo 'Returning fallback value of '.$this->_calculatedValue.' for cell '.$this->getCoordinate().PHP_EOL; + return $this->_calculatedValue; // Fallback if calculation engine does not support the formula. + } +//echo 'Returning calculated value of '.$result.' for cell '.$this->getCoordinate().PHP_EOL; + return $result; + } elseif($this->_value instanceof PHPExcel_RichText) { +// echo 'Cell value for '.$this->getCoordinate().' is rich text: Returning data value of '.$this->_value.'
'; + return $this->_value->getPlainText(); + } +// echo 'Cell value for '.$this->getCoordinate().' is not a formula: Returning data value of '.$this->_value.'
'; + return $this->_value; + } + + /** + * Set old calculated value (cached) + * + * @param mixed $pValue Value + * @return PHPExcel_Cell + */ + public function setCalculatedValue($pValue = NULL) + { + if ($pValue !== NULL) { + $this->_calculatedValue = (is_numeric($pValue)) ? (float) $pValue : $pValue; + } + + return $this->notifyCacheController(); + } + + /** + * Get old calculated value (cached) + * This returns the value last calculated by MS Excel or whichever spreadsheet program was used to + * create the original spreadsheet file. + * Note that this value is not guaranteed to refelect the actual calculated value because it is + * possible that auto-calculation was disabled in the original spreadsheet, and underlying data + * values used by the formula have changed since it was last calculated. + * + * @return mixed + */ + public function getOldCalculatedValue() + { + return $this->_calculatedValue; + } + + /** + * Get cell data type + * + * @return string + */ + public function getDataType() + { + return $this->_dataType; + } + + /** + * Set cell data type + * + * @param string $pDataType + * @return PHPExcel_Cell + */ + public function setDataType($pDataType = PHPExcel_Cell_DataType::TYPE_STRING) + { + if ($pDataType == PHPExcel_Cell_DataType::TYPE_STRING2) + $pDataType = PHPExcel_Cell_DataType::TYPE_STRING; + + $this->_dataType = $pDataType; + + return $this->notifyCacheController(); + } + + /** + * Identify if the cell contains a formula + * + * @return boolean + */ + public function isFormula() + { + return $this->_dataType == PHPExcel_Cell_DataType::TYPE_FORMULA; + } + + /** + * Does this cell contain Data validation rules? + * + * @return boolean + * @throws PHPExcel_Exception + */ + public function hasDataValidation() + { + if (!isset($this->_parent)) { + throw new PHPExcel_Exception('Cannot check for data validation when cell is not bound to a worksheet'); + } + + return $this->getWorksheet()->dataValidationExists($this->getCoordinate()); + } + + /** + * Get Data validation rules + * + * @return PHPExcel_Cell_DataValidation + * @throws PHPExcel_Exception + */ + public function getDataValidation() + { + if (!isset($this->_parent)) { + throw new PHPExcel_Exception('Cannot get data validation for cell that is not bound to a worksheet'); + } + + return $this->getWorksheet()->getDataValidation($this->getCoordinate()); + } + + /** + * Set Data validation rules + * + * @param PHPExcel_Cell_DataValidation $pDataValidation + * @return PHPExcel_Cell + * @throws PHPExcel_Exception + */ + public function setDataValidation(PHPExcel_Cell_DataValidation $pDataValidation = NULL) + { + if (!isset($this->_parent)) { + throw new PHPExcel_Exception('Cannot set data validation for cell that is not bound to a worksheet'); + } + + $this->getWorksheet()->setDataValidation($this->getCoordinate(), $pDataValidation); + + return $this->notifyCacheController(); + } + + /** + * Does this cell contain a Hyperlink? + * + * @return boolean + * @throws PHPExcel_Exception + */ + public function hasHyperlink() + { + if (!isset($this->_parent)) { + throw new PHPExcel_Exception('Cannot check for hyperlink when cell is not bound to a worksheet'); + } + + return $this->getWorksheet()->hyperlinkExists($this->getCoordinate()); + } + + /** + * Get Hyperlink + * + * @return PHPExcel_Cell_Hyperlink + * @throws PHPExcel_Exception + */ + public function getHyperlink() + { + if (!isset($this->_parent)) { + throw new PHPExcel_Exception('Cannot get hyperlink for cell that is not bound to a worksheet'); + } + + return $this->getWorksheet()->getHyperlink($this->getCoordinate()); + } + + /** + * Set Hyperlink + * + * @param PHPExcel_Cell_Hyperlink $pHyperlink + * @return PHPExcel_Cell + * @throws PHPExcel_Exception + */ + public function setHyperlink(PHPExcel_Cell_Hyperlink $pHyperlink = NULL) + { + if (!isset($this->_parent)) { + throw new PHPExcel_Exception('Cannot set hyperlink for cell that is not bound to a worksheet'); + } + + $this->getWorksheet()->setHyperlink($this->getCoordinate(), $pHyperlink); + + return $this->notifyCacheController(); + } + + /** + * Get parent worksheet + * + * @return PHPExcel_CachedObjectStorage_CacheBase + */ + public function getParent() { + return $this->_parent; + } + + /** + * Get parent worksheet + * + * @return PHPExcel_Worksheet + */ + public function getWorksheet() { + return $this->_parent->getParent(); + } + + /** + * Is this cell in a merge range + * + * @return boolean + */ + public function isInMergeRange() { + return (boolean) $this->getMergeRange(); + } + + /** + * Is this cell the master (top left cell) in a merge range (that holds the actual data value) + * + * @return boolean + */ + public function isMergeRangeValueCell() { + if ($mergeRange = $this->getMergeRange()) { + $mergeRange = PHPExcel_Cell::splitRange($mergeRange); + list($startCell) = $mergeRange[0]; + if ($this->getCoordinate() === $startCell) { + return true; + } + } + return false; + } + + /** + * If this cell is in a merge range, then return the range + * + * @return string + */ + public function getMergeRange() { + foreach($this->getWorksheet()->getMergeCells() as $mergeRange) { + if ($this->isInRange($mergeRange)) { + return $mergeRange; + } + } + return false; + } + + /** + * Get cell style + * + * @return PHPExcel_Style + */ + public function getStyle() + { + return $this->getWorksheet()->getStyle($this->getCoordinate()); + } + + /** + * Re-bind parent + * + * @param PHPExcel_Worksheet $parent + * @return PHPExcel_Cell + */ + public function rebindParent(PHPExcel_Worksheet $parent) { + $this->_parent = $parent->getCellCacheController(); + + return $this->notifyCacheController(); + } + + /** + * Is cell in a specific range? + * + * @param string $pRange Cell range (e.g. A1:A1) + * @return boolean + */ + public function isInRange($pRange = 'A1:A1') + { + list($rangeStart,$rangeEnd) = self::rangeBoundaries($pRange); + + // Translate properties + $myColumn = self::columnIndexFromString($this->getColumn()); + $myRow = $this->getRow(); + + // Verify if cell is in range + return (($rangeStart[0] <= $myColumn) && ($rangeEnd[0] >= $myColumn) && + ($rangeStart[1] <= $myRow) && ($rangeEnd[1] >= $myRow) + ); + } + + /** + * Coordinate from string + * + * @param string $pCoordinateString + * @return array Array containing column and row (indexes 0 and 1) + * @throws PHPExcel_Exception + */ + public static function coordinateFromString($pCoordinateString = 'A1') + { + if (preg_match("/^([$]?[A-Z]{1,3})([$]?\d{1,7})$/", $pCoordinateString, $matches)) { + return array($matches[1],$matches[2]); + } elseif ((strpos($pCoordinateString,':') !== FALSE) || (strpos($pCoordinateString,',') !== FALSE)) { + throw new PHPExcel_Exception('Cell coordinate string can not be a range of cells'); + } elseif ($pCoordinateString == '') { + throw new PHPExcel_Exception('Cell coordinate can not be zero-length string'); + } + + throw new PHPExcel_Exception('Invalid cell coordinate '.$pCoordinateString); + } + + /** + * Make string row, column or cell coordinate absolute + * + * @param string $pCoordinateString e.g. 'A' or '1' or 'A1' + * Note that this value can be a row or column reference as well as a cell reference + * @return string Absolute coordinate e.g. '$A' or '$1' or '$A$1' + * @throws PHPExcel_Exception + */ + public static function absoluteReference($pCoordinateString = 'A1') + { + if (strpos($pCoordinateString,':') === FALSE && strpos($pCoordinateString,',') === FALSE) { + // Split out any worksheet name from the reference + $worksheet = ''; + $cellAddress = explode('!',$pCoordinateString); + if (count($cellAddress) > 1) { + list($worksheet,$pCoordinateString) = $cellAddress; + } + if ($worksheet > '') $worksheet .= '!'; + + // Create absolute coordinate + if (ctype_digit($pCoordinateString)) { + return $worksheet . '$' . $pCoordinateString; + } elseif (ctype_alpha($pCoordinateString)) { + return $worksheet . '$' . strtoupper($pCoordinateString); + } + return $worksheet . self::absoluteCoordinate($pCoordinateString); + } + + throw new PHPExcel_Exception('Cell coordinate string can not be a range of cells'); + } + + /** + * Make string coordinate absolute + * + * @param string $pCoordinateString e.g. 'A1' + * @return string Absolute coordinate e.g. '$A$1' + * @throws PHPExcel_Exception + */ + public static function absoluteCoordinate($pCoordinateString = 'A1') + { + if (strpos($pCoordinateString,':') === FALSE && strpos($pCoordinateString,',') === FALSE) { + // Split out any worksheet name from the coordinate + $worksheet = ''; + $cellAddress = explode('!',$pCoordinateString); + if (count($cellAddress) > 1) { + list($worksheet,$pCoordinateString) = $cellAddress; + } + if ($worksheet > '') $worksheet .= '!'; + + // Create absolute coordinate + list($column, $row) = self::coordinateFromString($pCoordinateString); + $column = ltrim($column,'$'); + $row = ltrim($row,'$'); + return $worksheet . '$' . $column . '$' . $row; + } + + throw new PHPExcel_Exception('Cell coordinate string can not be a range of cells'); + } + + /** + * Split range into coordinate strings + * + * @param string $pRange e.g. 'B4:D9' or 'B4:D9,H2:O11' or 'B4' + * @return array Array containg one or more arrays containing one or two coordinate strings + * e.g. array('B4','D9') or array(array('B4','D9'),array('H2','O11')) + * or array('B4') + */ + public static function splitRange($pRange = 'A1:A1') + { + // Ensure $pRange is a valid range + if(empty($pRange)) { + $pRange = self::DEFAULT_RANGE; + } + + $exploded = explode(',', $pRange); + $counter = count($exploded); + for ($i = 0; $i < $counter; ++$i) { + $exploded[$i] = explode(':', $exploded[$i]); + } + return $exploded; + } + + /** + * Build range from coordinate strings + * + * @param array $pRange Array containg one or more arrays containing one or two coordinate strings + * @return string String representation of $pRange + * @throws PHPExcel_Exception + */ + public static function buildRange($pRange) + { + // Verify range + if (!is_array($pRange) || empty($pRange) || !is_array($pRange[0])) { + throw new PHPExcel_Exception('Range does not contain any information'); + } + + // Build range + $imploded = array(); + $counter = count($pRange); + for ($i = 0; $i < $counter; ++$i) { + $pRange[$i] = implode(':', $pRange[$i]); + } + $imploded = implode(',', $pRange); + + return $imploded; + } + + /** + * Calculate range boundaries + * + * @param string $pRange Cell range (e.g. A1:A1) + * @return array Range coordinates array(Start Cell, End Cell) + * where Start Cell and End Cell are arrays (Column Number, Row Number) + */ + public static function rangeBoundaries($pRange = 'A1:A1') + { + // Ensure $pRange is a valid range + if(empty($pRange)) { + $pRange = self::DEFAULT_RANGE; + } + + // Uppercase coordinate + $pRange = strtoupper($pRange); + + // Extract range + if (strpos($pRange, ':') === FALSE) { + $rangeA = $rangeB = $pRange; + } else { + list($rangeA, $rangeB) = explode(':', $pRange); + } + + // Calculate range outer borders + $rangeStart = self::coordinateFromString($rangeA); + $rangeEnd = self::coordinateFromString($rangeB); + + // Translate column into index + $rangeStart[0] = self::columnIndexFromString($rangeStart[0]); + $rangeEnd[0] = self::columnIndexFromString($rangeEnd[0]); + + return array($rangeStart, $rangeEnd); + } + + /** + * Calculate range dimension + * + * @param string $pRange Cell range (e.g. A1:A1) + * @return array Range dimension (width, height) + */ + public static function rangeDimension($pRange = 'A1:A1') + { + // Calculate range outer borders + list($rangeStart,$rangeEnd) = self::rangeBoundaries($pRange); + + return array( ($rangeEnd[0] - $rangeStart[0] + 1), ($rangeEnd[1] - $rangeStart[1] + 1) ); + } + + /** + * Calculate range boundaries + * + * @param string $pRange Cell range (e.g. A1:A1) + * @return array Range coordinates array(Start Cell, End Cell) + * where Start Cell and End Cell are arrays (Column ID, Row Number) + */ + public static function getRangeBoundaries($pRange = 'A1:A1') + { + // Ensure $pRange is a valid range + if(empty($pRange)) { + $pRange = self::DEFAULT_RANGE; + } + + // Uppercase coordinate + $pRange = strtoupper($pRange); + + // Extract range + if (strpos($pRange, ':') === FALSE) { + $rangeA = $rangeB = $pRange; + } else { + list($rangeA, $rangeB) = explode(':', $pRange); + } + + return array( self::coordinateFromString($rangeA), self::coordinateFromString($rangeB)); + } + + /** + * Column index from string + * + * @param string $pString + * @return int Column index (base 1 !!!) + */ + public static function columnIndexFromString($pString = 'A') + { + // Using a lookup cache adds a slight memory overhead, but boosts speed + // caching using a static within the method is faster than a class static, + // though it's additional memory overhead + static $_indexCache = array(); + + if (isset($_indexCache[$pString])) + return $_indexCache[$pString]; + + // It's surprising how costly the strtoupper() and ord() calls actually are, so we use a lookup array rather than use ord() + // and make it case insensitive to get rid of the strtoupper() as well. Because it's a static, there's no significant + // memory overhead either + static $_columnLookup = array( + 'A' => 1, 'B' => 2, 'C' => 3, 'D' => 4, 'E' => 5, 'F' => 6, 'G' => 7, 'H' => 8, 'I' => 9, 'J' => 10, 'K' => 11, 'L' => 12, 'M' => 13, + 'N' => 14, 'O' => 15, 'P' => 16, 'Q' => 17, 'R' => 18, 'S' => 19, 'T' => 20, 'U' => 21, 'V' => 22, 'W' => 23, 'X' => 24, 'Y' => 25, 'Z' => 26, + 'a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5, 'f' => 6, 'g' => 7, 'h' => 8, 'i' => 9, 'j' => 10, 'k' => 11, 'l' => 12, 'm' => 13, + 'n' => 14, 'o' => 15, 'p' => 16, 'q' => 17, 'r' => 18, 's' => 19, 't' => 20, 'u' => 21, 'v' => 22, 'w' => 23, 'x' => 24, 'y' => 25, 'z' => 26 + ); + + // We also use the language construct isset() rather than the more costly strlen() function to match the length of $pString + // for improved performance + if (isset($pString{0})) { + if (!isset($pString{1})) { + $_indexCache[$pString] = $_columnLookup[$pString]; + return $_indexCache[$pString]; + } elseif(!isset($pString{2})) { + $_indexCache[$pString] = $_columnLookup[$pString{0}] * 26 + $_columnLookup[$pString{1}]; + return $_indexCache[$pString]; + } elseif(!isset($pString{3})) { + $_indexCache[$pString] = $_columnLookup[$pString{0}] * 676 + $_columnLookup[$pString{1}] * 26 + $_columnLookup[$pString{2}]; + return $_indexCache[$pString]; + } + } + throw new PHPExcel_Exception("Column string index can not be " . ((isset($pString{0})) ? "longer than 3 characters" : "empty")); + } + + /** + * String from columnindex + * + * @param int $pColumnIndex Column index (base 0 !!!) + * @return string + */ + public static function stringFromColumnIndex($pColumnIndex = 0) + { + // Using a lookup cache adds a slight memory overhead, but boosts speed + // caching using a static within the method is faster than a class static, + // though it's additional memory overhead + static $_indexCache = array(); + + if (!isset($_indexCache[$pColumnIndex])) { + // Determine column string + if ($pColumnIndex < 26) { + $_indexCache[$pColumnIndex] = chr(65 + $pColumnIndex); + } elseif ($pColumnIndex < 702) { + $_indexCache[$pColumnIndex] = chr(64 + ($pColumnIndex / 26)) . + chr(65 + $pColumnIndex % 26); + } else { + $_indexCache[$pColumnIndex] = chr(64 + (($pColumnIndex - 26) / 676)) . + chr(65 + ((($pColumnIndex - 26) % 676) / 26)) . + chr(65 + $pColumnIndex % 26); + } + } + return $_indexCache[$pColumnIndex]; + } + + /** + * Extract all cell references in range + * + * @param string $pRange Range (e.g. A1 or A1:C10 or A1:E10 A20:E25) + * @return array Array containing single cell references + */ + public static function extractAllCellReferencesInRange($pRange = 'A1') { + // Returnvalue + $returnValue = array(); + + // Explode spaces + $cellBlocks = explode(' ', str_replace('$', '', strtoupper($pRange))); + foreach ($cellBlocks as $cellBlock) { + // Single cell? + if (strpos($cellBlock,':') === FALSE && strpos($cellBlock,',') === FALSE) { + $returnValue[] = $cellBlock; + continue; + } + + // Range... + $ranges = self::splitRange($cellBlock); + foreach($ranges as $range) { + // Single cell? + if (!isset($range[1])) { + $returnValue[] = $range[0]; + continue; + } + + // Range... + list($rangeStart, $rangeEnd) = $range; + sscanf($rangeStart,'%[A-Z]%d', $startCol, $startRow); + sscanf($rangeEnd,'%[A-Z]%d', $endCol, $endRow); + $endCol++; + + // Current data + $currentCol = $startCol; + $currentRow = $startRow; + + // Loop cells + while ($currentCol != $endCol) { + while ($currentRow <= $endRow) { + $returnValue[] = $currentCol.$currentRow; + ++$currentRow; + } + ++$currentCol; + $currentRow = $startRow; + } + } + } + + // Sort the result by column and row + $sortKeys = array(); + foreach (array_unique($returnValue) as $coord) { + sscanf($coord,'%[A-Z]%d', $column, $row); + $sortKeys[sprintf('%3s%09d',$column,$row)] = $coord; + } + ksort($sortKeys); + + // Return value + return array_values($sortKeys); + } + + /** + * Compare 2 cells + * + * @param PHPExcel_Cell $a Cell a + * @param PHPExcel_Cell $b Cell b + * @return int Result of comparison (always -1 or 1, never zero!) + */ + public static function compareCells(PHPExcel_Cell $a, PHPExcel_Cell $b) + { + if ($a->getRow() < $b->getRow()) { + return -1; + } elseif ($a->getRow() > $b->getRow()) { + return 1; + } elseif (self::columnIndexFromString($a->getColumn()) < self::columnIndexFromString($b->getColumn())) { + return -1; + } else { + return 1; + } + } + + /** + * Get value binder to use + * + * @return PHPExcel_Cell_IValueBinder + */ + public static function getValueBinder() { + if (self::$_valueBinder === NULL) { + self::$_valueBinder = new PHPExcel_Cell_DefaultValueBinder(); + } + + return self::$_valueBinder; + } + + /** + * Set value binder to use + * + * @param PHPExcel_Cell_IValueBinder $binder + * @throws PHPExcel_Exception + */ + public static function setValueBinder(PHPExcel_Cell_IValueBinder $binder = NULL) { + if ($binder === NULL) { + throw new PHPExcel_Exception("A PHPExcel_Cell_IValueBinder is required for PHPExcel to function correctly."); + } + + self::$_valueBinder = $binder; + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if ((is_object($value)) && ($key != '_parent')) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } + + /** + * Get index to cellXf + * + * @return int + */ + public function getXfIndex() + { + return $this->_xfIndex; + } + + /** + * Set index to cellXf + * + * @param int $pValue + * @return PHPExcel_Cell + */ + public function setXfIndex($pValue = 0) + { + $this->_xfIndex = $pValue; + + return $this->notifyCacheController(); + } + + /** + * @deprecated Since version 1.7.8 for planned changes to cell for array formula handling + */ + public function setFormulaAttributes($pAttributes) + { + $this->_formulaAttributes = $pAttributes; + return $this; + } + + /** + * @deprecated Since version 1.7.8 for planned changes to cell for array formula handling + */ + public function getFormulaAttributes() + { + return $this->_formulaAttributes; + } + + /** + * Convert to string + * + * @return string + */ + public function __toString() + { + return (string) $this->getValue(); + } + +} + diff --git a/admin/helpers/PHPExcel/Cell/AdvancedValueBinder.php b/admin/helpers/PHPExcel/Cell/AdvancedValueBinder.php new file mode 100644 index 00000000..f4280ac4 --- /dev/null +++ b/admin/helpers/PHPExcel/Cell/AdvancedValueBinder.php @@ -0,0 +1,192 @@ +setValueExplicit( TRUE, PHPExcel_Cell_DataType::TYPE_BOOL); + return true; + } elseif($value == PHPExcel_Calculation::getFALSE()) { + $cell->setValueExplicit( FALSE, PHPExcel_Cell_DataType::TYPE_BOOL); + return true; + } + + // Check for number in scientific format + if (preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_NUMBER.'$/', $value)) { + $cell->setValueExplicit( (float) $value, PHPExcel_Cell_DataType::TYPE_NUMERIC); + return true; + } + + // Check for fraction + if (preg_match('/^([+-]?)\s*([0-9]+)\s?\/\s*([0-9]+)$/', $value, $matches)) { + // Convert value to number + $value = $matches[2] / $matches[3]; + if ($matches[1] == '-') $value = 0 - $value; + $cell->setValueExplicit( (float) $value, PHPExcel_Cell_DataType::TYPE_NUMERIC); + // Set style + $cell->getWorksheet()->getStyle( $cell->getCoordinate() ) + ->getNumberFormat()->setFormatCode( '??/??' ); + return true; + } elseif (preg_match('/^([+-]?)([0-9]*) +([0-9]*)\s?\/\s*([0-9]*)$/', $value, $matches)) { + // Convert value to number + $value = $matches[2] + ($matches[3] / $matches[4]); + if ($matches[1] == '-') $value = 0 - $value; + $cell->setValueExplicit( (float) $value, PHPExcel_Cell_DataType::TYPE_NUMERIC); + // Set style + $cell->getWorksheet()->getStyle( $cell->getCoordinate() ) + ->getNumberFormat()->setFormatCode( '# ??/??' ); + return true; + } + + // Check for percentage + if (preg_match('/^\-?[0-9]*\.?[0-9]*\s?\%$/', $value)) { + // Convert value to number + $value = (float) str_replace('%', '', $value) / 100; + $cell->setValueExplicit( $value, PHPExcel_Cell_DataType::TYPE_NUMERIC); + // Set style + $cell->getWorksheet()->getStyle( $cell->getCoordinate() ) + ->getNumberFormat()->setFormatCode( PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_00 ); + return true; + } + + // Check for currency + $currencyCode = PHPExcel_Shared_String::getCurrencyCode(); + $decimalSeparator = PHPExcel_Shared_String::getDecimalSeparator(); + $thousandsSeparator = PHPExcel_Shared_String::getThousandsSeparator(); + if (preg_match('/^'.preg_quote($currencyCode).' *(\d{1,3}('.preg_quote($thousandsSeparator).'\d{3})*|(\d+))('.preg_quote($decimalSeparator).'\d{2})?$/', $value)) { + // Convert value to number + $value = (float) trim(str_replace(array($currencyCode, $thousandsSeparator, $decimalSeparator), array('', '', '.'), $value)); + $cell->setValueExplicit( $value, PHPExcel_Cell_DataType::TYPE_NUMERIC); + // Set style + $cell->getWorksheet()->getStyle( $cell->getCoordinate() ) + ->getNumberFormat()->setFormatCode( + str_replace('$', $currencyCode, PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_USD_SIMPLE ) + ); + return true; + } elseif (preg_match('/^\$ *(\d{1,3}(\,\d{3})*|(\d+))(\.\d{2})?$/', $value)) { + // Convert value to number + $value = (float) trim(str_replace(array('$',','), '', $value)); + $cell->setValueExplicit( $value, PHPExcel_Cell_DataType::TYPE_NUMERIC); + // Set style + $cell->getWorksheet()->getStyle( $cell->getCoordinate() ) + ->getNumberFormat()->setFormatCode( PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_USD_SIMPLE ); + return true; + } + + // Check for time without seconds e.g. '9:45', '09:45' + if (preg_match('/^(\d|[0-1]\d|2[0-3]):[0-5]\d$/', $value)) { + // Convert value to number + list($h, $m) = explode(':', $value); + $days = $h / 24 + $m / 1440; + $cell->setValueExplicit($days, PHPExcel_Cell_DataType::TYPE_NUMERIC); + // Set style + $cell->getWorksheet()->getStyle( $cell->getCoordinate() ) + ->getNumberFormat()->setFormatCode( PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME3 ); + return true; + } + + // Check for time with seconds '9:45:59', '09:45:59' + if (preg_match('/^(\d|[0-1]\d|2[0-3]):[0-5]\d:[0-5]\d$/', $value)) { + // Convert value to number + list($h, $m, $s) = explode(':', $value); + $days = $h / 24 + $m / 1440 + $s / 86400; + // Convert value to number + $cell->setValueExplicit($days, PHPExcel_Cell_DataType::TYPE_NUMERIC); + // Set style + $cell->getWorksheet()->getStyle( $cell->getCoordinate() ) + ->getNumberFormat()->setFormatCode( PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME4 ); + return true; + } + + // Check for datetime, e.g. '2008-12-31', '2008-12-31 15:59', '2008-12-31 15:59:10' + if (($d = PHPExcel_Shared_Date::stringToExcel($value)) !== false) { + // Convert value to number + $cell->setValueExplicit($d, PHPExcel_Cell_DataType::TYPE_NUMERIC); + // Determine style. Either there is a time part or not. Look for ':' + if (strpos($value, ':') !== false) { + $formatCode = 'yyyy-mm-dd h:mm'; + } else { + $formatCode = 'yyyy-mm-dd'; + } + $cell->getWorksheet()->getStyle( $cell->getCoordinate() ) + ->getNumberFormat()->setFormatCode($formatCode); + return true; + } + + // Check for newline character "\n" + if (strpos($value, "\n") !== FALSE) { + $value = PHPExcel_Shared_String::SanitizeUTF8($value); + $cell->setValueExplicit($value, PHPExcel_Cell_DataType::TYPE_STRING); + // Set style + $cell->getWorksheet()->getStyle( $cell->getCoordinate() ) + ->getAlignment()->setWrapText(TRUE); + return true; + } + } + + // Not bound yet? Use parent... + return parent::bindValue($cell, $value); + } +} diff --git a/admin/helpers/PHPExcel/Cell/DataType.php b/admin/helpers/PHPExcel/Cell/DataType.php new file mode 100644 index 00000000..07e148a5 --- /dev/null +++ b/admin/helpers/PHPExcel/Cell/DataType.php @@ -0,0 +1,122 @@ + 0, + '#DIV/0!' => 1, + '#VALUE!' => 2, + '#REF!' => 3, + '#NAME?' => 4, + '#NUM!' => 5, + '#N/A' => 6 + ); + + /** + * Get list of error codes + * + * @return array + */ + public static function getErrorCodes() { + return self::$_errorCodes; + } + + /** + * DataType for value + * + * @deprecated Replaced by PHPExcel_Cell_IValueBinder infrastructure, will be removed in version 1.8.0 + * @param mixed $pValue + * @return string + */ + public static function dataTypeForValue($pValue = null) { + return PHPExcel_Cell_DefaultValueBinder::dataTypeForValue($pValue); + } + + /** + * Check a string that it satisfies Excel requirements + * + * @param mixed Value to sanitize to an Excel string + * @return mixed Sanitized value + */ + public static function checkString($pValue = null) + { + if ($pValue instanceof PHPExcel_RichText) { + // TODO: Sanitize Rich-Text string (max. character count is 32,767) + return $pValue; + } + + // string must never be longer than 32,767 characters, truncate if necessary + $pValue = PHPExcel_Shared_String::Substring($pValue, 0, 32767); + + // we require that newline is represented as "\n" in core, not as "\r\n" or "\r" + $pValue = str_replace(array("\r\n", "\r"), "\n", $pValue); + + return $pValue; + } + + /** + * Check a value that it is a valid error code + * + * @param mixed Value to sanitize to an Excel error code + * @return string Sanitized value + */ + public static function checkErrorCode($pValue = null) + { + $pValue = (string) $pValue; + + if ( !array_key_exists($pValue, self::$_errorCodes) ) { + $pValue = '#NULL!'; + } + + return $pValue; + } + +} diff --git a/admin/helpers/PHPExcel/Cell/DataValidation.php b/admin/helpers/PHPExcel/Cell/DataValidation.php new file mode 100644 index 00000000..538ecd1f --- /dev/null +++ b/admin/helpers/PHPExcel/Cell/DataValidation.php @@ -0,0 +1,472 @@ +_formula1 = ''; + $this->_formula2 = ''; + $this->_type = PHPExcel_Cell_DataValidation::TYPE_NONE; + $this->_errorStyle = PHPExcel_Cell_DataValidation::STYLE_STOP; + $this->_operator = ''; + $this->_allowBlank = FALSE; + $this->_showDropDown = FALSE; + $this->_showInputMessage = FALSE; + $this->_showErrorMessage = FALSE; + $this->_errorTitle = ''; + $this->_error = ''; + $this->_promptTitle = ''; + $this->_prompt = ''; + } + + /** + * Get Formula 1 + * + * @return string + */ + public function getFormula1() { + return $this->_formula1; + } + + /** + * Set Formula 1 + * + * @param string $value + * @return PHPExcel_Cell_DataValidation + */ + public function setFormula1($value = '') { + $this->_formula1 = $value; + return $this; + } + + /** + * Get Formula 2 + * + * @return string + */ + public function getFormula2() { + return $this->_formula2; + } + + /** + * Set Formula 2 + * + * @param string $value + * @return PHPExcel_Cell_DataValidation + */ + public function setFormula2($value = '') { + $this->_formula2 = $value; + return $this; + } + + /** + * Get Type + * + * @return string + */ + public function getType() { + return $this->_type; + } + + /** + * Set Type + * + * @param string $value + * @return PHPExcel_Cell_DataValidation + */ + public function setType($value = PHPExcel_Cell_DataValidation::TYPE_NONE) { + $this->_type = $value; + return $this; + } + + /** + * Get Error style + * + * @return string + */ + public function getErrorStyle() { + return $this->_errorStyle; + } + + /** + * Set Error style + * + * @param string $value + * @return PHPExcel_Cell_DataValidation + */ + public function setErrorStyle($value = PHPExcel_Cell_DataValidation::STYLE_STOP) { + $this->_errorStyle = $value; + return $this; + } + + /** + * Get Operator + * + * @return string + */ + public function getOperator() { + return $this->_operator; + } + + /** + * Set Operator + * + * @param string $value + * @return PHPExcel_Cell_DataValidation + */ + public function setOperator($value = '') { + $this->_operator = $value; + return $this; + } + + /** + * Get Allow Blank + * + * @return boolean + */ + public function getAllowBlank() { + return $this->_allowBlank; + } + + /** + * Set Allow Blank + * + * @param boolean $value + * @return PHPExcel_Cell_DataValidation + */ + public function setAllowBlank($value = false) { + $this->_allowBlank = $value; + return $this; + } + + /** + * Get Show DropDown + * + * @return boolean + */ + public function getShowDropDown() { + return $this->_showDropDown; + } + + /** + * Set Show DropDown + * + * @param boolean $value + * @return PHPExcel_Cell_DataValidation + */ + public function setShowDropDown($value = false) { + $this->_showDropDown = $value; + return $this; + } + + /** + * Get Show InputMessage + * + * @return boolean + */ + public function getShowInputMessage() { + return $this->_showInputMessage; + } + + /** + * Set Show InputMessage + * + * @param boolean $value + * @return PHPExcel_Cell_DataValidation + */ + public function setShowInputMessage($value = false) { + $this->_showInputMessage = $value; + return $this; + } + + /** + * Get Show ErrorMessage + * + * @return boolean + */ + public function getShowErrorMessage() { + return $this->_showErrorMessage; + } + + /** + * Set Show ErrorMessage + * + * @param boolean $value + * @return PHPExcel_Cell_DataValidation + */ + public function setShowErrorMessage($value = false) { + $this->_showErrorMessage = $value; + return $this; + } + + /** + * Get Error title + * + * @return string + */ + public function getErrorTitle() { + return $this->_errorTitle; + } + + /** + * Set Error title + * + * @param string $value + * @return PHPExcel_Cell_DataValidation + */ + public function setErrorTitle($value = '') { + $this->_errorTitle = $value; + return $this; + } + + /** + * Get Error + * + * @return string + */ + public function getError() { + return $this->_error; + } + + /** + * Set Error + * + * @param string $value + * @return PHPExcel_Cell_DataValidation + */ + public function setError($value = '') { + $this->_error = $value; + return $this; + } + + /** + * Get Prompt title + * + * @return string + */ + public function getPromptTitle() { + return $this->_promptTitle; + } + + /** + * Set Prompt title + * + * @param string $value + * @return PHPExcel_Cell_DataValidation + */ + public function setPromptTitle($value = '') { + $this->_promptTitle = $value; + return $this; + } + + /** + * Get Prompt + * + * @return string + */ + public function getPrompt() { + return $this->_prompt; + } + + /** + * Set Prompt + * + * @param string $value + * @return PHPExcel_Cell_DataValidation + */ + public function setPrompt($value = '') { + $this->_prompt = $value; + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + return md5( + $this->_formula1 + . $this->_formula2 + . $this->_type = PHPExcel_Cell_DataValidation::TYPE_NONE + . $this->_errorStyle = PHPExcel_Cell_DataValidation::STYLE_STOP + . $this->_operator + . ($this->_allowBlank ? 't' : 'f') + . ($this->_showDropDown ? 't' : 'f') + . ($this->_showInputMessage ? 't' : 'f') + . ($this->_showErrorMessage ? 't' : 'f') + . $this->_errorTitle + . $this->_error + . $this->_promptTitle + . $this->_prompt + . __CLASS__ + ); + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Cell/DefaultValueBinder.php b/admin/helpers/PHPExcel/Cell/DefaultValueBinder.php new file mode 100644 index 00000000..59a9c713 --- /dev/null +++ b/admin/helpers/PHPExcel/Cell/DefaultValueBinder.php @@ -0,0 +1,100 @@ +setValueExplicit( $value, self::dataTypeForValue($value) ); + + // Done! + return TRUE; + } + + /** + * DataType for value + * + * @param mixed $pValue + * @return string + */ + public static function dataTypeForValue($pValue = null) { + // Match the value against a few data types + if (is_null($pValue)) { + return PHPExcel_Cell_DataType::TYPE_NULL; + } elseif ($pValue === '') { + return PHPExcel_Cell_DataType::TYPE_STRING; + } elseif ($pValue instanceof PHPExcel_RichText) { + return PHPExcel_Cell_DataType::TYPE_INLINE; + } elseif ($pValue{0} === '=' && strlen($pValue) > 1) { + return PHPExcel_Cell_DataType::TYPE_FORMULA; + } elseif (is_bool($pValue)) { + return PHPExcel_Cell_DataType::TYPE_BOOL; + } elseif (is_float($pValue) || is_int($pValue)) { + return PHPExcel_Cell_DataType::TYPE_NUMERIC; + } elseif (preg_match('/^\-?([0-9]+\\.?[0-9]*|[0-9]*\\.?[0-9]+)$/', $pValue)) { + if (is_string($pValue) && $pValue{0} === '0' && strlen($pValue) > 1 && $pValue{1} !== '.' ) { + return PHPExcel_Cell_DataType::TYPE_STRING; + } + return PHPExcel_Cell_DataType::TYPE_NUMERIC; + } elseif (is_string($pValue) && array_key_exists($pValue, PHPExcel_Cell_DataType::getErrorCodes())) { + return PHPExcel_Cell_DataType::TYPE_ERROR; + } + + return PHPExcel_Cell_DataType::TYPE_STRING; + } +} diff --git a/admin/helpers/PHPExcel/Cell/Hyperlink.php b/admin/helpers/PHPExcel/Cell/Hyperlink.php new file mode 100644 index 00000000..178ba7ee --- /dev/null +++ b/admin/helpers/PHPExcel/Cell/Hyperlink.php @@ -0,0 +1,126 @@ +_url = $pUrl; + $this->_tooltip = $pTooltip; + } + + /** + * Get URL + * + * @return string + */ + public function getUrl() { + return $this->_url; + } + + /** + * Set URL + * + * @param string $value + * @return PHPExcel_Cell_Hyperlink + */ + public function setUrl($value = '') { + $this->_url = $value; + return $this; + } + + /** + * Get tooltip + * + * @return string + */ + public function getTooltip() { + return $this->_tooltip; + } + + /** + * Set tooltip + * + * @param string $value + * @return PHPExcel_Cell_Hyperlink + */ + public function setTooltip($value = '') { + $this->_tooltip = $value; + return $this; + } + + /** + * Is this hyperlink internal? (to another worksheet) + * + * @return boolean + */ + public function isInternal() { + return strpos($this->_url, 'sheet://') !== false; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + return md5( + $this->_url + . $this->_tooltip + . __CLASS__ + ); + } +} diff --git a/admin/helpers/PHPExcel/Cell/IValueBinder.php b/admin/helpers/PHPExcel/Cell/IValueBinder.php new file mode 100644 index 00000000..55181552 --- /dev/null +++ b/admin/helpers/PHPExcel/Cell/IValueBinder.php @@ -0,0 +1,46 @@ + \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Chart.php b/admin/helpers/PHPExcel/Chart.php new file mode 100644 index 00000000..b9146b34 --- /dev/null +++ b/admin/helpers/PHPExcel/Chart.php @@ -0,0 +1,635 @@ +_name = $name; + $this->_title = $title; + $this->_legend = $legend; + $this->_xAxisLabel = $xAxisLabel; + $this->_yAxisLabel = $yAxisLabel; + $this->_plotArea = $plotArea; + $this->_plotVisibleOnly = $plotVisibleOnly; + $this->_displayBlanksAs = $displayBlanksAs; + $this->_xAxis = $xAxis; + $this->_yAxis = $yAxis; + $this->_majorGridlines = $majorGridlines; + $this->_minorGridlines = $minorGridlines; + } + + /** + * Get Name + * + * @return string + */ + public function getName() { + return $this->_name; + } + + /** + * Get Worksheet + * + * @return PHPExcel_Worksheet + */ + public function getWorksheet() { + return $this->_worksheet; + } + + /** + * Set Worksheet + * + * @param PHPExcel_Worksheet $pValue + * @throws PHPExcel_Chart_Exception + * @return PHPExcel_Chart + */ + public function setWorksheet(PHPExcel_Worksheet $pValue = null) { + $this->_worksheet = $pValue; + + return $this; + } + + /** + * Get Title + * + * @return PHPExcel_Chart_Title + */ + public function getTitle() { + return $this->_title; + } + + /** + * Set Title + * + * @param PHPExcel_Chart_Title $title + * @return PHPExcel_Chart + */ + public function setTitle(PHPExcel_Chart_Title $title) { + $this->_title = $title; + + return $this; + } + + /** + * Get Legend + * + * @return PHPExcel_Chart_Legend + */ + public function getLegend() { + return $this->_legend; + } + + /** + * Set Legend + * + * @param PHPExcel_Chart_Legend $legend + * @return PHPExcel_Chart + */ + public function setLegend(PHPExcel_Chart_Legend $legend) { + $this->_legend = $legend; + + return $this; + } + + /** + * Get X-Axis Label + * + * @return PHPExcel_Chart_Title + */ + public function getXAxisLabel() { + return $this->_xAxisLabel; + } + + /** + * Set X-Axis Label + * + * @param PHPExcel_Chart_Title $label + * @return PHPExcel_Chart + */ + public function setXAxisLabel(PHPExcel_Chart_Title $label) { + $this->_xAxisLabel = $label; + + return $this; + } + + /** + * Get Y-Axis Label + * + * @return PHPExcel_Chart_Title + */ + public function getYAxisLabel() { + return $this->_yAxisLabel; + } + + /** + * Set Y-Axis Label + * + * @param PHPExcel_Chart_Title $label + * @return PHPExcel_Chart + */ + public function setYAxisLabel(PHPExcel_Chart_Title $label) { + $this->_yAxisLabel = $label; + + return $this; + } + + /** + * Get Plot Area + * + * @return PHPExcel_Chart_PlotArea + */ + public function getPlotArea() { + return $this->_plotArea; + } + + /** + * Get Plot Visible Only + * + * @return boolean + */ + public function getPlotVisibleOnly() { + return $this->_plotVisibleOnly; + } + + /** + * Set Plot Visible Only + * + * @param boolean $plotVisibleOnly + * @return PHPExcel_Chart + */ + public function setPlotVisibleOnly($plotVisibleOnly = true) { + $this->_plotVisibleOnly = $plotVisibleOnly; + + return $this; + } + + /** + * Get Display Blanks as + * + * @return string + */ + public function getDisplayBlanksAs() { + return $this->_displayBlanksAs; + } + + /** + * Set Display Blanks as + * + * @param string $displayBlanksAs + * @return PHPExcel_Chart + */ + public function setDisplayBlanksAs($displayBlanksAs = '0') { + $this->_displayBlanksAs = $displayBlanksAs; + } + + + /** + * Get yAxis + * + * @return PHPExcel_Chart_Axis + */ + public function getChartAxisY() { + if($this->_yAxis !== NULL){ + return $this->_yAxis; + } + + return new PHPExcel_Chart_Axis(); + } + + /** + * Get xAxis + * + * @return PHPExcel_Chart_Axis + */ + public function getChartAxisX() { + if($this->_xAxis !== NULL){ + return $this->_xAxis; + } + + return new PHPExcel_Chart_Axis(); + } + + /** + * Get Major Gridlines + * + * @return PHPExcel_Chart_Gridlines + */ + public function getMajorGridlines() { + if($this->_majorGridlines !== NULL){ + return $this->_majorGridlines; + } + + return new PHPExcel_Chart_Gridlines(); + } + + /** + * Get Minor Gridlines + * + * @return PHPExcel_Chart_Gridlines + */ + public function getMinorGridlines() { + if($this->_minorGridlines !== NULL){ + return $this->_minorGridlines; + } + + return new PHPExcel_Chart_Gridlines(); + } + + + /** + * Set the Top Left position for the chart + * + * @param string $cell + * @param integer $xOffset + * @param integer $yOffset + * @return PHPExcel_Chart + */ + public function setTopLeftPosition($cell, $xOffset=null, $yOffset=null) { + $this->_topLeftCellRef = $cell; + if (!is_null($xOffset)) + $this->setTopLeftXOffset($xOffset); + if (!is_null($yOffset)) + $this->setTopLeftYOffset($yOffset); + + return $this; + } + + /** + * Get the top left position of the chart + * + * @return array an associative array containing the cell address, X-Offset and Y-Offset from the top left of that cell + */ + public function getTopLeftPosition() { + return array( 'cell' => $this->_topLeftCellRef, + 'xOffset' => $this->_topLeftXOffset, + 'yOffset' => $this->_topLeftYOffset + ); + } + + /** + * Get the cell address where the top left of the chart is fixed + * + * @return string + */ + public function getTopLeftCell() { + return $this->_topLeftCellRef; + } + + /** + * Set the Top Left cell position for the chart + * + * @param string $cell + * @return PHPExcel_Chart + */ + public function setTopLeftCell($cell) { + $this->_topLeftCellRef = $cell; + + return $this; + } + + /** + * Set the offset position within the Top Left cell for the chart + * + * @param integer $xOffset + * @param integer $yOffset + * @return PHPExcel_Chart + */ + public function setTopLeftOffset($xOffset=null,$yOffset=null) { + if (!is_null($xOffset)) + $this->setTopLeftXOffset($xOffset); + if (!is_null($yOffset)) + $this->setTopLeftYOffset($yOffset); + + return $this; + } + + /** + * Get the offset position within the Top Left cell for the chart + * + * @return integer[] + */ + public function getTopLeftOffset() { + return array( 'X' => $this->_topLeftXOffset, + 'Y' => $this->_topLeftYOffset + ); + } + + public function setTopLeftXOffset($xOffset) { + $this->_topLeftXOffset = $xOffset; + + return $this; + } + + public function getTopLeftXOffset() { + return $this->_topLeftXOffset; + } + + public function setTopLeftYOffset($yOffset) { + $this->_topLeftYOffset = $yOffset; + + return $this; + } + + public function getTopLeftYOffset() { + return $this->_topLeftYOffset; + } + + /** + * Set the Bottom Right position of the chart + * + * @param string $cell + * @param integer $xOffset + * @param integer $yOffset + * @return PHPExcel_Chart + */ + public function setBottomRightPosition($cell, $xOffset=null, $yOffset=null) { + $this->_bottomRightCellRef = $cell; + if (!is_null($xOffset)) + $this->setBottomRightXOffset($xOffset); + if (!is_null($yOffset)) + $this->setBottomRightYOffset($yOffset); + + return $this; + } + + /** + * Get the bottom right position of the chart + * + * @return array an associative array containing the cell address, X-Offset and Y-Offset from the top left of that cell + */ + public function getBottomRightPosition() { + return array( 'cell' => $this->_bottomRightCellRef, + 'xOffset' => $this->_bottomRightXOffset, + 'yOffset' => $this->_bottomRightYOffset + ); + } + + public function setBottomRightCell($cell) { + $this->_bottomRightCellRef = $cell; + + return $this; + } + + /** + * Get the cell address where the bottom right of the chart is fixed + * + * @return string + */ + public function getBottomRightCell() { + return $this->_bottomRightCellRef; + } + + /** + * Set the offset position within the Bottom Right cell for the chart + * + * @param integer $xOffset + * @param integer $yOffset + * @return PHPExcel_Chart + */ + public function setBottomRightOffset($xOffset=null,$yOffset=null) { + if (!is_null($xOffset)) + $this->setBottomRightXOffset($xOffset); + if (!is_null($yOffset)) + $this->setBottomRightYOffset($yOffset); + + return $this; + } + + /** + * Get the offset position within the Bottom Right cell for the chart + * + * @return integer[] + */ + public function getBottomRightOffset() { + return array( 'X' => $this->_bottomRightXOffset, + 'Y' => $this->_bottomRightYOffset + ); + } + + public function setBottomRightXOffset($xOffset) { + $this->_bottomRightXOffset = $xOffset; + + return $this; + } + + public function getBottomRightXOffset() { + return $this->_bottomRightXOffset; + } + + public function setBottomRightYOffset($yOffset) { + $this->_bottomRightYOffset = $yOffset; + + return $this; + } + + public function getBottomRightYOffset() { + return $this->_bottomRightYOffset; + } + + + public function refresh() { + if ($this->_worksheet !== NULL) { + $this->_plotArea->refresh($this->_worksheet); + } + } + + public function render($outputDestination = null) { + $libraryName = PHPExcel_Settings::getChartRendererName(); + if (is_null($libraryName)) { + return false; + } + // Ensure that data series values are up-to-date before we render + $this->refresh(); + + $libraryPath = PHPExcel_Settings::getChartRendererPath(); + $includePath = str_replace('\\','/',get_include_path()); + $rendererPath = str_replace('\\','/',$libraryPath); + if (strpos($rendererPath,$includePath) === false) { + set_include_path(get_include_path() . PATH_SEPARATOR . $libraryPath); + } + + $rendererName = 'PHPExcel_Chart_Renderer_'.$libraryName; + $renderer = new $rendererName($this); + + if ($outputDestination == 'php://output') { + $outputDestination = null; + } + return $renderer->render($outputDestination); + } + +} diff --git a/admin/helpers/PHPExcel/Chart/Axis.php b/admin/helpers/PHPExcel/Chart/Axis.php new file mode 100644 index 00000000..efb39e9f --- /dev/null +++ b/admin/helpers/PHPExcel/Chart/Axis.php @@ -0,0 +1,584 @@ + self::FORMAT_CODE_GENERAL, + 'source_linked' => 1 + ); + + /** + * Axis Options + * + * @var array of mixed + */ + + private $_axis_options = array( + 'minimum' => NULL, + 'maximum' => NULL, + 'major_unit' => NULL, + 'minor_unit' => NULL, + 'orientation' => self::ORIENTATION_NORMAL, + 'minor_tick_mark' => self::TICK_MARK_NONE, + 'major_tick_mark' => self::TICK_MARK_NONE, + 'axis_labels' => self::AXIS_LABELS_NEXT_TO, + 'horizontal_crosses' => self::HORIZONTAL_CROSSES_AUTOZERO, + 'horizontal_crosses_value' => NULL + ); + + /** + * Fill Properties + * + * @var array of mixed + */ + + private $_fill_properties = array( + 'type' => self::EXCEL_COLOR_TYPE_ARGB, + 'value' => NULL, + 'alpha' => 0 + ); + + /** + * Line Properties + * + * @var array of mixed + */ + + private $_line_properties = array( + 'type' => self::EXCEL_COLOR_TYPE_ARGB, + 'value' => NULL, + 'alpha' => 0 + ); + + /** + * Line Style Properties + * + * @var array of mixed + */ + + private $_line_style_properties = array( + 'width' => '9525', + 'compound' => self::LINE_STYLE_COMPOUND_SIMPLE, + 'dash' => self::LINE_STYLE_DASH_SOLID, + 'cap' => self::LINE_STYLE_CAP_FLAT, + 'join' => self::LINE_STYLE_JOIN_BEVEL, + 'arrow' => array( + 'head' => array( + 'type' => self::LINE_STYLE_ARROW_TYPE_NOARROW, + 'size' => self::LINE_STYLE_ARROW_SIZE_5 + ), + 'end' => array( + 'type' => self::LINE_STYLE_ARROW_TYPE_NOARROW, + 'size' => self::LINE_STYLE_ARROW_SIZE_8 + ), + ) + ); + + /** + * Shadow Properties + * + * @var array of mixed + */ + + private $_shadow_properties = array( + 'presets' => self::SHADOW_PRESETS_NOSHADOW, + 'effect' => NULL, + 'color' => array( + 'type' => self::EXCEL_COLOR_TYPE_STANDARD, + 'value' => 'black', + 'alpha' => 40, + ), + 'size' => array( + 'sx' => NULL, + 'sy' => NULL, + 'kx' => NULL + ), + 'blur' => NULL, + 'direction' => NULL, + 'distance' => NULL, + 'algn' => NULL, + 'rotWithShape' => NULL + ); + + /** + * Glow Properties + * + * @var array of mixed + */ + + private $_glow_properties = array( + 'size' => NULL, + 'color' => array( + 'type' => self::EXCEL_COLOR_TYPE_STANDARD, + 'value' => 'black', + 'alpha' => 40 + ) + ); + + /** + * Soft Edge Properties + * + * @var array of mixed + */ + + private $_soft_edges = array( + 'size' => NULL + ); + + /** + * Get Series Data Type + * + * @return string + */ + + public function setAxisNumberProperties($format_code) { + $this->_axis_number['format'] = (string) $format_code; + $this->_axis_number['source_linked'] = 0; + } + + /** + * Get Axis Number Format Data Type + * + * @return string + */ + + public function getAxisNumberFormat() { + return $this->_axis_number['format']; + } + + /** + * Get Axis Number Source Linked + * + * @return string + */ + + public function getAxisNumberSourceLinked() { + return (string) $this->_axis_number['source_linked']; + } + + /** + * Set Axis Options Properties + * + * @param string $axis_labels + * @param string $horizontal_crosses_value + * @param string $horizontal_crosses + * @param string $axis_orientation + * @param string $major_tmt + * @param string $minor_tmt + * @param string $minimum + * @param string $maximum + * @param string $major_unit + * @param string $minor_unit + * + */ + + public function setAxisOptionsProperties($axis_labels, $horizontal_crosses_value = NULL, $horizontal_crosses = NULL, + $axis_orientation = NULL, $major_tmt = NULL, $minor_tmt = NULL, $minimum = NULL, $maximum = NULL, $major_unit = NULL, + $minor_unit = NULL) { + + $this->_axis_options['axis_labels'] = (string) $axis_labels; + ($horizontal_crosses_value !== NULL) + ? $this->_axis_options['horizontal_crosses_value'] = (string) $horizontal_crosses_value : NULL; + ($horizontal_crosses !== NULL) ? $this->_axis_options['horizontal_crosses'] = (string) $horizontal_crosses : NULL; + ($axis_orientation !== NULL) ? $this->_axis_options['orientation'] = (string) $axis_orientation : NULL; + ($major_tmt !== NULL) ? $this->_axis_options['major_tick_mark'] = (string) $major_tmt : NULL; + ($minor_tmt !== NULL) ? $this->_axis_options['minor_tick_mark'] = (string) $minor_tmt : NULL; + ($minor_tmt !== NULL) ? $this->_axis_options['minor_tick_mark'] = (string) $minor_tmt : NULL; + ($minimum !== NULL) ? $this->_axis_options['minimum'] = (string) $minimum : NULL; + ($maximum !== NULL) ? $this->_axis_options['maximum'] = (string) $maximum : NULL; + ($major_unit !== NULL) ? $this->_axis_options['major_unit'] = (string) $major_unit : NULL; + ($minor_unit !== NULL) ? $this->_axis_options['minor_unit'] = (string) $minor_unit : NULL; + } + + /** + * Get Axis Options Property + * + * @param string $property + * + * @return string + */ + + public function getAxisOptionsProperty($property) { + return $this->_axis_options[$property]; + } + + /** + * Set Axis Orientation Property + * + * @param string $orientation + * + */ + + public function setAxisOrientation($orientation) { + $this->orientation = (string) $orientation; + } + + /** + * Set Fill Property + * + * @param string $color + * @param int $alpha + * @param string $type + * + */ + + public function setFillParameters($color, $alpha = 0, $type = self::EXCEL_COLOR_TYPE_ARGB) { + $this->_fill_properties = $this->setColorProperties($color, $alpha, $type); + } + + /** + * Set Line Property + * + * @param string $color + * @param int $alpha + * @param string $type + * + */ + + public function setLineParameters($color, $alpha = 0, $type = self::EXCEL_COLOR_TYPE_ARGB) { + $this->_line_properties = $this->setColorProperties($color, $alpha, $type); + } + + /** + * Get Fill Property + * + * @param string $property + * + * @return string + */ + + public function getFillProperty($property) { + return $this->_fill_properties[$property]; + } + + /** + * Get Line Property + * + * @param string $property + * + * @return string + */ + + public function getLineProperty($property) { + return $this->_line_properties[$property]; + } + + /** + * Set Line Style Properties + * + * @param float $line_width + * @param string $compound_type + * @param string $dash_type + * @param string $cap_type + * @param string $join_type + * @param string $head_arrow_type + * @param string $head_arrow_size + * @param string $end_arrow_type + * @param string $end_arrow_size + * + */ + + public function setLineStyleProperties($line_width = NULL, $compound_type = NULL, + $dash_type = NULL, $cap_type = NULL, $join_type = NULL, $head_arrow_type = NULL, + $head_arrow_size = NULL, $end_arrow_type = NULL, $end_arrow_size = NULL) { + + (!is_null($line_width)) ? $this->_line_style_properties['width'] = $this->getExcelPointsWidth((float) $line_width) + : NULL; + (!is_null($compound_type)) ? $this->_line_style_properties['compound'] = (string) $compound_type : NULL; + (!is_null($dash_type)) ? $this->_line_style_properties['dash'] = (string) $dash_type : NULL; + (!is_null($cap_type)) ? $this->_line_style_properties['cap'] = (string) $cap_type : NULL; + (!is_null($join_type)) ? $this->_line_style_properties['join'] = (string) $join_type : NULL; + (!is_null($head_arrow_type)) ? $this->_line_style_properties['arrow']['head']['type'] = (string) $head_arrow_type + : NULL; + (!is_null($head_arrow_size)) ? $this->_line_style_properties['arrow']['head']['size'] = (string) $head_arrow_size + : NULL; + (!is_null($end_arrow_type)) ? $this->_line_style_properties['arrow']['end']['type'] = (string) $end_arrow_type + : NULL; + (!is_null($end_arrow_size)) ? $this->_line_style_properties['arrow']['end']['size'] = (string) $end_arrow_size + : NULL; + } + + /** + * Get Line Style Property + * + * @param array|string $elements + * + * @return string + */ + + public function getLineStyleProperty($elements) { + return $this->getArrayElementsValue($this->_line_style_properties, $elements); + } + + /** + * Get Line Style Arrow Excel Width + * + * @param string $arrow + * + * @return string + */ + + public function getLineStyleArrowWidth($arrow) { + return $this->getLineStyleArrowSize($this->_line_style_properties['arrow'][$arrow]['size'], 'w'); + } + + /** + * Get Line Style Arrow Excel Length + * + * @param string $arrow + * + * @return string + */ + + public function getLineStyleArrowLength($arrow) { + return $this->getLineStyleArrowSize($this->_line_style_properties['arrow'][$arrow]['size'], 'len'); + } + + /** + * Set Shadow Properties + * + * @param int $shadow_presets + * @param string $sh_color_value + * @param string $sh_color_type + * @param string $sh_color_alpha + * @param float $sh_blur + * @param int $sh_angle + * @param float $sh_distance + * + */ + + public function setShadowProperties($sh_presets, $sh_color_value = NULL, $sh_color_type = NULL, $sh_color_alpha = NULL, $sh_blur = NULL, $sh_angle = NULL, $sh_distance = NULL) { + $this + ->_setShadowPresetsProperties((int) $sh_presets) + ->_setShadowColor( + is_null($sh_color_value) ? $this->_shadow_properties['color']['value'] : $sh_color_value + , is_null($sh_color_alpha) ? (int) $this->_shadow_properties['color']['alpha'] : $sh_color_alpha + , is_null($sh_color_type) ? $this->_shadow_properties['color']['type'] : $sh_color_type) + ->_setShadowBlur($sh_blur) + ->_setShadowAngle($sh_angle) + ->_setShadowDistance($sh_distance); + } + + /** + * Set Shadow Color + * + * @param int $shadow_presets + * + * @return PHPExcel_Chart_Axis + */ + + private function _setShadowPresetsProperties($shadow_presets) { + $this->_shadow_properties['presets'] = $shadow_presets; + $this->_setShadowProperiesMapValues($this->getShadowPresetsMap($shadow_presets)); + + return $this; + } + + /** + * Set Shadow Properties from Maped Values + * + * @param array $properties_map + * @param * $reference + * + * @return PHPExcel_Chart_Axis + */ + + private function _setShadowProperiesMapValues(array $properties_map, &$reference = NULL) { + $base_reference = $reference; + foreach ($properties_map as $property_key => $property_val) { + if (is_array($property_val)) { + if ($reference === NULL) { + $reference = & $this->_shadow_properties[$property_key]; + } else { + $reference = & $reference[$property_key]; + } + $this->_setShadowProperiesMapValues($property_val, $reference); + } else { + if ($base_reference === NULL) { + $this->_shadow_properties[$property_key] = $property_val; + } else { + $reference[$property_key] = $property_val; + } + } + } + + return $this; + } + + /** + * Set Shadow Color + * + * @param string $color + * @param int $alpha + * @param string $type + * + * @return PHPExcel_Chart_Axis + */ + + private function _setShadowColor($color, $alpha, $type) { + $this->_shadow_properties['color'] = $this->setColorProperties($color, $alpha, $type); + + return $this; + } + + /** + * Set Shadow Blur + * + * @param float $blur + * + * @return PHPExcel_Chart_Axis + */ + + private function _setShadowBlur($blur) { + if ($blur !== NULL) { + $this->_shadow_properties['blur'] = (string) $this->getExcelPointsWidth($blur); + } + + return $this; + } + + /** + * Set Shadow Angle + * + * @param int $angle + * + * @return PHPExcel_Chart_Axis + */ + + private function _setShadowAngle($angle) { + if ($angle !== NULL) { + $this->_shadow_properties['direction'] = (string) $this->getExcelPointsAngle($angle); + } + + return $this; + } + + /** + * Set Shadow Distance + * + * @param float $distance + * + * @return PHPExcel_Chart_Axis + */ + + private function _setShadowDistance($distance) { + if ($distance !== NULL) { + $this->_shadow_properties['distance'] = (string) $this->getExcelPointsWidth($distance); + } + + return $this; + } + + /** + * Get Glow Property + * + * @param float $size + * @param string $color_value + * @param int $color_alpha + * @param string $color_type + */ + + public function getShadowProperty($elements) { + return $this->getArrayElementsValue($this->_shadow_properties, $elements); + } + + /** + * Set Glow Properties + * + * @param float $size + * @param string $color_value + * @param int $color_alpha + * @param string $color_type + */ + + public function setGlowProperties($size, $color_value = NULL, $color_alpha = NULL, $color_type = NULL) { + $this + ->_setGlowSize($size) + ->_setGlowColor( + is_null($color_value) ? $this->_glow_properties['color']['value'] : $color_value + , is_null($color_alpha) ? (int) $this->_glow_properties['color']['alpha'] : $color_alpha + , is_null($color_type) ? $this->_glow_properties['color']['type'] : $color_type); + } + + /** + * Get Glow Property + * + * @param array|string $property + * + * @return string + */ + + public function getGlowProperty($property) { + return $this->getArrayElementsValue($this->_glow_properties, $property); + } + + /** + * Set Glow Color + * + * @param float $size + * + * @return PHPExcel_Chart_Axis + */ + + private function _setGlowSize($size) { + if (!is_null($size)) { + $this->_glow_properties['size'] = $this->getExcelPointsWidth($size); + } + + return $this; + } + + /** + * Set Glow Color + * + * @param string $color + * @param int $alpha + * @param string $type + * + * @return PHPExcel_Chart_Axis + */ + + private function _setGlowColor($color, $alpha, $type) { + $this->_glow_properties['color'] = $this->setColorProperties($color, $alpha, $type); + + return $this; + } + + /** + * Set Soft Edges Size + * + * @param float $size + */ + + public function setSoftEdges($size) { + if (!is_null($size)) { + $_soft_edges['size'] = (string) $this->getExcelPointsWidth($size); + } + } + + /** + * Get Soft Edges Size + * + * @return string + */ + + public function getSoftEdgesSize() { + return $this->_soft_edges['size']; + } +} \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Chart/DataSeries.php b/admin/helpers/PHPExcel/Chart/DataSeries.php new file mode 100644 index 00000000..86e61eb1 --- /dev/null +++ b/admin/helpers/PHPExcel/Chart/DataSeries.php @@ -0,0 +1,365 @@ +_plotType = $plotType; + $this->_plotGrouping = $plotGrouping; + $this->_plotOrder = $plotOrder; + $keys = array_keys($plotValues); + $this->_plotValues = $plotValues; + if ((count($plotLabel) == 0) || (is_null($plotLabel[$keys[0]]))) { + $plotLabel[$keys[0]] = new PHPExcel_Chart_DataSeriesValues(); + } + + $this->_plotLabel = $plotLabel; + if ((count($plotCategory) == 0) || (is_null($plotCategory[$keys[0]]))) { + $plotCategory[$keys[0]] = new PHPExcel_Chart_DataSeriesValues(); + } + $this->_plotCategory = $plotCategory; + $this->_smoothLine = $smoothLine; + $this->_plotStyle = $plotStyle; + } + + /** + * Get Plot Type + * + * @return string + */ + public function getPlotType() { + return $this->_plotType; + } + + /** + * Set Plot Type + * + * @param string $plotType + * @return PHPExcel_Chart_DataSeries + */ + public function setPlotType($plotType = '') { + $this->_plotType = $plotType; + return $this; + } + + /** + * Get Plot Grouping Type + * + * @return string + */ + public function getPlotGrouping() { + return $this->_plotGrouping; + } + + /** + * Set Plot Grouping Type + * + * @param string $groupingType + * @return PHPExcel_Chart_DataSeries + */ + public function setPlotGrouping($groupingType = null) { + $this->_plotGrouping = $groupingType; + return $this; + } + + /** + * Get Plot Direction + * + * @return string + */ + public function getPlotDirection() { + return $this->_plotDirection; + } + + /** + * Set Plot Direction + * + * @param string $plotDirection + * @return PHPExcel_Chart_DataSeries + */ + public function setPlotDirection($plotDirection = null) { + $this->_plotDirection = $plotDirection; + return $this; + } + + /** + * Get Plot Order + * + * @return string + */ + public function getPlotOrder() { + return $this->_plotOrder; + } + + /** + * Get Plot Labels + * + * @return array of PHPExcel_Chart_DataSeriesValues + */ + public function getPlotLabels() { + return $this->_plotLabel; + } + + /** + * Get Plot Label by Index + * + * @return PHPExcel_Chart_DataSeriesValues + */ + public function getPlotLabelByIndex($index) { + $keys = array_keys($this->_plotLabel); + if (in_array($index,$keys)) { + return $this->_plotLabel[$index]; + } elseif(isset($keys[$index])) { + return $this->_plotLabel[$keys[$index]]; + } + return false; + } + + /** + * Get Plot Categories + * + * @return array of PHPExcel_Chart_DataSeriesValues + */ + public function getPlotCategories() { + return $this->_plotCategory; + } + + /** + * Get Plot Category by Index + * + * @return PHPExcel_Chart_DataSeriesValues + */ + public function getPlotCategoryByIndex($index) { + $keys = array_keys($this->_plotCategory); + if (in_array($index,$keys)) { + return $this->_plotCategory[$index]; + } elseif(isset($keys[$index])) { + return $this->_plotCategory[$keys[$index]]; + } + return false; + } + + /** + * Get Plot Style + * + * @return string + */ + public function getPlotStyle() { + return $this->_plotStyle; + } + + /** + * Set Plot Style + * + * @param string $plotStyle + * @return PHPExcel_Chart_DataSeries + */ + public function setPlotStyle($plotStyle = null) { + $this->_plotStyle = $plotStyle; + return $this; + } + + /** + * Get Plot Values + * + * @return array of PHPExcel_Chart_DataSeriesValues + */ + public function getPlotValues() { + return $this->_plotValues; + } + + /** + * Get Plot Values by Index + * + * @return PHPExcel_Chart_DataSeriesValues + */ + public function getPlotValuesByIndex($index) { + $keys = array_keys($this->_plotValues); + if (in_array($index,$keys)) { + return $this->_plotValues[$index]; + } elseif(isset($keys[$index])) { + return $this->_plotValues[$keys[$index]]; + } + return false; + } + + /** + * Get Number of Plot Series + * + * @return integer + */ + public function getPlotSeriesCount() { + return count($this->_plotValues); + } + + /** + * Get Smooth Line + * + * @return boolean + */ + public function getSmoothLine() { + return $this->_smoothLine; + } + + /** + * Set Smooth Line + * + * @param boolean $smoothLine + * @return PHPExcel_Chart_DataSeries + */ + public function setSmoothLine($smoothLine = TRUE) { + $this->_smoothLine = $smoothLine; + return $this; + } + + public function refresh(PHPExcel_Worksheet $worksheet) { + foreach($this->_plotValues as $plotValues) { + if ($plotValues !== NULL) + $plotValues->refresh($worksheet, TRUE); + } + foreach($this->_plotLabel as $plotValues) { + if ($plotValues !== NULL) + $plotValues->refresh($worksheet, TRUE); + } + foreach($this->_plotCategory as $plotValues) { + if ($plotValues !== NULL) + $plotValues->refresh($worksheet, FALSE); + } + } + +} diff --git a/admin/helpers/PHPExcel/Chart/DataSeriesValues.php b/admin/helpers/PHPExcel/Chart/DataSeriesValues.php new file mode 100644 index 00000000..731d2c92 --- /dev/null +++ b/admin/helpers/PHPExcel/Chart/DataSeriesValues.php @@ -0,0 +1,327 @@ +setDataType($dataType); + $this->_dataSource = $dataSource; + $this->_formatCode = $formatCode; + $this->_pointCount = $pointCount; + $this->_dataValues = $dataValues; + $this->_marker = $marker; + } + + /** + * Get Series Data Type + * + * @return string + */ + public function getDataType() { + return $this->_dataType; + } + + /** + * Set Series Data Type + * + * @param string $dataType Datatype of this data series + * Typical values are: + * PHPExcel_Chart_DataSeriesValues::DATASERIES_TYPE_STRING + * Normally used for axis point values + * PHPExcel_Chart_DataSeriesValues::DATASERIES_TYPE_NUMBER + * Normally used for chart data values + * @return PHPExcel_Chart_DataSeriesValues + */ + public function setDataType($dataType = self::DATASERIES_TYPE_NUMBER) { + if (!in_array($dataType, self::$_dataTypeValues)) { + throw new PHPExcel_Chart_Exception('Invalid datatype for chart data series values'); + } + $this->_dataType = $dataType; + + return $this; + } + + /** + * Get Series Data Source (formula) + * + * @return string + */ + public function getDataSource() { + return $this->_dataSource; + } + + /** + * Set Series Data Source (formula) + * + * @param string $dataSource + * @return PHPExcel_Chart_DataSeriesValues + */ + public function setDataSource($dataSource = null, $refreshDataValues = true) { + $this->_dataSource = $dataSource; + + if ($refreshDataValues) { + // TO DO + } + + return $this; + } + + /** + * Get Point Marker + * + * @return string + */ + public function getPointMarker() { + return $this->_marker; + } + + /** + * Set Point Marker + * + * @param string $marker + * @return PHPExcel_Chart_DataSeriesValues + */ + public function setPointMarker($marker = null) { + $this->_marker = $marker; + + return $this; + } + + /** + * Get Series Format Code + * + * @return string + */ + public function getFormatCode() { + return $this->_formatCode; + } + + /** + * Set Series Format Code + * + * @param string $formatCode + * @return PHPExcel_Chart_DataSeriesValues + */ + public function setFormatCode($formatCode = null) { + $this->_formatCode = $formatCode; + + return $this; + } + + /** + * Get Series Point Count + * + * @return integer + */ + public function getPointCount() { + return $this->_pointCount; + } + + /** + * Identify if the Data Series is a multi-level or a simple series + * + * @return boolean + */ + public function isMultiLevelSeries() { + if (count($this->_dataValues) > 0) { + return is_array($this->_dataValues[0]); + } + return null; + } + + /** + * Return the level count of a multi-level Data Series + * + * @return boolean + */ + public function multiLevelCount() { + $levelCount = 0; + foreach($this->_dataValues as $dataValueSet) { + $levelCount = max($levelCount,count($dataValueSet)); + } + return $levelCount; + } + + /** + * Get Series Data Values + * + * @return array of mixed + */ + public function getDataValues() { + return $this->_dataValues; + } + + /** + * Get the first Series Data value + * + * @return mixed + */ + public function getDataValue() { + $count = count($this->_dataValues); + if ($count == 0) { + return null; + } elseif ($count == 1) { + return $this->_dataValues[0]; + } + return $this->_dataValues; + } + + /** + * Set Series Data Values + * + * @param array $dataValues + * @param boolean $refreshDataSource + * TRUE - refresh the value of _dataSource based on the values of $dataValues + * FALSE - don't change the value of _dataSource + * @return PHPExcel_Chart_DataSeriesValues + */ + public function setDataValues($dataValues = array(), $refreshDataSource = TRUE) { + $this->_dataValues = PHPExcel_Calculation_Functions::flattenArray($dataValues); + $this->_pointCount = count($dataValues); + + if ($refreshDataSource) { + // TO DO + } + + return $this; + } + + private function _stripNulls($var) { + return $var !== NULL; + } + + public function refresh(PHPExcel_Worksheet $worksheet, $flatten = TRUE) { + if ($this->_dataSource !== NULL) { + $calcEngine = PHPExcel_Calculation::getInstance($worksheet->getParent()); + $newDataValues = PHPExcel_Calculation::_unwrapResult( + $calcEngine->_calculateFormulaValue( + '='.$this->_dataSource, + NULL, + $worksheet->getCell('A1') + ) + ); + if ($flatten) { + $this->_dataValues = PHPExcel_Calculation_Functions::flattenArray($newDataValues); + foreach($this->_dataValues as &$dataValue) { + if ((!empty($dataValue)) && ($dataValue[0] == '#')) { + $dataValue = 0.0; + } + } + unset($dataValue); + } else { + $cellRange = explode('!',$this->_dataSource); + if (count($cellRange) > 1) { + list(,$cellRange) = $cellRange; + } + + $dimensions = PHPExcel_Cell::rangeDimension(str_replace('$','',$cellRange)); + if (($dimensions[0] == 1) || ($dimensions[1] == 1)) { + $this->_dataValues = PHPExcel_Calculation_Functions::flattenArray($newDataValues); + } else { + $newArray = array_values(array_shift($newDataValues)); + foreach($newArray as $i => $newDataSet) { + $newArray[$i] = array($newDataSet); + } + + foreach($newDataValues as $newDataSet) { + $i = 0; + foreach($newDataSet as $newDataVal) { + array_unshift($newArray[$i++],$newDataVal); + } + } + $this->_dataValues = $newArray; + } + } + $this->_pointCount = count($this->_dataValues); + } + + } + +} diff --git a/admin/helpers/PHPExcel/Chart/Exception.php b/admin/helpers/PHPExcel/Chart/Exception.php new file mode 100644 index 00000000..58b5b582 --- /dev/null +++ b/admin/helpers/PHPExcel/Chart/Exception.php @@ -0,0 +1,52 @@ +line = $line; + $e->file = $file; + throw $e; + } +} diff --git a/admin/helpers/PHPExcel/Chart/GridLines.php b/admin/helpers/PHPExcel/Chart/GridLines.php new file mode 100644 index 00000000..7467ea7e --- /dev/null +++ b/admin/helpers/PHPExcel/Chart/GridLines.php @@ -0,0 +1,458 @@ + array( + 'type' => self::EXCEL_COLOR_TYPE_STANDARD, + 'value' => NULL, + 'alpha' => 0 + ), + 'style' => array( + 'width' => '9525', + 'compound' => self::LINE_STYLE_COMPOUND_SIMPLE, + 'dash' => self::LINE_STYLE_DASH_SOLID, + 'cap' => self::LINE_STYLE_CAP_FLAT, + 'join' => self::LINE_STYLE_JOIN_BEVEL, + 'arrow' => array( + 'head' => array( + 'type' => self::LINE_STYLE_ARROW_TYPE_NOARROW, + 'size' => self::LINE_STYLE_ARROW_SIZE_5 + ), + 'end' => array( + 'type' => self::LINE_STYLE_ARROW_TYPE_NOARROW, + 'size' => self::LINE_STYLE_ARROW_SIZE_8 + ), + ) + ) + ), + $_shadow_properties = array( + 'presets' => self::SHADOW_PRESETS_NOSHADOW, + 'effect' => NULL, + 'color' => array( + 'type' => self::EXCEL_COLOR_TYPE_STANDARD, + 'value' => 'black', + 'alpha' => 85, + ), + 'size' => array( + 'sx' => NULL, + 'sy' => NULL, + 'kx' => NULL + ), + 'blur' => NULL, + 'direction' => NULL, + 'distance' => NULL, + 'algn' => NULL, + 'rotWithShape' => NULL + ), + $_glow_properties = array( + 'size' => NULL, + 'color' => array( + 'type' => self::EXCEL_COLOR_TYPE_STANDARD, + 'value' => 'black', + 'alpha' => 40 + ) + ), + $_soft_edges = array( + 'size' => NULL + ); + + /** + * Get Object State + * + * @return bool + */ + + public function getObjectState() { + return $this->_object_state; + } + + /** + * Change Object State to True + * + * @return PHPExcel_Chart_Gridlines + */ + + private function _activateObject() { + $this->_object_state = TRUE; + + return $this; + } + + /** + * Set Line Color Properties + * + * @param string $value + * @param int $alpha + * @param string $type + */ + + public function setLineColorProperties($value, $alpha = 0, $type = self::EXCEL_COLOR_TYPE_STANDARD) { + $this + ->_activateObject() + ->_line_properties['color'] = $this->setColorProperties( + $value, + $alpha, + $type); + } + + /** + * Set Line Color Properties + * + * @param float $line_width + * @param string $compound_type + * @param string $dash_type + * @param string $cap_type + * @param string $join_type + * @param string $head_arrow_type + * @param string $head_arrow_size + * @param string $end_arrow_type + * @param string $end_arrow_size + */ + + public function setLineStyleProperties($line_width = NULL, $compound_type = NULL, $dash_type = NULL, $cap_type = NULL, $join_type = NULL, $head_arrow_type = NULL, $head_arrow_size = NULL, $end_arrow_type = NULL, $end_arrow_size = NULL) { + $this->_activateObject(); + (!is_null($line_width)) + ? $this->_line_properties['style']['width'] = $this->getExcelPointsWidth((float) $line_width) + : NULL; + (!is_null($compound_type)) + ? $this->_line_properties['style']['compound'] = (string) $compound_type + : NULL; + (!is_null($dash_type)) + ? $this->_line_properties['style']['dash'] = (string) $dash_type + : NULL; + (!is_null($cap_type)) + ? $this->_line_properties['style']['cap'] = (string) $cap_type + : NULL; + (!is_null($join_type)) + ? $this->_line_properties['style']['join'] = (string) $join_type + : NULL; + (!is_null($head_arrow_type)) + ? $this->_line_properties['style']['arrow']['head']['type'] = (string) $head_arrow_type + : NULL; + (!is_null($head_arrow_size)) + ? $this->_line_properties['style']['arrow']['head']['size'] = (string) $head_arrow_size + : NULL; + (!is_null($end_arrow_type)) + ? $this->_line_properties['style']['arrow']['end']['type'] = (string) $end_arrow_type + : NULL; + (!is_null($end_arrow_size)) + ? $this->_line_properties['style']['arrow']['end']['size'] = (string) $end_arrow_size + : NULL; + } + + /** + * Get Line Color Property + * + * @param string $parameter + * + * @return string + */ + + public function getLineColorProperty($parameter) { + return $this->_line_properties['color'][$parameter]; + } + + /** + * Get Line Style Property + * + * @param array|string $elements + * + * @return string + */ + + public function getLineStyleProperty($elements) { + return $this->getArrayElementsValue($this->_line_properties['style'], $elements); + } + + /** + * Set Glow Properties + * + * @param float $size + * @param string $color_value + * @param int $color_alpha + * @param string $color_type + * + */ + + public function setGlowProperties($size, $color_value = NULL, $color_alpha = NULL, $color_type = NULL) { + $this + ->_activateObject() + ->_setGlowSize($size) + ->_setGlowColor($color_value, $color_alpha, $color_type); + } + + /** + * Get Glow Color Property + * + * @param string $property + * + * @return string + */ + + public function getGlowColor($property) { + return $this->_glow_properties['color'][$property]; + } + + /** + * Get Glow Size + * + * @return string + */ + + public function getGlowSize() { + return $this->_glow_properties['size']; + } + + /** + * Set Glow Size + * + * @param float $size + * + * @return PHPExcel_Chart_Gridlines + */ + + private function _setGlowSize($size) { + $this->_glow_properties['size'] = $this->getExcelPointsWidth((float) $size); + + return $this; + } + + /** + * Set Glow Color + * + * @param string $color + * @param int $alpha + * @param string $type + * + * @return PHPExcel_Chart_Gridlines + */ + + private function _setGlowColor($color, $alpha, $type) { + if (!is_null($color)) { + $this->_glow_properties['color']['value'] = (string) $color; + } + if (!is_null($alpha)) { + $this->_glow_properties['color']['alpha'] = $this->getTrueAlpha((int) $alpha); + } + if (!is_null($type)) { + $this->_glow_properties['color']['type'] = (string) $type; + } + + return $this; + } + + /** + * Get Line Style Arrow Parameters + * + * @param string $arrow_selector + * @param string $property_selector + * + * @return string + */ + + public function getLineStyleArrowParameters($arrow_selector, $property_selector) { + return $this->getLineStyleArrowSize($this->_line_properties['style']['arrow'][$arrow_selector]['size'], $property_selector); + } + + /** + * Set Shadow Properties + * + * @param int $sh_presets + * @param string $sh_color_value + * @param string $sh_color_type + * @param int $sh_color_alpha + * @param string $sh_blur + * @param int $sh_angle + * @param float $sh_distance + * + */ + + public function setShadowProperties($sh_presets, $sh_color_value = NULL, $sh_color_type = NULL, $sh_color_alpha = NULL, $sh_blur = NULL, $sh_angle = NULL, $sh_distance = NULL) { + $this + ->_activateObject() + ->_setShadowPresetsProperties((int) $sh_presets) + ->_setShadowColor( + is_null($sh_color_value) ? $this->_shadow_properties['color']['value'] : $sh_color_value + , is_null($sh_color_alpha) ? (int) $this->_shadow_properties['color']['alpha'] + : $this->getTrueAlpha($sh_color_alpha) + , is_null($sh_color_type) ? $this->_shadow_properties['color']['type'] : $sh_color_type) + ->_setShadowBlur($sh_blur) + ->_setShadowAngle($sh_angle) + ->_setShadowDistance($sh_distance); + } + + /** + * Set Shadow Presets Properties + * + * @param int $shadow_presets + * + * @return PHPExcel_Chart_Gridlines + */ + + private function _setShadowPresetsProperties($shadow_presets) { + $this->_shadow_properties['presets'] = $shadow_presets; + $this->_setShadowProperiesMapValues($this->getShadowPresetsMap($shadow_presets)); + + return $this; + } + + /** + * Set Shadow Properties Values + * + * @param array $properties_map + * @param * $reference + * + * @return PHPExcel_Chart_Gridlines + */ + + private function _setShadowProperiesMapValues(array $properties_map, &$reference = NULL) { + $base_reference = $reference; + foreach ($properties_map as $property_key => $property_val) { + if (is_array($property_val)) { + if ($reference === NULL) { + $reference = & $this->_shadow_properties[$property_key]; + } else { + $reference = & $reference[$property_key]; + } + $this->_setShadowProperiesMapValues($property_val, $reference); + } else { + if ($base_reference === NULL) { + $this->_shadow_properties[$property_key] = $property_val; + } else { + $reference[$property_key] = $property_val; + } + } + } + + return $this; + } + + /** + * Set Shadow Color + * + * @param string $color + * @param int $alpha + * @param string $type + * + * @return PHPExcel_Chart_Gridlines + */ + + private function _setShadowColor($color, $alpha, $type) { + if (!is_null($color)) { + $this->_shadow_properties['color']['value'] = (string) $color; + } + if (!is_null($alpha)) { + $this->_shadow_properties['color']['alpha'] = $this->getTrueAlpha((int) $alpha); + } + if (!is_null($type)) { + $this->_shadow_properties['color']['type'] = (string) $type; + } + + return $this; + } + + /** + * Set Shadow Blur + * + * @param float $blur + * + * @return PHPExcel_Chart_Gridlines + */ + + private function _setShadowBlur($blur) { + if ($blur !== NULL) { + $this->_shadow_properties['blur'] = (string) $this->getExcelPointsWidth($blur); + } + + return $this; + } + + /** + * Set Shadow Angle + * + * @param int $angle + * + * @return PHPExcel_Chart_Gridlines + */ + + private function _setShadowAngle($angle) { + if ($angle !== NULL) { + $this->_shadow_properties['direction'] = (string) $this->getExcelPointsAngle($angle); + } + + return $this; + } + + /** + * Set Shadow Distance + * + * @param float $distance + * + * @return PHPExcel_Chart_Gridlines + */ + + private function _setShadowDistance($distance) { + if ($distance !== NULL) { + $this->_shadow_properties['distance'] = (string) $this->getExcelPointsWidth($distance); + } + + return $this; + } + + /** + * Get Shadow Property + * + * @param string $elements + * @param array $elements + * + * @return string + */ + + public function getShadowProperty($elements) { + return $this->getArrayElementsValue($this->_shadow_properties, $elements); + } + + /** + * Set Soft Edges Size + * + * @param float $size + */ + + public function setSoftEdgesSize($size) { + if (!is_null($size)) { + $this->_activateObject(); + $_soft_edges['size'] = (string) $this->getExcelPointsWidth($size); + } + } + + /** + * Get Soft Edges Size + * + * @return string + */ + + public function getSoftEdgesSize() { + return $this->_soft_edges['size']; + } +} \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Chart/Layout.php b/admin/helpers/PHPExcel/Chart/Layout.php new file mode 100644 index 00000000..eefa157a --- /dev/null +++ b/admin/helpers/PHPExcel/Chart/Layout.php @@ -0,0 +1,445 @@ +_layoutTarget = $layout['layoutTarget']; } + if (isset($layout['xMode'])) { $this->_xMode = $layout['xMode']; } + if (isset($layout['yMode'])) { $this->_yMode = $layout['yMode']; } + if (isset($layout['x'])) { $this->_xPos = (float) $layout['x']; } + if (isset($layout['y'])) { $this->_yPos = (float) $layout['y']; } + if (isset($layout['w'])) { $this->_width = (float) $layout['w']; } + if (isset($layout['h'])) { $this->_height = (float) $layout['h']; } + } + + /** + * Get Layout Target + * + * @return string + */ + public function getLayoutTarget() { + return $this->_layoutTarget; + } + + /** + * Set Layout Target + * + * @param Layout Target $value + * @return PHPExcel_Chart_Layout + */ + public function setLayoutTarget($value) { + $this->_layoutTarget = $value; + return $this; + } + + /** + * Get X-Mode + * + * @return string + */ + public function getXMode() { + return $this->_xMode; + } + + /** + * Set X-Mode + * + * @param X-Mode $value + * @return PHPExcel_Chart_Layout + */ + public function setXMode($value) { + $this->_xMode = $value; + return $this; + } + + /** + * Get Y-Mode + * + * @return string + */ + public function getYMode() { + return $this->_yMode; + } + + /** + * Set Y-Mode + * + * @param Y-Mode $value + * @return PHPExcel_Chart_Layout + */ + public function setYMode($value) { + $this->_yMode = $value; + return $this; + } + + /** + * Get X-Position + * + * @return number + */ + public function getXPosition() { + return $this->_xPos; + } + + /** + * Set X-Position + * + * @param X-Position $value + * @return PHPExcel_Chart_Layout + */ + public function setXPosition($value) { + $this->_xPos = $value; + return $this; + } + + /** + * Get Y-Position + * + * @return number + */ + public function getYPosition() { + return $this->_yPos; + } + + /** + * Set Y-Position + * + * @param Y-Position $value + * @return PHPExcel_Chart_Layout + */ + public function setYPosition($value) { + $this->_yPos = $value; + return $this; + } + + /** + * Get Width + * + * @return number + */ + public function getWidth() { + return $this->_width; + } + + /** + * Set Width + * + * @param Width $value + * @return PHPExcel_Chart_Layout + */ + public function setWidth($value) { + $this->_width = $value; + return $this; + } + + /** + * Get Height + * + * @return number + */ + public function getHeight() { + return $this->_height; + } + + /** + * Set Height + * + * @param Height $value + * @return PHPExcel_Chart_Layout + */ + public function setHeight($value) { + $this->_height = $value; + return $this; + } + + + /** + * Get show legend key + * + * @return boolean + */ + public function getShowLegendKey() { + return $this->_showLegendKey; + } + + /** + * Set show legend key + * Specifies that legend keys should be shown in data labels. + * + * @param boolean $value Show legend key + * @return PHPExcel_Chart_Layout + */ + public function setShowLegendKey($value) { + $this->_showLegendKey = $value; + return $this; + } + + /** + * Get show value + * + * @return boolean + */ + public function getShowVal() { + return $this->_showVal; + } + + /** + * Set show val + * Specifies that the value should be shown in data labels. + * + * @param boolean $value Show val + * @return PHPExcel_Chart_Layout + */ + public function setShowVal($value) { + $this->_showVal = $value; + return $this; + } + + /** + * Get show category name + * + * @return boolean + */ + public function getShowCatName() { + return $this->_showCatName; + } + + /** + * Set show cat name + * Specifies that the category name should be shown in data labels. + * + * @param boolean $value Show cat name + * @return PHPExcel_Chart_Layout + */ + public function setShowCatName($value) { + $this->_showCatName = $value; + return $this; + } + + /** + * Get show data series name + * + * @return boolean + */ + public function getShowSerName() { + return $this->_showSerName; + } + + /** + * Set show ser name + * Specifies that the series name should be shown in data labels. + * + * @param boolean $value Show series name + * @return PHPExcel_Chart_Layout + */ + public function setShowSerName($value) { + $this->_showSerName = $value; + return $this; + } + + /** + * Get show percentage + * + * @return boolean + */ + public function getShowPercent() { + return $this->_showPercent; + } + + /** + * Set show percentage + * Specifies that the percentage should be shown in data labels. + * + * @param boolean $value Show percentage + * @return PHPExcel_Chart_Layout + */ + public function setShowPercent($value) { + $this->_showPercent = $value; + return $this; + } + + /** + * Get show bubble size + * + * @return boolean + */ + public function getShowBubbleSize() { + return $this->_showBubbleSize; + } + + /** + * Set show bubble size + * Specifies that the bubble size should be shown in data labels. + * + * @param boolean $value Show bubble size + * @return PHPExcel_Chart_Layout + */ + public function setShowBubbleSize($value) { + $this->_showBubbleSize = $value; + return $this; + } + + /** + * Get show leader lines + * + * @return boolean + */ + public function getShowLeaderLines() { + return $this->_showLeaderLines; + } + + /** + * Set show leader lines + * Specifies that leader lines should be shown in data labels. + * + * @param boolean $value Show leader lines + * @return PHPExcel_Chart_Layout + */ + public function setShowLeaderLines($value) { + $this->_showLeaderLines = $value; + return $this; + } + +} diff --git a/admin/helpers/PHPExcel/Chart/Legend.php b/admin/helpers/PHPExcel/Chart/Legend.php new file mode 100644 index 00000000..783b3d42 --- /dev/null +++ b/admin/helpers/PHPExcel/Chart/Legend.php @@ -0,0 +1,171 @@ + self::POSITION_BOTTOM, + self::xlLegendPositionCorner => self::POSITION_TOPRIGHT, + self::xlLegendPositionCustom => '??', + self::xlLegendPositionLeft => self::POSITION_LEFT, + self::xlLegendPositionRight => self::POSITION_RIGHT, + self::xlLegendPositionTop => self::POSITION_TOP + ); + + /** + * Legend position + * + * @var string + */ + private $_position = self::POSITION_RIGHT; + + /** + * Allow overlay of other elements? + * + * @var boolean + */ + private $_overlay = TRUE; + + /** + * Legend Layout + * + * @var PHPExcel_Chart_Layout + */ + private $_layout = NULL; + + + /** + * Create a new PHPExcel_Chart_Legend + */ + public function __construct($position = self::POSITION_RIGHT, PHPExcel_Chart_Layout $layout = NULL, $overlay = FALSE) + { + $this->setPosition($position); + $this->_layout = $layout; + $this->setOverlay($overlay); + } + + /** + * Get legend position as an excel string value + * + * @return string + */ + public function getPosition() { + return $this->_position; + } + + /** + * Get legend position using an excel string value + * + * @param string $position + */ + public function setPosition($position = self::POSITION_RIGHT) { + if (!in_array($position,self::$_positionXLref)) { + return false; + } + + $this->_position = $position; + return true; + } + + /** + * Get legend position as an Excel internal numeric value + * + * @return number + */ + public function getPositionXL() { + return array_search($this->_position,self::$_positionXLref); + } + + /** + * Set legend position using an Excel internal numeric value + * + * @param number $positionXL + */ + public function setPositionXL($positionXL = self::xlLegendPositionRight) { + if (!array_key_exists($positionXL,self::$_positionXLref)) { + return false; + } + + $this->_position = self::$_positionXLref[$positionXL]; + return true; + } + + /** + * Get allow overlay of other elements? + * + * @return boolean + */ + public function getOverlay() { + return $this->_overlay; + } + + /** + * Set allow overlay of other elements? + * + * @param boolean $overlay + * @return boolean + */ + public function setOverlay($overlay = FALSE) { + if (!is_bool($overlay)) { + return false; + } + + $this->_overlay = $overlay; + return true; + } + + /** + * Get Layout + * + * @return PHPExcel_Chart_Layout + */ + public function getLayout() { + return $this->_layout; + } + +} diff --git a/admin/helpers/PHPExcel/Chart/PlotArea.php b/admin/helpers/PHPExcel/Chart/PlotArea.php new file mode 100644 index 00000000..c917ce30 --- /dev/null +++ b/admin/helpers/PHPExcel/Chart/PlotArea.php @@ -0,0 +1,128 @@ +_layout = $layout; + $this->_plotSeries = $plotSeries; + } + + /** + * Get Layout + * + * @return PHPExcel_Chart_Layout + */ + public function getLayout() { + return $this->_layout; + } + + /** + * Get Number of Plot Groups + * + * @return array of PHPExcel_Chart_DataSeries + */ + public function getPlotGroupCount() { + return count($this->_plotSeries); + } + + /** + * Get Number of Plot Series + * + * @return integer + */ + public function getPlotSeriesCount() { + $seriesCount = 0; + foreach($this->_plotSeries as $plot) { + $seriesCount += $plot->getPlotSeriesCount(); + } + return $seriesCount; + } + + /** + * Get Plot Series + * + * @return array of PHPExcel_Chart_DataSeries + */ + public function getPlotGroup() { + return $this->_plotSeries; + } + + /** + * Get Plot Series by Index + * + * @return PHPExcel_Chart_DataSeries + */ + public function getPlotGroupByIndex($index) { + return $this->_plotSeries[$index]; + } + + /** + * Set Plot Series + * + * @param [PHPExcel_Chart_DataSeries] + * @return PHPExcel_Chart_PlotArea + */ + public function setPlotSeries($plotSeries = array()) { + $this->_plotSeries = $plotSeries; + + return $this; + } + + public function refresh(PHPExcel_Worksheet $worksheet) { + foreach($this->_plotSeries as $plotSeries) { + $plotSeries->refresh($worksheet); + } + } + +} diff --git a/admin/helpers/PHPExcel/Chart/Properties.php b/admin/helpers/PHPExcel/Chart/Properties.php new file mode 100644 index 00000000..7593983c --- /dev/null +++ b/admin/helpers/PHPExcel/Chart/Properties.php @@ -0,0 +1,359 @@ + (string) $type, + 'value' => (string) $color, + 'alpha' => (string) $this->getTrueAlpha($alpha) + ); + } + + protected function getLineStyleArrowSize($array_selector, $array_kay_selector) { + $sizes = array( + 1 => array('w' => 'sm', 'len' => 'sm'), + 2 => array('w' => 'sm', 'len' => 'med'), + 3 => array('w' => 'sm', 'len' => 'lg'), + 4 => array('w' => 'med', 'len' => 'sm'), + 5 => array('w' => 'med', 'len' => 'med'), + 6 => array('w' => 'med', 'len' => 'lg'), + 7 => array('w' => 'lg', 'len' => 'sm'), + 8 => array('w' => 'lg', 'len' => 'med'), + 9 => array('w' => 'lg', 'len' => 'lg') + ); + + return $sizes[$array_selector][$array_kay_selector]; + } + + protected function getShadowPresetsMap($shadow_presets_option) { + $presets_options = array( + //OUTER + 1 => array( + 'effect' => 'outerShdw', + 'blur' => '50800', + 'distance' => '38100', + 'direction' => '2700000', + 'algn' => 'tl', + 'rotWithShape' => '0' + ), + 2 => array( + 'effect' => 'outerShdw', + 'blur' => '50800', + 'distance' => '38100', + 'direction' => '5400000', + 'algn' => 't', + 'rotWithShape' => '0' + ), + 3 => array( + 'effect' => 'outerShdw', + 'blur' => '50800', + 'distance' => '38100', + 'direction' => '8100000', + 'algn' => 'tr', + 'rotWithShape' => '0' + ), + 4 => array( + 'effect' => 'outerShdw', + 'blur' => '50800', + 'distance' => '38100', + 'algn' => 'l', + 'rotWithShape' => '0' + ), + 5 => array( + 'effect' => 'outerShdw', + 'size' => array( + 'sx' => '102000', + 'sy' => '102000' + ) + , + 'blur' => '63500', + 'distance' => '38100', + 'algn' => 'ctr', + 'rotWithShape' => '0' + ), + 6 => array( + 'effect' => 'outerShdw', + 'blur' => '50800', + 'distance' => '38100', + 'direction' => '10800000', + 'algn' => 'r', + 'rotWithShape' => '0' + ), + 7 => array( + 'effect' => 'outerShdw', + 'blur' => '50800', + 'distance' => '38100', + 'direction' => '18900000', + 'algn' => 'bl', + 'rotWithShape' => '0' + ), + 8 => array( + 'effect' => 'outerShdw', + 'blur' => '50800', + 'distance' => '38100', + 'direction' => '16200000', + 'rotWithShape' => '0' + ), + 9 => array( + 'effect' => 'outerShdw', + 'blur' => '50800', + 'distance' => '38100', + 'direction' => '13500000', + 'algn' => 'br', + 'rotWithShape' => '0' + ), + //INNER + 10 => array( + 'effect' => 'innerShdw', + 'blur' => '63500', + 'distance' => '50800', + 'direction' => '2700000', + ), + 11 => array( + 'effect' => 'innerShdw', + 'blur' => '63500', + 'distance' => '50800', + 'direction' => '5400000', + ), + 12 => array( + 'effect' => 'innerShdw', + 'blur' => '63500', + 'distance' => '50800', + 'direction' => '8100000', + ), + 13 => array( + 'effect' => 'innerShdw', + 'blur' => '63500', + 'distance' => '50800', + ), + 14 => array( + 'effect' => 'innerShdw', + 'blur' => '114300', + ), + 15 => array( + 'effect' => 'innerShdw', + 'blur' => '63500', + 'distance' => '50800', + 'direction' => '10800000', + ), + 16 => array( + 'effect' => 'innerShdw', + 'blur' => '63500', + 'distance' => '50800', + 'direction' => '18900000', + ), + 17 => array( + 'effect' => 'innerShdw', + 'blur' => '63500', + 'distance' => '50800', + 'direction' => '16200000', + ), + 18 => array( + 'effect' => 'innerShdw', + 'blur' => '63500', + 'distance' => '50800', + 'direction' => '13500000', + ), + //perspective + 19 => array( + 'effect' => 'outerShdw', + 'blur' => '152400', + 'distance' => '317500', + 'size' => array( + 'sx' => '90000', + 'sy' => '-19000', + ), + 'direction' => '5400000', + 'rotWithShape' => '0', + ), + 20 => array( + 'effect' => 'outerShdw', + 'blur' => '76200', + 'direction' => '18900000', + 'size' => array( + 'sy' => '23000', + 'kx' => '-1200000', + ), + 'algn' => 'bl', + 'rotWithShape' => '0', + ), + 21 => array( + 'effect' => 'outerShdw', + 'blur' => '76200', + 'direction' => '13500000', + 'size' => array( + 'sy' => '23000', + 'kx' => '1200000', + ), + 'algn' => 'br', + 'rotWithShape' => '0', + ), + 22 => array( + 'effect' => 'outerShdw', + 'blur' => '76200', + 'distance' => '12700', + 'direction' => '2700000', + 'size' => array( + 'sy' => '-23000', + 'kx' => '-800400', + ), + 'algn' => 'bl', + 'rotWithShape' => '0', + ), + 23 => array( + 'effect' => 'outerShdw', + 'blur' => '76200', + 'distance' => '12700', + 'direction' => '8100000', + 'size' => array( + 'sy' => '-23000', + 'kx' => '800400', + ), + 'algn' => 'br', + 'rotWithShape' => '0', + ), + ); + + return $presets_options[$shadow_presets_option]; + } + + protected function getArrayElementsValue($properties, $elements) { + $reference = & $properties; + if (!is_array($elements)) { + return $reference[$elements]; + } else { + foreach ($elements as $keys) { + $reference = & $reference[$keys]; + } + + return $reference; + } + + return $this; + } + +} \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Chart/Renderer/PHP Charting Libraries.txt b/admin/helpers/PHPExcel/Chart/Renderer/PHP Charting Libraries.txt new file mode 100644 index 00000000..20a82588 --- /dev/null +++ b/admin/helpers/PHPExcel/Chart/Renderer/PHP Charting Libraries.txt @@ -0,0 +1,17 @@ +ChartDirector + http://www.advsofteng.com/cdphp.html + +GraPHPite + http://graphpite.sourceforge.net/ + +JpGraph + http://www.aditus.nu/jpgraph/ + +LibChart + http://naku.dohcrew.com/libchart/pages/introduction/ + +pChart + http://pchart.sourceforge.net/ + +TeeChart + http://www.steema.com/products/teechart/overview.html diff --git a/admin/helpers/PHPExcel/Chart/Renderer/index.html b/admin/helpers/PHPExcel/Chart/Renderer/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Chart/Renderer/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Chart/Renderer/jpgraph.php b/admin/helpers/PHPExcel/Chart/Renderer/jpgraph.php new file mode 100644 index 00000000..99a0b97a --- /dev/null +++ b/admin/helpers/PHPExcel/Chart/Renderer/jpgraph.php @@ -0,0 +1,855 @@ + MARK_DIAMOND, + 'square' => MARK_SQUARE, + 'triangle' => MARK_UTRIANGLE, + 'x' => MARK_X, + 'star' => MARK_STAR, + 'dot' => MARK_FILLEDCIRCLE, + 'dash' => MARK_DTRIANGLE, + 'circle' => MARK_CIRCLE, + 'plus' => MARK_CROSS + ); + + + private $_chart = null; + + private $_graph = null; + + private static $_plotColour = 0; + + private static $_plotMark = 0; + + + private function _formatPointMarker($seriesPlot,$markerID) { + $plotMarkKeys = array_keys(self::$_markSet); + if (is_null($markerID)) { + // Use default plot marker (next marker in the series) + self::$_plotMark %= count(self::$_markSet); + $seriesPlot->mark->SetType(self::$_markSet[$plotMarkKeys[self::$_plotMark++]]); + } elseif ($markerID !== 'none') { + // Use specified plot marker (if it exists) + if (isset(self::$_markSet[$markerID])) { + $seriesPlot->mark->SetType(self::$_markSet[$markerID]); + } else { + // If the specified plot marker doesn't exist, use default plot marker (next marker in the series) + self::$_plotMark %= count(self::$_markSet); + $seriesPlot->mark->SetType(self::$_markSet[$plotMarkKeys[self::$_plotMark++]]); + } + } else { + // Hide plot marker + $seriesPlot->mark->Hide(); + } + $seriesPlot->mark->SetColor(self::$_colourSet[self::$_plotColour]); + $seriesPlot->mark->SetFillColor(self::$_colourSet[self::$_plotColour]); + $seriesPlot->SetColor(self::$_colourSet[self::$_plotColour++]); + + return $seriesPlot; + } // function _formatPointMarker() + + + private function _formatDataSetLabels($groupID, $datasetLabels, $labelCount, $rotation = '') { + $datasetLabelFormatCode = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex(0)->getFormatCode(); + if (!is_null($datasetLabelFormatCode)) { + // Retrieve any label formatting code + $datasetLabelFormatCode = stripslashes($datasetLabelFormatCode); + } + + $testCurrentIndex = 0; + foreach($datasetLabels as $i => $datasetLabel) { + if (is_array($datasetLabel)) { + if ($rotation == 'bar') { + $datasetLabels[$i] = implode(" ",$datasetLabel); + } else { + $datasetLabel = array_reverse($datasetLabel); + $datasetLabels[$i] = implode("\n",$datasetLabel); + } + } else { + // Format labels according to any formatting code + if (!is_null($datasetLabelFormatCode)) { + $datasetLabels[$i] = PHPExcel_Style_NumberFormat::toFormattedString($datasetLabel,$datasetLabelFormatCode); + } + } + ++$testCurrentIndex; + } + + return $datasetLabels; + } // function _formatDataSetLabels() + + + private function _percentageSumCalculation($groupID,$seriesCount) { + // Adjust our values to a percentage value across all series in the group + for($i = 0; $i < $seriesCount; ++$i) { + if ($i == 0) { + $sumValues = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex($i)->getDataValues(); + } else { + $nextValues = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex($i)->getDataValues(); + foreach($nextValues as $k => $value) { + if (isset($sumValues[$k])) { + $sumValues[$k] += $value; + } else { + $sumValues[$k] = $value; + } + } + } + } + + return $sumValues; + } // function _percentageSumCalculation() + + + private function _percentageAdjustValues($dataValues,$sumValues) { + foreach($dataValues as $k => $dataValue) { + $dataValues[$k] = $dataValue / $sumValues[$k] * 100; + } + + return $dataValues; + } // function _percentageAdjustValues() + + + private function _getCaption($captionElement) { + // Read any caption + $caption = (!is_null($captionElement)) ? $captionElement->getCaption() : NULL; + // Test if we have a title caption to display + if (!is_null($caption)) { + // If we do, it could be a plain string or an array + if (is_array($caption)) { + // Implode an array to a plain string + $caption = implode('',$caption); + } + } + return $caption; + } // function _getCaption() + + + private function _renderTitle() { + $title = $this->_getCaption($this->_chart->getTitle()); + if (!is_null($title)) { + $this->_graph->title->Set($title); + } + } // function _renderTitle() + + + private function _renderLegend() { + $legend = $this->_chart->getLegend(); + if (!is_null($legend)) { + $legendPosition = $legend->getPosition(); + $legendOverlay = $legend->getOverlay(); + switch ($legendPosition) { + case 'r' : + $this->_graph->legend->SetPos(0.01,0.5,'right','center'); // right + $this->_graph->legend->SetColumns(1); + break; + case 'l' : + $this->_graph->legend->SetPos(0.01,0.5,'left','center'); // left + $this->_graph->legend->SetColumns(1); + break; + case 't' : + $this->_graph->legend->SetPos(0.5,0.01,'center','top'); // top + break; + case 'b' : + $this->_graph->legend->SetPos(0.5,0.99,'center','bottom'); // bottom + break; + default : + $this->_graph->legend->SetPos(0.01,0.01,'right','top'); // top-right + $this->_graph->legend->SetColumns(1); + break; + } + } else { + $this->_graph->legend->Hide(); + } + } // function _renderLegend() + + + private function _renderCartesianPlotArea($type='textlin') { + $this->_graph = new Graph(self::$_width,self::$_height); + $this->_graph->SetScale($type); + + $this->_renderTitle(); + + // Rotate for bar rather than column chart + $rotation = $this->_chart->getPlotArea()->getPlotGroupByIndex(0)->getPlotDirection(); + $reverse = ($rotation == 'bar') ? true : false; + + $xAxisLabel = $this->_chart->getXAxisLabel(); + if (!is_null($xAxisLabel)) { + $title = $this->_getCaption($xAxisLabel); + if (!is_null($title)) { + $this->_graph->xaxis->SetTitle($title,'center'); + $this->_graph->xaxis->title->SetMargin(35); + if ($reverse) { + $this->_graph->xaxis->title->SetAngle(90); + $this->_graph->xaxis->title->SetMargin(90); + } + } + } + + $yAxisLabel = $this->_chart->getYAxisLabel(); + if (!is_null($yAxisLabel)) { + $title = $this->_getCaption($yAxisLabel); + if (!is_null($title)) { + $this->_graph->yaxis->SetTitle($title,'center'); + if ($reverse) { + $this->_graph->yaxis->title->SetAngle(0); + $this->_graph->yaxis->title->SetMargin(-55); + } + } + } + } // function _renderCartesianPlotArea() + + + private function _renderPiePlotArea($doughnut = False) { + $this->_graph = new PieGraph(self::$_width,self::$_height); + + $this->_renderTitle(); + } // function _renderPiePlotArea() + + + private function _renderRadarPlotArea() { + $this->_graph = new RadarGraph(self::$_width,self::$_height); + $this->_graph->SetScale('lin'); + + $this->_renderTitle(); + } // function _renderRadarPlotArea() + + + private function _renderPlotLine($groupID, $filled = false, $combination = false, $dimensions = '2d') { + $grouping = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping(); + + $labelCount = count($this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex(0)->getPointCount()); + if ($labelCount > 0) { + $datasetLabels = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex(0)->getDataValues(); + $datasetLabels = $this->_formatDataSetLabels($groupID, $datasetLabels, $labelCount); + $this->_graph->xaxis->SetTickLabels($datasetLabels); + } + + $seriesCount = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotSeriesCount(); + $seriesPlots = array(); + if ($grouping == 'percentStacked') { + $sumValues = $this->_percentageSumCalculation($groupID,$seriesCount); + } + + // Loop through each data series in turn + for($i = 0; $i < $seriesCount; ++$i) { + $dataValues = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex($i)->getDataValues(); + $marker = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex($i)->getPointMarker(); + + if ($grouping == 'percentStacked') { + $dataValues = $this->_percentageAdjustValues($dataValues,$sumValues); + } + + // Fill in any missing values in the $dataValues array + $testCurrentIndex = 0; + foreach($dataValues as $k => $dataValue) { + while($k != $testCurrentIndex) { + $dataValues[$testCurrentIndex] = null; + ++$testCurrentIndex; + } + ++$testCurrentIndex; + } + + $seriesPlot = new LinePlot($dataValues); + if ($combination) { + $seriesPlot->SetBarCenter(); + } + + if ($filled) { + $seriesPlot->SetFilled(true); + $seriesPlot->SetColor('black'); + $seriesPlot->SetFillColor(self::$_colourSet[self::$_plotColour++]); + } else { + // Set the appropriate plot marker + $this->_formatPointMarker($seriesPlot,$marker); + } + $dataLabel = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotLabelByIndex($i)->getDataValue(); + $seriesPlot->SetLegend($dataLabel); + + $seriesPlots[] = $seriesPlot; + } + + if ($grouping == 'standard') { + $groupPlot = $seriesPlots; + } else { + $groupPlot = new AccLinePlot($seriesPlots); + } + $this->_graph->Add($groupPlot); + } // function _renderPlotLine() + + + private function _renderPlotBar($groupID, $dimensions = '2d') { + $rotation = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotDirection(); + // Rotate for bar rather than column chart + if (($groupID == 0) && ($rotation == 'bar')) { + $this->_graph->Set90AndMargin(); + } + $grouping = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping(); + + $labelCount = count($this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex(0)->getPointCount()); + if ($labelCount > 0) { + $datasetLabels = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex(0)->getDataValues(); + $datasetLabels = $this->_formatDataSetLabels($groupID, $datasetLabels, $labelCount, $rotation); + // Rotate for bar rather than column chart + if ($rotation == 'bar') { + $datasetLabels = array_reverse($datasetLabels); + $this->_graph->yaxis->SetPos('max'); + $this->_graph->yaxis->SetLabelAlign('center','top'); + $this->_graph->yaxis->SetLabelSide(SIDE_RIGHT); + } + $this->_graph->xaxis->SetTickLabels($datasetLabels); + } + + + $seriesCount = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotSeriesCount(); + $seriesPlots = array(); + if ($grouping == 'percentStacked') { + $sumValues = $this->_percentageSumCalculation($groupID,$seriesCount); + } + + // Loop through each data series in turn + for($j = 0; $j < $seriesCount; ++$j) { + $dataValues = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex($j)->getDataValues(); + if ($grouping == 'percentStacked') { + $dataValues = $this->_percentageAdjustValues($dataValues,$sumValues); + } + + // Fill in any missing values in the $dataValues array + $testCurrentIndex = 0; + foreach($dataValues as $k => $dataValue) { + while($k != $testCurrentIndex) { + $dataValues[$testCurrentIndex] = null; + ++$testCurrentIndex; + } + ++$testCurrentIndex; + } + + // Reverse the $dataValues order for bar rather than column chart + if ($rotation == 'bar') { + $dataValues = array_reverse($dataValues); + } + $seriesPlot = new BarPlot($dataValues); + $seriesPlot->SetColor('black'); + $seriesPlot->SetFillColor(self::$_colourSet[self::$_plotColour++]); + if ($dimensions == '3d') { + $seriesPlot->SetShadow(); + } + if (!$this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotLabelByIndex($j)) { + $dataLabel = ''; + } else { + $dataLabel = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotLabelByIndex($j)->getDataValue(); + } + $seriesPlot->SetLegend($dataLabel); + + $seriesPlots[] = $seriesPlot; + } + // Reverse the plot order for bar rather than column chart + if (($rotation == 'bar') && (!($grouping == 'percentStacked'))) { + $seriesPlots = array_reverse($seriesPlots); + } + + if ($grouping == 'clustered') { + $groupPlot = new GroupBarPlot($seriesPlots); + } elseif ($grouping == 'standard') { + $groupPlot = new GroupBarPlot($seriesPlots); + } else { + $groupPlot = new AccBarPlot($seriesPlots); + if ($dimensions == '3d') { + $groupPlot->SetShadow(); + } + } + + $this->_graph->Add($groupPlot); + } // function _renderPlotBar() + + + private function _renderPlotScatter($groupID,$bubble) { + $grouping = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping(); + $scatterStyle = $bubbleSize = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle(); + + $seriesCount = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotSeriesCount(); + $seriesPlots = array(); + + // Loop through each data series in turn + for($i = 0; $i < $seriesCount; ++$i) { + $dataValuesY = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex($i)->getDataValues(); + $dataValuesX = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex($i)->getDataValues(); + + foreach($dataValuesY as $k => $dataValueY) { + $dataValuesY[$k] = $k; + } + + $seriesPlot = new ScatterPlot($dataValuesX,$dataValuesY); + if ($scatterStyle == 'lineMarker') { + $seriesPlot->SetLinkPoints(); + $seriesPlot->link->SetColor(self::$_colourSet[self::$_plotColour]); + } elseif ($scatterStyle == 'smoothMarker') { + $spline = new Spline($dataValuesY,$dataValuesX); + list($splineDataY,$splineDataX) = $spline->Get(count($dataValuesX) * self::$_width / 20); + $lplot = new LinePlot($splineDataX,$splineDataY); + $lplot->SetColor(self::$_colourSet[self::$_plotColour]); + + $this->_graph->Add($lplot); + } + + if ($bubble) { + $this->_formatPointMarker($seriesPlot,'dot'); + $seriesPlot->mark->SetColor('black'); + $seriesPlot->mark->SetSize($bubbleSize); + } else { + $marker = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex($i)->getPointMarker(); + $this->_formatPointMarker($seriesPlot,$marker); + } + $dataLabel = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotLabelByIndex($i)->getDataValue(); + $seriesPlot->SetLegend($dataLabel); + + $this->_graph->Add($seriesPlot); + } + } // function _renderPlotScatter() + + + private function _renderPlotRadar($groupID) { + $radarStyle = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle(); + + $seriesCount = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotSeriesCount(); + $seriesPlots = array(); + + // Loop through each data series in turn + for($i = 0; $i < $seriesCount; ++$i) { + $dataValuesY = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex($i)->getDataValues(); + $dataValuesX = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex($i)->getDataValues(); + $marker = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex($i)->getPointMarker(); + + $dataValues = array(); + foreach($dataValuesY as $k => $dataValueY) { + $dataValues[$k] = implode(' ',array_reverse($dataValueY)); + } + $tmp = array_shift($dataValues); + $dataValues[] = $tmp; + $tmp = array_shift($dataValuesX); + $dataValuesX[] = $tmp; + + $this->_graph->SetTitles(array_reverse($dataValues)); + + $seriesPlot = new RadarPlot(array_reverse($dataValuesX)); + + $dataLabel = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotLabelByIndex($i)->getDataValue(); + $seriesPlot->SetColor(self::$_colourSet[self::$_plotColour++]); + if ($radarStyle == 'filled') { + $seriesPlot->SetFillColor(self::$_colourSet[self::$_plotColour]); + } + $this->_formatPointMarker($seriesPlot,$marker); + $seriesPlot->SetLegend($dataLabel); + + $this->_graph->Add($seriesPlot); + } + } // function _renderPlotRadar() + + + private function _renderPlotContour($groupID) { + $contourStyle = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle(); + + $seriesCount = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotSeriesCount(); + $seriesPlots = array(); + + $dataValues = array(); + // Loop through each data series in turn + for($i = 0; $i < $seriesCount; ++$i) { + $dataValuesY = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex($i)->getDataValues(); + $dataValuesX = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex($i)->getDataValues(); + + $dataValues[$i] = $dataValuesX; + } + $seriesPlot = new ContourPlot($dataValues); + + $this->_graph->Add($seriesPlot); + } // function _renderPlotContour() + + + private function _renderPlotStock($groupID) { + $seriesCount = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotSeriesCount(); + $plotOrder = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotOrder(); + + $dataValues = array(); + // Loop through each data series in turn and build the plot arrays + foreach($plotOrder as $i => $v) { + $dataValuesX = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex($v)->getDataValues(); + foreach($dataValuesX as $j => $dataValueX) { + $dataValues[$plotOrder[$i]][$j] = $dataValueX; + } + } + if(empty($dataValues)) { + return; + } + + $dataValuesPlot = array(); + // Flatten the plot arrays to a single dimensional array to work with jpgraph + for($j = 0; $j < count($dataValues[0]); $j++) { + for($i = 0; $i < $seriesCount; $i++) { + $dataValuesPlot[] = $dataValues[$i][$j]; + } + } + + // Set the x-axis labels + $labelCount = count($this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex(0)->getPointCount()); + if ($labelCount > 0) { + $datasetLabels = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex(0)->getDataValues(); + $datasetLabels = $this->_formatDataSetLabels($groupID, $datasetLabels, $labelCount); + $this->_graph->xaxis->SetTickLabels($datasetLabels); + } + + $seriesPlot = new StockPlot($dataValuesPlot); + $seriesPlot->SetWidth(20); + + $this->_graph->Add($seriesPlot); + } // function _renderPlotStock() + + + private function _renderAreaChart($groupCount, $dimensions = '2d') { + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_line.php'); + + $this->_renderCartesianPlotArea(); + + for($i = 0; $i < $groupCount; ++$i) { + $this->_renderPlotLine($i,True,False,$dimensions); + } + } // function _renderAreaChart() + + + private function _renderLineChart($groupCount, $dimensions = '2d') { + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_line.php'); + + $this->_renderCartesianPlotArea(); + + for($i = 0; $i < $groupCount; ++$i) { + $this->_renderPlotLine($i,False,False,$dimensions); + } + } // function _renderLineChart() + + + private function _renderBarChart($groupCount, $dimensions = '2d') { + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_bar.php'); + + $this->_renderCartesianPlotArea(); + + for($i = 0; $i < $groupCount; ++$i) { + $this->_renderPlotBar($i,$dimensions); + } + } // function _renderBarChart() + + + private function _renderScatterChart($groupCount) { + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_scatter.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_regstat.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_line.php'); + + $this->_renderCartesianPlotArea('linlin'); + + for($i = 0; $i < $groupCount; ++$i) { + $this->_renderPlotScatter($i,false); + } + } // function _renderScatterChart() + + + private function _renderBubbleChart($groupCount) { + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_scatter.php'); + + $this->_renderCartesianPlotArea('linlin'); + + for($i = 0; $i < $groupCount; ++$i) { + $this->_renderPlotScatter($i,true); + } + } // function _renderBubbleChart() + + + private function _renderPieChart($groupCount, $dimensions = '2d', $doughnut = False, $multiplePlots = False) { + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_pie.php'); + if ($dimensions == '3d') { + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_pie3d.php'); + } + + $this->_renderPiePlotArea($doughnut); + + $iLimit = ($multiplePlots) ? $groupCount : 1; + for($groupID = 0; $groupID < $iLimit; ++$groupID) { + $grouping = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping(); + $exploded = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle(); + if ($groupID == 0) { + $labelCount = count($this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex(0)->getPointCount()); + if ($labelCount > 0) { + $datasetLabels = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex(0)->getDataValues(); + $datasetLabels = $this->_formatDataSetLabels($groupID, $datasetLabels, $labelCount); + } + } + + $seriesCount = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotSeriesCount(); + $seriesPlots = array(); + // For pie charts, we only display the first series: doughnut charts generally display all series + $jLimit = ($multiplePlots) ? $seriesCount : 1; + // Loop through each data series in turn + for($j = 0; $j < $jLimit; ++$j) { + $dataValues = $this->_chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex($j)->getDataValues(); + + // Fill in any missing values in the $dataValues array + $testCurrentIndex = 0; + foreach($dataValues as $k => $dataValue) { + while($k != $testCurrentIndex) { + $dataValues[$testCurrentIndex] = null; + ++$testCurrentIndex; + } + ++$testCurrentIndex; + } + + if ($dimensions == '3d') { + $seriesPlot = new PiePlot3D($dataValues); + } else { + if ($doughnut) { + $seriesPlot = new PiePlotC($dataValues); + } else { + $seriesPlot = new PiePlot($dataValues); + } + } + + if ($multiplePlots) { + $seriesPlot->SetSize(($jLimit-$j) / ($jLimit * 4)); + } + + if ($doughnut) { + $seriesPlot->SetMidColor('white'); + } + + $seriesPlot->SetColor(self::$_colourSet[self::$_plotColour++]); + if (count($datasetLabels) > 0) + $seriesPlot->SetLabels(array_fill(0,count($datasetLabels),'')); + if ($dimensions != '3d') { + $seriesPlot->SetGuideLines(false); + } + if ($j == 0) { + if ($exploded) { + $seriesPlot->ExplodeAll(); + } + $seriesPlot->SetLegends($datasetLabels); + } + + $this->_graph->Add($seriesPlot); + } + } + } // function _renderPieChart() + + + private function _renderRadarChart($groupCount) { + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_radar.php'); + + $this->_renderRadarPlotArea(); + + for($groupID = 0; $groupID < $groupCount; ++$groupID) { + $this->_renderPlotRadar($groupID); + } + } // function _renderRadarChart() + + + private function _renderStockChart($groupCount) { + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_stock.php'); + + $this->_renderCartesianPlotArea('intint'); + + for($groupID = 0; $groupID < $groupCount; ++$groupID) { + $this->_renderPlotStock($groupID); + } + } // function _renderStockChart() + + + private function _renderContourChart($groupCount,$dimensions) { + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_contour.php'); + + $this->_renderCartesianPlotArea('intint'); + + for($i = 0; $i < $groupCount; ++$i) { + $this->_renderPlotContour($i); + } + } // function _renderContourChart() + + + private function _renderCombinationChart($groupCount,$dimensions,$outputDestination) { + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_line.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_bar.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_scatter.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_regstat.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_line.php'); + + $this->_renderCartesianPlotArea(); + + for($i = 0; $i < $groupCount; ++$i) { + $dimensions = null; + $chartType = $this->_chart->getPlotArea()->getPlotGroupByIndex($i)->getPlotType(); + switch ($chartType) { + case 'area3DChart' : + $dimensions = '3d'; + case 'areaChart' : + $this->_renderPlotLine($i,True,True,$dimensions); + break; + case 'bar3DChart' : + $dimensions = '3d'; + case 'barChart' : + $this->_renderPlotBar($i,$dimensions); + break; + case 'line3DChart' : + $dimensions = '3d'; + case 'lineChart' : + $this->_renderPlotLine($i,False,True,$dimensions); + break; + case 'scatterChart' : + $this->_renderPlotScatter($i,false); + break; + case 'bubbleChart' : + $this->_renderPlotScatter($i,true); + break; + default : + $this->_graph = null; + return false; + } + } + + $this->_renderLegend(); + + $this->_graph->Stroke($outputDestination); + return true; + } // function _renderCombinationChart() + + + public function render($outputDestination) { + self::$_plotColour = 0; + + $groupCount = $this->_chart->getPlotArea()->getPlotGroupCount(); + + $dimensions = null; + if ($groupCount == 1) { + $chartType = $this->_chart->getPlotArea()->getPlotGroupByIndex(0)->getPlotType(); + } else { + $chartTypes = array(); + for($i = 0; $i < $groupCount; ++$i) { + $chartTypes[] = $this->_chart->getPlotArea()->getPlotGroupByIndex($i)->getPlotType(); + } + $chartTypes = array_unique($chartTypes); + if (count($chartTypes) == 1) { + $chartType = array_pop($chartTypes); + } elseif (count($chartTypes) == 0) { + echo 'Chart is not yet implemented
'; + return false; + } else { + return $this->_renderCombinationChart($groupCount,$dimensions,$outputDestination); + } + } + + switch ($chartType) { + case 'area3DChart' : + $dimensions = '3d'; + case 'areaChart' : + $this->_renderAreaChart($groupCount,$dimensions); + break; + case 'bar3DChart' : + $dimensions = '3d'; + case 'barChart' : + $this->_renderBarChart($groupCount,$dimensions); + break; + case 'line3DChart' : + $dimensions = '3d'; + case 'lineChart' : + $this->_renderLineChart($groupCount,$dimensions); + break; + case 'pie3DChart' : + $dimensions = '3d'; + case 'pieChart' : + $this->_renderPieChart($groupCount,$dimensions,False,False); + break; + case 'doughnut3DChart' : + $dimensions = '3d'; + case 'doughnutChart' : + $this->_renderPieChart($groupCount,$dimensions,True,True); + break; + case 'scatterChart' : + $this->_renderScatterChart($groupCount); + break; + case 'bubbleChart' : + $this->_renderBubbleChart($groupCount); + break; + case 'radarChart' : + $this->_renderRadarChart($groupCount); + break; + case 'surface3DChart' : + $dimensions = '3d'; + case 'surfaceChart' : + $this->_renderContourChart($groupCount,$dimensions); + break; + case 'stockChart' : + $this->_renderStockChart($groupCount,$dimensions); + break; + default : + echo $chartType.' is not yet implemented
'; + return false; + } + $this->_renderLegend(); + + $this->_graph->Stroke($outputDestination); + return true; + } // function render() + + + /** + * Create a new PHPExcel_Chart_Renderer_jpgraph + */ + public function __construct(PHPExcel_Chart $chart) + { + $this->_graph = null; + $this->_chart = $chart; + } // function __construct() + +} // PHPExcel_Chart_Renderer_jpgraph diff --git a/admin/helpers/PHPExcel/Chart/Title.php b/admin/helpers/PHPExcel/Chart/Title.php new file mode 100644 index 00000000..5d226c4b --- /dev/null +++ b/admin/helpers/PHPExcel/Chart/Title.php @@ -0,0 +1,92 @@ +_caption = $caption; + $this->_layout = $layout; + } + + /** + * Get caption + * + * @return string + */ + public function getCaption() { + return $this->_caption; + } + + /** + * Set caption + * + * @param string $caption + * @return PHPExcel_Chart_Title + */ + public function setCaption($caption = null) { + $this->_caption = $caption; + + return $this; + } + + /** + * Get Layout + * + * @return PHPExcel_Chart_Layout + */ + public function getLayout() { + return $this->_layout; + } + +} diff --git a/admin/helpers/PHPExcel/Chart/index.html b/admin/helpers/PHPExcel/Chart/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Chart/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Comment.php b/admin/helpers/PHPExcel/Comment.php new file mode 100644 index 00000000..8b8cfdcc --- /dev/null +++ b/admin/helpers/PHPExcel/Comment.php @@ -0,0 +1,327 @@ +_author = 'Author'; + $this->_text = new PHPExcel_RichText(); + $this->_fillColor = new PHPExcel_Style_Color('FFFFFFE1'); + $this->_alignment = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL; + } + + /** + * Get Author + * + * @return string + */ + public function getAuthor() { + return $this->_author; + } + + /** + * Set Author + * + * @param string $pValue + * @return PHPExcel_Comment + */ + public function setAuthor($pValue = '') { + $this->_author = $pValue; + return $this; + } + + /** + * Get Rich text comment + * + * @return PHPExcel_RichText + */ + public function getText() { + return $this->_text; + } + + /** + * Set Rich text comment + * + * @param PHPExcel_RichText $pValue + * @return PHPExcel_Comment + */ + public function setText(PHPExcel_RichText $pValue) { + $this->_text = $pValue; + return $this; + } + + /** + * Get comment width (CSS style, i.e. XXpx or YYpt) + * + * @return string + */ + public function getWidth() { + return $this->_width; + } + + /** + * Set comment width (CSS style, i.e. XXpx or YYpt) + * + * @param string $value + * @return PHPExcel_Comment + */ + public function setWidth($value = '96pt') { + $this->_width = $value; + return $this; + } + + /** + * Get comment height (CSS style, i.e. XXpx or YYpt) + * + * @return string + */ + public function getHeight() { + return $this->_height; + } + + /** + * Set comment height (CSS style, i.e. XXpx or YYpt) + * + * @param string $value + * @return PHPExcel_Comment + */ + public function setHeight($value = '55.5pt') { + $this->_height = $value; + return $this; + } + + /** + * Get left margin (CSS style, i.e. XXpx or YYpt) + * + * @return string + */ + public function getMarginLeft() { + return $this->_marginLeft; + } + + /** + * Set left margin (CSS style, i.e. XXpx or YYpt) + * + * @param string $value + * @return PHPExcel_Comment + */ + public function setMarginLeft($value = '59.25pt') { + $this->_marginLeft = $value; + return $this; + } + + /** + * Get top margin (CSS style, i.e. XXpx or YYpt) + * + * @return string + */ + public function getMarginTop() { + return $this->_marginTop; + } + + /** + * Set top margin (CSS style, i.e. XXpx or YYpt) + * + * @param string $value + * @return PHPExcel_Comment + */ + public function setMarginTop($value = '1.5pt') { + $this->_marginTop = $value; + return $this; + } + + /** + * Is the comment visible by default? + * + * @return boolean + */ + public function getVisible() { + return $this->_visible; + } + + /** + * Set comment default visibility + * + * @param boolean $value + * @return PHPExcel_Comment + */ + public function setVisible($value = false) { + $this->_visible = $value; + return $this; + } + + /** + * Get fill color + * + * @return PHPExcel_Style_Color + */ + public function getFillColor() { + return $this->_fillColor; + } + + /** + * Set Alignment + * + * @param string $pValue + * @return PHPExcel_Comment + */ + public function setAlignment($pValue = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL) { + $this->_alignment = $pValue; + return $this; + } + + /** + * Get Alignment + * + * @return string + */ + public function getAlignment() { + return $this->_alignment; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + return md5( + $this->_author + . $this->_text->getHashCode() + . $this->_width + . $this->_height + . $this->_marginLeft + . $this->_marginTop + . ($this->_visible ? 1 : 0) + . $this->_fillColor->getHashCode() + . $this->_alignment + . __CLASS__ + ); + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } + + /** + * Convert to string + * + * @return string + */ + public function __toString() { + return $this->_text->getPlainText(); + } + +} diff --git a/admin/helpers/PHPExcel/DocumentProperties.php b/admin/helpers/PHPExcel/DocumentProperties.php new file mode 100644 index 00000000..7b4a0e43 --- /dev/null +++ b/admin/helpers/PHPExcel/DocumentProperties.php @@ -0,0 +1,587 @@ +_lastModifiedBy = $this->_creator; + $this->_created = time(); + $this->_modified = time(); + } + + /** + * Get Creator + * + * @return string + */ + public function getCreator() { + return $this->_creator; + } + + /** + * Set Creator + * + * @param string $pValue + * @return PHPExcel_DocumentProperties + */ + public function setCreator($pValue = '') { + $this->_creator = $pValue; + return $this; + } + + /** + * Get Last Modified By + * + * @return string + */ + public function getLastModifiedBy() { + return $this->_lastModifiedBy; + } + + /** + * Set Last Modified By + * + * @param string $pValue + * @return PHPExcel_DocumentProperties + */ + public function setLastModifiedBy($pValue = '') { + $this->_lastModifiedBy = $pValue; + return $this; + } + + /** + * Get Created + * + * @return datetime + */ + public function getCreated() { + return $this->_created; + } + + /** + * Set Created + * + * @param datetime $pValue + * @return PHPExcel_DocumentProperties + */ + public function setCreated($pValue = null) { + if ($pValue === NULL) { + $pValue = time(); + } elseif (is_string($pValue)) { + if (is_numeric($pValue)) { + $pValue = intval($pValue); + } else { + $pValue = strtotime($pValue); + } + } + + $this->_created = $pValue; + return $this; + } + + /** + * Get Modified + * + * @return datetime + */ + public function getModified() { + return $this->_modified; + } + + /** + * Set Modified + * + * @param datetime $pValue + * @return PHPExcel_DocumentProperties + */ + public function setModified($pValue = null) { + if ($pValue === NULL) { + $pValue = time(); + } elseif (is_string($pValue)) { + if (is_numeric($pValue)) { + $pValue = intval($pValue); + } else { + $pValue = strtotime($pValue); + } + } + + $this->_modified = $pValue; + return $this; + } + + /** + * Get Title + * + * @return string + */ + public function getTitle() { + return $this->_title; + } + + /** + * Set Title + * + * @param string $pValue + * @return PHPExcel_DocumentProperties + */ + public function setTitle($pValue = '') { + $this->_title = $pValue; + return $this; + } + + /** + * Get Description + * + * @return string + */ + public function getDescription() { + return $this->_description; + } + + /** + * Set Description + * + * @param string $pValue + * @return PHPExcel_DocumentProperties + */ + public function setDescription($pValue = '') { + $this->_description = $pValue; + return $this; + } + + /** + * Get Subject + * + * @return string + */ + public function getSubject() { + return $this->_subject; + } + + /** + * Set Subject + * + * @param string $pValue + * @return PHPExcel_DocumentProperties + */ + public function setSubject($pValue = '') { + $this->_subject = $pValue; + return $this; + } + + /** + * Get Keywords + * + * @return string + */ + public function getKeywords() { + return $this->_keywords; + } + + /** + * Set Keywords + * + * @param string $pValue + * @return PHPExcel_DocumentProperties + */ + public function setKeywords($pValue = '') { + $this->_keywords = $pValue; + return $this; + } + + /** + * Get Category + * + * @return string + */ + public function getCategory() { + return $this->_category; + } + + /** + * Set Category + * + * @param string $pValue + * @return PHPExcel_DocumentProperties + */ + public function setCategory($pValue = '') { + $this->_category = $pValue; + return $this; + } + + /** + * Get Company + * + * @return string + */ + public function getCompany() { + return $this->_company; + } + + /** + * Set Company + * + * @param string $pValue + * @return PHPExcel_DocumentProperties + */ + public function setCompany($pValue = '') { + $this->_company = $pValue; + return $this; + } + + /** + * Get Manager + * + * @return string + */ + public function getManager() { + return $this->_manager; + } + + /** + * Set Manager + * + * @param string $pValue + * @return PHPExcel_DocumentProperties + */ + public function setManager($pValue = '') { + $this->_manager = $pValue; + return $this; + } + + /** + * Get a List of Custom Property Names + * + * @return array of string + */ + public function getCustomProperties() { + return array_keys($this->_customProperties); + } + + /** + * Check if a Custom Property is defined + * + * @param string $propertyName + * @return boolean + */ + public function isCustomPropertySet($propertyName) { + return isset($this->_customProperties[$propertyName]); + } + + /** + * Get a Custom Property Value + * + * @param string $propertyName + * @return string + */ + public function getCustomPropertyValue($propertyName) { + if (isset($this->_customProperties[$propertyName])) { + return $this->_customProperties[$propertyName]['value']; + } + + } + + /** + * Get a Custom Property Type + * + * @param string $propertyName + * @return string + */ + public function getCustomPropertyType($propertyName) { + if (isset($this->_customProperties[$propertyName])) { + return $this->_customProperties[$propertyName]['type']; + } + + } + + /** + * Set a Custom Property + * + * @param string $propertyName + * @param mixed $propertyValue + * @param string $propertyType + * 'i' : Integer + * 'f' : Floating Point + * 's' : String + * 'd' : Date/Time + * 'b' : Boolean + * @return PHPExcel_DocumentProperties + */ + public function setCustomProperty($propertyName,$propertyValue='',$propertyType=NULL) { + if (($propertyType === NULL) || (!in_array($propertyType,array(self::PROPERTY_TYPE_INTEGER, + self::PROPERTY_TYPE_FLOAT, + self::PROPERTY_TYPE_STRING, + self::PROPERTY_TYPE_DATE, + self::PROPERTY_TYPE_BOOLEAN)))) { + if ($propertyValue === NULL) { + $propertyType = self::PROPERTY_TYPE_STRING; + } elseif (is_float($propertyValue)) { + $propertyType = self::PROPERTY_TYPE_FLOAT; + } elseif(is_int($propertyValue)) { + $propertyType = self::PROPERTY_TYPE_INTEGER; + } elseif (is_bool($propertyValue)) { + $propertyType = self::PROPERTY_TYPE_BOOLEAN; + } else { + $propertyType = self::PROPERTY_TYPE_STRING; + } + } + + $this->_customProperties[$propertyName] = array('value' => $propertyValue, 'type' => $propertyType); + return $this; + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } + + public static function convertProperty($propertyValue,$propertyType) { + switch ($propertyType) { + case 'empty' : // Empty + return ''; + break; + case 'null' : // Null + return NULL; + break; + case 'i1' : // 1-Byte Signed Integer + case 'i2' : // 2-Byte Signed Integer + case 'i4' : // 4-Byte Signed Integer + case 'i8' : // 8-Byte Signed Integer + case 'int' : // Integer + return (int) $propertyValue; + break; + case 'ui1' : // 1-Byte Unsigned Integer + case 'ui2' : // 2-Byte Unsigned Integer + case 'ui4' : // 4-Byte Unsigned Integer + case 'ui8' : // 8-Byte Unsigned Integer + case 'uint' : // Unsigned Integer + return abs((int) $propertyValue); + break; + case 'r4' : // 4-Byte Real Number + case 'r8' : // 8-Byte Real Number + case 'decimal' : // Decimal + return (float) $propertyValue; + break; + case 'lpstr' : // LPSTR + case 'lpwstr' : // LPWSTR + case 'bstr' : // Basic String + return $propertyValue; + break; + case 'date' : // Date and Time + case 'filetime' : // File Time + return strtotime($propertyValue); + break; + case 'bool' : // Boolean + return ($propertyValue == 'true') ? True : False; + break; + case 'cy' : // Currency + case 'error' : // Error Status Code + case 'vector' : // Vector + case 'array' : // Array + case 'blob' : // Binary Blob + case 'oblob' : // Binary Blob Object + case 'stream' : // Binary Stream + case 'ostream' : // Binary Stream Object + case 'storage' : // Binary Storage + case 'ostorage' : // Binary Storage Object + case 'vstream' : // Binary Versioned Stream + case 'clsid' : // Class ID + case 'cf' : // Clipboard Data + return $propertyValue; + break; + } + return $propertyValue; + } + + public static function convertPropertyType($propertyType) { + switch ($propertyType) { + case 'i1' : // 1-Byte Signed Integer + case 'i2' : // 2-Byte Signed Integer + case 'i4' : // 4-Byte Signed Integer + case 'i8' : // 8-Byte Signed Integer + case 'int' : // Integer + case 'ui1' : // 1-Byte Unsigned Integer + case 'ui2' : // 2-Byte Unsigned Integer + case 'ui4' : // 4-Byte Unsigned Integer + case 'ui8' : // 8-Byte Unsigned Integer + case 'uint' : // Unsigned Integer + return self::PROPERTY_TYPE_INTEGER; + break; + case 'r4' : // 4-Byte Real Number + case 'r8' : // 8-Byte Real Number + case 'decimal' : // Decimal + return self::PROPERTY_TYPE_FLOAT; + break; + case 'empty' : // Empty + case 'null' : // Null + case 'lpstr' : // LPSTR + case 'lpwstr' : // LPWSTR + case 'bstr' : // Basic String + return self::PROPERTY_TYPE_STRING; + break; + case 'date' : // Date and Time + case 'filetime' : // File Time + return self::PROPERTY_TYPE_DATE; + break; + case 'bool' : // Boolean + return self::PROPERTY_TYPE_BOOLEAN; + break; + case 'cy' : // Currency + case 'error' : // Error Status Code + case 'vector' : // Vector + case 'array' : // Array + case 'blob' : // Binary Blob + case 'oblob' : // Binary Blob Object + case 'stream' : // Binary Stream + case 'ostream' : // Binary Stream Object + case 'storage' : // Binary Storage + case 'ostorage' : // Binary Storage Object + case 'vstream' : // Binary Versioned Stream + case 'clsid' : // Class ID + case 'cf' : // Clipboard Data + return self::PROPERTY_TYPE_UNKNOWN; + break; + } + return self::PROPERTY_TYPE_UNKNOWN; + } + +} diff --git a/admin/helpers/PHPExcel/DocumentSecurity.php b/admin/helpers/PHPExcel/DocumentSecurity.php new file mode 100644 index 00000000..cf7ffb57 --- /dev/null +++ b/admin/helpers/PHPExcel/DocumentSecurity.php @@ -0,0 +1,218 @@ +_lockRevision = false; + $this->_lockStructure = false; + $this->_lockWindows = false; + $this->_revisionsPassword = ''; + $this->_workbookPassword = ''; + } + + /** + * Is some sort of dcument security enabled? + * + * @return boolean + */ + function isSecurityEnabled() { + return $this->_lockRevision || + $this->_lockStructure || + $this->_lockWindows; + } + + /** + * Get LockRevision + * + * @return boolean + */ + function getLockRevision() { + return $this->_lockRevision; + } + + /** + * Set LockRevision + * + * @param boolean $pValue + * @return PHPExcel_DocumentSecurity + */ + function setLockRevision($pValue = false) { + $this->_lockRevision = $pValue; + return $this; + } + + /** + * Get LockStructure + * + * @return boolean + */ + function getLockStructure() { + return $this->_lockStructure; + } + + /** + * Set LockStructure + * + * @param boolean $pValue + * @return PHPExcel_DocumentSecurity + */ + function setLockStructure($pValue = false) { + $this->_lockStructure = $pValue; + return $this; + } + + /** + * Get LockWindows + * + * @return boolean + */ + function getLockWindows() { + return $this->_lockWindows; + } + + /** + * Set LockWindows + * + * @param boolean $pValue + * @return PHPExcel_DocumentSecurity + */ + function setLockWindows($pValue = false) { + $this->_lockWindows = $pValue; + return $this; + } + + /** + * Get RevisionsPassword (hashed) + * + * @return string + */ + function getRevisionsPassword() { + return $this->_revisionsPassword; + } + + /** + * Set RevisionsPassword + * + * @param string $pValue + * @param boolean $pAlreadyHashed If the password has already been hashed, set this to true + * @return PHPExcel_DocumentSecurity + */ + function setRevisionsPassword($pValue = '', $pAlreadyHashed = false) { + if (!$pAlreadyHashed) { + $pValue = PHPExcel_Shared_PasswordHasher::hashPassword($pValue); + } + $this->_revisionsPassword = $pValue; + return $this; + } + + /** + * Get WorkbookPassword (hashed) + * + * @return string + */ + function getWorkbookPassword() { + return $this->_workbookPassword; + } + + /** + * Set WorkbookPassword + * + * @param string $pValue + * @param boolean $pAlreadyHashed If the password has already been hashed, set this to true + * @return PHPExcel_DocumentSecurity + */ + function setWorkbookPassword($pValue = '', $pAlreadyHashed = false) { + if (!$pAlreadyHashed) { + $pValue = PHPExcel_Shared_PasswordHasher::hashPassword($pValue); + } + $this->_workbookPassword = $pValue; + return $this; + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Exception.php b/admin/helpers/PHPExcel/Exception.php new file mode 100644 index 00000000..578b9eee --- /dev/null +++ b/admin/helpers/PHPExcel/Exception.php @@ -0,0 +1,52 @@ +line = $line; + $e->file = $file; + throw $e; + } +} diff --git a/admin/helpers/PHPExcel/HashTable.php b/admin/helpers/PHPExcel/HashTable.php new file mode 100644 index 00000000..77106e1e --- /dev/null +++ b/admin/helpers/PHPExcel/HashTable.php @@ -0,0 +1,202 @@ +addFromSource($pSource); + } + } + + /** + * Add HashTable items from source + * + * @param PHPExcel_IComparable[] $pSource Source array to create HashTable from + * @throws PHPExcel_Exception + */ + public function addFromSource($pSource = null) { + // Check if an array was passed + if ($pSource == null) { + return; + } else if (!is_array($pSource)) { + throw new PHPExcel_Exception('Invalid array parameter passed.'); + } + + foreach ($pSource as $item) { + $this->add($item); + } + } + + /** + * Add HashTable item + * + * @param PHPExcel_IComparable $pSource Item to add + * @throws PHPExcel_Exception + */ + public function add(PHPExcel_IComparable $pSource = null) { + $hash = $pSource->getHashCode(); + if (!isset($this->_items[$hash])) { + $this->_items[$hash] = $pSource; + $this->_keyMap[count($this->_items) - 1] = $hash; + } + } + + /** + * Remove HashTable item + * + * @param PHPExcel_IComparable $pSource Item to remove + * @throws PHPExcel_Exception + */ + public function remove(PHPExcel_IComparable $pSource = null) { + $hash = $pSource->getHashCode(); + if (isset($this->_items[$hash])) { + unset($this->_items[$hash]); + + $deleteKey = -1; + foreach ($this->_keyMap as $key => $value) { + if ($deleteKey >= 0) { + $this->_keyMap[$key - 1] = $value; + } + + if ($value == $hash) { + $deleteKey = $key; + } + } + unset($this->_keyMap[count($this->_keyMap) - 1]); + } + } + + /** + * Clear HashTable + * + */ + public function clear() { + $this->_items = array(); + $this->_keyMap = array(); + } + + /** + * Count + * + * @return int + */ + public function count() { + return count($this->_items); + } + + /** + * Get index for hash code + * + * @param string $pHashCode + * @return int Index + */ + public function getIndexForHashCode($pHashCode = '') { + return array_search($pHashCode, $this->_keyMap); + } + + /** + * Get by index + * + * @param int $pIndex + * @return PHPExcel_IComparable + * + */ + public function getByIndex($pIndex = 0) { + if (isset($this->_keyMap[$pIndex])) { + return $this->getByHashCode( $this->_keyMap[$pIndex] ); + } + + return null; + } + + /** + * Get by hashcode + * + * @param string $pHashCode + * @return PHPExcel_IComparable + * + */ + public function getByHashCode($pHashCode = '') { + if (isset($this->_items[$pHashCode])) { + return $this->_items[$pHashCode]; + } + + return null; + } + + /** + * HashTable to array + * + * @return PHPExcel_IComparable[] + */ + public function toArray() { + return $this->_items; + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/IComparable.php b/admin/helpers/PHPExcel/IComparable.php new file mode 100644 index 00000000..adb9a016 --- /dev/null +++ b/admin/helpers/PHPExcel/IComparable.php @@ -0,0 +1,43 @@ + 'IWriter', 'path' => 'PHPExcel/Writer/{0}.php', 'class' => 'PHPExcel_Writer_{0}' ), + array( 'type' => 'IReader', 'path' => 'PHPExcel/Reader/{0}.php', 'class' => 'PHPExcel_Reader_{0}' ) + ); + + /** + * Autoresolve classes + * + * @var array + * @access private + * @static + */ + private static $_autoResolveClasses = array( + 'Excel2007', + 'Excel5', + 'Excel2003XML', + 'OOCalc', + 'SYLK', + 'Gnumeric', + 'HTML', + 'CSV', + ); + + /** + * Private constructor for PHPExcel_IOFactory + */ + private function __construct() { } + + /** + * Get search locations + * + * @static + * @access public + * @return array + */ + public static function getSearchLocations() { + return self::$_searchLocations; + } // function getSearchLocations() + + /** + * Set search locations + * + * @static + * @access public + * @param array $value + * @throws PHPExcel_Reader_Exception + */ + public static function setSearchLocations($value) { + if (is_array($value)) { + self::$_searchLocations = $value; + } else { + throw new PHPExcel_Reader_Exception('Invalid parameter passed.'); + } + } // function setSearchLocations() + + /** + * Add search location + * + * @static + * @access public + * @param string $type Example: IWriter + * @param string $location Example: PHPExcel/Writer/{0}.php + * @param string $classname Example: PHPExcel_Writer_{0} + */ + public static function addSearchLocation($type = '', $location = '', $classname = '') { + self::$_searchLocations[] = array( 'type' => $type, 'path' => $location, 'class' => $classname ); + } // function addSearchLocation() + + /** + * Create PHPExcel_Writer_IWriter + * + * @static + * @access public + * @param PHPExcel $phpExcel + * @param string $writerType Example: Excel2007 + * @return PHPExcel_Writer_IWriter + * @throws PHPExcel_Reader_Exception + */ + public static function createWriter(PHPExcel $phpExcel, $writerType = '') { + // Search type + $searchType = 'IWriter'; + + // Include class + foreach (self::$_searchLocations as $searchLocation) { + if ($searchLocation['type'] == $searchType) { + $className = str_replace('{0}', $writerType, $searchLocation['class']); + + $instance = new $className($phpExcel); + if ($instance !== NULL) { + return $instance; + } + } + } + + // Nothing found... + throw new PHPExcel_Reader_Exception("No $searchType found for type $writerType"); + } // function createWriter() + + /** + * Create PHPExcel_Reader_IReader + * + * @static + * @access public + * @param string $readerType Example: Excel2007 + * @return PHPExcel_Reader_IReader + * @throws PHPExcel_Reader_Exception + */ + public static function createReader($readerType = '') { + // Search type + $searchType = 'IReader'; + + // Include class + foreach (self::$_searchLocations as $searchLocation) { + if ($searchLocation['type'] == $searchType) { + $className = str_replace('{0}', $readerType, $searchLocation['class']); + + $instance = new $className(); + if ($instance !== NULL) { + return $instance; + } + } + } + + // Nothing found... + throw new PHPExcel_Reader_Exception("No $searchType found for type $readerType"); + } // function createReader() + + /** + * Loads PHPExcel from file using automatic PHPExcel_Reader_IReader resolution + * + * @static + * @access public + * @param string $pFilename The name of the spreadsheet file + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public static function load($pFilename) { + $reader = self::createReaderForFile($pFilename); + return $reader->load($pFilename); + } // function load() + + /** + * Identify file type using automatic PHPExcel_Reader_IReader resolution + * + * @static + * @access public + * @param string $pFilename The name of the spreadsheet file to identify + * @return string + * @throws PHPExcel_Reader_Exception + */ + public static function identify($pFilename) { + $reader = self::createReaderForFile($pFilename); + $className = get_class($reader); + $classType = explode('_',$className); + unset($reader); + return array_pop($classType); + } // function identify() + + /** + * Create PHPExcel_Reader_IReader for file using automatic PHPExcel_Reader_IReader resolution + * + * @static + * @access public + * @param string $pFilename The name of the spreadsheet file + * @return PHPExcel_Reader_IReader + * @throws PHPExcel_Reader_Exception + */ + public static function createReaderForFile($pFilename) { + + // First, lucky guess by inspecting file extension + $pathinfo = pathinfo($pFilename); + + $extensionType = NULL; + if (isset($pathinfo['extension'])) { + switch (strtolower($pathinfo['extension'])) { + case 'xlsx': // Excel (OfficeOpenXML) Spreadsheet + case 'xlsm': // Excel (OfficeOpenXML) Macro Spreadsheet (macros will be discarded) + case 'xltx': // Excel (OfficeOpenXML) Template + case 'xltm': // Excel (OfficeOpenXML) Macro Template (macros will be discarded) + $extensionType = 'Excel2007'; + break; + case 'xls': // Excel (BIFF) Spreadsheet + case 'xlt': // Excel (BIFF) Template + $extensionType = 'Excel5'; + break; + case 'ods': // Open/Libre Offic Calc + case 'ots': // Open/Libre Offic Calc Template + $extensionType = 'OOCalc'; + break; + case 'slk': + $extensionType = 'SYLK'; + break; + case 'xml': // Excel 2003 SpreadSheetML + $extensionType = 'Excel2003XML'; + break; + case 'gnumeric': + $extensionType = 'Gnumeric'; + break; + case 'htm': + case 'html': + $extensionType = 'HTML'; + break; + case 'csv': + // Do nothing + // We must not try to use CSV reader since it loads + // all files including Excel files etc. + break; + default: + break; + } + + if ($extensionType !== NULL) { + $reader = self::createReader($extensionType); + // Let's see if we are lucky + if (isset($reader) && $reader->canRead($pFilename)) { + return $reader; + } + } + } + + // If we reach here then "lucky guess" didn't give any result + // Try walking through all the options in self::$_autoResolveClasses + foreach (self::$_autoResolveClasses as $autoResolveClass) { + // Ignore our original guess, we know that won't work + if ($autoResolveClass !== $extensionType) { + $reader = self::createReader($autoResolveClass); + if ($reader->canRead($pFilename)) { + return $reader; + } + } + } + + throw new PHPExcel_Reader_Exception('Unable to identify a reader for this file'); + } // function createReaderForFile() +} diff --git a/admin/helpers/PHPExcel/NamedRange.php b/admin/helpers/PHPExcel/NamedRange.php new file mode 100644 index 00000000..fe245e3e --- /dev/null +++ b/admin/helpers/PHPExcel/NamedRange.php @@ -0,0 +1,246 @@ +_worksheet) + * + * @var bool + */ + private $_localOnly; + + /** + * Scope + * + * @var PHPExcel_Worksheet + */ + private $_scope; + + /** + * Create a new NamedRange + * + * @param string $pName + * @param PHPExcel_Worksheet $pWorksheet + * @param string $pRange + * @param bool $pLocalOnly + * @param PHPExcel_Worksheet|null $pScope Scope. Only applies when $pLocalOnly = true. Null for global scope. + * @throws PHPExcel_Exception + */ + public function __construct($pName = null, PHPExcel_Worksheet $pWorksheet, $pRange = 'A1', $pLocalOnly = false, $pScope = null) + { + // Validate data + if (($pName === NULL) || ($pWorksheet === NULL) || ($pRange === NULL)) { + throw new PHPExcel_Exception('Parameters can not be null.'); + } + + // Set local members + $this->_name = $pName; + $this->_worksheet = $pWorksheet; + $this->_range = $pRange; + $this->_localOnly = $pLocalOnly; + $this->_scope = ($pLocalOnly == true) ? + (($pScope == null) ? $pWorksheet : $pScope) : null; + } + + /** + * Get name + * + * @return string + */ + public function getName() { + return $this->_name; + } + + /** + * Set name + * + * @param string $value + * @return PHPExcel_NamedRange + */ + public function setName($value = null) { + if ($value !== NULL) { + // Old title + $oldTitle = $this->_name; + + // Re-attach + if ($this->_worksheet !== NULL) { + $this->_worksheet->getParent()->removeNamedRange($this->_name,$this->_worksheet); + } + $this->_name = $value; + + if ($this->_worksheet !== NULL) { + $this->_worksheet->getParent()->addNamedRange($this); + } + + // New title + $newTitle = $this->_name; + PHPExcel_ReferenceHelper::getInstance()->updateNamedFormulas($this->_worksheet->getParent(), $oldTitle, $newTitle); + } + return $this; + } + + /** + * Get worksheet + * + * @return PHPExcel_Worksheet + */ + public function getWorksheet() { + return $this->_worksheet; + } + + /** + * Set worksheet + * + * @param PHPExcel_Worksheet $value + * @return PHPExcel_NamedRange + */ + public function setWorksheet(PHPExcel_Worksheet $value = null) { + if ($value !== NULL) { + $this->_worksheet = $value; + } + return $this; + } + + /** + * Get range + * + * @return string + */ + public function getRange() { + return $this->_range; + } + + /** + * Set range + * + * @param string $value + * @return PHPExcel_NamedRange + */ + public function setRange($value = null) { + if ($value !== NULL) { + $this->_range = $value; + } + return $this; + } + + /** + * Get localOnly + * + * @return bool + */ + public function getLocalOnly() { + return $this->_localOnly; + } + + /** + * Set localOnly + * + * @param bool $value + * @return PHPExcel_NamedRange + */ + public function setLocalOnly($value = false) { + $this->_localOnly = $value; + $this->_scope = $value ? $this->_worksheet : null; + return $this; + } + + /** + * Get scope + * + * @return PHPExcel_Worksheet|null + */ + public function getScope() { + return $this->_scope; + } + + /** + * Set scope + * + * @param PHPExcel_Worksheet|null $value + * @return PHPExcel_NamedRange + */ + public function setScope(PHPExcel_Worksheet $value = null) { + $this->_scope = $value; + $this->_localOnly = ($value == null) ? false : true; + return $this; + } + + /** + * Resolve a named range to a regular cell range + * + * @param string $pNamedRange Named range + * @param PHPExcel_Worksheet|null $pSheet Scope. Use null for global scope + * @return PHPExcel_NamedRange + */ + public static function resolveRange($pNamedRange = '', PHPExcel_Worksheet $pSheet) { + return $pSheet->getParent()->getNamedRange($pNamedRange, $pSheet); + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Reader/Abstract.php b/admin/helpers/PHPExcel/Reader/Abstract.php new file mode 100644 index 00000000..1a6b422f --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/Abstract.php @@ -0,0 +1,230 @@ +_readDataOnly; + } + + /** + * Set read data only + * Set to true, to advise the Reader only to read data values for cells, and to ignore any formatting information. + * Set to false (the default) to advise the Reader to read both data and formatting for cells. + * + * @param boolean $pValue + * + * @return PHPExcel_Reader_IReader + */ + public function setReadDataOnly($pValue = FALSE) { + $this->_readDataOnly = $pValue; + return $this; + } + + /** + * Read charts in workbook? + * If this is true, then the Reader will include any charts that exist in the workbook. + * Note that a ReadDataOnly value of false overrides, and charts won't be read regardless of the IncludeCharts value. + * If false (the default) it will ignore any charts defined in the workbook file. + * + * @return boolean + */ + public function getIncludeCharts() { + return $this->_includeCharts; + } + + /** + * Set read charts in workbook + * Set to true, to advise the Reader to include any charts that exist in the workbook. + * Note that a ReadDataOnly value of false overrides, and charts won't be read regardless of the IncludeCharts value. + * Set to false (the default) to discard charts. + * + * @param boolean $pValue + * + * @return PHPExcel_Reader_IReader + */ + public function setIncludeCharts($pValue = FALSE) { + $this->_includeCharts = (boolean) $pValue; + return $this; + } + + /** + * Get which sheets to load + * Returns either an array of worksheet names (the list of worksheets that should be loaded), or a null + * indicating that all worksheets in the workbook should be loaded. + * + * @return mixed + */ + public function getLoadSheetsOnly() + { + return $this->_loadSheetsOnly; + } + + /** + * Set which sheets to load + * + * @param mixed $value + * This should be either an array of worksheet names to be loaded, or a string containing a single worksheet name. + * If NULL, then it tells the Reader to read all worksheets in the workbook + * + * @return PHPExcel_Reader_IReader + */ + public function setLoadSheetsOnly($value = NULL) + { + if ($value === NULL) + return $this->setLoadAllSheets(); + + $this->_loadSheetsOnly = is_array($value) ? + $value : array($value); + return $this; + } + + /** + * Set all sheets to load + * Tells the Reader to load all worksheets from the workbook. + * + * @return PHPExcel_Reader_IReader + */ + public function setLoadAllSheets() + { + $this->_loadSheetsOnly = NULL; + return $this; + } + + /** + * Read filter + * + * @return PHPExcel_Reader_IReadFilter + */ + public function getReadFilter() { + return $this->_readFilter; + } + + /** + * Set read filter + * + * @param PHPExcel_Reader_IReadFilter $pValue + * @return PHPExcel_Reader_IReader + */ + public function setReadFilter(PHPExcel_Reader_IReadFilter $pValue) { + $this->_readFilter = $pValue; + return $this; + } + + /** + * Open file for reading + * + * @param string $pFilename + * @throws PHPExcel_Reader_Exception + * @return resource + */ + protected function _openFile($pFilename) + { + // Check if file exists + if (!file_exists($pFilename) || !is_readable($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + // Open file + $this->_fileHandle = fopen($pFilename, 'r'); + if ($this->_fileHandle === FALSE) { + throw new PHPExcel_Reader_Exception("Could not open file " . $pFilename . " for reading."); + } + } + + /** + * Can the current PHPExcel_Reader_IReader read the file? + * + * @param string $pFilename + * @return boolean + * @throws PHPExcel_Reader_Exception + */ + public function canRead($pFilename) + { + // Check if file exists + try { + $this->_openFile($pFilename); + } catch (Exception $e) { + return FALSE; + } + + $readable = $this->_isValidFormat(); + fclose ($this->_fileHandle); + return $readable; + } + +} diff --git a/admin/helpers/PHPExcel/Reader/CSV.php b/admin/helpers/PHPExcel/Reader/CSV.php new file mode 100644 index 00000000..22176fdc --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/CSV.php @@ -0,0 +1,387 @@ +_readFilter = new PHPExcel_Reader_DefaultReadFilter(); + } + + /** + * Validate that the current file is a CSV file + * + * @return boolean + */ + protected function _isValidFormat() + { + return TRUE; + } + + /** + * Set input encoding + * + * @param string $pValue Input encoding + */ + public function setInputEncoding($pValue = 'UTF-8') + { + $this->_inputEncoding = $pValue; + return $this; + } + + /** + * Get input encoding + * + * @return string + */ + public function getInputEncoding() + { + return $this->_inputEncoding; + } + + /** + * Move filepointer past any BOM marker + * + */ + protected function _skipBOM() + { + rewind($this->_fileHandle); + + switch ($this->_inputEncoding) { + case 'UTF-8': + fgets($this->_fileHandle, 4) == "\xEF\xBB\xBF" ? + fseek($this->_fileHandle, 3) : fseek($this->_fileHandle, 0); + break; + case 'UTF-16LE': + fgets($this->_fileHandle, 3) == "\xFF\xFE" ? + fseek($this->_fileHandle, 2) : fseek($this->_fileHandle, 0); + break; + case 'UTF-16BE': + fgets($this->_fileHandle, 3) == "\xFE\xFF" ? + fseek($this->_fileHandle, 2) : fseek($this->_fileHandle, 0); + break; + case 'UTF-32LE': + fgets($this->_fileHandle, 5) == "\xFF\xFE\x00\x00" ? + fseek($this->_fileHandle, 4) : fseek($this->_fileHandle, 0); + break; + case 'UTF-32BE': + fgets($this->_fileHandle, 5) == "\x00\x00\xFE\xFF" ? + fseek($this->_fileHandle, 4) : fseek($this->_fileHandle, 0); + break; + default: + break; + } + } + + /** + * Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) + * + * @param string $pFilename + * @throws PHPExcel_Reader_Exception + */ + public function listWorksheetInfo($pFilename) + { + // Open file + $this->_openFile($pFilename); + if (!$this->_isValidFormat()) { + fclose ($this->_fileHandle); + throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid Spreadsheet file."); + } + $fileHandle = $this->_fileHandle; + + // Skip BOM, if any + $this->_skipBOM(); + + $escapeEnclosures = array( "\\" . $this->_enclosure, $this->_enclosure . $this->_enclosure ); + + $worksheetInfo = array(); + $worksheetInfo[0]['worksheetName'] = 'Worksheet'; + $worksheetInfo[0]['lastColumnLetter'] = 'A'; + $worksheetInfo[0]['lastColumnIndex'] = 0; + $worksheetInfo[0]['totalRows'] = 0; + $worksheetInfo[0]['totalColumns'] = 0; + + // Loop through each line of the file in turn + while (($rowData = fgetcsv($fileHandle, 0, $this->_delimiter, $this->_enclosure)) !== FALSE) { + $worksheetInfo[0]['totalRows']++; + $worksheetInfo[0]['lastColumnIndex'] = max($worksheetInfo[0]['lastColumnIndex'], count($rowData) - 1); + } + + $worksheetInfo[0]['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($worksheetInfo[0]['lastColumnIndex']); + $worksheetInfo[0]['totalColumns'] = $worksheetInfo[0]['lastColumnIndex'] + 1; + + // Close file + fclose($fileHandle); + + return $worksheetInfo; + } + + /** + * Loads PHPExcel from file + * + * @param string $pFilename + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public function load($pFilename) + { + // Create new PHPExcel + $objPHPExcel = new PHPExcel(); + + // Load into this instance + return $this->loadIntoExisting($pFilename, $objPHPExcel); + } + + /** + * Loads PHPExcel from file into PHPExcel instance + * + * @param string $pFilename + * @param PHPExcel $objPHPExcel + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) + { + $lineEnding = ini_get('auto_detect_line_endings'); + ini_set('auto_detect_line_endings', true); + + // Open file + $this->_openFile($pFilename); + if (!$this->_isValidFormat()) { + fclose ($this->_fileHandle); + throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid Spreadsheet file."); + } + $fileHandle = $this->_fileHandle; + + // Skip BOM, if any + $this->_skipBOM(); + + // Create new PHPExcel object + while ($objPHPExcel->getSheetCount() <= $this->_sheetIndex) { + $objPHPExcel->createSheet(); + } + $sheet = $objPHPExcel->setActiveSheetIndex($this->_sheetIndex); + + $escapeEnclosures = array( "\\" . $this->_enclosure, + $this->_enclosure . $this->_enclosure + ); + + // Set our starting row based on whether we're in contiguous mode or not + $currentRow = 1; + if ($this->_contiguous) { + $currentRow = ($this->_contiguousRow == -1) ? $sheet->getHighestRow(): $this->_contiguousRow; + } + + // Loop through each line of the file in turn + while (($rowData = fgetcsv($fileHandle, 0, $this->_delimiter, $this->_enclosure)) !== FALSE) { + $columnLetter = 'A'; + foreach($rowData as $rowDatum) { + if ($rowDatum != '' && $this->_readFilter->readCell($columnLetter, $currentRow)) { + // Unescape enclosures + $rowDatum = str_replace($escapeEnclosures, $this->_enclosure, $rowDatum); + + // Convert encoding if necessary + if ($this->_inputEncoding !== 'UTF-8') { + $rowDatum = PHPExcel_Shared_String::ConvertEncoding($rowDatum, 'UTF-8', $this->_inputEncoding); + } + + // Set cell value + $sheet->getCell($columnLetter . $currentRow)->setValue($rowDatum); + } + ++$columnLetter; + } + ++$currentRow; + } + + // Close file + fclose($fileHandle); + + if ($this->_contiguous) { + $this->_contiguousRow = $currentRow; + } + + ini_set('auto_detect_line_endings', $lineEnding); + + // Return + return $objPHPExcel; + } + + /** + * Get delimiter + * + * @return string + */ + public function getDelimiter() { + return $this->_delimiter; + } + + /** + * Set delimiter + * + * @param string $pValue Delimiter, defaults to , + * @return PHPExcel_Reader_CSV + */ + public function setDelimiter($pValue = ',') { + $this->_delimiter = $pValue; + return $this; + } + + /** + * Get enclosure + * + * @return string + */ + public function getEnclosure() { + return $this->_enclosure; + } + + /** + * Set enclosure + * + * @param string $pValue Enclosure, defaults to " + * @return PHPExcel_Reader_CSV + */ + public function setEnclosure($pValue = '"') { + if ($pValue == '') { + $pValue = '"'; + } + $this->_enclosure = $pValue; + return $this; + } + + /** + * Get sheet index + * + * @return integer + */ + public function getSheetIndex() { + return $this->_sheetIndex; + } + + /** + * Set sheet index + * + * @param integer $pValue Sheet index + * @return PHPExcel_Reader_CSV + */ + public function setSheetIndex($pValue = 0) { + $this->_sheetIndex = $pValue; + return $this; + } + + /** + * Set Contiguous + * + * @param boolean $contiguous + */ + public function setContiguous($contiguous = FALSE) + { + $this->_contiguous = (bool) $contiguous; + if (!$contiguous) { + $this->_contiguousRow = -1; + } + + return $this; + } + + /** + * Get Contiguous + * + * @return boolean + */ + public function getContiguous() { + return $this->_contiguous; + } + +} diff --git a/admin/helpers/PHPExcel/Reader/DefaultReadFilter.php b/admin/helpers/PHPExcel/Reader/DefaultReadFilter.php new file mode 100644 index 00000000..dc55fc6b --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/DefaultReadFilter.php @@ -0,0 +1,58 @@ +_readFilter = new PHPExcel_Reader_DefaultReadFilter(); + } + + + /** + * Can the current PHPExcel_Reader_IReader read the file? + * + * @param string $pFilename + * @return boolean + * @throws PHPExcel_Reader_Exception + */ + public function canRead($pFilename) + { + + // Office xmlns:o="urn:schemas-microsoft-com:office:office" + // Excel xmlns:x="urn:schemas-microsoft-com:office:excel" + // XML Spreadsheet xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" + // Spreadsheet component xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" + // XML schema xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" + // XML data type xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" + // MS-persist recordset xmlns:rs="urn:schemas-microsoft-com:rowset" + // Rowset xmlns:z="#RowsetSchema" + // + + $signature = array( + '' + ); + + // Open file + $this->_openFile($pFilename); + $fileHandle = $this->_fileHandle; + + // Read sample data (first 2 KB will do) + $data = fread($fileHandle, 2048); + fclose($fileHandle); + + $valid = true; + foreach($signature as $match) { + // every part of the signature must be present + if (strpos($data, $match) === false) { + $valid = false; + break; + } + } + + // Retrieve charset encoding + if(preg_match('//um',$data,$matches)) { + $this->_charSet = strtoupper($matches[1]); + } +// echo 'Character Set is ',$this->_charSet,'
'; + + return $valid; + } + + + /** + * Reads names of the worksheets from a file, without parsing the whole file to a PHPExcel object + * + * @param string $pFilename + * @throws PHPExcel_Reader_Exception + */ + public function listWorksheetNames($pFilename) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + if (!$this->canRead($pFilename)) { + throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid Spreadsheet file."); + } + + $worksheetNames = array(); + + $xml = simplexml_load_string(file_get_contents($pFilename), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + $namespaces = $xml->getNamespaces(true); + + $xml_ss = $xml->children($namespaces['ss']); + foreach($xml_ss->Worksheet as $worksheet) { + $worksheet_ss = $worksheet->attributes($namespaces['ss']); + $worksheetNames[] = self::_convertStringEncoding((string) $worksheet_ss['Name'],$this->_charSet); + } + + return $worksheetNames; + } + + + /** + * Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) + * + * @param string $pFilename + * @throws PHPExcel_Reader_Exception + */ + public function listWorksheetInfo($pFilename) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + $worksheetInfo = array(); + + $xml = simplexml_load_string(file_get_contents($pFilename), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + $namespaces = $xml->getNamespaces(true); + + $worksheetID = 1; + $xml_ss = $xml->children($namespaces['ss']); + foreach($xml_ss->Worksheet as $worksheet) { + $worksheet_ss = $worksheet->attributes($namespaces['ss']); + + $tmpInfo = array(); + $tmpInfo['worksheetName'] = ''; + $tmpInfo['lastColumnLetter'] = 'A'; + $tmpInfo['lastColumnIndex'] = 0; + $tmpInfo['totalRows'] = 0; + $tmpInfo['totalColumns'] = 0; + + if (isset($worksheet_ss['Name'])) { + $tmpInfo['worksheetName'] = (string) $worksheet_ss['Name']; + } else { + $tmpInfo['worksheetName'] = "Worksheet_{$worksheetID}"; + } + + if (isset($worksheet->Table->Row)) { + $rowIndex = 0; + + foreach($worksheet->Table->Row as $rowData) { + $columnIndex = 0; + $rowHasData = false; + + foreach($rowData->Cell as $cell) { + if (isset($cell->Data)) { + $tmpInfo['lastColumnIndex'] = max($tmpInfo['lastColumnIndex'], $columnIndex); + $rowHasData = true; + } + + ++$columnIndex; + } + + ++$rowIndex; + + if ($rowHasData) { + $tmpInfo['totalRows'] = max($tmpInfo['totalRows'], $rowIndex); + } + } + } + + $tmpInfo['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($tmpInfo['lastColumnIndex']); + $tmpInfo['totalColumns'] = $tmpInfo['lastColumnIndex'] + 1; + + $worksheetInfo[] = $tmpInfo; + ++$worksheetID; + } + + return $worksheetInfo; + } + + + /** + * Loads PHPExcel from file + * + * @param string $pFilename + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public function load($pFilename) + { + // Create new PHPExcel + $objPHPExcel = new PHPExcel(); + + // Load into this instance + return $this->loadIntoExisting($pFilename, $objPHPExcel); + } + + + private static function identifyFixedStyleValue($styleList,&$styleAttributeValue) { + $styleAttributeValue = strtolower($styleAttributeValue); + foreach($styleList as $style) { + if ($styleAttributeValue == strtolower($style)) { + $styleAttributeValue = $style; + return true; + } + } + return false; + } + + + /** + * pixel units to excel width units(units of 1/256th of a character width) + * @param pxs + * @return + */ + private static function _pixel2WidthUnits($pxs) { + $UNIT_OFFSET_MAP = array(0, 36, 73, 109, 146, 182, 219); + + $widthUnits = 256 * ($pxs / 7); + $widthUnits += $UNIT_OFFSET_MAP[($pxs % 7)]; + return $widthUnits; + } + + + /** + * excel width units(units of 1/256th of a character width) to pixel units + * @param widthUnits + * @return + */ + private static function _widthUnits2Pixel($widthUnits) { + $pixels = ($widthUnits / 256) * 7; + $offsetWidthUnits = $widthUnits % 256; + $pixels += round($offsetWidthUnits / (256 / 7)); + return $pixels; + } + + + private static function _hex2str($hex) { + return chr(hexdec($hex[1])); + } + + + /** + * Loads PHPExcel from file into PHPExcel instance + * + * @param string $pFilename + * @param PHPExcel $objPHPExcel + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) + { + $fromFormats = array('\-', '\ '); + $toFormats = array('-', ' '); + + $underlineStyles = array ( + PHPExcel_Style_Font::UNDERLINE_NONE, + PHPExcel_Style_Font::UNDERLINE_DOUBLE, + PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING, + PHPExcel_Style_Font::UNDERLINE_SINGLE, + PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING + ); + $verticalAlignmentStyles = array ( + PHPExcel_Style_Alignment::VERTICAL_BOTTOM, + PHPExcel_Style_Alignment::VERTICAL_TOP, + PHPExcel_Style_Alignment::VERTICAL_CENTER, + PHPExcel_Style_Alignment::VERTICAL_JUSTIFY + ); + $horizontalAlignmentStyles = array ( + PHPExcel_Style_Alignment::HORIZONTAL_GENERAL, + PHPExcel_Style_Alignment::HORIZONTAL_LEFT, + PHPExcel_Style_Alignment::HORIZONTAL_RIGHT, + PHPExcel_Style_Alignment::HORIZONTAL_CENTER, + PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS, + PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY + ); + + $timezoneObj = new DateTimeZone('Europe/London'); + $GMT = new DateTimeZone('UTC'); + + + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + if (!$this->canRead($pFilename)) { + throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid Spreadsheet file."); + } + + $xml = simplexml_load_string(file_get_contents($pFilename), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + $namespaces = $xml->getNamespaces(true); + + $docProps = $objPHPExcel->getProperties(); + if (isset($xml->DocumentProperties[0])) { + foreach($xml->DocumentProperties[0] as $propertyName => $propertyValue) { + switch ($propertyName) { + case 'Title' : + $docProps->setTitle(self::_convertStringEncoding($propertyValue,$this->_charSet)); + break; + case 'Subject' : + $docProps->setSubject(self::_convertStringEncoding($propertyValue,$this->_charSet)); + break; + case 'Author' : + $docProps->setCreator(self::_convertStringEncoding($propertyValue,$this->_charSet)); + break; + case 'Created' : + $creationDate = strtotime($propertyValue); + $docProps->setCreated($creationDate); + break; + case 'LastAuthor' : + $docProps->setLastModifiedBy(self::_convertStringEncoding($propertyValue,$this->_charSet)); + break; + case 'LastSaved' : + $lastSaveDate = strtotime($propertyValue); + $docProps->setModified($lastSaveDate); + break; + case 'Company' : + $docProps->setCompany(self::_convertStringEncoding($propertyValue,$this->_charSet)); + break; + case 'Category' : + $docProps->setCategory(self::_convertStringEncoding($propertyValue,$this->_charSet)); + break; + case 'Manager' : + $docProps->setManager(self::_convertStringEncoding($propertyValue,$this->_charSet)); + break; + case 'Keywords' : + $docProps->setKeywords(self::_convertStringEncoding($propertyValue,$this->_charSet)); + break; + case 'Description' : + $docProps->setDescription(self::_convertStringEncoding($propertyValue,$this->_charSet)); + break; + } + } + } + if (isset($xml->CustomDocumentProperties)) { + foreach($xml->CustomDocumentProperties[0] as $propertyName => $propertyValue) { + $propertyAttributes = $propertyValue->attributes($namespaces['dt']); + $propertyName = preg_replace_callback('/_x([0-9a-z]{4})_/','PHPExcel_Reader_Excel2003XML::_hex2str',$propertyName); + $propertyType = PHPExcel_DocumentProperties::PROPERTY_TYPE_UNKNOWN; + switch((string) $propertyAttributes) { + case 'string' : + $propertyType = PHPExcel_DocumentProperties::PROPERTY_TYPE_STRING; + $propertyValue = trim($propertyValue); + break; + case 'boolean' : + $propertyType = PHPExcel_DocumentProperties::PROPERTY_TYPE_BOOLEAN; + $propertyValue = (bool) $propertyValue; + break; + case 'integer' : + $propertyType = PHPExcel_DocumentProperties::PROPERTY_TYPE_INTEGER; + $propertyValue = intval($propertyValue); + break; + case 'float' : + $propertyType = PHPExcel_DocumentProperties::PROPERTY_TYPE_FLOAT; + $propertyValue = floatval($propertyValue); + break; + case 'dateTime.tz' : + $propertyType = PHPExcel_DocumentProperties::PROPERTY_TYPE_DATE; + $propertyValue = strtotime(trim($propertyValue)); + break; + } + $docProps->setCustomProperty($propertyName,$propertyValue,$propertyType); + } + } + + foreach($xml->Styles[0] as $style) { + $style_ss = $style->attributes($namespaces['ss']); + $styleID = (string) $style_ss['ID']; +// echo 'Style ID = '.$styleID.'
'; + if ($styleID == 'Default') { + $this->_styles['Default'] = array(); + } else { + $this->_styles[$styleID] = $this->_styles['Default']; + } + foreach ($style as $styleType => $styleData) { + $styleAttributes = $styleData->attributes($namespaces['ss']); +// echo $styleType.'
'; + switch ($styleType) { + case 'Alignment' : + foreach($styleAttributes as $styleAttributeKey => $styleAttributeValue) { +// echo $styleAttributeKey.' = '.$styleAttributeValue.'
'; + $styleAttributeValue = (string) $styleAttributeValue; + switch ($styleAttributeKey) { + case 'Vertical' : + if (self::identifyFixedStyleValue($verticalAlignmentStyles,$styleAttributeValue)) { + $this->_styles[$styleID]['alignment']['vertical'] = $styleAttributeValue; + } + break; + case 'Horizontal' : + if (self::identifyFixedStyleValue($horizontalAlignmentStyles,$styleAttributeValue)) { + $this->_styles[$styleID]['alignment']['horizontal'] = $styleAttributeValue; + } + break; + case 'WrapText' : + $this->_styles[$styleID]['alignment']['wrap'] = true; + break; + } + } + break; + case 'Borders' : + foreach($styleData->Border as $borderStyle) { + $borderAttributes = $borderStyle->attributes($namespaces['ss']); + $thisBorder = array(); + foreach($borderAttributes as $borderStyleKey => $borderStyleValue) { +// echo $borderStyleKey.' = '.$borderStyleValue.'
'; + switch ($borderStyleKey) { + case 'LineStyle' : + $thisBorder['style'] = PHPExcel_Style_Border::BORDER_MEDIUM; +// $thisBorder['style'] = $borderStyleValue; + break; + case 'Weight' : +// $thisBorder['style'] = $borderStyleValue; + break; + case 'Position' : + $borderPosition = strtolower($borderStyleValue); + break; + case 'Color' : + $borderColour = substr($borderStyleValue,1); + $thisBorder['color']['rgb'] = $borderColour; + break; + } + } + if (!empty($thisBorder)) { + if (($borderPosition == 'left') || ($borderPosition == 'right') || ($borderPosition == 'top') || ($borderPosition == 'bottom')) { + $this->_styles[$styleID]['borders'][$borderPosition] = $thisBorder; + } + } + } + break; + case 'Font' : + foreach($styleAttributes as $styleAttributeKey => $styleAttributeValue) { +// echo $styleAttributeKey.' = '.$styleAttributeValue.'
'; + $styleAttributeValue = (string) $styleAttributeValue; + switch ($styleAttributeKey) { + case 'FontName' : + $this->_styles[$styleID]['font']['name'] = $styleAttributeValue; + break; + case 'Size' : + $this->_styles[$styleID]['font']['size'] = $styleAttributeValue; + break; + case 'Color' : + $this->_styles[$styleID]['font']['color']['rgb'] = substr($styleAttributeValue,1); + break; + case 'Bold' : + $this->_styles[$styleID]['font']['bold'] = true; + break; + case 'Italic' : + $this->_styles[$styleID]['font']['italic'] = true; + break; + case 'Underline' : + if (self::identifyFixedStyleValue($underlineStyles,$styleAttributeValue)) { + $this->_styles[$styleID]['font']['underline'] = $styleAttributeValue; + } + break; + } + } + break; + case 'Interior' : + foreach($styleAttributes as $styleAttributeKey => $styleAttributeValue) { +// echo $styleAttributeKey.' = '.$styleAttributeValue.'
'; + switch ($styleAttributeKey) { + case 'Color' : + $this->_styles[$styleID]['fill']['color']['rgb'] = substr($styleAttributeValue,1); + break; + } + } + break; + case 'NumberFormat' : + foreach($styleAttributes as $styleAttributeKey => $styleAttributeValue) { +// echo $styleAttributeKey.' = '.$styleAttributeValue.'
'; + $styleAttributeValue = str_replace($fromFormats,$toFormats,$styleAttributeValue); + switch ($styleAttributeValue) { + case 'Short Date' : + $styleAttributeValue = 'dd/mm/yyyy'; + break; + } + if ($styleAttributeValue > '') { + $this->_styles[$styleID]['numberformat']['code'] = $styleAttributeValue; + } + } + break; + case 'Protection' : + foreach($styleAttributes as $styleAttributeKey => $styleAttributeValue) { +// echo $styleAttributeKey.' = '.$styleAttributeValue.'
'; + } + break; + } + } +// print_r($this->_styles[$styleID]); +// echo '
'; + } +// echo '
'; + + $worksheetID = 0; + $xml_ss = $xml->children($namespaces['ss']); + + foreach($xml_ss->Worksheet as $worksheet) { + $worksheet_ss = $worksheet->attributes($namespaces['ss']); + + if ((isset($this->_loadSheetsOnly)) && (isset($worksheet_ss['Name'])) && + (!in_array($worksheet_ss['Name'], $this->_loadSheetsOnly))) { + continue; + } + +// echo '

Worksheet: ',$worksheet_ss['Name'],'

'; +// + // Create new Worksheet + $objPHPExcel->createSheet(); + $objPHPExcel->setActiveSheetIndex($worksheetID); + if (isset($worksheet_ss['Name'])) { + $worksheetName = self::_convertStringEncoding((string) $worksheet_ss['Name'],$this->_charSet); + // Use false for $updateFormulaCellReferences to prevent adjustment of worksheet references in + // formula cells... during the load, all formulae should be correct, and we're simply bringing + // the worksheet name in line with the formula, not the reverse + $objPHPExcel->getActiveSheet()->setTitle($worksheetName,false); + } + + $columnID = 'A'; + if (isset($worksheet->Table->Column)) { + foreach($worksheet->Table->Column as $columnData) { + $columnData_ss = $columnData->attributes($namespaces['ss']); + if (isset($columnData_ss['Index'])) { + $columnID = PHPExcel_Cell::stringFromColumnIndex($columnData_ss['Index']-1); + } + if (isset($columnData_ss['Width'])) { + $columnWidth = $columnData_ss['Width']; +// echo 'Setting column width for '.$columnID.' to '.$columnWidth.'
'; + $objPHPExcel->getActiveSheet()->getColumnDimension($columnID)->setWidth($columnWidth / 5.4); + } + ++$columnID; + } + } + + $rowID = 1; + if (isset($worksheet->Table->Row)) { + foreach($worksheet->Table->Row as $rowData) { + $rowHasData = false; + $row_ss = $rowData->attributes($namespaces['ss']); + if (isset($row_ss['Index'])) { + $rowID = (integer) $row_ss['Index']; + } +// echo 'Row '.$rowID.'
'; + + $columnID = 'A'; + foreach($rowData->Cell as $cell) { + + $cell_ss = $cell->attributes($namespaces['ss']); + if (isset($cell_ss['Index'])) { + $columnID = PHPExcel_Cell::stringFromColumnIndex($cell_ss['Index']-1); + } + $cellRange = $columnID.$rowID; + + if ($this->getReadFilter() !== NULL) { + if (!$this->getReadFilter()->readCell($columnID, $rowID, $worksheetName)) { + continue; + } + } + + if ((isset($cell_ss['MergeAcross'])) || (isset($cell_ss['MergeDown']))) { + $columnTo = $columnID; + if (isset($cell_ss['MergeAcross'])) { + $columnTo = PHPExcel_Cell::stringFromColumnIndex(PHPExcel_Cell::columnIndexFromString($columnID) + $cell_ss['MergeAcross'] -1); + } + $rowTo = $rowID; + if (isset($cell_ss['MergeDown'])) { + $rowTo = $rowTo + $cell_ss['MergeDown']; + } + $cellRange .= ':'.$columnTo.$rowTo; + $objPHPExcel->getActiveSheet()->mergeCells($cellRange); + } + + $cellIsSet = $hasCalculatedValue = false; + $cellDataFormula = ''; + if (isset($cell_ss['Formula'])) { + $cellDataFormula = $cell_ss['Formula']; + // added this as a check for array formulas + if (isset($cell_ss['ArrayRange'])) { + $cellDataCSEFormula = $cell_ss['ArrayRange']; +// echo "found an array formula at ".$columnID.$rowID."
"; + } + $hasCalculatedValue = true; + } + if (isset($cell->Data)) { + $cellValue = $cellData = $cell->Data; + $type = PHPExcel_Cell_DataType::TYPE_NULL; + $cellData_ss = $cellData->attributes($namespaces['ss']); + if (isset($cellData_ss['Type'])) { + $cellDataType = $cellData_ss['Type']; + switch ($cellDataType) { + /* + const TYPE_STRING = 's'; + const TYPE_FORMULA = 'f'; + const TYPE_NUMERIC = 'n'; + const TYPE_BOOL = 'b'; + const TYPE_NULL = 'null'; + const TYPE_INLINE = 'inlineStr'; + const TYPE_ERROR = 'e'; + */ + case 'String' : + $cellValue = self::_convertStringEncoding($cellValue,$this->_charSet); + $type = PHPExcel_Cell_DataType::TYPE_STRING; + break; + case 'Number' : + $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; + $cellValue = (float) $cellValue; + if (floor($cellValue) == $cellValue) { + $cellValue = (integer) $cellValue; + } + break; + case 'Boolean' : + $type = PHPExcel_Cell_DataType::TYPE_BOOL; + $cellValue = ($cellValue != 0); + break; + case 'DateTime' : + $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; + $cellValue = PHPExcel_Shared_Date::PHPToExcel(strtotime($cellValue)); + break; + case 'Error' : + $type = PHPExcel_Cell_DataType::TYPE_ERROR; + break; + } + } + + if ($hasCalculatedValue) { +// echo 'FORMULA
'; + $type = PHPExcel_Cell_DataType::TYPE_FORMULA; + $columnNumber = PHPExcel_Cell::columnIndexFromString($columnID); + if (substr($cellDataFormula,0,3) == 'of:') { + $cellDataFormula = substr($cellDataFormula,3); +// echo 'Before: ',$cellDataFormula,'
'; + $temp = explode('"',$cellDataFormula); + $key = false; + foreach($temp as &$value) { + // Only replace in alternate array entries (i.e. non-quoted blocks) + if ($key = !$key) { + $value = str_replace(array('[.','.',']'),'',$value); + } + } + } else { + // Convert R1C1 style references to A1 style references (but only when not quoted) +// echo 'Before: ',$cellDataFormula,'
'; + $temp = explode('"',$cellDataFormula); + $key = false; + foreach($temp as &$value) { + // Only replace in alternate array entries (i.e. non-quoted blocks) + if ($key = !$key) { + preg_match_all('/(R(\[?-?\d*\]?))(C(\[?-?\d*\]?))/',$value, $cellReferences,PREG_SET_ORDER+PREG_OFFSET_CAPTURE); + // Reverse the matches array, otherwise all our offsets will become incorrect if we modify our way + // through the formula from left to right. Reversing means that we work right to left.through + // the formula + $cellReferences = array_reverse($cellReferences); + // Loop through each R1C1 style reference in turn, converting it to its A1 style equivalent, + // then modify the formula to use that new reference + foreach($cellReferences as $cellReference) { + $rowReference = $cellReference[2][0]; + // Empty R reference is the current row + if ($rowReference == '') $rowReference = $rowID; + // Bracketed R references are relative to the current row + if ($rowReference{0} == '[') $rowReference = $rowID + trim($rowReference,'[]'); + $columnReference = $cellReference[4][0]; + // Empty C reference is the current column + if ($columnReference == '') $columnReference = $columnNumber; + // Bracketed C references are relative to the current column + if ($columnReference{0} == '[') $columnReference = $columnNumber + trim($columnReference,'[]'); + $A1CellReference = PHPExcel_Cell::stringFromColumnIndex($columnReference-1).$rowReference; + $value = substr_replace($value,$A1CellReference,$cellReference[0][1],strlen($cellReference[0][0])); + } + } + } + } + unset($value); + // Then rebuild the formula string + $cellDataFormula = implode('"',$temp); +// echo 'After: ',$cellDataFormula,'
'; + } + +// echo 'Cell '.$columnID.$rowID.' is a '.$type.' with a value of '.(($hasCalculatedValue) ? $cellDataFormula : $cellValue).'
'; +// + $objPHPExcel->getActiveSheet()->getCell($columnID.$rowID)->setValueExplicit((($hasCalculatedValue) ? $cellDataFormula : $cellValue),$type); + if ($hasCalculatedValue) { +// echo 'Formula result is '.$cellValue.'
'; + $objPHPExcel->getActiveSheet()->getCell($columnID.$rowID)->setCalculatedValue($cellValue); + } + $cellIsSet = $rowHasData = true; + } + + if (isset($cell->Comment)) { +// echo 'comment found
'; + $commentAttributes = $cell->Comment->attributes($namespaces['ss']); + $author = 'unknown'; + if (isset($commentAttributes->Author)) { + $author = (string)$commentAttributes->Author; +// echo 'Author: ',$author,'
'; + } + $node = $cell->Comment->Data->asXML(); +// $annotation = str_replace('html:','',substr($node,49,-10)); +// echo $annotation,'
'; + $annotation = strip_tags($node); +// echo 'Annotation: ',$annotation,'
'; + $objPHPExcel->getActiveSheet()->getComment( $columnID.$rowID ) + ->setAuthor(self::_convertStringEncoding($author ,$this->_charSet)) + ->setText($this->_parseRichText($annotation) ); + } + + if (($cellIsSet) && (isset($cell_ss['StyleID']))) { + $style = (string) $cell_ss['StyleID']; +// echo 'Cell style for '.$columnID.$rowID.' is '.$style.'
'; + if ((isset($this->_styles[$style])) && (!empty($this->_styles[$style]))) { +// echo 'Cell '.$columnID.$rowID.'
'; +// print_r($this->_styles[$style]); +// echo '
'; + if (!$objPHPExcel->getActiveSheet()->cellExists($columnID.$rowID)) { + $objPHPExcel->getActiveSheet()->getCell($columnID.$rowID)->setValue(NULL); + } + $objPHPExcel->getActiveSheet()->getStyle($cellRange)->applyFromArray($this->_styles[$style]); + } + } + ++$columnID; + } + + if ($rowHasData) { + if (isset($row_ss['StyleID'])) { + $rowStyle = $row_ss['StyleID']; + } + if (isset($row_ss['Height'])) { + $rowHeight = $row_ss['Height']; +// echo 'Setting row height to '.$rowHeight.'
'; + $objPHPExcel->getActiveSheet()->getRowDimension($rowID)->setRowHeight($rowHeight); + } + } + + ++$rowID; + } + } + ++$worksheetID; + } + + // Return + return $objPHPExcel; + } + + + private static function _convertStringEncoding($string,$charset) { + if ($charset != 'UTF-8') { + return PHPExcel_Shared_String::ConvertEncoding($string,'UTF-8',$charset); + } + return $string; + } + + + private function _parseRichText($is = '') { + $value = new PHPExcel_RichText(); + + $value->createText(self::_convertStringEncoding($is,$this->_charSet)); + + return $value; + } + +} diff --git a/admin/helpers/PHPExcel/Reader/Excel2007.php b/admin/helpers/PHPExcel/Reader/Excel2007.php new file mode 100644 index 00000000..afe3b5c8 --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/Excel2007.php @@ -0,0 +1,2085 @@ +_readFilter = new PHPExcel_Reader_DefaultReadFilter(); + $this->_referenceHelper = PHPExcel_ReferenceHelper::getInstance(); + } + + + /** + * Can the current PHPExcel_Reader_IReader read the file? + * + * @param string $pFilename + * @return boolean + * @throws PHPExcel_Reader_Exception + */ + public function canRead($pFilename) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + $zipClass = PHPExcel_Settings::getZipClass(); + + // Check if zip class exists +// if (!class_exists($zipClass, FALSE)) { +// throw new PHPExcel_Reader_Exception($zipClass . " library is not enabled"); +// } + + $xl = false; + // Load file + $zip = new $zipClass; + if ($zip->open($pFilename) === true) { + // check if it is an OOXML archive + $rels = simplexml_load_string($this->_getFromZipArchive($zip, "_rels/.rels"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + if ($rels !== false) { + foreach ($rels->Relationship as $rel) { + switch ($rel["Type"]) { + case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument": + if (basename($rel["Target"]) == 'workbook.xml') { + $xl = true; + } + break; + + } + } + } + $zip->close(); + } + + return $xl; + } + + + /** + * Reads names of the worksheets from a file, without parsing the whole file to a PHPExcel object + * + * @param string $pFilename + * @throws PHPExcel_Reader_Exception + */ + public function listWorksheetNames($pFilename) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + $worksheetNames = array(); + + $zipClass = PHPExcel_Settings::getZipClass(); + + $zip = new $zipClass; + $zip->open($pFilename); + + // The files we're looking at here are small enough that simpleXML is more efficient than XMLReader + $rels = simplexml_load_string( + $this->_getFromZipArchive($zip, "_rels/.rels", 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()) + ); //~ http://schemas.openxmlformats.org/package/2006/relationships"); + foreach ($rels->Relationship as $rel) { + switch ($rel["Type"]) { + case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument": + $xmlWorkbook = simplexml_load_string( + $this->_getFromZipArchive($zip, "{$rel['Target']}", 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()) + ); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main"); + + if ($xmlWorkbook->sheets) { + foreach ($xmlWorkbook->sheets->sheet as $eleSheet) { + // Check if sheet should be skipped + $worksheetNames[] = (string) $eleSheet["name"]; + } + } + } + } + + $zip->close(); + + return $worksheetNames; + } + + + /** + * Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) + * + * @param string $pFilename + * @throws PHPExcel_Reader_Exception + */ + public function listWorksheetInfo($pFilename) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + $worksheetInfo = array(); + + $zipClass = PHPExcel_Settings::getZipClass(); + + $zip = new $zipClass; + $zip->open($pFilename); + + $rels = simplexml_load_string($this->_getFromZipArchive($zip, "_rels/.rels"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); + foreach ($rels->Relationship as $rel) { + if ($rel["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument") { + $dir = dirname($rel["Target"]); + $relsWorkbook = simplexml_load_string($this->_getFromZipArchive($zip, "$dir/_rels/" . basename($rel["Target"]) . ".rels"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); + $relsWorkbook->registerXPathNamespace("rel", "http://schemas.openxmlformats.org/package/2006/relationships"); + + $worksheets = array(); + foreach ($relsWorkbook->Relationship as $ele) { + if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") { + $worksheets[(string) $ele["Id"]] = $ele["Target"]; + } + } + + $xmlWorkbook = simplexml_load_string($this->_getFromZipArchive($zip, "{$rel['Target']}"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main"); + if ($xmlWorkbook->sheets) { + $dir = dirname($rel["Target"]); + foreach ($xmlWorkbook->sheets->sheet as $eleSheet) { + $tmpInfo = array( + 'worksheetName' => (string) $eleSheet["name"], + 'lastColumnLetter' => 'A', + 'lastColumnIndex' => 0, + 'totalRows' => 0, + 'totalColumns' => 0, + ); + + $fileWorksheet = $worksheets[(string) self::array_item($eleSheet->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "id")]; + + $xml = new XMLReader(); + $res = $xml->open('zip://'.PHPExcel_Shared_File::realpath($pFilename).'#'."$dir/$fileWorksheet", null, PHPExcel_Settings::getLibXmlLoaderOptions()); + $xml->setParserProperty(2,true); + + $currCells = 0; + while ($xml->read()) { + if ($xml->name == 'row' && $xml->nodeType == XMLReader::ELEMENT) { + $row = $xml->getAttribute('r'); + $tmpInfo['totalRows'] = $row; + $tmpInfo['totalColumns'] = max($tmpInfo['totalColumns'],$currCells); + $currCells = 0; + } elseif ($xml->name == 'c' && $xml->nodeType == XMLReader::ELEMENT) { + $currCells++; + } + } + $tmpInfo['totalColumns'] = max($tmpInfo['totalColumns'],$currCells); + $xml->close(); + + $tmpInfo['lastColumnIndex'] = $tmpInfo['totalColumns'] - 1; + $tmpInfo['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($tmpInfo['lastColumnIndex']); + + $worksheetInfo[] = $tmpInfo; + } + } + } + } + + $zip->close(); + + return $worksheetInfo; + } + + + private static function _castToBool($c) { +// echo 'Initial Cast to Boolean', PHP_EOL; + $value = isset($c->v) ? (string) $c->v : NULL; + if ($value == '0') { + return FALSE; + } elseif ($value == '1') { + return TRUE; + } else { + return (bool)$c->v; + } + return $value; + } // function _castToBool() + + + private static function _castToError($c) { +// echo 'Initial Cast to Error', PHP_EOL; + return isset($c->v) ? (string) $c->v : NULL; + } // function _castToError() + + + private static function _castToString($c) { +// echo 'Initial Cast to String, PHP_EOL; + return isset($c->v) ? (string) $c->v : NULL; + } // function _castToString() + + + private function _castToFormula($c,$r,&$cellDataType,&$value,&$calculatedValue,&$sharedFormulas,$castBaseType) { +// echo 'Formula', PHP_EOL; +// echo '$c->f is ', $c->f, PHP_EOL; + $cellDataType = 'f'; + $value = "={$c->f}"; + $calculatedValue = self::$castBaseType($c); + + // Shared formula? + if (isset($c->f['t']) && strtolower((string)$c->f['t']) == 'shared') { +// echo 'SHARED FORMULA', PHP_EOL; + $instance = (string)$c->f['si']; + +// echo 'Instance ID = ', $instance, PHP_EOL; +// +// echo 'Shared Formula Array:', PHP_EOL; +// print_r($sharedFormulas); + if (!isset($sharedFormulas[(string)$c->f['si']])) { +// echo 'SETTING NEW SHARED FORMULA', PHP_EOL; +// echo 'Master is ', $r, PHP_EOL; +// echo 'Formula is ', $value, PHP_EOL; + $sharedFormulas[$instance] = array( 'master' => $r, + 'formula' => $value + ); +// echo 'New Shared Formula Array:', PHP_EOL; +// print_r($sharedFormulas); + } else { +// echo 'GETTING SHARED FORMULA', PHP_EOL; +// echo 'Master is ', $sharedFormulas[$instance]['master'], PHP_EOL; +// echo 'Formula is ', $sharedFormulas[$instance]['formula'], PHP_EOL; + $master = PHPExcel_Cell::coordinateFromString($sharedFormulas[$instance]['master']); + $current = PHPExcel_Cell::coordinateFromString($r); + + $difference = array(0, 0); + $difference[0] = PHPExcel_Cell::columnIndexFromString($current[0]) - PHPExcel_Cell::columnIndexFromString($master[0]); + $difference[1] = $current[1] - $master[1]; + + $value = $this->_referenceHelper->updateFormulaReferences( $sharedFormulas[$instance]['formula'], + 'A1', + $difference[0], + $difference[1] + ); +// echo 'Adjusted Formula is ', $value, PHP_EOL; + } + } + } + + + public function _getFromZipArchive($archive, $fileName = '') + { + // Root-relative paths + if (strpos($fileName, '//') !== false) + { + $fileName = substr($fileName, strpos($fileName, '//') + 1); + } + $fileName = PHPExcel_Shared_File::realpath($fileName); + + // Apache POI fixes + $contents = $archive->getFromName($fileName); + if ($contents === false) + { + $contents = $archive->getFromName(substr($fileName, 1)); + } + + return $contents; + } + + + /** + * Loads PHPExcel from file + * + * @param string $pFilename + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public function load($pFilename) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + // Initialisations + $excel = new PHPExcel; + $excel->removeSheetByIndex(0); + if (!$this->_readDataOnly) { + $excel->removeCellStyleXfByIndex(0); // remove the default style + $excel->removeCellXfByIndex(0); // remove the default style + } + + $zipClass = PHPExcel_Settings::getZipClass(); + + $zip = new $zipClass; + $zip->open($pFilename); + + // Read the theme first, because we need the colour scheme when reading the styles + $wbRels = simplexml_load_string($this->_getFromZipArchive($zip, "xl/_rels/workbook.xml.rels"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); + foreach ($wbRels->Relationship as $rel) { + switch ($rel["Type"]) { + case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme": + $themeOrderArray = array('lt1','dk1','lt2','dk2'); + $themeOrderAdditional = count($themeOrderArray); + + $xmlTheme = simplexml_load_string($this->_getFromZipArchive($zip, "xl/{$rel['Target']}"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + if (is_object($xmlTheme)) { + $xmlThemeName = $xmlTheme->attributes(); + $xmlTheme = $xmlTheme->children("http://schemas.openxmlformats.org/drawingml/2006/main"); + $themeName = (string)$xmlThemeName['name']; + + $colourScheme = $xmlTheme->themeElements->clrScheme->attributes(); + $colourSchemeName = (string)$colourScheme['name']; + $colourScheme = $xmlTheme->themeElements->clrScheme->children("http://schemas.openxmlformats.org/drawingml/2006/main"); + + $themeColours = array(); + foreach ($colourScheme as $k => $xmlColour) { + $themePos = array_search($k,$themeOrderArray); + if ($themePos === false) { + $themePos = $themeOrderAdditional++; + } + if (isset($xmlColour->sysClr)) { + $xmlColourData = $xmlColour->sysClr->attributes(); + $themeColours[$themePos] = $xmlColourData['lastClr']; + } elseif (isset($xmlColour->srgbClr)) { + $xmlColourData = $xmlColour->srgbClr->attributes(); + $themeColours[$themePos] = $xmlColourData['val']; + } + } + self::$_theme = new PHPExcel_Reader_Excel2007_Theme($themeName,$colourSchemeName,$themeColours); + } + break; + } + } + + $rels = simplexml_load_string($this->_getFromZipArchive($zip, "_rels/.rels"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); + foreach ($rels->Relationship as $rel) { + switch ($rel["Type"]) { + case "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties": + $xmlCore = simplexml_load_string($this->_getFromZipArchive($zip, "{$rel['Target']}"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + if (is_object($xmlCore)) { + $xmlCore->registerXPathNamespace("dc", "http://purl.org/dc/elements/1.1/"); + $xmlCore->registerXPathNamespace("dcterms", "http://purl.org/dc/terms/"); + $xmlCore->registerXPathNamespace("cp", "http://schemas.openxmlformats.org/package/2006/metadata/core-properties"); + $docProps = $excel->getProperties(); + $docProps->setCreator((string) self::array_item($xmlCore->xpath("dc:creator"))); + $docProps->setLastModifiedBy((string) self::array_item($xmlCore->xpath("cp:lastModifiedBy"))); + $docProps->setCreated(strtotime(self::array_item($xmlCore->xpath("dcterms:created")))); //! respect xsi:type + $docProps->setModified(strtotime(self::array_item($xmlCore->xpath("dcterms:modified")))); //! respect xsi:type + $docProps->setTitle((string) self::array_item($xmlCore->xpath("dc:title"))); + $docProps->setDescription((string) self::array_item($xmlCore->xpath("dc:description"))); + $docProps->setSubject((string) self::array_item($xmlCore->xpath("dc:subject"))); + $docProps->setKeywords((string) self::array_item($xmlCore->xpath("cp:keywords"))); + $docProps->setCategory((string) self::array_item($xmlCore->xpath("cp:category"))); + } + break; + + case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties": + $xmlCore = simplexml_load_string($this->_getFromZipArchive($zip, "{$rel['Target']}"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + if (is_object($xmlCore)) { + $docProps = $excel->getProperties(); + if (isset($xmlCore->Company)) + $docProps->setCompany((string) $xmlCore->Company); + if (isset($xmlCore->Manager)) + $docProps->setManager((string) $xmlCore->Manager); + } + break; + + case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties": + $xmlCore = simplexml_load_string($this->_getFromZipArchive($zip, "{$rel['Target']}"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + if (is_object($xmlCore)) { + $docProps = $excel->getProperties(); + foreach ($xmlCore as $xmlProperty) { + $cellDataOfficeAttributes = $xmlProperty->attributes(); + if (isset($cellDataOfficeAttributes['name'])) { + $propertyName = (string) $cellDataOfficeAttributes['name']; + $cellDataOfficeChildren = $xmlProperty->children('http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes'); + $attributeType = $cellDataOfficeChildren->getName(); + $attributeValue = (string) $cellDataOfficeChildren->{$attributeType}; + $attributeValue = PHPExcel_DocumentProperties::convertProperty($attributeValue,$attributeType); + $attributeType = PHPExcel_DocumentProperties::convertPropertyType($attributeType); + $docProps->setCustomProperty($propertyName,$attributeValue,$attributeType); + } + } + } + break; + //Ribbon + case "http://schemas.microsoft.com/office/2006/relationships/ui/extensibility": + $customUI = $rel['Target']; + if(!is_null($customUI)){ + $this->_readRibbon($excel, $customUI, $zip); + } + break; + case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument": + $dir = dirname($rel["Target"]); + $relsWorkbook = simplexml_load_string($this->_getFromZipArchive($zip, "$dir/_rels/" . basename($rel["Target"]) . ".rels"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); + $relsWorkbook->registerXPathNamespace("rel", "http://schemas.openxmlformats.org/package/2006/relationships"); + + $sharedStrings = array(); + $xpath = self::array_item($relsWorkbook->xpath("rel:Relationship[@Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings']")); + $xmlStrings = simplexml_load_string($this->_getFromZipArchive($zip, "$dir/$xpath[Target]"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main"); + if (isset($xmlStrings) && isset($xmlStrings->si)) { + foreach ($xmlStrings->si as $val) { + if (isset($val->t)) { + $sharedStrings[] = PHPExcel_Shared_String::ControlCharacterOOXML2PHP( (string) $val->t ); + } elseif (isset($val->r)) { + $sharedStrings[] = $this->_parseRichText($val); + } + } + } + + $worksheets = array(); + $macros = $customUI = NULL; + foreach ($relsWorkbook->Relationship as $ele) { + switch($ele['Type']){ + case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet": + $worksheets[(string) $ele["Id"]] = $ele["Target"]; + break; + // a vbaProject ? (: some macros) + case "http://schemas.microsoft.com/office/2006/relationships/vbaProject": + $macros = $ele["Target"]; + break; + } + } + + if(!is_null($macros)){ + $macrosCode = $this->_getFromZipArchive($zip, 'xl/vbaProject.bin');//vbaProject.bin always in 'xl' dir and always named vbaProject.bin + if($macrosCode !== false){ + $excel->setMacrosCode($macrosCode); + $excel->setHasMacros(true); + //short-circuit : not reading vbaProject.bin.rel to get Signature =>allways vbaProjectSignature.bin in 'xl' dir + $Certificate = $this->_getFromZipArchive($zip, 'xl/vbaProjectSignature.bin'); + if($Certificate !== false) + $excel->setMacrosCertificate($Certificate); + } + } + $styles = array(); + $cellStyles = array(); + $xpath = self::array_item($relsWorkbook->xpath("rel:Relationship[@Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles']")); + $xmlStyles = simplexml_load_string($this->_getFromZipArchive($zip, "$dir/$xpath[Target]"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main"); + $numFmts = null; + if ($xmlStyles && $xmlStyles->numFmts[0]) { + $numFmts = $xmlStyles->numFmts[0]; + } + if (isset($numFmts) && ($numFmts !== NULL)) { + $numFmts->registerXPathNamespace("sml", "http://schemas.openxmlformats.org/spreadsheetml/2006/main"); + } + if (!$this->_readDataOnly && $xmlStyles) { + foreach ($xmlStyles->cellXfs->xf as $xf) { + $numFmt = PHPExcel_Style_NumberFormat::FORMAT_GENERAL; + + if ($xf["numFmtId"]) { + if (isset($numFmts)) { + $tmpNumFmt = self::array_item($numFmts->xpath("sml:numFmt[@numFmtId=$xf[numFmtId]]")); + + if (isset($tmpNumFmt["formatCode"])) { + $numFmt = (string) $tmpNumFmt["formatCode"]; + } + } + + if ((int)$xf["numFmtId"] < 164) { + $numFmt = PHPExcel_Style_NumberFormat::builtInFormatCode((int)$xf["numFmtId"]); + } + } + $quotePrefix = false; + if (isset($xf["quotePrefix"])) { + $quotePrefix = (boolean) $xf["quotePrefix"]; + } + //$numFmt = str_replace('mm', 'i', $numFmt); + //$numFmt = str_replace('h', 'H', $numFmt); + + $style = (object) array( + "numFmt" => $numFmt, + "font" => $xmlStyles->fonts->font[intval($xf["fontId"])], + "fill" => $xmlStyles->fills->fill[intval($xf["fillId"])], + "border" => $xmlStyles->borders->border[intval($xf["borderId"])], + "alignment" => $xf->alignment, + "protection" => $xf->protection, + "quotePrefix" => $quotePrefix, + ); + $styles[] = $style; + + // add style to cellXf collection + $objStyle = new PHPExcel_Style; + self::_readStyle($objStyle, $style); + $excel->addCellXf($objStyle); + } + + foreach ($xmlStyles->cellStyleXfs->xf as $xf) { + $numFmt = PHPExcel_Style_NumberFormat::FORMAT_GENERAL; + if ($numFmts && $xf["numFmtId"]) { + $tmpNumFmt = self::array_item($numFmts->xpath("sml:numFmt[@numFmtId=$xf[numFmtId]]")); + if (isset($tmpNumFmt["formatCode"])) { + $numFmt = (string) $tmpNumFmt["formatCode"]; + } else if ((int)$xf["numFmtId"] < 165) { + $numFmt = PHPExcel_Style_NumberFormat::builtInFormatCode((int)$xf["numFmtId"]); + } + } + + $cellStyle = (object) array( + "numFmt" => $numFmt, + "font" => $xmlStyles->fonts->font[intval($xf["fontId"])], + "fill" => $xmlStyles->fills->fill[intval($xf["fillId"])], + "border" => $xmlStyles->borders->border[intval($xf["borderId"])], + "alignment" => $xf->alignment, + "protection" => $xf->protection, + "quotePrefix" => $quotePrefix, + ); + $cellStyles[] = $cellStyle; + + // add style to cellStyleXf collection + $objStyle = new PHPExcel_Style; + self::_readStyle($objStyle, $cellStyle); + $excel->addCellStyleXf($objStyle); + } + } + + $dxfs = array(); + if (!$this->_readDataOnly && $xmlStyles) { + // Conditional Styles + if ($xmlStyles->dxfs) { + foreach ($xmlStyles->dxfs->dxf as $dxf) { + $style = new PHPExcel_Style(FALSE, TRUE); + self::_readStyle($style, $dxf); + $dxfs[] = $style; + } + } + // Cell Styles + if ($xmlStyles->cellStyles) { + foreach ($xmlStyles->cellStyles->cellStyle as $cellStyle) { + if (intval($cellStyle['builtinId']) == 0) { + if (isset($cellStyles[intval($cellStyle['xfId'])])) { + // Set default style + $style = new PHPExcel_Style; + self::_readStyle($style, $cellStyles[intval($cellStyle['xfId'])]); + + // normal style, currently not using it for anything + } + } + } + } + } + + $xmlWorkbook = simplexml_load_string($this->_getFromZipArchive($zip, "{$rel['Target']}"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main"); + + // Set base date + if ($xmlWorkbook->workbookPr) { + PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900); + if (isset($xmlWorkbook->workbookPr['date1904'])) { + if (self::boolean((string) $xmlWorkbook->workbookPr['date1904'])) { + PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_MAC_1904); + } + } + } + + $sheetId = 0; // keep track of new sheet id in final workbook + $oldSheetId = -1; // keep track of old sheet id in final workbook + $countSkippedSheets = 0; // keep track of number of skipped sheets + $mapSheetId = array(); // mapping of sheet ids from old to new + + + $charts = $chartDetails = array(); + + if ($xmlWorkbook->sheets) { + foreach ($xmlWorkbook->sheets->sheet as $eleSheet) { + ++$oldSheetId; + + // Check if sheet should be skipped + if (isset($this->_loadSheetsOnly) && !in_array((string) $eleSheet["name"], $this->_loadSheetsOnly)) { + ++$countSkippedSheets; + $mapSheetId[$oldSheetId] = null; + continue; + } + + // Map old sheet id in original workbook to new sheet id. + // They will differ if loadSheetsOnly() is being used + $mapSheetId[$oldSheetId] = $oldSheetId - $countSkippedSheets; + + // Load sheet + $docSheet = $excel->createSheet(); + // Use false for $updateFormulaCellReferences to prevent adjustment of worksheet + // references in formula cells... during the load, all formulae should be correct, + // and we're simply bringing the worksheet name in line with the formula, not the + // reverse + $docSheet->setTitle((string) $eleSheet["name"],false); + $fileWorksheet = $worksheets[(string) self::array_item($eleSheet->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "id")]; + $xmlSheet = simplexml_load_string($this->_getFromZipArchive($zip, "$dir/$fileWorksheet"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main"); + + $sharedFormulas = array(); + + if (isset($eleSheet["state"]) && (string) $eleSheet["state"] != '') { + $docSheet->setSheetState( (string) $eleSheet["state"] ); + } + + if (isset($xmlSheet->sheetViews) && isset($xmlSheet->sheetViews->sheetView)) { + if (isset($xmlSheet->sheetViews->sheetView['zoomScale'])) { + $docSheet->getSheetView()->setZoomScale( intval($xmlSheet->sheetViews->sheetView['zoomScale']) ); + } + + if (isset($xmlSheet->sheetViews->sheetView['zoomScaleNormal'])) { + $docSheet->getSheetView()->setZoomScaleNormal( intval($xmlSheet->sheetViews->sheetView['zoomScaleNormal']) ); + } + + if (isset($xmlSheet->sheetViews->sheetView['view'])) { + $docSheet->getSheetView()->setView((string) $xmlSheet->sheetViews->sheetView['view']); + } + + if (isset($xmlSheet->sheetViews->sheetView['showGridLines'])) { + $docSheet->setShowGridLines(self::boolean((string)$xmlSheet->sheetViews->sheetView['showGridLines'])); + } + + if (isset($xmlSheet->sheetViews->sheetView['showRowColHeaders'])) { + $docSheet->setShowRowColHeaders(self::boolean((string)$xmlSheet->sheetViews->sheetView['showRowColHeaders'])); + } + + if (isset($xmlSheet->sheetViews->sheetView['rightToLeft'])) { + $docSheet->setRightToLeft(self::boolean((string)$xmlSheet->sheetViews->sheetView['rightToLeft'])); + } + + if (isset($xmlSheet->sheetViews->sheetView->pane)) { + if (isset($xmlSheet->sheetViews->sheetView->pane['topLeftCell'])) { + $docSheet->freezePane( (string)$xmlSheet->sheetViews->sheetView->pane['topLeftCell'] ); + } else { + $xSplit = 0; + $ySplit = 0; + + if (isset($xmlSheet->sheetViews->sheetView->pane['xSplit'])) { + $xSplit = 1 + intval($xmlSheet->sheetViews->sheetView->pane['xSplit']); + } + + if (isset($xmlSheet->sheetViews->sheetView->pane['ySplit'])) { + $ySplit = 1 + intval($xmlSheet->sheetViews->sheetView->pane['ySplit']); + } + + $docSheet->freezePaneByColumnAndRow($xSplit, $ySplit); + } + } + + if (isset($xmlSheet->sheetViews->sheetView->selection)) { + if (isset($xmlSheet->sheetViews->sheetView->selection['sqref'])) { + $sqref = (string)$xmlSheet->sheetViews->sheetView->selection['sqref']; + $sqref = explode(' ', $sqref); + $sqref = $sqref[0]; + $docSheet->setSelectedCells($sqref); + } + } + + } + + if (isset($xmlSheet->sheetPr) && isset($xmlSheet->sheetPr->tabColor)) { + if (isset($xmlSheet->sheetPr->tabColor['rgb'])) { + $docSheet->getTabColor()->setARGB( (string)$xmlSheet->sheetPr->tabColor['rgb'] ); + } + } + if (isset($xmlSheet->sheetPr) && isset($xmlSheet->sheetPr['codeName'])) { + $docSheet->setCodeName((string) $xmlSheet->sheetPr['codeName']); + } + if (isset($xmlSheet->sheetPr) && isset($xmlSheet->sheetPr->outlinePr)) { + if (isset($xmlSheet->sheetPr->outlinePr['summaryRight']) && + !self::boolean((string) $xmlSheet->sheetPr->outlinePr['summaryRight'])) { + $docSheet->setShowSummaryRight(FALSE); + } else { + $docSheet->setShowSummaryRight(TRUE); + } + + if (isset($xmlSheet->sheetPr->outlinePr['summaryBelow']) && + !self::boolean((string) $xmlSheet->sheetPr->outlinePr['summaryBelow'])) { + $docSheet->setShowSummaryBelow(FALSE); + } else { + $docSheet->setShowSummaryBelow(TRUE); + } + } + + if (isset($xmlSheet->sheetPr) && isset($xmlSheet->sheetPr->pageSetUpPr)) { + if (isset($xmlSheet->sheetPr->pageSetUpPr['fitToPage']) && + !self::boolean((string) $xmlSheet->sheetPr->pageSetUpPr['fitToPage'])) { + $docSheet->getPageSetup()->setFitToPage(FALSE); + } else { + $docSheet->getPageSetup()->setFitToPage(TRUE); + } + } + + if (isset($xmlSheet->sheetFormatPr)) { + if (isset($xmlSheet->sheetFormatPr['customHeight']) && + self::boolean((string) $xmlSheet->sheetFormatPr['customHeight']) && + isset($xmlSheet->sheetFormatPr['defaultRowHeight'])) { + $docSheet->getDefaultRowDimension()->setRowHeight( (float)$xmlSheet->sheetFormatPr['defaultRowHeight'] ); + } + if (isset($xmlSheet->sheetFormatPr['defaultColWidth'])) { + $docSheet->getDefaultColumnDimension()->setWidth( (float)$xmlSheet->sheetFormatPr['defaultColWidth'] ); + } + if (isset($xmlSheet->sheetFormatPr['zeroHeight']) && + ((string)$xmlSheet->sheetFormatPr['zeroHeight'] == '1')) { + $docSheet->getDefaultRowDimension()->setZeroHeight(true); + } + } + + if (isset($xmlSheet->cols) && !$this->_readDataOnly) { + foreach ($xmlSheet->cols->col as $col) { + for ($i = intval($col["min"]) - 1; $i < intval($col["max"]); ++$i) { + if ($col["style"] && !$this->_readDataOnly) { + $docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setXfIndex(intval($col["style"])); + } + if (self::boolean($col["bestFit"])) { + //$docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setAutoSize(TRUE); + } + if (self::boolean($col["hidden"])) { + // echo PHPExcel_Cell::stringFromColumnIndex($i),': HIDDEN COLUMN',PHP_EOL; + $docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setVisible(FALSE); + } + if (self::boolean($col["collapsed"])) { + $docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setCollapsed(TRUE); + } + if ($col["outlineLevel"] > 0) { + $docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setOutlineLevel(intval($col["outlineLevel"])); + } + $docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setWidth(floatval($col["width"])); + + if (intval($col["max"]) == 16384) { + break; + } + } + } + } + + if (isset($xmlSheet->printOptions) && !$this->_readDataOnly) { + if (self::boolean((string) $xmlSheet->printOptions['gridLinesSet'])) { + $docSheet->setShowGridlines(TRUE); + } + + if (self::boolean((string) $xmlSheet->printOptions['gridLines'])) { + $docSheet->setPrintGridlines(TRUE); + } + + if (self::boolean((string) $xmlSheet->printOptions['horizontalCentered'])) { + $docSheet->getPageSetup()->setHorizontalCentered(TRUE); + } + if (self::boolean((string) $xmlSheet->printOptions['verticalCentered'])) { + $docSheet->getPageSetup()->setVerticalCentered(TRUE); + } + } + + if ($xmlSheet && $xmlSheet->sheetData && $xmlSheet->sheetData->row) { + foreach ($xmlSheet->sheetData->row as $row) { + if ($row["ht"] && !$this->_readDataOnly) { + $docSheet->getRowDimension(intval($row["r"]))->setRowHeight(floatval($row["ht"])); + } + if (self::boolean($row["hidden"]) && !$this->_readDataOnly) { + $docSheet->getRowDimension(intval($row["r"]))->setVisible(FALSE); + } + if (self::boolean($row["collapsed"])) { + $docSheet->getRowDimension(intval($row["r"]))->setCollapsed(TRUE); + } + if ($row["outlineLevel"] > 0) { + $docSheet->getRowDimension(intval($row["r"]))->setOutlineLevel(intval($row["outlineLevel"])); + } + if ($row["s"] && !$this->_readDataOnly) { + $docSheet->getRowDimension(intval($row["r"]))->setXfIndex(intval($row["s"])); + } + + foreach ($row->c as $c) { + $r = (string) $c["r"]; + $cellDataType = (string) $c["t"]; + $value = null; + $calculatedValue = null; + + // Read cell? + if ($this->getReadFilter() !== NULL) { + $coordinates = PHPExcel_Cell::coordinateFromString($r); + + if (!$this->getReadFilter()->readCell($coordinates[0], $coordinates[1], $docSheet->getTitle())) { + continue; + } + } + + // echo 'Reading cell ', $coordinates[0], $coordinates[1], PHP_EOL; + // print_r($c); + // echo PHP_EOL; + // echo 'Cell Data Type is ', $cellDataType, ': '; + // + // Read cell! + switch ($cellDataType) { + case "s": + // echo 'String', PHP_EOL; + if ((string)$c->v != '') { + $value = $sharedStrings[intval($c->v)]; + + if ($value instanceof PHPExcel_RichText) { + $value = clone $value; + } + } else { + $value = ''; + } + + break; + case "b": + // echo 'Boolean', PHP_EOL; + if (!isset($c->f)) { + $value = self::_castToBool($c); + } else { + // Formula + $this->_castToFormula($c,$r,$cellDataType,$value,$calculatedValue,$sharedFormulas,'_castToBool'); + if (isset($c->f['t'])) { + $att = array(); + $att = $c->f; + $docSheet->getCell($r)->setFormulaAttributes($att); + } + // echo '$calculatedValue = ', $calculatedValue, PHP_EOL; + } + break; + case "inlineStr": + // echo 'Inline String', PHP_EOL; + $value = $this->_parseRichText($c->is); + + break; + case "e": + // echo 'Error', PHP_EOL; + if (!isset($c->f)) { + $value = self::_castToError($c); + } else { + // Formula + $this->_castToFormula($c,$r,$cellDataType,$value,$calculatedValue,$sharedFormulas,'_castToError'); + // echo '$calculatedValue = ', $calculatedValue, PHP_EOL; + } + + break; + + default: + // echo 'Default', PHP_EOL; + if (!isset($c->f)) { + // echo 'Not a Formula', PHP_EOL; + $value = self::_castToString($c); + } else { + // echo 'Treat as Formula', PHP_EOL; + // Formula + $this->_castToFormula($c,$r,$cellDataType,$value,$calculatedValue,$sharedFormulas,'_castToString'); + // echo '$calculatedValue = ', $calculatedValue, PHP_EOL; + } + + break; + } + // echo 'Value is ', $value, PHP_EOL; + + // Check for numeric values + if (is_numeric($value) && $cellDataType != 's') { + if ($value == (int)$value) $value = (int)$value; + elseif ($value == (float)$value) $value = (float)$value; + elseif ($value == (double)$value) $value = (double)$value; + } + + // Rich text? + if ($value instanceof PHPExcel_RichText && $this->_readDataOnly) { + $value = $value->getPlainText(); + } + + $cell = $docSheet->getCell($r); + // Assign value + if ($cellDataType != '') { + $cell->setValueExplicit($value, $cellDataType); + } else { + $cell->setValue($value); + } + if ($calculatedValue !== NULL) { + $cell->setCalculatedValue($calculatedValue); + } + + // Style information? + if ($c["s"] && !$this->_readDataOnly) { + // no style index means 0, it seems + $cell->setXfIndex(isset($styles[intval($c["s"])]) ? + intval($c["s"]) : 0); + } + } + } + } + + $conditionals = array(); + if (!$this->_readDataOnly && $xmlSheet && $xmlSheet->conditionalFormatting) { + foreach ($xmlSheet->conditionalFormatting as $conditional) { + foreach ($conditional->cfRule as $cfRule) { + if ( + ( + (string)$cfRule["type"] == PHPExcel_Style_Conditional::CONDITION_NONE || + (string)$cfRule["type"] == PHPExcel_Style_Conditional::CONDITION_CELLIS || + (string)$cfRule["type"] == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT || + (string)$cfRule["type"] == PHPExcel_Style_Conditional::CONDITION_EXPRESSION + ) && isset($dxfs[intval($cfRule["dxfId"])]) + ) { + $conditionals[(string) $conditional["sqref"]][intval($cfRule["priority"])] = $cfRule; + } + } + } + + foreach ($conditionals as $ref => $cfRules) { + ksort($cfRules); + $conditionalStyles = array(); + foreach ($cfRules as $cfRule) { + $objConditional = new PHPExcel_Style_Conditional(); + $objConditional->setConditionType((string)$cfRule["type"]); + $objConditional->setOperatorType((string)$cfRule["operator"]); + + if ((string)$cfRule["text"] != '') { + $objConditional->setText((string)$cfRule["text"]); + } + + if (count($cfRule->formula) > 1) { + foreach ($cfRule->formula as $formula) { + $objConditional->addCondition((string)$formula); + } + } else { + $objConditional->addCondition((string)$cfRule->formula); + } + $objConditional->setStyle(clone $dxfs[intval($cfRule["dxfId"])]); + $conditionalStyles[] = $objConditional; + } + + // Extract all cell references in $ref + $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($ref); + foreach ($aReferences as $reference) { + $docSheet->getStyle($reference)->setConditionalStyles($conditionalStyles); + } + } + } + + $aKeys = array("sheet", "objects", "scenarios", "formatCells", "formatColumns", "formatRows", "insertColumns", "insertRows", "insertHyperlinks", "deleteColumns", "deleteRows", "selectLockedCells", "sort", "autoFilter", "pivotTables", "selectUnlockedCells"); + if (!$this->_readDataOnly && $xmlSheet && $xmlSheet->sheetProtection) { + foreach ($aKeys as $key) { + $method = "set" . ucfirst($key); + $docSheet->getProtection()->$method(self::boolean((string) $xmlSheet->sheetProtection[$key])); + } + } + + if (!$this->_readDataOnly && $xmlSheet && $xmlSheet->sheetProtection) { + $docSheet->getProtection()->setPassword((string) $xmlSheet->sheetProtection["password"], TRUE); + if ($xmlSheet->protectedRanges->protectedRange) { + foreach ($xmlSheet->protectedRanges->protectedRange as $protectedRange) { + $docSheet->protectCells((string) $protectedRange["sqref"], (string) $protectedRange["password"], true); + } + } + } + + if ($xmlSheet && $xmlSheet->autoFilter && !$this->_readDataOnly) { + $autoFilter = $docSheet->getAutoFilter(); + + $autoFilterRange = (string) $xmlSheet->autoFilter["ref"]; + if (strpos($autoFilterRange, ':') === false) { + $autoFilterRange = "${autoFilterRange}:${autoFilterRange}"; + } + $autoFilter->setRange($autoFilterRange); + + foreach ($xmlSheet->autoFilter->filterColumn as $filterColumn) { + $column = $autoFilter->getColumnByOffset((integer) $filterColumn["colId"]); + // Check for standard filters + if ($filterColumn->filters) { + $column->setFilterType(PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_FILTER); + $filters = $filterColumn->filters; + if ((isset($filters["blank"])) && ($filters["blank"] == 1)) { + $column->createRule()->setRule( + NULL, // Operator is undefined, but always treated as EQUAL + '' + ) + ->setRuleType(PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_FILTER); + } + // Standard filters are always an OR join, so no join rule needs to be set + // Entries can be either filter elements + foreach ($filters->filter as $filterRule) { + $column->createRule()->setRule( + NULL, // Operator is undefined, but always treated as EQUAL + (string) $filterRule["val"] + ) + ->setRuleType(PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_FILTER); + } + // Or Date Group elements + foreach ($filters->dateGroupItem as $dateGroupItem) { + $column->createRule()->setRule( + NULL, // Operator is undefined, but always treated as EQUAL + array( + 'year' => (string) $dateGroupItem["year"], + 'month' => (string) $dateGroupItem["month"], + 'day' => (string) $dateGroupItem["day"], + 'hour' => (string) $dateGroupItem["hour"], + 'minute' => (string) $dateGroupItem["minute"], + 'second' => (string) $dateGroupItem["second"], + ), + (string) $dateGroupItem["dateTimeGrouping"] + ) + ->setRuleType(PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP); + } + } + // Check for custom filters + if ($filterColumn->customFilters) { + $column->setFilterType(PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_CUSTOMFILTER); + $customFilters = $filterColumn->customFilters; + // Custom filters can an AND or an OR join; + // and there should only ever be one or two entries + if ((isset($customFilters["and"])) && ($customFilters["and"] == 1)) { + $column->setJoin(PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_AND); + } + foreach ($customFilters->customFilter as $filterRule) { + $column->createRule()->setRule( + (string) $filterRule["operator"], + (string) $filterRule["val"] + ) + ->setRuleType(PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_CUSTOMFILTER); + } + } + // Check for dynamic filters + if ($filterColumn->dynamicFilter) { + $column->setFilterType(PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_DYNAMICFILTER); + // We should only ever have one dynamic filter + foreach ($filterColumn->dynamicFilter as $filterRule) { + $column->createRule()->setRule( + NULL, // Operator is undefined, but always treated as EQUAL + (string) $filterRule["val"], + (string) $filterRule["type"] + ) + ->setRuleType(PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMICFILTER); + if (isset($filterRule["val"])) { + $column->setAttribute('val',(string) $filterRule["val"]); + } + if (isset($filterRule["maxVal"])) { + $column->setAttribute('maxVal',(string) $filterRule["maxVal"]); + } + } + } + // Check for dynamic filters + if ($filterColumn->top10) { + $column->setFilterType(PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_TOPTENFILTER); + // We should only ever have one top10 filter + foreach ($filterColumn->top10 as $filterRule) { + $column->createRule()->setRule( + (((isset($filterRule["percent"])) && ($filterRule["percent"] == 1)) + ? PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_PERCENT + : PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_BY_VALUE + ), + (string) $filterRule["val"], + (((isset($filterRule["top"])) && ($filterRule["top"] == 1)) + ? PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP + : PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_BOTTOM + ) + ) + ->setRuleType(PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_TOPTENFILTER); + } + } + } + } + + if ($xmlSheet && $xmlSheet->mergeCells && $xmlSheet->mergeCells->mergeCell && !$this->_readDataOnly) { + foreach ($xmlSheet->mergeCells->mergeCell as $mergeCell) { + $mergeRef = (string) $mergeCell["ref"]; + if (strpos($mergeRef,':') !== FALSE) { + $docSheet->mergeCells((string) $mergeCell["ref"]); + } + } + } + + if ($xmlSheet && $xmlSheet->pageMargins && !$this->_readDataOnly) { + $docPageMargins = $docSheet->getPageMargins(); + $docPageMargins->setLeft(floatval($xmlSheet->pageMargins["left"])); + $docPageMargins->setRight(floatval($xmlSheet->pageMargins["right"])); + $docPageMargins->setTop(floatval($xmlSheet->pageMargins["top"])); + $docPageMargins->setBottom(floatval($xmlSheet->pageMargins["bottom"])); + $docPageMargins->setHeader(floatval($xmlSheet->pageMargins["header"])); + $docPageMargins->setFooter(floatval($xmlSheet->pageMargins["footer"])); + } + + if ($xmlSheet && $xmlSheet->pageSetup && !$this->_readDataOnly) { + $docPageSetup = $docSheet->getPageSetup(); + + if (isset($xmlSheet->pageSetup["orientation"])) { + $docPageSetup->setOrientation((string) $xmlSheet->pageSetup["orientation"]); + } + if (isset($xmlSheet->pageSetup["paperSize"])) { + $docPageSetup->setPaperSize(intval($xmlSheet->pageSetup["paperSize"])); + } + if (isset($xmlSheet->pageSetup["scale"])) { + $docPageSetup->setScale(intval($xmlSheet->pageSetup["scale"]), FALSE); + } + if (isset($xmlSheet->pageSetup["fitToHeight"]) && intval($xmlSheet->pageSetup["fitToHeight"]) >= 0) { + $docPageSetup->setFitToHeight(intval($xmlSheet->pageSetup["fitToHeight"]), FALSE); + } + if (isset($xmlSheet->pageSetup["fitToWidth"]) && intval($xmlSheet->pageSetup["fitToWidth"]) >= 0) { + $docPageSetup->setFitToWidth(intval($xmlSheet->pageSetup["fitToWidth"]), FALSE); + } + if (isset($xmlSheet->pageSetup["firstPageNumber"]) && isset($xmlSheet->pageSetup["useFirstPageNumber"]) && + self::boolean((string) $xmlSheet->pageSetup["useFirstPageNumber"])) { + $docPageSetup->setFirstPageNumber(intval($xmlSheet->pageSetup["firstPageNumber"])); + } + } + + if ($xmlSheet && $xmlSheet->headerFooter && !$this->_readDataOnly) { + $docHeaderFooter = $docSheet->getHeaderFooter(); + + if (isset($xmlSheet->headerFooter["differentOddEven"]) && + self::boolean((string)$xmlSheet->headerFooter["differentOddEven"])) { + $docHeaderFooter->setDifferentOddEven(TRUE); + } else { + $docHeaderFooter->setDifferentOddEven(FALSE); + } + if (isset($xmlSheet->headerFooter["differentFirst"]) && + self::boolean((string)$xmlSheet->headerFooter["differentFirst"])) { + $docHeaderFooter->setDifferentFirst(TRUE); + } else { + $docHeaderFooter->setDifferentFirst(FALSE); + } + if (isset($xmlSheet->headerFooter["scaleWithDoc"]) && + !self::boolean((string)$xmlSheet->headerFooter["scaleWithDoc"])) { + $docHeaderFooter->setScaleWithDocument(FALSE); + } else { + $docHeaderFooter->setScaleWithDocument(TRUE); + } + if (isset($xmlSheet->headerFooter["alignWithMargins"]) && + !self::boolean((string)$xmlSheet->headerFooter["alignWithMargins"])) { + $docHeaderFooter->setAlignWithMargins(FALSE); + } else { + $docHeaderFooter->setAlignWithMargins(TRUE); + } + + $docHeaderFooter->setOddHeader((string) $xmlSheet->headerFooter->oddHeader); + $docHeaderFooter->setOddFooter((string) $xmlSheet->headerFooter->oddFooter); + $docHeaderFooter->setEvenHeader((string) $xmlSheet->headerFooter->evenHeader); + $docHeaderFooter->setEvenFooter((string) $xmlSheet->headerFooter->evenFooter); + $docHeaderFooter->setFirstHeader((string) $xmlSheet->headerFooter->firstHeader); + $docHeaderFooter->setFirstFooter((string) $xmlSheet->headerFooter->firstFooter); + } + + if ($xmlSheet && $xmlSheet->rowBreaks && $xmlSheet->rowBreaks->brk && !$this->_readDataOnly) { + foreach ($xmlSheet->rowBreaks->brk as $brk) { + if ($brk["man"]) { + $docSheet->setBreak("A$brk[id]", PHPExcel_Worksheet::BREAK_ROW); + } + } + } + if ($xmlSheet && $xmlSheet->colBreaks && $xmlSheet->colBreaks->brk && !$this->_readDataOnly) { + foreach ($xmlSheet->colBreaks->brk as $brk) { + if ($brk["man"]) { + $docSheet->setBreak(PHPExcel_Cell::stringFromColumnIndex((string) $brk["id"]) . "1", PHPExcel_Worksheet::BREAK_COLUMN); + } + } + } + + if ($xmlSheet && $xmlSheet->dataValidations && !$this->_readDataOnly) { + foreach ($xmlSheet->dataValidations->dataValidation as $dataValidation) { + // Uppercase coordinate + $range = strtoupper($dataValidation["sqref"]); + $rangeSet = explode(' ',$range); + foreach($rangeSet as $range) { + $stRange = $docSheet->shrinkRangeToFit($range); + + // Extract all cell references in $range + $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($stRange); + foreach ($aReferences as $reference) { + // Create validation + $docValidation = $docSheet->getCell($reference)->getDataValidation(); + $docValidation->setType((string) $dataValidation["type"]); + $docValidation->setErrorStyle((string) $dataValidation["errorStyle"]); + $docValidation->setOperator((string) $dataValidation["operator"]); + $docValidation->setAllowBlank($dataValidation["allowBlank"] != 0); + $docValidation->setShowDropDown($dataValidation["showDropDown"] == 0); + $docValidation->setShowInputMessage($dataValidation["showInputMessage"] != 0); + $docValidation->setShowErrorMessage($dataValidation["showErrorMessage"] != 0); + $docValidation->setErrorTitle((string) $dataValidation["errorTitle"]); + $docValidation->setError((string) $dataValidation["error"]); + $docValidation->setPromptTitle((string) $dataValidation["promptTitle"]); + $docValidation->setPrompt((string) $dataValidation["prompt"]); + $docValidation->setFormula1((string) $dataValidation->formula1); + $docValidation->setFormula2((string) $dataValidation->formula2); + } + } + } + } + + // Add hyperlinks + $hyperlinks = array(); + if (!$this->_readDataOnly) { + // Locate hyperlink relations + if ($zip->locateName(dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")) { + $relsWorksheet = simplexml_load_string($this->_getFromZipArchive($zip, dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels") , 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); + foreach ($relsWorksheet->Relationship as $ele) { + if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink") { + $hyperlinks[(string)$ele["Id"]] = (string)$ele["Target"]; + } + } + } + + // Loop through hyperlinks + if ($xmlSheet && $xmlSheet->hyperlinks) { + foreach ($xmlSheet->hyperlinks->hyperlink as $hyperlink) { + // Link url + $linkRel = $hyperlink->attributes('http://schemas.openxmlformats.org/officeDocument/2006/relationships'); + + foreach (PHPExcel_Cell::extractAllCellReferencesInRange($hyperlink['ref']) as $cellReference) { + $cell = $docSheet->getCell( $cellReference ); + if (isset($linkRel['id'])) { + $hyperlinkUrl = $hyperlinks[ (string)$linkRel['id'] ]; + if (isset($hyperlink['location'])) { + $hyperlinkUrl .= '#' . (string) $hyperlink['location']; + } + $cell->getHyperlink()->setUrl($hyperlinkUrl); + } elseif (isset($hyperlink['location'])) { + $cell->getHyperlink()->setUrl( 'sheet://' . (string)$hyperlink['location'] ); + } + + // Tooltip + if (isset($hyperlink['tooltip'])) { + $cell->getHyperlink()->setTooltip( (string)$hyperlink['tooltip'] ); + } + } + } + } + } + + // Add comments + $comments = array(); + $vmlComments = array(); + if (!$this->_readDataOnly) { + // Locate comment relations + if ($zip->locateName(dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")) { + $relsWorksheet = simplexml_load_string($this->_getFromZipArchive($zip, dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels") , 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); + foreach ($relsWorksheet->Relationship as $ele) { + if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments") { + $comments[(string)$ele["Id"]] = (string)$ele["Target"]; + } + if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing") { + $vmlComments[(string)$ele["Id"]] = (string)$ele["Target"]; + } + } + } + + // Loop through comments + foreach ($comments as $relName => $relPath) { + // Load comments file + $relPath = PHPExcel_Shared_File::realpath(dirname("$dir/$fileWorksheet") . "/" . $relPath); + $commentsFile = simplexml_load_string($this->_getFromZipArchive($zip, $relPath) , 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + + // Utility variables + $authors = array(); + + // Loop through authors + foreach ($commentsFile->authors->author as $author) { + $authors[] = (string)$author; + } + + // Loop through contents + foreach ($commentsFile->commentList->comment as $comment) { + if(!empty($comment['authorId'])) + $docSheet->getComment( (string)$comment['ref'] )->setAuthor( $authors[(string)$comment['authorId']] ); + $docSheet->getComment( (string)$comment['ref'] )->setText( $this->_parseRichText($comment->text) ); + } + } + + // Loop through VML comments + foreach ($vmlComments as $relName => $relPath) { + // Load VML comments file + $relPath = PHPExcel_Shared_File::realpath(dirname("$dir/$fileWorksheet") . "/" . $relPath); + $vmlCommentsFile = simplexml_load_string( $this->_getFromZipArchive($zip, $relPath) , 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + $vmlCommentsFile->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml'); + + $shapes = $vmlCommentsFile->xpath('//v:shape'); + foreach ($shapes as $shape) { + $shape->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml'); + + if (isset($shape['style'])) { + $style = (string)$shape['style']; + $fillColor = strtoupper( substr( (string)$shape['fillcolor'], 1 ) ); + $column = null; + $row = null; + + $clientData = $shape->xpath('.//x:ClientData'); + if (is_array($clientData) && !empty($clientData)) { + $clientData = $clientData[0]; + + if ( isset($clientData['ObjectType']) && (string)$clientData['ObjectType'] == 'Note' ) { + $temp = $clientData->xpath('.//x:Row'); + if (is_array($temp)) $row = $temp[0]; + + $temp = $clientData->xpath('.//x:Column'); + if (is_array($temp)) $column = $temp[0]; + } + } + + if (($column !== NULL) && ($row !== NULL)) { + // Set comment properties + $comment = $docSheet->getCommentByColumnAndRow((string) $column, $row + 1); + $comment->getFillColor()->setRGB( $fillColor ); + + // Parse style + $styleArray = explode(';', str_replace(' ', '', $style)); + foreach ($styleArray as $stylePair) { + $stylePair = explode(':', $stylePair); + + if ($stylePair[0] == 'margin-left') $comment->setMarginLeft($stylePair[1]); + if ($stylePair[0] == 'margin-top') $comment->setMarginTop($stylePair[1]); + if ($stylePair[0] == 'width') $comment->setWidth($stylePair[1]); + if ($stylePair[0] == 'height') $comment->setHeight($stylePair[1]); + if ($stylePair[0] == 'visibility') $comment->setVisible( $stylePair[1] == 'visible' ); + + } + } + } + } + } + + // Header/footer images + if ($xmlSheet && $xmlSheet->legacyDrawingHF && !$this->_readDataOnly) { + if ($zip->locateName(dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")) { + $relsWorksheet = simplexml_load_string($this->_getFromZipArchive($zip, dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels") , 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); + $vmlRelationship = ''; + + foreach ($relsWorksheet->Relationship as $ele) { + if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing") { + $vmlRelationship = self::dir_add("$dir/$fileWorksheet", $ele["Target"]); + } + } + + if ($vmlRelationship != '') { + // Fetch linked images + $relsVML = simplexml_load_string($this->_getFromZipArchive($zip, dirname($vmlRelationship) . '/_rels/' . basename($vmlRelationship) . '.rels' ), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); + $drawings = array(); + foreach ($relsVML->Relationship as $ele) { + if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image") { + $drawings[(string) $ele["Id"]] = self::dir_add($vmlRelationship, $ele["Target"]); + } + } + + // Fetch VML document + $vmlDrawing = simplexml_load_string($this->_getFromZipArchive($zip, $vmlRelationship), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + $vmlDrawing->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml'); + + $hfImages = array(); + + $shapes = $vmlDrawing->xpath('//v:shape'); + foreach ($shapes as $idx => $shape) { + $shape->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml'); + $imageData = $shape->xpath('//v:imagedata'); + $imageData = $imageData[$idx]; + + $imageData = $imageData->attributes('urn:schemas-microsoft-com:office:office'); + $style = self::toCSSArray( (string)$shape['style'] ); + + $hfImages[ (string)$shape['id'] ] = new PHPExcel_Worksheet_HeaderFooterDrawing(); + if (isset($imageData['title'])) { + $hfImages[ (string)$shape['id'] ]->setName( (string)$imageData['title'] ); + } + + $hfImages[ (string)$shape['id'] ]->setPath("zip://".PHPExcel_Shared_File::realpath($pFilename)."#" . $drawings[(string)$imageData['relid']], false); + $hfImages[ (string)$shape['id'] ]->setResizeProportional(false); + $hfImages[ (string)$shape['id'] ]->setWidth($style['width']); + $hfImages[ (string)$shape['id'] ]->setHeight($style['height']); + if (isset($style['margin-left'])) { + $hfImages[ (string)$shape['id'] ]->setOffsetX($style['margin-left']); + } + $hfImages[ (string)$shape['id'] ]->setOffsetY($style['margin-top']); + $hfImages[ (string)$shape['id'] ]->setResizeProportional(true); + } + + $docSheet->getHeaderFooter()->setImages($hfImages); + } + } + } + + } + + // TODO: Autoshapes from twoCellAnchors! + if ($zip->locateName(dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")) { + $relsWorksheet = simplexml_load_string($this->_getFromZipArchive($zip, dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels") , 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); + $drawings = array(); + foreach ($relsWorksheet->Relationship as $ele) { + if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing") { + $drawings[(string) $ele["Id"]] = self::dir_add("$dir/$fileWorksheet", $ele["Target"]); + } + } + if ($xmlSheet->drawing && !$this->_readDataOnly) { + foreach ($xmlSheet->drawing as $drawing) { + $fileDrawing = $drawings[(string) self::array_item($drawing->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "id")]; + $relsDrawing = simplexml_load_string($this->_getFromZipArchive($zip, dirname($fileDrawing) . "/_rels/" . basename($fileDrawing) . ".rels") , 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); + $images = array(); + + if ($relsDrawing && $relsDrawing->Relationship) { + foreach ($relsDrawing->Relationship as $ele) { + if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image") { + $images[(string) $ele["Id"]] = self::dir_add($fileDrawing, $ele["Target"]); + } elseif ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart") { + if ($this->_includeCharts) { + $charts[self::dir_add($fileDrawing, $ele["Target"])] = array('id' => (string) $ele["Id"], + 'sheet' => $docSheet->getTitle() + ); + } + } + } + } + $xmlDrawing = simplexml_load_string($this->_getFromZipArchive($zip, $fileDrawing), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions())->children("http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"); + + if ($xmlDrawing->oneCellAnchor) { + foreach ($xmlDrawing->oneCellAnchor as $oneCellAnchor) { + if ($oneCellAnchor->pic->blipFill) { + $blip = $oneCellAnchor->pic->blipFill->children("http://schemas.openxmlformats.org/drawingml/2006/main")->blip; + $xfrm = $oneCellAnchor->pic->spPr->children("http://schemas.openxmlformats.org/drawingml/2006/main")->xfrm; + $outerShdw = $oneCellAnchor->pic->spPr->children("http://schemas.openxmlformats.org/drawingml/2006/main")->effectLst->outerShdw; + $objDrawing = new PHPExcel_Worksheet_Drawing; + $objDrawing->setName((string) self::array_item($oneCellAnchor->pic->nvPicPr->cNvPr->attributes(), "name")); + $objDrawing->setDescription((string) self::array_item($oneCellAnchor->pic->nvPicPr->cNvPr->attributes(), "descr")); + $objDrawing->setPath("zip://".PHPExcel_Shared_File::realpath($pFilename)."#" . $images[(string) self::array_item($blip->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "embed")], false); + $objDrawing->setCoordinates(PHPExcel_Cell::stringFromColumnIndex((string) $oneCellAnchor->from->col) . ($oneCellAnchor->from->row + 1)); + $objDrawing->setOffsetX(PHPExcel_Shared_Drawing::EMUToPixels($oneCellAnchor->from->colOff)); + $objDrawing->setOffsetY(PHPExcel_Shared_Drawing::EMUToPixels($oneCellAnchor->from->rowOff)); + $objDrawing->setResizeProportional(false); + $objDrawing->setWidth(PHPExcel_Shared_Drawing::EMUToPixels(self::array_item($oneCellAnchor->ext->attributes(), "cx"))); + $objDrawing->setHeight(PHPExcel_Shared_Drawing::EMUToPixels(self::array_item($oneCellAnchor->ext->attributes(), "cy"))); + if ($xfrm) { + $objDrawing->setRotation(PHPExcel_Shared_Drawing::angleToDegrees(self::array_item($xfrm->attributes(), "rot"))); + } + if ($outerShdw) { + $shadow = $objDrawing->getShadow(); + $shadow->setVisible(true); + $shadow->setBlurRadius(PHPExcel_Shared_Drawing::EMUTopixels(self::array_item($outerShdw->attributes(), "blurRad"))); + $shadow->setDistance(PHPExcel_Shared_Drawing::EMUTopixels(self::array_item($outerShdw->attributes(), "dist"))); + $shadow->setDirection(PHPExcel_Shared_Drawing::angleToDegrees(self::array_item($outerShdw->attributes(), "dir"))); + $shadow->setAlignment((string) self::array_item($outerShdw->attributes(), "algn")); + $shadow->getColor()->setRGB(self::array_item($outerShdw->srgbClr->attributes(), "val")); + $shadow->setAlpha(self::array_item($outerShdw->srgbClr->alpha->attributes(), "val") / 1000); + } + $objDrawing->setWorksheet($docSheet); + } else { + // ? Can charts be positioned with a oneCellAnchor ? + $coordinates = PHPExcel_Cell::stringFromColumnIndex((string) $oneCellAnchor->from->col) . ($oneCellAnchor->from->row + 1); + $offsetX = PHPExcel_Shared_Drawing::EMUToPixels($oneCellAnchor->from->colOff); + $offsetY = PHPExcel_Shared_Drawing::EMUToPixels($oneCellAnchor->from->rowOff); + $width = PHPExcel_Shared_Drawing::EMUToPixels(self::array_item($oneCellAnchor->ext->attributes(), "cx")); + $height = PHPExcel_Shared_Drawing::EMUToPixels(self::array_item($oneCellAnchor->ext->attributes(), "cy")); + } + } + } + if ($xmlDrawing->twoCellAnchor) { + foreach ($xmlDrawing->twoCellAnchor as $twoCellAnchor) { + if ($twoCellAnchor->pic->blipFill) { + $blip = $twoCellAnchor->pic->blipFill->children("http://schemas.openxmlformats.org/drawingml/2006/main")->blip; + $xfrm = $twoCellAnchor->pic->spPr->children("http://schemas.openxmlformats.org/drawingml/2006/main")->xfrm; + $outerShdw = $twoCellAnchor->pic->spPr->children("http://schemas.openxmlformats.org/drawingml/2006/main")->effectLst->outerShdw; + $objDrawing = new PHPExcel_Worksheet_Drawing; + $objDrawing->setName((string) self::array_item($twoCellAnchor->pic->nvPicPr->cNvPr->attributes(), "name")); + $objDrawing->setDescription((string) self::array_item($twoCellAnchor->pic->nvPicPr->cNvPr->attributes(), "descr")); + $objDrawing->setPath("zip://".PHPExcel_Shared_File::realpath($pFilename)."#" . $images[(string) self::array_item($blip->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "embed")], false); + $objDrawing->setCoordinates(PHPExcel_Cell::stringFromColumnIndex((string) $twoCellAnchor->from->col) . ($twoCellAnchor->from->row + 1)); + $objDrawing->setOffsetX(PHPExcel_Shared_Drawing::EMUToPixels($twoCellAnchor->from->colOff)); + $objDrawing->setOffsetY(PHPExcel_Shared_Drawing::EMUToPixels($twoCellAnchor->from->rowOff)); + $objDrawing->setResizeProportional(false); + + $objDrawing->setWidth(PHPExcel_Shared_Drawing::EMUToPixels(self::array_item($xfrm->ext->attributes(), "cx"))); + $objDrawing->setHeight(PHPExcel_Shared_Drawing::EMUToPixels(self::array_item($xfrm->ext->attributes(), "cy"))); + + if ($xfrm) { + $objDrawing->setRotation(PHPExcel_Shared_Drawing::angleToDegrees(self::array_item($xfrm->attributes(), "rot"))); + } + if ($outerShdw) { + $shadow = $objDrawing->getShadow(); + $shadow->setVisible(true); + $shadow->setBlurRadius(PHPExcel_Shared_Drawing::EMUTopixels(self::array_item($outerShdw->attributes(), "blurRad"))); + $shadow->setDistance(PHPExcel_Shared_Drawing::EMUTopixels(self::array_item($outerShdw->attributes(), "dist"))); + $shadow->setDirection(PHPExcel_Shared_Drawing::angleToDegrees(self::array_item($outerShdw->attributes(), "dir"))); + $shadow->setAlignment((string) self::array_item($outerShdw->attributes(), "algn")); + $shadow->getColor()->setRGB(self::array_item($outerShdw->srgbClr->attributes(), "val")); + $shadow->setAlpha(self::array_item($outerShdw->srgbClr->alpha->attributes(), "val") / 1000); + } + $objDrawing->setWorksheet($docSheet); + } elseif(($this->_includeCharts) && ($twoCellAnchor->graphicFrame)) { + $fromCoordinate = PHPExcel_Cell::stringFromColumnIndex((string) $twoCellAnchor->from->col) . ($twoCellAnchor->from->row + 1); + $fromOffsetX = PHPExcel_Shared_Drawing::EMUToPixels($twoCellAnchor->from->colOff); + $fromOffsetY = PHPExcel_Shared_Drawing::EMUToPixels($twoCellAnchor->from->rowOff); + $toCoordinate = PHPExcel_Cell::stringFromColumnIndex((string) $twoCellAnchor->to->col) . ($twoCellAnchor->to->row + 1); + $toOffsetX = PHPExcel_Shared_Drawing::EMUToPixels($twoCellAnchor->to->colOff); + $toOffsetY = PHPExcel_Shared_Drawing::EMUToPixels($twoCellAnchor->to->rowOff); + $graphic = $twoCellAnchor->graphicFrame->children("http://schemas.openxmlformats.org/drawingml/2006/main")->graphic; + $chartRef = $graphic->graphicData->children("http://schemas.openxmlformats.org/drawingml/2006/chart")->chart; + $thisChart = (string) $chartRef->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"); + + $chartDetails[$docSheet->getTitle().'!'.$thisChart] = + array( 'fromCoordinate' => $fromCoordinate, + 'fromOffsetX' => $fromOffsetX, + 'fromOffsetY' => $fromOffsetY, + 'toCoordinate' => $toCoordinate, + 'toOffsetX' => $toOffsetX, + 'toOffsetY' => $toOffsetY, + 'worksheetTitle' => $docSheet->getTitle() + ); + } + } + } + + } + } + } + + // Loop through definedNames + if ($xmlWorkbook->definedNames) { + foreach ($xmlWorkbook->definedNames->definedName as $definedName) { + // Extract range + $extractedRange = (string)$definedName; + $extractedRange = preg_replace('/\'(\w+)\'\!/', '', $extractedRange); + if (($spos = strpos($extractedRange,'!')) !== false) { + $extractedRange = substr($extractedRange,0,$spos).str_replace('$', '', substr($extractedRange,$spos)); + } else { + $extractedRange = str_replace('$', '', $extractedRange); + } + + // Valid range? + if (stripos((string)$definedName, '#REF!') !== FALSE || $extractedRange == '') { + continue; + } + + // Some definedNames are only applicable if we are on the same sheet... + if ((string)$definedName['localSheetId'] != '' && (string)$definedName['localSheetId'] == $sheetId) { + // Switch on type + switch ((string)$definedName['name']) { + + case '_xlnm._FilterDatabase': + if ((string)$definedName['hidden'] !== '1') { + $extractedRange = explode(',', $extractedRange); + foreach ($extractedRange as $range) { + $autoFilterRange = $range; + if (strpos($autoFilterRange, ':') === false) { + $autoFilterRange = "${autoFilterRange}:${autoFilterRange}"; + } + $docSheet->getAutoFilter()->setRange($autoFilterRange); + } + } + break; + + case '_xlnm.Print_Titles': + // Split $extractedRange + $extractedRange = explode(',', $extractedRange); + + // Set print titles + foreach ($extractedRange as $range) { + $matches = array(); + $range = str_replace('$', '', $range); + + // check for repeating columns, e g. 'A:A' or 'A:D' + if (preg_match('/!?([A-Z]+)\:([A-Z]+)$/', $range, $matches)) { + $docSheet->getPageSetup()->setColumnsToRepeatAtLeft(array($matches[1], $matches[2])); + } + // check for repeating rows, e.g. '1:1' or '1:5' + elseif (preg_match('/!?(\d+)\:(\d+)$/', $range, $matches)) { + $docSheet->getPageSetup()->setRowsToRepeatAtTop(array($matches[1], $matches[2])); + } + } + break; + + case '_xlnm.Print_Area': + $rangeSets = explode(',', $extractedRange); // FIXME: what if sheetname contains comma? + $newRangeSets = array(); + foreach($rangeSets as $rangeSet) { + $range = explode('!', $rangeSet); // FIXME: what if sheetname contains exclamation mark? + $rangeSet = isset($range[1]) ? $range[1] : $range[0]; + if (strpos($rangeSet, ':') === FALSE) { + $rangeSet = $rangeSet . ':' . $rangeSet; + } + $newRangeSets[] = str_replace('$', '', $rangeSet); + } + $docSheet->getPageSetup()->setPrintArea(implode(',',$newRangeSets)); + break; + + default: + break; + } + } + } + } + + // Next sheet id + ++$sheetId; + } + + // Loop through definedNames + if ($xmlWorkbook->definedNames) { + foreach ($xmlWorkbook->definedNames->definedName as $definedName) { + // Extract range + $extractedRange = (string)$definedName; + $extractedRange = preg_replace('/\'(\w+)\'\!/', '', $extractedRange); + if (($spos = strpos($extractedRange,'!')) !== false) { + $extractedRange = substr($extractedRange,0,$spos).str_replace('$', '', substr($extractedRange,$spos)); + } else { + $extractedRange = str_replace('$', '', $extractedRange); + } + + // Valid range? + if (stripos((string)$definedName, '#REF!') !== false || $extractedRange == '') { + continue; + } + + // Some definedNames are only applicable if we are on the same sheet... + if ((string)$definedName['localSheetId'] != '') { + // Local defined name + // Switch on type + switch ((string)$definedName['name']) { + + case '_xlnm._FilterDatabase': + case '_xlnm.Print_Titles': + case '_xlnm.Print_Area': + break; + + default: + if ($mapSheetId[(integer) $definedName['localSheetId']] !== null) { + $range = explode('!', (string)$definedName); + if (count($range) == 2) { + $range[0] = str_replace("''", "'", $range[0]); + $range[0] = str_replace("'", "", $range[0]); + if ($worksheet = $docSheet->getParent()->getSheetByName($range[0])) { + $extractedRange = str_replace('$', '', $range[1]); + $scope = $docSheet->getParent()->getSheet($mapSheetId[(integer) $definedName['localSheetId']]); + $excel->addNamedRange( new PHPExcel_NamedRange((string)$definedName['name'], $worksheet, $extractedRange, true, $scope) ); + } + } + } + break; + } + } else if (!isset($definedName['localSheetId'])) { + // "Global" definedNames + $locatedSheet = null; + $extractedSheetName = ''; + if (strpos( (string)$definedName, '!' ) !== false) { + // Extract sheet name + $extractedSheetName = PHPExcel_Worksheet::extractSheetTitle( (string)$definedName, true ); + $extractedSheetName = $extractedSheetName[0]; + + // Locate sheet + $locatedSheet = $excel->getSheetByName($extractedSheetName); + + // Modify range + $range = explode('!', $extractedRange); + $extractedRange = isset($range[1]) ? $range[1] : $range[0]; + } + + if ($locatedSheet !== NULL) { + $excel->addNamedRange( new PHPExcel_NamedRange((string)$definedName['name'], $locatedSheet, $extractedRange, false) ); + } + } + } + } + } + + if ((!$this->_readDataOnly) || (!empty($this->_loadSheetsOnly))) { + // active sheet index + $activeTab = intval($xmlWorkbook->bookViews->workbookView["activeTab"]); // refers to old sheet index + + // keep active sheet index if sheet is still loaded, else first sheet is set as the active + if (isset($mapSheetId[$activeTab]) && $mapSheetId[$activeTab] !== null) { + $excel->setActiveSheetIndex($mapSheetId[$activeTab]); + } else { + if ($excel->getSheetCount() == 0) { + $excel->createSheet(); + } + $excel->setActiveSheetIndex(0); + } + } + break; + } + + } + + + if (!$this->_readDataOnly) { + $contentTypes = simplexml_load_string($this->_getFromZipArchive($zip, "[Content_Types].xml"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + foreach ($contentTypes->Override as $contentType) { + switch ($contentType["ContentType"]) { + case "application/vnd.openxmlformats-officedocument.drawingml.chart+xml": + if ($this->_includeCharts) { + $chartEntryRef = ltrim($contentType['PartName'],'/'); + $chartElements = simplexml_load_string($this->_getFromZipArchive($zip, $chartEntryRef), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + $objChart = PHPExcel_Reader_Excel2007_Chart::readChart($chartElements,basename($chartEntryRef,'.xml')); + +// echo 'Chart ',$chartEntryRef,'
'; +// var_dump($charts[$chartEntryRef]); +// + if (isset($charts[$chartEntryRef])) { + $chartPositionRef = $charts[$chartEntryRef]['sheet'].'!'.$charts[$chartEntryRef]['id']; +// echo 'Position Ref ',$chartPositionRef,'
'; + if (isset($chartDetails[$chartPositionRef])) { +// var_dump($chartDetails[$chartPositionRef]); + + $excel->getSheetByName($charts[$chartEntryRef]['sheet'])->addChart($objChart); + $objChart->setWorksheet($excel->getSheetByName($charts[$chartEntryRef]['sheet'])); + $objChart->setTopLeftPosition( $chartDetails[$chartPositionRef]['fromCoordinate'], + $chartDetails[$chartPositionRef]['fromOffsetX'], + $chartDetails[$chartPositionRef]['fromOffsetY'] + ); + $objChart->setBottomRightPosition( $chartDetails[$chartPositionRef]['toCoordinate'], + $chartDetails[$chartPositionRef]['toOffsetX'], + $chartDetails[$chartPositionRef]['toOffsetY'] + ); + } + } + } + } + } + } + + $zip->close(); + + return $excel; + } + + + private static function _readColor($color, $background=FALSE) { + if (isset($color["rgb"])) { + return (string)$color["rgb"]; + } else if (isset($color["indexed"])) { + return PHPExcel_Style_Color::indexedColor($color["indexed"]-7,$background)->getARGB(); + } else if (isset($color["theme"])) { + if (self::$_theme !== NULL) { + $returnColour = self::$_theme->getColourByIndex((int)$color["theme"]); + if (isset($color["tint"])) { + $tintAdjust = (float) $color["tint"]; + $returnColour = PHPExcel_Style_Color::changeBrightness($returnColour, $tintAdjust); + } + return 'FF'.$returnColour; + } + } + + if ($background) { + return 'FFFFFFFF'; + } + return 'FF000000'; + } + + + private static function _readStyle($docStyle, $style) { + // format code +// if (isset($style->numFmt)) { +// if (isset($style->numFmt['formatCode'])) { +// $docStyle->getNumberFormat()->setFormatCode((string) $style->numFmt['formatCode']); +// } else { + $docStyle->getNumberFormat()->setFormatCode($style->numFmt); +// } +// } + + // font + if (isset($style->font)) { + $docStyle->getFont()->setName((string) $style->font->name["val"]); + $docStyle->getFont()->setSize((string) $style->font->sz["val"]); + if (isset($style->font->b)) { + $docStyle->getFont()->setBold(!isset($style->font->b["val"]) || self::boolean((string) $style->font->b["val"])); + } + if (isset($style->font->i)) { + $docStyle->getFont()->setItalic(!isset($style->font->i["val"]) || self::boolean((string) $style->font->i["val"])); + } + if (isset($style->font->strike)) { + $docStyle->getFont()->setStrikethrough(!isset($style->font->strike["val"]) || self::boolean((string) $style->font->strike["val"])); + } + $docStyle->getFont()->getColor()->setARGB(self::_readColor($style->font->color)); + + if (isset($style->font->u) && !isset($style->font->u["val"])) { + $docStyle->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLE); + } else if (isset($style->font->u) && isset($style->font->u["val"])) { + $docStyle->getFont()->setUnderline((string)$style->font->u["val"]); + } + + if (isset($style->font->vertAlign) && isset($style->font->vertAlign["val"])) { + $vertAlign = strtolower((string)$style->font->vertAlign["val"]); + if ($vertAlign == 'superscript') { + $docStyle->getFont()->setSuperScript(true); + } + if ($vertAlign == 'subscript') { + $docStyle->getFont()->setSubScript(true); + } + } + } + + // fill + if (isset($style->fill)) { + if ($style->fill->gradientFill) { + $gradientFill = $style->fill->gradientFill[0]; + if(!empty($gradientFill["type"])) { + $docStyle->getFill()->setFillType((string) $gradientFill["type"]); + } + $docStyle->getFill()->setRotation(floatval($gradientFill["degree"])); + $gradientFill->registerXPathNamespace("sml", "http://schemas.openxmlformats.org/spreadsheetml/2006/main"); + $docStyle->getFill()->getStartColor()->setARGB(self::_readColor( self::array_item($gradientFill->xpath("sml:stop[@position=0]"))->color) ); + $docStyle->getFill()->getEndColor()->setARGB(self::_readColor( self::array_item($gradientFill->xpath("sml:stop[@position=1]"))->color) ); + } elseif ($style->fill->patternFill) { + $patternType = (string)$style->fill->patternFill["patternType"] != '' ? (string)$style->fill->patternFill["patternType"] : 'solid'; + $docStyle->getFill()->setFillType($patternType); + if ($style->fill->patternFill->fgColor) { + $docStyle->getFill()->getStartColor()->setARGB(self::_readColor($style->fill->patternFill->fgColor,true)); + } else { + $docStyle->getFill()->getStartColor()->setARGB('FF000000'); + } + if ($style->fill->patternFill->bgColor) { + $docStyle->getFill()->getEndColor()->setARGB(self::_readColor($style->fill->patternFill->bgColor,true)); + } + } + } + + // border + if (isset($style->border)) { + $diagonalUp = self::boolean((string) $style->border["diagonalUp"]); + $diagonalDown = self::boolean((string) $style->border["diagonalDown"]); + if (!$diagonalUp && !$diagonalDown) { + $docStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_NONE); + } elseif ($diagonalUp && !$diagonalDown) { + $docStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_UP); + } elseif (!$diagonalUp && $diagonalDown) { + $docStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_DOWN); + } else { + $docStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_BOTH); + } + self::_readBorder($docStyle->getBorders()->getLeft(), $style->border->left); + self::_readBorder($docStyle->getBorders()->getRight(), $style->border->right); + self::_readBorder($docStyle->getBorders()->getTop(), $style->border->top); + self::_readBorder($docStyle->getBorders()->getBottom(), $style->border->bottom); + self::_readBorder($docStyle->getBorders()->getDiagonal(), $style->border->diagonal); + } + + // alignment + if (isset($style->alignment)) { + $docStyle->getAlignment()->setHorizontal((string) $style->alignment["horizontal"]); + $docStyle->getAlignment()->setVertical((string) $style->alignment["vertical"]); + + $textRotation = 0; + if ((int)$style->alignment["textRotation"] <= 90) { + $textRotation = (int)$style->alignment["textRotation"]; + } else if ((int)$style->alignment["textRotation"] > 90) { + $textRotation = 90 - (int)$style->alignment["textRotation"]; + } + + $docStyle->getAlignment()->setTextRotation(intval($textRotation)); + $docStyle->getAlignment()->setWrapText(self::boolean((string) $style->alignment["wrapText"])); + $docStyle->getAlignment()->setShrinkToFit(self::boolean((string) $style->alignment["shrinkToFit"])); + $docStyle->getAlignment()->setIndent( intval((string)$style->alignment["indent"]) > 0 ? intval((string)$style->alignment["indent"]) : 0 ); + $docStyle->getAlignment()->setReadorder( intval((string)$style->alignment["readingOrder"]) > 0 ? intval((string)$style->alignment["readingOrder"]) : 0 ); + } + + // protection + if (isset($style->protection)) { + if (isset($style->protection['locked'])) { + if (self::boolean((string) $style->protection['locked'])) { + $docStyle->getProtection()->setLocked(PHPExcel_Style_Protection::PROTECTION_PROTECTED); + } else { + $docStyle->getProtection()->setLocked(PHPExcel_Style_Protection::PROTECTION_UNPROTECTED); + } + } + + if (isset($style->protection['hidden'])) { + if (self::boolean((string) $style->protection['hidden'])) { + $docStyle->getProtection()->setHidden(PHPExcel_Style_Protection::PROTECTION_PROTECTED); + } else { + $docStyle->getProtection()->setHidden(PHPExcel_Style_Protection::PROTECTION_UNPROTECTED); + } + } + } + + // top-level style settings + if (isset($style->quotePrefix)) { + $docStyle->setQuotePrefix($style->quotePrefix); + } + } + + + private static function _readBorder($docBorder, $eleBorder) { + if (isset($eleBorder["style"])) { + $docBorder->setBorderStyle((string) $eleBorder["style"]); + } + if (isset($eleBorder->color)) { + $docBorder->getColor()->setARGB(self::_readColor($eleBorder->color)); + } + } + + + private function _parseRichText($is = null) { + $value = new PHPExcel_RichText(); + + if (isset($is->t)) { + $value->createText( PHPExcel_Shared_String::ControlCharacterOOXML2PHP( (string) $is->t ) ); + } else { + foreach ($is->r as $run) { + if (!isset($run->rPr)) { + $objText = $value->createText( PHPExcel_Shared_String::ControlCharacterOOXML2PHP( (string) $run->t ) ); + + } else { + $objText = $value->createTextRun( PHPExcel_Shared_String::ControlCharacterOOXML2PHP( (string) $run->t ) ); + + if (isset($run->rPr->rFont["val"])) { + $objText->getFont()->setName((string) $run->rPr->rFont["val"]); + } + + if (isset($run->rPr->sz["val"])) { + $objText->getFont()->setSize((string) $run->rPr->sz["val"]); + } + + if (isset($run->rPr->color)) { + $objText->getFont()->setColor( new PHPExcel_Style_Color( self::_readColor($run->rPr->color) ) ); + } + + if ((isset($run->rPr->b["val"]) && self::boolean((string) $run->rPr->b["val"])) || + (isset($run->rPr->b) && !isset($run->rPr->b["val"]))) { + $objText->getFont()->setBold(TRUE); + } + + if ((isset($run->rPr->i["val"]) && self::boolean((string) $run->rPr->i["val"])) || + (isset($run->rPr->i) && !isset($run->rPr->i["val"]))) { + $objText->getFont()->setItalic(TRUE); + } + + if (isset($run->rPr->vertAlign) && isset($run->rPr->vertAlign["val"])) { + $vertAlign = strtolower((string)$run->rPr->vertAlign["val"]); + if ($vertAlign == 'superscript') { + $objText->getFont()->setSuperScript(TRUE); + } + if ($vertAlign == 'subscript') { + $objText->getFont()->setSubScript(TRUE); + } + } + + if (isset($run->rPr->u) && !isset($run->rPr->u["val"])) { + $objText->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLE); + } else if (isset($run->rPr->u) && isset($run->rPr->u["val"])) { + $objText->getFont()->setUnderline((string)$run->rPr->u["val"]); + } + + if ((isset($run->rPr->strike["val"]) && self::boolean((string) $run->rPr->strike["val"])) || + (isset($run->rPr->strike) && !isset($run->rPr->strike["val"]))) { + $objText->getFont()->setStrikethrough(TRUE); + } + } + } + } + + return $value; + } + + private function _readRibbon($excel, $customUITarget, $zip) + { + $baseDir = dirname($customUITarget); + $nameCustomUI = basename($customUITarget); + // get the xml file (ribbon) + $localRibbon = $this->_getFromZipArchive($zip, $customUITarget); + $customUIImagesNames = array(); + $customUIImagesBinaries = array(); + // something like customUI/_rels/customUI.xml.rels + $pathRels = $baseDir . '/_rels/' . $nameCustomUI . '.rels'; + $dataRels = $this->_getFromZipArchive($zip, $pathRels); + if ($dataRels) { + // exists and not empty if the ribbon have some pictures (other than internal MSO) + $UIRels = simplexml_load_string($dataRels, 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + if ($UIRels) { + // we need to save id and target to avoid parsing customUI.xml and "guess" if it's a pseudo callback who load the image + foreach ($UIRels->Relationship as $ele) { + if ($ele["Type"] == 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image') { + // an image ? + $customUIImagesNames[(string) $ele['Id']] = (string)$ele['Target']; + $customUIImagesBinaries[(string)$ele['Target']] = $this->_getFromZipArchive($zip, $baseDir . '/' . (string) $ele['Target']); + } + } + } + } + if ($localRibbon) { + $excel->setRibbonXMLData($customUITarget, $localRibbon); + if (count($customUIImagesNames) > 0 && count($customUIImagesBinaries) > 0) { + $excel->setRibbonBinObjects($customUIImagesNames, $customUIImagesBinaries); + } else { + $excel->setRibbonBinObjects(NULL); + } + } else { + $excel->setRibbonXMLData(NULL); + $excel->setRibbonBinObjects(NULL); + } + } + + private static function array_item($array, $key = 0) { + return (isset($array[$key]) ? $array[$key] : null); + } + + + private static function dir_add($base, $add) { + return preg_replace('~[^/]+/\.\./~', '', dirname($base) . "/$add"); + } + + + private static function toCSSArray($style) { + $style = str_replace(array("\r","\n"), "", $style); + + $temp = explode(';', $style); + $style = array(); + foreach ($temp as $item) { + $item = explode(':', $item); + + if (strpos($item[1], 'px') !== false) { + $item[1] = str_replace('px', '', $item[1]); + } + if (strpos($item[1], 'pt') !== false) { + $item[1] = str_replace('pt', '', $item[1]); + $item[1] = PHPExcel_Shared_Font::fontSizeToPixels($item[1]); + } + if (strpos($item[1], 'in') !== false) { + $item[1] = str_replace('in', '', $item[1]); + $item[1] = PHPExcel_Shared_Font::inchSizeToPixels($item[1]); + } + if (strpos($item[1], 'cm') !== false) { + $item[1] = str_replace('cm', '', $item[1]); + $item[1] = PHPExcel_Shared_Font::centimeterSizeToPixels($item[1]); + } + + $style[$item[0]] = $item[1]; + } + + return $style; + } + + private static function boolean($value = NULL) + { + if (is_object($value)) { + $value = (string) $value; + } + if (is_numeric($value)) { + return (bool) $value; + } + return ($value === 'true' || $value === 'TRUE'); + } +} diff --git a/admin/helpers/PHPExcel/Reader/Excel2007/Chart.php b/admin/helpers/PHPExcel/Reader/Excel2007/Chart.php new file mode 100644 index 00000000..1424276c --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/Excel2007/Chart.php @@ -0,0 +1,517 @@ +attributes(); + if (isset($attributes[$name])) { + if ($format == 'string') { + return (string) $attributes[$name]; + } elseif ($format == 'integer') { + return (integer) $attributes[$name]; + } elseif ($format == 'boolean') { + return (boolean) ($attributes[$name] === '0' || $attributes[$name] !== 'true') ? false : true; + } else { + return (float) $attributes[$name]; + } + } + return null; + } // function _getAttribute() + + + private static function _readColor($color,$background=false) { + if (isset($color["rgb"])) { + return (string)$color["rgb"]; + } else if (isset($color["indexed"])) { + return PHPExcel_Style_Color::indexedColor($color["indexed"]-7,$background)->getARGB(); + } + } + + + public static function readChart($chartElements,$chartName) { + $namespacesChartMeta = $chartElements->getNamespaces(true); + $chartElementsC = $chartElements->children($namespacesChartMeta['c']); + + $XaxisLabel = $YaxisLabel = $legend = $title = NULL; + $dispBlanksAs = $plotVisOnly = NULL; + + foreach($chartElementsC as $chartElementKey => $chartElement) { + switch ($chartElementKey) { + case "chart": + foreach($chartElement as $chartDetailsKey => $chartDetails) { + $chartDetailsC = $chartDetails->children($namespacesChartMeta['c']); + switch ($chartDetailsKey) { + case "plotArea": + $plotAreaLayout = $XaxisLable = $YaxisLable = null; + $plotSeries = $plotAttributes = array(); + foreach($chartDetails as $chartDetailKey => $chartDetail) { + switch ($chartDetailKey) { + case "layout": + $plotAreaLayout = self::_chartLayoutDetails($chartDetail,$namespacesChartMeta,'plotArea'); + break; + case "catAx": + if (isset($chartDetail->title)) { + $XaxisLabel = self::_chartTitle($chartDetail->title->children($namespacesChartMeta['c']),$namespacesChartMeta,'cat'); + } + break; + case "dateAx": + if (isset($chartDetail->title)) { + $XaxisLabel = self::_chartTitle($chartDetail->title->children($namespacesChartMeta['c']),$namespacesChartMeta,'cat'); + } + break; + case "valAx": + if (isset($chartDetail->title)) { + $YaxisLabel = self::_chartTitle($chartDetail->title->children($namespacesChartMeta['c']),$namespacesChartMeta,'cat'); + } + break; + case "barChart": + case "bar3DChart": + $barDirection = self::_getAttribute($chartDetail->barDir, 'val', 'string'); + $plotSer = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey); + $plotSer->setPlotDirection($barDirection); + $plotSeries[] = $plotSer; + $plotAttributes = self::_readChartAttributes($chartDetail); + break; + case "lineChart": + case "line3DChart": + $plotSeries[] = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey); + $plotAttributes = self::_readChartAttributes($chartDetail); + break; + case "areaChart": + case "area3DChart": + $plotSeries[] = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey); + $plotAttributes = self::_readChartAttributes($chartDetail); + break; + case "doughnutChart": + case "pieChart": + case "pie3DChart": + $explosion = isset($chartDetail->ser->explosion); + $plotSer = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey); + $plotSer->setPlotStyle($explosion); + $plotSeries[] = $plotSer; + $plotAttributes = self::_readChartAttributes($chartDetail); + break; + case "scatterChart": + $scatterStyle = self::_getAttribute($chartDetail->scatterStyle, 'val', 'string'); + $plotSer = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey); + $plotSer->setPlotStyle($scatterStyle); + $plotSeries[] = $plotSer; + $plotAttributes = self::_readChartAttributes($chartDetail); + break; + case "bubbleChart": + $bubbleScale = self::_getAttribute($chartDetail->bubbleScale, 'val', 'integer'); + $plotSer = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey); + $plotSer->setPlotStyle($bubbleScale); + $plotSeries[] = $plotSer; + $plotAttributes = self::_readChartAttributes($chartDetail); + break; + case "radarChart": + $radarStyle = self::_getAttribute($chartDetail->radarStyle, 'val', 'string'); + $plotSer = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey); + $plotSer->setPlotStyle($radarStyle); + $plotSeries[] = $plotSer; + $plotAttributes = self::_readChartAttributes($chartDetail); + break; + case "surfaceChart": + case "surface3DChart": + $wireFrame = self::_getAttribute($chartDetail->wireframe, 'val', 'boolean'); + $plotSer = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey); + $plotSer->setPlotStyle($wireFrame); + $plotSeries[] = $plotSer; + $plotAttributes = self::_readChartAttributes($chartDetail); + break; + case "stockChart": + $plotSeries[] = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey); + $plotAttributes = self::_readChartAttributes($plotAreaLayout); + break; + } + } + if ($plotAreaLayout == NULL) { + $plotAreaLayout = new PHPExcel_Chart_Layout(); + } + $plotArea = new PHPExcel_Chart_PlotArea($plotAreaLayout,$plotSeries); + self::_setChartAttributes($plotAreaLayout,$plotAttributes); + break; + case "plotVisOnly": + $plotVisOnly = self::_getAttribute($chartDetails, 'val', 'string'); + break; + case "dispBlanksAs": + $dispBlanksAs = self::_getAttribute($chartDetails, 'val', 'string'); + break; + case "title": + $title = self::_chartTitle($chartDetails,$namespacesChartMeta,'title'); + break; + case "legend": + $legendPos = 'r'; + $legendLayout = null; + $legendOverlay = false; + foreach($chartDetails as $chartDetailKey => $chartDetail) { + switch ($chartDetailKey) { + case "legendPos": + $legendPos = self::_getAttribute($chartDetail, 'val', 'string'); + break; + case "overlay": + $legendOverlay = self::_getAttribute($chartDetail, 'val', 'boolean'); + break; + case "layout": + $legendLayout = self::_chartLayoutDetails($chartDetail,$namespacesChartMeta,'legend'); + break; + } + } + $legend = new PHPExcel_Chart_Legend($legendPos, $legendLayout, $legendOverlay); + break; + } + } + } + } + $chart = new PHPExcel_Chart($chartName,$title,$legend,$plotArea,$plotVisOnly,$dispBlanksAs,$XaxisLabel,$YaxisLabel); + + return $chart; + } // function readChart() + + + private static function _chartTitle($titleDetails,$namespacesChartMeta,$type) { + $caption = array(); + $titleLayout = null; + foreach($titleDetails as $titleDetailKey => $chartDetail) { + switch ($titleDetailKey) { + case "tx": + $titleDetails = $chartDetail->rich->children($namespacesChartMeta['a']); + foreach($titleDetails as $titleKey => $titleDetail) { + switch ($titleKey) { + case "p": + $titleDetailPart = $titleDetail->children($namespacesChartMeta['a']); + $caption[] = self::_parseRichText($titleDetailPart); + } + } + break; + case "layout": + $titleLayout = self::_chartLayoutDetails($chartDetail,$namespacesChartMeta); + break; + } + } + + return new PHPExcel_Chart_Title($caption, $titleLayout); + } // function _chartTitle() + + + private static function _chartLayoutDetails($chartDetail,$namespacesChartMeta) { + if (!isset($chartDetail->manualLayout)) { + return null; + } + $details = $chartDetail->manualLayout->children($namespacesChartMeta['c']); + if (is_null($details)) { + return null; + } + $layout = array(); + foreach($details as $detailKey => $detail) { +// echo $detailKey,' => ',self::_getAttribute($detail, 'val', 'string'),PHP_EOL; + $layout[$detailKey] = self::_getAttribute($detail, 'val', 'string'); + } + return new PHPExcel_Chart_Layout($layout); + } // function _chartLayoutDetails() + + + private static function _chartDataSeries($chartDetail,$namespacesChartMeta,$plotType) { + $multiSeriesType = NULL; + $smoothLine = false; + $seriesLabel = $seriesCategory = $seriesValues = $plotOrder = array(); + + $seriesDetailSet = $chartDetail->children($namespacesChartMeta['c']); + foreach($seriesDetailSet as $seriesDetailKey => $seriesDetails) { + switch ($seriesDetailKey) { + case "grouping": + $multiSeriesType = self::_getAttribute($chartDetail->grouping, 'val', 'string'); + break; + case "ser": + $marker = NULL; + foreach($seriesDetails as $seriesKey => $seriesDetail) { + switch ($seriesKey) { + case "idx": + $seriesIndex = self::_getAttribute($seriesDetail, 'val', 'integer'); + break; + case "order": + $seriesOrder = self::_getAttribute($seriesDetail, 'val', 'integer'); + $plotOrder[$seriesIndex] = $seriesOrder; + break; + case "tx": + $seriesLabel[$seriesIndex] = self::_chartDataSeriesValueSet($seriesDetail,$namespacesChartMeta); + break; + case "marker": + $marker = self::_getAttribute($seriesDetail->symbol, 'val', 'string'); + break; + case "smooth": + $smoothLine = self::_getAttribute($seriesDetail, 'val', 'boolean'); + break; + case "cat": + $seriesCategory[$seriesIndex] = self::_chartDataSeriesValueSet($seriesDetail,$namespacesChartMeta); + break; + case "val": + $seriesValues[$seriesIndex] = self::_chartDataSeriesValueSet($seriesDetail,$namespacesChartMeta,$marker); + break; + case "xVal": + $seriesCategory[$seriesIndex] = self::_chartDataSeriesValueSet($seriesDetail,$namespacesChartMeta,$marker); + break; + case "yVal": + $seriesValues[$seriesIndex] = self::_chartDataSeriesValueSet($seriesDetail,$namespacesChartMeta,$marker); + break; + } + } + } + } + return new PHPExcel_Chart_DataSeries($plotType,$multiSeriesType,$plotOrder,$seriesLabel,$seriesCategory,$seriesValues,$smoothLine); + } // function _chartDataSeries() + + + private static function _chartDataSeriesValueSet($seriesDetail, $namespacesChartMeta, $marker = null, $smoothLine = false) { + if (isset($seriesDetail->strRef)) { + $seriesSource = (string) $seriesDetail->strRef->f; + $seriesData = self::_chartDataSeriesValues($seriesDetail->strRef->strCache->children($namespacesChartMeta['c']),'s'); + + return new PHPExcel_Chart_DataSeriesValues('String',$seriesSource,$seriesData['formatCode'],$seriesData['pointCount'],$seriesData['dataValues'],$marker,$smoothLine); + } elseif (isset($seriesDetail->numRef)) { + $seriesSource = (string) $seriesDetail->numRef->f; + $seriesData = self::_chartDataSeriesValues($seriesDetail->numRef->numCache->children($namespacesChartMeta['c'])); + + return new PHPExcel_Chart_DataSeriesValues('Number',$seriesSource,$seriesData['formatCode'],$seriesData['pointCount'],$seriesData['dataValues'],$marker,$smoothLine); + } elseif (isset($seriesDetail->multiLvlStrRef)) { + $seriesSource = (string) $seriesDetail->multiLvlStrRef->f; + $seriesData = self::_chartDataSeriesValuesMultiLevel($seriesDetail->multiLvlStrRef->multiLvlStrCache->children($namespacesChartMeta['c']),'s'); + $seriesData['pointCount'] = count($seriesData['dataValues']); + + return new PHPExcel_Chart_DataSeriesValues('String',$seriesSource,$seriesData['formatCode'],$seriesData['pointCount'],$seriesData['dataValues'],$marker,$smoothLine); + } elseif (isset($seriesDetail->multiLvlNumRef)) { + $seriesSource = (string) $seriesDetail->multiLvlNumRef->f; + $seriesData = self::_chartDataSeriesValuesMultiLevel($seriesDetail->multiLvlNumRef->multiLvlNumCache->children($namespacesChartMeta['c']),'s'); + $seriesData['pointCount'] = count($seriesData['dataValues']); + + return new PHPExcel_Chart_DataSeriesValues('String',$seriesSource,$seriesData['formatCode'],$seriesData['pointCount'],$seriesData['dataValues'],$marker,$smoothLine); + } + return null; + } // function _chartDataSeriesValueSet() + + + private static function _chartDataSeriesValues($seriesValueSet,$dataType='n') { + $seriesVal = array(); + $formatCode = ''; + $pointCount = 0; + + foreach($seriesValueSet as $seriesValueIdx => $seriesValue) { + switch ($seriesValueIdx) { + case 'ptCount': + $pointCount = self::_getAttribute($seriesValue, 'val', 'integer'); + break; + case 'formatCode': + $formatCode = (string) $seriesValue; + break; + case 'pt': + $pointVal = self::_getAttribute($seriesValue, 'idx', 'integer'); + if ($dataType == 's') { + $seriesVal[$pointVal] = (string) $seriesValue->v; + } else { + $seriesVal[$pointVal] = (float) $seriesValue->v; + } + break; + } + } + + if (empty($seriesVal)) { + $seriesVal = NULL; + } + + return array( 'formatCode' => $formatCode, + 'pointCount' => $pointCount, + 'dataValues' => $seriesVal + ); + } // function _chartDataSeriesValues() + + + private static function _chartDataSeriesValuesMultiLevel($seriesValueSet,$dataType='n') { + $seriesVal = array(); + $formatCode = ''; + $pointCount = 0; + + foreach($seriesValueSet->lvl as $seriesLevelIdx => $seriesLevel) { + foreach($seriesLevel as $seriesValueIdx => $seriesValue) { + switch ($seriesValueIdx) { + case 'ptCount': + $pointCount = self::_getAttribute($seriesValue, 'val', 'integer'); + break; + case 'formatCode': + $formatCode = (string) $seriesValue; + break; + case 'pt': + $pointVal = self::_getAttribute($seriesValue, 'idx', 'integer'); + if ($dataType == 's') { + $seriesVal[$pointVal][] = (string) $seriesValue->v; + } else { + $seriesVal[$pointVal][] = (float) $seriesValue->v; + } + break; + } + } + } + + return array( 'formatCode' => $formatCode, + 'pointCount' => $pointCount, + 'dataValues' => $seriesVal + ); + } // function _chartDataSeriesValuesMultiLevel() + + private static function _parseRichText($titleDetailPart = null) { + $value = new PHPExcel_RichText(); + + foreach($titleDetailPart as $titleDetailElementKey => $titleDetailElement) { + if (isset($titleDetailElement->t)) { + $objText = $value->createTextRun( (string) $titleDetailElement->t ); + } + if (isset($titleDetailElement->rPr)) { + if (isset($titleDetailElement->rPr->rFont["val"])) { + $objText->getFont()->setName((string) $titleDetailElement->rPr->rFont["val"]); + } + + $fontSize = (self::_getAttribute($titleDetailElement->rPr, 'sz', 'integer')); + if (!is_null($fontSize)) { + $objText->getFont()->setSize(floor($fontSize / 100)); + } + + $fontColor = (self::_getAttribute($titleDetailElement->rPr, 'color', 'string')); + if (!is_null($fontColor)) { + $objText->getFont()->setColor( new PHPExcel_Style_Color( self::_readColor($fontColor) ) ); + } + + $bold = self::_getAttribute($titleDetailElement->rPr, 'b', 'boolean'); + if (!is_null($bold)) { + $objText->getFont()->setBold($bold); + } + + $italic = self::_getAttribute($titleDetailElement->rPr, 'i', 'boolean'); + if (!is_null($italic)) { + $objText->getFont()->setItalic($italic); + } + + $baseline = self::_getAttribute($titleDetailElement->rPr, 'baseline', 'integer'); + if (!is_null($baseline)) { + if ($baseline > 0) { + $objText->getFont()->setSuperScript(true); + } elseif($baseline < 0) { + $objText->getFont()->setSubScript(true); + } + } + + $underscore = (self::_getAttribute($titleDetailElement->rPr, 'u', 'string')); + if (!is_null($underscore)) { + if ($underscore == 'sng') { + $objText->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLE); + } elseif($underscore == 'dbl') { + $objText->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_DOUBLE); + } else { + $objText->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_NONE); + } + } + + $strikethrough = (self::_getAttribute($titleDetailElement->rPr, 's', 'string')); + if (!is_null($strikethrough)) { + if ($strikethrough == 'noStrike') { + $objText->getFont()->setStrikethrough(false); + } else { + $objText->getFont()->setStrikethrough(true); + } + } + } + } + + return $value; + } + + private static function _readChartAttributes($chartDetail) { + $plotAttributes = array(); + if (isset($chartDetail->dLbls)) { + if (isset($chartDetail->dLbls->howLegendKey)) { + $plotAttributes['showLegendKey'] = self::_getAttribute($chartDetail->dLbls->showLegendKey, 'val', 'string'); + } + if (isset($chartDetail->dLbls->showVal)) { + $plotAttributes['showVal'] = self::_getAttribute($chartDetail->dLbls->showVal, 'val', 'string'); + } + if (isset($chartDetail->dLbls->showCatName)) { + $plotAttributes['showCatName'] = self::_getAttribute($chartDetail->dLbls->showCatName, 'val', 'string'); + } + if (isset($chartDetail->dLbls->showSerName)) { + $plotAttributes['showSerName'] = self::_getAttribute($chartDetail->dLbls->showSerName, 'val', 'string'); + } + if (isset($chartDetail->dLbls->showPercent)) { + $plotAttributes['showPercent'] = self::_getAttribute($chartDetail->dLbls->showPercent, 'val', 'string'); + } + if (isset($chartDetail->dLbls->showBubbleSize)) { + $plotAttributes['showBubbleSize'] = self::_getAttribute($chartDetail->dLbls->showBubbleSize, 'val', 'string'); + } + if (isset($chartDetail->dLbls->showLeaderLines)) { + $plotAttributes['showLeaderLines'] = self::_getAttribute($chartDetail->dLbls->showLeaderLines, 'val', 'string'); + } + } + + return $plotAttributes; + } + + private static function _setChartAttributes($plotArea,$plotAttributes) + { + foreach($plotAttributes as $plotAttributeKey => $plotAttributeValue) { + switch($plotAttributeKey) { + case 'showLegendKey' : + $plotArea->setShowLegendKey($plotAttributeValue); + break; + case 'showVal' : + $plotArea->setShowVal($plotAttributeValue); + break; + case 'showCatName' : + $plotArea->setShowCatName($plotAttributeValue); + break; + case 'showSerName' : + $plotArea->setShowSerName($plotAttributeValue); + break; + case 'showPercent' : + $plotArea->setShowPercent($plotAttributeValue); + break; + case 'showBubbleSize' : + $plotArea->setShowBubbleSize($plotAttributeValue); + break; + case 'showLeaderLines' : + $plotArea->setShowLeaderLines($plotAttributeValue); + break; + } + } + } + +} diff --git a/admin/helpers/PHPExcel/Reader/Excel2007/Theme.php b/admin/helpers/PHPExcel/Reader/Excel2007/Theme.php new file mode 100644 index 00000000..a371c620 --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/Excel2007/Theme.php @@ -0,0 +1,124 @@ +_themeName = $themeName; + $this->_colourSchemeName = $colourSchemeName; + $this->_colourMap = $colourMap; + } + + /** + * Get Theme Name + * + * @return string + */ + public function getThemeName() + { + return $this->_themeName; + } + + /** + * Get colour Scheme Name + * + * @return string + */ + public function getColourSchemeName() { + return $this->_colourSchemeName; + } + + /** + * Get colour Map Value by Position + * + * @return string + */ + public function getColourByIndex($index=0) { + if (isset($this->_colourMap[$index])) { + return $this->_colourMap[$index]; + } + return null; + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if ((is_object($value)) && ($key != '_parent')) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Reader/Excel2007/index.html b/admin/helpers/PHPExcel/Reader/Excel2007/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/Excel2007/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Reader/Excel5.php b/admin/helpers/PHPExcel/Reader/Excel5.php new file mode 100644 index 00000000..f2893ece --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/Excel5.php @@ -0,0 +1,7088 @@ +_data + * + * @var int + */ + private $_dataSize; + + /** + * Current position in stream + * + * @var integer + */ + private $_pos; + + /** + * Workbook to be returned by the reader. + * + * @var PHPExcel + */ + private $_phpExcel; + + /** + * Worksheet that is currently being built by the reader. + * + * @var PHPExcel_Worksheet + */ + private $_phpSheet; + + /** + * BIFF version + * + * @var int + */ + private $_version; + + /** + * Codepage set in the Excel file being read. Only important for BIFF5 (Excel 5.0 - Excel 95) + * For BIFF8 (Excel 97 - Excel 2003) this will always have the value 'UTF-16LE' + * + * @var string + */ + private $_codepage; + + /** + * Shared formats + * + * @var array + */ + private $_formats; + + /** + * Shared fonts + * + * @var array + */ + private $_objFonts; + + /** + * Color palette + * + * @var array + */ + private $_palette; + + /** + * Worksheets + * + * @var array + */ + private $_sheets; + + /** + * External books + * + * @var array + */ + private $_externalBooks; + + /** + * REF structures. Only applies to BIFF8. + * + * @var array + */ + private $_ref; + + /** + * External names + * + * @var array + */ + private $_externalNames; + + /** + * Defined names + * + * @var array + */ + private $_definedname; + + /** + * Shared strings. Only applies to BIFF8. + * + * @var array + */ + private $_sst; + + /** + * Panes are frozen? (in sheet currently being read). See WINDOW2 record. + * + * @var boolean + */ + private $_frozen; + + /** + * Fit printout to number of pages? (in sheet currently being read). See SHEETPR record. + * + * @var boolean + */ + private $_isFitToPages; + + /** + * Objects. One OBJ record contributes with one entry. + * + * @var array + */ + private $_objs; + + /** + * Text Objects. One TXO record corresponds with one entry. + * + * @var array + */ + private $_textObjects; + + /** + * Cell Annotations (BIFF8) + * + * @var array + */ + private $_cellNotes; + + /** + * The combined MSODRAWINGGROUP data + * + * @var string + */ + private $_drawingGroupData; + + /** + * The combined MSODRAWING data (per sheet) + * + * @var string + */ + private $_drawingData; + + /** + * Keep track of XF index + * + * @var int + */ + private $_xfIndex; + + /** + * Mapping of XF index (that is a cell XF) to final index in cellXf collection + * + * @var array + */ + private $_mapCellXfIndex; + + /** + * Mapping of XF index (that is a style XF) to final index in cellStyleXf collection + * + * @var array + */ + private $_mapCellStyleXfIndex; + + /** + * The shared formulas in a sheet. One SHAREDFMLA record contributes with one value. + * + * @var array + */ + private $_sharedFormulas; + + /** + * The shared formula parts in a sheet. One FORMULA record contributes with one value if it + * refers to a shared formula. + * + * @var array + */ + private $_sharedFormulaParts; + + /** + * The type of encryption in use + * + * @var int + */ + private $_encryption = 0; + + /** + * The position in the stream after which contents are encrypted + * + * @var int + */ + private $_encryptionStartPos = false; + + /** + * The current RC4 decryption object + * + * @var PHPExcel_Reader_Excel5_RC4 + */ + private $_rc4Key = null; + + /** + * The position in the stream that the RC4 decryption object was left at + * + * @var int + */ + private $_rc4Pos = 0; + + /** + * The current MD5 context state + * + * @var string + */ + private $_md5Ctxt = null; + + /** + * Create a new PHPExcel_Reader_Excel5 instance + */ + public function __construct() { + $this->_readFilter = new PHPExcel_Reader_DefaultReadFilter(); + } + + + /** + * Can the current PHPExcel_Reader_IReader read the file? + * + * @param string $pFilename + * @return boolean + * @throws PHPExcel_Reader_Exception + */ + public function canRead($pFilename) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + try { + // Use ParseXL for the hard work. + $ole = new PHPExcel_Shared_OLERead(); + + // get excel data + $res = $ole->read($pFilename); + return true; + } catch (PHPExcel_Exception $e) { + return false; + } + } + + + /** + * Reads names of the worksheets from a file, without parsing the whole file to a PHPExcel object + * + * @param string $pFilename + * @throws PHPExcel_Reader_Exception + */ + public function listWorksheetNames($pFilename) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + $worksheetNames = array(); + + // Read the OLE file + $this->_loadOLE($pFilename); + + // total byte size of Excel data (workbook global substream + sheet substreams) + $this->_dataSize = strlen($this->_data); + + $this->_pos = 0; + $this->_sheets = array(); + + // Parse Workbook Global Substream + while ($this->_pos < $this->_dataSize) { + $code = self::_GetInt2d($this->_data, $this->_pos); + + switch ($code) { + case self::XLS_Type_BOF: $this->_readBof(); break; + case self::XLS_Type_SHEET: $this->_readSheet(); break; + case self::XLS_Type_EOF: $this->_readDefault(); break 2; + default: $this->_readDefault(); break; + } + } + + foreach ($this->_sheets as $sheet) { + if ($sheet['sheetType'] != 0x00) { + // 0x00: Worksheet, 0x02: Chart, 0x06: Visual Basic module + continue; + } + + $worksheetNames[] = $sheet['name']; + } + + return $worksheetNames; + } + + + /** + * Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) + * + * @param string $pFilename + * @throws PHPExcel_Reader_Exception + */ + public function listWorksheetInfo($pFilename) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + $worksheetInfo = array(); + + // Read the OLE file + $this->_loadOLE($pFilename); + + // total byte size of Excel data (workbook global substream + sheet substreams) + $this->_dataSize = strlen($this->_data); + + // initialize + $this->_pos = 0; + $this->_sheets = array(); + + // Parse Workbook Global Substream + while ($this->_pos < $this->_dataSize) { + $code = self::_GetInt2d($this->_data, $this->_pos); + + switch ($code) { + case self::XLS_Type_BOF: $this->_readBof(); break; + case self::XLS_Type_SHEET: $this->_readSheet(); break; + case self::XLS_Type_EOF: $this->_readDefault(); break 2; + default: $this->_readDefault(); break; + } + } + + // Parse the individual sheets + foreach ($this->_sheets as $sheet) { + + if ($sheet['sheetType'] != 0x00) { + // 0x00: Worksheet + // 0x02: Chart + // 0x06: Visual Basic module + continue; + } + + $tmpInfo = array(); + $tmpInfo['worksheetName'] = $sheet['name']; + $tmpInfo['lastColumnLetter'] = 'A'; + $tmpInfo['lastColumnIndex'] = 0; + $tmpInfo['totalRows'] = 0; + $tmpInfo['totalColumns'] = 0; + + $this->_pos = $sheet['offset']; + + while ($this->_pos <= $this->_dataSize - 4) { + $code = self::_GetInt2d($this->_data, $this->_pos); + + switch ($code) { + case self::XLS_Type_RK: + case self::XLS_Type_LABELSST: + case self::XLS_Type_NUMBER: + case self::XLS_Type_FORMULA: + case self::XLS_Type_BOOLERR: + case self::XLS_Type_LABEL: + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + $rowIndex = self::_GetInt2d($recordData, 0) + 1; + $columnIndex = self::_GetInt2d($recordData, 2); + + $tmpInfo['totalRows'] = max($tmpInfo['totalRows'], $rowIndex); + $tmpInfo['lastColumnIndex'] = max($tmpInfo['lastColumnIndex'], $columnIndex); + break; + case self::XLS_Type_BOF: $this->_readBof(); break; + case self::XLS_Type_EOF: $this->_readDefault(); break 2; + default: $this->_readDefault(); break; + } + } + + $tmpInfo['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($tmpInfo['lastColumnIndex']); + $tmpInfo['totalColumns'] = $tmpInfo['lastColumnIndex'] + 1; + + $worksheetInfo[] = $tmpInfo; + } + + return $worksheetInfo; + } + + + /** + * Loads PHPExcel from file + * + * @param string $pFilename + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public function load($pFilename) + { + // Read the OLE file + $this->_loadOLE($pFilename); + + // Initialisations + $this->_phpExcel = new PHPExcel; + $this->_phpExcel->removeSheetByIndex(0); // remove 1st sheet + if (!$this->_readDataOnly) { + $this->_phpExcel->removeCellStyleXfByIndex(0); // remove the default style + $this->_phpExcel->removeCellXfByIndex(0); // remove the default style + } + + // Read the summary information stream (containing meta data) + $this->_readSummaryInformation(); + + // Read the Additional document summary information stream (containing application-specific meta data) + $this->_readDocumentSummaryInformation(); + + // total byte size of Excel data (workbook global substream + sheet substreams) + $this->_dataSize = strlen($this->_data); + + // initialize + $this->_pos = 0; + $this->_codepage = 'CP1252'; + $this->_formats = array(); + $this->_objFonts = array(); + $this->_palette = array(); + $this->_sheets = array(); + $this->_externalBooks = array(); + $this->_ref = array(); + $this->_definedname = array(); + $this->_sst = array(); + $this->_drawingGroupData = ''; + $this->_xfIndex = ''; + $this->_mapCellXfIndex = array(); + $this->_mapCellStyleXfIndex = array(); + + // Parse Workbook Global Substream + while ($this->_pos < $this->_dataSize) { + $code = self::_GetInt2d($this->_data, $this->_pos); + + switch ($code) { + case self::XLS_Type_BOF: $this->_readBof(); break; + case self::XLS_Type_FILEPASS: $this->_readFilepass(); break; + case self::XLS_Type_CODEPAGE: $this->_readCodepage(); break; + case self::XLS_Type_DATEMODE: $this->_readDateMode(); break; + case self::XLS_Type_FONT: $this->_readFont(); break; + case self::XLS_Type_FORMAT: $this->_readFormat(); break; + case self::XLS_Type_XF: $this->_readXf(); break; + case self::XLS_Type_XFEXT: $this->_readXfExt(); break; + case self::XLS_Type_STYLE: $this->_readStyle(); break; + case self::XLS_Type_PALETTE: $this->_readPalette(); break; + case self::XLS_Type_SHEET: $this->_readSheet(); break; + case self::XLS_Type_EXTERNALBOOK: $this->_readExternalBook(); break; + case self::XLS_Type_EXTERNNAME: $this->_readExternName(); break; + case self::XLS_Type_EXTERNSHEET: $this->_readExternSheet(); break; + case self::XLS_Type_DEFINEDNAME: $this->_readDefinedName(); break; + case self::XLS_Type_MSODRAWINGGROUP: $this->_readMsoDrawingGroup(); break; + case self::XLS_Type_SST: $this->_readSst(); break; + case self::XLS_Type_EOF: $this->_readDefault(); break 2; + default: $this->_readDefault(); break; + } + } + + // Resolve indexed colors for font, fill, and border colors + // Cannot be resolved already in XF record, because PALETTE record comes afterwards + if (!$this->_readDataOnly) { + foreach ($this->_objFonts as $objFont) { + if (isset($objFont->colorIndex)) { + $color = self::_readColor($objFont->colorIndex,$this->_palette,$this->_version); + $objFont->getColor()->setRGB($color['rgb']); + } + } + + foreach ($this->_phpExcel->getCellXfCollection() as $objStyle) { + // fill start and end color + $fill = $objStyle->getFill(); + + if (isset($fill->startcolorIndex)) { + $startColor = self::_readColor($fill->startcolorIndex,$this->_palette,$this->_version); + $fill->getStartColor()->setRGB($startColor['rgb']); + } + + if (isset($fill->endcolorIndex)) { + $endColor = self::_readColor($fill->endcolorIndex,$this->_palette,$this->_version); + $fill->getEndColor()->setRGB($endColor['rgb']); + } + + // border colors + $top = $objStyle->getBorders()->getTop(); + $right = $objStyle->getBorders()->getRight(); + $bottom = $objStyle->getBorders()->getBottom(); + $left = $objStyle->getBorders()->getLeft(); + $diagonal = $objStyle->getBorders()->getDiagonal(); + + if (isset($top->colorIndex)) { + $borderTopColor = self::_readColor($top->colorIndex,$this->_palette,$this->_version); + $top->getColor()->setRGB($borderTopColor['rgb']); + } + + if (isset($right->colorIndex)) { + $borderRightColor = self::_readColor($right->colorIndex,$this->_palette,$this->_version); + $right->getColor()->setRGB($borderRightColor['rgb']); + } + + if (isset($bottom->colorIndex)) { + $borderBottomColor = self::_readColor($bottom->colorIndex,$this->_palette,$this->_version); + $bottom->getColor()->setRGB($borderBottomColor['rgb']); + } + + if (isset($left->colorIndex)) { + $borderLeftColor = self::_readColor($left->colorIndex,$this->_palette,$this->_version); + $left->getColor()->setRGB($borderLeftColor['rgb']); + } + + if (isset($diagonal->colorIndex)) { + $borderDiagonalColor = self::_readColor($diagonal->colorIndex,$this->_palette,$this->_version); + $diagonal->getColor()->setRGB($borderDiagonalColor['rgb']); + } + } + } + + // treat MSODRAWINGGROUP records, workbook-level Escher + if (!$this->_readDataOnly && $this->_drawingGroupData) { + $escherWorkbook = new PHPExcel_Shared_Escher(); + $reader = new PHPExcel_Reader_Excel5_Escher($escherWorkbook); + $escherWorkbook = $reader->load($this->_drawingGroupData); + + // debug Escher stream + //$debug = new Debug_Escher(new PHPExcel_Shared_Escher()); + //$debug->load($this->_drawingGroupData); + } + + // Parse the individual sheets + foreach ($this->_sheets as $sheet) { + + if ($sheet['sheetType'] != 0x00) { + // 0x00: Worksheet, 0x02: Chart, 0x06: Visual Basic module + continue; + } + + // check if sheet should be skipped + if (isset($this->_loadSheetsOnly) && !in_array($sheet['name'], $this->_loadSheetsOnly)) { + continue; + } + + // add sheet to PHPExcel object + $this->_phpSheet = $this->_phpExcel->createSheet(); + // Use false for $updateFormulaCellReferences to prevent adjustment of worksheet references in formula + // cells... during the load, all formulae should be correct, and we're simply bringing the worksheet + // name in line with the formula, not the reverse + $this->_phpSheet->setTitle($sheet['name'],false); + $this->_phpSheet->setSheetState($sheet['sheetState']); + + $this->_pos = $sheet['offset']; + + // Initialize isFitToPages. May change after reading SHEETPR record. + $this->_isFitToPages = false; + + // Initialize drawingData + $this->_drawingData = ''; + + // Initialize objs + $this->_objs = array(); + + // Initialize shared formula parts + $this->_sharedFormulaParts = array(); + + // Initialize shared formulas + $this->_sharedFormulas = array(); + + // Initialize text objs + $this->_textObjects = array(); + + // Initialize cell annotations + $this->_cellNotes = array(); + $this->textObjRef = -1; + + while ($this->_pos <= $this->_dataSize - 4) { + $code = self::_GetInt2d($this->_data, $this->_pos); + + switch ($code) { + case self::XLS_Type_BOF: $this->_readBof(); break; + case self::XLS_Type_PRINTGRIDLINES: $this->_readPrintGridlines(); break; + case self::XLS_Type_DEFAULTROWHEIGHT: $this->_readDefaultRowHeight(); break; + case self::XLS_Type_SHEETPR: $this->_readSheetPr(); break; + case self::XLS_Type_HORIZONTALPAGEBREAKS: $this->_readHorizontalPageBreaks(); break; + case self::XLS_Type_VERTICALPAGEBREAKS: $this->_readVerticalPageBreaks(); break; + case self::XLS_Type_HEADER: $this->_readHeader(); break; + case self::XLS_Type_FOOTER: $this->_readFooter(); break; + case self::XLS_Type_HCENTER: $this->_readHcenter(); break; + case self::XLS_Type_VCENTER: $this->_readVcenter(); break; + case self::XLS_Type_LEFTMARGIN: $this->_readLeftMargin(); break; + case self::XLS_Type_RIGHTMARGIN: $this->_readRightMargin(); break; + case self::XLS_Type_TOPMARGIN: $this->_readTopMargin(); break; + case self::XLS_Type_BOTTOMMARGIN: $this->_readBottomMargin(); break; + case self::XLS_Type_PAGESETUP: $this->_readPageSetup(); break; + case self::XLS_Type_PROTECT: $this->_readProtect(); break; + case self::XLS_Type_SCENPROTECT: $this->_readScenProtect(); break; + case self::XLS_Type_OBJECTPROTECT: $this->_readObjectProtect(); break; + case self::XLS_Type_PASSWORD: $this->_readPassword(); break; + case self::XLS_Type_DEFCOLWIDTH: $this->_readDefColWidth(); break; + case self::XLS_Type_COLINFO: $this->_readColInfo(); break; + case self::XLS_Type_DIMENSION: $this->_readDefault(); break; + case self::XLS_Type_ROW: $this->_readRow(); break; + case self::XLS_Type_DBCELL: $this->_readDefault(); break; + case self::XLS_Type_RK: $this->_readRk(); break; + case self::XLS_Type_LABELSST: $this->_readLabelSst(); break; + case self::XLS_Type_MULRK: $this->_readMulRk(); break; + case self::XLS_Type_NUMBER: $this->_readNumber(); break; + case self::XLS_Type_FORMULA: $this->_readFormula(); break; + case self::XLS_Type_SHAREDFMLA: $this->_readSharedFmla(); break; + case self::XLS_Type_BOOLERR: $this->_readBoolErr(); break; + case self::XLS_Type_MULBLANK: $this->_readMulBlank(); break; + case self::XLS_Type_LABEL: $this->_readLabel(); break; + case self::XLS_Type_BLANK: $this->_readBlank(); break; + case self::XLS_Type_MSODRAWING: $this->_readMsoDrawing(); break; + case self::XLS_Type_OBJ: $this->_readObj(); break; + case self::XLS_Type_WINDOW2: $this->_readWindow2(); break; + case self::XLS_Type_PAGELAYOUTVIEW: $this->_readPageLayoutView(); break; + case self::XLS_Type_SCL: $this->_readScl(); break; + case self::XLS_Type_PANE: $this->_readPane(); break; + case self::XLS_Type_SELECTION: $this->_readSelection(); break; + case self::XLS_Type_MERGEDCELLS: $this->_readMergedCells(); break; + case self::XLS_Type_HYPERLINK: $this->_readHyperLink(); break; + case self::XLS_Type_DATAVALIDATIONS: $this->_readDataValidations(); break; + case self::XLS_Type_DATAVALIDATION: $this->_readDataValidation(); break; + case self::XLS_Type_SHEETLAYOUT: $this->_readSheetLayout(); break; + case self::XLS_Type_SHEETPROTECTION: $this->_readSheetProtection(); break; + case self::XLS_Type_RANGEPROTECTION: $this->_readRangeProtection(); break; + case self::XLS_Type_NOTE: $this->_readNote(); break; + //case self::XLS_Type_IMDATA: $this->_readImData(); break; + case self::XLS_Type_TXO: $this->_readTextObject(); break; + case self::XLS_Type_CONTINUE: $this->_readContinue(); break; + case self::XLS_Type_EOF: $this->_readDefault(); break 2; + default: $this->_readDefault(); break; + } + + } + + // treat MSODRAWING records, sheet-level Escher + if (!$this->_readDataOnly && $this->_drawingData) { + $escherWorksheet = new PHPExcel_Shared_Escher(); + $reader = new PHPExcel_Reader_Excel5_Escher($escherWorksheet); + $escherWorksheet = $reader->load($this->_drawingData); + + // debug Escher stream + //$debug = new Debug_Escher(new PHPExcel_Shared_Escher()); + //$debug->load($this->_drawingData); + + // get all spContainers in one long array, so they can be mapped to OBJ records + $allSpContainers = $escherWorksheet->getDgContainer()->getSpgrContainer()->getAllSpContainers(); + } + + // treat OBJ records + foreach ($this->_objs as $n => $obj) { +// echo '
Object reference is ',$n,'
'; +// var_dump($obj); +// echo '
'; + + // the first shape container never has a corresponding OBJ record, hence $n + 1 + if (isset($allSpContainers[$n + 1]) && is_object($allSpContainers[$n + 1])) { + $spContainer = $allSpContainers[$n + 1]; + + // we skip all spContainers that are a part of a group shape since we cannot yet handle those + if ($spContainer->getNestingLevel() > 1) { + continue; + } + + // calculate the width and height of the shape + list($startColumn, $startRow) = PHPExcel_Cell::coordinateFromString($spContainer->getStartCoordinates()); + list($endColumn, $endRow) = PHPExcel_Cell::coordinateFromString($spContainer->getEndCoordinates()); + + $startOffsetX = $spContainer->getStartOffsetX(); + $startOffsetY = $spContainer->getStartOffsetY(); + $endOffsetX = $spContainer->getEndOffsetX(); + $endOffsetY = $spContainer->getEndOffsetY(); + + $width = PHPExcel_Shared_Excel5::getDistanceX($this->_phpSheet, $startColumn, $startOffsetX, $endColumn, $endOffsetX); + $height = PHPExcel_Shared_Excel5::getDistanceY($this->_phpSheet, $startRow, $startOffsetY, $endRow, $endOffsetY); + + // calculate offsetX and offsetY of the shape + $offsetX = $startOffsetX * PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, $startColumn) / 1024; + $offsetY = $startOffsetY * PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $startRow) / 256; + + switch ($obj['otObjType']) { + case 0x19: + // Note +// echo 'Cell Annotation Object
'; +// echo 'Object ID is ',$obj['idObjID'],'
'; +// + if (isset($this->_cellNotes[$obj['idObjID']])) { + $cellNote = $this->_cellNotes[$obj['idObjID']]; + + if (isset($this->_textObjects[$obj['idObjID']])) { + $textObject = $this->_textObjects[$obj['idObjID']]; + $this->_cellNotes[$obj['idObjID']]['objTextData'] = $textObject; + } + } + break; + + case 0x08: +// echo 'Picture Object
'; + // picture + + // get index to BSE entry (1-based) + $BSEindex = $spContainer->getOPT(0x0104); + $BSECollection = $escherWorkbook->getDggContainer()->getBstoreContainer()->getBSECollection(); + $BSE = $BSECollection[$BSEindex - 1]; + $blipType = $BSE->getBlipType(); + + // need check because some blip types are not supported by Escher reader such as EMF + if ($blip = $BSE->getBlip()) { + $ih = imagecreatefromstring($blip->getData()); + $drawing = new PHPExcel_Worksheet_MemoryDrawing(); + $drawing->setImageResource($ih); + + // width, height, offsetX, offsetY + $drawing->setResizeProportional(false); + $drawing->setWidth($width); + $drawing->setHeight($height); + $drawing->setOffsetX($offsetX); + $drawing->setOffsetY($offsetY); + + switch ($blipType) { + case PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_JPEG: + $drawing->setRenderingFunction(PHPExcel_Worksheet_MemoryDrawing::RENDERING_JPEG); + $drawing->setMimeType(PHPExcel_Worksheet_MemoryDrawing::MIMETYPE_JPEG); + break; + + case PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG: + $drawing->setRenderingFunction(PHPExcel_Worksheet_MemoryDrawing::RENDERING_PNG); + $drawing->setMimeType(PHPExcel_Worksheet_MemoryDrawing::MIMETYPE_PNG); + break; + } + + $drawing->setWorksheet($this->_phpSheet); + $drawing->setCoordinates($spContainer->getStartCoordinates()); + } + + break; + + default: + // other object type + break; + + } + } + } + + // treat SHAREDFMLA records + if ($this->_version == self::XLS_BIFF8) { + foreach ($this->_sharedFormulaParts as $cell => $baseCell) { + list($column, $row) = PHPExcel_Cell::coordinateFromString($cell); + if (($this->getReadFilter() !== NULL) && $this->getReadFilter()->readCell($column, $row, $this->_phpSheet->getTitle()) ) { + $formula = $this->_getFormulaFromStructure($this->_sharedFormulas[$baseCell], $cell); + $this->_phpSheet->getCell($cell)->setValueExplicit('=' . $formula, PHPExcel_Cell_DataType::TYPE_FORMULA); + } + } + } + + if (!empty($this->_cellNotes)) { + foreach($this->_cellNotes as $note => $noteDetails) { + if (!isset($noteDetails['objTextData'])) { + if (isset($this->_textObjects[$note])) { + $textObject = $this->_textObjects[$note]; + $noteDetails['objTextData'] = $textObject; + } else { + $noteDetails['objTextData']['text'] = ''; + } + } +// echo 'Cell annotation ',$note,'
'; +// var_dump($noteDetails); +// echo '
'; + $cellAddress = str_replace('$','',$noteDetails['cellRef']); + $this->_phpSheet->getComment( $cellAddress ) + ->setAuthor( $noteDetails['author'] ) + ->setText($this->_parseRichText($noteDetails['objTextData']['text']) ); + } + } + } + + // add the named ranges (defined names) + foreach ($this->_definedname as $definedName) { + if ($definedName['isBuiltInName']) { + switch ($definedName['name']) { + + case pack('C', 0x06): + // print area + // in general, formula looks like this: Foo!$C$7:$J$66,Bar!$A$1:$IV$2 + $ranges = explode(',', $definedName['formula']); // FIXME: what if sheetname contains comma? + + $extractedRanges = array(); + foreach ($ranges as $range) { + // $range should look like one of these + // Foo!$C$7:$J$66 + // Bar!$A$1:$IV$2 + + $explodes = explode('!', $range); // FIXME: what if sheetname contains exclamation mark? + $sheetName = trim($explodes[0], "'"); + + if (count($explodes) == 2) { + if (strpos($explodes[1], ':') === FALSE) { + $explodes[1] = $explodes[1] . ':' . $explodes[1]; + } + $extractedRanges[] = str_replace('$', '', $explodes[1]); // C7:J66 + } + } + if ($docSheet = $this->_phpExcel->getSheetByName($sheetName)) { + $docSheet->getPageSetup()->setPrintArea(implode(',', $extractedRanges)); // C7:J66,A1:IV2 + } + break; + + case pack('C', 0x07): + // print titles (repeating rows) + // Assuming BIFF8, there are 3 cases + // 1. repeating rows + // formula looks like this: Sheet!$A$1:$IV$2 + // rows 1-2 repeat + // 2. repeating columns + // formula looks like this: Sheet!$A$1:$B$65536 + // columns A-B repeat + // 3. both repeating rows and repeating columns + // formula looks like this: Sheet!$A$1:$B$65536,Sheet!$A$1:$IV$2 + + $ranges = explode(',', $definedName['formula']); // FIXME: what if sheetname contains comma? + + foreach ($ranges as $range) { + // $range should look like this one of these + // Sheet!$A$1:$B$65536 + // Sheet!$A$1:$IV$2 + + $explodes = explode('!', $range); + + if (count($explodes) == 2) { + if ($docSheet = $this->_phpExcel->getSheetByName($explodes[0])) { + + $extractedRange = $explodes[1]; + $extractedRange = str_replace('$', '', $extractedRange); + + $coordinateStrings = explode(':', $extractedRange); + if (count($coordinateStrings) == 2) { + list($firstColumn, $firstRow) = PHPExcel_Cell::coordinateFromString($coordinateStrings[0]); + list($lastColumn, $lastRow) = PHPExcel_Cell::coordinateFromString($coordinateStrings[1]); + + if ($firstColumn == 'A' and $lastColumn == 'IV') { + // then we have repeating rows + $docSheet->getPageSetup()->setRowsToRepeatAtTop(array($firstRow, $lastRow)); + } elseif ($firstRow == 1 and $lastRow == 65536) { + // then we have repeating columns + $docSheet->getPageSetup()->setColumnsToRepeatAtLeft(array($firstColumn, $lastColumn)); + } + } + } + } + } + break; + + } + } else { + // Extract range + $explodes = explode('!', $definedName['formula']); + + if (count($explodes) == 2) { + if (($docSheet = $this->_phpExcel->getSheetByName($explodes[0])) || + ($docSheet = $this->_phpExcel->getSheetByName(trim($explodes[0],"'")))) { + $extractedRange = $explodes[1]; + $extractedRange = str_replace('$', '', $extractedRange); + + $localOnly = ($definedName['scope'] == 0) ? false : true; + + $scope = ($definedName['scope'] == 0) ? + null : $this->_phpExcel->getSheetByName($this->_sheets[$definedName['scope'] - 1]['name']); + + $this->_phpExcel->addNamedRange( new PHPExcel_NamedRange((string)$definedName['name'], $docSheet, $extractedRange, $localOnly, $scope) ); + } + } else { + // Named Value + // TODO Provide support for named values + } + } + } + $this->_data = null; + + return $this->_phpExcel; + } + + /** + * Read record data from stream, decrypting as required + * + * @param string $data Data stream to read from + * @param int $pos Position to start reading from + * @param int $length Record data length + * + * @return string Record data + */ + private function _readRecordData($data, $pos, $len) + { + $data = substr($data, $pos, $len); + + // File not encrypted, or record before encryption start point + if ($this->_encryption == self::MS_BIFF_CRYPTO_NONE || $pos < $this->_encryptionStartPos) { + return $data; + } + + $recordData = ''; + if ($this->_encryption == self::MS_BIFF_CRYPTO_RC4) { + + $oldBlock = floor($this->_rc4Pos / self::REKEY_BLOCK); + $block = floor($pos / self::REKEY_BLOCK); + $endBlock = floor(($pos + $len) / self::REKEY_BLOCK); + + // Spin an RC4 decryptor to the right spot. If we have a decryptor sitting + // at a point earlier in the current block, re-use it as we can save some time. + if ($block != $oldBlock || $pos < $this->_rc4Pos || !$this->_rc4Key) { + $this->_rc4Key = $this->_makeKey($block, $this->_md5Ctxt); + $step = $pos % self::REKEY_BLOCK; + } else { + $step = $pos - $this->_rc4Pos; + } + $this->_rc4Key->RC4(str_repeat("\0", $step)); + + // Decrypt record data (re-keying at the end of every block) + while ($block != $endBlock) { + $step = self::REKEY_BLOCK - ($pos % self::REKEY_BLOCK); + $recordData .= $this->_rc4Key->RC4(substr($data, 0, $step)); + $data = substr($data, $step); + $pos += $step; + $len -= $step; + $block++; + $this->_rc4Key = $this->_makeKey($block, $this->_md5Ctxt); + } + $recordData .= $this->_rc4Key->RC4(substr($data, 0, $len)); + + // Keep track of the position of this decryptor. + // We'll try and re-use it later if we can to speed things up + $this->_rc4Pos = $pos + $len; + + } elseif ($this->_encryption == self::MS_BIFF_CRYPTO_XOR) { + throw new PHPExcel_Reader_Exception('XOr encryption not supported'); + } + return $recordData; + } + + /** + * Use OLE reader to extract the relevant data streams from the OLE file + * + * @param string $pFilename + */ + private function _loadOLE($pFilename) + { + // OLE reader + $ole = new PHPExcel_Shared_OLERead(); + + // get excel data, + $res = $ole->read($pFilename); + // Get workbook data: workbook stream + sheet streams + $this->_data = $ole->getStream($ole->wrkbook); + + // Get summary information data + $this->_summaryInformation = $ole->getStream($ole->summaryInformation); + + // Get additional document summary information data + $this->_documentSummaryInformation = $ole->getStream($ole->documentSummaryInformation); + + // Get user-defined property data +// $this->_userDefinedProperties = $ole->getUserDefinedProperties(); + } + + + /** + * Read summary information + */ + private function _readSummaryInformation() + { + if (!isset($this->_summaryInformation)) { + return; + } + + // offset: 0; size: 2; must be 0xFE 0xFF (UTF-16 LE byte order mark) + // offset: 2; size: 2; + // offset: 4; size: 2; OS version + // offset: 6; size: 2; OS indicator + // offset: 8; size: 16 + // offset: 24; size: 4; section count + $secCount = self::_GetInt4d($this->_summaryInformation, 24); + + // offset: 28; size: 16; first section's class id: e0 85 9f f2 f9 4f 68 10 ab 91 08 00 2b 27 b3 d9 + // offset: 44; size: 4 + $secOffset = self::_GetInt4d($this->_summaryInformation, 44); + + // section header + // offset: $secOffset; size: 4; section length + $secLength = self::_GetInt4d($this->_summaryInformation, $secOffset); + + // offset: $secOffset+4; size: 4; property count + $countProperties = self::_GetInt4d($this->_summaryInformation, $secOffset+4); + + // initialize code page (used to resolve string values) + $codePage = 'CP1252'; + + // offset: ($secOffset+8); size: var + // loop through property decarations and properties + for ($i = 0; $i < $countProperties; ++$i) { + + // offset: ($secOffset+8) + (8 * $i); size: 4; property ID + $id = self::_GetInt4d($this->_summaryInformation, ($secOffset+8) + (8 * $i)); + + // Use value of property id as appropriate + // offset: ($secOffset+12) + (8 * $i); size: 4; offset from beginning of section (48) + $offset = self::_GetInt4d($this->_summaryInformation, ($secOffset+12) + (8 * $i)); + + $type = self::_GetInt4d($this->_summaryInformation, $secOffset + $offset); + + // initialize property value + $value = null; + + // extract property value based on property type + switch ($type) { + case 0x02: // 2 byte signed integer + $value = self::_GetInt2d($this->_summaryInformation, $secOffset + 4 + $offset); + break; + + case 0x03: // 4 byte signed integer + $value = self::_GetInt4d($this->_summaryInformation, $secOffset + 4 + $offset); + break; + + case 0x13: // 4 byte unsigned integer + // not needed yet, fix later if necessary + break; + + case 0x1E: // null-terminated string prepended by dword string length + $byteLength = self::_GetInt4d($this->_summaryInformation, $secOffset + 4 + $offset); + $value = substr($this->_summaryInformation, $secOffset + 8 + $offset, $byteLength); + $value = PHPExcel_Shared_String::ConvertEncoding($value, 'UTF-8', $codePage); + $value = rtrim($value); + break; + + case 0x40: // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601) + // PHP-time + $value = PHPExcel_Shared_OLE::OLE2LocalDate(substr($this->_summaryInformation, $secOffset + 4 + $offset, 8)); + break; + + case 0x47: // Clipboard format + // not needed yet, fix later if necessary + break; + } + + switch ($id) { + case 0x01: // Code Page + $codePage = PHPExcel_Shared_CodePage::NumberToName($value); + break; + + case 0x02: // Title + $this->_phpExcel->getProperties()->setTitle($value); + break; + + case 0x03: // Subject + $this->_phpExcel->getProperties()->setSubject($value); + break; + + case 0x04: // Author (Creator) + $this->_phpExcel->getProperties()->setCreator($value); + break; + + case 0x05: // Keywords + $this->_phpExcel->getProperties()->setKeywords($value); + break; + + case 0x06: // Comments (Description) + $this->_phpExcel->getProperties()->setDescription($value); + break; + + case 0x07: // Template + // Not supported by PHPExcel + break; + + case 0x08: // Last Saved By (LastModifiedBy) + $this->_phpExcel->getProperties()->setLastModifiedBy($value); + break; + + case 0x09: // Revision + // Not supported by PHPExcel + break; + + case 0x0A: // Total Editing Time + // Not supported by PHPExcel + break; + + case 0x0B: // Last Printed + // Not supported by PHPExcel + break; + + case 0x0C: // Created Date/Time + $this->_phpExcel->getProperties()->setCreated($value); + break; + + case 0x0D: // Modified Date/Time + $this->_phpExcel->getProperties()->setModified($value); + break; + + case 0x0E: // Number of Pages + // Not supported by PHPExcel + break; + + case 0x0F: // Number of Words + // Not supported by PHPExcel + break; + + case 0x10: // Number of Characters + // Not supported by PHPExcel + break; + + case 0x11: // Thumbnail + // Not supported by PHPExcel + break; + + case 0x12: // Name of creating application + // Not supported by PHPExcel + break; + + case 0x13: // Security + // Not supported by PHPExcel + break; + + } + } + } + + + /** + * Read additional document summary information + */ + private function _readDocumentSummaryInformation() + { + if (!isset($this->_documentSummaryInformation)) { + return; + } + + // offset: 0; size: 2; must be 0xFE 0xFF (UTF-16 LE byte order mark) + // offset: 2; size: 2; + // offset: 4; size: 2; OS version + // offset: 6; size: 2; OS indicator + // offset: 8; size: 16 + // offset: 24; size: 4; section count + $secCount = self::_GetInt4d($this->_documentSummaryInformation, 24); +// echo '$secCount = ',$secCount,'
'; + + // offset: 28; size: 16; first section's class id: 02 d5 cd d5 9c 2e 1b 10 93 97 08 00 2b 2c f9 ae + // offset: 44; size: 4; first section offset + $secOffset = self::_GetInt4d($this->_documentSummaryInformation, 44); +// echo '$secOffset = ',$secOffset,'
'; + + // section header + // offset: $secOffset; size: 4; section length + $secLength = self::_GetInt4d($this->_documentSummaryInformation, $secOffset); +// echo '$secLength = ',$secLength,'
'; + + // offset: $secOffset+4; size: 4; property count + $countProperties = self::_GetInt4d($this->_documentSummaryInformation, $secOffset+4); +// echo '$countProperties = ',$countProperties,'
'; + + // initialize code page (used to resolve string values) + $codePage = 'CP1252'; + + // offset: ($secOffset+8); size: var + // loop through property decarations and properties + for ($i = 0; $i < $countProperties; ++$i) { +// echo 'Property ',$i,'
'; + // offset: ($secOffset+8) + (8 * $i); size: 4; property ID + $id = self::_GetInt4d($this->_documentSummaryInformation, ($secOffset+8) + (8 * $i)); +// echo 'ID is ',$id,'
'; + + // Use value of property id as appropriate + // offset: 60 + 8 * $i; size: 4; offset from beginning of section (48) + $offset = self::_GetInt4d($this->_documentSummaryInformation, ($secOffset+12) + (8 * $i)); + + $type = self::_GetInt4d($this->_documentSummaryInformation, $secOffset + $offset); +// echo 'Type is ',$type,', '; + + // initialize property value + $value = null; + + // extract property value based on property type + switch ($type) { + case 0x02: // 2 byte signed integer + $value = self::_GetInt2d($this->_documentSummaryInformation, $secOffset + 4 + $offset); + break; + + case 0x03: // 4 byte signed integer + $value = self::_GetInt4d($this->_documentSummaryInformation, $secOffset + 4 + $offset); + break; + + case 0x0B: // Boolean + $value = self::_GetInt2d($this->_documentSummaryInformation, $secOffset + 4 + $offset); + $value = ($value == 0 ? false : true); + break; + + case 0x13: // 4 byte unsigned integer + // not needed yet, fix later if necessary + break; + + case 0x1E: // null-terminated string prepended by dword string length + $byteLength = self::_GetInt4d($this->_documentSummaryInformation, $secOffset + 4 + $offset); + $value = substr($this->_documentSummaryInformation, $secOffset + 8 + $offset, $byteLength); + $value = PHPExcel_Shared_String::ConvertEncoding($value, 'UTF-8', $codePage); + $value = rtrim($value); + break; + + case 0x40: // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601) + // PHP-Time + $value = PHPExcel_Shared_OLE::OLE2LocalDate(substr($this->_documentSummaryInformation, $secOffset + 4 + $offset, 8)); + break; + + case 0x47: // Clipboard format + // not needed yet, fix later if necessary + break; + } + + switch ($id) { + case 0x01: // Code Page + $codePage = PHPExcel_Shared_CodePage::NumberToName($value); + break; + + case 0x02: // Category + $this->_phpExcel->getProperties()->setCategory($value); + break; + + case 0x03: // Presentation Target + // Not supported by PHPExcel + break; + + case 0x04: // Bytes + // Not supported by PHPExcel + break; + + case 0x05: // Lines + // Not supported by PHPExcel + break; + + case 0x06: // Paragraphs + // Not supported by PHPExcel + break; + + case 0x07: // Slides + // Not supported by PHPExcel + break; + + case 0x08: // Notes + // Not supported by PHPExcel + break; + + case 0x09: // Hidden Slides + // Not supported by PHPExcel + break; + + case 0x0A: // MM Clips + // Not supported by PHPExcel + break; + + case 0x0B: // Scale Crop + // Not supported by PHPExcel + break; + + case 0x0C: // Heading Pairs + // Not supported by PHPExcel + break; + + case 0x0D: // Titles of Parts + // Not supported by PHPExcel + break; + + case 0x0E: // Manager + $this->_phpExcel->getProperties()->setManager($value); + break; + + case 0x0F: // Company + $this->_phpExcel->getProperties()->setCompany($value); + break; + + case 0x10: // Links up-to-date + // Not supported by PHPExcel + break; + + } + } + } + + + /** + * Reads a general type of BIFF record. Does nothing except for moving stream pointer forward to next record. + */ + private function _readDefault() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); +// $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + } + + + /** + * The NOTE record specifies a comment associated with a particular cell. In Excel 95 (BIFF7) and earlier versions, + * this record stores a note (cell note). This feature was significantly enhanced in Excel 97. + */ + private function _readNote() + { +// echo 'Read Cell Annotation
'; + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if ($this->_readDataOnly) { + return; + } + + $cellAddress = $this->_readBIFF8CellAddress(substr($recordData, 0, 4)); + if ($this->_version == self::XLS_BIFF8) { + $noteObjID = self::_GetInt2d($recordData, 6); + $noteAuthor = self::_readUnicodeStringLong(substr($recordData, 8)); + $noteAuthor = $noteAuthor['value']; +// echo 'Note Address=',$cellAddress,'
'; +// echo 'Note Object ID=',$noteObjID,'
'; +// echo 'Note Author=',$noteAuthor,'
'; +// + $this->_cellNotes[$noteObjID] = array('cellRef' => $cellAddress, + 'objectID' => $noteObjID, + 'author' => $noteAuthor + ); + } else { + $extension = false; + if ($cellAddress == '$B$65536') { + // If the address row is -1 and the column is 0, (which translates as $B$65536) then this is a continuation + // note from the previous cell annotation. We're not yet handling this, so annotations longer than the + // max 2048 bytes will probably throw a wobbly. + $row = self::_GetInt2d($recordData, 0); + $extension = true; + $cellAddress = array_pop(array_keys($this->_phpSheet->getComments())); + } +// echo 'Note Address=',$cellAddress,'
'; + + $cellAddress = str_replace('$','',$cellAddress); + $noteLength = self::_GetInt2d($recordData, 4); + $noteText = trim(substr($recordData, 6)); +// echo 'Note Length=',$noteLength,'
'; +// echo 'Note Text=',$noteText,'
'; + + if ($extension) { + // Concatenate this extension with the currently set comment for the cell + $comment = $this->_phpSheet->getComment( $cellAddress ); + $commentText = $comment->getText()->getPlainText(); + $comment->setText($this->_parseRichText($commentText.$noteText) ); + } else { + // Set comment for the cell + $this->_phpSheet->getComment( $cellAddress ) +// ->setAuthor( $author ) + ->setText($this->_parseRichText($noteText) ); + } + } + + } + + + /** + * The TEXT Object record contains the text associated with a cell annotation. + */ + private function _readTextObject() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if ($this->_readDataOnly) { + return; + } + + // recordData consists of an array of subrecords looking like this: + // grbit: 2 bytes; Option Flags + // rot: 2 bytes; rotation + // cchText: 2 bytes; length of the text (in the first continue record) + // cbRuns: 2 bytes; length of the formatting (in the second continue record) + // followed by the continuation records containing the actual text and formatting + $grbitOpts = self::_GetInt2d($recordData, 0); + $rot = self::_GetInt2d($recordData, 2); + $cchText = self::_GetInt2d($recordData, 10); + $cbRuns = self::_GetInt2d($recordData, 12); + $text = $this->_getSplicedRecordData(); + + $this->_textObjects[$this->textObjRef] = array( + 'text' => substr($text["recordData"],$text["spliceOffsets"][0]+1,$cchText), + 'format' => substr($text["recordData"],$text["spliceOffsets"][1],$cbRuns), + 'alignment' => $grbitOpts, + 'rotation' => $rot + ); + +// echo '_readTextObject()
'; +// var_dump($this->_textObjects[$this->textObjRef]); +// echo '
'; + } + + + /** + * Read BOF + */ + private function _readBof() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = substr($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 2; size: 2; type of the following data + $substreamType = self::_GetInt2d($recordData, 2); + + switch ($substreamType) { + case self::XLS_WorkbookGlobals: + $version = self::_GetInt2d($recordData, 0); + if (($version != self::XLS_BIFF8) && ($version != self::XLS_BIFF7)) { + throw new PHPExcel_Reader_Exception('Cannot read this Excel file. Version is too old.'); + } + $this->_version = $version; + break; + + case self::XLS_Worksheet: + // do not use this version information for anything + // it is unreliable (OpenOffice doc, 5.8), use only version information from the global stream + break; + + default: + // substream, e.g. chart + // just skip the entire substream + do { + $code = self::_GetInt2d($this->_data, $this->_pos); + $this->_readDefault(); + } while ($code != self::XLS_Type_EOF && $this->_pos < $this->_dataSize); + break; + } + } + + + /** + * FILEPASS + * + * This record is part of the File Protection Block. It + * contains information about the read/write password of the + * file. All record contents following this record will be + * encrypted. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + * + * The decryption functions and objects used from here on in + * are based on the source of Spreadsheet-ParseExcel: + * http://search.cpan.org/~jmcnamara/Spreadsheet-ParseExcel/ + */ + private function _readFilepass() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + + if ($length != 54) { + throw new PHPExcel_Reader_Exception('Unexpected file pass record length'); + } + + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_verifyPassword( + 'VelvetSweatshop', + substr($recordData, 6, 16), + substr($recordData, 22, 16), + substr($recordData, 38, 16), + $this->_md5Ctxt + )) { + throw new PHPExcel_Reader_Exception('Decryption password incorrect'); + } + + $this->_encryption = self::MS_BIFF_CRYPTO_RC4; + + // Decryption required from the record after next onwards + $this->_encryptionStartPos = $this->_pos + self::_GetInt2d($this->_data, $this->_pos + 2); + } + + /** + * Make an RC4 decryptor for the given block + * + * @var int $block Block for which to create decrypto + * @var string $valContext MD5 context state + * + * @return PHPExcel_Reader_Excel5_RC4 + */ + private function _makeKey($block, $valContext) + { + $pwarray = str_repeat("\0", 64); + + for ($i = 0; $i < 5; $i++) { + $pwarray[$i] = $valContext[$i]; + } + + $pwarray[5] = chr($block & 0xff); + $pwarray[6] = chr(($block >> 8) & 0xff); + $pwarray[7] = chr(($block >> 16) & 0xff); + $pwarray[8] = chr(($block >> 24) & 0xff); + + $pwarray[9] = "\x80"; + $pwarray[56] = "\x48"; + + $md5 = new PHPExcel_Reader_Excel5_MD5(); + $md5->add($pwarray); + + $s = $md5->getContext(); + return new PHPExcel_Reader_Excel5_RC4($s); + } + + /** + * Verify RC4 file password + * + * @var string $password Password to check + * @var string $docid Document id + * @var string $salt_data Salt data + * @var string $hashedsalt_data Hashed salt data + * @var string &$valContext Set to the MD5 context of the value + * + * @return bool Success + */ + private function _verifyPassword($password, $docid, $salt_data, $hashedsalt_data, &$valContext) + { + $pwarray = str_repeat("\0", 64); + + for ($i = 0; $i < strlen($password); $i++) { + $o = ord(substr($password, $i, 1)); + $pwarray[2 * $i] = chr($o & 0xff); + $pwarray[2 * $i + 1] = chr(($o >> 8) & 0xff); + } + $pwarray[2 * $i] = chr(0x80); + $pwarray[56] = chr(($i << 4) & 0xff); + + $md5 = new PHPExcel_Reader_Excel5_MD5(); + $md5->add($pwarray); + + $mdContext1 = $md5->getContext(); + + $offset = 0; + $keyoffset = 0; + $tocopy = 5; + + $md5->reset(); + + while ($offset != 16) { + if ((64 - $offset) < 5) { + $tocopy = 64 - $offset; + } + + for ($i = 0; $i <= $tocopy; $i++) { + $pwarray[$offset + $i] = $mdContext1[$keyoffset + $i]; + } + + $offset += $tocopy; + + if ($offset == 64) { + $md5->add($pwarray); + $keyoffset = $tocopy; + $tocopy = 5 - $tocopy; + $offset = 0; + continue; + } + + $keyoffset = 0; + $tocopy = 5; + for ($i = 0; $i < 16; $i++) { + $pwarray[$offset + $i] = $docid[$i]; + } + $offset += 16; + } + + $pwarray[16] = "\x80"; + for ($i = 0; $i < 47; $i++) { + $pwarray[17 + $i] = "\0"; + } + $pwarray[56] = "\x80"; + $pwarray[57] = "\x0a"; + + $md5->add($pwarray); + $valContext = $md5->getContext(); + + $key = $this->_makeKey(0, $valContext); + + $salt = $key->RC4($salt_data); + $hashedsalt = $key->RC4($hashedsalt_data); + + $salt .= "\x80" . str_repeat("\0", 47); + $salt[56] = "\x80"; + + $md5->reset(); + $md5->add($salt); + $mdContext2 = $md5->getContext(); + + return $mdContext2 == $hashedsalt; + } + + /** + * CODEPAGE + * + * This record stores the text encoding used to write byte + * strings, stored as MS Windows code page identifier. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readCodepage() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2; code page identifier + $codepage = self::_GetInt2d($recordData, 0); + + $this->_codepage = PHPExcel_Shared_CodePage::NumberToName($codepage); + } + + + /** + * DATEMODE + * + * This record specifies the base date for displaying date + * values. All dates are stored as count of days past this + * base date. In BIFF2-BIFF4 this record is part of the + * Calculation Settings Block. In BIFF5-BIFF8 it is + * stored in the Workbook Globals Substream. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readDateMode() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2; 0 = base 1900, 1 = base 1904 + PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900); + if (ord($recordData{0}) == 1) { + PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_MAC_1904); + } + } + + + /** + * Read a FONT record + */ + private function _readFont() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + $objFont = new PHPExcel_Style_Font(); + + // offset: 0; size: 2; height of the font (in twips = 1/20 of a point) + $size = self::_GetInt2d($recordData, 0); + $objFont->setSize($size / 20); + + // offset: 2; size: 2; option flags + // bit: 0; mask 0x0001; bold (redundant in BIFF5-BIFF8) + // bit: 1; mask 0x0002; italic + $isItalic = (0x0002 & self::_GetInt2d($recordData, 2)) >> 1; + if ($isItalic) $objFont->setItalic(true); + + // bit: 2; mask 0x0004; underlined (redundant in BIFF5-BIFF8) + // bit: 3; mask 0x0008; strike + $isStrike = (0x0008 & self::_GetInt2d($recordData, 2)) >> 3; + if ($isStrike) $objFont->setStrikethrough(true); + + // offset: 4; size: 2; colour index + $colorIndex = self::_GetInt2d($recordData, 4); + $objFont->colorIndex = $colorIndex; + + // offset: 6; size: 2; font weight + $weight = self::_GetInt2d($recordData, 6); + switch ($weight) { + case 0x02BC: + $objFont->setBold(true); + break; + } + + // offset: 8; size: 2; escapement type + $escapement = self::_GetInt2d($recordData, 8); + switch ($escapement) { + case 0x0001: + $objFont->setSuperScript(true); + break; + case 0x0002: + $objFont->setSubScript(true); + break; + } + + // offset: 10; size: 1; underline type + $underlineType = ord($recordData{10}); + switch ($underlineType) { + case 0x00: + break; // no underline + case 0x01: + $objFont->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLE); + break; + case 0x02: + $objFont->setUnderline(PHPExcel_Style_Font::UNDERLINE_DOUBLE); + break; + case 0x21: + $objFont->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING); + break; + case 0x22: + $objFont->setUnderline(PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING); + break; + } + + // offset: 11; size: 1; font family + // offset: 12; size: 1; character set + // offset: 13; size: 1; not used + // offset: 14; size: var; font name + if ($this->_version == self::XLS_BIFF8) { + $string = self::_readUnicodeStringShort(substr($recordData, 14)); + } else { + $string = $this->_readByteStringShort(substr($recordData, 14)); + } + $objFont->setName($string['value']); + + $this->_objFonts[] = $objFont; + } + } + + + /** + * FORMAT + * + * This record contains information about a number format. + * All FORMAT records occur together in a sequential list. + * + * In BIFF2-BIFF4 other records referencing a FORMAT record + * contain a zero-based index into this list. From BIFF5 on + * the FORMAT record contains the index itself that will be + * used by other records. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readFormat() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + $indexCode = self::_GetInt2d($recordData, 0); + + if ($this->_version == self::XLS_BIFF8) { + $string = self::_readUnicodeStringLong(substr($recordData, 2)); + } else { + // BIFF7 + $string = $this->_readByteStringShort(substr($recordData, 2)); + } + + $formatString = $string['value']; + $this->_formats[$indexCode] = $formatString; + } + } + + + /** + * XF - Extended Format + * + * This record contains formatting information for cells, rows, columns or styles. + * According to http://support.microsoft.com/kb/147732 there are always at least 15 cell style XF + * and 1 cell XF. + * Inspection of Excel files generated by MS Office Excel shows that XF records 0-14 are cell style XF + * and XF record 15 is a cell XF + * We only read the first cell style XF and skip the remaining cell style XF records + * We read all cell XF records. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readXf() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + $objStyle = new PHPExcel_Style(); + + if (!$this->_readDataOnly) { + // offset: 0; size: 2; Index to FONT record + if (self::_GetInt2d($recordData, 0) < 4) { + $fontIndex = self::_GetInt2d($recordData, 0); + } else { + // this has to do with that index 4 is omitted in all BIFF versions for some strange reason + // check the OpenOffice documentation of the FONT record + $fontIndex = self::_GetInt2d($recordData, 0) - 1; + } + $objStyle->setFont($this->_objFonts[$fontIndex]); + + // offset: 2; size: 2; Index to FORMAT record + $numberFormatIndex = self::_GetInt2d($recordData, 2); + if (isset($this->_formats[$numberFormatIndex])) { + // then we have user-defined format code + $numberformat = array('code' => $this->_formats[$numberFormatIndex]); + } elseif (($code = PHPExcel_Style_NumberFormat::builtInFormatCode($numberFormatIndex)) !== '') { + // then we have built-in format code + $numberformat = array('code' => $code); + } else { + // we set the general format code + $numberformat = array('code' => 'General'); + } + $objStyle->getNumberFormat()->setFormatCode($numberformat['code']); + + // offset: 4; size: 2; XF type, cell protection, and parent style XF + // bit 2-0; mask 0x0007; XF_TYPE_PROT + $xfTypeProt = self::_GetInt2d($recordData, 4); + // bit 0; mask 0x01; 1 = cell is locked + $isLocked = (0x01 & $xfTypeProt) >> 0; + $objStyle->getProtection()->setLocked($isLocked ? + PHPExcel_Style_Protection::PROTECTION_INHERIT : PHPExcel_Style_Protection::PROTECTION_UNPROTECTED); + + // bit 1; mask 0x02; 1 = Formula is hidden + $isHidden = (0x02 & $xfTypeProt) >> 1; + $objStyle->getProtection()->setHidden($isHidden ? + PHPExcel_Style_Protection::PROTECTION_PROTECTED : PHPExcel_Style_Protection::PROTECTION_UNPROTECTED); + + // bit 2; mask 0x04; 0 = Cell XF, 1 = Cell Style XF + $isCellStyleXf = (0x04 & $xfTypeProt) >> 2; + + // offset: 6; size: 1; Alignment and text break + // bit 2-0, mask 0x07; horizontal alignment + $horAlign = (0x07 & ord($recordData{6})) >> 0; + switch ($horAlign) { + case 0: + $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_GENERAL); + break; + case 1: + $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_LEFT); + break; + case 2: + $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER); + break; + case 3: + $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_RIGHT); + break; + case 4: + $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_FILL); + break; + case 5: + $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY); + break; + case 6: + $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS); + break; + } + // bit 3, mask 0x08; wrap text + $wrapText = (0x08 & ord($recordData{6})) >> 3; + switch ($wrapText) { + case 0: + $objStyle->getAlignment()->setWrapText(false); + break; + case 1: + $objStyle->getAlignment()->setWrapText(true); + break; + } + // bit 6-4, mask 0x70; vertical alignment + $vertAlign = (0x70 & ord($recordData{6})) >> 4; + switch ($vertAlign) { + case 0: + $objStyle->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_TOP); + break; + case 1: + $objStyle->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER); + break; + case 2: + $objStyle->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_BOTTOM); + break; + case 3: + $objStyle->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_JUSTIFY); + break; + } + + if ($this->_version == self::XLS_BIFF8) { + // offset: 7; size: 1; XF_ROTATION: Text rotation angle + $angle = ord($recordData{7}); + $rotation = 0; + if ($angle <= 90) { + $rotation = $angle; + } else if ($angle <= 180) { + $rotation = 90 - $angle; + } else if ($angle == 255) { + $rotation = -165; + } + $objStyle->getAlignment()->setTextRotation($rotation); + + // offset: 8; size: 1; Indentation, shrink to cell size, and text direction + // bit: 3-0; mask: 0x0F; indent level + $indent = (0x0F & ord($recordData{8})) >> 0; + $objStyle->getAlignment()->setIndent($indent); + + // bit: 4; mask: 0x10; 1 = shrink content to fit into cell + $shrinkToFit = (0x10 & ord($recordData{8})) >> 4; + switch ($shrinkToFit) { + case 0: + $objStyle->getAlignment()->setShrinkToFit(false); + break; + case 1: + $objStyle->getAlignment()->setShrinkToFit(true); + break; + } + + // offset: 9; size: 1; Flags used for attribute groups + + // offset: 10; size: 4; Cell border lines and background area + // bit: 3-0; mask: 0x0000000F; left style + if ($bordersLeftStyle = self::_mapBorderStyle((0x0000000F & self::_GetInt4d($recordData, 10)) >> 0)) { + $objStyle->getBorders()->getLeft()->setBorderStyle($bordersLeftStyle); + } + // bit: 7-4; mask: 0x000000F0; right style + if ($bordersRightStyle = self::_mapBorderStyle((0x000000F0 & self::_GetInt4d($recordData, 10)) >> 4)) { + $objStyle->getBorders()->getRight()->setBorderStyle($bordersRightStyle); + } + // bit: 11-8; mask: 0x00000F00; top style + if ($bordersTopStyle = self::_mapBorderStyle((0x00000F00 & self::_GetInt4d($recordData, 10)) >> 8)) { + $objStyle->getBorders()->getTop()->setBorderStyle($bordersTopStyle); + } + // bit: 15-12; mask: 0x0000F000; bottom style + if ($bordersBottomStyle = self::_mapBorderStyle((0x0000F000 & self::_GetInt4d($recordData, 10)) >> 12)) { + $objStyle->getBorders()->getBottom()->setBorderStyle($bordersBottomStyle); + } + // bit: 22-16; mask: 0x007F0000; left color + $objStyle->getBorders()->getLeft()->colorIndex = (0x007F0000 & self::_GetInt4d($recordData, 10)) >> 16; + + // bit: 29-23; mask: 0x3F800000; right color + $objStyle->getBorders()->getRight()->colorIndex = (0x3F800000 & self::_GetInt4d($recordData, 10)) >> 23; + + // bit: 30; mask: 0x40000000; 1 = diagonal line from top left to right bottom + $diagonalDown = (0x40000000 & self::_GetInt4d($recordData, 10)) >> 30 ? + true : false; + + // bit: 31; mask: 0x80000000; 1 = diagonal line from bottom left to top right + $diagonalUp = (0x80000000 & self::_GetInt4d($recordData, 10)) >> 31 ? + true : false; + + if ($diagonalUp == false && $diagonalDown == false) { + $objStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_NONE); + } elseif ($diagonalUp == true && $diagonalDown == false) { + $objStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_UP); + } elseif ($diagonalUp == false && $diagonalDown == true) { + $objStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_DOWN); + } elseif ($diagonalUp == true && $diagonalDown == true) { + $objStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_BOTH); + } + + // offset: 14; size: 4; + // bit: 6-0; mask: 0x0000007F; top color + $objStyle->getBorders()->getTop()->colorIndex = (0x0000007F & self::_GetInt4d($recordData, 14)) >> 0; + + // bit: 13-7; mask: 0x00003F80; bottom color + $objStyle->getBorders()->getBottom()->colorIndex = (0x00003F80 & self::_GetInt4d($recordData, 14)) >> 7; + + // bit: 20-14; mask: 0x001FC000; diagonal color + $objStyle->getBorders()->getDiagonal()->colorIndex = (0x001FC000 & self::_GetInt4d($recordData, 14)) >> 14; + + // bit: 24-21; mask: 0x01E00000; diagonal style + if ($bordersDiagonalStyle = self::_mapBorderStyle((0x01E00000 & self::_GetInt4d($recordData, 14)) >> 21)) { + $objStyle->getBorders()->getDiagonal()->setBorderStyle($bordersDiagonalStyle); + } + + // bit: 31-26; mask: 0xFC000000 fill pattern + if ($fillType = self::_mapFillPattern((0xFC000000 & self::_GetInt4d($recordData, 14)) >> 26)) { + $objStyle->getFill()->setFillType($fillType); + } + // offset: 18; size: 2; pattern and background colour + // bit: 6-0; mask: 0x007F; color index for pattern color + $objStyle->getFill()->startcolorIndex = (0x007F & self::_GetInt2d($recordData, 18)) >> 0; + + // bit: 13-7; mask: 0x3F80; color index for pattern background + $objStyle->getFill()->endcolorIndex = (0x3F80 & self::_GetInt2d($recordData, 18)) >> 7; + } else { + // BIFF5 + + // offset: 7; size: 1; Text orientation and flags + $orientationAndFlags = ord($recordData{7}); + + // bit: 1-0; mask: 0x03; XF_ORIENTATION: Text orientation + $xfOrientation = (0x03 & $orientationAndFlags) >> 0; + switch ($xfOrientation) { + case 0: + $objStyle->getAlignment()->setTextRotation(0); + break; + case 1: + $objStyle->getAlignment()->setTextRotation(-165); + break; + case 2: + $objStyle->getAlignment()->setTextRotation(90); + break; + case 3: + $objStyle->getAlignment()->setTextRotation(-90); + break; + } + + // offset: 8; size: 4; cell border lines and background area + $borderAndBackground = self::_GetInt4d($recordData, 8); + + // bit: 6-0; mask: 0x0000007F; color index for pattern color + $objStyle->getFill()->startcolorIndex = (0x0000007F & $borderAndBackground) >> 0; + + // bit: 13-7; mask: 0x00003F80; color index for pattern background + $objStyle->getFill()->endcolorIndex = (0x00003F80 & $borderAndBackground) >> 7; + + // bit: 21-16; mask: 0x003F0000; fill pattern + $objStyle->getFill()->setFillType(self::_mapFillPattern((0x003F0000 & $borderAndBackground) >> 16)); + + // bit: 24-22; mask: 0x01C00000; bottom line style + $objStyle->getBorders()->getBottom()->setBorderStyle(self::_mapBorderStyle((0x01C00000 & $borderAndBackground) >> 22)); + + // bit: 31-25; mask: 0xFE000000; bottom line color + $objStyle->getBorders()->getBottom()->colorIndex = (0xFE000000 & $borderAndBackground) >> 25; + + // offset: 12; size: 4; cell border lines + $borderLines = self::_GetInt4d($recordData, 12); + + // bit: 2-0; mask: 0x00000007; top line style + $objStyle->getBorders()->getTop()->setBorderStyle(self::_mapBorderStyle((0x00000007 & $borderLines) >> 0)); + + // bit: 5-3; mask: 0x00000038; left line style + $objStyle->getBorders()->getLeft()->setBorderStyle(self::_mapBorderStyle((0x00000038 & $borderLines) >> 3)); + + // bit: 8-6; mask: 0x000001C0; right line style + $objStyle->getBorders()->getRight()->setBorderStyle(self::_mapBorderStyle((0x000001C0 & $borderLines) >> 6)); + + // bit: 15-9; mask: 0x0000FE00; top line color index + $objStyle->getBorders()->getTop()->colorIndex = (0x0000FE00 & $borderLines) >> 9; + + // bit: 22-16; mask: 0x007F0000; left line color index + $objStyle->getBorders()->getLeft()->colorIndex = (0x007F0000 & $borderLines) >> 16; + + // bit: 29-23; mask: 0x3F800000; right line color index + $objStyle->getBorders()->getRight()->colorIndex = (0x3F800000 & $borderLines) >> 23; + } + + // add cellStyleXf or cellXf and update mapping + if ($isCellStyleXf) { + // we only read one style XF record which is always the first + if ($this->_xfIndex == 0) { + $this->_phpExcel->addCellStyleXf($objStyle); + $this->_mapCellStyleXfIndex[$this->_xfIndex] = 0; + } + } else { + // we read all cell XF records + $this->_phpExcel->addCellXf($objStyle); + $this->_mapCellXfIndex[$this->_xfIndex] = count($this->_phpExcel->getCellXfCollection()) - 1; + } + + // update XF index for when we read next record + ++$this->_xfIndex; + } + } + + + /** + * + */ + private function _readXfExt() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 2; 0x087D = repeated header + + // offset: 2; size: 2 + + // offset: 4; size: 8; not used + + // offset: 12; size: 2; record version + + // offset: 14; size: 2; index to XF record which this record modifies + $ixfe = self::_GetInt2d($recordData, 14); + + // offset: 16; size: 2; not used + + // offset: 18; size: 2; number of extension properties that follow + $cexts = self::_GetInt2d($recordData, 18); + + // start reading the actual extension data + $offset = 20; + while ($offset < $length) { + // extension type + $extType = self::_GetInt2d($recordData, $offset); + + // extension length + $cb = self::_GetInt2d($recordData, $offset + 2); + + // extension data + $extData = substr($recordData, $offset + 4, $cb); + + switch ($extType) { + case 4: // fill start color + $xclfType = self::_GetInt2d($extData, 0); // color type + $xclrValue = substr($extData, 4, 4); // color value (value based on color type) + + if ($xclfType == 2) { + $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); + + // modify the relevant style property + if ( isset($this->_mapCellXfIndex[$ixfe]) ) { + $fill = $this->_phpExcel->getCellXfByIndex($this->_mapCellXfIndex[$ixfe])->getFill(); + $fill->getStartColor()->setRGB($rgb); + unset($fill->startcolorIndex); // normal color index does not apply, discard + } + } + break; + + case 5: // fill end color + $xclfType = self::_GetInt2d($extData, 0); // color type + $xclrValue = substr($extData, 4, 4); // color value (value based on color type) + + if ($xclfType == 2) { + $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); + + // modify the relevant style property + if ( isset($this->_mapCellXfIndex[$ixfe]) ) { + $fill = $this->_phpExcel->getCellXfByIndex($this->_mapCellXfIndex[$ixfe])->getFill(); + $fill->getEndColor()->setRGB($rgb); + unset($fill->endcolorIndex); // normal color index does not apply, discard + } + } + break; + + case 7: // border color top + $xclfType = self::_GetInt2d($extData, 0); // color type + $xclrValue = substr($extData, 4, 4); // color value (value based on color type) + + if ($xclfType == 2) { + $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); + + // modify the relevant style property + if ( isset($this->_mapCellXfIndex[$ixfe]) ) { + $top = $this->_phpExcel->getCellXfByIndex($this->_mapCellXfIndex[$ixfe])->getBorders()->getTop(); + $top->getColor()->setRGB($rgb); + unset($top->colorIndex); // normal color index does not apply, discard + } + } + break; + + case 8: // border color bottom + $xclfType = self::_GetInt2d($extData, 0); // color type + $xclrValue = substr($extData, 4, 4); // color value (value based on color type) + + if ($xclfType == 2) { + $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); + + // modify the relevant style property + if ( isset($this->_mapCellXfIndex[$ixfe]) ) { + $bottom = $this->_phpExcel->getCellXfByIndex($this->_mapCellXfIndex[$ixfe])->getBorders()->getBottom(); + $bottom->getColor()->setRGB($rgb); + unset($bottom->colorIndex); // normal color index does not apply, discard + } + } + break; + + case 9: // border color left + $xclfType = self::_GetInt2d($extData, 0); // color type + $xclrValue = substr($extData, 4, 4); // color value (value based on color type) + + if ($xclfType == 2) { + $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); + + // modify the relevant style property + if ( isset($this->_mapCellXfIndex[$ixfe]) ) { + $left = $this->_phpExcel->getCellXfByIndex($this->_mapCellXfIndex[$ixfe])->getBorders()->getLeft(); + $left->getColor()->setRGB($rgb); + unset($left->colorIndex); // normal color index does not apply, discard + } + } + break; + + case 10: // border color right + $xclfType = self::_GetInt2d($extData, 0); // color type + $xclrValue = substr($extData, 4, 4); // color value (value based on color type) + + if ($xclfType == 2) { + $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); + + // modify the relevant style property + if ( isset($this->_mapCellXfIndex[$ixfe]) ) { + $right = $this->_phpExcel->getCellXfByIndex($this->_mapCellXfIndex[$ixfe])->getBorders()->getRight(); + $right->getColor()->setRGB($rgb); + unset($right->colorIndex); // normal color index does not apply, discard + } + } + break; + + case 11: // border color diagonal + $xclfType = self::_GetInt2d($extData, 0); // color type + $xclrValue = substr($extData, 4, 4); // color value (value based on color type) + + if ($xclfType == 2) { + $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); + + // modify the relevant style property + if ( isset($this->_mapCellXfIndex[$ixfe]) ) { + $diagonal = $this->_phpExcel->getCellXfByIndex($this->_mapCellXfIndex[$ixfe])->getBorders()->getDiagonal(); + $diagonal->getColor()->setRGB($rgb); + unset($diagonal->colorIndex); // normal color index does not apply, discard + } + } + break; + + case 13: // font color + $xclfType = self::_GetInt2d($extData, 0); // color type + $xclrValue = substr($extData, 4, 4); // color value (value based on color type) + + if ($xclfType == 2) { + $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); + + // modify the relevant style property + if ( isset($this->_mapCellXfIndex[$ixfe]) ) { + $font = $this->_phpExcel->getCellXfByIndex($this->_mapCellXfIndex[$ixfe])->getFont(); + $font->getColor()->setRGB($rgb); + unset($font->colorIndex); // normal color index does not apply, discard + } + } + break; + } + + $offset += $cb; + } + } + + } + + + /** + * Read STYLE record + */ + private function _readStyle() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 2; index to XF record and flag for built-in style + $ixfe = self::_GetInt2d($recordData, 0); + + // bit: 11-0; mask 0x0FFF; index to XF record + $xfIndex = (0x0FFF & $ixfe) >> 0; + + // bit: 15; mask 0x8000; 0 = user-defined style, 1 = built-in style + $isBuiltIn = (bool) ((0x8000 & $ixfe) >> 15); + + if ($isBuiltIn) { + // offset: 2; size: 1; identifier for built-in style + $builtInId = ord($recordData{2}); + + switch ($builtInId) { + case 0x00: + // currently, we are not using this for anything + break; + + default: + break; + } + + } else { + // user-defined; not supported by PHPExcel + } + } + } + + + /** + * Read PALETTE record + */ + private function _readPalette() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 2; number of following colors + $nm = self::_GetInt2d($recordData, 0); + + // list of RGB colors + for ($i = 0; $i < $nm; ++$i) { + $rgb = substr($recordData, 2 + 4 * $i, 4); + $this->_palette[] = self::_readRGB($rgb); + } + } + } + + + /** + * SHEET + * + * This record is located in the Workbook Globals + * Substream and represents a sheet inside the workbook. + * One SHEET record is written for each sheet. It stores the + * sheet name and a stream offset to the BOF record of the + * respective Sheet Substream within the Workbook Stream. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readSheet() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // offset: 0; size: 4; absolute stream position of the BOF record of the sheet + // NOTE: not encrypted + $rec_offset = self::_GetInt4d($this->_data, $this->_pos + 4); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 4; size: 1; sheet state + switch (ord($recordData{4})) { + case 0x00: $sheetState = PHPExcel_Worksheet::SHEETSTATE_VISIBLE; break; + case 0x01: $sheetState = PHPExcel_Worksheet::SHEETSTATE_HIDDEN; break; + case 0x02: $sheetState = PHPExcel_Worksheet::SHEETSTATE_VERYHIDDEN; break; + default: $sheetState = PHPExcel_Worksheet::SHEETSTATE_VISIBLE; break; + } + + // offset: 5; size: 1; sheet type + $sheetType = ord($recordData{5}); + + // offset: 6; size: var; sheet name + if ($this->_version == self::XLS_BIFF8) { + $string = self::_readUnicodeStringShort(substr($recordData, 6)); + $rec_name = $string['value']; + } elseif ($this->_version == self::XLS_BIFF7) { + $string = $this->_readByteStringShort(substr($recordData, 6)); + $rec_name = $string['value']; + } + + $this->_sheets[] = array( + 'name' => $rec_name, + 'offset' => $rec_offset, + 'sheetState' => $sheetState, + 'sheetType' => $sheetType, + ); + } + + + /** + * Read EXTERNALBOOK record + */ + private function _readExternalBook() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset within record data + $offset = 0; + + // there are 4 types of records + if (strlen($recordData) > 4) { + // external reference + // offset: 0; size: 2; number of sheet names ($nm) + $nm = self::_GetInt2d($recordData, 0); + $offset += 2; + + // offset: 2; size: var; encoded URL without sheet name (Unicode string, 16-bit length) + $encodedUrlString = self::_readUnicodeStringLong(substr($recordData, 2)); + $offset += $encodedUrlString['size']; + + // offset: var; size: var; list of $nm sheet names (Unicode strings, 16-bit length) + $externalSheetNames = array(); + for ($i = 0; $i < $nm; ++$i) { + $externalSheetNameString = self::_readUnicodeStringLong(substr($recordData, $offset)); + $externalSheetNames[] = $externalSheetNameString['value']; + $offset += $externalSheetNameString['size']; + } + + // store the record data + $this->_externalBooks[] = array( + 'type' => 'external', + 'encodedUrl' => $encodedUrlString['value'], + 'externalSheetNames' => $externalSheetNames, + ); + + } elseif (substr($recordData, 2, 2) == pack('CC', 0x01, 0x04)) { + // internal reference + // offset: 0; size: 2; number of sheet in this document + // offset: 2; size: 2; 0x01 0x04 + $this->_externalBooks[] = array( + 'type' => 'internal', + ); + } elseif (substr($recordData, 0, 4) == pack('vCC', 0x0001, 0x01, 0x3A)) { + // add-in function + // offset: 0; size: 2; 0x0001 + $this->_externalBooks[] = array( + 'type' => 'addInFunction', + ); + } elseif (substr($recordData, 0, 2) == pack('v', 0x0000)) { + // DDE links, OLE links + // offset: 0; size: 2; 0x0000 + // offset: 2; size: var; encoded source document name + $this->_externalBooks[] = array( + 'type' => 'DDEorOLE', + ); + } + } + + + /** + * Read EXTERNNAME record. + */ + private function _readExternName() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // external sheet references provided for named cells + if ($this->_version == self::XLS_BIFF8) { + // offset: 0; size: 2; options + $options = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 2; + + // offset: 4; size: 2; not used + + // offset: 6; size: var + $nameString = self::_readUnicodeStringShort(substr($recordData, 6)); + + // offset: var; size: var; formula data + $offset = 6 + $nameString['size']; + $formula = $this->_getFormulaFromStructure(substr($recordData, $offset)); + + $this->_externalNames[] = array( + 'name' => $nameString['value'], + 'formula' => $formula, + ); + } + } + + + /** + * Read EXTERNSHEET record + */ + private function _readExternSheet() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // external sheet references provided for named cells + if ($this->_version == self::XLS_BIFF8) { + // offset: 0; size: 2; number of following ref structures + $nm = self::_GetInt2d($recordData, 0); + for ($i = 0; $i < $nm; ++$i) { + $this->_ref[] = array( + // offset: 2 + 6 * $i; index to EXTERNALBOOK record + 'externalBookIndex' => self::_GetInt2d($recordData, 2 + 6 * $i), + // offset: 4 + 6 * $i; index to first sheet in EXTERNALBOOK record + 'firstSheetIndex' => self::_GetInt2d($recordData, 4 + 6 * $i), + // offset: 6 + 6 * $i; index to last sheet in EXTERNALBOOK record + 'lastSheetIndex' => self::_GetInt2d($recordData, 6 + 6 * $i), + ); + } + } + } + + + /** + * DEFINEDNAME + * + * This record is part of a Link Table. It contains the name + * and the token array of an internal defined name. Token + * arrays of defined names contain tokens with aberrant + * token classes. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readDefinedName() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if ($this->_version == self::XLS_BIFF8) { + // retrieves named cells + + // offset: 0; size: 2; option flags + $opts = self::_GetInt2d($recordData, 0); + + // bit: 5; mask: 0x0020; 0 = user-defined name, 1 = built-in-name + $isBuiltInName = (0x0020 & $opts) >> 5; + + // offset: 2; size: 1; keyboard shortcut + + // offset: 3; size: 1; length of the name (character count) + $nlen = ord($recordData{3}); + + // offset: 4; size: 2; size of the formula data (it can happen that this is zero) + // note: there can also be additional data, this is not included in $flen + $flen = self::_GetInt2d($recordData, 4); + + // offset: 8; size: 2; 0=Global name, otherwise index to sheet (1-based) + $scope = self::_GetInt2d($recordData, 8); + + // offset: 14; size: var; Name (Unicode string without length field) + $string = self::_readUnicodeString(substr($recordData, 14), $nlen); + + // offset: var; size: $flen; formula data + $offset = 14 + $string['size']; + $formulaStructure = pack('v', $flen) . substr($recordData, $offset); + + try { + $formula = $this->_getFormulaFromStructure($formulaStructure); + } catch (PHPExcel_Exception $e) { + $formula = ''; + } + + $this->_definedname[] = array( + 'isBuiltInName' => $isBuiltInName, + 'name' => $string['value'], + 'formula' => $formula, + 'scope' => $scope, + ); + } + } + + + /** + * Read MSODRAWINGGROUP record + */ + private function _readMsoDrawingGroup() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + + // get spliced record data + $splicedRecordData = $this->_getSplicedRecordData(); + $recordData = $splicedRecordData['recordData']; + + $this->_drawingGroupData .= $recordData; + } + + + /** + * SST - Shared String Table + * + * This record contains a list of all strings used anywhere + * in the workbook. Each string occurs only once. The + * workbook uses indexes into the list to reference the + * strings. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + **/ + private function _readSst() + { + // offset within (spliced) record data + $pos = 0; + + // get spliced record data + $splicedRecordData = $this->_getSplicedRecordData(); + + $recordData = $splicedRecordData['recordData']; + $spliceOffsets = $splicedRecordData['spliceOffsets']; + + // offset: 0; size: 4; total number of strings in the workbook + $pos += 4; + + // offset: 4; size: 4; number of following strings ($nm) + $nm = self::_GetInt4d($recordData, 4); + $pos += 4; + + // loop through the Unicode strings (16-bit length) + for ($i = 0; $i < $nm; ++$i) { + + // number of characters in the Unicode string + $numChars = self::_GetInt2d($recordData, $pos); + $pos += 2; + + // option flags + $optionFlags = ord($recordData{$pos}); + ++$pos; + + // bit: 0; mask: 0x01; 0 = compressed; 1 = uncompressed + $isCompressed = (($optionFlags & 0x01) == 0) ; + + // bit: 2; mask: 0x02; 0 = ordinary; 1 = Asian phonetic + $hasAsian = (($optionFlags & 0x04) != 0); + + // bit: 3; mask: 0x03; 0 = ordinary; 1 = Rich-Text + $hasRichText = (($optionFlags & 0x08) != 0); + + if ($hasRichText) { + // number of Rich-Text formatting runs + $formattingRuns = self::_GetInt2d($recordData, $pos); + $pos += 2; + } + + if ($hasAsian) { + // size of Asian phonetic setting + $extendedRunLength = self::_GetInt4d($recordData, $pos); + $pos += 4; + } + + // expected byte length of character array if not split + $len = ($isCompressed) ? $numChars : $numChars * 2; + + // look up limit position + foreach ($spliceOffsets as $spliceOffset) { + // it can happen that the string is empty, therefore we need + // <= and not just < + if ($pos <= $spliceOffset) { + $limitpos = $spliceOffset; + break; + } + } + + if ($pos + $len <= $limitpos) { + // character array is not split between records + + $retstr = substr($recordData, $pos, $len); + $pos += $len; + + } else { + // character array is split between records + + // first part of character array + $retstr = substr($recordData, $pos, $limitpos - $pos); + + $bytesRead = $limitpos - $pos; + + // remaining characters in Unicode string + $charsLeft = $numChars - (($isCompressed) ? $bytesRead : ($bytesRead / 2)); + + $pos = $limitpos; + + // keep reading the characters + while ($charsLeft > 0) { + + // look up next limit position, in case the string span more than one continue record + foreach ($spliceOffsets as $spliceOffset) { + if ($pos < $spliceOffset) { + $limitpos = $spliceOffset; + break; + } + } + + // repeated option flags + // OpenOffice.org documentation 5.21 + $option = ord($recordData{$pos}); + ++$pos; + + if ($isCompressed && ($option == 0)) { + // 1st fragment compressed + // this fragment compressed + $len = min($charsLeft, $limitpos - $pos); + $retstr .= substr($recordData, $pos, $len); + $charsLeft -= $len; + $isCompressed = true; + + } elseif (!$isCompressed && ($option != 0)) { + // 1st fragment uncompressed + // this fragment uncompressed + $len = min($charsLeft * 2, $limitpos - $pos); + $retstr .= substr($recordData, $pos, $len); + $charsLeft -= $len / 2; + $isCompressed = false; + + } elseif (!$isCompressed && ($option == 0)) { + // 1st fragment uncompressed + // this fragment compressed + $len = min($charsLeft, $limitpos - $pos); + for ($j = 0; $j < $len; ++$j) { + $retstr .= $recordData{$pos + $j} . chr(0); + } + $charsLeft -= $len; + $isCompressed = false; + + } else { + // 1st fragment compressed + // this fragment uncompressed + $newstr = ''; + for ($j = 0; $j < strlen($retstr); ++$j) { + $newstr .= $retstr[$j] . chr(0); + } + $retstr = $newstr; + $len = min($charsLeft * 2, $limitpos - $pos); + $retstr .= substr($recordData, $pos, $len); + $charsLeft -= $len / 2; + $isCompressed = false; + } + + $pos += $len; + } + } + + // convert to UTF-8 + $retstr = self::_encodeUTF16($retstr, $isCompressed); + + // read additional Rich-Text information, if any + $fmtRuns = array(); + if ($hasRichText) { + // list of formatting runs + for ($j = 0; $j < $formattingRuns; ++$j) { + // first formatted character; zero-based + $charPos = self::_GetInt2d($recordData, $pos + $j * 4); + + // index to font record + $fontIndex = self::_GetInt2d($recordData, $pos + 2 + $j * 4); + + $fmtRuns[] = array( + 'charPos' => $charPos, + 'fontIndex' => $fontIndex, + ); + } + $pos += 4 * $formattingRuns; + } + + // read additional Asian phonetics information, if any + if ($hasAsian) { + // For Asian phonetic settings, we skip the extended string data + $pos += $extendedRunLength; + } + + // store the shared sting + $this->_sst[] = array( + 'value' => $retstr, + 'fmtRuns' => $fmtRuns, + ); + } + + // _getSplicedRecordData() takes care of moving current position in data stream + } + + + /** + * Read PRINTGRIDLINES record + */ + private function _readPrintGridlines() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if ($this->_version == self::XLS_BIFF8 && !$this->_readDataOnly) { + // offset: 0; size: 2; 0 = do not print sheet grid lines; 1 = print sheet gridlines + $printGridlines = (bool) self::_GetInt2d($recordData, 0); + $this->_phpSheet->setPrintGridlines($printGridlines); + } + } + + + /** + * Read DEFAULTROWHEIGHT record + */ + private function _readDefaultRowHeight() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2; option flags + // offset: 2; size: 2; default height for unused rows, (twips 1/20 point) + $height = self::_GetInt2d($recordData, 2); + $this->_phpSheet->getDefaultRowDimension()->setRowHeight($height / 20); + } + + + /** + * Read SHEETPR record + */ + private function _readSheetPr() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2 + + // bit: 6; mask: 0x0040; 0 = outline buttons above outline group + $isSummaryBelow = (0x0040 & self::_GetInt2d($recordData, 0)) >> 6; + $this->_phpSheet->setShowSummaryBelow($isSummaryBelow); + + // bit: 7; mask: 0x0080; 0 = outline buttons left of outline group + $isSummaryRight = (0x0080 & self::_GetInt2d($recordData, 0)) >> 7; + $this->_phpSheet->setShowSummaryRight($isSummaryRight); + + // bit: 8; mask: 0x100; 0 = scale printout in percent, 1 = fit printout to number of pages + // this corresponds to radio button setting in page setup dialog in Excel + $this->_isFitToPages = (bool) ((0x0100 & self::_GetInt2d($recordData, 0)) >> 8); + } + + + /** + * Read HORIZONTALPAGEBREAKS record + */ + private function _readHorizontalPageBreaks() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if ($this->_version == self::XLS_BIFF8 && !$this->_readDataOnly) { + + // offset: 0; size: 2; number of the following row index structures + $nm = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 6 * $nm; list of $nm row index structures + for ($i = 0; $i < $nm; ++$i) { + $r = self::_GetInt2d($recordData, 2 + 6 * $i); + $cf = self::_GetInt2d($recordData, 2 + 6 * $i + 2); + $cl = self::_GetInt2d($recordData, 2 + 6 * $i + 4); + + // not sure why two column indexes are necessary? + $this->_phpSheet->setBreakByColumnAndRow($cf, $r, PHPExcel_Worksheet::BREAK_ROW); + } + } + } + + + /** + * Read VERTICALPAGEBREAKS record + */ + private function _readVerticalPageBreaks() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if ($this->_version == self::XLS_BIFF8 && !$this->_readDataOnly) { + // offset: 0; size: 2; number of the following column index structures + $nm = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 6 * $nm; list of $nm row index structures + for ($i = 0; $i < $nm; ++$i) { + $c = self::_GetInt2d($recordData, 2 + 6 * $i); + $rf = self::_GetInt2d($recordData, 2 + 6 * $i + 2); + $rl = self::_GetInt2d($recordData, 2 + 6 * $i + 4); + + // not sure why two row indexes are necessary? + $this->_phpSheet->setBreakByColumnAndRow($c, $rf, PHPExcel_Worksheet::BREAK_COLUMN); + } + } + } + + + /** + * Read HEADER record + */ + private function _readHeader() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: var + // realized that $recordData can be empty even when record exists + if ($recordData) { + if ($this->_version == self::XLS_BIFF8) { + $string = self::_readUnicodeStringLong($recordData); + } else { + $string = $this->_readByteStringShort($recordData); + } + + $this->_phpSheet->getHeaderFooter()->setOddHeader($string['value']); + $this->_phpSheet->getHeaderFooter()->setEvenHeader($string['value']); + } + } + } + + + /** + * Read FOOTER record + */ + private function _readFooter() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: var + // realized that $recordData can be empty even when record exists + if ($recordData) { + if ($this->_version == self::XLS_BIFF8) { + $string = self::_readUnicodeStringLong($recordData); + } else { + $string = $this->_readByteStringShort($recordData); + } + $this->_phpSheet->getHeaderFooter()->setOddFooter($string['value']); + $this->_phpSheet->getHeaderFooter()->setEvenFooter($string['value']); + } + } + } + + + /** + * Read HCENTER record + */ + private function _readHcenter() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 2; 0 = print sheet left aligned, 1 = print sheet centered horizontally + $isHorizontalCentered = (bool) self::_GetInt2d($recordData, 0); + + $this->_phpSheet->getPageSetup()->setHorizontalCentered($isHorizontalCentered); + } + } + + + /** + * Read VCENTER record + */ + private function _readVcenter() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 2; 0 = print sheet aligned at top page border, 1 = print sheet vertically centered + $isVerticalCentered = (bool) self::_GetInt2d($recordData, 0); + + $this->_phpSheet->getPageSetup()->setVerticalCentered($isVerticalCentered); + } + } + + + /** + * Read LEFTMARGIN record + */ + private function _readLeftMargin() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 8 + $this->_phpSheet->getPageMargins()->setLeft(self::_extractNumber($recordData)); + } + } + + + /** + * Read RIGHTMARGIN record + */ + private function _readRightMargin() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 8 + $this->_phpSheet->getPageMargins()->setRight(self::_extractNumber($recordData)); + } + } + + + /** + * Read TOPMARGIN record + */ + private function _readTopMargin() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 8 + $this->_phpSheet->getPageMargins()->setTop(self::_extractNumber($recordData)); + } + } + + + /** + * Read BOTTOMMARGIN record + */ + private function _readBottomMargin() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 8 + $this->_phpSheet->getPageMargins()->setBottom(self::_extractNumber($recordData)); + } + } + + + /** + * Read PAGESETUP record + */ + private function _readPageSetup() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 2; paper size + $paperSize = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 2; scaling factor + $scale = self::_GetInt2d($recordData, 2); + + // offset: 6; size: 2; fit worksheet width to this number of pages, 0 = use as many as needed + $fitToWidth = self::_GetInt2d($recordData, 6); + + // offset: 8; size: 2; fit worksheet height to this number of pages, 0 = use as many as needed + $fitToHeight = self::_GetInt2d($recordData, 8); + + // offset: 10; size: 2; option flags + + // bit: 1; mask: 0x0002; 0=landscape, 1=portrait + $isPortrait = (0x0002 & self::_GetInt2d($recordData, 10)) >> 1; + + // bit: 2; mask: 0x0004; 1= paper size, scaling factor, paper orient. not init + // when this bit is set, do not use flags for those properties + $isNotInit = (0x0004 & self::_GetInt2d($recordData, 10)) >> 2; + + if (!$isNotInit) { + $this->_phpSheet->getPageSetup()->setPaperSize($paperSize); + switch ($isPortrait) { + case 0: $this->_phpSheet->getPageSetup()->setOrientation(PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE); break; + case 1: $this->_phpSheet->getPageSetup()->setOrientation(PHPExcel_Worksheet_PageSetup::ORIENTATION_PORTRAIT); break; + } + + $this->_phpSheet->getPageSetup()->setScale($scale, false); + $this->_phpSheet->getPageSetup()->setFitToPage((bool) $this->_isFitToPages); + $this->_phpSheet->getPageSetup()->setFitToWidth($fitToWidth, false); + $this->_phpSheet->getPageSetup()->setFitToHeight($fitToHeight, false); + } + + // offset: 16; size: 8; header margin (IEEE 754 floating-point value) + $marginHeader = self::_extractNumber(substr($recordData, 16, 8)); + $this->_phpSheet->getPageMargins()->setHeader($marginHeader); + + // offset: 24; size: 8; footer margin (IEEE 754 floating-point value) + $marginFooter = self::_extractNumber(substr($recordData, 24, 8)); + $this->_phpSheet->getPageMargins()->setFooter($marginFooter); + } + } + + + /** + * PROTECT - Sheet protection (BIFF2 through BIFF8) + * if this record is omitted, then it also means no sheet protection + */ + private function _readProtect() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if ($this->_readDataOnly) { + return; + } + + // offset: 0; size: 2; + + // bit 0, mask 0x01; 1 = sheet is protected + $bool = (0x01 & self::_GetInt2d($recordData, 0)) >> 0; + $this->_phpSheet->getProtection()->setSheet((bool)$bool); + } + + + /** + * SCENPROTECT + */ + private function _readScenProtect() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if ($this->_readDataOnly) { + return; + } + + // offset: 0; size: 2; + + // bit: 0, mask 0x01; 1 = scenarios are protected + $bool = (0x01 & self::_GetInt2d($recordData, 0)) >> 0; + + $this->_phpSheet->getProtection()->setScenarios((bool)$bool); + } + + + /** + * OBJECTPROTECT + */ + private function _readObjectProtect() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if ($this->_readDataOnly) { + return; + } + + // offset: 0; size: 2; + + // bit: 0, mask 0x01; 1 = objects are protected + $bool = (0x01 & self::_GetInt2d($recordData, 0)) >> 0; + + $this->_phpSheet->getProtection()->setObjects((bool)$bool); + } + + + /** + * PASSWORD - Sheet protection (hashed) password (BIFF2 through BIFF8) + */ + private function _readPassword() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 2; 16-bit hash value of password + $password = strtoupper(dechex(self::_GetInt2d($recordData, 0))); // the hashed password + $this->_phpSheet->getProtection()->setPassword($password, true); + } + } + + + /** + * Read DEFCOLWIDTH record + */ + private function _readDefColWidth() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2; default column width + $width = self::_GetInt2d($recordData, 0); + if ($width != 8) { + $this->_phpSheet->getDefaultColumnDimension()->setWidth($width); + } + } + + + /** + * Read COLINFO record + */ + private function _readColInfo() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 2; index to first column in range + $fc = self::_GetInt2d($recordData, 0); // first column index + + // offset: 2; size: 2; index to last column in range + $lc = self::_GetInt2d($recordData, 2); // first column index + + // offset: 4; size: 2; width of the column in 1/256 of the width of the zero character + $width = self::_GetInt2d($recordData, 4); + + // offset: 6; size: 2; index to XF record for default column formatting + $xfIndex = self::_GetInt2d($recordData, 6); + + // offset: 8; size: 2; option flags + + // bit: 0; mask: 0x0001; 1= columns are hidden + $isHidden = (0x0001 & self::_GetInt2d($recordData, 8)) >> 0; + + // bit: 10-8; mask: 0x0700; outline level of the columns (0 = no outline) + $level = (0x0700 & self::_GetInt2d($recordData, 8)) >> 8; + + // bit: 12; mask: 0x1000; 1 = collapsed + $isCollapsed = (0x1000 & self::_GetInt2d($recordData, 8)) >> 12; + + // offset: 10; size: 2; not used + + for ($i = $fc; $i <= $lc; ++$i) { + if ($lc == 255 || $lc == 256) { + $this->_phpSheet->getDefaultColumnDimension()->setWidth($width / 256); + break; + } + $this->_phpSheet->getColumnDimensionByColumn($i)->setWidth($width / 256); + $this->_phpSheet->getColumnDimensionByColumn($i)->setVisible(!$isHidden); + $this->_phpSheet->getColumnDimensionByColumn($i)->setOutlineLevel($level); + $this->_phpSheet->getColumnDimensionByColumn($i)->setCollapsed($isCollapsed); + $this->_phpSheet->getColumnDimensionByColumn($i)->setXfIndex($this->_mapCellXfIndex[$xfIndex]); + } + } + } + + + /** + * ROW + * + * This record contains the properties of a single row in a + * sheet. Rows and cells in a sheet are divided into blocks + * of 32 rows. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readRow() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 2; index of this row + $r = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 2; index to column of the first cell which is described by a cell record + + // offset: 4; size: 2; index to column of the last cell which is described by a cell record, increased by 1 + + // offset: 6; size: 2; + + // bit: 14-0; mask: 0x7FFF; height of the row, in twips = 1/20 of a point + $height = (0x7FFF & self::_GetInt2d($recordData, 6)) >> 0; + + // bit: 15: mask: 0x8000; 0 = row has custom height; 1= row has default height + $useDefaultHeight = (0x8000 & self::_GetInt2d($recordData, 6)) >> 15; + + if (!$useDefaultHeight) { + $this->_phpSheet->getRowDimension($r + 1)->setRowHeight($height / 20); + } + + // offset: 8; size: 2; not used + + // offset: 10; size: 2; not used in BIFF5-BIFF8 + + // offset: 12; size: 4; option flags and default row formatting + + // bit: 2-0: mask: 0x00000007; outline level of the row + $level = (0x00000007 & self::_GetInt4d($recordData, 12)) >> 0; + $this->_phpSheet->getRowDimension($r + 1)->setOutlineLevel($level); + + // bit: 4; mask: 0x00000010; 1 = outline group start or ends here... and is collapsed + $isCollapsed = (0x00000010 & self::_GetInt4d($recordData, 12)) >> 4; + $this->_phpSheet->getRowDimension($r + 1)->setCollapsed($isCollapsed); + + // bit: 5; mask: 0x00000020; 1 = row is hidden + $isHidden = (0x00000020 & self::_GetInt4d($recordData, 12)) >> 5; + $this->_phpSheet->getRowDimension($r + 1)->setVisible(!$isHidden); + + // bit: 7; mask: 0x00000080; 1 = row has explicit format + $hasExplicitFormat = (0x00000080 & self::_GetInt4d($recordData, 12)) >> 7; + + // bit: 27-16; mask: 0x0FFF0000; only applies when hasExplicitFormat = 1; index to XF record + $xfIndex = (0x0FFF0000 & self::_GetInt4d($recordData, 12)) >> 16; + + if ($hasExplicitFormat) { + $this->_phpSheet->getRowDimension($r + 1)->setXfIndex($this->_mapCellXfIndex[$xfIndex]); + } + } + } + + + /** + * Read RK record + * This record represents a cell that contains an RK value + * (encoded integer or floating-point value). If a + * floating-point value cannot be encoded to an RK value, + * a NUMBER record will be written. This record replaces the + * record INTEGER written in BIFF2. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readRk() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2; index to row + $row = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 2; index to column + $column = self::_GetInt2d($recordData, 2); + $columnString = PHPExcel_Cell::stringFromColumnIndex($column); + + // Read cell? + if (($this->getReadFilter() !== NULL) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) { + // offset: 4; size: 2; index to XF record + $xfIndex = self::_GetInt2d($recordData, 4); + + // offset: 6; size: 4; RK value + $rknum = self::_GetInt4d($recordData, 6); + $numValue = self::_GetIEEE754($rknum); + + $cell = $this->_phpSheet->getCell($columnString . ($row + 1)); + if (!$this->_readDataOnly) { + // add style information + $cell->setXfIndex($this->_mapCellXfIndex[$xfIndex]); + } + + // add cell + $cell->setValueExplicit($numValue, PHPExcel_Cell_DataType::TYPE_NUMERIC); + } + } + + + /** + * Read LABELSST record + * This record represents a cell that contains a string. It + * replaces the LABEL record and RSTRING record used in + * BIFF2-BIFF5. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readLabelSst() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2; index to row + $row = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 2; index to column + $column = self::_GetInt2d($recordData, 2); + $columnString = PHPExcel_Cell::stringFromColumnIndex($column); + + // Read cell? + if (($this->getReadFilter() !== NULL) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) { + // offset: 4; size: 2; index to XF record + $xfIndex = self::_GetInt2d($recordData, 4); + + // offset: 6; size: 4; index to SST record + $index = self::_GetInt4d($recordData, 6); + + // add cell + if (($fmtRuns = $this->_sst[$index]['fmtRuns']) && !$this->_readDataOnly) { + // then we should treat as rich text + $richText = new PHPExcel_RichText(); + $charPos = 0; + $sstCount = count($this->_sst[$index]['fmtRuns']); + for ($i = 0; $i <= $sstCount; ++$i) { + if (isset($fmtRuns[$i])) { + $text = PHPExcel_Shared_String::Substring($this->_sst[$index]['value'], $charPos, $fmtRuns[$i]['charPos'] - $charPos); + $charPos = $fmtRuns[$i]['charPos']; + } else { + $text = PHPExcel_Shared_String::Substring($this->_sst[$index]['value'], $charPos, PHPExcel_Shared_String::CountCharacters($this->_sst[$index]['value'])); + } + + if (PHPExcel_Shared_String::CountCharacters($text) > 0) { + if ($i == 0) { // first text run, no style + $richText->createText($text); + } else { + $textRun = $richText->createTextRun($text); + if (isset($fmtRuns[$i - 1])) { + if ($fmtRuns[$i - 1]['fontIndex'] < 4) { + $fontIndex = $fmtRuns[$i - 1]['fontIndex']; + } else { + // this has to do with that index 4 is omitted in all BIFF versions for some strange reason + // check the OpenOffice documentation of the FONT record + $fontIndex = $fmtRuns[$i - 1]['fontIndex'] - 1; + } + $textRun->setFont(clone $this->_objFonts[$fontIndex]); + } + } + } + } + $cell = $this->_phpSheet->getCell($columnString . ($row + 1)); + $cell->setValueExplicit($richText, PHPExcel_Cell_DataType::TYPE_STRING); + } else { + $cell = $this->_phpSheet->getCell($columnString . ($row + 1)); + $cell->setValueExplicit($this->_sst[$index]['value'], PHPExcel_Cell_DataType::TYPE_STRING); + } + + if (!$this->_readDataOnly) { + // add style information + $cell->setXfIndex($this->_mapCellXfIndex[$xfIndex]); + } + } + } + + + /** + * Read MULRK record + * This record represents a cell range containing RK value + * cells. All cells are located in the same row. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readMulRk() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2; index to row + $row = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 2; index to first column + $colFirst = self::_GetInt2d($recordData, 2); + + // offset: var; size: 2; index to last column + $colLast = self::_GetInt2d($recordData, $length - 2); + $columns = $colLast - $colFirst + 1; + + // offset within record data + $offset = 4; + + for ($i = 0; $i < $columns; ++$i) { + $columnString = PHPExcel_Cell::stringFromColumnIndex($colFirst + $i); + + // Read cell? + if (($this->getReadFilter() !== NULL) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) { + + // offset: var; size: 2; index to XF record + $xfIndex = self::_GetInt2d($recordData, $offset); + + // offset: var; size: 4; RK value + $numValue = self::_GetIEEE754(self::_GetInt4d($recordData, $offset + 2)); + $cell = $this->_phpSheet->getCell($columnString . ($row + 1)); + if (!$this->_readDataOnly) { + // add style + $cell->setXfIndex($this->_mapCellXfIndex[$xfIndex]); + } + + // add cell value + $cell->setValueExplicit($numValue, PHPExcel_Cell_DataType::TYPE_NUMERIC); + } + + $offset += 6; + } + } + + + /** + * Read NUMBER record + * This record represents a cell that contains a + * floating-point value. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readNumber() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2; index to row + $row = self::_GetInt2d($recordData, 0); + + // offset: 2; size 2; index to column + $column = self::_GetInt2d($recordData, 2); + $columnString = PHPExcel_Cell::stringFromColumnIndex($column); + + // Read cell? + if (($this->getReadFilter() !== NULL) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) { + // offset 4; size: 2; index to XF record + $xfIndex = self::_GetInt2d($recordData, 4); + + $numValue = self::_extractNumber(substr($recordData, 6, 8)); + + $cell = $this->_phpSheet->getCell($columnString . ($row + 1)); + if (!$this->_readDataOnly) { + // add cell style + $cell->setXfIndex($this->_mapCellXfIndex[$xfIndex]); + } + + // add cell value + $cell->setValueExplicit($numValue, PHPExcel_Cell_DataType::TYPE_NUMERIC); + } + } + + + /** + * Read FORMULA record + perhaps a following STRING record if formula result is a string + * This record contains the token array and the result of a + * formula cell. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readFormula() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2; row index + $row = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 2; col index + $column = self::_GetInt2d($recordData, 2); + $columnString = PHPExcel_Cell::stringFromColumnIndex($column); + + // offset: 20: size: variable; formula structure + $formulaStructure = substr($recordData, 20); + + // offset: 14: size: 2; option flags, recalculate always, recalculate on open etc. + $options = self::_GetInt2d($recordData, 14); + + // bit: 0; mask: 0x0001; 1 = recalculate always + // bit: 1; mask: 0x0002; 1 = calculate on open + // bit: 2; mask: 0x0008; 1 = part of a shared formula + $isPartOfSharedFormula = (bool) (0x0008 & $options); + + // WARNING: + // We can apparently not rely on $isPartOfSharedFormula. Even when $isPartOfSharedFormula = true + // the formula data may be ordinary formula data, therefore we need to check + // explicitly for the tExp token (0x01) + $isPartOfSharedFormula = $isPartOfSharedFormula && ord($formulaStructure{2}) == 0x01; + + if ($isPartOfSharedFormula) { + // part of shared formula which means there will be a formula with a tExp token and nothing else + // get the base cell, grab tExp token + $baseRow = self::_GetInt2d($formulaStructure, 3); + $baseCol = self::_GetInt2d($formulaStructure, 5); + $this->_baseCell = PHPExcel_Cell::stringFromColumnIndex($baseCol). ($baseRow + 1); + } + + // Read cell? + if (($this->getReadFilter() !== NULL) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) { + + if ($isPartOfSharedFormula) { + // formula is added to this cell after the sheet has been read + $this->_sharedFormulaParts[$columnString . ($row + 1)] = $this->_baseCell; + } + + // offset: 16: size: 4; not used + + // offset: 4; size: 2; XF index + $xfIndex = self::_GetInt2d($recordData, 4); + + // offset: 6; size: 8; result of the formula + if ( (ord($recordData{6}) == 0) + && (ord($recordData{12}) == 255) + && (ord($recordData{13}) == 255) ) { + + // String formula. Result follows in appended STRING record + $dataType = PHPExcel_Cell_DataType::TYPE_STRING; + + // read possible SHAREDFMLA record + $code = self::_GetInt2d($this->_data, $this->_pos); + if ($code == self::XLS_Type_SHAREDFMLA) { + $this->_readSharedFmla(); + } + + // read STRING record + $value = $this->_readString(); + + } elseif ((ord($recordData{6}) == 1) + && (ord($recordData{12}) == 255) + && (ord($recordData{13}) == 255)) { + + // Boolean formula. Result is in +2; 0=false, 1=true + $dataType = PHPExcel_Cell_DataType::TYPE_BOOL; + $value = (bool) ord($recordData{8}); + + } elseif ((ord($recordData{6}) == 2) + && (ord($recordData{12}) == 255) + && (ord($recordData{13}) == 255)) { + + // Error formula. Error code is in +2 + $dataType = PHPExcel_Cell_DataType::TYPE_ERROR; + $value = self::_mapErrorCode(ord($recordData{8})); + + } elseif ((ord($recordData{6}) == 3) + && (ord($recordData{12}) == 255) + && (ord($recordData{13}) == 255)) { + + // Formula result is a null string + $dataType = PHPExcel_Cell_DataType::TYPE_NULL; + $value = ''; + + } else { + + // forumla result is a number, first 14 bytes like _NUMBER record + $dataType = PHPExcel_Cell_DataType::TYPE_NUMERIC; + $value = self::_extractNumber(substr($recordData, 6, 8)); + + } + + $cell = $this->_phpSheet->getCell($columnString . ($row + 1)); + if (!$this->_readDataOnly) { + // add cell style + $cell->setXfIndex($this->_mapCellXfIndex[$xfIndex]); + } + + // store the formula + if (!$isPartOfSharedFormula) { + // not part of shared formula + // add cell value. If we can read formula, populate with formula, otherwise just used cached value + try { + if ($this->_version != self::XLS_BIFF8) { + throw new PHPExcel_Reader_Exception('Not BIFF8. Can only read BIFF8 formulas'); + } + $formula = $this->_getFormulaFromStructure($formulaStructure); // get formula in human language + $cell->setValueExplicit('=' . $formula, PHPExcel_Cell_DataType::TYPE_FORMULA); + + } catch (PHPExcel_Exception $e) { + $cell->setValueExplicit($value, $dataType); + } + } else { + if ($this->_version == self::XLS_BIFF8) { + // do nothing at this point, formula id added later in the code + } else { + $cell->setValueExplicit($value, $dataType); + } + } + + // store the cached calculated value + $cell->setCalculatedValue($value); + } + } + + + /** + * Read a SHAREDFMLA record. This function just stores the binary shared formula in the reader, + * which usually contains relative references. + * These will be used to construct the formula in each shared formula part after the sheet is read. + */ + private function _readSharedFmla() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0, size: 6; cell range address of the area used by the shared formula, not used for anything + $cellRange = substr($recordData, 0, 6); + $cellRange = $this->_readBIFF5CellRangeAddressFixed($cellRange); // note: even BIFF8 uses BIFF5 syntax + + // offset: 6, size: 1; not used + + // offset: 7, size: 1; number of existing FORMULA records for this shared formula + $no = ord($recordData{7}); + + // offset: 8, size: var; Binary token array of the shared formula + $formula = substr($recordData, 8); + + // at this point we only store the shared formula for later use + $this->_sharedFormulas[$this->_baseCell] = $formula; + + } + + + /** + * Read a STRING record from current stream position and advance the stream pointer to next record + * This record is used for storing result from FORMULA record when it is a string, and + * it occurs directly after the FORMULA record + * + * @return string The string contents as UTF-8 + */ + private function _readString() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if ($this->_version == self::XLS_BIFF8) { + $string = self::_readUnicodeStringLong($recordData); + $value = $string['value']; + } else { + $string = $this->_readByteStringLong($recordData); + $value = $string['value']; + } + + return $value; + } + + + /** + * Read BOOLERR record + * This record represents a Boolean value or error value + * cell. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readBoolErr() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2; row index + $row = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 2; column index + $column = self::_GetInt2d($recordData, 2); + $columnString = PHPExcel_Cell::stringFromColumnIndex($column); + + // Read cell? + if (($this->getReadFilter() !== NULL) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) { + // offset: 4; size: 2; index to XF record + $xfIndex = self::_GetInt2d($recordData, 4); + + // offset: 6; size: 1; the boolean value or error value + $boolErr = ord($recordData{6}); + + // offset: 7; size: 1; 0=boolean; 1=error + $isError = ord($recordData{7}); + + $cell = $this->_phpSheet->getCell($columnString . ($row + 1)); + switch ($isError) { + case 0: // boolean + $value = (bool) $boolErr; + + // add cell value + $cell->setValueExplicit($value, PHPExcel_Cell_DataType::TYPE_BOOL); + break; + + case 1: // error type + $value = self::_mapErrorCode($boolErr); + + // add cell value + $cell->setValueExplicit($value, PHPExcel_Cell_DataType::TYPE_ERROR); + break; + } + + if (!$this->_readDataOnly) { + // add cell style + $cell->setXfIndex($this->_mapCellXfIndex[$xfIndex]); + } + } + } + + + /** + * Read MULBLANK record + * This record represents a cell range of empty cells. All + * cells are located in the same row + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readMulBlank() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2; index to row + $row = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 2; index to first column + $fc = self::_GetInt2d($recordData, 2); + + // offset: 4; size: 2 x nc; list of indexes to XF records + // add style information + if (!$this->_readDataOnly) { + for ($i = 0; $i < $length / 2 - 3; ++$i) { + $columnString = PHPExcel_Cell::stringFromColumnIndex($fc + $i); + + // Read cell? + if (($this->getReadFilter() !== NULL) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) { + $xfIndex = self::_GetInt2d($recordData, 4 + 2 * $i); + $this->_phpSheet->getCell($columnString . ($row + 1))->setXfIndex($this->_mapCellXfIndex[$xfIndex]); + } + } + } + + // offset: 6; size 2; index to last column (not needed) + } + + + /** + * Read LABEL record + * This record represents a cell that contains a string. In + * BIFF8 it is usually replaced by the LABELSST record. + * Excel still uses this record, if it copies unformatted + * text cells to the clipboard. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readLabel() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2; index to row + $row = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 2; index to column + $column = self::_GetInt2d($recordData, 2); + $columnString = PHPExcel_Cell::stringFromColumnIndex($column); + + // Read cell? + if (($this->getReadFilter() !== NULL) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) { + // offset: 4; size: 2; XF index + $xfIndex = self::_GetInt2d($recordData, 4); + + // add cell value + // todo: what if string is very long? continue record + if ($this->_version == self::XLS_BIFF8) { + $string = self::_readUnicodeStringLong(substr($recordData, 6)); + $value = $string['value']; + } else { + $string = $this->_readByteStringLong(substr($recordData, 6)); + $value = $string['value']; + } + $cell = $this->_phpSheet->getCell($columnString . ($row + 1)); + $cell->setValueExplicit($value, PHPExcel_Cell_DataType::TYPE_STRING); + + if (!$this->_readDataOnly) { + // add cell style + $cell->setXfIndex($this->_mapCellXfIndex[$xfIndex]); + } + } + } + + + /** + * Read BLANK record + */ + private function _readBlank() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2; row index + $row = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 2; col index + $col = self::_GetInt2d($recordData, 2); + $columnString = PHPExcel_Cell::stringFromColumnIndex($col); + + // Read cell? + if (($this->getReadFilter() !== NULL) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) { + // offset: 4; size: 2; XF index + $xfIndex = self::_GetInt2d($recordData, 4); + + // add style information + if (!$this->_readDataOnly) { + $this->_phpSheet->getCell($columnString . ($row + 1))->setXfIndex($this->_mapCellXfIndex[$xfIndex]); + } + } + + } + + + /** + * Read MSODRAWING record + */ + private function _readMsoDrawing() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + + // get spliced record data + $splicedRecordData = $this->_getSplicedRecordData(); + $recordData = $splicedRecordData['recordData']; + + $this->_drawingData .= $recordData; + } + + + /** + * Read OBJ record + */ + private function _readObj() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if ($this->_readDataOnly || $this->_version != self::XLS_BIFF8) { + return; + } + + // recordData consists of an array of subrecords looking like this: + // ft: 2 bytes; ftCmo type (0x15) + // cb: 2 bytes; size in bytes of ftCmo data + // ot: 2 bytes; Object Type + // id: 2 bytes; Object id number + // grbit: 2 bytes; Option Flags + // data: var; subrecord data + + // for now, we are just interested in the second subrecord containing the object type + $ftCmoType = self::_GetInt2d($recordData, 0); + $cbCmoSize = self::_GetInt2d($recordData, 2); + $otObjType = self::_GetInt2d($recordData, 4); + $idObjID = self::_GetInt2d($recordData, 6); + $grbitOpts = self::_GetInt2d($recordData, 6); + + $this->_objs[] = array( + 'ftCmoType' => $ftCmoType, + 'cbCmoSize' => $cbCmoSize, + 'otObjType' => $otObjType, + 'idObjID' => $idObjID, + 'grbitOpts' => $grbitOpts + ); + $this->textObjRef = $idObjID; + +// echo '_readObj()
'; +// var_dump(end($this->_objs)); +// echo '
'; + } + + + /** + * Read WINDOW2 record + */ + private function _readWindow2() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2; option flags + $options = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 2; index to first visible row + $firstVisibleRow = self::_GetInt2d($recordData, 2); + + // offset: 4; size: 2; index to first visible colum + $firstVisibleColumn = self::_GetInt2d($recordData, 4); + if ($this->_version === self::XLS_BIFF8) { + // offset: 8; size: 2; not used + // offset: 10; size: 2; cached magnification factor in page break preview (in percent); 0 = Default (60%) + // offset: 12; size: 2; cached magnification factor in normal view (in percent); 0 = Default (100%) + // offset: 14; size: 4; not used + $zoomscaleInPageBreakPreview = self::_GetInt2d($recordData, 10); + if ($zoomscaleInPageBreakPreview === 0) $zoomscaleInPageBreakPreview = 60; + $zoomscaleInNormalView = self::_GetInt2d($recordData, 12); + if ($zoomscaleInNormalView === 0) $zoomscaleInNormalView = 100; + } + + // bit: 1; mask: 0x0002; 0 = do not show gridlines, 1 = show gridlines + $showGridlines = (bool) ((0x0002 & $options) >> 1); + $this->_phpSheet->setShowGridlines($showGridlines); + + // bit: 2; mask: 0x0004; 0 = do not show headers, 1 = show headers + $showRowColHeaders = (bool) ((0x0004 & $options) >> 2); + $this->_phpSheet->setShowRowColHeaders($showRowColHeaders); + + // bit: 3; mask: 0x0008; 0 = panes are not frozen, 1 = panes are frozen + $this->_frozen = (bool) ((0x0008 & $options) >> 3); + + // bit: 6; mask: 0x0040; 0 = columns from left to right, 1 = columns from right to left + $this->_phpSheet->setRightToLeft((bool)((0x0040 & $options) >> 6)); + + // bit: 10; mask: 0x0400; 0 = sheet not active, 1 = sheet active + $isActive = (bool) ((0x0400 & $options) >> 10); + if ($isActive) { + $this->_phpExcel->setActiveSheetIndex($this->_phpExcel->getIndex($this->_phpSheet)); + } + + // bit: 11; mask: 0x0800; 0 = normal view, 1 = page break view + $isPageBreakPreview = (bool) ((0x0800 & $options) >> 11); + + //FIXME: set $firstVisibleRow and $firstVisibleColumn + + if ($this->_phpSheet->getSheetView()->getView() !== PHPExcel_Worksheet_SheetView::SHEETVIEW_PAGE_LAYOUT) { + //NOTE: this setting is inferior to page layout view(Excel2007-) + $view = $isPageBreakPreview? PHPExcel_Worksheet_SheetView::SHEETVIEW_PAGE_BREAK_PREVIEW : + PHPExcel_Worksheet_SheetView::SHEETVIEW_NORMAL; + $this->_phpSheet->getSheetView()->setView($view); + if ($this->_version === self::XLS_BIFF8) { + $zoomScale = $isPageBreakPreview? $zoomscaleInPageBreakPreview : $zoomscaleInNormalView; + $this->_phpSheet->getSheetView()->setZoomScale($zoomScale); + $this->_phpSheet->getSheetView()->setZoomScaleNormal($zoomscaleInNormalView); + } + } + } + + /** + * Read PLV Record(Created by Excel2007 or upper) + */ + private function _readPageLayoutView(){ + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + //var_dump(unpack("vrt/vgrbitFrt/V2reserved/vwScalePLV/vgrbit", $recordData)); + + // offset: 0; size: 2; rt + //->ignore + $rt = self::_GetInt2d($recordData, 0); + // offset: 2; size: 2; grbitfr + //->ignore + $grbitFrt = self::_GetInt2d($recordData, 2); + // offset: 4; size: 8; reserved + //->ignore + + // offset: 12; size 2; zoom scale + $wScalePLV = self::_GetInt2d($recordData, 12); + // offset: 14; size 2; grbit + $grbit = self::_GetInt2d($recordData, 14); + + // decomprise grbit + $fPageLayoutView = $grbit & 0x01; + $fRulerVisible = ($grbit >> 1) & 0x01; //no support + $fWhitespaceHidden = ($grbit >> 3) & 0x01; //no support + + if ($fPageLayoutView === 1) { + $this->_phpSheet->getSheetView()->setView(PHPExcel_Worksheet_SheetView::SHEETVIEW_PAGE_LAYOUT); + $this->_phpSheet->getSheetView()->setZoomScale($wScalePLV); //set by Excel2007 only if SHEETVIEW_PAGE_LAYOUT + } + //otherwise, we cannot know whether SHEETVIEW_PAGE_LAYOUT or SHEETVIEW_PAGE_BREAK_PREVIEW. + } + + /** + * Read SCL record + */ + private function _readScl() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // offset: 0; size: 2; numerator of the view magnification + $numerator = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 2; numerator of the view magnification + $denumerator = self::_GetInt2d($recordData, 2); + + // set the zoom scale (in percent) + $this->_phpSheet->getSheetView()->setZoomScale($numerator * 100 / $denumerator); + } + + + /** + * Read PANE record + */ + private function _readPane() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 2; position of vertical split + $px = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 2; position of horizontal split + $py = self::_GetInt2d($recordData, 2); + + if ($this->_frozen) { + // frozen panes + $this->_phpSheet->freezePane(PHPExcel_Cell::stringFromColumnIndex($px) . ($py + 1)); + } else { + // unfrozen panes; split windows; not supported by PHPExcel core + } + } + } + + + /** + * Read SELECTION record. There is one such record for each pane in the sheet. + */ + private function _readSelection() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 1; pane identifier + $paneId = ord($recordData{0}); + + // offset: 1; size: 2; index to row of the active cell + $r = self::_GetInt2d($recordData, 1); + + // offset: 3; size: 2; index to column of the active cell + $c = self::_GetInt2d($recordData, 3); + + // offset: 5; size: 2; index into the following cell range list to the + // entry that contains the active cell + $index = self::_GetInt2d($recordData, 5); + + // offset: 7; size: var; cell range address list containing all selected cell ranges + $data = substr($recordData, 7); + $cellRangeAddressList = $this->_readBIFF5CellRangeAddressList($data); // note: also BIFF8 uses BIFF5 syntax + + $selectedCells = $cellRangeAddressList['cellRangeAddresses'][0]; + + // first row '1' + last row '16384' indicates that full column is selected (apparently also in BIFF8!) + if (preg_match('/^([A-Z]+1\:[A-Z]+)16384$/', $selectedCells)) { + $selectedCells = preg_replace('/^([A-Z]+1\:[A-Z]+)16384$/', '${1}1048576', $selectedCells); + } + + // first row '1' + last row '65536' indicates that full column is selected + if (preg_match('/^([A-Z]+1\:[A-Z]+)65536$/', $selectedCells)) { + $selectedCells = preg_replace('/^([A-Z]+1\:[A-Z]+)65536$/', '${1}1048576', $selectedCells); + } + + // first column 'A' + last column 'IV' indicates that full row is selected + if (preg_match('/^(A[0-9]+\:)IV([0-9]+)$/', $selectedCells)) { + $selectedCells = preg_replace('/^(A[0-9]+\:)IV([0-9]+)$/', '${1}XFD${2}', $selectedCells); + } + + $this->_phpSheet->setSelectedCells($selectedCells); + } + } + + + private function _includeCellRangeFiltered($cellRangeAddress) + { + $includeCellRange = true; + if ($this->getReadFilter() !== NULL) { + $includeCellRange = false; + $rangeBoundaries = PHPExcel_Cell::getRangeBoundaries($cellRangeAddress); + $rangeBoundaries[1][0]++; + for ($row = $rangeBoundaries[0][1]; $row <= $rangeBoundaries[1][1]; $row++) { + for ($column = $rangeBoundaries[0][0]; $column != $rangeBoundaries[1][0]; $column++) { + if ($this->getReadFilter()->readCell($column, $row, $this->_phpSheet->getTitle())) { + $includeCellRange = true; + break 2; + } + } + } + } + return $includeCellRange; + } + + + /** + * MERGEDCELLS + * + * This record contains the addresses of merged cell ranges + * in the current sheet. + * + * -- "OpenOffice.org's Documentation of the Microsoft + * Excel File Format" + */ + private function _readMergedCells() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if ($this->_version == self::XLS_BIFF8 && !$this->_readDataOnly) { + $cellRangeAddressList = $this->_readBIFF8CellRangeAddressList($recordData); + foreach ($cellRangeAddressList['cellRangeAddresses'] as $cellRangeAddress) { + if ((strpos($cellRangeAddress,':') !== FALSE) && + ($this->_includeCellRangeFiltered($cellRangeAddress))) { + $this->_phpSheet->mergeCells($cellRangeAddress); + } + } + } + } + + + /** + * Read HYPERLINK record + */ + private function _readHyperLink() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer forward to next record + $this->_pos += 4 + $length; + + if (!$this->_readDataOnly) { + // offset: 0; size: 8; cell range address of all cells containing this hyperlink + try { + $cellRange = $this->_readBIFF8CellRangeAddressFixed($recordData, 0, 8); + } catch (PHPExcel_Exception $e) { + return; + } + + // offset: 8, size: 16; GUID of StdLink + + // offset: 24, size: 4; unknown value + + // offset: 28, size: 4; option flags + + // bit: 0; mask: 0x00000001; 0 = no link or extant, 1 = file link or URL + $isFileLinkOrUrl = (0x00000001 & self::_GetInt2d($recordData, 28)) >> 0; + + // bit: 1; mask: 0x00000002; 0 = relative path, 1 = absolute path or URL + $isAbsPathOrUrl = (0x00000001 & self::_GetInt2d($recordData, 28)) >> 1; + + // bit: 2 (and 4); mask: 0x00000014; 0 = no description + $hasDesc = (0x00000014 & self::_GetInt2d($recordData, 28)) >> 2; + + // bit: 3; mask: 0x00000008; 0 = no text, 1 = has text + $hasText = (0x00000008 & self::_GetInt2d($recordData, 28)) >> 3; + + // bit: 7; mask: 0x00000080; 0 = no target frame, 1 = has target frame + $hasFrame = (0x00000080 & self::_GetInt2d($recordData, 28)) >> 7; + + // bit: 8; mask: 0x00000100; 0 = file link or URL, 1 = UNC path (inc. server name) + $isUNC = (0x00000100 & self::_GetInt2d($recordData, 28)) >> 8; + + // offset within record data + $offset = 32; + + if ($hasDesc) { + // offset: 32; size: var; character count of description text + $dl = self::_GetInt4d($recordData, 32); + // offset: 36; size: var; character array of description text, no Unicode string header, always 16-bit characters, zero terminated + $desc = self::_encodeUTF16(substr($recordData, 36, 2 * ($dl - 1)), false); + $offset += 4 + 2 * $dl; + } + if ($hasFrame) { + $fl = self::_GetInt4d($recordData, $offset); + $offset += 4 + 2 * $fl; + } + + // detect type of hyperlink (there are 4 types) + $hyperlinkType = null; + + if ($isUNC) { + $hyperlinkType = 'UNC'; + } else if (!$isFileLinkOrUrl) { + $hyperlinkType = 'workbook'; + } else if (ord($recordData{$offset}) == 0x03) { + $hyperlinkType = 'local'; + } else if (ord($recordData{$offset}) == 0xE0) { + $hyperlinkType = 'URL'; + } + + switch ($hyperlinkType) { + case 'URL': + // section 5.58.2: Hyperlink containing a URL + // e.g. http://example.org/index.php + + // offset: var; size: 16; GUID of URL Moniker + $offset += 16; + // offset: var; size: 4; size (in bytes) of character array of the URL including trailing zero word + $us = self::_GetInt4d($recordData, $offset); + $offset += 4; + // offset: var; size: $us; character array of the URL, no Unicode string header, always 16-bit characters, zero-terminated + $url = self::_encodeUTF16(substr($recordData, $offset, $us - 2), false); + $nullOffset = strpos($url, 0x00); + if ($nullOffset) + $url = substr($url,0,$nullOffset); + $url .= $hasText ? '#' : ''; + $offset += $us; + break; + + case 'local': + // section 5.58.3: Hyperlink to local file + // examples: + // mydoc.txt + // ../../somedoc.xls#Sheet!A1 + + // offset: var; size: 16; GUI of File Moniker + $offset += 16; + + // offset: var; size: 2; directory up-level count. + $upLevelCount = self::_GetInt2d($recordData, $offset); + $offset += 2; + + // offset: var; size: 4; character count of the shortened file path and name, including trailing zero word + $sl = self::_GetInt4d($recordData, $offset); + $offset += 4; + + // offset: var; size: sl; character array of the shortened file path and name in 8.3-DOS-format (compressed Unicode string) + $shortenedFilePath = substr($recordData, $offset, $sl); + $shortenedFilePath = self::_encodeUTF16($shortenedFilePath, true); + $shortenedFilePath = substr($shortenedFilePath, 0, -1); // remove trailing zero + + $offset += $sl; + + // offset: var; size: 24; unknown sequence + $offset += 24; + + // extended file path + // offset: var; size: 4; size of the following file link field including string lenth mark + $sz = self::_GetInt4d($recordData, $offset); + $offset += 4; + + // only present if $sz > 0 + if ($sz > 0) { + // offset: var; size: 4; size of the character array of the extended file path and name + $xl = self::_GetInt4d($recordData, $offset); + $offset += 4; + + // offset: var; size 2; unknown + $offset += 2; + + // offset: var; size $xl; character array of the extended file path and name. + $extendedFilePath = substr($recordData, $offset, $xl); + $extendedFilePath = self::_encodeUTF16($extendedFilePath, false); + $offset += $xl; + } + + // construct the path + $url = str_repeat('..\\', $upLevelCount); + $url .= ($sz > 0) ? + $extendedFilePath : $shortenedFilePath; // use extended path if available + $url .= $hasText ? '#' : ''; + + break; + + + case 'UNC': + // section 5.58.4: Hyperlink to a File with UNC (Universal Naming Convention) Path + // todo: implement + return; + + case 'workbook': + // section 5.58.5: Hyperlink to the Current Workbook + // e.g. Sheet2!B1:C2, stored in text mark field + $url = 'sheet://'; + break; + + default: + return; + + } + + if ($hasText) { + // offset: var; size: 4; character count of text mark including trailing zero word + $tl = self::_GetInt4d($recordData, $offset); + $offset += 4; + // offset: var; size: var; character array of the text mark without the # sign, no Unicode header, always 16-bit characters, zero-terminated + $text = self::_encodeUTF16(substr($recordData, $offset, 2 * ($tl - 1)), false); + $url .= $text; + } + + // apply the hyperlink to all the relevant cells + foreach (PHPExcel_Cell::extractAllCellReferencesInRange($cellRange) as $coordinate) { + $this->_phpSheet->getCell($coordinate)->getHyperLink()->setUrl($url); + } + } + } + + + /** + * Read DATAVALIDATIONS record + */ + private function _readDataValidations() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer forward to next record + $this->_pos += 4 + $length; + } + + + /** + * Read DATAVALIDATION record + */ + private function _readDataValidation() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer forward to next record + $this->_pos += 4 + $length; + + if ($this->_readDataOnly) { + return; + } + + // offset: 0; size: 4; Options + $options = self::_GetInt4d($recordData, 0); + + // bit: 0-3; mask: 0x0000000F; type + $type = (0x0000000F & $options) >> 0; + switch ($type) { + case 0x00: $type = PHPExcel_Cell_DataValidation::TYPE_NONE; break; + case 0x01: $type = PHPExcel_Cell_DataValidation::TYPE_WHOLE; break; + case 0x02: $type = PHPExcel_Cell_DataValidation::TYPE_DECIMAL; break; + case 0x03: $type = PHPExcel_Cell_DataValidation::TYPE_LIST; break; + case 0x04: $type = PHPExcel_Cell_DataValidation::TYPE_DATE; break; + case 0x05: $type = PHPExcel_Cell_DataValidation::TYPE_TIME; break; + case 0x06: $type = PHPExcel_Cell_DataValidation::TYPE_TEXTLENGTH; break; + case 0x07: $type = PHPExcel_Cell_DataValidation::TYPE_CUSTOM; break; + } + + // bit: 4-6; mask: 0x00000070; error type + $errorStyle = (0x00000070 & $options) >> 4; + switch ($errorStyle) { + case 0x00: $errorStyle = PHPExcel_Cell_DataValidation::STYLE_STOP; break; + case 0x01: $errorStyle = PHPExcel_Cell_DataValidation::STYLE_WARNING; break; + case 0x02: $errorStyle = PHPExcel_Cell_DataValidation::STYLE_INFORMATION; break; + } + + // bit: 7; mask: 0x00000080; 1= formula is explicit (only applies to list) + // I have only seen cases where this is 1 + $explicitFormula = (0x00000080 & $options) >> 7; + + // bit: 8; mask: 0x00000100; 1= empty cells allowed + $allowBlank = (0x00000100 & $options) >> 8; + + // bit: 9; mask: 0x00000200; 1= suppress drop down arrow in list type validity + $suppressDropDown = (0x00000200 & $options) >> 9; + + // bit: 18; mask: 0x00040000; 1= show prompt box if cell selected + $showInputMessage = (0x00040000 & $options) >> 18; + + // bit: 19; mask: 0x00080000; 1= show error box if invalid values entered + $showErrorMessage = (0x00080000 & $options) >> 19; + + // bit: 20-23; mask: 0x00F00000; condition operator + $operator = (0x00F00000 & $options) >> 20; + switch ($operator) { + case 0x00: $operator = PHPExcel_Cell_DataValidation::OPERATOR_BETWEEN ; break; + case 0x01: $operator = PHPExcel_Cell_DataValidation::OPERATOR_NOTBETWEEN ; break; + case 0x02: $operator = PHPExcel_Cell_DataValidation::OPERATOR_EQUAL ; break; + case 0x03: $operator = PHPExcel_Cell_DataValidation::OPERATOR_NOTEQUAL ; break; + case 0x04: $operator = PHPExcel_Cell_DataValidation::OPERATOR_GREATERTHAN ; break; + case 0x05: $operator = PHPExcel_Cell_DataValidation::OPERATOR_LESSTHAN ; break; + case 0x06: $operator = PHPExcel_Cell_DataValidation::OPERATOR_GREATERTHANOREQUAL; break; + case 0x07: $operator = PHPExcel_Cell_DataValidation::OPERATOR_LESSTHANOREQUAL ; break; + } + + // offset: 4; size: var; title of the prompt box + $offset = 4; + $string = self::_readUnicodeStringLong(substr($recordData, $offset)); + $promptTitle = $string['value'] !== chr(0) ? + $string['value'] : ''; + $offset += $string['size']; + + // offset: var; size: var; title of the error box + $string = self::_readUnicodeStringLong(substr($recordData, $offset)); + $errorTitle = $string['value'] !== chr(0) ? + $string['value'] : ''; + $offset += $string['size']; + + // offset: var; size: var; text of the prompt box + $string = self::_readUnicodeStringLong(substr($recordData, $offset)); + $prompt = $string['value'] !== chr(0) ? + $string['value'] : ''; + $offset += $string['size']; + + // offset: var; size: var; text of the error box + $string = self::_readUnicodeStringLong(substr($recordData, $offset)); + $error = $string['value'] !== chr(0) ? + $string['value'] : ''; + $offset += $string['size']; + + // offset: var; size: 2; size of the formula data for the first condition + $sz1 = self::_GetInt2d($recordData, $offset); + $offset += 2; + + // offset: var; size: 2; not used + $offset += 2; + + // offset: var; size: $sz1; formula data for first condition (without size field) + $formula1 = substr($recordData, $offset, $sz1); + $formula1 = pack('v', $sz1) . $formula1; // prepend the length + try { + $formula1 = $this->_getFormulaFromStructure($formula1); + + // in list type validity, null characters are used as item separators + if ($type == PHPExcel_Cell_DataValidation::TYPE_LIST) { + $formula1 = str_replace(chr(0), ',', $formula1); + } + } catch (PHPExcel_Exception $e) { + return; + } + $offset += $sz1; + + // offset: var; size: 2; size of the formula data for the first condition + $sz2 = self::_GetInt2d($recordData, $offset); + $offset += 2; + + // offset: var; size: 2; not used + $offset += 2; + + // offset: var; size: $sz2; formula data for second condition (without size field) + $formula2 = substr($recordData, $offset, $sz2); + $formula2 = pack('v', $sz2) . $formula2; // prepend the length + try { + $formula2 = $this->_getFormulaFromStructure($formula2); + } catch (PHPExcel_Exception $e) { + return; + } + $offset += $sz2; + + // offset: var; size: var; cell range address list with + $cellRangeAddressList = $this->_readBIFF8CellRangeAddressList(substr($recordData, $offset)); + $cellRangeAddresses = $cellRangeAddressList['cellRangeAddresses']; + + foreach ($cellRangeAddresses as $cellRange) { + $stRange = $this->_phpSheet->shrinkRangeToFit($cellRange); + $stRange = PHPExcel_Cell::extractAllCellReferencesInRange($stRange); + foreach ($stRange as $coordinate) { + $objValidation = $this->_phpSheet->getCell($coordinate)->getDataValidation(); + $objValidation->setType($type); + $objValidation->setErrorStyle($errorStyle); + $objValidation->setAllowBlank((bool)$allowBlank); + $objValidation->setShowInputMessage((bool)$showInputMessage); + $objValidation->setShowErrorMessage((bool)$showErrorMessage); + $objValidation->setShowDropDown(!$suppressDropDown); + $objValidation->setOperator($operator); + $objValidation->setErrorTitle($errorTitle); + $objValidation->setError($error); + $objValidation->setPromptTitle($promptTitle); + $objValidation->setPrompt($prompt); + $objValidation->setFormula1($formula1); + $objValidation->setFormula2($formula2); + } + } + + } + + + /** + * Read SHEETLAYOUT record. Stores sheet tab color information. + */ + private function _readSheetLayout() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // local pointer in record data + $offset = 0; + + if (!$this->_readDataOnly) { + // offset: 0; size: 2; repeated record identifier 0x0862 + + // offset: 2; size: 10; not used + + // offset: 12; size: 4; size of record data + // Excel 2003 uses size of 0x14 (documented), Excel 2007 uses size of 0x28 (not documented?) + $sz = self::_GetInt4d($recordData, 12); + + switch ($sz) { + case 0x14: + // offset: 16; size: 2; color index for sheet tab + $colorIndex = self::_GetInt2d($recordData, 16); + $color = self::_readColor($colorIndex,$this->_palette,$this->_version); + $this->_phpSheet->getTabColor()->setRGB($color['rgb']); + break; + + case 0x28: + // TODO: Investigate structure for .xls SHEETLAYOUT record as saved by MS Office Excel 2007 + return; + break; + } + } + } + + + /** + * Read SHEETPROTECTION record (FEATHEADR) + */ + private function _readSheetProtection() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + if ($this->_readDataOnly) { + return; + } + + // offset: 0; size: 2; repeated record header + + // offset: 2; size: 2; FRT cell reference flag (=0 currently) + + // offset: 4; size: 8; Currently not used and set to 0 + + // offset: 12; size: 2; Shared feature type index (2=Enhanced Protetion, 4=SmartTag) + $isf = self::_GetInt2d($recordData, 12); + if ($isf != 2) { + return; + } + + // offset: 14; size: 1; =1 since this is a feat header + + // offset: 15; size: 4; size of rgbHdrSData + + // rgbHdrSData, assume "Enhanced Protection" + // offset: 19; size: 2; option flags + $options = self::_GetInt2d($recordData, 19); + + // bit: 0; mask 0x0001; 1 = user may edit objects, 0 = users must not edit objects + $bool = (0x0001 & $options) >> 0; + $this->_phpSheet->getProtection()->setObjects(!$bool); + + // bit: 1; mask 0x0002; edit scenarios + $bool = (0x0002 & $options) >> 1; + $this->_phpSheet->getProtection()->setScenarios(!$bool); + + // bit: 2; mask 0x0004; format cells + $bool = (0x0004 & $options) >> 2; + $this->_phpSheet->getProtection()->setFormatCells(!$bool); + + // bit: 3; mask 0x0008; format columns + $bool = (0x0008 & $options) >> 3; + $this->_phpSheet->getProtection()->setFormatColumns(!$bool); + + // bit: 4; mask 0x0010; format rows + $bool = (0x0010 & $options) >> 4; + $this->_phpSheet->getProtection()->setFormatRows(!$bool); + + // bit: 5; mask 0x0020; insert columns + $bool = (0x0020 & $options) >> 5; + $this->_phpSheet->getProtection()->setInsertColumns(!$bool); + + // bit: 6; mask 0x0040; insert rows + $bool = (0x0040 & $options) >> 6; + $this->_phpSheet->getProtection()->setInsertRows(!$bool); + + // bit: 7; mask 0x0080; insert hyperlinks + $bool = (0x0080 & $options) >> 7; + $this->_phpSheet->getProtection()->setInsertHyperlinks(!$bool); + + // bit: 8; mask 0x0100; delete columns + $bool = (0x0100 & $options) >> 8; + $this->_phpSheet->getProtection()->setDeleteColumns(!$bool); + + // bit: 9; mask 0x0200; delete rows + $bool = (0x0200 & $options) >> 9; + $this->_phpSheet->getProtection()->setDeleteRows(!$bool); + + // bit: 10; mask 0x0400; select locked cells + $bool = (0x0400 & $options) >> 10; + $this->_phpSheet->getProtection()->setSelectLockedCells(!$bool); + + // bit: 11; mask 0x0800; sort cell range + $bool = (0x0800 & $options) >> 11; + $this->_phpSheet->getProtection()->setSort(!$bool); + + // bit: 12; mask 0x1000; auto filter + $bool = (0x1000 & $options) >> 12; + $this->_phpSheet->getProtection()->setAutoFilter(!$bool); + + // bit: 13; mask 0x2000; pivot tables + $bool = (0x2000 & $options) >> 13; + $this->_phpSheet->getProtection()->setPivotTables(!$bool); + + // bit: 14; mask 0x4000; select unlocked cells + $bool = (0x4000 & $options) >> 14; + $this->_phpSheet->getProtection()->setSelectUnlockedCells(!$bool); + + // offset: 21; size: 2; not used + } + + + /** + * Read RANGEPROTECTION record + * Reading of this record is based on Microsoft Office Excel 97-2000 Binary File Format Specification, + * where it is referred to as FEAT record + */ + private function _readRangeProtection() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // move stream pointer to next record + $this->_pos += 4 + $length; + + // local pointer in record data + $offset = 0; + + if (!$this->_readDataOnly) { + $offset += 12; + + // offset: 12; size: 2; shared feature type, 2 = enhanced protection, 4 = smart tag + $isf = self::_GetInt2d($recordData, 12); + if ($isf != 2) { + // we only read FEAT records of type 2 + return; + } + $offset += 2; + + $offset += 5; + + // offset: 19; size: 2; count of ref ranges this feature is on + $cref = self::_GetInt2d($recordData, 19); + $offset += 2; + + $offset += 6; + + // offset: 27; size: 8 * $cref; list of cell ranges (like in hyperlink record) + $cellRanges = array(); + for ($i = 0; $i < $cref; ++$i) { + try { + $cellRange = $this->_readBIFF8CellRangeAddressFixed(substr($recordData, 27 + 8 * $i, 8)); + } catch (PHPExcel_Exception $e) { + return; + } + $cellRanges[] = $cellRange; + $offset += 8; + } + + // offset: var; size: var; variable length of feature specific data + $rgbFeat = substr($recordData, $offset); + $offset += 4; + + // offset: var; size: 4; the encrypted password (only 16-bit although field is 32-bit) + $wPassword = self::_GetInt4d($recordData, $offset); + $offset += 4; + + // Apply range protection to sheet + if ($cellRanges) { + $this->_phpSheet->protectCells(implode(' ', $cellRanges), strtoupper(dechex($wPassword)), true); + } + } + } + + + /** + * Read IMDATA record + */ + private function _readImData() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + + // get spliced record data + $splicedRecordData = $this->_getSplicedRecordData(); + $recordData = $splicedRecordData['recordData']; + + // UNDER CONSTRUCTION + + // offset: 0; size: 2; image format + $cf = self::_GetInt2d($recordData, 0); + + // offset: 2; size: 2; environment from which the file was written + $env = self::_GetInt2d($recordData, 2); + + // offset: 4; size: 4; length of the image data + $lcb = self::_GetInt4d($recordData, 4); + + // offset: 8; size: var; image data + $iData = substr($recordData, 8); + + switch ($cf) { + case 0x09: // Windows bitmap format + // BITMAPCOREINFO + // 1. BITMAPCOREHEADER + // offset: 0; size: 4; bcSize, Specifies the number of bytes required by the structure + $bcSize = self::_GetInt4d($iData, 0); +// var_dump($bcSize); + + // offset: 4; size: 2; bcWidth, specifies the width of the bitmap, in pixels + $bcWidth = self::_GetInt2d($iData, 4); +// var_dump($bcWidth); + + // offset: 6; size: 2; bcHeight, specifies the height of the bitmap, in pixels. + $bcHeight = self::_GetInt2d($iData, 6); +// var_dump($bcHeight); + $ih = imagecreatetruecolor($bcWidth, $bcHeight); + + // offset: 8; size: 2; bcPlanes, specifies the number of planes for the target device. This value must be 1 + + // offset: 10; size: 2; bcBitCount specifies the number of bits-per-pixel. This value must be 1, 4, 8, or 24 + $bcBitCount = self::_GetInt2d($iData, 10); +// var_dump($bcBitCount); + + $rgbString = substr($iData, 12); + $rgbTriples = array(); + while (strlen($rgbString) > 0) { + $rgbTriples[] = unpack('Cb/Cg/Cr', $rgbString); + $rgbString = substr($rgbString, 3); + } + $x = 0; + $y = 0; + foreach ($rgbTriples as $i => $rgbTriple) { + $color = imagecolorallocate($ih, $rgbTriple['r'], $rgbTriple['g'], $rgbTriple['b']); + imagesetpixel($ih, $x, $bcHeight - 1 - $y, $color); + $x = ($x + 1) % $bcWidth; + $y = $y + floor(($x + 1) / $bcWidth); + } + //imagepng($ih, 'image.png'); + + $drawing = new PHPExcel_Worksheet_Drawing(); + $drawing->setPath($filename); + $drawing->setWorksheet($this->_phpSheet); + + break; + + case 0x02: // Windows metafile or Macintosh PICT format + case 0x0e: // native format + default; + break; + + } + + // _getSplicedRecordData() takes care of moving current position in data stream + } + + + /** + * Read a free CONTINUE record. Free CONTINUE record may be a camouflaged MSODRAWING record + * When MSODRAWING data on a sheet exceeds 8224 bytes, CONTINUE records are used instead. Undocumented. + * In this case, we must treat the CONTINUE record as a MSODRAWING record + */ + private function _readContinue() + { + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $recordData = $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + // check if we are reading drawing data + // this is in case a free CONTINUE record occurs in other circumstances we are unaware of + if ($this->_drawingData == '') { + // move stream pointer to next record + $this->_pos += 4 + $length; + + return; + } + + // check if record data is at least 4 bytes long, otherwise there is no chance this is MSODRAWING data + if ($length < 4) { + // move stream pointer to next record + $this->_pos += 4 + $length; + + return; + } + + // dirty check to see if CONTINUE record could be a camouflaged MSODRAWING record + // look inside CONTINUE record to see if it looks like a part of an Escher stream + // we know that Escher stream may be split at least at + // 0xF003 MsofbtSpgrContainer + // 0xF004 MsofbtSpContainer + // 0xF00D MsofbtClientTextbox + $validSplitPoints = array(0xF003, 0xF004, 0xF00D); // add identifiers if we find more + + $splitPoint = self::_GetInt2d($recordData, 2); + if (in_array($splitPoint, $validSplitPoints)) { + // get spliced record data (and move pointer to next record) + $splicedRecordData = $this->_getSplicedRecordData(); + $this->_drawingData .= $splicedRecordData['recordData']; + + return; + } + + // move stream pointer to next record + $this->_pos += 4 + $length; + + } + + + /** + * Reads a record from current position in data stream and continues reading data as long as CONTINUE + * records are found. Splices the record data pieces and returns the combined string as if record data + * is in one piece. + * Moves to next current position in data stream to start of next record different from a CONtINUE record + * + * @return array + */ + private function _getSplicedRecordData() + { + $data = ''; + $spliceOffsets = array(); + + $i = 0; + $spliceOffsets[0] = 0; + + do { + ++$i; + + // offset: 0; size: 2; identifier + $identifier = self::_GetInt2d($this->_data, $this->_pos); + // offset: 2; size: 2; length + $length = self::_GetInt2d($this->_data, $this->_pos + 2); + $data .= $this->_readRecordData($this->_data, $this->_pos + 4, $length); + + $spliceOffsets[$i] = $spliceOffsets[$i - 1] + $length; + + $this->_pos += 4 + $length; + $nextIdentifier = self::_GetInt2d($this->_data, $this->_pos); + } + while ($nextIdentifier == self::XLS_Type_CONTINUE); + + $splicedData = array( + 'recordData' => $data, + 'spliceOffsets' => $spliceOffsets, + ); + + return $splicedData; + + } + + + /** + * Convert formula structure into human readable Excel formula like 'A3+A5*5' + * + * @param string $formulaStructure The complete binary data for the formula + * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas + * @return string Human readable formula + */ + private function _getFormulaFromStructure($formulaStructure, $baseCell = 'A1') + { + // offset: 0; size: 2; size of the following formula data + $sz = self::_GetInt2d($formulaStructure, 0); + + // offset: 2; size: sz + $formulaData = substr($formulaStructure, 2, $sz); + + // for debug: dump the formula data + //echo ''; + //echo 'size: ' . $sz . "\n"; + //echo 'the entire formula data: '; + //Debug::dump($formulaData); + //echo "\n----\n"; + + // offset: 2 + sz; size: variable (optional) + if (strlen($formulaStructure) > 2 + $sz) { + $additionalData = substr($formulaStructure, 2 + $sz); + + // for debug: dump the additional data + //echo 'the entire additional data: '; + //Debug::dump($additionalData); + //echo "\n----\n"; + + } else { + $additionalData = ''; + } + + return $this->_getFormulaFromData($formulaData, $additionalData, $baseCell); + } + + + /** + * Take formula data and additional data for formula and return human readable formula + * + * @param string $formulaData The binary data for the formula itself + * @param string $additionalData Additional binary data going with the formula + * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas + * @return string Human readable formula + */ + private function _getFormulaFromData($formulaData, $additionalData = '', $baseCell = 'A1') + { + // start parsing the formula data + $tokens = array(); + + while (strlen($formulaData) > 0 and $token = $this->_getNextToken($formulaData, $baseCell)) { + $tokens[] = $token; + $formulaData = substr($formulaData, $token['size']); + + // for debug: dump the token + //var_dump($token); + } + + $formulaString = $this->_createFormulaFromTokens($tokens, $additionalData); + + return $formulaString; + } + + + /** + * Take array of tokens together with additional data for formula and return human readable formula + * + * @param array $tokens + * @param array $additionalData Additional binary data going with the formula + * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas + * @return string Human readable formula + */ + private function _createFormulaFromTokens($tokens, $additionalData) + { + // empty formula? + if (empty($tokens)) { + return ''; + } + + $formulaStrings = array(); + foreach ($tokens as $token) { + // initialize spaces + $space0 = isset($space0) ? $space0 : ''; // spaces before next token, not tParen + $space1 = isset($space1) ? $space1 : ''; // carriage returns before next token, not tParen + $space2 = isset($space2) ? $space2 : ''; // spaces before opening parenthesis + $space3 = isset($space3) ? $space3 : ''; // carriage returns before opening parenthesis + $space4 = isset($space4) ? $space4 : ''; // spaces before closing parenthesis + $space5 = isset($space5) ? $space5 : ''; // carriage returns before closing parenthesis + + switch ($token['name']) { + case 'tAdd': // addition + case 'tConcat': // addition + case 'tDiv': // division + case 'tEQ': // equality + case 'tGE': // greater than or equal + case 'tGT': // greater than + case 'tIsect': // intersection + case 'tLE': // less than or equal + case 'tList': // less than or equal + case 'tLT': // less than + case 'tMul': // multiplication + case 'tNE': // multiplication + case 'tPower': // power + case 'tRange': // range + case 'tSub': // subtraction + $op2 = array_pop($formulaStrings); + $op1 = array_pop($formulaStrings); + $formulaStrings[] = "$op1$space1$space0{$token['data']}$op2"; + unset($space0, $space1); + break; + case 'tUplus': // unary plus + case 'tUminus': // unary minus + $op = array_pop($formulaStrings); + $formulaStrings[] = "$space1$space0{$token['data']}$op"; + unset($space0, $space1); + break; + case 'tPercent': // percent sign + $op = array_pop($formulaStrings); + $formulaStrings[] = "$op$space1$space0{$token['data']}"; + unset($space0, $space1); + break; + case 'tAttrVolatile': // indicates volatile function + case 'tAttrIf': + case 'tAttrSkip': + case 'tAttrChoose': + // token is only important for Excel formula evaluator + // do nothing + break; + case 'tAttrSpace': // space / carriage return + // space will be used when next token arrives, do not alter formulaString stack + switch ($token['data']['spacetype']) { + case 'type0': + $space0 = str_repeat(' ', $token['data']['spacecount']); + break; + case 'type1': + $space1 = str_repeat("\n", $token['data']['spacecount']); + break; + case 'type2': + $space2 = str_repeat(' ', $token['data']['spacecount']); + break; + case 'type3': + $space3 = str_repeat("\n", $token['data']['spacecount']); + break; + case 'type4': + $space4 = str_repeat(' ', $token['data']['spacecount']); + break; + case 'type5': + $space5 = str_repeat("\n", $token['data']['spacecount']); + break; + } + break; + case 'tAttrSum': // SUM function with one parameter + $op = array_pop($formulaStrings); + $formulaStrings[] = "{$space1}{$space0}SUM($op)"; + unset($space0, $space1); + break; + case 'tFunc': // function with fixed number of arguments + case 'tFuncV': // function with variable number of arguments + if ($token['data']['function'] != '') { + // normal function + $ops = array(); // array of operators + for ($i = 0; $i < $token['data']['args']; ++$i) { + $ops[] = array_pop($formulaStrings); + } + $ops = array_reverse($ops); + $formulaStrings[] = "$space1$space0{$token['data']['function']}(" . implode(',', $ops) . ")"; + unset($space0, $space1); + } else { + // add-in function + $ops = array(); // array of operators + for ($i = 0; $i < $token['data']['args'] - 1; ++$i) { + $ops[] = array_pop($formulaStrings); + } + $ops = array_reverse($ops); + $function = array_pop($formulaStrings); + $formulaStrings[] = "$space1$space0$function(" . implode(',', $ops) . ")"; + unset($space0, $space1); + } + break; + case 'tParen': // parenthesis + $expression = array_pop($formulaStrings); + $formulaStrings[] = "$space3$space2($expression$space5$space4)"; + unset($space2, $space3, $space4, $space5); + break; + case 'tArray': // array constant + $constantArray = self::_readBIFF8ConstantArray($additionalData); + $formulaStrings[] = $space1 . $space0 . $constantArray['value']; + $additionalData = substr($additionalData, $constantArray['size']); // bite of chunk of additional data + unset($space0, $space1); + break; + case 'tMemArea': + // bite off chunk of additional data + $cellRangeAddressList = $this->_readBIFF8CellRangeAddressList($additionalData); + $additionalData = substr($additionalData, $cellRangeAddressList['size']); + $formulaStrings[] = "$space1$space0{$token['data']}"; + unset($space0, $space1); + break; + case 'tArea': // cell range address + case 'tBool': // boolean + case 'tErr': // error code + case 'tInt': // integer + case 'tMemErr': + case 'tMemFunc': + case 'tMissArg': + case 'tName': + case 'tNameX': + case 'tNum': // number + case 'tRef': // single cell reference + case 'tRef3d': // 3d cell reference + case 'tArea3d': // 3d cell range reference + case 'tRefN': + case 'tAreaN': + case 'tStr': // string + $formulaStrings[] = "$space1$space0{$token['data']}"; + unset($space0, $space1); + break; + } + } + $formulaString = $formulaStrings[0]; + + // for debug: dump the human readable formula + //echo '----' . "\n"; + //echo 'Formula: ' . $formulaString; + + return $formulaString; + } + + + /** + * Fetch next token from binary formula data + * + * @param string Formula data + * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas + * @return array + * @throws PHPExcel_Reader_Exception + */ + private function _getNextToken($formulaData, $baseCell = 'A1') + { + // offset: 0; size: 1; token id + $id = ord($formulaData[0]); // token id + $name = false; // initialize token name + + switch ($id) { + case 0x03: $name = 'tAdd'; $size = 1; $data = '+'; break; + case 0x04: $name = 'tSub'; $size = 1; $data = '-'; break; + case 0x05: $name = 'tMul'; $size = 1; $data = '*'; break; + case 0x06: $name = 'tDiv'; $size = 1; $data = '/'; break; + case 0x07: $name = 'tPower'; $size = 1; $data = '^'; break; + case 0x08: $name = 'tConcat'; $size = 1; $data = '&'; break; + case 0x09: $name = 'tLT'; $size = 1; $data = '<'; break; + case 0x0A: $name = 'tLE'; $size = 1; $data = '<='; break; + case 0x0B: $name = 'tEQ'; $size = 1; $data = '='; break; + case 0x0C: $name = 'tGE'; $size = 1; $data = '>='; break; + case 0x0D: $name = 'tGT'; $size = 1; $data = '>'; break; + case 0x0E: $name = 'tNE'; $size = 1; $data = '<>'; break; + case 0x0F: $name = 'tIsect'; $size = 1; $data = ' '; break; + case 0x10: $name = 'tList'; $size = 1; $data = ','; break; + case 0x11: $name = 'tRange'; $size = 1; $data = ':'; break; + case 0x12: $name = 'tUplus'; $size = 1; $data = '+'; break; + case 0x13: $name = 'tUminus'; $size = 1; $data = '-'; break; + case 0x14: $name = 'tPercent'; $size = 1; $data = '%'; break; + case 0x15: // parenthesis + $name = 'tParen'; + $size = 1; + $data = null; + break; + case 0x16: // missing argument + $name = 'tMissArg'; + $size = 1; + $data = ''; + break; + case 0x17: // string + $name = 'tStr'; + // offset: 1; size: var; Unicode string, 8-bit string length + $string = self::_readUnicodeStringShort(substr($formulaData, 1)); + $size = 1 + $string['size']; + $data = self::_UTF8toExcelDoubleQuoted($string['value']); + break; + case 0x19: // Special attribute + // offset: 1; size: 1; attribute type flags: + switch (ord($formulaData[1])) { + case 0x01: + $name = 'tAttrVolatile'; + $size = 4; + $data = null; + break; + case 0x02: + $name = 'tAttrIf'; + $size = 4; + $data = null; + break; + case 0x04: + $name = 'tAttrChoose'; + // offset: 2; size: 2; number of choices in the CHOOSE function ($nc, number of parameters decreased by 1) + $nc = self::_GetInt2d($formulaData, 2); + // offset: 4; size: 2 * $nc + // offset: 4 + 2 * $nc; size: 2 + $size = 2 * $nc + 6; + $data = null; + break; + case 0x08: + $name = 'tAttrSkip'; + $size = 4; + $data = null; + break; + case 0x10: + $name = 'tAttrSum'; + $size = 4; + $data = null; + break; + case 0x40: + case 0x41: + $name = 'tAttrSpace'; + $size = 4; + // offset: 2; size: 2; space type and position + switch (ord($formulaData[2])) { + case 0x00: + $spacetype = 'type0'; + break; + case 0x01: + $spacetype = 'type1'; + break; + case 0x02: + $spacetype = 'type2'; + break; + case 0x03: + $spacetype = 'type3'; + break; + case 0x04: + $spacetype = 'type4'; + break; + case 0x05: + $spacetype = 'type5'; + break; + default: + throw new PHPExcel_Reader_Exception('Unrecognized space type in tAttrSpace token'); + break; + } + // offset: 3; size: 1; number of inserted spaces/carriage returns + $spacecount = ord($formulaData[3]); + + $data = array('spacetype' => $spacetype, 'spacecount' => $spacecount); + break; + default: + throw new PHPExcel_Reader_Exception('Unrecognized attribute flag in tAttr token'); + break; + } + break; + case 0x1C: // error code + // offset: 1; size: 1; error code + $name = 'tErr'; + $size = 2; + $data = self::_mapErrorCode(ord($formulaData[1])); + break; + case 0x1D: // boolean + // offset: 1; size: 1; 0 = false, 1 = true; + $name = 'tBool'; + $size = 2; + $data = ord($formulaData[1]) ? 'TRUE' : 'FALSE'; + break; + case 0x1E: // integer + // offset: 1; size: 2; unsigned 16-bit integer + $name = 'tInt'; + $size = 3; + $data = self::_GetInt2d($formulaData, 1); + break; + case 0x1F: // number + // offset: 1; size: 8; + $name = 'tNum'; + $size = 9; + $data = self::_extractNumber(substr($formulaData, 1)); + $data = str_replace(',', '.', (string)$data); // in case non-English locale + break; + case 0x20: // array constant + case 0x40: + case 0x60: + // offset: 1; size: 7; not used + $name = 'tArray'; + $size = 8; + $data = null; + break; + case 0x21: // function with fixed number of arguments + case 0x41: + case 0x61: + $name = 'tFunc'; + $size = 3; + // offset: 1; size: 2; index to built-in sheet function + switch (self::_GetInt2d($formulaData, 1)) { + case 2: $function = 'ISNA'; $args = 1; break; + case 3: $function = 'ISERROR'; $args = 1; break; + case 10: $function = 'NA'; $args = 0; break; + case 15: $function = 'SIN'; $args = 1; break; + case 16: $function = 'COS'; $args = 1; break; + case 17: $function = 'TAN'; $args = 1; break; + case 18: $function = 'ATAN'; $args = 1; break; + case 19: $function = 'PI'; $args = 0; break; + case 20: $function = 'SQRT'; $args = 1; break; + case 21: $function = 'EXP'; $args = 1; break; + case 22: $function = 'LN'; $args = 1; break; + case 23: $function = 'LOG10'; $args = 1; break; + case 24: $function = 'ABS'; $args = 1; break; + case 25: $function = 'INT'; $args = 1; break; + case 26: $function = 'SIGN'; $args = 1; break; + case 27: $function = 'ROUND'; $args = 2; break; + case 30: $function = 'REPT'; $args = 2; break; + case 31: $function = 'MID'; $args = 3; break; + case 32: $function = 'LEN'; $args = 1; break; + case 33: $function = 'VALUE'; $args = 1; break; + case 34: $function = 'TRUE'; $args = 0; break; + case 35: $function = 'FALSE'; $args = 0; break; + case 38: $function = 'NOT'; $args = 1; break; + case 39: $function = 'MOD'; $args = 2; break; + case 40: $function = 'DCOUNT'; $args = 3; break; + case 41: $function = 'DSUM'; $args = 3; break; + case 42: $function = 'DAVERAGE'; $args = 3; break; + case 43: $function = 'DMIN'; $args = 3; break; + case 44: $function = 'DMAX'; $args = 3; break; + case 45: $function = 'DSTDEV'; $args = 3; break; + case 48: $function = 'TEXT'; $args = 2; break; + case 61: $function = 'MIRR'; $args = 3; break; + case 63: $function = 'RAND'; $args = 0; break; + case 65: $function = 'DATE'; $args = 3; break; + case 66: $function = 'TIME'; $args = 3; break; + case 67: $function = 'DAY'; $args = 1; break; + case 68: $function = 'MONTH'; $args = 1; break; + case 69: $function = 'YEAR'; $args = 1; break; + case 71: $function = 'HOUR'; $args = 1; break; + case 72: $function = 'MINUTE'; $args = 1; break; + case 73: $function = 'SECOND'; $args = 1; break; + case 74: $function = 'NOW'; $args = 0; break; + case 75: $function = 'AREAS'; $args = 1; break; + case 76: $function = 'ROWS'; $args = 1; break; + case 77: $function = 'COLUMNS'; $args = 1; break; + case 83: $function = 'TRANSPOSE'; $args = 1; break; + case 86: $function = 'TYPE'; $args = 1; break; + case 97: $function = 'ATAN2'; $args = 2; break; + case 98: $function = 'ASIN'; $args = 1; break; + case 99: $function = 'ACOS'; $args = 1; break; + case 105: $function = 'ISREF'; $args = 1; break; + case 111: $function = 'CHAR'; $args = 1; break; + case 112: $function = 'LOWER'; $args = 1; break; + case 113: $function = 'UPPER'; $args = 1; break; + case 114: $function = 'PROPER'; $args = 1; break; + case 117: $function = 'EXACT'; $args = 2; break; + case 118: $function = 'TRIM'; $args = 1; break; + case 119: $function = 'REPLACE'; $args = 4; break; + case 121: $function = 'CODE'; $args = 1; break; + case 126: $function = 'ISERR'; $args = 1; break; + case 127: $function = 'ISTEXT'; $args = 1; break; + case 128: $function = 'ISNUMBER'; $args = 1; break; + case 129: $function = 'ISBLANK'; $args = 1; break; + case 130: $function = 'T'; $args = 1; break; + case 131: $function = 'N'; $args = 1; break; + case 140: $function = 'DATEVALUE'; $args = 1; break; + case 141: $function = 'TIMEVALUE'; $args = 1; break; + case 142: $function = 'SLN'; $args = 3; break; + case 143: $function = 'SYD'; $args = 4; break; + case 162: $function = 'CLEAN'; $args = 1; break; + case 163: $function = 'MDETERM'; $args = 1; break; + case 164: $function = 'MINVERSE'; $args = 1; break; + case 165: $function = 'MMULT'; $args = 2; break; + case 184: $function = 'FACT'; $args = 1; break; + case 189: $function = 'DPRODUCT'; $args = 3; break; + case 190: $function = 'ISNONTEXT'; $args = 1; break; + case 195: $function = 'DSTDEVP'; $args = 3; break; + case 196: $function = 'DVARP'; $args = 3; break; + case 198: $function = 'ISLOGICAL'; $args = 1; break; + case 199: $function = 'DCOUNTA'; $args = 3; break; + case 207: $function = 'REPLACEB'; $args = 4; break; + case 210: $function = 'MIDB'; $args = 3; break; + case 211: $function = 'LENB'; $args = 1; break; + case 212: $function = 'ROUNDUP'; $args = 2; break; + case 213: $function = 'ROUNDDOWN'; $args = 2; break; + case 214: $function = 'ASC'; $args = 1; break; + case 215: $function = 'DBCS'; $args = 1; break; + case 221: $function = 'TODAY'; $args = 0; break; + case 229: $function = 'SINH'; $args = 1; break; + case 230: $function = 'COSH'; $args = 1; break; + case 231: $function = 'TANH'; $args = 1; break; + case 232: $function = 'ASINH'; $args = 1; break; + case 233: $function = 'ACOSH'; $args = 1; break; + case 234: $function = 'ATANH'; $args = 1; break; + case 235: $function = 'DGET'; $args = 3; break; + case 244: $function = 'INFO'; $args = 1; break; + case 252: $function = 'FREQUENCY'; $args = 2; break; + case 261: $function = 'ERROR.TYPE'; $args = 1; break; + case 271: $function = 'GAMMALN'; $args = 1; break; + case 273: $function = 'BINOMDIST'; $args = 4; break; + case 274: $function = 'CHIDIST'; $args = 2; break; + case 275: $function = 'CHIINV'; $args = 2; break; + case 276: $function = 'COMBIN'; $args = 2; break; + case 277: $function = 'CONFIDENCE'; $args = 3; break; + case 278: $function = 'CRITBINOM'; $args = 3; break; + case 279: $function = 'EVEN'; $args = 1; break; + case 280: $function = 'EXPONDIST'; $args = 3; break; + case 281: $function = 'FDIST'; $args = 3; break; + case 282: $function = 'FINV'; $args = 3; break; + case 283: $function = 'FISHER'; $args = 1; break; + case 284: $function = 'FISHERINV'; $args = 1; break; + case 285: $function = 'FLOOR'; $args = 2; break; + case 286: $function = 'GAMMADIST'; $args = 4; break; + case 287: $function = 'GAMMAINV'; $args = 3; break; + case 288: $function = 'CEILING'; $args = 2; break; + case 289: $function = 'HYPGEOMDIST'; $args = 4; break; + case 290: $function = 'LOGNORMDIST'; $args = 3; break; + case 291: $function = 'LOGINV'; $args = 3; break; + case 292: $function = 'NEGBINOMDIST'; $args = 3; break; + case 293: $function = 'NORMDIST'; $args = 4; break; + case 294: $function = 'NORMSDIST'; $args = 1; break; + case 295: $function = 'NORMINV'; $args = 3; break; + case 296: $function = 'NORMSINV'; $args = 1; break; + case 297: $function = 'STANDARDIZE'; $args = 3; break; + case 298: $function = 'ODD'; $args = 1; break; + case 299: $function = 'PERMUT'; $args = 2; break; + case 300: $function = 'POISSON'; $args = 3; break; + case 301: $function = 'TDIST'; $args = 3; break; + case 302: $function = 'WEIBULL'; $args = 4; break; + case 303: $function = 'SUMXMY2'; $args = 2; break; + case 304: $function = 'SUMX2MY2'; $args = 2; break; + case 305: $function = 'SUMX2PY2'; $args = 2; break; + case 306: $function = 'CHITEST'; $args = 2; break; + case 307: $function = 'CORREL'; $args = 2; break; + case 308: $function = 'COVAR'; $args = 2; break; + case 309: $function = 'FORECAST'; $args = 3; break; + case 310: $function = 'FTEST'; $args = 2; break; + case 311: $function = 'INTERCEPT'; $args = 2; break; + case 312: $function = 'PEARSON'; $args = 2; break; + case 313: $function = 'RSQ'; $args = 2; break; + case 314: $function = 'STEYX'; $args = 2; break; + case 315: $function = 'SLOPE'; $args = 2; break; + case 316: $function = 'TTEST'; $args = 4; break; + case 325: $function = 'LARGE'; $args = 2; break; + case 326: $function = 'SMALL'; $args = 2; break; + case 327: $function = 'QUARTILE'; $args = 2; break; + case 328: $function = 'PERCENTILE'; $args = 2; break; + case 331: $function = 'TRIMMEAN'; $args = 2; break; + case 332: $function = 'TINV'; $args = 2; break; + case 337: $function = 'POWER'; $args = 2; break; + case 342: $function = 'RADIANS'; $args = 1; break; + case 343: $function = 'DEGREES'; $args = 1; break; + case 346: $function = 'COUNTIF'; $args = 2; break; + case 347: $function = 'COUNTBLANK'; $args = 1; break; + case 350: $function = 'ISPMT'; $args = 4; break; + case 351: $function = 'DATEDIF'; $args = 3; break; + case 352: $function = 'DATESTRING'; $args = 1; break; + case 353: $function = 'NUMBERSTRING'; $args = 2; break; + case 360: $function = 'PHONETIC'; $args = 1; break; + case 368: $function = 'BAHTTEXT'; $args = 1; break; + default: + throw new PHPExcel_Reader_Exception('Unrecognized function in formula'); + break; + } + $data = array('function' => $function, 'args' => $args); + break; + case 0x22: // function with variable number of arguments + case 0x42: + case 0x62: + $name = 'tFuncV'; + $size = 4; + // offset: 1; size: 1; number of arguments + $args = ord($formulaData[1]); + // offset: 2: size: 2; index to built-in sheet function + $index = self::_GetInt2d($formulaData, 2); + switch ($index) { + case 0: $function = 'COUNT'; break; + case 1: $function = 'IF'; break; + case 4: $function = 'SUM'; break; + case 5: $function = 'AVERAGE'; break; + case 6: $function = 'MIN'; break; + case 7: $function = 'MAX'; break; + case 8: $function = 'ROW'; break; + case 9: $function = 'COLUMN'; break; + case 11: $function = 'NPV'; break; + case 12: $function = 'STDEV'; break; + case 13: $function = 'DOLLAR'; break; + case 14: $function = 'FIXED'; break; + case 28: $function = 'LOOKUP'; break; + case 29: $function = 'INDEX'; break; + case 36: $function = 'AND'; break; + case 37: $function = 'OR'; break; + case 46: $function = 'VAR'; break; + case 49: $function = 'LINEST'; break; + case 50: $function = 'TREND'; break; + case 51: $function = 'LOGEST'; break; + case 52: $function = 'GROWTH'; break; + case 56: $function = 'PV'; break; + case 57: $function = 'FV'; break; + case 58: $function = 'NPER'; break; + case 59: $function = 'PMT'; break; + case 60: $function = 'RATE'; break; + case 62: $function = 'IRR'; break; + case 64: $function = 'MATCH'; break; + case 70: $function = 'WEEKDAY'; break; + case 78: $function = 'OFFSET'; break; + case 82: $function = 'SEARCH'; break; + case 100: $function = 'CHOOSE'; break; + case 101: $function = 'HLOOKUP'; break; + case 102: $function = 'VLOOKUP'; break; + case 109: $function = 'LOG'; break; + case 115: $function = 'LEFT'; break; + case 116: $function = 'RIGHT'; break; + case 120: $function = 'SUBSTITUTE'; break; + case 124: $function = 'FIND'; break; + case 125: $function = 'CELL'; break; + case 144: $function = 'DDB'; break; + case 148: $function = 'INDIRECT'; break; + case 167: $function = 'IPMT'; break; + case 168: $function = 'PPMT'; break; + case 169: $function = 'COUNTA'; break; + case 183: $function = 'PRODUCT'; break; + case 193: $function = 'STDEVP'; break; + case 194: $function = 'VARP'; break; + case 197: $function = 'TRUNC'; break; + case 204: $function = 'USDOLLAR'; break; + case 205: $function = 'FINDB'; break; + case 206: $function = 'SEARCHB'; break; + case 208: $function = 'LEFTB'; break; + case 209: $function = 'RIGHTB'; break; + case 216: $function = 'RANK'; break; + case 219: $function = 'ADDRESS'; break; + case 220: $function = 'DAYS360'; break; + case 222: $function = 'VDB'; break; + case 227: $function = 'MEDIAN'; break; + case 228: $function = 'SUMPRODUCT'; break; + case 247: $function = 'DB'; break; + case 255: $function = ''; break; + case 269: $function = 'AVEDEV'; break; + case 270: $function = 'BETADIST'; break; + case 272: $function = 'BETAINV'; break; + case 317: $function = 'PROB'; break; + case 318: $function = 'DEVSQ'; break; + case 319: $function = 'GEOMEAN'; break; + case 320: $function = 'HARMEAN'; break; + case 321: $function = 'SUMSQ'; break; + case 322: $function = 'KURT'; break; + case 323: $function = 'SKEW'; break; + case 324: $function = 'ZTEST'; break; + case 329: $function = 'PERCENTRANK'; break; + case 330: $function = 'MODE'; break; + case 336: $function = 'CONCATENATE'; break; + case 344: $function = 'SUBTOTAL'; break; + case 345: $function = 'SUMIF'; break; + case 354: $function = 'ROMAN'; break; + case 358: $function = 'GETPIVOTDATA'; break; + case 359: $function = 'HYPERLINK'; break; + case 361: $function = 'AVERAGEA'; break; + case 362: $function = 'MAXA'; break; + case 363: $function = 'MINA'; break; + case 364: $function = 'STDEVPA'; break; + case 365: $function = 'VARPA'; break; + case 366: $function = 'STDEVA'; break; + case 367: $function = 'VARA'; break; + default: + throw new PHPExcel_Reader_Exception('Unrecognized function in formula'); + break; + } + $data = array('function' => $function, 'args' => $args); + break; + case 0x23: // index to defined name + case 0x43: + case 0x63: + $name = 'tName'; + $size = 5; + // offset: 1; size: 2; one-based index to definedname record + $definedNameIndex = self::_GetInt2d($formulaData, 1) - 1; + // offset: 2; size: 2; not used + $data = $this->_definedname[$definedNameIndex]['name']; + break; + case 0x24: // single cell reference e.g. A5 + case 0x44: + case 0x64: + $name = 'tRef'; + $size = 5; + $data = $this->_readBIFF8CellAddress(substr($formulaData, 1, 4)); + break; + case 0x25: // cell range reference to cells in the same sheet (2d) + case 0x45: + case 0x65: + $name = 'tArea'; + $size = 9; + $data = $this->_readBIFF8CellRangeAddress(substr($formulaData, 1, 8)); + break; + case 0x26: // Constant reference sub-expression + case 0x46: + case 0x66: + $name = 'tMemArea'; + // offset: 1; size: 4; not used + // offset: 5; size: 2; size of the following subexpression + $subSize = self::_GetInt2d($formulaData, 5); + $size = 7 + $subSize; + $data = $this->_getFormulaFromData(substr($formulaData, 7, $subSize)); + break; + case 0x27: // Deleted constant reference sub-expression + case 0x47: + case 0x67: + $name = 'tMemErr'; + // offset: 1; size: 4; not used + // offset: 5; size: 2; size of the following subexpression + $subSize = self::_GetInt2d($formulaData, 5); + $size = 7 + $subSize; + $data = $this->_getFormulaFromData(substr($formulaData, 7, $subSize)); + break; + case 0x29: // Variable reference sub-expression + case 0x49: + case 0x69: + $name = 'tMemFunc'; + // offset: 1; size: 2; size of the following sub-expression + $subSize = self::_GetInt2d($formulaData, 1); + $size = 3 + $subSize; + $data = $this->_getFormulaFromData(substr($formulaData, 3, $subSize)); + break; + + case 0x2C: // Relative 2d cell reference reference, used in shared formulas and some other places + case 0x4C: + case 0x6C: + $name = 'tRefN'; + $size = 5; + $data = $this->_readBIFF8CellAddressB(substr($formulaData, 1, 4), $baseCell); + break; + + case 0x2D: // Relative 2d range reference + case 0x4D: + case 0x6D: + $name = 'tAreaN'; + $size = 9; + $data = $this->_readBIFF8CellRangeAddressB(substr($formulaData, 1, 8), $baseCell); + break; + + case 0x39: // External name + case 0x59: + case 0x79: + $name = 'tNameX'; + $size = 7; + // offset: 1; size: 2; index to REF entry in EXTERNSHEET record + // offset: 3; size: 2; one-based index to DEFINEDNAME or EXTERNNAME record + $index = self::_GetInt2d($formulaData, 3); + // assume index is to EXTERNNAME record + $data = $this->_externalNames[$index - 1]['name']; + // offset: 5; size: 2; not used + break; + + case 0x3A: // 3d reference to cell + case 0x5A: + case 0x7A: + $name = 'tRef3d'; + $size = 7; + + try { + // offset: 1; size: 2; index to REF entry + $sheetRange = $this->_readSheetRangeByRefIndex(self::_GetInt2d($formulaData, 1)); + // offset: 3; size: 4; cell address + $cellAddress = $this->_readBIFF8CellAddress(substr($formulaData, 3, 4)); + + $data = "$sheetRange!$cellAddress"; + } catch (PHPExcel_Exception $e) { + // deleted sheet reference + $data = '#REF!'; + } + + break; + case 0x3B: // 3d reference to cell range + case 0x5B: + case 0x7B: + $name = 'tArea3d'; + $size = 11; + + try { + // offset: 1; size: 2; index to REF entry + $sheetRange = $this->_readSheetRangeByRefIndex(self::_GetInt2d($formulaData, 1)); + // offset: 3; size: 8; cell address + $cellRangeAddress = $this->_readBIFF8CellRangeAddress(substr($formulaData, 3, 8)); + + $data = "$sheetRange!$cellRangeAddress"; + } catch (PHPExcel_Exception $e) { + // deleted sheet reference + $data = '#REF!'; + } + + break; + // Unknown cases // don't know how to deal with + default: + throw new PHPExcel_Reader_Exception('Unrecognized token ' . sprintf('%02X', $id) . ' in formula'); + break; + } + + return array( + 'id' => $id, + 'name' => $name, + 'size' => $size, + 'data' => $data, + ); + } + + + /** + * Reads a cell address in BIFF8 e.g. 'A2' or '$A$2' + * section 3.3.4 + * + * @param string $cellAddressStructure + * @return string + */ + private function _readBIFF8CellAddress($cellAddressStructure) + { + // offset: 0; size: 2; index to row (0... 65535) (or offset (-32768... 32767)) + $row = self::_GetInt2d($cellAddressStructure, 0) + 1; + + // offset: 2; size: 2; index to column or column offset + relative flags + + // bit: 7-0; mask 0x00FF; column index + $column = PHPExcel_Cell::stringFromColumnIndex(0x00FF & self::_GetInt2d($cellAddressStructure, 2)); + + // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index) + if (!(0x4000 & self::_GetInt2d($cellAddressStructure, 2))) { + $column = '$' . $column; + } + // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index) + if (!(0x8000 & self::_GetInt2d($cellAddressStructure, 2))) { + $row = '$' . $row; + } + + return $column . $row; + } + + + /** + * Reads a cell address in BIFF8 for shared formulas. Uses positive and negative values for row and column + * to indicate offsets from a base cell + * section 3.3.4 + * + * @param string $cellAddressStructure + * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas + * @return string + */ + private function _readBIFF8CellAddressB($cellAddressStructure, $baseCell = 'A1') + { + list($baseCol, $baseRow) = PHPExcel_Cell::coordinateFromString($baseCell); + $baseCol = PHPExcel_Cell::columnIndexFromString($baseCol) - 1; + + // offset: 0; size: 2; index to row (0... 65535) (or offset (-32768... 32767)) + $rowIndex = self::_GetInt2d($cellAddressStructure, 0); + $row = self::_GetInt2d($cellAddressStructure, 0) + 1; + + // offset: 2; size: 2; index to column or column offset + relative flags + + // bit: 7-0; mask 0x00FF; column index + $colIndex = 0x00FF & self::_GetInt2d($cellAddressStructure, 2); + + // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index) + if (!(0x4000 & self::_GetInt2d($cellAddressStructure, 2))) { + $column = PHPExcel_Cell::stringFromColumnIndex($colIndex); + $column = '$' . $column; + } else { + $colIndex = ($colIndex <= 127) ? $colIndex : $colIndex - 256; + $column = PHPExcel_Cell::stringFromColumnIndex($baseCol + $colIndex); + } + + // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index) + if (!(0x8000 & self::_GetInt2d($cellAddressStructure, 2))) { + $row = '$' . $row; + } else { + $rowIndex = ($rowIndex <= 32767) ? $rowIndex : $rowIndex - 65536; + $row = $baseRow + $rowIndex; + } + + return $column . $row; + } + + + /** + * Reads a cell range address in BIFF5 e.g. 'A2:B6' or 'A1' + * always fixed range + * section 2.5.14 + * + * @param string $subData + * @return string + * @throws PHPExcel_Reader_Exception + */ + private function _readBIFF5CellRangeAddressFixed($subData) + { + // offset: 0; size: 2; index to first row + $fr = self::_GetInt2d($subData, 0) + 1; + + // offset: 2; size: 2; index to last row + $lr = self::_GetInt2d($subData, 2) + 1; + + // offset: 4; size: 1; index to first column + $fc = ord($subData{4}); + + // offset: 5; size: 1; index to last column + $lc = ord($subData{5}); + + // check values + if ($fr > $lr || $fc > $lc) { + throw new PHPExcel_Reader_Exception('Not a cell range address'); + } + + // column index to letter + $fc = PHPExcel_Cell::stringFromColumnIndex($fc); + $lc = PHPExcel_Cell::stringFromColumnIndex($lc); + + if ($fr == $lr and $fc == $lc) { + return "$fc$fr"; + } + return "$fc$fr:$lc$lr"; + } + + + /** + * Reads a cell range address in BIFF8 e.g. 'A2:B6' or 'A1' + * always fixed range + * section 2.5.14 + * + * @param string $subData + * @return string + * @throws PHPExcel_Reader_Exception + */ + private function _readBIFF8CellRangeAddressFixed($subData) + { + // offset: 0; size: 2; index to first row + $fr = self::_GetInt2d($subData, 0) + 1; + + // offset: 2; size: 2; index to last row + $lr = self::_GetInt2d($subData, 2) + 1; + + // offset: 4; size: 2; index to first column + $fc = self::_GetInt2d($subData, 4); + + // offset: 6; size: 2; index to last column + $lc = self::_GetInt2d($subData, 6); + + // check values + if ($fr > $lr || $fc > $lc) { + throw new PHPExcel_Reader_Exception('Not a cell range address'); + } + + // column index to letter + $fc = PHPExcel_Cell::stringFromColumnIndex($fc); + $lc = PHPExcel_Cell::stringFromColumnIndex($lc); + + if ($fr == $lr and $fc == $lc) { + return "$fc$fr"; + } + return "$fc$fr:$lc$lr"; + } + + + /** + * Reads a cell range address in BIFF8 e.g. 'A2:B6' or '$A$2:$B$6' + * there are flags indicating whether column/row index is relative + * section 3.3.4 + * + * @param string $subData + * @return string + */ + private function _readBIFF8CellRangeAddress($subData) + { + // todo: if cell range is just a single cell, should this funciton + // not just return e.g. 'A1' and not 'A1:A1' ? + + // offset: 0; size: 2; index to first row (0... 65535) (or offset (-32768... 32767)) + $fr = self::_GetInt2d($subData, 0) + 1; + + // offset: 2; size: 2; index to last row (0... 65535) (or offset (-32768... 32767)) + $lr = self::_GetInt2d($subData, 2) + 1; + + // offset: 4; size: 2; index to first column or column offset + relative flags + + // bit: 7-0; mask 0x00FF; column index + $fc = PHPExcel_Cell::stringFromColumnIndex(0x00FF & self::_GetInt2d($subData, 4)); + + // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index) + if (!(0x4000 & self::_GetInt2d($subData, 4))) { + $fc = '$' . $fc; + } + + // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index) + if (!(0x8000 & self::_GetInt2d($subData, 4))) { + $fr = '$' . $fr; + } + + // offset: 6; size: 2; index to last column or column offset + relative flags + + // bit: 7-0; mask 0x00FF; column index + $lc = PHPExcel_Cell::stringFromColumnIndex(0x00FF & self::_GetInt2d($subData, 6)); + + // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index) + if (!(0x4000 & self::_GetInt2d($subData, 6))) { + $lc = '$' . $lc; + } + + // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index) + if (!(0x8000 & self::_GetInt2d($subData, 6))) { + $lr = '$' . $lr; + } + + return "$fc$fr:$lc$lr"; + } + + + /** + * Reads a cell range address in BIFF8 for shared formulas. Uses positive and negative values for row and column + * to indicate offsets from a base cell + * section 3.3.4 + * + * @param string $subData + * @param string $baseCell Base cell + * @return string Cell range address + */ + private function _readBIFF8CellRangeAddressB($subData, $baseCell = 'A1') + { + list($baseCol, $baseRow) = PHPExcel_Cell::coordinateFromString($baseCell); + $baseCol = PHPExcel_Cell::columnIndexFromString($baseCol) - 1; + + // TODO: if cell range is just a single cell, should this funciton + // not just return e.g. 'A1' and not 'A1:A1' ? + + // offset: 0; size: 2; first row + $frIndex = self::_GetInt2d($subData, 0); // adjust below + + // offset: 2; size: 2; relative index to first row (0... 65535) should be treated as offset (-32768... 32767) + $lrIndex = self::_GetInt2d($subData, 2); // adjust below + + // offset: 4; size: 2; first column with relative/absolute flags + + // bit: 7-0; mask 0x00FF; column index + $fcIndex = 0x00FF & self::_GetInt2d($subData, 4); + + // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index) + if (!(0x4000 & self::_GetInt2d($subData, 4))) { + // absolute column index + $fc = PHPExcel_Cell::stringFromColumnIndex($fcIndex); + $fc = '$' . $fc; + } else { + // column offset + $fcIndex = ($fcIndex <= 127) ? $fcIndex : $fcIndex - 256; + $fc = PHPExcel_Cell::stringFromColumnIndex($baseCol + $fcIndex); + } + + // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index) + if (!(0x8000 & self::_GetInt2d($subData, 4))) { + // absolute row index + $fr = $frIndex + 1; + $fr = '$' . $fr; + } else { + // row offset + $frIndex = ($frIndex <= 32767) ? $frIndex : $frIndex - 65536; + $fr = $baseRow + $frIndex; + } + + // offset: 6; size: 2; last column with relative/absolute flags + + // bit: 7-0; mask 0x00FF; column index + $lcIndex = 0x00FF & self::_GetInt2d($subData, 6); + $lcIndex = ($lcIndex <= 127) ? $lcIndex : $lcIndex - 256; + $lc = PHPExcel_Cell::stringFromColumnIndex($baseCol + $lcIndex); + + // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index) + if (!(0x4000 & self::_GetInt2d($subData, 6))) { + // absolute column index + $lc = PHPExcel_Cell::stringFromColumnIndex($lcIndex); + $lc = '$' . $lc; + } else { + // column offset + $lcIndex = ($lcIndex <= 127) ? $lcIndex : $lcIndex - 256; + $lc = PHPExcel_Cell::stringFromColumnIndex($baseCol + $lcIndex); + } + + // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index) + if (!(0x8000 & self::_GetInt2d($subData, 6))) { + // absolute row index + $lr = $lrIndex + 1; + $lr = '$' . $lr; + } else { + // row offset + $lrIndex = ($lrIndex <= 32767) ? $lrIndex : $lrIndex - 65536; + $lr = $baseRow + $lrIndex; + } + + return "$fc$fr:$lc$lr"; + } + + + /** + * Read BIFF8 cell range address list + * section 2.5.15 + * + * @param string $subData + * @return array + */ + private function _readBIFF8CellRangeAddressList($subData) + { + $cellRangeAddresses = array(); + + // offset: 0; size: 2; number of the following cell range addresses + $nm = self::_GetInt2d($subData, 0); + + $offset = 2; + // offset: 2; size: 8 * $nm; list of $nm (fixed) cell range addresses + for ($i = 0; $i < $nm; ++$i) { + $cellRangeAddresses[] = $this->_readBIFF8CellRangeAddressFixed(substr($subData, $offset, 8)); + $offset += 8; + } + + return array( + 'size' => 2 + 8 * $nm, + 'cellRangeAddresses' => $cellRangeAddresses, + ); + } + + + /** + * Read BIFF5 cell range address list + * section 2.5.15 + * + * @param string $subData + * @return array + */ + private function _readBIFF5CellRangeAddressList($subData) + { + $cellRangeAddresses = array(); + + // offset: 0; size: 2; number of the following cell range addresses + $nm = self::_GetInt2d($subData, 0); + + $offset = 2; + // offset: 2; size: 6 * $nm; list of $nm (fixed) cell range addresses + for ($i = 0; $i < $nm; ++$i) { + $cellRangeAddresses[] = $this->_readBIFF5CellRangeAddressFixed(substr($subData, $offset, 6)); + $offset += 6; + } + + return array( + 'size' => 2 + 6 * $nm, + 'cellRangeAddresses' => $cellRangeAddresses, + ); + } + + + /** + * Get a sheet range like Sheet1:Sheet3 from REF index + * Note: If there is only one sheet in the range, one gets e.g Sheet1 + * It can also happen that the REF structure uses the -1 (FFFF) code to indicate deleted sheets, + * in which case an PHPExcel_Reader_Exception is thrown + * + * @param int $index + * @return string|false + * @throws PHPExcel_Reader_Exception + */ + private function _readSheetRangeByRefIndex($index) + { + if (isset($this->_ref[$index])) { + + $type = $this->_externalBooks[$this->_ref[$index]['externalBookIndex']]['type']; + + switch ($type) { + case 'internal': + // check if we have a deleted 3d reference + if ($this->_ref[$index]['firstSheetIndex'] == 0xFFFF or $this->_ref[$index]['lastSheetIndex'] == 0xFFFF) { + throw new PHPExcel_Reader_Exception('Deleted sheet reference'); + } + + // we have normal sheet range (collapsed or uncollapsed) + $firstSheetName = $this->_sheets[$this->_ref[$index]['firstSheetIndex']]['name']; + $lastSheetName = $this->_sheets[$this->_ref[$index]['lastSheetIndex']]['name']; + + if ($firstSheetName == $lastSheetName) { + // collapsed sheet range + $sheetRange = $firstSheetName; + } else { + $sheetRange = "$firstSheetName:$lastSheetName"; + } + + // escape the single-quotes + $sheetRange = str_replace("'", "''", $sheetRange); + + // if there are special characters, we need to enclose the range in single-quotes + // todo: check if we have identified the whole set of special characters + // it seems that the following characters are not accepted for sheet names + // and we may assume that they are not present: []*/:\? + if (preg_match("/[ !\"@#£$%&{()}<>=+'|^,;-]/", $sheetRange)) { + $sheetRange = "'$sheetRange'"; + } + + return $sheetRange; + break; + + default: + // TODO: external sheet support + throw new PHPExcel_Reader_Exception('Excel5 reader only supports internal sheets in fomulas'); + break; + } + } + return false; + } + + + /** + * read BIFF8 constant value array from array data + * returns e.g. array('value' => '{1,2;3,4}', 'size' => 40} + * section 2.5.8 + * + * @param string $arrayData + * @return array + */ + private static function _readBIFF8ConstantArray($arrayData) + { + // offset: 0; size: 1; number of columns decreased by 1 + $nc = ord($arrayData[0]); + + // offset: 1; size: 2; number of rows decreased by 1 + $nr = self::_GetInt2d($arrayData, 1); + $size = 3; // initialize + $arrayData = substr($arrayData, 3); + + // offset: 3; size: var; list of ($nc + 1) * ($nr + 1) constant values + $matrixChunks = array(); + for ($r = 1; $r <= $nr + 1; ++$r) { + $items = array(); + for ($c = 1; $c <= $nc + 1; ++$c) { + $constant = self::_readBIFF8Constant($arrayData); + $items[] = $constant['value']; + $arrayData = substr($arrayData, $constant['size']); + $size += $constant['size']; + } + $matrixChunks[] = implode(',', $items); // looks like e.g. '1,"hello"' + } + $matrix = '{' . implode(';', $matrixChunks) . '}'; + + return array( + 'value' => $matrix, + 'size' => $size, + ); + } + + + /** + * read BIFF8 constant value which may be 'Empty Value', 'Number', 'String Value', 'Boolean Value', 'Error Value' + * section 2.5.7 + * returns e.g. array('value' => '5', 'size' => 9) + * + * @param string $valueData + * @return array + */ + private static function _readBIFF8Constant($valueData) + { + // offset: 0; size: 1; identifier for type of constant + $identifier = ord($valueData[0]); + + switch ($identifier) { + case 0x00: // empty constant (what is this?) + $value = ''; + $size = 9; + break; + case 0x01: // number + // offset: 1; size: 8; IEEE 754 floating-point value + $value = self::_extractNumber(substr($valueData, 1, 8)); + $size = 9; + break; + case 0x02: // string value + // offset: 1; size: var; Unicode string, 16-bit string length + $string = self::_readUnicodeStringLong(substr($valueData, 1)); + $value = '"' . $string['value'] . '"'; + $size = 1 + $string['size']; + break; + case 0x04: // boolean + // offset: 1; size: 1; 0 = FALSE, 1 = TRUE + if (ord($valueData[1])) { + $value = 'TRUE'; + } else { + $value = 'FALSE'; + } + $size = 9; + break; + case 0x10: // error code + // offset: 1; size: 1; error code + $value = self::_mapErrorCode(ord($valueData[1])); + $size = 9; + break; + } + return array( + 'value' => $value, + 'size' => $size, + ); + } + + + /** + * Extract RGB color + * OpenOffice.org's Documentation of the Microsoft Excel File Format, section 2.5.4 + * + * @param string $rgb Encoded RGB value (4 bytes) + * @return array + */ + private static function _readRGB($rgb) + { + // offset: 0; size 1; Red component + $r = ord($rgb{0}); + + // offset: 1; size: 1; Green component + $g = ord($rgb{1}); + + // offset: 2; size: 1; Blue component + $b = ord($rgb{2}); + + // HEX notation, e.g. 'FF00FC' + $rgb = sprintf('%02X%02X%02X', $r, $g, $b); + + return array('rgb' => $rgb); + } + + + /** + * Read byte string (8-bit string length) + * OpenOffice documentation: 2.5.2 + * + * @param string $subData + * @return array + */ + private function _readByteStringShort($subData) + { + // offset: 0; size: 1; length of the string (character count) + $ln = ord($subData[0]); + + // offset: 1: size: var; character array (8-bit characters) + $value = $this->_decodeCodepage(substr($subData, 1, $ln)); + + return array( + 'value' => $value, + 'size' => 1 + $ln, // size in bytes of data structure + ); + } + + + /** + * Read byte string (16-bit string length) + * OpenOffice documentation: 2.5.2 + * + * @param string $subData + * @return array + */ + private function _readByteStringLong($subData) + { + // offset: 0; size: 2; length of the string (character count) + $ln = self::_GetInt2d($subData, 0); + + // offset: 2: size: var; character array (8-bit characters) + $value = $this->_decodeCodepage(substr($subData, 2)); + + //return $string; + return array( + 'value' => $value, + 'size' => 2 + $ln, // size in bytes of data structure + ); + } + + + /** + * Extracts an Excel Unicode short string (8-bit string length) + * OpenOffice documentation: 2.5.3 + * function will automatically find out where the Unicode string ends. + * + * @param string $subData + * @return array + */ + private static function _readUnicodeStringShort($subData) + { + $value = ''; + + // offset: 0: size: 1; length of the string (character count) + $characterCount = ord($subData[0]); + + $string = self::_readUnicodeString(substr($subData, 1), $characterCount); + + // add 1 for the string length + $string['size'] += 1; + + return $string; + } + + + /** + * Extracts an Excel Unicode long string (16-bit string length) + * OpenOffice documentation: 2.5.3 + * this function is under construction, needs to support rich text, and Asian phonetic settings + * + * @param string $subData + * @return array + */ + private static function _readUnicodeStringLong($subData) + { + $value = ''; + + // offset: 0: size: 2; length of the string (character count) + $characterCount = self::_GetInt2d($subData, 0); + + $string = self::_readUnicodeString(substr($subData, 2), $characterCount); + + // add 2 for the string length + $string['size'] += 2; + + return $string; + } + + + /** + * Read Unicode string with no string length field, but with known character count + * this function is under construction, needs to support rich text, and Asian phonetic settings + * OpenOffice.org's Documentation of the Microsoft Excel File Format, section 2.5.3 + * + * @param string $subData + * @param int $characterCount + * @return array + */ + private static function _readUnicodeString($subData, $characterCount) + { + $value = ''; + + // offset: 0: size: 1; option flags + + // bit: 0; mask: 0x01; character compression (0 = compressed 8-bit, 1 = uncompressed 16-bit) + $isCompressed = !((0x01 & ord($subData[0])) >> 0); + + // bit: 2; mask: 0x04; Asian phonetic settings + $hasAsian = (0x04) & ord($subData[0]) >> 2; + + // bit: 3; mask: 0x08; Rich-Text settings + $hasRichText = (0x08) & ord($subData[0]) >> 3; + + // offset: 1: size: var; character array + // this offset assumes richtext and Asian phonetic settings are off which is generally wrong + // needs to be fixed + $value = self::_encodeUTF16(substr($subData, 1, $isCompressed ? $characterCount : 2 * $characterCount), $isCompressed); + + return array( + 'value' => $value, + 'size' => $isCompressed ? 1 + $characterCount : 1 + 2 * $characterCount, // the size in bytes including the option flags + ); + } + + + /** + * Convert UTF-8 string to string surounded by double quotes. Used for explicit string tokens in formulas. + * Example: hello"world --> "hello""world" + * + * @param string $value UTF-8 encoded string + * @return string + */ + private static function _UTF8toExcelDoubleQuoted($value) + { + return '"' . str_replace('"', '""', $value) . '"'; + } + + + /** + * Reads first 8 bytes of a string and return IEEE 754 float + * + * @param string $data Binary string that is at least 8 bytes long + * @return float + */ + private static function _extractNumber($data) + { + $rknumhigh = self::_GetInt4d($data, 4); + $rknumlow = self::_GetInt4d($data, 0); + $sign = ($rknumhigh & 0x80000000) >> 31; + $exp = (($rknumhigh & 0x7ff00000) >> 20) - 1023; + $mantissa = (0x100000 | ($rknumhigh & 0x000fffff)); + $mantissalow1 = ($rknumlow & 0x80000000) >> 31; + $mantissalow2 = ($rknumlow & 0x7fffffff); + $value = $mantissa / pow( 2 , (20 - $exp)); + + if ($mantissalow1 != 0) { + $value += 1 / pow (2 , (21 - $exp)); + } + + $value += $mantissalow2 / pow (2 , (52 - $exp)); + if ($sign) { + $value *= -1; + } + + return $value; + } + + + private static function _GetIEEE754($rknum) + { + if (($rknum & 0x02) != 0) { + $value = $rknum >> 2; + } else { + // changes by mmp, info on IEEE754 encoding from + // research.microsoft.com/~hollasch/cgindex/coding/ieeefloat.html + // The RK format calls for using only the most significant 30 bits + // of the 64 bit floating point value. The other 34 bits are assumed + // to be 0 so we use the upper 30 bits of $rknum as follows... + $sign = ($rknum & 0x80000000) >> 31; + $exp = ($rknum & 0x7ff00000) >> 20; + $mantissa = (0x100000 | ($rknum & 0x000ffffc)); + $value = $mantissa / pow( 2 , (20- ($exp - 1023))); + if ($sign) { + $value = -1 * $value; + } + //end of changes by mmp + } + if (($rknum & 0x01) != 0) { + $value /= 100; + } + return $value; + } + + + /** + * Get UTF-8 string from (compressed or uncompressed) UTF-16 string + * + * @param string $string + * @param bool $compressed + * @return string + */ + private static function _encodeUTF16($string, $compressed = '') + { + if ($compressed) { + $string = self::_uncompressByteString($string); + } + + return PHPExcel_Shared_String::ConvertEncoding($string, 'UTF-8', 'UTF-16LE'); + } + + + /** + * Convert UTF-16 string in compressed notation to uncompressed form. Only used for BIFF8. + * + * @param string $string + * @return string + */ + private static function _uncompressByteString($string) + { + $uncompressedString = ''; + $strLen = strlen($string); + for ($i = 0; $i < $strLen; ++$i) { + $uncompressedString .= $string[$i] . "\0"; + } + + return $uncompressedString; + } + + + /** + * Convert string to UTF-8. Only used for BIFF5. + * + * @param string $string + * @return string + */ + private function _decodeCodepage($string) + { + return PHPExcel_Shared_String::ConvertEncoding($string, 'UTF-8', $this->_codepage); + } + + + /** + * Read 16-bit unsigned integer + * + * @param string $data + * @param int $pos + * @return int + */ + public static function _GetInt2d($data, $pos) + { + return ord($data[$pos]) | (ord($data[$pos+1]) << 8); + } + + + /** + * Read 32-bit signed integer + * + * @param string $data + * @param int $pos + * @return int + */ + public static function _GetInt4d($data, $pos) + { + // FIX: represent numbers correctly on 64-bit system + // http://sourceforge.net/tracker/index.php?func=detail&aid=1487372&group_id=99160&atid=623334 + // Hacked by Andreas Rehm 2006 to ensure correct result of the <<24 block on 32 and 64bit systems + $_or_24 = ord($data[$pos + 3]); + if ($_or_24 >= 128) { + // negative number + $_ord_24 = -abs((256 - $_or_24) << 24); + } else { + $_ord_24 = ($_or_24 & 127) << 24; + } + return ord($data[$pos]) | (ord($data[$pos+1]) << 8) | (ord($data[$pos+2]) << 16) | $_ord_24; + } + + + /** + * Read color + * + * @param int $color Indexed color + * @param array $palette Color palette + * @return array RGB color value, example: array('rgb' => 'FF0000') + */ + private static function _readColor($color,$palette,$version) + { + if ($color <= 0x07 || $color >= 0x40) { + // special built-in color + return self::_mapBuiltInColor($color); + } elseif (isset($palette) && isset($palette[$color - 8])) { + // palette color, color index 0x08 maps to pallete index 0 + return $palette[$color - 8]; + } else { + // default color table + if ($version == self::XLS_BIFF8) { + return self::_mapColor($color); + } else { + // BIFF5 + return self::_mapColorBIFF5($color); + } + } + + return $color; + } + + + /** + * Map border style + * OpenOffice documentation: 2.5.11 + * + * @param int $index + * @return string + */ + private static function _mapBorderStyle($index) + { + switch ($index) { + case 0x00: return PHPExcel_Style_Border::BORDER_NONE; + case 0x01: return PHPExcel_Style_Border::BORDER_THIN; + case 0x02: return PHPExcel_Style_Border::BORDER_MEDIUM; + case 0x03: return PHPExcel_Style_Border::BORDER_DASHED; + case 0x04: return PHPExcel_Style_Border::BORDER_DOTTED; + case 0x05: return PHPExcel_Style_Border::BORDER_THICK; + case 0x06: return PHPExcel_Style_Border::BORDER_DOUBLE; + case 0x07: return PHPExcel_Style_Border::BORDER_HAIR; + case 0x08: return PHPExcel_Style_Border::BORDER_MEDIUMDASHED; + case 0x09: return PHPExcel_Style_Border::BORDER_DASHDOT; + case 0x0A: return PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT; + case 0x0B: return PHPExcel_Style_Border::BORDER_DASHDOTDOT; + case 0x0C: return PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT; + case 0x0D: return PHPExcel_Style_Border::BORDER_SLANTDASHDOT; + default: return PHPExcel_Style_Border::BORDER_NONE; + } + } + + + /** + * Get fill pattern from index + * OpenOffice documentation: 2.5.12 + * + * @param int $index + * @return string + */ + private static function _mapFillPattern($index) + { + switch ($index) { + case 0x00: return PHPExcel_Style_Fill::FILL_NONE; + case 0x01: return PHPExcel_Style_Fill::FILL_SOLID; + case 0x02: return PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY; + case 0x03: return PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY; + case 0x04: return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY; + case 0x05: return PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL; + case 0x06: return PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL; + case 0x07: return PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN; + case 0x08: return PHPExcel_Style_Fill::FILL_PATTERN_DARKUP; + case 0x09: return PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID; + case 0x0A: return PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS; + case 0x0B: return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL; + case 0x0C: return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL; + case 0x0D: return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN; + case 0x0E: return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP; + case 0x0F: return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID; + case 0x10: return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS; + case 0x11: return PHPExcel_Style_Fill::FILL_PATTERN_GRAY125; + case 0x12: return PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625; + default: return PHPExcel_Style_Fill::FILL_NONE; + } + } + + + /** + * Map error code, e.g. '#N/A' + * + * @param int $subData + * @return string + */ + private static function _mapErrorCode($subData) + { + switch ($subData) { + case 0x00: return '#NULL!'; break; + case 0x07: return '#DIV/0!'; break; + case 0x0F: return '#VALUE!'; break; + case 0x17: return '#REF!'; break; + case 0x1D: return '#NAME?'; break; + case 0x24: return '#NUM!'; break; + case 0x2A: return '#N/A'; break; + default: return false; + } + } + + + /** + * Map built-in color to RGB value + * + * @param int $color Indexed color + * @return array + */ + private static function _mapBuiltInColor($color) + { + switch ($color) { + case 0x00: return array('rgb' => '000000'); + case 0x01: return array('rgb' => 'FFFFFF'); + case 0x02: return array('rgb' => 'FF0000'); + case 0x03: return array('rgb' => '00FF00'); + case 0x04: return array('rgb' => '0000FF'); + case 0x05: return array('rgb' => 'FFFF00'); + case 0x06: return array('rgb' => 'FF00FF'); + case 0x07: return array('rgb' => '00FFFF'); + case 0x40: return array('rgb' => '000000'); // system window text color + case 0x41: return array('rgb' => 'FFFFFF'); // system window background color + default: return array('rgb' => '000000'); + } + } + + + /** + * Map color array from BIFF5 built-in color index + * + * @param int $subData + * @return array + */ + private static function _mapColorBIFF5($subData) + { + switch ($subData) { + case 0x08: return array('rgb' => '000000'); + case 0x09: return array('rgb' => 'FFFFFF'); + case 0x0A: return array('rgb' => 'FF0000'); + case 0x0B: return array('rgb' => '00FF00'); + case 0x0C: return array('rgb' => '0000FF'); + case 0x0D: return array('rgb' => 'FFFF00'); + case 0x0E: return array('rgb' => 'FF00FF'); + case 0x0F: return array('rgb' => '00FFFF'); + case 0x10: return array('rgb' => '800000'); + case 0x11: return array('rgb' => '008000'); + case 0x12: return array('rgb' => '000080'); + case 0x13: return array('rgb' => '808000'); + case 0x14: return array('rgb' => '800080'); + case 0x15: return array('rgb' => '008080'); + case 0x16: return array('rgb' => 'C0C0C0'); + case 0x17: return array('rgb' => '808080'); + case 0x18: return array('rgb' => '8080FF'); + case 0x19: return array('rgb' => '802060'); + case 0x1A: return array('rgb' => 'FFFFC0'); + case 0x1B: return array('rgb' => 'A0E0F0'); + case 0x1C: return array('rgb' => '600080'); + case 0x1D: return array('rgb' => 'FF8080'); + case 0x1E: return array('rgb' => '0080C0'); + case 0x1F: return array('rgb' => 'C0C0FF'); + case 0x20: return array('rgb' => '000080'); + case 0x21: return array('rgb' => 'FF00FF'); + case 0x22: return array('rgb' => 'FFFF00'); + case 0x23: return array('rgb' => '00FFFF'); + case 0x24: return array('rgb' => '800080'); + case 0x25: return array('rgb' => '800000'); + case 0x26: return array('rgb' => '008080'); + case 0x27: return array('rgb' => '0000FF'); + case 0x28: return array('rgb' => '00CFFF'); + case 0x29: return array('rgb' => '69FFFF'); + case 0x2A: return array('rgb' => 'E0FFE0'); + case 0x2B: return array('rgb' => 'FFFF80'); + case 0x2C: return array('rgb' => 'A6CAF0'); + case 0x2D: return array('rgb' => 'DD9CB3'); + case 0x2E: return array('rgb' => 'B38FEE'); + case 0x2F: return array('rgb' => 'E3E3E3'); + case 0x30: return array('rgb' => '2A6FF9'); + case 0x31: return array('rgb' => '3FB8CD'); + case 0x32: return array('rgb' => '488436'); + case 0x33: return array('rgb' => '958C41'); + case 0x34: return array('rgb' => '8E5E42'); + case 0x35: return array('rgb' => 'A0627A'); + case 0x36: return array('rgb' => '624FAC'); + case 0x37: return array('rgb' => '969696'); + case 0x38: return array('rgb' => '1D2FBE'); + case 0x39: return array('rgb' => '286676'); + case 0x3A: return array('rgb' => '004500'); + case 0x3B: return array('rgb' => '453E01'); + case 0x3C: return array('rgb' => '6A2813'); + case 0x3D: return array('rgb' => '85396A'); + case 0x3E: return array('rgb' => '4A3285'); + case 0x3F: return array('rgb' => '424242'); + default: return array('rgb' => '000000'); + } + } + + + /** + * Map color array from BIFF8 built-in color index + * + * @param int $subData + * @return array + */ + private static function _mapColor($subData) + { + switch ($subData) { + case 0x08: return array('rgb' => '000000'); + case 0x09: return array('rgb' => 'FFFFFF'); + case 0x0A: return array('rgb' => 'FF0000'); + case 0x0B: return array('rgb' => '00FF00'); + case 0x0C: return array('rgb' => '0000FF'); + case 0x0D: return array('rgb' => 'FFFF00'); + case 0x0E: return array('rgb' => 'FF00FF'); + case 0x0F: return array('rgb' => '00FFFF'); + case 0x10: return array('rgb' => '800000'); + case 0x11: return array('rgb' => '008000'); + case 0x12: return array('rgb' => '000080'); + case 0x13: return array('rgb' => '808000'); + case 0x14: return array('rgb' => '800080'); + case 0x15: return array('rgb' => '008080'); + case 0x16: return array('rgb' => 'C0C0C0'); + case 0x17: return array('rgb' => '808080'); + case 0x18: return array('rgb' => '9999FF'); + case 0x19: return array('rgb' => '993366'); + case 0x1A: return array('rgb' => 'FFFFCC'); + case 0x1B: return array('rgb' => 'CCFFFF'); + case 0x1C: return array('rgb' => '660066'); + case 0x1D: return array('rgb' => 'FF8080'); + case 0x1E: return array('rgb' => '0066CC'); + case 0x1F: return array('rgb' => 'CCCCFF'); + case 0x20: return array('rgb' => '000080'); + case 0x21: return array('rgb' => 'FF00FF'); + case 0x22: return array('rgb' => 'FFFF00'); + case 0x23: return array('rgb' => '00FFFF'); + case 0x24: return array('rgb' => '800080'); + case 0x25: return array('rgb' => '800000'); + case 0x26: return array('rgb' => '008080'); + case 0x27: return array('rgb' => '0000FF'); + case 0x28: return array('rgb' => '00CCFF'); + case 0x29: return array('rgb' => 'CCFFFF'); + case 0x2A: return array('rgb' => 'CCFFCC'); + case 0x2B: return array('rgb' => 'FFFF99'); + case 0x2C: return array('rgb' => '99CCFF'); + case 0x2D: return array('rgb' => 'FF99CC'); + case 0x2E: return array('rgb' => 'CC99FF'); + case 0x2F: return array('rgb' => 'FFCC99'); + case 0x30: return array('rgb' => '3366FF'); + case 0x31: return array('rgb' => '33CCCC'); + case 0x32: return array('rgb' => '99CC00'); + case 0x33: return array('rgb' => 'FFCC00'); + case 0x34: return array('rgb' => 'FF9900'); + case 0x35: return array('rgb' => 'FF6600'); + case 0x36: return array('rgb' => '666699'); + case 0x37: return array('rgb' => '969696'); + case 0x38: return array('rgb' => '003366'); + case 0x39: return array('rgb' => '339966'); + case 0x3A: return array('rgb' => '003300'); + case 0x3B: return array('rgb' => '333300'); + case 0x3C: return array('rgb' => '993300'); + case 0x3D: return array('rgb' => '993366'); + case 0x3E: return array('rgb' => '333399'); + case 0x3F: return array('rgb' => '333333'); + default: return array('rgb' => '000000'); + } + } + + + private function _parseRichText($is = '') { + $value = new PHPExcel_RichText(); + + $value->createText($is); + + return $value; + } + +} diff --git a/admin/helpers/PHPExcel/Reader/Excel5/Escher.php b/admin/helpers/PHPExcel/Reader/Excel5/Escher.php new file mode 100644 index 00000000..8dc5e902 --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/Excel5/Escher.php @@ -0,0 +1,640 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Reader_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +/** + * PHPExcel_Reader_Excel5_Escher + * + * @category PHPExcel + * @package PHPExcel_Reader_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Reader_Excel5_Escher +{ + const DGGCONTAINER = 0xF000; + const BSTORECONTAINER = 0xF001; + const DGCONTAINER = 0xF002; + const SPGRCONTAINER = 0xF003; + const SPCONTAINER = 0xF004; + const DGG = 0xF006; + const BSE = 0xF007; + const DG = 0xF008; + const SPGR = 0xF009; + const SP = 0xF00A; + const OPT = 0xF00B; + const CLIENTTEXTBOX = 0xF00D; + const CLIENTANCHOR = 0xF010; + const CLIENTDATA = 0xF011; + const BLIPJPEG = 0xF01D; + const BLIPPNG = 0xF01E; + const SPLITMENUCOLORS = 0xF11E; + const TERTIARYOPT = 0xF122; + + /** + * Escher stream data (binary) + * + * @var string + */ + private $_data; + + /** + * Size in bytes of the Escher stream data + * + * @var int + */ + private $_dataSize; + + /** + * Current position of stream pointer in Escher stream data + * + * @var int + */ + private $_pos; + + /** + * The object to be returned by the reader. Modified during load. + * + * @var mixed + */ + private $_object; + + /** + * Create a new PHPExcel_Reader_Excel5_Escher instance + * + * @param mixed $object + */ + public function __construct($object) + { + $this->_object = $object; + } + + /** + * Load Escher stream data. May be a partial Escher stream. + * + * @param string $data + */ + public function load($data) + { + $this->_data = $data; + + // total byte size of Excel data (workbook global substream + sheet substreams) + $this->_dataSize = strlen($this->_data); + + $this->_pos = 0; + + // Parse Escher stream + while ($this->_pos < $this->_dataSize) { + + // offset: 2; size: 2: Record Type + $fbt = PHPExcel_Reader_Excel5::_GetInt2d($this->_data, $this->_pos + 2); + + switch ($fbt) { + case self::DGGCONTAINER: $this->_readDggContainer(); break; + case self::DGG: $this->_readDgg(); break; + case self::BSTORECONTAINER: $this->_readBstoreContainer(); break; + case self::BSE: $this->_readBSE(); break; + case self::BLIPJPEG: $this->_readBlipJPEG(); break; + case self::BLIPPNG: $this->_readBlipPNG(); break; + case self::OPT: $this->_readOPT(); break; + case self::TERTIARYOPT: $this->_readTertiaryOPT(); break; + case self::SPLITMENUCOLORS: $this->_readSplitMenuColors(); break; + case self::DGCONTAINER: $this->_readDgContainer(); break; + case self::DG: $this->_readDg(); break; + case self::SPGRCONTAINER: $this->_readSpgrContainer(); break; + case self::SPCONTAINER: $this->_readSpContainer(); break; + case self::SPGR: $this->_readSpgr(); break; + case self::SP: $this->_readSp(); break; + case self::CLIENTTEXTBOX: $this->_readClientTextbox(); break; + case self::CLIENTANCHOR: $this->_readClientAnchor(); break; + case self::CLIENTDATA: $this->_readClientData(); break; + default: $this->_readDefault(); break; + } + } + + return $this->_object; + } + + /** + * Read a generic record + */ + private function _readDefault() + { + // offset 0; size: 2; recVer and recInstance + $verInstance = PHPExcel_Reader_Excel5::_GetInt2d($this->_data, $this->_pos); + + // offset: 2; size: 2: Record Type + $fbt = PHPExcel_Reader_Excel5::_GetInt2d($this->_data, $this->_pos + 2); + + // bit: 0-3; mask: 0x000F; recVer + $recVer = (0x000F & $verInstance) >> 0; + + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + } + + /** + * Read DggContainer record (Drawing Group Container) + */ + private function _readDggContainer() + { + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + + // record is a container, read contents + $dggContainer = new PHPExcel_Shared_Escher_DggContainer(); + $this->_object->setDggContainer($dggContainer); + $reader = new PHPExcel_Reader_Excel5_Escher($dggContainer); + $reader->load($recordData); + } + + /** + * Read Dgg record (Drawing Group) + */ + private function _readDgg() + { + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + } + + /** + * Read BstoreContainer record (Blip Store Container) + */ + private function _readBstoreContainer() + { + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + + // record is a container, read contents + $bstoreContainer = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer(); + $this->_object->setBstoreContainer($bstoreContainer); + $reader = new PHPExcel_Reader_Excel5_Escher($bstoreContainer); + $reader->load($recordData); + } + + /** + * Read BSE record + */ + private function _readBSE() + { + // offset: 0; size: 2; recVer and recInstance + + // bit: 4-15; mask: 0xFFF0; recInstance + $recInstance = (0xFFF0 & PHPExcel_Reader_Excel5::_GetInt2d($this->_data, $this->_pos)) >> 4; + + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + + // add BSE to BstoreContainer + $BSE = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE(); + $this->_object->addBSE($BSE); + + $BSE->setBLIPType($recInstance); + + // offset: 0; size: 1; btWin32 (MSOBLIPTYPE) + $btWin32 = ord($recordData[0]); + + // offset: 1; size: 1; btWin32 (MSOBLIPTYPE) + $btMacOS = ord($recordData[1]); + + // offset: 2; size: 16; MD4 digest + $rgbUid = substr($recordData, 2, 16); + + // offset: 18; size: 2; tag + $tag = PHPExcel_Reader_Excel5::_GetInt2d($recordData, 18); + + // offset: 20; size: 4; size of BLIP in bytes + $size = PHPExcel_Reader_Excel5::_GetInt4d($recordData, 20); + + // offset: 24; size: 4; number of references to this BLIP + $cRef = PHPExcel_Reader_Excel5::_GetInt4d($recordData, 24); + + // offset: 28; size: 4; MSOFO file offset + $foDelay = PHPExcel_Reader_Excel5::_GetInt4d($recordData, 28); + + // offset: 32; size: 1; unused1 + $unused1 = ord($recordData{32}); + + // offset: 33; size: 1; size of nameData in bytes (including null terminator) + $cbName = ord($recordData{33}); + + // offset: 34; size: 1; unused2 + $unused2 = ord($recordData{34}); + + // offset: 35; size: 1; unused3 + $unused3 = ord($recordData{35}); + + // offset: 36; size: $cbName; nameData + $nameData = substr($recordData, 36, $cbName); + + // offset: 36 + $cbName, size: var; the BLIP data + $blipData = substr($recordData, 36 + $cbName); + + // record is a container, read contents + $reader = new PHPExcel_Reader_Excel5_Escher($BSE); + $reader->load($blipData); + } + + /** + * Read BlipJPEG record. Holds raw JPEG image data + */ + private function _readBlipJPEG() + { + // offset: 0; size: 2; recVer and recInstance + + // bit: 4-15; mask: 0xFFF0; recInstance + $recInstance = (0xFFF0 & PHPExcel_Reader_Excel5::_GetInt2d($this->_data, $this->_pos)) >> 4; + + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + + $pos = 0; + + // offset: 0; size: 16; rgbUid1 (MD4 digest of) + $rgbUid1 = substr($recordData, 0, 16); + $pos += 16; + + // offset: 16; size: 16; rgbUid2 (MD4 digest), only if $recInstance = 0x46B or 0x6E3 + if (in_array($recInstance, array(0x046B, 0x06E3))) { + $rgbUid2 = substr($recordData, 16, 16); + $pos += 16; + } + + // offset: var; size: 1; tag + $tag = ord($recordData{$pos}); + $pos += 1; + + // offset: var; size: var; the raw image data + $data = substr($recordData, $pos); + + $blip = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip(); + $blip->setData($data); + + $this->_object->setBlip($blip); + } + + /** + * Read BlipPNG record. Holds raw PNG image data + */ + private function _readBlipPNG() + { + // offset: 0; size: 2; recVer and recInstance + + // bit: 4-15; mask: 0xFFF0; recInstance + $recInstance = (0xFFF0 & PHPExcel_Reader_Excel5::_GetInt2d($this->_data, $this->_pos)) >> 4; + + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + + $pos = 0; + + // offset: 0; size: 16; rgbUid1 (MD4 digest of) + $rgbUid1 = substr($recordData, 0, 16); + $pos += 16; + + // offset: 16; size: 16; rgbUid2 (MD4 digest), only if $recInstance = 0x46B or 0x6E3 + if ($recInstance == 0x06E1) { + $rgbUid2 = substr($recordData, 16, 16); + $pos += 16; + } + + // offset: var; size: 1; tag + $tag = ord($recordData{$pos}); + $pos += 1; + + // offset: var; size: var; the raw image data + $data = substr($recordData, $pos); + + $blip = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip(); + $blip->setData($data); + + $this->_object->setBlip($blip); + } + + /** + * Read OPT record. This record may occur within DggContainer record or SpContainer + */ + private function _readOPT() + { + // offset: 0; size: 2; recVer and recInstance + + // bit: 4-15; mask: 0xFFF0; recInstance + $recInstance = (0xFFF0 & PHPExcel_Reader_Excel5::_GetInt2d($this->_data, $this->_pos)) >> 4; + + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + + $this->_readOfficeArtRGFOPTE($recordData, $recInstance); + } + + /** + * Read TertiaryOPT record + */ + private function _readTertiaryOPT() + { + // offset: 0; size: 2; recVer and recInstance + + // bit: 4-15; mask: 0xFFF0; recInstance + $recInstance = (0xFFF0 & PHPExcel_Reader_Excel5::_GetInt2d($this->_data, $this->_pos)) >> 4; + + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + } + + /** + * Read SplitMenuColors record + */ + private function _readSplitMenuColors() + { + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + } + + /** + * Read DgContainer record (Drawing Container) + */ + private function _readDgContainer() + { + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + + // record is a container, read contents + $dgContainer = new PHPExcel_Shared_Escher_DgContainer(); + $this->_object->setDgContainer($dgContainer); + $reader = new PHPExcel_Reader_Excel5_Escher($dgContainer); + $escher = $reader->load($recordData); + } + + /** + * Read Dg record (Drawing) + */ + private function _readDg() + { + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + } + + /** + * Read SpgrContainer record (Shape Group Container) + */ + private function _readSpgrContainer() + { + // context is either context DgContainer or SpgrContainer + + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + + // record is a container, read contents + $spgrContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer(); + + if ($this->_object instanceof PHPExcel_Shared_Escher_DgContainer) { + // DgContainer + $this->_object->setSpgrContainer($spgrContainer); + } else { + // SpgrContainer + $this->_object->addChild($spgrContainer); + } + + $reader = new PHPExcel_Reader_Excel5_Escher($spgrContainer); + $escher = $reader->load($recordData); + } + + /** + * Read SpContainer record (Shape Container) + */ + private function _readSpContainer() + { + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // add spContainer to spgrContainer + $spContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer(); + $this->_object->addChild($spContainer); + + // move stream pointer to next record + $this->_pos += 8 + $length; + + // record is a container, read contents + $reader = new PHPExcel_Reader_Excel5_Escher($spContainer); + $escher = $reader->load($recordData); + } + + /** + * Read Spgr record (Shape Group) + */ + private function _readSpgr() + { + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + } + + /** + * Read Sp record (Shape) + */ + private function _readSp() + { + // offset: 0; size: 2; recVer and recInstance + + // bit: 4-15; mask: 0xFFF0; recInstance + $recInstance = (0xFFF0 & PHPExcel_Reader_Excel5::_GetInt2d($this->_data, $this->_pos)) >> 4; + + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + } + + /** + * Read ClientTextbox record + */ + private function _readClientTextbox() + { + // offset: 0; size: 2; recVer and recInstance + + // bit: 4-15; mask: 0xFFF0; recInstance + $recInstance = (0xFFF0 & PHPExcel_Reader_Excel5::_GetInt2d($this->_data, $this->_pos)) >> 4; + + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + } + + /** + * Read ClientAnchor record. This record holds information about where the shape is anchored in worksheet + */ + private function _readClientAnchor() + { + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + + // offset: 2; size: 2; upper-left corner column index (0-based) + $c1 = PHPExcel_Reader_Excel5::_GetInt2d($recordData, 2); + + // offset: 4; size: 2; upper-left corner horizontal offset in 1/1024 of column width + $startOffsetX = PHPExcel_Reader_Excel5::_GetInt2d($recordData, 4); + + // offset: 6; size: 2; upper-left corner row index (0-based) + $r1 = PHPExcel_Reader_Excel5::_GetInt2d($recordData, 6); + + // offset: 8; size: 2; upper-left corner vertical offset in 1/256 of row height + $startOffsetY = PHPExcel_Reader_Excel5::_GetInt2d($recordData, 8); + + // offset: 10; size: 2; bottom-right corner column index (0-based) + $c2 = PHPExcel_Reader_Excel5::_GetInt2d($recordData, 10); + + // offset: 12; size: 2; bottom-right corner horizontal offset in 1/1024 of column width + $endOffsetX = PHPExcel_Reader_Excel5::_GetInt2d($recordData, 12); + + // offset: 14; size: 2; bottom-right corner row index (0-based) + $r2 = PHPExcel_Reader_Excel5::_GetInt2d($recordData, 14); + + // offset: 16; size: 2; bottom-right corner vertical offset in 1/256 of row height + $endOffsetY = PHPExcel_Reader_Excel5::_GetInt2d($recordData, 16); + + // set the start coordinates + $this->_object->setStartCoordinates(PHPExcel_Cell::stringFromColumnIndex($c1) . ($r1 + 1)); + + // set the start offsetX + $this->_object->setStartOffsetX($startOffsetX); + + // set the start offsetY + $this->_object->setStartOffsetY($startOffsetY); + + // set the end coordinates + $this->_object->setEndCoordinates(PHPExcel_Cell::stringFromColumnIndex($c2) . ($r2 + 1)); + + // set the end offsetX + $this->_object->setEndOffsetX($endOffsetX); + + // set the end offsetY + $this->_object->setEndOffsetY($endOffsetY); + } + + /** + * Read ClientData record + */ + private function _readClientData() + { + $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4); + $recordData = substr($this->_data, $this->_pos + 8, $length); + + // move stream pointer to next record + $this->_pos += 8 + $length; + } + + /** + * Read OfficeArtRGFOPTE table of property-value pairs + * + * @param string $data Binary data + * @param int $n Number of properties + */ + private function _readOfficeArtRGFOPTE($data, $n) { + + $splicedComplexData = substr($data, 6 * $n); + + // loop through property-value pairs + for ($i = 0; $i < $n; ++$i) { + // read 6 bytes at a time + $fopte = substr($data, 6 * $i, 6); + + // offset: 0; size: 2; opid + $opid = PHPExcel_Reader_Excel5::_GetInt2d($fopte, 0); + + // bit: 0-13; mask: 0x3FFF; opid.opid + $opidOpid = (0x3FFF & $opid) >> 0; + + // bit: 14; mask 0x4000; 1 = value in op field is BLIP identifier + $opidFBid = (0x4000 & $opid) >> 14; + + // bit: 15; mask 0x8000; 1 = this is a complex property, op field specifies size of complex data + $opidFComplex = (0x8000 & $opid) >> 15; + + // offset: 2; size: 4; the value for this property + $op = PHPExcel_Reader_Excel5::_GetInt4d($fopte, 2); + + if ($opidFComplex) { + $complexData = substr($splicedComplexData, 0, $op); + $splicedComplexData = substr($splicedComplexData, $op); + + // we store string value with complex data + $value = $complexData; + } else { + // we store integer value + $value = $op; + } + + $this->_object->setOPT($opidOpid, $value); + } + } + +} diff --git a/admin/helpers/PHPExcel/Reader/Excel5/MD5.php b/admin/helpers/PHPExcel/Reader/Excel5/MD5.php new file mode 100644 index 00000000..097e9753 --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/Excel5/MD5.php @@ -0,0 +1,221 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Reader_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Reader_Excel5_MD5 + * + * @category PHPExcel + * @package PHPExcel_Reader_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Reader_Excel5_MD5 +{ + // Context + private $a; + private $b; + private $c; + private $d; + + + /** + * MD5 stream constructor + */ + public function __construct() + { + $this->reset(); + } + + + /** + * Reset the MD5 stream context + */ + public function reset() + { + $this->a = 0x67452301; + $this->b = 0xEFCDAB89; + $this->c = 0x98BADCFE; + $this->d = 0x10325476; + } + + + /** + * Get MD5 stream context + * + * @return string + */ + public function getContext() + { + $s = ''; + foreach (array('a', 'b', 'c', 'd') as $i) { + $v = $this->{$i}; + $s .= chr($v & 0xff); + $s .= chr(($v >> 8) & 0xff); + $s .= chr(($v >> 16) & 0xff); + $s .= chr(($v >> 24) & 0xff); + } + + return $s; + } + + + /** + * Add data to context + * + * @param string $data Data to add + */ + public function add($data) + { + $words = array_values(unpack('V16', $data)); + + $A = $this->a; + $B = $this->b; + $C = $this->c; + $D = $this->d; + + $F = array('PHPExcel_Reader_Excel5_MD5','F'); + $G = array('PHPExcel_Reader_Excel5_MD5','G'); + $H = array('PHPExcel_Reader_Excel5_MD5','H'); + $I = array('PHPExcel_Reader_Excel5_MD5','I'); + + /* ROUND 1 */ + self::step($F, $A, $B, $C, $D, $words[0], 7, 0xd76aa478); + self::step($F, $D, $A, $B, $C, $words[1], 12, 0xe8c7b756); + self::step($F, $C, $D, $A, $B, $words[2], 17, 0x242070db); + self::step($F, $B, $C, $D, $A, $words[3], 22, 0xc1bdceee); + self::step($F, $A, $B, $C, $D, $words[4], 7, 0xf57c0faf); + self::step($F, $D, $A, $B, $C, $words[5], 12, 0x4787c62a); + self::step($F, $C, $D, $A, $B, $words[6], 17, 0xa8304613); + self::step($F, $B, $C, $D, $A, $words[7], 22, 0xfd469501); + self::step($F, $A, $B, $C, $D, $words[8], 7, 0x698098d8); + self::step($F, $D, $A, $B, $C, $words[9], 12, 0x8b44f7af); + self::step($F, $C, $D, $A, $B, $words[10], 17, 0xffff5bb1); + self::step($F, $B, $C, $D, $A, $words[11], 22, 0x895cd7be); + self::step($F, $A, $B, $C, $D, $words[12], 7, 0x6b901122); + self::step($F, $D, $A, $B, $C, $words[13], 12, 0xfd987193); + self::step($F, $C, $D, $A, $B, $words[14], 17, 0xa679438e); + self::step($F, $B, $C, $D, $A, $words[15], 22, 0x49b40821); + + /* ROUND 2 */ + self::step($G, $A, $B, $C, $D, $words[1], 5, 0xf61e2562); + self::step($G, $D, $A, $B, $C, $words[6], 9, 0xc040b340); + self::step($G, $C, $D, $A, $B, $words[11], 14, 0x265e5a51); + self::step($G, $B, $C, $D, $A, $words[0], 20, 0xe9b6c7aa); + self::step($G, $A, $B, $C, $D, $words[5], 5, 0xd62f105d); + self::step($G, $D, $A, $B, $C, $words[10], 9, 0x02441453); + self::step($G, $C, $D, $A, $B, $words[15], 14, 0xd8a1e681); + self::step($G, $B, $C, $D, $A, $words[4], 20, 0xe7d3fbc8); + self::step($G, $A, $B, $C, $D, $words[9], 5, 0x21e1cde6); + self::step($G, $D, $A, $B, $C, $words[14], 9, 0xc33707d6); + self::step($G, $C, $D, $A, $B, $words[3], 14, 0xf4d50d87); + self::step($G, $B, $C, $D, $A, $words[8], 20, 0x455a14ed); + self::step($G, $A, $B, $C, $D, $words[13], 5, 0xa9e3e905); + self::step($G, $D, $A, $B, $C, $words[2], 9, 0xfcefa3f8); + self::step($G, $C, $D, $A, $B, $words[7], 14, 0x676f02d9); + self::step($G, $B, $C, $D, $A, $words[12], 20, 0x8d2a4c8a); + + /* ROUND 3 */ + self::step($H, $A, $B, $C, $D, $words[5], 4, 0xfffa3942); + self::step($H, $D, $A, $B, $C, $words[8], 11, 0x8771f681); + self::step($H, $C, $D, $A, $B, $words[11], 16, 0x6d9d6122); + self::step($H, $B, $C, $D, $A, $words[14], 23, 0xfde5380c); + self::step($H, $A, $B, $C, $D, $words[1], 4, 0xa4beea44); + self::step($H, $D, $A, $B, $C, $words[4], 11, 0x4bdecfa9); + self::step($H, $C, $D, $A, $B, $words[7], 16, 0xf6bb4b60); + self::step($H, $B, $C, $D, $A, $words[10], 23, 0xbebfbc70); + self::step($H, $A, $B, $C, $D, $words[13], 4, 0x289b7ec6); + self::step($H, $D, $A, $B, $C, $words[0], 11, 0xeaa127fa); + self::step($H, $C, $D, $A, $B, $words[3], 16, 0xd4ef3085); + self::step($H, $B, $C, $D, $A, $words[6], 23, 0x04881d05); + self::step($H, $A, $B, $C, $D, $words[9], 4, 0xd9d4d039); + self::step($H, $D, $A, $B, $C, $words[12], 11, 0xe6db99e5); + self::step($H, $C, $D, $A, $B, $words[15], 16, 0x1fa27cf8); + self::step($H, $B, $C, $D, $A, $words[2], 23, 0xc4ac5665); + + /* ROUND 4 */ + self::step($I, $A, $B, $C, $D, $words[0], 6, 0xf4292244); + self::step($I, $D, $A, $B, $C, $words[7], 10, 0x432aff97); + self::step($I, $C, $D, $A, $B, $words[14], 15, 0xab9423a7); + self::step($I, $B, $C, $D, $A, $words[5], 21, 0xfc93a039); + self::step($I, $A, $B, $C, $D, $words[12], 6, 0x655b59c3); + self::step($I, $D, $A, $B, $C, $words[3], 10, 0x8f0ccc92); + self::step($I, $C, $D, $A, $B, $words[10], 15, 0xffeff47d); + self::step($I, $B, $C, $D, $A, $words[1], 21, 0x85845dd1); + self::step($I, $A, $B, $C, $D, $words[8], 6, 0x6fa87e4f); + self::step($I, $D, $A, $B, $C, $words[15], 10, 0xfe2ce6e0); + self::step($I, $C, $D, $A, $B, $words[6], 15, 0xa3014314); + self::step($I, $B, $C, $D, $A, $words[13], 21, 0x4e0811a1); + self::step($I, $A, $B, $C, $D, $words[4], 6, 0xf7537e82); + self::step($I, $D, $A, $B, $C, $words[11], 10, 0xbd3af235); + self::step($I, $C, $D, $A, $B, $words[2], 15, 0x2ad7d2bb); + self::step($I, $B, $C, $D, $A, $words[9], 21, 0xeb86d391); + + $this->a = ($this->a + $A) & 0xffffffff; + $this->b = ($this->b + $B) & 0xffffffff; + $this->c = ($this->c + $C) & 0xffffffff; + $this->d = ($this->d + $D) & 0xffffffff; + } + + + private static function F($X, $Y, $Z) + { + return (($X & $Y) | ((~ $X) & $Z)); // X AND Y OR NOT X AND Z + } + + + private static function G($X, $Y, $Z) + { + return (($X & $Z) | ($Y & (~ $Z))); // X AND Z OR Y AND NOT Z + } + + + private static function H($X, $Y, $Z) + { + return ($X ^ $Y ^ $Z); // X XOR Y XOR Z + } + + + private static function I($X, $Y, $Z) + { + return ($Y ^ ($X | (~ $Z))) ; // Y XOR (X OR NOT Z) + } + + + private static function step($func, &$A, $B, $C, $D, $M, $s, $t) + { + $A = ($A + call_user_func($func, $B, $C, $D) + $M + $t) & 0xffffffff; + $A = self::rotate($A, $s); + $A = ($B + $A) & 0xffffffff; + } + + + private static function rotate($decimal, $bits) + { + $binary = str_pad(decbin($decimal), 32, "0", STR_PAD_LEFT); + return bindec(substr($binary, $bits).substr($binary, 0, $bits)); + } +} \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Reader/Excel5/RC4.php b/admin/helpers/PHPExcel/Reader/Excel5/RC4.php new file mode 100644 index 00000000..199ee192 --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/Excel5/RC4.php @@ -0,0 +1,88 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Reader_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +/** + * PHPExcel_Reader_Excel5_RC4 + * + * @category PHPExcel + * @package PHPExcel_Reader_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Reader_Excel5_RC4 +{ + // Context + var $s = array(); + var $i = 0; + var $j = 0; + + /** + * RC4 stream decryption/encryption constrcutor + * + * @param string $key Encryption key/passphrase + */ + public function __construct($key) + { + $len = strlen($key); + + for ($this->i = 0; $this->i < 256; $this->i++) { + $this->s[$this->i] = $this->i; + } + + $this->j = 0; + for ($this->i = 0; $this->i < 256; $this->i++) { + $this->j = ($this->j + $this->s[$this->i] + ord($key[$this->i % $len])) % 256; + $t = $this->s[$this->i]; + $this->s[$this->i] = $this->s[$this->j]; + $this->s[$this->j] = $t; + } + $this->i = $this->j = 0; + } + + /** + * Symmetric decryption/encryption function + * + * @param string $data Data to encrypt/decrypt + * + * @return string + */ + public function RC4($data) + { + $len = strlen($data); + for ($c = 0; $c < $len; $c++) { + $this->i = ($this->i + 1) % 256; + $this->j = ($this->j + $this->s[$this->i]) % 256; + $t = $this->s[$this->i]; + $this->s[$this->i] = $this->s[$this->j]; + $this->s[$this->j] = $t; + + $t = ($this->s[$this->i] + $this->s[$this->j]) % 256; + + $data[$c] = chr(ord($data[$c]) ^ $this->s[$t]); + } + return $data; + } +} diff --git a/admin/helpers/PHPExcel/Reader/Excel5/index.html b/admin/helpers/PHPExcel/Reader/Excel5/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/Excel5/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Reader/Exception.php b/admin/helpers/PHPExcel/Reader/Exception.php new file mode 100644 index 00000000..d0e2f570 --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/Exception.php @@ -0,0 +1,52 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Reader + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Reader_Exception + * + * @category PHPExcel + * @package PHPExcel_Reader + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Reader_Exception extends PHPExcel_Exception { + /** + * Error handler callback + * + * @param mixed $code + * @param mixed $string + * @param mixed $file + * @param mixed $line + * @param mixed $context + */ + public static function errorHandlerCallback($code, $string, $file, $line, $context) { + $e = new self($string, $code); + $e->line = $line; + $e->file = $file; + throw $e; + } +} diff --git a/admin/helpers/PHPExcel/Reader/Gnumeric.php b/admin/helpers/PHPExcel/Reader/Gnumeric.php new file mode 100644 index 00000000..d8121495 --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/Gnumeric.php @@ -0,0 +1,873 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Reader + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** PHPExcel root directory */ +if (!defined('PHPEXCEL_ROOT')) { + /** + * @ignore + */ + define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); + require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); +} + +/** + * PHPExcel_Reader_Gnumeric + * + * @category PHPExcel + * @package PHPExcel_Reader + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Reader_Gnumeric extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader +{ + /** + * Formats + * + * @var array + */ + private $_styles = array(); + + /** + * Shared Expressions + * + * @var array + */ + private $_expressions = array(); + + private $_referenceHelper = null; + + + /** + * Create a new PHPExcel_Reader_Gnumeric + */ + public function __construct() { + $this->_readFilter = new PHPExcel_Reader_DefaultReadFilter(); + $this->_referenceHelper = PHPExcel_ReferenceHelper::getInstance(); + } + + + /** + * Can the current PHPExcel_Reader_IReader read the file? + * + * @param string $pFilename + * @return boolean + * @throws PHPExcel_Reader_Exception + */ + public function canRead($pFilename) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + // Check if gzlib functions are available + if (!function_exists('gzread')) { + throw new PHPExcel_Reader_Exception("gzlib library is not enabled"); + } + + // Read signature data (first 3 bytes) + $fh = fopen($pFilename, 'r'); + $data = fread($fh, 2); + fclose($fh); + + if ($data != chr(0x1F).chr(0x8B)) { + return false; + } + + return true; + } + + + /** + * Reads names of the worksheets from a file, without parsing the whole file to a PHPExcel object + * + * @param string $pFilename + * @throws PHPExcel_Reader_Exception + */ + public function listWorksheetNames($pFilename) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + $xml = new XMLReader(); + $xml->open( + 'compress.zlib://'.realpath($pFilename), null, PHPExcel_Settings::getLibXmlLoaderOptions() + ); + $xml->setParserProperty(2,true); + + $worksheetNames = array(); + while ($xml->read()) { + if ($xml->name == 'gnm:SheetName' && $xml->nodeType == XMLReader::ELEMENT) { + $xml->read(); // Move onto the value node + $worksheetNames[] = (string) $xml->value; + } elseif ($xml->name == 'gnm:Sheets') { + // break out of the loop once we've got our sheet names rather than parse the entire file + break; + } + } + + return $worksheetNames; + } + + + /** + * Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) + * + * @param string $pFilename + * @throws PHPExcel_Reader_Exception + */ + public function listWorksheetInfo($pFilename) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + $xml = new XMLReader(); + $xml->open( + 'compress.zlib://'.realpath($pFilename), null, PHPExcel_Settings::getLibXmlLoaderOptions() + ); + $xml->setParserProperty(2,true); + + $worksheetInfo = array(); + while ($xml->read()) { + if ($xml->name == 'gnm:Sheet' && $xml->nodeType == XMLReader::ELEMENT) { + $tmpInfo = array( + 'worksheetName' => '', + 'lastColumnLetter' => 'A', + 'lastColumnIndex' => 0, + 'totalRows' => 0, + 'totalColumns' => 0, + ); + + while ($xml->read()) { + if ($xml->name == 'gnm:Name' && $xml->nodeType == XMLReader::ELEMENT) { + $xml->read(); // Move onto the value node + $tmpInfo['worksheetName'] = (string) $xml->value; + } elseif ($xml->name == 'gnm:MaxCol' && $xml->nodeType == XMLReader::ELEMENT) { + $xml->read(); // Move onto the value node + $tmpInfo['lastColumnIndex'] = (int) $xml->value; + $tmpInfo['totalColumns'] = (int) $xml->value + 1; + } elseif ($xml->name == 'gnm:MaxRow' && $xml->nodeType == XMLReader::ELEMENT) { + $xml->read(); // Move onto the value node + $tmpInfo['totalRows'] = (int) $xml->value + 1; + break; + } + } + $tmpInfo['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($tmpInfo['lastColumnIndex']); + $worksheetInfo[] = $tmpInfo; + } + } + + return $worksheetInfo; + } + + + private function _gzfileGetContents($filename) { + $file = @gzopen($filename, 'rb'); + if ($file !== false) { + $data = ''; + while (!gzeof($file)) { + $data .= gzread($file, 1024); + } + gzclose($file); + } + return $data; + } + + + /** + * Loads PHPExcel from file + * + * @param string $pFilename + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public function load($pFilename) + { + // Create new PHPExcel + $objPHPExcel = new PHPExcel(); + + // Load into this instance + return $this->loadIntoExisting($pFilename, $objPHPExcel); + } + + + /** + * Loads PHPExcel from file into PHPExcel instance + * + * @param string $pFilename + * @param PHPExcel $objPHPExcel + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + $timezoneObj = new DateTimeZone('Europe/London'); + $GMT = new DateTimeZone('UTC'); + + $gFileData = $this->_gzfileGetContents($pFilename); + +// echo '<pre>'; +// echo htmlentities($gFileData,ENT_QUOTES,'UTF-8'); +// echo '</pre><hr />'; +// + $xml = simplexml_load_string($gFileData, 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + $namespacesMeta = $xml->getNamespaces(true); + +// var_dump($namespacesMeta); +// + $gnmXML = $xml->children($namespacesMeta['gnm']); + + $docProps = $objPHPExcel->getProperties(); + // Document Properties are held differently, depending on the version of Gnumeric + if (isset($namespacesMeta['office'])) { + $officeXML = $xml->children($namespacesMeta['office']); + $officeDocXML = $officeXML->{'document-meta'}; + $officeDocMetaXML = $officeDocXML->meta; + + foreach($officeDocMetaXML as $officePropertyData) { + + $officePropertyDC = array(); + if (isset($namespacesMeta['dc'])) { + $officePropertyDC = $officePropertyData->children($namespacesMeta['dc']); + } + foreach($officePropertyDC as $propertyName => $propertyValue) { + $propertyValue = (string) $propertyValue; + switch ($propertyName) { + case 'title' : + $docProps->setTitle(trim($propertyValue)); + break; + case 'subject' : + $docProps->setSubject(trim($propertyValue)); + break; + case 'creator' : + $docProps->setCreator(trim($propertyValue)); + $docProps->setLastModifiedBy(trim($propertyValue)); + break; + case 'date' : + $creationDate = strtotime(trim($propertyValue)); + $docProps->setCreated($creationDate); + $docProps->setModified($creationDate); + break; + case 'description' : + $docProps->setDescription(trim($propertyValue)); + break; + } + } + $officePropertyMeta = array(); + if (isset($namespacesMeta['meta'])) { + $officePropertyMeta = $officePropertyData->children($namespacesMeta['meta']); + } + foreach($officePropertyMeta as $propertyName => $propertyValue) { + $attributes = $propertyValue->attributes($namespacesMeta['meta']); + $propertyValue = (string) $propertyValue; + switch ($propertyName) { + case 'keyword' : + $docProps->setKeywords(trim($propertyValue)); + break; + case 'initial-creator' : + $docProps->setCreator(trim($propertyValue)); + $docProps->setLastModifiedBy(trim($propertyValue)); + break; + case 'creation-date' : + $creationDate = strtotime(trim($propertyValue)); + $docProps->setCreated($creationDate); + $docProps->setModified($creationDate); + break; + case 'user-defined' : + list(,$attrName) = explode(':',$attributes['name']); + switch ($attrName) { + case 'publisher' : + $docProps->setCompany(trim($propertyValue)); + break; + case 'category' : + $docProps->setCategory(trim($propertyValue)); + break; + case 'manager' : + $docProps->setManager(trim($propertyValue)); + break; + } + break; + } + } + } + } elseif (isset($gnmXML->Summary)) { + foreach($gnmXML->Summary->Item as $summaryItem) { + $propertyName = $summaryItem->name; + $propertyValue = $summaryItem->{'val-string'}; + switch ($propertyName) { + case 'title' : + $docProps->setTitle(trim($propertyValue)); + break; + case 'comments' : + $docProps->setDescription(trim($propertyValue)); + break; + case 'keywords' : + $docProps->setKeywords(trim($propertyValue)); + break; + case 'category' : + $docProps->setCategory(trim($propertyValue)); + break; + case 'manager' : + $docProps->setManager(trim($propertyValue)); + break; + case 'author' : + $docProps->setCreator(trim($propertyValue)); + $docProps->setLastModifiedBy(trim($propertyValue)); + break; + case 'company' : + $docProps->setCompany(trim($propertyValue)); + break; + } + } + } + + $worksheetID = 0; + foreach($gnmXML->Sheets->Sheet as $sheet) { + $worksheetName = (string) $sheet->Name; +// echo '<b>Worksheet: ',$worksheetName,'</b><br />'; + if ((isset($this->_loadSheetsOnly)) && (!in_array($worksheetName, $this->_loadSheetsOnly))) { + continue; + } + + $maxRow = $maxCol = 0; + + // Create new Worksheet + $objPHPExcel->createSheet(); + $objPHPExcel->setActiveSheetIndex($worksheetID); + // Use false for $updateFormulaCellReferences to prevent adjustment of worksheet references in formula + // cells... during the load, all formulae should be correct, and we're simply bringing the worksheet + // name in line with the formula, not the reverse + $objPHPExcel->getActiveSheet()->setTitle($worksheetName,false); + + if ((!$this->_readDataOnly) && (isset($sheet->PrintInformation))) { + if (isset($sheet->PrintInformation->Margins)) { + foreach($sheet->PrintInformation->Margins->children('gnm',TRUE) as $key => $margin) { + $marginAttributes = $margin->attributes(); + $marginSize = 72 / 100; // Default + switch($marginAttributes['PrefUnit']) { + case 'mm' : + $marginSize = intval($marginAttributes['Points']) / 100; + break; + } + switch($key) { + case 'top' : + $objPHPExcel->getActiveSheet()->getPageMargins()->setTop($marginSize); + break; + case 'bottom' : + $objPHPExcel->getActiveSheet()->getPageMargins()->setBottom($marginSize); + break; + case 'left' : + $objPHPExcel->getActiveSheet()->getPageMargins()->setLeft($marginSize); + break; + case 'right' : + $objPHPExcel->getActiveSheet()->getPageMargins()->setRight($marginSize); + break; + case 'header' : + $objPHPExcel->getActiveSheet()->getPageMargins()->setHeader($marginSize); + break; + case 'footer' : + $objPHPExcel->getActiveSheet()->getPageMargins()->setFooter($marginSize); + break; + } + } + } + } + + foreach($sheet->Cells->Cell as $cell) { + $cellAttributes = $cell->attributes(); + $row = (int) $cellAttributes->Row + 1; + $column = (int) $cellAttributes->Col; + + if ($row > $maxRow) $maxRow = $row; + if ($column > $maxCol) $maxCol = $column; + + $column = PHPExcel_Cell::stringFromColumnIndex($column); + + // Read cell? + if ($this->getReadFilter() !== NULL) { + if (!$this->getReadFilter()->readCell($column, $row, $worksheetName)) { + continue; + } + } + + $ValueType = $cellAttributes->ValueType; + $ExprID = (string) $cellAttributes->ExprID; +// echo 'Cell ',$column,$row,'<br />'; +// echo 'Type is ',$ValueType,'<br />'; +// echo 'Value is ',$cell,'<br />'; + $type = PHPExcel_Cell_DataType::TYPE_FORMULA; + if ($ExprID > '') { + if (((string) $cell) > '') { + + $this->_expressions[$ExprID] = array( 'column' => $cellAttributes->Col, + 'row' => $cellAttributes->Row, + 'formula' => (string) $cell + ); +// echo 'NEW EXPRESSION ',$ExprID,'<br />'; + } else { + $expression = $this->_expressions[$ExprID]; + + $cell = $this->_referenceHelper->updateFormulaReferences( $expression['formula'], + 'A1', + $cellAttributes->Col - $expression['column'], + $cellAttributes->Row - $expression['row'], + $worksheetName + ); +// echo 'SHARED EXPRESSION ',$ExprID,'<br />'; +// echo 'New Value is ',$cell,'<br />'; + } + $type = PHPExcel_Cell_DataType::TYPE_FORMULA; + } else { + switch($ValueType) { + case '10' : // NULL + $type = PHPExcel_Cell_DataType::TYPE_NULL; + break; + case '20' : // Boolean + $type = PHPExcel_Cell_DataType::TYPE_BOOL; + $cell = ($cell == 'TRUE') ? True : False; + break; + case '30' : // Integer + $cell = intval($cell); + case '40' : // Float + $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; + break; + case '50' : // Error + $type = PHPExcel_Cell_DataType::TYPE_ERROR; + break; + case '60' : // String + $type = PHPExcel_Cell_DataType::TYPE_STRING; + break; + case '70' : // Cell Range + case '80' : // Array + } + } + $objPHPExcel->getActiveSheet()->getCell($column.$row)->setValueExplicit($cell,$type); + } + + if ((!$this->_readDataOnly) && (isset($sheet->Objects))) { + foreach($sheet->Objects->children('gnm',TRUE) as $key => $comment) { + $commentAttributes = $comment->attributes(); + // Only comment objects are handled at the moment + if ($commentAttributes->Text) { + $objPHPExcel->getActiveSheet()->getComment( (string)$commentAttributes->ObjectBound ) + ->setAuthor( (string)$commentAttributes->Author ) + ->setText($this->_parseRichText((string)$commentAttributes->Text) ); + } + } + } +// echo '$maxCol=',$maxCol,'; $maxRow=',$maxRow,'<br />'; +// + foreach($sheet->Styles->StyleRegion as $styleRegion) { + $styleAttributes = $styleRegion->attributes(); + if (($styleAttributes['startRow'] <= $maxRow) && + ($styleAttributes['startCol'] <= $maxCol)) { + + $startColumn = PHPExcel_Cell::stringFromColumnIndex((int) $styleAttributes['startCol']); + $startRow = $styleAttributes['startRow'] + 1; + + $endColumn = ($styleAttributes['endCol'] > $maxCol) ? $maxCol : (int) $styleAttributes['endCol']; + $endColumn = PHPExcel_Cell::stringFromColumnIndex($endColumn); + $endRow = ($styleAttributes['endRow'] > $maxRow) ? $maxRow : $styleAttributes['endRow']; + $endRow += 1; + $cellRange = $startColumn.$startRow.':'.$endColumn.$endRow; +// echo $cellRange,'<br />'; + + $styleAttributes = $styleRegion->Style->attributes(); +// var_dump($styleAttributes); +// echo '<br />'; + + // We still set the number format mask for date/time values, even if _readDataOnly is true + if ((!$this->_readDataOnly) || + (PHPExcel_Shared_Date::isDateTimeFormatCode((string) $styleAttributes['Format']))) { + $styleArray = array(); + $styleArray['numberformat']['code'] = (string) $styleAttributes['Format']; + // If _readDataOnly is false, we set all formatting information + if (!$this->_readDataOnly) { + switch($styleAttributes['HAlign']) { + case '1' : + $styleArray['alignment']['horizontal'] = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL; + break; + case '2' : + $styleArray['alignment']['horizontal'] = PHPExcel_Style_Alignment::HORIZONTAL_LEFT; + break; + case '4' : + $styleArray['alignment']['horizontal'] = PHPExcel_Style_Alignment::HORIZONTAL_RIGHT; + break; + case '8' : + $styleArray['alignment']['horizontal'] = PHPExcel_Style_Alignment::HORIZONTAL_CENTER; + break; + case '16' : + case '64' : + $styleArray['alignment']['horizontal'] = PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS; + break; + case '32' : + $styleArray['alignment']['horizontal'] = PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY; + break; + } + + switch($styleAttributes['VAlign']) { + case '1' : + $styleArray['alignment']['vertical'] = PHPExcel_Style_Alignment::VERTICAL_TOP; + break; + case '2' : + $styleArray['alignment']['vertical'] = PHPExcel_Style_Alignment::VERTICAL_BOTTOM; + break; + case '4' : + $styleArray['alignment']['vertical'] = PHPExcel_Style_Alignment::VERTICAL_CENTER; + break; + case '8' : + $styleArray['alignment']['vertical'] = PHPExcel_Style_Alignment::VERTICAL_JUSTIFY; + break; + } + + $styleArray['alignment']['wrap'] = ($styleAttributes['WrapText'] == '1') ? True : False; + $styleArray['alignment']['shrinkToFit'] = ($styleAttributes['ShrinkToFit'] == '1') ? True : False; + $styleArray['alignment']['indent'] = (intval($styleAttributes["Indent"]) > 0) ? $styleAttributes["indent"] : 0; + + $RGB = self::_parseGnumericColour($styleAttributes["Fore"]); + $styleArray['font']['color']['rgb'] = $RGB; + $RGB = self::_parseGnumericColour($styleAttributes["Back"]); + $shade = $styleAttributes["Shade"]; + if (($RGB != '000000') || ($shade != '0')) { + $styleArray['fill']['color']['rgb'] = $styleArray['fill']['startcolor']['rgb'] = $RGB; + $RGB2 = self::_parseGnumericColour($styleAttributes["PatternColor"]); + $styleArray['fill']['endcolor']['rgb'] = $RGB2; + switch($shade) { + case '1' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_SOLID; + break; + case '2' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR; + break; + case '3' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_GRADIENT_PATH; + break; + case '4' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN; + break; + case '5' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY; + break; + case '6' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID; + break; + case '7' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL; + break; + case '8' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS; + break; + case '9' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_DARKUP; + break; + case '10' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL; + break; + case '11' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625; + break; + case '12' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_GRAY125; + break; + case '13' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN; + break; + case '14' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY; + break; + case '15' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID; + break; + case '16' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL; + break; + case '17' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS; + break; + case '18' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP; + break; + case '19' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL; + break; + case '20' : + $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY; + break; + } + } + + $fontAttributes = $styleRegion->Style->Font->attributes(); +// var_dump($fontAttributes); +// echo '<br />'; + $styleArray['font']['name'] = (string) $styleRegion->Style->Font; + $styleArray['font']['size'] = intval($fontAttributes['Unit']); + $styleArray['font']['bold'] = ($fontAttributes['Bold'] == '1') ? True : False; + $styleArray['font']['italic'] = ($fontAttributes['Italic'] == '1') ? True : False; + $styleArray['font']['strike'] = ($fontAttributes['StrikeThrough'] == '1') ? True : False; + switch($fontAttributes['Underline']) { + case '1' : + $styleArray['font']['underline'] = PHPExcel_Style_Font::UNDERLINE_SINGLE; + break; + case '2' : + $styleArray['font']['underline'] = PHPExcel_Style_Font::UNDERLINE_DOUBLE; + break; + case '3' : + $styleArray['font']['underline'] = PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING; + break; + case '4' : + $styleArray['font']['underline'] = PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING; + break; + default : + $styleArray['font']['underline'] = PHPExcel_Style_Font::UNDERLINE_NONE; + break; + } + switch($fontAttributes['Script']) { + case '1' : + $styleArray['font']['superScript'] = True; + break; + case '-1' : + $styleArray['font']['subScript'] = True; + break; + } + + if (isset($styleRegion->Style->StyleBorder)) { + if (isset($styleRegion->Style->StyleBorder->Top)) { + $styleArray['borders']['top'] = self::_parseBorderAttributes($styleRegion->Style->StyleBorder->Top->attributes()); + } + if (isset($styleRegion->Style->StyleBorder->Bottom)) { + $styleArray['borders']['bottom'] = self::_parseBorderAttributes($styleRegion->Style->StyleBorder->Bottom->attributes()); + } + if (isset($styleRegion->Style->StyleBorder->Left)) { + $styleArray['borders']['left'] = self::_parseBorderAttributes($styleRegion->Style->StyleBorder->Left->attributes()); + } + if (isset($styleRegion->Style->StyleBorder->Right)) { + $styleArray['borders']['right'] = self::_parseBorderAttributes($styleRegion->Style->StyleBorder->Right->attributes()); + } + if ((isset($styleRegion->Style->StyleBorder->Diagonal)) && (isset($styleRegion->Style->StyleBorder->{'Rev-Diagonal'}))) { + $styleArray['borders']['diagonal'] = self::_parseBorderAttributes($styleRegion->Style->StyleBorder->Diagonal->attributes()); + $styleArray['borders']['diagonaldirection'] = PHPExcel_Style_Borders::DIAGONAL_BOTH; + } elseif (isset($styleRegion->Style->StyleBorder->Diagonal)) { + $styleArray['borders']['diagonal'] = self::_parseBorderAttributes($styleRegion->Style->StyleBorder->Diagonal->attributes()); + $styleArray['borders']['diagonaldirection'] = PHPExcel_Style_Borders::DIAGONAL_UP; + } elseif (isset($styleRegion->Style->StyleBorder->{'Rev-Diagonal'})) { + $styleArray['borders']['diagonal'] = self::_parseBorderAttributes($styleRegion->Style->StyleBorder->{'Rev-Diagonal'}->attributes()); + $styleArray['borders']['diagonaldirection'] = PHPExcel_Style_Borders::DIAGONAL_DOWN; + } + } + if (isset($styleRegion->Style->HyperLink)) { + // TO DO + $hyperlink = $styleRegion->Style->HyperLink->attributes(); + } + } +// var_dump($styleArray); +// echo '<br />'; + $objPHPExcel->getActiveSheet()->getStyle($cellRange)->applyFromArray($styleArray); + } + } + } + + if ((!$this->_readDataOnly) && (isset($sheet->Cols))) { + // Column Widths + $columnAttributes = $sheet->Cols->attributes(); + $defaultWidth = $columnAttributes['DefaultSizePts'] / 5.4; + $c = 0; + foreach($sheet->Cols->ColInfo as $columnOverride) { + $columnAttributes = $columnOverride->attributes(); + $column = $columnAttributes['No']; + $columnWidth = $columnAttributes['Unit'] / 5.4; + $hidden = ((isset($columnAttributes['Hidden'])) && ($columnAttributes['Hidden'] == '1')) ? true : false; + $columnCount = (isset($columnAttributes['Count'])) ? $columnAttributes['Count'] : 1; + while ($c < $column) { + $objPHPExcel->getActiveSheet()->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($c))->setWidth($defaultWidth); + ++$c; + } + while (($c < ($column+$columnCount)) && ($c <= $maxCol)) { + $objPHPExcel->getActiveSheet()->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($c))->setWidth($columnWidth); + if ($hidden) { + $objPHPExcel->getActiveSheet()->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($c))->setVisible(false); + } + ++$c; + } + } + while ($c <= $maxCol) { + $objPHPExcel->getActiveSheet()->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($c))->setWidth($defaultWidth); + ++$c; + } + } + + if ((!$this->_readDataOnly) && (isset($sheet->Rows))) { + // Row Heights + $rowAttributes = $sheet->Rows->attributes(); + $defaultHeight = $rowAttributes['DefaultSizePts']; + $r = 0; + + foreach($sheet->Rows->RowInfo as $rowOverride) { + $rowAttributes = $rowOverride->attributes(); + $row = $rowAttributes['No']; + $rowHeight = $rowAttributes['Unit']; + $hidden = ((isset($rowAttributes['Hidden'])) && ($rowAttributes['Hidden'] == '1')) ? true : false; + $rowCount = (isset($rowAttributes['Count'])) ? $rowAttributes['Count'] : 1; + while ($r < $row) { + ++$r; + $objPHPExcel->getActiveSheet()->getRowDimension($r)->setRowHeight($defaultHeight); + } + while (($r < ($row+$rowCount)) && ($r < $maxRow)) { + ++$r; + $objPHPExcel->getActiveSheet()->getRowDimension($r)->setRowHeight($rowHeight); + if ($hidden) { + $objPHPExcel->getActiveSheet()->getRowDimension($r)->setVisible(false); + } + } + } + while ($r < $maxRow) { + ++$r; + $objPHPExcel->getActiveSheet()->getRowDimension($r)->setRowHeight($defaultHeight); + } + } + + // Handle Merged Cells in this worksheet + if (isset($sheet->MergedRegions)) { + foreach($sheet->MergedRegions->Merge as $mergeCells) { + if (strpos($mergeCells,':') !== FALSE) { + $objPHPExcel->getActiveSheet()->mergeCells($mergeCells); + } + } + } + + $worksheetID++; + } + + // Loop through definedNames (global named ranges) + if (isset($gnmXML->Names)) { + foreach($gnmXML->Names->Name as $namedRange) { + $name = (string) $namedRange->name; + $range = (string) $namedRange->value; + if (stripos($range, '#REF!') !== false) { + continue; + } + + $range = explode('!',$range); + $range[0] = trim($range[0],"'");; + if ($worksheet = $objPHPExcel->getSheetByName($range[0])) { + $extractedRange = str_replace('$', '', $range[1]); + $objPHPExcel->addNamedRange( new PHPExcel_NamedRange($name, $worksheet, $extractedRange) ); + } + } + } + + + // Return + return $objPHPExcel; + } + + + private static function _parseBorderAttributes($borderAttributes) + { + $styleArray = array(); + + if (isset($borderAttributes["Color"])) { + $RGB = self::_parseGnumericColour($borderAttributes["Color"]); + $styleArray['color']['rgb'] = $RGB; + } + + switch ($borderAttributes["Style"]) { + case '0' : + $styleArray['style'] = PHPExcel_Style_Border::BORDER_NONE; + break; + case '1' : + $styleArray['style'] = PHPExcel_Style_Border::BORDER_THIN; + break; + case '2' : + $styleArray['style'] = PHPExcel_Style_Border::BORDER_MEDIUM; + break; + case '4' : + $styleArray['style'] = PHPExcel_Style_Border::BORDER_DASHED; + break; + case '5' : + $styleArray['style'] = PHPExcel_Style_Border::BORDER_THICK; + break; + case '6' : + $styleArray['style'] = PHPExcel_Style_Border::BORDER_DOUBLE; + break; + case '7' : + $styleArray['style'] = PHPExcel_Style_Border::BORDER_DOTTED; + break; + case '9' : + $styleArray['style'] = PHPExcel_Style_Border::BORDER_DASHDOT; + break; + case '10' : + $styleArray['style'] = PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT; + break; + case '11' : + $styleArray['style'] = PHPExcel_Style_Border::BORDER_DASHDOTDOT; + break; + case '12' : + $styleArray['style'] = PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT; + break; + case '13' : + $styleArray['style'] = PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT; + break; + case '3' : + $styleArray['style'] = PHPExcel_Style_Border::BORDER_SLANTDASHDOT; + break; + case '8' : + $styleArray['style'] = PHPExcel_Style_Border::BORDER_MEDIUMDASHED; + break; + } + return $styleArray; + } + + + private function _parseRichText($is = '') { + $value = new PHPExcel_RichText(); + + $value->createText($is); + + return $value; + } + + + private static function _parseGnumericColour($gnmColour) { + list($gnmR,$gnmG,$gnmB) = explode(':',$gnmColour); + $gnmR = substr(str_pad($gnmR,4,'0',STR_PAD_RIGHT),0,2); + $gnmG = substr(str_pad($gnmG,4,'0',STR_PAD_RIGHT),0,2); + $gnmB = substr(str_pad($gnmB,4,'0',STR_PAD_RIGHT),0,2); + $RGB = $gnmR.$gnmG.$gnmB; +// echo 'Excel Colour: ',$RGB,'<br />'; + return $RGB; + } + +} diff --git a/admin/helpers/PHPExcel/Reader/HTML.php b/admin/helpers/PHPExcel/Reader/HTML.php new file mode 100644 index 00000000..6adcc857 --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/HTML.php @@ -0,0 +1,469 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Reader + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** PHPExcel root directory */ +if (!defined('PHPEXCEL_ROOT')) { + /** + * @ignore + */ + define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); + require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); +} + +/** + * PHPExcel_Reader_HTML + * + * @category PHPExcel + * @package PHPExcel_Reader + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Reader_HTML extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader +{ + /** + * Input encoding + * + * @var string + */ + private $_inputEncoding = 'ANSI'; + + /** + * Sheet index to read + * + * @var int + */ + private $_sheetIndex = 0; + + /** + * Formats + * + * @var array + */ + private $_formats = array( 'h1' => array( 'font' => array( 'bold' => true, + 'size' => 24, + ), + ), // Bold, 24pt + 'h2' => array( 'font' => array( 'bold' => true, + 'size' => 18, + ), + ), // Bold, 18pt + 'h3' => array( 'font' => array( 'bold' => true, + 'size' => 13.5, + ), + ), // Bold, 13.5pt + 'h4' => array( 'font' => array( 'bold' => true, + 'size' => 12, + ), + ), // Bold, 12pt + 'h5' => array( 'font' => array( 'bold' => true, + 'size' => 10, + ), + ), // Bold, 10pt + 'h6' => array( 'font' => array( 'bold' => true, + 'size' => 7.5, + ), + ), // Bold, 7.5pt + 'a' => array( 'font' => array( 'underline' => true, + 'color' => array( 'argb' => PHPExcel_Style_Color::COLOR_BLUE, + ), + ), + ), // Blue underlined + 'hr' => array( 'borders' => array( 'bottom' => array( 'style' => PHPExcel_Style_Border::BORDER_THIN, + 'color' => array( PHPExcel_Style_Color::COLOR_BLACK, + ), + ), + ), + ), // Bottom border + ); + + + /** + * Create a new PHPExcel_Reader_HTML + */ + public function __construct() { + $this->_readFilter = new PHPExcel_Reader_DefaultReadFilter(); + } + + /** + * Validate that the current file is an HTML file + * + * @return boolean + */ + protected function _isValidFormat() + { + // Reading 2048 bytes should be enough to validate that the format is HTML + $data = fread($this->_fileHandle, 2048); + if ((strpos($data, '<') !== FALSE) && + (strlen($data) !== strlen(strip_tags($data)))) { + return TRUE; + } + + return FALSE; + } + + /** + * Loads PHPExcel from file + * + * @param string $pFilename + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public function load($pFilename) + { + // Create new PHPExcel + $objPHPExcel = new PHPExcel(); + + // Load into this instance + return $this->loadIntoExisting($pFilename, $objPHPExcel); + } + + /** + * Set input encoding + * + * @param string $pValue Input encoding + */ + public function setInputEncoding($pValue = 'ANSI') + { + $this->_inputEncoding = $pValue; + return $this; + } + + /** + * Get input encoding + * + * @return string + */ + public function getInputEncoding() + { + return $this->_inputEncoding; + } + + // Data Array used for testing only, should write to PHPExcel object on completion of tests + private $_dataArray = array(); + + private $_tableLevel = 0; + private $_nestedColumn = array('A'); + + private function _setTableStartColumn($column) { + if ($this->_tableLevel == 0) + $column = 'A'; + ++$this->_tableLevel; + $this->_nestedColumn[$this->_tableLevel] = $column; + + return $this->_nestedColumn[$this->_tableLevel]; + } + + private function _getTableStartColumn() { + return $this->_nestedColumn[$this->_tableLevel]; + } + + private function _releaseTableStartColumn() { + --$this->_tableLevel; + return array_pop($this->_nestedColumn); + } + + private function _flushCell($sheet,$column,$row,&$cellContent) { + if (is_string($cellContent)) { + // Simple String content + if (trim($cellContent) > '') { + // Only actually write it if there's content in the string +// echo 'FLUSH CELL: ' , $column , $row , ' => ' , $cellContent , '<br />'; + // Write to worksheet to be done here... + // ... we return the cell so we can mess about with styles more easily + $cell = $sheet->setCellValue($column.$row,$cellContent,true); + $this->_dataArray[$row][$column] = $cellContent; + } + } else { + // We have a Rich Text run + // TODO + $this->_dataArray[$row][$column] = 'RICH TEXT: ' . $cellContent; + } + $cellContent = (string) ''; + } + + private function _processDomElement(DOMNode $element, $sheet, &$row, &$column, &$cellContent){ + foreach($element->childNodes as $child){ + if ($child instanceof DOMText) { + $domText = preg_replace('/\s+/',' ',trim($child->nodeValue)); + if (is_string($cellContent)) { + // simply append the text if the cell content is a plain text string + $cellContent .= $domText; + } else { + // but if we have a rich text run instead, we need to append it correctly + // TODO + } + } elseif($child instanceof DOMElement) { +// echo '<b>DOM ELEMENT: </b>' , strtoupper($child->nodeName) , '<br />'; + + $attributeArray = array(); + foreach($child->attributes as $attribute) { +// echo '<b>ATTRIBUTE: </b>' , $attribute->name , ' => ' , $attribute->value , '<br />'; + $attributeArray[$attribute->name] = $attribute->value; + } + + switch($child->nodeName) { + case 'meta' : + foreach($attributeArray as $attributeName => $attributeValue) { + switch($attributeName) { + case 'content': + // TODO + // Extract character set, so we can convert to UTF-8 if required + break; + } + } + $this->_processDomElement($child,$sheet,$row,$column,$cellContent); + break; + case 'title' : + $this->_processDomElement($child,$sheet,$row,$column,$cellContent); + $sheet->setTitle($cellContent); + $cellContent = ''; + break; + case 'span' : + case 'div' : + case 'font' : + case 'i' : + case 'em' : + case 'strong': + case 'b' : +// echo 'STYLING, SPAN OR DIV<br />'; + if ($cellContent > '') + $cellContent .= ' '; + $this->_processDomElement($child,$sheet,$row,$column,$cellContent); + if ($cellContent > '') + $cellContent .= ' '; +// echo 'END OF STYLING, SPAN OR DIV<br />'; + break; + case 'hr' : + $this->_flushCell($sheet,$column,$row,$cellContent); + ++$row; + if (isset($this->_formats[$child->nodeName])) { + $sheet->getStyle($column.$row)->applyFromArray($this->_formats[$child->nodeName]); + } else { + $cellContent = '----------'; + $this->_flushCell($sheet,$column,$row,$cellContent); + } + ++$row; + case 'br' : + if ($this->_tableLevel > 0) { + // If we're inside a table, replace with a \n + $cellContent .= "\n"; + } else { + // Otherwise flush our existing content and move the row cursor on + $this->_flushCell($sheet,$column,$row,$cellContent); + ++$row; + } +// echo 'HARD LINE BREAK: ' , '<br />'; + break; + case 'a' : +// echo 'START OF HYPERLINK: ' , '<br />'; + foreach($attributeArray as $attributeName => $attributeValue) { + switch($attributeName) { + case 'href': +// echo 'Link to ' , $attributeValue , '<br />'; + $sheet->getCell($column.$row)->getHyperlink()->setUrl($attributeValue); + if (isset($this->_formats[$child->nodeName])) { + $sheet->getStyle($column.$row)->applyFromArray($this->_formats[$child->nodeName]); + } + break; + } + } + $cellContent .= ' '; + $this->_processDomElement($child,$sheet,$row,$column,$cellContent); +// echo 'END OF HYPERLINK:' , '<br />'; + break; + case 'h1' : + case 'h2' : + case 'h3' : + case 'h4' : + case 'h5' : + case 'h6' : + case 'ol' : + case 'ul' : + case 'p' : + if ($this->_tableLevel > 0) { + // If we're inside a table, replace with a \n + $cellContent .= "\n"; +// echo 'LIST ENTRY: ' , '<br />'; + $this->_processDomElement($child,$sheet,$row,$column,$cellContent); +// echo 'END OF LIST ENTRY:' , '<br />'; + } else { + if ($cellContent > '') { + $this->_flushCell($sheet,$column,$row,$cellContent); + $row += 2; + } +// echo 'START OF PARAGRAPH: ' , '<br />'; + $this->_processDomElement($child,$sheet,$row,$column,$cellContent); +// echo 'END OF PARAGRAPH:' , '<br />'; + $this->_flushCell($sheet,$column,$row,$cellContent); + + if (isset($this->_formats[$child->nodeName])) { + $sheet->getStyle($column.$row)->applyFromArray($this->_formats[$child->nodeName]); + } + + $row += 2; + $column = 'A'; + } + break; + case 'li' : + if ($this->_tableLevel > 0) { + // If we're inside a table, replace with a \n + $cellContent .= "\n"; +// echo 'LIST ENTRY: ' , '<br />'; + $this->_processDomElement($child,$sheet,$row,$column,$cellContent); +// echo 'END OF LIST ENTRY:' , '<br />'; + } else { + if ($cellContent > '') { + $this->_flushCell($sheet,$column,$row,$cellContent); + } + ++$row; +// echo 'LIST ENTRY: ' , '<br />'; + $this->_processDomElement($child,$sheet,$row,$column,$cellContent); +// echo 'END OF LIST ENTRY:' , '<br />'; + $this->_flushCell($sheet,$column,$row,$cellContent); + $column = 'A'; + } + break; + case 'table' : + $this->_flushCell($sheet,$column,$row,$cellContent); + $column = $this->_setTableStartColumn($column); +// echo 'START OF TABLE LEVEL ' , $this->_tableLevel , '<br />'; + if ($this->_tableLevel > 1) + --$row; + $this->_processDomElement($child,$sheet,$row,$column,$cellContent); +// echo 'END OF TABLE LEVEL ' , $this->_tableLevel , '<br />'; + $column = $this->_releaseTableStartColumn(); + if ($this->_tableLevel > 1) { + ++$column; + } else { + ++$row; + } + break; + case 'thead' : + case 'tbody' : + $this->_processDomElement($child,$sheet,$row,$column,$cellContent); + break; + case 'tr' : + ++$row; + $column = $this->_getTableStartColumn(); + $cellContent = ''; +// echo 'START OF TABLE ' , $this->_tableLevel , ' ROW<br />'; + $this->_processDomElement($child,$sheet,$row,$column,$cellContent); +// echo 'END OF TABLE ' , $this->_tableLevel , ' ROW<br />'; + break; + case 'th' : + case 'td' : +// echo 'START OF TABLE ' , $this->_tableLevel , ' CELL<br />'; + $this->_processDomElement($child,$sheet,$row,$column,$cellContent); +// echo 'END OF TABLE ' , $this->_tableLevel , ' CELL<br />'; + $this->_flushCell($sheet,$column,$row,$cellContent); + ++$column; + break; + case 'body' : + $row = 1; + $column = 'A'; + $content = ''; + $this->_tableLevel = 0; + $this->_processDomElement($child,$sheet,$row,$column,$cellContent); + break; + default: + $this->_processDomElement($child,$sheet,$row,$column,$cellContent); + } + } + } + } + + /** + * Loads PHPExcel from file into PHPExcel instance + * + * @param string $pFilename + * @param PHPExcel $objPHPExcel + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) + { + // Open file to validate + $this->_openFile($pFilename); + if (!$this->_isValidFormat()) { + fclose ($this->_fileHandle); + throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid HTML file."); + } + // Close after validating + fclose ($this->_fileHandle); + + // Create new PHPExcel + while ($objPHPExcel->getSheetCount() <= $this->_sheetIndex) { + $objPHPExcel->createSheet(); + } + $objPHPExcel->setActiveSheetIndex( $this->_sheetIndex ); + + // Create a new DOM object + $dom = new DOMDocument; + // Reload the HTML file into the DOM object + if ((version_compare(PHP_VERSION, '5.4.0') >= 0) && defined(LIBXML_DTDLOAD)) { + $loaded = $dom->loadHTMLFile($pFilename, PHPExcel_Settings::getLibXmlLoaderOptions()); + } else { + $loaded = $dom->loadHTMLFile($pFilename); + } + if ($loaded === FALSE) { + throw new PHPExcel_Reader_Exception('Failed to load '. $pFilename. ' as a DOM Document'); + } + + // Discard white space + $dom->preserveWhiteSpace = false; + + + $row = 0; + $column = 'A'; + $content = ''; + $this->_processDomElement($dom,$objPHPExcel->getActiveSheet(),$row,$column,$content); + + // Return + return $objPHPExcel; + } + + /** + * Get sheet index + * + * @return int + */ + public function getSheetIndex() { + return $this->_sheetIndex; + } + + /** + * Set sheet index + * + * @param int $pValue Sheet index + * @return PHPExcel_Reader_HTML + */ + public function setSheetIndex($pValue = 0) { + $this->_sheetIndex = $pValue; + return $this; + } + +} diff --git a/admin/helpers/PHPExcel/Reader/IReadFilter.php b/admin/helpers/PHPExcel/Reader/IReadFilter.php new file mode 100644 index 00000000..f27cff8b --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/IReadFilter.php @@ -0,0 +1,47 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Reader + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Reader_IReadFilter + * + * @category PHPExcel + * @package PHPExcel_Reader + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +interface PHPExcel_Reader_IReadFilter +{ + /** + * Should this cell be read? + * + * @param $column String column index + * @param $row Row index + * @param $worksheetName Optional worksheet name + * @return boolean + */ + public function readCell($column, $row, $worksheetName = ''); +} diff --git a/admin/helpers/PHPExcel/Reader/IReader.php b/admin/helpers/PHPExcel/Reader/IReader.php new file mode 100644 index 00000000..b543df4a --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/IReader.php @@ -0,0 +1,54 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Reader + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Reader_IReader + * + * @category PHPExcel + * @package PHPExcel_Reader + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +interface PHPExcel_Reader_IReader +{ + /** + * Can the current PHPExcel_Reader_IReader read the file? + * + * @param string $pFilename + * @return boolean + */ + public function canRead($pFilename); + + /** + * Loads PHPExcel from file + * + * @param string $pFilename + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public function load($pFilename); +} diff --git a/admin/helpers/PHPExcel/Reader/OOCalc.php b/admin/helpers/PHPExcel/Reader/OOCalc.php new file mode 100644 index 00000000..4ffed2b3 --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/OOCalc.php @@ -0,0 +1,711 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Reader + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** PHPExcel root directory */ +if (!defined('PHPEXCEL_ROOT')) { + /** + * @ignore + */ + define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); + require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); +} + +/** + * PHPExcel_Reader_OOCalc + * + * @category PHPExcel + * @package PHPExcel_Reader + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Reader_OOCalc extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader +{ + /** + * Formats + * + * @var array + */ + private $_styles = array(); + + + /** + * Create a new PHPExcel_Reader_OOCalc + */ + public function __construct() { + $this->_readFilter = new PHPExcel_Reader_DefaultReadFilter(); + } + + + /** + * Can the current PHPExcel_Reader_IReader read the file? + * + * @param string $pFilename + * @return boolean + * @throws PHPExcel_Reader_Exception + */ + public function canRead($pFilename) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + $zipClass = PHPExcel_Settings::getZipClass(); + + // Check if zip class exists +// if (!class_exists($zipClass, FALSE)) { +// throw new PHPExcel_Reader_Exception($zipClass . " library is not enabled"); +// } + + $mimeType = 'UNKNOWN'; + // Load file + $zip = new $zipClass; + if ($zip->open($pFilename) === true) { + // check if it is an OOXML archive + $stat = $zip->statName('mimetype'); + if ($stat && ($stat['size'] <= 255)) { + $mimeType = $zip->getFromName($stat['name']); + } elseif($stat = $zip->statName('META-INF/manifest.xml')) { + $xml = simplexml_load_string($zip->getFromName('META-INF/manifest.xml'), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + $namespacesContent = $xml->getNamespaces(true); + if (isset($namespacesContent['manifest'])) { + $manifest = $xml->children($namespacesContent['manifest']); + foreach($manifest as $manifestDataSet) { + $manifestAttributes = $manifestDataSet->attributes($namespacesContent['manifest']); + if ($manifestAttributes->{'full-path'} == '/') { + $mimeType = (string) $manifestAttributes->{'media-type'}; + break; + } + } + } + } + + $zip->close(); + + return ($mimeType === 'application/vnd.oasis.opendocument.spreadsheet'); + } + + return FALSE; + } + + + /** + * Reads names of the worksheets from a file, without parsing the whole file to a PHPExcel object + * + * @param string $pFilename + * @throws PHPExcel_Reader_Exception + */ + public function listWorksheetNames($pFilename) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + $zipClass = PHPExcel_Settings::getZipClass(); + + $zip = new $zipClass; + if (!$zip->open($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! Error opening file."); + } + + $worksheetNames = array(); + + $xml = new XMLReader(); + $res = $xml->open('zip://'.realpath($pFilename).'#content.xml', null, PHPExcel_Settings::getLibXmlLoaderOptions()); + $xml->setParserProperty(2,true); + + // Step into the first level of content of the XML + $xml->read(); + while ($xml->read()) { + // Quickly jump through to the office:body node + while ($xml->name !== 'office:body') { + if ($xml->isEmptyElement) + $xml->read(); + else + $xml->next(); + } + // Now read each node until we find our first table:table node + while ($xml->read()) { + if ($xml->name == 'table:table' && $xml->nodeType == XMLReader::ELEMENT) { + // Loop through each table:table node reading the table:name attribute for each worksheet name + do { + $worksheetNames[] = $xml->getAttribute('table:name'); + $xml->next(); + } while ($xml->name == 'table:table' && $xml->nodeType == XMLReader::ELEMENT); + } + } + } + + return $worksheetNames; + } + + + /** + * Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) + * + * @param string $pFilename + * @throws PHPExcel_Reader_Exception + */ + public function listWorksheetInfo($pFilename) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + $worksheetInfo = array(); + + $zipClass = PHPExcel_Settings::getZipClass(); + + $zip = new $zipClass; + if (!$zip->open($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! Error opening file."); + } + + $xml = new XMLReader(); + $res = $xml->open('zip://'.realpath($pFilename).'#content.xml', null, PHPExcel_Settings::getLibXmlLoaderOptions()); + $xml->setParserProperty(2,true); + + // Step into the first level of content of the XML + $xml->read(); + while ($xml->read()) { + // Quickly jump through to the office:body node + while ($xml->name !== 'office:body') { + if ($xml->isEmptyElement) + $xml->read(); + else + $xml->next(); + } + // Now read each node until we find our first table:table node + while ($xml->read()) { + if ($xml->name == 'table:table' && $xml->nodeType == XMLReader::ELEMENT) { + $worksheetNames[] = $xml->getAttribute('table:name'); + + $tmpInfo = array( + 'worksheetName' => $xml->getAttribute('table:name'), + 'lastColumnLetter' => 'A', + 'lastColumnIndex' => 0, + 'totalRows' => 0, + 'totalColumns' => 0, + ); + + // Loop through each child node of the table:table element reading + $currCells = 0; + do { + $xml->read(); + if ($xml->name == 'table:table-row' && $xml->nodeType == XMLReader::ELEMENT) { + $rowspan = $xml->getAttribute('table:number-rows-repeated'); + $rowspan = empty($rowspan) ? 1 : $rowspan; + $tmpInfo['totalRows'] += $rowspan; + $tmpInfo['totalColumns'] = max($tmpInfo['totalColumns'],$currCells); + $currCells = 0; + // Step into the row + $xml->read(); + do { + if ($xml->name == 'table:table-cell' && $xml->nodeType == XMLReader::ELEMENT) { + if (!$xml->isEmptyElement) { + $currCells++; + $xml->next(); + } else { + $xml->read(); + } + } elseif ($xml->name == 'table:covered-table-cell' && $xml->nodeType == XMLReader::ELEMENT) { + $mergeSize = $xml->getAttribute('table:number-columns-repeated'); + $currCells += $mergeSize; + $xml->read(); + } + } while ($xml->name != 'table:table-row'); + } + } while ($xml->name != 'table:table'); + + $tmpInfo['totalColumns'] = max($tmpInfo['totalColumns'],$currCells); + $tmpInfo['lastColumnIndex'] = $tmpInfo['totalColumns'] - 1; + $tmpInfo['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($tmpInfo['lastColumnIndex']); + $worksheetInfo[] = $tmpInfo; + } + } + +// foreach($workbookData->table as $worksheetDataSet) { +// $worksheetData = $worksheetDataSet->children($namespacesContent['table']); +// $worksheetDataAttributes = $worksheetDataSet->attributes($namespacesContent['table']); +// +// $rowIndex = 0; +// foreach ($worksheetData as $key => $rowData) { +// switch ($key) { +// case 'table-row' : +// $rowDataTableAttributes = $rowData->attributes($namespacesContent['table']); +// $rowRepeats = (isset($rowDataTableAttributes['number-rows-repeated'])) ? +// $rowDataTableAttributes['number-rows-repeated'] : 1; +// $columnIndex = 0; +// +// foreach ($rowData as $key => $cellData) { +// $cellDataTableAttributes = $cellData->attributes($namespacesContent['table']); +// $colRepeats = (isset($cellDataTableAttributes['number-columns-repeated'])) ? +// $cellDataTableAttributes['number-columns-repeated'] : 1; +// $cellDataOfficeAttributes = $cellData->attributes($namespacesContent['office']); +// if (isset($cellDataOfficeAttributes['value-type'])) { +// $tmpInfo['lastColumnIndex'] = max($tmpInfo['lastColumnIndex'], $columnIndex + $colRepeats - 1); +// $tmpInfo['totalRows'] = max($tmpInfo['totalRows'], $rowIndex + $rowRepeats); +// } +// $columnIndex += $colRepeats; +// } +// $rowIndex += $rowRepeats; +// break; +// } +// } +// +// $tmpInfo['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($tmpInfo['lastColumnIndex']); +// $tmpInfo['totalColumns'] = $tmpInfo['lastColumnIndex'] + 1; +// +// } +// } + } + + return $worksheetInfo; + } + + + /** + * Loads PHPExcel from file + * + * @param string $pFilename + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public function load($pFilename) + { + // Create new PHPExcel + $objPHPExcel = new PHPExcel(); + + // Load into this instance + return $this->loadIntoExisting($pFilename, $objPHPExcel); + } + + + private static function identifyFixedStyleValue($styleList,&$styleAttributeValue) { + $styleAttributeValue = strtolower($styleAttributeValue); + foreach($styleList as $style) { + if ($styleAttributeValue == strtolower($style)) { + $styleAttributeValue = $style; + return true; + } + } + return false; + } + + + /** + * Loads PHPExcel from file into PHPExcel instance + * + * @param string $pFilename + * @param PHPExcel $objPHPExcel + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) + { + // Check if file exists + if (!file_exists($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); + } + + $timezoneObj = new DateTimeZone('Europe/London'); + $GMT = new DateTimeZone('UTC'); + + $zipClass = PHPExcel_Settings::getZipClass(); + + $zip = new $zipClass; + if (!$zip->open($pFilename)) { + throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! Error opening file."); + } + +// echo '<h1>Meta Information</h1>'; + $xml = simplexml_load_string($zip->getFromName("meta.xml"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + $namespacesMeta = $xml->getNamespaces(true); +// echo '<pre>'; +// print_r($namespacesMeta); +// echo '</pre><hr />'; + + $docProps = $objPHPExcel->getProperties(); + $officeProperty = $xml->children($namespacesMeta['office']); + foreach($officeProperty as $officePropertyData) { + $officePropertyDC = array(); + if (isset($namespacesMeta['dc'])) { + $officePropertyDC = $officePropertyData->children($namespacesMeta['dc']); + } + foreach($officePropertyDC as $propertyName => $propertyValue) { + $propertyValue = (string) $propertyValue; + switch ($propertyName) { + case 'title' : + $docProps->setTitle($propertyValue); + break; + case 'subject' : + $docProps->setSubject($propertyValue); + break; + case 'creator' : + $docProps->setCreator($propertyValue); + $docProps->setLastModifiedBy($propertyValue); + break; + case 'date' : + $creationDate = strtotime($propertyValue); + $docProps->setCreated($creationDate); + $docProps->setModified($creationDate); + break; + case 'description' : + $docProps->setDescription($propertyValue); + break; + } + } + $officePropertyMeta = array(); + if (isset($namespacesMeta['dc'])) { + $officePropertyMeta = $officePropertyData->children($namespacesMeta['meta']); + } + foreach($officePropertyMeta as $propertyName => $propertyValue) { + $propertyValueAttributes = $propertyValue->attributes($namespacesMeta['meta']); + $propertyValue = (string) $propertyValue; + switch ($propertyName) { + case 'initial-creator' : + $docProps->setCreator($propertyValue); + break; + case 'keyword' : + $docProps->setKeywords($propertyValue); + break; + case 'creation-date' : + $creationDate = strtotime($propertyValue); + $docProps->setCreated($creationDate); + break; + case 'user-defined' : + $propertyValueType = PHPExcel_DocumentProperties::PROPERTY_TYPE_STRING; + foreach ($propertyValueAttributes as $key => $value) { + if ($key == 'name') { + $propertyValueName = (string) $value; + } elseif($key == 'value-type') { + switch ($value) { + case 'date' : + $propertyValue = PHPExcel_DocumentProperties::convertProperty($propertyValue,'date'); + $propertyValueType = PHPExcel_DocumentProperties::PROPERTY_TYPE_DATE; + break; + case 'boolean' : + $propertyValue = PHPExcel_DocumentProperties::convertProperty($propertyValue,'bool'); + $propertyValueType = PHPExcel_DocumentProperties::PROPERTY_TYPE_BOOLEAN; + break; + case 'float' : + $propertyValue = PHPExcel_DocumentProperties::convertProperty($propertyValue,'r4'); + $propertyValueType = PHPExcel_DocumentProperties::PROPERTY_TYPE_FLOAT; + break; + default : + $propertyValueType = PHPExcel_DocumentProperties::PROPERTY_TYPE_STRING; + } + } + } + $docProps->setCustomProperty($propertyValueName,$propertyValue,$propertyValueType); + break; + } + } + } + + +// echo '<h1>Workbook Content</h1>'; + $xml = simplexml_load_string($zip->getFromName("content.xml"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); + $namespacesContent = $xml->getNamespaces(true); +// echo '<pre>'; +// print_r($namespacesContent); +// echo '</pre><hr />'; + + $workbook = $xml->children($namespacesContent['office']); + foreach($workbook->body->spreadsheet as $workbookData) { + $workbookData = $workbookData->children($namespacesContent['table']); + $worksheetID = 0; + foreach($workbookData->table as $worksheetDataSet) { + $worksheetData = $worksheetDataSet->children($namespacesContent['table']); +// print_r($worksheetData); +// echo '<br />'; + $worksheetDataAttributes = $worksheetDataSet->attributes($namespacesContent['table']); +// print_r($worksheetDataAttributes); +// echo '<br />'; + if ((isset($this->_loadSheetsOnly)) && (isset($worksheetDataAttributes['name'])) && + (!in_array($worksheetDataAttributes['name'], $this->_loadSheetsOnly))) { + continue; + } + +// echo '<h2>Worksheet '.$worksheetDataAttributes['name'].'</h2>'; + // Create new Worksheet + $objPHPExcel->createSheet(); + $objPHPExcel->setActiveSheetIndex($worksheetID); + if (isset($worksheetDataAttributes['name'])) { + $worksheetName = (string) $worksheetDataAttributes['name']; + // Use false for $updateFormulaCellReferences to prevent adjustment of worksheet references in + // formula cells... during the load, all formulae should be correct, and we're simply + // bringing the worksheet name in line with the formula, not the reverse + $objPHPExcel->getActiveSheet()->setTitle($worksheetName,false); + } + + $rowID = 1; + foreach($worksheetData as $key => $rowData) { +// echo '<b>'.$key.'</b><br />'; + switch ($key) { + case 'table-header-rows': + foreach ($rowData as $key=>$cellData) { + $rowData = $cellData; + break; + } + case 'table-row' : + $rowDataTableAttributes = $rowData->attributes($namespacesContent['table']); + $rowRepeats = (isset($rowDataTableAttributes['number-rows-repeated'])) ? + $rowDataTableAttributes['number-rows-repeated'] : 1; + $columnID = 'A'; + foreach($rowData as $key => $cellData) { + if ($this->getReadFilter() !== NULL) { + if (!$this->getReadFilter()->readCell($columnID, $rowID, $worksheetName)) { + continue; + } + } + +// echo '<b>'.$columnID.$rowID.'</b><br />'; + $cellDataText = (isset($namespacesContent['text'])) ? + $cellData->children($namespacesContent['text']) : + ''; + $cellDataOffice = $cellData->children($namespacesContent['office']); + $cellDataOfficeAttributes = $cellData->attributes($namespacesContent['office']); + $cellDataTableAttributes = $cellData->attributes($namespacesContent['table']); + +// echo 'Office Attributes: '; +// print_r($cellDataOfficeAttributes); +// echo '<br />Table Attributes: '; +// print_r($cellDataTableAttributes); +// echo '<br />Cell Data Text'; +// print_r($cellDataText); +// echo '<br />'; +// + $type = $formatting = $hyperlink = null; + $hasCalculatedValue = false; + $cellDataFormula = ''; + if (isset($cellDataTableAttributes['formula'])) { + $cellDataFormula = $cellDataTableAttributes['formula']; + $hasCalculatedValue = true; + } + + if (isset($cellDataOffice->annotation)) { +// echo 'Cell has comment<br />'; + $annotationText = $cellDataOffice->annotation->children($namespacesContent['text']); + $textArray = array(); + foreach($annotationText as $t) { + if (isset($t->span)) { + foreach($t->span as $text) { + $textArray[] = (string)$text; + } + } else { + $textArray[] = (string) $t; + } + } + $text = implode("\n",$textArray); +// echo $text,'<br />'; + $objPHPExcel->getActiveSheet()->getComment( $columnID.$rowID ) +// ->setAuthor( $author ) + ->setText($this->_parseRichText($text) ); + } + + if (isset($cellDataText->p)) { + // Consolidate if there are multiple p records (maybe with spans as well) + $dataArray = array(); + // Text can have multiple text:p and within those, multiple text:span. + // text:p newlines, but text:span does not. + // Also, here we assume there is no text data is span fields are specified, since + // we have no way of knowing proper positioning anyway. + foreach ($cellDataText->p as $pData) { + if (isset($pData->span)) { + // span sections do not newline, so we just create one large string here + $spanSection = ""; + foreach ($pData->span as $spanData) { + $spanSection .= $spanData; + } + array_push($dataArray, $spanSection); + } else { + array_push($dataArray, $pData); + } + } + $allCellDataText = implode($dataArray, "\n"); + +// echo 'Value Type is '.$cellDataOfficeAttributes['value-type'].'<br />'; + switch ($cellDataOfficeAttributes['value-type']) { + case 'string' : + $type = PHPExcel_Cell_DataType::TYPE_STRING; + $dataValue = $allCellDataText; + if (isset($dataValue->a)) { + $dataValue = $dataValue->a; + $cellXLinkAttributes = $dataValue->attributes($namespacesContent['xlink']); + $hyperlink = $cellXLinkAttributes['href']; + } + break; + case 'boolean' : + $type = PHPExcel_Cell_DataType::TYPE_BOOL; + $dataValue = ($allCellDataText == 'TRUE') ? True : False; + break; + case 'percentage' : + $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; + $dataValue = (float) $cellDataOfficeAttributes['value']; + if (floor($dataValue) == $dataValue) { + $dataValue = (integer) $dataValue; + } + $formatting = PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_00; + break; + case 'currency' : + $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; + $dataValue = (float) $cellDataOfficeAttributes['value']; + if (floor($dataValue) == $dataValue) { + $dataValue = (integer) $dataValue; + } + $formatting = PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_USD_SIMPLE; + break; + case 'float' : + $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; + $dataValue = (float) $cellDataOfficeAttributes['value']; + if (floor($dataValue) == $dataValue) { + if ($dataValue == (integer) $dataValue) + $dataValue = (integer) $dataValue; + else + $dataValue = (float) $dataValue; + } + break; + case 'date' : + $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; + $dateObj = new DateTime($cellDataOfficeAttributes['date-value'], $GMT); + $dateObj->setTimeZone($timezoneObj); + list($year,$month,$day,$hour,$minute,$second) = explode(' ',$dateObj->format('Y m d H i s')); + $dataValue = PHPExcel_Shared_Date::FormattedPHPToExcel($year,$month,$day,$hour,$minute,$second); + if ($dataValue != floor($dataValue)) { + $formatting = PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX15.' '.PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME4; + } else { + $formatting = PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX15; + } + break; + case 'time' : + $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; + $dataValue = PHPExcel_Shared_Date::PHPToExcel(strtotime('01-01-1970 '.implode(':',sscanf($cellDataOfficeAttributes['time-value'],'PT%dH%dM%dS')))); + $formatting = PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME4; + break; + } +// echo 'Data value is '.$dataValue.'<br />'; +// if ($hyperlink !== NULL) { +// echo 'Hyperlink is '.$hyperlink.'<br />'; +// } + } else { + $type = PHPExcel_Cell_DataType::TYPE_NULL; + $dataValue = NULL; + } + + if ($hasCalculatedValue) { + $type = PHPExcel_Cell_DataType::TYPE_FORMULA; +// echo 'Formula: ', $cellDataFormula, PHP_EOL; + $cellDataFormula = substr($cellDataFormula,strpos($cellDataFormula,':=')+1); + $temp = explode('"',$cellDataFormula); + $tKey = false; + foreach($temp as &$value) { + // Only replace in alternate array entries (i.e. non-quoted blocks) + if ($tKey = !$tKey) { + $value = preg_replace('/\[([^\.]+)\.([^\.]+):\.([^\.]+)\]/Ui','$1!$2:$3',$value); // Cell range reference in another sheet + $value = preg_replace('/\[([^\.]+)\.([^\.]+)\]/Ui','$1!$2',$value); // Cell reference in another sheet + $value = preg_replace('/\[\.([^\.]+):\.([^\.]+)\]/Ui','$1:$2',$value); // Cell range reference + $value = preg_replace('/\[\.([^\.]+)\]/Ui','$1',$value); // Simple cell reference + $value = PHPExcel_Calculation::_translateSeparator(';',',',$value,$inBraces); + } + } + unset($value); + // Then rebuild the formula string + $cellDataFormula = implode('"',$temp); +// echo 'Adjusted Formula: ', $cellDataFormula, PHP_EOL; + } + + $colRepeats = (isset($cellDataTableAttributes['number-columns-repeated'])) ? + $cellDataTableAttributes['number-columns-repeated'] : 1; + if ($type !== NULL) { + for ($i = 0; $i < $colRepeats; ++$i) { + if ($i > 0) { + ++$columnID; + } + if ($type !== PHPExcel_Cell_DataType::TYPE_NULL) { + for ($rowAdjust = 0; $rowAdjust < $rowRepeats; ++$rowAdjust) { + $rID = $rowID + $rowAdjust; + $objPHPExcel->getActiveSheet()->getCell($columnID.$rID)->setValueExplicit((($hasCalculatedValue) ? $cellDataFormula : $dataValue),$type); + if ($hasCalculatedValue) { +// echo 'Forumla result is '.$dataValue.'<br />'; + $objPHPExcel->getActiveSheet()->getCell($columnID.$rID)->setCalculatedValue($dataValue); + } + if ($formatting !== NULL) { + $objPHPExcel->getActiveSheet()->getStyle($columnID.$rID)->getNumberFormat()->setFormatCode($formatting); + } else { + $objPHPExcel->getActiveSheet()->getStyle($columnID.$rID)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_GENERAL); + } + if ($hyperlink !== NULL) { + $objPHPExcel->getActiveSheet()->getCell($columnID.$rID)->getHyperlink()->setUrl($hyperlink); + } + } + } + } + } + + // Merged cells + if ((isset($cellDataTableAttributes['number-columns-spanned'])) || (isset($cellDataTableAttributes['number-rows-spanned']))) { + if (($type !== PHPExcel_Cell_DataType::TYPE_NULL) || (!$this->_readDataOnly)) { + $columnTo = $columnID; + if (isset($cellDataTableAttributes['number-columns-spanned'])) { + $columnTo = PHPExcel_Cell::stringFromColumnIndex(PHPExcel_Cell::columnIndexFromString($columnID) + $cellDataTableAttributes['number-columns-spanned'] -2); + } + $rowTo = $rowID; + if (isset($cellDataTableAttributes['number-rows-spanned'])) { + $rowTo = $rowTo + $cellDataTableAttributes['number-rows-spanned'] - 1; + } + $cellRange = $columnID.$rowID.':'.$columnTo.$rowTo; + $objPHPExcel->getActiveSheet()->mergeCells($cellRange); + } + } + + ++$columnID; + } + $rowID += $rowRepeats; + break; + } + } + ++$worksheetID; + } + } + + // Return + return $objPHPExcel; + } + + + private function _parseRichText($is = '') { + $value = new PHPExcel_RichText(); + + $value->createText($is); + + return $value; + } + +} diff --git a/admin/helpers/PHPExcel/Reader/SYLK.php b/admin/helpers/PHPExcel/Reader/SYLK.php new file mode 100644 index 00000000..b61118a3 --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/SYLK.php @@ -0,0 +1,450 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Reader + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** PHPExcel root directory */ +if (!defined('PHPEXCEL_ROOT')) { + /** + * @ignore + */ + define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); + require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); +} + +/** + * PHPExcel_Reader_SYLK + * + * @category PHPExcel + * @package PHPExcel_Reader + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader +{ + /** + * Input encoding + * + * @var string + */ + private $_inputEncoding = 'ANSI'; + + /** + * Sheet index to read + * + * @var int + */ + private $_sheetIndex = 0; + + /** + * Formats + * + * @var array + */ + private $_formats = array(); + + /** + * Format Count + * + * @var int + */ + private $_format = 0; + + /** + * Create a new PHPExcel_Reader_SYLK + */ + public function __construct() { + $this->_readFilter = new PHPExcel_Reader_DefaultReadFilter(); + } + + /** + * Validate that the current file is a SYLK file + * + * @return boolean + */ + protected function _isValidFormat() + { + // Read sample data (first 2 KB will do) + $data = fread($this->_fileHandle, 2048); + + // Count delimiters in file + $delimiterCount = substr_count($data, ';'); + if ($delimiterCount < 1) { + return FALSE; + } + + // Analyze first line looking for ID; signature + $lines = explode("\n", $data); + if (substr($lines[0],0,4) != 'ID;P') { + return FALSE; + } + + return TRUE; + } + + /** + * Set input encoding + * + * @param string $pValue Input encoding + */ + public function setInputEncoding($pValue = 'ANSI') + { + $this->_inputEncoding = $pValue; + return $this; + } + + /** + * Get input encoding + * + * @return string + */ + public function getInputEncoding() + { + return $this->_inputEncoding; + } + + /** + * Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) + * + * @param string $pFilename + * @throws PHPExcel_Reader_Exception + */ + public function listWorksheetInfo($pFilename) + { + // Open file + $this->_openFile($pFilename); + if (!$this->_isValidFormat()) { + fclose ($this->_fileHandle); + throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid Spreadsheet file."); + } + $fileHandle = $this->_fileHandle; + rewind($fileHandle); + + $worksheetInfo = array(); + $worksheetInfo[0]['worksheetName'] = 'Worksheet'; + $worksheetInfo[0]['lastColumnLetter'] = 'A'; + $worksheetInfo[0]['lastColumnIndex'] = 0; + $worksheetInfo[0]['totalRows'] = 0; + $worksheetInfo[0]['totalColumns'] = 0; + + // Loop through file + $rowData = array(); + + // loop through one row (line) at a time in the file + $rowIndex = 0; + while (($rowData = fgets($fileHandle)) !== FALSE) { + $columnIndex = 0; + + // convert SYLK encoded $rowData to UTF-8 + $rowData = PHPExcel_Shared_String::SYLKtoUTF8($rowData); + + // explode each row at semicolons while taking into account that literal semicolon (;) + // is escaped like this (;;) + $rowData = explode("\t",str_replace('¤',';',str_replace(';',"\t",str_replace(';;','¤',rtrim($rowData))))); + + $dataType = array_shift($rowData); + if ($dataType == 'C') { + // Read cell value data + foreach($rowData as $rowDatum) { + switch($rowDatum{0}) { + case 'C' : + case 'X' : + $columnIndex = substr($rowDatum,1) - 1; + break; + case 'R' : + case 'Y' : + $rowIndex = substr($rowDatum,1); + break; + } + + $worksheetInfo[0]['totalRows'] = max($worksheetInfo[0]['totalRows'], $rowIndex); + $worksheetInfo[0]['lastColumnIndex'] = max($worksheetInfo[0]['lastColumnIndex'], $columnIndex); + } + } + } + + $worksheetInfo[0]['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($worksheetInfo[0]['lastColumnIndex']); + $worksheetInfo[0]['totalColumns'] = $worksheetInfo[0]['lastColumnIndex'] + 1; + + // Close file + fclose($fileHandle); + + return $worksheetInfo; + } + + /** + * Loads PHPExcel from file + * + * @param string $pFilename + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public function load($pFilename) + { + // Create new PHPExcel + $objPHPExcel = new PHPExcel(); + + // Load into this instance + return $this->loadIntoExisting($pFilename, $objPHPExcel); + } + + /** + * Loads PHPExcel from file into PHPExcel instance + * + * @param string $pFilename + * @param PHPExcel $objPHPExcel + * @return PHPExcel + * @throws PHPExcel_Reader_Exception + */ + public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) + { + // Open file + $this->_openFile($pFilename); + if (!$this->_isValidFormat()) { + fclose ($this->_fileHandle); + throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid Spreadsheet file."); + } + $fileHandle = $this->_fileHandle; + rewind($fileHandle); + + // Create new PHPExcel + while ($objPHPExcel->getSheetCount() <= $this->_sheetIndex) { + $objPHPExcel->createSheet(); + } + $objPHPExcel->setActiveSheetIndex( $this->_sheetIndex ); + + $fromFormats = array('\-', '\ '); + $toFormats = array('-', ' '); + + // Loop through file + $rowData = array(); + $column = $row = ''; + + // loop through one row (line) at a time in the file + while (($rowData = fgets($fileHandle)) !== FALSE) { + + // convert SYLK encoded $rowData to UTF-8 + $rowData = PHPExcel_Shared_String::SYLKtoUTF8($rowData); + + // explode each row at semicolons while taking into account that literal semicolon (;) + // is escaped like this (;;) + $rowData = explode("\t",str_replace('¤',';',str_replace(';',"\t",str_replace(';;','¤',rtrim($rowData))))); + + $dataType = array_shift($rowData); + // Read shared styles + if ($dataType == 'P') { + $formatArray = array(); + foreach($rowData as $rowDatum) { + switch($rowDatum{0}) { + case 'P' : $formatArray['numberformat']['code'] = str_replace($fromFormats,$toFormats,substr($rowDatum,1)); + break; + case 'E' : + case 'F' : $formatArray['font']['name'] = substr($rowDatum,1); + break; + case 'L' : $formatArray['font']['size'] = substr($rowDatum,1); + break; + case 'S' : $styleSettings = substr($rowDatum,1); + for ($i=0;$i<strlen($styleSettings);++$i) { + switch ($styleSettings{$i}) { + case 'I' : $formatArray['font']['italic'] = true; + break; + case 'D' : $formatArray['font']['bold'] = true; + break; + case 'T' : $formatArray['borders']['top']['style'] = PHPExcel_Style_Border::BORDER_THIN; + break; + case 'B' : $formatArray['borders']['bottom']['style'] = PHPExcel_Style_Border::BORDER_THIN; + break; + case 'L' : $formatArray['borders']['left']['style'] = PHPExcel_Style_Border::BORDER_THIN; + break; + case 'R' : $formatArray['borders']['right']['style'] = PHPExcel_Style_Border::BORDER_THIN; + break; + } + } + break; + } + } + $this->_formats['P'.$this->_format++] = $formatArray; + // Read cell value data + } elseif ($dataType == 'C') { + $hasCalculatedValue = false; + $cellData = $cellDataFormula = ''; + foreach($rowData as $rowDatum) { + switch($rowDatum{0}) { + case 'C' : + case 'X' : $column = substr($rowDatum,1); + break; + case 'R' : + case 'Y' : $row = substr($rowDatum,1); + break; + case 'K' : $cellData = substr($rowDatum,1); + break; + case 'E' : $cellDataFormula = '='.substr($rowDatum,1); + // Convert R1C1 style references to A1 style references (but only when not quoted) + $temp = explode('"',$cellDataFormula); + $key = false; + foreach($temp as &$value) { + // Only count/replace in alternate array entries + if ($key = !$key) { + preg_match_all('/(R(\[?-?\d*\]?))(C(\[?-?\d*\]?))/',$value, $cellReferences,PREG_SET_ORDER+PREG_OFFSET_CAPTURE); + // Reverse the matches array, otherwise all our offsets will become incorrect if we modify our way + // through the formula from left to right. Reversing means that we work right to left.through + // the formula + $cellReferences = array_reverse($cellReferences); + // Loop through each R1C1 style reference in turn, converting it to its A1 style equivalent, + // then modify the formula to use that new reference + foreach($cellReferences as $cellReference) { + $rowReference = $cellReference[2][0]; + // Empty R reference is the current row + if ($rowReference == '') $rowReference = $row; + // Bracketed R references are relative to the current row + if ($rowReference{0} == '[') $rowReference = $row + trim($rowReference,'[]'); + $columnReference = $cellReference[4][0]; + // Empty C reference is the current column + if ($columnReference == '') $columnReference = $column; + // Bracketed C references are relative to the current column + if ($columnReference{0} == '[') $columnReference = $column + trim($columnReference,'[]'); + $A1CellReference = PHPExcel_Cell::stringFromColumnIndex($columnReference-1).$rowReference; + + $value = substr_replace($value,$A1CellReference,$cellReference[0][1],strlen($cellReference[0][0])); + } + } + } + unset($value); + // Then rebuild the formula string + $cellDataFormula = implode('"',$temp); + $hasCalculatedValue = true; + break; + } + } + $columnLetter = PHPExcel_Cell::stringFromColumnIndex($column-1); + $cellData = PHPExcel_Calculation::_unwrapResult($cellData); + + // Set cell value + $objPHPExcel->getActiveSheet()->getCell($columnLetter.$row)->setValue(($hasCalculatedValue) ? $cellDataFormula : $cellData); + if ($hasCalculatedValue) { + $cellData = PHPExcel_Calculation::_unwrapResult($cellData); + $objPHPExcel->getActiveSheet()->getCell($columnLetter.$row)->setCalculatedValue($cellData); + } + // Read cell formatting + } elseif ($dataType == 'F') { + $formatStyle = $columnWidth = $styleSettings = ''; + $styleData = array(); + foreach($rowData as $rowDatum) { + switch($rowDatum{0}) { + case 'C' : + case 'X' : $column = substr($rowDatum,1); + break; + case 'R' : + case 'Y' : $row = substr($rowDatum,1); + break; + case 'P' : $formatStyle = $rowDatum; + break; + case 'W' : list($startCol,$endCol,$columnWidth) = explode(' ',substr($rowDatum,1)); + break; + case 'S' : $styleSettings = substr($rowDatum,1); + for ($i=0;$i<strlen($styleSettings);++$i) { + switch ($styleSettings{$i}) { + case 'I' : $styleData['font']['italic'] = true; + break; + case 'D' : $styleData['font']['bold'] = true; + break; + case 'T' : $styleData['borders']['top']['style'] = PHPExcel_Style_Border::BORDER_THIN; + break; + case 'B' : $styleData['borders']['bottom']['style'] = PHPExcel_Style_Border::BORDER_THIN; + break; + case 'L' : $styleData['borders']['left']['style'] = PHPExcel_Style_Border::BORDER_THIN; + break; + case 'R' : $styleData['borders']['right']['style'] = PHPExcel_Style_Border::BORDER_THIN; + break; + } + } + break; + } + } + if (($formatStyle > '') && ($column > '') && ($row > '')) { + $columnLetter = PHPExcel_Cell::stringFromColumnIndex($column-1); + if (isset($this->_formats[$formatStyle])) { + $objPHPExcel->getActiveSheet()->getStyle($columnLetter.$row)->applyFromArray($this->_formats[$formatStyle]); + } + } + if ((!empty($styleData)) && ($column > '') && ($row > '')) { + $columnLetter = PHPExcel_Cell::stringFromColumnIndex($column-1); + $objPHPExcel->getActiveSheet()->getStyle($columnLetter.$row)->applyFromArray($styleData); + } + if ($columnWidth > '') { + if ($startCol == $endCol) { + $startCol = PHPExcel_Cell::stringFromColumnIndex($startCol-1); + $objPHPExcel->getActiveSheet()->getColumnDimension($startCol)->setWidth($columnWidth); + } else { + $startCol = PHPExcel_Cell::stringFromColumnIndex($startCol-1); + $endCol = PHPExcel_Cell::stringFromColumnIndex($endCol-1); + $objPHPExcel->getActiveSheet()->getColumnDimension($startCol)->setWidth($columnWidth); + do { + $objPHPExcel->getActiveSheet()->getColumnDimension(++$startCol)->setWidth($columnWidth); + } while ($startCol != $endCol); + } + } + } else { + foreach($rowData as $rowDatum) { + switch($rowDatum{0}) { + case 'C' : + case 'X' : $column = substr($rowDatum,1); + break; + case 'R' : + case 'Y' : $row = substr($rowDatum,1); + break; + } + } + } + } + + // Close file + fclose($fileHandle); + + // Return + return $objPHPExcel; + } + + /** + * Get sheet index + * + * @return int + */ + public function getSheetIndex() { + return $this->_sheetIndex; + } + + /** + * Set sheet index + * + * @param int $pValue Sheet index + * @return PHPExcel_Reader_SYLK + */ + public function setSheetIndex($pValue = 0) { + $this->_sheetIndex = $pValue; + return $this; + } + +} diff --git a/admin/helpers/PHPExcel/Reader/index.html b/admin/helpers/PHPExcel/Reader/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Reader/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/ReferenceHelper.php b/admin/helpers/PHPExcel/ReferenceHelper.php new file mode 100644 index 00000000..9eadab4d --- /dev/null +++ b/admin/helpers/PHPExcel/ReferenceHelper.php @@ -0,0 +1,922 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_ReferenceHelper (Singleton) + * + * @category PHPExcel + * @package PHPExcel + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_ReferenceHelper +{ + /** Constants */ + /** Regular Expressions */ + const REFHELPER_REGEXP_CELLREF = '((\w*|\'[^!]*\')!)?(?<![:a-z\$])(\$?[a-z]{1,3}\$?\d+)(?=[^:!\d\'])'; + const REFHELPER_REGEXP_CELLRANGE = '((\w*|\'[^!]*\')!)?(\$?[a-z]{1,3}\$?\d+):(\$?[a-z]{1,3}\$?\d+)'; + const REFHELPER_REGEXP_ROWRANGE = '((\w*|\'[^!]*\')!)?(\$?\d+):(\$?\d+)'; + const REFHELPER_REGEXP_COLRANGE = '((\w*|\'[^!]*\')!)?(\$?[a-z]{1,3}):(\$?[a-z]{1,3})'; + + /** + * Instance of this class + * + * @var PHPExcel_ReferenceHelper + */ + private static $_instance; + + /** + * Get an instance of this class + * + * @return PHPExcel_ReferenceHelper + */ + public static function getInstance() { + if (!isset(self::$_instance) || (self::$_instance === NULL)) { + self::$_instance = new PHPExcel_ReferenceHelper(); + } + + return self::$_instance; + } + + /** + * Create a new PHPExcel_ReferenceHelper + */ + protected function __construct() { + } + + /** + * Compare two column addresses + * Intended for use as a Callback function for sorting column addresses by column + * + * @param string $a First column to test (e.g. 'AA') + * @param string $b Second column to test (e.g. 'Z') + * @return integer + */ + public static function columnSort($a, $b) { + return strcasecmp(strlen($a) . $a, strlen($b) . $b); + } + + /** + * Compare two column addresses + * Intended for use as a Callback function for reverse sorting column addresses by column + * + * @param string $a First column to test (e.g. 'AA') + * @param string $b Second column to test (e.g. 'Z') + * @return integer + */ + public static function columnReverseSort($a, $b) { + return 1 - strcasecmp(strlen($a) . $a, strlen($b) . $b); + } + + /** + * Compare two cell addresses + * Intended for use as a Callback function for sorting cell addresses by column and row + * + * @param string $a First cell to test (e.g. 'AA1') + * @param string $b Second cell to test (e.g. 'Z1') + * @return integer + */ + public static function cellSort($a, $b) { + sscanf($a,'%[A-Z]%d', $ac, $ar); + sscanf($b,'%[A-Z]%d', $bc, $br); + + if ($ar == $br) { + return strcasecmp(strlen($ac) . $ac, strlen($bc) . $bc); + } + return ($ar < $br) ? -1 : 1; + } + + /** + * Compare two cell addresses + * Intended for use as a Callback function for sorting cell addresses by column and row + * + * @param string $a First cell to test (e.g. 'AA1') + * @param string $b Second cell to test (e.g. 'Z1') + * @return integer + */ + public static function cellReverseSort($a, $b) { + sscanf($a,'%[A-Z]%d', $ac, $ar); + sscanf($b,'%[A-Z]%d', $bc, $br); + + if ($ar == $br) { + return 1 - strcasecmp(strlen($ac) . $ac, strlen($bc) . $bc); + } + return ($ar < $br) ? 1 : -1; + } + + /** + * Test whether a cell address falls within a defined range of cells + * + * @param string $cellAddress Address of the cell we're testing + * @param integer $beforeRow Number of the row we're inserting/deleting before + * @param integer $pNumRows Number of rows to insert/delete (negative values indicate deletion) + * @param integer $beforeColumnIndex Index number of the column we're inserting/deleting before + * @param integer $pNumCols Number of columns to insert/delete (negative values indicate deletion) + * @return boolean + */ + private static function cellAddressInDeleteRange($cellAddress, $beforeRow, $pNumRows, $beforeColumnIndex, $pNumCols) { + list($cellColumn, $cellRow) = PHPExcel_Cell::coordinateFromString($cellAddress); + $cellColumnIndex = PHPExcel_Cell::columnIndexFromString($cellColumn); + // Is cell within the range of rows/columns if we're deleting + if ($pNumRows < 0 && + ($cellRow >= ($beforeRow + $pNumRows)) && + ($cellRow < $beforeRow)) { + return TRUE; + } elseif ($pNumCols < 0 && + ($cellColumnIndex >= ($beforeColumnIndex + $pNumCols)) && + ($cellColumnIndex < $beforeColumnIndex)) { + return TRUE; + } + return FALSE; + } + + /** + * Update page breaks when inserting/deleting rows/columns + * + * @param PHPExcel_Worksheet $pSheet The worksheet that we're editing + * @param string $pBefore Insert/Delete before this cell address (e.g. 'A1') + * @param integer $beforeColumnIndex Index number of the column we're inserting/deleting before + * @param integer $pNumCols Number of columns to insert/delete (negative values indicate deletion) + * @param integer $beforeRow Number of the row we're inserting/deleting before + * @param integer $pNumRows Number of rows to insert/delete (negative values indicate deletion) + */ + protected function _adjustPageBreaks(PHPExcel_Worksheet $pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) + { + $aBreaks = $pSheet->getBreaks(); + ($pNumCols > 0 || $pNumRows > 0) ? + uksort($aBreaks, array('PHPExcel_ReferenceHelper','cellReverseSort')) : + uksort($aBreaks, array('PHPExcel_ReferenceHelper','cellSort')); + + foreach ($aBreaks as $key => $value) { + if (self::cellAddressInDeleteRange($key, $beforeRow, $pNumRows, $beforeColumnIndex, $pNumCols)) { + // If we're deleting, then clear any defined breaks that are within the range + // of rows/columns that we're deleting + $pSheet->setBreak($key, PHPExcel_Worksheet::BREAK_NONE); + } else { + // Otherwise update any affected breaks by inserting a new break at the appropriate point + // and removing the old affected break + $newReference = $this->updateCellReference($key, $pBefore, $pNumCols, $pNumRows); + if ($key != $newReference) { + $pSheet->setBreak($newReference, $value) + ->setBreak($key, PHPExcel_Worksheet::BREAK_NONE); + } + } + } + } + + /** + * Update cell comments when inserting/deleting rows/columns + * + * @param PHPExcel_Worksheet $pSheet The worksheet that we're editing + * @param string $pBefore Insert/Delete before this cell address (e.g. 'A1') + * @param integer $beforeColumnIndex Index number of the column we're inserting/deleting before + * @param integer $pNumCols Number of columns to insert/delete (negative values indicate deletion) + * @param integer $beforeRow Number of the row we're inserting/deleting before + * @param integer $pNumRows Number of rows to insert/delete (negative values indicate deletion) + */ + protected function _adjustComments($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) + { + $aComments = $pSheet->getComments(); + $aNewComments = array(); // the new array of all comments + + foreach ($aComments as $key => &$value) { + // Any comments inside a deleted range will be ignored + if (!self::cellAddressInDeleteRange($key, $beforeRow, $pNumRows, $beforeColumnIndex, $pNumCols)) { + // Otherwise build a new array of comments indexed by the adjusted cell reference + $newReference = $this->updateCellReference($key, $pBefore, $pNumCols, $pNumRows); + $aNewComments[$newReference] = $value; + } + } + // Replace the comments array with the new set of comments + $pSheet->setComments($aNewComments); + } + + /** + * Update hyperlinks when inserting/deleting rows/columns + * + * @param PHPExcel_Worksheet $pSheet The worksheet that we're editing + * @param string $pBefore Insert/Delete before this cell address (e.g. 'A1') + * @param integer $beforeColumnIndex Index number of the column we're inserting/deleting before + * @param integer $pNumCols Number of columns to insert/delete (negative values indicate deletion) + * @param integer $beforeRow Number of the row we're inserting/deleting before + * @param integer $pNumRows Number of rows to insert/delete (negative values indicate deletion) + */ + protected function _adjustHyperlinks($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) + { + $aHyperlinkCollection = $pSheet->getHyperlinkCollection(); + ($pNumCols > 0 || $pNumRows > 0) ? + uksort($aHyperlinkCollection, array('PHPExcel_ReferenceHelper','cellReverseSort')) : + uksort($aHyperlinkCollection, array('PHPExcel_ReferenceHelper','cellSort')); + + foreach ($aHyperlinkCollection as $key => $value) { + $newReference = $this->updateCellReference($key, $pBefore, $pNumCols, $pNumRows); + if ($key != $newReference) { + $pSheet->setHyperlink( $newReference, $value ); + $pSheet->setHyperlink( $key, null ); + } + } + } + + /** + * Update data validations when inserting/deleting rows/columns + * + * @param PHPExcel_Worksheet $pSheet The worksheet that we're editing + * @param string $pBefore Insert/Delete before this cell address (e.g. 'A1') + * @param integer $beforeColumnIndex Index number of the column we're inserting/deleting before + * @param integer $pNumCols Number of columns to insert/delete (negative values indicate deletion) + * @param integer $beforeRow Number of the row we're inserting/deleting before + * @param integer $pNumRows Number of rows to insert/delete (negative values indicate deletion) + */ + protected function _adjustDataValidations($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) + { + $aDataValidationCollection = $pSheet->getDataValidationCollection(); + ($pNumCols > 0 || $pNumRows > 0) ? + uksort($aDataValidationCollection, array('PHPExcel_ReferenceHelper','cellReverseSort')) : + uksort($aDataValidationCollection, array('PHPExcel_ReferenceHelper','cellSort')); + foreach ($aDataValidationCollection as $key => $value) { + $newReference = $this->updateCellReference($key, $pBefore, $pNumCols, $pNumRows); + if ($key != $newReference) { + $pSheet->setDataValidation( $newReference, $value ); + $pSheet->setDataValidation( $key, null ); + } + } + } + + /** + * Update merged cells when inserting/deleting rows/columns + * + * @param PHPExcel_Worksheet $pSheet The worksheet that we're editing + * @param string $pBefore Insert/Delete before this cell address (e.g. 'A1') + * @param integer $beforeColumnIndex Index number of the column we're inserting/deleting before + * @param integer $pNumCols Number of columns to insert/delete (negative values indicate deletion) + * @param integer $beforeRow Number of the row we're inserting/deleting before + * @param integer $pNumRows Number of rows to insert/delete (negative values indicate deletion) + */ + protected function _adjustMergeCells($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) + { + $aMergeCells = $pSheet->getMergeCells(); + $aNewMergeCells = array(); // the new array of all merge cells + foreach ($aMergeCells as $key => &$value) { + $newReference = $this->updateCellReference($key, $pBefore, $pNumCols, $pNumRows); + $aNewMergeCells[$newReference] = $newReference; + } + $pSheet->setMergeCells($aNewMergeCells); // replace the merge cells array + } + + /** + * Update protected cells when inserting/deleting rows/columns + * + * @param PHPExcel_Worksheet $pSheet The worksheet that we're editing + * @param string $pBefore Insert/Delete before this cell address (e.g. 'A1') + * @param integer $beforeColumnIndex Index number of the column we're inserting/deleting before + * @param integer $pNumCols Number of columns to insert/delete (negative values indicate deletion) + * @param integer $beforeRow Number of the row we're inserting/deleting before + * @param integer $pNumRows Number of rows to insert/delete (negative values indicate deletion) + */ + protected function _adjustProtectedCells($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) + { + $aProtectedCells = $pSheet->getProtectedCells(); + ($pNumCols > 0 || $pNumRows > 0) ? + uksort($aProtectedCells, array('PHPExcel_ReferenceHelper','cellReverseSort')) : + uksort($aProtectedCells, array('PHPExcel_ReferenceHelper','cellSort')); + foreach ($aProtectedCells as $key => $value) { + $newReference = $this->updateCellReference($key, $pBefore, $pNumCols, $pNumRows); + if ($key != $newReference) { + $pSheet->protectCells( $newReference, $value, true ); + $pSheet->unprotectCells( $key ); + } + } + } + + /** + * Update column dimensions when inserting/deleting rows/columns + * + * @param PHPExcel_Worksheet $pSheet The worksheet that we're editing + * @param string $pBefore Insert/Delete before this cell address (e.g. 'A1') + * @param integer $beforeColumnIndex Index number of the column we're inserting/deleting before + * @param integer $pNumCols Number of columns to insert/delete (negative values indicate deletion) + * @param integer $beforeRow Number of the row we're inserting/deleting before + * @param integer $pNumRows Number of rows to insert/delete (negative values indicate deletion) + */ + protected function _adjustColumnDimensions($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) + { + $aColumnDimensions = array_reverse($pSheet->getColumnDimensions(), true); + if (!empty($aColumnDimensions)) { + foreach ($aColumnDimensions as $objColumnDimension) { + $newReference = $this->updateCellReference($objColumnDimension->getColumnIndex() . '1', $pBefore, $pNumCols, $pNumRows); + list($newReference) = PHPExcel_Cell::coordinateFromString($newReference); + if ($objColumnDimension->getColumnIndex() != $newReference) { + $objColumnDimension->setColumnIndex($newReference); + } + } + $pSheet->refreshColumnDimensions(); + } + } + + /** + * Update row dimensions when inserting/deleting rows/columns + * + * @param PHPExcel_Worksheet $pSheet The worksheet that we're editing + * @param string $pBefore Insert/Delete before this cell address (e.g. 'A1') + * @param integer $beforeColumnIndex Index number of the column we're inserting/deleting before + * @param integer $pNumCols Number of columns to insert/delete (negative values indicate deletion) + * @param integer $beforeRow Number of the row we're inserting/deleting before + * @param integer $pNumRows Number of rows to insert/delete (negative values indicate deletion) + */ + protected function _adjustRowDimensions($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) + { + $aRowDimensions = array_reverse($pSheet->getRowDimensions(), true); + if (!empty($aRowDimensions)) { + foreach ($aRowDimensions as $objRowDimension) { + $newReference = $this->updateCellReference('A' . $objRowDimension->getRowIndex(), $pBefore, $pNumCols, $pNumRows); + list(, $newReference) = PHPExcel_Cell::coordinateFromString($newReference); + if ($objRowDimension->getRowIndex() != $newReference) { + $objRowDimension->setRowIndex($newReference); + } + } + $pSheet->refreshRowDimensions(); + + $copyDimension = $pSheet->getRowDimension($beforeRow - 1); + for ($i = $beforeRow; $i <= $beforeRow - 1 + $pNumRows; ++$i) { + $newDimension = $pSheet->getRowDimension($i); + $newDimension->setRowHeight($copyDimension->getRowHeight()); + $newDimension->setVisible($copyDimension->getVisible()); + $newDimension->setOutlineLevel($copyDimension->getOutlineLevel()); + $newDimension->setCollapsed($copyDimension->getCollapsed()); + } + } + } + + /** + * Insert a new column or row, updating all possible related data + * + * @param string $pBefore Insert before this cell address (e.g. 'A1') + * @param integer $pNumCols Number of columns to insert/delete (negative values indicate deletion) + * @param integer $pNumRows Number of rows to insert/delete (negative values indicate deletion) + * @param PHPExcel_Worksheet $pSheet The worksheet that we're editing + * @throws PHPExcel_Exception + */ + public function insertNewBefore($pBefore = 'A1', $pNumCols = 0, $pNumRows = 0, PHPExcel_Worksheet $pSheet = NULL) + { + $remove = ($pNumCols < 0 || $pNumRows < 0); + $aCellCollection = $pSheet->getCellCollection(); + + // Get coordinates of $pBefore + $beforeColumn = 'A'; + $beforeRow = 1; + list($beforeColumn, $beforeRow) = PHPExcel_Cell::coordinateFromString($pBefore); + $beforeColumnIndex = PHPExcel_Cell::columnIndexFromString($beforeColumn); + + // Clear cells if we are removing columns or rows + $highestColumn = $pSheet->getHighestColumn(); + $highestRow = $pSheet->getHighestRow(); + + // 1. Clear column strips if we are removing columns + if ($pNumCols < 0 && $beforeColumnIndex - 2 + $pNumCols > 0) { + for ($i = 1; $i <= $highestRow - 1; ++$i) { + for ($j = $beforeColumnIndex - 1 + $pNumCols; $j <= $beforeColumnIndex - 2; ++$j) { + $coordinate = PHPExcel_Cell::stringFromColumnIndex($j) . $i; + $pSheet->removeConditionalStyles($coordinate); + if ($pSheet->cellExists($coordinate)) { + $pSheet->getCell($coordinate)->setValueExplicit('', PHPExcel_Cell_DataType::TYPE_NULL); + $pSheet->getCell($coordinate)->setXfIndex(0); + } + } + } + } + + // 2. Clear row strips if we are removing rows + if ($pNumRows < 0 && $beforeRow - 1 + $pNumRows > 0) { + for ($i = $beforeColumnIndex - 1; $i <= PHPExcel_Cell::columnIndexFromString($highestColumn) - 1; ++$i) { + for ($j = $beforeRow + $pNumRows; $j <= $beforeRow - 1; ++$j) { + $coordinate = PHPExcel_Cell::stringFromColumnIndex($i) . $j; + $pSheet->removeConditionalStyles($coordinate); + if ($pSheet->cellExists($coordinate)) { + $pSheet->getCell($coordinate)->setValueExplicit('', PHPExcel_Cell_DataType::TYPE_NULL); + $pSheet->getCell($coordinate)->setXfIndex(0); + } + } + } + } + + // Loop through cells, bottom-up, and change cell coordinates + if($remove) { + // It's faster to reverse and pop than to use unshift, especially with large cell collections + $aCellCollection = array_reverse($aCellCollection); + } + while ($cellID = array_pop($aCellCollection)) { + $cell = $pSheet->getCell($cellID); + $cellIndex = PHPExcel_Cell::columnIndexFromString($cell->getColumn()); + + if ($cellIndex-1 + $pNumCols < 0) { + continue; + } + + // New coordinates + $newCoordinates = PHPExcel_Cell::stringFromColumnIndex($cellIndex-1 + $pNumCols) . ($cell->getRow() + $pNumRows); + + // Should the cell be updated? Move value and cellXf index from one cell to another. + if (($cellIndex >= $beforeColumnIndex) && + ($cell->getRow() >= $beforeRow)) { + + // Update cell styles + $pSheet->getCell($newCoordinates)->setXfIndex($cell->getXfIndex()); + + // Insert this cell at its new location + if ($cell->getDataType() == PHPExcel_Cell_DataType::TYPE_FORMULA) { + // Formula should be adjusted + $pSheet->getCell($newCoordinates) + ->setValue($this->updateFormulaReferences($cell->getValue(), + $pBefore, $pNumCols, $pNumRows, $pSheet->getTitle())); + } else { + // Formula should not be adjusted + $pSheet->getCell($newCoordinates)->setValue($cell->getValue()); + } + + // Clear the original cell + $pSheet->getCellCacheController()->deleteCacheData($cellID); + + } else { + /* We don't need to update styles for rows/columns before our insertion position, + but we do still need to adjust any formulae in those cells */ + if ($cell->getDataType() == PHPExcel_Cell_DataType::TYPE_FORMULA) { + // Formula should be adjusted + $cell->setValue($this->updateFormulaReferences($cell->getValue(), + $pBefore, $pNumCols, $pNumRows, $pSheet->getTitle())); + } + + } + } + + // Duplicate styles for the newly inserted cells + $highestColumn = $pSheet->getHighestColumn(); + $highestRow = $pSheet->getHighestRow(); + + if ($pNumCols > 0 && $beforeColumnIndex - 2 > 0) { + for ($i = $beforeRow; $i <= $highestRow - 1; ++$i) { + + // Style + $coordinate = PHPExcel_Cell::stringFromColumnIndex( $beforeColumnIndex - 2 ) . $i; + if ($pSheet->cellExists($coordinate)) { + $xfIndex = $pSheet->getCell($coordinate)->getXfIndex(); + $conditionalStyles = $pSheet->conditionalStylesExists($coordinate) ? + $pSheet->getConditionalStyles($coordinate) : false; + for ($j = $beforeColumnIndex - 1; $j <= $beforeColumnIndex - 2 + $pNumCols; ++$j) { + $pSheet->getCellByColumnAndRow($j, $i)->setXfIndex($xfIndex); + if ($conditionalStyles) { + $cloned = array(); + foreach ($conditionalStyles as $conditionalStyle) { + $cloned[] = clone $conditionalStyle; + } + $pSheet->setConditionalStyles(PHPExcel_Cell::stringFromColumnIndex($j) . $i, $cloned); + } + } + } + + } + } + + if ($pNumRows > 0 && $beforeRow - 1 > 0) { + for ($i = $beforeColumnIndex - 1; $i <= PHPExcel_Cell::columnIndexFromString($highestColumn) - 1; ++$i) { + + // Style + $coordinate = PHPExcel_Cell::stringFromColumnIndex($i) . ($beforeRow - 1); + if ($pSheet->cellExists($coordinate)) { + $xfIndex = $pSheet->getCell($coordinate)->getXfIndex(); + $conditionalStyles = $pSheet->conditionalStylesExists($coordinate) ? + $pSheet->getConditionalStyles($coordinate) : false; + for ($j = $beforeRow; $j <= $beforeRow - 1 + $pNumRows; ++$j) { + $pSheet->getCell(PHPExcel_Cell::stringFromColumnIndex($i) . $j)->setXfIndex($xfIndex); + if ($conditionalStyles) { + $cloned = array(); + foreach ($conditionalStyles as $conditionalStyle) { + $cloned[] = clone $conditionalStyle; + } + $pSheet->setConditionalStyles(PHPExcel_Cell::stringFromColumnIndex($i) . $j, $cloned); + } + } + } + } + } + + // Update worksheet: column dimensions + $this->_adjustColumnDimensions($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows); + + // Update worksheet: row dimensions + $this->_adjustRowDimensions($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows); + + // Update worksheet: page breaks + $this->_adjustPageBreaks($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows); + + // Update worksheet: comments + $this->_adjustComments($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows); + + // Update worksheet: hyperlinks + $this->_adjustHyperlinks($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows); + + // Update worksheet: data validations + $this->_adjustDataValidations($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows); + + // Update worksheet: merge cells + $this->_adjustMergeCells($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows); + + // Update worksheet: protected cells + $this->_adjustProtectedCells($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows); + + // Update worksheet: autofilter + $autoFilter = $pSheet->getAutoFilter(); + $autoFilterRange = $autoFilter->getRange(); + if (!empty($autoFilterRange)) { + if ($pNumCols != 0) { + $autoFilterColumns = array_keys($autoFilter->getColumns()); + if (count($autoFilterColumns) > 0) { + sscanf($pBefore,'%[A-Z]%d', $column, $row); + $columnIndex = PHPExcel_Cell::columnIndexFromString($column); + list($rangeStart,$rangeEnd) = PHPExcel_Cell::rangeBoundaries($autoFilterRange); + if ($columnIndex <= $rangeEnd[0]) { + if ($pNumCols < 0) { + // If we're actually deleting any columns that fall within the autofilter range, + // then we delete any rules for those columns + $deleteColumn = $columnIndex + $pNumCols - 1; + $deleteCount = abs($pNumCols); + for ($i = 1; $i <= $deleteCount; ++$i) { + if (in_array(PHPExcel_Cell::stringFromColumnIndex($deleteColumn),$autoFilterColumns)) { + $autoFilter->clearColumn(PHPExcel_Cell::stringFromColumnIndex($deleteColumn)); + } + ++$deleteColumn; + } + } + $startCol = ($columnIndex > $rangeStart[0]) ? $columnIndex : $rangeStart[0]; + + // Shuffle columns in autofilter range + if ($pNumCols > 0) { + // For insert, we shuffle from end to beginning to avoid overwriting + $startColID = PHPExcel_Cell::stringFromColumnIndex($startCol-1); + $toColID = PHPExcel_Cell::stringFromColumnIndex($startCol+$pNumCols-1); + $endColID = PHPExcel_Cell::stringFromColumnIndex($rangeEnd[0]); + + $startColRef = $startCol; + $endColRef = $rangeEnd[0]; + $toColRef = $rangeEnd[0]+$pNumCols; + + do { + $autoFilter->shiftColumn(PHPExcel_Cell::stringFromColumnIndex($endColRef-1),PHPExcel_Cell::stringFromColumnIndex($toColRef-1)); + --$endColRef; + --$toColRef; + } while ($startColRef <= $endColRef); + } else { + // For delete, we shuffle from beginning to end to avoid overwriting + $startColID = PHPExcel_Cell::stringFromColumnIndex($startCol-1); + $toColID = PHPExcel_Cell::stringFromColumnIndex($startCol+$pNumCols-1); + $endColID = PHPExcel_Cell::stringFromColumnIndex($rangeEnd[0]); + do { + $autoFilter->shiftColumn($startColID,$toColID); + ++$startColID; + ++$toColID; + } while ($startColID != $endColID); + } + } + } + } + $pSheet->setAutoFilter( $this->updateCellReference($autoFilterRange, $pBefore, $pNumCols, $pNumRows) ); + } + + // Update worksheet: freeze pane + if ($pSheet->getFreezePane() != '') { + $pSheet->freezePane( $this->updateCellReference($pSheet->getFreezePane(), $pBefore, $pNumCols, $pNumRows) ); + } + + // Page setup + if ($pSheet->getPageSetup()->isPrintAreaSet()) { + $pSheet->getPageSetup()->setPrintArea( $this->updateCellReference($pSheet->getPageSetup()->getPrintArea(), $pBefore, $pNumCols, $pNumRows) ); + } + + // Update worksheet: drawings + $aDrawings = $pSheet->getDrawingCollection(); + foreach ($aDrawings as $objDrawing) { + $newReference = $this->updateCellReference($objDrawing->getCoordinates(), $pBefore, $pNumCols, $pNumRows); + if ($objDrawing->getCoordinates() != $newReference) { + $objDrawing->setCoordinates($newReference); + } + } + + // Update workbook: named ranges + if (count($pSheet->getParent()->getNamedRanges()) > 0) { + foreach ($pSheet->getParent()->getNamedRanges() as $namedRange) { + if ($namedRange->getWorksheet()->getHashCode() == $pSheet->getHashCode()) { + $namedRange->setRange( + $this->updateCellReference($namedRange->getRange(), $pBefore, $pNumCols, $pNumRows) + ); + } + } + } + + // Garbage collect + $pSheet->garbageCollect(); + } + + /** + * Update references within formulas + * + * @param string $pFormula Formula to update + * @param int $pBefore Insert before this one + * @param int $pNumCols Number of columns to insert + * @param int $pNumRows Number of rows to insert + * @param string $sheetName Worksheet name/title + * @return string Updated formula + * @throws PHPExcel_Exception + */ + public function updateFormulaReferences($pFormula = '', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0, $sheetName = '') { + // Update cell references in the formula + $formulaBlocks = explode('"',$pFormula); + $i = false; + foreach($formulaBlocks as &$formulaBlock) { + // Ignore blocks that were enclosed in quotes (alternating entries in the $formulaBlocks array after the explode) + if ($i = !$i) { + $adjustCount = 0; + $newCellTokens = $cellTokens = array(); + // Search for row ranges (e.g. 'Sheet1'!3:5 or 3:5) with or without $ absolutes (e.g. $3:5) + $matchCount = preg_match_all('/'.self::REFHELPER_REGEXP_ROWRANGE.'/i', ' '.$formulaBlock.' ', $matches, PREG_SET_ORDER); + if ($matchCount > 0) { + foreach($matches as $match) { + $fromString = ($match[2] > '') ? $match[2].'!' : ''; + $fromString .= $match[3].':'.$match[4]; + $modified3 = substr($this->updateCellReference('$A'.$match[3],$pBefore,$pNumCols,$pNumRows),2); + $modified4 = substr($this->updateCellReference('$A'.$match[4],$pBefore,$pNumCols,$pNumRows),2); + + if ($match[3].':'.$match[4] !== $modified3.':'.$modified4) { + if (($match[2] == '') || (trim($match[2],"'") == $sheetName)) { + $toString = ($match[2] > '') ? $match[2].'!' : ''; + $toString .= $modified3.':'.$modified4; + // Max worksheet size is 1,048,576 rows by 16,384 columns in Excel 2007, so our adjustments need to be at least one digit more + $column = 100000; + $row = 10000000+trim($match[3],'$'); + $cellIndex = $column.$row; + + $newCellTokens[$cellIndex] = preg_quote($toString); + $cellTokens[$cellIndex] = '/(?<!\d\$\!)'.preg_quote($fromString).'(?!\d)/i'; + ++$adjustCount; + } + } + } + } + // Search for column ranges (e.g. 'Sheet1'!C:E or C:E) with or without $ absolutes (e.g. $C:E) + $matchCount = preg_match_all('/'.self::REFHELPER_REGEXP_COLRANGE.'/i', ' '.$formulaBlock.' ', $matches, PREG_SET_ORDER); + if ($matchCount > 0) { + foreach($matches as $match) { + $fromString = ($match[2] > '') ? $match[2].'!' : ''; + $fromString .= $match[3].':'.$match[4]; + $modified3 = substr($this->updateCellReference($match[3].'$1',$pBefore,$pNumCols,$pNumRows),0,-2); + $modified4 = substr($this->updateCellReference($match[4].'$1',$pBefore,$pNumCols,$pNumRows),0,-2); + + if ($match[3].':'.$match[4] !== $modified3.':'.$modified4) { + if (($match[2] == '') || (trim($match[2],"'") == $sheetName)) { + $toString = ($match[2] > '') ? $match[2].'!' : ''; + $toString .= $modified3.':'.$modified4; + // Max worksheet size is 1,048,576 rows by 16,384 columns in Excel 2007, so our adjustments need to be at least one digit more + $column = PHPExcel_Cell::columnIndexFromString(trim($match[3],'$')) + 100000; + $row = 10000000; + $cellIndex = $column.$row; + + $newCellTokens[$cellIndex] = preg_quote($toString); + $cellTokens[$cellIndex] = '/(?<![A-Z\$\!])'.preg_quote($fromString).'(?![A-Z])/i'; + ++$adjustCount; + } + } + } + } + // Search for cell ranges (e.g. 'Sheet1'!A3:C5 or A3:C5) with or without $ absolutes (e.g. $A1:C$5) + $matchCount = preg_match_all('/'.self::REFHELPER_REGEXP_CELLRANGE.'/i', ' '.$formulaBlock.' ', $matches, PREG_SET_ORDER); + if ($matchCount > 0) { + foreach($matches as $match) { + $fromString = ($match[2] > '') ? $match[2].'!' : ''; + $fromString .= $match[3].':'.$match[4]; + $modified3 = $this->updateCellReference($match[3],$pBefore,$pNumCols,$pNumRows); + $modified4 = $this->updateCellReference($match[4],$pBefore,$pNumCols,$pNumRows); + + if ($match[3].$match[4] !== $modified3.$modified4) { + if (($match[2] == '') || (trim($match[2],"'") == $sheetName)) { + $toString = ($match[2] > '') ? $match[2].'!' : ''; + $toString .= $modified3.':'.$modified4; + list($column,$row) = PHPExcel_Cell::coordinateFromString($match[3]); + // Max worksheet size is 1,048,576 rows by 16,384 columns in Excel 2007, so our adjustments need to be at least one digit more + $column = PHPExcel_Cell::columnIndexFromString(trim($column,'$')) + 100000; + $row = trim($row,'$') + 10000000; + $cellIndex = $column.$row; + + $newCellTokens[$cellIndex] = preg_quote($toString); + $cellTokens[$cellIndex] = '/(?<![A-Z]\$\!)'.preg_quote($fromString).'(?!\d)/i'; + ++$adjustCount; + } + } + } + } + // Search for cell references (e.g. 'Sheet1'!A3 or C5) with or without $ absolutes (e.g. $A1 or C$5) + $matchCount = preg_match_all('/'.self::REFHELPER_REGEXP_CELLREF.'/i', ' '.$formulaBlock.' ', $matches, PREG_SET_ORDER); + + if ($matchCount > 0) { + foreach($matches as $match) { + $fromString = ($match[2] > '') ? $match[2].'!' : ''; + $fromString .= $match[3]; + + $modified3 = $this->updateCellReference($match[3],$pBefore,$pNumCols,$pNumRows); + if ($match[3] !== $modified3) { + if (($match[2] == '') || (trim($match[2],"'") == $sheetName)) { + $toString = ($match[2] > '') ? $match[2].'!' : ''; + $toString .= $modified3; + list($column,$row) = PHPExcel_Cell::coordinateFromString($match[3]); + // Max worksheet size is 1,048,576 rows by 16,384 columns in Excel 2007, so our adjustments need to be at least one digit more + $column = PHPExcel_Cell::columnIndexFromString(trim($column,'$')) + 100000; + $row = trim($row,'$') + 10000000; + $cellIndex = $row . $column; + + $newCellTokens[$cellIndex] = preg_quote($toString); + $cellTokens[$cellIndex] = '/(?<![A-Z\$\!])'.preg_quote($fromString).'(?!\d)/i'; + ++$adjustCount; + } + } + } + } + if ($adjustCount > 0) { + if ($pNumCols > 0 || $pNumRows > 0) { + krsort($cellTokens); + krsort($newCellTokens); + } else { + ksort($cellTokens); + ksort($newCellTokens); + } // Update cell references in the formula + $formulaBlock = str_replace('\\','',preg_replace($cellTokens,$newCellTokens,$formulaBlock)); + } + } + } + unset($formulaBlock); + + // Then rebuild the formula string + return implode('"',$formulaBlocks); + } + + /** + * Update cell reference + * + * @param string $pCellRange Cell range + * @param int $pBefore Insert before this one + * @param int $pNumCols Number of columns to increment + * @param int $pNumRows Number of rows to increment + * @return string Updated cell range + * @throws PHPExcel_Exception + */ + public function updateCellReference($pCellRange = 'A1', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0) { + // Is it in another worksheet? Will not have to update anything. + if (strpos($pCellRange, "!") !== false) { + return $pCellRange; + // Is it a range or a single cell? + } elseif (strpos($pCellRange, ':') === false && strpos($pCellRange, ',') === false) { + // Single cell + return $this->_updateSingleCellReference($pCellRange, $pBefore, $pNumCols, $pNumRows); + } elseif (strpos($pCellRange, ':') !== false || strpos($pCellRange, ',') !== false) { + // Range + return $this->_updateCellRange($pCellRange, $pBefore, $pNumCols, $pNumRows); + } else { + // Return original + return $pCellRange; + } + } + + /** + * Update named formulas (i.e. containing worksheet references / named ranges) + * + * @param PHPExcel $pPhpExcel Object to update + * @param string $oldName Old name (name to replace) + * @param string $newName New name + */ + public function updateNamedFormulas(PHPExcel $pPhpExcel, $oldName = '', $newName = '') { + if ($oldName == '') { + return; + } + + foreach ($pPhpExcel->getWorksheetIterator() as $sheet) { + foreach ($sheet->getCellCollection(false) as $cellID) { + $cell = $sheet->getCell($cellID); + if (($cell !== NULL) && ($cell->getDataType() == PHPExcel_Cell_DataType::TYPE_FORMULA)) { + $formula = $cell->getValue(); + if (strpos($formula, $oldName) !== false) { + $formula = str_replace("'" . $oldName . "'!", "'" . $newName . "'!", $formula); + $formula = str_replace($oldName . "!", $newName . "!", $formula); + $cell->setValueExplicit($formula, PHPExcel_Cell_DataType::TYPE_FORMULA); + } + } + } + } + } + + /** + * Update cell range + * + * @param string $pCellRange Cell range (e.g. 'B2:D4', 'B:C' or '2:3') + * @param int $pBefore Insert before this one + * @param int $pNumCols Number of columns to increment + * @param int $pNumRows Number of rows to increment + * @return string Updated cell range + * @throws PHPExcel_Exception + */ + private function _updateCellRange($pCellRange = 'A1:A1', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0) { + if (strpos($pCellRange,':') !== false || strpos($pCellRange, ',') !== false) { + // Update range + $range = PHPExcel_Cell::splitRange($pCellRange); + $ic = count($range); + for ($i = 0; $i < $ic; ++$i) { + $jc = count($range[$i]); + for ($j = 0; $j < $jc; ++$j) { + if (ctype_alpha($range[$i][$j])) { + $r = PHPExcel_Cell::coordinateFromString($this->_updateSingleCellReference($range[$i][$j].'1', $pBefore, $pNumCols, $pNumRows)); + $range[$i][$j] = $r[0]; + } elseif(ctype_digit($range[$i][$j])) { + $r = PHPExcel_Cell::coordinateFromString($this->_updateSingleCellReference('A'.$range[$i][$j], $pBefore, $pNumCols, $pNumRows)); + $range[$i][$j] = $r[1]; + } else { + $range[$i][$j] = $this->_updateSingleCellReference($range[$i][$j], $pBefore, $pNumCols, $pNumRows); + } + } + } + + // Recreate range string + return PHPExcel_Cell::buildRange($range); + } else { + throw new PHPExcel_Exception("Only cell ranges may be passed to this method."); + } + } + + /** + * Update single cell reference + * + * @param string $pCellReference Single cell reference + * @param int $pBefore Insert before this one + * @param int $pNumCols Number of columns to increment + * @param int $pNumRows Number of rows to increment + * @return string Updated cell reference + * @throws PHPExcel_Exception + */ + private function _updateSingleCellReference($pCellReference = 'A1', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0) { + if (strpos($pCellReference, ':') === false && strpos($pCellReference, ',') === false) { + // Get coordinates of $pBefore + list($beforeColumn, $beforeRow) = PHPExcel_Cell::coordinateFromString( $pBefore ); + + // Get coordinates of $pCellReference + list($newColumn, $newRow) = PHPExcel_Cell::coordinateFromString( $pCellReference ); + + // Verify which parts should be updated + $updateColumn = (($newColumn{0} != '$') && ($beforeColumn{0} != '$') && + PHPExcel_Cell::columnIndexFromString($newColumn) >= PHPExcel_Cell::columnIndexFromString($beforeColumn)); + $updateRow = (($newRow{0} != '$') && ($beforeRow{0} != '$') && + $newRow >= $beforeRow); + + // Create new column reference + if ($updateColumn) { + $newColumn = PHPExcel_Cell::stringFromColumnIndex( PHPExcel_Cell::columnIndexFromString($newColumn) - 1 + $pNumCols ); + } + + // Create new row reference + if ($updateRow) { + $newRow = $newRow + $pNumRows; + } + + // Return new reference + return $newColumn . $newRow; + } else { + throw new PHPExcel_Exception("Only single cell references may be passed to this method."); + } + } + + /** + * __clone implementation. Cloning should not be allowed in a Singleton! + * + * @throws PHPExcel_Exception + */ + public final function __clone() { + throw new PHPExcel_Exception("Cloning a Singleton is not allowed!"); + } +} diff --git a/admin/helpers/PHPExcel/RichText.php b/admin/helpers/PHPExcel/RichText.php new file mode 100644 index 00000000..19326315 --- /dev/null +++ b/admin/helpers/PHPExcel/RichText.php @@ -0,0 +1,199 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_RichText + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_RichText + * + * @category PHPExcel + * @package PHPExcel_RichText + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_RichText implements PHPExcel_IComparable +{ + /** + * Rich text elements + * + * @var PHPExcel_RichText_ITextElement[] + */ + private $_richTextElements; + + /** + * Create a new PHPExcel_RichText instance + * + * @param PHPExcel_Cell $pCell + * @throws PHPExcel_Exception + */ + public function __construct(PHPExcel_Cell $pCell = null) + { + // Initialise variables + $this->_richTextElements = array(); + + // Rich-Text string attached to cell? + if ($pCell !== NULL) { + // Add cell text and style + if ($pCell->getValue() != "") { + $objRun = new PHPExcel_RichText_Run($pCell->getValue()); + $objRun->setFont(clone $pCell->getParent()->getStyle($pCell->getCoordinate())->getFont()); + $this->addText($objRun); + } + + // Set parent value + $pCell->setValueExplicit($this, PHPExcel_Cell_DataType::TYPE_STRING); + } + } + + /** + * Add text + * + * @param PHPExcel_RichText_ITextElement $pText Rich text element + * @throws PHPExcel_Exception + * @return PHPExcel_RichText + */ + public function addText(PHPExcel_RichText_ITextElement $pText = null) + { + $this->_richTextElements[] = $pText; + return $this; + } + + /** + * Create text + * + * @param string $pText Text + * @return PHPExcel_RichText_TextElement + * @throws PHPExcel_Exception + */ + public function createText($pText = '') + { + $objText = new PHPExcel_RichText_TextElement($pText); + $this->addText($objText); + return $objText; + } + + /** + * Create text run + * + * @param string $pText Text + * @return PHPExcel_RichText_Run + * @throws PHPExcel_Exception + */ + public function createTextRun($pText = '') + { + $objText = new PHPExcel_RichText_Run($pText); + $this->addText($objText); + return $objText; + } + + /** + * Get plain text + * + * @return string + */ + public function getPlainText() + { + // Return value + $returnValue = ''; + + // Loop through all PHPExcel_RichText_ITextElement + foreach ($this->_richTextElements as $text) { + $returnValue .= $text->getText(); + } + + // Return + return $returnValue; + } + + /** + * Convert to string + * + * @return string + */ + public function __toString() + { + return $this->getPlainText(); + } + + /** + * Get Rich Text elements + * + * @return PHPExcel_RichText_ITextElement[] + */ + public function getRichTextElements() + { + return $this->_richTextElements; + } + + /** + * Set Rich Text elements + * + * @param PHPExcel_RichText_ITextElement[] $pElements Array of elements + * @throws PHPExcel_Exception + * @return PHPExcel_RichText + */ + public function setRichTextElements($pElements = null) + { + if (is_array($pElements)) { + $this->_richTextElements = $pElements; + } else { + throw new PHPExcel_Exception("Invalid PHPExcel_RichText_ITextElement[] array passed."); + } + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() + { + $hashElements = ''; + foreach ($this->_richTextElements as $element) { + $hashElements .= $element->getHashCode(); + } + + return md5( + $hashElements + . __CLASS__ + ); + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() + { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/RichText/ITextElement.php b/admin/helpers/PHPExcel/RichText/ITextElement.php new file mode 100644 index 00000000..9f1c6240 --- /dev/null +++ b/admin/helpers/PHPExcel/RichText/ITextElement.php @@ -0,0 +1,64 @@ +<?php +/** + * PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_RichText + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_RichText_ITextElement + * + * @category PHPExcel + * @package PHPExcel_RichText + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +interface PHPExcel_RichText_ITextElement +{ + /** + * Get text + * + * @return string Text + */ + public function getText(); + + /** + * Set text + * + * @param $pText string Text + * @return PHPExcel_RichText_ITextElement + */ + public function setText($pText = ''); + + /** + * Get font + * + * @return PHPExcel_Style_Font + */ + public function getFont(); + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode(); +} diff --git a/admin/helpers/PHPExcel/RichText/Run.php b/admin/helpers/PHPExcel/RichText/Run.php new file mode 100644 index 00000000..4a8c592e --- /dev/null +++ b/admin/helpers/PHPExcel/RichText/Run.php @@ -0,0 +1,102 @@ +<?php +/** + * PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_RichText + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_RichText_Run + * + * @category PHPExcel + * @package PHPExcel_RichText + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_RichText_Run extends PHPExcel_RichText_TextElement implements PHPExcel_RichText_ITextElement +{ + /** + * Font + * + * @var PHPExcel_Style_Font + */ + private $_font; + + /** + * Create a new PHPExcel_RichText_Run instance + * + * @param string $pText Text + */ + public function __construct($pText = '') + { + // Initialise variables + $this->setText($pText); + $this->_font = new PHPExcel_Style_Font(); + } + + /** + * Get font + * + * @return PHPExcel_Style_Font + */ + public function getFont() { + return $this->_font; + } + + /** + * Set font + * + * @param PHPExcel_Style_Font $pFont Font + * @throws PHPExcel_Exception + * @return PHPExcel_RichText_ITextElement + */ + public function setFont(PHPExcel_Style_Font $pFont = null) { + $this->_font = $pFont; + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + return md5( + $this->getText() + . $this->_font->getHashCode() + . __CLASS__ + ); + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/RichText/TextElement.php b/admin/helpers/PHPExcel/RichText/TextElement.php new file mode 100644 index 00000000..ec7c2644 --- /dev/null +++ b/admin/helpers/PHPExcel/RichText/TextElement.php @@ -0,0 +1,108 @@ +<?php +/** + * PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_RichText + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_RichText_TextElement + * + * @category PHPExcel + * @package PHPExcel_RichText + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_RichText_TextElement implements PHPExcel_RichText_ITextElement +{ + /** + * Text + * + * @var string + */ + private $_text; + + /** + * Create a new PHPExcel_RichText_TextElement instance + * + * @param string $pText Text + */ + public function __construct($pText = '') + { + // Initialise variables + $this->_text = $pText; + } + + /** + * Get text + * + * @return string Text + */ + public function getText() { + return $this->_text; + } + + /** + * Set text + * + * @param $pText string Text + * @return PHPExcel_RichText_ITextElement + */ + public function setText($pText = '') { + $this->_text = $pText; + return $this; + } + + /** + * Get font + * + * @return PHPExcel_Style_Font + */ + public function getFont() { + return null; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + return md5( + $this->_text + . __CLASS__ + ); + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/RichText/index.html b/admin/helpers/PHPExcel/RichText/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/RichText/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Settings.php b/admin/helpers/PHPExcel/Settings.php new file mode 100644 index 00000000..c78d9350 --- /dev/null +++ b/admin/helpers/PHPExcel/Settings.php @@ -0,0 +1,391 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Settings + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +/** PHPExcel root directory */ +if (!defined('PHPEXCEL_ROOT')) { + /** + * @ignore + */ + define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../'); + require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); +} + + +class PHPExcel_Settings +{ + /** constants */ + /** Available Zip library classes */ + const PCLZIP = 'PHPExcel_Shared_ZipArchive'; + const ZIPARCHIVE = 'ZipArchive'; + + /** Optional Chart Rendering libraries */ + const CHART_RENDERER_JPGRAPH = 'jpgraph'; + + /** Optional PDF Rendering libraries */ + const PDF_RENDERER_TCPDF = 'tcPDF'; + const PDF_RENDERER_DOMPDF = 'DomPDF'; + const PDF_RENDERER_MPDF = 'mPDF'; + + + private static $_chartRenderers = array( + self::CHART_RENDERER_JPGRAPH, + ); + + private static $_pdfRenderers = array( + self::PDF_RENDERER_TCPDF, + self::PDF_RENDERER_DOMPDF, + self::PDF_RENDERER_MPDF, + ); + + + /** + * Name of the class used for Zip file management + * e.g. + * ZipArchive + * + * @var string + */ + private static $_zipClass = self::ZIPARCHIVE; + + + /** + * Name of the external Library used for rendering charts + * e.g. + * jpgraph + * + * @var string + */ + private static $_chartRendererName = NULL; + + /** + * Directory Path to the external Library used for rendering charts + * + * @var string + */ + private static $_chartRendererPath = NULL; + + + /** + * Name of the external Library used for rendering PDF files + * e.g. + * mPDF + * + * @var string + */ + private static $_pdfRendererName = NULL; + + /** + * Directory Path to the external Library used for rendering PDF files + * + * @var string + */ + private static $_pdfRendererPath = NULL; + + /** + * Default options for libxml loader + * + * @var int + */ + private static $_libXmlLoaderOptions = null; + + /** + * Set the Zip handler Class that PHPExcel should use for Zip file management (PCLZip or ZipArchive) + * + * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management + * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive + * @return boolean Success or failure + */ + public static function setZipClass($zipClass) + { + if (($zipClass === self::PCLZIP) || + ($zipClass === self::ZIPARCHIVE)) { + self::$_zipClass = $zipClass; + return TRUE; + } + return FALSE; + } // function setZipClass() + + + /** + * Return the name of the Zip handler Class that PHPExcel is configured to use (PCLZip or ZipArchive) + * or Zip file management + * + * @return string Name of the Zip handler Class that PHPExcel is configured to use + * for Zip file management + * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive + */ + public static function getZipClass() + { + return self::$_zipClass; + } // function getZipClass() + + + /** + * Return the name of the method that is currently configured for cell cacheing + * + * @return string Name of the cacheing method + */ + public static function getCacheStorageMethod() + { + return PHPExcel_CachedObjectStorageFactory::getCacheStorageMethod(); + } // function getCacheStorageMethod() + + + /** + * Return the name of the class that is currently being used for cell cacheing + * + * @return string Name of the class currently being used for cacheing + */ + public static function getCacheStorageClass() + { + return PHPExcel_CachedObjectStorageFactory::getCacheStorageClass(); + } // function getCacheStorageClass() + + + /** + * Set the method that should be used for cell cacheing + * + * @param string $method Name of the cacheing method + * @param array $arguments Optional configuration arguments for the cacheing method + * @return boolean Success or failure + */ + public static function setCacheStorageMethod( + $method = PHPExcel_CachedObjectStorageFactory::cache_in_memory, + $arguments = array() + ) + { + return PHPExcel_CachedObjectStorageFactory::initialize($method, $arguments); + } // function setCacheStorageMethod() + + + /** + * Set the locale code to use for formula translations and any special formatting + * + * @param string $locale The locale code to use (e.g. "fr" or "pt_br" or "en_uk") + * @return boolean Success or failure + */ + public static function setLocale($locale='en_us') + { + return PHPExcel_Calculation::getInstance()->setLocale($locale); + } // function setLocale() + + + /** + * Set details of the external library that PHPExcel should use for rendering charts + * + * @param string $libraryName Internal reference name of the library + * e.g. PHPExcel_Settings::CHART_RENDERER_JPGRAPH + * @param string $libraryBaseDir Directory path to the library's base folder + * + * @return boolean Success or failure + */ + public static function setChartRenderer($libraryName, $libraryBaseDir) + { + if (!self::setChartRendererName($libraryName)) + return FALSE; + return self::setChartRendererPath($libraryBaseDir); + } // function setChartRenderer() + + + /** + * Identify to PHPExcel the external library to use for rendering charts + * + * @param string $libraryName Internal reference name of the library + * e.g. PHPExcel_Settings::CHART_RENDERER_JPGRAPH + * + * @return boolean Success or failure + */ + public static function setChartRendererName($libraryName) + { + if (!in_array($libraryName,self::$_chartRenderers)) { + return FALSE; + } + + self::$_chartRendererName = $libraryName; + + return TRUE; + } // function setChartRendererName() + + + /** + * Tell PHPExcel where to find the external library to use for rendering charts + * + * @param string $libraryBaseDir Directory path to the library's base folder + * @return boolean Success or failure + */ + public static function setChartRendererPath($libraryBaseDir) + { + if ((file_exists($libraryBaseDir) === false) || (is_readable($libraryBaseDir) === false)) { + return FALSE; + } + self::$_chartRendererPath = $libraryBaseDir; + + return TRUE; + } // function setChartRendererPath() + + + /** + * Return the Chart Rendering Library that PHPExcel is currently configured to use (e.g. jpgraph) + * + * @return string|NULL Internal reference name of the Chart Rendering Library that PHPExcel is + * currently configured to use + * e.g. PHPExcel_Settings::CHART_RENDERER_JPGRAPH + */ + public static function getChartRendererName() + { + return self::$_chartRendererName; + } // function getChartRendererName() + + + /** + * Return the directory path to the Chart Rendering Library that PHPExcel is currently configured to use + * + * @return string|NULL Directory Path to the Chart Rendering Library that PHPExcel is + * currently configured to use + */ + public static function getChartRendererPath() + { + return self::$_chartRendererPath; + } // function getChartRendererPath() + + + /** + * Set details of the external library that PHPExcel should use for rendering PDF files + * + * @param string $libraryName Internal reference name of the library + * e.g. PHPExcel_Settings::PDF_RENDERER_TCPDF, + * PHPExcel_Settings::PDF_RENDERER_DOMPDF + * or PHPExcel_Settings::PDF_RENDERER_MPDF + * @param string $libraryBaseDir Directory path to the library's base folder + * + * @return boolean Success or failure + */ + public static function setPdfRenderer($libraryName, $libraryBaseDir) + { + if (!self::setPdfRendererName($libraryName)) + return FALSE; + return self::setPdfRendererPath($libraryBaseDir); + } // function setPdfRenderer() + + + /** + * Identify to PHPExcel the external library to use for rendering PDF files + * + * @param string $libraryName Internal reference name of the library + * e.g. PHPExcel_Settings::PDF_RENDERER_TCPDF, + * PHPExcel_Settings::PDF_RENDERER_DOMPDF + * or PHPExcel_Settings::PDF_RENDERER_MPDF + * + * @return boolean Success or failure + */ + public static function setPdfRendererName($libraryName) + { + if (!in_array($libraryName,self::$_pdfRenderers)) { + return FALSE; + } + + self::$_pdfRendererName = $libraryName; + + return TRUE; + } // function setPdfRendererName() + + + /** + * Tell PHPExcel where to find the external library to use for rendering PDF files + * + * @param string $libraryBaseDir Directory path to the library's base folder + * @return boolean Success or failure + */ + public static function setPdfRendererPath($libraryBaseDir) + { + if ((file_exists($libraryBaseDir) === false) || (is_readable($libraryBaseDir) === false)) { + return FALSE; + } + self::$_pdfRendererPath = $libraryBaseDir; + + return TRUE; + } // function setPdfRendererPath() + + + /** + * Return the PDF Rendering Library that PHPExcel is currently configured to use (e.g. dompdf) + * + * @return string|NULL Internal reference name of the PDF Rendering Library that PHPExcel is + * currently configured to use + * e.g. PHPExcel_Settings::PDF_RENDERER_TCPDF, + * PHPExcel_Settings::PDF_RENDERER_DOMPDF + * or PHPExcel_Settings::PDF_RENDERER_MPDF + */ + public static function getPdfRendererName() + { + return self::$_pdfRendererName; + } // function getPdfRendererName() + + /** + * Return the directory path to the PDF Rendering Library that PHPExcel is currently configured to use + * + * @return string|NULL Directory Path to the PDF Rendering Library that PHPExcel is + * currently configured to use + */ + public static function getPdfRendererPath() + { + return self::$_pdfRendererPath; + } // function getPdfRendererPath() + + /** + * Set default options for libxml loader + * + * @param int $options Default options for libxml loader + */ + public static function setLibXmlLoaderOptions($options = null) + { + if (is_null($options) && defined(LIBXML_DTDLOAD)) { + $options = LIBXML_DTDLOAD | LIBXML_DTDATTR; + } + if (version_compare(PHP_VERSION, '5.2.11') >= 0) { + @libxml_disable_entity_loader($options == (LIBXML_DTDLOAD | LIBXML_DTDATTR)); + } + self::$_libXmlLoaderOptions = $options; + } // function setLibXmlLoaderOptions + + /** + * Get default options for libxml loader. + * Defaults to LIBXML_DTDLOAD | LIBXML_DTDATTR when not set explicitly. + * + * @return int Default options for libxml loader + */ + public static function getLibXmlLoaderOptions() + { + if (is_null(self::$_libXmlLoaderOptions) && defined(LIBXML_DTDLOAD)) { + self::setLibXmlLoaderOptions(LIBXML_DTDLOAD | LIBXML_DTDATTR); + } + if (version_compare(PHP_VERSION, '5.2.11') >= 0) { + @libxml_disable_entity_loader(self::$_libXmlLoaderOptions == (LIBXML_DTDLOAD | LIBXML_DTDATTR)); + } + return self::$_libXmlLoaderOptions; + } // function getLibXmlLoaderOptions +} diff --git a/admin/helpers/PHPExcel/Shared/CodePage.php b/admin/helpers/PHPExcel/Shared/CodePage.php new file mode 100644 index 00000000..01e0ea4f --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/CodePage.php @@ -0,0 +1,105 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Shared_CodePage + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_CodePage +{ + /** + * Convert Microsoft Code Page Identifier to Code Page Name which iconv + * and mbstring understands + * + * @param integer $codePage Microsoft Code Page Indentifier + * @return string Code Page Name + * @throws PHPExcel_Exception + */ + public static function NumberToName($codePage = 1252) + { + switch ($codePage) { + case 367: return 'ASCII'; break; // ASCII + case 437: return 'CP437'; break; // OEM US + case 720: throw new PHPExcel_Exception('Code page 720 not supported.'); + break; // OEM Arabic + case 737: return 'CP737'; break; // OEM Greek + case 775: return 'CP775'; break; // OEM Baltic + case 850: return 'CP850'; break; // OEM Latin I + case 852: return 'CP852'; break; // OEM Latin II (Central European) + case 855: return 'CP855'; break; // OEM Cyrillic + case 857: return 'CP857'; break; // OEM Turkish + case 858: return 'CP858'; break; // OEM Multilingual Latin I with Euro + case 860: return 'CP860'; break; // OEM Portugese + case 861: return 'CP861'; break; // OEM Icelandic + case 862: return 'CP862'; break; // OEM Hebrew + case 863: return 'CP863'; break; // OEM Canadian (French) + case 864: return 'CP864'; break; // OEM Arabic + case 865: return 'CP865'; break; // OEM Nordic + case 866: return 'CP866'; break; // OEM Cyrillic (Russian) + case 869: return 'CP869'; break; // OEM Greek (Modern) + case 874: return 'CP874'; break; // ANSI Thai + case 932: return 'CP932'; break; // ANSI Japanese Shift-JIS + case 936: return 'CP936'; break; // ANSI Chinese Simplified GBK + case 949: return 'CP949'; break; // ANSI Korean (Wansung) + case 950: return 'CP950'; break; // ANSI Chinese Traditional BIG5 + case 1200: return 'UTF-16LE'; break; // UTF-16 (BIFF8) + case 1250: return 'CP1250'; break; // ANSI Latin II (Central European) + case 1251: return 'CP1251'; break; // ANSI Cyrillic + case 0: // CodePage is not always correctly set when the xls file was saved by Apple's Numbers program + case 1252: return 'CP1252'; break; // ANSI Latin I (BIFF4-BIFF7) + case 1253: return 'CP1253'; break; // ANSI Greek + case 1254: return 'CP1254'; break; // ANSI Turkish + case 1255: return 'CP1255'; break; // ANSI Hebrew + case 1256: return 'CP1256'; break; // ANSI Arabic + case 1257: return 'CP1257'; break; // ANSI Baltic + case 1258: return 'CP1258'; break; // ANSI Vietnamese + case 1361: return 'CP1361'; break; // ANSI Korean (Johab) + case 10000: return 'MAC'; break; // Apple Roman + case 10001: return 'CP932'; break; // Macintosh Japanese + case 10002: return 'CP950'; break; // Macintosh Chinese Traditional + case 10003: return 'CP1361'; break; // Macintosh Korean + case 10006: return 'MACGREEK'; break; // Macintosh Greek + case 10007: return 'MACCYRILLIC'; break; // Macintosh Cyrillic + case 10008: return 'CP936'; break; // Macintosh - Simplified Chinese (GB 2312) + case 10029: return 'MACCENTRALEUROPE'; break; // Macintosh Central Europe + case 10079: return 'MACICELAND'; break; // Macintosh Icelandic + case 10081: return 'MACTURKISH'; break; // Macintosh Turkish + case 32768: return 'MAC'; break; // Apple Roman + case 32769: throw new PHPExcel_Exception('Code page 32769 not supported.'); + break; // ANSI Latin I (BIFF2-BIFF3) + case 65000: return 'UTF-7'; break; // Unicode (UTF-7) + case 65001: return 'UTF-8'; break; // Unicode (UTF-8) + } + + throw new PHPExcel_Exception('Unknown codepage: ' . $codePage); + } + +} diff --git a/admin/helpers/PHPExcel/Shared/Date.php b/admin/helpers/PHPExcel/Shared/Date.php new file mode 100644 index 00000000..75f367ea --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Date.php @@ -0,0 +1,393 @@ +<?php + +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Shared_Date + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_Date +{ + /** constants */ + const CALENDAR_WINDOWS_1900 = 1900; // Base date of 1st Jan 1900 = 1.0 + const CALENDAR_MAC_1904 = 1904; // Base date of 2nd Jan 1904 = 1.0 + + /* + * Names of the months of the year, indexed by shortname + * Planned usage for locale settings + * + * @public + * @var string[] + */ + public static $_monthNames = array( 'Jan' => 'January', + 'Feb' => 'February', + 'Mar' => 'March', + 'Apr' => 'April', + 'May' => 'May', + 'Jun' => 'June', + 'Jul' => 'July', + 'Aug' => 'August', + 'Sep' => 'September', + 'Oct' => 'October', + 'Nov' => 'November', + 'Dec' => 'December', + ); + + /* + * Names of the months of the year, indexed by shortname + * Planned usage for locale settings + * + * @public + * @var string[] + */ + public static $_numberSuffixes = array( 'st', + 'nd', + 'rd', + 'th', + ); + + /* + * Base calendar year to use for calculations + * + * @private + * @var int + */ + protected static $_excelBaseDate = self::CALENDAR_WINDOWS_1900; + + /** + * Set the Excel calendar (Windows 1900 or Mac 1904) + * + * @param integer $baseDate Excel base date (1900 or 1904) + * @return boolean Success or failure + */ + public static function setExcelCalendar($baseDate) { + if (($baseDate == self::CALENDAR_WINDOWS_1900) || + ($baseDate == self::CALENDAR_MAC_1904)) { + self::$_excelBaseDate = $baseDate; + return TRUE; + } + return FALSE; + } // function setExcelCalendar() + + + /** + * Return the Excel calendar (Windows 1900 or Mac 1904) + * + * @return integer Excel base date (1900 or 1904) + */ + public static function getExcelCalendar() { + return self::$_excelBaseDate; + } // function getExcelCalendar() + + + /** + * Convert a date from Excel to PHP + * + * @param long $dateValue Excel date/time value + * @param boolean $adjustToTimezone Flag indicating whether $dateValue should be treated as + * a UST timestamp, or adjusted to UST + * @param string $timezone The timezone for finding the adjustment from UST + * @return long PHP serialized date/time + */ + public static function ExcelToPHP($dateValue = 0, $adjustToTimezone = FALSE, $timezone = NULL) { + if (self::$_excelBaseDate == self::CALENDAR_WINDOWS_1900) { + $my_excelBaseDate = 25569; + // Adjust for the spurious 29-Feb-1900 (Day 60) + if ($dateValue < 60) { + --$my_excelBaseDate; + } + } else { + $my_excelBaseDate = 24107; + } + + // Perform conversion + if ($dateValue >= 1) { + $utcDays = $dateValue - $my_excelBaseDate; + $returnValue = round($utcDays * 86400); + if (($returnValue <= PHP_INT_MAX) && ($returnValue >= -PHP_INT_MAX)) { + $returnValue = (integer) $returnValue; + } + } else { + $hours = round($dateValue * 24); + $mins = round($dateValue * 1440) - round($hours * 60); + $secs = round($dateValue * 86400) - round($hours * 3600) - round($mins * 60); + $returnValue = (integer) gmmktime($hours, $mins, $secs); + } + + $timezoneAdjustment = ($adjustToTimezone) ? + PHPExcel_Shared_TimeZone::getTimezoneAdjustment($timezone, $returnValue) : + 0; + + // Return + return $returnValue + $timezoneAdjustment; + } // function ExcelToPHP() + + + /** + * Convert a date from Excel to a PHP Date/Time object + * + * @param integer $dateValue Excel date/time value + * @return DateTime PHP date/time object + */ + public static function ExcelToPHPObject($dateValue = 0) { + $dateTime = self::ExcelToPHP($dateValue); + $days = floor($dateTime / 86400); + $time = round((($dateTime / 86400) - $days) * 86400); + $hours = round($time / 3600); + $minutes = round($time / 60) - ($hours * 60); + $seconds = round($time) - ($hours * 3600) - ($minutes * 60); + + $dateObj = date_create('1-Jan-1970+'.$days.' days'); + $dateObj->setTime($hours,$minutes,$seconds); + + return $dateObj; + } // function ExcelToPHPObject() + + + /** + * Convert a date from PHP to Excel + * + * @param mixed $dateValue PHP serialized date/time or date object + * @param boolean $adjustToTimezone Flag indicating whether $dateValue should be treated as + * a UST timestamp, or adjusted to UST + * @param string $timezone The timezone for finding the adjustment from UST + * @return mixed Excel date/time value + * or boolean FALSE on failure + */ + public static function PHPToExcel($dateValue = 0, $adjustToTimezone = FALSE, $timezone = NULL) { + $saveTimeZone = date_default_timezone_get(); + date_default_timezone_set('UTC'); + $retValue = FALSE; + if ((is_object($dateValue)) && ($dateValue instanceof DateTime)) { + $retValue = self::FormattedPHPToExcel( $dateValue->format('Y'), $dateValue->format('m'), $dateValue->format('d'), + $dateValue->format('H'), $dateValue->format('i'), $dateValue->format('s') + ); + } elseif (is_numeric($dateValue)) { + $retValue = self::FormattedPHPToExcel( date('Y',$dateValue), date('m',$dateValue), date('d',$dateValue), + date('H',$dateValue), date('i',$dateValue), date('s',$dateValue) + ); + } + date_default_timezone_set($saveTimeZone); + + return $retValue; + } // function PHPToExcel() + + + /** + * FormattedPHPToExcel + * + * @param long $year + * @param long $month + * @param long $day + * @param long $hours + * @param long $minutes + * @param long $seconds + * @return long Excel date/time value + */ + public static function FormattedPHPToExcel($year, $month, $day, $hours=0, $minutes=0, $seconds=0) { + if (self::$_excelBaseDate == self::CALENDAR_WINDOWS_1900) { + // + // Fudge factor for the erroneous fact that the year 1900 is treated as a Leap Year in MS Excel + // This affects every date following 28th February 1900 + // + $excel1900isLeapYear = TRUE; + if (($year == 1900) && ($month <= 2)) { $excel1900isLeapYear = FALSE; } + $my_excelBaseDate = 2415020; + } else { + $my_excelBaseDate = 2416481; + $excel1900isLeapYear = FALSE; + } + + // Julian base date Adjustment + if ($month > 2) { + $month -= 3; + } else { + $month += 9; + --$year; + } + + // Calculate the Julian Date, then subtract the Excel base date (JD 2415020 = 31-Dec-1899 Giving Excel Date of 0) + $century = substr($year,0,2); + $decade = substr($year,2,2); + $excelDate = floor((146097 * $century) / 4) + floor((1461 * $decade) / 4) + floor((153 * $month + 2) / 5) + $day + 1721119 - $my_excelBaseDate + $excel1900isLeapYear; + + $excelTime = (($hours * 3600) + ($minutes * 60) + $seconds) / 86400; + + return (float) $excelDate + $excelTime; + } // function FormattedPHPToExcel() + + + /** + * Is a given cell a date/time? + * + * @param PHPExcel_Cell $pCell + * @return boolean + */ + public static function isDateTime(PHPExcel_Cell $pCell) { + return self::isDateTimeFormat( + $pCell->getWorksheet()->getStyle( + $pCell->getCoordinate() + )->getNumberFormat() + ); + } // function isDateTime() + + + /** + * Is a given number format a date/time? + * + * @param PHPExcel_Style_NumberFormat $pFormat + * @return boolean + */ + public static function isDateTimeFormat(PHPExcel_Style_NumberFormat $pFormat) { + return self::isDateTimeFormatCode($pFormat->getFormatCode()); + } // function isDateTimeFormat() + + + private static $possibleDateFormatCharacters = 'eymdHs'; + + /** + * Is a given number format code a date/time? + * + * @param string $pFormatCode + * @return boolean + */ + public static function isDateTimeFormatCode($pFormatCode = '') { + if (strtolower($pFormatCode) === strtolower(PHPExcel_Style_NumberFormat::FORMAT_GENERAL)) + // "General" contains an epoch letter 'e', so we trap for it explicitly here (case-insensitive check) + return FALSE; + if (preg_match('/[0#]E[+-]0/i', $pFormatCode)) + // Scientific format + return FALSE; + // Switch on formatcode + switch ($pFormatCode) { + // Explicitly defined date formats + case PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDD: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDD2: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_DDMMYYYY: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_DMYSLASH: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_DMYMINUS: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_DMMINUS: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_MYMINUS: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_DATETIME: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME1: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME2: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME3: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME4: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME5: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME6: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME7: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME8: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDDSLASH: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX14: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX15: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX16: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX17: + case PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX22: + return TRUE; + } + + // Typically number, currency or accounting (or occasionally fraction) formats + if ((substr($pFormatCode,0,1) == '_') || (substr($pFormatCode,0,2) == '0 ')) { + return FALSE; + } + // Try checking for any of the date formatting characters that don't appear within square braces + if (preg_match('/(^|\])[^\[]*['.self::$possibleDateFormatCharacters.']/i',$pFormatCode)) { + // We might also have a format mask containing quoted strings... + // we don't want to test for any of our characters within the quoted blocks + if (strpos($pFormatCode,'"') !== FALSE) { + $segMatcher = FALSE; + foreach(explode('"',$pFormatCode) as $subVal) { + // Only test in alternate array entries (the non-quoted blocks) + if (($segMatcher = !$segMatcher) && + (preg_match('/(^|\])[^\[]*['.self::$possibleDateFormatCharacters.']/i',$subVal))) { + return TRUE; + } + } + return FALSE; + } + return TRUE; + } + + // No date... + return FALSE; + } // function isDateTimeFormatCode() + + + /** + * Convert a date/time string to Excel time + * + * @param string $dateValue Examples: '2009-12-31', '2009-12-31 15:59', '2009-12-31 15:59:10' + * @return float|FALSE Excel date/time serial value + */ + public static function stringToExcel($dateValue = '') { + if (strlen($dateValue) < 2) + return FALSE; + if (!preg_match('/^(\d{1,4}[ \.\/\-][A-Z]{3,9}([ \.\/\-]\d{1,4})?|[A-Z]{3,9}[ \.\/\-]\d{1,4}([ \.\/\-]\d{1,4})?|\d{1,4}[ \.\/\-]\d{1,4}([ \.\/\-]\d{1,4})?)( \d{1,2}:\d{1,2}(:\d{1,2})?)?$/iu', $dateValue)) + return FALSE; + + $dateValueNew = PHPExcel_Calculation_DateTime::DATEVALUE($dateValue); + + if ($dateValueNew === PHPExcel_Calculation_Functions::VALUE()) { + return FALSE; + } else { + if (strpos($dateValue, ':') !== FALSE) { + $timeValue = PHPExcel_Calculation_DateTime::TIMEVALUE($dateValue); + if ($timeValue === PHPExcel_Calculation_Functions::VALUE()) { + return FALSE; + } + $dateValueNew += $timeValue; + } + return $dateValueNew; + } + + + } + + public static function monthStringToNumber($month) { + $monthIndex = 1; + foreach(self::$_monthNames as $shortMonthName => $longMonthName) { + if (($month === $longMonthName) || ($month === $shortMonthName)) { + return $monthIndex; + } + ++$monthIndex; + } + return $month; + } + + public static function dayStringToNumber($day) { + $strippedDayValue = (str_replace(self::$_numberSuffixes,'',$day)); + if (is_numeric($strippedDayValue)) { + return $strippedDayValue; + } + return $day; + } + +} diff --git a/admin/helpers/PHPExcel/Shared/Drawing.php b/admin/helpers/PHPExcel/Shared/Drawing.php new file mode 100644 index 00000000..dbff74ab --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Drawing.php @@ -0,0 +1,272 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Shared_Drawing + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_Drawing +{ + /** + * Convert pixels to EMU + * + * @param int $pValue Value in pixels + * @return int Value in EMU + */ + public static function pixelsToEMU($pValue = 0) { + return round($pValue * 9525); + } + + /** + * Convert EMU to pixels + * + * @param int $pValue Value in EMU + * @return int Value in pixels + */ + public static function EMUToPixels($pValue = 0) { + if ($pValue != 0) { + return round($pValue / 9525); + } else { + return 0; + } + } + + /** + * Convert pixels to column width. Exact algorithm not known. + * By inspection of a real Excel file using Calibri 11, one finds 1000px ~ 142.85546875 + * This gives a conversion factor of 7. Also, we assume that pixels and font size are proportional. + * + * @param int $pValue Value in pixels + * @param PHPExcel_Style_Font $pDefaultFont Default font of the workbook + * @return int Value in cell dimension + */ + public static function pixelsToCellDimension($pValue = 0, PHPExcel_Style_Font $pDefaultFont) { + // Font name and size + $name = $pDefaultFont->getName(); + $size = $pDefaultFont->getSize(); + + if (isset(PHPExcel_Shared_Font::$defaultColumnWidths[$name][$size])) { + // Exact width can be determined + $colWidth = $pValue + * PHPExcel_Shared_Font::$defaultColumnWidths[$name][$size]['width'] + / PHPExcel_Shared_Font::$defaultColumnWidths[$name][$size]['px']; + } else { + // We don't have data for this particular font and size, use approximation by + // extrapolating from Calibri 11 + $colWidth = $pValue * 11 + * PHPExcel_Shared_Font::$defaultColumnWidths['Calibri'][11]['width'] + / PHPExcel_Shared_Font::$defaultColumnWidths['Calibri'][11]['px'] / $size; + } + + return $colWidth; + } + + /** + * Convert column width from (intrinsic) Excel units to pixels + * + * @param float $pValue Value in cell dimension + * @param PHPExcel_Style_Font $pDefaultFont Default font of the workbook + * @return int Value in pixels + */ + public static function cellDimensionToPixels($pValue = 0, PHPExcel_Style_Font $pDefaultFont) { + // Font name and size + $name = $pDefaultFont->getName(); + $size = $pDefaultFont->getSize(); + + if (isset(PHPExcel_Shared_Font::$defaultColumnWidths[$name][$size])) { + // Exact width can be determined + $colWidth = $pValue + * PHPExcel_Shared_Font::$defaultColumnWidths[$name][$size]['px'] + / PHPExcel_Shared_Font::$defaultColumnWidths[$name][$size]['width']; + + } else { + // We don't have data for this particular font and size, use approximation by + // extrapolating from Calibri 11 + $colWidth = $pValue * $size + * PHPExcel_Shared_Font::$defaultColumnWidths['Calibri'][11]['px'] + / PHPExcel_Shared_Font::$defaultColumnWidths['Calibri'][11]['width'] / 11; + } + + // Round pixels to closest integer + $colWidth = (int) round($colWidth); + + return $colWidth; + } + + /** + * Convert pixels to points + * + * @param int $pValue Value in pixels + * @return int Value in points + */ + public static function pixelsToPoints($pValue = 0) { + return $pValue * 0.67777777; + } + + /** + * Convert points to pixels + * + * @param int $pValue Value in points + * @return int Value in pixels + */ + public static function pointsToPixels($pValue = 0) { + if ($pValue != 0) { + return (int) ceil($pValue * 1.333333333); + } else { + return 0; + } + } + + /** + * Convert degrees to angle + * + * @param int $pValue Degrees + * @return int Angle + */ + public static function degreesToAngle($pValue = 0) { + return (int)round($pValue * 60000); + } + + /** + * Convert angle to degrees + * + * @param int $pValue Angle + * @return int Degrees + */ + public static function angleToDegrees($pValue = 0) { + if ($pValue != 0) { + return round($pValue / 60000); + } else { + return 0; + } + } + + /** + * Create a new image from file. By alexander at alexauto dot nl + * + * @link http://www.php.net/manual/en/function.imagecreatefromwbmp.php#86214 + * @param string $filename Path to Windows DIB (BMP) image + * @return resource + */ + public static function imagecreatefrombmp($p_sFile) + { + // Load the image into a string + $file = fopen($p_sFile,"rb"); + $read = fread($file,10); + while(!feof($file)&&($read<>"")) + $read .= fread($file,1024); + + $temp = unpack("H*",$read); + $hex = $temp[1]; + $header = substr($hex,0,108); + + // Process the header + // Structure: http://www.fastgraph.com/help/bmp_header_format.html + if (substr($header,0,4)=="424d") + { + // Cut it in parts of 2 bytes + $header_parts = str_split($header,2); + + // Get the width 4 bytes + $width = hexdec($header_parts[19].$header_parts[18]); + + // Get the height 4 bytes + $height = hexdec($header_parts[23].$header_parts[22]); + + // Unset the header params + unset($header_parts); + } + + // Define starting X and Y + $x = 0; + $y = 1; + + // Create newimage + $image = imagecreatetruecolor($width,$height); + + // Grab the body from the image + $body = substr($hex,108); + + // Calculate if padding at the end-line is needed + // Divided by two to keep overview. + // 1 byte = 2 HEX-chars + $body_size = (strlen($body)/2); + $header_size = ($width*$height); + + // Use end-line padding? Only when needed + $usePadding = ($body_size>($header_size*3)+4); + + // Using a for-loop with index-calculation instaid of str_split to avoid large memory consumption + // Calculate the next DWORD-position in the body + for ($i=0;$i<$body_size;$i+=3) + { + // Calculate line-ending and padding + if ($x>=$width) + { + // If padding needed, ignore image-padding + // Shift i to the ending of the current 32-bit-block + if ($usePadding) + $i += $width%4; + + // Reset horizontal position + $x = 0; + + // Raise the height-position (bottom-up) + $y++; + + // Reached the image-height? Break the for-loop + if ($y>$height) + break; + } + + // Calculation of the RGB-pixel (defined as BGR in image-data) + // Define $i_pos as absolute position in the body + $i_pos = $i*2; + $r = hexdec($body[$i_pos+4].$body[$i_pos+5]); + $g = hexdec($body[$i_pos+2].$body[$i_pos+3]); + $b = hexdec($body[$i_pos].$body[$i_pos+1]); + + // Calculate and draw the pixel + $color = imagecolorallocate($image,$r,$g,$b); + imagesetpixel($image,$x,$height-$y,$color); + + // Raise the horizontal position + $x++; + } + + // Unset the body / free the memory + unset($body); + + // Return image-object + return $image; + } + +} diff --git a/admin/helpers/PHPExcel/Shared/Escher.php b/admin/helpers/PHPExcel/Shared/Escher.php new file mode 100644 index 00000000..ddf68c65 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Escher.php @@ -0,0 +1,91 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +/** + * PHPExcel_Shared_Escher + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_Escher +{ + /** + * Drawing Group Container + * + * @var PHPExcel_Shared_Escher_DggContainer + */ + private $_dggContainer; + + /** + * Drawing Container + * + * @var PHPExcel_Shared_Escher_DgContainer + */ + private $_dgContainer; + + /** + * Get Drawing Group Container + * + * @return PHPExcel_Shared_Escher_DgContainer + */ + public function getDggContainer() + { + return $this->_dggContainer; + } + + /** + * Set Drawing Group Container + * + * @param PHPExcel_Shared_Escher_DggContainer $dggContainer + */ + public function setDggContainer($dggContainer) + { + return $this->_dggContainer = $dggContainer; + } + + /** + * Get Drawing Container + * + * @return PHPExcel_Shared_Escher_DgContainer + */ + public function getDgContainer() + { + return $this->_dgContainer; + } + + /** + * Set Drawing Container + * + * @param PHPExcel_Shared_Escher_DgContainer $dgContainer + */ + public function setDgContainer($dgContainer) + { + return $this->_dgContainer = $dgContainer; + } + +} diff --git a/admin/helpers/PHPExcel/Shared/Escher/DgContainer.php b/admin/helpers/PHPExcel/Shared/Escher/DgContainer.php new file mode 100644 index 00000000..cb826db1 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Escher/DgContainer.php @@ -0,0 +1,83 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +/** + * PHPExcel_Shared_Escher_DgContainer + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_Escher_DgContainer +{ + /** + * Drawing index, 1-based. + * + * @var int + */ + private $_dgId; + + /** + * Last shape index in this drawing + * + * @var int + */ + private $_lastSpId; + + private $_spgrContainer = null; + + public function getDgId() + { + return $this->_dgId; + } + + public function setDgId($value) + { + $this->_dgId = $value; + } + + public function getLastSpId() + { + return $this->_lastSpId; + } + + public function setLastSpId($value) + { + $this->_lastSpId = $value; + } + + public function getSpgrContainer() + { + return $this->_spgrContainer; + } + + public function setSpgrContainer($spgrContainer) + { + return $this->_spgrContainer = $spgrContainer; + } + +} diff --git a/admin/helpers/PHPExcel/Shared/Escher/DgContainer/SpgrContainer.php b/admin/helpers/PHPExcel/Shared/Escher/DgContainer/SpgrContainer.php new file mode 100644 index 00000000..b8ad8eaf --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Escher/DgContainer/SpgrContainer.php @@ -0,0 +1,109 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +/** + * PHPExcel_Shared_Escher_DgContainer_SpgrContainer + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_Escher_DgContainer_SpgrContainer +{ + /** + * Parent Shape Group Container + * + * @var PHPExcel_Shared_Escher_DgContainer_SpgrContainer + */ + private $_parent; + + /** + * Shape Container collection + * + * @var array + */ + private $_children = array(); + + /** + * Set parent Shape Group Container + * + * @param PHPExcel_Shared_Escher_DgContainer_SpgrContainer $parent + */ + public function setParent($parent) + { + $this->_parent = $parent; + } + + /** + * Get the parent Shape Group Container if any + * + * @return PHPExcel_Shared_Escher_DgContainer_SpgrContainer|null + */ + public function getParent() + { + return $this->_parent; + } + + /** + * Add a child. This will be either spgrContainer or spContainer + * + * @param mixed $child + */ + public function addChild($child) + { + $this->_children[] = $child; + $child->setParent($this); + } + + /** + * Get collection of Shape Containers + */ + public function getChildren() + { + return $this->_children; + } + + /** + * Recursively get all spContainers within this spgrContainer + * + * @return PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer[] + */ + public function getAllSpContainers() + { + $allSpContainers = array(); + + foreach ($this->_children as $child) { + if ($child instanceof PHPExcel_Shared_Escher_DgContainer_SpgrContainer) { + $allSpContainers = array_merge($allSpContainers, $child->getAllSpContainers()); + } else { + $allSpContainers[] = $child; + } + } + + return $allSpContainers; + } +} diff --git a/admin/helpers/PHPExcel/Shared/Escher/DgContainer/SpgrContainer/SpContainer.php b/admin/helpers/PHPExcel/Shared/Escher/DgContainer/SpgrContainer/SpContainer.php new file mode 100644 index 00000000..68231480 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Escher/DgContainer/SpgrContainer/SpContainer.php @@ -0,0 +1,395 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +/** + * PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer +{ + /** + * Parent Shape Group Container + * + * @var PHPExcel_Shared_Escher_DgContainer_SpgrContainer + */ + private $_parent; + + /** + * Is this a group shape? + * + * @var boolean + */ + private $_spgr = false; + + /** + * Shape type + * + * @var int + */ + private $_spType; + + /** + * Shape flag + * + * @var int + */ + private $_spFlag; + + /** + * Shape index (usually group shape has index 0, and the rest: 1,2,3...) + * + * @var boolean + */ + private $_spId; + + /** + * Array of options + * + * @var array + */ + private $_OPT; + + /** + * Cell coordinates of upper-left corner of shape, e.g. 'A1' + * + * @var string + */ + private $_startCoordinates; + + /** + * Horizontal offset of upper-left corner of shape measured in 1/1024 of column width + * + * @var int + */ + private $_startOffsetX; + + /** + * Vertical offset of upper-left corner of shape measured in 1/256 of row height + * + * @var int + */ + private $_startOffsetY; + + /** + * Cell coordinates of bottom-right corner of shape, e.g. 'B2' + * + * @var string + */ + private $_endCoordinates; + + /** + * Horizontal offset of bottom-right corner of shape measured in 1/1024 of column width + * + * @var int + */ + private $_endOffsetX; + + /** + * Vertical offset of bottom-right corner of shape measured in 1/256 of row height + * + * @var int + */ + private $_endOffsetY; + + /** + * Set parent Shape Group Container + * + * @param PHPExcel_Shared_Escher_DgContainer_SpgrContainer $parent + */ + public function setParent($parent) + { + $this->_parent = $parent; + } + + /** + * Get the parent Shape Group Container + * + * @return PHPExcel_Shared_Escher_DgContainer_SpgrContainer + */ + public function getParent() + { + return $this->_parent; + } + + /** + * Set whether this is a group shape + * + * @param boolean $value + */ + public function setSpgr($value = false) + { + $this->_spgr = $value; + } + + /** + * Get whether this is a group shape + * + * @return boolean + */ + public function getSpgr() + { + return $this->_spgr; + } + + /** + * Set the shape type + * + * @param int $value + */ + public function setSpType($value) + { + $this->_spType = $value; + } + + /** + * Get the shape type + * + * @return int + */ + public function getSpType() + { + return $this->_spType; + } + + /** + * Set the shape flag + * + * @param int $value + */ + public function setSpFlag($value) + { + $this->_spFlag = $value; + } + + /** + * Get the shape flag + * + * @return int + */ + public function getSpFlag() + { + return $this->_spFlag; + } + + /** + * Set the shape index + * + * @param int $value + */ + public function setSpId($value) + { + $this->_spId = $value; + } + + /** + * Get the shape index + * + * @return int + */ + public function getSpId() + { + return $this->_spId; + } + + /** + * Set an option for the Shape Group Container + * + * @param int $property The number specifies the option + * @param mixed $value + */ + public function setOPT($property, $value) + { + $this->_OPT[$property] = $value; + } + + /** + * Get an option for the Shape Group Container + * + * @param int $property The number specifies the option + * @return mixed + */ + public function getOPT($property) + { + if (isset($this->_OPT[$property])) { + return $this->_OPT[$property]; + } + return null; + } + + /** + * Get the collection of options + * + * @return array + */ + public function getOPTCollection() + { + return $this->_OPT; + } + + /** + * Set cell coordinates of upper-left corner of shape + * + * @param string $value + */ + public function setStartCoordinates($value = 'A1') + { + $this->_startCoordinates = $value; + } + + /** + * Get cell coordinates of upper-left corner of shape + * + * @return string + */ + public function getStartCoordinates() + { + return $this->_startCoordinates; + } + + /** + * Set offset in x-direction of upper-left corner of shape measured in 1/1024 of column width + * + * @param int $startOffsetX + */ + public function setStartOffsetX($startOffsetX = 0) + { + $this->_startOffsetX = $startOffsetX; + } + + /** + * Get offset in x-direction of upper-left corner of shape measured in 1/1024 of column width + * + * @return int + */ + public function getStartOffsetX() + { + return $this->_startOffsetX; + } + + /** + * Set offset in y-direction of upper-left corner of shape measured in 1/256 of row height + * + * @param int $startOffsetY + */ + public function setStartOffsetY($startOffsetY = 0) + { + $this->_startOffsetY = $startOffsetY; + } + + /** + * Get offset in y-direction of upper-left corner of shape measured in 1/256 of row height + * + * @return int + */ + public function getStartOffsetY() + { + return $this->_startOffsetY; + } + + /** + * Set cell coordinates of bottom-right corner of shape + * + * @param string $value + */ + public function setEndCoordinates($value = 'A1') + { + $this->_endCoordinates = $value; + } + + /** + * Get cell coordinates of bottom-right corner of shape + * + * @return string + */ + public function getEndCoordinates() + { + return $this->_endCoordinates; + } + + /** + * Set offset in x-direction of bottom-right corner of shape measured in 1/1024 of column width + * + * @param int $startOffsetX + */ + public function setEndOffsetX($endOffsetX = 0) + { + $this->_endOffsetX = $endOffsetX; + } + + /** + * Get offset in x-direction of bottom-right corner of shape measured in 1/1024 of column width + * + * @return int + */ + public function getEndOffsetX() + { + return $this->_endOffsetX; + } + + /** + * Set offset in y-direction of bottom-right corner of shape measured in 1/256 of row height + * + * @param int $endOffsetY + */ + public function setEndOffsetY($endOffsetY = 0) + { + $this->_endOffsetY = $endOffsetY; + } + + /** + * Get offset in y-direction of bottom-right corner of shape measured in 1/256 of row height + * + * @return int + */ + public function getEndOffsetY() + { + return $this->_endOffsetY; + } + + /** + * Get the nesting level of this spContainer. This is the number of spgrContainers between this spContainer and + * the dgContainer. A value of 1 = immediately within first spgrContainer + * Higher nesting level occurs if and only if spContainer is part of a shape group + * + * @return int Nesting level + */ + public function getNestingLevel() + { + $nestingLevel = 0; + + $parent = $this->getParent(); + while ($parent instanceof PHPExcel_Shared_Escher_DgContainer_SpgrContainer) { + ++$nestingLevel; + $parent = $parent->getParent(); + } + + return $nestingLevel; + } +} diff --git a/admin/helpers/PHPExcel/Shared/Escher/DgContainer/SpgrContainer/index.html b/admin/helpers/PHPExcel/Shared/Escher/DgContainer/SpgrContainer/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Escher/DgContainer/SpgrContainer/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/Escher/DgContainer/index.html b/admin/helpers/PHPExcel/Shared/Escher/DgContainer/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Escher/DgContainer/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/Escher/DggContainer.php b/admin/helpers/PHPExcel/Shared/Escher/DggContainer.php new file mode 100644 index 00000000..26696ec9 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Escher/DggContainer.php @@ -0,0 +1,203 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +/** + * PHPExcel_Shared_Escher_DggContainer + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_Escher_DggContainer +{ + /** + * Maximum shape index of all shapes in all drawings increased by one + * + * @var int + */ + private $_spIdMax; + + /** + * Total number of drawings saved + * + * @var int + */ + private $_cDgSaved; + + /** + * Total number of shapes saved (including group shapes) + * + * @var int + */ + private $_cSpSaved; + + /** + * BLIP Store Container + * + * @var PHPExcel_Shared_Escher_DggContainer_BstoreContainer + */ + private $_bstoreContainer; + + /** + * Array of options for the drawing group + * + * @var array + */ + private $_OPT = array(); + + /** + * Array of identifier clusters containg information about the maximum shape identifiers + * + * @var array + */ + private $_IDCLs = array(); + + /** + * Get maximum shape index of all shapes in all drawings (plus one) + * + * @return int + */ + public function getSpIdMax() + { + return $this->_spIdMax; + } + + /** + * Set maximum shape index of all shapes in all drawings (plus one) + * + * @param int + */ + public function setSpIdMax($value) + { + $this->_spIdMax = $value; + } + + /** + * Get total number of drawings saved + * + * @return int + */ + public function getCDgSaved() + { + return $this->_cDgSaved; + } + + /** + * Set total number of drawings saved + * + * @param int + */ + public function setCDgSaved($value) + { + $this->_cDgSaved = $value; + } + + /** + * Get total number of shapes saved (including group shapes) + * + * @return int + */ + public function getCSpSaved() + { + return $this->_cSpSaved; + } + + /** + * Set total number of shapes saved (including group shapes) + * + * @param int + */ + public function setCSpSaved($value) + { + $this->_cSpSaved = $value; + } + + /** + * Get BLIP Store Container + * + * @return PHPExcel_Shared_Escher_DggContainer_BstoreContainer + */ + public function getBstoreContainer() + { + return $this->_bstoreContainer; + } + + /** + * Set BLIP Store Container + * + * @param PHPExcel_Shared_Escher_DggContainer_BstoreContainer $bstoreContainer + */ + public function setBstoreContainer($bstoreContainer) + { + $this->_bstoreContainer = $bstoreContainer; + } + + /** + * Set an option for the drawing group + * + * @param int $property The number specifies the option + * @param mixed $value + */ + public function setOPT($property, $value) + { + $this->_OPT[$property] = $value; + } + + /** + * Get an option for the drawing group + * + * @param int $property The number specifies the option + * @return mixed + */ + public function getOPT($property) + { + if (isset($this->_OPT[$property])) { + return $this->_OPT[$property]; + } + return null; + } + + /** + * Get identifier clusters + * + * @return array + */ + public function getIDCLs() + { + return $this->_IDCLs; + } + + /** + * Set identifier clusters. array(<drawingId> => <max shape id>, ...) + * + * @param array $pValue + */ + public function setIDCLs($pValue) + { + $this->_IDCLs = $pValue; + } +} diff --git a/admin/helpers/PHPExcel/Shared/Escher/DggContainer/BstoreContainer.php b/admin/helpers/PHPExcel/Shared/Escher/DggContainer/BstoreContainer.php new file mode 100644 index 00000000..fba2e73f --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Escher/DggContainer/BstoreContainer.php @@ -0,0 +1,65 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +/** + * PHPExcel_Shared_Escher_DggContainer_BstoreContainer + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_Escher_DggContainer_BstoreContainer +{ + /** + * BLIP Store Entries. Each of them holds one BLIP (Big Large Image or Picture) + * + * @var array + */ + private $_BSECollection = array(); + + /** + * Add a BLIP Store Entry + * + * @param PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE $BSE + */ + public function addBSE($BSE) + { + $this->_BSECollection[] = $BSE; + $BSE->setParent($this); + } + + /** + * Get the collection of BLIP Store Entries + * + * @return PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE[] + */ + public function getBSECollection() + { + return $this->_BSECollection; + } + +} diff --git a/admin/helpers/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE.php b/admin/helpers/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE.php new file mode 100644 index 00000000..418896a3 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE.php @@ -0,0 +1,120 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +/** + * PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE +{ + const BLIPTYPE_ERROR = 0x00; + const BLIPTYPE_UNKNOWN = 0x01; + const BLIPTYPE_EMF = 0x02; + const BLIPTYPE_WMF = 0x03; + const BLIPTYPE_PICT = 0x04; + const BLIPTYPE_JPEG = 0x05; + const BLIPTYPE_PNG = 0x06; + const BLIPTYPE_DIB = 0x07; + const BLIPTYPE_TIFF = 0x11; + const BLIPTYPE_CMYKJPEG = 0x12; + + /** + * The parent BLIP Store Entry Container + * + * @var PHPExcel_Shared_Escher_DggContainer_BstoreContainer + */ + private $_parent; + + /** + * The BLIP (Big Large Image or Picture) + * + * @var PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip + */ + private $_blip; + + /** + * The BLIP type + * + * @var int + */ + private $_blipType; + + /** + * Set parent BLIP Store Entry Container + * + * @param PHPExcel_Shared_Escher_DggContainer_BstoreContainer $parent + */ + public function setParent($parent) + { + $this->_parent = $parent; + } + + /** + * Get the BLIP + * + * @return PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip + */ + public function getBlip() + { + return $this->_blip; + } + + /** + * Set the BLIP + * + * @param PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip $blip + */ + public function setBlip($blip) + { + $this->_blip = $blip; + $blip->setParent($this); + } + + /** + * Get the BLIP type + * + * @return int + */ + public function getBlipType() + { + return $this->_blipType; + } + + /** + * Set the BLIP type + * + * @param int + */ + public function setBlipType($blipType) + { + $this->_blipType = $blipType; + } + +} diff --git a/admin/helpers/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/Blip.php b/admin/helpers/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/Blip.php new file mode 100644 index 00000000..d9cc2f5c --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/Blip.php @@ -0,0 +1,91 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +/** + * PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip + * + * @category PHPExcel + * @package PHPExcel_Shared_Escher + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip +{ + /** + * The parent BSE + * + * @var PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE + */ + private $_parent; + + /** + * Raw image data + * + * @var string + */ + private $_data; + + /** + * Get the raw image data + * + * @return string + */ + public function getData() + { + return $this->_data; + } + + /** + * Set the raw image data + * + * @param string + */ + public function setData($data) + { + $this->_data = $data; + } + + /** + * Set parent BSE + * + * @param PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE $parent + */ + public function setParent($parent) + { + $this->_parent = $parent; + } + + /** + * Get parent BSE + * + * @return PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE $parent + */ + public function getParent() + { + return $this->_parent; + } + +} diff --git a/admin/helpers/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/index.html b/admin/helpers/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/index.html b/admin/helpers/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/Escher/DggContainer/index.html b/admin/helpers/PHPExcel/Shared/Escher/DggContainer/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Escher/DggContainer/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/Escher/index.html b/admin/helpers/PHPExcel/Shared/Escher/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Escher/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/Excel5.php b/admin/helpers/PHPExcel/Shared/Excel5.php new file mode 100644 index 00000000..3caf675d --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Excel5.php @@ -0,0 +1,317 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +/** + * PHPExcel_Shared_Excel5 + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_Excel5 +{ + /** + * Get the width of a column in pixels. We use the relationship y = ceil(7x) where + * x is the width in intrinsic Excel units (measuring width in number of normal characters) + * This holds for Arial 10 + * + * @param PHPExcel_Worksheet $sheet The sheet + * @param string $col The column + * @return integer The width in pixels + */ + public static function sizeCol($sheet, $col = 'A') + { + // default font of the workbook + $font = $sheet->getParent()->getDefaultStyle()->getFont(); + + $columnDimensions = $sheet->getColumnDimensions(); + + // first find the true column width in pixels (uncollapsed and unhidden) + if ( isset($columnDimensions[$col]) and $columnDimensions[$col]->getWidth() != -1 ) { + + // then we have column dimension with explicit width + $columnDimension = $columnDimensions[$col]; + $width = $columnDimension->getWidth(); + $pixelWidth = PHPExcel_Shared_Drawing::cellDimensionToPixels($width, $font); + + } else if ($sheet->getDefaultColumnDimension()->getWidth() != -1) { + + // then we have default column dimension with explicit width + $defaultColumnDimension = $sheet->getDefaultColumnDimension(); + $width = $defaultColumnDimension->getWidth(); + $pixelWidth = PHPExcel_Shared_Drawing::cellDimensionToPixels($width, $font); + + } else { + + // we don't even have any default column dimension. Width depends on default font + $pixelWidth = PHPExcel_Shared_Font::getDefaultColumnWidthByFont($font, true); + } + + // now find the effective column width in pixels + if (isset($columnDimensions[$col]) and !$columnDimensions[$col]->getVisible()) { + $effectivePixelWidth = 0; + } else { + $effectivePixelWidth = $pixelWidth; + } + + return $effectivePixelWidth; + } + + /** + * Convert the height of a cell from user's units to pixels. By interpolation + * the relationship is: y = 4/3x. If the height hasn't been set by the user we + * use the default value. If the row is hidden we use a value of zero. + * + * @param PHPExcel_Worksheet $sheet The sheet + * @param integer $row The row index (1-based) + * @return integer The width in pixels + */ + public static function sizeRow($sheet, $row = 1) + { + // default font of the workbook + $font = $sheet->getParent()->getDefaultStyle()->getFont(); + + $rowDimensions = $sheet->getRowDimensions(); + + // first find the true row height in pixels (uncollapsed and unhidden) + if ( isset($rowDimensions[$row]) and $rowDimensions[$row]->getRowHeight() != -1) { + + // then we have a row dimension + $rowDimension = $rowDimensions[$row]; + $rowHeight = $rowDimension->getRowHeight(); + $pixelRowHeight = (int) ceil(4 * $rowHeight / 3); // here we assume Arial 10 + + } else if ($sheet->getDefaultRowDimension()->getRowHeight() != -1) { + + // then we have a default row dimension with explicit height + $defaultRowDimension = $sheet->getDefaultRowDimension(); + $rowHeight = $defaultRowDimension->getRowHeight(); + $pixelRowHeight = PHPExcel_Shared_Drawing::pointsToPixels($rowHeight); + + } else { + + // we don't even have any default row dimension. Height depends on default font + $pointRowHeight = PHPExcel_Shared_Font::getDefaultRowHeightByFont($font); + $pixelRowHeight = PHPExcel_Shared_Font::fontSizeToPixels($pointRowHeight); + + } + + // now find the effective row height in pixels + if ( isset($rowDimensions[$row]) and !$rowDimensions[$row]->getVisible() ) { + $effectivePixelRowHeight = 0; + } else { + $effectivePixelRowHeight = $pixelRowHeight; + } + + return $effectivePixelRowHeight; + } + + /** + * Get the horizontal distance in pixels between two anchors + * The distanceX is found as sum of all the spanning columns widths minus correction for the two offsets + * + * @param PHPExcel_Worksheet $sheet + * @param string $startColumn + * @param integer $startOffsetX Offset within start cell measured in 1/1024 of the cell width + * @param string $endColumn + * @param integer $endOffsetX Offset within end cell measured in 1/1024 of the cell width + * @return integer Horizontal measured in pixels + */ + public static function getDistanceX(PHPExcel_Worksheet $sheet, $startColumn = 'A', $startOffsetX = 0, $endColumn = 'A', $endOffsetX = 0) + { + $distanceX = 0; + + // add the widths of the spanning columns + $startColumnIndex = PHPExcel_Cell::columnIndexFromString($startColumn) - 1; // 1-based + $endColumnIndex = PHPExcel_Cell::columnIndexFromString($endColumn) - 1; // 1-based + for ($i = $startColumnIndex; $i <= $endColumnIndex; ++$i) { + $distanceX += self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($i)); + } + + // correct for offsetX in startcell + $distanceX -= (int) floor(self::sizeCol($sheet, $startColumn) * $startOffsetX / 1024); + + // correct for offsetX in endcell + $distanceX -= (int) floor(self::sizeCol($sheet, $endColumn) * (1 - $endOffsetX / 1024)); + + return $distanceX; + } + + /** + * Get the vertical distance in pixels between two anchors + * The distanceY is found as sum of all the spanning rows minus two offsets + * + * @param PHPExcel_Worksheet $sheet + * @param integer $startRow (1-based) + * @param integer $startOffsetY Offset within start cell measured in 1/256 of the cell height + * @param integer $endRow (1-based) + * @param integer $endOffsetY Offset within end cell measured in 1/256 of the cell height + * @return integer Vertical distance measured in pixels + */ + public static function getDistanceY(PHPExcel_Worksheet $sheet, $startRow = 1, $startOffsetY = 0, $endRow = 1, $endOffsetY = 0) + { + $distanceY = 0; + + // add the widths of the spanning rows + for ($row = $startRow; $row <= $endRow; ++$row) { + $distanceY += self::sizeRow($sheet, $row); + } + + // correct for offsetX in startcell + $distanceY -= (int) floor(self::sizeRow($sheet, $startRow) * $startOffsetY / 256); + + // correct for offsetX in endcell + $distanceY -= (int) floor(self::sizeRow($sheet, $endRow) * (1 - $endOffsetY / 256)); + + return $distanceY; + } + + /** + * Convert 1-cell anchor coordinates to 2-cell anchor coordinates + * This function is ported from PEAR Spreadsheet_Writer_Excel with small modifications + * + * Calculate the vertices that define the position of the image as required by + * the OBJ record. + * + * +------------+------------+ + * | A | B | + * +-----+------------+------------+ + * | |(x1,y1) | | + * | 1 |(A1)._______|______ | + * | | | | | + * | | | | | + * +-----+----| BITMAP |-----+ + * | | | | | + * | 2 | |______________. | + * | | | (B2)| + * | | | (x2,y2)| + * +---- +------------+------------+ + * + * Example of a bitmap that covers some of the area from cell A1 to cell B2. + * + * Based on the width and height of the bitmap we need to calculate 8 vars: + * $col_start, $row_start, $col_end, $row_end, $x1, $y1, $x2, $y2. + * The width and height of the cells are also variable and have to be taken into + * account. + * The values of $col_start and $row_start are passed in from the calling + * function. The values of $col_end and $row_end are calculated by subtracting + * the width and height of the bitmap from the width and height of the + * underlying cells. + * The vertices are expressed as a percentage of the underlying cell width as + * follows (rhs values are in pixels): + * + * x1 = X / W *1024 + * y1 = Y / H *256 + * x2 = (X-1) / W *1024 + * y2 = (Y-1) / H *256 + * + * Where: X is distance from the left side of the underlying cell + * Y is distance from the top of the underlying cell + * W is the width of the cell + * H is the height of the cell + * + * @param PHPExcel_Worksheet $sheet + * @param string $coordinates E.g. 'A1' + * @param integer $offsetX Horizontal offset in pixels + * @param integer $offsetY Vertical offset in pixels + * @param integer $width Width in pixels + * @param integer $height Height in pixels + * @return array + */ + public static function oneAnchor2twoAnchor($sheet, $coordinates, $offsetX, $offsetY, $width, $height) + { + list($column, $row) = PHPExcel_Cell::coordinateFromString($coordinates); + $col_start = PHPExcel_Cell::columnIndexFromString($column) - 1; + $row_start = $row - 1; + + $x1 = $offsetX; + $y1 = $offsetY; + + // Initialise end cell to the same as the start cell + $col_end = $col_start; // Col containing lower right corner of object + $row_end = $row_start; // Row containing bottom right corner of object + + // Zero the specified offset if greater than the cell dimensions + if ($x1 >= self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($col_start))) { + $x1 = 0; + } + if ($y1 >= self::sizeRow($sheet, $row_start + 1)) { + $y1 = 0; + } + + $width = $width + $x1 -1; + $height = $height + $y1 -1; + + // Subtract the underlying cell widths to find the end cell of the image + while ($width >= self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($col_end))) { + $width -= self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($col_end)); + ++$col_end; + } + + // Subtract the underlying cell heights to find the end cell of the image + while ($height >= self::sizeRow($sheet, $row_end + 1)) { + $height -= self::sizeRow($sheet, $row_end + 1); + ++$row_end; + } + + // Bitmap isn't allowed to start or finish in a hidden cell, i.e. a cell + // with zero height or width. + if (self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($col_start)) == 0) { + return; + } + if (self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($col_end)) == 0) { + return; + } + if (self::sizeRow($sheet, $row_start + 1) == 0) { + return; + } + if (self::sizeRow($sheet, $row_end + 1) == 0) { + return; + } + + // Convert the pixel values to the percentage value expected by Excel + $x1 = $x1 / self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($col_start)) * 1024; + $y1 = $y1 / self::sizeRow($sheet, $row_start + 1) * 256; + $x2 = ($width + 1) / self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($col_end)) * 1024; // Distance to right side of object + $y2 = ($height + 1) / self::sizeRow($sheet, $row_end + 1) * 256; // Distance to bottom of object + + $startCoordinates = PHPExcel_Cell::stringFromColumnIndex($col_start) . ($row_start + 1); + $endCoordinates = PHPExcel_Cell::stringFromColumnIndex($col_end) . ($row_end + 1); + + $twoAnchor = array( + 'startCoordinates' => $startCoordinates, + 'startOffsetX' => $x1, + 'startOffsetY' => $y1, + 'endCoordinates' => $endCoordinates, + 'endOffsetX' => $x2, + 'endOffsetY' => $y2, + ); + + return $twoAnchor; + } + +} diff --git a/admin/helpers/PHPExcel/Shared/File.php b/admin/helpers/PHPExcel/Shared/File.php new file mode 100644 index 00000000..52c9b979 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/File.php @@ -0,0 +1,178 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Shared_File + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_File +{ + /* + * Use Temp or File Upload Temp for temporary files + * + * @protected + * @var boolean + */ + protected static $_useUploadTempDirectory = FALSE; + + + /** + * Set the flag indicating whether the File Upload Temp directory should be used for temporary files + * + * @param boolean $useUploadTempDir Use File Upload Temporary directory (true or false) + */ + public static function setUseUploadTempDirectory($useUploadTempDir = FALSE) { + self::$_useUploadTempDirectory = (boolean) $useUploadTempDir; + } // function setUseUploadTempDirectory() + + + /** + * Get the flag indicating whether the File Upload Temp directory should be used for temporary files + * + * @return boolean Use File Upload Temporary directory (true or false) + */ + public static function getUseUploadTempDirectory() { + return self::$_useUploadTempDirectory; + } // function getUseUploadTempDirectory() + + + /** + * Verify if a file exists + * + * @param string $pFilename Filename + * @return bool + */ + public static function file_exists($pFilename) { + // Sick construction, but it seems that + // file_exists returns strange values when + // doing the original file_exists on ZIP archives... + if ( strtolower(substr($pFilename, 0, 3)) == 'zip' ) { + // Open ZIP file and verify if the file exists + $zipFile = substr($pFilename, 6, strpos($pFilename, '#') - 6); + $archiveFile = substr($pFilename, strpos($pFilename, '#') + 1); + + $zip = new ZipArchive(); + if ($zip->open($zipFile) === true) { + $returnValue = ($zip->getFromName($archiveFile) !== false); + $zip->close(); + return $returnValue; + } else { + return false; + } + } else { + // Regular file_exists + return file_exists($pFilename); + } + } + + /** + * Returns canonicalized absolute pathname, also for ZIP archives + * + * @param string $pFilename + * @return string + */ + public static function realpath($pFilename) { + // Returnvalue + $returnValue = ''; + + // Try using realpath() + if (file_exists($pFilename)) { + $returnValue = realpath($pFilename); + } + + // Found something? + if ($returnValue == '' || ($returnValue === NULL)) { + $pathArray = explode('/' , $pFilename); + while(in_array('..', $pathArray) && $pathArray[0] != '..') { + for ($i = 0; $i < count($pathArray); ++$i) { + if ($pathArray[$i] == '..' && $i > 0) { + unset($pathArray[$i]); + unset($pathArray[$i - 1]); + break; + } + } + } + $returnValue = implode('/', $pathArray); + } + + // Return + return $returnValue; + } + + /** + * Get the systems temporary directory. + * + * @return string + */ + public static function sys_get_temp_dir() + { + if (self::$_useUploadTempDirectory) { + // use upload-directory when defined to allow running on environments having very restricted + // open_basedir configs + if (ini_get('upload_tmp_dir') !== FALSE) { + if ($temp = ini_get('upload_tmp_dir')) { + if (file_exists($temp)) + return realpath($temp); + } + } + } + + // sys_get_temp_dir is only available since PHP 5.2.1 + // http://php.net/manual/en/function.sys-get-temp-dir.php#94119 + if ( !function_exists('sys_get_temp_dir')) { + if ($temp = getenv('TMP') ) { + if ((!empty($temp)) && (file_exists($temp))) { return realpath($temp); } + } + if ($temp = getenv('TEMP') ) { + if ((!empty($temp)) && (file_exists($temp))) { return realpath($temp); } + } + if ($temp = getenv('TMPDIR') ) { + if ((!empty($temp)) && (file_exists($temp))) { return realpath($temp); } + } + + // trick for creating a file in system's temporary dir + // without knowing the path of the system's temporary dir + $temp = tempnam(__FILE__, ''); + if (file_exists($temp)) { + unlink($temp); + return realpath(dirname($temp)); + } + + return null; + } + + // use ordinary built-in PHP function + // There should be no problem with the 5.2.4 Suhosin realpath() bug, because this line should only + // be called if we're running 5.2.1 or earlier + return realpath(sys_get_temp_dir()); + } + +} diff --git a/admin/helpers/PHPExcel/Shared/Font.php b/admin/helpers/PHPExcel/Shared/Font.php new file mode 100644 index 00000000..ee0702e4 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/Font.php @@ -0,0 +1,773 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Shared_Font + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_Font +{ + /* Methods for resolving autosize value */ + const AUTOSIZE_METHOD_APPROX = 'approx'; + const AUTOSIZE_METHOD_EXACT = 'exact'; + + private static $_autoSizeMethods = array( + self::AUTOSIZE_METHOD_APPROX, + self::AUTOSIZE_METHOD_EXACT, + ); + + /** Character set codes used by BIFF5-8 in Font records */ + const CHARSET_ANSI_LATIN = 0x00; + const CHARSET_SYSTEM_DEFAULT = 0x01; + const CHARSET_SYMBOL = 0x02; + const CHARSET_APPLE_ROMAN = 0x4D; + const CHARSET_ANSI_JAPANESE_SHIFTJIS = 0x80; + const CHARSET_ANSI_KOREAN_HANGUL = 0x81; + const CHARSET_ANSI_KOREAN_JOHAB = 0x82; + const CHARSET_ANSI_CHINESE_SIMIPLIFIED = 0x86; // gb2312 + const CHARSET_ANSI_CHINESE_TRADITIONAL = 0x88; // big5 + const CHARSET_ANSI_GREEK = 0xA1; + const CHARSET_ANSI_TURKISH = 0xA2; + const CHARSET_ANSI_VIETNAMESE = 0xA3; + const CHARSET_ANSI_HEBREW = 0xB1; + const CHARSET_ANSI_ARABIC = 0xB2; + const CHARSET_ANSI_BALTIC = 0xBA; + const CHARSET_ANSI_CYRILLIC = 0xCC; + const CHARSET_ANSI_THAI = 0xDD; + const CHARSET_ANSI_LATIN_II = 0xEE; + const CHARSET_OEM_LATIN_I = 0xFF; + + // XXX: Constants created! + /** Font filenames */ + const ARIAL = 'arial.ttf'; + const ARIAL_BOLD = 'arialbd.ttf'; + const ARIAL_ITALIC = 'ariali.ttf'; + const ARIAL_BOLD_ITALIC = 'arialbi.ttf'; + + const CALIBRI = 'CALIBRI.TTF'; + const CALIBRI_BOLD = 'CALIBRIB.TTF'; + const CALIBRI_ITALIC = 'CALIBRII.TTF'; + const CALIBRI_BOLD_ITALIC = 'CALIBRIZ.TTF'; + + const COMIC_SANS_MS = 'comic.ttf'; + const COMIC_SANS_MS_BOLD = 'comicbd.ttf'; + + const COURIER_NEW = 'cour.ttf'; + const COURIER_NEW_BOLD = 'courbd.ttf'; + const COURIER_NEW_ITALIC = 'couri.ttf'; + const COURIER_NEW_BOLD_ITALIC = 'courbi.ttf'; + + const GEORGIA = 'georgia.ttf'; + const GEORGIA_BOLD = 'georgiab.ttf'; + const GEORGIA_ITALIC = 'georgiai.ttf'; + const GEORGIA_BOLD_ITALIC = 'georgiaz.ttf'; + + const IMPACT = 'impact.ttf'; + + const LIBERATION_SANS = 'LiberationSans-Regular.ttf'; + const LIBERATION_SANS_BOLD = 'LiberationSans-Bold.ttf'; + const LIBERATION_SANS_ITALIC = 'LiberationSans-Italic.ttf'; + const LIBERATION_SANS_BOLD_ITALIC = 'LiberationSans-BoldItalic.ttf'; + + const LUCIDA_CONSOLE = 'lucon.ttf'; + const LUCIDA_SANS_UNICODE = 'l_10646.ttf'; + + const MICROSOFT_SANS_SERIF = 'micross.ttf'; + + const PALATINO_LINOTYPE = 'pala.ttf'; + const PALATINO_LINOTYPE_BOLD = 'palab.ttf'; + const PALATINO_LINOTYPE_ITALIC = 'palai.ttf'; + const PALATINO_LINOTYPE_BOLD_ITALIC = 'palabi.ttf'; + + const SYMBOL = 'symbol.ttf'; + + const TAHOMA = 'tahoma.ttf'; + const TAHOMA_BOLD = 'tahomabd.ttf'; + + const TIMES_NEW_ROMAN = 'times.ttf'; + const TIMES_NEW_ROMAN_BOLD = 'timesbd.ttf'; + const TIMES_NEW_ROMAN_ITALIC = 'timesi.ttf'; + const TIMES_NEW_ROMAN_BOLD_ITALIC = 'timesbi.ttf'; + + const TREBUCHET_MS = 'trebuc.ttf'; + const TREBUCHET_MS_BOLD = 'trebucbd.ttf'; + const TREBUCHET_MS_ITALIC = 'trebucit.ttf'; + const TREBUCHET_MS_BOLD_ITALIC = 'trebucbi.ttf'; + + const VERDANA = 'verdana.ttf'; + const VERDANA_BOLD = 'verdanab.ttf'; + const VERDANA_ITALIC = 'verdanai.ttf'; + const VERDANA_BOLD_ITALIC = 'verdanaz.ttf'; + + /** + * AutoSize method + * + * @var string + */ + private static $autoSizeMethod = self::AUTOSIZE_METHOD_APPROX; + + /** + * Path to folder containing TrueType font .ttf files + * + * @var string + */ + private static $trueTypeFontPath = null; + + /** + * How wide is a default column for a given default font and size? + * Empirical data found by inspecting real Excel files and reading off the pixel width + * in Microsoft Office Excel 2007. + * + * @var array + */ + public static $defaultColumnWidths = array( + 'Arial' => array( + 1 => array('px' => 24, 'width' => 12.00000000), + 2 => array('px' => 24, 'width' => 12.00000000), + 3 => array('px' => 32, 'width' => 10.66406250), + 4 => array('px' => 32, 'width' => 10.66406250), + 5 => array('px' => 40, 'width' => 10.00000000), + 6 => array('px' => 48, 'width' => 9.59765625), + 7 => array('px' => 48, 'width' => 9.59765625), + 8 => array('px' => 56, 'width' => 9.33203125), + 9 => array('px' => 64, 'width' => 9.14062500), + 10 => array('px' => 64, 'width' => 9.14062500), + ), + 'Calibri' => array( + 1 => array('px' => 24, 'width' => 12.00000000), + 2 => array('px' => 24, 'width' => 12.00000000), + 3 => array('px' => 32, 'width' => 10.66406250), + 4 => array('px' => 32, 'width' => 10.66406250), + 5 => array('px' => 40, 'width' => 10.00000000), + 6 => array('px' => 48, 'width' => 9.59765625), + 7 => array('px' => 48, 'width' => 9.59765625), + 8 => array('px' => 56, 'width' => 9.33203125), + 9 => array('px' => 56, 'width' => 9.33203125), + 10 => array('px' => 64, 'width' => 9.14062500), + 11 => array('px' => 64, 'width' => 9.14062500), + ), + 'Verdana' => array( + 1 => array('px' => 24, 'width' => 12.00000000), + 2 => array('px' => 24, 'width' => 12.00000000), + 3 => array('px' => 32, 'width' => 10.66406250), + 4 => array('px' => 32, 'width' => 10.66406250), + 5 => array('px' => 40, 'width' => 10.00000000), + 6 => array('px' => 48, 'width' => 9.59765625), + 7 => array('px' => 48, 'width' => 9.59765625), + 8 => array('px' => 64, 'width' => 9.14062500), + 9 => array('px' => 72, 'width' => 9.00000000), + 10 => array('px' => 72, 'width' => 9.00000000), + ), + ); + + /** + * Set autoSize method + * + * @param string $pValue + * @return boolean Success or failure + */ + public static function setAutoSizeMethod($pValue = self::AUTOSIZE_METHOD_APPROX) + { + if (!in_array($pValue,self::$_autoSizeMethods)) { + return FALSE; + } + self::$autoSizeMethod = $pValue; + + return TRUE; + } + + /** + * Get autoSize method + * + * @return string + */ + public static function getAutoSizeMethod() + { + return self::$autoSizeMethod; + } + + /** + * Set the path to the folder containing .ttf files. There should be a trailing slash. + * Typical locations on variout some platforms: + * <ul> + * <li>C:/Windows/Fonts/</li> + * <li>/usr/share/fonts/truetype/</li> + * <li>~/.fonts/</li> + * </ul> + * + * @param string $pValue + */ + public static function setTrueTypeFontPath($pValue = '') + { + self::$trueTypeFontPath = $pValue; + } + + /** + * Get the path to the folder containing .ttf files. + * + * @return string + */ + public static function getTrueTypeFontPath() + { + return self::$trueTypeFontPath; + } + + /** + * Calculate an (approximate) OpenXML column width, based on font size and text contained + * + * @param PHPExcel_Style_Font $font Font object + * @param PHPExcel_RichText|string $cellText Text to calculate width + * @param integer $rotation Rotation angle + * @param PHPExcel_Style_Font|NULL $defaultFont Font object + * @return integer Column width + */ + public static function calculateColumnWidth(PHPExcel_Style_Font $font, $cellText = '', $rotation = 0, PHPExcel_Style_Font $defaultFont = null) { + // If it is rich text, use plain text + if ($cellText instanceof PHPExcel_RichText) { + $cellText = $cellText->getPlainText(); + } + + // Special case if there are one or more newline characters ("\n") + if (strpos($cellText, "\n") !== false) { + $lineTexts = explode("\n", $cellText); + $lineWitdhs = array(); + foreach ($lineTexts as $lineText) { + $lineWidths[] = self::calculateColumnWidth($font, $lineText, $rotation = 0, $defaultFont); + } + return max($lineWidths); // width of longest line in cell + } + + // Try to get the exact text width in pixels + $approximate = self::$autoSizeMethod == self::AUTOSIZE_METHOD_APPROX; + if (!$approximate) { + $columnWidthAdjust = ceil(self::getTextWidthPixelsExact('n', $font, 0) * 1.07); + try { + // Width of text in pixels excl. padding + // and addition because Excel adds some padding, just use approx width of 'n' glyph + $columnWidth = self::getTextWidthPixelsExact($cellText, $font, $rotation) + $columnWidthAdjust; + } catch (PHPExcel_Exception $e) { + $approximate == true; + } + } + + if ($approximate) { + $columnWidthAdjust = self::getTextWidthPixelsApprox('n', $font, 0); + // Width of text in pixels excl. padding, approximation + // and addition because Excel adds some padding, just use approx width of 'n' glyph + $columnWidth = self::getTextWidthPixelsApprox($cellText, $font, $rotation) + $columnWidthAdjust; + } + + // Convert from pixel width to column width + $columnWidth = PHPExcel_Shared_Drawing::pixelsToCellDimension($columnWidth, $defaultFont); + + // Return + return round($columnWidth, 6); + } + + /** + * Get GD text width in pixels for a string of text in a certain font at a certain rotation angle + * + * @param string $text + * @param PHPExcel_Style_Font + * @param int $rotation + * @return int + * @throws PHPExcel_Exception + */ + public static function getTextWidthPixelsExact($text, PHPExcel_Style_Font $font, $rotation = 0) { + if (!function_exists('imagettfbbox')) { + throw new PHPExcel_Exception('GD library needs to be enabled'); + } + + // font size should really be supplied in pixels in GD2, + // but since GD2 seems to assume 72dpi, pixels and points are the same + $fontFile = self::getTrueTypeFontFileFromFont($font); + $textBox = imagettfbbox($font->getSize(), $rotation, $fontFile, $text); + + // Get corners positions + $lowerLeftCornerX = $textBox[0]; +// $lowerLeftCornerY = $textBox[1]; + $lowerRightCornerX = $textBox[2]; +// $lowerRightCornerY = $textBox[3]; + $upperRightCornerX = $textBox[4]; +// $upperRightCornerY = $textBox[5]; + $upperLeftCornerX = $textBox[6]; +// $upperLeftCornerY = $textBox[7]; + + // Consider the rotation when calculating the width + $textWidth = max($lowerRightCornerX - $upperLeftCornerX, $upperRightCornerX - $lowerLeftCornerX); + + return $textWidth; + } + + /** + * Get approximate width in pixels for a string of text in a certain font at a certain rotation angle + * + * @param string $columnText + * @param PHPExcel_Style_Font $font + * @param int $rotation + * @return int Text width in pixels (no padding added) + */ + public static function getTextWidthPixelsApprox($columnText, PHPExcel_Style_Font $font = null, $rotation = 0) + { + $fontName = $font->getName(); + $fontSize = $font->getSize(); + + // Calculate column width in pixels. We assume fixed glyph width. Result varies with font name and size. + switch ($fontName) { + case 'Calibri': + // value 8.26 was found via interpolation by inspecting real Excel files with Calibri 11 font. + $columnWidth = (int) (8.26 * PHPExcel_Shared_String::CountCharacters($columnText)); + $columnWidth = $columnWidth * $fontSize / 11; // extrapolate from font size + break; + + case 'Arial': + // value 7 was found via interpolation by inspecting real Excel files with Arial 10 font. +// $columnWidth = (int) (7 * PHPExcel_Shared_String::CountCharacters($columnText)); + // value 8 was set because of experience in different exports at Arial 10 font. + $columnWidth = (int) (8 * PHPExcel_Shared_String::CountCharacters($columnText)); + $columnWidth = $columnWidth * $fontSize / 10; // extrapolate from font size + break; + + case 'Verdana': + // value 8 was found via interpolation by inspecting real Excel files with Verdana 10 font. + $columnWidth = (int) (8 * PHPExcel_Shared_String::CountCharacters($columnText)); + $columnWidth = $columnWidth * $fontSize / 10; // extrapolate from font size + break; + + default: + // just assume Calibri + $columnWidth = (int) (8.26 * PHPExcel_Shared_String::CountCharacters($columnText)); + $columnWidth = $columnWidth * $fontSize / 11; // extrapolate from font size + break; + } + + // Calculate approximate rotated column width + if ($rotation !== 0) { + if ($rotation == -165) { + // stacked text + $columnWidth = 4; // approximation + } else { + // rotated text + $columnWidth = $columnWidth * cos(deg2rad($rotation)) + + $fontSize * abs(sin(deg2rad($rotation))) / 5; // approximation + } + } + + // pixel width is an integer + return (int) $columnWidth; + } + + /** + * Calculate an (approximate) pixel size, based on a font points size + * + * @param int $fontSizeInPoints Font size (in points) + * @return int Font size (in pixels) + */ + public static function fontSizeToPixels($fontSizeInPoints = 11) { + return (int) ((4 / 3) * $fontSizeInPoints); + } + + /** + * Calculate an (approximate) pixel size, based on inch size + * + * @param int $sizeInInch Font size (in inch) + * @return int Size (in pixels) + */ + public static function inchSizeToPixels($sizeInInch = 1) { + return ($sizeInInch * 96); + } + + /** + * Calculate an (approximate) pixel size, based on centimeter size + * + * @param int $sizeInCm Font size (in centimeters) + * @return int Size (in pixels) + */ + public static function centimeterSizeToPixels($sizeInCm = 1) { + return ($sizeInCm * 37.795275591); + } + + /** + * Returns the font path given the font + * + * @param PHPExcel_Style_Font + * @return string Path to TrueType font file + */ + public static function getTrueTypeFontFileFromFont($font) { + if (!file_exists(self::$trueTypeFontPath) || !is_dir(self::$trueTypeFontPath)) { + throw new PHPExcel_Exception('Valid directory to TrueType Font files not specified'); + } + + $name = $font->getName(); + $bold = $font->getBold(); + $italic = $font->getItalic(); + + // Check if we can map font to true type font file + switch ($name) { + case 'Arial': + $fontFile = ( + $bold ? ($italic ? self::ARIAL_BOLD_ITALIC : self::ARIAL_BOLD) + : ($italic ? self::ARIAL_ITALIC : self::ARIAL) + ); + break; + + case 'Calibri': + $fontFile = ( + $bold ? ($italic ? self::CALIBRI_BOLD_ITALIC : self::CALIBRI_BOLD) + : ($italic ? self::CALIBRI_ITALIC : self::CALIBRI) + ); + break; + + case 'Courier New': + $fontFile = ( + $bold ? ($italic ? self::COURIER_NEW_BOLD_ITALIC : self::COURIER_NEW_BOLD) + : ($italic ? self::COURIER_NEW_ITALIC : self::COURIER_NEW) + ); + break; + + case 'Comic Sans MS': + $fontFile = ( + $bold ? self::COMIC_SANS_MS_BOLD : self::COMIC_SANS_MS + ); + break; + + case 'Georgia': + $fontFile = ( + $bold ? ($italic ? self::GEORGIA_BOLD_ITALIC : self::GEORGIA_BOLD) + : ($italic ? self::GEORGIA_ITALIC : self::GEORGIA) + ); + break; + + case 'Impact': + $fontFile = self::IMPACT; + break; + + case 'Liberation Sans': + $fontFile = ( + $bold ? ($italic ? self::LIBERATION_SANS_BOLD_ITALIC : self::LIBERATION_SANS_BOLD) + : ($italic ? self::LIBERATION_SANS_ITALIC : self::LIBERATION_SANS) + ); + break; + + case 'Lucida Console': + $fontFile = self::LUCIDA_CONSOLE; + break; + + case 'Lucida Sans Unicode': + $fontFile = self::LUCIDA_SANS_UNICODE; + break; + + case 'Microsoft Sans Serif': + $fontFile = self::MICROSOFT_SANS_SERIF; + break; + + case 'Palatino Linotype': + $fontFile = ( + $bold ? ($italic ? self::PALATINO_LINOTYPE_BOLD_ITALIC : self::PALATINO_LINOTYPE_BOLD) + : ($italic ? self::PALATINO_LINOTYPE_ITALIC : self::PALATINO_LINOTYPE) + ); + break; + + case 'Symbol': + $fontFile = self::SYMBOL; + break; + + case 'Tahoma': + $fontFile = ( + $bold ? self::TAHOMA_BOLD : self::TAHOMA + ); + break; + + case 'Times New Roman': + $fontFile = ( + $bold ? ($italic ? self::TIMES_NEW_ROMAN_BOLD_ITALIC : self::TIMES_NEW_ROMAN_BOLD) + : ($italic ? self::TIMES_NEW_ROMAN_ITALIC : self::TIMES_NEW_ROMAN) + ); + break; + + case 'Trebuchet MS': + $fontFile = ( + $bold ? ($italic ? self::TREBUCHET_MS_BOLD_ITALIC : self::TREBUCHET_MS_BOLD) + : ($italic ? self::TREBUCHET_MS_ITALIC : self::TREBUCHET_MS) + ); + break; + + case 'Verdana': + $fontFile = ( + $bold ? ($italic ? self::VERDANA_BOLD_ITALIC : self::VERDANA_BOLD) + : ($italic ? self::VERDANA_ITALIC : self::VERDANA) + ); + break; + + default: + throw new PHPExcel_Exception('Unknown font name "'. $name .'". Cannot map to TrueType font file'); + break; + } + + $fontFile = self::$trueTypeFontPath . $fontFile; + + // Check if file actually exists + if (!file_exists($fontFile)) { + throw New PHPExcel_Exception('TrueType Font file not found'); + } + + return $fontFile; + } + + /** + * Returns the associated charset for the font name. + * + * @param string $name Font name + * @return int Character set code + */ + public static function getCharsetFromFontName($name) + { + switch ($name) { + // Add more cases. Check FONT records in real Excel files. + case 'EucrosiaUPC': return self::CHARSET_ANSI_THAI; + case 'Wingdings': return self::CHARSET_SYMBOL; + case 'Wingdings 2': return self::CHARSET_SYMBOL; + case 'Wingdings 3': return self::CHARSET_SYMBOL; + default: return self::CHARSET_ANSI_LATIN; + } + } + + /** + * Get the effective column width for columns without a column dimension or column with width -1 + * For example, for Calibri 11 this is 9.140625 (64 px) + * + * @param PHPExcel_Style_Font $font The workbooks default font + * @param boolean $pPixels true = return column width in pixels, false = return in OOXML units + * @return mixed Column width + */ + public static function getDefaultColumnWidthByFont(PHPExcel_Style_Font $font, $pPixels = false) + { + if (isset(self::$defaultColumnWidths[$font->getName()][$font->getSize()])) { + // Exact width can be determined + $columnWidth = $pPixels ? + self::$defaultColumnWidths[$font->getName()][$font->getSize()]['px'] + : self::$defaultColumnWidths[$font->getName()][$font->getSize()]['width']; + + } else { + // We don't have data for this particular font and size, use approximation by + // extrapolating from Calibri 11 + $columnWidth = $pPixels ? + self::$defaultColumnWidths['Calibri'][11]['px'] + : self::$defaultColumnWidths['Calibri'][11]['width']; + $columnWidth = $columnWidth * $font->getSize() / 11; + + // Round pixels to closest integer + if ($pPixels) { + $columnWidth = (int) round($columnWidth); + } + } + + return $columnWidth; + } + + /** + * Get the effective row height for rows without a row dimension or rows with height -1 + * For example, for Calibri 11 this is 15 points + * + * @param PHPExcel_Style_Font $font The workbooks default font + * @return float Row height in points + */ + public static function getDefaultRowHeightByFont(PHPExcel_Style_Font $font) + { + switch ($font->getName()) { + case 'Arial': + switch ($font->getSize()) { + case 10: + // inspection of Arial 10 workbook says 12.75pt ~17px + $rowHeight = 12.75; + break; + + case 9: + // inspection of Arial 9 workbook says 12.00pt ~16px + $rowHeight = 12; + break; + + case 8: + // inspection of Arial 8 workbook says 11.25pt ~15px + $rowHeight = 11.25; + break; + + case 7: + // inspection of Arial 7 workbook says 9.00pt ~12px + $rowHeight = 9; + break; + + case 6: + case 5: + // inspection of Arial 5,6 workbook says 8.25pt ~11px + $rowHeight = 8.25; + break; + + case 4: + // inspection of Arial 4 workbook says 6.75pt ~9px + $rowHeight = 6.75; + break; + + case 3: + // inspection of Arial 3 workbook says 6.00pt ~8px + $rowHeight = 6; + break; + + case 2: + case 1: + // inspection of Arial 1,2 workbook says 5.25pt ~7px + $rowHeight = 5.25; + break; + + default: + // use Arial 10 workbook as an approximation, extrapolation + $rowHeight = 12.75 * $font->getSize() / 10; + break; + } + break; + + case 'Calibri': + switch ($font->getSize()) { + case 11: + // inspection of Calibri 11 workbook says 15.00pt ~20px + $rowHeight = 15; + break; + + case 10: + // inspection of Calibri 10 workbook says 12.75pt ~17px + $rowHeight = 12.75; + break; + + case 9: + // inspection of Calibri 9 workbook says 12.00pt ~16px + $rowHeight = 12; + break; + + case 8: + // inspection of Calibri 8 workbook says 11.25pt ~15px + $rowHeight = 11.25; + break; + + case 7: + // inspection of Calibri 7 workbook says 9.00pt ~12px + $rowHeight = 9; + break; + + case 6: + case 5: + // inspection of Calibri 5,6 workbook says 8.25pt ~11px + $rowHeight = 8.25; + break; + + case 4: + // inspection of Calibri 4 workbook says 6.75pt ~9px + $rowHeight = 6.75; + break; + + case 3: + // inspection of Calibri 3 workbook says 6.00pt ~8px + $rowHeight = 6.00; + break; + + case 2: + case 1: + // inspection of Calibri 1,2 workbook says 5.25pt ~7px + $rowHeight = 5.25; + break; + + default: + // use Calibri 11 workbook as an approximation, extrapolation + $rowHeight = 15 * $font->getSize() / 11; + break; + } + break; + + case 'Verdana': + switch ($font->getSize()) { + case 10: + // inspection of Verdana 10 workbook says 12.75pt ~17px + $rowHeight = 12.75; + break; + + case 9: + // inspection of Verdana 9 workbook says 11.25pt ~15px + $rowHeight = 11.25; + break; + + case 8: + // inspection of Verdana 8 workbook says 10.50pt ~14px + $rowHeight = 10.50; + break; + + case 7: + // inspection of Verdana 7 workbook says 9.00pt ~12px + $rowHeight = 9.00; + break; + + case 6: + case 5: + // inspection of Verdana 5,6 workbook says 8.25pt ~11px + $rowHeight = 8.25; + break; + + case 4: + // inspection of Verdana 4 workbook says 6.75pt ~9px + $rowHeight = 6.75; + break; + + case 3: + // inspection of Verdana 3 workbook says 6.00pt ~8px + $rowHeight = 6; + break; + + case 2: + case 1: + // inspection of Verdana 1,2 workbook says 5.25pt ~7px + $rowHeight = 5.25; + break; + + default: + // use Verdana 10 workbook as an approximation, extrapolation + $rowHeight = 12.75 * $font->getSize() / 10; + break; + } + break; + + default: + // just use Calibri as an approximation + $rowHeight = 15 * $font->getSize() / 11; + break; + } + + return $rowHeight; + } + +} diff --git a/admin/helpers/PHPExcel/Shared/JAMA/CHANGELOG.TXT b/admin/helpers/PHPExcel/Shared/JAMA/CHANGELOG.TXT new file mode 100644 index 00000000..1c18a5da --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/JAMA/CHANGELOG.TXT @@ -0,0 +1,16 @@ +Mar 1, 2005 11:15 AST by PM + ++ For consistency, renamed Math.php to Maths.java, utils to util, + tests to test, docs to doc - + ++ Removed conditional logic from top of Matrix class. + ++ Switched to using hypo function in Maths.php for all php-hypot calls. + NOTE TO SELF: Need to make sure that all decompositions have been + switched over to using the bundled hypo. + +Feb 25, 2005 at 10:00 AST by PM + ++ Recommend using simpler Error.php instead of JAMA_Error.php but + can be persuaded otherwise. + diff --git a/admin/helpers/PHPExcel/Shared/JAMA/CholeskyDecomposition.php b/admin/helpers/PHPExcel/Shared/JAMA/CholeskyDecomposition.php new file mode 100644 index 00000000..cfbaa53b --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/JAMA/CholeskyDecomposition.php @@ -0,0 +1,149 @@ +<?php +/** + * @package JAMA + * + * Cholesky decomposition class + * + * For a symmetric, positive definite matrix A, the Cholesky decomposition + * is an lower triangular matrix L so that A = L*L'. + * + * If the matrix is not symmetric or positive definite, the constructor + * returns a partial decomposition and sets an internal flag that may + * be queried by the isSPD() method. + * + * @author Paul Meagher + * @author Michael Bommarito + * @version 1.2 + */ +class CholeskyDecomposition { + + /** + * Decomposition storage + * @var array + * @access private + */ + private $L = array(); + + /** + * Matrix row and column dimension + * @var int + * @access private + */ + private $m; + + /** + * Symmetric positive definite flag + * @var boolean + * @access private + */ + private $isspd = true; + + + /** + * CholeskyDecomposition + * + * Class constructor - decomposes symmetric positive definite matrix + * @param mixed Matrix square symmetric positive definite matrix + */ + public function __construct($A = null) { + if ($A instanceof Matrix) { + $this->L = $A->getArray(); + $this->m = $A->getRowDimension(); + + for($i = 0; $i < $this->m; ++$i) { + for($j = $i; $j < $this->m; ++$j) { + for($sum = $this->L[$i][$j], $k = $i - 1; $k >= 0; --$k) { + $sum -= $this->L[$i][$k] * $this->L[$j][$k]; + } + if ($i == $j) { + if ($sum >= 0) { + $this->L[$i][$i] = sqrt($sum); + } else { + $this->isspd = false; + } + } else { + if ($this->L[$i][$i] != 0) { + $this->L[$j][$i] = $sum / $this->L[$i][$i]; + } + } + } + + for ($k = $i+1; $k < $this->m; ++$k) { + $this->L[$i][$k] = 0.0; + } + } + } else { + throw new PHPExcel_Calculation_Exception(JAMAError(ArgumentTypeException)); + } + } // function __construct() + + + /** + * Is the matrix symmetric and positive definite? + * + * @return boolean + */ + public function isSPD() { + return $this->isspd; + } // function isSPD() + + + /** + * getL + * + * Return triangular factor. + * @return Matrix Lower triangular matrix + */ + public function getL() { + return new Matrix($this->L); + } // function getL() + + + /** + * Solve A*X = B + * + * @param $B Row-equal matrix + * @return Matrix L * L' * X = B + */ + public function solve($B = null) { + if ($B instanceof Matrix) { + if ($B->getRowDimension() == $this->m) { + if ($this->isspd) { + $X = $B->getArrayCopy(); + $nx = $B->getColumnDimension(); + + for ($k = 0; $k < $this->m; ++$k) { + for ($i = $k + 1; $i < $this->m; ++$i) { + for ($j = 0; $j < $nx; ++$j) { + $X[$i][$j] -= $X[$k][$j] * $this->L[$i][$k]; + } + } + for ($j = 0; $j < $nx; ++$j) { + $X[$k][$j] /= $this->L[$k][$k]; + } + } + + for ($k = $this->m - 1; $k >= 0; --$k) { + for ($j = 0; $j < $nx; ++$j) { + $X[$k][$j] /= $this->L[$k][$k]; + } + for ($i = 0; $i < $k; ++$i) { + for ($j = 0; $j < $nx; ++$j) { + $X[$i][$j] -= $X[$k][$j] * $this->L[$k][$i]; + } + } + } + + return new Matrix($X, $this->m, $nx); + } else { + throw new PHPExcel_Calculation_Exception(JAMAError(MatrixSPDException)); + } + } else { + throw new PHPExcel_Calculation_Exception(JAMAError(MatrixDimensionException)); + } + } else { + throw new PHPExcel_Calculation_Exception(JAMAError(ArgumentTypeException)); + } + } // function solve() + +} // class CholeskyDecomposition diff --git a/admin/helpers/PHPExcel/Shared/JAMA/EigenvalueDecomposition.php b/admin/helpers/PHPExcel/Shared/JAMA/EigenvalueDecomposition.php new file mode 100644 index 00000000..2a696d00 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/JAMA/EigenvalueDecomposition.php @@ -0,0 +1,862 @@ +<?php +/** + * @package JAMA + * + * Class to obtain eigenvalues and eigenvectors of a real matrix. + * + * If A is symmetric, then A = V*D*V' where the eigenvalue matrix D + * is diagonal and the eigenvector matrix V is orthogonal (i.e. + * A = V.times(D.times(V.transpose())) and V.times(V.transpose()) + * equals the identity matrix). + * + * If A is not symmetric, then the eigenvalue matrix D is block diagonal + * with the real eigenvalues in 1-by-1 blocks and any complex eigenvalues, + * lambda + i*mu, in 2-by-2 blocks, [lambda, mu; -mu, lambda]. The + * columns of V represent the eigenvectors in the sense that A*V = V*D, + * i.e. A.times(V) equals V.times(D). The matrix V may be badly + * conditioned, or even singular, so the validity of the equation + * A = V*D*inverse(V) depends upon V.cond(). + * + * @author Paul Meagher + * @license PHP v3.0 + * @version 1.1 + */ +class EigenvalueDecomposition { + + /** + * Row and column dimension (square matrix). + * @var int + */ + private $n; + + /** + * Internal symmetry flag. + * @var int + */ + private $issymmetric; + + /** + * Arrays for internal storage of eigenvalues. + * @var array + */ + private $d = array(); + private $e = array(); + + /** + * Array for internal storage of eigenvectors. + * @var array + */ + private $V = array(); + + /** + * Array for internal storage of nonsymmetric Hessenberg form. + * @var array + */ + private $H = array(); + + /** + * Working storage for nonsymmetric algorithm. + * @var array + */ + private $ort; + + /** + * Used for complex scalar division. + * @var float + */ + private $cdivr; + private $cdivi; + + + /** + * Symmetric Householder reduction to tridiagonal form. + * + * @access private + */ + private function tred2 () { + // This is derived from the Algol procedures tred2 by + // Bowdler, Martin, Reinsch, and Wilkinson, Handbook for + // Auto. Comp., Vol.ii-Linear Algebra, and the corresponding + // Fortran subroutine in EISPACK. + $this->d = $this->V[$this->n-1]; + // Householder reduction to tridiagonal form. + for ($i = $this->n-1; $i > 0; --$i) { + $i_ = $i -1; + // Scale to avoid under/overflow. + $h = $scale = 0.0; + $scale += array_sum(array_map(abs, $this->d)); + if ($scale == 0.0) { + $this->e[$i] = $this->d[$i_]; + $this->d = array_slice($this->V[$i_], 0, $i_); + for ($j = 0; $j < $i; ++$j) { + $this->V[$j][$i] = $this->V[$i][$j] = 0.0; + } + } else { + // Generate Householder vector. + for ($k = 0; $k < $i; ++$k) { + $this->d[$k] /= $scale; + $h += pow($this->d[$k], 2); + } + $f = $this->d[$i_]; + $g = sqrt($h); + if ($f > 0) { + $g = -$g; + } + $this->e[$i] = $scale * $g; + $h = $h - $f * $g; + $this->d[$i_] = $f - $g; + for ($j = 0; $j < $i; ++$j) { + $this->e[$j] = 0.0; + } + // Apply similarity transformation to remaining columns. + for ($j = 0; $j < $i; ++$j) { + $f = $this->d[$j]; + $this->V[$j][$i] = $f; + $g = $this->e[$j] + $this->V[$j][$j] * $f; + for ($k = $j+1; $k <= $i_; ++$k) { + $g += $this->V[$k][$j] * $this->d[$k]; + $this->e[$k] += $this->V[$k][$j] * $f; + } + $this->e[$j] = $g; + } + $f = 0.0; + for ($j = 0; $j < $i; ++$j) { + $this->e[$j] /= $h; + $f += $this->e[$j] * $this->d[$j]; + } + $hh = $f / (2 * $h); + for ($j=0; $j < $i; ++$j) { + $this->e[$j] -= $hh * $this->d[$j]; + } + for ($j = 0; $j < $i; ++$j) { + $f = $this->d[$j]; + $g = $this->e[$j]; + for ($k = $j; $k <= $i_; ++$k) { + $this->V[$k][$j] -= ($f * $this->e[$k] + $g * $this->d[$k]); + } + $this->d[$j] = $this->V[$i-1][$j]; + $this->V[$i][$j] = 0.0; + } + } + $this->d[$i] = $h; + } + + // Accumulate transformations. + for ($i = 0; $i < $this->n-1; ++$i) { + $this->V[$this->n-1][$i] = $this->V[$i][$i]; + $this->V[$i][$i] = 1.0; + $h = $this->d[$i+1]; + if ($h != 0.0) { + for ($k = 0; $k <= $i; ++$k) { + $this->d[$k] = $this->V[$k][$i+1] / $h; + } + for ($j = 0; $j <= $i; ++$j) { + $g = 0.0; + for ($k = 0; $k <= $i; ++$k) { + $g += $this->V[$k][$i+1] * $this->V[$k][$j]; + } + for ($k = 0; $k <= $i; ++$k) { + $this->V[$k][$j] -= $g * $this->d[$k]; + } + } + } + for ($k = 0; $k <= $i; ++$k) { + $this->V[$k][$i+1] = 0.0; + } + } + + $this->d = $this->V[$this->n-1]; + $this->V[$this->n-1] = array_fill(0, $j, 0.0); + $this->V[$this->n-1][$this->n-1] = 1.0; + $this->e[0] = 0.0; + } + + + /** + * Symmetric tridiagonal QL algorithm. + * + * This is derived from the Algol procedures tql2, by + * Bowdler, Martin, Reinsch, and Wilkinson, Handbook for + * Auto. Comp., Vol.ii-Linear Algebra, and the corresponding + * Fortran subroutine in EISPACK. + * + * @access private + */ + private function tql2() { + for ($i = 1; $i < $this->n; ++$i) { + $this->e[$i-1] = $this->e[$i]; + } + $this->e[$this->n-1] = 0.0; + $f = 0.0; + $tst1 = 0.0; + $eps = pow(2.0,-52.0); + + for ($l = 0; $l < $this->n; ++$l) { + // Find small subdiagonal element + $tst1 = max($tst1, abs($this->d[$l]) + abs($this->e[$l])); + $m = $l; + while ($m < $this->n) { + if (abs($this->e[$m]) <= $eps * $tst1) + break; + ++$m; + } + // If m == l, $this->d[l] is an eigenvalue, + // otherwise, iterate. + if ($m > $l) { + $iter = 0; + do { + // Could check iteration count here. + $iter += 1; + // Compute implicit shift + $g = $this->d[$l]; + $p = ($this->d[$l+1] - $g) / (2.0 * $this->e[$l]); + $r = hypo($p, 1.0); + if ($p < 0) + $r *= -1; + $this->d[$l] = $this->e[$l] / ($p + $r); + $this->d[$l+1] = $this->e[$l] * ($p + $r); + $dl1 = $this->d[$l+1]; + $h = $g - $this->d[$l]; + for ($i = $l + 2; $i < $this->n; ++$i) + $this->d[$i] -= $h; + $f += $h; + // Implicit QL transformation. + $p = $this->d[$m]; + $c = 1.0; + $c2 = $c3 = $c; + $el1 = $this->e[$l + 1]; + $s = $s2 = 0.0; + for ($i = $m-1; $i >= $l; --$i) { + $c3 = $c2; + $c2 = $c; + $s2 = $s; + $g = $c * $this->e[$i]; + $h = $c * $p; + $r = hypo($p, $this->e[$i]); + $this->e[$i+1] = $s * $r; + $s = $this->e[$i] / $r; + $c = $p / $r; + $p = $c * $this->d[$i] - $s * $g; + $this->d[$i+1] = $h + $s * ($c * $g + $s * $this->d[$i]); + // Accumulate transformation. + for ($k = 0; $k < $this->n; ++$k) { + $h = $this->V[$k][$i+1]; + $this->V[$k][$i+1] = $s * $this->V[$k][$i] + $c * $h; + $this->V[$k][$i] = $c * $this->V[$k][$i] - $s * $h; + } + } + $p = -$s * $s2 * $c3 * $el1 * $this->e[$l] / $dl1; + $this->e[$l] = $s * $p; + $this->d[$l] = $c * $p; + // Check for convergence. + } while (abs($this->e[$l]) > $eps * $tst1); + } + $this->d[$l] = $this->d[$l] + $f; + $this->e[$l] = 0.0; + } + + // Sort eigenvalues and corresponding vectors. + for ($i = 0; $i < $this->n - 1; ++$i) { + $k = $i; + $p = $this->d[$i]; + for ($j = $i+1; $j < $this->n; ++$j) { + if ($this->d[$j] < $p) { + $k = $j; + $p = $this->d[$j]; + } + } + if ($k != $i) { + $this->d[$k] = $this->d[$i]; + $this->d[$i] = $p; + for ($j = 0; $j < $this->n; ++$j) { + $p = $this->V[$j][$i]; + $this->V[$j][$i] = $this->V[$j][$k]; + $this->V[$j][$k] = $p; + } + } + } + } + + + /** + * Nonsymmetric reduction to Hessenberg form. + * + * This is derived from the Algol procedures orthes and ortran, + * by Martin and Wilkinson, Handbook for Auto. Comp., + * Vol.ii-Linear Algebra, and the corresponding + * Fortran subroutines in EISPACK. + * + * @access private + */ + private function orthes () { + $low = 0; + $high = $this->n-1; + + for ($m = $low+1; $m <= $high-1; ++$m) { + // Scale column. + $scale = 0.0; + for ($i = $m; $i <= $high; ++$i) { + $scale = $scale + abs($this->H[$i][$m-1]); + } + if ($scale != 0.0) { + // Compute Householder transformation. + $h = 0.0; + for ($i = $high; $i >= $m; --$i) { + $this->ort[$i] = $this->H[$i][$m-1] / $scale; + $h += $this->ort[$i] * $this->ort[$i]; + } + $g = sqrt($h); + if ($this->ort[$m] > 0) { + $g *= -1; + } + $h -= $this->ort[$m] * $g; + $this->ort[$m] -= $g; + // Apply Householder similarity transformation + // H = (I -u * u' / h) * H * (I -u * u') / h) + for ($j = $m; $j < $this->n; ++$j) { + $f = 0.0; + for ($i = $high; $i >= $m; --$i) { + $f += $this->ort[$i] * $this->H[$i][$j]; + } + $f /= $h; + for ($i = $m; $i <= $high; ++$i) { + $this->H[$i][$j] -= $f * $this->ort[$i]; + } + } + for ($i = 0; $i <= $high; ++$i) { + $f = 0.0; + for ($j = $high; $j >= $m; --$j) { + $f += $this->ort[$j] * $this->H[$i][$j]; + } + $f = $f / $h; + for ($j = $m; $j <= $high; ++$j) { + $this->H[$i][$j] -= $f * $this->ort[$j]; + } + } + $this->ort[$m] = $scale * $this->ort[$m]; + $this->H[$m][$m-1] = $scale * $g; + } + } + + // Accumulate transformations (Algol's ortran). + for ($i = 0; $i < $this->n; ++$i) { + for ($j = 0; $j < $this->n; ++$j) { + $this->V[$i][$j] = ($i == $j ? 1.0 : 0.0); + } + } + for ($m = $high-1; $m >= $low+1; --$m) { + if ($this->H[$m][$m-1] != 0.0) { + for ($i = $m+1; $i <= $high; ++$i) { + $this->ort[$i] = $this->H[$i][$m-1]; + } + for ($j = $m; $j <= $high; ++$j) { + $g = 0.0; + for ($i = $m; $i <= $high; ++$i) { + $g += $this->ort[$i] * $this->V[$i][$j]; + } + // Double division avoids possible underflow + $g = ($g / $this->ort[$m]) / $this->H[$m][$m-1]; + for ($i = $m; $i <= $high; ++$i) { + $this->V[$i][$j] += $g * $this->ort[$i]; + } + } + } + } + } + + + /** + * Performs complex division. + * + * @access private + */ + private function cdiv($xr, $xi, $yr, $yi) { + if (abs($yr) > abs($yi)) { + $r = $yi / $yr; + $d = $yr + $r * $yi; + $this->cdivr = ($xr + $r * $xi) / $d; + $this->cdivi = ($xi - $r * $xr) / $d; + } else { + $r = $yr / $yi; + $d = $yi + $r * $yr; + $this->cdivr = ($r * $xr + $xi) / $d; + $this->cdivi = ($r * $xi - $xr) / $d; + } + } + + + /** + * Nonsymmetric reduction from Hessenberg to real Schur form. + * + * Code is derived from the Algol procedure hqr2, + * by Martin and Wilkinson, Handbook for Auto. Comp., + * Vol.ii-Linear Algebra, and the corresponding + * Fortran subroutine in EISPACK. + * + * @access private + */ + private function hqr2 () { + // Initialize + $nn = $this->n; + $n = $nn - 1; + $low = 0; + $high = $nn - 1; + $eps = pow(2.0, -52.0); + $exshift = 0.0; + $p = $q = $r = $s = $z = 0; + // Store roots isolated by balanc and compute matrix norm + $norm = 0.0; + + for ($i = 0; $i < $nn; ++$i) { + if (($i < $low) OR ($i > $high)) { + $this->d[$i] = $this->H[$i][$i]; + $this->e[$i] = 0.0; + } + for ($j = max($i-1, 0); $j < $nn; ++$j) { + $norm = $norm + abs($this->H[$i][$j]); + } + } + + // Outer loop over eigenvalue index + $iter = 0; + while ($n >= $low) { + // Look for single small sub-diagonal element + $l = $n; + while ($l > $low) { + $s = abs($this->H[$l-1][$l-1]) + abs($this->H[$l][$l]); + if ($s == 0.0) { + $s = $norm; + } + if (abs($this->H[$l][$l-1]) < $eps * $s) { + break; + } + --$l; + } + // Check for convergence + // One root found + if ($l == $n) { + $this->H[$n][$n] = $this->H[$n][$n] + $exshift; + $this->d[$n] = $this->H[$n][$n]; + $this->e[$n] = 0.0; + --$n; + $iter = 0; + // Two roots found + } else if ($l == $n-1) { + $w = $this->H[$n][$n-1] * $this->H[$n-1][$n]; + $p = ($this->H[$n-1][$n-1] - $this->H[$n][$n]) / 2.0; + $q = $p * $p + $w; + $z = sqrt(abs($q)); + $this->H[$n][$n] = $this->H[$n][$n] + $exshift; + $this->H[$n-1][$n-1] = $this->H[$n-1][$n-1] + $exshift; + $x = $this->H[$n][$n]; + // Real pair + if ($q >= 0) { + if ($p >= 0) { + $z = $p + $z; + } else { + $z = $p - $z; + } + $this->d[$n-1] = $x + $z; + $this->d[$n] = $this->d[$n-1]; + if ($z != 0.0) { + $this->d[$n] = $x - $w / $z; + } + $this->e[$n-1] = 0.0; + $this->e[$n] = 0.0; + $x = $this->H[$n][$n-1]; + $s = abs($x) + abs($z); + $p = $x / $s; + $q = $z / $s; + $r = sqrt($p * $p + $q * $q); + $p = $p / $r; + $q = $q / $r; + // Row modification + for ($j = $n-1; $j < $nn; ++$j) { + $z = $this->H[$n-1][$j]; + $this->H[$n-1][$j] = $q * $z + $p * $this->H[$n][$j]; + $this->H[$n][$j] = $q * $this->H[$n][$j] - $p * $z; + } + // Column modification + for ($i = 0; $i <= n; ++$i) { + $z = $this->H[$i][$n-1]; + $this->H[$i][$n-1] = $q * $z + $p * $this->H[$i][$n]; + $this->H[$i][$n] = $q * $this->H[$i][$n] - $p * $z; + } + // Accumulate transformations + for ($i = $low; $i <= $high; ++$i) { + $z = $this->V[$i][$n-1]; + $this->V[$i][$n-1] = $q * $z + $p * $this->V[$i][$n]; + $this->V[$i][$n] = $q * $this->V[$i][$n] - $p * $z; + } + // Complex pair + } else { + $this->d[$n-1] = $x + $p; + $this->d[$n] = $x + $p; + $this->e[$n-1] = $z; + $this->e[$n] = -$z; + } + $n = $n - 2; + $iter = 0; + // No convergence yet + } else { + // Form shift + $x = $this->H[$n][$n]; + $y = 0.0; + $w = 0.0; + if ($l < $n) { + $y = $this->H[$n-1][$n-1]; + $w = $this->H[$n][$n-1] * $this->H[$n-1][$n]; + } + // Wilkinson's original ad hoc shift + if ($iter == 10) { + $exshift += $x; + for ($i = $low; $i <= $n; ++$i) { + $this->H[$i][$i] -= $x; + } + $s = abs($this->H[$n][$n-1]) + abs($this->H[$n-1][$n-2]); + $x = $y = 0.75 * $s; + $w = -0.4375 * $s * $s; + } + // MATLAB's new ad hoc shift + if ($iter == 30) { + $s = ($y - $x) / 2.0; + $s = $s * $s + $w; + if ($s > 0) { + $s = sqrt($s); + if ($y < $x) { + $s = -$s; + } + $s = $x - $w / (($y - $x) / 2.0 + $s); + for ($i = $low; $i <= $n; ++$i) { + $this->H[$i][$i] -= $s; + } + $exshift += $s; + $x = $y = $w = 0.964; + } + } + // Could check iteration count here. + $iter = $iter + 1; + // Look for two consecutive small sub-diagonal elements + $m = $n - 2; + while ($m >= $l) { + $z = $this->H[$m][$m]; + $r = $x - $z; + $s = $y - $z; + $p = ($r * $s - $w) / $this->H[$m+1][$m] + $this->H[$m][$m+1]; + $q = $this->H[$m+1][$m+1] - $z - $r - $s; + $r = $this->H[$m+2][$m+1]; + $s = abs($p) + abs($q) + abs($r); + $p = $p / $s; + $q = $q / $s; + $r = $r / $s; + if ($m == $l) { + break; + } + if (abs($this->H[$m][$m-1]) * (abs($q) + abs($r)) < + $eps * (abs($p) * (abs($this->H[$m-1][$m-1]) + abs($z) + abs($this->H[$m+1][$m+1])))) { + break; + } + --$m; + } + for ($i = $m + 2; $i <= $n; ++$i) { + $this->H[$i][$i-2] = 0.0; + if ($i > $m+2) { + $this->H[$i][$i-3] = 0.0; + } + } + // Double QR step involving rows l:n and columns m:n + for ($k = $m; $k <= $n-1; ++$k) { + $notlast = ($k != $n-1); + if ($k != $m) { + $p = $this->H[$k][$k-1]; + $q = $this->H[$k+1][$k-1]; + $r = ($notlast ? $this->H[$k+2][$k-1] : 0.0); + $x = abs($p) + abs($q) + abs($r); + if ($x != 0.0) { + $p = $p / $x; + $q = $q / $x; + $r = $r / $x; + } + } + if ($x == 0.0) { + break; + } + $s = sqrt($p * $p + $q * $q + $r * $r); + if ($p < 0) { + $s = -$s; + } + if ($s != 0) { + if ($k != $m) { + $this->H[$k][$k-1] = -$s * $x; + } elseif ($l != $m) { + $this->H[$k][$k-1] = -$this->H[$k][$k-1]; + } + $p = $p + $s; + $x = $p / $s; + $y = $q / $s; + $z = $r / $s; + $q = $q / $p; + $r = $r / $p; + // Row modification + for ($j = $k; $j < $nn; ++$j) { + $p = $this->H[$k][$j] + $q * $this->H[$k+1][$j]; + if ($notlast) { + $p = $p + $r * $this->H[$k+2][$j]; + $this->H[$k+2][$j] = $this->H[$k+2][$j] - $p * $z; + } + $this->H[$k][$j] = $this->H[$k][$j] - $p * $x; + $this->H[$k+1][$j] = $this->H[$k+1][$j] - $p * $y; + } + // Column modification + for ($i = 0; $i <= min($n, $k+3); ++$i) { + $p = $x * $this->H[$i][$k] + $y * $this->H[$i][$k+1]; + if ($notlast) { + $p = $p + $z * $this->H[$i][$k+2]; + $this->H[$i][$k+2] = $this->H[$i][$k+2] - $p * $r; + } + $this->H[$i][$k] = $this->H[$i][$k] - $p; + $this->H[$i][$k+1] = $this->H[$i][$k+1] - $p * $q; + } + // Accumulate transformations + for ($i = $low; $i <= $high; ++$i) { + $p = $x * $this->V[$i][$k] + $y * $this->V[$i][$k+1]; + if ($notlast) { + $p = $p + $z * $this->V[$i][$k+2]; + $this->V[$i][$k+2] = $this->V[$i][$k+2] - $p * $r; + } + $this->V[$i][$k] = $this->V[$i][$k] - $p; + $this->V[$i][$k+1] = $this->V[$i][$k+1] - $p * $q; + } + } // ($s != 0) + } // k loop + } // check convergence + } // while ($n >= $low) + + // Backsubstitute to find vectors of upper triangular form + if ($norm == 0.0) { + return; + } + + for ($n = $nn-1; $n >= 0; --$n) { + $p = $this->d[$n]; + $q = $this->e[$n]; + // Real vector + if ($q == 0) { + $l = $n; + $this->H[$n][$n] = 1.0; + for ($i = $n-1; $i >= 0; --$i) { + $w = $this->H[$i][$i] - $p; + $r = 0.0; + for ($j = $l; $j <= $n; ++$j) { + $r = $r + $this->H[$i][$j] * $this->H[$j][$n]; + } + if ($this->e[$i] < 0.0) { + $z = $w; + $s = $r; + } else { + $l = $i; + if ($this->e[$i] == 0.0) { + if ($w != 0.0) { + $this->H[$i][$n] = -$r / $w; + } else { + $this->H[$i][$n] = -$r / ($eps * $norm); + } + // Solve real equations + } else { + $x = $this->H[$i][$i+1]; + $y = $this->H[$i+1][$i]; + $q = ($this->d[$i] - $p) * ($this->d[$i] - $p) + $this->e[$i] * $this->e[$i]; + $t = ($x * $s - $z * $r) / $q; + $this->H[$i][$n] = $t; + if (abs($x) > abs($z)) { + $this->H[$i+1][$n] = (-$r - $w * $t) / $x; + } else { + $this->H[$i+1][$n] = (-$s - $y * $t) / $z; + } + } + // Overflow control + $t = abs($this->H[$i][$n]); + if (($eps * $t) * $t > 1) { + for ($j = $i; $j <= $n; ++$j) { + $this->H[$j][$n] = $this->H[$j][$n] / $t; + } + } + } + } + // Complex vector + } else if ($q < 0) { + $l = $n-1; + // Last vector component imaginary so matrix is triangular + if (abs($this->H[$n][$n-1]) > abs($this->H[$n-1][$n])) { + $this->H[$n-1][$n-1] = $q / $this->H[$n][$n-1]; + $this->H[$n-1][$n] = -($this->H[$n][$n] - $p) / $this->H[$n][$n-1]; + } else { + $this->cdiv(0.0, -$this->H[$n-1][$n], $this->H[$n-1][$n-1] - $p, $q); + $this->H[$n-1][$n-1] = $this->cdivr; + $this->H[$n-1][$n] = $this->cdivi; + } + $this->H[$n][$n-1] = 0.0; + $this->H[$n][$n] = 1.0; + for ($i = $n-2; $i >= 0; --$i) { + // double ra,sa,vr,vi; + $ra = 0.0; + $sa = 0.0; + for ($j = $l; $j <= $n; ++$j) { + $ra = $ra + $this->H[$i][$j] * $this->H[$j][$n-1]; + $sa = $sa + $this->H[$i][$j] * $this->H[$j][$n]; + } + $w = $this->H[$i][$i] - $p; + if ($this->e[$i] < 0.0) { + $z = $w; + $r = $ra; + $s = $sa; + } else { + $l = $i; + if ($this->e[$i] == 0) { + $this->cdiv(-$ra, -$sa, $w, $q); + $this->H[$i][$n-1] = $this->cdivr; + $this->H[$i][$n] = $this->cdivi; + } else { + // Solve complex equations + $x = $this->H[$i][$i+1]; + $y = $this->H[$i+1][$i]; + $vr = ($this->d[$i] - $p) * ($this->d[$i] - $p) + $this->e[$i] * $this->e[$i] - $q * $q; + $vi = ($this->d[$i] - $p) * 2.0 * $q; + if ($vr == 0.0 & $vi == 0.0) { + $vr = $eps * $norm * (abs($w) + abs($q) + abs($x) + abs($y) + abs($z)); + } + $this->cdiv($x * $r - $z * $ra + $q * $sa, $x * $s - $z * $sa - $q * $ra, $vr, $vi); + $this->H[$i][$n-1] = $this->cdivr; + $this->H[$i][$n] = $this->cdivi; + if (abs($x) > (abs($z) + abs($q))) { + $this->H[$i+1][$n-1] = (-$ra - $w * $this->H[$i][$n-1] + $q * $this->H[$i][$n]) / $x; + $this->H[$i+1][$n] = (-$sa - $w * $this->H[$i][$n] - $q * $this->H[$i][$n-1]) / $x; + } else { + $this->cdiv(-$r - $y * $this->H[$i][$n-1], -$s - $y * $this->H[$i][$n], $z, $q); + $this->H[$i+1][$n-1] = $this->cdivr; + $this->H[$i+1][$n] = $this->cdivi; + } + } + // Overflow control + $t = max(abs($this->H[$i][$n-1]),abs($this->H[$i][$n])); + if (($eps * $t) * $t > 1) { + for ($j = $i; $j <= $n; ++$j) { + $this->H[$j][$n-1] = $this->H[$j][$n-1] / $t; + $this->H[$j][$n] = $this->H[$j][$n] / $t; + } + } + } // end else + } // end for + } // end else for complex case + } // end for + + // Vectors of isolated roots + for ($i = 0; $i < $nn; ++$i) { + if ($i < $low | $i > $high) { + for ($j = $i; $j < $nn; ++$j) { + $this->V[$i][$j] = $this->H[$i][$j]; + } + } + } + + // Back transformation to get eigenvectors of original matrix + for ($j = $nn-1; $j >= $low; --$j) { + for ($i = $low; $i <= $high; ++$i) { + $z = 0.0; + for ($k = $low; $k <= min($j,$high); ++$k) { + $z = $z + $this->V[$i][$k] * $this->H[$k][$j]; + } + $this->V[$i][$j] = $z; + } + } + } // end hqr2 + + + /** + * Constructor: Check for symmetry, then construct the eigenvalue decomposition + * + * @access public + * @param A Square matrix + * @return Structure to access D and V. + */ + public function __construct($Arg) { + $this->A = $Arg->getArray(); + $this->n = $Arg->getColumnDimension(); + + $issymmetric = true; + for ($j = 0; ($j < $this->n) & $issymmetric; ++$j) { + for ($i = 0; ($i < $this->n) & $issymmetric; ++$i) { + $issymmetric = ($this->A[$i][$j] == $this->A[$j][$i]); + } + } + + if ($issymmetric) { + $this->V = $this->A; + // Tridiagonalize. + $this->tred2(); + // Diagonalize. + $this->tql2(); + } else { + $this->H = $this->A; + $this->ort = array(); + // Reduce to Hessenberg form. + $this->orthes(); + // Reduce Hessenberg to real Schur form. + $this->hqr2(); + } + } + + + /** + * Return the eigenvector matrix + * + * @access public + * @return V + */ + public function getV() { + return new Matrix($this->V, $this->n, $this->n); + } + + + /** + * Return the real parts of the eigenvalues + * + * @access public + * @return real(diag(D)) + */ + public function getRealEigenvalues() { + return $this->d; + } + + + /** + * Return the imaginary parts of the eigenvalues + * + * @access public + * @return imag(diag(D)) + */ + public function getImagEigenvalues() { + return $this->e; + } + + + /** + * Return the block diagonal eigenvalue matrix + * + * @access public + * @return D + */ + public function getD() { + for ($i = 0; $i < $this->n; ++$i) { + $D[$i] = array_fill(0, $this->n, 0.0); + $D[$i][$i] = $this->d[$i]; + if ($this->e[$i] == 0) { + continue; + } + $o = ($this->e[$i] > 0) ? $i + 1 : $i - 1; + $D[$i][$o] = $this->e[$i]; + } + return new Matrix($D); + } + +} // class EigenvalueDecomposition diff --git a/admin/helpers/PHPExcel/Shared/JAMA/LUDecomposition.php b/admin/helpers/PHPExcel/Shared/JAMA/LUDecomposition.php new file mode 100644 index 00000000..08e500cf --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/JAMA/LUDecomposition.php @@ -0,0 +1,258 @@ +<?php +/** + * @package JAMA + * + * For an m-by-n matrix A with m >= n, the LU decomposition is an m-by-n + * unit lower triangular matrix L, an n-by-n upper triangular matrix U, + * and a permutation vector piv of length m so that A(piv,:) = L*U. + * If m < n, then L is m-by-m and U is m-by-n. + * + * The LU decompostion with pivoting always exists, even if the matrix is + * singular, so the constructor will never fail. The primary use of the + * LU decomposition is in the solution of square systems of simultaneous + * linear equations. This will fail if isNonsingular() returns false. + * + * @author Paul Meagher + * @author Bartosz Matosiuk + * @author Michael Bommarito + * @version 1.1 + * @license PHP v3.0 + */ +class PHPExcel_Shared_JAMA_LUDecomposition { + + const MatrixSingularException = "Can only perform operation on singular matrix."; + const MatrixSquareException = "Mismatched Row dimension"; + + /** + * Decomposition storage + * @var array + */ + private $LU = array(); + + /** + * Row dimension. + * @var int + */ + private $m; + + /** + * Column dimension. + * @var int + */ + private $n; + + /** + * Pivot sign. + * @var int + */ + private $pivsign; + + /** + * Internal storage of pivot vector. + * @var array + */ + private $piv = array(); + + + /** + * LU Decomposition constructor. + * + * @param $A Rectangular matrix + * @return Structure to access L, U and piv. + */ + public function __construct($A) { + if ($A instanceof PHPExcel_Shared_JAMA_Matrix) { + // Use a "left-looking", dot-product, Crout/Doolittle algorithm. + $this->LU = $A->getArray(); + $this->m = $A->getRowDimension(); + $this->n = $A->getColumnDimension(); + for ($i = 0; $i < $this->m; ++$i) { + $this->piv[$i] = $i; + } + $this->pivsign = 1; + $LUrowi = $LUcolj = array(); + + // Outer loop. + for ($j = 0; $j < $this->n; ++$j) { + // Make a copy of the j-th column to localize references. + for ($i = 0; $i < $this->m; ++$i) { + $LUcolj[$i] = &$this->LU[$i][$j]; + } + // Apply previous transformations. + for ($i = 0; $i < $this->m; ++$i) { + $LUrowi = $this->LU[$i]; + // Most of the time is spent in the following dot product. + $kmax = min($i,$j); + $s = 0.0; + for ($k = 0; $k < $kmax; ++$k) { + $s += $LUrowi[$k] * $LUcolj[$k]; + } + $LUrowi[$j] = $LUcolj[$i] -= $s; + } + // Find pivot and exchange if necessary. + $p = $j; + for ($i = $j+1; $i < $this->m; ++$i) { + if (abs($LUcolj[$i]) > abs($LUcolj[$p])) { + $p = $i; + } + } + if ($p != $j) { + for ($k = 0; $k < $this->n; ++$k) { + $t = $this->LU[$p][$k]; + $this->LU[$p][$k] = $this->LU[$j][$k]; + $this->LU[$j][$k] = $t; + } + $k = $this->piv[$p]; + $this->piv[$p] = $this->piv[$j]; + $this->piv[$j] = $k; + $this->pivsign = $this->pivsign * -1; + } + // Compute multipliers. + if (($j < $this->m) && ($this->LU[$j][$j] != 0.0)) { + for ($i = $j+1; $i < $this->m; ++$i) { + $this->LU[$i][$j] /= $this->LU[$j][$j]; + } + } + } + } else { + throw new PHPExcel_Calculation_Exception(PHPExcel_Shared_JAMA_Matrix::ArgumentTypeException); + } + } // function __construct() + + + /** + * Get lower triangular factor. + * + * @return array Lower triangular factor + */ + public function getL() { + for ($i = 0; $i < $this->m; ++$i) { + for ($j = 0; $j < $this->n; ++$j) { + if ($i > $j) { + $L[$i][$j] = $this->LU[$i][$j]; + } elseif ($i == $j) { + $L[$i][$j] = 1.0; + } else { + $L[$i][$j] = 0.0; + } + } + } + return new PHPExcel_Shared_JAMA_Matrix($L); + } // function getL() + + + /** + * Get upper triangular factor. + * + * @return array Upper triangular factor + */ + public function getU() { + for ($i = 0; $i < $this->n; ++$i) { + for ($j = 0; $j < $this->n; ++$j) { + if ($i <= $j) { + $U[$i][$j] = $this->LU[$i][$j]; + } else { + $U[$i][$j] = 0.0; + } + } + } + return new PHPExcel_Shared_JAMA_Matrix($U); + } // function getU() + + + /** + * Return pivot permutation vector. + * + * @return array Pivot vector + */ + public function getPivot() { + return $this->piv; + } // function getPivot() + + + /** + * Alias for getPivot + * + * @see getPivot + */ + public function getDoublePivot() { + return $this->getPivot(); + } // function getDoublePivot() + + + /** + * Is the matrix nonsingular? + * + * @return true if U, and hence A, is nonsingular. + */ + public function isNonsingular() { + for ($j = 0; $j < $this->n; ++$j) { + if ($this->LU[$j][$j] == 0) { + return false; + } + } + return true; + } // function isNonsingular() + + + /** + * Count determinants + * + * @return array d matrix deterninat + */ + public function det() { + if ($this->m == $this->n) { + $d = $this->pivsign; + for ($j = 0; $j < $this->n; ++$j) { + $d *= $this->LU[$j][$j]; + } + return $d; + } else { + throw new PHPExcel_Calculation_Exception(PHPExcel_Shared_JAMA_Matrix::MatrixDimensionException); + } + } // function det() + + + /** + * Solve A*X = B + * + * @param $B A Matrix with as many rows as A and any number of columns. + * @return X so that L*U*X = B(piv,:) + * @PHPExcel_Calculation_Exception IllegalArgumentException Matrix row dimensions must agree. + * @PHPExcel_Calculation_Exception RuntimeException Matrix is singular. + */ + public function solve($B) { + if ($B->getRowDimension() == $this->m) { + if ($this->isNonsingular()) { + // Copy right hand side with pivoting + $nx = $B->getColumnDimension(); + $X = $B->getMatrix($this->piv, 0, $nx-1); + // Solve L*Y = B(piv,:) + for ($k = 0; $k < $this->n; ++$k) { + for ($i = $k+1; $i < $this->n; ++$i) { + for ($j = 0; $j < $nx; ++$j) { + $X->A[$i][$j] -= $X->A[$k][$j] * $this->LU[$i][$k]; + } + } + } + // Solve U*X = Y; + for ($k = $this->n-1; $k >= 0; --$k) { + for ($j = 0; $j < $nx; ++$j) { + $X->A[$k][$j] /= $this->LU[$k][$k]; + } + for ($i = 0; $i < $k; ++$i) { + for ($j = 0; $j < $nx; ++$j) { + $X->A[$i][$j] -= $X->A[$k][$j] * $this->LU[$i][$k]; + } + } + } + return $X; + } else { + throw new PHPExcel_Calculation_Exception(self::MatrixSingularException); + } + } else { + throw new PHPExcel_Calculation_Exception(self::MatrixSquareException); + } + } // function solve() + +} // class PHPExcel_Shared_JAMA_LUDecomposition diff --git a/admin/helpers/PHPExcel/Shared/JAMA/Matrix.php b/admin/helpers/PHPExcel/Shared/JAMA/Matrix.php new file mode 100644 index 00000000..b893a447 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/JAMA/Matrix.php @@ -0,0 +1,1059 @@ +<?php +/** + * @package JAMA + */ + +/** PHPExcel root directory */ +if (!defined('PHPEXCEL_ROOT')) { + /** + * @ignore + */ + define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../../'); + require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); +} + + +/* + * Matrix class + * + * @author Paul Meagher + * @author Michael Bommarito + * @author Lukasz Karapuda + * @author Bartek Matosiuk + * @version 1.8 + * @license PHP v3.0 + * @see http://math.nist.gov/javanumerics/jama/ + */ +class PHPExcel_Shared_JAMA_Matrix { + + + const PolymorphicArgumentException = "Invalid argument pattern for polymorphic function."; + const ArgumentTypeException = "Invalid argument type."; + const ArgumentBoundsException = "Invalid argument range."; + const MatrixDimensionException = "Matrix dimensions are not equal."; + const ArrayLengthException = "Array length must be a multiple of m."; + + /** + * Matrix storage + * + * @var array + * @access public + */ + public $A = array(); + + /** + * Matrix row dimension + * + * @var int + * @access private + */ + private $m; + + /** + * Matrix column dimension + * + * @var int + * @access private + */ + private $n; + + + /** + * Polymorphic constructor + * + * As PHP has no support for polymorphic constructors, we hack our own sort of polymorphism using func_num_args, func_get_arg, and gettype. In essence, we're just implementing a simple RTTI filter and calling the appropriate constructor. + */ + public function __construct() { + if (func_num_args() > 0) { + $args = func_get_args(); + $match = implode(",", array_map('gettype', $args)); + + switch($match) { + //Rectangular matrix - m x n initialized from 2D array + case 'array': + $this->m = count($args[0]); + $this->n = count($args[0][0]); + $this->A = $args[0]; + break; + //Square matrix - n x n + case 'integer': + $this->m = $args[0]; + $this->n = $args[0]; + $this->A = array_fill(0, $this->m, array_fill(0, $this->n, 0)); + break; + //Rectangular matrix - m x n + case 'integer,integer': + $this->m = $args[0]; + $this->n = $args[1]; + $this->A = array_fill(0, $this->m, array_fill(0, $this->n, 0)); + break; + //Rectangular matrix - m x n initialized from packed array + case 'array,integer': + $this->m = $args[1]; + if ($this->m != 0) { + $this->n = count($args[0]) / $this->m; + } else { + $this->n = 0; + } + if (($this->m * $this->n) == count($args[0])) { + for($i = 0; $i < $this->m; ++$i) { + for($j = 0; $j < $this->n; ++$j) { + $this->A[$i][$j] = $args[0][$i + $j * $this->m]; + } + } + } else { + throw new PHPExcel_Calculation_Exception(self::ArrayLengthException); + } + break; + default: + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + break; + } + } else { + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + } + } // function __construct() + + + /** + * getArray + * + * @return array Matrix array + */ + public function getArray() { + return $this->A; + } // function getArray() + + + /** + * getRowDimension + * + * @return int Row dimension + */ + public function getRowDimension() { + return $this->m; + } // function getRowDimension() + + + /** + * getColumnDimension + * + * @return int Column dimension + */ + public function getColumnDimension() { + return $this->n; + } // function getColumnDimension() + + + /** + * get + * + * Get the i,j-th element of the matrix. + * @param int $i Row position + * @param int $j Column position + * @return mixed Element (int/float/double) + */ + public function get($i = null, $j = null) { + return $this->A[$i][$j]; + } // function get() + + + /** + * getMatrix + * + * Get a submatrix + * @param int $i0 Initial row index + * @param int $iF Final row index + * @param int $j0 Initial column index + * @param int $jF Final column index + * @return Matrix Submatrix + */ + public function getMatrix() { + if (func_num_args() > 0) { + $args = func_get_args(); + $match = implode(",", array_map('gettype', $args)); + + switch($match) { + //A($i0...; $j0...) + case 'integer,integer': + list($i0, $j0) = $args; + if ($i0 >= 0) { $m = $this->m - $i0; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentBoundsException); } + if ($j0 >= 0) { $n = $this->n - $j0; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentBoundsException); } + $R = new PHPExcel_Shared_JAMA_Matrix($m, $n); + for($i = $i0; $i < $this->m; ++$i) { + for($j = $j0; $j < $this->n; ++$j) { + $R->set($i, $j, $this->A[$i][$j]); + } + } + return $R; + break; + //A($i0...$iF; $j0...$jF) + case 'integer,integer,integer,integer': + list($i0, $iF, $j0, $jF) = $args; + if (($iF > $i0) && ($this->m >= $iF) && ($i0 >= 0)) { $m = $iF - $i0; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentBoundsException); } + if (($jF > $j0) && ($this->n >= $jF) && ($j0 >= 0)) { $n = $jF - $j0; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentBoundsException); } + $R = new PHPExcel_Shared_JAMA_Matrix($m+1, $n+1); + for($i = $i0; $i <= $iF; ++$i) { + for($j = $j0; $j <= $jF; ++$j) { + $R->set($i - $i0, $j - $j0, $this->A[$i][$j]); + } + } + return $R; + break; + //$R = array of row indices; $C = array of column indices + case 'array,array': + list($RL, $CL) = $args; + if (count($RL) > 0) { $m = count($RL); } else { throw new PHPExcel_Calculation_Exception(self::ArgumentBoundsException); } + if (count($CL) > 0) { $n = count($CL); } else { throw new PHPExcel_Calculation_Exception(self::ArgumentBoundsException); } + $R = new PHPExcel_Shared_JAMA_Matrix($m, $n); + for($i = 0; $i < $m; ++$i) { + for($j = 0; $j < $n; ++$j) { + $R->set($i - $i0, $j - $j0, $this->A[$RL[$i]][$CL[$j]]); + } + } + return $R; + break; + //$RL = array of row indices; $CL = array of column indices + case 'array,array': + list($RL, $CL) = $args; + if (count($RL) > 0) { $m = count($RL); } else { throw new PHPExcel_Calculation_Exception(self::ArgumentBoundsException); } + if (count($CL) > 0) { $n = count($CL); } else { throw new PHPExcel_Calculation_Exception(self::ArgumentBoundsException); } + $R = new PHPExcel_Shared_JAMA_Matrix($m, $n); + for($i = 0; $i < $m; ++$i) { + for($j = 0; $j < $n; ++$j) { + $R->set($i, $j, $this->A[$RL[$i]][$CL[$j]]); + } + } + return $R; + break; + //A($i0...$iF); $CL = array of column indices + case 'integer,integer,array': + list($i0, $iF, $CL) = $args; + if (($iF > $i0) && ($this->m >= $iF) && ($i0 >= 0)) { $m = $iF - $i0; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentBoundsException); } + if (count($CL) > 0) { $n = count($CL); } else { throw new PHPExcel_Calculation_Exception(self::ArgumentBoundsException); } + $R = new PHPExcel_Shared_JAMA_Matrix($m, $n); + for($i = $i0; $i < $iF; ++$i) { + for($j = 0; $j < $n; ++$j) { + $R->set($i - $i0, $j, $this->A[$RL[$i]][$j]); + } + } + return $R; + break; + //$RL = array of row indices + case 'array,integer,integer': + list($RL, $j0, $jF) = $args; + if (count($RL) > 0) { $m = count($RL); } else { throw new PHPExcel_Calculation_Exception(self::ArgumentBoundsException); } + if (($jF >= $j0) && ($this->n >= $jF) && ($j0 >= 0)) { $n = $jF - $j0; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentBoundsException); } + $R = new PHPExcel_Shared_JAMA_Matrix($m, $n+1); + for($i = 0; $i < $m; ++$i) { + for($j = $j0; $j <= $jF; ++$j) { + $R->set($i, $j - $j0, $this->A[$RL[$i]][$j]); + } + } + return $R; + break; + default: + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + break; + } + } else { + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + } + } // function getMatrix() + + + /** + * checkMatrixDimensions + * + * Is matrix B the same size? + * @param Matrix $B Matrix B + * @return boolean + */ + public function checkMatrixDimensions($B = null) { + if ($B instanceof PHPExcel_Shared_JAMA_Matrix) { + if (($this->m == $B->getRowDimension()) && ($this->n == $B->getColumnDimension())) { + return true; + } else { + throw new PHPExcel_Calculation_Exception(self::MatrixDimensionException); + } + } else { + throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); + } + } // function checkMatrixDimensions() + + + + /** + * set + * + * Set the i,j-th element of the matrix. + * @param int $i Row position + * @param int $j Column position + * @param mixed $c Int/float/double value + * @return mixed Element (int/float/double) + */ + public function set($i = null, $j = null, $c = null) { + // Optimized set version just has this + $this->A[$i][$j] = $c; + } // function set() + + + /** + * identity + * + * Generate an identity matrix. + * @param int $m Row dimension + * @param int $n Column dimension + * @return Matrix Identity matrix + */ + public function identity($m = null, $n = null) { + return $this->diagonal($m, $n, 1); + } // function identity() + + + /** + * diagonal + * + * Generate a diagonal matrix + * @param int $m Row dimension + * @param int $n Column dimension + * @param mixed $c Diagonal value + * @return Matrix Diagonal matrix + */ + public function diagonal($m = null, $n = null, $c = 1) { + $R = new PHPExcel_Shared_JAMA_Matrix($m, $n); + for($i = 0; $i < $m; ++$i) { + $R->set($i, $i, $c); + } + return $R; + } // function diagonal() + + + /** + * getMatrixByRow + * + * Get a submatrix by row index/range + * @param int $i0 Initial row index + * @param int $iF Final row index + * @return Matrix Submatrix + */ + public function getMatrixByRow($i0 = null, $iF = null) { + if (is_int($i0)) { + if (is_int($iF)) { + return $this->getMatrix($i0, 0, $iF + 1, $this->n); + } else { + return $this->getMatrix($i0, 0, $i0 + 1, $this->n); + } + } else { + throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); + } + } // function getMatrixByRow() + + + /** + * getMatrixByCol + * + * Get a submatrix by column index/range + * @param int $i0 Initial column index + * @param int $iF Final column index + * @return Matrix Submatrix + */ + public function getMatrixByCol($j0 = null, $jF = null) { + if (is_int($j0)) { + if (is_int($jF)) { + return $this->getMatrix(0, $j0, $this->m, $jF + 1); + } else { + return $this->getMatrix(0, $j0, $this->m, $j0 + 1); + } + } else { + throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); + } + } // function getMatrixByCol() + + + /** + * transpose + * + * Tranpose matrix + * @return Matrix Transposed matrix + */ + public function transpose() { + $R = new PHPExcel_Shared_JAMA_Matrix($this->n, $this->m); + for($i = 0; $i < $this->m; ++$i) { + for($j = 0; $j < $this->n; ++$j) { + $R->set($j, $i, $this->A[$i][$j]); + } + } + return $R; + } // function transpose() + + + /** + * trace + * + * Sum of diagonal elements + * @return float Sum of diagonal elements + */ + public function trace() { + $s = 0; + $n = min($this->m, $this->n); + for($i = 0; $i < $n; ++$i) { + $s += $this->A[$i][$i]; + } + return $s; + } // function trace() + + + /** + * uminus + * + * Unary minus matrix -A + * @return Matrix Unary minus matrix + */ + public function uminus() { + } // function uminus() + + + /** + * plus + * + * A + B + * @param mixed $B Matrix/Array + * @return Matrix Sum + */ + public function plus() { + if (func_num_args() > 0) { + $args = func_get_args(); + $match = implode(",", array_map('gettype', $args)); + + switch($match) { + case 'object': + if ($args[0] instanceof PHPExcel_Shared_JAMA_Matrix) { $M = $args[0]; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); } + break; + case 'array': + $M = new PHPExcel_Shared_JAMA_Matrix($args[0]); + break; + default: + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + break; + } + $this->checkMatrixDimensions($M); + for($i = 0; $i < $this->m; ++$i) { + for($j = 0; $j < $this->n; ++$j) { + $M->set($i, $j, $M->get($i, $j) + $this->A[$i][$j]); + } + } + return $M; + } else { + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + } + } // function plus() + + + /** + * plusEquals + * + * A = A + B + * @param mixed $B Matrix/Array + * @return Matrix Sum + */ + public function plusEquals() { + if (func_num_args() > 0) { + $args = func_get_args(); + $match = implode(",", array_map('gettype', $args)); + + switch($match) { + case 'object': + if ($args[0] instanceof PHPExcel_Shared_JAMA_Matrix) { $M = $args[0]; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); } + break; + case 'array': + $M = new PHPExcel_Shared_JAMA_Matrix($args[0]); + break; + default: + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + break; + } + $this->checkMatrixDimensions($M); + for($i = 0; $i < $this->m; ++$i) { + for($j = 0; $j < $this->n; ++$j) { + $validValues = True; + $value = $M->get($i, $j); + if ((is_string($this->A[$i][$j])) && (strlen($this->A[$i][$j]) > 0) && (!is_numeric($this->A[$i][$j]))) { + $this->A[$i][$j] = trim($this->A[$i][$j],'"'); + $validValues &= PHPExcel_Shared_String::convertToNumberIfFraction($this->A[$i][$j]); + } + if ((is_string($value)) && (strlen($value) > 0) && (!is_numeric($value))) { + $value = trim($value,'"'); + $validValues &= PHPExcel_Shared_String::convertToNumberIfFraction($value); + } + if ($validValues) { + $this->A[$i][$j] += $value; + } else { + $this->A[$i][$j] = PHPExcel_Calculation_Functions::NaN(); + } + } + } + return $this; + } else { + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + } + } // function plusEquals() + + + /** + * minus + * + * A - B + * @param mixed $B Matrix/Array + * @return Matrix Sum + */ + public function minus() { + if (func_num_args() > 0) { + $args = func_get_args(); + $match = implode(",", array_map('gettype', $args)); + + switch($match) { + case 'object': + if ($args[0] instanceof PHPExcel_Shared_JAMA_Matrix) { $M = $args[0]; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); } + break; + case 'array': + $M = new PHPExcel_Shared_JAMA_Matrix($args[0]); + break; + default: + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + break; + } + $this->checkMatrixDimensions($M); + for($i = 0; $i < $this->m; ++$i) { + for($j = 0; $j < $this->n; ++$j) { + $M->set($i, $j, $M->get($i, $j) - $this->A[$i][$j]); + } + } + return $M; + } else { + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + } + } // function minus() + + + /** + * minusEquals + * + * A = A - B + * @param mixed $B Matrix/Array + * @return Matrix Sum + */ + public function minusEquals() { + if (func_num_args() > 0) { + $args = func_get_args(); + $match = implode(",", array_map('gettype', $args)); + + switch($match) { + case 'object': + if ($args[0] instanceof PHPExcel_Shared_JAMA_Matrix) { $M = $args[0]; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); } + break; + case 'array': + $M = new PHPExcel_Shared_JAMA_Matrix($args[0]); + break; + default: + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + break; + } + $this->checkMatrixDimensions($M); + for($i = 0; $i < $this->m; ++$i) { + for($j = 0; $j < $this->n; ++$j) { + $validValues = True; + $value = $M->get($i, $j); + if ((is_string($this->A[$i][$j])) && (strlen($this->A[$i][$j]) > 0) && (!is_numeric($this->A[$i][$j]))) { + $this->A[$i][$j] = trim($this->A[$i][$j],'"'); + $validValues &= PHPExcel_Shared_String::convertToNumberIfFraction($this->A[$i][$j]); + } + if ((is_string($value)) && (strlen($value) > 0) && (!is_numeric($value))) { + $value = trim($value,'"'); + $validValues &= PHPExcel_Shared_String::convertToNumberIfFraction($value); + } + if ($validValues) { + $this->A[$i][$j] -= $value; + } else { + $this->A[$i][$j] = PHPExcel_Calculation_Functions::NaN(); + } + } + } + return $this; + } else { + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + } + } // function minusEquals() + + + /** + * arrayTimes + * + * Element-by-element multiplication + * Cij = Aij * Bij + * @param mixed $B Matrix/Array + * @return Matrix Matrix Cij + */ + public function arrayTimes() { + if (func_num_args() > 0) { + $args = func_get_args(); + $match = implode(",", array_map('gettype', $args)); + + switch($match) { + case 'object': + if ($args[0] instanceof PHPExcel_Shared_JAMA_Matrix) { $M = $args[0]; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); } + break; + case 'array': + $M = new PHPExcel_Shared_JAMA_Matrix($args[0]); + break; + default: + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + break; + } + $this->checkMatrixDimensions($M); + for($i = 0; $i < $this->m; ++$i) { + for($j = 0; $j < $this->n; ++$j) { + $M->set($i, $j, $M->get($i, $j) * $this->A[$i][$j]); + } + } + return $M; + } else { + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + } + } // function arrayTimes() + + + /** + * arrayTimesEquals + * + * Element-by-element multiplication + * Aij = Aij * Bij + * @param mixed $B Matrix/Array + * @return Matrix Matrix Aij + */ + public function arrayTimesEquals() { + if (func_num_args() > 0) { + $args = func_get_args(); + $match = implode(",", array_map('gettype', $args)); + + switch($match) { + case 'object': + if ($args[0] instanceof PHPExcel_Shared_JAMA_Matrix) { $M = $args[0]; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); } + break; + case 'array': + $M = new PHPExcel_Shared_JAMA_Matrix($args[0]); + break; + default: + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + break; + } + $this->checkMatrixDimensions($M); + for($i = 0; $i < $this->m; ++$i) { + for($j = 0; $j < $this->n; ++$j) { + $validValues = True; + $value = $M->get($i, $j); + if ((is_string($this->A[$i][$j])) && (strlen($this->A[$i][$j]) > 0) && (!is_numeric($this->A[$i][$j]))) { + $this->A[$i][$j] = trim($this->A[$i][$j],'"'); + $validValues &= PHPExcel_Shared_String::convertToNumberIfFraction($this->A[$i][$j]); + } + if ((is_string($value)) && (strlen($value) > 0) && (!is_numeric($value))) { + $value = trim($value,'"'); + $validValues &= PHPExcel_Shared_String::convertToNumberIfFraction($value); + } + if ($validValues) { + $this->A[$i][$j] *= $value; + } else { + $this->A[$i][$j] = PHPExcel_Calculation_Functions::NaN(); + } + } + } + return $this; + } else { + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + } + } // function arrayTimesEquals() + + + /** + * arrayRightDivide + * + * Element-by-element right division + * A / B + * @param Matrix $B Matrix B + * @return Matrix Division result + */ + public function arrayRightDivide() { + if (func_num_args() > 0) { + $args = func_get_args(); + $match = implode(",", array_map('gettype', $args)); + + switch($match) { + case 'object': + if ($args[0] instanceof PHPExcel_Shared_JAMA_Matrix) { $M = $args[0]; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); } + break; + case 'array': + $M = new PHPExcel_Shared_JAMA_Matrix($args[0]); + break; + default: + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + break; + } + $this->checkMatrixDimensions($M); + for($i = 0; $i < $this->m; ++$i) { + for($j = 0; $j < $this->n; ++$j) { + $validValues = True; + $value = $M->get($i, $j); + if ((is_string($this->A[$i][$j])) && (strlen($this->A[$i][$j]) > 0) && (!is_numeric($this->A[$i][$j]))) { + $this->A[$i][$j] = trim($this->A[$i][$j],'"'); + $validValues &= PHPExcel_Shared_String::convertToNumberIfFraction($this->A[$i][$j]); + } + if ((is_string($value)) && (strlen($value) > 0) && (!is_numeric($value))) { + $value = trim($value,'"'); + $validValues &= PHPExcel_Shared_String::convertToNumberIfFraction($value); + } + if ($validValues) { + if ($value == 0) { + // Trap for Divide by Zero error + $M->set($i, $j, '#DIV/0!'); + } else { + $M->set($i, $j, $this->A[$i][$j] / $value); + } + } else { + $M->set($i, $j, PHPExcel_Calculation_Functions::NaN()); + } + } + } + return $M; + } else { + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + } + } // function arrayRightDivide() + + + /** + * arrayRightDivideEquals + * + * Element-by-element right division + * Aij = Aij / Bij + * @param mixed $B Matrix/Array + * @return Matrix Matrix Aij + */ + public function arrayRightDivideEquals() { + if (func_num_args() > 0) { + $args = func_get_args(); + $match = implode(",", array_map('gettype', $args)); + + switch($match) { + case 'object': + if ($args[0] instanceof PHPExcel_Shared_JAMA_Matrix) { $M = $args[0]; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); } + break; + case 'array': + $M = new PHPExcel_Shared_JAMA_Matrix($args[0]); + break; + default: + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + break; + } + $this->checkMatrixDimensions($M); + for($i = 0; $i < $this->m; ++$i) { + for($j = 0; $j < $this->n; ++$j) { + $this->A[$i][$j] = $this->A[$i][$j] / $M->get($i, $j); + } + } + return $M; + } else { + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + } + } // function arrayRightDivideEquals() + + + /** + * arrayLeftDivide + * + * Element-by-element Left division + * A / B + * @param Matrix $B Matrix B + * @return Matrix Division result + */ + public function arrayLeftDivide() { + if (func_num_args() > 0) { + $args = func_get_args(); + $match = implode(",", array_map('gettype', $args)); + + switch($match) { + case 'object': + if ($args[0] instanceof PHPExcel_Shared_JAMA_Matrix) { $M = $args[0]; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); } + break; + case 'array': + $M = new PHPExcel_Shared_JAMA_Matrix($args[0]); + break; + default: + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + break; + } + $this->checkMatrixDimensions($M); + for($i = 0; $i < $this->m; ++$i) { + for($j = 0; $j < $this->n; ++$j) { + $M->set($i, $j, $M->get($i, $j) / $this->A[$i][$j]); + } + } + return $M; + } else { + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + } + } // function arrayLeftDivide() + + + /** + * arrayLeftDivideEquals + * + * Element-by-element Left division + * Aij = Aij / Bij + * @param mixed $B Matrix/Array + * @return Matrix Matrix Aij + */ + public function arrayLeftDivideEquals() { + if (func_num_args() > 0) { + $args = func_get_args(); + $match = implode(",", array_map('gettype', $args)); + + switch($match) { + case 'object': + if ($args[0] instanceof PHPExcel_Shared_JAMA_Matrix) { $M = $args[0]; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); } + break; + case 'array': + $M = new PHPExcel_Shared_JAMA_Matrix($args[0]); + break; + default: + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + break; + } + $this->checkMatrixDimensions($M); + for($i = 0; $i < $this->m; ++$i) { + for($j = 0; $j < $this->n; ++$j) { + $this->A[$i][$j] = $M->get($i, $j) / $this->A[$i][$j]; + } + } + return $M; + } else { + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + } + } // function arrayLeftDivideEquals() + + + /** + * times + * + * Matrix multiplication + * @param mixed $n Matrix/Array/Scalar + * @return Matrix Product + */ + public function times() { + if (func_num_args() > 0) { + $args = func_get_args(); + $match = implode(",", array_map('gettype', $args)); + + switch($match) { + case 'object': + if ($args[0] instanceof PHPExcel_Shared_JAMA_Matrix) { $B = $args[0]; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); } + if ($this->n == $B->m) { + $C = new PHPExcel_Shared_JAMA_Matrix($this->m, $B->n); + for($j = 0; $j < $B->n; ++$j) { + for ($k = 0; $k < $this->n; ++$k) { + $Bcolj[$k] = $B->A[$k][$j]; + } + for($i = 0; $i < $this->m; ++$i) { + $Arowi = $this->A[$i]; + $s = 0; + for($k = 0; $k < $this->n; ++$k) { + $s += $Arowi[$k] * $Bcolj[$k]; + } + $C->A[$i][$j] = $s; + } + } + return $C; + } else { + throw new PHPExcel_Calculation_Exception(JAMAError(MatrixDimensionMismatch)); + } + break; + case 'array': + $B = new PHPExcel_Shared_JAMA_Matrix($args[0]); + if ($this->n == $B->m) { + $C = new PHPExcel_Shared_JAMA_Matrix($this->m, $B->n); + for($i = 0; $i < $C->m; ++$i) { + for($j = 0; $j < $C->n; ++$j) { + $s = "0"; + for($k = 0; $k < $C->n; ++$k) { + $s += $this->A[$i][$k] * $B->A[$k][$j]; + } + $C->A[$i][$j] = $s; + } + } + return $C; + } else { + throw new PHPExcel_Calculation_Exception(JAMAError(MatrixDimensionMismatch)); + } + return $M; + break; + case 'integer': + $C = new PHPExcel_Shared_JAMA_Matrix($this->A); + for($i = 0; $i < $C->m; ++$i) { + for($j = 0; $j < $C->n; ++$j) { + $C->A[$i][$j] *= $args[0]; + } + } + return $C; + break; + case 'double': + $C = new PHPExcel_Shared_JAMA_Matrix($this->m, $this->n); + for($i = 0; $i < $C->m; ++$i) { + for($j = 0; $j < $C->n; ++$j) { + $C->A[$i][$j] = $args[0] * $this->A[$i][$j]; + } + } + return $C; + break; + case 'float': + $C = new PHPExcel_Shared_JAMA_Matrix($this->A); + for($i = 0; $i < $C->m; ++$i) { + for($j = 0; $j < $C->n; ++$j) { + $C->A[$i][$j] *= $args[0]; + } + } + return $C; + break; + default: + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + break; + } + } else { + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + } + } // function times() + + + /** + * power + * + * A = A ^ B + * @param mixed $B Matrix/Array + * @return Matrix Sum + */ + public function power() { + if (func_num_args() > 0) { + $args = func_get_args(); + $match = implode(",", array_map('gettype', $args)); + + switch($match) { + case 'object': + if ($args[0] instanceof PHPExcel_Shared_JAMA_Matrix) { $M = $args[0]; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); } + break; + case 'array': + $M = new PHPExcel_Shared_JAMA_Matrix($args[0]); + break; + default: + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + break; + } + $this->checkMatrixDimensions($M); + for($i = 0; $i < $this->m; ++$i) { + for($j = 0; $j < $this->n; ++$j) { + $validValues = True; + $value = $M->get($i, $j); + if ((is_string($this->A[$i][$j])) && (strlen($this->A[$i][$j]) > 0) && (!is_numeric($this->A[$i][$j]))) { + $this->A[$i][$j] = trim($this->A[$i][$j],'"'); + $validValues &= PHPExcel_Shared_String::convertToNumberIfFraction($this->A[$i][$j]); + } + if ((is_string($value)) && (strlen($value) > 0) && (!is_numeric($value))) { + $value = trim($value,'"'); + $validValues &= PHPExcel_Shared_String::convertToNumberIfFraction($value); + } + if ($validValues) { + $this->A[$i][$j] = pow($this->A[$i][$j],$value); + } else { + $this->A[$i][$j] = PHPExcel_Calculation_Functions::NaN(); + } + } + } + return $this; + } else { + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + } + } // function power() + + + /** + * concat + * + * A = A & B + * @param mixed $B Matrix/Array + * @return Matrix Sum + */ + public function concat() { + if (func_num_args() > 0) { + $args = func_get_args(); + $match = implode(",", array_map('gettype', $args)); + + switch($match) { + case 'object': + if ($args[0] instanceof PHPExcel_Shared_JAMA_Matrix) { $M = $args[0]; } else { throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException); } + case 'array': + $M = new PHPExcel_Shared_JAMA_Matrix($args[0]); + break; + default: + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + break; + } + $this->checkMatrixDimensions($M); + for($i = 0; $i < $this->m; ++$i) { + for($j = 0; $j < $this->n; ++$j) { + $this->A[$i][$j] = trim($this->A[$i][$j],'"').trim($M->get($i, $j),'"'); + } + } + return $this; + } else { + throw new PHPExcel_Calculation_Exception(self::PolymorphicArgumentException); + } + } // function concat() + + + /** + * Solve A*X = B. + * + * @param Matrix $B Right hand side + * @return Matrix ... Solution if A is square, least squares solution otherwise + */ + public function solve($B) { + if ($this->m == $this->n) { + $LU = new PHPExcel_Shared_JAMA_LUDecomposition($this); + return $LU->solve($B); + } else { + $QR = new QRDecomposition($this); + return $QR->solve($B); + } + } // function solve() + + + /** + * Matrix inverse or pseudoinverse. + * + * @return Matrix ... Inverse(A) if A is square, pseudoinverse otherwise. + */ + public function inverse() { + return $this->solve($this->identity($this->m, $this->m)); + } // function inverse() + + + /** + * det + * + * Calculate determinant + * @return float Determinant + */ + public function det() { + $L = new PHPExcel_Shared_JAMA_LUDecomposition($this); + return $L->det(); + } // function det() + + +} // class PHPExcel_Shared_JAMA_Matrix diff --git a/admin/helpers/PHPExcel/Shared/JAMA/QRDecomposition.php b/admin/helpers/PHPExcel/Shared/JAMA/QRDecomposition.php new file mode 100644 index 00000000..75384629 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/JAMA/QRDecomposition.php @@ -0,0 +1,234 @@ +<?php +/** + * @package JAMA + * + * For an m-by-n matrix A with m >= n, the QR decomposition is an m-by-n + * orthogonal matrix Q and an n-by-n upper triangular matrix R so that + * A = Q*R. + * + * The QR decompostion always exists, even if the matrix does not have + * full rank, so the constructor will never fail. The primary use of the + * QR decomposition is in the least squares solution of nonsquare systems + * of simultaneous linear equations. This will fail if isFullRank() + * returns false. + * + * @author Paul Meagher + * @license PHP v3.0 + * @version 1.1 + */ +class PHPExcel_Shared_JAMA_QRDecomposition { + + const MatrixRankException = "Can only perform operation on full-rank matrix."; + + /** + * Array for internal storage of decomposition. + * @var array + */ + private $QR = array(); + + /** + * Row dimension. + * @var integer + */ + private $m; + + /** + * Column dimension. + * @var integer + */ + private $n; + + /** + * Array for internal storage of diagonal of R. + * @var array + */ + private $Rdiag = array(); + + + /** + * QR Decomposition computed by Householder reflections. + * + * @param matrix $A Rectangular matrix + * @return Structure to access R and the Householder vectors and compute Q. + */ + public function __construct($A) { + if($A instanceof PHPExcel_Shared_JAMA_Matrix) { + // Initialize. + $this->QR = $A->getArrayCopy(); + $this->m = $A->getRowDimension(); + $this->n = $A->getColumnDimension(); + // Main loop. + for ($k = 0; $k < $this->n; ++$k) { + // Compute 2-norm of k-th column without under/overflow. + $nrm = 0.0; + for ($i = $k; $i < $this->m; ++$i) { + $nrm = hypo($nrm, $this->QR[$i][$k]); + } + if ($nrm != 0.0) { + // Form k-th Householder vector. + if ($this->QR[$k][$k] < 0) { + $nrm = -$nrm; + } + for ($i = $k; $i < $this->m; ++$i) { + $this->QR[$i][$k] /= $nrm; + } + $this->QR[$k][$k] += 1.0; + // Apply transformation to remaining columns. + for ($j = $k+1; $j < $this->n; ++$j) { + $s = 0.0; + for ($i = $k; $i < $this->m; ++$i) { + $s += $this->QR[$i][$k] * $this->QR[$i][$j]; + } + $s = -$s/$this->QR[$k][$k]; + for ($i = $k; $i < $this->m; ++$i) { + $this->QR[$i][$j] += $s * $this->QR[$i][$k]; + } + } + } + $this->Rdiag[$k] = -$nrm; + } + } else { + throw new PHPExcel_Calculation_Exception(PHPExcel_Shared_JAMA_Matrix::ArgumentTypeException); + } + } // function __construct() + + + /** + * Is the matrix full rank? + * + * @return boolean true if R, and hence A, has full rank, else false. + */ + public function isFullRank() { + for ($j = 0; $j < $this->n; ++$j) { + if ($this->Rdiag[$j] == 0) { + return false; + } + } + return true; + } // function isFullRank() + + + /** + * Return the Householder vectors + * + * @return Matrix Lower trapezoidal matrix whose columns define the reflections + */ + public function getH() { + for ($i = 0; $i < $this->m; ++$i) { + for ($j = 0; $j < $this->n; ++$j) { + if ($i >= $j) { + $H[$i][$j] = $this->QR[$i][$j]; + } else { + $H[$i][$j] = 0.0; + } + } + } + return new PHPExcel_Shared_JAMA_Matrix($H); + } // function getH() + + + /** + * Return the upper triangular factor + * + * @return Matrix upper triangular factor + */ + public function getR() { + for ($i = 0; $i < $this->n; ++$i) { + for ($j = 0; $j < $this->n; ++$j) { + if ($i < $j) { + $R[$i][$j] = $this->QR[$i][$j]; + } elseif ($i == $j) { + $R[$i][$j] = $this->Rdiag[$i]; + } else { + $R[$i][$j] = 0.0; + } + } + } + return new PHPExcel_Shared_JAMA_Matrix($R); + } // function getR() + + + /** + * Generate and return the (economy-sized) orthogonal factor + * + * @return Matrix orthogonal factor + */ + public function getQ() { + for ($k = $this->n-1; $k >= 0; --$k) { + for ($i = 0; $i < $this->m; ++$i) { + $Q[$i][$k] = 0.0; + } + $Q[$k][$k] = 1.0; + for ($j = $k; $j < $this->n; ++$j) { + if ($this->QR[$k][$k] != 0) { + $s = 0.0; + for ($i = $k; $i < $this->m; ++$i) { + $s += $this->QR[$i][$k] * $Q[$i][$j]; + } + $s = -$s/$this->QR[$k][$k]; + for ($i = $k; $i < $this->m; ++$i) { + $Q[$i][$j] += $s * $this->QR[$i][$k]; + } + } + } + } + /* + for($i = 0; $i < count($Q); ++$i) { + for($j = 0; $j < count($Q); ++$j) { + if(! isset($Q[$i][$j]) ) { + $Q[$i][$j] = 0; + } + } + } + */ + return new PHPExcel_Shared_JAMA_Matrix($Q); + } // function getQ() + + + /** + * Least squares solution of A*X = B + * + * @param Matrix $B A Matrix with as many rows as A and any number of columns. + * @return Matrix Matrix that minimizes the two norm of Q*R*X-B. + */ + public function solve($B) { + if ($B->getRowDimension() == $this->m) { + if ($this->isFullRank()) { + // Copy right hand side + $nx = $B->getColumnDimension(); + $X = $B->getArrayCopy(); + // Compute Y = transpose(Q)*B + for ($k = 0; $k < $this->n; ++$k) { + for ($j = 0; $j < $nx; ++$j) { + $s = 0.0; + for ($i = $k; $i < $this->m; ++$i) { + $s += $this->QR[$i][$k] * $X[$i][$j]; + } + $s = -$s/$this->QR[$k][$k]; + for ($i = $k; $i < $this->m; ++$i) { + $X[$i][$j] += $s * $this->QR[$i][$k]; + } + } + } + // Solve R*X = Y; + for ($k = $this->n-1; $k >= 0; --$k) { + for ($j = 0; $j < $nx; ++$j) { + $X[$k][$j] /= $this->Rdiag[$k]; + } + for ($i = 0; $i < $k; ++$i) { + for ($j = 0; $j < $nx; ++$j) { + $X[$i][$j] -= $X[$k][$j]* $this->QR[$i][$k]; + } + } + } + $X = new PHPExcel_Shared_JAMA_Matrix($X); + return ($X->getMatrix(0, $this->n-1, 0, $nx)); + } else { + throw new PHPExcel_Calculation_Exception(self::MatrixRankException); + } + } else { + throw new PHPExcel_Calculation_Exception(PHPExcel_Shared_JAMA_Matrix::MatrixDimensionException); + } + } // function solve() + +} // PHPExcel_Shared_JAMA_class QRDecomposition diff --git a/admin/helpers/PHPExcel/Shared/JAMA/SingularValueDecomposition.php b/admin/helpers/PHPExcel/Shared/JAMA/SingularValueDecomposition.php new file mode 100644 index 00000000..a4b096c5 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/JAMA/SingularValueDecomposition.php @@ -0,0 +1,526 @@ +<?php +/** + * @package JAMA + * + * For an m-by-n matrix A with m >= n, the singular value decomposition is + * an m-by-n orthogonal matrix U, an n-by-n diagonal matrix S, and + * an n-by-n orthogonal matrix V so that A = U*S*V'. + * + * The singular values, sigma[$k] = S[$k][$k], are ordered so that + * sigma[0] >= sigma[1] >= ... >= sigma[n-1]. + * + * The singular value decompostion always exists, so the constructor will + * never fail. The matrix condition number and the effective numerical + * rank can be computed from this decomposition. + * + * @author Paul Meagher + * @license PHP v3.0 + * @version 1.1 + */ +class SingularValueDecomposition { + + /** + * Internal storage of U. + * @var array + */ + private $U = array(); + + /** + * Internal storage of V. + * @var array + */ + private $V = array(); + + /** + * Internal storage of singular values. + * @var array + */ + private $s = array(); + + /** + * Row dimension. + * @var int + */ + private $m; + + /** + * Column dimension. + * @var int + */ + private $n; + + + /** + * Construct the singular value decomposition + * + * Derived from LINPACK code. + * + * @param $A Rectangular matrix + * @return Structure to access U, S and V. + */ + public function __construct($Arg) { + + // Initialize. + $A = $Arg->getArrayCopy(); + $this->m = $Arg->getRowDimension(); + $this->n = $Arg->getColumnDimension(); + $nu = min($this->m, $this->n); + $e = array(); + $work = array(); + $wantu = true; + $wantv = true; + $nct = min($this->m - 1, $this->n); + $nrt = max(0, min($this->n - 2, $this->m)); + + // Reduce A to bidiagonal form, storing the diagonal elements + // in s and the super-diagonal elements in e. + for ($k = 0; $k < max($nct,$nrt); ++$k) { + + if ($k < $nct) { + // Compute the transformation for the k-th column and + // place the k-th diagonal in s[$k]. + // Compute 2-norm of k-th column without under/overflow. + $this->s[$k] = 0; + for ($i = $k; $i < $this->m; ++$i) { + $this->s[$k] = hypo($this->s[$k], $A[$i][$k]); + } + if ($this->s[$k] != 0.0) { + if ($A[$k][$k] < 0.0) { + $this->s[$k] = -$this->s[$k]; + } + for ($i = $k; $i < $this->m; ++$i) { + $A[$i][$k] /= $this->s[$k]; + } + $A[$k][$k] += 1.0; + } + $this->s[$k] = -$this->s[$k]; + } + + for ($j = $k + 1; $j < $this->n; ++$j) { + if (($k < $nct) & ($this->s[$k] != 0.0)) { + // Apply the transformation. + $t = 0; + for ($i = $k; $i < $this->m; ++$i) { + $t += $A[$i][$k] * $A[$i][$j]; + } + $t = -$t / $A[$k][$k]; + for ($i = $k; $i < $this->m; ++$i) { + $A[$i][$j] += $t * $A[$i][$k]; + } + // Place the k-th row of A into e for the + // subsequent calculation of the row transformation. + $e[$j] = $A[$k][$j]; + } + } + + if ($wantu AND ($k < $nct)) { + // Place the transformation in U for subsequent back + // multiplication. + for ($i = $k; $i < $this->m; ++$i) { + $this->U[$i][$k] = $A[$i][$k]; + } + } + + if ($k < $nrt) { + // Compute the k-th row transformation and place the + // k-th super-diagonal in e[$k]. + // Compute 2-norm without under/overflow. + $e[$k] = 0; + for ($i = $k + 1; $i < $this->n; ++$i) { + $e[$k] = hypo($e[$k], $e[$i]); + } + if ($e[$k] != 0.0) { + if ($e[$k+1] < 0.0) { + $e[$k] = -$e[$k]; + } + for ($i = $k + 1; $i < $this->n; ++$i) { + $e[$i] /= $e[$k]; + } + $e[$k+1] += 1.0; + } + $e[$k] = -$e[$k]; + if (($k+1 < $this->m) AND ($e[$k] != 0.0)) { + // Apply the transformation. + for ($i = $k+1; $i < $this->m; ++$i) { + $work[$i] = 0.0; + } + for ($j = $k+1; $j < $this->n; ++$j) { + for ($i = $k+1; $i < $this->m; ++$i) { + $work[$i] += $e[$j] * $A[$i][$j]; + } + } + for ($j = $k + 1; $j < $this->n; ++$j) { + $t = -$e[$j] / $e[$k+1]; + for ($i = $k + 1; $i < $this->m; ++$i) { + $A[$i][$j] += $t * $work[$i]; + } + } + } + if ($wantv) { + // Place the transformation in V for subsequent + // back multiplication. + for ($i = $k + 1; $i < $this->n; ++$i) { + $this->V[$i][$k] = $e[$i]; + } + } + } + } + + // Set up the final bidiagonal matrix or order p. + $p = min($this->n, $this->m + 1); + if ($nct < $this->n) { + $this->s[$nct] = $A[$nct][$nct]; + } + if ($this->m < $p) { + $this->s[$p-1] = 0.0; + } + if ($nrt + 1 < $p) { + $e[$nrt] = $A[$nrt][$p-1]; + } + $e[$p-1] = 0.0; + // If required, generate U. + if ($wantu) { + for ($j = $nct; $j < $nu; ++$j) { + for ($i = 0; $i < $this->m; ++$i) { + $this->U[$i][$j] = 0.0; + } + $this->U[$j][$j] = 1.0; + } + for ($k = $nct - 1; $k >= 0; --$k) { + if ($this->s[$k] != 0.0) { + for ($j = $k + 1; $j < $nu; ++$j) { + $t = 0; + for ($i = $k; $i < $this->m; ++$i) { + $t += $this->U[$i][$k] * $this->U[$i][$j]; + } + $t = -$t / $this->U[$k][$k]; + for ($i = $k; $i < $this->m; ++$i) { + $this->U[$i][$j] += $t * $this->U[$i][$k]; + } + } + for ($i = $k; $i < $this->m; ++$i ) { + $this->U[$i][$k] = -$this->U[$i][$k]; + } + $this->U[$k][$k] = 1.0 + $this->U[$k][$k]; + for ($i = 0; $i < $k - 1; ++$i) { + $this->U[$i][$k] = 0.0; + } + } else { + for ($i = 0; $i < $this->m; ++$i) { + $this->U[$i][$k] = 0.0; + } + $this->U[$k][$k] = 1.0; + } + } + } + + // If required, generate V. + if ($wantv) { + for ($k = $this->n - 1; $k >= 0; --$k) { + if (($k < $nrt) AND ($e[$k] != 0.0)) { + for ($j = $k + 1; $j < $nu; ++$j) { + $t = 0; + for ($i = $k + 1; $i < $this->n; ++$i) { + $t += $this->V[$i][$k]* $this->V[$i][$j]; + } + $t = -$t / $this->V[$k+1][$k]; + for ($i = $k + 1; $i < $this->n; ++$i) { + $this->V[$i][$j] += $t * $this->V[$i][$k]; + } + } + } + for ($i = 0; $i < $this->n; ++$i) { + $this->V[$i][$k] = 0.0; + } + $this->V[$k][$k] = 1.0; + } + } + + // Main iteration loop for the singular values. + $pp = $p - 1; + $iter = 0; + $eps = pow(2.0, -52.0); + + while ($p > 0) { + // Here is where a test for too many iterations would go. + // This section of the program inspects for negligible + // elements in the s and e arrays. On completion the + // variables kase and k are set as follows: + // kase = 1 if s(p) and e[k-1] are negligible and k<p + // kase = 2 if s(k) is negligible and k<p + // kase = 3 if e[k-1] is negligible, k<p, and + // s(k), ..., s(p) are not negligible (qr step). + // kase = 4 if e(p-1) is negligible (convergence). + for ($k = $p - 2; $k >= -1; --$k) { + if ($k == -1) { + break; + } + if (abs($e[$k]) <= $eps * (abs($this->s[$k]) + abs($this->s[$k+1]))) { + $e[$k] = 0.0; + break; + } + } + if ($k == $p - 2) { + $kase = 4; + } else { + for ($ks = $p - 1; $ks >= $k; --$ks) { + if ($ks == $k) { + break; + } + $t = ($ks != $p ? abs($e[$ks]) : 0.) + ($ks != $k + 1 ? abs($e[$ks-1]) : 0.); + if (abs($this->s[$ks]) <= $eps * $t) { + $this->s[$ks] = 0.0; + break; + } + } + if ($ks == $k) { + $kase = 3; + } else if ($ks == $p-1) { + $kase = 1; + } else { + $kase = 2; + $k = $ks; + } + } + ++$k; + + // Perform the task indicated by kase. + switch ($kase) { + // Deflate negligible s(p). + case 1: + $f = $e[$p-2]; + $e[$p-2] = 0.0; + for ($j = $p - 2; $j >= $k; --$j) { + $t = hypo($this->s[$j],$f); + $cs = $this->s[$j] / $t; + $sn = $f / $t; + $this->s[$j] = $t; + if ($j != $k) { + $f = -$sn * $e[$j-1]; + $e[$j-1] = $cs * $e[$j-1]; + } + if ($wantv) { + for ($i = 0; $i < $this->n; ++$i) { + $t = $cs * $this->V[$i][$j] + $sn * $this->V[$i][$p-1]; + $this->V[$i][$p-1] = -$sn * $this->V[$i][$j] + $cs * $this->V[$i][$p-1]; + $this->V[$i][$j] = $t; + } + } + } + break; + // Split at negligible s(k). + case 2: + $f = $e[$k-1]; + $e[$k-1] = 0.0; + for ($j = $k; $j < $p; ++$j) { + $t = hypo($this->s[$j], $f); + $cs = $this->s[$j] / $t; + $sn = $f / $t; + $this->s[$j] = $t; + $f = -$sn * $e[$j]; + $e[$j] = $cs * $e[$j]; + if ($wantu) { + for ($i = 0; $i < $this->m; ++$i) { + $t = $cs * $this->U[$i][$j] + $sn * $this->U[$i][$k-1]; + $this->U[$i][$k-1] = -$sn * $this->U[$i][$j] + $cs * $this->U[$i][$k-1]; + $this->U[$i][$j] = $t; + } + } + } + break; + // Perform one qr step. + case 3: + // Calculate the shift. + $scale = max(max(max(max( + abs($this->s[$p-1]),abs($this->s[$p-2])),abs($e[$p-2])), + abs($this->s[$k])), abs($e[$k])); + $sp = $this->s[$p-1] / $scale; + $spm1 = $this->s[$p-2] / $scale; + $epm1 = $e[$p-2] / $scale; + $sk = $this->s[$k] / $scale; + $ek = $e[$k] / $scale; + $b = (($spm1 + $sp) * ($spm1 - $sp) + $epm1 * $epm1) / 2.0; + $c = ($sp * $epm1) * ($sp * $epm1); + $shift = 0.0; + if (($b != 0.0) || ($c != 0.0)) { + $shift = sqrt($b * $b + $c); + if ($b < 0.0) { + $shift = -$shift; + } + $shift = $c / ($b + $shift); + } + $f = ($sk + $sp) * ($sk - $sp) + $shift; + $g = $sk * $ek; + // Chase zeros. + for ($j = $k; $j < $p-1; ++$j) { + $t = hypo($f,$g); + $cs = $f/$t; + $sn = $g/$t; + if ($j != $k) { + $e[$j-1] = $t; + } + $f = $cs * $this->s[$j] + $sn * $e[$j]; + $e[$j] = $cs * $e[$j] - $sn * $this->s[$j]; + $g = $sn * $this->s[$j+1]; + $this->s[$j+1] = $cs * $this->s[$j+1]; + if ($wantv) { + for ($i = 0; $i < $this->n; ++$i) { + $t = $cs * $this->V[$i][$j] + $sn * $this->V[$i][$j+1]; + $this->V[$i][$j+1] = -$sn * $this->V[$i][$j] + $cs * $this->V[$i][$j+1]; + $this->V[$i][$j] = $t; + } + } + $t = hypo($f,$g); + $cs = $f/$t; + $sn = $g/$t; + $this->s[$j] = $t; + $f = $cs * $e[$j] + $sn * $this->s[$j+1]; + $this->s[$j+1] = -$sn * $e[$j] + $cs * $this->s[$j+1]; + $g = $sn * $e[$j+1]; + $e[$j+1] = $cs * $e[$j+1]; + if ($wantu && ($j < $this->m - 1)) { + for ($i = 0; $i < $this->m; ++$i) { + $t = $cs * $this->U[$i][$j] + $sn * $this->U[$i][$j+1]; + $this->U[$i][$j+1] = -$sn * $this->U[$i][$j] + $cs * $this->U[$i][$j+1]; + $this->U[$i][$j] = $t; + } + } + } + $e[$p-2] = $f; + $iter = $iter + 1; + break; + // Convergence. + case 4: + // Make the singular values positive. + if ($this->s[$k] <= 0.0) { + $this->s[$k] = ($this->s[$k] < 0.0 ? -$this->s[$k] : 0.0); + if ($wantv) { + for ($i = 0; $i <= $pp; ++$i) { + $this->V[$i][$k] = -$this->V[$i][$k]; + } + } + } + // Order the singular values. + while ($k < $pp) { + if ($this->s[$k] >= $this->s[$k+1]) { + break; + } + $t = $this->s[$k]; + $this->s[$k] = $this->s[$k+1]; + $this->s[$k+1] = $t; + if ($wantv AND ($k < $this->n - 1)) { + for ($i = 0; $i < $this->n; ++$i) { + $t = $this->V[$i][$k+1]; + $this->V[$i][$k+1] = $this->V[$i][$k]; + $this->V[$i][$k] = $t; + } + } + if ($wantu AND ($k < $this->m-1)) { + for ($i = 0; $i < $this->m; ++$i) { + $t = $this->U[$i][$k+1]; + $this->U[$i][$k+1] = $this->U[$i][$k]; + $this->U[$i][$k] = $t; + } + } + ++$k; + } + $iter = 0; + --$p; + break; + } // end switch + } // end while + + } // end constructor + + + /** + * Return the left singular vectors + * + * @access public + * @return U + */ + public function getU() { + return new Matrix($this->U, $this->m, min($this->m + 1, $this->n)); + } + + + /** + * Return the right singular vectors + * + * @access public + * @return V + */ + public function getV() { + return new Matrix($this->V); + } + + + /** + * Return the one-dimensional array of singular values + * + * @access public + * @return diagonal of S. + */ + public function getSingularValues() { + return $this->s; + } + + + /** + * Return the diagonal matrix of singular values + * + * @access public + * @return S + */ + public function getS() { + for ($i = 0; $i < $this->n; ++$i) { + for ($j = 0; $j < $this->n; ++$j) { + $S[$i][$j] = 0.0; + } + $S[$i][$i] = $this->s[$i]; + } + return new Matrix($S); + } + + + /** + * Two norm + * + * @access public + * @return max(S) + */ + public function norm2() { + return $this->s[0]; + } + + + /** + * Two norm condition number + * + * @access public + * @return max(S)/min(S) + */ + public function cond() { + return $this->s[0] / $this->s[min($this->m, $this->n) - 1]; + } + + + /** + * Effective numerical matrix rank + * + * @access public + * @return Number of nonnegligible singular values. + */ + public function rank() { + $eps = pow(2.0, -52.0); + $tol = max($this->m, $this->n) * $this->s[0] * $eps; + $r = 0; + for ($i = 0; $i < count($this->s); ++$i) { + if ($this->s[$i] > $tol) { + ++$r; + } + } + return $r; + } + +} // class SingularValueDecomposition diff --git a/admin/helpers/PHPExcel/Shared/JAMA/index.html b/admin/helpers/PHPExcel/Shared/JAMA/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/JAMA/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/JAMA/utils/Error.php b/admin/helpers/PHPExcel/Shared/JAMA/utils/Error.php new file mode 100644 index 00000000..e73252b3 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/JAMA/utils/Error.php @@ -0,0 +1,82 @@ +<?php +/** + * @package JAMA + * + * Error handling + * @author Michael Bommarito + * @version 01292005 + */ + +//Language constant +define('JAMALANG', 'EN'); + + +//All errors may be defined by the following format: +//define('ExceptionName', N); +//$error['lang'][ExceptionName] = 'Error message'; +$error = array(); + +/* +I've used Babelfish and a little poor knowledge of Romance/Germanic languages for the translations here. +Feel free to correct anything that looks amiss to you. +*/ + +define('PolymorphicArgumentException', -1); +$error['EN'][PolymorphicArgumentException] = "Invalid argument pattern for polymorphic function."; +$error['FR'][PolymorphicArgumentException] = "Modèle inadmissible d'argument pour la fonction polymorphe.". +$error['DE'][PolymorphicArgumentException] = "Unzulässiges Argumentmuster für polymorphe Funktion."; + +define('ArgumentTypeException', -2); +$error['EN'][ArgumentTypeException] = "Invalid argument type."; +$error['FR'][ArgumentTypeException] = "Type inadmissible d'argument."; +$error['DE'][ArgumentTypeException] = "Unzulässige Argumentart."; + +define('ArgumentBoundsException', -3); +$error['EN'][ArgumentBoundsException] = "Invalid argument range."; +$error['FR'][ArgumentBoundsException] = "Gamme inadmissible d'argument."; +$error['DE'][ArgumentBoundsException] = "Unzulässige Argumentstrecke."; + +define('MatrixDimensionException', -4); +$error['EN'][MatrixDimensionException] = "Matrix dimensions are not equal."; +$error['FR'][MatrixDimensionException] = "Les dimensions de Matrix ne sont pas égales."; +$error['DE'][MatrixDimensionException] = "Matrixmaße sind nicht gleich."; + +define('PrecisionLossException', -5); +$error['EN'][PrecisionLossException] = "Significant precision loss detected."; +$error['FR'][PrecisionLossException] = "Perte significative de précision détectée."; +$error['DE'][PrecisionLossException] = "Bedeutender Präzision Verlust ermittelte."; + +define('MatrixSPDException', -6); +$error['EN'][MatrixSPDException] = "Can only perform operation on symmetric positive definite matrix."; +$error['FR'][MatrixSPDException] = "Perte significative de précision détectée."; +$error['DE'][MatrixSPDException] = "Bedeutender Präzision Verlust ermittelte."; + +define('MatrixSingularException', -7); +$error['EN'][MatrixSingularException] = "Can only perform operation on singular matrix."; + +define('MatrixRankException', -8); +$error['EN'][MatrixRankException] = "Can only perform operation on full-rank matrix."; + +define('ArrayLengthException', -9); +$error['EN'][ArrayLengthException] = "Array length must be a multiple of m."; + +define('RowLengthException', -10); +$error['EN'][RowLengthException] = "All rows must have the same length."; + +/** + * Custom error handler + * @param int $num Error number + */ +function JAMAError($errorNumber = null) { + global $error; + + if (isset($errorNumber)) { + if (isset($error[JAMALANG][$errorNumber])) { + return $error[JAMALANG][$errorNumber]; + } else { + return $error['EN'][$errorNumber]; + } + } else { + return ("Invalid argument to JAMAError()"); + } +} diff --git a/admin/helpers/PHPExcel/Shared/JAMA/utils/Maths.php b/admin/helpers/PHPExcel/Shared/JAMA/utils/Maths.php new file mode 100644 index 00000000..aa09a8bb --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/JAMA/utils/Maths.php @@ -0,0 +1,43 @@ +<?php +/** + * @package JAMA + * + * Pythagorean Theorem: + * + * a = 3 + * b = 4 + * r = sqrt(square(a) + square(b)) + * r = 5 + * + * r = sqrt(a^2 + b^2) without under/overflow. + */ +function hypo($a, $b) { + if (abs($a) > abs($b)) { + $r = $b / $a; + $r = abs($a) * sqrt(1 + $r * $r); + } elseif ($b != 0) { + $r = $a / $b; + $r = abs($b) * sqrt(1 + $r * $r); + } else { + $r = 0.0; + } + return $r; +} // function hypo() + + +/** + * Mike Bommarito's version. + * Compute n-dimensional hyotheneuse. + * +function hypot() { + $s = 0; + foreach (func_get_args() as $d) { + if (is_numeric($d)) { + $s += pow($d, 2); + } else { + throw new PHPExcel_Calculation_Exception(JAMAError(ArgumentTypeException)); + } + } + return sqrt($s); +} +*/ diff --git a/admin/helpers/PHPExcel/Shared/JAMA/utils/index.html b/admin/helpers/PHPExcel/Shared/JAMA/utils/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/JAMA/utils/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/OLE.php b/admin/helpers/PHPExcel/Shared/OLE.php new file mode 100644 index 00000000..9796282a --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/OLE.php @@ -0,0 +1,531 @@ +<?php +/* vim: set expandtab tabstop=4 shiftwidth=4: */ +// +----------------------------------------------------------------------+ +// | PHP Version 4 | +// +----------------------------------------------------------------------+ +// | Copyright (c) 1997-2002 The PHP Group | +// +----------------------------------------------------------------------+ +// | This source file is subject to version 2.02 of the PHP license, | +// | that is bundled with this package in the file LICENSE, and is | +// | available at through the world-wide-web at | +// | http://www.php.net/license/2_02.txt. | +// | If you did not receive a copy of the PHP license and are unable to | +// | obtain it through the world-wide-web, please send a note to | +// | license@php.net so we can mail you a copy immediately. | +// +----------------------------------------------------------------------+ +// | Author: Xavier Noguer <xnoguer@php.net> | +// | Based on OLE::Storage_Lite by Kawai, Takanori | +// +----------------------------------------------------------------------+ +// +// $Id: OLE.php,v 1.13 2007/03/07 14:38:25 schmidt Exp $ + + +/** +* Array for storing OLE instances that are accessed from +* OLE_ChainedBlockStream::stream_open(). +* @var array +*/ +$GLOBALS['_OLE_INSTANCES'] = array(); + +/** +* OLE package base class. +* +* @author Xavier Noguer <xnoguer@php.net> +* @author Christian Schmidt <schmidt@php.net> +* @category PHPExcel +* @package PHPExcel_Shared_OLE +*/ +class PHPExcel_Shared_OLE +{ + const OLE_PPS_TYPE_ROOT = 5; + const OLE_PPS_TYPE_DIR = 1; + const OLE_PPS_TYPE_FILE = 2; + const OLE_DATA_SIZE_SMALL = 0x1000; + const OLE_LONG_INT_SIZE = 4; + const OLE_PPS_SIZE = 0x80; + + /** + * The file handle for reading an OLE container + * @var resource + */ + public $_file_handle; + + /** + * Array of PPS's found on the OLE container + * @var array + */ + public $_list = array(); + + /** + * Root directory of OLE container + * @var OLE_PPS_Root + */ + public $root; + + /** + * Big Block Allocation Table + * @var array (blockId => nextBlockId) + */ + public $bbat; + + /** + * Short Block Allocation Table + * @var array (blockId => nextBlockId) + */ + public $sbat; + + /** + * Size of big blocks. This is usually 512. + * @var int number of octets per block. + */ + public $bigBlockSize; + + /** + * Size of small blocks. This is usually 64. + * @var int number of octets per block + */ + public $smallBlockSize; + + /** + * Reads an OLE container from the contents of the file given. + * + * @acces public + * @param string $file + * @return mixed true on success, PEAR_Error on failure + */ + public function read($file) + { + $fh = fopen($file, "r"); + if (!$fh) { + throw new PHPExcel_Reader_Exception("Can't open file $file"); + } + $this->_file_handle = $fh; + + $signature = fread($fh, 8); + if ("\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1" != $signature) { + throw new PHPExcel_Reader_Exception("File doesn't seem to be an OLE container."); + } + fseek($fh, 28); + if (fread($fh, 2) != "\xFE\xFF") { + // This shouldn't be a problem in practice + throw new PHPExcel_Reader_Exception("Only Little-Endian encoding is supported."); + } + // Size of blocks and short blocks in bytes + $this->bigBlockSize = pow(2, self::_readInt2($fh)); + $this->smallBlockSize = pow(2, self::_readInt2($fh)); + + // Skip UID, revision number and version number + fseek($fh, 44); + // Number of blocks in Big Block Allocation Table + $bbatBlockCount = self::_readInt4($fh); + + // Root chain 1st block + $directoryFirstBlockId = self::_readInt4($fh); + + // Skip unused bytes + fseek($fh, 56); + // Streams shorter than this are stored using small blocks + $this->bigBlockThreshold = self::_readInt4($fh); + // Block id of first sector in Short Block Allocation Table + $sbatFirstBlockId = self::_readInt4($fh); + // Number of blocks in Short Block Allocation Table + $sbbatBlockCount = self::_readInt4($fh); + // Block id of first sector in Master Block Allocation Table + $mbatFirstBlockId = self::_readInt4($fh); + // Number of blocks in Master Block Allocation Table + $mbbatBlockCount = self::_readInt4($fh); + $this->bbat = array(); + + // Remaining 4 * 109 bytes of current block is beginning of Master + // Block Allocation Table + $mbatBlocks = array(); + for ($i = 0; $i < 109; ++$i) { + $mbatBlocks[] = self::_readInt4($fh); + } + + // Read rest of Master Block Allocation Table (if any is left) + $pos = $this->_getBlockOffset($mbatFirstBlockId); + for ($i = 0; $i < $mbbatBlockCount; ++$i) { + fseek($fh, $pos); + for ($j = 0; $j < $this->bigBlockSize / 4 - 1; ++$j) { + $mbatBlocks[] = self::_readInt4($fh); + } + // Last block id in each block points to next block + $pos = $this->_getBlockOffset(self::_readInt4($fh)); + } + + // Read Big Block Allocation Table according to chain specified by + // $mbatBlocks + for ($i = 0; $i < $bbatBlockCount; ++$i) { + $pos = $this->_getBlockOffset($mbatBlocks[$i]); + fseek($fh, $pos); + for ($j = 0 ; $j < $this->bigBlockSize / 4; ++$j) { + $this->bbat[] = self::_readInt4($fh); + } + } + + // Read short block allocation table (SBAT) + $this->sbat = array(); + $shortBlockCount = $sbbatBlockCount * $this->bigBlockSize / 4; + $sbatFh = $this->getStream($sbatFirstBlockId); + for ($blockId = 0; $blockId < $shortBlockCount; ++$blockId) { + $this->sbat[$blockId] = self::_readInt4($sbatFh); + } + fclose($sbatFh); + + $this->_readPpsWks($directoryFirstBlockId); + + return true; + } + + /** + * @param int block id + * @param int byte offset from beginning of file + * @access public + */ + public function _getBlockOffset($blockId) + { + return 512 + $blockId * $this->bigBlockSize; + } + + /** + * Returns a stream for use with fread() etc. External callers should + * use PHPExcel_Shared_OLE_PPS_File::getStream(). + * @param int|PPS block id or PPS + * @return resource read-only stream + */ + public function getStream($blockIdOrPps) + { + static $isRegistered = false; + if (!$isRegistered) { + stream_wrapper_register('ole-chainedblockstream', + 'PHPExcel_Shared_OLE_ChainedBlockStream'); + $isRegistered = true; + } + + // Store current instance in global array, so that it can be accessed + // in OLE_ChainedBlockStream::stream_open(). + // Object is removed from self::$instances in OLE_Stream::close(). + $GLOBALS['_OLE_INSTANCES'][] = $this; + $instanceId = end(array_keys($GLOBALS['_OLE_INSTANCES'])); + + $path = 'ole-chainedblockstream://oleInstanceId=' . $instanceId; + if ($blockIdOrPps instanceof PHPExcel_Shared_OLE_PPS) { + $path .= '&blockId=' . $blockIdOrPps->_StartBlock; + $path .= '&size=' . $blockIdOrPps->Size; + } else { + $path .= '&blockId=' . $blockIdOrPps; + } + return fopen($path, 'r'); + } + + /** + * Reads a signed char. + * @param resource file handle + * @return int + * @access public + */ + private static function _readInt1($fh) + { + list(, $tmp) = unpack("c", fread($fh, 1)); + return $tmp; + } + + /** + * Reads an unsigned short (2 octets). + * @param resource file handle + * @return int + * @access public + */ + private static function _readInt2($fh) + { + list(, $tmp) = unpack("v", fread($fh, 2)); + return $tmp; + } + + /** + * Reads an unsigned long (4 octets). + * @param resource file handle + * @return int + * @access public + */ + private static function _readInt4($fh) + { + list(, $tmp) = unpack("V", fread($fh, 4)); + return $tmp; + } + + /** + * Gets information about all PPS's on the OLE container from the PPS WK's + * creates an OLE_PPS object for each one. + * + * @access public + * @param integer the block id of the first block + * @return mixed true on success, PEAR_Error on failure + */ + public function _readPpsWks($blockId) + { + $fh = $this->getStream($blockId); + for ($pos = 0; ; $pos += 128) { + fseek($fh, $pos, SEEK_SET); + $nameUtf16 = fread($fh, 64); + $nameLength = self::_readInt2($fh); + $nameUtf16 = substr($nameUtf16, 0, $nameLength - 2); + // Simple conversion from UTF-16LE to ISO-8859-1 + $name = str_replace("\x00", "", $nameUtf16); + $type = self::_readInt1($fh); + switch ($type) { + case self::OLE_PPS_TYPE_ROOT: + $pps = new PHPExcel_Shared_OLE_PPS_Root(null, null, array()); + $this->root = $pps; + break; + case self::OLE_PPS_TYPE_DIR: + $pps = new PHPExcel_Shared_OLE_PPS(null, null, null, null, null, + null, null, null, null, array()); + break; + case self::OLE_PPS_TYPE_FILE: + $pps = new PHPExcel_Shared_OLE_PPS_File($name); + break; + default: + continue; + } + fseek($fh, 1, SEEK_CUR); + $pps->Type = $type; + $pps->Name = $name; + $pps->PrevPps = self::_readInt4($fh); + $pps->NextPps = self::_readInt4($fh); + $pps->DirPps = self::_readInt4($fh); + fseek($fh, 20, SEEK_CUR); + $pps->Time1st = self::OLE2LocalDate(fread($fh, 8)); + $pps->Time2nd = self::OLE2LocalDate(fread($fh, 8)); + $pps->_StartBlock = self::_readInt4($fh); + $pps->Size = self::_readInt4($fh); + $pps->No = count($this->_list); + $this->_list[] = $pps; + + // check if the PPS tree (starting from root) is complete + if (isset($this->root) && + $this->_ppsTreeComplete($this->root->No)) { + + break; + } + } + fclose($fh); + + // Initialize $pps->children on directories + foreach ($this->_list as $pps) { + if ($pps->Type == self::OLE_PPS_TYPE_DIR || $pps->Type == self::OLE_PPS_TYPE_ROOT) { + $nos = array($pps->DirPps); + $pps->children = array(); + while ($nos) { + $no = array_pop($nos); + if ($no != -1) { + $childPps = $this->_list[$no]; + $nos[] = $childPps->PrevPps; + $nos[] = $childPps->NextPps; + $pps->children[] = $childPps; + } + } + } + } + + return true; + } + + /** + * It checks whether the PPS tree is complete (all PPS's read) + * starting with the given PPS (not necessarily root) + * + * @access public + * @param integer $index The index of the PPS from which we are checking + * @return boolean Whether the PPS tree for the given PPS is complete + */ + public function _ppsTreeComplete($index) + { + return isset($this->_list[$index]) && + ($pps = $this->_list[$index]) && + ($pps->PrevPps == -1 || + $this->_ppsTreeComplete($pps->PrevPps)) && + ($pps->NextPps == -1 || + $this->_ppsTreeComplete($pps->NextPps)) && + ($pps->DirPps == -1 || + $this->_ppsTreeComplete($pps->DirPps)); + } + + /** + * Checks whether a PPS is a File PPS or not. + * If there is no PPS for the index given, it will return false. + * + * @access public + * @param integer $index The index for the PPS + * @return bool true if it's a File PPS, false otherwise + */ + public function isFile($index) + { + if (isset($this->_list[$index])) { + return ($this->_list[$index]->Type == self::OLE_PPS_TYPE_FILE); + } + return false; + } + + /** + * Checks whether a PPS is a Root PPS or not. + * If there is no PPS for the index given, it will return false. + * + * @access public + * @param integer $index The index for the PPS. + * @return bool true if it's a Root PPS, false otherwise + */ + public function isRoot($index) + { + if (isset($this->_list[$index])) { + return ($this->_list[$index]->Type == self::OLE_PPS_TYPE_ROOT); + } + return false; + } + + /** + * Gives the total number of PPS's found in the OLE container. + * + * @access public + * @return integer The total number of PPS's found in the OLE container + */ + public function ppsTotal() + { + return count($this->_list); + } + + /** + * Gets data from a PPS + * If there is no PPS for the index given, it will return an empty string. + * + * @access public + * @param integer $index The index for the PPS + * @param integer $position The position from which to start reading + * (relative to the PPS) + * @param integer $length The amount of bytes to read (at most) + * @return string The binary string containing the data requested + * @see OLE_PPS_File::getStream() + */ + public function getData($index, $position, $length) + { + // if position is not valid return empty string + if (!isset($this->_list[$index]) || ($position >= $this->_list[$index]->Size) || ($position < 0)) { + return ''; + } + $fh = $this->getStream($this->_list[$index]); + $data = stream_get_contents($fh, $length, $position); + fclose($fh); + return $data; + } + + /** + * Gets the data length from a PPS + * If there is no PPS for the index given, it will return 0. + * + * @access public + * @param integer $index The index for the PPS + * @return integer The amount of bytes in data the PPS has + */ + public function getDataLength($index) + { + if (isset($this->_list[$index])) { + return $this->_list[$index]->Size; + } + return 0; + } + + /** + * Utility function to transform ASCII text to Unicode + * + * @access public + * @static + * @param string $ascii The ASCII string to transform + * @return string The string in Unicode + */ + public static function Asc2Ucs($ascii) + { + $rawname = ''; + for ($i = 0; $i < strlen($ascii); ++$i) { + $rawname .= $ascii{$i} . "\x00"; + } + return $rawname; + } + + /** + * Utility function + * Returns a string for the OLE container with the date given + * + * @access public + * @static + * @param integer $date A timestamp + * @return string The string for the OLE container + */ + public static function LocalDate2OLE($date = null) + { + if (!isset($date)) { + return "\x00\x00\x00\x00\x00\x00\x00\x00"; + } + + // factor used for separating numbers into 4 bytes parts + $factor = pow(2, 32); + + // days from 1-1-1601 until the beggining of UNIX era + $days = 134774; + // calculate seconds + $big_date = $days*24*3600 + gmmktime(date("H",$date),date("i",$date),date("s",$date), + date("m",$date),date("d",$date),date("Y",$date)); + // multiply just to make MS happy + $big_date *= 10000000; + + $high_part = floor($big_date / $factor); + // lower 4 bytes + $low_part = floor((($big_date / $factor) - $high_part) * $factor); + + // Make HEX string + $res = ''; + + for ($i = 0; $i < 4; ++$i) { + $hex = $low_part % 0x100; + $res .= pack('c', $hex); + $low_part /= 0x100; + } + for ($i = 0; $i < 4; ++$i) { + $hex = $high_part % 0x100; + $res .= pack('c', $hex); + $high_part /= 0x100; + } + return $res; + } + + /** + * Returns a timestamp from an OLE container's date + * + * @access public + * @static + * @param integer $string A binary string with the encoded date + * @return string The timestamp corresponding to the string + */ + public static function OLE2LocalDate($string) + { + if (strlen($string) != 8) { + return new PEAR_Error("Expecting 8 byte string"); + } + + // factor used for separating numbers into 4 bytes parts + $factor = pow(2,32); + list(, $high_part) = unpack('V', substr($string, 4, 4)); + list(, $low_part) = unpack('V', substr($string, 0, 4)); + + $big_date = ($high_part * $factor) + $low_part; + // translate to seconds + $big_date /= 10000000; + + // days from 1-1-1601 until the beggining of UNIX era + $days = 134774; + + // translate to seconds from beggining of UNIX era + $big_date -= $days * 24 * 3600; + return floor($big_date); + } +} diff --git a/admin/helpers/PHPExcel/Shared/OLE/ChainedBlockStream.php b/admin/helpers/PHPExcel/Shared/OLE/ChainedBlockStream.php new file mode 100644 index 00000000..0736fc23 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/OLE/ChainedBlockStream.php @@ -0,0 +1,222 @@ +<?php +/** + * PHPExcel + * + * Copyright (C) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_OLE + * @copyright Copyright (c) 2006 - 2007 Christian Schmidt + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +/** + * PHPExcel_Shared_OLE_ChainedBlockStream + * + * Stream wrapper for reading data stored in an OLE file. Implements methods + * for PHP's stream_wrapper_register(). For creating streams using this + * wrapper, use PHPExcel_Shared_OLE_PPS_File::getStream(). + * + * @category PHPExcel + * @package PHPExcel_Shared_OLE + */ +class PHPExcel_Shared_OLE_ChainedBlockStream +{ + /** + * The OLE container of the file that is being read. + * @var OLE + */ + public $ole; + + /** + * Parameters specified by fopen(). + * @var array + */ + public $params; + + /** + * The binary data of the file. + * @var string + */ + public $data; + + /** + * The file pointer. + * @var int byte offset + */ + public $pos; + + /** + * Implements support for fopen(). + * For creating streams using this wrapper, use OLE_PPS_File::getStream(). + * + * @param string $path resource name including scheme, e.g. + * ole-chainedblockstream://oleInstanceId=1 + * @param string $mode only "r" is supported + * @param int $options mask of STREAM_REPORT_ERRORS and STREAM_USE_PATH + * @param string &$openedPath absolute path of the opened stream (out parameter) + * @return bool true on success + */ + public function stream_open($path, $mode, $options, &$openedPath) + { + if ($mode != 'r') { + if ($options & STREAM_REPORT_ERRORS) { + trigger_error('Only reading is supported', E_USER_WARNING); + } + return false; + } + + // 25 is length of "ole-chainedblockstream://" + parse_str(substr($path, 25), $this->params); + if (!isset($this->params['oleInstanceId'], + $this->params['blockId'], + $GLOBALS['_OLE_INSTANCES'][$this->params['oleInstanceId']])) { + + if ($options & STREAM_REPORT_ERRORS) { + trigger_error('OLE stream not found', E_USER_WARNING); + } + return false; + } + $this->ole = $GLOBALS['_OLE_INSTANCES'][$this->params['oleInstanceId']]; + + $blockId = $this->params['blockId']; + $this->data = ''; + if (isset($this->params['size']) && + $this->params['size'] < $this->ole->bigBlockThreshold && + $blockId != $this->ole->root->_StartBlock) { + + // Block id refers to small blocks + $rootPos = $this->ole->_getBlockOffset($this->ole->root->_StartBlock); + while ($blockId != -2) { + $pos = $rootPos + $blockId * $this->ole->bigBlockSize; + $blockId = $this->ole->sbat[$blockId]; + fseek($this->ole->_file_handle, $pos); + $this->data .= fread($this->ole->_file_handle, $this->ole->bigBlockSize); + } + } else { + // Block id refers to big blocks + while ($blockId != -2) { + $pos = $this->ole->_getBlockOffset($blockId); + fseek($this->ole->_file_handle, $pos); + $this->data .= fread($this->ole->_file_handle, $this->ole->bigBlockSize); + $blockId = $this->ole->bbat[$blockId]; + } + } + if (isset($this->params['size'])) { + $this->data = substr($this->data, 0, $this->params['size']); + } + + if ($options & STREAM_USE_PATH) { + $openedPath = $path; + } + + return true; + } + + /** + * Implements support for fclose(). + * + */ + public function stream_close() + { + $this->ole = null; + unset($GLOBALS['_OLE_INSTANCES']); + } + + /** + * Implements support for fread(), fgets() etc. + * + * @param int $count maximum number of bytes to read + * @return string + */ + public function stream_read($count) + { + if ($this->stream_eof()) { + return false; + } + $s = substr($this->data, $this->pos, $count); + $this->pos += $count; + return $s; + } + + /** + * Implements support for feof(). + * + * @return bool TRUE if the file pointer is at EOF; otherwise FALSE + */ + public function stream_eof() + { + return $this->pos >= strlen($this->data); + } + + /** + * Returns the position of the file pointer, i.e. its offset into the file + * stream. Implements support for ftell(). + * + * @return int + */ + public function stream_tell() + { + return $this->pos; + } + + /** + * Implements support for fseek(). + * + * @param int $offset byte offset + * @param int $whence SEEK_SET, SEEK_CUR or SEEK_END + * @return bool + */ + public function stream_seek($offset, $whence) + { + if ($whence == SEEK_SET && $offset >= 0) { + $this->pos = $offset; + } elseif ($whence == SEEK_CUR && -$offset <= $this->pos) { + $this->pos += $offset; + } elseif ($whence == SEEK_END && -$offset <= sizeof($this->data)) { + $this->pos = strlen($this->data) + $offset; + } else { + return false; + } + return true; + } + + /** + * Implements support for fstat(). Currently the only supported field is + * "size". + * @return array + */ + public function stream_stat() + { + return array( + 'size' => strlen($this->data), + ); + } + + // Methods used by stream_wrapper_register() that are not implemented: + // bool stream_flush ( void ) + // int stream_write ( string data ) + // bool rename ( string path_from, string path_to ) + // bool mkdir ( string path, int mode, int options ) + // bool rmdir ( string path, int options ) + // bool dir_opendir ( string path, int options ) + // array url_stat ( string path, int flags ) + // string dir_readdir ( void ) + // bool dir_rewinddir ( void ) + // bool dir_closedir ( void ) +} diff --git a/admin/helpers/PHPExcel/Shared/OLE/PPS.php b/admin/helpers/PHPExcel/Shared/OLE/PPS.php new file mode 100644 index 00000000..4db0ae4e --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/OLE/PPS.php @@ -0,0 +1,230 @@ +<?php +/* vim: set expandtab tabstop=4 shiftwidth=4: */ +// +----------------------------------------------------------------------+ +// | PHP Version 4 | +// +----------------------------------------------------------------------+ +// | Copyright (c) 1997-2002 The PHP Group | +// +----------------------------------------------------------------------+ +// | This source file is subject to version 2.02 of the PHP license, | +// | that is bundled with this package in the file LICENSE, and is | +// | available at through the world-wide-web at | +// | http://www.php.net/license/2_02.txt. | +// | If you did not receive a copy of the PHP license and are unable to | +// | obtain it through the world-wide-web, please send a note to | +// | license@php.net so we can mail you a copy immediately. | +// +----------------------------------------------------------------------+ +// | Author: Xavier Noguer <xnoguer@php.net> | +// | Based on OLE::Storage_Lite by Kawai, Takanori | +// +----------------------------------------------------------------------+ +// +// $Id: PPS.php,v 1.7 2007/02/13 21:00:42 schmidt Exp $ + + +/** +* Class for creating PPS's for OLE containers +* +* @author Xavier Noguer <xnoguer@php.net> +* @category PHPExcel +* @package PHPExcel_Shared_OLE +*/ +class PHPExcel_Shared_OLE_PPS +{ + /** + * The PPS index + * @var integer + */ + public $No; + + /** + * The PPS name (in Unicode) + * @var string + */ + public $Name; + + /** + * The PPS type. Dir, Root or File + * @var integer + */ + public $Type; + + /** + * The index of the previous PPS + * @var integer + */ + public $PrevPps; + + /** + * The index of the next PPS + * @var integer + */ + public $NextPps; + + /** + * The index of it's first child if this is a Dir or Root PPS + * @var integer + */ + public $DirPps; + + /** + * A timestamp + * @var integer + */ + public $Time1st; + + /** + * A timestamp + * @var integer + */ + public $Time2nd; + + /** + * Starting block (small or big) for this PPS's data inside the container + * @var integer + */ + public $_StartBlock; + + /** + * The size of the PPS's data (in bytes) + * @var integer + */ + public $Size; + + /** + * The PPS's data (only used if it's not using a temporary file) + * @var string + */ + public $_data; + + /** + * Array of child PPS's (only used by Root and Dir PPS's) + * @var array + */ + public $children = array(); + + /** + * Pointer to OLE container + * @var OLE + */ + public $ole; + + /** + * The constructor + * + * @access public + * @param integer $No The PPS index + * @param string $name The PPS name + * @param integer $type The PPS type. Dir, Root or File + * @param integer $prev The index of the previous PPS + * @param integer $next The index of the next PPS + * @param integer $dir The index of it's first child if this is a Dir or Root PPS + * @param integer $time_1st A timestamp + * @param integer $time_2nd A timestamp + * @param string $data The (usually binary) source data of the PPS + * @param array $children Array containing children PPS for this PPS + */ + public function __construct($No, $name, $type, $prev, $next, $dir, $time_1st, $time_2nd, $data, $children) + { + $this->No = $No; + $this->Name = $name; + $this->Type = $type; + $this->PrevPps = $prev; + $this->NextPps = $next; + $this->DirPps = $dir; + $this->Time1st = $time_1st; + $this->Time2nd = $time_2nd; + $this->_data = $data; + $this->children = $children; + if ($data != '') { + $this->Size = strlen($data); + } else { + $this->Size = 0; + } + } + + /** + * Returns the amount of data saved for this PPS + * + * @access public + * @return integer The amount of data (in bytes) + */ + public function _DataLen() + { + if (!isset($this->_data)) { + return 0; + } + //if (isset($this->_PPS_FILE)) { + // fseek($this->_PPS_FILE, 0); + // $stats = fstat($this->_PPS_FILE); + // return $stats[7]; + //} else { + return strlen($this->_data); + //} + } + + /** + * Returns a string with the PPS's WK (What is a WK?) + * + * @access public + * @return string The binary string + */ + public function _getPpsWk() + { + $ret = str_pad($this->Name,64,"\x00"); + + $ret .= pack("v", strlen($this->Name) + 2) // 66 + . pack("c", $this->Type) // 67 + . pack("c", 0x00) //UK // 68 + . pack("V", $this->PrevPps) //Prev // 72 + . pack("V", $this->NextPps) //Next // 76 + . pack("V", $this->DirPps) //Dir // 80 + . "\x00\x09\x02\x00" // 84 + . "\x00\x00\x00\x00" // 88 + . "\xc0\x00\x00\x00" // 92 + . "\x00\x00\x00\x46" // 96 // Seems to be ok only for Root + . "\x00\x00\x00\x00" // 100 + . PHPExcel_Shared_OLE::LocalDate2OLE($this->Time1st) // 108 + . PHPExcel_Shared_OLE::LocalDate2OLE($this->Time2nd) // 116 + . pack("V", isset($this->_StartBlock)? + $this->_StartBlock:0) // 120 + . pack("V", $this->Size) // 124 + . pack("V", 0); // 128 + return $ret; + } + + /** + * Updates index and pointers to previous, next and children PPS's for this + * PPS. I don't think it'll work with Dir PPS's. + * + * @access public + * @param array &$raList Reference to the array of PPS's for the whole OLE + * container + * @return integer The index for this PPS + */ + public static function _savePpsSetPnt(&$raList, $to_save, $depth = 0) + { + if ( !is_array($to_save) || (empty($to_save)) ) { + return 0xFFFFFFFF; + } elseif( count($to_save) == 1 ) { + $cnt = count($raList); + // If the first entry, it's the root... Don't clone it! + $raList[$cnt] = ( $depth == 0 ) ? $to_save[0] : clone $to_save[0]; + $raList[$cnt]->No = $cnt; + $raList[$cnt]->PrevPps = 0xFFFFFFFF; + $raList[$cnt]->NextPps = 0xFFFFFFFF; + $raList[$cnt]->DirPps = self::_savePpsSetPnt($raList, @$raList[$cnt]->children, $depth++); + } else { + $iPos = floor(count($to_save) / 2); + $aPrev = array_slice($to_save, 0, $iPos); + $aNext = array_slice($to_save, $iPos + 1); + $cnt = count($raList); + // If the first entry, it's the root... Don't clone it! + $raList[$cnt] = ( $depth == 0 ) ? $to_save[$iPos] : clone $to_save[$iPos]; + $raList[$cnt]->No = $cnt; + $raList[$cnt]->PrevPps = self::_savePpsSetPnt($raList, $aPrev, $depth++); + $raList[$cnt]->NextPps = self::_savePpsSetPnt($raList, $aNext, $depth++); + $raList[$cnt]->DirPps = self::_savePpsSetPnt($raList, @$raList[$cnt]->children, $depth++); + + } + return $cnt; + } +} diff --git a/admin/helpers/PHPExcel/Shared/OLE/PPS/File.php b/admin/helpers/PHPExcel/Shared/OLE/PPS/File.php new file mode 100644 index 00000000..f061f568 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/OLE/PPS/File.php @@ -0,0 +1,84 @@ +<?php +/* vim: set expandtab tabstop=4 shiftwidth=4: */ +// +----------------------------------------------------------------------+ +// | PHP Version 4 | +// +----------------------------------------------------------------------+ +// | Copyright (c) 1997-2002 The PHP Group | +// +----------------------------------------------------------------------+ +// | This source file is subject to version 2.02 of the PHP license, | +// | that is bundled with this package in the file LICENSE, and is | +// | available at through the world-wide-web at | +// | http://www.php.net/license/2_02.txt. | +// | If you did not receive a copy of the PHP license and are unable to | +// | obtain it through the world-wide-web, please send a note to | +// | license@php.net so we can mail you a copy immediately. | +// +----------------------------------------------------------------------+ +// | Author: Xavier Noguer <xnoguer@php.net> | +// | Based on OLE::Storage_Lite by Kawai, Takanori | +// +----------------------------------------------------------------------+ +// +// $Id: File.php,v 1.11 2007/02/13 21:00:42 schmidt Exp $ + + +/** +* Class for creating File PPS's for OLE containers +* +* @author Xavier Noguer <xnoguer@php.net> +* @category PHPExcel +* @package PHPExcel_Shared_OLE +*/ +class PHPExcel_Shared_OLE_PPS_File extends PHPExcel_Shared_OLE_PPS + { + /** + * The constructor + * + * @access public + * @param string $name The name of the file (in Unicode) + * @see OLE::Asc2Ucs() + */ + public function __construct($name) + { + parent::__construct( + null, + $name, + PHPExcel_Shared_OLE::OLE_PPS_TYPE_FILE, + null, + null, + null, + null, + null, + '', + array()); + } + + /** + * Initialization method. Has to be called right after OLE_PPS_File(). + * + * @access public + * @return mixed true on success + */ + public function init() + { + return true; + } + + /** + * Append data to PPS + * + * @access public + * @param string $data The data to append + */ + public function append($data) + { + $this->_data .= $data; + } + + /** + * Returns a stream for reading this file using fread() etc. + * @return resource a read-only stream + */ + public function getStream() + { + $this->ole->getStream($this); + } +} diff --git a/admin/helpers/PHPExcel/Shared/OLE/PPS/Root.php b/admin/helpers/PHPExcel/Shared/OLE/PPS/Root.php new file mode 100644 index 00000000..eb929d20 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/OLE/PPS/Root.php @@ -0,0 +1,467 @@ +<?php +/* vim: set expandtab tabstop=4 shiftwidth=4: */ +// +----------------------------------------------------------------------+ +// | PHP Version 4 | +// +----------------------------------------------------------------------+ +// | Copyright (c) 1997-2002 The PHP Group | +// +----------------------------------------------------------------------+ +// | This source file is subject to version 2.02 of the PHP license, | +// | that is bundled with this package in the file LICENSE, and is | +// | available at through the world-wide-web at | +// | http://www.php.net/license/2_02.txt. | +// | If you did not receive a copy of the PHP license and are unable to | +// | obtain it through the world-wide-web, please send a note to | +// | license@php.net so we can mail you a copy immediately. | +// +----------------------------------------------------------------------+ +// | Author: Xavier Noguer <xnoguer@php.net> | +// | Based on OLE::Storage_Lite by Kawai, Takanori | +// +----------------------------------------------------------------------+ +// +// $Id: Root.php,v 1.9 2005/04/23 21:53:49 dufuz Exp $ + + +/** +* Class for creating Root PPS's for OLE containers +* +* @author Xavier Noguer <xnoguer@php.net> +* @category PHPExcel +* @package PHPExcel_Shared_OLE +*/ +class PHPExcel_Shared_OLE_PPS_Root extends PHPExcel_Shared_OLE_PPS + { + + /** + * Directory for temporary files + * @var string + */ + protected $_tmp_dir = NULL; + + /** + * @param integer $time_1st A timestamp + * @param integer $time_2nd A timestamp + */ + public function __construct($time_1st, $time_2nd, $raChild) + { + $this->_tempDir = PHPExcel_Shared_File::sys_get_temp_dir(); + + parent::__construct( + null, + PHPExcel_Shared_OLE::Asc2Ucs('Root Entry'), + PHPExcel_Shared_OLE::OLE_PPS_TYPE_ROOT, + null, + null, + null, + $time_1st, + $time_2nd, + null, + $raChild); + } + + /** + * Method for saving the whole OLE container (including files). + * In fact, if called with an empty argument (or '-'), it saves to a + * temporary file and then outputs it's contents to stdout. + * If a resource pointer to a stream created by fopen() is passed + * it will be used, but you have to close such stream by yourself. + * + * @param string|resource $filename The name of the file or stream where to save the OLE container. + * @access public + * @return mixed true on success + */ + public function save($filename) + { + // Initial Setting for saving + $this->_BIG_BLOCK_SIZE = pow(2, + ((isset($this->_BIG_BLOCK_SIZE))? self::_adjust2($this->_BIG_BLOCK_SIZE) : 9)); + $this->_SMALL_BLOCK_SIZE= pow(2, + ((isset($this->_SMALL_BLOCK_SIZE))? self::_adjust2($this->_SMALL_BLOCK_SIZE): 6)); + + if (is_resource($filename)) { + $this->_FILEH_ = $filename; + } else if ($filename == '-' || $filename == '') { + if ($this->_tmp_dir === NULL) + $this->_tmp_dir = PHPExcel_Shared_File::sys_get_temp_dir(); + $this->_tmp_filename = tempnam($this->_tmp_dir, "OLE_PPS_Root"); + $this->_FILEH_ = fopen($this->_tmp_filename,"w+b"); + if ($this->_FILEH_ == false) { + throw new PHPExcel_Writer_Exception("Can't create temporary file."); + } + } else { + $this->_FILEH_ = fopen($filename, "wb"); + } + if ($this->_FILEH_ == false) { + throw new PHPExcel_Writer_Exception("Can't open $filename. It may be in use or protected."); + } + // Make an array of PPS's (for Save) + $aList = array(); + PHPExcel_Shared_OLE_PPS::_savePpsSetPnt($aList, array($this)); + // calculate values for header + list($iSBDcnt, $iBBcnt, $iPPScnt) = $this->_calcSize($aList); //, $rhInfo); + // Save Header + $this->_saveHeader($iSBDcnt, $iBBcnt, $iPPScnt); + + // Make Small Data string (write SBD) + $this->_data = $this->_makeSmallData($aList); + + // Write BB + $this->_saveBigData($iSBDcnt, $aList); + // Write PPS + $this->_savePps($aList); + // Write Big Block Depot and BDList and Adding Header informations + $this->_saveBbd($iSBDcnt, $iBBcnt, $iPPScnt); + + if (!is_resource($filename)) { + fclose($this->_FILEH_); + } + + return true; + } + + /** + * Calculate some numbers + * + * @access public + * @param array $raList Reference to an array of PPS's + * @return array The array of numbers + */ + public function _calcSize(&$raList) + { + // Calculate Basic Setting + list($iSBDcnt, $iBBcnt, $iPPScnt) = array(0,0,0); + $iSmallLen = 0; + $iSBcnt = 0; + $iCount = count($raList); + for ($i = 0; $i < $iCount; ++$i) { + if ($raList[$i]->Type == PHPExcel_Shared_OLE::OLE_PPS_TYPE_FILE) { + $raList[$i]->Size = $raList[$i]->_DataLen(); + if ($raList[$i]->Size < PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) { + $iSBcnt += floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE) + + (($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE)? 1: 0); + } else { + $iBBcnt += (floor($raList[$i]->Size / $this->_BIG_BLOCK_SIZE) + + (($raList[$i]->Size % $this->_BIG_BLOCK_SIZE)? 1: 0)); + } + } + } + $iSmallLen = $iSBcnt * $this->_SMALL_BLOCK_SIZE; + $iSlCnt = floor($this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE); + $iSBDcnt = floor($iSBcnt / $iSlCnt) + (($iSBcnt % $iSlCnt)? 1:0); + $iBBcnt += (floor($iSmallLen / $this->_BIG_BLOCK_SIZE) + + (( $iSmallLen % $this->_BIG_BLOCK_SIZE)? 1: 0)); + $iCnt = count($raList); + $iBdCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_PPS_SIZE; + $iPPScnt = (floor($iCnt/$iBdCnt) + (($iCnt % $iBdCnt)? 1: 0)); + + return array($iSBDcnt, $iBBcnt, $iPPScnt); + } + + /** + * Helper function for caculating a magic value for block sizes + * + * @access public + * @param integer $i2 The argument + * @see save() + * @return integer + */ + private static function _adjust2($i2) + { + $iWk = log($i2)/log(2); + return ($iWk > floor($iWk))? floor($iWk)+1:$iWk; + } + + /** + * Save OLE header + * + * @access public + * @param integer $iSBDcnt + * @param integer $iBBcnt + * @param integer $iPPScnt + */ + public function _saveHeader($iSBDcnt, $iBBcnt, $iPPScnt) + { + $FILE = $this->_FILEH_; + + // Calculate Basic Setting + $iBlCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE; + $i1stBdL = ($this->_BIG_BLOCK_SIZE - 0x4C) / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE; + + $iBdExL = 0; + $iAll = $iBBcnt + $iPPScnt + $iSBDcnt; + $iAllW = $iAll; + $iBdCntW = floor($iAllW / $iBlCnt) + (($iAllW % $iBlCnt)? 1: 0); + $iBdCnt = floor(($iAll + $iBdCntW) / $iBlCnt) + ((($iAllW+$iBdCntW) % $iBlCnt)? 1: 0); + + // Calculate BD count + if ($iBdCnt > $i1stBdL) { + while (1) { + ++$iBdExL; + ++$iAllW; + $iBdCntW = floor($iAllW / $iBlCnt) + (($iAllW % $iBlCnt)? 1: 0); + $iBdCnt = floor(($iAllW + $iBdCntW) / $iBlCnt) + ((($iAllW+$iBdCntW) % $iBlCnt)? 1: 0); + if ($iBdCnt <= ($iBdExL*$iBlCnt+ $i1stBdL)) { + break; + } + } + } + + // Save Header + fwrite($FILE, + "\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1" + . "\x00\x00\x00\x00" + . "\x00\x00\x00\x00" + . "\x00\x00\x00\x00" + . "\x00\x00\x00\x00" + . pack("v", 0x3b) + . pack("v", 0x03) + . pack("v", -2) + . pack("v", 9) + . pack("v", 6) + . pack("v", 0) + . "\x00\x00\x00\x00" + . "\x00\x00\x00\x00" + . pack("V", $iBdCnt) + . pack("V", $iBBcnt+$iSBDcnt) //ROOT START + . pack("V", 0) + . pack("V", 0x1000) + . pack("V", $iSBDcnt ? 0 : -2) //Small Block Depot + . pack("V", $iSBDcnt) + ); + // Extra BDList Start, Count + if ($iBdCnt < $i1stBdL) { + fwrite($FILE, + pack("V", -2) // Extra BDList Start + . pack("V", 0) // Extra BDList Count + ); + } else { + fwrite($FILE, pack("V", $iAll+$iBdCnt) . pack("V", $iBdExL)); + } + + // BDList + for ($i = 0; $i < $i1stBdL && $i < $iBdCnt; ++$i) { + fwrite($FILE, pack("V", $iAll+$i)); + } + if ($i < $i1stBdL) { + $jB = $i1stBdL - $i; + for ($j = 0; $j < $jB; ++$j) { + fwrite($FILE, (pack("V", -1))); + } + } + } + + /** + * Saving big data (PPS's with data bigger than PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) + * + * @access public + * @param integer $iStBlk + * @param array &$raList Reference to array of PPS's + */ + public function _saveBigData($iStBlk, &$raList) + { + $FILE = $this->_FILEH_; + + // cycle through PPS's + $iCount = count($raList); + for ($i = 0; $i < $iCount; ++$i) { + if ($raList[$i]->Type != PHPExcel_Shared_OLE::OLE_PPS_TYPE_DIR) { + $raList[$i]->Size = $raList[$i]->_DataLen(); + if (($raList[$i]->Size >= PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) || + (($raList[$i]->Type == PHPExcel_Shared_OLE::OLE_PPS_TYPE_ROOT) && isset($raList[$i]->_data))) + { + // Write Data + //if (isset($raList[$i]->_PPS_FILE)) { + // $iLen = 0; + // fseek($raList[$i]->_PPS_FILE, 0); // To The Top + // while($sBuff = fread($raList[$i]->_PPS_FILE, 4096)) { + // $iLen += strlen($sBuff); + // fwrite($FILE, $sBuff); + // } + //} else { + fwrite($FILE, $raList[$i]->_data); + //} + + if ($raList[$i]->Size % $this->_BIG_BLOCK_SIZE) { + fwrite($FILE, str_repeat("\x00", $this->_BIG_BLOCK_SIZE - ($raList[$i]->Size % $this->_BIG_BLOCK_SIZE))); + } + // Set For PPS + $raList[$i]->_StartBlock = $iStBlk; + $iStBlk += + (floor($raList[$i]->Size / $this->_BIG_BLOCK_SIZE) + + (($raList[$i]->Size % $this->_BIG_BLOCK_SIZE)? 1: 0)); + } + // Close file for each PPS, and unlink it + //if (isset($raList[$i]->_PPS_FILE)) { + // fclose($raList[$i]->_PPS_FILE); + // $raList[$i]->_PPS_FILE = null; + // unlink($raList[$i]->_tmp_filename); + //} + } + } + } + + /** + * get small data (PPS's with data smaller than PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) + * + * @access public + * @param array &$raList Reference to array of PPS's + */ + public function _makeSmallData(&$raList) + { + $sRes = ''; + $FILE = $this->_FILEH_; + $iSmBlk = 0; + + $iCount = count($raList); + for ($i = 0; $i < $iCount; ++$i) { + // Make SBD, small data string + if ($raList[$i]->Type == PHPExcel_Shared_OLE::OLE_PPS_TYPE_FILE) { + if ($raList[$i]->Size <= 0) { + continue; + } + if ($raList[$i]->Size < PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) { + $iSmbCnt = floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE) + + (($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE)? 1: 0); + // Add to SBD + $jB = $iSmbCnt - 1; + for ($j = 0; $j < $jB; ++$j) { + fwrite($FILE, pack("V", $j+$iSmBlk+1)); + } + fwrite($FILE, pack("V", -2)); + + //// Add to Data String(this will be written for RootEntry) + //if ($raList[$i]->_PPS_FILE) { + // fseek($raList[$i]->_PPS_FILE, 0); // To The Top + // while ($sBuff = fread($raList[$i]->_PPS_FILE, 4096)) { + // $sRes .= $sBuff; + // } + //} else { + $sRes .= $raList[$i]->_data; + //} + if ($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE) { + $sRes .= str_repeat("\x00",$this->_SMALL_BLOCK_SIZE - ($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE)); + } + // Set for PPS + $raList[$i]->_StartBlock = $iSmBlk; + $iSmBlk += $iSmbCnt; + } + } + } + $iSbCnt = floor($this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE); + if ($iSmBlk % $iSbCnt) { + $iB = $iSbCnt - ($iSmBlk % $iSbCnt); + for ($i = 0; $i < $iB; ++$i) { + fwrite($FILE, pack("V", -1)); + } + } + return $sRes; + } + + /** + * Saves all the PPS's WKs + * + * @access public + * @param array $raList Reference to an array with all PPS's + */ + public function _savePps(&$raList) + { + // Save each PPS WK + $iC = count($raList); + for ($i = 0; $i < $iC; ++$i) { + fwrite($this->_FILEH_, $raList[$i]->_getPpsWk()); + } + // Adjust for Block + $iCnt = count($raList); + $iBCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_PPS_SIZE; + if ($iCnt % $iBCnt) { + fwrite($this->_FILEH_, str_repeat("\x00",($iBCnt - ($iCnt % $iBCnt)) * PHPExcel_Shared_OLE::OLE_PPS_SIZE)); + } + } + + /** + * Saving Big Block Depot + * + * @access public + * @param integer $iSbdSize + * @param integer $iBsize + * @param integer $iPpsCnt + */ + public function _saveBbd($iSbdSize, $iBsize, $iPpsCnt) + { + $FILE = $this->_FILEH_; + // Calculate Basic Setting + $iBbCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE; + $i1stBdL = ($this->_BIG_BLOCK_SIZE - 0x4C) / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE; + + $iBdExL = 0; + $iAll = $iBsize + $iPpsCnt + $iSbdSize; + $iAllW = $iAll; + $iBdCntW = floor($iAllW / $iBbCnt) + (($iAllW % $iBbCnt)? 1: 0); + $iBdCnt = floor(($iAll + $iBdCntW) / $iBbCnt) + ((($iAllW+$iBdCntW) % $iBbCnt)? 1: 0); + // Calculate BD count + if ($iBdCnt >$i1stBdL) { + while (1) { + ++$iBdExL; + ++$iAllW; + $iBdCntW = floor($iAllW / $iBbCnt) + (($iAllW % $iBbCnt)? 1: 0); + $iBdCnt = floor(($iAllW + $iBdCntW) / $iBbCnt) + ((($iAllW+$iBdCntW) % $iBbCnt)? 1: 0); + if ($iBdCnt <= ($iBdExL*$iBbCnt+ $i1stBdL)) { + break; + } + } + } + + // Making BD + // Set for SBD + if ($iSbdSize > 0) { + for ($i = 0; $i < ($iSbdSize - 1); ++$i) { + fwrite($FILE, pack("V", $i+1)); + } + fwrite($FILE, pack("V", -2)); + } + // Set for B + for ($i = 0; $i < ($iBsize - 1); ++$i) { + fwrite($FILE, pack("V", $i+$iSbdSize+1)); + } + fwrite($FILE, pack("V", -2)); + + // Set for PPS + for ($i = 0; $i < ($iPpsCnt - 1); ++$i) { + fwrite($FILE, pack("V", $i+$iSbdSize+$iBsize+1)); + } + fwrite($FILE, pack("V", -2)); + // Set for BBD itself ( 0xFFFFFFFD : BBD) + for ($i = 0; $i < $iBdCnt; ++$i) { + fwrite($FILE, pack("V", 0xFFFFFFFD)); + } + // Set for ExtraBDList + for ($i = 0; $i < $iBdExL; ++$i) { + fwrite($FILE, pack("V", 0xFFFFFFFC)); + } + // Adjust for Block + if (($iAllW + $iBdCnt) % $iBbCnt) { + $iBlock = ($iBbCnt - (($iAllW + $iBdCnt) % $iBbCnt)); + for ($i = 0; $i < $iBlock; ++$i) { + fwrite($FILE, pack("V", -1)); + } + } + // Extra BDList + if ($iBdCnt > $i1stBdL) { + $iN=0; + $iNb=0; + for ($i = $i1stBdL;$i < $iBdCnt; $i++, ++$iN) { + if ($iN >= ($iBbCnt - 1)) { + $iN = 0; + ++$iNb; + fwrite($FILE, pack("V", $iAll+$iBdCnt+$iNb)); + } + fwrite($FILE, pack("V", $iBsize+$iSbdSize+$iPpsCnt+$i)); + } + if (($iBdCnt-$i1stBdL) % ($iBbCnt-1)) { + $iB = ($iBbCnt - 1) - (($iBdCnt - $i1stBdL) % ($iBbCnt - 1)); + for ($i = 0; $i < $iB; ++$i) { + fwrite($FILE, pack("V", -1)); + } + } + fwrite($FILE, pack("V", -2)); + } + } +} diff --git a/admin/helpers/PHPExcel/Shared/OLE/PPS/index.html b/admin/helpers/PHPExcel/Shared/OLE/PPS/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/OLE/PPS/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/OLE/index.html b/admin/helpers/PHPExcel/Shared/OLE/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/OLE/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/OLERead.php b/admin/helpers/PHPExcel/Shared/OLERead.php new file mode 100644 index 00000000..261bdde5 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/OLERead.php @@ -0,0 +1,317 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +defined('IDENTIFIER_OLE') || + define('IDENTIFIER_OLE', pack('CCCCCCCC', 0xd0, 0xcf, 0x11, 0xe0, 0xa1, 0xb1, 0x1a, 0xe1)); + +class PHPExcel_Shared_OLERead { + private $data = ''; + + // OLE identifier + const IDENTIFIER_OLE = IDENTIFIER_OLE; + + // Size of a sector = 512 bytes + const BIG_BLOCK_SIZE = 0x200; + + // Size of a short sector = 64 bytes + const SMALL_BLOCK_SIZE = 0x40; + + // Size of a directory entry always = 128 bytes + const PROPERTY_STORAGE_BLOCK_SIZE = 0x80; + + // Minimum size of a standard stream = 4096 bytes, streams smaller than this are stored as short streams + const SMALL_BLOCK_THRESHOLD = 0x1000; + + // header offsets + const NUM_BIG_BLOCK_DEPOT_BLOCKS_POS = 0x2c; + const ROOT_START_BLOCK_POS = 0x30; + const SMALL_BLOCK_DEPOT_BLOCK_POS = 0x3c; + const EXTENSION_BLOCK_POS = 0x44; + const NUM_EXTENSION_BLOCK_POS = 0x48; + const BIG_BLOCK_DEPOT_BLOCKS_POS = 0x4c; + + // property storage offsets (directory offsets) + const SIZE_OF_NAME_POS = 0x40; + const TYPE_POS = 0x42; + const START_BLOCK_POS = 0x74; + const SIZE_POS = 0x78; + + + + public $wrkbook = null; + public $summaryInformation = null; + public $documentSummaryInformation = null; + + + /** + * Read the file + * + * @param $sFileName string Filename + * @throws PHPExcel_Reader_Exception + */ + public function read($sFileName) + { + // Check if file exists and is readable + if(!is_readable($sFileName)) { + throw new PHPExcel_Reader_Exception("Could not open " . $sFileName . " for reading! File does not exist, or it is not readable."); + } + + // Get the file identifier + // Don't bother reading the whole file until we know it's a valid OLE file + $this->data = file_get_contents($sFileName, FALSE, NULL, 0, 8); + + // Check OLE identifier + if ($this->data != self::IDENTIFIER_OLE) { + throw new PHPExcel_Reader_Exception('The filename ' . $sFileName . ' is not recognised as an OLE file'); + } + + // Get the file data + $this->data = file_get_contents($sFileName); + + // Total number of sectors used for the SAT + $this->numBigBlockDepotBlocks = self::_GetInt4d($this->data, self::NUM_BIG_BLOCK_DEPOT_BLOCKS_POS); + + // SecID of the first sector of the directory stream + $this->rootStartBlock = self::_GetInt4d($this->data, self::ROOT_START_BLOCK_POS); + + // SecID of the first sector of the SSAT (or -2 if not extant) + $this->sbdStartBlock = self::_GetInt4d($this->data, self::SMALL_BLOCK_DEPOT_BLOCK_POS); + + // SecID of the first sector of the MSAT (or -2 if no additional sectors are used) + $this->extensionBlock = self::_GetInt4d($this->data, self::EXTENSION_BLOCK_POS); + + // Total number of sectors used by MSAT + $this->numExtensionBlocks = self::_GetInt4d($this->data, self::NUM_EXTENSION_BLOCK_POS); + + $bigBlockDepotBlocks = array(); + $pos = self::BIG_BLOCK_DEPOT_BLOCKS_POS; + + $bbdBlocks = $this->numBigBlockDepotBlocks; + + if ($this->numExtensionBlocks != 0) { + $bbdBlocks = (self::BIG_BLOCK_SIZE - self::BIG_BLOCK_DEPOT_BLOCKS_POS)/4; + } + + for ($i = 0; $i < $bbdBlocks; ++$i) { + $bigBlockDepotBlocks[$i] = self::_GetInt4d($this->data, $pos); + $pos += 4; + } + + for ($j = 0; $j < $this->numExtensionBlocks; ++$j) { + $pos = ($this->extensionBlock + 1) * self::BIG_BLOCK_SIZE; + $blocksToRead = min($this->numBigBlockDepotBlocks - $bbdBlocks, self::BIG_BLOCK_SIZE / 4 - 1); + + for ($i = $bbdBlocks; $i < $bbdBlocks + $blocksToRead; ++$i) { + $bigBlockDepotBlocks[$i] = self::_GetInt4d($this->data, $pos); + $pos += 4; + } + + $bbdBlocks += $blocksToRead; + if ($bbdBlocks < $this->numBigBlockDepotBlocks) { + $this->extensionBlock = self::_GetInt4d($this->data, $pos); + } + } + + $pos = 0; + $this->bigBlockChain = ''; + $bbs = self::BIG_BLOCK_SIZE / 4; + for ($i = 0; $i < $this->numBigBlockDepotBlocks; ++$i) { + $pos = ($bigBlockDepotBlocks[$i] + 1) * self::BIG_BLOCK_SIZE; + + $this->bigBlockChain .= substr($this->data, $pos, 4*$bbs); + $pos += 4*$bbs; + } + + $pos = 0; + $sbdBlock = $this->sbdStartBlock; + $this->smallBlockChain = ''; + while ($sbdBlock != -2) { + $pos = ($sbdBlock + 1) * self::BIG_BLOCK_SIZE; + + $this->smallBlockChain .= substr($this->data, $pos, 4*$bbs); + $pos += 4*$bbs; + + $sbdBlock = self::_GetInt4d($this->bigBlockChain, $sbdBlock*4); + } + + // read the directory stream + $block = $this->rootStartBlock; + $this->entry = $this->_readData($block); + + $this->_readPropertySets(); + } + + /** + * Extract binary stream data + * + * @return string + */ + public function getStream($stream) + { + if ($stream === NULL) { + return null; + } + + $streamData = ''; + + if ($this->props[$stream]['size'] < self::SMALL_BLOCK_THRESHOLD) { + $rootdata = $this->_readData($this->props[$this->rootentry]['startBlock']); + + $block = $this->props[$stream]['startBlock']; + + while ($block != -2) { + $pos = $block * self::SMALL_BLOCK_SIZE; + $streamData .= substr($rootdata, $pos, self::SMALL_BLOCK_SIZE); + + $block = self::_GetInt4d($this->smallBlockChain, $block*4); + } + + return $streamData; + } else { + $numBlocks = $this->props[$stream]['size'] / self::BIG_BLOCK_SIZE; + if ($this->props[$stream]['size'] % self::BIG_BLOCK_SIZE != 0) { + ++$numBlocks; + } + + if ($numBlocks == 0) return ''; + + $block = $this->props[$stream]['startBlock']; + + while ($block != -2) { + $pos = ($block + 1) * self::BIG_BLOCK_SIZE; + $streamData .= substr($this->data, $pos, self::BIG_BLOCK_SIZE); + $block = self::_GetInt4d($this->bigBlockChain, $block*4); + } + + return $streamData; + } + } + + /** + * Read a standard stream (by joining sectors using information from SAT) + * + * @param int $bl Sector ID where the stream starts + * @return string Data for standard stream + */ + private function _readData($bl) + { + $block = $bl; + $data = ''; + + while ($block != -2) { + $pos = ($block + 1) * self::BIG_BLOCK_SIZE; + $data .= substr($this->data, $pos, self::BIG_BLOCK_SIZE); + $block = self::_GetInt4d($this->bigBlockChain, $block*4); + } + return $data; + } + + /** + * Read entries in the directory stream. + */ + private function _readPropertySets() { + $offset = 0; + + // loop through entires, each entry is 128 bytes + $entryLen = strlen($this->entry); + while ($offset < $entryLen) { + // entry data (128 bytes) + $d = substr($this->entry, $offset, self::PROPERTY_STORAGE_BLOCK_SIZE); + + // size in bytes of name + $nameSize = ord($d[self::SIZE_OF_NAME_POS]) | (ord($d[self::SIZE_OF_NAME_POS+1]) << 8); + + // type of entry + $type = ord($d[self::TYPE_POS]); + + // sectorID of first sector or short sector, if this entry refers to a stream (the case with workbook) + // sectorID of first sector of the short-stream container stream, if this entry is root entry + $startBlock = self::_GetInt4d($d, self::START_BLOCK_POS); + + $size = self::_GetInt4d($d, self::SIZE_POS); + + $name = str_replace("\x00", "", substr($d,0,$nameSize)); + + + $this->props[] = array ( + 'name' => $name, + 'type' => $type, + 'startBlock' => $startBlock, + 'size' => $size); + + // tmp helper to simplify checks + $upName = strtoupper($name); + + // Workbook directory entry (BIFF5 uses Book, BIFF8 uses Workbook) + if (($upName === 'WORKBOOK') || ($upName === 'BOOK')) { + $this->wrkbook = count($this->props) - 1; + } + else if ( $upName === 'ROOT ENTRY' || $upName === 'R') { + // Root entry + $this->rootentry = count($this->props) - 1; + } + + // Summary information + if ($name == chr(5) . 'SummaryInformation') { +// echo 'Summary Information<br />'; + $this->summaryInformation = count($this->props) - 1; + } + + // Additional Document Summary information + if ($name == chr(5) . 'DocumentSummaryInformation') { +// echo 'Document Summary Information<br />'; + $this->documentSummaryInformation = count($this->props) - 1; + } + + $offset += self::PROPERTY_STORAGE_BLOCK_SIZE; + } + + } + + /** + * Read 4 bytes of data at specified position + * + * @param string $data + * @param int $pos + * @return int + */ + private static function _GetInt4d($data, $pos) + { + // FIX: represent numbers correctly on 64-bit system + // http://sourceforge.net/tracker/index.php?func=detail&aid=1487372&group_id=99160&atid=623334 + // Hacked by Andreas Rehm 2006 to ensure correct result of the <<24 block on 32 and 64bit systems + $_or_24 = ord($data[$pos + 3]); + if ($_or_24 >= 128) { + // negative number + $_ord_24 = -abs((256 - $_or_24) << 24); + } else { + $_ord_24 = ($_or_24 & 127) << 24; + } + return ord($data[$pos]) | (ord($data[$pos + 1]) << 8) | (ord($data[$pos + 2]) << 16) | $_ord_24; + } + +} diff --git a/admin/helpers/PHPExcel/Shared/PCLZip/gnu-lgpl.txt b/admin/helpers/PHPExcel/Shared/PCLZip/gnu-lgpl.txt new file mode 100644 index 00000000..cbee875b --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/PCLZip/gnu-lgpl.txt @@ -0,0 +1,504 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +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 this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +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 +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser 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 Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "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 +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY 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 +LIBRARY (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 LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey 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 library's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + <signature of Ty Coon>, 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + diff --git a/admin/helpers/PHPExcel/Shared/PCLZip/index.html b/admin/helpers/PHPExcel/Shared/PCLZip/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/PCLZip/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/PCLZip/pclzip.lib.php b/admin/helpers/PHPExcel/Shared/PCLZip/pclzip.lib.php new file mode 100644 index 00000000..4bf05a52 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/PCLZip/pclzip.lib.php @@ -0,0 +1,5694 @@ +<?php +// -------------------------------------------------------------------------------- +// PhpConcept Library - Zip Module 2.8.2 +// -------------------------------------------------------------------------------- +// License GNU/LGPL - Vincent Blavet - August 2009 +// http://www.phpconcept.net +// -------------------------------------------------------------------------------- +// +// Presentation : +// PclZip is a PHP library that manage ZIP archives. +// So far tests show that archives generated by PclZip are readable by +// WinZip application and other tools. +// +// Description : +// See readme.txt and http://www.phpconcept.net +// +// Warning : +// This library and the associated files are non commercial, non professional +// work. +// It should not have unexpected results. However if any damage is caused by +// this software the author can not be responsible. +// The use of this software is at the risk of the user. +// +// -------------------------------------------------------------------------------- +// $Id: pclzip.lib.php,v 1.60 2009/09/30 21:01:04 vblavet Exp $ +// -------------------------------------------------------------------------------- + + // ----- Constants + if (!defined('PCLZIP_READ_BLOCK_SIZE')) { + define( 'PCLZIP_READ_BLOCK_SIZE', 2048 ); + } + + // ----- File list separator + // In version 1.x of PclZip, the separator for file list is a space + // (which is not a very smart choice, specifically for windows paths !). + // A better separator should be a comma (,). This constant gives you the + // abilty to change that. + // However notice that changing this value, may have impact on existing + // scripts, using space separated filenames. + // Recommanded values for compatibility with older versions : + //define( 'PCLZIP_SEPARATOR', ' ' ); + // Recommanded values for smart separation of filenames. + if (!defined('PCLZIP_SEPARATOR')) { + define( 'PCLZIP_SEPARATOR', ',' ); + } + + // ----- Error configuration + // 0 : PclZip Class integrated error handling + // 1 : PclError external library error handling. By enabling this + // you must ensure that you have included PclError library. + // [2,...] : reserved for futur use + if (!defined('PCLZIP_ERROR_EXTERNAL')) { + define( 'PCLZIP_ERROR_EXTERNAL', 0 ); + } + + // ----- Optional static temporary directory + // By default temporary files are generated in the script current + // path. + // If defined : + // - MUST BE terminated by a '/'. + // - MUST be a valid, already created directory + // Samples : + // define( 'PCLZIP_TEMPORARY_DIR', '/temp/' ); + // define( 'PCLZIP_TEMPORARY_DIR', 'C:/Temp/' ); + if (!defined('PCLZIP_TEMPORARY_DIR')) { + define( 'PCLZIP_TEMPORARY_DIR', '' ); + } + + // ----- Optional threshold ratio for use of temporary files + // Pclzip sense the size of the file to add/extract and decide to + // use or not temporary file. The algorythm is looking for + // memory_limit of PHP and apply a ratio. + // threshold = memory_limit * ratio. + // Recommended values are under 0.5. Default 0.47. + // Samples : + // define( 'PCLZIP_TEMPORARY_FILE_RATIO', 0.5 ); + if (!defined('PCLZIP_TEMPORARY_FILE_RATIO')) { + define( 'PCLZIP_TEMPORARY_FILE_RATIO', 0.47 ); + } + +// -------------------------------------------------------------------------------- +// ***** UNDER THIS LINE NOTHING NEEDS TO BE MODIFIED ***** +// -------------------------------------------------------------------------------- + + // ----- Global variables + $g_pclzip_version = "2.8.2"; + + // ----- Error codes + // -1 : Unable to open file in binary write mode + // -2 : Unable to open file in binary read mode + // -3 : Invalid parameters + // -4 : File does not exist + // -5 : Filename is too long (max. 255) + // -6 : Not a valid zip file + // -7 : Invalid extracted file size + // -8 : Unable to create directory + // -9 : Invalid archive extension + // -10 : Invalid archive format + // -11 : Unable to delete file (unlink) + // -12 : Unable to rename file (rename) + // -13 : Invalid header checksum + // -14 : Invalid archive size + define( 'PCLZIP_ERR_USER_ABORTED', 2 ); + define( 'PCLZIP_ERR_NO_ERROR', 0 ); + define( 'PCLZIP_ERR_WRITE_OPEN_FAIL', -1 ); + define( 'PCLZIP_ERR_READ_OPEN_FAIL', -2 ); + define( 'PCLZIP_ERR_INVALID_PARAMETER', -3 ); + define( 'PCLZIP_ERR_MISSING_FILE', -4 ); + define( 'PCLZIP_ERR_FILENAME_TOO_LONG', -5 ); + define( 'PCLZIP_ERR_INVALID_ZIP', -6 ); + define( 'PCLZIP_ERR_BAD_EXTRACTED_FILE', -7 ); + define( 'PCLZIP_ERR_DIR_CREATE_FAIL', -8 ); + define( 'PCLZIP_ERR_BAD_EXTENSION', -9 ); + define( 'PCLZIP_ERR_BAD_FORMAT', -10 ); + define( 'PCLZIP_ERR_DELETE_FILE_FAIL', -11 ); + define( 'PCLZIP_ERR_RENAME_FILE_FAIL', -12 ); + define( 'PCLZIP_ERR_BAD_CHECKSUM', -13 ); + define( 'PCLZIP_ERR_INVALID_ARCHIVE_ZIP', -14 ); + define( 'PCLZIP_ERR_MISSING_OPTION_VALUE', -15 ); + define( 'PCLZIP_ERR_INVALID_OPTION_VALUE', -16 ); + define( 'PCLZIP_ERR_ALREADY_A_DIRECTORY', -17 ); + define( 'PCLZIP_ERR_UNSUPPORTED_COMPRESSION', -18 ); + define( 'PCLZIP_ERR_UNSUPPORTED_ENCRYPTION', -19 ); + define( 'PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE', -20 ); + define( 'PCLZIP_ERR_DIRECTORY_RESTRICTION', -21 ); + + // ----- Options values + define( 'PCLZIP_OPT_PATH', 77001 ); + define( 'PCLZIP_OPT_ADD_PATH', 77002 ); + define( 'PCLZIP_OPT_REMOVE_PATH', 77003 ); + define( 'PCLZIP_OPT_REMOVE_ALL_PATH', 77004 ); + define( 'PCLZIP_OPT_SET_CHMOD', 77005 ); + define( 'PCLZIP_OPT_EXTRACT_AS_STRING', 77006 ); + define( 'PCLZIP_OPT_NO_COMPRESSION', 77007 ); + define( 'PCLZIP_OPT_BY_NAME', 77008 ); + define( 'PCLZIP_OPT_BY_INDEX', 77009 ); + define( 'PCLZIP_OPT_BY_EREG', 77010 ); + define( 'PCLZIP_OPT_BY_PREG', 77011 ); + define( 'PCLZIP_OPT_COMMENT', 77012 ); + define( 'PCLZIP_OPT_ADD_COMMENT', 77013 ); + define( 'PCLZIP_OPT_PREPEND_COMMENT', 77014 ); + define( 'PCLZIP_OPT_EXTRACT_IN_OUTPUT', 77015 ); + define( 'PCLZIP_OPT_REPLACE_NEWER', 77016 ); + define( 'PCLZIP_OPT_STOP_ON_ERROR', 77017 ); + // Having big trouble with crypt. Need to multiply 2 long int + // which is not correctly supported by PHP ... + //define( 'PCLZIP_OPT_CRYPT', 77018 ); + define( 'PCLZIP_OPT_EXTRACT_DIR_RESTRICTION', 77019 ); + define( 'PCLZIP_OPT_TEMP_FILE_THRESHOLD', 77020 ); + define( 'PCLZIP_OPT_ADD_TEMP_FILE_THRESHOLD', 77020 ); // alias + define( 'PCLZIP_OPT_TEMP_FILE_ON', 77021 ); + define( 'PCLZIP_OPT_ADD_TEMP_FILE_ON', 77021 ); // alias + define( 'PCLZIP_OPT_TEMP_FILE_OFF', 77022 ); + define( 'PCLZIP_OPT_ADD_TEMP_FILE_OFF', 77022 ); // alias + + // ----- File description attributes + define( 'PCLZIP_ATT_FILE_NAME', 79001 ); + define( 'PCLZIP_ATT_FILE_NEW_SHORT_NAME', 79002 ); + define( 'PCLZIP_ATT_FILE_NEW_FULL_NAME', 79003 ); + define( 'PCLZIP_ATT_FILE_MTIME', 79004 ); + define( 'PCLZIP_ATT_FILE_CONTENT', 79005 ); + define( 'PCLZIP_ATT_FILE_COMMENT', 79006 ); + + // ----- Call backs values + define( 'PCLZIP_CB_PRE_EXTRACT', 78001 ); + define( 'PCLZIP_CB_POST_EXTRACT', 78002 ); + define( 'PCLZIP_CB_PRE_ADD', 78003 ); + define( 'PCLZIP_CB_POST_ADD', 78004 ); + /* For futur use + define( 'PCLZIP_CB_PRE_LIST', 78005 ); + define( 'PCLZIP_CB_POST_LIST', 78006 ); + define( 'PCLZIP_CB_PRE_DELETE', 78007 ); + define( 'PCLZIP_CB_POST_DELETE', 78008 ); + */ + + // -------------------------------------------------------------------------------- + // Class : PclZip + // Description : + // PclZip is the class that represent a Zip archive. + // The public methods allow the manipulation of the archive. + // Attributes : + // Attributes must not be accessed directly. + // Methods : + // PclZip() : Object creator + // create() : Creates the Zip archive + // listContent() : List the content of the Zip archive + // extract() : Extract the content of the archive + // properties() : List the properties of the archive + // -------------------------------------------------------------------------------- + class PclZip + { + // ----- Filename of the zip file + var $zipname = ''; + + // ----- File descriptor of the zip file + var $zip_fd = 0; + + // ----- Internal error handling + var $error_code = 1; + var $error_string = ''; + + // ----- Current status of the magic_quotes_runtime + // This value store the php configuration for magic_quotes + // The class can then disable the magic_quotes and reset it after + var $magic_quotes_status; + + // -------------------------------------------------------------------------------- + // Function : PclZip() + // Description : + // Creates a PclZip object and set the name of the associated Zip archive + // filename. + // Note that no real action is taken, if the archive does not exist it is not + // created. Use create() for that. + // -------------------------------------------------------------------------------- + function PclZip($p_zipname) + { + + // ----- Tests the zlib + if (!function_exists('gzopen')) + { + die('Abort '.basename(__FILE__).' : Missing zlib extensions'); + } + + // ----- Set the attributes + $this->zipname = $p_zipname; + $this->zip_fd = 0; + $this->magic_quotes_status = -1; + + // ----- Return + return; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : + // create($p_filelist, $p_add_dir="", $p_remove_dir="") + // create($p_filelist, $p_option, $p_option_value, ...) + // Description : + // This method supports two different synopsis. The first one is historical. + // This method creates a Zip Archive. The Zip file is created in the + // filesystem. The files and directories indicated in $p_filelist + // are added in the archive. See the parameters description for the + // supported format of $p_filelist. + // When a directory is in the list, the directory and its content is added + // in the archive. + // In this synopsis, the function takes an optional variable list of + // options. See bellow the supported options. + // Parameters : + // $p_filelist : An array containing file or directory names, or + // a string containing one filename or one directory name, or + // a string containing a list of filenames and/or directory + // names separated by spaces. + // $p_add_dir : A path to add before the real path of the archived file, + // in order to have it memorized in the archive. + // $p_remove_dir : A path to remove from the real path of the file to archive, + // in order to have a shorter path memorized in the archive. + // When $p_add_dir and $p_remove_dir are set, $p_remove_dir + // is removed first, before $p_add_dir is added. + // Options : + // PCLZIP_OPT_ADD_PATH : + // PCLZIP_OPT_REMOVE_PATH : + // PCLZIP_OPT_REMOVE_ALL_PATH : + // PCLZIP_OPT_COMMENT : + // PCLZIP_CB_PRE_ADD : + // PCLZIP_CB_POST_ADD : + // Return Values : + // 0 on failure, + // The list of the added files, with a status of the add action. + // (see PclZip::listContent() for list entry format) + // -------------------------------------------------------------------------------- + function create($p_filelist) + { + $v_result=1; + + // ----- Reset the error handler + $this->privErrorReset(); + + // ----- Set default values + $v_options = array(); + $v_options[PCLZIP_OPT_NO_COMPRESSION] = FALSE; + + // ----- Look for variable options arguments + $v_size = func_num_args(); + + // ----- Look for arguments + if ($v_size > 1) { + // ----- Get the arguments + $v_arg_list = func_get_args(); + + // ----- Remove from the options list the first argument + array_shift($v_arg_list); + $v_size--; + + // ----- Look for first arg + if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { + + // ----- Parse the options + $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, + array (PCLZIP_OPT_REMOVE_PATH => 'optional', + PCLZIP_OPT_REMOVE_ALL_PATH => 'optional', + PCLZIP_OPT_ADD_PATH => 'optional', + PCLZIP_CB_PRE_ADD => 'optional', + PCLZIP_CB_POST_ADD => 'optional', + PCLZIP_OPT_NO_COMPRESSION => 'optional', + PCLZIP_OPT_COMMENT => 'optional', + PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional', + PCLZIP_OPT_TEMP_FILE_ON => 'optional', + PCLZIP_OPT_TEMP_FILE_OFF => 'optional' + //, PCLZIP_OPT_CRYPT => 'optional' + )); + if ($v_result != 1) { + return 0; + } + } + + // ----- Look for 2 args + // Here we need to support the first historic synopsis of the + // method. + else { + + // ----- Get the first argument + $v_options[PCLZIP_OPT_ADD_PATH] = $v_arg_list[0]; + + // ----- Look for the optional second argument + if ($v_size == 2) { + $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1]; + } + else if ($v_size > 2) { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, + "Invalid number / type of arguments"); + return 0; + } + } + } + + // ----- Look for default option values + $this->privOptionDefaultThreshold($v_options); + + // ----- Init + $v_string_list = array(); + $v_att_list = array(); + $v_filedescr_list = array(); + $p_result_list = array(); + + // ----- Look if the $p_filelist is really an array + if (is_array($p_filelist)) { + + // ----- Look if the first element is also an array + // This will mean that this is a file description entry + if (isset($p_filelist[0]) && is_array($p_filelist[0])) { + $v_att_list = $p_filelist; + } + + // ----- The list is a list of string names + else { + $v_string_list = $p_filelist; + } + } + + // ----- Look if the $p_filelist is a string + else if (is_string($p_filelist)) { + // ----- Create a list from the string + $v_string_list = explode(PCLZIP_SEPARATOR, $p_filelist); + } + + // ----- Invalid variable type for $p_filelist + else { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_filelist"); + return 0; + } + + // ----- Reformat the string list + if (sizeof($v_string_list) != 0) { + foreach ($v_string_list as $v_string) { + if ($v_string != '') { + $v_att_list[][PCLZIP_ATT_FILE_NAME] = $v_string; + } + else { + } + } + } + + // ----- For each file in the list check the attributes + $v_supported_attributes + = array ( PCLZIP_ATT_FILE_NAME => 'mandatory' + ,PCLZIP_ATT_FILE_NEW_SHORT_NAME => 'optional' + ,PCLZIP_ATT_FILE_NEW_FULL_NAME => 'optional' + ,PCLZIP_ATT_FILE_MTIME => 'optional' + ,PCLZIP_ATT_FILE_CONTENT => 'optional' + ,PCLZIP_ATT_FILE_COMMENT => 'optional' + ); + foreach ($v_att_list as $v_entry) { + $v_result = $this->privFileDescrParseAtt($v_entry, + $v_filedescr_list[], + $v_options, + $v_supported_attributes); + if ($v_result != 1) { + return 0; + } + } + + // ----- Expand the filelist (expand directories) + $v_result = $this->privFileDescrExpand($v_filedescr_list, $v_options); + if ($v_result != 1) { + return 0; + } + + // ----- Call the create fct + $v_result = $this->privCreate($v_filedescr_list, $p_result_list, $v_options); + if ($v_result != 1) { + return 0; + } + + // ----- Return + return $p_result_list; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : + // add($p_filelist, $p_add_dir="", $p_remove_dir="") + // add($p_filelist, $p_option, $p_option_value, ...) + // Description : + // This method supports two synopsis. The first one is historical. + // This methods add the list of files in an existing archive. + // If a file with the same name already exists, it is added at the end of the + // archive, the first one is still present. + // If the archive does not exist, it is created. + // Parameters : + // $p_filelist : An array containing file or directory names, or + // a string containing one filename or one directory name, or + // a string containing a list of filenames and/or directory + // names separated by spaces. + // $p_add_dir : A path to add before the real path of the archived file, + // in order to have it memorized in the archive. + // $p_remove_dir : A path to remove from the real path of the file to archive, + // in order to have a shorter path memorized in the archive. + // When $p_add_dir and $p_remove_dir are set, $p_remove_dir + // is removed first, before $p_add_dir is added. + // Options : + // PCLZIP_OPT_ADD_PATH : + // PCLZIP_OPT_REMOVE_PATH : + // PCLZIP_OPT_REMOVE_ALL_PATH : + // PCLZIP_OPT_COMMENT : + // PCLZIP_OPT_ADD_COMMENT : + // PCLZIP_OPT_PREPEND_COMMENT : + // PCLZIP_CB_PRE_ADD : + // PCLZIP_CB_POST_ADD : + // Return Values : + // 0 on failure, + // The list of the added files, with a status of the add action. + // (see PclZip::listContent() for list entry format) + // -------------------------------------------------------------------------------- + function add($p_filelist) + { + $v_result=1; + + // ----- Reset the error handler + $this->privErrorReset(); + + // ----- Set default values + $v_options = array(); + $v_options[PCLZIP_OPT_NO_COMPRESSION] = FALSE; + + // ----- Look for variable options arguments + $v_size = func_num_args(); + + // ----- Look for arguments + if ($v_size > 1) { + // ----- Get the arguments + $v_arg_list = func_get_args(); + + // ----- Remove form the options list the first argument + array_shift($v_arg_list); + $v_size--; + + // ----- Look for first arg + if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { + + // ----- Parse the options + $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, + array (PCLZIP_OPT_REMOVE_PATH => 'optional', + PCLZIP_OPT_REMOVE_ALL_PATH => 'optional', + PCLZIP_OPT_ADD_PATH => 'optional', + PCLZIP_CB_PRE_ADD => 'optional', + PCLZIP_CB_POST_ADD => 'optional', + PCLZIP_OPT_NO_COMPRESSION => 'optional', + PCLZIP_OPT_COMMENT => 'optional', + PCLZIP_OPT_ADD_COMMENT => 'optional', + PCLZIP_OPT_PREPEND_COMMENT => 'optional', + PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional', + PCLZIP_OPT_TEMP_FILE_ON => 'optional', + PCLZIP_OPT_TEMP_FILE_OFF => 'optional' + //, PCLZIP_OPT_CRYPT => 'optional' + )); + if ($v_result != 1) { + return 0; + } + } + + // ----- Look for 2 args + // Here we need to support the first historic synopsis of the + // method. + else { + + // ----- Get the first argument + $v_options[PCLZIP_OPT_ADD_PATH] = $v_add_path = $v_arg_list[0]; + + // ----- Look for the optional second argument + if ($v_size == 2) { + $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1]; + } + else if ($v_size > 2) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments"); + + // ----- Return + return 0; + } + } + } + + // ----- Look for default option values + $this->privOptionDefaultThreshold($v_options); + + // ----- Init + $v_string_list = array(); + $v_att_list = array(); + $v_filedescr_list = array(); + $p_result_list = array(); + + // ----- Look if the $p_filelist is really an array + if (is_array($p_filelist)) { + + // ----- Look if the first element is also an array + // This will mean that this is a file description entry + if (isset($p_filelist[0]) && is_array($p_filelist[0])) { + $v_att_list = $p_filelist; + } + + // ----- The list is a list of string names + else { + $v_string_list = $p_filelist; + } + } + + // ----- Look if the $p_filelist is a string + else if (is_string($p_filelist)) { + // ----- Create a list from the string + $v_string_list = explode(PCLZIP_SEPARATOR, $p_filelist); + } + + // ----- Invalid variable type for $p_filelist + else { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type '".gettype($p_filelist)."' for p_filelist"); + return 0; + } + + // ----- Reformat the string list + if (sizeof($v_string_list) != 0) { + foreach ($v_string_list as $v_string) { + $v_att_list[][PCLZIP_ATT_FILE_NAME] = $v_string; + } + } + + // ----- For each file in the list check the attributes + $v_supported_attributes + = array ( PCLZIP_ATT_FILE_NAME => 'mandatory' + ,PCLZIP_ATT_FILE_NEW_SHORT_NAME => 'optional' + ,PCLZIP_ATT_FILE_NEW_FULL_NAME => 'optional' + ,PCLZIP_ATT_FILE_MTIME => 'optional' + ,PCLZIP_ATT_FILE_CONTENT => 'optional' + ,PCLZIP_ATT_FILE_COMMENT => 'optional' + ); + foreach ($v_att_list as $v_entry) { + $v_result = $this->privFileDescrParseAtt($v_entry, + $v_filedescr_list[], + $v_options, + $v_supported_attributes); + if ($v_result != 1) { + return 0; + } + } + + // ----- Expand the filelist (expand directories) + $v_result = $this->privFileDescrExpand($v_filedescr_list, $v_options); + if ($v_result != 1) { + return 0; + } + + // ----- Call the create fct + $v_result = $this->privAdd($v_filedescr_list, $p_result_list, $v_options); + if ($v_result != 1) { + return 0; + } + + // ----- Return + return $p_result_list; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : listContent() + // Description : + // This public method, gives the list of the files and directories, with their + // properties. + // The properties of each entries in the list are (used also in other functions) : + // filename : Name of the file. For a create or add action it is the filename + // given by the user. For an extract function it is the filename + // of the extracted file. + // stored_filename : Name of the file / directory stored in the archive. + // size : Size of the stored file. + // compressed_size : Size of the file's data compressed in the archive + // (without the headers overhead) + // mtime : Last known modification date of the file (UNIX timestamp) + // comment : Comment associated with the file + // folder : true | false + // index : index of the file in the archive + // status : status of the action (depending of the action) : + // Values are : + // ok : OK ! + // filtered : the file / dir is not extracted (filtered by user) + // already_a_directory : the file can not be extracted because a + // directory with the same name already exists + // write_protected : the file can not be extracted because a file + // with the same name already exists and is + // write protected + // newer_exist : the file was not extracted because a newer file exists + // path_creation_fail : the file is not extracted because the folder + // does not exist and can not be created + // write_error : the file was not extracted because there was a + // error while writing the file + // read_error : the file was not extracted because there was a error + // while reading the file + // invalid_header : the file was not extracted because of an archive + // format error (bad file header) + // Note that each time a method can continue operating when there + // is an action error on a file, the error is only logged in the file status. + // Return Values : + // 0 on an unrecoverable failure, + // The list of the files in the archive. + // -------------------------------------------------------------------------------- + function listContent() + { + $v_result=1; + + // ----- Reset the error handler + $this->privErrorReset(); + + // ----- Check archive + if (!$this->privCheckFormat()) { + return(0); + } + + // ----- Call the extracting fct + $p_list = array(); + if (($v_result = $this->privList($p_list)) != 1) + { + unset($p_list); + return(0); + } + + // ----- Return + return $p_list; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : + // extract($p_path="./", $p_remove_path="") + // extract([$p_option, $p_option_value, ...]) + // Description : + // This method supports two synopsis. The first one is historical. + // This method extract all the files / directories from the archive to the + // folder indicated in $p_path. + // If you want to ignore the 'root' part of path of the memorized files + // you can indicate this in the optional $p_remove_path parameter. + // By default, if a newer file with the same name already exists, the + // file is not extracted. + // + // If both PCLZIP_OPT_PATH and PCLZIP_OPT_ADD_PATH aoptions + // are used, the path indicated in PCLZIP_OPT_ADD_PATH is append + // at the end of the path value of PCLZIP_OPT_PATH. + // Parameters : + // $p_path : Path where the files and directories are to be extracted + // $p_remove_path : First part ('root' part) of the memorized path + // (if any similar) to remove while extracting. + // Options : + // PCLZIP_OPT_PATH : + // PCLZIP_OPT_ADD_PATH : + // PCLZIP_OPT_REMOVE_PATH : + // PCLZIP_OPT_REMOVE_ALL_PATH : + // PCLZIP_CB_PRE_EXTRACT : + // PCLZIP_CB_POST_EXTRACT : + // Return Values : + // 0 or a negative value on failure, + // The list of the extracted files, with a status of the action. + // (see PclZip::listContent() for list entry format) + // -------------------------------------------------------------------------------- + function extract() + { + $v_result=1; + + // ----- Reset the error handler + $this->privErrorReset(); + + // ----- Check archive + if (!$this->privCheckFormat()) { + return(0); + } + + // ----- Set default values + $v_options = array(); +// $v_path = "./"; + $v_path = ''; + $v_remove_path = ""; + $v_remove_all_path = false; + + // ----- Look for variable options arguments + $v_size = func_num_args(); + + // ----- Default values for option + $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE; + + // ----- Look for arguments + if ($v_size > 0) { + // ----- Get the arguments + $v_arg_list = func_get_args(); + + // ----- Look for first arg + if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { + + // ----- Parse the options + $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, + array (PCLZIP_OPT_PATH => 'optional', + PCLZIP_OPT_REMOVE_PATH => 'optional', + PCLZIP_OPT_REMOVE_ALL_PATH => 'optional', + PCLZIP_OPT_ADD_PATH => 'optional', + PCLZIP_CB_PRE_EXTRACT => 'optional', + PCLZIP_CB_POST_EXTRACT => 'optional', + PCLZIP_OPT_SET_CHMOD => 'optional', + PCLZIP_OPT_BY_NAME => 'optional', + PCLZIP_OPT_BY_EREG => 'optional', + PCLZIP_OPT_BY_PREG => 'optional', + PCLZIP_OPT_BY_INDEX => 'optional', + PCLZIP_OPT_EXTRACT_AS_STRING => 'optional', + PCLZIP_OPT_EXTRACT_IN_OUTPUT => 'optional', + PCLZIP_OPT_REPLACE_NEWER => 'optional' + ,PCLZIP_OPT_STOP_ON_ERROR => 'optional' + ,PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => 'optional', + PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional', + PCLZIP_OPT_TEMP_FILE_ON => 'optional', + PCLZIP_OPT_TEMP_FILE_OFF => 'optional' + )); + if ($v_result != 1) { + return 0; + } + + // ----- Set the arguments + if (isset($v_options[PCLZIP_OPT_PATH])) { + $v_path = $v_options[PCLZIP_OPT_PATH]; + } + if (isset($v_options[PCLZIP_OPT_REMOVE_PATH])) { + $v_remove_path = $v_options[PCLZIP_OPT_REMOVE_PATH]; + } + if (isset($v_options[PCLZIP_OPT_REMOVE_ALL_PATH])) { + $v_remove_all_path = $v_options[PCLZIP_OPT_REMOVE_ALL_PATH]; + } + if (isset($v_options[PCLZIP_OPT_ADD_PATH])) { + // ----- Check for '/' in last path char + if ((strlen($v_path) > 0) && (substr($v_path, -1) != '/')) { + $v_path .= '/'; + } + $v_path .= $v_options[PCLZIP_OPT_ADD_PATH]; + } + } + + // ----- Look for 2 args + // Here we need to support the first historic synopsis of the + // method. + else { + + // ----- Get the first argument + $v_path = $v_arg_list[0]; + + // ----- Look for the optional second argument + if ($v_size == 2) { + $v_remove_path = $v_arg_list[1]; + } + else if ($v_size > 2) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments"); + + // ----- Return + return 0; + } + } + } + + // ----- Look for default option values + $this->privOptionDefaultThreshold($v_options); + + // ----- Trace + + // ----- Call the extracting fct + $p_list = array(); + $v_result = $this->privExtractByRule($p_list, $v_path, $v_remove_path, + $v_remove_all_path, $v_options); + if ($v_result < 1) { + unset($p_list); + return(0); + } + + // ----- Return + return $p_list; + } + // -------------------------------------------------------------------------------- + + + // -------------------------------------------------------------------------------- + // Function : + // extractByIndex($p_index, $p_path="./", $p_remove_path="") + // extractByIndex($p_index, [$p_option, $p_option_value, ...]) + // Description : + // This method supports two synopsis. The first one is historical. + // This method is doing a partial extract of the archive. + // The extracted files or folders are identified by their index in the + // archive (from 0 to n). + // Note that if the index identify a folder, only the folder entry is + // extracted, not all the files included in the archive. + // Parameters : + // $p_index : A single index (integer) or a string of indexes of files to + // extract. The form of the string is "0,4-6,8-12" with only numbers + // and '-' for range or ',' to separate ranges. No spaces or ';' + // are allowed. + // $p_path : Path where the files and directories are to be extracted + // $p_remove_path : First part ('root' part) of the memorized path + // (if any similar) to remove while extracting. + // Options : + // PCLZIP_OPT_PATH : + // PCLZIP_OPT_ADD_PATH : + // PCLZIP_OPT_REMOVE_PATH : + // PCLZIP_OPT_REMOVE_ALL_PATH : + // PCLZIP_OPT_EXTRACT_AS_STRING : The files are extracted as strings and + // not as files. + // The resulting content is in a new field 'content' in the file + // structure. + // This option must be used alone (any other options are ignored). + // PCLZIP_CB_PRE_EXTRACT : + // PCLZIP_CB_POST_EXTRACT : + // Return Values : + // 0 on failure, + // The list of the extracted files, with a status of the action. + // (see PclZip::listContent() for list entry format) + // -------------------------------------------------------------------------------- + //function extractByIndex($p_index, options...) + function extractByIndex($p_index) + { + $v_result=1; + + // ----- Reset the error handler + $this->privErrorReset(); + + // ----- Check archive + if (!$this->privCheckFormat()) { + return(0); + } + + // ----- Set default values + $v_options = array(); +// $v_path = "./"; + $v_path = ''; + $v_remove_path = ""; + $v_remove_all_path = false; + + // ----- Look for variable options arguments + $v_size = func_num_args(); + + // ----- Default values for option + $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE; + + // ----- Look for arguments + if ($v_size > 1) { + // ----- Get the arguments + $v_arg_list = func_get_args(); + + // ----- Remove form the options list the first argument + array_shift($v_arg_list); + $v_size--; + + // ----- Look for first arg + if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { + + // ----- Parse the options + $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, + array (PCLZIP_OPT_PATH => 'optional', + PCLZIP_OPT_REMOVE_PATH => 'optional', + PCLZIP_OPT_REMOVE_ALL_PATH => 'optional', + PCLZIP_OPT_EXTRACT_AS_STRING => 'optional', + PCLZIP_OPT_ADD_PATH => 'optional', + PCLZIP_CB_PRE_EXTRACT => 'optional', + PCLZIP_CB_POST_EXTRACT => 'optional', + PCLZIP_OPT_SET_CHMOD => 'optional', + PCLZIP_OPT_REPLACE_NEWER => 'optional' + ,PCLZIP_OPT_STOP_ON_ERROR => 'optional' + ,PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => 'optional', + PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional', + PCLZIP_OPT_TEMP_FILE_ON => 'optional', + PCLZIP_OPT_TEMP_FILE_OFF => 'optional' + )); + if ($v_result != 1) { + return 0; + } + + // ----- Set the arguments + if (isset($v_options[PCLZIP_OPT_PATH])) { + $v_path = $v_options[PCLZIP_OPT_PATH]; + } + if (isset($v_options[PCLZIP_OPT_REMOVE_PATH])) { + $v_remove_path = $v_options[PCLZIP_OPT_REMOVE_PATH]; + } + if (isset($v_options[PCLZIP_OPT_REMOVE_ALL_PATH])) { + $v_remove_all_path = $v_options[PCLZIP_OPT_REMOVE_ALL_PATH]; + } + if (isset($v_options[PCLZIP_OPT_ADD_PATH])) { + // ----- Check for '/' in last path char + if ((strlen($v_path) > 0) && (substr($v_path, -1) != '/')) { + $v_path .= '/'; + } + $v_path .= $v_options[PCLZIP_OPT_ADD_PATH]; + } + if (!isset($v_options[PCLZIP_OPT_EXTRACT_AS_STRING])) { + $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE; + } + else { + } + } + + // ----- Look for 2 args + // Here we need to support the first historic synopsis of the + // method. + else { + + // ----- Get the first argument + $v_path = $v_arg_list[0]; + + // ----- Look for the optional second argument + if ($v_size == 2) { + $v_remove_path = $v_arg_list[1]; + } + else if ($v_size > 2) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments"); + + // ----- Return + return 0; + } + } + } + + // ----- Trace + + // ----- Trick + // Here I want to reuse extractByRule(), so I need to parse the $p_index + // with privParseOptions() + $v_arg_trick = array (PCLZIP_OPT_BY_INDEX, $p_index); + $v_options_trick = array(); + $v_result = $this->privParseOptions($v_arg_trick, sizeof($v_arg_trick), $v_options_trick, + array (PCLZIP_OPT_BY_INDEX => 'optional' )); + if ($v_result != 1) { + return 0; + } + $v_options[PCLZIP_OPT_BY_INDEX] = $v_options_trick[PCLZIP_OPT_BY_INDEX]; + + // ----- Look for default option values + $this->privOptionDefaultThreshold($v_options); + + // ----- Call the extracting fct + if (($v_result = $this->privExtractByRule($p_list, $v_path, $v_remove_path, $v_remove_all_path, $v_options)) < 1) { + return(0); + } + + // ----- Return + return $p_list; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : + // delete([$p_option, $p_option_value, ...]) + // Description : + // This method removes files from the archive. + // If no parameters are given, then all the archive is emptied. + // Parameters : + // None or optional arguments. + // Options : + // PCLZIP_OPT_BY_INDEX : + // PCLZIP_OPT_BY_NAME : + // PCLZIP_OPT_BY_EREG : + // PCLZIP_OPT_BY_PREG : + // Return Values : + // 0 on failure, + // The list of the files which are still present in the archive. + // (see PclZip::listContent() for list entry format) + // -------------------------------------------------------------------------------- + function delete() + { + $v_result=1; + + // ----- Reset the error handler + $this->privErrorReset(); + + // ----- Check archive + if (!$this->privCheckFormat()) { + return(0); + } + + // ----- Set default values + $v_options = array(); + + // ----- Look for variable options arguments + $v_size = func_num_args(); + + // ----- Look for arguments + if ($v_size > 0) { + // ----- Get the arguments + $v_arg_list = func_get_args(); + + // ----- Parse the options + $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, + array (PCLZIP_OPT_BY_NAME => 'optional', + PCLZIP_OPT_BY_EREG => 'optional', + PCLZIP_OPT_BY_PREG => 'optional', + PCLZIP_OPT_BY_INDEX => 'optional' )); + if ($v_result != 1) { + return 0; + } + } + + // ----- Magic quotes trick + $this->privDisableMagicQuotes(); + + // ----- Call the delete fct + $v_list = array(); + if (($v_result = $this->privDeleteByRule($v_list, $v_options)) != 1) { + $this->privSwapBackMagicQuotes(); + unset($v_list); + return(0); + } + + // ----- Magic quotes trick + $this->privSwapBackMagicQuotes(); + + // ----- Return + return $v_list; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : deleteByIndex() + // Description : + // ***** Deprecated ***** + // delete(PCLZIP_OPT_BY_INDEX, $p_index) should be prefered. + // -------------------------------------------------------------------------------- + function deleteByIndex($p_index) + { + + $p_list = $this->delete(PCLZIP_OPT_BY_INDEX, $p_index); + + // ----- Return + return $p_list; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : properties() + // Description : + // This method gives the properties of the archive. + // The properties are : + // nb : Number of files in the archive + // comment : Comment associated with the archive file + // status : not_exist, ok + // Parameters : + // None + // Return Values : + // 0 on failure, + // An array with the archive properties. + // -------------------------------------------------------------------------------- + function properties() + { + + // ----- Reset the error handler + $this->privErrorReset(); + + // ----- Magic quotes trick + $this->privDisableMagicQuotes(); + + // ----- Check archive + if (!$this->privCheckFormat()) { + $this->privSwapBackMagicQuotes(); + return(0); + } + + // ----- Default properties + $v_prop = array(); + $v_prop['comment'] = ''; + $v_prop['nb'] = 0; + $v_prop['status'] = 'not_exist'; + + // ----- Look if file exists + if (@is_file($this->zipname)) + { + // ----- Open the zip file + if (($this->zip_fd = @fopen($this->zipname, 'rb')) == 0) + { + $this->privSwapBackMagicQuotes(); + + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in binary read mode'); + + // ----- Return + return 0; + } + + // ----- Read the central directory informations + $v_central_dir = array(); + if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) + { + $this->privSwapBackMagicQuotes(); + return 0; + } + + // ----- Close the zip file + $this->privCloseFd(); + + // ----- Set the user attributes + $v_prop['comment'] = $v_central_dir['comment']; + $v_prop['nb'] = $v_central_dir['entries']; + $v_prop['status'] = 'ok'; + } + + // ----- Magic quotes trick + $this->privSwapBackMagicQuotes(); + + // ----- Return + return $v_prop; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : duplicate() + // Description : + // This method creates an archive by copying the content of an other one. If + // the archive already exist, it is replaced by the new one without any warning. + // Parameters : + // $p_archive : The filename of a valid archive, or + // a valid PclZip object. + // Return Values : + // 1 on success. + // 0 or a negative value on error (error code). + // -------------------------------------------------------------------------------- + function duplicate($p_archive) + { + $v_result = 1; + + // ----- Reset the error handler + $this->privErrorReset(); + + // ----- Look if the $p_archive is a PclZip object + if ((is_object($p_archive)) && (get_class($p_archive) == 'pclzip')) + { + + // ----- Duplicate the archive + $v_result = $this->privDuplicate($p_archive->zipname); + } + + // ----- Look if the $p_archive is a string (so a filename) + else if (is_string($p_archive)) + { + + // ----- Check that $p_archive is a valid zip file + // TBC : Should also check the archive format + if (!is_file($p_archive)) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "No file with filename '".$p_archive."'"); + $v_result = PCLZIP_ERR_MISSING_FILE; + } + else { + // ----- Duplicate the archive + $v_result = $this->privDuplicate($p_archive); + } + } + + // ----- Invalid variable + else + { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_archive_to_add"); + $v_result = PCLZIP_ERR_INVALID_PARAMETER; + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : merge() + // Description : + // This method merge the $p_archive_to_add archive at the end of the current + // one ($this). + // If the archive ($this) does not exist, the merge becomes a duplicate. + // If the $p_archive_to_add archive does not exist, the merge is a success. + // Parameters : + // $p_archive_to_add : It can be directly the filename of a valid zip archive, + // or a PclZip object archive. + // Return Values : + // 1 on success, + // 0 or negative values on error (see below). + // -------------------------------------------------------------------------------- + function merge($p_archive_to_add) + { + $v_result = 1; + + // ----- Reset the error handler + $this->privErrorReset(); + + // ----- Check archive + if (!$this->privCheckFormat()) { + return(0); + } + + // ----- Look if the $p_archive_to_add is a PclZip object + if ((is_object($p_archive_to_add)) && (get_class($p_archive_to_add) == 'pclzip')) + { + + // ----- Merge the archive + $v_result = $this->privMerge($p_archive_to_add); + } + + // ----- Look if the $p_archive_to_add is a string (so a filename) + else if (is_string($p_archive_to_add)) + { + + // ----- Create a temporary archive + $v_object_archive = new PclZip($p_archive_to_add); + + // ----- Merge the archive + $v_result = $this->privMerge($v_object_archive); + } + + // ----- Invalid variable + else + { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_archive_to_add"); + $v_result = PCLZIP_ERR_INVALID_PARAMETER; + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + + + // -------------------------------------------------------------------------------- + // Function : errorCode() + // Description : + // Parameters : + // -------------------------------------------------------------------------------- + function errorCode() + { + if (PCLZIP_ERROR_EXTERNAL == 1) { + return(PclErrorCode()); + } + else { + return($this->error_code); + } + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : errorName() + // Description : + // Parameters : + // -------------------------------------------------------------------------------- + function errorName($p_with_code=false) + { + $v_name = array ( PCLZIP_ERR_NO_ERROR => 'PCLZIP_ERR_NO_ERROR', + PCLZIP_ERR_WRITE_OPEN_FAIL => 'PCLZIP_ERR_WRITE_OPEN_FAIL', + PCLZIP_ERR_READ_OPEN_FAIL => 'PCLZIP_ERR_READ_OPEN_FAIL', + PCLZIP_ERR_INVALID_PARAMETER => 'PCLZIP_ERR_INVALID_PARAMETER', + PCLZIP_ERR_MISSING_FILE => 'PCLZIP_ERR_MISSING_FILE', + PCLZIP_ERR_FILENAME_TOO_LONG => 'PCLZIP_ERR_FILENAME_TOO_LONG', + PCLZIP_ERR_INVALID_ZIP => 'PCLZIP_ERR_INVALID_ZIP', + PCLZIP_ERR_BAD_EXTRACTED_FILE => 'PCLZIP_ERR_BAD_EXTRACTED_FILE', + PCLZIP_ERR_DIR_CREATE_FAIL => 'PCLZIP_ERR_DIR_CREATE_FAIL', + PCLZIP_ERR_BAD_EXTENSION => 'PCLZIP_ERR_BAD_EXTENSION', + PCLZIP_ERR_BAD_FORMAT => 'PCLZIP_ERR_BAD_FORMAT', + PCLZIP_ERR_DELETE_FILE_FAIL => 'PCLZIP_ERR_DELETE_FILE_FAIL', + PCLZIP_ERR_RENAME_FILE_FAIL => 'PCLZIP_ERR_RENAME_FILE_FAIL', + PCLZIP_ERR_BAD_CHECKSUM => 'PCLZIP_ERR_BAD_CHECKSUM', + PCLZIP_ERR_INVALID_ARCHIVE_ZIP => 'PCLZIP_ERR_INVALID_ARCHIVE_ZIP', + PCLZIP_ERR_MISSING_OPTION_VALUE => 'PCLZIP_ERR_MISSING_OPTION_VALUE', + PCLZIP_ERR_INVALID_OPTION_VALUE => 'PCLZIP_ERR_INVALID_OPTION_VALUE', + PCLZIP_ERR_UNSUPPORTED_COMPRESSION => 'PCLZIP_ERR_UNSUPPORTED_COMPRESSION', + PCLZIP_ERR_UNSUPPORTED_ENCRYPTION => 'PCLZIP_ERR_UNSUPPORTED_ENCRYPTION' + ,PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE => 'PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE' + ,PCLZIP_ERR_DIRECTORY_RESTRICTION => 'PCLZIP_ERR_DIRECTORY_RESTRICTION' + ); + + if (isset($v_name[$this->error_code])) { + $v_value = $v_name[$this->error_code]; + } + else { + $v_value = 'NoName'; + } + + if ($p_with_code) { + return($v_value.' ('.$this->error_code.')'); + } + else { + return($v_value); + } + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : errorInfo() + // Description : + // Parameters : + // -------------------------------------------------------------------------------- + function errorInfo($p_full=false) + { + if (PCLZIP_ERROR_EXTERNAL == 1) { + return(PclErrorString()); + } + else { + if ($p_full) { + return($this->errorName(true)." : ".$this->error_string); + } + else { + return($this->error_string." [code ".$this->error_code."]"); + } + } + } + // -------------------------------------------------------------------------------- + + +// -------------------------------------------------------------------------------- +// ***** UNDER THIS LINE ARE DEFINED PRIVATE INTERNAL FUNCTIONS ***** +// ***** ***** +// ***** THESES FUNCTIONS MUST NOT BE USED DIRECTLY ***** +// -------------------------------------------------------------------------------- + + + + // -------------------------------------------------------------------------------- + // Function : privCheckFormat() + // Description : + // This method check that the archive exists and is a valid zip archive. + // Several level of check exists. (futur) + // Parameters : + // $p_level : Level of check. Default 0. + // 0 : Check the first bytes (magic codes) (default value)) + // 1 : 0 + Check the central directory (futur) + // 2 : 1 + Check each file header (futur) + // Return Values : + // true on success, + // false on error, the error code is set. + // -------------------------------------------------------------------------------- + function privCheckFormat($p_level=0) + { + $v_result = true; + + // ----- Reset the file system cache + clearstatcache(); + + // ----- Reset the error handler + $this->privErrorReset(); + + // ----- Look if the file exits + if (!is_file($this->zipname)) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "Missing archive file '".$this->zipname."'"); + return(false); + } + + // ----- Check that the file is readeable + if (!is_readable($this->zipname)) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to read archive '".$this->zipname."'"); + return(false); + } + + // ----- Check the magic code + // TBC + + // ----- Check the central header + // TBC + + // ----- Check each file header + // TBC + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privParseOptions() + // Description : + // This internal methods reads the variable list of arguments ($p_options_list, + // $p_size) and generate an array with the options and values ($v_result_list). + // $v_requested_options contains the options that can be present and those that + // must be present. + // $v_requested_options is an array, with the option value as key, and 'optional', + // or 'mandatory' as value. + // Parameters : + // See above. + // Return Values : + // 1 on success. + // 0 on failure. + // -------------------------------------------------------------------------------- + function privParseOptions(&$p_options_list, $p_size, &$v_result_list, $v_requested_options=false) + { + $v_result=1; + + // ----- Read the options + $i=0; + while ($i<$p_size) { + + // ----- Check if the option is supported + if (!isset($v_requested_options[$p_options_list[$i]])) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid optional parameter '".$p_options_list[$i]."' for this method"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Look for next option + switch ($p_options_list[$i]) { + // ----- Look for options that request a path value + case PCLZIP_OPT_PATH : + case PCLZIP_OPT_REMOVE_PATH : + case PCLZIP_OPT_ADD_PATH : + // ----- Check the number of parameters + if (($i+1) >= $p_size) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Get the value + $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE); + $i++; + break; + + case PCLZIP_OPT_TEMP_FILE_THRESHOLD : + // ----- Check the number of parameters + if (($i+1) >= $p_size) { + PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); + return PclZip::errorCode(); + } + + // ----- Check for incompatible options + if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_OFF])) { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_OFF'"); + return PclZip::errorCode(); + } + + // ----- Check the value + $v_value = $p_options_list[$i+1]; + if ((!is_integer($v_value)) || ($v_value<0)) { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Integer expected for option '".PclZipUtilOptionText($p_options_list[$i])."'"); + return PclZip::errorCode(); + } + + // ----- Get the value (and convert it in bytes) + $v_result_list[$p_options_list[$i]] = $v_value*1048576; + $i++; + break; + + case PCLZIP_OPT_TEMP_FILE_ON : + // ----- Check for incompatible options + if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_OFF])) { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_OFF'"); + return PclZip::errorCode(); + } + + $v_result_list[$p_options_list[$i]] = true; + break; + + case PCLZIP_OPT_TEMP_FILE_OFF : + // ----- Check for incompatible options + if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_ON])) { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_ON'"); + return PclZip::errorCode(); + } + // ----- Check for incompatible options + if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_THRESHOLD])) { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_THRESHOLD'"); + return PclZip::errorCode(); + } + + $v_result_list[$p_options_list[$i]] = true; + break; + + case PCLZIP_OPT_EXTRACT_DIR_RESTRICTION : + // ----- Check the number of parameters + if (($i+1) >= $p_size) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Get the value + if ( is_string($p_options_list[$i+1]) + && ($p_options_list[$i+1] != '')) { + $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE); + $i++; + } + else { + } + break; + + // ----- Look for options that request an array of string for value + case PCLZIP_OPT_BY_NAME : + // ----- Check the number of parameters + if (($i+1) >= $p_size) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Get the value + if (is_string($p_options_list[$i+1])) { + $v_result_list[$p_options_list[$i]][0] = $p_options_list[$i+1]; + } + else if (is_array($p_options_list[$i+1])) { + $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; + } + else { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Wrong parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); + + // ----- Return + return PclZip::errorCode(); + } + $i++; + break; + + // ----- Look for options that request an EREG or PREG expression + case PCLZIP_OPT_BY_EREG : + // ereg() is deprecated starting with PHP 5.3. Move PCLZIP_OPT_BY_EREG + // to PCLZIP_OPT_BY_PREG + $p_options_list[$i] = PCLZIP_OPT_BY_PREG; + case PCLZIP_OPT_BY_PREG : + //case PCLZIP_OPT_CRYPT : + // ----- Check the number of parameters + if (($i+1) >= $p_size) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Get the value + if (is_string($p_options_list[$i+1])) { + $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; + } + else { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Wrong parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); + + // ----- Return + return PclZip::errorCode(); + } + $i++; + break; + + // ----- Look for options that takes a string + case PCLZIP_OPT_COMMENT : + case PCLZIP_OPT_ADD_COMMENT : + case PCLZIP_OPT_PREPEND_COMMENT : + // ----- Check the number of parameters + if (($i+1) >= $p_size) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, + "Missing parameter value for option '" + .PclZipUtilOptionText($p_options_list[$i]) + ."'"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Get the value + if (is_string($p_options_list[$i+1])) { + $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; + } + else { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, + "Wrong parameter value for option '" + .PclZipUtilOptionText($p_options_list[$i]) + ."'"); + + // ----- Return + return PclZip::errorCode(); + } + $i++; + break; + + // ----- Look for options that request an array of index + case PCLZIP_OPT_BY_INDEX : + // ----- Check the number of parameters + if (($i+1) >= $p_size) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Get the value + $v_work_list = array(); + if (is_string($p_options_list[$i+1])) { + + // ----- Remove spaces + $p_options_list[$i+1] = strtr($p_options_list[$i+1], ' ', ''); + + // ----- Parse items + $v_work_list = explode(",", $p_options_list[$i+1]); + } + else if (is_integer($p_options_list[$i+1])) { + $v_work_list[0] = $p_options_list[$i+1].'-'.$p_options_list[$i+1]; + } + else if (is_array($p_options_list[$i+1])) { + $v_work_list = $p_options_list[$i+1]; + } + else { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Value must be integer, string or array for option '".PclZipUtilOptionText($p_options_list[$i])."'"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Reduce the index list + // each index item in the list must be a couple with a start and + // an end value : [0,3], [5-5], [8-10], ... + // ----- Check the format of each item + $v_sort_flag=false; + $v_sort_value=0; + for ($j=0; $j<sizeof($v_work_list); $j++) { + // ----- Explode the item + $v_item_list = explode("-", $v_work_list[$j]); + $v_size_item_list = sizeof($v_item_list); + + // ----- TBC : Here we might check that each item is a + // real integer ... + + // ----- Look for single value + if ($v_size_item_list == 1) { + // ----- Set the option value + $v_result_list[$p_options_list[$i]][$j]['start'] = $v_item_list[0]; + $v_result_list[$p_options_list[$i]][$j]['end'] = $v_item_list[0]; + } + elseif ($v_size_item_list == 2) { + // ----- Set the option value + $v_result_list[$p_options_list[$i]][$j]['start'] = $v_item_list[0]; + $v_result_list[$p_options_list[$i]][$j]['end'] = $v_item_list[1]; + } + else { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Too many values in index range for option '".PclZipUtilOptionText($p_options_list[$i])."'"); + + // ----- Return + return PclZip::errorCode(); + } + + + // ----- Look for list sort + if ($v_result_list[$p_options_list[$i]][$j]['start'] < $v_sort_value) { + $v_sort_flag=true; + + // ----- TBC : An automatic sort should be writen ... + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Invalid order of index range for option '".PclZipUtilOptionText($p_options_list[$i])."'"); + + // ----- Return + return PclZip::errorCode(); + } + $v_sort_value = $v_result_list[$p_options_list[$i]][$j]['start']; + } + + // ----- Sort the items + if ($v_sort_flag) { + // TBC : To Be Completed + } + + // ----- Next option + $i++; + break; + + // ----- Look for options that request no value + case PCLZIP_OPT_REMOVE_ALL_PATH : + case PCLZIP_OPT_EXTRACT_AS_STRING : + case PCLZIP_OPT_NO_COMPRESSION : + case PCLZIP_OPT_EXTRACT_IN_OUTPUT : + case PCLZIP_OPT_REPLACE_NEWER : + case PCLZIP_OPT_STOP_ON_ERROR : + $v_result_list[$p_options_list[$i]] = true; + break; + + // ----- Look for options that request an octal value + case PCLZIP_OPT_SET_CHMOD : + // ----- Check the number of parameters + if (($i+1) >= $p_size) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Get the value + $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; + $i++; + break; + + // ----- Look for options that request a call-back + case PCLZIP_CB_PRE_EXTRACT : + case PCLZIP_CB_POST_EXTRACT : + case PCLZIP_CB_PRE_ADD : + case PCLZIP_CB_POST_ADD : + /* for futur use + case PCLZIP_CB_PRE_DELETE : + case PCLZIP_CB_POST_DELETE : + case PCLZIP_CB_PRE_LIST : + case PCLZIP_CB_POST_LIST : + */ + // ----- Check the number of parameters + if (($i+1) >= $p_size) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Get the value + $v_function_name = $p_options_list[$i+1]; + + // ----- Check that the value is a valid existing function + if (!function_exists($v_function_name)) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Function '".$v_function_name."()' is not an existing function for option '".PclZipUtilOptionText($p_options_list[$i])."'"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Set the attribute + $v_result_list[$p_options_list[$i]] = $v_function_name; + $i++; + break; + + default : + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, + "Unknown parameter '" + .$p_options_list[$i]."'"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Next options + $i++; + } + + // ----- Look for mandatory options + if ($v_requested_options !== false) { + for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) { + // ----- Look for mandatory option + if ($v_requested_options[$key] == 'mandatory') { + // ----- Look if present + if (!isset($v_result_list[$key])) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Missing mandatory parameter ".PclZipUtilOptionText($key)."(".$key.")"); + + // ----- Return + return PclZip::errorCode(); + } + } + } + } + + // ----- Look for default values + if (!isset($v_result_list[PCLZIP_OPT_TEMP_FILE_THRESHOLD])) { + + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privOptionDefaultThreshold() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privOptionDefaultThreshold(&$p_options) + { + $v_result=1; + + if (isset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]) + || isset($p_options[PCLZIP_OPT_TEMP_FILE_OFF])) { + return $v_result; + } + + // ----- Get 'memory_limit' configuration value + $v_memory_limit = ini_get('memory_limit'); + $v_memory_limit = trim($v_memory_limit); + $last = strtolower(substr($v_memory_limit, -1)); + + if($last == 'g') + //$v_memory_limit = $v_memory_limit*1024*1024*1024; + $v_memory_limit = $v_memory_limit*1073741824; + if($last == 'm') + //$v_memory_limit = $v_memory_limit*1024*1024; + $v_memory_limit = $v_memory_limit*1048576; + if($last == 'k') + $v_memory_limit = $v_memory_limit*1024; + + $p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] = floor($v_memory_limit*PCLZIP_TEMPORARY_FILE_RATIO); + + + // ----- Sanity check : No threshold if value lower than 1M + if ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] < 1048576) { + unset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]); + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privFileDescrParseAtt() + // Description : + // Parameters : + // Return Values : + // 1 on success. + // 0 on failure. + // -------------------------------------------------------------------------------- + function privFileDescrParseAtt(&$p_file_list, &$p_filedescr, $v_options, $v_requested_options=false) + { + $v_result=1; + + // ----- For each file in the list check the attributes + foreach ($p_file_list as $v_key => $v_value) { + + // ----- Check if the option is supported + if (!isset($v_requested_options[$v_key])) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid file attribute '".$v_key."' for this file"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Look for attribute + switch ($v_key) { + case PCLZIP_ATT_FILE_NAME : + if (!is_string($v_value)) { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'"); + return PclZip::errorCode(); + } + + $p_filedescr['filename'] = PclZipUtilPathReduction($v_value); + + if ($p_filedescr['filename'] == '') { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid empty filename for attribute '".PclZipUtilOptionText($v_key)."'"); + return PclZip::errorCode(); + } + + break; + + case PCLZIP_ATT_FILE_NEW_SHORT_NAME : + if (!is_string($v_value)) { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'"); + return PclZip::errorCode(); + } + + $p_filedescr['new_short_name'] = PclZipUtilPathReduction($v_value); + + if ($p_filedescr['new_short_name'] == '') { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid empty short filename for attribute '".PclZipUtilOptionText($v_key)."'"); + return PclZip::errorCode(); + } + break; + + case PCLZIP_ATT_FILE_NEW_FULL_NAME : + if (!is_string($v_value)) { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'"); + return PclZip::errorCode(); + } + + $p_filedescr['new_full_name'] = PclZipUtilPathReduction($v_value); + + if ($p_filedescr['new_full_name'] == '') { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid empty full filename for attribute '".PclZipUtilOptionText($v_key)."'"); + return PclZip::errorCode(); + } + break; + + // ----- Look for options that takes a string + case PCLZIP_ATT_FILE_COMMENT : + if (!is_string($v_value)) { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'"); + return PclZip::errorCode(); + } + + $p_filedescr['comment'] = $v_value; + break; + + case PCLZIP_ATT_FILE_MTIME : + if (!is_integer($v_value)) { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". Integer expected for attribute '".PclZipUtilOptionText($v_key)."'"); + return PclZip::errorCode(); + } + + $p_filedescr['mtime'] = $v_value; + break; + + case PCLZIP_ATT_FILE_CONTENT : + $p_filedescr['content'] = $v_value; + break; + + default : + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, + "Unknown parameter '".$v_key."'"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Look for mandatory options + if ($v_requested_options !== false) { + for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) { + // ----- Look for mandatory option + if ($v_requested_options[$key] == 'mandatory') { + // ----- Look if present + if (!isset($p_file_list[$key])) { + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Missing mandatory parameter ".PclZipUtilOptionText($key)."(".$key.")"); + return PclZip::errorCode(); + } + } + } + } + + // end foreach + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privFileDescrExpand() + // Description : + // This method look for each item of the list to see if its a file, a folder + // or a string to be added as file. For any other type of files (link, other) + // just ignore the item. + // Then prepare the information that will be stored for that file. + // When its a folder, expand the folder with all the files that are in that + // folder (recursively). + // Parameters : + // Return Values : + // 1 on success. + // 0 on failure. + // -------------------------------------------------------------------------------- + function privFileDescrExpand(&$p_filedescr_list, &$p_options) + { + $v_result=1; + + // ----- Create a result list + $v_result_list = array(); + + // ----- Look each entry + for ($i=0; $i<sizeof($p_filedescr_list); $i++) { + + // ----- Get filedescr + $v_descr = $p_filedescr_list[$i]; + + // ----- Reduce the filename + $v_descr['filename'] = PclZipUtilTranslateWinPath($v_descr['filename'], false); + $v_descr['filename'] = PclZipUtilPathReduction($v_descr['filename']); + + // ----- Look for real file or folder + if (file_exists($v_descr['filename'])) { + if (@is_file($v_descr['filename'])) { + $v_descr['type'] = 'file'; + } + else if (@is_dir($v_descr['filename'])) { + $v_descr['type'] = 'folder'; + } + else if (@is_link($v_descr['filename'])) { + // skip + continue; + } + else { + // skip + continue; + } + } + + // ----- Look for string added as file + else if (isset($v_descr['content'])) { + $v_descr['type'] = 'virtual_file'; + } + + // ----- Missing file + else { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "File '".$v_descr['filename']."' does not exist"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Calculate the stored filename + $this->privCalculateStoredFilename($v_descr, $p_options); + + // ----- Add the descriptor in result list + $v_result_list[sizeof($v_result_list)] = $v_descr; + + // ----- Look for folder + if ($v_descr['type'] == 'folder') { + // ----- List of items in folder + $v_dirlist_descr = array(); + $v_dirlist_nb = 0; + if ($v_folder_handler = @opendir($v_descr['filename'])) { + while (($v_item_handler = @readdir($v_folder_handler)) !== false) { + + // ----- Skip '.' and '..' + if (($v_item_handler == '.') || ($v_item_handler == '..')) { + continue; + } + + // ----- Compose the full filename + $v_dirlist_descr[$v_dirlist_nb]['filename'] = $v_descr['filename'].'/'.$v_item_handler; + + // ----- Look for different stored filename + // Because the name of the folder was changed, the name of the + // files/sub-folders also change + if (($v_descr['stored_filename'] != $v_descr['filename']) + && (!isset($p_options[PCLZIP_OPT_REMOVE_ALL_PATH]))) { + if ($v_descr['stored_filename'] != '') { + $v_dirlist_descr[$v_dirlist_nb]['new_full_name'] = $v_descr['stored_filename'].'/'.$v_item_handler; + } + else { + $v_dirlist_descr[$v_dirlist_nb]['new_full_name'] = $v_item_handler; + } + } + + $v_dirlist_nb++; + } + + @closedir($v_folder_handler); + } + else { + // TBC : unable to open folder in read mode + } + + // ----- Expand each element of the list + if ($v_dirlist_nb != 0) { + // ----- Expand + if (($v_result = $this->privFileDescrExpand($v_dirlist_descr, $p_options)) != 1) { + return $v_result; + } + + // ----- Concat the resulting list + $v_result_list = array_merge($v_result_list, $v_dirlist_descr); + } + else { + } + + // ----- Free local array + unset($v_dirlist_descr); + } + } + + // ----- Get the result list + $p_filedescr_list = $v_result_list; + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privCreate() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privCreate($p_filedescr_list, &$p_result_list, &$p_options) + { + $v_result=1; + $v_list_detail = array(); + + // ----- Magic quotes trick + $this->privDisableMagicQuotes(); + + // ----- Open the file in write mode + if (($v_result = $this->privOpenFd('wb')) != 1) + { + // ----- Return + return $v_result; + } + + // ----- Add the list of files + $v_result = $this->privAddList($p_filedescr_list, $p_result_list, $p_options); + + // ----- Close + $this->privCloseFd(); + + // ----- Magic quotes trick + $this->privSwapBackMagicQuotes(); + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privAdd() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privAdd($p_filedescr_list, &$p_result_list, &$p_options) + { + $v_result=1; + $v_list_detail = array(); + + // ----- Look if the archive exists or is empty + if ((!is_file($this->zipname)) || (filesize($this->zipname) == 0)) + { + + // ----- Do a create + $v_result = $this->privCreate($p_filedescr_list, $p_result_list, $p_options); + + // ----- Return + return $v_result; + } + // ----- Magic quotes trick + $this->privDisableMagicQuotes(); + + // ----- Open the zip file + if (($v_result=$this->privOpenFd('rb')) != 1) + { + // ----- Magic quotes trick + $this->privSwapBackMagicQuotes(); + + // ----- Return + return $v_result; + } + + // ----- Read the central directory informations + $v_central_dir = array(); + if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) + { + $this->privCloseFd(); + $this->privSwapBackMagicQuotes(); + return $v_result; + } + + // ----- Go to beginning of File + @rewind($this->zip_fd); + + // ----- Creates a temporay file + $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.tmp'; + + // ----- Open the temporary file in write mode + if (($v_zip_temp_fd = @fopen($v_zip_temp_name, 'wb')) == 0) + { + $this->privCloseFd(); + $this->privSwapBackMagicQuotes(); + + PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_zip_temp_name.'\' in binary write mode'); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Copy the files from the archive to the temporary file + // TBC : Here I should better append the file and go back to erase the central dir + $v_size = $v_central_dir['offset']; + while ($v_size != 0) + { + $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = fread($this->zip_fd, $v_read_size); + @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); + $v_size -= $v_read_size; + } + + // ----- Swap the file descriptor + // Here is a trick : I swap the temporary fd with the zip fd, in order to use + // the following methods on the temporary fil and not the real archive + $v_swap = $this->zip_fd; + $this->zip_fd = $v_zip_temp_fd; + $v_zip_temp_fd = $v_swap; + + // ----- Add the files + $v_header_list = array(); + if (($v_result = $this->privAddFileList($p_filedescr_list, $v_header_list, $p_options)) != 1) + { + fclose($v_zip_temp_fd); + $this->privCloseFd(); + @unlink($v_zip_temp_name); + $this->privSwapBackMagicQuotes(); + + // ----- Return + return $v_result; + } + + // ----- Store the offset of the central dir + $v_offset = @ftell($this->zip_fd); + + // ----- Copy the block of file headers from the old archive + $v_size = $v_central_dir['size']; + while ($v_size != 0) + { + $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = @fread($v_zip_temp_fd, $v_read_size); + @fwrite($this->zip_fd, $v_buffer, $v_read_size); + $v_size -= $v_read_size; + } + + // ----- Create the Central Dir files header + for ($i=0, $v_count=0; $i<sizeof($v_header_list); $i++) + { + // ----- Create the file header + if ($v_header_list[$i]['status'] == 'ok') { + if (($v_result = $this->privWriteCentralFileHeader($v_header_list[$i])) != 1) { + fclose($v_zip_temp_fd); + $this->privCloseFd(); + @unlink($v_zip_temp_name); + $this->privSwapBackMagicQuotes(); + + // ----- Return + return $v_result; + } + $v_count++; + } + + // ----- Transform the header to a 'usable' info + $this->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]); + } + + // ----- Zip file comment + $v_comment = $v_central_dir['comment']; + if (isset($p_options[PCLZIP_OPT_COMMENT])) { + $v_comment = $p_options[PCLZIP_OPT_COMMENT]; + } + if (isset($p_options[PCLZIP_OPT_ADD_COMMENT])) { + $v_comment = $v_comment.$p_options[PCLZIP_OPT_ADD_COMMENT]; + } + if (isset($p_options[PCLZIP_OPT_PREPEND_COMMENT])) { + $v_comment = $p_options[PCLZIP_OPT_PREPEND_COMMENT].$v_comment; + } + + // ----- Calculate the size of the central header + $v_size = @ftell($this->zip_fd)-$v_offset; + + // ----- Create the central dir footer + if (($v_result = $this->privWriteCentralHeader($v_count+$v_central_dir['entries'], $v_size, $v_offset, $v_comment)) != 1) + { + // ----- Reset the file list + unset($v_header_list); + $this->privSwapBackMagicQuotes(); + + // ----- Return + return $v_result; + } + + // ----- Swap back the file descriptor + $v_swap = $this->zip_fd; + $this->zip_fd = $v_zip_temp_fd; + $v_zip_temp_fd = $v_swap; + + // ----- Close + $this->privCloseFd(); + + // ----- Close the temporary file + @fclose($v_zip_temp_fd); + + // ----- Magic quotes trick + $this->privSwapBackMagicQuotes(); + + // ----- Delete the zip file + // TBC : I should test the result ... + @unlink($this->zipname); + + // ----- Rename the temporary file + // TBC : I should test the result ... + //@rename($v_zip_temp_name, $this->zipname); + PclZipUtilRename($v_zip_temp_name, $this->zipname); + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privOpenFd() + // Description : + // Parameters : + // -------------------------------------------------------------------------------- + function privOpenFd($p_mode) + { + $v_result=1; + + // ----- Look if already open + if ($this->zip_fd != 0) + { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Zip file \''.$this->zipname.'\' already open'); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Open the zip file + if (($this->zip_fd = @fopen($this->zipname, $p_mode)) == 0) + { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in '.$p_mode.' mode'); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privCloseFd() + // Description : + // Parameters : + // -------------------------------------------------------------------------------- + function privCloseFd() + { + $v_result=1; + + if ($this->zip_fd != 0) + @fclose($this->zip_fd); + $this->zip_fd = 0; + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privAddList() + // Description : + // $p_add_dir and $p_remove_dir will give the ability to memorize a path which is + // different from the real path of the file. This is usefull if you want to have PclTar + // running in any directory, and memorize relative path from an other directory. + // Parameters : + // $p_list : An array containing the file or directory names to add in the tar + // $p_result_list : list of added files with their properties (specially the status field) + // $p_add_dir : Path to add in the filename path archived + // $p_remove_dir : Path to remove in the filename path archived + // Return Values : + // -------------------------------------------------------------------------------- +// function privAddList($p_list, &$p_result_list, $p_add_dir, $p_remove_dir, $p_remove_all_dir, &$p_options) + function privAddList($p_filedescr_list, &$p_result_list, &$p_options) + { + $v_result=1; + + // ----- Add the files + $v_header_list = array(); + if (($v_result = $this->privAddFileList($p_filedescr_list, $v_header_list, $p_options)) != 1) + { + // ----- Return + return $v_result; + } + + // ----- Store the offset of the central dir + $v_offset = @ftell($this->zip_fd); + + // ----- Create the Central Dir files header + for ($i=0,$v_count=0; $i<sizeof($v_header_list); $i++) + { + // ----- Create the file header + if ($v_header_list[$i]['status'] == 'ok') { + if (($v_result = $this->privWriteCentralFileHeader($v_header_list[$i])) != 1) { + // ----- Return + return $v_result; + } + $v_count++; + } + + // ----- Transform the header to a 'usable' info + $this->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]); + } + + // ----- Zip file comment + $v_comment = ''; + if (isset($p_options[PCLZIP_OPT_COMMENT])) { + $v_comment = $p_options[PCLZIP_OPT_COMMENT]; + } + + // ----- Calculate the size of the central header + $v_size = @ftell($this->zip_fd)-$v_offset; + + // ----- Create the central dir footer + if (($v_result = $this->privWriteCentralHeader($v_count, $v_size, $v_offset, $v_comment)) != 1) + { + // ----- Reset the file list + unset($v_header_list); + + // ----- Return + return $v_result; + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privAddFileList() + // Description : + // Parameters : + // $p_filedescr_list : An array containing the file description + // or directory names to add in the zip + // $p_result_list : list of added files with their properties (specially the status field) + // Return Values : + // -------------------------------------------------------------------------------- + function privAddFileList($p_filedescr_list, &$p_result_list, &$p_options) + { + $v_result=1; + $v_header = array(); + + // ----- Recuperate the current number of elt in list + $v_nb = sizeof($p_result_list); + + // ----- Loop on the files + for ($j=0; ($j<sizeof($p_filedescr_list)) && ($v_result==1); $j++) { + // ----- Format the filename + $p_filedescr_list[$j]['filename'] + = PclZipUtilTranslateWinPath($p_filedescr_list[$j]['filename'], false); + + + // ----- Skip empty file names + // TBC : Can this be possible ? not checked in DescrParseAtt ? + if ($p_filedescr_list[$j]['filename'] == "") { + continue; + } + + // ----- Check the filename + if ( ($p_filedescr_list[$j]['type'] != 'virtual_file') + && (!file_exists($p_filedescr_list[$j]['filename']))) { + PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "File '".$p_filedescr_list[$j]['filename']."' does not exist"); + return PclZip::errorCode(); + } + + // ----- Look if it is a file or a dir with no all path remove option + // or a dir with all its path removed +// if ( (is_file($p_filedescr_list[$j]['filename'])) +// || ( is_dir($p_filedescr_list[$j]['filename']) + if ( ($p_filedescr_list[$j]['type'] == 'file') + || ($p_filedescr_list[$j]['type'] == 'virtual_file') + || ( ($p_filedescr_list[$j]['type'] == 'folder') + && ( !isset($p_options[PCLZIP_OPT_REMOVE_ALL_PATH]) + || !$p_options[PCLZIP_OPT_REMOVE_ALL_PATH])) + ) { + + // ----- Add the file + $v_result = $this->privAddFile($p_filedescr_list[$j], $v_header, + $p_options); + if ($v_result != 1) { + return $v_result; + } + + // ----- Store the file infos + $p_result_list[$v_nb++] = $v_header; + } + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privAddFile() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privAddFile($p_filedescr, &$p_header, &$p_options) + { + $v_result=1; + + // ----- Working variable + $p_filename = $p_filedescr['filename']; + + // TBC : Already done in the fileAtt check ... ? + if ($p_filename == "") { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid file list parameter (invalid or empty list)"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Look for a stored different filename + /* TBC : Removed + if (isset($p_filedescr['stored_filename'])) { + $v_stored_filename = $p_filedescr['stored_filename']; + } + else { + $v_stored_filename = $p_filedescr['stored_filename']; + } + */ + + // ----- Set the file properties + clearstatcache(); + $p_header['version'] = 20; + $p_header['version_extracted'] = 10; + $p_header['flag'] = 0; + $p_header['compression'] = 0; + $p_header['crc'] = 0; + $p_header['compressed_size'] = 0; + $p_header['filename_len'] = strlen($p_filename); + $p_header['extra_len'] = 0; + $p_header['disk'] = 0; + $p_header['internal'] = 0; + $p_header['offset'] = 0; + $p_header['filename'] = $p_filename; +// TBC : Removed $p_header['stored_filename'] = $v_stored_filename; + $p_header['stored_filename'] = $p_filedescr['stored_filename']; + $p_header['extra'] = ''; + $p_header['status'] = 'ok'; + $p_header['index'] = -1; + + // ----- Look for regular file + if ($p_filedescr['type']=='file') { + $p_header['external'] = 0x00000000; + $p_header['size'] = filesize($p_filename); + } + + // ----- Look for regular folder + else if ($p_filedescr['type']=='folder') { + $p_header['external'] = 0x00000010; + $p_header['mtime'] = filemtime($p_filename); + $p_header['size'] = filesize($p_filename); + } + + // ----- Look for virtual file + else if ($p_filedescr['type'] == 'virtual_file') { + $p_header['external'] = 0x00000000; + $p_header['size'] = strlen($p_filedescr['content']); + } + + + // ----- Look for filetime + if (isset($p_filedescr['mtime'])) { + $p_header['mtime'] = $p_filedescr['mtime']; + } + else if ($p_filedescr['type'] == 'virtual_file') { + $p_header['mtime'] = time(); + } + else { + $p_header['mtime'] = filemtime($p_filename); + } + + // ------ Look for file comment + if (isset($p_filedescr['comment'])) { + $p_header['comment_len'] = strlen($p_filedescr['comment']); + $p_header['comment'] = $p_filedescr['comment']; + } + else { + $p_header['comment_len'] = 0; + $p_header['comment'] = ''; + } + + // ----- Look for pre-add callback + if (isset($p_options[PCLZIP_CB_PRE_ADD])) { + + // ----- Generate a local information + $v_local_header = array(); + $this->privConvertHeader2FileInfo($p_header, $v_local_header); + + // ----- Call the callback + // Here I do not use call_user_func() because I need to send a reference to the + // header. +// eval('$v_result = '.$p_options[PCLZIP_CB_PRE_ADD].'(PCLZIP_CB_PRE_ADD, $v_local_header);'); + $v_result = $p_options[PCLZIP_CB_PRE_ADD](PCLZIP_CB_PRE_ADD, $v_local_header); + if ($v_result == 0) { + // ----- Change the file status + $p_header['status'] = "skipped"; + $v_result = 1; + } + + // ----- Update the informations + // Only some fields can be modified + if ($p_header['stored_filename'] != $v_local_header['stored_filename']) { + $p_header['stored_filename'] = PclZipUtilPathReduction($v_local_header['stored_filename']); + } + } + + // ----- Look for empty stored filename + if ($p_header['stored_filename'] == "") { + $p_header['status'] = "filtered"; + } + + // ----- Check the path length + if (strlen($p_header['stored_filename']) > 0xFF) { + $p_header['status'] = 'filename_too_long'; + } + + // ----- Look if no error, or file not skipped + if ($p_header['status'] == 'ok') { + + // ----- Look for a file + if ($p_filedescr['type'] == 'file') { + // ----- Look for using temporary file to zip + if ( (!isset($p_options[PCLZIP_OPT_TEMP_FILE_OFF])) + && (isset($p_options[PCLZIP_OPT_TEMP_FILE_ON]) + || (isset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]) + && ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] <= $p_header['size'])) ) ) { + $v_result = $this->privAddFileUsingTempFile($p_filedescr, $p_header, $p_options); + if ($v_result < PCLZIP_ERR_NO_ERROR) { + return $v_result; + } + } + + // ----- Use "in memory" zip algo + else { + + // ----- Open the source file + if (($v_file = @fopen($p_filename, "rb")) == 0) { + PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to open file '$p_filename' in binary read mode"); + return PclZip::errorCode(); + } + + // ----- Read the file content + $v_content = @fread($v_file, $p_header['size']); + + // ----- Close the file + @fclose($v_file); + + // ----- Calculate the CRC + $p_header['crc'] = @crc32($v_content); + + // ----- Look for no compression + if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) { + // ----- Set header parameters + $p_header['compressed_size'] = $p_header['size']; + $p_header['compression'] = 0; + } + + // ----- Look for normal compression + else { + // ----- Compress the content + $v_content = @gzdeflate($v_content); + + // ----- Set header parameters + $p_header['compressed_size'] = strlen($v_content); + $p_header['compression'] = 8; + } + + // ----- Call the header generation + if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { + @fclose($v_file); + return $v_result; + } + + // ----- Write the compressed (or not) content + @fwrite($this->zip_fd, $v_content, $p_header['compressed_size']); + + } + + } + + // ----- Look for a virtual file (a file from string) + else if ($p_filedescr['type'] == 'virtual_file') { + + $v_content = $p_filedescr['content']; + + // ----- Calculate the CRC + $p_header['crc'] = @crc32($v_content); + + // ----- Look for no compression + if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) { + // ----- Set header parameters + $p_header['compressed_size'] = $p_header['size']; + $p_header['compression'] = 0; + } + + // ----- Look for normal compression + else { + // ----- Compress the content + $v_content = @gzdeflate($v_content); + + // ----- Set header parameters + $p_header['compressed_size'] = strlen($v_content); + $p_header['compression'] = 8; + } + + // ----- Call the header generation + if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { + @fclose($v_file); + return $v_result; + } + + // ----- Write the compressed (or not) content + @fwrite($this->zip_fd, $v_content, $p_header['compressed_size']); + } + + // ----- Look for a directory + else if ($p_filedescr['type'] == 'folder') { + // ----- Look for directory last '/' + if (@substr($p_header['stored_filename'], -1) != '/') { + $p_header['stored_filename'] .= '/'; + } + + // ----- Set the file properties + $p_header['size'] = 0; + //$p_header['external'] = 0x41FF0010; // Value for a folder : to be checked + $p_header['external'] = 0x00000010; // Value for a folder : to be checked + + // ----- Call the header generation + if (($v_result = $this->privWriteFileHeader($p_header)) != 1) + { + return $v_result; + } + } + } + + // ----- Look for post-add callback + if (isset($p_options[PCLZIP_CB_POST_ADD])) { + + // ----- Generate a local information + $v_local_header = array(); + $this->privConvertHeader2FileInfo($p_header, $v_local_header); + + // ----- Call the callback + // Here I do not use call_user_func() because I need to send a reference to the + // header. +// eval('$v_result = '.$p_options[PCLZIP_CB_POST_ADD].'(PCLZIP_CB_POST_ADD, $v_local_header);'); + $v_result = $p_options[PCLZIP_CB_POST_ADD](PCLZIP_CB_POST_ADD, $v_local_header); + if ($v_result == 0) { + // ----- Ignored + $v_result = 1; + } + + // ----- Update the informations + // Nothing can be modified + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privAddFileUsingTempFile() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privAddFileUsingTempFile($p_filedescr, &$p_header, &$p_options) + { + $v_result=PCLZIP_ERR_NO_ERROR; + + // ----- Working variable + $p_filename = $p_filedescr['filename']; + + + // ----- Open the source file + if (($v_file = @fopen($p_filename, "rb")) == 0) { + PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to open file '$p_filename' in binary read mode"); + return PclZip::errorCode(); + } + + // ----- Creates a compressed temporary file + $v_gzip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.gz'; + if (($v_file_compressed = @gzopen($v_gzip_temp_name, "wb")) == 0) { + fclose($v_file); + PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary write mode'); + return PclZip::errorCode(); + } + + // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks + $v_size = filesize($p_filename); + while ($v_size != 0) { + $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = @fread($v_file, $v_read_size); + //$v_binary_data = pack('a'.$v_read_size, $v_buffer); + @gzputs($v_file_compressed, $v_buffer, $v_read_size); + $v_size -= $v_read_size; + } + + // ----- Close the file + @fclose($v_file); + @gzclose($v_file_compressed); + + // ----- Check the minimum file size + if (filesize($v_gzip_temp_name) < 18) { + PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'gzip temporary file \''.$v_gzip_temp_name.'\' has invalid filesize - should be minimum 18 bytes'); + return PclZip::errorCode(); + } + + // ----- Extract the compressed attributes + if (($v_file_compressed = @fopen($v_gzip_temp_name, "rb")) == 0) { + PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary read mode'); + return PclZip::errorCode(); + } + + // ----- Read the gzip file header + $v_binary_data = @fread($v_file_compressed, 10); + $v_data_header = unpack('a1id1/a1id2/a1cm/a1flag/Vmtime/a1xfl/a1os', $v_binary_data); + + // ----- Check some parameters + $v_data_header['os'] = bin2hex($v_data_header['os']); + + // ----- Read the gzip file footer + @fseek($v_file_compressed, filesize($v_gzip_temp_name)-8); + $v_binary_data = @fread($v_file_compressed, 8); + $v_data_footer = unpack('Vcrc/Vcompressed_size', $v_binary_data); + + // ----- Set the attributes + $p_header['compression'] = ord($v_data_header['cm']); + //$p_header['mtime'] = $v_data_header['mtime']; + $p_header['crc'] = $v_data_footer['crc']; + $p_header['compressed_size'] = filesize($v_gzip_temp_name)-18; + + // ----- Close the file + @fclose($v_file_compressed); + + // ----- Call the header generation + if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { + return $v_result; + } + + // ----- Add the compressed data + if (($v_file_compressed = @fopen($v_gzip_temp_name, "rb")) == 0) + { + PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary read mode'); + return PclZip::errorCode(); + } + + // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks + fseek($v_file_compressed, 10); + $v_size = $p_header['compressed_size']; + while ($v_size != 0) + { + $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = @fread($v_file_compressed, $v_read_size); + //$v_binary_data = pack('a'.$v_read_size, $v_buffer); + @fwrite($this->zip_fd, $v_buffer, $v_read_size); + $v_size -= $v_read_size; + } + + // ----- Close the file + @fclose($v_file_compressed); + + // ----- Unlink the temporary file + @unlink($v_gzip_temp_name); + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privCalculateStoredFilename() + // Description : + // Based on file descriptor properties and global options, this method + // calculate the filename that will be stored in the archive. + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privCalculateStoredFilename(&$p_filedescr, &$p_options) + { + $v_result=1; + + // ----- Working variables + $p_filename = $p_filedescr['filename']; + if (isset($p_options[PCLZIP_OPT_ADD_PATH])) { + $p_add_dir = $p_options[PCLZIP_OPT_ADD_PATH]; + } + else { + $p_add_dir = ''; + } + if (isset($p_options[PCLZIP_OPT_REMOVE_PATH])) { + $p_remove_dir = $p_options[PCLZIP_OPT_REMOVE_PATH]; + } + else { + $p_remove_dir = ''; + } + if (isset($p_options[PCLZIP_OPT_REMOVE_ALL_PATH])) { + $p_remove_all_dir = $p_options[PCLZIP_OPT_REMOVE_ALL_PATH]; + } + else { + $p_remove_all_dir = 0; + } + + + // ----- Look for full name change + if (isset($p_filedescr['new_full_name'])) { + // ----- Remove drive letter if any + $v_stored_filename = PclZipUtilTranslateWinPath($p_filedescr['new_full_name']); + } + + // ----- Look for path and/or short name change + else { + + // ----- Look for short name change + // Its when we cahnge just the filename but not the path + if (isset($p_filedescr['new_short_name'])) { + $v_path_info = pathinfo($p_filename); + $v_dir = ''; + if ($v_path_info['dirname'] != '') { + $v_dir = $v_path_info['dirname'].'/'; + } + $v_stored_filename = $v_dir.$p_filedescr['new_short_name']; + } + else { + // ----- Calculate the stored filename + $v_stored_filename = $p_filename; + } + + // ----- Look for all path to remove + if ($p_remove_all_dir) { + $v_stored_filename = basename($p_filename); + } + // ----- Look for partial path remove + else if ($p_remove_dir != "") { + if (substr($p_remove_dir, -1) != '/') + $p_remove_dir .= "/"; + + if ( (substr($p_filename, 0, 2) == "./") + || (substr($p_remove_dir, 0, 2) == "./")) { + + if ( (substr($p_filename, 0, 2) == "./") + && (substr($p_remove_dir, 0, 2) != "./")) { + $p_remove_dir = "./".$p_remove_dir; + } + if ( (substr($p_filename, 0, 2) != "./") + && (substr($p_remove_dir, 0, 2) == "./")) { + $p_remove_dir = substr($p_remove_dir, 2); + } + } + + $v_compare = PclZipUtilPathInclusion($p_remove_dir, + $v_stored_filename); + if ($v_compare > 0) { + if ($v_compare == 2) { + $v_stored_filename = ""; + } + else { + $v_stored_filename = substr($v_stored_filename, + strlen($p_remove_dir)); + } + } + } + + // ----- Remove drive letter if any + $v_stored_filename = PclZipUtilTranslateWinPath($v_stored_filename); + + // ----- Look for path to add + if ($p_add_dir != "") { + if (substr($p_add_dir, -1) == "/") + $v_stored_filename = $p_add_dir.$v_stored_filename; + else + $v_stored_filename = $p_add_dir."/".$v_stored_filename; + } + } + + // ----- Filename (reduce the path of stored name) + $v_stored_filename = PclZipUtilPathReduction($v_stored_filename); + $p_filedescr['stored_filename'] = $v_stored_filename; + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privWriteFileHeader() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privWriteFileHeader(&$p_header) + { + $v_result=1; + + // ----- Store the offset position of the file + $p_header['offset'] = ftell($this->zip_fd); + + // ----- Transform UNIX mtime to DOS format mdate/mtime + $v_date = getdate($p_header['mtime']); + $v_mtime = ($v_date['hours']<<11) + ($v_date['minutes']<<5) + $v_date['seconds']/2; + $v_mdate = (($v_date['year']-1980)<<9) + ($v_date['mon']<<5) + $v_date['mday']; + + // ----- Packed data + $v_binary_data = pack("VvvvvvVVVvv", 0x04034b50, + $p_header['version_extracted'], $p_header['flag'], + $p_header['compression'], $v_mtime, $v_mdate, + $p_header['crc'], $p_header['compressed_size'], + $p_header['size'], + strlen($p_header['stored_filename']), + $p_header['extra_len']); + + // ----- Write the first 148 bytes of the header in the archive + fputs($this->zip_fd, $v_binary_data, 30); + + // ----- Write the variable fields + if (strlen($p_header['stored_filename']) != 0) + { + fputs($this->zip_fd, $p_header['stored_filename'], strlen($p_header['stored_filename'])); + } + if ($p_header['extra_len'] != 0) + { + fputs($this->zip_fd, $p_header['extra'], $p_header['extra_len']); + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privWriteCentralFileHeader() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privWriteCentralFileHeader(&$p_header) + { + $v_result=1; + + // TBC + //for(reset($p_header); $key = key($p_header); next($p_header)) { + //} + + // ----- Transform UNIX mtime to DOS format mdate/mtime + $v_date = getdate($p_header['mtime']); + $v_mtime = ($v_date['hours']<<11) + ($v_date['minutes']<<5) + $v_date['seconds']/2; + $v_mdate = (($v_date['year']-1980)<<9) + ($v_date['mon']<<5) + $v_date['mday']; + + + // ----- Packed data + $v_binary_data = pack("VvvvvvvVVVvvvvvVV", 0x02014b50, + $p_header['version'], $p_header['version_extracted'], + $p_header['flag'], $p_header['compression'], + $v_mtime, $v_mdate, $p_header['crc'], + $p_header['compressed_size'], $p_header['size'], + strlen($p_header['stored_filename']), + $p_header['extra_len'], $p_header['comment_len'], + $p_header['disk'], $p_header['internal'], + $p_header['external'], $p_header['offset']); + + // ----- Write the 42 bytes of the header in the zip file + fputs($this->zip_fd, $v_binary_data, 46); + + // ----- Write the variable fields + if (strlen($p_header['stored_filename']) != 0) + { + fputs($this->zip_fd, $p_header['stored_filename'], strlen($p_header['stored_filename'])); + } + if ($p_header['extra_len'] != 0) + { + fputs($this->zip_fd, $p_header['extra'], $p_header['extra_len']); + } + if ($p_header['comment_len'] != 0) + { + fputs($this->zip_fd, $p_header['comment'], $p_header['comment_len']); + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privWriteCentralHeader() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privWriteCentralHeader($p_nb_entries, $p_size, $p_offset, $p_comment) + { + $v_result=1; + + // ----- Packed data + $v_binary_data = pack("VvvvvVVv", 0x06054b50, 0, 0, $p_nb_entries, + $p_nb_entries, $p_size, + $p_offset, strlen($p_comment)); + + // ----- Write the 22 bytes of the header in the zip file + fputs($this->zip_fd, $v_binary_data, 22); + + // ----- Write the variable fields + if (strlen($p_comment) != 0) + { + fputs($this->zip_fd, $p_comment, strlen($p_comment)); + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privList() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privList(&$p_list) + { + $v_result=1; + + // ----- Magic quotes trick + $this->privDisableMagicQuotes(); + + // ----- Open the zip file + if (($this->zip_fd = @fopen($this->zipname, 'rb')) == 0) + { + // ----- Magic quotes trick + $this->privSwapBackMagicQuotes(); + + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in binary read mode'); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Read the central directory informations + $v_central_dir = array(); + if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) + { + $this->privSwapBackMagicQuotes(); + return $v_result; + } + + // ----- Go to beginning of Central Dir + @rewind($this->zip_fd); + if (@fseek($this->zip_fd, $v_central_dir['offset'])) + { + $this->privSwapBackMagicQuotes(); + + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Read each entry + for ($i=0; $i<$v_central_dir['entries']; $i++) + { + // ----- Read the file header + if (($v_result = $this->privReadCentralFileHeader($v_header)) != 1) + { + $this->privSwapBackMagicQuotes(); + return $v_result; + } + $v_header['index'] = $i; + + // ----- Get the only interesting attributes + $this->privConvertHeader2FileInfo($v_header, $p_list[$i]); + unset($v_header); + } + + // ----- Close the zip file + $this->privCloseFd(); + + // ----- Magic quotes trick + $this->privSwapBackMagicQuotes(); + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privConvertHeader2FileInfo() + // Description : + // This function takes the file informations from the central directory + // entries and extract the interesting parameters that will be given back. + // The resulting file infos are set in the array $p_info + // $p_info['filename'] : Filename with full path. Given by user (add), + // extracted in the filesystem (extract). + // $p_info['stored_filename'] : Stored filename in the archive. + // $p_info['size'] = Size of the file. + // $p_info['compressed_size'] = Compressed size of the file. + // $p_info['mtime'] = Last modification date of the file. + // $p_info['comment'] = Comment associated with the file. + // $p_info['folder'] = true/false : indicates if the entry is a folder or not. + // $p_info['status'] = status of the action on the file. + // $p_info['crc'] = CRC of the file content. + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privConvertHeader2FileInfo($p_header, &$p_info) + { + $v_result=1; + + // ----- Get the interesting attributes + $v_temp_path = PclZipUtilPathReduction($p_header['filename']); + $p_info['filename'] = $v_temp_path; + $v_temp_path = PclZipUtilPathReduction($p_header['stored_filename']); + $p_info['stored_filename'] = $v_temp_path; + $p_info['size'] = $p_header['size']; + $p_info['compressed_size'] = $p_header['compressed_size']; + $p_info['mtime'] = $p_header['mtime']; + $p_info['comment'] = $p_header['comment']; + $p_info['folder'] = (($p_header['external']&0x00000010)==0x00000010); + $p_info['index'] = $p_header['index']; + $p_info['status'] = $p_header['status']; + $p_info['crc'] = $p_header['crc']; + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privExtractByRule() + // Description : + // Extract a file or directory depending of rules (by index, by name, ...) + // Parameters : + // $p_file_list : An array where will be placed the properties of each + // extracted file + // $p_path : Path to add while writing the extracted files + // $p_remove_path : Path to remove (from the file memorized path) while writing the + // extracted files. If the path does not match the file path, + // the file is extracted with its memorized path. + // $p_remove_path does not apply to 'list' mode. + // $p_path and $p_remove_path are commulative. + // Return Values : + // 1 on success,0 or less on error (see error code list) + // -------------------------------------------------------------------------------- + function privExtractByRule(&$p_file_list, $p_path, $p_remove_path, $p_remove_all_path, &$p_options) + { + $v_result=1; + + // ----- Magic quotes trick + $this->privDisableMagicQuotes(); + + // ----- Check the path + if ( ($p_path == "") + || ( (substr($p_path, 0, 1) != "/") + && (substr($p_path, 0, 3) != "../") + && (substr($p_path,1,2)!=":/"))) + $p_path = "./".$p_path; + + // ----- Reduce the path last (and duplicated) '/' + if (($p_path != "./") && ($p_path != "/")) + { + // ----- Look for the path end '/' + while (substr($p_path, -1) == "/") + { + $p_path = substr($p_path, 0, strlen($p_path)-1); + } + } + + // ----- Look for path to remove format (should end by /) + if (($p_remove_path != "") && (substr($p_remove_path, -1) != '/')) + { + $p_remove_path .= '/'; + } + $p_remove_path_size = strlen($p_remove_path); + + // ----- Open the zip file + if (($v_result = $this->privOpenFd('rb')) != 1) + { + $this->privSwapBackMagicQuotes(); + return $v_result; + } + + // ----- Read the central directory informations + $v_central_dir = array(); + if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) + { + // ----- Close the zip file + $this->privCloseFd(); + $this->privSwapBackMagicQuotes(); + + return $v_result; + } + + // ----- Start at beginning of Central Dir + $v_pos_entry = $v_central_dir['offset']; + + // ----- Read each entry + $j_start = 0; + for ($i=0, $v_nb_extracted=0; $i<$v_central_dir['entries']; $i++) + { + + // ----- Read next Central dir entry + @rewind($this->zip_fd); + if (@fseek($this->zip_fd, $v_pos_entry)) + { + // ----- Close the zip file + $this->privCloseFd(); + $this->privSwapBackMagicQuotes(); + + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Read the file header + $v_header = array(); + if (($v_result = $this->privReadCentralFileHeader($v_header)) != 1) + { + // ----- Close the zip file + $this->privCloseFd(); + $this->privSwapBackMagicQuotes(); + + return $v_result; + } + + // ----- Store the index + $v_header['index'] = $i; + + // ----- Store the file position + $v_pos_entry = ftell($this->zip_fd); + + // ----- Look for the specific extract rules + $v_extract = false; + + // ----- Look for extract by name rule + if ( (isset($p_options[PCLZIP_OPT_BY_NAME])) + && ($p_options[PCLZIP_OPT_BY_NAME] != 0)) { + + // ----- Look if the filename is in the list + for ($j=0; ($j<sizeof($p_options[PCLZIP_OPT_BY_NAME])) && (!$v_extract); $j++) { + + // ----- Look for a directory + if (substr($p_options[PCLZIP_OPT_BY_NAME][$j], -1) == "/") { + + // ----- Look if the directory is in the filename path + if ( (strlen($v_header['stored_filename']) > strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) + && (substr($v_header['stored_filename'], 0, strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) == $p_options[PCLZIP_OPT_BY_NAME][$j])) { + $v_extract = true; + } + } + // ----- Look for a filename + elseif ($v_header['stored_filename'] == $p_options[PCLZIP_OPT_BY_NAME][$j]) { + $v_extract = true; + } + } + } + + // ----- Look for extract by ereg rule + // ereg() is deprecated with PHP 5.3 + /* + else if ( (isset($p_options[PCLZIP_OPT_BY_EREG])) + && ($p_options[PCLZIP_OPT_BY_EREG] != "")) { + + if (ereg($p_options[PCLZIP_OPT_BY_EREG], $v_header['stored_filename'])) { + $v_extract = true; + } + } + */ + + // ----- Look for extract by preg rule + else if ( (isset($p_options[PCLZIP_OPT_BY_PREG])) + && ($p_options[PCLZIP_OPT_BY_PREG] != "")) { + + if (preg_match($p_options[PCLZIP_OPT_BY_PREG], $v_header['stored_filename'])) { + $v_extract = true; + } + } + + // ----- Look for extract by index rule + else if ( (isset($p_options[PCLZIP_OPT_BY_INDEX])) + && ($p_options[PCLZIP_OPT_BY_INDEX] != 0)) { + + // ----- Look if the index is in the list + for ($j=$j_start; ($j<sizeof($p_options[PCLZIP_OPT_BY_INDEX])) && (!$v_extract); $j++) { + + if (($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['start']) && ($i<=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end'])) { + $v_extract = true; + } + if ($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end']) { + $j_start = $j+1; + } + + if ($p_options[PCLZIP_OPT_BY_INDEX][$j]['start']>$i) { + break; + } + } + } + + // ----- Look for no rule, which means extract all the archive + else { + $v_extract = true; + } + + // ----- Check compression method + if ( ($v_extract) + && ( ($v_header['compression'] != 8) + && ($v_header['compression'] != 0))) { + $v_header['status'] = 'unsupported_compression'; + + // ----- Look for PCLZIP_OPT_STOP_ON_ERROR + if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) + && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { + + $this->privSwapBackMagicQuotes(); + + PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_COMPRESSION, + "Filename '".$v_header['stored_filename']."' is " + ."compressed by an unsupported compression " + ."method (".$v_header['compression'].") "); + + return PclZip::errorCode(); + } + } + + // ----- Check encrypted files + if (($v_extract) && (($v_header['flag'] & 1) == 1)) { + $v_header['status'] = 'unsupported_encryption'; + + // ----- Look for PCLZIP_OPT_STOP_ON_ERROR + if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) + && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { + + $this->privSwapBackMagicQuotes(); + + PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_ENCRYPTION, + "Unsupported encryption for " + ." filename '".$v_header['stored_filename'] + ."'"); + + return PclZip::errorCode(); + } + } + + // ----- Look for real extraction + if (($v_extract) && ($v_header['status'] != 'ok')) { + $v_result = $this->privConvertHeader2FileInfo($v_header, + $p_file_list[$v_nb_extracted++]); + if ($v_result != 1) { + $this->privCloseFd(); + $this->privSwapBackMagicQuotes(); + return $v_result; + } + + $v_extract = false; + } + + // ----- Look for real extraction + if ($v_extract) + { + + // ----- Go to the file position + @rewind($this->zip_fd); + if (@fseek($this->zip_fd, $v_header['offset'])) + { + // ----- Close the zip file + $this->privCloseFd(); + + $this->privSwapBackMagicQuotes(); + + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Look for extraction as string + if ($p_options[PCLZIP_OPT_EXTRACT_AS_STRING]) { + + $v_string = ''; + + // ----- Extracting the file + $v_result1 = $this->privExtractFileAsString($v_header, $v_string, $p_options); + if ($v_result1 < 1) { + $this->privCloseFd(); + $this->privSwapBackMagicQuotes(); + return $v_result1; + } + + // ----- Get the only interesting attributes + if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted])) != 1) + { + // ----- Close the zip file + $this->privCloseFd(); + $this->privSwapBackMagicQuotes(); + + return $v_result; + } + + // ----- Set the file content + $p_file_list[$v_nb_extracted]['content'] = $v_string; + + // ----- Next extracted file + $v_nb_extracted++; + + // ----- Look for user callback abort + if ($v_result1 == 2) { + break; + } + } + // ----- Look for extraction in standard output + elseif ( (isset($p_options[PCLZIP_OPT_EXTRACT_IN_OUTPUT])) + && ($p_options[PCLZIP_OPT_EXTRACT_IN_OUTPUT])) { + // ----- Extracting the file in standard output + $v_result1 = $this->privExtractFileInOutput($v_header, $p_options); + if ($v_result1 < 1) { + $this->privCloseFd(); + $this->privSwapBackMagicQuotes(); + return $v_result1; + } + + // ----- Get the only interesting attributes + if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1) { + $this->privCloseFd(); + $this->privSwapBackMagicQuotes(); + return $v_result; + } + + // ----- Look for user callback abort + if ($v_result1 == 2) { + break; + } + } + // ----- Look for normal extraction + else { + // ----- Extracting the file + $v_result1 = $this->privExtractFile($v_header, + $p_path, $p_remove_path, + $p_remove_all_path, + $p_options); + if ($v_result1 < 1) { + $this->privCloseFd(); + $this->privSwapBackMagicQuotes(); + return $v_result1; + } + + // ----- Get the only interesting attributes + if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1) + { + // ----- Close the zip file + $this->privCloseFd(); + $this->privSwapBackMagicQuotes(); + + return $v_result; + } + + // ----- Look for user callback abort + if ($v_result1 == 2) { + break; + } + } + } + } + + // ----- Close the zip file + $this->privCloseFd(); + $this->privSwapBackMagicQuotes(); + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privExtractFile() + // Description : + // Parameters : + // Return Values : + // + // 1 : ... ? + // PCLZIP_ERR_USER_ABORTED(2) : User ask for extraction stop in callback + // -------------------------------------------------------------------------------- + function privExtractFile(&$p_entry, $p_path, $p_remove_path, $p_remove_all_path, &$p_options) + { + $v_result=1; + + // ----- Read the file header + if (($v_result = $this->privReadFileHeader($v_header)) != 1) + { + // ----- Return + return $v_result; + } + + + // ----- Check that the file header is coherent with $p_entry info + if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) { + // TBC + } + + // ----- Look for all path to remove + if ($p_remove_all_path == true) { + // ----- Look for folder entry that not need to be extracted + if (($p_entry['external']&0x00000010)==0x00000010) { + + $p_entry['status'] = "filtered"; + + return $v_result; + } + + // ----- Get the basename of the path + $p_entry['filename'] = basename($p_entry['filename']); + } + + // ----- Look for path to remove + else if ($p_remove_path != "") + { + if (PclZipUtilPathInclusion($p_remove_path, $p_entry['filename']) == 2) + { + + // ----- Change the file status + $p_entry['status'] = "filtered"; + + // ----- Return + return $v_result; + } + + $p_remove_path_size = strlen($p_remove_path); + if (substr($p_entry['filename'], 0, $p_remove_path_size) == $p_remove_path) + { + + // ----- Remove the path + $p_entry['filename'] = substr($p_entry['filename'], $p_remove_path_size); + + } + } + + // ----- Add the path + if ($p_path != '') { + $p_entry['filename'] = $p_path."/".$p_entry['filename']; + } + + // ----- Check a base_dir_restriction + if (isset($p_options[PCLZIP_OPT_EXTRACT_DIR_RESTRICTION])) { + $v_inclusion + = PclZipUtilPathInclusion($p_options[PCLZIP_OPT_EXTRACT_DIR_RESTRICTION], + $p_entry['filename']); + if ($v_inclusion == 0) { + + PclZip::privErrorLog(PCLZIP_ERR_DIRECTORY_RESTRICTION, + "Filename '".$p_entry['filename']."' is " + ."outside PCLZIP_OPT_EXTRACT_DIR_RESTRICTION"); + + return PclZip::errorCode(); + } + } + + // ----- Look for pre-extract callback + if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) { + + // ----- Generate a local information + $v_local_header = array(); + $this->privConvertHeader2FileInfo($p_entry, $v_local_header); + + // ----- Call the callback + // Here I do not use call_user_func() because I need to send a reference to the + // header. +// eval('$v_result = '.$p_options[PCLZIP_CB_PRE_EXTRACT].'(PCLZIP_CB_PRE_EXTRACT, $v_local_header);'); + $v_result = $p_options[PCLZIP_CB_PRE_EXTRACT](PCLZIP_CB_PRE_EXTRACT, $v_local_header); + if ($v_result == 0) { + // ----- Change the file status + $p_entry['status'] = "skipped"; + $v_result = 1; + } + + // ----- Look for abort result + if ($v_result == 2) { + // ----- This status is internal and will be changed in 'skipped' + $p_entry['status'] = "aborted"; + $v_result = PCLZIP_ERR_USER_ABORTED; + } + + // ----- Update the informations + // Only some fields can be modified + $p_entry['filename'] = $v_local_header['filename']; + } + + + // ----- Look if extraction should be done + if ($p_entry['status'] == 'ok') { + + // ----- Look for specific actions while the file exist + if (file_exists($p_entry['filename'])) + { + + // ----- Look if file is a directory + if (is_dir($p_entry['filename'])) + { + + // ----- Change the file status + $p_entry['status'] = "already_a_directory"; + + // ----- Look for PCLZIP_OPT_STOP_ON_ERROR + // For historical reason first PclZip implementation does not stop + // when this kind of error occurs. + if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) + && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { + + PclZip::privErrorLog(PCLZIP_ERR_ALREADY_A_DIRECTORY, + "Filename '".$p_entry['filename']."' is " + ."already used by an existing directory"); + + return PclZip::errorCode(); + } + } + // ----- Look if file is write protected + else if (!is_writeable($p_entry['filename'])) + { + + // ----- Change the file status + $p_entry['status'] = "write_protected"; + + // ----- Look for PCLZIP_OPT_STOP_ON_ERROR + // For historical reason first PclZip implementation does not stop + // when this kind of error occurs. + if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) + && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { + + PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, + "Filename '".$p_entry['filename']."' exists " + ."and is write protected"); + + return PclZip::errorCode(); + } + } + + // ----- Look if the extracted file is older + else if (filemtime($p_entry['filename']) > $p_entry['mtime']) + { + // ----- Change the file status + if ( (isset($p_options[PCLZIP_OPT_REPLACE_NEWER])) + && ($p_options[PCLZIP_OPT_REPLACE_NEWER]===true)) { + } + else { + $p_entry['status'] = "newer_exist"; + + // ----- Look for PCLZIP_OPT_STOP_ON_ERROR + // For historical reason first PclZip implementation does not stop + // when this kind of error occurs. + if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) + && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { + + PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, + "Newer version of '".$p_entry['filename']."' exists " + ."and option PCLZIP_OPT_REPLACE_NEWER is not selected"); + + return PclZip::errorCode(); + } + } + } + else { + } + } + + // ----- Check the directory availability and create it if necessary + else { + if ((($p_entry['external']&0x00000010)==0x00000010) || (substr($p_entry['filename'], -1) == '/')) + $v_dir_to_check = $p_entry['filename']; + else if (!strstr($p_entry['filename'], "/")) + $v_dir_to_check = ""; + else + $v_dir_to_check = dirname($p_entry['filename']); + + if (($v_result = $this->privDirCheck($v_dir_to_check, (($p_entry['external']&0x00000010)==0x00000010))) != 1) { + + // ----- Change the file status + $p_entry['status'] = "path_creation_fail"; + + // ----- Return + //return $v_result; + $v_result = 1; + } + } + } + + // ----- Look if extraction should be done + if ($p_entry['status'] == 'ok') { + + // ----- Do the extraction (if not a folder) + if (!(($p_entry['external']&0x00000010)==0x00000010)) + { + // ----- Look for not compressed file + if ($p_entry['compression'] == 0) { + + // ----- Opening destination file + if (($v_dest_file = @fopen($p_entry['filename'], 'wb')) == 0) + { + + // ----- Change the file status + $p_entry['status'] = "write_error"; + + // ----- Return + return $v_result; + } + + + // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks + $v_size = $p_entry['compressed_size']; + while ($v_size != 0) + { + $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = @fread($this->zip_fd, $v_read_size); + /* Try to speed up the code + $v_binary_data = pack('a'.$v_read_size, $v_buffer); + @fwrite($v_dest_file, $v_binary_data, $v_read_size); + */ + @fwrite($v_dest_file, $v_buffer, $v_read_size); + $v_size -= $v_read_size; + } + + // ----- Closing the destination file + fclose($v_dest_file); + + // ----- Change the file mtime + touch($p_entry['filename'], $p_entry['mtime']); + + + } + else { + // ----- TBC + // Need to be finished + if (($p_entry['flag'] & 1) == 1) { + PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_ENCRYPTION, 'File \''.$p_entry['filename'].'\' is encrypted. Encrypted files are not supported.'); + return PclZip::errorCode(); + } + + + // ----- Look for using temporary file to unzip + if ( (!isset($p_options[PCLZIP_OPT_TEMP_FILE_OFF])) + && (isset($p_options[PCLZIP_OPT_TEMP_FILE_ON]) + || (isset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]) + && ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] <= $p_entry['size'])) ) ) { + $v_result = $this->privExtractFileUsingTempFile($p_entry, $p_options); + if ($v_result < PCLZIP_ERR_NO_ERROR) { + return $v_result; + } + } + + // ----- Look for extract in memory + else { + + + // ----- Read the compressed file in a buffer (one shot) + $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']); + + // ----- Decompress the file + $v_file_content = @gzinflate($v_buffer); + unset($v_buffer); + if ($v_file_content === FALSE) { + + // ----- Change the file status + // TBC + $p_entry['status'] = "error"; + + return $v_result; + } + + // ----- Opening destination file + if (($v_dest_file = @fopen($p_entry['filename'], 'wb')) == 0) { + + // ----- Change the file status + $p_entry['status'] = "write_error"; + + return $v_result; + } + + // ----- Write the uncompressed data + @fwrite($v_dest_file, $v_file_content, $p_entry['size']); + unset($v_file_content); + + // ----- Closing the destination file + @fclose($v_dest_file); + + } + + // ----- Change the file mtime + @touch($p_entry['filename'], $p_entry['mtime']); + } + + // ----- Look for chmod option + if (isset($p_options[PCLZIP_OPT_SET_CHMOD])) { + + // ----- Change the mode of the file + @chmod($p_entry['filename'], $p_options[PCLZIP_OPT_SET_CHMOD]); + } + + } + } + + // ----- Change abort status + if ($p_entry['status'] == "aborted") { + $p_entry['status'] = "skipped"; + } + + // ----- Look for post-extract callback + elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) { + + // ----- Generate a local information + $v_local_header = array(); + $this->privConvertHeader2FileInfo($p_entry, $v_local_header); + + // ----- Call the callback + // Here I do not use call_user_func() because I need to send a reference to the + // header. +// eval('$v_result = '.$p_options[PCLZIP_CB_POST_EXTRACT].'(PCLZIP_CB_POST_EXTRACT, $v_local_header);'); + $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header); + + // ----- Look for abort result + if ($v_result == 2) { + $v_result = PCLZIP_ERR_USER_ABORTED; + } + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privExtractFileUsingTempFile() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privExtractFileUsingTempFile(&$p_entry, &$p_options) + { + $v_result=1; + + // ----- Creates a temporary file + $v_gzip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.gz'; + if (($v_dest_file = @fopen($v_gzip_temp_name, "wb")) == 0) { + fclose($v_file); + PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary write mode'); + return PclZip::errorCode(); + } + + + // ----- Write gz file format header + $v_binary_data = pack('va1a1Va1a1', 0x8b1f, Chr($p_entry['compression']), Chr(0x00), time(), Chr(0x00), Chr(3)); + @fwrite($v_dest_file, $v_binary_data, 10); + + // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks + $v_size = $p_entry['compressed_size']; + while ($v_size != 0) + { + $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = @fread($this->zip_fd, $v_read_size); + //$v_binary_data = pack('a'.$v_read_size, $v_buffer); + @fwrite($v_dest_file, $v_buffer, $v_read_size); + $v_size -= $v_read_size; + } + + // ----- Write gz file format footer + $v_binary_data = pack('VV', $p_entry['crc'], $p_entry['size']); + @fwrite($v_dest_file, $v_binary_data, 8); + + // ----- Close the temporary file + @fclose($v_dest_file); + + // ----- Opening destination file + if (($v_dest_file = @fopen($p_entry['filename'], 'wb')) == 0) { + $p_entry['status'] = "write_error"; + return $v_result; + } + + // ----- Open the temporary gz file + if (($v_src_file = @gzopen($v_gzip_temp_name, 'rb')) == 0) { + @fclose($v_dest_file); + $p_entry['status'] = "read_error"; + PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary read mode'); + return PclZip::errorCode(); + } + + + // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks + $v_size = $p_entry['size']; + while ($v_size != 0) { + $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = @gzread($v_src_file, $v_read_size); + //$v_binary_data = pack('a'.$v_read_size, $v_buffer); + @fwrite($v_dest_file, $v_buffer, $v_read_size); + $v_size -= $v_read_size; + } + @fclose($v_dest_file); + @gzclose($v_src_file); + + // ----- Delete the temporary file + @unlink($v_gzip_temp_name); + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privExtractFileInOutput() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privExtractFileInOutput(&$p_entry, &$p_options) + { + $v_result=1; + + // ----- Read the file header + if (($v_result = $this->privReadFileHeader($v_header)) != 1) { + return $v_result; + } + + + // ----- Check that the file header is coherent with $p_entry info + if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) { + // TBC + } + + // ----- Look for pre-extract callback + if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) { + + // ----- Generate a local information + $v_local_header = array(); + $this->privConvertHeader2FileInfo($p_entry, $v_local_header); + + // ----- Call the callback + // Here I do not use call_user_func() because I need to send a reference to the + // header. +// eval('$v_result = '.$p_options[PCLZIP_CB_PRE_EXTRACT].'(PCLZIP_CB_PRE_EXTRACT, $v_local_header);'); + $v_result = $p_options[PCLZIP_CB_PRE_EXTRACT](PCLZIP_CB_PRE_EXTRACT, $v_local_header); + if ($v_result == 0) { + // ----- Change the file status + $p_entry['status'] = "skipped"; + $v_result = 1; + } + + // ----- Look for abort result + if ($v_result == 2) { + // ----- This status is internal and will be changed in 'skipped' + $p_entry['status'] = "aborted"; + $v_result = PCLZIP_ERR_USER_ABORTED; + } + + // ----- Update the informations + // Only some fields can be modified + $p_entry['filename'] = $v_local_header['filename']; + } + + // ----- Trace + + // ----- Look if extraction should be done + if ($p_entry['status'] == 'ok') { + + // ----- Do the extraction (if not a folder) + if (!(($p_entry['external']&0x00000010)==0x00000010)) { + // ----- Look for not compressed file + if ($p_entry['compressed_size'] == $p_entry['size']) { + + // ----- Read the file in a buffer (one shot) + $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']); + + // ----- Send the file to the output + echo $v_buffer; + unset($v_buffer); + } + else { + + // ----- Read the compressed file in a buffer (one shot) + $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']); + + // ----- Decompress the file + $v_file_content = gzinflate($v_buffer); + unset($v_buffer); + + // ----- Send the file to the output + echo $v_file_content; + unset($v_file_content); + } + } + } + + // ----- Change abort status + if ($p_entry['status'] == "aborted") { + $p_entry['status'] = "skipped"; + } + + // ----- Look for post-extract callback + elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) { + + // ----- Generate a local information + $v_local_header = array(); + $this->privConvertHeader2FileInfo($p_entry, $v_local_header); + + // ----- Call the callback + // Here I do not use call_user_func() because I need to send a reference to the + // header. +// eval('$v_result = '.$p_options[PCLZIP_CB_POST_EXTRACT].'(PCLZIP_CB_POST_EXTRACT, $v_local_header);'); + $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header); + + // ----- Look for abort result + if ($v_result == 2) { + $v_result = PCLZIP_ERR_USER_ABORTED; + } + } + + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privExtractFileAsString() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privExtractFileAsString(&$p_entry, &$p_string, &$p_options) + { + $v_result=1; + + // ----- Read the file header + $v_header = array(); + if (($v_result = $this->privReadFileHeader($v_header)) != 1) + { + // ----- Return + return $v_result; + } + + + // ----- Check that the file header is coherent with $p_entry info + if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) { + // TBC + } + + // ----- Look for pre-extract callback + if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) { + + // ----- Generate a local information + $v_local_header = array(); + $this->privConvertHeader2FileInfo($p_entry, $v_local_header); + + // ----- Call the callback + // Here I do not use call_user_func() because I need to send a reference to the + // header. +// eval('$v_result = '.$p_options[PCLZIP_CB_PRE_EXTRACT].'(PCLZIP_CB_PRE_EXTRACT, $v_local_header);'); + $v_result = $p_options[PCLZIP_CB_PRE_EXTRACT](PCLZIP_CB_PRE_EXTRACT, $v_local_header); + if ($v_result == 0) { + // ----- Change the file status + $p_entry['status'] = "skipped"; + $v_result = 1; + } + + // ----- Look for abort result + if ($v_result == 2) { + // ----- This status is internal and will be changed in 'skipped' + $p_entry['status'] = "aborted"; + $v_result = PCLZIP_ERR_USER_ABORTED; + } + + // ----- Update the informations + // Only some fields can be modified + $p_entry['filename'] = $v_local_header['filename']; + } + + + // ----- Look if extraction should be done + if ($p_entry['status'] == 'ok') { + + // ----- Do the extraction (if not a folder) + if (!(($p_entry['external']&0x00000010)==0x00000010)) { + // ----- Look for not compressed file + // if ($p_entry['compressed_size'] == $p_entry['size']) + if ($p_entry['compression'] == 0) { + + // ----- Reading the file + $p_string = @fread($this->zip_fd, $p_entry['compressed_size']); + } + else { + + // ----- Reading the file + $v_data = @fread($this->zip_fd, $p_entry['compressed_size']); + + // ----- Decompress the file + if (($p_string = @gzinflate($v_data)) === FALSE) { + // TBC + } + } + + // ----- Trace + } + else { + // TBC : error : can not extract a folder in a string + } + + } + + // ----- Change abort status + if ($p_entry['status'] == "aborted") { + $p_entry['status'] = "skipped"; + } + + // ----- Look for post-extract callback + elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) { + + // ----- Generate a local information + $v_local_header = array(); + $this->privConvertHeader2FileInfo($p_entry, $v_local_header); + + // ----- Swap the content to header + $v_local_header['content'] = $p_string; + $p_string = ''; + + // ----- Call the callback + // Here I do not use call_user_func() because I need to send a reference to the + // header. +// eval('$v_result = '.$p_options[PCLZIP_CB_POST_EXTRACT].'(PCLZIP_CB_POST_EXTRACT, $v_local_header);'); + $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header); + + // ----- Swap back the content to header + $p_string = $v_local_header['content']; + unset($v_local_header['content']); + + // ----- Look for abort result + if ($v_result == 2) { + $v_result = PCLZIP_ERR_USER_ABORTED; + } + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privReadFileHeader() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privReadFileHeader(&$p_header) + { + $v_result=1; + + // ----- Read the 4 bytes signature + $v_binary_data = @fread($this->zip_fd, 4); + $v_data = unpack('Vid', $v_binary_data); + + // ----- Check signature + if ($v_data['id'] != 0x04034b50) + { + + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Invalid archive structure'); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Read the first 42 bytes of the header + $v_binary_data = fread($this->zip_fd, 26); + + // ----- Look for invalid block size + if (strlen($v_binary_data) != 26) + { + $p_header['filename'] = ""; + $p_header['status'] = "invalid_header"; + + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid block size : ".strlen($v_binary_data)); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Extract the values + $v_data = unpack('vversion/vflag/vcompression/vmtime/vmdate/Vcrc/Vcompressed_size/Vsize/vfilename_len/vextra_len', $v_binary_data); + + // ----- Get filename + $p_header['filename'] = fread($this->zip_fd, $v_data['filename_len']); + + // ----- Get extra_fields + if ($v_data['extra_len'] != 0) { + $p_header['extra'] = fread($this->zip_fd, $v_data['extra_len']); + } + else { + $p_header['extra'] = ''; + } + + // ----- Extract properties + $p_header['version_extracted'] = $v_data['version']; + $p_header['compression'] = $v_data['compression']; + $p_header['size'] = $v_data['size']; + $p_header['compressed_size'] = $v_data['compressed_size']; + $p_header['crc'] = $v_data['crc']; + $p_header['flag'] = $v_data['flag']; + $p_header['filename_len'] = $v_data['filename_len']; + + // ----- Recuperate date in UNIX format + $p_header['mdate'] = $v_data['mdate']; + $p_header['mtime'] = $v_data['mtime']; + if ($p_header['mdate'] && $p_header['mtime']) + { + // ----- Extract time + $v_hour = ($p_header['mtime'] & 0xF800) >> 11; + $v_minute = ($p_header['mtime'] & 0x07E0) >> 5; + $v_seconde = ($p_header['mtime'] & 0x001F)*2; + + // ----- Extract date + $v_year = (($p_header['mdate'] & 0xFE00) >> 9) + 1980; + $v_month = ($p_header['mdate'] & 0x01E0) >> 5; + $v_day = $p_header['mdate'] & 0x001F; + + // ----- Get UNIX date format + $p_header['mtime'] = @mktime($v_hour, $v_minute, $v_seconde, $v_month, $v_day, $v_year); + + } + else + { + $p_header['mtime'] = time(); + } + + // TBC + //for(reset($v_data); $key = key($v_data); next($v_data)) { + //} + + // ----- Set the stored filename + $p_header['stored_filename'] = $p_header['filename']; + + // ----- Set the status field + $p_header['status'] = "ok"; + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privReadCentralFileHeader() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privReadCentralFileHeader(&$p_header) + { + $v_result=1; + + // ----- Read the 4 bytes signature + $v_binary_data = @fread($this->zip_fd, 4); + $v_data = unpack('Vid', $v_binary_data); + + // ----- Check signature + if ($v_data['id'] != 0x02014b50) + { + + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Invalid archive structure'); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Read the first 42 bytes of the header + $v_binary_data = fread($this->zip_fd, 42); + + // ----- Look for invalid block size + if (strlen($v_binary_data) != 42) + { + $p_header['filename'] = ""; + $p_header['status'] = "invalid_header"; + + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid block size : ".strlen($v_binary_data)); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Extract the values + $p_header = unpack('vversion/vversion_extracted/vflag/vcompression/vmtime/vmdate/Vcrc/Vcompressed_size/Vsize/vfilename_len/vextra_len/vcomment_len/vdisk/vinternal/Vexternal/Voffset', $v_binary_data); + + // ----- Get filename + if ($p_header['filename_len'] != 0) + $p_header['filename'] = fread($this->zip_fd, $p_header['filename_len']); + else + $p_header['filename'] = ''; + + // ----- Get extra + if ($p_header['extra_len'] != 0) + $p_header['extra'] = fread($this->zip_fd, $p_header['extra_len']); + else + $p_header['extra'] = ''; + + // ----- Get comment + if ($p_header['comment_len'] != 0) + $p_header['comment'] = fread($this->zip_fd, $p_header['comment_len']); + else + $p_header['comment'] = ''; + + // ----- Extract properties + + // ----- Recuperate date in UNIX format + //if ($p_header['mdate'] && $p_header['mtime']) + // TBC : bug : this was ignoring time with 0/0/0 + if (1) + { + // ----- Extract time + $v_hour = ($p_header['mtime'] & 0xF800) >> 11; + $v_minute = ($p_header['mtime'] & 0x07E0) >> 5; + $v_seconde = ($p_header['mtime'] & 0x001F)*2; + + // ----- Extract date + $v_year = (($p_header['mdate'] & 0xFE00) >> 9) + 1980; + $v_month = ($p_header['mdate'] & 0x01E0) >> 5; + $v_day = $p_header['mdate'] & 0x001F; + + // ----- Get UNIX date format + $p_header['mtime'] = @mktime($v_hour, $v_minute, $v_seconde, $v_month, $v_day, $v_year); + + } + else + { + $p_header['mtime'] = time(); + } + + // ----- Set the stored filename + $p_header['stored_filename'] = $p_header['filename']; + + // ----- Set default status to ok + $p_header['status'] = 'ok'; + + // ----- Look if it is a directory + if (substr($p_header['filename'], -1) == '/') { + //$p_header['external'] = 0x41FF0010; + $p_header['external'] = 0x00000010; + } + + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privCheckFileHeaders() + // Description : + // Parameters : + // Return Values : + // 1 on success, + // 0 on error; + // -------------------------------------------------------------------------------- + function privCheckFileHeaders(&$p_local_header, &$p_central_header) + { + $v_result=1; + + // ----- Check the static values + // TBC + if ($p_local_header['filename'] != $p_central_header['filename']) { + } + if ($p_local_header['version_extracted'] != $p_central_header['version_extracted']) { + } + if ($p_local_header['flag'] != $p_central_header['flag']) { + } + if ($p_local_header['compression'] != $p_central_header['compression']) { + } + if ($p_local_header['mtime'] != $p_central_header['mtime']) { + } + if ($p_local_header['filename_len'] != $p_central_header['filename_len']) { + } + + // ----- Look for flag bit 3 + if (($p_local_header['flag'] & 8) == 8) { + $p_local_header['size'] = $p_central_header['size']; + $p_local_header['compressed_size'] = $p_central_header['compressed_size']; + $p_local_header['crc'] = $p_central_header['crc']; + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privReadEndCentralDir() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privReadEndCentralDir(&$p_central_dir) + { + $v_result=1; + + // ----- Go to the end of the zip file + $v_size = filesize($this->zipname); + @fseek($this->zip_fd, $v_size); + if (@ftell($this->zip_fd) != $v_size) + { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Unable to go to the end of the archive \''.$this->zipname.'\''); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- First try : look if this is an archive with no commentaries (most of the time) + // in this case the end of central dir is at 22 bytes of the file end + $v_found = 0; + if ($v_size > 26) { + @fseek($this->zip_fd, $v_size-22); + if (($v_pos = @ftell($this->zip_fd)) != ($v_size-22)) + { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Unable to seek back to the middle of the archive \''.$this->zipname.'\''); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Read for bytes + $v_binary_data = @fread($this->zip_fd, 4); + $v_data = @unpack('Vid', $v_binary_data); + + // ----- Check signature + if ($v_data['id'] == 0x06054b50) { + $v_found = 1; + } + + $v_pos = ftell($this->zip_fd); + } + + // ----- Go back to the maximum possible size of the Central Dir End Record + if (!$v_found) { + $v_maximum_size = 65557; // 0xFFFF + 22; + if ($v_maximum_size > $v_size) + $v_maximum_size = $v_size; + @fseek($this->zip_fd, $v_size-$v_maximum_size); + if (@ftell($this->zip_fd) != ($v_size-$v_maximum_size)) + { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Unable to seek back to the middle of the archive \''.$this->zipname.'\''); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Read byte per byte in order to find the signature + $v_pos = ftell($this->zip_fd); + $v_bytes = 0x00000000; + while ($v_pos < $v_size) + { + // ----- Read a byte + $v_byte = @fread($this->zip_fd, 1); + + // ----- Add the byte + //$v_bytes = ($v_bytes << 8) | Ord($v_byte); + // Note we mask the old value down such that once shifted we can never end up with more than a 32bit number + // Otherwise on systems where we have 64bit integers the check below for the magic number will fail. + $v_bytes = ( ($v_bytes & 0xFFFFFF) << 8) | Ord($v_byte); + + // ----- Compare the bytes + if ($v_bytes == 0x504b0506) + { + $v_pos++; + break; + } + + $v_pos++; + } + + // ----- Look if not found end of central dir + if ($v_pos == $v_size) + { + + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Unable to find End of Central Dir Record signature"); + + // ----- Return + return PclZip::errorCode(); + } + } + + // ----- Read the first 18 bytes of the header + $v_binary_data = fread($this->zip_fd, 18); + + // ----- Look for invalid block size + if (strlen($v_binary_data) != 18) + { + + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid End of Central Dir Record size : ".strlen($v_binary_data)); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Extract the values + $v_data = unpack('vdisk/vdisk_start/vdisk_entries/ventries/Vsize/Voffset/vcomment_size', $v_binary_data); + + // ----- Check the global size + if (($v_pos + $v_data['comment_size'] + 18) != $v_size) { + + // ----- Removed in release 2.2 see readme file + // The check of the file size is a little too strict. + // Some bugs where found when a zip is encrypted/decrypted with 'crypt'. + // While decrypted, zip has training 0 bytes + if (0) { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, + 'The central dir is not at the end of the archive.' + .' Some trailing bytes exists after the archive.'); + + // ----- Return + return PclZip::errorCode(); + } + } + + // ----- Get comment + if ($v_data['comment_size'] != 0) { + $p_central_dir['comment'] = fread($this->zip_fd, $v_data['comment_size']); + } + else + $p_central_dir['comment'] = ''; + + $p_central_dir['entries'] = $v_data['entries']; + $p_central_dir['disk_entries'] = $v_data['disk_entries']; + $p_central_dir['offset'] = $v_data['offset']; + $p_central_dir['size'] = $v_data['size']; + $p_central_dir['disk'] = $v_data['disk']; + $p_central_dir['disk_start'] = $v_data['disk_start']; + + // TBC + //for(reset($p_central_dir); $key = key($p_central_dir); next($p_central_dir)) { + //} + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privDeleteByRule() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privDeleteByRule(&$p_result_list, &$p_options) + { + $v_result=1; + $v_list_detail = array(); + + // ----- Open the zip file + if (($v_result=$this->privOpenFd('rb')) != 1) + { + // ----- Return + return $v_result; + } + + // ----- Read the central directory informations + $v_central_dir = array(); + if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) + { + $this->privCloseFd(); + return $v_result; + } + + // ----- Go to beginning of File + @rewind($this->zip_fd); + + // ----- Scan all the files + // ----- Start at beginning of Central Dir + $v_pos_entry = $v_central_dir['offset']; + @rewind($this->zip_fd); + if (@fseek($this->zip_fd, $v_pos_entry)) + { + // ----- Close the zip file + $this->privCloseFd(); + + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Read each entry + $v_header_list = array(); + $j_start = 0; + for ($i=0, $v_nb_extracted=0; $i<$v_central_dir['entries']; $i++) + { + + // ----- Read the file header + $v_header_list[$v_nb_extracted] = array(); + if (($v_result = $this->privReadCentralFileHeader($v_header_list[$v_nb_extracted])) != 1) + { + // ----- Close the zip file + $this->privCloseFd(); + + return $v_result; + } + + + // ----- Store the index + $v_header_list[$v_nb_extracted]['index'] = $i; + + // ----- Look for the specific extract rules + $v_found = false; + + // ----- Look for extract by name rule + if ( (isset($p_options[PCLZIP_OPT_BY_NAME])) + && ($p_options[PCLZIP_OPT_BY_NAME] != 0)) { + + // ----- Look if the filename is in the list + for ($j=0; ($j<sizeof($p_options[PCLZIP_OPT_BY_NAME])) && (!$v_found); $j++) { + + // ----- Look for a directory + if (substr($p_options[PCLZIP_OPT_BY_NAME][$j], -1) == "/") { + + // ----- Look if the directory is in the filename path + if ( (strlen($v_header_list[$v_nb_extracted]['stored_filename']) > strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) + && (substr($v_header_list[$v_nb_extracted]['stored_filename'], 0, strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) == $p_options[PCLZIP_OPT_BY_NAME][$j])) { + $v_found = true; + } + elseif ( (($v_header_list[$v_nb_extracted]['external']&0x00000010)==0x00000010) /* Indicates a folder */ + && ($v_header_list[$v_nb_extracted]['stored_filename'].'/' == $p_options[PCLZIP_OPT_BY_NAME][$j])) { + $v_found = true; + } + } + // ----- Look for a filename + elseif ($v_header_list[$v_nb_extracted]['stored_filename'] == $p_options[PCLZIP_OPT_BY_NAME][$j]) { + $v_found = true; + } + } + } + + // ----- Look for extract by ereg rule + // ereg() is deprecated with PHP 5.3 + /* + else if ( (isset($p_options[PCLZIP_OPT_BY_EREG])) + && ($p_options[PCLZIP_OPT_BY_EREG] != "")) { + + if (ereg($p_options[PCLZIP_OPT_BY_EREG], $v_header_list[$v_nb_extracted]['stored_filename'])) { + $v_found = true; + } + } + */ + + // ----- Look for extract by preg rule + else if ( (isset($p_options[PCLZIP_OPT_BY_PREG])) + && ($p_options[PCLZIP_OPT_BY_PREG] != "")) { + + if (preg_match($p_options[PCLZIP_OPT_BY_PREG], $v_header_list[$v_nb_extracted]['stored_filename'])) { + $v_found = true; + } + } + + // ----- Look for extract by index rule + else if ( (isset($p_options[PCLZIP_OPT_BY_INDEX])) + && ($p_options[PCLZIP_OPT_BY_INDEX] != 0)) { + + // ----- Look if the index is in the list + for ($j=$j_start; ($j<sizeof($p_options[PCLZIP_OPT_BY_INDEX])) && (!$v_found); $j++) { + + if (($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['start']) && ($i<=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end'])) { + $v_found = true; + } + if ($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end']) { + $j_start = $j+1; + } + + if ($p_options[PCLZIP_OPT_BY_INDEX][$j]['start']>$i) { + break; + } + } + } + else { + $v_found = true; + } + + // ----- Look for deletion + if ($v_found) + { + unset($v_header_list[$v_nb_extracted]); + } + else + { + $v_nb_extracted++; + } + } + + // ----- Look if something need to be deleted + if ($v_nb_extracted > 0) { + + // ----- Creates a temporay file + $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.tmp'; + + // ----- Creates a temporary zip archive + $v_temp_zip = new PclZip($v_zip_temp_name); + + // ----- Open the temporary zip file in write mode + if (($v_result = $v_temp_zip->privOpenFd('wb')) != 1) { + $this->privCloseFd(); + + // ----- Return + return $v_result; + } + + // ----- Look which file need to be kept + for ($i=0; $i<sizeof($v_header_list); $i++) { + + // ----- Calculate the position of the header + @rewind($this->zip_fd); + if (@fseek($this->zip_fd, $v_header_list[$i]['offset'])) { + // ----- Close the zip file + $this->privCloseFd(); + $v_temp_zip->privCloseFd(); + @unlink($v_zip_temp_name); + + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Read the file header + $v_local_header = array(); + if (($v_result = $this->privReadFileHeader($v_local_header)) != 1) { + // ----- Close the zip file + $this->privCloseFd(); + $v_temp_zip->privCloseFd(); + @unlink($v_zip_temp_name); + + // ----- Return + return $v_result; + } + + // ----- Check that local file header is same as central file header + if ($this->privCheckFileHeaders($v_local_header, + $v_header_list[$i]) != 1) { + // TBC + } + unset($v_local_header); + + // ----- Write the file header + if (($v_result = $v_temp_zip->privWriteFileHeader($v_header_list[$i])) != 1) { + // ----- Close the zip file + $this->privCloseFd(); + $v_temp_zip->privCloseFd(); + @unlink($v_zip_temp_name); + + // ----- Return + return $v_result; + } + + // ----- Read/write the data block + if (($v_result = PclZipUtilCopyBlock($this->zip_fd, $v_temp_zip->zip_fd, $v_header_list[$i]['compressed_size'])) != 1) { + // ----- Close the zip file + $this->privCloseFd(); + $v_temp_zip->privCloseFd(); + @unlink($v_zip_temp_name); + + // ----- Return + return $v_result; + } + } + + // ----- Store the offset of the central dir + $v_offset = @ftell($v_temp_zip->zip_fd); + + // ----- Re-Create the Central Dir files header + for ($i=0; $i<sizeof($v_header_list); $i++) { + // ----- Create the file header + if (($v_result = $v_temp_zip->privWriteCentralFileHeader($v_header_list[$i])) != 1) { + $v_temp_zip->privCloseFd(); + $this->privCloseFd(); + @unlink($v_zip_temp_name); + + // ----- Return + return $v_result; + } + + // ----- Transform the header to a 'usable' info + $v_temp_zip->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]); + } + + + // ----- Zip file comment + $v_comment = ''; + if (isset($p_options[PCLZIP_OPT_COMMENT])) { + $v_comment = $p_options[PCLZIP_OPT_COMMENT]; + } + + // ----- Calculate the size of the central header + $v_size = @ftell($v_temp_zip->zip_fd)-$v_offset; + + // ----- Create the central dir footer + if (($v_result = $v_temp_zip->privWriteCentralHeader(sizeof($v_header_list), $v_size, $v_offset, $v_comment)) != 1) { + // ----- Reset the file list + unset($v_header_list); + $v_temp_zip->privCloseFd(); + $this->privCloseFd(); + @unlink($v_zip_temp_name); + + // ----- Return + return $v_result; + } + + // ----- Close + $v_temp_zip->privCloseFd(); + $this->privCloseFd(); + + // ----- Delete the zip file + // TBC : I should test the result ... + @unlink($this->zipname); + + // ----- Rename the temporary file + // TBC : I should test the result ... + //@rename($v_zip_temp_name, $this->zipname); + PclZipUtilRename($v_zip_temp_name, $this->zipname); + + // ----- Destroy the temporary archive + unset($v_temp_zip); + } + + // ----- Remove every files : reset the file + else if ($v_central_dir['entries'] != 0) { + $this->privCloseFd(); + + if (($v_result = $this->privOpenFd('wb')) != 1) { + return $v_result; + } + + if (($v_result = $this->privWriteCentralHeader(0, 0, 0, '')) != 1) { + return $v_result; + } + + $this->privCloseFd(); + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privDirCheck() + // Description : + // Check if a directory exists, if not it creates it and all the parents directory + // which may be useful. + // Parameters : + // $p_dir : Directory path to check. + // Return Values : + // 1 : OK + // -1 : Unable to create directory + // -------------------------------------------------------------------------------- + function privDirCheck($p_dir, $p_is_dir=false) + { + $v_result = 1; + + + // ----- Remove the final '/' + if (($p_is_dir) && (substr($p_dir, -1)=='/')) + { + $p_dir = substr($p_dir, 0, strlen($p_dir)-1); + } + + // ----- Check the directory availability + if ((is_dir($p_dir)) || ($p_dir == "")) + { + return 1; + } + + // ----- Extract parent directory + $p_parent_dir = dirname($p_dir); + + // ----- Just a check + if ($p_parent_dir != $p_dir) + { + // ----- Look for parent directory + if ($p_parent_dir != "") + { + if (($v_result = $this->privDirCheck($p_parent_dir)) != 1) + { + return $v_result; + } + } + } + + // ----- Create the directory + if (!@mkdir($p_dir, 0777)) + { + // ----- Error log + PclZip::privErrorLog(PCLZIP_ERR_DIR_CREATE_FAIL, "Unable to create directory '$p_dir'"); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privMerge() + // Description : + // If $p_archive_to_add does not exist, the function exit with a success result. + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privMerge(&$p_archive_to_add) + { + $v_result=1; + + // ----- Look if the archive_to_add exists + if (!is_file($p_archive_to_add->zipname)) + { + + // ----- Nothing to merge, so merge is a success + $v_result = 1; + + // ----- Return + return $v_result; + } + + // ----- Look if the archive exists + if (!is_file($this->zipname)) + { + + // ----- Do a duplicate + $v_result = $this->privDuplicate($p_archive_to_add->zipname); + + // ----- Return + return $v_result; + } + + // ----- Open the zip file + if (($v_result=$this->privOpenFd('rb')) != 1) + { + // ----- Return + return $v_result; + } + + // ----- Read the central directory informations + $v_central_dir = array(); + if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) + { + $this->privCloseFd(); + return $v_result; + } + + // ----- Go to beginning of File + @rewind($this->zip_fd); + + // ----- Open the archive_to_add file + if (($v_result=$p_archive_to_add->privOpenFd('rb')) != 1) + { + $this->privCloseFd(); + + // ----- Return + return $v_result; + } + + // ----- Read the central directory informations + $v_central_dir_to_add = array(); + if (($v_result = $p_archive_to_add->privReadEndCentralDir($v_central_dir_to_add)) != 1) + { + $this->privCloseFd(); + $p_archive_to_add->privCloseFd(); + + return $v_result; + } + + // ----- Go to beginning of File + @rewind($p_archive_to_add->zip_fd); + + // ----- Creates a temporay file + $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.tmp'; + + // ----- Open the temporary file in write mode + if (($v_zip_temp_fd = @fopen($v_zip_temp_name, 'wb')) == 0) + { + $this->privCloseFd(); + $p_archive_to_add->privCloseFd(); + + PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_zip_temp_name.'\' in binary write mode'); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Copy the files from the archive to the temporary file + // TBC : Here I should better append the file and go back to erase the central dir + $v_size = $v_central_dir['offset']; + while ($v_size != 0) + { + $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = fread($this->zip_fd, $v_read_size); + @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); + $v_size -= $v_read_size; + } + + // ----- Copy the files from the archive_to_add into the temporary file + $v_size = $v_central_dir_to_add['offset']; + while ($v_size != 0) + { + $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = fread($p_archive_to_add->zip_fd, $v_read_size); + @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); + $v_size -= $v_read_size; + } + + // ----- Store the offset of the central dir + $v_offset = @ftell($v_zip_temp_fd); + + // ----- Copy the block of file headers from the old archive + $v_size = $v_central_dir['size']; + while ($v_size != 0) + { + $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = @fread($this->zip_fd, $v_read_size); + @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); + $v_size -= $v_read_size; + } + + // ----- Copy the block of file headers from the archive_to_add + $v_size = $v_central_dir_to_add['size']; + while ($v_size != 0) + { + $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = @fread($p_archive_to_add->zip_fd, $v_read_size); + @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); + $v_size -= $v_read_size; + } + + // ----- Merge the file comments + $v_comment = $v_central_dir['comment'].' '.$v_central_dir_to_add['comment']; + + // ----- Calculate the size of the (new) central header + $v_size = @ftell($v_zip_temp_fd)-$v_offset; + + // ----- Swap the file descriptor + // Here is a trick : I swap the temporary fd with the zip fd, in order to use + // the following methods on the temporary fil and not the real archive fd + $v_swap = $this->zip_fd; + $this->zip_fd = $v_zip_temp_fd; + $v_zip_temp_fd = $v_swap; + + // ----- Create the central dir footer + if (($v_result = $this->privWriteCentralHeader($v_central_dir['entries']+$v_central_dir_to_add['entries'], $v_size, $v_offset, $v_comment)) != 1) + { + $this->privCloseFd(); + $p_archive_to_add->privCloseFd(); + @fclose($v_zip_temp_fd); + $this->zip_fd = null; + + // ----- Reset the file list + unset($v_header_list); + + // ----- Return + return $v_result; + } + + // ----- Swap back the file descriptor + $v_swap = $this->zip_fd; + $this->zip_fd = $v_zip_temp_fd; + $v_zip_temp_fd = $v_swap; + + // ----- Close + $this->privCloseFd(); + $p_archive_to_add->privCloseFd(); + + // ----- Close the temporary file + @fclose($v_zip_temp_fd); + + // ----- Delete the zip file + // TBC : I should test the result ... + @unlink($this->zipname); + + // ----- Rename the temporary file + // TBC : I should test the result ... + //@rename($v_zip_temp_name, $this->zipname); + PclZipUtilRename($v_zip_temp_name, $this->zipname); + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privDuplicate() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privDuplicate($p_archive_filename) + { + $v_result=1; + + // ----- Look if the $p_archive_filename exists + if (!is_file($p_archive_filename)) + { + + // ----- Nothing to duplicate, so duplicate is a success. + $v_result = 1; + + // ----- Return + return $v_result; + } + + // ----- Open the zip file + if (($v_result=$this->privOpenFd('wb')) != 1) + { + // ----- Return + return $v_result; + } + + // ----- Open the temporary file in write mode + if (($v_zip_temp_fd = @fopen($p_archive_filename, 'rb')) == 0) + { + $this->privCloseFd(); + + PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive file \''.$p_archive_filename.'\' in binary write mode'); + + // ----- Return + return PclZip::errorCode(); + } + + // ----- Copy the files from the archive to the temporary file + // TBC : Here I should better append the file and go back to erase the central dir + $v_size = filesize($p_archive_filename); + while ($v_size != 0) + { + $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = fread($v_zip_temp_fd, $v_read_size); + @fwrite($this->zip_fd, $v_buffer, $v_read_size); + $v_size -= $v_read_size; + } + + // ----- Close + $this->privCloseFd(); + + // ----- Close the temporary file + @fclose($v_zip_temp_fd); + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privErrorLog() + // Description : + // Parameters : + // -------------------------------------------------------------------------------- + function privErrorLog($p_error_code=0, $p_error_string='') + { + if (PCLZIP_ERROR_EXTERNAL == 1) { + PclError($p_error_code, $p_error_string); + } + else { + $this->error_code = $p_error_code; + $this->error_string = $p_error_string; + } + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privErrorReset() + // Description : + // Parameters : + // -------------------------------------------------------------------------------- + function privErrorReset() + { + if (PCLZIP_ERROR_EXTERNAL == 1) { + PclErrorReset(); + } + else { + $this->error_code = 0; + $this->error_string = ''; + } + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privDisableMagicQuotes() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privDisableMagicQuotes() + { + $v_result=1; + + // ----- Look if function exists + if ( (!function_exists("get_magic_quotes_runtime")) + || (!function_exists("set_magic_quotes_runtime"))) { + return $v_result; + } + + // ----- Look if already done + if ($this->magic_quotes_status != -1) { + return $v_result; + } + + // ----- Get and memorize the magic_quote value + $this->magic_quotes_status = @get_magic_quotes_runtime(); + + // ----- Disable magic_quotes + if ($this->magic_quotes_status == 1) { + @set_magic_quotes_runtime(0); + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : privSwapBackMagicQuotes() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function privSwapBackMagicQuotes() + { + $v_result=1; + + // ----- Look if function exists + if ( (!function_exists("get_magic_quotes_runtime")) + || (!function_exists("set_magic_quotes_runtime"))) { + return $v_result; + } + + // ----- Look if something to do + if ($this->magic_quotes_status != -1) { + return $v_result; + } + + // ----- Swap back magic_quotes + if ($this->magic_quotes_status == 1) { + @set_magic_quotes_runtime($this->magic_quotes_status); + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + } + // End of class + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : PclZipUtilPathReduction() + // Description : + // Parameters : + // Return Values : + // -------------------------------------------------------------------------------- + function PclZipUtilPathReduction($p_dir) + { + $v_result = ""; + + // ----- Look for not empty path + if ($p_dir != "") { + // ----- Explode path by directory names + $v_list = explode("/", $p_dir); + + // ----- Study directories from last to first + $v_skip = 0; + for ($i=sizeof($v_list)-1; $i>=0; $i--) { + // ----- Look for current path + if ($v_list[$i] == ".") { + // ----- Ignore this directory + // Should be the first $i=0, but no check is done + } + else if ($v_list[$i] == "..") { + $v_skip++; + } + else if ($v_list[$i] == "") { + // ----- First '/' i.e. root slash + if ($i == 0) { + $v_result = "/".$v_result; + if ($v_skip > 0) { + // ----- It is an invalid path, so the path is not modified + // TBC + $v_result = $p_dir; + $v_skip = 0; + } + } + // ----- Last '/' i.e. indicates a directory + else if ($i == (sizeof($v_list)-1)) { + $v_result = $v_list[$i]; + } + // ----- Double '/' inside the path + else { + // ----- Ignore only the double '//' in path, + // but not the first and last '/' + } + } + else { + // ----- Look for item to skip + if ($v_skip > 0) { + $v_skip--; + } + else { + $v_result = $v_list[$i].($i!=(sizeof($v_list)-1)?"/".$v_result:""); + } + } + } + + // ----- Look for skip + if ($v_skip > 0) { + while ($v_skip > 0) { + $v_result = '../'.$v_result; + $v_skip--; + } + } + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : PclZipUtilPathInclusion() + // Description : + // This function indicates if the path $p_path is under the $p_dir tree. Or, + // said in an other way, if the file or sub-dir $p_path is inside the dir + // $p_dir. + // The function indicates also if the path is exactly the same as the dir. + // This function supports path with duplicated '/' like '//', but does not + // support '.' or '..' statements. + // Parameters : + // Return Values : + // 0 if $p_path is not inside directory $p_dir + // 1 if $p_path is inside directory $p_dir + // 2 if $p_path is exactly the same as $p_dir + // -------------------------------------------------------------------------------- + function PclZipUtilPathInclusion($p_dir, $p_path) + { + $v_result = 1; + + // ----- Look for path beginning by ./ + if ( ($p_dir == '.') + || ((strlen($p_dir) >=2) && (substr($p_dir, 0, 2) == './'))) { + $p_dir = PclZipUtilTranslateWinPath(getcwd(), FALSE).'/'.substr($p_dir, 1); + } + if ( ($p_path == '.') + || ((strlen($p_path) >=2) && (substr($p_path, 0, 2) == './'))) { + $p_path = PclZipUtilTranslateWinPath(getcwd(), FALSE).'/'.substr($p_path, 1); + } + + // ----- Explode dir and path by directory separator + $v_list_dir = explode("/", $p_dir); + $v_list_dir_size = sizeof($v_list_dir); + $v_list_path = explode("/", $p_path); + $v_list_path_size = sizeof($v_list_path); + + // ----- Study directories paths + $i = 0; + $j = 0; + while (($i < $v_list_dir_size) && ($j < $v_list_path_size) && ($v_result)) { + + // ----- Look for empty dir (path reduction) + if ($v_list_dir[$i] == '') { + $i++; + continue; + } + if ($v_list_path[$j] == '') { + $j++; + continue; + } + + // ----- Compare the items + if (($v_list_dir[$i] != $v_list_path[$j]) && ($v_list_dir[$i] != '') && ( $v_list_path[$j] != '')) { + $v_result = 0; + } + + // ----- Next items + $i++; + $j++; + } + + // ----- Look if everything seems to be the same + if ($v_result) { + // ----- Skip all the empty items + while (($j < $v_list_path_size) && ($v_list_path[$j] == '')) $j++; + while (($i < $v_list_dir_size) && ($v_list_dir[$i] == '')) $i++; + + if (($i >= $v_list_dir_size) && ($j >= $v_list_path_size)) { + // ----- There are exactly the same + $v_result = 2; + } + else if ($i < $v_list_dir_size) { + // ----- The path is shorter than the dir + $v_result = 0; + } + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : PclZipUtilCopyBlock() + // Description : + // Parameters : + // $p_mode : read/write compression mode + // 0 : src & dest normal + // 1 : src gzip, dest normal + // 2 : src normal, dest gzip + // 3 : src & dest gzip + // Return Values : + // -------------------------------------------------------------------------------- + function PclZipUtilCopyBlock($p_src, $p_dest, $p_size, $p_mode=0) + { + $v_result = 1; + + if ($p_mode==0) + { + while ($p_size != 0) + { + $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = @fread($p_src, $v_read_size); + @fwrite($p_dest, $v_buffer, $v_read_size); + $p_size -= $v_read_size; + } + } + else if ($p_mode==1) + { + while ($p_size != 0) + { + $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = @gzread($p_src, $v_read_size); + @fwrite($p_dest, $v_buffer, $v_read_size); + $p_size -= $v_read_size; + } + } + else if ($p_mode==2) + { + while ($p_size != 0) + { + $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = @fread($p_src, $v_read_size); + @gzwrite($p_dest, $v_buffer, $v_read_size); + $p_size -= $v_read_size; + } + } + else if ($p_mode==3) + { + while ($p_size != 0) + { + $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); + $v_buffer = @gzread($p_src, $v_read_size); + @gzwrite($p_dest, $v_buffer, $v_read_size); + $p_size -= $v_read_size; + } + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : PclZipUtilRename() + // Description : + // This function tries to do a simple rename() function. If it fails, it + // tries to copy the $p_src file in a new $p_dest file and then unlink the + // first one. + // Parameters : + // $p_src : Old filename + // $p_dest : New filename + // Return Values : + // 1 on success, 0 on failure. + // -------------------------------------------------------------------------------- + function PclZipUtilRename($p_src, $p_dest) + { + $v_result = 1; + + // ----- Try to rename the files + if (!@rename($p_src, $p_dest)) { + + // ----- Try to copy & unlink the src + if (!@copy($p_src, $p_dest)) { + $v_result = 0; + } + else if (!@unlink($p_src)) { + $v_result = 0; + } + } + + // ----- Return + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : PclZipUtilOptionText() + // Description : + // Translate option value in text. Mainly for debug purpose. + // Parameters : + // $p_option : the option value. + // Return Values : + // The option text value. + // -------------------------------------------------------------------------------- + function PclZipUtilOptionText($p_option) + { + + $v_list = get_defined_constants(); + for (reset($v_list); $v_key = key($v_list); next($v_list)) { + $v_prefix = substr($v_key, 0, 10); + if (( ($v_prefix == 'PCLZIP_OPT') + || ($v_prefix == 'PCLZIP_CB_') + || ($v_prefix == 'PCLZIP_ATT')) + && ($v_list[$v_key] == $p_option)) { + return $v_key; + } + } + + $v_result = 'Unknown'; + + return $v_result; + } + // -------------------------------------------------------------------------------- + + // -------------------------------------------------------------------------------- + // Function : PclZipUtilTranslateWinPath() + // Description : + // Translate windows path by replacing '\' by '/' and optionally removing + // drive letter. + // Parameters : + // $p_path : path to translate. + // $p_remove_disk_letter : true | false + // Return Values : + // The path translated. + // -------------------------------------------------------------------------------- + function PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter=true) + { + if (stristr(php_uname(), 'windows')) { + // ----- Look for potential disk letter + if (($p_remove_disk_letter) && (($v_position = strpos($p_path, ':')) != false)) { + $p_path = substr($p_path, $v_position+1); + } + // ----- Change potential windows directory separator + if ((strpos($p_path, '\\') > 0) || (substr($p_path, 0,1) == '\\')) { + $p_path = strtr($p_path, '\\', '/'); + } + } + return $p_path; + } + // -------------------------------------------------------------------------------- + + +?> diff --git a/admin/helpers/PHPExcel/Shared/PCLZip/readme.txt b/admin/helpers/PHPExcel/Shared/PCLZip/readme.txt new file mode 100644 index 00000000..6ed88394 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/PCLZip/readme.txt @@ -0,0 +1,421 @@ +// -------------------------------------------------------------------------------- +// PclZip 2.8.2 - readme.txt +// -------------------------------------------------------------------------------- +// License GNU/LGPL - August 2009 +// Vincent Blavet - vincent@phpconcept.net +// http://www.phpconcept.net +// -------------------------------------------------------------------------------- +// $Id: readme.txt,v 1.60 2009/09/30 20:35:21 vblavet Exp $ +// -------------------------------------------------------------------------------- + + + +0 - Sommaire +============ + 1 - Introduction + 2 - What's new + 3 - Corrected bugs + 4 - Known bugs or limitations + 5 - License + 6 - Warning + 7 - Documentation + 8 - Author + 9 - Contribute + +1 - Introduction +================ + + PclZip is a library that allow you to manage a Zip archive. + + Full documentation about PclZip can be found here : http://www.phpconcept.net/pclzip + +2 - What's new +============== + + Version 2.8.2 : + - PCLZIP_CB_PRE_EXTRACT and PCLZIP_CB_POST_EXTRACT are now supported with + extraction as a string (PCLZIP_OPT_EXTRACT_AS_STRING). The string + can also be modified in the post-extract call back. + **Bugs correction : + - PCLZIP_OPT_REMOVE_ALL_PATH was not working correctly + - Remove use of eval() and do direct call to callback functions + - Correct support of 64bits systems (Thanks to WordPress team) + + Version 2.8.1 : + - Move option PCLZIP_OPT_BY_EREG to PCLZIP_OPT_BY_PREG because ereg() is + deprecated in PHP 5.3. When using option PCLZIP_OPT_BY_EREG, PclZip will + automatically replace it by PCLZIP_OPT_BY_PREG. + + Version 2.8 : + - Improve extraction of zip archive for large files by using temporary files + This feature is working like the one defined in r2.7. + Options are renamed : PCLZIP_OPT_TEMP_FILE_ON, PCLZIP_OPT_TEMP_FILE_OFF, + PCLZIP_OPT_TEMP_FILE_THRESHOLD + - Add a ratio constant PCLZIP_TEMPORARY_FILE_RATIO to configure the auto + sense of temporary file use. + - Bug correction : Reduce filepath in returned file list to remove ennoying + './/' preambule in file path. + + Version 2.7 : + - Improve creation of zip archive for large files : + PclZip will now autosense the configured memory and use temporary files + when large file is suspected. + This feature can also ne triggered by manual options in create() and add() + methods. 'PCLZIP_OPT_ADD_TEMP_FILE_ON' force the use of temporary files, + 'PCLZIP_OPT_ADD_TEMP_FILE_OFF' disable the autosense technic, + 'PCLZIP_OPT_ADD_TEMP_FILE_THRESHOLD' allow for configuration of a size + threshold to use temporary files. + Using "temporary files" rather than "memory" might take more time, but + might give the ability to zip very large files : + Tested on my win laptop with a 88Mo file : + Zip "in-memory" : 18sec (max_execution_time=30, memory_limit=180Mo) + Zip "tmporary-files" : 23sec (max_execution_time=30, memory_limit=30Mo) + - Replace use of mktime() by time() to limit the E_STRICT error messages. + - Bug correction : When adding files with full windows path (drive letter) + PclZip is now working. Before, if the drive letter is not the default + path, PclZip was not able to add the file. + + Version 2.6 : + - Code optimisation + - New attributes PCLZIP_ATT_FILE_COMMENT gives the ability to + add a comment for a specific file. (Don't really know if this is usefull) + - New attribute PCLZIP_ATT_FILE_CONTENT gives the ability to add a string + as a file. + - New attribute PCLZIP_ATT_FILE_MTIME modify the timestamp associated with + a file. + - Correct a bug. Files archived with a timestamp with 0h0m0s were extracted + with current time + - Add CRC value in the informations returned back for each file after an + action. + - Add missing closedir() statement. + - When adding a folder, and removing the path of this folder, files were + incorrectly added with a '/' at the beginning. Which means files are + related to root in unix systems. Corrected. + - Add conditional if before constant definition. This will allow users + to redefine constants without changing the file, and then improve + upgrade of pclzip code for new versions. + + Version 2.5 : + - Introduce the ability to add file/folder with individual properties (file descriptor). + This gives for example the ability to change the filename of a zipped file. + . Able to add files individually + . Able to change full name + . Able to change short name + . Compatible with global options + - New attributes : PCLZIP_ATT_FILE_NAME, PCLZIP_ATT_FILE_NEW_SHORT_NAME, PCLZIP_ATT_FILE_NEW_FULL_NAME + - New error code : PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE + - Add a security control feature. PclZip can extract any file in any folder + of a system. People may use this to upload a zip file and try to override + a system file. The PCLZIP_OPT_EXTRACT_DIR_RESTRICTION will give the + ability to forgive any directory transversal behavior. + - New PCLZIP_OPT_EXTRACT_DIR_RESTRICTION : check extraction path + - New error code : PCLZIP_ERR_DIRECTORY_RESTRICTION + - Modification in PclZipUtilPathInclusion() : dir and path beginning with ./ will be prepend + by current path (getcwd()) + + Version 2.4 : + - Code improvment : try to speed up the code by removing unusefull call to pack() + - Correct bug in delete() : delete() should be called with no argument. This was not + the case in 2.3. This is corrected in 2.4. + - Correct a bug in path_inclusion function. When the path has several '../../', the + result was bad. + - Add a check for magic_quotes_runtime configuration. If enabled, PclZip will + disable it while working and det it back to its original value. + This resolve a lots of bad formated archive errors. + - Bug correction : PclZip now correctly unzip file in some specific situation, + when compressed content has same size as uncompressed content. + - Bug correction : When selecting option 'PCLZIP_OPT_REMOVE_ALL_PATH', + directories are not any more created. + - Code improvment : correct unclosed opendir(), better handling of . and .. in + loops. + + + Version 2.3 : + - Correct a bug with PHP5 : affecting the value 0xFE49FFE0 to a variable does not + give the same result in PHP4 and PHP5 .... + + Version 2.2 : + - Try development of PCLZIP_OPT_CRYPT ..... + However this becomes to a stop. To crypt/decrypt I need to multiply 2 long integers, + the result (greater than a long) is not supported by PHP. Even the use of bcmath + functions does not help. I did not find yet a solution ...; + - Add missing '/' at end of directory entries + - Check is a file is encrypted or not. Returns status 'unsupported_encryption' and/or + error code PCLZIP_ERR_UNSUPPORTED_ENCRYPTION. + - Corrected : Bad "version need to extract" field in local file header + - Add private method privCheckFileHeaders() in order to check local and central + file headers. PclZip is now supporting purpose bit flag bit 3. Purpose bit flag bit 3 gives + the ability to have a local file header without size, compressed size and crc filled. + - Add a generic status 'error' for file status + - Add control of compression type. PclZip only support deflate compression method. + Before v2.2, PclZip does not check the compression method used in an archive while + extracting. With v2.2 PclZip returns a new error status for a file using an unsupported + compression method. New status is "unsupported_compression". New error code is + PCLZIP_ERR_UNSUPPORTED_COMPRESSION. + - Add optional attribute PCLZIP_OPT_STOP_ON_ERROR. This will stop the extract of files + when errors like 'a folder with same name exists' or 'a newer file exists' or + 'a write protected file' exists, rather than set a status for the concerning file + and resume the extract of the zip. + - Add optional attribute PCLZIP_OPT_REPLACE_NEWER. This will force, during an extract' the + replacement of the file, even if a newer version of the file exists. + Note that today if a file with the same name already exists but is older it will be + replaced by the extracted one. + - Improve PclZipUtilOption() + - Support of zip archive with trailing bytes. Before 2.2, PclZip checks that the central + directory structure is the last data in the archive. Crypt encryption/decryption of + zip archive put trailing 0 bytes after decryption. PclZip is now supporting this. + + Version 2.1 : + - Add the ability to abort the extraction by using a user callback function. + The user can now return the value '2' in its callback which indicates to stop the + extraction. For a pre call-back extract is stopped before the extration of the current + file. For a post call back, the extraction is stopped after. + - Add the ability to extract a file (or several files) directly in the standard output. + This is done by the new parameter PCLZIP_OPT_EXTRACT_IN_OUTPUT with method extract(). + - Add support for parameters PCLZIP_OPT_COMMENT, PCLZIP_OPT_ADD_COMMENT, + PCLZIP_OPT_PREPEND_COMMENT. This will create, replace, add, or prepend comments + in the zip archive. + - When merging two archives, the comments are not any more lost, but merged, with a + blank space separator. + - Corrected bug : Files are not deleted when all files are asked to be deleted. + - Corrected bug : Folders with name '0' made PclZip to abort the create or add feature. + + + Version 2.0 : + ***** Warning : Some new features may break the backward compatibility for your scripts. + Please carefully read the readme file. + - Add the ability to delete by Index, name and regular expression. This feature is + performed by the method delete(), which uses the optional parameters + PCLZIP_OPT_BY_INDEX, PCLZIP_OPT_BY_NAME, PCLZIP_OPT_BY_EREG or PCLZIP_OPT_BY_PREG. + - Add the ability to extract by regular expression. To extract by regexp you must use the method + extract(), with the option PCLZIP_OPT_BY_EREG or PCLZIP_OPT_BY_PREG + (depending if you want to use ereg() or preg_match() syntax) followed by the + regular expression pattern. + - Add the ability to extract by index, directly with the extract() method. This is a + code improvment of the extractByIndex() method. + - Add the ability to extract by name. To extract by name you must use the method + extract(), with the option PCLZIP_OPT_BY_NAME followed by the filename to + extract or an array of filenames to extract. To extract all a folder, use the folder + name rather than the filename with a '/' at the end. + - Add the ability to add files without compression. This is done with a new attribute + which is PCLZIP_OPT_NO_COMPRESSION. + - Add the attribute PCLZIP_OPT_EXTRACT_AS_STRING, which allow to extract a file directly + in a string without using any file (or temporary file). + - Add constant PCLZIP_SEPARATOR for static configuration of filename separators in a single string. + The default separator is now a comma (,) and not any more a blank space. + THIS BREAK THE BACKWARD COMPATIBILITY : Please check if this may have an impact with + your script. + - Improve algorythm performance by removing the use of temporary files when adding or + extracting files in an archive. + - Add (correct) detection of empty filename zipping. This can occurs when the removed + path is the same + as a zipped dir. The dir is not zipped (['status'] = filtered), only its content. + - Add better support for windows paths (thanks for help from manus@manusfreedom.com). + - Corrected bug : When the archive file already exists with size=0, the add() method + fails. Corrected in 2.0. + - Remove the use of OS_WINDOWS constant. Use php_uname() function rather. + - Control the order of index ranges in extract by index feature. + - Change the internal management of folders (better handling of internal flag). + + + Version 1.3 : + - Removing the double include check. This is now done by include_once() and require_once() + PHP directives. + - Changing the error handling mecanism : Remove the use of an external error library. + The former PclError...() functions are replaced by internal equivalent methods. + By changing the environment variable PCLZIP_ERROR_EXTERNAL you can still use the former library. + Introducing the use of constants for error codes rather than integer values. This will help + in futur improvment. + Introduction of error handling functions like errorCode(), errorName() and errorInfo(). + - Remove the deprecated use of calling function with arguments passed by reference. + - Add the calling of extract(), extractByIndex(), create() and add() functions + with variable options rather than fixed arguments. + - Add the ability to remove all the file path while extracting or adding, + without any need to specify the path to remove. + This is available for extract(), extractByIndex(), create() and add() functionS by using + the new variable options parameters : + - PCLZIP_OPT_REMOVE_ALL_PATH : by indicating this option while calling the fct. + - Ability to change the mode of a file after the extraction (chmod()). + This is available for extract() and extractByIndex() functionS by using + the new variable options parameters. + - PCLZIP_OPT_SET_CHMOD : by setting the value of this option. + - Ability to definition call-back options. These call-back will be called during the adding, + or the extracting of file (extract(), extractByIndex(), create() and add() functions) : + - PCLZIP_CB_PRE_EXTRACT : will be called before each extraction of a file. The user + can trigerred the change the filename of the extracted file. The user can triggered the + skip of the extraction. This is adding a 'skipped' status in the file list result value. + - PCLZIP_CB_POST_EXTRACT : will be called after each extraction of a file. + Nothing can be triggered from that point. + - PCLZIP_CB_PRE_ADD : will be called before each add of a file. The user + can trigerred the change the stored filename of the added file. The user can triggered the + skip of the add. This is adding a 'skipped' status in the file list result value. + - PCLZIP_CB_POST_ADD : will be called after each add of a file. + Nothing can be triggered from that point. + - Two status are added in the file list returned as function result : skipped & filename_too_long + 'skipped' is used when a call-back function ask for skipping the file. + 'filename_too_long' is used while adding a file with a too long filename to archive (the file is + not added) + - Adding the function PclZipUtilPathInclusion(), that check the inclusion of a path into + a directory. + - Add a check of the presence of the archive file before some actions (like list, ...) + - Add the initialisation of field "index" in header array. This means that by + default index will be -1 when not explicitly set by the methods. + + Version 1.2 : + - Adding a duplicate function. + - Adding a merge function. The merge function is a "quick merge" function, + it just append the content of an archive at the end of the first one. There + is no check for duplicate files or more recent files. + - Improve the search of the central directory end. + + Version 1.1.2 : + + - Changing the license of PclZip. PclZip is now released under the GNU / LGPL license + (see License section). + - Adding the optional support of a static temporary directory. You will need to configure + the constant PCLZIP_TEMPORARY_DIR if you want to use this feature. + - Improving the rename() function. In some cases rename() does not work (different + Filesystems), so it will be replaced by a copy() + unlink() functions. + + Version 1.1.1 : + + - Maintenance release, no new feature. + + Version 1.1 : + + - New method Add() : adding files in the archive + - New method ExtractByIndex() : partial extract of the archive, files are identified by + their index in the archive + - New method DeleteByIndex() : delete some files/folder entries from the archive, + files are identified by their index in the archive. + - Adding a test of the zlib extension presence. If not present abort the script. + + Version 1.0.1 : + + - No new feature + + +3 - Corrected bugs +================== + + Corrected in Version 2.0 : + - Corrected : During an extraction, if a call-back fucntion is used and try to skip + a file, all the extraction process is stopped. + + Corrected in Version 1.3 : + - Corrected : Support of static synopsis for method extract() is broken. + - Corrected : invalid size of archive content field (0xFF) should be (0xFFFF). + - Corrected : When an extract is done with a remove_path parameter, the entry for + the directory with exactly the same path is not skipped/filtered. + - Corrected : extractByIndex() and deleteByIndex() were not managing index in the + right way. For example indexes '1,3-5,11' will only extract files 1 and 11. This + is due to a sort of the index resulting table that puts 11 before 3-5 (sort on + string and not interger). The sort is temporarilly removed, this means that + you must provide a sorted list of index ranges. + + Corrected in Version 1.2 : + + - Nothing. + + Corrected in Version 1.1.2 : + + - Corrected : Winzip is unable to delete or add new files in a PclZip created archives. + + Corrected in Version 1.1.1 : + + - Corrected : When archived file is not compressed (0% compression), the + extract method fails. + + Corrected in Version 1.1 : + + - Corrected : Adding a complete tree of folder may result in a bad archive + creation. + + Corrected in Version 1.0.1 : + + - Corrected : Error while compressing files greater than PCLZIP_READ_BLOCK_SIZE (default=1024). + + +4 - Known bugs or limitations +============================= + + Please publish bugs reports in SourceForge : + http://sourceforge.net/tracker/?group_id=40254&atid=427564 + + In Version 2.x : + - PclZip does only support file uncompressed or compressed with deflate (compression method 8) + - PclZip does not support password protected zip archive + - Some concern were seen when changing mtime of a file while archiving. + Seems to be linked to Daylight Saving Time (PclTest_changing_mtime). + + In Version 1.2 : + + - merge() methods does not check for duplicate files or last date of modifications. + + In Version 1.1 : + + - Limitation : Using 'extract' fields in the file header in the zip archive is not supported. + - WinZip is unable to delete a single file in a PclZip created archive. It is also unable to + add a file in a PclZip created archive. (Corrected in v.1.2) + + In Version 1.0.1 : + + - Adding a complete tree of folder may result in a bad archive + creation. (Corrected in V.1.1). + - Path given to methods must be in the unix format (/) and not the Windows format (\). + Workaround : Use only / directory separators. + - PclZip is using temporary files that are sometime the name of the file with a .tmp or .gz + added suffix. Files with these names may already exist and may be overwritten. + Workaround : none. + - PclZip does not check if the zlib extension is present. If it is absent, the zip + file is not created and the lib abort without warning. + Workaround : enable the zlib extension on the php install + + In Version 1.0 : + + - Error while compressing files greater than PCLZIP_READ_BLOCK_SIZE (default=1024). + (Corrected in v.1.0.1) + - Limitation : Multi-disk zip archive are not supported. + + +5 - License +=========== + + Since version 1.1.2, PclZip Library is released under GNU/LGPL license. + This library is free, so you can use it at no cost. + + HOWEVER, if you release a script, an application, a library or any kind of + code using PclZip library (or a part of it), YOU MUST : + - Indicate in the documentation (or a readme file), that your work + uses PclZip Library, and make a reference to the author and the web site + http://www.phpconcept.net + - Gives the ability to the final user to update the PclZip libary. + + I will also appreciate that you send me a mail (vincent@phpconcept.net), just to + be aware that someone is using PclZip. + + For more information about GNU/LGPL license : http://www.gnu.org + +6 - Warning +================= + + This library and the associated files are non commercial, non professional work. + It should not have unexpected results. However if any damage is caused by this software + the author can not be responsible. + The use of this software is at the risk of the user. + +7 - Documentation +================= + PclZip User Manuel is available in English on PhpConcept : http://www.phpconcept.net/pclzip/man/en/index.php + A Russian translation was done by Feskov Kuzma : http://php.russofile.ru/ru/authors/unsort/zip/ + +8 - Author +========== + + This software was written by Vincent Blavet (vincent@phpconcept.net) on its leasure time. + +9 - Contribute +============== + If you want to contribute to the development of PclZip, please contact vincent@phpconcept.net. + If you can help in financing PhpConcept hosting service, please go to + http://www.phpconcept.net/soutien.php diff --git a/admin/helpers/PHPExcel/Shared/PasswordHasher.php b/admin/helpers/PHPExcel/Shared/PasswordHasher.php new file mode 100644 index 00000000..891b6bc1 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/PasswordHasher.php @@ -0,0 +1,66 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Shared_PasswordHasher + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_PasswordHasher +{ + /** + * Create a password hash from a given string. + * + * This method is based on the algorithm provided by + * Daniel Rentz of OpenOffice and the PEAR package + * Spreadsheet_Excel_Writer by Xavier Noguer <xnoguer@rezebra.com>. + * + * @param string $pPassword Password to hash + * @return string Hashed password + */ + public static function hashPassword($pPassword = '') { + $password = 0x0000; + $charPos = 1; // char position + + // split the plain text password in its component characters + $chars = preg_split('//', $pPassword, -1, PREG_SPLIT_NO_EMPTY); + foreach ($chars as $char) { + $value = ord($char) << $charPos++; // shifted ASCII value + $rotated_bits = $value >> 15; // rotated bits beyond bit 15 + $value &= 0x7fff; // first 15 bits + $password ^= ($value | $rotated_bits); + } + + $password ^= strlen($pPassword); + $password ^= 0xCE4B; + + return(strtoupper(dechex($password))); + } +} diff --git a/admin/helpers/PHPExcel/Shared/String.php b/admin/helpers/PHPExcel/Shared/String.php new file mode 100644 index 00000000..fc86d537 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/String.php @@ -0,0 +1,776 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Shared_String + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_String +{ + /** Constants */ + /** Regular Expressions */ + // Fraction + const STRING_REGEXP_FRACTION = '(-?)(\d+)\s+(\d+\/\d+)'; + + + /** + * Control characters array + * + * @var string[] + */ + private static $_controlCharacters = array(); + + /** + * SYLK Characters array + * + * $var array + */ + private static $_SYLKCharacters = array(); + + /** + * Decimal separator + * + * @var string + */ + private static $_decimalSeparator; + + /** + * Thousands separator + * + * @var string + */ + private static $_thousandsSeparator; + + /** + * Currency code + * + * @var string + */ + private static $_currencyCode; + + /** + * Is mbstring extension avalable? + * + * @var boolean + */ + private static $_isMbstringEnabled; + + /** + * Is iconv extension avalable? + * + * @var boolean + */ + private static $_isIconvEnabled; + + /** + * Build control characters array + */ + private static function _buildControlCharacters() { + for ($i = 0; $i <= 31; ++$i) { + if ($i != 9 && $i != 10 && $i != 13) { + $find = '_x' . sprintf('%04s' , strtoupper(dechex($i))) . '_'; + $replace = chr($i); + self::$_controlCharacters[$find] = $replace; + } + } + } + + /** + * Build SYLK characters array + */ + private static function _buildSYLKCharacters() + { + self::$_SYLKCharacters = array( + "\x1B 0" => chr(0), + "\x1B 1" => chr(1), + "\x1B 2" => chr(2), + "\x1B 3" => chr(3), + "\x1B 4" => chr(4), + "\x1B 5" => chr(5), + "\x1B 6" => chr(6), + "\x1B 7" => chr(7), + "\x1B 8" => chr(8), + "\x1B 9" => chr(9), + "\x1B :" => chr(10), + "\x1B ;" => chr(11), + "\x1B <" => chr(12), + "\x1B :" => chr(13), + "\x1B >" => chr(14), + "\x1B ?" => chr(15), + "\x1B!0" => chr(16), + "\x1B!1" => chr(17), + "\x1B!2" => chr(18), + "\x1B!3" => chr(19), + "\x1B!4" => chr(20), + "\x1B!5" => chr(21), + "\x1B!6" => chr(22), + "\x1B!7" => chr(23), + "\x1B!8" => chr(24), + "\x1B!9" => chr(25), + "\x1B!:" => chr(26), + "\x1B!;" => chr(27), + "\x1B!<" => chr(28), + "\x1B!=" => chr(29), + "\x1B!>" => chr(30), + "\x1B!?" => chr(31), + "\x1B'?" => chr(127), + "\x1B(0" => '€', // 128 in CP1252 + "\x1B(2" => '‚', // 130 in CP1252 + "\x1B(3" => 'ƒ', // 131 in CP1252 + "\x1B(4" => '„', // 132 in CP1252 + "\x1B(5" => '…', // 133 in CP1252 + "\x1B(6" => '†', // 134 in CP1252 + "\x1B(7" => '‡', // 135 in CP1252 + "\x1B(8" => 'ˆ', // 136 in CP1252 + "\x1B(9" => '‰', // 137 in CP1252 + "\x1B(:" => 'Š', // 138 in CP1252 + "\x1B(;" => '‹', // 139 in CP1252 + "\x1BNj" => 'Œ', // 140 in CP1252 + "\x1B(>" => 'Ž', // 142 in CP1252 + "\x1B)1" => '‘', // 145 in CP1252 + "\x1B)2" => '’', // 146 in CP1252 + "\x1B)3" => '“', // 147 in CP1252 + "\x1B)4" => '”', // 148 in CP1252 + "\x1B)5" => '•', // 149 in CP1252 + "\x1B)6" => '–', // 150 in CP1252 + "\x1B)7" => '—', // 151 in CP1252 + "\x1B)8" => '˜', // 152 in CP1252 + "\x1B)9" => '™', // 153 in CP1252 + "\x1B):" => 'š', // 154 in CP1252 + "\x1B);" => '›', // 155 in CP1252 + "\x1BNz" => 'œ', // 156 in CP1252 + "\x1B)>" => 'ž', // 158 in CP1252 + "\x1B)?" => 'Ÿ', // 159 in CP1252 + "\x1B*0" => ' ', // 160 in CP1252 + "\x1BN!" => '¡', // 161 in CP1252 + "\x1BN\"" => '¢', // 162 in CP1252 + "\x1BN#" => '£', // 163 in CP1252 + "\x1BN(" => '¤', // 164 in CP1252 + "\x1BN%" => '¥', // 165 in CP1252 + "\x1B*6" => '¦', // 166 in CP1252 + "\x1BN'" => '§', // 167 in CP1252 + "\x1BNH " => '¨', // 168 in CP1252 + "\x1BNS" => '©', // 169 in CP1252 + "\x1BNc" => 'ª', // 170 in CP1252 + "\x1BN+" => '«', // 171 in CP1252 + "\x1B*<" => '¬', // 172 in CP1252 + "\x1B*=" => '­', // 173 in CP1252 + "\x1BNR" => '®', // 174 in CP1252 + "\x1B*?" => '¯', // 175 in CP1252 + "\x1BN0" => '°', // 176 in CP1252 + "\x1BN1" => '±', // 177 in CP1252 + "\x1BN2" => '²', // 178 in CP1252 + "\x1BN3" => '³', // 179 in CP1252 + "\x1BNB " => '´', // 180 in CP1252 + "\x1BN5" => 'µ', // 181 in CP1252 + "\x1BN6" => '¶', // 182 in CP1252 + "\x1BN7" => '·', // 183 in CP1252 + "\x1B+8" => '¸', // 184 in CP1252 + "\x1BNQ" => '¹', // 185 in CP1252 + "\x1BNk" => 'º', // 186 in CP1252 + "\x1BN;" => '»', // 187 in CP1252 + "\x1BN<" => '¼', // 188 in CP1252 + "\x1BN=" => '½', // 189 in CP1252 + "\x1BN>" => '¾', // 190 in CP1252 + "\x1BN?" => '¿', // 191 in CP1252 + "\x1BNAA" => 'À', // 192 in CP1252 + "\x1BNBA" => 'Á', // 193 in CP1252 + "\x1BNCA" => 'Â', // 194 in CP1252 + "\x1BNDA" => 'Ã', // 195 in CP1252 + "\x1BNHA" => 'Ä', // 196 in CP1252 + "\x1BNJA" => 'Å', // 197 in CP1252 + "\x1BNa" => 'Æ', // 198 in CP1252 + "\x1BNKC" => 'Ç', // 199 in CP1252 + "\x1BNAE" => 'È', // 200 in CP1252 + "\x1BNBE" => 'É', // 201 in CP1252 + "\x1BNCE" => 'Ê', // 202 in CP1252 + "\x1BNHE" => 'Ë', // 203 in CP1252 + "\x1BNAI" => 'Ì', // 204 in CP1252 + "\x1BNBI" => 'Í', // 205 in CP1252 + "\x1BNCI" => 'Î', // 206 in CP1252 + "\x1BNHI" => 'Ï', // 207 in CP1252 + "\x1BNb" => 'Ð', // 208 in CP1252 + "\x1BNDN" => 'Ñ', // 209 in CP1252 + "\x1BNAO" => 'Ò', // 210 in CP1252 + "\x1BNBO" => 'Ó', // 211 in CP1252 + "\x1BNCO" => 'Ô', // 212 in CP1252 + "\x1BNDO" => 'Õ', // 213 in CP1252 + "\x1BNHO" => 'Ö', // 214 in CP1252 + "\x1B-7" => '×', // 215 in CP1252 + "\x1BNi" => 'Ø', // 216 in CP1252 + "\x1BNAU" => 'Ù', // 217 in CP1252 + "\x1BNBU" => 'Ú', // 218 in CP1252 + "\x1BNCU" => 'Û', // 219 in CP1252 + "\x1BNHU" => 'Ü', // 220 in CP1252 + "\x1B-=" => 'Ý', // 221 in CP1252 + "\x1BNl" => 'Þ', // 222 in CP1252 + "\x1BN{" => 'ß', // 223 in CP1252 + "\x1BNAa" => 'à', // 224 in CP1252 + "\x1BNBa" => 'á', // 225 in CP1252 + "\x1BNCa" => 'â', // 226 in CP1252 + "\x1BNDa" => 'ã', // 227 in CP1252 + "\x1BNHa" => 'ä', // 228 in CP1252 + "\x1BNJa" => 'å', // 229 in CP1252 + "\x1BNq" => 'æ', // 230 in CP1252 + "\x1BNKc" => 'ç', // 231 in CP1252 + "\x1BNAe" => 'è', // 232 in CP1252 + "\x1BNBe" => 'é', // 233 in CP1252 + "\x1BNCe" => 'ê', // 234 in CP1252 + "\x1BNHe" => 'ë', // 235 in CP1252 + "\x1BNAi" => 'ì', // 236 in CP1252 + "\x1BNBi" => 'í', // 237 in CP1252 + "\x1BNCi" => 'î', // 238 in CP1252 + "\x1BNHi" => 'ï', // 239 in CP1252 + "\x1BNs" => 'ð', // 240 in CP1252 + "\x1BNDn" => 'ñ', // 241 in CP1252 + "\x1BNAo" => 'ò', // 242 in CP1252 + "\x1BNBo" => 'ó', // 243 in CP1252 + "\x1BNCo" => 'ô', // 244 in CP1252 + "\x1BNDo" => 'õ', // 245 in CP1252 + "\x1BNHo" => 'ö', // 246 in CP1252 + "\x1B/7" => '÷', // 247 in CP1252 + "\x1BNy" => 'ø', // 248 in CP1252 + "\x1BNAu" => 'ù', // 249 in CP1252 + "\x1BNBu" => 'ú', // 250 in CP1252 + "\x1BNCu" => 'û', // 251 in CP1252 + "\x1BNHu" => 'ü', // 252 in CP1252 + "\x1B/=" => 'ý', // 253 in CP1252 + "\x1BN|" => 'þ', // 254 in CP1252 + "\x1BNHy" => 'ÿ', // 255 in CP1252 + ); + } + + /** + * Get whether mbstring extension is available + * + * @return boolean + */ + public static function getIsMbstringEnabled() + { + if (isset(self::$_isMbstringEnabled)) { + return self::$_isMbstringEnabled; + } + + self::$_isMbstringEnabled = function_exists('mb_convert_encoding') ? + true : false; + + return self::$_isMbstringEnabled; + } + + /** + * Get whether iconv extension is available + * + * @return boolean + */ + public static function getIsIconvEnabled() + { + if (isset(self::$_isIconvEnabled)) { + return self::$_isIconvEnabled; + } + + // Fail if iconv doesn't exist + if (!function_exists('iconv')) { + self::$_isIconvEnabled = false; + return false; + } + + // Sometimes iconv is not working, and e.g. iconv('UTF-8', 'UTF-16LE', 'x') just returns false, + if (!@iconv('UTF-8', 'UTF-16LE', 'x')) { + self::$_isIconvEnabled = false; + return false; + } + + // Sometimes iconv_substr('A', 0, 1, 'UTF-8') just returns false in PHP 5.2.0 + // we cannot use iconv in that case either (http://bugs.php.net/bug.php?id=37773) + if (!@iconv_substr('A', 0, 1, 'UTF-8')) { + self::$_isIconvEnabled = false; + return false; + } + + // CUSTOM: IBM AIX iconv() does not work + if ( defined('PHP_OS') && @stristr(PHP_OS, 'AIX') + && defined('ICONV_IMPL') && (@strcasecmp(ICONV_IMPL, 'unknown') == 0) + && defined('ICONV_VERSION') && (@strcasecmp(ICONV_VERSION, 'unknown') == 0) ) + { + self::$_isIconvEnabled = false; + return false; + } + + // If we reach here no problems were detected with iconv + self::$_isIconvEnabled = true; + return true; + } + + public static function buildCharacterSets() { + if(empty(self::$_controlCharacters)) { + self::_buildControlCharacters(); + } + if(empty(self::$_SYLKCharacters)) { + self::_buildSYLKCharacters(); + } + } + + /** + * Convert from OpenXML escaped control character to PHP control character + * + * Excel 2007 team: + * ---------------- + * That's correct, control characters are stored directly in the shared-strings table. + * We do encode characters that cannot be represented in XML using the following escape sequence: + * _xHHHH_ where H represents a hexadecimal character in the character's value... + * So you could end up with something like _x0008_ in a string (either in a cell value (<v>) + * element or in the shared string <t> element. + * + * @param string $value Value to unescape + * @return string + */ + public static function ControlCharacterOOXML2PHP($value = '') { + return str_replace( array_keys(self::$_controlCharacters), array_values(self::$_controlCharacters), $value ); + } + + /** + * Convert from PHP control character to OpenXML escaped control character + * + * Excel 2007 team: + * ---------------- + * That's correct, control characters are stored directly in the shared-strings table. + * We do encode characters that cannot be represented in XML using the following escape sequence: + * _xHHHH_ where H represents a hexadecimal character in the character's value... + * So you could end up with something like _x0008_ in a string (either in a cell value (<v>) + * element or in the shared string <t> element. + * + * @param string $value Value to escape + * @return string + */ + public static function ControlCharacterPHP2OOXML($value = '') { + return str_replace( array_values(self::$_controlCharacters), array_keys(self::$_controlCharacters), $value ); + } + + /** + * Try to sanitize UTF8, stripping invalid byte sequences. Not perfect. Does not surrogate characters. + * + * @param string $value + * @return string + */ + public static function SanitizeUTF8($value) + { + if (self::getIsIconvEnabled()) { + $value = @iconv('UTF-8', 'UTF-8', $value); + return $value; + } + + if (self::getIsMbstringEnabled()) { + $value = mb_convert_encoding($value, 'UTF-8', 'UTF-8'); + return $value; + } + + // else, no conversion + return $value; + } + + /** + * Check if a string contains UTF8 data + * + * @param string $value + * @return boolean + */ + public static function IsUTF8($value = '') { + return $string === '' || preg_match('/^./su', $string) === 1; + } + + /** + * Formats a numeric value as a string for output in various output writers forcing + * point as decimal separator in case locale is other than English. + * + * @param mixed $value + * @return string + */ + public static function FormatNumber($value) { + if (is_float($value)) { + return str_replace(',', '.', $value); + } + return (string) $value; + } + + /** + * Converts a UTF-8 string into BIFF8 Unicode string data (8-bit string length) + * Writes the string using uncompressed notation, no rich text, no Asian phonetics + * If mbstring extension is not available, ASCII is assumed, and compressed notation is used + * although this will give wrong results for non-ASCII strings + * see OpenOffice.org's Documentation of the Microsoft Excel File Format, sect. 2.5.3 + * + * @param string $value UTF-8 encoded string + * @param mixed[] $arrcRuns Details of rich text runs in $value + * @return string + */ + public static function UTF8toBIFF8UnicodeShort($value, $arrcRuns = array()) + { + // character count + $ln = self::CountCharacters($value, 'UTF-8'); + // option flags + if(empty($arrcRuns)){ + $opt = (self::getIsIconvEnabled() || self::getIsMbstringEnabled()) ? + 0x0001 : 0x0000; + $data = pack('CC', $ln, $opt); + // characters + $data .= self::ConvertEncoding($value, 'UTF-16LE', 'UTF-8'); + } + else { + $data = pack('vC', $ln, 0x09); + $data .= pack('v', count($arrcRuns)); + // characters + $data .= self::ConvertEncoding($value, 'UTF-16LE', 'UTF-8'); + foreach ($arrcRuns as $cRun){ + $data .= pack('v', $cRun['strlen']); + $data .= pack('v', $cRun['fontidx']); + } + } + return $data; + } + + /** + * Converts a UTF-8 string into BIFF8 Unicode string data (16-bit string length) + * Writes the string using uncompressed notation, no rich text, no Asian phonetics + * If mbstring extension is not available, ASCII is assumed, and compressed notation is used + * although this will give wrong results for non-ASCII strings + * see OpenOffice.org's Documentation of the Microsoft Excel File Format, sect. 2.5.3 + * + * @param string $value UTF-8 encoded string + * @return string + */ + public static function UTF8toBIFF8UnicodeLong($value) + { + // character count + $ln = self::CountCharacters($value, 'UTF-8'); + + // option flags + $opt = (self::getIsIconvEnabled() || self::getIsMbstringEnabled()) ? + 0x0001 : 0x0000; + + // characters + $chars = self::ConvertEncoding($value, 'UTF-16LE', 'UTF-8'); + + $data = pack('vC', $ln, $opt) . $chars; + return $data; + } + + /** + * Convert string from one encoding to another. First try mbstring, then iconv, finally strlen + * + * @param string $value + * @param string $to Encoding to convert to, e.g. 'UTF-8' + * @param string $from Encoding to convert from, e.g. 'UTF-16LE' + * @return string + */ + public static function ConvertEncoding($value, $to, $from) + { + if (self::getIsIconvEnabled()) { + return iconv($from, $to, $value); + } + + if (self::getIsMbstringEnabled()) { + return mb_convert_encoding($value, $to, $from); + } + + if($from == 'UTF-16LE'){ + return self::utf16_decode($value, false); + }else if($from == 'UTF-16BE'){ + return self::utf16_decode($value); + } + // else, no conversion + return $value; + } + + /** + * Decode UTF-16 encoded strings. + * + * Can handle both BOM'ed data and un-BOM'ed data. + * Assumes Big-Endian byte order if no BOM is available. + * This function was taken from http://php.net/manual/en/function.utf8-decode.php + * and $bom_be parameter added. + * + * @param string $str UTF-16 encoded data to decode. + * @return string UTF-8 / ISO encoded data. + * @access public + * @version 0.2 / 2010-05-13 + * @author Rasmus Andersson {@link http://rasmusandersson.se/} + * @author vadik56 + */ + public static function utf16_decode($str, $bom_be = TRUE) { + if( strlen($str) < 2 ) return $str; + $c0 = ord($str{0}); + $c1 = ord($str{1}); + if( $c0 == 0xfe && $c1 == 0xff ) { $str = substr($str,2); } + elseif( $c0 == 0xff && $c1 == 0xfe ) { $str = substr($str,2); $bom_be = false; } + $len = strlen($str); + $newstr = ''; + for($i=0;$i<$len;$i+=2) { + if( $bom_be ) { $val = ord($str{$i}) << 4; $val += ord($str{$i+1}); } + else { $val = ord($str{$i+1}) << 4; $val += ord($str{$i}); } + $newstr .= ($val == 0x228) ? "\n" : chr($val); + } + return $newstr; + } + + /** + * Get character count. First try mbstring, then iconv, finally strlen + * + * @param string $value + * @param string $enc Encoding + * @return int Character count + */ + public static function CountCharacters($value, $enc = 'UTF-8') + { + if (self::getIsMbstringEnabled()) { + return mb_strlen($value, $enc); + } + + if (self::getIsIconvEnabled()) { + return iconv_strlen($value, $enc); + } + + // else strlen + return strlen($value); + } + + /** + * Get a substring of a UTF-8 encoded string. First try mbstring, then iconv, finally strlen + * + * @param string $pValue UTF-8 encoded string + * @param int $pStart Start offset + * @param int $pLength Maximum number of characters in substring + * @return string + */ + public static function Substring($pValue = '', $pStart = 0, $pLength = 0) + { + if (self::getIsMbstringEnabled()) { + return mb_substr($pValue, $pStart, $pLength, 'UTF-8'); + } + + if (self::getIsIconvEnabled()) { + return iconv_substr($pValue, $pStart, $pLength, 'UTF-8'); + } + + // else substr + return substr($pValue, $pStart, $pLength); + } + + /** + * Convert a UTF-8 encoded string to upper case + * + * @param string $pValue UTF-8 encoded string + * @return string + */ + public static function StrToUpper($pValue = '') + { + if (function_exists('mb_convert_case')) { + return mb_convert_case($pValue, MB_CASE_UPPER, "UTF-8"); + } + return strtoupper($pValue); + } + + /** + * Convert a UTF-8 encoded string to lower case + * + * @param string $pValue UTF-8 encoded string + * @return string + */ + public static function StrToLower($pValue = '') + { + if (function_exists('mb_convert_case')) { + return mb_convert_case($pValue, MB_CASE_LOWER, "UTF-8"); + } + return strtolower($pValue); + } + + /** + * Convert a UTF-8 encoded string to title/proper case + * (uppercase every first character in each word, lower case all other characters) + * + * @param string $pValue UTF-8 encoded string + * @return string + */ + public static function StrToTitle($pValue = '') + { + if (function_exists('mb_convert_case')) { + return mb_convert_case($pValue, MB_CASE_TITLE, "UTF-8"); + } + return ucwords($pValue); + } + + /** + * Identify whether a string contains a fractional numeric value, + * and convert it to a numeric if it is + * + * @param string &$operand string value to test + * @return boolean + */ + public static function convertToNumberIfFraction(&$operand) { + if (preg_match('/^'.self::STRING_REGEXP_FRACTION.'$/i', $operand, $match)) { + $sign = ($match[1] == '-') ? '-' : '+'; + $fractionFormula = '='.$sign.$match[2].$sign.$match[3]; + $operand = PHPExcel_Calculation::getInstance()->_calculateFormulaValue($fractionFormula); + return true; + } + return false; + } // function convertToNumberIfFraction() + + /** + * Get the decimal separator. If it has not yet been set explicitly, try to obtain number + * formatting information from locale. + * + * @return string + */ + public static function getDecimalSeparator() + { + if (!isset(self::$_decimalSeparator)) { + $localeconv = localeconv(); + self::$_decimalSeparator = ($localeconv['decimal_point'] != '') + ? $localeconv['decimal_point'] : $localeconv['mon_decimal_point']; + + if (self::$_decimalSeparator == '') { + // Default to . + self::$_decimalSeparator = '.'; + } + } + return self::$_decimalSeparator; + } + + /** + * Set the decimal separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString() + * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF + * + * @param string $pValue Character for decimal separator + */ + public static function setDecimalSeparator($pValue = '.') + { + self::$_decimalSeparator = $pValue; + } + + /** + * Get the thousands separator. If it has not yet been set explicitly, try to obtain number + * formatting information from locale. + * + * @return string + */ + public static function getThousandsSeparator() + { + if (!isset(self::$_thousandsSeparator)) { + $localeconv = localeconv(); + self::$_thousandsSeparator = ($localeconv['thousands_sep'] != '') + ? $localeconv['thousands_sep'] : $localeconv['mon_thousands_sep']; + + if (self::$_thousandsSeparator == '') { + // Default to . + self::$_thousandsSeparator = ','; + } + } + return self::$_thousandsSeparator; + } + + /** + * Set the thousands separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString() + * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF + * + * @param string $pValue Character for thousands separator + */ + public static function setThousandsSeparator($pValue = ',') + { + self::$_thousandsSeparator = $pValue; + } + + /** + * Get the currency code. If it has not yet been set explicitly, try to obtain the + * symbol information from locale. + * + * @return string + */ + public static function getCurrencyCode() + { + if (!isset(self::$_currencyCode)) { + $localeconv = localeconv(); + self::$_currencyCode = ($localeconv['currency_symbol'] != '') + ? $localeconv['currency_symbol'] : $localeconv['int_curr_symbol']; + + if (self::$_currencyCode == '') { + // Default to $ + self::$_currencyCode = '$'; + } + } + return self::$_currencyCode; + } + + /** + * Set the currency code. Only used by PHPExcel_Style_NumberFormat::toFormattedString() + * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF + * + * @param string $pValue Character for currency code + */ + public static function setCurrencyCode($pValue = '$') + { + self::$_currencyCode = $pValue; + } + + /** + * Convert SYLK encoded string to UTF-8 + * + * @param string $pValue + * @return string UTF-8 encoded string + */ + public static function SYLKtoUTF8($pValue = '') + { + // If there is no escape character in the string there is nothing to do + if (strpos($pValue, '') === false) { + return $pValue; + } + + foreach (self::$_SYLKCharacters as $k => $v) { + $pValue = str_replace($k, $v, $pValue); + } + + return $pValue; + } + + /** + * Retrieve any leading numeric part of a string, or return the full string if no leading numeric + * (handles basic integer or float, but not exponent or non decimal) + * + * @param string $value + * @return mixed string or only the leading numeric part of the string + */ + public static function testStringAsNumeric($value) + { + if (is_numeric($value)) + return $value; + $v = floatval($value); + return (is_numeric(substr($value,0,strlen($v)))) ? $v : $value; + } +} diff --git a/admin/helpers/PHPExcel/Shared/TimeZone.php b/admin/helpers/PHPExcel/Shared/TimeZone.php new file mode 100644 index 00000000..1792a295 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/TimeZone.php @@ -0,0 +1,140 @@ +<?php + +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Shared_TimeZone + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_TimeZone +{ + /* + * Default Timezone used for date/time conversions + * + * @private + * @var string + */ + protected static $_timezone = 'UTC'; + + /** + * Validate a Timezone name + * + * @param string $timezone Time zone (e.g. 'Europe/London') + * @return boolean Success or failure + */ + public static function _validateTimeZone($timezone) { + if (in_array($timezone, DateTimeZone::listIdentifiers())) { + return TRUE; + } + return FALSE; + } + + /** + * Set the Default Timezone used for date/time conversions + * + * @param string $timezone Time zone (e.g. 'Europe/London') + * @return boolean Success or failure + */ + public static function setTimeZone($timezone) { + if (self::_validateTimezone($timezone)) { + self::$_timezone = $timezone; + return TRUE; + } + return FALSE; + } // function setTimezone() + + + /** + * Return the Default Timezone used for date/time conversions + * + * @return string Timezone (e.g. 'Europe/London') + */ + public static function getTimeZone() { + return self::$_timezone; + } // function getTimezone() + + + /** + * Return the Timezone transition for the specified timezone and timestamp + * + * @param DateTimeZone $objTimezone The timezone for finding the transitions + * @param integer $timestamp PHP date/time value for finding the current transition + * @return array The current transition details + */ + private static function _getTimezoneTransitions($objTimezone, $timestamp) { + $allTransitions = $objTimezone->getTransitions(); + $transitions = array(); + foreach($allTransitions as $key => $transition) { + if ($transition['ts'] > $timestamp) { + $transitions[] = ($key > 0) ? $allTransitions[$key - 1] : $transition; + break; + } + if (empty($transitions)) { + $transitions[] = end($allTransitions); + } + } + + return $transitions; + } + + /** + * Return the Timezone offset used for date/time conversions to/from UST + * This requires both the timezone and the calculated date/time to allow for local DST + * + * @param string $timezone The timezone for finding the adjustment to UST + * @param integer $timestamp PHP date/time value + * @return integer Number of seconds for timezone adjustment + * @throws PHPExcel_Exception + */ + public static function getTimeZoneAdjustment($timezone, $timestamp) { + if ($timezone !== NULL) { + if (!self::_validateTimezone($timezone)) { + throw new PHPExcel_Exception("Invalid timezone " . $timezone); + } + } else { + $timezone = self::$_timezone; + } + + if ($timezone == 'UST') { + return 0; + } + + $objTimezone = new DateTimeZone($timezone); + if (version_compare(PHP_VERSION, '5.3.0') >= 0) { + $transitions = $objTimezone->getTransitions($timestamp,$timestamp); + } else { + $transitions = self::_getTimezoneTransitions($objTimezone, $timestamp); + } + + return (count($transitions) > 0) ? $transitions[0]['offset'] : 0; + } + +} diff --git a/admin/helpers/PHPExcel/Shared/XMLWriter.php b/admin/helpers/PHPExcel/Shared/XMLWriter.php new file mode 100644 index 00000000..beca51fc --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/XMLWriter.php @@ -0,0 +1,127 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +if (!defined('DATE_W3C')) { + define('DATE_W3C', 'Y-m-d\TH:i:sP'); +} + +if (!defined('DEBUGMODE_ENABLED')) { + define('DEBUGMODE_ENABLED', false); +} + + +/** + * PHPExcel_Shared_XMLWriter + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_XMLWriter extends XMLWriter { + /** Temporary storage method */ + const STORAGE_MEMORY = 1; + const STORAGE_DISK = 2; + + /** + * Temporary filename + * + * @var string + */ + private $_tempFileName = ''; + + /** + * Create a new PHPExcel_Shared_XMLWriter instance + * + * @param int $pTemporaryStorage Temporary storage location + * @param string $pTemporaryStorageFolder Temporary storage folder + */ + public function __construct($pTemporaryStorage = self::STORAGE_MEMORY, $pTemporaryStorageFolder = NULL) { + // Open temporary storage + if ($pTemporaryStorage == self::STORAGE_MEMORY) { + $this->openMemory(); + } else { + // Create temporary filename + if ($pTemporaryStorageFolder === NULL) + $pTemporaryStorageFolder = PHPExcel_Shared_File::sys_get_temp_dir(); + $this->_tempFileName = @tempnam($pTemporaryStorageFolder, 'xml'); + + // Open storage + if ($this->openUri($this->_tempFileName) === false) { + // Fallback to memory... + $this->openMemory(); + } + } + + // Set default values + if (DEBUGMODE_ENABLED) { + $this->setIndent(true); + } + } + + /** + * Destructor + */ + public function __destruct() { + // Unlink temporary files + if ($this->_tempFileName != '') { + @unlink($this->_tempFileName); + } + } + + /** + * Get written data + * + * @return $data + */ + public function getData() { + if ($this->_tempFileName == '') { + return $this->outputMemory(true); + } else { + $this->flush(); + return file_get_contents($this->_tempFileName); + } + } + + /** + * Fallback method for writeRaw, introduced in PHP 5.2 + * + * @param string $text + * @return string + */ + public function writeRawData($text) + { + if (is_array($text)) { + $text = implode("\n",$text); + } + + if (method_exists($this, 'writeRaw')) { + return $this->writeRaw(htmlspecialchars($text)); + } + + return $this->text($text); + } +} diff --git a/admin/helpers/PHPExcel/Shared/ZipArchive.php b/admin/helpers/PHPExcel/Shared/ZipArchive.php new file mode 100644 index 00000000..9a801a84 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/ZipArchive.php @@ -0,0 +1,175 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_ZipArchive + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +if (!defined('PCLZIP_TEMPORARY_DIR')) { + define('PCLZIP_TEMPORARY_DIR', PHPExcel_Shared_File::sys_get_temp_dir() . DIRECTORY_SEPARATOR); +} +require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/PCLZip/pclzip.lib.php'; + + +/** + * PHPExcel_Shared_ZipArchive + * + * @category PHPExcel + * @package PHPExcel_Shared_ZipArchive + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_ZipArchive +{ + + /** constants */ + const OVERWRITE = 'OVERWRITE'; + const CREATE = 'CREATE'; + + + /** + * Temporary storage directory + * + * @var string + */ + private $_tempDir; + + /** + * Zip Archive Stream Handle + * + * @var string + */ + private $_zip; + + + /** + * Open a new zip archive + * + * @param string $fileName Filename for the zip archive + * @return boolean + */ + public function open($fileName) + { + $this->_tempDir = PHPExcel_Shared_File::sys_get_temp_dir(); + + $this->_zip = new PclZip($fileName); + + return true; + } + + + /** + * Close this zip archive + * + */ + public function close() + { + } + + + /** + * Add a new file to the zip archive from a string of raw data. + * + * @param string $localname Directory/Name of the file to add to the zip archive + * @param string $contents String of data to add to the zip archive + */ + public function addFromString($localname, $contents) + { + $filenameParts = pathinfo($localname); + + $handle = fopen($this->_tempDir.'/'.$filenameParts["basename"], "wb"); + fwrite($handle, $contents); + fclose($handle); + + $res = $this->_zip->add($this->_tempDir.'/'.$filenameParts["basename"], + PCLZIP_OPT_REMOVE_PATH, $this->_tempDir, + PCLZIP_OPT_ADD_PATH, $filenameParts["dirname"] + ); + if ($res == 0) { + throw new PHPExcel_Writer_Exception("Error zipping files : " . $this->_zip->errorInfo(true)); + } + + unlink($this->_tempDir.'/'.$filenameParts["basename"]); + } + + /** + * Find if given fileName exist in archive (Emulate ZipArchive locateName()) + * + * @param string $fileName Filename for the file in zip archive + * @return boolean + */ + public function locateName($fileName) + { + $list = $this->_zip->listContent(); + $listCount = count($list); + $list_index = -1; + for ($i = 0; $i < $listCount; ++$i) { + if (strtolower($list[$i]["filename"]) == strtolower($fileName) || + strtolower($list[$i]["stored_filename"]) == strtolower($fileName)) { + $list_index = $i; + break; + } + } + return ($list_index > -1); + } + + /** + * Extract file from archive by given fileName (Emulate ZipArchive getFromName()) + * + * @param string $fileName Filename for the file in zip archive + * @return string $contents File string contents + */ + public function getFromName($fileName) + { + $list = $this->_zip->listContent(); + $listCount = count($list); + $list_index = -1; + for ($i = 0; $i < $listCount; ++$i) { + if (strtolower($list[$i]["filename"]) == strtolower($fileName) || + strtolower($list[$i]["stored_filename"]) == strtolower($fileName)) { + $list_index = $i; + break; + } + } + + $extracted = ""; + if ($list_index != -1) { + $extracted = $this->_zip->extractByIndex($list_index, PCLZIP_OPT_EXTRACT_AS_STRING); + } else { + $filename = substr($fileName, 1); + $list_index = -1; + for ($i = 0; $i < $listCount; ++$i) { + if (strtolower($list[$i]["filename"]) == strtolower($fileName) || + strtolower($list[$i]["stored_filename"]) == strtolower($fileName)) { + $list_index = $i; + break; + } + } + $extracted = $this->_zip->extractByIndex($list_index, PCLZIP_OPT_EXTRACT_AS_STRING); + } + if ((is_array($extracted)) && ($extracted != 0)) { + $contents = $extracted[0]["content"]; + } + + return $contents; + } +} diff --git a/admin/helpers/PHPExcel/Shared/ZipStreamWrapper.php b/admin/helpers/PHPExcel/Shared/ZipStreamWrapper.php new file mode 100644 index 00000000..6e63d3ce --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/ZipStreamWrapper.php @@ -0,0 +1,201 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Shared_ZipStreamWrapper + * + * @category PHPExcel + * @package PHPExcel_Shared + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Shared_ZipStreamWrapper { + /** + * Internal ZipAcrhive + * + * @var ZipAcrhive + */ + private $_archive; + + /** + * Filename in ZipAcrhive + * + * @var string + */ + private $_fileNameInArchive = ''; + + /** + * Position in file + * + * @var int + */ + private $_position = 0; + + /** + * Data + * + * @var mixed + */ + private $_data = ''; + + /** + * Register wrapper + */ + public static function register() { + @stream_wrapper_unregister("zip"); + @stream_wrapper_register("zip", __CLASS__); + } + + /** + * Implements support for fopen(). + * + * @param string $path resource name including scheme, e.g. + * @param string $mode only "r" is supported + * @param int $options mask of STREAM_REPORT_ERRORS and STREAM_USE_PATH + * @param string &$openedPath absolute path of the opened stream (out parameter) + * @return bool true on success + */ + public function stream_open($path, $mode, $options, &$opened_path) { + // Check for mode + if ($mode{0} != 'r') { + throw new PHPExcel_Reader_Exception('Mode ' . $mode . ' is not supported. Only read mode is supported.'); + } + + $pos = strrpos($path, '#'); + $url['host'] = substr($path, 6, $pos - 6); // 6: strlen('zip://') + $url['fragment'] = substr($path, $pos + 1); + + // Open archive + $this->_archive = new ZipArchive(); + $this->_archive->open($url['host']); + + $this->_fileNameInArchive = $url['fragment']; + $this->_position = 0; + $this->_data = $this->_archive->getFromName( $this->_fileNameInArchive ); + + return true; + } + + /** + * Implements support for fstat(). + * + * @return boolean + */ + public function statName() { + return $this->_fileNameInArchive; + } + + /** + * Implements support for fstat(). + * + * @return boolean + */ + public function url_stat() { + return $this->statName( $this->_fileNameInArchive ); + } + + /** + * Implements support for fstat(). + * + * @return boolean + */ + public function stream_stat() { + return $this->_archive->statName( $this->_fileNameInArchive ); + } + + /** + * Implements support for fread(), fgets() etc. + * + * @param int $count maximum number of bytes to read + * @return string + */ + function stream_read($count) { + $ret = substr($this->_data, $this->_position, $count); + $this->_position += strlen($ret); + return $ret; + } + + /** + * Returns the position of the file pointer, i.e. its offset into the file + * stream. Implements support for ftell(). + * + * @return int + */ + public function stream_tell() { + return $this->_position; + } + + /** + * EOF stream + * + * @return bool + */ + public function stream_eof() { + return $this->_position >= strlen($this->_data); + } + + /** + * Seek stream + * + * @param int $offset byte offset + * @param int $whence SEEK_SET, SEEK_CUR or SEEK_END + * @return bool + */ + public function stream_seek($offset, $whence) { + switch ($whence) { + case SEEK_SET: + if ($offset < strlen($this->_data) && $offset >= 0) { + $this->_position = $offset; + return true; + } else { + return false; + } + break; + + case SEEK_CUR: + if ($offset >= 0) { + $this->_position += $offset; + return true; + } else { + return false; + } + break; + + case SEEK_END: + if (strlen($this->_data) + $offset >= 0) { + $this->_position = strlen($this->_data) + $offset; + return true; + } else { + return false; + } + break; + + default: + return false; + } + } +} diff --git a/admin/helpers/PHPExcel/Shared/index.html b/admin/helpers/PHPExcel/Shared/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/trend/bestFitClass.php b/admin/helpers/PHPExcel/Shared/trend/bestFitClass.php new file mode 100644 index 00000000..9ae8b006 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/trend/bestFitClass.php @@ -0,0 +1,432 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_Trend + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Best_Fit + * + * @category PHPExcel + * @package PHPExcel_Shared_Trend + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Best_Fit +{ + /** + * Indicator flag for a calculation error + * + * @var boolean + **/ + protected $_error = False; + + /** + * Algorithm type to use for best-fit + * + * @var string + **/ + protected $_bestFitType = 'undetermined'; + + /** + * Number of entries in the sets of x- and y-value arrays + * + * @var int + **/ + protected $_valueCount = 0; + + /** + * X-value dataseries of values + * + * @var float[] + **/ + protected $_xValues = array(); + + /** + * Y-value dataseries of values + * + * @var float[] + **/ + protected $_yValues = array(); + + /** + * Flag indicating whether values should be adjusted to Y=0 + * + * @var boolean + **/ + protected $_adjustToZero = False; + + /** + * Y-value series of best-fit values + * + * @var float[] + **/ + protected $_yBestFitValues = array(); + + protected $_goodnessOfFit = 1; + + protected $_stdevOfResiduals = 0; + + protected $_covariance = 0; + + protected $_correlation = 0; + + protected $_SSRegression = 0; + + protected $_SSResiduals = 0; + + protected $_DFResiduals = 0; + + protected $_F = 0; + + protected $_slope = 0; + + protected $_slopeSE = 0; + + protected $_intersect = 0; + + protected $_intersectSE = 0; + + protected $_Xoffset = 0; + + protected $_Yoffset = 0; + + + public function getError() { + return $this->_error; + } // function getBestFitType() + + + public function getBestFitType() { + return $this->_bestFitType; + } // function getBestFitType() + + + /** + * Return the Y-Value for a specified value of X + * + * @param float $xValue X-Value + * @return float Y-Value + */ + public function getValueOfYForX($xValue) { + return False; + } // function getValueOfYForX() + + + /** + * Return the X-Value for a specified value of Y + * + * @param float $yValue Y-Value + * @return float X-Value + */ + public function getValueOfXForY($yValue) { + return False; + } // function getValueOfXForY() + + + /** + * Return the original set of X-Values + * + * @return float[] X-Values + */ + public function getXValues() { + return $this->_xValues; + } // function getValueOfXForY() + + + /** + * Return the Equation of the best-fit line + * + * @param int $dp Number of places of decimal precision to display + * @return string + */ + public function getEquation($dp=0) { + return False; + } // function getEquation() + + + /** + * Return the Slope of the line + * + * @param int $dp Number of places of decimal precision to display + * @return string + */ + public function getSlope($dp=0) { + if ($dp != 0) { + return round($this->_slope,$dp); + } + return $this->_slope; + } // function getSlope() + + + /** + * Return the standard error of the Slope + * + * @param int $dp Number of places of decimal precision to display + * @return string + */ + public function getSlopeSE($dp=0) { + if ($dp != 0) { + return round($this->_slopeSE,$dp); + } + return $this->_slopeSE; + } // function getSlopeSE() + + + /** + * Return the Value of X where it intersects Y = 0 + * + * @param int $dp Number of places of decimal precision to display + * @return string + */ + public function getIntersect($dp=0) { + if ($dp != 0) { + return round($this->_intersect,$dp); + } + return $this->_intersect; + } // function getIntersect() + + + /** + * Return the standard error of the Intersect + * + * @param int $dp Number of places of decimal precision to display + * @return string + */ + public function getIntersectSE($dp=0) { + if ($dp != 0) { + return round($this->_intersectSE,$dp); + } + return $this->_intersectSE; + } // function getIntersectSE() + + + /** + * Return the goodness of fit for this regression + * + * @param int $dp Number of places of decimal precision to return + * @return float + */ + public function getGoodnessOfFit($dp=0) { + if ($dp != 0) { + return round($this->_goodnessOfFit,$dp); + } + return $this->_goodnessOfFit; + } // function getGoodnessOfFit() + + + public function getGoodnessOfFitPercent($dp=0) { + if ($dp != 0) { + return round($this->_goodnessOfFit * 100,$dp); + } + return $this->_goodnessOfFit * 100; + } // function getGoodnessOfFitPercent() + + + /** + * Return the standard deviation of the residuals for this regression + * + * @param int $dp Number of places of decimal precision to return + * @return float + */ + public function getStdevOfResiduals($dp=0) { + if ($dp != 0) { + return round($this->_stdevOfResiduals,$dp); + } + return $this->_stdevOfResiduals; + } // function getStdevOfResiduals() + + + public function getSSRegression($dp=0) { + if ($dp != 0) { + return round($this->_SSRegression,$dp); + } + return $this->_SSRegression; + } // function getSSRegression() + + + public function getSSResiduals($dp=0) { + if ($dp != 0) { + return round($this->_SSResiduals,$dp); + } + return $this->_SSResiduals; + } // function getSSResiduals() + + + public function getDFResiduals($dp=0) { + if ($dp != 0) { + return round($this->_DFResiduals,$dp); + } + return $this->_DFResiduals; + } // function getDFResiduals() + + + public function getF($dp=0) { + if ($dp != 0) { + return round($this->_F,$dp); + } + return $this->_F; + } // function getF() + + + public function getCovariance($dp=0) { + if ($dp != 0) { + return round($this->_covariance,$dp); + } + return $this->_covariance; + } // function getCovariance() + + + public function getCorrelation($dp=0) { + if ($dp != 0) { + return round($this->_correlation,$dp); + } + return $this->_correlation; + } // function getCorrelation() + + + public function getYBestFitValues() { + return $this->_yBestFitValues; + } // function getYBestFitValues() + + + protected function _calculateGoodnessOfFit($sumX,$sumY,$sumX2,$sumY2,$sumXY,$meanX,$meanY, $const) { + $SSres = $SScov = $SScor = $SStot = $SSsex = 0.0; + foreach($this->_xValues as $xKey => $xValue) { + $bestFitY = $this->_yBestFitValues[$xKey] = $this->getValueOfYForX($xValue); + + $SSres += ($this->_yValues[$xKey] - $bestFitY) * ($this->_yValues[$xKey] - $bestFitY); + if ($const) { + $SStot += ($this->_yValues[$xKey] - $meanY) * ($this->_yValues[$xKey] - $meanY); + } else { + $SStot += $this->_yValues[$xKey] * $this->_yValues[$xKey]; + } + $SScov += ($this->_xValues[$xKey] - $meanX) * ($this->_yValues[$xKey] - $meanY); + if ($const) { + $SSsex += ($this->_xValues[$xKey] - $meanX) * ($this->_xValues[$xKey] - $meanX); + } else { + $SSsex += $this->_xValues[$xKey] * $this->_xValues[$xKey]; + } + } + + $this->_SSResiduals = $SSres; + $this->_DFResiduals = $this->_valueCount - 1 - $const; + + if ($this->_DFResiduals == 0.0) { + $this->_stdevOfResiduals = 0.0; + } else { + $this->_stdevOfResiduals = sqrt($SSres / $this->_DFResiduals); + } + if (($SStot == 0.0) || ($SSres == $SStot)) { + $this->_goodnessOfFit = 1; + } else { + $this->_goodnessOfFit = 1 - ($SSres / $SStot); + } + + $this->_SSRegression = $this->_goodnessOfFit * $SStot; + $this->_covariance = $SScov / $this->_valueCount; + $this->_correlation = ($this->_valueCount * $sumXY - $sumX * $sumY) / sqrt(($this->_valueCount * $sumX2 - pow($sumX,2)) * ($this->_valueCount * $sumY2 - pow($sumY,2))); + $this->_slopeSE = $this->_stdevOfResiduals / sqrt($SSsex); + $this->_intersectSE = $this->_stdevOfResiduals * sqrt(1 / ($this->_valueCount - ($sumX * $sumX) / $sumX2)); + if ($this->_SSResiduals != 0.0) { + if ($this->_DFResiduals == 0.0) { + $this->_F = 0.0; + } else { + $this->_F = $this->_SSRegression / ($this->_SSResiduals / $this->_DFResiduals); + } + } else { + if ($this->_DFResiduals == 0.0) { + $this->_F = 0.0; + } else { + $this->_F = $this->_SSRegression / $this->_DFResiduals; + } + } + } // function _calculateGoodnessOfFit() + + + protected function _leastSquareFit($yValues, $xValues, $const) { + // calculate sums + $x_sum = array_sum($xValues); + $y_sum = array_sum($yValues); + $meanX = $x_sum / $this->_valueCount; + $meanY = $y_sum / $this->_valueCount; + $mBase = $mDivisor = $xx_sum = $xy_sum = $yy_sum = 0.0; + for($i = 0; $i < $this->_valueCount; ++$i) { + $xy_sum += $xValues[$i] * $yValues[$i]; + $xx_sum += $xValues[$i] * $xValues[$i]; + $yy_sum += $yValues[$i] * $yValues[$i]; + + if ($const) { + $mBase += ($xValues[$i] - $meanX) * ($yValues[$i] - $meanY); + $mDivisor += ($xValues[$i] - $meanX) * ($xValues[$i] - $meanX); + } else { + $mBase += $xValues[$i] * $yValues[$i]; + $mDivisor += $xValues[$i] * $xValues[$i]; + } + } + + // calculate slope +// $this->_slope = (($this->_valueCount * $xy_sum) - ($x_sum * $y_sum)) / (($this->_valueCount * $xx_sum) - ($x_sum * $x_sum)); + $this->_slope = $mBase / $mDivisor; + + // calculate intersect +// $this->_intersect = ($y_sum - ($this->_slope * $x_sum)) / $this->_valueCount; + if ($const) { + $this->_intersect = $meanY - ($this->_slope * $meanX); + } else { + $this->_intersect = 0; + } + + $this->_calculateGoodnessOfFit($x_sum,$y_sum,$xx_sum,$yy_sum,$xy_sum,$meanX,$meanY,$const); + } // function _leastSquareFit() + + + /** + * Define the regression + * + * @param float[] $yValues The set of Y-values for this regression + * @param float[] $xValues The set of X-values for this regression + * @param boolean $const + */ + function __construct($yValues, $xValues=array(), $const=True) { + // Calculate number of points + $nY = count($yValues); + $nX = count($xValues); + + // Define X Values if necessary + if ($nX == 0) { + $xValues = range(1,$nY); + $nX = $nY; + } elseif ($nY != $nX) { + // Ensure both arrays of points are the same size + $this->_error = True; + return False; + } + + $this->_valueCount = $nY; + $this->_xValues = $xValues; + $this->_yValues = $yValues; + } // function __construct() + +} // class bestFit diff --git a/admin/helpers/PHPExcel/Shared/trend/exponentialBestFitClass.php b/admin/helpers/PHPExcel/Shared/trend/exponentialBestFitClass.php new file mode 100644 index 00000000..b524b5fe --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/trend/exponentialBestFitClass.php @@ -0,0 +1,148 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_Trend + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +require_once(PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/bestFitClass.php'); + + +/** + * PHPExcel_Exponential_Best_Fit + * + * @category PHPExcel + * @package PHPExcel_Shared_Trend + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Exponential_Best_Fit extends PHPExcel_Best_Fit +{ + /** + * Algorithm type to use for best-fit + * (Name of this trend class) + * + * @var string + **/ + protected $_bestFitType = 'exponential'; + + + /** + * Return the Y-Value for a specified value of X + * + * @param float $xValue X-Value + * @return float Y-Value + **/ + public function getValueOfYForX($xValue) { + return $this->getIntersect() * pow($this->getSlope(),($xValue - $this->_Xoffset)); + } // function getValueOfYForX() + + + /** + * Return the X-Value for a specified value of Y + * + * @param float $yValue Y-Value + * @return float X-Value + **/ + public function getValueOfXForY($yValue) { + return log(($yValue + $this->_Yoffset) / $this->getIntersect()) / log($this->getSlope()); + } // function getValueOfXForY() + + + /** + * Return the Equation of the best-fit line + * + * @param int $dp Number of places of decimal precision to display + * @return string + **/ + public function getEquation($dp=0) { + $slope = $this->getSlope($dp); + $intersect = $this->getIntersect($dp); + + return 'Y = '.$intersect.' * '.$slope.'^X'; + } // function getEquation() + + + /** + * Return the Slope of the line + * + * @param int $dp Number of places of decimal precision to display + * @return string + **/ + public function getSlope($dp=0) { + if ($dp != 0) { + return round(exp($this->_slope),$dp); + } + return exp($this->_slope); + } // function getSlope() + + + /** + * Return the Value of X where it intersects Y = 0 + * + * @param int $dp Number of places of decimal precision to display + * @return string + **/ + public function getIntersect($dp=0) { + if ($dp != 0) { + return round(exp($this->_intersect),$dp); + } + return exp($this->_intersect); + } // function getIntersect() + + + /** + * Execute the regression and calculate the goodness of fit for a set of X and Y data values + * + * @param float[] $yValues The set of Y-values for this regression + * @param float[] $xValues The set of X-values for this regression + * @param boolean $const + */ + private function _exponential_regression($yValues, $xValues, $const) { + foreach($yValues as &$value) { + if ($value < 0.0) { + $value = 0 - log(abs($value)); + } elseif ($value > 0.0) { + $value = log($value); + } + } + unset($value); + + $this->_leastSquareFit($yValues, $xValues, $const); + } // function _exponential_regression() + + + /** + * Define the regression and calculate the goodness of fit for a set of X and Y data values + * + * @param float[] $yValues The set of Y-values for this regression + * @param float[] $xValues The set of X-values for this regression + * @param boolean $const + */ + function __construct($yValues, $xValues=array(), $const=True) { + if (parent::__construct($yValues, $xValues) !== False) { + $this->_exponential_regression($yValues, $xValues, $const); + } + } // function __construct() + +} // class exponentialBestFit \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/trend/index.html b/admin/helpers/PHPExcel/Shared/trend/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/trend/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/trend/linearBestFitClass.php b/admin/helpers/PHPExcel/Shared/trend/linearBestFitClass.php new file mode 100644 index 00000000..7d811aa5 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/trend/linearBestFitClass.php @@ -0,0 +1,111 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_Trend + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +require_once(PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/bestFitClass.php'); + + +/** + * PHPExcel_Linear_Best_Fit + * + * @category PHPExcel + * @package PHPExcel_Shared_Trend + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Linear_Best_Fit extends PHPExcel_Best_Fit +{ + /** + * Algorithm type to use for best-fit + * (Name of this trend class) + * + * @var string + **/ + protected $_bestFitType = 'linear'; + + + /** + * Return the Y-Value for a specified value of X + * + * @param float $xValue X-Value + * @return float Y-Value + **/ + public function getValueOfYForX($xValue) { + return $this->getIntersect() + $this->getSlope() * $xValue; + } // function getValueOfYForX() + + + /** + * Return the X-Value for a specified value of Y + * + * @param float $yValue Y-Value + * @return float X-Value + **/ + public function getValueOfXForY($yValue) { + return ($yValue - $this->getIntersect()) / $this->getSlope(); + } // function getValueOfXForY() + + + /** + * Return the Equation of the best-fit line + * + * @param int $dp Number of places of decimal precision to display + * @return string + **/ + public function getEquation($dp=0) { + $slope = $this->getSlope($dp); + $intersect = $this->getIntersect($dp); + + return 'Y = '.$intersect.' + '.$slope.' * X'; + } // function getEquation() + + + /** + * Execute the regression and calculate the goodness of fit for a set of X and Y data values + * + * @param float[] $yValues The set of Y-values for this regression + * @param float[] $xValues The set of X-values for this regression + * @param boolean $const + */ + private function _linear_regression($yValues, $xValues, $const) { + $this->_leastSquareFit($yValues, $xValues,$const); + } // function _linear_regression() + + + /** + * Define the regression and calculate the goodness of fit for a set of X and Y data values + * + * @param float[] $yValues The set of Y-values for this regression + * @param float[] $xValues The set of X-values for this regression + * @param boolean $const + */ + function __construct($yValues, $xValues=array(), $const=True) { + if (parent::__construct($yValues, $xValues) !== False) { + $this->_linear_regression($yValues, $xValues, $const); + } + } // function __construct() + +} // class linearBestFit \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/trend/logarithmicBestFitClass.php b/admin/helpers/PHPExcel/Shared/trend/logarithmicBestFitClass.php new file mode 100644 index 00000000..b43cd5ed --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/trend/logarithmicBestFitClass.php @@ -0,0 +1,120 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_Trend + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +require_once(PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/bestFitClass.php'); + + +/** + * PHPExcel_Logarithmic_Best_Fit + * + * @category PHPExcel + * @package PHPExcel_Shared_Trend + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Logarithmic_Best_Fit extends PHPExcel_Best_Fit +{ + /** + * Algorithm type to use for best-fit + * (Name of this trend class) + * + * @var string + **/ + protected $_bestFitType = 'logarithmic'; + + + /** + * Return the Y-Value for a specified value of X + * + * @param float $xValue X-Value + * @return float Y-Value + **/ + public function getValueOfYForX($xValue) { + return $this->getIntersect() + $this->getSlope() * log($xValue - $this->_Xoffset); + } // function getValueOfYForX() + + + /** + * Return the X-Value for a specified value of Y + * + * @param float $yValue Y-Value + * @return float X-Value + **/ + public function getValueOfXForY($yValue) { + return exp(($yValue - $this->getIntersect()) / $this->getSlope()); + } // function getValueOfXForY() + + + /** + * Return the Equation of the best-fit line + * + * @param int $dp Number of places of decimal precision to display + * @return string + **/ + public function getEquation($dp=0) { + $slope = $this->getSlope($dp); + $intersect = $this->getIntersect($dp); + + return 'Y = '.$intersect.' + '.$slope.' * log(X)'; + } // function getEquation() + + + /** + * Execute the regression and calculate the goodness of fit for a set of X and Y data values + * + * @param float[] $yValues The set of Y-values for this regression + * @param float[] $xValues The set of X-values for this regression + * @param boolean $const + */ + private function _logarithmic_regression($yValues, $xValues, $const) { + foreach($xValues as &$value) { + if ($value < 0.0) { + $value = 0 - log(abs($value)); + } elseif ($value > 0.0) { + $value = log($value); + } + } + unset($value); + + $this->_leastSquareFit($yValues, $xValues, $const); + } // function _logarithmic_regression() + + + /** + * Define the regression and calculate the goodness of fit for a set of X and Y data values + * + * @param float[] $yValues The set of Y-values for this regression + * @param float[] $xValues The set of X-values for this regression + * @param boolean $const + */ + function __construct($yValues, $xValues=array(), $const=True) { + if (parent::__construct($yValues, $xValues) !== False) { + $this->_logarithmic_regression($yValues, $xValues, $const); + } + } // function __construct() + +} // class logarithmicBestFit \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/trend/polynomialBestFitClass.php b/admin/helpers/PHPExcel/Shared/trend/polynomialBestFitClass.php new file mode 100644 index 00000000..3d329eb7 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/trend/polynomialBestFitClass.php @@ -0,0 +1,224 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_Trend + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/bestFitClass.php'; +require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/JAMA/Matrix.php'; + + +/** + * PHPExcel_Polynomial_Best_Fit + * + * @category PHPExcel + * @package PHPExcel_Shared_Trend + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Polynomial_Best_Fit extends PHPExcel_Best_Fit +{ + /** + * Algorithm type to use for best-fit + * (Name of this trend class) + * + * @var string + **/ + protected $_bestFitType = 'polynomial'; + + /** + * Polynomial order + * + * @protected + * @var int + **/ + protected $_order = 0; + + + /** + * Return the order of this polynomial + * + * @return int + **/ + public function getOrder() { + return $this->_order; + } // function getOrder() + + + /** + * Return the Y-Value for a specified value of X + * + * @param float $xValue X-Value + * @return float Y-Value + **/ + public function getValueOfYForX($xValue) { + $retVal = $this->getIntersect(); + $slope = $this->getSlope(); + foreach($slope as $key => $value) { + if ($value != 0.0) { + $retVal += $value * pow($xValue, $key + 1); + } + } + return $retVal; + } // function getValueOfYForX() + + + /** + * Return the X-Value for a specified value of Y + * + * @param float $yValue Y-Value + * @return float X-Value + **/ + public function getValueOfXForY($yValue) { + return ($yValue - $this->getIntersect()) / $this->getSlope(); + } // function getValueOfXForY() + + + /** + * Return the Equation of the best-fit line + * + * @param int $dp Number of places of decimal precision to display + * @return string + **/ + public function getEquation($dp=0) { + $slope = $this->getSlope($dp); + $intersect = $this->getIntersect($dp); + + $equation = 'Y = '.$intersect; + foreach($slope as $key => $value) { + if ($value != 0.0) { + $equation .= ' + '.$value.' * X'; + if ($key > 0) { + $equation .= '^'.($key + 1); + } + } + } + return $equation; + } // function getEquation() + + + /** + * Return the Slope of the line + * + * @param int $dp Number of places of decimal precision to display + * @return string + **/ + public function getSlope($dp=0) { + if ($dp != 0) { + $coefficients = array(); + foreach($this->_slope as $coefficient) { + $coefficients[] = round($coefficient,$dp); + } + return $coefficients; + } + return $this->_slope; + } // function getSlope() + + + public function getCoefficients($dp=0) { + return array_merge(array($this->getIntersect($dp)),$this->getSlope($dp)); + } // function getCoefficients() + + + /** + * Execute the regression and calculate the goodness of fit for a set of X and Y data values + * + * @param int $order Order of Polynomial for this regression + * @param float[] $yValues The set of Y-values for this regression + * @param float[] $xValues The set of X-values for this regression + * @param boolean $const + */ + private function _polynomial_regression($order, $yValues, $xValues, $const) { + // calculate sums + $x_sum = array_sum($xValues); + $y_sum = array_sum($yValues); + $xx_sum = $xy_sum = 0; + for($i = 0; $i < $this->_valueCount; ++$i) { + $xy_sum += $xValues[$i] * $yValues[$i]; + $xx_sum += $xValues[$i] * $xValues[$i]; + $yy_sum += $yValues[$i] * $yValues[$i]; + } + /* + * This routine uses logic from the PHP port of polyfit version 0.1 + * written by Michael Bommarito and Paul Meagher + * + * The function fits a polynomial function of order $order through + * a series of x-y data points using least squares. + * + */ + for ($i = 0; $i < $this->_valueCount; ++$i) { + for ($j = 0; $j <= $order; ++$j) { + $A[$i][$j] = pow($xValues[$i], $j); + } + } + for ($i=0; $i < $this->_valueCount; ++$i) { + $B[$i] = array($yValues[$i]); + } + $matrixA = new Matrix($A); + $matrixB = new Matrix($B); + $C = $matrixA->solve($matrixB); + + $coefficients = array(); + for($i = 0; $i < $C->m; ++$i) { + $r = $C->get($i, 0); + if (abs($r) <= pow(10, -9)) { + $r = 0; + } + $coefficients[] = $r; + } + + $this->_intersect = array_shift($coefficients); + $this->_slope = $coefficients; + + $this->_calculateGoodnessOfFit($x_sum,$y_sum,$xx_sum,$yy_sum,$xy_sum); + foreach($this->_xValues as $xKey => $xValue) { + $this->_yBestFitValues[$xKey] = $this->getValueOfYForX($xValue); + } + } // function _polynomial_regression() + + + /** + * Define the regression and calculate the goodness of fit for a set of X and Y data values + * + * @param int $order Order of Polynomial for this regression + * @param float[] $yValues The set of Y-values for this regression + * @param float[] $xValues The set of X-values for this regression + * @param boolean $const + */ + function __construct($order, $yValues, $xValues=array(), $const=True) { + if (parent::__construct($yValues, $xValues) !== False) { + if ($order < $this->_valueCount) { + $this->_bestFitType .= '_'.$order; + $this->_order = $order; + $this->_polynomial_regression($order, $yValues, $xValues, $const); + if (($this->getGoodnessOfFit() < 0.0) || ($this->getGoodnessOfFit() > 1.0)) { + $this->_error = True; + } + } else { + $this->_error = True; + } + } + } // function __construct() + +} // class polynomialBestFit \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/trend/powerBestFitClass.php b/admin/helpers/PHPExcel/Shared/trend/powerBestFitClass.php new file mode 100644 index 00000000..832669c9 --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/trend/powerBestFitClass.php @@ -0,0 +1,142 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_Trend + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/bestFitClass.php'; + + +/** + * PHPExcel_Power_Best_Fit + * + * @category PHPExcel + * @package PHPExcel_Shared_Trend + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Power_Best_Fit extends PHPExcel_Best_Fit +{ + /** + * Algorithm type to use for best-fit + * (Name of this trend class) + * + * @var string + **/ + protected $_bestFitType = 'power'; + + + /** + * Return the Y-Value for a specified value of X + * + * @param float $xValue X-Value + * @return float Y-Value + **/ + public function getValueOfYForX($xValue) { + return $this->getIntersect() * pow(($xValue - $this->_Xoffset),$this->getSlope()); + } // function getValueOfYForX() + + + /** + * Return the X-Value for a specified value of Y + * + * @param float $yValue Y-Value + * @return float X-Value + **/ + public function getValueOfXForY($yValue) { + return pow((($yValue + $this->_Yoffset) / $this->getIntersect()),(1 / $this->getSlope())); + } // function getValueOfXForY() + + + /** + * Return the Equation of the best-fit line + * + * @param int $dp Number of places of decimal precision to display + * @return string + **/ + public function getEquation($dp=0) { + $slope = $this->getSlope($dp); + $intersect = $this->getIntersect($dp); + + return 'Y = '.$intersect.' * X^'.$slope; + } // function getEquation() + + + /** + * Return the Value of X where it intersects Y = 0 + * + * @param int $dp Number of places of decimal precision to display + * @return string + **/ + public function getIntersect($dp=0) { + if ($dp != 0) { + return round(exp($this->_intersect),$dp); + } + return exp($this->_intersect); + } // function getIntersect() + + + /** + * Execute the regression and calculate the goodness of fit for a set of X and Y data values + * + * @param float[] $yValues The set of Y-values for this regression + * @param float[] $xValues The set of X-values for this regression + * @param boolean $const + */ + private function _power_regression($yValues, $xValues, $const) { + foreach($xValues as &$value) { + if ($value < 0.0) { + $value = 0 - log(abs($value)); + } elseif ($value > 0.0) { + $value = log($value); + } + } + unset($value); + foreach($yValues as &$value) { + if ($value < 0.0) { + $value = 0 - log(abs($value)); + } elseif ($value > 0.0) { + $value = log($value); + } + } + unset($value); + + $this->_leastSquareFit($yValues, $xValues, $const); + } // function _power_regression() + + + /** + * Define the regression and calculate the goodness of fit for a set of X and Y data values + * + * @param float[] $yValues The set of Y-values for this regression + * @param float[] $xValues The set of X-values for this regression + * @param boolean $const + */ + function __construct($yValues, $xValues=array(), $const=True) { + if (parent::__construct($yValues, $xValues) !== False) { + $this->_power_regression($yValues, $xValues, $const); + } + } // function __construct() + +} // class powerBestFit \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Shared/trend/trendClass.php b/admin/helpers/PHPExcel/Shared/trend/trendClass.php new file mode 100644 index 00000000..25d7eb1d --- /dev/null +++ b/admin/helpers/PHPExcel/Shared/trend/trendClass.php @@ -0,0 +1,156 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Shared_Trend + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/linearBestFitClass.php'; +require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/logarithmicBestFitClass.php'; +require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/exponentialBestFitClass.php'; +require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/powerBestFitClass.php'; +require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/polynomialBestFitClass.php'; + + +/** + * PHPExcel_trendClass + * + * @category PHPExcel + * @package PHPExcel_Shared_Trend + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class trendClass +{ + const TREND_LINEAR = 'Linear'; + const TREND_LOGARITHMIC = 'Logarithmic'; + const TREND_EXPONENTIAL = 'Exponential'; + const TREND_POWER = 'Power'; + const TREND_POLYNOMIAL_2 = 'Polynomial_2'; + const TREND_POLYNOMIAL_3 = 'Polynomial_3'; + const TREND_POLYNOMIAL_4 = 'Polynomial_4'; + const TREND_POLYNOMIAL_5 = 'Polynomial_5'; + const TREND_POLYNOMIAL_6 = 'Polynomial_6'; + const TREND_BEST_FIT = 'Bestfit'; + const TREND_BEST_FIT_NO_POLY = 'Bestfit_no_Polynomials'; + + /** + * Names of the best-fit trend analysis methods + * + * @var string[] + **/ + private static $_trendTypes = array( self::TREND_LINEAR, + self::TREND_LOGARITHMIC, + self::TREND_EXPONENTIAL, + self::TREND_POWER + ); + /** + * Names of the best-fit trend polynomial orders + * + * @var string[] + **/ + private static $_trendTypePolyOrders = array( self::TREND_POLYNOMIAL_2, + self::TREND_POLYNOMIAL_3, + self::TREND_POLYNOMIAL_4, + self::TREND_POLYNOMIAL_5, + self::TREND_POLYNOMIAL_6 + ); + + /** + * Cached results for each method when trying to identify which provides the best fit + * + * @var PHPExcel_Best_Fit[] + **/ + private static $_trendCache = array(); + + + public static function calculate($trendType=self::TREND_BEST_FIT, $yValues, $xValues=array(), $const=True) { + // Calculate number of points in each dataset + $nY = count($yValues); + $nX = count($xValues); + + // Define X Values if necessary + if ($nX == 0) { + $xValues = range(1,$nY); + $nX = $nY; + } elseif ($nY != $nX) { + // Ensure both arrays of points are the same size + trigger_error("trend(): Number of elements in coordinate arrays do not match.", E_USER_ERROR); + } + + $key = md5($trendType.$const.serialize($yValues).serialize($xValues)); + // Determine which trend method has been requested + switch ($trendType) { + // Instantiate and return the class for the requested trend method + case self::TREND_LINEAR : + case self::TREND_LOGARITHMIC : + case self::TREND_EXPONENTIAL : + case self::TREND_POWER : + if (!isset(self::$_trendCache[$key])) { + $className = 'PHPExcel_'.$trendType.'_Best_Fit'; + self::$_trendCache[$key] = new $className($yValues,$xValues,$const); + } + return self::$_trendCache[$key]; + break; + case self::TREND_POLYNOMIAL_2 : + case self::TREND_POLYNOMIAL_3 : + case self::TREND_POLYNOMIAL_4 : + case self::TREND_POLYNOMIAL_5 : + case self::TREND_POLYNOMIAL_6 : + if (!isset(self::$_trendCache[$key])) { + $order = substr($trendType,-1); + self::$_trendCache[$key] = new PHPExcel_Polynomial_Best_Fit($order,$yValues,$xValues,$const); + } + return self::$_trendCache[$key]; + break; + case self::TREND_BEST_FIT : + case self::TREND_BEST_FIT_NO_POLY : + // If the request is to determine the best fit regression, then we test each trend line in turn + // Start by generating an instance of each available trend method + foreach(self::$_trendTypes as $trendMethod) { + $className = 'PHPExcel_'.$trendMethod.'BestFit'; + $bestFit[$trendMethod] = new $className($yValues,$xValues,$const); + $bestFitValue[$trendMethod] = $bestFit[$trendMethod]->getGoodnessOfFit(); + } + if ($trendType != self::TREND_BEST_FIT_NO_POLY) { + foreach(self::$_trendTypePolyOrders as $trendMethod) { + $order = substr($trendMethod,-1); + $bestFit[$trendMethod] = new PHPExcel_Polynomial_Best_Fit($order,$yValues,$xValues,$const); + if ($bestFit[$trendMethod]->getError()) { + unset($bestFit[$trendMethod]); + } else { + $bestFitValue[$trendMethod] = $bestFit[$trendMethod]->getGoodnessOfFit(); + } + } + } + // Determine which of our trend lines is the best fit, and then we return the instance of that trend class + arsort($bestFitValue); + $bestFitType = key($bestFitValue); + return $bestFit[$bestFitType]; + break; + default : + return false; + } + } // function calculate() + +} // class trendClass \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Style.php b/admin/helpers/PHPExcel/Style.php new file mode 100644 index 00000000..9c29320e --- /dev/null +++ b/admin/helpers/PHPExcel/Style.php @@ -0,0 +1,668 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Style + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Style extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable +{ + /** + * Font + * + * @var PHPExcel_Style_Font + */ + protected $_font; + + /** + * Fill + * + * @var PHPExcel_Style_Fill + */ + protected $_fill; + + /** + * Borders + * + * @var PHPExcel_Style_Borders + */ + protected $_borders; + + /** + * Alignment + * + * @var PHPExcel_Style_Alignment + */ + protected $_alignment; + + /** + * Number Format + * + * @var PHPExcel_Style_NumberFormat + */ + protected $_numberFormat; + + /** + * Conditional styles + * + * @var PHPExcel_Style_Conditional[] + */ + protected $_conditionalStyles; + + /** + * Protection + * + * @var PHPExcel_Style_Protection + */ + protected $_protection; + + /** + * Index of style in collection. Only used for real style. + * + * @var int + */ + protected $_index; + + /** + * Use Quote Prefix when displaying in cell editor. Only used for real style. + * + * @var boolean + */ + protected $_quotePrefix = false; + + /** + * Create a new PHPExcel_Style + * + * @param boolean $isSupervisor Flag indicating if this is a supervisor or not + * Leave this value at default unless you understand exactly what + * its ramifications are + * @param boolean $isConditional Flag indicating if this is a conditional style or not + * Leave this value at default unless you understand exactly what + * its ramifications are + */ + public function __construct($isSupervisor = false, $isConditional = false) + { + // Supervisor? + $this->_isSupervisor = $isSupervisor; + + // Initialise values + $this->_conditionalStyles = array(); + $this->_font = new PHPExcel_Style_Font($isSupervisor, $isConditional); + $this->_fill = new PHPExcel_Style_Fill($isSupervisor, $isConditional); + $this->_borders = new PHPExcel_Style_Borders($isSupervisor, $isConditional); + $this->_alignment = new PHPExcel_Style_Alignment($isSupervisor, $isConditional); + $this->_numberFormat = new PHPExcel_Style_NumberFormat($isSupervisor, $isConditional); + $this->_protection = new PHPExcel_Style_Protection($isSupervisor, $isConditional); + + // bind parent if we are a supervisor + if ($isSupervisor) { + $this->_font->bindParent($this); + $this->_fill->bindParent($this); + $this->_borders->bindParent($this); + $this->_alignment->bindParent($this); + $this->_numberFormat->bindParent($this); + $this->_protection->bindParent($this); + } + } + + /** + * Get the shared style component for the currently active cell in currently active sheet. + * Only used for style supervisor + * + * @return PHPExcel_Style + */ + public function getSharedComponent() + { + $activeSheet = $this->getActiveSheet(); + $selectedCell = $this->getActiveCell(); // e.g. 'A1' + + if ($activeSheet->cellExists($selectedCell)) { + $xfIndex = $activeSheet->getCell($selectedCell)->getXfIndex(); + } else { + $xfIndex = 0; + } + + return $this->_parent->getCellXfByIndex($xfIndex); + } + + /** + * Get parent. Only used for style supervisor + * + * @return PHPExcel + */ + public function getParent() + { + return $this->_parent; + } + + /** + * Build style array from subcomponents + * + * @param array $array + * @return array + */ + public function getStyleArray($array) + { + return array('quotePrefix' => $array); + } + + /** + * Apply styles from array + * + * <code> + * $objPHPExcel->getActiveSheet()->getStyle('B2')->applyFromArray( + * array( + * 'font' => array( + * 'name' => 'Arial', + * 'bold' => true, + * 'italic' => false, + * 'underline' => PHPExcel_Style_Font::UNDERLINE_DOUBLE, + * 'strike' => false, + * 'color' => array( + * 'rgb' => '808080' + * ) + * ), + * 'borders' => array( + * 'bottom' => array( + * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT, + * 'color' => array( + * 'rgb' => '808080' + * ) + * ), + * 'top' => array( + * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT, + * 'color' => array( + * 'rgb' => '808080' + * ) + * ) + * ), + * 'quotePrefix' => true + * ) + * ); + * </code> + * + * @param array $pStyles Array containing style information + * @param boolean $pAdvanced Advanced mode for setting borders. + * @throws PHPExcel_Exception + * @return PHPExcel_Style + */ + public function applyFromArray($pStyles = null, $pAdvanced = true) + { + if (is_array($pStyles)) { + if ($this->_isSupervisor) { + + $pRange = $this->getSelectedCells(); + + // Uppercase coordinate + $pRange = strtoupper($pRange); + + // Is it a cell range or a single cell? + if (strpos($pRange, ':') === false) { + $rangeA = $pRange; + $rangeB = $pRange; + } else { + list($rangeA, $rangeB) = explode(':', $pRange); + } + + // Calculate range outer borders + $rangeStart = PHPExcel_Cell::coordinateFromString($rangeA); + $rangeEnd = PHPExcel_Cell::coordinateFromString($rangeB); + + // Translate column into index + $rangeStart[0] = PHPExcel_Cell::columnIndexFromString($rangeStart[0]) - 1; + $rangeEnd[0] = PHPExcel_Cell::columnIndexFromString($rangeEnd[0]) - 1; + + // Make sure we can loop upwards on rows and columns + if ($rangeStart[0] > $rangeEnd[0] && $rangeStart[1] > $rangeEnd[1]) { + $tmp = $rangeStart; + $rangeStart = $rangeEnd; + $rangeEnd = $tmp; + } + + // ADVANCED MODE: + + if ($pAdvanced && isset($pStyles['borders'])) { + + // 'allborders' is a shorthand property for 'outline' and 'inside' and + // it applies to components that have not been set explicitly + if (isset($pStyles['borders']['allborders'])) { + foreach (array('outline', 'inside') as $component) { + if (!isset($pStyles['borders'][$component])) { + $pStyles['borders'][$component] = $pStyles['borders']['allborders']; + } + } + unset($pStyles['borders']['allborders']); // not needed any more + } + + // 'outline' is a shorthand property for 'top', 'right', 'bottom', 'left' + // it applies to components that have not been set explicitly + if (isset($pStyles['borders']['outline'])) { + foreach (array('top', 'right', 'bottom', 'left') as $component) { + if (!isset($pStyles['borders'][$component])) { + $pStyles['borders'][$component] = $pStyles['borders']['outline']; + } + } + unset($pStyles['borders']['outline']); // not needed any more + } + + // 'inside' is a shorthand property for 'vertical' and 'horizontal' + // it applies to components that have not been set explicitly + if (isset($pStyles['borders']['inside'])) { + foreach (array('vertical', 'horizontal') as $component) { + if (!isset($pStyles['borders'][$component])) { + $pStyles['borders'][$component] = $pStyles['borders']['inside']; + } + } + unset($pStyles['borders']['inside']); // not needed any more + } + + // width and height characteristics of selection, 1, 2, or 3 (for 3 or more) + $xMax = min($rangeEnd[0] - $rangeStart[0] + 1, 3); + $yMax = min($rangeEnd[1] - $rangeStart[1] + 1, 3); + + // loop through up to 3 x 3 = 9 regions + for ($x = 1; $x <= $xMax; ++$x) { + // start column index for region + $colStart = ($x == 3) ? + PHPExcel_Cell::stringFromColumnIndex($rangeEnd[0]) + : PHPExcel_Cell::stringFromColumnIndex($rangeStart[0] + $x - 1); + + // end column index for region + $colEnd = ($x == 1) ? + PHPExcel_Cell::stringFromColumnIndex($rangeStart[0]) + : PHPExcel_Cell::stringFromColumnIndex($rangeEnd[0] - $xMax + $x); + + for ($y = 1; $y <= $yMax; ++$y) { + + // which edges are touching the region + $edges = array(); + + // are we at left edge + if ($x == 1) { + $edges[] = 'left'; + } + + // are we at right edge + if ($x == $xMax) { + $edges[] = 'right'; + } + + // are we at top edge? + if ($y == 1) { + $edges[] = 'top'; + } + + // are we at bottom edge? + if ($y == $yMax) { + $edges[] = 'bottom'; + } + + // start row index for region + $rowStart = ($y == 3) ? + $rangeEnd[1] : $rangeStart[1] + $y - 1; + + // end row index for region + $rowEnd = ($y == 1) ? + $rangeStart[1] : $rangeEnd[1] - $yMax + $y; + + // build range for region + $range = $colStart . $rowStart . ':' . $colEnd . $rowEnd; + + // retrieve relevant style array for region + $regionStyles = $pStyles; + unset($regionStyles['borders']['inside']); + + // what are the inner edges of the region when looking at the selection + $innerEdges = array_diff( array('top', 'right', 'bottom', 'left'), $edges ); + + // inner edges that are not touching the region should take the 'inside' border properties if they have been set + foreach ($innerEdges as $innerEdge) { + switch ($innerEdge) { + case 'top': + case 'bottom': + // should pick up 'horizontal' border property if set + if (isset($pStyles['borders']['horizontal'])) { + $regionStyles['borders'][$innerEdge] = $pStyles['borders']['horizontal']; + } else { + unset($regionStyles['borders'][$innerEdge]); + } + break; + case 'left': + case 'right': + // should pick up 'vertical' border property if set + if (isset($pStyles['borders']['vertical'])) { + $regionStyles['borders'][$innerEdge] = $pStyles['borders']['vertical']; + } else { + unset($regionStyles['borders'][$innerEdge]); + } + break; + } + } + + // apply region style to region by calling applyFromArray() in simple mode + $this->getActiveSheet()->getStyle($range)->applyFromArray($regionStyles, false); + } + } + return $this; + } + + // SIMPLE MODE: + + // Selection type, inspect + if (preg_match('/^[A-Z]+1:[A-Z]+1048576$/', $pRange)) { + $selectionType = 'COLUMN'; + } else if (preg_match('/^A[0-9]+:XFD[0-9]+$/', $pRange)) { + $selectionType = 'ROW'; + } else { + $selectionType = 'CELL'; + } + + // First loop through columns, rows, or cells to find out which styles are affected by this operation + switch ($selectionType) { + case 'COLUMN': + $oldXfIndexes = array(); + for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) { + $oldXfIndexes[$this->getActiveSheet()->getColumnDimensionByColumn($col)->getXfIndex()] = true; + } + break; + + case 'ROW': + $oldXfIndexes = array(); + for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) { + if ($this->getActiveSheet()->getRowDimension($row)->getXfIndex() == null) { + $oldXfIndexes[0] = true; // row without explicit style should be formatted based on default style + } else { + $oldXfIndexes[$this->getActiveSheet()->getRowDimension($row)->getXfIndex()] = true; + } + } + break; + + case 'CELL': + $oldXfIndexes = array(); + for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) { + for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) { + $oldXfIndexes[$this->getActiveSheet()->getCellByColumnAndRow($col, $row)->getXfIndex()] = true; + } + } + break; + } + + // clone each of the affected styles, apply the style array, and add the new styles to the workbook + $workbook = $this->getActiveSheet()->getParent(); + foreach ($oldXfIndexes as $oldXfIndex => $dummy) { + $style = $workbook->getCellXfByIndex($oldXfIndex); + $newStyle = clone $style; + $newStyle->applyFromArray($pStyles); + + if ($existingStyle = $workbook->getCellXfByHashCode($newStyle->getHashCode())) { + // there is already such cell Xf in our collection + $newXfIndexes[$oldXfIndex] = $existingStyle->getIndex(); + } else { + // we don't have such a cell Xf, need to add + $workbook->addCellXf($newStyle); + $newXfIndexes[$oldXfIndex] = $newStyle->getIndex(); + } + } + + // Loop through columns, rows, or cells again and update the XF index + switch ($selectionType) { + case 'COLUMN': + for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) { + $columnDimension = $this->getActiveSheet()->getColumnDimensionByColumn($col); + $oldXfIndex = $columnDimension->getXfIndex(); + $columnDimension->setXfIndex($newXfIndexes[$oldXfIndex]); + } + break; + + case 'ROW': + for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) { + $rowDimension = $this->getActiveSheet()->getRowDimension($row); + $oldXfIndex = $rowDimension->getXfIndex() === null ? + 0 : $rowDimension->getXfIndex(); // row without explicit style should be formatted based on default style + $rowDimension->setXfIndex($newXfIndexes[$oldXfIndex]); + } + break; + + case 'CELL': + for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) { + for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) { + $cell = $this->getActiveSheet()->getCellByColumnAndRow($col, $row); + $oldXfIndex = $cell->getXfIndex(); + $cell->setXfIndex($newXfIndexes[$oldXfIndex]); + } + } + break; + } + + } else { + // not a supervisor, just apply the style array directly on style object + if (array_key_exists('fill', $pStyles)) { + $this->getFill()->applyFromArray($pStyles['fill']); + } + if (array_key_exists('font', $pStyles)) { + $this->getFont()->applyFromArray($pStyles['font']); + } + if (array_key_exists('borders', $pStyles)) { + $this->getBorders()->applyFromArray($pStyles['borders']); + } + if (array_key_exists('alignment', $pStyles)) { + $this->getAlignment()->applyFromArray($pStyles['alignment']); + } + if (array_key_exists('numberformat', $pStyles)) { + $this->getNumberFormat()->applyFromArray($pStyles['numberformat']); + } + if (array_key_exists('protection', $pStyles)) { + $this->getProtection()->applyFromArray($pStyles['protection']); + } + if (array_key_exists('quotePrefix', $pStyles)) { + $this->_quotePrefix = $pStyles['quotePrefix']; + } + } + } else { + throw new PHPExcel_Exception("Invalid style array passed."); + } + return $this; + } + + /** + * Get Fill + * + * @return PHPExcel_Style_Fill + */ + public function getFill() + { + return $this->_fill; + } + + /** + * Get Font + * + * @return PHPExcel_Style_Font + */ + public function getFont() + { + return $this->_font; + } + + /** + * Set font + * + * @param PHPExcel_Style_Font $font + * @return PHPExcel_Style + */ + public function setFont(PHPExcel_Style_Font $font) + { + $this->_font = $font; + return $this; + } + + /** + * Get Borders + * + * @return PHPExcel_Style_Borders + */ + public function getBorders() + { + return $this->_borders; + } + + /** + * Get Alignment + * + * @return PHPExcel_Style_Alignment + */ + public function getAlignment() + { + return $this->_alignment; + } + + /** + * Get Number Format + * + * @return PHPExcel_Style_NumberFormat + */ + public function getNumberFormat() + { + return $this->_numberFormat; + } + + /** + * Get Conditional Styles. Only used on supervisor. + * + * @return PHPExcel_Style_Conditional[] + */ + public function getConditionalStyles() + { + return $this->getActiveSheet()->getConditionalStyles($this->getActiveCell()); + } + + /** + * Set Conditional Styles. Only used on supervisor. + * + * @param PHPExcel_Style_Conditional[] $pValue Array of condtional styles + * @return PHPExcel_Style + */ + public function setConditionalStyles($pValue = null) + { + if (is_array($pValue)) { + $this->getActiveSheet()->setConditionalStyles($this->getSelectedCells(), $pValue); + } + return $this; + } + + /** + * Get Protection + * + * @return PHPExcel_Style_Protection + */ + public function getProtection() + { + return $this->_protection; + } + + /** + * Get quote prefix + * + * @return boolean + */ + public function getQuotePrefix() + { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getQuotePrefix(); + } + return $this->_quotePrefix; + } + + /** + * Set quote prefix + * + * @param boolean $pValue + */ + public function setQuotePrefix($pValue) + { + if ($pValue == '') { + $pValue = false; + } + if ($this->_isSupervisor) { + $styleArray = array('quotePrefix' => $pValue); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_quotePrefix = (boolean) $pValue; + } + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() + { + $hashConditionals = ''; + foreach ($this->_conditionalStyles as $conditional) { + $hashConditionals .= $conditional->getHashCode(); + } + + return md5( + $this->_fill->getHashCode() + . $this->_font->getHashCode() + . $this->_borders->getHashCode() + . $this->_alignment->getHashCode() + . $this->_numberFormat->getHashCode() + . $hashConditionals + . $this->_protection->getHashCode() + . ($this->_quotePrefix ? 't' : 'f') + . __CLASS__ + ); + } + + /** + * Get own index in style collection + * + * @return int + */ + public function getIndex() + { + return $this->_index; + } + + /** + * Set own index in style collection + * + * @param int $pValue + */ + public function setIndex($pValue) + { + $this->_index = $pValue; + } + +} diff --git a/admin/helpers/PHPExcel/Style/Alignment.php b/admin/helpers/PHPExcel/Style/Alignment.php new file mode 100644 index 00000000..00825deb --- /dev/null +++ b/admin/helpers/PHPExcel/Style/Alignment.php @@ -0,0 +1,459 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Style_Alignment + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable +{ + /* Horizontal alignment styles */ + const HORIZONTAL_GENERAL = 'general'; + const HORIZONTAL_LEFT = 'left'; + const HORIZONTAL_RIGHT = 'right'; + const HORIZONTAL_CENTER = 'center'; + const HORIZONTAL_CENTER_CONTINUOUS = 'centerContinuous'; + const HORIZONTAL_JUSTIFY = 'justify'; + const HORIZONTAL_FILL = 'fill'; + const HORIZONTAL_DISTRIBUTED = 'distributed'; // Excel2007 only + + /* Vertical alignment styles */ + const VERTICAL_BOTTOM = 'bottom'; + const VERTICAL_TOP = 'top'; + const VERTICAL_CENTER = 'center'; + const VERTICAL_JUSTIFY = 'justify'; + const VERTICAL_DISTRIBUTED = 'distributed'; // Excel2007 only + + /* Read order */ + const READORDER_CONTEXT = 0; + const READORDER_LTR = 1; + const READORDER_RTL = 2; + + /** + * Horizontal alignment + * + * @var string + */ + protected $_horizontal = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL; + + /** + * Vertical alignment + * + * @var string + */ + protected $_vertical = PHPExcel_Style_Alignment::VERTICAL_BOTTOM; + + /** + * Text rotation + * + * @var integer + */ + protected $_textRotation = 0; + + /** + * Wrap text + * + * @var boolean + */ + protected $_wrapText = FALSE; + + /** + * Shrink to fit + * + * @var boolean + */ + protected $_shrinkToFit = FALSE; + + /** + * Indent - only possible with horizontal alignment left and right + * + * @var integer + */ + protected $_indent = 0; + + /** + * Read order + * + * @var integer + */ + protected $_readorder = 0; + + /** + * Create a new PHPExcel_Style_Alignment + * + * @param boolean $isSupervisor Flag indicating if this is a supervisor or not + * Leave this value at default unless you understand exactly what + * its ramifications are + * @param boolean $isConditional Flag indicating if this is a conditional style or not + * Leave this value at default unless you understand exactly what + * its ramifications are + */ + public function __construct($isSupervisor = FALSE, $isConditional = FALSE) + { + // Supervisor? + parent::__construct($isSupervisor); + + if ($isConditional) { + $this->_horizontal = NULL; + $this->_vertical = NULL; + $this->_textRotation = NULL; + } + } + + /** + * Get the shared style component for the currently active cell in currently active sheet. + * Only used for style supervisor + * + * @return PHPExcel_Style_Alignment + */ + public function getSharedComponent() + { + return $this->_parent->getSharedComponent()->getAlignment(); + } + + /** + * Build style array from subcomponents + * + * @param array $array + * @return array + */ + public function getStyleArray($array) + { + return array('alignment' => $array); + } + + /** + * Apply styles from array + * + * <code> + * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray( + * array( + * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER, + * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER, + * 'rotation' => 0, + * 'wrap' => TRUE + * ) + * ); + * </code> + * + * @param array $pStyles Array containing style information + * @throws PHPExcel_Exception + * @return PHPExcel_Style_Alignment + */ + public function applyFromArray($pStyles = NULL) { + if (is_array($pStyles)) { + if ($this->_isSupervisor) { + $this->getActiveSheet()->getStyle($this->getSelectedCells()) + ->applyFromArray($this->getStyleArray($pStyles)); + } else { + if (isset($pStyles['horizontal'])) { + $this->setHorizontal($pStyles['horizontal']); + } + if (isset($pStyles['vertical'])) { + $this->setVertical($pStyles['vertical']); + } + if (isset($pStyles['rotation'])) { + $this->setTextRotation($pStyles['rotation']); + } + if (isset($pStyles['wrap'])) { + $this->setWrapText($pStyles['wrap']); + } + if (isset($pStyles['shrinkToFit'])) { + $this->setShrinkToFit($pStyles['shrinkToFit']); + } + if (isset($pStyles['indent'])) { + $this->setIndent($pStyles['indent']); + } + if (isset($pStyles['readorder'])) { + $this->setReadorder($pStyles['readorder']); + } + } + } else { + throw new PHPExcel_Exception("Invalid style array passed."); + } + return $this; + } + + /** + * Get Horizontal + * + * @return string + */ + public function getHorizontal() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getHorizontal(); + } + return $this->_horizontal; + } + + /** + * Set Horizontal + * + * @param string $pValue + * @return PHPExcel_Style_Alignment + */ + public function setHorizontal($pValue = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL) { + if ($pValue == '') { + $pValue = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL; + } + + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('horizontal' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } + else { + $this->_horizontal = $pValue; + } + return $this; + } + + /** + * Get Vertical + * + * @return string + */ + public function getVertical() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getVertical(); + } + return $this->_vertical; + } + + /** + * Set Vertical + * + * @param string $pValue + * @return PHPExcel_Style_Alignment + */ + public function setVertical($pValue = PHPExcel_Style_Alignment::VERTICAL_BOTTOM) { + if ($pValue == '') { + $pValue = PHPExcel_Style_Alignment::VERTICAL_BOTTOM; + } + + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('vertical' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_vertical = $pValue; + } + return $this; + } + + /** + * Get TextRotation + * + * @return int + */ + public function getTextRotation() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getTextRotation(); + } + return $this->_textRotation; + } + + /** + * Set TextRotation + * + * @param int $pValue + * @throws PHPExcel_Exception + * @return PHPExcel_Style_Alignment + */ + public function setTextRotation($pValue = 0) { + // Excel2007 value 255 => PHPExcel value -165 + if ($pValue == 255) { + $pValue = -165; + } + + // Set rotation + if ( ($pValue >= -90 && $pValue <= 90) || $pValue == -165 ) { + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('rotation' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_textRotation = $pValue; + } + } else { + throw new PHPExcel_Exception("Text rotation should be a value between -90 and 90."); + } + + return $this; + } + + /** + * Get Wrap Text + * + * @return boolean + */ + public function getWrapText() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getWrapText(); + } + return $this->_wrapText; + } + + /** + * Set Wrap Text + * + * @param boolean $pValue + * @return PHPExcel_Style_Alignment + */ + public function setWrapText($pValue = FALSE) { + if ($pValue == '') { + $pValue = FALSE; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('wrap' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_wrapText = $pValue; + } + return $this; + } + + /** + * Get Shrink to fit + * + * @return boolean + */ + public function getShrinkToFit() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getShrinkToFit(); + } + return $this->_shrinkToFit; + } + + /** + * Set Shrink to fit + * + * @param boolean $pValue + * @return PHPExcel_Style_Alignment + */ + public function setShrinkToFit($pValue = FALSE) { + if ($pValue == '') { + $pValue = FALSE; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('shrinkToFit' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_shrinkToFit = $pValue; + } + return $this; + } + + /** + * Get indent + * + * @return int + */ + public function getIndent() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getIndent(); + } + return $this->_indent; + } + + /** + * Set indent + * + * @param int $pValue + * @return PHPExcel_Style_Alignment + */ + public function setIndent($pValue = 0) { + if ($pValue > 0) { + if ($this->getHorizontal() != self::HORIZONTAL_GENERAL && + $this->getHorizontal() != self::HORIZONTAL_LEFT && + $this->getHorizontal() != self::HORIZONTAL_RIGHT) { + $pValue = 0; // indent not supported + } + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('indent' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_indent = $pValue; + } + return $this; + } + + /** + * Get read order + * + * @return integer + */ + public function getReadorder() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getReadorder(); + } + return $this->_readorder; + } + + /** + * Set read order + * + * @param int $pValue + * @return PHPExcel_Style_Alignment + */ + public function setReadorder($pValue = 0) { + if ($pValue < 0 || $pValue > 2) { + $pValue = 0; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('readorder' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_readorder = $pValue; + } + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getHashCode(); + } + return md5( + $this->_horizontal + . $this->_vertical + . $this->_textRotation + . ($this->_wrapText ? 't' : 'f') + . ($this->_shrinkToFit ? 't' : 'f') + . $this->_indent + . $this->_readorder + . __CLASS__ + ); + } + +} diff --git a/admin/helpers/PHPExcel/Style/Border.php b/admin/helpers/PHPExcel/Style/Border.php new file mode 100644 index 00000000..ec737bf0 --- /dev/null +++ b/admin/helpers/PHPExcel/Style/Border.php @@ -0,0 +1,294 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Style_Border + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Style_Border extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable +{ + /* Border style */ + const BORDER_NONE = 'none'; + const BORDER_DASHDOT = 'dashDot'; + const BORDER_DASHDOTDOT = 'dashDotDot'; + const BORDER_DASHED = 'dashed'; + const BORDER_DOTTED = 'dotted'; + const BORDER_DOUBLE = 'double'; + const BORDER_HAIR = 'hair'; + const BORDER_MEDIUM = 'medium'; + const BORDER_MEDIUMDASHDOT = 'mediumDashDot'; + const BORDER_MEDIUMDASHDOTDOT = 'mediumDashDotDot'; + const BORDER_MEDIUMDASHED = 'mediumDashed'; + const BORDER_SLANTDASHDOT = 'slantDashDot'; + const BORDER_THICK = 'thick'; + const BORDER_THIN = 'thin'; + + /** + * Border style + * + * @var string + */ + protected $_borderStyle = PHPExcel_Style_Border::BORDER_NONE; + + /** + * Border color + * + * @var PHPExcel_Style_Color + */ + protected $_color; + + /** + * Parent property name + * + * @var string + */ + protected $_parentPropertyName; + + /** + * Create a new PHPExcel_Style_Border + * + * @param boolean $isSupervisor Flag indicating if this is a supervisor or not + * Leave this value at default unless you understand exactly what + * its ramifications are + * @param boolean $isConditional Flag indicating if this is a conditional style or not + * Leave this value at default unless you understand exactly what + * its ramifications are + */ + public function __construct($isSupervisor = FALSE, $isConditional = FALSE) + { + // Supervisor? + parent::__construct($isSupervisor); + + // Initialise values + $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor); + + // bind parent if we are a supervisor + if ($isSupervisor) { + $this->_color->bindParent($this, '_color'); + } + } + + /** + * Bind parent. Only used for supervisor + * + * @param PHPExcel_Style_Borders $parent + * @param string $parentPropertyName + * @return PHPExcel_Style_Border + */ + public function bindParent($parent, $parentPropertyName=NULL) + { + $this->_parent = $parent; + $this->_parentPropertyName = $parentPropertyName; + return $this; + } + + /** + * Get the shared style component for the currently active cell in currently active sheet. + * Only used for style supervisor + * + * @return PHPExcel_Style_Border + * @throws PHPExcel_Exception + */ + public function getSharedComponent() + { + switch ($this->_parentPropertyName) { + case '_allBorders': + case '_horizontal': + case '_inside': + case '_outline': + case '_vertical': + throw new PHPExcel_Exception('Cannot get shared component for a pseudo-border.'); + break; + case '_bottom': + return $this->_parent->getSharedComponent()->getBottom(); break; + case '_diagonal': + return $this->_parent->getSharedComponent()->getDiagonal(); break; + case '_left': + return $this->_parent->getSharedComponent()->getLeft(); break; + case '_right': + return $this->_parent->getSharedComponent()->getRight(); break; + case '_top': + return $this->_parent->getSharedComponent()->getTop(); break; + + } + } + + /** + * Build style array from subcomponents + * + * @param array $array + * @return array + */ + public function getStyleArray($array) + { + switch ($this->_parentPropertyName) { + case '_allBorders': + $key = 'allborders'; break; + case '_bottom': + $key = 'bottom'; break; + case '_diagonal': + $key = 'diagonal'; break; + case '_horizontal': + $key = 'horizontal'; break; + case '_inside': + $key = 'inside'; break; + case '_left': + $key = 'left'; break; + case '_outline': + $key = 'outline'; break; + case '_right': + $key = 'right'; break; + case '_top': + $key = 'top'; break; + case '_vertical': + $key = 'vertical'; break; + } + return $this->_parent->getStyleArray(array($key => $array)); + } + + /** + * Apply styles from array + * + * <code> + * $objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->getTop()->applyFromArray( + * array( + * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT, + * 'color' => array( + * 'rgb' => '808080' + * ) + * ) + * ); + * </code> + * + * @param array $pStyles Array containing style information + * @throws PHPExcel_Exception + * @return PHPExcel_Style_Border + */ + public function applyFromArray($pStyles = null) { + if (is_array($pStyles)) { + if ($this->_isSupervisor) { + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles)); + } else { + if (isset($pStyles['style'])) { + $this->setBorderStyle($pStyles['style']); + } + if (isset($pStyles['color'])) { + $this->getColor()->applyFromArray($pStyles['color']); + } + } + } else { + throw new PHPExcel_Exception("Invalid style array passed."); + } + return $this; + } + + /** + * Get Border style + * + * @return string + */ + public function getBorderStyle() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getBorderStyle(); + } + return $this->_borderStyle; + } + + /** + * Set Border style + * + * @param string|boolean $pValue + * When passing a boolean, FALSE equates PHPExcel_Style_Border::BORDER_NONE + * and TRUE to PHPExcel_Style_Border::BORDER_MEDIUM + * @return PHPExcel_Style_Border + */ + public function setBorderStyle($pValue = PHPExcel_Style_Border::BORDER_NONE) { + + if (empty($pValue)) { + $pValue = PHPExcel_Style_Border::BORDER_NONE; + } elseif(is_bool($pValue) && $pValue) { + $pValue = PHPExcel_Style_Border::BORDER_MEDIUM; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('style' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_borderStyle = $pValue; + } + return $this; + } + + /** + * Get Border Color + * + * @return PHPExcel_Style_Color + */ + public function getColor() { + return $this->_color; + } + + /** + * Set Border Color + * + * @param PHPExcel_Style_Color $pValue + * @throws PHPExcel_Exception + * @return PHPExcel_Style_Border + */ + public function setColor(PHPExcel_Style_Color $pValue = null) { + // make sure parameter is a real color and not a supervisor + $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue; + + if ($this->_isSupervisor) { + $styleArray = $this->getColor()->getStyleArray(array('argb' => $color->getARGB())); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_color = $color; + } + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getHashCode(); + } + return md5( + $this->_borderStyle + . $this->_color->getHashCode() + . __CLASS__ + ); + } + +} diff --git a/admin/helpers/PHPExcel/Style/Borders.php b/admin/helpers/PHPExcel/Style/Borders.php new file mode 100644 index 00000000..21dcfeee --- /dev/null +++ b/admin/helpers/PHPExcel/Style/Borders.php @@ -0,0 +1,424 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Style_Borders + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Style_Borders extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable +{ + /* Diagonal directions */ + const DIAGONAL_NONE = 0; + const DIAGONAL_UP = 1; + const DIAGONAL_DOWN = 2; + const DIAGONAL_BOTH = 3; + + /** + * Left + * + * @var PHPExcel_Style_Border + */ + protected $_left; + + /** + * Right + * + * @var PHPExcel_Style_Border + */ + protected $_right; + + /** + * Top + * + * @var PHPExcel_Style_Border + */ + protected $_top; + + /** + * Bottom + * + * @var PHPExcel_Style_Border + */ + protected $_bottom; + + /** + * Diagonal + * + * @var PHPExcel_Style_Border + */ + protected $_diagonal; + + /** + * DiagonalDirection + * + * @var int + */ + protected $_diagonalDirection; + + /** + * All borders psedo-border. Only applies to supervisor. + * + * @var PHPExcel_Style_Border + */ + protected $_allBorders; + + /** + * Outline psedo-border. Only applies to supervisor. + * + * @var PHPExcel_Style_Border + */ + protected $_outline; + + /** + * Inside psedo-border. Only applies to supervisor. + * + * @var PHPExcel_Style_Border + */ + protected $_inside; + + /** + * Vertical pseudo-border. Only applies to supervisor. + * + * @var PHPExcel_Style_Border + */ + protected $_vertical; + + /** + * Horizontal pseudo-border. Only applies to supervisor. + * + * @var PHPExcel_Style_Border + */ + protected $_horizontal; + + /** + * Create a new PHPExcel_Style_Borders + * + * @param boolean $isSupervisor Flag indicating if this is a supervisor or not + * Leave this value at default unless you understand exactly what + * its ramifications are + * @param boolean $isConditional Flag indicating if this is a conditional style or not + * Leave this value at default unless you understand exactly what + * its ramifications are + */ + public function __construct($isSupervisor = FALSE, $isConditional = FALSE) + { + // Supervisor? + parent::__construct($isSupervisor); + + // Initialise values + $this->_left = new PHPExcel_Style_Border($isSupervisor, $isConditional); + $this->_right = new PHPExcel_Style_Border($isSupervisor, $isConditional); + $this->_top = new PHPExcel_Style_Border($isSupervisor, $isConditional); + $this->_bottom = new PHPExcel_Style_Border($isSupervisor, $isConditional); + $this->_diagonal = new PHPExcel_Style_Border($isSupervisor, $isConditional); + $this->_diagonalDirection = PHPExcel_Style_Borders::DIAGONAL_NONE; + + // Specially for supervisor + if ($isSupervisor) { + // Initialize pseudo-borders + $this->_allBorders = new PHPExcel_Style_Border(TRUE); + $this->_outline = new PHPExcel_Style_Border(TRUE); + $this->_inside = new PHPExcel_Style_Border(TRUE); + $this->_vertical = new PHPExcel_Style_Border(TRUE); + $this->_horizontal = new PHPExcel_Style_Border(TRUE); + + // bind parent if we are a supervisor + $this->_left->bindParent($this, '_left'); + $this->_right->bindParent($this, '_right'); + $this->_top->bindParent($this, '_top'); + $this->_bottom->bindParent($this, '_bottom'); + $this->_diagonal->bindParent($this, '_diagonal'); + $this->_allBorders->bindParent($this, '_allBorders'); + $this->_outline->bindParent($this, '_outline'); + $this->_inside->bindParent($this, '_inside'); + $this->_vertical->bindParent($this, '_vertical'); + $this->_horizontal->bindParent($this, '_horizontal'); + } + } + + /** + * Get the shared style component for the currently active cell in currently active sheet. + * Only used for style supervisor + * + * @return PHPExcel_Style_Borders + */ + public function getSharedComponent() + { + return $this->_parent->getSharedComponent()->getBorders(); + } + + /** + * Build style array from subcomponents + * + * @param array $array + * @return array + */ + public function getStyleArray($array) + { + return array('borders' => $array); + } + + /** + * Apply styles from array + * + * <code> + * $objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray( + * array( + * 'bottom' => array( + * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT, + * 'color' => array( + * 'rgb' => '808080' + * ) + * ), + * 'top' => array( + * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT, + * 'color' => array( + * 'rgb' => '808080' + * ) + * ) + * ) + * ); + * </code> + * <code> + * $objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray( + * array( + * 'allborders' => array( + * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT, + * 'color' => array( + * 'rgb' => '808080' + * ) + * ) + * ) + * ); + * </code> + * + * @param array $pStyles Array containing style information + * @throws PHPExcel_Exception + * @return PHPExcel_Style_Borders + */ + public function applyFromArray($pStyles = null) { + if (is_array($pStyles)) { + if ($this->_isSupervisor) { + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles)); + } else { + if (array_key_exists('left', $pStyles)) { + $this->getLeft()->applyFromArray($pStyles['left']); + } + if (array_key_exists('right', $pStyles)) { + $this->getRight()->applyFromArray($pStyles['right']); + } + if (array_key_exists('top', $pStyles)) { + $this->getTop()->applyFromArray($pStyles['top']); + } + if (array_key_exists('bottom', $pStyles)) { + $this->getBottom()->applyFromArray($pStyles['bottom']); + } + if (array_key_exists('diagonal', $pStyles)) { + $this->getDiagonal()->applyFromArray($pStyles['diagonal']); + } + if (array_key_exists('diagonaldirection', $pStyles)) { + $this->setDiagonalDirection($pStyles['diagonaldirection']); + } + if (array_key_exists('allborders', $pStyles)) { + $this->getLeft()->applyFromArray($pStyles['allborders']); + $this->getRight()->applyFromArray($pStyles['allborders']); + $this->getTop()->applyFromArray($pStyles['allborders']); + $this->getBottom()->applyFromArray($pStyles['allborders']); + } + } + } else { + throw new PHPExcel_Exception("Invalid style array passed."); + } + return $this; + } + + /** + * Get Left + * + * @return PHPExcel_Style_Border + */ + public function getLeft() { + return $this->_left; + } + + /** + * Get Right + * + * @return PHPExcel_Style_Border + */ + public function getRight() { + return $this->_right; + } + + /** + * Get Top + * + * @return PHPExcel_Style_Border + */ + public function getTop() { + return $this->_top; + } + + /** + * Get Bottom + * + * @return PHPExcel_Style_Border + */ + public function getBottom() { + return $this->_bottom; + } + + /** + * Get Diagonal + * + * @return PHPExcel_Style_Border + */ + public function getDiagonal() { + return $this->_diagonal; + } + + /** + * Get AllBorders (pseudo-border). Only applies to supervisor. + * + * @return PHPExcel_Style_Border + * @throws PHPExcel_Exception + */ + public function getAllBorders() { + if (!$this->_isSupervisor) { + throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.'); + } + return $this->_allBorders; + } + + /** + * Get Outline (pseudo-border). Only applies to supervisor. + * + * @return boolean + * @throws PHPExcel_Exception + */ + public function getOutline() { + if (!$this->_isSupervisor) { + throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.'); + } + return $this->_outline; + } + + /** + * Get Inside (pseudo-border). Only applies to supervisor. + * + * @return boolean + * @throws PHPExcel_Exception + */ + public function getInside() { + if (!$this->_isSupervisor) { + throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.'); + } + return $this->_inside; + } + + /** + * Get Vertical (pseudo-border). Only applies to supervisor. + * + * @return PHPExcel_Style_Border + * @throws PHPExcel_Exception + */ + public function getVertical() { + if (!$this->_isSupervisor) { + throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.'); + } + return $this->_vertical; + } + + /** + * Get Horizontal (pseudo-border). Only applies to supervisor. + * + * @return PHPExcel_Style_Border + * @throws PHPExcel_Exception + */ + public function getHorizontal() { + if (!$this->_isSupervisor) { + throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.'); + } + return $this->_horizontal; + } + + /** + * Get DiagonalDirection + * + * @return int + */ + public function getDiagonalDirection() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getDiagonalDirection(); + } + return $this->_diagonalDirection; + } + + /** + * Set DiagonalDirection + * + * @param int $pValue + * @return PHPExcel_Style_Borders + */ + public function setDiagonalDirection($pValue = PHPExcel_Style_Borders::DIAGONAL_NONE) { + if ($pValue == '') { + $pValue = PHPExcel_Style_Borders::DIAGONAL_NONE; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('diagonaldirection' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_diagonalDirection = $pValue; + } + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getHashcode(); + } + return md5( + $this->getLeft()->getHashCode() + . $this->getRight()->getHashCode() + . $this->getTop()->getHashCode() + . $this->getBottom()->getHashCode() + . $this->getDiagonal()->getHashCode() + . $this->getDiagonalDirection() + . __CLASS__ + ); + } + +} diff --git a/admin/helpers/PHPExcel/Style/Color.php b/admin/helpers/PHPExcel/Style/Color.php new file mode 100644 index 00000000..a56c9a63 --- /dev/null +++ b/admin/helpers/PHPExcel/Style/Color.php @@ -0,0 +1,429 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Style_Color + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Style_Color extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable +{ + /* Colors */ + const COLOR_BLACK = 'FF000000'; + const COLOR_WHITE = 'FFFFFFFF'; + const COLOR_RED = 'FFFF0000'; + const COLOR_DARKRED = 'FF800000'; + const COLOR_BLUE = 'FF0000FF'; + const COLOR_DARKBLUE = 'FF000080'; + const COLOR_GREEN = 'FF00FF00'; + const COLOR_DARKGREEN = 'FF008000'; + const COLOR_YELLOW = 'FFFFFF00'; + const COLOR_DARKYELLOW = 'FF808000'; + + /** + * Indexed colors array + * + * @var array + */ + protected static $_indexedColors; + + /** + * ARGB - Alpha RGB + * + * @var string + */ + protected $_argb = NULL; + + /** + * Parent property name + * + * @var string + */ + protected $_parentPropertyName; + + + /** + * Create a new PHPExcel_Style_Color + * + * @param string $pARGB ARGB value for the colour + * @param boolean $isSupervisor Flag indicating if this is a supervisor or not + * Leave this value at default unless you understand exactly what + * its ramifications are + * @param boolean $isConditional Flag indicating if this is a conditional style or not + * Leave this value at default unless you understand exactly what + * its ramifications are + */ + public function __construct($pARGB = PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor = FALSE, $isConditional = FALSE) + { + // Supervisor? + parent::__construct($isSupervisor); + + // Initialise values + if (!$isConditional) { + $this->_argb = $pARGB; + } + } + + /** + * Bind parent. Only used for supervisor + * + * @param mixed $parent + * @param string $parentPropertyName + * @return PHPExcel_Style_Color + */ + public function bindParent($parent, $parentPropertyName=NULL) + { + $this->_parent = $parent; + $this->_parentPropertyName = $parentPropertyName; + return $this; + } + + /** + * Get the shared style component for the currently active cell in currently active sheet. + * Only used for style supervisor + * + * @return PHPExcel_Style_Color + */ + public function getSharedComponent() + { + switch ($this->_parentPropertyName) { + case '_endColor': + return $this->_parent->getSharedComponent()->getEndColor(); break; + case '_color': + return $this->_parent->getSharedComponent()->getColor(); break; + case '_startColor': + return $this->_parent->getSharedComponent()->getStartColor(); break; + } + } + + /** + * Build style array from subcomponents + * + * @param array $array + * @return array + */ + public function getStyleArray($array) + { + switch ($this->_parentPropertyName) { + case '_endColor': + $key = 'endcolor'; + break; + case '_color': + $key = 'color'; + break; + case '_startColor': + $key = 'startcolor'; + break; + + } + return $this->_parent->getStyleArray(array($key => $array)); + } + + /** + * Apply styles from array + * + * <code> + * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArray( array('rgb' => '808080') ); + * </code> + * + * @param array $pStyles Array containing style information + * @throws PHPExcel_Exception + * @return PHPExcel_Style_Color + */ + public function applyFromArray($pStyles = NULL) { + if (is_array($pStyles)) { + if ($this->_isSupervisor) { + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles)); + } else { + if (array_key_exists('rgb', $pStyles)) { + $this->setRGB($pStyles['rgb']); + } + if (array_key_exists('argb', $pStyles)) { + $this->setARGB($pStyles['argb']); + } + } + } else { + throw new PHPExcel_Exception("Invalid style array passed."); + } + return $this; + } + + /** + * Get ARGB + * + * @return string + */ + public function getARGB() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getARGB(); + } + return $this->_argb; + } + + /** + * Set ARGB + * + * @param string $pValue + * @return PHPExcel_Style_Color + */ + public function setARGB($pValue = PHPExcel_Style_Color::COLOR_BLACK) { + if ($pValue == '') { + $pValue = PHPExcel_Style_Color::COLOR_BLACK; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('argb' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_argb = $pValue; + } + return $this; + } + + /** + * Get RGB + * + * @return string + */ + public function getRGB() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getRGB(); + } + return substr($this->_argb, 2); + } + + /** + * Set RGB + * + * @param string $pValue RGB value + * @return PHPExcel_Style_Color + */ + public function setRGB($pValue = '000000') { + if ($pValue == '') { + $pValue = '000000'; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('argb' => 'FF' . $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_argb = 'FF' . $pValue; + } + return $this; + } + + /** + * Get a specified colour component of an RGB value + * + * @private + * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE + * @param int $offset Position within the RGB value to extract + * @param boolean $hex Flag indicating whether the component should be returned as a hex or a + * decimal value + * @return string The extracted colour component + */ + private static function _getColourComponent($RGB,$offset,$hex=TRUE) { + $colour = substr($RGB, $offset, 2); + if (!$hex) + $colour = hexdec($colour); + return $colour; + } + + /** + * Get the red colour component of an RGB value + * + * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE + * @param boolean $hex Flag indicating whether the component should be returned as a hex or a + * decimal value + * @return string The red colour component + */ + public static function getRed($RGB,$hex=TRUE) { + return self::_getColourComponent($RGB, strlen($RGB) - 6, $hex); + } + + /** + * Get the green colour component of an RGB value + * + * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE + * @param boolean $hex Flag indicating whether the component should be returned as a hex or a + * decimal value + * @return string The green colour component + */ + public static function getGreen($RGB,$hex=TRUE) { + return self::_getColourComponent($RGB, strlen($RGB) - 4, $hex); + } + + /** + * Get the blue colour component of an RGB value + * + * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE + * @param boolean $hex Flag indicating whether the component should be returned as a hex or a + * decimal value + * @return string The blue colour component + */ + public static function getBlue($RGB,$hex=TRUE) { + return self::_getColourComponent($RGB, strlen($RGB) - 2, $hex); + } + + /** + * Adjust the brightness of a color + * + * @param string $hex The colour as an RGBA or RGB value (e.g. FF00CCCC or CCDDEE) + * @param float $adjustPercentage The percentage by which to adjust the colour as a float from -1 to 1 + * @return string The adjusted colour as an RGBA or RGB value (e.g. FF00CCCC or CCDDEE) + */ + public static function changeBrightness($hex, $adjustPercentage) { + $rgba = (strlen($hex) == 8); + + $red = self::getRed($hex, FALSE); + $green = self::getGreen($hex, FALSE); + $blue = self::getBlue($hex, FALSE); + if ($adjustPercentage > 0) { + $red += (255 - $red) * $adjustPercentage; + $green += (255 - $green) * $adjustPercentage; + $blue += (255 - $blue) * $adjustPercentage; + } else { + $red += $red * $adjustPercentage; + $green += $green * $adjustPercentage; + $blue += $blue * $adjustPercentage; + } + + if ($red < 0) $red = 0; + elseif ($red > 255) $red = 255; + if ($green < 0) $green = 0; + elseif ($green > 255) $green = 255; + if ($blue < 0) $blue = 0; + elseif ($blue > 255) $blue = 255; + + $rgb = strtoupper( str_pad(dechex($red), 2, '0', 0) . + str_pad(dechex($green), 2, '0', 0) . + str_pad(dechex($blue), 2, '0', 0) + ); + return (($rgba) ? 'FF' : '') . $rgb; + } + + /** + * Get indexed color + * + * @param int $pIndex Index entry point into the colour array + * @param boolean $background Flag to indicate whether default background or foreground colour + * should be returned if the indexed colour doesn't exist + * @return PHPExcel_Style_Color + */ + public static function indexedColor($pIndex, $background=FALSE) { + // Clean parameter + $pIndex = intval($pIndex); + + // Indexed colors + if (is_null(self::$_indexedColors)) { + self::$_indexedColors = array( + 1 => 'FF000000', // System Colour #1 - Black + 2 => 'FFFFFFFF', // System Colour #2 - White + 3 => 'FFFF0000', // System Colour #3 - Red + 4 => 'FF00FF00', // System Colour #4 - Green + 5 => 'FF0000FF', // System Colour #5 - Blue + 6 => 'FFFFFF00', // System Colour #6 - Yellow + 7 => 'FFFF00FF', // System Colour #7- Magenta + 8 => 'FF00FFFF', // System Colour #8- Cyan + 9 => 'FF800000', // Standard Colour #9 + 10 => 'FF008000', // Standard Colour #10 + 11 => 'FF000080', // Standard Colour #11 + 12 => 'FF808000', // Standard Colour #12 + 13 => 'FF800080', // Standard Colour #13 + 14 => 'FF008080', // Standard Colour #14 + 15 => 'FFC0C0C0', // Standard Colour #15 + 16 => 'FF808080', // Standard Colour #16 + 17 => 'FF9999FF', // Chart Fill Colour #17 + 18 => 'FF993366', // Chart Fill Colour #18 + 19 => 'FFFFFFCC', // Chart Fill Colour #19 + 20 => 'FFCCFFFF', // Chart Fill Colour #20 + 21 => 'FF660066', // Chart Fill Colour #21 + 22 => 'FFFF8080', // Chart Fill Colour #22 + 23 => 'FF0066CC', // Chart Fill Colour #23 + 24 => 'FFCCCCFF', // Chart Fill Colour #24 + 25 => 'FF000080', // Chart Line Colour #25 + 26 => 'FFFF00FF', // Chart Line Colour #26 + 27 => 'FFFFFF00', // Chart Line Colour #27 + 28 => 'FF00FFFF', // Chart Line Colour #28 + 29 => 'FF800080', // Chart Line Colour #29 + 30 => 'FF800000', // Chart Line Colour #30 + 31 => 'FF008080', // Chart Line Colour #31 + 32 => 'FF0000FF', // Chart Line Colour #32 + 33 => 'FF00CCFF', // Standard Colour #33 + 34 => 'FFCCFFFF', // Standard Colour #34 + 35 => 'FFCCFFCC', // Standard Colour #35 + 36 => 'FFFFFF99', // Standard Colour #36 + 37 => 'FF99CCFF', // Standard Colour #37 + 38 => 'FFFF99CC', // Standard Colour #38 + 39 => 'FFCC99FF', // Standard Colour #39 + 40 => 'FFFFCC99', // Standard Colour #40 + 41 => 'FF3366FF', // Standard Colour #41 + 42 => 'FF33CCCC', // Standard Colour #42 + 43 => 'FF99CC00', // Standard Colour #43 + 44 => 'FFFFCC00', // Standard Colour #44 + 45 => 'FFFF9900', // Standard Colour #45 + 46 => 'FFFF6600', // Standard Colour #46 + 47 => 'FF666699', // Standard Colour #47 + 48 => 'FF969696', // Standard Colour #48 + 49 => 'FF003366', // Standard Colour #49 + 50 => 'FF339966', // Standard Colour #50 + 51 => 'FF003300', // Standard Colour #51 + 52 => 'FF333300', // Standard Colour #52 + 53 => 'FF993300', // Standard Colour #53 + 54 => 'FF993366', // Standard Colour #54 + 55 => 'FF333399', // Standard Colour #55 + 56 => 'FF333333' // Standard Colour #56 + ); + } + + if (array_key_exists($pIndex, self::$_indexedColors)) { + return new PHPExcel_Style_Color(self::$_indexedColors[$pIndex]); + } + + if ($background) { + return new PHPExcel_Style_Color('FFFFFFFF'); + } + return new PHPExcel_Style_Color('FF000000'); + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getHashCode(); + } + return md5( + $this->_argb + . __CLASS__ + ); + } + +} diff --git a/admin/helpers/PHPExcel/Style/Conditional.php b/admin/helpers/PHPExcel/Style/Conditional.php new file mode 100644 index 00000000..aebf1e31 --- /dev/null +++ b/admin/helpers/PHPExcel/Style/Conditional.php @@ -0,0 +1,277 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Style_Conditional + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Style_Conditional implements PHPExcel_IComparable +{ + /* Condition types */ + const CONDITION_NONE = 'none'; + const CONDITION_CELLIS = 'cellIs'; + const CONDITION_CONTAINSTEXT = 'containsText'; + const CONDITION_EXPRESSION = 'expression'; + + /* Operator types */ + const OPERATOR_NONE = ''; + const OPERATOR_BEGINSWITH = 'beginsWith'; + const OPERATOR_ENDSWITH = 'endsWith'; + const OPERATOR_EQUAL = 'equal'; + const OPERATOR_GREATERTHAN = 'greaterThan'; + const OPERATOR_GREATERTHANOREQUAL = 'greaterThanOrEqual'; + const OPERATOR_LESSTHAN = 'lessThan'; + const OPERATOR_LESSTHANOREQUAL = 'lessThanOrEqual'; + const OPERATOR_NOTEQUAL = 'notEqual'; + const OPERATOR_CONTAINSTEXT = 'containsText'; + const OPERATOR_NOTCONTAINS = 'notContains'; + const OPERATOR_BETWEEN = 'between'; + + /** + * Condition type + * + * @var int + */ + private $_conditionType; + + /** + * Operator type + * + * @var int + */ + private $_operatorType; + + /** + * Text + * + * @var string + */ + private $_text; + + /** + * Condition + * + * @var string[] + */ + private $_condition = array(); + + /** + * Style + * + * @var PHPExcel_Style + */ + private $_style; + + /** + * Create a new PHPExcel_Style_Conditional + */ + public function __construct() + { + // Initialise values + $this->_conditionType = PHPExcel_Style_Conditional::CONDITION_NONE; + $this->_operatorType = PHPExcel_Style_Conditional::OPERATOR_NONE; + $this->_text = null; + $this->_condition = array(); + $this->_style = new PHPExcel_Style(FALSE, TRUE); + } + + /** + * Get Condition type + * + * @return string + */ + public function getConditionType() { + return $this->_conditionType; + } + + /** + * Set Condition type + * + * @param string $pValue PHPExcel_Style_Conditional condition type + * @return PHPExcel_Style_Conditional + */ + public function setConditionType($pValue = PHPExcel_Style_Conditional::CONDITION_NONE) { + $this->_conditionType = $pValue; + return $this; + } + + /** + * Get Operator type + * + * @return string + */ + public function getOperatorType() { + return $this->_operatorType; + } + + /** + * Set Operator type + * + * @param string $pValue PHPExcel_Style_Conditional operator type + * @return PHPExcel_Style_Conditional + */ + public function setOperatorType($pValue = PHPExcel_Style_Conditional::OPERATOR_NONE) { + $this->_operatorType = $pValue; + return $this; + } + + /** + * Get text + * + * @return string + */ + public function getText() { + return $this->_text; + } + + /** + * Set text + * + * @param string $value + * @return PHPExcel_Style_Conditional + */ + public function setText($value = null) { + $this->_text = $value; + return $this; + } + + /** + * Get Condition + * + * @deprecated Deprecated, use getConditions instead + * @return string + */ + public function getCondition() { + if (isset($this->_condition[0])) { + return $this->_condition[0]; + } + + return ''; + } + + /** + * Set Condition + * + * @deprecated Deprecated, use setConditions instead + * @param string $pValue Condition + * @return PHPExcel_Style_Conditional + */ + public function setCondition($pValue = '') { + if (!is_array($pValue)) + $pValue = array($pValue); + + return $this->setConditions($pValue); + } + + /** + * Get Conditions + * + * @return string[] + */ + public function getConditions() { + return $this->_condition; + } + + /** + * Set Conditions + * + * @param string[] $pValue Condition + * @return PHPExcel_Style_Conditional + */ + public function setConditions($pValue) { + if (!is_array($pValue)) + $pValue = array($pValue); + + $this->_condition = $pValue; + return $this; + } + + /** + * Add Condition + * + * @param string $pValue Condition + * @return PHPExcel_Style_Conditional + */ + public function addCondition($pValue = '') { + $this->_condition[] = $pValue; + return $this; + } + + /** + * Get Style + * + * @return PHPExcel_Style + */ + public function getStyle() { + return $this->_style; + } + + /** + * Set Style + * + * @param PHPExcel_Style $pValue + * @throws PHPExcel_Exception + * @return PHPExcel_Style_Conditional + */ + public function setStyle(PHPExcel_Style $pValue = null) { + $this->_style = $pValue; + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + return md5( + $this->_conditionType + . $this->_operatorType + . implode(';', $this->_condition) + . $this->_style->getHashCode() + . __CLASS__ + ); + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Style/Fill.php b/admin/helpers/PHPExcel/Style/Fill.php new file mode 100644 index 00000000..6412ba63 --- /dev/null +++ b/admin/helpers/PHPExcel/Style/Fill.php @@ -0,0 +1,321 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Style_Fill + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Style_Fill extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable +{ + /* Fill types */ + const FILL_NONE = 'none'; + const FILL_SOLID = 'solid'; + const FILL_GRADIENT_LINEAR = 'linear'; + const FILL_GRADIENT_PATH = 'path'; + const FILL_PATTERN_DARKDOWN = 'darkDown'; + const FILL_PATTERN_DARKGRAY = 'darkGray'; + const FILL_PATTERN_DARKGRID = 'darkGrid'; + const FILL_PATTERN_DARKHORIZONTAL = 'darkHorizontal'; + const FILL_PATTERN_DARKTRELLIS = 'darkTrellis'; + const FILL_PATTERN_DARKUP = 'darkUp'; + const FILL_PATTERN_DARKVERTICAL = 'darkVertical'; + const FILL_PATTERN_GRAY0625 = 'gray0625'; + const FILL_PATTERN_GRAY125 = 'gray125'; + const FILL_PATTERN_LIGHTDOWN = 'lightDown'; + const FILL_PATTERN_LIGHTGRAY = 'lightGray'; + const FILL_PATTERN_LIGHTGRID = 'lightGrid'; + const FILL_PATTERN_LIGHTHORIZONTAL = 'lightHorizontal'; + const FILL_PATTERN_LIGHTTRELLIS = 'lightTrellis'; + const FILL_PATTERN_LIGHTUP = 'lightUp'; + const FILL_PATTERN_LIGHTVERTICAL = 'lightVertical'; + const FILL_PATTERN_MEDIUMGRAY = 'mediumGray'; + + /** + * Fill type + * + * @var string + */ + protected $_fillType = PHPExcel_Style_Fill::FILL_NONE; + + /** + * Rotation + * + * @var double + */ + protected $_rotation = 0; + + /** + * Start color + * + * @var PHPExcel_Style_Color + */ + protected $_startColor; + + /** + * End color + * + * @var PHPExcel_Style_Color + */ + protected $_endColor; + + /** + * Create a new PHPExcel_Style_Fill + * + * @param boolean $isSupervisor Flag indicating if this is a supervisor or not + * Leave this value at default unless you understand exactly what + * its ramifications are + * @param boolean $isConditional Flag indicating if this is a conditional style or not + * Leave this value at default unless you understand exactly what + * its ramifications are + */ + public function __construct($isSupervisor = FALSE, $isConditional = FALSE) + { + // Supervisor? + parent::__construct($isSupervisor); + + // Initialise values + if ($isConditional) { + $this->_fillType = NULL; + } + $this->_startColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_WHITE, $isSupervisor, $isConditional); + $this->_endColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional); + + // bind parent if we are a supervisor + if ($isSupervisor) { + $this->_startColor->bindParent($this, '_startColor'); + $this->_endColor->bindParent($this, '_endColor'); + } + } + + /** + * Get the shared style component for the currently active cell in currently active sheet. + * Only used for style supervisor + * + * @return PHPExcel_Style_Fill + */ + public function getSharedComponent() + { + return $this->_parent->getSharedComponent()->getFill(); + } + + /** + * Build style array from subcomponents + * + * @param array $array + * @return array + */ + public function getStyleArray($array) + { + return array('fill' => $array); + } + + /** + * Apply styles from array + * + * <code> + * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFill()->applyFromArray( + * array( + * 'type' => PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR, + * 'rotation' => 0, + * 'startcolor' => array( + * 'rgb' => '000000' + * ), + * 'endcolor' => array( + * 'argb' => 'FFFFFFFF' + * ) + * ) + * ); + * </code> + * + * @param array $pStyles Array containing style information + * @throws PHPExcel_Exception + * @return PHPExcel_Style_Fill + */ + public function applyFromArray($pStyles = null) { + if (is_array($pStyles)) { + if ($this->_isSupervisor) { + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles)); + } else { + if (array_key_exists('type', $pStyles)) { + $this->setFillType($pStyles['type']); + } + if (array_key_exists('rotation', $pStyles)) { + $this->setRotation($pStyles['rotation']); + } + if (array_key_exists('startcolor', $pStyles)) { + $this->getStartColor()->applyFromArray($pStyles['startcolor']); + } + if (array_key_exists('endcolor', $pStyles)) { + $this->getEndColor()->applyFromArray($pStyles['endcolor']); + } + if (array_key_exists('color', $pStyles)) { + $this->getStartColor()->applyFromArray($pStyles['color']); + } + } + } else { + throw new PHPExcel_Exception("Invalid style array passed."); + } + return $this; + } + + /** + * Get Fill Type + * + * @return string + */ + public function getFillType() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getFillType(); + } + return $this->_fillType; + } + + /** + * Set Fill Type + * + * @param string $pValue PHPExcel_Style_Fill fill type + * @return PHPExcel_Style_Fill + */ + public function setFillType($pValue = PHPExcel_Style_Fill::FILL_NONE) { + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('type' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_fillType = $pValue; + } + return $this; + } + + /** + * Get Rotation + * + * @return double + */ + public function getRotation() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getRotation(); + } + return $this->_rotation; + } + + /** + * Set Rotation + * + * @param double $pValue + * @return PHPExcel_Style_Fill + */ + public function setRotation($pValue = 0) { + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('rotation' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_rotation = $pValue; + } + return $this; + } + + /** + * Get Start Color + * + * @return PHPExcel_Style_Color + */ + public function getStartColor() { + return $this->_startColor; + } + + /** + * Set Start Color + * + * @param PHPExcel_Style_Color $pValue + * @throws PHPExcel_Exception + * @return PHPExcel_Style_Fill + */ + public function setStartColor(PHPExcel_Style_Color $pValue = null) { + // make sure parameter is a real color and not a supervisor + $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue; + + if ($this->_isSupervisor) { + $styleArray = $this->getStartColor()->getStyleArray(array('argb' => $color->getARGB())); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_startColor = $color; + } + return $this; + } + + /** + * Get End Color + * + * @return PHPExcel_Style_Color + */ + public function getEndColor() { + return $this->_endColor; + } + + /** + * Set End Color + * + * @param PHPExcel_Style_Color $pValue + * @throws PHPExcel_Exception + * @return PHPExcel_Style_Fill + */ + public function setEndColor(PHPExcel_Style_Color $pValue = null) { + // make sure parameter is a real color and not a supervisor + $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue; + + if ($this->_isSupervisor) { + $styleArray = $this->getEndColor()->getStyleArray(array('argb' => $color->getARGB())); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_endColor = $color; + } + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getHashCode(); + } + return md5( + $this->getFillType() + . $this->getRotation() + . $this->getStartColor()->getHashCode() + . $this->getEndColor()->getHashCode() + . __CLASS__ + ); + } + +} diff --git a/admin/helpers/PHPExcel/Style/Font.php b/admin/helpers/PHPExcel/Style/Font.php new file mode 100644 index 00000000..296e3485 --- /dev/null +++ b/admin/helpers/PHPExcel/Style/Font.php @@ -0,0 +1,532 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Style_Font + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Style_Font extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable +{ + /* Underline types */ + const UNDERLINE_NONE = 'none'; + const UNDERLINE_DOUBLE = 'double'; + const UNDERLINE_DOUBLEACCOUNTING = 'doubleAccounting'; + const UNDERLINE_SINGLE = 'single'; + const UNDERLINE_SINGLEACCOUNTING = 'singleAccounting'; + + /** + * Font Name + * + * @var string + */ + protected $_name = 'Calibri'; + + /** + * Font Size + * + * @var float + */ + protected $_size = 11; + + /** + * Bold + * + * @var boolean + */ + protected $_bold = FALSE; + + /** + * Italic + * + * @var boolean + */ + protected $_italic = FALSE; + + /** + * Superscript + * + * @var boolean + */ + protected $_superScript = FALSE; + + /** + * Subscript + * + * @var boolean + */ + protected $_subScript = FALSE; + + /** + * Underline + * + * @var string + */ + protected $_underline = self::UNDERLINE_NONE; + + /** + * Strikethrough + * + * @var boolean + */ + protected $_strikethrough = FALSE; + + /** + * Foreground color + * + * @var PHPExcel_Style_Color + */ + protected $_color; + + /** + * Create a new PHPExcel_Style_Font + * + * @param boolean $isSupervisor Flag indicating if this is a supervisor or not + * Leave this value at default unless you understand exactly what + * its ramifications are + * @param boolean $isConditional Flag indicating if this is a conditional style or not + * Leave this value at default unless you understand exactly what + * its ramifications are + */ + public function __construct($isSupervisor = FALSE, $isConditional = FALSE) + { + // Supervisor? + parent::__construct($isSupervisor); + + // Initialise values + if ($isConditional) { + $this->_name = NULL; + $this->_size = NULL; + $this->_bold = NULL; + $this->_italic = NULL; + $this->_superScript = NULL; + $this->_subScript = NULL; + $this->_underline = NULL; + $this->_strikethrough = NULL; + $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional); + } else { + $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor); + } + // bind parent if we are a supervisor + if ($isSupervisor) { + $this->_color->bindParent($this, '_color'); + } + } + + /** + * Get the shared style component for the currently active cell in currently active sheet. + * Only used for style supervisor + * + * @return PHPExcel_Style_Font + */ + public function getSharedComponent() + { + return $this->_parent->getSharedComponent()->getFont(); + } + + /** + * Build style array from subcomponents + * + * @param array $array + * @return array + */ + public function getStyleArray($array) + { + return array('font' => $array); + } + + /** + * Apply styles from array + * + * <code> + * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->applyFromArray( + * array( + * 'name' => 'Arial', + * 'bold' => TRUE, + * 'italic' => FALSE, + * 'underline' => PHPExcel_Style_Font::UNDERLINE_DOUBLE, + * 'strike' => FALSE, + * 'color' => array( + * 'rgb' => '808080' + * ) + * ) + * ); + * </code> + * + * @param array $pStyles Array containing style information + * @throws PHPExcel_Exception + * @return PHPExcel_Style_Font + */ + public function applyFromArray($pStyles = null) { + if (is_array($pStyles)) { + if ($this->_isSupervisor) { + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles)); + } else { + if (array_key_exists('name', $pStyles)) { + $this->setName($pStyles['name']); + } + if (array_key_exists('bold', $pStyles)) { + $this->setBold($pStyles['bold']); + } + if (array_key_exists('italic', $pStyles)) { + $this->setItalic($pStyles['italic']); + } + if (array_key_exists('superScript', $pStyles)) { + $this->setSuperScript($pStyles['superScript']); + } + if (array_key_exists('subScript', $pStyles)) { + $this->setSubScript($pStyles['subScript']); + } + if (array_key_exists('underline', $pStyles)) { + $this->setUnderline($pStyles['underline']); + } + if (array_key_exists('strike', $pStyles)) { + $this->setStrikethrough($pStyles['strike']); + } + if (array_key_exists('color', $pStyles)) { + $this->getColor()->applyFromArray($pStyles['color']); + } + if (array_key_exists('size', $pStyles)) { + $this->setSize($pStyles['size']); + } + } + } else { + throw new PHPExcel_Exception("Invalid style array passed."); + } + return $this; + } + + /** + * Get Name + * + * @return string + */ + public function getName() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getName(); + } + return $this->_name; + } + + /** + * Set Name + * + * @param string $pValue + * @return PHPExcel_Style_Font + */ + public function setName($pValue = 'Calibri') { + if ($pValue == '') { + $pValue = 'Calibri'; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('name' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_name = $pValue; + } + return $this; + } + + /** + * Get Size + * + * @return double + */ + public function getSize() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getSize(); + } + return $this->_size; + } + + /** + * Set Size + * + * @param double $pValue + * @return PHPExcel_Style_Font + */ + public function setSize($pValue = 10) { + if ($pValue == '') { + $pValue = 10; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('size' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_size = $pValue; + } + return $this; + } + + /** + * Get Bold + * + * @return boolean + */ + public function getBold() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getBold(); + } + return $this->_bold; + } + + /** + * Set Bold + * + * @param boolean $pValue + * @return PHPExcel_Style_Font + */ + public function setBold($pValue = false) { + if ($pValue == '') { + $pValue = false; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('bold' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_bold = $pValue; + } + return $this; + } + + /** + * Get Italic + * + * @return boolean + */ + public function getItalic() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getItalic(); + } + return $this->_italic; + } + + /** + * Set Italic + * + * @param boolean $pValue + * @return PHPExcel_Style_Font + */ + public function setItalic($pValue = false) { + if ($pValue == '') { + $pValue = false; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('italic' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_italic = $pValue; + } + return $this; + } + + /** + * Get SuperScript + * + * @return boolean + */ + public function getSuperScript() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getSuperScript(); + } + return $this->_superScript; + } + + /** + * Set SuperScript + * + * @param boolean $pValue + * @return PHPExcel_Style_Font + */ + public function setSuperScript($pValue = false) { + if ($pValue == '') { + $pValue = false; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('superScript' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_superScript = $pValue; + $this->_subScript = !$pValue; + } + return $this; + } + + /** + * Get SubScript + * + * @return boolean + */ + public function getSubScript() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getSubScript(); + } + return $this->_subScript; + } + + /** + * Set SubScript + * + * @param boolean $pValue + * @return PHPExcel_Style_Font + */ + public function setSubScript($pValue = false) { + if ($pValue == '') { + $pValue = false; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('subScript' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_subScript = $pValue; + $this->_superScript = !$pValue; + } + return $this; + } + + /** + * Get Underline + * + * @return string + */ + public function getUnderline() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getUnderline(); + } + return $this->_underline; + } + + /** + * Set Underline + * + * @param string|boolean $pValue PHPExcel_Style_Font underline type + * If a boolean is passed, then TRUE equates to UNDERLINE_SINGLE, + * false equates to UNDERLINE_NONE + * @return PHPExcel_Style_Font + */ + public function setUnderline($pValue = self::UNDERLINE_NONE) { + if (is_bool($pValue)) { + $pValue = ($pValue) ? self::UNDERLINE_SINGLE : self::UNDERLINE_NONE; + } elseif ($pValue == '') { + $pValue = self::UNDERLINE_NONE; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('underline' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_underline = $pValue; + } + return $this; + } + + /** + * Get Strikethrough + * + * @return boolean + */ + public function getStrikethrough() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getStrikethrough(); + } + return $this->_strikethrough; + } + + /** + * Set Strikethrough + * + * @param boolean $pValue + * @return PHPExcel_Style_Font + */ + public function setStrikethrough($pValue = false) { + if ($pValue == '') { + $pValue = false; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('strike' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_strikethrough = $pValue; + } + return $this; + } + + /** + * Get Color + * + * @return PHPExcel_Style_Color + */ + public function getColor() { + return $this->_color; + } + + /** + * Set Color + * + * @param PHPExcel_Style_Color $pValue + * @throws PHPExcel_Exception + * @return PHPExcel_Style_Font + */ + public function setColor(PHPExcel_Style_Color $pValue = null) { + // make sure parameter is a real color and not a supervisor + $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue; + + if ($this->_isSupervisor) { + $styleArray = $this->getColor()->getStyleArray(array('argb' => $color->getARGB())); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_color = $color; + } + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getHashCode(); + } + return md5( + $this->_name + . $this->_size + . ($this->_bold ? 't' : 'f') + . ($this->_italic ? 't' : 'f') + . ($this->_superScript ? 't' : 'f') + . ($this->_subScript ? 't' : 'f') + . $this->_underline + . ($this->_strikethrough ? 't' : 'f') + . $this->_color->getHashCode() + . __CLASS__ + ); + } + +} diff --git a/admin/helpers/PHPExcel/Style/NumberFormat.php b/admin/helpers/PHPExcel/Style/NumberFormat.php new file mode 100644 index 00000000..0d7d93de --- /dev/null +++ b/admin/helpers/PHPExcel/Style/NumberFormat.php @@ -0,0 +1,711 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Style_NumberFormat + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Style_NumberFormat extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable +{ + /* Pre-defined formats */ + const FORMAT_GENERAL = 'General'; + + const FORMAT_TEXT = '@'; + + const FORMAT_NUMBER = '0'; + const FORMAT_NUMBER_00 = '0.00'; + const FORMAT_NUMBER_COMMA_SEPARATED1 = '#,##0.00'; + const FORMAT_NUMBER_COMMA_SEPARATED2 = '#,##0.00_-'; + + const FORMAT_PERCENTAGE = '0%'; + const FORMAT_PERCENTAGE_00 = '0.00%'; + + const FORMAT_DATE_YYYYMMDD2 = 'yyyy-mm-dd'; + const FORMAT_DATE_YYYYMMDD = 'yy-mm-dd'; + const FORMAT_DATE_DDMMYYYY = 'dd/mm/yy'; + const FORMAT_DATE_DMYSLASH = 'd/m/y'; + const FORMAT_DATE_DMYMINUS = 'd-m-y'; + const FORMAT_DATE_DMMINUS = 'd-m'; + const FORMAT_DATE_MYMINUS = 'm-y'; + const FORMAT_DATE_XLSX14 = 'mm-dd-yy'; + const FORMAT_DATE_XLSX15 = 'd-mmm-yy'; + const FORMAT_DATE_XLSX16 = 'd-mmm'; + const FORMAT_DATE_XLSX17 = 'mmm-yy'; + const FORMAT_DATE_XLSX22 = 'm/d/yy h:mm'; + const FORMAT_DATE_DATETIME = 'd/m/y h:mm'; + const FORMAT_DATE_TIME1 = 'h:mm AM/PM'; + const FORMAT_DATE_TIME2 = 'h:mm:ss AM/PM'; + const FORMAT_DATE_TIME3 = 'h:mm'; + const FORMAT_DATE_TIME4 = 'h:mm:ss'; + const FORMAT_DATE_TIME5 = 'mm:ss'; + const FORMAT_DATE_TIME6 = 'h:mm:ss'; + const FORMAT_DATE_TIME7 = 'i:s.S'; + const FORMAT_DATE_TIME8 = 'h:mm:ss;@'; + const FORMAT_DATE_YYYYMMDDSLASH = 'yy/mm/dd;@'; + + const FORMAT_CURRENCY_USD_SIMPLE = '"$"#,##0.00_-'; + const FORMAT_CURRENCY_USD = '$#,##0_-'; + const FORMAT_CURRENCY_EUR_SIMPLE = '[$EUR ]#,##0.00_-'; + + /** + * Excel built-in number formats + * + * @var array + */ + protected static $_builtInFormats; + + /** + * Excel built-in number formats (flipped, for faster lookups) + * + * @var array + */ + protected static $_flippedBuiltInFormats; + + /** + * Format Code + * + * @var string + */ + protected $_formatCode = PHPExcel_Style_NumberFormat::FORMAT_GENERAL; + + /** + * Built-in format Code + * + * @var string + */ + protected $_builtInFormatCode = 0; + + /** + * Create a new PHPExcel_Style_NumberFormat + * + * @param boolean $isSupervisor Flag indicating if this is a supervisor or not + * Leave this value at default unless you understand exactly what + * its ramifications are + * @param boolean $isConditional Flag indicating if this is a conditional style or not + * Leave this value at default unless you understand exactly what + * its ramifications are + */ + public function __construct($isSupervisor = FALSE, $isConditional = FALSE) + { + // Supervisor? + parent::__construct($isSupervisor); + + if ($isConditional) { + $this->_formatCode = NULL; + } + } + + /** + * Get the shared style component for the currently active cell in currently active sheet. + * Only used for style supervisor + * + * @return PHPExcel_Style_NumberFormat + */ + public function getSharedComponent() + { + return $this->_parent->getSharedComponent()->getNumberFormat(); + } + + /** + * Build style array from subcomponents + * + * @param array $array + * @return array + */ + public function getStyleArray($array) + { + return array('numberformat' => $array); + } + + /** + * Apply styles from array + * + * <code> + * $objPHPExcel->getActiveSheet()->getStyle('B2')->getNumberFormat()->applyFromArray( + * array( + * 'code' => PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_EUR_SIMPLE + * ) + * ); + * </code> + * + * @param array $pStyles Array containing style information + * @throws PHPExcel_Exception + * @return PHPExcel_Style_NumberFormat + */ + public function applyFromArray($pStyles = null) + { + if (is_array($pStyles)) { + if ($this->_isSupervisor) { + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles)); + } else { + if (array_key_exists('code', $pStyles)) { + $this->setFormatCode($pStyles['code']); + } + } + } else { + throw new PHPExcel_Exception("Invalid style array passed."); + } + return $this; + } + + /** + * Get Format Code + * + * @return string + */ + public function getFormatCode() + { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getFormatCode(); + } + if ($this->_builtInFormatCode !== false) + { + return self::builtInFormatCode($this->_builtInFormatCode); + } + return $this->_formatCode; + } + + /** + * Set Format Code + * + * @param string $pValue + * @return PHPExcel_Style_NumberFormat + */ + public function setFormatCode($pValue = PHPExcel_Style_NumberFormat::FORMAT_GENERAL) + { + if ($pValue == '') { + $pValue = PHPExcel_Style_NumberFormat::FORMAT_GENERAL; + } + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('code' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_formatCode = $pValue; + $this->_builtInFormatCode = self::builtInFormatCodeIndex($pValue); + } + return $this; + } + + /** + * Get Built-In Format Code + * + * @return int + */ + public function getBuiltInFormatCode() + { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getBuiltInFormatCode(); + } + return $this->_builtInFormatCode; + } + + /** + * Set Built-In Format Code + * + * @param int $pValue + * @return PHPExcel_Style_NumberFormat + */ + public function setBuiltInFormatCode($pValue = 0) + { + + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('code' => self::builtInFormatCode($pValue))); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_builtInFormatCode = $pValue; + $this->_formatCode = self::builtInFormatCode($pValue); + } + return $this; + } + + /** + * Fill built-in format codes + */ + private static function fillBuiltInFormatCodes() + { + // Built-in format codes + if (is_null(self::$_builtInFormats)) { + self::$_builtInFormats = array(); + + // General + self::$_builtInFormats[0] = PHPExcel_Style_NumberFormat::FORMAT_GENERAL; + self::$_builtInFormats[1] = '0'; + self::$_builtInFormats[2] = '0.00'; + self::$_builtInFormats[3] = '#,##0'; + self::$_builtInFormats[4] = '#,##0.00'; + + self::$_builtInFormats[9] = '0%'; + self::$_builtInFormats[10] = '0.00%'; + self::$_builtInFormats[11] = '0.00E+00'; + self::$_builtInFormats[12] = '# ?/?'; + self::$_builtInFormats[13] = '# ??/??'; + self::$_builtInFormats[14] = 'mm-dd-yy'; + self::$_builtInFormats[15] = 'd-mmm-yy'; + self::$_builtInFormats[16] = 'd-mmm'; + self::$_builtInFormats[17] = 'mmm-yy'; + self::$_builtInFormats[18] = 'h:mm AM/PM'; + self::$_builtInFormats[19] = 'h:mm:ss AM/PM'; + self::$_builtInFormats[20] = 'h:mm'; + self::$_builtInFormats[21] = 'h:mm:ss'; + self::$_builtInFormats[22] = 'm/d/yy h:mm'; + + self::$_builtInFormats[37] = '#,##0 ;(#,##0)'; + self::$_builtInFormats[38] = '#,##0 ;[Red](#,##0)'; + self::$_builtInFormats[39] = '#,##0.00;(#,##0.00)'; + self::$_builtInFormats[40] = '#,##0.00;[Red](#,##0.00)'; + + self::$_builtInFormats[44] = '_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)'; + self::$_builtInFormats[45] = 'mm:ss'; + self::$_builtInFormats[46] = '[h]:mm:ss'; + self::$_builtInFormats[47] = 'mmss.0'; + self::$_builtInFormats[48] = '##0.0E+0'; + self::$_builtInFormats[49] = '@'; + + // CHT + self::$_builtInFormats[27] = '[$-404]e/m/d'; + self::$_builtInFormats[30] = 'm/d/yy'; + self::$_builtInFormats[36] = '[$-404]e/m/d'; + self::$_builtInFormats[50] = '[$-404]e/m/d'; + self::$_builtInFormats[57] = '[$-404]e/m/d'; + + // THA + self::$_builtInFormats[59] = 't0'; + self::$_builtInFormats[60] = 't0.00'; + self::$_builtInFormats[61] = 't#,##0'; + self::$_builtInFormats[62] = 't#,##0.00'; + self::$_builtInFormats[67] = 't0%'; + self::$_builtInFormats[68] = 't0.00%'; + self::$_builtInFormats[69] = 't# ?/?'; + self::$_builtInFormats[70] = 't# ??/??'; + + // Flip array (for faster lookups) + self::$_flippedBuiltInFormats = array_flip(self::$_builtInFormats); + } + } + + /** + * Get built-in format code + * + * @param int $pIndex + * @return string + */ + public static function builtInFormatCode($pIndex) + { + // Clean parameter + $pIndex = intval($pIndex); + + // Ensure built-in format codes are available + self::fillBuiltInFormatCodes(); + + // Lookup format code + if (isset(self::$_builtInFormats[$pIndex])) { + return self::$_builtInFormats[$pIndex]; + } + + return ''; + } + + /** + * Get built-in format code index + * + * @param string $formatCode + * @return int|boolean + */ + public static function builtInFormatCodeIndex($formatCode) + { + // Ensure built-in format codes are available + self::fillBuiltInFormatCodes(); + + // Lookup format code + if (isset(self::$_flippedBuiltInFormats[$formatCode])) { + return self::$_flippedBuiltInFormats[$formatCode]; + } + + return false; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() + { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getHashCode(); + } + return md5( + $this->_formatCode + . $this->_builtInFormatCode + . __CLASS__ + ); + } + + /** + * Search/replace values to convert Excel date/time format masks to PHP format masks + * + * @var array + */ + private static $_dateFormatReplacements = array( + // first remove escapes related to non-format characters + '\\' => '', + // 12-hour suffix + 'am/pm' => 'A', + // 4-digit year + 'e' => 'Y', + 'yyyy' => 'Y', + // 2-digit year + 'yy' => 'y', + // first letter of month - no php equivalent + 'mmmmm' => 'M', + // full month name + 'mmmm' => 'F', + // short month name + 'mmm' => 'M', + // mm is minutes if time, but can also be month w/leading zero + // so we try to identify times be the inclusion of a : separator in the mask + // It isn't perfect, but the best way I know how + ':mm' => ':i', + 'mm:' => 'i:', + // month leading zero + 'mm' => 'm', + // month no leading zero + 'm' => 'n', + // full day of week name + 'dddd' => 'l', + // short day of week name + 'ddd' => 'D', + // days leading zero + 'dd' => 'd', + // days no leading zero + 'd' => 'j', + // seconds + 'ss' => 's', + // fractional seconds - no php equivalent + '.s' => '' + ); + /** + * Search/replace values to convert Excel date/time format masks hours to PHP format masks (24 hr clock) + * + * @var array + */ + private static $_dateFormatReplacements24 = array( + 'hh' => 'H', + 'h' => 'G' + ); + /** + * Search/replace values to convert Excel date/time format masks hours to PHP format masks (12 hr clock) + * + * @var array + */ + private static $_dateFormatReplacements12 = array( + 'hh' => 'h', + 'h' => 'g' + ); + + private static function _formatAsDate(&$value, &$format) + { + // dvc: convert Excel formats to PHP date formats + + // strip off first part containing e.g. [$-F800] or [$USD-409] + // general syntax: [$<Currency string>-<language info>] + // language info is in hexadecimal + $format = preg_replace('/^(\[\$[A-Z]*-[0-9A-F]*\])/i', '', $format); + + // OpenOffice.org uses upper-case number formats, e.g. 'YYYY', convert to lower-case + $format = strtolower($format); + + $format = strtr($format,self::$_dateFormatReplacements); + if (!strpos($format,'A')) { // 24-hour time format + $format = strtr($format,self::$_dateFormatReplacements24); + } else { // 12-hour time format + $format = strtr($format,self::$_dateFormatReplacements12); + } + + $dateObj = PHPExcel_Shared_Date::ExcelToPHPObject($value); + $value = $dateObj->format($format); + } + + private static function _formatAsPercentage(&$value, &$format) + { + if ($format === self::FORMAT_PERCENTAGE) { + $value = round( (100 * $value), 0) . '%'; + } else { + if (preg_match('/\.[#0]+/i', $format, $m)) { + $s = substr($m[0], 0, 1) . (strlen($m[0]) - 1); + $format = str_replace($m[0], $s, $format); + } + if (preg_match('/^[#0]+/', $format, $m)) { + $format = str_replace($m[0], strlen($m[0]), $format); + } + $format = '%' . str_replace('%', 'f%%', $format); + + $value = sprintf($format, 100 * $value); + } + } + + private static function _formatAsFraction(&$value, &$format) + { + $sign = ($value < 0) ? '-' : ''; + + $integerPart = floor(abs($value)); + $decimalPart = trim(fmod(abs($value),1),'0.'); + $decimalLength = strlen($decimalPart); + $decimalDivisor = pow(10,$decimalLength); + + $GCD = PHPExcel_Calculation_MathTrig::GCD($decimalPart,$decimalDivisor); + + $adjustedDecimalPart = $decimalPart/$GCD; + $adjustedDecimalDivisor = $decimalDivisor/$GCD; + + if ((strpos($format,'0') !== false) || (strpos($format,'#') !== false) || (substr($format,0,3) == '? ?')) { + if ($integerPart == 0) { + $integerPart = ''; + } + $value = "$sign$integerPart $adjustedDecimalPart/$adjustedDecimalDivisor"; + } else { + $adjustedDecimalPart += $integerPart * $adjustedDecimalDivisor; + $value = "$sign$adjustedDecimalPart/$adjustedDecimalDivisor"; + } + } + + private static function _complexNumberFormatMask($number, $mask) { + if (strpos($mask,'.') !== false) { + $numbers = explode('.', $number . '.0'); + $masks = explode('.', $mask . '.0'); + $result1 = self::_complexNumberFormatMask($numbers[0], $masks[0]); + $result2 = strrev(self::_complexNumberFormatMask(strrev($numbers[1]), strrev($masks[1]))); + return $result1 . '.' . $result2; + } + + $r = preg_match_all('/0+/', $mask, $result, PREG_OFFSET_CAPTURE); + if ($r > 1) { + $result = array_reverse($result[0]); + + foreach($result as $block) { + $divisor = 1 . $block[0]; + $size = strlen($block[0]); + $offset = $block[1]; + + $blockValue = sprintf( + '%0' . $size . 'd', + fmod($number, $divisor) + ); + $number = floor($number / $divisor); + $mask = substr_replace($mask,$blockValue, $offset, $size); + } + if ($number > 0) { + $mask = substr_replace($mask, $number, $offset, 0); + } + $result = $mask; + } else { + $result = $number; + } + + return $result; + } + + /** + * Convert a value in a pre-defined format to a PHP string + * + * @param mixed $value Value to format + * @param string $format Format code + * @param array $callBack Callback function for additional formatting of string + * @return string Formatted string + */ + public static function toFormattedString($value = '0', $format = PHPExcel_Style_NumberFormat::FORMAT_GENERAL, $callBack = null) + { + // For now we do not treat strings although section 4 of a format code affects strings + if (!is_numeric($value)) return $value; + + // For 'General' format code, we just pass the value although this is not entirely the way Excel does it, + // it seems to round numbers to a total of 10 digits. + if (($format === PHPExcel_Style_NumberFormat::FORMAT_GENERAL) || ($format === PHPExcel_Style_NumberFormat::FORMAT_TEXT)) { + return $value; + } + + // Get the sections, there can be up to four sections + $sections = explode(';', $format); + + // Fetch the relevant section depending on whether number is positive, negative, or zero? + // Text not supported yet. + // Here is how the sections apply to various values in Excel: + // 1 section: [POSITIVE/NEGATIVE/ZERO/TEXT] + // 2 sections: [POSITIVE/ZERO/TEXT] [NEGATIVE] + // 3 sections: [POSITIVE/TEXT] [NEGATIVE] [ZERO] + // 4 sections: [POSITIVE] [NEGATIVE] [ZERO] [TEXT] + switch (count($sections)) { + case 1: + $format = $sections[0]; + break; + + case 2: + $format = ($value >= 0) ? $sections[0] : $sections[1]; + $value = abs($value); // Use the absolute value + break; + + case 3: + $format = ($value > 0) ? + $sections[0] : ( ($value < 0) ? + $sections[1] : $sections[2]); + $value = abs($value); // Use the absolute value + break; + + case 4: + $format = ($value > 0) ? + $sections[0] : ( ($value < 0) ? + $sections[1] : $sections[2]); + $value = abs($value); // Use the absolute value + break; + + default: + // something is wrong, just use first section + $format = $sections[0]; + break; + } + + // Save format with color information for later use below + $formatColor = $format; + + // Strip color information + $color_regex = '/^\\[[a-zA-Z]+\\]/'; + $format = preg_replace($color_regex, '', $format); + + // Let's begin inspecting the format and converting the value to a formatted string + if (preg_match('/^(\[\$[A-Z]*-[0-9A-F]*\])*[hmsdy]/i', $format)) { // datetime format + self::_formatAsDate($value, $format); + } else if (preg_match('/%$/', $format)) { // % number format + self::_formatAsPercentage($value, $format); + } else { + if ($format === self::FORMAT_CURRENCY_EUR_SIMPLE) { + $value = 'EUR ' . sprintf('%1.2f', $value); + } else { + // In Excel formats, "_" is used to add spacing, which we can't do in HTML + $format = preg_replace('/_./', '', $format); + + // Some non-number characters are escaped with \, which we don't need + $format = preg_replace("/\\\\/", '', $format); + + // Some non-number strings are quoted, so we'll get rid of the quotes, likewise any positional * symbols + $format = str_replace(array('"','*'), '', $format); + + // Find out if we need thousands separator + // This is indicated by a comma enclosed by a digit placeholder: + // #,# or 0,0 + $useThousands = preg_match('/(#,#|0,0)/', $format); + if ($useThousands) { + $format = preg_replace('/0,0/', '00', $format); + $format = preg_replace('/#,#/', '##', $format); + } + + // Scale thousands, millions,... + // This is indicated by a number of commas after a digit placeholder: + // #, or 0.0,, + $scale = 1; // same as no scale + $matches = array(); + if (preg_match('/(#|0)(,+)/', $format, $matches)) { + $scale = pow(1000, strlen($matches[2])); + + // strip the commas + $format = preg_replace('/0,+/', '0', $format); + $format = preg_replace('/#,+/', '#', $format); + } + + if (preg_match('/#?.*\?\/\?/', $format, $m)) { + //echo 'Format mask is fractional '.$format.' <br />'; + if ($value != (int)$value) { + self::_formatAsFraction($value, $format); + } + + } else { + // Handle the number itself + + // scale number + $value = $value / $scale; + + // Strip # + $format = preg_replace('/\\#/', '0', $format); + + $n = "/\[[^\]]+\]/"; + $m = preg_replace($n, '', $format); + $number_regex = "/(0+)(\.?)(0*)/"; + if (preg_match($number_regex, $m, $matches)) { + $left = $matches[1]; + $dec = $matches[2]; + $right = $matches[3]; + + // minimun width of formatted number (including dot) + $minWidth = strlen($left) + strlen($dec) + strlen($right); + if ($useThousands) { + $value = number_format( + $value + , strlen($right) + , PHPExcel_Shared_String::getDecimalSeparator() + , PHPExcel_Shared_String::getThousandsSeparator() + ); + $value = preg_replace($number_regex, $value, $format); + } else { + if (preg_match('/[0#]E[+-]0/i', $format)) { + // Scientific format + $value = sprintf('%5.2E', $value); + } elseif (preg_match('/0([^\d\.]+)0/', $format)) { + $value = self::_complexNumberFormatMask($value, $format); + } else { + $sprintf_pattern = "%0$minWidth." . strlen($right) . "f"; + $value = sprintf($sprintf_pattern, $value); + $value = preg_replace($number_regex, $value, $format); + } + } + } + } + if (preg_match('/\[\$(.*)\]/u', $format, $m)) { + // Currency or Accounting + $currencyFormat = $m[0]; + $currencyCode = $m[1]; + list($currencyCode) = explode('-',$currencyCode); + if ($currencyCode == '') { + $currencyCode = PHPExcel_Shared_String::getCurrencyCode(); + } + $value = preg_replace('/\[\$([^\]]*)\]/u',$currencyCode,$value); + } + } + } + + // Additional formatting provided by callback function + if ($callBack !== null) { + list($writerInstance, $function) = $callBack; + $value = $writerInstance->$function($value, $formatColor); + } + + return $value; + } + +} diff --git a/admin/helpers/PHPExcel/Style/Protection.php b/admin/helpers/PHPExcel/Style/Protection.php new file mode 100644 index 00000000..8dc1f31a --- /dev/null +++ b/admin/helpers/PHPExcel/Style/Protection.php @@ -0,0 +1,207 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version 1.4.5, 2007-08-23 + */ + + +/** + * PHPExcel_Style_Protection + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Style_Protection extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable +{ + /** Protection styles */ + const PROTECTION_INHERIT = 'inherit'; + const PROTECTION_PROTECTED = 'protected'; + const PROTECTION_UNPROTECTED = 'unprotected'; + + /** + * Locked + * + * @var string + */ + protected $_locked; + + /** + * Hidden + * + * @var string + */ + protected $_hidden; + + /** + * Create a new PHPExcel_Style_Protection + * + * @param boolean $isSupervisor Flag indicating if this is a supervisor or not + * Leave this value at default unless you understand exactly what + * its ramifications are + * @param boolean $isConditional Flag indicating if this is a conditional style or not + * Leave this value at default unless you understand exactly what + * its ramifications are + */ + public function __construct($isSupervisor = FALSE, $isConditional = FALSE) + { + // Supervisor? + parent::__construct($isSupervisor); + + // Initialise values + if (!$isConditional) { + $this->_locked = self::PROTECTION_INHERIT; + $this->_hidden = self::PROTECTION_INHERIT; + } + } + + /** + * Get the shared style component for the currently active cell in currently active sheet. + * Only used for style supervisor + * + * @return PHPExcel_Style_Protection + */ + public function getSharedComponent() + { + return $this->_parent->getSharedComponent()->getProtection(); + } + + /** + * Build style array from subcomponents + * + * @param array $array + * @return array + */ + public function getStyleArray($array) + { + return array('protection' => $array); + } + + /** + * Apply styles from array + * + * <code> + * $objPHPExcel->getActiveSheet()->getStyle('B2')->getLocked()->applyFromArray( + * array( + * 'locked' => TRUE, + * 'hidden' => FALSE + * ) + * ); + * </code> + * + * @param array $pStyles Array containing style information + * @throws PHPExcel_Exception + * @return PHPExcel_Style_Protection + */ + public function applyFromArray($pStyles = NULL) { + if (is_array($pStyles)) { + if ($this->_isSupervisor) { + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles)); + } else { + if (isset($pStyles['locked'])) { + $this->setLocked($pStyles['locked']); + } + if (isset($pStyles['hidden'])) { + $this->setHidden($pStyles['hidden']); + } + } + } else { + throw new PHPExcel_Exception("Invalid style array passed."); + } + return $this; + } + + /** + * Get locked + * + * @return string + */ + public function getLocked() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getLocked(); + } + return $this->_locked; + } + + /** + * Set locked + * + * @param string $pValue + * @return PHPExcel_Style_Protection + */ + public function setLocked($pValue = self::PROTECTION_INHERIT) { + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('locked' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_locked = $pValue; + } + return $this; + } + + /** + * Get hidden + * + * @return string + */ + public function getHidden() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getHidden(); + } + return $this->_hidden; + } + + /** + * Set hidden + * + * @param string $pValue + * @return PHPExcel_Style_Protection + */ + public function setHidden($pValue = self::PROTECTION_INHERIT) { + if ($this->_isSupervisor) { + $styleArray = $this->getStyleArray(array('hidden' => $pValue)); + $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); + } else { + $this->_hidden = $pValue; + } + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + if ($this->_isSupervisor) { + return $this->getSharedComponent()->getHashCode(); + } + return md5( + $this->_locked + . $this->_hidden + . __CLASS__ + ); + } + +} diff --git a/admin/helpers/PHPExcel/Style/Supervisor.php b/admin/helpers/PHPExcel/Style/Supervisor.php new file mode 100644 index 00000000..2d21f529 --- /dev/null +++ b/admin/helpers/PHPExcel/Style/Supervisor.php @@ -0,0 +1,132 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Style_Supervisor + * + * @category PHPExcel + * @package PHPExcel_Style + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +abstract class PHPExcel_Style_Supervisor +{ + /** + * Supervisor? + * + * @var boolean + */ + protected $_isSupervisor; + + /** + * Parent. Only used for supervisor + * + * @var PHPExcel_Style + */ + protected $_parent; + + /** + * Create a new PHPExcel_Style_Alignment + * + * @param boolean $isSupervisor Flag indicating if this is a supervisor or not + * Leave this value at default unless you understand exactly what + * its ramifications are + */ + public function __construct($isSupervisor = FALSE) + { + // Supervisor? + $this->_isSupervisor = $isSupervisor; + } + + /** + * Bind parent. Only used for supervisor + * + * @param PHPExcel $parent + * @return PHPExcel_Style_Supervisor + */ + public function bindParent($parent, $parentPropertyName=NULL) + { + $this->_parent = $parent; + return $this; + } + + /** + * Is this a supervisor or a cell style component? + * + * @return boolean + */ + public function getIsSupervisor() + { + return $this->_isSupervisor; + } + + /** + * Get the currently active sheet. Only used for supervisor + * + * @return PHPExcel_Worksheet + */ + public function getActiveSheet() + { + return $this->_parent->getActiveSheet(); + } + + /** + * Get the currently active cell coordinate in currently active sheet. + * Only used for supervisor + * + * @return string E.g. 'A1' + */ + public function getSelectedCells() + { + return $this->getActiveSheet()->getSelectedCells(); + } + + /** + * Get the currently active cell coordinate in currently active sheet. + * Only used for supervisor + * + * @return string E.g. 'A1' + */ + public function getActiveCell() + { + return $this->getActiveSheet()->getActiveCell(); + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if ((is_object($value)) && ($key != '_parent')) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Style/index.html b/admin/helpers/PHPExcel/Style/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Style/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Worksheet.php b/admin/helpers/PHPExcel/Worksheet.php new file mode 100644 index 00000000..6215be8b --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet.php @@ -0,0 +1,2917 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet implements PHPExcel_IComparable +{ + /* Break types */ + const BREAK_NONE = 0; + const BREAK_ROW = 1; + const BREAK_COLUMN = 2; + + /* Sheet state */ + const SHEETSTATE_VISIBLE = 'visible'; + const SHEETSTATE_HIDDEN = 'hidden'; + const SHEETSTATE_VERYHIDDEN = 'veryHidden'; + + /** + * Invalid characters in sheet title + * + * @var array + */ + private static $_invalidCharacters = array('*', ':', '/', '\\', '?', '[', ']'); + + /** + * Parent spreadsheet + * + * @var PHPExcel + */ + private $_parent; + + /** + * Cacheable collection of cells + * + * @var PHPExcel_CachedObjectStorage_xxx + */ + private $_cellCollection = null; + + /** + * Collection of row dimensions + * + * @var PHPExcel_Worksheet_RowDimension[] + */ + private $_rowDimensions = array(); + + /** + * Default row dimension + * + * @var PHPExcel_Worksheet_RowDimension + */ + private $_defaultRowDimension = null; + + /** + * Collection of column dimensions + * + * @var PHPExcel_Worksheet_ColumnDimension[] + */ + private $_columnDimensions = array(); + + /** + * Default column dimension + * + * @var PHPExcel_Worksheet_ColumnDimension + */ + private $_defaultColumnDimension = null; + + /** + * Collection of drawings + * + * @var PHPExcel_Worksheet_BaseDrawing[] + */ + private $_drawingCollection = null; + + /** + * Collection of Chart objects + * + * @var PHPExcel_Chart[] + */ + private $_chartCollection = array(); + + /** + * Worksheet title + * + * @var string + */ + private $_title; + + /** + * Sheet state + * + * @var string + */ + private $_sheetState; + + /** + * Page setup + * + * @var PHPExcel_Worksheet_PageSetup + */ + private $_pageSetup; + + /** + * Page margins + * + * @var PHPExcel_Worksheet_PageMargins + */ + private $_pageMargins; + + /** + * Page header/footer + * + * @var PHPExcel_Worksheet_HeaderFooter + */ + private $_headerFooter; + + /** + * Sheet view + * + * @var PHPExcel_Worksheet_SheetView + */ + private $_sheetView; + + /** + * Protection + * + * @var PHPExcel_Worksheet_Protection + */ + private $_protection; + + /** + * Collection of styles + * + * @var PHPExcel_Style[] + */ + private $_styles = array(); + + /** + * Conditional styles. Indexed by cell coordinate, e.g. 'A1' + * + * @var array + */ + private $_conditionalStylesCollection = array(); + + /** + * Is the current cell collection sorted already? + * + * @var boolean + */ + private $_cellCollectionIsSorted = false; + + /** + * Collection of breaks + * + * @var array + */ + private $_breaks = array(); + + /** + * Collection of merged cell ranges + * + * @var array + */ + private $_mergeCells = array(); + + /** + * Collection of protected cell ranges + * + * @var array + */ + private $_protectedCells = array(); + + /** + * Autofilter Range and selection + * + * @var PHPExcel_Worksheet_AutoFilter + */ + private $_autoFilter = NULL; + + /** + * Freeze pane + * + * @var string + */ + private $_freezePane = ''; + + /** + * Show gridlines? + * + * @var boolean + */ + private $_showGridlines = true; + + /** + * Print gridlines? + * + * @var boolean + */ + private $_printGridlines = false; + + /** + * Show row and column headers? + * + * @var boolean + */ + private $_showRowColHeaders = true; + + /** + * Show summary below? (Row/Column outline) + * + * @var boolean + */ + private $_showSummaryBelow = true; + + /** + * Show summary right? (Row/Column outline) + * + * @var boolean + */ + private $_showSummaryRight = true; + + /** + * Collection of comments + * + * @var PHPExcel_Comment[] + */ + private $_comments = array(); + + /** + * Active cell. (Only one!) + * + * @var string + */ + private $_activeCell = 'A1'; + + /** + * Selected cells + * + * @var string + */ + private $_selectedCells = 'A1'; + + /** + * Cached highest column + * + * @var string + */ + private $_cachedHighestColumn = 'A'; + + /** + * Cached highest row + * + * @var int + */ + private $_cachedHighestRow = 1; + + /** + * Right-to-left? + * + * @var boolean + */ + private $_rightToLeft = false; + + /** + * Hyperlinks. Indexed by cell coordinate, e.g. 'A1' + * + * @var array + */ + private $_hyperlinkCollection = array(); + + /** + * Data validation objects. Indexed by cell coordinate, e.g. 'A1' + * + * @var array + */ + private $_dataValidationCollection = array(); + + /** + * Tab color + * + * @var PHPExcel_Style_Color + */ + private $_tabColor; + + /** + * Dirty flag + * + * @var boolean + */ + private $_dirty = true; + + /** + * Hash + * + * @var string + */ + private $_hash = null; + + /** + * CodeName + * + * @var string + */ + private $_codeName = null; + + /** + * Create a new worksheet + * + * @param PHPExcel $pParent + * @param string $pTitle + */ + public function __construct(PHPExcel $pParent = null, $pTitle = 'Worksheet') + { + // Set parent and title + $this->_parent = $pParent; + $this->setTitle($pTitle, FALSE); + // setTitle can change $pTitle + $this->setCodeName($this->getTitle()); + $this->setSheetState(PHPExcel_Worksheet::SHEETSTATE_VISIBLE); + + $this->_cellCollection = PHPExcel_CachedObjectStorageFactory::getInstance($this); + + // Set page setup + $this->_pageSetup = new PHPExcel_Worksheet_PageSetup(); + + // Set page margins + $this->_pageMargins = new PHPExcel_Worksheet_PageMargins(); + + // Set page header/footer + $this->_headerFooter = new PHPExcel_Worksheet_HeaderFooter(); + + // Set sheet view + $this->_sheetView = new PHPExcel_Worksheet_SheetView(); + + // Drawing collection + $this->_drawingCollection = new ArrayObject(); + + // Chart collection + $this->_chartCollection = new ArrayObject(); + + // Protection + $this->_protection = new PHPExcel_Worksheet_Protection(); + + // Default row dimension + $this->_defaultRowDimension = new PHPExcel_Worksheet_RowDimension(NULL); + + // Default column dimension + $this->_defaultColumnDimension = new PHPExcel_Worksheet_ColumnDimension(NULL); + + $this->_autoFilter = new PHPExcel_Worksheet_AutoFilter(NULL, $this); + } + + + /** + * Disconnect all cells from this PHPExcel_Worksheet object, + * typically so that the worksheet object can be unset + * + */ + public function disconnectCells() { + if ( $this->_cellCollection !== NULL){ + $this->_cellCollection->unsetWorksheetCells(); + $this->_cellCollection = NULL; + } + // detach ourself from the workbook, so that it can then delete this worksheet successfully + $this->_parent = null; + } + + /** + * Code to execute when this worksheet is unset() + * + */ + function __destruct() { + PHPExcel_Calculation::getInstance($this->_parent) + ->clearCalculationCacheForWorksheet($this->_title); + + $this->disconnectCells(); + } + + /** + * Return the cache controller for the cell collection + * + * @return PHPExcel_CachedObjectStorage_xxx + */ + public function getCellCacheController() { + return $this->_cellCollection; + } // function getCellCacheController() + + + /** + * Get array of invalid characters for sheet title + * + * @return array + */ + public static function getInvalidCharacters() + { + return self::$_invalidCharacters; + } + + /** + * Check sheet code name for valid Excel syntax + * + * @param string $pValue The string to check + * @return string The valid string + * @throws Exception + */ + private static function _checkSheetCodeName($pValue) + { + $CharCount = PHPExcel_Shared_String::CountCharacters($pValue); + if ($CharCount == 0) { + throw new PHPExcel_Exception('Sheet code name cannot be empty.'); + } + // Some of the printable ASCII characters are invalid: * : / \ ? [ ] and first and last characters cannot be a "'" + if ((str_replace(self::$_invalidCharacters, '', $pValue) !== $pValue) || + (PHPExcel_Shared_String::Substring($pValue,-1,1)=='\'') || + (PHPExcel_Shared_String::Substring($pValue,0,1)=='\'')) { + throw new PHPExcel_Exception('Invalid character found in sheet code name'); + } + + // Maximum 31 characters allowed for sheet title + if ($CharCount > 31) { + throw new PHPExcel_Exception('Maximum 31 characters allowed in sheet code name.'); + } + + return $pValue; + } + + /** + * Check sheet title for valid Excel syntax + * + * @param string $pValue The string to check + * @return string The valid string + * @throws PHPExcel_Exception + */ + private static function _checkSheetTitle($pValue) + { + // Some of the printable ASCII characters are invalid: * : / \ ? [ ] + if (str_replace(self::$_invalidCharacters, '', $pValue) !== $pValue) { + throw new PHPExcel_Exception('Invalid character found in sheet title'); + } + + // Maximum 31 characters allowed for sheet title + if (PHPExcel_Shared_String::CountCharacters($pValue) > 31) { + throw new PHPExcel_Exception('Maximum 31 characters allowed in sheet title.'); + } + + return $pValue; + } + + /** + * Get collection of cells + * + * @param boolean $pSorted Also sort the cell collection? + * @return PHPExcel_Cell[] + */ + public function getCellCollection($pSorted = true) + { + if ($pSorted) { + // Re-order cell collection + return $this->sortCellCollection(); + } + if ($this->_cellCollection !== NULL) { + return $this->_cellCollection->getCellList(); + } + return array(); + } + + /** + * Sort collection of cells + * + * @return PHPExcel_Worksheet + */ + public function sortCellCollection() + { + if ($this->_cellCollection !== NULL) { + return $this->_cellCollection->getSortedCellList(); + } + return array(); + } + + /** + * Get collection of row dimensions + * + * @return PHPExcel_Worksheet_RowDimension[] + */ + public function getRowDimensions() + { + return $this->_rowDimensions; + } + + /** + * Get default row dimension + * + * @return PHPExcel_Worksheet_RowDimension + */ + public function getDefaultRowDimension() + { + return $this->_defaultRowDimension; + } + + /** + * Get collection of column dimensions + * + * @return PHPExcel_Worksheet_ColumnDimension[] + */ + public function getColumnDimensions() + { + return $this->_columnDimensions; + } + + /** + * Get default column dimension + * + * @return PHPExcel_Worksheet_ColumnDimension + */ + public function getDefaultColumnDimension() + { + return $this->_defaultColumnDimension; + } + + /** + * Get collection of drawings + * + * @return PHPExcel_Worksheet_BaseDrawing[] + */ + public function getDrawingCollection() + { + return $this->_drawingCollection; + } + + /** + * Get collection of charts + * + * @return PHPExcel_Chart[] + */ + public function getChartCollection() + { + return $this->_chartCollection; + } + + /** + * Add chart + * + * @param PHPExcel_Chart $pChart + * @param int|null $iChartIndex Index where chart should go (0,1,..., or null for last) + * @return PHPExcel_Chart + */ + public function addChart(PHPExcel_Chart $pChart = null, $iChartIndex = null) + { + $pChart->setWorksheet($this); + if (is_null($iChartIndex)) { + $this->_chartCollection[] = $pChart; + } else { + // Insert the chart at the requested index + array_splice($this->_chartCollection, $iChartIndex, 0, array($pChart)); + } + + return $pChart; + } + + /** + * Return the count of charts on this worksheet + * + * @return int The number of charts + */ + public function getChartCount() + { + return count($this->_chartCollection); + } + + /** + * Get a chart by its index position + * + * @param string $index Chart index position + * @return false|PHPExcel_Chart + * @throws PHPExcel_Exception + */ + public function getChartByIndex($index = null) + { + $chartCount = count($this->_chartCollection); + if ($chartCount == 0) { + return false; + } + if (is_null($index)) { + $index = --$chartCount; + } + if (!isset($this->_chartCollection[$index])) { + return false; + } + + return $this->_chartCollection[$index]; + } + + /** + * Return an array of the names of charts on this worksheet + * + * @return string[] The names of charts + * @throws PHPExcel_Exception + */ + public function getChartNames() + { + $chartNames = array(); + foreach($this->_chartCollection as $chart) { + $chartNames[] = $chart->getName(); + } + return $chartNames; + } + + /** + * Get a chart by name + * + * @param string $chartName Chart name + * @return false|PHPExcel_Chart + * @throws PHPExcel_Exception + */ + public function getChartByName($chartName = '') + { + $chartCount = count($this->_chartCollection); + if ($chartCount == 0) { + return false; + } + foreach($this->_chartCollection as $index => $chart) { + if ($chart->getName() == $chartName) { + return $this->_chartCollection[$index]; + } + } + return false; + } + + /** + * Refresh column dimensions + * + * @return PHPExcel_Worksheet + */ + public function refreshColumnDimensions() + { + $currentColumnDimensions = $this->getColumnDimensions(); + $newColumnDimensions = array(); + + foreach ($currentColumnDimensions as $objColumnDimension) { + $newColumnDimensions[$objColumnDimension->getColumnIndex()] = $objColumnDimension; + } + + $this->_columnDimensions = $newColumnDimensions; + + return $this; + } + + /** + * Refresh row dimensions + * + * @return PHPExcel_Worksheet + */ + public function refreshRowDimensions() + { + $currentRowDimensions = $this->getRowDimensions(); + $newRowDimensions = array(); + + foreach ($currentRowDimensions as $objRowDimension) { + $newRowDimensions[$objRowDimension->getRowIndex()] = $objRowDimension; + } + + $this->_rowDimensions = $newRowDimensions; + + return $this; + } + + /** + * Calculate worksheet dimension + * + * @return string String containing the dimension of this worksheet + */ + public function calculateWorksheetDimension() + { + // Return + return 'A1' . ':' . $this->getHighestColumn() . $this->getHighestRow(); + } + + /** + * Calculate worksheet data dimension + * + * @return string String containing the dimension of this worksheet that actually contain data + */ + public function calculateWorksheetDataDimension() + { + // Return + return 'A1' . ':' . $this->getHighestDataColumn() . $this->getHighestDataRow(); + } + + /** + * Calculate widths for auto-size columns + * + * @param boolean $calculateMergeCells Calculate merge cell width + * @return PHPExcel_Worksheet; + */ + public function calculateColumnWidths($calculateMergeCells = false) + { + // initialize $autoSizes array + $autoSizes = array(); + foreach ($this->getColumnDimensions() as $colDimension) { + if ($colDimension->getAutoSize()) { + $autoSizes[$colDimension->getColumnIndex()] = -1; + } + } + + // There is only something to do if there are some auto-size columns + if (!empty($autoSizes)) { + + // build list of cells references that participate in a merge + $isMergeCell = array(); + foreach ($this->getMergeCells() as $cells) { + foreach (PHPExcel_Cell::extractAllCellReferencesInRange($cells) as $cellReference) { + $isMergeCell[$cellReference] = true; + } + } + + // loop through all cells in the worksheet + foreach ($this->getCellCollection(false) as $cellID) { + $cell = $this->getCell($cellID); + if (isset($autoSizes[$this->_cellCollection->getCurrentColumn()])) { + // Determine width if cell does not participate in a merge + if (!isset($isMergeCell[$this->_cellCollection->getCurrentAddress()])) { + // Calculated value + // To formatted string + $cellValue = PHPExcel_Style_NumberFormat::toFormattedString( + $cell->getCalculatedValue(), + $this->getParent()->getCellXfByIndex($cell->getXfIndex())->getNumberFormat()->getFormatCode() + ); + + $autoSizes[$this->_cellCollection->getCurrentColumn()] = max( + (float) $autoSizes[$this->_cellCollection->getCurrentColumn()], + (float)PHPExcel_Shared_Font::calculateColumnWidth( + $this->getParent()->getCellXfByIndex($cell->getXfIndex())->getFont(), + $cellValue, + $this->getParent()->getCellXfByIndex($cell->getXfIndex())->getAlignment()->getTextRotation(), + $this->getDefaultStyle()->getFont() + ) + ); + } + } + } + + // adjust column widths + foreach ($autoSizes as $columnIndex => $width) { + if ($width == -1) $width = $this->getDefaultColumnDimension()->getWidth(); + $this->getColumnDimension($columnIndex)->setWidth($width); + } + } + + return $this; + } + + /** + * Get parent + * + * @return PHPExcel + */ + public function getParent() { + return $this->_parent; + } + + /** + * Re-bind parent + * + * @param PHPExcel $parent + * @return PHPExcel_Worksheet + */ + public function rebindParent(PHPExcel $parent) { + if ($this->_parent !== null) { + $namedRanges = $this->_parent->getNamedRanges(); + foreach ($namedRanges as $namedRange) { + $parent->addNamedRange($namedRange); + } + + $this->_parent->removeSheetByIndex( + $this->_parent->getIndex($this) + ); + } + $this->_parent = $parent; + + return $this; + } + + /** + * Get title + * + * @return string + */ + public function getTitle() + { + return $this->_title; + } + + /** + * Set title + * + * @param string $pValue String containing the dimension of this worksheet + * @param string $updateFormulaCellReferences boolean Flag indicating whether cell references in formulae should + * be updated to reflect the new sheet name. + * This should be left as the default true, unless you are + * certain that no formula cells on any worksheet contain + * references to this worksheet + * @return PHPExcel_Worksheet + */ + public function setTitle($pValue = 'Worksheet', $updateFormulaCellReferences = true) + { + // Is this a 'rename' or not? + if ($this->getTitle() == $pValue) { + return $this; + } + + // Syntax check + self::_checkSheetTitle($pValue); + + // Old title + $oldTitle = $this->getTitle(); + + if ($this->_parent) { + // Is there already such sheet name? + if ($this->_parent->sheetNameExists($pValue)) { + // Use name, but append with lowest possible integer + + if (PHPExcel_Shared_String::CountCharacters($pValue) > 29) { + $pValue = PHPExcel_Shared_String::Substring($pValue,0,29); + } + $i = 1; + while ($this->_parent->sheetNameExists($pValue . ' ' . $i)) { + ++$i; + if ($i == 10) { + if (PHPExcel_Shared_String::CountCharacters($pValue) > 28) { + $pValue = PHPExcel_Shared_String::Substring($pValue,0,28); + } + } elseif ($i == 100) { + if (PHPExcel_Shared_String::CountCharacters($pValue) > 27) { + $pValue = PHPExcel_Shared_String::Substring($pValue,0,27); + } + } + } + + $altTitle = $pValue . ' ' . $i; + return $this->setTitle($altTitle,$updateFormulaCellReferences); + } + } + + // Set title + $this->_title = $pValue; + $this->_dirty = true; + + if ($this->_parent) { + // New title + $newTitle = $this->getTitle(); + PHPExcel_Calculation::getInstance($this->_parent) + ->renameCalculationCacheForWorksheet($oldTitle, $newTitle); + if ($updateFormulaCellReferences) + PHPExcel_ReferenceHelper::getInstance()->updateNamedFormulas($this->_parent, $oldTitle, $newTitle); + } + + return $this; + } + + /** + * Get sheet state + * + * @return string Sheet state (visible, hidden, veryHidden) + */ + public function getSheetState() { + return $this->_sheetState; + } + + /** + * Set sheet state + * + * @param string $value Sheet state (visible, hidden, veryHidden) + * @return PHPExcel_Worksheet + */ + public function setSheetState($value = PHPExcel_Worksheet::SHEETSTATE_VISIBLE) { + $this->_sheetState = $value; + return $this; + } + + /** + * Get page setup + * + * @return PHPExcel_Worksheet_PageSetup + */ + public function getPageSetup() + { + return $this->_pageSetup; + } + + /** + * Set page setup + * + * @param PHPExcel_Worksheet_PageSetup $pValue + * @return PHPExcel_Worksheet + */ + public function setPageSetup(PHPExcel_Worksheet_PageSetup $pValue) + { + $this->_pageSetup = $pValue; + return $this; + } + + /** + * Get page margins + * + * @return PHPExcel_Worksheet_PageMargins + */ + public function getPageMargins() + { + return $this->_pageMargins; + } + + /** + * Set page margins + * + * @param PHPExcel_Worksheet_PageMargins $pValue + * @return PHPExcel_Worksheet + */ + public function setPageMargins(PHPExcel_Worksheet_PageMargins $pValue) + { + $this->_pageMargins = $pValue; + return $this; + } + + /** + * Get page header/footer + * + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function getHeaderFooter() + { + return $this->_headerFooter; + } + + /** + * Set page header/footer + * + * @param PHPExcel_Worksheet_HeaderFooter $pValue + * @return PHPExcel_Worksheet + */ + public function setHeaderFooter(PHPExcel_Worksheet_HeaderFooter $pValue) + { + $this->_headerFooter = $pValue; + return $this; + } + + /** + * Get sheet view + * + * @return PHPExcel_Worksheet_SheetView + */ + public function getSheetView() + { + return $this->_sheetView; + } + + /** + * Set sheet view + * + * @param PHPExcel_Worksheet_SheetView $pValue + * @return PHPExcel_Worksheet + */ + public function setSheetView(PHPExcel_Worksheet_SheetView $pValue) + { + $this->_sheetView = $pValue; + return $this; + } + + /** + * Get Protection + * + * @return PHPExcel_Worksheet_Protection + */ + public function getProtection() + { + return $this->_protection; + } + + /** + * Set Protection + * + * @param PHPExcel_Worksheet_Protection $pValue + * @return PHPExcel_Worksheet + */ + public function setProtection(PHPExcel_Worksheet_Protection $pValue) + { + $this->_protection = $pValue; + $this->_dirty = true; + + return $this; + } + + /** + * Get highest worksheet column + * + * @param string $row Return the data highest column for the specified row, + * or the highest column of any row if no row number is passed + * @return string Highest column name + */ + public function getHighestColumn($row = null) + { + if ($row == null) { + return $this->_cachedHighestColumn; + } + return $this->getHighestDataColumn($row); + } + + /** + * Get highest worksheet column that contains data + * + * @param string $row Return the highest data column for the specified row, + * or the highest data column of any row if no row number is passed + * @return string Highest column name that contains data + */ + public function getHighestDataColumn($row = null) + { + return $this->_cellCollection->getHighestColumn($row); + } + + /** + * Get highest worksheet row + * + * @param string $column Return the highest data row for the specified column, + * or the highest row of any column if no column letter is passed + * @return int Highest row number + */ + public function getHighestRow($column = null) + { + if ($column == null) { + return $this->_cachedHighestRow; + } + return $this->getHighestDataRow($column); + } + + /** + * Get highest worksheet row that contains data + * + * @param string $column Return the highest data row for the specified column, + * or the highest data row of any column if no column letter is passed + * @return string Highest row number that contains data + */ + public function getHighestDataRow($column = null) + { + return $this->_cellCollection->getHighestRow($column); + } + + /** + * Get highest worksheet column and highest row that have cell records + * + * @return array Highest column name and highest row number + */ + public function getHighestRowAndColumn() + { + return $this->_cellCollection->getHighestRowAndColumn(); + } + + /** + * Set a cell value + * + * @param string $pCoordinate Coordinate of the cell + * @param mixed $pValue Value of the cell + * @param bool $returnCell Return the worksheet (false, default) or the cell (true) + * @return PHPExcel_Worksheet|PHPExcel_Cell Depending on the last parameter being specified + */ + public function setCellValue($pCoordinate = 'A1', $pValue = null, $returnCell = false) + { + $cell = $this->getCell($pCoordinate)->setValue($pValue); + return ($returnCell) ? $cell : $this; + } + + /** + * Set a cell value by using numeric cell coordinates + * + * @param string $pColumn Numeric column coordinate of the cell (A = 0) + * @param string $pRow Numeric row coordinate of the cell + * @param mixed $pValue Value of the cell + * @param bool $returnCell Return the worksheet (false, default) or the cell (true) + * @return PHPExcel_Worksheet|PHPExcel_Cell Depending on the last parameter being specified + */ + public function setCellValueByColumnAndRow($pColumn = 0, $pRow = 1, $pValue = null, $returnCell = false) + { + $cell = $this->getCellByColumnAndRow($pColumn, $pRow)->setValue($pValue); + return ($returnCell) ? $cell : $this; + } + + /** + * Set a cell value + * + * @param string $pCoordinate Coordinate of the cell + * @param mixed $pValue Value of the cell + * @param string $pDataType Explicit data type + * @param bool $returnCell Return the worksheet (false, default) or the cell (true) + * @return PHPExcel_Worksheet|PHPExcel_Cell Depending on the last parameter being specified + */ + public function setCellValueExplicit($pCoordinate = 'A1', $pValue = null, $pDataType = PHPExcel_Cell_DataType::TYPE_STRING, $returnCell = false) + { + // Set value + $cell = $this->getCell($pCoordinate)->setValueExplicit($pValue, $pDataType); + return ($returnCell) ? $cell : $this; + } + + /** + * Set a cell value by using numeric cell coordinates + * + * @param string $pColumn Numeric column coordinate of the cell + * @param string $pRow Numeric row coordinate of the cell + * @param mixed $pValue Value of the cell + * @param string $pDataType Explicit data type + * @param bool $returnCell Return the worksheet (false, default) or the cell (true) + * @return PHPExcel_Worksheet|PHPExcel_Cell Depending on the last parameter being specified + */ + public function setCellValueExplicitByColumnAndRow($pColumn = 0, $pRow = 1, $pValue = null, $pDataType = PHPExcel_Cell_DataType::TYPE_STRING, $returnCell = false) + { + $cell = $this->getCellByColumnAndRow($pColumn, $pRow)->setValueExplicit($pValue, $pDataType); + return ($returnCell) ? $cell : $this; + } + + /** + * Get cell at a specific coordinate + * + * @param string $pCoordinate Coordinate of the cell + * @throws PHPExcel_Exception + * @return PHPExcel_Cell Cell that was found + */ + public function getCell($pCoordinate = 'A1') + { + // Check cell collection + if ($this->_cellCollection->isDataSet($pCoordinate)) { + return $this->_cellCollection->getCacheData($pCoordinate); + } + + // Worksheet reference? + if (strpos($pCoordinate, '!') !== false) { + $worksheetReference = PHPExcel_Worksheet::extractSheetTitle($pCoordinate, true); + return $this->_parent->getSheetByName($worksheetReference[0])->getCell($worksheetReference[1]); + } + + // Named range? + if ((!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $pCoordinate, $matches)) && + (preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $pCoordinate, $matches))) { + $namedRange = PHPExcel_NamedRange::resolveRange($pCoordinate, $this); + if ($namedRange !== NULL) { + $pCoordinate = $namedRange->getRange(); + return $namedRange->getWorksheet()->getCell($pCoordinate); + } + } + + // Uppercase coordinate + $pCoordinate = strtoupper($pCoordinate); + + if (strpos($pCoordinate, ':') !== false || strpos($pCoordinate, ',') !== false) { + throw new PHPExcel_Exception('Cell coordinate can not be a range of cells.'); + } elseif (strpos($pCoordinate, '$') !== false) { + throw new PHPExcel_Exception('Cell coordinate must not be absolute.'); + } + + // Create new cell object + return $this->_createNewCell($pCoordinate); + } + + /** + * Get cell at a specific coordinate by using numeric cell coordinates + * + * @param string $pColumn Numeric column coordinate of the cell + * @param string $pRow Numeric row coordinate of the cell + * @return PHPExcel_Cell Cell that was found + */ + public function getCellByColumnAndRow($pColumn = 0, $pRow = 1) + { + $columnLetter = PHPExcel_Cell::stringFromColumnIndex($pColumn); + $coordinate = $columnLetter . $pRow; + + if ($this->_cellCollection->isDataSet($coordinate)) { + return $this->_cellCollection->getCacheData($coordinate); + } + + return $this->_createNewCell($coordinate); + } + + /** + * Create a new cell at the specified coordinate + * + * @param string $pCoordinate Coordinate of the cell + * @return PHPExcel_Cell Cell that was created + */ + private function _createNewCell($pCoordinate) + { + $cell = $this->_cellCollection->addCacheData( + $pCoordinate, + new PHPExcel_Cell( + NULL, + PHPExcel_Cell_DataType::TYPE_NULL, + $this + ) + ); + $this->_cellCollectionIsSorted = false; + + // Coordinates + $aCoordinates = PHPExcel_Cell::coordinateFromString($pCoordinate); + if (PHPExcel_Cell::columnIndexFromString($this->_cachedHighestColumn) < PHPExcel_Cell::columnIndexFromString($aCoordinates[0])) + $this->_cachedHighestColumn = $aCoordinates[0]; + $this->_cachedHighestRow = max($this->_cachedHighestRow, $aCoordinates[1]); + + // Cell needs appropriate xfIndex from dimensions records + // but don't create dimension records if they don't already exist + $rowDimension = $this->getRowDimension($aCoordinates[1], FALSE); + $columnDimension = $this->getColumnDimension($aCoordinates[0], FALSE); + + if ($rowDimension !== NULL && $rowDimension->getXfIndex() > 0) { + // then there is a row dimension with explicit style, assign it to the cell + $cell->setXfIndex($rowDimension->getXfIndex()); + } elseif ($columnDimension !== NULL && $columnDimension->getXfIndex() > 0) { + // then there is a column dimension, assign it to the cell + $cell->setXfIndex($columnDimension->getXfIndex()); + } + + return $cell; + } + + /** + * Does the cell at a specific coordinate exist? + * + * @param string $pCoordinate Coordinate of the cell + * @throws PHPExcel_Exception + * @return boolean + */ + public function cellExists($pCoordinate = 'A1') + { + // Worksheet reference? + if (strpos($pCoordinate, '!') !== false) { + $worksheetReference = PHPExcel_Worksheet::extractSheetTitle($pCoordinate, true); + return $this->_parent->getSheetByName($worksheetReference[0])->cellExists($worksheetReference[1]); + } + + // Named range? + if ((!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $pCoordinate, $matches)) && + (preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $pCoordinate, $matches))) { + $namedRange = PHPExcel_NamedRange::resolveRange($pCoordinate, $this); + if ($namedRange !== NULL) { + $pCoordinate = $namedRange->getRange(); + if ($this->getHashCode() != $namedRange->getWorksheet()->getHashCode()) { + if (!$namedRange->getLocalOnly()) { + return $namedRange->getWorksheet()->cellExists($pCoordinate); + } else { + throw new PHPExcel_Exception('Named range ' . $namedRange->getName() . ' is not accessible from within sheet ' . $this->getTitle()); + } + } + } + else { return false; } + } + + // Uppercase coordinate + $pCoordinate = strtoupper($pCoordinate); + + if (strpos($pCoordinate,':') !== false || strpos($pCoordinate,',') !== false) { + throw new PHPExcel_Exception('Cell coordinate can not be a range of cells.'); + } elseif (strpos($pCoordinate,'$') !== false) { + throw new PHPExcel_Exception('Cell coordinate must not be absolute.'); + } else { + // Coordinates + $aCoordinates = PHPExcel_Cell::coordinateFromString($pCoordinate); + + // Cell exists? + return $this->_cellCollection->isDataSet($pCoordinate); + } + } + + /** + * Cell at a specific coordinate by using numeric cell coordinates exists? + * + * @param string $pColumn Numeric column coordinate of the cell + * @param string $pRow Numeric row coordinate of the cell + * @return boolean + */ + public function cellExistsByColumnAndRow($pColumn = 0, $pRow = 1) + { + return $this->cellExists(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow); + } + + /** + * Get row dimension at a specific row + * + * @param int $pRow Numeric index of the row + * @return PHPExcel_Worksheet_RowDimension + */ + public function getRowDimension($pRow = 1, $create = TRUE) + { + // Found + $found = null; + + // Get row dimension + if (!isset($this->_rowDimensions[$pRow])) { + if (!$create) + return NULL; + $this->_rowDimensions[$pRow] = new PHPExcel_Worksheet_RowDimension($pRow); + + $this->_cachedHighestRow = max($this->_cachedHighestRow,$pRow); + } + return $this->_rowDimensions[$pRow]; + } + + /** + * Get column dimension at a specific column + * + * @param string $pColumn String index of the column + * @return PHPExcel_Worksheet_ColumnDimension + */ + public function getColumnDimension($pColumn = 'A', $create = TRUE) + { + // Uppercase coordinate + $pColumn = strtoupper($pColumn); + + // Fetch dimensions + if (!isset($this->_columnDimensions[$pColumn])) { + if (!$create) + return NULL; + $this->_columnDimensions[$pColumn] = new PHPExcel_Worksheet_ColumnDimension($pColumn); + + if (PHPExcel_Cell::columnIndexFromString($this->_cachedHighestColumn) < PHPExcel_Cell::columnIndexFromString($pColumn)) + $this->_cachedHighestColumn = $pColumn; + } + return $this->_columnDimensions[$pColumn]; + } + + /** + * Get column dimension at a specific column by using numeric cell coordinates + * + * @param string $pColumn Numeric column coordinate of the cell + * @return PHPExcel_Worksheet_ColumnDimension + */ + public function getColumnDimensionByColumn($pColumn = 0) + { + return $this->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($pColumn)); + } + + /** + * Get styles + * + * @return PHPExcel_Style[] + */ + public function getStyles() + { + return $this->_styles; + } + + /** + * Get default style of workbook. + * + * @deprecated + * @return PHPExcel_Style + * @throws PHPExcel_Exception + */ + public function getDefaultStyle() + { + return $this->_parent->getDefaultStyle(); + } + + /** + * Set default style - should only be used by PHPExcel_IReader implementations! + * + * @deprecated + * @param PHPExcel_Style $pValue + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function setDefaultStyle(PHPExcel_Style $pValue) + { + $this->_parent->getDefaultStyle()->applyFromArray(array( + 'font' => array( + 'name' => $pValue->getFont()->getName(), + 'size' => $pValue->getFont()->getSize(), + ), + )); + return $this; + } + + /** + * Get style for cell + * + * @param string $pCellCoordinate Cell coordinate (or range) to get style for + * @return PHPExcel_Style + * @throws PHPExcel_Exception + */ + public function getStyle($pCellCoordinate = 'A1') + { + // set this sheet as active + $this->_parent->setActiveSheetIndex($this->_parent->getIndex($this)); + + // set cell coordinate as active + $this->setSelectedCells($pCellCoordinate); + + return $this->_parent->getCellXfSupervisor(); + } + + /** + * Get conditional styles for a cell + * + * @param string $pCoordinate + * @return PHPExcel_Style_Conditional[] + */ + public function getConditionalStyles($pCoordinate = 'A1') + { + if (!isset($this->_conditionalStylesCollection[$pCoordinate])) { + $this->_conditionalStylesCollection[$pCoordinate] = array(); + } + return $this->_conditionalStylesCollection[$pCoordinate]; + } + + /** + * Do conditional styles exist for this cell? + * + * @param string $pCoordinate + * @return boolean + */ + public function conditionalStylesExists($pCoordinate = 'A1') + { + if (isset($this->_conditionalStylesCollection[$pCoordinate])) { + return true; + } + return false; + } + + /** + * Removes conditional styles for a cell + * + * @param string $pCoordinate + * @return PHPExcel_Worksheet + */ + public function removeConditionalStyles($pCoordinate = 'A1') + { + unset($this->_conditionalStylesCollection[$pCoordinate]); + return $this; + } + + /** + * Get collection of conditional styles + * + * @return array + */ + public function getConditionalStylesCollection() + { + return $this->_conditionalStylesCollection; + } + + /** + * Set conditional styles + * + * @param $pCoordinate string E.g. 'A1' + * @param $pValue PHPExcel_Style_Conditional[] + * @return PHPExcel_Worksheet + */ + public function setConditionalStyles($pCoordinate = 'A1', $pValue) + { + $this->_conditionalStylesCollection[$pCoordinate] = $pValue; + return $this; + } + + /** + * Get style for cell by using numeric cell coordinates + * + * @param int $pColumn Numeric column coordinate of the cell + * @param int $pRow Numeric row coordinate of the cell + * @param int pColumn2 Numeric column coordinate of the range cell + * @param int pRow2 Numeric row coordinate of the range cell + * @return PHPExcel_Style + */ + public function getStyleByColumnAndRow($pColumn = 0, $pRow = 1, $pColumn2 = null, $pRow2 = null) + { + if (!is_null($pColumn2) && !is_null($pRow2)) { + $cellRange = PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow . ':' . + PHPExcel_Cell::stringFromColumnIndex($pColumn2) . $pRow2; + return $this->getStyle($cellRange); + } + + return $this->getStyle(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow); + } + + /** + * Set shared cell style to a range of cells + * + * Please note that this will overwrite existing cell styles for cells in range! + * + * @deprecated + * @param PHPExcel_Style $pSharedCellStyle Cell style to share + * @param string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function setSharedStyle(PHPExcel_Style $pSharedCellStyle = null, $pRange = '') + { + $this->duplicateStyle($pSharedCellStyle, $pRange); + return $this; + } + + /** + * Duplicate cell style to a range of cells + * + * Please note that this will overwrite existing cell styles for cells in range! + * + * @param PHPExcel_Style $pCellStyle Cell style to duplicate + * @param string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function duplicateStyle(PHPExcel_Style $pCellStyle = null, $pRange = '') + { + // make sure we have a real style and not supervisor + $style = $pCellStyle->getIsSupervisor() ? $pCellStyle->getSharedComponent() : $pCellStyle; + + // Add the style to the workbook if necessary + $workbook = $this->_parent; + if ($existingStyle = $this->_parent->getCellXfByHashCode($pCellStyle->getHashCode())) { + // there is already such cell Xf in our collection + $xfIndex = $existingStyle->getIndex(); + } else { + // we don't have such a cell Xf, need to add + $workbook->addCellXf($pCellStyle); + $xfIndex = $pCellStyle->getIndex(); + } + + // Calculate range outer borders + list($rangeStart, $rangeEnd) = PHPExcel_Cell::rangeBoundaries($pRange . ':' . $pRange); + + // Make sure we can loop upwards on rows and columns + if ($rangeStart[0] > $rangeEnd[0] && $rangeStart[1] > $rangeEnd[1]) { + $tmp = $rangeStart; + $rangeStart = $rangeEnd; + $rangeEnd = $tmp; + } + + // Loop through cells and apply styles + for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) { + for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) { + $this->getCell(PHPExcel_Cell::stringFromColumnIndex($col - 1) . $row)->setXfIndex($xfIndex); + } + } + + return $this; + } + + /** + * Duplicate conditional style to a range of cells + * + * Please note that this will overwrite existing cell styles for cells in range! + * + * @param array of PHPExcel_Style_Conditional $pCellStyle Cell style to duplicate + * @param string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function duplicateConditionalStyle(array $pCellStyle = null, $pRange = '') + { + foreach($pCellStyle as $cellStyle) { + if (!($cellStyle instanceof PHPExcel_Style_Conditional)) { + throw new PHPExcel_Exception('Style is not a conditional style'); + } + } + + // Calculate range outer borders + list($rangeStart, $rangeEnd) = PHPExcel_Cell::rangeBoundaries($pRange . ':' . $pRange); + + // Make sure we can loop upwards on rows and columns + if ($rangeStart[0] > $rangeEnd[0] && $rangeStart[1] > $rangeEnd[1]) { + $tmp = $rangeStart; + $rangeStart = $rangeEnd; + $rangeEnd = $tmp; + } + + // Loop through cells and apply styles + for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) { + for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) { + $this->setConditionalStyles(PHPExcel_Cell::stringFromColumnIndex($col - 1) . $row, $pCellStyle); + } + } + + return $this; + } + + /** + * Duplicate cell style array to a range of cells + * + * Please note that this will overwrite existing cell styles for cells in range, + * if they are in the styles array. For example, if you decide to set a range of + * cells to font bold, only include font bold in the styles array. + * + * @deprecated + * @param array $pStyles Array containing style information + * @param string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") + * @param boolean $pAdvanced Advanced mode for setting borders. + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function duplicateStyleArray($pStyles = null, $pRange = '', $pAdvanced = true) + { + $this->getStyle($pRange)->applyFromArray($pStyles, $pAdvanced); + return $this; + } + + /** + * Set break on a cell + * + * @param string $pCell Cell coordinate (e.g. A1) + * @param int $pBreak Break type (type of PHPExcel_Worksheet::BREAK_*) + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function setBreak($pCell = 'A1', $pBreak = PHPExcel_Worksheet::BREAK_NONE) + { + // Uppercase coordinate + $pCell = strtoupper($pCell); + + if ($pCell != '') { + if ($pBreak == PHPExcel_Worksheet::BREAK_NONE) { + if (isset($this->_breaks[$pCell])) { + unset($this->_breaks[$pCell]); + } + } else { + $this->_breaks[$pCell] = $pBreak; + } + } else { + throw new PHPExcel_Exception('No cell coordinate specified.'); + } + + return $this; + } + + /** + * Set break on a cell by using numeric cell coordinates + * + * @param integer $pColumn Numeric column coordinate of the cell + * @param integer $pRow Numeric row coordinate of the cell + * @param integer $pBreak Break type (type of PHPExcel_Worksheet::BREAK_*) + * @return PHPExcel_Worksheet + */ + public function setBreakByColumnAndRow($pColumn = 0, $pRow = 1, $pBreak = PHPExcel_Worksheet::BREAK_NONE) + { + return $this->setBreak(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow, $pBreak); + } + + /** + * Get breaks + * + * @return array[] + */ + public function getBreaks() + { + return $this->_breaks; + } + + /** + * Set merge on a cell range + * + * @param string $pRange Cell range (e.g. A1:E1) + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function mergeCells($pRange = 'A1:A1') + { + // Uppercase coordinate + $pRange = strtoupper($pRange); + + if (strpos($pRange,':') !== false) { + $this->_mergeCells[$pRange] = $pRange; + + // make sure cells are created + + // get the cells in the range + $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($pRange); + + // create upper left cell if it does not already exist + $upperLeft = $aReferences[0]; + if (!$this->cellExists($upperLeft)) { + $this->getCell($upperLeft)->setValueExplicit(null, PHPExcel_Cell_DataType::TYPE_NULL); + } + + // create or blank out the rest of the cells in the range + $count = count($aReferences); + for ($i = 1; $i < $count; $i++) { + $this->getCell($aReferences[$i])->setValueExplicit(null, PHPExcel_Cell_DataType::TYPE_NULL); + } + + } else { + throw new PHPExcel_Exception('Merge must be set on a range of cells.'); + } + + return $this; + } + + /** + * Set merge on a cell range by using numeric cell coordinates + * + * @param int $pColumn1 Numeric column coordinate of the first cell + * @param int $pRow1 Numeric row coordinate of the first cell + * @param int $pColumn2 Numeric column coordinate of the last cell + * @param int $pRow2 Numeric row coordinate of the last cell + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function mergeCellsByColumnAndRow($pColumn1 = 0, $pRow1 = 1, $pColumn2 = 0, $pRow2 = 1) + { + $cellRange = PHPExcel_Cell::stringFromColumnIndex($pColumn1) . $pRow1 . ':' . PHPExcel_Cell::stringFromColumnIndex($pColumn2) . $pRow2; + return $this->mergeCells($cellRange); + } + + /** + * Remove merge on a cell range + * + * @param string $pRange Cell range (e.g. A1:E1) + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function unmergeCells($pRange = 'A1:A1') + { + // Uppercase coordinate + $pRange = strtoupper($pRange); + + if (strpos($pRange,':') !== false) { + if (isset($this->_mergeCells[$pRange])) { + unset($this->_mergeCells[$pRange]); + } else { + throw new PHPExcel_Exception('Cell range ' . $pRange . ' not known as merged.'); + } + } else { + throw new PHPExcel_Exception('Merge can only be removed from a range of cells.'); + } + + return $this; + } + + /** + * Remove merge on a cell range by using numeric cell coordinates + * + * @param int $pColumn1 Numeric column coordinate of the first cell + * @param int $pRow1 Numeric row coordinate of the first cell + * @param int $pColumn2 Numeric column coordinate of the last cell + * @param int $pRow2 Numeric row coordinate of the last cell + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function unmergeCellsByColumnAndRow($pColumn1 = 0, $pRow1 = 1, $pColumn2 = 0, $pRow2 = 1) + { + $cellRange = PHPExcel_Cell::stringFromColumnIndex($pColumn1) . $pRow1 . ':' . PHPExcel_Cell::stringFromColumnIndex($pColumn2) . $pRow2; + return $this->unmergeCells($cellRange); + } + + /** + * Get merge cells array. + * + * @return array[] + */ + public function getMergeCells() + { + return $this->_mergeCells; + } + + /** + * Set merge cells array for the entire sheet. Use instead mergeCells() to merge + * a single cell range. + * + * @param array + */ + public function setMergeCells($pValue = array()) + { + $this->_mergeCells = $pValue; + + return $this; + } + + /** + * Set protection on a cell range + * + * @param string $pRange Cell (e.g. A1) or cell range (e.g. A1:E1) + * @param string $pPassword Password to unlock the protection + * @param boolean $pAlreadyHashed If the password has already been hashed, set this to true + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function protectCells($pRange = 'A1', $pPassword = '', $pAlreadyHashed = false) + { + // Uppercase coordinate + $pRange = strtoupper($pRange); + + if (!$pAlreadyHashed) { + $pPassword = PHPExcel_Shared_PasswordHasher::hashPassword($pPassword); + } + $this->_protectedCells[$pRange] = $pPassword; + + return $this; + } + + /** + * Set protection on a cell range by using numeric cell coordinates + * + * @param int $pColumn1 Numeric column coordinate of the first cell + * @param int $pRow1 Numeric row coordinate of the first cell + * @param int $pColumn2 Numeric column coordinate of the last cell + * @param int $pRow2 Numeric row coordinate of the last cell + * @param string $pPassword Password to unlock the protection + * @param boolean $pAlreadyHashed If the password has already been hashed, set this to true + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function protectCellsByColumnAndRow($pColumn1 = 0, $pRow1 = 1, $pColumn2 = 0, $pRow2 = 1, $pPassword = '', $pAlreadyHashed = false) + { + $cellRange = PHPExcel_Cell::stringFromColumnIndex($pColumn1) . $pRow1 . ':' . PHPExcel_Cell::stringFromColumnIndex($pColumn2) . $pRow2; + return $this->protectCells($cellRange, $pPassword, $pAlreadyHashed); + } + + /** + * Remove protection on a cell range + * + * @param string $pRange Cell (e.g. A1) or cell range (e.g. A1:E1) + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function unprotectCells($pRange = 'A1') + { + // Uppercase coordinate + $pRange = strtoupper($pRange); + + if (isset($this->_protectedCells[$pRange])) { + unset($this->_protectedCells[$pRange]); + } else { + throw new PHPExcel_Exception('Cell range ' . $pRange . ' not known as protected.'); + } + return $this; + } + + /** + * Remove protection on a cell range by using numeric cell coordinates + * + * @param int $pColumn1 Numeric column coordinate of the first cell + * @param int $pRow1 Numeric row coordinate of the first cell + * @param int $pColumn2 Numeric column coordinate of the last cell + * @param int $pRow2 Numeric row coordinate of the last cell + * @param string $pPassword Password to unlock the protection + * @param boolean $pAlreadyHashed If the password has already been hashed, set this to true + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function unprotectCellsByColumnAndRow($pColumn1 = 0, $pRow1 = 1, $pColumn2 = 0, $pRow2 = 1, $pPassword = '', $pAlreadyHashed = false) + { + $cellRange = PHPExcel_Cell::stringFromColumnIndex($pColumn1) . $pRow1 . ':' . PHPExcel_Cell::stringFromColumnIndex($pColumn2) . $pRow2; + return $this->unprotectCells($cellRange, $pPassword, $pAlreadyHashed); + } + + /** + * Get protected cells + * + * @return array[] + */ + public function getProtectedCells() + { + return $this->_protectedCells; + } + + /** + * Get Autofilter + * + * @return PHPExcel_Worksheet_AutoFilter + */ + public function getAutoFilter() + { + return $this->_autoFilter; + } + + /** + * Set AutoFilter + * + * @param PHPExcel_Worksheet_AutoFilter|string $pValue + * A simple string containing a Cell range like 'A1:E10' is permitted for backward compatibility + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function setAutoFilter($pValue) + { + if (is_string($pValue)) { + $this->_autoFilter->setRange($pValue); + } elseif(is_object($pValue) && ($pValue instanceof PHPExcel_Worksheet_AutoFilter)) { + $this->_autoFilter = $pValue; + } + return $this; + } + + /** + * Set Autofilter Range by using numeric cell coordinates + * + * @param integer $pColumn1 Numeric column coordinate of the first cell + * @param integer $pRow1 Numeric row coordinate of the first cell + * @param integer $pColumn2 Numeric column coordinate of the second cell + * @param integer $pRow2 Numeric row coordinate of the second cell + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function setAutoFilterByColumnAndRow($pColumn1 = 0, $pRow1 = 1, $pColumn2 = 0, $pRow2 = 1) + { + return $this->setAutoFilter( + PHPExcel_Cell::stringFromColumnIndex($pColumn1) . $pRow1 + . ':' . + PHPExcel_Cell::stringFromColumnIndex($pColumn2) . $pRow2 + ); + } + + /** + * Remove autofilter + * + * @return PHPExcel_Worksheet + */ + public function removeAutoFilter() + { + $this->_autoFilter->setRange(NULL); + return $this; + } + + /** + * Get Freeze Pane + * + * @return string + */ + public function getFreezePane() + { + return $this->_freezePane; + } + + /** + * Freeze Pane + * + * @param string $pCell Cell (i.e. A2) + * Examples: + * A2 will freeze the rows above cell A2 (i.e row 1) + * B1 will freeze the columns to the left of cell B1 (i.e column A) + * B2 will freeze the rows above and to the left of cell A2 + * (i.e row 1 and column A) + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function freezePane($pCell = '') + { + // Uppercase coordinate + $pCell = strtoupper($pCell); + + if (strpos($pCell,':') === false && strpos($pCell,',') === false) { + $this->_freezePane = $pCell; + } else { + throw new PHPExcel_Exception('Freeze pane can not be set on a range of cells.'); + } + return $this; + } + + /** + * Freeze Pane by using numeric cell coordinates + * + * @param int $pColumn Numeric column coordinate of the cell + * @param int $pRow Numeric row coordinate of the cell + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function freezePaneByColumnAndRow($pColumn = 0, $pRow = 1) + { + return $this->freezePane(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow); + } + + /** + * Unfreeze Pane + * + * @return PHPExcel_Worksheet + */ + public function unfreezePane() + { + return $this->freezePane(''); + } + + /** + * Insert a new row, updating all possible related data + * + * @param int $pBefore Insert before this one + * @param int $pNumRows Number of rows to insert + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function insertNewRowBefore($pBefore = 1, $pNumRows = 1) { + if ($pBefore >= 1) { + $objReferenceHelper = PHPExcel_ReferenceHelper::getInstance(); + $objReferenceHelper->insertNewBefore('A' . $pBefore, 0, $pNumRows, $this); + } else { + throw new PHPExcel_Exception("Rows can only be inserted before at least row 1."); + } + return $this; + } + + /** + * Insert a new column, updating all possible related data + * + * @param int $pBefore Insert before this one + * @param int $pNumCols Number of columns to insert + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function insertNewColumnBefore($pBefore = 'A', $pNumCols = 1) { + if (!is_numeric($pBefore)) { + $objReferenceHelper = PHPExcel_ReferenceHelper::getInstance(); + $objReferenceHelper->insertNewBefore($pBefore . '1', $pNumCols, 0, $this); + } else { + throw new PHPExcel_Exception("Column references should not be numeric."); + } + return $this; + } + + /** + * Insert a new column, updating all possible related data + * + * @param int $pBefore Insert before this one (numeric column coordinate of the cell) + * @param int $pNumCols Number of columns to insert + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function insertNewColumnBeforeByIndex($pBefore = 0, $pNumCols = 1) { + if ($pBefore >= 0) { + return $this->insertNewColumnBefore(PHPExcel_Cell::stringFromColumnIndex($pBefore), $pNumCols); + } else { + throw new PHPExcel_Exception("Columns can only be inserted before at least column A (0)."); + } + } + + /** + * Delete a row, updating all possible related data + * + * @param int $pRow Remove starting with this one + * @param int $pNumRows Number of rows to remove + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function removeRow($pRow = 1, $pNumRows = 1) { + if ($pRow >= 1) { + $objReferenceHelper = PHPExcel_ReferenceHelper::getInstance(); + $objReferenceHelper->insertNewBefore('A' . ($pRow + $pNumRows), 0, -$pNumRows, $this); + } else { + throw new PHPExcel_Exception("Rows to be deleted should at least start from row 1."); + } + return $this; + } + + /** + * Remove a column, updating all possible related data + * + * @param int $pColumn Remove starting with this one + * @param int $pNumCols Number of columns to remove + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function removeColumn($pColumn = 'A', $pNumCols = 1) { + if (!is_numeric($pColumn)) { + $pColumn = PHPExcel_Cell::stringFromColumnIndex(PHPExcel_Cell::columnIndexFromString($pColumn) - 1 + $pNumCols); + $objReferenceHelper = PHPExcel_ReferenceHelper::getInstance(); + $objReferenceHelper->insertNewBefore($pColumn . '1', -$pNumCols, 0, $this); + } else { + throw new PHPExcel_Exception("Column references should not be numeric."); + } + return $this; + } + + /** + * Remove a column, updating all possible related data + * + * @param int $pColumn Remove starting with this one (numeric column coordinate of the cell) + * @param int $pNumCols Number of columns to remove + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function removeColumnByIndex($pColumn = 0, $pNumCols = 1) { + if ($pColumn >= 0) { + return $this->removeColumn(PHPExcel_Cell::stringFromColumnIndex($pColumn), $pNumCols); + } else { + throw new PHPExcel_Exception("Columns to be deleted should at least start from column 0"); + } + } + + /** + * Show gridlines? + * + * @return boolean + */ + public function getShowGridlines() { + return $this->_showGridlines; + } + + /** + * Set show gridlines + * + * @param boolean $pValue Show gridlines (true/false) + * @return PHPExcel_Worksheet + */ + public function setShowGridlines($pValue = false) { + $this->_showGridlines = $pValue; + return $this; + } + + /** + * Print gridlines? + * + * @return boolean + */ + public function getPrintGridlines() { + return $this->_printGridlines; + } + + /** + * Set print gridlines + * + * @param boolean $pValue Print gridlines (true/false) + * @return PHPExcel_Worksheet + */ + public function setPrintGridlines($pValue = false) { + $this->_printGridlines = $pValue; + return $this; + } + + /** + * Show row and column headers? + * + * @return boolean + */ + public function getShowRowColHeaders() { + return $this->_showRowColHeaders; + } + + /** + * Set show row and column headers + * + * @param boolean $pValue Show row and column headers (true/false) + * @return PHPExcel_Worksheet + */ + public function setShowRowColHeaders($pValue = false) { + $this->_showRowColHeaders = $pValue; + return $this; + } + + /** + * Show summary below? (Row/Column outlining) + * + * @return boolean + */ + public function getShowSummaryBelow() { + return $this->_showSummaryBelow; + } + + /** + * Set show summary below + * + * @param boolean $pValue Show summary below (true/false) + * @return PHPExcel_Worksheet + */ + public function setShowSummaryBelow($pValue = true) { + $this->_showSummaryBelow = $pValue; + return $this; + } + + /** + * Show summary right? (Row/Column outlining) + * + * @return boolean + */ + public function getShowSummaryRight() { + return $this->_showSummaryRight; + } + + /** + * Set show summary right + * + * @param boolean $pValue Show summary right (true/false) + * @return PHPExcel_Worksheet + */ + public function setShowSummaryRight($pValue = true) { + $this->_showSummaryRight = $pValue; + return $this; + } + + /** + * Get comments + * + * @return PHPExcel_Comment[] + */ + public function getComments() + { + return $this->_comments; + } + + /** + * Set comments array for the entire sheet. + * + * @param array of PHPExcel_Comment + * @return PHPExcel_Worksheet + */ + public function setComments($pValue = array()) + { + $this->_comments = $pValue; + + return $this; + } + + /** + * Get comment for cell + * + * @param string $pCellCoordinate Cell coordinate to get comment for + * @return PHPExcel_Comment + * @throws PHPExcel_Exception + */ + public function getComment($pCellCoordinate = 'A1') + { + // Uppercase coordinate + $pCellCoordinate = strtoupper($pCellCoordinate); + + if (strpos($pCellCoordinate,':') !== false || strpos($pCellCoordinate,',') !== false) { + throw new PHPExcel_Exception('Cell coordinate string can not be a range of cells.'); + } else if (strpos($pCellCoordinate,'$') !== false) { + throw new PHPExcel_Exception('Cell coordinate string must not be absolute.'); + } else if ($pCellCoordinate == '') { + throw new PHPExcel_Exception('Cell coordinate can not be zero-length string.'); + } else { + // Check if we already have a comment for this cell. + // If not, create a new comment. + if (isset($this->_comments[$pCellCoordinate])) { + return $this->_comments[$pCellCoordinate]; + } else { + $newComment = new PHPExcel_Comment(); + $this->_comments[$pCellCoordinate] = $newComment; + return $newComment; + } + } + } + + /** + * Get comment for cell by using numeric cell coordinates + * + * @param int $pColumn Numeric column coordinate of the cell + * @param int $pRow Numeric row coordinate of the cell + * @return PHPExcel_Comment + */ + public function getCommentByColumnAndRow($pColumn = 0, $pRow = 1) + { + return $this->getComment(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow); + } + + /** + * Get selected cell + * + * @deprecated + * @return string + */ + public function getSelectedCell() + { + return $this->getSelectedCells(); + } + + /** + * Get active cell + * + * @return string Example: 'A1' + */ + public function getActiveCell() + { + return $this->_activeCell; + } + + /** + * Get selected cells + * + * @return string + */ + public function getSelectedCells() + { + return $this->_selectedCells; + } + + /** + * Selected cell + * + * @param string $pCoordinate Cell (i.e. A1) + * @return PHPExcel_Worksheet + */ + public function setSelectedCell($pCoordinate = 'A1') + { + return $this->setSelectedCells($pCoordinate); + } + + /** + * Select a range of cells. + * + * @param string $pCoordinate Cell range, examples: 'A1', 'B2:G5', 'A:C', '3:6' + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function setSelectedCells($pCoordinate = 'A1') + { + // Uppercase coordinate + $pCoordinate = strtoupper($pCoordinate); + + // Convert 'A' to 'A:A' + $pCoordinate = preg_replace('/^([A-Z]+)$/', '${1}:${1}', $pCoordinate); + + // Convert '1' to '1:1' + $pCoordinate = preg_replace('/^([0-9]+)$/', '${1}:${1}', $pCoordinate); + + // Convert 'A:C' to 'A1:C1048576' + $pCoordinate = preg_replace('/^([A-Z]+):([A-Z]+)$/', '${1}1:${2}1048576', $pCoordinate); + + // Convert '1:3' to 'A1:XFD3' + $pCoordinate = preg_replace('/^([0-9]+):([0-9]+)$/', 'A${1}:XFD${2}', $pCoordinate); + + if (strpos($pCoordinate,':') !== false || strpos($pCoordinate,',') !== false) { + list($first, ) = PHPExcel_Cell::splitRange($pCoordinate); + $this->_activeCell = $first[0]; + } else { + $this->_activeCell = $pCoordinate; + } + $this->_selectedCells = $pCoordinate; + return $this; + } + + /** + * Selected cell by using numeric cell coordinates + * + * @param int $pColumn Numeric column coordinate of the cell + * @param int $pRow Numeric row coordinate of the cell + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function setSelectedCellByColumnAndRow($pColumn = 0, $pRow = 1) + { + return $this->setSelectedCells(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow); + } + + /** + * Get right-to-left + * + * @return boolean + */ + public function getRightToLeft() { + return $this->_rightToLeft; + } + + /** + * Set right-to-left + * + * @param boolean $value Right-to-left true/false + * @return PHPExcel_Worksheet + */ + public function setRightToLeft($value = false) { + $this->_rightToLeft = $value; + return $this; + } + + /** + * Fill worksheet from values in array + * + * @param array $source Source array + * @param mixed $nullValue Value in source array that stands for blank cell + * @param string $startCell Insert array starting from this cell address as the top left coordinate + * @param boolean $strictNullComparison Apply strict comparison when testing for null values in the array + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet + */ + public function fromArray($source = null, $nullValue = null, $startCell = 'A1', $strictNullComparison = false) { + if (is_array($source)) { + // Convert a 1-D array to 2-D (for ease of looping) + if (!is_array(end($source))) { + $source = array($source); + } + + // start coordinate + list ($startColumn, $startRow) = PHPExcel_Cell::coordinateFromString($startCell); + + // Loop through $source + foreach ($source as $rowData) { + $currentColumn = $startColumn; + foreach($rowData as $cellValue) { + if ($strictNullComparison) { + if ($cellValue !== $nullValue) { + // Set cell value + $this->getCell($currentColumn . $startRow)->setValue($cellValue); + } + } else { + if ($cellValue != $nullValue) { + // Set cell value + $this->getCell($currentColumn . $startRow)->setValue($cellValue); + } + } + ++$currentColumn; + } + ++$startRow; + } + } else { + throw new PHPExcel_Exception("Parameter \$source should be an array."); + } + return $this; + } + + /** + * Create array from a range of cells + * + * @param string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") + * @param mixed $nullValue Value returned in the array entry if a cell doesn't exist + * @param boolean $calculateFormulas Should formulas be calculated? + * @param boolean $formatData Should formatting be applied to cell values? + * @param boolean $returnCellRef False - Return a simple array of rows and columns indexed by number counting from zero + * True - Return rows and columns indexed by their actual row and column IDs + * @return array + */ + public function rangeToArray($pRange = 'A1', $nullValue = null, $calculateFormulas = true, $formatData = true, $returnCellRef = false) { + // Returnvalue + $returnValue = array(); + // Identify the range that we need to extract from the worksheet + list($rangeStart, $rangeEnd) = PHPExcel_Cell::rangeBoundaries($pRange); + $minCol = PHPExcel_Cell::stringFromColumnIndex($rangeStart[0] -1); + $minRow = $rangeStart[1]; + $maxCol = PHPExcel_Cell::stringFromColumnIndex($rangeEnd[0] -1); + $maxRow = $rangeEnd[1]; + + $maxCol++; + // Loop through rows + $r = -1; + for ($row = $minRow; $row <= $maxRow; ++$row) { + $rRef = ($returnCellRef) ? $row : ++$r; + $c = -1; + // Loop through columns in the current row + for ($col = $minCol; $col != $maxCol; ++$col) { + $cRef = ($returnCellRef) ? $col : ++$c; + // Using getCell() will create a new cell if it doesn't already exist. We don't want that to happen + // so we test and retrieve directly against _cellCollection + if ($this->_cellCollection->isDataSet($col.$row)) { + // Cell exists + $cell = $this->_cellCollection->getCacheData($col.$row); + if ($cell->getValue() !== null) { + if ($cell->getValue() instanceof PHPExcel_RichText) { + $returnValue[$rRef][$cRef] = $cell->getValue()->getPlainText(); + } else { + if ($calculateFormulas) { + $returnValue[$rRef][$cRef] = $cell->getCalculatedValue(); + } else { + $returnValue[$rRef][$cRef] = $cell->getValue(); + } + } + + if ($formatData) { + $style = $this->_parent->getCellXfByIndex($cell->getXfIndex()); + $returnValue[$rRef][$cRef] = PHPExcel_Style_NumberFormat::toFormattedString( + $returnValue[$rRef][$cRef], + ($style && $style->getNumberFormat()) ? + $style->getNumberFormat()->getFormatCode() : + PHPExcel_Style_NumberFormat::FORMAT_GENERAL + ); + } + } else { + // Cell holds a NULL + $returnValue[$rRef][$cRef] = $nullValue; + } + } else { + // Cell doesn't exist + $returnValue[$rRef][$cRef] = $nullValue; + } + } + } + + // Return + return $returnValue; + } + + + /** + * Create array from a range of cells + * + * @param string $pNamedRange Name of the Named Range + * @param mixed $nullValue Value returned in the array entry if a cell doesn't exist + * @param boolean $calculateFormulas Should formulas be calculated? + * @param boolean $formatData Should formatting be applied to cell values? + * @param boolean $returnCellRef False - Return a simple array of rows and columns indexed by number counting from zero + * True - Return rows and columns indexed by their actual row and column IDs + * @return array + * @throws PHPExcel_Exception + */ + public function namedRangeToArray($pNamedRange = '', $nullValue = null, $calculateFormulas = true, $formatData = true, $returnCellRef = false) { + $namedRange = PHPExcel_NamedRange::resolveRange($pNamedRange, $this); + if ($namedRange !== NULL) { + $pWorkSheet = $namedRange->getWorksheet(); + $pCellRange = $namedRange->getRange(); + + return $pWorkSheet->rangeToArray( $pCellRange, + $nullValue, $calculateFormulas, $formatData, $returnCellRef); + } + + throw new PHPExcel_Exception('Named Range '.$pNamedRange.' does not exist.'); + } + + + /** + * Create array from worksheet + * + * @param mixed $nullValue Value returned in the array entry if a cell doesn't exist + * @param boolean $calculateFormulas Should formulas be calculated? + * @param boolean $formatData Should formatting be applied to cell values? + * @param boolean $returnCellRef False - Return a simple array of rows and columns indexed by number counting from zero + * True - Return rows and columns indexed by their actual row and column IDs + * @return array + */ + public function toArray($nullValue = null, $calculateFormulas = true, $formatData = true, $returnCellRef = false) { + // Garbage collect... + $this->garbageCollect(); + + // Identify the range that we need to extract from the worksheet + $maxCol = $this->getHighestColumn(); + $maxRow = $this->getHighestRow(); + // Return + return $this->rangeToArray( 'A1:'.$maxCol.$maxRow, + $nullValue, $calculateFormulas, $formatData, $returnCellRef); + } + + /** + * Get row iterator + * + * @param integer $startRow The row number at which to start iterating + * @return PHPExcel_Worksheet_RowIterator + */ + public function getRowIterator($startRow = 1) { + return new PHPExcel_Worksheet_RowIterator($this,$startRow); + } + + /** + * Run PHPExcel garabage collector. + * + * @return PHPExcel_Worksheet + */ + public function garbageCollect() { + // Flush cache + $this->_cellCollection->getCacheData('A1'); + // Build a reference table from images +// $imageCoordinates = array(); +// $iterator = $this->getDrawingCollection()->getIterator(); +// while ($iterator->valid()) { +// $imageCoordinates[$iterator->current()->getCoordinates()] = true; +// +// $iterator->next(); +// } +// + // Lookup highest column and highest row if cells are cleaned + $colRow = $this->_cellCollection->getHighestRowAndColumn(); + $highestRow = $colRow['row']; + $highestColumn = PHPExcel_Cell::columnIndexFromString($colRow['column']); + + // Loop through column dimensions + foreach ($this->_columnDimensions as $dimension) { + $highestColumn = max($highestColumn,PHPExcel_Cell::columnIndexFromString($dimension->getColumnIndex())); + } + + // Loop through row dimensions + foreach ($this->_rowDimensions as $dimension) { + $highestRow = max($highestRow,$dimension->getRowIndex()); + } + + // Cache values + if ($highestColumn < 0) { + $this->_cachedHighestColumn = 'A'; + } else { + $this->_cachedHighestColumn = PHPExcel_Cell::stringFromColumnIndex(--$highestColumn); + } + $this->_cachedHighestRow = $highestRow; + + // Return + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + if ($this->_dirty) { + $this->_hash = md5( $this->_title . + $this->_autoFilter . + ($this->_protection->isProtectionEnabled() ? 't' : 'f') . + __CLASS__ + ); + $this->_dirty = false; + } + return $this->_hash; + } + + /** + * Extract worksheet title from range. + * + * Example: extractSheetTitle("testSheet!A1") ==> 'A1' + * Example: extractSheetTitle("'testSheet 1'!A1", true) ==> array('testSheet 1', 'A1'); + * + * @param string $pRange Range to extract title from + * @param bool $returnRange Return range? (see example) + * @return mixed + */ + public static function extractSheetTitle($pRange, $returnRange = false) { + // Sheet title included? + if (($sep = strpos($pRange, '!')) === false) { + return ''; + } + + if ($returnRange) { + return array( trim(substr($pRange, 0, $sep),"'"), + substr($pRange, $sep + 1) + ); + } + + return substr($pRange, $sep + 1); + } + + /** + * Get hyperlink + * + * @param string $pCellCoordinate Cell coordinate to get hyperlink for + */ + public function getHyperlink($pCellCoordinate = 'A1') + { + // return hyperlink if we already have one + if (isset($this->_hyperlinkCollection[$pCellCoordinate])) { + return $this->_hyperlinkCollection[$pCellCoordinate]; + } + + // else create hyperlink + $this->_hyperlinkCollection[$pCellCoordinate] = new PHPExcel_Cell_Hyperlink(); + return $this->_hyperlinkCollection[$pCellCoordinate]; + } + + /** + * Set hyperlnk + * + * @param string $pCellCoordinate Cell coordinate to insert hyperlink + * @param PHPExcel_Cell_Hyperlink $pHyperlink + * @return PHPExcel_Worksheet + */ + public function setHyperlink($pCellCoordinate = 'A1', PHPExcel_Cell_Hyperlink $pHyperlink = null) + { + if ($pHyperlink === null) { + unset($this->_hyperlinkCollection[$pCellCoordinate]); + } else { + $this->_hyperlinkCollection[$pCellCoordinate] = $pHyperlink; + } + return $this; + } + + /** + * Hyperlink at a specific coordinate exists? + * + * @param string $pCoordinate + * @return boolean + */ + public function hyperlinkExists($pCoordinate = 'A1') + { + return isset($this->_hyperlinkCollection[$pCoordinate]); + } + + /** + * Get collection of hyperlinks + * + * @return PHPExcel_Cell_Hyperlink[] + */ + public function getHyperlinkCollection() + { + return $this->_hyperlinkCollection; + } + + /** + * Get data validation + * + * @param string $pCellCoordinate Cell coordinate to get data validation for + */ + public function getDataValidation($pCellCoordinate = 'A1') + { + // return data validation if we already have one + if (isset($this->_dataValidationCollection[$pCellCoordinate])) { + return $this->_dataValidationCollection[$pCellCoordinate]; + } + + // else create data validation + $this->_dataValidationCollection[$pCellCoordinate] = new PHPExcel_Cell_DataValidation(); + return $this->_dataValidationCollection[$pCellCoordinate]; + } + + /** + * Set data validation + * + * @param string $pCellCoordinate Cell coordinate to insert data validation + * @param PHPExcel_Cell_DataValidation $pDataValidation + * @return PHPExcel_Worksheet + */ + public function setDataValidation($pCellCoordinate = 'A1', PHPExcel_Cell_DataValidation $pDataValidation = null) + { + if ($pDataValidation === null) { + unset($this->_dataValidationCollection[$pCellCoordinate]); + } else { + $this->_dataValidationCollection[$pCellCoordinate] = $pDataValidation; + } + return $this; + } + + /** + * Data validation at a specific coordinate exists? + * + * @param string $pCoordinate + * @return boolean + */ + public function dataValidationExists($pCoordinate = 'A1') + { + return isset($this->_dataValidationCollection[$pCoordinate]); + } + + /** + * Get collection of data validations + * + * @return PHPExcel_Cell_DataValidation[] + */ + public function getDataValidationCollection() + { + return $this->_dataValidationCollection; + } + + /** + * Accepts a range, returning it as a range that falls within the current highest row and column of the worksheet + * + * @param string $range + * @return string Adjusted range value + */ + public function shrinkRangeToFit($range) { + $maxCol = $this->getHighestColumn(); + $maxRow = $this->getHighestRow(); + $maxCol = PHPExcel_Cell::columnIndexFromString($maxCol); + + $rangeBlocks = explode(' ',$range); + foreach ($rangeBlocks as &$rangeSet) { + $rangeBoundaries = PHPExcel_Cell::getRangeBoundaries($rangeSet); + + if (PHPExcel_Cell::columnIndexFromString($rangeBoundaries[0][0]) > $maxCol) { $rangeBoundaries[0][0] = PHPExcel_Cell::stringFromColumnIndex($maxCol); } + if ($rangeBoundaries[0][1] > $maxRow) { $rangeBoundaries[0][1] = $maxRow; } + if (PHPExcel_Cell::columnIndexFromString($rangeBoundaries[1][0]) > $maxCol) { $rangeBoundaries[1][0] = PHPExcel_Cell::stringFromColumnIndex($maxCol); } + if ($rangeBoundaries[1][1] > $maxRow) { $rangeBoundaries[1][1] = $maxRow; } + $rangeSet = $rangeBoundaries[0][0].$rangeBoundaries[0][1].':'.$rangeBoundaries[1][0].$rangeBoundaries[1][1]; + } + unset($rangeSet); + $stRange = implode(' ',$rangeBlocks); + + return $stRange; + } + + /** + * Get tab color + * + * @return PHPExcel_Style_Color + */ + public function getTabColor() + { + if ($this->_tabColor === NULL) + $this->_tabColor = new PHPExcel_Style_Color(); + + return $this->_tabColor; + } + + /** + * Reset tab color + * + * @return PHPExcel_Worksheet + */ + public function resetTabColor() + { + $this->_tabColor = null; + unset($this->_tabColor); + + return $this; + } + + /** + * Tab color set? + * + * @return boolean + */ + public function isTabColorSet() + { + return ($this->_tabColor !== NULL); + } + + /** + * Copy worksheet (!= clone!) + * + * @return PHPExcel_Worksheet + */ + public function copy() { + $copied = clone $this; + + return $copied; + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + foreach ($this as $key => $val) { + if ($key == '_parent') { + continue; + } + + if (is_object($val) || (is_array($val))) { + if ($key == '_cellCollection') { + $newCollection = clone $this->_cellCollection; + $newCollection->copyCellCollection($this); + $this->_cellCollection = $newCollection; + } elseif ($key == '_drawingCollection') { + $newCollection = clone $this->_drawingCollection; + $this->_drawingCollection = $newCollection; + } elseif (($key == '_autoFilter') && ($this->_autoFilter instanceof PHPExcel_Worksheet_AutoFilter)) { + $newAutoFilter = clone $this->_autoFilter; + $this->_autoFilter = $newAutoFilter; + $this->_autoFilter->setParent($this); + } else { + $this->{$key} = unserialize(serialize($val)); + } + } + } + } +/** + * Define the code name of the sheet + * + * @param null|string Same rule as Title minus space not allowed (but, like Excel, change silently space to underscore) + * @return objWorksheet + * @throws PHPExcel_Exception + */ + public function setCodeName($pValue=null){ + // Is this a 'rename' or not? + if ($this->getCodeName() == $pValue) { + return $this; + } + $pValue = str_replace(' ', '_', $pValue);//Excel does this automatically without flinching, we are doing the same + // Syntax check + // throw an exception if not valid + self::_checkSheetCodeName($pValue); + + // We use the same code that setTitle to find a valid codeName else not using a space (Excel don't like) but a '_' + + if ($this->getParent()) { + // Is there already such sheet name? + if ($this->getParent()->sheetCodeNameExists($pValue)) { + // Use name, but append with lowest possible integer + + if (PHPExcel_Shared_String::CountCharacters($pValue) > 29) { + $pValue = PHPExcel_Shared_String::Substring($pValue,0,29); + } + $i = 1; + while ($this->getParent()->sheetCodeNameExists($pValue . '_' . $i)) { + ++$i; + if ($i == 10) { + if (PHPExcel_Shared_String::CountCharacters($pValue) > 28) { + $pValue = PHPExcel_Shared_String::Substring($pValue,0,28); + } + } elseif ($i == 100) { + if (PHPExcel_Shared_String::CountCharacters($pValue) > 27) { + $pValue = PHPExcel_Shared_String::Substring($pValue,0,27); + } + } + } + + $pValue = $pValue . '_' . $i;// ok, we have a valid name + //codeName is'nt used in formula : no need to call for an update + //return $this->setTitle($altTitle,$updateFormulaCellReferences); + } + } + + $this->_codeName=$pValue; + return $this; + } + /** + * Return the code name of the sheet + * + * @return null|string + */ + public function getCodeName(){ + return $this->_codeName; + } + /** + * Sheet has a code name ? + * @return boolean + */ + public function hasCodeName(){ + return !(is_null($this->_codeName)); + } +} diff --git a/admin/helpers/PHPExcel/Worksheet/AutoFilter.php b/admin/helpers/PHPExcel/Worksheet/AutoFilter.php new file mode 100644 index 00000000..d0fa8b6d --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/AutoFilter.php @@ -0,0 +1,858 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_AutoFilter + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_AutoFilter +{ + /** + * Autofilter Worksheet + * + * @var PHPExcel_Worksheet + */ + private $_workSheet = NULL; + + + /** + * Autofilter Range + * + * @var string + */ + private $_range = ''; + + + /** + * Autofilter Column Ruleset + * + * @var array of PHPExcel_Worksheet_AutoFilter_Column + */ + private $_columns = array(); + + + /** + * Create a new PHPExcel_Worksheet_AutoFilter + * + * @param string $pRange Cell range (i.e. A1:E10) + * @param PHPExcel_Worksheet $pSheet + */ + public function __construct($pRange = '', PHPExcel_Worksheet $pSheet = NULL) + { + $this->_range = $pRange; + $this->_workSheet = $pSheet; + } + + /** + * Get AutoFilter Parent Worksheet + * + * @return PHPExcel_Worksheet + */ + public function getParent() { + return $this->_workSheet; + } + + /** + * Set AutoFilter Parent Worksheet + * + * @param PHPExcel_Worksheet $pSheet + * @return PHPExcel_Worksheet_AutoFilter + */ + public function setParent(PHPExcel_Worksheet $pSheet = NULL) { + $this->_workSheet = $pSheet; + + return $this; + } + + /** + * Get AutoFilter Range + * + * @return string + */ + public function getRange() { + return $this->_range; + } + + /** + * Set AutoFilter Range + * + * @param string $pRange Cell range (i.e. A1:E10) + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter + */ + public function setRange($pRange = '') { + // Uppercase coordinate + $cellAddress = explode('!',strtoupper($pRange)); + if (count($cellAddress) > 1) { + list($worksheet,$pRange) = $cellAddress; + } + + if (strpos($pRange,':') !== FALSE) { + $this->_range = $pRange; + } elseif(empty($pRange)) { + $this->_range = ''; + } else { + throw new PHPExcel_Exception('Autofilter must be set on a range of cells.'); + } + + if (empty($pRange)) { + // Discard all column rules + $this->_columns = array(); + } else { + // Discard any column rules that are no longer valid within this range + list($rangeStart,$rangeEnd) = PHPExcel_Cell::rangeBoundaries($this->_range); + foreach($this->_columns as $key => $value) { + $colIndex = PHPExcel_Cell::columnIndexFromString($key); + if (($rangeStart[0] > $colIndex) || ($rangeEnd[0] < $colIndex)) { + unset($this->_columns[$key]); + } + } + } + + return $this; + } + + /** + * Get all AutoFilter Columns + * + * @throws PHPExcel_Exception + * @return array of PHPExcel_Worksheet_AutoFilter_Column + */ + public function getColumns() { + return $this->_columns; + } + + /** + * Validate that the specified column is in the AutoFilter range + * + * @param string $column Column name (e.g. A) + * @throws PHPExcel_Exception + * @return integer The column offset within the autofilter range + */ + public function testColumnInRange($column) { + if (empty($this->_range)) { + throw new PHPExcel_Exception("No autofilter range is defined."); + } + + $columnIndex = PHPExcel_Cell::columnIndexFromString($column); + list($rangeStart,$rangeEnd) = PHPExcel_Cell::rangeBoundaries($this->_range); + if (($rangeStart[0] > $columnIndex) || ($rangeEnd[0] < $columnIndex)) { + throw new PHPExcel_Exception("Column is outside of current autofilter range."); + } + + return $columnIndex - $rangeStart[0]; + } + + /** + * Get a specified AutoFilter Column Offset within the defined AutoFilter range + * + * @param string $pColumn Column name (e.g. A) + * @throws PHPExcel_Exception + * @return integer The offset of the specified column within the autofilter range + */ + public function getColumnOffset($pColumn) { + return $this->testColumnInRange($pColumn); + } + + /** + * Get a specified AutoFilter Column + * + * @param string $pColumn Column name (e.g. A) + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter_Column + */ + public function getColumn($pColumn) { + $this->testColumnInRange($pColumn); + + if (!isset($this->_columns[$pColumn])) { + $this->_columns[$pColumn] = new PHPExcel_Worksheet_AutoFilter_Column($pColumn, $this); + } + + return $this->_columns[$pColumn]; + } + + /** + * Get a specified AutoFilter Column by it's offset + * + * @param integer $pColumnOffset Column offset within range (starting from 0) + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter_Column + */ + public function getColumnByOffset($pColumnOffset = 0) { + list($rangeStart,$rangeEnd) = PHPExcel_Cell::rangeBoundaries($this->_range); + $pColumn = PHPExcel_Cell::stringFromColumnIndex($rangeStart[0] + $pColumnOffset - 1); + + return $this->getColumn($pColumn); + } + + /** + * Set AutoFilter + * + * @param PHPExcel_Worksheet_AutoFilter_Column|string $pColumn + * A simple string containing a Column ID like 'A' is permitted + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter + */ + public function setColumn($pColumn) + { + if ((is_string($pColumn)) && (!empty($pColumn))) { + $column = $pColumn; + } elseif(is_object($pColumn) && ($pColumn instanceof PHPExcel_Worksheet_AutoFilter_Column)) { + $column = $pColumn->getColumnIndex(); + } else { + throw new PHPExcel_Exception("Column is not within the autofilter range."); + } + $this->testColumnInRange($column); + + if (is_string($pColumn)) { + $this->_columns[$pColumn] = new PHPExcel_Worksheet_AutoFilter_Column($pColumn, $this); + } elseif(is_object($pColumn) && ($pColumn instanceof PHPExcel_Worksheet_AutoFilter_Column)) { + $pColumn->setParent($this); + $this->_columns[$column] = $pColumn; + } + ksort($this->_columns); + + return $this; + } + + /** + * Clear a specified AutoFilter Column + * + * @param string $pColumn Column name (e.g. A) + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter + */ + public function clearColumn($pColumn) { + $this->testColumnInRange($pColumn); + + if (isset($this->_columns[$pColumn])) { + unset($this->_columns[$pColumn]); + } + + return $this; + } + + /** + * Shift an AutoFilter Column Rule to a different column + * + * Note: This method bypasses validation of the destination column to ensure it is within this AutoFilter range. + * Nor does it verify whether any column rule already exists at $toColumn, but will simply overrideany existing value. + * Use with caution. + * + * @param string $fromColumn Column name (e.g. A) + * @param string $toColumn Column name (e.g. B) + * @return PHPExcel_Worksheet_AutoFilter + */ + public function shiftColumn($fromColumn=NULL,$toColumn=NULL) { + $fromColumn = strtoupper($fromColumn); + $toColumn = strtoupper($toColumn); + + if (($fromColumn !== NULL) && (isset($this->_columns[$fromColumn])) && ($toColumn !== NULL)) { + $this->_columns[$fromColumn]->setParent(); + $this->_columns[$fromColumn]->setColumnIndex($toColumn); + $this->_columns[$toColumn] = $this->_columns[$fromColumn]; + $this->_columns[$toColumn]->setParent($this); + unset($this->_columns[$fromColumn]); + + ksort($this->_columns); + } + + return $this; + } + + + /** + * Test if cell value is in the defined set of values + * + * @param mixed $cellValue + * @param mixed[] $dataSet + * @return boolean + */ + private static function _filterTestInSimpleDataSet($cellValue,$dataSet) + { + $dataSetValues = $dataSet['filterValues']; + $blanks = $dataSet['blanks']; + if (($cellValue == '') || ($cellValue === NULL)) { + return $blanks; + } + return in_array($cellValue,$dataSetValues); + } + + /** + * Test if cell value is in the defined set of Excel date values + * + * @param mixed $cellValue + * @param mixed[] $dataSet + * @return boolean + */ + private static function _filterTestInDateGroupSet($cellValue,$dataSet) + { + $dateSet = $dataSet['filterValues']; + $blanks = $dataSet['blanks']; + if (($cellValue == '') || ($cellValue === NULL)) { + return $blanks; + } + + if (is_numeric($cellValue)) { + $dateValue = PHPExcel_Shared_Date::ExcelToPHP($cellValue); + if ($cellValue < 1) { + // Just the time part + $dtVal = date('His',$dateValue); + $dateSet = $dateSet['time']; + } elseif($cellValue == floor($cellValue)) { + // Just the date part + $dtVal = date('Ymd',$dateValue); + $dateSet = $dateSet['date']; + } else { + // date and time parts + $dtVal = date('YmdHis',$dateValue); + $dateSet = $dateSet['dateTime']; + } + foreach($dateSet as $dateValue) { + // Use of substr to extract value at the appropriate group level + if (substr($dtVal,0,strlen($dateValue)) == $dateValue) + return TRUE; + } + } + + return FALSE; + } + + /** + * Test if cell value is within a set of values defined by a ruleset + * + * @param mixed $cellValue + * @param mixed[] $ruleSet + * @return boolean + */ + private static function _filterTestInCustomDataSet($cellValue, $ruleSet) + { + $dataSet = $ruleSet['filterRules']; + $join = $ruleSet['join']; + $customRuleForBlanks = isset($ruleSet['customRuleForBlanks']) ? $ruleSet['customRuleForBlanks'] : FALSE; + + if (!$customRuleForBlanks) { + // Blank cells are always ignored, so return a FALSE + if (($cellValue == '') || ($cellValue === NULL)) { + return FALSE; + } + } + $returnVal = ($join == PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_AND); + foreach($dataSet as $rule) { + if (is_numeric($rule['value'])) { + // Numeric values are tested using the appropriate operator + switch ($rule['operator']) { + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_EQUAL : + $retVal = ($cellValue == $rule['value']); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_NOTEQUAL : + $retVal = ($cellValue != $rule['value']); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_GREATERTHAN : + $retVal = ($cellValue > $rule['value']); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_GREATERTHANOREQUAL : + $retVal = ($cellValue >= $rule['value']); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_LESSTHAN : + $retVal = ($cellValue < $rule['value']); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_LESSTHANOREQUAL : + $retVal = ($cellValue <= $rule['value']); + break; + } + } elseif($rule['value'] == '') { + switch ($rule['operator']) { + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_EQUAL : + $retVal = (($cellValue == '') || ($cellValue === NULL)); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_NOTEQUAL : + $retVal = (($cellValue != '') && ($cellValue !== NULL)); + break; + default : + $retVal = TRUE; + break; + } + } else { + // String values are always tested for equality, factoring in for wildcards (hence a regexp test) + $retVal = preg_match('/^'.$rule['value'].'$/i',$cellValue); + } + // If there are multiple conditions, then we need to test both using the appropriate join operator + switch ($join) { + case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_OR : + $returnVal = $returnVal || $retVal; + // Break as soon as we have a TRUE match for OR joins, + // to avoid unnecessary additional code execution + if ($returnVal) + return $returnVal; + break; + case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_AND : + $returnVal = $returnVal && $retVal; + break; + } + } + + return $returnVal; + } + + /** + * Test if cell date value is matches a set of values defined by a set of months + * + * @param mixed $cellValue + * @param mixed[] $monthSet + * @return boolean + */ + private static function _filterTestInPeriodDateSet($cellValue, $monthSet) + { + // Blank cells are always ignored, so return a FALSE + if (($cellValue == '') || ($cellValue === NULL)) { + return FALSE; + } + + if (is_numeric($cellValue)) { + $dateValue = date('m',PHPExcel_Shared_Date::ExcelToPHP($cellValue)); + if (in_array($dateValue,$monthSet)) { + return TRUE; + } + } + + return FALSE; + } + + /** + * Search/Replace arrays to convert Excel wildcard syntax to a regexp syntax for preg_matching + * + * @var array + */ + private static $_fromReplace = array('\*', '\?', '~~', '~.*', '~.?'); + private static $_toReplace = array('.*', '.', '~', '\*', '\?'); + + + /** + * Convert a dynamic rule daterange to a custom filter range expression for ease of calculation + * + * @param string $dynamicRuleType + * @param PHPExcel_Worksheet_AutoFilter_Column &$filterColumn + * @return mixed[] + */ + private function _dynamicFilterDateRange($dynamicRuleType, &$filterColumn) + { + $rDateType = PHPExcel_Calculation_Functions::getReturnDateType(); + PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC); + $val = $maxVal = NULL; + + $ruleValues = array(); + $baseDate = PHPExcel_Calculation_DateTime::DATENOW(); + // Calculate start/end dates for the required date range based on current date + switch ($dynamicRuleType) { + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTWEEK : + $baseDate = strtotime('-7 days',$baseDate); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTWEEK : + $baseDate = strtotime('-7 days',$baseDate); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTMONTH : + $baseDate = strtotime('-1 month',gmmktime(0,0,0,1,date('m',$baseDate),date('Y',$baseDate))); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTMONTH : + $baseDate = strtotime('+1 month',gmmktime(0,0,0,1,date('m',$baseDate),date('Y',$baseDate))); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTQUARTER : + $baseDate = strtotime('-3 month',gmmktime(0,0,0,1,date('m',$baseDate),date('Y',$baseDate))); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTQUARTER : + $baseDate = strtotime('+3 month',gmmktime(0,0,0,1,date('m',$baseDate),date('Y',$baseDate))); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTYEAR : + $baseDate = strtotime('-1 year',gmmktime(0,0,0,1,date('m',$baseDate),date('Y',$baseDate))); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTYEAR : + $baseDate = strtotime('+1 year',gmmktime(0,0,0,1,date('m',$baseDate),date('Y',$baseDate))); + break; + } + + switch ($dynamicRuleType) { + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_TODAY : + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_YESTERDAY : + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_TOMORROW : + $maxVal = (int) PHPExcel_Shared_Date::PHPtoExcel(strtotime('+1 day',$baseDate)); + $val = (int) PHPExcel_Shared_Date::PHPToExcel($baseDate); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_YEARTODATE : + $maxVal = (int) PHPExcel_Shared_Date::PHPtoExcel(strtotime('+1 day',$baseDate)); + $val = (int) PHPExcel_Shared_Date::PHPToExcel(gmmktime(0,0,0,1,1,date('Y',$baseDate))); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_THISYEAR : + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTYEAR : + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTYEAR : + $maxVal = (int) PHPExcel_Shared_Date::PHPToExcel(gmmktime(0,0,0,31,12,date('Y',$baseDate))); + ++$maxVal; + $val = (int) PHPExcel_Shared_Date::PHPToExcel(gmmktime(0,0,0,1,1,date('Y',$baseDate))); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_THISQUARTER : + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTQUARTER : + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTQUARTER : + $thisMonth = date('m',$baseDate); + $thisQuarter = floor(--$thisMonth / 3); + $maxVal = (int) PHPExcel_Shared_Date::PHPtoExcel(gmmktime(0,0,0,date('t',$baseDate),(1+$thisQuarter)*3,date('Y',$baseDate))); + ++$maxVal; + $val = (int) PHPExcel_Shared_Date::PHPToExcel(gmmktime(0,0,0,1,1+$thisQuarter*3,date('Y',$baseDate))); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_THISMONTH : + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTMONTH : + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTMONTH : + $maxVal = (int) PHPExcel_Shared_Date::PHPtoExcel(gmmktime(0,0,0,date('t',$baseDate),date('m',$baseDate),date('Y',$baseDate))); + ++$maxVal; + $val = (int) PHPExcel_Shared_Date::PHPToExcel(gmmktime(0,0,0,1,date('m',$baseDate),date('Y',$baseDate))); + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_THISWEEK : + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTWEEK : + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTWEEK : + $dayOfWeek = date('w',$baseDate); + $val = (int) PHPExcel_Shared_Date::PHPToExcel($baseDate) - $dayOfWeek; + $maxVal = $val + 7; + break; + } + + switch ($dynamicRuleType) { + // Adjust Today dates for Yesterday and Tomorrow + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_YESTERDAY : + --$maxVal; + --$val; + break; + case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_TOMORROW : + ++$maxVal; + ++$val; + break; + } + + // Set the filter column rule attributes ready for writing + $filterColumn->setAttributes(array( 'val' => $val, + 'maxVal' => $maxVal + ) + ); + + // Set the rules for identifying rows for hide/show + $ruleValues[] = array( 'operator' => PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_GREATERTHANOREQUAL, + 'value' => $val + ); + $ruleValues[] = array( 'operator' => PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_LESSTHAN, + 'value' => $maxVal + ); + PHPExcel_Calculation_Functions::setReturnDateType($rDateType); + + return array( + 'method' => '_filterTestInCustomDataSet', + 'arguments' => array( 'filterRules' => $ruleValues, + 'join' => PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_AND + ) + ); + } + + private function _calculateTopTenValue($columnID,$startRow,$endRow,$ruleType,$ruleValue) { + $range = $columnID.$startRow.':'.$columnID.$endRow; + $dataValues = PHPExcel_Calculation_Functions::flattenArray( + $this->_workSheet->rangeToArray($range,NULL,TRUE,FALSE) + ); + + $dataValues = array_filter($dataValues); + if ($ruleType == PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP) { + rsort($dataValues); + } else { + sort($dataValues); + } + + return array_pop(array_slice($dataValues,0,$ruleValue)); + } + + /** + * Apply the AutoFilter rules to the AutoFilter Range + * + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter + */ + public function showHideRows() + { + list($rangeStart,$rangeEnd) = PHPExcel_Cell::rangeBoundaries($this->_range); + + // The heading row should always be visible +// echo 'AutoFilter Heading Row ',$rangeStart[1],' is always SHOWN',PHP_EOL; + $this->_workSheet->getRowDimension($rangeStart[1])->setVisible(TRUE); + + $columnFilterTests = array(); + foreach($this->_columns as $columnID => $filterColumn) { + $rules = $filterColumn->getRules(); + switch ($filterColumn->getFilterType()) { + case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_FILTER : + $ruleValues = array(); + // Build a list of the filter value selections + foreach($rules as $rule) { + $ruleType = $rule->getRuleType(); + $ruleValues[] = $rule->getValue(); + } + // Test if we want to include blanks in our filter criteria + $blanks = FALSE; + $ruleDataSet = array_filter($ruleValues); + if (count($ruleValues) != count($ruleDataSet)) + $blanks = TRUE; + if ($ruleType == PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_FILTER) { + // Filter on absolute values + $columnFilterTests[$columnID] = array( + 'method' => '_filterTestInSimpleDataSet', + 'arguments' => array( 'filterValues' => $ruleDataSet, + 'blanks' => $blanks + ) + ); + } else { + // Filter on date group values + $arguments = array(); + foreach($ruleDataSet as $ruleValue) { + $date = $time = ''; + if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_YEAR])) && + ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_YEAR] !== '')) + $date .= sprintf('%04d',$ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_YEAR]); + if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MONTH])) && + ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MONTH] != '')) + $date .= sprintf('%02d',$ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MONTH]); + if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_DAY])) && + ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_DAY] !== '')) + $date .= sprintf('%02d',$ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_DAY]); + if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_HOUR])) && + ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_HOUR] !== '')) + $time .= sprintf('%02d',$ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_HOUR]); + if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MINUTE])) && + ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MINUTE] !== '')) + $time .= sprintf('%02d',$ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MINUTE]); + if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_SECOND])) && + ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_SECOND] !== '')) + $time .= sprintf('%02d',$ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_SECOND]); + $dateTime = $date . $time; + $arguments['date'][] = $date; + $arguments['time'][] = $time; + $arguments['dateTime'][] = $dateTime; + } + // Remove empty elements + $arguments['date'] = array_filter($arguments['date']); + $arguments['time'] = array_filter($arguments['time']); + $arguments['dateTime'] = array_filter($arguments['dateTime']); + $columnFilterTests[$columnID] = array( + 'method' => '_filterTestInDateGroupSet', + 'arguments' => array( 'filterValues' => $arguments, + 'blanks' => $blanks + ) + ); + } + break; + case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_CUSTOMFILTER : + $customRuleForBlanks = FALSE; + $ruleValues = array(); + // Build a list of the filter value selections + foreach($rules as $rule) { + $ruleType = $rule->getRuleType(); + $ruleValue = $rule->getValue(); + if (!is_numeric($ruleValue)) { + // Convert to a regexp allowing for regexp reserved characters, wildcards and escaped wildcards + $ruleValue = preg_quote($ruleValue); + $ruleValue = str_replace(self::$_fromReplace,self::$_toReplace,$ruleValue); + if (trim($ruleValue) == '') { + $customRuleForBlanks = TRUE; + $ruleValue = trim($ruleValue); + } + } + $ruleValues[] = array( 'operator' => $rule->getOperator(), + 'value' => $ruleValue + ); + } + $join = $filterColumn->getJoin(); + $columnFilterTests[$columnID] = array( + 'method' => '_filterTestInCustomDataSet', + 'arguments' => array( 'filterRules' => $ruleValues, + 'join' => $join, + 'customRuleForBlanks' => $customRuleForBlanks + ) + ); + break; + case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_DYNAMICFILTER : + $ruleValues = array(); + foreach($rules as $rule) { + // We should only ever have one Dynamic Filter Rule anyway + $dynamicRuleType = $rule->getGrouping(); + if (($dynamicRuleType == PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_ABOVEAVERAGE) || + ($dynamicRuleType == PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_BELOWAVERAGE)) { + // Number (Average) based + // Calculate the average + $averageFormula = '=AVERAGE('.$columnID.($rangeStart[1]+1).':'.$columnID.$rangeEnd[1].')'; + $average = PHPExcel_Calculation::getInstance()->calculateFormula($averageFormula,NULL,$this->_workSheet->getCell('A1')); + // Set above/below rule based on greaterThan or LessTan + $operator = ($dynamicRuleType === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_ABOVEAVERAGE) + ? PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_GREATERTHAN + : PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_LESSTHAN; + $ruleValues[] = array( 'operator' => $operator, + 'value' => $average + ); + $columnFilterTests[$columnID] = array( + 'method' => '_filterTestInCustomDataSet', + 'arguments' => array( 'filterRules' => $ruleValues, + 'join' => PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_OR + ) + ); + } else { + // Date based + if ($dynamicRuleType{0} == 'M' || $dynamicRuleType{0} == 'Q') { + // Month or Quarter + sscanf($dynamicRuleType,'%[A-Z]%d', $periodType, $period); + if ($periodType == 'M') { + $ruleValues = array($period); + } else { + --$period; + $periodEnd = (1+$period)*3; + $periodStart = 1+$period*3; + $ruleValues = range($periodStart,periodEnd); + } + $columnFilterTests[$columnID] = array( + 'method' => '_filterTestInPeriodDateSet', + 'arguments' => $ruleValues + ); + $filterColumn->setAttributes(array()); + } else { + // Date Range + $columnFilterTests[$columnID] = $this->_dynamicFilterDateRange($dynamicRuleType, $filterColumn); + break; + } + } + } + break; + case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_TOPTENFILTER : + $ruleValues = array(); + $dataRowCount = $rangeEnd[1] - $rangeStart[1]; + foreach($rules as $rule) { + // We should only ever have one Dynamic Filter Rule anyway + $toptenRuleType = $rule->getGrouping(); + $ruleValue = $rule->getValue(); + $ruleOperator = $rule->getOperator(); + } + if ($ruleOperator === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_PERCENT) { + $ruleValue = floor($ruleValue * ($dataRowCount / 100)); + } + if ($ruleValue < 1) $ruleValue = 1; + if ($ruleValue > 500) $ruleValue = 500; + + $maxVal = $this->_calculateTopTenValue($columnID,$rangeStart[1]+1,$rangeEnd[1],$toptenRuleType,$ruleValue); + + $operator = ($toptenRuleType == PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP) + ? PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_GREATERTHANOREQUAL + : PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_LESSTHANOREQUAL; + $ruleValues[] = array( 'operator' => $operator, + 'value' => $maxVal + ); + $columnFilterTests[$columnID] = array( + 'method' => '_filterTestInCustomDataSet', + 'arguments' => array( 'filterRules' => $ruleValues, + 'join' => PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_OR + ) + ); + $filterColumn->setAttributes( + array('maxVal' => $maxVal) + ); + break; + } + } + +// echo 'Column Filter Test CRITERIA',PHP_EOL; +// var_dump($columnFilterTests); +// + // Execute the column tests for each row in the autoFilter range to determine show/hide, + for ($row = $rangeStart[1]+1; $row <= $rangeEnd[1]; ++$row) { +// echo 'Testing Row = ',$row,PHP_EOL; + $result = TRUE; + foreach($columnFilterTests as $columnID => $columnFilterTest) { +// echo 'Testing cell ',$columnID.$row,PHP_EOL; + $cellValue = $this->_workSheet->getCell($columnID.$row)->getCalculatedValue(); +// echo 'Value is ',$cellValue,PHP_EOL; + // Execute the filter test + $result = $result && + call_user_func_array( + array('PHPExcel_Worksheet_AutoFilter',$columnFilterTest['method']), + array( + $cellValue, + $columnFilterTest['arguments'] + ) + ); +// echo (($result) ? 'VALID' : 'INVALID'),PHP_EOL; + // If filter test has resulted in FALSE, exit the loop straightaway rather than running any more tests + if (!$result) + break; + } + // Set show/hide for the row based on the result of the autoFilter result +// echo (($result) ? 'SHOW' : 'HIDE'),PHP_EOL; + $this->_workSheet->getRowDimension($row)->setVisible($result); + } + + return $this; + } + + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + if ($key == '_workSheet') { + // Detach from worksheet + $this->{$key} = NULL; + } else { + $this->{$key} = clone $value; + } + } elseif ((is_array($value)) && ($key == '_columns')) { + // The columns array of PHPExcel_Worksheet_AutoFilter objects + $this->{$key} = array(); + foreach ($value as $k => $v) { + $this->{$key}[$k] = clone $v; + // attach the new cloned Column to this new cloned Autofilter object + $this->{$key}[$k]->setParent($this); + } + } else { + $this->{$key} = $value; + } + } + } + + /** + * toString method replicates previous behavior by returning the range if object is + * referenced as a property of its parent. + */ + public function __toString() { + return (string) $this->_range; + } + +} diff --git a/admin/helpers/PHPExcel/Worksheet/AutoFilter/Column.php b/admin/helpers/PHPExcel/Worksheet/AutoFilter/Column.php new file mode 100644 index 00000000..1a6fb4eb --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/AutoFilter/Column.php @@ -0,0 +1,394 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_AutoFilter_Column + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_AutoFilter_Column +{ + const AUTOFILTER_FILTERTYPE_FILTER = 'filters'; + const AUTOFILTER_FILTERTYPE_CUSTOMFILTER = 'customFilters'; + // Supports no more than 2 rules, with an And/Or join criteria + // if more than 1 rule is defined + const AUTOFILTER_FILTERTYPE_DYNAMICFILTER = 'dynamicFilter'; + // Even though the filter rule is constant, the filtered data can vary + // e.g. filtered by date = TODAY + const AUTOFILTER_FILTERTYPE_TOPTENFILTER = 'top10'; + + /** + * Types of autofilter rules + * + * @var string[] + */ + private static $_filterTypes = array( + // Currently we're not handling + // colorFilter + // extLst + // iconFilter + self::AUTOFILTER_FILTERTYPE_FILTER, + self::AUTOFILTER_FILTERTYPE_CUSTOMFILTER, + self::AUTOFILTER_FILTERTYPE_DYNAMICFILTER, + self::AUTOFILTER_FILTERTYPE_TOPTENFILTER, + ); + + /* Multiple Rule Connections */ + const AUTOFILTER_COLUMN_JOIN_AND = 'and'; + const AUTOFILTER_COLUMN_JOIN_OR = 'or'; + + /** + * Join options for autofilter rules + * + * @var string[] + */ + private static $_ruleJoins = array( + self::AUTOFILTER_COLUMN_JOIN_AND, + self::AUTOFILTER_COLUMN_JOIN_OR, + ); + + /** + * Autofilter + * + * @var PHPExcel_Worksheet_AutoFilter + */ + private $_parent = NULL; + + + /** + * Autofilter Column Index + * + * @var string + */ + private $_columnIndex = ''; + + + /** + * Autofilter Column Filter Type + * + * @var string + */ + private $_filterType = self::AUTOFILTER_FILTERTYPE_FILTER; + + + /** + * Autofilter Multiple Rules And/Or + * + * @var string + */ + private $_join = self::AUTOFILTER_COLUMN_JOIN_OR; + + + /** + * Autofilter Column Rules + * + * @var array of PHPExcel_Worksheet_AutoFilter_Column_Rule + */ + private $_ruleset = array(); + + + /** + * Autofilter Column Dynamic Attributes + * + * @var array of mixed + */ + private $_attributes = array(); + + + /** + * Create a new PHPExcel_Worksheet_AutoFilter_Column + * + * @param string $pColumn Column (e.g. A) + * @param PHPExcel_Worksheet_AutoFilter $pParent Autofilter for this column + */ + public function __construct($pColumn, PHPExcel_Worksheet_AutoFilter $pParent = NULL) + { + $this->_columnIndex = $pColumn; + $this->_parent = $pParent; + } + + /** + * Get AutoFilter Column Index + * + * @return string + */ + public function getColumnIndex() { + return $this->_columnIndex; + } + + /** + * Set AutoFilter Column Index + * + * @param string $pColumn Column (e.g. A) + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter_Column + */ + public function setColumnIndex($pColumn) { + // Uppercase coordinate + $pColumn = strtoupper($pColumn); + if ($this->_parent !== NULL) { + $this->_parent->testColumnInRange($pColumn); + } + + $this->_columnIndex = $pColumn; + + return $this; + } + + /** + * Get this Column's AutoFilter Parent + * + * @return PHPExcel_Worksheet_AutoFilter + */ + public function getParent() { + return $this->_parent; + } + + /** + * Set this Column's AutoFilter Parent + * + * @param PHPExcel_Worksheet_AutoFilter + * @return PHPExcel_Worksheet_AutoFilter_Column + */ + public function setParent(PHPExcel_Worksheet_AutoFilter $pParent = NULL) { + $this->_parent = $pParent; + + return $this; + } + + /** + * Get AutoFilter Type + * + * @return string + */ + public function getFilterType() { + return $this->_filterType; + } + + /** + * Set AutoFilter Type + * + * @param string $pFilterType + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter_Column + */ + public function setFilterType($pFilterType = self::AUTOFILTER_FILTERTYPE_FILTER) { + if (!in_array($pFilterType,self::$_filterTypes)) { + throw new PHPExcel_Exception('Invalid filter type for column AutoFilter.'); + } + + $this->_filterType = $pFilterType; + + return $this; + } + + /** + * Get AutoFilter Multiple Rules And/Or Join + * + * @return string + */ + public function getJoin() { + return $this->_join; + } + + /** + * Set AutoFilter Multiple Rules And/Or + * + * @param string $pJoin And/Or + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter_Column + */ + public function setJoin($pJoin = self::AUTOFILTER_COLUMN_JOIN_OR) { + // Lowercase And/Or + $pJoin = strtolower($pJoin); + if (!in_array($pJoin,self::$_ruleJoins)) { + throw new PHPExcel_Exception('Invalid rule connection for column AutoFilter.'); + } + + $this->_join = $pJoin; + + return $this; + } + + /** + * Set AutoFilter Attributes + * + * @param string[] $pAttributes + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter_Column + */ + public function setAttributes($pAttributes = array()) { + $this->_attributes = $pAttributes; + + return $this; + } + + /** + * Set An AutoFilter Attribute + * + * @param string $pName Attribute Name + * @param string $pValue Attribute Value + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter_Column + */ + public function setAttribute($pName, $pValue) { + $this->_attributes[$pName] = $pValue; + + return $this; + } + + /** + * Get AutoFilter Column Attributes + * + * @return string + */ + public function getAttributes() { + return $this->_attributes; + } + + /** + * Get specific AutoFilter Column Attribute + * + * @param string $pName Attribute Name + * @return string + */ + public function getAttribute($pName) { + if (isset($this->_attributes[$pName])) + return $this->_attributes[$pName]; + return NULL; + } + + /** + * Get all AutoFilter Column Rules + * + * @throws PHPExcel_Exception + * @return array of PHPExcel_Worksheet_AutoFilter_Column_Rule + */ + public function getRules() { + return $this->_ruleset; + } + + /** + * Get a specified AutoFilter Column Rule + * + * @param integer $pIndex Rule index in the ruleset array + * @return PHPExcel_Worksheet_AutoFilter_Column_Rule + */ + public function getRule($pIndex) { + if (!isset($this->_ruleset[$pIndex])) { + $this->_ruleset[$pIndex] = new PHPExcel_Worksheet_AutoFilter_Column_Rule($this); + } + return $this->_ruleset[$pIndex]; + } + + /** + * Create a new AutoFilter Column Rule in the ruleset + * + * @return PHPExcel_Worksheet_AutoFilter_Column_Rule + */ + public function createRule() { + $this->_ruleset[] = new PHPExcel_Worksheet_AutoFilter_Column_Rule($this); + + return end($this->_ruleset); + } + + /** + * Add a new AutoFilter Column Rule to the ruleset + * + * @param PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule + * @param boolean $returnRule Flag indicating whether the rule object or the column object should be returned + * @return PHPExcel_Worksheet_AutoFilter_Column|PHPExcel_Worksheet_AutoFilter_Column_Rule + */ + public function addRule(PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule, $returnRule=TRUE) { + $pRule->setParent($this); + $this->_ruleset[] = $pRule; + + return ($returnRule) ? $pRule : $this; + } + + /** + * Delete a specified AutoFilter Column Rule + * If the number of rules is reduced to 1, then we reset And/Or logic to Or + * + * @param integer $pIndex Rule index in the ruleset array + * @return PHPExcel_Worksheet_AutoFilter_Column + */ + public function deleteRule($pIndex) { + if (isset($this->_ruleset[$pIndex])) { + unset($this->_ruleset[$pIndex]); + // If we've just deleted down to a single rule, then reset And/Or joining to Or + if (count($this->_ruleset) <= 1) { + $this->setJoin(self::AUTOFILTER_COLUMN_JOIN_OR); + } + } + + return $this; + } + + /** + * Delete all AutoFilter Column Rules + * + * @return PHPExcel_Worksheet_AutoFilter_Column + */ + public function clearRules() { + $this->_ruleset = array(); + $this->setJoin(self::AUTOFILTER_COLUMN_JOIN_OR); + + return $this; + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + if ($key == '_parent') { + // Detach from autofilter parent + $this->$key = NULL; + } else { + $this->$key = clone $value; + } + } elseif ((is_array($value)) && ($key == '_ruleset')) { + // The columns array of PHPExcel_Worksheet_AutoFilter objects + $this->$key = array(); + foreach ($value as $k => $v) { + $this->$key[$k] = clone $v; + // attach the new cloned Rule to this new cloned Autofilter Cloned object + $this->$key[$k]->setParent($this); + } + } else { + $this->$key = $value; + } + } + } + +} diff --git a/admin/helpers/PHPExcel/Worksheet/AutoFilter/Column/Rule.php b/admin/helpers/PHPExcel/Worksheet/AutoFilter/Column/Rule.php new file mode 100644 index 00000000..4a14d7d7 --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/AutoFilter/Column/Rule.php @@ -0,0 +1,464 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_AutoFilter_Column_Rule + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_AutoFilter_Column_Rule +{ + const AUTOFILTER_RULETYPE_FILTER = 'filter'; + const AUTOFILTER_RULETYPE_DATEGROUP = 'dateGroupItem'; + const AUTOFILTER_RULETYPE_CUSTOMFILTER = 'customFilter'; + const AUTOFILTER_RULETYPE_DYNAMICFILTER = 'dynamicFilter'; + const AUTOFILTER_RULETYPE_TOPTENFILTER = 'top10Filter'; + + private static $_ruleTypes = array( + // Currently we're not handling + // colorFilter + // extLst + // iconFilter + self::AUTOFILTER_RULETYPE_FILTER, + self::AUTOFILTER_RULETYPE_DATEGROUP, + self::AUTOFILTER_RULETYPE_CUSTOMFILTER, + self::AUTOFILTER_RULETYPE_DYNAMICFILTER, + self::AUTOFILTER_RULETYPE_TOPTENFILTER, + ); + + const AUTOFILTER_RULETYPE_DATEGROUP_YEAR = 'year'; + const AUTOFILTER_RULETYPE_DATEGROUP_MONTH = 'month'; + const AUTOFILTER_RULETYPE_DATEGROUP_DAY = 'day'; + const AUTOFILTER_RULETYPE_DATEGROUP_HOUR = 'hour'; + const AUTOFILTER_RULETYPE_DATEGROUP_MINUTE = 'minute'; + const AUTOFILTER_RULETYPE_DATEGROUP_SECOND = 'second'; + + private static $_dateTimeGroups = array( + self::AUTOFILTER_RULETYPE_DATEGROUP_YEAR, + self::AUTOFILTER_RULETYPE_DATEGROUP_MONTH, + self::AUTOFILTER_RULETYPE_DATEGROUP_DAY, + self::AUTOFILTER_RULETYPE_DATEGROUP_HOUR, + self::AUTOFILTER_RULETYPE_DATEGROUP_MINUTE, + self::AUTOFILTER_RULETYPE_DATEGROUP_SECOND, + ); + + const AUTOFILTER_RULETYPE_DYNAMIC_YESTERDAY = 'yesterday'; + const AUTOFILTER_RULETYPE_DYNAMIC_TODAY = 'today'; + const AUTOFILTER_RULETYPE_DYNAMIC_TOMORROW = 'tomorrow'; + const AUTOFILTER_RULETYPE_DYNAMIC_YEARTODATE = 'yearToDate'; + const AUTOFILTER_RULETYPE_DYNAMIC_THISYEAR = 'thisYear'; + const AUTOFILTER_RULETYPE_DYNAMIC_THISQUARTER = 'thisQuarter'; + const AUTOFILTER_RULETYPE_DYNAMIC_THISMONTH = 'thisMonth'; + const AUTOFILTER_RULETYPE_DYNAMIC_THISWEEK = 'thisWeek'; + const AUTOFILTER_RULETYPE_DYNAMIC_LASTYEAR = 'lastYear'; + const AUTOFILTER_RULETYPE_DYNAMIC_LASTQUARTER = 'lastQuarter'; + const AUTOFILTER_RULETYPE_DYNAMIC_LASTMONTH = 'lastMonth'; + const AUTOFILTER_RULETYPE_DYNAMIC_LASTWEEK = 'lastWeek'; + const AUTOFILTER_RULETYPE_DYNAMIC_NEXTYEAR = 'nextYear'; + const AUTOFILTER_RULETYPE_DYNAMIC_NEXTQUARTER = 'nextQuarter'; + const AUTOFILTER_RULETYPE_DYNAMIC_NEXTMONTH = 'nextMonth'; + const AUTOFILTER_RULETYPE_DYNAMIC_NEXTWEEK = 'nextWeek'; + const AUTOFILTER_RULETYPE_DYNAMIC_MONTH_1 = 'M1'; + const AUTOFILTER_RULETYPE_DYNAMIC_JANUARY = self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_1; + const AUTOFILTER_RULETYPE_DYNAMIC_MONTH_2 = 'M2'; + const AUTOFILTER_RULETYPE_DYNAMIC_FEBRUARY = self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_2; + const AUTOFILTER_RULETYPE_DYNAMIC_MONTH_3 = 'M3'; + const AUTOFILTER_RULETYPE_DYNAMIC_MARCH = self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_3; + const AUTOFILTER_RULETYPE_DYNAMIC_MONTH_4 = 'M4'; + const AUTOFILTER_RULETYPE_DYNAMIC_APRIL = self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_4; + const AUTOFILTER_RULETYPE_DYNAMIC_MONTH_5 = 'M5'; + const AUTOFILTER_RULETYPE_DYNAMIC_MAY = self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_5; + const AUTOFILTER_RULETYPE_DYNAMIC_MONTH_6 = 'M6'; + const AUTOFILTER_RULETYPE_DYNAMIC_JUNE = self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_6; + const AUTOFILTER_RULETYPE_DYNAMIC_MONTH_7 = 'M7'; + const AUTOFILTER_RULETYPE_DYNAMIC_JULY = self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_7; + const AUTOFILTER_RULETYPE_DYNAMIC_MONTH_8 = 'M8'; + const AUTOFILTER_RULETYPE_DYNAMIC_AUGUST = self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_8; + const AUTOFILTER_RULETYPE_DYNAMIC_MONTH_9 = 'M9'; + const AUTOFILTER_RULETYPE_DYNAMIC_SEPTEMBER = self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_9; + const AUTOFILTER_RULETYPE_DYNAMIC_MONTH_10 = 'M10'; + const AUTOFILTER_RULETYPE_DYNAMIC_OCTOBER = self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_10; + const AUTOFILTER_RULETYPE_DYNAMIC_MONTH_11 = 'M11'; + const AUTOFILTER_RULETYPE_DYNAMIC_NOVEMBER = self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_11; + const AUTOFILTER_RULETYPE_DYNAMIC_MONTH_12 = 'M12'; + const AUTOFILTER_RULETYPE_DYNAMIC_DECEMBER = self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_12; + const AUTOFILTER_RULETYPE_DYNAMIC_QUARTER_1 = 'Q1'; + const AUTOFILTER_RULETYPE_DYNAMIC_QUARTER_2 = 'Q2'; + const AUTOFILTER_RULETYPE_DYNAMIC_QUARTER_3 = 'Q3'; + const AUTOFILTER_RULETYPE_DYNAMIC_QUARTER_4 = 'Q4'; + const AUTOFILTER_RULETYPE_DYNAMIC_ABOVEAVERAGE = 'aboveAverage'; + const AUTOFILTER_RULETYPE_DYNAMIC_BELOWAVERAGE = 'belowAverage'; + + private static $_dynamicTypes = array( + self::AUTOFILTER_RULETYPE_DYNAMIC_YESTERDAY, + self::AUTOFILTER_RULETYPE_DYNAMIC_TODAY, + self::AUTOFILTER_RULETYPE_DYNAMIC_TOMORROW, + self::AUTOFILTER_RULETYPE_DYNAMIC_YEARTODATE, + self::AUTOFILTER_RULETYPE_DYNAMIC_THISYEAR, + self::AUTOFILTER_RULETYPE_DYNAMIC_THISQUARTER, + self::AUTOFILTER_RULETYPE_DYNAMIC_THISMONTH, + self::AUTOFILTER_RULETYPE_DYNAMIC_THISWEEK, + self::AUTOFILTER_RULETYPE_DYNAMIC_LASTYEAR, + self::AUTOFILTER_RULETYPE_DYNAMIC_LASTQUARTER, + self::AUTOFILTER_RULETYPE_DYNAMIC_LASTMONTH, + self::AUTOFILTER_RULETYPE_DYNAMIC_LASTWEEK, + self::AUTOFILTER_RULETYPE_DYNAMIC_NEXTYEAR, + self::AUTOFILTER_RULETYPE_DYNAMIC_NEXTQUARTER, + self::AUTOFILTER_RULETYPE_DYNAMIC_NEXTMONTH, + self::AUTOFILTER_RULETYPE_DYNAMIC_NEXTWEEK, + self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_1, + self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_2, + self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_3, + self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_4, + self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_5, + self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_6, + self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_7, + self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_8, + self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_9, + self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_10, + self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_11, + self::AUTOFILTER_RULETYPE_DYNAMIC_MONTH_12, + self::AUTOFILTER_RULETYPE_DYNAMIC_QUARTER_1, + self::AUTOFILTER_RULETYPE_DYNAMIC_QUARTER_2, + self::AUTOFILTER_RULETYPE_DYNAMIC_QUARTER_3, + self::AUTOFILTER_RULETYPE_DYNAMIC_QUARTER_4, + self::AUTOFILTER_RULETYPE_DYNAMIC_ABOVEAVERAGE, + self::AUTOFILTER_RULETYPE_DYNAMIC_BELOWAVERAGE, + ); + + /* + * The only valid filter rule operators for filter and customFilter types are: + * <xsd:enumeration value="equal"/> + * <xsd:enumeration value="lessThan"/> + * <xsd:enumeration value="lessThanOrEqual"/> + * <xsd:enumeration value="notEqual"/> + * <xsd:enumeration value="greaterThanOrEqual"/> + * <xsd:enumeration value="greaterThan"/> + */ + const AUTOFILTER_COLUMN_RULE_EQUAL = 'equal'; + const AUTOFILTER_COLUMN_RULE_NOTEQUAL = 'notEqual'; + const AUTOFILTER_COLUMN_RULE_GREATERTHAN = 'greaterThan'; + const AUTOFILTER_COLUMN_RULE_GREATERTHANOREQUAL = 'greaterThanOrEqual'; + const AUTOFILTER_COLUMN_RULE_LESSTHAN = 'lessThan'; + const AUTOFILTER_COLUMN_RULE_LESSTHANOREQUAL = 'lessThanOrEqual'; + + private static $_operators = array( + self::AUTOFILTER_COLUMN_RULE_EQUAL, + self::AUTOFILTER_COLUMN_RULE_NOTEQUAL, + self::AUTOFILTER_COLUMN_RULE_GREATERTHAN, + self::AUTOFILTER_COLUMN_RULE_GREATERTHANOREQUAL, + self::AUTOFILTER_COLUMN_RULE_LESSTHAN, + self::AUTOFILTER_COLUMN_RULE_LESSTHANOREQUAL, + ); + + const AUTOFILTER_COLUMN_RULE_TOPTEN_BY_VALUE = 'byValue'; + const AUTOFILTER_COLUMN_RULE_TOPTEN_PERCENT = 'byPercent'; + + private static $_topTenValue = array( + self::AUTOFILTER_COLUMN_RULE_TOPTEN_BY_VALUE, + self::AUTOFILTER_COLUMN_RULE_TOPTEN_PERCENT, + ); + + const AUTOFILTER_COLUMN_RULE_TOPTEN_TOP = 'top'; + const AUTOFILTER_COLUMN_RULE_TOPTEN_BOTTOM = 'bottom'; + + private static $_topTenType = array( + self::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP, + self::AUTOFILTER_COLUMN_RULE_TOPTEN_BOTTOM, + ); + + + /* Rule Operators (Numeric, Boolean etc) */ +// const AUTOFILTER_COLUMN_RULE_BETWEEN = 'between'; // greaterThanOrEqual 1 && lessThanOrEqual 2 + /* Rule Operators (Numeric Special) which are translated to standard numeric operators with calculated values */ +// const AUTOFILTER_COLUMN_RULE_TOPTEN = 'topTen'; // greaterThan calculated value +// const AUTOFILTER_COLUMN_RULE_TOPTENPERCENT = 'topTenPercent'; // greaterThan calculated value +// const AUTOFILTER_COLUMN_RULE_ABOVEAVERAGE = 'aboveAverage'; // Value is calculated as the average +// const AUTOFILTER_COLUMN_RULE_BELOWAVERAGE = 'belowAverage'; // Value is calculated as the average + /* Rule Operators (String) which are set as wild-carded values */ +// const AUTOFILTER_COLUMN_RULE_BEGINSWITH = 'beginsWith'; // A* +// const AUTOFILTER_COLUMN_RULE_ENDSWITH = 'endsWith'; // *Z +// const AUTOFILTER_COLUMN_RULE_CONTAINS = 'contains'; // *B* +// const AUTOFILTER_COLUMN_RULE_DOESNTCONTAIN = 'notEqual'; // notEqual *B* + /* Rule Operators (Date Special) which are translated to standard numeric operators with calculated values */ +// const AUTOFILTER_COLUMN_RULE_BEFORE = 'lessThan'; +// const AUTOFILTER_COLUMN_RULE_AFTER = 'greaterThan'; +// const AUTOFILTER_COLUMN_RULE_YESTERDAY = 'yesterday'; +// const AUTOFILTER_COLUMN_RULE_TODAY = 'today'; +// const AUTOFILTER_COLUMN_RULE_TOMORROW = 'tomorrow'; +// const AUTOFILTER_COLUMN_RULE_LASTWEEK = 'lastWeek'; +// const AUTOFILTER_COLUMN_RULE_THISWEEK = 'thisWeek'; +// const AUTOFILTER_COLUMN_RULE_NEXTWEEK = 'nextWeek'; +// const AUTOFILTER_COLUMN_RULE_LASTMONTH = 'lastMonth'; +// const AUTOFILTER_COLUMN_RULE_THISMONTH = 'thisMonth'; +// const AUTOFILTER_COLUMN_RULE_NEXTMONTH = 'nextMonth'; +// const AUTOFILTER_COLUMN_RULE_LASTQUARTER = 'lastQuarter'; +// const AUTOFILTER_COLUMN_RULE_THISQUARTER = 'thisQuarter'; +// const AUTOFILTER_COLUMN_RULE_NEXTQUARTER = 'nextQuarter'; +// const AUTOFILTER_COLUMN_RULE_LASTYEAR = 'lastYear'; +// const AUTOFILTER_COLUMN_RULE_THISYEAR = 'thisYear'; +// const AUTOFILTER_COLUMN_RULE_NEXTYEAR = 'nextYear'; +// const AUTOFILTER_COLUMN_RULE_YEARTODATE = 'yearToDate'; // <dynamicFilter val="40909" type="yearToDate" maxVal="41113"/> +// const AUTOFILTER_COLUMN_RULE_ALLDATESINMONTH = 'allDatesInMonth'; // <dynamicFilter type="M2"/> for Month/February +// const AUTOFILTER_COLUMN_RULE_ALLDATESINQUARTER = 'allDatesInQuarter'; // <dynamicFilter type="Q2"/> for Quarter 2 + + /** + * Autofilter Column + * + * @var PHPExcel_Worksheet_AutoFilter_Column + */ + private $_parent = NULL; + + + /** + * Autofilter Rule Type + * + * @var string + */ + private $_ruleType = self::AUTOFILTER_RULETYPE_FILTER; + + + /** + * Autofilter Rule Value + * + * @var string + */ + private $_value = ''; + + /** + * Autofilter Rule Operator + * + * @var string + */ + private $_operator = ''; + + /** + * DateTimeGrouping Group Value + * + * @var string + */ + private $_grouping = ''; + + + /** + * Create a new PHPExcel_Worksheet_AutoFilter_Column_Rule + * + * @param PHPExcel_Worksheet_AutoFilter_Column $pParent + */ + public function __construct(PHPExcel_Worksheet_AutoFilter_Column $pParent = NULL) + { + $this->_parent = $pParent; + } + + /** + * Get AutoFilter Rule Type + * + * @return string + */ + public function getRuleType() { + return $this->_ruleType; + } + + /** + * Set AutoFilter Rule Type + * + * @param string $pRuleType + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter_Column + */ + public function setRuleType($pRuleType = self::AUTOFILTER_RULETYPE_FILTER) { + if (!in_array($pRuleType,self::$_ruleTypes)) { + throw new PHPExcel_Exception('Invalid rule type for column AutoFilter Rule.'); + } + + $this->_ruleType = $pRuleType; + + return $this; + } + + /** + * Get AutoFilter Rule Value + * + * @return string + */ + public function getValue() { + return $this->_value; + } + + /** + * Set AutoFilter Rule Value + * + * @param string|string[] $pValue + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter_Column_Rule + */ + public function setValue($pValue = '') { + if (is_array($pValue)) { + $grouping = -1; + foreach($pValue as $key => $value) { + // Validate array entries + if (!in_array($key,self::$_dateTimeGroups)) { + // Remove any invalid entries from the value array + unset($pValue[$key]); + } else { + // Work out what the dateTime grouping will be + $grouping = max($grouping,array_search($key,self::$_dateTimeGroups)); + } + } + if (count($pValue) == 0) { + throw new PHPExcel_Exception('Invalid rule value for column AutoFilter Rule.'); + } + // Set the dateTime grouping that we've anticipated + $this->setGrouping(self::$_dateTimeGroups[$grouping]); + } + $this->_value = $pValue; + + return $this; + } + + /** + * Get AutoFilter Rule Operator + * + * @return string + */ + public function getOperator() { + return $this->_operator; + } + + /** + * Set AutoFilter Rule Operator + * + * @param string $pOperator + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter_Column_Rule + */ + public function setOperator($pOperator = self::AUTOFILTER_COLUMN_RULE_EQUAL) { + if (empty($pOperator)) + $pOperator = self::AUTOFILTER_COLUMN_RULE_EQUAL; + if ((!in_array($pOperator,self::$_operators)) && + (!in_array($pOperator,self::$_topTenValue))) { + throw new PHPExcel_Exception('Invalid operator for column AutoFilter Rule.'); + } + $this->_operator = $pOperator; + + return $this; + } + + /** + * Get AutoFilter Rule Grouping + * + * @return string + */ + public function getGrouping() { + return $this->_grouping; + } + + /** + * Set AutoFilter Rule Grouping + * + * @param string $pGrouping + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter_Column_Rule + */ + public function setGrouping($pGrouping = NULL) { + if (($pGrouping !== NULL) && + (!in_array($pGrouping,self::$_dateTimeGroups)) && + (!in_array($pGrouping,self::$_dynamicTypes)) && + (!in_array($pGrouping,self::$_topTenType))) { + throw new PHPExcel_Exception('Invalid rule type for column AutoFilter Rule.'); + } + + $this->_grouping = $pGrouping; + + return $this; + } + + /** + * Set AutoFilter Rule + * + * @param string $pOperator + * @param string|string[] $pValue + * @param string $pGrouping + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_AutoFilter_Column_Rule + */ + public function setRule($pOperator = self::AUTOFILTER_COLUMN_RULE_EQUAL, $pValue = '', $pGrouping = NULL) { + $this->setOperator($pOperator); + $this->setValue($pValue); + // Only set grouping if it's been passed in as a user-supplied argument, + // otherwise we're calculating it when we setValue() and don't want to overwrite that + // If the user supplies an argumnet for grouping, then on their own head be it + if ($pGrouping !== NULL) + $this->setGrouping($pGrouping); + + return $this; + } + + /** + * Get this Rule's AutoFilter Column Parent + * + * @return PHPExcel_Worksheet_AutoFilter_Column + */ + public function getParent() { + return $this->_parent; + } + + /** + * Set this Rule's AutoFilter Column Parent + * + * @param PHPExcel_Worksheet_AutoFilter_Column + * @return PHPExcel_Worksheet_AutoFilter_Column_Rule + */ + public function setParent(PHPExcel_Worksheet_AutoFilter_Column $pParent = NULL) { + $this->_parent = $pParent; + + return $this; + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + if ($key == '_parent') { + // Detach from autofilter column parent + $this->$key = NULL; + } else { + $this->$key = clone $value; + } + } else { + $this->$key = $value; + } + } + } + +} diff --git a/admin/helpers/PHPExcel/Worksheet/AutoFilter/Column/index.html b/admin/helpers/PHPExcel/Worksheet/AutoFilter/Column/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/AutoFilter/Column/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Worksheet/AutoFilter/index.html b/admin/helpers/PHPExcel/Worksheet/AutoFilter/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/AutoFilter/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Worksheet/BaseDrawing.php b/admin/helpers/PHPExcel/Worksheet/BaseDrawing.php new file mode 100644 index 00000000..5a760fca --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/BaseDrawing.php @@ -0,0 +1,489 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_BaseDrawing + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable +{ + /** + * Image counter + * + * @var int + */ + private static $_imageCounter = 0; + + /** + * Image index + * + * @var int + */ + private $_imageIndex = 0; + + /** + * Name + * + * @var string + */ + protected $_name; + + /** + * Description + * + * @var string + */ + protected $_description; + + /** + * Worksheet + * + * @var PHPExcel_Worksheet + */ + protected $_worksheet; + + /** + * Coordinates + * + * @var string + */ + protected $_coordinates; + + /** + * Offset X + * + * @var int + */ + protected $_offsetX; + + /** + * Offset Y + * + * @var int + */ + protected $_offsetY; + + /** + * Width + * + * @var int + */ + protected $_width; + + /** + * Height + * + * @var int + */ + protected $_height; + + /** + * Proportional resize + * + * @var boolean + */ + protected $_resizeProportional; + + /** + * Rotation + * + * @var int + */ + protected $_rotation; + + /** + * Shadow + * + * @var PHPExcel_Worksheet_Drawing_Shadow + */ + protected $_shadow; + + /** + * Create a new PHPExcel_Worksheet_BaseDrawing + */ + public function __construct() + { + // Initialise values + $this->_name = ''; + $this->_description = ''; + $this->_worksheet = null; + $this->_coordinates = 'A1'; + $this->_offsetX = 0; + $this->_offsetY = 0; + $this->_width = 0; + $this->_height = 0; + $this->_resizeProportional = true; + $this->_rotation = 0; + $this->_shadow = new PHPExcel_Worksheet_Drawing_Shadow(); + + // Set image index + self::$_imageCounter++; + $this->_imageIndex = self::$_imageCounter; + } + + /** + * Get image index + * + * @return int + */ + public function getImageIndex() { + return $this->_imageIndex; + } + + /** + * Get Name + * + * @return string + */ + public function getName() { + return $this->_name; + } + + /** + * Set Name + * + * @param string $pValue + * @return PHPExcel_Worksheet_BaseDrawing + */ + public function setName($pValue = '') { + $this->_name = $pValue; + return $this; + } + + /** + * Get Description + * + * @return string + */ + public function getDescription() { + return $this->_description; + } + + /** + * Set Description + * + * @param string $pValue + * @return PHPExcel_Worksheet_BaseDrawing + */ + public function setDescription($pValue = '') { + $this->_description = $pValue; + return $this; + } + + /** + * Get Worksheet + * + * @return PHPExcel_Worksheet + */ + public function getWorksheet() { + return $this->_worksheet; + } + + /** + * Set Worksheet + * + * @param PHPExcel_Worksheet $pValue + * @param bool $pOverrideOld If a Worksheet has already been assigned, overwrite it and remove image from old Worksheet? + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_BaseDrawing + */ + public function setWorksheet(PHPExcel_Worksheet $pValue = null, $pOverrideOld = false) { + if (is_null($this->_worksheet)) { + // Add drawing to PHPExcel_Worksheet + $this->_worksheet = $pValue; + $this->_worksheet->getCell($this->_coordinates); + $this->_worksheet->getDrawingCollection()->append($this); + } else { + if ($pOverrideOld) { + // Remove drawing from old PHPExcel_Worksheet + $iterator = $this->_worksheet->getDrawingCollection()->getIterator(); + + while ($iterator->valid()) { + if ($iterator->current()->getHashCode() == $this->getHashCode()) { + $this->_worksheet->getDrawingCollection()->offsetUnset( $iterator->key() ); + $this->_worksheet = null; + break; + } + } + + // Set new PHPExcel_Worksheet + $this->setWorksheet($pValue); + } else { + throw new PHPExcel_Exception("A PHPExcel_Worksheet has already been assigned. Drawings can only exist on one PHPExcel_Worksheet."); + } + } + return $this; + } + + /** + * Get Coordinates + * + * @return string + */ + public function getCoordinates() { + return $this->_coordinates; + } + + /** + * Set Coordinates + * + * @param string $pValue + * @return PHPExcel_Worksheet_BaseDrawing + */ + public function setCoordinates($pValue = 'A1') { + $this->_coordinates = $pValue; + return $this; + } + + /** + * Get OffsetX + * + * @return int + */ + public function getOffsetX() { + return $this->_offsetX; + } + + /** + * Set OffsetX + * + * @param int $pValue + * @return PHPExcel_Worksheet_BaseDrawing + */ + public function setOffsetX($pValue = 0) { + $this->_offsetX = $pValue; + return $this; + } + + /** + * Get OffsetY + * + * @return int + */ + public function getOffsetY() { + return $this->_offsetY; + } + + /** + * Set OffsetY + * + * @param int $pValue + * @return PHPExcel_Worksheet_BaseDrawing + */ + public function setOffsetY($pValue = 0) { + $this->_offsetY = $pValue; + return $this; + } + + /** + * Get Width + * + * @return int + */ + public function getWidth() { + return $this->_width; + } + + /** + * Set Width + * + * @param int $pValue + * @return PHPExcel_Worksheet_BaseDrawing + */ + public function setWidth($pValue = 0) { + // Resize proportional? + if ($this->_resizeProportional && $pValue != 0) { + $ratio = $this->_height / ($this->_width != 0 ? $this->_width : 1); + $this->_height = round($ratio * $pValue); + } + + // Set width + $this->_width = $pValue; + + return $this; + } + + /** + * Get Height + * + * @return int + */ + public function getHeight() { + return $this->_height; + } + + /** + * Set Height + * + * @param int $pValue + * @return PHPExcel_Worksheet_BaseDrawing + */ + public function setHeight($pValue = 0) { + // Resize proportional? + if ($this->_resizeProportional && $pValue != 0) { + $ratio = $this->_width / ($this->_height != 0 ? $this->_height : 1); + $this->_width = round($ratio * $pValue); + } + + // Set height + $this->_height = $pValue; + + return $this; + } + + /** + * Set width and height with proportional resize + * Example: + * <code> + * $objDrawing->setResizeProportional(true); + * $objDrawing->setWidthAndHeight(160,120); + * </code> + * + * @author Vincent@luo MSN:kele_100@hotmail.com + * @param int $width + * @param int $height + * @return PHPExcel_Worksheet_BaseDrawing + */ + public function setWidthAndHeight($width = 0, $height = 0) { + $xratio = $width / ($this->_width != 0 ? $this->_width : 1); + $yratio = $height / ($this->_height != 0 ? $this->_height : 1); + if ($this->_resizeProportional && !($width == 0 || $height == 0)) { + if (($xratio * $this->_height) < $height) { + $this->_height = ceil($xratio * $this->_height); + $this->_width = $width; + } else { + $this->_width = ceil($yratio * $this->_width); + $this->_height = $height; + } + } else { + $this->_width = $width; + $this->_height = $height; + } + + return $this; + } + + /** + * Get ResizeProportional + * + * @return boolean + */ + public function getResizeProportional() { + return $this->_resizeProportional; + } + + /** + * Set ResizeProportional + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_BaseDrawing + */ + public function setResizeProportional($pValue = true) { + $this->_resizeProportional = $pValue; + return $this; + } + + /** + * Get Rotation + * + * @return int + */ + public function getRotation() { + return $this->_rotation; + } + + /** + * Set Rotation + * + * @param int $pValue + * @return PHPExcel_Worksheet_BaseDrawing + */ + public function setRotation($pValue = 0) { + $this->_rotation = $pValue; + return $this; + } + + /** + * Get Shadow + * + * @return PHPExcel_Worksheet_Drawing_Shadow + */ + public function getShadow() { + return $this->_shadow; + } + + /** + * Set Shadow + * + * @param PHPExcel_Worksheet_Drawing_Shadow $pValue + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_BaseDrawing + */ + public function setShadow(PHPExcel_Worksheet_Drawing_Shadow $pValue = null) { + $this->_shadow = $pValue; + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + return md5( + $this->_name + . $this->_description + . $this->_worksheet->getHashCode() + . $this->_coordinates + . $this->_offsetX + . $this->_offsetY + . $this->_width + . $this->_height + . $this->_rotation + . $this->_shadow->getHashCode() + . __CLASS__ + ); + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Worksheet/CellIterator.php b/admin/helpers/PHPExcel/Worksheet/CellIterator.php new file mode 100644 index 00000000..27cdc94c --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/CellIterator.php @@ -0,0 +1,161 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_CellIterator + * + * Used to iterate rows in a PHPExcel_Worksheet + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_CellIterator implements Iterator +{ + /** + * PHPExcel_Worksheet to iterate + * + * @var PHPExcel_Worksheet + */ + private $_subject; + + /** + * Row index + * + * @var int + */ + private $_rowIndex; + + /** + * Current iterator position + * + * @var int + */ + private $_position = 0; + + /** + * Loop only existing cells + * + * @var boolean + */ + private $_onlyExistingCells = true; + + /** + * Create a new cell iterator + * + * @param PHPExcel_Worksheet $subject + * @param int $rowIndex + */ + public function __construct(PHPExcel_Worksheet $subject = null, $rowIndex = 1) { + // Set subject and row index + $this->_subject = $subject; + $this->_rowIndex = $rowIndex; + } + + /** + * Destructor + */ + public function __destruct() { + unset($this->_subject); + } + + /** + * Rewind iterator + */ + public function rewind() { + $this->_position = 0; + } + + /** + * Current PHPExcel_Cell + * + * @return PHPExcel_Cell + */ + public function current() { + return $this->_subject->getCellByColumnAndRow($this->_position, $this->_rowIndex); + } + + /** + * Current key + * + * @return int + */ + public function key() { + return $this->_position; + } + + /** + * Next value + */ + public function next() { + ++$this->_position; + } + + /** + * Are there any more PHPExcel_Cell instances available? + * + * @return boolean + */ + public function valid() { + // columnIndexFromString() returns an index based at one, + // treat it as a count when comparing it to the base zero + // position. + $columnCount = PHPExcel_Cell::columnIndexFromString($this->_subject->getHighestColumn()); + + if ($this->_onlyExistingCells) { + // If we aren't looking at an existing cell, either + // because the first column doesn't exist or next() has + // been called onto a nonexistent cell, then loop until we + // find one, or pass the last column. + while ($this->_position < $columnCount && + !$this->_subject->cellExistsByColumnAndRow($this->_position, $this->_rowIndex)) { + ++$this->_position; + } + } + + return $this->_position < $columnCount; + } + + /** + * Get loop only existing cells + * + * @return boolean + */ + public function getIterateOnlyExistingCells() { + return $this->_onlyExistingCells; + } + + /** + * Set the iterator to loop only existing cells + * + * @param boolean $value + */ + public function setIterateOnlyExistingCells($value = true) { + $this->_onlyExistingCells = $value; + } +} diff --git a/admin/helpers/PHPExcel/Worksheet/ColumnDimension.php b/admin/helpers/PHPExcel/Worksheet/ColumnDimension.php new file mode 100644 index 00000000..bc6a042e --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/ColumnDimension.php @@ -0,0 +1,266 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_ColumnDimension + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_ColumnDimension +{ + /** + * Column index + * + * @var int + */ + private $_columnIndex; + + /** + * Column width + * + * When this is set to a negative value, the column width should be ignored by IWriter + * + * @var double + */ + private $_width = -1; + + /** + * Auto size? + * + * @var bool + */ + private $_autoSize = false; + + /** + * Visible? + * + * @var bool + */ + private $_visible = true; + + /** + * Outline level + * + * @var int + */ + private $_outlineLevel = 0; + + /** + * Collapsed + * + * @var bool + */ + private $_collapsed = false; + + /** + * Index to cellXf + * + * @var int + */ + private $_xfIndex; + + /** + * Create a new PHPExcel_Worksheet_ColumnDimension + * + * @param string $pIndex Character column index + */ + public function __construct($pIndex = 'A') + { + // Initialise values + $this->_columnIndex = $pIndex; + + // set default index to cellXf + $this->_xfIndex = 0; + } + + /** + * Get ColumnIndex + * + * @return string + */ + public function getColumnIndex() { + return $this->_columnIndex; + } + + /** + * Set ColumnIndex + * + * @param string $pValue + * @return PHPExcel_Worksheet_ColumnDimension + */ + public function setColumnIndex($pValue) { + $this->_columnIndex = $pValue; + return $this; + } + + /** + * Get Width + * + * @return double + */ + public function getWidth() { + return $this->_width; + } + + /** + * Set Width + * + * @param double $pValue + * @return PHPExcel_Worksheet_ColumnDimension + */ + public function setWidth($pValue = -1) { + $this->_width = $pValue; + return $this; + } + + /** + * Get Auto Size + * + * @return bool + */ + public function getAutoSize() { + return $this->_autoSize; + } + + /** + * Set Auto Size + * + * @param bool $pValue + * @return PHPExcel_Worksheet_ColumnDimension + */ + public function setAutoSize($pValue = false) { + $this->_autoSize = $pValue; + return $this; + } + + /** + * Get Visible + * + * @return bool + */ + public function getVisible() { + return $this->_visible; + } + + /** + * Set Visible + * + * @param bool $pValue + * @return PHPExcel_Worksheet_ColumnDimension + */ + public function setVisible($pValue = true) { + $this->_visible = $pValue; + return $this; + } + + /** + * Get Outline Level + * + * @return int + */ + public function getOutlineLevel() { + return $this->_outlineLevel; + } + + /** + * Set Outline Level + * + * Value must be between 0 and 7 + * + * @param int $pValue + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_ColumnDimension + */ + public function setOutlineLevel($pValue) { + if ($pValue < 0 || $pValue > 7) { + throw new PHPExcel_Exception("Outline level must range between 0 and 7."); + } + + $this->_outlineLevel = $pValue; + return $this; + } + + /** + * Get Collapsed + * + * @return bool + */ + public function getCollapsed() { + return $this->_collapsed; + } + + /** + * Set Collapsed + * + * @param bool $pValue + * @return PHPExcel_Worksheet_ColumnDimension + */ + public function setCollapsed($pValue = true) { + $this->_collapsed = $pValue; + return $this; + } + + /** + * Get index to cellXf + * + * @return int + */ + public function getXfIndex() + { + return $this->_xfIndex; + } + + /** + * Set index to cellXf + * + * @param int $pValue + * @return PHPExcel_Worksheet_ColumnDimension + */ + public function setXfIndex($pValue = 0) + { + $this->_xfIndex = $pValue; + return $this; + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } + +} diff --git a/admin/helpers/PHPExcel/Worksheet/Drawing.php b/admin/helpers/PHPExcel/Worksheet/Drawing.php new file mode 100644 index 00000000..e8d87f1d --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/Drawing.php @@ -0,0 +1,148 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet_Drawing + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_Drawing + * + * @category PHPExcel + * @package PHPExcel_Worksheet_Drawing + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_Drawing extends PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable +{ + /** + * Path + * + * @var string + */ + private $_path; + + /** + * Create a new PHPExcel_Worksheet_Drawing + */ + public function __construct() + { + // Initialise values + $this->_path = ''; + + // Initialize parent + parent::__construct(); + } + + /** + * Get Filename + * + * @return string + */ + public function getFilename() { + return basename($this->_path); + } + + /** + * Get indexed filename (using image index) + * + * @return string + */ + public function getIndexedFilename() { + $fileName = $this->getFilename(); + $fileName = str_replace(' ', '_', $fileName); + return str_replace('.' . $this->getExtension(), '', $fileName) . $this->getImageIndex() . '.' . $this->getExtension(); + } + + /** + * Get Extension + * + * @return string + */ + public function getExtension() { + $exploded = explode(".", basename($this->_path)); + return $exploded[count($exploded) - 1]; + } + + /** + * Get Path + * + * @return string + */ + public function getPath() { + return $this->_path; + } + + /** + * Set Path + * + * @param string $pValue File path + * @param boolean $pVerifyFile Verify file + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_Drawing + */ + public function setPath($pValue = '', $pVerifyFile = true) { + if ($pVerifyFile) { + if (file_exists($pValue)) { + $this->_path = $pValue; + + if ($this->_width == 0 && $this->_height == 0) { + // Get width/height + list($this->_width, $this->_height) = getimagesize($pValue); + } + } else { + throw new PHPExcel_Exception("File $pValue not found!"); + } + } else { + $this->_path = $pValue; + } + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + return md5( + $this->_path + . parent::getHashCode() + . __CLASS__ + ); + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Worksheet/Drawing/Shadow.php b/admin/helpers/PHPExcel/Worksheet/Drawing/Shadow.php new file mode 100644 index 00000000..98b95b1a --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/Drawing/Shadow.php @@ -0,0 +1,288 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet_Drawing + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_Drawing_Shadow + * + * @category PHPExcel + * @package PHPExcel_Worksheet_Drawing + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable +{ + /* Shadow alignment */ + const SHADOW_BOTTOM = 'b'; + const SHADOW_BOTTOM_LEFT = 'bl'; + const SHADOW_BOTTOM_RIGHT = 'br'; + const SHADOW_CENTER = 'ctr'; + const SHADOW_LEFT = 'l'; + const SHADOW_TOP = 't'; + const SHADOW_TOP_LEFT = 'tl'; + const SHADOW_TOP_RIGHT = 'tr'; + + /** + * Visible + * + * @var boolean + */ + private $_visible; + + /** + * Blur radius + * + * Defaults to 6 + * + * @var int + */ + private $_blurRadius; + + /** + * Shadow distance + * + * Defaults to 2 + * + * @var int + */ + private $_distance; + + /** + * Shadow direction (in degrees) + * + * @var int + */ + private $_direction; + + /** + * Shadow alignment + * + * @var int + */ + private $_alignment; + + /** + * Color + * + * @var PHPExcel_Style_Color + */ + private $_color; + + /** + * Alpha + * + * @var int + */ + private $_alpha; + + /** + * Create a new PHPExcel_Worksheet_Drawing_Shadow + */ + public function __construct() + { + // Initialise values + $this->_visible = false; + $this->_blurRadius = 6; + $this->_distance = 2; + $this->_direction = 0; + $this->_alignment = PHPExcel_Worksheet_Drawing_Shadow::SHADOW_BOTTOM_RIGHT; + $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK); + $this->_alpha = 50; + } + + /** + * Get Visible + * + * @return boolean + */ + public function getVisible() { + return $this->_visible; + } + + /** + * Set Visible + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Drawing_Shadow + */ + public function setVisible($pValue = false) { + $this->_visible = $pValue; + return $this; + } + + /** + * Get Blur radius + * + * @return int + */ + public function getBlurRadius() { + return $this->_blurRadius; + } + + /** + * Set Blur radius + * + * @param int $pValue + * @return PHPExcel_Worksheet_Drawing_Shadow + */ + public function setBlurRadius($pValue = 6) { + $this->_blurRadius = $pValue; + return $this; + } + + /** + * Get Shadow distance + * + * @return int + */ + public function getDistance() { + return $this->_distance; + } + + /** + * Set Shadow distance + * + * @param int $pValue + * @return PHPExcel_Worksheet_Drawing_Shadow + */ + public function setDistance($pValue = 2) { + $this->_distance = $pValue; + return $this; + } + + /** + * Get Shadow direction (in degrees) + * + * @return int + */ + public function getDirection() { + return $this->_direction; + } + + /** + * Set Shadow direction (in degrees) + * + * @param int $pValue + * @return PHPExcel_Worksheet_Drawing_Shadow + */ + public function setDirection($pValue = 0) { + $this->_direction = $pValue; + return $this; + } + + /** + * Get Shadow alignment + * + * @return int + */ + public function getAlignment() { + return $this->_alignment; + } + + /** + * Set Shadow alignment + * + * @param int $pValue + * @return PHPExcel_Worksheet_Drawing_Shadow + */ + public function setAlignment($pValue = 0) { + $this->_alignment = $pValue; + return $this; + } + + /** + * Get Color + * + * @return PHPExcel_Style_Color + */ + public function getColor() { + return $this->_color; + } + + /** + * Set Color + * + * @param PHPExcel_Style_Color $pValue + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_Drawing_Shadow + */ + public function setColor(PHPExcel_Style_Color $pValue = null) { + $this->_color = $pValue; + return $this; + } + + /** + * Get Alpha + * + * @return int + */ + public function getAlpha() { + return $this->_alpha; + } + + /** + * Set Alpha + * + * @param int $pValue + * @return PHPExcel_Worksheet_Drawing_Shadow + */ + public function setAlpha($pValue = 0) { + $this->_alpha = $pValue; + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + return md5( + ($this->_visible ? 't' : 'f') + . $this->_blurRadius + . $this->_distance + . $this->_direction + . $this->_alignment + . $this->_color->getHashCode() + . $this->_alpha + . __CLASS__ + ); + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Worksheet/Drawing/index.html b/admin/helpers/PHPExcel/Worksheet/Drawing/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/Drawing/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Worksheet/HeaderFooter.php b/admin/helpers/PHPExcel/Worksheet/HeaderFooter.php new file mode 100644 index 00000000..80374163 --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/HeaderFooter.php @@ -0,0 +1,465 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_HeaderFooter + * + * <code> + * Header/Footer Formatting Syntax taken from Office Open XML Part 4 - Markup Language Reference, page 1970: + * + * There are a number of formatting codes that can be written inline with the actual header / footer text, which + * affect the formatting in the header or footer. + * + * Example: This example shows the text "Center Bold Header" on the first line (center section), and the date on + * the second line (center section). + * &CCenter &"-,Bold"Bold&"-,Regular"Header_x000A_&D + * + * General Rules: + * There is no required order in which these codes must appear. + * + * The first occurrence of the following codes turns the formatting ON, the second occurrence turns it OFF again: + * - strikethrough + * - superscript + * - subscript + * Superscript and subscript cannot both be ON at same time. Whichever comes first wins and the other is ignored, + * while the first is ON. + * &L - code for "left section" (there are three header / footer locations, "left", "center", and "right"). When + * two or more occurrences of this section marker exist, the contents from all markers are concatenated, in the + * order of appearance, and placed into the left section. + * &P - code for "current page #" + * &N - code for "total pages" + * &font size - code for "text font size", where font size is a font size in points. + * &K - code for "text font color" + * RGB Color is specified as RRGGBB + * Theme Color is specifed as TTSNN where TT is the theme color Id, S is either "+" or "-" of the tint/shade + * value, NN is the tint/shade value. + * &S - code for "text strikethrough" on / off + * &X - code for "text super script" on / off + * &Y - code for "text subscript" on / off + * &C - code for "center section". When two or more occurrences of this section marker exist, the contents + * from all markers are concatenated, in the order of appearance, and placed into the center section. + * + * &D - code for "date" + * &T - code for "time" + * &G - code for "picture as background" + * &U - code for "text single underline" + * &E - code for "double underline" + * &R - code for "right section". When two or more occurrences of this section marker exist, the contents + * from all markers are concatenated, in the order of appearance, and placed into the right section. + * &Z - code for "this workbook's file path" + * &F - code for "this workbook's file name" + * &A - code for "sheet tab name" + * &+ - code for add to page #. + * &- - code for subtract from page #. + * &"font name,font type" - code for "text font name" and "text font type", where font name and font type + * are strings specifying the name and type of the font, separated by a comma. When a hyphen appears in font + * name, it means "none specified". Both of font name and font type can be localized values. + * &"-,Bold" - code for "bold font style" + * &B - also means "bold font style". + * &"-,Regular" - code for "regular font style" + * &"-,Italic" - code for "italic font style" + * &I - also means "italic font style" + * &"-,Bold Italic" code for "bold italic font style" + * &O - code for "outline style" + * &H - code for "shadow style" + * </code> + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_HeaderFooter +{ + /* Header/footer image location */ + const IMAGE_HEADER_LEFT = 'LH'; + const IMAGE_HEADER_CENTER = 'CH'; + const IMAGE_HEADER_RIGHT = 'RH'; + const IMAGE_FOOTER_LEFT = 'LF'; + const IMAGE_FOOTER_CENTER = 'CF'; + const IMAGE_FOOTER_RIGHT = 'RF'; + + /** + * OddHeader + * + * @var string + */ + private $_oddHeader = ''; + + /** + * OddFooter + * + * @var string + */ + private $_oddFooter = ''; + + /** + * EvenHeader + * + * @var string + */ + private $_evenHeader = ''; + + /** + * EvenFooter + * + * @var string + */ + private $_evenFooter = ''; + + /** + * FirstHeader + * + * @var string + */ + private $_firstHeader = ''; + + /** + * FirstFooter + * + * @var string + */ + private $_firstFooter = ''; + + /** + * Different header for Odd/Even, defaults to false + * + * @var boolean + */ + private $_differentOddEven = false; + + /** + * Different header for first page, defaults to false + * + * @var boolean + */ + private $_differentFirst = false; + + /** + * Scale with document, defaults to true + * + * @var boolean + */ + private $_scaleWithDocument = true; + + /** + * Align with margins, defaults to true + * + * @var boolean + */ + private $_alignWithMargins = true; + + /** + * Header/footer images + * + * @var PHPExcel_Worksheet_HeaderFooterDrawing[] + */ + private $_headerFooterImages = array(); + + /** + * Create a new PHPExcel_Worksheet_HeaderFooter + */ + public function __construct() + { + } + + /** + * Get OddHeader + * + * @return string + */ + public function getOddHeader() { + return $this->_oddHeader; + } + + /** + * Set OddHeader + * + * @param string $pValue + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function setOddHeader($pValue) { + $this->_oddHeader = $pValue; + return $this; + } + + /** + * Get OddFooter + * + * @return string + */ + public function getOddFooter() { + return $this->_oddFooter; + } + + /** + * Set OddFooter + * + * @param string $pValue + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function setOddFooter($pValue) { + $this->_oddFooter = $pValue; + return $this; + } + + /** + * Get EvenHeader + * + * @return string + */ + public function getEvenHeader() { + return $this->_evenHeader; + } + + /** + * Set EvenHeader + * + * @param string $pValue + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function setEvenHeader($pValue) { + $this->_evenHeader = $pValue; + return $this; + } + + /** + * Get EvenFooter + * + * @return string + */ + public function getEvenFooter() { + return $this->_evenFooter; + } + + /** + * Set EvenFooter + * + * @param string $pValue + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function setEvenFooter($pValue) { + $this->_evenFooter = $pValue; + return $this; + } + + /** + * Get FirstHeader + * + * @return string + */ + public function getFirstHeader() { + return $this->_firstHeader; + } + + /** + * Set FirstHeader + * + * @param string $pValue + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function setFirstHeader($pValue) { + $this->_firstHeader = $pValue; + return $this; + } + + /** + * Get FirstFooter + * + * @return string + */ + public function getFirstFooter() { + return $this->_firstFooter; + } + + /** + * Set FirstFooter + * + * @param string $pValue + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function setFirstFooter($pValue) { + $this->_firstFooter = $pValue; + return $this; + } + + /** + * Get DifferentOddEven + * + * @return boolean + */ + public function getDifferentOddEven() { + return $this->_differentOddEven; + } + + /** + * Set DifferentOddEven + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function setDifferentOddEven($pValue = false) { + $this->_differentOddEven = $pValue; + return $this; + } + + /** + * Get DifferentFirst + * + * @return boolean + */ + public function getDifferentFirst() { + return $this->_differentFirst; + } + + /** + * Set DifferentFirst + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function setDifferentFirst($pValue = false) { + $this->_differentFirst = $pValue; + return $this; + } + + /** + * Get ScaleWithDocument + * + * @return boolean + */ + public function getScaleWithDocument() { + return $this->_scaleWithDocument; + } + + /** + * Set ScaleWithDocument + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function setScaleWithDocument($pValue = true) { + $this->_scaleWithDocument = $pValue; + return $this; + } + + /** + * Get AlignWithMargins + * + * @return boolean + */ + public function getAlignWithMargins() { + return $this->_alignWithMargins; + } + + /** + * Set AlignWithMargins + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function setAlignWithMargins($pValue = true) { + $this->_alignWithMargins = $pValue; + return $this; + } + + /** + * Add header/footer image + * + * @param PHPExcel_Worksheet_HeaderFooterDrawing $image + * @param string $location + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function addImage(PHPExcel_Worksheet_HeaderFooterDrawing $image = null, $location = self::IMAGE_HEADER_LEFT) { + $this->_headerFooterImages[$location] = $image; + return $this; + } + + /** + * Remove header/footer image + * + * @param string $location + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function removeImage($location = self::IMAGE_HEADER_LEFT) { + if (isset($this->_headerFooterImages[$location])) { + unset($this->_headerFooterImages[$location]); + } + return $this; + } + + /** + * Set header/footer images + * + * @param PHPExcel_Worksheet_HeaderFooterDrawing[] $images + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function setImages($images) { + if (!is_array($images)) { + throw new PHPExcel_Exception('Invalid parameter!'); + } + + $this->_headerFooterImages = $images; + return $this; + } + + /** + * Get header/footer images + * + * @return PHPExcel_Worksheet_HeaderFooterDrawing[] + */ + public function getImages() { + // Sort array + $images = array(); + if (isset($this->_headerFooterImages[self::IMAGE_HEADER_LEFT])) $images[self::IMAGE_HEADER_LEFT] = $this->_headerFooterImages[self::IMAGE_HEADER_LEFT]; + if (isset($this->_headerFooterImages[self::IMAGE_HEADER_CENTER])) $images[self::IMAGE_HEADER_CENTER] = $this->_headerFooterImages[self::IMAGE_HEADER_CENTER]; + if (isset($this->_headerFooterImages[self::IMAGE_HEADER_RIGHT])) $images[self::IMAGE_HEADER_RIGHT] = $this->_headerFooterImages[self::IMAGE_HEADER_RIGHT]; + if (isset($this->_headerFooterImages[self::IMAGE_FOOTER_LEFT])) $images[self::IMAGE_FOOTER_LEFT] = $this->_headerFooterImages[self::IMAGE_FOOTER_LEFT]; + if (isset($this->_headerFooterImages[self::IMAGE_FOOTER_CENTER])) $images[self::IMAGE_FOOTER_CENTER] = $this->_headerFooterImages[self::IMAGE_FOOTER_CENTER]; + if (isset($this->_headerFooterImages[self::IMAGE_FOOTER_RIGHT])) $images[self::IMAGE_FOOTER_RIGHT] = $this->_headerFooterImages[self::IMAGE_FOOTER_RIGHT]; + $this->_headerFooterImages = $images; + + return $this->_headerFooterImages; + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Worksheet/HeaderFooterDrawing.php b/admin/helpers/PHPExcel/Worksheet/HeaderFooterDrawing.php new file mode 100644 index 00000000..966664f9 --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/HeaderFooterDrawing.php @@ -0,0 +1,350 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_HeaderFooterDrawing + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing implements PHPExcel_IComparable +{ + /** + * Path + * + * @var string + */ + private $_path; + + /** + * Name + * + * @var string + */ + protected $_name; + + /** + * Offset X + * + * @var int + */ + protected $_offsetX; + + /** + * Offset Y + * + * @var int + */ + protected $_offsetY; + + /** + * Width + * + * @var int + */ + protected $_width; + + /** + * Height + * + * @var int + */ + protected $_height; + + /** + * Proportional resize + * + * @var boolean + */ + protected $_resizeProportional; + + /** + * Create a new PHPExcel_Worksheet_HeaderFooterDrawing + */ + public function __construct() + { + // Initialise values + $this->_path = ''; + $this->_name = ''; + $this->_offsetX = 0; + $this->_offsetY = 0; + $this->_width = 0; + $this->_height = 0; + $this->_resizeProportional = true; + } + + /** + * Get Name + * + * @return string + */ + public function getName() { + return $this->_name; + } + + /** + * Set Name + * + * @param string $pValue + * @return PHPExcel_Worksheet_HeaderFooterDrawing + */ + public function setName($pValue = '') { + $this->_name = $pValue; + return $this; + } + + /** + * Get OffsetX + * + * @return int + */ + public function getOffsetX() { + return $this->_offsetX; + } + + /** + * Set OffsetX + * + * @param int $pValue + * @return PHPExcel_Worksheet_HeaderFooterDrawing + */ + public function setOffsetX($pValue = 0) { + $this->_offsetX = $pValue; + return $this; + } + + /** + * Get OffsetY + * + * @return int + */ + public function getOffsetY() { + return $this->_offsetY; + } + + /** + * Set OffsetY + * + * @param int $pValue + * @return PHPExcel_Worksheet_HeaderFooterDrawing + */ + public function setOffsetY($pValue = 0) { + $this->_offsetY = $pValue; + return $this; + } + + /** + * Get Width + * + * @return int + */ + public function getWidth() { + return $this->_width; + } + + /** + * Set Width + * + * @param int $pValue + * @return PHPExcel_Worksheet_HeaderFooterDrawing + */ + public function setWidth($pValue = 0) { + // Resize proportional? + if ($this->_resizeProportional && $pValue != 0) { + $ratio = $this->_width / $this->_height; + $this->_height = round($ratio * $pValue); + } + + // Set width + $this->_width = $pValue; + + return $this; + } + + /** + * Get Height + * + * @return int + */ + public function getHeight() { + return $this->_height; + } + + /** + * Set Height + * + * @param int $pValue + * @return PHPExcel_Worksheet_HeaderFooterDrawing + */ + public function setHeight($pValue = 0) { + // Resize proportional? + if ($this->_resizeProportional && $pValue != 0) { + $ratio = $this->_width / $this->_height; + $this->_width = round($ratio * $pValue); + } + + // Set height + $this->_height = $pValue; + + return $this; + } + + /** + * Set width and height with proportional resize + * Example: + * <code> + * $objDrawing->setResizeProportional(true); + * $objDrawing->setWidthAndHeight(160,120); + * </code> + * + * @author Vincent@luo MSN:kele_100@hotmail.com + * @param int $width + * @param int $height + * @return PHPExcel_Worksheet_HeaderFooterDrawing + */ + public function setWidthAndHeight($width = 0, $height = 0) { + $xratio = $width / $this->_width; + $yratio = $height / $this->_height; + if ($this->_resizeProportional && !($width == 0 || $height == 0)) { + if (($xratio * $this->_height) < $height) { + $this->_height = ceil($xratio * $this->_height); + $this->_width = $width; + } else { + $this->_width = ceil($yratio * $this->_width); + $this->_height = $height; + } + } + return $this; + } + + /** + * Get ResizeProportional + * + * @return boolean + */ + public function getResizeProportional() { + return $this->_resizeProportional; + } + + /** + * Set ResizeProportional + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_HeaderFooterDrawing + */ + public function setResizeProportional($pValue = true) { + $this->_resizeProportional = $pValue; + return $this; + } + + /** + * Get Filename + * + * @return string + */ + public function getFilename() { + return basename($this->_path); + } + + /** + * Get Extension + * + * @return string + */ + public function getExtension() { + $parts = explode(".", basename($this->_path)); + return end($parts); + } + + /** + * Get Path + * + * @return string + */ + public function getPath() { + return $this->_path; + } + + /** + * Set Path + * + * @param string $pValue File path + * @param boolean $pVerifyFile Verify file + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_HeaderFooterDrawing + */ + public function setPath($pValue = '', $pVerifyFile = true) { + if ($pVerifyFile) { + if (file_exists($pValue)) { + $this->_path = $pValue; + + if ($this->_width == 0 && $this->_height == 0) { + // Get width/height + list($this->_width, $this->_height) = getimagesize($pValue); + } + } else { + throw new PHPExcel_Exception("File $pValue not found!"); + } + } else { + $this->_path = $pValue; + } + return $this; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + return md5( + $this->_path + . $this->_name + . $this->_offsetX + . $this->_offsetY + . $this->_width + . $this->_height + . __CLASS__ + ); + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Worksheet/MemoryDrawing.php b/admin/helpers/PHPExcel/Worksheet/MemoryDrawing.php new file mode 100644 index 00000000..80fc6d1f --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/MemoryDrawing.php @@ -0,0 +1,200 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_MemoryDrawing + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_MemoryDrawing extends PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable +{ + /* Rendering functions */ + const RENDERING_DEFAULT = 'imagepng'; + const RENDERING_PNG = 'imagepng'; + const RENDERING_GIF = 'imagegif'; + const RENDERING_JPEG = 'imagejpeg'; + + /* MIME types */ + const MIMETYPE_DEFAULT = 'image/png'; + const MIMETYPE_PNG = 'image/png'; + const MIMETYPE_GIF = 'image/gif'; + const MIMETYPE_JPEG = 'image/jpeg'; + + /** + * Image resource + * + * @var resource + */ + private $_imageResource; + + /** + * Rendering function + * + * @var string + */ + private $_renderingFunction; + + /** + * Mime type + * + * @var string + */ + private $_mimeType; + + /** + * Unique name + * + * @var string + */ + private $_uniqueName; + + /** + * Create a new PHPExcel_Worksheet_MemoryDrawing + */ + public function __construct() + { + // Initialise values + $this->_imageResource = null; + $this->_renderingFunction = self::RENDERING_DEFAULT; + $this->_mimeType = self::MIMETYPE_DEFAULT; + $this->_uniqueName = md5(rand(0, 9999). time() . rand(0, 9999)); + + // Initialize parent + parent::__construct(); + } + + /** + * Get image resource + * + * @return resource + */ + public function getImageResource() { + return $this->_imageResource; + } + + /** + * Set image resource + * + * @param $value resource + * @return PHPExcel_Worksheet_MemoryDrawing + */ + public function setImageResource($value = null) { + $this->_imageResource = $value; + + if (!is_null($this->_imageResource)) { + // Get width/height + $this->_width = imagesx($this->_imageResource); + $this->_height = imagesy($this->_imageResource); + } + return $this; + } + + /** + * Get rendering function + * + * @return string + */ + public function getRenderingFunction() { + return $this->_renderingFunction; + } + + /** + * Set rendering function + * + * @param string $value + * @return PHPExcel_Worksheet_MemoryDrawing + */ + public function setRenderingFunction($value = PHPExcel_Worksheet_MemoryDrawing::RENDERING_DEFAULT) { + $this->_renderingFunction = $value; + return $this; + } + + /** + * Get mime type + * + * @return string + */ + public function getMimeType() { + return $this->_mimeType; + } + + /** + * Set mime type + * + * @param string $value + * @return PHPExcel_Worksheet_MemoryDrawing + */ + public function setMimeType($value = PHPExcel_Worksheet_MemoryDrawing::MIMETYPE_DEFAULT) { + $this->_mimeType = $value; + return $this; + } + + /** + * Get indexed filename (using image index) + * + * @return string + */ + public function getIndexedFilename() { + $extension = strtolower($this->getMimeType()); + $extension = explode('/', $extension); + $extension = $extension[1]; + + return $this->_uniqueName . $this->getImageIndex() . '.' . $extension; + } + + /** + * Get hash code + * + * @return string Hash code + */ + public function getHashCode() { + return md5( + $this->_renderingFunction + . $this->_mimeType + . $this->_uniqueName + . parent::getHashCode() + . __CLASS__ + ); + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Worksheet/PageMargins.php b/admin/helpers/PHPExcel/Worksheet/PageMargins.php new file mode 100644 index 00000000..b05a291f --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/PageMargins.php @@ -0,0 +1,220 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_PageMargins + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_PageMargins +{ + /** + * Left + * + * @var double + */ + private $_left = 0.7; + + /** + * Right + * + * @var double + */ + private $_right = 0.7; + + /** + * Top + * + * @var double + */ + private $_top = 0.75; + + /** + * Bottom + * + * @var double + */ + private $_bottom = 0.75; + + /** + * Header + * + * @var double + */ + private $_header = 0.3; + + /** + * Footer + * + * @var double + */ + private $_footer = 0.3; + + /** + * Create a new PHPExcel_Worksheet_PageMargins + */ + public function __construct() + { + } + + /** + * Get Left + * + * @return double + */ + public function getLeft() { + return $this->_left; + } + + /** + * Set Left + * + * @param double $pValue + * @return PHPExcel_Worksheet_PageMargins + */ + public function setLeft($pValue) { + $this->_left = $pValue; + return $this; + } + + /** + * Get Right + * + * @return double + */ + public function getRight() { + return $this->_right; + } + + /** + * Set Right + * + * @param double $pValue + * @return PHPExcel_Worksheet_PageMargins + */ + public function setRight($pValue) { + $this->_right = $pValue; + return $this; + } + + /** + * Get Top + * + * @return double + */ + public function getTop() { + return $this->_top; + } + + /** + * Set Top + * + * @param double $pValue + * @return PHPExcel_Worksheet_PageMargins + */ + public function setTop($pValue) { + $this->_top = $pValue; + return $this; + } + + /** + * Get Bottom + * + * @return double + */ + public function getBottom() { + return $this->_bottom; + } + + /** + * Set Bottom + * + * @param double $pValue + * @return PHPExcel_Worksheet_PageMargins + */ + public function setBottom($pValue) { + $this->_bottom = $pValue; + return $this; + } + + /** + * Get Header + * + * @return double + */ + public function getHeader() { + return $this->_header; + } + + /** + * Set Header + * + * @param double $pValue + * @return PHPExcel_Worksheet_PageMargins + */ + public function setHeader($pValue) { + $this->_header = $pValue; + return $this; + } + + /** + * Get Footer + * + * @return double + */ + public function getFooter() { + return $this->_footer; + } + + /** + * Set Footer + * + * @param double $pValue + * @return PHPExcel_Worksheet_PageMargins + */ + public function setFooter($pValue) { + $this->_footer = $pValue; + return $this; + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Worksheet/PageSetup.php b/admin/helpers/PHPExcel/Worksheet/PageSetup.php new file mode 100644 index 00000000..ba2792fa --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/PageSetup.php @@ -0,0 +1,798 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_PageSetup + * + * <code> + * Paper size taken from Office Open XML Part 4 - Markup Language Reference, page 1988: + * + * 1 = Letter paper (8.5 in. by 11 in.) + * 2 = Letter small paper (8.5 in. by 11 in.) + * 3 = Tabloid paper (11 in. by 17 in.) + * 4 = Ledger paper (17 in. by 11 in.) + * 5 = Legal paper (8.5 in. by 14 in.) + * 6 = Statement paper (5.5 in. by 8.5 in.) + * 7 = Executive paper (7.25 in. by 10.5 in.) + * 8 = A3 paper (297 mm by 420 mm) + * 9 = A4 paper (210 mm by 297 mm) + * 10 = A4 small paper (210 mm by 297 mm) + * 11 = A5 paper (148 mm by 210 mm) + * 12 = B4 paper (250 mm by 353 mm) + * 13 = B5 paper (176 mm by 250 mm) + * 14 = Folio paper (8.5 in. by 13 in.) + * 15 = Quarto paper (215 mm by 275 mm) + * 16 = Standard paper (10 in. by 14 in.) + * 17 = Standard paper (11 in. by 17 in.) + * 18 = Note paper (8.5 in. by 11 in.) + * 19 = #9 envelope (3.875 in. by 8.875 in.) + * 20 = #10 envelope (4.125 in. by 9.5 in.) + * 21 = #11 envelope (4.5 in. by 10.375 in.) + * 22 = #12 envelope (4.75 in. by 11 in.) + * 23 = #14 envelope (5 in. by 11.5 in.) + * 24 = C paper (17 in. by 22 in.) + * 25 = D paper (22 in. by 34 in.) + * 26 = E paper (34 in. by 44 in.) + * 27 = DL envelope (110 mm by 220 mm) + * 28 = C5 envelope (162 mm by 229 mm) + * 29 = C3 envelope (324 mm by 458 mm) + * 30 = C4 envelope (229 mm by 324 mm) + * 31 = C6 envelope (114 mm by 162 mm) + * 32 = C65 envelope (114 mm by 229 mm) + * 33 = B4 envelope (250 mm by 353 mm) + * 34 = B5 envelope (176 mm by 250 mm) + * 35 = B6 envelope (176 mm by 125 mm) + * 36 = Italy envelope (110 mm by 230 mm) + * 37 = Monarch envelope (3.875 in. by 7.5 in.). + * 38 = 6 3/4 envelope (3.625 in. by 6.5 in.) + * 39 = US standard fanfold (14.875 in. by 11 in.) + * 40 = German standard fanfold (8.5 in. by 12 in.) + * 41 = German legal fanfold (8.5 in. by 13 in.) + * 42 = ISO B4 (250 mm by 353 mm) + * 43 = Japanese double postcard (200 mm by 148 mm) + * 44 = Standard paper (9 in. by 11 in.) + * 45 = Standard paper (10 in. by 11 in.) + * 46 = Standard paper (15 in. by 11 in.) + * 47 = Invite envelope (220 mm by 220 mm) + * 50 = Letter extra paper (9.275 in. by 12 in.) + * 51 = Legal extra paper (9.275 in. by 15 in.) + * 52 = Tabloid extra paper (11.69 in. by 18 in.) + * 53 = A4 extra paper (236 mm by 322 mm) + * 54 = Letter transverse paper (8.275 in. by 11 in.) + * 55 = A4 transverse paper (210 mm by 297 mm) + * 56 = Letter extra transverse paper (9.275 in. by 12 in.) + * 57 = SuperA/SuperA/A4 paper (227 mm by 356 mm) + * 58 = SuperB/SuperB/A3 paper (305 mm by 487 mm) + * 59 = Letter plus paper (8.5 in. by 12.69 in.) + * 60 = A4 plus paper (210 mm by 330 mm) + * 61 = A5 transverse paper (148 mm by 210 mm) + * 62 = JIS B5 transverse paper (182 mm by 257 mm) + * 63 = A3 extra paper (322 mm by 445 mm) + * 64 = A5 extra paper (174 mm by 235 mm) + * 65 = ISO B5 extra paper (201 mm by 276 mm) + * 66 = A2 paper (420 mm by 594 mm) + * 67 = A3 transverse paper (297 mm by 420 mm) + * 68 = A3 extra transverse paper (322 mm by 445 mm) + * </code> + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_PageSetup +{ + /* Paper size */ + const PAPERSIZE_LETTER = 1; + const PAPERSIZE_LETTER_SMALL = 2; + const PAPERSIZE_TABLOID = 3; + const PAPERSIZE_LEDGER = 4; + const PAPERSIZE_LEGAL = 5; + const PAPERSIZE_STATEMENT = 6; + const PAPERSIZE_EXECUTIVE = 7; + const PAPERSIZE_A3 = 8; + const PAPERSIZE_A4 = 9; + const PAPERSIZE_A4_SMALL = 10; + const PAPERSIZE_A5 = 11; + const PAPERSIZE_B4 = 12; + const PAPERSIZE_B5 = 13; + const PAPERSIZE_FOLIO = 14; + const PAPERSIZE_QUARTO = 15; + const PAPERSIZE_STANDARD_1 = 16; + const PAPERSIZE_STANDARD_2 = 17; + const PAPERSIZE_NOTE = 18; + const PAPERSIZE_NO9_ENVELOPE = 19; + const PAPERSIZE_NO10_ENVELOPE = 20; + const PAPERSIZE_NO11_ENVELOPE = 21; + const PAPERSIZE_NO12_ENVELOPE = 22; + const PAPERSIZE_NO14_ENVELOPE = 23; + const PAPERSIZE_C = 24; + const PAPERSIZE_D = 25; + const PAPERSIZE_E = 26; + const PAPERSIZE_DL_ENVELOPE = 27; + const PAPERSIZE_C5_ENVELOPE = 28; + const PAPERSIZE_C3_ENVELOPE = 29; + const PAPERSIZE_C4_ENVELOPE = 30; + const PAPERSIZE_C6_ENVELOPE = 31; + const PAPERSIZE_C65_ENVELOPE = 32; + const PAPERSIZE_B4_ENVELOPE = 33; + const PAPERSIZE_B5_ENVELOPE = 34; + const PAPERSIZE_B6_ENVELOPE = 35; + const PAPERSIZE_ITALY_ENVELOPE = 36; + const PAPERSIZE_MONARCH_ENVELOPE = 37; + const PAPERSIZE_6_3_4_ENVELOPE = 38; + const PAPERSIZE_US_STANDARD_FANFOLD = 39; + const PAPERSIZE_GERMAN_STANDARD_FANFOLD = 40; + const PAPERSIZE_GERMAN_LEGAL_FANFOLD = 41; + const PAPERSIZE_ISO_B4 = 42; + const PAPERSIZE_JAPANESE_DOUBLE_POSTCARD = 43; + const PAPERSIZE_STANDARD_PAPER_1 = 44; + const PAPERSIZE_STANDARD_PAPER_2 = 45; + const PAPERSIZE_STANDARD_PAPER_3 = 46; + const PAPERSIZE_INVITE_ENVELOPE = 47; + const PAPERSIZE_LETTER_EXTRA_PAPER = 48; + const PAPERSIZE_LEGAL_EXTRA_PAPER = 49; + const PAPERSIZE_TABLOID_EXTRA_PAPER = 50; + const PAPERSIZE_A4_EXTRA_PAPER = 51; + const PAPERSIZE_LETTER_TRANSVERSE_PAPER = 52; + const PAPERSIZE_A4_TRANSVERSE_PAPER = 53; + const PAPERSIZE_LETTER_EXTRA_TRANSVERSE_PAPER = 54; + const PAPERSIZE_SUPERA_SUPERA_A4_PAPER = 55; + const PAPERSIZE_SUPERB_SUPERB_A3_PAPER = 56; + const PAPERSIZE_LETTER_PLUS_PAPER = 57; + const PAPERSIZE_A4_PLUS_PAPER = 58; + const PAPERSIZE_A5_TRANSVERSE_PAPER = 59; + const PAPERSIZE_JIS_B5_TRANSVERSE_PAPER = 60; + const PAPERSIZE_A3_EXTRA_PAPER = 61; + const PAPERSIZE_A5_EXTRA_PAPER = 62; + const PAPERSIZE_ISO_B5_EXTRA_PAPER = 63; + const PAPERSIZE_A2_PAPER = 64; + const PAPERSIZE_A3_TRANSVERSE_PAPER = 65; + const PAPERSIZE_A3_EXTRA_TRANSVERSE_PAPER = 66; + + /* Page orientation */ + const ORIENTATION_DEFAULT = 'default'; + const ORIENTATION_LANDSCAPE = 'landscape'; + const ORIENTATION_PORTRAIT = 'portrait'; + + /* Print Range Set Method */ + const SETPRINTRANGE_OVERWRITE = 'O'; + const SETPRINTRANGE_INSERT = 'I'; + + + /** + * Paper size + * + * @var int + */ + private $_paperSize = PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER; + + /** + * Orientation + * + * @var string + */ + private $_orientation = PHPExcel_Worksheet_PageSetup::ORIENTATION_DEFAULT; + + /** + * Scale (Print Scale) + * + * Print scaling. Valid values range from 10 to 400 + * This setting is overridden when fitToWidth and/or fitToHeight are in use + * + * @var int? + */ + private $_scale = 100; + + /** + * Fit To Page + * Whether scale or fitToWith / fitToHeight applies + * + * @var boolean + */ + private $_fitToPage = FALSE; + + /** + * Fit To Height + * Number of vertical pages to fit on + * + * @var int? + */ + private $_fitToHeight = 1; + + /** + * Fit To Width + * Number of horizontal pages to fit on + * + * @var int? + */ + private $_fitToWidth = 1; + + /** + * Columns to repeat at left + * + * @var array Containing start column and end column, empty array if option unset + */ + private $_columnsToRepeatAtLeft = array('', ''); + + /** + * Rows to repeat at top + * + * @var array Containing start row number and end row number, empty array if option unset + */ + private $_rowsToRepeatAtTop = array(0, 0); + + /** + * Center page horizontally + * + * @var boolean + */ + private $_horizontalCentered = FALSE; + + /** + * Center page vertically + * + * @var boolean + */ + private $_verticalCentered = FALSE; + + /** + * Print area + * + * @var string + */ + private $_printArea = NULL; + + /** + * First page number + * + * @var int + */ + private $_firstPageNumber = NULL; + + /** + * Create a new PHPExcel_Worksheet_PageSetup + */ + public function __construct() + { + } + + /** + * Get Paper Size + * + * @return int + */ + public function getPaperSize() { + return $this->_paperSize; + } + + /** + * Set Paper Size + * + * @param int $pValue + * @return PHPExcel_Worksheet_PageSetup + */ + public function setPaperSize($pValue = PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER) { + $this->_paperSize = $pValue; + return $this; + } + + /** + * Get Orientation + * + * @return string + */ + public function getOrientation() { + return $this->_orientation; + } + + /** + * Set Orientation + * + * @param string $pValue + * @return PHPExcel_Worksheet_PageSetup + */ + public function setOrientation($pValue = PHPExcel_Worksheet_PageSetup::ORIENTATION_DEFAULT) { + $this->_orientation = $pValue; + return $this; + } + + /** + * Get Scale + * + * @return int? + */ + public function getScale() { + return $this->_scale; + } + + /** + * Set Scale + * + * Print scaling. Valid values range from 10 to 400 + * This setting is overridden when fitToWidth and/or fitToHeight are in use + * + * @param int? $pValue + * @param boolean $pUpdate Update fitToPage so scaling applies rather than fitToHeight / fitToWidth + * @return PHPExcel_Worksheet_PageSetup + * @throws PHPExcel_Exception + */ + public function setScale($pValue = 100, $pUpdate = true) { + // Microsoft Office Excel 2007 only allows setting a scale between 10 and 400 via the user interface, + // but it is apparently still able to handle any scale >= 0, where 0 results in 100 + if (($pValue >= 0) || is_null($pValue)) { + $this->_scale = $pValue; + if ($pUpdate) { + $this->_fitToPage = false; + } + } else { + throw new PHPExcel_Exception("Scale must not be negative"); + } + return $this; + } + + /** + * Get Fit To Page + * + * @return boolean + */ + public function getFitToPage() { + return $this->_fitToPage; + } + + /** + * Set Fit To Page + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_PageSetup + */ + public function setFitToPage($pValue = TRUE) { + $this->_fitToPage = $pValue; + return $this; + } + + /** + * Get Fit To Height + * + * @return int? + */ + public function getFitToHeight() { + return $this->_fitToHeight; + } + + /** + * Set Fit To Height + * + * @param int? $pValue + * @param boolean $pUpdate Update fitToPage so it applies rather than scaling + * @return PHPExcel_Worksheet_PageSetup + */ + public function setFitToHeight($pValue = 1, $pUpdate = TRUE) { + $this->_fitToHeight = $pValue; + if ($pUpdate) { + $this->_fitToPage = TRUE; + } + return $this; + } + + /** + * Get Fit To Width + * + * @return int? + */ + public function getFitToWidth() { + return $this->_fitToWidth; + } + + /** + * Set Fit To Width + * + * @param int? $pValue + * @param boolean $pUpdate Update fitToPage so it applies rather than scaling + * @return PHPExcel_Worksheet_PageSetup + */ + public function setFitToWidth($pValue = 1, $pUpdate = TRUE) { + $this->_fitToWidth = $pValue; + if ($pUpdate) { + $this->_fitToPage = TRUE; + } + return $this; + } + + /** + * Is Columns to repeat at left set? + * + * @return boolean + */ + public function isColumnsToRepeatAtLeftSet() { + if (is_array($this->_columnsToRepeatAtLeft)) { + if ($this->_columnsToRepeatAtLeft[0] != '' && $this->_columnsToRepeatAtLeft[1] != '') { + return true; + } + } + + return false; + } + + /** + * Get Columns to repeat at left + * + * @return array Containing start column and end column, empty array if option unset + */ + public function getColumnsToRepeatAtLeft() { + return $this->_columnsToRepeatAtLeft; + } + + /** + * Set Columns to repeat at left + * + * @param array $pValue Containing start column and end column, empty array if option unset + * @return PHPExcel_Worksheet_PageSetup + */ + public function setColumnsToRepeatAtLeft($pValue = null) { + if (is_array($pValue)) { + $this->_columnsToRepeatAtLeft = $pValue; + } + return $this; + } + + /** + * Set Columns to repeat at left by start and end + * + * @param string $pStart + * @param string $pEnd + * @return PHPExcel_Worksheet_PageSetup + */ + public function setColumnsToRepeatAtLeftByStartAndEnd($pStart = 'A', $pEnd = 'A') { + $this->_columnsToRepeatAtLeft = array($pStart, $pEnd); + return $this; + } + + /** + * Is Rows to repeat at top set? + * + * @return boolean + */ + public function isRowsToRepeatAtTopSet() { + if (is_array($this->_rowsToRepeatAtTop)) { + if ($this->_rowsToRepeatAtTop[0] != 0 && $this->_rowsToRepeatAtTop[1] != 0) { + return true; + } + } + + return false; + } + + /** + * Get Rows to repeat at top + * + * @return array Containing start column and end column, empty array if option unset + */ + public function getRowsToRepeatAtTop() { + return $this->_rowsToRepeatAtTop; + } + + /** + * Set Rows to repeat at top + * + * @param array $pValue Containing start column and end column, empty array if option unset + * @return PHPExcel_Worksheet_PageSetup + */ + public function setRowsToRepeatAtTop($pValue = null) { + if (is_array($pValue)) { + $this->_rowsToRepeatAtTop = $pValue; + } + return $this; + } + + /** + * Set Rows to repeat at top by start and end + * + * @param int $pStart + * @param int $pEnd + * @return PHPExcel_Worksheet_PageSetup + */ + public function setRowsToRepeatAtTopByStartAndEnd($pStart = 1, $pEnd = 1) { + $this->_rowsToRepeatAtTop = array($pStart, $pEnd); + return $this; + } + + /** + * Get center page horizontally + * + * @return bool + */ + public function getHorizontalCentered() { + return $this->_horizontalCentered; + } + + /** + * Set center page horizontally + * + * @param bool $value + * @return PHPExcel_Worksheet_PageSetup + */ + public function setHorizontalCentered($value = false) { + $this->_horizontalCentered = $value; + return $this; + } + + /** + * Get center page vertically + * + * @return bool + */ + public function getVerticalCentered() { + return $this->_verticalCentered; + } + + /** + * Set center page vertically + * + * @param bool $value + * @return PHPExcel_Worksheet_PageSetup + */ + public function setVerticalCentered($value = false) { + $this->_verticalCentered = $value; + return $this; + } + + /** + * Get print area + * + * @param int $index Identifier for a specific print area range if several ranges have been set + * Default behaviour, or a index value of 0, will return all ranges as a comma-separated string + * Otherwise, the specific range identified by the value of $index will be returned + * Print areas are numbered from 1 + * @throws PHPExcel_Exception + * @return string + */ + public function getPrintArea($index = 0) { + if ($index == 0) { + return $this->_printArea; + } + $printAreas = explode(',',$this->_printArea); + if (isset($printAreas[$index-1])) { + return $printAreas[$index-1]; + } + throw new PHPExcel_Exception("Requested Print Area does not exist"); + } + + /** + * Is print area set? + * + * @param int $index Identifier for a specific print area range if several ranges have been set + * Default behaviour, or an index value of 0, will identify whether any print range is set + * Otherwise, existence of the range identified by the value of $index will be returned + * Print areas are numbered from 1 + * @return boolean + */ + public function isPrintAreaSet($index = 0) { + if ($index == 0) { + return !is_null($this->_printArea); + } + $printAreas = explode(',',$this->_printArea); + return isset($printAreas[$index-1]); + } + + /** + * Clear a print area + * + * @param int $index Identifier for a specific print area range if several ranges have been set + * Default behaviour, or an index value of 0, will clear all print ranges that are set + * Otherwise, the range identified by the value of $index will be removed from the series + * Print areas are numbered from 1 + * @return PHPExcel_Worksheet_PageSetup + */ + public function clearPrintArea($index = 0) { + if ($index == 0) { + $this->_printArea = NULL; + } else { + $printAreas = explode(',',$this->_printArea); + if (isset($printAreas[$index-1])) { + unset($printAreas[$index-1]); + $this->_printArea = implode(',',$printAreas); + } + } + + return $this; + } + + /** + * Set print area. e.g. 'A1:D10' or 'A1:D10,G5:M20' + * + * @param string $value + * @param int $index Identifier for a specific print area range allowing several ranges to be set + * When the method is "O"verwrite, then a positive integer index will overwrite that indexed + * entry in the print areas list; a negative index value will identify which entry to + * overwrite working bacward through the print area to the list, with the last entry as -1. + * Specifying an index value of 0, will overwrite <b>all</b> existing print ranges. + * When the method is "I"nsert, then a positive index will insert after that indexed entry in + * the print areas list, while a negative index will insert before the indexed entry. + * Specifying an index value of 0, will always append the new print range at the end of the + * list. + * Print areas are numbered from 1 + * @param string $method Determines the method used when setting multiple print areas + * Default behaviour, or the "O" method, overwrites existing print area + * The "I" method, inserts the new print area before any specified index, or at the end of the list + * @return PHPExcel_Worksheet_PageSetup + * @throws PHPExcel_Exception + */ + public function setPrintArea($value, $index = 0, $method = self::SETPRINTRANGE_OVERWRITE) { + if (strpos($value,'!') !== false) { + throw new PHPExcel_Exception('Cell coordinate must not specify a worksheet.'); + } elseif (strpos($value,':') === false) { + throw new PHPExcel_Exception('Cell coordinate must be a range of cells.'); + } elseif (strpos($value,'$') !== false) { + throw new PHPExcel_Exception('Cell coordinate must not be absolute.'); + } + $value = strtoupper($value); + + if ($method == self::SETPRINTRANGE_OVERWRITE) { + if ($index == 0) { + $this->_printArea = $value; + } else { + $printAreas = explode(',',$this->_printArea); + if($index < 0) { + $index = count($printAreas) - abs($index) + 1; + } + if (($index <= 0) || ($index > count($printAreas))) { + throw new PHPExcel_Exception('Invalid index for setting print range.'); + } + $printAreas[$index-1] = $value; + $this->_printArea = implode(',',$printAreas); + } + } elseif($method == self::SETPRINTRANGE_INSERT) { + if ($index == 0) { + $this->_printArea .= ($this->_printArea == '') ? $value : ','.$value; + } else { + $printAreas = explode(',',$this->_printArea); + if($index < 0) { + $index = abs($index) - 1; + } + if ($index > count($printAreas)) { + throw new PHPExcel_Exception('Invalid index for setting print range.'); + } + $printAreas = array_merge(array_slice($printAreas,0,$index),array($value),array_slice($printAreas,$index)); + $this->_printArea = implode(',',$printAreas); + } + } else { + throw new PHPExcel_Exception('Invalid method for setting print range.'); + } + + return $this; + } + + /** + * Add a new print area (e.g. 'A1:D10' or 'A1:D10,G5:M20') to the list of print areas + * + * @param string $value + * @param int $index Identifier for a specific print area range allowing several ranges to be set + * A positive index will insert after that indexed entry in the print areas list, while a + * negative index will insert before the indexed entry. + * Specifying an index value of 0, will always append the new print range at the end of the + * list. + * Print areas are numbered from 1 + * @return PHPExcel_Worksheet_PageSetup + * @throws PHPExcel_Exception + */ + public function addPrintArea($value, $index = -1) { + return $this->setPrintArea($value, $index, self::SETPRINTRANGE_INSERT); + } + + /** + * Set print area + * + * @param int $column1 Column 1 + * @param int $row1 Row 1 + * @param int $column2 Column 2 + * @param int $row2 Row 2 + * @param int $index Identifier for a specific print area range allowing several ranges to be set + * When the method is "O"verwrite, then a positive integer index will overwrite that indexed + * entry in the print areas list; a negative index value will identify which entry to + * overwrite working bacward through the print area to the list, with the last entry as -1. + * Specifying an index value of 0, will overwrite <b>all</b> existing print ranges. + * When the method is "I"nsert, then a positive index will insert after that indexed entry in + * the print areas list, while a negative index will insert before the indexed entry. + * Specifying an index value of 0, will always append the new print range at the end of the + * list. + * Print areas are numbered from 1 + * @param string $method Determines the method used when setting multiple print areas + * Default behaviour, or the "O" method, overwrites existing print area + * The "I" method, inserts the new print area before any specified index, or at the end of the list + * @return PHPExcel_Worksheet_PageSetup + * @throws PHPExcel_Exception + */ + public function setPrintAreaByColumnAndRow($column1, $row1, $column2, $row2, $index = 0, $method = self::SETPRINTRANGE_OVERWRITE) + { + return $this->setPrintArea(PHPExcel_Cell::stringFromColumnIndex($column1) . $row1 . ':' . PHPExcel_Cell::stringFromColumnIndex($column2) . $row2, $index, $method); + } + + /** + * Add a new print area to the list of print areas + * + * @param int $column1 Start Column for the print area + * @param int $row1 Start Row for the print area + * @param int $column2 End Column for the print area + * @param int $row2 End Row for the print area + * @param int $index Identifier for a specific print area range allowing several ranges to be set + * A positive index will insert after that indexed entry in the print areas list, while a + * negative index will insert before the indexed entry. + * Specifying an index value of 0, will always append the new print range at the end of the + * list. + * Print areas are numbered from 1 + * @return PHPExcel_Worksheet_PageSetup + * @throws PHPExcel_Exception + */ + public function addPrintAreaByColumnAndRow($column1, $row1, $column2, $row2, $index = -1) + { + return $this->setPrintArea(PHPExcel_Cell::stringFromColumnIndex($column1) . $row1 . ':' . PHPExcel_Cell::stringFromColumnIndex($column2) . $row2, $index, self::SETPRINTRANGE_INSERT); + } + + /** + * Get first page number + * + * @return int + */ + public function getFirstPageNumber() { + return $this->_firstPageNumber; + } + + /** + * Set first page number + * + * @param int $value + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function setFirstPageNumber($value = null) { + $this->_firstPageNumber = $value; + return $this; + } + + /** + * Reset first page number + * + * @return PHPExcel_Worksheet_HeaderFooter + */ + public function resetFirstPageNumber() { + return $this->setFirstPageNumber(null); + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Worksheet/Protection.php b/admin/helpers/PHPExcel/Worksheet/Protection.php new file mode 100644 index 00000000..da66bf76 --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/Protection.php @@ -0,0 +1,545 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_Protection + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_Protection +{ + /** + * Sheet + * + * @var boolean + */ + private $_sheet = false; + + /** + * Objects + * + * @var boolean + */ + private $_objects = false; + + /** + * Scenarios + * + * @var boolean + */ + private $_scenarios = false; + + /** + * Format cells + * + * @var boolean + */ + private $_formatCells = false; + + /** + * Format columns + * + * @var boolean + */ + private $_formatColumns = false; + + /** + * Format rows + * + * @var boolean + */ + private $_formatRows = false; + + /** + * Insert columns + * + * @var boolean + */ + private $_insertColumns = false; + + /** + * Insert rows + * + * @var boolean + */ + private $_insertRows = false; + + /** + * Insert hyperlinks + * + * @var boolean + */ + private $_insertHyperlinks = false; + + /** + * Delete columns + * + * @var boolean + */ + private $_deleteColumns = false; + + /** + * Delete rows + * + * @var boolean + */ + private $_deleteRows = false; + + /** + * Select locked cells + * + * @var boolean + */ + private $_selectLockedCells = false; + + /** + * Sort + * + * @var boolean + */ + private $_sort = false; + + /** + * AutoFilter + * + * @var boolean + */ + private $_autoFilter = false; + + /** + * Pivot tables + * + * @var boolean + */ + private $_pivotTables = false; + + /** + * Select unlocked cells + * + * @var boolean + */ + private $_selectUnlockedCells = false; + + /** + * Password + * + * @var string + */ + private $_password = ''; + + /** + * Create a new PHPExcel_Worksheet_Protection + */ + public function __construct() + { + } + + /** + * Is some sort of protection enabled? + * + * @return boolean + */ + function isProtectionEnabled() { + return $this->_sheet || + $this->_objects || + $this->_scenarios || + $this->_formatCells || + $this->_formatColumns || + $this->_formatRows || + $this->_insertColumns || + $this->_insertRows || + $this->_insertHyperlinks || + $this->_deleteColumns || + $this->_deleteRows || + $this->_selectLockedCells || + $this->_sort || + $this->_autoFilter || + $this->_pivotTables || + $this->_selectUnlockedCells; + } + + /** + * Get Sheet + * + * @return boolean + */ + function getSheet() { + return $this->_sheet; + } + + /** + * Set Sheet + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setSheet($pValue = false) { + $this->_sheet = $pValue; + return $this; + } + + /** + * Get Objects + * + * @return boolean + */ + function getObjects() { + return $this->_objects; + } + + /** + * Set Objects + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setObjects($pValue = false) { + $this->_objects = $pValue; + return $this; + } + + /** + * Get Scenarios + * + * @return boolean + */ + function getScenarios() { + return $this->_scenarios; + } + + /** + * Set Scenarios + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setScenarios($pValue = false) { + $this->_scenarios = $pValue; + return $this; + } + + /** + * Get FormatCells + * + * @return boolean + */ + function getFormatCells() { + return $this->_formatCells; + } + + /** + * Set FormatCells + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setFormatCells($pValue = false) { + $this->_formatCells = $pValue; + return $this; + } + + /** + * Get FormatColumns + * + * @return boolean + */ + function getFormatColumns() { + return $this->_formatColumns; + } + + /** + * Set FormatColumns + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setFormatColumns($pValue = false) { + $this->_formatColumns = $pValue; + return $this; + } + + /** + * Get FormatRows + * + * @return boolean + */ + function getFormatRows() { + return $this->_formatRows; + } + + /** + * Set FormatRows + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setFormatRows($pValue = false) { + $this->_formatRows = $pValue; + return $this; + } + + /** + * Get InsertColumns + * + * @return boolean + */ + function getInsertColumns() { + return $this->_insertColumns; + } + + /** + * Set InsertColumns + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setInsertColumns($pValue = false) { + $this->_insertColumns = $pValue; + return $this; + } + + /** + * Get InsertRows + * + * @return boolean + */ + function getInsertRows() { + return $this->_insertRows; + } + + /** + * Set InsertRows + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setInsertRows($pValue = false) { + $this->_insertRows = $pValue; + return $this; + } + + /** + * Get InsertHyperlinks + * + * @return boolean + */ + function getInsertHyperlinks() { + return $this->_insertHyperlinks; + } + + /** + * Set InsertHyperlinks + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setInsertHyperlinks($pValue = false) { + $this->_insertHyperlinks = $pValue; + return $this; + } + + /** + * Get DeleteColumns + * + * @return boolean + */ + function getDeleteColumns() { + return $this->_deleteColumns; + } + + /** + * Set DeleteColumns + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setDeleteColumns($pValue = false) { + $this->_deleteColumns = $pValue; + return $this; + } + + /** + * Get DeleteRows + * + * @return boolean + */ + function getDeleteRows() { + return $this->_deleteRows; + } + + /** + * Set DeleteRows + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setDeleteRows($pValue = false) { + $this->_deleteRows = $pValue; + return $this; + } + + /** + * Get SelectLockedCells + * + * @return boolean + */ + function getSelectLockedCells() { + return $this->_selectLockedCells; + } + + /** + * Set SelectLockedCells + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setSelectLockedCells($pValue = false) { + $this->_selectLockedCells = $pValue; + return $this; + } + + /** + * Get Sort + * + * @return boolean + */ + function getSort() { + return $this->_sort; + } + + /** + * Set Sort + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setSort($pValue = false) { + $this->_sort = $pValue; + return $this; + } + + /** + * Get AutoFilter + * + * @return boolean + */ + function getAutoFilter() { + return $this->_autoFilter; + } + + /** + * Set AutoFilter + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setAutoFilter($pValue = false) { + $this->_autoFilter = $pValue; + return $this; + } + + /** + * Get PivotTables + * + * @return boolean + */ + function getPivotTables() { + return $this->_pivotTables; + } + + /** + * Set PivotTables + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setPivotTables($pValue = false) { + $this->_pivotTables = $pValue; + return $this; + } + + /** + * Get SelectUnlockedCells + * + * @return boolean + */ + function getSelectUnlockedCells() { + return $this->_selectUnlockedCells; + } + + /** + * Set SelectUnlockedCells + * + * @param boolean $pValue + * @return PHPExcel_Worksheet_Protection + */ + function setSelectUnlockedCells($pValue = false) { + $this->_selectUnlockedCells = $pValue; + return $this; + } + + /** + * Get Password (hashed) + * + * @return string + */ + function getPassword() { + return $this->_password; + } + + /** + * Set Password + * + * @param string $pValue + * @param boolean $pAlreadyHashed If the password has already been hashed, set this to true + * @return PHPExcel_Worksheet_Protection + */ + function setPassword($pValue = '', $pAlreadyHashed = false) { + if (!$pAlreadyHashed) { + $pValue = PHPExcel_Shared_PasswordHasher::hashPassword($pValue); + } + $this->_password = $pValue; + return $this; + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Worksheet/Row.php b/admin/helpers/PHPExcel/Worksheet/Row.php new file mode 100644 index 00000000..df16d33c --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/Row.php @@ -0,0 +1,90 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_Row + * + * Represents a row in PHPExcel_Worksheet, used by PHPExcel_Worksheet_RowIterator + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_Row +{ + /** + * PHPExcel_Worksheet + * + * @var PHPExcel_Worksheet + */ + private $_parent; + + /** + * Row index + * + * @var int + */ + private $_rowIndex = 0; + + /** + * Create a new row + * + * @param PHPExcel_Worksheet $parent + * @param int $rowIndex + */ + public function __construct(PHPExcel_Worksheet $parent = null, $rowIndex = 1) { + // Set parent and row index + $this->_parent = $parent; + $this->_rowIndex = $rowIndex; + } + + /** + * Destructor + */ + public function __destruct() { + unset($this->_parent); + } + + /** + * Get row index + * + * @return int + */ + public function getRowIndex() { + return $this->_rowIndex; + } + + /** + * Get cell iterator + * + * @return PHPExcel_Worksheet_CellIterator + */ + public function getCellIterator() { + return new PHPExcel_Worksheet_CellIterator($this->_parent, $this->_rowIndex); + } +} diff --git a/admin/helpers/PHPExcel/Worksheet/RowDimension.php b/admin/helpers/PHPExcel/Worksheet/RowDimension.php new file mode 100644 index 00000000..bff89a08 --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/RowDimension.php @@ -0,0 +1,265 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_RowDimension + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_RowDimension +{ + /** + * Row index + * + * @var int + */ + private $_rowIndex; + + /** + * Row height (in pt) + * + * When this is set to a negative value, the row height should be ignored by IWriter + * + * @var double + */ + private $_rowHeight = -1; + + /** + * ZeroHeight for Row? + * + * @var bool + */ + private $_zeroHeight = false; + + /** + * Visible? + * + * @var bool + */ + private $_visible = true; + + /** + * Outline level + * + * @var int + */ + private $_outlineLevel = 0; + + /** + * Collapsed + * + * @var bool + */ + private $_collapsed = false; + + /** + * Index to cellXf. Null value means row has no explicit cellXf format. + * + * @var int|null + */ + private $_xfIndex; + + /** + * Create a new PHPExcel_Worksheet_RowDimension + * + * @param int $pIndex Numeric row index + */ + public function __construct($pIndex = 0) + { + // Initialise values + $this->_rowIndex = $pIndex; + + // set row dimension as unformatted by default + $this->_xfIndex = null; + } + + /** + * Get Row Index + * + * @return int + */ + public function getRowIndex() { + return $this->_rowIndex; + } + + /** + * Set Row Index + * + * @param int $pValue + * @return PHPExcel_Worksheet_RowDimension + */ + public function setRowIndex($pValue) { + $this->_rowIndex = $pValue; + return $this; + } + + /** + * Get Row Height + * + * @return double + */ + public function getRowHeight() { + return $this->_rowHeight; + } + + /** + * Set Row Height + * + * @param double $pValue + * @return PHPExcel_Worksheet_RowDimension + */ + public function setRowHeight($pValue = -1) { + $this->_rowHeight = $pValue; + return $this; + } + + /** + * Get ZeroHeight + * + * @return bool + */ + public function getZeroHeight() { + return $this->_zeroHeight; + } + + /** + * Set ZeroHeight + * + * @param bool $pValue + * @return PHPExcel_Worksheet_RowDimension + */ + public function setZeroHeight($pValue = false) { + $this->_zeroHeight = $pValue; + return $this; + } + + /** + * Get Visible + * + * @return bool + */ + public function getVisible() { + return $this->_visible; + } + + /** + * Set Visible + * + * @param bool $pValue + * @return PHPExcel_Worksheet_RowDimension + */ + public function setVisible($pValue = true) { + $this->_visible = $pValue; + return $this; + } + + /** + * Get Outline Level + * + * @return int + */ + public function getOutlineLevel() { + return $this->_outlineLevel; + } + + /** + * Set Outline Level + * + * Value must be between 0 and 7 + * + * @param int $pValue + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_RowDimension + */ + public function setOutlineLevel($pValue) { + if ($pValue < 0 || $pValue > 7) { + throw new PHPExcel_Exception("Outline level must range between 0 and 7."); + } + + $this->_outlineLevel = $pValue; + return $this; + } + + /** + * Get Collapsed + * + * @return bool + */ + public function getCollapsed() { + return $this->_collapsed; + } + + /** + * Set Collapsed + * + * @param bool $pValue + * @return PHPExcel_Worksheet_RowDimension + */ + public function setCollapsed($pValue = true) { + $this->_collapsed = $pValue; + return $this; + } + + /** + * Get index to cellXf + * + * @return int + */ + public function getXfIndex() + { + return $this->_xfIndex; + } + + /** + * Set index to cellXf + * + * @param int $pValue + * @return PHPExcel_Worksheet_RowDimension + */ + public function setXfIndex($pValue = 0) + { + $this->_xfIndex = $pValue; + return $this; + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Worksheet/RowIterator.php b/admin/helpers/PHPExcel/Worksheet/RowIterator.php new file mode 100644 index 00000000..642ec763 --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/RowIterator.php @@ -0,0 +1,148 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_RowIterator + * + * Used to iterate rows in a PHPExcel_Worksheet + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_RowIterator implements Iterator +{ + /** + * PHPExcel_Worksheet to iterate + * + * @var PHPExcel_Worksheet + */ + private $_subject; + + /** + * Current iterator position + * + * @var int + */ + private $_position = 1; + + /** + * Start position + * + * @var int + */ + private $_startRow = 1; + + + /** + * Create a new row iterator + * + * @param PHPExcel_Worksheet $subject The worksheet to iterate over + * @param integer $startRow The row number at which to start iterating + */ + public function __construct(PHPExcel_Worksheet $subject = null, $startRow = 1) { + // Set subject + $this->_subject = $subject; + $this->resetStart($startRow); + } + + /** + * Destructor + */ + public function __destruct() { + unset($this->_subject); + } + + /** + * (Re)Set the start row and the current row pointer + * + * @param integer $startRow The row number at which to start iterating + */ + public function resetStart($startRow = 1) { + $this->_startRow = $startRow; + $this->seek($startRow); + } + + /** + * Set the row pointer to the selected row + * + * @param integer $row The row number to set the current pointer at + */ + public function seek($row = 1) { + $this->_position = $row; + } + + /** + * Rewind the iterator to the starting row + */ + public function rewind() { + $this->_position = $this->_startRow; + } + + /** + * Return the current row in this worksheet + * + * @return PHPExcel_Worksheet_Row + */ + public function current() { + return new PHPExcel_Worksheet_Row($this->_subject, $this->_position); + } + + /** + * Return the current iterator key + * + * @return int + */ + public function key() { + return $this->_position; + } + + /** + * Set the iterator to its next value + */ + public function next() { + ++$this->_position; + } + + /** + * Set the iterator to its previous value + */ + public function prev() { + if ($this->_position > 1) + --$this->_position; + } + + /** + * Indicate if more rows exist in the worksheet + * + * @return boolean + */ + public function valid() { + return $this->_position <= $this->_subject->getHighestRow(); + } +} diff --git a/admin/helpers/PHPExcel/Worksheet/SheetView.php b/admin/helpers/PHPExcel/Worksheet/SheetView.php new file mode 100644 index 00000000..8ced835d --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/SheetView.php @@ -0,0 +1,188 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Worksheet_SheetView + * + * @category PHPExcel + * @package PHPExcel_Worksheet + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Worksheet_SheetView +{ + + /* Sheet View types */ + const SHEETVIEW_NORMAL = 'normal'; + const SHEETVIEW_PAGE_LAYOUT = 'pageLayout'; + const SHEETVIEW_PAGE_BREAK_PREVIEW = 'pageBreakPreview'; + + private static $_sheetViewTypes = array( + self::SHEETVIEW_NORMAL, + self::SHEETVIEW_PAGE_LAYOUT, + self::SHEETVIEW_PAGE_BREAK_PREVIEW, + ); + + /** + * ZoomScale + * + * Valid values range from 10 to 400. + * + * @var int + */ + private $_zoomScale = 100; + + /** + * ZoomScaleNormal + * + * Valid values range from 10 to 400. + * + * @var int + */ + private $_zoomScaleNormal = 100; + + /** + * View + * + * Valid values range from 10 to 400. + * + * @var string + */ + private $_sheetviewType = self::SHEETVIEW_NORMAL; + + /** + * Create a new PHPExcel_Worksheet_SheetView + */ + public function __construct() + { + } + + /** + * Get ZoomScale + * + * @return int + */ + public function getZoomScale() { + return $this->_zoomScale; + } + + /** + * Set ZoomScale + * + * Valid values range from 10 to 400. + * + * @param int $pValue + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_SheetView + */ + public function setZoomScale($pValue = 100) { + // Microsoft Office Excel 2007 only allows setting a scale between 10 and 400 via the user interface, + // but it is apparently still able to handle any scale >= 1 + if (($pValue >= 1) || is_null($pValue)) { + $this->_zoomScale = $pValue; + } else { + throw new PHPExcel_Exception("Scale must be greater than or equal to 1."); + } + return $this; + } + + /** + * Get ZoomScaleNormal + * + * @return int + */ + public function getZoomScaleNormal() { + return $this->_zoomScaleNormal; + } + + /** + * Set ZoomScale + * + * Valid values range from 10 to 400. + * + * @param int $pValue + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_SheetView + */ + public function setZoomScaleNormal($pValue = 100) { + if (($pValue >= 1) || is_null($pValue)) { + $this->_zoomScaleNormal = $pValue; + } else { + throw new PHPExcel_Exception("Scale must be greater than or equal to 1."); + } + return $this; + } + + /** + * Get View + * + * @return string + */ + public function getView() { + return $this->_sheetviewType; + } + + /** + * Set View + * + * Valid values are + * 'normal' self::SHEETVIEW_NORMAL + * 'pageLayout' self::SHEETVIEW_PAGE_LAYOUT + * 'pageBreakPreview' self::SHEETVIEW_PAGE_BREAK_PREVIEW + * + * @param string $pValue + * @throws PHPExcel_Exception + * @return PHPExcel_Worksheet_SheetView + */ + public function setView($pValue = NULL) { + // MS Excel 2007 allows setting the view to 'normal', 'pageLayout' or 'pageBreakPreview' + // via the user interface + if ($pValue === NULL) + $pValue = self::SHEETVIEW_NORMAL; + if (in_array($pValue, self::$_sheetViewTypes)) { + $this->_sheetviewType = $pValue; + } else { + throw new PHPExcel_Exception("Invalid sheetview layout type."); + } + + return $this; + } + + /** + * Implement PHP __clone to create a deep clone, not just a shallow copy. + */ + public function __clone() { + $vars = get_object_vars($this); + foreach ($vars as $key => $value) { + if (is_object($value)) { + $this->$key = clone $value; + } else { + $this->$key = $value; + } + } + } +} diff --git a/admin/helpers/PHPExcel/Worksheet/index.html b/admin/helpers/PHPExcel/Worksheet/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Worksheet/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/WorksheetIterator.php b/admin/helpers/PHPExcel/WorksheetIterator.php new file mode 100644 index 00000000..ad17fd90 --- /dev/null +++ b/admin/helpers/PHPExcel/WorksheetIterator.php @@ -0,0 +1,118 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_WorksheetIterator + * + * Used to iterate worksheets in PHPExcel + * + * @category PHPExcel + * @package PHPExcel + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_WorksheetIterator implements Iterator +{ + /** + * Spreadsheet to iterate + * + * @var PHPExcel + */ + private $_subject; + + /** + * Current iterator position + * + * @var int + */ + private $_position = 0; + + /** + * Create a new worksheet iterator + * + * @param PHPExcel $subject + */ + public function __construct(PHPExcel $subject = null) + { + // Set subject + $this->_subject = $subject; + } + + /** + * Destructor + */ + public function __destruct() + { + unset($this->_subject); + } + + /** + * Rewind iterator + */ + public function rewind() + { + $this->_position = 0; + } + + /** + * Current PHPExcel_Worksheet + * + * @return PHPExcel_Worksheet + */ + public function current() + { + return $this->_subject->getSheet($this->_position); + } + + /** + * Current key + * + * @return int + */ + public function key() + { + return $this->_position; + } + + /** + * Next value + */ + public function next() + { + ++$this->_position; + } + + /** + * More PHPExcel_Worksheet instances available? + * + * @return boolean + */ + public function valid() + { + return $this->_position < $this->_subject->getSheetCount(); + } +} diff --git a/admin/helpers/PHPExcel/Writer/Abstract.php b/admin/helpers/PHPExcel/Writer/Abstract.php new file mode 100644 index 00000000..fca6a60c --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Abstract.php @@ -0,0 +1,158 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Abstract + * + * @category PHPExcel + * @package PHPExcel_Writer + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +abstract class PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter +{ + /** + * Write charts that are defined in the workbook? + * Identifies whether the Writer should write definitions for any charts that exist in the PHPExcel object; + * + * @var boolean + */ + protected $_includeCharts = FALSE; + + /** + * Pre-calculate formulas + * Forces PHPExcel to recalculate all formulae in a workbook when saving, so that the pre-calculated values are + * immediately available to MS Excel or other office spreadsheet viewer when opening the file + * + * @var boolean + */ + protected $_preCalculateFormulas = TRUE; + + /** + * Use disk caching where possible? + * + * @var boolean + */ + protected $_useDiskCaching = FALSE; + + /** + * Disk caching directory + * + * @var string + */ + protected $_diskCachingDirectory = './'; + + /** + * Write charts in workbook? + * If this is true, then the Writer will write definitions for any charts that exist in the PHPExcel object. + * If false (the default) it will ignore any charts defined in the PHPExcel object. + * + * @return boolean + */ + public function getIncludeCharts() { + return $this->_includeCharts; + } + + /** + * Set write charts in workbook + * Set to true, to advise the Writer to include any charts that exist in the PHPExcel object. + * Set to false (the default) to ignore charts. + * + * @param boolean $pValue + * @return PHPExcel_Writer_IWriter + */ + public function setIncludeCharts($pValue = FALSE) { + $this->_includeCharts = (boolean) $pValue; + return $this; + } + + /** + * Get Pre-Calculate Formulas flag + * If this is true (the default), then the writer will recalculate all formulae in a workbook when saving, + * so that the pre-calculated values are immediately available to MS Excel or other office spreadsheet + * viewer when opening the file + * If false, then formulae are not calculated on save. This is faster for saving in PHPExcel, but slower + * when opening the resulting file in MS Excel, because Excel has to recalculate the formulae itself + * + * @return boolean + */ + public function getPreCalculateFormulas() { + return $this->_preCalculateFormulas; + } + + /** + * Set Pre-Calculate Formulas + * Set to true (the default) to advise the Writer to calculate all formulae on save + * Set to false to prevent precalculation of formulae on save. + * + * @param boolean $pValue Pre-Calculate Formulas? + * @return PHPExcel_Writer_IWriter + */ + public function setPreCalculateFormulas($pValue = TRUE) { + $this->_preCalculateFormulas = (boolean) $pValue; + return $this; + } + + /** + * Get use disk caching where possible? + * + * @return boolean + */ + public function getUseDiskCaching() { + return $this->_useDiskCaching; + } + + /** + * Set use disk caching where possible? + * + * @param boolean $pValue + * @param string $pDirectory Disk caching directory + * @throws PHPExcel_Writer_Exception when directory does not exist + * @return PHPExcel_Writer_Excel2007 + */ + public function setUseDiskCaching($pValue = FALSE, $pDirectory = NULL) { + $this->_useDiskCaching = $pValue; + + if ($pDirectory !== NULL) { + if (is_dir($pDirectory)) { + $this->_diskCachingDirectory = $pDirectory; + } else { + throw new PHPExcel_Writer_Exception("Directory does not exist: $pDirectory"); + } + } + return $this; + } + + /** + * Get disk caching directory + * + * @return string + */ + public function getDiskCachingDirectory() { + return $this->_diskCachingDirectory; + } +} diff --git a/admin/helpers/PHPExcel/Writer/CSV.php b/admin/helpers/PHPExcel/Writer/CSV.php new file mode 100644 index 00000000..97961ccc --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/CSV.php @@ -0,0 +1,310 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_CSV + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_CSV + * + * @category PHPExcel + * @package PHPExcel_Writer_CSV + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_CSV extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter { + /** + * PHPExcel object + * + * @var PHPExcel + */ + private $_phpExcel; + + /** + * Delimiter + * + * @var string + */ + private $_delimiter = ','; + + /** + * Enclosure + * + * @var string + */ + private $_enclosure = '"'; + + /** + * Line ending + * + * @var string + */ + private $_lineEnding = PHP_EOL; + + /** + * Sheet index to write + * + * @var int + */ + private $_sheetIndex = 0; + + /** + * Whether to write a BOM (for UTF8). + * + * @var boolean + */ + private $_useBOM = false; + + /** + * Whether to write a fully Excel compatible CSV file. + * + * @var boolean + */ + private $_excelCompatibility = false; + + /** + * Create a new PHPExcel_Writer_CSV + * + * @param PHPExcel $phpExcel PHPExcel object + */ + public function __construct(PHPExcel $phpExcel) { + $this->_phpExcel = $phpExcel; + } + + /** + * Save PHPExcel to file + * + * @param string $pFilename + * @throws PHPExcel_Writer_Exception + */ + public function save($pFilename = null) { + // Fetch sheet + $sheet = $this->_phpExcel->getSheet($this->_sheetIndex); + + $saveDebugLog = PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->getWriteDebugLog(); + PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->setWriteDebugLog(FALSE); + $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType(); + PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE); + + // Open file + $fileHandle = fopen($pFilename, 'wb+'); + if ($fileHandle === false) { + throw new PHPExcel_Writer_Exception("Could not open file $pFilename for writing."); + } + + if ($this->_excelCompatibility) { + fwrite($fileHandle, "\xEF\xBB\xBF"); // Enforce UTF-8 BOM Header + $this->setEnclosure('"'); // Set enclosure to " + $this->setDelimiter(";"); // Set delimiter to a semi-colon + $this->setLineEnding("\r\n"); + fwrite($fileHandle, 'sep=' . $this->getDelimiter() . $this->_lineEnding); + } elseif ($this->_useBOM) { + // Write the UTF-8 BOM code if required + fwrite($fileHandle, "\xEF\xBB\xBF"); + } + + // Identify the range that we need to extract from the worksheet + $maxCol = $sheet->getHighestDataColumn(); + $maxRow = $sheet->getHighestDataRow(); + + // Write rows to file + for($row = 1; $row <= $maxRow; ++$row) { + // Convert the row to an array... + $cellsArray = $sheet->rangeToArray('A'.$row.':'.$maxCol.$row,'', $this->_preCalculateFormulas); + // ... and write to the file + $this->_writeLine($fileHandle, $cellsArray[0]); + } + + // Close file + fclose($fileHandle); + + PHPExcel_Calculation::setArrayReturnType($saveArrayReturnType); + PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog); + } + + /** + * Get delimiter + * + * @return string + */ + public function getDelimiter() { + return $this->_delimiter; + } + + /** + * Set delimiter + * + * @param string $pValue Delimiter, defaults to , + * @return PHPExcel_Writer_CSV + */ + public function setDelimiter($pValue = ',') { + $this->_delimiter = $pValue; + return $this; + } + + /** + * Get enclosure + * + * @return string + */ + public function getEnclosure() { + return $this->_enclosure; + } + + /** + * Set enclosure + * + * @param string $pValue Enclosure, defaults to " + * @return PHPExcel_Writer_CSV + */ + public function setEnclosure($pValue = '"') { + if ($pValue == '') { + $pValue = null; + } + $this->_enclosure = $pValue; + return $this; + } + + /** + * Get line ending + * + * @return string + */ + public function getLineEnding() { + return $this->_lineEnding; + } + + /** + * Set line ending + * + * @param string $pValue Line ending, defaults to OS line ending (PHP_EOL) + * @return PHPExcel_Writer_CSV + */ + public function setLineEnding($pValue = PHP_EOL) { + $this->_lineEnding = $pValue; + return $this; + } + + /** + * Get whether BOM should be used + * + * @return boolean + */ + public function getUseBOM() { + return $this->_useBOM; + } + + /** + * Set whether BOM should be used + * + * @param boolean $pValue Use UTF-8 byte-order mark? Defaults to false + * @return PHPExcel_Writer_CSV + */ + public function setUseBOM($pValue = false) { + $this->_useBOM = $pValue; + return $this; + } + + /** + * Get whether the file should be saved with full Excel Compatibility + * + * @return boolean + */ + public function getExcelCompatibility() { + return $this->_excelCompatibility; + } + + /** + * Set whether the file should be saved with full Excel Compatibility + * + * @param boolean $pValue Set the file to be written as a fully Excel compatible csv file + * Note that this overrides other settings such as useBOM, enclosure and delimiter + * @return PHPExcel_Writer_CSV + */ + public function setExcelCompatibility($pValue = false) { + $this->_excelCompatibility = $pValue; + return $this; + } + + /** + * Get sheet index + * + * @return int + */ + public function getSheetIndex() { + return $this->_sheetIndex; + } + + /** + * Set sheet index + * + * @param int $pValue Sheet index + * @return PHPExcel_Writer_CSV + */ + public function setSheetIndex($pValue = 0) { + $this->_sheetIndex = $pValue; + return $this; + } + + /** + * Write line to CSV file + * + * @param mixed $pFileHandle PHP filehandle + * @param array $pValues Array containing values in a row + * @throws PHPExcel_Writer_Exception + */ + private function _writeLine($pFileHandle = null, $pValues = null) { + if (is_array($pValues)) { + // No leading delimiter + $writeDelimiter = false; + + // Build the line + $line = ''; + + foreach ($pValues as $element) { + // Escape enclosures + $element = str_replace($this->_enclosure, $this->_enclosure . $this->_enclosure, $element); + + // Add delimiter + if ($writeDelimiter) { + $line .= $this->_delimiter; + } else { + $writeDelimiter = true; + } + + // Add enclosed string + $line .= $this->_enclosure . $element . $this->_enclosure; + } + + // Add line ending + $line .= $this->_lineEnding; + + // Write to file + fwrite($pFileHandle, $line); + } else { + throw new PHPExcel_Writer_Exception("Invalid data row passed to CSV writer."); + } + } + +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007.php b/admin/helpers/PHPExcel/Writer/Excel2007.php new file mode 100644 index 00000000..4cf14ac1 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007.php @@ -0,0 +1,532 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel2007 + * + * @category PHPExcel + * @package PHPExcel_Writer_2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel2007 extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter +{ + /** + * Pre-calculate formulas + * Forces PHPExcel to recalculate all formulae in a workbook when saving, so that the pre-calculated values are + * immediately available to MS Excel or other office spreadsheet viewer when opening the file + * + * Overrides the default TRUE for this specific writer for performance reasons + * + * @var boolean + */ + protected $_preCalculateFormulas = FALSE; + + /** + * Office2003 compatibility + * + * @var boolean + */ + private $_office2003compatibility = false; + + /** + * Private writer parts + * + * @var PHPExcel_Writer_Excel2007_WriterPart[] + */ + private $_writerParts = array(); + + /** + * Private PHPExcel + * + * @var PHPExcel + */ + private $_spreadSheet; + + /** + * Private string table + * + * @var string[] + */ + private $_stringTable = array(); + + /** + * Private unique PHPExcel_Style_Conditional HashTable + * + * @var PHPExcel_HashTable + */ + private $_stylesConditionalHashTable; + + /** + * Private unique PHPExcel_Style HashTable + * + * @var PHPExcel_HashTable + */ + private $_styleHashTable; + + /** + * Private unique PHPExcel_Style_Fill HashTable + * + * @var PHPExcel_HashTable + */ + private $_fillHashTable; + + /** + * Private unique PHPExcel_Style_Font HashTable + * + * @var PHPExcel_HashTable + */ + private $_fontHashTable; + + /** + * Private unique PHPExcel_Style_Borders HashTable + * + * @var PHPExcel_HashTable + */ + private $_bordersHashTable ; + + /** + * Private unique PHPExcel_Style_NumberFormat HashTable + * + * @var PHPExcel_HashTable + */ + private $_numFmtHashTable; + + /** + * Private unique PHPExcel_Worksheet_BaseDrawing HashTable + * + * @var PHPExcel_HashTable + */ + private $_drawingHashTable; + + /** + * Create a new PHPExcel_Writer_Excel2007 + * + * @param PHPExcel $pPHPExcel + */ + public function __construct(PHPExcel $pPHPExcel = null) + { + // Assign PHPExcel + $this->setPHPExcel($pPHPExcel); + + $writerPartsArray = array( 'stringtable' => 'PHPExcel_Writer_Excel2007_StringTable', + 'contenttypes' => 'PHPExcel_Writer_Excel2007_ContentTypes', + 'docprops' => 'PHPExcel_Writer_Excel2007_DocProps', + 'rels' => 'PHPExcel_Writer_Excel2007_Rels', + 'theme' => 'PHPExcel_Writer_Excel2007_Theme', + 'style' => 'PHPExcel_Writer_Excel2007_Style', + 'workbook' => 'PHPExcel_Writer_Excel2007_Workbook', + 'worksheet' => 'PHPExcel_Writer_Excel2007_Worksheet', + 'drawing' => 'PHPExcel_Writer_Excel2007_Drawing', + 'comments' => 'PHPExcel_Writer_Excel2007_Comments', + 'chart' => 'PHPExcel_Writer_Excel2007_Chart', + 'relsvba' => 'PHPExcel_Writer_Excel2007_RelsVBA', + 'relsribbonobjects' => 'PHPExcel_Writer_Excel2007_RelsRibbon' + ); + + // Initialise writer parts + // and Assign their parent IWriters + foreach ($writerPartsArray as $writer => $class) { + $this->_writerParts[$writer] = new $class($this); + } + + $hashTablesArray = array( '_stylesConditionalHashTable', '_fillHashTable', '_fontHashTable', + '_bordersHashTable', '_numFmtHashTable', '_drawingHashTable', + '_styleHashTable' + ); + + // Set HashTable variables + foreach ($hashTablesArray as $tableName) { + $this->$tableName = new PHPExcel_HashTable(); + } + } + + /** + * Get writer part + * + * @param string $pPartName Writer part name + * @return PHPExcel_Writer_Excel2007_WriterPart + */ + public function getWriterPart($pPartName = '') { + if ($pPartName != '' && isset($this->_writerParts[strtolower($pPartName)])) { + return $this->_writerParts[strtolower($pPartName)]; + } else { + return null; + } + } + + /** + * Save PHPExcel to file + * + * @param string $pFilename + * @throws PHPExcel_Writer_Exception + */ + public function save($pFilename = null) + { + if ($this->_spreadSheet !== NULL) { + // garbage collect + $this->_spreadSheet->garbageCollect(); + + // If $pFilename is php://output or php://stdout, make it a temporary file... + $originalFilename = $pFilename; + if (strtolower($pFilename) == 'php://output' || strtolower($pFilename) == 'php://stdout') { + $pFilename = @tempnam(PHPExcel_Shared_File::sys_get_temp_dir(), 'phpxltmp'); + if ($pFilename == '') { + $pFilename = $originalFilename; + } + } + + $saveDebugLog = PHPExcel_Calculation::getInstance($this->_spreadSheet)->getDebugLog()->getWriteDebugLog(); + PHPExcel_Calculation::getInstance($this->_spreadSheet)->getDebugLog()->setWriteDebugLog(FALSE); + $saveDateReturnType = PHPExcel_Calculation_Functions::getReturnDateType(); + PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_EXCEL); + + // Create string lookup table + $this->_stringTable = array(); + for ($i = 0; $i < $this->_spreadSheet->getSheetCount(); ++$i) { + $this->_stringTable = $this->getWriterPart('StringTable')->createStringTable($this->_spreadSheet->getSheet($i), $this->_stringTable); + } + + // Create styles dictionaries + $this->_styleHashTable->addFromSource( $this->getWriterPart('Style')->allStyles($this->_spreadSheet) ); + $this->_stylesConditionalHashTable->addFromSource( $this->getWriterPart('Style')->allConditionalStyles($this->_spreadSheet) ); + $this->_fillHashTable->addFromSource( $this->getWriterPart('Style')->allFills($this->_spreadSheet) ); + $this->_fontHashTable->addFromSource( $this->getWriterPart('Style')->allFonts($this->_spreadSheet) ); + $this->_bordersHashTable->addFromSource( $this->getWriterPart('Style')->allBorders($this->_spreadSheet) ); + $this->_numFmtHashTable->addFromSource( $this->getWriterPart('Style')->allNumberFormats($this->_spreadSheet) ); + + // Create drawing dictionary + $this->_drawingHashTable->addFromSource( $this->getWriterPart('Drawing')->allDrawings($this->_spreadSheet) ); + + // Create new ZIP file and open it for writing + $zipClass = PHPExcel_Settings::getZipClass(); + $objZip = new $zipClass(); + + // Retrieve OVERWRITE and CREATE constants from the instantiated zip class + // This method of accessing constant values from a dynamic class should work with all appropriate versions of PHP + $ro = new ReflectionObject($objZip); + $zipOverWrite = $ro->getConstant('OVERWRITE'); + $zipCreate = $ro->getConstant('CREATE'); + + if (file_exists($pFilename)) { + unlink($pFilename); + } + // Try opening the ZIP file + if ($objZip->open($pFilename, $zipOverWrite) !== true) { + if ($objZip->open($pFilename, $zipCreate) !== true) { + throw new PHPExcel_Writer_Exception("Could not open " . $pFilename . " for writing."); + } + } + + // Add [Content_Types].xml to ZIP file + $objZip->addFromString('[Content_Types].xml', $this->getWriterPart('ContentTypes')->writeContentTypes($this->_spreadSheet, $this->_includeCharts)); + + //if hasMacros, add the vbaProject.bin file, Certificate file(if exists) + if($this->_spreadSheet->hasMacros()){ + $macrosCode=$this->_spreadSheet->getMacrosCode(); + if(!is_null($macrosCode)){// we have the code ? + $objZip->addFromString('xl/vbaProject.bin', $macrosCode);//allways in 'xl', allways named vbaProject.bin + if($this->_spreadSheet->hasMacrosCertificate()){//signed macros ? + // Yes : add the certificate file and the related rels file + $objZip->addFromString('xl/vbaProjectSignature.bin', $this->_spreadSheet->getMacrosCertificate()); + $objZip->addFromString('xl/_rels/vbaProject.bin.rels', + $this->getWriterPart('RelsVBA')->writeVBARelationships($this->_spreadSheet)); + } + } + } + //a custom UI in this workbook ? add it ("base" xml and additional objects (pictures) and rels) + if($this->_spreadSheet->hasRibbon()){ + $tmpRibbonTarget=$this->_spreadSheet->getRibbonXMLData('target'); + $objZip->addFromString($tmpRibbonTarget, $this->_spreadSheet->getRibbonXMLData('data')); + if($this->_spreadSheet->hasRibbonBinObjects()){ + $tmpRootPath=dirname($tmpRibbonTarget).'/'; + $ribbonBinObjects=$this->_spreadSheet->getRibbonBinObjects('data');//the files to write + foreach($ribbonBinObjects as $aPath=>$aContent){ + $objZip->addFromString($tmpRootPath.$aPath, $aContent); + } + //the rels for files + $objZip->addFromString($tmpRootPath.'_rels/'.basename($tmpRibbonTarget).'.rels', + $this->getWriterPart('RelsRibbonObjects')->writeRibbonRelationships($this->_spreadSheet)); + } + } + + // Add relationships to ZIP file + $objZip->addFromString('_rels/.rels', $this->getWriterPart('Rels')->writeRelationships($this->_spreadSheet)); + $objZip->addFromString('xl/_rels/workbook.xml.rels', $this->getWriterPart('Rels')->writeWorkbookRelationships($this->_spreadSheet)); + + // Add document properties to ZIP file + $objZip->addFromString('docProps/app.xml', $this->getWriterPart('DocProps')->writeDocPropsApp($this->_spreadSheet)); + $objZip->addFromString('docProps/core.xml', $this->getWriterPart('DocProps')->writeDocPropsCore($this->_spreadSheet)); + $customPropertiesPart = $this->getWriterPart('DocProps')->writeDocPropsCustom($this->_spreadSheet); + if ($customPropertiesPart !== NULL) { + $objZip->addFromString('docProps/custom.xml', $customPropertiesPart); + } + + // Add theme to ZIP file + $objZip->addFromString('xl/theme/theme1.xml', $this->getWriterPart('Theme')->writeTheme($this->_spreadSheet)); + + // Add string table to ZIP file + $objZip->addFromString('xl/sharedStrings.xml', $this->getWriterPart('StringTable')->writeStringTable($this->_stringTable)); + + // Add styles to ZIP file + $objZip->addFromString('xl/styles.xml', $this->getWriterPart('Style')->writeStyles($this->_spreadSheet)); + + // Add workbook to ZIP file + $objZip->addFromString('xl/workbook.xml', $this->getWriterPart('Workbook')->writeWorkbook($this->_spreadSheet, $this->_preCalculateFormulas)); + + $chartCount = 0; + // Add worksheets + for ($i = 0; $i < $this->_spreadSheet->getSheetCount(); ++$i) { + $objZip->addFromString('xl/worksheets/sheet' . ($i + 1) . '.xml', $this->getWriterPart('Worksheet')->writeWorksheet($this->_spreadSheet->getSheet($i), $this->_stringTable, $this->_includeCharts)); + if ($this->_includeCharts) { + $charts = $this->_spreadSheet->getSheet($i)->getChartCollection(); + if (count($charts) > 0) { + foreach($charts as $chart) { + $objZip->addFromString('xl/charts/chart' . ($chartCount + 1) . '.xml', $this->getWriterPart('Chart')->writeChart($chart)); + $chartCount++; + } + } + } + } + + $chartRef1 = $chartRef2 = 0; + // Add worksheet relationships (drawings, ...) + for ($i = 0; $i < $this->_spreadSheet->getSheetCount(); ++$i) { + + // Add relationships + $objZip->addFromString('xl/worksheets/_rels/sheet' . ($i + 1) . '.xml.rels', $this->getWriterPart('Rels')->writeWorksheetRelationships($this->_spreadSheet->getSheet($i), ($i + 1), $this->_includeCharts)); + + $drawings = $this->_spreadSheet->getSheet($i)->getDrawingCollection(); + $drawingCount = count($drawings); + if ($this->_includeCharts) { + $chartCount = $this->_spreadSheet->getSheet($i)->getChartCount(); + } + + // Add drawing and image relationship parts + if (($drawingCount > 0) || ($chartCount > 0)) { + // Drawing relationships + $objZip->addFromString('xl/drawings/_rels/drawing' . ($i + 1) . '.xml.rels', $this->getWriterPart('Rels')->writeDrawingRelationships($this->_spreadSheet->getSheet($i),$chartRef1, $this->_includeCharts)); + + // Drawings + $objZip->addFromString('xl/drawings/drawing' . ($i + 1) . '.xml', $this->getWriterPart('Drawing')->writeDrawings($this->_spreadSheet->getSheet($i),$chartRef2,$this->_includeCharts)); + } + + // Add comment relationship parts + if (count($this->_spreadSheet->getSheet($i)->getComments()) > 0) { + // VML Comments + $objZip->addFromString('xl/drawings/vmlDrawing' . ($i + 1) . '.vml', $this->getWriterPart('Comments')->writeVMLComments($this->_spreadSheet->getSheet($i))); + + // Comments + $objZip->addFromString('xl/comments' . ($i + 1) . '.xml', $this->getWriterPart('Comments')->writeComments($this->_spreadSheet->getSheet($i))); + } + + // Add header/footer relationship parts + if (count($this->_spreadSheet->getSheet($i)->getHeaderFooter()->getImages()) > 0) { + // VML Drawings + $objZip->addFromString('xl/drawings/vmlDrawingHF' . ($i + 1) . '.vml', $this->getWriterPart('Drawing')->writeVMLHeaderFooterImages($this->_spreadSheet->getSheet($i))); + + // VML Drawing relationships + $objZip->addFromString('xl/drawings/_rels/vmlDrawingHF' . ($i + 1) . '.vml.rels', $this->getWriterPart('Rels')->writeHeaderFooterDrawingRelationships($this->_spreadSheet->getSheet($i))); + + // Media + foreach ($this->_spreadSheet->getSheet($i)->getHeaderFooter()->getImages() as $image) { + $objZip->addFromString('xl/media/' . $image->getIndexedFilename(), file_get_contents($image->getPath())); + } + } + } + + // Add media + for ($i = 0; $i < $this->getDrawingHashTable()->count(); ++$i) { + if ($this->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_Drawing) { + $imageContents = null; + $imagePath = $this->getDrawingHashTable()->getByIndex($i)->getPath(); + if (strpos($imagePath, 'zip://') !== false) { + $imagePath = substr($imagePath, 6); + $imagePathSplitted = explode('#', $imagePath); + + $imageZip = new ZipArchive(); + $imageZip->open($imagePathSplitted[0]); + $imageContents = $imageZip->getFromName($imagePathSplitted[1]); + $imageZip->close(); + unset($imageZip); + } else { + $imageContents = file_get_contents($imagePath); + } + + $objZip->addFromString('xl/media/' . str_replace(' ', '_', $this->getDrawingHashTable()->getByIndex($i)->getIndexedFilename()), $imageContents); + } else if ($this->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_MemoryDrawing) { + ob_start(); + call_user_func( + $this->getDrawingHashTable()->getByIndex($i)->getRenderingFunction(), + $this->getDrawingHashTable()->getByIndex($i)->getImageResource() + ); + $imageContents = ob_get_contents(); + ob_end_clean(); + + $objZip->addFromString('xl/media/' . str_replace(' ', '_', $this->getDrawingHashTable()->getByIndex($i)->getIndexedFilename()), $imageContents); + } + } + + PHPExcel_Calculation_Functions::setReturnDateType($saveDateReturnType); + PHPExcel_Calculation::getInstance($this->_spreadSheet)->getDebugLog()->setWriteDebugLog($saveDebugLog); + + // Close file + if ($objZip->close() === false) { + throw new PHPExcel_Writer_Exception("Could not close zip file $pFilename."); + } + + // If a temporary file was used, copy it to the correct file stream + if ($originalFilename != $pFilename) { + if (copy($pFilename, $originalFilename) === false) { + throw new PHPExcel_Writer_Exception("Could not copy temporary zip file $pFilename to $originalFilename."); + } + @unlink($pFilename); + } + } else { + throw new PHPExcel_Writer_Exception("PHPExcel object unassigned."); + } + } + + /** + * Get PHPExcel object + * + * @return PHPExcel + * @throws PHPExcel_Writer_Exception + */ + public function getPHPExcel() { + if ($this->_spreadSheet !== null) { + return $this->_spreadSheet; + } else { + throw new PHPExcel_Writer_Exception("No PHPExcel assigned."); + } + } + + /** + * Set PHPExcel object + * + * @param PHPExcel $pPHPExcel PHPExcel object + * @throws PHPExcel_Writer_Exception + * @return PHPExcel_Writer_Excel2007 + */ + public function setPHPExcel(PHPExcel $pPHPExcel = null) { + $this->_spreadSheet = $pPHPExcel; + return $this; + } + + /** + * Get string table + * + * @return string[] + */ + public function getStringTable() { + return $this->_stringTable; + } + + /** + * Get PHPExcel_Style HashTable + * + * @return PHPExcel_HashTable + */ + public function getStyleHashTable() { + return $this->_styleHashTable; + } + + /** + * Get PHPExcel_Style_Conditional HashTable + * + * @return PHPExcel_HashTable + */ + public function getStylesConditionalHashTable() { + return $this->_stylesConditionalHashTable; + } + + /** + * Get PHPExcel_Style_Fill HashTable + * + * @return PHPExcel_HashTable + */ + public function getFillHashTable() { + return $this->_fillHashTable; + } + + /** + * Get PHPExcel_Style_Font HashTable + * + * @return PHPExcel_HashTable + */ + public function getFontHashTable() { + return $this->_fontHashTable; + } + + /** + * Get PHPExcel_Style_Borders HashTable + * + * @return PHPExcel_HashTable + */ + public function getBordersHashTable() { + return $this->_bordersHashTable; + } + + /** + * Get PHPExcel_Style_NumberFormat HashTable + * + * @return PHPExcel_HashTable + */ + public function getNumFmtHashTable() { + return $this->_numFmtHashTable; + } + + /** + * Get PHPExcel_Worksheet_BaseDrawing HashTable + * + * @return PHPExcel_HashTable + */ + public function getDrawingHashTable() { + return $this->_drawingHashTable; + } + + /** + * Get Office2003 compatibility + * + * @return boolean + */ + public function getOffice2003Compatibility() { + return $this->_office2003compatibility; + } + + /** + * Set Office2003 compatibility + * + * @param boolean $pValue Office2003 compatibility? + * @return PHPExcel_Writer_Excel2007 + */ + public function setOffice2003Compatibility($pValue = false) { + $this->_office2003compatibility = $pValue; + return $this; + } + +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007/Chart.php b/admin/helpers/PHPExcel/Writer/Excel2007/Chart.php new file mode 100644 index 00000000..ceb750ad --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007/Chart.php @@ -0,0 +1,1606 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +/** + * PHPExcel_Writer_Excel2007_Chart + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel2007_Chart extends + PHPExcel_Writer_Excel2007_WriterPart { + + /** + * Write charts to XML format + * + * @param PHPExcel_Chart $pChart + * + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeChart(PHPExcel_Chart $pChart = NULL) { + // Create XML writer + $objWriter = NULL; + if ($this->getParentWriter() + ->getUseDiskCaching() + ) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter() + ->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + // Ensure that data series values are up-to-date before we save + $pChart->refresh(); + + // XML header + $objWriter->startDocument('1.0', 'UTF-8', 'yes'); + + // c:chartSpace + $objWriter->startElement('c:chartSpace'); + $objWriter->writeAttribute('xmlns:c', 'http://schemas.openxmlformats.org/drawingml/2006/chart'); + $objWriter->writeAttribute('xmlns:a', 'http://schemas.openxmlformats.org/drawingml/2006/main'); + $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'); + + $objWriter->startElement('c:date1904'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + $objWriter->startElement('c:lang'); + $objWriter->writeAttribute('val', "en-GB"); + $objWriter->endElement(); + $objWriter->startElement('c:roundedCorners'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + + $this->_writeAlternateContent($objWriter); + + $objWriter->startElement('c:chart'); + + $this->_writeTitle($pChart->getTitle(), $objWriter); + + $objWriter->startElement('c:autoTitleDeleted'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + + $this->_writePlotArea( + $pChart->getPlotArea(), + $pChart->getXAxisLabel(), + $pChart->getYAxisLabel(), + $objWriter, + $pChart->getWorksheet(), + $pChart->getChartAxisX(), + $pChart->getChartAxisY(), + $pChart->getMajorGridlines(), + $pChart->getMinorGridlines() + ); + + $this->_writeLegend($pChart->getLegend(), $objWriter); + + $objWriter->startElement('c:plotVisOnly'); + $objWriter->writeAttribute('val', 1); + $objWriter->endElement(); + + $objWriter->startElement('c:dispBlanksAs'); + $objWriter->writeAttribute('val', "gap"); + $objWriter->endElement(); + + $objWriter->startElement('c:showDLblsOverMax'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + + $objWriter->endElement(); + + $this->_writePrintSettings($objWriter); + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Write Chart Title + * + * @param PHPExcel_Chart_Title $title + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * + * @throws PHPExcel_Writer_Exception + */ + private function _writeTitle(PHPExcel_Chart_Title $title = NULL, $objWriter) { + if (is_null($title)) { + return; + } + + $objWriter->startElement('c:title'); + $objWriter->startElement('c:tx'); + $objWriter->startElement('c:rich'); + + $objWriter->startElement('a:bodyPr'); + $objWriter->endElement(); + + $objWriter->startElement('a:lstStyle'); + $objWriter->endElement(); + + $objWriter->startElement('a:p'); + + $caption = $title->getCaption(); + if ((is_array($caption)) && (count($caption) > 0)) { + $caption = $caption[0]; + } + $this->getParentWriter() + ->getWriterPart('stringtable') + ->writeRichTextForCharts($objWriter, $caption, 'a'); + + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + + $layout = $title->getLayout(); + $this->_writeLayout($layout, $objWriter); + + $objWriter->startElement('c:overlay'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + + $objWriter->endElement(); + } + + /** + * Write Chart Legend + * + * @param PHPExcel_Chart_Legend $legend + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * + * @throws PHPExcel_Writer_Exception + */ + private function _writeLegend(PHPExcel_Chart_Legend $legend = NULL, $objWriter) { + if (is_null($legend)) { + return; + } + + $objWriter->startElement('c:legend'); + + $objWriter->startElement('c:legendPos'); + $objWriter->writeAttribute('val', $legend->getPosition()); + $objWriter->endElement(); + + $layout = $legend->getLayout(); + $this->_writeLayout($layout, $objWriter); + + $objWriter->startElement('c:overlay'); + $objWriter->writeAttribute('val', ($legend->getOverlay()) ? '1' : '0'); + $objWriter->endElement(); + + $objWriter->startElement('c:txPr'); + $objWriter->startElement('a:bodyPr'); + $objWriter->endElement(); + + $objWriter->startElement('a:lstStyle'); + $objWriter->endElement(); + + $objWriter->startElement('a:p'); + $objWriter->startElement('a:pPr'); + $objWriter->writeAttribute('rtl', 0); + + $objWriter->startElement('a:defRPr'); + $objWriter->endElement(); + $objWriter->endElement(); + + $objWriter->startElement('a:endParaRPr'); + $objWriter->writeAttribute('lang', "en-US"); + $objWriter->endElement(); + + $objWriter->endElement(); + $objWriter->endElement(); + + $objWriter->endElement(); + } + + /** + * Write Chart Plot Area + * + * @param PHPExcel_Chart_PlotArea $plotArea + * @param PHPExcel_Chart_Title $xAxisLabel + * @param PHPExcel_Chart_Title $yAxisLabel + * @param PHPExcel_Chart_Axis $xAxis + * @param PHPExcel_Chart_Axis $yAxis + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * + * @throws PHPExcel_Writer_Exception + */ + private function _writePlotArea(PHPExcel_Chart_PlotArea $plotArea, + PHPExcel_Chart_Title $xAxisLabel = NULL, + PHPExcel_Chart_Title $yAxisLabel = NULL, + $objWriter, + PHPExcel_Worksheet $pSheet, + PHPExcel_Chart_Axis $xAxis, + PHPExcel_Chart_Axis $yAxis, + PHPExcel_Chart_Gridlines $majorGridlines, + PHPExcel_Chart_Gridlines $minorGridlines + ) { + if (is_null($plotArea)) { + return; + } + + $id1 = $id2 = 0; + $this->_seriesIndex = 0; + $objWriter->startElement('c:plotArea'); + + $layout = $plotArea->getLayout(); + + $this->_writeLayout($layout, $objWriter); + + $chartTypes = self::_getChartType($plotArea); + $catIsMultiLevelSeries = $valIsMultiLevelSeries = FALSE; + $plotGroupingType = ''; + foreach ($chartTypes as $chartType) { + $objWriter->startElement('c:' . $chartType); + + $groupCount = $plotArea->getPlotGroupCount(); + for ($i = 0; $i < $groupCount; ++$i) { + $plotGroup = $plotArea->getPlotGroupByIndex($i); + $groupType = $plotGroup->getPlotType(); + if ($groupType == $chartType) { + + $plotStyle = $plotGroup->getPlotStyle(); + if ($groupType === PHPExcel_Chart_DataSeries::TYPE_RADARCHART) { + $objWriter->startElement('c:radarStyle'); + $objWriter->writeAttribute('val', $plotStyle); + $objWriter->endElement(); + } elseif ($groupType === PHPExcel_Chart_DataSeries::TYPE_SCATTERCHART) { + $objWriter->startElement('c:scatterStyle'); + $objWriter->writeAttribute('val', $plotStyle); + $objWriter->endElement(); + } + + $this->_writePlotGroup($plotGroup, $chartType, $objWriter, $catIsMultiLevelSeries, $valIsMultiLevelSeries, $plotGroupingType, $pSheet); + } + } + + $this->_writeDataLbls($objWriter, $layout); + + if ($chartType === PHPExcel_Chart_DataSeries::TYPE_LINECHART) { + // Line only, Line3D can't be smoothed + + $objWriter->startElement('c:smooth'); + $objWriter->writeAttribute('val', (integer) $plotGroup->getSmoothLine()); + $objWriter->endElement(); + } elseif (($chartType === PHPExcel_Chart_DataSeries::TYPE_BARCHART) || + ($chartType === PHPExcel_Chart_DataSeries::TYPE_BARCHART_3D) + ) { + + $objWriter->startElement('c:gapWidth'); + $objWriter->writeAttribute('val', 150); + $objWriter->endElement(); + + if ($plotGroupingType == 'percentStacked' || + $plotGroupingType == 'stacked' + ) { + + $objWriter->startElement('c:overlap'); + $objWriter->writeAttribute('val', 100); + $objWriter->endElement(); + } + } elseif ($chartType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) { + + $objWriter->startElement('c:bubbleScale'); + $objWriter->writeAttribute('val', 25); + $objWriter->endElement(); + + $objWriter->startElement('c:showNegBubbles'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + } elseif ($chartType === PHPExcel_Chart_DataSeries::TYPE_STOCKCHART) { + + $objWriter->startElement('c:hiLowLines'); + $objWriter->endElement(); + + $objWriter->startElement('c:upDownBars'); + + $objWriter->startElement('c:gapWidth'); + $objWriter->writeAttribute('val', 300); + $objWriter->endElement(); + + $objWriter->startElement('c:upBars'); + $objWriter->endElement(); + + $objWriter->startElement('c:downBars'); + $objWriter->endElement(); + + $objWriter->endElement(); + } + + // Generate 2 unique numbers to use for axId values + // $id1 = $id2 = rand(10000000,99999999); + // do { + // $id2 = rand(10000000,99999999); + // } while ($id1 == $id2); + $id1 = '75091328'; + $id2 = '75089408'; + + if (($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART) && + ($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) && + ($chartType !== PHPExcel_Chart_DataSeries::TYPE_DONUTCHART) + ) { + + $objWriter->startElement('c:axId'); + $objWriter->writeAttribute('val', $id1); + $objWriter->endElement(); + $objWriter->startElement('c:axId'); + $objWriter->writeAttribute('val', $id2); + $objWriter->endElement(); + } else { + $objWriter->startElement('c:firstSliceAng'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + + if ($chartType === PHPExcel_Chart_DataSeries::TYPE_DONUTCHART) { + + $objWriter->startElement('c:holeSize'); + $objWriter->writeAttribute('val', 50); + $objWriter->endElement(); + } + } + + $objWriter->endElement(); + } + + if (($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART) && + ($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) && + ($chartType !== PHPExcel_Chart_DataSeries::TYPE_DONUTCHART) + ) { + + if ($chartType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) { + $this->_writeValAx($objWriter, $plotArea, $xAxisLabel, $chartType, $id1, $id2, $catIsMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines); + } else { + $this->_writeCatAx($objWriter, $plotArea, $xAxisLabel, $chartType, $id1, $id2, $catIsMultiLevelSeries, $xAxis, $yAxis); + } + + $this->_writeValAx($objWriter, $plotArea, $yAxisLabel, $chartType, $id1, $id2, $valIsMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines); + } + + $objWriter->endElement(); + } + + /** + * Write Data Labels + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Chart_Layout $chartLayout Chart layout + * + * @throws PHPExcel_Writer_Exception + */ + private function _writeDataLbls($objWriter, $chartLayout) { + $objWriter->startElement('c:dLbls'); + + $objWriter->startElement('c:showLegendKey'); + $showLegendKey = (empty($chartLayout)) ? 0 : $chartLayout->getShowLegendKey(); + $objWriter->writeAttribute('val', ((empty($showLegendKey)) ? 0 : 1)); + $objWriter->endElement(); + + $objWriter->startElement('c:showVal'); + $showVal = (empty($chartLayout)) ? 0 : $chartLayout->getShowVal(); + $objWriter->writeAttribute('val', ((empty($showVal)) ? 0 : 1)); + $objWriter->endElement(); + + $objWriter->startElement('c:showCatName'); + $showCatName = (empty($chartLayout)) ? 0 : $chartLayout->getShowCatName(); + $objWriter->writeAttribute('val', ((empty($showCatName)) ? 0 : 1)); + $objWriter->endElement(); + + $objWriter->startElement('c:showSerName'); + $showSerName = (empty($chartLayout)) ? 0 : $chartLayout->getShowSerName(); + $objWriter->writeAttribute('val', ((empty($showSerName)) ? 0 : 1)); + $objWriter->endElement(); + + $objWriter->startElement('c:showPercent'); + $showPercent = (empty($chartLayout)) ? 0 : $chartLayout->getShowPercent(); + $objWriter->writeAttribute('val', ((empty($showPercent)) ? 0 : 1)); + $objWriter->endElement(); + + $objWriter->startElement('c:showBubbleSize'); + $showBubbleSize = (empty($chartLayout)) ? 0 : $chartLayout->getShowBubbleSize(); + $objWriter->writeAttribute('val', ((empty($showBubbleSize)) ? 0 : 1)); + $objWriter->endElement(); + + $objWriter->startElement('c:showLeaderLines'); + $showLeaderLines = (empty($chartLayout)) ? 1 : $chartLayout->getShowLeaderLines(); + $objWriter->writeAttribute('val', ((empty($showLeaderLines)) ? 0 : 1)); + $objWriter->endElement(); + + $objWriter->endElement(); + } + + /** + * Write Category Axis + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Chart_PlotArea $plotArea + * @param PHPExcel_Chart_Title $xAxisLabel + * @param string $groupType Chart type + * @param string $id1 + * @param string $id2 + * @param boolean $isMultiLevelSeries + * + * @throws PHPExcel_Writer_Exception + */ + private function _writeCatAx($objWriter, PHPExcel_Chart_PlotArea $plotArea, $xAxisLabel, $groupType, $id1, $id2, $isMultiLevelSeries, $xAxis, $yAxis) { + $objWriter->startElement('c:catAx'); + + if ($id1 > 0) { + $objWriter->startElement('c:axId'); + $objWriter->writeAttribute('val', $id1); + $objWriter->endElement(); + } + + $objWriter->startElement('c:scaling'); + $objWriter->startElement('c:orientation'); + $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('orientation')); + $objWriter->endElement(); + $objWriter->endElement(); + + $objWriter->startElement('c:delete'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + + $objWriter->startElement('c:axPos'); + $objWriter->writeAttribute('val', "b"); + $objWriter->endElement(); + + if (!is_null($xAxisLabel)) { + $objWriter->startElement('c:title'); + $objWriter->startElement('c:tx'); + $objWriter->startElement('c:rich'); + + $objWriter->startElement('a:bodyPr'); + $objWriter->endElement(); + + $objWriter->startElement('a:lstStyle'); + $objWriter->endElement(); + + $objWriter->startElement('a:p'); + $objWriter->startElement('a:r'); + + $caption = $xAxisLabel->getCaption(); + if (is_array($caption)) { + $caption = $caption[0]; + } + $objWriter->startElement('a:t'); + // $objWriter->writeAttribute('xml:space', 'preserve'); + $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML($caption)); + $objWriter->endElement(); + + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + + $layout = $xAxisLabel->getLayout(); + $this->_writeLayout($layout, $objWriter); + + $objWriter->startElement('c:overlay'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + + $objWriter->endElement(); + + } + + $objWriter->startElement('c:numFmt'); + $objWriter->writeAttribute('formatCode', $yAxis->getAxisNumberFormat()); + $objWriter->writeAttribute('sourceLinked', $yAxis->getAxisNumberSourceLinked()); + $objWriter->endElement(); + + $objWriter->startElement('c:majorTickMark'); + $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('major_tick_mark')); + $objWriter->endElement(); + + $objWriter->startElement('c:minorTickMark'); + $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('minor_tick_mark')); + $objWriter->endElement(); + + $objWriter->startElement('c:tickLblPos'); + $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('axis_labels')); + $objWriter->endElement(); + + if ($id2 > 0) { + $objWriter->startElement('c:crossAx'); + $objWriter->writeAttribute('val', $id2); + $objWriter->endElement(); + + $objWriter->startElement('c:crosses'); + $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('horizontal_crosses')); + $objWriter->endElement(); + } + + $objWriter->startElement('c:auto'); + $objWriter->writeAttribute('val', 1); + $objWriter->endElement(); + + $objWriter->startElement('c:lblAlgn'); + $objWriter->writeAttribute('val', "ctr"); + $objWriter->endElement(); + + $objWriter->startElement('c:lblOffset'); + $objWriter->writeAttribute('val', 100); + $objWriter->endElement(); + + if ($isMultiLevelSeries) { + $objWriter->startElement('c:noMultiLvlLbl'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + } + $objWriter->endElement(); + } + + /** + * Write Value Axis + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Chart_PlotArea $plotArea + * @param PHPExcel_Chart_Title $yAxisLabel + * @param string $groupType Chart type + * @param string $id1 + * @param string $id2 + * @param boolean $isMultiLevelSeries + * + * @throws PHPExcel_Writer_Exception + */ + private function _writeValAx($objWriter, PHPExcel_Chart_PlotArea $plotArea, $yAxisLabel, $groupType, $id1, $id2, $isMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines) { + $objWriter->startElement('c:valAx'); + + if ($id2 > 0) { + $objWriter->startElement('c:axId'); + $objWriter->writeAttribute('val', $id2); + $objWriter->endElement(); + } + + $objWriter->startElement('c:scaling'); + $objWriter->startElement('c:orientation'); + $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('orientation')); + + if (!is_null($xAxis->getAxisOptionsProperty('maximum'))) { + $objWriter->startElement('c:max'); + $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('maximum')); + $objWriter->endElement(); + } + + if (!is_null($xAxis->getAxisOptionsProperty('minimum'))) { + $objWriter->startElement('c:min'); + $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('minimum')); + $objWriter->endElement(); + } + + $objWriter->endElement(); + $objWriter->endElement(); + + $objWriter->startElement('c:delete'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + + $objWriter->startElement('c:axPos'); + $objWriter->writeAttribute('val', "l"); + $objWriter->endElement(); + + $objWriter->startElement('c:majorGridlines'); + $objWriter->startElement('c:spPr'); + + if (!is_null($majorGridlines->getLineColorProperty('value'))) { + $objWriter->startElement('a:ln'); + $objWriter->writeAttribute('w', $majorGridlines->getLineStyleProperty('width')); + $objWriter->startElement('a:solidFill'); + $objWriter->startElement("a:{$majorGridlines->getLineColorProperty('type')}"); + $objWriter->writeAttribute('val', $majorGridlines->getLineColorProperty('value')); + $objWriter->startElement('a:alpha'); + $objWriter->writeAttribute('val', $majorGridlines->getLineColorProperty('alpha')); + $objWriter->endElement(); //end alpha + $objWriter->endElement(); //end srgbClr + $objWriter->endElement(); //end solidFill + + $objWriter->startElement('a:prstDash'); + $objWriter->writeAttribute('val', $majorGridlines->getLineStyleProperty('dash')); + $objWriter->endElement(); + + if ($majorGridlines->getLineStyleProperty('join') == 'miter') { + $objWriter->startElement('a:miter'); + $objWriter->writeAttribute('lim', '800000'); + $objWriter->endElement(); + } else { + $objWriter->startElement('a:bevel'); + $objWriter->endElement(); + } + + if (!is_null($majorGridlines->getLineStyleProperty(array('arrow', 'head', 'type')))) { + $objWriter->startElement('a:headEnd'); + $objWriter->writeAttribute('type', $majorGridlines->getLineStyleProperty(array('arrow', 'head', 'type'))); + $objWriter->writeAttribute('w', $majorGridlines->getLineStyleArrowParameters('head', 'w')); + $objWriter->writeAttribute('len', $majorGridlines->getLineStyleArrowParameters('head', 'len')); + $objWriter->endElement(); + } + + if (!is_null($majorGridlines->getLineStyleProperty(array('arrow', 'end', 'type')))) { + $objWriter->startElement('a:tailEnd'); + $objWriter->writeAttribute('type', $majorGridlines->getLineStyleProperty(array('arrow', 'end', 'type'))); + $objWriter->writeAttribute('w', $majorGridlines->getLineStyleArrowParameters('end', 'w')); + $objWriter->writeAttribute('len', $majorGridlines->getLineStyleArrowParameters('end', 'len')); + $objWriter->endElement(); + } + $objWriter->endElement(); //end ln + } + $objWriter->startElement('a:effectLst'); + + if (!is_null($majorGridlines->getGlowSize())) { + $objWriter->startElement('a:glow'); + $objWriter->writeAttribute('rad', $majorGridlines->getGlowSize()); + $objWriter->startElement("a:{$majorGridlines->getGlowColor('type')}"); + $objWriter->writeAttribute('val', $majorGridlines->getGlowColor('value')); + $objWriter->startElement('a:alpha'); + $objWriter->writeAttribute('val', $majorGridlines->getGlowColor('alpha')); + $objWriter->endElement(); //end alpha + $objWriter->endElement(); //end schemeClr + $objWriter->endElement(); //end glow + } + + if (!is_null($majorGridlines->getShadowProperty('presets'))) { + $objWriter->startElement("a:{$majorGridlines->getShadowProperty('effect')}"); + if (!is_null($majorGridlines->getShadowProperty('blur'))) { + $objWriter->writeAttribute('blurRad', $majorGridlines->getShadowProperty('blur')); + } + if (!is_null($majorGridlines->getShadowProperty('distance'))) { + $objWriter->writeAttribute('dist', $majorGridlines->getShadowProperty('distance')); + } + if (!is_null($majorGridlines->getShadowProperty('direction'))) { + $objWriter->writeAttribute('dir', $majorGridlines->getShadowProperty('direction')); + } + if (!is_null($majorGridlines->getShadowProperty('algn'))) { + $objWriter->writeAttribute('algn', $majorGridlines->getShadowProperty('algn')); + } + if (!is_null($majorGridlines->getShadowProperty(array('size', 'sx')))) { + $objWriter->writeAttribute('sx', $majorGridlines->getShadowProperty(array('size', 'sx'))); + } + if (!is_null($majorGridlines->getShadowProperty(array('size', 'sy')))) { + $objWriter->writeAttribute('sy', $majorGridlines->getShadowProperty(array('size', 'sy'))); + } + if (!is_null($majorGridlines->getShadowProperty(array('size', 'kx')))) { + $objWriter->writeAttribute('kx', $majorGridlines->getShadowProperty(array('size', 'kx'))); + } + if (!is_null($majorGridlines->getShadowProperty('rotWithShape'))) { + $objWriter->writeAttribute('rotWithShape', $majorGridlines->getShadowProperty('rotWithShape')); + } + $objWriter->startElement("a:{$majorGridlines->getShadowProperty(array('color', 'type'))}"); + $objWriter->writeAttribute('val', $majorGridlines->getShadowProperty(array('color', 'value'))); + + $objWriter->startElement('a:alpha'); + $objWriter->writeAttribute('val', $majorGridlines->getShadowProperty(array('color', 'alpha'))); + $objWriter->endElement(); //end alpha + + $objWriter->endElement(); //end color:type + $objWriter->endElement(); //end shadow + } + + if (!is_null($majorGridlines->getSoftEdgesSize())) { + $objWriter->startElement('a:softEdge'); + $objWriter->writeAttribute('rad', $majorGridlines->getSoftEdgesSize()); + $objWriter->endElement(); //end softEdge + } + + $objWriter->endElement(); //end effectLst + $objWriter->endElement(); //end spPr + $objWriter->endElement(); //end majorGridLines + + if ($minorGridlines->getObjectState()) { + $objWriter->startElement('c:minorGridlines'); + $objWriter->startElement('c:spPr'); + + if (!is_null($minorGridlines->getLineColorProperty('value'))) { + $objWriter->startElement('a:ln'); + $objWriter->writeAttribute('w', $minorGridlines->getLineStyleProperty('width')); + $objWriter->startElement('a:solidFill'); + $objWriter->startElement("a:{$minorGridlines->getLineColorProperty('type')}"); + $objWriter->writeAttribute('val', $minorGridlines->getLineColorProperty('value')); + $objWriter->startElement('a:alpha'); + $objWriter->writeAttribute('val', $minorGridlines->getLineColorProperty('alpha')); + $objWriter->endElement(); //end alpha + $objWriter->endElement(); //end srgbClr + $objWriter->endElement(); //end solidFill + + $objWriter->startElement('a:prstDash'); + $objWriter->writeAttribute('val', $minorGridlines->getLineStyleProperty('dash')); + $objWriter->endElement(); + + if ($minorGridlines->getLineStyleProperty('join') == 'miter') { + $objWriter->startElement('a:miter'); + $objWriter->writeAttribute('lim', '800000'); + $objWriter->endElement(); + } else { + $objWriter->startElement('a:bevel'); + $objWriter->endElement(); + } + + if (!is_null($minorGridlines->getLineStyleProperty(array('arrow', 'head', 'type')))) { + $objWriter->startElement('a:headEnd'); + $objWriter->writeAttribute('type', $minorGridlines->getLineStyleProperty(array('arrow', 'head', 'type'))); + $objWriter->writeAttribute('w', $minorGridlines->getLineStyleArrowParameters('head', 'w')); + $objWriter->writeAttribute('len', $minorGridlines->getLineStyleArrowParameters('head', 'len')); + $objWriter->endElement(); + } + + if (!is_null($minorGridlines->getLineStyleProperty(array('arrow', 'end', 'type')))) { + $objWriter->startElement('a:tailEnd'); + $objWriter->writeAttribute('type', $minorGridlines->getLineStyleProperty(array('arrow', 'end', 'type'))); + $objWriter->writeAttribute('w', $minorGridlines->getLineStyleArrowParameters('end', 'w')); + $objWriter->writeAttribute('len', $minorGridlines->getLineStyleArrowParameters('end', 'len')); + $objWriter->endElement(); + } + $objWriter->endElement(); //end ln + } + + $objWriter->startElement('a:effectLst'); + + if (!is_null($minorGridlines->getGlowSize())) { + $objWriter->startElement('a:glow'); + $objWriter->writeAttribute('rad', $minorGridlines->getGlowSize()); + $objWriter->startElement("a:{$minorGridlines->getGlowColor('type')}"); + $objWriter->writeAttribute('val', $minorGridlines->getGlowColor('value')); + $objWriter->startElement('a:alpha'); + $objWriter->writeAttribute('val', $minorGridlines->getGlowColor('alpha')); + $objWriter->endElement(); //end alpha + $objWriter->endElement(); //end schemeClr + $objWriter->endElement(); //end glow + } + + if (!is_null($minorGridlines->getShadowProperty('presets'))) { + $objWriter->startElement("a:{$minorGridlines->getShadowProperty('effect')}"); + if (!is_null($minorGridlines->getShadowProperty('blur'))) { + $objWriter->writeAttribute('blurRad', $minorGridlines->getShadowProperty('blur')); + } + if (!is_null($minorGridlines->getShadowProperty('distance'))) { + $objWriter->writeAttribute('dist', $minorGridlines->getShadowProperty('distance')); + } + if (!is_null($minorGridlines->getShadowProperty('direction'))) { + $objWriter->writeAttribute('dir', $minorGridlines->getShadowProperty('direction')); + } + if (!is_null($minorGridlines->getShadowProperty('algn'))) { + $objWriter->writeAttribute('algn', $minorGridlines->getShadowProperty('algn')); + } + if (!is_null($minorGridlines->getShadowProperty(array('size', 'sx')))) { + $objWriter->writeAttribute('sx', $minorGridlines->getShadowProperty(array('size', 'sx'))); + } + if (!is_null($minorGridlines->getShadowProperty(array('size', 'sy')))) { + $objWriter->writeAttribute('sy', $minorGridlines->getShadowProperty(array('size', 'sy'))); + } + if (!is_null($minorGridlines->getShadowProperty(array('size', 'kx')))) { + $objWriter->writeAttribute('kx', $minorGridlines->getShadowProperty(array('size', 'kx'))); + } + if (!is_null($minorGridlines->getShadowProperty('rotWithShape'))) { + $objWriter->writeAttribute('rotWithShape', $minorGridlines->getShadowProperty('rotWithShape')); + } + $objWriter->startElement("a:{$minorGridlines->getShadowProperty(array('color', 'type'))}"); + $objWriter->writeAttribute('val', $minorGridlines->getShadowProperty(array('color', 'value'))); + $objWriter->startElement('a:alpha'); + $objWriter->writeAttribute('val', $minorGridlines->getShadowProperty(array('color', 'alpha'))); + $objWriter->endElement(); //end alpha + $objWriter->endElement(); //end color:type + $objWriter->endElement(); //end shadow + } + + if (!is_null($minorGridlines->getSoftEdgesSize())) { + $objWriter->startElement('a:softEdge'); + $objWriter->writeAttribute('rad', $minorGridlines->getSoftEdgesSize()); + $objWriter->endElement(); //end softEdge + } + + $objWriter->endElement(); //end effectLst + $objWriter->endElement(); //end spPr + $objWriter->endElement(); //end minorGridLines + } + + if (!is_null($yAxisLabel)) { + + $objWriter->startElement('c:title'); + $objWriter->startElement('c:tx'); + $objWriter->startElement('c:rich'); + + $objWriter->startElement('a:bodyPr'); + $objWriter->endElement(); + + $objWriter->startElement('a:lstStyle'); + $objWriter->endElement(); + + $objWriter->startElement('a:p'); + $objWriter->startElement('a:r'); + + $caption = $yAxisLabel->getCaption(); + if (is_array($caption)) { + $caption = $caption[0]; + } + + $objWriter->startElement('a:t'); + // $objWriter->writeAttribute('xml:space', 'preserve'); + $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML($caption)); + $objWriter->endElement(); + + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + + if ($groupType !== PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) { + $layout = $yAxisLabel->getLayout(); + $this->_writeLayout($layout, $objWriter); + } + + $objWriter->startElement('c:overlay'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + + $objWriter->endElement(); + } + + $objWriter->startElement('c:numFmt'); + $objWriter->writeAttribute('formatCode', $xAxis->getAxisNumberFormat()); + $objWriter->writeAttribute('sourceLinked', $xAxis->getAxisNumberSourceLinked()); + $objWriter->endElement(); + + $objWriter->startElement('c:majorTickMark'); + $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('major_tick_mark')); + $objWriter->endElement(); + + $objWriter->startElement('c:minorTickMark'); + $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('minor_tick_mark')); + $objWriter->endElement(); + + $objWriter->startElement('c:tickLblPos'); + $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('axis_labels')); + $objWriter->endElement(); + + $objWriter->startElement('c:spPr'); + + if (!is_null($xAxis->getFillProperty('value'))) { + $objWriter->startElement('a:solidFill'); + $objWriter->startElement("a:" . $xAxis->getFillProperty('type')); + $objWriter->writeAttribute('val', $xAxis->getFillProperty('value')); + $objWriter->startElement('a:alpha'); + $objWriter->writeAttribute('val', $xAxis->getFillProperty('alpha')); + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + } + + $objWriter->startElement('a:ln'); + + $objWriter->writeAttribute('w', $xAxis->getLineStyleProperty('width')); + $objWriter->writeAttribute('cap', $xAxis->getLineStyleProperty('cap')); + $objWriter->writeAttribute('cmpd', $xAxis->getLineStyleProperty('compound')); + + if (!is_null($xAxis->getLineProperty('value'))) { + $objWriter->startElement('a:solidFill'); + $objWriter->startElement("a:" . $xAxis->getLineProperty('type')); + $objWriter->writeAttribute('val', $xAxis->getLineProperty('value')); + $objWriter->startElement('a:alpha'); + $objWriter->writeAttribute('val', $xAxis->getLineProperty('alpha')); + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + } + + $objWriter->startElement('a:prstDash'); + $objWriter->writeAttribute('val', $xAxis->getLineStyleProperty('dash')); + $objWriter->endElement(); + + if ($xAxis->getLineStyleProperty('join') == 'miter') { + $objWriter->startElement('a:miter'); + $objWriter->writeAttribute('lim', '800000'); + $objWriter->endElement(); + } else { + $objWriter->startElement('a:bevel'); + $objWriter->endElement(); + } + + if (!is_null($xAxis->getLineStyleProperty(array('arrow', 'head', 'type')))) { + $objWriter->startElement('a:headEnd'); + $objWriter->writeAttribute('type', $xAxis->getLineStyleProperty(array('arrow', 'head', 'type'))); + $objWriter->writeAttribute('w', $xAxis->getLineStyleArrowWidth('head')); + $objWriter->writeAttribute('len', $xAxis->getLineStyleArrowLength('head')); + $objWriter->endElement(); + } + + if (!is_null($xAxis->getLineStyleProperty(array('arrow', 'end', 'type')))) { + $objWriter->startElement('a:tailEnd'); + $objWriter->writeAttribute('type', $xAxis->getLineStyleProperty(array('arrow', 'end', 'type'))); + $objWriter->writeAttribute('w', $xAxis->getLineStyleArrowWidth('end')); + $objWriter->writeAttribute('len', $xAxis->getLineStyleArrowLength('end')); + $objWriter->endElement(); + } + + $objWriter->endElement(); + + $objWriter->startElement('a:effectLst'); + + if (!is_null($xAxis->getGlowProperty('size'))) { + $objWriter->startElement('a:glow'); + $objWriter->writeAttribute('rad', $xAxis->getGlowProperty('size')); + $objWriter->startElement("a:{$xAxis->getGlowProperty(array('color','type'))}"); + $objWriter->writeAttribute('val', $xAxis->getGlowProperty(array('color','value'))); + $objWriter->startElement('a:alpha'); + $objWriter->writeAttribute('val', $xAxis->getGlowProperty(array('color','alpha'))); + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + } + + if (!is_null($xAxis->getShadowProperty('presets'))) { + $objWriter->startElement("a:{$xAxis->getShadowProperty('effect')}"); + + if (!is_null($xAxis->getShadowProperty('blur'))) { + $objWriter->writeAttribute('blurRad', $xAxis->getShadowProperty('blur')); + } + if (!is_null($xAxis->getShadowProperty('distance'))) { + $objWriter->writeAttribute('dist', $xAxis->getShadowProperty('distance')); + } + if (!is_null($xAxis->getShadowProperty('direction'))) { + $objWriter->writeAttribute('dir', $xAxis->getShadowProperty('direction')); + } + if (!is_null($xAxis->getShadowProperty('algn'))) { + $objWriter->writeAttribute('algn', $xAxis->getShadowProperty('algn')); + } + if (!is_null($xAxis->getShadowProperty(array('size','sx')))) { + $objWriter->writeAttribute('sx', $xAxis->getShadowProperty(array('size','sx'))); + } + if (!is_null($xAxis->getShadowProperty(array('size','sy')))) { + $objWriter->writeAttribute('sy', $xAxis->getShadowProperty(array('size','sy'))); + } + if (!is_null($xAxis->getShadowProperty(array('size','kx')))) { + $objWriter->writeAttribute('kx', $xAxis->getShadowProperty(array('size','kx'))); + } + if (!is_null($xAxis->getShadowProperty('rotWithShape'))) { + $objWriter->writeAttribute('rotWithShape', $xAxis->getShadowProperty('rotWithShape')); + } + + $objWriter->startElement("a:{$xAxis->getShadowProperty(array('color','type'))}"); + $objWriter->writeAttribute('val', $xAxis->getShadowProperty(array('color','value'))); + $objWriter->startElement('a:alpha'); + $objWriter->writeAttribute('val', $xAxis->getShadowProperty(array('color','alpha'))); + $objWriter->endElement(); + $objWriter->endElement(); + + $objWriter->endElement(); + } + + if (!is_null($xAxis->getSoftEdgesSize())) { + $objWriter->startElement('a:softEdge'); + $objWriter->writeAttribute('rad', $xAxis->getSoftEdgesSize()); + $objWriter->endElement(); + } + + $objWriter->endElement(); //effectList + $objWriter->endElement(); //end spPr + + if ($id1 > 0) { + $objWriter->startElement('c:crossAx'); + $objWriter->writeAttribute('val', $id2); + $objWriter->endElement(); + + if (!is_null($xAxis->getAxisOptionsProperty('horizontal_crosses_value'))) { + $objWriter->startElement('c:crossesAt'); + $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('horizontal_crosses_value')); + $objWriter->endElement(); + } else { + $objWriter->startElement('c:crosses'); + $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('horizontal_crosses')); + $objWriter->endElement(); + } + + $objWriter->startElement('c:crossBetween'); + $objWriter->writeAttribute('val', "midCat"); + $objWriter->endElement(); + + if (!is_null($xAxis->getAxisOptionsProperty('major_unit'))) { + $objWriter->startElement('c:majorUnit'); + $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('major_unit')); + $objWriter->endElement(); + } + + if (!is_null($xAxis->getAxisOptionsProperty('minor_unit'))) { + $objWriter->startElement('c:minorUnit'); + $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('minor_unit')); + $objWriter->endElement(); + } + + } + + if ($isMultiLevelSeries) { + if ($groupType !== PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) { + $objWriter->startElement('c:noMultiLvlLbl'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + } + } + + $objWriter->endElement(); + + } + + /** + * Get the data series type(s) for a chart plot series + * + * @param PHPExcel_Chart_PlotArea $plotArea + * + * @return string|array + * @throws PHPExcel_Writer_Exception + */ + private + static function _getChartType($plotArea) { + $groupCount = $plotArea->getPlotGroupCount(); + + if ($groupCount == 1) { + $chartType = array( + $plotArea->getPlotGroupByIndex(0) + ->getPlotType() + ); + } else { + $chartTypes = array(); + for ($i = 0; $i < $groupCount; ++$i) { + $chartTypes[] = $plotArea->getPlotGroupByIndex($i) + ->getPlotType(); + } + $chartType = array_unique($chartTypes); + if (count($chartTypes) == 0) { + throw new PHPExcel_Writer_Exception('Chart is not yet implemented'); + } + } + + return $chartType; + } + + /** + * Write Plot Group (series of related plots) + * + * @param PHPExcel_Chart_DataSeries $plotGroup + * @param string $groupType Type of plot for dataseries + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param boolean &$catIsMultiLevelSeries Is category a multi-series category + * @param boolean &$valIsMultiLevelSeries Is value set a multi-series set + * @param string &$plotGroupingType Type of grouping for multi-series values + * @param PHPExcel_Worksheet $pSheet + * + * @throws PHPExcel_Writer_Exception + */ + private function _writePlotGroup($plotGroup, + $groupType, + $objWriter, + &$catIsMultiLevelSeries, + &$valIsMultiLevelSeries, + &$plotGroupingType, + PHPExcel_Worksheet $pSheet + ) { + if (is_null($plotGroup)) { + return; + } + + if (($groupType == PHPExcel_Chart_DataSeries::TYPE_BARCHART) || + ($groupType == PHPExcel_Chart_DataSeries::TYPE_BARCHART_3D) + ) { + $objWriter->startElement('c:barDir'); + $objWriter->writeAttribute('val', $plotGroup->getPlotDirection()); + $objWriter->endElement(); + } + + if (!is_null($plotGroup->getPlotGrouping())) { + $plotGroupingType = $plotGroup->getPlotGrouping(); + $objWriter->startElement('c:grouping'); + $objWriter->writeAttribute('val', $plotGroupingType); + $objWriter->endElement(); + } + + // Get these details before the loop, because we can use the count to check for varyColors + $plotSeriesOrder = $plotGroup->getPlotOrder(); + $plotSeriesCount = count($plotSeriesOrder); + + if (($groupType !== PHPExcel_Chart_DataSeries::TYPE_RADARCHART) && + ($groupType !== PHPExcel_Chart_DataSeries::TYPE_STOCKCHART) + ) { + + if ($groupType !== PHPExcel_Chart_DataSeries::TYPE_LINECHART) { + if (($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART) || + ($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) || + ($groupType == PHPExcel_Chart_DataSeries::TYPE_DONUTCHART) || + ($plotSeriesCount > 1) + ) { + $objWriter->startElement('c:varyColors'); + $objWriter->writeAttribute('val', 1); + $objWriter->endElement(); + } else { + $objWriter->startElement('c:varyColors'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + } + } + } + + foreach ($plotSeriesOrder as $plotSeriesIdx => $plotSeriesRef) { + $objWriter->startElement('c:ser'); + + $objWriter->startElement('c:idx'); + $objWriter->writeAttribute('val', $this->_seriesIndex + $plotSeriesIdx); + $objWriter->endElement(); + + $objWriter->startElement('c:order'); + $objWriter->writeAttribute('val', $this->_seriesIndex + $plotSeriesRef); + $objWriter->endElement(); + + if (($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART) || + ($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) || + ($groupType == PHPExcel_Chart_DataSeries::TYPE_DONUTCHART) + ) { + + $objWriter->startElement('c:dPt'); + $objWriter->startElement('c:idx'); + $objWriter->writeAttribute('val', 3); + $objWriter->endElement(); + + $objWriter->startElement('c:bubble3D'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + + $objWriter->startElement('c:spPr'); + $objWriter->startElement('a:solidFill'); + $objWriter->startElement('a:srgbClr'); + $objWriter->writeAttribute('val', 'FF9900'); + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + } + + // Labels + $plotSeriesLabel = $plotGroup->getPlotLabelByIndex($plotSeriesRef); + if ($plotSeriesLabel && ($plotSeriesLabel->getPointCount() > 0)) { + $objWriter->startElement('c:tx'); + $objWriter->startElement('c:strRef'); + $this->_writePlotSeriesLabel($plotSeriesLabel, $objWriter); + $objWriter->endElement(); + $objWriter->endElement(); + } + + // Formatting for the points + if (($groupType == PHPExcel_Chart_DataSeries::TYPE_LINECHART) || + ($groupType == PHPExcel_Chart_DataSeries::TYPE_STOCKCHART) + ) { + $objWriter->startElement('c:spPr'); + $objWriter->startElement('a:ln'); + $objWriter->writeAttribute('w', 12700); + if ($groupType == PHPExcel_Chart_DataSeries::TYPE_STOCKCHART) { + $objWriter->startElement('a:noFill'); + $objWriter->endElement(); + } + $objWriter->endElement(); + $objWriter->endElement(); + } + + $plotSeriesValues = $plotGroup->getPlotValuesByIndex($plotSeriesRef); + if ($plotSeriesValues) { + $plotSeriesMarker = $plotSeriesValues->getPointMarker(); + if ($plotSeriesMarker) { + $objWriter->startElement('c:marker'); + $objWriter->startElement('c:symbol'); + $objWriter->writeAttribute('val', $plotSeriesMarker); + $objWriter->endElement(); + + if ($plotSeriesMarker !== 'none') { + $objWriter->startElement('c:size'); + $objWriter->writeAttribute('val', 3); + $objWriter->endElement(); + } + + $objWriter->endElement(); + } + } + + if (($groupType === PHPExcel_Chart_DataSeries::TYPE_BARCHART) || + ($groupType === PHPExcel_Chart_DataSeries::TYPE_BARCHART_3D) || + ($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) + ) { + + $objWriter->startElement('c:invertIfNegative'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + } + + // Category Labels + $plotSeriesCategory = $plotGroup->getPlotCategoryByIndex($plotSeriesRef); + if ($plotSeriesCategory && ($plotSeriesCategory->getPointCount() > 0)) { + $catIsMultiLevelSeries = $catIsMultiLevelSeries || $plotSeriesCategory->isMultiLevelSeries(); + + if (($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART) || + ($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) || + ($groupType == PHPExcel_Chart_DataSeries::TYPE_DONUTCHART) + ) { + + if (!is_null($plotGroup->getPlotStyle())) { + $plotStyle = $plotGroup->getPlotStyle(); + if ($plotStyle) { + $objWriter->startElement('c:explosion'); + $objWriter->writeAttribute('val', 25); + $objWriter->endElement(); + } + } + } + + if (($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) || + ($groupType === PHPExcel_Chart_DataSeries::TYPE_SCATTERCHART) + ) { + $objWriter->startElement('c:xVal'); + } else { + $objWriter->startElement('c:cat'); + } + + $this->_writePlotSeriesValues($plotSeriesCategory, $objWriter, $groupType, 'str', $pSheet); + $objWriter->endElement(); + } + + // Values + if ($plotSeriesValues) { + $valIsMultiLevelSeries = $valIsMultiLevelSeries || $plotSeriesValues->isMultiLevelSeries(); + + if (($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) || + ($groupType === PHPExcel_Chart_DataSeries::TYPE_SCATTERCHART) + ) { + $objWriter->startElement('c:yVal'); + } else { + $objWriter->startElement('c:val'); + } + + $this->_writePlotSeriesValues($plotSeriesValues, $objWriter, $groupType, 'num', $pSheet); + $objWriter->endElement(); + } + + if ($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) { + $this->_writeBubbles($plotSeriesValues, $objWriter, $pSheet); + } + + $objWriter->endElement(); + + } + + $this->_seriesIndex += $plotSeriesIdx + 1; + } + + /** + * Write Plot Series Label + * + * @param PHPExcel_Chart_DataSeriesValues $plotSeriesLabel + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * + * @throws PHPExcel_Writer_Exception + */ + private function _writePlotSeriesLabel($plotSeriesLabel, $objWriter) { + if (is_null($plotSeriesLabel)) { + return; + } + + $objWriter->startElement('c:f'); + $objWriter->writeRawData($plotSeriesLabel->getDataSource()); + $objWriter->endElement(); + + $objWriter->startElement('c:strCache'); + $objWriter->startElement('c:ptCount'); + $objWriter->writeAttribute('val', $plotSeriesLabel->getPointCount()); + $objWriter->endElement(); + + foreach ($plotSeriesLabel->getDataValues() as $plotLabelKey => $plotLabelValue) { + $objWriter->startElement('c:pt'); + $objWriter->writeAttribute('idx', $plotLabelKey); + + $objWriter->startElement('c:v'); + $objWriter->writeRawData($plotLabelValue); + $objWriter->endElement(); + $objWriter->endElement(); + } + $objWriter->endElement(); + + } + + /** + * Write Plot Series Values + * + * @param PHPExcel_Chart_DataSeriesValues $plotSeriesValues + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param string $groupType Type of plot for dataseries + * @param string $dataType Datatype of series values + * @param PHPExcel_Worksheet $pSheet + * + * @throws PHPExcel_Writer_Exception + */ + private function _writePlotSeriesValues($plotSeriesValues, + $objWriter, + $groupType, + $dataType = 'str', + PHPExcel_Worksheet $pSheet + ) { + if (is_null($plotSeriesValues)) { + return; + } + + if ($plotSeriesValues->isMultiLevelSeries()) { + $levelCount = $plotSeriesValues->multiLevelCount(); + + $objWriter->startElement('c:multiLvlStrRef'); + + $objWriter->startElement('c:f'); + $objWriter->writeRawData($plotSeriesValues->getDataSource()); + $objWriter->endElement(); + + $objWriter->startElement('c:multiLvlStrCache'); + + $objWriter->startElement('c:ptCount'); + $objWriter->writeAttribute('val', $plotSeriesValues->getPointCount()); + $objWriter->endElement(); + + for ($level = 0; $level < $levelCount; ++$level) { + $objWriter->startElement('c:lvl'); + + foreach ($plotSeriesValues->getDataValues() as $plotSeriesKey => $plotSeriesValue) { + if (isset($plotSeriesValue[$level])) { + $objWriter->startElement('c:pt'); + $objWriter->writeAttribute('idx', $plotSeriesKey); + + $objWriter->startElement('c:v'); + $objWriter->writeRawData($plotSeriesValue[$level]); + $objWriter->endElement(); + $objWriter->endElement(); + } + } + + $objWriter->endElement(); + } + + $objWriter->endElement(); + + $objWriter->endElement(); + } else { + $objWriter->startElement('c:' . $dataType . 'Ref'); + + $objWriter->startElement('c:f'); + $objWriter->writeRawData($plotSeriesValues->getDataSource()); + $objWriter->endElement(); + + $objWriter->startElement('c:' . $dataType . 'Cache'); + + if (($groupType != PHPExcel_Chart_DataSeries::TYPE_PIECHART) && + ($groupType != PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) && + ($groupType != PHPExcel_Chart_DataSeries::TYPE_DONUTCHART) + ) { + + if (($plotSeriesValues->getFormatCode() !== NULL) && + ($plotSeriesValues->getFormatCode() !== '') + ) { + $objWriter->startElement('c:formatCode'); + $objWriter->writeRawData($plotSeriesValues->getFormatCode()); + $objWriter->endElement(); + } + } + + $objWriter->startElement('c:ptCount'); + $objWriter->writeAttribute('val', $plotSeriesValues->getPointCount()); + $objWriter->endElement(); + + $dataValues = $plotSeriesValues->getDataValues(); + if (!empty($dataValues)) { + if (is_array($dataValues)) { + foreach ($dataValues as $plotSeriesKey => $plotSeriesValue) { + $objWriter->startElement('c:pt'); + $objWriter->writeAttribute('idx', $plotSeriesKey); + + $objWriter->startElement('c:v'); + $objWriter->writeRawData($plotSeriesValue); + $objWriter->endElement(); + $objWriter->endElement(); + } + } + } + + $objWriter->endElement(); + + $objWriter->endElement(); + } + } + + /** + * Write Bubble Chart Details + * + * @param PHPExcel_Chart_DataSeriesValues $plotSeriesValues + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * + * @throws PHPExcel_Writer_Exception + */ + private function _writeBubbles($plotSeriesValues, $objWriter, PHPExcel_Worksheet $pSheet) { + if (is_null($plotSeriesValues)) { + return; + } + + $objWriter->startElement('c:bubbleSize'); + $objWriter->startElement('c:numLit'); + + $objWriter->startElement('c:formatCode'); + $objWriter->writeRawData('General'); + $objWriter->endElement(); + + $objWriter->startElement('c:ptCount'); + $objWriter->writeAttribute('val', $plotSeriesValues->getPointCount()); + $objWriter->endElement(); + + $dataValues = $plotSeriesValues->getDataValues(); + if (!empty($dataValues)) { + if (is_array($dataValues)) { + foreach ($dataValues as $plotSeriesKey => $plotSeriesValue) { + $objWriter->startElement('c:pt'); + $objWriter->writeAttribute('idx', $plotSeriesKey); + $objWriter->startElement('c:v'); + $objWriter->writeRawData(1); + $objWriter->endElement(); + $objWriter->endElement(); + } + } + } + + $objWriter->endElement(); + $objWriter->endElement(); + + $objWriter->startElement('c:bubble3D'); + $objWriter->writeAttribute('val', 0); + $objWriter->endElement(); + } + + /** + * Write Layout + * + * @param PHPExcel_Chart_Layout $layout + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * + * @throws PHPExcel_Writer_Exception + */ + private function _writeLayout(PHPExcel_Chart_Layout $layout = NULL, $objWriter) { + $objWriter->startElement('c:layout'); + + if (!is_null($layout)) { + $objWriter->startElement('c:manualLayout'); + + $layoutTarget = $layout->getLayoutTarget(); + if (!is_null($layoutTarget)) { + $objWriter->startElement('c:layoutTarget'); + $objWriter->writeAttribute('val', $layoutTarget); + $objWriter->endElement(); + } + + $xMode = $layout->getXMode(); + if (!is_null($xMode)) { + $objWriter->startElement('c:xMode'); + $objWriter->writeAttribute('val', $xMode); + $objWriter->endElement(); + } + + $yMode = $layout->getYMode(); + if (!is_null($yMode)) { + $objWriter->startElement('c:yMode'); + $objWriter->writeAttribute('val', $yMode); + $objWriter->endElement(); + } + + $x = $layout->getXPosition(); + if (!is_null($x)) { + $objWriter->startElement('c:x'); + $objWriter->writeAttribute('val', $x); + $objWriter->endElement(); + } + + $y = $layout->getYPosition(); + if (!is_null($y)) { + $objWriter->startElement('c:y'); + $objWriter->writeAttribute('val', $y); + $objWriter->endElement(); + } + + $w = $layout->getWidth(); + if (!is_null($w)) { + $objWriter->startElement('c:w'); + $objWriter->writeAttribute('val', $w); + $objWriter->endElement(); + } + + $h = $layout->getHeight(); + if (!is_null($h)) { + $objWriter->startElement('c:h'); + $objWriter->writeAttribute('val', $h); + $objWriter->endElement(); + } + + $objWriter->endElement(); + } + + $objWriter->endElement(); + } + + /** + * Write Alternate Content block + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * + * @throws PHPExcel_Writer_Exception + */ + private function _writeAlternateContent($objWriter) { + $objWriter->startElement('mc:AlternateContent'); + $objWriter->writeAttribute('xmlns:mc', 'http://schemas.openxmlformats.org/markup-compatibility/2006'); + + $objWriter->startElement('mc:Choice'); + $objWriter->writeAttribute('xmlns:c14', 'http://schemas.microsoft.com/office/drawing/2007/8/2/chart'); + $objWriter->writeAttribute('Requires', 'c14'); + + $objWriter->startElement('c14:style'); + $objWriter->writeAttribute('val', '102'); + $objWriter->endElement(); + $objWriter->endElement(); + + $objWriter->startElement('mc:Fallback'); + $objWriter->startElement('c:style'); + $objWriter->writeAttribute('val', '2'); + $objWriter->endElement(); + $objWriter->endElement(); + + $objWriter->endElement(); + } + + /** + * Write Printer Settings + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * + * @throws PHPExcel_Writer_Exception + */ + private function _writePrintSettings($objWriter) { + $objWriter->startElement('c:printSettings'); + + $objWriter->startElement('c:headerFooter'); + $objWriter->endElement(); + + $objWriter->startElement('c:pageMargins'); + $objWriter->writeAttribute('footer', 0.3); + $objWriter->writeAttribute('header', 0.3); + $objWriter->writeAttribute('r', 0.7); + $objWriter->writeAttribute('l', 0.7); + $objWriter->writeAttribute('t', 0.75); + $objWriter->writeAttribute('b', 0.75); + $objWriter->endElement(); + + $objWriter->startElement('c:pageSetup'); + $objWriter->writeAttribute('orientation', "portrait"); + $objWriter->endElement(); + + $objWriter->endElement(); + } + +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007/Comments.php b/admin/helpers/PHPExcel/Writer/Excel2007/Comments.php new file mode 100644 index 00000000..dc809fa8 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007/Comments.php @@ -0,0 +1,268 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel2007_Comments + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel2007_Comments extends PHPExcel_Writer_Excel2007_WriterPart +{ + /** + * Write comments to XML format + * + * @param PHPExcel_Worksheet $pWorksheet + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeComments(PHPExcel_Worksheet $pWorksheet = null) + { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // Comments cache + $comments = $pWorksheet->getComments(); + + // Authors cache + $authors = array(); + $authorId = 0; + foreach ($comments as $comment) { + if (!isset($authors[$comment->getAuthor()])) { + $authors[$comment->getAuthor()] = $authorId++; + } + } + + // comments + $objWriter->startElement('comments'); + $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main'); + + // Loop through authors + $objWriter->startElement('authors'); + foreach ($authors as $author => $index) { + $objWriter->writeElement('author', $author); + } + $objWriter->endElement(); + + // Loop through comments + $objWriter->startElement('commentList'); + foreach ($comments as $key => $value) { + $this->_writeComment($objWriter, $key, $value, $authors); + } + $objWriter->endElement(); + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Write comment to XML format + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param string $pCellReference Cell reference + * @param PHPExcel_Comment $pComment Comment + * @param array $pAuthors Array of authors + * @throws PHPExcel_Writer_Exception + */ + public function _writeComment(PHPExcel_Shared_XMLWriter $objWriter = null, $pCellReference = 'A1', PHPExcel_Comment $pComment = null, $pAuthors = null) + { + // comment + $objWriter->startElement('comment'); + $objWriter->writeAttribute('ref', $pCellReference); + $objWriter->writeAttribute('authorId', $pAuthors[$pComment->getAuthor()]); + + // text + $objWriter->startElement('text'); + $this->getParentWriter()->getWriterPart('stringtable')->writeRichText($objWriter, $pComment->getText()); + $objWriter->endElement(); + + $objWriter->endElement(); + } + + /** + * Write VML comments to XML format + * + * @param PHPExcel_Worksheet $pWorksheet + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeVMLComments(PHPExcel_Worksheet $pWorksheet = null) + { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // Comments cache + $comments = $pWorksheet->getComments(); + + // xml + $objWriter->startElement('xml'); + $objWriter->writeAttribute('xmlns:v', 'urn:schemas-microsoft-com:vml'); + $objWriter->writeAttribute('xmlns:o', 'urn:schemas-microsoft-com:office:office'); + $objWriter->writeAttribute('xmlns:x', 'urn:schemas-microsoft-com:office:excel'); + + // o:shapelayout + $objWriter->startElement('o:shapelayout'); + $objWriter->writeAttribute('v:ext', 'edit'); + + // o:idmap + $objWriter->startElement('o:idmap'); + $objWriter->writeAttribute('v:ext', 'edit'); + $objWriter->writeAttribute('data', '1'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // v:shapetype + $objWriter->startElement('v:shapetype'); + $objWriter->writeAttribute('id', '_x0000_t202'); + $objWriter->writeAttribute('coordsize', '21600,21600'); + $objWriter->writeAttribute('o:spt', '202'); + $objWriter->writeAttribute('path', 'm,l,21600r21600,l21600,xe'); + + // v:stroke + $objWriter->startElement('v:stroke'); + $objWriter->writeAttribute('joinstyle', 'miter'); + $objWriter->endElement(); + + // v:path + $objWriter->startElement('v:path'); + $objWriter->writeAttribute('gradientshapeok', 't'); + $objWriter->writeAttribute('o:connecttype', 'rect'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // Loop through comments + foreach ($comments as $key => $value) { + $this->_writeVMLComment($objWriter, $key, $value); + } + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Write VML comment to XML format + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param string $pCellReference Cell reference + * @param PHPExcel_Comment $pComment Comment + * @throws PHPExcel_Writer_Exception + */ + public function _writeVMLComment(PHPExcel_Shared_XMLWriter $objWriter = null, $pCellReference = 'A1', PHPExcel_Comment $pComment = null) + { + // Metadata + list($column, $row) = PHPExcel_Cell::coordinateFromString($pCellReference); + $column = PHPExcel_Cell::columnIndexFromString($column); + $id = 1024 + $column + $row; + $id = substr($id, 0, 4); + + // v:shape + $objWriter->startElement('v:shape'); + $objWriter->writeAttribute('id', '_x0000_s' . $id); + $objWriter->writeAttribute('type', '#_x0000_t202'); + $objWriter->writeAttribute('style', 'position:absolute;margin-left:' . $pComment->getMarginLeft() . ';margin-top:' . $pComment->getMarginTop() . ';width:' . $pComment->getWidth() . ';height:' . $pComment->getHeight() . ';z-index:1;visibility:' . ($pComment->getVisible() ? 'visible' : 'hidden')); + $objWriter->writeAttribute('fillcolor', '#' . $pComment->getFillColor()->getRGB()); + $objWriter->writeAttribute('o:insetmode', 'auto'); + + // v:fill + $objWriter->startElement('v:fill'); + $objWriter->writeAttribute('color2', '#' . $pComment->getFillColor()->getRGB()); + $objWriter->endElement(); + + // v:shadow + $objWriter->startElement('v:shadow'); + $objWriter->writeAttribute('on', 't'); + $objWriter->writeAttribute('color', 'black'); + $objWriter->writeAttribute('obscured', 't'); + $objWriter->endElement(); + + // v:path + $objWriter->startElement('v:path'); + $objWriter->writeAttribute('o:connecttype', 'none'); + $objWriter->endElement(); + + // v:textbox + $objWriter->startElement('v:textbox'); + $objWriter->writeAttribute('style', 'mso-direction-alt:auto'); + + // div + $objWriter->startElement('div'); + $objWriter->writeAttribute('style', 'text-align:left'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // x:ClientData + $objWriter->startElement('x:ClientData'); + $objWriter->writeAttribute('ObjectType', 'Note'); + + // x:MoveWithCells + $objWriter->writeElement('x:MoveWithCells', ''); + + // x:SizeWithCells + $objWriter->writeElement('x:SizeWithCells', ''); + + // x:Anchor + //$objWriter->writeElement('x:Anchor', $column . ', 15, ' . ($row - 2) . ', 10, ' . ($column + 4) . ', 15, ' . ($row + 5) . ', 18'); + + // x:AutoFill + $objWriter->writeElement('x:AutoFill', 'False'); + + // x:Row + $objWriter->writeElement('x:Row', ($row - 1)); + + // x:Column + $objWriter->writeElement('x:Column', ($column - 1)); + + $objWriter->endElement(); + + $objWriter->endElement(); + } +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007/ContentTypes.php b/admin/helpers/PHPExcel/Writer/Excel2007/ContentTypes.php new file mode 100644 index 00000000..55785365 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007/ContentTypes.php @@ -0,0 +1,287 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel2007_ContentTypes + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel2007_ContentTypes extends PHPExcel_Writer_Excel2007_WriterPart +{ + /** + * Write content types to XML format + * + * @param PHPExcel $pPHPExcel + * @param boolean $includeCharts Flag indicating if we should include drawing details for charts + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeContentTypes(PHPExcel $pPHPExcel = null, $includeCharts = FALSE) + { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // Types + $objWriter->startElement('Types'); + $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/content-types'); + + // Theme + $this->_writeOverrideContentType( + $objWriter, '/xl/theme/theme1.xml', 'application/vnd.openxmlformats-officedocument.theme+xml' + ); + + // Styles + $this->_writeOverrideContentType( + $objWriter, '/xl/styles.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml' + ); + + // Rels + $this->_writeDefaultContentType( + $objWriter, 'rels', 'application/vnd.openxmlformats-package.relationships+xml' + ); + + // XML + $this->_writeDefaultContentType( + $objWriter, 'xml', 'application/xml' + ); + + // VML + $this->_writeDefaultContentType( + $objWriter, 'vml', 'application/vnd.openxmlformats-officedocument.vmlDrawing' + ); + + // Workbook + if($pPHPExcel->hasMacros()){ //Macros in workbook ? + // Yes : not standard content but "macroEnabled" + $this->_writeOverrideContentType( + $objWriter, '/xl/workbook.xml', 'application/vnd.ms-excel.sheet.macroEnabled.main+xml' + ); + //... and define a new type for the VBA project + $this->_writeDefaultContentType( + $objWriter, 'bin', 'application/vnd.ms-office.vbaProject' + ); + if($pPHPExcel->hasMacrosCertificate()){// signed macros ? + // Yes : add needed information + $this->_writeOverrideContentType( + $objWriter, '/xl/vbaProjectSignature.bin', 'application/vnd.ms-office.vbaProjectSignature' + ); + } + }else{// no macros in workbook, so standard type + $this->_writeOverrideContentType( + $objWriter, '/xl/workbook.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml' + ); + } + + // DocProps + $this->_writeOverrideContentType( + $objWriter, '/docProps/app.xml', 'application/vnd.openxmlformats-officedocument.extended-properties+xml' + ); + + $this->_writeOverrideContentType( + $objWriter, '/docProps/core.xml', 'application/vnd.openxmlformats-package.core-properties+xml' + ); + + $customPropertyList = $pPHPExcel->getProperties()->getCustomProperties(); + if (!empty($customPropertyList)) { + $this->_writeOverrideContentType( + $objWriter, '/docProps/custom.xml', 'application/vnd.openxmlformats-officedocument.custom-properties+xml' + ); + } + + // Worksheets + $sheetCount = $pPHPExcel->getSheetCount(); + for ($i = 0; $i < $sheetCount; ++$i) { + $this->_writeOverrideContentType( + $objWriter, '/xl/worksheets/sheet' . ($i + 1) . '.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml' + ); + } + + // Shared strings + $this->_writeOverrideContentType( + $objWriter, '/xl/sharedStrings.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml' + ); + + // Add worksheet relationship content types + $chart = 1; + for ($i = 0; $i < $sheetCount; ++$i) { + $drawings = $pPHPExcel->getSheet($i)->getDrawingCollection(); + $drawingCount = count($drawings); + $chartCount = ($includeCharts) ? $pPHPExcel->getSheet($i)->getChartCount() : 0; + + // We need a drawing relationship for the worksheet if we have either drawings or charts + if (($drawingCount > 0) || ($chartCount > 0)) { + $this->_writeOverrideContentType( + $objWriter, '/xl/drawings/drawing' . ($i + 1) . '.xml', 'application/vnd.openxmlformats-officedocument.drawing+xml' + ); + } + + // If we have charts, then we need a chart relationship for every individual chart + if ($chartCount > 0) { + for ($c = 0; $c < $chartCount; ++$c) { + $this->_writeOverrideContentType( + $objWriter, '/xl/charts/chart' . $chart++ . '.xml', 'application/vnd.openxmlformats-officedocument.drawingml.chart+xml' + ); + } + } + } + + // Comments + for ($i = 0; $i < $sheetCount; ++$i) { + if (count($pPHPExcel->getSheet($i)->getComments()) > 0) { + $this->_writeOverrideContentType( + $objWriter, '/xl/comments' . ($i + 1) . '.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml' + ); + } + } + + // Add media content-types + $aMediaContentTypes = array(); + $mediaCount = $this->getParentWriter()->getDrawingHashTable()->count(); + for ($i = 0; $i < $mediaCount; ++$i) { + $extension = ''; + $mimeType = ''; + + if ($this->getParentWriter()->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_Drawing) { + $extension = strtolower($this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getExtension()); + $mimeType = $this->_getImageMimeType( $this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getPath() ); + } else if ($this->getParentWriter()->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_MemoryDrawing) { + $extension = strtolower($this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getMimeType()); + $extension = explode('/', $extension); + $extension = $extension[1]; + + $mimeType = $this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getMimeType(); + } + + if (!isset( $aMediaContentTypes[$extension]) ) { + $aMediaContentTypes[$extension] = $mimeType; + + $this->_writeDefaultContentType( + $objWriter, $extension, $mimeType + ); + } + } + if($pPHPExcel->hasRibbonBinObjects()){//Some additional objects in the ribbon ? + //we need to write "Extension" but not already write for media content + $tabRibbonTypes=array_diff($pPHPExcel->getRibbonBinObjects('types'), array_keys($aMediaContentTypes)); + foreach($tabRibbonTypes as $aRibbonType){ + $mimeType='image/.'.$aRibbonType;//we wrote $mimeType like customUI Editor + $this->_writeDefaultContentType( + $objWriter, $aRibbonType, $mimeType + ); + } + } + $sheetCount = $pPHPExcel->getSheetCount(); + for ($i = 0; $i < $sheetCount; ++$i) { + if (count($pPHPExcel->getSheet()->getHeaderFooter()->getImages()) > 0) { + foreach ($pPHPExcel->getSheet()->getHeaderFooter()->getImages() as $image) { + if (!isset( $aMediaContentTypes[strtolower($image->getExtension())]) ) { + $aMediaContentTypes[strtolower($image->getExtension())] = $this->_getImageMimeType( $image->getPath() ); + + $this->_writeDefaultContentType( + $objWriter, strtolower($image->getExtension()), $aMediaContentTypes[strtolower($image->getExtension())] + ); + } + } + } + } + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Get image mime type + * + * @param string $pFile Filename + * @return string Mime Type + * @throws PHPExcel_Writer_Exception + */ + private function _getImageMimeType($pFile = '') + { + if (PHPExcel_Shared_File::file_exists($pFile)) { + $image = getimagesize($pFile); + return image_type_to_mime_type($image[2]); + } else { + throw new PHPExcel_Writer_Exception("File $pFile does not exist"); + } + } + + /** + * Write Default content type + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param string $pPartname Part name + * @param string $pContentType Content type + * @throws PHPExcel_Writer_Exception + */ + private function _writeDefaultContentType(PHPExcel_Shared_XMLWriter $objWriter = null, $pPartname = '', $pContentType = '') + { + if ($pPartname != '' && $pContentType != '') { + // Write content type + $objWriter->startElement('Default'); + $objWriter->writeAttribute('Extension', $pPartname); + $objWriter->writeAttribute('ContentType', $pContentType); + $objWriter->endElement(); + } else { + throw new PHPExcel_Writer_Exception("Invalid parameters passed."); + } + } + + /** + * Write Override content type + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param string $pPartname Part name + * @param string $pContentType Content type + * @throws PHPExcel_Writer_Exception + */ + private function _writeOverrideContentType(PHPExcel_Shared_XMLWriter $objWriter = null, $pPartname = '', $pContentType = '') + { + if ($pPartname != '' && $pContentType != '') { + // Write content type + $objWriter->startElement('Override'); + $objWriter->writeAttribute('PartName', $pPartname); + $objWriter->writeAttribute('ContentType', $pContentType); + $objWriter->endElement(); + } else { + throw new PHPExcel_Writer_Exception("Invalid parameters passed."); + } + } +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007/DocProps.php b/admin/helpers/PHPExcel/Writer/Excel2007/DocProps.php new file mode 100644 index 00000000..f8821379 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007/DocProps.php @@ -0,0 +1,272 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel2007_DocProps + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel2007_DocProps extends PHPExcel_Writer_Excel2007_WriterPart +{ +/** + * Write docProps/app.xml to XML format + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeDocPropsApp(PHPExcel $pPHPExcel = null) + { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // Properties + $objWriter->startElement('Properties'); + $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties'); + $objWriter->writeAttribute('xmlns:vt', 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes'); + + // Application + $objWriter->writeElement('Application', 'Microsoft Excel'); + + // DocSecurity + $objWriter->writeElement('DocSecurity', '0'); + + // ScaleCrop + $objWriter->writeElement('ScaleCrop', 'false'); + + // HeadingPairs + $objWriter->startElement('HeadingPairs'); + + // Vector + $objWriter->startElement('vt:vector'); + $objWriter->writeAttribute('size', '2'); + $objWriter->writeAttribute('baseType', 'variant'); + + // Variant + $objWriter->startElement('vt:variant'); + $objWriter->writeElement('vt:lpstr', 'Worksheets'); + $objWriter->endElement(); + + // Variant + $objWriter->startElement('vt:variant'); + $objWriter->writeElement('vt:i4', $pPHPExcel->getSheetCount()); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // TitlesOfParts + $objWriter->startElement('TitlesOfParts'); + + // Vector + $objWriter->startElement('vt:vector'); + $objWriter->writeAttribute('size', $pPHPExcel->getSheetCount()); + $objWriter->writeAttribute('baseType', 'lpstr'); + + $sheetCount = $pPHPExcel->getSheetCount(); + for ($i = 0; $i < $sheetCount; ++$i) { + $objWriter->writeElement('vt:lpstr', $pPHPExcel->getSheet($i)->getTitle()); + } + + $objWriter->endElement(); + + $objWriter->endElement(); + + // Company + $objWriter->writeElement('Company', $pPHPExcel->getProperties()->getCompany()); + + // Company + $objWriter->writeElement('Manager', $pPHPExcel->getProperties()->getManager()); + + // LinksUpToDate + $objWriter->writeElement('LinksUpToDate', 'false'); + + // SharedDoc + $objWriter->writeElement('SharedDoc', 'false'); + + // HyperlinksChanged + $objWriter->writeElement('HyperlinksChanged', 'false'); + + // AppVersion + $objWriter->writeElement('AppVersion', '12.0000'); + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Write docProps/core.xml to XML format + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeDocPropsCore(PHPExcel $pPHPExcel = null) + { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // cp:coreProperties + $objWriter->startElement('cp:coreProperties'); + $objWriter->writeAttribute('xmlns:cp', 'http://schemas.openxmlformats.org/package/2006/metadata/core-properties'); + $objWriter->writeAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/'); + $objWriter->writeAttribute('xmlns:dcterms', 'http://purl.org/dc/terms/'); + $objWriter->writeAttribute('xmlns:dcmitype', 'http://purl.org/dc/dcmitype/'); + $objWriter->writeAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); + + // dc:creator + $objWriter->writeElement('dc:creator', $pPHPExcel->getProperties()->getCreator()); + + // cp:lastModifiedBy + $objWriter->writeElement('cp:lastModifiedBy', $pPHPExcel->getProperties()->getLastModifiedBy()); + + // dcterms:created + $objWriter->startElement('dcterms:created'); + $objWriter->writeAttribute('xsi:type', 'dcterms:W3CDTF'); + $objWriter->writeRawData(date(DATE_W3C, $pPHPExcel->getProperties()->getCreated())); + $objWriter->endElement(); + + // dcterms:modified + $objWriter->startElement('dcterms:modified'); + $objWriter->writeAttribute('xsi:type', 'dcterms:W3CDTF'); + $objWriter->writeRawData(date(DATE_W3C, $pPHPExcel->getProperties()->getModified())); + $objWriter->endElement(); + + // dc:title + $objWriter->writeElement('dc:title', $pPHPExcel->getProperties()->getTitle()); + + // dc:description + $objWriter->writeElement('dc:description', $pPHPExcel->getProperties()->getDescription()); + + // dc:subject + $objWriter->writeElement('dc:subject', $pPHPExcel->getProperties()->getSubject()); + + // cp:keywords + $objWriter->writeElement('cp:keywords', $pPHPExcel->getProperties()->getKeywords()); + + // cp:category + $objWriter->writeElement('cp:category', $pPHPExcel->getProperties()->getCategory()); + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Write docProps/custom.xml to XML format + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeDocPropsCustom(PHPExcel $pPHPExcel = null) + { + $customPropertyList = $pPHPExcel->getProperties()->getCustomProperties(); + if (empty($customPropertyList)) { + return; + } + + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // cp:coreProperties + $objWriter->startElement('Properties'); + $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/officeDocument/2006/custom-properties'); + $objWriter->writeAttribute('xmlns:vt', 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes'); + + + foreach($customPropertyList as $key => $customProperty) { + $propertyValue = $pPHPExcel->getProperties()->getCustomPropertyValue($customProperty); + $propertyType = $pPHPExcel->getProperties()->getCustomPropertyType($customProperty); + + $objWriter->startElement('property'); + $objWriter->writeAttribute('fmtid', '{D5CDD505-2E9C-101B-9397-08002B2CF9AE}'); + $objWriter->writeAttribute('pid', $key+2); + $objWriter->writeAttribute('name', $customProperty); + + switch($propertyType) { + case 'i' : + $objWriter->writeElement('vt:i4', $propertyValue); + break; + case 'f' : + $objWriter->writeElement('vt:r8', $propertyValue); + break; + case 'b' : + $objWriter->writeElement('vt:bool', ($propertyValue) ? 'true' : 'false'); + break; + case 'd' : + $objWriter->startElement('vt:filetime'); + $objWriter->writeRawData(date(DATE_W3C, $propertyValue)); + $objWriter->endElement(); + break; + default : + $objWriter->writeElement('vt:lpwstr', $propertyValue); + break; + } + + $objWriter->endElement(); + } + + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007/Drawing.php b/admin/helpers/PHPExcel/Writer/Excel2007/Drawing.php new file mode 100644 index 00000000..1cf971ed --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007/Drawing.php @@ -0,0 +1,598 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel2007_Drawing + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel2007_Drawing extends PHPExcel_Writer_Excel2007_WriterPart +{ + /** + * Write drawings to XML format + * + * @param PHPExcel_Worksheet $pWorksheet + * @param int &$chartRef Chart ID + * @param boolean $includeCharts Flag indicating if we should include drawing details for charts + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeDrawings(PHPExcel_Worksheet $pWorksheet = null, &$chartRef, $includeCharts = FALSE) + { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // xdr:wsDr + $objWriter->startElement('xdr:wsDr'); + $objWriter->writeAttribute('xmlns:xdr', 'http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing'); + $objWriter->writeAttribute('xmlns:a', 'http://schemas.openxmlformats.org/drawingml/2006/main'); + + // Loop through images and write drawings + $i = 1; + $iterator = $pWorksheet->getDrawingCollection()->getIterator(); + while ($iterator->valid()) { + $this->_writeDrawing($objWriter, $iterator->current(), $i); + + $iterator->next(); + ++$i; + } + + if ($includeCharts) { + $chartCount = $pWorksheet->getChartCount(); + // Loop through charts and write the chart position + if ($chartCount > 0) { + for ($c = 0; $c < $chartCount; ++$c) { + $this->_writeChart($objWriter, $pWorksheet->getChartByIndex($c), $c+$i); + } + } + } + + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Write drawings to XML format + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Chart $pChart + * @param int $pRelationId + * @throws PHPExcel_Writer_Exception + */ + public function _writeChart(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Chart $pChart = null, $pRelationId = -1) + { + $tl = $pChart->getTopLeftPosition(); + $tl['colRow'] = PHPExcel_Cell::coordinateFromString($tl['cell']); + $br = $pChart->getBottomRightPosition(); + $br['colRow'] = PHPExcel_Cell::coordinateFromString($br['cell']); + + $objWriter->startElement('xdr:twoCellAnchor'); + + $objWriter->startElement('xdr:from'); + $objWriter->writeElement('xdr:col', PHPExcel_Cell::columnIndexFromString($tl['colRow'][0]) - 1); + $objWriter->writeElement('xdr:colOff', PHPExcel_Shared_Drawing::pixelsToEMU($tl['xOffset'])); + $objWriter->writeElement('xdr:row', $tl['colRow'][1] - 1); + $objWriter->writeElement('xdr:rowOff', PHPExcel_Shared_Drawing::pixelsToEMU($tl['yOffset'])); + $objWriter->endElement(); + $objWriter->startElement('xdr:to'); + $objWriter->writeElement('xdr:col', PHPExcel_Cell::columnIndexFromString($br['colRow'][0]) - 1); + $objWriter->writeElement('xdr:colOff', PHPExcel_Shared_Drawing::pixelsToEMU($br['xOffset'])); + $objWriter->writeElement('xdr:row', $br['colRow'][1] - 1); + $objWriter->writeElement('xdr:rowOff', PHPExcel_Shared_Drawing::pixelsToEMU($br['yOffset'])); + $objWriter->endElement(); + + $objWriter->startElement('xdr:graphicFrame'); + $objWriter->writeAttribute('macro', ''); + $objWriter->startElement('xdr:nvGraphicFramePr'); + $objWriter->startElement('xdr:cNvPr'); + $objWriter->writeAttribute('name', 'Chart '.$pRelationId); + $objWriter->writeAttribute('id', 1025 * $pRelationId); + $objWriter->endElement(); + $objWriter->startElement('xdr:cNvGraphicFramePr'); + $objWriter->startElement('a:graphicFrameLocks'); + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + + $objWriter->startElement('xdr:xfrm'); + $objWriter->startElement('a:off'); + $objWriter->writeAttribute('x', '0'); + $objWriter->writeAttribute('y', '0'); + $objWriter->endElement(); + $objWriter->startElement('a:ext'); + $objWriter->writeAttribute('cx', '0'); + $objWriter->writeAttribute('cy', '0'); + $objWriter->endElement(); + $objWriter->endElement(); + + $objWriter->startElement('a:graphic'); + $objWriter->startElement('a:graphicData'); + $objWriter->writeAttribute('uri', 'http://schemas.openxmlformats.org/drawingml/2006/chart'); + $objWriter->startElement('c:chart'); + $objWriter->writeAttribute('xmlns:c', 'http://schemas.openxmlformats.org/drawingml/2006/chart'); + $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'); + $objWriter->writeAttribute('r:id', 'rId'.$pRelationId); + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + + $objWriter->startElement('xdr:clientData'); + $objWriter->endElement(); + + $objWriter->endElement(); + } + + /** + * Write drawings to XML format + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet_BaseDrawing $pDrawing + * @param int $pRelationId + * @throws PHPExcel_Writer_Exception + */ + public function _writeDrawing(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet_BaseDrawing $pDrawing = null, $pRelationId = -1) + { + if ($pRelationId >= 0) { + // xdr:oneCellAnchor + $objWriter->startElement('xdr:oneCellAnchor'); + // Image location + $aCoordinates = PHPExcel_Cell::coordinateFromString($pDrawing->getCoordinates()); + $aCoordinates[0] = PHPExcel_Cell::columnIndexFromString($aCoordinates[0]); + + // xdr:from + $objWriter->startElement('xdr:from'); + $objWriter->writeElement('xdr:col', $aCoordinates[0] - 1); + $objWriter->writeElement('xdr:colOff', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getOffsetX())); + $objWriter->writeElement('xdr:row', $aCoordinates[1] - 1); + $objWriter->writeElement('xdr:rowOff', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getOffsetY())); + $objWriter->endElement(); + + // xdr:ext + $objWriter->startElement('xdr:ext'); + $objWriter->writeAttribute('cx', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getWidth())); + $objWriter->writeAttribute('cy', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getHeight())); + $objWriter->endElement(); + + // xdr:pic + $objWriter->startElement('xdr:pic'); + + // xdr:nvPicPr + $objWriter->startElement('xdr:nvPicPr'); + + // xdr:cNvPr + $objWriter->startElement('xdr:cNvPr'); + $objWriter->writeAttribute('id', $pRelationId); + $objWriter->writeAttribute('name', $pDrawing->getName()); + $objWriter->writeAttribute('descr', $pDrawing->getDescription()); + $objWriter->endElement(); + + // xdr:cNvPicPr + $objWriter->startElement('xdr:cNvPicPr'); + + // a:picLocks + $objWriter->startElement('a:picLocks'); + $objWriter->writeAttribute('noChangeAspect', '1'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // xdr:blipFill + $objWriter->startElement('xdr:blipFill'); + + // a:blip + $objWriter->startElement('a:blip'); + $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'); + $objWriter->writeAttribute('r:embed', 'rId' . $pRelationId); + $objWriter->endElement(); + + // a:stretch + $objWriter->startElement('a:stretch'); + $objWriter->writeElement('a:fillRect', null); + $objWriter->endElement(); + + $objWriter->endElement(); + + // xdr:spPr + $objWriter->startElement('xdr:spPr'); + + // a:xfrm + $objWriter->startElement('a:xfrm'); + $objWriter->writeAttribute('rot', PHPExcel_Shared_Drawing::degreesToAngle($pDrawing->getRotation())); + $objWriter->endElement(); + + // a:prstGeom + $objWriter->startElement('a:prstGeom'); + $objWriter->writeAttribute('prst', 'rect'); + + // a:avLst + $objWriter->writeElement('a:avLst', null); + + $objWriter->endElement(); + +// // a:solidFill +// $objWriter->startElement('a:solidFill'); + +// // a:srgbClr +// $objWriter->startElement('a:srgbClr'); +// $objWriter->writeAttribute('val', 'FFFFFF'); + +///* SHADE +// // a:shade +// $objWriter->startElement('a:shade'); +// $objWriter->writeAttribute('val', '85000'); +// $objWriter->endElement(); +//*/ + +// $objWriter->endElement(); + +// $objWriter->endElement(); +/* + // a:ln + $objWriter->startElement('a:ln'); + $objWriter->writeAttribute('w', '88900'); + $objWriter->writeAttribute('cap', 'sq'); + + // a:solidFill + $objWriter->startElement('a:solidFill'); + + // a:srgbClr + $objWriter->startElement('a:srgbClr'); + $objWriter->writeAttribute('val', 'FFFFFF'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:miter + $objWriter->startElement('a:miter'); + $objWriter->writeAttribute('lim', '800000'); + $objWriter->endElement(); + + $objWriter->endElement(); +*/ + + if ($pDrawing->getShadow()->getVisible()) { + // a:effectLst + $objWriter->startElement('a:effectLst'); + + // a:outerShdw + $objWriter->startElement('a:outerShdw'); + $objWriter->writeAttribute('blurRad', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getShadow()->getBlurRadius())); + $objWriter->writeAttribute('dist', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getShadow()->getDistance())); + $objWriter->writeAttribute('dir', PHPExcel_Shared_Drawing::degreesToAngle($pDrawing->getShadow()->getDirection())); + $objWriter->writeAttribute('algn', $pDrawing->getShadow()->getAlignment()); + $objWriter->writeAttribute('rotWithShape', '0'); + + // a:srgbClr + $objWriter->startElement('a:srgbClr'); + $objWriter->writeAttribute('val', $pDrawing->getShadow()->getColor()->getRGB()); + + // a:alpha + $objWriter->startElement('a:alpha'); + $objWriter->writeAttribute('val', $pDrawing->getShadow()->getAlpha() * 1000); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + } +/* + + // a:scene3d + $objWriter->startElement('a:scene3d'); + + // a:camera + $objWriter->startElement('a:camera'); + $objWriter->writeAttribute('prst', 'orthographicFront'); + $objWriter->endElement(); + + // a:lightRig + $objWriter->startElement('a:lightRig'); + $objWriter->writeAttribute('rig', 'twoPt'); + $objWriter->writeAttribute('dir', 't'); + + // a:rot + $objWriter->startElement('a:rot'); + $objWriter->writeAttribute('lat', '0'); + $objWriter->writeAttribute('lon', '0'); + $objWriter->writeAttribute('rev', '0'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); +*/ +/* + // a:sp3d + $objWriter->startElement('a:sp3d'); + + // a:bevelT + $objWriter->startElement('a:bevelT'); + $objWriter->writeAttribute('w', '25400'); + $objWriter->writeAttribute('h', '19050'); + $objWriter->endElement(); + + // a:contourClr + $objWriter->startElement('a:contourClr'); + + // a:srgbClr + $objWriter->startElement('a:srgbClr'); + $objWriter->writeAttribute('val', 'FFFFFF'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); +*/ + $objWriter->endElement(); + + $objWriter->endElement(); + + // xdr:clientData + $objWriter->writeElement('xdr:clientData', null); + + $objWriter->endElement(); + } else { + throw new PHPExcel_Writer_Exception("Invalid parameters passed."); + } + } + + /** + * Write VML header/footer images to XML format + * + * @param PHPExcel_Worksheet $pWorksheet + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeVMLHeaderFooterImages(PHPExcel_Worksheet $pWorksheet = null) + { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // Header/footer images + $images = $pWorksheet->getHeaderFooter()->getImages(); + + // xml + $objWriter->startElement('xml'); + $objWriter->writeAttribute('xmlns:v', 'urn:schemas-microsoft-com:vml'); + $objWriter->writeAttribute('xmlns:o', 'urn:schemas-microsoft-com:office:office'); + $objWriter->writeAttribute('xmlns:x', 'urn:schemas-microsoft-com:office:excel'); + + // o:shapelayout + $objWriter->startElement('o:shapelayout'); + $objWriter->writeAttribute('v:ext', 'edit'); + + // o:idmap + $objWriter->startElement('o:idmap'); + $objWriter->writeAttribute('v:ext', 'edit'); + $objWriter->writeAttribute('data', '1'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // v:shapetype + $objWriter->startElement('v:shapetype'); + $objWriter->writeAttribute('id', '_x0000_t75'); + $objWriter->writeAttribute('coordsize', '21600,21600'); + $objWriter->writeAttribute('o:spt', '75'); + $objWriter->writeAttribute('o:preferrelative', 't'); + $objWriter->writeAttribute('path', 'm@4@5l@4@11@9@11@9@5xe'); + $objWriter->writeAttribute('filled', 'f'); + $objWriter->writeAttribute('stroked', 'f'); + + // v:stroke + $objWriter->startElement('v:stroke'); + $objWriter->writeAttribute('joinstyle', 'miter'); + $objWriter->endElement(); + + // v:formulas + $objWriter->startElement('v:formulas'); + + // v:f + $objWriter->startElement('v:f'); + $objWriter->writeAttribute('eqn', 'if lineDrawn pixelLineWidth 0'); + $objWriter->endElement(); + + // v:f + $objWriter->startElement('v:f'); + $objWriter->writeAttribute('eqn', 'sum @0 1 0'); + $objWriter->endElement(); + + // v:f + $objWriter->startElement('v:f'); + $objWriter->writeAttribute('eqn', 'sum 0 0 @1'); + $objWriter->endElement(); + + // v:f + $objWriter->startElement('v:f'); + $objWriter->writeAttribute('eqn', 'prod @2 1 2'); + $objWriter->endElement(); + + // v:f + $objWriter->startElement('v:f'); + $objWriter->writeAttribute('eqn', 'prod @3 21600 pixelWidth'); + $objWriter->endElement(); + + // v:f + $objWriter->startElement('v:f'); + $objWriter->writeAttribute('eqn', 'prod @3 21600 pixelHeight'); + $objWriter->endElement(); + + // v:f + $objWriter->startElement('v:f'); + $objWriter->writeAttribute('eqn', 'sum @0 0 1'); + $objWriter->endElement(); + + // v:f + $objWriter->startElement('v:f'); + $objWriter->writeAttribute('eqn', 'prod @6 1 2'); + $objWriter->endElement(); + + // v:f + $objWriter->startElement('v:f'); + $objWriter->writeAttribute('eqn', 'prod @7 21600 pixelWidth'); + $objWriter->endElement(); + + // v:f + $objWriter->startElement('v:f'); + $objWriter->writeAttribute('eqn', 'sum @8 21600 0'); + $objWriter->endElement(); + + // v:f + $objWriter->startElement('v:f'); + $objWriter->writeAttribute('eqn', 'prod @7 21600 pixelHeight'); + $objWriter->endElement(); + + // v:f + $objWriter->startElement('v:f'); + $objWriter->writeAttribute('eqn', 'sum @10 21600 0'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // v:path + $objWriter->startElement('v:path'); + $objWriter->writeAttribute('o:extrusionok', 'f'); + $objWriter->writeAttribute('gradientshapeok', 't'); + $objWriter->writeAttribute('o:connecttype', 'rect'); + $objWriter->endElement(); + + // o:lock + $objWriter->startElement('o:lock'); + $objWriter->writeAttribute('v:ext', 'edit'); + $objWriter->writeAttribute('aspectratio', 't'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // Loop through images + foreach ($images as $key => $value) { + $this->_writeVMLHeaderFooterImage($objWriter, $key, $value); + } + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Write VML comment to XML format + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param string $pReference Reference + * @param PHPExcel_Worksheet_HeaderFooterDrawing $pImage Image + * @throws PHPExcel_Writer_Exception + */ + public function _writeVMLHeaderFooterImage(PHPExcel_Shared_XMLWriter $objWriter = null, $pReference = '', PHPExcel_Worksheet_HeaderFooterDrawing $pImage = null) + { + // Calculate object id + preg_match('{(\d+)}', md5($pReference), $m); + $id = 1500 + (substr($m[1], 0, 2) * 1); + + // Calculate offset + $width = $pImage->getWidth(); + $height = $pImage->getHeight(); + $marginLeft = $pImage->getOffsetX(); + $marginTop = $pImage->getOffsetY(); + + // v:shape + $objWriter->startElement('v:shape'); + $objWriter->writeAttribute('id', $pReference); + $objWriter->writeAttribute('o:spid', '_x0000_s' . $id); + $objWriter->writeAttribute('type', '#_x0000_t75'); + $objWriter->writeAttribute('style', "position:absolute;margin-left:{$marginLeft}px;margin-top:{$marginTop}px;width:{$width}px;height:{$height}px;z-index:1"); + + // v:imagedata + $objWriter->startElement('v:imagedata'); + $objWriter->writeAttribute('o:relid', 'rId' . $pReference); + $objWriter->writeAttribute('o:title', $pImage->getName()); + $objWriter->endElement(); + + // o:lock + $objWriter->startElement('o:lock'); + $objWriter->writeAttribute('v:ext', 'edit'); + $objWriter->writeAttribute('rotation', 't'); + $objWriter->endElement(); + + $objWriter->endElement(); + } + + + /** + * Get an array of all drawings + * + * @param PHPExcel $pPHPExcel + * @return PHPExcel_Worksheet_Drawing[] All drawings in PHPExcel + * @throws PHPExcel_Writer_Exception + */ + public function allDrawings(PHPExcel $pPHPExcel = null) + { + // Get an array of all drawings + $aDrawings = array(); + + // Loop through PHPExcel + $sheetCount = $pPHPExcel->getSheetCount(); + for ($i = 0; $i < $sheetCount; ++$i) { + // Loop through images and add to array + $iterator = $pPHPExcel->getSheet($i)->getDrawingCollection()->getIterator(); + while ($iterator->valid()) { + $aDrawings[] = $iterator->current(); + + $iterator->next(); + } + } + + return $aDrawings; + } +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007/Rels.php b/admin/helpers/PHPExcel/Writer/Excel2007/Rels.php new file mode 100644 index 00000000..a7d36c0a --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007/Rels.php @@ -0,0 +1,437 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel2007_Rels + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel2007_Rels extends PHPExcel_Writer_Excel2007_WriterPart +{ + /** + * Write relationships to XML format + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeRelationships(PHPExcel $pPHPExcel = null) + { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // Relationships + $objWriter->startElement('Relationships'); + $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships'); + + $customPropertyList = $pPHPExcel->getProperties()->getCustomProperties(); + if (!empty($customPropertyList)) { + // Relationship docProps/app.xml + $this->_writeRelationship( + $objWriter, + 4, + 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties', + 'docProps/custom.xml' + ); + + } + + // Relationship docProps/app.xml + $this->_writeRelationship( + $objWriter, + 3, + 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties', + 'docProps/app.xml' + ); + + // Relationship docProps/core.xml + $this->_writeRelationship( + $objWriter, + 2, + 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties', + 'docProps/core.xml' + ); + + // Relationship xl/workbook.xml + $this->_writeRelationship( + $objWriter, + 1, + 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument', + 'xl/workbook.xml' + ); + // a custom UI in workbook ? + if($pPHPExcel->hasRibbon()){ + $this->_writeRelationShip( + $objWriter, + 5, + 'http://schemas.microsoft.com/office/2006/relationships/ui/extensibility', + $pPHPExcel->getRibbonXMLData('target') + ); + } + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Write workbook relationships to XML format + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeWorkbookRelationships(PHPExcel $pPHPExcel = null) + { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // Relationships + $objWriter->startElement('Relationships'); + $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships'); + + // Relationship styles.xml + $this->_writeRelationship( + $objWriter, + 1, + 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles', + 'styles.xml' + ); + + // Relationship theme/theme1.xml + $this->_writeRelationship( + $objWriter, + 2, + 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme', + 'theme/theme1.xml' + ); + + // Relationship sharedStrings.xml + $this->_writeRelationship( + $objWriter, + 3, + 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings', + 'sharedStrings.xml' + ); + + // Relationships with sheets + $sheetCount = $pPHPExcel->getSheetCount(); + for ($i = 0; $i < $sheetCount; ++$i) { + $this->_writeRelationship( + $objWriter, + ($i + 1 + 3), + 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet', + 'worksheets/sheet' . ($i + 1) . '.xml' + ); + } + // Relationships for vbaProject if needed + // id : just after the last sheet + if($pPHPExcel->hasMacros()){ + $this->_writeRelationShip( + $objWriter, + ($i + 1 + 3), + 'http://schemas.microsoft.com/office/2006/relationships/vbaProject', + 'vbaProject.bin' + ); + ++$i;//increment i if needed for an another relation + } + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Write worksheet relationships to XML format + * + * Numbering is as follows: + * rId1 - Drawings + * rId_hyperlink_x - Hyperlinks + * + * @param PHPExcel_Worksheet $pWorksheet + * @param int $pWorksheetId + * @param boolean $includeCharts Flag indicating if we should write charts + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeWorksheetRelationships(PHPExcel_Worksheet $pWorksheet = null, $pWorksheetId = 1, $includeCharts = FALSE) + { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // Relationships + $objWriter->startElement('Relationships'); + $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships'); + + // Write drawing relationships? + $d = 0; + if ($includeCharts) { + $charts = $pWorksheet->getChartCollection(); + } else { + $charts = array(); + } + if (($pWorksheet->getDrawingCollection()->count() > 0) || + (count($charts) > 0)) { + $this->_writeRelationship( + $objWriter, + ++$d, + 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing', + '../drawings/drawing' . $pWorksheetId . '.xml' + ); + } + + // Write chart relationships? +// $chartCount = 0; +// $charts = $pWorksheet->getChartCollection(); +// echo 'Chart Rels: ' , count($charts) , '<br />'; +// if (count($charts) > 0) { +// foreach($charts as $chart) { +// $this->_writeRelationship( +// $objWriter, +// ++$d, +// 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart', +// '../charts/chart' . ++$chartCount . '.xml' +// ); +// } +// } +// + // Write hyperlink relationships? + $i = 1; + foreach ($pWorksheet->getHyperlinkCollection() as $hyperlink) { + if (!$hyperlink->isInternal()) { + $this->_writeRelationship( + $objWriter, + '_hyperlink_' . $i, + 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink', + $hyperlink->getUrl(), + 'External' + ); + + ++$i; + } + } + + // Write comments relationship? + $i = 1; + if (count($pWorksheet->getComments()) > 0) { + $this->_writeRelationship( + $objWriter, + '_comments_vml' . $i, + 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing', + '../drawings/vmlDrawing' . $pWorksheetId . '.vml' + ); + + $this->_writeRelationship( + $objWriter, + '_comments' . $i, + 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments', + '../comments' . $pWorksheetId . '.xml' + ); + } + + // Write header/footer relationship? + $i = 1; + if (count($pWorksheet->getHeaderFooter()->getImages()) > 0) { + $this->_writeRelationship( + $objWriter, + '_headerfooter_vml' . $i, + 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing', + '../drawings/vmlDrawingHF' . $pWorksheetId . '.vml' + ); + } + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Write drawing relationships to XML format + * + * @param PHPExcel_Worksheet $pWorksheet + * @param int &$chartRef Chart ID + * @param boolean $includeCharts Flag indicating if we should write charts + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeDrawingRelationships(PHPExcel_Worksheet $pWorksheet = null, &$chartRef, $includeCharts = FALSE) + { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // Relationships + $objWriter->startElement('Relationships'); + $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships'); + + // Loop through images and write relationships + $i = 1; + $iterator = $pWorksheet->getDrawingCollection()->getIterator(); + while ($iterator->valid()) { + if ($iterator->current() instanceof PHPExcel_Worksheet_Drawing + || $iterator->current() instanceof PHPExcel_Worksheet_MemoryDrawing) { + // Write relationship for image drawing + $this->_writeRelationship( + $objWriter, + $i, + 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image', + '../media/' . str_replace(' ', '', $iterator->current()->getIndexedFilename()) + ); + } + + $iterator->next(); + ++$i; + } + + if ($includeCharts) { + // Loop through charts and write relationships + $chartCount = $pWorksheet->getChartCount(); + if ($chartCount > 0) { + for ($c = 0; $c < $chartCount; ++$c) { + $this->_writeRelationship( + $objWriter, + $i++, + 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart', + '../charts/chart' . ++$chartRef . '.xml' + ); + } + } + } + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Write header/footer drawing relationships to XML format + * + * @param PHPExcel_Worksheet $pWorksheet + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeHeaderFooterDrawingRelationships(PHPExcel_Worksheet $pWorksheet = null) + { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // Relationships + $objWriter->startElement('Relationships'); + $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships'); + + // Loop through images and write relationships + foreach ($pWorksheet->getHeaderFooter()->getImages() as $key => $value) { + // Write relationship for image drawing + $this->_writeRelationship( + $objWriter, + $key, + 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image', + '../media/' . $value->getIndexedFilename() + ); + } + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Write Override content type + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param int $pId Relationship ID. rId will be prepended! + * @param string $pType Relationship type + * @param string $pTarget Relationship target + * @param string $pTargetMode Relationship target mode + * @throws PHPExcel_Writer_Exception + */ + private function _writeRelationship(PHPExcel_Shared_XMLWriter $objWriter = null, $pId = 1, $pType = '', $pTarget = '', $pTargetMode = '') + { + if ($pType != '' && $pTarget != '') { + // Write relationship + $objWriter->startElement('Relationship'); + $objWriter->writeAttribute('Id', 'rId' . $pId); + $objWriter->writeAttribute('Type', $pType); + $objWriter->writeAttribute('Target', $pTarget); + + if ($pTargetMode != '') { + $objWriter->writeAttribute('TargetMode', $pTargetMode); + } + + $objWriter->endElement(); + } else { + throw new PHPExcel_Writer_Exception("Invalid parameters passed."); + } + } +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007/RelsRibbon.php b/admin/helpers/PHPExcel/Writer/Excel2007/RelsRibbon.php new file mode 100644 index 00000000..615f2cbd --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007/RelsRibbon.php @@ -0,0 +1,77 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel2007_RelsRibbon + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel2007_RelsRibbon extends PHPExcel_Writer_Excel2007_WriterPart +{ + /** + * Write relationships for additional objects of custom UI (ribbon) + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeRibbonRelationships(PHPExcel $pPHPExcel = null){ + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // Relationships + $objWriter->startElement('Relationships'); + $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships'); + $localRels=$pPHPExcel->getRibbonBinObjects('names'); + if(is_array($localRels)){ + foreach($localRels as $aId=>$aTarget){ + $objWriter->startElement('Relationship'); + $objWriter->writeAttribute('Id', $aId); + $objWriter->writeAttribute('Type', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image'); + $objWriter->writeAttribute('Target', $aTarget); + $objWriter->endElement();//Relationship + } + } + $objWriter->endElement();//Relationships + + // Return + return $objWriter->getData(); + + } + +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007/RelsVBA.php b/admin/helpers/PHPExcel/Writer/Excel2007/RelsVBA.php new file mode 100644 index 00000000..3f87d81f --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007/RelsVBA.php @@ -0,0 +1,72 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel2007_RelsVBA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel2007_RelsVBA extends PHPExcel_Writer_Excel2007_WriterPart +{ + /** + * Write relationships for a signed VBA Project + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeVBARelationships(PHPExcel $pPHPExcel = null){ + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // Relationships + $objWriter->startElement('Relationships'); + $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships'); + $objWriter->startElement('Relationship'); + $objWriter->writeAttribute('Id', 'rId1'); + $objWriter->writeAttribute('Type', 'http://schemas.microsoft.com/office/2006/relationships/vbaProjectSignature'); + $objWriter->writeAttribute('Target', 'vbaProjectSignature.bin'); + $objWriter->endElement();//Relationship + $objWriter->endElement();//Relationships + + // Return + return $objWriter->getData(); + + } + +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007/StringTable.php b/admin/helpers/PHPExcel/Writer/Excel2007/StringTable.php new file mode 100644 index 00000000..e8ca1c5a --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007/StringTable.php @@ -0,0 +1,319 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel2007_StringTable + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel2007_StringTable extends PHPExcel_Writer_Excel2007_WriterPart +{ + /** + * Create worksheet stringtable + * + * @param PHPExcel_Worksheet $pSheet Worksheet + * @param string[] $pExistingTable Existing table to eventually merge with + * @return string[] String table for worksheet + * @throws PHPExcel_Writer_Exception + */ + public function createStringTable($pSheet = null, $pExistingTable = null) + { + if ($pSheet !== NULL) { + // Create string lookup table + $aStringTable = array(); + $cellCollection = null; + $aFlippedStringTable = null; // For faster lookup + + // Is an existing table given? + if (($pExistingTable !== NULL) && is_array($pExistingTable)) { + $aStringTable = $pExistingTable; + } + + // Fill index array + $aFlippedStringTable = $this->flipStringTable($aStringTable); + + // Loop through cells + foreach ($pSheet->getCellCollection() as $cellID) { + $cell = $pSheet->getCell($cellID); + $cellValue = $cell->getValue(); + if (!is_object($cellValue) && + ($cellValue !== NULL) && + $cellValue !== '' && + !isset($aFlippedStringTable[$cellValue]) && + ($cell->getDataType() == PHPExcel_Cell_DataType::TYPE_STRING || $cell->getDataType() == PHPExcel_Cell_DataType::TYPE_STRING2 || $cell->getDataType() == PHPExcel_Cell_DataType::TYPE_NULL)) { + $aStringTable[] = $cellValue; + $aFlippedStringTable[$cellValue] = true; + } elseif ($cellValue instanceof PHPExcel_RichText && + ($cellValue !== NULL) && + !isset($aFlippedStringTable[$cellValue->getHashCode()])) { + $aStringTable[] = $cellValue; + $aFlippedStringTable[$cellValue->getHashCode()] = true; + } + } + + // Return + return $aStringTable; + } else { + throw new PHPExcel_Writer_Exception("Invalid PHPExcel_Worksheet object passed."); + } + } + + /** + * Write string table to XML format + * + * @param string[] $pStringTable + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeStringTable($pStringTable = null) + { + if ($pStringTable !== NULL) { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // String table + $objWriter->startElement('sst'); + $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main'); + $objWriter->writeAttribute('uniqueCount', count($pStringTable)); + + // Loop through string table + foreach ($pStringTable as $textElement) { + $objWriter->startElement('si'); + + if (! $textElement instanceof PHPExcel_RichText) { + $textToWrite = PHPExcel_Shared_String::ControlCharacterPHP2OOXML( $textElement ); + $objWriter->startElement('t'); + if ($textToWrite !== trim($textToWrite)) { + $objWriter->writeAttribute('xml:space', 'preserve'); + } + $objWriter->writeRawData($textToWrite); + $objWriter->endElement(); + } else if ($textElement instanceof PHPExcel_RichText) { + $this->writeRichText($objWriter, $textElement); + } + + $objWriter->endElement(); + } + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } else { + throw new PHPExcel_Writer_Exception("Invalid string table array passed."); + } + } + + /** + * Write Rich Text + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_RichText $pRichText Rich text + * @param string $prefix Optional Namespace prefix + * @throws PHPExcel_Writer_Exception + */ + public function writeRichText(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_RichText $pRichText = null, $prefix=NULL) + { + if ($prefix !== NULL) + $prefix .= ':'; + // Loop through rich text elements + $elements = $pRichText->getRichTextElements(); + foreach ($elements as $element) { + // r + $objWriter->startElement($prefix.'r'); + + // rPr + if ($element instanceof PHPExcel_RichText_Run) { + // rPr + $objWriter->startElement($prefix.'rPr'); + + // rFont + $objWriter->startElement($prefix.'rFont'); + $objWriter->writeAttribute('val', $element->getFont()->getName()); + $objWriter->endElement(); + + // Bold + $objWriter->startElement($prefix.'b'); + $objWriter->writeAttribute('val', ($element->getFont()->getBold() ? 'true' : 'false')); + $objWriter->endElement(); + + // Italic + $objWriter->startElement($prefix.'i'); + $objWriter->writeAttribute('val', ($element->getFont()->getItalic() ? 'true' : 'false')); + $objWriter->endElement(); + + // Superscript / subscript + if ($element->getFont()->getSuperScript() || $element->getFont()->getSubScript()) { + $objWriter->startElement($prefix.'vertAlign'); + if ($element->getFont()->getSuperScript()) { + $objWriter->writeAttribute('val', 'superscript'); + } else if ($element->getFont()->getSubScript()) { + $objWriter->writeAttribute('val', 'subscript'); + } + $objWriter->endElement(); + } + + // Strikethrough + $objWriter->startElement($prefix.'strike'); + $objWriter->writeAttribute('val', ($element->getFont()->getStrikethrough() ? 'true' : 'false')); + $objWriter->endElement(); + + // Color + $objWriter->startElement($prefix.'color'); + $objWriter->writeAttribute('rgb', $element->getFont()->getColor()->getARGB()); + $objWriter->endElement(); + + // Size + $objWriter->startElement($prefix.'sz'); + $objWriter->writeAttribute('val', $element->getFont()->getSize()); + $objWriter->endElement(); + + // Underline + $objWriter->startElement($prefix.'u'); + $objWriter->writeAttribute('val', $element->getFont()->getUnderline()); + $objWriter->endElement(); + + $objWriter->endElement(); + } + + // t + $objWriter->startElement($prefix.'t'); + $objWriter->writeAttribute('xml:space', 'preserve'); + $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML( $element->getText() )); + $objWriter->endElement(); + + $objWriter->endElement(); + } + } + + /** + * Write Rich Text + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param string|PHPExcel_RichText $pRichText text string or Rich text + * @param string $prefix Optional Namespace prefix + * @throws PHPExcel_Writer_Exception + */ + public function writeRichTextForCharts(PHPExcel_Shared_XMLWriter $objWriter = null, $pRichText = null, $prefix=NULL) + { + if (!$pRichText instanceof PHPExcel_RichText) { + $textRun = $pRichText; + $pRichText = new PHPExcel_RichText(); + $pRichText->createTextRun($textRun); + } + + if ($prefix !== NULL) + $prefix .= ':'; + // Loop through rich text elements + $elements = $pRichText->getRichTextElements(); + foreach ($elements as $element) { + // r + $objWriter->startElement($prefix.'r'); + + // rPr + $objWriter->startElement($prefix.'rPr'); + + // Bold + $objWriter->writeAttribute('b', ($element->getFont()->getBold() ? 1 : 0)); + // Italic + $objWriter->writeAttribute('i', ($element->getFont()->getItalic() ? 1 : 0)); + // Underline + $underlineType = $element->getFont()->getUnderline(); + switch($underlineType) { + case 'single' : + $underlineType = 'sng'; + break; + case 'double' : + $underlineType = 'dbl'; + break; + } + $objWriter->writeAttribute('u', $underlineType); + // Strikethrough + $objWriter->writeAttribute('strike', ($element->getFont()->getStrikethrough() ? 'sngStrike' : 'noStrike')); + + // rFont + $objWriter->startElement($prefix.'latin'); + $objWriter->writeAttribute('typeface', $element->getFont()->getName()); + $objWriter->endElement(); + + // Superscript / subscript +// if ($element->getFont()->getSuperScript() || $element->getFont()->getSubScript()) { +// $objWriter->startElement($prefix.'vertAlign'); +// if ($element->getFont()->getSuperScript()) { +// $objWriter->writeAttribute('val', 'superscript'); +// } else if ($element->getFont()->getSubScript()) { +// $objWriter->writeAttribute('val', 'subscript'); +// } +// $objWriter->endElement(); +// } +// + $objWriter->endElement(); + + // t + $objWriter->startElement($prefix.'t'); +// $objWriter->writeAttribute('xml:space', 'preserve'); // Excel2010 accepts, Excel2007 complains + $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML( $element->getText() )); + $objWriter->endElement(); + + $objWriter->endElement(); + } + } + + /** + * Flip string table (for index searching) + * + * @param array $stringTable Stringtable + * @return array + */ + public function flipStringTable($stringTable = array()) { + // Return value + $returnValue = array(); + + // Loop through stringtable and add flipped items to $returnValue + foreach ($stringTable as $key => $value) { + if (! $value instanceof PHPExcel_RichText) { + $returnValue[$value] = $key; + } else if ($value instanceof PHPExcel_RichText) { + $returnValue[$value->getHashCode()] = $key; + } + } + + // Return + return $returnValue; + } +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007/Style.php b/admin/helpers/PHPExcel/Writer/Excel2007/Style.php new file mode 100644 index 00000000..d38c6eac --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007/Style.php @@ -0,0 +1,707 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel2007_Style + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel2007_Style extends PHPExcel_Writer_Excel2007_WriterPart +{ + /** + * Write styles to XML format + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeStyles(PHPExcel $pPHPExcel = null) + { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // styleSheet + $objWriter->startElement('styleSheet'); + $objWriter->writeAttribute('xml:space', 'preserve'); + $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main'); + + // numFmts + $objWriter->startElement('numFmts'); + $objWriter->writeAttribute('count', $this->getParentWriter()->getNumFmtHashTable()->count()); + + // numFmt + for ($i = 0; $i < $this->getParentWriter()->getNumFmtHashTable()->count(); ++$i) { + $this->_writeNumFmt($objWriter, $this->getParentWriter()->getNumFmtHashTable()->getByIndex($i), $i); + } + + $objWriter->endElement(); + + // fonts + $objWriter->startElement('fonts'); + $objWriter->writeAttribute('count', $this->getParentWriter()->getFontHashTable()->count()); + + // font + for ($i = 0; $i < $this->getParentWriter()->getFontHashTable()->count(); ++$i) { + $this->_writeFont($objWriter, $this->getParentWriter()->getFontHashTable()->getByIndex($i)); + } + + $objWriter->endElement(); + + // fills + $objWriter->startElement('fills'); + $objWriter->writeAttribute('count', $this->getParentWriter()->getFillHashTable()->count()); + + // fill + for ($i = 0; $i < $this->getParentWriter()->getFillHashTable()->count(); ++$i) { + $this->_writeFill($objWriter, $this->getParentWriter()->getFillHashTable()->getByIndex($i)); + } + + $objWriter->endElement(); + + // borders + $objWriter->startElement('borders'); + $objWriter->writeAttribute('count', $this->getParentWriter()->getBordersHashTable()->count()); + + // border + for ($i = 0; $i < $this->getParentWriter()->getBordersHashTable()->count(); ++$i) { + $this->_writeBorder($objWriter, $this->getParentWriter()->getBordersHashTable()->getByIndex($i)); + } + + $objWriter->endElement(); + + // cellStyleXfs + $objWriter->startElement('cellStyleXfs'); + $objWriter->writeAttribute('count', 1); + + // xf + $objWriter->startElement('xf'); + $objWriter->writeAttribute('numFmtId', 0); + $objWriter->writeAttribute('fontId', 0); + $objWriter->writeAttribute('fillId', 0); + $objWriter->writeAttribute('borderId', 0); + $objWriter->endElement(); + + $objWriter->endElement(); + + // cellXfs + $objWriter->startElement('cellXfs'); + $objWriter->writeAttribute('count', count($pPHPExcel->getCellXfCollection())); + + // xf + foreach ($pPHPExcel->getCellXfCollection() as $cellXf) { + $this->_writeCellStyleXf($objWriter, $cellXf, $pPHPExcel); + } + + $objWriter->endElement(); + + // cellStyles + $objWriter->startElement('cellStyles'); + $objWriter->writeAttribute('count', 1); + + // cellStyle + $objWriter->startElement('cellStyle'); + $objWriter->writeAttribute('name', 'Normal'); + $objWriter->writeAttribute('xfId', 0); + $objWriter->writeAttribute('builtinId', 0); + $objWriter->endElement(); + + $objWriter->endElement(); + + // dxfs + $objWriter->startElement('dxfs'); + $objWriter->writeAttribute('count', $this->getParentWriter()->getStylesConditionalHashTable()->count()); + + // dxf + for ($i = 0; $i < $this->getParentWriter()->getStylesConditionalHashTable()->count(); ++$i) { + $this->_writeCellStyleDxf($objWriter, $this->getParentWriter()->getStylesConditionalHashTable()->getByIndex($i)->getStyle()); + } + + $objWriter->endElement(); + + // tableStyles + $objWriter->startElement('tableStyles'); + $objWriter->writeAttribute('defaultTableStyle', 'TableStyleMedium9'); + $objWriter->writeAttribute('defaultPivotStyle', 'PivotTableStyle1'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Write Fill + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Style_Fill $pFill Fill style + * @throws PHPExcel_Writer_Exception + */ + private function _writeFill(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Fill $pFill = null) + { + // Check if this is a pattern type or gradient type + if ($pFill->getFillType() === PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR || + $pFill->getFillType() === PHPExcel_Style_Fill::FILL_GRADIENT_PATH) { + // Gradient fill + $this->_writeGradientFill($objWriter, $pFill); + } elseif($pFill->getFillType() !== NULL) { + // Pattern fill + $this->_writePatternFill($objWriter, $pFill); + } + } + + /** + * Write Gradient Fill + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Style_Fill $pFill Fill style + * @throws PHPExcel_Writer_Exception + */ + private function _writeGradientFill(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Fill $pFill = null) + { + // fill + $objWriter->startElement('fill'); + + // gradientFill + $objWriter->startElement('gradientFill'); + $objWriter->writeAttribute('type', $pFill->getFillType()); + $objWriter->writeAttribute('degree', $pFill->getRotation()); + + // stop + $objWriter->startElement('stop'); + $objWriter->writeAttribute('position', '0'); + + // color + $objWriter->startElement('color'); + $objWriter->writeAttribute('rgb', $pFill->getStartColor()->getARGB()); + $objWriter->endElement(); + + $objWriter->endElement(); + + // stop + $objWriter->startElement('stop'); + $objWriter->writeAttribute('position', '1'); + + // color + $objWriter->startElement('color'); + $objWriter->writeAttribute('rgb', $pFill->getEndColor()->getARGB()); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + } + + /** + * Write Pattern Fill + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Style_Fill $pFill Fill style + * @throws PHPExcel_Writer_Exception + */ + private function _writePatternFill(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Fill $pFill = null) + { + // fill + $objWriter->startElement('fill'); + + // patternFill + $objWriter->startElement('patternFill'); + $objWriter->writeAttribute('patternType', $pFill->getFillType()); + + if ($pFill->getFillType() !== PHPExcel_Style_Fill::FILL_NONE) { + // fgColor + if ($pFill->getStartColor()->getARGB()) { + $objWriter->startElement('fgColor'); + $objWriter->writeAttribute('rgb', $pFill->getStartColor()->getARGB()); + $objWriter->endElement(); + } + } + if ($pFill->getFillType() !== PHPExcel_Style_Fill::FILL_NONE) { + // bgColor + if ($pFill->getEndColor()->getARGB()) { + $objWriter->startElement('bgColor'); + $objWriter->writeAttribute('rgb', $pFill->getEndColor()->getARGB()); + $objWriter->endElement(); + } + } + + $objWriter->endElement(); + + $objWriter->endElement(); + } + + /** + * Write Font + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Style_Font $pFont Font style + * @throws PHPExcel_Writer_Exception + */ + private function _writeFont(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Font $pFont = null) + { + // font + $objWriter->startElement('font'); + // Weird! The order of these elements actually makes a difference when opening Excel2007 + // files in Excel2003 with the compatibility pack. It's not documented behaviour, + // and makes for a real WTF! + + // Bold. We explicitly write this element also when false (like MS Office Excel 2007 does + // for conditional formatting). Otherwise it will apparently not be picked up in conditional + // formatting style dialog + if ($pFont->getBold() !== NULL) { + $objWriter->startElement('b'); + $objWriter->writeAttribute('val', $pFont->getBold() ? '1' : '0'); + $objWriter->endElement(); + } + + // Italic + if ($pFont->getItalic() !== NULL) { + $objWriter->startElement('i'); + $objWriter->writeAttribute('val', $pFont->getItalic() ? '1' : '0'); + $objWriter->endElement(); + } + + // Strikethrough + if ($pFont->getStrikethrough() !== NULL) { + $objWriter->startElement('strike'); + $objWriter->writeAttribute('val', $pFont->getStrikethrough() ? '1' : '0'); + $objWriter->endElement(); + } + + // Underline + if ($pFont->getUnderline() !== NULL) { + $objWriter->startElement('u'); + $objWriter->writeAttribute('val', $pFont->getUnderline()); + $objWriter->endElement(); + } + + // Superscript / subscript + if ($pFont->getSuperScript() === TRUE || $pFont->getSubScript() === TRUE) { + $objWriter->startElement('vertAlign'); + if ($pFont->getSuperScript() === TRUE) { + $objWriter->writeAttribute('val', 'superscript'); + } else if ($pFont->getSubScript() === TRUE) { + $objWriter->writeAttribute('val', 'subscript'); + } + $objWriter->endElement(); + } + + // Size + if ($pFont->getSize() !== NULL) { + $objWriter->startElement('sz'); + $objWriter->writeAttribute('val', $pFont->getSize()); + $objWriter->endElement(); + } + + // Foreground color + if ($pFont->getColor()->getARGB() !== NULL) { + $objWriter->startElement('color'); + $objWriter->writeAttribute('rgb', $pFont->getColor()->getARGB()); + $objWriter->endElement(); + } + + // Name + if ($pFont->getName() !== NULL) { + $objWriter->startElement('name'); + $objWriter->writeAttribute('val', $pFont->getName()); + $objWriter->endElement(); + } + + $objWriter->endElement(); + } + + /** + * Write Border + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Style_Borders $pBorders Borders style + * @throws PHPExcel_Writer_Exception + */ + private function _writeBorder(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Borders $pBorders = null) + { + // Write border + $objWriter->startElement('border'); + // Diagonal? + switch ($pBorders->getDiagonalDirection()) { + case PHPExcel_Style_Borders::DIAGONAL_UP: + $objWriter->writeAttribute('diagonalUp', 'true'); + $objWriter->writeAttribute('diagonalDown', 'false'); + break; + case PHPExcel_Style_Borders::DIAGONAL_DOWN: + $objWriter->writeAttribute('diagonalUp', 'false'); + $objWriter->writeAttribute('diagonalDown', 'true'); + break; + case PHPExcel_Style_Borders::DIAGONAL_BOTH: + $objWriter->writeAttribute('diagonalUp', 'true'); + $objWriter->writeAttribute('diagonalDown', 'true'); + break; + } + + // BorderPr + $this->_writeBorderPr($objWriter, 'left', $pBorders->getLeft()); + $this->_writeBorderPr($objWriter, 'right', $pBorders->getRight()); + $this->_writeBorderPr($objWriter, 'top', $pBorders->getTop()); + $this->_writeBorderPr($objWriter, 'bottom', $pBorders->getBottom()); + $this->_writeBorderPr($objWriter, 'diagonal', $pBorders->getDiagonal()); + $objWriter->endElement(); + } + + /** + * Write Cell Style Xf + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Style $pStyle Style + * @param PHPExcel $pPHPExcel Workbook + * @throws PHPExcel_Writer_Exception + */ + private function _writeCellStyleXf(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style $pStyle = null, PHPExcel $pPHPExcel = null) + { + // xf + $objWriter->startElement('xf'); + $objWriter->writeAttribute('xfId', 0); + $objWriter->writeAttribute('fontId', (int)$this->getParentWriter()->getFontHashTable()->getIndexForHashCode($pStyle->getFont()->getHashCode())); + if ($pStyle->getQuotePrefix()) { + $objWriter->writeAttribute('quotePrefix', 1); + } + + if ($pStyle->getNumberFormat()->getBuiltInFormatCode() === false) { + $objWriter->writeAttribute('numFmtId', (int)($this->getParentWriter()->getNumFmtHashTable()->getIndexForHashCode($pStyle->getNumberFormat()->getHashCode()) + 164) ); + } else { + $objWriter->writeAttribute('numFmtId', (int)$pStyle->getNumberFormat()->getBuiltInFormatCode()); + } + + $objWriter->writeAttribute('fillId', (int)$this->getParentWriter()->getFillHashTable()->getIndexForHashCode($pStyle->getFill()->getHashCode())); + $objWriter->writeAttribute('borderId', (int)$this->getParentWriter()->getBordersHashTable()->getIndexForHashCode($pStyle->getBorders()->getHashCode())); + + // Apply styles? + $objWriter->writeAttribute('applyFont', ($pPHPExcel->getDefaultStyle()->getFont()->getHashCode() != $pStyle->getFont()->getHashCode()) ? '1' : '0'); + $objWriter->writeAttribute('applyNumberFormat', ($pPHPExcel->getDefaultStyle()->getNumberFormat()->getHashCode() != $pStyle->getNumberFormat()->getHashCode()) ? '1' : '0'); + $objWriter->writeAttribute('applyFill', ($pPHPExcel->getDefaultStyle()->getFill()->getHashCode() != $pStyle->getFill()->getHashCode()) ? '1' : '0'); + $objWriter->writeAttribute('applyBorder', ($pPHPExcel->getDefaultStyle()->getBorders()->getHashCode() != $pStyle->getBorders()->getHashCode()) ? '1' : '0'); + $objWriter->writeAttribute('applyAlignment', ($pPHPExcel->getDefaultStyle()->getAlignment()->getHashCode() != $pStyle->getAlignment()->getHashCode()) ? '1' : '0'); + if ($pStyle->getProtection()->getLocked() != PHPExcel_Style_Protection::PROTECTION_INHERIT || $pStyle->getProtection()->getHidden() != PHPExcel_Style_Protection::PROTECTION_INHERIT) { + $objWriter->writeAttribute('applyProtection', 'true'); + } + + // alignment + $objWriter->startElement('alignment'); + $objWriter->writeAttribute('horizontal', $pStyle->getAlignment()->getHorizontal()); + $objWriter->writeAttribute('vertical', $pStyle->getAlignment()->getVertical()); + + $textRotation = 0; + if ($pStyle->getAlignment()->getTextRotation() >= 0) { + $textRotation = $pStyle->getAlignment()->getTextRotation(); + } else if ($pStyle->getAlignment()->getTextRotation() < 0) { + $textRotation = 90 - $pStyle->getAlignment()->getTextRotation(); + } + $objWriter->writeAttribute('textRotation', $textRotation); + + $objWriter->writeAttribute('wrapText', ($pStyle->getAlignment()->getWrapText() ? 'true' : 'false')); + $objWriter->writeAttribute('shrinkToFit', ($pStyle->getAlignment()->getShrinkToFit() ? 'true' : 'false')); + + if ($pStyle->getAlignment()->getIndent() > 0) { + $objWriter->writeAttribute('indent', $pStyle->getAlignment()->getIndent()); + } + if ($pStyle->getAlignment()->getReadorder() > 0) { + $objWriter->writeAttribute('readingOrder', $pStyle->getAlignment()->getReadorder()); + } + $objWriter->endElement(); + + // protection + if ($pStyle->getProtection()->getLocked() != PHPExcel_Style_Protection::PROTECTION_INHERIT || $pStyle->getProtection()->getHidden() != PHPExcel_Style_Protection::PROTECTION_INHERIT) { + $objWriter->startElement('protection'); + if ($pStyle->getProtection()->getLocked() != PHPExcel_Style_Protection::PROTECTION_INHERIT) { + $objWriter->writeAttribute('locked', ($pStyle->getProtection()->getLocked() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false')); + } + if ($pStyle->getProtection()->getHidden() != PHPExcel_Style_Protection::PROTECTION_INHERIT) { + $objWriter->writeAttribute('hidden', ($pStyle->getProtection()->getHidden() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false')); + } + $objWriter->endElement(); + } + + $objWriter->endElement(); + } + + /** + * Write Cell Style Dxf + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Style $pStyle Style + * @throws PHPExcel_Writer_Exception + */ + private function _writeCellStyleDxf(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style $pStyle = null) + { + // dxf + $objWriter->startElement('dxf'); + + // font + $this->_writeFont($objWriter, $pStyle->getFont()); + + // numFmt + $this->_writeNumFmt($objWriter, $pStyle->getNumberFormat()); + + // fill + $this->_writeFill($objWriter, $pStyle->getFill()); + + // alignment + $objWriter->startElement('alignment'); + if ($pStyle->getAlignment()->getHorizontal() !== NULL) { + $objWriter->writeAttribute('horizontal', $pStyle->getAlignment()->getHorizontal()); + } + if ($pStyle->getAlignment()->getVertical() !== NULL) { + $objWriter->writeAttribute('vertical', $pStyle->getAlignment()->getVertical()); + } + + if ($pStyle->getAlignment()->getTextRotation() !== NULL) { + $textRotation = 0; + if ($pStyle->getAlignment()->getTextRotation() >= 0) { + $textRotation = $pStyle->getAlignment()->getTextRotation(); + } else if ($pStyle->getAlignment()->getTextRotation() < 0) { + $textRotation = 90 - $pStyle->getAlignment()->getTextRotation(); + } + $objWriter->writeAttribute('textRotation', $textRotation); + } + $objWriter->endElement(); + + // border + $this->_writeBorder($objWriter, $pStyle->getBorders()); + + // protection + if (($pStyle->getProtection()->getLocked() !== NULL) || + ($pStyle->getProtection()->getHidden() !== NULL)) { + if ($pStyle->getProtection()->getLocked() !== PHPExcel_Style_Protection::PROTECTION_INHERIT || + $pStyle->getProtection()->getHidden() !== PHPExcel_Style_Protection::PROTECTION_INHERIT) { + $objWriter->startElement('protection'); + if (($pStyle->getProtection()->getLocked() !== NULL) && + ($pStyle->getProtection()->getLocked() !== PHPExcel_Style_Protection::PROTECTION_INHERIT)) { + $objWriter->writeAttribute('locked', ($pStyle->getProtection()->getLocked() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false')); + } + if (($pStyle->getProtection()->getHidden() !== NULL) && + ($pStyle->getProtection()->getHidden() !== PHPExcel_Style_Protection::PROTECTION_INHERIT)) { + $objWriter->writeAttribute('hidden', ($pStyle->getProtection()->getHidden() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false')); + } + $objWriter->endElement(); + } + } + + $objWriter->endElement(); + } + + /** + * Write BorderPr + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param string $pName Element name + * @param PHPExcel_Style_Border $pBorder Border style + * @throws PHPExcel_Writer_Exception + */ + private function _writeBorderPr(PHPExcel_Shared_XMLWriter $objWriter = null, $pName = 'left', PHPExcel_Style_Border $pBorder = null) + { + // Write BorderPr + if ($pBorder->getBorderStyle() != PHPExcel_Style_Border::BORDER_NONE) { + $objWriter->startElement($pName); + $objWriter->writeAttribute('style', $pBorder->getBorderStyle()); + + // color + $objWriter->startElement('color'); + $objWriter->writeAttribute('rgb', $pBorder->getColor()->getARGB()); + $objWriter->endElement(); + + $objWriter->endElement(); + } + } + + /** + * Write NumberFormat + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Style_NumberFormat $pNumberFormat Number Format + * @param int $pId Number Format identifier + * @throws PHPExcel_Writer_Exception + */ + private function _writeNumFmt(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_NumberFormat $pNumberFormat = null, $pId = 0) + { + // Translate formatcode + $formatCode = $pNumberFormat->getFormatCode(); + + // numFmt + if ($formatCode !== NULL) { + $objWriter->startElement('numFmt'); + $objWriter->writeAttribute('numFmtId', ($pId + 164)); + $objWriter->writeAttribute('formatCode', $formatCode); + $objWriter->endElement(); + } + } + + /** + * Get an array of all styles + * + * @param PHPExcel $pPHPExcel + * @return PHPExcel_Style[] All styles in PHPExcel + * @throws PHPExcel_Writer_Exception + */ + public function allStyles(PHPExcel $pPHPExcel = null) + { + $aStyles = $pPHPExcel->getCellXfCollection(); + + return $aStyles; + } + + /** + * Get an array of all conditional styles + * + * @param PHPExcel $pPHPExcel + * @return PHPExcel_Style_Conditional[] All conditional styles in PHPExcel + * @throws PHPExcel_Writer_Exception + */ + public function allConditionalStyles(PHPExcel $pPHPExcel = null) + { + // Get an array of all styles + $aStyles = array(); + + $sheetCount = $pPHPExcel->getSheetCount(); + for ($i = 0; $i < $sheetCount; ++$i) { + foreach ($pPHPExcel->getSheet($i)->getConditionalStylesCollection() as $conditionalStyles) { + foreach ($conditionalStyles as $conditionalStyle) { + $aStyles[] = $conditionalStyle; + } + } + } + + return $aStyles; + } + + /** + * Get an array of all fills + * + * @param PHPExcel $pPHPExcel + * @return PHPExcel_Style_Fill[] All fills in PHPExcel + * @throws PHPExcel_Writer_Exception + */ + public function allFills(PHPExcel $pPHPExcel = null) + { + // Get an array of unique fills + $aFills = array(); + + // Two first fills are predefined + $fill0 = new PHPExcel_Style_Fill(); + $fill0->setFillType(PHPExcel_Style_Fill::FILL_NONE); + $aFills[] = $fill0; + + $fill1 = new PHPExcel_Style_Fill(); + $fill1->setFillType(PHPExcel_Style_Fill::FILL_PATTERN_GRAY125); + $aFills[] = $fill1; + // The remaining fills + $aStyles = $this->allStyles($pPHPExcel); + foreach ($aStyles as $style) { + if (!array_key_exists($style->getFill()->getHashCode(), $aFills)) { + $aFills[ $style->getFill()->getHashCode() ] = $style->getFill(); + } + } + + return $aFills; + } + + /** + * Get an array of all fonts + * + * @param PHPExcel $pPHPExcel + * @return PHPExcel_Style_Font[] All fonts in PHPExcel + * @throws PHPExcel_Writer_Exception + */ + public function allFonts(PHPExcel $pPHPExcel = null) + { + // Get an array of unique fonts + $aFonts = array(); + $aStyles = $this->allStyles($pPHPExcel); + + foreach ($aStyles as $style) { + if (!array_key_exists($style->getFont()->getHashCode(), $aFonts)) { + $aFonts[ $style->getFont()->getHashCode() ] = $style->getFont(); + } + } + + return $aFonts; + } + + /** + * Get an array of all borders + * + * @param PHPExcel $pPHPExcel + * @return PHPExcel_Style_Borders[] All borders in PHPExcel + * @throws PHPExcel_Writer_Exception + */ + public function allBorders(PHPExcel $pPHPExcel = null) + { + // Get an array of unique borders + $aBorders = array(); + $aStyles = $this->allStyles($pPHPExcel); + + foreach ($aStyles as $style) { + if (!array_key_exists($style->getBorders()->getHashCode(), $aBorders)) { + $aBorders[ $style->getBorders()->getHashCode() ] = $style->getBorders(); + } + } + + return $aBorders; + } + + /** + * Get an array of all number formats + * + * @param PHPExcel $pPHPExcel + * @return PHPExcel_Style_NumberFormat[] All number formats in PHPExcel + * @throws PHPExcel_Writer_Exception + */ + public function allNumberFormats(PHPExcel $pPHPExcel = null) + { + // Get an array of unique number formats + $aNumFmts = array(); + $aStyles = $this->allStyles($pPHPExcel); + + foreach ($aStyles as $style) { + if ($style->getNumberFormat()->getBuiltInFormatCode() === false && !array_key_exists($style->getNumberFormat()->getHashCode(), $aNumFmts)) { + $aNumFmts[ $style->getNumberFormat()->getHashCode() ] = $style->getNumberFormat(); + } + } + + return $aNumFmts; + } +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007/Theme.php b/admin/helpers/PHPExcel/Writer/Excel2007/Theme.php new file mode 100644 index 00000000..c67b9481 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007/Theme.php @@ -0,0 +1,871 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel2007_Theme + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel2007_Theme extends PHPExcel_Writer_Excel2007_WriterPart +{ + /** + * Map of Major fonts to write + * @static array of string + * + */ + private static $_majorFonts = array( + 'Jpan' => 'MS Pゴシック', + 'Hang' => '맑은 고딕', + 'Hans' => '宋体', + 'Hant' => '新細明體', + 'Arab' => 'Times New Roman', + 'Hebr' => 'Times New Roman', + 'Thai' => 'Tahoma', + 'Ethi' => 'Nyala', + 'Beng' => 'Vrinda', + 'Gujr' => 'Shruti', + 'Khmr' => 'MoolBoran', + 'Knda' => 'Tunga', + 'Guru' => 'Raavi', + 'Cans' => 'Euphemia', + 'Cher' => 'Plantagenet Cherokee', + 'Yiii' => 'Microsoft Yi Baiti', + 'Tibt' => 'Microsoft Himalaya', + 'Thaa' => 'MV Boli', + 'Deva' => 'Mangal', + 'Telu' => 'Gautami', + 'Taml' => 'Latha', + 'Syrc' => 'Estrangelo Edessa', + 'Orya' => 'Kalinga', + 'Mlym' => 'Kartika', + 'Laoo' => 'DokChampa', + 'Sinh' => 'Iskoola Pota', + 'Mong' => 'Mongolian Baiti', + 'Viet' => 'Times New Roman', + 'Uigh' => 'Microsoft Uighur', + 'Geor' => 'Sylfaen', + ); + + /** + * Map of Minor fonts to write + * @static array of string + * + */ + private static $_minorFonts = array( + 'Jpan' => 'MS Pゴシック', + 'Hang' => '맑은 고딕', + 'Hans' => '宋体', + 'Hant' => '新細明體', + 'Arab' => 'Arial', + 'Hebr' => 'Arial', + 'Thai' => 'Tahoma', + 'Ethi' => 'Nyala', + 'Beng' => 'Vrinda', + 'Gujr' => 'Shruti', + 'Khmr' => 'DaunPenh', + 'Knda' => 'Tunga', + 'Guru' => 'Raavi', + 'Cans' => 'Euphemia', + 'Cher' => 'Plantagenet Cherokee', + 'Yiii' => 'Microsoft Yi Baiti', + 'Tibt' => 'Microsoft Himalaya', + 'Thaa' => 'MV Boli', + 'Deva' => 'Mangal', + 'Telu' => 'Gautami', + 'Taml' => 'Latha', + 'Syrc' => 'Estrangelo Edessa', + 'Orya' => 'Kalinga', + 'Mlym' => 'Kartika', + 'Laoo' => 'DokChampa', + 'Sinh' => 'Iskoola Pota', + 'Mong' => 'Mongolian Baiti', + 'Viet' => 'Arial', + 'Uigh' => 'Microsoft Uighur', + 'Geor' => 'Sylfaen', + ); + + /** + * Map of core colours + * @static array of string + * + */ + private static $_colourScheme = array( + 'dk2' => '1F497D', + 'lt2' => 'EEECE1', + 'accent1' => '4F81BD', + 'accent2' => 'C0504D', + 'accent3' => '9BBB59', + 'accent4' => '8064A2', + 'accent5' => '4BACC6', + 'accent6' => 'F79646', + 'hlink' => '0000FF', + 'folHlink' => '800080', + ); + + /** + * Write theme to XML format + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeTheme(PHPExcel $pPHPExcel = null) + { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // a:theme + $objWriter->startElement('a:theme'); + $objWriter->writeAttribute('xmlns:a', 'http://schemas.openxmlformats.org/drawingml/2006/main'); + $objWriter->writeAttribute('name', 'Office Theme'); + + // a:themeElements + $objWriter->startElement('a:themeElements'); + + // a:clrScheme + $objWriter->startElement('a:clrScheme'); + $objWriter->writeAttribute('name', 'Office'); + + // a:dk1 + $objWriter->startElement('a:dk1'); + + // a:sysClr + $objWriter->startElement('a:sysClr'); + $objWriter->writeAttribute('val', 'windowText'); + $objWriter->writeAttribute('lastClr', '000000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:lt1 + $objWriter->startElement('a:lt1'); + + // a:sysClr + $objWriter->startElement('a:sysClr'); + $objWriter->writeAttribute('val', 'window'); + $objWriter->writeAttribute('lastClr', 'FFFFFF'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:dk2 + $this->_writeColourScheme($objWriter); + + $objWriter->endElement(); + + // a:fontScheme + $objWriter->startElement('a:fontScheme'); + $objWriter->writeAttribute('name', 'Office'); + + // a:majorFont + $objWriter->startElement('a:majorFont'); + $this->_writeFonts($objWriter, 'Cambria', self::$_majorFonts); + $objWriter->endElement(); + + // a:minorFont + $objWriter->startElement('a:minorFont'); + $this->_writeFonts($objWriter, 'Calibri', self::$_minorFonts); + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:fmtScheme + $objWriter->startElement('a:fmtScheme'); + $objWriter->writeAttribute('name', 'Office'); + + // a:fillStyleLst + $objWriter->startElement('a:fillStyleLst'); + + // a:solidFill + $objWriter->startElement('a:solidFill'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:gradFill + $objWriter->startElement('a:gradFill'); + $objWriter->writeAttribute('rotWithShape', '1'); + + // a:gsLst + $objWriter->startElement('a:gsLst'); + + // a:gs + $objWriter->startElement('a:gs'); + $objWriter->writeAttribute('pos', '0'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + + // a:tint + $objWriter->startElement('a:tint'); + $objWriter->writeAttribute('val', '50000'); + $objWriter->endElement(); + + // a:satMod + $objWriter->startElement('a:satMod'); + $objWriter->writeAttribute('val', '300000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:gs + $objWriter->startElement('a:gs'); + $objWriter->writeAttribute('pos', '35000'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + + // a:tint + $objWriter->startElement('a:tint'); + $objWriter->writeAttribute('val', '37000'); + $objWriter->endElement(); + + // a:satMod + $objWriter->startElement('a:satMod'); + $objWriter->writeAttribute('val', '300000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:gs + $objWriter->startElement('a:gs'); + $objWriter->writeAttribute('pos', '100000'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + + // a:tint + $objWriter->startElement('a:tint'); + $objWriter->writeAttribute('val', '15000'); + $objWriter->endElement(); + + // a:satMod + $objWriter->startElement('a:satMod'); + $objWriter->writeAttribute('val', '350000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:lin + $objWriter->startElement('a:lin'); + $objWriter->writeAttribute('ang', '16200000'); + $objWriter->writeAttribute('scaled', '1'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:gradFill + $objWriter->startElement('a:gradFill'); + $objWriter->writeAttribute('rotWithShape', '1'); + + // a:gsLst + $objWriter->startElement('a:gsLst'); + + // a:gs + $objWriter->startElement('a:gs'); + $objWriter->writeAttribute('pos', '0'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + + // a:shade + $objWriter->startElement('a:shade'); + $objWriter->writeAttribute('val', '51000'); + $objWriter->endElement(); + + // a:satMod + $objWriter->startElement('a:satMod'); + $objWriter->writeAttribute('val', '130000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:gs + $objWriter->startElement('a:gs'); + $objWriter->writeAttribute('pos', '80000'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + + // a:shade + $objWriter->startElement('a:shade'); + $objWriter->writeAttribute('val', '93000'); + $objWriter->endElement(); + + // a:satMod + $objWriter->startElement('a:satMod'); + $objWriter->writeAttribute('val', '130000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:gs + $objWriter->startElement('a:gs'); + $objWriter->writeAttribute('pos', '100000'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + + // a:shade + $objWriter->startElement('a:shade'); + $objWriter->writeAttribute('val', '94000'); + $objWriter->endElement(); + + // a:satMod + $objWriter->startElement('a:satMod'); + $objWriter->writeAttribute('val', '135000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:lin + $objWriter->startElement('a:lin'); + $objWriter->writeAttribute('ang', '16200000'); + $objWriter->writeAttribute('scaled', '0'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:lnStyleLst + $objWriter->startElement('a:lnStyleLst'); + + // a:ln + $objWriter->startElement('a:ln'); + $objWriter->writeAttribute('w', '9525'); + $objWriter->writeAttribute('cap', 'flat'); + $objWriter->writeAttribute('cmpd', 'sng'); + $objWriter->writeAttribute('algn', 'ctr'); + + // a:solidFill + $objWriter->startElement('a:solidFill'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + + // a:shade + $objWriter->startElement('a:shade'); + $objWriter->writeAttribute('val', '95000'); + $objWriter->endElement(); + + // a:satMod + $objWriter->startElement('a:satMod'); + $objWriter->writeAttribute('val', '105000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:prstDash + $objWriter->startElement('a:prstDash'); + $objWriter->writeAttribute('val', 'solid'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:ln + $objWriter->startElement('a:ln'); + $objWriter->writeAttribute('w', '25400'); + $objWriter->writeAttribute('cap', 'flat'); + $objWriter->writeAttribute('cmpd', 'sng'); + $objWriter->writeAttribute('algn', 'ctr'); + + // a:solidFill + $objWriter->startElement('a:solidFill'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:prstDash + $objWriter->startElement('a:prstDash'); + $objWriter->writeAttribute('val', 'solid'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:ln + $objWriter->startElement('a:ln'); + $objWriter->writeAttribute('w', '38100'); + $objWriter->writeAttribute('cap', 'flat'); + $objWriter->writeAttribute('cmpd', 'sng'); + $objWriter->writeAttribute('algn', 'ctr'); + + // a:solidFill + $objWriter->startElement('a:solidFill'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:prstDash + $objWriter->startElement('a:prstDash'); + $objWriter->writeAttribute('val', 'solid'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + + + // a:effectStyleLst + $objWriter->startElement('a:effectStyleLst'); + + // a:effectStyle + $objWriter->startElement('a:effectStyle'); + + // a:effectLst + $objWriter->startElement('a:effectLst'); + + // a:outerShdw + $objWriter->startElement('a:outerShdw'); + $objWriter->writeAttribute('blurRad', '40000'); + $objWriter->writeAttribute('dist', '20000'); + $objWriter->writeAttribute('dir', '5400000'); + $objWriter->writeAttribute('rotWithShape', '0'); + + // a:srgbClr + $objWriter->startElement('a:srgbClr'); + $objWriter->writeAttribute('val', '000000'); + + // a:alpha + $objWriter->startElement('a:alpha'); + $objWriter->writeAttribute('val', '38000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:effectStyle + $objWriter->startElement('a:effectStyle'); + + // a:effectLst + $objWriter->startElement('a:effectLst'); + + // a:outerShdw + $objWriter->startElement('a:outerShdw'); + $objWriter->writeAttribute('blurRad', '40000'); + $objWriter->writeAttribute('dist', '23000'); + $objWriter->writeAttribute('dir', '5400000'); + $objWriter->writeAttribute('rotWithShape', '0'); + + // a:srgbClr + $objWriter->startElement('a:srgbClr'); + $objWriter->writeAttribute('val', '000000'); + + // a:alpha + $objWriter->startElement('a:alpha'); + $objWriter->writeAttribute('val', '35000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:effectStyle + $objWriter->startElement('a:effectStyle'); + + // a:effectLst + $objWriter->startElement('a:effectLst'); + + // a:outerShdw + $objWriter->startElement('a:outerShdw'); + $objWriter->writeAttribute('blurRad', '40000'); + $objWriter->writeAttribute('dist', '23000'); + $objWriter->writeAttribute('dir', '5400000'); + $objWriter->writeAttribute('rotWithShape', '0'); + + // a:srgbClr + $objWriter->startElement('a:srgbClr'); + $objWriter->writeAttribute('val', '000000'); + + // a:alpha + $objWriter->startElement('a:alpha'); + $objWriter->writeAttribute('val', '35000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:scene3d + $objWriter->startElement('a:scene3d'); + + // a:camera + $objWriter->startElement('a:camera'); + $objWriter->writeAttribute('prst', 'orthographicFront'); + + // a:rot + $objWriter->startElement('a:rot'); + $objWriter->writeAttribute('lat', '0'); + $objWriter->writeAttribute('lon', '0'); + $objWriter->writeAttribute('rev', '0'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:lightRig + $objWriter->startElement('a:lightRig'); + $objWriter->writeAttribute('rig', 'threePt'); + $objWriter->writeAttribute('dir', 't'); + + // a:rot + $objWriter->startElement('a:rot'); + $objWriter->writeAttribute('lat', '0'); + $objWriter->writeAttribute('lon', '0'); + $objWriter->writeAttribute('rev', '1200000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:sp3d + $objWriter->startElement('a:sp3d'); + + // a:bevelT + $objWriter->startElement('a:bevelT'); + $objWriter->writeAttribute('w', '63500'); + $objWriter->writeAttribute('h', '25400'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:bgFillStyleLst + $objWriter->startElement('a:bgFillStyleLst'); + + // a:solidFill + $objWriter->startElement('a:solidFill'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:gradFill + $objWriter->startElement('a:gradFill'); + $objWriter->writeAttribute('rotWithShape', '1'); + + // a:gsLst + $objWriter->startElement('a:gsLst'); + + // a:gs + $objWriter->startElement('a:gs'); + $objWriter->writeAttribute('pos', '0'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + + // a:tint + $objWriter->startElement('a:tint'); + $objWriter->writeAttribute('val', '40000'); + $objWriter->endElement(); + + // a:satMod + $objWriter->startElement('a:satMod'); + $objWriter->writeAttribute('val', '350000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:gs + $objWriter->startElement('a:gs'); + $objWriter->writeAttribute('pos', '40000'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + + // a:tint + $objWriter->startElement('a:tint'); + $objWriter->writeAttribute('val', '45000'); + $objWriter->endElement(); + + // a:shade + $objWriter->startElement('a:shade'); + $objWriter->writeAttribute('val', '99000'); + $objWriter->endElement(); + + // a:satMod + $objWriter->startElement('a:satMod'); + $objWriter->writeAttribute('val', '350000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:gs + $objWriter->startElement('a:gs'); + $objWriter->writeAttribute('pos', '100000'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + + // a:shade + $objWriter->startElement('a:shade'); + $objWriter->writeAttribute('val', '20000'); + $objWriter->endElement(); + + // a:satMod + $objWriter->startElement('a:satMod'); + $objWriter->writeAttribute('val', '255000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:path + $objWriter->startElement('a:path'); + $objWriter->writeAttribute('path', 'circle'); + + // a:fillToRect + $objWriter->startElement('a:fillToRect'); + $objWriter->writeAttribute('l', '50000'); + $objWriter->writeAttribute('t', '-80000'); + $objWriter->writeAttribute('r', '50000'); + $objWriter->writeAttribute('b', '180000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:gradFill + $objWriter->startElement('a:gradFill'); + $objWriter->writeAttribute('rotWithShape', '1'); + + // a:gsLst + $objWriter->startElement('a:gsLst'); + + // a:gs + $objWriter->startElement('a:gs'); + $objWriter->writeAttribute('pos', '0'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + + // a:tint + $objWriter->startElement('a:tint'); + $objWriter->writeAttribute('val', '80000'); + $objWriter->endElement(); + + // a:satMod + $objWriter->startElement('a:satMod'); + $objWriter->writeAttribute('val', '300000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:gs + $objWriter->startElement('a:gs'); + $objWriter->writeAttribute('pos', '100000'); + + // a:schemeClr + $objWriter->startElement('a:schemeClr'); + $objWriter->writeAttribute('val', 'phClr'); + + // a:shade + $objWriter->startElement('a:shade'); + $objWriter->writeAttribute('val', '30000'); + $objWriter->endElement(); + + // a:satMod + $objWriter->startElement('a:satMod'); + $objWriter->writeAttribute('val', '200000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:path + $objWriter->startElement('a:path'); + $objWriter->writeAttribute('path', 'circle'); + + // a:fillToRect + $objWriter->startElement('a:fillToRect'); + $objWriter->writeAttribute('l', '50000'); + $objWriter->writeAttribute('t', '50000'); + $objWriter->writeAttribute('r', '50000'); + $objWriter->writeAttribute('b', '50000'); + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + $objWriter->endElement(); + + // a:objectDefaults + $objWriter->writeElement('a:objectDefaults', null); + + // a:extraClrSchemeLst + $objWriter->writeElement('a:extraClrSchemeLst', null); + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Write fonts to XML format + * + * @param PHPExcel_Shared_XMLWriter $objWriter + * @param string $latinFont + * @param array of string $fontSet + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + private function _writeFonts($objWriter, $latinFont, $fontSet) + { + // a:latin + $objWriter->startElement('a:latin'); + $objWriter->writeAttribute('typeface', $latinFont); + $objWriter->endElement(); + + // a:ea + $objWriter->startElement('a:ea'); + $objWriter->writeAttribute('typeface', ''); + $objWriter->endElement(); + + // a:cs + $objWriter->startElement('a:cs'); + $objWriter->writeAttribute('typeface', ''); + $objWriter->endElement(); + + foreach($fontSet as $fontScript => $typeface) { + $objWriter->startElement('a:font'); + $objWriter->writeAttribute('script', $fontScript); + $objWriter->writeAttribute('typeface', $typeface); + $objWriter->endElement(); + } + + } + + /** + * Write colour scheme to XML format + * + * @param PHPExcel_Shared_XMLWriter $objWriter + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + private function _writeColourScheme($objWriter) + { + foreach(self::$_colourScheme as $colourName => $colourValue) { + $objWriter->startElement('a:'.$colourName); + + $objWriter->startElement('a:srgbClr'); + $objWriter->writeAttribute('val', $colourValue); + $objWriter->endElement(); + + $objWriter->endElement(); + } + + } +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007/Workbook.php b/admin/helpers/PHPExcel/Writer/Excel2007/Workbook.php new file mode 100644 index 00000000..f3092947 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007/Workbook.php @@ -0,0 +1,456 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel2007_Workbook + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel2007_Workbook extends PHPExcel_Writer_Excel2007_WriterPart +{ + /** + * Write workbook to XML format + * + * @param PHPExcel $pPHPExcel + * @param boolean $recalcRequired Indicate whether formulas should be recalculated before writing + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeWorkbook(PHPExcel $pPHPExcel = null, $recalcRequired = FALSE) + { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // workbook + $objWriter->startElement('workbook'); + $objWriter->writeAttribute('xml:space', 'preserve'); + $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main'); + $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'); + + // fileVersion + $this->_writeFileVersion($objWriter); + + // workbookPr + $this->_writeWorkbookPr($objWriter); + + // workbookProtection + $this->_writeWorkbookProtection($objWriter, $pPHPExcel); + + // bookViews + if ($this->getParentWriter()->getOffice2003Compatibility() === false) { + $this->_writeBookViews($objWriter, $pPHPExcel); + } + + // sheets + $this->_writeSheets($objWriter, $pPHPExcel); + + // definedNames + $this->_writeDefinedNames($objWriter, $pPHPExcel); + + // calcPr + $this->_writeCalcPr($objWriter,$recalcRequired); + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } + + /** + * Write file version + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @throws PHPExcel_Writer_Exception + */ + private function _writeFileVersion(PHPExcel_Shared_XMLWriter $objWriter = null) + { + $objWriter->startElement('fileVersion'); + $objWriter->writeAttribute('appName', 'xl'); + $objWriter->writeAttribute('lastEdited', '4'); + $objWriter->writeAttribute('lowestEdited', '4'); + $objWriter->writeAttribute('rupBuild', '4505'); + $objWriter->endElement(); + } + + /** + * Write WorkbookPr + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @throws PHPExcel_Writer_Exception + */ + private function _writeWorkbookPr(PHPExcel_Shared_XMLWriter $objWriter = null) + { + $objWriter->startElement('workbookPr'); + + if (PHPExcel_Shared_Date::getExcelCalendar() == PHPExcel_Shared_Date::CALENDAR_MAC_1904) { + $objWriter->writeAttribute('date1904', '1'); + } + + $objWriter->writeAttribute('codeName', 'ThisWorkbook'); + + $objWriter->endElement(); + } + + /** + * Write BookViews + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel $pPHPExcel + * @throws PHPExcel_Writer_Exception + */ + private function _writeBookViews(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null) + { + // bookViews + $objWriter->startElement('bookViews'); + + // workbookView + $objWriter->startElement('workbookView'); + + $objWriter->writeAttribute('activeTab', $pPHPExcel->getActiveSheetIndex()); + $objWriter->writeAttribute('autoFilterDateGrouping', '1'); + $objWriter->writeAttribute('firstSheet', '0'); + $objWriter->writeAttribute('minimized', '0'); + $objWriter->writeAttribute('showHorizontalScroll', '1'); + $objWriter->writeAttribute('showSheetTabs', '1'); + $objWriter->writeAttribute('showVerticalScroll', '1'); + $objWriter->writeAttribute('tabRatio', '600'); + $objWriter->writeAttribute('visibility', 'visible'); + + $objWriter->endElement(); + + $objWriter->endElement(); + } + + /** + * Write WorkbookProtection + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel $pPHPExcel + * @throws PHPExcel_Writer_Exception + */ + private function _writeWorkbookProtection(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null) + { + if ($pPHPExcel->getSecurity()->isSecurityEnabled()) { + $objWriter->startElement('workbookProtection'); + $objWriter->writeAttribute('lockRevision', ($pPHPExcel->getSecurity()->getLockRevision() ? 'true' : 'false')); + $objWriter->writeAttribute('lockStructure', ($pPHPExcel->getSecurity()->getLockStructure() ? 'true' : 'false')); + $objWriter->writeAttribute('lockWindows', ($pPHPExcel->getSecurity()->getLockWindows() ? 'true' : 'false')); + + if ($pPHPExcel->getSecurity()->getRevisionsPassword() != '') { + $objWriter->writeAttribute('revisionsPassword', $pPHPExcel->getSecurity()->getRevisionsPassword()); + } + + if ($pPHPExcel->getSecurity()->getWorkbookPassword() != '') { + $objWriter->writeAttribute('workbookPassword', $pPHPExcel->getSecurity()->getWorkbookPassword()); + } + + $objWriter->endElement(); + } + } + + /** + * Write calcPr + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param boolean $recalcRequired Indicate whether formulas should be recalculated before writing + * @throws PHPExcel_Writer_Exception + */ + private function _writeCalcPr(PHPExcel_Shared_XMLWriter $objWriter = null, $recalcRequired = TRUE) + { + $objWriter->startElement('calcPr'); + + // Set the calcid to a higher value than Excel itself will use, otherwise Excel will always recalc + // If MS Excel does do a recalc, then users opening a file in MS Excel will be prompted to save on exit + // because the file has changed + $objWriter->writeAttribute('calcId', '999999'); + $objWriter->writeAttribute('calcMode', 'auto'); + // fullCalcOnLoad isn't needed if we've recalculating for the save + $objWriter->writeAttribute('calcCompleted', ($recalcRequired) ? 1 : 0); + $objWriter->writeAttribute('fullCalcOnLoad', ($recalcRequired) ? 0 : 1); + + $objWriter->endElement(); + } + + /** + * Write sheets + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel $pPHPExcel + * @throws PHPExcel_Writer_Exception + */ + private function _writeSheets(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null) + { + // Write sheets + $objWriter->startElement('sheets'); + $sheetCount = $pPHPExcel->getSheetCount(); + for ($i = 0; $i < $sheetCount; ++$i) { + // sheet + $this->_writeSheet( + $objWriter, + $pPHPExcel->getSheet($i)->getTitle(), + ($i + 1), + ($i + 1 + 3), + $pPHPExcel->getSheet($i)->getSheetState() + ); + } + + $objWriter->endElement(); + } + + /** + * Write sheet + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param string $pSheetname Sheet name + * @param int $pSheetId Sheet id + * @param int $pRelId Relationship ID + * @param string $sheetState Sheet state (visible, hidden, veryHidden) + * @throws PHPExcel_Writer_Exception + */ + private function _writeSheet(PHPExcel_Shared_XMLWriter $objWriter = null, $pSheetname = '', $pSheetId = 1, $pRelId = 1, $sheetState = 'visible') + { + if ($pSheetname != '') { + // Write sheet + $objWriter->startElement('sheet'); + $objWriter->writeAttribute('name', $pSheetname); + $objWriter->writeAttribute('sheetId', $pSheetId); + if ($sheetState != 'visible' && $sheetState != '') { + $objWriter->writeAttribute('state', $sheetState); + } + $objWriter->writeAttribute('r:id', 'rId' . $pRelId); + $objWriter->endElement(); + } else { + throw new PHPExcel_Writer_Exception("Invalid parameters passed."); + } + } + + /** + * Write Defined Names + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel $pPHPExcel + * @throws PHPExcel_Writer_Exception + */ + private function _writeDefinedNames(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null) + { + // Write defined names + $objWriter->startElement('definedNames'); + + // Named ranges + if (count($pPHPExcel->getNamedRanges()) > 0) { + // Named ranges + $this->_writeNamedRanges($objWriter, $pPHPExcel); + } + + // Other defined names + $sheetCount = $pPHPExcel->getSheetCount(); + for ($i = 0; $i < $sheetCount; ++$i) { + // definedName for autoFilter + $this->_writeDefinedNameForAutofilter($objWriter, $pPHPExcel->getSheet($i), $i); + + // definedName for Print_Titles + $this->_writeDefinedNameForPrintTitles($objWriter, $pPHPExcel->getSheet($i), $i); + + // definedName for Print_Area + $this->_writeDefinedNameForPrintArea($objWriter, $pPHPExcel->getSheet($i), $i); + } + + $objWriter->endElement(); + } + + /** + * Write named ranges + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel $pPHPExcel + * @throws PHPExcel_Writer_Exception + */ + private function _writeNamedRanges(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel) + { + // Loop named ranges + $namedRanges = $pPHPExcel->getNamedRanges(); + foreach ($namedRanges as $namedRange) { + $this->_writeDefinedNameForNamedRange($objWriter, $namedRange); + } + } + + /** + * Write Defined Name for named range + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_NamedRange $pNamedRange + * @throws PHPExcel_Writer_Exception + */ + private function _writeDefinedNameForNamedRange(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_NamedRange $pNamedRange) + { + // definedName for named range + $objWriter->startElement('definedName'); + $objWriter->writeAttribute('name', $pNamedRange->getName()); + if ($pNamedRange->getLocalOnly()) { + $objWriter->writeAttribute('localSheetId', $pNamedRange->getScope()->getParent()->getIndex($pNamedRange->getScope())); + } + + // Create absolute coordinate and write as raw text + $range = PHPExcel_Cell::splitRange($pNamedRange->getRange()); + for ($i = 0; $i < count($range); $i++) { + $range[$i][0] = '\'' . str_replace("'", "''", $pNamedRange->getWorksheet()->getTitle()) . '\'!' . PHPExcel_Cell::absoluteReference($range[$i][0]); + if (isset($range[$i][1])) { + $range[$i][1] = PHPExcel_Cell::absoluteReference($range[$i][1]); + } + } + $range = PHPExcel_Cell::buildRange($range); + + $objWriter->writeRawData($range); + + $objWriter->endElement(); + } + + /** + * Write Defined Name for autoFilter + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet + * @param int $pSheetId + * @throws PHPExcel_Writer_Exception + */ + private function _writeDefinedNameForAutofilter(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pSheetId = 0) + { + // definedName for autoFilter + $autoFilterRange = $pSheet->getAutoFilter()->getRange(); + if (!empty($autoFilterRange)) { + $objWriter->startElement('definedName'); + $objWriter->writeAttribute('name', '_xlnm._FilterDatabase'); + $objWriter->writeAttribute('localSheetId', $pSheetId); + $objWriter->writeAttribute('hidden', '1'); + + // Create absolute coordinate and write as raw text + $range = PHPExcel_Cell::splitRange($autoFilterRange); + $range = $range[0]; + // Strip any worksheet ref so we can make the cell ref absolute + if (strpos($range[0],'!') !== false) { + list($ws,$range[0]) = explode('!',$range[0]); + } + + $range[0] = PHPExcel_Cell::absoluteCoordinate($range[0]); + $range[1] = PHPExcel_Cell::absoluteCoordinate($range[1]); + $range = implode(':', $range); + + $objWriter->writeRawData('\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!' . $range); + + $objWriter->endElement(); + } + } + + /** + * Write Defined Name for PrintTitles + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet + * @param int $pSheetId + * @throws PHPExcel_Writer_Exception + */ + private function _writeDefinedNameForPrintTitles(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pSheetId = 0) + { + // definedName for PrintTitles + if ($pSheet->getPageSetup()->isColumnsToRepeatAtLeftSet() || $pSheet->getPageSetup()->isRowsToRepeatAtTopSet()) { + $objWriter->startElement('definedName'); + $objWriter->writeAttribute('name', '_xlnm.Print_Titles'); + $objWriter->writeAttribute('localSheetId', $pSheetId); + + // Setting string + $settingString = ''; + + // Columns to repeat + if ($pSheet->getPageSetup()->isColumnsToRepeatAtLeftSet()) { + $repeat = $pSheet->getPageSetup()->getColumnsToRepeatAtLeft(); + + $settingString .= '\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!$' . $repeat[0] . ':$' . $repeat[1]; + } + + // Rows to repeat + if ($pSheet->getPageSetup()->isRowsToRepeatAtTopSet()) { + if ($pSheet->getPageSetup()->isColumnsToRepeatAtLeftSet()) { + $settingString .= ','; + } + + $repeat = $pSheet->getPageSetup()->getRowsToRepeatAtTop(); + + $settingString .= '\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!$' . $repeat[0] . ':$' . $repeat[1]; + } + + $objWriter->writeRawData($settingString); + + $objWriter->endElement(); + } + } + + /** + * Write Defined Name for PrintTitles + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet + * @param int $pSheetId + * @throws PHPExcel_Writer_Exception + */ + private function _writeDefinedNameForPrintArea(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pSheetId = 0) + { + // definedName for PrintArea + if ($pSheet->getPageSetup()->isPrintAreaSet()) { + $objWriter->startElement('definedName'); + $objWriter->writeAttribute('name', '_xlnm.Print_Area'); + $objWriter->writeAttribute('localSheetId', $pSheetId); + + // Setting string + $settingString = ''; + + // Print area + $printArea = PHPExcel_Cell::splitRange($pSheet->getPageSetup()->getPrintArea()); + + $chunks = array(); + foreach ($printArea as $printAreaRect) { + $printAreaRect[0] = PHPExcel_Cell::absoluteReference($printAreaRect[0]); + $printAreaRect[1] = PHPExcel_Cell::absoluteReference($printAreaRect[1]); + $chunks[] = '\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!' . implode(':', $printAreaRect); + } + + $objWriter->writeRawData(implode(',', $chunks)); + + $objWriter->endElement(); + } + } +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007/Worksheet.php b/admin/helpers/PHPExcel/Writer/Excel2007/Worksheet.php new file mode 100644 index 00000000..5cb803e5 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007/Worksheet.php @@ -0,0 +1,1220 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel2007_Worksheet + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel2007_Worksheet extends PHPExcel_Writer_Excel2007_WriterPart +{ + /** + * Write worksheet to XML format + * + * @param PHPExcel_Worksheet $pSheet + * @param string[] $pStringTable + * @param boolean $includeCharts Flag indicating if we should write charts + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeWorksheet($pSheet = null, $pStringTable = null, $includeCharts = FALSE) + { + if (!is_null($pSheet)) { + // Create XML writer + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0','UTF-8','yes'); + + // Worksheet + $objWriter->startElement('worksheet'); + $objWriter->writeAttribute('xml:space', 'preserve'); + $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main'); + $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'); + + // sheetPr + $this->_writeSheetPr($objWriter, $pSheet); + + // Dimension + $this->_writeDimension($objWriter, $pSheet); + + // sheetViews + $this->_writeSheetViews($objWriter, $pSheet); + + // sheetFormatPr + $this->_writeSheetFormatPr($objWriter, $pSheet); + + // cols + $this->_writeCols($objWriter, $pSheet); + + // sheetData + $this->_writeSheetData($objWriter, $pSheet, $pStringTable); + + // sheetProtection + $this->_writeSheetProtection($objWriter, $pSheet); + + // protectedRanges + $this->_writeProtectedRanges($objWriter, $pSheet); + + // autoFilter + $this->_writeAutoFilter($objWriter, $pSheet); + + // mergeCells + $this->_writeMergeCells($objWriter, $pSheet); + + // conditionalFormatting + $this->_writeConditionalFormatting($objWriter, $pSheet); + + // dataValidations + $this->_writeDataValidations($objWriter, $pSheet); + + // hyperlinks + $this->_writeHyperlinks($objWriter, $pSheet); + + // Print options + $this->_writePrintOptions($objWriter, $pSheet); + + // Page margins + $this->_writePageMargins($objWriter, $pSheet); + + // Page setup + $this->_writePageSetup($objWriter, $pSheet); + + // Header / footer + $this->_writeHeaderFooter($objWriter, $pSheet); + + // Breaks + $this->_writeBreaks($objWriter, $pSheet); + + // Drawings and/or Charts + $this->_writeDrawings($objWriter, $pSheet, $includeCharts); + + // LegacyDrawing + $this->_writeLegacyDrawing($objWriter, $pSheet); + + // LegacyDrawingHF + $this->_writeLegacyDrawingHF($objWriter, $pSheet); + + $objWriter->endElement(); + + // Return + return $objWriter->getData(); + } else { + throw new PHPExcel_Writer_Exception("Invalid PHPExcel_Worksheet object passed."); + } + } + + /** + * Write SheetPr + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeSheetPr(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + // sheetPr + $objWriter->startElement('sheetPr'); + //$objWriter->writeAttribute('codeName', $pSheet->getTitle()); + if($pSheet->getParent()->hasMacros()){//if the workbook have macros, we need to have codeName for the sheet + if($pSheet->hasCodeName()==false){ + $pSheet->setCodeName($pSheet->getTitle()); + } + $objWriter->writeAttribute('codeName', $pSheet->getCodeName()); + } + $autoFilterRange = $pSheet->getAutoFilter()->getRange(); + if (!empty($autoFilterRange)) { + $objWriter->writeAttribute('filterMode', 1); + $pSheet->getAutoFilter()->showHideRows(); + } + + // tabColor + if ($pSheet->isTabColorSet()) { + $objWriter->startElement('tabColor'); + $objWriter->writeAttribute('rgb', $pSheet->getTabColor()->getARGB()); + $objWriter->endElement(); + } + + // outlinePr + $objWriter->startElement('outlinePr'); + $objWriter->writeAttribute('summaryBelow', ($pSheet->getShowSummaryBelow() ? '1' : '0')); + $objWriter->writeAttribute('summaryRight', ($pSheet->getShowSummaryRight() ? '1' : '0')); + $objWriter->endElement(); + + // pageSetUpPr + if ($pSheet->getPageSetup()->getFitToPage()) { + $objWriter->startElement('pageSetUpPr'); + $objWriter->writeAttribute('fitToPage', '1'); + $objWriter->endElement(); + } + + $objWriter->endElement(); + } + + /** + * Write Dimension + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeDimension(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + // dimension + $objWriter->startElement('dimension'); + $objWriter->writeAttribute('ref', $pSheet->calculateWorksheetDimension()); + $objWriter->endElement(); + } + + /** + * Write SheetViews + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeSheetViews(PHPExcel_Shared_XMLWriter $objWriter = NULL, PHPExcel_Worksheet $pSheet = NULL) + { + // sheetViews + $objWriter->startElement('sheetViews'); + + // Sheet selected? + $sheetSelected = false; + if ($this->getParentWriter()->getPHPExcel()->getIndex($pSheet) == $this->getParentWriter()->getPHPExcel()->getActiveSheetIndex()) + $sheetSelected = true; + + + // sheetView + $objWriter->startElement('sheetView'); + $objWriter->writeAttribute('tabSelected', $sheetSelected ? '1' : '0'); + $objWriter->writeAttribute('workbookViewId', '0'); + + // Zoom scales + if ($pSheet->getSheetView()->getZoomScale() != 100) { + $objWriter->writeAttribute('zoomScale', $pSheet->getSheetView()->getZoomScale()); + } + if ($pSheet->getSheetView()->getZoomScaleNormal() != 100) { + $objWriter->writeAttribute('zoomScaleNormal', $pSheet->getSheetView()->getZoomScaleNormal()); + } + + // View Layout Type + if ($pSheet->getSheetView()->getView() !== PHPExcel_Worksheet_SheetView::SHEETVIEW_NORMAL) { + $objWriter->writeAttribute('view', $pSheet->getSheetView()->getView()); + } + + // Gridlines + if ($pSheet->getShowGridlines()) { + $objWriter->writeAttribute('showGridLines', 'true'); + } else { + $objWriter->writeAttribute('showGridLines', 'false'); + } + + // Row and column headers + if ($pSheet->getShowRowColHeaders()) { + $objWriter->writeAttribute('showRowColHeaders', '1'); + } else { + $objWriter->writeAttribute('showRowColHeaders', '0'); + } + + // Right-to-left + if ($pSheet->getRightToLeft()) { + $objWriter->writeAttribute('rightToLeft', 'true'); + } + + $activeCell = $pSheet->getActiveCell(); + + // Pane + $pane = ''; + $topLeftCell = $pSheet->getFreezePane(); + if (($topLeftCell != '') && ($topLeftCell != 'A1')) { + $activeCell = $topLeftCell; + // Calculate freeze coordinates + $xSplit = $ySplit = 0; + + list($xSplit, $ySplit) = PHPExcel_Cell::coordinateFromString($topLeftCell); + $xSplit = PHPExcel_Cell::columnIndexFromString($xSplit); + + // pane + $pane = 'topRight'; + $objWriter->startElement('pane'); + if ($xSplit > 1) + $objWriter->writeAttribute('xSplit', $xSplit - 1); + if ($ySplit > 1) { + $objWriter->writeAttribute('ySplit', $ySplit - 1); + $pane = ($xSplit > 1) ? 'bottomRight' : 'bottomLeft'; + } + $objWriter->writeAttribute('topLeftCell', $topLeftCell); + $objWriter->writeAttribute('activePane', $pane); + $objWriter->writeAttribute('state', 'frozen'); + $objWriter->endElement(); + + if (($xSplit > 1) && ($ySplit > 1)) { + // Write additional selections if more than two panes (ie both an X and a Y split) + $objWriter->startElement('selection'); $objWriter->writeAttribute('pane', 'topRight'); $objWriter->endElement(); + $objWriter->startElement('selection'); $objWriter->writeAttribute('pane', 'bottomLeft'); $objWriter->endElement(); + } + } + + // Selection +// if ($pane != '') { + // Only need to write selection element if we have a split pane + // We cheat a little by over-riding the active cell selection, setting it to the split cell + $objWriter->startElement('selection'); + if ($pane != '') { + $objWriter->writeAttribute('pane', $pane); + } + $objWriter->writeAttribute('activeCell', $activeCell); + $objWriter->writeAttribute('sqref', $activeCell); + $objWriter->endElement(); +// } + + $objWriter->endElement(); + + $objWriter->endElement(); + } + + /** + * Write SheetFormatPr + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeSheetFormatPr(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + // sheetFormatPr + $objWriter->startElement('sheetFormatPr'); + + // Default row height + if ($pSheet->getDefaultRowDimension()->getRowHeight() >= 0) { + $objWriter->writeAttribute('customHeight', 'true'); + $objWriter->writeAttribute('defaultRowHeight', PHPExcel_Shared_String::FormatNumber($pSheet->getDefaultRowDimension()->getRowHeight())); + } else { + $objWriter->writeAttribute('defaultRowHeight', '14.4'); + } + + // Set Zero Height row + if ((string)$pSheet->getDefaultRowDimension()->getZeroHeight() == '1' || + strtolower((string)$pSheet->getDefaultRowDimension()->getZeroHeight()) == 'true' ) { + $objWriter->writeAttribute('zeroHeight', '1'); + } + + // Default column width + if ($pSheet->getDefaultColumnDimension()->getWidth() >= 0) { + $objWriter->writeAttribute('defaultColWidth', PHPExcel_Shared_String::FormatNumber($pSheet->getDefaultColumnDimension()->getWidth())); + } + + // Outline level - row + $outlineLevelRow = 0; + foreach ($pSheet->getRowDimensions() as $dimension) { + if ($dimension->getOutlineLevel() > $outlineLevelRow) { + $outlineLevelRow = $dimension->getOutlineLevel(); + } + } + $objWriter->writeAttribute('outlineLevelRow', (int)$outlineLevelRow); + + // Outline level - column + $outlineLevelCol = 0; + foreach ($pSheet->getColumnDimensions() as $dimension) { + if ($dimension->getOutlineLevel() > $outlineLevelCol) { + $outlineLevelCol = $dimension->getOutlineLevel(); + } + } + $objWriter->writeAttribute('outlineLevelCol', (int)$outlineLevelCol); + + $objWriter->endElement(); + } + + /** + * Write Cols + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeCols(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + // cols + if (count($pSheet->getColumnDimensions()) > 0) { + $objWriter->startElement('cols'); + + $pSheet->calculateColumnWidths(); + + // Loop through column dimensions + foreach ($pSheet->getColumnDimensions() as $colDimension) { + // col + $objWriter->startElement('col'); + $objWriter->writeAttribute('min', PHPExcel_Cell::columnIndexFromString($colDimension->getColumnIndex())); + $objWriter->writeAttribute('max', PHPExcel_Cell::columnIndexFromString($colDimension->getColumnIndex())); + + if ($colDimension->getWidth() < 0) { + // No width set, apply default of 10 + $objWriter->writeAttribute('width', '9.10'); + } else { + // Width set + $objWriter->writeAttribute('width', PHPExcel_Shared_String::FormatNumber($colDimension->getWidth())); + } + + // Column visibility + if ($colDimension->getVisible() == false) { + $objWriter->writeAttribute('hidden', 'true'); + } + + // Auto size? + if ($colDimension->getAutoSize()) { + $objWriter->writeAttribute('bestFit', 'true'); + } + + // Custom width? + if ($colDimension->getWidth() != $pSheet->getDefaultColumnDimension()->getWidth()) { + $objWriter->writeAttribute('customWidth', 'true'); + } + + // Collapsed + if ($colDimension->getCollapsed() == true) { + $objWriter->writeAttribute('collapsed', 'true'); + } + + // Outline level + if ($colDimension->getOutlineLevel() > 0) { + $objWriter->writeAttribute('outlineLevel', $colDimension->getOutlineLevel()); + } + + // Style + $objWriter->writeAttribute('style', $colDimension->getXfIndex()); + + $objWriter->endElement(); + } + + $objWriter->endElement(); + } + } + + /** + * Write SheetProtection + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeSheetProtection(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + // sheetProtection + $objWriter->startElement('sheetProtection'); + + if ($pSheet->getProtection()->getPassword() != '') { + $objWriter->writeAttribute('password', $pSheet->getProtection()->getPassword()); + } + + $objWriter->writeAttribute('sheet', ($pSheet->getProtection()->getSheet() ? 'true' : 'false')); + $objWriter->writeAttribute('objects', ($pSheet->getProtection()->getObjects() ? 'true' : 'false')); + $objWriter->writeAttribute('scenarios', ($pSheet->getProtection()->getScenarios() ? 'true' : 'false')); + $objWriter->writeAttribute('formatCells', ($pSheet->getProtection()->getFormatCells() ? 'true' : 'false')); + $objWriter->writeAttribute('formatColumns', ($pSheet->getProtection()->getFormatColumns() ? 'true' : 'false')); + $objWriter->writeAttribute('formatRows', ($pSheet->getProtection()->getFormatRows() ? 'true' : 'false')); + $objWriter->writeAttribute('insertColumns', ($pSheet->getProtection()->getInsertColumns() ? 'true' : 'false')); + $objWriter->writeAttribute('insertRows', ($pSheet->getProtection()->getInsertRows() ? 'true' : 'false')); + $objWriter->writeAttribute('insertHyperlinks', ($pSheet->getProtection()->getInsertHyperlinks() ? 'true' : 'false')); + $objWriter->writeAttribute('deleteColumns', ($pSheet->getProtection()->getDeleteColumns() ? 'true' : 'false')); + $objWriter->writeAttribute('deleteRows', ($pSheet->getProtection()->getDeleteRows() ? 'true' : 'false')); + $objWriter->writeAttribute('selectLockedCells', ($pSheet->getProtection()->getSelectLockedCells() ? 'true' : 'false')); + $objWriter->writeAttribute('sort', ($pSheet->getProtection()->getSort() ? 'true' : 'false')); + $objWriter->writeAttribute('autoFilter', ($pSheet->getProtection()->getAutoFilter() ? 'true' : 'false')); + $objWriter->writeAttribute('pivotTables', ($pSheet->getProtection()->getPivotTables() ? 'true' : 'false')); + $objWriter->writeAttribute('selectUnlockedCells', ($pSheet->getProtection()->getSelectUnlockedCells() ? 'true' : 'false')); + $objWriter->endElement(); + } + + /** + * Write ConditionalFormatting + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeConditionalFormatting(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + // Conditional id + $id = 1; + + // Loop through styles in the current worksheet + foreach ($pSheet->getConditionalStylesCollection() as $cellCoordinate => $conditionalStyles) { + foreach ($conditionalStyles as $conditional) { + // WHY was this again? + // if ($this->getParentWriter()->getStylesConditionalHashTable()->getIndexForHashCode( $conditional->getHashCode() ) == '') { + // continue; + // } + if ($conditional->getConditionType() != PHPExcel_Style_Conditional::CONDITION_NONE) { + // conditionalFormatting + $objWriter->startElement('conditionalFormatting'); + $objWriter->writeAttribute('sqref', $cellCoordinate); + + // cfRule + $objWriter->startElement('cfRule'); + $objWriter->writeAttribute('type', $conditional->getConditionType()); + $objWriter->writeAttribute('dxfId', $this->getParentWriter()->getStylesConditionalHashTable()->getIndexForHashCode( $conditional->getHashCode() )); + $objWriter->writeAttribute('priority', $id++); + + if (($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS + || + $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT) + && $conditional->getOperatorType() != PHPExcel_Style_Conditional::OPERATOR_NONE) { + $objWriter->writeAttribute('operator', $conditional->getOperatorType()); + } + + if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT + && !is_null($conditional->getText())) { + $objWriter->writeAttribute('text', $conditional->getText()); + } + + if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT + && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_CONTAINSTEXT + && !is_null($conditional->getText())) { + $objWriter->writeElement('formula', 'NOT(ISERROR(SEARCH("' . $conditional->getText() . '",' . $cellCoordinate . ')))'); + } else if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT + && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_BEGINSWITH + && !is_null($conditional->getText())) { + $objWriter->writeElement('formula', 'LEFT(' . $cellCoordinate . ',' . strlen($conditional->getText()) . ')="' . $conditional->getText() . '"'); + } else if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT + && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_ENDSWITH + && !is_null($conditional->getText())) { + $objWriter->writeElement('formula', 'RIGHT(' . $cellCoordinate . ',' . strlen($conditional->getText()) . ')="' . $conditional->getText() . '"'); + } else if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT + && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_NOTCONTAINS + && !is_null($conditional->getText())) { + $objWriter->writeElement('formula', 'ISERROR(SEARCH("' . $conditional->getText() . '",' . $cellCoordinate . '))'); + } else if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS + || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT + || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION) { + foreach ($conditional->getConditions() as $formula) { + // Formula + $objWriter->writeElement('formula', $formula); + } + } + + $objWriter->endElement(); + + $objWriter->endElement(); + } + } + } + } + + /** + * Write DataValidations + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeDataValidations(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + // Datavalidation collection + $dataValidationCollection = $pSheet->getDataValidationCollection(); + + // Write data validations? + if (!empty($dataValidationCollection)) { + $objWriter->startElement('dataValidations'); + $objWriter->writeAttribute('count', count($dataValidationCollection)); + + foreach ($dataValidationCollection as $coordinate => $dv) { + $objWriter->startElement('dataValidation'); + + if ($dv->getType() != '') { + $objWriter->writeAttribute('type', $dv->getType()); + } + + if ($dv->getErrorStyle() != '') { + $objWriter->writeAttribute('errorStyle', $dv->getErrorStyle()); + } + + if ($dv->getOperator() != '') { + $objWriter->writeAttribute('operator', $dv->getOperator()); + } + + $objWriter->writeAttribute('allowBlank', ($dv->getAllowBlank() ? '1' : '0')); + $objWriter->writeAttribute('showDropDown', (!$dv->getShowDropDown() ? '1' : '0')); + $objWriter->writeAttribute('showInputMessage', ($dv->getShowInputMessage() ? '1' : '0')); + $objWriter->writeAttribute('showErrorMessage', ($dv->getShowErrorMessage() ? '1' : '0')); + + if ($dv->getErrorTitle() !== '') { + $objWriter->writeAttribute('errorTitle', $dv->getErrorTitle()); + } + if ($dv->getError() !== '') { + $objWriter->writeAttribute('error', $dv->getError()); + } + if ($dv->getPromptTitle() !== '') { + $objWriter->writeAttribute('promptTitle', $dv->getPromptTitle()); + } + if ($dv->getPrompt() !== '') { + $objWriter->writeAttribute('prompt', $dv->getPrompt()); + } + + $objWriter->writeAttribute('sqref', $coordinate); + + if ($dv->getFormula1() !== '') { + $objWriter->writeElement('formula1', $dv->getFormula1()); + } + if ($dv->getFormula2() !== '') { + $objWriter->writeElement('formula2', $dv->getFormula2()); + } + + $objWriter->endElement(); + } + + $objWriter->endElement(); + } + } + + /** + * Write Hyperlinks + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeHyperlinks(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + // Hyperlink collection + $hyperlinkCollection = $pSheet->getHyperlinkCollection(); + + // Relation ID + $relationId = 1; + + // Write hyperlinks? + if (!empty($hyperlinkCollection)) { + $objWriter->startElement('hyperlinks'); + + foreach ($hyperlinkCollection as $coordinate => $hyperlink) { + $objWriter->startElement('hyperlink'); + + $objWriter->writeAttribute('ref', $coordinate); + if (!$hyperlink->isInternal()) { + $objWriter->writeAttribute('r:id', 'rId_hyperlink_' . $relationId); + ++$relationId; + } else { + $objWriter->writeAttribute('location', str_replace('sheet://', '', $hyperlink->getUrl())); + } + + if ($hyperlink->getTooltip() != '') { + $objWriter->writeAttribute('tooltip', $hyperlink->getTooltip()); + } + + $objWriter->endElement(); + } + + $objWriter->endElement(); + } + } + + /** + * Write ProtectedRanges + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeProtectedRanges(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + if (count($pSheet->getProtectedCells()) > 0) { + // protectedRanges + $objWriter->startElement('protectedRanges'); + + // Loop protectedRanges + foreach ($pSheet->getProtectedCells() as $protectedCell => $passwordHash) { + // protectedRange + $objWriter->startElement('protectedRange'); + $objWriter->writeAttribute('name', 'p' . md5($protectedCell)); + $objWriter->writeAttribute('sqref', $protectedCell); + if (!empty($passwordHash)) { + $objWriter->writeAttribute('password', $passwordHash); + } + $objWriter->endElement(); + } + + $objWriter->endElement(); + } + } + + /** + * Write MergeCells + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeMergeCells(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + if (count($pSheet->getMergeCells()) > 0) { + // mergeCells + $objWriter->startElement('mergeCells'); + + // Loop mergeCells + foreach ($pSheet->getMergeCells() as $mergeCell) { + // mergeCell + $objWriter->startElement('mergeCell'); + $objWriter->writeAttribute('ref', $mergeCell); + $objWriter->endElement(); + } + + $objWriter->endElement(); + } + } + + /** + * Write PrintOptions + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writePrintOptions(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + // printOptions + $objWriter->startElement('printOptions'); + + $objWriter->writeAttribute('gridLines', ($pSheet->getPrintGridlines() ? 'true': 'false')); + $objWriter->writeAttribute('gridLinesSet', 'true'); + + if ($pSheet->getPageSetup()->getHorizontalCentered()) { + $objWriter->writeAttribute('horizontalCentered', 'true'); + } + + if ($pSheet->getPageSetup()->getVerticalCentered()) { + $objWriter->writeAttribute('verticalCentered', 'true'); + } + + $objWriter->endElement(); + } + + /** + * Write PageMargins + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writePageMargins(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + // pageMargins + $objWriter->startElement('pageMargins'); + $objWriter->writeAttribute('left', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getLeft())); + $objWriter->writeAttribute('right', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getRight())); + $objWriter->writeAttribute('top', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getTop())); + $objWriter->writeAttribute('bottom', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getBottom())); + $objWriter->writeAttribute('header', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getHeader())); + $objWriter->writeAttribute('footer', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getFooter())); + $objWriter->endElement(); + } + + /** + * Write AutoFilter + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeAutoFilter(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + $autoFilterRange = $pSheet->getAutoFilter()->getRange(); + if (!empty($autoFilterRange)) { + // autoFilter + $objWriter->startElement('autoFilter'); + + // Strip any worksheet reference from the filter coordinates + $range = PHPExcel_Cell::splitRange($autoFilterRange); + $range = $range[0]; + // Strip any worksheet ref + if (strpos($range[0],'!') !== false) { + list($ws,$range[0]) = explode('!',$range[0]); + } + $range = implode(':', $range); + + $objWriter->writeAttribute('ref', str_replace('$','',$range)); + + $columns = $pSheet->getAutoFilter()->getColumns(); + if (count($columns > 0)) { + foreach($columns as $columnID => $column) { + $rules = $column->getRules(); + if (count($rules > 0)) { + $objWriter->startElement('filterColumn'); + $objWriter->writeAttribute('colId', $pSheet->getAutoFilter()->getColumnOffset($columnID)); + + $objWriter->startElement( $column->getFilterType()); + if ($column->getJoin() == PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_AND) { + $objWriter->writeAttribute('and', 1); + } + + foreach ($rules as $rule) { + if (($column->getFilterType() === PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_FILTER) && + ($rule->getOperator() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_EQUAL) && + ($rule->getValue() === '')) { + // Filter rule for Blanks + $objWriter->writeAttribute('blank', 1); + } elseif($rule->getRuleType() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMICFILTER) { + // Dynamic Filter Rule + $objWriter->writeAttribute('type', $rule->getGrouping()); + $val = $column->getAttribute('val'); + if ($val !== NULL) { + $objWriter->writeAttribute('val', $val); + } + $maxVal = $column->getAttribute('maxVal'); + if ($maxVal !== NULL) { + $objWriter->writeAttribute('maxVal', $maxVal); + } + } elseif($rule->getRuleType() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_TOPTENFILTER) { + // Top 10 Filter Rule + $objWriter->writeAttribute('val', $rule->getValue()); + $objWriter->writeAttribute('percent', (($rule->getOperator() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_PERCENT) ? '1' : '0')); + $objWriter->writeAttribute('top', (($rule->getGrouping() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP) ? '1': '0')); + } else { + // Filter, DateGroupItem or CustomFilter + $objWriter->startElement($rule->getRuleType()); + + if ($rule->getOperator() !== PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_EQUAL) { + $objWriter->writeAttribute('operator', $rule->getOperator()); + } + if ($rule->getRuleType() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP) { + // Date Group filters + foreach($rule->getValue() as $key => $value) { + if ($value > '') $objWriter->writeAttribute($key, $value); + } + $objWriter->writeAttribute('dateTimeGrouping', $rule->getGrouping()); + } else { + $objWriter->writeAttribute('val', $rule->getValue()); + } + + $objWriter->endElement(); + } + } + + $objWriter->endElement(); + + $objWriter->endElement(); + } + } + } + + $objWriter->endElement(); + } + } + + /** + * Write PageSetup + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writePageSetup(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + // pageSetup + $objWriter->startElement('pageSetup'); + $objWriter->writeAttribute('paperSize', $pSheet->getPageSetup()->getPaperSize()); + $objWriter->writeAttribute('orientation', $pSheet->getPageSetup()->getOrientation()); + + if (!is_null($pSheet->getPageSetup()->getScale())) { + $objWriter->writeAttribute('scale', $pSheet->getPageSetup()->getScale()); + } + if (!is_null($pSheet->getPageSetup()->getFitToHeight())) { + $objWriter->writeAttribute('fitToHeight', $pSheet->getPageSetup()->getFitToHeight()); + } else { + $objWriter->writeAttribute('fitToHeight', '0'); + } + if (!is_null($pSheet->getPageSetup()->getFitToWidth())) { + $objWriter->writeAttribute('fitToWidth', $pSheet->getPageSetup()->getFitToWidth()); + } else { + $objWriter->writeAttribute('fitToWidth', '0'); + } + if (!is_null($pSheet->getPageSetup()->getFirstPageNumber())) { + $objWriter->writeAttribute('firstPageNumber', $pSheet->getPageSetup()->getFirstPageNumber()); + $objWriter->writeAttribute('useFirstPageNumber', '1'); + } + + $objWriter->endElement(); + } + + /** + * Write Header / Footer + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeHeaderFooter(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + // headerFooter + $objWriter->startElement('headerFooter'); + $objWriter->writeAttribute('differentOddEven', ($pSheet->getHeaderFooter()->getDifferentOddEven() ? 'true' : 'false')); + $objWriter->writeAttribute('differentFirst', ($pSheet->getHeaderFooter()->getDifferentFirst() ? 'true' : 'false')); + $objWriter->writeAttribute('scaleWithDoc', ($pSheet->getHeaderFooter()->getScaleWithDocument() ? 'true' : 'false')); + $objWriter->writeAttribute('alignWithMargins', ($pSheet->getHeaderFooter()->getAlignWithMargins() ? 'true' : 'false')); + + $objWriter->writeElement('oddHeader', $pSheet->getHeaderFooter()->getOddHeader()); + $objWriter->writeElement('oddFooter', $pSheet->getHeaderFooter()->getOddFooter()); + $objWriter->writeElement('evenHeader', $pSheet->getHeaderFooter()->getEvenHeader()); + $objWriter->writeElement('evenFooter', $pSheet->getHeaderFooter()->getEvenFooter()); + $objWriter->writeElement('firstHeader', $pSheet->getHeaderFooter()->getFirstHeader()); + $objWriter->writeElement('firstFooter', $pSheet->getHeaderFooter()->getFirstFooter()); + $objWriter->endElement(); + } + + /** + * Write Breaks + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeBreaks(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + // Get row and column breaks + $aRowBreaks = array(); + $aColumnBreaks = array(); + foreach ($pSheet->getBreaks() as $cell => $breakType) { + if ($breakType == PHPExcel_Worksheet::BREAK_ROW) { + $aRowBreaks[] = $cell; + } else if ($breakType == PHPExcel_Worksheet::BREAK_COLUMN) { + $aColumnBreaks[] = $cell; + } + } + + // rowBreaks + if (!empty($aRowBreaks)) { + $objWriter->startElement('rowBreaks'); + $objWriter->writeAttribute('count', count($aRowBreaks)); + $objWriter->writeAttribute('manualBreakCount', count($aRowBreaks)); + + foreach ($aRowBreaks as $cell) { + $coords = PHPExcel_Cell::coordinateFromString($cell); + + $objWriter->startElement('brk'); + $objWriter->writeAttribute('id', $coords[1]); + $objWriter->writeAttribute('man', '1'); + $objWriter->endElement(); + } + + $objWriter->endElement(); + } + + // Second, write column breaks + if (!empty($aColumnBreaks)) { + $objWriter->startElement('colBreaks'); + $objWriter->writeAttribute('count', count($aColumnBreaks)); + $objWriter->writeAttribute('manualBreakCount', count($aColumnBreaks)); + + foreach ($aColumnBreaks as $cell) { + $coords = PHPExcel_Cell::coordinateFromString($cell); + + $objWriter->startElement('brk'); + $objWriter->writeAttribute('id', PHPExcel_Cell::columnIndexFromString($coords[0]) - 1); + $objWriter->writeAttribute('man', '1'); + $objWriter->endElement(); + } + + $objWriter->endElement(); + } + } + + /** + * Write SheetData + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @param string[] $pStringTable String table + * @throws PHPExcel_Writer_Exception + */ + private function _writeSheetData(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pStringTable = null) + { + if (is_array($pStringTable)) { + // Flipped stringtable, for faster index searching + $aFlippedStringTable = $this->getParentWriter()->getWriterPart('stringtable')->flipStringTable($pStringTable); + + // sheetData + $objWriter->startElement('sheetData'); + + // Get column count + $colCount = PHPExcel_Cell::columnIndexFromString($pSheet->getHighestColumn()); + + // Highest row number + $highestRow = $pSheet->getHighestRow(); + + // Loop through cells + $cellsByRow = array(); + foreach ($pSheet->getCellCollection() as $cellID) { + $cellAddress = PHPExcel_Cell::coordinateFromString($cellID); + $cellsByRow[$cellAddress[1]][] = $cellID; + } + + $currentRow = 0; + while($currentRow++ < $highestRow) { + // Get row dimension + $rowDimension = $pSheet->getRowDimension($currentRow); + + // Write current row? + $writeCurrentRow = isset($cellsByRow[$currentRow]) || + $rowDimension->getRowHeight() >= 0 || + $rowDimension->getVisible() == false || + $rowDimension->getCollapsed() == true || + $rowDimension->getOutlineLevel() > 0 || + $rowDimension->getXfIndex() !== null; + + if ($writeCurrentRow) { + // Start a new row + $objWriter->startElement('row'); + $objWriter->writeAttribute('r', $currentRow); + $objWriter->writeAttribute('spans', '1:' . $colCount); + + // Row dimensions + if ($rowDimension->getRowHeight() >= 0) { + $objWriter->writeAttribute('customHeight', '1'); + $objWriter->writeAttribute('ht', PHPExcel_Shared_String::FormatNumber($rowDimension->getRowHeight())); + } + + // Row visibility + if ($rowDimension->getVisible() == false) { + $objWriter->writeAttribute('hidden', 'true'); + } + + // Collapsed + if ($rowDimension->getCollapsed() == true) { + $objWriter->writeAttribute('collapsed', 'true'); + } + + // Outline level + if ($rowDimension->getOutlineLevel() > 0) { + $objWriter->writeAttribute('outlineLevel', $rowDimension->getOutlineLevel()); + } + + // Style + if ($rowDimension->getXfIndex() !== null) { + $objWriter->writeAttribute('s', $rowDimension->getXfIndex()); + $objWriter->writeAttribute('customFormat', '1'); + } + + // Write cells + if (isset($cellsByRow[$currentRow])) { + foreach($cellsByRow[$currentRow] as $cellAddress) { + // Write cell + $this->_writeCell($objWriter, $pSheet, $cellAddress, $pStringTable, $aFlippedStringTable); + } + } + + // End row + $objWriter->endElement(); + } + } + + $objWriter->endElement(); + } else { + throw new PHPExcel_Writer_Exception("Invalid parameters passed."); + } + } + + /** + * Write Cell + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @param PHPExcel_Cell $pCellAddress Cell Address + * @param string[] $pStringTable String table + * @param string[] $pFlippedStringTable String table (flipped), for faster index searching + * @throws PHPExcel_Writer_Exception + */ + private function _writeCell(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pCellAddress = null, $pStringTable = null, $pFlippedStringTable = null) + { + if (is_array($pStringTable) && is_array($pFlippedStringTable)) { + // Cell + $pCell = $pSheet->getCell($pCellAddress); + $objWriter->startElement('c'); + $objWriter->writeAttribute('r', $pCellAddress); + + // Sheet styles + if ($pCell->getXfIndex() != '') { + $objWriter->writeAttribute('s', $pCell->getXfIndex()); + } + + // If cell value is supplied, write cell value + $cellValue = $pCell->getValue(); + if (is_object($cellValue) || $cellValue !== '') { + // Map type + $mappedType = $pCell->getDataType(); + + // Write data type depending on its type + switch (strtolower($mappedType)) { + case 'inlinestr': // Inline string + case 's': // String + case 'b': // Boolean + $objWriter->writeAttribute('t', $mappedType); + break; + case 'f': // Formula + $calculatedValue = ($this->getParentWriter()->getPreCalculateFormulas()) ? + $pCell->getCalculatedValue() : + $cellValue; + if (is_string($calculatedValue)) { + $objWriter->writeAttribute('t', 'str'); + } + break; + case 'e': // Error + $objWriter->writeAttribute('t', $mappedType); + } + + // Write data depending on its type + switch (strtolower($mappedType)) { + case 'inlinestr': // Inline string + if (! $cellValue instanceof PHPExcel_RichText) { + $objWriter->writeElement('t', PHPExcel_Shared_String::ControlCharacterPHP2OOXML( htmlspecialchars($cellValue) ) ); + } else if ($cellValue instanceof PHPExcel_RichText) { + $objWriter->startElement('is'); + $this->getParentWriter()->getWriterPart('stringtable')->writeRichText($objWriter, $cellValue); + $objWriter->endElement(); + } + + break; + case 's': // String + if (! $cellValue instanceof PHPExcel_RichText) { + if (isset($pFlippedStringTable[$cellValue])) { + $objWriter->writeElement('v', $pFlippedStringTable[$cellValue]); + } + } else if ($cellValue instanceof PHPExcel_RichText) { + $objWriter->writeElement('v', $pFlippedStringTable[$cellValue->getHashCode()]); + } + + break; + case 'f': // Formula + $attributes = $pCell->getFormulaAttributes(); + if($attributes['t'] == 'array') { + $objWriter->startElement('f'); + $objWriter->writeAttribute('t', 'array'); + $objWriter->writeAttribute('ref', $pCellAddress); + $objWriter->writeAttribute('aca', '1'); + $objWriter->writeAttribute('ca', '1'); + $objWriter->text(substr($cellValue, 1)); + $objWriter->endElement(); + } else { + $objWriter->writeElement('f', substr($cellValue, 1)); + } + if ($this->getParentWriter()->getOffice2003Compatibility() === false) { + if ($this->getParentWriter()->getPreCalculateFormulas()) { +// $calculatedValue = $pCell->getCalculatedValue(); + if (!is_array($calculatedValue) && substr($calculatedValue, 0, 1) != '#') { + $objWriter->writeElement('v', PHPExcel_Shared_String::FormatNumber($calculatedValue)); + } else { + $objWriter->writeElement('v', '0'); + } + } else { + $objWriter->writeElement('v', '0'); + } + } + break; + case 'n': // Numeric + // force point as decimal separator in case current locale uses comma + $objWriter->writeElement('v', str_replace(',', '.', $cellValue)); + break; + case 'b': // Boolean + $objWriter->writeElement('v', ($cellValue ? '1' : '0')); + break; + case 'e': // Error + if (substr($cellValue, 0, 1) == '=') { + $objWriter->writeElement('f', substr($cellValue, 1)); + $objWriter->writeElement('v', substr($cellValue, 1)); + } else { + $objWriter->writeElement('v', $cellValue); + } + + break; + } + } + + $objWriter->endElement(); + } else { + throw new PHPExcel_Writer_Exception("Invalid parameters passed."); + } + } + + /** + * Write Drawings + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @param boolean $includeCharts Flag indicating if we should include drawing details for charts + * @throws PHPExcel_Writer_Exception + */ + private function _writeDrawings(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $includeCharts = FALSE) + { + $chartCount = ($includeCharts) ? $pSheet->getChartCollection()->count() : 0; + // If sheet contains drawings, add the relationships + if (($pSheet->getDrawingCollection()->count() > 0) || + ($chartCount > 0)) { + $objWriter->startElement('drawing'); + $objWriter->writeAttribute('r:id', 'rId1'); + $objWriter->endElement(); + } + } + + /** + * Write LegacyDrawing + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeLegacyDrawing(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + // If sheet contains comments, add the relationships + if (count($pSheet->getComments()) > 0) { + $objWriter->startElement('legacyDrawing'); + $objWriter->writeAttribute('r:id', 'rId_comments_vml1'); + $objWriter->endElement(); + } + } + + /** + * Write LegacyDrawingHF + * + * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer + * @param PHPExcel_Worksheet $pSheet Worksheet + * @throws PHPExcel_Writer_Exception + */ + private function _writeLegacyDrawingHF(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) + { + // If sheet contains images, add the relationships + if (count($pSheet->getHeaderFooter()->getImages()) > 0) { + $objWriter->startElement('legacyDrawingHF'); + $objWriter->writeAttribute('r:id', 'rId_headerfooter_vml1'); + $objWriter->endElement(); + } + } +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007/WriterPart.php b/admin/helpers/PHPExcel/Writer/Excel2007/WriterPart.php new file mode 100644 index 00000000..68b1124f --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007/WriterPart.php @@ -0,0 +1,81 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel2007_WriterPart + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel2007 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +abstract class PHPExcel_Writer_Excel2007_WriterPart +{ + /** + * Parent IWriter object + * + * @var PHPExcel_Writer_IWriter + */ + private $_parentWriter; + + /** + * Set parent IWriter object + * + * @param PHPExcel_Writer_IWriter $pWriter + * @throws PHPExcel_Writer_Exception + */ + public function setParentWriter(PHPExcel_Writer_IWriter $pWriter = null) { + $this->_parentWriter = $pWriter; + } + + /** + * Get parent IWriter object + * + * @return PHPExcel_Writer_IWriter + * @throws PHPExcel_Writer_Exception + */ + public function getParentWriter() { + if (!is_null($this->_parentWriter)) { + return $this->_parentWriter; + } else { + throw new PHPExcel_Writer_Exception("No parent PHPExcel_Writer_IWriter assigned."); + } + } + + /** + * Set parent IWriter object + * + * @param PHPExcel_Writer_IWriter $pWriter + * @throws PHPExcel_Writer_Exception + */ + public function __construct(PHPExcel_Writer_IWriter $pWriter = null) { + if (!is_null($pWriter)) { + $this->_parentWriter = $pWriter; + } + } + +} diff --git a/admin/helpers/PHPExcel/Writer/Excel2007/index.html b/admin/helpers/PHPExcel/Writer/Excel2007/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel2007/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Writer/Excel5.php b/admin/helpers/PHPExcel/Writer/Excel5.php new file mode 100644 index 00000000..1a990d04 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel5.php @@ -0,0 +1,935 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel5 + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel5 extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter +{ + /** + * PHPExcel object + * + * @var PHPExcel + */ + private $_phpExcel; + + /** + * Total number of shared strings in workbook + * + * @var int + */ + private $_str_total = 0; + + /** + * Number of unique shared strings in workbook + * + * @var int + */ + private $_str_unique = 0; + + /** + * Array of unique shared strings in workbook + * + * @var array + */ + private $_str_table = array(); + + /** + * Color cache. Mapping between RGB value and color index. + * + * @var array + */ + private $_colors; + + /** + * Formula parser + * + * @var PHPExcel_Writer_Excel5_Parser + */ + private $_parser; + + /** + * Identifier clusters for drawings. Used in MSODRAWINGGROUP record. + * + * @var array + */ + private $_IDCLs; + + /** + * Basic OLE object summary information + * + * @var array + */ + private $_summaryInformation; + + /** + * Extended OLE object document summary information + * + * @var array + */ + private $_documentSummaryInformation; + + /** + * Create a new PHPExcel_Writer_Excel5 + * + * @param PHPExcel $phpExcel PHPExcel object + */ + public function __construct(PHPExcel $phpExcel) { + $this->_phpExcel = $phpExcel; + + $this->_parser = new PHPExcel_Writer_Excel5_Parser(); + } + + /** + * Save PHPExcel to file + * + * @param string $pFilename + * @throws PHPExcel_Writer_Exception + */ + public function save($pFilename = null) { + + // garbage collect + $this->_phpExcel->garbageCollect(); + + $saveDebugLog = PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->getWriteDebugLog(); + PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->setWriteDebugLog(FALSE); + $saveDateReturnType = PHPExcel_Calculation_Functions::getReturnDateType(); + PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_EXCEL); + + // initialize colors array + $this->_colors = array(); + + // Initialise workbook writer + $this->_writerWorkbook = new PHPExcel_Writer_Excel5_Workbook($this->_phpExcel, + $this->_str_total, $this->_str_unique, $this->_str_table, + $this->_colors, $this->_parser); + + // Initialise worksheet writers + $countSheets = $this->_phpExcel->getSheetCount(); + for ($i = 0; $i < $countSheets; ++$i) { + $this->_writerWorksheets[$i] = new PHPExcel_Writer_Excel5_Worksheet($this->_str_total, $this->_str_unique, + $this->_str_table, $this->_colors, + $this->_parser, + $this->_preCalculateFormulas, + $this->_phpExcel->getSheet($i)); + } + + // build Escher objects. Escher objects for workbooks needs to be build before Escher object for workbook. + $this->_buildWorksheetEschers(); + $this->_buildWorkbookEscher(); + + // add 15 identical cell style Xfs + // for now, we use the first cellXf instead of cellStyleXf + $cellXfCollection = $this->_phpExcel->getCellXfCollection(); + for ($i = 0; $i < 15; ++$i) { + $this->_writerWorkbook->addXfWriter($cellXfCollection[0], true); + } + + // add all the cell Xfs + foreach ($this->_phpExcel->getCellXfCollection() as $style) { + $this->_writerWorkbook->addXfWriter($style, false); + } + + // add fonts from rich text eleemnts + for ($i = 0; $i < $countSheets; ++$i) { + foreach ($this->_writerWorksheets[$i]->_phpSheet->getCellCollection() as $cellID) { + $cell = $this->_writerWorksheets[$i]->_phpSheet->getCell($cellID); + $cVal = $cell->getValue(); + if ($cVal instanceof PHPExcel_RichText) { + $elements = $cVal->getRichTextElements(); + foreach ($elements as $element) { + if ($element instanceof PHPExcel_RichText_Run) { + $font = $element->getFont(); + $this->_writerWorksheets[$i]->_fntHashIndex[$font->getHashCode()] = $this->_writerWorkbook->_addFont($font); + } + } + } + } + } + + // initialize OLE file + $workbookStreamName = 'Workbook'; + $OLE = new PHPExcel_Shared_OLE_PPS_File(PHPExcel_Shared_OLE::Asc2Ucs($workbookStreamName)); + + // Write the worksheet streams before the global workbook stream, + // because the byte sizes of these are needed in the global workbook stream + $worksheetSizes = array(); + for ($i = 0; $i < $countSheets; ++$i) { + $this->_writerWorksheets[$i]->close(); + $worksheetSizes[] = $this->_writerWorksheets[$i]->_datasize; + } + + // add binary data for global workbook stream + $OLE->append($this->_writerWorkbook->writeWorkbook($worksheetSizes)); + + // add binary data for sheet streams + for ($i = 0; $i < $countSheets; ++$i) { + $OLE->append($this->_writerWorksheets[$i]->getData()); + } + + $this->_documentSummaryInformation = $this->_writeDocumentSummaryInformation(); + // initialize OLE Document Summary Information + if(isset($this->_documentSummaryInformation) && !empty($this->_documentSummaryInformation)){ + $OLE_DocumentSummaryInformation = new PHPExcel_Shared_OLE_PPS_File(PHPExcel_Shared_OLE::Asc2Ucs(chr(5) . 'DocumentSummaryInformation')); + $OLE_DocumentSummaryInformation->append($this->_documentSummaryInformation); + } + + $this->_summaryInformation = $this->_writeSummaryInformation(); + // initialize OLE Summary Information + if(isset($this->_summaryInformation) && !empty($this->_summaryInformation)){ + $OLE_SummaryInformation = new PHPExcel_Shared_OLE_PPS_File(PHPExcel_Shared_OLE::Asc2Ucs(chr(5) . 'SummaryInformation')); + $OLE_SummaryInformation->append($this->_summaryInformation); + } + + // define OLE Parts + $arrRootData = array($OLE); + // initialize OLE Properties file + if(isset($OLE_SummaryInformation)){ + $arrRootData[] = $OLE_SummaryInformation; + } + // initialize OLE Extended Properties file + if(isset($OLE_DocumentSummaryInformation)){ + $arrRootData[] = $OLE_DocumentSummaryInformation; + } + + $root = new PHPExcel_Shared_OLE_PPS_Root(time(), time(), $arrRootData); + // save the OLE file + $res = $root->save($pFilename); + + PHPExcel_Calculation_Functions::setReturnDateType($saveDateReturnType); + PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog); + } + + /** + * Set temporary storage directory + * + * @deprecated + * @param string $pValue Temporary storage directory + * @throws PHPExcel_Writer_Exception when directory does not exist + * @return PHPExcel_Writer_Excel5 + */ + public function setTempDir($pValue = '') { + return $this; + } + + /** + * Build the Worksheet Escher objects + * + */ + private function _buildWorksheetEschers() + { + // 1-based index to BstoreContainer + $blipIndex = 0; + $lastReducedSpId = 0; + $lastSpId = 0; + + foreach ($this->_phpExcel->getAllsheets() as $sheet) { + // sheet index + $sheetIndex = $sheet->getParent()->getIndex($sheet); + + $escher = null; + + // check if there are any shapes for this sheet + $filterRange = $sheet->getAutoFilter()->getRange(); + if (count($sheet->getDrawingCollection()) == 0 && empty($filterRange)) { + continue; + } + + // create intermediate Escher object + $escher = new PHPExcel_Shared_Escher(); + + // dgContainer + $dgContainer = new PHPExcel_Shared_Escher_DgContainer(); + + // set the drawing index (we use sheet index + 1) + $dgId = $sheet->getParent()->getIndex($sheet) + 1; + $dgContainer->setDgId($dgId); + $escher->setDgContainer($dgContainer); + + // spgrContainer + $spgrContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer(); + $dgContainer->setSpgrContainer($spgrContainer); + + // add one shape which is the group shape + $spContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer(); + $spContainer->setSpgr(true); + $spContainer->setSpType(0); + $spContainer->setSpId(($sheet->getParent()->getIndex($sheet) + 1) << 10); + $spgrContainer->addChild($spContainer); + + // add the shapes + + $countShapes[$sheetIndex] = 0; // count number of shapes (minus group shape), in sheet + + foreach ($sheet->getDrawingCollection() as $drawing) { + ++$blipIndex; + + ++$countShapes[$sheetIndex]; + + // add the shape + $spContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer(); + + // set the shape type + $spContainer->setSpType(0x004B); + // set the shape flag + $spContainer->setSpFlag(0x02); + + // set the shape index (we combine 1-based sheet index and $countShapes to create unique shape index) + $reducedSpId = $countShapes[$sheetIndex]; + $spId = $reducedSpId + | ($sheet->getParent()->getIndex($sheet) + 1) << 10; + $spContainer->setSpId($spId); + + // keep track of last reducedSpId + $lastReducedSpId = $reducedSpId; + + // keep track of last spId + $lastSpId = $spId; + + // set the BLIP index + $spContainer->setOPT(0x4104, $blipIndex); + + // set coordinates and offsets, client anchor + $coordinates = $drawing->getCoordinates(); + $offsetX = $drawing->getOffsetX(); + $offsetY = $drawing->getOffsetY(); + $width = $drawing->getWidth(); + $height = $drawing->getHeight(); + + $twoAnchor = PHPExcel_Shared_Excel5::oneAnchor2twoAnchor($sheet, $coordinates, $offsetX, $offsetY, $width, $height); + + $spContainer->setStartCoordinates($twoAnchor['startCoordinates']); + $spContainer->setStartOffsetX($twoAnchor['startOffsetX']); + $spContainer->setStartOffsetY($twoAnchor['startOffsetY']); + $spContainer->setEndCoordinates($twoAnchor['endCoordinates']); + $spContainer->setEndOffsetX($twoAnchor['endOffsetX']); + $spContainer->setEndOffsetY($twoAnchor['endOffsetY']); + + $spgrContainer->addChild($spContainer); + } + + // AutoFilters + if(!empty($filterRange)){ + $rangeBounds = PHPExcel_Cell::rangeBoundaries($filterRange); + $iNumColStart = $rangeBounds[0][0]; + $iNumColEnd = $rangeBounds[1][0]; + + $iInc = $iNumColStart; + while($iInc <= $iNumColEnd){ + ++$countShapes[$sheetIndex]; + + // create an Drawing Object for the dropdown + $oDrawing = new PHPExcel_Worksheet_BaseDrawing(); + // get the coordinates of drawing + $cDrawing = PHPExcel_Cell::stringFromColumnIndex($iInc - 1) . $rangeBounds[0][1]; + $oDrawing->setCoordinates($cDrawing); + $oDrawing->setWorksheet($sheet); + + // add the shape + $spContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer(); + // set the shape type + $spContainer->setSpType(0x00C9); + // set the shape flag + $spContainer->setSpFlag(0x01); + + // set the shape index (we combine 1-based sheet index and $countShapes to create unique shape index) + $reducedSpId = $countShapes[$sheetIndex]; + $spId = $reducedSpId + | ($sheet->getParent()->getIndex($sheet) + 1) << 10; + $spContainer->setSpId($spId); + + // keep track of last reducedSpId + $lastReducedSpId = $reducedSpId; + + // keep track of last spId + $lastSpId = $spId; + + $spContainer->setOPT(0x007F, 0x01040104); // Protection -> fLockAgainstGrouping + $spContainer->setOPT(0x00BF, 0x00080008); // Text -> fFitTextToShape + $spContainer->setOPT(0x01BF, 0x00010000); // Fill Style -> fNoFillHitTest + $spContainer->setOPT(0x01FF, 0x00080000); // Line Style -> fNoLineDrawDash + $spContainer->setOPT(0x03BF, 0x000A0000); // Group Shape -> fPrint + + // set coordinates and offsets, client anchor + $endCoordinates = PHPExcel_Cell::stringFromColumnIndex(PHPExcel_Cell::stringFromColumnIndex($iInc - 1)); + $endCoordinates .= $rangeBounds[0][1] + 1; + + $spContainer->setStartCoordinates($cDrawing); + $spContainer->setStartOffsetX(0); + $spContainer->setStartOffsetY(0); + $spContainer->setEndCoordinates($endCoordinates); + $spContainer->setEndOffsetX(0); + $spContainer->setEndOffsetY(0); + + $spgrContainer->addChild($spContainer); + $iInc++; + } + } + + // identifier clusters, used for workbook Escher object + $this->_IDCLs[$dgId] = $lastReducedSpId; + + // set last shape index + $dgContainer->setLastSpId($lastSpId); + + // set the Escher object + $this->_writerWorksheets[$sheetIndex]->setEscher($escher); + } + } + + /** + * Build the Escher object corresponding to the MSODRAWINGGROUP record + */ + private function _buildWorkbookEscher() + { + $escher = null; + + // any drawings in this workbook? + $found = false; + foreach ($this->_phpExcel->getAllSheets() as $sheet) { + if (count($sheet->getDrawingCollection()) > 0) { + $found = true; + break; + } + } + + // nothing to do if there are no drawings + if (!$found) { + return; + } + + // if we reach here, then there are drawings in the workbook + $escher = new PHPExcel_Shared_Escher(); + + // dggContainer + $dggContainer = new PHPExcel_Shared_Escher_DggContainer(); + $escher->setDggContainer($dggContainer); + + // set IDCLs (identifier clusters) + $dggContainer->setIDCLs($this->_IDCLs); + + // this loop is for determining maximum shape identifier of all drawing + $spIdMax = 0; + $totalCountShapes = 0; + $countDrawings = 0; + + foreach ($this->_phpExcel->getAllsheets() as $sheet) { + $sheetCountShapes = 0; // count number of shapes (minus group shape), in sheet + + if (count($sheet->getDrawingCollection()) > 0) { + ++$countDrawings; + + foreach ($sheet->getDrawingCollection() as $drawing) { + ++$sheetCountShapes; + ++$totalCountShapes; + + $spId = $sheetCountShapes + | ($this->_phpExcel->getIndex($sheet) + 1) << 10; + $spIdMax = max($spId, $spIdMax); + } + } + } + + $dggContainer->setSpIdMax($spIdMax + 1); + $dggContainer->setCDgSaved($countDrawings); + $dggContainer->setCSpSaved($totalCountShapes + $countDrawings); // total number of shapes incl. one group shapes per drawing + + // bstoreContainer + $bstoreContainer = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer(); + $dggContainer->setBstoreContainer($bstoreContainer); + + // the BSE's (all the images) + foreach ($this->_phpExcel->getAllsheets() as $sheet) { + foreach ($sheet->getDrawingCollection() as $drawing) { + if ($drawing instanceof PHPExcel_Worksheet_Drawing) { + + $filename = $drawing->getPath(); + + list($imagesx, $imagesy, $imageFormat) = getimagesize($filename); + + switch ($imageFormat) { + + case 1: // GIF, not supported by BIFF8, we convert to PNG + $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG; + ob_start(); + imagepng(imagecreatefromgif($filename)); + $blipData = ob_get_contents(); + ob_end_clean(); + break; + + case 2: // JPEG + $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_JPEG; + $blipData = file_get_contents($filename); + break; + + case 3: // PNG + $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG; + $blipData = file_get_contents($filename); + break; + + case 6: // Windows DIB (BMP), we convert to PNG + $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG; + ob_start(); + imagepng(PHPExcel_Shared_Drawing::imagecreatefrombmp($filename)); + $blipData = ob_get_contents(); + ob_end_clean(); + break; + + default: continue 2; + + } + + $blip = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip(); + $blip->setData($blipData); + + $BSE = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE(); + $BSE->setBlipType($blipType); + $BSE->setBlip($blip); + + $bstoreContainer->addBSE($BSE); + + } else if ($drawing instanceof PHPExcel_Worksheet_MemoryDrawing) { + + switch ($drawing->getRenderingFunction()) { + + case PHPExcel_Worksheet_MemoryDrawing::RENDERING_JPEG: + $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_JPEG; + $renderingFunction = 'imagejpeg'; + break; + + case PHPExcel_Worksheet_MemoryDrawing::RENDERING_GIF: + case PHPExcel_Worksheet_MemoryDrawing::RENDERING_PNG: + case PHPExcel_Worksheet_MemoryDrawing::RENDERING_DEFAULT: + $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG; + $renderingFunction = 'imagepng'; + break; + + } + + ob_start(); + call_user_func($renderingFunction, $drawing->getImageResource()); + $blipData = ob_get_contents(); + ob_end_clean(); + + $blip = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip(); + $blip->setData($blipData); + + $BSE = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE(); + $BSE->setBlipType($blipType); + $BSE->setBlip($blip); + + $bstoreContainer->addBSE($BSE); + } + } + } + + // Set the Escher object + $this->_writerWorkbook->setEscher($escher); + } + + /** + * Build the OLE Part for DocumentSummary Information + * @return string + */ + private function _writeDocumentSummaryInformation(){ + + // offset: 0; size: 2; must be 0xFE 0xFF (UTF-16 LE byte order mark) + $data = pack('v', 0xFFFE); + // offset: 2; size: 2; + $data .= pack('v', 0x0000); + // offset: 4; size: 2; OS version + $data .= pack('v', 0x0106); + // offset: 6; size: 2; OS indicator + $data .= pack('v', 0x0002); + // offset: 8; size: 16 + $data .= pack('VVVV', 0x00, 0x00, 0x00, 0x00); + // offset: 24; size: 4; section count + $data .= pack('V', 0x0001); + + // offset: 28; size: 16; first section's class id: 02 d5 cd d5 9c 2e 1b 10 93 97 08 00 2b 2c f9 ae + $data .= pack('vvvvvvvv', 0xD502, 0xD5CD, 0x2E9C, 0x101B, 0x9793, 0x0008, 0x2C2B, 0xAEF9); + // offset: 44; size: 4; offset of the start + $data .= pack('V', 0x30); + + // SECTION + $dataSection = array(); + $dataSection_NumProps = 0; + $dataSection_Summary = ''; + $dataSection_Content = ''; + + // GKPIDDSI_CODEPAGE: CodePage + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x01), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x02), // 2 byte signed integer + 'data' => array('data' => 1252)); + $dataSection_NumProps++; + + // GKPIDDSI_CATEGORY : Category + if($this->_phpExcel->getProperties()->getCategory()){ + $dataProp = $this->_phpExcel->getProperties()->getCategory(); + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x02), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x1E), + 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); + $dataSection_NumProps++; + } + // GKPIDDSI_VERSION :Version of the application that wrote the property storage + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x17), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x03), + 'data' => array('pack' => 'V', 'data' => 0x000C0000)); + $dataSection_NumProps++; + // GKPIDDSI_SCALE : FALSE + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0B), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x0B), + 'data' => array('data' => false)); + $dataSection_NumProps++; + // GKPIDDSI_LINKSDIRTY : True if any of the values for the linked properties have changed outside of the application + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x10), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x0B), + 'data' => array('data' => false)); + $dataSection_NumProps++; + // GKPIDDSI_SHAREDOC : FALSE + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x13), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x0B), + 'data' => array('data' => false)); + $dataSection_NumProps++; + // GKPIDDSI_HYPERLINKSCHANGED : True if any of the values for the _PID_LINKS (hyperlink text) have changed outside of the application + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x16), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x0B), + 'data' => array('data' => false)); + $dataSection_NumProps++; + + // GKPIDDSI_DOCSPARTS + // MS-OSHARED p75 (2.3.3.2.2.1) + // Structure is VtVecUnalignedLpstrValue (2.3.3.1.9) + // cElements + $dataProp = pack('v', 0x0001); + $dataProp .= pack('v', 0x0000); + // array of UnalignedLpstr + // cch + $dataProp .= pack('v', 0x000A); + $dataProp .= pack('v', 0x0000); + // value + $dataProp .= 'Worksheet'.chr(0); + + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0D), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x101E), + 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); + $dataSection_NumProps++; + + // GKPIDDSI_HEADINGPAIR + // VtVecHeadingPairValue + // cElements + $dataProp = pack('v', 0x0002); + $dataProp .= pack('v', 0x0000); + // Array of vtHeadingPair + // vtUnalignedString - headingString + // stringType + $dataProp .= pack('v', 0x001E); + // padding + $dataProp .= pack('v', 0x0000); + // UnalignedLpstr + // cch + $dataProp .= pack('v', 0x0013); + $dataProp .= pack('v', 0x0000); + // value + $dataProp .= 'Feuilles de calcul'; + // vtUnalignedString - headingParts + // wType : 0x0003 = 32 bit signed integer + $dataProp .= pack('v', 0x0300); + // padding + $dataProp .= pack('v', 0x0000); + // value + $dataProp .= pack('v', 0x0100); + $dataProp .= pack('v', 0x0000); + $dataProp .= pack('v', 0x0000); + $dataProp .= pack('v', 0x0000); + + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0C), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x100C), + 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); + $dataSection_NumProps++; + + // 4 Section Length + // 4 Property count + // 8 * $dataSection_NumProps (8 = ID (4) + OffSet(4)) + $dataSection_Content_Offset = 8 + $dataSection_NumProps * 8; + foreach ($dataSection as $dataProp){ + // Summary + $dataSection_Summary .= pack($dataProp['summary']['pack'], $dataProp['summary']['data']); + // Offset + $dataSection_Summary .= pack($dataProp['offset']['pack'], $dataSection_Content_Offset); + // DataType + $dataSection_Content .= pack($dataProp['type']['pack'], $dataProp['type']['data']); + // Data + if($dataProp['type']['data'] == 0x02){ // 2 byte signed integer + $dataSection_Content .= pack('V', $dataProp['data']['data']); + + $dataSection_Content_Offset += 4 + 4; + } + elseif($dataProp['type']['data'] == 0x03){ // 4 byte signed integer + $dataSection_Content .= pack('V', $dataProp['data']['data']); + + $dataSection_Content_Offset += 4 + 4; + } + elseif($dataProp['type']['data'] == 0x0B){ // Boolean + if($dataProp['data']['data'] == false){ + $dataSection_Content .= pack('V', 0x0000); + } else { + $dataSection_Content .= pack('V', 0x0001); + } + $dataSection_Content_Offset += 4 + 4; + } + elseif($dataProp['type']['data'] == 0x1E){ // null-terminated string prepended by dword string length + // Null-terminated string + $dataProp['data']['data'] .= chr(0); + $dataProp['data']['length'] += 1; + // Complete the string with null string for being a %4 + $dataProp['data']['length'] = $dataProp['data']['length'] + ((4 - $dataProp['data']['length'] % 4)==4 ? 0 : (4 - $dataProp['data']['length'] % 4)); + $dataProp['data']['data'] = str_pad($dataProp['data']['data'], $dataProp['data']['length'], chr(0), STR_PAD_RIGHT); + + $dataSection_Content .= pack('V', $dataProp['data']['length']); + $dataSection_Content .= $dataProp['data']['data']; + + $dataSection_Content_Offset += 4 + 4 + strlen($dataProp['data']['data']); + } + elseif($dataProp['type']['data'] == 0x40){ // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601) + $dataSection_Content .= $dataProp['data']['data']; + + $dataSection_Content_Offset += 4 + 8; + } + else { + // Data Type Not Used at the moment + $dataSection_Content .= $dataProp['data']['data']; + + $dataSection_Content_Offset += 4 + $dataProp['data']['length']; + } + } + // Now $dataSection_Content_Offset contains the size of the content + + // section header + // offset: $secOffset; size: 4; section length + // + x Size of the content (summary + content) + $data .= pack('V', $dataSection_Content_Offset); + // offset: $secOffset+4; size: 4; property count + $data .= pack('V', $dataSection_NumProps); + // Section Summary + $data .= $dataSection_Summary; + // Section Content + $data .= $dataSection_Content; + + return $data; + } + + /** + * Build the OLE Part for Summary Information + * @return string + */ + private function _writeSummaryInformation(){ + // offset: 0; size: 2; must be 0xFE 0xFF (UTF-16 LE byte order mark) + $data = pack('v', 0xFFFE); + // offset: 2; size: 2; + $data .= pack('v', 0x0000); + // offset: 4; size: 2; OS version + $data .= pack('v', 0x0106); + // offset: 6; size: 2; OS indicator + $data .= pack('v', 0x0002); + // offset: 8; size: 16 + $data .= pack('VVVV', 0x00, 0x00, 0x00, 0x00); + // offset: 24; size: 4; section count + $data .= pack('V', 0x0001); + + // offset: 28; size: 16; first section's class id: e0 85 9f f2 f9 4f 68 10 ab 91 08 00 2b 27 b3 d9 + $data .= pack('vvvvvvvv', 0x85E0, 0xF29F, 0x4FF9, 0x1068, 0x91AB, 0x0008, 0x272B, 0xD9B3); + // offset: 44; size: 4; offset of the start + $data .= pack('V', 0x30); + + // SECTION + $dataSection = array(); + $dataSection_NumProps = 0; + $dataSection_Summary = ''; + $dataSection_Content = ''; + + // CodePage : CP-1252 + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x01), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x02), // 2 byte signed integer + 'data' => array('data' => 1252)); + $dataSection_NumProps++; + + // Title + if($this->_phpExcel->getProperties()->getTitle()){ + $dataProp = $this->_phpExcel->getProperties()->getTitle(); + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x02), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length + 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); + $dataSection_NumProps++; + } + // Subject + if($this->_phpExcel->getProperties()->getSubject()){ + $dataProp = $this->_phpExcel->getProperties()->getSubject(); + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x03), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length + 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); + $dataSection_NumProps++; + } + // Author (Creator) + if($this->_phpExcel->getProperties()->getCreator()){ + $dataProp = $this->_phpExcel->getProperties()->getCreator(); + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x04), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length + 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); + $dataSection_NumProps++; + } + // Keywords + if($this->_phpExcel->getProperties()->getKeywords()){ + $dataProp = $this->_phpExcel->getProperties()->getKeywords(); + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x05), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length + 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); + $dataSection_NumProps++; + } + // Comments (Description) + if($this->_phpExcel->getProperties()->getDescription()){ + $dataProp = $this->_phpExcel->getProperties()->getDescription(); + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x06), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length + 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); + $dataSection_NumProps++; + } + // Last Saved By (LastModifiedBy) + if($this->_phpExcel->getProperties()->getLastModifiedBy()){ + $dataProp = $this->_phpExcel->getProperties()->getLastModifiedBy(); + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x08), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length + 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); + $dataSection_NumProps++; + } + // Created Date/Time + if($this->_phpExcel->getProperties()->getCreated()){ + $dataProp = $this->_phpExcel->getProperties()->getCreated(); + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0C), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x40), // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601) + 'data' => array('data' => PHPExcel_Shared_OLE::LocalDate2OLE($dataProp))); + $dataSection_NumProps++; + } + // Modified Date/Time + if($this->_phpExcel->getProperties()->getModified()){ + $dataProp = $this->_phpExcel->getProperties()->getModified(); + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0D), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x40), // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601) + 'data' => array('data' => PHPExcel_Shared_OLE::LocalDate2OLE($dataProp))); + $dataSection_NumProps++; + } + // Security + $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x13), + 'offset' => array('pack' => 'V'), + 'type' => array('pack' => 'V', 'data' => 0x03), // 4 byte signed integer + 'data' => array('data' => 0x00)); + $dataSection_NumProps++; + + + // 4 Section Length + // 4 Property count + // 8 * $dataSection_NumProps (8 = ID (4) + OffSet(4)) + $dataSection_Content_Offset = 8 + $dataSection_NumProps * 8; + foreach ($dataSection as $dataProp){ + // Summary + $dataSection_Summary .= pack($dataProp['summary']['pack'], $dataProp['summary']['data']); + // Offset + $dataSection_Summary .= pack($dataProp['offset']['pack'], $dataSection_Content_Offset); + // DataType + $dataSection_Content .= pack($dataProp['type']['pack'], $dataProp['type']['data']); + // Data + if($dataProp['type']['data'] == 0x02){ // 2 byte signed integer + $dataSection_Content .= pack('V', $dataProp['data']['data']); + + $dataSection_Content_Offset += 4 + 4; + } + elseif($dataProp['type']['data'] == 0x03){ // 4 byte signed integer + $dataSection_Content .= pack('V', $dataProp['data']['data']); + + $dataSection_Content_Offset += 4 + 4; + } + elseif($dataProp['type']['data'] == 0x1E){ // null-terminated string prepended by dword string length + // Null-terminated string + $dataProp['data']['data'] .= chr(0); + $dataProp['data']['length'] += 1; + // Complete the string with null string for being a %4 + $dataProp['data']['length'] = $dataProp['data']['length'] + ((4 - $dataProp['data']['length'] % 4)==4 ? 0 : (4 - $dataProp['data']['length'] % 4)); + $dataProp['data']['data'] = str_pad($dataProp['data']['data'], $dataProp['data']['length'], chr(0), STR_PAD_RIGHT); + + $dataSection_Content .= pack('V', $dataProp['data']['length']); + $dataSection_Content .= $dataProp['data']['data']; + + $dataSection_Content_Offset += 4 + 4 + strlen($dataProp['data']['data']); + } + elseif($dataProp['type']['data'] == 0x40){ // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601) + $dataSection_Content .= $dataProp['data']['data']; + + $dataSection_Content_Offset += 4 + 8; + } + else { + // Data Type Not Used at the moment + } + } + // Now $dataSection_Content_Offset contains the size of the content + + // section header + // offset: $secOffset; size: 4; section length + // + x Size of the content (summary + content) + $data .= pack('V', $dataSection_Content_Offset); + // offset: $secOffset+4; size: 4; property count + $data .= pack('V', $dataSection_NumProps); + // Section Summary + $data .= $dataSection_Summary; + // Section Content + $data .= $dataSection_Content; + + return $data; + } +} diff --git a/admin/helpers/PHPExcel/Writer/Excel5/BIFFwriter.php b/admin/helpers/PHPExcel/Writer/Excel5/BIFFwriter.php new file mode 100644 index 00000000..86201134 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel5/BIFFwriter.php @@ -0,0 +1,255 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +// Original file header of PEAR::Spreadsheet_Excel_Writer_BIFFwriter (used as the base for this class): +// ----------------------------------------------------------------------------------------- +// * Module written/ported by Xavier Noguer <xnoguer@rezebra.com> +// * +// * The majority of this is _NOT_ my code. I simply ported it from the +// * PERL Spreadsheet::WriteExcel module. +// * +// * The author of the Spreadsheet::WriteExcel module is John McNamara +// * <jmcnamara@cpan.org> +// * +// * I _DO_ maintain this code, and John McNamara has nothing to do with the +// * porting of this code to PHP. Any questions directly related to this +// * class library should be directed to me. +// * +// * License Information: +// * +// * Spreadsheet_Excel_Writer: A library for generating Excel Spreadsheets +// * Copyright (c) 2002-2003 Xavier Noguer xnoguer@rezebra.com +// * +// * This library is free software; you can redistribute it and/or +// * modify it under the terms of the GNU Lesser General Public +// * License as published by the Free Software Foundation; either +// * version 2.1 of the License, or (at your option) any later version. +// * +// * This library 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 +// * Lesser General Public License for more details. +// * +// * You should have received a copy of the GNU Lesser General Public +// * License along with this library; if not, write to the Free Software +// * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// */ + + +/** + * PHPExcel_Writer_Excel5_BIFFwriter + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel5_BIFFwriter +{ + /** + * The byte order of this architecture. 0 => little endian, 1 => big endian + * @var integer + */ + private static $_byte_order; + + /** + * The string containing the data of the BIFF stream + * @var string + */ + public $_data; + + /** + * The size of the data in bytes. Should be the same as strlen($this->_data) + * @var integer + */ + public $_datasize; + + /** + * The maximum length for a BIFF record (excluding record header and length field). See _addContinue() + * @var integer + * @see _addContinue() + */ + public $_limit = 8224; + + /** + * Constructor + */ + public function __construct() + { + $this->_data = ''; + $this->_datasize = 0; +// $this->_limit = 8224; + } + + /** + * Determine the byte order and store it as class data to avoid + * recalculating it for each call to new(). + * + * @return int + */ + public static function getByteOrder() + { + if (!isset(self::$_byte_order)) { + // Check if "pack" gives the required IEEE 64bit float + $teststr = pack("d", 1.2345); + $number = pack("C8", 0x8D, 0x97, 0x6E, 0x12, 0x83, 0xC0, 0xF3, 0x3F); + if ($number == $teststr) { + $byte_order = 0; // Little Endian + } elseif ($number == strrev($teststr)){ + $byte_order = 1; // Big Endian + } else { + // Give up. I'll fix this in a later version. + throw new PHPExcel_Writer_Exception("Required floating point format not supported on this platform."); + } + self::$_byte_order = $byte_order; + } + + return self::$_byte_order; + } + + /** + * General storage function + * + * @param string $data binary data to append + * @access private + */ + function _append($data) + { + if (strlen($data) - 4 > $this->_limit) { + $data = $this->_addContinue($data); + } + $this->_data .= $data; + $this->_datasize += strlen($data); + } + + /** + * General storage function like _append, but returns string instead of modifying $this->_data + * + * @param string $data binary data to write + * @return string + */ + public function writeData($data) + { + if (strlen($data) - 4 > $this->_limit) { + $data = $this->_addContinue($data); + } + $this->_datasize += strlen($data); + + return $data; + } + + /** + * Writes Excel BOF record to indicate the beginning of a stream or + * sub-stream in the BIFF file. + * + * @param integer $type Type of BIFF file to write: 0x0005 Workbook, + * 0x0010 Worksheet. + * @access private + */ + function _storeBof($type) + { + $record = 0x0809; // Record identifier (BIFF5-BIFF8) + $length = 0x0010; + + // by inspection of real files, MS Office Excel 2007 writes the following + $unknown = pack("VV", 0x000100D1, 0x00000406); + + $build = 0x0DBB; // Excel 97 + $year = 0x07CC; // Excel 97 + + $version = 0x0600; // BIFF8 + + $header = pack("vv", $record, $length); + $data = pack("vvvv", $version, $type, $build, $year); + $this->_append($header . $data . $unknown); + } + + /** + * Writes Excel EOF record to indicate the end of a BIFF stream. + * + * @access private + */ + function _storeEof() + { + $record = 0x000A; // Record identifier + $length = 0x0000; // Number of bytes to follow + + $header = pack("vv", $record, $length); + $this->_append($header); + } + + /** + * Writes Excel EOF record to indicate the end of a BIFF stream. + * + * @access private + */ + public function writeEof() + { + $record = 0x000A; // Record identifier + $length = 0x0000; // Number of bytes to follow + $header = pack("vv", $record, $length); + return $this->writeData($header); + } + + /** + * Excel limits the size of BIFF records. In Excel 5 the limit is 2084 bytes. In + * Excel 97 the limit is 8228 bytes. Records that are longer than these limits + * must be split up into CONTINUE blocks. + * + * This function takes a long BIFF record and inserts CONTINUE records as + * necessary. + * + * @param string $data The original binary data to be written + * @return string A very convenient string of continue blocks + * @access private + */ + function _addContinue($data) + { + $limit = $this->_limit; + $record = 0x003C; // Record identifier + + // The first 2080/8224 bytes remain intact. However, we have to change + // the length field of the record. + $tmp = substr($data, 0, 2) . pack("v", $limit) . substr($data, 4, $limit); + + $header = pack("vv", $record, $limit); // Headers for continue records + + // Retrieve chunks of 2080/8224 bytes +4 for the header. + $data_length = strlen($data); + for ($i = $limit + 4; $i < ($data_length - $limit); $i += $limit) { + $tmp .= $header; + $tmp .= substr($data, $i, $limit); + } + + // Retrieve the last chunk of data + $header = pack("vv", $record, strlen($data) - $i); + $tmp .= $header; + $tmp .= substr($data, $i, strlen($data) - $i); + + return $tmp; + } + +} diff --git a/admin/helpers/PHPExcel/Writer/Excel5/Escher.php b/admin/helpers/PHPExcel/Writer/Excel5/Escher.php new file mode 100644 index 00000000..92e6a8d8 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel5/Escher.php @@ -0,0 +1,537 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Shared_Escher_DggContainer_BstoreContainer + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel5_Escher +{ + /** + * The object we are writing + */ + private $_object; + + /** + * The written binary data + */ + private $_data; + + /** + * Shape offsets. Positions in binary stream where a new shape record begins + * + * @var array + */ + private $_spOffsets; + + /** + * Shape types. + * + * @var array + */ + private $_spTypes; + + /** + * Constructor + * + * @param mixed + */ + public function __construct($object) + { + $this->_object = $object; + } + + /** + * Process the object to be written + */ + public function close() + { + // initialize + $this->_data = ''; + + switch (get_class($this->_object)) { + + case 'PHPExcel_Shared_Escher': + if ($dggContainer = $this->_object->getDggContainer()) { + $writer = new PHPExcel_Writer_Excel5_Escher($dggContainer); + $this->_data = $writer->close(); + } else if ($dgContainer = $this->_object->getDgContainer()) { + $writer = new PHPExcel_Writer_Excel5_Escher($dgContainer); + $this->_data = $writer->close(); + $this->_spOffsets = $writer->getSpOffsets(); + $this->_spTypes = $writer->getSpTypes(); + } + break; + + case 'PHPExcel_Shared_Escher_DggContainer': + // this is a container record + + // initialize + $innerData = ''; + + // write the dgg + $recVer = 0x0; + $recInstance = 0x0000; + $recType = 0xF006; + + $recVerInstance = $recVer; + $recVerInstance |= $recInstance << 4; + + // dgg data + $dggData = + pack('VVVV' + , $this->_object->getSpIdMax() // maximum shape identifier increased by one + , $this->_object->getCDgSaved() + 1 // number of file identifier clusters increased by one + , $this->_object->getCSpSaved() + , $this->_object->getCDgSaved() // count total number of drawings saved + ); + + // add file identifier clusters (one per drawing) + $IDCLs = $this->_object->getIDCLs(); + + foreach ($IDCLs as $dgId => $maxReducedSpId) { + $dggData .= pack('VV', $dgId, $maxReducedSpId + 1); + } + + $header = pack('vvV', $recVerInstance, $recType, strlen($dggData)); + $innerData .= $header . $dggData; + + // write the bstoreContainer + if ($bstoreContainer = $this->_object->getBstoreContainer()) { + $writer = new PHPExcel_Writer_Excel5_Escher($bstoreContainer); + $innerData .= $writer->close(); + } + + // write the record + $recVer = 0xF; + $recInstance = 0x0000; + $recType = 0xF000; + $length = strlen($innerData); + + $recVerInstance = $recVer; + $recVerInstance |= $recInstance << 4; + + $header = pack('vvV', $recVerInstance, $recType, $length); + + $this->_data = $header . $innerData; + break; + + case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer': + // this is a container record + + // initialize + $innerData = ''; + + // treat the inner data + if ($BSECollection = $this->_object->getBSECollection()) { + foreach ($BSECollection as $BSE) { + $writer = new PHPExcel_Writer_Excel5_Escher($BSE); + $innerData .= $writer->close(); + } + } + + // write the record + $recVer = 0xF; + $recInstance = count($this->_object->getBSECollection()); + $recType = 0xF001; + $length = strlen($innerData); + + $recVerInstance = $recVer; + $recVerInstance |= $recInstance << 4; + + $header = pack('vvV', $recVerInstance, $recType, $length); + + $this->_data = $header . $innerData; + break; + + case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE': + // this is a semi-container record + + // initialize + $innerData = ''; + + // here we treat the inner data + if ($blip = $this->_object->getBlip()) { + $writer = new PHPExcel_Writer_Excel5_Escher($blip); + $innerData .= $writer->close(); + } + + // initialize + $data = ''; + + $btWin32 = $this->_object->getBlipType(); + $btMacOS = $this->_object->getBlipType(); + $data .= pack('CC', $btWin32, $btMacOS); + + $rgbUid = pack('VVVV', 0,0,0,0); // todo + $data .= $rgbUid; + + $tag = 0; + $size = strlen($innerData); + $cRef = 1; + $foDelay = 0; //todo + $unused1 = 0x0; + $cbName = 0x0; + $unused2 = 0x0; + $unused3 = 0x0; + $data .= pack('vVVVCCCC', $tag, $size, $cRef, $foDelay, $unused1, $cbName, $unused2, $unused3); + + $data .= $innerData; + + // write the record + $recVer = 0x2; + $recInstance = $this->_object->getBlipType(); + $recType = 0xF007; + $length = strlen($data); + + $recVerInstance = $recVer; + $recVerInstance |= $recInstance << 4; + + $header = pack('vvV', $recVerInstance, $recType, $length); + + $this->_data = $header; + + $this->_data .= $data; + break; + + case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip': + // this is an atom record + + // write the record + switch ($this->_object->getParent()->getBlipType()) { + + case PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_JPEG: + // initialize + $innerData = ''; + + $rgbUid1 = pack('VVVV', 0,0,0,0); // todo + $innerData .= $rgbUid1; + + $tag = 0xFF; // todo + $innerData .= pack('C', $tag); + + $innerData .= $this->_object->getData(); + + $recVer = 0x0; + $recInstance = 0x46A; + $recType = 0xF01D; + $length = strlen($innerData); + + $recVerInstance = $recVer; + $recVerInstance |= $recInstance << 4; + + $header = pack('vvV', $recVerInstance, $recType, $length); + + $this->_data = $header; + + $this->_data .= $innerData; + break; + + case PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG: + // initialize + $innerData = ''; + + $rgbUid1 = pack('VVVV', 0,0,0,0); // todo + $innerData .= $rgbUid1; + + $tag = 0xFF; // todo + $innerData .= pack('C', $tag); + + $innerData .= $this->_object->getData(); + + $recVer = 0x0; + $recInstance = 0x6E0; + $recType = 0xF01E; + $length = strlen($innerData); + + $recVerInstance = $recVer; + $recVerInstance |= $recInstance << 4; + + $header = pack('vvV', $recVerInstance, $recType, $length); + + $this->_data = $header; + + $this->_data .= $innerData; + break; + + } + break; + + case 'PHPExcel_Shared_Escher_DgContainer': + // this is a container record + + // initialize + $innerData = ''; + + // write the dg + $recVer = 0x0; + $recInstance = $this->_object->getDgId(); + $recType = 0xF008; + $length = 8; + + $recVerInstance = $recVer; + $recVerInstance |= $recInstance << 4; + + $header = pack('vvV', $recVerInstance, $recType, $length); + + // number of shapes in this drawing (including group shape) + $countShapes = count($this->_object->getSpgrContainer()->getChildren()); + $innerData .= $header . pack('VV', $countShapes, $this->_object->getLastSpId()); + //$innerData .= $header . pack('VV', 0, 0); + + // write the spgrContainer + if ($spgrContainer = $this->_object->getSpgrContainer()) { + $writer = new PHPExcel_Writer_Excel5_Escher($spgrContainer); + $innerData .= $writer->close(); + + // get the shape offsets relative to the spgrContainer record + $spOffsets = $writer->getSpOffsets(); + $spTypes = $writer->getSpTypes(); + + // save the shape offsets relative to dgContainer + foreach ($spOffsets as & $spOffset) { + $spOffset += 24; // add length of dgContainer header data (8 bytes) plus dg data (16 bytes) + } + + $this->_spOffsets = $spOffsets; + $this->_spTypes = $spTypes; + } + + // write the record + $recVer = 0xF; + $recInstance = 0x0000; + $recType = 0xF002; + $length = strlen($innerData); + + $recVerInstance = $recVer; + $recVerInstance |= $recInstance << 4; + + $header = pack('vvV', $recVerInstance, $recType, $length); + + $this->_data = $header . $innerData; + break; + + case 'PHPExcel_Shared_Escher_DgContainer_SpgrContainer': + // this is a container record + + // initialize + $innerData = ''; + + // initialize spape offsets + $totalSize = 8; + $spOffsets = array(); + $spTypes = array(); + + // treat the inner data + foreach ($this->_object->getChildren() as $spContainer) { + $writer = new PHPExcel_Writer_Excel5_Escher($spContainer); + $spData = $writer->close(); + $innerData .= $spData; + + // save the shape offsets (where new shape records begin) + $totalSize += strlen($spData); + $spOffsets[] = $totalSize; + + $spTypes = array_merge($spTypes, $writer->getSpTypes()); + } + + // write the record + $recVer = 0xF; + $recInstance = 0x0000; + $recType = 0xF003; + $length = strlen($innerData); + + $recVerInstance = $recVer; + $recVerInstance |= $recInstance << 4; + + $header = pack('vvV', $recVerInstance, $recType, $length); + + $this->_data = $header . $innerData; + $this->_spOffsets = $spOffsets; + $this->_spTypes = $spTypes; + break; + + case 'PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer': + // initialize + $data = ''; + + // build the data + + // write group shape record, if necessary? + if ($this->_object->getSpgr()) { + $recVer = 0x1; + $recInstance = 0x0000; + $recType = 0xF009; + $length = 0x00000010; + + $recVerInstance = $recVer; + $recVerInstance |= $recInstance << 4; + + $header = pack('vvV', $recVerInstance, $recType, $length); + + $data .= $header . pack('VVVV', 0,0,0,0); + } + $this->_spTypes[] = ($this->_object->getSpType()); + + // write the shape record + $recVer = 0x2; + $recInstance = $this->_object->getSpType(); // shape type + $recType = 0xF00A; + $length = 0x00000008; + + $recVerInstance = $recVer; + $recVerInstance |= $recInstance << 4; + + $header = pack('vvV', $recVerInstance, $recType, $length); + + $data .= $header . pack('VV', $this->_object->getSpId(), $this->_object->getSpgr() ? 0x0005 : 0x0A00); + + + // the options + if ($this->_object->getOPTCollection()) { + $optData = ''; + + $recVer = 0x3; + $recInstance = count($this->_object->getOPTCollection()); + $recType = 0xF00B; + foreach ($this->_object->getOPTCollection() as $property => $value) { + $optData .= pack('vV', $property, $value); + } + $length = strlen($optData); + + $recVerInstance = $recVer; + $recVerInstance |= $recInstance << 4; + + $header = pack('vvV', $recVerInstance, $recType, $length); + $data .= $header . $optData; + } + + // the client anchor + if ($this->_object->getStartCoordinates()) { + $clientAnchorData = ''; + + $recVer = 0x0; + $recInstance = 0x0; + $recType = 0xF010; + + // start coordinates + list($column, $row) = PHPExcel_Cell::coordinateFromString($this->_object->getStartCoordinates()); + $c1 = PHPExcel_Cell::columnIndexFromString($column) - 1; + $r1 = $row - 1; + + // start offsetX + $startOffsetX = $this->_object->getStartOffsetX(); + + // start offsetY + $startOffsetY = $this->_object->getStartOffsetY(); + + // end coordinates + list($column, $row) = PHPExcel_Cell::coordinateFromString($this->_object->getEndCoordinates()); + $c2 = PHPExcel_Cell::columnIndexFromString($column) - 1; + $r2 = $row - 1; + + // end offsetX + $endOffsetX = $this->_object->getEndOffsetX(); + + // end offsetY + $endOffsetY = $this->_object->getEndOffsetY(); + + $clientAnchorData = pack('vvvvvvvvv', $this->_object->getSpFlag(), + $c1, $startOffsetX, $r1, $startOffsetY, + $c2, $endOffsetX, $r2, $endOffsetY); + + $length = strlen($clientAnchorData); + + $recVerInstance = $recVer; + $recVerInstance |= $recInstance << 4; + + $header = pack('vvV', $recVerInstance, $recType, $length); + $data .= $header . $clientAnchorData; + } + + // the client data, just empty for now + if (!$this->_object->getSpgr()) { + $clientDataData = ''; + + $recVer = 0x0; + $recInstance = 0x0; + $recType = 0xF011; + + $length = strlen($clientDataData); + + $recVerInstance = $recVer; + $recVerInstance |= $recInstance << 4; + + $header = pack('vvV', $recVerInstance, $recType, $length); + $data .= $header . $clientDataData; + } + + // write the record + $recVer = 0xF; + $recInstance = 0x0000; + $recType = 0xF004; + $length = strlen($data); + + $recVerInstance = $recVer; + $recVerInstance |= $recInstance << 4; + + $header = pack('vvV', $recVerInstance, $recType, $length); + + $this->_data = $header . $data; + break; + + } + + return $this->_data; + } + + /** + * Gets the shape offsets + * + * @return array + */ + public function getSpOffsets() + { + return $this->_spOffsets; + } + + /** + * Gets the shape types + * + * @return array + */ + public function getSpTypes() + { + return $this->_spTypes; + } + + +} diff --git a/admin/helpers/PHPExcel/Writer/Excel5/Font.php b/admin/helpers/PHPExcel/Writer/Excel5/Font.php new file mode 100644 index 00000000..0df19438 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel5/Font.php @@ -0,0 +1,165 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Excel5_Font + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel5_Font +{ + /** + * Color index + * + * @var int + */ + private $_colorIndex; + + /** + * Font + * + * @var PHPExcel_Style_Font + */ + private $_font; + + /** + * Constructor + * + * @param PHPExcel_Style_Font $font + */ + public function __construct(PHPExcel_Style_Font $font = null) + { + $this->_colorIndex = 0x7FFF; + $this->_font = $font; + } + + /** + * Set the color index + * + * @param int $colorIndex + */ + public function setColorIndex($colorIndex) + { + $this->_colorIndex = $colorIndex; + } + + /** + * Get font record data + * + * @return string + */ + public function writeFont() + { + $font_outline = 0; + $font_shadow = 0; + + $icv = $this->_colorIndex; // Index to color palette + if ($this->_font->getSuperScript()) { + $sss = 1; + } else if ($this->_font->getSubScript()) { + $sss = 2; + } else { + $sss = 0; + } + $bFamily = 0; // Font family + $bCharSet = PHPExcel_Shared_Font::getCharsetFromFontName($this->_font->getName()); // Character set + + $record = 0x31; // Record identifier + $reserved = 0x00; // Reserved + $grbit = 0x00; // Font attributes + if ($this->_font->getItalic()) { + $grbit |= 0x02; + } + if ($this->_font->getStrikethrough()) { + $grbit |= 0x08; + } + if ($font_outline) { + $grbit |= 0x10; + } + if ($font_shadow) { + $grbit |= 0x20; + } + + $data = pack("vvvvvCCCC", + $this->_font->getSize() * 20, // Fontsize (in twips) + $grbit, + $icv, // Colour + self::_mapBold($this->_font->getBold()), // Font weight + $sss, // Superscript/Subscript + self::_mapUnderline($this->_font->getUnderline()), + $bFamily, + $bCharSet, + $reserved + ); + $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($this->_font->getName()); + + $length = strlen($data); + $header = pack("vv", $record, $length); + + return($header . $data); + } + + /** + * Map to BIFF5-BIFF8 codes for bold + * + * @param boolean $bold + * @return int + */ + private static function _mapBold($bold) { + if ($bold) { + return 0x2BC; // 700 = Bold font weight + } + return 0x190; // 400 = Normal font weight + } + + /** + * Map of BIFF2-BIFF8 codes for underline styles + * @static array of int + * + */ + private static $_mapUnderline = array( PHPExcel_Style_Font::UNDERLINE_NONE => 0x00, + PHPExcel_Style_Font::UNDERLINE_SINGLE => 0x01, + PHPExcel_Style_Font::UNDERLINE_DOUBLE => 0x02, + PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING => 0x21, + PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING => 0x22, + ); + /** + * Map underline + * + * @param string + * @return int + */ + private static function _mapUnderline($underline) { + if (isset(self::$_mapUnderline[$underline])) + return self::$_mapUnderline[$underline]; + return 0x00; + } + +} diff --git a/admin/helpers/PHPExcel/Writer/Excel5/Parser.php b/admin/helpers/PHPExcel/Writer/Excel5/Parser.php new file mode 100644 index 00000000..bc6ddb13 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel5/Parser.php @@ -0,0 +1,1583 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +// Original file header of PEAR::Spreadsheet_Excel_Writer_Parser (used as the base for this class): +// ----------------------------------------------------------------------------------------- +// * Class for parsing Excel formulas +// * +// * License Information: +// * +// * Spreadsheet_Excel_Writer: A library for generating Excel Spreadsheets +// * Copyright (c) 2002-2003 Xavier Noguer xnoguer@rezebra.com +// * +// * This library is free software; you can redistribute it and/or +// * modify it under the terms of the GNU Lesser General Public +// * License as published by the Free Software Foundation; either +// * version 2.1 of the License, or (at your option) any later version. +// * +// * This library 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 +// * Lesser General Public License for more details. +// * +// * You should have received a copy of the GNU Lesser General Public +// * License along with this library; if not, write to the Free Software +// * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// */ + + +/** + * PHPExcel_Writer_Excel5_Parser + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel5_Parser +{ + /** Constants */ + // Sheet title in unquoted form + // Invalid sheet title characters cannot occur in the sheet title: + // *:/\?[] + // Moreover, there are valid sheet title characters that cannot occur in unquoted form (there may be more?) + // +-% '^&<>=,;#()"{} + const REGEX_SHEET_TITLE_UNQUOTED = '[^\*\:\/\\\\\?\[\]\+\-\% \\\'\^\&\<\>\=\,\;\#\(\)\"\{\}]+'; + + // Sheet title in quoted form (without surrounding quotes) + // Invalid sheet title characters cannot occur in the sheet title: + // *:/\?[] (usual invalid sheet title characters) + // Single quote is represented as a pair '' + const REGEX_SHEET_TITLE_QUOTED = '(([^\*\:\/\\\\\?\[\]\\\'])+|(\\\'\\\')+)+'; + + /** + * The index of the character we are currently looking at + * @var integer + */ + public $_current_char; + + /** + * The token we are working on. + * @var string + */ + public $_current_token; + + /** + * The formula to parse + * @var string + */ + public $_formula; + + /** + * The character ahead of the current char + * @var string + */ + public $_lookahead; + + /** + * The parse tree to be generated + * @var string + */ + public $_parse_tree; + + /** + * Array of external sheets + * @var array + */ + public $_ext_sheets; + + /** + * Array of sheet references in the form of REF structures + * @var array + */ + public $_references; + + /** + * The class constructor + * + */ + public function __construct() + { + $this->_current_char = 0; + $this->_current_token = ''; // The token we are working on. + $this->_formula = ''; // The formula to parse. + $this->_lookahead = ''; // The character ahead of the current char. + $this->_parse_tree = ''; // The parse tree to be generated. + $this->_initializeHashes(); // Initialize the hashes: ptg's and function's ptg's + $this->_ext_sheets = array(); + $this->_references = array(); + } + + /** + * Initialize the ptg and function hashes. + * + * @access private + */ + function _initializeHashes() + { + // The Excel ptg indices + $this->ptg = array( + 'ptgExp' => 0x01, + 'ptgTbl' => 0x02, + 'ptgAdd' => 0x03, + 'ptgSub' => 0x04, + 'ptgMul' => 0x05, + 'ptgDiv' => 0x06, + 'ptgPower' => 0x07, + 'ptgConcat' => 0x08, + 'ptgLT' => 0x09, + 'ptgLE' => 0x0A, + 'ptgEQ' => 0x0B, + 'ptgGE' => 0x0C, + 'ptgGT' => 0x0D, + 'ptgNE' => 0x0E, + 'ptgIsect' => 0x0F, + 'ptgUnion' => 0x10, + 'ptgRange' => 0x11, + 'ptgUplus' => 0x12, + 'ptgUminus' => 0x13, + 'ptgPercent' => 0x14, + 'ptgParen' => 0x15, + 'ptgMissArg' => 0x16, + 'ptgStr' => 0x17, + 'ptgAttr' => 0x19, + 'ptgSheet' => 0x1A, + 'ptgEndSheet' => 0x1B, + 'ptgErr' => 0x1C, + 'ptgBool' => 0x1D, + 'ptgInt' => 0x1E, + 'ptgNum' => 0x1F, + 'ptgArray' => 0x20, + 'ptgFunc' => 0x21, + 'ptgFuncVar' => 0x22, + 'ptgName' => 0x23, + 'ptgRef' => 0x24, + 'ptgArea' => 0x25, + 'ptgMemArea' => 0x26, + 'ptgMemErr' => 0x27, + 'ptgMemNoMem' => 0x28, + 'ptgMemFunc' => 0x29, + 'ptgRefErr' => 0x2A, + 'ptgAreaErr' => 0x2B, + 'ptgRefN' => 0x2C, + 'ptgAreaN' => 0x2D, + 'ptgMemAreaN' => 0x2E, + 'ptgMemNoMemN' => 0x2F, + 'ptgNameX' => 0x39, + 'ptgRef3d' => 0x3A, + 'ptgArea3d' => 0x3B, + 'ptgRefErr3d' => 0x3C, + 'ptgAreaErr3d' => 0x3D, + 'ptgArrayV' => 0x40, + 'ptgFuncV' => 0x41, + 'ptgFuncVarV' => 0x42, + 'ptgNameV' => 0x43, + 'ptgRefV' => 0x44, + 'ptgAreaV' => 0x45, + 'ptgMemAreaV' => 0x46, + 'ptgMemErrV' => 0x47, + 'ptgMemNoMemV' => 0x48, + 'ptgMemFuncV' => 0x49, + 'ptgRefErrV' => 0x4A, + 'ptgAreaErrV' => 0x4B, + 'ptgRefNV' => 0x4C, + 'ptgAreaNV' => 0x4D, + 'ptgMemAreaNV' => 0x4E, + 'ptgMemNoMemN' => 0x4F, + 'ptgFuncCEV' => 0x58, + 'ptgNameXV' => 0x59, + 'ptgRef3dV' => 0x5A, + 'ptgArea3dV' => 0x5B, + 'ptgRefErr3dV' => 0x5C, + 'ptgAreaErr3d' => 0x5D, + 'ptgArrayA' => 0x60, + 'ptgFuncA' => 0x61, + 'ptgFuncVarA' => 0x62, + 'ptgNameA' => 0x63, + 'ptgRefA' => 0x64, + 'ptgAreaA' => 0x65, + 'ptgMemAreaA' => 0x66, + 'ptgMemErrA' => 0x67, + 'ptgMemNoMemA' => 0x68, + 'ptgMemFuncA' => 0x69, + 'ptgRefErrA' => 0x6A, + 'ptgAreaErrA' => 0x6B, + 'ptgRefNA' => 0x6C, + 'ptgAreaNA' => 0x6D, + 'ptgMemAreaNA' => 0x6E, + 'ptgMemNoMemN' => 0x6F, + 'ptgFuncCEA' => 0x78, + 'ptgNameXA' => 0x79, + 'ptgRef3dA' => 0x7A, + 'ptgArea3dA' => 0x7B, + 'ptgRefErr3dA' => 0x7C, + 'ptgAreaErr3d' => 0x7D + ); + + // Thanks to Michael Meeks and Gnumeric for the initial arg values. + // + // The following hash was generated by "function_locale.pl" in the distro. + // Refer to function_locale.pl for non-English function names. + // + // The array elements are as follow: + // ptg: The Excel function ptg code. + // args: The number of arguments that the function takes: + // >=0 is a fixed number of arguments. + // -1 is a variable number of arguments. + // class: The reference, value or array class of the function args. + // vol: The function is volatile. + // + $this->_functions = array( + // function ptg args class vol + 'COUNT' => array( 0, -1, 0, 0 ), + 'IF' => array( 1, -1, 1, 0 ), + 'ISNA' => array( 2, 1, 1, 0 ), + 'ISERROR' => array( 3, 1, 1, 0 ), + 'SUM' => array( 4, -1, 0, 0 ), + 'AVERAGE' => array( 5, -1, 0, 0 ), + 'MIN' => array( 6, -1, 0, 0 ), + 'MAX' => array( 7, -1, 0, 0 ), + 'ROW' => array( 8, -1, 0, 0 ), + 'COLUMN' => array( 9, -1, 0, 0 ), + 'NA' => array( 10, 0, 0, 0 ), + 'NPV' => array( 11, -1, 1, 0 ), + 'STDEV' => array( 12, -1, 0, 0 ), + 'DOLLAR' => array( 13, -1, 1, 0 ), + 'FIXED' => array( 14, -1, 1, 0 ), + 'SIN' => array( 15, 1, 1, 0 ), + 'COS' => array( 16, 1, 1, 0 ), + 'TAN' => array( 17, 1, 1, 0 ), + 'ATAN' => array( 18, 1, 1, 0 ), + 'PI' => array( 19, 0, 1, 0 ), + 'SQRT' => array( 20, 1, 1, 0 ), + 'EXP' => array( 21, 1, 1, 0 ), + 'LN' => array( 22, 1, 1, 0 ), + 'LOG10' => array( 23, 1, 1, 0 ), + 'ABS' => array( 24, 1, 1, 0 ), + 'INT' => array( 25, 1, 1, 0 ), + 'SIGN' => array( 26, 1, 1, 0 ), + 'ROUND' => array( 27, 2, 1, 0 ), + 'LOOKUP' => array( 28, -1, 0, 0 ), + 'INDEX' => array( 29, -1, 0, 1 ), + 'REPT' => array( 30, 2, 1, 0 ), + 'MID' => array( 31, 3, 1, 0 ), + 'LEN' => array( 32, 1, 1, 0 ), + 'VALUE' => array( 33, 1, 1, 0 ), + 'TRUE' => array( 34, 0, 1, 0 ), + 'FALSE' => array( 35, 0, 1, 0 ), + 'AND' => array( 36, -1, 0, 0 ), + 'OR' => array( 37, -1, 0, 0 ), + 'NOT' => array( 38, 1, 1, 0 ), + 'MOD' => array( 39, 2, 1, 0 ), + 'DCOUNT' => array( 40, 3, 0, 0 ), + 'DSUM' => array( 41, 3, 0, 0 ), + 'DAVERAGE' => array( 42, 3, 0, 0 ), + 'DMIN' => array( 43, 3, 0, 0 ), + 'DMAX' => array( 44, 3, 0, 0 ), + 'DSTDEV' => array( 45, 3, 0, 0 ), + 'VAR' => array( 46, -1, 0, 0 ), + 'DVAR' => array( 47, 3, 0, 0 ), + 'TEXT' => array( 48, 2, 1, 0 ), + 'LINEST' => array( 49, -1, 0, 0 ), + 'TREND' => array( 50, -1, 0, 0 ), + 'LOGEST' => array( 51, -1, 0, 0 ), + 'GROWTH' => array( 52, -1, 0, 0 ), + 'PV' => array( 56, -1, 1, 0 ), + 'FV' => array( 57, -1, 1, 0 ), + 'NPER' => array( 58, -1, 1, 0 ), + 'PMT' => array( 59, -1, 1, 0 ), + 'RATE' => array( 60, -1, 1, 0 ), + 'MIRR' => array( 61, 3, 0, 0 ), + 'IRR' => array( 62, -1, 0, 0 ), + 'RAND' => array( 63, 0, 1, 1 ), + 'MATCH' => array( 64, -1, 0, 0 ), + 'DATE' => array( 65, 3, 1, 0 ), + 'TIME' => array( 66, 3, 1, 0 ), + 'DAY' => array( 67, 1, 1, 0 ), + 'MONTH' => array( 68, 1, 1, 0 ), + 'YEAR' => array( 69, 1, 1, 0 ), + 'WEEKDAY' => array( 70, -1, 1, 0 ), + 'HOUR' => array( 71, 1, 1, 0 ), + 'MINUTE' => array( 72, 1, 1, 0 ), + 'SECOND' => array( 73, 1, 1, 0 ), + 'NOW' => array( 74, 0, 1, 1 ), + 'AREAS' => array( 75, 1, 0, 1 ), + 'ROWS' => array( 76, 1, 0, 1 ), + 'COLUMNS' => array( 77, 1, 0, 1 ), + 'OFFSET' => array( 78, -1, 0, 1 ), + 'SEARCH' => array( 82, -1, 1, 0 ), + 'TRANSPOSE' => array( 83, 1, 1, 0 ), + 'TYPE' => array( 86, 1, 1, 0 ), + 'ATAN2' => array( 97, 2, 1, 0 ), + 'ASIN' => array( 98, 1, 1, 0 ), + 'ACOS' => array( 99, 1, 1, 0 ), + 'CHOOSE' => array( 100, -1, 1, 0 ), + 'HLOOKUP' => array( 101, -1, 0, 0 ), + 'VLOOKUP' => array( 102, -1, 0, 0 ), + 'ISREF' => array( 105, 1, 0, 0 ), + 'LOG' => array( 109, -1, 1, 0 ), + 'CHAR' => array( 111, 1, 1, 0 ), + 'LOWER' => array( 112, 1, 1, 0 ), + 'UPPER' => array( 113, 1, 1, 0 ), + 'PROPER' => array( 114, 1, 1, 0 ), + 'LEFT' => array( 115, -1, 1, 0 ), + 'RIGHT' => array( 116, -1, 1, 0 ), + 'EXACT' => array( 117, 2, 1, 0 ), + 'TRIM' => array( 118, 1, 1, 0 ), + 'REPLACE' => array( 119, 4, 1, 0 ), + 'SUBSTITUTE' => array( 120, -1, 1, 0 ), + 'CODE' => array( 121, 1, 1, 0 ), + 'FIND' => array( 124, -1, 1, 0 ), + 'CELL' => array( 125, -1, 0, 1 ), + 'ISERR' => array( 126, 1, 1, 0 ), + 'ISTEXT' => array( 127, 1, 1, 0 ), + 'ISNUMBER' => array( 128, 1, 1, 0 ), + 'ISBLANK' => array( 129, 1, 1, 0 ), + 'T' => array( 130, 1, 0, 0 ), + 'N' => array( 131, 1, 0, 0 ), + 'DATEVALUE' => array( 140, 1, 1, 0 ), + 'TIMEVALUE' => array( 141, 1, 1, 0 ), + 'SLN' => array( 142, 3, 1, 0 ), + 'SYD' => array( 143, 4, 1, 0 ), + 'DDB' => array( 144, -1, 1, 0 ), + 'INDIRECT' => array( 148, -1, 1, 1 ), + 'CALL' => array( 150, -1, 1, 0 ), + 'CLEAN' => array( 162, 1, 1, 0 ), + 'MDETERM' => array( 163, 1, 2, 0 ), + 'MINVERSE' => array( 164, 1, 2, 0 ), + 'MMULT' => array( 165, 2, 2, 0 ), + 'IPMT' => array( 167, -1, 1, 0 ), + 'PPMT' => array( 168, -1, 1, 0 ), + 'COUNTA' => array( 169, -1, 0, 0 ), + 'PRODUCT' => array( 183, -1, 0, 0 ), + 'FACT' => array( 184, 1, 1, 0 ), + 'DPRODUCT' => array( 189, 3, 0, 0 ), + 'ISNONTEXT' => array( 190, 1, 1, 0 ), + 'STDEVP' => array( 193, -1, 0, 0 ), + 'VARP' => array( 194, -1, 0, 0 ), + 'DSTDEVP' => array( 195, 3, 0, 0 ), + 'DVARP' => array( 196, 3, 0, 0 ), + 'TRUNC' => array( 197, -1, 1, 0 ), + 'ISLOGICAL' => array( 198, 1, 1, 0 ), + 'DCOUNTA' => array( 199, 3, 0, 0 ), + 'USDOLLAR' => array( 204, -1, 1, 0 ), + 'FINDB' => array( 205, -1, 1, 0 ), + 'SEARCHB' => array( 206, -1, 1, 0 ), + 'REPLACEB' => array( 207, 4, 1, 0 ), + 'LEFTB' => array( 208, -1, 1, 0 ), + 'RIGHTB' => array( 209, -1, 1, 0 ), + 'MIDB' => array( 210, 3, 1, 0 ), + 'LENB' => array( 211, 1, 1, 0 ), + 'ROUNDUP' => array( 212, 2, 1, 0 ), + 'ROUNDDOWN' => array( 213, 2, 1, 0 ), + 'ASC' => array( 214, 1, 1, 0 ), + 'DBCS' => array( 215, 1, 1, 0 ), + 'RANK' => array( 216, -1, 0, 0 ), + 'ADDRESS' => array( 219, -1, 1, 0 ), + 'DAYS360' => array( 220, -1, 1, 0 ), + 'TODAY' => array( 221, 0, 1, 1 ), + 'VDB' => array( 222, -1, 1, 0 ), + 'MEDIAN' => array( 227, -1, 0, 0 ), + 'SUMPRODUCT' => array( 228, -1, 2, 0 ), + 'SINH' => array( 229, 1, 1, 0 ), + 'COSH' => array( 230, 1, 1, 0 ), + 'TANH' => array( 231, 1, 1, 0 ), + 'ASINH' => array( 232, 1, 1, 0 ), + 'ACOSH' => array( 233, 1, 1, 0 ), + 'ATANH' => array( 234, 1, 1, 0 ), + 'DGET' => array( 235, 3, 0, 0 ), + 'INFO' => array( 244, 1, 1, 1 ), + 'DB' => array( 247, -1, 1, 0 ), + 'FREQUENCY' => array( 252, 2, 0, 0 ), + 'ERROR.TYPE' => array( 261, 1, 1, 0 ), + 'REGISTER.ID' => array( 267, -1, 1, 0 ), + 'AVEDEV' => array( 269, -1, 0, 0 ), + 'BETADIST' => array( 270, -1, 1, 0 ), + 'GAMMALN' => array( 271, 1, 1, 0 ), + 'BETAINV' => array( 272, -1, 1, 0 ), + 'BINOMDIST' => array( 273, 4, 1, 0 ), + 'CHIDIST' => array( 274, 2, 1, 0 ), + 'CHIINV' => array( 275, 2, 1, 0 ), + 'COMBIN' => array( 276, 2, 1, 0 ), + 'CONFIDENCE' => array( 277, 3, 1, 0 ), + 'CRITBINOM' => array( 278, 3, 1, 0 ), + 'EVEN' => array( 279, 1, 1, 0 ), + 'EXPONDIST' => array( 280, 3, 1, 0 ), + 'FDIST' => array( 281, 3, 1, 0 ), + 'FINV' => array( 282, 3, 1, 0 ), + 'FISHER' => array( 283, 1, 1, 0 ), + 'FISHERINV' => array( 284, 1, 1, 0 ), + 'FLOOR' => array( 285, 2, 1, 0 ), + 'GAMMADIST' => array( 286, 4, 1, 0 ), + 'GAMMAINV' => array( 287, 3, 1, 0 ), + 'CEILING' => array( 288, 2, 1, 0 ), + 'HYPGEOMDIST' => array( 289, 4, 1, 0 ), + 'LOGNORMDIST' => array( 290, 3, 1, 0 ), + 'LOGINV' => array( 291, 3, 1, 0 ), + 'NEGBINOMDIST' => array( 292, 3, 1, 0 ), + 'NORMDIST' => array( 293, 4, 1, 0 ), + 'NORMSDIST' => array( 294, 1, 1, 0 ), + 'NORMINV' => array( 295, 3, 1, 0 ), + 'NORMSINV' => array( 296, 1, 1, 0 ), + 'STANDARDIZE' => array( 297, 3, 1, 0 ), + 'ODD' => array( 298, 1, 1, 0 ), + 'PERMUT' => array( 299, 2, 1, 0 ), + 'POISSON' => array( 300, 3, 1, 0 ), + 'TDIST' => array( 301, 3, 1, 0 ), + 'WEIBULL' => array( 302, 4, 1, 0 ), + 'SUMXMY2' => array( 303, 2, 2, 0 ), + 'SUMX2MY2' => array( 304, 2, 2, 0 ), + 'SUMX2PY2' => array( 305, 2, 2, 0 ), + 'CHITEST' => array( 306, 2, 2, 0 ), + 'CORREL' => array( 307, 2, 2, 0 ), + 'COVAR' => array( 308, 2, 2, 0 ), + 'FORECAST' => array( 309, 3, 2, 0 ), + 'FTEST' => array( 310, 2, 2, 0 ), + 'INTERCEPT' => array( 311, 2, 2, 0 ), + 'PEARSON' => array( 312, 2, 2, 0 ), + 'RSQ' => array( 313, 2, 2, 0 ), + 'STEYX' => array( 314, 2, 2, 0 ), + 'SLOPE' => array( 315, 2, 2, 0 ), + 'TTEST' => array( 316, 4, 2, 0 ), + 'PROB' => array( 317, -1, 2, 0 ), + 'DEVSQ' => array( 318, -1, 0, 0 ), + 'GEOMEAN' => array( 319, -1, 0, 0 ), + 'HARMEAN' => array( 320, -1, 0, 0 ), + 'SUMSQ' => array( 321, -1, 0, 0 ), + 'KURT' => array( 322, -1, 0, 0 ), + 'SKEW' => array( 323, -1, 0, 0 ), + 'ZTEST' => array( 324, -1, 0, 0 ), + 'LARGE' => array( 325, 2, 0, 0 ), + 'SMALL' => array( 326, 2, 0, 0 ), + 'QUARTILE' => array( 327, 2, 0, 0 ), + 'PERCENTILE' => array( 328, 2, 0, 0 ), + 'PERCENTRANK' => array( 329, -1, 0, 0 ), + 'MODE' => array( 330, -1, 2, 0 ), + 'TRIMMEAN' => array( 331, 2, 0, 0 ), + 'TINV' => array( 332, 2, 1, 0 ), + 'CONCATENATE' => array( 336, -1, 1, 0 ), + 'POWER' => array( 337, 2, 1, 0 ), + 'RADIANS' => array( 342, 1, 1, 0 ), + 'DEGREES' => array( 343, 1, 1, 0 ), + 'SUBTOTAL' => array( 344, -1, 0, 0 ), + 'SUMIF' => array( 345, -1, 0, 0 ), + 'COUNTIF' => array( 346, 2, 0, 0 ), + 'COUNTBLANK' => array( 347, 1, 0, 0 ), + 'ISPMT' => array( 350, 4, 1, 0 ), + 'DATEDIF' => array( 351, 3, 1, 0 ), + 'DATESTRING' => array( 352, 1, 1, 0 ), + 'NUMBERSTRING' => array( 353, 2, 1, 0 ), + 'ROMAN' => array( 354, -1, 1, 0 ), + 'GETPIVOTDATA' => array( 358, -1, 0, 0 ), + 'HYPERLINK' => array( 359, -1, 1, 0 ), + 'PHONETIC' => array( 360, 1, 0, 0 ), + 'AVERAGEA' => array( 361, -1, 0, 0 ), + 'MAXA' => array( 362, -1, 0, 0 ), + 'MINA' => array( 363, -1, 0, 0 ), + 'STDEVPA' => array( 364, -1, 0, 0 ), + 'VARPA' => array( 365, -1, 0, 0 ), + 'STDEVA' => array( 366, -1, 0, 0 ), + 'VARA' => array( 367, -1, 0, 0 ), + 'BAHTTEXT' => array( 368, 1, 0, 0 ), + ); + } + + /** + * Convert a token to the proper ptg value. + * + * @access private + * @param mixed $token The token to convert. + * @return mixed the converted token on success + */ + function _convert($token) + { + if (preg_match("/\"([^\"]|\"\"){0,255}\"/", $token)) { + return $this->_convertString($token); + + } elseif (is_numeric($token)) { + return $this->_convertNumber($token); + + // match references like A1 or $A$1 + } elseif (preg_match('/^\$?([A-Ia-i]?[A-Za-z])\$?(\d+)$/',$token)) { + return $this->_convertRef2d($token); + + // match external references like Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1 + } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?(\d+)$/u",$token)) { + return $this->_convertRef3d($token); + + // match external references like 'Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1 + } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?(\d+)$/u",$token)) { + return $this->_convertRef3d($token); + + // match ranges like A1:B2 or $A$1:$B$2 + } elseif (preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?(\d+)\:(\$)?[A-Ia-i]?[A-Za-z](\$)?(\d+)$/', $token)) { + return $this->_convertRange2d($token); + + // match external ranges like Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2 + } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)\:\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)$/u",$token)) { + return $this->_convertRange3d($token); + + // match external ranges like 'Sheet1'!A1:B2 or 'Sheet1:Sheet2'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1:Sheet2'!$A$1:$B$2 + } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)\:\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)$/u",$token)) { + return $this->_convertRange3d($token); + + // operators (including parentheses) + } elseif (isset($this->ptg[$token])) { + return pack("C", $this->ptg[$token]); + + // match error codes + } elseif (preg_match("/^#[A-Z0\/]{3,5}[!?]{1}$/", $token) or $token == '#N/A') { + return $this->_convertError($token); + + // commented so argument number can be processed correctly. See toReversePolish(). + /*elseif (preg_match("/[A-Z0-9\xc0-\xdc\.]+/",$token)) + { + return($this->_convertFunction($token,$this->_func_args)); + }*/ + + // if it's an argument, ignore the token (the argument remains) + } elseif ($token == 'arg') { + return ''; + } + + // TODO: use real error codes + throw new PHPExcel_Writer_Exception("Unknown token $token"); + } + + /** + * Convert a number token to ptgInt or ptgNum + * + * @access private + * @param mixed $num an integer or double for conversion to its ptg value + */ + function _convertNumber($num) + { + // Integer in the range 0..2**16-1 + if ((preg_match("/^\d+$/", $num)) and ($num <= 65535)) { + return pack("Cv", $this->ptg['ptgInt'], $num); + } else { // A float + if (PHPExcel_Writer_Excel5_BIFFwriter::getByteOrder()) { // if it's Big Endian + $num = strrev($num); + } + return pack("Cd", $this->ptg['ptgNum'], $num); + } + } + + /** + * Convert a string token to ptgStr + * + * @access private + * @param string $string A string for conversion to its ptg value. + * @return mixed the converted token on success + */ + function _convertString($string) + { + // chop away beggining and ending quotes + $string = substr($string, 1, strlen($string) - 2); + if (strlen($string) > 255) { + throw new PHPExcel_Writer_Exception("String is too long"); + } + + return pack('C', $this->ptg['ptgStr']) . PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($string); + } + + /** + * Convert a function to a ptgFunc or ptgFuncVarV depending on the number of + * args that it takes. + * + * @access private + * @param string $token The name of the function for convertion to ptg value. + * @param integer $num_args The number of arguments the function receives. + * @return string The packed ptg for the function + */ + function _convertFunction($token, $num_args) + { + $args = $this->_functions[$token][1]; +// $volatile = $this->_functions[$token][3]; + + // Fixed number of args eg. TIME($i,$j,$k). + if ($args >= 0) { + return pack("Cv", $this->ptg['ptgFuncV'], $this->_functions[$token][0]); + } + // Variable number of args eg. SUM($i,$j,$k, ..). + if ($args == -1) { + return pack("CCv", $this->ptg['ptgFuncVarV'], $num_args, $this->_functions[$token][0]); + } + } + + /** + * Convert an Excel range such as A1:D4 to a ptgRefV. + * + * @access private + * @param string $range An Excel range in the A1:A2 + * @param int $class + */ + function _convertRange2d($range, $class=0) + { + + // TODO: possible class value 0,1,2 check Formula.pm + // Split the range into 2 cell refs + if (preg_match('/^(\$)?([A-Ia-i]?[A-Za-z])(\$)?(\d+)\:(\$)?([A-Ia-i]?[A-Za-z])(\$)?(\d+)$/', $range)) { + list($cell1, $cell2) = explode(':', $range); + } else { + // TODO: use real error codes + throw new PHPExcel_Writer_Exception("Unknown range separator"); + } + + // Convert the cell references + list($row1, $col1) = $this->_cellToPackedRowcol($cell1); + list($row2, $col2) = $this->_cellToPackedRowcol($cell2); + + // The ptg value depends on the class of the ptg. + if ($class == 0) { + $ptgArea = pack("C", $this->ptg['ptgArea']); + } elseif ($class == 1) { + $ptgArea = pack("C", $this->ptg['ptgAreaV']); + } elseif ($class == 2) { + $ptgArea = pack("C", $this->ptg['ptgAreaA']); + } else { + // TODO: use real error codes + throw new PHPExcel_Writer_Exception("Unknown class $class"); + } + return $ptgArea . $row1 . $row2 . $col1. $col2; + } + + /** + * Convert an Excel 3d range such as "Sheet1!A1:D4" or "Sheet1:Sheet2!A1:D4" to + * a ptgArea3d. + * + * @access private + * @param string $token An Excel range in the Sheet1!A1:A2 format. + * @return mixed The packed ptgArea3d token on success. + */ + function _convertRange3d($token) + { +// $class = 0; // formulas like Sheet1!$A$1:$A$2 in list type data validation need this class (0x3B) + + // Split the ref at the ! symbol + list($ext_ref, $range) = explode('!', $token); + + // Convert the external reference part (different for BIFF8) + $ext_ref = $this->_getRefIndex($ext_ref); + + // Split the range into 2 cell refs + list($cell1, $cell2) = explode(':', $range); + + // Convert the cell references + if (preg_match("/^(\\$)?[A-Ia-i]?[A-Za-z](\\$)?(\d+)$/", $cell1)) { + list($row1, $col1) = $this->_cellToPackedRowcol($cell1); + list($row2, $col2) = $this->_cellToPackedRowcol($cell2); + } else { // It's a rows range (like 26:27) + list($row1, $col1, $row2, $col2) = $this->_rangeToPackedRange($cell1.':'.$cell2); + } + + // The ptg value depends on the class of the ptg. +// if ($class == 0) { + $ptgArea = pack("C", $this->ptg['ptgArea3d']); +// } elseif ($class == 1) { +// $ptgArea = pack("C", $this->ptg['ptgArea3dV']); +// } elseif ($class == 2) { +// $ptgArea = pack("C", $this->ptg['ptgArea3dA']); +// } else { +// throw new PHPExcel_Writer_Exception("Unknown class $class"); +// } + + return $ptgArea . $ext_ref . $row1 . $row2 . $col1. $col2; + } + + /** + * Convert an Excel reference such as A1, $B2, C$3 or $D$4 to a ptgRefV. + * + * @access private + * @param string $cell An Excel cell reference + * @return string The cell in packed() format with the corresponding ptg + */ + function _convertRef2d($cell) + { +// $class = 2; // as far as I know, this is magick. + + // Convert the cell reference + $cell_array = $this->_cellToPackedRowcol($cell); + list($row, $col) = $cell_array; + + // The ptg value depends on the class of the ptg. +// if ($class == 0) { +// $ptgRef = pack("C", $this->ptg['ptgRef']); +// } elseif ($class == 1) { +// $ptgRef = pack("C", $this->ptg['ptgRefV']); +// } elseif ($class == 2) { + $ptgRef = pack("C", $this->ptg['ptgRefA']); +// } else { +// // TODO: use real error codes +// throw new PHPExcel_Writer_Exception("Unknown class $class"); +// } + return $ptgRef.$row.$col; + } + + /** + * Convert an Excel 3d reference such as "Sheet1!A1" or "Sheet1:Sheet2!A1" to a + * ptgRef3d. + * + * @access private + * @param string $cell An Excel cell reference + * @return mixed The packed ptgRef3d token on success. + */ + function _convertRef3d($cell) + { +// $class = 2; // as far as I know, this is magick. + + // Split the ref at the ! symbol + list($ext_ref, $cell) = explode('!', $cell); + + // Convert the external reference part (different for BIFF8) + $ext_ref = $this->_getRefIndex($ext_ref); + + // Convert the cell reference part + list($row, $col) = $this->_cellToPackedRowcol($cell); + + // The ptg value depends on the class of the ptg. +// if ($class == 0) { +// $ptgRef = pack("C", $this->ptg['ptgRef3d']); +// } elseif ($class == 1) { +// $ptgRef = pack("C", $this->ptg['ptgRef3dV']); +// } elseif ($class == 2) { + $ptgRef = pack("C", $this->ptg['ptgRef3dA']); +// } else { +// throw new PHPExcel_Writer_Exception("Unknown class $class"); +// } + + return $ptgRef . $ext_ref. $row . $col; + } + + /** + * Convert an error code to a ptgErr + * + * @access private + * @param string $errorCode The error code for conversion to its ptg value + * @return string The error code ptgErr + */ + function _convertError($errorCode) + { + switch ($errorCode) { + case '#NULL!': return pack("C", 0x00); + case '#DIV/0!': return pack("C", 0x07); + case '#VALUE!': return pack("C", 0x0F); + case '#REF!': return pack("C", 0x17); + case '#NAME?': return pack("C", 0x1D); + case '#NUM!': return pack("C", 0x24); + case '#N/A': return pack("C", 0x2A); + } + return pack("C", 0xFF); + } + + /** + * Convert the sheet name part of an external reference, for example "Sheet1" or + * "Sheet1:Sheet2", to a packed structure. + * + * @access private + * @param string $ext_ref The name of the external reference + * @return string The reference index in packed() format + */ + function _packExtRef($ext_ref) + { + $ext_ref = preg_replace("/^'/", '', $ext_ref); // Remove leading ' if any. + $ext_ref = preg_replace("/'$/", '', $ext_ref); // Remove trailing ' if any. + + // Check if there is a sheet range eg., Sheet1:Sheet2. + if (preg_match("/:/", $ext_ref)) { + list($sheet_name1, $sheet_name2) = explode(':', $ext_ref); + + $sheet1 = $this->_getSheetIndex($sheet_name1); + if ($sheet1 == -1) { + throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name1 in formula"); + } + $sheet2 = $this->_getSheetIndex($sheet_name2); + if ($sheet2 == -1) { + throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name2 in formula"); + } + + // Reverse max and min sheet numbers if necessary + if ($sheet1 > $sheet2) { + list($sheet1, $sheet2) = array($sheet2, $sheet1); + } + } else { // Single sheet name only. + $sheet1 = $this->_getSheetIndex($ext_ref); + if ($sheet1 == -1) { + throw new PHPExcel_Writer_Exception("Unknown sheet name $ext_ref in formula"); + } + $sheet2 = $sheet1; + } + + // References are stored relative to 0xFFFF. + $offset = -1 - $sheet1; + + return pack('vdvv', $offset, 0x00, $sheet1, $sheet2); + } + + /** + * Look up the REF index that corresponds to an external sheet name + * (or range). If it doesn't exist yet add it to the workbook's references + * array. It assumes all sheet names given must exist. + * + * @access private + * @param string $ext_ref The name of the external reference + * @return mixed The reference index in packed() format on success + */ + function _getRefIndex($ext_ref) + { + $ext_ref = preg_replace("/^'/", '', $ext_ref); // Remove leading ' if any. + $ext_ref = preg_replace("/'$/", '', $ext_ref); // Remove trailing ' if any. + $ext_ref = str_replace('\'\'', '\'', $ext_ref); // Replace escaped '' with ' + + // Check if there is a sheet range eg., Sheet1:Sheet2. + if (preg_match("/:/", $ext_ref)) { + list($sheet_name1, $sheet_name2) = explode(':', $ext_ref); + + $sheet1 = $this->_getSheetIndex($sheet_name1); + if ($sheet1 == -1) { + throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name1 in formula"); + } + $sheet2 = $this->_getSheetIndex($sheet_name2); + if ($sheet2 == -1) { + throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name2 in formula"); + } + + // Reverse max and min sheet numbers if necessary + if ($sheet1 > $sheet2) { + list($sheet1, $sheet2) = array($sheet2, $sheet1); + } + } else { // Single sheet name only. + $sheet1 = $this->_getSheetIndex($ext_ref); + if ($sheet1 == -1) { + throw new PHPExcel_Writer_Exception("Unknown sheet name $ext_ref in formula"); + } + $sheet2 = $sheet1; + } + + // assume all references belong to this document + $supbook_index = 0x00; + $ref = pack('vvv', $supbook_index, $sheet1, $sheet2); + $total_references = count($this->_references); + $index = -1; + for ($i = 0; $i < $total_references; ++$i) { + if ($ref == $this->_references[$i]) { + $index = $i; + break; + } + } + // if REF was not found add it to references array + if ($index == -1) { + $this->_references[$total_references] = $ref; + $index = $total_references; + } + + return pack('v', $index); + } + + /** + * Look up the index that corresponds to an external sheet name. The hash of + * sheet names is updated by the addworksheet() method of the + * PHPExcel_Writer_Excel5_Workbook class. + * + * @access private + * @param string $sheet_name Sheet name + * @return integer The sheet index, -1 if the sheet was not found + */ + function _getSheetIndex($sheet_name) + { + if (!isset($this->_ext_sheets[$sheet_name])) { + return -1; + } else { + return $this->_ext_sheets[$sheet_name]; + } + } + + /** + * This method is used to update the array of sheet names. It is + * called by the addWorksheet() method of the + * PHPExcel_Writer_Excel5_Workbook class. + * + * @access public + * @see PHPExcel_Writer_Excel5_Workbook::addWorksheet() + * @param string $name The name of the worksheet being added + * @param integer $index The index of the worksheet being added + */ + function setExtSheet($name, $index) + { + $this->_ext_sheets[$name] = $index; + } + + /** + * pack() row and column into the required 3 or 4 byte format. + * + * @access private + * @param string $cell The Excel cell reference to be packed + * @return array Array containing the row and column in packed() format + */ + function _cellToPackedRowcol($cell) + { + $cell = strtoupper($cell); + list($row, $col, $row_rel, $col_rel) = $this->_cellToRowcol($cell); + if ($col >= 256) { + throw new PHPExcel_Writer_Exception("Column in: $cell greater than 255"); + } + if ($row >= 65536) { + throw new PHPExcel_Writer_Exception("Row in: $cell greater than 65536 "); + } + + // Set the high bits to indicate if row or col are relative. + $col |= $col_rel << 14; + $col |= $row_rel << 15; + $col = pack('v', $col); + + $row = pack('v', $row); + + return array($row, $col); + } + + /** + * pack() row range into the required 3 or 4 byte format. + * Just using maximum col/rows, which is probably not the correct solution + * + * @access private + * @param string $range The Excel range to be packed + * @return array Array containing (row1,col1,row2,col2) in packed() format + */ + function _rangeToPackedRange($range) + { + preg_match('/(\$)?(\d+)\:(\$)?(\d+)/', $range, $match); + // return absolute rows if there is a $ in the ref + $row1_rel = empty($match[1]) ? 1 : 0; + $row1 = $match[2]; + $row2_rel = empty($match[3]) ? 1 : 0; + $row2 = $match[4]; + // Convert 1-index to zero-index + --$row1; + --$row2; + // Trick poor inocent Excel + $col1 = 0; + $col2 = 65535; // FIXME: maximum possible value for Excel 5 (change this!!!) + + // FIXME: this changes for BIFF8 + if (($row1 >= 65536) or ($row2 >= 65536)) { + throw new PHPExcel_Writer_Exception("Row in: $range greater than 65536 "); + } + + // Set the high bits to indicate if rows are relative. + $col1 |= $row1_rel << 15; + $col2 |= $row2_rel << 15; + $col1 = pack('v', $col1); + $col2 = pack('v', $col2); + + $row1 = pack('v', $row1); + $row2 = pack('v', $row2); + + return array($row1, $col1, $row2, $col2); + } + + /** + * Convert an Excel cell reference such as A1 or $B2 or C$3 or $D$4 to a zero + * indexed row and column number. Also returns two (0,1) values to indicate + * whether the row or column are relative references. + * + * @access private + * @param string $cell The Excel cell reference in A1 format. + * @return array + */ + function _cellToRowcol($cell) + { + preg_match('/(\$)?([A-I]?[A-Z])(\$)?(\d+)/',$cell,$match); + // return absolute column if there is a $ in the ref + $col_rel = empty($match[1]) ? 1 : 0; + $col_ref = $match[2]; + $row_rel = empty($match[3]) ? 1 : 0; + $row = $match[4]; + + // Convert base26 column string to a number. + $expn = strlen($col_ref) - 1; + $col = 0; + $col_ref_length = strlen($col_ref); + for ($i = 0; $i < $col_ref_length; ++$i) { + $col += (ord($col_ref{$i}) - 64) * pow(26, $expn); + --$expn; + } + + // Convert 1-index to zero-index + --$row; + --$col; + + return array($row, $col, $row_rel, $col_rel); + } + + /** + * Advance to the next valid token. + * + * @access private + */ + function _advance() + { + $i = $this->_current_char; + $formula_length = strlen($this->_formula); + // eat up white spaces + if ($i < $formula_length) { + while ($this->_formula{$i} == " ") { + ++$i; + } + + if ($i < ($formula_length - 1)) { + $this->_lookahead = $this->_formula{$i+1}; + } + $token = ''; + } + + while ($i < $formula_length) { + $token .= $this->_formula{$i}; + + if ($i < ($formula_length - 1)) { + $this->_lookahead = $this->_formula{$i+1}; + } else { + $this->_lookahead = ''; + } + + if ($this->_match($token) != '') { + //if ($i < strlen($this->_formula) - 1) { + // $this->_lookahead = $this->_formula{$i+1}; + //} + $this->_current_char = $i + 1; + $this->_current_token = $token; + return 1; + } + + if ($i < ($formula_length - 2)) { + $this->_lookahead = $this->_formula{$i+2}; + } else { // if we run out of characters _lookahead becomes empty + $this->_lookahead = ''; + } + ++$i; + } + //die("Lexical error ".$this->_current_char); + } + + /** + * Checks if it's a valid token. + * + * @access private + * @param mixed $token The token to check. + * @return mixed The checked token or false on failure + */ + function _match($token) + { + switch($token) { + case "+": + case "-": + case "*": + case "/": + case "(": + case ")": + case ",": + case ";": + case ">=": + case "<=": + case "=": + case "<>": + case "^": + case "&": + case "%": + return $token; + break; + case ">": + if ($this->_lookahead == '=') { // it's a GE token + break; + } + return $token; + break; + case "<": + // it's a LE or a NE token + if (($this->_lookahead == '=') or ($this->_lookahead == '>')) { + break; + } + return $token; + break; + default: + // if it's a reference A1 or $A$1 or $A1 or A$1 + if (preg_match('/^\$?[A-Ia-i]?[A-Za-z]\$?[0-9]+$/',$token) and + !preg_match("/[0-9]/",$this->_lookahead) and + ($this->_lookahead != ':') and ($this->_lookahead != '.') and + ($this->_lookahead != '!')) + { + return $token; + } + // If it's an external reference (Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1) + elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u",$token) and + !preg_match("/[0-9]/",$this->_lookahead) and + ($this->_lookahead != ':') and ($this->_lookahead != '.')) + { + return $token; + } + // If it's an external reference ('Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1) + elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u",$token) and + !preg_match("/[0-9]/",$this->_lookahead) and + ($this->_lookahead != ':') and ($this->_lookahead != '.')) + { + return $token; + } + // if it's a range A1:A2 or $A$1:$A$2 + elseif (preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+:(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+$/', $token) and + !preg_match("/[0-9]/",$this->_lookahead)) + { + return $token; + } + // If it's an external range like Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2 + elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u",$token) and + !preg_match("/[0-9]/",$this->_lookahead)) + { + return $token; + } + // If it's an external range like 'Sheet1'!A1:B2 or 'Sheet1:Sheet2'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1:Sheet2'!$A$1:$B$2 + elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u",$token) and + !preg_match("/[0-9]/",$this->_lookahead)) + { + return $token; + } + // If it's a number (check that it's not a sheet name or range) + elseif (is_numeric($token) and + (!is_numeric($token.$this->_lookahead) or ($this->_lookahead == '')) and + ($this->_lookahead != '!') and ($this->_lookahead != ':')) + { + return $token; + } + // If it's a string (of maximum 255 characters) + elseif (preg_match("/\"([^\"]|\"\"){0,255}\"/",$token) and $this->_lookahead != '"' and (substr_count($token, '"')%2 == 0)) + { + return $token; + } + // If it's an error code + elseif (preg_match("/^#[A-Z0\/]{3,5}[!?]{1}$/", $token) or $token == '#N/A') + { + return $token; + } + // if it's a function call + elseif (preg_match("/^[A-Z0-9\xc0-\xdc\.]+$/i",$token) and ($this->_lookahead == "(")) + { + return $token; + } + // It's an argument of some description (e.g. a named range), + // precise nature yet to be determined + elseif(substr($token,-1) == ')') { + return $token; + } + return ''; + } + } + + /** + * The parsing method. It parses a formula. + * + * @access public + * @param string $formula The formula to parse, without the initial equal + * sign (=). + * @return mixed true on success + */ + function parse($formula) + { + $this->_current_char = 0; + $this->_formula = $formula; + $this->_lookahead = isset($formula{1}) ? $formula{1} : ''; + $this->_advance(); + $this->_parse_tree = $this->_condition(); + return true; + } + + /** + * It parses a condition. It assumes the following rule: + * Cond -> Expr [(">" | "<") Expr] + * + * @access private + * @return mixed The parsed ptg'd tree on success + */ + function _condition() + { + $result = $this->_expression(); + if ($this->_current_token == "<") { + $this->_advance(); + $result2 = $this->_expression(); + $result = $this->_createTree('ptgLT', $result, $result2); + } elseif ($this->_current_token == ">") { + $this->_advance(); + $result2 = $this->_expression(); + $result = $this->_createTree('ptgGT', $result, $result2); + } elseif ($this->_current_token == "<=") { + $this->_advance(); + $result2 = $this->_expression(); + $result = $this->_createTree('ptgLE', $result, $result2); + } elseif ($this->_current_token == ">=") { + $this->_advance(); + $result2 = $this->_expression(); + $result = $this->_createTree('ptgGE', $result, $result2); + } elseif ($this->_current_token == "=") { + $this->_advance(); + $result2 = $this->_expression(); + $result = $this->_createTree('ptgEQ', $result, $result2); + } elseif ($this->_current_token == "<>") { + $this->_advance(); + $result2 = $this->_expression(); + $result = $this->_createTree('ptgNE', $result, $result2); + } elseif ($this->_current_token == "&") { + $this->_advance(); + $result2 = $this->_expression(); + $result = $this->_createTree('ptgConcat', $result, $result2); + } + return $result; + } + + /** + * It parses a expression. It assumes the following rule: + * Expr -> Term [("+" | "-") Term] + * -> "string" + * -> "-" Term : Negative value + * -> "+" Term : Positive value + * -> Error code + * + * @access private + * @return mixed The parsed ptg'd tree on success + */ + function _expression() + { + // If it's a string return a string node + if (preg_match("/\"([^\"]|\"\"){0,255}\"/", $this->_current_token)) { + $tmp = str_replace('""', '"', $this->_current_token); + if (($tmp == '"') || ($tmp == '')) $tmp = '""'; // Trap for "" that has been used for an empty string + $result = $this->_createTree($tmp, '', ''); + $this->_advance(); + return $result; + // If it's an error code + } elseif (preg_match("/^#[A-Z0\/]{3,5}[!?]{1}$/", $this->_current_token) or $this->_current_token == '#N/A'){ + $result = $this->_createTree($this->_current_token, 'ptgErr', ''); + $this->_advance(); + return $result; + // If it's a negative value + } elseif ($this->_current_token == "-") { + // catch "-" Term + $this->_advance(); + $result2 = $this->_expression(); + $result = $this->_createTree('ptgUminus', $result2, ''); + return $result; + // If it's a positive value + } elseif ($this->_current_token == "+") { + // catch "+" Term + $this->_advance(); + $result2 = $this->_expression(); + $result = $this->_createTree('ptgUplus', $result2, ''); + return $result; + } + $result = $this->_term(); + while (($this->_current_token == "+") or + ($this->_current_token == "-") or + ($this->_current_token == "^")) { + /**/ + if ($this->_current_token == "+") { + $this->_advance(); + $result2 = $this->_term(); + $result = $this->_createTree('ptgAdd', $result, $result2); + } elseif ($this->_current_token == "-") { + $this->_advance(); + $result2 = $this->_term(); + $result = $this->_createTree('ptgSub', $result, $result2); + } else { + $this->_advance(); + $result2 = $this->_term(); + $result = $this->_createTree('ptgPower', $result, $result2); + } + } + return $result; + } + + /** + * This function just introduces a ptgParen element in the tree, so that Excel + * doesn't get confused when working with a parenthesized formula afterwards. + * + * @access private + * @see _fact() + * @return array The parsed ptg'd tree + */ + function _parenthesizedExpression() + { + $result = $this->_createTree('ptgParen', $this->_expression(), ''); + return $result; + } + + /** + * It parses a term. It assumes the following rule: + * Term -> Fact [("*" | "/") Fact] + * + * @access private + * @return mixed The parsed ptg'd tree on success + */ + function _term() + { + $result = $this->_fact(); + while (($this->_current_token == "*") or + ($this->_current_token == "/")) { + /**/ + if ($this->_current_token == "*") { + $this->_advance(); + $result2 = $this->_fact(); + $result = $this->_createTree('ptgMul', $result, $result2); + } else { + $this->_advance(); + $result2 = $this->_fact(); + $result = $this->_createTree('ptgDiv', $result, $result2); + } + } + return $result; + } + + /** + * It parses a factor. It assumes the following rule: + * Fact -> ( Expr ) + * | CellRef + * | CellRange + * | Number + * | Function + * + * @access private + * @return mixed The parsed ptg'd tree on success + */ + function _fact() + { + if ($this->_current_token == "(") { + $this->_advance(); // eat the "(" + $result = $this->_parenthesizedExpression(); + if ($this->_current_token != ")") { + throw new PHPExcel_Writer_Exception("')' token expected."); + } + $this->_advance(); // eat the ")" + return $result; + } + // if it's a reference + if (preg_match('/^\$?[A-Ia-i]?[A-Za-z]\$?[0-9]+$/',$this->_current_token)) + { + $result = $this->_createTree($this->_current_token, '', ''); + $this->_advance(); + return $result; + } + // If it's an external reference (Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1) + elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u",$this->_current_token)) + { + $result = $this->_createTree($this->_current_token, '', ''); + $this->_advance(); + return $result; + } + // If it's an external reference ('Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1) + elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u",$this->_current_token)) + { + $result = $this->_createTree($this->_current_token, '', ''); + $this->_advance(); + return $result; + } + // if it's a range A1:B2 or $A$1:$B$2 + elseif (preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+:(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+$/',$this->_current_token) or + preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+\.\.(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+$/',$this->_current_token)) + { + // must be an error? + $result = $this->_createTree($this->_current_token, '', ''); + $this->_advance(); + return $result; + } + // If it's an external range (Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2) + elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u",$this->_current_token)) + { + // must be an error? + //$result = $this->_current_token; + $result = $this->_createTree($this->_current_token, '', ''); + $this->_advance(); + return $result; + } + // If it's an external range ('Sheet1'!A1:B2 or 'Sheet1'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1'!$A$1:$B$2) + elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u",$this->_current_token)) + { + // must be an error? + //$result = $this->_current_token; + $result = $this->_createTree($this->_current_token, '', ''); + $this->_advance(); + return $result; + } + // If it's a number or a percent + elseif (is_numeric($this->_current_token)) + { + if($this->_lookahead == '%'){ + $result = $this->_createTree('ptgPercent', $this->_current_token, ''); + $this->_advance(); // Skip the percentage operator once we've pre-built that tree + } else { + $result = $this->_createTree($this->_current_token, '', ''); + } + $this->_advance(); + return $result; + } + // if it's a function call + elseif (preg_match("/^[A-Z0-9\xc0-\xdc\.]+$/i",$this->_current_token)) + { + $result = $this->_func(); + return $result; + } + throw new PHPExcel_Writer_Exception("Syntax error: ".$this->_current_token. + ", lookahead: ".$this->_lookahead. + ", current char: ".$this->_current_char); + } + + /** + * It parses a function call. It assumes the following rule: + * Func -> ( Expr [,Expr]* ) + * + * @access private + * @return mixed The parsed ptg'd tree on success + */ + function _func() + { + $num_args = 0; // number of arguments received + $function = strtoupper($this->_current_token); + $result = ''; // initialize result + $this->_advance(); + $this->_advance(); // eat the "(" + while ($this->_current_token != ')') { + /**/ + if ($num_args > 0) { + if ($this->_current_token == "," or + $this->_current_token == ";") + { + $this->_advance(); // eat the "," or ";" + } else { + throw new PHPExcel_Writer_Exception("Syntax error: comma expected in ". + "function $function, arg #{$num_args}"); + } + $result2 = $this->_condition(); + $result = $this->_createTree('arg', $result, $result2); + } else { // first argument + $result2 = $this->_condition(); + $result = $this->_createTree('arg', '', $result2); + } + ++$num_args; + } + if (!isset($this->_functions[$function])) { + throw new PHPExcel_Writer_Exception("Function $function() doesn't exist"); + } + $args = $this->_functions[$function][1]; + // If fixed number of args eg. TIME($i,$j,$k). Check that the number of args is valid. + if (($args >= 0) and ($args != $num_args)) { + throw new PHPExcel_Writer_Exception("Incorrect number of arguments in function $function() "); + } + + $result = $this->_createTree($function, $result, $num_args); + $this->_advance(); // eat the ")" + return $result; + } + + /** + * Creates a tree. In fact an array which may have one or two arrays (sub-trees) + * as elements. + * + * @access private + * @param mixed $value The value of this node. + * @param mixed $left The left array (sub-tree) or a final node. + * @param mixed $right The right array (sub-tree) or a final node. + * @return array A tree + */ + function _createTree($value, $left, $right) + { + return array('value' => $value, 'left' => $left, 'right' => $right); + } + + /** + * Builds a string containing the tree in reverse polish notation (What you + * would use in a HP calculator stack). + * The following tree: + * + * + + * / \ + * 2 3 + * + * produces: "23+" + * + * The following tree: + * + * + + * / \ + * 3 * + * / \ + * 6 A1 + * + * produces: "36A1*+" + * + * In fact all operands, functions, references, etc... are written as ptg's + * + * @access public + * @param array $tree The optional tree to convert. + * @return string The tree in reverse polish notation + */ + function toReversePolish($tree = array()) + { + $polish = ""; // the string we are going to return + if (empty($tree)) { // If it's the first call use _parse_tree + $tree = $this->_parse_tree; + } + + if (is_array($tree['left'])) { + $converted_tree = $this->toReversePolish($tree['left']); + $polish .= $converted_tree; + } elseif ($tree['left'] != '') { // It's a final node + $converted_tree = $this->_convert($tree['left']); + $polish .= $converted_tree; + } + if (is_array($tree['right'])) { + $converted_tree = $this->toReversePolish($tree['right']); + $polish .= $converted_tree; + } elseif ($tree['right'] != '') { // It's a final node + $converted_tree = $this->_convert($tree['right']); + $polish .= $converted_tree; + } + // if it's a function convert it here (so we can set it's arguments) + if (preg_match("/^[A-Z0-9\xc0-\xdc\.]+$/",$tree['value']) and + !preg_match('/^([A-Ia-i]?[A-Za-z])(\d+)$/',$tree['value']) and + !preg_match("/^[A-Ia-i]?[A-Za-z](\d+)\.\.[A-Ia-i]?[A-Za-z](\d+)$/",$tree['value']) and + !is_numeric($tree['value']) and + !isset($this->ptg[$tree['value']])) + { + // left subtree for a function is always an array. + if ($tree['left'] != '') { + $left_tree = $this->toReversePolish($tree['left']); + } else { + $left_tree = ''; + } + // add it's left subtree and return. + return $left_tree.$this->_convertFunction($tree['value'], $tree['right']); + } else { + $converted_tree = $this->_convert($tree['value']); + } + $polish .= $converted_tree; + return $polish; + } + +} diff --git a/admin/helpers/PHPExcel/Writer/Excel5/Workbook.php b/admin/helpers/PHPExcel/Writer/Excel5/Workbook.php new file mode 100644 index 00000000..ecfac5dc --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel5/Workbook.php @@ -0,0 +1,1450 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +// Original file header of PEAR::Spreadsheet_Excel_Writer_Workbook (used as the base for this class): +// ----------------------------------------------------------------------------------------- +// /* +// * Module written/ported by Xavier Noguer <xnoguer@rezebra.com> +// * +// * The majority of this is _NOT_ my code. I simply ported it from the +// * PERL Spreadsheet::WriteExcel module. +// * +// * The author of the Spreadsheet::WriteExcel module is John McNamara +// * <jmcnamara@cpan.org> +// * +// * I _DO_ maintain this code, and John McNamara has nothing to do with the +// * porting of this code to PHP. Any questions directly related to this +// * class library should be directed to me. +// * +// * License Information: +// * +// * Spreadsheet_Excel_Writer: A library for generating Excel Spreadsheets +// * Copyright (c) 2002-2003 Xavier Noguer xnoguer@rezebra.com +// * +// * This library is free software; you can redistribute it and/or +// * modify it under the terms of the GNU Lesser General Public +// * License as published by the Free Software Foundation; either +// * version 2.1 of the License, or (at your option) any later version. +// * +// * This library 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 +// * Lesser General Public License for more details. +// * +// * You should have received a copy of the GNU Lesser General Public +// * License along with this library; if not, write to the Free Software +// * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// */ + + +/** + * PHPExcel_Writer_Excel5_Workbook + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel5_Workbook extends PHPExcel_Writer_Excel5_BIFFwriter +{ + /** + * Formula parser + * + * @var PHPExcel_Writer_Excel5_Parser + */ + private $_parser; + + /** + * The BIFF file size for the workbook. + * @var integer + * @see _calcSheetOffsets() + */ + public $_biffsize; + + /** + * XF Writers + * @var PHPExcel_Writer_Excel5_Xf[] + */ + private $_xfWriters = array(); + + /** + * Array containing the colour palette + * @var array + */ + public $_palette; + + /** + * The codepage indicates the text encoding used for strings + * @var integer + */ + public $_codepage; + + /** + * The country code used for localization + * @var integer + */ + public $_country_code; + + /** + * Workbook + * @var PHPExcel + */ + private $_phpExcel; + + /** + * Fonts writers + * + * @var PHPExcel_Writer_Excel5_Font[] + */ + private $_fontWriters = array(); + + /** + * Added fonts. Maps from font's hash => index in workbook + * + * @var array + */ + private $_addedFonts = array(); + + /** + * Shared number formats + * + * @var array + */ + private $_numberFormats = array(); + + /** + * Added number formats. Maps from numberFormat's hash => index in workbook + * + * @var array + */ + private $_addedNumberFormats = array(); + + /** + * Sizes of the binary worksheet streams + * + * @var array + */ + private $_worksheetSizes = array(); + + /** + * Offsets of the binary worksheet streams relative to the start of the global workbook stream + * + * @var array + */ + private $_worksheetOffsets = array(); + + /** + * Total number of shared strings in workbook + * + * @var int + */ + private $_str_total; + + /** + * Number of unique shared strings in workbook + * + * @var int + */ + private $_str_unique; + + /** + * Array of unique shared strings in workbook + * + * @var array + */ + private $_str_table; + + /** + * Color cache + */ + private $_colors; + + /** + * Escher object corresponding to MSODRAWINGGROUP + * + * @var PHPExcel_Shared_Escher + */ + private $_escher; + + + /** + * Class constructor + * + * @param PHPExcel $phpExcel The Workbook + * @param int &$str_total Total number of strings + * @param int &$str_unique Total number of unique strings + * @param array &$str_table String Table + * @param array &$colors Colour Table + * @param mixed $parser The formula parser created for the Workbook + */ + public function __construct(PHPExcel $phpExcel = null, + &$str_total, &$str_unique, &$str_table, &$colors, + $parser ) + { + // It needs to call its parent's constructor explicitly + parent::__construct(); + + $this->_parser = $parser; + $this->_biffsize = 0; + $this->_palette = array(); + $this->_country_code = -1; + + $this->_str_total = &$str_total; + $this->_str_unique = &$str_unique; + $this->_str_table = &$str_table; + $this->_colors = &$colors; + $this->_setPaletteXl97(); + + $this->_phpExcel = $phpExcel; + + // set BIFFwriter limit for CONTINUE records + // $this->_limit = 8224; + $this->_codepage = 0x04B0; + + // Add empty sheets and Build color cache + $countSheets = $phpExcel->getSheetCount(); + for ($i = 0; $i < $countSheets; ++$i) { + $phpSheet = $phpExcel->getSheet($i); + + $this->_parser->setExtSheet($phpSheet->getTitle(), $i); // Register worksheet name with parser + + $supbook_index = 0x00; + $ref = pack('vvv', $supbook_index, $i, $i); + $this->_parser->_references[] = $ref; // Register reference with parser + + // Sheet tab colors? + if ($phpSheet->isTabColorSet()) { + $this->_addColor($phpSheet->getTabColor()->getRGB()); + } + } + + } + + /** + * Add a new XF writer + * + * @param PHPExcel_Style + * @param boolean Is it a style XF? + * @return int Index to XF record + */ + public function addXfWriter($style, $isStyleXf = false) + { + $xfWriter = new PHPExcel_Writer_Excel5_Xf($style); + $xfWriter->setIsStyleXf($isStyleXf); + + // Add the font if not already added + $fontIndex = $this->_addFont($style->getFont()); + + // Assign the font index to the xf record + $xfWriter->setFontIndex($fontIndex); + + // Background colors, best to treat these after the font so black will come after white in custom palette + $xfWriter->setFgColor($this->_addColor($style->getFill()->getStartColor()->getRGB())); + $xfWriter->setBgColor($this->_addColor($style->getFill()->getEndColor()->getRGB())); + $xfWriter->setBottomColor($this->_addColor($style->getBorders()->getBottom()->getColor()->getRGB())); + $xfWriter->setTopColor($this->_addColor($style->getBorders()->getTop()->getColor()->getRGB())); + $xfWriter->setRightColor($this->_addColor($style->getBorders()->getRight()->getColor()->getRGB())); + $xfWriter->setLeftColor($this->_addColor($style->getBorders()->getLeft()->getColor()->getRGB())); + $xfWriter->setDiagColor($this->_addColor($style->getBorders()->getDiagonal()->getColor()->getRGB())); + + // Add the number format if it is not a built-in one and not already added + if ($style->getNumberFormat()->getBuiltInFormatCode() === false) { + $numberFormatHashCode = $style->getNumberFormat()->getHashCode(); + + if (isset($this->_addedNumberFormats[$numberFormatHashCode])) { + $numberFormatIndex = $this->_addedNumberFormats[$numberFormatHashCode]; + } else { + $numberFormatIndex = 164 + count($this->_numberFormats); + $this->_numberFormats[$numberFormatIndex] = $style->getNumberFormat(); + $this->_addedNumberFormats[$numberFormatHashCode] = $numberFormatIndex; + } + } else { + $numberFormatIndex = (int) $style->getNumberFormat()->getBuiltInFormatCode(); + } + + // Assign the number format index to xf record + $xfWriter->setNumberFormatIndex($numberFormatIndex); + + $this->_xfWriters[] = $xfWriter; + + $xfIndex = count($this->_xfWriters) - 1; + return $xfIndex; + } + + /** + * Add a font to added fonts + * + * @param PHPExcel_Style_Font $font + * @return int Index to FONT record + */ + public function _addFont(PHPExcel_Style_Font $font) + { + $fontHashCode = $font->getHashCode(); + if(isset($this->_addedFonts[$fontHashCode])){ + $fontIndex = $this->_addedFonts[$fontHashCode]; + } else { + $countFonts = count($this->_fontWriters); + $fontIndex = ($countFonts < 4) ? $countFonts : $countFonts + 1; + + $fontWriter = new PHPExcel_Writer_Excel5_Font($font); + $fontWriter->setColorIndex($this->_addColor($font->getColor()->getRGB())); + $this->_fontWriters[] = $fontWriter; + + $this->_addedFonts[$fontHashCode] = $fontIndex; + } + return $fontIndex; + } + + /** + * Alter color palette adding a custom color + * + * @param string $rgb E.g. 'FF00AA' + * @return int Color index + */ + private function _addColor($rgb) { + if (!isset($this->_colors[$rgb])) { + if (count($this->_colors) < 57) { + // then we add a custom color altering the palette + $colorIndex = 8 + count($this->_colors); + $this->_palette[$colorIndex] = + array( + hexdec(substr($rgb, 0, 2)), + hexdec(substr($rgb, 2, 2)), + hexdec(substr($rgb, 4)), + 0 + ); + $this->_colors[$rgb] = $colorIndex; + } else { + // no room for more custom colors, just map to black + $colorIndex = 0; + } + } else { + // fetch already added custom color + $colorIndex = $this->_colors[$rgb]; + } + + return $colorIndex; + } + + /** + * Sets the colour palette to the Excel 97+ default. + * + * @access private + */ + function _setPaletteXl97() + { + $this->_palette = array( + 0x08 => array(0x00, 0x00, 0x00, 0x00), + 0x09 => array(0xff, 0xff, 0xff, 0x00), + 0x0A => array(0xff, 0x00, 0x00, 0x00), + 0x0B => array(0x00, 0xff, 0x00, 0x00), + 0x0C => array(0x00, 0x00, 0xff, 0x00), + 0x0D => array(0xff, 0xff, 0x00, 0x00), + 0x0E => array(0xff, 0x00, 0xff, 0x00), + 0x0F => array(0x00, 0xff, 0xff, 0x00), + 0x10 => array(0x80, 0x00, 0x00, 0x00), + 0x11 => array(0x00, 0x80, 0x00, 0x00), + 0x12 => array(0x00, 0x00, 0x80, 0x00), + 0x13 => array(0x80, 0x80, 0x00, 0x00), + 0x14 => array(0x80, 0x00, 0x80, 0x00), + 0x15 => array(0x00, 0x80, 0x80, 0x00), + 0x16 => array(0xc0, 0xc0, 0xc0, 0x00), + 0x17 => array(0x80, 0x80, 0x80, 0x00), + 0x18 => array(0x99, 0x99, 0xff, 0x00), + 0x19 => array(0x99, 0x33, 0x66, 0x00), + 0x1A => array(0xff, 0xff, 0xcc, 0x00), + 0x1B => array(0xcc, 0xff, 0xff, 0x00), + 0x1C => array(0x66, 0x00, 0x66, 0x00), + 0x1D => array(0xff, 0x80, 0x80, 0x00), + 0x1E => array(0x00, 0x66, 0xcc, 0x00), + 0x1F => array(0xcc, 0xcc, 0xff, 0x00), + 0x20 => array(0x00, 0x00, 0x80, 0x00), + 0x21 => array(0xff, 0x00, 0xff, 0x00), + 0x22 => array(0xff, 0xff, 0x00, 0x00), + 0x23 => array(0x00, 0xff, 0xff, 0x00), + 0x24 => array(0x80, 0x00, 0x80, 0x00), + 0x25 => array(0x80, 0x00, 0x00, 0x00), + 0x26 => array(0x00, 0x80, 0x80, 0x00), + 0x27 => array(0x00, 0x00, 0xff, 0x00), + 0x28 => array(0x00, 0xcc, 0xff, 0x00), + 0x29 => array(0xcc, 0xff, 0xff, 0x00), + 0x2A => array(0xcc, 0xff, 0xcc, 0x00), + 0x2B => array(0xff, 0xff, 0x99, 0x00), + 0x2C => array(0x99, 0xcc, 0xff, 0x00), + 0x2D => array(0xff, 0x99, 0xcc, 0x00), + 0x2E => array(0xcc, 0x99, 0xff, 0x00), + 0x2F => array(0xff, 0xcc, 0x99, 0x00), + 0x30 => array(0x33, 0x66, 0xff, 0x00), + 0x31 => array(0x33, 0xcc, 0xcc, 0x00), + 0x32 => array(0x99, 0xcc, 0x00, 0x00), + 0x33 => array(0xff, 0xcc, 0x00, 0x00), + 0x34 => array(0xff, 0x99, 0x00, 0x00), + 0x35 => array(0xff, 0x66, 0x00, 0x00), + 0x36 => array(0x66, 0x66, 0x99, 0x00), + 0x37 => array(0x96, 0x96, 0x96, 0x00), + 0x38 => array(0x00, 0x33, 0x66, 0x00), + 0x39 => array(0x33, 0x99, 0x66, 0x00), + 0x3A => array(0x00, 0x33, 0x00, 0x00), + 0x3B => array(0x33, 0x33, 0x00, 0x00), + 0x3C => array(0x99, 0x33, 0x00, 0x00), + 0x3D => array(0x99, 0x33, 0x66, 0x00), + 0x3E => array(0x33, 0x33, 0x99, 0x00), + 0x3F => array(0x33, 0x33, 0x33, 0x00), + ); + } + + /** + * Assemble worksheets into a workbook and send the BIFF data to an OLE + * storage. + * + * @param array $pWorksheetSizes The sizes in bytes of the binary worksheet streams + * @return string Binary data for workbook stream + */ + public function writeWorkbook($pWorksheetSizes = null) + { + $this->_worksheetSizes = $pWorksheetSizes; + + // Calculate the number of selected worksheet tabs and call the finalization + // methods for each worksheet + $total_worksheets = $this->_phpExcel->getSheetCount(); + + // Add part 1 of the Workbook globals, what goes before the SHEET records + $this->_storeBof(0x0005); + $this->_writeCodepage(); + $this->_writeWindow1(); + + $this->_writeDatemode(); + $this->_writeAllFonts(); + $this->_writeAllNumFormats(); + $this->_writeAllXfs(); + $this->_writeAllStyles(); + $this->_writePalette(); + + // Prepare part 3 of the workbook global stream, what goes after the SHEET records + $part3 = ''; + if ($this->_country_code != -1) { + $part3 .= $this->_writeCountry(); + } + $part3 .= $this->_writeRecalcId(); + + $part3 .= $this->_writeSupbookInternal(); + /* TODO: store external SUPBOOK records and XCT and CRN records + in case of external references for BIFF8 */ + $part3 .= $this->_writeExternsheetBiff8(); + $part3 .= $this->_writeAllDefinedNamesBiff8(); + $part3 .= $this->_writeMsoDrawingGroup(); + $part3 .= $this->_writeSharedStringsTable(); + + $part3 .= $this->writeEof(); + + // Add part 2 of the Workbook globals, the SHEET records + $this->_calcSheetOffsets(); + for ($i = 0; $i < $total_worksheets; ++$i) { + $this->_writeBoundsheet($this->_phpExcel->getSheet($i), $this->_worksheetOffsets[$i]); + } + + // Add part 3 of the Workbook globals + $this->_data .= $part3; + + return $this->_data; + } + + /** + * Calculate offsets for Worksheet BOF records. + * + * @access private + */ + function _calcSheetOffsets() + { + $boundsheet_length = 10; // fixed length for a BOUNDSHEET record + + // size of Workbook globals part 1 + 3 + $offset = $this->_datasize; + + // add size of Workbook globals part 2, the length of the SHEET records + $total_worksheets = count($this->_phpExcel->getAllSheets()); + foreach ($this->_phpExcel->getWorksheetIterator() as $sheet) { + $offset += $boundsheet_length + strlen(PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($sheet->getTitle())); + } + + // add the sizes of each of the Sheet substreams, respectively + for ($i = 0; $i < $total_worksheets; ++$i) { + $this->_worksheetOffsets[$i] = $offset; + $offset += $this->_worksheetSizes[$i]; + } + $this->_biffsize = $offset; + } + + /** + * Store the Excel FONT records. + */ + private function _writeAllFonts() + { + foreach ($this->_fontWriters as $fontWriter) { + $this->_append($fontWriter->writeFont()); + } + } + + /** + * Store user defined numerical formats i.e. FORMAT records + */ + private function _writeAllNumFormats() + { + foreach ($this->_numberFormats as $numberFormatIndex => $numberFormat) { + $this->_writeNumFormat($numberFormat->getFormatCode(), $numberFormatIndex); + } + } + + /** + * Write all XF records. + */ + private function _writeAllXfs() + { + foreach ($this->_xfWriters as $xfWriter) { + $this->_append($xfWriter->writeXf()); + } + } + + /** + * Write all STYLE records. + */ + private function _writeAllStyles() + { + $this->_writeStyle(); + } + + /** + * Write the EXTERNCOUNT and EXTERNSHEET records. These are used as indexes for + * the NAME records. + */ + private function _writeExterns() + { + $countSheets = $this->_phpExcel->getSheetCount(); + // Create EXTERNCOUNT with number of worksheets + $this->_writeExterncount($countSheets); + + // Create EXTERNSHEET for each worksheet + for ($i = 0; $i < $countSheets; ++$i) { + $this->_writeExternsheet($this->_phpExcel->getSheet($i)->getTitle()); + } + } + + /** + * Write the NAME record to define the print area and the repeat rows and cols. + */ + private function _writeNames() + { + // total number of sheets + $total_worksheets = $this->_phpExcel->getSheetCount(); + + // Create the print area NAME records + for ($i = 0; $i < $total_worksheets; ++$i) { + $sheetSetup = $this->_phpExcel->getSheet($i)->getPageSetup(); + // Write a Name record if the print area has been defined + if ($sheetSetup->isPrintAreaSet()) { + // Print area + $printArea = PHPExcel_Cell::splitRange($sheetSetup->getPrintArea()); + $printArea = $printArea[0]; + $printArea[0] = PHPExcel_Cell::coordinateFromString($printArea[0]); + $printArea[1] = PHPExcel_Cell::coordinateFromString($printArea[1]); + + $print_rowmin = $printArea[0][1] - 1; + $print_rowmax = $printArea[1][1] - 1; + $print_colmin = PHPExcel_Cell::columnIndexFromString($printArea[0][0]) - 1; + $print_colmax = PHPExcel_Cell::columnIndexFromString($printArea[1][0]) - 1; + + $this->_writeNameShort( + $i, // sheet index + 0x06, // NAME type + $print_rowmin, + $print_rowmax, + $print_colmin, + $print_colmax + ); + } + } + + // Create the print title NAME records + for ($i = 0; $i < $total_worksheets; ++$i) { + $sheetSetup = $this->_phpExcel->getSheet($i)->getPageSetup(); + + // simultaneous repeatColumns repeatRows + if ($sheetSetup->isColumnsToRepeatAtLeftSet() && $sheetSetup->isRowsToRepeatAtTopSet()) { + $repeat = $sheetSetup->getColumnsToRepeatAtLeft(); + $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1; + $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1; + + $repeat = $sheetSetup->getRowsToRepeatAtTop(); + $rowmin = $repeat[0] - 1; + $rowmax = $repeat[1] - 1; + + $this->_writeNameLong( + $i, // sheet index + 0x07, // NAME type + $rowmin, + $rowmax, + $colmin, + $colmax + ); + + // (exclusive) either repeatColumns or repeatRows + } else if ($sheetSetup->isColumnsToRepeatAtLeftSet() || $sheetSetup->isRowsToRepeatAtTopSet()) { + + // Columns to repeat + if ($sheetSetup->isColumnsToRepeatAtLeftSet()) { + $repeat = $sheetSetup->getColumnsToRepeatAtLeft(); + $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1; + $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1; + } else { + $colmin = 0; + $colmax = 255; + } + + // Rows to repeat + if ($sheetSetup->isRowsToRepeatAtTopSet()) { + $repeat = $sheetSetup->getRowsToRepeatAtTop(); + $rowmin = $repeat[0] - 1; + $rowmax = $repeat[1] - 1; + } else { + $rowmin = 0; + $rowmax = 65535; + } + + $this->_writeNameShort( + $i, // sheet index + 0x07, // NAME type + $rowmin, + $rowmax, + $colmin, + $colmax + ); + } + } + } + + /** + * Writes all the DEFINEDNAME records (BIFF8). + * So far this is only used for repeating rows/columns (print titles) and print areas + */ + private function _writeAllDefinedNamesBiff8() + { + $chunk = ''; + + // Named ranges + if (count($this->_phpExcel->getNamedRanges()) > 0) { + // Loop named ranges + $namedRanges = $this->_phpExcel->getNamedRanges(); + foreach ($namedRanges as $namedRange) { + + // Create absolute coordinate + $range = PHPExcel_Cell::splitRange($namedRange->getRange()); + for ($i = 0; $i < count($range); $i++) { + $range[$i][0] = '\'' . str_replace("'", "''", $namedRange->getWorksheet()->getTitle()) . '\'!' . PHPExcel_Cell::absoluteCoordinate($range[$i][0]); + if (isset($range[$i][1])) { + $range[$i][1] = PHPExcel_Cell::absoluteCoordinate($range[$i][1]); + } + } + $range = PHPExcel_Cell::buildRange($range); // e.g. Sheet1!$A$1:$B$2 + + // parse formula + try { + $error = $this->_parser->parse($range); + $formulaData = $this->_parser->toReversePolish(); + + // make sure tRef3d is of type tRef3dR (0x3A) + if (isset($formulaData{0}) and ($formulaData{0} == "\x7A" or $formulaData{0} == "\x5A")) { + $formulaData = "\x3A" . substr($formulaData, 1); + } + + if ($namedRange->getLocalOnly()) { + // local scope + $scope = $this->_phpExcel->getIndex($namedRange->getScope()) + 1; + } else { + // global scope + $scope = 0; + } + $chunk .= $this->writeData($this->_writeDefinedNameBiff8($namedRange->getName(), $formulaData, $scope, false)); + + } catch(PHPExcel_Exception $e) { + // do nothing + } + } + } + + // total number of sheets + $total_worksheets = $this->_phpExcel->getSheetCount(); + + // write the print titles (repeating rows, columns), if any + for ($i = 0; $i < $total_worksheets; ++$i) { + $sheetSetup = $this->_phpExcel->getSheet($i)->getPageSetup(); + // simultaneous repeatColumns repeatRows + if ($sheetSetup->isColumnsToRepeatAtLeftSet() && $sheetSetup->isRowsToRepeatAtTopSet()) { + $repeat = $sheetSetup->getColumnsToRepeatAtLeft(); + $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1; + $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1; + + $repeat = $sheetSetup->getRowsToRepeatAtTop(); + $rowmin = $repeat[0] - 1; + $rowmax = $repeat[1] - 1; + + // construct formula data manually + $formulaData = pack('Cv', 0x29, 0x17); // tMemFunc + $formulaData .= pack('Cvvvvv', 0x3B, $i, 0, 65535, $colmin, $colmax); // tArea3d + $formulaData .= pack('Cvvvvv', 0x3B, $i, $rowmin, $rowmax, 0, 255); // tArea3d + $formulaData .= pack('C', 0x10); // tList + + // store the DEFINEDNAME record + $chunk .= $this->writeData($this->_writeDefinedNameBiff8(pack('C', 0x07), $formulaData, $i + 1, true)); + + // (exclusive) either repeatColumns or repeatRows + } else if ($sheetSetup->isColumnsToRepeatAtLeftSet() || $sheetSetup->isRowsToRepeatAtTopSet()) { + + // Columns to repeat + if ($sheetSetup->isColumnsToRepeatAtLeftSet()) { + $repeat = $sheetSetup->getColumnsToRepeatAtLeft(); + $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1; + $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1; + } else { + $colmin = 0; + $colmax = 255; + } + // Rows to repeat + if ($sheetSetup->isRowsToRepeatAtTopSet()) { + $repeat = $sheetSetup->getRowsToRepeatAtTop(); + $rowmin = $repeat[0] - 1; + $rowmax = $repeat[1] - 1; + } else { + $rowmin = 0; + $rowmax = 65535; + } + + // construct formula data manually because parser does not recognize absolute 3d cell references + $formulaData = pack('Cvvvvv', 0x3B, $i, $rowmin, $rowmax, $colmin, $colmax); + + // store the DEFINEDNAME record + $chunk .= $this->writeData($this->_writeDefinedNameBiff8(pack('C', 0x07), $formulaData, $i + 1, true)); + } + } + + // write the print areas, if any + for ($i = 0; $i < $total_worksheets; ++$i) { + $sheetSetup = $this->_phpExcel->getSheet($i)->getPageSetup(); + if ($sheetSetup->isPrintAreaSet()) { + // Print area, e.g. A3:J6,H1:X20 + $printArea = PHPExcel_Cell::splitRange($sheetSetup->getPrintArea()); + $countPrintArea = count($printArea); + + $formulaData = ''; + for ($j = 0; $j < $countPrintArea; ++$j) { + $printAreaRect = $printArea[$j]; // e.g. A3:J6 + $printAreaRect[0] = PHPExcel_Cell::coordinateFromString($printAreaRect[0]); + $printAreaRect[1] = PHPExcel_Cell::coordinateFromString($printAreaRect[1]); + + $print_rowmin = $printAreaRect[0][1] - 1; + $print_rowmax = $printAreaRect[1][1] - 1; + $print_colmin = PHPExcel_Cell::columnIndexFromString($printAreaRect[0][0]) - 1; + $print_colmax = PHPExcel_Cell::columnIndexFromString($printAreaRect[1][0]) - 1; + + // construct formula data manually because parser does not recognize absolute 3d cell references + $formulaData .= pack('Cvvvvv', 0x3B, $i, $print_rowmin, $print_rowmax, $print_colmin, $print_colmax); + + if ($j > 0) { + $formulaData .= pack('C', 0x10); // list operator token ',' + } + } + + // store the DEFINEDNAME record + $chunk .= $this->writeData($this->_writeDefinedNameBiff8(pack('C', 0x06), $formulaData, $i + 1, true)); + } + } + + // write autofilters, if any + for ($i = 0; $i < $total_worksheets; ++$i) { + $sheetAutoFilter = $this->_phpExcel->getSheet($i)->getAutoFilter(); + $autoFilterRange = $sheetAutoFilter->getRange(); + if(!empty($autoFilterRange)) { + $rangeBounds = PHPExcel_Cell::rangeBoundaries($autoFilterRange); + + //Autofilter built in name + $name = pack('C', 0x0D); + + $chunk .= $this->writeData($this->_writeShortNameBiff8($name, $i + 1, $rangeBounds, true)); + } + } + + return $chunk; + } + + /** + * Write a DEFINEDNAME record for BIFF8 using explicit binary formula data + * + * @param string $name The name in UTF-8 + * @param string $formulaData The binary formula data + * @param string $sheetIndex 1-based sheet index the defined name applies to. 0 = global + * @param boolean $isBuiltIn Built-in name? + * @return string Complete binary record data + */ + private function _writeDefinedNameBiff8($name, $formulaData, $sheetIndex = 0, $isBuiltIn = false) + { + $record = 0x0018; + + // option flags + $options = $isBuiltIn ? 0x20 : 0x00; + + // length of the name, character count + $nlen = PHPExcel_Shared_String::CountCharacters($name); + + // name with stripped length field + $name = substr(PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($name), 2); + + // size of the formula (in bytes) + $sz = strlen($formulaData); + + // combine the parts + $data = pack('vCCvvvCCCC', $options, 0, $nlen, $sz, 0, $sheetIndex, 0, 0, 0, 0) + . $name . $formulaData; + $length = strlen($data); + + $header = pack('vv', $record, $length); + + return $header . $data; + } + + /** + * Write a short NAME record + * + * @param string $name + * @param string $sheetIndex 1-based sheet index the defined name applies to. 0 = global + * @param integer[][] $rangeBounds range boundaries + * @param boolean $isHidden + * @return string Complete binary record data + * */ + private function _writeShortNameBiff8($name, $sheetIndex = 0, $rangeBounds, $isHidden = false){ + $record = 0x0018; + + // option flags + $options = ($isHidden ? 0x21 : 0x00); + + $extra = pack('Cvvvvv', + 0x3B, + $sheetIndex - 1, + $rangeBounds[0][1] - 1, + $rangeBounds[1][1] - 1, + $rangeBounds[0][0] - 1, + $rangeBounds[1][0] - 1); + + // size of the formula (in bytes) + $sz = strlen($extra); + + // combine the parts + $data = pack('vCCvvvCCCCC', $options, 0, 1, $sz, 0, $sheetIndex, 0, 0, 0, 0, 0) + . $name . $extra; + $length = strlen($data); + + $header = pack('vv', $record, $length); + + return $header . $data; + } + + /** + * Stores the CODEPAGE biff record. + */ + private function _writeCodepage() + { + $record = 0x0042; // Record identifier + $length = 0x0002; // Number of bytes to follow + $cv = $this->_codepage; // The code page + + $header = pack('vv', $record, $length); + $data = pack('v', $cv); + + $this->_append($header . $data); + } + + /** + * Write Excel BIFF WINDOW1 record. + */ + private function _writeWindow1() + { + $record = 0x003D; // Record identifier + $length = 0x0012; // Number of bytes to follow + + $xWn = 0x0000; // Horizontal position of window + $yWn = 0x0000; // Vertical position of window + $dxWn = 0x25BC; // Width of window + $dyWn = 0x1572; // Height of window + + $grbit = 0x0038; // Option flags + + // not supported by PHPExcel, so there is only one selected sheet, the active + $ctabsel = 1; // Number of workbook tabs selected + + $wTabRatio = 0x0258; // Tab to scrollbar ratio + + // not supported by PHPExcel, set to 0 + $itabFirst = 0; // 1st displayed worksheet + $itabCur = $this->_phpExcel->getActiveSheetIndex(); // Active worksheet + + $header = pack("vv", $record, $length); + $data = pack("vvvvvvvvv", $xWn, $yWn, $dxWn, $dyWn, + $grbit, + $itabCur, $itabFirst, + $ctabsel, $wTabRatio); + $this->_append($header . $data); + } + + /** + * Writes Excel BIFF BOUNDSHEET record. + * + * @param PHPExcel_Worksheet $sheet Worksheet name + * @param integer $offset Location of worksheet BOF + */ + private function _writeBoundsheet($sheet, $offset) + { + $sheetname = $sheet->getTitle(); + $record = 0x0085; // Record identifier + + // sheet state + switch ($sheet->getSheetState()) { + case PHPExcel_Worksheet::SHEETSTATE_VISIBLE: $ss = 0x00; break; + case PHPExcel_Worksheet::SHEETSTATE_HIDDEN: $ss = 0x01; break; + case PHPExcel_Worksheet::SHEETSTATE_VERYHIDDEN: $ss = 0x02; break; + default: $ss = 0x00; break; + } + + // sheet type + $st = 0x00; + + $grbit = 0x0000; // Visibility and sheet type + + $data = pack("VCC", $offset, $ss, $st); + $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($sheetname); + + $length = strlen($data); + $header = pack("vv", $record, $length); + $this->_append($header . $data); + } + + /** + * Write Internal SUPBOOK record + */ + private function _writeSupbookInternal() + { + $record = 0x01AE; // Record identifier + $length = 0x0004; // Bytes to follow + + $header = pack("vv", $record, $length); + $data = pack("vv", $this->_phpExcel->getSheetCount(), 0x0401); + return $this->writeData($header . $data); + } + + /** + * Writes the Excel BIFF EXTERNSHEET record. These references are used by + * formulas. + * + */ + private function _writeExternsheetBiff8() + { + $total_references = count($this->_parser->_references); + $record = 0x0017; // Record identifier + $length = 2 + 6 * $total_references; // Number of bytes to follow + + $supbook_index = 0; // FIXME: only using internal SUPBOOK record + $header = pack("vv", $record, $length); + $data = pack('v', $total_references); + for ($i = 0; $i < $total_references; ++$i) { + $data .= $this->_parser->_references[$i]; + } + return $this->writeData($header . $data); + } + + /** + * Write Excel BIFF STYLE records. + */ + private function _writeStyle() + { + $record = 0x0293; // Record identifier + $length = 0x0004; // Bytes to follow + + $ixfe = 0x8000; // Index to cell style XF + $BuiltIn = 0x00; // Built-in style + $iLevel = 0xff; // Outline style level + + $header = pack("vv", $record, $length); + $data = pack("vCC", $ixfe, $BuiltIn, $iLevel); + $this->_append($header . $data); + } + + /** + * Writes Excel FORMAT record for non "built-in" numerical formats. + * + * @param string $format Custom format string + * @param integer $ifmt Format index code + */ + private function _writeNumFormat($format, $ifmt) + { + $record = 0x041E; // Record identifier + + $numberFormatString = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($format); + $length = 2 + strlen($numberFormatString); // Number of bytes to follow + + + $header = pack("vv", $record, $length); + $data = pack("v", $ifmt) . $numberFormatString; + $this->_append($header . $data); + } + + /** + * Write DATEMODE record to indicate the date system in use (1904 or 1900). + */ + private function _writeDatemode() + { + $record = 0x0022; // Record identifier + $length = 0x0002; // Bytes to follow + + $f1904 = (PHPExcel_Shared_Date::getExcelCalendar() == PHPExcel_Shared_Date::CALENDAR_MAC_1904) ? + 1 : 0; // Flag for 1904 date system + + $header = pack("vv", $record, $length); + $data = pack("v", $f1904); + $this->_append($header . $data); + } + + /** + * Write BIFF record EXTERNCOUNT to indicate the number of external sheet + * references in the workbook. + * + * Excel only stores references to external sheets that are used in NAME. + * The workbook NAME record is required to define the print area and the repeat + * rows and columns. + * + * A similar method is used in Worksheet.php for a slightly different purpose. + * + * @param integer $cxals Number of external references + */ + private function _writeExterncount($cxals) + { + $record = 0x0016; // Record identifier + $length = 0x0002; // Number of bytes to follow + + $header = pack("vv", $record, $length); + $data = pack("v", $cxals); + $this->_append($header . $data); + } + + /** + * Writes the Excel BIFF EXTERNSHEET record. These references are used by + * formulas. NAME record is required to define the print area and the repeat + * rows and columns. + * + * A similar method is used in Worksheet.php for a slightly different purpose. + * + * @param string $sheetname Worksheet name + */ + private function _writeExternsheet($sheetname) + { + $record = 0x0017; // Record identifier + $length = 0x02 + strlen($sheetname); // Number of bytes to follow + + $cch = strlen($sheetname); // Length of sheet name + $rgch = 0x03; // Filename encoding + + $header = pack("vv", $record, $length); + $data = pack("CC", $cch, $rgch); + $this->_append($header . $data . $sheetname); + } + + /** + * Store the NAME record in the short format that is used for storing the print + * area, repeat rows only and repeat columns only. + * + * @param integer $index Sheet index + * @param integer $type Built-in name type + * @param integer $rowmin Start row + * @param integer $rowmax End row + * @param integer $colmin Start colum + * @param integer $colmax End column + */ + private function _writeNameShort($index, $type, $rowmin, $rowmax, $colmin, $colmax) + { + $record = 0x0018; // Record identifier + $length = 0x0024; // Number of bytes to follow + + $grbit = 0x0020; // Option flags + $chKey = 0x00; // Keyboard shortcut + $cch = 0x01; // Length of text name + $cce = 0x0015; // Length of text definition + $ixals = $index + 1; // Sheet index + $itab = $ixals; // Equal to ixals + $cchCustMenu = 0x00; // Length of cust menu text + $cchDescription = 0x00; // Length of description text + $cchHelptopic = 0x00; // Length of help topic text + $cchStatustext = 0x00; // Length of status bar text + $rgch = $type; // Built-in name type + + $unknown03 = 0x3b; + $unknown04 = 0xffff-$index; + $unknown05 = 0x0000; + $unknown06 = 0x0000; + $unknown07 = 0x1087; + $unknown08 = 0x8005; + + $header = pack("vv", $record, $length); + $data = pack("v", $grbit); + $data .= pack("C", $chKey); + $data .= pack("C", $cch); + $data .= pack("v", $cce); + $data .= pack("v", $ixals); + $data .= pack("v", $itab); + $data .= pack("C", $cchCustMenu); + $data .= pack("C", $cchDescription); + $data .= pack("C", $cchHelptopic); + $data .= pack("C", $cchStatustext); + $data .= pack("C", $rgch); + $data .= pack("C", $unknown03); + $data .= pack("v", $unknown04); + $data .= pack("v", $unknown05); + $data .= pack("v", $unknown06); + $data .= pack("v", $unknown07); + $data .= pack("v", $unknown08); + $data .= pack("v", $index); + $data .= pack("v", $index); + $data .= pack("v", $rowmin); + $data .= pack("v", $rowmax); + $data .= pack("C", $colmin); + $data .= pack("C", $colmax); + $this->_append($header . $data); + } + + /** + * Store the NAME record in the long format that is used for storing the repeat + * rows and columns when both are specified. This shares a lot of code with + * _writeNameShort() but we use a separate method to keep the code clean. + * Code abstraction for reuse can be carried too far, and I should know. ;-) + * + * @param integer $index Sheet index + * @param integer $type Built-in name type + * @param integer $rowmin Start row + * @param integer $rowmax End row + * @param integer $colmin Start colum + * @param integer $colmax End column + */ + private function _writeNameLong($index, $type, $rowmin, $rowmax, $colmin, $colmax) + { + $record = 0x0018; // Record identifier + $length = 0x003d; // Number of bytes to follow + $grbit = 0x0020; // Option flags + $chKey = 0x00; // Keyboard shortcut + $cch = 0x01; // Length of text name + $cce = 0x002e; // Length of text definition + $ixals = $index + 1; // Sheet index + $itab = $ixals; // Equal to ixals + $cchCustMenu = 0x00; // Length of cust menu text + $cchDescription = 0x00; // Length of description text + $cchHelptopic = 0x00; // Length of help topic text + $cchStatustext = 0x00; // Length of status bar text + $rgch = $type; // Built-in name type + + $unknown01 = 0x29; + $unknown02 = 0x002b; + $unknown03 = 0x3b; + $unknown04 = 0xffff-$index; + $unknown05 = 0x0000; + $unknown06 = 0x0000; + $unknown07 = 0x1087; + $unknown08 = 0x8008; + + $header = pack("vv", $record, $length); + $data = pack("v", $grbit); + $data .= pack("C", $chKey); + $data .= pack("C", $cch); + $data .= pack("v", $cce); + $data .= pack("v", $ixals); + $data .= pack("v", $itab); + $data .= pack("C", $cchCustMenu); + $data .= pack("C", $cchDescription); + $data .= pack("C", $cchHelptopic); + $data .= pack("C", $cchStatustext); + $data .= pack("C", $rgch); + $data .= pack("C", $unknown01); + $data .= pack("v", $unknown02); + // Column definition + $data .= pack("C", $unknown03); + $data .= pack("v", $unknown04); + $data .= pack("v", $unknown05); + $data .= pack("v", $unknown06); + $data .= pack("v", $unknown07); + $data .= pack("v", $unknown08); + $data .= pack("v", $index); + $data .= pack("v", $index); + $data .= pack("v", 0x0000); + $data .= pack("v", 0x3fff); + $data .= pack("C", $colmin); + $data .= pack("C", $colmax); + // Row definition + $data .= pack("C", $unknown03); + $data .= pack("v", $unknown04); + $data .= pack("v", $unknown05); + $data .= pack("v", $unknown06); + $data .= pack("v", $unknown07); + $data .= pack("v", $unknown08); + $data .= pack("v", $index); + $data .= pack("v", $index); + $data .= pack("v", $rowmin); + $data .= pack("v", $rowmax); + $data .= pack("C", 0x00); + $data .= pack("C", 0xff); + // End of data + $data .= pack("C", 0x10); + $this->_append($header . $data); + } + + /** + * Stores the COUNTRY record for localization + * + * @return string + */ + private function _writeCountry() + { + $record = 0x008C; // Record identifier + $length = 4; // Number of bytes to follow + + $header = pack('vv', $record, $length); + /* using the same country code always for simplicity */ + $data = pack('vv', $this->_country_code, $this->_country_code); + //$this->_append($header . $data); + return $this->writeData($header . $data); + } + + /** + * Write the RECALCID record + * + * @return string + */ + private function _writeRecalcId() + { + $record = 0x01C1; // Record identifier + $length = 8; // Number of bytes to follow + + $header = pack('vv', $record, $length); + + // by inspection of real Excel files, MS Office Excel 2007 writes this + $data = pack('VV', 0x000001C1, 0x00001E667); + + return $this->writeData($header . $data); + } + + /** + * Stores the PALETTE biff record. + */ + private function _writePalette() + { + $aref = $this->_palette; + + $record = 0x0092; // Record identifier + $length = 2 + 4 * count($aref); // Number of bytes to follow + $ccv = count($aref); // Number of RGB values to follow + $data = ''; // The RGB data + + // Pack the RGB data + foreach ($aref as $color) { + foreach ($color as $byte) { + $data .= pack("C",$byte); + } + } + + $header = pack("vvv", $record, $length, $ccv); + $this->_append($header . $data); + } + + /** + * Handling of the SST continue blocks is complicated by the need to include an + * additional continuation byte depending on whether the string is split between + * blocks or whether it starts at the beginning of the block. (There are also + * additional complications that will arise later when/if Rich Strings are + * supported). + * + * The Excel documentation says that the SST record should be followed by an + * EXTSST record. The EXTSST record is a hash table that is used to optimise + * access to SST. However, despite the documentation it doesn't seem to be + * required so we will ignore it. + * + * @return string Binary data + */ + private function _writeSharedStringsTable() + { + // maximum size of record data (excluding record header) + $continue_limit = 8224; + + // initialize array of record data blocks + $recordDatas = array(); + + // start SST record data block with total number of strings, total number of unique strings + $recordData = pack("VV", $this->_str_total, $this->_str_unique); + + // loop through all (unique) strings in shared strings table + foreach (array_keys($this->_str_table) as $string) { + + // here $string is a BIFF8 encoded string + + // length = character count + $headerinfo = unpack("vlength/Cencoding", $string); + + // currently, this is always 1 = uncompressed + $encoding = $headerinfo["encoding"]; + + // initialize finished writing current $string + $finished = false; + + while ($finished === false) { + + // normally, there will be only one cycle, but if string cannot immediately be written as is + // there will be need for more than one cylcle, if string longer than one record data block, there + // may be need for even more cycles + + if (strlen($recordData) + strlen($string) <= $continue_limit) { + // then we can write the string (or remainder of string) without any problems + $recordData .= $string; + + if (strlen($recordData) + strlen($string) == $continue_limit) { + // we close the record data block, and initialize a new one + $recordDatas[] = $recordData; + $recordData = ''; + } + + // we are finished writing this string + $finished = true; + } else { + // special treatment writing the string (or remainder of the string) + // If the string is very long it may need to be written in more than one CONTINUE record. + + // check how many bytes more there is room for in the current record + $space_remaining = $continue_limit - strlen($recordData); + + // minimum space needed + // uncompressed: 2 byte string length length field + 1 byte option flags + 2 byte character + // compressed: 2 byte string length length field + 1 byte option flags + 1 byte character + $min_space_needed = ($encoding == 1) ? 5 : 4; + + // We have two cases + // 1. space remaining is less than minimum space needed + // here we must waste the space remaining and move to next record data block + // 2. space remaining is greater than or equal to minimum space needed + // here we write as much as we can in the current block, then move to next record data block + + // 1. space remaining is less than minimum space needed + if ($space_remaining < $min_space_needed) { + // we close the block, store the block data + $recordDatas[] = $recordData; + + // and start new record data block where we start writing the string + $recordData = ''; + + // 2. space remaining is greater than or equal to minimum space needed + } else { + // initialize effective remaining space, for Unicode strings this may need to be reduced by 1, see below + $effective_space_remaining = $space_remaining; + + // for uncompressed strings, sometimes effective space remaining is reduced by 1 + if ( $encoding == 1 && (strlen($string) - $space_remaining) % 2 == 1 ) { + --$effective_space_remaining; + } + + // one block fininshed, store the block data + $recordData .= substr($string, 0, $effective_space_remaining); + + $string = substr($string, $effective_space_remaining); // for next cycle in while loop + $recordDatas[] = $recordData; + + // start new record data block with the repeated option flags + $recordData = pack('C', $encoding); + } + } + } + } + + // Store the last record data block unless it is empty + // if there was no need for any continue records, this will be the for SST record data block itself + if (strlen($recordData) > 0) { + $recordDatas[] = $recordData; + } + + // combine into one chunk with all the blocks SST, CONTINUE,... + $chunk = ''; + foreach ($recordDatas as $i => $recordData) { + // first block should have the SST record header, remaing should have CONTINUE header + $record = ($i == 0) ? 0x00FC : 0x003C; + + $header = pack("vv", $record, strlen($recordData)); + $data = $header . $recordData; + + $chunk .= $this->writeData($data); + } + + return $chunk; + } + + /** + * Writes the MSODRAWINGGROUP record if needed. Possibly split using CONTINUE records. + */ + private function _writeMsoDrawingGroup() + { + // write the Escher stream if necessary + if (isset($this->_escher)) { + $writer = new PHPExcel_Writer_Excel5_Escher($this->_escher); + $data = $writer->close(); + + $record = 0x00EB; + $length = strlen($data); + $header = pack("vv", $record, $length); + + return $this->writeData($header . $data); + + } else { + return ''; + } + } + + /** + * Get Escher object + * + * @return PHPExcel_Shared_Escher + */ + public function getEscher() + { + return $this->_escher; + } + + /** + * Set Escher object + * + * @param PHPExcel_Shared_Escher $pValue + */ + public function setEscher(PHPExcel_Shared_Escher $pValue = null) + { + $this->_escher = $pValue; + } +} diff --git a/admin/helpers/PHPExcel/Writer/Excel5/Worksheet.php b/admin/helpers/PHPExcel/Writer/Excel5/Worksheet.php new file mode 100644 index 00000000..fb75499b --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel5/Worksheet.php @@ -0,0 +1,3681 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +// Original file header of PEAR::Spreadsheet_Excel_Writer_Worksheet (used as the base for this class): +// ----------------------------------------------------------------------------------------- +// /* +// * Module written/ported by Xavier Noguer <xnoguer@rezebra.com> +// * +// * The majority of this is _NOT_ my code. I simply ported it from the +// * PERL Spreadsheet::WriteExcel module. +// * +// * The author of the Spreadsheet::WriteExcel module is John McNamara +// * <jmcnamara@cpan.org> +// * +// * I _DO_ maintain this code, and John McNamara has nothing to do with the +// * porting of this code to PHP. Any questions directly related to this +// * class library should be directed to me. +// * +// * License Information: +// * +// * Spreadsheet_Excel_Writer: A library for generating Excel Spreadsheets +// * Copyright (c) 2002-2003 Xavier Noguer xnoguer@rezebra.com +// * +// * This library is free software; you can redistribute it and/or +// * modify it under the terms of the GNU Lesser General Public +// * License as published by the Free Software Foundation; either +// * version 2.1 of the License, or (at your option) any later version. +// * +// * This library 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 +// * Lesser General Public License for more details. +// * +// * You should have received a copy of the GNU Lesser General Public +// * License along with this library; if not, write to the Free Software +// * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// */ + + +/** + * PHPExcel_Writer_Excel5_Worksheet + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel5_Worksheet extends PHPExcel_Writer_Excel5_BIFFwriter +{ + /** + * Formula parser + * + * @var PHPExcel_Writer_Excel5_Parser + */ + private $_parser; + + /** + * Maximum number of characters for a string (LABEL record in BIFF5) + * @var integer + */ + public $_xls_strmax; + + /** + * Array containing format information for columns + * @var array + */ + public $_colinfo; + + /** + * Array containing the selected area for the worksheet + * @var array + */ + public $_selection; + + /** + * The active pane for the worksheet + * @var integer + */ + public $_active_pane; + + /** + * Whether to use outline. + * @var integer + */ + public $_outline_on; + + /** + * Auto outline styles. + * @var bool + */ + public $_outline_style; + + /** + * Whether to have outline summary below. + * @var bool + */ + public $_outline_below; + + /** + * Whether to have outline summary at the right. + * @var bool + */ + public $_outline_right; + + /** + * Reference to the total number of strings in the workbook + * @var integer + */ + public $_str_total; + + /** + * Reference to the number of unique strings in the workbook + * @var integer + */ + public $_str_unique; + + /** + * Reference to the array containing all the unique strings in the workbook + * @var array + */ + public $_str_table; + + /** + * Color cache + */ + private $_colors; + + /** + * Index of first used row (at least 0) + * @var int + */ + private $_firstRowIndex; + + /** + * Index of last used row. (no used rows means -1) + * @var int + */ + private $_lastRowIndex; + + /** + * Index of first used column (at least 0) + * @var int + */ + private $_firstColumnIndex; + + /** + * Index of last used column (no used columns means -1) + * @var int + */ + private $_lastColumnIndex; + + /** + * Sheet object + * @var PHPExcel_Worksheet + */ + public $_phpSheet; + + /** + * Count cell style Xfs + * + * @var int + */ + private $_countCellStyleXfs; + + /** + * Escher object corresponding to MSODRAWING + * + * @var PHPExcel_Shared_Escher + */ + private $_escher; + + /** + * Array of font hashes associated to FONT records index + * + * @var array + */ + public $_fntHashIndex; + + /** + * Constructor + * + * @param int &$str_total Total number of strings + * @param int &$str_unique Total number of unique strings + * @param array &$str_table String Table + * @param array &$colors Colour Table + * @param mixed $parser The formula parser created for the Workbook + * @param boolean $preCalculateFormulas Flag indicating whether formulas should be calculated or just written + * @param string $phpSheet The worksheet to write + * @param PHPExcel_Worksheet $phpSheet + */ + public function __construct(&$str_total, &$str_unique, &$str_table, &$colors, + $parser, $preCalculateFormulas, $phpSheet) + { + // It needs to call its parent's constructor explicitly + parent::__construct(); + + // change BIFFwriter limit for CONTINUE records +// $this->_limit = 8224; + + + $this->_preCalculateFormulas = $preCalculateFormulas; + $this->_str_total = &$str_total; + $this->_str_unique = &$str_unique; + $this->_str_table = &$str_table; + $this->_colors = &$colors; + $this->_parser = $parser; + + $this->_phpSheet = $phpSheet; + + //$this->ext_sheets = array(); + //$this->offset = 0; + $this->_xls_strmax = 255; + $this->_colinfo = array(); + $this->_selection = array(0,0,0,0); + $this->_active_pane = 3; + + $this->_print_headers = 0; + + $this->_outline_style = 0; + $this->_outline_below = 1; + $this->_outline_right = 1; + $this->_outline_on = 1; + + $this->_fntHashIndex = array(); + + // calculate values for DIMENSIONS record + $minR = 1; + $minC = 'A'; + + $maxR = $this->_phpSheet->getHighestRow(); + $maxC = $this->_phpSheet->getHighestColumn(); + + // Determine lowest and highest column and row +// $this->_firstRowIndex = ($minR > 65535) ? 65535 : $minR; + $this->_lastRowIndex = ($maxR > 65535) ? 65535 : $maxR ; + + $this->_firstColumnIndex = PHPExcel_Cell::columnIndexFromString($minC); + $this->_lastColumnIndex = PHPExcel_Cell::columnIndexFromString($maxC); + +// if ($this->_firstColumnIndex > 255) $this->_firstColumnIndex = 255; + if ($this->_lastColumnIndex > 255) $this->_lastColumnIndex = 255; + + $this->_countCellStyleXfs = count($phpSheet->getParent()->getCellStyleXfCollection()); + } + + /** + * Add data to the beginning of the workbook (note the reverse order) + * and to the end of the workbook. + * + * @access public + * @see PHPExcel_Writer_Excel5_Workbook::storeWorkbook() + */ + function close() + { + $_phpSheet = $this->_phpSheet; + + $num_sheets = $_phpSheet->getParent()->getSheetCount(); + + // Write BOF record + $this->_storeBof(0x0010); + + // Write PRINTHEADERS + $this->_writePrintHeaders(); + + // Write PRINTGRIDLINES + $this->_writePrintGridlines(); + + // Write GRIDSET + $this->_writeGridset(); + + // Calculate column widths + $_phpSheet->calculateColumnWidths(); + + // Column dimensions + if (($defaultWidth = $_phpSheet->getDefaultColumnDimension()->getWidth()) < 0) { + $defaultWidth = PHPExcel_Shared_Font::getDefaultColumnWidthByFont($_phpSheet->getParent()->getDefaultStyle()->getFont()); + } + + $columnDimensions = $_phpSheet->getColumnDimensions(); + $maxCol = $this->_lastColumnIndex -1; + for ($i = 0; $i <= $maxCol; ++$i) { + $hidden = 0; + $level = 0; + $xfIndex = 15; // there are 15 cell style Xfs + + $width = $defaultWidth; + + $columnLetter = PHPExcel_Cell::stringFromColumnIndex($i); + if (isset($columnDimensions[$columnLetter])) { + $columnDimension = $columnDimensions[$columnLetter]; + if ($columnDimension->getWidth() >= 0) { + $width = $columnDimension->getWidth(); + } + $hidden = $columnDimension->getVisible() ? 0 : 1; + $level = $columnDimension->getOutlineLevel(); + $xfIndex = $columnDimension->getXfIndex() + 15; // there are 15 cell style Xfs + } + + // Components of _colinfo: + // $firstcol first column on the range + // $lastcol last column on the range + // $width width to set + // $xfIndex The optional cell style Xf index to apply to the columns + // $hidden The optional hidden atribute + // $level The optional outline level + $this->_colinfo[] = array($i, $i, $width, $xfIndex, $hidden, $level); + } + + // Write GUTS + $this->_writeGuts(); + + // Write DEFAULTROWHEIGHT + $this->_writeDefaultRowHeight(); + + // Write WSBOOL + $this->_writeWsbool(); + + // Write horizontal and vertical page breaks + $this->_writeBreaks(); + + // Write page header + $this->_writeHeader(); + + // Write page footer + $this->_writeFooter(); + + // Write page horizontal centering + $this->_writeHcenter(); + + // Write page vertical centering + $this->_writeVcenter(); + + // Write left margin + $this->_writeMarginLeft(); + + // Write right margin + $this->_writeMarginRight(); + + // Write top margin + $this->_writeMarginTop(); + + // Write bottom margin + $this->_writeMarginBottom(); + + // Write page setup + $this->_writeSetup(); + + // Write sheet protection + $this->_writeProtect(); + + // Write SCENPROTECT + $this->_writeScenProtect(); + + // Write OBJECTPROTECT + $this->_writeObjectProtect(); + + // Write sheet password + $this->_writePassword(); + + // Write DEFCOLWIDTH record + $this->_writeDefcol(); + + // Write the COLINFO records if they exist + if (!empty($this->_colinfo)) { + $colcount = count($this->_colinfo); + for ($i = 0; $i < $colcount; ++$i) { + $this->_writeColinfo($this->_colinfo[$i]); + } + } + $autoFilterRange = $_phpSheet->getAutoFilter()->getRange(); + if (!empty($autoFilterRange)) { + // Write AUTOFILTERINFO + $this->_writeAutoFilterInfo(); + } + + // Write sheet dimensions + $this->_writeDimensions(); + + // Row dimensions + foreach ($_phpSheet->getRowDimensions() as $rowDimension) { + $xfIndex = $rowDimension->getXfIndex() + 15; // there are 15 cellXfs + $this->_writeRow( $rowDimension->getRowIndex() - 1, $rowDimension->getRowHeight(), $xfIndex, ($rowDimension->getVisible() ? '0' : '1'), $rowDimension->getOutlineLevel() ); + } + + // Write Cells + foreach ($_phpSheet->getCellCollection() as $cellID) { + $cell = $_phpSheet->getCell($cellID); + $row = $cell->getRow() - 1; + $column = PHPExcel_Cell::columnIndexFromString($cell->getColumn()) - 1; + + // Don't break Excel! +// if ($row + 1 > 65536 or $column + 1 > 256) { + if ($row > 65535 || $column > 255) { + break; + } + + // Write cell value + $xfIndex = $cell->getXfIndex() + 15; // there are 15 cell style Xfs + + $cVal = $cell->getValue(); + if ($cVal instanceof PHPExcel_RichText) { + // $this->_writeString($row, $column, $cVal->getPlainText(), $xfIndex); + $arrcRun = array(); + $str_len = PHPExcel_Shared_String::CountCharacters($cVal->getPlainText(), 'UTF-8'); + $str_pos = 0; + $elements = $cVal->getRichTextElements(); + foreach ($elements as $element) { + // FONT Index + if ($element instanceof PHPExcel_RichText_Run) { + $str_fontidx = $this->_fntHashIndex[$element->getFont()->getHashCode()]; + } + else { + $str_fontidx = 0; + } + $arrcRun[] = array('strlen' => $str_pos, 'fontidx' => $str_fontidx); + // Position FROM + $str_pos += PHPExcel_Shared_String::CountCharacters($element->getText(), 'UTF-8'); + } + $this->_writeRichTextString($row, $column, $cVal->getPlainText(), $xfIndex, $arrcRun); + } else { + switch ($cell->getDatatype()) { + case PHPExcel_Cell_DataType::TYPE_STRING: + case PHPExcel_Cell_DataType::TYPE_NULL: + if ($cVal === '' || $cVal === null) { + $this->_writeBlank($row, $column, $xfIndex); + } else { + $this->_writeString($row, $column, $cVal, $xfIndex); + } + break; + + case PHPExcel_Cell_DataType::TYPE_NUMERIC: + $this->_writeNumber($row, $column, $cVal, $xfIndex); + break; + + case PHPExcel_Cell_DataType::TYPE_FORMULA: + $calculatedValue = $this->_preCalculateFormulas ? + $cell->getCalculatedValue() : null; + $this->_writeFormula($row, $column, $cVal, $xfIndex, $calculatedValue); + break; + + case PHPExcel_Cell_DataType::TYPE_BOOL: + $this->_writeBoolErr($row, $column, $cVal, 0, $xfIndex); + break; + + case PHPExcel_Cell_DataType::TYPE_ERROR: + $this->_writeBoolErr($row, $column, self::_mapErrorCode($cVal), 1, $xfIndex); + break; + + } + } + } + + // Append + $this->_writeMsoDrawing(); + + // Write WINDOW2 record + $this->_writeWindow2(); + + // Write PLV record + $this->_writePageLayoutView(); + + // Write ZOOM record + $this->_writeZoom(); + if ($_phpSheet->getFreezePane()) { + $this->_writePanes(); + } + + // Write SELECTION record + $this->_writeSelection(); + + // Write MergedCellsTable Record + $this->_writeMergedCells(); + + // Hyperlinks + foreach ($_phpSheet->getHyperLinkCollection() as $coordinate => $hyperlink) { + list($column, $row) = PHPExcel_Cell::coordinateFromString($coordinate); + + $url = $hyperlink->getUrl(); + + if ( strpos($url, 'sheet://') !== false ) { + // internal to current workbook + $url = str_replace('sheet://', 'internal:', $url); + + } else if ( preg_match('/^(http:|https:|ftp:|mailto:)/', $url) ) { + // URL + // $url = $url; + + } else { + // external (local file) + $url = 'external:' . $url; + } + + $this->_writeUrl($row - 1, PHPExcel_Cell::columnIndexFromString($column) - 1, $url); + } + + $this->_writeDataValidity(); + $this->_writeSheetLayout(); + + // Write SHEETPROTECTION record + $this->_writeSheetProtection(); + $this->_writeRangeProtection(); + + $arrConditionalStyles = $_phpSheet->getConditionalStylesCollection(); + if(!empty($arrConditionalStyles)){ + $arrConditional = array(); + // @todo CFRule & CFHeader + // Write CFHEADER record + $this->_writeCFHeader(); + // Write ConditionalFormattingTable records + foreach ($arrConditionalStyles as $cellCoordinate => $conditionalStyles) { + foreach ($conditionalStyles as $conditional) { + if($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION + || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS){ + if(!in_array($conditional->getHashCode(), $arrConditional)){ + $arrConditional[] = $conditional->getHashCode(); + // Write CFRULE record + $this->_writeCFRule($conditional); + } + } + } + } + } + + $this->_storeEof(); + } + + /** + * Write a cell range address in BIFF8 + * always fixed range + * See section 2.5.14 in OpenOffice.org's Documentation of the Microsoft Excel File Format + * + * @param string $range E.g. 'A1' or 'A1:B6' + * @return string Binary data + */ + private function _writeBIFF8CellRangeAddressFixed($range = 'A1') + { + $explodes = explode(':', $range); + + // extract first cell, e.g. 'A1' + $firstCell = $explodes[0]; + + // extract last cell, e.g. 'B6' + if (count($explodes) == 1) { + $lastCell = $firstCell; + } else { + $lastCell = $explodes[1]; + } + + $firstCellCoordinates = PHPExcel_Cell::coordinateFromString($firstCell); // e.g. array(0, 1) + $lastCellCoordinates = PHPExcel_Cell::coordinateFromString($lastCell); // e.g. array(1, 6) + + return(pack('vvvv', + $firstCellCoordinates[1] - 1, + $lastCellCoordinates[1] - 1, + PHPExcel_Cell::columnIndexFromString($firstCellCoordinates[0]) - 1, + PHPExcel_Cell::columnIndexFromString($lastCellCoordinates[0]) - 1 + )); + } + + /** + * Retrieves data from memory in one chunk, or from disk in $buffer + * sized chunks. + * + * @return string The data + */ + function getData() + { + $buffer = 4096; + + // Return data stored in memory + if (isset($this->_data)) { + $tmp = $this->_data; + unset($this->_data); + return $tmp; + } + // No data to return + return false; + } + + /** + * Set the option to print the row and column headers on the printed page. + * + * @access public + * @param integer $print Whether to print the headers or not. Defaults to 1 (print). + */ + function printRowColHeaders($print = 1) + { + $this->_print_headers = $print; + } + + /** + * This method sets the properties for outlining and grouping. The defaults + * correspond to Excel's defaults. + * + * @param bool $visible + * @param bool $symbols_below + * @param bool $symbols_right + * @param bool $auto_style + */ + function setOutline($visible = true, $symbols_below = true, $symbols_right = true, $auto_style = false) + { + $this->_outline_on = $visible; + $this->_outline_below = $symbols_below; + $this->_outline_right = $symbols_right; + $this->_outline_style = $auto_style; + + // Ensure this is a boolean vale for Window2 + if ($this->_outline_on) { + $this->_outline_on = 1; + } + } + + /** + * Write a double to the specified row and column (zero indexed). + * An integer can be written as a double. Excel will display an + * integer. $format is optional. + * + * Returns 0 : normal termination + * -2 : row or column out of range + * + * @param integer $row Zero indexed row + * @param integer $col Zero indexed column + * @param float $num The number to write + * @param mixed $xfIndex The optional XF format + * @return integer + */ + private function _writeNumber($row, $col, $num, $xfIndex) + { + $record = 0x0203; // Record identifier + $length = 0x000E; // Number of bytes to follow + + $header = pack("vv", $record, $length); + $data = pack("vvv", $row, $col, $xfIndex); + $xl_double = pack("d", $num); + if (self::getByteOrder()) { // if it's Big Endian + $xl_double = strrev($xl_double); + } + + $this->_append($header.$data.$xl_double); + return(0); + } + + /** + * Write a LABELSST record or a LABEL record. Which one depends on BIFF version + * + * @param int $row Row index (0-based) + * @param int $col Column index (0-based) + * @param string $str The string + * @param int $xfIndex Index to XF record + */ + private function _writeString($row, $col, $str, $xfIndex) + { + $this->_writeLabelSst($row, $col, $str, $xfIndex); + } + + /** + * Write a LABELSST record or a LABEL record. Which one depends on BIFF version + * It differs from _writeString by the writing of rich text strings. + * @param int $row Row index (0-based) + * @param int $col Column index (0-based) + * @param string $str The string + * @param mixed $xfIndex The XF format index for the cell + * @param array $arrcRun Index to Font record and characters beginning + */ + private function _writeRichTextString($row, $col, $str, $xfIndex, $arrcRun){ + $record = 0x00FD; // Record identifier + $length = 0x000A; // Bytes to follow + $str = PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($str, $arrcRun); + + /* check if string is already present */ + if (!isset($this->_str_table[$str])) { + $this->_str_table[$str] = $this->_str_unique++; + } + $this->_str_total++; + + $header = pack('vv', $record, $length); + $data = pack('vvvV', $row, $col, $xfIndex, $this->_str_table[$str]); + $this->_append($header.$data); + } + + /** + * Write a string to the specified row and column (zero indexed). + * NOTE: there is an Excel 5 defined limit of 255 characters. + * $format is optional. + * Returns 0 : normal termination + * -2 : row or column out of range + * -3 : long string truncated to 255 chars + * + * @access public + * @param integer $row Zero indexed row + * @param integer $col Zero indexed column + * @param string $str The string to write + * @param mixed $xfIndex The XF format index for the cell + * @return integer + */ + private function _writeLabel($row, $col, $str, $xfIndex) + { + $strlen = strlen($str); + $record = 0x0204; // Record identifier + $length = 0x0008 + $strlen; // Bytes to follow + + $str_error = 0; + + if ($strlen > $this->_xls_strmax) { // LABEL must be < 255 chars + $str = substr($str, 0, $this->_xls_strmax); + $length = 0x0008 + $this->_xls_strmax; + $strlen = $this->_xls_strmax; + $str_error = -3; + } + + $header = pack("vv", $record, $length); + $data = pack("vvvv", $row, $col, $xfIndex, $strlen); + $this->_append($header . $data . $str); + return($str_error); + } + + /** + * Write a string to the specified row and column (zero indexed). + * This is the BIFF8 version (no 255 chars limit). + * $format is optional. + * Returns 0 : normal termination + * -2 : row or column out of range + * -3 : long string truncated to 255 chars + * + * @access public + * @param integer $row Zero indexed row + * @param integer $col Zero indexed column + * @param string $str The string to write + * @param mixed $xfIndex The XF format index for the cell + * @return integer + */ + private function _writeLabelSst($row, $col, $str, $xfIndex) + { + $record = 0x00FD; // Record identifier + $length = 0x000A; // Bytes to follow + + $str = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($str); + + /* check if string is already present */ + if (!isset($this->_str_table[$str])) { + $this->_str_table[$str] = $this->_str_unique++; + } + $this->_str_total++; + + $header = pack('vv', $record, $length); + $data = pack('vvvV', $row, $col, $xfIndex, $this->_str_table[$str]); + $this->_append($header.$data); + } + + /** + * Writes a note associated with the cell given by the row and column. + * NOTE records don't have a length limit. + * + * @param integer $row Zero indexed row + * @param integer $col Zero indexed column + * @param string $note The note to write + */ + private function _writeNote($row, $col, $note) + { + $note_length = strlen($note); + $record = 0x001C; // Record identifier + $max_length = 2048; // Maximun length for a NOTE record + + // Length for this record is no more than 2048 + 6 + $length = 0x0006 + min($note_length, 2048); + $header = pack("vv", $record, $length); + $data = pack("vvv", $row, $col, $note_length); + $this->_append($header . $data . substr($note, 0, 2048)); + + for ($i = $max_length; $i < $note_length; $i += $max_length) { + $chunk = substr($note, $i, $max_length); + $length = 0x0006 + strlen($chunk); + $header = pack("vv", $record, $length); + $data = pack("vvv", -1, 0, strlen($chunk)); + $this->_append($header.$data.$chunk); + } + return(0); + } + + /** + * Write a blank cell to the specified row and column (zero indexed). + * A blank cell is used to specify formatting without adding a string + * or a number. + * + * A blank cell without a format serves no purpose. Therefore, we don't write + * a BLANK record unless a format is specified. + * + * Returns 0 : normal termination (including no format) + * -1 : insufficient number of arguments + * -2 : row or column out of range + * + * @param integer $row Zero indexed row + * @param integer $col Zero indexed column + * @param mixed $xfIndex The XF format index + */ + function _writeBlank($row, $col, $xfIndex) + { + $record = 0x0201; // Record identifier + $length = 0x0006; // Number of bytes to follow + + $header = pack("vv", $record, $length); + $data = pack("vvv", $row, $col, $xfIndex); + $this->_append($header . $data); + return 0; + } + + /** + * Write a boolean or an error type to the specified row and column (zero indexed) + * + * @param int $row Row index (0-based) + * @param int $col Column index (0-based) + * @param int $value + * @param boolean $isError Error or Boolean? + * @param int $xfIndex + */ + private function _writeBoolErr($row, $col, $value, $isError, $xfIndex) + { + $record = 0x0205; + $length = 8; + + $header = pack("vv", $record, $length); + $data = pack("vvvCC", $row, $col, $xfIndex, $value, $isError); + $this->_append($header . $data); + return 0; + } + + /** + * Write a formula to the specified row and column (zero indexed). + * The textual representation of the formula is passed to the parser in + * Parser.php which returns a packed binary string. + * + * Returns 0 : normal termination + * -1 : formula errors (bad formula) + * -2 : row or column out of range + * + * @param integer $row Zero indexed row + * @param integer $col Zero indexed column + * @param string $formula The formula text string + * @param mixed $xfIndex The XF format index + * @param mixed $calculatedValue Calculated value + * @return integer + */ + private function _writeFormula($row, $col, $formula, $xfIndex, $calculatedValue) + { + $record = 0x0006; // Record identifier + + // Initialize possible additional value for STRING record that should be written after the FORMULA record? + $stringValue = null; + + // calculated value + if (isset($calculatedValue)) { + // Since we can't yet get the data type of the calculated value, + // we use best effort to determine data type + if (is_bool($calculatedValue)) { + // Boolean value + $num = pack('CCCvCv', 0x01, 0x00, (int)$calculatedValue, 0x00, 0x00, 0xFFFF); + } elseif (is_int($calculatedValue) || is_float($calculatedValue)) { + // Numeric value + $num = pack('d', $calculatedValue); + } elseif (is_string($calculatedValue)) { + if (array_key_exists($calculatedValue, PHPExcel_Cell_DataType::getErrorCodes())) { + // Error value + $num = pack('CCCvCv', 0x02, 0x00, self::_mapErrorCode($calculatedValue), 0x00, 0x00, 0xFFFF); + } elseif ($calculatedValue === '') { + // Empty string (and BIFF8) + $num = pack('CCCvCv', 0x03, 0x00, 0x00, 0x00, 0x00, 0xFFFF); + } else { + // Non-empty string value (or empty string BIFF5) + $stringValue = $calculatedValue; + $num = pack('CCCvCv', 0x00, 0x00, 0x00, 0x00, 0x00, 0xFFFF); + } + } else { + // We are really not supposed to reach here + $num = pack('d', 0x00); + } + } else { + $num = pack('d', 0x00); + } + + $grbit = 0x03; // Option flags + $unknown = 0x0000; // Must be zero + + // Strip the '=' or '@' sign at the beginning of the formula string + if ($formula{0} == '=') { + $formula = substr($formula,1); + } else { + // Error handling + $this->_writeString($row, $col, 'Unrecognised character for formula'); + return -1; + } + + // Parse the formula using the parser in Parser.php + try { + $error = $this->_parser->parse($formula); + $formula = $this->_parser->toReversePolish(); + + $formlen = strlen($formula); // Length of the binary string + $length = 0x16 + $formlen; // Length of the record data + + $header = pack("vv", $record, $length); + + $data = pack("vvv", $row, $col, $xfIndex) + . $num + . pack("vVv", $grbit, $unknown, $formlen); + $this->_append($header . $data . $formula); + + // Append also a STRING record if necessary + if ($stringValue !== null) { + $this->_writeStringRecord($stringValue); + } + + return 0; + + } catch (PHPExcel_Exception $e) { + // do nothing + } + + } + + /** + * Write a STRING record. This + * + * @param string $stringValue + */ + private function _writeStringRecord($stringValue) + { + $record = 0x0207; // Record identifier + $data = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($stringValue); + + $length = strlen($data); + $header = pack('vv', $record, $length); + + $this->_append($header . $data); + } + + /** + * Write a hyperlink. + * This is comprised of two elements: the visible label and + * the invisible link. The visible label is the same as the link unless an + * alternative string is specified. The label is written using the + * _writeString() method. Therefore the 255 characters string limit applies. + * $string and $format are optional. + * + * The hyperlink can be to a http, ftp, mail, internal sheet (not yet), or external + * directory url. + * + * Returns 0 : normal termination + * -2 : row or column out of range + * -3 : long string truncated to 255 chars + * + * @param integer $row Row + * @param integer $col Column + * @param string $url URL string + * @return integer + */ + private function _writeUrl($row, $col, $url) + { + // Add start row and col to arg list + return($this->_writeUrlRange($row, $col, $row, $col, $url)); + } + + /** + * This is the more general form of _writeUrl(). It allows a hyperlink to be + * written to a range of cells. This function also decides the type of hyperlink + * to be written. These are either, Web (http, ftp, mailto), Internal + * (Sheet1!A1) or external ('c:\temp\foo.xls#Sheet1!A1'). + * + * @access private + * @see _writeUrl() + * @param integer $row1 Start row + * @param integer $col1 Start column + * @param integer $row2 End row + * @param integer $col2 End column + * @param string $url URL string + * @return integer + */ + function _writeUrlRange($row1, $col1, $row2, $col2, $url) + { + // Check for internal/external sheet links or default to web link + if (preg_match('[^internal:]', $url)) { + return($this->_writeUrlInternal($row1, $col1, $row2, $col2, $url)); + } + if (preg_match('[^external:]', $url)) { + return($this->_writeUrlExternal($row1, $col1, $row2, $col2, $url)); + } + return($this->_writeUrlWeb($row1, $col1, $row2, $col2, $url)); + } + + /** + * Used to write http, ftp and mailto hyperlinks. + * The link type ($options) is 0x03 is the same as absolute dir ref without + * sheet. However it is differentiated by the $unknown2 data stream. + * + * @access private + * @see _writeUrl() + * @param integer $row1 Start row + * @param integer $col1 Start column + * @param integer $row2 End row + * @param integer $col2 End column + * @param string $url URL string + * @return integer + */ + function _writeUrlWeb($row1, $col1, $row2, $col2, $url) + { + $record = 0x01B8; // Record identifier + $length = 0x00000; // Bytes to follow + + // Pack the undocumented parts of the hyperlink stream + $unknown1 = pack("H*", "D0C9EA79F9BACE118C8200AA004BA90B02000000"); + $unknown2 = pack("H*", "E0C9EA79F9BACE118C8200AA004BA90B"); + + // Pack the option flags + $options = pack("V", 0x03); + + // Convert URL to a null terminated wchar string + $url = join("\0", preg_split("''", $url, -1, PREG_SPLIT_NO_EMPTY)); + $url = $url . "\0\0\0"; + + // Pack the length of the URL + $url_len = pack("V", strlen($url)); + + // Calculate the data length + $length = 0x34 + strlen($url); + + // Pack the header data + $header = pack("vv", $record, $length); + $data = pack("vvvv", $row1, $row2, $col1, $col2); + + // Write the packed data + $this->_append($header . $data . + $unknown1 . $options . + $unknown2 . $url_len . $url); + return 0; + } + + /** + * Used to write internal reference hyperlinks such as "Sheet1!A1". + * + * @access private + * @see _writeUrl() + * @param integer $row1 Start row + * @param integer $col1 Start column + * @param integer $row2 End row + * @param integer $col2 End column + * @param string $url URL string + * @return integer + */ + function _writeUrlInternal($row1, $col1, $row2, $col2, $url) + { + $record = 0x01B8; // Record identifier + $length = 0x00000; // Bytes to follow + + // Strip URL type + $url = preg_replace('/^internal:/', '', $url); + + // Pack the undocumented parts of the hyperlink stream + $unknown1 = pack("H*", "D0C9EA79F9BACE118C8200AA004BA90B02000000"); + + // Pack the option flags + $options = pack("V", 0x08); + + // Convert the URL type and to a null terminated wchar string + $url .= "\0"; + + // character count + $url_len = PHPExcel_Shared_String::CountCharacters($url); + $url_len = pack('V', $url_len); + + $url = PHPExcel_Shared_String::ConvertEncoding($url, 'UTF-16LE', 'UTF-8'); + + // Calculate the data length + $length = 0x24 + strlen($url); + + // Pack the header data + $header = pack("vv", $record, $length); + $data = pack("vvvv", $row1, $row2, $col1, $col2); + + // Write the packed data + $this->_append($header . $data . + $unknown1 . $options . + $url_len . $url); + return 0; + } + + /** + * Write links to external directory names such as 'c:\foo.xls', + * c:\foo.xls#Sheet1!A1', '../../foo.xls'. and '../../foo.xls#Sheet1!A1'. + * + * Note: Excel writes some relative links with the $dir_long string. We ignore + * these cases for the sake of simpler code. + * + * @access private + * @see _writeUrl() + * @param integer $row1 Start row + * @param integer $col1 Start column + * @param integer $row2 End row + * @param integer $col2 End column + * @param string $url URL string + * @return integer + */ + function _writeUrlExternal($row1, $col1, $row2, $col2, $url) + { + // Network drives are different. We will handle them separately + // MS/Novell network drives and shares start with \\ + if (preg_match('[^external:\\\\]', $url)) { + return; //($this->_writeUrlExternal_net($row1, $col1, $row2, $col2, $url, $str, $format)); + } + + $record = 0x01B8; // Record identifier + $length = 0x00000; // Bytes to follow + + // Strip URL type and change Unix dir separator to Dos style (if needed) + // + $url = preg_replace('/^external:/', '', $url); + $url = preg_replace('/\//', "\\", $url); + + // Determine if the link is relative or absolute: + // relative if link contains no dir separator, "somefile.xls" + // relative if link starts with up-dir, "..\..\somefile.xls" + // otherwise, absolute + + $absolute = 0x00; // relative path + if ( preg_match('/^[A-Z]:/', $url) ) { + $absolute = 0x02; // absolute path on Windows, e.g. C:\... + } + $link_type = 0x01 | $absolute; + + // Determine if the link contains a sheet reference and change some of the + // parameters accordingly. + // Split the dir name and sheet name (if it exists) + $dir_long = $url; + if (preg_match("/\#/", $url)) { + $link_type |= 0x08; + } + + + // Pack the link type + $link_type = pack("V", $link_type); + + // Calculate the up-level dir count e.g.. (..\..\..\ == 3) + $up_count = preg_match_all("/\.\.\\\/", $dir_long, $useless); + $up_count = pack("v", $up_count); + + // Store the short dos dir name (null terminated) + $dir_short = preg_replace("/\.\.\\\/", '', $dir_long) . "\0"; + + // Store the long dir name as a wchar string (non-null terminated) + $dir_long = $dir_long . "\0"; + + // Pack the lengths of the dir strings + $dir_short_len = pack("V", strlen($dir_short) ); + $dir_long_len = pack("V", strlen($dir_long) ); + $stream_len = pack("V", 0);//strlen($dir_long) + 0x06); + + // Pack the undocumented parts of the hyperlink stream + $unknown1 = pack("H*",'D0C9EA79F9BACE118C8200AA004BA90B02000000' ); + $unknown2 = pack("H*",'0303000000000000C000000000000046' ); + $unknown3 = pack("H*",'FFFFADDE000000000000000000000000000000000000000'); + $unknown4 = pack("v", 0x03 ); + + // Pack the main data stream + $data = pack("vvvv", $row1, $row2, $col1, $col2) . + $unknown1 . + $link_type . + $unknown2 . + $up_count . + $dir_short_len. + $dir_short . + $unknown3 . + $stream_len ;/*. + $dir_long_len . + $unknown4 . + $dir_long . + $sheet_len . + $sheet ;*/ + + // Pack the header data + $length = strlen($data); + $header = pack("vv", $record, $length); + + // Write the packed data + $this->_append($header. $data); + return 0; + } + + /** + * This method is used to set the height and format for a row. + * + * @param integer $row The row to set + * @param integer $height Height we are giving to the row. + * Use null to set XF without setting height + * @param integer $xfIndex The optional cell style Xf index to apply to the columns + * @param bool $hidden The optional hidden attribute + * @param integer $level The optional outline level for row, in range [0,7] + */ + private function _writeRow($row, $height, $xfIndex, $hidden = false, $level = 0) + { + $record = 0x0208; // Record identifier + $length = 0x0010; // Number of bytes to follow + + $colMic = 0x0000; // First defined column + $colMac = 0x0000; // Last defined column + $irwMac = 0x0000; // Used by Excel to optimise loading + $reserved = 0x0000; // Reserved + $grbit = 0x0000; // Option flags + $ixfe = $xfIndex; + + if ( $height < 0 ){ + $height = null; + } + + // Use _writeRow($row, null, $XF) to set XF format without setting height + if ($height != null) { + $miyRw = $height * 20; // row height + } else { + $miyRw = 0xff; // default row height is 256 + } + + // Set the options flags. fUnsynced is used to show that the font and row + // heights are not compatible. This is usually the case for WriteExcel. + // The collapsed flag 0x10 doesn't seem to be used to indicate that a row + // is collapsed. Instead it is used to indicate that the previous row is + // collapsed. The zero height flag, 0x20, is used to collapse a row. + + $grbit |= $level; + if ($hidden) { + $grbit |= 0x0030; + } + if ($height !== null) { + $grbit |= 0x0040; // fUnsynced + } + if ($xfIndex !== 0xF) { + $grbit |= 0x0080; + } + $grbit |= 0x0100; + + $header = pack("vv", $record, $length); + $data = pack("vvvvvvvv", $row, $colMic, $colMac, $miyRw, + $irwMac,$reserved, $grbit, $ixfe); + $this->_append($header.$data); + } + + /** + * Writes Excel DIMENSIONS to define the area in which there is data. + */ + private function _writeDimensions() + { + $record = 0x0200; // Record identifier + + $length = 0x000E; + $data = pack('VVvvv' + , $this->_firstRowIndex + , $this->_lastRowIndex + 1 + , $this->_firstColumnIndex + , $this->_lastColumnIndex + 1 + , 0x0000 // reserved + ); + + $header = pack("vv", $record, $length); + $this->_append($header.$data); + } + + /** + * Write BIFF record Window2. + */ + private function _writeWindow2() + { + $record = 0x023E; // Record identifier + $length = 0x0012; + + $grbit = 0x00B6; // Option flags + $rwTop = 0x0000; // Top row visible in window + $colLeft = 0x0000; // Leftmost column visible in window + + + // The options flags that comprise $grbit + $fDspFmla = 0; // 0 - bit + $fDspGrid = $this->_phpSheet->getShowGridlines() ? 1 : 0; // 1 + $fDspRwCol = $this->_phpSheet->getShowRowColHeaders() ? 1 : 0; // 2 + $fFrozen = $this->_phpSheet->getFreezePane() ? 1 : 0; // 3 + $fDspZeros = 1; // 4 + $fDefaultHdr = 1; // 5 + $fArabic = $this->_phpSheet->getRightToLeft() ? 1 : 0; // 6 + $fDspGuts = $this->_outline_on; // 7 + $fFrozenNoSplit = 0; // 0 - bit + // no support in PHPExcel for selected sheet, therefore sheet is only selected if it is the active sheet + $fSelected = ($this->_phpSheet === $this->_phpSheet->getParent()->getActiveSheet()) ? 1 : 0; + $fPaged = 1; // 2 + $fPageBreakPreview = $this->_phpSheet->getSheetView()->getView() === PHPExcel_Worksheet_SheetView::SHEETVIEW_PAGE_BREAK_PREVIEW; + + $grbit = $fDspFmla; + $grbit |= $fDspGrid << 1; + $grbit |= $fDspRwCol << 2; + $grbit |= $fFrozen << 3; + $grbit |= $fDspZeros << 4; + $grbit |= $fDefaultHdr << 5; + $grbit |= $fArabic << 6; + $grbit |= $fDspGuts << 7; + $grbit |= $fFrozenNoSplit << 8; + $grbit |= $fSelected << 9; + $grbit |= $fPaged << 10; + $grbit |= $fPageBreakPreview << 11; + + $header = pack("vv", $record, $length); + $data = pack("vvv", $grbit, $rwTop, $colLeft); + + // FIXME !!! + $rgbHdr = 0x0040; // Row/column heading and gridline color index + $zoom_factor_page_break = ($fPageBreakPreview? $this->_phpSheet->getSheetView()->getZoomScale() : 0x0000); + $zoom_factor_normal = $this->_phpSheet->getSheetView()->getZoomScaleNormal(); + + $data .= pack("vvvvV", $rgbHdr, 0x0000, $zoom_factor_page_break, $zoom_factor_normal, 0x00000000); + + $this->_append($header.$data); + } + + /** + * Write BIFF record DEFAULTROWHEIGHT. + */ + private function _writeDefaultRowHeight() + { + $defaultRowHeight = $this->_phpSheet->getDefaultRowDimension()->getRowHeight(); + + if ($defaultRowHeight < 0) { + return; + } + + // convert to twips + $defaultRowHeight = (int) 20 * $defaultRowHeight; + + $record = 0x0225; // Record identifier + $length = 0x0004; // Number of bytes to follow + + $header = pack("vv", $record, $length); + $data = pack("vv", 1, $defaultRowHeight); + $this->_append($header . $data); + } + + /** + * Write BIFF record DEFCOLWIDTH if COLINFO records are in use. + */ + private function _writeDefcol() + { + $defaultColWidth = 8; + + $record = 0x0055; // Record identifier + $length = 0x0002; // Number of bytes to follow + + $header = pack("vv", $record, $length); + $data = pack("v", $defaultColWidth); + $this->_append($header . $data); + } + + /** + * Write BIFF record COLINFO to define column widths + * + * Note: The SDK says the record length is 0x0B but Excel writes a 0x0C + * length record. + * + * @param array $col_array This is the only parameter received and is composed of the following: + * 0 => First formatted column, + * 1 => Last formatted column, + * 2 => Col width (8.43 is Excel default), + * 3 => The optional XF format of the column, + * 4 => Option flags. + * 5 => Optional outline level + */ + private function _writeColinfo($col_array) + { + if (isset($col_array[0])) { + $colFirst = $col_array[0]; + } + if (isset($col_array[1])) { + $colLast = $col_array[1]; + } + if (isset($col_array[2])) { + $coldx = $col_array[2]; + } else { + $coldx = 8.43; + } + if (isset($col_array[3])) { + $xfIndex = $col_array[3]; + } else { + $xfIndex = 15; + } + if (isset($col_array[4])) { + $grbit = $col_array[4]; + } else { + $grbit = 0; + } + if (isset($col_array[5])) { + $level = $col_array[5]; + } else { + $level = 0; + } + $record = 0x007D; // Record identifier + $length = 0x000C; // Number of bytes to follow + + $coldx *= 256; // Convert to units of 1/256 of a char + + $ixfe = $xfIndex; + $reserved = 0x0000; // Reserved + + $level = max(0, min($level, 7)); + $grbit |= $level << 8; + + $header = pack("vv", $record, $length); + $data = pack("vvvvvv", $colFirst, $colLast, $coldx, + $ixfe, $grbit, $reserved); + $this->_append($header.$data); + } + + /** + * Write BIFF record SELECTION. + */ + private function _writeSelection() + { + // look up the selected cell range + $selectedCells = $this->_phpSheet->getSelectedCells(); + $selectedCells = PHPExcel_Cell::splitRange($this->_phpSheet->getSelectedCells()); + $selectedCells = $selectedCells[0]; + if (count($selectedCells) == 2) { + list($first, $last) = $selectedCells; + } else { + $first = $selectedCells[0]; + $last = $selectedCells[0]; + } + + list($colFirst, $rwFirst) = PHPExcel_Cell::coordinateFromString($first); + $colFirst = PHPExcel_Cell::columnIndexFromString($colFirst) - 1; // base 0 column index + --$rwFirst; // base 0 row index + + list($colLast, $rwLast) = PHPExcel_Cell::coordinateFromString($last); + $colLast = PHPExcel_Cell::columnIndexFromString($colLast) - 1; // base 0 column index + --$rwLast; // base 0 row index + + // make sure we are not out of bounds + $colFirst = min($colFirst, 255); + $colLast = min($colLast, 255); + + $rwFirst = min($rwFirst, 65535); + $rwLast = min($rwLast, 65535); + + $record = 0x001D; // Record identifier + $length = 0x000F; // Number of bytes to follow + + $pnn = $this->_active_pane; // Pane position + $rwAct = $rwFirst; // Active row + $colAct = $colFirst; // Active column + $irefAct = 0; // Active cell ref + $cref = 1; // Number of refs + + if (!isset($rwLast)) { + $rwLast = $rwFirst; // Last row in reference + } + if (!isset($colLast)) { + $colLast = $colFirst; // Last col in reference + } + + // Swap last row/col for first row/col as necessary + if ($rwFirst > $rwLast) { + list($rwFirst, $rwLast) = array($rwLast, $rwFirst); + } + + if ($colFirst > $colLast) { + list($colFirst, $colLast) = array($colLast, $colFirst); + } + + $header = pack("vv", $record, $length); + $data = pack("CvvvvvvCC", $pnn, $rwAct, $colAct, + $irefAct, $cref, + $rwFirst, $rwLast, + $colFirst, $colLast); + $this->_append($header . $data); + } + + /** + * Store the MERGEDCELLS records for all ranges of merged cells + */ + private function _writeMergedCells() + { + $mergeCells = $this->_phpSheet->getMergeCells(); + $countMergeCells = count($mergeCells); + + if ($countMergeCells == 0) { + return; + } + + // maximum allowed number of merged cells per record + $maxCountMergeCellsPerRecord = 1027; + + // record identifier + $record = 0x00E5; + + // counter for total number of merged cells treated so far by the writer + $i = 0; + + // counter for number of merged cells written in record currently being written + $j = 0; + + // initialize record data + $recordData = ''; + + // loop through the merged cells + foreach ($mergeCells as $mergeCell) { + ++$i; + ++$j; + + // extract the row and column indexes + $range = PHPExcel_Cell::splitRange($mergeCell); + list($first, $last) = $range[0]; + list($firstColumn, $firstRow) = PHPExcel_Cell::coordinateFromString($first); + list($lastColumn, $lastRow) = PHPExcel_Cell::coordinateFromString($last); + + $recordData .= pack('vvvv', $firstRow - 1, $lastRow - 1, PHPExcel_Cell::columnIndexFromString($firstColumn) - 1, PHPExcel_Cell::columnIndexFromString($lastColumn) - 1); + + // flush record if we have reached limit for number of merged cells, or reached final merged cell + if ($j == $maxCountMergeCellsPerRecord or $i == $countMergeCells) { + $recordData = pack('v', $j) . $recordData; + $length = strlen($recordData); + $header = pack('vv', $record, $length); + $this->_append($header . $recordData); + + // initialize for next record, if any + $recordData = ''; + $j = 0; + } + } + } + + /** + * Write SHEETLAYOUT record + */ + private function _writeSheetLayout() + { + if (!$this->_phpSheet->isTabColorSet()) { + return; + } + + $recordData = pack( + 'vvVVVvv' + , 0x0862 + , 0x0000 // unused + , 0x00000000 // unused + , 0x00000000 // unused + , 0x00000014 // size of record data + , $this->_colors[$this->_phpSheet->getTabColor()->getRGB()] // color index + , 0x0000 // unused + ); + + $length = strlen($recordData); + + $record = 0x0862; // Record identifier + $header = pack('vv', $record, $length); + $this->_append($header . $recordData); + } + + /** + * Write SHEETPROTECTION + */ + private function _writeSheetProtection() + { + // record identifier + $record = 0x0867; + + // prepare options + $options = (int) !$this->_phpSheet->getProtection()->getObjects() + | (int) !$this->_phpSheet->getProtection()->getScenarios() << 1 + | (int) !$this->_phpSheet->getProtection()->getFormatCells() << 2 + | (int) !$this->_phpSheet->getProtection()->getFormatColumns() << 3 + | (int) !$this->_phpSheet->getProtection()->getFormatRows() << 4 + | (int) !$this->_phpSheet->getProtection()->getInsertColumns() << 5 + | (int) !$this->_phpSheet->getProtection()->getInsertRows() << 6 + | (int) !$this->_phpSheet->getProtection()->getInsertHyperlinks() << 7 + | (int) !$this->_phpSheet->getProtection()->getDeleteColumns() << 8 + | (int) !$this->_phpSheet->getProtection()->getDeleteRows() << 9 + | (int) !$this->_phpSheet->getProtection()->getSelectLockedCells() << 10 + | (int) !$this->_phpSheet->getProtection()->getSort() << 11 + | (int) !$this->_phpSheet->getProtection()->getAutoFilter() << 12 + | (int) !$this->_phpSheet->getProtection()->getPivotTables() << 13 + | (int) !$this->_phpSheet->getProtection()->getSelectUnlockedCells() << 14 ; + + // record data + $recordData = pack( + 'vVVCVVvv' + , 0x0867 // repeated record identifier + , 0x0000 // not used + , 0x0000 // not used + , 0x00 // not used + , 0x01000200 // unknown data + , 0xFFFFFFFF // unknown data + , $options // options + , 0x0000 // not used + ); + + $length = strlen($recordData); + $header = pack('vv', $record, $length); + + $this->_append($header . $recordData); + } + + /** + * Write BIFF record RANGEPROTECTION + * + * Openoffice.org's Documentaion of the Microsoft Excel File Format uses term RANGEPROTECTION for these records + * Microsoft Office Excel 97-2007 Binary File Format Specification uses term FEAT for these records + */ + private function _writeRangeProtection() + { + foreach ($this->_phpSheet->getProtectedCells() as $range => $password) { + // number of ranges, e.g. 'A1:B3 C20:D25' + $cellRanges = explode(' ', $range); + $cref = count($cellRanges); + + $recordData = pack( + 'vvVVvCVvVv', + 0x0868, + 0x00, + 0x0000, + 0x0000, + 0x02, + 0x0, + 0x0000, + $cref, + 0x0000, + 0x00 + ); + + foreach ($cellRanges as $cellRange) { + $recordData .= $this->_writeBIFF8CellRangeAddressFixed($cellRange); + } + + // the rgbFeat structure + $recordData .= pack( + 'VV', + 0x0000, + hexdec($password) + ); + + $recordData .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong('p' . md5($recordData)); + + $length = strlen($recordData); + + $record = 0x0868; // Record identifier + $header = pack("vv", $record, $length); + $this->_append($header . $recordData); + } + } + + /** + * Write BIFF record EXTERNCOUNT to indicate the number of external sheet + * references in a worksheet. + * + * Excel only stores references to external sheets that are used in formulas. + * For simplicity we store references to all the sheets in the workbook + * regardless of whether they are used or not. This reduces the overall + * complexity and eliminates the need for a two way dialogue between the formula + * parser the worksheet objects. + * + * @param integer $count The number of external sheet references in this worksheet + */ + private function _writeExterncount($count) + { + $record = 0x0016; // Record identifier + $length = 0x0002; // Number of bytes to follow + + $header = pack("vv", $record, $length); + $data = pack("v", $count); + $this->_append($header . $data); + } + + /** + * Writes the Excel BIFF EXTERNSHEET record. These references are used by + * formulas. A formula references a sheet name via an index. Since we store a + * reference to all of the external worksheets the EXTERNSHEET index is the same + * as the worksheet index. + * + * @param string $sheetname The name of a external worksheet + */ + private function _writeExternsheet($sheetname) + { + $record = 0x0017; // Record identifier + + // References to the current sheet are encoded differently to references to + // external sheets. + // + if ($this->_phpSheet->getTitle() == $sheetname) { + $sheetname = ''; + $length = 0x02; // The following 2 bytes + $cch = 1; // The following byte + $rgch = 0x02; // Self reference + } else { + $length = 0x02 + strlen($sheetname); + $cch = strlen($sheetname); + $rgch = 0x03; // Reference to a sheet in the current workbook + } + + $header = pack("vv", $record, $length); + $data = pack("CC", $cch, $rgch); + $this->_append($header . $data . $sheetname); + } + + /** + * Writes the Excel BIFF PANE record. + * The panes can either be frozen or thawed (unfrozen). + * Frozen panes are specified in terms of an integer number of rows and columns. + * Thawed panes are specified in terms of Excel's units for rows and columns. + */ + private function _writePanes() + { + $panes = array(); + if ($freezePane = $this->_phpSheet->getFreezePane()) { + list($column, $row) = PHPExcel_Cell::coordinateFromString($freezePane); + $panes[0] = $row - 1; + $panes[1] = PHPExcel_Cell::columnIndexFromString($column) - 1; + } else { + // thaw panes + return; + } + + $y = isset($panes[0]) ? $panes[0] : null; + $x = isset($panes[1]) ? $panes[1] : null; + $rwTop = isset($panes[2]) ? $panes[2] : null; + $colLeft = isset($panes[3]) ? $panes[3] : null; + if (count($panes) > 4) { // if Active pane was received + $pnnAct = $panes[4]; + } else { + $pnnAct = null; + } + $record = 0x0041; // Record identifier + $length = 0x000A; // Number of bytes to follow + + // Code specific to frozen or thawed panes. + if ($this->_phpSheet->getFreezePane()) { + // Set default values for $rwTop and $colLeft + if (!isset($rwTop)) { + $rwTop = $y; + } + if (!isset($colLeft)) { + $colLeft = $x; + } + } else { + // Set default values for $rwTop and $colLeft + if (!isset($rwTop)) { + $rwTop = 0; + } + if (!isset($colLeft)) { + $colLeft = 0; + } + + // Convert Excel's row and column units to the internal units. + // The default row height is 12.75 + // The default column width is 8.43 + // The following slope and intersection values were interpolated. + // + $y = 20*$y + 255; + $x = 113.879*$x + 390; + } + + + // Determine which pane should be active. There is also the undocumented + // option to override this should it be necessary: may be removed later. + // + if (!isset($pnnAct)) { + if ($x != 0 && $y != 0) { + $pnnAct = 0; // Bottom right + } + if ($x != 0 && $y == 0) { + $pnnAct = 1; // Top right + } + if ($x == 0 && $y != 0) { + $pnnAct = 2; // Bottom left + } + if ($x == 0 && $y == 0) { + $pnnAct = 3; // Top left + } + } + + $this->_active_pane = $pnnAct; // Used in _writeSelection + + $header = pack("vv", $record, $length); + $data = pack("vvvvv", $x, $y, $rwTop, $colLeft, $pnnAct); + $this->_append($header . $data); + } + + /** + * Store the page setup SETUP BIFF record. + */ + private function _writeSetup() + { + $record = 0x00A1; // Record identifier + $length = 0x0022; // Number of bytes to follow + + $iPaperSize = $this->_phpSheet->getPageSetup()->getPaperSize(); // Paper size + + $iScale = $this->_phpSheet->getPageSetup()->getScale() ? + $this->_phpSheet->getPageSetup()->getScale() : 100; // Print scaling factor + + $iPageStart = 0x01; // Starting page number + $iFitWidth = (int) $this->_phpSheet->getPageSetup()->getFitToWidth(); // Fit to number of pages wide + $iFitHeight = (int) $this->_phpSheet->getPageSetup()->getFitToHeight(); // Fit to number of pages high + $grbit = 0x00; // Option flags + $iRes = 0x0258; // Print resolution + $iVRes = 0x0258; // Vertical print resolution + + $numHdr = $this->_phpSheet->getPageMargins()->getHeader(); // Header Margin + + $numFtr = $this->_phpSheet->getPageMargins()->getFooter(); // Footer Margin + $iCopies = 0x01; // Number of copies + + $fLeftToRight = 0x0; // Print over then down + + // Page orientation + $fLandscape = ($this->_phpSheet->getPageSetup()->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) ? + 0x0 : 0x1; + + $fNoPls = 0x0; // Setup not read from printer + $fNoColor = 0x0; // Print black and white + $fDraft = 0x0; // Print draft quality + $fNotes = 0x0; // Print notes + $fNoOrient = 0x0; // Orientation not set + $fUsePage = 0x0; // Use custom starting page + + $grbit = $fLeftToRight; + $grbit |= $fLandscape << 1; + $grbit |= $fNoPls << 2; + $grbit |= $fNoColor << 3; + $grbit |= $fDraft << 4; + $grbit |= $fNotes << 5; + $grbit |= $fNoOrient << 6; + $grbit |= $fUsePage << 7; + + $numHdr = pack("d", $numHdr); + $numFtr = pack("d", $numFtr); + if (self::getByteOrder()) { // if it's Big Endian + $numHdr = strrev($numHdr); + $numFtr = strrev($numFtr); + } + + $header = pack("vv", $record, $length); + $data1 = pack("vvvvvvvv", $iPaperSize, + $iScale, + $iPageStart, + $iFitWidth, + $iFitHeight, + $grbit, + $iRes, + $iVRes); + $data2 = $numHdr.$numFtr; + $data3 = pack("v", $iCopies); + $this->_append($header . $data1 . $data2 . $data3); + } + + /** + * Store the header caption BIFF record. + */ + private function _writeHeader() + { + $record = 0x0014; // Record identifier + + /* removing for now + // need to fix character count (multibyte!) + if (strlen($this->_phpSheet->getHeaderFooter()->getOddHeader()) <= 255) { + $str = $this->_phpSheet->getHeaderFooter()->getOddHeader(); // header string + } else { + $str = ''; + } + */ + + $recordData = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($this->_phpSheet->getHeaderFooter()->getOddHeader()); + $length = strlen($recordData); + + $header = pack("vv", $record, $length); + + $this->_append($header . $recordData); + } + + /** + * Store the footer caption BIFF record. + */ + private function _writeFooter() + { + $record = 0x0015; // Record identifier + + /* removing for now + // need to fix character count (multibyte!) + if (strlen($this->_phpSheet->getHeaderFooter()->getOddFooter()) <= 255) { + $str = $this->_phpSheet->getHeaderFooter()->getOddFooter(); + } else { + $str = ''; + } + */ + + $recordData = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($this->_phpSheet->getHeaderFooter()->getOddFooter()); + $length = strlen($recordData); + + $header = pack("vv", $record, $length); + + $this->_append($header . $recordData); + } + + /** + * Store the horizontal centering HCENTER BIFF record. + * + * @access private + */ + private function _writeHcenter() + { + $record = 0x0083; // Record identifier + $length = 0x0002; // Bytes to follow + + $fHCenter = $this->_phpSheet->getPageSetup()->getHorizontalCentered() ? 1 : 0; // Horizontal centering + + $header = pack("vv", $record, $length); + $data = pack("v", $fHCenter); + + $this->_append($header.$data); + } + + /** + * Store the vertical centering VCENTER BIFF record. + */ + private function _writeVcenter() + { + $record = 0x0084; // Record identifier + $length = 0x0002; // Bytes to follow + + $fVCenter = $this->_phpSheet->getPageSetup()->getVerticalCentered() ? 1 : 0; // Horizontal centering + + $header = pack("vv", $record, $length); + $data = pack("v", $fVCenter); + $this->_append($header . $data); + } + + /** + * Store the LEFTMARGIN BIFF record. + */ + private function _writeMarginLeft() + { + $record = 0x0026; // Record identifier + $length = 0x0008; // Bytes to follow + + $margin = $this->_phpSheet->getPageMargins()->getLeft(); // Margin in inches + + $header = pack("vv", $record, $length); + $data = pack("d", $margin); + if (self::getByteOrder()) { // if it's Big Endian + $data = strrev($data); + } + + $this->_append($header . $data); + } + + /** + * Store the RIGHTMARGIN BIFF record. + */ + private function _writeMarginRight() + { + $record = 0x0027; // Record identifier + $length = 0x0008; // Bytes to follow + + $margin = $this->_phpSheet->getPageMargins()->getRight(); // Margin in inches + + $header = pack("vv", $record, $length); + $data = pack("d", $margin); + if (self::getByteOrder()) { // if it's Big Endian + $data = strrev($data); + } + + $this->_append($header . $data); + } + + /** + * Store the TOPMARGIN BIFF record. + */ + private function _writeMarginTop() + { + $record = 0x0028; // Record identifier + $length = 0x0008; // Bytes to follow + + $margin = $this->_phpSheet->getPageMargins()->getTop(); // Margin in inches + + $header = pack("vv", $record, $length); + $data = pack("d", $margin); + if (self::getByteOrder()) { // if it's Big Endian + $data = strrev($data); + } + + $this->_append($header . $data); + } + + /** + * Store the BOTTOMMARGIN BIFF record. + */ + private function _writeMarginBottom() + { + $record = 0x0029; // Record identifier + $length = 0x0008; // Bytes to follow + + $margin = $this->_phpSheet->getPageMargins()->getBottom(); // Margin in inches + + $header = pack("vv", $record, $length); + $data = pack("d", $margin); + if (self::getByteOrder()) { // if it's Big Endian + $data = strrev($data); + } + + $this->_append($header . $data); + } + + /** + * Write the PRINTHEADERS BIFF record. + */ + private function _writePrintHeaders() + { + $record = 0x002a; // Record identifier + $length = 0x0002; // Bytes to follow + + $fPrintRwCol = $this->_print_headers; // Boolean flag + + $header = pack("vv", $record, $length); + $data = pack("v", $fPrintRwCol); + $this->_append($header . $data); + } + + /** + * Write the PRINTGRIDLINES BIFF record. Must be used in conjunction with the + * GRIDSET record. + */ + private function _writePrintGridlines() + { + $record = 0x002b; // Record identifier + $length = 0x0002; // Bytes to follow + + $fPrintGrid = $this->_phpSheet->getPrintGridlines() ? 1 : 0; // Boolean flag + + $header = pack("vv", $record, $length); + $data = pack("v", $fPrintGrid); + $this->_append($header . $data); + } + + /** + * Write the GRIDSET BIFF record. Must be used in conjunction with the + * PRINTGRIDLINES record. + */ + private function _writeGridset() + { + $record = 0x0082; // Record identifier + $length = 0x0002; // Bytes to follow + + $fGridSet = !$this->_phpSheet->getPrintGridlines(); // Boolean flag + + $header = pack("vv", $record, $length); + $data = pack("v", $fGridSet); + $this->_append($header . $data); + } + + /** + * Write the AUTOFILTERINFO BIFF record. This is used to configure the number of autofilter select used in the sheet. + */ + private function _writeAutoFilterInfo(){ + $record = 0x009D; // Record identifier + $length = 0x0002; // Bytes to follow + + $rangeBounds = PHPExcel_Cell::rangeBoundaries($this->_phpSheet->getAutoFilter()->getRange()); + $iNumFilters = 1 + $rangeBounds[1][0] - $rangeBounds[0][0]; + + $header = pack("vv", $record, $length); + $data = pack("v", $iNumFilters); + $this->_append($header . $data); + } + + /** + * Write the GUTS BIFF record. This is used to configure the gutter margins + * where Excel outline symbols are displayed. The visibility of the gutters is + * controlled by a flag in WSBOOL. + * + * @see _writeWsbool() + */ + private function _writeGuts() + { + $record = 0x0080; // Record identifier + $length = 0x0008; // Bytes to follow + + $dxRwGut = 0x0000; // Size of row gutter + $dxColGut = 0x0000; // Size of col gutter + + // determine maximum row outline level + $maxRowOutlineLevel = 0; + foreach ($this->_phpSheet->getRowDimensions() as $rowDimension) { + $maxRowOutlineLevel = max($maxRowOutlineLevel, $rowDimension->getOutlineLevel()); + } + + $col_level = 0; + + // Calculate the maximum column outline level. The equivalent calculation + // for the row outline level is carried out in _writeRow(). + $colcount = count($this->_colinfo); + for ($i = 0; $i < $colcount; ++$i) { + $col_level = max($this->_colinfo[$i][5], $col_level); + } + + // Set the limits for the outline levels (0 <= x <= 7). + $col_level = max(0, min($col_level, 7)); + + // The displayed level is one greater than the max outline levels + if ($maxRowOutlineLevel) { + ++$maxRowOutlineLevel; + } + if ($col_level) { + ++$col_level; + } + + $header = pack("vv", $record, $length); + $data = pack("vvvv", $dxRwGut, $dxColGut, $maxRowOutlineLevel, $col_level); + + $this->_append($header.$data); + } + + /** + * Write the WSBOOL BIFF record, mainly for fit-to-page. Used in conjunction + * with the SETUP record. + */ + private function _writeWsbool() + { + $record = 0x0081; // Record identifier + $length = 0x0002; // Bytes to follow + $grbit = 0x0000; + + // The only option that is of interest is the flag for fit to page. So we + // set all the options in one go. + // + // Set the option flags + $grbit |= 0x0001; // Auto page breaks visible + if ($this->_outline_style) { + $grbit |= 0x0020; // Auto outline styles + } + if ($this->_phpSheet->getShowSummaryBelow()) { + $grbit |= 0x0040; // Outline summary below + } + if ($this->_phpSheet->getShowSummaryRight()) { + $grbit |= 0x0080; // Outline summary right + } + if ($this->_phpSheet->getPageSetup()->getFitToPage()) { + $grbit |= 0x0100; // Page setup fit to page + } + if ($this->_outline_on) { + $grbit |= 0x0400; // Outline symbols displayed + } + + $header = pack("vv", $record, $length); + $data = pack("v", $grbit); + $this->_append($header . $data); + } + + /** + * Write the HORIZONTALPAGEBREAKS and VERTICALPAGEBREAKS BIFF records. + */ + private function _writeBreaks() + { + // initialize + $vbreaks = array(); + $hbreaks = array(); + + foreach ($this->_phpSheet->getBreaks() as $cell => $breakType) { + // Fetch coordinates + $coordinates = PHPExcel_Cell::coordinateFromString($cell); + + // Decide what to do by the type of break + switch ($breakType) { + case PHPExcel_Worksheet::BREAK_COLUMN: + // Add to list of vertical breaks + $vbreaks[] = PHPExcel_Cell::columnIndexFromString($coordinates[0]) - 1; + break; + + case PHPExcel_Worksheet::BREAK_ROW: + // Add to list of horizontal breaks + $hbreaks[] = $coordinates[1]; + break; + + case PHPExcel_Worksheet::BREAK_NONE: + default: + // Nothing to do + break; + } + } + + //horizontal page breaks + if (!empty($hbreaks)) { + + // Sort and filter array of page breaks + sort($hbreaks, SORT_NUMERIC); + if ($hbreaks[0] == 0) { // don't use first break if it's 0 + array_shift($hbreaks); + } + + $record = 0x001b; // Record identifier + $cbrk = count($hbreaks); // Number of page breaks + $length = 2 + 6 * $cbrk; // Bytes to follow + + $header = pack("vv", $record, $length); + $data = pack("v", $cbrk); + + // Append each page break + foreach ($hbreaks as $hbreak) { + $data .= pack("vvv", $hbreak, 0x0000, 0x00ff); + } + + $this->_append($header . $data); + } + + // vertical page breaks + if (!empty($vbreaks)) { + + // 1000 vertical pagebreaks appears to be an internal Excel 5 limit. + // It is slightly higher in Excel 97/200, approx. 1026 + $vbreaks = array_slice($vbreaks, 0, 1000); + + // Sort and filter array of page breaks + sort($vbreaks, SORT_NUMERIC); + if ($vbreaks[0] == 0) { // don't use first break if it's 0 + array_shift($vbreaks); + } + + $record = 0x001a; // Record identifier + $cbrk = count($vbreaks); // Number of page breaks + $length = 2 + 6 * $cbrk; // Bytes to follow + + $header = pack("vv", $record, $length); + $data = pack("v", $cbrk); + + // Append each page break + foreach ($vbreaks as $vbreak) { + $data .= pack("vvv", $vbreak, 0x0000, 0xffff); + } + + $this->_append($header . $data); + } + } + + /** + * Set the Biff PROTECT record to indicate that the worksheet is protected. + */ + private function _writeProtect() + { + // Exit unless sheet protection has been specified + if (!$this->_phpSheet->getProtection()->getSheet()) { + return; + } + + $record = 0x0012; // Record identifier + $length = 0x0002; // Bytes to follow + + $fLock = 1; // Worksheet is protected + + $header = pack("vv", $record, $length); + $data = pack("v", $fLock); + + $this->_append($header.$data); + } + + /** + * Write SCENPROTECT + */ + private function _writeScenProtect() + { + // Exit if sheet protection is not active + if (!$this->_phpSheet->getProtection()->getSheet()) { + return; + } + + // Exit if scenarios are not protected + if (!$this->_phpSheet->getProtection()->getScenarios()) { + return; + } + + $record = 0x00DD; // Record identifier + $length = 0x0002; // Bytes to follow + + $header = pack('vv', $record, $length); + $data = pack('v', 1); + + $this->_append($header . $data); + } + + /** + * Write OBJECTPROTECT + */ + private function _writeObjectProtect() + { + // Exit if sheet protection is not active + if (!$this->_phpSheet->getProtection()->getSheet()) { + return; + } + + // Exit if objects are not protected + if (!$this->_phpSheet->getProtection()->getObjects()) { + return; + } + + $record = 0x0063; // Record identifier + $length = 0x0002; // Bytes to follow + + $header = pack('vv', $record, $length); + $data = pack('v', 1); + + $this->_append($header . $data); + } + + /** + * Write the worksheet PASSWORD record. + */ + private function _writePassword() + { + // Exit unless sheet protection and password have been specified + if (!$this->_phpSheet->getProtection()->getSheet() || !$this->_phpSheet->getProtection()->getPassword()) { + return; + } + + $record = 0x0013; // Record identifier + $length = 0x0002; // Bytes to follow + + $wPassword = hexdec($this->_phpSheet->getProtection()->getPassword()); // Encoded password + + $header = pack("vv", $record, $length); + $data = pack("v", $wPassword); + + $this->_append($header . $data); + } + + /** + * Insert a 24bit bitmap image in a worksheet. + * + * @access public + * @param integer $row The row we are going to insert the bitmap into + * @param integer $col The column we are going to insert the bitmap into + * @param mixed $bitmap The bitmap filename or GD-image resource + * @param integer $x The horizontal position (offset) of the image inside the cell. + * @param integer $y The vertical position (offset) of the image inside the cell. + * @param float $scale_x The horizontal scale + * @param float $scale_y The vertical scale + */ + function insertBitmap($row, $col, $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1) + { + $bitmap_array = (is_resource($bitmap) ? $this->_processBitmapGd($bitmap) : $this->_processBitmap($bitmap)); + list($width, $height, $size, $data) = $bitmap_array; //$this->_processBitmap($bitmap); + + // Scale the frame of the image. + $width *= $scale_x; + $height *= $scale_y; + + // Calculate the vertices of the image and write the OBJ record + $this->_positionImage($col, $row, $x, $y, $width, $height); + + // Write the IMDATA record to store the bitmap data + $record = 0x007f; + $length = 8 + $size; + $cf = 0x09; + $env = 0x01; + $lcb = $size; + + $header = pack("vvvvV", $record, $length, $cf, $env, $lcb); + $this->_append($header.$data); + } + + /** + * Calculate the vertices that define the position of the image as required by + * the OBJ record. + * + * +------------+------------+ + * | A | B | + * +-----+------------+------------+ + * | |(x1,y1) | | + * | 1 |(A1)._______|______ | + * | | | | | + * | | | | | + * +-----+----| BITMAP |-----+ + * | | | | | + * | 2 | |______________. | + * | | | (B2)| + * | | | (x2,y2)| + * +---- +------------+------------+ + * + * Example of a bitmap that covers some of the area from cell A1 to cell B2. + * + * Based on the width and height of the bitmap we need to calculate 8 vars: + * $col_start, $row_start, $col_end, $row_end, $x1, $y1, $x2, $y2. + * The width and height of the cells are also variable and have to be taken into + * account. + * The values of $col_start and $row_start are passed in from the calling + * function. The values of $col_end and $row_end are calculated by subtracting + * the width and height of the bitmap from the width and height of the + * underlying cells. + * The vertices are expressed as a percentage of the underlying cell width as + * follows (rhs values are in pixels): + * + * x1 = X / W *1024 + * y1 = Y / H *256 + * x2 = (X-1) / W *1024 + * y2 = (Y-1) / H *256 + * + * Where: X is distance from the left side of the underlying cell + * Y is distance from the top of the underlying cell + * W is the width of the cell + * H is the height of the cell + * The SDK incorrectly states that the height should be expressed as a + * percentage of 1024. + * + * @access private + * @param integer $col_start Col containing upper left corner of object + * @param integer $row_start Row containing top left corner of object + * @param integer $x1 Distance to left side of object + * @param integer $y1 Distance to top of object + * @param integer $width Width of image frame + * @param integer $height Height of image frame + */ + function _positionImage($col_start, $row_start, $x1, $y1, $width, $height) + { + // Initialise end cell to the same as the start cell + $col_end = $col_start; // Col containing lower right corner of object + $row_end = $row_start; // Row containing bottom right corner of object + + // Zero the specified offset if greater than the cell dimensions + if ($x1 >= PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_start))) { + $x1 = 0; + } + if ($y1 >= PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $row_start + 1)) { + $y1 = 0; + } + + $width = $width + $x1 -1; + $height = $height + $y1 -1; + + // Subtract the underlying cell widths to find the end cell of the image + while ($width >= PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end))) { + $width -= PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end)); + ++$col_end; + } + + // Subtract the underlying cell heights to find the end cell of the image + while ($height >= PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $row_end + 1)) { + $height -= PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $row_end + 1); + ++$row_end; + } + + // Bitmap isn't allowed to start or finish in a hidden cell, i.e. a cell + // with zero eight or width. + // + if (PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_start)) == 0) { + return; + } + if (PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end)) == 0) { + return; + } + if (PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $row_start + 1) == 0) { + return; + } + if (PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $row_end + 1) == 0) { + return; + } + + // Convert the pixel values to the percentage value expected by Excel + $x1 = $x1 / PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_start)) * 1024; + $y1 = $y1 / PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $row_start + 1) * 256; + $x2 = $width / PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end)) * 1024; // Distance to right side of object + $y2 = $height / PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $row_end + 1) * 256; // Distance to bottom of object + + $this->_writeObjPicture($col_start, $x1, + $row_start, $y1, + $col_end, $x2, + $row_end, $y2); + } + + /** + * Store the OBJ record that precedes an IMDATA record. This could be generalise + * to support other Excel objects. + * + * @param integer $colL Column containing upper left corner of object + * @param integer $dxL Distance from left side of cell + * @param integer $rwT Row containing top left corner of object + * @param integer $dyT Distance from top of cell + * @param integer $colR Column containing lower right corner of object + * @param integer $dxR Distance from right of cell + * @param integer $rwB Row containing bottom right corner of object + * @param integer $dyB Distance from bottom of cell + */ + private function _writeObjPicture($colL,$dxL,$rwT,$dyT,$colR,$dxR,$rwB,$dyB) + { + $record = 0x005d; // Record identifier + $length = 0x003c; // Bytes to follow + + $cObj = 0x0001; // Count of objects in file (set to 1) + $OT = 0x0008; // Object type. 8 = Picture + $id = 0x0001; // Object ID + $grbit = 0x0614; // Option flags + + $cbMacro = 0x0000; // Length of FMLA structure + $Reserved1 = 0x0000; // Reserved + $Reserved2 = 0x0000; // Reserved + + $icvBack = 0x09; // Background colour + $icvFore = 0x09; // Foreground colour + $fls = 0x00; // Fill pattern + $fAuto = 0x00; // Automatic fill + $icv = 0x08; // Line colour + $lns = 0xff; // Line style + $lnw = 0x01; // Line weight + $fAutoB = 0x00; // Automatic border + $frs = 0x0000; // Frame style + $cf = 0x0009; // Image format, 9 = bitmap + $Reserved3 = 0x0000; // Reserved + $cbPictFmla = 0x0000; // Length of FMLA structure + $Reserved4 = 0x0000; // Reserved + $grbit2 = 0x0001; // Option flags + $Reserved5 = 0x0000; // Reserved + + + $header = pack("vv", $record, $length); + $data = pack("V", $cObj); + $data .= pack("v", $OT); + $data .= pack("v", $id); + $data .= pack("v", $grbit); + $data .= pack("v", $colL); + $data .= pack("v", $dxL); + $data .= pack("v", $rwT); + $data .= pack("v", $dyT); + $data .= pack("v", $colR); + $data .= pack("v", $dxR); + $data .= pack("v", $rwB); + $data .= pack("v", $dyB); + $data .= pack("v", $cbMacro); + $data .= pack("V", $Reserved1); + $data .= pack("v", $Reserved2); + $data .= pack("C", $icvBack); + $data .= pack("C", $icvFore); + $data .= pack("C", $fls); + $data .= pack("C", $fAuto); + $data .= pack("C", $icv); + $data .= pack("C", $lns); + $data .= pack("C", $lnw); + $data .= pack("C", $fAutoB); + $data .= pack("v", $frs); + $data .= pack("V", $cf); + $data .= pack("v", $Reserved3); + $data .= pack("v", $cbPictFmla); + $data .= pack("v", $Reserved4); + $data .= pack("v", $grbit2); + $data .= pack("V", $Reserved5); + + $this->_append($header . $data); + } + + /** + * Convert a GD-image into the internal format. + * + * @access private + * @param resource $image The image to process + * @return array Array with data and properties of the bitmap + */ + function _processBitmapGd($image) { + $width = imagesx($image); + $height = imagesy($image); + + $data = pack("Vvvvv", 0x000c, $width, $height, 0x01, 0x18); + for ($j=$height; $j--; ) { + for ($i=0; $i < $width; ++$i) { + $color = imagecolorsforindex($image, imagecolorat($image, $i, $j)); + foreach (array("red", "green", "blue") as $key) { + $color[$key] = $color[$key] + round((255 - $color[$key]) * $color["alpha"] / 127); + } + $data .= chr($color["blue"]) . chr($color["green"]) . chr($color["red"]); + } + if (3*$width % 4) { + $data .= str_repeat("\x00", 4 - 3*$width % 4); + } + } + + return array($width, $height, strlen($data), $data); + } + + /** + * Convert a 24 bit bitmap into the modified internal format used by Windows. + * This is described in BITMAPCOREHEADER and BITMAPCOREINFO structures in the + * MSDN library. + * + * @access private + * @param string $bitmap The bitmap to process + * @return array Array with data and properties of the bitmap + */ + function _processBitmap($bitmap) + { + // Open file. + $bmp_fd = @fopen($bitmap,"rb"); + if (!$bmp_fd) { + throw new PHPExcel_Writer_Exception("Couldn't import $bitmap"); + } + + // Slurp the file into a string. + $data = fread($bmp_fd, filesize($bitmap)); + + // Check that the file is big enough to be a bitmap. + if (strlen($data) <= 0x36) { + throw new PHPExcel_Writer_Exception("$bitmap doesn't contain enough data.\n"); + } + + // The first 2 bytes are used to identify the bitmap. + $identity = unpack("A2ident", $data); + if ($identity['ident'] != "BM") { + throw new PHPExcel_Writer_Exception("$bitmap doesn't appear to be a valid bitmap image.\n"); + } + + // Remove bitmap data: ID. + $data = substr($data, 2); + + // Read and remove the bitmap size. This is more reliable than reading + // the data size at offset 0x22. + // + $size_array = unpack("Vsa", substr($data, 0, 4)); + $size = $size_array['sa']; + $data = substr($data, 4); + $size -= 0x36; // Subtract size of bitmap header. + $size += 0x0C; // Add size of BIFF header. + + // Remove bitmap data: reserved, offset, header length. + $data = substr($data, 12); + + // Read and remove the bitmap width and height. Verify the sizes. + $width_and_height = unpack("V2", substr($data, 0, 8)); + $width = $width_and_height[1]; + $height = $width_and_height[2]; + $data = substr($data, 8); + if ($width > 0xFFFF) { + throw new PHPExcel_Writer_Exception("$bitmap: largest image width supported is 65k.\n"); + } + if ($height > 0xFFFF) { + throw new PHPExcel_Writer_Exception("$bitmap: largest image height supported is 65k.\n"); + } + + // Read and remove the bitmap planes and bpp data. Verify them. + $planes_and_bitcount = unpack("v2", substr($data, 0, 4)); + $data = substr($data, 4); + if ($planes_and_bitcount[2] != 24) { // Bitcount + throw new PHPExcel_Writer_Exception("$bitmap isn't a 24bit true color bitmap.\n"); + } + if ($planes_and_bitcount[1] != 1) { + throw new PHPExcel_Writer_Exception("$bitmap: only 1 plane supported in bitmap image.\n"); + } + + // Read and remove the bitmap compression. Verify compression. + $compression = unpack("Vcomp", substr($data, 0, 4)); + $data = substr($data, 4); + + //$compression = 0; + if ($compression['comp'] != 0) { + throw new PHPExcel_Writer_Exception("$bitmap: compression not supported in bitmap image.\n"); + } + + // Remove bitmap data: data size, hres, vres, colours, imp. colours. + $data = substr($data, 20); + + // Add the BITMAPCOREHEADER data + $header = pack("Vvvvv", 0x000c, $width, $height, 0x01, 0x18); + $data = $header . $data; + + return (array($width, $height, $size, $data)); + } + + /** + * Store the window zoom factor. This should be a reduced fraction but for + * simplicity we will store all fractions with a numerator of 100. + */ + private function _writeZoom() + { + // If scale is 100 we don't need to write a record + if ($this->_phpSheet->getSheetView()->getZoomScale() == 100) { + return; + } + + $record = 0x00A0; // Record identifier + $length = 0x0004; // Bytes to follow + + $header = pack("vv", $record, $length); + $data = pack("vv", $this->_phpSheet->getSheetView()->getZoomScale(), 100); + $this->_append($header . $data); + } + + /** + * Get Escher object + * + * @return PHPExcel_Shared_Escher + */ + public function getEscher() + { + return $this->_escher; + } + + /** + * Set Escher object + * + * @param PHPExcel_Shared_Escher $pValue + */ + public function setEscher(PHPExcel_Shared_Escher $pValue = null) + { + $this->_escher = $pValue; + } + + /** + * Write MSODRAWING record + */ + private function _writeMsoDrawing() + { + // write the Escher stream if necessary + if (isset($this->_escher)) { + $writer = new PHPExcel_Writer_Excel5_Escher($this->_escher); + $data = $writer->close(); + $spOffsets = $writer->getSpOffsets(); + $spTypes = $writer->getSpTypes(); + // write the neccesary MSODRAWING, OBJ records + + // split the Escher stream + $spOffsets[0] = 0; + $nm = count($spOffsets) - 1; // number of shapes excluding first shape + for ($i = 1; $i <= $nm; ++$i) { + // MSODRAWING record + $record = 0x00EC; // Record identifier + + // chunk of Escher stream for one shape + $dataChunk = substr($data, $spOffsets[$i -1], $spOffsets[$i] - $spOffsets[$i - 1]); + + $length = strlen($dataChunk); + $header = pack("vv", $record, $length); + + $this->_append($header . $dataChunk); + + // OBJ record + $record = 0x005D; // record identifier + $objData = ''; + + // ftCmo + if($spTypes[$i] == 0x00C9){ + // Add ftCmo (common object data) subobject + $objData .= + pack('vvvvvVVV' + , 0x0015 // 0x0015 = ftCmo + , 0x0012 // length of ftCmo data + , 0x0014 // object type, 0x0014 = filter + , $i // object id number, Excel seems to use 1-based index, local for the sheet + , 0x2101 // option flags, 0x2001 is what OpenOffice.org uses + , 0 // reserved + , 0 // reserved + , 0 // reserved + ); + + // Add ftSbs Scroll bar subobject + $objData .= pack('vv', 0x00C, 0x0014); + $objData .= pack('H*', '0000000000000000640001000A00000010000100'); + // Add ftLbsData (List box data) subobject + $objData .= pack('vv', 0x0013, 0x1FEE); + $objData .= pack('H*', '00000000010001030000020008005700'); + } + else { + // Add ftCmo (common object data) subobject + $objData .= + pack('vvvvvVVV' + , 0x0015 // 0x0015 = ftCmo + , 0x0012 // length of ftCmo data + , 0x0008 // object type, 0x0008 = picture + , $i // object id number, Excel seems to use 1-based index, local for the sheet + , 0x6011 // option flags, 0x6011 is what OpenOffice.org uses + , 0 // reserved + , 0 // reserved + , 0 // reserved + ); + } + + // ftEnd + $objData .= + pack('vv' + , 0x0000 // 0x0000 = ftEnd + , 0x0000 // length of ftEnd data + ); + + $length = strlen($objData); + $header = pack('vv', $record, $length); + $this->_append($header . $objData); + } + } + } + + /** + * Store the DATAVALIDATIONS and DATAVALIDATION records. + */ + private function _writeDataValidity() + { + // Datavalidation collection + $dataValidationCollection = $this->_phpSheet->getDataValidationCollection(); + + // Write data validations? + if (!empty($dataValidationCollection)) { + + // DATAVALIDATIONS record + $record = 0x01B2; // Record identifier + $length = 0x0012; // Bytes to follow + + $grbit = 0x0000; // Prompt box at cell, no cached validity data at DV records + $horPos = 0x00000000; // Horizontal position of prompt box, if fixed position + $verPos = 0x00000000; // Vertical position of prompt box, if fixed position + $objId = 0xFFFFFFFF; // Object identifier of drop down arrow object, or -1 if not visible + + $header = pack('vv', $record, $length); + $data = pack('vVVVV', $grbit, $horPos, $verPos, $objId, + count($dataValidationCollection)); + $this->_append($header.$data); + + // DATAVALIDATION records + $record = 0x01BE; // Record identifier + + foreach ($dataValidationCollection as $cellCoordinate => $dataValidation) { + // initialize record data + $data = ''; + + // options + $options = 0x00000000; + + // data type + $type = $dataValidation->getType(); + switch ($type) { + case PHPExcel_Cell_DataValidation::TYPE_NONE: $type = 0x00; break; + case PHPExcel_Cell_DataValidation::TYPE_WHOLE: $type = 0x01; break; + case PHPExcel_Cell_DataValidation::TYPE_DECIMAL: $type = 0x02; break; + case PHPExcel_Cell_DataValidation::TYPE_LIST: $type = 0x03; break; + case PHPExcel_Cell_DataValidation::TYPE_DATE: $type = 0x04; break; + case PHPExcel_Cell_DataValidation::TYPE_TIME: $type = 0x05; break; + case PHPExcel_Cell_DataValidation::TYPE_TEXTLENGTH: $type = 0x06; break; + case PHPExcel_Cell_DataValidation::TYPE_CUSTOM: $type = 0x07; break; + } + $options |= $type << 0; + + // error style + $errorStyle = $dataValidation->getType(); + switch ($errorStyle) { + case PHPExcel_Cell_DataValidation::STYLE_STOP: $errorStyle = 0x00; break; + case PHPExcel_Cell_DataValidation::STYLE_WARNING: $errorStyle = 0x01; break; + case PHPExcel_Cell_DataValidation::STYLE_INFORMATION: $errorStyle = 0x02; break; + } + $options |= $errorStyle << 4; + + // explicit formula? + if ($type == 0x03 && preg_match('/^\".*\"$/', $dataValidation->getFormula1())) { + $options |= 0x01 << 7; + } + + // empty cells allowed + $options |= $dataValidation->getAllowBlank() << 8; + + // show drop down + $options |= (!$dataValidation->getShowDropDown()) << 9; + + // show input message + $options |= $dataValidation->getShowInputMessage() << 18; + + // show error message + $options |= $dataValidation->getShowErrorMessage() << 19; + + // condition operator + $operator = $dataValidation->getOperator(); + switch ($operator) { + case PHPExcel_Cell_DataValidation::OPERATOR_BETWEEN: $operator = 0x00 ; break; + case PHPExcel_Cell_DataValidation::OPERATOR_NOTBETWEEN: $operator = 0x01 ; break; + case PHPExcel_Cell_DataValidation::OPERATOR_EQUAL: $operator = 0x02 ; break; + case PHPExcel_Cell_DataValidation::OPERATOR_NOTEQUAL: $operator = 0x03 ; break; + case PHPExcel_Cell_DataValidation::OPERATOR_GREATERTHAN: $operator = 0x04 ; break; + case PHPExcel_Cell_DataValidation::OPERATOR_LESSTHAN: $operator = 0x05 ; break; + case PHPExcel_Cell_DataValidation::OPERATOR_GREATERTHANOREQUAL: $operator = 0x06; break; + case PHPExcel_Cell_DataValidation::OPERATOR_LESSTHANOREQUAL: $operator = 0x07 ; break; + } + $options |= $operator << 20; + + $data = pack('V', $options); + + // prompt title + $promptTitle = $dataValidation->getPromptTitle() !== '' ? + $dataValidation->getPromptTitle() : chr(0); + $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($promptTitle); + + // error title + $errorTitle = $dataValidation->getErrorTitle() !== '' ? + $dataValidation->getErrorTitle() : chr(0); + $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($errorTitle); + + // prompt text + $prompt = $dataValidation->getPrompt() !== '' ? + $dataValidation->getPrompt() : chr(0); + $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($prompt); + + // error text + $error = $dataValidation->getError() !== '' ? + $dataValidation->getError() : chr(0); + $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($error); + + // formula 1 + try { + $formula1 = $dataValidation->getFormula1(); + if ($type == 0x03) { // list type + $formula1 = str_replace(',', chr(0), $formula1); + } + $this->_parser->parse($formula1); + $formula1 = $this->_parser->toReversePolish(); + $sz1 = strlen($formula1); + + } catch(PHPExcel_Exception $e) { + $sz1 = 0; + $formula1 = ''; + } + $data .= pack('vv', $sz1, 0x0000); + $data .= $formula1; + + // formula 2 + try { + $formula2 = $dataValidation->getFormula2(); + if ($formula2 === '') { + throw new PHPExcel_Writer_Exception('No formula2'); + } + $this->_parser->parse($formula2); + $formula2 = $this->_parser->toReversePolish(); + $sz2 = strlen($formula2); + + } catch(PHPExcel_Exception $e) { + $sz2 = 0; + $formula2 = ''; + } + $data .= pack('vv', $sz2, 0x0000); + $data .= $formula2; + + // cell range address list + $data .= pack('v', 0x0001); + $data .= $this->_writeBIFF8CellRangeAddressFixed($cellCoordinate); + + $length = strlen($data); + $header = pack("vv", $record, $length); + + $this->_append($header . $data); + } + } + } + + /** + * Map Error code + * + * @param string $errorCode + * @return int + */ + private static function _mapErrorCode($errorCode) { + switch ($errorCode) { + case '#NULL!': return 0x00; + case '#DIV/0!': return 0x07; + case '#VALUE!': return 0x0F; + case '#REF!': return 0x17; + case '#NAME?': return 0x1D; + case '#NUM!': return 0x24; + case '#N/A': return 0x2A; + } + + return 0; + } + + /** + * Write PLV Record + */ + private function _writePageLayoutView(){ + $record = 0x088B; // Record identifier + $length = 0x0010; // Bytes to follow + + $rt = 0x088B; // 2 + $grbitFrt = 0x0000; // 2 + $reserved = 0x0000000000000000; // 8 + $wScalvePLV = $this->_phpSheet->getSheetView()->getZoomScale(); // 2 + + // The options flags that comprise $grbit + if($this->_phpSheet->getSheetView()->getView() == PHPExcel_Worksheet_SheetView::SHEETVIEW_PAGE_LAYOUT){ + $fPageLayoutView = 1; + } else { + $fPageLayoutView = 0; + } + $fRulerVisible = 0; + $fWhitespaceHidden = 0; + + $grbit = $fPageLayoutView; // 2 + $grbit |= $fRulerVisible << 1; + $grbit |= $fWhitespaceHidden << 3; + + $header = pack("vv", $record, $length); + $data = pack("vvVVvv", $rt, $grbitFrt, 0x00000000, 0x00000000, $wScalvePLV, $grbit); + $this->_append($header . $data); + } + + /** + * Write CFRule Record + * @param PHPExcel_Style_Conditional $conditional + */ + private function _writeCFRule(PHPExcel_Style_Conditional $conditional){ + $record = 0x01B1; // Record identifier + + // $type : Type of the CF + // $operatorType : Comparison operator + if($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION){ + $type = 0x02; + $operatorType = 0x00; + } else if($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS){ + $type = 0x01; + + switch ($conditional->getOperatorType()){ + case PHPExcel_Style_Conditional::OPERATOR_NONE: + $operatorType = 0x00; + break; + case PHPExcel_Style_Conditional::OPERATOR_EQUAL: + $operatorType = 0x03; + break; + case PHPExcel_Style_Conditional::OPERATOR_GREATERTHAN: + $operatorType = 0x05; + break; + case PHPExcel_Style_Conditional::OPERATOR_GREATERTHANOREQUAL: + $operatorType = 0x07; + break; + case PHPExcel_Style_Conditional::OPERATOR_LESSTHAN: + $operatorType = 0x06; + break; + case PHPExcel_Style_Conditional::OPERATOR_LESSTHANOREQUAL: + $operatorType = 0x08; + break; + case PHPExcel_Style_Conditional::OPERATOR_NOTEQUAL: + $operatorType = 0x04; + break; + case PHPExcel_Style_Conditional::OPERATOR_BETWEEN: + $operatorType = 0x01; + break; + // not OPERATOR_NOTBETWEEN 0x02 + } + } + + // $szValue1 : size of the formula data for first value or formula + // $szValue2 : size of the formula data for second value or formula + $arrConditions = $conditional->getConditions(); + $numConditions = sizeof($arrConditions); + if($numConditions == 1){ + $szValue1 = ($arrConditions[0] <= 65535 ? 3 : 0x0000); + $szValue2 = 0x0000; + $operand1 = pack('Cv', 0x1E, $arrConditions[0]); + $operand2 = null; + } else if($numConditions == 2 && ($conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_BETWEEN)){ + $szValue1 = ($arrConditions[0] <= 65535 ? 3 : 0x0000); + $szValue2 = ($arrConditions[1] <= 65535 ? 3 : 0x0000); + $operand1 = pack('Cv', 0x1E, $arrConditions[0]); + $operand2 = pack('Cv', 0x1E, $arrConditions[1]); + } else { + $szValue1 = 0x0000; + $szValue2 = 0x0000; + $operand1 = null; + $operand2 = null; + } + + // $flags : Option flags + // Alignment + $bAlignHz = ($conditional->getStyle()->getAlignment()->getHorizontal() == null ? 1 : 0); + $bAlignVt = ($conditional->getStyle()->getAlignment()->getVertical() == null ? 1 : 0); + $bAlignWrapTx = ($conditional->getStyle()->getAlignment()->getWrapText() == false ? 1 : 0); + $bTxRotation = ($conditional->getStyle()->getAlignment()->getTextRotation() == null ? 1 : 0); + $bIndent = ($conditional->getStyle()->getAlignment()->getIndent() == 0 ? 1 : 0); + $bShrinkToFit = ($conditional->getStyle()->getAlignment()->getShrinkToFit() == false ? 1 : 0); + if($bAlignHz == 0 || $bAlignVt == 0 || $bAlignWrapTx == 0 || $bTxRotation == 0 || $bIndent == 0 || $bShrinkToFit == 0){ + $bFormatAlign = 1; + } else { + $bFormatAlign = 0; + } + // Protection + $bProtLocked = ($conditional->getStyle()->getProtection()->getLocked() == null ? 1 : 0); + $bProtHidden = ($conditional->getStyle()->getProtection()->getHidden() == null ? 1 : 0); + if($bProtLocked == 0 || $bProtHidden == 0){ + $bFormatProt = 1; + } else { + $bFormatProt = 0; + } + // Border + $bBorderLeft = ($conditional->getStyle()->getBorders()->getLeft()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK + && $conditional->getStyle()->getBorders()->getLeft()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0); + $bBorderRight = ($conditional->getStyle()->getBorders()->getRight()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK + && $conditional->getStyle()->getBorders()->getRight()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0); + $bBorderTop = ($conditional->getStyle()->getBorders()->getTop()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK + && $conditional->getStyle()->getBorders()->getTop()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0); + $bBorderBottom = ($conditional->getStyle()->getBorders()->getBottom()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK + && $conditional->getStyle()->getBorders()->getBottom()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0); + if($bBorderLeft == 0 || $bBorderRight == 0 || $bBorderTop == 0 || $bBorderBottom == 0){ + $bFormatBorder = 1; + } else { + $bFormatBorder = 0; + } + // Pattern + $bFillStyle = ($conditional->getStyle()->getFill()->getFillType() == null ? 0 : 1); + $bFillColor = ($conditional->getStyle()->getFill()->getStartColor()->getARGB() == null ? 0 : 1); + $bFillColorBg = ($conditional->getStyle()->getFill()->getEndColor()->getARGB() == null ? 0 : 1); + if($bFillStyle == 0 || $bFillColor == 0 || $bFillColorBg == 0){ + $bFormatFill = 1; + } else { + $bFormatFill = 0; + } + // Font + if($conditional->getStyle()->getFont()->getName() != null + || $conditional->getStyle()->getFont()->getSize() != null + || $conditional->getStyle()->getFont()->getBold() != null + || $conditional->getStyle()->getFont()->getItalic() != null + || $conditional->getStyle()->getFont()->getSuperScript() != null + || $conditional->getStyle()->getFont()->getSubScript() != null + || $conditional->getStyle()->getFont()->getUnderline() != null + || $conditional->getStyle()->getFont()->getStrikethrough() != null + || $conditional->getStyle()->getFont()->getColor()->getARGB() != null){ + $bFormatFont = 1; + } else { + $bFormatFont = 0; + } + // Alignment + $flags = 0; + $flags |= (1 == $bAlignHz ? 0x00000001 : 0); + $flags |= (1 == $bAlignVt ? 0x00000002 : 0); + $flags |= (1 == $bAlignWrapTx ? 0x00000004 : 0); + $flags |= (1 == $bTxRotation ? 0x00000008 : 0); + // Justify last line flag + $flags |= (1 == 1 ? 0x00000010 : 0); + $flags |= (1 == $bIndent ? 0x00000020 : 0); + $flags |= (1 == $bShrinkToFit ? 0x00000040 : 0); + // Default + $flags |= (1 == 1 ? 0x00000080 : 0); + // Protection + $flags |= (1 == $bProtLocked ? 0x00000100 : 0); + $flags |= (1 == $bProtHidden ? 0x00000200 : 0); + // Border + $flags |= (1 == $bBorderLeft ? 0x00000400 : 0); + $flags |= (1 == $bBorderRight ? 0x00000800 : 0); + $flags |= (1 == $bBorderTop ? 0x00001000 : 0); + $flags |= (1 == $bBorderBottom ? 0x00002000 : 0); + $flags |= (1 == 1 ? 0x00004000 : 0); // Top left to Bottom right border + $flags |= (1 == 1 ? 0x00008000 : 0); // Bottom left to Top right border + // Pattern + $flags |= (1 == $bFillStyle ? 0x00010000 : 0); + $flags |= (1 == $bFillColor ? 0x00020000 : 0); + $flags |= (1 == $bFillColorBg ? 0x00040000 : 0); + $flags |= (1 == 1 ? 0x00380000 : 0); + // Font + $flags |= (1 == $bFormatFont ? 0x04000000 : 0); + // Alignment : + $flags |= (1 == $bFormatAlign ? 0x08000000 : 0); + // Border + $flags |= (1 == $bFormatBorder ? 0x10000000 : 0); + // Pattern + $flags |= (1 == $bFormatFill ? 0x20000000 : 0); + // Protection + $flags |= (1 == $bFormatProt ? 0x40000000 : 0); + // Text direction + $flags |= (1 == 0 ? 0x80000000 : 0); + + // Data Blocks + if($bFormatFont == 1){ + // Font Name + if($conditional->getStyle()->getFont()->getName() == null){ + $dataBlockFont = pack('VVVVVVVV', 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000); + $dataBlockFont .= pack('VVVVVVVV', 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000); + } else { + $dataBlockFont = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($conditional->getStyle()->getFont()->getName()); + } + // Font Size + if($conditional->getStyle()->getFont()->getSize() == null){ + $dataBlockFont .= pack('V', 20 * 11); + } else { + $dataBlockFont .= pack('V', 20 * $conditional->getStyle()->getFont()->getSize()); + } + // Font Options + $dataBlockFont .= pack('V', 0); + // Font weight + if($conditional->getStyle()->getFont()->getBold() == true){ + $dataBlockFont .= pack('v', 0x02BC); + } else { + $dataBlockFont .= pack('v', 0x0190); + } + // Escapement type + if($conditional->getStyle()->getFont()->getSubScript() == true){ + $dataBlockFont .= pack('v', 0x02); + $fontEscapement = 0; + } else if($conditional->getStyle()->getFont()->getSuperScript() == true){ + $dataBlockFont .= pack('v', 0x01); + $fontEscapement = 0; + } else { + $dataBlockFont .= pack('v', 0x00); + $fontEscapement = 1; + } + // Underline type + switch ($conditional->getStyle()->getFont()->getUnderline()){ + case PHPExcel_Style_Font::UNDERLINE_NONE : $dataBlockFont .= pack('C', 0x00); $fontUnderline = 0; break; + case PHPExcel_Style_Font::UNDERLINE_DOUBLE : $dataBlockFont .= pack('C', 0x02); $fontUnderline = 0; break; + case PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING : $dataBlockFont .= pack('C', 0x22); $fontUnderline = 0; break; + case PHPExcel_Style_Font::UNDERLINE_SINGLE : $dataBlockFont .= pack('C', 0x01); $fontUnderline = 0; break; + case PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING : $dataBlockFont .= pack('C', 0x21); $fontUnderline = 0; break; + default : $dataBlockFont .= pack('C', 0x00); $fontUnderline = 1; break; + } + // Not used (3) + $dataBlockFont .= pack('vC', 0x0000, 0x00); + // Font color index + switch ($conditional->getStyle()->getFont()->getColor()->getRGB()) { + case '000000': $colorIdx = 0x08; break; + case 'FFFFFF': $colorIdx = 0x09; break; + case 'FF0000': $colorIdx = 0x0A; break; + case '00FF00': $colorIdx = 0x0B; break; + case '0000FF': $colorIdx = 0x0C; break; + case 'FFFF00': $colorIdx = 0x0D; break; + case 'FF00FF': $colorIdx = 0x0E; break; + case '00FFFF': $colorIdx = 0x0F; break; + case '800000': $colorIdx = 0x10; break; + case '008000': $colorIdx = 0x11; break; + case '000080': $colorIdx = 0x12; break; + case '808000': $colorIdx = 0x13; break; + case '800080': $colorIdx = 0x14; break; + case '008080': $colorIdx = 0x15; break; + case 'C0C0C0': $colorIdx = 0x16; break; + case '808080': $colorIdx = 0x17; break; + case '9999FF': $colorIdx = 0x18; break; + case '993366': $colorIdx = 0x19; break; + case 'FFFFCC': $colorIdx = 0x1A; break; + case 'CCFFFF': $colorIdx = 0x1B; break; + case '660066': $colorIdx = 0x1C; break; + case 'FF8080': $colorIdx = 0x1D; break; + case '0066CC': $colorIdx = 0x1E; break; + case 'CCCCFF': $colorIdx = 0x1F; break; + case '000080': $colorIdx = 0x20; break; + case 'FF00FF': $colorIdx = 0x21; break; + case 'FFFF00': $colorIdx = 0x22; break; + case '00FFFF': $colorIdx = 0x23; break; + case '800080': $colorIdx = 0x24; break; + case '800000': $colorIdx = 0x25; break; + case '008080': $colorIdx = 0x26; break; + case '0000FF': $colorIdx = 0x27; break; + case '00CCFF': $colorIdx = 0x28; break; + case 'CCFFFF': $colorIdx = 0x29; break; + case 'CCFFCC': $colorIdx = 0x2A; break; + case 'FFFF99': $colorIdx = 0x2B; break; + case '99CCFF': $colorIdx = 0x2C; break; + case 'FF99CC': $colorIdx = 0x2D; break; + case 'CC99FF': $colorIdx = 0x2E; break; + case 'FFCC99': $colorIdx = 0x2F; break; + case '3366FF': $colorIdx = 0x30; break; + case '33CCCC': $colorIdx = 0x31; break; + case '99CC00': $colorIdx = 0x32; break; + case 'FFCC00': $colorIdx = 0x33; break; + case 'FF9900': $colorIdx = 0x34; break; + case 'FF6600': $colorIdx = 0x35; break; + case '666699': $colorIdx = 0x36; break; + case '969696': $colorIdx = 0x37; break; + case '003366': $colorIdx = 0x38; break; + case '339966': $colorIdx = 0x39; break; + case '003300': $colorIdx = 0x3A; break; + case '333300': $colorIdx = 0x3B; break; + case '993300': $colorIdx = 0x3C; break; + case '993366': $colorIdx = 0x3D; break; + case '333399': $colorIdx = 0x3E; break; + case '333333': $colorIdx = 0x3F; break; + default: $colorIdx = 0x00; break; + } + $dataBlockFont .= pack('V', $colorIdx); + // Not used (4) + $dataBlockFont .= pack('V', 0x00000000); + // Options flags for modified font attributes + $optionsFlags = 0; + $optionsFlagsBold = ($conditional->getStyle()->getFont()->getBold() == null ? 1 : 0); + $optionsFlags |= (1 == $optionsFlagsBold ? 0x00000002 : 0); + $optionsFlags |= (1 == 1 ? 0x00000008 : 0); + $optionsFlags |= (1 == 1 ? 0x00000010 : 0); + $optionsFlags |= (1 == 0 ? 0x00000020 : 0); + $optionsFlags |= (1 == 1 ? 0x00000080 : 0); + $dataBlockFont .= pack('V', $optionsFlags); + // Escapement type + $dataBlockFont .= pack('V', $fontEscapement); + // Underline type + $dataBlockFont .= pack('V', $fontUnderline); + // Always + $dataBlockFont .= pack('V', 0x00000000); + // Always + $dataBlockFont .= pack('V', 0x00000000); + // Not used (8) + $dataBlockFont .= pack('VV', 0x00000000, 0x00000000); + // Always + $dataBlockFont .= pack('v', 0x0001); + } + if($bFormatAlign == 1){ + $blockAlign = 0; + // Alignment and text break + switch ($conditional->getStyle()->getAlignment()->getHorizontal()){ + case PHPExcel_Style_Alignment::HORIZONTAL_GENERAL : $blockAlign = 0; break; + case PHPExcel_Style_Alignment::HORIZONTAL_LEFT : $blockAlign = 1; break; + case PHPExcel_Style_Alignment::HORIZONTAL_RIGHT : $blockAlign = 3; break; + case PHPExcel_Style_Alignment::HORIZONTAL_CENTER : $blockAlign = 2; break; + case PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS : $blockAlign = 6; break; + case PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY : $blockAlign = 5; break; + } + if($conditional->getStyle()->getAlignment()->getWrapText() == true){ + $blockAlign |= 1 << 3; + } else { + $blockAlign |= 0 << 3; + } + switch ($conditional->getStyle()->getAlignment()->getVertical()){ + case PHPExcel_Style_Alignment::VERTICAL_BOTTOM : $blockAlign = 2 << 4; break; + case PHPExcel_Style_Alignment::VERTICAL_TOP : $blockAlign = 0 << 4; break; + case PHPExcel_Style_Alignment::VERTICAL_CENTER : $blockAlign = 1 << 4; break; + case PHPExcel_Style_Alignment::VERTICAL_JUSTIFY : $blockAlign = 3 << 4; break; + } + $blockAlign |= 0 << 7; + + // Text rotation angle + $blockRotation = $conditional->getStyle()->getAlignment()->getTextRotation(); + + // Indentation + $blockIndent = $conditional->getStyle()->getAlignment()->getIndent(); + if($conditional->getStyle()->getAlignment()->getShrinkToFit() == true){ + $blockIndent |= 1 << 4; + } else { + $blockIndent |= 0 << 4; + } + $blockIndent |= 0 << 6; + + // Relative indentation + $blockIndentRelative = 255; + + $dataBlockAlign = pack('CCvvv', $blockAlign, $blockRotation, $blockIndent, $blockIndentRelative, 0x0000); + } + if($bFormatBorder == 1){ + $blockLineStyle = 0; + switch ($conditional->getStyle()->getBorders()->getLeft()->getBorderStyle()){ + case PHPExcel_Style_Border::BORDER_NONE : $blockLineStyle |= 0x00; break; + case PHPExcel_Style_Border::BORDER_THIN : $blockLineStyle |= 0x01; break; + case PHPExcel_Style_Border::BORDER_MEDIUM : $blockLineStyle |= 0x02; break; + case PHPExcel_Style_Border::BORDER_DASHED : $blockLineStyle |= 0x03; break; + case PHPExcel_Style_Border::BORDER_DOTTED : $blockLineStyle |= 0x04; break; + case PHPExcel_Style_Border::BORDER_THICK : $blockLineStyle |= 0x05; break; + case PHPExcel_Style_Border::BORDER_DOUBLE : $blockLineStyle |= 0x06; break; + case PHPExcel_Style_Border::BORDER_HAIR : $blockLineStyle |= 0x07; break; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHED : $blockLineStyle |= 0x08; break; + case PHPExcel_Style_Border::BORDER_DASHDOT : $blockLineStyle |= 0x09; break; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT : $blockLineStyle |= 0x0A; break; + case PHPExcel_Style_Border::BORDER_DASHDOTDOT : $blockLineStyle |= 0x0B; break; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT : $blockLineStyle |= 0x0C; break; + case PHPExcel_Style_Border::BORDER_SLANTDASHDOT : $blockLineStyle |= 0x0D; break; + } + switch ($conditional->getStyle()->getBorders()->getRight()->getBorderStyle()){ + case PHPExcel_Style_Border::BORDER_NONE : $blockLineStyle |= 0x00 << 4; break; + case PHPExcel_Style_Border::BORDER_THIN : $blockLineStyle |= 0x01 << 4; break; + case PHPExcel_Style_Border::BORDER_MEDIUM : $blockLineStyle |= 0x02 << 4; break; + case PHPExcel_Style_Border::BORDER_DASHED : $blockLineStyle |= 0x03 << 4; break; + case PHPExcel_Style_Border::BORDER_DOTTED : $blockLineStyle |= 0x04 << 4; break; + case PHPExcel_Style_Border::BORDER_THICK : $blockLineStyle |= 0x05 << 4; break; + case PHPExcel_Style_Border::BORDER_DOUBLE : $blockLineStyle |= 0x06 << 4; break; + case PHPExcel_Style_Border::BORDER_HAIR : $blockLineStyle |= 0x07 << 4; break; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHED : $blockLineStyle |= 0x08 << 4; break; + case PHPExcel_Style_Border::BORDER_DASHDOT : $blockLineStyle |= 0x09 << 4; break; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT : $blockLineStyle |= 0x0A << 4; break; + case PHPExcel_Style_Border::BORDER_DASHDOTDOT : $blockLineStyle |= 0x0B << 4; break; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT : $blockLineStyle |= 0x0C << 4; break; + case PHPExcel_Style_Border::BORDER_SLANTDASHDOT : $blockLineStyle |= 0x0D << 4; break; + } + switch ($conditional->getStyle()->getBorders()->getTop()->getBorderStyle()){ + case PHPExcel_Style_Border::BORDER_NONE : $blockLineStyle |= 0x00 << 8; break; + case PHPExcel_Style_Border::BORDER_THIN : $blockLineStyle |= 0x01 << 8; break; + case PHPExcel_Style_Border::BORDER_MEDIUM : $blockLineStyle |= 0x02 << 8; break; + case PHPExcel_Style_Border::BORDER_DASHED : $blockLineStyle |= 0x03 << 8; break; + case PHPExcel_Style_Border::BORDER_DOTTED : $blockLineStyle |= 0x04 << 8; break; + case PHPExcel_Style_Border::BORDER_THICK : $blockLineStyle |= 0x05 << 8; break; + case PHPExcel_Style_Border::BORDER_DOUBLE : $blockLineStyle |= 0x06 << 8; break; + case PHPExcel_Style_Border::BORDER_HAIR : $blockLineStyle |= 0x07 << 8; break; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHED : $blockLineStyle |= 0x08 << 8; break; + case PHPExcel_Style_Border::BORDER_DASHDOT : $blockLineStyle |= 0x09 << 8; break; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT : $blockLineStyle |= 0x0A << 8; break; + case PHPExcel_Style_Border::BORDER_DASHDOTDOT : $blockLineStyle |= 0x0B << 8; break; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT : $blockLineStyle |= 0x0C << 8; break; + case PHPExcel_Style_Border::BORDER_SLANTDASHDOT : $blockLineStyle |= 0x0D << 8; break; + } + switch ($conditional->getStyle()->getBorders()->getBottom()->getBorderStyle()){ + case PHPExcel_Style_Border::BORDER_NONE : $blockLineStyle |= 0x00 << 12; break; + case PHPExcel_Style_Border::BORDER_THIN : $blockLineStyle |= 0x01 << 12; break; + case PHPExcel_Style_Border::BORDER_MEDIUM : $blockLineStyle |= 0x02 << 12; break; + case PHPExcel_Style_Border::BORDER_DASHED : $blockLineStyle |= 0x03 << 12; break; + case PHPExcel_Style_Border::BORDER_DOTTED : $blockLineStyle |= 0x04 << 12; break; + case PHPExcel_Style_Border::BORDER_THICK : $blockLineStyle |= 0x05 << 12; break; + case PHPExcel_Style_Border::BORDER_DOUBLE : $blockLineStyle |= 0x06 << 12; break; + case PHPExcel_Style_Border::BORDER_HAIR : $blockLineStyle |= 0x07 << 12; break; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHED : $blockLineStyle |= 0x08 << 12; break; + case PHPExcel_Style_Border::BORDER_DASHDOT : $blockLineStyle |= 0x09 << 12; break; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT : $blockLineStyle |= 0x0A << 12; break; + case PHPExcel_Style_Border::BORDER_DASHDOTDOT : $blockLineStyle |= 0x0B << 12; break; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT : $blockLineStyle |= 0x0C << 12; break; + case PHPExcel_Style_Border::BORDER_SLANTDASHDOT : $blockLineStyle |= 0x0D << 12; break; + } + //@todo _writeCFRule() => $blockLineStyle => Index Color for left line + //@todo _writeCFRule() => $blockLineStyle => Index Color for right line + //@todo _writeCFRule() => $blockLineStyle => Top-left to bottom-right on/off + //@todo _writeCFRule() => $blockLineStyle => Bottom-left to top-right on/off + $blockColor = 0; + //@todo _writeCFRule() => $blockColor => Index Color for top line + //@todo _writeCFRule() => $blockColor => Index Color for bottom line + //@todo _writeCFRule() => $blockColor => Index Color for diagonal line + switch ($conditional->getStyle()->getBorders()->getDiagonal()->getBorderStyle()){ + case PHPExcel_Style_Border::BORDER_NONE : $blockColor |= 0x00 << 21; break; + case PHPExcel_Style_Border::BORDER_THIN : $blockColor |= 0x01 << 21; break; + case PHPExcel_Style_Border::BORDER_MEDIUM : $blockColor |= 0x02 << 21; break; + case PHPExcel_Style_Border::BORDER_DASHED : $blockColor |= 0x03 << 21; break; + case PHPExcel_Style_Border::BORDER_DOTTED : $blockColor |= 0x04 << 21; break; + case PHPExcel_Style_Border::BORDER_THICK : $blockColor |= 0x05 << 21; break; + case PHPExcel_Style_Border::BORDER_DOUBLE : $blockColor |= 0x06 << 21; break; + case PHPExcel_Style_Border::BORDER_HAIR : $blockColor |= 0x07 << 21; break; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHED : $blockColor |= 0x08 << 21; break; + case PHPExcel_Style_Border::BORDER_DASHDOT : $blockColor |= 0x09 << 21; break; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT : $blockColor |= 0x0A << 21; break; + case PHPExcel_Style_Border::BORDER_DASHDOTDOT : $blockColor |= 0x0B << 21; break; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT : $blockColor |= 0x0C << 21; break; + case PHPExcel_Style_Border::BORDER_SLANTDASHDOT : $blockColor |= 0x0D << 21; break; + } + $dataBlockBorder = pack('vv', $blockLineStyle, $blockColor); + } + if($bFormatFill == 1){ + // Fill Patern Style + $blockFillPatternStyle = 0; + switch ($conditional->getStyle()->getFill()->getFillType()){ + case PHPExcel_Style_Fill::FILL_NONE : $blockFillPatternStyle = 0x00; break; + case PHPExcel_Style_Fill::FILL_SOLID : $blockFillPatternStyle = 0x01; break; + case PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY : $blockFillPatternStyle = 0x02; break; + case PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY : $blockFillPatternStyle = 0x03; break; + case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY : $blockFillPatternStyle = 0x04; break; + case PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL : $blockFillPatternStyle = 0x05; break; + case PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL : $blockFillPatternStyle = 0x06; break; + case PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN : $blockFillPatternStyle = 0x07; break; + case PHPExcel_Style_Fill::FILL_PATTERN_DARKUP : $blockFillPatternStyle = 0x08; break; + case PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID : $blockFillPatternStyle = 0x09; break; + case PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS : $blockFillPatternStyle = 0x0A; break; + case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL : $blockFillPatternStyle = 0x0B; break; + case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL : $blockFillPatternStyle = 0x0C; break; + case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN : $blockFillPatternStyle = 0x0D; break; + case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP : $blockFillPatternStyle = 0x0E; break; + case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID : $blockFillPatternStyle = 0x0F; break; + case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS : $blockFillPatternStyle = 0x10; break; + case PHPExcel_Style_Fill::FILL_PATTERN_GRAY125 : $blockFillPatternStyle = 0x11; break; + case PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625 : $blockFillPatternStyle = 0x12; break; + case PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR : $blockFillPatternStyle = 0x00; break; // does not exist in BIFF8 + case PHPExcel_Style_Fill::FILL_GRADIENT_PATH : $blockFillPatternStyle = 0x00; break; // does not exist in BIFF8 + default : $blockFillPatternStyle = 0x00; break; + } + // Color + switch ($conditional->getStyle()->getFill()->getStartColor()->getRGB()) { + case '000000': $colorIdxBg = 0x08; break; + case 'FFFFFF': $colorIdxBg = 0x09; break; + case 'FF0000': $colorIdxBg = 0x0A; break; + case '00FF00': $colorIdxBg = 0x0B; break; + case '0000FF': $colorIdxBg = 0x0C; break; + case 'FFFF00': $colorIdxBg = 0x0D; break; + case 'FF00FF': $colorIdxBg = 0x0E; break; + case '00FFFF': $colorIdxBg = 0x0F; break; + case '800000': $colorIdxBg = 0x10; break; + case '008000': $colorIdxBg = 0x11; break; + case '000080': $colorIdxBg = 0x12; break; + case '808000': $colorIdxBg = 0x13; break; + case '800080': $colorIdxBg = 0x14; break; + case '008080': $colorIdxBg = 0x15; break; + case 'C0C0C0': $colorIdxBg = 0x16; break; + case '808080': $colorIdxBg = 0x17; break; + case '9999FF': $colorIdxBg = 0x18; break; + case '993366': $colorIdxBg = 0x19; break; + case 'FFFFCC': $colorIdxBg = 0x1A; break; + case 'CCFFFF': $colorIdxBg = 0x1B; break; + case '660066': $colorIdxBg = 0x1C; break; + case 'FF8080': $colorIdxBg = 0x1D; break; + case '0066CC': $colorIdxBg = 0x1E; break; + case 'CCCCFF': $colorIdxBg = 0x1F; break; + case '000080': $colorIdxBg = 0x20; break; + case 'FF00FF': $colorIdxBg = 0x21; break; + case 'FFFF00': $colorIdxBg = 0x22; break; + case '00FFFF': $colorIdxBg = 0x23; break; + case '800080': $colorIdxBg = 0x24; break; + case '800000': $colorIdxBg = 0x25; break; + case '008080': $colorIdxBg = 0x26; break; + case '0000FF': $colorIdxBg = 0x27; break; + case '00CCFF': $colorIdxBg = 0x28; break; + case 'CCFFFF': $colorIdxBg = 0x29; break; + case 'CCFFCC': $colorIdxBg = 0x2A; break; + case 'FFFF99': $colorIdxBg = 0x2B; break; + case '99CCFF': $colorIdxBg = 0x2C; break; + case 'FF99CC': $colorIdxBg = 0x2D; break; + case 'CC99FF': $colorIdxBg = 0x2E; break; + case 'FFCC99': $colorIdxBg = 0x2F; break; + case '3366FF': $colorIdxBg = 0x30; break; + case '33CCCC': $colorIdxBg = 0x31; break; + case '99CC00': $colorIdxBg = 0x32; break; + case 'FFCC00': $colorIdxBg = 0x33; break; + case 'FF9900': $colorIdxBg = 0x34; break; + case 'FF6600': $colorIdxBg = 0x35; break; + case '666699': $colorIdxBg = 0x36; break; + case '969696': $colorIdxBg = 0x37; break; + case '003366': $colorIdxBg = 0x38; break; + case '339966': $colorIdxBg = 0x39; break; + case '003300': $colorIdxBg = 0x3A; break; + case '333300': $colorIdxBg = 0x3B; break; + case '993300': $colorIdxBg = 0x3C; break; + case '993366': $colorIdxBg = 0x3D; break; + case '333399': $colorIdxBg = 0x3E; break; + case '333333': $colorIdxBg = 0x3F; break; + default: $colorIdxBg = 0x41; break; + } + // Fg Color + switch ($conditional->getStyle()->getFill()->getEndColor()->getRGB()) { + case '000000': $colorIdxFg = 0x08; break; + case 'FFFFFF': $colorIdxFg = 0x09; break; + case 'FF0000': $colorIdxFg = 0x0A; break; + case '00FF00': $colorIdxFg = 0x0B; break; + case '0000FF': $colorIdxFg = 0x0C; break; + case 'FFFF00': $colorIdxFg = 0x0D; break; + case 'FF00FF': $colorIdxFg = 0x0E; break; + case '00FFFF': $colorIdxFg = 0x0F; break; + case '800000': $colorIdxFg = 0x10; break; + case '008000': $colorIdxFg = 0x11; break; + case '000080': $colorIdxFg = 0x12; break; + case '808000': $colorIdxFg = 0x13; break; + case '800080': $colorIdxFg = 0x14; break; + case '008080': $colorIdxFg = 0x15; break; + case 'C0C0C0': $colorIdxFg = 0x16; break; + case '808080': $colorIdxFg = 0x17; break; + case '9999FF': $colorIdxFg = 0x18; break; + case '993366': $colorIdxFg = 0x19; break; + case 'FFFFCC': $colorIdxFg = 0x1A; break; + case 'CCFFFF': $colorIdxFg = 0x1B; break; + case '660066': $colorIdxFg = 0x1C; break; + case 'FF8080': $colorIdxFg = 0x1D; break; + case '0066CC': $colorIdxFg = 0x1E; break; + case 'CCCCFF': $colorIdxFg = 0x1F; break; + case '000080': $colorIdxFg = 0x20; break; + case 'FF00FF': $colorIdxFg = 0x21; break; + case 'FFFF00': $colorIdxFg = 0x22; break; + case '00FFFF': $colorIdxFg = 0x23; break; + case '800080': $colorIdxFg = 0x24; break; + case '800000': $colorIdxFg = 0x25; break; + case '008080': $colorIdxFg = 0x26; break; + case '0000FF': $colorIdxFg = 0x27; break; + case '00CCFF': $colorIdxFg = 0x28; break; + case 'CCFFFF': $colorIdxFg = 0x29; break; + case 'CCFFCC': $colorIdxFg = 0x2A; break; + case 'FFFF99': $colorIdxFg = 0x2B; break; + case '99CCFF': $colorIdxFg = 0x2C; break; + case 'FF99CC': $colorIdxFg = 0x2D; break; + case 'CC99FF': $colorIdxFg = 0x2E; break; + case 'FFCC99': $colorIdxFg = 0x2F; break; + case '3366FF': $colorIdxFg = 0x30; break; + case '33CCCC': $colorIdxFg = 0x31; break; + case '99CC00': $colorIdxFg = 0x32; break; + case 'FFCC00': $colorIdxFg = 0x33; break; + case 'FF9900': $colorIdxFg = 0x34; break; + case 'FF6600': $colorIdxFg = 0x35; break; + case '666699': $colorIdxFg = 0x36; break; + case '969696': $colorIdxFg = 0x37; break; + case '003366': $colorIdxFg = 0x38; break; + case '339966': $colorIdxFg = 0x39; break; + case '003300': $colorIdxFg = 0x3A; break; + case '333300': $colorIdxFg = 0x3B; break; + case '993300': $colorIdxFg = 0x3C; break; + case '993366': $colorIdxFg = 0x3D; break; + case '333399': $colorIdxFg = 0x3E; break; + case '333333': $colorIdxFg = 0x3F; break; + default: $colorIdxFg = 0x40; break; + } + $dataBlockFill = pack('v', $blockFillPatternStyle); + $dataBlockFill .= pack('v', $colorIdxFg | ($colorIdxBg << 7)); + } + if($bFormatProt == 1){ + $dataBlockProtection = 0; + if($conditional->getStyle()->getProtection()->getLocked() == PHPExcel_Style_Protection::PROTECTION_PROTECTED){ + $dataBlockProtection = 1; + } + if($conditional->getStyle()->getProtection()->getHidden() == PHPExcel_Style_Protection::PROTECTION_PROTECTED){ + $dataBlockProtection = 1 << 1; + } + } + + $data = pack('CCvvVv', $type, $operatorType, $szValue1, $szValue2, $flags, 0x0000); + if($bFormatFont == 1){ // Block Formatting : OK + $data .= $dataBlockFont; + } + if($bFormatAlign == 1){ + $data .= $dataBlockAlign; + } + if($bFormatBorder == 1){ + $data .= $dataBlockBorder; + } + if($bFormatFill == 1){ // Block Formatting : OK + $data .= $dataBlockFill; + } + if($bFormatProt == 1){ + $data .= $dataBlockProtection; + } + if(!is_null($operand1)){ + $data .= $operand1; + } + if(!is_null($operand2)){ + $data .= $operand2; + } + $header = pack('vv', $record, strlen($data)); + $this->_append($header . $data); + } + + /** + * Write CFHeader record + */ + private function _writeCFHeader(){ + $record = 0x01B0; // Record identifier + $length = 0x0016; // Bytes to follow + + $numColumnMin = null; + $numColumnMax = null; + $numRowMin = null; + $numRowMax = null; + $arrConditional = array(); + foreach ($this->_phpSheet->getConditionalStylesCollection() as $cellCoordinate => $conditionalStyles) { + foreach ($conditionalStyles as $conditional) { + if($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION + || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS){ + if(!in_array($conditional->getHashCode(), $arrConditional)){ + $arrConditional[] = $conditional->getHashCode(); + } + // Cells + $arrCoord = PHPExcel_Cell::coordinateFromString($cellCoordinate); + if(!is_numeric($arrCoord[0])){ + $arrCoord[0] = PHPExcel_Cell::columnIndexFromString($arrCoord[0]); + } + if(is_null($numColumnMin) || ($numColumnMin > $arrCoord[0])){ + $numColumnMin = $arrCoord[0]; + } + if(is_null($numColumnMax) || ($numColumnMax < $arrCoord[0])){ + $numColumnMax = $arrCoord[0]; + } + if(is_null($numRowMin) || ($numRowMin > $arrCoord[1])){ + $numRowMin = $arrCoord[1]; + } + if(is_null($numRowMax) || ($numRowMax < $arrCoord[1])){ + $numRowMax = $arrCoord[1]; + } + } + } + } + $needRedraw = 1; + $cellRange = pack('vvvv', $numRowMin-1, $numRowMax-1, $numColumnMin-1, $numColumnMax-1); + + $header = pack('vv', $record, $length); + $data = pack('vv', count($arrConditional), $needRedraw); + $data .= $cellRange; + $data .= pack('v', 0x0001); + $data .= $cellRange; + $this->_append($header . $data); + } +} \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Writer/Excel5/Xf.php b/admin/helpers/PHPExcel/Writer/Excel5/Xf.php new file mode 100644 index 00000000..99f1b2a0 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel5/Xf.php @@ -0,0 +1,547 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + +// Original file header of PEAR::Spreadsheet_Excel_Writer_Format (used as the base for this class): +// ----------------------------------------------------------------------------------------- +// /* +// * Module written/ported by Xavier Noguer <xnoguer@rezebra.com> +// * +// * The majority of this is _NOT_ my code. I simply ported it from the +// * PERL Spreadsheet::WriteExcel module. +// * +// * The author of the Spreadsheet::WriteExcel module is John McNamara +// * <jmcnamara@cpan.org> +// * +// * I _DO_ maintain this code, and John McNamara has nothing to do with the +// * porting of this code to PHP. Any questions directly related to this +// * class library should be directed to me. +// * +// * License Information: +// * +// * Spreadsheet_Excel_Writer: A library for generating Excel Spreadsheets +// * Copyright (c) 2002-2003 Xavier Noguer xnoguer@rezebra.com +// * +// * This library is free software; you can redistribute it and/or +// * modify it under the terms of the GNU Lesser General Public +// * License as published by the Free Software Foundation; either +// * version 2.1 of the License, or (at your option) any later version. +// * +// * This library 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 +// * Lesser General Public License for more details. +// * +// * You should have received a copy of the GNU Lesser General Public +// * License along with this library; if not, write to the Free Software +// * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// */ + + +/** + * PHPExcel_Writer_Excel5_Xf + * + * @category PHPExcel + * @package PHPExcel_Writer_Excel5 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Excel5_Xf +{ + /** + * Style XF or a cell XF ? + * + * @var boolean + */ + private $_isStyleXf; + + /** + * Index to the FONT record. Index 4 does not exist + * @var integer + */ + private $_fontIndex; + + /** + * An index (2 bytes) to a FORMAT record (number format). + * @var integer + */ + public $_numberFormatIndex; + + /** + * 1 bit, apparently not used. + * @var integer + */ + public $_text_justlast; + + /** + * The cell's foreground color. + * @var integer + */ + public $_fg_color; + + /** + * The cell's background color. + * @var integer + */ + public $_bg_color; + + /** + * Color of the bottom border of the cell. + * @var integer + */ + public $_bottom_color; + + /** + * Color of the top border of the cell. + * @var integer + */ + public $_top_color; + + /** + * Color of the left border of the cell. + * @var integer + */ + public $_left_color; + + /** + * Color of the right border of the cell. + * @var integer + */ + public $_right_color; + + /** + * Constructor + * + * @access public + * @param PHPExcel_Style The XF format + */ + public function __construct(PHPExcel_Style $style = null) + { + $this->_isStyleXf = false; + $this->_fontIndex = 0; + + $this->_numberFormatIndex = 0; + + $this->_text_justlast = 0; + + $this->_fg_color = 0x40; + $this->_bg_color = 0x41; + + $this->_diag = 0; + + $this->_bottom_color = 0x40; + $this->_top_color = 0x40; + $this->_left_color = 0x40; + $this->_right_color = 0x40; + $this->_diag_color = 0x40; + $this->_style = $style; + + } + + + /** + * Generate an Excel BIFF XF record (style or cell). + * + * @return string The XF record + */ + function writeXf() + { + // Set the type of the XF record and some of the attributes. + if ($this->_isStyleXf) { + $style = 0xFFF5; + } else { + $style = self::_mapLocked($this->_style->getProtection()->getLocked()); + $style |= self::_mapHidden($this->_style->getProtection()->getHidden()) << 1; + } + + // Flags to indicate if attributes have been set. + $atr_num = ($this->_numberFormatIndex != 0)?1:0; + $atr_fnt = ($this->_fontIndex != 0)?1:0; + $atr_alc = ((int) $this->_style->getAlignment()->getWrapText()) ? 1 : 0; + $atr_bdr = (self::_mapBorderStyle($this->_style->getBorders()->getBottom()->getBorderStyle()) || + self::_mapBorderStyle($this->_style->getBorders()->getTop()->getBorderStyle()) || + self::_mapBorderStyle($this->_style->getBorders()->getLeft()->getBorderStyle()) || + self::_mapBorderStyle($this->_style->getBorders()->getRight()->getBorderStyle()))?1:0; + $atr_pat = (($this->_fg_color != 0x40) || + ($this->_bg_color != 0x41) || + self::_mapFillType($this->_style->getFill()->getFillType()))?1:0; + $atr_prot = self::_mapLocked($this->_style->getProtection()->getLocked()) + | self::_mapHidden($this->_style->getProtection()->getHidden()); + + // Zero the default border colour if the border has not been set. + if (self::_mapBorderStyle($this->_style->getBorders()->getBottom()->getBorderStyle()) == 0) { + $this->_bottom_color = 0; + } + if (self::_mapBorderStyle($this->_style->getBorders()->getTop()->getBorderStyle()) == 0) { + $this->_top_color = 0; + } + if (self::_mapBorderStyle($this->_style->getBorders()->getRight()->getBorderStyle()) == 0) { + $this->_right_color = 0; + } + if (self::_mapBorderStyle($this->_style->getBorders()->getLeft()->getBorderStyle()) == 0) { + $this->_left_color = 0; + } + if (self::_mapBorderStyle($this->_style->getBorders()->getDiagonal()->getBorderStyle()) == 0) { + $this->_diag_color = 0; + } + + $record = 0x00E0; // Record identifier + $length = 0x0014; // Number of bytes to follow + + $ifnt = $this->_fontIndex; // Index to FONT record + $ifmt = $this->_numberFormatIndex; // Index to FORMAT record + + $align = $this->_mapHAlign($this->_style->getAlignment()->getHorizontal()); // Alignment + $align |= (int) $this->_style->getAlignment()->getWrapText() << 3; + $align |= self::_mapVAlign($this->_style->getAlignment()->getVertical()) << 4; + $align |= $this->_text_justlast << 7; + + $used_attrib = $atr_num << 2; + $used_attrib |= $atr_fnt << 3; + $used_attrib |= $atr_alc << 4; + $used_attrib |= $atr_bdr << 5; + $used_attrib |= $atr_pat << 6; + $used_attrib |= $atr_prot << 7; + + $icv = $this->_fg_color; // fg and bg pattern colors + $icv |= $this->_bg_color << 7; + + $border1 = self::_mapBorderStyle($this->_style->getBorders()->getLeft()->getBorderStyle()); // Border line style and color + $border1 |= self::_mapBorderStyle($this->_style->getBorders()->getRight()->getBorderStyle()) << 4; + $border1 |= self::_mapBorderStyle($this->_style->getBorders()->getTop()->getBorderStyle()) << 8; + $border1 |= self::_mapBorderStyle($this->_style->getBorders()->getBottom()->getBorderStyle()) << 12; + $border1 |= $this->_left_color << 16; + $border1 |= $this->_right_color << 23; + + $diagonalDirection = $this->_style->getBorders()->getDiagonalDirection(); + $diag_tl_to_rb = $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_BOTH + || $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_DOWN; + $diag_tr_to_lb = $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_BOTH + || $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_UP; + $border1 |= $diag_tl_to_rb << 30; + $border1 |= $diag_tr_to_lb << 31; + + $border2 = $this->_top_color; // Border color + $border2 |= $this->_bottom_color << 7; + $border2 |= $this->_diag_color << 14; + $border2 |= self::_mapBorderStyle($this->_style->getBorders()->getDiagonal()->getBorderStyle()) << 21; + $border2 |= self::_mapFillType($this->_style->getFill()->getFillType()) << 26; + + $header = pack("vv", $record, $length); + + //BIFF8 options: identation, shrinkToFit and text direction + $biff8_options = $this->_style->getAlignment()->getIndent(); + $biff8_options |= (int) $this->_style->getAlignment()->getShrinkToFit() << 4; + + $data = pack("vvvC", $ifnt, $ifmt, $style, $align); + $data .= pack("CCC" + , self::_mapTextRotation($this->_style->getAlignment()->getTextRotation()) + , $biff8_options + , $used_attrib + ); + $data .= pack("VVv", $border1, $border2, $icv); + + return($header . $data); + } + + /** + * Is this a style XF ? + * + * @param boolean $value + */ + public function setIsStyleXf($value) + { + $this->_isStyleXf = $value; + } + + /** + * Sets the cell's bottom border color + * + * @access public + * @param int $colorIndex Color index + */ + function setBottomColor($colorIndex) + { + $this->_bottom_color = $colorIndex; + } + + /** + * Sets the cell's top border color + * + * @access public + * @param int $colorIndex Color index + */ + function setTopColor($colorIndex) + { + $this->_top_color = $colorIndex; + } + + /** + * Sets the cell's left border color + * + * @access public + * @param int $colorIndex Color index + */ + function setLeftColor($colorIndex) + { + $this->_left_color = $colorIndex; + } + + /** + * Sets the cell's right border color + * + * @access public + * @param int $colorIndex Color index + */ + function setRightColor($colorIndex) + { + $this->_right_color = $colorIndex; + } + + /** + * Sets the cell's diagonal border color + * + * @access public + * @param int $colorIndex Color index + */ + function setDiagColor($colorIndex) + { + $this->_diag_color = $colorIndex; + } + + + /** + * Sets the cell's foreground color + * + * @access public + * @param int $colorIndex Color index + */ + function setFgColor($colorIndex) + { + $this->_fg_color = $colorIndex; + } + + /** + * Sets the cell's background color + * + * @access public + * @param int $colorIndex Color index + */ + function setBgColor($colorIndex) + { + $this->_bg_color = $colorIndex; + } + + /** + * Sets the index to the number format record + * It can be date, time, currency, etc... + * + * @access public + * @param integer $numberFormatIndex Index to format record + */ + function setNumberFormatIndex($numberFormatIndex) + { + $this->_numberFormatIndex = $numberFormatIndex; + } + + /** + * Set the font index. + * + * @param int $value Font index, note that value 4 does not exist + */ + public function setFontIndex($value) + { + $this->_fontIndex = $value; + } + + /** + * Map of BIFF2-BIFF8 codes for border styles + * @static array of int + * + */ + private static $_mapBorderStyle = array ( PHPExcel_Style_Border::BORDER_NONE => 0x00, + PHPExcel_Style_Border::BORDER_THIN => 0x01, + PHPExcel_Style_Border::BORDER_MEDIUM => 0x02, + PHPExcel_Style_Border::BORDER_DASHED => 0x03, + PHPExcel_Style_Border::BORDER_DOTTED => 0x04, + PHPExcel_Style_Border::BORDER_THICK => 0x05, + PHPExcel_Style_Border::BORDER_DOUBLE => 0x06, + PHPExcel_Style_Border::BORDER_HAIR => 0x07, + PHPExcel_Style_Border::BORDER_MEDIUMDASHED => 0x08, + PHPExcel_Style_Border::BORDER_DASHDOT => 0x09, + PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT => 0x0A, + PHPExcel_Style_Border::BORDER_DASHDOTDOT => 0x0B, + PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT => 0x0C, + PHPExcel_Style_Border::BORDER_SLANTDASHDOT => 0x0D, + ); + + /** + * Map border style + * + * @param string $borderStyle + * @return int + */ + private static function _mapBorderStyle($borderStyle) { + if (isset(self::$_mapBorderStyle[$borderStyle])) + return self::$_mapBorderStyle[$borderStyle]; + return 0x00; + } + + /** + * Map of BIFF2-BIFF8 codes for fill types + * @static array of int + * + */ + private static $_mapFillType = array( PHPExcel_Style_Fill::FILL_NONE => 0x00, + PHPExcel_Style_Fill::FILL_SOLID => 0x01, + PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY => 0x02, + PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY => 0x03, + PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY => 0x04, + PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL => 0x05, + PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL => 0x06, + PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN => 0x07, + PHPExcel_Style_Fill::FILL_PATTERN_DARKUP => 0x08, + PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID => 0x09, + PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS => 0x0A, + PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL => 0x0B, + PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL => 0x0C, + PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN => 0x0D, + PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP => 0x0E, + PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID => 0x0F, + PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS => 0x10, + PHPExcel_Style_Fill::FILL_PATTERN_GRAY125 => 0x11, + PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625 => 0x12, + PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR => 0x00, // does not exist in BIFF8 + PHPExcel_Style_Fill::FILL_GRADIENT_PATH => 0x00, // does not exist in BIFF8 + ); + /** + * Map fill type + * + * @param string $fillType + * @return int + */ + private static function _mapFillType($fillType) { + if (isset(self::$_mapFillType[$fillType])) + return self::$_mapFillType[$fillType]; + return 0x00; + } + + /** + * Map of BIFF2-BIFF8 codes for horizontal alignment + * @static array of int + * + */ + private static $_mapHAlign = array( PHPExcel_Style_Alignment::HORIZONTAL_GENERAL => 0, + PHPExcel_Style_Alignment::HORIZONTAL_LEFT => 1, + PHPExcel_Style_Alignment::HORIZONTAL_CENTER => 2, + PHPExcel_Style_Alignment::HORIZONTAL_RIGHT => 3, + PHPExcel_Style_Alignment::HORIZONTAL_FILL => 4, + PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY => 5, + PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS => 6, + ); + /** + * Map to BIFF2-BIFF8 codes for horizontal alignment + * + * @param string $hAlign + * @return int + */ + private function _mapHAlign($hAlign) + { + if (isset(self::$_mapHAlign[$hAlign])) + return self::$_mapHAlign[$hAlign]; + return 0; + } + + /** + * Map of BIFF2-BIFF8 codes for vertical alignment + * @static array of int + * + */ + private static $_mapVAlign = array( PHPExcel_Style_Alignment::VERTICAL_TOP => 0, + PHPExcel_Style_Alignment::VERTICAL_CENTER => 1, + PHPExcel_Style_Alignment::VERTICAL_BOTTOM => 2, + PHPExcel_Style_Alignment::VERTICAL_JUSTIFY => 3, + ); + /** + * Map to BIFF2-BIFF8 codes for vertical alignment + * + * @param string $vAlign + * @return int + */ + private static function _mapVAlign($vAlign) { + if (isset(self::$_mapVAlign[$vAlign])) + return self::$_mapVAlign[$vAlign]; + return 2; + } + + /** + * Map to BIFF8 codes for text rotation angle + * + * @param int $textRotation + * @return int + */ + private static function _mapTextRotation($textRotation) { + if ($textRotation >= 0) { + return $textRotation; + } + if ($textRotation == -165) { + return 255; + } + if ($textRotation < 0) { + return 90 - $textRotation; + } + } + + /** + * Map locked + * + * @param string + * @return int + */ + private static function _mapLocked($locked) { + switch ($locked) { + case PHPExcel_Style_Protection::PROTECTION_INHERIT: return 1; + case PHPExcel_Style_Protection::PROTECTION_PROTECTED: return 1; + case PHPExcel_Style_Protection::PROTECTION_UNPROTECTED: return 0; + default: return 1; + } + } + + /** + * Map hidden + * + * @param string + * @return int + */ + private static function _mapHidden($hidden) { + switch ($hidden) { + case PHPExcel_Style_Protection::PROTECTION_INHERIT: return 0; + case PHPExcel_Style_Protection::PROTECTION_PROTECTED: return 1; + case PHPExcel_Style_Protection::PROTECTION_UNPROTECTED: return 0; + default: return 0; + } + } + +} diff --git a/admin/helpers/PHPExcel/Writer/Excel5/index.html b/admin/helpers/PHPExcel/Writer/Excel5/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Excel5/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Writer/Exception.php b/admin/helpers/PHPExcel/Writer/Exception.php new file mode 100644 index 00000000..1715587a --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/Exception.php @@ -0,0 +1,52 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_Exception + * + * @category PHPExcel + * @package PHPExcel_Writer + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_Exception extends PHPExcel_Exception { + /** + * Error handler callback + * + * @param mixed $code + * @param mixed $string + * @param mixed $file + * @param mixed $line + * @param mixed $context + */ + public static function errorHandlerCallback($code, $string, $file, $line, $context) { + $e = new self($string, $code); + $e->line = $line; + $e->file = $file; + throw $e; + } +} diff --git a/admin/helpers/PHPExcel/Writer/HTML.php b/admin/helpers/PHPExcel/Writer/HTML.php new file mode 100644 index 00000000..63c5d478 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/HTML.php @@ -0,0 +1,1548 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_HTML + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_HTML + * + * @category PHPExcel + * @package PHPExcel_Writer_HTML + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_HTML extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter { + /** + * PHPExcel object + * + * @var PHPExcel + */ + protected $_phpExcel; + + /** + * Sheet index to write + * + * @var int + */ + private $_sheetIndex = 0; + + /** + * Images root + * + * @var string + */ + private $_imagesRoot = '.'; + + /** + * embed images, or link to images + * + * @var boolean + */ + private $_embedImages = FALSE; + + /** + * Use inline CSS? + * + * @var boolean + */ + private $_useInlineCss = false; + + /** + * Array of CSS styles + * + * @var array + */ + private $_cssStyles = null; + + /** + * Array of column widths in points + * + * @var array + */ + private $_columnWidths = null; + + /** + * Default font + * + * @var PHPExcel_Style_Font + */ + private $_defaultFont; + + /** + * Flag whether spans have been calculated + * + * @var boolean + */ + private $_spansAreCalculated = false; + + /** + * Excel cells that should not be written as HTML cells + * + * @var array + */ + private $_isSpannedCell = array(); + + /** + * Excel cells that are upper-left corner in a cell merge + * + * @var array + */ + private $_isBaseCell = array(); + + /** + * Excel rows that should not be written as HTML rows + * + * @var array + */ + private $_isSpannedRow = array(); + + /** + * Is the current writer creating PDF? + * + * @var boolean + */ + protected $_isPdf = false; + + /** + * Generate the Navigation block + * + * @var boolean + */ + private $_generateSheetNavigationBlock = true; + + /** + * Create a new PHPExcel_Writer_HTML + * + * @param PHPExcel $phpExcel PHPExcel object + */ + public function __construct(PHPExcel $phpExcel) { + $this->_phpExcel = $phpExcel; + $this->_defaultFont = $this->_phpExcel->getDefaultStyle()->getFont(); + } + + /** + * Save PHPExcel to file + * + * @param string $pFilename + * @throws PHPExcel_Writer_Exception + */ + public function save($pFilename = null) { + // garbage collect + $this->_phpExcel->garbageCollect(); + + $saveDebugLog = PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->getWriteDebugLog(); + PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->setWriteDebugLog(FALSE); + $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType(); + PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE); + + // Build CSS + $this->buildCSS(!$this->_useInlineCss); + + // Open file + $fileHandle = fopen($pFilename, 'wb+'); + if ($fileHandle === false) { + throw new PHPExcel_Writer_Exception("Could not open file $pFilename for writing."); + } + + // Write headers + fwrite($fileHandle, $this->generateHTMLHeader(!$this->_useInlineCss)); + + // Write navigation (tabs) + if ((!$this->_isPdf) && ($this->_generateSheetNavigationBlock)) { + fwrite($fileHandle, $this->generateNavigation()); + } + + // Write data + fwrite($fileHandle, $this->generateSheetData()); + + // Write footer + fwrite($fileHandle, $this->generateHTMLFooter()); + + // Close file + fclose($fileHandle); + + PHPExcel_Calculation::setArrayReturnType($saveArrayReturnType); + PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog); + } + + /** + * Map VAlign + * + * @param string $vAlign Vertical alignment + * @return string + */ + private function _mapVAlign($vAlign) { + switch ($vAlign) { + case PHPExcel_Style_Alignment::VERTICAL_BOTTOM: return 'bottom'; + case PHPExcel_Style_Alignment::VERTICAL_TOP: return 'top'; + case PHPExcel_Style_Alignment::VERTICAL_CENTER: + case PHPExcel_Style_Alignment::VERTICAL_JUSTIFY: return 'middle'; + default: return 'baseline'; + } + } + + /** + * Map HAlign + * + * @param string $hAlign Horizontal alignment + * @return string|false + */ + private function _mapHAlign($hAlign) { + switch ($hAlign) { + case PHPExcel_Style_Alignment::HORIZONTAL_GENERAL: return false; + case PHPExcel_Style_Alignment::HORIZONTAL_LEFT: return 'left'; + case PHPExcel_Style_Alignment::HORIZONTAL_RIGHT: return 'right'; + case PHPExcel_Style_Alignment::HORIZONTAL_CENTER: + case PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS: return 'center'; + case PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY: return 'justify'; + default: return false; + } + } + + /** + * Map border style + * + * @param int $borderStyle Sheet index + * @return string + */ + private function _mapBorderStyle($borderStyle) { + switch ($borderStyle) { + case PHPExcel_Style_Border::BORDER_NONE: return 'none'; + case PHPExcel_Style_Border::BORDER_DASHDOT: return '1px dashed'; + case PHPExcel_Style_Border::BORDER_DASHDOTDOT: return '1px dotted'; + case PHPExcel_Style_Border::BORDER_DASHED: return '1px dashed'; + case PHPExcel_Style_Border::BORDER_DOTTED: return '1px dotted'; + case PHPExcel_Style_Border::BORDER_DOUBLE: return '3px double'; + case PHPExcel_Style_Border::BORDER_HAIR: return '1px solid'; + case PHPExcel_Style_Border::BORDER_MEDIUM: return '2px solid'; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT: return '2px dashed'; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT: return '2px dotted'; + case PHPExcel_Style_Border::BORDER_MEDIUMDASHED: return '2px dashed'; + case PHPExcel_Style_Border::BORDER_SLANTDASHDOT: return '2px dashed'; + case PHPExcel_Style_Border::BORDER_THICK: return '3px solid'; + case PHPExcel_Style_Border::BORDER_THIN: return '1px solid'; + default: return '1px solid'; // map others to thin + } + } + + /** + * Get sheet index + * + * @return int + */ + public function getSheetIndex() { + return $this->_sheetIndex; + } + + /** + * Set sheet index + * + * @param int $pValue Sheet index + * @return PHPExcel_Writer_HTML + */ + public function setSheetIndex($pValue = 0) { + $this->_sheetIndex = $pValue; + return $this; + } + + /** + * Get sheet index + * + * @return boolean + */ + public function getGenerateSheetNavigationBlock() { + return $this->_generateSheetNavigationBlock; + } + + /** + * Set sheet index + * + * @param boolean $pValue Flag indicating whether the sheet navigation block should be generated or not + * @return PHPExcel_Writer_HTML + */ + public function setGenerateSheetNavigationBlock($pValue = true) { + $this->_generateSheetNavigationBlock = (bool) $pValue; + return $this; + } + + /** + * Write all sheets (resets sheetIndex to NULL) + */ + public function writeAllSheets() { + $this->_sheetIndex = null; + return $this; + } + + /** + * Generate HTML header + * + * @param boolean $pIncludeStyles Include styles? + * @return string + * @throws PHPExcel_Writer_Exception + */ + public function generateHTMLHeader($pIncludeStyles = false) { + // PHPExcel object known? + if (is_null($this->_phpExcel)) { + throw new PHPExcel_Writer_Exception('Internal PHPExcel object not set to an instance of an object.'); + } + + // Construct HTML + $properties = $this->_phpExcel->getProperties(); + $html = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">' . PHP_EOL; + $html .= '<!-- Generated by PHPExcel - http://www.phpexcel.net -->' . PHP_EOL; + $html .= '<html>' . PHP_EOL; + $html .= ' <head>' . PHP_EOL; + $html .= ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8">' . PHP_EOL; + if ($properties->getTitle() > '') + $html .= ' <title>' . htmlspecialchars($properties->getTitle()) . '</title>' . PHP_EOL; + + if ($properties->getCreator() > '') + $html .= ' <meta name="author" content="' . htmlspecialchars($properties->getCreator()) . '" />' . PHP_EOL; + if ($properties->getTitle() > '') + $html .= ' <meta name="title" content="' . htmlspecialchars($properties->getTitle()) . '" />' . PHP_EOL; + if ($properties->getDescription() > '') + $html .= ' <meta name="description" content="' . htmlspecialchars($properties->getDescription()) . '" />' . PHP_EOL; + if ($properties->getSubject() > '') + $html .= ' <meta name="subject" content="' . htmlspecialchars($properties->getSubject()) . '" />' . PHP_EOL; + if ($properties->getKeywords() > '') + $html .= ' <meta name="keywords" content="' . htmlspecialchars($properties->getKeywords()) . '" />' . PHP_EOL; + if ($properties->getCategory() > '') + $html .= ' <meta name="category" content="' . htmlspecialchars($properties->getCategory()) . '" />' . PHP_EOL; + if ($properties->getCompany() > '') + $html .= ' <meta name="company" content="' . htmlspecialchars($properties->getCompany()) . '" />' . PHP_EOL; + if ($properties->getManager() > '') + $html .= ' <meta name="manager" content="' . htmlspecialchars($properties->getManager()) . '" />' . PHP_EOL; + + if ($pIncludeStyles) { + $html .= $this->generateStyles(true); + } + + $html .= ' </head>' . PHP_EOL; + $html .= '' . PHP_EOL; + $html .= ' <body>' . PHP_EOL; + + // Return + return $html; + } + + /** + * Generate sheet data + * + * @return string + * @throws PHPExcel_Writer_Exception + */ + public function generateSheetData() { + // PHPExcel object known? + if (is_null($this->_phpExcel)) { + throw new PHPExcel_Writer_Exception('Internal PHPExcel object not set to an instance of an object.'); + } + + // Ensure that Spans have been calculated? + if (!$this->_spansAreCalculated) { + $this->_calculateSpans(); + } + + // Fetch sheets + $sheets = array(); + if (is_null($this->_sheetIndex)) { + $sheets = $this->_phpExcel->getAllSheets(); + } else { + $sheets[] = $this->_phpExcel->getSheet($this->_sheetIndex); + } + + // Construct HTML + $html = ''; + + // Loop all sheets + $sheetId = 0; + foreach ($sheets as $sheet) { + // Write table header + $html .= $this->_generateTableHeader($sheet); + + // Get worksheet dimension + $dimension = explode(':', $sheet->calculateWorksheetDimension()); + $dimension[0] = PHPExcel_Cell::coordinateFromString($dimension[0]); + $dimension[0][0] = PHPExcel_Cell::columnIndexFromString($dimension[0][0]) - 1; + $dimension[1] = PHPExcel_Cell::coordinateFromString($dimension[1]); + $dimension[1][0] = PHPExcel_Cell::columnIndexFromString($dimension[1][0]) - 1; + + // row min,max + $rowMin = $dimension[0][1]; + $rowMax = $dimension[1][1]; + + // calculate start of <tbody>, <thead> + $tbodyStart = $rowMin; + $theadStart = $theadEnd = 0; // default: no <thead> no </thead> + if ($sheet->getPageSetup()->isRowsToRepeatAtTopSet()) { + $rowsToRepeatAtTop = $sheet->getPageSetup()->getRowsToRepeatAtTop(); + + // we can only support repeating rows that start at top row + if ($rowsToRepeatAtTop[0] == 1) { + $theadStart = $rowsToRepeatAtTop[0]; + $theadEnd = $rowsToRepeatAtTop[1]; + $tbodyStart = $rowsToRepeatAtTop[1] + 1; + } + } + + // Loop through cells + $row = $rowMin-1; + while($row++ < $rowMax) { + // <thead> ? + if ($row == $theadStart) { + $html .= ' <thead>' . PHP_EOL; + $cellType = 'th'; + } + + // <tbody> ? + if ($row == $tbodyStart) { + $html .= ' <tbody>' . PHP_EOL; + $cellType = 'td'; + } + + // Write row if there are HTML table cells in it + if ( !isset($this->_isSpannedRow[$sheet->getParent()->getIndex($sheet)][$row]) ) { + // Start a new rowData + $rowData = array(); + // Loop through columns + $column = $dimension[0][0] - 1; + while($column++ < $dimension[1][0]) { + // Cell exists? + if ($sheet->cellExistsByColumnAndRow($column, $row)) { + $rowData[$column] = PHPExcel_Cell::stringFromColumnIndex($column) . $row; + } else { + $rowData[$column] = ''; + } + } + $html .= $this->_generateRow($sheet, $rowData, $row - 1, $cellType); + } + + // </thead> ? + if ($row == $theadEnd) { + $html .= ' </thead>' . PHP_EOL; + } + } + $html .= $this->_extendRowsForChartsAndImages($sheet, $row); + + // Close table body. + $html .= ' </tbody>' . PHP_EOL; + + // Write table footer + $html .= $this->_generateTableFooter(); + + // Writing PDF? + if ($this->_isPdf) { + if (is_null($this->_sheetIndex) && $sheetId + 1 < $this->_phpExcel->getSheetCount()) { + $html .= '<div style="page-break-before:always" />'; + } + } + + // Next sheet + ++$sheetId; + } + + // Return + return $html; + } + + /** + * Generate sheet tabs + * + * @return string + * @throws PHPExcel_Writer_Exception + */ + public function generateNavigation() + { + // PHPExcel object known? + if (is_null($this->_phpExcel)) { + throw new PHPExcel_Writer_Exception('Internal PHPExcel object not set to an instance of an object.'); + } + + // Fetch sheets + $sheets = array(); + if (is_null($this->_sheetIndex)) { + $sheets = $this->_phpExcel->getAllSheets(); + } else { + $sheets[] = $this->_phpExcel->getSheet($this->_sheetIndex); + } + + // Construct HTML + $html = ''; + + // Only if there are more than 1 sheets + if (count($sheets) > 1) { + // Loop all sheets + $sheetId = 0; + + $html .= '<ul class="navigation">' . PHP_EOL; + + foreach ($sheets as $sheet) { + $html .= ' <li class="sheet' . $sheetId . '"><a href="#sheet' . $sheetId . '">' . $sheet->getTitle() . '</a></li>' . PHP_EOL; + ++$sheetId; + } + + $html .= '</ul>' . PHP_EOL; + } + + return $html; + } + + private function _extendRowsForChartsAndImages(PHPExcel_Worksheet $pSheet, $row) { + $rowMax = $row; + $colMax = 'A'; + if ($this->_includeCharts) { + foreach ($pSheet->getChartCollection() as $chart) { + if ($chart instanceof PHPExcel_Chart) { + $chartCoordinates = $chart->getTopLeftPosition(); + $chartTL = PHPExcel_Cell::coordinateFromString($chartCoordinates['cell']); + $chartCol = PHPExcel_Cell::columnIndexFromString($chartTL[0]); + if ($chartTL[1] > $rowMax) { + $rowMax = $chartTL[1]; + if ($chartCol > PHPExcel_Cell::columnIndexFromString($colMax)) { + $colMax = $chartTL[0]; + } + } + } + } + } + + foreach ($pSheet->getDrawingCollection() as $drawing) { + if ($drawing instanceof PHPExcel_Worksheet_Drawing) { + $imageTL = PHPExcel_Cell::coordinateFromString($drawing->getCoordinates()); + $imageCol = PHPExcel_Cell::columnIndexFromString($imageTL[0]); + if ($imageTL[1] > $rowMax) { + $rowMax = $imageTL[1]; + if ($imageCol > PHPExcel_Cell::columnIndexFromString($colMax)) { + $colMax = $imageTL[0]; + } + } + } + } + $html = ''; + $colMax++; + while ($row < $rowMax) { + $html .= '<tr>'; + for ($col = 'A'; $col != $colMax; ++$col) { + $html .= '<td>'; + $html .= $this->_writeImageInCell($pSheet, $col.$row); + if ($this->_includeCharts) { + $html .= $this->_writeChartInCell($pSheet, $col.$row); + } + $html .= '</td>'; + } + ++$row; + $html .= '</tr>'; + } + return $html; + } + + + /** + * Generate image tag in cell + * + * @param PHPExcel_Worksheet $pSheet PHPExcel_Worksheet + * @param string $coordinates Cell coordinates + * @return string + * @throws PHPExcel_Writer_Exception + */ + private function _writeImageInCell(PHPExcel_Worksheet $pSheet, $coordinates) { + // Construct HTML + $html = ''; + + // Write images + foreach ($pSheet->getDrawingCollection() as $drawing) { + if ($drawing instanceof PHPExcel_Worksheet_Drawing) { + if ($drawing->getCoordinates() == $coordinates) { + $filename = $drawing->getPath(); + + // Strip off eventual '.' + if (substr($filename, 0, 1) == '.') { + $filename = substr($filename, 1); + } + + // Prepend images root + $filename = $this->getImagesRoot() . $filename; + + // Strip off eventual '.' + if (substr($filename, 0, 1) == '.' && substr($filename, 0, 2) != './') { + $filename = substr($filename, 1); + } + + // Convert UTF8 data to PCDATA + $filename = htmlspecialchars($filename); + + $html .= PHP_EOL; + if ((!$this->_embedImages) || ($this->_isPdf)) { + $imageData = $filename; + } else { + $imageDetails = getimagesize($filename); + if ($fp = fopen($filename,"rb", 0)) { + $picture = fread($fp,filesize($filename)); + fclose($fp); + // base64 encode the binary data, then break it + // into chunks according to RFC 2045 semantics + $base64 = chunk_split(base64_encode($picture)); + $imageData = 'data:'.$imageDetails['mime'].';base64,' . $base64; + } else { + $imageData = $filename; + } + } + + $html .= '<div style="position: relative;">'; + $html .= '<img style="position: absolute; z-index: 1; left: ' . + $drawing->getOffsetX() . 'px; top: ' . $drawing->getOffsetY() . 'px; width: ' . + $drawing->getWidth() . 'px; height: ' . $drawing->getHeight() . 'px;" src="' . + $imageData . '" border="0" />'; + $html .= '</div>'; + } + } + } + + // Return + return $html; + } + + /** + * Generate chart tag in cell + * + * @param PHPExcel_Worksheet $pSheet PHPExcel_Worksheet + * @param string $coordinates Cell coordinates + * @return string + * @throws PHPExcel_Writer_Exception + */ + private function _writeChartInCell(PHPExcel_Worksheet $pSheet, $coordinates) { + // Construct HTML + $html = ''; + + // Write charts + foreach ($pSheet->getChartCollection() as $chart) { + if ($chart instanceof PHPExcel_Chart) { + $chartCoordinates = $chart->getTopLeftPosition(); + if ($chartCoordinates['cell'] == $coordinates) { + $chartFileName = PHPExcel_Shared_File::sys_get_temp_dir().'/'.uniqid().'.png'; + if (!$chart->render($chartFileName)) { + return; + } + + $html .= PHP_EOL; + $imageDetails = getimagesize($chartFileName); + if ($fp = fopen($chartFileName,"rb", 0)) { + $picture = fread($fp,filesize($chartFileName)); + fclose($fp); + // base64 encode the binary data, then break it + // into chunks according to RFC 2045 semantics + $base64 = chunk_split(base64_encode($picture)); + $imageData = 'data:'.$imageDetails['mime'].';base64,' . $base64; + + $html .= '<div style="position: relative;">'; + $html .= '<img style="position: absolute; z-index: 1; left: ' . $chartCoordinates['xOffset'] . 'px; top: ' . $chartCoordinates['yOffset'] . 'px; width: ' . $imageDetails[0] . 'px; height: ' . $imageDetails[1] . 'px;" src="' . $imageData . '" border="0" />' . PHP_EOL; + $html .= '</div>'; + + unlink($chartFileName); + } + } + } + } + + // Return + return $html; + } + + /** + * Generate CSS styles + * + * @param boolean $generateSurroundingHTML Generate surrounding HTML tags? (&lt;style&gt; and &lt;/style&gt;) + * @return string + * @throws PHPExcel_Writer_Exception + */ + public function generateStyles($generateSurroundingHTML = true) { + // PHPExcel object known? + if (is_null($this->_phpExcel)) { + throw new PHPExcel_Writer_Exception('Internal PHPExcel object not set to an instance of an object.'); + } + + // Build CSS + $css = $this->buildCSS($generateSurroundingHTML); + + // Construct HTML + $html = ''; + + // Start styles + if ($generateSurroundingHTML) { + $html .= ' <style type="text/css">' . PHP_EOL; + $html .= ' html { ' . $this->_assembleCSS($css['html']) . ' }' . PHP_EOL; + } + + // Write all other styles + foreach ($css as $styleName => $styleDefinition) { + if ($styleName != 'html') { + $html .= ' ' . $styleName . ' { ' . $this->_assembleCSS($styleDefinition) . ' }' . PHP_EOL; + } + } + + // End styles + if ($generateSurroundingHTML) { + $html .= ' </style>' . PHP_EOL; + } + + // Return + return $html; + } + + /** + * Build CSS styles + * + * @param boolean $generateSurroundingHTML Generate surrounding HTML style? (html { }) + * @return array + * @throws PHPExcel_Writer_Exception + */ + public function buildCSS($generateSurroundingHTML = true) { + // PHPExcel object known? + if (is_null($this->_phpExcel)) { + throw new PHPExcel_Writer_Exception('Internal PHPExcel object not set to an instance of an object.'); + } + + // Cached? + if (!is_null($this->_cssStyles)) { + return $this->_cssStyles; + } + + // Ensure that spans have been calculated + if (!$this->_spansAreCalculated) { + $this->_calculateSpans(); + } + + // Construct CSS + $css = array(); + + // Start styles + if ($generateSurroundingHTML) { + // html { } + $css['html']['font-family'] = 'Calibri, Arial, Helvetica, sans-serif'; + $css['html']['font-size'] = '11pt'; + $css['html']['background-color'] = 'white'; + } + + + // table { } + $css['table']['border-collapse'] = 'collapse'; + if (!$this->_isPdf) { + $css['table']['page-break-after'] = 'always'; + } + + // .gridlines td { } + $css['.gridlines td']['border'] = '1px dotted black'; + $css['.gridlines th']['border'] = '1px dotted black'; + + // .b {} + $css['.b']['text-align'] = 'center'; // BOOL + + // .e {} + $css['.e']['text-align'] = 'center'; // ERROR + + // .f {} + $css['.f']['text-align'] = 'right'; // FORMULA + + // .inlineStr {} + $css['.inlineStr']['text-align'] = 'left'; // INLINE + + // .n {} + $css['.n']['text-align'] = 'right'; // NUMERIC + + // .s {} + $css['.s']['text-align'] = 'left'; // STRING + + // Calculate cell style hashes + foreach ($this->_phpExcel->getCellXfCollection() as $index => $style) { + $css['td.style' . $index] = $this->_createCSSStyle( $style ); + $css['th.style' . $index] = $this->_createCSSStyle( $style ); + } + + // Fetch sheets + $sheets = array(); + if (is_null($this->_sheetIndex)) { + $sheets = $this->_phpExcel->getAllSheets(); + } else { + $sheets[] = $this->_phpExcel->getSheet($this->_sheetIndex); + } + + // Build styles per sheet + foreach ($sheets as $sheet) { + // Calculate hash code + $sheetIndex = $sheet->getParent()->getIndex($sheet); + + // Build styles + // Calculate column widths + $sheet->calculateColumnWidths(); + + // col elements, initialize + $highestColumnIndex = PHPExcel_Cell::columnIndexFromString($sheet->getHighestColumn()) - 1; + $column = -1; + while($column++ < $highestColumnIndex) { + $this->_columnWidths[$sheetIndex][$column] = 42; // approximation + $css['table.sheet' . $sheetIndex . ' col.col' . $column]['width'] = '42pt'; + } + + // col elements, loop through columnDimensions and set width + foreach ($sheet->getColumnDimensions() as $columnDimension) { + if (($width = PHPExcel_Shared_Drawing::cellDimensionToPixels($columnDimension->getWidth(), $this->_defaultFont)) >= 0) { + $width = PHPExcel_Shared_Drawing::pixelsToPoints($width); + $column = PHPExcel_Cell::columnIndexFromString($columnDimension->getColumnIndex()) - 1; + $this->_columnWidths[$sheetIndex][$column] = $width; + $css['table.sheet' . $sheetIndex . ' col.col' . $column]['width'] = $width . 'pt'; + + if ($columnDimension->getVisible() === false) { + $css['table.sheet' . $sheetIndex . ' col.col' . $column]['visibility'] = 'collapse'; + $css['table.sheet' . $sheetIndex . ' col.col' . $column]['*display'] = 'none'; // target IE6+7 + } + } + } + + // Default row height + $rowDimension = $sheet->getDefaultRowDimension(); + + // table.sheetN tr { } + $css['table.sheet' . $sheetIndex . ' tr'] = array(); + + if ($rowDimension->getRowHeight() == -1) { + $pt_height = PHPExcel_Shared_Font::getDefaultRowHeightByFont($this->_phpExcel->getDefaultStyle()->getFont()); + } else { + $pt_height = $rowDimension->getRowHeight(); + } + $css['table.sheet' . $sheetIndex . ' tr']['height'] = $pt_height . 'pt'; + if ($rowDimension->getVisible() === false) { + $css['table.sheet' . $sheetIndex . ' tr']['display'] = 'none'; + $css['table.sheet' . $sheetIndex . ' tr']['visibility'] = 'hidden'; + } + + // Calculate row heights + foreach ($sheet->getRowDimensions() as $rowDimension) { + $row = $rowDimension->getRowIndex() - 1; + + // table.sheetN tr.rowYYYYYY { } + $css['table.sheet' . $sheetIndex . ' tr.row' . $row] = array(); + + if ($rowDimension->getRowHeight() == -1) { + $pt_height = PHPExcel_Shared_Font::getDefaultRowHeightByFont($this->_phpExcel->getDefaultStyle()->getFont()); + } else { + $pt_height = $rowDimension->getRowHeight(); + } + $css['table.sheet' . $sheetIndex . ' tr.row' . $row]['height'] = $pt_height . 'pt'; + if ($rowDimension->getVisible() === false) { + $css['table.sheet' . $sheetIndex . ' tr.row' . $row]['display'] = 'none'; + $css['table.sheet' . $sheetIndex . ' tr.row' . $row]['visibility'] = 'hidden'; + } + } + } + + // Cache + if (is_null($this->_cssStyles)) { + $this->_cssStyles = $css; + } + + // Return + return $css; + } + + /** + * Create CSS style + * + * @param PHPExcel_Style $pStyle PHPExcel_Style + * @return array + */ + private function _createCSSStyle(PHPExcel_Style $pStyle) { + // Construct CSS + $css = ''; + + // Create CSS + $css = array_merge( + $this->_createCSSStyleAlignment($pStyle->getAlignment()) + , $this->_createCSSStyleBorders($pStyle->getBorders()) + , $this->_createCSSStyleFont($pStyle->getFont()) + , $this->_createCSSStyleFill($pStyle->getFill()) + ); + + // Return + return $css; + } + + /** + * Create CSS style (PHPExcel_Style_Alignment) + * + * @param PHPExcel_Style_Alignment $pStyle PHPExcel_Style_Alignment + * @return array + */ + private function _createCSSStyleAlignment(PHPExcel_Style_Alignment $pStyle) { + // Construct CSS + $css = array(); + + // Create CSS + $css['vertical-align'] = $this->_mapVAlign($pStyle->getVertical()); + if ($textAlign = $this->_mapHAlign($pStyle->getHorizontal())) { + $css['text-align'] = $textAlign; + if(in_array($textAlign,array('left','right'))) + $css['padding-'.$textAlign] = (string)((int)$pStyle->getIndent() * 9).'px'; + } + + // Return + return $css; + } + + /** + * Create CSS style (PHPExcel_Style_Font) + * + * @param PHPExcel_Style_Font $pStyle PHPExcel_Style_Font + * @return array + */ + private function _createCSSStyleFont(PHPExcel_Style_Font $pStyle) { + // Construct CSS + $css = array(); + + // Create CSS + if ($pStyle->getBold()) { + $css['font-weight'] = 'bold'; + } + if ($pStyle->getUnderline() != PHPExcel_Style_Font::UNDERLINE_NONE && $pStyle->getStrikethrough()) { + $css['text-decoration'] = 'underline line-through'; + } else if ($pStyle->getUnderline() != PHPExcel_Style_Font::UNDERLINE_NONE) { + $css['text-decoration'] = 'underline'; + } else if ($pStyle->getStrikethrough()) { + $css['text-decoration'] = 'line-through'; + } + if ($pStyle->getItalic()) { + $css['font-style'] = 'italic'; + } + + $css['color'] = '#' . $pStyle->getColor()->getRGB(); + $css['font-family'] = '\'' . $pStyle->getName() . '\''; + $css['font-size'] = $pStyle->getSize() . 'pt'; + + // Return + return $css; + } + + /** + * Create CSS style (PHPExcel_Style_Borders) + * + * @param PHPExcel_Style_Borders $pStyle PHPExcel_Style_Borders + * @return array + */ + private function _createCSSStyleBorders(PHPExcel_Style_Borders $pStyle) { + // Construct CSS + $css = array(); + + // Create CSS + $css['border-bottom'] = $this->_createCSSStyleBorder($pStyle->getBottom()); + $css['border-top'] = $this->_createCSSStyleBorder($pStyle->getTop()); + $css['border-left'] = $this->_createCSSStyleBorder($pStyle->getLeft()); + $css['border-right'] = $this->_createCSSStyleBorder($pStyle->getRight()); + + // Return + return $css; + } + + /** + * Create CSS style (PHPExcel_Style_Border) + * + * @param PHPExcel_Style_Border $pStyle PHPExcel_Style_Border + * @return string + */ + private function _createCSSStyleBorder(PHPExcel_Style_Border $pStyle) { + // Create CSS +// $css = $this->_mapBorderStyle($pStyle->getBorderStyle()) . ' #' . $pStyle->getColor()->getRGB(); + // Create CSS - add !important to non-none border styles for merged cells + $borderStyle = $this->_mapBorderStyle($pStyle->getBorderStyle()); + $css = $borderStyle . ' #' . $pStyle->getColor()->getRGB() . (($borderStyle == 'none') ? '' : ' !important'); + + // Return + return $css; + } + + /** + * Create CSS style (PHPExcel_Style_Fill) + * + * @param PHPExcel_Style_Fill $pStyle PHPExcel_Style_Fill + * @return array + */ + private function _createCSSStyleFill(PHPExcel_Style_Fill $pStyle) { + // Construct HTML + $css = array(); + + // Create CSS + $value = $pStyle->getFillType() == PHPExcel_Style_Fill::FILL_NONE ? + 'white' : '#' . $pStyle->getStartColor()->getRGB(); + $css['background-color'] = $value; + + // Return + return $css; + } + + /** + * Generate HTML footer + */ + public function generateHTMLFooter() { + // Construct HTML + $html = ''; + $html .= ' </body>' . PHP_EOL; + $html .= '</html>' . PHP_EOL; + + // Return + return $html; + } + + /** + * Generate table header + * + * @param PHPExcel_Worksheet $pSheet The worksheet for the table we are writing + * @return string + * @throws PHPExcel_Writer_Exception + */ + private function _generateTableHeader($pSheet) { + $sheetIndex = $pSheet->getParent()->getIndex($pSheet); + + // Construct HTML + $html = ''; + $html .= $this->_setMargins($pSheet); + + if (!$this->_useInlineCss) { + $gridlines = $pSheet->getShowGridlines() ? ' gridlines' : ''; + $html .= ' <table border="0" cellpadding="0" cellspacing="0" id="sheet' . $sheetIndex . '" class="sheet' . $sheetIndex . $gridlines . '">' . PHP_EOL; + } else { + $style = isset($this->_cssStyles['table']) ? + $this->_assembleCSS($this->_cssStyles['table']) : ''; + + if ($this->_isPdf && $pSheet->getShowGridlines()) { + $html .= ' <table border="1" cellpadding="1" id="sheet' . $sheetIndex . '" cellspacing="1" style="' . $style . '">' . PHP_EOL; + } else { + $html .= ' <table border="0" cellpadding="1" id="sheet' . $sheetIndex . '" cellspacing="0" style="' . $style . '">' . PHP_EOL; + } + } + + // Write <col> elements + $highestColumnIndex = PHPExcel_Cell::columnIndexFromString($pSheet->getHighestColumn()) - 1; + $i = -1; + while($i++ < $highestColumnIndex) { + if (!$this->_isPdf) { + if (!$this->_useInlineCss) { + $html .= ' <col class="col' . $i . '">' . PHP_EOL; + } else { + $style = isset($this->_cssStyles['table.sheet' . $sheetIndex . ' col.col' . $i]) ? + $this->_assembleCSS($this->_cssStyles['table.sheet' . $sheetIndex . ' col.col' . $i]) : ''; + $html .= ' <col style="' . $style . '">' . PHP_EOL; + } + } + } + + // Return + return $html; + } + + /** + * Generate table footer + * + * @throws PHPExcel_Writer_Exception + */ + private function _generateTableFooter() { + // Construct HTML + $html = ''; + $html .= ' </table>' . PHP_EOL; + + // Return + return $html; + } + + /** + * Generate row + * + * @param PHPExcel_Worksheet $pSheet PHPExcel_Worksheet + * @param array $pValues Array containing cells in a row + * @param int $pRow Row number (0-based) + * @return string + * @throws PHPExcel_Writer_Exception + */ + private function _generateRow(PHPExcel_Worksheet $pSheet, $pValues = null, $pRow = 0, $cellType = 'td') { + if (is_array($pValues)) { + // Construct HTML + $html = ''; + + // Sheet index + $sheetIndex = $pSheet->getParent()->getIndex($pSheet); + + // DomPDF and breaks + if ($this->_isPdf && count($pSheet->getBreaks()) > 0) { + $breaks = $pSheet->getBreaks(); + + // check if a break is needed before this row + if (isset($breaks['A' . $pRow])) { + // close table: </table> + $html .= $this->_generateTableFooter(); + + // insert page break + $html .= '<div style="page-break-before:always" />'; + + // open table again: <table> + <col> etc. + $html .= $this->_generateTableHeader($pSheet); + } + } + + // Write row start + if (!$this->_useInlineCss) { + $html .= ' <tr class="row' . $pRow . '">' . PHP_EOL; + } else { + $style = isset($this->_cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]) + ? $this->_assembleCSS($this->_cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]) : ''; + + $html .= ' <tr style="' . $style . '">' . PHP_EOL; + } + + // Write cells + $colNum = 0; + foreach ($pValues as $cellAddress) { + $cell = ($cellAddress > '') ? $pSheet->getCell($cellAddress) : ''; + $coordinate = PHPExcel_Cell::stringFromColumnIndex($colNum) . ($pRow + 1); + if (!$this->_useInlineCss) { + $cssClass = ''; + $cssClass = 'column' . $colNum; + } else { + $cssClass = array(); + if ($cellType == 'th') { + if (isset($this->_cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum])) { + $this->_cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum]; + } + } else { + if (isset($this->_cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum])) { + $this->_cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum]; + } + } + } + $colSpan = 1; + $rowSpan = 1; + + // initialize + $cellData = '&nbsp;'; + + // PHPExcel_Cell + if ($cell instanceof PHPExcel_Cell) { + $cellData = ''; + if (is_null($cell->getParent())) { + $cell->attach($pSheet); + } + // Value + if ($cell->getValue() instanceof PHPExcel_RichText) { + // Loop through rich text elements + $elements = $cell->getValue()->getRichTextElements(); + foreach ($elements as $element) { + // Rich text start? + if ($element instanceof PHPExcel_RichText_Run) { + $cellData .= '<span style="' . $this->_assembleCSS($this->_createCSSStyleFont($element->getFont())) . '">'; + + if ($element->getFont()->getSuperScript()) { + $cellData .= '<sup>'; + } else if ($element->getFont()->getSubScript()) { + $cellData .= '<sub>'; + } + } + + // Convert UTF8 data to PCDATA + $cellText = $element->getText(); + $cellData .= htmlspecialchars($cellText); + + if ($element instanceof PHPExcel_RichText_Run) { + if ($element->getFont()->getSuperScript()) { + $cellData .= '</sup>'; + } else if ($element->getFont()->getSubScript()) { + $cellData .= '</sub>'; + } + + $cellData .= '</span>'; + } + } + } else { + if ($this->_preCalculateFormulas) { + $cellData = PHPExcel_Style_NumberFormat::toFormattedString( + $cell->getCalculatedValue(), + $pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() )->getNumberFormat()->getFormatCode(), + array($this, 'formatColor') + ); + } else { + $cellData = PHPExcel_Style_NumberFormat::toFormattedString( + $cell->getValue(), + $pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() )->getNumberFormat()->getFormatCode(), + array($this, 'formatColor') + ); + } + $cellData = htmlspecialchars($cellData); + if ($pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() )->getFont()->getSuperScript()) { + $cellData = '<sup>'.$cellData.'</sup>'; + } elseif ($pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() )->getFont()->getSubScript()) { + $cellData = '<sub>'.$cellData.'</sub>'; + } + } + + // Converts the cell content so that spaces occuring at beginning of each new line are replaced by &nbsp; + // Example: " Hello\n to the world" is converted to "&nbsp;&nbsp;Hello\n&nbsp;to the world" + $cellData = preg_replace("/(?m)(?:^|\\G) /", '&nbsp;', $cellData); + + // convert newline "\n" to '<br>' + $cellData = nl2br($cellData); + + // Extend CSS class? + if (!$this->_useInlineCss) { + $cssClass .= ' style' . $cell->getXfIndex(); + $cssClass .= ' ' . $cell->getDataType(); + } else { + if ($cellType == 'th') { + if (isset($this->_cssStyles['th.style' . $cell->getXfIndex()])) { + $cssClass = array_merge($cssClass, $this->_cssStyles['th.style' . $cell->getXfIndex()]); + } + } else { + if (isset($this->_cssStyles['td.style' . $cell->getXfIndex()])) { + $cssClass = array_merge($cssClass, $this->_cssStyles['td.style' . $cell->getXfIndex()]); + } + } + + // General horizontal alignment: Actual horizontal alignment depends on dataType + $sharedStyle = $pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() ); + if ($sharedStyle->getAlignment()->getHorizontal() == PHPExcel_Style_Alignment::HORIZONTAL_GENERAL + && isset($this->_cssStyles['.' . $cell->getDataType()]['text-align'])) + { + $cssClass['text-align'] = $this->_cssStyles['.' . $cell->getDataType()]['text-align']; + } + } + } + + // Hyperlink? + if ($pSheet->hyperlinkExists($coordinate) && !$pSheet->getHyperlink($coordinate)->isInternal()) { + $cellData = '<a href="' . htmlspecialchars($pSheet->getHyperlink($coordinate)->getUrl()) . '" title="' . htmlspecialchars($pSheet->getHyperlink($coordinate)->getTooltip()) . '">' . $cellData . '</a>'; + } + + // Should the cell be written or is it swallowed by a rowspan or colspan? + $writeCell = ! ( isset($this->_isSpannedCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum]) + && $this->_isSpannedCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum] ); + + // Colspan and Rowspan + $colspan = 1; + $rowspan = 1; + if (isset($this->_isBaseCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum])) { + $spans = $this->_isBaseCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum]; + $rowSpan = $spans['rowspan']; + $colSpan = $spans['colspan']; + + // Also apply style from last cell in merge to fix borders - + // relies on !important for non-none border declarations in _createCSSStyleBorder + $endCellCoord = PHPExcel_Cell::stringFromColumnIndex($colNum + $colSpan - 1) . ($pRow + $rowSpan); + if (!$this->_useInlineCss) { + $cssClass .= ' style' . $pSheet->getCell($endCellCoord)->getXfIndex(); + } + } + + // Write + if ($writeCell) { + // Column start + $html .= ' <' . $cellType; + if (!$this->_useInlineCss) { + $html .= ' class="' . $cssClass . '"'; + } else { + //** Necessary redundant code for the sake of PHPExcel_Writer_PDF ** + // We must explicitly write the width of the <td> element because TCPDF + // does not recognize e.g. <col style="width:42pt"> + $width = 0; + $i = $colNum - 1; + $e = $colNum + $colSpan - 1; + while($i++ < $e) { + if (isset($this->_columnWidths[$sheetIndex][$i])) { + $width += $this->_columnWidths[$sheetIndex][$i]; + } + } + $cssClass['width'] = $width . 'pt'; + + // We must also explicitly write the height of the <td> element because TCPDF + // does not recognize e.g. <tr style="height:50pt"> + if (isset($this->_cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]['height'])) { + $height = $this->_cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]['height']; + $cssClass['height'] = $height; + } + //** end of redundant code ** + + $html .= ' style="' . $this->_assembleCSS($cssClass) . '"'; + } + if ($colSpan > 1) { + $html .= ' colspan="' . $colSpan . '"'; + } + if ($rowSpan > 1) { + $html .= ' rowspan="' . $rowSpan . '"'; + } + $html .= '>'; + + // Image? + $html .= $this->_writeImageInCell($pSheet, $coordinate); + + // Chart? + if ($this->_includeCharts) { + $html .= $this->_writeChartInCell($pSheet, $coordinate); + } + + // Cell data + $html .= $cellData; + + // Column end + $html .= '</'.$cellType.'>' . PHP_EOL; + } + + // Next column + ++$colNum; + } + + // Write row end + $html .= ' </tr>' . PHP_EOL; + + // Return + return $html; + } else { + throw new PHPExcel_Writer_Exception("Invalid parameters passed."); + } + } + + /** + * Takes array where of CSS properties / values and converts to CSS string + * + * @param array + * @return string + */ + private function _assembleCSS($pValue = array()) + { + $pairs = array(); + foreach ($pValue as $property => $value) { + $pairs[] = $property . ':' . $value; + } + $string = implode('; ', $pairs); + + return $string; + } + + /** + * Get images root + * + * @return string + */ + public function getImagesRoot() { + return $this->_imagesRoot; + } + + /** + * Set images root + * + * @param string $pValue + * @return PHPExcel_Writer_HTML + */ + public function setImagesRoot($pValue = '.') { + $this->_imagesRoot = $pValue; + return $this; + } + + /** + * Get embed images + * + * @return boolean + */ + public function getEmbedImages() { + return $this->_embedImages; + } + + /** + * Set embed images + * + * @param boolean $pValue + * @return PHPExcel_Writer_HTML + */ + public function setEmbedImages($pValue = '.') { + $this->_embedImages = $pValue; + return $this; + } + + /** + * Get use inline CSS? + * + * @return boolean + */ + public function getUseInlineCss() { + return $this->_useInlineCss; + } + + /** + * Set use inline CSS? + * + * @param boolean $pValue + * @return PHPExcel_Writer_HTML + */ + public function setUseInlineCss($pValue = false) { + $this->_useInlineCss = $pValue; + return $this; + } + + /** + * Add color to formatted string as inline style + * + * @param string $pValue Plain formatted value without color + * @param string $pFormat Format code + * @return string + */ + public function formatColor($pValue, $pFormat) + { + // Color information, e.g. [Red] is always at the beginning + $color = null; // initialize + $matches = array(); + + $color_regex = '/^\\[[a-zA-Z]+\\]/'; + if (preg_match($color_regex, $pFormat, $matches)) { + $color = str_replace('[', '', $matches[0]); + $color = str_replace(']', '', $color); + $color = strtolower($color); + } + + // convert to PCDATA + $value = htmlspecialchars($pValue); + + // color span tag + if ($color !== null) { + $value = '<span style="color:' . $color . '">' . $value . '</span>'; + } + + return $value; + } + + /** + * Calculate information about HTML colspan and rowspan which is not always the same as Excel's + */ + private function _calculateSpans() + { + // Identify all cells that should be omitted in HTML due to cell merge. + // In HTML only the upper-left cell should be written and it should have + // appropriate rowspan / colspan attribute + $sheetIndexes = $this->_sheetIndex !== null ? + array($this->_sheetIndex) : range(0, $this->_phpExcel->getSheetCount() - 1); + + foreach ($sheetIndexes as $sheetIndex) { + $sheet = $this->_phpExcel->getSheet($sheetIndex); + + $candidateSpannedRow = array(); + + // loop through all Excel merged cells + foreach ($sheet->getMergeCells() as $cells) { + list($cells, ) = PHPExcel_Cell::splitRange($cells); + $first = $cells[0]; + $last = $cells[1]; + + list($fc, $fr) = PHPExcel_Cell::coordinateFromString($first); + $fc = PHPExcel_Cell::columnIndexFromString($fc) - 1; + + list($lc, $lr) = PHPExcel_Cell::coordinateFromString($last); + $lc = PHPExcel_Cell::columnIndexFromString($lc) - 1; + + // loop through the individual cells in the individual merge + $r = $fr - 1; + while($r++ < $lr) { + // also, flag this row as a HTML row that is candidate to be omitted + $candidateSpannedRow[$r] = $r; + + $c = $fc - 1; + while($c++ < $lc) { + if ( !($c == $fc && $r == $fr) ) { + // not the upper-left cell (should not be written in HTML) + $this->_isSpannedCell[$sheetIndex][$r][$c] = array( + 'baseCell' => array($fr, $fc), + ); + } else { + // upper-left is the base cell that should hold the colspan/rowspan attribute + $this->_isBaseCell[$sheetIndex][$r][$c] = array( + 'xlrowspan' => $lr - $fr + 1, // Excel rowspan + 'rowspan' => $lr - $fr + 1, // HTML rowspan, value may change + 'xlcolspan' => $lc - $fc + 1, // Excel colspan + 'colspan' => $lc - $fc + 1, // HTML colspan, value may change + ); + } + } + } + } + + // Identify which rows should be omitted in HTML. These are the rows where all the cells + // participate in a merge and the where base cells are somewhere above. + $countColumns = PHPExcel_Cell::columnIndexFromString($sheet->getHighestColumn()); + foreach ($candidateSpannedRow as $rowIndex) { + if (isset($this->_isSpannedCell[$sheetIndex][$rowIndex])) { + if (count($this->_isSpannedCell[$sheetIndex][$rowIndex]) == $countColumns) { + $this->_isSpannedRow[$sheetIndex][$rowIndex] = $rowIndex; + }; + } + } + + // For each of the omitted rows we found above, the affected rowspans should be subtracted by 1 + if ( isset($this->_isSpannedRow[$sheetIndex]) ) { + foreach ($this->_isSpannedRow[$sheetIndex] as $rowIndex) { + $adjustedBaseCells = array(); + $c = -1; + $e = $countColumns - 1; + while($c++ < $e) { + $baseCell = $this->_isSpannedCell[$sheetIndex][$rowIndex][$c]['baseCell']; + + if ( !in_array($baseCell, $adjustedBaseCells) ) { + // subtract rowspan by 1 + --$this->_isBaseCell[$sheetIndex][ $baseCell[0] ][ $baseCell[1] ]['rowspan']; + $adjustedBaseCells[] = $baseCell; + } + } + } + } + + // TODO: Same for columns + } + + // We have calculated the spans + $this->_spansAreCalculated = true; + } + + private function _setMargins(PHPExcel_Worksheet $pSheet) { + $htmlPage = '@page { '; + $htmlBody = 'body { '; + + $left = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getLeft()) . 'in; '; + $htmlPage .= 'left-margin: ' . $left; + $htmlBody .= 'left-margin: ' . $left; + $right = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getRight()) . 'in; '; + $htmlPage .= 'right-margin: ' . $right; + $htmlBody .= 'right-margin: ' . $right; + $top = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getTop()) . 'in; '; + $htmlPage .= 'top-margin: ' . $top; + $htmlBody .= 'top-margin: ' . $top; + $bottom = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getBottom()) . 'in; '; + $htmlPage .= 'bottom-margin: ' . $bottom; + $htmlBody .= 'bottom-margin: ' . $bottom; + + $htmlPage .= "}\n"; + $htmlBody .= "}\n"; + + return "<style>\n" . $htmlPage . $htmlBody . "</style>\n"; + } + +} diff --git a/admin/helpers/PHPExcel/Writer/IWriter.php b/admin/helpers/PHPExcel/Writer/IWriter.php new file mode 100644 index 00000000..f0b94b9e --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/IWriter.php @@ -0,0 +1,46 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_IWriter + * + * @category PHPExcel + * @package PHPExcel_Writer + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +interface PHPExcel_Writer_IWriter +{ + /** + * Save PHPExcel to file + * + * @param string $pFilename Name of the file to save + * @throws PHPExcel_Writer_Exception + */ + public function save($pFilename = NULL); + +} diff --git a/admin/helpers/PHPExcel/Writer/OpenDocument.php b/admin/helpers/PHPExcel/Writer/OpenDocument.php new file mode 100644 index 00000000..2cbe6f90 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/OpenDocument.php @@ -0,0 +1,200 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_OpenDocument + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @author Alexander Pervakov <frost-nzcr4@jagmort.com> + * @link http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os.html + */ +class PHPExcel_Writer_OpenDocument extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter +{ + /** + * Private writer parts + * + * @var PHPExcel_Writer_OpenDocument_WriterPart[] + */ + private $_writerParts = array(); + + /** + * Private PHPExcel + * + * @var PHPExcel + */ + private $_spreadSheet; + + /** + * Create a new PHPExcel_Writer_OpenDocument + * + * @param PHPExcel $pPHPExcel + */ + public function __construct(PHPExcel $pPHPExcel = null) + { + $this->setPHPExcel($pPHPExcel); + + $writerPartsArray = array( + 'content' => 'PHPExcel_Writer_OpenDocument_Content', + 'meta' => 'PHPExcel_Writer_OpenDocument_Meta', + 'meta_inf' => 'PHPExcel_Writer_OpenDocument_MetaInf', + 'mimetype' => 'PHPExcel_Writer_OpenDocument_Mimetype', + 'settings' => 'PHPExcel_Writer_OpenDocument_Settings', + 'styles' => 'PHPExcel_Writer_OpenDocument_Styles', + 'thumbnails' => 'PHPExcel_Writer_OpenDocument_Thumbnails' + ); + + foreach ($writerPartsArray as $writer => $class) { + $this->_writerParts[$writer] = new $class($this); + } + } + + /** + * Get writer part + * + * @param string $pPartName Writer part name + * @return PHPExcel_Writer_Excel2007_WriterPart + */ + public function getWriterPart($pPartName = '') + { + if ($pPartName != '' && isset($this->_writerParts[strtolower($pPartName)])) { + return $this->_writerParts[strtolower($pPartName)]; + } else { + return null; + } + } + + /** + * Save PHPExcel to file + * + * @param string $pFilename + * @throws PHPExcel_Writer_Exception + */ + public function save($pFilename = NULL) + { + if (!$this->_spreadSheet) { + throw new PHPExcel_Writer_Exception('PHPExcel object unassigned.'); + } + + // garbage collect + $this->_spreadSheet->garbageCollect(); + + // If $pFilename is php://output or php://stdout, make it a temporary file... + $originalFilename = $pFilename; + if (strtolower($pFilename) == 'php://output' || strtolower($pFilename) == 'php://stdout') { + $pFilename = @tempnam(PHPExcel_Shared_File::sys_get_temp_dir(), 'phpxltmp'); + if ($pFilename == '') { + $pFilename = $originalFilename; + } + } + + $objZip = $this->_createZip($pFilename); + + $objZip->addFromString('META-INF/manifest.xml', $this->getWriterPart('meta_inf')->writeManifest()); + $objZip->addFromString('Thumbnails/thumbnail.png', $this->getWriterPart('thumbnails')->writeThumbnail()); + $objZip->addFromString('content.xml', $this->getWriterPart('content')->write()); + $objZip->addFromString('meta.xml', $this->getWriterPart('meta')->write()); + $objZip->addFromString('mimetype', $this->getWriterPart('mimetype')->write()); + $objZip->addFromString('settings.xml', $this->getWriterPart('settings')->write()); + $objZip->addFromString('styles.xml', $this->getWriterPart('styles')->write()); + + // Close file + if ($objZip->close() === false) { + throw new PHPExcel_Writer_Exception("Could not close zip file $pFilename."); + } + + // If a temporary file was used, copy it to the correct file stream + if ($originalFilename != $pFilename) { + if (copy($pFilename, $originalFilename) === false) { + throw new PHPExcel_Writer_Exception("Could not copy temporary zip file $pFilename to $originalFilename."); + } + @unlink($pFilename); + } + } + + /** + * Create zip object + * + * @param string $pFilename + * @throws PHPExcel_Writer_Exception + * @return ZipArchive + */ + private function _createZip($pFilename) + { + // Create new ZIP file and open it for writing + $zipClass = PHPExcel_Settings::getZipClass(); + $objZip = new $zipClass(); + + // Retrieve OVERWRITE and CREATE constants from the instantiated zip class + // This method of accessing constant values from a dynamic class should work with all appropriate versions of PHP + $ro = new ReflectionObject($objZip); + $zipOverWrite = $ro->getConstant('OVERWRITE'); + $zipCreate = $ro->getConstant('CREATE'); + + if (file_exists($pFilename)) { + unlink($pFilename); + } + // Try opening the ZIP file + if ($objZip->open($pFilename, $zipOverWrite) !== true) { + if ($objZip->open($pFilename, $zipCreate) !== true) { + throw new PHPExcel_Writer_Exception("Could not open $pFilename for writing."); + } + } + + return $objZip; + } + + /** + * Get PHPExcel object + * + * @return PHPExcel + * @throws PHPExcel_Writer_Exception + */ + public function getPHPExcel() + { + if ($this->_spreadSheet !== null) { + return $this->_spreadSheet; + } else { + throw new PHPExcel_Writer_Exception('No PHPExcel assigned.'); + } + } + + /** + * Set PHPExcel object + * + * @param PHPExcel $pPHPExcel PHPExcel object + * @throws PHPExcel_Writer_Exception + * @return PHPExcel_Writer_Excel2007 + */ + public function setPHPExcel(PHPExcel $pPHPExcel = null) + { + $this->_spreadSheet = $pPHPExcel; + return $this; + } +} diff --git a/admin/helpers/PHPExcel/Writer/OpenDocument/Cell/Comment.php b/admin/helpers/PHPExcel/Writer/OpenDocument/Cell/Comment.php new file mode 100644 index 00000000..88406ed1 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/OpenDocument/Cell/Comment.php @@ -0,0 +1,63 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_OpenDocument_Cell_Comment + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @author Alexander Pervakov <frost-nzcr4@jagmort.com> + */ +class PHPExcel_Writer_OpenDocument_Cell_Comment +{ + public static function write(PHPExcel_Shared_XMLWriter $objWriter, PHPExcel_Cell $cell) + { + $comments = $cell->getWorksheet()->getComments(); + if (!isset($comments[$cell->getCoordinate()])) { + return; + } + $comment = $comments[$cell->getCoordinate()]; + + $objWriter->startElement('office:annotation'); + //$objWriter->writeAttribute('draw:style-name', 'gr1'); + //$objWriter->writeAttribute('draw:text-style-name', 'P1'); + $objWriter->writeAttribute('svg:width', $comment->getWidth()); + $objWriter->writeAttribute('svg:height', $comment->getHeight()); + $objWriter->writeAttribute('svg:x', $comment->getMarginLeft()); + $objWriter->writeAttribute('svg:y', $comment->getMarginTop()); + //$objWriter->writeAttribute('draw:caption-point-x', $comment->getMarginLeft()); + //$objWriter->writeAttribute('draw:caption-point-y', $comment->getMarginTop()); + $objWriter->writeElement('dc:creator', $comment->getAuthor()); + // TODO: Not realized in PHPExcel_Comment yet. + //$objWriter->writeElement('dc:date', $comment->getDate()); + $objWriter->writeElement('text:p', $comment->getText()->getPlainText()); + //$objWriter->writeAttribute('draw:text-style-name', 'P1'); + $objWriter->endElement(); + } +} diff --git a/admin/helpers/PHPExcel/Writer/OpenDocument/Content.php b/admin/helpers/PHPExcel/Writer/OpenDocument/Content.php new file mode 100644 index 00000000..625b3541 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/OpenDocument/Content.php @@ -0,0 +1,272 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_OpenDocument_Content + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @author Alexander Pervakov <frost-nzcr4@jagmort.com> + */ +class PHPExcel_Writer_OpenDocument_Content extends PHPExcel_Writer_OpenDocument_WriterPart +{ + const NUMBER_COLS_REPEATED_MAX = 1024; + const NUMBER_ROWS_REPEATED_MAX = 1048576; + + /** + * Write content.xml to XML format + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function write(PHPExcel $pPHPExcel = null) + { + if (!$pPHPExcel) { + $pPHPExcel = $this->getParentWriter()->getPHPExcel(); /* @var $pPHPExcel PHPExcel */ + } + + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0', 'UTF-8'); + + // Content + $objWriter->startElement('office:document-content'); + $objWriter->writeAttribute('xmlns:office', 'urn:oasis:names:tc:opendocument:xmlns:office:1.0'); + $objWriter->writeAttribute('xmlns:style', 'urn:oasis:names:tc:opendocument:xmlns:style:1.0'); + $objWriter->writeAttribute('xmlns:text', 'urn:oasis:names:tc:opendocument:xmlns:text:1.0'); + $objWriter->writeAttribute('xmlns:table', 'urn:oasis:names:tc:opendocument:xmlns:table:1.0'); + $objWriter->writeAttribute('xmlns:draw', 'urn:oasis:names:tc:opendocument:xmlns:drawing:1.0'); + $objWriter->writeAttribute('xmlns:fo', 'urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0'); + $objWriter->writeAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink'); + $objWriter->writeAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/'); + $objWriter->writeAttribute('xmlns:meta', 'urn:oasis:names:tc:opendocument:xmlns:meta:1.0'); + $objWriter->writeAttribute('xmlns:number', 'urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0'); + $objWriter->writeAttribute('xmlns:presentation', 'urn:oasis:names:tc:opendocument:xmlns:presentation:1.0'); + $objWriter->writeAttribute('xmlns:svg', 'urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0'); + $objWriter->writeAttribute('xmlns:chart', 'urn:oasis:names:tc:opendocument:xmlns:chart:1.0'); + $objWriter->writeAttribute('xmlns:dr3d', 'urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0'); + $objWriter->writeAttribute('xmlns:math', 'http://www.w3.org/1998/Math/MathML'); + $objWriter->writeAttribute('xmlns:form', 'urn:oasis:names:tc:opendocument:xmlns:form:1.0'); + $objWriter->writeAttribute('xmlns:script', 'urn:oasis:names:tc:opendocument:xmlns:script:1.0'); + $objWriter->writeAttribute('xmlns:ooo', 'http://openoffice.org/2004/office'); + $objWriter->writeAttribute('xmlns:ooow', 'http://openoffice.org/2004/writer'); + $objWriter->writeAttribute('xmlns:oooc', 'http://openoffice.org/2004/calc'); + $objWriter->writeAttribute('xmlns:dom', 'http://www.w3.org/2001/xml-events'); + $objWriter->writeAttribute('xmlns:xforms', 'http://www.w3.org/2002/xforms'); + $objWriter->writeAttribute('xmlns:xsd', 'http://www.w3.org/2001/XMLSchema'); + $objWriter->writeAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); + $objWriter->writeAttribute('xmlns:rpt', 'http://openoffice.org/2005/report'); + $objWriter->writeAttribute('xmlns:of', 'urn:oasis:names:tc:opendocument:xmlns:of:1.2'); + $objWriter->writeAttribute('xmlns:xhtml', 'http://www.w3.org/1999/xhtml'); + $objWriter->writeAttribute('xmlns:grddl', 'http://www.w3.org/2003/g/data-view#'); + $objWriter->writeAttribute('xmlns:tableooo', 'http://openoffice.org/2009/table'); + $objWriter->writeAttribute('xmlns:field', 'urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0'); + $objWriter->writeAttribute('xmlns:formx', 'urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0'); + $objWriter->writeAttribute('xmlns:css3t', 'http://www.w3.org/TR/css3-text/'); + $objWriter->writeAttribute('office:version', '1.2'); + + $objWriter->writeElement('office:scripts'); + $objWriter->writeElement('office:font-face-decls'); + $objWriter->writeElement('office:automatic-styles'); + + $objWriter->startElement('office:body'); + $objWriter->startElement('office:spreadsheet'); + $objWriter->writeElement('table:calculation-settings'); + $this->_writeSheets($objWriter); + $objWriter->writeElement('table:named-expressions'); + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + + return $objWriter->getData(); + } + + /** + * Write sheets + * + * @param PHPExcel_Shared_XMLWriter $objWriter + */ + private function _writeSheets(PHPExcel_Shared_XMLWriter $objWriter) + { + $pPHPExcel = $this->getParentWriter()->getPHPExcel(); /* @var $pPHPExcel PHPExcel */ + + $sheet_count = $pPHPExcel->getSheetCount(); + for ($i = 0; $i < $sheet_count; $i++) { + //$this->getWriterPart('Worksheet')->writeWorksheet()); + $objWriter->startElement('table:table'); + $objWriter->writeAttribute('table:name', $pPHPExcel->getSheet($i)->getTitle()); + $objWriter->writeElement('office:forms'); + $objWriter->startElement('table:table-column'); + $objWriter->writeAttribute('table:number-columns-repeated', self::NUMBER_COLS_REPEATED_MAX); + $objWriter->endElement(); + $this->_writeRows($objWriter, $pPHPExcel->getSheet($i)); + $objWriter->endElement(); + } + } + + /** + * Write rows of the specified sheet + * + * @param PHPExcel_Shared_XMLWriter $objWriter + * @param PHPExcel_Worksheet $sheet + */ + private function _writeRows(PHPExcel_Shared_XMLWriter $objWriter, PHPExcel_Worksheet $sheet) + { + $number_rows_repeated = self::NUMBER_ROWS_REPEATED_MAX; + $span_row = 0; + $rows = $sheet->getRowIterator(); + while ($rows->valid()) { + $number_rows_repeated--; + $row = $rows->current(); + if ($row->getCellIterator()->valid()) { + if ($span_row) { + $objWriter->startElement('table:table-row'); + if ($span_row > 1) { + $objWriter->writeAttribute('table:number-rows-repeated', $span_row); + } + $objWriter->startElement('table:table-cell'); + $objWriter->writeAttribute('table:number-columns-repeated', self::NUMBER_COLS_REPEATED_MAX); + $objWriter->endElement(); + $objWriter->endElement(); + $span_row = 0; + } + $objWriter->startElement('table:table-row'); + $this->_writeCells($objWriter, $row); + $objWriter->endElement(); + } else { + $span_row++; + } + $rows->next(); + } + } + + /** + * Write cells of the specified row + * + * @param PHPExcel_Shared_XMLWriter $objWriter + * @param PHPExcel_Worksheet_Row $row + * @throws PHPExcel_Writer_Exception + */ + private function _writeCells(PHPExcel_Shared_XMLWriter $objWriter, PHPExcel_Worksheet_Row $row) + { + $number_cols_repeated = self::NUMBER_COLS_REPEATED_MAX; + $prev_column = -1; + $cells = $row->getCellIterator(); + while ($cells->valid()) { + $cell = $cells->current(); + $column = PHPExcel_Cell::columnIndexFromString($cell->getColumn()) - 1; + + $this->_writeCellSpan($objWriter, $column, $prev_column); + $objWriter->startElement('table:table-cell'); + + switch ($cell->getDataType()) { + case PHPExcel_Cell_DataType::TYPE_BOOL: + $objWriter->writeAttribute('office:value-type', 'boolean'); + $objWriter->writeAttribute('office:value', $cell->getValue()); + $objWriter->writeElement('text:p', $cell->getValue()); + break; + + case PHPExcel_Cell_DataType::TYPE_ERROR: + throw new PHPExcel_Writer_Exception('Writing of error not implemented yet.'); + break; + + case PHPExcel_Cell_DataType::TYPE_FORMULA: + try { + $formula_value = $cell->getCalculatedValue(); + } catch (Exception $e) { + $formula_value = $cell->getValue(); + } + $objWriter->writeAttribute('table:formula', 'of:' . $cell->getValue()); + if (is_numeric($formula_value)) { + $objWriter->writeAttribute('office:value-type', 'float'); + } else { + $objWriter->writeAttribute('office:value-type', 'string'); + } + $objWriter->writeAttribute('office:value', $formula_value); + $objWriter->writeElement('text:p', $formula_value); + break; + + case PHPExcel_Cell_DataType::TYPE_INLINE: + throw new PHPExcel_Writer_Exception('Writing of inline not implemented yet.'); + break; + + case PHPExcel_Cell_DataType::TYPE_NUMERIC: + $objWriter->writeAttribute('office:value-type', 'float'); + $objWriter->writeAttribute('office:value', $cell->getValue()); + $objWriter->writeElement('text:p', $cell->getValue()); + break; + + case PHPExcel_Cell_DataType::TYPE_STRING: + $objWriter->writeAttribute('office:value-type', 'string'); + $objWriter->writeElement('text:p', $cell->getValue()); + break; + } + PHPExcel_Writer_OpenDocument_Cell_Comment::write($objWriter, $cell); + $objWriter->endElement(); + $prev_column = $column; + $cells->next(); + } + $number_cols_repeated = $number_cols_repeated - $prev_column - 1; + if ($number_cols_repeated > 0) { + if ($number_cols_repeated > 1) { + $objWriter->startElement('table:table-cell'); + $objWriter->writeAttribute('table:number-columns-repeated', $number_cols_repeated); + $objWriter->endElement(); + } else { + $objWriter->writeElement('table:table-cell'); + } + } + } + + /** + * Write span + * + * @param PHPExcel_Shared_XMLWriter $objWriter + * @param integer $curColumn + * @param integer $prevColumn + */ + private function _writeCellSpan(PHPExcel_Shared_XMLWriter $objWriter, $curColumn, $prevColumn) + { + $diff = $curColumn - $prevColumn - 1; + if (1 === $diff) { + $objWriter->writeElement('table:table-cell'); + } elseif ($diff > 1) { + $objWriter->startElement('table:table-cell'); + $objWriter->writeAttribute('table:number-columns-repeated', $diff); + $objWriter->endElement(); + } + } +} diff --git a/admin/helpers/PHPExcel/Writer/OpenDocument/Meta.php b/admin/helpers/PHPExcel/Writer/OpenDocument/Meta.php new file mode 100644 index 00000000..7f39e558 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/OpenDocument/Meta.php @@ -0,0 +1,98 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_OpenDocument_Meta + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @author Alexander Pervakov <frost-nzcr4@jagmort.com> + */ +class PHPExcel_Writer_OpenDocument_Meta extends PHPExcel_Writer_OpenDocument_WriterPart +{ + /** + * Write meta.xml to XML format + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function write(PHPExcel $pPHPExcel = null) + { + if (!$pPHPExcel) { + $pPHPExcel = $this->getParentWriter()->getPHPExcel(); + } + + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0', 'UTF-8'); + + // Meta + $objWriter->startElement('office:document-meta'); + $objWriter->writeAttribute('xmlns:office', 'urn:oasis:names:tc:opendocument:xmlns:office:1.0'); + $objWriter->writeAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink'); + $objWriter->writeAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/'); + $objWriter->writeAttribute('xmlns:meta', 'urn:oasis:names:tc:opendocument:xmlns:meta:1.0'); + $objWriter->writeAttribute('xmlns:ooo', 'http://openoffice.org/2004/office'); + $objWriter->writeAttribute('xmlns:grddl', 'http://www.w3.org/2003/g/data-view#'); + $objWriter->writeAttribute('office:version', '1.2'); + + $objWriter->startElement('office:meta'); + $objWriter->writeElement('meta:initial-creator', $pPHPExcel->getProperties()->getCreator()); + $objWriter->writeElement('dc:creator', $pPHPExcel->getProperties()->getCreator()); + $objWriter->writeElement('meta:creation-date', date(DATE_W3C, $pPHPExcel->getProperties()->getCreated())); + $objWriter->writeElement('dc:date', date(DATE_W3C, $pPHPExcel->getProperties()->getCreated())); + $objWriter->writeElement('dc:title', $pPHPExcel->getProperties()->getTitle()); + $objWriter->writeElement('dc:description', $pPHPExcel->getProperties()->getDescription()); + $objWriter->writeElement('dc:subject', $pPHPExcel->getProperties()->getSubject()); + $keywords = explode(' ', $pPHPExcel->getProperties()->getKeywords()); + foreach ($keywords as $keyword) { + $objWriter->writeElement('meta:keyword', $keyword); + } + //<meta:document-statistic meta:table-count="XXX" meta:cell-count="XXX" meta:object-count="XXX"/> + $objWriter->startElement('meta:user-defined'); + $objWriter->writeAttribute('meta:name', 'Company'); + $objWriter->writeRaw($pPHPExcel->getProperties()->getCompany()); + $objWriter->endElement(); + $objWriter->startElement('meta:user-defined'); + $objWriter->writeAttribute('meta:name', 'category'); + $objWriter->writeRaw($pPHPExcel->getProperties()->getCategory()); + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + + return $objWriter->getData(); + } +} diff --git a/admin/helpers/PHPExcel/Writer/OpenDocument/MetaInf.php b/admin/helpers/PHPExcel/Writer/OpenDocument/MetaInf.php new file mode 100644 index 00000000..301d39db --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/OpenDocument/MetaInf.php @@ -0,0 +1,96 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_OpenDocument_MetaInf + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @author Alexander Pervakov <frost-nzcr4@jagmort.com> + */ +class PHPExcel_Writer_OpenDocument_MetaInf extends PHPExcel_Writer_OpenDocument_WriterPart +{ + /** + * Write META-INF/manifest.xml to XML format + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeManifest(PHPExcel $pPHPExcel = null) + { + if (!$pPHPExcel) { + $pPHPExcel = $this->getParentWriter()->getPHPExcel(); + } + + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0', 'UTF-8'); + + // Manifest + $objWriter->startElement('manifest:manifest'); + $objWriter->writeAttribute('xmlns:manifest', 'urn:oasis:names:tc:opendocument:xmlns:manifest:1.0'); + $objWriter->writeAttribute('manifest:version', '1.2'); + + $objWriter->startElement('manifest:file-entry'); + $objWriter->writeAttribute('manifest:full-path', '/'); + $objWriter->writeAttribute('manifest:version', '1.2'); + $objWriter->writeAttribute('manifest:media-type', 'application/vnd.oasis.opendocument.spreadsheet'); + $objWriter->endElement(); + $objWriter->startElement('manifest:file-entry'); + $objWriter->writeAttribute('manifest:full-path', 'meta.xml'); + $objWriter->writeAttribute('manifest:media-type', 'text/xml'); + $objWriter->endElement(); + $objWriter->startElement('manifest:file-entry'); + $objWriter->writeAttribute('manifest:full-path', 'settings.xml'); + $objWriter->writeAttribute('manifest:media-type', 'text/xml'); + $objWriter->endElement(); + $objWriter->startElement('manifest:file-entry'); + $objWriter->writeAttribute('manifest:full-path', 'content.xml'); + $objWriter->writeAttribute('manifest:media-type', 'text/xml'); + $objWriter->endElement(); + $objWriter->startElement('manifest:file-entry'); + $objWriter->writeAttribute('manifest:full-path', 'Thumbnails/thumbnail.png'); + $objWriter->writeAttribute('manifest:media-type', 'image/png'); + $objWriter->endElement(); + $objWriter->startElement('manifest:file-entry'); + $objWriter->writeAttribute('manifest:full-path', 'styles.xml'); + $objWriter->writeAttribute('manifest:media-type', 'text/xml'); + $objWriter->endElement(); + $objWriter->endElement(); + + return $objWriter->getData(); + } +} diff --git a/admin/helpers/PHPExcel/Writer/OpenDocument/Mimetype.php b/admin/helpers/PHPExcel/Writer/OpenDocument/Mimetype.php new file mode 100644 index 00000000..99ff638a --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/OpenDocument/Mimetype.php @@ -0,0 +1,50 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_OpenDocument_Mimetype + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @author Alexander Pervakov <frost-nzcr4@jagmort.com> + */ +class PHPExcel_Writer_OpenDocument_Mimetype extends PHPExcel_Writer_OpenDocument_WriterPart +{ + /** + * Write mimetype to plain text format + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function write(PHPExcel $pPHPExcel = null) + { + return 'application/vnd.oasis.opendocument.spreadsheet'; + } +} diff --git a/admin/helpers/PHPExcel/Writer/OpenDocument/Settings.php b/admin/helpers/PHPExcel/Writer/OpenDocument/Settings.php new file mode 100644 index 00000000..557e748d --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/OpenDocument/Settings.php @@ -0,0 +1,85 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_OpenDocument_Settings + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @author Alexander Pervakov <frost-nzcr4@jagmort.com> + */ +class PHPExcel_Writer_OpenDocument_Settings extends PHPExcel_Writer_OpenDocument_WriterPart +{ + /** + * Write settings.xml to XML format + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function write(PHPExcel $pPHPExcel = null) + { + if (!$pPHPExcel) { + $pPHPExcel = $this->getParentWriter()->getPHPExcel(); + } + + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0', 'UTF-8'); + + // Settings + $objWriter->startElement('office:document-settings'); + $objWriter->writeAttribute('xmlns:office', 'urn:oasis:names:tc:opendocument:xmlns:office:1.0'); + $objWriter->writeAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink'); + $objWriter->writeAttribute('xmlns:config', 'urn:oasis:names:tc:opendocument:xmlns:config:1.0'); + $objWriter->writeAttribute('xmlns:ooo', 'http://openoffice.org/2004/office'); + $objWriter->writeAttribute('office:version', '1.2'); + + $objWriter->startElement('office:settings'); + $objWriter->startElement('config:config-item-set'); + $objWriter->writeAttribute('config:name', 'ooo:view-settings'); + $objWriter->startElement('config:config-item-map-indexed'); + $objWriter->writeAttribute('config:name', 'Views'); + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->startElement('config:config-item-set'); + $objWriter->writeAttribute('config:name', 'ooo:configuration-settings'); + $objWriter->endElement(); + $objWriter->endElement(); + $objWriter->endElement(); + + return $objWriter->getData(); + } +} diff --git a/admin/helpers/PHPExcel/Writer/OpenDocument/Styles.php b/admin/helpers/PHPExcel/Writer/OpenDocument/Styles.php new file mode 100644 index 00000000..d8867363 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/OpenDocument/Styles.php @@ -0,0 +1,101 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_OpenDocument_Styles + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @author Alexander Pervakov <frost-nzcr4@jagmort.com> + */ +class PHPExcel_Writer_OpenDocument_Styles extends PHPExcel_Writer_OpenDocument_WriterPart +{ + /** + * Write styles.xml to XML format + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function write(PHPExcel $pPHPExcel = null) + { + if (!$pPHPExcel) { + $pPHPExcel = $this->getParentWriter()->getPHPExcel(); + } + + $objWriter = null; + if ($this->getParentWriter()->getUseDiskCaching()) { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); + } else { + $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); + } + + // XML header + $objWriter->startDocument('1.0', 'UTF-8'); + + // Content + $objWriter->startElement('office:document-styles'); + $objWriter->writeAttribute('xmlns:office', 'urn:oasis:names:tc:opendocument:xmlns:office:1.0'); + $objWriter->writeAttribute('xmlns:style', 'urn:oasis:names:tc:opendocument:xmlns:style:1.0'); + $objWriter->writeAttribute('xmlns:text', 'urn:oasis:names:tc:opendocument:xmlns:text:1.0'); + $objWriter->writeAttribute('xmlns:table', 'urn:oasis:names:tc:opendocument:xmlns:table:1.0'); + $objWriter->writeAttribute('xmlns:draw', 'urn:oasis:names:tc:opendocument:xmlns:drawing:1.0'); + $objWriter->writeAttribute('xmlns:fo', 'urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0'); + $objWriter->writeAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink'); + $objWriter->writeAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/'); + $objWriter->writeAttribute('xmlns:meta', 'urn:oasis:names:tc:opendocument:xmlns:meta:1.0'); + $objWriter->writeAttribute('xmlns:number', 'urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0'); + $objWriter->writeAttribute('xmlns:presentation', 'urn:oasis:names:tc:opendocument:xmlns:presentation:1.0'); + $objWriter->writeAttribute('xmlns:svg', 'urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0'); + $objWriter->writeAttribute('xmlns:chart', 'urn:oasis:names:tc:opendocument:xmlns:chart:1.0'); + $objWriter->writeAttribute('xmlns:dr3d', 'urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0'); + $objWriter->writeAttribute('xmlns:math', 'http://www.w3.org/1998/Math/MathML'); + $objWriter->writeAttribute('xmlns:form', 'urn:oasis:names:tc:opendocument:xmlns:form:1.0'); + $objWriter->writeAttribute('xmlns:script', 'urn:oasis:names:tc:opendocument:xmlns:script:1.0'); + $objWriter->writeAttribute('xmlns:ooo', 'http://openoffice.org/2004/office'); + $objWriter->writeAttribute('xmlns:ooow', 'http://openoffice.org/2004/writer'); + $objWriter->writeAttribute('xmlns:oooc', 'http://openoffice.org/2004/calc'); + $objWriter->writeAttribute('xmlns:dom', 'http://www.w3.org/2001/xml-events'); + $objWriter->writeAttribute('xmlns:rpt', 'http://openoffice.org/2005/report'); + $objWriter->writeAttribute('xmlns:of', 'urn:oasis:names:tc:opendocument:xmlns:of:1.2'); + $objWriter->writeAttribute('xmlns:xhtml', 'http://www.w3.org/1999/xhtml'); + $objWriter->writeAttribute('xmlns:grddl', 'http://www.w3.org/2003/g/data-view#'); + $objWriter->writeAttribute('xmlns:tableooo', 'http://openoffice.org/2009/table'); + $objWriter->writeAttribute('xmlns:css3t', 'http://www.w3.org/TR/css3-text/'); + $objWriter->writeAttribute('office:version', '1.2'); + + $objWriter->writeElement('office:font-face-decls'); + $objWriter->writeElement('office:styles'); + $objWriter->writeElement('office:automatic-styles'); + $objWriter->writeElement('office:master-styles'); + $objWriter->endElement(); + + return $objWriter->getData(); + } +} diff --git a/admin/helpers/PHPExcel/Writer/OpenDocument/Thumbnails.php b/admin/helpers/PHPExcel/Writer/OpenDocument/Thumbnails.php new file mode 100644 index 00000000..a7e85c45 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/OpenDocument/Thumbnails.php @@ -0,0 +1,50 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_OpenDocument_Thumbnails + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @author Alexander Pervakov <frost-nzcr4@jagmort.com> + */ +class PHPExcel_Writer_OpenDocument_Thumbnails extends PHPExcel_Writer_OpenDocument_WriterPart +{ + /** + * Write Thumbnails/thumbnail.png to PNG format + * + * @param PHPExcel $pPHPExcel + * @return string XML Output + * @throws PHPExcel_Writer_Exception + */ + public function writeThumbnail(PHPExcel $pPHPExcel = null) + { + return ''; + } +} diff --git a/admin/helpers/PHPExcel/Writer/OpenDocument/WriterPart.php b/admin/helpers/PHPExcel/Writer/OpenDocument/WriterPart.php new file mode 100644 index 00000000..e6e713a1 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/OpenDocument/WriterPart.php @@ -0,0 +1,38 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_OpenDocument_WriterPart + * + * @category PHPExcel + * @package PHPExcel_Writer_OpenDocument + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +abstract class PHPExcel_Writer_OpenDocument_WriterPart extends PHPExcel_Writer_Excel2007_WriterPart +{ +} diff --git a/admin/helpers/PHPExcel/Writer/PDF.php b/admin/helpers/PHPExcel/Writer/PDF.php new file mode 100644 index 00000000..4111f8bd --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/PDF.php @@ -0,0 +1,90 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_PDF + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_PDF + * + * @category PHPExcel + * @package PHPExcel_Writer_PDF + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_PDF +{ + + /** + * The wrapper for the requested PDF rendering engine + * + * @var PHPExcel_Writer_PDF_Core + */ + private $_renderer = NULL; + + /** + * Instantiate a new renderer of the configured type within this container class + * + * @param PHPExcel $phpExcel PHPExcel object + * @throws PHPExcel_Writer_Exception when PDF library is not configured + */ + public function __construct(PHPExcel $phpExcel) + { + $pdfLibraryName = PHPExcel_Settings::getPdfRendererName(); + if (is_null($pdfLibraryName)) { + throw new PHPExcel_Writer_Exception("PDF Rendering library has not been defined."); + } + + $pdfLibraryPath = PHPExcel_Settings::getPdfRendererPath(); + if (is_null($pdfLibraryName)) { + throw new PHPExcel_Writer_Exception("PDF Rendering library path has not been defined."); + } + $includePath = str_replace('\\', '/', get_include_path()); + $rendererPath = str_replace('\\', '/', $pdfLibraryPath); + if (strpos($rendererPath, $includePath) === false) { + set_include_path(get_include_path() . PATH_SEPARATOR . $pdfLibraryPath); + } + + $rendererName = 'PHPExcel_Writer_PDF_' . $pdfLibraryName; + $this->_renderer = new $rendererName($phpExcel); + } + + + /** + * Magic method to handle direct calls to the configured PDF renderer wrapper class. + * + * @param string $name Renderer library method name + * @param mixed[] $arguments Array of arguments to pass to the renderer method + * @return mixed Returned data from the PDF renderer wrapper method + */ + public function __call($name, $arguments) + { + if ($this->_renderer === NULL) { + throw new PHPExcel_Writer_Exception("PDF Rendering library has not been defined."); + } + + return call_user_func_array(array($this->_renderer, $name), $arguments); + } + +} diff --git a/admin/helpers/PHPExcel/Writer/PDF/Core.php b/admin/helpers/PHPExcel/Writer/PDF/Core.php new file mode 100644 index 00000000..3842334d --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/PDF/Core.php @@ -0,0 +1,364 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_PDF + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** + * PHPExcel_Writer_PDF_Core + * + * @category PHPExcel + * @package PHPExcel_Writer_PDF + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +abstract class PHPExcel_Writer_PDF_Core extends PHPExcel_Writer_HTML +{ + /** + * Temporary storage directory + * + * @var string + */ + protected $_tempDir = ''; + + /** + * Font + * + * @var string + */ + protected $_font = 'freesans'; + + /** + * Orientation (Over-ride) + * + * @var string + */ + protected $_orientation = NULL; + + /** + * Paper size (Over-ride) + * + * @var int + */ + protected $_paperSize = NULL; + + + /** + * Temporary storage for Save Array Return type + * + * @var string + */ + private $_saveArrayReturnType; + + /** + * Paper Sizes xRef List + * + * @var array + */ + protected static $_paperSizes = array( + PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER + => 'LETTER', // (8.5 in. by 11 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_SMALL + => 'LETTER', // (8.5 in. by 11 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_TABLOID + => array(792.00, 1224.00), // (11 in. by 17 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_LEDGER + => array(1224.00, 792.00), // (17 in. by 11 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_LEGAL + => 'LEGAL', // (8.5 in. by 14 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_STATEMENT + => array(396.00, 612.00), // (5.5 in. by 8.5 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_EXECUTIVE + => 'EXECUTIVE', // (7.25 in. by 10.5 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_A3 + => 'A3', // (297 mm by 420 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4 + => 'A4', // (210 mm by 297 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4_SMALL + => 'A4', // (210 mm by 297 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_A5 + => 'A5', // (148 mm by 210 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_B4 + => 'B4', // (250 mm by 353 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_B5 + => 'B5', // (176 mm by 250 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_FOLIO + => 'FOLIO', // (8.5 in. by 13 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_QUARTO + => array(609.45, 779.53), // (215 mm by 275 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_STANDARD_1 + => array(720.00, 1008.00), // (10 in. by 14 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_STANDARD_2 + => array(792.00, 1224.00), // (11 in. by 17 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_NOTE + => 'LETTER', // (8.5 in. by 11 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_NO9_ENVELOPE + => array(279.00, 639.00), // (3.875 in. by 8.875 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_NO10_ENVELOPE + => array(297.00, 684.00), // (4.125 in. by 9.5 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_NO11_ENVELOPE + => array(324.00, 747.00), // (4.5 in. by 10.375 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_NO12_ENVELOPE + => array(342.00, 792.00), // (4.75 in. by 11 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_NO14_ENVELOPE + => array(360.00, 828.00), // (5 in. by 11.5 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_C + => array(1224.00, 1584.00), // (17 in. by 22 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_D + => array(1584.00, 2448.00), // (22 in. by 34 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_E + => array(2448.00, 3168.00), // (34 in. by 44 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_DL_ENVELOPE + => array(311.81, 623.62), // (110 mm by 220 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_C5_ENVELOPE + => 'C5', // (162 mm by 229 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_C3_ENVELOPE + => 'C3', // (324 mm by 458 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_C4_ENVELOPE + => 'C4', // (229 mm by 324 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_C6_ENVELOPE + => 'C6', // (114 mm by 162 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_C65_ENVELOPE + => array(323.15, 649.13), // (114 mm by 229 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_B4_ENVELOPE + => 'B4', // (250 mm by 353 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_B5_ENVELOPE + => 'B5', // (176 mm by 250 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_B6_ENVELOPE + => array(498.90, 354.33), // (176 mm by 125 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_ITALY_ENVELOPE + => array(311.81, 651.97), // (110 mm by 230 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_MONARCH_ENVELOPE + => array(279.00, 540.00), // (3.875 in. by 7.5 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_6_3_4_ENVELOPE + => array(261.00, 468.00), // (3.625 in. by 6.5 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_US_STANDARD_FANFOLD + => array(1071.00, 792.00), // (14.875 in. by 11 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_GERMAN_STANDARD_FANFOLD + => array(612.00, 864.00), // (8.5 in. by 12 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_GERMAN_LEGAL_FANFOLD + => 'FOLIO', // (8.5 in. by 13 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_ISO_B4 + => 'B4', // (250 mm by 353 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_JAPANESE_DOUBLE_POSTCARD + => array(566.93, 419.53), // (200 mm by 148 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_STANDARD_PAPER_1 + => array(648.00, 792.00), // (9 in. by 11 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_STANDARD_PAPER_2 + => array(720.00, 792.00), // (10 in. by 11 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_STANDARD_PAPER_3 + => array(1080.00, 792.00), // (15 in. by 11 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_INVITE_ENVELOPE + => array(623.62, 623.62), // (220 mm by 220 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_EXTRA_PAPER + => array(667.80, 864.00), // (9.275 in. by 12 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_LEGAL_EXTRA_PAPER + => array(667.80, 1080.00), // (9.275 in. by 15 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_TABLOID_EXTRA_PAPER + => array(841.68, 1296.00), // (11.69 in. by 18 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4_EXTRA_PAPER + => array(668.98, 912.76), // (236 mm by 322 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_TRANSVERSE_PAPER + => array(595.80, 792.00), // (8.275 in. by 11 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4_TRANSVERSE_PAPER + => 'A4', // (210 mm by 297 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_EXTRA_TRANSVERSE_PAPER + => array(667.80, 864.00), // (9.275 in. by 12 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_SUPERA_SUPERA_A4_PAPER + => array(643.46, 1009.13), // (227 mm by 356 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_SUPERB_SUPERB_A3_PAPER + => array(864.57, 1380.47), // (305 mm by 487 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_PLUS_PAPER + => array(612.00, 913.68), // (8.5 in. by 12.69 in.) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4_PLUS_PAPER + => array(595.28, 935.43), // (210 mm by 330 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_A5_TRANSVERSE_PAPER + => 'A5', // (148 mm by 210 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_JIS_B5_TRANSVERSE_PAPER + => array(515.91, 728.50), // (182 mm by 257 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_A3_EXTRA_PAPER + => array(912.76, 1261.42), // (322 mm by 445 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_A5_EXTRA_PAPER + => array(493.23, 666.14), // (174 mm by 235 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_ISO_B5_EXTRA_PAPER + => array(569.76, 782.36), // (201 mm by 276 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_A2_PAPER + => 'A2', // (420 mm by 594 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_A3_TRANSVERSE_PAPER + => 'A3', // (297 mm by 420 mm) + PHPExcel_Worksheet_PageSetup::PAPERSIZE_A3_EXTRA_TRANSVERSE_PAPER + => array(912.76, 1261.42) // (322 mm by 445 mm) + ); + + /** + * Create a new PHPExcel_Writer_PDF + * + * @param PHPExcel $phpExcel PHPExcel object + */ + public function __construct(PHPExcel $phpExcel) + { + parent::__construct($phpExcel); + $this->setUseInlineCss(TRUE); + $this->_tempDir = PHPExcel_Shared_File::sys_get_temp_dir(); + } + + /** + * Get Font + * + * @return string + */ + public function getFont() + { + return $this->_font; + } + + /** + * Set font. Examples: + * 'arialunicid0-chinese-simplified' + * 'arialunicid0-chinese-traditional' + * 'arialunicid0-korean' + * 'arialunicid0-japanese' + * + * @param string $fontName + */ + public function setFont($fontName) + { + $this->_font = $fontName; + return $this; + } + + /** + * Get Paper Size + * + * @return int + */ + public function getPaperSize() + { + return $this->_paperSize; + } + + /** + * Set Paper Size + * + * @param string $pValue Paper size + * @return PHPExcel_Writer_PDF + */ + public function setPaperSize($pValue = PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER) + { + $this->_paperSize = $pValue; + return $this; + } + + /** + * Get Orientation + * + * @return string + */ + public function getOrientation() + { + return $this->_orientation; + } + + /** + * Set Orientation + * + * @param string $pValue Page orientation + * @return PHPExcel_Writer_PDF + */ + public function setOrientation($pValue = PHPExcel_Worksheet_PageSetup::ORIENTATION_DEFAULT) + { + $this->_orientation = $pValue; + return $this; + } + + /** + * Get temporary storage directory + * + * @return string + */ + public function getTempDir() + { + return $this->_tempDir; + } + + /** + * Set temporary storage directory + * + * @param string $pValue Temporary storage directory + * @throws PHPExcel_Writer_Exception when directory does not exist + * @return PHPExcel_Writer_PDF + */ + public function setTempDir($pValue = '') + { + if (is_dir($pValue)) { + $this->_tempDir = $pValue; + } else { + throw new PHPExcel_Writer_Exception("Directory does not exist: $pValue"); + } + return $this; + } + + /** + * Save PHPExcel to PDF file, pre-save + * + * @param string $pFilename Name of the file to save as + * @throws PHPExcel_Writer_Exception + */ + protected function prepareForSave($pFilename = NULL) + { + // garbage collect + $this->_phpExcel->garbageCollect(); + + $this->_saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType(); + PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE); + + // Open file + $fileHandle = fopen($pFilename, 'w'); + if ($fileHandle === FALSE) { + throw new PHPExcel_Writer_Exception("Could not open file $pFilename for writing."); + } + + // Set PDF + $this->_isPdf = TRUE; + // Build CSS + $this->buildCSS(TRUE); + + return $fileHandle; + } + + /** + * Save PHPExcel to PDF file, post-save + * + * @param resource $fileHandle + * @throws PHPExcel_Writer_Exception + */ + protected function restoreStateAfterSave($fileHandle) + { + // Close file + fclose($fileHandle); + + PHPExcel_Calculation::setArrayReturnType($this->_saveArrayReturnType); + } + +} diff --git a/admin/helpers/PHPExcel/Writer/PDF/DomPDF.php b/admin/helpers/PHPExcel/Writer/PDF/DomPDF.php new file mode 100644 index 00000000..01e4e012 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/PDF/DomPDF.php @@ -0,0 +1,122 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_PDF + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** Require DomPDF library */ +$pdfRendererClassFile = PHPExcel_Settings::getPdfRendererPath() . '/dompdf_config.inc.php'; +if (file_exists($pdfRendererClassFile)) { + require_once $pdfRendererClassFile; +} else { + throw new PHPExcel_Writer_Exception('Unable to load PDF Rendering library'); +} + +/** + * PHPExcel_Writer_PDF_DomPDF + * + * @category PHPExcel + * @package PHPExcel_Writer_PDF + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_PDF_DomPDF extends PHPExcel_Writer_PDF_Core implements PHPExcel_Writer_IWriter +{ + /** + * Create a new PHPExcel_Writer_PDF + * + * @param PHPExcel $phpExcel PHPExcel object + */ + public function __construct(PHPExcel $phpExcel) + { + parent::__construct($phpExcel); + } + + /** + * Save PHPExcel to file + * + * @param string $pFilename Name of the file to save as + * @throws PHPExcel_Writer_Exception + */ + public function save($pFilename = NULL) + { + $fileHandle = parent::prepareForSave($pFilename); + + // Default PDF paper size + $paperSize = 'LETTER'; // Letter (8.5 in. by 11 in.) + + // Check for paper size and page orientation + if (is_null($this->getSheetIndex())) { + $orientation = ($this->_phpExcel->getSheet(0)->getPageSetup()->getOrientation() + == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) + ? 'L' + : 'P'; + $printPaperSize = $this->_phpExcel->getSheet(0)->getPageSetup()->getPaperSize(); + $printMargins = $this->_phpExcel->getSheet(0)->getPageMargins(); + } else { + $orientation = ($this->_phpExcel->getSheet($this->getSheetIndex())->getPageSetup()->getOrientation() + == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) + ? 'L' + : 'P'; + $printPaperSize = $this->_phpExcel->getSheet($this->getSheetIndex())->getPageSetup()->getPaperSize(); + $printMargins = $this->_phpExcel->getSheet($this->getSheetIndex())->getPageMargins(); + } + + + $orientation = ($orientation == 'L') ? 'landscape' : 'portrait'; + + // Override Page Orientation + if (!is_null($this->getOrientation())) { + $orientation = ($this->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_DEFAULT) + ? PHPExcel_Worksheet_PageSetup::ORIENTATION_PORTRAIT + : $this->getOrientation(); + } + // Override Paper Size + if (!is_null($this->getPaperSize())) { + $printPaperSize = $this->getPaperSize(); + } + + if (isset(self::$_paperSizes[$printPaperSize])) { + $paperSize = self::$_paperSizes[$printPaperSize]; + } + + + // Create PDF + $pdf = new DOMPDF(); + $pdf->set_paper(strtolower($paperSize), $orientation); + + $pdf->load_html( + $this->generateHTMLHeader(FALSE) . + $this->generateSheetData() . + $this->generateHTMLFooter() + ); + $pdf->render(); + + // Write to file + fwrite($fileHandle, $pdf->output()); + + parent::restoreStateAfterSave($fileHandle); + } + +} diff --git a/admin/helpers/PHPExcel/Writer/PDF/index.html b/admin/helpers/PHPExcel/Writer/PDF/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/PDF/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/Writer/PDF/mPDF.php b/admin/helpers/PHPExcel/Writer/PDF/mPDF.php new file mode 100644 index 00000000..dddc097d --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/PDF/mPDF.php @@ -0,0 +1,130 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_PDF + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** Require mPDF library */ +$pdfRendererClassFile = PHPExcel_Settings::getPdfRendererPath() . '/mpdf.php'; +if (file_exists($pdfRendererClassFile)) { + require_once $pdfRendererClassFile; +} else { + throw new PHPExcel_Writer_Exception('Unable to load PDF Rendering library'); +} + +/** + * PHPExcel_Writer_PDF_mPDF + * + * @category PHPExcel + * @package PHPExcel_Writer_PDF + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_PDF_mPDF extends PHPExcel_Writer_PDF_Core implements PHPExcel_Writer_IWriter +{ + /** + * Create a new PHPExcel_Writer_PDF + * + * @param PHPExcel $phpExcel PHPExcel object + */ + public function __construct(PHPExcel $phpExcel) + { + parent::__construct($phpExcel); + } + + /** + * Save PHPExcel to file + * + * @param string $pFilename Name of the file to save as + * @throws PHPExcel_Writer_Exception + */ + public function save($pFilename = NULL) + { + $fileHandle = parent::prepareForSave($pFilename); + + // Default PDF paper size + $paperSize = 'LETTER'; // Letter (8.5 in. by 11 in.) + + // Check for paper size and page orientation + if (is_null($this->getSheetIndex())) { + $orientation = ($this->_phpExcel->getSheet(0)->getPageSetup()->getOrientation() + == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) + ? 'L' + : 'P'; + $printPaperSize = $this->_phpExcel->getSheet(0)->getPageSetup()->getPaperSize(); + $printMargins = $this->_phpExcel->getSheet(0)->getPageMargins(); + } else { + $orientation = ($this->_phpExcel->getSheet($this->getSheetIndex())->getPageSetup()->getOrientation() + == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) + ? 'L' + : 'P'; + $printPaperSize = $this->_phpExcel->getSheet($this->getSheetIndex())->getPageSetup()->getPaperSize(); + $printMargins = $this->_phpExcel->getSheet($this->getSheetIndex())->getPageMargins(); + } + $this->setOrientation($orientation); + + // Override Page Orientation + if (!is_null($this->getOrientation())) { + $orientation = ($this->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_DEFAULT) + ? PHPExcel_Worksheet_PageSetup::ORIENTATION_PORTRAIT + : $this->getOrientation(); + } + $orientation = strtoupper($orientation); + + // Override Paper Size + if (!is_null($this->getPaperSize())) { + $printPaperSize = $this->getPaperSize(); + } + + if (isset(self::$_paperSizes[$printPaperSize])) { + $paperSize = self::$_paperSizes[$printPaperSize]; + } + + // Create PDF + $pdf = new mpdf(); + $ortmp = $orientation; + $pdf->_setPageSize(strtoupper($paperSize), $ortmp); + $pdf->DefOrientation = $orientation; + $pdf->AddPage($orientation); + + // Document info + $pdf->SetTitle($this->_phpExcel->getProperties()->getTitle()); + $pdf->SetAuthor($this->_phpExcel->getProperties()->getCreator()); + $pdf->SetSubject($this->_phpExcel->getProperties()->getSubject()); + $pdf->SetKeywords($this->_phpExcel->getProperties()->getKeywords()); + $pdf->SetCreator($this->_phpExcel->getProperties()->getCreator()); + + $pdf->WriteHTML( + $this->generateHTMLHeader(FALSE) . + $this->generateSheetData() . + $this->generateHTMLFooter() + ); + + // Write to file + fwrite($fileHandle, $pdf->Output('', 'S')); + + parent::restoreStateAfterSave($fileHandle); + } + +} diff --git a/admin/helpers/PHPExcel/Writer/PDF/tcPDF.php b/admin/helpers/PHPExcel/Writer/PDF/tcPDF.php new file mode 100644 index 00000000..4e1937af --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/PDF/tcPDF.php @@ -0,0 +1,136 @@ +<?php +/** + * PHPExcel + * + * Copyright (c) 2006 - 2014 PHPExcel + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category PHPExcel + * @package PHPExcel_Writer_PDF + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL + * @version ##VERSION##, ##DATE## + */ + + +/** Require tcPDF library */ +$pdfRendererClassFile = PHPExcel_Settings::getPdfRendererPath() . '/tcpdf.php'; +if (file_exists($pdfRendererClassFile)) { + $k_path_url = PHPExcel_Settings::getPdfRendererPath(); + require_once $pdfRendererClassFile; +} else { + throw new PHPExcel_Writer_Exception('Unable to load PDF Rendering library'); +} + +/** + * PHPExcel_Writer_PDF_tcPDF + * + * @category PHPExcel + * @package PHPExcel_Writer_PDF + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) + */ +class PHPExcel_Writer_PDF_tcPDF extends PHPExcel_Writer_PDF_Core implements PHPExcel_Writer_IWriter +{ + /** + * Create a new PHPExcel_Writer_PDF + * + * @param PHPExcel $phpExcel PHPExcel object + */ + public function __construct(PHPExcel $phpExcel) + { + parent::__construct($phpExcel); + } + + /** + * Save PHPExcel to file + * + * @param string $pFilename Name of the file to save as + * @throws PHPExcel_Writer_Exception + */ + public function save($pFilename = NULL) + { + $fileHandle = parent::prepareForSave($pFilename); + + // Default PDF paper size + $paperSize = 'LETTER'; // Letter (8.5 in. by 11 in.) + + // Check for paper size and page orientation + if (is_null($this->getSheetIndex())) { + $orientation = ($this->_phpExcel->getSheet(0)->getPageSetup()->getOrientation() + == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) + ? 'L' + : 'P'; + $printPaperSize = $this->_phpExcel->getSheet(0)->getPageSetup()->getPaperSize(); + $printMargins = $this->_phpExcel->getSheet(0)->getPageMargins(); + } else { + $orientation = ($this->_phpExcel->getSheet($this->getSheetIndex())->getPageSetup()->getOrientation() + == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) + ? 'L' + : 'P'; + $printPaperSize = $this->_phpExcel->getSheet($this->getSheetIndex())->getPageSetup()->getPaperSize(); + $printMargins = $this->_phpExcel->getSheet($this->getSheetIndex())->getPageMargins(); + } + + // Override Page Orientation + if (!is_null($this->getOrientation())) { + $orientation = ($this->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) + ? 'L' + : 'P'; + } + // Override Paper Size + if (!is_null($this->getPaperSize())) { + $printPaperSize = $this->getPaperSize(); + } + + if (isset(self::$_paperSizes[$printPaperSize])) { + $paperSize = self::$_paperSizes[$printPaperSize]; + } + + + // Create PDF + $pdf = new TCPDF($orientation, 'pt', $paperSize); + $pdf->setFontSubsetting(FALSE); + // Set margins, converting inches to points (using 72 dpi) + $pdf->SetMargins($printMargins->getLeft() * 72, $printMargins->getTop() * 72, $printMargins->getRight() * 72); + $pdf->SetAutoPageBreak(TRUE, $printMargins->getBottom() * 72); + + $pdf->setPrintHeader(FALSE); + $pdf->setPrintFooter(FALSE); + + $pdf->AddPage(); + + // Set the appropriate font + $pdf->SetFont($this->getFont()); + $pdf->writeHTML( + $this->generateHTMLHeader(FALSE) . + $this->generateSheetData() . + $this->generateHTMLFooter() + ); + + // Document info + $pdf->SetTitle($this->_phpExcel->getProperties()->getTitle()); + $pdf->SetAuthor($this->_phpExcel->getProperties()->getCreator()); + $pdf->SetSubject($this->_phpExcel->getProperties()->getSubject()); + $pdf->SetKeywords($this->_phpExcel->getProperties()->getKeywords()); + $pdf->SetCreator($this->_phpExcel->getProperties()->getCreator()); + + // Write to file + fwrite($fileHandle, $pdf->output($pFilename, 'S')); + + parent::restoreStateAfterSave($fileHandle); + } + +} diff --git a/admin/helpers/PHPExcel/Writer/index.html b/admin/helpers/PHPExcel/Writer/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/Writer/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/index.html b/admin/helpers/PHPExcel/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/bg/config b/admin/helpers/PHPExcel/locale/bg/config new file mode 100644 index 00000000..4cecddb3 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/bg/config @@ -0,0 +1,49 @@ +## +## PHPExcel +## + +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = лв + + +## +## Excel Error Codes (For future use) + +## +NULL = #ПРАЗНО! +DIV0 = #ДЕЛ/0! +VALUE = #СТОЙНОСТ! +REF = #РЕФ! +NAME = #ИМЕ? +NUM = #ЧИСЛО! +NA = #Н/Д diff --git a/admin/helpers/PHPExcel/locale/cs/config b/admin/helpers/PHPExcel/locale/cs/config new file mode 100644 index 00000000..42cdf326 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/cs/config @@ -0,0 +1,47 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = Kč + + +## +## Excel Error Codes (For future use) +## +NULL = #NULL! +DIV0 = #DIV/0! +VALUE = #HODNOTA! +REF = #REF! +NAME = #NÁZEV? +NUM = #NUM! +NA = #N/A diff --git a/admin/helpers/PHPExcel/locale/cs/functions b/admin/helpers/PHPExcel/locale/cs/functions new file mode 100644 index 00000000..c0a3cbbf --- /dev/null +++ b/admin/helpers/PHPExcel/locale/cs/functions @@ -0,0 +1,438 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Calculation +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ +## +## + + +## +## Add-in and Automation functions Funkce doplňků a automatizace +## +GETPIVOTDATA = ZÍSKATKONTDATA ## Vrátí data uložená v kontingenční tabulce. Pomocí funkce ZÍSKATKONTDATA můžete načíst souhrnná data z kontingenční tabulky, pokud jsou tato data v kontingenční sestavě zobrazena. + + +## +## Cube functions Funkce pro práci s krychlemi +## +CUBEKPIMEMBER = CUBEKPIMEMBER ## Vrátí název, vlastnost a velikost klíčového ukazatele výkonu (KUV) a zobrazí v buňce název a vlastnost. Klíčový ukazatel výkonu je kvantifikovatelná veličina, například hrubý měsíční zisk nebo čtvrtletní obrat na zaměstnance, která se používá pro sledování výkonnosti organizace. +CUBEMEMBER = CUBEMEMBER ## Vrátí člen nebo n-tici v hierarchii krychle. Slouží k ověření, zda v krychli existuje člen nebo n-tice. +CUBEMEMBERPROPERTY = CUBEMEMBERPROPERTY ## Vrátí hodnotu vlastnosti člena v krychli. Slouží k ověření, zda v krychli existuje člen s daným názvem, a k vrácení konkrétní vlastnosti tohoto člena. +CUBERANKEDMEMBER = CUBERANKEDMEMBER ## Vrátí n-tý nebo pořadový člen sady. Použijte ji pro vrácení jednoho nebo více prvků sady, například obchodníka s nejvyšším obratem nebo deseti nejlepších studentů. +CUBESET = CUBESET ## Definuje vypočtenou sadu členů nebo n-tic odesláním výrazu sady do krychle na serveru, který vytvoří sadu a potom ji vrátí do aplikace Microsoft Office Excel. +CUBESETCOUNT = CUBESETCOUNT ## Vrátí počet položek v množině +CUBEVALUE = CUBEVALUE ## Vrátí úhrnnou hodnotu z krychle. + + +## +## Database functions Funkce databáze +## +DAVERAGE = DPRŮMĚR ## Vrátí průměr vybraných položek databáze. +DCOUNT = DPOČET ## Spočítá buňky databáze obsahující čísla. +DCOUNTA = DPOČET2 ## Spočítá buňky databáze, které nejsou prázdné. +DGET = DZÍSKAT ## Extrahuje z databáze jeden záznam splňující zadaná kritéria. +DMAX = DMAX ## Vrátí maximální hodnotu z vybraných položek databáze. +DMIN = DMIN ## Vrátí minimální hodnotu z vybraných položek databáze. +DPRODUCT = DSOUČIN ## Vynásobí hodnoty určitého pole záznamů v databázi, které splňují daná kritéria. +DSTDEV = DSMODCH.VÝBĚR ## Odhadne směrodatnou odchylku výběru vybraných položek databáze. +DSTDEVP = DSMODCH ## Vypočte směrodatnou odchylku základního souboru vybraných položek databáze. +DSUM = DSUMA ## Sečte čísla ve sloupcovém poli záznamů databáze, která splňují daná kritéria. +DVAR = DVAR.VÝBĚR ## Odhadne rozptyl výběru vybraných položek databáze. +DVARP = DVAR ## Vypočte rozptyl základního souboru vybraných položek databáze. + + +## +## Date and time functions Funkce data a času +## +DATE = DATUM ## Vrátí pořadové číslo určitého data. +DATEVALUE = DATUMHODN ## Převede datum ve formě textu na pořadové číslo. +DAY = DEN ## Převede pořadové číslo na den v měsíci. +DAYS360 = ROK360 ## Vrátí počet dní mezi dvěma daty na základě roku s 360 dny. +EDATE = EDATE ## Vrátí pořadové číslo data, které označuje určený počet měsíců před nebo po počátečním datu. +EOMONTH = EOMONTH ## Vrátí pořadové číslo posledního dne měsíce před nebo po zadaném počtu měsíců. +HOUR = HODINA ## Převede pořadové číslo na hodinu. +MINUTE = MINUTA ## Převede pořadové číslo na minutu. +MONTH = MĚSÍC ## Převede pořadové číslo na měsíc. +NETWORKDAYS = NETWORKDAYS ## Vrátí počet celých pracovních dní mezi dvěma daty. +NOW = NYNÍ ## Vrátí pořadové číslo aktuálního data a času. +SECOND = SEKUNDA ## Převede pořadové číslo na sekundu. +TIME = ČAS ## Vrátí pořadové číslo určitého času. +TIMEVALUE = ČASHODN ## Převede čas ve formě textu na pořadové číslo. +TODAY = DNES ## Vrátí pořadové číslo dnešního data. +WEEKDAY = DENTÝDNE ## Převede pořadové číslo na den v týdnu. +WEEKNUM = WEEKNUM ## Převede pořadové číslo na číslo představující číselnou pozici týdne v roce. +WORKDAY = WORKDAY ## Vrátí pořadové číslo data před nebo po zadaném počtu pracovních dní. +YEAR = ROK ## Převede pořadové číslo na rok. +YEARFRAC = YEARFRAC ## Vrátí část roku vyjádřenou zlomkem a představující počet celých dní mezi počátečním a koncovým datem. + + +## +## Engineering functions Inženýrské funkce (Technické funkce) +## +BESSELI = BESSELI ## Vrátí modifikovanou Besselovu funkci In(x). +BESSELJ = BESSELJ ## Vrátí modifikovanou Besselovu funkci Jn(x). +BESSELK = BESSELK ## Vrátí modifikovanou Besselovu funkci Kn(x). +BESSELY = BESSELY ## Vrátí Besselovu funkci Yn(x). +BIN2DEC = BIN2DEC ## Převede binární číslo na desítkové. +BIN2HEX = BIN2HEX ## Převede binární číslo na šestnáctkové. +BIN2OCT = BIN2OCT ## Převede binární číslo na osmičkové. +COMPLEX = COMPLEX ## Převede reálnou a imaginární část na komplexní číslo. +CONVERT = CONVERT ## Převede číslo do jiného jednotkového měrného systému. +DEC2BIN = DEC2BIN ## Převede desítkového čísla na dvojkové +DEC2HEX = DEC2HEX ## Převede desítkové číslo na šestnáctkové. +DEC2OCT = DEC2OCT ## Převede desítkové číslo na osmičkové. +DELTA = DELTA ## Testuje rovnost dvou hodnot. +ERF = ERF ## Vrátí chybovou funkci. +ERFC = ERFC ## Vrátí doplňkovou chybovou funkci. +GESTEP = GESTEP ## Testuje, zda je číslo větší než mezní hodnota. +HEX2BIN = HEX2BIN ## Převede šestnáctkové číslo na binární. +HEX2DEC = HEX2DEC ## Převede šestnáctkové číslo na desítkové. +HEX2OCT = HEX2OCT ## Převede šestnáctkové číslo na osmičkové. +IMABS = IMABS ## Vrátí absolutní hodnotu (modul) komplexního čísla. +IMAGINARY = IMAGINARY ## Vrátí imaginární část komplexního čísla. +IMARGUMENT = IMARGUMENT ## Vrátí argument théta, úhel vyjádřený v radiánech. +IMCONJUGATE = IMCONJUGATE ## Vrátí komplexně sdružené číslo ke komplexnímu číslu. +IMCOS = IMCOS ## Vrátí kosinus komplexního čísla. +IMDIV = IMDIV ## Vrátí podíl dvou komplexních čísel. +IMEXP = IMEXP ## Vrátí exponenciální tvar komplexního čísla. +IMLN = IMLN ## Vrátí přirozený logaritmus komplexního čísla. +IMLOG10 = IMLOG10 ## Vrátí dekadický logaritmus komplexního čísla. +IMLOG2 = IMLOG2 ## Vrátí logaritmus komplexního čísla při základu 2. +IMPOWER = IMPOWER ## Vrátí komplexní číslo umocněné na celé číslo. +IMPRODUCT = IMPRODUCT ## Vrátí součin komplexních čísel. +IMREAL = IMREAL ## Vrátí reálnou část komplexního čísla. +IMSIN = IMSIN ## Vrátí sinus komplexního čísla. +IMSQRT = IMSQRT ## Vrátí druhou odmocninu komplexního čísla. +IMSUB = IMSUB ## Vrátí rozdíl mezi dvěma komplexními čísly. +IMSUM = IMSUM ## Vrátí součet dvou komplexních čísel. +OCT2BIN = OCT2BIN ## Převede osmičkové číslo na binární. +OCT2DEC = OCT2DEC ## Převede osmičkové číslo na desítkové. +OCT2HEX = OCT2HEX ## Převede osmičkové číslo na šestnáctkové. + + +## +## Financial functions Finanční funkce +## +ACCRINT = ACCRINT ## Vrátí nahromaděný úrok z cenného papíru, ze kterého je úrok placen v pravidelných termínech. +ACCRINTM = ACCRINTM ## Vrátí nahromaděný úrok z cenného papíru, ze kterého je úrok placen k datu splatnosti. +AMORDEGRC = AMORDEGRC ## Vrátí lineární amortizaci v každém účetním období pomocí koeficientu amortizace. +AMORLINC = AMORLINC ## Vrátí lineární amortizaci v každém účetním období. +COUPDAYBS = COUPDAYBS ## Vrátí počet dnů od začátku období placení kupónů do data splatnosti. +COUPDAYS = COUPDAYS ## Vrátí počet dnů v období placení kupónů, které obsahuje den zúčtování. +COUPDAYSNC = COUPDAYSNC ## Vrátí počet dnů od data zúčtování do následujícího data placení kupónu. +COUPNCD = COUPNCD ## Vrátí následující datum placení kupónu po datu zúčtování. +COUPNUM = COUPNUM ## Vrátí počet kupónů splatných mezi datem zúčtování a datem splatnosti. +COUPPCD = COUPPCD ## Vrátí předchozí datum placení kupónu před datem zúčtování. +CUMIPMT = CUMIPMT ## Vrátí kumulativní úrok splacený mezi dvěma obdobími. +CUMPRINC = CUMPRINC ## Vrátí kumulativní jistinu splacenou mezi dvěma obdobími půjčky. +DB = ODPIS.ZRYCH ## Vrátí odpis aktiva za určité období pomocí degresivní metody odpisu s pevným zůstatkem. +DDB = ODPIS.ZRYCH2 ## Vrátí odpis aktiva za určité období pomocí dvojité degresivní metody odpisu nebo jiné metody, kterou zadáte. +DISC = DISC ## Vrátí diskontní sazbu cenného papíru. +DOLLARDE = DOLLARDE ## Převede částku v korunách vyjádřenou zlomkem na částku v korunách vyjádřenou desetinným číslem. +DOLLARFR = DOLLARFR ## Převede částku v korunách vyjádřenou desetinným číslem na částku v korunách vyjádřenou zlomkem. +DURATION = DURATION ## Vrátí roční dobu cenného papíru s pravidelnými úrokovými sazbami. +EFFECT = EFFECT ## Vrátí efektivní roční úrokovou sazbu. +FV = BUDHODNOTA ## Vrátí budoucí hodnotu investice. +FVSCHEDULE = FVSCHEDULE ## Vrátí budoucí hodnotu počáteční jistiny po použití série sazeb složitého úroku. +INTRATE = INTRATE ## Vrátí úrokovou sazbu plně investovaného cenného papíru. +IPMT = PLATBA.ÚROK ## Vrátí výšku úroku investice za dané období. +IRR = MÍRA.VÝNOSNOSTI ## Vrátí vnitřní výnosové procento série peněžních toků. +ISPMT = ISPMT ## Vypočte výši úroku z investice zaplaceného během určitého období. +MDURATION = MDURATION ## Vrátí Macauleyho modifikovanou dobu cenného papíru o nominální hodnotě 100 Kč. +MIRR = MOD.MÍRA.VÝNOSNOSTI ## Vrátí vnitřní sazbu výnosu, přičemž kladné a záporné hodnoty peněžních prostředků jsou financovány podle různých sazeb. +NOMINAL = NOMINAL ## Vrátí nominální roční úrokovou sazbu. +NPER = POČET.OBDOBÍ ## Vrátí počet období pro investici. +NPV = ČISTÁ.SOUČHODNOTA ## Vrátí čistou současnou hodnotu investice vypočítanou na základě série pravidelných peněžních toků a diskontní sazby. +ODDFPRICE = ODDFPRICE ## Vrátí cenu cenného papíru o nominální hodnotě 100 Kč s odlišným prvním obdobím. +ODDFYIELD = ODDFYIELD ## Vrátí výnos cenného papíru s odlišným prvním obdobím. +ODDLPRICE = ODDLPRICE ## Vrátí cenu cenného papíru o nominální hodnotě 100 Kč s odlišným posledním obdobím. +ODDLYIELD = ODDLYIELD ## Vrátí výnos cenného papíru s odlišným posledním obdobím. +PMT = PLATBA ## Vrátí hodnotu pravidelné splátky anuity. +PPMT = PLATBA.ZÁKLAD ## Vrátí hodnotu splátky jistiny pro zadanou investici za dané období. +PRICE = PRICE ## Vrátí cenu cenného papíru o nominální hodnotě 100 Kč, ze kterého je úrok placen v pravidelných termínech. +PRICEDISC = PRICEDISC ## Vrátí cenu diskontního cenného papíru o nominální hodnotě 100 Kč. +PRICEMAT = PRICEMAT ## Vrátí cenu cenného papíru o nominální hodnotě 100 Kč, ze kterého je úrok placen k datu splatnosti. +PV = SOUČHODNOTA ## Vrátí současnou hodnotu investice. +RATE = ÚROKOVÁ.MÍRA ## Vrátí úrokovou sazbu vztaženou na období anuity. +RECEIVED = RECEIVED ## Vrátí částku obdrženou k datu splatnosti plně investovaného cenného papíru. +SLN = ODPIS.LIN ## Vrátí přímé odpisy aktiva pro jedno období. +SYD = ODPIS.NELIN ## Vrátí směrné číslo ročních odpisů aktiva pro zadané období. +TBILLEQ = TBILLEQ ## Vrátí výnos směnky státní pokladny ekvivalentní výnosu obligace. +TBILLPRICE = TBILLPRICE ## Vrátí cenu směnky státní pokladny o nominální hodnotě 100 Kč. +TBILLYIELD = TBILLYIELD ## Vrátí výnos směnky státní pokladny. +VDB = ODPIS.ZA.INT ## Vrátí odpis aktiva pro určité období nebo část období pomocí degresivní metody odpisu. +XIRR = XIRR ## Vrátí vnitřní výnosnost pro harmonogram peněžních toků, který nemusí být nutně periodický. +XNPV = XNPV ## Vrátí čistou současnou hodnotu pro harmonogram peněžních toků, který nemusí být nutně periodický. +YIELD = YIELD ## Vrátí výnos cenného papíru, ze kterého je úrok placen v pravidelných termínech. +YIELDDISC = YIELDDISC ## Vrátí roční výnos diskontního cenného papíru, například směnky státní pokladny. +YIELDMAT = YIELDMAT ## Vrátí roční výnos cenného papíru, ze kterého je úrok placen k datu splatnosti. + + +## +## Information functions Informační funkce +## +CELL = POLÍČKO ## Vrátí informace o formátování, umístění nebo obsahu buňky. +ERROR.TYPE = CHYBA.TYP ## Vrátí číslo odpovídající typu chyby. +INFO = O.PROSTŘEDÍ ## Vrátí informace o aktuálním pracovním prostředí. +ISBLANK = JE.PRÁZDNÉ ## Vrátí hodnotu PRAVDA, pokud se argument hodnota odkazuje na prázdnou buňku. +ISERR = JE.CHYBA ## Vrátí hodnotu PRAVDA, pokud je argument hodnota libovolná chybová hodnota (kromě #N/A). +ISERROR = JE.CHYBHODN ## Vrátí hodnotu PRAVDA, pokud je argument hodnota libovolná chybová hodnota. +ISEVEN = ISEVEN ## Vrátí hodnotu PRAVDA, pokud je číslo sudé. +ISLOGICAL = JE.LOGHODN ## Vrátí hodnotu PRAVDA, pokud je argument hodnota logická hodnota. +ISNA = JE.NEDEF ## Vrátí hodnotu PRAVDA, pokud je argument hodnota chybová hodnota #N/A. +ISNONTEXT = JE.NETEXT ## Vrátí hodnotu PRAVDA, pokud argument hodnota není text. +ISNUMBER = JE.ČÍSLO ## Vrátí hodnotu PRAVDA, pokud je argument hodnota číslo. +ISODD = ISODD ## Vrátí hodnotu PRAVDA, pokud je číslo liché. +ISREF = JE.ODKAZ ## Vrátí hodnotu PRAVDA, pokud je argument hodnota odkaz. +ISTEXT = JE.TEXT ## Vrátí hodnotu PRAVDA, pokud je argument hodnota text. +N = N ## Vrátí hodnotu převedenou na číslo. +NA = NEDEF ## Vrátí chybovou hodnotu #N/A. +TYPE = TYP ## Vrátí číslo označující datový typ hodnoty. + + +## +## Logical functions Logické funkce +## +AND = A ## Vrátí hodnotu PRAVDA, mají-li všechny argumenty hodnotu PRAVDA. +FALSE = NEPRAVDA ## Vrátí logickou hodnotu NEPRAVDA. +IF = KDYŽ ## Určí, který logický test má proběhnout. +IFERROR = IFERROR ## Pokud je vzorec vyhodnocen jako chyba, vrátí zadanou hodnotu. V opačném případě vrátí výsledek vzorce. +NOT = NE ## Provede logickou negaci argumentu funkce. +OR = NEBO ## Vrátí hodnotu PRAVDA, je-li alespoň jeden argument roven hodnotě PRAVDA. +TRUE = PRAVDA ## Vrátí logickou hodnotu PRAVDA. + + +## +## Lookup and reference functions Vyhledávací funkce +## +ADDRESS = ODKAZ ## Vrátí textový odkaz na jednu buňku listu. +AREAS = POČET.BLOKŮ ## Vrátí počet oblastí v odkazu. +CHOOSE = ZVOLIT ## Zvolí hodnotu ze seznamu hodnot. +COLUMN = SLOUPEC ## Vrátí číslo sloupce odkazu. +COLUMNS = SLOUPCE ## Vrátí počet sloupců v odkazu. +HLOOKUP = VVYHLEDAT ## Prohledá horní řádek matice a vrátí hodnotu určené buňky. +HYPERLINK = HYPERTEXTOVÝ.ODKAZ ## Vytvoří zástupce nebo odkaz, který otevře dokument uložený na síťovém serveru, v síti intranet nebo Internet. +INDEX = INDEX ## Pomocí rejstříku zvolí hodnotu z odkazu nebo matice. +INDIRECT = NEPŘÍMÝ.ODKAZ ## Vrátí odkaz určený textovou hodnotou. +LOOKUP = VYHLEDAT ## Vyhledá hodnoty ve vektoru nebo matici. +MATCH = POZVYHLEDAT ## Vyhledá hodnoty v odkazu nebo matici. +OFFSET = POSUN ## Vrátí posun odkazu od zadaného odkazu. +ROW = ŘÁDEK ## Vrátí číslo řádku odkazu. +ROWS = ŘÁDKY ## Vrátí počet řádků v odkazu. +RTD = RTD ## Načte data reálného času z programu, který podporuje automatizaci modelu COM (Automatizace: Způsob práce s objekty určité aplikace z jiné aplikace nebo nástroje pro vývoj. Automatizace (dříve nazývaná automatizace OLE) je počítačovým standardem a je funkcí modelu COM (Component Object Model).). +TRANSPOSE = TRANSPOZICE ## Vrátí transponovanou matici. +VLOOKUP = SVYHLEDAT ## Prohledá první sloupec matice, přesune kurzor v řádku a vrátí hodnotu buňky. + + +## +## Math and trigonometry functions Matematické a trigonometrické funkce +## +ABS = ABS ## Vrátí absolutní hodnotu čísla. +ACOS = ARCCOS ## Vrátí arkuskosinus čísla. +ACOSH = ARCCOSH ## Vrátí hyperbolický arkuskosinus čísla. +ASIN = ARCSIN ## Vrátí arkussinus čísla. +ASINH = ARCSINH ## Vrátí hyperbolický arkussinus čísla. +ATAN = ARCTG ## Vrátí arkustangens čísla. +ATAN2 = ARCTG2 ## Vrátí arkustangens x-ové a y-ové souřadnice. +ATANH = ARCTGH ## Vrátí hyperbolický arkustangens čísla. +CEILING = ZAOKR.NAHORU ## Zaokrouhlí číslo na nejbližší celé číslo nebo na nejbližší násobek zadané hodnoty. +COMBIN = KOMBINACE ## Vrátí počet kombinací pro daný počet položek. +COS = COS ## Vrátí kosinus čísla. +COSH = COSH ## Vrátí hyperbolický kosinus čísla. +DEGREES = DEGREES ## Převede radiány na stupně. +EVEN = ZAOKROUHLIT.NA.SUDÉ ## Zaokrouhlí číslo nahoru na nejbližší celé sudé číslo. +EXP = EXP ## Vrátí základ přirozeného logaritmu e umocněný na zadané číslo. +FACT = FAKTORIÁL ## Vrátí faktoriál čísla. +FACTDOUBLE = FACTDOUBLE ## Vrátí dvojitý faktoriál čísla. +FLOOR = ZAOKR.DOLŮ ## Zaokrouhlí číslo dolů, směrem k nule. +GCD = GCD ## Vrátí největší společný dělitel. +INT = CELÁ.ČÁST ## Zaokrouhlí číslo dolů na nejbližší celé číslo. +LCM = LCM ## Vrátí nejmenší společný násobek. +LN = LN ## Vrátí přirozený logaritmus čísla. +LOG = LOGZ ## Vrátí logaritmus čísla při zadaném základu. +LOG10 = LOG ## Vrátí dekadický logaritmus čísla. +MDETERM = DETERMINANT ## Vrátí determinant matice. +MINVERSE = INVERZE ## Vrátí inverzní matici. +MMULT = SOUČIN.MATIC ## Vrátí součin dvou matic. +MOD = MOD ## Vrátí zbytek po dělení. +MROUND = MROUND ## Vrátí číslo zaokrouhlené na požadovaný násobek. +MULTINOMIAL = MULTINOMIAL ## Vrátí mnohočlen z množiny čísel. +ODD = ZAOKROUHLIT.NA.LICHÉ ## Zaokrouhlí číslo nahoru na nejbližší celé liché číslo. +PI = PI ## Vrátí hodnotu čísla pí. +POWER = POWER ## Umocní číslo na zadanou mocninu. +PRODUCT = SOUČIN ## Vynásobí argumenty funkce. +QUOTIENT = QUOTIENT ## Vrátí celou část dělení. +RADIANS = RADIANS ## Převede stupně na radiány. +RAND = NÁHČÍSLO ## Vrátí náhodné číslo mezi 0 a 1. +RANDBETWEEN = RANDBETWEEN ## Vrátí náhodné číslo mezi zadanými čísly. +ROMAN = ROMAN ## Převede arabskou číslici na římskou ve formátu textu. +ROUND = ZAOKROUHLIT ## Zaokrouhlí číslo na zadaný počet číslic. +ROUNDDOWN = ROUNDDOWN ## Zaokrouhlí číslo dolů, směrem k nule. +ROUNDUP = ROUNDUP ## Zaokrouhlí číslo nahoru, směrem od nuly. +SERIESSUM = SERIESSUM ## Vrátí součet mocninné řady určené podle vzorce. +SIGN = SIGN ## Vrátí znaménko čísla. +SIN = SIN ## Vrátí sinus daného úhlu. +SINH = SINH ## Vrátí hyperbolický sinus čísla. +SQRT = ODMOCNINA ## Vrátí kladnou druhou odmocninu. +SQRTPI = SQRTPI ## Vrátí druhou odmocninu výrazu (číslo * pí). +SUBTOTAL = SUBTOTAL ## Vrátí souhrn v seznamu nebo databázi. +SUM = SUMA ## Sečte argumenty funkce. +SUMIF = SUMIF ## Sečte buňky vybrané podle zadaných kritérií. +SUMIFS = SUMIFS ## Sečte buňky určené více zadanými podmínkami. +SUMPRODUCT = SOUČIN.SKALÁRNÍ ## Vrátí součet součinů odpovídajících prvků matic. +SUMSQ = SUMA.ČTVERCŮ ## Vrátí součet čtverců argumentů. +SUMX2MY2 = SUMX2MY2 ## Vrátí součet rozdílu čtverců odpovídajících hodnot ve dvou maticích. +SUMX2PY2 = SUMX2PY2 ## Vrátí součet součtu čtverců odpovídajících hodnot ve dvou maticích. +SUMXMY2 = SUMXMY2 ## Vrátí součet čtverců rozdílů odpovídajících hodnot ve dvou maticích. +TAN = TGTG ## Vrátí tangens čísla. +TANH = TGH ## Vrátí hyperbolický tangens čísla. +TRUNC = USEKNOUT ## Zkrátí číslo na celé číslo. + + +## +## Statistical functions Statistické funkce +## +AVEDEV = PRŮMODCHYLKA ## Vrátí průměrnou hodnotu absolutních odchylek datových bodů od jejich střední hodnoty. +AVERAGE = PRŮMĚR ## Vrátí průměrnou hodnotu argumentů. +AVERAGEA = AVERAGEA ## Vrátí průměrnou hodnotu argumentů včetně čísel, textu a logických hodnot. +AVERAGEIF = AVERAGEIF ## Vrátí průměrnou hodnotu (aritmetický průměr) všech buněk v oblasti, které vyhovují příslušné podmínce. +AVERAGEIFS = AVERAGEIFS ## Vrátí průměrnou hodnotu (aritmetický průměr) všech buněk vyhovujících několika podmínkám. +BETADIST = BETADIST ## Vrátí hodnotu součtového rozdělení beta. +BETAINV = BETAINV ## Vrátí inverzní hodnotu součtového rozdělení pro zadané rozdělení beta. +BINOMDIST = BINOMDIST ## Vrátí hodnotu binomického rozdělení pravděpodobnosti jednotlivých veličin. +CHIDIST = CHIDIST ## Vrátí jednostrannou pravděpodobnost rozdělení chí-kvadrát. +CHIINV = CHIINV ## Vrátí hodnotu funkce inverzní k distribuční funkci jednostranné pravděpodobnosti rozdělení chí-kvadrát. +CHITEST = CHITEST ## Vrátí test nezávislosti. +CONFIDENCE = CONFIDENCE ## Vrátí interval spolehlivosti pro střední hodnotu základního souboru. +CORREL = CORREL ## Vrátí korelační koeficient mezi dvěma množinami dat. +COUNT = POČET ## Vrátí počet čísel v seznamu argumentů. +COUNTA = POČET2 ## Vrátí počet hodnot v seznamu argumentů. +COUNTBLANK = COUNTBLANK ## Spočítá počet prázdných buněk v oblasti. +COUNTIF = COUNTIF ## Spočítá buňky v oblasti, které odpovídají zadaným kritériím. +COUNTIFS = COUNTIFS ## Spočítá buňky v oblasti, které odpovídají více kritériím. +COVAR = COVAR ## Vrátí hodnotu kovariance, průměrnou hodnotu součinů párových odchylek +CRITBINOM = CRITBINOM ## Vrátí nejmenší hodnotu, pro kterou má součtové binomické rozdělení hodnotu větší nebo rovnu hodnotě kritéria. +DEVSQ = DEVSQ ## Vrátí součet čtverců odchylek. +EXPONDIST = EXPONDIST ## Vrátí hodnotu exponenciálního rozdělení. +FDIST = FDIST ## Vrátí hodnotu rozdělení pravděpodobnosti F. +FINV = FINV ## Vrátí hodnotu inverzní funkce k distribuční funkci rozdělení F. +FISHER = FISHER ## Vrátí hodnotu Fisherovy transformace. +FISHERINV = FISHERINV ## Vrátí hodnotu inverzní funkce k Fisherově transformaci. +FORECAST = FORECAST ## Vrátí hodnotu lineárního trendu. +FREQUENCY = ČETNOSTI ## Vrátí četnost rozdělení jako svislou matici. +FTEST = FTEST ## Vrátí výsledek F-testu. +GAMMADIST = GAMMADIST ## Vrátí hodnotu rozdělení gama. +GAMMAINV = GAMMAINV ## Vrátí hodnotu inverzní funkce k distribuční funkci součtového rozdělení gama. +GAMMALN = GAMMALN ## Vrátí přirozený logaritmus funkce gama, Γ(x). +GEOMEAN = GEOMEAN ## Vrátí geometrický průměr. +GROWTH = LOGLINTREND ## Vrátí hodnoty exponenciálního trendu. +HARMEAN = HARMEAN ## Vrátí harmonický průměr. +HYPGEOMDIST = HYPGEOMDIST ## Vrátí hodnotu hypergeometrického rozdělení. +INTERCEPT = INTERCEPT ## Vrátí úsek lineární regresní čáry. +KURT = KURT ## Vrátí hodnotu excesu množiny dat. +LARGE = LARGE ## Vrátí k-tou největší hodnotu množiny dat. +LINEST = LINREGRESE ## Vrátí parametry lineárního trendu. +LOGEST = LOGLINREGRESE ## Vrátí parametry exponenciálního trendu. +LOGINV = LOGINV ## Vrátí inverzní funkci k distribuční funkci logaritmicko-normálního rozdělení. +LOGNORMDIST = LOGNORMDIST ## Vrátí hodnotu součtového logaritmicko-normálního rozdělení. +MAX = MAX ## Vrátí maximální hodnotu seznamu argumentů. +MAXA = MAXA ## Vrátí maximální hodnotu seznamu argumentů včetně čísel, textu a logických hodnot. +MEDIAN = MEDIAN ## Vrátí střední hodnotu zadaných čísel. +MIN = MIN ## Vrátí minimální hodnotu seznamu argumentů. +MINA = MINA ## Vrátí nejmenší hodnotu v seznamu argumentů včetně čísel, textu a logických hodnot. +MODE = MODE ## Vrátí hodnotu, která se v množině dat vyskytuje nejčastěji. +NEGBINOMDIST = NEGBINOMDIST ## Vrátí hodnotu negativního binomického rozdělení. +NORMDIST = NORMDIST ## Vrátí hodnotu normálního součtového rozdělení. +NORMINV = NORMINV ## Vrátí inverzní funkci k funkci normálního součtového rozdělení. +NORMSDIST = NORMSDIST ## Vrátí hodnotu standardního normálního součtového rozdělení. +NORMSINV = NORMSINV ## Vrátí inverzní funkci k funkci standardního normálního součtového rozdělení. +PEARSON = PEARSON ## Vrátí Pearsonův výsledný momentový korelační koeficient. +PERCENTILE = PERCENTIL ## Vrátí hodnotu k-tého percentilu hodnot v oblasti. +PERCENTRANK = PERCENTRANK ## Vrátí pořadí hodnoty v množině dat vyjádřené procentuální částí množiny dat. +PERMUT = PERMUTACE ## Vrátí počet permutací pro zadaný počet objektů. +POISSON = POISSON ## Vrátí hodnotu distribuční funkce Poissonova rozdělení. +PROB = PROB ## Vrátí pravděpodobnost výskytu hodnot v oblasti mezi dvěma mezními hodnotami. +QUARTILE = QUARTIL ## Vrátí hodnotu kvartilu množiny dat. +RANK = RANK ## Vrátí pořadí čísla v seznamu čísel. +RSQ = RKQ ## Vrátí druhou mocninu Pearsonova výsledného momentového korelačního koeficientu. +SKEW = SKEW ## Vrátí zešikmení rozdělení. +SLOPE = SLOPE ## Vrátí směrnici lineární regresní čáry. +SMALL = SMALL ## Vrátí k-tou nejmenší hodnotu množiny dat. +STANDARDIZE = STANDARDIZE ## Vrátí normalizovanou hodnotu. +STDEV = SMODCH.VÝBĚR ## Vypočte směrodatnou odchylku výběru. +STDEVA = STDEVA ## Vypočte směrodatnou odchylku výběru včetně čísel, textu a logických hodnot. +STDEVP = SMODCH ## Vypočte směrodatnou odchylku základního souboru. +STDEVPA = STDEVPA ## Vypočte směrodatnou odchylku základního souboru včetně čísel, textu a logických hodnot. +STEYX = STEYX ## Vrátí standardní chybu předpovězené hodnoty y pro každou hodnotu x v regresi. +TDIST = TDIST ## Vrátí hodnotu Studentova t-rozdělení. +TINV = TINV ## Vrátí inverzní funkci k distribuční funkci Studentova t-rozdělení. +TREND = LINTREND ## Vrátí hodnoty lineárního trendu. +TRIMMEAN = TRIMMEAN ## Vrátí střední hodnotu vnitřní části množiny dat. +TTEST = TTEST ## Vrátí pravděpodobnost spojenou se Studentovým t-testem. +VAR = VAR.VÝBĚR ## Vypočte rozptyl výběru. +VARA = VARA ## Vypočte rozptyl výběru včetně čísel, textu a logických hodnot. +VARP = VAR ## Vypočte rozptyl základního souboru. +VARPA = VARPA ## Vypočte rozptyl základního souboru včetně čísel, textu a logických hodnot. +WEIBULL = WEIBULL ## Vrátí hodnotu Weibullova rozdělení. +ZTEST = ZTEST ## Vrátí jednostrannou P-hodnotu z-testu. + + +## +## Text functions Textové funkce +## +ASC = ASC ## Změní znaky s plnou šířkou (dvoubajtové)v řetězci znaků na znaky s poloviční šířkou (jednobajtové). +BAHTTEXT = BAHTTEXT ## Převede číslo na text ve formátu, měny ß (baht). +CHAR = ZNAK ## Vrátí znak určený číslem kódu. +CLEAN = VYČISTIT ## Odebere z textu všechny netisknutelné znaky. +CODE = KÓD ## Vrátí číselný kód prvního znaku zadaného textového řetězce. +CONCATENATE = CONCATENATE ## Spojí několik textových položek do jedné. +DOLLAR = KČ ## Převede číslo na text ve formátu měny Kč (česká koruna). +EXACT = STEJNÉ ## Zkontroluje, zda jsou dvě textové hodnoty shodné. +FIND = NAJÍT ## Nalezne textovou hodnotu uvnitř jiné (rozlišuje malá a velká písmena). +FINDB = FINDB ## Nalezne textovou hodnotu uvnitř jiné (rozlišuje malá a velká písmena). +FIXED = ZAOKROUHLIT.NA.TEXT ## Zformátuje číslo jako text s pevným počtem desetinných míst. +JIS = JIS ## Změní znaky s poloviční šířkou (jednobajtové) v řetězci znaků na znaky s plnou šířkou (dvoubajtové). +LEFT = ZLEVA ## Vrátí první znaky textové hodnoty umístěné nejvíce vlevo. +LEFTB = LEFTB ## Vrátí první znaky textové hodnoty umístěné nejvíce vlevo. +LEN = DÉLKA ## Vrátí počet znaků textového řetězce. +LENB = LENB ## Vrátí počet znaků textového řetězce. +LOWER = MALÁ ## Převede text na malá písmena. +MID = ČÁST ## Vrátí určitý počet znaků textového řetězce počínaje zadaným místem. +MIDB = MIDB ## Vrátí určitý počet znaků textového řetězce počínaje zadaným místem. +PHONETIC = ZVUKOVÉ ## Extrahuje fonetické znaky (furigana) z textového řetězce. +PROPER = VELKÁ2 ## Převede první písmeno každého slova textové hodnoty na velké. +REPLACE = NAHRADIT ## Nahradí znaky uvnitř textu. +REPLACEB = NAHRADITB ## Nahradí znaky uvnitř textu. +REPT = OPAKOVAT ## Zopakuje text podle zadaného počtu opakování. +RIGHT = ZPRAVA ## Vrátí první znaky textové hodnoty umístěné nejvíce vpravo. +RIGHTB = RIGHTB ## Vrátí první znaky textové hodnoty umístěné nejvíce vpravo. +SEARCH = HLEDAT ## Nalezne textovou hodnotu uvnitř jiné (malá a velká písmena nejsou rozlišována). +SEARCHB = SEARCHB ## Nalezne textovou hodnotu uvnitř jiné (malá a velká písmena nejsou rozlišována). +SUBSTITUTE = DOSADIT ## V textovém řetězci nahradí starý text novým. +T = T ## Převede argumenty na text. +TEXT = HODNOTA.NA.TEXT ## Zformátuje číslo a převede ho na text. +TRIM = PROČISTIT ## Odstraní z textu mezery. +UPPER = VELKÁ ## Převede text na velká písmena. +VALUE = HODNOTA ## Převede textový argument na číslo. diff --git a/admin/helpers/PHPExcel/locale/cs/index.html b/admin/helpers/PHPExcel/locale/cs/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/cs/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/da/config b/admin/helpers/PHPExcel/locale/da/config new file mode 100644 index 00000000..ae590031 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/da/config @@ -0,0 +1,48 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = kr + + + +## +## Excel Error Codes (For future use) +## +NULL = #NUL! +DIV0 = #DIVISION/0! +VALUE = #VÆRDI! +REF = #REFERENCE! +NAME = #NAVN? +NUM = #NUM! +NA = #I/T diff --git a/admin/helpers/PHPExcel/locale/da/functions b/admin/helpers/PHPExcel/locale/da/functions new file mode 100644 index 00000000..26e0310c --- /dev/null +++ b/admin/helpers/PHPExcel/locale/da/functions @@ -0,0 +1,438 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Calculation +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ +## +## + + +## +## Add-in and Automation functions Tilføjelsesprogram- og automatiseringsfunktioner +## +GETPIVOTDATA = HENTPIVOTDATA ## Returnerer data, der er lagret i en pivottabelrapport + + +## +## Cube functions Kubefunktioner +## +CUBEKPIMEMBER = KUBE.KPI.MEDLEM ## Returnerer navn, egenskab og mål for en KPI-indikator og viser navnet og egenskaben i cellen. En KPI-indikator er en målbar størrelse, f.eks. bruttooverskud pr. måned eller personaleudskiftning pr. kvartal, der bruges til at overvåge en organisations præstationer. +CUBEMEMBER = KUBE.MEDLEM ## Returnerer et medlem eller en tupel fra kubehierarkiet. Bruges til at validere, om et medlem eller en tupel findes i kuben. +CUBEMEMBERPROPERTY = KUBEMEDLEM.EGENSKAB ## Returnerer værdien af en egenskab for et medlem i kuben. Bruges til at validere, om et medlemsnavn findes i kuben, og returnere den angivne egenskab for medlemmet. +CUBERANKEDMEMBER = KUBEMEDLEM.RANG ## Returnerer det n'te eller rangordnede medlem i et sæt. Bruges til at returnere et eller flere elementer i et sæt, f.eks. topsælgere eller de 10 bedste elever. +CUBESET = KUBESÆT ## Definerer et beregnet sæt medlemmer eller tupler ved at sende et sætudtryk til kuben på serveren, som opretter sættet og returnerer det til Microsoft Office Excel. +CUBESETCOUNT = KUBESÆT.TÆL ## Returnerer antallet af elementer i et sæt. +CUBEVALUE = KUBEVÆRDI ## Returnerer en sammenlagt (aggregeret) værdi fra en kube. + + +## +## Database functions Databasefunktioner +## +DAVERAGE = DMIDDEL ## Returnerer gennemsnittet af markerede databaseposter +DCOUNT = DTÆL ## Tæller de celler, der indeholder tal, i en database +DCOUNTA = DTÆLV ## Tæller udfyldte celler i en database +DGET = DHENT ## Uddrager en enkelt post, der opfylder de angivne kriterier, fra en database +DMAX = DMAKS ## Returnerer den største værdi blandt markerede databaseposter +DMIN = DMIN ## Returnerer den mindste værdi blandt markerede databaseposter +DPRODUCT = DPRODUKT ## Ganger værdierne i et bestemt felt med poster, der opfylder kriterierne i en database +DSTDEV = DSTDAFV ## Beregner et skøn over standardafvigelsen baseret på en stikprøve af markerede databaseposter +DSTDEVP = DSTDAFVP ## Beregner standardafvigelsen baseret på hele populationen af markerede databaseposter +DSUM = DSUM ## Sammenlægger de tal i feltkolonnen i databasen, der opfylder kriterierne +DVAR = DVARIANS ## Beregner varians baseret på en stikprøve af markerede databaseposter +DVARP = DVARIANSP ## Beregner varians baseret på hele populationen af markerede databaseposter + + +## +## Date and time functions Dato- og klokkeslætsfunktioner +## +DATE = DATO ## Returnerer serienummeret for en bestemt dato +DATEVALUE = DATOVÆRDI ## Konverterer en dato i form af tekst til et serienummer +DAY = DAG ## Konverterer et serienummer til en dag i måneden +DAYS360 = DAGE360 ## Beregner antallet af dage mellem to datoer på grundlag af et år med 360 dage +EDATE = EDATO ## Returnerer serienummeret for den dato, der ligger det angivne antal måneder før eller efter startdatoen +EOMONTH = SLUT.PÅ.MÅNED ## Returnerer serienummeret på den sidste dag i måneden før eller efter et angivet antal måneder +HOUR = TIME ## Konverterer et serienummer til en time +MINUTE = MINUT ## Konverterer et serienummer til et minut +MONTH = MÅNED ## Konverterer et serienummer til en måned +NETWORKDAYS = ANTAL.ARBEJDSDAGE ## Returnerer antallet af hele arbejdsdage mellem to datoer +NOW = NU ## Returnerer serienummeret for den aktuelle dato eller det aktuelle klokkeslæt +SECOND = SEKUND ## Konverterer et serienummer til et sekund +TIME = KLOKKESLÆT ## Returnerer serienummeret for et bestemt klokkeslæt +TIMEVALUE = TIDSVÆRDI ## Konverterer et klokkeslæt i form af tekst til et serienummer +TODAY = IDAG ## Returnerer serienummeret for dags dato +WEEKDAY = UGEDAG ## Konverterer et serienummer til en ugedag +WEEKNUM = UGE.NR ## Konverterer et serienummer til et tal, der angiver ugenummeret i året +WORKDAY = ARBEJDSDAG ## Returnerer serienummeret for dagen før eller efter det angivne antal arbejdsdage +YEAR = ÅR ## Konverterer et serienummer til et år +YEARFRAC = ÅR.BRØK ## Returnerer årsbrøken, der repræsenterer antallet af hele dage mellem startdato og slutdato + + +## +## Engineering functions Tekniske funktioner +## +BESSELI = BESSELI ## Returnerer den modificerede Bessel-funktion In(x) +BESSELJ = BESSELJ ## Returnerer Bessel-funktionen Jn(x) +BESSELK = BESSELK ## Returnerer den modificerede Bessel-funktion Kn(x) +BESSELY = BESSELY ## Returnerer Bessel-funktionen Yn(x) +BIN2DEC = BIN.TIL.DEC ## Konverterer et binært tal til et decimaltal +BIN2HEX = BIN.TIL.HEX ## Konverterer et binært tal til et heksadecimalt tal +BIN2OCT = BIN.TIL.OKT ## Konverterer et binært tal til et oktaltal. +COMPLEX = KOMPLEKS ## Konverterer reelle og imaginære koefficienter til et komplekst tal +CONVERT = KONVERTER ## Konverterer et tal fra én måleenhed til en anden +DEC2BIN = DEC.TIL.BIN ## Konverterer et decimaltal til et binært tal +DEC2HEX = DEC.TIL.HEX ## Konverterer et decimaltal til et heksadecimalt tal +DEC2OCT = DEC.TIL.OKT ## Konverterer et decimaltal til et oktaltal +DELTA = DELTA ## Tester, om to værdier er ens +ERF = FEJLFUNK ## Returner fejlfunktionen +ERFC = FEJLFUNK.KOMP ## Returnerer den komplementære fejlfunktion +GESTEP = GETRIN ## Tester, om et tal er større end en grænseværdi +HEX2BIN = HEX.TIL.BIN ## Konverterer et heksadecimalt tal til et binært tal +HEX2DEC = HEX.TIL.DEC ## Konverterer et decimaltal til et heksadecimalt tal +HEX2OCT = HEX.TIL.OKT ## Konverterer et heksadecimalt tal til et oktaltal +IMABS = IMAGABS ## Returnerer den absolutte værdi (modulus) for et komplekst tal +IMAGINARY = IMAGINÆR ## Returnerer den imaginære koefficient for et komplekst tal +IMARGUMENT = IMAGARGUMENT ## Returnerer argumentet theta, en vinkel udtrykt i radianer +IMCONJUGATE = IMAGKONJUGERE ## Returnerer den komplekse konjugation af et komplekst tal +IMCOS = IMAGCOS ## Returnerer et komplekst tals cosinus +IMDIV = IMAGDIV ## Returnerer kvotienten for to komplekse tal +IMEXP = IMAGEKSP ## Returnerer et komplekst tals eksponentialfunktion +IMLN = IMAGLN ## Returnerer et komplekst tals naturlige logaritme +IMLOG10 = IMAGLOG10 ## Returnerer et komplekst tals sædvanlige logaritme (titalslogaritme) +IMLOG2 = IMAGLOG2 ## Returnerer et komplekst tals sædvanlige logaritme (totalslogaritme) +IMPOWER = IMAGPOTENS ## Returnerer et komplekst tal opløftet i en heltalspotens +IMPRODUCT = IMAGPRODUKT ## Returnerer produktet af komplekse tal +IMREAL = IMAGREELT ## Returnerer den reelle koefficient for et komplekst tal +IMSIN = IMAGSIN ## Returnerer et komplekst tals sinus +IMSQRT = IMAGKVROD ## Returnerer et komplekst tals kvadratrod +IMSUB = IMAGSUB ## Returnerer forskellen mellem to komplekse tal +IMSUM = IMAGSUM ## Returnerer summen af komplekse tal +OCT2BIN = OKT.TIL.BIN ## Konverterer et oktaltal til et binært tal +OCT2DEC = OKT.TIL.DEC ## Konverterer et oktaltal til et decimaltal +OCT2HEX = OKT.TIL.HEX ## Konverterer et oktaltal til et heksadecimalt tal + + +## +## Financial functions Finansielle funktioner +## +ACCRINT = PÅLØBRENTE ## Returnerer den påløbne rente for et værdipapir med periodiske renteudbetalinger +ACCRINTM = PÅLØBRENTE.UDLØB ## Returnerer den påløbne rente for et værdipapir, hvor renteudbetalingen finder sted ved papirets udløb +AMORDEGRC = AMORDEGRC ## Returnerer afskrivningsbeløbet for hver regnskabsperiode ved hjælp af en afskrivningskoefficient +AMORLINC = AMORLINC ## Returnerer afskrivningsbeløbet for hver regnskabsperiode +COUPDAYBS = KUPONDAGE.SA ## Returnerer antallet af dage fra starten af kuponperioden til afregningsdatoen +COUPDAYS = KUPONDAGE.A ## Returnerer antallet af dage fra begyndelsen af kuponperioden til afregningsdatoen +COUPDAYSNC = KUPONDAGE.ANK ## Returnerer antallet af dage i den kuponperiode, der indeholder afregningsdatoen +COUPNCD = KUPONDAG.NÆSTE ## Returnerer den næste kupondato efter afregningsdatoen +COUPNUM = KUPONBETALINGER ## Returnerer antallet af kuponudbetalinger mellem afregnings- og udløbsdatoen +COUPPCD = KUPONDAG.FORRIGE ## Returnerer den forrige kupondato før afregningsdatoen +CUMIPMT = AKKUM.RENTE ## Returnerer den akkumulerede rente, der betales på et lån mellem to perioder +CUMPRINC = AKKUM.HOVEDSTOL ## Returnerer den akkumulerede nedbringelse af hovedstol mellem to perioder +DB = DB ## Returnerer afskrivningen på et aktiv i en angivet periode ved anvendelse af saldometoden +DDB = DSA ## Returnerer afskrivningsbeløbet for et aktiv over en bestemt periode ved anvendelse af dobbeltsaldometoden eller en anden afskrivningsmetode, som du angiver +DISC = DISKONTO ## Returnerer et værdipapirs diskonto +DOLLARDE = KR.DECIMAL ## Konverterer en kronepris udtrykt som brøk til en kronepris udtrykt som decimaltal +DOLLARFR = KR.BRØK ## Konverterer en kronepris udtrykt som decimaltal til en kronepris udtrykt som brøk +DURATION = VARIGHED ## Returnerer den årlige løbetid for et værdipapir med periodiske renteudbetalinger +EFFECT = EFFEKTIV.RENTE ## Returnerer den årlige effektive rente +FV = FV ## Returnerer fremtidsværdien af en investering +FVSCHEDULE = FVTABEL ## Returnerer den fremtidige værdi af en hovedstol, når der er tilskrevet rente og rentes rente efter forskellige rentesatser +INTRATE = RENTEFOD ## Returnerer renten på et fuldt ud investeret værdipapir +IPMT = R.YDELSE ## Returnerer renten fra en investering for en given periode +IRR = IA ## Returnerer den interne rente for en række pengestrømme +ISPMT = ISPMT ## Beregner den betalte rente i løbet af en bestemt investeringsperiode +MDURATION = MVARIGHED ## Returnerer Macauleys modificerede løbetid for et værdipapir med en formodet pari på kr. 100 +MIRR = MIA ## Returnerer den interne forrentning, hvor positive og negative pengestrømme finansieres til forskellig rente +NOMINAL = NOMINEL ## Returnerer den årlige nominelle rente +NPER = NPER ## Returnerer antallet af perioder for en investering +NPV = NUTIDSVÆRDI ## Returnerer nettonutidsværdien for en investering baseret på en række periodiske pengestrømme og en diskonteringssats +ODDFPRICE = ULIGE.KURS.PÅLYDENDE ## Returnerer kursen pr. kr. 100 nominel værdi for et værdipapir med en ulige (kort eller lang) første periode +ODDFYIELD = ULIGE.FØRSTE.AFKAST ## Returnerer afkastet for et værdipapir med ulige første periode +ODDLPRICE = ULIGE.SIDSTE.KURS ## Returnerer kursen pr. kr. 100 nominel værdi for et værdipapir med ulige sidste periode +ODDLYIELD = ULIGE.SIDSTE.AFKAST ## Returnerer afkastet for et værdipapir med ulige sidste periode +PMT = YDELSE ## Returnerer renten fra en investering for en given periode +PPMT = H.YDELSE ## Returnerer ydelsen på hovedstolen for en investering i en given periode +PRICE = KURS ## Returnerer kursen pr. kr 100 nominel værdi for et værdipapir med periodiske renteudbetalinger +PRICEDISC = KURS.DISKONTO ## Returnerer kursen pr. kr 100 nominel værdi for et diskonteret værdipapir +PRICEMAT = KURS.UDLØB ## Returnerer kursen pr. kr 100 nominel værdi for et værdipapir, hvor renten udbetales ved papirets udløb +PV = NV ## Returnerer den nuværende værdi af en investering +RATE = RENTE ## Returnerer renten i hver periode for en annuitet +RECEIVED = MODTAGET.VED.UDLØB ## Returnerer det beløb, der modtages ved udløbet af et fuldt ud investeret værdipapir +SLN = LA ## Returnerer den lineære afskrivning for et aktiv i en enkelt periode +SYD = ÅRSAFSKRIVNING ## Returnerer den årlige afskrivning på et aktiv i en bestemt periode +TBILLEQ = STATSOBLIGATION ## Returnerer det obligationsækvivalente afkast for en statsobligation +TBILLPRICE = STATSOBLIGATION.KURS ## Returnerer kursen pr. kr 100 nominel værdi for en statsobligation +TBILLYIELD = STATSOBLIGATION.AFKAST ## Returnerer en afkastet på en statsobligation +VDB = VSA ## Returnerer afskrivningen på et aktiv i en angivet periode, herunder delperioder, ved brug af dobbeltsaldometoden +XIRR = INTERN.RENTE ## Returnerer den interne rente for en plan over pengestrømme, der ikke behøver at være periodiske +XNPV = NETTO.NUTIDSVÆRDI ## Returnerer nutidsværdien for en plan over pengestrømme, der ikke behøver at være periodiske +YIELD = AFKAST ## Returnerer afkastet for et værdipapir med periodiske renteudbetalinger +YIELDDISC = AFKAST.DISKONTO ## Returnerer det årlige afkast for et diskonteret værdipapir, f.eks. en statsobligation +YIELDMAT = AFKAST.UDLØBSDATO ## Returnerer det årlige afkast for et værdipapir, hvor renten udbetales ved papirets udløb + + +## +## Information functions Informationsfunktioner +## +CELL = CELLE ## Returnerer oplysninger om formatering, placering eller indhold af en celle +ERROR.TYPE = FEJLTYPE ## Returnerer et tal, der svarer til en fejltype +INFO = INFO ## Returnerer oplysninger om det aktuelle operativmiljø +ISBLANK = ER.TOM ## Returnerer SAND, hvis værdien er tom +ISERR = ER.FJL ## Returnerer SAND, hvis værdien er en fejlværdi undtagen #I/T +ISERROR = ER.FEJL ## Returnerer SAND, hvis værdien er en fejlværdi +ISEVEN = ER.LIGE ## Returnerer SAND, hvis tallet er lige +ISLOGICAL = ER.LOGISK ## Returnerer SAND, hvis værdien er en logisk værdi +ISNA = ER.IKKE.TILGÆNGELIG ## Returnerer SAND, hvis værdien er fejlværdien #I/T +ISNONTEXT = ER.IKKE.TEKST ## Returnerer SAND, hvis værdien ikke er tekst +ISNUMBER = ER.TAL ## Returnerer SAND, hvis værdien er et tal +ISODD = ER.ULIGE ## Returnerer SAND, hvis tallet er ulige +ISREF = ER.REFERENCE ## Returnerer SAND, hvis værdien er en reference +ISTEXT = ER.TEKST ## Returnerer SAND, hvis værdien er tekst +N = TAL ## Returnerer en værdi konverteret til et tal +NA = IKKE.TILGÆNGELIG ## Returnerer fejlværdien #I/T +TYPE = VÆRDITYPE ## Returnerer et tal, der angiver datatypen for en værdi + + +## +## Logical functions Logiske funktioner +## +AND = OG ## Returnerer SAND, hvis alle argumenterne er sande +FALSE = FALSK ## Returnerer den logiske værdi FALSK +IF = HVIS ## Angiver en logisk test, der skal udføres +IFERROR = HVIS.FEJL ## Returnerer en værdi, du angiver, hvis en formel evauleres som en fejl. Returnerer i modsat fald resultatet af formlen +NOT = IKKE ## Vender argumentets logik om +OR = ELLER ## Returneret værdien SAND, hvis mindst ét argument er sandt +TRUE = SAND ## Returnerer den logiske værdi SAND + + +## +## Lookup and reference functions Opslags- og referencefunktioner +## +ADDRESS = ADRESSE ## Returnerer en reference som tekst til en enkelt celle i et regneark +AREAS = OMRÅDER ## Returnerer antallet af områder i en reference +CHOOSE = VÆLG ## Vælger en værdi på en liste med værdier +COLUMN = KOLONNE ## Returnerer kolonnenummeret i en reference +COLUMNS = KOLONNER ## Returnerer antallet af kolonner i en reference +HLOOKUP = VOPSLAG ## Søger i den øverste række af en matrix og returnerer værdien af den angivne celle +HYPERLINK = HYPERLINK ## Opretter en genvej kaldet et hyperlink, der åbner et dokument, som er lagret på en netværksserver, på et intranet eller på internettet +INDEX = INDEKS ## Anvender et indeks til at vælge en værdi fra en reference eller en matrix +INDIRECT = INDIREKTE ## Returnerer en reference, der er angivet af en tekstværdi +LOOKUP = SLÅ.OP ## Søger værdier i en vektor eller en matrix +MATCH = SAMMENLIGN ## Søger værdier i en reference eller en matrix +OFFSET = FORSKYDNING ## Returnerer en reference forskudt i forhold til en given reference +ROW = RÆKKE ## Returnerer rækkenummeret for en reference +ROWS = RÆKKER ## Returnerer antallet af rækker i en reference +RTD = RTD ## Henter realtidsdata fra et program, der understøtter COM-automatisering (Automation: En metode til at arbejde med objekter fra et andet program eller udviklingsværktøj. Automation, som tidligere blev kaldt OLE Automation, er en industristandard og en funktion i COM (Component Object Model).) +TRANSPOSE = TRANSPONER ## Returnerer en transponeret matrix +VLOOKUP = LOPSLAG ## Søger i øverste række af en matrix og flytter på tværs af rækken for at returnere en celleværdi + + +## +## Math and trigonometry functions Matematiske og trigonometriske funktioner +## +ABS = ABS ## Returnerer den absolutte værdi af et tal +ACOS = ARCCOS ## Returnerer et tals arcus cosinus +ACOSH = ARCCOSH ## Returnerer den inverse hyperbolske cosinus af tal +ASIN = ARCSIN ## Returnerer et tals arcus sinus +ASINH = ARCSINH ## Returnerer den inverse hyperbolske sinus for tal +ATAN = ARCTAN ## Returnerer et tals arcus tangens +ATAN2 = ARCTAN2 ## Returnerer de angivne x- og y-koordinaters arcus tangens +ATANH = ARCTANH ## Returnerer et tals inverse hyperbolske tangens +CEILING = AFRUND.LOFT ## Afrunder et tal til nærmeste heltal eller til nærmeste multiplum af betydning +COMBIN = KOMBIN ## Returnerer antallet af kombinationer for et givet antal objekter +COS = COS ## Returnerer et tals cosinus +COSH = COSH ## Returnerer den inverse hyperbolske cosinus af et tal +DEGREES = GRADER ## Konverterer radianer til grader +EVEN = LIGE ## Runder et tal op til nærmeste lige heltal +EXP = EKSP ## Returnerer e opløftet til en potens af et angivet tal +FACT = FAKULTET ## Returnerer et tals fakultet +FACTDOUBLE = DOBBELT.FAKULTET ## Returnerer et tals dobbelte fakultet +FLOOR = AFRUND.GULV ## Runder et tal ned mod nul +GCD = STØRSTE.FÆLLES.DIVISOR ## Returnerer den største fælles divisor +INT = HELTAL ## Nedrunder et tal til det nærmeste heltal +LCM = MINDSTE.FÆLLES.MULTIPLUM ## Returnerer det mindste fælles multiplum +LN = LN ## Returnerer et tals naturlige logaritme +LOG = LOG ## Returnerer logaritmen for et tal på grundlag af et angivet grundtal +LOG10 = LOG10 ## Returnerer titalslogaritmen af et tal +MDETERM = MDETERM ## Returnerer determinanten for en matrix +MINVERSE = MINVERT ## Returnerer den inverse matrix for en matrix +MMULT = MPRODUKT ## Returnerer matrixproduktet af to matrixer +MOD = REST ## Returnerer restværdien fra division +MROUND = MAFRUND ## Returnerer et tal afrundet til det ønskede multiplum +MULTINOMIAL = MULTINOMIAL ## Returnerer et multinomialt talsæt +ODD = ULIGE ## Runder et tal op til nærmeste ulige heltal +PI = PI ## Returnerer værdien af pi +POWER = POTENS ## Returnerer resultatet af et tal opløftet til en potens +PRODUCT = PRODUKT ## Multiplicerer argumenterne +QUOTIENT = KVOTIENT ## Returnerer heltalsdelen ved division +RADIANS = RADIANER ## Konverterer grader til radianer +RAND = SLUMP ## Returnerer et tilfældigt tal mellem 0 og 1 +RANDBETWEEN = SLUMP.MELLEM ## Returnerer et tilfældigt tal mellem de tal, der angives +ROMAN = ROMERTAL ## Konverterer et arabertal til romertal som tekst +ROUND = AFRUND ## Afrunder et tal til et angivet antal decimaler +ROUNDDOWN = RUND.NED ## Runder et tal ned mod nul +ROUNDUP = RUND.OP ## Runder et tal op, væk fra 0 (nul) +SERIESSUM = SERIESUM ## Returnerer summen af en potensserie baseret på en formel +SIGN = FORTEGN ## Returnerer et tals fortegn +SIN = SIN ## Returnerer en given vinkels sinusværdi +SINH = SINH ## Returnerer den hyperbolske sinus af et tal +SQRT = KVROD ## Returnerer en positiv kvadratrod +SQRTPI = KVRODPI ## Returnerer kvadratroden af (tal * pi;) +SUBTOTAL = SUBTOTAL ## Returnerer en subtotal på en liste eller i en database +SUM = SUM ## Lægger argumenterne sammen +SUMIF = SUM.HVIS ## Lægger de celler sammen, der er specificeret af et givet kriterium. +SUMIFS = SUM.HVISER ## Lægger de celler i et område sammen, der opfylder flere kriterier. +SUMPRODUCT = SUMPRODUKT ## Returnerer summen af produkter af ens matrixkomponenter +SUMSQ = SUMKV ## Returnerer summen af argumenternes kvadrater +SUMX2MY2 = SUMX2MY2 ## Returnerer summen af differensen mellem kvadrater af ens værdier i to matrixer +SUMX2PY2 = SUMX2PY2 ## Returnerer summen af summen af kvadrater af tilsvarende værdier i to matrixer +SUMXMY2 = SUMXMY2 ## Returnerer summen af kvadrater af differenser mellem ens værdier i to matrixer +TAN = TAN ## Returnerer et tals tangens +TANH = TANH ## Returnerer et tals hyperbolske tangens +TRUNC = AFKORT ## Afkorter et tal til et heltal + + +## +## Statistical functions Statistiske funktioner +## +AVEDEV = MAD ## Returnerer den gennemsnitlige numeriske afvigelse fra stikprøvens middelværdi +AVERAGE = MIDDEL ## Returnerer middelværdien af argumenterne +AVERAGEA = MIDDELV ## Returnerer middelværdien af argumenterne og medtager tal, tekst og logiske værdier +AVERAGEIF = MIDDEL.HVIS ## Returnerer gennemsnittet (den aritmetiske middelværdi) af alle de celler, der opfylder et givet kriterium, i et område +AVERAGEIFS = MIDDEL.HVISER ## Returnerer gennemsnittet (den aritmetiske middelværdi) af alle de celler, der opfylder flere kriterier. +BETADIST = BETAFORDELING ## Returnerer den kumulative betafordelingsfunktion +BETAINV = BETAINV ## Returnerer den inverse kumulative fordelingsfunktion for en angivet betafordeling +BINOMDIST = BINOMIALFORDELING ## Returnerer punktsandsynligheden for binomialfordelingen +CHIDIST = CHIFORDELING ## Returnerer fraktilsandsynligheden for en chi2-fordeling +CHIINV = CHIINV ## Returnerer den inverse fraktilsandsynlighed for en chi2-fordeling +CHITEST = CHITEST ## Foretager en test for uafhængighed +CONFIDENCE = KONFIDENSINTERVAL ## Returnerer et konfidensinterval for en population +CORREL = KORRELATION ## Returnerer korrelationskoefficienten mellem to datasæt +COUNT = TÆL ## Tæller antallet af tal på en liste med argumenter +COUNTA = TÆLV ## Tæller antallet af værdier på en liste med argumenter +COUNTBLANK = ANTAL.BLANKE ## Tæller antallet af tomme celler i et område +COUNTIF = TÆLHVIS ## Tæller antallet af celler, som opfylder de givne kriterier, i et område +COUNTIFS = TÆL.HVISER ## Tæller antallet af de celler, som opfylder flere kriterier, i et område +COVAR = KOVARIANS ## Beregner kovariansen mellem to stokastiske variabler +CRITBINOM = KRITBINOM ## Returnerer den mindste værdi for x, for hvilken det gælder, at fordelingsfunktionen er mindre end eller lig med kriterieværdien. +DEVSQ = SAK ## Returnerer summen af de kvadrerede afvigelser fra middelværdien +EXPONDIST = EKSPFORDELING ## Returnerer eksponentialfordelingen +FDIST = FFORDELING ## Returnerer fraktilsandsynligheden for F-fordelingen +FINV = FINV ## Returnerer den inverse fraktilsandsynlighed for F-fordelingen +FISHER = FISHER ## Returnerer Fisher-transformationen +FISHERINV = FISHERINV ## Returnerer den inverse Fisher-transformation +FORECAST = PROGNOSE ## Returnerer en prognoseværdi baseret på lineær tendens +FREQUENCY = FREKVENS ## Returnerer en frekvensfordeling i en søjlevektor +FTEST = FTEST ## Returnerer resultatet af en F-test til sammenligning af varians +GAMMADIST = GAMMAFORDELING ## Returnerer fordelingsfunktionen for gammafordelingen +GAMMAINV = GAMMAINV ## Returnerer den inverse fordelingsfunktion for gammafordelingen +GAMMALN = GAMMALN ## Returnerer den naturlige logaritme til gammafordelingen, G(x) +GEOMEAN = GEOMIDDELVÆRDI ## Returnerer det geometriske gennemsnit +GROWTH = FORØGELSE ## Returnerer værdier langs en eksponentiel tendens +HARMEAN = HARMIDDELVÆRDI ## Returnerer det harmoniske gennemsnit +HYPGEOMDIST = HYPGEOFORDELING ## Returnerer punktsandsynligheden i en hypergeometrisk fordeling +INTERCEPT = SKÆRING ## Returnerer afskæringsværdien på y-aksen i en lineær regression +KURT = TOPSTEJL ## Returnerer kurtosisværdien for en stokastisk variabel +LARGE = STOR ## Returnerer den k'te største værdi i et datasæt +LINEST = LINREGR ## Returnerer parameterestimaterne for en lineær tendens +LOGEST = LOGREGR ## Returnerer parameterestimaterne for en eksponentiel tendens +LOGINV = LOGINV ## Returnerer den inverse fordelingsfunktion for lognormalfordelingen +LOGNORMDIST = LOGNORMFORDELING ## Returnerer fordelingsfunktionen for lognormalfordelingen +MAX = MAKS ## Returnerer den maksimale værdi på en liste med argumenter. +MAXA = MAKSV ## Returnerer den maksimale værdi på en liste med argumenter og medtager tal, tekst og logiske værdier +MEDIAN = MEDIAN ## Returnerer medianen for de angivne tal +MIN = MIN ## Returnerer den mindste værdi på en liste med argumenter. +MINA = MINV ## Returnerer den mindste værdi på en liste med argumenter og medtager tal, tekst og logiske værdier +MODE = HYPPIGST ## Returnerer den hyppigste værdi i et datasæt +NEGBINOMDIST = NEGBINOMFORDELING ## Returnerer den negative binomialfordeling +NORMDIST = NORMFORDELING ## Returnerer fordelingsfunktionen for normalfordelingen +NORMINV = NORMINV ## Returnerer den inverse fordelingsfunktion for normalfordelingen +NORMSDIST = STANDARDNORMFORDELING ## Returnerer fordelingsfunktionen for standardnormalfordelingen +NORMSINV = STANDARDNORMINV ## Returnerer den inverse fordelingsfunktion for standardnormalfordelingen +PEARSON = PEARSON ## Returnerer Pearsons korrelationskoefficient +PERCENTILE = FRAKTIL ## Returnerer den k'te fraktil for datasættet +PERCENTRANK = PROCENTPLADS ## Returnerer den procentuelle rang for en given værdi i et datasæt +PERMUT = PERMUT ## Returnerer antallet af permutationer for et givet sæt objekter +POISSON = POISSON ## Returnerer fordelingsfunktionen for en Poisson-fordeling +PROB = SANDSYNLIGHED ## Returnerer intervalsandsynligheden +QUARTILE = KVARTIL ## Returnerer kvartilen i et givet datasæt +RANK = PLADS ## Returnerer rangen for et tal på en liste med tal +RSQ = FORKLARINGSGRAD ## Returnerer R2-værdien fra en simpel lineær regression +SKEW = SKÆVHED ## Returnerer skævheden for en stokastisk variabel +SLOPE = HÆLDNING ## Returnerer estimatet på hældningen fra en simpel lineær regression +SMALL = MINDSTE ## Returnerer den k'te mindste værdi i datasættet +STANDARDIZE = STANDARDISER ## Returnerer en standardiseret værdi +STDEV = STDAFV ## Estimerer standardafvigelsen på basis af en stikprøve +STDEVA = STDAFVV ## Beregner standardafvigelsen på basis af en prøve og medtager tal, tekst og logiske værdier +STDEVP = STDAFVP ## Beregner standardafvigelsen på basis af en hel population +STDEVPA = STDAFVPV ## Beregner standardafvigelsen på basis af en hel population og medtager tal, tekst og logiske værdier +STEYX = STFYX ## Returnerer standardafvigelsen for de estimerede y-værdier i den simple lineære regression +TDIST = TFORDELING ## Returnerer fordelingsfunktionen for Student's t-fordeling +TINV = TINV ## Returnerer den inverse fordelingsfunktion for Student's t-fordeling +TREND = TENDENS ## Returnerer værdi under antagelse af en lineær tendens +TRIMMEAN = TRIMMIDDELVÆRDI ## Returnerer den trimmede middelværdi for datasættet +TTEST = TTEST ## Returnerer den sandsynlighed, der er forbundet med Student's t-test +VAR = VARIANS ## Beregner variansen på basis af en prøve +VARA = VARIANSV ## Beregner variansen på basis af en prøve og medtager tal, tekst og logiske værdier +VARP = VARIANSP ## Beregner variansen på basis af hele populationen +VARPA = VARIANSPV ## Beregner variansen på basis af hele populationen og medtager tal, tekst og logiske værdier +WEIBULL = WEIBULL ## Returnerer fordelingsfunktionen for Weibull-fordelingen +ZTEST = ZTEST ## Returnerer sandsynlighedsværdien ved en en-sidet z-test + + +## +## Text functions Tekstfunktioner +## +ASC = ASC ## Ændrer engelske tegn i fuld bredde (dobbelt-byte) eller katakana i en tegnstreng til tegn i halv bredde (enkelt-byte) +BAHTTEXT = BAHTTEKST ## Konverterer et tal til tekst ved hjælp af valutaformatet ß (baht) +CHAR = TEGN ## Returnerer det tegn, der svarer til kodenummeret +CLEAN = RENS ## Fjerner alle tegn, der ikke kan udskrives, fra tekst +CODE = KODE ## Returnerer en numerisk kode for det første tegn i en tekststreng +CONCATENATE = SAMMENKÆDNING ## Sammenkæder adskillige tekstelementer til ét tekstelement +DOLLAR = KR ## Konverterer et tal til tekst ved hjælp af valutaformatet kr. (kroner) +EXACT = EKSAKT ## Kontrollerer, om to tekstværdier er identiske +FIND = FIND ## Søger efter en tekstværdi i en anden tekstværdi (der skelnes mellem store og små bogstaver) +FINDB = FINDB ## Søger efter en tekstværdi i en anden tekstværdi (der skelnes mellem store og små bogstaver) +FIXED = FAST ## Formaterer et tal som tekst med et fast antal decimaler +JIS = JIS ## Ændrer engelske tegn i halv bredde (enkelt-byte) eller katakana i en tegnstreng til tegn i fuld bredde (dobbelt-byte) +LEFT = VENSTRE ## Returnerer tegnet længst til venstre i en tekstværdi +LEFTB = VENSTREB ## Returnerer tegnet længst til venstre i en tekstværdi +LEN = LÆNGDE ## Returnerer antallet af tegn i en tekststreng +LENB = LÆNGDEB ## Returnerer antallet af tegn i en tekststreng +LOWER = SMÅ.BOGSTAVER ## Konverterer tekst til små bogstaver +MID = MIDT ## Returnerer et bestemt antal tegn fra en tekststreng fra og med den angivne startposition +MIDB = MIDTB ## Returnerer et bestemt antal tegn fra en tekststreng fra og med den angivne startposition +PHONETIC = FONETISK ## Uddrager de fonetiske (furigana) tegn fra en tekststreng +PROPER = STORT.FORBOGSTAV ## Konverterer første bogstav i hvert ord i teksten til stort bogstav +REPLACE = ERSTAT ## Erstatter tegn i tekst +REPLACEB = ERSTATB ## Erstatter tegn i tekst +REPT = GENTAG ## Gentager tekst et givet antal gange +RIGHT = HØJRE ## Returnerer tegnet længste til højre i en tekstværdi +RIGHTB = HØJREB ## Returnerer tegnet længste til højre i en tekstværdi +SEARCH = SØG ## Søger efter en tekstværdi i en anden tekstværdi (der skelnes ikke mellem store og små bogstaver) +SEARCHB = SØGB ## Søger efter en tekstværdi i en anden tekstværdi (der skelnes ikke mellem store og små bogstaver) +SUBSTITUTE = UDSKIFT ## Udskifter gammel tekst med ny tekst i en tekststreng +T = T ## Konverterer argumenterne til tekst +TEXT = TEKST ## Formaterer et tal og konverterer det til tekst +TRIM = FJERN.OVERFLØDIGE.BLANKE ## Fjerner mellemrum fra tekst +UPPER = STORE.BOGSTAVER ## Konverterer tekst til store bogstaver +VALUE = VÆRDI ## Konverterer et tekstargument til et tal diff --git a/admin/helpers/PHPExcel/locale/da/index.html b/admin/helpers/PHPExcel/locale/da/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/da/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/de/config b/admin/helpers/PHPExcel/locale/de/config new file mode 100644 index 00000000..aa0228e7 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/de/config @@ -0,0 +1,47 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = € + + +## +## Excel Error Codes (For future use) +## +NULL = #NULL! +DIV0 = #DIV/0! +VALUE = #WERT! +REF = #BEZUG! +NAME = #NAME? +NUM = #ZAHL! +NA = #NV diff --git a/admin/helpers/PHPExcel/locale/de/functions b/admin/helpers/PHPExcel/locale/de/functions new file mode 100644 index 00000000..3147f9c8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/de/functions @@ -0,0 +1,438 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Calculation +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ +## +## + + +## +## Add-in and Automation functions Add-In- und Automatisierungsfunktionen +## +GETPIVOTDATA = PIVOTDATENZUORDNEN ## In einem PivotTable-Bericht gespeicherte Daten werden zurückgegeben. + + +## +## Cube functions Cubefunktionen +## +CUBEKPIMEMBER = CUBEKPIELEMENT ## Gibt Name, Eigenschaft und Measure eines Key Performance Indicators (KPI) zurück und zeigt den Namen und die Eigenschaft in der Zelle an. Ein KPI ist ein quantifizierbares Maß, wie z. B. der monatliche Bruttogewinn oder die vierteljährliche Mitarbeiterfluktuation, mit dessen Hilfe das Leistungsverhalten eines Unternehmens überwacht werden kann. +CUBEMEMBER = CUBEELEMENT ## Gibt ein Element oder ein Tuple in einer Cubehierarchie zurück. Wird verwendet, um zu überprüfen, ob das Element oder Tuple im Cube vorhanden ist. +CUBEMEMBERPROPERTY = CUBEELEMENTEIGENSCHAFT ## Gibt den Wert einer Elementeigenschaft im Cube zurück. Wird verwendet, um zu überprüfen, ob ein Elementname im Cube vorhanden ist, und um die für dieses Element angegebene Eigenschaft zurückzugeben. +CUBERANKEDMEMBER = CUBERANGELEMENT ## Gibt das n-te oder n-rangige Element in einer Menge zurück. Wird verwendet, um mindestens ein Element in einer Menge zurückzugeben, wie z. B. bester Vertriebsmitarbeiter oder 10 beste Kursteilnehmer. +CUBESET = CUBEMENGE ## Definiert eine berechnete Menge Elemente oder Tuples durch Senden eines Mengenausdrucks an den Cube auf dem Server, der die Menge erstellt und an Microsoft Office Excel zurückgibt. +CUBESETCOUNT = CUBEMENGENANZAHL ## Gibt die Anzahl der Elemente in einer Menge zurück. +CUBEVALUE = CUBEWERT ## Gibt einen Aggregatwert aus einem Cube zurück. + + +## +## Database functions Datenbankfunktionen +## +DAVERAGE = DBMITTELWERT ## Gibt den Mittelwert der ausgewählten Datenbankeinträge zurück +DCOUNT = DBANZAHL ## Zählt die Zellen mit Zahlen in einer Datenbank +DCOUNTA = DBANZAHL2 ## Zählt nicht leere Zellen in einer Datenbank +DGET = DBAUSZUG ## Extrahiert aus einer Datenbank einen einzelnen Datensatz, der den angegebenen Kriterien entspricht +DMAX = DBMAX ## Gibt den größten Wert aus ausgewählten Datenbankeinträgen zurück +DMIN = DBMIN ## Gibt den kleinsten Wert aus ausgewählten Datenbankeinträgen zurück +DPRODUCT = DBPRODUKT ## Multipliziert die Werte in einem bestimmten Feld mit Datensätzen, die den Kriterien in einer Datenbank entsprechen +DSTDEV = DBSTDABW ## Schätzt die Standardabweichung auf der Grundlage einer Stichprobe aus ausgewählten Datenbankeinträgen +DSTDEVP = DBSTDABWN ## Berechnet die Standardabweichung auf der Grundlage der Grundgesamtheit ausgewählter Datenbankeinträge +DSUM = DBSUMME ## Addiert die Zahlen in der Feldspalte mit Datensätzen in der Datenbank, die den Kriterien entsprechen +DVAR = DBVARIANZ ## Schätzt die Varianz auf der Grundlage ausgewählter Datenbankeinträge +DVARP = DBVARIANZEN ## Berechnet die Varianz auf der Grundlage der Grundgesamtheit ausgewählter Datenbankeinträge + + +## +## Date and time functions Datums- und Zeitfunktionen +## +DATE = DATUM ## Gibt die fortlaufende Zahl eines bestimmten Datums zurück +DATEVALUE = DATWERT ## Wandelt ein Datum in Form von Text in eine fortlaufende Zahl um +DAY = TAG ## Wandelt eine fortlaufende Zahl in den Tag des Monats um +DAYS360 = TAGE360 ## Berechnet die Anzahl der Tage zwischen zwei Datumsangaben ausgehend von einem Jahr, das 360 Tage hat +EDATE = EDATUM ## Gibt die fortlaufende Zahl des Datums zurück, bei dem es sich um die angegebene Anzahl von Monaten vor oder nach dem Anfangstermin handelt +EOMONTH = MONATSENDE ## Gibt die fortlaufende Zahl des letzten Tags des Monats vor oder nach einer festgelegten Anzahl von Monaten zurück +HOUR = STUNDE ## Wandelt eine fortlaufende Zahl in eine Stunde um +MINUTE = MINUTE ## Wandelt eine fortlaufende Zahl in eine Minute um +MONTH = MONAT ## Wandelt eine fortlaufende Zahl in einen Monat um +NETWORKDAYS = NETTOARBEITSTAGE ## Gibt die Anzahl von ganzen Arbeitstagen zwischen zwei Datumswerten zurück +NOW = JETZT ## Gibt die fortlaufende Zahl des aktuellen Datums und der aktuellen Uhrzeit zurück +SECOND = SEKUNDE ## Wandelt eine fortlaufende Zahl in eine Sekunde um +TIME = ZEIT ## Gibt die fortlaufende Zahl einer bestimmten Uhrzeit zurück +TIMEVALUE = ZEITWERT ## Wandelt eine Uhrzeit in Form von Text in eine fortlaufende Zahl um +TODAY = HEUTE ## Gibt die fortlaufende Zahl des heutigen Datums zurück +WEEKDAY = WOCHENTAG ## Wandelt eine fortlaufende Zahl in den Wochentag um +WEEKNUM = KALENDERWOCHE ## Wandelt eine fortlaufende Zahl in eine Zahl um, die angibt, in welche Woche eines Jahres das angegebene Datum fällt +WORKDAY = ARBEITSTAG ## Gibt die fortlaufende Zahl des Datums vor oder nach einer bestimmten Anzahl von Arbeitstagen zurück +YEAR = JAHR ## Wandelt eine fortlaufende Zahl in ein Jahr um +YEARFRAC = BRTEILJAHRE ## Gibt die Anzahl der ganzen Tage zwischen Ausgangsdatum und Enddatum in Bruchteilen von Jahren zurück + + +## +## Engineering functions Konstruktionsfunktionen +## +BESSELI = BESSELI ## Gibt die geänderte Besselfunktion In(x) zurück +BESSELJ = BESSELJ ## Gibt die Besselfunktion Jn(x) zurück +BESSELK = BESSELK ## Gibt die geänderte Besselfunktion Kn(x) zurück +BESSELY = BESSELY ## Gibt die Besselfunktion Yn(x) zurück +BIN2DEC = BININDEZ ## Wandelt eine binäre Zahl (Dualzahl) in eine dezimale Zahl um +BIN2HEX = BININHEX ## Wandelt eine binäre Zahl (Dualzahl) in eine hexadezimale Zahl um +BIN2OCT = BININOKT ## Wandelt eine binäre Zahl (Dualzahl) in eine oktale Zahl um +COMPLEX = KOMPLEXE ## Wandelt den Real- und Imaginärteil in eine komplexe Zahl um +CONVERT = UMWANDELN ## Wandelt eine Zahl von einem Maßsystem in ein anderes um +DEC2BIN = DEZINBIN ## Wandelt eine dezimale Zahl in eine binäre Zahl (Dualzahl) um +DEC2HEX = DEZINHEX ## Wandelt eine dezimale Zahl in eine hexadezimale Zahl um +DEC2OCT = DEZINOKT ## Wandelt eine dezimale Zahl in eine oktale Zahl um +DELTA = DELTA ## Überprüft, ob zwei Werte gleich sind +ERF = GAUSSFEHLER ## Gibt die Gauss'sche Fehlerfunktion zurück +ERFC = GAUSSFKOMPL ## Gibt das Komplement zur Gauss'schen Fehlerfunktion zurück +GESTEP = GGANZZAHL ## Überprüft, ob eine Zahl größer als ein gegebener Schwellenwert ist +HEX2BIN = HEXINBIN ## Wandelt eine hexadezimale Zahl in eine Binärzahl um +HEX2DEC = HEXINDEZ ## Wandelt eine hexadezimale Zahl in eine dezimale Zahl um +HEX2OCT = HEXINOKT ## Wandelt eine hexadezimale Zahl in eine Oktalzahl um +IMABS = IMABS ## Gibt den Absolutbetrag (Modulo) einer komplexen Zahl zurück +IMAGINARY = IMAGINÄRTEIL ## Gibt den Imaginärteil einer komplexen Zahl zurück +IMARGUMENT = IMARGUMENT ## Gibt das Argument Theta zurück, einen Winkel, der als Bogenmaß ausgedrückt wird +IMCONJUGATE = IMKONJUGIERTE ## Gibt die konjugierte komplexe Zahl zu einer komplexen Zahl zurück +IMCOS = IMCOS ## Gibt den Kosinus einer komplexen Zahl zurück +IMDIV = IMDIV ## Gibt den Quotienten zweier komplexer Zahlen zurück +IMEXP = IMEXP ## Gibt die algebraische Form einer in exponentieller Schreibweise vorliegenden komplexen Zahl zurück +IMLN = IMLN ## Gibt den natürlichen Logarithmus einer komplexen Zahl zurück +IMLOG10 = IMLOG10 ## Gibt den Logarithmus einer komplexen Zahl zur Basis 10 zurück +IMLOG2 = IMLOG2 ## Gibt den Logarithmus einer komplexen Zahl zur Basis 2 zurück +IMPOWER = IMAPOTENZ ## Potenziert eine komplexe Zahl mit einer ganzen Zahl +IMPRODUCT = IMPRODUKT ## Gibt das Produkt von komplexen Zahlen zurück +IMREAL = IMREALTEIL ## Gibt den Realteil einer komplexen Zahl zurück +IMSIN = IMSIN ## Gibt den Sinus einer komplexen Zahl zurück +IMSQRT = IMWURZEL ## Gibt die Quadratwurzel einer komplexen Zahl zurück +IMSUB = IMSUB ## Gibt die Differenz zwischen zwei komplexen Zahlen zurück +IMSUM = IMSUMME ## Gibt die Summe von komplexen Zahlen zurück +OCT2BIN = OKTINBIN ## Wandelt eine oktale Zahl in eine binäre Zahl (Dualzahl) um +OCT2DEC = OKTINDEZ ## Wandelt eine oktale Zahl in eine dezimale Zahl um +OCT2HEX = OKTINHEX ## Wandelt eine oktale Zahl in eine hexadezimale Zahl um + + +## +## Financial functions Finanzmathematische Funktionen +## +ACCRINT = AUFGELZINS ## Gibt die aufgelaufenen Zinsen (Stückzinsen) eines Wertpapiers mit periodischen Zinszahlungen zurück +ACCRINTM = AUFGELZINSF ## Gibt die aufgelaufenen Zinsen (Stückzinsen) eines Wertpapiers zurück, die bei Fälligkeit ausgezahlt werden +AMORDEGRC = AMORDEGRK ## Gibt die Abschreibung für die einzelnen Abschreibungszeiträume mithilfe eines Abschreibungskoeffizienten zurück +AMORLINC = AMORLINEARK ## Gibt die Abschreibung für die einzelnen Abschreibungszeiträume zurück +COUPDAYBS = ZINSTERMTAGVA ## Gibt die Anzahl der Tage vom Anfang des Zinstermins bis zum Abrechnungstermin zurück +COUPDAYS = ZINSTERMTAGE ## Gibt die Anzahl der Tage der Zinsperiode zurück, die den Abrechnungstermin einschließt +COUPDAYSNC = ZINSTERMTAGNZ ## Gibt die Anzahl der Tage vom Abrechnungstermin bis zum nächsten Zinstermin zurück +COUPNCD = ZINSTERMNZ ## Gibt das Datum des ersten Zinstermins nach dem Abrechnungstermin zurück +COUPNUM = ZINSTERMZAHL ## Gibt die Anzahl der Zinstermine zwischen Abrechnungs- und Fälligkeitsdatum zurück +COUPPCD = ZINSTERMVZ ## Gibt das Datum des letzten Zinstermins vor dem Abrechnungstermin zurück +CUMIPMT = KUMZINSZ ## Berechnet die kumulierten Zinsen, die zwischen zwei Perioden zu zahlen sind +CUMPRINC = KUMKAPITAL ## Berechnet die aufgelaufene Tilgung eines Darlehens, die zwischen zwei Perioden zu zahlen ist +DB = GDA2 ## Gibt die geometrisch-degressive Abschreibung eines Wirtschaftsguts für eine bestimmte Periode zurück +DDB = GDA ## Gibt die Abschreibung eines Anlageguts für einen angegebenen Zeitraum unter Verwendung der degressiven Doppelraten-Abschreibung oder eines anderen von Ihnen angegebenen Abschreibungsverfahrens zurück +DISC = DISAGIO ## Gibt den in Prozent ausgedrückten Abzinsungssatz eines Wertpapiers zurück +DOLLARDE = NOTIERUNGDEZ ## Wandelt eine Notierung, die als Dezimalbruch ausgedrückt wurde, in eine Dezimalzahl um +DOLLARFR = NOTIERUNGBRU ## Wandelt eine Notierung, die als Dezimalzahl ausgedrückt wurde, in einen Dezimalbruch um +DURATION = DURATION ## Gibt die jährliche Duration eines Wertpapiers mit periodischen Zinszahlungen zurück +EFFECT = EFFEKTIV ## Gibt die jährliche Effektivverzinsung zurück +FV = ZW ## Gibt den zukünftigen Wert (Endwert) einer Investition zurück +FVSCHEDULE = ZW2 ## Gibt den aufgezinsten Wert des Anfangskapitals für eine Reihe periodisch unterschiedlicher Zinssätze zurück +INTRATE = ZINSSATZ ## Gibt den Zinssatz eines voll investierten Wertpapiers zurück +IPMT = ZINSZ ## Gibt die Zinszahlung einer Investition für die angegebene Periode zurück +IRR = IKV ## Gibt den internen Zinsfuß einer Investition ohne Finanzierungskosten oder Reinvestitionsgewinne zurück +ISPMT = ISPMT ## Berechnet die während eines bestimmten Zeitraums für eine Investition gezahlten Zinsen +MDURATION = MDURATION ## Gibt die geänderte Dauer für ein Wertpapier mit einem angenommenen Nennwert von 100 € zurück +MIRR = QIKV ## Gibt den internen Zinsfuß zurück, wobei positive und negative Zahlungen zu unterschiedlichen Sätzen finanziert werden +NOMINAL = NOMINAL ## Gibt die jährliche Nominalverzinsung zurück +NPER = ZZR ## Gibt die Anzahl der Zahlungsperioden einer Investition zurück +NPV = NBW ## Gibt den Nettobarwert einer Investition auf Basis periodisch anfallender Zahlungen und eines Abzinsungsfaktors zurück +ODDFPRICE = UNREGER.KURS ## Gibt den Kurs pro 100 € Nennwert eines Wertpapiers mit einem unregelmäßigen ersten Zinstermin zurück +ODDFYIELD = UNREGER.REND ## Gibt die Rendite eines Wertpapiers mit einem unregelmäßigen ersten Zinstermin zurück +ODDLPRICE = UNREGLE.KURS ## Gibt den Kurs pro 100 € Nennwert eines Wertpapiers mit einem unregelmäßigen letzten Zinstermin zurück +ODDLYIELD = UNREGLE.REND ## Gibt die Rendite eines Wertpapiers mit einem unregelmäßigen letzten Zinstermin zurück +PMT = RMZ ## Gibt die periodische Zahlung für eine Annuität zurück +PPMT = KAPZ ## Gibt die Kapitalrückzahlung einer Investition für eine angegebene Periode zurück +PRICE = KURS ## Gibt den Kurs pro 100 € Nennwert eines Wertpapiers zurück, das periodisch Zinsen auszahlt +PRICEDISC = KURSDISAGIO ## Gibt den Kurs pro 100 € Nennwert eines unverzinslichen Wertpapiers zurück +PRICEMAT = KURSFÄLLIG ## Gibt den Kurs pro 100 € Nennwert eines Wertpapiers zurück, das Zinsen am Fälligkeitsdatum auszahlt +PV = BW ## Gibt den Barwert einer Investition zurück +RATE = ZINS ## Gibt den Zinssatz pro Zeitraum einer Annuität zurück +RECEIVED = AUSZAHLUNG ## Gibt den Auszahlungsbetrag eines voll investierten Wertpapiers am Fälligkeitstermin zurück +SLN = LIA ## Gibt die lineare Abschreibung eines Wirtschaftsguts pro Periode zurück +SYD = DIA ## Gibt die arithmetisch-degressive Abschreibung eines Wirtschaftsguts für eine bestimmte Periode zurück +TBILLEQ = TBILLÄQUIV ## Gibt die Rendite für ein Wertpapier zurück +TBILLPRICE = TBILLKURS ## Gibt den Kurs pro 100 € Nennwert eines Wertpapiers zurück +TBILLYIELD = TBILLRENDITE ## Gibt die Rendite für ein Wertpapier zurück +VDB = VDB ## Gibt die degressive Abschreibung eines Wirtschaftsguts für eine bestimmte Periode oder Teilperiode zurück +XIRR = XINTZINSFUSS ## Gibt den internen Zinsfuß einer Reihe nicht periodisch anfallender Zahlungen zurück +XNPV = XKAPITALWERT ## Gibt den Nettobarwert (Kapitalwert) einer Reihe nicht periodisch anfallender Zahlungen zurück +YIELD = RENDITE ## Gibt die Rendite eines Wertpapiers zurück, das periodisch Zinsen auszahlt +YIELDDISC = RENDITEDIS ## Gibt die jährliche Rendite eines unverzinslichen Wertpapiers zurück +YIELDMAT = RENDITEFÄLL ## Gibt die jährliche Rendite eines Wertpapiers zurück, das Zinsen am Fälligkeitsdatum auszahlt + + +## +## Information functions Informationsfunktionen +## +CELL = ZELLE ## Gibt Informationen zu Formatierung, Position oder Inhalt einer Zelle zurück +ERROR.TYPE = FEHLER.TYP ## Gibt eine Zahl zurück, die einem Fehlertyp entspricht +INFO = INFO ## Gibt Informationen zur aktuellen Betriebssystemumgebung zurück +ISBLANK = ISTLEER ## Gibt WAHR zurück, wenn der Wert leer ist +ISERR = ISTFEHL ## Gibt WAHR zurück, wenn der Wert ein beliebiger Fehlerwert außer #N/V ist +ISERROR = ISTFEHLER ## Gibt WAHR zurück, wenn der Wert ein beliebiger Fehlerwert ist +ISEVEN = ISTGERADE ## Gibt WAHR zurück, wenn es sich um eine gerade Zahl handelt +ISLOGICAL = ISTLOG ## Gibt WAHR zurück, wenn der Wert ein Wahrheitswert ist +ISNA = ISTNV ## Gibt WAHR zurück, wenn der Wert der Fehlerwert #N/V ist +ISNONTEXT = ISTKTEXT ## Gibt WAHR zurück, wenn der Wert ein Element ist, das keinen Text enthält +ISNUMBER = ISTZAHL ## Gibt WAHR zurück, wenn der Wert eine Zahl ist +ISODD = ISTUNGERADE ## Gibt WAHR zurück, wenn es sich um eine ungerade Zahl handelt +ISREF = ISTBEZUG ## Gibt WAHR zurück, wenn der Wert ein Bezug ist +ISTEXT = ISTTEXT ## Gibt WAHR zurück, wenn der Wert ein Element ist, das Text enthält +N = N ## Gibt den in eine Zahl umgewandelten Wert zurück +NA = NV ## Gibt den Fehlerwert #NV zurück +TYPE = TYP ## Gibt eine Zahl zurück, die den Datentyp des angegebenen Werts anzeigt + + +## +## Logical functions Logische Funktionen +## +AND = UND ## Gibt WAHR zurück, wenn alle zugehörigen Argumente WAHR sind +FALSE = FALSCH ## Gibt den Wahrheitswert FALSCH zurück +IF = WENN ## Gibt einen logischen Test zum Ausführen an +IFERROR = WENNFEHLER ## Gibt einen von Ihnen festgelegten Wert zurück, wenn die Auswertung der Formel zu einem Fehler führt; andernfalls wird das Ergebnis der Formel zurückgegeben +NOT = NICHT ## Kehrt den Wahrheitswert der zugehörigen Argumente um +OR = ODER ## Gibt WAHR zurück, wenn ein Argument WAHR ist +TRUE = WAHR ## Gibt den Wahrheitswert WAHR zurück + + +## +## Lookup and reference functions Nachschlage- und Verweisfunktionen +## +ADDRESS = ADRESSE ## Gibt einen Bezug auf eine einzelne Zelle in einem Tabellenblatt als Text zurück +AREAS = BEREICHE ## Gibt die Anzahl der innerhalb eines Bezugs aufgeführten Bereiche zurück +CHOOSE = WAHL ## Wählt einen Wert aus eine Liste mit Werten aus +COLUMN = SPALTE ## Gibt die Spaltennummer eines Bezugs zurück +COLUMNS = SPALTEN ## Gibt die Anzahl der Spalten in einem Bezug zurück +HLOOKUP = HVERWEIS ## Sucht in der obersten Zeile einer Matrix und gibt den Wert der angegebenen Zelle zurück +HYPERLINK = HYPERLINK ## Erstellt eine Verknüpfung, über die ein auf einem Netzwerkserver, in einem Intranet oder im Internet gespeichertes Dokument geöffnet wird +INDEX = INDEX ## Verwendet einen Index, um einen Wert aus einem Bezug oder einer Matrix auszuwählen +INDIRECT = INDIREKT ## Gibt einen Bezug zurück, der von einem Textwert angegeben wird +LOOKUP = LOOKUP ## Sucht Werte in einem Vektor oder einer Matrix +MATCH = VERGLEICH ## Sucht Werte in einem Bezug oder einer Matrix +OFFSET = BEREICH.VERSCHIEBEN ## Gibt einen Bezugoffset aus einem gegebenen Bezug zurück +ROW = ZEILE ## Gibt die Zeilennummer eines Bezugs zurück +ROWS = ZEILEN ## Gibt die Anzahl der Zeilen in einem Bezug zurück +RTD = RTD ## Ruft Echtzeitdaten von einem Programm ab, das die COM-Automatisierung (Automatisierung: Ein Verfahren, bei dem aus einer Anwendung oder einem Entwicklungstool heraus mit den Objekten einer anderen Anwendung gearbeitet wird. Die früher als OLE-Automatisierung bezeichnete Automatisierung ist ein Industriestandard und eine Funktion von COM (Component Object Model).) unterstützt +TRANSPOSE = MTRANS ## Gibt die transponierte Matrix einer Matrix zurück +VLOOKUP = SVERWEIS ## Sucht in der ersten Spalte einer Matrix und arbeitet sich durch die Zeile, um den Wert einer Zelle zurückzugeben + + +## +## Math and trigonometry functions Mathematische und trigonometrische Funktionen +## +ABS = ABS ## Gibt den Absolutwert einer Zahl zurück +ACOS = ARCCOS ## Gibt den Arkuskosinus einer Zahl zurück +ACOSH = ARCCOSHYP ## Gibt den umgekehrten hyperbolischen Kosinus einer Zahl zurück +ASIN = ARCSIN ## Gibt den Arkussinus einer Zahl zurück +ASINH = ARCSINHYP ## Gibt den umgekehrten hyperbolischen Sinus einer Zahl zurück +ATAN = ARCTAN ## Gibt den Arkustangens einer Zahl zurück +ATAN2 = ARCTAN2 ## Gibt den Arkustangens einer x- und einer y-Koordinate zurück +ATANH = ARCTANHYP ## Gibt den umgekehrten hyperbolischen Tangens einer Zahl zurück +CEILING = OBERGRENZE ## Rundet eine Zahl auf die nächste ganze Zahl oder das nächste Vielfache von Schritt +COMBIN = KOMBINATIONEN ## Gibt die Anzahl der Kombinationen für eine bestimmte Anzahl von Objekten zurück +COS = COS ## Gibt den Kosinus einer Zahl zurück +COSH = COSHYP ## Gibt den hyperbolischen Kosinus einer Zahl zurück +DEGREES = GRAD ## Wandelt Bogenmaß (Radiant) in Grad um +EVEN = GERADE ## Rundet eine Zahl auf die nächste gerade ganze Zahl auf +EXP = EXP ## Potenziert die Basis e mit der als Argument angegebenen Zahl +FACT = FAKULTÄT ## Gibt die Fakultät einer Zahl zurück +FACTDOUBLE = ZWEIFAKULTÄT ## Gibt die Fakultät zu Zahl mit Schrittlänge 2 zurück +FLOOR = UNTERGRENZE ## Rundet die Zahl auf Anzahl_Stellen ab +GCD = GGT ## Gibt den größten gemeinsamen Teiler zurück +INT = GANZZAHL ## Rundet eine Zahl auf die nächstkleinere ganze Zahl ab +LCM = KGV ## Gibt das kleinste gemeinsame Vielfache zurück +LN = LN ## Gibt den natürlichen Logarithmus einer Zahl zurück +LOG = LOG ## Gibt den Logarithmus einer Zahl zu der angegebenen Basis zurück +LOG10 = LOG10 ## Gibt den Logarithmus einer Zahl zur Basis 10 zurück +MDETERM = MDET ## Gibt die Determinante einer Matrix zurück +MINVERSE = MINV ## Gibt die inverse Matrix einer Matrix zurück +MMULT = MMULT ## Gibt das Produkt zweier Matrizen zurück +MOD = REST ## Gibt den Rest einer Division zurück +MROUND = VRUNDEN ## Gibt eine auf das gewünschte Vielfache gerundete Zahl zurück +MULTINOMIAL = POLYNOMIAL ## Gibt den Polynomialkoeffizienten einer Gruppe von Zahlen zurück +ODD = UNGERADE ## Rundet eine Zahl auf die nächste ungerade ganze Zahl auf +PI = PI ## Gibt den Wert Pi zurück +POWER = POTENZ ## Gibt als Ergebnis eine potenzierte Zahl zurück +PRODUCT = PRODUKT ## Multipliziert die zugehörigen Argumente +QUOTIENT = QUOTIENT ## Gibt den ganzzahligen Anteil einer Division zurück +RADIANS = BOGENMASS ## Wandelt Grad in Bogenmaß (Radiant) um +RAND = ZUFALLSZAHL ## Gibt eine Zufallszahl zwischen 0 und 1 zurück +RANDBETWEEN = ZUFALLSBEREICH ## Gibt eine Zufallszahl aus dem festgelegten Bereich zurück +ROMAN = RÖMISCH ## Wandelt eine arabische Zahl in eine römische Zahl als Text um +ROUND = RUNDEN ## Rundet eine Zahl auf eine bestimmte Anzahl von Dezimalstellen +ROUNDDOWN = ABRUNDEN ## Rundet die Zahl auf Anzahl_Stellen ab +ROUNDUP = AUFRUNDEN ## Rundet die Zahl auf Anzahl_Stellen auf +SERIESSUM = POTENZREIHE ## Gibt die Summe von Potenzen (zur Berechnung von Potenzreihen und dichotomen Wahrscheinlichkeiten) zurück +SIGN = VORZEICHEN ## Gibt das Vorzeichen einer Zahl zurück +SIN = SIN ## Gibt den Sinus einer Zahl zurück +SINH = SINHYP ## Gibt den hyperbolischen Sinus einer Zahl zurück +SQRT = WURZEL ## Gibt die Quadratwurzel einer Zahl zurück +SQRTPI = WURZELPI ## Gibt die Wurzel aus der mit Pi (pi) multiplizierten Zahl zurück +SUBTOTAL = TEILERGEBNIS ## Gibt ein Teilergebnis in einer Liste oder Datenbank zurück +SUM = SUMME ## Addiert die zugehörigen Argumente +SUMIF = SUMMEWENN ## Addiert Zahlen, die mit den Suchkriterien übereinstimmen +SUMIFS = SUMMEWENNS ## Die Zellen, die mehrere Kriterien erfüllen, werden in einem Bereich hinzugefügt +SUMPRODUCT = SUMMENPRODUKT ## Gibt die Summe der Produkte zusammengehöriger Matrixkomponenten zurück +SUMSQ = QUADRATESUMME ## Gibt die Summe der quadrierten Argumente zurück +SUMX2MY2 = SUMMEX2MY2 ## Gibt die Summe der Differenzen der Quadrate für zusammengehörige Komponenten zweier Matrizen zurück +SUMX2PY2 = SUMMEX2PY2 ## Gibt die Summe der Quadrate für zusammengehörige Komponenten zweier Matrizen zurück +SUMXMY2 = SUMMEXMY2 ## Gibt die Summe der quadrierten Differenzen für zusammengehörige Komponenten zweier Matrizen zurück +TAN = TAN ## Gibt den Tangens einer Zahl zurück +TANH = TANHYP ## Gibt den hyperbolischen Tangens einer Zahl zurück +TRUNC = KÜRZEN ## Schneidet die Kommastellen einer Zahl ab und gibt als Ergebnis eine ganze Zahl zurück + + +## +## Statistical functions Statistische Funktionen +## +AVEDEV = MITTELABW ## Gibt die durchschnittliche absolute Abweichung einer Reihe von Merkmalsausprägungen und ihrem Mittelwert zurück +AVERAGE = MITTELWERT ## Gibt den Mittelwert der zugehörigen Argumente zurück +AVERAGEA = MITTELWERTA ## Gibt den Mittelwert der zugehörigen Argumente, die Zahlen, Text und Wahrheitswerte enthalten, zurück +AVERAGEIF = MITTELWERTWENN ## Der Durchschnittswert (arithmetisches Mittel) für alle Zellen in einem Bereich, die einem angegebenen Kriterium entsprechen, wird zurückgegeben +AVERAGEIFS = MITTELWERTWENNS ## Gibt den Durchschnittswert (arithmetisches Mittel) aller Zellen zurück, die mehreren Kriterien entsprechen +BETADIST = BETAVERT ## Gibt die Werte der kumulierten Betaverteilungsfunktion zurück +BETAINV = BETAINV ## Gibt das Quantil der angegebenen Betaverteilung zurück +BINOMDIST = BINOMVERT ## Gibt Wahrscheinlichkeiten einer binomialverteilten Zufallsvariablen zurück +CHIDIST = CHIVERT ## Gibt Werte der Verteilungsfunktion (1-Alpha) einer Chi-Quadrat-verteilten Zufallsgröße zurück +CHIINV = CHIINV ## Gibt Quantile der Verteilungsfunktion (1-Alpha) der Chi-Quadrat-Verteilung zurück +CHITEST = CHITEST ## Gibt die Teststatistik eines Unabhängigkeitstests zurück +CONFIDENCE = KONFIDENZ ## Ermöglicht die Berechnung des 1-Alpha Konfidenzintervalls für den Erwartungswert einer Zufallsvariablen +CORREL = KORREL ## Gibt den Korrelationskoeffizienten zweier Reihen von Merkmalsausprägungen zurück +COUNT = ANZAHL ## Gibt die Anzahl der Zahlen in der Liste mit Argumenten an +COUNTA = ANZAHL2 ## Gibt die Anzahl der Werte in der Liste mit Argumenten an +COUNTBLANK = ANZAHLLEEREZELLEN ## Gibt die Anzahl der leeren Zellen in einem Bereich an +COUNTIF = ZÄHLENWENN ## Gibt die Anzahl der Zellen in einem Bereich an, deren Inhalte mit den Suchkriterien übereinstimmen +COUNTIFS = ZÄHLENWENNS ## Gibt die Anzahl der Zellen in einem Bereich an, deren Inhalte mit mehreren Suchkriterien übereinstimmen +COVAR = KOVAR ## Gibt die Kovarianz zurück, den Mittelwert der für alle Datenpunktpaare gebildeten Produkte der Abweichungen +CRITBINOM = KRITBINOM ## Gibt den kleinsten Wert zurück, für den die kumulierten Wahrscheinlichkeiten der Binomialverteilung kleiner oder gleich einer Grenzwahrscheinlichkeit sind +DEVSQ = SUMQUADABW ## Gibt die Summe der quadrierten Abweichungen der Datenpunkte von ihrem Stichprobenmittelwert zurück +EXPONDIST = EXPONVERT ## Gibt Wahrscheinlichkeiten einer exponential verteilten Zufallsvariablen zurück +FDIST = FVERT ## Gibt Werte der Verteilungsfunktion (1-Alpha) einer F-verteilten Zufallsvariablen zurück +FINV = FINV ## Gibt Quantile der F-Verteilung zurück +FISHER = FISHER ## Gibt die Fisher-Transformation zurück +FISHERINV = FISHERINV ## Gibt die Umkehrung der Fisher-Transformation zurück +FORECAST = PROGNOSE ## Gibt einen Wert zurück, der sich aus einem linearen Trend ergibt +FREQUENCY = HÄUFIGKEIT ## Gibt eine Häufigkeitsverteilung als vertikale Matrix zurück +FTEST = FTEST ## Gibt die Teststatistik eines F-Tests zurück +GAMMADIST = GAMMAVERT ## Gibt Wahrscheinlichkeiten einer gammaverteilten Zufallsvariablen zurück +GAMMAINV = GAMMAINV ## Gibt Quantile der Gammaverteilung zurück +GAMMALN = GAMMALN ## Gibt den natürlichen Logarithmus der Gammafunktion zurück, Γ(x) +GEOMEAN = GEOMITTEL ## Gibt das geometrische Mittel zurück +GROWTH = VARIATION ## Gibt Werte zurück, die sich aus einem exponentiellen Trend ergeben +HARMEAN = HARMITTEL ## Gibt das harmonische Mittel zurück +HYPGEOMDIST = HYPGEOMVERT ## Gibt Wahrscheinlichkeiten einer hypergeometrisch-verteilten Zufallsvariablen zurück +INTERCEPT = ACHSENABSCHNITT ## Gibt den Schnittpunkt der Regressionsgeraden zurück +KURT = KURT ## Gibt die Kurtosis (Exzess) einer Datengruppe zurück +LARGE = KGRÖSSTE ## Gibt den k-größten Wert einer Datengruppe zurück +LINEST = RGP ## Gibt die Parameter eines linearen Trends zurück +LOGEST = RKP ## Gibt die Parameter eines exponentiellen Trends zurück +LOGINV = LOGINV ## Gibt Quantile der Lognormalverteilung zurück +LOGNORMDIST = LOGNORMVERT ## Gibt Werte der Verteilungsfunktion einer lognormalverteilten Zufallsvariablen zurück +MAX = MAX ## Gibt den Maximalwert einer Liste mit Argumenten zurück +MAXA = MAXA ## Gibt den Maximalwert einer Liste mit Argumenten zurück, die Zahlen, Text und Wahrheitswerte enthalten +MEDIAN = MEDIAN ## Gibt den Median der angegebenen Zahlen zurück +MIN = MIN ## Gibt den Minimalwert einer Liste mit Argumenten zurück +MINA = MINA ## Gibt den kleinsten Wert einer Liste mit Argumenten zurück, die Zahlen, Text und Wahrheitswerte enthalten +MODE = MODALWERT ## Gibt den am häufigsten vorkommenden Wert in einer Datengruppe zurück +NEGBINOMDIST = NEGBINOMVERT ## Gibt Wahrscheinlichkeiten einer negativen, binominal verteilten Zufallsvariablen zurück +NORMDIST = NORMVERT ## Gibt Wahrscheinlichkeiten einer normal verteilten Zufallsvariablen zurück +NORMINV = NORMINV ## Gibt Quantile der Normalverteilung zurück +NORMSDIST = STANDNORMVERT ## Gibt Werte der Verteilungsfunktion einer standardnormalverteilten Zufallsvariablen zurück +NORMSINV = STANDNORMINV ## Gibt Quantile der Standardnormalverteilung zurück +PEARSON = PEARSON ## Gibt den Pearsonschen Korrelationskoeffizienten zurück +PERCENTILE = QUANTIL ## Gibt das Alpha-Quantil einer Gruppe von Daten zurück +PERCENTRANK = QUANTILSRANG ## Gibt den prozentualen Rang (Alpha) eines Werts in einer Datengruppe zurück +PERMUT = VARIATIONEN ## Gibt die Anzahl der Möglichkeiten zurück, um k Elemente aus einer Menge von n Elementen ohne Zurücklegen zu ziehen +POISSON = POISSON ## Gibt Wahrscheinlichkeiten einer poissonverteilten Zufallsvariablen zurück +PROB = WAHRSCHBEREICH ## Gibt die Wahrscheinlichkeit für ein von zwei Werten eingeschlossenes Intervall zurück +QUARTILE = QUARTILE ## Gibt die Quartile der Datengruppe zurück +RANK = RANG ## Gibt den Rang zurück, den eine Zahl innerhalb einer Liste von Zahlen einnimmt +RSQ = BESTIMMTHEITSMASS ## Gibt das Quadrat des Pearsonschen Korrelationskoeffizienten zurück +SKEW = SCHIEFE ## Gibt die Schiefe einer Verteilung zurück +SLOPE = STEIGUNG ## Gibt die Steigung der Regressionsgeraden zurück +SMALL = KKLEINSTE ## Gibt den k-kleinsten Wert einer Datengruppe zurück +STANDARDIZE = STANDARDISIERUNG ## Gibt den standardisierten Wert zurück +STDEV = STABW ## Schätzt die Standardabweichung ausgehend von einer Stichprobe +STDEVA = STABWA ## Schätzt die Standardabweichung ausgehend von einer Stichprobe, die Zahlen, Text und Wahrheitswerte enthält +STDEVP = STABWN ## Berechnet die Standardabweichung ausgehend von der Grundgesamtheit +STDEVPA = STABWNA ## Berechnet die Standardabweichung ausgehend von der Grundgesamtheit, die Zahlen, Text und Wahrheitswerte enthält +STEYX = STFEHLERYX ## Gibt den Standardfehler der geschätzten y-Werte für alle x-Werte der Regression zurück +TDIST = TVERT ## Gibt Werte der Verteilungsfunktion (1-Alpha) einer (Student) t-verteilten Zufallsvariablen zurück +TINV = TINV ## Gibt Quantile der t-Verteilung zurück +TREND = TREND ## Gibt Werte zurück, die sich aus einem linearen Trend ergeben +TRIMMEAN = GESTUTZTMITTEL ## Gibt den Mittelwert einer Datengruppe zurück, ohne die Randwerte zu berücksichtigen +TTEST = TTEST ## Gibt die Teststatistik eines Student'schen t-Tests zurück +VAR = VARIANZ ## Schätzt die Varianz ausgehend von einer Stichprobe +VARA = VARIANZA ## Schätzt die Varianz ausgehend von einer Stichprobe, die Zahlen, Text und Wahrheitswerte enthält +VARP = VARIANZEN ## Berechnet die Varianz ausgehend von der Grundgesamtheit +VARPA = VARIANZENA ## Berechnet die Varianz ausgehend von der Grundgesamtheit, die Zahlen, Text und Wahrheitswerte enthält +WEIBULL = WEIBULL ## Gibt Wahrscheinlichkeiten einer weibullverteilten Zufallsvariablen zurück +ZTEST = GTEST ## Gibt den einseitigen Wahrscheinlichkeitswert für einen Gausstest (Normalverteilung) zurück + + +## +## Text functions Textfunktionen +## +ASC = ASC ## Konvertiert DB-Text in einer Zeichenfolge (lateinische Buchstaben oder Katakana) in SB-Text +BAHTTEXT = BAHTTEXT ## Wandelt eine Zahl in Text im Währungsformat ß (Baht) um +CHAR = ZEICHEN ## Gibt das der Codezahl entsprechende Zeichen zurück +CLEAN = SÄUBERN ## Löscht alle nicht druckbaren Zeichen aus einem Text +CODE = CODE ## Gibt die Codezahl des ersten Zeichens in einem Text zurück +CONCATENATE = VERKETTEN ## Verknüpft mehrere Textelemente zu einem Textelement +DOLLAR = DM ## Wandelt eine Zahl in Text im Währungsformat € (Euro) um +EXACT = IDENTISCH ## Prüft, ob zwei Textwerte identisch sind +FIND = FINDEN ## Sucht nach einem Textwert, der in einem anderen Textwert enthalten ist (Groß-/Kleinschreibung wird unterschieden) +FINDB = FINDENB ## Sucht nach einem Textwert, der in einem anderen Textwert enthalten ist (Groß-/Kleinschreibung wird unterschieden) +FIXED = FEST ## Formatiert eine Zahl als Text mit einer festen Anzahl von Dezimalstellen +JIS = JIS ## Konvertiert SB-Text in einer Zeichenfolge (lateinische Buchstaben oder Katakana) in DB-Text +LEFT = LINKS ## Gibt die Zeichen ganz links in einem Textwert zurück +LEFTB = LINKSB ## Gibt die Zeichen ganz links in einem Textwert zurück +LEN = LÄNGE ## Gibt die Anzahl der Zeichen in einer Zeichenfolge zurück +LENB = LÄNGEB ## Gibt die Anzahl der Zeichen in einer Zeichenfolge zurück +LOWER = KLEIN ## Wandelt Text in Kleinbuchstaben um +MID = TEIL ## Gibt eine bestimmte Anzahl Zeichen aus einer Zeichenfolge ab der von Ihnen angegebenen Stelle zurück +MIDB = TEILB ## Gibt eine bestimmte Anzahl Zeichen aus einer Zeichenfolge ab der von Ihnen angegebenen Stelle zurück +PHONETIC = PHONETIC ## Extrahiert die phonetischen (Furigana-)Zeichen aus einer Textzeichenfolge +PROPER = GROSS2 ## Wandelt den ersten Buchstaben aller Wörter eines Textwerts in Großbuchstaben um +REPLACE = ERSETZEN ## Ersetzt Zeichen in Text +REPLACEB = ERSETZENB ## Ersetzt Zeichen in Text +REPT = WIEDERHOLEN ## Wiederholt einen Text so oft wie angegeben +RIGHT = RECHTS ## Gibt die Zeichen ganz rechts in einem Textwert zurück +RIGHTB = RECHTSB ## Gibt die Zeichen ganz rechts in einem Textwert zurück +SEARCH = SUCHEN ## Sucht nach einem Textwert, der in einem anderen Textwert enthalten ist (Groß-/Kleinschreibung wird nicht unterschieden) +SEARCHB = SUCHENB ## Sucht nach einem Textwert, der in einem anderen Textwert enthalten ist (Groß-/Kleinschreibung wird nicht unterschieden) +SUBSTITUTE = WECHSELN ## Ersetzt in einer Zeichenfolge neuen Text gegen alten +T = T ## Wandelt die zugehörigen Argumente in Text um +TEXT = TEXT ## Formatiert eine Zahl und wandelt sie in Text um +TRIM = GLÄTTEN ## Entfernt Leerzeichen aus Text +UPPER = GROSS ## Wandelt Text in Großbuchstaben um +VALUE = WERT ## Wandelt ein Textargument in eine Zahl um diff --git a/admin/helpers/PHPExcel/locale/de/index.html b/admin/helpers/PHPExcel/locale/de/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/de/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/en/index.html b/admin/helpers/PHPExcel/locale/en/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/en/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/en/uk/config b/admin/helpers/PHPExcel/locale/en/uk/config new file mode 100644 index 00000000..532080b5 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/en/uk/config @@ -0,0 +1,32 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +## +## (For future use) +## +currencySymbol = £ diff --git a/admin/helpers/PHPExcel/locale/en/uk/index.html b/admin/helpers/PHPExcel/locale/en/uk/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/en/uk/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/es/config b/admin/helpers/PHPExcel/locale/es/config new file mode 100644 index 00000000..96cfa69d --- /dev/null +++ b/admin/helpers/PHPExcel/locale/es/config @@ -0,0 +1,47 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = $ ## I'm surprised that the Excel Documentation suggests $ rather than € + + +## +## Excel Error Codes (For future use) +## +NULL = #¡NULO! +DIV0 = #¡DIV/0! +VALUE = #¡VALOR! +REF = #¡REF! +NAME = #¿NOMBRE? +NUM = #¡NÚM! +NA = #N/A diff --git a/admin/helpers/PHPExcel/locale/es/functions b/admin/helpers/PHPExcel/locale/es/functions new file mode 100644 index 00000000..48762695 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/es/functions @@ -0,0 +1,438 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Calculation +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ +## +## + + +## +## Add-in and Automation functions Funciones de complementos y automatización +## +GETPIVOTDATA = IMPORTARDATOSDINAMICOS ## Devuelve los datos almacenados en un informe de tabla dinámica. + + +## +## Cube functions Funciones de cubo +## +CUBEKPIMEMBER = MIEMBROKPICUBO ## Devuelve un nombre, propiedad y medida de indicador de rendimiento clave (KPI) y muestra el nombre y la propiedad en la celda. Un KPI es una medida cuantificable, como los beneficios brutos mensuales o la facturación trimestral por empleado, que se usa para supervisar el rendimiento de una organización. +CUBEMEMBER = MIEMBROCUBO ## Devuelve un miembro o tupla en una jerarquía de cubo. Se usa para validar la existencia del miembro o la tupla en el cubo. +CUBEMEMBERPROPERTY = PROPIEDADMIEMBROCUBO ## Devuelve el valor de una propiedad de miembro del cubo Se usa para validar la existencia de un nombre de miembro en el cubo y para devolver la propiedad especificada para este miembro. +CUBERANKEDMEMBER = MIEMBRORANGOCUBO ## Devuelve el miembro n, o clasificado, de un conjunto. Se usa para devolver uno o más elementos de un conjunto, por ejemplo, el representante con mejores ventas o los diez mejores alumnos. +CUBESET = CONJUNTOCUBO ## Define un conjunto calculado de miembros o tuplas mediante el envío de una expresión de conjunto al cubo en el servidor, lo que crea el conjunto y, después, devuelve dicho conjunto a Microsoft Office Excel. +CUBESETCOUNT = RECUENTOCONJUNTOCUBO ## Devuelve el número de elementos de un conjunto. +CUBEVALUE = VALORCUBO ## Devuelve un valor agregado de un cubo. + + +## +## Database functions Funciones de base de datos +## +DAVERAGE = BDPROMEDIO ## Devuelve el promedio de las entradas seleccionadas en la base de datos. +DCOUNT = BDCONTAR ## Cuenta el número de celdas que contienen números en una base de datos. +DCOUNTA = BDCONTARA ## Cuenta el número de celdas no vacías en una base de datos. +DGET = BDEXTRAER ## Extrae de una base de datos un único registro que cumple los criterios especificados. +DMAX = BDMAX ## Devuelve el valor máximo de las entradas seleccionadas de la base de datos. +DMIN = BDMIN ## Devuelve el valor mínimo de las entradas seleccionadas de la base de datos. +DPRODUCT = BDPRODUCTO ## Multiplica los valores de un campo concreto de registros de una base de datos que cumplen los criterios especificados. +DSTDEV = BDDESVEST ## Calcula la desviación estándar a partir de una muestra de entradas seleccionadas en la base de datos. +DSTDEVP = BDDESVESTP ## Calcula la desviación estándar en función de la población total de las entradas seleccionadas de la base de datos. +DSUM = BDSUMA ## Suma los números de la columna de campo de los registros de la base de datos que cumplen los criterios. +DVAR = BDVAR ## Calcula la varianza a partir de una muestra de entradas seleccionadas de la base de datos. +DVARP = BDVARP ## Calcula la varianza a partir de la población total de entradas seleccionadas de la base de datos. + + +## +## Date and time functions Funciones de fecha y hora +## +DATE = FECHA ## Devuelve el número de serie correspondiente a una fecha determinada. +DATEVALUE = FECHANUMERO ## Convierte una fecha con formato de texto en un valor de número de serie. +DAY = DIA ## Convierte un número de serie en un valor de día del mes. +DAYS360 = DIAS360 ## Calcula el número de días entre dos fechas a partir de un año de 360 días. +EDATE = FECHA.MES ## Devuelve el número de serie de la fecha equivalente al número indicado de meses anteriores o posteriores a la fecha inicial. +EOMONTH = FIN.MES ## Devuelve el número de serie correspondiente al último día del mes anterior o posterior a un número de meses especificado. +HOUR = HORA ## Convierte un número de serie en un valor de hora. +MINUTE = MINUTO ## Convierte un número de serie en un valor de minuto. +MONTH = MES ## Convierte un número de serie en un valor de mes. +NETWORKDAYS = DIAS.LAB ## Devuelve el número de todos los días laborables existentes entre dos fechas. +NOW = AHORA ## Devuelve el número de serie correspondiente a la fecha y hora actuales. +SECOND = SEGUNDO ## Convierte un número de serie en un valor de segundo. +TIME = HORA ## Devuelve el número de serie correspondiente a una hora determinada. +TIMEVALUE = HORANUMERO ## Convierte una hora con formato de texto en un valor de número de serie. +TODAY = HOY ## Devuelve el número de serie correspondiente al día actual. +WEEKDAY = DIASEM ## Convierte un número de serie en un valor de día de la semana. +WEEKNUM = NUM.DE.SEMANA ## Convierte un número de serie en un número que representa el lugar numérico correspondiente a una semana de un año. +WORKDAY = DIA.LAB ## Devuelve el número de serie de la fecha que tiene lugar antes o después de un número determinado de días laborables. +YEAR = AÑO ## Convierte un número de serie en un valor de año. +YEARFRAC = FRAC.AÑO ## Devuelve la fracción de año que representa el número total de días existentes entre el valor de fecha_inicial y el de fecha_final. + + +## +## Engineering functions Funciones de ingeniería +## +BESSELI = BESSELI ## Devuelve la función Bessel In(x) modificada. +BESSELJ = BESSELJ ## Devuelve la función Bessel Jn(x). +BESSELK = BESSELK ## Devuelve la función Bessel Kn(x) modificada. +BESSELY = BESSELY ## Devuelve la función Bessel Yn(x). +BIN2DEC = BIN.A.DEC ## Convierte un número binario en decimal. +BIN2HEX = BIN.A.HEX ## Convierte un número binario en hexadecimal. +BIN2OCT = BIN.A.OCT ## Convierte un número binario en octal. +COMPLEX = COMPLEJO ## Convierte coeficientes reales e imaginarios en un número complejo. +CONVERT = CONVERTIR ## Convierte un número de un sistema de medida a otro. +DEC2BIN = DEC.A.BIN ## Convierte un número decimal en binario. +DEC2HEX = DEC.A.HEX ## Convierte un número decimal en hexadecimal. +DEC2OCT = DEC.A.OCT ## Convierte un número decimal en octal. +DELTA = DELTA ## Comprueba si dos valores son iguales. +ERF = FUN.ERROR ## Devuelve la función de error. +ERFC = FUN.ERROR.COMPL ## Devuelve la función de error complementario. +GESTEP = MAYOR.O.IGUAL ## Comprueba si un número es mayor que un valor de umbral. +HEX2BIN = HEX.A.BIN ## Convierte un número hexadecimal en binario. +HEX2DEC = HEX.A.DEC ## Convierte un número hexadecimal en decimal. +HEX2OCT = HEX.A.OCT ## Convierte un número hexadecimal en octal. +IMABS = IM.ABS ## Devuelve el valor absoluto (módulo) de un número complejo. +IMAGINARY = IMAGINARIO ## Devuelve el coeficiente imaginario de un número complejo. +IMARGUMENT = IM.ANGULO ## Devuelve el argumento theta, un ángulo expresado en radianes. +IMCONJUGATE = IM.CONJUGADA ## Devuelve la conjugada compleja de un número complejo. +IMCOS = IM.COS ## Devuelve el coseno de un número complejo. +IMDIV = IM.DIV ## Devuelve el cociente de dos números complejos. +IMEXP = IM.EXP ## Devuelve el valor exponencial de un número complejo. +IMLN = IM.LN ## Devuelve el logaritmo natural (neperiano) de un número complejo. +IMLOG10 = IM.LOG10 ## Devuelve el logaritmo en base 10 de un número complejo. +IMLOG2 = IM.LOG2 ## Devuelve el logaritmo en base 2 de un número complejo. +IMPOWER = IM.POT ## Devuelve un número complejo elevado a una potencia entera. +IMPRODUCT = IM.PRODUCT ## Devuelve el producto de números complejos. +IMREAL = IM.REAL ## Devuelve el coeficiente real de un número complejo. +IMSIN = IM.SENO ## Devuelve el seno de un número complejo. +IMSQRT = IM.RAIZ2 ## Devuelve la raíz cuadrada de un número complejo. +IMSUB = IM.SUSTR ## Devuelve la diferencia entre dos números complejos. +IMSUM = IM.SUM ## Devuelve la suma de números complejos. +OCT2BIN = OCT.A.BIN ## Convierte un número octal en binario. +OCT2DEC = OCT.A.DEC ## Convierte un número octal en decimal. +OCT2HEX = OCT.A.HEX ## Convierte un número octal en hexadecimal. + + +## +## Financial functions Funciones financieras +## +ACCRINT = INT.ACUM ## Devuelve el interés acumulado de un valor bursátil con pagos de interés periódicos. +ACCRINTM = INT.ACUM.V ## Devuelve el interés acumulado de un valor bursátil con pagos de interés al vencimiento. +AMORDEGRC = AMORTIZ.PROGRE ## Devuelve la amortización de cada período contable mediante el uso de un coeficiente de amortización. +AMORLINC = AMORTIZ.LIN ## Devuelve la amortización de cada uno de los períodos contables. +COUPDAYBS = CUPON.DIAS.L1 ## Devuelve el número de días desde el principio del período de un cupón hasta la fecha de liquidación. +COUPDAYS = CUPON.DIAS ## Devuelve el número de días del período (entre dos cupones) donde se encuentra la fecha de liquidación. +COUPDAYSNC = CUPON.DIAS.L2 ## Devuelve el número de días desde la fecha de liquidación hasta la fecha del próximo cupón. +COUPNCD = CUPON.FECHA.L2 ## Devuelve la fecha del próximo cupón después de la fecha de liquidación. +COUPNUM = CUPON.NUM ## Devuelve el número de pagos de cupón entre la fecha de liquidación y la fecha de vencimiento. +COUPPCD = CUPON.FECHA.L1 ## Devuelve la fecha de cupón anterior a la fecha de liquidación. +CUMIPMT = PAGO.INT.ENTRE ## Devuelve el interés acumulado pagado entre dos períodos. +CUMPRINC = PAGO.PRINC.ENTRE ## Devuelve el capital acumulado pagado de un préstamo entre dos períodos. +DB = DB ## Devuelve la amortización de un bien durante un período específico a través del método de amortización de saldo fijo. +DDB = DDB ## Devuelve la amortización de un bien durante un período específico a través del método de amortización por doble disminución de saldo u otro método que se especifique. +DISC = TASA.DESC ## Devuelve la tasa de descuento de un valor bursátil. +DOLLARDE = MONEDA.DEC ## Convierte una cotización de un valor bursátil expresada en forma fraccionaria en una cotización de un valor bursátil expresada en forma decimal. +DOLLARFR = MONEDA.FRAC ## Convierte una cotización de un valor bursátil expresada en forma decimal en una cotización de un valor bursátil expresada en forma fraccionaria. +DURATION = DURACION ## Devuelve la duración anual de un valor bursátil con pagos de interés periódico. +EFFECT = INT.EFECTIVO ## Devuelve la tasa de interés anual efectiva. +FV = VF ## Devuelve el valor futuro de una inversión. +FVSCHEDULE = VF.PLAN ## Devuelve el valor futuro de un capital inicial después de aplicar una serie de tasas de interés compuesto. +INTRATE = TASA.INT ## Devuelve la tasa de interés para la inversión total de un valor bursátil. +IPMT = PAGOINT ## Devuelve el pago de intereses de una inversión durante un período determinado. +IRR = TIR ## Devuelve la tasa interna de retorno para una serie de flujos de efectivo periódicos. +ISPMT = INT.PAGO.DIR ## Calcula el interés pagado durante un período específico de una inversión. +MDURATION = DURACION.MODIF ## Devuelve la duración de Macauley modificada de un valor bursátil con un valor nominal supuesto de 100 $. +MIRR = TIRM ## Devuelve la tasa interna de retorno donde se financian flujos de efectivo positivos y negativos a tasas diferentes. +NOMINAL = TASA.NOMINAL ## Devuelve la tasa nominal de interés anual. +NPER = NPER ## Devuelve el número de períodos de una inversión. +NPV = VNA ## Devuelve el valor neto actual de una inversión en función de una serie de flujos periódicos de efectivo y una tasa de descuento. +ODDFPRICE = PRECIO.PER.IRREGULAR.1 ## Devuelve el precio por un valor nominal de 100 $ de un valor bursátil con un primer período impar. +ODDFYIELD = RENDTO.PER.IRREGULAR.1 ## Devuelve el rendimiento de un valor bursátil con un primer período impar. +ODDLPRICE = PRECIO.PER.IRREGULAR.2 ## Devuelve el precio por un valor nominal de 100 $ de un valor bursátil con un último período impar. +ODDLYIELD = RENDTO.PER.IRREGULAR.2 ## Devuelve el rendimiento de un valor bursátil con un último período impar. +PMT = PAGO ## Devuelve el pago periódico de una anualidad. +PPMT = PAGOPRIN ## Devuelve el pago de capital de una inversión durante un período determinado. +PRICE = PRECIO ## Devuelve el precio por un valor nominal de 100 $ de un valor bursátil que paga una tasa de interés periódico. +PRICEDISC = PRECIO.DESCUENTO ## Devuelve el precio por un valor nominal de 100 $ de un valor bursátil con descuento. +PRICEMAT = PRECIO.VENCIMIENTO ## Devuelve el precio por un valor nominal de 100 $ de un valor bursátil que paga interés a su vencimiento. +PV = VALACT ## Devuelve el valor actual de una inversión. +RATE = TASA ## Devuelve la tasa de interés por período de una anualidad. +RECEIVED = CANTIDAD.RECIBIDA ## Devuelve la cantidad recibida al vencimiento de un valor bursátil completamente invertido. +SLN = SLN ## Devuelve la amortización por método directo de un bien en un período dado. +SYD = SYD ## Devuelve la amortización por suma de dígitos de los años de un bien durante un período especificado. +TBILLEQ = LETRA.DE.TES.EQV.A.BONO ## Devuelve el rendimiento de un bono equivalente a una letra del Tesoro (de EE.UU.) +TBILLPRICE = LETRA.DE.TES.PRECIO ## Devuelve el precio por un valor nominal de 100 $ de una letra del Tesoro (de EE.UU.) +TBILLYIELD = LETRA.DE.TES.RENDTO ## Devuelve el rendimiento de una letra del Tesoro (de EE.UU.) +VDB = DVS ## Devuelve la amortización de un bien durante un período específico o parcial a través del método de cálculo del saldo en disminución. +XIRR = TIR.NO.PER ## Devuelve la tasa interna de retorno para un flujo de efectivo que no es necesariamente periódico. +XNPV = VNA.NO.PER ## Devuelve el valor neto actual para un flujo de efectivo que no es necesariamente periódico. +YIELD = RENDTO ## Devuelve el rendimiento de un valor bursátil que paga intereses periódicos. +YIELDDISC = RENDTO.DESC ## Devuelve el rendimiento anual de un valor bursátil con descuento; por ejemplo, una letra del Tesoro (de EE.UU.) +YIELDMAT = RENDTO.VENCTO ## Devuelve el rendimiento anual de un valor bursátil que paga intereses al vencimiento. + + +## +## Information functions Funciones de información +## +CELL = CELDA ## Devuelve información acerca del formato, la ubicación o el contenido de una celda. +ERROR.TYPE = TIPO.DE.ERROR ## Devuelve un número que corresponde a un tipo de error. +INFO = INFO ## Devuelve información acerca del entorno operativo en uso. +ISBLANK = ESBLANCO ## Devuelve VERDADERO si el valor está en blanco. +ISERR = ESERR ## Devuelve VERDADERO si el valor es cualquier valor de error excepto #N/A. +ISERROR = ESERROR ## Devuelve VERDADERO si el valor es cualquier valor de error. +ISEVEN = ES.PAR ## Devuelve VERDADERO si el número es par. +ISLOGICAL = ESLOGICO ## Devuelve VERDADERO si el valor es un valor lógico. +ISNA = ESNOD ## Devuelve VERDADERO si el valor es el valor de error #N/A. +ISNONTEXT = ESNOTEXTO ## Devuelve VERDADERO si el valor no es texto. +ISNUMBER = ESNUMERO ## Devuelve VERDADERO si el valor es un número. +ISODD = ES.IMPAR ## Devuelve VERDADERO si el número es impar. +ISREF = ESREF ## Devuelve VERDADERO si el valor es una referencia. +ISTEXT = ESTEXTO ## Devuelve VERDADERO si el valor es texto. +N = N ## Devuelve un valor convertido en un número. +NA = ND ## Devuelve el valor de error #N/A. +TYPE = TIPO ## Devuelve un número que indica el tipo de datos de un valor. + + +## +## Logical functions Funciones lógicas +## +AND = Y ## Devuelve VERDADERO si todos sus argumentos son VERDADERO. +FALSE = FALSO ## Devuelve el valor lógico FALSO. +IF = SI ## Especifica una prueba lógica que realizar. +IFERROR = SI.ERROR ## Devuelve un valor que se especifica si una fórmula lo evalúa como un error; de lo contrario, devuelve el resultado de la fórmula. +NOT = NO ## Invierte el valor lógico del argumento. +OR = O ## Devuelve VERDADERO si cualquier argumento es VERDADERO. +TRUE = VERDADERO ## Devuelve el valor lógico VERDADERO. + + +## +## Lookup and reference functions Funciones de búsqueda y referencia +## +ADDRESS = DIRECCION ## Devuelve una referencia como texto a una sola celda de una hoja de cálculo. +AREAS = AREAS ## Devuelve el número de áreas de una referencia. +CHOOSE = ELEGIR ## Elige un valor de una lista de valores. +COLUMN = COLUMNA ## Devuelve el número de columna de una referencia. +COLUMNS = COLUMNAS ## Devuelve el número de columnas de una referencia. +HLOOKUP = BUSCARH ## Busca en la fila superior de una matriz y devuelve el valor de la celda indicada. +HYPERLINK = HIPERVINCULO ## Crea un acceso directo o un salto que abre un documento almacenado en un servidor de red, en una intranet o en Internet. +INDEX = INDICE ## Usa un índice para elegir un valor de una referencia o matriz. +INDIRECT = INDIRECTO ## Devuelve una referencia indicada por un valor de texto. +LOOKUP = BUSCAR ## Busca valores de un vector o una matriz. +MATCH = COINCIDIR ## Busca valores de una referencia o matriz. +OFFSET = DESREF ## Devuelve un desplazamiento de referencia respecto a una referencia dada. +ROW = FILA ## Devuelve el número de fila de una referencia. +ROWS = FILAS ## Devuelve el número de filas de una referencia. +RTD = RDTR ## Recupera datos en tiempo real desde un programa compatible con la automatización COM (automatización: modo de trabajar con los objetos de una aplicación desde otra aplicación o herramienta de entorno. La automatización, antes denominada automatización OLE, es un estándar de la industria y una función del Modelo de objetos componentes (COM).). +TRANSPOSE = TRANSPONER ## Devuelve la transposición de una matriz. +VLOOKUP = BUSCARV ## Busca en la primera columna de una matriz y se mueve en horizontal por la fila para devolver el valor de una celda. + + +## +## Math and trigonometry functions Funciones matemáticas y trigonométricas +## +ABS = ABS ## Devuelve el valor absoluto de un número. +ACOS = ACOS ## Devuelve el arcocoseno de un número. +ACOSH = ACOSH ## Devuelve el coseno hiperbólico inverso de un número. +ASIN = ASENO ## Devuelve el arcoseno de un número. +ASINH = ASENOH ## Devuelve el seno hiperbólico inverso de un número. +ATAN = ATAN ## Devuelve la arcotangente de un número. +ATAN2 = ATAN2 ## Devuelve la arcotangente de las coordenadas "x" e "y". +ATANH = ATANH ## Devuelve la tangente hiperbólica inversa de un número. +CEILING = MULTIPLO.SUPERIOR ## Redondea un número al entero más próximo o al múltiplo significativo más cercano. +COMBIN = COMBINAT ## Devuelve el número de combinaciones para un número determinado de objetos. +COS = COS ## Devuelve el coseno de un número. +COSH = COSH ## Devuelve el coseno hiperbólico de un número. +DEGREES = GRADOS ## Convierte radianes en grados. +EVEN = REDONDEA.PAR ## Redondea un número hasta el entero par más próximo. +EXP = EXP ## Devuelve e elevado a la potencia de un número dado. +FACT = FACT ## Devuelve el factorial de un número. +FACTDOUBLE = FACT.DOBLE ## Devuelve el factorial doble de un número. +FLOOR = MULTIPLO.INFERIOR ## Redondea un número hacia abajo, en dirección hacia cero. +GCD = M.C.D ## Devuelve el máximo común divisor. +INT = ENTERO ## Redondea un número hacia abajo hasta el entero más próximo. +LCM = M.C.M ## Devuelve el mínimo común múltiplo. +LN = LN ## Devuelve el logaritmo natural (neperiano) de un número. +LOG = LOG ## Devuelve el logaritmo de un número en una base especificada. +LOG10 = LOG10 ## Devuelve el logaritmo en base 10 de un número. +MDETERM = MDETERM ## Devuelve la determinante matricial de una matriz. +MINVERSE = MINVERSA ## Devuelve la matriz inversa de una matriz. +MMULT = MMULT ## Devuelve el producto de matriz de dos matrices. +MOD = RESIDUO ## Devuelve el resto de la división. +MROUND = REDOND.MULT ## Devuelve un número redondeado al múltiplo deseado. +MULTINOMIAL = MULTINOMIAL ## Devuelve el polinomio de un conjunto de números. +ODD = REDONDEA.IMPAR ## Redondea un número hacia arriba hasta el entero impar más próximo. +PI = PI ## Devuelve el valor de pi. +POWER = POTENCIA ## Devuelve el resultado de elevar un número a una potencia. +PRODUCT = PRODUCTO ## Multiplica sus argumentos. +QUOTIENT = COCIENTE ## Devuelve la parte entera de una división. +RADIANS = RADIANES ## Convierte grados en radianes. +RAND = ALEATORIO ## Devuelve un número aleatorio entre 0 y 1. +RANDBETWEEN = ALEATORIO.ENTRE ## Devuelve un número aleatorio entre los números que especifique. +ROMAN = NUMERO.ROMANO ## Convierte un número arábigo en número romano, con formato de texto. +ROUND = REDONDEAR ## Redondea un número al número de decimales especificado. +ROUNDDOWN = REDONDEAR.MENOS ## Redondea un número hacia abajo, en dirección hacia cero. +ROUNDUP = REDONDEAR.MAS ## Redondea un número hacia arriba, en dirección contraria a cero. +SERIESSUM = SUMA.SERIES ## Devuelve la suma de una serie de potencias en función de la fórmula. +SIGN = SIGNO ## Devuelve el signo de un número. +SIN = SENO ## Devuelve el seno de un ángulo determinado. +SINH = SENOH ## Devuelve el seno hiperbólico de un número. +SQRT = RAIZ ## Devuelve la raíz cuadrada positiva de un número. +SQRTPI = RAIZ2PI ## Devuelve la raíz cuadrada de un número multiplicado por PI (número * pi). +SUBTOTAL = SUBTOTALES ## Devuelve un subtotal en una lista o base de datos. +SUM = SUMA ## Suma sus argumentos. +SUMIF = SUMAR.SI ## Suma las celdas especificadas que cumplen unos criterios determinados. +SUMIFS = SUMAR.SI.CONJUNTO ## Suma las celdas de un rango que cumplen varios criterios. +SUMPRODUCT = SUMAPRODUCTO ## Devuelve la suma de los productos de los correspondientes componentes de matriz. +SUMSQ = SUMA.CUADRADOS ## Devuelve la suma de los cuadrados de los argumentos. +SUMX2MY2 = SUMAX2MENOSY2 ## Devuelve la suma de la diferencia de los cuadrados de los valores correspondientes de dos matrices. +SUMX2PY2 = SUMAX2MASY2 ## Devuelve la suma de la suma de los cuadrados de los valores correspondientes de dos matrices. +SUMXMY2 = SUMAXMENOSY2 ## Devuelve la suma de los cuadrados de las diferencias de los valores correspondientes de dos matrices. +TAN = TAN ## Devuelve la tangente de un número. +TANH = TANH ## Devuelve la tangente hiperbólica de un número. +TRUNC = TRUNCAR ## Trunca un número a un entero. + + +## +## Statistical functions Funciones estadísticas +## +AVEDEV = DESVPROM ## Devuelve el promedio de las desviaciones absolutas de la media de los puntos de datos. +AVERAGE = PROMEDIO ## Devuelve el promedio de sus argumentos. +AVERAGEA = PROMEDIOA ## Devuelve el promedio de sus argumentos, incluidos números, texto y valores lógicos. +AVERAGEIF = PROMEDIO.SI ## Devuelve el promedio (media aritmética) de todas las celdas de un rango que cumplen unos criterios determinados. +AVERAGEIFS = PROMEDIO.SI.CONJUNTO ## Devuelve el promedio (media aritmética) de todas las celdas que cumplen múltiples criterios. +BETADIST = DISTR.BETA ## Devuelve la función de distribución beta acumulativa. +BETAINV = DISTR.BETA.INV ## Devuelve la función inversa de la función de distribución acumulativa de una distribución beta especificada. +BINOMDIST = DISTR.BINOM ## Devuelve la probabilidad de una variable aleatoria discreta siguiendo una distribución binomial. +CHIDIST = DISTR.CHI ## Devuelve la probabilidad de una variable aleatoria continua siguiendo una distribución chi cuadrado de una sola cola. +CHIINV = PRUEBA.CHI.INV ## Devuelve la función inversa de la probabilidad de una variable aleatoria continua siguiendo una distribución chi cuadrado de una sola cola. +CHITEST = PRUEBA.CHI ## Devuelve la prueba de independencia. +CONFIDENCE = INTERVALO.CONFIANZA ## Devuelve el intervalo de confianza de la media de una población. +CORREL = COEF.DE.CORREL ## Devuelve el coeficiente de correlación entre dos conjuntos de datos. +COUNT = CONTAR ## Cuenta cuántos números hay en la lista de argumentos. +COUNTA = CONTARA ## Cuenta cuántos valores hay en la lista de argumentos. +COUNTBLANK = CONTAR.BLANCO ## Cuenta el número de celdas en blanco de un rango. +COUNTIF = CONTAR.SI ## Cuenta el número de celdas, dentro del rango, que cumplen el criterio especificado. +COUNTIFS = CONTAR.SI.CONJUNTO ## Cuenta el número de celdas, dentro del rango, que cumplen varios criterios. +COVAR = COVAR ## Devuelve la covarianza, que es el promedio de los productos de las desviaciones para cada pareja de puntos de datos. +CRITBINOM = BINOM.CRIT ## Devuelve el menor valor cuya distribución binomial acumulativa es menor o igual a un valor de criterio. +DEVSQ = DESVIA2 ## Devuelve la suma de los cuadrados de las desviaciones. +EXPONDIST = DISTR.EXP ## Devuelve la distribución exponencial. +FDIST = DISTR.F ## Devuelve la distribución de probabilidad F. +FINV = DISTR.F.INV ## Devuelve la función inversa de la distribución de probabilidad F. +FISHER = FISHER ## Devuelve la transformación Fisher. +FISHERINV = PRUEBA.FISHER.INV ## Devuelve la función inversa de la transformación Fisher. +FORECAST = PRONOSTICO ## Devuelve un valor en una tendencia lineal. +FREQUENCY = FRECUENCIA ## Devuelve una distribución de frecuencia como una matriz vertical. +FTEST = PRUEBA.F ## Devuelve el resultado de una prueba F. +GAMMADIST = DISTR.GAMMA ## Devuelve la distribución gamma. +GAMMAINV = DISTR.GAMMA.INV ## Devuelve la función inversa de la distribución gamma acumulativa. +GAMMALN = GAMMA.LN ## Devuelve el logaritmo natural de la función gamma, G(x). +GEOMEAN = MEDIA.GEOM ## Devuelve la media geométrica. +GROWTH = CRECIMIENTO ## Devuelve valores en una tendencia exponencial. +HARMEAN = MEDIA.ARMO ## Devuelve la media armónica. +HYPGEOMDIST = DISTR.HIPERGEOM ## Devuelve la distribución hipergeométrica. +INTERCEPT = INTERSECCION.EJE ## Devuelve la intersección de la línea de regresión lineal. +KURT = CURTOSIS ## Devuelve la curtosis de un conjunto de datos. +LARGE = K.ESIMO.MAYOR ## Devuelve el k-ésimo mayor valor de un conjunto de datos. +LINEST = ESTIMACION.LINEAL ## Devuelve los parámetros de una tendencia lineal. +LOGEST = ESTIMACION.LOGARITMICA ## Devuelve los parámetros de una tendencia exponencial. +LOGINV = DISTR.LOG.INV ## Devuelve la función inversa de la distribución logarítmico-normal. +LOGNORMDIST = DISTR.LOG.NORM ## Devuelve la distribución logarítmico-normal acumulativa. +MAX = MAX ## Devuelve el valor máximo de una lista de argumentos. +MAXA = MAXA ## Devuelve el valor máximo de una lista de argumentos, incluidos números, texto y valores lógicos. +MEDIAN = MEDIANA ## Devuelve la mediana de los números dados. +MIN = MIN ## Devuelve el valor mínimo de una lista de argumentos. +MINA = MINA ## Devuelve el valor mínimo de una lista de argumentos, incluidos números, texto y valores lógicos. +MODE = MODA ## Devuelve el valor más común de un conjunto de datos. +NEGBINOMDIST = NEGBINOMDIST ## Devuelve la distribución binomial negativa. +NORMDIST = DISTR.NORM ## Devuelve la distribución normal acumulativa. +NORMINV = DISTR.NORM.INV ## Devuelve la función inversa de la distribución normal acumulativa. +NORMSDIST = DISTR.NORM.ESTAND ## Devuelve la distribución normal estándar acumulativa. +NORMSINV = DISTR.NORM.ESTAND.INV ## Devuelve la función inversa de la distribución normal estándar acumulativa. +PEARSON = PEARSON ## Devuelve el coeficiente de momento de correlación de producto Pearson. +PERCENTILE = PERCENTIL ## Devuelve el k-ésimo percentil de los valores de un rango. +PERCENTRANK = RANGO.PERCENTIL ## Devuelve el rango porcentual de un valor de un conjunto de datos. +PERMUT = PERMUTACIONES ## Devuelve el número de permutaciones de un número determinado de objetos. +POISSON = POISSON ## Devuelve la distribución de Poisson. +PROB = PROBABILIDAD ## Devuelve la probabilidad de que los valores de un rango se encuentren entre dos límites. +QUARTILE = CUARTIL ## Devuelve el cuartil de un conjunto de datos. +RANK = JERARQUIA ## Devuelve la jerarquía de un número en una lista de números. +RSQ = COEFICIENTE.R2 ## Devuelve el cuadrado del coeficiente de momento de correlación de producto Pearson. +SKEW = COEFICIENTE.ASIMETRIA ## Devuelve la asimetría de una distribución. +SLOPE = PENDIENTE ## Devuelve la pendiente de la línea de regresión lineal. +SMALL = K.ESIMO.MENOR ## Devuelve el k-ésimo menor valor de un conjunto de datos. +STANDARDIZE = NORMALIZACION ## Devuelve un valor normalizado. +STDEV = DESVEST ## Calcula la desviación estándar a partir de una muestra. +STDEVA = DESVESTA ## Calcula la desviación estándar a partir de una muestra, incluidos números, texto y valores lógicos. +STDEVP = DESVESTP ## Calcula la desviación estándar en función de toda la población. +STDEVPA = DESVESTPA ## Calcula la desviación estándar en función de toda la población, incluidos números, texto y valores lógicos. +STEYX = ERROR.TIPICO.XY ## Devuelve el error estándar del valor de "y" previsto para cada "x" de la regresión. +TDIST = DISTR.T ## Devuelve la distribución de t de Student. +TINV = DISTR.T.INV ## Devuelve la función inversa de la distribución de t de Student. +TREND = TENDENCIA ## Devuelve valores en una tendencia lineal. +TRIMMEAN = MEDIA.ACOTADA ## Devuelve la media del interior de un conjunto de datos. +TTEST = PRUEBA.T ## Devuelve la probabilidad asociada a una prueba t de Student. +VAR = VAR ## Calcula la varianza en función de una muestra. +VARA = VARA ## Calcula la varianza en función de una muestra, incluidos números, texto y valores lógicos. +VARP = VARP ## Calcula la varianza en función de toda la población. +VARPA = VARPA ## Calcula la varianza en función de toda la población, incluidos números, texto y valores lógicos. +WEIBULL = DIST.WEIBULL ## Devuelve la distribución de Weibull. +ZTEST = PRUEBA.Z ## Devuelve el valor de una probabilidad de una cola de una prueba z. + + +## +## Text functions Funciones de texto +## +ASC = ASC ## Convierte las letras inglesas o katakana de ancho completo (de dos bytes) dentro de una cadena de caracteres en caracteres de ancho medio (de un byte). +BAHTTEXT = TEXTOBAHT ## Convierte un número en texto, con el formato de moneda ß (Baht). +CHAR = CARACTER ## Devuelve el carácter especificado por el número de código. +CLEAN = LIMPIAR ## Quita del texto todos los caracteres no imprimibles. +CODE = CODIGO ## Devuelve un código numérico del primer carácter de una cadena de texto. +CONCATENATE = CONCATENAR ## Concatena varios elementos de texto en uno solo. +DOLLAR = MONEDA ## Convierte un número en texto, con el formato de moneda $ (dólar). +EXACT = IGUAL ## Comprueba si dos valores de texto son idénticos. +FIND = ENCONTRAR ## Busca un valor de texto dentro de otro (distingue mayúsculas de minúsculas). +FINDB = ENCONTRARB ## Busca un valor de texto dentro de otro (distingue mayúsculas de minúsculas). +FIXED = DECIMAL ## Da formato a un número como texto con un número fijo de decimales. +JIS = JIS ## Convierte las letras inglesas o katakana de ancho medio (de un byte) dentro de una cadena de caracteres en caracteres de ancho completo (de dos bytes). +LEFT = IZQUIERDA ## Devuelve los caracteres del lado izquierdo de un valor de texto. +LEFTB = IZQUIERDAB ## Devuelve los caracteres del lado izquierdo de un valor de texto. +LEN = LARGO ## Devuelve el número de caracteres de una cadena de texto. +LENB = LARGOB ## Devuelve el número de caracteres de una cadena de texto. +LOWER = MINUSC ## Pone el texto en minúsculas. +MID = EXTRAE ## Devuelve un número específico de caracteres de una cadena de texto que comienza en la posición que se especifique. +MIDB = EXTRAEB ## Devuelve un número específico de caracteres de una cadena de texto que comienza en la posición que se especifique. +PHONETIC = FONETICO ## Extrae los caracteres fonéticos (furigana) de una cadena de texto. +PROPER = NOMPROPIO ## Pone en mayúscula la primera letra de cada palabra de un valor de texto. +REPLACE = REEMPLAZAR ## Reemplaza caracteres de texto. +REPLACEB = REEMPLAZARB ## Reemplaza caracteres de texto. +REPT = REPETIR ## Repite el texto un número determinado de veces. +RIGHT = DERECHA ## Devuelve los caracteres del lado derecho de un valor de texto. +RIGHTB = DERECHAB ## Devuelve los caracteres del lado derecho de un valor de texto. +SEARCH = HALLAR ## Busca un valor de texto dentro de otro (no distingue mayúsculas de minúsculas). +SEARCHB = HALLARB ## Busca un valor de texto dentro de otro (no distingue mayúsculas de minúsculas). +SUBSTITUTE = SUSTITUIR ## Sustituye texto nuevo por texto antiguo en una cadena de texto. +T = T ## Convierte sus argumentos a texto. +TEXT = TEXTO ## Da formato a un número y lo convierte en texto. +TRIM = ESPACIOS ## Quita los espacios del texto. +UPPER = MAYUSC ## Pone el texto en mayúsculas. +VALUE = VALOR ## Convierte un argumento de texto en un número. diff --git a/admin/helpers/PHPExcel/locale/es/index.html b/admin/helpers/PHPExcel/locale/es/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/es/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/fi/config b/admin/helpers/PHPExcel/locale/fi/config new file mode 100644 index 00000000..498cf4ce --- /dev/null +++ b/admin/helpers/PHPExcel/locale/fi/config @@ -0,0 +1,47 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = $ # Symbol not known, should it be a € (Euro)? + + +## +## Excel Error Codes (For future use) +## +NULL = #TYHJÄ! +DIV0 = #JAKO/0! +VALUE = #ARVO! +REF = #VIITTAUS! +NAME = #NIMI? +NUM = #LUKU! +NA = #PUUTTUU diff --git a/admin/helpers/PHPExcel/locale/fi/functions b/admin/helpers/PHPExcel/locale/fi/functions new file mode 100644 index 00000000..6a7c2b36 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/fi/functions @@ -0,0 +1,438 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Calculation +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ +## +## + + +## +## Add-in and Automation functions Apuohjelma- ja automaatiofunktiot +## +GETPIVOTDATA = NOUDA.PIVOT.TIEDOT ## Palauttaa pivot-taulukkoraporttiin tallennettuja tietoja. + + +## +## Cube functions Kuutiofunktiot +## +CUBEKPIMEMBER = KUUTIOKPIJÄSEN ## Palauttaa suorituskykyilmaisimen (KPI) nimen, ominaisuuden sekä mitan ja näyttää nimen sekä ominaisuuden solussa. KPI on mitattavissa oleva suure, kuten kuukauden bruttotuotto tai vuosineljänneksen työntekijäkohtainen liikevaihto, joiden avulla tarkkaillaan organisaation suorituskykyä. +CUBEMEMBER = KUUTIONJÄSEN ## Palauttaa kuutiohierarkian jäsenen tai monikon. Tällä funktiolla voit tarkistaa, että jäsen tai monikko on olemassa kuutiossa. +CUBEMEMBERPROPERTY = KUUTIONJÄSENENOMINAISUUS ## Palauttaa kuution jäsenominaisuuden arvon. Tällä funktiolla voit tarkistaa, että nimi on olemassa kuutiossa, ja palauttaa tämän jäsenen määritetyn ominaisuuden. +CUBERANKEDMEMBER = KUUTIONLUOKITELTUJÄSEN ## Palauttaa joukon n:nnen jäsenen. Tällä funktiolla voit palauttaa joukosta elementtejä, kuten parhaan myyjän tai 10 parasta opiskelijaa. +CUBESET = KUUTIOJOUKKO ## Määrittää lasketun jäsen- tai monikkojoukon lähettämällä joukon lausekkeita palvelimessa olevalle kuutiolle. Palvelin luo joukon ja palauttaa sen Microsoft Office Excelille. +CUBESETCOUNT = KUUTIOJOUKKOJENMÄÄRÄ ## Palauttaa joukon kohteiden määrän. +CUBEVALUE = KUUTIONARVO ## Palauttaa koostetun arvon kuutiosta. + + +## +## Database functions Tietokantafunktiot +## +DAVERAGE = TKESKIARVO ## Palauttaa valittujen tietokantamerkintöjen keskiarvon. +DCOUNT = TLASKE ## Laskee tietokannan lukuja sisältävien solujen määrän. +DCOUNTA = TLASKEA ## Laskee tietokannan tietoja sisältävien solujen määrän. +DGET = TNOUDA ## Hakee määritettyjä ehtoja vastaavan tietueen tietokannasta. +DMAX = TMAKS ## Palauttaa suurimman arvon tietokannasta valittujen arvojen joukosta. +DMIN = TMIN ## Palauttaa pienimmän arvon tietokannasta valittujen arvojen joukosta. +DPRODUCT = TTULO ## Kertoo määritetyn ehdon täyttävien tietokannan tietueiden tietyssä kentässä olevat arvot. +DSTDEV = TKESKIHAJONTA ## Laskee keskihajonnan tietokannasta valituista arvoista muodostuvan otoksen perusteella. +DSTDEVP = TKESKIHAJONTAP ## Laskee keskihajonnan tietokannasta valittujen arvojen koko populaation perusteella. +DSUM = TSUMMA ## Lisää luvut määritetyn ehdon täyttävien tietokannan tietueiden kenttäsarakkeeseen. +DVAR = TVARIANSSI ## Laskee varianssin tietokannasta valittujen arvojen otoksen perusteella. +DVARP = TVARIANSSIP ## Laskee varianssin tietokannasta valittujen arvojen koko populaation perusteella. + + +## +## Date and time functions Päivämäärä- ja aikafunktiot +## +DATE = PÄIVÄYS ## Palauttaa annetun päivämäärän järjestysluvun. +DATEVALUE = PÄIVÄYSARVO ## Muuntaa tekstimuodossa olevan päivämäärän järjestysluvuksi. +DAY = PÄIVÄ ## Muuntaa järjestysluvun kuukauden päiväksi. +DAYS360 = PÄIVÄT360 ## Laskee kahden päivämäärän välisten päivien määrän käyttäen perustana 360-päiväistä vuotta. +EDATE = PÄIVÄ.KUUKAUSI ## Palauttaa järjestyslukuna päivämäärän, joka poikkeaa aloituspäivän päivämäärästä annetun kuukausimäärän verran joko eteen- tai taaksepäin. +EOMONTH = KUUKAUSI.LOPPU ## Palauttaa järjestyslukuna sen kuukauden viimeisen päivämäärän, joka poikkeaa annetun kuukausimäärän verran eteen- tai taaksepäin. +HOUR = TUNNIT ## Muuntaa järjestysluvun tunneiksi. +MINUTE = MINUUTIT ## Muuntaa järjestysluvun minuuteiksi. +MONTH = KUUKAUSI ## Muuntaa järjestysluvun kuukausiksi. +NETWORKDAYS = TYÖPÄIVÄT ## Palauttaa kahden päivämäärän välissä olevien täysien työpäivien määrän. +NOW = NYT ## Palauttaa kuluvan päivämäärän ja ajan järjestysnumeron. +SECOND = SEKUNNIT ## Muuntaa järjestysluvun sekunneiksi. +TIME = AIKA ## Palauttaa annetun kellonajan järjestysluvun. +TIMEVALUE = AIKA_ARVO ## Muuntaa tekstimuodossa olevan kellonajan järjestysluvuksi. +TODAY = TÄMÄ.PÄIVÄ ## Palauttaa kuluvan päivän päivämäärän järjestysluvun. +WEEKDAY = VIIKONPÄIVÄ ## Muuntaa järjestysluvun viikonpäiväksi. +WEEKNUM = VIIKKO.NRO ## Muuntaa järjestysluvun luvuksi, joka ilmaisee viikon järjestysluvun vuoden alusta laskettuna. +WORKDAY = TYÖPÄIVÄ ## Palauttaa järjestysluvun päivämäärälle, joka sijaitsee annettujen työpäivien verran eteen tai taaksepäin. +YEAR = VUOSI ## Muuntaa järjestysluvun vuosiksi. +YEARFRAC = VUOSI.OSA ## Palauttaa määritettyjen päivämäärien (aloituspäivä ja lopetuspäivä) välisen osan vuodesta. + + +## +## Engineering functions Tekniset funktiot +## +BESSELI = BESSELI ## Palauttaa muunnetun Bessel-funktion In(x). +BESSELJ = BESSELJ ## Palauttaa Bessel-funktion Jn(x). +BESSELK = BESSELK ## Palauttaa muunnetun Bessel-funktion Kn(x). +BESSELY = BESSELY ## Palauttaa Bessel-funktion Yn(x). +BIN2DEC = BINDES ## Muuntaa binaariluvun desimaaliluvuksi. +BIN2HEX = BINHEKSA ## Muuntaa binaariluvun heksadesimaaliluvuksi. +BIN2OCT = BINOKT ## Muuntaa binaariluvun oktaaliluvuksi. +COMPLEX = KOMPLEKSI ## Muuntaa reaali- ja imaginaariosien kertoimet kompleksiluvuksi. +CONVERT = MUUNNA ## Muuntaa luvun toisen mittajärjestelmän mukaiseksi. +DEC2BIN = DESBIN ## Muuntaa desimaaliluvun binaariluvuksi. +DEC2HEX = DESHEKSA ## Muuntaa kymmenjärjestelmän luvun heksadesimaaliluvuksi. +DEC2OCT = DESOKT ## Muuntaa kymmenjärjestelmän luvun oktaaliluvuksi. +DELTA = SAMA.ARVO ## Tarkistaa, ovatko kaksi arvoa yhtä suuria. +ERF = VIRHEFUNKTIO ## Palauttaa virhefunktion. +ERFC = VIRHEFUNKTIO.KOMPLEMENTTI ## Palauttaa komplementtivirhefunktion. +GESTEP = RAJA ## Testaa, onko luku suurempi kuin kynnysarvo. +HEX2BIN = HEKSABIN ## Muuntaa heksadesimaaliluvun binaariluvuksi. +HEX2DEC = HEKSADES ## Muuntaa heksadesimaaliluvun desimaaliluvuksi. +HEX2OCT = HEKSAOKT ## Muuntaa heksadesimaaliluvun oktaaliluvuksi. +IMABS = KOMPLEKSI.ITSEISARVO ## Palauttaa kompleksiluvun itseisarvon (moduluksen). +IMAGINARY = KOMPLEKSI.IMAG ## Palauttaa kompleksiluvun imaginaariosan kertoimen. +IMARGUMENT = KOMPLEKSI.ARG ## Palauttaa theeta-argumentin, joka on radiaaneina annettu kulma. +IMCONJUGATE = KOMPLEKSI.KONJ ## Palauttaa kompleksiluvun konjugaattiluvun. +IMCOS = KOMPLEKSI.COS ## Palauttaa kompleksiluvun kosinin. +IMDIV = KOMPLEKSI.OSAM ## Palauttaa kahden kompleksiluvun osamäärän. +IMEXP = KOMPLEKSI.EKSP ## Palauttaa kompleksiluvun eksponentin. +IMLN = KOMPLEKSI.LN ## Palauttaa kompleksiluvun luonnollisen logaritmin. +IMLOG10 = KOMPLEKSI.LOG10 ## Palauttaa kompleksiluvun kymmenkantaisen logaritmin. +IMLOG2 = KOMPLEKSI.LOG2 ## Palauttaa kompleksiluvun kaksikantaisen logaritmin. +IMPOWER = KOMPLEKSI.POT ## Palauttaa kokonaislukupotenssiin korotetun kompleksiluvun. +IMPRODUCT = KOMPLEKSI.TULO ## Palauttaa kompleksilukujen tulon. +IMREAL = KOMPLEKSI.REAALI ## Palauttaa kompleksiluvun reaaliosan kertoimen. +IMSIN = KOMPLEKSI.SIN ## Palauttaa kompleksiluvun sinin. +IMSQRT = KOMPLEKSI.NELIÖJ ## Palauttaa kompleksiluvun neliöjuuren. +IMSUB = KOMPLEKSI.EROTUS ## Palauttaa kahden kompleksiluvun erotuksen. +IMSUM = KOMPLEKSI.SUM ## Palauttaa kompleksilukujen summan. +OCT2BIN = OKTBIN ## Muuntaa oktaaliluvun binaariluvuksi. +OCT2DEC = OKTDES ## Muuntaa oktaaliluvun desimaaliluvuksi. +OCT2HEX = OKTHEKSA ## Muuntaa oktaaliluvun heksadesimaaliluvuksi. + + +## +## Financial functions Rahoitusfunktiot +## +ACCRINT = KERTYNYT.KORKO ## Laskee arvopaperille kertyneen koron, kun korko kertyy säännöllisin väliajoin. +ACCRINTM = KERTYNYT.KORKO.LOPUSSA ## Laskee arvopaperille kertyneen koron, kun korko maksetaan eräpäivänä. +AMORDEGRC = AMORDEGRC ## Laskee kunkin laskentakauden poiston poistokerrointa käyttämällä. +AMORLINC = AMORLINC ## Palauttaa kunkin laskentakauden poiston. +COUPDAYBS = KORKOPÄIVÄT.ALUSTA ## Palauttaa koronmaksukauden aloituspäivän ja tilityspäivän välisen ajanjakson päivien määrän. +COUPDAYS = KORKOPÄIVÄT ## Palauttaa päivien määrän koronmaksukaudelta, johon tilityspäivä kuuluu. +COUPDAYSNC = KORKOPÄIVÄT.SEURAAVA ## Palauttaa tilityspäivän ja seuraavan koronmaksupäivän välisen ajanjakson päivien määrän. +COUPNCD = KORKOMAKSU.SEURAAVA ## Palauttaa tilityspäivän jälkeisen seuraavan koronmaksupäivän. +COUPNUM = KORKOPÄIVÄJAKSOT ## Palauttaa arvopaperin ostopäivän ja erääntymispäivän välisten koronmaksupäivien määrän. +COUPPCD = KORKOPÄIVÄ.EDELLINEN ## Palauttaa tilityspäivää edeltävän koronmaksupäivän. +CUMIPMT = MAKSETTU.KORKO ## Palauttaa kahden jakson välisenä aikana kertyneen koron. +CUMPRINC = MAKSETTU.LYHENNYS ## Palauttaa lainalle kahden jakson välisenä aikana kertyneen lyhennyksen. +DB = DB ## Palauttaa kauden kirjanpidollisen poiston amerikkalaisen DB-menetelmän (Fixed-declining balance) mukaan. +DDB = DDB ## Palauttaa kauden kirjanpidollisen poiston amerikkalaisen DDB-menetelmän (Double-Declining Balance) tai jonkin muun määrittämäsi menetelmän mukaan. +DISC = DISKONTTOKORKO ## Palauttaa arvopaperin diskonttokoron. +DOLLARDE = VALUUTTA.DES ## Muuntaa murtolukuna ilmoitetun valuuttamäärän desimaaliluvuksi. +DOLLARFR = VALUUTTA.MURTO ## Muuntaa desimaalilukuna ilmaistun valuuttamäärän murtoluvuksi. +DURATION = KESTO ## Palauttaa keston arvopaperille, jonka koronmaksu tapahtuu säännöllisesti. +EFFECT = KORKO.EFEKT ## Palauttaa todellisen vuosikoron. +FV = TULEVA.ARVO ## Palauttaa sijoituksen tulevan arvon. +FVSCHEDULE = TULEVA.ARVO.ERIKORKO ## Palauttaa pääoman tulevan arvon, kun pääomalle on kertynyt korkoa vaihtelevasti. +INTRATE = KORKO.ARVOPAPERI ## Palauttaa arvopaperin korkokannan täysin sijoitetulle arvopaperille. +IPMT = IPMT ## Laskee sijoitukselle tai lainalle tiettynä ajanjaksona kertyvän koron. +IRR = SISÄINEN.KORKO ## Laskee sisäisen korkokannan kassavirrasta muodostuvalle sarjalle. +ISPMT = ONMAKSU ## Laskee sijoituksen maksetun koron tietyllä jaksolla. +MDURATION = KESTO.MUUNN ## Palauttaa muunnetun Macauley-keston arvopaperille, jonka oletettu nimellisarvo on 100 euroa. +MIRR = MSISÄINEN ## Palauttaa sisäisen korkokannan, kun positiivisten ja negatiivisten kassavirtojen rahoituskorko on erilainen. +NOMINAL = KORKO.VUOSI ## Palauttaa vuosittaisen nimelliskoron. +NPER = NJAKSO ## Palauttaa sijoituksen jaksojen määrän. +NPV = NNA ## Palauttaa sijoituksen nykyarvon toistuvista kassavirroista muodostuvan sarjan ja diskonttokoron perusteella. +ODDFPRICE = PARITON.ENS.NIMELLISARVO ## Palauttaa arvopaperin hinnan tilanteessa, jossa ensimmäinen jakso on pariton. +ODDFYIELD = PARITON.ENS.TUOTTO ## Palauttaa arvopaperin tuoton tilanteessa, jossa ensimmäinen jakso on pariton. +ODDLPRICE = PARITON.VIIM.NIMELLISARVO ## Palauttaa arvopaperin hinnan tilanteessa, jossa viimeinen jakso on pariton. +ODDLYIELD = PARITON.VIIM.TUOTTO ## Palauttaa arvopaperin tuoton tilanteessa, jossa viimeinen jakso on pariton. +PMT = MAKSU ## Palauttaa annuiteetin kausittaisen maksuerän. +PPMT = PPMT ## Laskee sijoitukselle tai lainalle tiettynä ajanjaksona maksettavan lyhennyksen. +PRICE = HINTA ## Palauttaa hinnan 100 euron nimellisarvoa kohden arvopaperille, jonka korko maksetaan säännöllisin väliajoin. +PRICEDISC = HINTA.DISK ## Palauttaa diskontatun arvopaperin hinnan 100 euron nimellisarvoa kohden. +PRICEMAT = HINTA.LUNASTUS ## Palauttaa hinnan 100 euron nimellisarvoa kohden arvopaperille, jonka korko maksetaan erääntymispäivänä. +PV = NA ## Palauttaa sijoituksen nykyarvon. +RATE = KORKO ## Palauttaa annuiteetin kausittaisen korkokannan. +RECEIVED = SAATU.HINTA ## Palauttaa arvopaperin tuoton erääntymispäivänä kokonaan maksetulle sijoitukselle. +SLN = STP ## Palauttaa sijoituksen tasapoiston yhdeltä jaksolta. +SYD = VUOSIPOISTO ## Palauttaa sijoituksen vuosipoiston annettuna kautena amerikkalaisen SYD-menetelmän (Sum-of-Year's Digits) avulla. +TBILLEQ = OBLIG.TUOTTOPROS ## Palauttaa valtion obligaation tuoton vastaavana joukkovelkakirjan tuottona. +TBILLPRICE = OBLIG.HINTA ## Palauttaa obligaation hinnan 100 euron nimellisarvoa kohden. +TBILLYIELD = OBLIG.TUOTTO ## Palauttaa obligaation tuoton. +VDB = VDB ## Palauttaa annetun kauden tai kauden osan kirjanpidollisen poiston amerikkalaisen DB-menetelmän (Fixed-declining balance) mukaan. +XIRR = SISÄINEN.KORKO.JAKSOTON ## Palauttaa sisäisen korkokannan kassavirtojen sarjoille, jotka eivät välttämättä ole säännöllisiä. +XNPV = NNA.JAKSOTON ## Palauttaa nettonykyarvon kassavirtasarjalle, joka ei välttämättä ole kausittainen. +YIELD = TUOTTO ## Palauttaa tuoton arvopaperille, jonka korko maksetaan säännöllisin väliajoin. +YIELDDISC = TUOTTO.DISK ## Palauttaa diskontatun arvopaperin, kuten obligaation, vuosittaisen tuoton. +YIELDMAT = TUOTTO.ERÄP ## Palauttaa erääntymispäivänään korkoa tuottavan arvopaperin vuosittaisen tuoton. + + +## +## Information functions Erikoisfunktiot +## +CELL = SOLU ## Palauttaa tietoja solun muotoilusta, sijainnista ja sisällöstä. +ERROR.TYPE = VIRHEEN.LAJI ## Palauttaa virhetyyppiä vastaavan luvun. +INFO = KUVAUS ## Palauttaa tietoja nykyisestä käyttöympäristöstä. +ISBLANK = ONTYHJÄ ## Palauttaa arvon TOSI, jos arvo on tyhjä. +ISERR = ONVIRH ## Palauttaa arvon TOSI, jos arvo on mikä tahansa virhearvo paitsi arvo #PUUTTUU!. +ISERROR = ONVIRHE ## Palauttaa arvon TOSI, jos arvo on mikä tahansa virhearvo. +ISEVEN = ONPARILLINEN ## Palauttaa arvon TOSI, jos arvo on parillinen. +ISLOGICAL = ONTOTUUS ## Palauttaa arvon TOSI, jos arvo on mikä tahansa looginen arvo. +ISNA = ONPUUTTUU ## Palauttaa arvon TOSI, jos virhearvo on #PUUTTUU!. +ISNONTEXT = ONEI_TEKSTI ## Palauttaa arvon TOSI, jos arvo ei ole teksti. +ISNUMBER = ONLUKU ## Palauttaa arvon TOSI, jos arvo on luku. +ISODD = ONPARITON ## Palauttaa arvon TOSI, jos arvo on pariton. +ISREF = ONVIITT ## Palauttaa arvon TOSI, jos arvo on viittaus. +ISTEXT = ONTEKSTI ## Palauttaa arvon TOSI, jos arvo on teksti. +N = N ## Palauttaa arvon luvuksi muunnettuna. +NA = PUUTTUU ## Palauttaa virhearvon #PUUTTUU!. +TYPE = TYYPPI ## Palauttaa luvun, joka ilmaisee arvon tietotyypin. + + +## +## Logical functions Loogiset funktiot +## +AND = JA ## Palauttaa arvon TOSI, jos kaikkien argumenttien arvo on TOSI. +FALSE = EPÄTOSI ## Palauttaa totuusarvon EPÄTOSI. +IF = JOS ## Määrittää suoritettavan loogisen testin. +IFERROR = JOSVIRHE ## Palauttaa määrittämäsi arvon, jos kaavan tulos on virhe; muussa tapauksessa palauttaa kaavan tuloksen. +NOT = EI ## Kääntää argumentin loogisen arvon. +OR = TAI ## Palauttaa arvon TOSI, jos minkä tahansa argumentin arvo on TOSI. +TRUE = TOSI ## Palauttaa totuusarvon TOSI. + + +## +## Lookup and reference functions Haku- ja viitefunktiot +## +ADDRESS = OSOITE ## Palauttaa laskentataulukon soluun osoittavan viittauksen tekstinä. +AREAS = ALUEET ## Palauttaa viittauksessa olevien alueiden määrän. +CHOOSE = VALITSE.INDEKSI ## Valitsee arvon arvoluettelosta. +COLUMN = SARAKE ## Palauttaa viittauksen sarakenumeron. +COLUMNS = SARAKKEET ## Palauttaa viittauksessa olevien sarakkeiden määrän. +HLOOKUP = VHAKU ## Suorittaa haun matriisin ylimmältä riviltä ja palauttaa määritetyn solun arvon. +HYPERLINK = HYPERLINKKI ## Luo pikakuvakkeen tai tekstin, joka avaa verkkopalvelimeen, intranetiin tai Internetiin tallennetun tiedoston. +INDEX = INDEKSI ## Valitsee arvon viittauksesta tai matriisista indeksin mukaan. +INDIRECT = EPÄSUORA ## Palauttaa tekstiarvona ilmaistun viittauksen. +LOOKUP = HAKU ## Etsii arvoja vektorista tai matriisista. +MATCH = VASTINE ## Etsii arvoja viittauksesta tai matriisista. +OFFSET = SIIRTYMÄ ## Palauttaa annetun viittauksen siirtymän. +ROW = RIVI ## Palauttaa viittauksen rivinumeron. +ROWS = RIVIT ## Palauttaa viittauksessa olevien rivien määrän. +RTD = RTD ## Noutaa COM-automaatiota (automaatio: Tapa käsitellä sovelluksen objekteja toisesta sovelluksesta tai kehitystyökalusta. Automaatio, jota aiemmin kutsuttiin OLE-automaatioksi, on teollisuusstandardi ja COM-mallin (Component Object Model) ominaisuus.) tukevasta ohjelmasta reaaliaikaisia tietoja. +TRANSPOSE = TRANSPONOI ## Palauttaa matriisin käänteismatriisin. +VLOOKUP = PHAKU ## Suorittaa haun matriisin ensimmäisestä sarakkeesta ja palauttaa rivillä olevan solun arvon. + + +## +## Math and trigonometry functions Matemaattiset ja trigonometriset funktiot +## +ABS = ITSEISARVO ## Palauttaa luvun itseisarvon. +ACOS = ACOS ## Palauttaa luvun arkuskosinin. +ACOSH = ACOSH ## Palauttaa luvun käänteisen hyperbolisen kosinin. +ASIN = ASIN ## Palauttaa luvun arkussinin. +ASINH = ASINH ## Palauttaa luvun käänteisen hyperbolisen sinin. +ATAN = ATAN ## Palauttaa luvun arkustangentin. +ATAN2 = ATAN2 ## Palauttaa arkustangentin x- ja y-koordinaatin perusteella. +ATANH = ATANH ## Palauttaa luvun käänteisen hyperbolisen tangentin. +CEILING = PYÖRISTÄ.KERR.YLÖS ## Pyöristää luvun lähimpään kokonaislukuun tai tarkkuusargumentin lähimpään kerrannaiseen. +COMBIN = KOMBINAATIO ## Palauttaa mahdollisten kombinaatioiden määrän annetulle objektien määrälle. +COS = COS ## Palauttaa luvun kosinin. +COSH = COSH ## Palauttaa luvun hyperbolisen kosinin. +DEGREES = ASTEET ## Muuntaa radiaanit asteiksi. +EVEN = PARILLINEN ## Pyöristää luvun ylöspäin lähimpään parilliseen kokonaislukuun. +EXP = EKSPONENTTI ## Palauttaa e:n korotettuna annetun luvun osoittamaan potenssiin. +FACT = KERTOMA ## Palauttaa luvun kertoman. +FACTDOUBLE = KERTOMA.OSA ## Palauttaa luvun osakertoman. +FLOOR = PYÖRISTÄ.KERR.ALAS ## Pyöristää luvun alaspäin (nollaa kohti). +GCD = SUURIN.YHT.TEKIJÄ ## Palauttaa suurimman yhteisen tekijän. +INT = KOKONAISLUKU ## Pyöristää luvun alaspäin lähimpään kokonaislukuun. +LCM = PIENIN.YHT.JAETTAVA ## Palauttaa pienimmän yhteisen tekijän. +LN = LUONNLOG ## Palauttaa luvun luonnollisen logaritmin. +LOG = LOG ## Laskee luvun logaritmin käyttämällä annettua kantalukua. +LOG10 = LOG10 ## Palauttaa luvun kymmenkantaisen logaritmin. +MDETERM = MDETERM ## Palauttaa matriisin matriisideterminantin. +MINVERSE = MKÄÄNTEINEN ## Palauttaa matriisin käänteismatriisin. +MMULT = MKERRO ## Palauttaa kahden matriisin tulon. +MOD = JAKOJ ## Palauttaa jakolaskun jäännöksen. +MROUND = PYÖRISTÄ.KERR ## Palauttaa luvun pyöristettynä annetun luvun kerrannaiseen. +MULTINOMIAL = MULTINOMI ## Palauttaa lukujoukon multinomin. +ODD = PARITON ## Pyöristää luvun ylöspäin lähimpään parittomaan kokonaislukuun. +PI = PII ## Palauttaa piin arvon. +POWER = POTENSSI ## Palauttaa luvun korotettuna haluttuun potenssiin. +PRODUCT = TULO ## Kertoo annetut argumentit. +QUOTIENT = OSAMÄÄRÄ ## Palauttaa osamäärän kokonaislukuosan. +RADIANS = RADIAANIT ## Muuntaa asteet radiaaneiksi. +RAND = SATUNNAISLUKU ## Palauttaa satunnaisluvun väliltä 0–1. +RANDBETWEEN = SATUNNAISLUKU.VÄLILTÄ ## Palauttaa satunnaisluvun määritettyjen lukujen väliltä. +ROMAN = ROMAN ## Muuntaa arabialaisen numeron tekstimuotoiseksi roomalaiseksi numeroksi. +ROUND = PYÖRISTÄ ## Pyöristää luvun annettuun määrään desimaaleja. +ROUNDDOWN = PYÖRISTÄ.DES.ALAS ## Pyöristää luvun alaspäin (nollaa kohti). +ROUNDUP = PYÖRISTÄ.DES.YLÖS ## Pyöristää luvun ylöspäin (poispäin nollasta). +SERIESSUM = SARJA.SUMMA ## Palauttaa kaavaan perustuvan potenssisarjan arvon. +SIGN = ETUMERKKI ## Palauttaa luvun etumerkin. +SIN = SIN ## Palauttaa annetun kulman sinin. +SINH = SINH ## Palauttaa luvun hyperbolisen sinin. +SQRT = NELIÖJUURI ## Palauttaa positiivisen neliöjuuren. +SQRTPI = NELIÖJUURI.PII ## Palauttaa tulon (luku * pii) neliöjuuren. +SUBTOTAL = VÄLISUMMA ## Palauttaa luettelon tai tietokannan välisumman. +SUM = SUMMA ## Laskee yhteen annetut argumentit. +SUMIF = SUMMA.JOS ## Laskee ehdot täyttävien solujen summan. +SUMIFS = SUMMA.JOS.JOUKKO ## Laskee yhteen solualueen useita ehtoja vastaavat solut. +SUMPRODUCT = TULOJEN.SUMMA ## Palauttaa matriisin toisiaan vastaavien osien tulojen summan. +SUMSQ = NELIÖSUMMA ## Palauttaa argumenttien neliöiden summan. +SUMX2MY2 = NELIÖSUMMIEN.EROTUS ## Palauttaa kahden matriisin toisiaan vastaavien arvojen laskettujen neliösummien erotuksen. +SUMX2PY2 = NELIÖSUMMIEN.SUMMA ## Palauttaa kahden matriisin toisiaan vastaavien arvojen neliösummien summan. +SUMXMY2 = EROTUSTEN.NELIÖSUMMA ## Palauttaa kahden matriisin toisiaan vastaavien arvojen erotusten neliösumman. +TAN = TAN ## Palauttaa luvun tangentin. +TANH = TANH ## Palauttaa luvun hyperbolisen tangentin. +TRUNC = KATKAISE ## Katkaisee luvun kokonaisluvuksi. + + +## +## Statistical functions Tilastolliset funktiot +## +AVEDEV = KESKIPOIKKEAMA ## Palauttaa hajontojen itseisarvojen keskiarvon. +AVERAGE = KESKIARVO ## Palauttaa argumenttien keskiarvon. +AVERAGEA = KESKIARVOA ## Palauttaa argumenttien, mukaan lukien lukujen, tekstin ja loogisten arvojen, keskiarvon. +AVERAGEIF = KESKIARVO.JOS ## Palauttaa alueen niiden solujen keskiarvon (aritmeettisen keskiarvon), jotka täyttävät annetut ehdot. +AVERAGEIFS = KESKIARVO.JOS.JOUKKO ## Palauttaa niiden solujen keskiarvon (aritmeettisen keskiarvon), jotka vastaavat useita ehtoja. +BETADIST = BEETAJAKAUMA ## Palauttaa kumulatiivisen beetajakaumafunktion arvon. +BETAINV = BEETAJAKAUMA.KÄÄNT ## Palauttaa määritetyn beetajakauman käänteisen kumulatiivisen jakaumafunktion arvon. +BINOMDIST = BINOMIJAKAUMA ## Palauttaa yksittäisen termin binomijakaumatodennäköisyyden. +CHIDIST = CHIJAKAUMA ## Palauttaa yksisuuntaisen chi-neliön jakauman todennäköisyyden. +CHIINV = CHIJAKAUMA.KÄÄNT ## Palauttaa yksisuuntaisen chi-neliön jakauman todennäköisyyden käänteisarvon. +CHITEST = CHITESTI ## Palauttaa riippumattomuustestin tuloksen. +CONFIDENCE = LUOTTAMUSVÄLI ## Palauttaa luottamusvälin populaation keskiarvolle. +CORREL = KORRELAATIO ## Palauttaa kahden arvojoukon korrelaatiokertoimen. +COUNT = LASKE ## Laskee argumenttiluettelossa olevien lukujen määrän. +COUNTA = LASKE.A ## Laskee argumenttiluettelossa olevien arvojen määrän. +COUNTBLANK = LASKE.TYHJÄT ## Laskee alueella olevien tyhjien solujen määrän. +COUNTIF = LASKE.JOS ## Laskee alueella olevien sellaisten solujen määrän, joiden sisältö vastaa annettuja ehtoja. +COUNTIFS = LASKE.JOS.JOUKKO ## Laskee alueella olevien sellaisten solujen määrän, joiden sisältö vastaa useita ehtoja. +COVAR = KOVARIANSSI ## Palauttaa kovarianssin, joka on keskiarvo havaintoaineiston kunkin pisteparin poikkeamien tuloista. +CRITBINOM = BINOMIJAKAUMA.KRIT ## Palauttaa pienimmän arvon, jossa binomijakauman kertymäfunktion arvo on pienempi tai yhtä suuri kuin vertailuarvo. +DEVSQ = OIKAISTU.NELIÖSUMMA ## Palauttaa keskipoikkeamien neliösumman. +EXPONDIST = EKSPONENTIAALIJAKAUMA ## Palauttaa eksponentiaalijakauman. +FDIST = FJAKAUMA ## Palauttaa F-todennäköisyysjakauman. +FINV = FJAKAUMA.KÄÄNT ## Palauttaa F-todennäköisyysjakauman käänteisfunktion. +FISHER = FISHER ## Palauttaa Fisher-muunnoksen. +FISHERINV = FISHER.KÄÄNT ## Palauttaa käänteisen Fisher-muunnoksen. +FORECAST = ENNUSTE ## Palauttaa lineaarisen trendin arvon. +FREQUENCY = TAAJUUS ## Palauttaa frekvenssijakautuman pystysuuntaisena matriisina. +FTEST = FTESTI ## Palauttaa F-testin tuloksen. +GAMMADIST = GAMMAJAKAUMA ## Palauttaa gammajakauman. +GAMMAINV = GAMMAJAKAUMA.KÄÄNT ## Palauttaa käänteisen gammajakauman kertymäfunktion. +GAMMALN = GAMMALN ## Palauttaa gammafunktion luonnollisen logaritmin G(x). +GEOMEAN = KESKIARVO.GEOM ## Palauttaa geometrisen keskiarvon. +GROWTH = KASVU ## Palauttaa eksponentiaalisen trendin arvon. +HARMEAN = KESKIARVO.HARM ## Palauttaa harmonisen keskiarvon. +HYPGEOMDIST = HYPERGEOM.JAKAUMA ## Palauttaa hypergeometrisen jakauman. +INTERCEPT = LEIKKAUSPISTE ## Palauttaa lineaarisen regressiosuoran leikkauspisteen. +KURT = KURT ## Palauttaa tietoalueen vinous-arvon eli huipukkuuden. +LARGE = SUURI ## Palauttaa tietojoukon k:nneksi suurimman arvon. +LINEST = LINREGR ## Palauttaa lineaarisen trendin parametrit. +LOGEST = LOGREGR ## Palauttaa eksponentiaalisen trendin parametrit. +LOGINV = LOGNORM.JAKAUMA.KÄÄNT ## Palauttaa lognormeeratun jakauman käänteisfunktion. +LOGNORMDIST = LOGNORM.JAKAUMA ## Palauttaa lognormaalisen jakauman kertymäfunktion. +MAX = MAKS ## Palauttaa suurimman arvon argumenttiluettelosta. +MAXA = MAKSA ## Palauttaa argumenttien, mukaan lukien lukujen, tekstin ja loogisten arvojen, suurimman arvon. +MEDIAN = MEDIAANI ## Palauttaa annettujen lukujen mediaanin. +MIN = MIN ## Palauttaa pienimmän arvon argumenttiluettelosta. +MINA = MINA ## Palauttaa argumenttien, mukaan lukien lukujen, tekstin ja loogisten arvojen, pienimmän arvon. +MODE = MOODI ## Palauttaa tietojoukossa useimmin esiintyvän arvon. +NEGBINOMDIST = BINOMIJAKAUMA.NEG ## Palauttaa negatiivisen binomijakauman. +NORMDIST = NORM.JAKAUMA ## Palauttaa normaalijakauman kertymäfunktion. +NORMINV = NORM.JAKAUMA.KÄÄNT ## Palauttaa käänteisen normaalijakauman kertymäfunktion. +NORMSDIST = NORM.JAKAUMA.NORMIT ## Palauttaa normitetun normaalijakauman kertymäfunktion. +NORMSINV = NORM.JAKAUMA.NORMIT.KÄÄNT ## Palauttaa normitetun normaalijakauman kertymäfunktion käänteisarvon. +PEARSON = PEARSON ## Palauttaa Pearsonin tulomomenttikorrelaatiokertoimen. +PERCENTILE = PROSENTTIPISTE ## Palauttaa alueen arvojen k:nnen prosenttipisteen. +PERCENTRANK = PROSENTTIJÄRJESTYS ## Palauttaa tietojoukon arvon prosentuaalisen järjestysluvun. +PERMUT = PERMUTAATIO ## Palauttaa mahdollisten permutaatioiden määrän annetulle objektien määrälle. +POISSON = POISSON ## Palauttaa Poissonin todennäköisyysjakauman. +PROB = TODENNÄKÖISYYS ## Palauttaa todennäköisyyden sille, että arvot ovat tietyltä väliltä. +QUARTILE = NELJÄNNES ## Palauttaa tietoalueen neljänneksen. +RANK = ARVON.MUKAAN ## Palauttaa luvun paikan lukuarvoluettelossa. +RSQ = PEARSON.NELIÖ ## Palauttaa Pearsonin tulomomenttikorrelaatiokertoimen neliön. +SKEW = JAKAUMAN.VINOUS ## Palauttaa jakauman vinouden. +SLOPE = KULMAKERROIN ## Palauttaa lineaarisen regressiosuoran kulmakertoimen. +SMALL = PIENI ## Palauttaa tietojoukon k:nneksi pienimmän arvon. +STANDARDIZE = NORMITA ## Palauttaa normitetun arvon. +STDEV = KESKIHAJONTA ## Laskee populaation keskihajonnan otoksen perusteella. +STDEVA = KESKIHAJONTAA ## Laskee populaation keskihajonnan otoksen perusteella, mukaan lukien luvut, tekstin ja loogiset arvot. +STDEVP = KESKIHAJONTAP ## Laskee normaalijakautuman koko populaation perusteella. +STDEVPA = KESKIHAJONTAPA ## Laskee populaation keskihajonnan koko populaation perusteella, mukaan lukien luvut, tekstin ja totuusarvot. +STEYX = KESKIVIRHE ## Palauttaa regression kutakin x-arvoa vastaavan ennustetun y-arvon keskivirheen. +TDIST = TJAKAUMA ## Palauttaa t-jakautuman. +TINV = TJAKAUMA.KÄÄNT ## Palauttaa käänteisen t-jakauman. +TREND = SUUNTAUS ## Palauttaa lineaarisen trendin arvoja. +TRIMMEAN = KESKIARVO.TASATTU ## Palauttaa tietojoukon tasatun keskiarvon. +TTEST = TTESTI ## Palauttaa t-testiin liittyvän todennäköisyyden. +VAR = VAR ## Arvioi populaation varianssia otoksen perusteella. +VARA = VARA ## Laskee populaation varianssin otoksen perusteella, mukaan lukien luvut, tekstin ja loogiset arvot. +VARP = VARP ## Laskee varianssin koko populaation perusteella. +VARPA = VARPA ## Laskee populaation varianssin koko populaation perusteella, mukaan lukien luvut, tekstin ja totuusarvot. +WEIBULL = WEIBULL ## Palauttaa Weibullin jakauman. +ZTEST = ZTESTI ## Palauttaa z-testin yksisuuntaisen todennäköisyysarvon. + + +## +## Text functions Tekstifunktiot +## +ASC = ASC ## Muuntaa merkkijonossa olevat englanninkieliset DBCS- tai katakana-merkit SBCS-merkeiksi. +BAHTTEXT = BAHTTEKSTI ## Muuntaa luvun tekstiksi ß (baht) -valuuttamuotoa käyttämällä. +CHAR = MERKKI ## Palauttaa koodin lukua vastaavan merkin. +CLEAN = SIIVOA ## Poistaa tekstistä kaikki tulostumattomat merkit. +CODE = KOODI ## Palauttaa tekstimerkkijonon ensimmäisen merkin numerokoodin. +CONCATENATE = KETJUTA ## Yhdistää useat merkkijonot yhdeksi merkkijonoksi. +DOLLAR = VALUUTTA ## Muuntaa luvun tekstiksi $ (dollari) -valuuttamuotoa käyttämällä. +EXACT = VERTAA ## Tarkistaa, ovatko kaksi tekstiarvoa samanlaiset. +FIND = ETSI ## Etsii tekstiarvon toisen tekstin sisältä (tunnistaa isot ja pienet kirjaimet). +FINDB = ETSIB ## Etsii tekstiarvon toisen tekstin sisältä (tunnistaa isot ja pienet kirjaimet). +FIXED = KIINTEÄ ## Muotoilee luvun tekstiksi, jossa on kiinteä määrä desimaaleja. +JIS = JIS ## Muuntaa merkkijonossa olevat englanninkieliset SBCS- tai katakana-merkit DBCS-merkeiksi. +LEFT = VASEN ## Palauttaa tekstiarvon vasemmanpuoliset merkit. +LEFTB = VASENB ## Palauttaa tekstiarvon vasemmanpuoliset merkit. +LEN = PITUUS ## Palauttaa tekstimerkkijonon merkkien määrän. +LENB = PITUUSB ## Palauttaa tekstimerkkijonon merkkien määrän. +LOWER = PIENET ## Muuntaa tekstin pieniksi kirjaimiksi. +MID = POIMI.TEKSTI ## Palauttaa määritetyn määrän merkkejä merkkijonosta alkaen annetusta kohdasta. +MIDB = POIMI.TEKSTIB ## Palauttaa määritetyn määrän merkkejä merkkijonosta alkaen annetusta kohdasta. +PHONETIC = FONEETTINEN ## Hakee foneettiset (furigana) merkit merkkijonosta. +PROPER = ERISNIMI ## Muuttaa merkkijonon kunkin sanan ensimmäisen kirjaimen isoksi. +REPLACE = KORVAA ## Korvaa tekstissä olevat merkit. +REPLACEB = KORVAAB ## Korvaa tekstissä olevat merkit. +REPT = TOISTA ## Toistaa tekstin annetun määrän kertoja. +RIGHT = OIKEA ## Palauttaa tekstiarvon oikeanpuoliset merkit. +RIGHTB = OIKEAB ## Palauttaa tekstiarvon oikeanpuoliset merkit. +SEARCH = KÄY.LÄPI ## Etsii tekstiarvon toisen tekstin sisältä (isot ja pienet kirjaimet tulkitaan samoiksi merkeiksi). +SEARCHB = KÄY.LÄPIB ## Etsii tekstiarvon toisen tekstin sisältä (isot ja pienet kirjaimet tulkitaan samoiksi merkeiksi). +SUBSTITUTE = VAIHDA ## Korvaa merkkijonossa olevan tekstin toisella. +T = T ## Muuntaa argumentit tekstiksi. +TEXT = TEKSTI ## Muotoilee luvun ja muuntaa sen tekstiksi. +TRIM = POISTA.VÄLIT ## Poistaa välilyönnit tekstistä. +UPPER = ISOT ## Muuntaa tekstin isoiksi kirjaimiksi. +VALUE = ARVO ## Muuntaa tekstiargumentin luvuksi. diff --git a/admin/helpers/PHPExcel/locale/fi/index.html b/admin/helpers/PHPExcel/locale/fi/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/fi/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/fr/config b/admin/helpers/PHPExcel/locale/fr/config new file mode 100644 index 00000000..1f5db88c --- /dev/null +++ b/admin/helpers/PHPExcel/locale/fr/config @@ -0,0 +1,47 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = € + + +## +## Excel Error Codes (For future use) +## +NULL = #NUL! +DIV0 = #DIV/0! +VALUE = #VALEUR! +REF = #REF! +NAME = #NOM? +NUM = #NOMBRE! +NA = #N/A diff --git a/admin/helpers/PHPExcel/locale/fr/functions b/admin/helpers/PHPExcel/locale/fr/functions new file mode 100644 index 00000000..03b80e5a --- /dev/null +++ b/admin/helpers/PHPExcel/locale/fr/functions @@ -0,0 +1,438 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Calculation +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ +## +## + + +## +## Add-in and Automation functions Fonctions de complément et d’automatisation +## +GETPIVOTDATA = LIREDONNEESTABCROISDYNAMIQUE ## Renvoie les données stockées dans un rapport de tableau croisé dynamique. + + +## +## Cube functions Fonctions Cube +## +CUBEKPIMEMBER = MEMBREKPICUBE ## Renvoie un nom, une propriété et une mesure d’indicateur de performance clé et affiche le nom et la propriété dans la cellule. Un indicateur de performance clé est une mesure quantifiable, telle que la marge bénéficiaire brute mensuelle ou la rotation trimestrielle du personnel, utilisée pour évaluer les performances d’une entreprise. +CUBEMEMBER = MEMBRECUBE ## Renvoie un membre ou un uplet dans une hiérarchie de cubes. Utilisez cette fonction pour valider l’existence du membre ou de l’uplet dans le cube. +CUBEMEMBERPROPERTY = PROPRIETEMEMBRECUBE ## Renvoie la valeur d’une propriété de membre du cube. Utilisez cette fonction pour valider l’existence d’un nom de membre dans le cube et pour renvoyer la propriété spécifiée pour ce membre. +CUBERANKEDMEMBER = RANGMEMBRECUBE ## Renvoie le nième membre ou le membre placé à un certain rang dans un ensemble. Utilisez cette fonction pour renvoyer un ou plusieurs éléments d’un ensemble, tels que les meilleurs vendeurs ou les 10 meilleurs étudiants. +CUBESET = JEUCUBE ## Définit un ensemble calculé de membres ou d’uplets en envoyant une expression définie au cube sur le serveur qui crée l’ensemble et le renvoie à Microsoft Office Excel. +CUBESETCOUNT = NBJEUCUBE ## Renvoie le nombre d’éléments dans un jeu. +CUBEVALUE = VALEURCUBE ## Renvoie une valeur d’agrégation issue d’un cube. + + +## +## Database functions Fonctions de base de données +## +DAVERAGE = BDMOYENNE ## Renvoie la moyenne des entrées de base de données sélectionnées. +DCOUNT = BCOMPTE ## Compte le nombre de cellules d’une base de données qui contiennent des nombres. +DCOUNTA = BDNBVAL ## Compte les cellules non vides d’une base de données. +DGET = BDLIRE ## Extrait d’une base de données un enregistrement unique répondant aux critères spécifiés. +DMAX = BDMAX ## Renvoie la valeur maximale des entrées de base de données sélectionnées. +DMIN = BDMIN ## Renvoie la valeur minimale des entrées de base de données sélectionnées. +DPRODUCT = BDPRODUIT ## Multiplie les valeurs d’un champ particulier des enregistrements d’une base de données, qui répondent aux critères spécifiés. +DSTDEV = BDECARTYPE ## Calcule l’écart type pour un échantillon d’entrées de base de données sélectionnées. +DSTDEVP = BDECARTYPEP ## Calcule l’écart type pour l’ensemble d’une population d’entrées de base de données sélectionnées. +DSUM = BDSOMME ## Ajoute les nombres dans la colonne de champ des enregistrements de la base de données, qui répondent aux critères. +DVAR = BDVAR ## Calcule la variance pour un échantillon d’entrées de base de données sélectionnées. +DVARP = BDVARP ## Calcule la variance pour l’ensemble d’une population d’entrées de base de données sélectionnées. + + +## +## Date and time functions Fonctions de date et d’heure +## +DATE = DATE ## Renvoie le numéro de série d’une date précise. +DATEVALUE = DATEVAL ## Convertit une date représentée sous forme de texte en numéro de série. +DAY = JOUR ## Convertit un numéro de série en jour du mois. +DAYS360 = JOURS360 ## Calcule le nombre de jours qui séparent deux dates sur la base d’une année de 360 jours. +EDATE = MOIS.DECALER ## Renvoie le numéro séquentiel de la date qui représente une date spécifiée (l’argument date_départ), corrigée en plus ou en moins du nombre de mois indiqué. +EOMONTH = FIN.MOIS ## Renvoie le numéro séquentiel de la date du dernier jour du mois précédant ou suivant la date_départ du nombre de mois indiqué. +HOUR = HEURE ## Convertit un numéro de série en heure. +MINUTE = MINUTE ## Convertit un numéro de série en minute. +MONTH = MOIS ## Convertit un numéro de série en mois. +NETWORKDAYS = NB.JOURS.OUVRES ## Renvoie le nombre de jours ouvrés entiers compris entre deux dates. +NOW = MAINTENANT ## Renvoie le numéro de série de la date et de l’heure du jour. +SECOND = SECONDE ## Convertit un numéro de série en seconde. +TIME = TEMPS ## Renvoie le numéro de série d’une heure précise. +TIMEVALUE = TEMPSVAL ## Convertit une date représentée sous forme de texte en numéro de série. +TODAY = AUJOURDHUI ## Renvoie le numéro de série de la date du jour. +WEEKDAY = JOURSEM ## Convertit un numéro de série en jour de la semaine. +WEEKNUM = NO.SEMAINE ## Convertit un numéro de série en un numéro représentant l’ordre de la semaine dans l’année. +WORKDAY = SERIE.JOUR.OUVRE ## Renvoie le numéro de série de la date avant ou après le nombre de jours ouvrés spécifiés. +YEAR = ANNEE ## Convertit un numéro de série en année. +YEARFRAC = FRACTION.ANNEE ## Renvoie la fraction de l’année représentant le nombre de jours entre la date de début et la date de fin. + + +## +## Engineering functions Fonctions d’ingénierie +## +BESSELI = BESSELI ## Renvoie la fonction Bessel modifiée In(x). +BESSELJ = BESSELJ ## Renvoie la fonction Bessel Jn(x). +BESSELK = BESSELK ## Renvoie la fonction Bessel modifiée Kn(x). +BESSELY = BESSELY ## Renvoie la fonction Bessel Yn(x). +BIN2DEC = BINDEC ## Convertit un nombre binaire en nombre décimal. +BIN2HEX = BINHEX ## Convertit un nombre binaire en nombre hexadécimal. +BIN2OCT = BINOCT ## Convertit un nombre binaire en nombre octal. +COMPLEX = COMPLEXE ## Convertit des coefficients réel et imaginaire en un nombre complexe. +CONVERT = CONVERT ## Convertit un nombre d’une unité de mesure à une autre. +DEC2BIN = DECBIN ## Convertit un nombre décimal en nombre binaire. +DEC2HEX = DECHEX ## Convertit un nombre décimal en nombre hexadécimal. +DEC2OCT = DECOCT ## Convertit un nombre décimal en nombre octal. +DELTA = DELTA ## Teste l’égalité de deux nombres. +ERF = ERF ## Renvoie la valeur de la fonction d’erreur. +ERFC = ERFC ## Renvoie la valeur de la fonction d’erreur complémentaire. +GESTEP = SUP.SEUIL ## Teste si un nombre est supérieur à une valeur de seuil. +HEX2BIN = HEXBIN ## Convertit un nombre hexadécimal en nombre binaire. +HEX2DEC = HEXDEC ## Convertit un nombre hexadécimal en nombre décimal. +HEX2OCT = HEXOCT ## Convertit un nombre hexadécimal en nombre octal. +IMABS = COMPLEXE.MODULE ## Renvoie la valeur absolue (module) d’un nombre complexe. +IMAGINARY = COMPLEXE.IMAGINAIRE ## Renvoie le coefficient imaginaire d’un nombre complexe. +IMARGUMENT = COMPLEXE.ARGUMENT ## Renvoie l’argument thêta, un angle exprimé en radians. +IMCONJUGATE = COMPLEXE.CONJUGUE ## Renvoie le nombre complexe conjugué d’un nombre complexe. +IMCOS = IMCOS ## Renvoie le cosinus d’un nombre complexe. +IMDIV = COMPLEXE.DIV ## Renvoie le quotient de deux nombres complexes. +IMEXP = COMPLEXE.EXP ## Renvoie la fonction exponentielle d’un nombre complexe. +IMLN = COMPLEXE.LN ## Renvoie le logarithme népérien d’un nombre complexe. +IMLOG10 = COMPLEXE.LOG10 ## Calcule le logarithme en base 10 d’un nombre complexe. +IMLOG2 = COMPLEXE.LOG2 ## Calcule le logarithme en base 2 d’un nombre complexe. +IMPOWER = COMPLEXE.PUISSANCE ## Renvoie un nombre complexe élevé à une puissance entière. +IMPRODUCT = COMPLEXE.PRODUIT ## Renvoie le produit de plusieurs nombres complexes. +IMREAL = COMPLEXE.REEL ## Renvoie le coefficient réel d’un nombre complexe. +IMSIN = COMPLEXE.SIN ## Renvoie le sinus d’un nombre complexe. +IMSQRT = COMPLEXE.RACINE ## Renvoie la racine carrée d’un nombre complexe. +IMSUB = COMPLEXE.DIFFERENCE ## Renvoie la différence entre deux nombres complexes. +IMSUM = COMPLEXE.SOMME ## Renvoie la somme de plusieurs nombres complexes. +OCT2BIN = OCTBIN ## Convertit un nombre octal en nombre binaire. +OCT2DEC = OCTDEC ## Convertit un nombre octal en nombre décimal. +OCT2HEX = OCTHEX ## Convertit un nombre octal en nombre hexadécimal. + + +## +## Financial functions Fonctions financières +## +ACCRINT = INTERET.ACC ## Renvoie l’intérêt couru non échu d’un titre dont l’intérêt est perçu périodiquement. +ACCRINTM = INTERET.ACC.MAT ## Renvoie l’intérêt couru non échu d’un titre dont l’intérêt est perçu à l’échéance. +AMORDEGRC = AMORDEGRC ## Renvoie l’amortissement correspondant à chaque période comptable en utilisant un coefficient d’amortissement. +AMORLINC = AMORLINC ## Renvoie l’amortissement d’un bien à la fin d’une période fiscale donnée. +COUPDAYBS = NB.JOURS.COUPON.PREC ## Renvoie le nombre de jours entre le début de la période de coupon et la date de liquidation. +COUPDAYS = NB.JOURS.COUPONS ## Renvoie le nombre de jours pour la période du coupon contenant la date de liquidation. +COUPDAYSNC = NB.JOURS.COUPON.SUIV ## Renvoie le nombre de jours entre la date de liquidation et la date du coupon suivant la date de liquidation. +COUPNCD = DATE.COUPON.SUIV ## Renvoie la première date de coupon ultérieure à la date de règlement. +COUPNUM = NB.COUPONS ## Renvoie le nombre de coupons dus entre la date de règlement et la date d’échéance. +COUPPCD = DATE.COUPON.PREC ## Renvoie la date de coupon précédant la date de règlement. +CUMIPMT = CUMUL.INTER ## Renvoie l’intérêt cumulé payé sur un emprunt entre deux périodes. +CUMPRINC = CUMUL.PRINCPER ## Renvoie le montant cumulé des remboursements du capital d’un emprunt effectués entre deux périodes. +DB = DB ## Renvoie l’amortissement d’un bien pour une période spécifiée en utilisant la méthode de l’amortissement dégressif à taux fixe. +DDB = DDB ## Renvoie l’amortissement d’un bien pour toute période spécifiée, en utilisant la méthode de l’amortissement dégressif à taux double ou selon un coefficient à spécifier. +DISC = TAUX.ESCOMPTE ## Calcule le taux d’escompte d’une transaction. +DOLLARDE = PRIX.DEC ## Convertit un prix en euros, exprimé sous forme de fraction, en un prix en euros exprimé sous forme de nombre décimal. +DOLLARFR = PRIX.FRAC ## Convertit un prix en euros, exprimé sous forme de nombre décimal, en un prix en euros exprimé sous forme de fraction. +DURATION = DUREE ## Renvoie la durée, en années, d’un titre dont l’intérêt est perçu périodiquement. +EFFECT = TAUX.EFFECTIF ## Renvoie le taux d’intérêt annuel effectif. +FV = VC ## Renvoie la valeur future d’un investissement. +FVSCHEDULE = VC.PAIEMENTS ## Calcule la valeur future d’un investissement en appliquant une série de taux d’intérêt composites. +INTRATE = TAUX.INTERET ## Affiche le taux d’intérêt d’un titre totalement investi. +IPMT = INTPER ## Calcule le montant des intérêts d’un investissement pour une période donnée. +IRR = TRI ## Calcule le taux de rentabilité interne d’un investissement pour une succession de trésoreries. +ISPMT = ISPMT ## Calcule le montant des intérêts d’un investissement pour une période donnée. +MDURATION = DUREE.MODIFIEE ## Renvoie la durée de Macauley modifiée pour un titre ayant une valeur nominale hypothétique de 100_euros. +MIRR = TRIM ## Calcule le taux de rentabilité interne lorsque les paiements positifs et négatifs sont financés à des taux différents. +NOMINAL = TAUX.NOMINAL ## Calcule le taux d’intérêt nominal annuel. +NPER = NPM ## Renvoie le nombre de versements nécessaires pour rembourser un emprunt. +NPV = VAN ## Calcule la valeur actuelle nette d’un investissement basé sur une série de décaissements et un taux d’escompte. +ODDFPRICE = PRIX.PCOUPON.IRREG ## Renvoie le prix par tranche de valeur nominale de 100 euros d’un titre dont la première période de coupon est irrégulière. +ODDFYIELD = REND.PCOUPON.IRREG ## Renvoie le taux de rendement d’un titre dont la première période de coupon est irrégulière. +ODDLPRICE = PRIX.DCOUPON.IRREG ## Renvoie le prix par tranche de valeur nominale de 100 euros d’un titre dont la première période de coupon est irrégulière. +ODDLYIELD = REND.DCOUPON.IRREG ## Renvoie le taux de rendement d’un titre dont la dernière période de coupon est irrégulière. +PMT = VPM ## Calcule le paiement périodique d’un investissement donné. +PPMT = PRINCPER ## Calcule, pour une période donnée, la part de remboursement du principal d’un investissement. +PRICE = PRIX.TITRE ## Renvoie le prix d’un titre rapportant des intérêts périodiques, pour une valeur nominale de 100 euros. +PRICEDISC = VALEUR.ENCAISSEMENT ## Renvoie la valeur d’encaissement d’un escompte commercial, pour une valeur nominale de 100 euros. +PRICEMAT = PRIX.TITRE.ECHEANCE ## Renvoie le prix d’un titre dont la valeur nominale est 100 euros et qui rapporte des intérêts à l’échéance. +PV = PV ## Calcule la valeur actuelle d’un investissement. +RATE = TAUX ## Calcule le taux d’intérêt par période pour une annuité. +RECEIVED = VALEUR.NOMINALE ## Renvoie la valeur nominale à échéance d’un effet de commerce. +SLN = AMORLIN ## Calcule l’amortissement linéaire d’un bien pour une période donnée. +SYD = SYD ## Calcule l’amortissement d’un bien pour une période donnée sur la base de la méthode américaine Sum-of-Years Digits (amortissement dégressif à taux décroissant appliqué à une valeur constante). +TBILLEQ = TAUX.ESCOMPTE.R ## Renvoie le taux d’escompte rationnel d’un bon du Trésor. +TBILLPRICE = PRIX.BON.TRESOR ## Renvoie le prix d’un bon du Trésor d’une valeur nominale de 100 euros. +TBILLYIELD = RENDEMENT.BON.TRESOR ## Calcule le taux de rendement d’un bon du Trésor. +VDB = VDB ## Renvoie l’amortissement d’un bien pour une période spécifiée ou partielle en utilisant une méthode de l’amortissement dégressif à taux fixe. +XIRR = TRI.PAIEMENTS ## Calcule le taux de rentabilité interne d’un ensemble de paiements non périodiques. +XNPV = VAN.PAIEMENTS ## Renvoie la valeur actuelle nette d’un ensemble de paiements non périodiques. +YIELD = RENDEMENT.TITRE ## Calcule le rendement d’un titre rapportant des intérêts périodiquement. +YIELDDISC = RENDEMENT.SIMPLE ## Calcule le taux de rendement d’un emprunt à intérêt simple (par exemple, un bon du Trésor). +YIELDMAT = RENDEMENT.TITRE.ECHEANCE ## Renvoie le rendement annuel d’un titre qui rapporte des intérêts à l’échéance. + + +## +## Information functions Fonctions d’information +## +CELL = CELLULE ## Renvoie des informations sur la mise en forme, l’emplacement et le contenu d’une cellule. +ERROR.TYPE = TYPE.ERREUR ## Renvoie un nombre correspondant à un type d’erreur. +INFO = INFORMATIONS ## Renvoie des informations sur l’environnement d’exploitation actuel. +ISBLANK = ESTVIDE ## Renvoie VRAI si l’argument valeur est vide. +ISERR = ESTERR ## Renvoie VRAI si l’argument valeur fait référence à une valeur d’erreur, sauf #N/A. +ISERROR = ESTERREUR ## Renvoie VRAI si l’argument valeur fait référence à une valeur d’erreur. +ISEVEN = EST.PAIR ## Renvoie VRAI si le chiffre est pair. +ISLOGICAL = ESTLOGIQUE ## Renvoie VRAI si l’argument valeur fait référence à une valeur logique. +ISNA = ESTNA ## Renvoie VRAI si l’argument valeur fait référence à la valeur d’erreur #N/A. +ISNONTEXT = ESTNONTEXTE ## Renvoie VRAI si l’argument valeur ne se présente pas sous forme de texte. +ISNUMBER = ESTNUM ## Renvoie VRAI si l’argument valeur représente un nombre. +ISODD = EST.IMPAIR ## Renvoie VRAI si le chiffre est impair. +ISREF = ESTREF ## Renvoie VRAI si l’argument valeur est une référence. +ISTEXT = ESTTEXTE ## Renvoie VRAI si l’argument valeur se présente sous forme de texte. +N = N ## Renvoie une valeur convertie en nombre. +NA = NA ## Renvoie la valeur d’erreur #N/A. +TYPE = TYPE ## Renvoie un nombre indiquant le type de données d’une valeur. + + +## +## Logical functions Fonctions logiques +## +AND = ET ## Renvoie VRAI si tous ses arguments sont VRAI. +FALSE = FAUX ## Renvoie la valeur logique FAUX. +IF = SI ## Spécifie un test logique à effectuer. +IFERROR = SIERREUR ## Renvoie une valeur que vous spécifiez si une formule génère une erreur ; sinon, elle renvoie le résultat de la formule. +NOT = NON ## Inverse la logique de cet argument. +OR = OU ## Renvoie VRAI si un des arguments est VRAI. +TRUE = VRAI ## Renvoie la valeur logique VRAI. + + +## +## Lookup and reference functions Fonctions de recherche et de référence +## +ADDRESS = ADRESSE ## Renvoie une référence sous forme de texte à une seule cellule d’une feuille de calcul. +AREAS = ZONES ## Renvoie le nombre de zones dans une référence. +CHOOSE = CHOISIR ## Choisit une valeur dans une liste. +COLUMN = COLONNE ## Renvoie le numéro de colonne d’une référence. +COLUMNS = COLONNES ## Renvoie le nombre de colonnes dans une référence. +HLOOKUP = RECHERCHEH ## Effectue une recherche dans la première ligne d’une matrice et renvoie la valeur de la cellule indiquée. +HYPERLINK = LIEN_HYPERTEXTE ## Crée un raccourci ou un renvoi qui ouvre un document stocké sur un serveur réseau, sur un réseau Intranet ou sur Internet. +INDEX = INDEX ## Utilise un index pour choisir une valeur provenant d’une référence ou d’une matrice. +INDIRECT = INDIRECT ## Renvoie une référence indiquée par une valeur de texte. +LOOKUP = RECHERCHE ## Recherche des valeurs dans un vecteur ou une matrice. +MATCH = EQUIV ## Recherche des valeurs dans une référence ou une matrice. +OFFSET = DECALER ## Renvoie une référence décalée par rapport à une référence donnée. +ROW = LIGNE ## Renvoie le numéro de ligne d’une référence. +ROWS = LIGNES ## Renvoie le nombre de lignes dans une référence. +RTD = RTD ## Extrait les données en temps réel à partir d’un programme prenant en charge l’automation COM (Automation : utilisation des objets d'une application à partir d'une autre application ou d'un autre outil de développement. Autrefois appelée OLE Automation, Automation est une norme industrielle et une fonctionnalité du modèle d'objet COM (Component Object Model).). +TRANSPOSE = TRANSPOSE ## Renvoie la transposition d’une matrice. +VLOOKUP = RECHERCHEV ## Effectue une recherche dans la première colonne d’une matrice et se déplace sur la ligne pour renvoyer la valeur d’une cellule. + + +## +## Math and trigonometry functions Fonctions mathématiques et trigonométriques +## +ABS = ABS ## Renvoie la valeur absolue d’un nombre. +ACOS = ACOS ## Renvoie l’arccosinus d’un nombre. +ACOSH = ACOSH ## Renvoie le cosinus hyperbolique inverse d’un nombre. +ASIN = ASIN ## Renvoie l’arcsinus d’un nombre. +ASINH = ASINH ## Renvoie le sinus hyperbolique inverse d’un nombre. +ATAN = ATAN ## Renvoie l’arctangente d’un nombre. +ATAN2 = ATAN2 ## Renvoie l’arctangente des coordonnées x et y. +ATANH = ATANH ## Renvoie la tangente hyperbolique inverse d’un nombre. +CEILING = PLAFOND ## Arrondit un nombre au nombre entier le plus proche ou au multiple le plus proche de l’argument précision en s’éloignant de zéro. +COMBIN = COMBIN ## Renvoie le nombre de combinaisons que l’on peut former avec un nombre donné d’objets. +COS = COS ## Renvoie le cosinus d’un nombre. +COSH = COSH ## Renvoie le cosinus hyperbolique d’un nombre. +DEGREES = DEGRES ## Convertit des radians en degrés. +EVEN = PAIR ## Arrondit un nombre au nombre entier pair le plus proche en s’éloignant de zéro. +EXP = EXP ## Renvoie e élevé à la puissance d’un nombre donné. +FACT = FACT ## Renvoie la factorielle d’un nombre. +FACTDOUBLE = FACTDOUBLE ## Renvoie la factorielle double d’un nombre. +FLOOR = PLANCHER ## Arrondit un nombre en tendant vers 0 (zéro). +GCD = PGCD ## Renvoie le plus grand commun diviseur. +INT = ENT ## Arrondit un nombre à l’entier immédiatement inférieur. +LCM = PPCM ## Renvoie le plus petit commun multiple. +LN = LN ## Renvoie le logarithme népérien d’un nombre. +LOG = LOG ## Renvoie le logarithme d’un nombre dans la base spécifiée. +LOG10 = LOG10 ## Calcule le logarithme en base 10 d’un nombre. +MDETERM = DETERMAT ## Renvoie le déterminant d’une matrice. +MINVERSE = INVERSEMAT ## Renvoie la matrice inverse d’une matrice. +MMULT = PRODUITMAT ## Renvoie le produit de deux matrices. +MOD = MOD ## Renvoie le reste d’une division. +MROUND = ARRONDI.AU.MULTIPLE ## Donne l’arrondi d’un nombre au multiple spécifié. +MULTINOMIAL = MULTINOMIALE ## Calcule la multinomiale d’un ensemble de nombres. +ODD = IMPAIR ## Renvoie le nombre, arrondi à la valeur du nombre entier impair le plus proche en s’éloignant de zéro. +PI = PI ## Renvoie la valeur de pi. +POWER = PUISSANCE ## Renvoie la valeur du nombre élevé à une puissance. +PRODUCT = PRODUIT ## Multiplie ses arguments. +QUOTIENT = QUOTIENT ## Renvoie la partie entière du résultat d’une division. +RADIANS = RADIANS ## Convertit des degrés en radians. +RAND = ALEA ## Renvoie un nombre aléatoire compris entre 0 et 1. +RANDBETWEEN = ALEA.ENTRE.BORNES ## Renvoie un nombre aléatoire entre les nombres que vous spécifiez. +ROMAN = ROMAIN ## Convertit des chiffres arabes en chiffres romains, sous forme de texte. +ROUND = ARRONDI ## Arrondit un nombre au nombre de chiffres indiqué. +ROUNDDOWN = ARRONDI.INF ## Arrondit un nombre en tendant vers 0 (zéro). +ROUNDUP = ARRONDI.SUP ## Arrondit un nombre à l’entier supérieur, en s’éloignant de zéro. +SERIESSUM = SOMME.SERIES ## Renvoie la somme d’une série géométrique en s’appuyant sur la formule suivante : +SIGN = SIGNE ## Renvoie le signe d’un nombre. +SIN = SIN ## Renvoie le sinus d’un angle donné. +SINH = SINH ## Renvoie le sinus hyperbolique d’un nombre. +SQRT = RACINE ## Renvoie la racine carrée d’un nombre. +SQRTPI = RACINE.PI ## Renvoie la racine carrée de (nombre * pi). +SUBTOTAL = SOUS.TOTAL ## Renvoie un sous-total dans une liste ou une base de données. +SUM = SOMME ## Calcule la somme de ses arguments. +SUMIF = SOMME.SI ## Additionne les cellules spécifiées si elles répondent à un critère donné. +SUMIFS = SOMME.SI.ENS ## Ajoute les cellules d’une plage qui répondent à plusieurs critères. +SUMPRODUCT = SOMMEPROD ## Multiplie les valeurs correspondantes des matrices spécifiées et calcule la somme de ces produits. +SUMSQ = SOMME.CARRES ## Renvoie la somme des carrés des arguments. +SUMX2MY2 = SOMME.X2MY2 ## Renvoie la somme de la différence des carrés des valeurs correspondantes de deux matrices. +SUMX2PY2 = SOMME.X2PY2 ## Renvoie la somme de la somme des carrés des valeurs correspondantes de deux matrices. +SUMXMY2 = SOMME.XMY2 ## Renvoie la somme des carrés des différences entre les valeurs correspondantes de deux matrices. +TAN = TAN ## Renvoie la tangente d’un nombre. +TANH = TANH ## Renvoie la tangente hyperbolique d’un nombre. +TRUNC = TRONQUE ## Renvoie la partie entière d’un nombre. + + +## +## Statistical functions Fonctions statistiques +## +AVEDEV = ECART.MOYEN ## Renvoie la moyenne des écarts absolus observés dans la moyenne des points de données. +AVERAGE = MOYENNE ## Renvoie la moyenne de ses arguments. +AVERAGEA = AVERAGEA ## Renvoie la moyenne de ses arguments, nombres, texte et valeurs logiques inclus. +AVERAGEIF = MOYENNE.SI ## Renvoie la moyenne (arithmétique) de toutes les cellules d’une plage qui répondent à des critères donnés. +AVERAGEIFS = MOYENNE.SI.ENS ## Renvoie la moyenne (arithmétique) de toutes les cellules qui répondent à plusieurs critères. +BETADIST = LOI.BETA ## Renvoie la fonction de distribution cumulée. +BETAINV = BETA.INVERSE ## Renvoie l’inverse de la fonction de distribution cumulée pour une distribution bêta spécifiée. +BINOMDIST = LOI.BINOMIALE ## Renvoie la probabilité d’une variable aléatoire discrète suivant la loi binomiale. +CHIDIST = LOI.KHIDEUX ## Renvoie la probabilité unilatérale de la distribution khi-deux. +CHIINV = KHIDEUX.INVERSE ## Renvoie l’inverse de la probabilité unilatérale de la distribution khi-deux. +CHITEST = TEST.KHIDEUX ## Renvoie le test d’indépendance. +CONFIDENCE = INTERVALLE.CONFIANCE ## Renvoie l’intervalle de confiance pour une moyenne de population. +CORREL = COEFFICIENT.CORRELATION ## Renvoie le coefficient de corrélation entre deux séries de données. +COUNT = NB ## Détermine les nombres compris dans la liste des arguments. +COUNTA = NBVAL ## Détermine le nombre de valeurs comprises dans la liste des arguments. +COUNTBLANK = NB.VIDE ## Compte le nombre de cellules vides dans une plage. +COUNTIF = NB.SI ## Compte le nombre de cellules qui répondent à un critère donné dans une plage. +COUNTIFS = NB.SI.ENS ## Compte le nombre de cellules à l’intérieur d’une plage qui répondent à plusieurs critères. +COVAR = COVARIANCE ## Renvoie la covariance, moyenne des produits des écarts pour chaque série d’observations. +CRITBINOM = CRITERE.LOI.BINOMIALE ## Renvoie la plus petite valeur pour laquelle la distribution binomiale cumulée est inférieure ou égale à une valeur de critère. +DEVSQ = SOMME.CARRES.ECARTS ## Renvoie la somme des carrés des écarts. +EXPONDIST = LOI.EXPONENTIELLE ## Renvoie la distribution exponentielle. +FDIST = LOI.F ## Renvoie la distribution de probabilité F. +FINV = INVERSE.LOI.F ## Renvoie l’inverse de la distribution de probabilité F. +FISHER = FISHER ## Renvoie la transformation de Fisher. +FISHERINV = FISHER.INVERSE ## Renvoie l’inverse de la transformation de Fisher. +FORECAST = PREVISION ## Calcule une valeur par rapport à une tendance linéaire. +FREQUENCY = FREQUENCE ## Calcule la fréquence d’apparition des valeurs dans une plage de valeurs, puis renvoie des nombres sous forme de matrice verticale. +FTEST = TEST.F ## Renvoie le résultat d’un test F. +GAMMADIST = LOI.GAMMA ## Renvoie la probabilité d’une variable aléatoire suivant une loi Gamma. +GAMMAINV = LOI.GAMMA.INVERSE ## Renvoie, pour une probabilité donnée, la valeur d’une variable aléatoire suivant une loi Gamma. +GAMMALN = LNGAMMA ## Renvoie le logarithme népérien de la fonction Gamma, G(x) +GEOMEAN = MOYENNE.GEOMETRIQUE ## Renvoie la moyenne géométrique. +GROWTH = CROISSANCE ## Calcule des valeurs par rapport à une tendance exponentielle. +HARMEAN = MOYENNE.HARMONIQUE ## Renvoie la moyenne harmonique. +HYPGEOMDIST = LOI.HYPERGEOMETRIQUE ## Renvoie la probabilité d’une variable aléatoire discrète suivant une loi hypergéométrique. +INTERCEPT = ORDONNEE.ORIGINE ## Renvoie l’ordonnée à l’origine d’une droite de régression linéaire. +KURT = KURTOSIS ## Renvoie le kurtosis d’une série de données. +LARGE = GRANDE.VALEUR ## Renvoie la k-ième plus grande valeur d’une série de données. +LINEST = DROITEREG ## Renvoie les paramètres d’une tendance linéaire. +LOGEST = LOGREG ## Renvoie les paramètres d’une tendance exponentielle. +LOGINV = LOI.LOGNORMALE.INVERSE ## Renvoie l’inverse de la probabilité pour une variable aléatoire suivant la loi lognormale. +LOGNORMDIST = LOI.LOGNORMALE ## Renvoie la probabilité d’une variable aléatoire continue suivant une loi lognormale. +MAX = MAX ## Renvoie la valeur maximale contenue dans une liste d’arguments. +MAXA = MAXA ## Renvoie la valeur maximale d’une liste d’arguments, nombres, texte et valeurs logiques inclus. +MEDIAN = MEDIANE ## Renvoie la valeur médiane des nombres donnés. +MIN = MIN ## Renvoie la valeur minimale contenue dans une liste d’arguments. +MINA = MINA ## Renvoie la plus petite valeur d’une liste d’arguments, nombres, texte et valeurs logiques inclus. +MODE = MODE ## Renvoie la valeur la plus courante d’une série de données. +NEGBINOMDIST = LOI.BINOMIALE.NEG ## Renvoie la probabilité d’une variable aléatoire discrète suivant une loi binomiale négative. +NORMDIST = LOI.NORMALE ## Renvoie la probabilité d’une variable aléatoire continue suivant une loi normale. +NORMINV = LOI.NORMALE.INVERSE ## Renvoie, pour une probabilité donnée, la valeur d’une variable aléatoire suivant une loi normale standard. +NORMSDIST = LOI.NORMALE.STANDARD ## Renvoie la probabilité d’une variable aléatoire continue suivant une loi normale standard. +NORMSINV = LOI.NORMALE.STANDARD.INVERSE ## Renvoie l’inverse de la distribution cumulée normale standard. +PEARSON = PEARSON ## Renvoie le coefficient de corrélation d’échantillonnage de Pearson. +PERCENTILE = CENTILE ## Renvoie le k-ième centile des valeurs d’une plage. +PERCENTRANK = RANG.POURCENTAGE ## Renvoie le rang en pourcentage d’une valeur d’une série de données. +PERMUT = PERMUTATION ## Renvoie le nombre de permutations pour un nombre donné d’objets. +POISSON = LOI.POISSON ## Renvoie la probabilité d’une variable aléatoire suivant une loi de Poisson. +PROB = PROBABILITE ## Renvoie la probabilité que des valeurs d’une plage soient comprises entre deux limites. +QUARTILE = QUARTILE ## Renvoie le quartile d’une série de données. +RANK = RANG ## Renvoie le rang d’un nombre contenu dans une liste. +RSQ = COEFFICIENT.DETERMINATION ## Renvoie la valeur du coefficient de détermination R^2 d’une régression linéaire. +SKEW = COEFFICIENT.ASYMETRIE ## Renvoie l’asymétrie d’une distribution. +SLOPE = PENTE ## Renvoie la pente d’une droite de régression linéaire. +SMALL = PETITE.VALEUR ## Renvoie la k-ième plus petite valeur d’une série de données. +STANDARDIZE = CENTREE.REDUITE ## Renvoie une valeur centrée réduite. +STDEV = ECARTYPE ## Évalue l’écart type d’une population en se basant sur un échantillon de cette population. +STDEVA = STDEVA ## Évalue l’écart type d’une population en se basant sur un échantillon de cette population, nombres, texte et valeurs logiques inclus. +STDEVP = ECARTYPEP ## Calcule l’écart type d’une population à partir de la population entière. +STDEVPA = STDEVPA ## Calcule l’écart type d’une population à partir de l’ensemble de la population, nombres, texte et valeurs logiques inclus. +STEYX = ERREUR.TYPE.XY ## Renvoie l’erreur type de la valeur y prévue pour chaque x de la régression. +TDIST = LOI.STUDENT ## Renvoie la probabilité d’une variable aléatoire suivant une loi T de Student. +TINV = LOI.STUDENT.INVERSE ## Renvoie, pour une probabilité donnée, la valeur d’une variable aléatoire suivant une loi T de Student. +TREND = TENDANCE ## Renvoie des valeurs par rapport à une tendance linéaire. +TRIMMEAN = MOYENNE.REDUITE ## Renvoie la moyenne de l’intérieur d’une série de données. +TTEST = TEST.STUDENT ## Renvoie la probabilité associée à un test T de Student. +VAR = VAR ## Calcule la variance sur la base d’un échantillon. +VARA = VARA ## Estime la variance d’une population en se basant sur un échantillon de cette population, nombres, texte et valeurs logiques incluses. +VARP = VAR.P ## Calcule la variance sur la base de l’ensemble de la population. +VARPA = VARPA ## Calcule la variance d’une population en se basant sur la population entière, nombres, texte et valeurs logiques inclus. +WEIBULL = LOI.WEIBULL ## Renvoie la probabilité d’une variable aléatoire suivant une loi de Weibull. +ZTEST = TEST.Z ## Renvoie la valeur de probabilité unilatérale d’un test z. + + +## +## Text functions Fonctions de texte +## +ASC = ASC ## Change les caractères anglais ou katakana à pleine chasse (codés sur deux octets) à l’intérieur d’une chaîne de caractères en caractères à demi-chasse (codés sur un octet). +BAHTTEXT = BAHTTEXT ## Convertit un nombre en texte en utilisant le format monétaire ß (baht). +CHAR = CAR ## Renvoie le caractère spécifié par le code numérique. +CLEAN = EPURAGE ## Supprime tous les caractères de contrôle du texte. +CODE = CODE ## Renvoie le numéro de code du premier caractère du texte. +CONCATENATE = CONCATENER ## Assemble plusieurs éléments textuels de façon à n’en former qu’un seul. +DOLLAR = EURO ## Convertit un nombre en texte en utilisant le format monétaire € (euro). +EXACT = EXACT ## Vérifie si deux valeurs de texte sont identiques. +FIND = TROUVE ## Trouve un valeur textuelle dans une autre, en respectant la casse. +FINDB = TROUVERB ## Trouve un valeur textuelle dans une autre, en respectant la casse. +FIXED = CTXT ## Convertit un nombre au format texte avec un nombre de décimales spécifié. +JIS = JIS ## Change les caractères anglais ou katakana à demi-chasse (codés sur un octet) à l’intérieur d’une chaîne de caractères en caractères à à pleine chasse (codés sur deux octets). +LEFT = GAUCHE ## Renvoie des caractères situés à l’extrême gauche d’une chaîne de caractères. +LEFTB = GAUCHEB ## Renvoie des caractères situés à l’extrême gauche d’une chaîne de caractères. +LEN = NBCAR ## Renvoie le nombre de caractères contenus dans une chaîne de texte. +LENB = LENB ## Renvoie le nombre de caractères contenus dans une chaîne de texte. +LOWER = MINUSCULE ## Convertit le texte en minuscules. +MID = STXT ## Renvoie un nombre déterminé de caractères d’une chaîne de texte à partir de la position que vous indiquez. +MIDB = STXTB ## Renvoie un nombre déterminé de caractères d’une chaîne de texte à partir de la position que vous indiquez. +PHONETIC = PHONETIQUE ## Extrait les caractères phonétiques (furigana) d’une chaîne de texte. +PROPER = NOMPROPRE ## Met en majuscules la première lettre de chaque mot dans une chaîne textuelle. +REPLACE = REMPLACER ## Remplace des caractères dans un texte. +REPLACEB = REMPLACERB ## Remplace des caractères dans un texte. +REPT = REPT ## Répète un texte un certain nombre de fois. +RIGHT = DROITE ## Renvoie des caractères situés à l’extrême droite d’une chaîne de caractères. +RIGHTB = DROITEB ## Renvoie des caractères situés à l’extrême droite d’une chaîne de caractères. +SEARCH = CHERCHE ## Trouve un texte dans un autre texte (sans respecter la casse). +SEARCHB = CHERCHERB ## Trouve un texte dans un autre texte (sans respecter la casse). +SUBSTITUTE = SUBSTITUE ## Remplace l’ancien texte d’une chaîne de caractères par un nouveau. +T = T ## Convertit ses arguments en texte. +TEXT = TEXTE ## Convertit un nombre au format texte. +TRIM = SUPPRESPACE ## Supprime les espaces du texte. +UPPER = MAJUSCULE ## Convertit le texte en majuscules. +VALUE = CNUM ## Convertit un argument textuel en nombre diff --git a/admin/helpers/PHPExcel/locale/fr/index.html b/admin/helpers/PHPExcel/locale/fr/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/fr/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/hu/config b/admin/helpers/PHPExcel/locale/hu/config new file mode 100644 index 00000000..080b2018 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/hu/config @@ -0,0 +1,47 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = Ft + + +## +## Excel Error Codes (For future use) +## +NULL = #NULLA! +DIV0 = #ZÉRÓOSZTÓ! +VALUE = #ÉRTÉK! +REF = #HIV! +NAME = #NÉV? +NUM = #SZÁM! +NA = #HIÁNYZIK diff --git a/admin/helpers/PHPExcel/locale/hu/functions b/admin/helpers/PHPExcel/locale/hu/functions new file mode 100644 index 00000000..200d3f71 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/hu/functions @@ -0,0 +1,438 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Calculation +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ +## +## + + +## +## Add-in and Automation functions Bővítmények és automatizálási függvények +## +GETPIVOTDATA = KIMUTATÁSADATOT.VESZ ## A kimutatásokban tárolt adatok visszaadására használható. + + +## +## Cube functions Kockafüggvények +## +CUBEKPIMEMBER = KOCKA.FŐTELJMUT ## Egy fő teljesítménymutató (KPI) nevét, tulajdonságát és mértékegységét adja eredményül, a nevet és a tulajdonságot megjeleníti a cellában. A KPI-k számszerűsíthető mérési lehetőséget jelentenek – ilyen mutató például a havi bruttó nyereség vagy az egy alkalmazottra jutó negyedéves forgalom –, egy szervezet teljesítményének nyomonkövetésére használhatók. +CUBEMEMBER = KOCKA.TAG ## Kockahierachia tagját vagy rekordját adja eredményül. Ellenőrizhető vele, hogy szerepel-e a kockában az adott tag vagy rekord. +CUBEMEMBERPROPERTY = KOCKA.TAG.TUL ## A kocka egyik tagtulajdonságának értékét adja eredményül. Használatával ellenőrizhető, hogy szerepel-e egy tagnév a kockában, eredménye pedig az erre a tagra vonatkozó, megadott tulajdonság. +CUBERANKEDMEMBER = KOCKA.HALM.ELEM ## Egy halmaz rangsor szerinti n-edik tagját adja eredményül. Használatával egy halmaz egy vagy több elemét kaphatja meg, például a legnagyobb teljesítményű üzletkötőt vagy a 10 legjobb tanulót. +CUBESET = KOCKA.HALM ## Számított tagok vagy rekordok halmazát adja eredményül, ehhez egy beállított kifejezést elküld a kiszolgálón található kockának, majd ezt a halmazt adja vissza a Microsoft Office Excel alkalmazásnak. +CUBESETCOUNT = KOCKA.HALM.DB ## Egy halmaz elemszámát adja eredményül. +CUBEVALUE = KOCKA.ÉRTÉK ## Kockából összesített értéket ad eredményül. + + +## +## Database functions Adatbázis-kezelő függvények +## +DAVERAGE = AB.ÁTLAG ## A kijelölt adatbáziselemek átlagát számítja ki. +DCOUNT = AB.DARAB ## Megszámolja, hogy az adatbázisban hány cella tartalmaz számokat. +DCOUNTA = AB.DARAB2 ## Megszámolja az adatbázisban lévő nem üres cellákat. +DGET = AB.MEZŐ ## Egy adatbázisból egyetlen olyan rekordot ad vissza, amely megfelel a megadott feltételeknek. +DMAX = AB.MAX ## A kiválasztott adatbáziselemek közül a legnagyobb értéket adja eredményül. +DMIN = AB.MIN ## A kijelölt adatbáziselemek közül a legkisebb értéket adja eredményül. +DPRODUCT = AB.SZORZAT ## Az adatbázis megadott feltételeknek eleget tevő rekordjaira összeszorozza a megadott mezőben található számértékeket, és eredményül ezt a szorzatot adja. +DSTDEV = AB.SZÓRÁS ## A kijelölt adatbáziselemek egy mintája alapján megbecsüli a szórást. +DSTDEVP = AB.SZÓRÁS2 ## A kijelölt adatbáziselemek teljes sokasága alapján kiszámítja a szórást. +DSUM = AB.SZUM ## Összeadja a feltételnek megfelelő adatbázisrekordok mezőoszlopában a számokat. +DVAR = AB.VAR ## A kijelölt adatbáziselemek mintája alapján becslést ad a szórásnégyzetre. +DVARP = AB.VAR2 ## A kijelölt adatbáziselemek teljes sokasága alapján kiszámítja a szórásnégyzetet. + + +## +## Date and time functions Dátumfüggvények +## +DATE = DÁTUM ## Adott dátum dátumértékét adja eredményül. +DATEVALUE = DÁTUMÉRTÉK ## Szövegként megadott dátumot dátumértékké alakít át. +DAY = NAP ## Dátumértéket a hónap egy napjává (0-31) alakít. +DAYS360 = NAP360 ## Két dátum közé eső napok számát számítja ki a 360 napos év alapján. +EDATE = EDATE ## Adott dátumnál adott számú hónappal korábbi vagy későbbi dátum dátumértékét adja eredményül. +EOMONTH = EOMONTH ## Adott dátumnál adott számú hónappal korábbi vagy későbbi hónap utolsó napjának dátumértékét adja eredményül. +HOUR = ÓRA ## Időértéket órákká alakít. +MINUTE = PERC ## Időértéket percekké alakít. +MONTH = HÓNAP ## Időértéket hónapokká alakít. +NETWORKDAYS = NETWORKDAYS ## Két dátum között a teljes munkanapok számát adja meg. +NOW = MOST ## A napi dátum dátumértékét és a pontos idő időértékét adja eredményül. +SECOND = MPERC ## Időértéket másodpercekké alakít át. +TIME = IDŐ ## Adott időpont időértékét adja meg. +TIMEVALUE = IDŐÉRTÉK ## Szövegként megadott időpontot időértékké alakít át. +TODAY = MA ## A napi dátum dátumértékét adja eredményül. +WEEKDAY = HÉT.NAPJA ## Dátumértéket a hét napjává alakítja át. +WEEKNUM = WEEKNUM ## Visszatérési értéke egy szám, amely azt mutatja meg, hogy a megadott dátum az év hányadik hetére esik. +WORKDAY = WORKDAY ## Adott dátumnál adott munkanappal korábbi vagy későbbi dátum dátumértékét adja eredményül. +YEAR = ÉV ## Sorszámot évvé alakít át. +YEARFRAC = YEARFRAC ## Az adott dátumok közötti teljes napok számát törtévként adja meg. + + +## +## Engineering functions Mérnöki függvények +## +BESSELI = BESSELI ## Az In(x) módosított Bessel-függvény értékét adja eredményül. +BESSELJ = BESSELJ ## A Jn(x) Bessel-függvény értékét adja eredményül. +BESSELK = BESSELK ## A Kn(x) módosított Bessel-függvény értékét adja eredményül. +BESSELY = BESSELY ## Az Yn(x) módosított Bessel-függvény értékét adja eredményül. +BIN2DEC = BIN2DEC ## Bináris számot decimálissá alakít át. +BIN2HEX = BIN2HEX ## Bináris számot hexadecimálissá alakít át. +BIN2OCT = BIN2OCT ## Bináris számot oktálissá alakít át. +COMPLEX = COMPLEX ## Valós és képzetes részből komplex számot képez. +CONVERT = CONVERT ## Mértékegységeket vált át. +DEC2BIN = DEC2BIN ## Decimális számot binárissá alakít át. +DEC2HEX = DEC2HEX ## Decimális számot hexadecimálissá alakít át. +DEC2OCT = DEC2OCT ## Decimális számot oktálissá alakít át. +DELTA = DELTA ## Azt vizsgálja, hogy két érték egyenlő-e. +ERF = ERF ## A hibafüggvény értékét adja eredményül. +ERFC = ERFC ## A kiegészített hibafüggvény értékét adja eredményül. +GESTEP = GESTEP ## Azt vizsgálja, hogy egy szám nagyobb-e adott küszöbértéknél. +HEX2BIN = HEX2BIN ## Hexadecimális számot binárissá alakít át. +HEX2DEC = HEX2DEC ## Hexadecimális számot decimálissá alakít át. +HEX2OCT = HEX2OCT ## Hexadecimális számot oktálissá alakít át. +IMABS = IMABS ## Komplex szám abszolút értékét (modulusát) adja eredményül. +IMAGINARY = IMAGINARY ## Komplex szám képzetes részét adja eredményül. +IMARGUMENT = IMARGUMENT ## A komplex szám radiánban kifejezett théta argumentumát adja eredményül. +IMCONJUGATE = IMCONJUGATE ## Komplex szám komplex konjugáltját adja eredményül. +IMCOS = IMCOS ## Komplex szám koszinuszát adja eredményül. +IMDIV = IMDIV ## Két komplex szám hányadosát adja eredményül. +IMEXP = IMEXP ## Az e szám komplex kitevőjű hatványát adja eredményül. +IMLN = IMLN ## Komplex szám természetes logaritmusát adja eredményül. +IMLOG10 = IMLOG10 ## Komplex szám tízes alapú logaritmusát adja eredményül. +IMLOG2 = IMLOG2 ## Komplex szám kettes alapú logaritmusát adja eredményül. +IMPOWER = IMPOWER ## Komplex szám hatványát adja eredményül. +IMPRODUCT = IMPRODUCT ## Komplex számok szorzatát adja eredményül. +IMREAL = IMREAL ## Komplex szám valós részét adja eredményül. +IMSIN = IMSIN ## Komplex szám szinuszát adja eredményül. +IMSQRT = IMSQRT ## Komplex szám négyzetgyökét adja eredményül. +IMSUB = IMSUB ## Két komplex szám különbségét adja eredményül. +IMSUM = IMSUM ## Komplex számok összegét adja eredményül. +OCT2BIN = OCT2BIN ## Oktális számot binárissá alakít át. +OCT2DEC = OCT2DEC ## Oktális számot decimálissá alakít át. +OCT2HEX = OCT2HEX ## Oktális számot hexadecimálissá alakít át. + + +## +## Financial functions Pénzügyi függvények +## +ACCRINT = ACCRINT ## Periodikusan kamatozó értékpapír felszaporodott kamatát adja eredményül. +ACCRINTM = ACCRINTM ## Lejáratkor kamatozó értékpapír felszaporodott kamatát adja eredményül. +AMORDEGRC = AMORDEGRC ## Állóeszköz lineáris értékcsökkenését adja meg az egyes könyvelési időszakokra vonatkozóan. +AMORLINC = AMORLINC ## Az egyes könyvelési időszakokban az értékcsökkenést adja meg. +COUPDAYBS = COUPDAYBS ## A szelvényidőszak kezdetétől a kifizetés időpontjáig eltelt napokat adja vissza. +COUPDAYS = COUPDAYS ## A kifizetés időpontját magában foglaló szelvényperiódus hosszát adja meg napokban. +COUPDAYSNC = COUPDAYSNC ## A kifizetés időpontja és a legközelebbi szelvénydátum közötti napok számát adja meg. +COUPNCD = COUPNCD ## A kifizetést követő legelső szelvénydátumot adja eredményül. +COUPNUM = COUPNUM ## A kifizetés és a lejárat időpontja között kifizetendő szelvények számát adja eredményül. +COUPPCD = COUPPCD ## A kifizetés előtti utolsó szelvénydátumot adja eredményül. +CUMIPMT = CUMIPMT ## Két fizetési időszak között kifizetett kamat halmozott értékét adja eredményül. +CUMPRINC = CUMPRINC ## Két fizetési időszak között kifizetett részletek halmozott (kamatot nem tartalmazó) értékét adja eredményül. +DB = KCS2 ## Eszköz adott időszak alatti értékcsökkenését számítja ki a lineáris leírási modell alkalmazásával. +DDB = KCSA ## Eszköz értékcsökkenését számítja ki adott időszakra vonatkozóan a progresszív vagy egyéb megadott leírási modell alkalmazásával. +DISC = DISC ## Értékpapír leszámítolási kamatlábát adja eredményül. +DOLLARDE = DOLLARDE ## Egy közönséges törtként megadott számot tizedes törtté alakít át. +DOLLARFR = DOLLARFR ## Tizedes törtként megadott számot közönséges törtté alakít át. +DURATION = DURATION ## Periodikus kamatfizetésű értékpapír éves kamatérzékenységét adja eredményül. +EFFECT = EFFECT ## Az éves tényleges kamatláb értékét adja eredményül. +FV = JBÉ ## Befektetés jövőbeli értékét számítja ki. +FVSCHEDULE = FVSCHEDULE ## A kezdőtőke adott kamatlábak szerint megnövelt jövőbeli értékét adja eredményül. +INTRATE = INTRATE ## A lejáratig teljesen lekötött értékpapír kamatrátáját adja eredményül. +IPMT = RRÉSZLET ## Hiteltörlesztésen belül a tőketörlesztés nagyságát számítja ki adott időszakra. +IRR = BMR ## A befektetés belső megtérülési rátáját számítja ki pénzáramláshoz. +ISPMT = LRÉSZLETKAMAT ## A befektetés adott időszakára fizetett kamatot számítja ki. +MDURATION = MDURATION ## Egy 100 Ft névértékű értékpapír Macauley-féle módosított kamatérzékenységét adja eredményül. +MIRR = MEGTÉRÜLÉS ## A befektetés belső megtérülési rátáját számítja ki a költségek és a bevételek különböző kamatlába mellett. +NOMINAL = NOMINAL ## Az éves névleges kamatláb értékét adja eredményül. +NPER = PER.SZÁM ## A törlesztési időszakok számát adja meg. +NPV = NMÉ ## Befektetéshez kapcsolódó pénzáramlás nettó jelenértékét számítja ki ismert pénzáramlás és kamatláb mellett. +ODDFPRICE = ODDFPRICE ## Egy 100 Ft névértékű, a futamidő elején töredék-időszakos értékpapír árát adja eredményül. +ODDFYIELD = ODDFYIELD ## A futamidő elején töredék-időszakos értékpapír hozamát adja eredményül. +ODDLPRICE = ODDLPRICE ## Egy 100 Ft névértékű, a futamidő végén töredék-időszakos értékpapír árát adja eredményül. +ODDLYIELD = ODDLYIELD ## A futamidő végén töredék-időszakos értékpapír hozamát adja eredményül. +PMT = RÉSZLET ## A törlesztési időszakra vonatkozó törlesztési összeget számítja ki. +PPMT = PRÉSZLET ## Hiteltörlesztésen belül a tőketörlesztés nagyságát számítja ki adott időszakra. +PRICE = PRICE ## Egy 100 Ft névértékű, periodikusan kamatozó értékpapír árát adja eredményül. +PRICEDISC = PRICEDISC ## Egy 100 Ft névértékű leszámítolt értékpapír árát adja eredményül. +PRICEMAT = PRICEMAT ## Egy 100 Ft névértékű, a lejáratkor kamatozó értékpapír árát adja eredményül. +PV = MÉ ## Befektetés jelenlegi értékét számítja ki. +RATE = RÁTA ## Egy törlesztési időszakban az egy időszakra eső kamatláb nagyságát számítja ki. +RECEIVED = RECEIVED ## A lejáratig teljesen lekötött értékpapír lejáratakor kapott összegét adja eredményül. +SLN = LCSA ## Tárgyi eszköz egy időszakra eső amortizációját adja meg bruttó érték szerinti lineáris leírási kulcsot alkalmazva. +SYD = SYD ## Tárgyi eszköz értékcsökkenését számítja ki adott időszakra az évek számjegyösszegével dolgozó módszer alapján. +TBILLEQ = TBILLEQ ## Kincstárjegy kötvény-egyenértékű hozamát adja eredményül. +TBILLPRICE = TBILLPRICE ## Egy 100 Ft névértékű kincstárjegy árát adja eredményül. +TBILLYIELD = TBILLYIELD ## Kincstárjegy hozamát adja eredményül. +VDB = ÉCSRI ## Tárgyi eszköz amortizációját számítja ki megadott vagy részidőszakra a csökkenő egyenleg módszerének alkalmazásával. +XIRR = XIRR ## Ütemezett készpénzforgalom (cash flow) belső megtérülési kamatrátáját adja eredményül. +XNPV = XNPV ## Ütemezett készpénzforgalom (cash flow) nettó jelenlegi értékét adja eredményül. +YIELD = YIELD ## Periodikusan kamatozó értékpapír hozamát adja eredményül. +YIELDDISC = YIELDDISC ## Leszámítolt értékpapír (például kincstárjegy) éves hozamát adja eredményül. +YIELDMAT = YIELDMAT ## Lejáratkor kamatozó értékpapír éves hozamát adja eredményül. + + +## +## Information functions Információs függvények +## +CELL = CELLA ## Egy cella formátumára, elhelyezkedésére vagy tartalmára vonatkozó adatokat ad eredményül. +ERROR.TYPE = HIBA.TÍPUS ## Egy hibatípushoz tartozó számot ad eredményül. +INFO = INFÓ ## A rendszer- és munkakörnyezet pillanatnyi állapotáról ad felvilágosítást. +ISBLANK = ÜRES ## Eredménye IGAZ, ha az érték üres. +ISERR = HIBA ## Eredménye IGAZ, ha az érték valamelyik hibaérték a #HIÁNYZIK kivételével. +ISERROR = HIBÁS ## Eredménye IGAZ, ha az érték valamelyik hibaérték. +ISEVEN = ISEVEN ## Eredménye IGAZ, ha argumentuma páros szám. +ISLOGICAL = LOGIKAI ## Eredménye IGAZ, ha az érték logikai érték. +ISNA = NINCS ## Eredménye IGAZ, ha az érték a #HIÁNYZIK hibaérték. +ISNONTEXT = NEM.SZÖVEG ## Eredménye IGAZ, ha az érték nem szöveg. +ISNUMBER = SZÁM ## Eredménye IGAZ, ha az érték szám. +ISODD = ISODD ## Eredménye IGAZ, ha argumentuma páratlan szám. +ISREF = HIVATKOZÁS ## Eredménye IGAZ, ha az érték hivatkozás. +ISTEXT = SZÖVEG.E ## Eredménye IGAZ, ha az érték szöveg. +N = N ## Argumentumának értékét számmá alakítja. +NA = HIÁNYZIK ## Eredménye a #HIÁNYZIK hibaérték. +TYPE = TÍPUS ## Érték adattípusának azonosítószámát adja eredményül. + + +## +## Logical functions Logikai függvények +## +AND = ÉS ## Eredménye IGAZ, ha minden argumentuma IGAZ. +FALSE = HAMIS ## A HAMIS logikai értéket adja eredményül. +IF = HA ## Logikai vizsgálatot hajt végre. +IFERROR = HAHIBA ## A megadott értéket adja vissza, ha egy képlet hibához vezet; más esetben a képlet értékét adja eredményül. +NOT = NEM ## Argumentuma értékének ellentettjét adja eredményül. +OR = VAGY ## Eredménye IGAZ, ha bármely argumentuma IGAZ. +TRUE = IGAZ ## Az IGAZ logikai értéket adja eredményül. + + +## +## Lookup and reference functions Keresési és hivatkozási függvények +## +ADDRESS = CÍM ## A munkalap egy cellájára való hivatkozást adja szövegként eredményül. +AREAS = TERÜLET ## Hivatkozásban a területek számát adja eredményül. +CHOOSE = VÁLASZT ## Értékek listájából választ ki egy elemet. +COLUMN = OSZLOP ## Egy hivatkozás oszlopszámát adja eredményül. +COLUMNS = OSZLOPOK ## A hivatkozásban található oszlopok számát adja eredményül. +HLOOKUP = VKERES ## A megadott tömb felső sorában adott értékű elemet keres, és a megtalált elem oszlopából adott sorban elhelyezkedő értékkel tér vissza. +HYPERLINK = HIPERHIVATKOZÁS ## Hálózati kiszolgálón, intraneten vagy az interneten tárolt dokumentumot megnyitó parancsikont vagy hivatkozást hoz létre. +INDEX = INDEX ## Tömb- vagy hivatkozás indexszel megadott értékét adja vissza. +INDIRECT = INDIREKT ## Szöveg megadott hivatkozást ad eredményül. +LOOKUP = KERES ## Vektorban vagy tömbben keres meg értékeket. +MATCH = HOL.VAN ## Hivatkozásban vagy tömbben értékeket keres. +OFFSET = OFSZET ## Hivatkozás egy másik hivatkozástól számított távolságát adja meg. +ROW = SOR ## Egy hivatkozás sorának számát adja meg. +ROWS = SOROK ## Egy hivatkozás sorainak számát adja meg. +RTD = RTD ## Valós idejű adatokat keres vissza a COM automatizmust (automatizálás: Egy alkalmazás objektumaival való munka másik alkalmazásból vagy fejlesztőeszközből. A korábban OLE automatizmusnak nevezett automatizálás iparági szabvány, a Component Object Model (COM) szolgáltatása.) támogató programból. +TRANSPOSE = TRANSZPONÁLÁS ## Egy tömb transzponáltját adja eredményül. +VLOOKUP = FKERES ## A megadott tömb bal szélső oszlopában megkeres egy értéket, majd annak sora és a megadott oszlop metszéspontjában levő értéked adja eredményül. + + +## +## Math and trigonometry functions Matematikai és trigonometrikus függvények +## +ABS = ABS ## Egy szám abszolút értékét adja eredményül. +ACOS = ARCCOS ## Egy szám arkusz koszinuszát számítja ki. +ACOSH = ACOSH ## Egy szám inverz koszinusz hiperbolikuszát számítja ki. +ASIN = ARCSIN ## Egy szám arkusz szinuszát számítja ki. +ASINH = ASINH ## Egy szám inverz szinusz hiperbolikuszát számítja ki. +ATAN = ARCTAN ## Egy szám arkusz tangensét számítja ki. +ATAN2 = ARCTAN2 ## X és y koordináták alapján számítja ki az arkusz tangens értéket. +ATANH = ATANH ## A szám inverz tangens hiperbolikuszát számítja ki. +CEILING = PLAFON ## Egy számot a legközelebbi egészre vagy a pontosságként megadott érték legközelebb eső többszörösére kerekít. +COMBIN = KOMBINÁCIÓK ## Adott számú objektum összes lehetséges kombinációinak számát számítja ki. +COS = COS ## Egy szám koszinuszát számítja ki. +COSH = COSH ## Egy szám koszinusz hiperbolikuszát számítja ki. +DEGREES = FOK ## Radiánt fokká alakít át. +EVEN = PÁROS ## Egy számot a legközelebbi páros egész számra kerekít. +EXP = KITEVŐ ## Az e adott kitevőjű hatványát adja eredményül. +FACT = FAKT ## Egy szám faktoriálisát számítja ki. +FACTDOUBLE = FACTDOUBLE ## Egy szám dupla faktoriálisát adja eredményül. +FLOOR = PADLÓ ## Egy számot lefelé, a nulla felé kerekít. +GCD = GCD ## A legnagyobb közös osztót adja eredményül. +INT = INT ## Egy számot lefelé kerekít a legközelebbi egészre. +LCM = LCM ## A legkisebb közös többszöröst adja eredményül. +LN = LN ## Egy szám természetes logaritmusát számítja ki. +LOG = LOG ## Egy szám adott alapú logaritmusát számítja ki. +LOG10 = LOG10 ## Egy szám 10-es alapú logaritmusát számítja ki. +MDETERM = MDETERM ## Egy tömb mátrix-determinánsát számítja ki. +MINVERSE = INVERZ.MÁTRIX ## Egy tömb mátrix inverzét adja eredményül. +MMULT = MSZORZAT ## Két tömb mátrix-szorzatát adja meg. +MOD = MARADÉK ## Egy szám osztási maradékát adja eredményül. +MROUND = MROUND ## A kívánt többszörösére kerekített értéket ad eredményül. +MULTINOMIAL = MULTINOMIAL ## Számhalmaz multinomiálisát adja eredményül. +ODD = PÁRATLAN ## Egy számot a legközelebbi páratlan számra kerekít. +PI = PI ## A pi matematikai állandót adja vissza. +POWER = HATVÁNY ## Egy szám adott kitevőjű hatványát számítja ki. +PRODUCT = SZORZAT ## Argumentumai szorzatát számítja ki. +QUOTIENT = QUOTIENT ## Egy hányados egész részét adja eredményül. +RADIANS = RADIÁN ## Fokot radiánná alakít át. +RAND = VÉL ## Egy 0 és 1 közötti véletlen számot ad eredményül. +RANDBETWEEN = RANDBETWEEN ## Megadott számok közé eső véletlen számot állít elő. +ROMAN = RÓMAI ## Egy számot római számokkal kifejezve szövegként ad eredményül. +ROUND = KEREKÍTÉS ## Egy számot adott számú számjegyre kerekít. +ROUNDDOWN = KEREKÍTÉS.LE ## Egy számot lefelé, a nulla felé kerekít. +ROUNDUP = KEREKÍTÉS.FEL ## Egy számot felfelé, a nullától távolabbra kerekít. +SERIESSUM = SERIESSUM ## Hatványsor összegét adja eredményül. +SIGN = ELŐJEL ## Egy szám előjelét adja meg. +SIN = SIN ## Egy szög szinuszát számítja ki. +SINH = SINH ## Egy szám szinusz hiperbolikuszát számítja ki. +SQRT = GYÖK ## Egy szám pozitív négyzetgyökét számítja ki. +SQRTPI = SQRTPI ## A (szám*pi) négyzetgyökét adja eredményül. +SUBTOTAL = RÉSZÖSSZEG ## Lista vagy adatbázis részösszegét adja eredményül. +SUM = SZUM ## Összeadja az argumentumlistájában lévő számokat. +SUMIF = SZUMHA ## A megadott feltételeknek eleget tevő cellákban található értékeket adja össze. +SUMIFS = SZUMHATÖBB ## Több megadott feltételnek eleget tévő tartománycellák összegét adja eredményül. +SUMPRODUCT = SZORZATÖSSZEG ## A megfelelő tömbelemek szorzatának összegét számítja ki. +SUMSQ = NÉGYZETÖSSZEG ## Argumentumai négyzetének összegét számítja ki. +SUMX2MY2 = SZUMX2BŐLY2 ## Két tömb megfelelő elemei négyzetének különbségét összegzi. +SUMX2PY2 = SZUMX2MEGY2 ## Két tömb megfelelő elemei négyzetének összegét összegzi. +SUMXMY2 = SZUMXBŐLY2 ## Két tömb megfelelő elemei különbségének négyzetösszegét számítja ki. +TAN = TAN ## Egy szám tangensét számítja ki. +TANH = TANH ## Egy szám tangens hiperbolikuszát számítja ki. +TRUNC = CSONK ## Egy számot egésszé csonkít. + + +## +## Statistical functions Statisztikai függvények +## +AVEDEV = ÁTL.ELTÉRÉS ## Az adatpontoknak átlaguktól való átlagos abszolút eltérését számítja ki. +AVERAGE = ÁTLAG ## Argumentumai átlagát számítja ki. +AVERAGEA = ÁTLAGA ## Argumentumai átlagát számítja ki (beleértve a számokat, szöveget és logikai értékeket). +AVERAGEIF = ÁTLAGHA ## A megadott feltételnek eleget tévő tartomány celláinak átlagát (számtani közepét) adja eredményül. +AVERAGEIFS = ÁTLAGHATÖBB ## A megadott feltételeknek eleget tévő cellák átlagát (számtani közepét) adja eredményül. +BETADIST = BÉTA.ELOSZLÁS ## A béta-eloszlás függvényt számítja ki. +BETAINV = INVERZ.BÉTA ## Adott béta-eloszláshoz kiszámítja a béta eloszlásfüggvény inverzét. +BINOMDIST = BINOM.ELOSZLÁS ## A diszkrét binomiális eloszlás valószínűségértékét számítja ki. +CHIDIST = KHI.ELOSZLÁS ## A khi-négyzet-eloszlás egyszélű valószínűségértékét számítja ki. +CHIINV = INVERZ.KHI ## A khi-négyzet-eloszlás egyszélű valószínűségértékének inverzét számítja ki. +CHITEST = KHI.PRÓBA ## Függetlenségvizsgálatot hajt végre. +CONFIDENCE = MEGBÍZHATÓSÁG ## Egy statisztikai sokaság várható értékének megbízhatósági intervallumát adja eredményül. +CORREL = KORREL ## Két adathalmaz korrelációs együtthatóját számítja ki. +COUNT = DARAB ## Megszámolja, hogy argumentumlistájában hány szám található. +COUNTA = DARAB2 ## Megszámolja, hogy argumentumlistájában hány érték található. +COUNTBLANK = DARABÜRES ## Egy tartományban összeszámolja az üres cellákat. +COUNTIF = DARABTELI ## Egy tartományban összeszámolja azokat a cellákat, amelyek eleget tesznek a megadott feltételnek. +COUNTIFS = DARABHATÖBB ## Egy tartományban összeszámolja azokat a cellákat, amelyek eleget tesznek több feltételnek. +COVAR = KOVAR ## A kovarianciát, azaz a páronkénti eltérések szorzatának átlagát számítja ki. +CRITBINOM = KRITBINOM ## Azt a legkisebb számot adja eredményül, amelyre a binomiális eloszlásfüggvény értéke nem kisebb egy adott határértéknél. +DEVSQ = SQ ## Az átlagtól való eltérések négyzetének összegét számítja ki. +EXPONDIST = EXP.ELOSZLÁS ## Az exponenciális eloszlás értékét számítja ki. +FDIST = F.ELOSZLÁS ## Az F-eloszlás értékét számítja ki. +FINV = INVERZ.F ## Az F-eloszlás inverzének értékét számítja ki. +FISHER = FISHER ## Fisher-transzformációt hajt végre. +FISHERINV = INVERZ.FISHER ## A Fisher-transzformáció inverzét hajtja végre. +FORECAST = ELŐREJELZÉS ## Az ismert értékek alapján lineáris regresszióval becsült értéket ad eredményül. +FREQUENCY = GYAKORISÁG ## A gyakorisági vagy empirikus eloszlás értékét függőleges tömbként adja eredményül. +FTEST = F.PRÓBA ## Az F-próba értékét adja eredményül. +GAMMADIST = GAMMA.ELOSZLÁS ## A gamma-eloszlás értékét számítja ki. +GAMMAINV = INVERZ.GAMMA ## A gamma-eloszlás eloszlásfüggvénye inverzének értékét számítja ki. +GAMMALN = GAMMALN ## A gamma-függvény természetes logaritmusát számítja ki. +GEOMEAN = MÉRTANI.KÖZÉP ## Argumentumai mértani középértékét számítja ki. +GROWTH = NÖV ## Exponenciális regresszió alapján ad becslést. +HARMEAN = HARM.KÖZÉP ## Argumentumai harmonikus átlagát számítja ki. +HYPGEOMDIST = HIPERGEOM.ELOSZLÁS ## A hipergeometriai eloszlás értékét számítja ki. +INTERCEPT = METSZ ## A regressziós egyenes y tengellyel való metszéspontját határozza meg. +KURT = CSÚCSOSSÁG ## Egy adathalmaz csúcsosságát számítja ki. +LARGE = NAGY ## Egy adathalmaz k-adik legnagyobb elemét adja eredményül. +LINEST = LIN.ILL ## A legkisebb négyzetek módszerével az adatokra illesztett egyenes paramétereit határozza meg. +LOGEST = LOG.ILL ## Az adatokra illesztett exponenciális görbe paramétereit határozza meg. +LOGINV = INVERZ.LOG.ELOSZLÁS ## A lognormális eloszlás inverzét számítja ki. +LOGNORMDIST = LOG.ELOSZLÁS ## A lognormális eloszlásfüggvény értékét számítja ki. +MAX = MAX ## Az argumentumai között szereplő legnagyobb számot adja meg. +MAXA = MAX2 ## Az argumentumai között szereplő legnagyobb számot adja meg (beleértve a számokat, szöveget és logikai értékeket). +MEDIAN = MEDIÁN ## Adott számhalmaz mediánját számítja ki. +MIN = MIN ## Az argumentumai között szereplő legkisebb számot adja meg. +MINA = MIN2 ## Az argumentumai között szereplő legkisebb számot adja meg, beleértve a számokat, szöveget és logikai értékeket. +MODE = MÓDUSZ ## Egy adathalmazból kiválasztja a leggyakrabban előforduló számot. +NEGBINOMDIST = NEGBINOM.ELOSZL ## A negatív binomiális eloszlás értékét számítja ki. +NORMDIST = NORM.ELOSZL ## A normális eloszlás értékét számítja ki. +NORMINV = INVERZ.NORM ## A normális eloszlás eloszlásfüggvénye inverzének értékét számítja ki. +NORMSDIST = STNORMELOSZL ## A standard normális eloszlás eloszlásfüggvényének értékét számítja ki. +NORMSINV = INVERZ.STNORM ## A standard normális eloszlás eloszlásfüggvénye inverzének értékét számítja ki. +PEARSON = PEARSON ## A Pearson-féle korrelációs együtthatót számítja ki. +PERCENTILE = PERCENTILIS ## Egy tartományban található értékek k-adik percentilisét, azaz százalékosztályát adja eredményül. +PERCENTRANK = SZÁZALÉKRANG ## Egy értéknek egy adathalmazon belül vett százalékos rangját (elhelyezkedését) számítja ki. +PERMUT = VARIÁCIÓK ## Adott számú objektum k-ad osztályú ismétlés nélküli variációinak számát számítja ki. +POISSON = POISSON ## A Poisson-eloszlás értékét számítja ki. +PROB = VALÓSZÍNŰSÉG ## Annak valószínűségét számítja ki, hogy adott értékek két határérték közé esnek. +QUARTILE = KVARTILIS ## Egy adathalmaz kvartilisét (negyedszintjét) számítja ki. +RANK = SORSZÁM ## Kiszámítja, hogy egy szám hányadik egy számsorozatban. +RSQ = RNÉGYZET ## Kiszámítja a Pearson-féle szorzatmomentum korrelációs együtthatójának négyzetét. +SKEW = FERDESÉG ## Egy eloszlás ferdeségét határozza meg. +SLOPE = MEREDEKSÉG ## Egy lineáris regressziós egyenes meredekségét számítja ki. +SMALL = KICSI ## Egy adathalmaz k-adik legkisebb elemét adja meg. +STANDARDIZE = NORMALIZÁLÁS ## Normalizált értéket ad eredményül. +STDEV = SZÓRÁS ## Egy statisztikai sokaság mintájából kiszámítja annak szórását. +STDEVA = SZÓRÁSA ## Egy statisztikai sokaság mintájából kiszámítja annak szórását (beleértve a számokat, szöveget és logikai értékeket). +STDEVP = SZÓRÁSP ## Egy statisztikai sokaság egészéből kiszámítja annak szórását. +STDEVPA = SZÓRÁSPA ## Egy statisztikai sokaság egészéből kiszámítja annak szórását (beleértve számokat, szöveget és logikai értékeket). +STEYX = STHIBAYX ## Egy regresszió esetén az egyes x-értékek alapján meghatározott y-értékek standard hibáját számítja ki. +TDIST = T.ELOSZLÁS ## A Student-féle t-eloszlás értékét számítja ki. +TINV = INVERZ.T ## A Student-féle t-eloszlás inverzét számítja ki. +TREND = TREND ## Lineáris trend értékeit számítja ki. +TRIMMEAN = RÉSZÁTLAG ## Egy adathalmaz középső részének átlagát számítja ki. +TTEST = T.PRÓBA ## A Student-féle t-próbához tartozó valószínűséget számítja ki. +VAR = VAR ## Minta alapján becslést ad a varianciára. +VARA = VARA ## Minta alapján becslést ad a varianciára (beleértve számokat, szöveget és logikai értékeket). +VARP = VARP ## Egy statisztikai sokaság varianciáját számítja ki. +VARPA = VARPA ## Egy statisztikai sokaság varianciáját számítja ki (beleértve számokat, szöveget és logikai értékeket). +WEIBULL = WEIBULL ## A Weibull-féle eloszlás értékét számítja ki. +ZTEST = Z.PRÓBA ## Az egyszélű z-próbával kapott valószínűségértéket számítja ki. + + +## +## Text functions Szövegműveletekhez használható függvények +## +ASC = ASC ## Szöveg teljes szélességű (kétbájtos) latin és katakana karaktereit félszélességű (egybájtos) karakterekké alakítja. +BAHTTEXT = BAHTSZÖVEG ## Számot szöveggé alakít a ß (baht) pénznemformátum használatával. +CHAR = KARAKTER ## A kódszámmal meghatározott karaktert adja eredményül. +CLEAN = TISZTÍT ## A szövegből eltávolítja az összes nem nyomtatható karaktert. +CODE = KÓD ## Karaktersorozat első karakterének numerikus kódját adja eredményül. +CONCATENATE = ÖSSZEFŰZ ## Több szövegelemet egyetlen szöveges elemmé fűz össze. +DOLLAR = FORINT ## Számot pénznem formátumú szöveggé alakít át. +EXACT = AZONOS ## Megvizsgálja, hogy két érték azonos-e. +FIND = SZÖVEG.TALÁL ## Karaktersorozatot keres egy másikban (a kis- és nagybetűk megkülönböztetésével). +FINDB = SZÖVEG.TALÁL2 ## Karaktersorozatot keres egy másikban (a kis- és nagybetűk megkülönböztetésével). +FIXED = FIX ## Számot szöveges formátumúra alakít adott számú tizedesjegyre kerekítve. +JIS = JIS ## A félszélességű (egybájtos) latin és a katakana karaktereket teljes szélességű (kétbájtos) karakterekké alakítja. +LEFT = BAL ## Szöveg bal szélső karaktereit adja eredményül. +LEFTB = BAL2 ## Szöveg bal szélső karaktereit adja eredményül. +LEN = HOSSZ ## Szöveg karakterekben mért hosszát adja eredményül. +LENB = HOSSZ2 ## Szöveg karakterekben mért hosszát adja eredményül. +LOWER = KISBETŰ ## Szöveget kisbetűssé alakít át. +MID = KÖZÉP ## A szöveg adott pozíciójától kezdve megadott számú karaktert ad vissza eredményként. +MIDB = KÖZÉP2 ## A szöveg adott pozíciójától kezdve megadott számú karaktert ad vissza eredményként. +PHONETIC = PHONETIC ## Szöveg furigana (fonetikus) karaktereit adja vissza. +PROPER = TNÉV ## Szöveg minden szavának kezdőbetűjét nagybetűsre cseréli. +REPLACE = CSERE ## A szövegen belül karaktereket cserél. +REPLACEB = CSERE2 ## A szövegen belül karaktereket cserél. +REPT = SOKSZOR ## Megadott számú alkalommal megismétel egy szövegrészt. +RIGHT = JOBB ## Szövegrész jobb szélső karaktereit adja eredményül. +RIGHTB = JOBB2 ## Szövegrész jobb szélső karaktereit adja eredményül. +SEARCH = SZÖVEG.KERES ## Karaktersorozatot keres egy másikban (a kis- és nagybetűk között nem tesz különbséget). +SEARCHB = SZÖVEG.KERES2 ## Karaktersorozatot keres egy másikban (a kis- és nagybetűk között nem tesz különbséget). +SUBSTITUTE = HELYETTE ## Szövegben adott karaktereket másikra cserél. +T = T ## Argumentumát szöveggé alakítja át. +TEXT = SZÖVEG ## Számértéket alakít át adott számformátumú szöveggé. +TRIM = TRIM ## A szövegből eltávolítja a szóközöket. +UPPER = NAGYBETŰS ## Szöveget nagybetűssé alakít át. +VALUE = ÉRTÉK ## Szöveget számmá alakít át. diff --git a/admin/helpers/PHPExcel/locale/hu/index.html b/admin/helpers/PHPExcel/locale/hu/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/hu/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/index.html b/admin/helpers/PHPExcel/locale/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/it/config b/admin/helpers/PHPExcel/locale/it/config new file mode 100644 index 00000000..c3afa754 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/it/config @@ -0,0 +1,47 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = € + + +## +## Excel Error Codes (For future use) +## +NULL = #NULLO! +DIV0 = #DIV/0! +VALUE = #VALORE! +REF = #RIF! +NAME = #NOME? +NUM = #NUM! +NA = #N/D diff --git a/admin/helpers/PHPExcel/locale/it/functions b/admin/helpers/PHPExcel/locale/it/functions new file mode 100644 index 00000000..fa290feb --- /dev/null +++ b/admin/helpers/PHPExcel/locale/it/functions @@ -0,0 +1,439 @@ +## +## PHPExcel +## + +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Calculation +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ +## +## + + +## +## Add-in and Automation functions Funzioni di automazione e dei componenti aggiuntivi +## +GETPIVOTDATA = INFO.DATI.TAB.PIVOT ## Restituisce i dati memorizzati in un rapporto di tabella pivot + + +## +## Cube functions Funzioni cubo +## +CUBEKPIMEMBER = MEMBRO.KPI.CUBO ## Restituisce il nome, la proprietà e la misura di un indicatore di prestazioni chiave (KPI) e visualizza il nome e la proprietà nella cella. Un KPI è una misura quantificabile, ad esempio l'utile lordo mensile o il fatturato trimestrale dei dipendenti, utilizzata per il monitoraggio delle prestazioni di un'organizzazione. +CUBEMEMBER = MEMBRO.CUBO ## Restituisce un membro o una tupla in una gerarchia di cubi. Consente di verificare l'esistenza del membro o della tupla nel cubo. +CUBEMEMBERPROPERTY = PROPRIETÀ.MEMBRO.CUBO ## Restituisce il valore di una proprietà di un membro del cubo. Consente di verificare l'esistenza di un nome di membro all'interno del cubo e di restituire la proprietà specificata per tale membro. +CUBERANKEDMEMBER = MEMBRO.CUBO.CON.RANGO ## Restituisce l'n-esimo membro o il membro ordinato di un insieme. Consente di restituire uno o più elementi in un insieme, ad esempio l'agente di vendita migliore o i primi 10 studenti. +CUBESET = SET.CUBO ## Definisce un insieme di tuple o membri calcolati mediante l'invio di un'espressione di insieme al cubo sul server. In questo modo l'insieme viene creato e restituito a Microsoft Office Excel. +CUBESETCOUNT = CONTA.SET.CUBO ## Restituisce il numero di elementi di un insieme. +CUBEVALUE = VALORE.CUBO ## Restituisce un valore aggregato da un cubo. + + +## +## Database functions Funzioni di database +## +DAVERAGE = DB.MEDIA ## Restituisce la media di voci del database selezionate +DCOUNT = DB.CONTA.NUMERI ## Conta le celle di un database contenenti numeri +DCOUNTA = DB.CONTA.VALORI ## Conta le celle non vuote in un database +DGET = DB.VALORI ## Estrae da un database un singolo record che soddisfa i criteri specificati +DMAX = DB.MAX ## Restituisce il valore massimo dalle voci selezionate in un database +DMIN = DB.MIN ## Restituisce il valore minimo dalle voci di un database selezionate +DPRODUCT = DB.PRODOTTO ## Moltiplica i valori in un determinato campo di record che soddisfano i criteri del database +DSTDEV = DB.DEV.ST ## Restituisce una stima della deviazione standard sulla base di un campione di voci di un database selezionate +DSTDEVP = DB.DEV.ST.POP ## Calcola la deviazione standard sulla base di tutte le voci di un database selezionate +DSUM = DB.SOMMA ## Aggiunge i numeri nel campo colonna di record del database che soddisfa determinati criteri +DVAR = DB.VAR ## Restituisce una stima della varianza sulla base di un campione da voci di un database selezionate +DVARP = DB.VAR.POP ## Calcola la varianza sulla base di tutte le voci di un database selezionate + + +## +## Date and time functions Funzioni data e ora +## +DATE = DATA ## Restituisce il numero seriale di una determinata data +DATEVALUE = DATA.VALORE ## Converte una data sotto forma di testo in un numero seriale +DAY = GIORNO ## Converte un numero seriale in un giorno del mese +DAYS360 = GIORNO360 ## Calcola il numero di giorni compreso tra due date basandosi su un anno di 360 giorni +EDATE = DATA.MESE ## Restituisce il numero seriale della data che rappresenta il numero di mesi prima o dopo la data di inizio +EOMONTH = FINE.MESE ## Restituisce il numero seriale dell'ultimo giorno del mese, prima o dopo un determinato numero di mesi +HOUR = ORA ## Converte un numero seriale in un'ora +MINUTE = MINUTO ## Converte un numero seriale in un minuto +MONTH = MESE ## Converte un numero seriale in un mese +NETWORKDAYS = GIORNI.LAVORATIVI.TOT ## Restituisce il numero di tutti i giorni lavorativi compresi fra due date +NOW = ADESSO ## Restituisce il numero seriale della data e dell'ora corrente +SECOND = SECONDO ## Converte un numero seriale in un secondo +TIME = ORARIO ## Restituisce il numero seriale di una determinata ora +TIMEVALUE = ORARIO.VALORE ## Converte un orario in forma di testo in un numero seriale +TODAY = OGGI ## Restituisce il numero seriale relativo alla data odierna +WEEKDAY = GIORNO.SETTIMANA ## Converte un numero seriale in un giorno della settimana +WEEKNUM = NUM.SETTIMANA ## Converte un numero seriale in un numero che rappresenta la posizione numerica di una settimana nell'anno +WORKDAY = GIORNO.LAVORATIVO ## Restituisce il numero della data prima o dopo un determinato numero di giorni lavorativi +YEAR = ANNO ## Converte un numero seriale in un anno +YEARFRAC = FRAZIONE.ANNO ## Restituisce la frazione dell'anno che rappresenta il numero dei giorni compresi tra una data_ iniziale e una data_finale + + +## +## Engineering functions Funzioni ingegneristiche +## +BESSELI = BESSEL.I ## Restituisce la funzione di Bessel modificata In(x) +BESSELJ = BESSEL.J ## Restituisce la funzione di Bessel Jn(x) +BESSELK = BESSEL.K ## Restituisce la funzione di Bessel modificata Kn(x) +BESSELY = BESSEL.Y ## Restituisce la funzione di Bessel Yn(x) +BIN2DEC = BINARIO.DECIMALE ## Converte un numero binario in decimale +BIN2HEX = BINARIO.HEX ## Converte un numero binario in esadecimale +BIN2OCT = BINARIO.OCT ## Converte un numero binario in ottale +COMPLEX = COMPLESSO ## Converte i coefficienti reali e immaginari in numeri complessi +CONVERT = CONVERTI ## Converte un numero da un sistema di misura in un altro +DEC2BIN = DECIMALE.BINARIO ## Converte un numero decimale in binario +DEC2HEX = DECIMALE.HEX ## Converte un numero decimale in esadecimale +DEC2OCT = DECIMALE.OCT ## Converte un numero decimale in ottale +DELTA = DELTA ## Verifica se due valori sono uguali +ERF = FUNZ.ERRORE ## Restituisce la funzione di errore +ERFC = FUNZ.ERRORE.COMP ## Restituisce la funzione di errore complementare +GESTEP = SOGLIA ## Verifica se un numero è maggiore del valore di soglia +HEX2BIN = HEX.BINARIO ## Converte un numero esadecimale in binario +HEX2DEC = HEX.DECIMALE ## Converte un numero esadecimale in decimale +HEX2OCT = HEX.OCT ## Converte un numero esadecimale in ottale +IMABS = COMP.MODULO ## Restituisce il valore assoluto (modulo) di un numero complesso +IMAGINARY = COMP.IMMAGINARIO ## Restituisce il coefficiente immaginario di un numero complesso +IMARGUMENT = COMP.ARGOMENTO ## Restituisce l'argomento theta, un angolo espresso in radianti +IMCONJUGATE = COMP.CONIUGATO ## Restituisce il complesso coniugato del numero complesso +IMCOS = COMP.COS ## Restituisce il coseno di un numero complesso +IMDIV = COMP.DIV ## Restituisce il quoziente di due numeri complessi +IMEXP = COMP.EXP ## Restituisce il valore esponenziale di un numero complesso +IMLN = COMP.LN ## Restituisce il logaritmo naturale di un numero complesso +IMLOG10 = COMP.LOG10 ## Restituisce il logaritmo in base 10 di un numero complesso +IMLOG2 = COMP.LOG2 ## Restituisce un logaritmo in base 2 di un numero complesso +IMPOWER = COMP.POTENZA ## Restituisce il numero complesso elevato a una potenza intera +IMPRODUCT = COMP.PRODOTTO ## Restituisce il prodotto di numeri complessi compresi tra 2 e 29 +IMREAL = COMP.PARTE.REALE ## Restituisce il coefficiente reale di un numero complesso +IMSIN = COMP.SEN ## Restituisce il seno di un numero complesso +IMSQRT = COMP.RADQ ## Restituisce la radice quadrata di un numero complesso +IMSUB = COMP.DIFF ## Restituisce la differenza fra due numeri complessi +IMSUM = COMP.SOMMA ## Restituisce la somma di numeri complessi +OCT2BIN = OCT.BINARIO ## Converte un numero ottale in binario +OCT2DEC = OCT.DECIMALE ## Converte un numero ottale in decimale +OCT2HEX = OCT.HEX ## Converte un numero ottale in esadecimale + + +## +## Financial functions Funzioni finanziarie +## +ACCRINT = INT.MATURATO.PER ## Restituisce l'interesse maturato di un titolo che paga interessi periodici +ACCRINTM = INT.MATURATO.SCAD ## Restituisce l'interesse maturato di un titolo che paga interessi alla scadenza +AMORDEGRC = AMMORT.DEGR ## Restituisce l'ammortamento per ogni periodo contabile utilizzando un coefficiente di ammortamento +AMORLINC = AMMORT.PER ## Restituisce l'ammortamento per ogni periodo contabile +COUPDAYBS = GIORNI.CED.INIZ.LIQ ## Restituisce il numero dei giorni che vanno dall'inizio del periodo di durata della cedola alla data di liquidazione +COUPDAYS = GIORNI.CED ## Restituisce il numero dei giorni relativi al periodo della cedola che contiene la data di liquidazione +COUPDAYSNC = GIORNI.CED.NUOVA ## Restituisce il numero di giorni che vanno dalla data di liquidazione alla data della cedola successiva +COUPNCD = DATA.CED.SUCC ## Restituisce un numero che rappresenta la data della cedola successiva alla data di liquidazione +COUPNUM = NUM.CED ## Restituisce il numero di cedole pagabili fra la data di liquidazione e la data di scadenza +COUPPCD = DATA.CED.PREC ## Restituisce un numero che rappresenta la data della cedola precedente alla data di liquidazione +CUMIPMT = INT.CUMUL ## Restituisce l'interesse cumulativo pagato fra due periodi +CUMPRINC = CAP.CUM ## Restituisce il capitale cumulativo pagato per estinguere un debito fra due periodi +DB = DB ## Restituisce l'ammortamento di un bene per un periodo specificato utilizzando il metodo di ammortamento a quote fisse decrescenti +DDB = AMMORT ## Restituisce l'ammortamento di un bene per un periodo specificato utilizzando il metodo di ammortamento a doppie quote decrescenti o altri metodi specificati +DISC = TASSO.SCONTO ## Restituisce il tasso di sconto per un titolo +DOLLARDE = VALUTA.DEC ## Converte un prezzo valuta, espresso come frazione, in prezzo valuta, espresso come numero decimale +DOLLARFR = VALUTA.FRAZ ## Converte un prezzo valuta, espresso come numero decimale, in prezzo valuta, espresso come frazione +DURATION = DURATA ## Restituisce la durata annuale di un titolo con i pagamenti di interesse periodico +EFFECT = EFFETTIVO ## Restituisce l'effettivo tasso di interesse annuo +FV = VAL.FUT ## Restituisce il valore futuro di un investimento +FVSCHEDULE = VAL.FUT.CAPITALE ## Restituisce il valore futuro di un capitale iniziale dopo aver applicato una serie di tassi di interesse composti +INTRATE = TASSO.INT ## Restituisce il tasso di interesse per un titolo interamente investito +IPMT = INTERESSI ## Restituisce il valore degli interessi per un investimento relativo a un periodo specifico +IRR = TIR.COST ## Restituisce il tasso di rendimento interno per una serie di flussi di cassa +ISPMT = INTERESSE.RATA ## Calcola l'interesse di un investimento pagato durante un periodo specifico +MDURATION = DURATA.M ## Restituisce la durata Macauley modificata per un titolo con un valore presunto di € 100 +MIRR = TIR.VAR ## Restituisce il tasso di rendimento interno in cui i flussi di cassa positivi e negativi sono finanziati a tassi differenti +NOMINAL = NOMINALE ## Restituisce il tasso di interesse nominale annuale +NPER = NUM.RATE ## Restituisce un numero di periodi relativi a un investimento +NPV = VAN ## Restituisce il valore attuale netto di un investimento basato su una serie di flussi di cassa periodici e sul tasso di sconto +ODDFPRICE = PREZZO.PRIMO.IRR ## Restituisce il prezzo di un titolo dal valore nominale di € 100 avente il primo periodo di durata irregolare +ODDFYIELD = REND.PRIMO.IRR ## Restituisce il rendimento di un titolo avente il primo periodo di durata irregolare +ODDLPRICE = PREZZO.ULTIMO.IRR ## Restituisce il prezzo di un titolo dal valore nominale di € 100 avente l'ultimo periodo di durata irregolare +ODDLYIELD = REND.ULTIMO.IRR ## Restituisce il rendimento di un titolo avente l'ultimo periodo di durata irregolare +PMT = RATA ## Restituisce il pagamento periodico di una rendita annua +PPMT = P.RATA ## Restituisce il pagamento sul capitale di un investimento per un dato periodo +PRICE = PREZZO ## Restituisce il prezzo di un titolo dal valore nominale di € 100 che paga interessi periodici +PRICEDISC = PREZZO.SCONT ## Restituisce il prezzo di un titolo scontato dal valore nominale di € 100 +PRICEMAT = PREZZO.SCAD ## Restituisce il prezzo di un titolo dal valore nominale di € 100 che paga gli interessi alla scadenza +PV = VA ## Restituisce il valore attuale di un investimento +RATE = TASSO ## Restituisce il tasso di interesse per un periodo di un'annualità +RECEIVED = RICEV.SCAD ## Restituisce l'ammontare ricevuto alla scadenza di un titolo interamente investito +SLN = AMMORT.COST ## Restituisce l'ammortamento a quote costanti di un bene per un singolo periodo +SYD = AMMORT.ANNUO ## Restituisce l'ammortamento a somma degli anni di un bene per un periodo specificato +TBILLEQ = BOT.EQUIV ## Restituisce il rendimento equivalente ad un'obbligazione per un Buono ordinario del Tesoro +TBILLPRICE = BOT.PREZZO ## Restituisce il prezzo di un Buono del Tesoro dal valore nominale di € 100 +TBILLYIELD = BOT.REND ## Restituisce il rendimento di un Buono del Tesoro +VDB = AMMORT.VAR ## Restituisce l'ammortamento di un bene per un periodo specificato o parziale utilizzando il metodo a doppie quote proporzionali ai valori residui +XIRR = TIR.X ## Restituisce il tasso di rendimento interno di un impiego di flussi di cassa +XNPV = VAN.X ## Restituisce il valore attuale netto di un impiego di flussi di cassa non necessariamente periodici +YIELD = REND ## Restituisce il rendimento di un titolo che frutta interessi periodici +YIELDDISC = REND.TITOLI.SCONT ## Restituisce il rendimento annuale di un titolo scontato, ad esempio un Buono del Tesoro +YIELDMAT = REND.SCAD ## Restituisce il rendimento annuo di un titolo che paga interessi alla scadenza + + +## +## Information functions Funzioni relative alle informazioni +## +CELL = CELLA ## Restituisce le informazioni sulla formattazione, la posizione o i contenuti di una cella +ERROR.TYPE = ERRORE.TIPO ## Restituisce un numero che corrisponde a un tipo di errore +INFO = INFO ## Restituisce le informazioni sull'ambiente operativo corrente +ISBLANK = VAL.VUOTO ## Restituisce VERO se il valore è vuoto +ISERR = VAL.ERR ## Restituisce VERO se il valore è un valore di errore qualsiasi tranne #N/D +ISERROR = VAL.ERRORE ## Restituisce VERO se il valore è un valore di errore qualsiasi +ISEVEN = VAL.PARI ## Restituisce VERO se il numero è pari +ISLOGICAL = VAL.LOGICO ## Restituisce VERO se il valore è un valore logico +ISNA = VAL.NON.DISP ## Restituisce VERO se il valore è un valore di errore #N/D +ISNONTEXT = VAL.NON.TESTO ## Restituisce VERO se il valore non è in formato testo +ISNUMBER = VAL.NUMERO ## Restituisce VERO se il valore è un numero +ISODD = VAL.DISPARI ## Restituisce VERO se il numero è dispari +ISREF = VAL.RIF ## Restituisce VERO se il valore è un riferimento +ISTEXT = VAL.TESTO ## Restituisce VERO se il valore è in formato testo +N = NUM ## Restituisce un valore convertito in numero +NA = NON.DISP ## Restituisce il valore di errore #N/D +TYPE = TIPO ## Restituisce un numero che indica il tipo di dati relativi a un valore + + +## +## Logical functions Funzioni logiche +## +AND = E ## Restituisce VERO se tutti gli argomenti sono VERO +FALSE = FALSO ## Restituisce il valore logico FALSO +IF = SE ## Specifica un test logico da eseguire +IFERROR = SE.ERRORE ## Restituisce un valore specificato se una formula fornisce un errore come risultato; in caso contrario, restituisce il risultato della formula +NOT = NON ## Inverte la logica degli argomenti +OR = O ## Restituisce VERO se un argomento qualsiasi è VERO +TRUE = VERO ## Restituisce il valore logico VERO + + +## +## Lookup and reference functions Funzioni di ricerca e di riferimento +## +ADDRESS = INDIRIZZO ## Restituisce un riferimento come testo in una singola cella di un foglio di lavoro +AREAS = AREE ## Restituisce il numero di aree in un riferimento +CHOOSE = SCEGLI ## Sceglie un valore da un elenco di valori +COLUMN = RIF.COLONNA ## Restituisce il numero di colonna di un riferimento +COLUMNS = COLONNE ## Restituisce il numero di colonne in un riferimento +HLOOKUP = CERCA.ORIZZ ## Effettua una ricerca nella riga superiore di una matrice e restituisce il valore della cella specificata +HYPERLINK = COLLEG.IPERTESTUALE ## Crea un collegamento che apre un documento memorizzato in un server di rete, una rete Intranet o Internet +INDEX = INDICE ## Utilizza un indice per scegliere un valore da un riferimento o da una matrice +INDIRECT = INDIRETTO ## Restituisce un riferimento specificato da un valore testo +LOOKUP = CERCA ## Ricerca i valori in un vettore o in una matrice +MATCH = CONFRONTA ## Ricerca i valori in un riferimento o in una matrice +OFFSET = SCARTO ## Restituisce uno scarto di riferimento da un riferimento dato +ROW = RIF.RIGA ## Restituisce il numero di riga di un riferimento +ROWS = RIGHE ## Restituisce il numero delle righe in un riferimento +RTD = DATFIELDPOREALE ## Recupera dati in tempo reale da un programma che supporta l'automazione COM (automazione: Metodo per utilizzare gli oggetti di un'applicazione da un'altra applicazione o da un altro strumento di sviluppo. Precedentemente nota come automazione OLE, l'automazione è uno standard del settore e una caratteristica del modello COM (Component Object Model).) +TRANSPOSE = MATR.TRASPOSTA ## Restituisce la trasposizione di una matrice +VLOOKUP = CERCA.VERT ## Effettua una ricerca nella prima colonna di una matrice e si sposta attraverso la riga per restituire il valore di una cella + + +## +## Math and trigonometry functions Funzioni matematiche e trigonometriche +## +ABS = ASS ## Restituisce il valore assoluto di un numero. +ACOS = ARCCOS ## Restituisce l'arcocoseno di un numero +ACOSH = ARCCOSH ## Restituisce l'inverso del coseno iperbolico di un numero +ASIN = ARCSEN ## Restituisce l'arcoseno di un numero +ASINH = ARCSENH ## Restituisce l'inverso del seno iperbolico di un numero +ATAN = ARCTAN ## Restituisce l'arcotangente di un numero +ATAN2 = ARCTAN.2 ## Restituisce l'arcotangente delle coordinate x e y specificate +ATANH = ARCTANH ## Restituisce l'inverso della tangente iperbolica di un numero +CEILING = ARROTONDA.ECCESSO ## Arrotonda un numero per eccesso all'intero più vicino o al multiplo più vicino a peso +COMBIN = COMBINAZIONE ## Restituisce il numero di combinazioni possibili per un numero assegnato di elementi +COS = COS ## Restituisce il coseno dell'angolo specificato +COSH = COSH ## Restituisce il coseno iperbolico di un numero +DEGREES = GRADI ## Converte i radianti in gradi +EVEN = PARI ## Arrotonda il valore assoluto di un numero per eccesso al più vicino intero pari +EXP = ESP ## Restituisce il numero e elevato alla potenza di num +FACT = FATTORIALE ## Restituisce il fattoriale di un numero +FACTDOUBLE = FATT.DOPPIO ## Restituisce il fattoriale doppio di un numero +FLOOR = ARROTONDA.DIFETTO ## Arrotonda un numero per difetto al multiplo più vicino a zero +GCD = MCD ## Restituisce il massimo comune divisore +INT = INT ## Arrotonda un numero per difetto al numero intero più vicino +LCM = MCM ## Restituisce il minimo comune multiplo +LN = LN ## Restituisce il logaritmo naturale di un numero +LOG = LOG ## Restituisce il logaritmo di un numero in una specificata base +LOG10 = LOG10 ## Restituisce il logaritmo in base 10 di un numero +MDETERM = MATR.DETERM ## Restituisce il determinante di una matrice +MINVERSE = MATR.INVERSA ## Restituisce l'inverso di una matrice +MMULT = MATR.PRODOTTO ## Restituisce il prodotto di due matrici +MOD = RESTO ## Restituisce il resto della divisione +MROUND = ARROTONDA.MULTIPLO ## Restituisce un numero arrotondato al multiplo desiderato +MULTINOMIAL = MULTINOMIALE ## Restituisce il multinomiale di un insieme di numeri +ODD = DISPARI ## Arrotonda un numero per eccesso al più vicino intero dispari +PI = PI.GRECO ## Restituisce il valore di pi greco +POWER = POTENZA ## Restituisce il risultato di un numero elevato a potenza +PRODUCT = PRODOTTO ## Moltiplica i suoi argomenti +QUOTIENT = QUOZIENTE ## Restituisce la parte intera di una divisione +RADIANS = RADIANTI ## Converte i gradi in radianti +RAND = CASUALE ## Restituisce un numero casuale compreso tra 0 e 1 +RANDBETWEEN = CASUALE.TRA ## Restituisce un numero casuale compreso tra i numeri specificati +ROMAN = ROMANO ## Restituisce il numero come numero romano sotto forma di testo +ROUND = ARROTONDA ## Arrotonda il numero al numero di cifre specificato +ROUNDDOWN = ARROTONDA.PER.DIF ## Arrotonda il valore assoluto di un numero per difetto +ROUNDUP = ARROTONDA.PER.ECC ## Arrotonda il valore assoluto di un numero per eccesso +SERIESSUM = SOMMA.SERIE ## Restituisce la somma di una serie di potenze in base alla formula +SIGN = SEGNO ## Restituisce il segno di un numero +SIN = SEN ## Restituisce il seno di un dato angolo +SINH = SENH ## Restituisce il seno iperbolico di un numero +SQRT = RADQ ## Restituisce una radice quadrata +SQRTPI = RADQ.PI.GRECO ## Restituisce la radice quadrata di un numero (numero * pi greco) +SUBTOTAL = SUBTOTALE ## Restituisce un subtotale in un elenco o in un database +SUM = SOMMA ## Somma i suoi argomenti +SUMIF = SOMMA.SE ## Somma le celle specificate da un dato criterio +SUMIFS = SOMMA.PIÙ.SE ## Somma le celle in un intervallo che soddisfano più criteri +SUMPRODUCT = MATR.SOMMA.PRODOTTO ## Restituisce la somma dei prodotti dei componenti corrispondenti della matrice +SUMSQ = SOMMA.Q ## Restituisce la somma dei quadrati degli argomenti +SUMX2MY2 = SOMMA.DIFF.Q ## Restituisce la somma della differenza dei quadrati dei corrispondenti elementi in due matrici +SUMX2PY2 = SOMMA.SOMMA.Q ## Restituisce la somma della somma dei quadrati dei corrispondenti elementi in due matrici +SUMXMY2 = SOMMA.Q.DIFF ## Restituisce la somma dei quadrati delle differenze dei corrispondenti elementi in due matrici +TAN = TAN ## Restituisce la tangente di un numero +TANH = TANH ## Restituisce la tangente iperbolica di un numero +TRUNC = TRONCA ## Tronca la parte decimale di un numero + + +## +## Statistical functions Funzioni statistiche +## +AVEDEV = MEDIA.DEV ## Restituisce la media delle deviazioni assolute delle coordinate rispetto alla loro media +AVERAGE = MEDIA ## Restituisce la media degli argomenti +AVERAGEA = MEDIA.VALORI ## Restituisce la media degli argomenti, inclusi i numeri, il testo e i valori logici +AVERAGEIF = MEDIA.SE ## Restituisce la media aritmetica di tutte le celle in un intervallo che soddisfano un determinato criterio +AVERAGEIFS = MEDIA.PIÙ.SE ## Restituisce la media aritmetica di tutte le celle che soddisfano più criteri +BETADIST = DISTRIB.BETA ## Restituisce la funzione di distribuzione cumulativa beta +BETAINV = INV.BETA ## Restituisce l'inverso della funzione di distribuzione cumulativa per una distribuzione beta specificata +BINOMDIST = DISTRIB.BINOM ## Restituisce la distribuzione binomiale per il termine individuale +CHIDIST = DISTRIB.CHI ## Restituisce la probabilità a una coda per la distribuzione del chi quadrato +CHIINV = INV.CHI ## Restituisce l'inverso della probabilità ad una coda per la distribuzione del chi quadrato +CHITEST = TEST.CHI ## Restituisce il test per l'indipendenza +CONFIDENCE = CONFIDENZA ## Restituisce l'intervallo di confidenza per una popolazione +CORREL = CORRELAZIONE ## Restituisce il coefficiente di correlazione tra due insiemi di dati +COUNT = CONTA.NUMERI ## Conta la quantità di numeri nell'elenco di argomenti +COUNTA = CONTA.VALORI ## Conta il numero di valori nell'elenco di argomenti +COUNTBLANK = CONTA.VUOTE ## Conta il numero di celle vuote all'interno di un intervallo +COUNTIF = CONTA.SE ## Conta il numero di celle all'interno di un intervallo che soddisfa i criteri specificati +COUNTIFS = CONTA.PIÙ.SE ## Conta il numero di celle in un intervallo che soddisfano più criteri. +COVAR = COVARIANZA ## Calcola la covarianza, la media dei prodotti delle deviazioni accoppiate +CRITBINOM = CRIT.BINOM ## Restituisce il più piccolo valore per il quale la distribuzione cumulativa binomiale risulta maggiore o uguale ad un valore di criterio +DEVSQ = DEV.Q ## Restituisce la somma dei quadrati delle deviazioni +EXPONDIST = DISTRIB.EXP ## Restituisce la distribuzione esponenziale +FDIST = DISTRIB.F ## Restituisce la distribuzione di probabilità F +FINV = INV.F ## Restituisce l'inverso della distribuzione della probabilità F +FISHER = FISHER ## Restituisce la trasformazione di Fisher +FISHERINV = INV.FISHER ## Restituisce l'inverso della trasformazione di Fisher +FORECAST = PREVISIONE ## Restituisce i valori lungo una tendenza lineare +FREQUENCY = FREQUENZA ## Restituisce la distribuzione di frequenza come matrice verticale +FTEST = TEST.F ## Restituisce il risultato di un test F +GAMMADIST = DISTRIB.GAMMA ## Restituisce la distribuzione gamma +GAMMAINV = INV.GAMMA ## Restituisce l'inverso della distribuzione cumulativa gamma +GAMMALN = LN.GAMMA ## Restituisce il logaritmo naturale della funzione gamma, G(x) +GEOMEAN = MEDIA.GEOMETRICA ## Restituisce la media geometrica +GROWTH = CRESCITA ## Restituisce i valori lungo una linea di tendenza esponenziale +HARMEAN = MEDIA.ARMONICA ## Restituisce la media armonica +HYPGEOMDIST = DISTRIB.IPERGEOM ## Restituisce la distribuzione ipergeometrica +INTERCEPT = INTERCETTA ## Restituisce l'intercetta della retta di regressione lineare +KURT = CURTOSI ## Restituisce la curtosi di un insieme di dati +LARGE = GRANDE ## Restituisce il k-esimo valore più grande in un insieme di dati +LINEST = REGR.LIN ## Restituisce i parametri di una tendenza lineare +LOGEST = REGR.LOG ## Restituisce i parametri di una linea di tendenza esponenziale +LOGINV = INV.LOGNORM ## Restituisce l'inverso di una distribuzione lognormale +LOGNORMDIST = DISTRIB.LOGNORM ## Restituisce la distribuzione lognormale cumulativa +MAX = MAX ## Restituisce il valore massimo in un elenco di argomenti +MAXA = MAX.VALORI ## Restituisce il valore massimo in un elenco di argomenti, inclusi i numeri, il testo e i valori logici +MEDIAN = MEDIANA ## Restituisce la mediana dei numeri specificati +MIN = MIN ## Restituisce il valore minimo in un elenco di argomenti +MINA = MIN.VALORI ## Restituisce il più piccolo valore in un elenco di argomenti, inclusi i numeri, il testo e i valori logici +MODE = MODA ## Restituisce il valore più comune in un insieme di dati +NEGBINOMDIST = DISTRIB.BINOM.NEG ## Restituisce la distribuzione binomiale negativa +NORMDIST = DISTRIB.NORM ## Restituisce la distribuzione cumulativa normale +NORMINV = INV.NORM ## Restituisce l'inverso della distribuzione cumulativa normale standard +NORMSDIST = DISTRIB.NORM.ST ## Restituisce la distribuzione cumulativa normale standard +NORMSINV = INV.NORM.ST ## Restituisce l'inverso della distribuzione cumulativa normale +PEARSON = PEARSON ## Restituisce il coefficiente del momento di correlazione di Pearson +PERCENTILE = PERCENTILE ## Restituisce il k-esimo dato percentile di valori in un intervallo +PERCENTRANK = PERCENT.RANGO ## Restituisce il rango di un valore in un insieme di dati come percentuale +PERMUT = PERMUTAZIONE ## Restituisce il numero delle permutazioni per un determinato numero di oggetti +POISSON = POISSON ## Restituisce la distribuzione di Poisson +PROB = PROBABILITÀ ## Calcola la probabilità che dei valori in un intervallo siano compresi tra due limiti +QUARTILE = QUARTILE ## Restituisce il quartile di un insieme di dati +RANK = RANGO ## Restituisce il rango di un numero in un elenco di numeri +RSQ = RQ ## Restituisce la radice quadrata del coefficiente di momento di correlazione di Pearson +SKEW = ASIMMETRIA ## Restituisce il grado di asimmetria di una distribuzione +SLOPE = PENDENZA ## Restituisce la pendenza di una retta di regressione lineare +SMALL = PICCOLO ## Restituisce il k-esimo valore più piccolo in un insieme di dati +STANDARDIZE = NORMALIZZA ## Restituisce un valore normalizzato +STDEV = DEV.ST ## Restituisce una stima della deviazione standard sulla base di un campione +STDEVA = DEV.ST.VALORI ## Restituisce una stima della deviazione standard sulla base di un campione, inclusi i numeri, il testo e i valori logici +STDEVP = DEV.ST.POP ## Calcola la deviazione standard sulla base di un'intera popolazione +STDEVPA = DEV.ST.POP.VALORI ## Calcola la deviazione standard sulla base sull'intera popolazione, inclusi i numeri, il testo e i valori logici +STEYX = ERR.STD.YX ## Restituisce l'errore standard del valore previsto per y per ogni valore x nella regressione +TDIST = DISTRIB.T ## Restituisce la distribuzione t di Student +TINV = INV.T ## Restituisce l'inversa della distribuzione t di Student +TREND = TENDENZA ## Restituisce i valori lungo una linea di tendenza lineare +TRIMMEAN = MEDIA.TRONCATA ## Restituisce la media della parte interna di un insieme di dati +TTEST = TEST.T ## Restituisce la probabilità associata ad un test t di Student +VAR = VAR ## Stima la varianza sulla base di un campione +VARA = VAR.VALORI ## Stima la varianza sulla base di un campione, inclusi i numeri, il testo e i valori logici +VARP = VAR.POP ## Calcola la varianza sulla base dell'intera popolazione +VARPA = VAR.POP.VALORI ## Calcola la deviazione standard sulla base sull'intera popolazione, inclusi i numeri, il testo e i valori logici +WEIBULL = WEIBULL ## Restituisce la distribuzione di Weibull +ZTEST = TEST.Z ## Restituisce il valore di probabilità a una coda per un test z + + +## +## Text functions Funzioni di testo +## +ASC = ASC ## Modifica le lettere inglesi o il katakana a doppio byte all'interno di una stringa di caratteri in caratteri a singolo byte +BAHTTEXT = BAHTTESTO ## Converte un numero in testo, utilizzando il formato valuta ß (baht) +CHAR = CODICE.CARATT ## Restituisce il carattere specificato dal numero di codice +CLEAN = LIBERA ## Elimina dal testo tutti i caratteri che non è possibile stampare +CODE = CODICE ## Restituisce il codice numerico del primo carattere di una stringa di testo +CONCATENATE = CONCATENA ## Unisce diversi elementi di testo in un unico elemento di testo +DOLLAR = VALUTA ## Converte un numero in testo, utilizzando il formato valuta € (euro) +EXACT = IDENTICO ## Verifica se due valori di testo sono uguali +FIND = TROVA ## Rileva un valore di testo all'interno di un altro (distinzione tra maiuscole e minuscole) +FINDB = TROVA.B ## Rileva un valore di testo all'interno di un altro (distinzione tra maiuscole e minuscole) +FIXED = FISSO ## Formatta un numero come testo con un numero fisso di decimali +JIS = ORDINAMENTO.JIS ## Modifica le lettere inglesi o i caratteri katakana a byte singolo all'interno di una stringa di caratteri in caratteri a byte doppio. +LEFT = SINISTRA ## Restituisce il carattere più a sinistra di un valore di testo +LEFTB = SINISTRA.B ## Restituisce il carattere più a sinistra di un valore di testo +LEN = LUNGHEZZA ## Restituisce il numero di caratteri di una stringa di testo +LENB = LUNB ## Restituisce il numero di caratteri di una stringa di testo +LOWER = MINUSC ## Converte il testo in lettere minuscole +MID = MEDIA ## Restituisce un numero specifico di caratteri di una stringa di testo a partire dalla posizione specificata +MIDB = MEDIA.B ## Restituisce un numero specifico di caratteri di una stringa di testo a partire dalla posizione specificata +PHONETIC = FURIGANA ## Estrae i caratteri fonetici (furigana) da una stringa di testo. +PROPER = MAIUSC.INIZ ## Converte in maiuscolo la prima lettera di ogni parola di un valore di testo +REPLACE = RIMPIAZZA ## Sostituisce i caratteri all'interno di un testo +REPLACEB = SOSTITUISCI.B ## Sostituisce i caratteri all'interno di un testo +REPT = RIPETI ## Ripete un testo per un dato numero di volte +RIGHT = DESTRA ## Restituisce il carattere più a destra di un valore di testo +RIGHTB = DESTRA.B ## Restituisce il carattere più a destra di un valore di testo +SEARCH = RICERCA ## Rileva un valore di testo all'interno di un altro (non è sensibile alle maiuscole e minuscole) +SEARCHB = CERCA.B ## Rileva un valore di testo all'interno di un altro (non è sensibile alle maiuscole e minuscole) +SUBSTITUTE = SOSTITUISCI ## Sostituisce il nuovo testo al testo contenuto in una stringa +T = T ## Converte gli argomenti in testo +TEXT = TESTO ## Formatta un numero e lo converte in testo +TRIM = ANNULLA.SPAZI ## Elimina gli spazi dal testo +UPPER = MAIUSC ## Converte il testo in lettere maiuscole +VALUE = VALORE ## Converte un argomento di testo in numero diff --git a/admin/helpers/PHPExcel/locale/it/index.html b/admin/helpers/PHPExcel/locale/it/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/it/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/nl/config b/admin/helpers/PHPExcel/locale/nl/config new file mode 100644 index 00000000..48dcc15b --- /dev/null +++ b/admin/helpers/PHPExcel/locale/nl/config @@ -0,0 +1,47 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = € + + +## +## Excel Error Codes (For future use) +## +NULL = #LEEG! +DIV0 = #DEEL/0! +VALUE = #WAARDE! +REF = #VERW! +NAME = #NAAM? +NUM = #GETAL! +NA = #N/B diff --git a/admin/helpers/PHPExcel/locale/nl/functions b/admin/helpers/PHPExcel/locale/nl/functions new file mode 100644 index 00000000..573600ac --- /dev/null +++ b/admin/helpers/PHPExcel/locale/nl/functions @@ -0,0 +1,438 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Calculation +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ +## +## + + +## +## Add-in and Automation functions Automatiseringsfuncties en functies in invoegtoepassingen +## +GETPIVOTDATA = DRAAITABEL.OPHALEN ## Geeft gegevens uit een draaitabelrapport als resultaat + + +## +## Cube functions Kubusfuncties +## +CUBEKPIMEMBER = KUBUSKPILID ## Retourneert de naam, eigenschap en waarde van een KPI (prestatie-indicator) en geeft de naam en de eigenschap in de cel weer. Een KPI is een meetbare waarde, zoals de maandelijkse brutowinst of de omzet per kwartaal per werknemer, die wordt gebruikt om de prestaties van een organisatie te bewaken +CUBEMEMBER = KUBUSLID ## Retourneert een lid of tupel in een kubushiërarchie. Wordt gebruikt om te controleren of het lid of de tupel in de kubus aanwezig is +CUBEMEMBERPROPERTY = KUBUSLIDEIGENSCHAP ## Retourneert de waarde van een lideigenschap in de kubus. Wordt gebruikt om te controleren of de lidnaam in de kubus bestaat en retourneert de opgegeven eigenschap voor dit lid +CUBERANKEDMEMBER = KUBUSGERANGCHIKTLID ## Retourneert het zoveelste, gerangschikte lid in een set. Wordt gebruikt om een of meer elementen in een set te retourneren, zoals de tien beste verkopers of de tien beste studenten +CUBESET = KUBUSSET ## Definieert een berekende set leden of tupels door een ingestelde expressie naar de kubus op de server te sturen, alwaar de set wordt gemaakt en vervolgens wordt geretourneerd naar Microsoft Office Excel +CUBESETCOUNT = KUBUSSETAANTAL ## Retourneert het aantal onderdelen in een set +CUBEVALUE = KUBUSWAARDE ## Retourneert een samengestelde waarde van een kubus + + +## +## Database functions Databasefuncties +## +DAVERAGE = DBGEMIDDELDE ## Berekent de gemiddelde waarde in geselecteerde databasegegevens +DCOUNT = DBAANTAL ## Telt de cellen met getallen in een database +DCOUNTA = DBAANTALC ## Telt de niet-lege cellen in een database +DGET = DBLEZEN ## Retourneert één record dat voldoet aan de opgegeven criteria uit een database +DMAX = DBMAX ## Retourneert de maximumwaarde in de geselecteerde databasegegevens +DMIN = DBMIN ## Retourneert de minimumwaarde in de geselecteerde databasegegevens +DPRODUCT = DBPRODUCT ## Vermenigvuldigt de waarden in een bepaald veld van de records die voldoen aan de criteria in een database +DSTDEV = DBSTDEV ## Maakt een schatting van de standaarddeviatie op basis van een steekproef uit geselecteerde databasegegevens +DSTDEVP = DBSTDEVP ## Berekent de standaarddeviatie op basis van de volledige populatie van geselecteerde databasegegevens +DSUM = DBSOM ## Telt de getallen uit een kolom records in de database op die voldoen aan de criteria +DVAR = DBVAR ## Maakt een schatting van de variantie op basis van een steekproef uit geselecteerde databasegegevens +DVARP = DBVARP ## Berekent de variantie op basis van de volledige populatie van geselecteerde databasegegevens + + +## +## Date and time functions Datum- en tijdfuncties +## +DATE = DATUM ## Geeft als resultaat het seriële getal van een opgegeven datum +DATEVALUE = DATUMWAARDE ## Converteert een datum in de vorm van tekst naar een serieel getal +DAY = DAG ## Converteert een serieel getal naar een dag van de maand +DAYS360 = DAGEN360 ## Berekent het aantal dagen tussen twee datums op basis van een jaar met 360 dagen +EDATE = ZELFDE.DAG ## Geeft als resultaat het seriële getal van een datum die het opgegeven aantal maanden voor of na de begindatum ligt +EOMONTH = LAATSTE.DAG ## Geeft als resultaat het seriële getal van de laatste dag van de maand voor of na het opgegeven aantal maanden +HOUR = UUR ## Converteert een serieel getal naar uren +MINUTE = MINUUT ## Converteert een serieel naar getal minuten +MONTH = MAAND ## Converteert een serieel getal naar een maand +NETWORKDAYS = NETTO.WERKDAGEN ## Geeft als resultaat het aantal hele werkdagen tussen twee datums +NOW = NU ## Geeft als resultaat het seriële getal van de huidige datum en tijd +SECOND = SECONDE ## Converteert een serieel getal naar seconden +TIME = TIJD ## Geeft als resultaat het seriële getal van een bepaald tijdstip +TIMEVALUE = TIJDWAARDE ## Converteert de tijd in de vorm van tekst naar een serieel getal +TODAY = VANDAAG ## Geeft als resultaat het seriële getal van de huidige datum +WEEKDAY = WEEKDAG ## Converteert een serieel getal naar een weekdag +WEEKNUM = WEEKNUMMER ## Converteert een serieel getal naar een weeknummer +WORKDAY = WERKDAG ## Geeft als resultaat het seriële getal van de datum voor of na een bepaald aantal werkdagen +YEAR = JAAR ## Converteert een serieel getal naar een jaar +YEARFRAC = JAAR.DEEL ## Geeft als resultaat het gedeelte van het jaar, uitgedrukt in het aantal hele dagen tussen begindatum en einddatum + + +## +## Engineering functions Technische functies +## +BESSELI = BESSEL.Y ## Geeft als resultaat de gewijzigde Bessel-functie In(x) +BESSELJ = BESSEL.J ## Geeft als resultaat de Bessel-functie Jn(x) +BESSELK = BESSEL.K ## Geeft als resultaat de gewijzigde Bessel-functie Kn(x) +BESSELY = BESSEL.Y ## Geeft als resultaat de gewijzigde Bessel-functie Yn(x) +BIN2DEC = BIN.N.DEC ## Converteert een binair getal naar een decimaal getal +BIN2HEX = BIN.N.HEX ## Converteert een binair getal naar een hexadecimaal getal +BIN2OCT = BIN.N.OCT ## Converteert een binair getal naar een octaal getal +COMPLEX = COMPLEX ## Converteert reële en imaginaire coëfficiënten naar een complex getal +CONVERT = CONVERTEREN ## Converteert een getal in de ene maateenheid naar een getal in een andere maateenheid +DEC2BIN = DEC.N.BIN ## Converteert een decimaal getal naar een binair getal +DEC2HEX = DEC.N.HEX ## Converteert een decimaal getal naar een hexadecimaal getal +DEC2OCT = DEC.N.OCT ## Converteert een decimaal getal naar een octaal getal +DELTA = DELTA ## Test of twee waarden gelijk zijn +ERF = FOUTFUNCTIE ## Geeft als resultaat de foutfunctie +ERFC = FOUT.COMPLEMENT ## Geeft als resultaat de complementaire foutfunctie +GESTEP = GROTER.DAN ## Test of een getal groter is dan de drempelwaarde +HEX2BIN = HEX.N.BIN ## Converteert een hexadecimaal getal naar een binair getal +HEX2DEC = HEX.N.DEC ## Converteert een hexadecimaal getal naar een decimaal getal +HEX2OCT = HEX.N.OCT ## Converteert een hexadecimaal getal naar een octaal getal +IMABS = C.ABS ## Geeft als resultaat de absolute waarde (modulus) van een complex getal +IMAGINARY = C.IM.DEEL ## Geeft als resultaat de imaginaire coëfficiënt van een complex getal +IMARGUMENT = C.ARGUMENT ## Geeft als resultaat het argument thèta, een hoek uitgedrukt in radialen +IMCONJUGATE = C.TOEGEVOEGD ## Geeft als resultaat het complexe toegevoegde getal van een complex getal +IMCOS = C.COS ## Geeft als resultaat de cosinus van een complex getal +IMDIV = C.QUOTIENT ## Geeft als resultaat het quotiënt van twee complexe getallen +IMEXP = C.EXP ## Geeft als resultaat de exponent van een complex getal +IMLN = C.LN ## Geeft als resultaat de natuurlijke logaritme van een complex getal +IMLOG10 = C.LOG10 ## Geeft als resultaat de logaritme met grondtal 10 van een complex getal +IMLOG2 = C.LOG2 ## Geeft als resultaat de logaritme met grondtal 2 van een complex getal +IMPOWER = C.MACHT ## Geeft als resultaat een complex getal dat is verheven tot de macht van een geheel getal +IMPRODUCT = C.PRODUCT ## Geeft als resultaat het product van complexe getallen +IMREAL = C.REEEL.DEEL ## Geeft als resultaat de reële coëfficiënt van een complex getal +IMSIN = C.SIN ## Geeft als resultaat de sinus van een complex getal +IMSQRT = C.WORTEL ## Geeft als resultaat de vierkantswortel van een complex getal +IMSUB = C.VERSCHIL ## Geeft als resultaat het verschil tussen twee complexe getallen +IMSUM = C.SOM ## Geeft als resultaat de som van complexe getallen +OCT2BIN = OCT.N.BIN ## Converteert een octaal getal naar een binair getal +OCT2DEC = OCT.N.DEC ## Converteert een octaal getal naar een decimaal getal +OCT2HEX = OCT.N.HEX ## Converteert een octaal getal naar een hexadecimaal getal + + +## +## Financial functions Financiële functies +## +ACCRINT = SAMENG.RENTE ## Berekent de opgelopen rente voor een waardepapier waarvan de rente periodiek wordt uitgekeerd +ACCRINTM = SAMENG.RENTE.V ## Berekent de opgelopen rente voor een waardepapier waarvan de rente op de vervaldatum wordt uitgekeerd +AMORDEGRC = AMORDEGRC ## Geeft als resultaat de afschrijving voor elke boekingsperiode door een afschrijvingscoëfficiënt toe te passen +AMORLINC = AMORLINC ## Berekent de afschrijving voor elke boekingsperiode +COUPDAYBS = COUP.DAGEN.BB ## Berekent het aantal dagen vanaf het begin van de coupontermijn tot de stortingsdatum +COUPDAYS = COUP.DAGEN ## Geeft als resultaat het aantal dagen in de coupontermijn waarin de stortingsdatum valt +COUPDAYSNC = COUP.DAGEN.VV ## Geeft als resultaat het aantal dagen vanaf de stortingsdatum tot de volgende couponvervaldatum +COUPNCD = COUP.DATUM.NB ## Geeft als resultaat de volgende coupondatum na de stortingsdatum +COUPNUM = COUP.AANTAL ## Geeft als resultaat het aantal coupons dat nog moet worden uitbetaald tussen de stortingsdatum en de vervaldatum +COUPPCD = COUP.DATUM.VB ## Geeft als resultaat de vorige couponvervaldatum vóór de stortingsdatum +CUMIPMT = CUM.RENTE ## Geeft als resultaat de cumulatieve rente die tussen twee termijnen is uitgekeerd +CUMPRINC = CUM.HOOFDSOM ## Geeft als resultaat de cumulatieve hoofdsom van een lening die tussen twee termijnen is terugbetaald +DB = DB ## Geeft als resultaat de afschrijving van activa voor een bepaalde periode met behulp van de 'fixed declining balance'-methode +DDB = DDB ## Geeft als resultaat de afschrijving van activa over een bepaalde termijn met behulp van de 'double declining balance'-methode of een andere methode die u opgeeft +DISC = DISCONTO ## Geeft als resultaat het discontopercentage voor een waardepapier +DOLLARDE = EURO.DE ## Converteert een prijs in euro's, uitgedrukt in een breuk, naar een prijs in euro's, uitgedrukt in een decimaal getal +DOLLARFR = EURO.BR ## Converteert een prijs in euro's, uitgedrukt in een decimaal getal, naar een prijs in euro's, uitgedrukt in een breuk +DURATION = DUUR ## Geeft als resultaat de gewogen gemiddelde looptijd voor een waardepapier met periodieke rentebetalingen +EFFECT = EFFECT.RENTE ## Geeft als resultaat het effectieve jaarlijkse rentepercentage +FV = TW ## Geeft als resultaat de toekomstige waarde van een investering +FVSCHEDULE = TOEK.WAARDE2 ## Geeft als resultaat de toekomstige waarde van een bepaalde hoofdsom na het toepassen van een reeks samengestelde rentepercentages +INTRATE = RENTEPERCENTAGE ## Geeft als resultaat het rentepercentage voor een volgestort waardepapier +IPMT = IBET ## Geeft als resultaat de te betalen rente voor een investering over een bepaalde termijn +IRR = IR ## Geeft als resultaat de interne rentabiliteit voor een reeks cashflows +ISPMT = ISBET ## Geeft als resultaat de rente die is betaald tijdens een bepaalde termijn van een investering +MDURATION = AANG.DUUR ## Geeft als resultaat de aangepaste Macauley-looptijd voor een waardepapier, aangenomen dat de nominale waarde € 100 bedraagt +MIRR = GIR ## Geeft als resultaat de interne rentabiliteit voor een serie cashflows, waarbij voor betalingen een ander rentepercentage geldt dan voor inkomsten +NOMINAL = NOMINALE.RENTE ## Geeft als resultaat het nominale jaarlijkse rentepercentage +NPER = NPER ## Geeft als resultaat het aantal termijnen van een investering +NPV = NHW ## Geeft als resultaat de netto huidige waarde van een investering op basis van een reeks periodieke cashflows en een discontopercentage +ODDFPRICE = AFW.ET.PRIJS ## Geeft als resultaat de prijs per € 100 nominale waarde voor een waardepapier met een afwijkende eerste termijn +ODDFYIELD = AFW.ET.REND ## Geeft als resultaat het rendement voor een waardepapier met een afwijkende eerste termijn +ODDLPRICE = AFW.LT.PRIJS ## Geeft als resultaat de prijs per € 100 nominale waarde voor een waardepapier met een afwijkende laatste termijn +ODDLYIELD = AFW.LT.REND ## Geeft als resultaat het rendement voor een waardepapier met een afwijkende laatste termijn +PMT = BET ## Geeft als resultaat de periodieke betaling voor een annuïteit +PPMT = PBET ## Geeft als resultaat de afbetaling op de hoofdsom voor een bepaalde termijn +PRICE = PRIJS.NOM ## Geeft als resultaat de prijs per € 100 nominale waarde voor een waardepapier waarvan de rente periodiek wordt uitgekeerd +PRICEDISC = PRIJS.DISCONTO ## Geeft als resultaat de prijs per € 100 nominale waarde voor een verdisconteerd waardepapier +PRICEMAT = PRIJS.VERVALDAG ## Geeft als resultaat de prijs per € 100 nominale waarde voor een waardepapier waarvan de rente wordt uitgekeerd op de vervaldatum +PV = HW ## Geeft als resultaat de huidige waarde van een investering +RATE = RENTE ## Geeft als resultaat het periodieke rentepercentage voor een annuïteit +RECEIVED = OPBRENGST ## Geeft als resultaat het bedrag dat op de vervaldatum wordt uitgekeerd voor een volgestort waardepapier +SLN = LIN.AFSCHR ## Geeft als resultaat de lineaire afschrijving van activa over één termijn +SYD = SYD ## Geeft als resultaat de afschrijving van activa over een bepaalde termijn met behulp van de 'Sum-Of-Years-Digits'-methode +TBILLEQ = SCHATK.OBL ## Geeft als resultaat het rendement op schatkistpapier, dat op dezelfde manier wordt berekend als het rendement op obligaties +TBILLPRICE = SCHATK.PRIJS ## Bepaalt de prijs per € 100 nominale waarde voor schatkistpapier +TBILLYIELD = SCHATK.REND ## Berekent het rendement voor schatkistpapier +VDB = VDB ## Geeft als resultaat de afschrijving van activa over een gehele of gedeeltelijke termijn met behulp van de 'declining balance'-methode +XIRR = IR.SCHEMA ## Berekent de interne rentabiliteit voor een betalingsschema van cashflows +XNPV = NHW2 ## Berekent de huidige nettowaarde voor een betalingsschema van cashflows +YIELD = RENDEMENT ## Geeft als resultaat het rendement voor een waardepapier waarvan de rente periodiek wordt uitgekeerd +YIELDDISC = REND.DISCONTO ## Geeft als resultaat het jaarlijkse rendement voor een verdisconteerd waardepapier, bijvoorbeeld schatkistpapier +YIELDMAT = REND.VERVAL ## Geeft als resultaat het jaarlijkse rendement voor een waardepapier waarvan de rente wordt uitgekeerd op de vervaldatum + + +## +## Information functions Informatiefuncties +## +CELL = CEL ## Geeft als resultaat informatie over de opmaak, locatie of inhoud van een cel +ERROR.TYPE = TYPE.FOUT ## Geeft als resultaat een getal dat overeenkomt met een van de foutwaarden van Microsoft Excel +INFO = INFO ## Geeft als resultaat informatie over de huidige besturingsomgeving +ISBLANK = ISLEEG ## Geeft als resultaat WAAR als de waarde leeg is +ISERR = ISFOUT2 ## Geeft als resultaat WAAR als de waarde een foutwaarde is, met uitzondering van #N/B +ISERROR = ISFOUT ## Geeft als resultaat WAAR als de waarde een foutwaarde is +ISEVEN = IS.EVEN ## Geeft als resultaat WAAR als het getal even is +ISLOGICAL = ISLOGISCH ## Geeft als resultaat WAAR als de waarde een logische waarde is +ISNA = ISNB ## Geeft als resultaat WAAR als de waarde de foutwaarde #N/B is +ISNONTEXT = ISGEENTEKST ## Geeft als resultaat WAAR als de waarde geen tekst is +ISNUMBER = ISGETAL ## Geeft als resultaat WAAR als de waarde een getal is +ISODD = IS.ONEVEN ## Geeft als resultaat WAAR als het getal oneven is +ISREF = ISVERWIJZING ## Geeft als resultaat WAAR als de waarde een verwijzing is +ISTEXT = ISTEKST ## Geeft als resultaat WAAR als de waarde tekst is +N = N ## Geeft als resultaat een waarde die is geconverteerd naar een getal +NA = NB ## Geeft als resultaat de foutwaarde #N/B +TYPE = TYPE ## Geeft als resultaat een getal dat het gegevenstype van een waarde aangeeft + + +## +## Logical functions Logische functies +## +AND = EN ## Geeft als resultaat WAAR als alle argumenten WAAR zijn +FALSE = ONWAAR ## Geeft als resultaat de logische waarde ONWAAR +IF = ALS ## Geeft een logische test aan +IFERROR = ALS.FOUT ## Retourneert een waarde die u opgeeft als een formule een fout oplevert, anders wordt het resultaat van de formule geretourneerd +NOT = NIET ## Keert de logische waarde van het argument om +OR = OF ## Geeft als resultaat WAAR als minimaal een van de argumenten WAAR is +TRUE = WAAR ## Geeft als resultaat de logische waarde WAAR + + +## +## Lookup and reference functions Zoek- en verwijzingsfuncties +## +ADDRESS = ADRES ## Geeft als resultaat een verwijzing, in de vorm van tekst, naar één bepaalde cel in een werkblad +AREAS = BEREIKEN ## Geeft als resultaat het aantal bereiken in een verwijzing +CHOOSE = KIEZEN ## Kiest een waarde uit een lijst met waarden +COLUMN = KOLOM ## Geeft als resultaat het kolomnummer van een verwijzing +COLUMNS = KOLOMMEN ## Geeft als resultaat het aantal kolommen in een verwijzing +HLOOKUP = HORIZ.ZOEKEN ## Zoekt in de bovenste rij van een matrix naar een bepaalde waarde en geeft als resultaat de gevonden waarde in de opgegeven cel +HYPERLINK = HYPERLINK ## Maakt een snelkoppeling of een sprong waarmee een document wordt geopend dat is opgeslagen op een netwerkserver, een intranet of op internet +INDEX = INDEX ## Kiest met een index een waarde uit een verwijzing of een matrix +INDIRECT = INDIRECT ## Geeft als resultaat een verwijzing die wordt aangegeven met een tekstwaarde +LOOKUP = ZOEKEN ## Zoekt naar bepaalde waarden in een vector of een matrix +MATCH = VERGELIJKEN ## Zoekt naar bepaalde waarden in een verwijzing of een matrix +OFFSET = VERSCHUIVING ## Geeft als resultaat een nieuwe verwijzing die is verschoven ten opzichte van een bepaalde verwijzing +ROW = RIJ ## Geeft als resultaat het rijnummer van een verwijzing +ROWS = RIJEN ## Geeft als resultaat het aantal rijen in een verwijzing +RTD = RTG ## Haalt realtimegegevens op uit een programma dat COM-automatisering (automatisering: een methode waarmee de ene toepassing objecten van een andere toepassing of ontwikkelprogramma kan besturen. Automatisering werd vroeger OLE-automatisering genoemd. Automatisering is een industrienorm die deel uitmaakt van het Component Object Model (COM).) ondersteunt +TRANSPOSE = TRANSPONEREN ## Geeft als resultaat de getransponeerde van een matrix +VLOOKUP = VERT.ZOEKEN ## Zoekt in de meest linkse kolom van een matrix naar een bepaalde waarde en geeft als resultaat de waarde in de opgegeven cel + + +## +## Math and trigonometry functions Wiskundige en trigonometrische functies +## +ABS = ABS ## Geeft als resultaat de absolute waarde van een getal +ACOS = BOOGCOS ## Geeft als resultaat de boogcosinus van een getal +ACOSH = BOOGCOSH ## Geeft als resultaat de inverse cosinus hyperbolicus van een getal +ASIN = BOOGSIN ## Geeft als resultaat de boogsinus van een getal +ASINH = BOOGSINH ## Geeft als resultaat de inverse sinus hyperbolicus van een getal +ATAN = BOOGTAN ## Geeft als resultaat de boogtangens van een getal +ATAN2 = BOOGTAN2 ## Geeft als resultaat de boogtangens van de x- en y-coördinaten +ATANH = BOOGTANH ## Geeft als resultaat de inverse tangens hyperbolicus van een getal +CEILING = AFRONDEN.BOVEN ## Rondt de absolute waarde van een getal naar boven af op het dichtstbijzijnde gehele getal of het dichtstbijzijnde significante veelvoud +COMBIN = COMBINATIES ## Geeft als resultaat het aantal combinaties voor een bepaald aantal objecten +COS = COS ## Geeft als resultaat de cosinus van een getal +COSH = COSH ## Geeft als resultaat de cosinus hyperbolicus van een getal +DEGREES = GRADEN ## Converteert radialen naar graden +EVEN = EVEN ## Rondt het getal af op het dichtstbijzijnde gehele even getal +EXP = EXP ## Verheft e tot de macht van een bepaald getal +FACT = FACULTEIT ## Geeft als resultaat de faculteit van een getal +FACTDOUBLE = DUBBELE.FACULTEIT ## Geeft als resultaat de dubbele faculteit van een getal +FLOOR = AFRONDEN.BENEDEN ## Rondt de absolute waarde van een getal naar beneden af +GCD = GGD ## Geeft als resultaat de grootste gemene deler +INT = INTEGER ## Rondt een getal naar beneden af op het dichtstbijzijnde gehele getal +LCM = KGV ## Geeft als resultaat het kleinste gemene veelvoud +LN = LN ## Geeft als resultaat de natuurlijke logaritme van een getal +LOG = LOG ## Geeft als resultaat de logaritme met het opgegeven grondtal van een getal +LOG10 = LOG10 ## Geeft als resultaat de logaritme met grondtal 10 van een getal +MDETERM = DETERMINANTMAT ## Geeft als resultaat de determinant van een matrix +MINVERSE = INVERSEMAT ## Geeft als resultaat de inverse van een matrix +MMULT = PRODUCTMAT ## Geeft als resultaat het product van twee matrices +MOD = REST ## Geeft als resultaat het restgetal van een deling +MROUND = AFRONDEN.N.VEELVOUD ## Geeft als resultaat een getal afgerond op het gewenste veelvoud +MULTINOMIAL = MULTINOMIAAL ## Geeft als resultaat de multinomiaalcoëfficiënt van een reeks getallen +ODD = ONEVEN ## Rondt de absolute waarde van het getal naar boven af op het dichtstbijzijnde gehele oneven getal +PI = PI ## Geeft als resultaat de waarde van pi +POWER = MACHT ## Verheft een getal tot een macht +PRODUCT = PRODUCT ## Vermenigvuldigt de argumenten met elkaar +QUOTIENT = QUOTIENT ## Geeft als resultaat de uitkomst van een deling als geheel getal +RADIANS = RADIALEN ## Converteert graden naar radialen +RAND = ASELECT ## Geeft als resultaat een willekeurig getal tussen 0 en 1 +RANDBETWEEN = ASELECTTUSSEN ## Geeft een willekeurig getal tussen de getallen die u hebt opgegeven +ROMAN = ROMEINS ## Converteert een Arabisch getal naar een Romeins getal en geeft het resultaat weer in de vorm van tekst +ROUND = AFRONDEN ## Rondt een getal af op het opgegeven aantal decimalen +ROUNDDOWN = AFRONDEN.NAAR.BENEDEN ## Rondt de absolute waarde van een getal naar beneden af +ROUNDUP = AFRONDEN.NAAR.BOVEN ## Rondt de absolute waarde van een getal naar boven af +SERIESSUM = SOM.MACHTREEKS ## Geeft als resultaat de som van een machtreeks die is gebaseerd op de formule +SIGN = POS.NEG ## Geeft als resultaat het teken van een getal +SIN = SIN ## Geeft als resultaat de sinus van de opgegeven hoek +SINH = SINH ## Geeft als resultaat de sinus hyperbolicus van een getal +SQRT = WORTEL ## Geeft als resultaat de positieve vierkantswortel van een getal +SQRTPI = WORTEL.PI ## Geeft als resultaat de vierkantswortel van (getal * pi) +SUBTOTAL = SUBTOTAAL ## Geeft als resultaat een subtotaal voor een bereik +SUM = SOM ## Telt de argumenten op +SUMIF = SOM.ALS ## Telt de getallen bij elkaar op die voldoen aan een bepaald criterium +SUMIFS = SOMMEN.ALS ## Telt de cellen in een bereik op die aan meerdere criteria voldoen +SUMPRODUCT = SOMPRODUCT ## Geeft als resultaat de som van de producten van de corresponderende matrixelementen +SUMSQ = KWADRATENSOM ## Geeft als resultaat de som van de kwadraten van de argumenten +SUMX2MY2 = SOM.X2MINY2 ## Geeft als resultaat de som van het verschil tussen de kwadraten van corresponderende waarden in twee matrices +SUMX2PY2 = SOM.X2PLUSY2 ## Geeft als resultaat de som van de kwadratensom van corresponderende waarden in twee matrices +SUMXMY2 = SOM.XMINY.2 ## Geeft als resultaat de som van de kwadraten van de verschillen tussen de corresponderende waarden in twee matrices +TAN = TAN ## Geeft als resultaat de tangens van een getal +TANH = TANH ## Geeft als resultaat de tangens hyperbolicus van een getal +TRUNC = GEHEEL ## Kapt een getal af tot een geheel getal + + +## +## Statistical functions Statistische functies +## +AVEDEV = GEM.DEVIATIE ## Geeft als resultaat het gemiddelde van de absolute deviaties van gegevenspunten ten opzichte van hun gemiddelde waarde +AVERAGE = GEMIDDELDE ## Geeft als resultaat het gemiddelde van de argumenten +AVERAGEA = GEMIDDELDEA ## Geeft als resultaat het gemiddelde van de argumenten, inclusief getallen, tekst en logische waarden +AVERAGEIF = GEMIDDELDE.ALS ## Geeft het gemiddelde (rekenkundig gemiddelde) als resultaat van alle cellen in een bereik die voldoen aan de opgegeven criteria +AVERAGEIFS = GEMIDDELDEN.ALS ## Geeft het gemiddelde (rekenkundig gemiddelde) als resultaat van alle cellen die aan meerdere criteria voldoen +BETADIST = BETA.VERD ## Geeft als resultaat de cumulatieve bèta-verdelingsfunctie +BETAINV = BETA.INV ## Geeft als resultaat de inverse van de cumulatieve verdelingsfunctie voor een gegeven bèta-verdeling +BINOMDIST = BINOMIALE.VERD ## Geeft als resultaat de binomiale verdeling +CHIDIST = CHI.KWADRAAT ## Geeft als resultaat de eenzijdige kans van de chi-kwadraatverdeling +CHIINV = CHI.KWADRAAT.INV ## Geeft als resultaat de inverse van een eenzijdige kans van de chi-kwadraatverdeling +CHITEST = CHI.TOETS ## Geeft als resultaat de onafhankelijkheidstoets +CONFIDENCE = BETROUWBAARHEID ## Geeft als resultaat het betrouwbaarheidsinterval van een gemiddelde waarde voor de elementen van een populatie +CORREL = CORRELATIE ## Geeft als resultaat de correlatiecoëfficiënt van twee gegevensverzamelingen +COUNT = AANTAL ## Telt het aantal getallen in de argumentenlijst +COUNTA = AANTALARG ## Telt het aantal waarden in de argumentenlijst +COUNTBLANK = AANTAL.LEGE.CELLEN ## Telt het aantal lege cellen in een bereik +COUNTIF = AANTAL.ALS ## Telt in een bereik het aantal cellen die voldoen aan een bepaald criterium +COUNTIFS = AANTALLEN.ALS ## Telt in een bereik het aantal cellen die voldoen aan meerdere criteria +COVAR = COVARIANTIE ## Geeft als resultaat de covariantie, het gemiddelde van de producten van de gepaarde deviaties +CRITBINOM = CRIT.BINOM ## Geeft als resultaat de kleinste waarde waarvoor de binomiale verdeling kleiner is dan of gelijk is aan het criterium +DEVSQ = DEV.KWAD ## Geeft als resultaat de som van de deviaties in het kwadraat +EXPONDIST = EXPON.VERD ## Geeft als resultaat de exponentiële verdeling +FDIST = F.VERDELING ## Geeft als resultaat de F-verdeling +FINV = F.INVERSE ## Geeft als resultaat de inverse van de F-verdeling +FISHER = FISHER ## Geeft als resultaat de Fisher-transformatie +FISHERINV = FISHER.INV ## Geeft als resultaat de inverse van de Fisher-transformatie +FORECAST = VOORSPELLEN ## Geeft als resultaat een waarde op basis van een lineaire trend +FREQUENCY = FREQUENTIE ## Geeft als resultaat een frequentieverdeling in de vorm van een verticale matrix +FTEST = F.TOETS ## Geeft als resultaat een F-toets +GAMMADIST = GAMMA.VERD ## Geeft als resultaat de gamma-verdeling +GAMMAINV = GAMMA.INV ## Geeft als resultaat de inverse van de cumulatieve gamma-verdeling +GAMMALN = GAMMA.LN ## Geeft als resultaat de natuurlijke logaritme van de gamma-functie, G(x) +GEOMEAN = MEETK.GEM ## Geeft als resultaat het meetkundige gemiddelde +GROWTH = GROEI ## Geeft als resultaat de waarden voor een exponentiële trend +HARMEAN = HARM.GEM ## Geeft als resultaat het harmonische gemiddelde +HYPGEOMDIST = HYPERGEO.VERD ## Geeft als resultaat de hypergeometrische verdeling +INTERCEPT = SNIJPUNT ## Geeft als resultaat het snijpunt van de lineaire regressielijn met de y-as +KURT = KURTOSIS ## Geeft als resultaat de kurtosis van een gegevensverzameling +LARGE = GROOTSTE ## Geeft als resultaat de op k-1 na grootste waarde in een gegevensverzameling +LINEST = LIJNSCH ## Geeft als resultaat de parameters van een lineaire trend +LOGEST = LOGSCH ## Geeft als resultaat de parameters van een exponentiële trend +LOGINV = LOG.NORM.INV ## Geeft als resultaat de inverse van de logaritmische normale verdeling +LOGNORMDIST = LOG.NORM.VERD ## Geeft als resultaat de cumulatieve logaritmische normale verdeling +MAX = MAX ## Geeft als resultaat de maximumwaarde in een lijst met argumenten +MAXA = MAXA ## Geeft als resultaat de maximumwaarde in een lijst met argumenten, inclusief getallen, tekst en logische waarden +MEDIAN = MEDIAAN ## Geeft als resultaat de mediaan van de opgegeven getallen +MIN = MIN ## Geeft als resultaat de minimumwaarde in een lijst met argumenten +MINA = MINA ## Geeft als resultaat de minimumwaarde in een lijst met argumenten, inclusief getallen, tekst en logische waarden +MODE = MODUS ## Geeft als resultaat de meest voorkomende waarde in een gegevensverzameling +NEGBINOMDIST = NEG.BINOM.VERD ## Geeft als resultaat de negatieve binomiaalverdeling +NORMDIST = NORM.VERD ## Geeft als resultaat de cumulatieve normale verdeling +NORMINV = NORM.INV ## Geeft als resultaat de inverse van de cumulatieve standaardnormale verdeling +NORMSDIST = STAND.NORM.VERD ## Geeft als resultaat de cumulatieve standaardnormale verdeling +NORMSINV = STAND.NORM.INV ## Geeft als resultaat de inverse van de cumulatieve normale verdeling +PEARSON = PEARSON ## Geeft als resultaat de correlatiecoëfficiënt van Pearson +PERCENTILE = PERCENTIEL ## Geeft als resultaat het k-de percentiel van waarden in een bereik +PERCENTRANK = PERCENT.RANG ## Geeft als resultaat de positie, in procenten uitgedrukt, van een waarde in de rangorde van een gegevensverzameling +PERMUT = PERMUTATIES ## Geeft als resultaat het aantal permutaties voor een gegeven aantal objecten +POISSON = POISSON ## Geeft als resultaat de Poisson-verdeling +PROB = KANS ## Geeft als resultaat de kans dat waarden zich tussen twee grenzen bevinden +QUARTILE = KWARTIEL ## Geeft als resultaat het kwartiel van een gegevensverzameling +RANK = RANG ## Geeft als resultaat het rangnummer van een getal in een lijst getallen +RSQ = R.KWADRAAT ## Geeft als resultaat het kwadraat van de Pearson-correlatiecoëfficiënt +SKEW = SCHEEFHEID ## Geeft als resultaat de mate van asymmetrie van een verdeling +SLOPE = RICHTING ## Geeft als resultaat de richtingscoëfficiënt van een lineaire regressielijn +SMALL = KLEINSTE ## Geeft als resultaat de op k-1 na kleinste waarde in een gegevensverzameling +STANDARDIZE = NORMALISEREN ## Geeft als resultaat een genormaliseerde waarde +STDEV = STDEV ## Maakt een schatting van de standaarddeviatie op basis van een steekproef +STDEVA = STDEVA ## Maakt een schatting van de standaarddeviatie op basis van een steekproef, inclusief getallen, tekst en logische waarden +STDEVP = STDEVP ## Berekent de standaarddeviatie op basis van de volledige populatie +STDEVPA = STDEVPA ## Berekent de standaarddeviatie op basis van de volledige populatie, inclusief getallen, tekst en logische waarden +STEYX = STAND.FOUT.YX ## Geeft als resultaat de standaardfout in de voorspelde y-waarde voor elke x in een regressie +TDIST = T.VERD ## Geeft als resultaat de Student T-verdeling +TINV = T.INV ## Geeft als resultaat de inverse van de Student T-verdeling +TREND = TREND ## Geeft als resultaat de waarden voor een lineaire trend +TRIMMEAN = GETRIMD.GEM ## Geeft als resultaat het gemiddelde van waarden in een gegevensverzameling +TTEST = T.TOETS ## Geeft als resultaat de kans met behulp van de Student T-toets +VAR = VAR ## Maakt een schatting van de variantie op basis van een steekproef +VARA = VARA ## Maakt een schatting van de variantie op basis van een steekproef, inclusief getallen, tekst en logische waarden +VARP = VARP ## Berekent de variantie op basis van de volledige populatie +VARPA = VARPA ## Berekent de standaarddeviatie op basis van de volledige populatie, inclusief getallen, tekst en logische waarden +WEIBULL = WEIBULL ## Geeft als resultaat de Weibull-verdeling +ZTEST = Z.TOETS ## Geeft als resultaat de eenzijdige kanswaarde van een Z-toets + + +## +## Text functions Tekstfuncties +## +ASC = ASC ## Wijzigt Nederlandse letters of katakanatekens over de volle breedte (dubbel-bytetekens) binnen een tekenreeks in tekens over de halve breedte (enkel-bytetekens) +BAHTTEXT = BAHT.TEKST ## Converteert een getal naar tekst met de valutanotatie ß (baht) +CHAR = TEKEN ## Geeft als resultaat het teken dat hoort bij de opgegeven code +CLEAN = WISSEN.CONTROL ## Verwijdert alle niet-afdrukbare tekens uit een tekst +CODE = CODE ## Geeft als resultaat de numerieke code voor het eerste teken in een tekenreeks +CONCATENATE = TEKST.SAMENVOEGEN ## Voegt verschillende tekstfragmenten samen tot één tekstfragment +DOLLAR = EURO ## Converteert een getal naar tekst met de valutanotatie € (euro) +EXACT = GELIJK ## Controleert of twee tekenreeksen identiek zijn +FIND = VIND.ALLES ## Zoekt een bepaalde tekenreeks in een tekst (waarbij onderscheid wordt gemaakt tussen hoofdletters en kleine letters) +FINDB = VIND.ALLES.B ## Zoekt een bepaalde tekenreeks in een tekst (waarbij onderscheid wordt gemaakt tussen hoofdletters en kleine letters) +FIXED = VAST ## Maakt een getal als tekst met een vast aantal decimalen op +JIS = JIS ## Wijzigt Nederlandse letters of katakanatekens over de halve breedte (enkel-bytetekens) binnen een tekenreeks in tekens over de volle breedte (dubbel-bytetekens) +LEFT = LINKS ## Geeft als resultaat de meest linkse tekens in een tekenreeks +LEFTB = LINKSB ## Geeft als resultaat de meest linkse tekens in een tekenreeks +LEN = LENGTE ## Geeft als resultaat het aantal tekens in een tekenreeks +LENB = LENGTEB ## Geeft als resultaat het aantal tekens in een tekenreeks +LOWER = KLEINE.LETTERS ## Zet tekst om in kleine letters +MID = MIDDEN ## Geeft als resultaat een bepaald aantal tekens van een tekenreeks vanaf de positie die u opgeeft +MIDB = DEELB ## Geeft als resultaat een bepaald aantal tekens van een tekenreeks vanaf de positie die u opgeeft +PHONETIC = FONETISCH ## Haalt de fonetische tekens (furigana) uit een tekenreeks op +PROPER = BEGINLETTERS ## Zet de eerste letter van elk woord in een tekst om in een hoofdletter +REPLACE = VERVANG ## Vervangt tekens binnen een tekst +REPLACEB = VERVANGENB ## Vervangt tekens binnen een tekst +REPT = HERHALING ## Herhaalt een tekst een aantal malen +RIGHT = RECHTS ## Geeft als resultaat de meest rechtse tekens in een tekenreeks +RIGHTB = RECHTSB ## Geeft als resultaat de meest rechtse tekens in een tekenreeks +SEARCH = VIND.SPEC ## Zoekt een bepaalde tekenreeks in een tekst (waarbij geen onderscheid wordt gemaakt tussen hoofdletters en kleine letters) +SEARCHB = VIND.SPEC.B ## Zoekt een bepaalde tekenreeks in een tekst (waarbij geen onderscheid wordt gemaakt tussen hoofdletters en kleine letters) +SUBSTITUTE = SUBSTITUEREN ## Vervangt oude tekst door nieuwe tekst in een tekenreeks +T = T ## Converteert de argumenten naar tekst +TEXT = TEKST ## Maakt een getal op en converteert het getal naar tekst +TRIM = SPATIES.WISSEN ## Verwijdert de spaties uit een tekst +UPPER = HOOFDLETTERS ## Zet tekst om in hoofdletters +VALUE = WAARDE ## Converteert tekst naar een getal diff --git a/admin/helpers/PHPExcel/locale/nl/index.html b/admin/helpers/PHPExcel/locale/nl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/nl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/no/config b/admin/helpers/PHPExcel/locale/no/config new file mode 100644 index 00000000..bf2d34a7 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/no/config @@ -0,0 +1,47 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = kr + + +## +## Excel Error Codes (For future use) +## +NULL = #NULL! +DIV0 = #DIV/0! +VALUE = #VERDI! +REF = #REF! +NAME = #NAVN? +NUM = #NUM! +NA = #I/T diff --git a/admin/helpers/PHPExcel/locale/no/functions b/admin/helpers/PHPExcel/locale/no/functions new file mode 100644 index 00000000..10d0a207 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/no/functions @@ -0,0 +1,438 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Calculation +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ +## +## + + +## +## Add-in and Automation functions Funksjonene Tillegg og Automatisering +## +GETPIVOTDATA = HENTPIVOTDATA ## Returnerer data som er lagret i en pivottabellrapport + + +## +## Cube functions Kubefunksjoner +## +CUBEKPIMEMBER = KUBEKPIMEDLEM ## Returnerer navnet, egenskapen og målet for en viktig ytelsesindikator (KPI), og viser navnet og egenskapen i cellen. En KPI er en målbar enhet, for eksempel månedlig bruttoinntjening eller kvartalsvis inntjening per ansatt, og brukes til å overvåke ytelsen i en organisasjon. +CUBEMEMBER = KUBEMEDLEM ## Returnerer et medlem eller en tuppel i et kubehierarki. Brukes til å validere at medlemmet eller tuppelen finnes i kuben. +CUBEMEMBERPROPERTY = KUBEMEDLEMEGENSKAP ## Returnerer verdien til en medlemsegenskap i kuben. Brukes til å validere at et medlemsnavn finnes i kuben, og til å returnere den angitte egenskapen for dette medlemmet. +CUBERANKEDMEMBER = KUBERANGERTMEDLEM ## Returnerer det n-te, eller rangerte, medlemmet i et sett. Brukes til å returnere ett eller flere elementer i et sett, for eksempel de 10 beste studentene. +CUBESET = KUBESETT ## Definerer et beregnet sett av medlemmer eller tuppeler ved å sende et settuttrykk til kuben på serveren, noe som oppretter settet og deretter returnerer dette settet til Microsoft Office Excel. +CUBESETCOUNT = KUBESETTANTALL ## Returnerer antallet elementer i et sett. +CUBEVALUE = KUBEVERDI ## Returnerer en aggregert verdi fra en kube. + + +## +## Database functions Databasefunksjoner +## +DAVERAGE = DGJENNOMSNITT ## Returnerer gjennomsnittet av merkede databaseposter +DCOUNT = DANTALL ## Teller celler som inneholder tall i en database +DCOUNTA = DANTALLA ## Teller celler som ikke er tomme i en database +DGET = DHENT ## Trekker ut fra en database en post som oppfyller angitte vilkår +DMAX = DMAKS ## Returnerer maksimumsverdien fra merkede databaseposter +DMIN = DMIN ## Returnerer minimumsverdien fra merkede databaseposter +DPRODUCT = DPRODUKT ## Multipliserer verdiene i et bestemt felt med poster som oppfyller vilkårene i en database +DSTDEV = DSTDAV ## Estimerer standardavviket basert på et utvalg av merkede databaseposter +DSTDEVP = DSTAVP ## Beregner standardavviket basert på at merkede databaseposter utgjør hele populasjonen +DSUM = DSUMMER ## Legger til tallene i feltkolonnen med poster, i databasen som oppfyller vilkårene +DVAR = DVARIANS ## Estimerer variansen basert på et utvalg av merkede databaseposter +DVARP = DVARIANSP ## Beregner variansen basert på at merkede databaseposter utgjør hele populasjonen + + +## +## Date and time functions Dato- og tidsfunksjoner +## +DATE = DATO ## Returnerer serienummeret som svarer til en bestemt dato +DATEVALUE = DATOVERDI ## Konverterer en dato med tekstformat til et serienummer +DAY = DAG ## Konverterer et serienummer til en dag i måneden +DAYS360 = DAGER360 ## Beregner antall dager mellom to datoer basert på et år med 360 dager +EDATE = DAG.ETTER ## Returnerer serienummeret som svarer til datoen som er det indikerte antall måneder før eller etter startdatoen +EOMONTH = MÅNEDSSLUTT ## Returnerer serienummeret som svarer til siste dag i måneden, før eller etter et angitt antall måneder +HOUR = TIME ## Konverterer et serienummer til en time +MINUTE = MINUTT ## Konverterer et serienummer til et minutt +MONTH = MÅNED ## Konverterer et serienummer til en måned +NETWORKDAYS = NETT.ARBEIDSDAGER ## Returnerer antall hele arbeidsdager mellom to datoer +NOW = NÅ ## Returnerer serienummeret som svarer til gjeldende dato og klokkeslett +SECOND = SEKUND ## Konverterer et serienummer til et sekund +TIME = TID ## Returnerer serienummeret som svarer til et bestemt klokkeslett +TIMEVALUE = TIDSVERDI ## Konverterer et klokkeslett i tekstformat til et serienummer +TODAY = IDAG ## Returnerer serienummeret som svarer til dagens dato +WEEKDAY = UKEDAG ## Konverterer et serienummer til en ukedag +WEEKNUM = UKENR ## Konverterer et serienummer til et tall som representerer hvilket nummer uken har i et år +WORKDAY = ARBEIDSDAG ## Returnerer serienummeret som svarer til datoen før eller etter et angitt antall arbeidsdager +YEAR = ÅR ## Konverterer et serienummer til et år +YEARFRAC = ÅRDEL ## Returnerer brøkdelen for året, som svarer til antall hele dager mellom startdato og sluttdato + + +## +## Engineering functions Tekniske funksjoner +## +BESSELI = BESSELI ## Returnerer den endrede Bessel-funksjonen In(x) +BESSELJ = BESSELJ ## Returnerer Bessel-funksjonen Jn(x) +BESSELK = BESSELK ## Returnerer den endrede Bessel-funksjonen Kn(x) +BESSELY = BESSELY ## Returnerer Bessel-funksjonen Yn(x) +BIN2DEC = BINTILDES ## Konverterer et binært tall til et desimaltall +BIN2HEX = BINTILHEKS ## Konverterer et binært tall til et heksadesimaltall +BIN2OCT = BINTILOKT ## Konverterer et binært tall til et oktaltall +COMPLEX = KOMPLEKS ## Konverterer reelle og imaginære koeffisienter til et komplekst tall +CONVERT = KONVERTER ## Konverterer et tall fra ett målsystem til et annet +DEC2BIN = DESTILBIN ## Konverterer et desimaltall til et binærtall +DEC2HEX = DESTILHEKS ## Konverterer et heltall i 10-tallsystemet til et heksadesimalt tall +DEC2OCT = DESTILOKT ## Konverterer et heltall i 10-tallsystemet til et oktaltall +DELTA = DELTA ## Undersøker om to verdier er like +ERF = FEILF ## Returnerer feilfunksjonen +ERFC = FEILFK ## Returnerer den komplementære feilfunksjonen +GESTEP = GRENSEVERDI ## Tester om et tall er større enn en terskelverdi +HEX2BIN = HEKSTILBIN ## Konverterer et heksadesimaltall til et binært tall +HEX2DEC = HEKSTILDES ## Konverterer et heksadesimalt tall til et heltall i 10-tallsystemet +HEX2OCT = HEKSTILOKT ## Konverterer et heksadesimalt tall til et oktaltall +IMABS = IMABS ## Returnerer absoluttverdien (koeffisienten) til et komplekst tall +IMAGINARY = IMAGINÆR ## Returnerer den imaginære koeffisienten til et komplekst tall +IMARGUMENT = IMARGUMENT ## Returnerer argumentet theta, som er en vinkel uttrykt i radianer +IMCONJUGATE = IMKONJUGERT ## Returnerer den komplekse konjugaten til et komplekst tall +IMCOS = IMCOS ## Returnerer cosinus til et komplekst tall +IMDIV = IMDIV ## Returnerer kvotienten til to komplekse tall +IMEXP = IMEKSP ## Returnerer eksponenten til et komplekst tall +IMLN = IMLN ## Returnerer den naturlige logaritmen for et komplekst tall +IMLOG10 = IMLOG10 ## Returnerer logaritmen med grunntall 10 for et komplekst tall +IMLOG2 = IMLOG2 ## Returnerer logaritmen med grunntall 2 for et komplekst tall +IMPOWER = IMOPPHØY ## Returnerer et komplekst tall opphøyd til en heltallspotens +IMPRODUCT = IMPRODUKT ## Returnerer produktet av komplekse tall +IMREAL = IMREELL ## Returnerer den reelle koeffisienten til et komplekst tall +IMSIN = IMSIN ## Returnerer sinus til et komplekst tall +IMSQRT = IMROT ## Returnerer kvadratroten av et komplekst tall +IMSUB = IMSUB ## Returnerer differansen mellom to komplekse tall +IMSUM = IMSUMMER ## Returnerer summen av komplekse tall +OCT2BIN = OKTTILBIN ## Konverterer et oktaltall til et binært tall +OCT2DEC = OKTTILDES ## Konverterer et oktaltall til et desimaltall +OCT2HEX = OKTTILHEKS ## Konverterer et oktaltall til et heksadesimaltall + + +## +## Financial functions Økonomiske funksjoner +## +ACCRINT = PÅLØPT.PERIODISK.RENTE ## Returnerer påløpte renter for et verdipapir som betaler periodisk rente +ACCRINTM = PÅLØPT.FORFALLSRENTE ## Returnerer den påløpte renten for et verdipapir som betaler rente ved forfall +AMORDEGRC = AMORDEGRC ## Returnerer avskrivningen for hver regnskapsperiode ved hjelp av en avskrivingskoeffisient +AMORLINC = AMORLINC ## Returnerer avskrivingen for hver regnskapsperiode +COUPDAYBS = OBLIG.DAGER.FF ## Returnerer antall dager fra begynnelsen av den rentebærende perioden til innløsningsdatoen +COUPDAYS = OBLIG.DAGER ## Returnerer antall dager i den rentebærende perioden som inneholder innløsningsdatoen +COUPDAYSNC = OBLIG.DAGER.NF ## Returnerer antall dager fra betalingsdato til neste renteinnbetalingsdato +COUPNCD = OBLIG.DAGER.EF ## Returnerer obligasjonsdatoen som kommer etter oppgjørsdatoen +COUPNUM = OBLIG.ANTALL ## Returnerer antall obligasjoner som skal betales mellom oppgjørsdatoen og forfallsdatoen +COUPPCD = OBLIG.DAG.FORRIGE ## Returnerer obligasjonsdatoen som kommer før oppgjørsdatoen +CUMIPMT = SAMLET.RENTE ## Returnerer den kumulative renten som er betalt mellom to perioder +CUMPRINC = SAMLET.HOVEDSTOL ## Returnerer den kumulative hovedstolen som er betalt for et lån mellom to perioder +DB = DAVSKR ## Returnerer avskrivningen for et aktivum i en angitt periode, foretatt med fast degressiv avskrivning +DDB = DEGRAVS ## Returnerer avskrivningen for et aktivum for en gitt periode, ved hjelp av dobbel degressiv avskrivning eller en metode som du selv angir +DISC = DISKONTERT ## Returnerer diskonteringsraten for et verdipapir +DOLLARDE = DOLLARDE ## Konverterer en valutapris uttrykt som en brøk, til en valutapris uttrykt som et desimaltall +DOLLARFR = DOLLARBR ## Konverterer en valutapris uttrykt som et desimaltall, til en valutapris uttrykt som en brøk +DURATION = VARIGHET ## Returnerer årlig varighet for et verdipapir med renter som betales periodisk +EFFECT = EFFEKTIV.RENTE ## Returnerer den effektive årlige rentesatsen +FV = SLUTTVERDI ## Returnerer fremtidig verdi for en investering +FVSCHEDULE = SVPLAN ## Returnerer den fremtidige verdien av en inngående hovedstol etter å ha anvendt en serie med sammensatte rentesatser +INTRATE = RENTESATS ## Returnerer rentefoten av et fullfinansiert verdipapir +IPMT = RAVDRAG ## Returnerer betalte renter på en investering for en gitt periode +IRR = IR ## Returnerer internrenten for en serie kontantstrømmer +ISPMT = ER.AVDRAG ## Beregner renten som er betalt for en investering i løpet av en bestemt periode +MDURATION = MVARIGHET ## Returnerer Macauleys modifiserte varighet for et verdipapir med en antatt pålydende verdi på kr 100,00 +MIRR = MODIR ## Returnerer internrenten der positive og negative kontantstrømmer finansieres med forskjellige satser +NOMINAL = NOMINELL ## Returnerer årlig nominell rentesats +NPER = PERIODER ## Returnerer antall perioder for en investering +NPV = NNV ## Returnerer netto nåverdi for en investering, basert på en serie periodiske kontantstrømmer og en rentesats +ODDFPRICE = AVVIKFP.PRIS ## Returnerer pris pålydende kr 100 for et verdipapir med en odde første periode +ODDFYIELD = AVVIKFP.AVKASTNING ## Returnerer avkastingen for et verdipapir med en odde første periode +ODDLPRICE = AVVIKSP.PRIS ## Returnerer pris pålydende kr 100 for et verdipapir med en odde siste periode +ODDLYIELD = AVVIKSP.AVKASTNING ## Returnerer avkastingen for et verdipapir med en odde siste periode +PMT = AVDRAG ## Returnerer periodisk betaling for en annuitet +PPMT = AMORT ## Returnerer betalingen på hovedstolen for en investering i en gitt periode +PRICE = PRIS ## Returnerer prisen per pålydende kr 100 for et verdipapir som gir periodisk avkastning +PRICEDISC = PRIS.DISKONTERT ## Returnerer prisen per pålydende kr 100 for et diskontert verdipapir +PRICEMAT = PRIS.FORFALL ## Returnerer prisen per pålydende kr 100 av et verdipapir som betaler rente ved forfall +PV = NÅVERDI ## Returnerer nåverdien av en investering +RATE = RENTE ## Returnerer rentesatsen per periode for en annuitet +RECEIVED = MOTTATT.AVKAST ## Returnerer summen som mottas ved forfallsdato for et fullinvestert verdipapir +SLN = LINAVS ## Returnerer den lineære avskrivningen for et aktivum i én periode +SYD = ÅRSAVS ## Returnerer årsavskrivningen for et aktivum i en angitt periode +TBILLEQ = TBILLEKV ## Returnerer den obligasjonsekvivalente avkastningen for en statsobligasjon +TBILLPRICE = TBILLPRIS ## Returnerer prisen per pålydende kr 100 for en statsobligasjon +TBILLYIELD = TBILLAVKASTNING ## Returnerer avkastningen til en statsobligasjon +VDB = VERDIAVS ## Returnerer avskrivningen for et aktivum i en angitt periode eller delperiode, ved hjelp av degressiv avskrivning +XIRR = XIR ## Returnerer internrenten for en serie kontantstrømmer som ikke nødvendigvis er periodiske +XNPV = XNNV ## Returnerer netto nåverdi for en serie kontantstrømmer som ikke nødvendigvis er periodiske +YIELD = AVKAST ## Returnerer avkastningen på et verdipapir som betaler periodisk rente +YIELDDISC = AVKAST.DISKONTERT ## Returnerer årlig avkastning for et diskontert verdipapir, for eksempel en statskasseveksel +YIELDMAT = AVKAST.FORFALL ## Returnerer den årlige avkastningen for et verdipapir som betaler rente ved forfallsdato + + +## +## Information functions Informasjonsfunksjoner +## +CELL = CELLE ## Returnerer informasjon om formatering, plassering eller innholdet til en celle +ERROR.TYPE = FEIL.TYPE ## Returnerer et tall som svarer til en feiltype +INFO = INFO ## Returnerer informasjon om gjeldende operativmiljø +ISBLANK = ERTOM ## Returnerer SANN hvis verdien er tom +ISERR = ERFEIL ## Returnerer SANN hvis verdien er en hvilken som helst annen feilverdi enn #I/T +ISERROR = ERFEIL ## Returnerer SANN hvis verdien er en hvilken som helst feilverdi +ISEVEN = ERPARTALL ## Returnerer SANN hvis tallet er et partall +ISLOGICAL = ERLOGISK ## Returnerer SANN hvis verdien er en logisk verdi +ISNA = ERIT ## Returnerer SANN hvis verdien er feilverdien #I/T +ISNONTEXT = ERIKKETEKST ## Returnerer SANN hvis verdien ikke er tekst +ISNUMBER = ERTALL ## Returnerer SANN hvis verdien er et tall +ISODD = ERODDETALL ## Returnerer SANN hvis tallet er et oddetall +ISREF = ERREF ## Returnerer SANN hvis verdien er en referanse +ISTEXT = ERTEKST ## Returnerer SANN hvis verdien er tekst +N = N ## Returnerer en verdi som er konvertert til et tall +NA = IT ## Returnerer feilverdien #I/T +TYPE = VERDITYPE ## Returnerer et tall som indikerer datatypen til en verdi + + +## +## Logical functions Logiske funksjoner +## +AND = OG ## Returnerer SANN hvis alle argumentene er lik SANN +FALSE = USANN ## Returnerer den logiske verdien USANN +IF = HVIS ## Angir en logisk test som skal utføres +IFERROR = HVISFEIL ## Returnerer en verdi du angir hvis en formel evaluerer til en feil. Ellers returnerer den resultatet av formelen. +NOT = IKKE ## Reverserer logikken til argumentet +OR = ELLER ## Returnerer SANN hvis ett eller flere argumenter er lik SANN +TRUE = SANN ## Returnerer den logiske verdien SANN + + +## +## Lookup and reference functions Oppslag- og referansefunksjoner +## +ADDRESS = ADRESSE ## Returnerer en referanse som tekst til en enkelt celle i et regneark +AREAS = OMRÅDER ## Returnerer antall områder i en referanse +CHOOSE = VELG ## Velger en verdi fra en liste med verdier +COLUMN = KOLONNE ## Returnerer kolonnenummeret for en referanse +COLUMNS = KOLONNER ## Returnerer antall kolonner i en referanse +HLOOKUP = FINN.KOLONNE ## Leter i den øverste raden i en matrise og returnerer verdien for den angitte cellen +HYPERLINK = HYPERKOBLING ## Oppretter en snarvei eller et hopp som åpner et dokument som er lagret på en nettverksserver, et intranett eller Internett +INDEX = INDEKS ## Bruker en indeks til å velge en verdi fra en referanse eller matrise +INDIRECT = INDIREKTE ## Returnerer en referanse angitt av en tekstverdi +LOOKUP = SLÅ.OPP ## Slår opp verdier i en vektor eller matrise +MATCH = SAMMENLIGNE ## Slår opp verdier i en referanse eller matrise +OFFSET = FORSKYVNING ## Returnerer en referanseforskyvning fra en gitt referanse +ROW = RAD ## Returnerer radnummeret for en referanse +ROWS = RADER ## Returnerer antall rader i en referanse +RTD = RTD ## Henter sanntidsdata fra et program som støtter COM-automatisering (automatisering: En måte å arbeide på med programobjekter fra et annet program- eller utviklingsverktøy. Tidligere kalt OLE-automatisering. Automatisering er en bransjestandard og en funksjon i Component Object Model (COM).) +TRANSPOSE = TRANSPONER ## Returnerer transponeringen av en matrise +VLOOKUP = FINN.RAD ## Leter i den første kolonnen i en matrise og flytter bortover raden for å returnere verdien til en celle + + +## +## Math and trigonometry functions Matematikk- og trigonometrifunksjoner +## +ABS = ABS ## Returnerer absoluttverdien til et tall +ACOS = ARCCOS ## Returnerer arcus cosinus til et tall +ACOSH = ARCCOSH ## Returnerer den inverse hyperbolske cosinus til et tall +ASIN = ARCSIN ## Returnerer arcus sinus til et tall +ASINH = ARCSINH ## Returnerer den inverse hyperbolske sinus til et tall +ATAN = ARCTAN ## Returnerer arcus tangens til et tall +ATAN2 = ARCTAN2 ## Returnerer arcus tangens fra x- og y-koordinater +ATANH = ARCTANH ## Returnerer den inverse hyperbolske tangens til et tall +CEILING = AVRUND.GJELDENDE.MULTIPLUM ## Runder av et tall til nærmeste heltall eller til nærmeste signifikante multiplum +COMBIN = KOMBINASJON ## Returnerer antall kombinasjoner for ett gitt antall objekter +COS = COS ## Returnerer cosinus til et tall +COSH = COSH ## Returnerer den hyperbolske cosinus til et tall +DEGREES = GRADER ## Konverterer radianer til grader +EVEN = AVRUND.TIL.PARTALL ## Runder av et tall oppover til nærmeste heltall som er et partall +EXP = EKSP ## Returnerer e opphøyd i en angitt potens +FACT = FAKULTET ## Returnerer fakultet til et tall +FACTDOUBLE = DOBBELFAKT ## Returnerer et talls doble fakultet +FLOOR = AVRUND.GJELDENDE.MULTIPLUM.NED ## Avrunder et tall nedover, mot null +GCD = SFF ## Returnerer høyeste felles divisor +INT = HELTALL ## Avrunder et tall nedover til nærmeste heltall +LCM = MFM ## Returnerer minste felles multiplum +LN = LN ## Returnerer den naturlige logaritmen til et tall +LOG = LOG ## Returnerer logaritmen for et tall til et angitt grunntall +LOG10 = LOG10 ## Returnerer logaritmen med grunntall 10 for et tall +MDETERM = MDETERM ## Returnerer matrisedeterminanten til en matrise +MINVERSE = MINVERS ## Returnerer den inverse matrisen til en matrise +MMULT = MMULT ## Returnerer matriseproduktet av to matriser +MOD = REST ## Returnerer resten fra en divisjon +MROUND = MRUND ## Returnerer et tall avrundet til det ønskede multiplum +MULTINOMIAL = MULTINOMINELL ## Returnerer det multinominelle for et sett med tall +ODD = AVRUND.TIL.ODDETALL ## Runder av et tall oppover til nærmeste heltall som er et oddetall +PI = PI ## Returnerer verdien av pi +POWER = OPPHØYD.I ## Returnerer resultatet av et tall opphøyd i en potens +PRODUCT = PRODUKT ## Multipliserer argumentene +QUOTIENT = KVOTIENT ## Returnerer heltallsdelen av en divisjon +RADIANS = RADIANER ## Konverterer grader til radianer +RAND = TILFELDIG ## Returnerer et tilfeldig tall mellom 0 og 1 +RANDBETWEEN = TILFELDIGMELLOM ## Returnerer et tilfeldig tall innenfor et angitt område +ROMAN = ROMERTALL ## Konverterer vanlige tall til romertall, som tekst +ROUND = AVRUND ## Avrunder et tall til et angitt antall sifre +ROUNDDOWN = AVRUND.NED ## Avrunder et tall nedover, mot null +ROUNDUP = AVRUND.OPP ## Runder av et tall oppover, bort fra null +SERIESSUM = SUMMER.REKKE ## Returnerer summen av en geometrisk rekke, basert på formelen +SIGN = FORTEGN ## Returnerer fortegnet for et tall +SIN = SIN ## Returnerer sinus til en gitt vinkel +SINH = SINH ## Returnerer den hyperbolske sinus til et tall +SQRT = ROT ## Returnerer en positiv kvadratrot +SQRTPI = ROTPI ## Returnerer kvadratroten av (tall * pi) +SUBTOTAL = DELSUM ## Returnerer en delsum i en liste eller database +SUM = SUMMER ## Legger sammen argumentene +SUMIF = SUMMERHVIS ## Legger sammen cellene angitt ved et gitt vilkår +SUMIFS = SUMMER.HVIS.SETT ## Legger sammen cellene i et område som oppfyller flere vilkår +SUMPRODUCT = SUMMERPRODUKT ## Returnerer summen av produktene av tilsvarende matrisekomponenter +SUMSQ = SUMMERKVADRAT ## Returnerer kvadratsummen av argumentene +SUMX2MY2 = SUMMERX2MY2 ## Returnerer summen av differansen av kvadratene for tilsvarende verdier i to matriser +SUMX2PY2 = SUMMERX2PY2 ## Returnerer summen av kvadratsummene for tilsvarende verdier i to matriser +SUMXMY2 = SUMMERXMY2 ## Returnerer summen av kvadratene av differansen for tilsvarende verdier i to matriser +TAN = TAN ## Returnerer tangens for et tall +TANH = TANH ## Returnerer den hyperbolske tangens for et tall +TRUNC = AVKORT ## Korter av et tall til et heltall + + +## +## Statistical functions Statistiske funksjoner +## +AVEDEV = GJENNOMSNITTSAVVIK ## Returnerer datapunktenes gjennomsnittlige absoluttavvik fra middelverdien +AVERAGE = GJENNOMSNITT ## Returnerer gjennomsnittet for argumentene +AVERAGEA = GJENNOMSNITTA ## Returnerer gjennomsnittet for argumentene, inkludert tall, tekst og logiske verdier +AVERAGEIF = GJENNOMSNITTHVIS ## Returnerer gjennomsnittet (aritmetisk gjennomsnitt) av alle cellene i et område som oppfyller et bestemt vilkår +AVERAGEIFS = GJENNOMSNITT.HVIS.SETT ## Returnerer gjennomsnittet (aritmetisk middelverdi) av alle celler som oppfyller flere vilkår. +BETADIST = BETA.FORDELING ## Returnerer den kumulative betafordelingsfunksjonen +BETAINV = INVERS.BETA.FORDELING ## Returnerer den inverse verdien til fordelingsfunksjonen for en angitt betafordeling +BINOMDIST = BINOM.FORDELING ## Returnerer den individuelle binomiske sannsynlighetsfordelingen +CHIDIST = KJI.FORDELING ## Returnerer den ensidige sannsynligheten for en kjikvadrert fordeling +CHIINV = INVERS.KJI.FORDELING ## Returnerer den inverse av den ensidige sannsynligheten for den kjikvadrerte fordelingen +CHITEST = KJI.TEST ## Utfører testen for uavhengighet +CONFIDENCE = KONFIDENS ## Returnerer konfidensintervallet til gjennomsnittet for en populasjon +CORREL = KORRELASJON ## Returnerer korrelasjonskoeffisienten mellom to datasett +COUNT = ANTALL ## Teller hvor mange tall som er i argumentlisten +COUNTA = ANTALLA ## Teller hvor mange verdier som er i argumentlisten +COUNTBLANK = TELLBLANKE ## Teller antall tomme celler i et område. +COUNTIF = ANTALL.HVIS ## Teller antall celler i et område som oppfyller gitte vilkår +COUNTIFS = ANTALL.HVIS.SETT ## Teller antallet ikke-tomme celler i et område som oppfyller flere vilkår +COVAR = KOVARIANS ## Returnerer kovariansen, gjennomsnittet av produktene av parvise avvik +CRITBINOM = GRENSE.BINOM ## Returnerer den minste verdien der den kumulative binomiske fordelingen er mindre enn eller lik en vilkårsverdi +DEVSQ = AVVIK.KVADRERT ## Returnerer summen av kvadrerte avvik +EXPONDIST = EKSP.FORDELING ## Returnerer eksponentialfordelingen +FDIST = FFORDELING ## Returnerer F-sannsynlighetsfordelingen +FINV = FFORDELING.INVERS ## Returnerer den inverse av den sannsynlige F-fordelingen +FISHER = FISHER ## Returnerer Fisher-transformasjonen +FISHERINV = FISHERINV ## Returnerer den inverse av Fisher-transformasjonen +FORECAST = PROGNOSE ## Returnerer en verdi langs en lineær trend +FREQUENCY = FREKVENS ## Returnerer en frekvensdistribusjon som en loddrett matrise +FTEST = FTEST ## Returnerer resultatet av en F-test +GAMMADIST = GAMMAFORDELING ## Returnerer gammafordelingen +GAMMAINV = GAMMAINV ## Returnerer den inverse av den gammakumulative fordelingen +GAMMALN = GAMMALN ## Returnerer den naturlige logaritmen til gammafunksjonen G(x) +GEOMEAN = GJENNOMSNITT.GEOMETRISK ## Returnerer den geometriske middelverdien +GROWTH = VEKST ## Returnerer verdier langs en eksponentiell trend +HARMEAN = GJENNOMSNITT.HARMONISK ## Returnerer den harmoniske middelverdien +HYPGEOMDIST = HYPGEOM.FORDELING ## Returnerer den hypergeometriske fordelingen +INTERCEPT = SKJÆRINGSPUNKT ## Returnerer skjæringspunktet til den lineære regresjonslinjen +KURT = KURT ## Returnerer kurtosen til et datasett +LARGE = N.STØRST ## Returnerer den n-te største verdien i et datasett +LINEST = RETTLINJE ## Returnerer parameterne til en lineær trend +LOGEST = KURVE ## Returnerer parameterne til en eksponentiell trend +LOGINV = LOGINV ## Returnerer den inverse lognormale fordelingen +LOGNORMDIST = LOGNORMFORD ## Returnerer den kumulative lognormale fordelingen +MAX = STØRST ## Returnerer maksimumsverdien i en argumentliste +MAXA = MAKSA ## Returnerer maksimumsverdien i en argumentliste, inkludert tall, tekst og logiske verdier +MEDIAN = MEDIAN ## Returnerer medianen til tallene som er gitt +MIN = MIN ## Returnerer minimumsverdien i en argumentliste +MINA = MINA ## Returnerer den minste verdien i en argumentliste, inkludert tall, tekst og logiske verdier +MODE = MODUS ## Returnerer den vanligste verdien i et datasett +NEGBINOMDIST = NEGBINOM.FORDELING ## Returnerer den negative binomiske fordelingen +NORMDIST = NORMALFORDELING ## Returnerer den kumulative normalfordelingen +NORMINV = NORMINV ## Returnerer den inverse kumulative normalfordelingen +NORMSDIST = NORMSFORDELING ## Returnerer standard kumulativ normalfordeling +NORMSINV = NORMSINV ## Returnerer den inverse av den den kumulative standard normalfordelingen +PEARSON = PEARSON ## Returnerer produktmomentkorrelasjonskoeffisienten, Pearson +PERCENTILE = PERSENTIL ## Returnerer den n-te persentil av verdiene i et område +PERCENTRANK = PROSENTDEL ## Returnerer prosentrangeringen av en verdi i et datasett +PERMUT = PERMUTER ## Returnerer antall permutasjoner for et gitt antall objekter +POISSON = POISSON ## Returnerer Poissons sannsynlighetsfordeling +PROB = SANNSYNLIG ## Returnerer sannsynligheten for at verdier i et område ligger mellom to grenser +QUARTILE = KVARTIL ## Returnerer kvartilen til et datasett +RANK = RANG ## Returnerer rangeringen av et tall, eller plassen tallet har i en rekke +RSQ = RKVADRAT ## Returnerer kvadratet av produktmomentkorrelasjonskoeffisienten (Pearsons r) +SKEW = SKJEVFORDELING ## Returnerer skjevheten i en fordeling +SLOPE = STIGNINGSTALL ## Returnerer stigningtallet for den lineære regresjonslinjen +SMALL = N.MINST ## Returnerer den n-te minste verdien i et datasett +STANDARDIZE = NORMALISER ## Returnerer en normalisert verdi +STDEV = STDAV ## Estimere standardavvik på grunnlag av et utvalg +STDEVA = STDAVVIKA ## Estimerer standardavvik basert på et utvalg, inkludert tall, tekst og logiske verdier +STDEVP = STDAVP ## Beregner standardavvik basert på hele populasjonen +STDEVPA = STDAVVIKPA ## Beregner standardavvik basert på hele populasjonen, inkludert tall, tekst og logiske verdier +STEYX = STANDARDFEIL ## Returnerer standardfeilen for den predikerte y-verdien for hver x i regresjonen +TDIST = TFORDELING ## Returnerer en Student t-fordeling +TINV = TINV ## Returnerer den inverse Student t-fordelingen +TREND = TREND ## Returnerer verdier langs en lineær trend +TRIMMEAN = TRIMMET.GJENNOMSNITT ## Returnerer den interne middelverdien til et datasett +TTEST = TTEST ## Returnerer sannsynligheten assosiert med en Student t-test +VAR = VARIANS ## Estimerer varians basert på et utvalg +VARA = VARIANSA ## Estimerer varians basert på et utvalg, inkludert tall, tekst og logiske verdier +VARP = VARIANSP ## Beregner varians basert på hele populasjonen +VARPA = VARIANSPA ## Beregner varians basert på hele populasjonen, inkludert tall, tekst og logiske verdier +WEIBULL = WEIBULL.FORDELING ## Returnerer Weibull-fordelingen +ZTEST = ZTEST ## Returnerer den ensidige sannsynlighetsverdien for en z-test + + +## +## Text functions Tekstfunksjoner +## +ASC = STIGENDE ## Endrer fullbreddes (dobbeltbyte) engelske bokstaver eller katakana i en tegnstreng, til halvbreddes (enkeltbyte) tegn +BAHTTEXT = BAHTTEKST ## Konverterer et tall til tekst, og bruker valutaformatet ß (baht) +CHAR = TEGNKODE ## Returnerer tegnet som svarer til kodenummeret +CLEAN = RENSK ## Fjerner alle tegn som ikke kan skrives ut, fra teksten +CODE = KODE ## Returnerer en numerisk kode for det første tegnet i en tekststreng +CONCATENATE = KJEDE.SAMMEN ## Slår sammen flere tekstelementer til ett tekstelement +DOLLAR = VALUTA ## Konverterer et tall til tekst, og bruker valutaformatet $ (dollar) +EXACT = EKSAKT ## Kontrollerer om to tekstverdier er like +FIND = FINN ## Finner en tekstverdi inne i en annen (skiller mellom store og små bokstaver) +FINDB = FINNB ## Finner en tekstverdi inne i en annen (skiller mellom store og små bokstaver) +FIXED = FASTSATT ## Formaterer et tall som tekst med et bestemt antall desimaler +JIS = JIS ## Endrer halvbreddes (enkeltbyte) engelske bokstaver eller katakana i en tegnstreng, til fullbreddes (dobbeltbyte) tegn +LEFT = VENSTRE ## Returnerer tegnene lengst til venstre i en tekstverdi +LEFTB = VENSTREB ## Returnerer tegnene lengst til venstre i en tekstverdi +LEN = LENGDE ## Returnerer antall tegn i en tekststreng +LENB = LENGDEB ## Returnerer antall tegn i en tekststreng +LOWER = SMÅ ## Konverterer tekst til små bokstaver +MID = DELTEKST ## Returnerer et angitt antall tegn fra en tekststreng, og begynner fra posisjonen du angir +MIDB = DELTEKSTB ## Returnerer et angitt antall tegn fra en tekststreng, og begynner fra posisjonen du angir +PHONETIC = FURIGANA ## Trekker ut fonetiske tegn (furigana) fra en tekststreng +PROPER = STOR.FORBOKSTAV ## Gir den første bokstaven i hvert ord i en tekstverdi stor forbokstav +REPLACE = ERSTATT ## Erstatter tegn i en tekst +REPLACEB = ERSTATTB ## Erstatter tegn i en tekst +REPT = GJENTA ## Gjentar tekst et gitt antall ganger +RIGHT = HØYRE ## Returnerer tegnene lengst til høyre i en tekstverdi +RIGHTB = HØYREB ## Returnerer tegnene lengst til høyre i en tekstverdi +SEARCH = SØK ## Finner en tekstverdi inne i en annen (skiller ikke mellom store og små bokstaver) +SEARCHB = SØKB ## Finner en tekstverdi inne i en annen (skiller ikke mellom store og små bokstaver) +SUBSTITUTE = BYTT.UT ## Bytter ut gammel tekst med ny tekst i en tekststreng +T = T ## Konverterer argumentene til tekst +TEXT = TEKST ## Formaterer et tall og konverterer det til tekst +TRIM = TRIMME ## Fjerner mellomrom fra tekst +UPPER = STORE ## Konverterer tekst til store bokstaver +VALUE = VERDI ## Konverterer et tekstargument til et tall diff --git a/admin/helpers/PHPExcel/locale/no/index.html b/admin/helpers/PHPExcel/locale/no/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/no/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/pl/config b/admin/helpers/PHPExcel/locale/pl/config new file mode 100644 index 00000000..4dd75bee --- /dev/null +++ b/admin/helpers/PHPExcel/locale/pl/config @@ -0,0 +1,47 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = zł + + +## +## Excel Error Codes (For future use) +## +NULL = #ZERO! +DIV0 = #DZIEL/0! +VALUE = #ARG! +REF = #ADR! +NAME = #NAZWA? +NUM = #LICZBA! +NA = #N/D! diff --git a/admin/helpers/PHPExcel/locale/pl/functions b/admin/helpers/PHPExcel/locale/pl/functions new file mode 100644 index 00000000..1881a71e --- /dev/null +++ b/admin/helpers/PHPExcel/locale/pl/functions @@ -0,0 +1,438 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Calculation +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ +## +## + + +## +## Add-in and Automation functions Funkcje dodatków i automatyzacji +## +GETPIVOTDATA = WEŹDANETABELI ## Zwraca dane przechowywane w raporcie tabeli przestawnej. + + +## +## Cube functions Funkcje modułów +## +CUBEKPIMEMBER = ELEMENT.KPI.MODUŁU ## Zwraca nazwę, właściwość i miarę kluczowego wskaźnika wydajności (KPI) oraz wyświetla nazwę i właściwość w komórce. Wskaźnik KPI jest miarą ilościową, taką jak miesięczny zysk brutto lub kwartalna fluktuacja pracowników, używaną do monitorowania wydajności organizacji. +CUBEMEMBER = ELEMENT.MODUŁU ## Zwraca element lub krotkę z hierarchii modułu. Służy do sprawdzania, czy element lub krotka istnieje w module. +CUBEMEMBERPROPERTY = WŁAŚCIWOŚĆ.ELEMENTU.MODUŁU ## Zwraca wartość właściwości elementu w module. Służy do sprawdzania, czy nazwa elementu istnieje w module, i zwracania określonej właściwości dla tego elementu. +CUBERANKEDMEMBER = USZEREGOWANY.ELEMENT.MODUŁU ## Zwraca n-ty (albo uszeregowany) element zestawu. Służy do zwracania elementu lub elementów zestawu, na przykład najlepszego sprzedawcy lub 10 najlepszych studentów. +CUBESET = ZESTAW.MODUŁÓW ## Definiuje obliczony zestaw elementów lub krotek, wysyłając wyrażenie zestawu do serwera modułu, który tworzy zestaw i zwraca go do programu Microsoft Office Excel. +CUBESETCOUNT = LICZNIK.MODUŁÓW.ZESTAWU ## Zwraca liczbę elementów zestawu. +CUBEVALUE = WARTOŚĆ.MODUŁU ## Zwraca zagregowaną wartość z modułu. + + +## +## Database functions Funkcje baz danych +## +DAVERAGE = BD.ŚREDNIA ## Zwraca wartość średniej wybranych wpisów bazy danych. +DCOUNT = BD.ILE.REKORDÓW ## Zlicza komórki zawierające liczby w bazie danych. +DCOUNTA = BD.ILE.REKORDÓW.A ## Zlicza niepuste komórki w bazie danych. +DGET = BD.POLE ## Wyodrębnia z bazy danych jeden rekord spełniający określone kryteria. +DMAX = BD.MAX ## Zwraca wartość maksymalną z wybranych wpisów bazy danych. +DMIN = BD.MIN ## Zwraca wartość minimalną z wybranych wpisów bazy danych. +DPRODUCT = BD.ILOCZYN ## Mnoży wartości w konkretnym, spełniającym kryteria polu rekordów bazy danych. +DSTDEV = BD.ODCH.STANDARD ## Szacuje odchylenie standardowe na podstawie próbki z wybranych wpisów bazy danych. +DSTDEVP = BD.ODCH.STANDARD.POPUL ## Oblicza odchylenie standardowe na podstawie całej populacji wybranych wpisów bazy danych. +DSUM = BD.SUMA ## Dodaje liczby w kolumnie pól rekordów bazy danych, które spełniają kryteria. +DVAR = BD.WARIANCJA ## Szacuje wariancję na podstawie próbki z wybranych wpisów bazy danych. +DVARP = BD.WARIANCJA.POPUL ## Oblicza wariancję na podstawie całej populacji wybranych wpisów bazy danych. + + +## +## Date and time functions Funkcje dat, godzin i czasu +## +DATE = DATA ## Zwraca liczbę seryjną dla wybranej daty. +DATEVALUE = DATA.WARTOŚĆ ## Konwertuje datę w formie tekstu na liczbę seryjną. +DAY = DZIEŃ ## Konwertuje liczbę seryjną na dzień miesiąca. +DAYS360 = DNI.360 ## Oblicza liczbę dni między dwiema datami na podstawie roku 360-dniowego. +EDATE = UPŁDNI ## Zwraca liczbę seryjną daty jako wskazaną liczbę miesięcy przed określoną datą początkową lub po niej. +EOMONTH = EOMONTH ## Zwraca liczbę seryjną ostatniego dnia miesiąca przed określoną liczbą miesięcy lub po niej. +HOUR = GODZINA ## Konwertuje liczbę seryjną na godzinę. +MINUTE = MINUTA ## Konwertuje liczbę seryjną na minutę. +MONTH = MIESIĄC ## Konwertuje liczbę seryjną na miesiąc. +NETWORKDAYS = NETWORKDAYS ## Zwraca liczbę pełnych dni roboczych między dwiema datami. +NOW = TERAZ ## Zwraca liczbę seryjną bieżącej daty i godziny. +SECOND = SEKUNDA ## Konwertuje liczbę seryjną na sekundę. +TIME = CZAS ## Zwraca liczbę seryjną określonego czasu. +TIMEVALUE = CZAS.WARTOŚĆ ## Konwertuje czas w formie tekstu na liczbę seryjną. +TODAY = DZIŚ ## Zwraca liczbę seryjną dla daty bieżącej. +WEEKDAY = DZIEŃ.TYG ## Konwertuje liczbę seryjną na dzień tygodnia. +WEEKNUM = WEEKNUM ## Konwertuje liczbę seryjną na liczbę reprezentującą numer tygodnia w roku. +WORKDAY = WORKDAY ## Zwraca liczbę seryjną dla daty przed określoną liczbą dni roboczych lub po niej. +YEAR = ROK ## Konwertuje liczbę seryjną na rok. +YEARFRAC = YEARFRAC ## Zwraca część roku reprezentowaną przez pełną liczbę dni między datą początkową a datą końcową. + + +## +## Engineering functions Funkcje inżynierskie +## +BESSELI = BESSELI ## Zwraca wartość zmodyfikowanej funkcji Bessela In(x). +BESSELJ = BESSELJ ## Zwraca wartość funkcji Bessela Jn(x). +BESSELK = BESSELK ## Zwraca wartość zmodyfikowanej funkcji Bessela Kn(x). +BESSELY = BESSELY ## Zwraca wartość funkcji Bessela Yn(x). +BIN2DEC = BIN2DEC ## Konwertuje liczbę w postaci dwójkowej na liczbę w postaci dziesiętnej. +BIN2HEX = BIN2HEX ## Konwertuje liczbę w postaci dwójkowej na liczbę w postaci szesnastkowej. +BIN2OCT = BIN2OCT ## Konwertuje liczbę w postaci dwójkowej na liczbę w postaci ósemkowej. +COMPLEX = COMPLEX ## Konwertuje część rzeczywistą i urojoną na liczbę zespoloną. +CONVERT = CONVERT ## Konwertuje liczbę z jednego systemu miar na inny. +DEC2BIN = DEC2BIN ## Konwertuje liczbę w postaci dziesiętnej na postać dwójkową. +DEC2HEX = DEC2HEX ## Konwertuje liczbę w postaci dziesiętnej na liczbę w postaci szesnastkowej. +DEC2OCT = DEC2OCT ## Konwertuje liczbę w postaci dziesiętnej na liczbę w postaci ósemkowej. +DELTA = DELTA ## Sprawdza, czy dwie wartości są równe. +ERF = ERF ## Zwraca wartość funkcji błędu. +ERFC = ERFC ## Zwraca wartość komplementarnej funkcji błędu. +GESTEP = GESTEP ## Sprawdza, czy liczba jest większa niż wartość progowa. +HEX2BIN = HEX2BIN ## Konwertuje liczbę w postaci szesnastkowej na liczbę w postaci dwójkowej. +HEX2DEC = HEX2DEC ## Konwertuje liczbę w postaci szesnastkowej na liczbę w postaci dziesiętnej. +HEX2OCT = HEX2OCT ## Konwertuje liczbę w postaci szesnastkowej na liczbę w postaci ósemkowej. +IMABS = IMABS ## Zwraca wartość bezwzględną (moduł) liczby zespolonej. +IMAGINARY = IMAGINARY ## Zwraca wartość części urojonej liczby zespolonej. +IMARGUMENT = IMARGUMENT ## Zwraca wartość argumentu liczby zespolonej, przy czym kąt wyrażony jest w radianach. +IMCONJUGATE = IMCONJUGATE ## Zwraca wartość liczby sprzężonej danej liczby zespolonej. +IMCOS = IMCOS ## Zwraca wartość cosinusa liczby zespolonej. +IMDIV = IMDIV ## Zwraca wartość ilorazu dwóch liczb zespolonych. +IMEXP = IMEXP ## Zwraca postać wykładniczą liczby zespolonej. +IMLN = IMLN ## Zwraca wartość logarytmu naturalnego liczby zespolonej. +IMLOG10 = IMLOG10 ## Zwraca wartość logarytmu dziesiętnego liczby zespolonej. +IMLOG2 = IMLOG2 ## Zwraca wartość logarytmu liczby zespolonej przy podstawie 2. +IMPOWER = IMPOWER ## Zwraca wartość liczby zespolonej podniesionej do potęgi całkowitej. +IMPRODUCT = IMPRODUCT ## Zwraca wartość iloczynu liczb zespolonych. +IMREAL = IMREAL ## Zwraca wartość części rzeczywistej liczby zespolonej. +IMSIN = IMSIN ## Zwraca wartość sinusa liczby zespolonej. +IMSQRT = IMSQRT ## Zwraca wartość pierwiastka kwadratowego z liczby zespolonej. +IMSUB = IMSUB ## Zwraca wartość różnicy dwóch liczb zespolonych. +IMSUM = IMSUM ## Zwraca wartość sumy liczb zespolonych. +OCT2BIN = OCT2BIN ## Konwertuje liczbę w postaci ósemkowej na liczbę w postaci dwójkowej. +OCT2DEC = OCT2DEC ## Konwertuje liczbę w postaci ósemkowej na liczbę w postaci dziesiętnej. +OCT2HEX = OCT2HEX ## Konwertuje liczbę w postaci ósemkowej na liczbę w postaci szesnastkowej. + + +## +## Financial functions Funkcje finansowe +## +ACCRINT = ACCRINT ## Zwraca narosłe odsetki dla papieru wartościowego z oprocentowaniem okresowym. +ACCRINTM = ACCRINTM ## Zwraca narosłe odsetki dla papieru wartościowego z oprocentowaniem w terminie wykupu. +AMORDEGRC = AMORDEGRC ## Zwraca amortyzację dla każdego okresu rozliczeniowego z wykorzystaniem współczynnika amortyzacji. +AMORLINC = AMORLINC ## Zwraca amortyzację dla każdego okresu rozliczeniowego. +COUPDAYBS = COUPDAYBS ## Zwraca liczbę dni od początku okresu dywidendy do dnia rozliczeniowego. +COUPDAYS = COUPDAYS ## Zwraca liczbę dni w okresie dywidendy, z uwzględnieniem dnia rozliczeniowego. +COUPDAYSNC = COUPDAYSNC ## Zwraca liczbę dni od dnia rozliczeniowego do daty następnego dnia dywidendy. +COUPNCD = COUPNCD ## Zwraca dzień następnej dywidendy po dniu rozliczeniowym. +COUPNUM = COUPNUM ## Zwraca liczbę dywidend płatnych między dniem rozliczeniowym a dniem wykupu. +COUPPCD = COUPPCD ## Zwraca dzień poprzedniej dywidendy przed dniem rozliczeniowym. +CUMIPMT = CUMIPMT ## Zwraca wartość procentu składanego płatnego między dwoma okresami. +CUMPRINC = CUMPRINC ## Zwraca wartość kapitału skumulowanego spłaty pożyczki między dwoma okresami. +DB = DB ## Zwraca amortyzację środka trwałego w danym okresie metodą degresywną z zastosowaniem stałej bazowej. +DDB = DDB ## Zwraca amortyzację środka trwałego za podany okres metodą degresywną z zastosowaniem podwójnej bazowej lub metodą określoną przez użytkownika. +DISC = DISC ## Zwraca wartość stopy dyskontowej papieru wartościowego. +DOLLARDE = DOLLARDE ## Konwertuje cenę w postaci ułamkowej na cenę wyrażoną w postaci dziesiętnej. +DOLLARFR = DOLLARFR ## Konwertuje cenę wyrażoną w postaci dziesiętnej na cenę wyrażoną w postaci ułamkowej. +DURATION = DURATION ## Zwraca wartość rocznego przychodu z papieru wartościowego o okresowych wypłatach oprocentowania. +EFFECT = EFFECT ## Zwraca wartość efektywnej rocznej stopy procentowej. +FV = FV ## Zwraca przyszłą wartość lokaty. +FVSCHEDULE = FVSCHEDULE ## Zwraca przyszłą wartość kapitału początkowego wraz z szeregiem procentów składanych. +INTRATE = INTRATE ## Zwraca wartość stopy procentowej papieru wartościowego całkowicie ulokowanego. +IPMT = IPMT ## Zwraca wysokość spłaty oprocentowania lokaty za dany okres. +IRR = IRR ## Zwraca wartość wewnętrznej stopy zwrotu dla serii przepływów gotówkowych. +ISPMT = ISPMT ## Oblicza wysokość spłaty oprocentowania za dany okres lokaty. +MDURATION = MDURATION ## Zwraca wartość zmodyfikowanego okresu Macauleya dla papieru wartościowego o założonej wartości nominalnej 100 zł. +MIRR = MIRR ## Zwraca wartość wewnętrznej stopy zwrotu dla przypadku, gdy dodatnie i ujemne przepływy gotówkowe mają różne stopy. +NOMINAL = NOMINAL ## Zwraca wysokość nominalnej rocznej stopy procentowej. +NPER = NPER ## Zwraca liczbę okresów dla lokaty. +NPV = NPV ## Zwraca wartość bieżącą netto lokaty na podstawie szeregu okresowych przepływów gotówkowych i stopy dyskontowej. +ODDFPRICE = ODDFPRICE ## Zwraca cenę za 100 zł wartości nominalnej papieru wartościowego z nietypowym pierwszym okresem. +ODDFYIELD = ODDFYIELD ## Zwraca rentowność papieru wartościowego z nietypowym pierwszym okresem. +ODDLPRICE = ODDLPRICE ## Zwraca cenę za 100 zł wartości nominalnej papieru wartościowego z nietypowym ostatnim okresem. +ODDLYIELD = ODDLYIELD ## Zwraca rentowność papieru wartościowego z nietypowym ostatnim okresem. +PMT = PMT ## Zwraca wartość okresowej płatności raty rocznej. +PPMT = PPMT ## Zwraca wysokość spłaty kapitału w przypadku lokaty dla danego okresu. +PRICE = PRICE ## Zwraca cenę za 100 zł wartości nominalnej papieru wartościowego z oprocentowaniem okresowym. +PRICEDISC = PRICEDISC ## Zwraca cenę za 100 zł wartości nominalnej papieru wartościowego zdyskontowanego. +PRICEMAT = PRICEMAT ## Zwraca cenę za 100 zł wartości nominalnej papieru wartościowego z oprocentowaniem w terminie wykupu. +PV = PV ## Zwraca wartość bieżącą lokaty. +RATE = RATE ## Zwraca wysokość stopy procentowej w okresie raty rocznej. +RECEIVED = RECEIVED ## Zwraca wartość kapitału otrzymanego przy wykupie papieru wartościowego całkowicie ulokowanego. +SLN = SLN ## Zwraca amortyzację środka trwałego za jeden okres metodą liniową. +SYD = SYD ## Zwraca amortyzację środka trwałego za dany okres metodą sumy cyfr lat amortyzacji. +TBILLEQ = TBILLEQ ## Zwraca rentowność ekwiwalentu obligacji dla bonu skarbowego. +TBILLPRICE = TBILLPRICE ## Zwraca cenę za 100 zł wartości nominalnej bonu skarbowego. +TBILLYIELD = TBILLYIELD ## Zwraca rentowność bonu skarbowego. +VDB = VDB ## Oblicza amortyzację środka trwałego w danym okresie lub jego części metodą degresywną. +XIRR = XIRR ## Zwraca wartość wewnętrznej stopy zwrotu dla serii rozłożonych w czasie przepływów gotówkowych, niekoniecznie okresowych. +XNPV = XNPV ## Zwraca wartość bieżącą netto dla serii rozłożonych w czasie przepływów gotówkowych, niekoniecznie okresowych. +YIELD = YIELD ## Zwraca rentowność papieru wartościowego z oprocentowaniem okresowym. +YIELDDISC = YIELDDISC ## Zwraca roczną rentowność zdyskontowanego papieru wartościowego, na przykład bonu skarbowego. +YIELDMAT = YIELDMAT ## Zwraca roczną rentowność papieru wartościowego oprocentowanego przy wykupie. + + +## +## Information functions Funkcje informacyjne +## +CELL = KOMÓRKA ## Zwraca informacje o formacie, położeniu lub zawartości komórki. +ERROR.TYPE = NR.BŁĘDU ## Zwraca liczbę odpowiadającą typowi błędu. +INFO = INFO ## Zwraca informację o aktualnym środowisku pracy. +ISBLANK = CZY.PUSTA ## Zwraca wartość PRAWDA, jeśli wartość jest pusta. +ISERR = CZY.BŁ ## Zwraca wartość PRAWDA, jeśli wartość jest dowolną wartością błędu, z wyjątkiem #N/D!. +ISERROR = CZY.BŁĄD ## Zwraca wartość PRAWDA, jeśli wartość jest dowolną wartością błędu. +ISEVEN = ISEVEN ## Zwraca wartość PRAWDA, jeśli liczba jest parzysta. +ISLOGICAL = CZY.LOGICZNA ## Zwraca wartość PRAWDA, jeśli wartość jest wartością logiczną. +ISNA = CZY.BRAK ## Zwraca wartość PRAWDA, jeśli wartość jest wartością błędu #N/D!. +ISNONTEXT = CZY.NIE.TEKST ## Zwraca wartość PRAWDA, jeśli wartość nie jest tekstem. +ISNUMBER = CZY.LICZBA ## Zwraca wartość PRAWDA, jeśli wartość jest liczbą. +ISODD = ISODD ## Zwraca wartość PRAWDA, jeśli liczba jest nieparzysta. +ISREF = CZY.ADR ## Zwraca wartość PRAWDA, jeśli wartość jest odwołaniem. +ISTEXT = CZY.TEKST ## Zwraca wartość PRAWDA, jeśli wartość jest tekstem. +N = L ## Zwraca wartość przekonwertowaną na postać liczbową. +NA = BRAK ## Zwraca wartość błędu #N/D!. +TYPE = TYP ## Zwraca liczbę wskazującą typ danych wartości. + + +## +## Logical functions Funkcje logiczne +## +AND = ORAZ ## Zwraca wartość PRAWDA, jeśli wszystkie argumenty mają wartość PRAWDA. +FALSE = FAŁSZ ## Zwraca wartość logiczną FAŁSZ. +IF = JEŻELI ## Określa warunek logiczny do sprawdzenia. +IFERROR = JEŻELI.BŁĄD ## Zwraca określoną wartość, jeśli wynikiem obliczenia formuły jest błąd; w przeciwnym przypadku zwraca wynik formuły. +NOT = NIE ## Odwraca wartość logiczną argumentu. +OR = LUB ## Zwraca wartość PRAWDA, jeśli co najmniej jeden z argumentów ma wartość PRAWDA. +TRUE = PRAWDA ## Zwraca wartość logiczną PRAWDA. + + +## +## Lookup and reference functions Funkcje wyszukiwania i odwołań +## +ADDRESS = ADRES ## Zwraca odwołanie do jednej komórki w arkuszu jako wartość tekstową. +AREAS = OBSZARY ## Zwraca liczbę obszarów występujących w odwołaniu. +CHOOSE = WYBIERZ ## Wybiera wartość z listy wartości. +COLUMN = NR.KOLUMNY ## Zwraca numer kolumny z odwołania. +COLUMNS = LICZBA.KOLUMN ## Zwraca liczbę kolumn dla danego odwołania. +HLOOKUP = WYSZUKAJ.POZIOMO ## Przegląda górny wiersz tablicy i zwraca wartość wskazanej komórki. +HYPERLINK = HIPERŁĄCZE ## Tworzy skrót lub skok, który pozwala otwierać dokument przechowywany na serwerze sieciowym, w sieci intranet lub w Internecie. +INDEX = INDEKS ## Używa indeksu do wybierania wartości z odwołania lub tablicy. +INDIRECT = ADR.POŚR ## Zwraca odwołanie określone przez wartość tekstową. +LOOKUP = WYSZUKAJ ## Wyszukuje wartości w wektorze lub tablicy. +MATCH = PODAJ.POZYCJĘ ## Wyszukuje wartości w odwołaniu lub w tablicy. +OFFSET = PRZESUNIĘCIE ## Zwraca adres przesunięty od danego odwołania. +ROW = WIERSZ ## Zwraca numer wiersza odwołania. +ROWS = ILE.WIERSZY ## Zwraca liczbę wierszy dla danego odwołania. +RTD = RTD ## Pobiera dane w czasie rzeczywistym z programu obsługującego automatyzację COM (Automatyzacja: Sposób pracy z obiektami aplikacji pochodzącymi z innej aplikacji lub narzędzia projektowania. Nazywana wcześniej Automatyzacją OLE, Automatyzacja jest standardem przemysłowym i funkcją obiektowego modelu składników (COM, Component Object Model).). +TRANSPOSE = TRANSPONUJ ## Zwraca transponowaną tablicę. +VLOOKUP = WYSZUKAJ.PIONOWO ## Przeszukuje pierwszą kolumnę tablicy i przechodzi wzdłuż wiersza, aby zwrócić wartość komórki. + + +## +## Math and trigonometry functions Funkcje matematyczne i trygonometryczne +## +ABS = MODUŁ.LICZBY ## Zwraca wartość absolutną liczby. +ACOS = ACOS ## Zwraca arcus cosinus liczby. +ACOSH = ACOSH ## Zwraca arcus cosinus hiperboliczny liczby. +ASIN = ASIN ## Zwraca arcus sinus liczby. +ASINH = ASINH ## Zwraca arcus sinus hiperboliczny liczby. +ATAN = ATAN ## Zwraca arcus tangens liczby. +ATAN2 = ATAN2 ## Zwraca arcus tangens liczby na podstawie współrzędnych x i y. +ATANH = ATANH ## Zwraca arcus tangens hiperboliczny liczby. +CEILING = ZAOKR.W.GÓRĘ ## Zaokrągla liczbę do najbliższej liczby całkowitej lub do najbliższej wielokrotności dokładności. +COMBIN = KOMBINACJE ## Zwraca liczbę kombinacji dla danej liczby obiektów. +COS = COS ## Zwraca cosinus liczby. +COSH = COSH ## Zwraca cosinus hiperboliczny liczby. +DEGREES = STOPNIE ## Konwertuje radiany na stopnie. +EVEN = ZAOKR.DO.PARZ ## Zaokrągla liczbę w górę do najbliższej liczby parzystej. +EXP = EXP ## Zwraca wartość liczby e podniesionej do potęgi określonej przez podaną liczbę. +FACT = SILNIA ## Zwraca silnię liczby. +FACTDOUBLE = FACTDOUBLE ## Zwraca podwójną silnię liczby. +FLOOR = ZAOKR.W.DÓŁ ## Zaokrągla liczbę w dół, w kierunku zera. +GCD = GCD ## Zwraca największy wspólny dzielnik. +INT = ZAOKR.DO.CAŁK ## Zaokrągla liczbę w dół do najbliższej liczby całkowitej. +LCM = LCM ## Zwraca najmniejszą wspólną wielokrotność. +LN = LN ## Zwraca logarytm naturalny podanej liczby. +LOG = LOG ## Zwraca logarytm danej liczby przy zadanej podstawie. +LOG10 = LOG10 ## Zwraca logarytm dziesiętny liczby. +MDETERM = WYZNACZNIK.MACIERZY ## Zwraca wyznacznik macierzy tablicy. +MINVERSE = MACIERZ.ODW ## Zwraca odwrotność macierzy tablicy. +MMULT = MACIERZ.ILOCZYN ## Zwraca iloczyn macierzy dwóch tablic. +MOD = MOD ## Zwraca resztę z dzielenia. +MROUND = MROUND ## Zwraca liczbę zaokrągloną do żądanej wielokrotności. +MULTINOMIAL = MULTINOMIAL ## Zwraca wielomian dla zbioru liczb. +ODD = ZAOKR.DO.NPARZ ## Zaokrągla liczbę w górę do najbliższej liczby nieparzystej. +PI = PI ## Zwraca wartość liczby Pi. +POWER = POTĘGA ## Zwraca liczbę podniesioną do potęgi. +PRODUCT = ILOCZYN ## Mnoży argumenty. +QUOTIENT = QUOTIENT ## Zwraca iloraz (całkowity). +RADIANS = RADIANY ## Konwertuje stopnie na radiany. +RAND = LOS ## Zwraca liczbę pseudolosową z zakresu od 0 do 1. +RANDBETWEEN = RANDBETWEEN ## Zwraca liczbę pseudolosową z zakresu określonego przez podane argumenty. +ROMAN = RZYMSKIE ## Konwertuje liczbę arabską na rzymską jako tekst. +ROUND = ZAOKR ## Zaokrągla liczbę do określonej liczby cyfr. +ROUNDDOWN = ZAOKR.DÓŁ ## Zaokrągla liczbę w dół, w kierunku zera. +ROUNDUP = ZAOKR.GÓRA ## Zaokrągla liczbę w górę, w kierunku od zera. +SERIESSUM = SERIESSUM ## Zwraca sumę szeregu potęgowego na podstawie wzoru. +SIGN = ZNAK.LICZBY ## Zwraca znak liczby. +SIN = SIN ## Zwraca sinus danego kąta. +SINH = SINH ## Zwraca sinus hiperboliczny liczby. +SQRT = PIERWIASTEK ## Zwraca dodatni pierwiastek kwadratowy. +SQRTPI = SQRTPI ## Zwraca pierwiastek kwadratowy iloczynu (liczba * Pi). +SUBTOTAL = SUMY.POŚREDNIE ## Zwraca sumę częściową listy lub bazy danych. +SUM = SUMA ## Dodaje argumenty. +SUMIF = SUMA.JEŻELI ## Dodaje komórki określone przez podane kryterium. +SUMIFS = SUMA.WARUNKÓW ## Dodaje komórki w zakresie, które spełniają wiele kryteriów. +SUMPRODUCT = SUMA.ILOCZYNÓW ## Zwraca sumę iloczynów odpowiednich elementów tablicy. +SUMSQ = SUMA.KWADRATÓW ## Zwraca sumę kwadratów argumentów. +SUMX2MY2 = SUMA.X2.M.Y2 ## Zwraca sumę różnic kwadratów odpowiednich wartości w dwóch tablicach. +SUMX2PY2 = SUMA.X2.P.Y2 ## Zwraca sumę sum kwadratów odpowiednich wartości w dwóch tablicach. +SUMXMY2 = SUMA.XMY.2 ## Zwraca sumę kwadratów różnic odpowiednich wartości w dwóch tablicach. +TAN = TAN ## Zwraca tangens liczby. +TANH = TANH ## Zwraca tangens hiperboliczny liczby. +TRUNC = LICZBA.CAŁK ## Przycina liczbę do wartości całkowitej. + + +## +## Statistical functions Funkcje statystyczne +## +AVEDEV = ODCH.ŚREDNIE ## Zwraca średnią wartość odchyleń absolutnych punktów danych od ich wartości średniej. +AVERAGE = ŚREDNIA ## Zwraca wartość średnią argumentów. +AVERAGEA = ŚREDNIA.A ## Zwraca wartość średnią argumentów, z uwzględnieniem liczb, tekstów i wartości logicznych. +AVERAGEIF = ŚREDNIA.JEŻELI ## Zwraca średnią (średnią arytmetyczną) wszystkich komórek w zakresie, które spełniają podane kryteria. +AVERAGEIFS = ŚREDNIA.WARUNKÓW ## Zwraca średnią (średnią arytmetyczną) wszystkich komórek, które spełniają jedno lub więcej kryteriów. +BETADIST = ROZKŁAD.BETA ## Zwraca skumulowaną funkcję gęstości prawdopodobieństwa beta. +BETAINV = ROZKŁAD.BETA.ODW ## Zwraca odwrotność skumulowanej funkcji gęstości prawdopodobieństwa beta. +BINOMDIST = ROZKŁAD.DWUM ## Zwraca pojedynczy składnik dwumianowego rozkładu prawdopodobieństwa. +CHIDIST = ROZKŁAD.CHI ## Zwraca wartość jednostronnego prawdopodobieństwa rozkładu chi-kwadrat. +CHIINV = ROZKŁAD.CHI.ODW ## Zwraca odwrotność wartości jednostronnego prawdopodobieństwa rozkładu chi-kwadrat. +CHITEST = TEST.CHI ## Zwraca test niezależności. +CONFIDENCE = UFNOŚĆ ## Zwraca interwał ufności dla średniej populacji. +CORREL = WSP.KORELACJI ## Zwraca współczynnik korelacji dwóch zbiorów danych. +COUNT = ILE.LICZB ## Zlicza liczby znajdujące się na liście argumentów. +COUNTA = ILE.NIEPUSTYCH ## Zlicza wartości znajdujące się na liście argumentów. +COUNTBLANK = LICZ.PUSTE ## Zwraca liczbę pustych komórek w pewnym zakresie. +COUNTIF = LICZ.JEŻELI ## Zlicza komórki wewnątrz zakresu, które spełniają podane kryteria. +COUNTIFS = LICZ.WARUNKI ## Zlicza komórki wewnątrz zakresu, które spełniają wiele kryteriów. +COVAR = KOWARIANCJA ## Zwraca kowariancję, czyli średnią wartość iloczynów odpowiednich odchyleń. +CRITBINOM = PRÓG.ROZKŁAD.DWUM ## Zwraca najmniejszą wartość, dla której skumulowany rozkład dwumianowy jest mniejszy niż wartość kryterium lub równy jej. +DEVSQ = ODCH.KWADRATOWE ## Zwraca sumę kwadratów odchyleń. +EXPONDIST = ROZKŁAD.EXP ## Zwraca rozkład wykładniczy. +FDIST = ROZKŁAD.F ## Zwraca rozkład prawdopodobieństwa F. +FINV = ROZKŁAD.F.ODW ## Zwraca odwrotność rozkładu prawdopodobieństwa F. +FISHER = ROZKŁAD.FISHER ## Zwraca transformację Fishera. +FISHERINV = ROZKŁAD.FISHER.ODW ## Zwraca odwrotność transformacji Fishera. +FORECAST = REGLINX ## Zwraca wartość trendu liniowego. +FREQUENCY = CZĘSTOŚĆ ## Zwraca rozkład częstotliwości jako tablicę pionową. +FTEST = TEST.F ## Zwraca wynik testu F. +GAMMADIST = ROZKŁAD.GAMMA ## Zwraca rozkład gamma. +GAMMAINV = ROZKŁAD.GAMMA.ODW ## Zwraca odwrotność skumulowanego rozkładu gamma. +GAMMALN = ROZKŁAD.LIN.GAMMA ## Zwraca logarytm naturalny funkcji gamma, Γ(x). +GEOMEAN = ŚREDNIA.GEOMETRYCZNA ## Zwraca średnią geometryczną. +GROWTH = REGEXPW ## Zwraca wartości trendu wykładniczego. +HARMEAN = ŚREDNIA.HARMONICZNA ## Zwraca średnią harmoniczną. +HYPGEOMDIST = ROZKŁAD.HIPERGEOM ## Zwraca rozkład hipergeometryczny. +INTERCEPT = ODCIĘTA ## Zwraca punkt przecięcia osi pionowej z linią regresji liniowej. +KURT = KURTOZA ## Zwraca kurtozę zbioru danych. +LARGE = MAX.K ## Zwraca k-tą największą wartość ze zbioru danych. +LINEST = REGLINP ## Zwraca parametry trendu liniowego. +LOGEST = REGEXPP ## Zwraca parametry trendu wykładniczego. +LOGINV = ROZKŁAD.LOG.ODW ## Zwraca odwrotność rozkładu logarytmu naturalnego. +LOGNORMDIST = ROZKŁAD.LOG ## Zwraca skumulowany rozkład logarytmu naturalnego. +MAX = MAX ## Zwraca maksymalną wartość listy argumentów. +MAXA = MAX.A ## Zwraca maksymalną wartość listy argumentów, z uwzględnieniem liczb, tekstów i wartości logicznych. +MEDIAN = MEDIANA ## Zwraca medianę podanych liczb. +MIN = MIN ## Zwraca minimalną wartość listy argumentów. +MINA = MIN.A ## Zwraca najmniejszą wartość listy argumentów, z uwzględnieniem liczb, tekstów i wartości logicznych. +MODE = WYST.NAJCZĘŚCIEJ ## Zwraca wartość najczęściej występującą w zbiorze danych. +NEGBINOMDIST = ROZKŁAD.DWUM.PRZEC ## Zwraca ujemny rozkład dwumianowy. +NORMDIST = ROZKŁAD.NORMALNY ## Zwraca rozkład normalny skumulowany. +NORMINV = ROZKŁAD.NORMALNY.ODW ## Zwraca odwrotność rozkładu normalnego skumulowanego. +NORMSDIST = ROZKŁAD.NORMALNY.S ## Zwraca standardowy rozkład normalny skumulowany. +NORMSINV = ROZKŁAD.NORMALNY.S.ODW ## Zwraca odwrotność standardowego rozkładu normalnego skumulowanego. +PEARSON = PEARSON ## Zwraca współczynnik korelacji momentu iloczynu Pearsona. +PERCENTILE = PERCENTYL ## Wyznacza k-ty percentyl wartości w zakresie. +PERCENTRANK = PROCENT.POZYCJA ## Zwraca procentową pozycję wartości w zbiorze danych. +PERMUT = PERMUTACJE ## Zwraca liczbę permutacji dla danej liczby obiektów. +POISSON = ROZKŁAD.POISSON ## Zwraca rozkład Poissona. +PROB = PRAWDPD ## Zwraca prawdopodobieństwo, że wartości w zakresie leżą pomiędzy dwiema granicami. +QUARTILE = KWARTYL ## Wyznacza kwartyl zbioru danych. +RANK = POZYCJA ## Zwraca pozycję liczby na liście liczb. +RSQ = R.KWADRAT ## Zwraca kwadrat współczynnika korelacji momentu iloczynu Pearsona. +SKEW = SKOŚNOŚĆ ## Zwraca skośność rozkładu. +SLOPE = NACHYLENIE ## Zwraca nachylenie linii regresji liniowej. +SMALL = MIN.K ## Zwraca k-tą najmniejszą wartość ze zbioru danych. +STANDARDIZE = NORMALIZUJ ## Zwraca wartość znormalizowaną. +STDEV = ODCH.STANDARDOWE ## Szacuje odchylenie standardowe na podstawie próbki. +STDEVA = ODCH.STANDARDOWE.A ## Szacuje odchylenie standardowe na podstawie próbki, z uwzględnieniem liczb, tekstów i wartości logicznych. +STDEVP = ODCH.STANDARD.POPUL ## Oblicza odchylenie standardowe na podstawie całej populacji. +STDEVPA = ODCH.STANDARD.POPUL.A ## Oblicza odchylenie standardowe na podstawie całej populacji, z uwzględnieniem liczb, teksów i wartości logicznych. +STEYX = REGBŁSTD ## Zwraca błąd standardowy przewidzianej wartości y dla każdej wartości x w regresji. +TDIST = ROZKŁAD.T ## Zwraca rozkład t-Studenta. +TINV = ROZKŁAD.T.ODW ## Zwraca odwrotność rozkładu t-Studenta. +TREND = REGLINW ## Zwraca wartości trendu liniowego. +TRIMMEAN = ŚREDNIA.WEWN ## Zwraca średnią wartość dla wnętrza zbioru danych. +TTEST = TEST.T ## Zwraca prawdopodobieństwo związane z testem t-Studenta. +VAR = WARIANCJA ## Szacuje wariancję na podstawie próbki. +VARA = WARIANCJA.A ## Szacuje wariancję na podstawie próbki, z uwzględnieniem liczb, tekstów i wartości logicznych. +VARP = WARIANCJA.POPUL ## Oblicza wariancję na podstawie całej populacji. +VARPA = WARIANCJA.POPUL.A ## Oblicza wariancję na podstawie całej populacji, z uwzględnieniem liczb, tekstów i wartości logicznych. +WEIBULL = ROZKŁAD.WEIBULL ## Zwraca rozkład Weibulla. +ZTEST = TEST.Z ## Zwraca wartość jednostronnego prawdopodobieństwa testu z. + + +## +## Text functions Funkcje tekstowe +## +ASC = ASC ## Zamienia litery angielskie lub katakana o pełnej szerokości (dwubajtowe) w ciągu znaków na znaki o szerokości połówkowej (jednobajtowe). +BAHTTEXT = BAHTTEXT ## Konwertuje liczbę na tekst, stosując format walutowy ß (baht). +CHAR = ZNAK ## Zwraca znak o podanym numerze kodu. +CLEAN = OCZYŚĆ ## Usuwa z tekstu wszystkie znaki, które nie mogą być drukowane. +CODE = KOD ## Zwraca kod numeryczny pierwszego znaku w ciągu tekstowym. +CONCATENATE = ZŁĄCZ.TEKSTY ## Łączy kilka oddzielnych tekstów w jeden tekst. +DOLLAR = KWOTA ## Konwertuje liczbę na tekst, stosując format walutowy $ (dolar). +EXACT = PORÓWNAJ ## Sprawdza identyczność dwóch wartości tekstowych. +FIND = ZNAJDŹ ## Znajduje jedną wartość tekstową wewnątrz innej (z uwzględnieniem wielkich i małych liter). +FINDB = ZNAJDŹB ## Znajduje jedną wartość tekstową wewnątrz innej (z uwzględnieniem wielkich i małych liter). +FIXED = ZAOKR.DO.TEKST ## Formatuje liczbę jako tekst przy stałej liczbie miejsc dziesiętnych. +JIS = JIS ## Zmienia litery angielskie lub katakana o szerokości połówkowej (jednobajtowe) w ciągu znaków na znaki o pełnej szerokości (dwubajtowe). +LEFT = LEWY ## Zwraca skrajne lewe znaki z wartości tekstowej. +LEFTB = LEWYB ## Zwraca skrajne lewe znaki z wartości tekstowej. +LEN = DŁ ## Zwraca liczbę znaków ciągu tekstowego. +LENB = DŁ.B ## Zwraca liczbę znaków ciągu tekstowego. +LOWER = LITERY.MAŁE ## Konwertuje wielkie litery tekstu na małe litery. +MID = FRAGMENT.TEKSTU ## Zwraca określoną liczbę znaków z ciągu tekstowego, zaczynając od zadanej pozycji. +MIDB = FRAGMENT.TEKSTU.B ## Zwraca określoną liczbę znaków z ciągu tekstowego, zaczynając od zadanej pozycji. +PHONETIC = PHONETIC ## Wybiera znaki fonetyczne (furigana) z ciągu tekstowego. +PROPER = Z.WIELKIEJ.LITERY ## Zastępuje pierwszą literę każdego wyrazu tekstu wielką literą. +REPLACE = ZASTĄP ## Zastępuje znaki w tekście. +REPLACEB = ZASTĄP.B ## Zastępuje znaki w tekście. +REPT = POWT ## Powiela tekst daną liczbę razy. +RIGHT = PRAWY ## Zwraca skrajne prawe znaki z wartości tekstowej. +RIGHTB = PRAWYB ## Zwraca skrajne prawe znaki z wartości tekstowej. +SEARCH = SZUKAJ.TEKST ## Wyszukuje jedną wartość tekstową wewnątrz innej (bez uwzględniania wielkości liter). +SEARCHB = SZUKAJ.TEKST.B ## Wyszukuje jedną wartość tekstową wewnątrz innej (bez uwzględniania wielkości liter). +SUBSTITUTE = PODSTAW ## Podstawia nowy tekst w miejsce poprzedniego tekstu w ciągu tekstowym. +T = T ## Konwertuje argumenty na tekst. +TEXT = TEKST ## Formatuje liczbę i konwertuje ją na tekst. +TRIM = USUŃ.ZBĘDNE.ODSTĘPY ## Usuwa spacje z tekstu. +UPPER = LITERY.WIELKIE ## Konwertuje znaki tekstu na wielkie litery. +VALUE = WARTOŚĆ ## Konwertuje argument tekstowy na liczbę. diff --git a/admin/helpers/PHPExcel/locale/pl/index.html b/admin/helpers/PHPExcel/locale/pl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/pl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/pt/br/config b/admin/helpers/PHPExcel/locale/pt/br/config new file mode 100644 index 00000000..45b6fbd9 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/pt/br/config @@ -0,0 +1,47 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = R$ + + +## +## Excel Error Codes (For future use) +## +NULL = #NULO! +DIV0 = #DIV/0! +VALUE = #VALOR! +REF = #REF! +NAME = #NOME? +NUM = #NÚM! +NA = #N/D diff --git a/admin/helpers/PHPExcel/locale/pt/br/functions b/admin/helpers/PHPExcel/locale/pt/br/functions new file mode 100644 index 00000000..f3ba3a35 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/pt/br/functions @@ -0,0 +1,408 @@ +## +## Add-in and Automation functions Funções Suplemento e Automação +## +GETPIVOTDATA = INFODADOSTABELADINÂMICA ## Retorna os dados armazenados em um relatório de tabela dinâmica + + +## +## Cube functions Funções de Cubo +## +CUBEKPIMEMBER = MEMBROKPICUBO ## Retorna o nome de um KPI (indicador de desempenho-chave), uma propriedade e uma medida e exibe o nome e a propriedade na célula. Um KPI é uma medida quantificável, como o lucro bruto mensal ou a rotatividade trimestral dos funcionários, usada para monitorar o desempenho de uma organização. +CUBEMEMBER = MEMBROCUBO ## Retorna um membro ou tupla em uma hierarquia de cubo. Use para validar se o membro ou tupla existe no cubo. +CUBEMEMBERPROPERTY = PROPRIEDADEMEMBROCUBO ## Retorna o valor da propriedade de um membro no cubo. Usada para validar a existência do nome do membro no cubo e para retornar a propriedade especificada para esse membro. +CUBERANKEDMEMBER = MEMBROCLASSIFICADOCUBO ## Retorna o enésimo membro, ou o membro ordenado, em um conjunto. Use para retornar um ou mais elementos em um conjunto, assim como o melhor vendedor ou os dez melhores alunos. +CUBESET = CONJUNTOCUBO ## Define um conjunto calculado de membros ou tuplas enviando uma expressão do conjunto para o cubo no servidor, que cria o conjunto e o retorna para o Microsoft Office Excel. +CUBESETCOUNT = CONTAGEMCONJUNTOCUBO ## Retorna o número de itens em um conjunto. +CUBEVALUE = VALORCUBO ## Retorna um valor agregado de um cubo. + + +## +## Database functions Funções de banco de dados +## +DAVERAGE = BDMÉDIA ## Retorna a média das entradas selecionadas de um banco de dados +DCOUNT = BDCONTAR ## Conta as células que contêm números em um banco de dados +DCOUNTA = BDCONTARA ## Conta células não vazias em um banco de dados +DGET = BDEXTRAIR ## Extrai de um banco de dados um único registro que corresponde a um critério específico +DMAX = BDMÁX ## Retorna o valor máximo de entradas selecionadas de um banco de dados +DMIN = BDMÍN ## Retorna o valor mínimo de entradas selecionadas de um banco de dados +DPRODUCT = BDMULTIPL ## Multiplica os valores em um campo específico de registros que correspondem ao critério em um banco de dados +DSTDEV = BDEST ## Estima o desvio padrão com base em uma amostra de entradas selecionadas de um banco de dados +DSTDEVP = BDDESVPA ## Calcula o desvio padrão com base na população inteira de entradas selecionadas de um banco de dados +DSUM = BDSOMA ## Adiciona os números à coluna de campos de registros do banco de dados que correspondem ao critério +DVAR = BDVAREST ## Estima a variância com base em uma amostra de entradas selecionadas de um banco de dados +DVARP = BDVARP ## Calcula a variância com base na população inteira de entradas selecionadas de um banco de dados + + +## +## Date and time functions Funções de data e hora +## +DATE = DATA ## Retorna o número de série de uma data específica +DATEVALUE = DATA.VALOR ## Converte uma data na forma de texto para um número de série +DAY = DIA ## Converte um número de série em um dia do mês +DAYS360 = DIAS360 ## Calcula o número de dias entre duas datas com base em um ano de 360 dias +EDATE = DATAM ## Retorna o número de série da data que é o número indicado de meses antes ou depois da data inicial +EOMONTH = FIMMÊS ## Retorna o número de série do último dia do mês antes ou depois de um número especificado de meses +HOUR = HORA ## Converte um número de série em uma hora +MINUTE = MINUTO ## Converte um número de série em um minuto +MONTH = MÊS ## Converte um número de série em um mês +NETWORKDAYS = DIATRABALHOTOTAL ## Retorna o número de dias úteis inteiros entre duas datas +NOW = AGORA ## Retorna o número de série seqüencial da data e hora atuais +SECOND = SEGUNDO ## Converte um número de série em um segundo +TIME = HORA ## Retorna o número de série de uma hora específica +TIMEVALUE = VALOR.TEMPO ## Converte um horário na forma de texto para um número de série +TODAY = HOJE ## Retorna o número de série da data de hoje +WEEKDAY = DIA.DA.SEMANA ## Converte um número de série em um dia da semana +WEEKNUM = NÚMSEMANA ## Converte um número de série em um número que representa onde a semana cai numericamente em um ano +WORKDAY = DIATRABALHO ## Retorna o número de série da data antes ou depois de um número específico de dias úteis +YEAR = ANO ## Converte um número de série em um ano +YEARFRAC = FRAÇÃOANO ## Retorna a fração do ano que representa o número de dias entre data_inicial e data_final + + +## +## Engineering functions Funções de engenharia +## +BESSELI = BESSELI ## Retorna a função de Bessel In(x) modificada +BESSELJ = BESSELJ ## Retorna a função de Bessel Jn(x) +BESSELK = BESSELK ## Retorna a função de Bessel Kn(x) modificada +BESSELY = BESSELY ## Retorna a função de Bessel Yn(x) +BIN2DEC = BIN2DEC ## Converte um número binário em decimal +BIN2HEX = BIN2HEX ## Converte um número binário em hexadecimal +BIN2OCT = BIN2OCT ## Converte um número binário em octal +COMPLEX = COMPLEX ## Converte coeficientes reais e imaginários e um número complexo +CONVERT = CONVERTER ## Converte um número de um sistema de medida para outro +DEC2BIN = DECABIN ## Converte um número decimal em binário +DEC2HEX = DECAHEX ## Converte um número decimal em hexadecimal +DEC2OCT = DECAOCT ## Converte um número decimal em octal +DELTA = DELTA ## Testa se dois valores são iguais +ERF = FUNERRO ## Retorna a função de erro +ERFC = FUNERROCOMPL ## Retorna a função de erro complementar +GESTEP = DEGRAU ## Testa se um número é maior do que um valor limite +HEX2BIN = HEXABIN ## Converte um número hexadecimal em binário +HEX2DEC = HEXADEC ## Converte um número hexadecimal em decimal +HEX2OCT = HEXAOCT ## Converte um número hexadecimal em octal +IMABS = IMABS ## Retorna o valor absoluto (módulo) de um número complexo +IMAGINARY = IMAGINÁRIO ## Retorna o coeficiente imaginário de um número complexo +IMARGUMENT = IMARG ## Retorna o argumento teta, um ângulo expresso em radianos +IMCONJUGATE = IMCONJ ## Retorna o conjugado complexo de um número complexo +IMCOS = IMCOS ## Retorna o cosseno de um número complexo +IMDIV = IMDIV ## Retorna o quociente de dois números complexos +IMEXP = IMEXP ## Retorna o exponencial de um número complexo +IMLN = IMLN ## Retorna o logaritmo natural de um número complexo +IMLOG10 = IMLOG10 ## Retorna o logaritmo de base 10 de um número complexo +IMLOG2 = IMLOG2 ## Retorna o logaritmo de base 2 de um número complexo +IMPOWER = IMPOT ## Retorna um número complexo elevado a uma potência inteira +IMPRODUCT = IMPROD ## Retorna o produto de números complexos +IMREAL = IMREAL ## Retorna o coeficiente real de um número complexo +IMSIN = IMSENO ## Retorna o seno de um número complexo +IMSQRT = IMRAIZ ## Retorna a raiz quadrada de um número complexo +IMSUB = IMSUBTR ## Retorna a diferença entre dois números complexos +IMSUM = IMSOMA ## Retorna a soma de números complexos +OCT2BIN = OCTABIN ## Converte um número octal em binário +OCT2DEC = OCTADEC ## Converte um número octal em decimal +OCT2HEX = OCTAHEX ## Converte um número octal em hexadecimal + + +## +## Financial functions Funções financeiras +## +ACCRINT = JUROSACUM ## Retorna a taxa de juros acumulados de um título que paga uma taxa periódica de juros +ACCRINTM = JUROSACUMV ## Retorna os juros acumulados de um título que paga juros no vencimento +AMORDEGRC = AMORDEGRC ## Retorna a depreciação para cada período contábil usando o coeficiente de depreciação +AMORLINC = AMORLINC ## Retorna a depreciação para cada período contábil +COUPDAYBS = CUPDIASINLIQ ## Retorna o número de dias do início do período de cupom até a data de liquidação +COUPDAYS = CUPDIAS ## Retorna o número de dias no período de cupom que contém a data de quitação +COUPDAYSNC = CUPDIASPRÓX ## Retorna o número de dias da data de liquidação até a data do próximo cupom +COUPNCD = CUPDATAPRÓX ## Retorna a próxima data de cupom após a data de quitação +COUPNUM = CUPNÚM ## Retorna o número de cupons pagáveis entre as datas de quitação e vencimento +COUPPCD = CUPDATAANT ## Retorna a data de cupom anterior à data de quitação +CUMIPMT = PGTOJURACUM ## Retorna os juros acumulados pagos entre dois períodos +CUMPRINC = PGTOCAPACUM ## Retorna o capital acumulado pago sobre um empréstimo entre dois períodos +DB = BD ## Retorna a depreciação de um ativo para um período especificado, usando o método de balanço de declínio fixo +DDB = BDD ## Retorna a depreciação de um ativo com relação a um período especificado usando o método de saldos decrescentes duplos ou qualquer outro método especificado por você +DISC = DESC ## Retorna a taxa de desconto de um título +DOLLARDE = MOEDADEC ## Converte um preço em formato de moeda, na forma fracionária, em um preço na forma decimal +DOLLARFR = MOEDAFRA ## Converte um preço, apresentado na forma decimal, em um preço apresentado na forma fracionária +DURATION = DURAÇÃO ## Retorna a duração anual de um título com pagamentos de juros periódicos +EFFECT = EFETIVA ## Retorna a taxa de juros anual efetiva +FV = VF ## Retorna o valor futuro de um investimento +FVSCHEDULE = VFPLANO ## Retorna o valor futuro de um capital inicial após a aplicação de uma série de taxas de juros compostas +INTRATE = TAXAJUROS ## Retorna a taxa de juros de um título totalmente investido +IPMT = IPGTO ## Retorna o pagamento de juros para um investimento em um determinado período +IRR = TIR ## Retorna a taxa interna de retorno de uma série de fluxos de caixa +ISPMT = ÉPGTO ## Calcula os juros pagos durante um período específico de um investimento +MDURATION = MDURAÇÃO ## Retorna a duração de Macauley modificada para um título com um valor de paridade equivalente a R$ 100 +MIRR = MTIR ## Calcula a taxa interna de retorno em que fluxos de caixa positivos e negativos são financiados com diferentes taxas +NOMINAL = NOMINAL ## Retorna a taxa de juros nominal anual +NPER = NPER ## Retorna o número de períodos de um investimento +NPV = VPL ## Retorna o valor líquido atual de um investimento com base em uma série de fluxos de caixa periódicos e em uma taxa de desconto +ODDFPRICE = PREÇOPRIMINC ## Retorna o preço por R$ 100 de valor nominal de um título com um primeiro período indefinido +ODDFYIELD = LUCROPRIMINC ## Retorna o rendimento de um título com um primeiro período indefinido +ODDLPRICE = PREÇOÚLTINC ## Retorna o preço por R$ 100 de valor nominal de um título com um último período de cupom indefinido +ODDLYIELD = LUCROÚLTINC ## Retorna o rendimento de um título com um último período indefinido +PMT = PGTO ## Retorna o pagamento periódico de uma anuidade +PPMT = PPGTO ## Retorna o pagamento de capital para determinado período de investimento +PRICE = PREÇO ## Retorna a preço por R$ 100,00 de valor nominal de um título que paga juros periódicos +PRICEDISC = PREÇODESC ## Retorna o preço por R$ 100,00 de valor nominal de um título descontado +PRICEMAT = PREÇOVENC ## Retorna o preço por R$ 100,00 de valor nominal de um título que paga juros no vencimento +PV = VP ## Retorna o valor presente de um investimento +RATE = TAXA ## Retorna a taxa de juros por período de uma anuidade +RECEIVED = RECEBER ## Retorna a quantia recebida no vencimento de um título totalmente investido +SLN = DPD ## Retorna a depreciação em linha reta de um ativo durante um período +SYD = SDA ## Retorna a depreciação dos dígitos da soma dos anos de um ativo para um período especificado +TBILLEQ = OTN ## Retorna o rendimento de um título equivalente a uma obrigação do Tesouro +TBILLPRICE = OTNVALOR ## Retorna o preço por R$ 100,00 de valor nominal de uma obrigação do Tesouro +TBILLYIELD = OTNLUCRO ## Retorna o rendimento de uma obrigação do Tesouro +VDB = BDV ## Retorna a depreciação de um ativo para um período especificado ou parcial usando um método de balanço declinante +XIRR = XTIR ## Fornece a taxa interna de retorno para um programa de fluxos de caixa que não é necessariamente periódico +XNPV = XVPL ## Retorna o valor presente líquido de um programa de fluxos de caixa que não é necessariamente periódico +YIELD = LUCRO ## Retorna o lucro de um título que paga juros periódicos +YIELDDISC = LUCRODESC ## Retorna o rendimento anual de um título descontado. Por exemplo, uma obrigação do Tesouro +YIELDMAT = LUCROVENC ## Retorna o lucro anual de um título que paga juros no vencimento + + +## +## Information functions Funções de informação +## +CELL = CÉL ## Retorna informações sobre formatação, localização ou conteúdo de uma célula +ERROR.TYPE = TIPO.ERRO ## Retorna um número correspondente a um tipo de erro +INFO = INFORMAÇÃO ## Retorna informações sobre o ambiente operacional atual +ISBLANK = ÉCÉL.VAZIA ## Retorna VERDADEIRO se o valor for vazio +ISERR = ÉERRO ## Retorna VERDADEIRO se o valor for um valor de erro diferente de #N/D +ISERROR = ÉERROS ## Retorna VERDADEIRO se o valor for um valor de erro +ISEVEN = ÉPAR ## Retorna VERDADEIRO se o número for par +ISLOGICAL = ÉLÓGICO ## Retorna VERDADEIRO se o valor for um valor lógico +ISNA = É.NÃO.DISP ## Retorna VERDADEIRO se o valor for o valor de erro #N/D +ISNONTEXT = É.NÃO.TEXTO ## Retorna VERDADEIRO se o valor for diferente de texto +ISNUMBER = ÉNÚM ## Retorna VERDADEIRO se o valor for um número +ISODD = ÉIMPAR ## Retorna VERDADEIRO se o número for ímpar +ISREF = ÉREF ## Retorna VERDADEIRO se o valor for uma referência +ISTEXT = ÉTEXTO ## Retorna VERDADEIRO se o valor for texto +N = N ## Retorna um valor convertido em um número +NA = NÃO.DISP ## Retorna o valor de erro #N/D +TYPE = TIPO ## Retorna um número indicando o tipo de dados de um valor + + +## +## Logical functions Funções lógicas +## +AND = E ## Retorna VERDADEIRO se todos os seus argumentos forem VERDADEIROS +FALSE = FALSO ## Retorna o valor lógico FALSO +IF = SE ## Especifica um teste lógico a ser executado +IFERROR = SEERRO ## Retornará um valor que você especifica se uma fórmula for avaliada para um erro; do contrário, retornará o resultado da fórmula +NOT = NÃO ## Inverte o valor lógico do argumento +OR = OU ## Retorna VERDADEIRO se um dos argumentos for VERDADEIRO +TRUE = VERDADEIRO ## Retorna o valor lógico VERDADEIRO + + +## +## Lookup and reference functions Funções de pesquisa e referência +## +ADDRESS = ENDEREÇO ## Retorna uma referência como texto para uma única célula em uma planilha +AREAS = ÁREAS ## Retorna o número de áreas em uma referência +CHOOSE = ESCOLHER ## Escolhe um valor a partir de uma lista de valores +COLUMN = COL ## Retorna o número da coluna de uma referência +COLUMNS = COLS ## Retorna o número de colunas em uma referência +HLOOKUP = PROCH ## Procura na linha superior de uma matriz e retorna o valor da célula especificada +HYPERLINK = HYPERLINK ## Cria um atalho ou salto que abre um documento armazenado em um servidor de rede, uma intranet ou na Internet +INDEX = ÍNDICE ## Usa um índice para escolher um valor de uma referência ou matriz +INDIRECT = INDIRETO ## Retorna uma referência indicada por um valor de texto +LOOKUP = PROC ## Procura valores em um vetor ou em uma matriz +MATCH = CORRESP ## Procura valores em uma referência ou em uma matriz +OFFSET = DESLOC ## Retorna um deslocamento de referência com base em uma determinada referência +ROW = LIN ## Retorna o número da linha de uma referência +ROWS = LINS ## Retorna o número de linhas em uma referência +RTD = RTD ## Recupera dados em tempo real de um programa que ofereça suporte a automação COM (automação: uma forma de trabalhar com objetos de um aplicativo a partir de outro aplicativo ou ferramenta de desenvolvimento. Chamada inicialmente de automação OLE, a automação é um padrão industrial e um recurso do modelo de objeto componente (COM).) +TRANSPOSE = TRANSPOR ## Retorna a transposição de uma matriz +VLOOKUP = PROCV ## Procura na primeira coluna de uma matriz e move ao longo da linha para retornar o valor de uma célula + + +## +## Math and trigonometry functions Funções matemáticas e trigonométricas +## +ABS = ABS ## Retorna o valor absoluto de um número +ACOS = ACOS ## Retorna o arco cosseno de um número +ACOSH = ACOSH ## Retorna o cosseno hiperbólico inverso de um número +ASIN = ASEN ## Retorna o arco seno de um número +ASINH = ASENH ## Retorna o seno hiperbólico inverso de um número +ATAN = ATAN ## Retorna o arco tangente de um número +ATAN2 = ATAN2 ## Retorna o arco tangente das coordenadas x e y especificadas +ATANH = ATANH ## Retorna a tangente hiperbólica inversa de um número +CEILING = TETO ## Arredonda um número para o inteiro mais próximo ou para o múltiplo mais próximo de significância +COMBIN = COMBIN ## Retorna o número de combinações de um determinado número de objetos +COS = COS ## Retorna o cosseno de um número +COSH = COSH ## Retorna o cosseno hiperbólico de um número +DEGREES = GRAUS ## Converte radianos em graus +EVEN = PAR ## Arredonda um número para cima até o inteiro par mais próximo +EXP = EXP ## Retorna e elevado à potência de um número especificado +FACT = FATORIAL ## Retorna o fatorial de um número +FACTDOUBLE = FATDUPLO ## Retorna o fatorial duplo de um número +FLOOR = ARREDMULTB ## Arredonda um número para baixo até zero +GCD = MDC ## Retorna o máximo divisor comum +INT = INT ## Arredonda um número para baixo até o número inteiro mais próximo +LCM = MMC ## Retorna o mínimo múltiplo comum +LN = LN ## Retorna o logaritmo natural de um número +LOG = LOG ## Retorna o logaritmo de um número de uma base especificada +LOG10 = LOG10 ## Retorna o logaritmo de base 10 de um número +MDETERM = MATRIZ.DETERM ## Retorna o determinante de uma matriz de uma variável do tipo matriz +MINVERSE = MATRIZ.INVERSO ## Retorna a matriz inversa de uma matriz +MMULT = MATRIZ.MULT ## Retorna o produto de duas matrizes +MOD = RESTO ## Retorna o resto da divisão +MROUND = MARRED ## Retorna um número arredondado ao múltiplo desejado +MULTINOMIAL = MULTINOMIAL ## Retorna o multinomial de um conjunto de números +ODD = ÍMPAR ## Arredonda um número para cima até o inteiro ímpar mais próximo +PI = PI ## Retorna o valor de Pi +POWER = POTÊNCIA ## Fornece o resultado de um número elevado a uma potência +PRODUCT = MULT ## Multiplica seus argumentos +QUOTIENT = QUOCIENTE ## Retorna a parte inteira de uma divisão +RADIANS = RADIANOS ## Converte graus em radianos +RAND = ALEATÓRIO ## Retorna um número aleatório entre 0 e 1 +RANDBETWEEN = ALEATÓRIOENTRE ## Retorna um número aleatório entre os números especificados +ROMAN = ROMANO ## Converte um algarismo arábico em romano, como texto +ROUND = ARRED ## Arredonda um número até uma quantidade especificada de dígitos +ROUNDDOWN = ARREDONDAR.PARA.BAIXO ## Arredonda um número para baixo até zero +ROUNDUP = ARREDONDAR.PARA.CIMA ## Arredonda um número para cima, afastando-o de zero +SERIESSUM = SOMASEQÜÊNCIA ## Retorna a soma de uma série polinomial baseada na fórmula +SIGN = SINAL ## Retorna o sinal de um número +SIN = SEN ## Retorna o seno de um ângulo dado +SINH = SENH ## Retorna o seno hiperbólico de um número +SQRT = RAIZ ## Retorna uma raiz quadrada positiva +SQRTPI = RAIZPI ## Retorna a raiz quadrada de (núm* pi) +SUBTOTAL = SUBTOTAL ## Retorna um subtotal em uma lista ou em um banco de dados +SUM = SOMA ## Soma seus argumentos +SUMIF = SOMASE ## Adiciona as células especificadas por um determinado critério +SUMIFS = SOMASE ## Adiciona as células em um intervalo que atende a vários critérios +SUMPRODUCT = SOMARPRODUTO ## Retorna a soma dos produtos de componentes correspondentes de matrizes +SUMSQ = SOMAQUAD ## Retorna a soma dos quadrados dos argumentos +SUMX2MY2 = SOMAX2DY2 ## Retorna a soma da diferença dos quadrados dos valores correspondentes em duas matrizes +SUMX2PY2 = SOMAX2SY2 ## Retorna a soma da soma dos quadrados dos valores correspondentes em duas matrizes +SUMXMY2 = SOMAXMY2 ## Retorna a soma dos quadrados das diferenças dos valores correspondentes em duas matrizes +TAN = TAN ## Retorna a tangente de um número +TANH = TANH ## Retorna a tangente hiperbólica de um número +TRUNC = TRUNCAR ## Trunca um número para um inteiro + + +## +## Statistical functions Funções estatísticas +## +AVEDEV = DESV.MÉDIO ## Retorna a média aritmética dos desvios médios dos pontos de dados a partir de sua média +AVERAGE = MÉDIA ## Retorna a média dos argumentos +AVERAGEA = MÉDIAA ## Retorna a média dos argumentos, inclusive números, texto e valores lógicos +AVERAGEIF = MÉDIASE ## Retorna a média (média aritmética) de todas as células em um intervalo que atendem a um determinado critério +AVERAGEIFS = MÉDIASES ## Retorna a média (média aritmética) de todas as células que atendem a múltiplos critérios. +BETADIST = DISTBETA ## Retorna a função de distribuição cumulativa beta +BETAINV = BETA.ACUM.INV ## Retorna o inverso da função de distribuição cumulativa para uma distribuição beta especificada +BINOMDIST = DISTRBINOM ## Retorna a probabilidade de distribuição binomial do termo individual +CHIDIST = DIST.QUI ## Retorna a probabilidade unicaudal da distribuição qui-quadrada +CHIINV = INV.QUI ## Retorna o inverso da probabilidade uni-caudal da distribuição qui-quadrada +CHITEST = TESTE.QUI ## Retorna o teste para independência +CONFIDENCE = INT.CONFIANÇA ## Retorna o intervalo de confiança para uma média da população +CORREL = CORREL ## Retorna o coeficiente de correlação entre dois conjuntos de dados +COUNT = CONT.NÚM ## Calcula quantos números há na lista de argumentos +COUNTA = CONT.VALORES ## Calcula quantos valores há na lista de argumentos +COUNTBLANK = CONTAR.VAZIO ## Conta o número de células vazias no intervalo especificado +COUNTIF = CONT.SE ## Calcula o número de células não vazias em um intervalo que corresponde a determinados critérios +COUNTIFS = CONT.SES ## Conta o número de células dentro de um intervalo que atende a múltiplos critérios +COVAR = COVAR ## Retorna a covariância, a média dos produtos dos desvios pares +CRITBINOM = CRIT.BINOM ## Retorna o menor valor para o qual a distribuição binomial cumulativa é menor ou igual ao valor padrão +DEVSQ = DESVQ ## Retorna a soma dos quadrados dos desvios +EXPONDIST = DISTEXPON ## Retorna a distribuição exponencial +FDIST = DISTF ## Retorna a distribuição de probabilidade F +FINV = INVF ## Retorna o inverso da distribuição de probabilidades F +FISHER = FISHER ## Retorna a transformação Fisher +FISHERINV = FISHERINV ## Retorna o inverso da transformação Fisher +FORECAST = PREVISÃO ## Retorna um valor ao longo de uma linha reta +FREQUENCY = FREQÜÊNCIA ## Retorna uma distribuição de freqüência como uma matriz vertical +FTEST = TESTEF ## Retorna o resultado de um teste F +GAMMADIST = DISTGAMA ## Retorna a distribuição gama +GAMMAINV = INVGAMA ## Retorna o inverso da distribuição cumulativa gama +GAMMALN = LNGAMA ## Retorna o logaritmo natural da função gama, G(x) +GEOMEAN = MÉDIA.GEOMÉTRICA ## Retorna a média geométrica +GROWTH = CRESCIMENTO ## Retorna valores ao longo de uma tendência exponencial +HARMEAN = MÉDIA.HARMÔNICA ## Retorna a média harmônica +HYPGEOMDIST = DIST.HIPERGEOM ## Retorna a distribuição hipergeométrica +INTERCEPT = INTERCEPÇÃO ## Retorna a intercepção da linha de regressão linear +KURT = CURT ## Retorna a curtose de um conjunto de dados +LARGE = MAIOR ## Retorna o maior valor k-ésimo de um conjunto de dados +LINEST = PROJ.LIN ## Retorna os parâmetros de uma tendência linear +LOGEST = PROJ.LOG ## Retorna os parâmetros de uma tendência exponencial +LOGINV = INVLOG ## Retorna o inverso da distribuição lognormal +LOGNORMDIST = DIST.LOGNORMAL ## Retorna a distribuição lognormal cumulativa +MAX = MÁXIMO ## Retorna o valor máximo em uma lista de argumentos +MAXA = MÁXIMOA ## Retorna o maior valor em uma lista de argumentos, inclusive números, texto e valores lógicos +MEDIAN = MED ## Retorna a mediana dos números indicados +MIN = MÍNIMO ## Retorna o valor mínimo em uma lista de argumentos +MINA = MÍNIMOA ## Retorna o menor valor em uma lista de argumentos, inclusive números, texto e valores lógicos +MODE = MODO ## Retorna o valor mais comum em um conjunto de dados +NEGBINOMDIST = DIST.BIN.NEG ## Retorna a distribuição binomial negativa +NORMDIST = DIST.NORM ## Retorna a distribuição cumulativa normal +NORMINV = INV.NORM ## Retorna o inverso da distribuição cumulativa normal +NORMSDIST = DIST.NORMP ## Retorna a distribuição cumulativa normal padrão +NORMSINV = INV.NORMP ## Retorna o inverso da distribuição cumulativa normal padrão +PEARSON = PEARSON ## Retorna o coeficiente de correlação do momento do produto Pearson +PERCENTILE = PERCENTIL ## Retorna o k-ésimo percentil de valores em um intervalo +PERCENTRANK = ORDEM.PORCENTUAL ## Retorna a ordem percentual de um valor em um conjunto de dados +PERMUT = PERMUT ## Retorna o número de permutações de um determinado número de objetos +POISSON = POISSON ## Retorna a distribuição Poisson +PROB = PROB ## Retorna a probabilidade de valores em um intervalo estarem entre dois limites +QUARTILE = QUARTIL ## Retorna o quartil do conjunto de dados +RANK = ORDEM ## Retorna a posição de um número em uma lista de números +RSQ = RQUAD ## Retorna o quadrado do coeficiente de correlação do momento do produto de Pearson +SKEW = DISTORÇÃO ## Retorna a distorção de uma distribuição +SLOPE = INCLINAÇÃO ## Retorna a inclinação da linha de regressão linear +SMALL = MENOR ## Retorna o menor valor k-ésimo do conjunto de dados +STANDARDIZE = PADRONIZAR ## Retorna um valor normalizado +STDEV = DESVPAD ## Estima o desvio padrão com base em uma amostra +STDEVA = DESVPADA ## Estima o desvio padrão com base em uma amostra, inclusive números, texto e valores lógicos +STDEVP = DESVPADP ## Calcula o desvio padrão com base na população total +STDEVPA = DESVPADPA ## Calcula o desvio padrão com base na população total, inclusive números, texto e valores lógicos +STEYX = EPADYX ## Retorna o erro padrão do valor-y previsto para cada x da regressão +TDIST = DISTT ## Retorna a distribuição t de Student +TINV = INVT ## Retorna o inverso da distribuição t de Student +TREND = TENDÊNCIA ## Retorna valores ao longo de uma tendência linear +TRIMMEAN = MÉDIA.INTERNA ## Retorna a média do interior de um conjunto de dados +TTEST = TESTET ## Retorna a probabilidade associada ao teste t de Student +VAR = VAR ## Estima a variância com base em uma amostra +VARA = VARA ## Estima a variância com base em uma amostra, inclusive números, texto e valores lógicos +VARP = VARP ## Calcula a variância com base na população inteira +VARPA = VARPA ## Calcula a variância com base na população total, inclusive números, texto e valores lógicos +WEIBULL = WEIBULL ## Retorna a distribuição Weibull +ZTEST = TESTEZ ## Retorna o valor de probabilidade uni-caudal de um teste-z + + +## +## Text functions Funções de texto +## +ASC = ASC ## Altera letras do inglês ou katakana de largura total (bytes duplos) dentro de uma seqüência de caracteres para caracteres de meia largura (byte único) +BAHTTEXT = BAHTTEXT ## Converte um número em um texto, usando o formato de moeda ß (baht) +CHAR = CARACT ## Retorna o caractere especificado pelo número de código +CLEAN = TIRAR ## Remove todos os caracteres do texto que não podem ser impressos +CODE = CÓDIGO ## Retorna um código numérico para o primeiro caractere de uma seqüência de caracteres de texto +CONCATENATE = CONCATENAR ## Agrupa vários itens de texto em um único item de texto +DOLLAR = MOEDA ## Converte um número em texto, usando o formato de moeda $ (dólar) +EXACT = EXATO ## Verifica se dois valores de texto são idênticos +FIND = PROCURAR ## Procura um valor de texto dentro de outro (diferencia maiúsculas de minúsculas) +FINDB = PROCURARB ## Procura um valor de texto dentro de outro (diferencia maiúsculas de minúsculas) +FIXED = DEF.NÚM.DEC ## Formata um número como texto com um número fixo de decimais +JIS = JIS ## Altera letras do inglês ou katakana de meia largura (byte único) dentro de uma seqüência de caracteres para caracteres de largura total (bytes duplos) +LEFT = ESQUERDA ## Retorna os caracteres mais à esquerda de um valor de texto +LEFTB = ESQUERDAB ## Retorna os caracteres mais à esquerda de um valor de texto +LEN = NÚM.CARACT ## Retorna o número de caracteres em uma seqüência de texto +LENB = NÚM.CARACTB ## Retorna o número de caracteres em uma seqüência de texto +LOWER = MINÚSCULA ## Converte texto para minúsculas +MID = EXT.TEXTO ## Retorna um número específico de caracteres de uma seqüência de texto começando na posição especificada +MIDB = EXT.TEXTOB ## Retorna um número específico de caracteres de uma seqüência de texto começando na posição especificada +PHONETIC = FONÉTICA ## Extrai os caracteres fonéticos (furigana) de uma seqüência de caracteres de texto +PROPER = PRI.MAIÚSCULA ## Coloca a primeira letra de cada palavra em maiúscula em um valor de texto +REPLACE = MUDAR ## Muda os caracteres dentro do texto +REPLACEB = MUDARB ## Muda os caracteres dentro do texto +REPT = REPT ## Repete o texto um determinado número de vezes +RIGHT = DIREITA ## Retorna os caracteres mais à direita de um valor de texto +RIGHTB = DIREITAB ## Retorna os caracteres mais à direita de um valor de texto +SEARCH = LOCALIZAR ## Localiza um valor de texto dentro de outro (não diferencia maiúsculas de minúsculas) +SEARCHB = LOCALIZARB ## Localiza um valor de texto dentro de outro (não diferencia maiúsculas de minúsculas) +SUBSTITUTE = SUBSTITUIR ## Substitui um novo texto por um texto antigo em uma seqüência de texto +T = T ## Converte os argumentos em texto +TEXT = TEXTO ## Formata um número e o converte em texto +TRIM = ARRUMAR ## Remove espaços do texto +UPPER = MAIÚSCULA ## Converte o texto em maiúsculas +VALUE = VALOR ## Converte um argumento de texto em um número diff --git a/admin/helpers/PHPExcel/locale/pt/br/index.html b/admin/helpers/PHPExcel/locale/pt/br/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/pt/br/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/pt/config b/admin/helpers/PHPExcel/locale/pt/config new file mode 100644 index 00000000..8bb8d8b8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/pt/config @@ -0,0 +1,47 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = € + + +## +## Excel Error Codes (For future use) +## +NULL = #NULO! +DIV0 = #DIV/0! +VALUE = #VALOR! +REF = #REF! +NAME = #NOME? +NUM = #NÚM! +NA = #N/D diff --git a/admin/helpers/PHPExcel/locale/pt/functions b/admin/helpers/PHPExcel/locale/pt/functions new file mode 100644 index 00000000..7fe9e3b5 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/pt/functions @@ -0,0 +1,408 @@ +## +## Add-in and Automation functions Funções de Suplemento e Automatização +## +GETPIVOTDATA = OBTERDADOSDIN ## Devolve dados armazenados num relatório de Tabela Dinâmica + + +## +## Cube functions Funções de cubo +## +CUBEKPIMEMBER = MEMBROKPICUBO ## Devolve o nome, propriedade e medição de um KPI (key performance indicator) e apresenta o nome e a propriedade na célula. Um KPI é uma medida quantificável, como, por exemplo, o lucro mensal bruto ou a rotatividade trimestral de pessoal, utilizada para monitorizar o desempenho de uma organização. +CUBEMEMBER = MEMBROCUBO ## Devolve um membro ou cadeia de identificação numa hierarquia de cubo. Utilizada para validar a existência do membro ou cadeia de identificação no cubo. +CUBEMEMBERPROPERTY = PROPRIEDADEMEMBROCUBO ## Devolve o valor de uma propriedade de membro no cubo. Utilizada para validar a existência de um nome de membro no cubo e para devolver a propriedade especificada para esse membro. +CUBERANKEDMEMBER = MEMBROCLASSIFICADOCUBO ## Devolve o enésimo ou a classificação mais alta num conjunto. Utilizada para devolver um ou mais elementos num conjunto, tal como o melhor vendedor ou os 10 melhores alunos. +CUBESET = CONJUNTOCUBO ## Define um conjunto calculado de membros ou cadeias de identificação enviando uma expressão de conjunto para o cubo no servidor, que cria o conjunto e, em seguida, devolve o conjunto ao Microsoft Office Excel. +CUBESETCOUNT = CONTARCONJUNTOCUBO ## Devolve o número de itens num conjunto. +CUBEVALUE = VALORCUBO ## Devolve um valor agregado do cubo. + + +## +## Database functions Funções de base de dados +## +DAVERAGE = BDMÉDIA ## Devolve a média das entradas da base de dados seleccionadas +DCOUNT = BDCONTAR ## Conta as células que contêm números numa base de dados +DCOUNTA = BDCONTAR.VAL ## Conta as células que não estejam em branco numa base de dados +DGET = BDOBTER ## Extrai de uma base de dados um único registo que corresponde aos critérios especificados +DMAX = BDMÁX ## Devolve o valor máximo das entradas da base de dados seleccionadas +DMIN = BDMÍN ## Devolve o valor mínimo das entradas da base de dados seleccionadas +DPRODUCT = BDMULTIPL ## Multiplica os valores de um determinado campo de registos que correspondem aos critérios numa base de dados +DSTDEV = BDDESVPAD ## Calcula o desvio-padrão com base numa amostra de entradas da base de dados seleccionadas +DSTDEVP = BDDESVPADP ## Calcula o desvio-padrão com base na população total das entradas da base de dados seleccionadas +DSUM = BDSOMA ## Adiciona os números na coluna de campo dos registos de base de dados que correspondem aos critérios +DVAR = BDVAR ## Calcula a variância com base numa amostra das entradas de base de dados seleccionadas +DVARP = BDVARP ## Calcula a variância com base na população total das entradas de base de dados seleccionadas + + +## +## Date and time functions Funções de data e hora +## +DATE = DATA ## Devolve o número de série de uma determinada data +DATEVALUE = DATA.VALOR ## Converte uma data em forma de texto num número de série +DAY = DIA ## Converte um número de série num dia do mês +DAYS360 = DIAS360 ## Calcula o número de dias entre duas datas com base num ano com 360 dias +EDATE = DATAM ## Devolve um número de série de data que corresponde ao número de meses indicado antes ou depois da data de início +EOMONTH = FIMMÊS ## Devolve o número de série do último dia do mês antes ou depois de um número de meses especificado +HOUR = HORA ## Converte um número de série numa hora +MINUTE = MINUTO ## Converte um número de série num minuto +MONTH = MÊS ## Converte um número de série num mês +NETWORKDAYS = DIATRABALHOTOTAL ## Devolve o número total de dias úteis entre duas datas +NOW = AGORA ## Devolve o número de série da data e hora actuais +SECOND = SEGUNDO ## Converte um número de série num segundo +TIME = TEMPO ## Devolve o número de série de um determinado tempo +TIMEVALUE = VALOR.TEMPO ## Converte um tempo em forma de texto num número de série +TODAY = HOJE ## Devolve o número de série da data actual +WEEKDAY = DIA.SEMANA ## Converte um número de série num dia da semana +WEEKNUM = NÚMSEMANA ## Converte um número de série num número que representa o número da semana num determinado ano +WORKDAY = DIA.TRABALHO ## Devolve o número de série da data antes ou depois de um número de dias úteis especificado +YEAR = ANO ## Converte um número de série num ano +YEARFRAC = FRACÇÃOANO ## Devolve a fracção de ano que representa o número de dias inteiros entre a data_de_início e a data_de_fim + + +## +## Engineering functions Funções de engenharia +## +BESSELI = BESSELI ## Devolve a função de Bessel modificada In(x) +BESSELJ = BESSELJ ## Devolve a função de Bessel Jn(x) +BESSELK = BESSELK ## Devolve a função de Bessel modificada Kn(x) +BESSELY = BESSELY ## Devolve a função de Bessel Yn(x) +BIN2DEC = BINADEC ## Converte um número binário em decimal +BIN2HEX = BINAHEX ## Converte um número binário em hexadecimal +BIN2OCT = BINAOCT ## Converte um número binário em octal +COMPLEX = COMPLEXO ## Converte coeficientes reais e imaginários num número complexo +CONVERT = CONVERTER ## Converte um número de um sistema de medida noutro +DEC2BIN = DECABIN ## Converte um número decimal em binário +DEC2HEX = DECAHEX ## Converte um número decimal em hexadecimal +DEC2OCT = DECAOCT ## Converte um número decimal em octal +DELTA = DELTA ## Testa se dois valores são iguais +ERF = FUNCERRO ## Devolve a função de erro +ERFC = FUNCERROCOMPL ## Devolve a função de erro complementar +GESTEP = DEGRAU ## Testa se um número é maior do que um valor limite +HEX2BIN = HEXABIN ## Converte um número hexadecimal em binário +HEX2DEC = HEXADEC ## Converte um número hexadecimal em decimal +HEX2OCT = HEXAOCT ## Converte um número hexadecimal em octal +IMABS = IMABS ## Devolve o valor absoluto (módulo) de um número complexo +IMAGINARY = IMAGINÁRIO ## Devolve o coeficiente imaginário de um número complexo +IMARGUMENT = IMARG ## Devolve o argumento Teta, um ângulo expresso em radianos +IMCONJUGATE = IMCONJ ## Devolve o conjugado complexo de um número complexo +IMCOS = IMCOS ## Devolve o co-seno de um número complexo +IMDIV = IMDIV ## Devolve o quociente de dois números complexos +IMEXP = IMEXP ## Devolve o exponencial de um número complexo +IMLN = IMLN ## Devolve o logaritmo natural de um número complexo +IMLOG10 = IMLOG10 ## Devolve o logaritmo de base 10 de um número complexo +IMLOG2 = IMLOG2 ## Devolve o logaritmo de base 2 de um número complexo +IMPOWER = IMPOT ## Devolve um número complexo elevado a uma potência inteira +IMPRODUCT = IMPROD ## Devolve o produto de números complexos +IMREAL = IMREAL ## Devolve o coeficiente real de um número complexo +IMSIN = IMSENO ## Devolve o seno de um número complexo +IMSQRT = IMRAIZ ## Devolve a raiz quadrada de um número complexo +IMSUB = IMSUBTR ## Devolve a diferença entre dois números complexos +IMSUM = IMSOMA ## Devolve a soma de números complexos +OCT2BIN = OCTABIN ## Converte um número octal em binário +OCT2DEC = OCTADEC ## Converte um número octal em decimal +OCT2HEX = OCTAHEX ## Converte um número octal em hexadecimal + + +## +## Financial functions Funções financeiras +## +ACCRINT = JUROSACUM ## Devolve os juros acumulados de um título que paga juros periódicos +ACCRINTM = JUROSACUMV ## Devolve os juros acumulados de um título que paga juros no vencimento +AMORDEGRC = AMORDEGRC ## Devolve a depreciação correspondente a cada período contabilístico utilizando um coeficiente de depreciação +AMORLINC = AMORLINC ## Devolve a depreciação correspondente a cada período contabilístico +COUPDAYBS = CUPDIASINLIQ ## Devolve o número de dias entre o início do período do cupão e a data de regularização +COUPDAYS = CUPDIAS ## Devolve o número de dias no período do cupão que contém a data de regularização +COUPDAYSNC = CUPDIASPRÓX ## Devolve o número de dias entre a data de regularização e a data do cupão seguinte +COUPNCD = CUPDATAPRÓX ## Devolve a data do cupão seguinte após a data de regularização +COUPNUM = CUPNÚM ## Devolve o número de cupões a serem pagos entre a data de regularização e a data de vencimento +COUPPCD = CUPDATAANT ## Devolve a data do cupão anterior antes da data de regularização +CUMIPMT = PGTOJURACUM ## Devolve os juros cumulativos pagos entre dois períodos +CUMPRINC = PGTOCAPACUM ## Devolve o capital cumulativo pago a título de empréstimo entre dois períodos +DB = BD ## Devolve a depreciação de um activo relativo a um período especificado utilizando o método das quotas degressivas fixas +DDB = BDD ## Devolve a depreciação de um activo relativo a um período especificado utilizando o método das quotas degressivas duplas ou qualquer outro método especificado +DISC = DESC ## Devolve a taxa de desconto de um título +DOLLARDE = MOEDADEC ## Converte um preço em unidade monetária, expresso como uma fracção, num preço em unidade monetária, expresso como um número decimal +DOLLARFR = MOEDAFRA ## Converte um preço em unidade monetária, expresso como um número decimal, num preço em unidade monetária, expresso como uma fracção +DURATION = DURAÇÃO ## Devolve a duração anual de um título com pagamentos de juros periódicos +EFFECT = EFECTIVA ## Devolve a taxa de juros anual efectiva +FV = VF ## Devolve o valor futuro de um investimento +FVSCHEDULE = VFPLANO ## Devolve o valor futuro de um capital inicial após a aplicação de uma série de taxas de juro compostas +INTRATE = TAXAJUROS ## Devolve a taxa de juros de um título investido na totalidade +IPMT = IPGTO ## Devolve o pagamento dos juros de um investimento durante um determinado período +IRR = TIR ## Devolve a taxa de rentabilidade interna para uma série de fluxos monetários +ISPMT = É.PGTO ## Calcula os juros pagos durante um período específico de um investimento +MDURATION = MDURAÇÃO ## Devolve a duração modificada de Macauley de um título com um valor de paridade equivalente a € 100 +MIRR = MTIR ## Devolve a taxa interna de rentabilidade em que os fluxos monetários positivos e negativos são financiados com taxas diferentes +NOMINAL = NOMINAL ## Devolve a taxa de juros nominal anual +NPER = NPER ## Devolve o número de períodos de um investimento +NPV = VAL ## Devolve o valor actual líquido de um investimento com base numa série de fluxos monetários periódicos e numa taxa de desconto +ODDFPRICE = PREÇOPRIMINC ## Devolve o preço por € 100 do valor nominal de um título com um período inicial incompleto +ODDFYIELD = LUCROPRIMINC ## Devolve o lucro de um título com um período inicial incompleto +ODDLPRICE = PREÇOÚLTINC ## Devolve o preço por € 100 do valor nominal de um título com um período final incompleto +ODDLYIELD = LUCROÚLTINC ## Devolve o lucro de um título com um período final incompleto +PMT = PGTO ## Devolve o pagamento periódico de uma anuidade +PPMT = PPGTO ## Devolve o pagamento sobre o capital de um investimento num determinado período +PRICE = PREÇO ## Devolve o preço por € 100 do valor nominal de um título que paga juros periódicos +PRICEDISC = PREÇODESC ## Devolve o preço por € 100 do valor nominal de um título descontado +PRICEMAT = PREÇOVENC ## Devolve o preço por € 100 do valor nominal de um título que paga juros no vencimento +PV = VA ## Devolve o valor actual de um investimento +RATE = TAXA ## Devolve a taxa de juros por período de uma anuidade +RECEIVED = RECEBER ## Devolve o montante recebido no vencimento de um título investido na totalidade +SLN = AMORT ## Devolve uma depreciação linear de um activo durante um período +SYD = AMORTD ## Devolve a depreciação por algarismos da soma dos anos de um activo durante um período especificado +TBILLEQ = OTN ## Devolve o lucro de um título equivalente a uma Obrigação do Tesouro +TBILLPRICE = OTNVALOR ## Devolve o preço por € 100 de valor nominal de uma Obrigação do Tesouro +TBILLYIELD = OTNLUCRO ## Devolve o lucro de uma Obrigação do Tesouro +VDB = BDV ## Devolve a depreciação de um activo relativo a um período específico ou parcial utilizando um método de quotas degressivas +XIRR = XTIR ## Devolve a taxa interna de rentabilidade de um plano de fluxos monetários que não seja necessariamente periódica +XNPV = XVAL ## Devolve o valor actual líquido de um plano de fluxos monetários que não seja necessariamente periódico +YIELD = LUCRO ## Devolve o lucro de um título que paga juros periódicos +YIELDDISC = LUCRODESC ## Devolve o lucro anual de um título emitido abaixo do valor nominal, por exemplo, uma Obrigação do Tesouro +YIELDMAT = LUCROVENC ## Devolve o lucro anual de um título que paga juros na data de vencimento + + +## +## Information functions Funções de informação +## +CELL = CÉL ## Devolve informações sobre a formatação, localização ou conteúdo de uma célula +ERROR.TYPE = TIPO.ERRO ## Devolve um número correspondente a um tipo de erro +INFO = INFORMAÇÃO ## Devolve informações sobre o ambiente de funcionamento actual +ISBLANK = É.CÉL.VAZIA ## Devolve VERDADEIRO se o valor estiver em branco +ISERR = É.ERROS ## Devolve VERDADEIRO se o valor for um valor de erro diferente de #N/D +ISERROR = É.ERRO ## Devolve VERDADEIRO se o valor for um valor de erro +ISEVEN = ÉPAR ## Devolve VERDADEIRO se o número for par +ISLOGICAL = É.LÓGICO ## Devolve VERDADEIRO se o valor for lógico +ISNA = É.NÃO.DISP ## Devolve VERDADEIRO se o valor for o valor de erro #N/D +ISNONTEXT = É.NÃO.TEXTO ## Devolve VERDADEIRO se o valor não for texto +ISNUMBER = É.NÚM ## Devolve VERDADEIRO se o valor for um número +ISODD = ÉÍMPAR ## Devolve VERDADEIRO se o número for ímpar +ISREF = É.REF ## Devolve VERDADEIRO se o valor for uma referência +ISTEXT = É.TEXTO ## Devolve VERDADEIRO se o valor for texto +N = N ## Devolve um valor convertido num número +NA = NÃO.DISP ## Devolve o valor de erro #N/D +TYPE = TIPO ## Devolve um número que indica o tipo de dados de um valor + + +## +## Logical functions Funções lógicas +## +AND = E ## Devolve VERDADEIRO se todos os respectivos argumentos corresponderem a VERDADEIRO +FALSE = FALSO ## Devolve o valor lógico FALSO +IF = SE ## Especifica um teste lógico a ser executado +IFERROR = SE.ERRO ## Devolve um valor definido pelo utilizador se ocorrer um erro na fórmula, e devolve o resultado da fórmula se não ocorrer nenhum erro +NOT = NÃO ## Inverte a lógica do respectivo argumento +OR = OU ## Devolve VERDADEIRO se qualquer argumento for VERDADEIRO +TRUE = VERDADEIRO ## Devolve o valor lógico VERDADEIRO + + +## +## Lookup and reference functions Funções de pesquisa e referência +## +ADDRESS = ENDEREÇO ## Devolve uma referência a uma única célula numa folha de cálculo como texto +AREAS = ÁREAS ## Devolve o número de áreas numa referência +CHOOSE = SELECCIONAR ## Selecciona um valor a partir de uma lista de valores +COLUMN = COL ## Devolve o número da coluna de uma referência +COLUMNS = COLS ## Devolve o número de colunas numa referência +HLOOKUP = PROCH ## Procura na linha superior de uma matriz e devolve o valor da célula indicada +HYPERLINK = HIPERLIGAÇÃO ## Cria um atalho ou hiperligação que abre um documento armazenado num servidor de rede, numa intranet ou na Internet +INDEX = ÍNDICE ## Utiliza um índice para escolher um valor de uma referência ou de uma matriz +INDIRECT = INDIRECTO ## Devolve uma referência indicada por um valor de texto +LOOKUP = PROC ## Procura valores num vector ou numa matriz +MATCH = CORRESP ## Procura valores numa referência ou numa matriz +OFFSET = DESLOCAMENTO ## Devolve o deslocamento de referência de uma determinada referência +ROW = LIN ## Devolve o número da linha de uma referência +ROWS = LINS ## Devolve o número de linhas numa referência +RTD = RTD ## Obtém dados em tempo real a partir de um programa que suporte automatização COM (automatização: modo de trabalhar com objectos de uma aplicação a partir de outra aplicação ou ferramenta de desenvolvimento. Anteriormente conhecida como automatização OLE, a automatização é uma norma da indústria de software e uma funcionalidade COM (Component Object Model).) +TRANSPOSE = TRANSPOR ## Devolve a transposição de uma matriz +VLOOKUP = PROCV ## Procura na primeira coluna de uma matriz e percorre a linha para devolver o valor de uma célula + + +## +## Math and trigonometry functions Funções matemáticas e trigonométricas +## +ABS = ABS ## Devolve o valor absoluto de um número +ACOS = ACOS ## Devolve o arco de co-seno de um número +ACOSH = ACOSH ## Devolve o co-seno hiperbólico inverso de um número +ASIN = ASEN ## Devolve o arco de seno de um número +ASINH = ASENH ## Devolve o seno hiperbólico inverso de um número +ATAN = ATAN ## Devolve o arco de tangente de um número +ATAN2 = ATAN2 ## Devolve o arco de tangente das coordenadas x e y +ATANH = ATANH ## Devolve a tangente hiperbólica inversa de um número +CEILING = ARRED.EXCESSO ## Arredonda um número para o número inteiro mais próximo ou para o múltiplo de significância mais próximo +COMBIN = COMBIN ## Devolve o número de combinações de um determinado número de objectos +COS = COS ## Devolve o co-seno de um número +COSH = COSH ## Devolve o co-seno hiperbólico de um número +DEGREES = GRAUS ## Converte radianos em graus +EVEN = PAR ## Arredonda um número por excesso para o número inteiro mais próximo +EXP = EXP ## Devolve e elevado à potência de um determinado número +FACT = FACTORIAL ## Devolve o factorial de um número +FACTDOUBLE = FACTDUPLO ## Devolve o factorial duplo de um número +FLOOR = ARRED.DEFEITO ## Arredonda um número por defeito até zero +GCD = MDC ## Devolve o maior divisor comum +INT = INT ## Arredonda um número por defeito para o número inteiro mais próximo +LCM = MMC ## Devolve o mínimo múltiplo comum +LN = LN ## Devolve o logaritmo natural de um número +LOG = LOG ## Devolve o logaritmo de um número com uma base especificada +LOG10 = LOG10 ## Devolve o logaritmo de base 10 de um número +MDETERM = MATRIZ.DETERM ## Devolve o determinante matricial de uma matriz +MINVERSE = MATRIZ.INVERSA ## Devolve o inverso matricial de uma matriz +MMULT = MATRIZ.MULT ## Devolve o produto matricial de duas matrizes +MOD = RESTO ## Devolve o resto da divisão +MROUND = MARRED ## Devolve um número arredondado para o múltiplo pretendido +MULTINOMIAL = POLINOMIAL ## Devolve o polinomial de um conjunto de números +ODD = ÍMPAR ## Arredonda por excesso um número para o número inteiro ímpar mais próximo +PI = PI ## Devolve o valor de pi +POWER = POTÊNCIA ## Devolve o resultado de um número elevado a uma potência +PRODUCT = PRODUTO ## Multiplica os respectivos argumentos +QUOTIENT = QUOCIENTE ## Devolve a parte inteira de uma divisão +RADIANS = RADIANOS ## Converte graus em radianos +RAND = ALEATÓRIO ## Devolve um número aleatório entre 0 e 1 +RANDBETWEEN = ALEATÓRIOENTRE ## Devolve um número aleatório entre os números especificados +ROMAN = ROMANO ## Converte um número árabe em romano, como texto +ROUND = ARRED ## Arredonda um número para um número de dígitos especificado +ROUNDDOWN = ARRED.PARA.BAIXO ## Arredonda um número por defeito até zero +ROUNDUP = ARRED.PARA.CIMA ## Arredonda um número por excesso, afastando-o de zero +SERIESSUM = SOMASÉRIE ## Devolve a soma de uma série de potências baseada na fórmula +SIGN = SINAL ## Devolve o sinal de um número +SIN = SEN ## Devolve o seno de um determinado ângulo +SINH = SENH ## Devolve o seno hiperbólico de um número +SQRT = RAIZQ ## Devolve uma raiz quadrada positiva +SQRTPI = RAIZPI ## Devolve a raiz quadrada de (núm * pi) +SUBTOTAL = SUBTOTAL ## Devolve um subtotal numa lista ou base de dados +SUM = SOMA ## Adiciona os respectivos argumentos +SUMIF = SOMA.SE ## Adiciona as células especificadas por um determinado critério +SUMIFS = SOMA.SE.S ## Adiciona as células num intervalo que cumpre vários critérios +SUMPRODUCT = SOMARPRODUTO ## Devolve a soma dos produtos de componentes de matrizes correspondentes +SUMSQ = SOMARQUAD ## Devolve a soma dos quadrados dos argumentos +SUMX2MY2 = SOMAX2DY2 ## Devolve a soma da diferença dos quadrados dos valores correspondentes em duas matrizes +SUMX2PY2 = SOMAX2SY2 ## Devolve a soma da soma dos quadrados dos valores correspondentes em duas matrizes +SUMXMY2 = SOMAXMY2 ## Devolve a soma dos quadrados da diferença dos valores correspondentes em duas matrizes +TAN = TAN ## Devolve a tangente de um número +TANH = TANH ## Devolve a tangente hiperbólica de um número +TRUNC = TRUNCAR ## Trunca um número para um número inteiro + + +## +## Statistical functions Funções estatísticas +## +AVEDEV = DESV.MÉDIO ## Devolve a média aritmética dos desvios absolutos à média dos pontos de dados +AVERAGE = MÉDIA ## Devolve a média dos respectivos argumentos +AVERAGEA = MÉDIAA ## Devolve uma média dos respectivos argumentos, incluindo números, texto e valores lógicos +AVERAGEIF = MÉDIA.SE ## Devolve a média aritmética de todas as células num intervalo que cumprem determinado critério +AVERAGEIFS = MÉDIA.SE.S ## Devolve a média aritmética de todas as células que cumprem múltiplos critérios +BETADIST = DISTBETA ## Devolve a função de distribuição cumulativa beta +BETAINV = BETA.ACUM.INV ## Devolve o inverso da função de distribuição cumulativa relativamente a uma distribuição beta específica +BINOMDIST = DISTRBINOM ## Devolve a probabilidade de distribuição binomial de termo individual +CHIDIST = DIST.CHI ## Devolve a probabilidade unicaudal da distribuição qui-quadrada +CHIINV = INV.CHI ## Devolve o inverso da probabilidade unicaudal da distribuição qui-quadrada +CHITEST = TESTE.CHI ## Devolve o teste para independência +CONFIDENCE = INT.CONFIANÇA ## Devolve o intervalo de confiança correspondente a uma média de população +CORREL = CORREL ## Devolve o coeficiente de correlação entre dois conjuntos de dados +COUNT = CONTAR ## Conta os números que existem na lista de argumentos +COUNTA = CONTAR.VAL ## Conta os valores que existem na lista de argumentos +COUNTBLANK = CONTAR.VAZIO ## Conta o número de células em branco num intervalo +COUNTIF = CONTAR.SE ## Calcula o número de células num intervalo que corresponde aos critérios determinados +COUNTIFS = CONTAR.SE.S ## Conta o número de células num intervalo que cumprem múltiplos critérios +COVAR = COVAR ## Devolve a covariância, que é a média dos produtos de desvios de pares +CRITBINOM = CRIT.BINOM ## Devolve o menor valor em que a distribuição binomial cumulativa é inferior ou igual a um valor de critério +DEVSQ = DESVQ ## Devolve a soma dos quadrados dos desvios +EXPONDIST = DISTEXPON ## Devolve a distribuição exponencial +FDIST = DISTF ## Devolve a distribuição da probabilidade F +FINV = INVF ## Devolve o inverso da distribuição da probabilidade F +FISHER = FISHER ## Devolve a transformação Fisher +FISHERINV = FISHERINV ## Devolve o inverso da transformação Fisher +FORECAST = PREVISÃO ## Devolve um valor ao longo de uma tendência linear +FREQUENCY = FREQUÊNCIA ## Devolve uma distribuição de frequência como uma matriz vertical +FTEST = TESTEF ## Devolve o resultado de um teste F +GAMMADIST = DISTGAMA ## Devolve a distribuição gama +GAMMAINV = INVGAMA ## Devolve o inverso da distribuição gama cumulativa +GAMMALN = LNGAMA ## Devolve o logaritmo natural da função gama, Γ(x) +GEOMEAN = MÉDIA.GEOMÉTRICA ## Devolve a média geométrica +GROWTH = CRESCIMENTO ## Devolve valores ao longo de uma tendência exponencial +HARMEAN = MÉDIA.HARMÓNICA ## Devolve a média harmónica +HYPGEOMDIST = DIST.HIPERGEOM ## Devolve a distribuição hipergeométrica +INTERCEPT = INTERCEPTAR ## Devolve a intercepção da linha de regressão linear +KURT = CURT ## Devolve a curtose de um conjunto de dados +LARGE = MAIOR ## Devolve o maior valor k-ésimo de um conjunto de dados +LINEST = PROJ.LIN ## Devolve os parâmetros de uma tendência linear +LOGEST = PROJ.LOG ## Devolve os parâmetros de uma tendência exponencial +LOGINV = INVLOG ## Devolve o inverso da distribuição normal logarítmica +LOGNORMDIST = DIST.NORMALLOG ## Devolve a distribuição normal logarítmica cumulativa +MAX = MÁXIMO ## Devolve o valor máximo numa lista de argumentos +MAXA = MÁXIMOA ## Devolve o valor máximo numa lista de argumentos, incluindo números, texto e valores lógicos +MEDIAN = MED ## Devolve a mediana dos números indicados +MIN = MÍNIMO ## Devolve o valor mínimo numa lista de argumentos +MINA = MÍNIMOA ## Devolve o valor mínimo numa lista de argumentos, incluindo números, texto e valores lógicos +MODE = MODA ## Devolve o valor mais comum num conjunto de dados +NEGBINOMDIST = DIST.BIN.NEG ## Devolve a distribuição binominal negativa +NORMDIST = DIST.NORM ## Devolve a distribuição cumulativa normal +NORMINV = INV.NORM ## Devolve o inverso da distribuição cumulativa normal +NORMSDIST = DIST.NORMP ## Devolve a distribuição cumulativa normal padrão +NORMSINV = INV.NORMP ## Devolve o inverso da distribuição cumulativa normal padrão +PEARSON = PEARSON ## Devolve o coeficiente de correlação momento/produto de Pearson +PERCENTILE = PERCENTIL ## Devolve o k-ésimo percentil de valores num intervalo +PERCENTRANK = ORDEM.PERCENTUAL ## Devolve a ordem percentual de um valor num conjunto de dados +PERMUT = PERMUTAR ## Devolve o número de permutações de um determinado número de objectos +POISSON = POISSON ## Devolve a distribuição de Poisson +PROB = PROB ## Devolve a probabilidade dos valores num intervalo se encontrarem entre dois limites +QUARTILE = QUARTIL ## Devolve o quartil de um conjunto de dados +RANK = ORDEM ## Devolve a ordem de um número numa lista numérica +RSQ = RQUAD ## Devolve o quadrado do coeficiente de correlação momento/produto de Pearson +SKEW = DISTORÇÃO ## Devolve a distorção de uma distribuição +SLOPE = DECLIVE ## Devolve o declive da linha de regressão linear +SMALL = MENOR ## Devolve o menor valor de k-ésimo de um conjunto de dados +STANDARDIZE = NORMALIZAR ## Devolve um valor normalizado +STDEV = DESVPAD ## Calcula o desvio-padrão com base numa amostra +STDEVA = DESVPADA ## Calcula o desvio-padrão com base numa amostra, incluindo números, texto e valores lógicos +STDEVP = DESVPADP ## Calcula o desvio-padrão com base na população total +STDEVPA = DESVPADPA ## Calcula o desvio-padrão com base na população total, incluindo números, texto e valores lógicos +STEYX = EPADYX ## Devolve o erro-padrão do valor de y previsto para cada x na regressão +TDIST = DISTT ## Devolve a distribuição t de Student +TINV = INVT ## Devolve o inverso da distribuição t de Student +TREND = TENDÊNCIA ## Devolve valores ao longo de uma tendência linear +TRIMMEAN = MÉDIA.INTERNA ## Devolve a média do interior de um conjunto de dados +TTEST = TESTET ## Devolve a probabilidade associada ao teste t de Student +VAR = VAR ## Calcula a variância com base numa amostra +VARA = VARA ## Calcula a variância com base numa amostra, incluindo números, texto e valores lógicos +VARP = VARP ## Calcula a variância com base na população total +VARPA = VARPA ## Calcula a variância com base na população total, incluindo números, texto e valores lógicos +WEIBULL = WEIBULL ## Devolve a distribuição Weibull +ZTEST = TESTEZ ## Devolve o valor de probabilidade unicaudal de um teste-z + + +## +## Text functions Funções de texto +## +ASC = ASC ## Altera letras ou katakana de largura total (byte duplo) numa cadeia de caracteres para caracteres de largura média (byte único) +BAHTTEXT = TEXTO.BAHT ## Converte um número em texto, utilizando o formato monetário ß (baht) +CHAR = CARÁCT ## Devolve o carácter especificado pelo número de código +CLEAN = LIMPAR ## Remove do texto todos os caracteres não imprimíveis +CODE = CÓDIGO ## Devolve um código numérico correspondente ao primeiro carácter numa cadeia de texto +CONCATENATE = CONCATENAR ## Agrupa vários itens de texto num único item de texto +DOLLAR = MOEDA ## Converte um número em texto, utilizando o formato monetário € (Euro) +EXACT = EXACTO ## Verifica se dois valores de texto são idênticos +FIND = LOCALIZAR ## Localiza um valor de texto dentro de outro (sensível às maiúsculas e minúsculas) +FINDB = LOCALIZARB ## Localiza um valor de texto dentro de outro (sensível às maiúsculas e minúsculas) +FIXED = FIXA ## Formata um número como texto com um número fixo de decimais +JIS = JIS ## Altera letras ou katakana de largura média (byte único) numa cadeia de caracteres para caracteres de largura total (byte duplo) +LEFT = ESQUERDA ## Devolve os caracteres mais à esquerda de um valor de texto +LEFTB = ESQUERDAB ## Devolve os caracteres mais à esquerda de um valor de texto +LEN = NÚM.CARACT ## Devolve o número de caracteres de uma cadeia de texto +LENB = NÚM.CARACTB ## Devolve o número de caracteres de uma cadeia de texto +LOWER = MINÚSCULAS ## Converte o texto em minúsculas +MID = SEG.TEXTO ## Devolve um número específico de caracteres de uma cadeia de texto, a partir da posição especificada +MIDB = SEG.TEXTOB ## Devolve um número específico de caracteres de uma cadeia de texto, a partir da posição especificada +PHONETIC = FONÉTICA ## Retira os caracteres fonéticos (furigana) de uma cadeia de texto +PROPER = INICIAL.MAIÚSCULA ## Coloca em maiúsculas a primeira letra de cada palavra de um valor de texto +REPLACE = SUBSTITUIR ## Substitui caracteres no texto +REPLACEB = SUBSTITUIRB ## Substitui caracteres no texto +REPT = REPETIR ## Repete texto um determinado número de vezes +RIGHT = DIREITA ## Devolve os caracteres mais à direita de um valor de texto +RIGHTB = DIREITAB ## Devolve os caracteres mais à direita de um valor de texto +SEARCH = PROCURAR ## Localiza um valor de texto dentro de outro (não sensível a maiúsculas e minúsculas) +SEARCHB = PROCURARB ## Localiza um valor de texto dentro de outro (não sensível a maiúsculas e minúsculas) +SUBSTITUTE = SUBST ## Substitui texto novo por texto antigo numa cadeia de texto +T = T ## Converte os respectivos argumentos em texto +TEXT = TEXTO ## Formata um número e converte-o em texto +TRIM = COMPACTAR ## Remove espaços do texto +UPPER = MAIÚSCULAS ## Converte texto em maiúsculas +VALUE = VALOR ## Converte um argumento de texto num número diff --git a/admin/helpers/PHPExcel/locale/pt/index.html b/admin/helpers/PHPExcel/locale/pt/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/pt/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/ru/config b/admin/helpers/PHPExcel/locale/ru/config new file mode 100644 index 00000000..56e45bfd --- /dev/null +++ b/admin/helpers/PHPExcel/locale/ru/config @@ -0,0 +1,47 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = р + + +## +## Excel Error Codes (For future use) +## +NULL = #ПУСТО! +DIV0 = #ДЕЛ/0! +VALUE = #ЗНАЧ! +REF = #ССЫЛ! +NAME = #ИМЯ? +NUM = #ЧИСЛО! +NA = #Н/Д diff --git a/admin/helpers/PHPExcel/locale/ru/functions b/admin/helpers/PHPExcel/locale/ru/functions new file mode 100644 index 00000000..5ff6d4fb --- /dev/null +++ b/admin/helpers/PHPExcel/locale/ru/functions @@ -0,0 +1,438 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Calculation +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## Data in this file derived from information provided by web-junior (http://www.web-junior.net/) +## +## + + +## +## Add-in and Automation functions Функции надстроек и автоматизации +## +GETPIVOTDATA = ПОЛУЧИТЬ.ДАННЫЕ.СВОДНОЙ.ТАБЛИЦЫ ## Возвращает данные, хранящиеся в отчете сводной таблицы. + + +## +## Cube functions Функции Куб +## +CUBEKPIMEMBER = КУБЭЛЕМЕНТКИП ## Возвращает свойство ключевого индикатора производительности «(КИП)» и отображает имя «КИП» в ячейке. «КИП» представляет собой количественную величину, такую как ежемесячная валовая прибыль или ежеквартальная текучесть кадров, используемой для контроля эффективности работы организации. +CUBEMEMBER = КУБЭЛЕМЕНТ ## Возвращает элемент или кортеж из куба. Используется для проверки существования элемента или кортежа в кубе. +CUBEMEMBERPROPERTY = КУБСВОЙСТВОЭЛЕМЕНТА ## Возвращает значение свойства элемента из куба. Используется для проверки существования имени элемента в кубе и возвращает указанное свойство для этого элемента. +CUBERANKEDMEMBER = КУБПОРЭЛЕМЕНТ ## Возвращает n-ый или ранжированный элемент в множество. Используется для возвращения одного или нескольких элементов в множество, например, лучшего продавца или 10 лучших студентов. +CUBESET = КУБМНОЖ ## Определяет вычислительное множество элементов или кортежей, отправляя на сервер выражение, которое создает множество, а затем возвращает его в Microsoft Office Excel. +CUBESETCOUNT = КУБЧИСЛОЭЛМНОЖ ## Возвращает число элементов множества. +CUBEVALUE = КУБЗНАЧЕНИЕ ## Возвращает обобщенное значение из куба. + + +## +## Database functions Функции для работы с базами данных +## +DAVERAGE = ДСРЗНАЧ ## Возвращает среднее значение выбранных записей базы данных. +DCOUNT = БСЧЁТ ## Подсчитывает количество числовых ячеек в базе данных. +DCOUNTA = БСЧЁТА ## Подсчитывает количество непустых ячеек в базе данных. +DGET = БИЗВЛЕЧЬ ## Извлекает из базы данных одну запись, удовлетворяющую заданному условию. +DMAX = ДМАКС ## Возвращает максимальное значение среди выделенных записей базы данных. +DMIN = ДМИН ## Возвращает минимальное значение среди выделенных записей базы данных. +DPRODUCT = БДПРОИЗВЕД ## Перемножает значения определенного поля в записях базы данных, удовлетворяющих условию. +DSTDEV = ДСТАНДОТКЛ ## Оценивает стандартное отклонение по выборке для выделенных записей базы данных. +DSTDEVP = ДСТАНДОТКЛП ## Вычисляет стандартное отклонение по генеральной совокупности для выделенных записей базы данных +DSUM = БДСУММ ## Суммирует числа в поле для записей базы данных, удовлетворяющих условию. +DVAR = БДДИСП ## Оценивает дисперсию по выборке из выделенных записей базы данных +DVARP = БДДИСПП ## Вычисляет дисперсию по генеральной совокупности для выделенных записей базы данных + + +## +## Date and time functions Функции даты и времени +## +DATE = ДАТА ## Возвращает заданную дату в числовом формате. +DATEVALUE = ДАТАЗНАЧ ## Преобразует дату из текстового формата в числовой формат. +DAY = ДЕНЬ ## Преобразует дату в числовом формате в день месяца. +DAYS360 = ДНЕЙ360 ## Вычисляет количество дней между двумя датами на основе 360-дневного года. +EDATE = ДАТАМЕС ## Возвращает дату в числовом формате, отстоящую на заданное число месяцев вперед или назад от начальной даты. +EOMONTH = КОНМЕСЯЦА ## Возвращает дату в числовом формате для последнего дня месяца, отстоящего вперед или назад на заданное число месяцев. +HOUR = ЧАС ## Преобразует дату в числовом формате в часы. +MINUTE = МИНУТЫ ## Преобразует дату в числовом формате в минуты. +MONTH = МЕСЯЦ ## Преобразует дату в числовом формате в месяцы. +NETWORKDAYS = ЧИСТРАБДНИ ## Возвращает количество рабочих дней между двумя датами. +NOW = ТДАТА ## Возвращает текущую дату и время в числовом формате. +SECOND = СЕКУНДЫ ## Преобразует дату в числовом формате в секунды. +TIME = ВРЕМЯ ## Возвращает заданное время в числовом формате. +TIMEVALUE = ВРЕМЗНАЧ ## Преобразует время из текстового формата в числовой формат. +TODAY = СЕГОДНЯ ## Возвращает текущую дату в числовом формате. +WEEKDAY = ДЕНЬНЕД ## Преобразует дату в числовом формате в день недели. +WEEKNUM = НОМНЕДЕЛИ ## Преобразует числовое представление в число, которое указывает, на какую неделю года приходится указанная дата. +WORKDAY = РАБДЕНЬ ## Возвращает дату в числовом формате, отстоящую вперед или назад на заданное количество рабочих дней. +YEAR = ГОД ## Преобразует дату в числовом формате в год. +YEARFRAC = ДОЛЯГОДА ## Возвращает долю года, которую составляет количество дней между начальной и конечной датами. + + +## +## Engineering functions Инженерные функции +## +BESSELI = БЕССЕЛЬ.I ## Возвращает модифицированную функцию Бесселя In(x). +BESSELJ = БЕССЕЛЬ.J ## Возвращает функцию Бесселя Jn(x). +BESSELK = БЕССЕЛЬ.K ## Возвращает модифицированную функцию Бесселя Kn(x). +BESSELY = БЕССЕЛЬ.Y ## Возвращает функцию Бесселя Yn(x). +BIN2DEC = ДВ.В.ДЕС ## Преобразует двоичное число в десятичное. +BIN2HEX = ДВ.В.ШЕСТН ## Преобразует двоичное число в шестнадцатеричное. +BIN2OCT = ДВ.В.ВОСЬМ ## Преобразует двоичное число в восьмеричное. +COMPLEX = КОМПЛЕКСН ## Преобразует коэффициенты при вещественной и мнимой частях комплексного числа в комплексное число. +CONVERT = ПРЕОБР ## Преобразует число из одной системы единиц измерения в другую. +DEC2BIN = ДЕС.В.ДВ ## Преобразует десятичное число в двоичное. +DEC2HEX = ДЕС.В.ШЕСТН ## Преобразует десятичное число в шестнадцатеричное. +DEC2OCT = ДЕС.В.ВОСЬМ ## Преобразует десятичное число в восьмеричное. +DELTA = ДЕЛЬТА ## Проверяет равенство двух значений. +ERF = ФОШ ## Возвращает функцию ошибки. +ERFC = ДФОШ ## Возвращает дополнительную функцию ошибки. +GESTEP = ПОРОГ ## Проверяет, не превышает ли данное число порогового значения. +HEX2BIN = ШЕСТН.В.ДВ ## Преобразует шестнадцатеричное число в двоичное. +HEX2DEC = ШЕСТН.В.ДЕС ## Преобразует шестнадцатеричное число в десятичное. +HEX2OCT = ШЕСТН.В.ВОСЬМ ## Преобразует шестнадцатеричное число в восьмеричное. +IMABS = МНИМ.ABS ## Возвращает абсолютную величину (модуль) комплексного числа. +IMAGINARY = МНИМ.ЧАСТЬ ## Возвращает коэффициент при мнимой части комплексного числа. +IMARGUMENT = МНИМ.АРГУМЕНТ ## Возвращает значение аргумента комплексного числа (тета) — угол, выраженный в радианах. +IMCONJUGATE = МНИМ.СОПРЯЖ ## Возвращает комплексно-сопряженное комплексное число. +IMCOS = МНИМ.COS ## Возвращает косинус комплексного числа. +IMDIV = МНИМ.ДЕЛ ## Возвращает частное от деления двух комплексных чисел. +IMEXP = МНИМ.EXP ## Возвращает экспоненту комплексного числа. +IMLN = МНИМ.LN ## Возвращает натуральный логарифм комплексного числа. +IMLOG10 = МНИМ.LOG10 ## Возвращает обычный (десятичный) логарифм комплексного числа. +IMLOG2 = МНИМ.LOG2 ## Возвращает двоичный логарифм комплексного числа. +IMPOWER = МНИМ.СТЕПЕНЬ ## Возвращает комплексное число, возведенное в целую степень. +IMPRODUCT = МНИМ.ПРОИЗВЕД ## Возвращает произведение от 2 до 29 комплексных чисел. +IMREAL = МНИМ.ВЕЩ ## Возвращает коэффициент при вещественной части комплексного числа. +IMSIN = МНИМ.SIN ## Возвращает синус комплексного числа. +IMSQRT = МНИМ.КОРЕНЬ ## Возвращает значение квадратного корня из комплексного числа. +IMSUB = МНИМ.РАЗН ## Возвращает разность двух комплексных чисел. +IMSUM = МНИМ.СУММ ## Возвращает сумму комплексных чисел. +OCT2BIN = ВОСЬМ.В.ДВ ## Преобразует восьмеричное число в двоичное. +OCT2DEC = ВОСЬМ.В.ДЕС ## Преобразует восьмеричное число в десятичное. +OCT2HEX = ВОСЬМ.В.ШЕСТН ## Преобразует восьмеричное число в шестнадцатеричное. + + +## +## Financial functions Финансовые функции +## +ACCRINT = НАКОПДОХОД ## Возвращает накопленный процент по ценным бумагам с периодической выплатой процентов. +ACCRINTM = НАКОПДОХОДПОГАШ ## Возвращает накопленный процент по ценным бумагам, проценты по которым выплачиваются в срок погашения. +AMORDEGRC = АМОРУМ ## Возвращает величину амортизации для каждого периода, используя коэффициент амортизации. +AMORLINC = АМОРУВ ## Возвращает величину амортизации для каждого периода. +COUPDAYBS = ДНЕЙКУПОНДО ## Возвращает количество дней от начала действия купона до даты соглашения. +COUPDAYS = ДНЕЙКУПОН ## Возвращает число дней в периоде купона, содержащем дату соглашения. +COUPDAYSNC = ДНЕЙКУПОНПОСЛЕ ## Возвращает число дней от даты соглашения до срока следующего купона. +COUPNCD = ДАТАКУПОНПОСЛЕ ## Возвращает следующую дату купона после даты соглашения. +COUPNUM = ЧИСЛКУПОН ## Возвращает количество купонов, которые могут быть оплачены между датой соглашения и сроком вступления в силу. +COUPPCD = ДАТАКУПОНДО ## Возвращает предыдущую дату купона перед датой соглашения. +CUMIPMT = ОБЩПЛАТ ## Возвращает общую выплату, произведенную между двумя периодическими выплатами. +CUMPRINC = ОБЩДОХОД ## Возвращает общую выплату по займу между двумя периодами. +DB = ФУО ## Возвращает величину амортизации актива для заданного периода, рассчитанную методом фиксированного уменьшения остатка. +DDB = ДДОБ ## Возвращает величину амортизации актива за данный период, используя метод двойного уменьшения остатка или иной явно указанный метод. +DISC = СКИДКА ## Возвращает норму скидки для ценных бумаг. +DOLLARDE = РУБЛЬ.ДЕС ## Преобразует цену в рублях, выраженную в виде дроби, в цену в рублях, выраженную десятичным числом. +DOLLARFR = РУБЛЬ.ДРОБЬ ## Преобразует цену в рублях, выраженную десятичным числом, в цену в рублях, выраженную в виде дроби. +DURATION = ДЛИТ ## Возвращает ежегодную продолжительность действия ценных бумаг с периодическими выплатами по процентам. +EFFECT = ЭФФЕКТ ## Возвращает действующие ежегодные процентные ставки. +FV = БС ## Возвращает будущую стоимость инвестиции. +FVSCHEDULE = БЗРАСПИС ## Возвращает будущую стоимость первоначальной основной суммы после начисления ряда сложных процентов. +INTRATE = ИНОРМА ## Возвращает процентную ставку для полностью инвестированных ценных бумаг. +IPMT = ПРПЛТ ## Возвращает величину выплаты прибыли на вложения за данный период. +IRR = ВСД ## Возвращает внутреннюю ставку доходности для ряда потоков денежных средств. +ISPMT = ПРОЦПЛАТ ## Вычисляет выплаты за указанный период инвестиции. +MDURATION = МДЛИТ ## Возвращает модифицированную длительность Маколея для ценных бумаг с предполагаемой номинальной стоимостью 100 рублей. +MIRR = МВСД ## Возвращает внутреннюю ставку доходности, при которой положительные и отрицательные денежные потоки имеют разные значения ставки. +NOMINAL = НОМИНАЛ ## Возвращает номинальную годовую процентную ставку. +NPER = КПЕР ## Возвращает общее количество периодов выплаты для данного вклада. +NPV = ЧПС ## Возвращает чистую приведенную стоимость инвестиции, основанной на серии периодических денежных потоков и ставке дисконтирования. +ODDFPRICE = ЦЕНАПЕРВНЕРЕГ ## Возвращает цену за 100 рублей нарицательной стоимости ценных бумаг с нерегулярным первым периодом. +ODDFYIELD = ДОХОДПЕРВНЕРЕГ ## Возвращает доход по ценным бумагам с нерегулярным первым периодом. +ODDLPRICE = ЦЕНАПОСЛНЕРЕГ ## Возвращает цену за 100 рублей нарицательной стоимости ценных бумаг с нерегулярным последним периодом. +ODDLYIELD = ДОХОДПОСЛНЕРЕГ ## Возвращает доход по ценным бумагам с нерегулярным последним периодом. +PMT = ПЛТ ## Возвращает величину выплаты за один период аннуитета. +PPMT = ОСПЛТ ## Возвращает величину выплат в погашение основной суммы по инвестиции за заданный период. +PRICE = ЦЕНА ## Возвращает цену за 100 рублей нарицательной стоимости ценных бумаг, по которым производится периодическая выплата процентов. +PRICEDISC = ЦЕНАСКИДКА ## Возвращает цену за 100 рублей номинальной стоимости ценных бумаг, на которые сделана скидка. +PRICEMAT = ЦЕНАПОГАШ ## Возвращает цену за 100 рублей номинальной стоимости ценных бумаг, проценты по которым выплачиваются в срок погашения. +PV = ПС ## Возвращает приведенную (к текущему моменту) стоимость инвестиции. +RATE = СТАВКА ## Возвращает процентную ставку по аннуитету за один период. +RECEIVED = ПОЛУЧЕНО ## Возвращает сумму, полученную к сроку погашения полностью обеспеченных ценных бумаг. +SLN = АПЛ ## Возвращает величину линейной амортизации актива за один период. +SYD = АСЧ ## Возвращает величину амортизации актива за данный период, рассчитанную методом суммы годовых чисел. +TBILLEQ = РАВНОКЧЕК ## Возвращает эквивалентный облигации доход по казначейскому чеку. +TBILLPRICE = ЦЕНАКЧЕК ## Возвращает цену за 100 рублей нарицательной стоимости для казначейского чека. +TBILLYIELD = ДОХОДКЧЕК ## Возвращает доход по казначейскому чеку. +VDB = ПУО ## Возвращает величину амортизации актива для указанного или частичного периода при использовании метода сокращающегося баланса. +XIRR = ЧИСТВНДОХ ## Возвращает внутреннюю ставку доходности для графика денежных потоков, которые не обязательно носят периодический характер. +XNPV = ЧИСТНЗ ## Возвращает чистую приведенную стоимость для денежных потоков, которые не обязательно являются периодическими. +YIELD = ДОХОД ## Возвращает доход от ценных бумаг, по которым производятся периодические выплаты процентов. +YIELDDISC = ДОХОДСКИДКА ## Возвращает годовой доход по ценным бумагам, на которые сделана скидка (пример — казначейские чеки). +YIELDMAT = ДОХОДПОГАШ ## Возвращает годовой доход от ценных бумаг, проценты по которым выплачиваются в срок погашения. + + +## +## Information functions Информационные функции +## +CELL = ЯЧЕЙКА ## Возвращает информацию о формате, расположении или содержимом ячейки. +ERROR.TYPE = ТИП.ОШИБКИ ## Возвращает числовой код, соответствующий типу ошибки. +INFO = ИНФОРМ ## Возвращает информацию о текущей операционной среде. +ISBLANK = ЕПУСТО ## Возвращает значение ИСТИНА, если аргумент является ссылкой на пустую ячейку. +ISERR = ЕОШ ## Возвращает значение ИСТИНА, если аргумент ссылается на любое значение ошибки, кроме #Н/Д. +ISERROR = ЕОШИБКА ## Возвращает значение ИСТИНА, если аргумент ссылается на любое значение ошибки. +ISEVEN = ЕЧЁТН ## Возвращает значение ИСТИНА, если значение аргумента является четным числом. +ISLOGICAL = ЕЛОГИЧ ## Возвращает значение ИСТИНА, если аргумент ссылается на логическое значение. +ISNA = ЕНД ## Возвращает значение ИСТИНА, если аргумент ссылается на значение ошибки #Н/Д. +ISNONTEXT = ЕНЕТЕКСТ ## Возвращает значение ИСТИНА, если значение аргумента не является текстом. +ISNUMBER = ЕЧИСЛО ## Возвращает значение ИСТИНА, если аргумент ссылается на число. +ISODD = ЕНЕЧЁТ ## Возвращает значение ИСТИНА, если значение аргумента является нечетным числом. +ISREF = ЕССЫЛКА ## Возвращает значение ИСТИНА, если значение аргумента является ссылкой. +ISTEXT = ЕТЕКСТ ## Возвращает значение ИСТИНА, если значение аргумента является текстом. +N = Ч ## Возвращает значение, преобразованное в число. +NA = НД ## Возвращает значение ошибки #Н/Д. +TYPE = ТИП ## Возвращает число, обозначающее тип данных значения. + + +## +## Logical functions Логические функции +## +AND = И ## Renvoie VRAI si tous ses arguments sont VRAI. +FALSE = ЛОЖЬ ## Возвращает логическое значение ЛОЖЬ. +IF = ЕСЛИ ## Выполняет проверку условия. +IFERROR = ЕСЛИОШИБКА ## Возвращает введённое значение, если вычисление по формуле вызывает ошибку; в противном случае функция возвращает результат вычисления. +NOT = НЕ ## Меняет логическое значение своего аргумента на противоположное. +OR = ИЛИ ## Возвращает значение ИСТИНА, если хотя бы один аргумент имеет значение ИСТИНА. +TRUE = ИСТИНА ## Возвращает логическое значение ИСТИНА. + + +## +## Lookup and reference functions Функции ссылки и поиска +## +ADDRESS = АДРЕС ## Возвращает ссылку на отдельную ячейку листа в виде текста. +AREAS = ОБЛАСТИ ## Возвращает количество областей в ссылке. +CHOOSE = ВЫБОР ## Выбирает значение из списка значений по индексу. +COLUMN = СТОЛБЕЦ ## Возвращает номер столбца, на который указывает ссылка. +COLUMNS = ЧИСЛСТОЛБ ## Возвращает количество столбцов в ссылке. +HLOOKUP = ГПР ## Ищет в первой строке массива и возвращает значение отмеченной ячейки +HYPERLINK = ГИПЕРССЫЛКА ## Создает ссылку, открывающую документ, который находится на сервере сети, в интрасети или в Интернете. +INDEX = ИНДЕКС ## Использует индекс для выбора значения из ссылки или массива. +INDIRECT = ДВССЫЛ ## Возвращает ссылку, заданную текстовым значением. +LOOKUP = ПРОСМОТР ## Ищет значения в векторе или массиве. +MATCH = ПОИСКПОЗ ## Ищет значения в ссылке или массиве. +OFFSET = СМЕЩ ## Возвращает смещение ссылки относительно заданной ссылки. +ROW = СТРОКА ## Возвращает номер строки, определяемой ссылкой. +ROWS = ЧСТРОК ## Возвращает количество строк в ссылке. +RTD = ДРВ ## Извлекает данные реального времени из программ, поддерживающих автоматизацию COM (Программирование объектов. Стандартное средство для работы с объектами некоторого приложения из другого приложения или средства разработки. Программирование объектов (ранее называемое программированием OLE) является функцией модели COM (Component Object Model, модель компонентных объектов).). +TRANSPOSE = ТРАНСП ## Возвращает транспонированный массив. +VLOOKUP = ВПР ## Ищет значение в первом столбце массива и возвращает значение из ячейки в найденной строке и указанном столбце. + + +## +## Math and trigonometry functions Математические и тригонометрические функции +## +ABS = ABS ## Возвращает модуль (абсолютную величину) числа. +ACOS = ACOS ## Возвращает арккосинус числа. +ACOSH = ACOSH ## Возвращает гиперболический арккосинус числа. +ASIN = ASIN ## Возвращает арксинус числа. +ASINH = ASINH ## Возвращает гиперболический арксинус числа. +ATAN = ATAN ## Возвращает арктангенс числа. +ATAN2 = ATAN2 ## Возвращает арктангенс для заданных координат x и y. +ATANH = ATANH ## Возвращает гиперболический арктангенс числа. +CEILING = ОКРВВЕРХ ## Округляет число до ближайшего целого или до ближайшего кратного указанному значению. +COMBIN = ЧИСЛКОМБ ## Возвращает количество комбинаций для заданного числа объектов. +COS = COS ## Возвращает косинус числа. +COSH = COSH ## Возвращает гиперболический косинус числа. +DEGREES = ГРАДУСЫ ## Преобразует радианы в градусы. +EVEN = ЧЁТН ## Округляет число до ближайшего четного целого. +EXP = EXP ## Возвращает число e, возведенное в указанную степень. +FACT = ФАКТР ## Возвращает факториал числа. +FACTDOUBLE = ДВФАКТР ## Возвращает двойной факториал числа. +FLOOR = ОКРВНИЗ ## Округляет число до ближайшего меньшего по модулю значения. +GCD = НОД ## Возвращает наибольший общий делитель. +INT = ЦЕЛОЕ ## Округляет число до ближайшего меньшего целого. +LCM = НОК ## Возвращает наименьшее общее кратное. +LN = LN ## Возвращает натуральный логарифм числа. +LOG = LOG ## Возвращает логарифм числа по заданному основанию. +LOG10 = LOG10 ## Возвращает десятичный логарифм числа. +MDETERM = МОПРЕД ## Возвращает определитель матрицы массива. +MINVERSE = МОБР ## Возвращает обратную матрицу массива. +MMULT = МУМНОЖ ## Возвращает произведение матриц двух массивов. +MOD = ОСТАТ ## Возвращает остаток от деления. +MROUND = ОКРУГЛТ ## Возвращает число, округленное с требуемой точностью. +MULTINOMIAL = МУЛЬТИНОМ ## Возвращает мультиномиальный коэффициент множества чисел. +ODD = НЕЧЁТ ## Округляет число до ближайшего нечетного целого. +PI = ПИ ## Возвращает число пи. +POWER = СТЕПЕНЬ ## Возвращает результат возведения числа в степень. +PRODUCT = ПРОИЗВЕД ## Возвращает произведение аргументов. +QUOTIENT = ЧАСТНОЕ ## Возвращает целую часть частного при делении. +RADIANS = РАДИАНЫ ## Преобразует градусы в радианы. +RAND = СЛЧИС ## Возвращает случайное число в интервале от 0 до 1. +RANDBETWEEN = СЛУЧМЕЖДУ ## Возвращает случайное число в интервале между двумя заданными числами. +ROMAN = РИМСКОЕ ## Преобразует арабские цифры в римские в виде текста. +ROUND = ОКРУГЛ ## Округляет число до указанного количества десятичных разрядов. +ROUNDDOWN = ОКРУГЛВНИЗ ## Округляет число до ближайшего меньшего по модулю значения. +ROUNDUP = ОКРУГЛВВЕРХ ## Округляет число до ближайшего большего по модулю значения. +SERIESSUM = РЯД.СУММ ## Возвращает сумму степенного ряда, вычисленную по формуле. +SIGN = ЗНАК ## Возвращает знак числа. +SIN = SIN ## Возвращает синус заданного угла. +SINH = SINH ## Возвращает гиперболический синус числа. +SQRT = КОРЕНЬ ## Возвращает положительное значение квадратного корня. +SQRTPI = КОРЕНЬПИ ## Возвращает квадратный корень из значения выражения (число * ПИ). +SUBTOTAL = ПРОМЕЖУТОЧНЫЕ.ИТОГИ ## Возвращает промежуточный итог в списке или базе данных. +SUM = СУММ ## Суммирует аргументы. +SUMIF = СУММЕСЛИ ## Суммирует ячейки, удовлетворяющие заданному условию. +SUMIFS = СУММЕСЛИМН ## Суммирует диапазон ячеек, удовлетворяющих нескольким условиям. +SUMPRODUCT = СУММПРОИЗВ ## Возвращает сумму произведений соответствующих элементов массивов. +SUMSQ = СУММКВ ## Возвращает сумму квадратов аргументов. +SUMX2MY2 = СУММРАЗНКВ ## Возвращает сумму разностей квадратов соответствующих значений в двух массивах. +SUMX2PY2 = СУММСУММКВ ## Возвращает сумму сумм квадратов соответствующих элементов двух массивов. +SUMXMY2 = СУММКВРАЗН ## Возвращает сумму квадратов разностей соответствующих значений в двух массивах. +TAN = TAN ## Возвращает тангенс числа. +TANH = TANH ## Возвращает гиперболический тангенс числа. +TRUNC = ОТБР ## Отбрасывает дробную часть числа. + + +## +## Statistical functions Статистические функции +## +AVEDEV = СРОТКЛ ## Возвращает среднее арифметическое абсолютных значений отклонений точек данных от среднего. +AVERAGE = СРЗНАЧ ## Возвращает среднее арифметическое аргументов. +AVERAGEA = СРЗНАЧА ## Возвращает среднее арифметическое аргументов, включая числа, текст и логические значения. +AVERAGEIF = СРЗНАЧЕСЛИ ## Возвращает среднее значение (среднее арифметическое) всех ячеек в диапазоне, которые удовлетворяют данному условию. +AVERAGEIFS = СРЗНАЧЕСЛИМН ## Возвращает среднее значение (среднее арифметическое) всех ячеек, которые удовлетворяют нескольким условиям. +BETADIST = БЕТАРАСП ## Возвращает интегральную функцию бета-распределения. +BETAINV = БЕТАОБР ## Возвращает обратную интегральную функцию указанного бета-распределения. +BINOMDIST = БИНОМРАСП ## Возвращает отдельное значение биномиального распределения. +CHIDIST = ХИ2РАСП ## Возвращает одностороннюю вероятность распределения хи-квадрат. +CHIINV = ХИ2ОБР ## Возвращает обратное значение односторонней вероятности распределения хи-квадрат. +CHITEST = ХИ2ТЕСТ ## Возвращает тест на независимость. +CONFIDENCE = ДОВЕРИТ ## Возвращает доверительный интервал для среднего значения по генеральной совокупности. +CORREL = КОРРЕЛ ## Возвращает коэффициент корреляции между двумя множествами данных. +COUNT = СЧЁТ ## Подсчитывает количество чисел в списке аргументов. +COUNTA = СЧЁТЗ ## Подсчитывает количество значений в списке аргументов. +COUNTBLANK = СЧИТАТЬПУСТОТЫ ## Подсчитывает количество пустых ячеек в диапазоне +COUNTIF = СЧЁТЕСЛИ ## Подсчитывает количество ячеек в диапазоне, удовлетворяющих заданному условию +COUNTIFS = СЧЁТЕСЛИМН ## Подсчитывает количество ячеек внутри диапазона, удовлетворяющих нескольким условиям. +COVAR = КОВАР ## Возвращает ковариацию, среднее произведений парных отклонений +CRITBINOM = КРИТБИНОМ ## Возвращает наименьшее значение, для которого интегральное биномиальное распределение меньше или равно заданному критерию. +DEVSQ = КВАДРОТКЛ ## Возвращает сумму квадратов отклонений. +EXPONDIST = ЭКСПРАСП ## Возвращает экспоненциальное распределение. +FDIST = FРАСП ## Возвращает F-распределение вероятности. +FINV = FРАСПОБР ## Возвращает обратное значение для F-распределения вероятности. +FISHER = ФИШЕР ## Возвращает преобразование Фишера. +FISHERINV = ФИШЕРОБР ## Возвращает обратное преобразование Фишера. +FORECAST = ПРЕДСКАЗ ## Возвращает значение линейного тренда. +FREQUENCY = ЧАСТОТА ## Возвращает распределение частот в виде вертикального массива. +FTEST = ФТЕСТ ## Возвращает результат F-теста. +GAMMADIST = ГАММАРАСП ## Возвращает гамма-распределение. +GAMMAINV = ГАММАОБР ## Возвращает обратное гамма-распределение. +GAMMALN = ГАММАНЛОГ ## Возвращает натуральный логарифм гамма функции, Γ(x). +GEOMEAN = СРГЕОМ ## Возвращает среднее геометрическое. +GROWTH = РОСТ ## Возвращает значения в соответствии с экспоненциальным трендом. +HARMEAN = СРГАРМ ## Возвращает среднее гармоническое. +HYPGEOMDIST = ГИПЕРГЕОМЕТ ## Возвращает гипергеометрическое распределение. +INTERCEPT = ОТРЕЗОК ## Возвращает отрезок, отсекаемый на оси линией линейной регрессии. +KURT = ЭКСЦЕСС ## Возвращает эксцесс множества данных. +LARGE = НАИБОЛЬШИЙ ## Возвращает k-ое наибольшее значение в множестве данных. +LINEST = ЛИНЕЙН ## Возвращает параметры линейного тренда. +LOGEST = ЛГРФПРИБЛ ## Возвращает параметры экспоненциального тренда. +LOGINV = ЛОГНОРМОБР ## Возвращает обратное логарифмическое нормальное распределение. +LOGNORMDIST = ЛОГНОРМРАСП ## Возвращает интегральное логарифмическое нормальное распределение. +MAX = МАКС ## Возвращает наибольшее значение в списке аргументов. +MAXA = МАКСА ## Возвращает наибольшее значение в списке аргументов, включая числа, текст и логические значения. +MEDIAN = МЕДИАНА ## Возвращает медиану заданных чисел. +MIN = МИН ## Возвращает наименьшее значение в списке аргументов. +MINA = МИНА ## Возвращает наименьшее значение в списке аргументов, включая числа, текст и логические значения. +MODE = МОДА ## Возвращает значение моды множества данных. +NEGBINOMDIST = ОТРБИНОМРАСП ## Возвращает отрицательное биномиальное распределение. +NORMDIST = НОРМРАСП ## Возвращает нормальную функцию распределения. +NORMINV = НОРМОБР ## Возвращает обратное нормальное распределение. +NORMSDIST = НОРМСТРАСП ## Возвращает стандартное нормальное интегральное распределение. +NORMSINV = НОРМСТОБР ## Возвращает обратное значение стандартного нормального распределения. +PEARSON = ПИРСОН ## Возвращает коэффициент корреляции Пирсона. +PERCENTILE = ПЕРСЕНТИЛЬ ## Возвращает k-ую персентиль для значений диапазона. +PERCENTRANK = ПРОЦЕНТРАНГ ## Возвращает процентную норму значения в множестве данных. +PERMUT = ПЕРЕСТ ## Возвращает количество перестановок для заданного числа объектов. +POISSON = ПУАССОН ## Возвращает распределение Пуассона. +PROB = ВЕРОЯТНОСТЬ ## Возвращает вероятность того, что значение из диапазона находится внутри заданных пределов. +QUARTILE = КВАРТИЛЬ ## Возвращает квартиль множества данных. +RANK = РАНГ ## Возвращает ранг числа в списке чисел. +RSQ = КВПИРСОН ## Возвращает квадрат коэффициента корреляции Пирсона. +SKEW = СКОС ## Возвращает асимметрию распределения. +SLOPE = НАКЛОН ## Возвращает наклон линии линейной регрессии. +SMALL = НАИМЕНЬШИЙ ## Возвращает k-ое наименьшее значение в множестве данных. +STANDARDIZE = НОРМАЛИЗАЦИЯ ## Возвращает нормализованное значение. +STDEV = СТАНДОТКЛОН ## Оценивает стандартное отклонение по выборке. +STDEVA = СТАНДОТКЛОНА ## Оценивает стандартное отклонение по выборке, включая числа, текст и логические значения. +STDEVP = СТАНДОТКЛОНП ## Вычисляет стандартное отклонение по генеральной совокупности. +STDEVPA = СТАНДОТКЛОНПА ## Вычисляет стандартное отклонение по генеральной совокупности, включая числа, текст и логические значения. +STEYX = СТОШYX ## Возвращает стандартную ошибку предсказанных значений y для каждого значения x в регрессии. +TDIST = СТЬЮДРАСП ## Возвращает t-распределение Стьюдента. +TINV = СТЬЮДРАСПОБР ## Возвращает обратное t-распределение Стьюдента. +TREND = ТЕНДЕНЦИЯ ## Возвращает значения в соответствии с линейным трендом. +TRIMMEAN = УРЕЗСРЕДНЕЕ ## Возвращает среднее внутренности множества данных. +TTEST = ТТЕСТ ## Возвращает вероятность, соответствующую критерию Стьюдента. +VAR = ДИСП ## Оценивает дисперсию по выборке. +VARA = ДИСПА ## Оценивает дисперсию по выборке, включая числа, текст и логические значения. +VARP = ДИСПР ## Вычисляет дисперсию для генеральной совокупности. +VARPA = ДИСПРА ## Вычисляет дисперсию для генеральной совокупности, включая числа, текст и логические значения. +WEIBULL = ВЕЙБУЛЛ ## Возвращает распределение Вейбулла. +ZTEST = ZТЕСТ ## Возвращает двустороннее P-значение z-теста. + + +## +## Text functions Текстовые функции +## +ASC = ASC ## Для языков с двухбайтовыми наборами знаков (например, катакана) преобразует полноширинные (двухбайтовые) знаки в полуширинные (однобайтовые). +BAHTTEXT = БАТТЕКСТ ## Преобразует число в текст, используя денежный формат ß (БАТ). +CHAR = СИМВОЛ ## Возвращает знак с заданным кодом. +CLEAN = ПЕЧСИМВ ## Удаляет все непечатаемые знаки из текста. +CODE = КОДСИМВ ## Возвращает числовой код первого знака в текстовой строке. +CONCATENATE = СЦЕПИТЬ ## Объединяет несколько текстовых элементов в один. +DOLLAR = РУБЛЬ ## Преобразует число в текст, используя денежный формат. +EXACT = СОВПАД ## Проверяет идентичность двух текстовых значений. +FIND = НАЙТИ ## Ищет вхождения одного текстового значения в другом (с учетом регистра). +FINDB = НАЙТИБ ## Ищет вхождения одного текстового значения в другом (с учетом регистра). +FIXED = ФИКСИРОВАННЫЙ ## Форматирует число и преобразует его в текст с заданным числом десятичных знаков. +JIS = JIS ## Для языков с двухбайтовыми наборами знаков (например, катакана) преобразует полуширинные (однобайтовые) знаки в текстовой строке в полноширинные (двухбайтовые). +LEFT = ЛЕВСИМВ ## Возвращает крайние слева знаки текстового значения. +LEFTB = ЛЕВБ ## Возвращает крайние слева знаки текстового значения. +LEN = ДЛСТР ## Возвращает количество знаков в текстовой строке. +LENB = ДЛИНБ ## Возвращает количество знаков в текстовой строке. +LOWER = СТРОЧН ## Преобразует все буквы текста в строчные. +MID = ПСТР ## Возвращает заданное число знаков из строки текста, начиная с указанной позиции. +MIDB = ПСТРБ ## Возвращает заданное число знаков из строки текста, начиная с указанной позиции. +PHONETIC = PHONETIC ## Извлекает фонетические (фуригана) знаки из текстовой строки. +PROPER = ПРОПНАЧ ## Преобразует первую букву в каждом слове текста в прописную. +REPLACE = ЗАМЕНИТЬ ## Заменяет знаки в тексте. +REPLACEB = ЗАМЕНИТЬБ ## Заменяет знаки в тексте. +REPT = ПОВТОР ## Повторяет текст заданное число раз. +RIGHT = ПРАВСИМВ ## Возвращает крайние справа знаки текстовой строки. +RIGHTB = ПРАВБ ## Возвращает крайние справа знаки текстовой строки. +SEARCH = ПОИСК ## Ищет вхождения одного текстового значения в другом (без учета регистра). +SEARCHB = ПОИСКБ ## Ищет вхождения одного текстового значения в другом (без учета регистра). +SUBSTITUTE = ПОДСТАВИТЬ ## Заменяет в текстовой строке старый текст новым. +T = Т ## Преобразует аргументы в текст. +TEXT = ТЕКСТ ## Форматирует число и преобразует его в текст. +TRIM = СЖПРОБЕЛЫ ## Удаляет из текста пробелы. +UPPER = ПРОПИСН ## Преобразует все буквы текста в прописные. +VALUE = ЗНАЧЕН ## Преобразует текстовый аргумент в число. diff --git a/admin/helpers/PHPExcel/locale/ru/index.html b/admin/helpers/PHPExcel/locale/ru/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/ru/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/sv/config b/admin/helpers/PHPExcel/locale/sv/config new file mode 100644 index 00000000..726f7716 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/sv/config @@ -0,0 +1,47 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = kr + + +## +## Excel Error Codes (For future use) +## +NULL = #Skärning! +DIV0 = #Division/0! +VALUE = #Värdefel! +REF = #Referens! +NAME = #Namn? +NUM = #Ogiltigt! +NA = #Saknas! diff --git a/admin/helpers/PHPExcel/locale/sv/functions b/admin/helpers/PHPExcel/locale/sv/functions new file mode 100644 index 00000000..9af37d8e --- /dev/null +++ b/admin/helpers/PHPExcel/locale/sv/functions @@ -0,0 +1,408 @@ +## +## Add-in and Automation functions Tilläggs- och automatiseringsfunktioner +## +GETPIVOTDATA = HÄMTA.PIVOTDATA ## Returnerar data som lagrats i en pivottabellrapport + + +## +## Cube functions Kubfunktioner +## +CUBEKPIMEMBER = KUBKPIMEDLEM ## Returnerar namn, egenskap och mått för en KPI och visar namnet och egenskapen i cellen. En KPI, eller prestandaindikator, är ett kvantifierbart mått, t.ex. månatlig bruttovinst eller personalomsättning per kvartal, som används för att analysera ett företags resultat. +CUBEMEMBER = KUBMEDLEM ## Returnerar en medlem eller ett par i en kubhierarki. Används för att verifiera att medlemmen eller paret finns i kuben. +CUBEMEMBERPROPERTY = KUBMEDLEMSEGENSKAP ## Returnerar värdet för en medlemsegenskap i kuben. Används för att verifiera att ett medlemsnamn finns i kuben, samt för att returnera den angivna egenskapen för medlemmen. +CUBERANKEDMEMBER = KUBRANGORDNADMEDLEM ## Returnerar den n:te, eller rangordnade, medlemmen i en uppsättning. Används för att returnera ett eller flera element i en uppsättning, till exempelvis den bästa försäljaren eller de tio bästa eleverna. +CUBESET = KUBINSTÄLLNING ## Definierar en beräknad uppsättning medlemmar eller par genom att skicka ett bestämt uttryck till kuben på servern, som skapar uppsättningen och sedan returnerar den till Microsoft Office Excel. +CUBESETCOUNT = KUBINSTÄLLNINGANTAL ## Returnerar antalet objekt i en uppsättning. +CUBEVALUE = KUBVÄRDE ## Returnerar ett mängdvärde från en kub. + + +## +## Database functions Databasfunktioner +## +DAVERAGE = DMEDEL ## Returnerar medelvärdet av databasposterna +DCOUNT = DANTAL ## Räknar antalet celler som innehåller tal i en databas +DCOUNTA = DANTALV ## Räknar ifyllda celler i en databas +DGET = DHÄMTA ## Hämtar en enstaka post från en databas som uppfyller de angivna villkoren +DMAX = DMAX ## Returnerar det största värdet från databasposterna +DMIN = DMIN ## Returnerar det minsta värdet från databasposterna +DPRODUCT = DPRODUKT ## Multiplicerar värdena i ett visst fält i poster som uppfyller villkoret +DSTDEV = DSTDAV ## Uppskattar standardavvikelsen baserat på ett urval av databasposterna +DSTDEVP = DSTDAVP ## Beräknar standardavvikelsen utifrån hela populationen av valda databasposter +DSUM = DSUMMA ## Summerar talen i kolumnfält i databasposter som uppfyller villkoret +DVAR = DVARIANS ## Uppskattar variansen baserat på ett urval av databasposterna +DVARP = DVARIANSP ## Beräknar variansen utifrån hela populationen av valda databasposter + + +## +## Date and time functions Tid- och datumfunktioner +## +DATE = DATUM ## Returnerar ett serienummer för ett visst datum +DATEVALUE = DATUMVÄRDE ## Konverterar ett datum i textformat till ett serienummer +DAY = DAG ## Konverterar ett serienummer till dag i månaden +DAYS360 = DAGAR360 ## Beräknar antalet dagar mellan två datum baserat på ett 360-dagarsår +EDATE = EDATUM ## Returnerar serienumret för ett datum som infaller ett visst antal månader före eller efter startdatumet +EOMONTH = SLUTMÅNAD ## Returnerar serienumret för sista dagen i månaden ett visst antal månader tidigare eller senare +HOUR = TIMME ## Konverterar ett serienummer till en timme +MINUTE = MINUT ## Konverterar ett serienummer till en minut +MONTH = MÅNAD ## Konverterar ett serienummer till en månad +NETWORKDAYS = NETTOARBETSDAGAR ## Returnerar antalet hela arbetsdagar mellan två datum +NOW = NU ## Returnerar serienumret för dagens datum och aktuell tid +SECOND = SEKUND ## Konverterar ett serienummer till en sekund +TIME = KLOCKSLAG ## Returnerar serienumret för en viss tid +TIMEVALUE = TIDVÄRDE ## Konverterar en tid i textformat till ett serienummer +TODAY = IDAG ## Returnerar serienumret för dagens datum +WEEKDAY = VECKODAG ## Konverterar ett serienummer till en dag i veckan +WEEKNUM = VECKONR ## Konverterar ett serienummer till ett veckonummer +WORKDAY = ARBETSDAGAR ## Returnerar serienumret för ett datum ett visst antal arbetsdagar tidigare eller senare +YEAR = ÅR ## Konverterar ett serienummer till ett år +YEARFRAC = ÅRDEL ## Returnerar en del av ett år som representerar antalet hela dagar mellan start- och slutdatum + + +## +## Engineering functions Tekniska funktioner +## +BESSELI = BESSELI ## Returnerar den modifierade Bessel-funktionen In(x) +BESSELJ = BESSELJ ## Returnerar Bessel-funktionen Jn(x) +BESSELK = BESSELK ## Returnerar den modifierade Bessel-funktionen Kn(x) +BESSELY = BESSELY ## Returnerar Bessel-funktionen Yn(x) +BIN2DEC = BIN.TILL.DEC ## Omvandlar ett binärt tal till decimalt +BIN2HEX = BIN.TILL.HEX ## Omvandlar ett binärt tal till hexadecimalt +BIN2OCT = BIN.TILL.OKT ## Omvandlar ett binärt tal till oktalt +COMPLEX = KOMPLEX ## Omvandlar reella och imaginära koefficienter till ett komplext tal +CONVERT = KONVERTERA ## Omvandlar ett tal från ett måttsystem till ett annat +DEC2BIN = DEC.TILL.BIN ## Omvandlar ett decimalt tal till binärt +DEC2HEX = DEC.TILL.HEX ## Omvandlar ett decimalt tal till hexadecimalt +DEC2OCT = DEC.TILL.OKT ## Omvandlar ett decimalt tal till oktalt +DELTA = DELTA ## Testar om två värden är lika +ERF = FELF ## Returnerar felfunktionen +ERFC = FELFK ## Returnerar den komplementära felfunktionen +GESTEP = SLSTEG ## Testar om ett tal är större än ett tröskelvärde +HEX2BIN = HEX.TILL.BIN ## Omvandlar ett hexadecimalt tal till binärt +HEX2DEC = HEX.TILL.DEC ## Omvandlar ett hexadecimalt tal till decimalt +HEX2OCT = HEX.TILL.OKT ## Omvandlar ett hexadecimalt tal till oktalt +IMABS = IMABS ## Returnerar absolutvärdet (modulus) för ett komplext tal +IMAGINARY = IMAGINÄR ## Returnerar den imaginära koefficienten för ett komplext tal +IMARGUMENT = IMARGUMENT ## Returnerar det komplexa talets argument, en vinkel uttryckt i radianer +IMCONJUGATE = IMKONJUGAT ## Returnerar det komplexa talets konjugat +IMCOS = IMCOS ## Returnerar cosinus för ett komplext tal +IMDIV = IMDIV ## Returnerar kvoten för två komplexa tal +IMEXP = IMEUPPHÖJT ## Returnerar exponenten för ett komplext tal +IMLN = IMLN ## Returnerar den naturliga logaritmen för ett komplext tal +IMLOG10 = IMLOG10 ## Returnerar 10-logaritmen för ett komplext tal +IMLOG2 = IMLOG2 ## Returnerar 2-logaritmen för ett komplext tal +IMPOWER = IMUPPHÖJT ## Returnerar ett komplext tal upphöjt till en exponent +IMPRODUCT = IMPRODUKT ## Returnerar produkten av komplexa tal +IMREAL = IMREAL ## Returnerar den reella koefficienten för ett komplext tal +IMSIN = IMSIN ## Returnerar sinus för ett komplext tal +IMSQRT = IMROT ## Returnerar kvadratroten av ett komplext tal +IMSUB = IMDIFF ## Returnerar differensen mellan två komplexa tal +IMSUM = IMSUM ## Returnerar summan av komplexa tal +OCT2BIN = OKT.TILL.BIN ## Omvandlar ett oktalt tal till binärt +OCT2DEC = OKT.TILL.DEC ## Omvandlar ett oktalt tal till decimalt +OCT2HEX = OKT.TILL.HEX ## Omvandlar ett oktalt tal till hexadecimalt + + +## +## Financial functions Finansiella funktioner +## +ACCRINT = UPPLRÄNTA ## Returnerar den upplupna räntan för värdepapper med periodisk ränta +ACCRINTM = UPPLOBLRÄNTA ## Returnerar den upplupna räntan för ett värdepapper som ger avkastning på förfallodagen +AMORDEGRC = AMORDEGRC ## Returnerar avskrivningen för varje redovisningsperiod med hjälp av en avskrivningskoefficient +AMORLINC = AMORLINC ## Returnerar avskrivningen för varje redovisningsperiod +COUPDAYBS = KUPDAGBB ## Returnerar antal dagar från början av kupongperioden till likviddagen +COUPDAYS = KUPDAGARS ## Returnerar antalet dagar i kupongperioden som innehåller betalningsdatumet +COUPDAYSNC = KUPDAGNK ## Returnerar antalet dagar från betalningsdatumet till nästa kupongdatum +COUPNCD = KUPNKD ## Returnerar nästa kupongdatum efter likviddagen +COUPNUM = KUPANT ## Returnerar kuponger som förfaller till betalning mellan likviddagen och förfallodagen +COUPPCD = KUPFKD ## Returnerar föregående kupongdatum före likviddagen +CUMIPMT = KUMRÄNTA ## Returnerar den ackumulerade räntan som betalats mellan två perioder +CUMPRINC = KUMPRIS ## Returnerar det ackumulerade kapitalbeloppet som betalats på ett lån mellan två perioder +DB = DB ## Returnerar avskrivningen för en tillgång under en angiven tid enligt metoden för fast degressiv avskrivning +DDB = DEGAVSKR ## Returnerar en tillgångs värdeminskning under en viss period med hjälp av dubbel degressiv avskrivning eller någon annan metod som du anger +DISC = DISK ## Returnerar diskonteringsräntan för ett värdepapper +DOLLARDE = DECTAL ## Omvandlar ett pris uttryckt som ett bråk till ett decimaltal +DOLLARFR = BRÅK ## Omvandlar ett pris i kronor uttryckt som ett decimaltal till ett bråk +DURATION = LÖPTID ## Returnerar den årliga löptiden för en säkerhet med periodiska räntebetalningar +EFFECT = EFFRÄNTA ## Returnerar den årliga effektiva räntesatsen +FV = SLUTVÄRDE ## Returnerar det framtida värdet på en investering +FVSCHEDULE = FÖRRÄNTNING ## Returnerar det framtida värdet av ett begynnelsekapital beräknat på olika räntenivåer +INTRATE = ÅRSRÄNTA ## Returnerar räntesatsen för ett betalt värdepapper +IPMT = RBETALNING ## Returnerar räntedelen av en betalning för en given period +IRR = IR ## Returnerar internräntan för en serie betalningar +ISPMT = RALÅN ## Beräknar räntan som har betalats under en specifik betalningsperiod +MDURATION = MLÖPTID ## Returnerar den modifierade Macauley-löptiden för ett värdepapper med det antagna nominella värdet 100 kr +MIRR = MODIR ## Returnerar internräntan där positiva och negativa betalningar finansieras med olika räntor +NOMINAL = NOMRÄNTA ## Returnerar den årliga nominella räntesatsen +NPER = PERIODER ## Returnerar antalet perioder för en investering +NPV = NETNUVÄRDE ## Returnerar nuvärdet av en serie periodiska betalningar vid en given diskonteringsränta +ODDFPRICE = UDDAFPRIS ## Returnerar priset per 100 kr nominellt värde för ett värdepapper med en udda första period +ODDFYIELD = UDDAFAVKASTNING ## Returnerar avkastningen för en säkerhet med en udda första period +ODDLPRICE = UDDASPRIS ## Returnerar priset per 100 kr nominellt värde för ett värdepapper med en udda sista period +ODDLYIELD = UDDASAVKASTNING ## Returnerar avkastningen för en säkerhet med en udda sista period +PMT = BETALNING ## Returnerar den periodiska betalningen för en annuitet +PPMT = AMORT ## Returnerar amorteringsdelen av en annuitetsbetalning för en given period +PRICE = PRIS ## Returnerar priset per 100 kr nominellt värde för ett värdepapper som ger periodisk ränta +PRICEDISC = PRISDISK ## Returnerar priset per 100 kr nominellt värde för ett diskonterat värdepapper +PRICEMAT = PRISFÖRF ## Returnerar priset per 100 kr nominellt värde för ett värdepapper som ger ränta på förfallodagen +PV = PV ## Returnerar nuvärdet av en serie lika stora periodiska betalningar +RATE = RÄNTA ## Returnerar räntesatsen per period i en annuitet +RECEIVED = BELOPP ## Returnerar beloppet som utdelas på förfallodagen för ett betalat värdepapper +SLN = LINAVSKR ## Returnerar den linjära avskrivningen för en tillgång under en period +SYD = ÅRSAVSKR ## Returnerar den årliga avskrivningssumman för en tillgång under en angiven period +TBILLEQ = SSVXEKV ## Returnerar avkastningen motsvarande en obligation för en statsskuldväxel +TBILLPRICE = SSVXPRIS ## Returnerar priset per 100 kr nominellt värde för en statsskuldväxel +TBILLYIELD = SSVXRÄNTA ## Returnerar avkastningen för en statsskuldväxel +VDB = VDEGRAVSKR ## Returnerar avskrivningen för en tillgång under en angiven period (med degressiv avskrivning) +XIRR = XIRR ## Returnerar internräntan för en serie betalningar som inte nödvändigtvis är periodiska +XNPV = XNUVÄRDE ## Returnerar det nuvarande nettovärdet för en serie betalningar som inte nödvändigtvis är periodiska +YIELD = NOMAVK ## Returnerar avkastningen för ett värdepapper som ger periodisk ränta +YIELDDISC = NOMAVKDISK ## Returnerar den årliga avkastningen för diskonterade värdepapper, exempelvis en statsskuldväxel +YIELDMAT = NOMAVKFÖRF ## Returnerar den årliga avkastningen för ett värdepapper som ger ränta på förfallodagen + + +## +## Information functions Informationsfunktioner +## +CELL = CELL ## Returnerar information om formatering, plats och innehåll i en cell +ERROR.TYPE = FEL.TYP ## Returnerar ett tal som motsvarar ett felvärde +INFO = INFO ## Returnerar information om operativsystemet +ISBLANK = ÄRREF ## Returnerar SANT om värdet är tomt +ISERR = Ä ## Returnerar SANT om värdet är ett felvärde annat än #SAKNAS! +ISERROR = ÄRFEL ## Returnerar SANT om värdet är ett felvärde +ISEVEN = ÄRJÄMN ## Returnerar SANT om talet är jämnt +ISLOGICAL = ÄREJTEXT ## Returnerar SANT om värdet är ett logiskt värde +ISNA = ÄRLOGISK ## Returnerar SANT om värdet är felvärdet #SAKNAS! +ISNONTEXT = ÄRSAKNAD ## Returnerar SANT om värdet inte är text +ISNUMBER = ÄRTAL ## Returnerar SANT om värdet är ett tal +ISODD = ÄRUDDA ## Returnerar SANT om talet är udda +ISREF = ÄRTOM ## Returnerar SANT om värdet är en referens +ISTEXT = ÄRTEXT ## Returnerar SANT om värdet är text +N = N ## Returnerar ett värde omvandlat till ett tal +NA = SAKNAS ## Returnerar felvärdet #SAKNAS! +TYPE = VÄRDETYP ## Returnerar ett tal som anger värdets datatyp + + +## +## Logical functions Logiska funktioner +## +AND = OCH ## Returnerar SANT om alla argument är sanna +FALSE = FALSKT ## Returnerar det logiska värdet FALSKT +IF = OM ## Anger vilket logiskt test som ska utföras +IFERROR = OMFEL ## Returnerar ett värde som du anger om en formel utvärderar till ett fel; annars returneras resultatet av formeln +NOT = ICKE ## Inverterar logiken för argumenten +OR = ELLER ## Returnerar SANT om något argument är SANT +TRUE = SANT ## Returnerar det logiska värdet SANT + + +## +## Lookup and reference functions Sök- och referensfunktioner +## +ADDRESS = ADRESS ## Returnerar en referens som text till en enstaka cell i ett kalkylblad +AREAS = OMRÅDEN ## Returnerar antalet områden i en referens +CHOOSE = VÄLJ ## Väljer ett värde i en lista över värden +COLUMN = KOLUMN ## Returnerar kolumnnumret för en referens +COLUMNS = KOLUMNER ## Returnerar antalet kolumner i en referens +HLOOKUP = LETAKOLUMN ## Söker i den översta raden i en matris och returnerar värdet för angiven cell +HYPERLINK = HYPERLÄNK ## Skapar en genväg eller ett hopp till ett dokument i nätverket, i ett intranät eller på Internet +INDEX = INDEX ## Använder ett index för ett välja ett värde i en referens eller matris +INDIRECT = INDIREKT ## Returnerar en referens som anges av ett textvärde +LOOKUP = LETAUPP ## Letar upp värden i en vektor eller matris +MATCH = PASSA ## Letar upp värden i en referens eller matris +OFFSET = FÖRSKJUTNING ## Returnerar en referens förskjuten i förhållande till en given referens +ROW = RAD ## Returnerar radnumret för en referens +ROWS = RADER ## Returnerar antalet rader i en referens +RTD = RTD ## Hämtar realtidsdata från ett program som stöder COM-automation (Automation: Ett sätt att arbeta med ett programs objekt från ett annat program eller utvecklingsverktyg. Detta kallades tidigare för OLE Automation, och är en branschstandard och ingår i Component Object Model (COM).) +TRANSPOSE = TRANSPONERA ## Transponerar en matris +VLOOKUP = LETARAD ## Letar i den första kolumnen i en matris och flyttar över raden för att returnera värdet för en cell + + +## +## Math and trigonometry functions Matematiska och trigonometriska funktioner +## +ABS = ABS ## Returnerar absolutvärdet av ett tal +ACOS = ARCCOS ## Returnerar arcus cosinus för ett tal +ACOSH = ARCCOSH ## Returnerar inverterad hyperbolisk cosinus för ett tal +ASIN = ARCSIN ## Returnerar arcus cosinus för ett tal +ASINH = ARCSINH ## Returnerar hyperbolisk arcus sinus för ett tal +ATAN = ARCTAN ## Returnerar arcus tangens för ett tal +ATAN2 = ARCTAN2 ## Returnerar arcus tangens för en x- och en y- koordinat +ATANH = ARCTANH ## Returnerar hyperbolisk arcus tangens för ett tal +CEILING = RUNDA.UPP ## Avrundar ett tal till närmaste heltal eller närmaste signifikanta multipel +COMBIN = KOMBIN ## Returnerar antalet kombinationer för ett givet antal objekt +COS = COS ## Returnerar cosinus för ett tal +COSH = COSH ## Returnerar hyperboliskt cosinus för ett tal +DEGREES = GRADER ## Omvandlar radianer till grader +EVEN = JÄMN ## Avrundar ett tal uppåt till närmaste heltal +EXP = EXP ## Returnerar e upphöjt till ett givet tal +FACT = FAKULTET ## Returnerar fakulteten för ett tal +FACTDOUBLE = DUBBELFAKULTET ## Returnerar dubbelfakulteten för ett tal +FLOOR = RUNDA.NED ## Avrundar ett tal nedåt mot noll +GCD = SGD ## Returnerar den största gemensamma nämnaren +INT = HELTAL ## Avrundar ett tal nedåt till närmaste heltal +LCM = MGM ## Returnerar den minsta gemensamma multipeln +LN = LN ## Returnerar den naturliga logaritmen för ett tal +LOG = LOG ## Returnerar logaritmen för ett tal för en given bas +LOG10 = LOG10 ## Returnerar 10-logaritmen för ett tal +MDETERM = MDETERM ## Returnerar matrisen som är avgörandet av en matris +MINVERSE = MINVERT ## Returnerar matrisinversen av en matris +MMULT = MMULT ## Returnerar matrisprodukten av två matriser +MOD = REST ## Returnerar resten vid en division +MROUND = MAVRUNDA ## Returnerar ett tal avrundat till en given multipel +MULTINOMIAL = MULTINOMIAL ## Returnerar multinomialen för en uppsättning tal +ODD = UDDA ## Avrundar ett tal uppåt till närmaste udda heltal +PI = PI ## Returnerar värdet pi +POWER = UPPHÖJT.TILL ## Returnerar resultatet av ett tal upphöjt till en exponent +PRODUCT = PRODUKT ## Multiplicerar argumenten +QUOTIENT = KVOT ## Returnerar heltalsdelen av en division +RADIANS = RADIANER ## Omvandlar grader till radianer +RAND = SLUMP ## Returnerar ett slumptal mellan 0 och 1 +RANDBETWEEN = SLUMP.MELLAN ## Returnerar ett slumptal mellan de tal som du anger +ROMAN = ROMERSK ## Omvandlar vanliga (arabiska) siffror till romerska som text +ROUND = AVRUNDA ## Avrundar ett tal till ett angivet antal siffror +ROUNDDOWN = AVRUNDA.NEDÅT ## Avrundar ett tal nedåt mot noll +ROUNDUP = AVRUNDA.UPPÅT ## Avrundar ett tal uppåt, från noll +SERIESSUM = SERIESUMMA ## Returnerar summan av en potensserie baserat på formeln +SIGN = TECKEN ## Returnerar tecknet för ett tal +SIN = SIN ## Returnerar sinus för en given vinkel +SINH = SINH ## Returnerar hyperbolisk sinus för ett tal +SQRT = ROT ## Returnerar den positiva kvadratroten +SQRTPI = ROTPI ## Returnerar kvadratroten för (tal * pi) +SUBTOTAL = DELSUMMA ## Returnerar en delsumma i en lista eller databas +SUM = SUMMA ## Summerar argumenten +SUMIF = SUMMA.OM ## Summerar celler enligt ett angivet villkor +SUMIFS = SUMMA.OMF ## Lägger till cellerna i ett område som uppfyller flera kriterier +SUMPRODUCT = PRODUKTSUMMA ## Returnerar summan av produkterna i motsvarande matriskomponenter +SUMSQ = KVADRATSUMMA ## Returnerar summan av argumentens kvadrater +SUMX2MY2 = SUMMAX2MY2 ## Returnerar summan av differensen mellan kvadraterna för motsvarande värden i två matriser +SUMX2PY2 = SUMMAX2PY2 ## Returnerar summan av summan av kvadraterna av motsvarande värden i två matriser +SUMXMY2 = SUMMAXMY2 ## Returnerar summan av kvadraten av skillnaden mellan motsvarande värden i två matriser +TAN = TAN ## Returnerar tangens för ett tal +TANH = TANH ## Returnerar hyperbolisk tangens för ett tal +TRUNC = AVKORTA ## Avkortar ett tal till ett heltal + + +## +## Statistical functions Statistiska funktioner +## +AVEDEV = MEDELAVV ## Returnerar medelvärdet för datapunkters absoluta avvikelse från deras medelvärde +AVERAGE = MEDEL ## Returnerar medelvärdet av argumenten +AVERAGEA = AVERAGEA ## Returnerar medelvärdet av argumenten, inklusive tal, text och logiska värden +AVERAGEIF = MEDELOM ## Returnerar medelvärdet (aritmetiskt medelvärde) för alla celler i ett område som uppfyller ett givet kriterium +AVERAGEIFS = MEDELOMF ## Returnerar medelvärdet (det aritmetiska medelvärdet) för alla celler som uppfyller flera villkor. +BETADIST = BETAFÖRD ## Returnerar den kumulativa betafördelningsfunktionen +BETAINV = BETAINV ## Returnerar inversen till den kumulativa fördelningsfunktionen för en viss betafördelning +BINOMDIST = BINOMFÖRD ## Returnerar den individuella binomialfördelningen +CHIDIST = CHI2FÖRD ## Returnerar den ensidiga sannolikheten av c2-fördelningen +CHIINV = CHI2INV ## Returnerar inversen av chi2-fördelningen +CHITEST = CHI2TEST ## Returnerar oberoendetesten +CONFIDENCE = KONFIDENS ## Returnerar konfidensintervallet för en populations medelvärde +CORREL = KORREL ## Returnerar korrelationskoefficienten mellan två datamängder +COUNT = ANTAL ## Räknar hur många tal som finns bland argumenten +COUNTA = ANTALV ## Räknar hur många värden som finns bland argumenten +COUNTBLANK = ANTAL.TOMMA ## Räknar antalet tomma celler i ett område +COUNTIF = ANTAL.OM ## Räknar antalet celler i ett område som uppfyller angivna villkor. +COUNTIFS = ANTAL.OMF ## Räknar antalet celler i ett område som uppfyller flera villkor. +COVAR = KOVAR ## Returnerar kovariansen, d.v.s. medelvärdet av produkterna för parade avvikelser +CRITBINOM = KRITBINOM ## Returnerar det minsta värdet för vilket den kumulativa binomialfördelningen är mindre än eller lika med ett villkorsvärde +DEVSQ = KVADAVV ## Returnerar summan av kvadrater på avvikelser +EXPONDIST = EXPONFÖRD ## Returnerar exponentialfördelningen +FDIST = FFÖRD ## Returnerar F-sannolikhetsfördelningen +FINV = FINV ## Returnerar inversen till F-sannolikhetsfördelningen +FISHER = FISHER ## Returnerar Fisher-transformationen +FISHERINV = FISHERINV ## Returnerar inversen till Fisher-transformationen +FORECAST = PREDIKTION ## Returnerar ett värde längs en linjär trendlinje +FREQUENCY = FREKVENS ## Returnerar en frekvensfördelning som en lodrät matris +FTEST = FTEST ## Returnerar resultatet av en F-test +GAMMADIST = GAMMAFÖRD ## Returnerar gammafördelningen +GAMMAINV = GAMMAINV ## Returnerar inversen till den kumulativa gammafördelningen +GAMMALN = GAMMALN ## Returnerar den naturliga logaritmen för gammafunktionen, G(x) +GEOMEAN = GEOMEDEL ## Returnerar det geometriska medelvärdet +GROWTH = EXPTREND ## Returnerar värden längs en exponentiell trend +HARMEAN = HARMMEDEL ## Returnerar det harmoniska medelvärdet +HYPGEOMDIST = HYPGEOMFÖRD ## Returnerar den hypergeometriska fördelningen +INTERCEPT = SKÄRNINGSPUNKT ## Returnerar skärningspunkten för en linjär regressionslinje +KURT = TOPPIGHET ## Returnerar toppigheten av en mängd data +LARGE = STÖRSTA ## Returnerar det n:te största värdet i en mängd data +LINEST = REGR ## Returnerar parametrar till en linjär trendlinje +LOGEST = EXPREGR ## Returnerar parametrarna i en exponentiell trend +LOGINV = LOGINV ## Returnerar inversen till den lognormala fördelningen +LOGNORMDIST = LOGNORMFÖRD ## Returnerar den kumulativa lognormala fördelningen +MAX = MAX ## Returnerar det största värdet i en lista av argument +MAXA = MAXA ## Returnerar det största värdet i en lista av argument, inklusive tal, text och logiska värden +MEDIAN = MEDIAN ## Returnerar medianen för angivna tal +MIN = MIN ## Returnerar det minsta värdet i en lista med argument +MINA = MINA ## Returnerar det minsta värdet i en lista över argument, inklusive tal, text och logiska värden +MODE = TYPVÄRDE ## Returnerar det vanligaste värdet i en datamängd +NEGBINOMDIST = NEGBINOMFÖRD ## Returnerar den negativa binomialfördelningen +NORMDIST = NORMFÖRD ## Returnerar den kumulativa normalfördelningen +NORMINV = NORMINV ## Returnerar inversen till den kumulativa normalfördelningen +NORMSDIST = NORMSFÖRD ## Returnerar den kumulativa standardnormalfördelningen +NORMSINV = NORMSINV ## Returnerar inversen till den kumulativa standardnormalfördelningen +PEARSON = PEARSON ## Returnerar korrelationskoefficienten till Pearsons momentprodukt +PERCENTILE = PERCENTIL ## Returnerar den n:te percentilen av värden i ett område +PERCENTRANK = PROCENTRANG ## Returnerar procentrangen för ett värde i en datamängd +PERMUT = PERMUT ## Returnerar antal permutationer för ett givet antal objekt +POISSON = POISSON ## Returnerar Poisson-fördelningen +PROB = SANNOLIKHET ## Returnerar sannolikheten att värden i ett område ligger mellan två gränser +QUARTILE = KVARTIL ## Returnerar kvartilen av en mängd data +RANK = RANG ## Returnerar rangordningen för ett tal i en lista med tal +RSQ = RKV ## Returnerar kvadraten av Pearsons produktmomentkorrelationskoefficient +SKEW = SNEDHET ## Returnerar snedheten för en fördelning +SLOPE = LUTNING ## Returnerar lutningen på en linjär regressionslinje +SMALL = MINSTA ## Returnerar det n:te minsta värdet i en mängd data +STANDARDIZE = STANDARDISERA ## Returnerar ett normaliserat värde +STDEV = STDAV ## Uppskattar standardavvikelsen baserat på ett urval +STDEVA = STDEVA ## Uppskattar standardavvikelsen baserat på ett urval, inklusive tal, text och logiska värden +STDEVP = STDAVP ## Beräknar standardavvikelsen baserat på hela populationen +STDEVPA = STDEVPA ## Beräknar standardavvikelsen baserat på hela populationen, inklusive tal, text och logiska värden +STEYX = STDFELYX ## Returnerar standardfelet för ett förutspått y-värde för varje x-värde i regressionen +TDIST = TFÖRD ## Returnerar Students t-fördelning +TINV = TINV ## Returnerar inversen till Students t-fördelning +TREND = TREND ## Returnerar värden längs en linjär trend +TRIMMEAN = TRIMMEDEL ## Returnerar medelvärdet av mittpunkterna i en datamängd +TTEST = TTEST ## Returnerar sannolikheten beräknad ur Students t-test +VAR = VARIANS ## Uppskattar variansen baserat på ett urval +VARA = VARA ## Uppskattar variansen baserat på ett urval, inklusive tal, text och logiska värden +VARP = VARIANSP ## Beräknar variansen baserat på hela populationen +VARPA = VARPA ## Beräknar variansen baserat på hela populationen, inklusive tal, text och logiska värden +WEIBULL = WEIBULL ## Returnerar Weibull-fördelningen +ZTEST = ZTEST ## Returnerar det ensidiga sannolikhetsvärdet av ett z-test + + +## +## Text functions Textfunktioner +## +ASC = ASC ## Ändrar helbredds (dubbel byte) engelska bokstäver eller katakana inom en teckensträng till tecken med halvt breddsteg (enkel byte) +BAHTTEXT = BAHTTEXT ## Omvandlar ett tal till text med valutaformatet ß (baht) +CHAR = TECKENKOD ## Returnerar tecknet som anges av kod +CLEAN = STÄDA ## Tar bort alla icke utskrivbara tecken i en text +CODE = KOD ## Returnerar en numerisk kod för det första tecknet i en textsträng +CONCATENATE = SAMMANFOGA ## Sammanfogar flera textdelar till en textsträng +DOLLAR = VALUTA ## Omvandlar ett tal till text med valutaformat +EXACT = EXAKT ## Kontrollerar om två textvärden är identiska +FIND = HITTA ## Hittar en text i en annan (skiljer på gemener och versaler) +FINDB = HITTAB ## Hittar en text i en annan (skiljer på gemener och versaler) +FIXED = FASTTAL ## Formaterar ett tal som text med ett fast antal decimaler +JIS = JIS ## Ändrar halvbredds (enkel byte) engelska bokstäver eller katakana inom en teckensträng till tecken med helt breddsteg (dubbel byte) +LEFT = VÄNSTER ## Returnerar tecken längst till vänster i en sträng +LEFTB = VÄNSTERB ## Returnerar tecken längst till vänster i en sträng +LEN = LÄNGD ## Returnerar antalet tecken i en textsträng +LENB = LÄNGDB ## Returnerar antalet tecken i en textsträng +LOWER = GEMENER ## Omvandlar text till gemener +MID = EXTEXT ## Returnerar angivet antal tecken från en text med början vid den position som du anger +MIDB = EXTEXTB ## Returnerar angivet antal tecken från en text med början vid den position som du anger +PHONETIC = PHONETIC ## Returnerar de fonetiska (furigana) tecknen i en textsträng +PROPER = INITIAL ## Ändrar första bokstaven i varje ord i ett textvärde till versal +REPLACE = ERSÄTT ## Ersätter tecken i text +REPLACEB = ERSÄTTB ## Ersätter tecken i text +REPT = REP ## Upprepar en text ett bestämt antal gånger +RIGHT = HÖGER ## Returnerar tecken längst till höger i en sträng +RIGHTB = HÖGERB ## Returnerar tecken längst till höger i en sträng +SEARCH = SÖK ## Hittar ett textvärde i ett annat (skiljer inte på gemener och versaler) +SEARCHB = SÖKB ## Hittar ett textvärde i ett annat (skiljer inte på gemener och versaler) +SUBSTITUTE = BYT.UT ## Ersätter gammal text med ny text i en textsträng +T = T ## Omvandlar argumenten till text +TEXT = TEXT ## Formaterar ett tal och omvandlar det till text +TRIM = RENSA ## Tar bort blanksteg från text +UPPER = VERSALER ## Omvandlar text till versaler +VALUE = TEXTNUM ## Omvandlar ett textargument till ett tal diff --git a/admin/helpers/PHPExcel/locale/sv/index.html b/admin/helpers/PHPExcel/locale/sv/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/sv/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/PHPExcel/locale/tr/config b/admin/helpers/PHPExcel/locale/tr/config new file mode 100644 index 00000000..b69d4257 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/tr/config @@ -0,0 +1,47 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Settings +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## + + +ArgumentSeparator = ; + + +## +## (For future use) +## +currencySymbol = YTL + + +## +## Excel Error Codes (For future use) +## +NULL = #BOŞ! +DIV0 = #SAYI/0! +VALUE = #DEĞER! +REF = #BAŞV! +NAME = #AD? +NUM = #SAYI! +NA = #YOK diff --git a/admin/helpers/PHPExcel/locale/tr/functions b/admin/helpers/PHPExcel/locale/tr/functions new file mode 100644 index 00000000..45d7df1f --- /dev/null +++ b/admin/helpers/PHPExcel/locale/tr/functions @@ -0,0 +1,438 @@ +## +## PHPExcel +## +## Copyright (c) 2006 - 2013 PHPExcel +## +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library 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 +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +## +## @category PHPExcel +## @package PHPExcel_Calculation +## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) +## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL +## @version ##VERSION##, ##DATE## +## +## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ +## +## + + +## +## Add-in and Automation functions Eklenti ve Otomasyon fonksiyonları +## +GETPIVOTDATA = ÖZETVERİAL ## Bir Özet Tablo raporunda saklanan verileri verir. + + +## +## Cube functions Küp işlevleri +## +CUBEKPIMEMBER = KÜPKPIÜYE ## Kilit performans göstergesi (KPI-Key Performance Indicator) adını, özelliğini ve ölçüsünü verir ve hücredeki ad ve özelliği gösterir. KPI, bir kurumun performansını izlemek için kullanılan aylık brüt kâr ya da üç aylık çalışan giriş çıkışları gibi ölçülebilen bir birimdir. +CUBEMEMBER = KÜPÜYE ## Bir küp hiyerarşisinde bir üyeyi veya kaydı verir. Üye veya kaydın küpte varolduğunu doğrulamak için kullanılır. +CUBEMEMBERPROPERTY = KÜPÜYEÖZELLİĞİ ## Bir küpte bir üyenin özelliğinin değerini verir. Küp içinde üye adının varlığını doğrulamak ve bu üyenin belli özelliklerini getirmek için kullanılır. +CUBERANKEDMEMBER = KÜPÜYESIRASI ## Bir küme içindeki üyenin derecesini veya kaçıncı olduğunu verir. En iyi satış elemanı, veya en iyi on öğrenci gibi bir kümedeki bir veya daha fazla öğeyi getirmek için kullanılır. +CUBESET = KÜPKÜME ## Kümeyi oluşturan ve ardından bu kümeyi Microsoft Office Excel'e getiren sunucudaki küpe küme ifadelerini göndererek hesaplanan üye veya kayıt kümesini tanımlar. +CUBESETCOUNT = KÜPKÜMESAY ## Bir kümedeki öğelerin sayısını getirir. +CUBEVALUE = KÜPDEĞER ## Bir küpten toplam değeri getirir. + + +## +## Database functions Veritabanı işlevleri +## +DAVERAGE = VSEÇORT ## Seçili veritabanı girdilerinin ortalamasını verir. +DCOUNT = VSEÇSAY ## Veritabanında sayı içeren hücre sayısını hesaplar. +DCOUNTA = VSEÇSAYDOLU ## Veritabanındaki boş olmayan hücreleri sayar. +DGET = VAL ## Veritabanından, belirtilen ölçütlerle eşleşen tek bir rapor çıkarır. +DMAX = VSEÇMAK ## Seçili veritabanı girişlerinin en yüksek değerini verir. +DMIN = VSEÇMİN ## Seçili veritabanı girişlerinin en düşük değerini verir. +DPRODUCT = VSEÇÇARP ## Kayıtların belli bir alanında bulunan, bir veritabanındaki ölçütlerle eşleşen değerleri çarpar. +DSTDEV = VSEÇSTDSAPMA ## Seçili veritabanı girişlerinden oluşan bir örneğe dayanarak, standart sapmayı tahmin eder. +DSTDEVP = VSEÇSTDSAPMAS ## Standart sapmayı, seçili veritabanı girişlerinin tüm popülasyonunu esas alarak hesaplar. +DSUM = VSEÇTOPLA ## Kayıtların alan sütununda bulunan, ölçütle eşleşen sayıları toplar. +DVAR = VSEÇVAR ## Seçili veritabanı girişlerinden oluşan bir örneği esas alarak farkı tahmin eder. +DVARP = VSEÇVARS ## Seçili veritabanı girişlerinin tüm popülasyonunu esas alarak farkı hesaplar. + + +## +## Date and time functions Tarih ve saat işlevleri +## +DATE = TARİH ## Belirli bir tarihin seri numarasını verir. +DATEVALUE = TARİHSAYISI ## Metin biçimindeki bir tarihi seri numarasına dönüştürür. +DAY = GÜN ## Seri numarasını, ayın bir gününe dönüştürür. +DAYS360 = GÜN360 ## İki tarih arasındaki gün sayısını, 360 günlük yılı esas alarak hesaplar. +EDATE = SERİTARİH ## Başlangıç tarihinden itibaren, belirtilen ay sayısından önce veya sonraki tarihin seri numarasını verir. +EOMONTH = SERİAY ## Belirtilen sayıda ay önce veya sonraki ayın son gününün seri numarasını verir. +HOUR = SAAT ## Bir seri numarasını saate dönüştürür. +MINUTE = DAKİKA ## Bir seri numarasını dakikaya dönüştürür. +MONTH = AY ## Bir seri numarasını aya dönüştürür. +NETWORKDAYS = TAMİŞGÜNÜ ## İki tarih arasındaki tam çalışma günlerinin sayısını verir. +NOW = ŞİMDİ ## Geçerli tarihin ve saatin seri numarasını verir. +SECOND = SANİYE ## Bir seri numarasını saniyeye dönüştürür. +TIME = ZAMAN ## Belirli bir zamanın seri numarasını verir. +TIMEVALUE = ZAMANSAYISI ## Metin biçimindeki zamanı seri numarasına dönüştürür. +TODAY = BUGÜN ## Bugünün tarihini seri numarasına dönüştürür. +WEEKDAY = HAFTANINGÜNÜ ## Bir seri numarasını, haftanın gününe dönüştürür. +WEEKNUM = HAFTASAY ## Dizisel değerini, haftanın yıl içinde bulunduğu konumu sayısal olarak gösteren sayıya dönüştürür. +WORKDAY = İŞGÜNÜ ## Belirtilen sayıda çalışma günü öncesinin ya da sonrasının tarihinin seri numarasını verir. +YEAR = YIL ## Bir seri numarasını yıla dönüştürür. +YEARFRAC = YILORAN ## Başlangıç_tarihi ve bitiş_tarihi arasındaki tam günleri gösteren yıl kesrini verir. + + +## +## Engineering functions Mühendislik işlevleri +## +BESSELI = BESSELI ## Değiştirilmiş Bessel fonksiyonu In(x)'i verir. +BESSELJ = BESSELJ ## Bessel fonksiyonu Jn(x)'i verir. +BESSELK = BESSELK ## Değiştirilmiş Bessel fonksiyonu Kn(x)'i verir. +BESSELY = BESSELY ## Bessel fonksiyonu Yn(x)'i verir. +BIN2DEC = BIN2DEC ## İkili bir sayıyı, ondalık sayıya dönüştürür. +BIN2HEX = BIN2HEX ## İkili bir sayıyı, onaltılıya dönüştürür. +BIN2OCT = BIN2OCT ## İkili bir sayıyı, sekizliye dönüştürür. +COMPLEX = KARMAŞIK ## Gerçek ve sanal katsayıları, karmaşık sayıya dönüştürür. +CONVERT = ÇEVİR ## Bir sayıyı, bir ölçüm sisteminden bir başka ölçüm sistemine dönüştürür. +DEC2BIN = DEC2BIN ## Ondalık bir sayıyı, ikiliye dönüştürür. +DEC2HEX = DEC2HEX ## Ondalık bir sayıyı, onaltılıya dönüştürür. +DEC2OCT = DEC2OCT ## Ondalık bir sayıyı sekizliğe dönüştürür. +DELTA = DELTA ## İki değerin eşit olup olmadığını sınar. +ERF = HATAİŞLEV ## Hata işlevini verir. +ERFC = TÜMHATAİŞLEV ## Tümleyici hata işlevini verir. +GESTEP = BESINIR ## Bir sayının eşik değerinden büyük olup olmadığını sınar. +HEX2BIN = HEX2BIN ## Onaltılı bir sayıyı ikiliye dönüştürür. +HEX2DEC = HEX2DEC ## Onaltılı bir sayıyı ondalığa dönüştürür. +HEX2OCT = HEX2OCT ## Onaltılı bir sayıyı sekizliğe dönüştürür. +IMABS = SANMUTLAK ## Karmaşık bir sayının mutlak değerini (modül) verir. +IMAGINARY = SANAL ## Karmaşık bir sayının sanal katsayısını verir. +IMARGUMENT = SANBAĞ_DEĞİŞKEN ## Radyanlarla belirtilen bir açı olan teta bağımsız değişkenini verir. +IMCONJUGATE = SANEŞLENEK ## Karmaşık bir sayının karmaşık eşleniğini verir. +IMCOS = SANCOS ## Karmaşık bir sayının kosinüsünü verir. +IMDIV = SANBÖL ## İki karmaşık sayının bölümünü verir. +IMEXP = SANÜS ## Karmaşık bir sayının üssünü verir. +IMLN = SANLN ## Karmaşık bir sayının doğal logaritmasını verir. +IMLOG10 = SANLOG10 ## Karmaşık bir sayının, 10 tabanında logaritmasını verir. +IMLOG2 = SANLOG2 ## Karmaşık bir sayının 2 tabanında logaritmasını verir. +IMPOWER = SANÜSSÜ ## Karmaşık bir sayıyı, bir tamsayı üssüne yükseltilmiş olarak verir. +IMPRODUCT = SANÇARP ## Karmaşık sayıların çarpımını verir. +IMREAL = SANGERÇEK ## Karmaşık bir sayının, gerçek katsayısını verir. +IMSIN = SANSIN ## Karmaşık bir sayının sinüsünü verir. +IMSQRT = SANKAREKÖK ## Karmaşık bir sayının karekökünü verir. +IMSUB = SANÇIKAR ## İki karmaşık sayının farkını verir. +IMSUM = SANTOPLA ## Karmaşık sayıların toplamını verir. +OCT2BIN = OCT2BIN ## Sekizli bir sayıyı ikiliye dönüştürür. +OCT2DEC = OCT2DEC ## Sekizli bir sayıyı ondalığa dönüştürür. +OCT2HEX = OCT2HEX ## Sekizli bir sayıyı onaltılıya dönüştürür. + + +## +## Financial functions Finansal fonksiyonlar +## +ACCRINT = GERÇEKFAİZ ## Dönemsel faiz ödeyen hisse senedine ilişkin tahakkuk eden faizi getirir. +ACCRINTM = GERÇEKFAİZV ## Vadesinde ödeme yapan bir tahvilin tahakkuk etmiş faizini verir. +AMORDEGRC = AMORDEGRC ## Yıpranma katsayısı kullanarak her hesap döneminin değer kaybını verir. +AMORLINC = AMORLINC ## Her hesap dönemi içindeki yıpranmayı verir. +COUPDAYBS = KUPONGÜNBD ## Kupon süresinin başlangıcından alış tarihine kadar olan süredeki gün sayısını verir. +COUPDAYS = KUPONGÜN ## Kupon süresindeki, gün sayısını, alış tarihini de içermek üzere, verir. +COUPDAYSNC = KUPONGÜNDSK ## Alış tarihinden bir sonraki kupon tarihine kadar olan gün sayısını verir. +COUPNCD = KUPONGÜNSKT ## Alış tarihinden bir sonraki kupon tarihini verir. +COUPNUM = KUPONSAYI ## Alış tarihiyle vade tarihi arasında ödenecek kuponların sayısını verir. +COUPPCD = KUPONGÜNÖKT ## Alış tarihinden bir önceki kupon tarihini verir. +CUMIPMT = AİÇVERİMORANI ## İki dönem arasında ödenen kümülatif faizi verir. +CUMPRINC = ANA_PARA_ÖDEMESİ ## İki dönem arasında bir borç üzerine ödenen birikimli temeli verir. +DB = AZALANBAKİYE ## Bir malın belirtilen bir süre içindeki yıpranmasını, sabit azalan bakiye yöntemini kullanarak verir. +DDB = ÇİFTAZALANBAKİYE ## Bir malın belirtilen bir süre içindeki yıpranmasını, çift azalan bakiye yöntemi ya da sizin belirttiğiniz başka bir yöntemi kullanarak verir. +DISC = İNDİRİM ## Bir tahvilin indirim oranını verir. +DOLLARDE = LİRAON ## Kesir olarak tanımlanmış lira fiyatını, ondalık sayı olarak tanımlanmış lira fiyatına dönüştürür. +DOLLARFR = LİRAKES ## Ondalık sayı olarak tanımlanmış lira fiyatını, kesir olarak tanımlanmış lira fiyatına dönüştürür. +DURATION = SÜRE ## Belli aralıklarla faiz ödemesi yapan bir tahvilin yıllık süresini verir. +EFFECT = ETKİN ## Efektif yıllık faiz oranını verir. +FV = ANBD ## Bir yatırımın gelecekteki değerini verir. +FVSCHEDULE = GDPROGRAM ## Bir seri birleşik faiz oranı uyguladıktan sonra, bir başlangıçtaki anaparanın gelecekteki değerini verir. +INTRATE = FAİZORANI ## Tam olarak yatırım yapılmış bir tahvilin faiz oranını verir. +IPMT = FAİZTUTARI ## Bir yatırımın verilen bir süre için faiz ödemesini verir. +IRR = İÇ_VERİM_ORANI ## Bir para akışı serisi için, iç verim oranını verir. +ISPMT = ISPMT ## Yatırımın belirli bir dönemi boyunca ödenen faizi hesaplar. +MDURATION = MSÜRE ## Varsayılan par değeri 10.000.000 lira olan bir tahvil için Macauley değiştirilmiş süreyi verir. +MIRR = D_İÇ_VERİM_ORANI ## Pozitif ve negatif para akışlarının farklı oranlarda finanse edildiği durumlarda, iç verim oranını verir. +NOMINAL = NOMİNAL ## Yıllık nominal faiz oranını verir. +NPER = DÖNEM_SAYISI ## Bir yatırımın dönem sayısını verir. +NPV = NBD ## Bir yatırımın bugünkü net değerini, bir dönemsel para akışları serisine ve bir indirim oranına bağlı olarak verir. +ODDFPRICE = TEKYDEĞER ## Tek bir ilk dönemi olan bir tahvilin değerini, her 100.000.000 lirada bir verir. +ODDFYIELD = TEKYÖDEME ## Tek bir ilk dönemi olan bir tahvilin ödemesini verir. +ODDLPRICE = TEKSDEĞER ## Tek bir son dönemi olan bir tahvilin fiyatını her 10.000.000 lirada bir verir. +ODDLYIELD = TEKSÖDEME ## Tek bir son dönemi olan bir tahvilin ödemesini verir. +PMT = DEVRESEL_ÖDEME ## Bir yıllık dönemsel ödemeyi verir. +PPMT = ANA_PARA_ÖDEMESİ ## Verilen bir süre için, bir yatırımın anaparasına dayanan ödemeyi verir. +PRICE = DEĞER ## Dönemsel faiz ödeyen bir tahvilin fiyatını 10.000.00 liralık değer başına verir. +PRICEDISC = DEĞERİND ## İndirimli bir tahvilin fiyatını 10.000.000 liralık nominal değer başına verir. +PRICEMAT = DEĞERVADE ## Faizini vade sonunda ödeyen bir tahvilin fiyatını 10.000.000 nominal değer başına verir. +PV = BD ## Bir yatırımın bugünkü değerini verir. +RATE = FAİZ_ORANI ## Bir yıllık dönem başına düşen faiz oranını verir. +RECEIVED = GETİRİ ## Tam olarak yatırılmış bir tahvilin vadesinin bitiminde alınan miktarı verir. +SLN = DA ## Bir malın bir dönem içindeki doğrusal yıpranmasını verir. +SYD = YAT ## Bir malın belirli bir dönem için olan amortismanını verir. +TBILLEQ = HTAHEŞ ## Bir Hazine bonosunun bono eşdeğeri ödemesini verir. +TBILLPRICE = HTAHDEĞER ## Bir Hazine bonosunun değerini, 10.000.000 liralık nominal değer başına verir. +TBILLYIELD = HTAHÖDEME ## Bir Hazine bonosunun ödemesini verir. +VDB = DAB ## Bir malın amortismanını, belirlenmiş ya da kısmi bir dönem için, bir azalan bakiye yöntemi kullanarak verir. +XIRR = AİÇVERİMORANI ## Dönemsel olması gerekmeyen bir para akışları programı için, iç verim oranını verir. +XNPV = ANBD ## Dönemsel olması gerekmeyen bir para akışları programı için, bugünkü net değeri verir. +YIELD = ÖDEME ## Belirli aralıklarla faiz ödeyen bir tahvilin ödemesini verir. +YIELDDISC = ÖDEMEİND ## İndirimli bir tahvilin yıllık ödemesini verir; örneğin, bir Hazine bonosunun. +YIELDMAT = ÖDEMEVADE ## Vadesinin bitiminde faiz ödeyen bir tahvilin yıllık ödemesini verir. + + +## +## Information functions Bilgi fonksiyonları +## +CELL = HÜCRE ## Bir hücrenin biçimlendirmesi, konumu ya da içeriği hakkında bilgi verir. +ERROR.TYPE = HATA.TİPİ ## Bir hata türüne ilişkin sayıları verir. +INFO = BİLGİ ## Geçerli işletim ortamı hakkında bilgi verir. +ISBLANK = EBOŞSA ## Değer boşsa, DOĞRU verir. +ISERR = EHATA ## Değer, #YOK dışındaki bir hata değeriyse, DOĞRU verir. +ISERROR = EHATALIYSA ## Değer, herhangi bir hata değeriyse, DOĞRU verir. +ISEVEN = ÇİFTTİR ## Sayı çiftse, DOĞRU verir. +ISLOGICAL = EMANTIKSALSA ## Değer, mantıksal bir değerse, DOĞRU verir. +ISNA = EYOKSA ## Değer, #YOK hata değeriyse, DOĞRU verir. +ISNONTEXT = EMETİNDEĞİLSE ## Değer, metin değilse, DOĞRU verir. +ISNUMBER = ESAYIYSA ## Değer, bir sayıysa, DOĞRU verir. +ISODD = TEKTİR ## Sayı tekse, DOĞRU verir. +ISREF = EREFSE ## Değer bir başvuruysa, DOĞRU verir. +ISTEXT = EMETİNSE ## Değer bir metinse DOĞRU verir. +N = N ## Sayıya dönüştürülmüş bir değer verir. +NA = YOKSAY ## #YOK hata değerini verir. +TYPE = TİP ## Bir değerin veri türünü belirten bir sayı verir. + + +## +## Logical functions Mantıksal fonksiyonlar +## +AND = VE ## Bütün bağımsız değişkenleri DOĞRU ise, DOĞRU verir. +FALSE = YANLIŞ ## YANLIŞ mantıksal değerini verir. +IF = EĞER ## Gerçekleştirilecek bir mantıksal sınama belirtir. +IFERROR = EĞERHATA ## Formül hatalıysa belirttiğiniz değeri verir; bunun dışındaki durumlarda formülün sonucunu verir. +NOT = DEĞİL ## Bağımsız değişkeninin mantığını tersine çevirir. +OR = YADA ## Bağımsız değişkenlerden herhangi birisi DOĞRU ise, DOĞRU verir. +TRUE = DOĞRU ## DOĞRU mantıksal değerini verir. + + +## +## Lookup and reference functions Arama ve Başvuru fonksiyonları +## +ADDRESS = ADRES ## Bir başvuruyu, çalışma sayfasındaki tek bir hücreye metin olarak verir. +AREAS = ALANSAY ## Renvoie le nombre de zones dans une référence. +CHOOSE = ELEMAN ## Değerler listesinden bir değer seçer. +COLUMN = SÜTUN ## Bir başvurunun sütun sayısını verir. +COLUMNS = SÜTUNSAY ## Bir başvurudaki sütunların sayısını verir. +HLOOKUP = YATAYARA ## Bir dizinin en üst satırına bakar ve belirtilen hücrenin değerini verir. +HYPERLINK = KÖPRÜ ## Bir ağ sunucusunda, bir intranette ya da Internet'te depolanan bir belgeyi açan bir kısayol ya da atlama oluşturur. +INDEX = İNDİS ## Başvurudan veya diziden bir değer seçmek için, bir dizin kullanır. +INDIRECT = DOLAYLI ## Metin değeriyle belirtilen bir başvuru verir. +LOOKUP = ARA ## Bir vektördeki veya dizideki değerleri arar. +MATCH = KAÇINCI ## Bir başvurudaki veya dizideki değerleri arar. +OFFSET = KAYDIR ## Verilen bir başvurudan, bir başvuru kaydırmayı verir. +ROW = SATIR ## Bir başvurunun satır sayısını verir. +ROWS = SATIRSAY ## Bir başvurudaki satırların sayısını verir. +RTD = RTD ## COM otomasyonunu destekleyen programdan gerçek zaman verileri alır. +TRANSPOSE = DEVRİK_DÖNÜŞÜM ## Bir dizinin devrik dönüşümünü verir. +VLOOKUP = DÜŞEYARA ## Bir dizinin ilk sütununa bakar ve bir hücrenin değerini vermek için satır boyunca hareket eder. + + +## +## Math and trigonometry functions Matematik ve trigonometri fonksiyonları +## +ABS = MUTLAK ## Bir sayının mutlak değerini verir. +ACOS = ACOS ## Bir sayının ark kosinüsünü verir. +ACOSH = ACOSH ## Bir sayının ters hiperbolik kosinüsünü verir. +ASIN = ASİN ## Bir sayının ark sinüsünü verir. +ASINH = ASİNH ## Bir sayının ters hiperbolik sinüsünü verir. +ATAN = ATAN ## Bir sayının ark tanjantını verir. +ATAN2 = ATAN2 ## Ark tanjantı, x- ve y- koordinatlarından verir. +ATANH = ATANH ## Bir sayının ters hiperbolik tanjantını verir. +CEILING = TAVANAYUVARLA ## Bir sayıyı, en yakın tamsayıya ya da en yakın katına yuvarlar. +COMBIN = KOMBİNASYON ## Verilen sayıda öğenin kombinasyon sayısını verir. +COS = COS ## Bir sayının kosinüsünü verir. +COSH = COSH ## Bir sayının hiperbolik kosinüsünü verir. +DEGREES = DERECE ## Radyanları dereceye dönüştürür. +EVEN = ÇİFT ## Bir sayıyı, en yakın daha büyük çift tamsayıya yuvarlar. +EXP = ÜS ## e'yi, verilen bir sayının üssüne yükseltilmiş olarak verir. +FACT = ÇARPINIM ## Bir sayının faktörünü verir. +FACTDOUBLE = ÇİFTFAKTÖR ## Bir sayının çift çarpınımını verir. +FLOOR = TABANAYUVARLA ## Bir sayıyı, daha küçük sayıya, sıfıra yakınsayarak yuvarlar. +GCD = OBEB ## En büyük ortak böleni verir. +INT = TAMSAYI ## Bir sayıyı aşağıya doğru en yakın tamsayıya yuvarlar. +LCM = OKEK ## En küçük ortak katı verir. +LN = LN ## Bir sayının doğal logaritmasını verir. +LOG = LOG ## Bir sayının, belirtilen bir tabandaki logaritmasını verir. +LOG10 = LOG10 ## Bir sayının 10 tabanında logaritmasını verir. +MDETERM = DETERMİNANT ## Bir dizinin dizey determinantını verir. +MINVERSE = DİZEY_TERS ## Bir dizinin dizey tersini verir. +MMULT = DÇARP ## İki dizinin dizey çarpımını verir. +MOD = MODÜLO ## Bölmeden kalanı verir. +MROUND = KYUVARLA ## İstenen kata yuvarlanmış bir sayı verir. +MULTINOMIAL = ÇOKTERİMLİ ## Bir sayılar kümesinin çok terimlisini verir. +ODD = TEK ## Bir sayıyı en yakın daha büyük tek sayıya yuvarlar. +PI = Pİ ## Pi değerini verir. +POWER = KUVVET ## Bir üsse yükseltilmiş sayının sonucunu verir. +PRODUCT = ÇARPIM ## Bağımsız değişkenlerini çarpar. +QUOTIENT = BÖLÜM ## Bir bölme işleminin tamsayı kısmını verir. +RADIANS = RADYAN ## Dereceleri radyanlara dönüştürür. +RAND = S_SAYI_ÜRET ## 0 ile 1 arasında rastgele bir sayı verir. +RANDBETWEEN = RASTGELEARALIK ## Belirttiğiniz sayılar arasında rastgele bir sayı verir. +ROMAN = ROMEN ## Bir normal rakamı, metin olarak, romen rakamına çevirir. +ROUND = YUVARLA ## Bir sayıyı, belirtilen basamak sayısına yuvarlar. +ROUNDDOWN = AŞAĞIYUVARLA ## Bir sayıyı, daha küçük sayıya, sıfıra yakınsayarak yuvarlar. +ROUNDUP = YUKARIYUVARLA ## Bir sayıyı daha büyük sayıya, sıfırdan ıraksayarak yuvarlar. +SERIESSUM = SERİTOPLA ## Bir üs serisinin toplamını, formüle bağlı olarak verir. +SIGN = İŞARET ## Bir sayının işaretini verir. +SIN = SİN ## Verilen bir açının sinüsünü verir. +SINH = SİNH ## Bir sayının hiperbolik sinüsünü verir. +SQRT = KAREKÖK ## Pozitif bir karekök verir. +SQRTPI = KAREKÖKPİ ## (* Pi sayısının) kare kökünü verir. +SUBTOTAL = ALTTOPLAM ## Bir listedeki ya da veritabanındaki bir alt toplamı verir. +SUM = TOPLA ## Bağımsız değişkenlerini toplar. +SUMIF = ETOPLA ## Verilen ölçütle belirlenen hücreleri toplar. +SUMIFS = SUMIFS ## Bir aralıktaki, birden fazla ölçüte uyan hücreleri ekler. +SUMPRODUCT = TOPLA.ÇARPIM ## İlişkili dizi bileşenlerinin çarpımlarının toplamını verir. +SUMSQ = TOPKARE ## Bağımsız değişkenlerin karelerinin toplamını verir. +SUMX2MY2 = TOPX2EY2 ## İki dizideki ilişkili değerlerin farkının toplamını verir. +SUMX2PY2 = TOPX2AY2 ## İki dizideki ilişkili değerlerin karelerinin toplamının toplamını verir. +SUMXMY2 = TOPXEY2 ## İki dizideki ilişkili değerlerin farklarının karelerinin toplamını verir. +TAN = TAN ## Bir sayının tanjantını verir. +TANH = TANH ## Bir sayının hiperbolik tanjantını verir. +TRUNC = NSAT ## Bir sayının, tamsayı durumuna gelecek şekilde, fazlalıklarını atar. + + +## +## Statistical functions İstatistiksel fonksiyonlar +## +AVEDEV = ORTSAP ## Veri noktalarının ortalamalarından mutlak sapmalarının ortalamasını verir. +AVERAGE = ORTALAMA ## Bağımsız değişkenlerinin ortalamasını verir. +AVERAGEA = ORTALAMAA ## Bağımsız değişkenlerinin, sayılar, metin ve mantıksal değerleri içermek üzere ortalamasını verir. +AVERAGEIF = EĞERORTALAMA ## Verili ölçütü karşılayan bir aralıktaki bütün hücrelerin ortalamasını (aritmetik ortalama) hesaplar. +AVERAGEIFS = EĞERLERORTALAMA ## Birden çok ölçüte uyan tüm hücrelerin ortalamasını (aritmetik ortalama) hesaplar. +BETADIST = BETADAĞ ## Beta birikimli dağılım fonksiyonunu verir. +BETAINV = BETATERS ## Belirli bir beta dağılımı için birikimli dağılım fonksiyonunun tersini verir. +BINOMDIST = BİNOMDAĞ ## Tek terimli binom dağılımı olasılığını verir. +CHIDIST = KİKAREDAĞ ## Kikare dağılımın tek kuyruklu olasılığını verir. +CHIINV = KİKARETERS ## Kikare dağılımın kuyruklu olasılığının tersini verir. +CHITEST = KİKARETEST ## Bağımsızlık sınamalarını verir. +CONFIDENCE = GÜVENİRLİK ## Bir popülasyon ortalaması için güvenirlik aralığını verir. +CORREL = KORELASYON ## İki veri kümesi arasındaki bağlantı katsayısını verir. +COUNT = BAĞ_DEĞ_SAY ## Bağımsız değişkenler listesinde kaç tane sayı bulunduğunu sayar. +COUNTA = BAĞ_DEĞ_DOLU_SAY ## Bağımsız değişkenler listesinde kaç tane değer bulunduğunu sayar. +COUNTBLANK = BOŞLUKSAY ## Aralıktaki boş hücre sayısını hesaplar. +COUNTIF = EĞERSAY ## Verilen ölçütlere uyan bir aralık içindeki hücreleri sayar. +COUNTIFS = ÇOKEĞERSAY ## Birden çok ölçüte uyan bir aralık içindeki hücreleri sayar. +COVAR = KOVARYANS ## Eşleştirilmiş sapmaların ortalaması olan kovaryansı verir. +CRITBINOM = KRİTİKBİNOM ## Birikimli binom dağılımının bir ölçüt değerinden küçük veya ölçüt değerine eşit olduğu en küçük değeri verir. +DEVSQ = SAPKARE ## Sapmaların karelerinin toplamını verir. +EXPONDIST = ÜSTELDAĞ ## Üstel dağılımı verir. +FDIST = FDAĞ ## F olasılık dağılımını verir. +FINV = FTERS ## F olasılık dağılımının tersini verir. +FISHER = FISHER ## Fisher dönüşümünü verir. +FISHERINV = FISHERTERS ## Fisher dönüşümünün tersini verir. +FORECAST = TAHMİN ## Bir doğrusal eğilim boyunca bir değer verir. +FREQUENCY = SIKLIK ## Bir sıklık dağılımını, dikey bir dizi olarak verir. +FTEST = FTEST ## Bir F-test'in sonucunu verir. +GAMMADIST = GAMADAĞ ## Gama dağılımını verir. +GAMMAINV = GAMATERS ## Gama kümülatif dağılımının tersini verir. +GAMMALN = GAMALN ## Gama fonksiyonunun (?(x)) doğal logaritmasını verir. +GEOMEAN = GEOORT ## Geometrik ortayı verir. +GROWTH = BÜYÜME ## Üstel bir eğilim boyunca değerler verir. +HARMEAN = HARORT ## Harmonik ortayı verir. +HYPGEOMDIST = HİPERGEOMDAĞ ## Hipergeometrik dağılımı verir. +INTERCEPT = KESMENOKTASI ## Doğrusal çakıştırma çizgisinin kesişme noktasını verir. +KURT = BASIKLIK ## Bir veri kümesinin basıklığını verir. +LARGE = BÜYÜK ## Bir veri kümesinde k. en büyük değeri verir. +LINEST = DOT ## Doğrusal bir eğilimin parametrelerini verir. +LOGEST = LOT ## Üstel bir eğilimin parametrelerini verir. +LOGINV = LOGTERS ## Bir lognormal dağılımının tersini verir. +LOGNORMDIST = LOGNORMDAĞ ## Birikimli lognormal dağılımını verir. +MAX = MAK ## Bir bağımsız değişkenler listesindeki en büyük değeri verir. +MAXA = MAKA ## Bir bağımsız değişkenler listesindeki, sayılar, metin ve mantıksal değerleri içermek üzere, en büyük değeri verir. +MEDIAN = ORTANCA ## Belirtilen sayıların orta değerini verir. +MIN = MİN ## Bir bağımsız değişkenler listesindeki en küçük değeri verir. +MINA = MİNA ## Bir bağımsız değişkenler listesindeki, sayılar, metin ve mantıksal değerleri de içermek üzere, en küçük değeri verir. +MODE = ENÇOK_OLAN ## Bir veri kümesindeki en sık rastlanan değeri verir. +NEGBINOMDIST = NEGBİNOMDAĞ ## Negatif binom dağılımını verir. +NORMDIST = NORMDAĞ ## Normal birikimli dağılımı verir. +NORMINV = NORMTERS ## Normal kümülatif dağılımın tersini verir. +NORMSDIST = NORMSDAĞ ## Standart normal birikimli dağılımı verir. +NORMSINV = NORMSTERS ## Standart normal birikimli dağılımın tersini verir. +PEARSON = PEARSON ## Pearson çarpım moment korelasyon katsayısını verir. +PERCENTILE = YÜZDEBİRLİK ## Bir aralık içerisinde bulunan değerlerin k. frekans toplamını verir. +PERCENTRANK = YÜZDERANK ## Bir veri kümesindeki bir değerin yüzde mertebesini verir. +PERMUT = PERMÜTASYON ## Verilen sayıda nesne için permütasyon sayısını verir. +POISSON = POISSON ## Poisson dağılımını verir. +PROB = OLASILIK ## Bir aralıktaki değerlerin iki sınır arasında olması olasılığını verir. +QUARTILE = DÖRTTEBİRLİK ## Bir veri kümesinin dörtte birliğini verir. +RANK = RANK ## Bir sayılar listesinde bir sayının mertebesini verir. +RSQ = RKARE ## Pearson çarpım moment korelasyon katsayısının karesini verir. +SKEW = ÇARPIKLIK ## Bir dağılımın çarpıklığını verir. +SLOPE = EĞİM ## Doğrusal çakışma çizgisinin eğimini verir. +SMALL = KÜÇÜK ## Bir veri kümesinde k. en küçük değeri verir. +STANDARDIZE = STANDARTLAŞTIRMA ## Normalleştirilmiş bir değer verir. +STDEV = STDSAPMA ## Bir örneğe dayanarak standart sapmayı tahmin eder. +STDEVA = STDSAPMAA ## Standart sapmayı, sayılar, metin ve mantıksal değerleri içermek üzere, bir örneğe bağlı olarak tahmin eder. +STDEVP = STDSAPMAS ## Standart sapmayı, tüm popülasyona bağlı olarak hesaplar. +STDEVPA = STDSAPMASA ## Standart sapmayı, sayılar, metin ve mantıksal değerleri içermek üzere, tüm popülasyona bağlı olarak hesaplar. +STEYX = STHYX ## Regresyondaki her x için tahmini y değerinin standart hatasını verir. +TDIST = TDAĞ ## T-dağılımını verir. +TINV = TTERS ## T-dağılımının tersini verir. +TREND = EĞİLİM ## Doğrusal bir eğilim boyunca değerler verir. +TRIMMEAN = KIRPORTALAMA ## Bir veri kümesinin içinin ortalamasını verir. +TTEST = TTEST ## T-test'le ilişkilendirilmiş olasılığı verir. +VAR = VAR ## Varyansı, bir örneğe bağlı olarak tahmin eder. +VARA = VARA ## Varyansı, sayılar, metin ve mantıksal değerleri içermek üzere, bir örneğe bağlı olarak tahmin eder. +VARP = VARS ## Varyansı, tüm popülasyona dayanarak hesaplar. +VARPA = VARSA ## Varyansı, sayılar, metin ve mantıksal değerleri içermek üzere, tüm popülasyona bağlı olarak hesaplar. +WEIBULL = WEIBULL ## Weibull dağılımını hesaplar. +ZTEST = ZTEST ## Z-testinin tek kuyruklu olasılık değerini hesaplar. + + +## +## Text functions Metin fonksiyonları +## +ASC = ASC ## Bir karakter dizesindeki çift enli (iki bayt) İngilizce harfleri veya katakanayı yarım enli (tek bayt) karakterlerle değiştirir. +BAHTTEXT = BAHTTEXT ## Sayıyı, ß (baht) para birimi biçimini kullanarak metne dönüştürür. +CHAR = DAMGA ## Kod sayısıyla belirtilen karakteri verir. +CLEAN = TEMİZ ## Metindeki bütün yazdırılamaz karakterleri kaldırır. +CODE = KOD ## Bir metin dizesindeki ilk karakter için sayısal bir kod verir. +CONCATENATE = BİRLEŞTİR ## Pek çok metin öğesini bir metin öğesi olarak birleştirir. +DOLLAR = LİRA ## Bir sayıyı YTL (yeni Türk lirası) para birimi biçimini kullanarak metne dönüştürür. +EXACT = ÖZDEŞ ## İki metin değerinin özdeş olup olmadığını anlamak için, değerleri denetler. +FIND = BUL ## Bir metin değerini, bir başkasının içinde bulur (büyük küçük harf duyarlıdır). +FINDB = BULB ## Bir metin değerini, bir başkasının içinde bulur (büyük küçük harf duyarlıdır). +FIXED = SAYIDÜZENLE ## Bir sayıyı, sabit sayıda ondalıkla, metin olarak biçimlendirir. +JIS = JIS ## Bir karakter dizesindeki tek enli (tek bayt) İngilizce harfleri veya katakanayı çift enli (iki bayt) karakterlerle değiştirir. +LEFT = SOL ## Bir metin değerinden en soldaki karakterleri verir. +LEFTB = SOLB ## Bir metin değerinden en soldaki karakterleri verir. +LEN = UZUNLUK ## Bir metin dizesindeki karakter sayısını verir. +LENB = UZUNLUKB ## Bir metin dizesindeki karakter sayısını verir. +LOWER = KÜÇÜKHARF ## Metni küçük harfe çevirir. +MID = ORTA ## Bir metin dizesinden belirli sayıda karakteri, belirttiğiniz konumdan başlamak üzere verir. +MIDB = ORTAB ## Bir metin dizesinden belirli sayıda karakteri, belirttiğiniz konumdan başlamak üzere verir. +PHONETIC = SES ## Metin dizesinden ses (furigana) karakterlerini ayıklar. +PROPER = YAZIM.DÜZENİ ## Bir metin değerinin her bir sözcüğünün ilk harfini büyük harfe çevirir. +REPLACE = DEĞİŞTİR ## Metnin içindeki karakterleri değiştirir. +REPLACEB = DEĞİŞTİRB ## Metnin içindeki karakterleri değiştirir. +REPT = YİNELE ## Metni belirtilen sayıda yineler. +RIGHT = SAĞ ## Bir metin değerinden en sağdaki karakterleri verir. +RIGHTB = SAĞB ## Bir metin değerinden en sağdaki karakterleri verir. +SEARCH = BUL ## Bir metin değerini, bir başkasının içinde bulur (büyük küçük harf duyarlı değildir). +SEARCHB = BULB ## Bir metin değerini, bir başkasının içinde bulur (büyük küçük harf duyarlı değildir). +SUBSTITUTE = YERİNEKOY ## Bir metin dizesinde, eski metnin yerine yeni metin koyar. +T = M ## Bağımsız değerlerini metne dönüştürür. +TEXT = METNEÇEVİR ## Bir sayıyı biçimlendirir ve metne dönüştürür. +TRIM = KIRP ## Metindeki boşlukları kaldırır. +UPPER = BÜYÜKHARF ## Metni büyük harfe çevirir. +VALUE = SAYIYAÇEVİR ## Bir metin bağımsız değişkenini sayıya dönüştürür. diff --git a/admin/helpers/PHPExcel/locale/tr/index.html b/admin/helpers/PHPExcel/locale/tr/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/PHPExcel/locale/tr/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/html/batch_.php b/admin/helpers/html/batch_.php new file mode 100644 index 00000000..4046c76b --- /dev/null +++ b/admin/helpers/html/batch_.php @@ -0,0 +1,87 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage batch_.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('JPATH_PLATFORM') or die; + +/** + * Utility class to render a list view batch selection options + * + * @since 3.0 + */ +abstract class JHtmlBatch_ +{ + /** + * ListSelection + * + * @var array + * @since 3.0 + */ + protected static $ListSelection = array(); + + /** + * Render the batch selection options. + * + * @return string The necessary HTML to display the batch selection options + * + * @since 3.0 + */ + public static function render() + { + // Collect display data + $data = new stdClass; + $data->ListSelection = static::getListSelection(); + + // Create a layout object and ask it to render the batch selection options + $layout = new JLayoutFile('batchselection'); + $batchHtml = $layout->render($data); + + return $batchHtml; + } + + /** + * Method to add a list selection to the batch modal + * + * @param string $label Label for the menu item. + * @param string $name Name for the filter. Also used as id. + * @param string $options Options for the select field. + * @param bool $noDefault Don't the label as the empty option + * + * @return void + * + * @since 3.0 + */ + public static function addListSelection($label, $name, $options, $noDefault = false) + { + array_push(static::$ListSelection, array('label' => $label, 'name' => $name, 'options' => $options, 'noDefault' => $noDefault)); + } + + /** + * Returns an array of all ListSelection + * + * @return array + * + * @since 3.0 + */ + public static function getListSelection() + { + return static::$ListSelection; + } +} diff --git a/admin/helpers/html/index.html b/admin/helpers/html/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/html/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/index.html b/admin/helpers/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/helpers/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/helpers/sermondistributor.php b/admin/helpers/sermondistributor.php new file mode 100644 index 00000000..96fed7be --- /dev/null +++ b/admin/helpers/sermondistributor.php @@ -0,0 +1,1653 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermondistributor.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Sermondistributor component helper. + */ +abstract class SermondistributorHelper +{ + + /** + * The Global Admin Event Method. + **/ + public static function globalEvent($document) + { + self::loadDropboxAjax($document); + } + + /** + * Load the Dropbox Ajax to page + **/ + public static function loadDropboxAjax($document) + { + $document->addScriptDeclaration(" + jQuery(window).load(function() { + checkDropboxListing(3); + }); + + function checkDropboxListing(view){ + var getUrl = '".JRoute::_('index.php?option=com_sermondistributor&task=ajax.checkDropboxListing&format=json')."'; + if(view > 0){ + var request = 'token=".JSession::getFormToken()."&view='+view; + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'jsonp', + data: request, + jsonp: 'callback' + }); + } + "); + } + + /** + * The dropbox links auto + **/ + protected static $links_dropbox_auto; + + /** + * The dropbox links manual + **/ + protected static $links_dropbox_manual; + + /** + * The dropbox info File Name + **/ + protected static $autoprogress = false; + + /** + * The dropbox info File Name + **/ + protected static $manualprogress = false; + + /** + * The dropbox info File Name + **/ + protected static $autolisting = false; + + /** + * The dropbox info File Name + **/ + protected static $manuallisting = false; + + /** + * check Dropbox Local Listing + **/ + public static function getDownloadLinks(&$sermon) + { + $links = array(); + // Get local key + $localkey = self::getLocalKey(); + // decrypt the urls + $safe = new FOFEncryptAes($localkey, 256); + // internal download url + $keyCounter = new stdClass; + $keyCounter->sermon = $sermon->id; + if ($sermon->preacher) + { + $keyCounter->preacher = $sermon->preacher; + } + if ($sermon->series) + { + $keyCounter->series = $sermon->series; + } + $keyCounter = base64_encode($safe->encryptString(json_encode($keyCounter))); + $token = JSession::getFormToken(); + $downloadURL = 'index.php?option=com_sermondistributor&task=download.file&key='.$keyCounter.'&token='.$token; + // check if local .htaccess should be set + $setHtaccess = false; + $onclick = ' onclick="sermonCounter(\''.$keyCounter.'\',\'FILENAME\');"'; + // check what source of our link + switch ($sermon->source) + { + case 1: + // local file get local folder and check if outside root (if not then allow direct) + $localFolder = JComponentHelper::getParams('com_sermondistributor')->get('localfolder', JPATH_ROOT.'/images').'/'; + // should we allow direct downloads + $allowDirect = false; + if (2 == $sermon->link_type && strpos($localFolder, JPATH_ROOT) !== false) + { + $allowDirect = true; + $localFolderURL = JURI::root().str_replace(JPATH_ROOT, '', $localFolder); + // insure no double // is in the URL + $localFolderURL = str_replace('//', '/', $localFolderURL); + $localFolderURL = str_replace(':/', '://', $localFolderURL); + } + // insure no double // is in the path name + $localFolder = str_replace('//', '/', $localFolder); + $localFolder = str_replace(':/', '://', $localFolder); + if (self::checkArray($sermon->local_files)) + { + foreach($sermon->local_files as $key) + { + if (1 == $sermon->link_type || !$allowDirect) + { + // get the file name use the same method as the auto + $filename = self::getDownloadFileName($sermon,$key,'local'); + $lockedFolderPath = base64_encode($safe->encryptString($localFolder.$key)); + $sermon->download_links[$filename] = JRoute::_($downloadURL.'&link='.$lockedFolderPath.'&filename='.$filename); + $sermon->onclick[$filename] = ''; + } + elseif (2 == $sermon->link_type && $allowDirect) + { + $filename = $key; + $sermon->download_links[$filename] = $localFolderURL.$key; + $sermon->onclick[$filename] = str_replace('FILENAME', $filename, $onclick); + $setHtaccess = true; + } + } + } + break; + case 2: + // Dropbox get global dropbox switch + $dropboxButton = JComponentHelper::getParams('com_sermondistributor')->get('add_to_dropbox', 1); + if (1 == $sermon->build) + { + if (self::checkArray($sermon->manual_files)) + { + // manual dropbox + foreach($sermon->manual_files as $key) + { + // get the link + $dropURL = self::getDropboxLink('manual',1,$key); + if (1 == $sermon->link_type && $dropURL) + { + // get the file name use the same method as the auto + $filename = self::getDownloadFileName($sermon,$key,'dropbox_manual'); + $sermon->download_links[$filename] = JRoute::_($downloadURL.'&link='.$dropURL.'&filename='.$filename); + $sermon->onclick[$filename] = ''; + } + elseif (2 == $sermon->link_type && $dropURL) + { + $filename = str_replace('VDM_pLeK_h0uEr/', '', $key); + $sermon->download_links[$filename] = rtrim($safe->decryptString(base64_decode($dropURL))); + $sermon->onclick[$filename] = str_replace('FILENAME', $filename, $onclick); + } + // build dropbox switch if needed + if (1 == $dropboxButton && $dropURL) + { + $sermon->dropbox_buttons[$filename] = str_replace('?dl=1', '?dl=0', rtrim($safe->decryptString(base64_decode($dropURL)))); + $sermon->onclick_drobox[$filename] = str_replace('FILENAME', $filename, $onclick); + } + } + } + } + elseif (2 == $sermon->build) + { + if (self::checkArray($sermon->auto_sermons)) + { + // automatic dropbox + foreach($sermon->auto_sermons as $filename => $key) + { + // get the link + $dropURL = self::getDropboxLink('auto',1,$key); + if (1 == $sermon->link_type && $dropURL) + { + // get the file name (use the same method as the auto + $sermon->download_links[$filename] = JRoute::_($downloadURL.'&link='.$dropURL.'&filename='.$filename); + $sermon->onclick[$filename] = ''; + } + elseif (2 == $sermon->link_type && $dropURL) + { + $sermon->download_links[$filename] = rtrim($safe->decryptString(base64_decode($dropURL))); + $sermon->onclick[$filename] = str_replace('FILENAME', $filename, $onclick); + } + // build dropbox switch if needed + if (1 == $dropboxButton && $dropURL) + { + $sermon->dropbox_buttons[$filename] = str_replace('?dl=1', '?dl=0', rtrim($safe->decryptString(base64_decode($dropURL)))); + $sermon->onclick_drobox[$filename] = str_replace('FILENAME', $filename, $onclick); + } + } + } + } + break; + case 3: + // url get the file name use the same method as the auto + $filename = self::getDownloadFileName($sermon,$sermon->url,'url'); + if (1 == $sermon->link_type) + { + $lockedURL = base64_encode($safe->encryptString($sermon->url)); + $sermon->download_links[$filename] = JRoute::_($downloadURL.'&link='.$lockedURL.'&filename='.$filename); + $sermon->onclick[$filename] = ''; + } + elseif (2 == $sermon->link_type) + { + $sermon->download_links[$filename] = $sermon->url; + $sermon->onclick[$filename] = str_replace('FILENAME', $filename, $onclick); + } + break; + } + // remove the values no longer needed + unset($sermon->local_files); + unset($sermon->manual_files); + unset($sermon->auto_sermons); + unset($sermon->url); + // should we set the local .htaccess for the download folder + if ($setHtaccess) + { + // TODO we may need to add this latter to enforce download of files. + } + return true; + } + + public static function getDropboxLink($type, $return = false, $target = false) + { + // make sure all defaults are set + $found = self::checkDropboxLocalListing($type); + if ($found) + { + switch($return) + { + case 1: + // return a link + if (isset(self::${'links_dropbox_'.$type}[$target])) + { + return self::${'links_dropbox_'.$type}[$target]; + } + break; + case 2: + // return all links + return self::${'links_dropbox_'.$type}; + break; + default : + // just confirm that it is set + return true; + break; + } + } + return false; + } + + public static function countDownload($counter,$filename) + { + // Get local key + $localkey = self::getLocalKey(); + $opener = new FOFEncryptAes($localkey, 256); + $counter = json_decode(rtrim($opener->decryptString(base64_decode($counter)))); + if (self::checkObject($counter)) + { + $counter->filename = $filename; + // set the date object + $date = JFactory::getDate(); + // first check if this file already has statistics + $db = JFactory::getDbo(); + $query = $db->getQuery(true); + $query->select($db->quoteName(array('id','counter'))); + $query->from($db->quoteName('#__sermondistributor_statistic')); + $query->where($db->quoteName('sermon') . ' = '. (int) $counter->sermon); + $query->where($db->quoteName('filename') . ' = '. $db->quote($counter->filename)); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + $statistic = $db->loadObject(); + // already has an entry + $statistic->counter++; + $statistic->modified = $date->toSql(); + // update the entry + return $db->updateObject('#__sermondistributor_statistic', $statistic, 'id'); + } + else + { + // set a new entry + $counter->counter = 1; + $counter->published = 1; + $counter->created = $date->toSql(); + $counter->access = 1; + $counter->version = 1; + // set a new entry + $done = $db->insertObject('#__sermondistributor_statistic', $counter); + // if done return last used id + if ($done) + { + $newId = $db->insertid(); + // make sure the access of asset is set + return self::setAsset($newId,'statistic'); + } + } + } + return false; + } + + protected static function getDownloadFileName(&$sermon,$file,$type) + { + // first get file name and file type + $file = str_replace('VDM_pLeK_h0uEr/', '', $file); + $fileType = pathinfo($file, PATHINFO_EXTENSION); + if ($fileType) + { + $file = str_replace('.'.$fileType, '', $file); + } + else + { + $fileType = 'error'; + } + // now build download name + $downloadName = array(); + // build the Download File Name - first add the preacher name if set + if ($sermon->preacher) + { + $downloadName[] = self::safeString($sermon->preacher_name,'U'); + } + // add the series name if set + if ($sermon->series) + { + $downloadName[] = self::safeString($sermon->series_name,'F'); + } + // add the category name if set + if ($sermon->catid && self::checkString($sermon->category)) + { + $downloadName[] = self::safeString($sermon->category, 'F'); + } + if ('dropbox_manual' == $type || 'local' == $type) + { + // add the main file name + $downloadName[] = self::safeString($sermon->name,'F'); + $downloadName[] = self::safeString($file,'F'); + } + else + { + $downloadName[] = self::safeString($sermon->name,'F'); + if ('error' == $fileType || strpos('?', $fileType) !== false || strpos('&', $fileType) !== false ) + { + $fileType = 'mp3'; // TODO we don't know the url filetype (setting to mp3 but this could be wrong) + } + } + // now build the download file name + return implode('__', $downloadName).'.'.$fileType; + } + + /** + * check Dropbox Local Listing (do we have the files) + **/ + public static function checkDropboxLocalListing($type) + { + $filePath = self::getFilePath($type); + // get the local links + if (self::checkArray(self::${'links_dropbox_'.$type})) + { + // return true we have links loaded + return true; + } + elseif (($jsonlinks = @file_get_contents($filePath)) !== FALSE) + { + if (self::checkString($jsonlinks)) + { + // get saved links + $storeage = json_decode($jsonlinks,true); + if (self::checkArray($storeage)) + { + // load the saved links + self::${'links_dropbox_'.$type} = $storeage; + return true; + } + } + } + return false; + } + + protected static function getFilePath($type, $name = 'listing') + { + if (!self::checkString(self::${$type.$name})) + { + // Get local key + $localkey = self::getLocalKey(); + // set the name + $fileName = md5($type.$name.$localkey); + // set file path + self::${$type.$name} = JPATH_COMPONENT_SITE.'/helpers/'.$fileName.'.json'; + } + // return the path + return self::${$type.$name}; + } + + /** + * get the localkey + **/ + protected static $localkey = false; + + public static function getLocalKey() + { + if (!self::$localkey) + { + // get the main key + self::$localkey = md5(JComponentHelper::getParams('com_sermondistributor')->get('link_encryption', 'localKey34fdWEkl')); + } + return self::$localkey; + } + + public static function updateDropbox($type = false, $force = false) + { + // load the file + JLoader::import('dropboxupdater', JPATH_COMPONENT_SITE.'/helpers'); + // update types + $types = array('manual','auto'); + // okay now update this type + if (self::checkString($type) && in_array($type,$types)) + { + $dropbox = new Dropboxupdater(); + return $dropbox->update($type,$force); + } + return false; + } + + public static function getUpdateProgress($type) + { + $filePath = self::getFilePath($type,'progress'); + // get the set progress + if (($progress = @file_get_contents($filePath)) !== FALSE) + { + if (self::checkString($progress)) + { + // get set progress + $progress = json_decode($progress,true); + if (self::checkArray($progress)) + { + // return te progress + return $progress['report']; + } + } + } + return 0; + } + + /** + * Load the Component xml manifest. + **/ + public static function manifest() + { + $manifestUrl = JPATH_ADMINISTRATOR."/components/com_sermondistributor/sermondistributor.xml"; + return simplexml_load_file($manifestUrl); + } + + /** + * Load the Contributors details. + **/ + public static function getContributors() + { + // get params + $params = JComponentHelper::getParams('com_sermondistributor'); + // start contributors array + $contributors = array(); + // get all Contributors (max 20) + $searchArray = range('0','20'); + foreach($searchArray as $nr) + { + if ((NULL !== $params->get("showContributor".$nr)) && ($params->get("showContributor".$nr) == 1 || $params->get("showContributor".$nr) == 3)) + { + // set link based of selected option + if($params->get("useContributor".$nr) == 1) + { + $link_front = '<a href="mailto:'.$params->get("emailContributor".$nr).'" target="_blank">'; + $link_back = '</a>'; + } + elseif($params->get("useContributor".$nr) == 2) + { + $link_front = '<a href="'.$params->get("linkContributor".$nr).'" target="_blank">'; + $link_back = '</a>'; + } + else + { + $link_front = ''; + $link_back = ''; + } + $contributors[$nr]['title'] = self::htmlEscape($params->get("titleContributor".$nr)); + $contributors[$nr]['name'] = $link_front.self::htmlEscape($params->get("nameContributor".$nr)).$link_back; + } + } + return $contributors; + } + + /** + * Load the Component Help URLs. + **/ + public static function getHelpUrl($view) + { + $user = JFactory::getUser(); + $groups = $user->get('groups'); + $db = JFactory::getDbo(); + $query = $db->getQuery(true); + $query->select(array('a.id','a.groups','a.target','a.type','a.article','a.url')); + $query->from('#__sermondistributor_help_document AS a'); + $query->where('a.admin_view = '.$db->quote($view)); + $query->where('a.location = 1'); + $query->where('a.published = 1'); + $db->setQuery($query); + $db->execute(); + if($db->getNumRows()) + { + $helps = $db->loadObjectList(); + if (self::checkArray($helps)) + { + foreach ($helps as $nr => $help) + { + if ($help->target == 1) + { + $targetgroups = json_decode($help->groups, true); + if (!array_intersect($targetgroups, $groups)) + { + // [1380] if user not in those target groups then remove the item + unset($helps[$nr]); + continue; + } + } + // [1385] set the return type + switch ($help->type) + { + // [1388] set joomla article + case 1: + return self::loadArticleLink($help->article); + break; + // [1392] set help text + case 2: + return self::loadHelpTextLink($help->id); + break; + // [1396] set Link + case 3: + return $help->url; + break; + } + } + } + } + return false; + } + + /** + * Get the Article Link. + **/ + protected static function loadArticleLink($id) + { + return JURI::root().'index.php?option=com_content&view=article&id='.$id.'&tmpl=component&layout=modal'; + } + + /** + * Get the Help Text Link. + **/ + protected static function loadHelpTextLink($id) + { + $token = JSession::getFormToken(); + return 'index.php?option=com_sermondistributor&task=help.getText&id=' . (int) $id . '&token=' . $token; + } + + /** + * Configure the Linkbar. + **/ + public static function addSubmenu($submenu) + { + // load user for access menus + $user = JFactory::getUser(); + // load the submenus to sidebar + JHtmlSidebar::addEntry(JText::_('COM_SERMONDISTRIBUTOR_SUBMENU_DASHBOARD'), 'index.php?option=com_sermondistributor&view=sermondistributor', $submenu == 'sermondistributor'); + if ($user->authorise('preacher.access', 'com_sermondistributor') && $user->authorise('preacher.submenu', 'com_sermondistributor')) + { + JHtmlSidebar::addEntry(JText::_('COM_SERMONDISTRIBUTOR_SUBMENU_PREACHERS'), 'index.php?option=com_sermondistributor&view=preachers', $submenu == 'preachers'); + } + if ($user->authorise('sermon.access', 'com_sermondistributor') && $user->authorise('sermon.submenu', 'com_sermondistributor')) + { + JHtmlSidebar::addEntry(JText::_('COM_SERMONDISTRIBUTOR_SUBMENU_SERMONS'), 'index.php?option=com_sermondistributor&view=sermons', $submenu == 'sermons'); + JHtmlSidebar::addEntry(JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERMON_CATEGORY'), 'index.php?option=com_categories&view=categories&extension=com_sermondistributor.sermons', $submenu == 'categories.sermons'); + } + if ($user->authorise('series.access', 'com_sermondistributor') && $user->authorise('series.submenu', 'com_sermondistributor')) + { + JHtmlSidebar::addEntry(JText::_('COM_SERMONDISTRIBUTOR_SUBMENU_SERIES_LIST'), 'index.php?option=com_sermondistributor&view=series_list', $submenu == 'series_list'); + } + if ($user->authorise('statistic.access', 'com_sermondistributor') && $user->authorise('statistic.submenu', 'com_sermondistributor')) + { + JHtmlSidebar::addEntry(JText::_('COM_SERMONDISTRIBUTOR_SUBMENU_STATISTICS'), 'index.php?option=com_sermondistributor&view=statistics', $submenu == 'statistics'); + } + if ($user->authorise('help_document.access', 'com_sermondistributor') && $user->authorise('help_document.submenu', 'com_sermondistributor')) + { + JHtmlSidebar::addEntry(JText::_('COM_SERMONDISTRIBUTOR_SUBMENU_HELP_DOCUMENTS'), 'index.php?option=com_sermondistributor&view=help_documents', $submenu == 'help_documents'); + } + } + + /** + * UIKIT Component Classes + **/ + public static $uk_components = array( + 'data-uk-grid' => array( + 'grid' ), + 'uk-accordion' => array( + 'accordion' ), + 'uk-autocomplete' => array( + 'autocomplete' ), + 'data-uk-datepicker' => array( + 'datepicker' ), + 'uk-form-password' => array( + 'form-password' ), + 'uk-form-select' => array( + 'form-select' ), + 'data-uk-htmleditor' => array( + 'htmleditor' ), + 'data-uk-lightbox' => array( + 'lightbox' ), + 'uk-nestable' => array( + 'nestable' ), + 'UIkit.notify' => array( + 'notify' ), + 'data-uk-parallax' => array( + 'parallax' ), + 'uk-search' => array( + 'search' ), + 'uk-slider' => array( + 'slider' ), + 'uk-slideset' => array( + 'slideset' ), + 'uk-slideshow' => array( + 'slideshow', + 'slideshow-fx' ), + 'uk-sortable' => array( + 'sortable' ), + 'data-uk-sticky' => array( + 'sticky' ), + 'data-uk-timepicker' => array( + 'timepicker' ), + 'data-uk-tooltip' => array( + 'tooltip' ), + 'upload-drop' => array( + 'upload' ) + ); + + /** + * Add UIKIT Components + **/ + public static $uikit = false; + + /** + * Get UIKIT Components + **/ + public static function getUikitComp($content,$classes = array()) + { + if (strpos($content,'class="uk-') !== false) + { + // [2594] reset + $temp = array(); + foreach (self::$uk_components as $looking => $add) + { + if (strpos($content,$looking) !== false) + { + $temp[] = $looking; + } + } + // [2603] make sure uikit is loaded to config + if (strpos($content,'class="uk-') !== false) + { + self::$uikit = true; + } + // [2608] sorter + if (self::checkArray($temp)) + { + // [2611] merger + if (self::checkArray($classes)) + { + $newTemp = array_merge($temp,$classes); + $temp = array_unique($newTemp); + } + return $temp; + } + } + if (self::checkArray($classes)) + { + return $classes; + } + return false; + } + + /** + * Prepares the xml document + */ + public static function xls($rows,$fileName = null,$title = null,$subjectTab = null,$creator = 'Vast Development Method',$description = null,$category = null,$keywords = null,$modified = null) + { + // [1435] set the user + $user = JFactory::getUser(); + + // [1438] set fieldname if not set + if (!$fileName) + { + $fileName = 'exported_'.JFactory::getDate()->format('jS_F_Y'); + } + // [1443] set modiefied if not set + if (!$modified) + { + $modified = $user->name; + } + // [1448] set title if not set + if (!$title) + { + $title = 'Book1'; + } + // [1453] set tab name if not set + if (!$subjectTab) + { + $subjectTab = 'Sheet1'; + } + + // [1459] make sure the file is loaded + JLoader::import('PHPExcel', JPATH_COMPONENT_ADMINISTRATOR . '/helpers'); + + // [1462] Create new PHPExcel object + $objPHPExcel = new PHPExcel(); + + // [1465] Set document properties + $objPHPExcel->getProperties()->setCreator($creator) + ->setCompany('Vast Development Method') + ->setLastModifiedBy($modified) + ->setTitle($title) + ->setSubject($subjectTab); + if (!$description) + { + $objPHPExcel->getProperties()->setDescription($description); + } + if (!$keywords) + { + $objPHPExcel->getProperties()->setKeywords($keywords); + } + if (!$category) + { + $objPHPExcel->getProperties()->setCategory($category); + } + + // [1484] Some styles + $headerStyles = array( + 'font' => array( + 'bold' => true, + 'color' => array('rgb' => '1171A3'), + 'size' => 12, + 'name' => 'Verdana' + )); + $sideStyles = array( + 'font' => array( + 'bold' => true, + 'color' => array('rgb' => '444444'), + 'size' => 11, + 'name' => 'Verdana' + )); + $normalStyles = array( + 'font' => array( + 'color' => array('rgb' => '444444'), + 'size' => 11, + 'name' => 'Verdana' + )); + + // [1506] Add some data + if (self::checkArray($rows)) + { + $i = 1; + foreach ($rows as $array){ + $a = 'A'; + foreach ($array as $value){ + $objPHPExcel->setActiveSheetIndex(0)->setCellValue($a.$i, $value); + if ($i == 1){ + $objPHPExcel->getActiveSheet()->getColumnDimension($a)->setAutoSize(true); + $objPHPExcel->getActiveSheet()->getStyle($a.$i)->applyFromArray($headerStyles); + $objPHPExcel->getActiveSheet()->getStyle($a.$i)->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER); + } elseif ($a == 'A'){ + $objPHPExcel->getActiveSheet()->getStyle($a.$i)->applyFromArray($sideStyles); + } else { + $objPHPExcel->getActiveSheet()->getStyle($a.$i)->applyFromArray($normalStyles); + } + $a++; + } + $i++; + } + } + else + { + return false; + } + + // [1533] Rename worksheet + $objPHPExcel->getActiveSheet()->setTitle($subjectTab); + + // [1536] Set active sheet index to the first sheet, so Excel opens this as the first sheet + $objPHPExcel->setActiveSheetIndex(0); + + // [1539] Redirect output to a client's web browser (Excel5) + header('Content-Type: application/vnd.ms-excel'); + header('Content-Disposition: attachment;filename="'.$fileName.'.xls"'); + header('Cache-Control: max-age=0'); + // [1543] If you're serving to IE 9, then the following may be needed + header('Cache-Control: max-age=1'); + + // [1546] If you're serving to IE over SSL, then the following may be needed + header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past + header ('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); // always modified + header ('Cache-Control: cache, must-revalidate'); // HTTP/1.1 + header ('Pragma: public'); // HTTP/1.0 + + $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); + $objWriter->save('php://output'); + jexit(); + } + + /** + * Get CSV Headers + */ + public static function getFileHeaders($dataType) + { + // [1562] make sure the file is loaded + JLoader::import('PHPExcel', JPATH_COMPONENT_ADMINISTRATOR . '/helpers'); + // [1564] get session object +$session = JFactory::getSession(); + $package = $session->get('package', null); + $package = json_decode($package, true); + // [1568] set the headers + if(isset($package['dir'])) + { + $inputFileType = PHPExcel_IOFactory::identify($package['dir']); + $excelReader = PHPExcel_IOFactory::createReader($inputFileType); + $excelReader->setReadDataOnly(true); + $excelObj = $excelReader->load($package['dir']); +$headers = array(); + foreach ($excelObj->getActiveSheet()->getRowIterator() as $row) + { + if($row->getRowIndex() == 1) + { + $cellIterator = $row->getCellIterator(); + $cellIterator->setIterateOnlyExistingCells(false); + foreach ($cellIterator as $cell) + { + if (!is_null($cell)) + { + $headers[$cell->getColumn()] = $cell->getValue(); + } + } + $excelObj->disconnectWorksheets(); + unset($excelObj); + break; + } + } + return $headers; + } + return false; + } + + public static function getVar($table, $where = null, $whereString = 'user', $what = 'id', $operator = '=', $main = 'sermondistributor') + { + if(!$where) + { + $where = JFactory::getUser()->id; + } + // Get a db connection. + $db = JFactory::getDbo(); + // Create a new query object. + $query = $db->getQuery(true); + + $query->select($db->quoteName(array($what))); + $query->from($db->quoteName('#__'.$main.'_'.$table)); + if (is_numeric($where)) + { + $query->where($db->quoteName($whereString) . ' '.$operator.' '.(int) $where); + } + elseif (is_string($where)) + { + $query->where($db->quoteName($whereString) . ' '.$operator.' '. $db->quote((string)$where)); + } + else + { + return false; + } + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + return $db->loadResult(); + } + return false; + } + + public static function getVars($table, $where = null, $whereString = 'user', $what = 'id', $operator = 'IN', $main = 'sermondistributor', $unique = true) + { + if(!$where) + { + $where = JFactory::getUser()->id; + } + + if (!self::checkArray($where) && $where > 0) + { + $where = array($where); + } + + if (self::checkArray($where)) + { + // Get a db connection. + $db = JFactory::getDbo(); + // Create a new query object. + $query = $db->getQuery(true); + + $query->select($db->quoteName(array($what))); + $query->from($db->quoteName('#__'.$main.'_'.$table)); + $query->where($db->quoteName($whereString) . ' '.$operator.' (' . implode(',',$where) . ')'); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + if ($unique) + { + return array_unique($db->loadColumn()); + } + return $db->loadColumn(); + } + } + return false; + } + + public static function jsonToString($value, $sperator = ", ") + { + // check if string is JSON + $result = json_decode($value, true); + if (json_last_error() === JSON_ERROR_NONE) { + // is JSON + if (self::checkArray($result)) + { + $value = ''; + $counter = 0; + foreach ($result as $string) + { + if ($counter) + { + $value .= $sperator.$string; + } + else + { + $value .= $string; + } + $counter++; + } + return $value; + } + return json_decode($value); + } + return $value; + } + + public static function isPublished($id,$type) + { + if ($type == 'raw') + { + $type = 'item'; + } + $db = JFactory::getDbo(); + $query = $db->getQuery(true); + $query->select(array('a.published')); + $query->from('#__sermondistributor_'.$type.' AS a'); + $query->where('a.id = '.$id); + $query->where('a.published = 1'); + $db->setQuery($query); + $db->execute(); + $found = $db->getNumRows(); + if($found) + { + return true; + } + return false; + } + + public static function getGroupName($id) + { + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + $query->select(array('a.title')); + $query->from('#__usergroups AS a'); + $query->where('a.id = '.$id); + $db->setQuery($query); + $db->execute(); + $found = $db->getNumRows(); + if($found) + { + return $db->loadResult(); + } + return $id; + } + + /** + * Get the actions permissions + **/ + public static function getActions($view,&$record = null,$views = null) + { + jimport('joomla.access.access'); + + $user = JFactory::getUser(); + $result = new JObject; + $view = self::safeString($view); + if (self::checkString($views)) + { + $views = self::safeString($views); + } + // get all actions from component + $actions = JAccess::getActions('com_sermondistributor', 'component'); + // set acctions only set in component settiongs + $componentActions = array('core.admin','core.manage','core.options','core.export'); + // loop the actions and set the permissions + foreach ($actions as $action) + { + // set to use component default + $allow = true; + if (self::checkObject($record) && isset($record->id) && $record->id > 0 && !in_array($action->name,$componentActions)) + { + // The record has been set. Check the record permissions. + $permission = $user->authorise($action->name, 'com_sermondistributor.'.$view.'.' . (int) $record->id); + if (!$permission && !is_null($permission)) + { + if ($action->name == 'core.edit' || $action->name == $view.'.edit') + { + if ($user->authorise('core.edit.own', 'com_sermondistributor.'.$view.'.' . (int) $record->id)) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + elseif ($user->authorise($view.'edit.own', 'com_sermondistributor.'.$view.'.' . (int) $record->id)) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + elseif ($user->authorise('core.edit.own', 'com_sermondistributor')) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + elseif ($user->authorise($view.'edit.own', 'com_sermondistributor')) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + } + } + elseif (self::checkString($views) && isset($record->catid) && $record->catid > 0) + { + // make sure we use the core. action check for the categories + if (strpos($action->name,$view) !== false && strpos($action->name,'core.') === false ) { + $coreCheck = explode('.',$action->name); + $coreCheck[0] = 'core'; + $categoryCheck = implode('.',$coreCheck); + } + else + { + $categoryCheck = $action->name; + } + // The record has a category. Check the category permissions. + $catpermission = $user->authorise($categoryCheck, 'com_sermondistributor.'.$views.'.category.' . (int) $record->catid); + if (!$catpermission && !is_null($catpermission)) + { + if ($action->name == 'core.edit' || $action->name == $view.'.edit') + { + if ($user->authorise('core.edit.own', 'com_sermondistributor.'.$views.'.category.' . (int) $record->catid)) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + elseif ($user->authorise($view.'edit.own', 'com_sermondistributor.'.$views.'.category.' . (int) $record->catid)) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + elseif ($user->authorise('core.edit.own', 'com_sermondistributor')) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + elseif ($user->authorise($view.'edit.own', 'com_sermondistributor')) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + } + } + } + } + // if allowed then fall back on component global settings + if ($allow) + { + $result->set($action->name, $user->authorise($action->name, 'com_sermondistributor')); + } + } + return $result; + } + + /** + * Get any component's model + **/ + public static function getModel($name, $path = JPATH_COMPONENT_ADMINISTRATOR, $component = 'sermondistributor') + { + // load some joomla helpers + JLoader::import('joomla.application.component.model'); + // load the model file + JLoader::import( $name, $path . '/models' ); + // return instance + return JModelLegacy::getInstance( $name, $component.'Model' ); + } + + /** + * Add to asset Table + */ + public static function setAsset($id,$table) + { + $parent = JTable::getInstance('Asset'); + $parent->loadByName('com_sermondistributor'); + + $parentId = $parent->id; + $name = 'com_sermondistributor.'.$table.'.'.$id; + $title = ''; + + $asset = JTable::getInstance('Asset'); + $asset->loadByName($name); + + // Check for an error. + $error = $asset->getError(); + + if ($error) + { + return false; + } + else + { + // Specify how a new or moved node asset is inserted into the tree. + if ($asset->parent_id != $parentId) + { + $asset->setLocation($parentId, 'last-child'); + } + + // Prepare the asset to be stored. + $asset->parent_id = $parentId; + $asset->name = $name; + $asset->title = $title; + // get the default asset rules + $rules = self::getDefaultAssetRules('com_sermondistributor',$table); + if ($rules instanceof JAccessRules) + { + $asset->rules = (string) $rules; + } + + if (!$asset->check() || !$asset->store()) + { + JError::raiseWarning(500, $asset->getError()); + return false; + } + else + { + // Create an asset_id or heal one that is corrupted. + $object = new stdClass(); + + // Must be a valid primary key value. + $object->id = $id; + $object->asset_id = (int) $asset->id; + + // Update their asset_id to link to the asset table. + return JFactory::getDbo()->updateObject('#__sermondistributor_'.$table, $object, 'id'); + } + } + return false; + } + + /** + * Gets the default asset Rules for a component/view. + */ + protected static function getDefaultAssetRules($component,$view) + { + // Need to find the asset id by the name of the component. + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select($db->quoteName('id')) + ->from($db->quoteName('#__assets')) + ->where($db->quoteName('name') . ' = ' . $db->quote($component)); + $db->setQuery($query); + $db->execute(); + if ($db->loadRowList()) + { + // asset alread set so use saved rules + $assetId = (int) $db->loadResult(); + $result = JAccess::getAssetRules($assetId); + if ($result instanceof JAccessRules) + { + $_result = (string) $result; + $_result = json_decode($_result); + foreach ($_result as $name => &$rule) + { + $v = explode('.', $name); + if ($view !== $v[0]) + { + // remove since it is not part of this view + unset($_result->$name); + } + else + { + // clear the value since we inherit + $rule = array(); + } + } + // check if there are any view values remaining + if (count($_result)) + { + $_result = json_encode($_result); + $_result = array($_result); + // Instantiate and return the JAccessRules object for the asset rules. + $rules = new JAccessRules($_result); + + return $rules; + } + return $result; + } + } + return JAccess::getAssetRules(0); + } + + public static function renderBoolButton() + { + $args = func_get_args(); + + // get the radio element + $button = JFormHelper::loadFieldType('radio'); + + // setup the properties + $name = self::htmlEscape($args[0]); + $additional = isset($args[1]) ? (string) $args[1] : ''; + $value = $args[2]; + $yes = isset($args[3]) ? self::htmlEscape($args[3]) : 'JYES'; + $no = isset($args[4]) ? self::htmlEscape($args[4]) : 'JNO'; + + // prepare the xml + $element = new SimpleXMLElement('<field name="'.$name.'" type="radio" class="btn-group"><option '.$additional.' value="0">'.$no.'</option><option '.$additional.' value="1">'.$yes.'</option></field>'); + + // run + $button->setup($element, $value); + + return $button->input; + + } + + public static function checkObject($object) + { + if (isset($object) && is_object($object) && count($object) > 0) + { + return true; + } + return false; + } + + public static function checkArray($array) + { + if (isset($array) && is_array($array) && count($array) > 0) + { + return true; + } + return false; + } + + public static function checkString($string) + { + if (isset($string) && is_string($string) && strlen($string) > 0) + { + return true; + } + return false; + } + + public static function mergeArrays($arrays) + { + if(self::checkArray($arrays)) + { + $arrayBuket = array(); + foreach ($arrays as $array) + { + if (self::checkArray($array)) + { + $arrayBuket = array_merge($arrayBuket, $array); + } + } + return $arrayBuket; + } + return false; + } + + public static function sorten($string, $length = 40, $addTip = true) + { + if (self::checkString($string)) + { + $initial = strlen($string); + $words = preg_split('/([\s\n\r]+)/', $string, null, PREG_SPLIT_DELIM_CAPTURE); + $words_count = count($words); + + $word_length = 0; + $last_word = 0; + for (; $last_word < $words_count; ++$last_word) + { + $word_length += strlen($words[$last_word]); + if ($word_length > $length) + { + break; + } + } + + $newString = implode(array_slice($words, 0, $last_word)); + $final = strlen($newString); + if ($initial != $final && $addTip) + { + $title = self::sorten($string, 400 , false); + return '<span class="hasTip" title="'.$title.'" style="cursor:help">'.trim($newString).'...</span>'; + } + elseif ($initial != $final && !$addTip) + { + return trim($newString).'...'; + } + } + return $string; + } + + public static function safeString($string, $type = 'L', $spacer = '_') + { + // remove all numbers and replace with english text version (works well only up to a thousand) + $string = self::replaceNumbers($string); + + if (self::checkString($string)) + { + // remove all other characters + $string = trim($string); + $string = preg_replace('/'.$spacer.'+/', ' ', $string); + $string = preg_replace('/\s+/', ' ', $string); + $string = preg_replace("/[^A-Za-z ]/", '', $string); + // return a string with all first letter of each word uppercase(no undersocre) + if ($type == 'W') + { + return ucwords(strtolower($string)); + } + elseif ($type == 'w') + { + return strtolower($string); + } + elseif ($type == 'Ww') + { + return ucfirst(strtolower($string)); + } + elseif ($type == 'WW') + { + return strtoupper($string); + } + elseif ($type == 'U') + { + // replace white space with underscore + $string = preg_replace('/\s+/', $spacer, $string); + // return all upper + return strtoupper($string); + } + elseif ($type == 'F') + { + // replace white space with underscore + $string = preg_replace('/\s+/', $spacer, $string); + // return with first caracter to upper + return ucfirst(strtolower($string)); + } + elseif ($type == 'L') + { + // replace white space with underscore + $string = preg_replace('/\s+/', $spacer, $string); + // default is to return lower + return strtolower($string); + } + + // return string + return $string; + } + // not a string + return ''; + } + + public static function htmlEscape($var, $charset = 'UTF-8', $sorten = false, $length = 40) + { + if (self::checkString($var)) + { + $filter = new JFilterInput(); + $string = $filter->clean(html_entity_decode(htmlentities($var, ENT_COMPAT, $charset)), 'HTML'); + if ($sorten) + { + return self::sorten($string,$length); + } + return $string; + } + else + { + return ''; + } + } + + public static function replaceNumbers($string) + { + // set numbers array + $numbers = array(); + // first get all numbers + preg_match_all('!\d+!', $string, $numbers); + // check if we have any numbers + if (isset($numbers[0]) && self::checkArray($numbers[0])) + { + foreach ($numbers[0] as $number) + { + $searchReplace[$number] = self::numberToString((int)$number); + } + // now replace numbers in string + $string = str_replace(array_keys($searchReplace), array_values($searchReplace),$string); + // check if we missed any, strange if we did. + return self::replaceNumbers($string); + } + // return the string with no numbers remaining. + return $string; + } + + /** + * Convert an integer into an English word string + * Thanks to Tom Nicholson <http://php.net/manual/en/function.strval.php#41988> + * + * @input an int + * @returns a string + **/ + public static function numberToString($x) + { + $nwords = array( "zero", "one", "two", "three", "four", "five", "six", "seven", + "eight", "nine", "ten", "eleven", "twelve", "thirteen", + "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", + "nineteen", "twenty", 30 => "thirty", 40 => "forty", + 50 => "fifty", 60 => "sixty", 70 => "seventy", 80 => "eighty", + 90 => "ninety" ); + + if(!is_numeric($x)) + { + $w = $x; + } + elseif(fmod($x, 1) != 0) + { + $w = $x; + } + else + { + if($x < 0) + { + $w = 'minus '; + $x = -$x; + } + else + { + $w = ''; + // ... now $x is a non-negative integer. + } + + if($x < 21) // 0 to 20 + { + $w .= $nwords[$x]; + } + elseif($x < 100) // 21 to 99 + { + $w .= $nwords[10 * floor($x/10)]; + $r = fmod($x, 10); + if($r > 0) + { + $w .= ' '. $nwords[$r]; + } + } + elseif($x < 1000) // 100 to 999 + { + $w .= $nwords[floor($x/100)] .' hundred'; + $r = fmod($x, 100); + if($r > 0) + { + $w .= ' and '. self::numberToString($r); + } + } + elseif($x < 1000000) // 1000 to 999999 + { + $w .= self::numberToString(floor($x/1000)) .' thousand'; + $r = fmod($x, 1000); + if($r > 0) + { + $w .= ' '; + if($r < 100) + { + $w .= 'and '; + } + $w .= self::numberToString($r); + } + } + else // millions + { + $w .= self::numberToString(floor($x/1000000)) .' million'; + $r = fmod($x, 1000000); + if($r > 0) + { + $w .= ' '; + if($r < 100) + { + $word .= 'and '; + } + $w .= self::numberToString($r); + } + } + } + return $w; + } + + /** + * Random Key + * + * @returns a string + **/ + public static function randomkey($size) + { + $bag = "abcefghijknopqrstuwxyzABCDDEFGHIJKLLMMNOPQRSTUVVWXYZabcddefghijkllmmnopqrstuvvwxyzABCEFGHIJKNOPQRSTUWXYZ"; + $key = array(); + $bagsize = strlen($bag) - 1; + for ($i = 0; $i < $size; $i++) + { + $get = rand(0, $bagsize); + $key[] = $bag[$get]; + } + return implode($key); + } +} diff --git a/admin/index.html b/admin/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/language/en-GB/en-GB.com_sermondistributor.ini b/admin/language/en-GB/en-GB.com_sermondistributor.ini new file mode 100644 index 00000000..4b22fed1 --- /dev/null +++ b/admin/language/en-GB/en-GB.com_sermondistributor.ini @@ -0,0 +1,1323 @@ +COM_SERMONDISTRIBUTOR="Sermon Distributor" +COM_SERMONDISTRIBUTOR_AUTHOR="Author" +COM_SERMONDISTRIBUTOR_BACK="Back" +COM_SERMONDISTRIBUTOR_CATEGORIES_ACCESS_SITE="Categories (Site) Access" +COM_SERMONDISTRIBUTOR_CATEGORIES_ACCESS_SITE_DESC=" Allows the users in this group to access site categories." +COM_SERMONDISTRIBUTOR_CATEGORY_ACCESS_SITE="Category (Site) Access" +COM_SERMONDISTRIBUTOR_CATEGORY_ACCESS_SITE_DESC=" Allows the users in this group to access site category." +COM_SERMONDISTRIBUTOR_CONFIG_ADD_TO_DROPBOX_DESCRIPTION="Allow add to Dropbox button to show, this will expose the Dropbox links." +COM_SERMONDISTRIBUTOR_CONFIG_ADD_TO_DROPBOX_LABEL="Dropbox Button" +COM_SERMONDISTRIBUTOR_CONFIG_ALMOST_FLAT_LOAD="Almost Flat" +COM_SERMONDISTRIBUTOR_CONFIG_ARCHIVED="Archived" +COM_SERMONDISTRIBUTOR_CONFIG_AUTHOR="Author Info" +COM_SERMONDISTRIBUTOR_CONFIG_AUTHOR_EMAIL_DESC="The email address of the author of this component." +COM_SERMONDISTRIBUTOR_CONFIG_AUTHOR_EMAIL_LABEL="Author Email" +COM_SERMONDISTRIBUTOR_CONFIG_AUTHOR_NAME_DESC="The name of the author of this component." +COM_SERMONDISTRIBUTOR_CONFIG_AUTHOR_NAME_LABEL="Author Name" +COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXFOUR_DESCRIPTION="Enter the url of the main Dropbox folder to target, this will link the files." +COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXFOUR_HINT="https://www.dropbox.com/shared-link-from-dropbox-to-main-folder?dl=0" +COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXFOUR_LABEL="Dropbox Auto (Folder 4)" +COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXONE_DESCRIPTION="Enter the url of the main Dropbox folder to target, this will link the files." +COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXONE_HINT="https://www.dropbox.com/shared-link-from-dropbox-to-main-folder?dl=0" +COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXONE_LABEL="Dropbox Auto (Folder 1)" +COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXTHREE_DESCRIPTION="Enter the url of the main Dropbox folder to target, this will link the files." +COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXTHREE_HINT="https://www.dropbox.com/shared-link-from-dropbox-to-main-folder?dl=0" +COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXTHREE_LABEL="Dropbox Auto (Folder 3)" +COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXTWO_DESCRIPTION="Enter the url of the main Dropbox folder to target, this will link the files." +COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXTWO_HINT="https://www.dropbox.com/shared-link-from-dropbox-to-main-folder?dl=0" +COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXTWO_LABEL="Dropbox Auto (Folder 2)" +COM_SERMONDISTRIBUTOR_CONFIG_AUTOMATIC="Automatic" +COM_SERMONDISTRIBUTOR_CONFIG_AUTO_DROPBOX_TIMER_DESCRIPTION="Set the timer in minutes for updating the Dropbox auto local listing of file links." +COM_SERMONDISTRIBUTOR_CONFIG_AUTO_DROPBOX_TIMER_LABEL="Auto Dropbox Timer" +COM_SERMONDISTRIBUTOR_CONFIG_AUTO_LINK_TYPE_DESCRIPTION="Set the method used to build download links. Used for the initial build of the sermons." +COM_SERMONDISTRIBUTOR_CONFIG_AUTO_LINK_TYPE_LABEL="Auto Download Link Option" +COM_SERMONDISTRIBUTOR_CONFIG_AUTO_LINK_UPDATE_METHOD_DESCRIPTION="Select the method we should use when updating the auto links." +COM_SERMONDISTRIBUTOR_CONFIG_AUTO_LINK_UPDATE_METHOD_LABEL="Auto Link Update Method" +COM_SERMONDISTRIBUTOR_CONFIG_AUTO_LOAD="Auto" +COM_SERMONDISTRIBUTOR_CONFIG_AVI=".avi" +COM_SERMONDISTRIBUTOR_CONFIG_BIG="Big" +COM_SERMONDISTRIBUTOR_CONFIG_BLUE="Blue" +COM_SERMONDISTRIBUTOR_CONFIG_BOX="Box" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES="Categories" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_DESC_DESCRIPTION="Set if description should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_DESC_LABEL="Show Description" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_DISPLAY_DESCRIPTION="Select the option for display of categories." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_DISPLAY_LABEL="Display" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_HITS_DESCRIPTION="Set if hits should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_HITS_LABEL="Show Hits" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_ICON_DESCRIPTION="Set if icon should be shown in grid display option." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_ICON_LABEL="Show Icon (grid)" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_LIST_STYLE_DESCRIPTION="Select the style to use for the list display option." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_LIST_STYLE_LABEL="List Style" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_SERMON_COUNT_DESCRIPTION="Set if sermon count should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_SERMON_COUNT_LABEL="Show Sermon Count" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_TABLE_COLOR_DESCRIPTION="Select the color to use for the table display option." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_TABLE_COLOR_LABEL="Table Color" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY="Category" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_BOX_CONTRAST_DESCRIPTION="Set if text should be contrast in box display option." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_BOX_CONTRAST_LABEL="Show Contrast Text" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DEFAULT_ICON_DESCRIPTION="Must be 358px x 358px" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DEFAULT_ICON_LABEL="Category Default Icon " +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DESC_DESCRIPTION="Set if description should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DESC_LABEL="Show Description" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DISPLAY_DESCRIPTION="Select the option for display of a category." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DISPLAY_LABEL="Display" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_HITS_DESCRIPTION="Set if hits should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_HITS_LABEL="Show Hits" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_ICON_DESCRIPTION="Set if icon should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_ICON_LABEL="Show Icon" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_LIST_STYLE_DESCRIPTION="Select the style to use for the list display option." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_LIST_STYLE_LABEL="List Style" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_MENU_DESCRIPTION="Select the menu item you would like your category view to be linked to." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_MENU_LABEL="Category Menu Item" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_REQUEST_ID_DESCRIPTION="select one of the following categories" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_REQUEST_ID_LABEL="Category" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DESC_DESCRIPTION="Set if sermons description should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DESC_LABEL="Show Sermons Description" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DISPLAY_DESCRIPTION="Select the option for display of sermons in the category layout." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DISPLAY_LABEL="Sermons Display" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DOWNLOADS_DESCRIPTION="Set if sermon downloads should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DOWNLOADS_LABEL="Show Sermon Downloads" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DOWNLOAD_COUNTER_DESCRIPTION="Set if sermons download counter should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DOWNLOAD_COUNTER_LABEL="Show Sermons Download Counter" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_HITS_DESCRIPTION="Set if sermon hits should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_HITS_LABEL="Show Sermon Hits" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_ICON_DESCRIPTION="Set if icon should be shown in grid display option for sermons." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_ICON_LABEL="Show Sermon Icon (grid)" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_LIST_STYLE_DESCRIPTION="Select the style to use for the sermons list display option." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_LIST_STYLE_LABEL="Sermons List Style" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_OPEN_DESCRIPTION="Set if sermon open button should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_OPEN_LABEL="Show Sermon Open" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_PREACHER_DESCRIPTION="Set if the preacher link should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_PREACHER_LABEL="Show Sermon Preacher" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_SERIES_DESCRIPTION="Set if the series link should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_SERIES_LABEL="Show Sermon Series" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_TABLE_COLOR_DESCRIPTION="Select the color to use for the sermons table display option." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_TABLE_COLOR_LABEL="Sermons Table Color" +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMON_COUNT_DESCRIPTION="Set if sermon count should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMON_COUNT_LABEL="Show Sermon Count" +COM_SERMONDISTRIBUTOR_CONFIG_CHECK_TIMER_DESC="Set the intervals for the auto checkin fuction of tables that checks out the items to an user." +COM_SERMONDISTRIBUTOR_CONFIG_CHECK_TIMER_LABEL="Check in timer" +COM_SERMONDISTRIBUTOR_CONFIG_CHECK_TIMER_OPTION_FIVE="Once a week" +COM_SERMONDISTRIBUTOR_CONFIG_CHECK_TIMER_OPTION_FOUR="Every second day" +COM_SERMONDISTRIBUTOR_CONFIG_CHECK_TIMER_OPTION_ONE="Every five hours" +COM_SERMONDISTRIBUTOR_CONFIG_CHECK_TIMER_OPTION_SIX="Never" +COM_SERMONDISTRIBUTOR_CONFIG_CHECK_TIMER_OPTION_THREE="Once a day" +COM_SERMONDISTRIBUTOR_CONFIG_CHECK_TIMER_OPTION_TWO="Every twelve hours" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_EMAIL_DESC="The email of this contributor." +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_EMAIL_LABEL="Contributor Email" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_FOUR="Contributor Four" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_LINK_DESC="The link to this contributor's website." +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_LINK_LABEL="Contributor Website" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_NAME_DESC="The name of this contributor." +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_NAME_LABEL="Contributor Name" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_ONE="Contributor One" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_SHOW_ALL="Both Front & Back-end" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_SHOW_BACK="Back-end" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_SHOW_DESC="Select where you want this contributor's details to show in the component." +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_SHOW_FRONT="Front-end" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_SHOW_LABEL="Show" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_SHOW_NONE="Hide" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_THREE="Contributor Three" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_TITLE_DESC="The job title that best describes the contributor's relationship to this component." +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_TITLE_LABEL="Contributor Job Title" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_TWO="Contributor Two" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_USE_DESC="How should we link to this contributor." +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_USE_EMAIL="Email" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_USE_LABEL="Use" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_USE_NONE="None" +COM_SERMONDISTRIBUTOR_CONFIG_CONTRIBUTOR_USE_WWW="Website" +COM_SERMONDISTRIBUTOR_CONFIG_CUSTOM="Custom" +COM_SERMONDISTRIBUTOR_CONFIG_DARK_BLUE="Dark Blue" +COM_SERMONDISTRIBUTOR_CONFIG_DIRECT="Direct" +COM_SERMONDISTRIBUTOR_CONFIG_DOC=".doc" +COM_SERMONDISTRIBUTOR_CONFIG_DOCX=".docx" +COM_SERMONDISTRIBUTOR_CONFIG_DONT_LOAD="Not" +COM_SERMONDISTRIBUTOR_CONFIG_DROPBOX="Dropbox" +COM_SERMONDISTRIBUTOR_CONFIG_DROPBOX_FILETYPES_DESCRIPTION="Select the file types you would like to use from Dropbox." +COM_SERMONDISTRIBUTOR_CONFIG_DROPBOX_FILETYPES_LABEL="Dropbox File Types" +COM_SERMONDISTRIBUTOR_CONFIG_ENCRYPTED="Encrypted" +COM_SERMONDISTRIBUTOR_CONFIG_FLAT_LOAD="Flat" +COM_SERMONDISTRIBUTOR_CONFIG_FORCE_LOAD="Force" +COM_SERMONDISTRIBUTOR_CONFIG_GIF=".gif" +COM_SERMONDISTRIBUTOR_CONFIG_GLOBAL_DESC="The Global Parameters" +COM_SERMONDISTRIBUTOR_CONFIG_GLOBAL_LABEL="Global" +COM_SERMONDISTRIBUTOR_CONFIG_GRADIANT_LOAD="Gradient" +COM_SERMONDISTRIBUTOR_CONFIG_GREEN="Green" +COM_SERMONDISTRIBUTOR_CONFIG_GRID="Grid" +COM_SERMONDISTRIBUTOR_CONFIG_JPEG=".jpeg" +COM_SERMONDISTRIBUTOR_CONFIG_JPG=".jpg" +COM_SERMONDISTRIBUTOR_CONFIG_LEGACY="Legacy" +COM_SERMONDISTRIBUTOR_CONFIG_LINES="Lines" +COM_SERMONDISTRIBUTOR_CONFIG_LINK_ENCRYPTION_DESCRIPTION="Add the key to use when download link option is set to encrypted." +COM_SERMONDISTRIBUTOR_CONFIG_LINK_ENCRYPTION_HINT="DBwAHPAqoFWZfDWZo6sd)E3cv2oMTG^r" +COM_SERMONDISTRIBUTOR_CONFIG_LINK_ENCRYPTION_LABEL="Download Link Encryption Key" +COM_SERMONDISTRIBUTOR_CONFIG_LIST="List" +COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_DESC_DESCRIPTION="Set if description should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_DESC_LABEL="Show Description" +COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_DISPLAY_DESCRIPTION="Select the option for display of series." +COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_DISPLAY_LABEL="Display" +COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_HITS_DESCRIPTION="Set if hits should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_HITS_LABEL="Show Hits" +COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_ICON_DESCRIPTION="Set if icon should be shown in grid display option." +COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_ICON_LABEL="Show Icon (grid)" +COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_LIST_STYLE_DESCRIPTION="Select the style to use for the list display option." +COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_LIST_STYLE_LABEL="List Style" +COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_SERMON_COUNT_DESCRIPTION="Set if sermon count should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_SERMON_COUNT_LABEL="Show Sermon Count" +COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_TABLE_COLOR_DESCRIPTION="Select the color to use for the table display option." +COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_TABLE_COLOR_LABEL="Table Color" +COM_SERMONDISTRIBUTOR_CONFIG_LOCALFOLDER_DESCRIPTION="Enter the full path to the local folder where your files are found." +COM_SERMONDISTRIBUTOR_CONFIG_LOCALFOLDER_HINT="/home/username/localfolder/" +COM_SERMONDISTRIBUTOR_CONFIG_LOCALFOLDER_LABEL="Local Folder Path (File Source)" +COM_SERMONDISTRIBUTOR_CONFIG_MANUAL="Manual" +COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXFOUR_DESCRIPTION="Enter the url of the main manual Dropbox folder to target, this will link the files." +COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXFOUR_HINT="https://www.dropbox.com/shared-link-from-dropbox-to-main-folder?dl=0" +COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXFOUR_LABEL="Dropbox Manual (Folder 4)" +COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXONE_DESCRIPTION="Enter the url of the main manual Dropbox folder to target, this will link the files." +COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXONE_HINT="https://www.dropbox.com/shared-link-from-dropbox-to-main-folder?dl=0" +COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXONE_LABEL="Dropbox Manual (Folder 1)" +COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXTHREE_DESCRIPTION="Enter the url of the main manual Dropbox folder to target, this will link the files." +COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXTHREE_HINT="https://www.dropbox.com/shared-link-from-dropbox-to-main-folder?dl=0" +COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXTHREE_LABEL="Dropbox Manual (Folder 3)" +COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXTWO_DESCRIPTION="Enter the url of the main manual Dropbox folder to target, this will link the files." +COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXTWO_HINT="https://www.dropbox.com/shared-link-from-dropbox-to-main-folder?dl=0" +COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXTWO_LABEL="Dropbox Manual (Folder 2)" +COM_SERMONDISTRIBUTOR_CONFIG_MANUAL_DROPBOX_TIMER_DESCRIPTION="Set the timer in minutes for updating the Dropbox manual local listing of file links." +COM_SERMONDISTRIBUTOR_CONFIG_MANUAL_DROPBOX_TIMER_LABEL="Manual Dropbox Timer" +COM_SERMONDISTRIBUTOR_CONFIG_MANUAL_LINK_UPDATE_METHOD_DESCRIPTION="Select the method we should use when updating the manual links" +COM_SERMONDISTRIBUTOR_CONFIG_MANUAL_LINK_UPDATE_METHOD_LABEL="Manual Link Update Method" +COM_SERMONDISTRIBUTOR_CONFIG_MFOURA=".m4a" +COM_SERMONDISTRIBUTOR_CONFIG_MFOURV=".m4v" +COM_SERMONDISTRIBUTOR_CONFIG_MOV=".mov" +COM_SERMONDISTRIBUTOR_CONFIG_MPFOUR=".mp4" +COM_SERMONDISTRIBUTOR_CONFIG_MPG=".mpg" +COM_SERMONDISTRIBUTOR_CONFIG_MPTHREE=".mp3" +COM_SERMONDISTRIBUTOR_CONFIG_NO="No" +COM_SERMONDISTRIBUTOR_CONFIG_NONE="None" +COM_SERMONDISTRIBUTOR_CONFIG_NOTE_AUTO_DROPBOX_DESCRIPTION="<ul> + <li>Create main/first auto folder in Dropbox. This will be where you create the folders with the preacher's name. Using the preacher's alias from the system as the folder name will insure no mismatch, if the preacher already exist on the system.</li> + <li>You can add files directly to the preacher folder if it is not linked to a series.</li> + <li>If you would like the sermon linked to a series, you simply create a folder inside the preacher's folder with the series' name, and place the sermon file inside that series' folder. Using the series' alias from the system as the folder name will insure no mismatch, if the series already exist on the system.</li> + <li>Adding other preachers to the same series will only require creating a folder inside that preacher's folder with the same series' name and placing his sermons inside that new folder. Using the series' alias from the system as the folder name will insure no mismatch, if the series already exist on the system.</li> + <li>The file name will be used as the sermon name.</li> + <li>To ensure that all downloads work well, we need to hold to the following file naming convention: + <ul> + <li>No spaces in the file name!!</li> + <li>No strange characters in the file name only A-z 0-9 underscore and hyphen.</li> + </ul> + </li> + <li>We use naming conventions to add tags, categories, a short description and combine files under one sermon, these conventions are as follow: + <ul> + <li>To combine files + <ul> + <li>Use a KEY name with TWO underscores before the actual name, example (34key521__the_file_name.mp3 & 34key521__another_file_of_the_same_sermon.pdf)</li> + <li>The KEY may only have alpha numeric characters (A-z 0-9).</li> + <li>You can combine as many files as you like under each sermon with the unique KEY.</li> + <li>There are two ways to set the sermon name with combined files: + <ul> + <li>All Uppercase. example (34key521__THE_FILE_NAME.mp3 & 34key521__another_file_of_the_same_sermon.pdf).</li> + <li>Longest file name if no all-uppercase file name is found. If two file names are the same length the first one is used.</li> + </ul> + </li> + <li>Uppercase option is the most trusted method since this will insure you get what you expected.</li> + </ul> + </li> + <li>To tag files + <ul> + <li>Directly after the file name add THREE underscores and then set the tags, example (the_file_name___tag1_tag-with2_tag-three.mp3)</li> + <li>You can add as many tags to a file as you like separated by one underscore and hyphen for spaces in a tag.</li> + <li>Combined files only need to have the tags added to one of the files. If one of the files has a tag that was not already found it will also be added to the sermon as a whole since the combined files are treated as one sermon.</li> + </ul> + </li> + <li>To add sermons to categories + <ul> + <li>Directly after the file name add FOUR underscores and then set the category name, example (the_file_name____Salvation_Messages.mp3)</li> + <li>You can add only one category per sermon. Combined files only need to have the category name added to one of the files.</li> + </ul> + </li> + <li>To add a short description + <ul> + <li>Directly after the file name add FIVE underscores and then set the description, example (the_file_name_____The_short_description_can_only_be_one_sentence.mp3)</li> + <li>You can not use any strange characters, only (A-z 0-9) and underscore for spacing.</li> + <li>You can add only one short description per sermon. Combined files only need to have the short description added to one of the files.</li> + </ul> + </li> + </ul> + </li> + <li>When you use all the naming conventions together they should follow the following order: + <ul> + <li>KEY before the file name with TWO underscores.</li> + <li>TAGS must be first after the file name with THREE underscores.</li> + <li>CATEGORY must be first after TAGS with FOUR underscores. IF no tags were set then it must be first after the FILE NAME with FOUR underscores.</li> + <li>SHORT DESCRIPTION must be first after CATEGORY with FIVE underscores. IF no category was set then it must be first after the TAGS with FIVE underscores. IF no tags were set then it must be first after the FILE NAME with FIVE underscores.</li> + </ul> + </li> + <li>Adding folders and sermons will automatically load them to your sermon distributor on your website, or update the already existing sermons with the new files.</li> + </ul></li> +</ul><b>The links that are required below should be the direct Dropbox shared links to the auto folder. They should not be the same folder, and not be inside one another. Always totally separate folders! Leave blank to deactivate.</b>" +COM_SERMONDISTRIBUTOR_CONFIG_NOTE_AUTO_DROPBOX_LABEL="Want to use Dropbox Auto links with your system, then you need to do the following:" +COM_SERMONDISTRIBUTOR_CONFIG_NOTE_DROPBOX_LABEL="Dropbox Integration Made Easy!" +COM_SERMONDISTRIBUTOR_CONFIG_NOTE_MANUAL_DROPBOX_DESCRIPTION="<ul> + <li>Create main/first manual folder in Dropbox. This will be where all files are placed. No sub folders, just one huge folder with all the files!</li> + <li>You will place the file on Dropbox in that main folder first.</li> + <li>Then the next step will be to come to Sermon Distributor and create the preacher and series if they do not already exist.</li> + <li>Please allow enough time (as set above +) for the local listing of files to update.</li> + <li>Then you should create the sermon the file belongs to and select 'Dropbox' as the source of your file.</li> + <li>Next select 'Manual' as the build option. This will load a drop-down with the file names in the Manual Folder on Dropbox. Should the new file not be seen give it a little more time to update the local listing of files.</li> + <li>If the List is very long, you can in the select box type the name of the file and it will shorten the list. Then select your file and continue with the setup of the sermon as usual.</li> + <li>To ensure that all downloads work well, we need to hold to the following file naming convention: + <ul> + <li>No spaces in the file name!!</li> + <li>No strange characters in the file name only A-z 0-9 underscore and hyphen.</li> + </ul> + </li> + </ul><b>The links that are required below should be the direct Dropbox shared links to the main manual folder. They should not be the same folder, and not be inside one another. Always totally separate folders! Leave blank to deactivate.</b>" +COM_SERMONDISTRIBUTOR_CONFIG_NOTE_MANUAL_DROPBOX_LABEL="Want to use Dropbox Manual links with your system, then you need to do the following:" +COM_SERMONDISTRIBUTOR_CONFIG_NOTE_UPDATE_AUTO_BUTTON_DROPBOX_DESCRIPTION="<div id='control-label-auto-update'>Manual Update Method</div><div id='controls-auto-update'><a class='btn btn-small btn-success' onclick='updateLocalLinks(2)' href='javascript:void(0)'>Update Listing Now!</a> <small>(auto listing)</small> <span class='autoTimer'></span> <span class='auto-dots loading-dots' style='display: none;'></span></div>" +COM_SERMONDISTRIBUTOR_CONFIG_NOTE_UPDATE_MANUAL_BUTTON_DROPBOX_DESCRIPTION="<div id='control-label-manual-update'>Manual Update Method</div><div id='controls-manual-update'><a class='btn btn-small btn-success' onclick='updateLocalLinks(1)' href='javascript:void(0)'>Update Listing Now!</a> <small>(manual listing)</small> <span class='manualTimer'></span> <span class='manual-dots loading-dots' style='display: none;'></span></div> +<script> +var checker = null; +var token = 0; +jQuery(document).ready(function() +{ + // house cleaning + buildButton('manual'); + buildButton('auto'); + checker = window.setInterval(function(){getProgress();}, 2000); + + // nice little dot trick :) + var x=0; + setInterval(function() { + var dots = ''; + x++; + for (var y=0; y < x%11; y++) { + dots+='.'; + } + jQuery('.loading-dots').text(dots); + } , 500); +}); +jQuery(document).ready( function($) { + +}); +jQuery('#component-form').on('change', '#jform_manual_link_update_method',function (e) +{ + e.preventDefault(); + var value = jQuery('#jform_manual_link_update_method input[type=\'radio\']:checked').val(); + updateButton(value,'.note_update_manual_button_dropbox','#jform_manual_dropbox_timer'); + +}); +jQuery('#component-form').on('change', '#jform_auto_link_update_method',function (e) +{ + e.preventDefault(); + var value = jQuery('#jform_auto_link_update_method input[type=\'radio\']:checked').val(); + updateButton(value,'.note_update_auto_button_dropbox','#jform_auto_dropbox_timer'); + +}); +function buildButton(type) +{ + var lable = jQuery('#control-label-'+type+'-update').html(); + var control = jQuery('#controls-'+type+'-update').html(); + // now remove button from page + jQuery('#control-label-'+type+'-update').remove(); + jQuery('#controls-'+type+'-update').remove(); + // now add to correct place + var div = jQuery('.note_update_'+type+'_button_dropbox').closest('.control-group'); + jQuery(div).find('.control-label').append(lable); + jQuery(div).find('.controls').append(control); + + var value = jQuery('#jform_'+type+'_link_update_method input[type=\'radio\']:checked').val(); + updateButton(value,'.note_update_'+type+'_button_dropbox','#jform_'+type+'_dropbox_timer'); +} +function updateButton(value,button,timer) +{ + if (1 == value) + { + jQuery(button).closest('.control-group').show(); + jQuery(timer).closest('.control-group').hide(); + } + else if (2 == value) + { + jQuery(button).closest('.control-group').hide(); + jQuery(timer).closest('.control-group').show(); + } +} +// to see if we should start checking progress +updateCounter = new Array(); +updateCounter[1] = 0; +updateCounter[2] = 0; +function getProgress() +{ + if (updateCounter[1] == 1) + { + // check progress + progress(1); + } + if (updateCounter[2] == 1) + { + // check progress + progress(2); + } +} +function progress(type) +{ + server_getProgress(type).done(function(result) { + if (result) + { + // set update timer + if (1 == type) + { + if (result == 100) + { + var color = 'style=\'color: #3c763d;\''; + var note = '<b>Update Completed:</b>'; + jQuery('.manual-dots').hide(); + updateCounter[type] = 0; + } + else + { + var color = 'style=\'color: #3C708F;\''; + var note = '<b>Update in Progress:</b>'; + jQuery('.manual-dots').show(); + } + // manualTimer + jQuery('.manualTimer').html(' <small '+color+'>'+note+' '+result+'%</small>'); + } + else if (2 == type) + { + if (result == 100) + { + var color = 'style=\'color: #3c763d;\''; + var note = '<b>Update Completed:</b>'; + jQuery('.auto-dots').hide(); + updateCounter[type] = 0; + } + else + { + var color = 'style=\'color: #3C708F;\''; + var note = '<b>Update in Progress:</b>'; + jQuery('.auto-dots').show(); + } + // autoTimer + jQuery('.autoTimer').html(' <small '+color+'>'+note+' '+result+'%</small>'); + } + } + else + { + updateCounter[type] = 0; + } + }); +} +function server_getProgress(type) +{ + var getUrl = 'index.php?option=com_sermondistributor&task=ajax.getUpdateProgress&format=json'; + if(type > 0 && token.length == 32){ + var request = 'token='+token+'&type='+type; + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'jsonp', + data: request, + jsonp: 'callback' + }); + +} +function updateLocalLinks(type) +{ + // get token from the form + jQuery('form :input').each(function(index, elm){ + if (elm.name.length == 32 && elm.type == 'hidden') + { + value = jQuery(elm).val(); + if (1 == value) + { + token = elm.name; + } + } + }); + // set update timer + if (1 == type) + { + var typeNote = 'Manual'; + var typenote = 'manual'; + } + else if (2 == type) + { + var typeNote = 'Auto'; + var typenote = 'auto'; + } + var message = ['<h3>'+typeNote+' Update Started.</h3><p>The update will continue to run in the background even if you close the page.</p><h4><span class=\''+typenote+'Timer\'></span> <span class=\''+typenote+'-dots loading-dots\'></span></h4>']; + Joomla.renderMessages({'info': message}); + // start progress checker + updateCounter[type] = 1; + // call the server + server_updateLocalLinks(type).done(function(result) { + if (result) + { + var message = ['<h3>Successfully Completed '+typeNote+' Update.</h3>']; + Joomla.renderMessages({'success': message}); + } + else + { + var message = ['<h3>The '+typenote+' update is unable to run, this could be bacause following reasonse:</h3><ul><li><b>That an update is already running.</b></li><li>That there is no Dropbox urls set below.</li><li>That the the urls set below are not valid dropbox shared urls.</li><li>That you did not set the needed Dropbox file types.</li><li>The some php methods needed to get the file names from Dropbox are being blocked, make sure that <b>allow_url_fopen</b> is set to <b>on</b> in your php.ini on this server.</li><li>The the system has encountered an error.</li></ul>']; + Joomla.renderMessages({'error': message}); + } + }); +} +function server_updateLocalLinks(type) +{ + var getUrl = 'index.php?option=com_sermondistributor&task=ajax.updateDropboxListing&format=json'; + if(type > 0 && token.length == 32){ + var request = 'token='+token+'&type='+type; + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'jsonp', + data: request, + jsonp: 'callback' + }); + +} +</script>" +COM_SERMONDISTRIBUTOR_CONFIG_ODT=".odt" +COM_SERMONDISTRIBUTOR_CONFIG_OGG=".ogg" +COM_SERMONDISTRIBUTOR_CONFIG_OGV=".ogv" +COM_SERMONDISTRIBUTOR_CONFIG_ONLY_EXTRA="Only Extra" +COM_SERMONDISTRIBUTOR_CONFIG_PANEL="Panel" +COM_SERMONDISTRIBUTOR_CONFIG_PDF=".pdf" +COM_SERMONDISTRIBUTOR_CONFIG_PLAIN="Plain" +COM_SERMONDISTRIBUTOR_CONFIG_PNG=".png" +COM_SERMONDISTRIBUTOR_CONFIG_PPS=".pps" +COM_SERMONDISTRIBUTOR_CONFIG_PPSX=".ppsx" +COM_SERMONDISTRIBUTOR_CONFIG_PPT=".ppt" +COM_SERMONDISTRIBUTOR_CONFIG_PPTX=".pptx" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER="Preacher" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS="Preachers" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_DESC_DESCRIPTION="Set if description should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_DESC_LABEL="Show Description" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_DISPLAY_DESCRIPTION="Select the option for display of preachers." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_DISPLAY_LABEL="Display" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_EMAIL_DESCRIPTION="Set if the email should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_EMAIL_LABEL="Show Email" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_HITS_DESCRIPTION="Set if hits should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_HITS_LABEL="Show Hits" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_ICON_DESCRIPTION="Set if icon should be shown in grid display option." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_ICON_LABEL="Show Icon (grid)" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_LIST_STYLE_DESCRIPTION="Select the style to use for the list display option." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_LIST_STYLE_LABEL="List Style" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_SERMON_COUNT_DESCRIPTION="Set if sermon count should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_SERMON_COUNT_LABEL="Show Sermon Count" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_TABLE_COLOR_DESCRIPTION="Select the color to use for the table display option." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_TABLE_COLOR_LABEL="Table Color" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_WEBSITE_DESCRIPTION="Set if the website link should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_WEBSITE_LABEL="Show Website" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_BOX_CONTRAST_DESCRIPTION="Set if text should be contrast in box display option." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_BOX_CONTRAST_LABEL="Show Contrast Text" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DEFAULT_ICON_DESCRIPTION="Must be 358px x 358px" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DEFAULT_ICON_LABEL="Preacher Default Icon " +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DESC_DESCRIPTION="Set if description should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DESC_LABEL="Show Description" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DISPLAY_DESCRIPTION="Select the option for display of a preacher." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DISPLAY_LABEL="Display" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_EMAIL_DESCRIPTION="Set if the email should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_EMAIL_LABEL="Show Email" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_HITS_DESCRIPTION="Set if hits should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_HITS_LABEL="Show Hits" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_ICON_DESCRIPTION="Set if icon should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_ICON_LABEL="Show Icon" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_LIST_STYLE_DESCRIPTION="Select the style to use for the list display option." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_LIST_STYLE_LABEL="List Style" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_MENU_DESCRIPTION="Select the menu item you would like your preacher view to be linked to." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_MENU_LABEL="Preacher Menu Item" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_REQUEST_ID_DESCRIPTION="Select a preacher." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_REQUEST_ID_LABEL="Preacher" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_CATEGORY_DESCRIPTION="Set if the category link should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_CATEGORY_LABEL="Show Sermons Category" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DESC_DESCRIPTION="Set if sermons description should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DESC_LABEL="Show Sermons Description" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DISPLAY_DESCRIPTION="Select the option for display of sermons in the preacher layout." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DISPLAY_LABEL="Sermons Display" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DOWNLOADS_DESCRIPTION="Set if sermon downloads should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DOWNLOADS_LABEL="Show Sermon Downloads" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DOWNLOAD_COUNTER_DESCRIPTION="Set if sermons download counter should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DOWNLOAD_COUNTER_LABEL="Show Sermons Download Counter" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_HITS_DESCRIPTION="Set if sermon hits should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_HITS_LABEL="Show Sermon Hits" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_ICON_DESCRIPTION="Set if icon should be shown in grid display option for sermons." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_ICON_LABEL="Show Sermon Icon (grid)" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_LIST_STYLE_DESCRIPTION="Select the style to use for the sermons list display option." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_LIST_STYLE_LABEL="Sermons List Style" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_OPEN_DESCRIPTION="Set if sermon open button should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_OPEN_LABEL="Show Sermon Open" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_SERIES_DESCRIPTION="Set if the series link should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_SERIES_LABEL="Show Sermon Series" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_TABLE_COLOR_DESCRIPTION="Select the color to use for the sermons table display option." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_TABLE_COLOR_LABEL="Sermons Table Color" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMON_COUNT_DESCRIPTION="Set if sermon count should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMON_COUNT_LABEL="Show Sermon Count" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_STATE_DESCRIPTION="Set the state in which preacher so be loaded at initial build." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_STATE_LABEL="Auto Preacher State" +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_WEBSITE_DESCRIPTION="Set if the website link should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_WEBSITE_LABEL="Show Website" +COM_SERMONDISTRIBUTOR_CONFIG_PUBLISHED="Published" +COM_SERMONDISTRIBUTOR_CONFIG_PURPLE="Purple" +COM_SERMONDISTRIBUTOR_CONFIG_RED="Red" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES="Series" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_BOX_CONTRAST_DESCRIPTION="Set if text should be contrast in box display option." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_BOX_CONTRAST_LABEL="Show Contrast Text" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DEFAULT_ICON_DESCRIPTION="Must be 358px x 358px" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DEFAULT_ICON_LABEL="Series Default Icon " +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DESC_DESCRIPTION="Set if description should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DESC_LABEL="Show Description" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DISPLAY_DESCRIPTION="Select the option for display of a series." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DISPLAY_LABEL="Display" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_HITS_DESCRIPTION="Set if hits should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_HITS_LABEL="Show Hits" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_ICON_DESCRIPTION="Set if icon should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_ICON_LABEL="Show Icon" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_LIST="Series List" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_LIST_STYLE_DESCRIPTION="Select the style to use for the list display option." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_LIST_STYLE_LABEL="List Style" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_MENU_DESCRIPTION="Select the menu item you would like your series view to be linked to." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_MENU_LABEL="Series Menu Item" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_REQUEST_ID_DESCRIPTION="Select a series." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_REQUEST_ID_LABEL="Series" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_CATEGORY_DESCRIPTION="Set if the category link should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_CATEGORY_LABEL="Show Sermons Category" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DESC_DESCRIPTION="Set if sermons description should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DESC_LABEL="Show Sermons Description" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DISPLAY_DESCRIPTION="Select the option for display of sermons in the series layout." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DISPLAY_LABEL="Sermons Display" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DOWNLOADS_DESCRIPTION="Set if sermon downloads should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DOWNLOADS_LABEL="Show Sermon Downloads" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DOWNLOAD_COUNTER_DESCRIPTION="Set if sermons download counter should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DOWNLOAD_COUNTER_LABEL="Show Sermons Download Counter" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_HITS_DESCRIPTION="Set if sermon hits should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_HITS_LABEL="Show Sermon Hits" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_ICON_DESCRIPTION="Set if icon should be shown in grid display option for sermons." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_ICON_LABEL="Show Sermon Icon (grid)" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_LIST_STYLE_DESCRIPTION="Select the style to use for the sermons list display option." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_LIST_STYLE_LABEL="Sermons List Style" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_OPEN_DESCRIPTION="Set if sermon open button should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_OPEN_LABEL="Show Sermon Open" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_PREACHER_DESCRIPTION="Set if the preacher link should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_PREACHER_LABEL="Show Sermon Preacher" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_TABLE_COLOR_DESCRIPTION="Select the color to use for the sermons table display option." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_TABLE_COLOR_LABEL="Sermons Table Color" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMON_COUNT_DESCRIPTION="Set if sermon count should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMON_COUNT_LABEL="Show Sermon Count" +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_STATE_DESCRIPTION="Set the state in which series so be loaded at initial build." +COM_SERMONDISTRIBUTOR_CONFIG_SERIES_STATE_LABEL="Auto Series State" +COM_SERMONDISTRIBUTOR_CONFIG_SERMON="Sermon" +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_BOX_CONTRAST_DESCRIPTION="Set if text should be contrast in box display option." +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_BOX_CONTRAST_LABEL="Show Contrast Text" +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_CATEGORY_DESCRIPTION="Set if the category link should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_CATEGORY_LABEL="Show Sermon Category" +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DEFAULT_ICON_DESCRIPTION="Must be 358px x 358px" +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DEFAULT_ICON_LABEL="Sermon Default Icon " +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DESC_DESCRIPTION="Set if sermon description should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DESC_LABEL="Show Sermon Description" +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DISPLAY_DESCRIPTION="Select the option for display of a sermon." +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DISPLAY_LABEL="Sermon Display" +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DOWNLOADS_DESCRIPTION="Set if sermon downloads should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DOWNLOADS_LABEL="Show Sermon Downloads" +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DOWNLOAD_COUNTER_DESCRIPTION="Set if sermon download counter should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DOWNLOAD_COUNTER_LABEL="Show Sermon Download Counter" +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_HITS_DESCRIPTION="Set if sermon hits should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_HITS_LABEL="Show Sermon Hits" +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_ICON_DESCRIPTION="Set if icon should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_ICON_LABEL="Show Sermon Icon" +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_LIST_STYLE_DESCRIPTION="Select the style to use for the sermon list display option." +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_LIST_STYLE_LABEL="Sermon List Style" +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_MENU_DESCRIPTION="Select the menu item you would like your sermon view to be linked to." +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_MENU_LABEL="Sermon Menu Item" +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_PREACHER_DESCRIPTION="Set if the preacher link should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_PREACHER_LABEL="Show Sermon Preacher" +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_SERIES_DESCRIPTION="Set if the series link should be shown." +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_SERIES_LABEL="Show Sermon Series" +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_STATE_DESCRIPTION="Set the state in which sermons so be loaded at initial build." +COM_SERMONDISTRIBUTOR_CONFIG_SERMON_STATE_LABEL="Auto Sermons State" +COM_SERMONDISTRIBUTOR_CONFIG_SMALL="Small" +COM_SERMONDISTRIBUTOR_CONFIG_SPACED="Spaced" +COM_SERMONDISTRIBUTOR_CONFIG_STRIPED="Striped" +COM_SERMONDISTRIBUTOR_CONFIG_TABLE="Table" +COM_SERMONDISTRIBUTOR_CONFIG_THREEGP=".3gp" +COM_SERMONDISTRIBUTOR_CONFIG_THREEGTWO=".3g2" +COM_SERMONDISTRIBUTOR_CONFIG_TRASHED="Trashed" +COM_SERMONDISTRIBUTOR_CONFIG_UIKIT="Uikit" +COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_DESC="<b>The Parameters for the uikit are set here.</b><br />Uikit is a lightweight and modular front-end framework +for developing fast and powerful web interfaces. For more info visit <a href="http://getuikit.com/" >http://getuikit.com/</a>" +COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_LABEL="Uikit Settings" +COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_LOAD_DESC="Set the uikit loading option." +COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_LOAD_LABEL="Loading Options" +COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_MIN_DESC="Should the minified version of uikit files be loaded?" +COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_MIN_LABEL="Load Minified" +COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_STYLE_DESC="Set the css style that should be used." +COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_STYLE_LABEL="css Style" +COM_SERMONDISTRIBUTOR_CONFIG_UNPUBLISHED="Unpublished" +COM_SERMONDISTRIBUTOR_CONFIG_WAV=".wav" +COM_SERMONDISTRIBUTOR_CONFIG_WMV=".wmv" +COM_SERMONDISTRIBUTOR_CONFIG_XLS=".xls" +COM_SERMONDISTRIBUTOR_CONFIG_XLSX=".xlsx" +COM_SERMONDISTRIBUTOR_CONFIG_YES="Yes" +COM_SERMONDISTRIBUTOR_CONFIG_ZIP=".zip" +COM_SERMONDISTRIBUTOR_CONTRIBUTOR="Contributor" +COM_SERMONDISTRIBUTOR_CONTRIBUTORS="Contributors" +COM_SERMONDISTRIBUTOR_DASH="Dashboard" +COM_SERMONDISTRIBUTOR_DASHBOARD="Sermon Distributor Dashboard" +COM_SERMONDISTRIBUTOR_DASHBOARD_HELP_DOCUMENTS="Help Documents<br /><br />" +COM_SERMONDISTRIBUTOR_DASHBOARD_PREACHERS="Preachers<br /><br />" +COM_SERMONDISTRIBUTOR_DASHBOARD_PREACHER_ADD="Add&nbsp;Preacher<br /><br />" +COM_SERMONDISTRIBUTOR_DASHBOARD_SERIES_ADD="Add&nbsp;Series<br /><br />" +COM_SERMONDISTRIBUTOR_DASHBOARD_SERIES_LIST="Series List<br /><br />" +COM_SERMONDISTRIBUTOR_DASHBOARD_SERMONS="Sermons<br /><br />" +COM_SERMONDISTRIBUTOR_DASHBOARD_SERMONS_CATID="Catagory &nbsp;For<br />Sermons" +COM_SERMONDISTRIBUTOR_DASHBOARD_SERMON_ADD="Add&nbsp;Sermon<br /><br />" +COM_SERMONDISTRIBUTOR_DASHBOARD_STATISTICS="Statistics<br /><br />" +COM_SERMONDISTRIBUTOR_DATE="Date" +COM_SERMONDISTRIBUTOR_EDIT_CREATED_BY="Edit Created By" +COM_SERMONDISTRIBUTOR_EDIT_CREATED_BY_DESC=" Allows users in this group to edit created by." +COM_SERMONDISTRIBUTOR_EDIT_CREATED_DATE="Edit Created Date" +COM_SERMONDISTRIBUTOR_EDIT_CREATED_DATE_DESC=" Allows users in this group to edit created date." +COM_SERMONDISTRIBUTOR_EDIT_VERSIONS="Edit Version" +COM_SERMONDISTRIBUTOR_EDIT_VERSIONS_DESC=" Allows users in this group to edit versions." +COM_SERMONDISTRIBUTOR_EXPORT_DATA="Export Data" +COM_SERMONDISTRIBUTOR_EXPORT_DATA_DESC=" Allows users in this group to export data." +COM_SERMONDISTRIBUTOR_EXPORT_FAILED="Export Failed" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT="Help Document" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS="Help Documents" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_ACCESS="Help Documents Access" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_ACCESS_DESC="Allows the users in this group to access access help documents" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_BATCH_OPTIONS="Batch process the selected Help Documents" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_BATCH_TIP="All changes will be applied to all selected Help Documents" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_BATCH_USE="Help Documents Batch Use" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch help documents" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_CREATE="Help Documents Create" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_CREATE_DESC="Allows the users in this group to create create help documents" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_DASHBOARD_LIST="Help Documents Dashboard List" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the help document" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_DELETE="Help Documents Delete" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_DELETE_DESC="Allows the users in this group to delete delete help documents" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT="Help Documents Edit" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_DESC="Allows the users in this group to edit the help document" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_OWN="Help Documents Edit Own" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_OWN_DESC="Allows the users in this group to edit edit own help documents created by them" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_STATE="Help Documents Edit State" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_STATE_DESC="Allows the users in this group to update the state of the help document" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_VERSION="Help Documents Edit Version" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version help documents" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EXPORT="Help Documents Export" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EXPORT_DESC="Allows the users in this group to export export help documents" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_IMPORT="Help Documents Import" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_IMPORT_DESC="Allows the users in this group to import import help documents" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_ARCHIVED="%s Help Documents archived." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_ARCHIVED_1="%s Help Document archived." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_CHECKED_IN_0="No Help Document successfully checked in." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_CHECKED_IN_1="%d Help Document successfully checked in." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_CHECKED_IN_MORE="%d Help Documents successfully checked in." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_DELETED="%s Help Documents deleted." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_DELETED_1="%s Help Document deleted." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_FEATURED="%s Help Documents featured." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_FEATURED_1="%s Help Document featured." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_PUBLISHED="%s Help Documents published." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_PUBLISHED_1="%s Help Document published." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_TRASHED="%s Help Documents trashed." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_TRASHED_1="%s Help Document trashed." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_UNFEATURED="%s Help Documents unfeatured." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_UNFEATURED_1="%s Help Document unfeatured." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_UNPUBLISHED="%s Help Documents unpublished." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_N_ITEMS_UNPUBLISHED_1="%s Help Document unpublished." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_SUBMENU="Help Documents Submenu" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to update the submenu of the help document" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN="Admin" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN_VIEW="Admin View" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN_VIEW_DESCRIPTION="Select the view being targeted" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN_VIEW_LABEL="Admin Views" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ALIAS="Alias" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ALIAS_HINT="Auto-generated from name" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ALL="All" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ARTICLE="Article" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ARTICLE_LABEL="Article" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CONTENT="Content" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CONTENT_LABEL="Content" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CREATED_BY_DESC="The user that created the Help Document." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CREATED_BY_LABEL="Created by" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CREATED_DATE_DESC="The date Help Document was created." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CREATED_DATE_LABEL="Created date" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_DETAILS="Details" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_EDIT="Editing the Help Document" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ERROR_UNIQUE_ALIAS="Another Help Document has the same alias." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_GROUPS="Groups" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_GROUPS_DESCRIPTION="Select a group/s" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_GROUPS_LABEL="Group/s" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ID="Id" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_JOOMLA_ARTICLE="Joomla Article" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_LOCATION="Location" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_LOCATION_DESCRIPTION="Select the help target location." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_LOCATION_LABEL="Location" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_NEW="A New Help Document" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_NOT_REQUIRED="Not Required" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ORDERING_LABEL="Ordering" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_PERMISSION="Permissions" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_PUBLISHING="Publishing" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Help Document to customise the alias." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SELECT_AN_OPTION="Select an option" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE="Site" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE_VIEW="Site View" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE_VIEW_DESCRIPTION="Select the view being targeted" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE_VIEW_LABEL="Site Views" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SOME="Some" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_STATUS="Status" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TARGET="Target" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TARGET_DESCRIPTION="Select the target option in relation to groups." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TARGET_LABEL="Target Groups" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TEXT="Text" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TITLE="Title" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TITLE_DESCRIPTION="Enter Title Here" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TITLE_HINT="Title Here" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TITLE_LABEL="Title" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TYPE="Type" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TYPE_DESCRIPTION="Select the help type." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TYPE_LABEL="Type" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL="Url" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL_DESCRIPTION="Enter url" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL_HINT="http://www.example.com" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL_LABEL="URL" +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_VERSION_DESC="A count of the number of times this Help Document has been revised." +COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_VERSION_LABEL="Revision" +COM_SERMONDISTRIBUTOR_HELP_MANAGER="Help" +COM_SERMONDISTRIBUTOR_IMPORT_CONTINUE="Continue" +COM_SERMONDISTRIBUTOR_IMPORT_DATA="Import Data" +COM_SERMONDISTRIBUTOR_IMPORT_DATA_DESC=" Allows users in this group to import data." +COM_SERMONDISTRIBUTOR_IMPORT_ERROR="Import error." +COM_SERMONDISTRIBUTOR_IMPORT_FAILED="Import Failed" +COM_SERMONDISTRIBUTOR_IMPORT_FILE_COLUMNS="File Columns" +COM_SERMONDISTRIBUTOR_IMPORT_FORMATS_ACCEPTED="formats accepted" +COM_SERMONDISTRIBUTOR_IMPORT_FROM_DIRECTORY="Directory" +COM_SERMONDISTRIBUTOR_IMPORT_FROM_UPLOAD="Upload" +COM_SERMONDISTRIBUTOR_IMPORT_FROM_URL="URL" +COM_SERMONDISTRIBUTOR_IMPORT_GET_BOTTON="Get File" +COM_SERMONDISTRIBUTOR_IMPORT_IGNORE_COLUMN="-- Ignore This Column --" +COM_SERMONDISTRIBUTOR_IMPORT_LINK_FILE_TO_TABLE_COLUMNS="Link File to Table Columns" +COM_SERMONDISTRIBUTOR_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE="Does not have a valid file type." +COM_SERMONDISTRIBUTOR_IMPORT_MSG_ENTER_A_URL="Please enter a url." +COM_SERMONDISTRIBUTOR_IMPORT_MSG_INVALID_URL="Invalid url." +COM_SERMONDISTRIBUTOR_IMPORT_MSG_NO_FILE_SELECTED="No import file selected." +COM_SERMONDISTRIBUTOR_IMPORT_MSG_PATH_DOES_NOT_HAVE_A_VALID_PACKAGE="Path does not have a valid file." +COM_SERMONDISTRIBUTOR_IMPORT_MSG_PLEASE_ENTER_A_PACKAGE_DIRECTORY="Please enter the file directory." +COM_SERMONDISTRIBUTOR_IMPORT_MSG_PLEASE_SELECT_ALL_COLUMNS="Please link all columns." +COM_SERMONDISTRIBUTOR_IMPORT_MSG_PLEASE_SELECT_A_DIRECTORY="Please enter the file directory." +COM_SERMONDISTRIBUTOR_IMPORT_MSG_PLEASE_SELECT_A_FILE="Please select a file to import." +COM_SERMONDISTRIBUTOR_IMPORT_MSG_WARNIMPORTFILE="Warning, import file error." +COM_SERMONDISTRIBUTOR_IMPORT_MSG_WARNIMPORTUPLOADERROR="Warning, import upload error." +COM_SERMONDISTRIBUTOR_IMPORT_NO_IMPORT_TYPE_FOUND="Import type not found." +COM_SERMONDISTRIBUTOR_IMPORT_PLEASE_SELECT_COLUMN="-- Please Select Column --" +COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE="Select File" +COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_DIRECTORY="Set the path to file" +COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_HELP_DOCUMENTS="Select the file to import data to help_documents." +COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_PREACHERS="Select the file to import data to preachers." +COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_SERIES_LIST="Select the file to import data to series_list." +COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_SERMONS="Select the file to import data to sermons." +COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_STATISTICS="Select the file to import data to statistics." +COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_URL="Enter file URL" +COM_SERMONDISTRIBUTOR_IMPORT_SUCCESS="Great! Import successful." +COM_SERMONDISTRIBUTOR_IMPORT_TABLE_COLUMNS="Table Columns" +COM_SERMONDISTRIBUTOR_IMPORT_TITLE="Data Importer" +COM_SERMONDISTRIBUTOR_IMPORT_UNABLE_TO_FIND_IMPORT_PACKAGE="Package to import not found." +COM_SERMONDISTRIBUTOR_IMPORT_UPDATE_DATA="Import Data" +COM_SERMONDISTRIBUTOR_IMPORT_UPLOAD_BOTTON="Upload File" +COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_ACCESS="- Keep Original Access -" +COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_CATEGORY="- Keep Original Category -" +COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_STATE="- Keep Original State -" +COM_SERMONDISTRIBUTOR_LICENSE="License" +COM_SERMONDISTRIBUTOR_NEW="New" +COM_SERMONDISTRIBUTOR_NOT_FOUND_OR_ACCESS_DENIED="Not found, or access denied." +COM_SERMONDISTRIBUTOR_NO_ACCESS_GRANTED="No Access Granted!" +COM_SERMONDISTRIBUTOR_PREACHER="Preacher" +COM_SERMONDISTRIBUTOR_PREACHERS="Preachers" +COM_SERMONDISTRIBUTOR_PREACHERS_ACCESS="Preachers Access" +COM_SERMONDISTRIBUTOR_PREACHERS_ACCESS_DESC="Allows the users in this group to access access preachers" +COM_SERMONDISTRIBUTOR_PREACHERS_ACCESS_SITE="Preachers (Site) Access" +COM_SERMONDISTRIBUTOR_PREACHERS_ACCESS_SITE_DESC=" Allows the users in this group to access site preachers." +COM_SERMONDISTRIBUTOR_PREACHERS_BATCH_OPTIONS="Batch process the selected Preachers" +COM_SERMONDISTRIBUTOR_PREACHERS_BATCH_TIP="All changes will be applied to all selected Preachers" +COM_SERMONDISTRIBUTOR_PREACHERS_BATCH_USE="Preachers Batch Use" +COM_SERMONDISTRIBUTOR_PREACHERS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch preachers" +COM_SERMONDISTRIBUTOR_PREACHERS_CREATE="Preachers Create" +COM_SERMONDISTRIBUTOR_PREACHERS_CREATE_DESC="Allows the users in this group to create create preachers" +COM_SERMONDISTRIBUTOR_PREACHERS_DASHBOARD_ADD="Preachers Dashboard Add" +COM_SERMONDISTRIBUTOR_PREACHERS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the preacher" +COM_SERMONDISTRIBUTOR_PREACHERS_DASHBOARD_LIST="Preachers Dashboard List" +COM_SERMONDISTRIBUTOR_PREACHERS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the preacher" +COM_SERMONDISTRIBUTOR_PREACHERS_DELETE="Preachers Delete" +COM_SERMONDISTRIBUTOR_PREACHERS_DELETE_DESC="Allows the users in this group to delete delete preachers" +COM_SERMONDISTRIBUTOR_PREACHERS_EDIT="Preachers Edit" +COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_CREATED_BY="Preachers Edit Created By" +COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by preachers" +COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_CREATED_DATE="Preachers Edit Created Date" +COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created preachers" +COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_DESC="Allows the users in this group to edit the preacher" +COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_OWN="Preachers Edit Own" +COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_OWN_DESC="Allows the users in this group to edit edit own preachers created by them" +COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_STATE="Preachers Edit State" +COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_STATE_DESC="Allows the users in this group to update the state of the preacher" +COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_VERSION="Preachers Edit Version" +COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version preachers" +COM_SERMONDISTRIBUTOR_PREACHERS_EXPORT="Preachers Export" +COM_SERMONDISTRIBUTOR_PREACHERS_EXPORT_DESC="Allows the users in this group to export export preachers" +COM_SERMONDISTRIBUTOR_PREACHERS_IMPORT="Preachers Import" +COM_SERMONDISTRIBUTOR_PREACHERS_IMPORT_DESC="Allows the users in this group to import import preachers" +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_ARCHIVED="%s Preachers archived." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_ARCHIVED_1="%s Preacher archived." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_CHECKED_IN_0="No Preacher successfully checked in." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_CHECKED_IN_1="%d Preacher successfully checked in." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_CHECKED_IN_MORE="%d Preachers successfully checked in." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_DELETED="%s Preachers deleted." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_DELETED_1="%s Preacher deleted." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_FEATURED="%s Preachers featured." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_FEATURED_1="%s Preacher featured." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_PUBLISHED="%s Preachers published." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_PUBLISHED_1="%s Preacher published." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_TRASHED="%s Preachers trashed." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_TRASHED_1="%s Preacher trashed." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_UNFEATURED="%s Preachers unfeatured." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_UNFEATURED_1="%s Preacher unfeatured." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_UNPUBLISHED="%s Preachers unpublished." +COM_SERMONDISTRIBUTOR_PREACHERS_N_ITEMS_UNPUBLISHED_1="%s Preacher unpublished." +COM_SERMONDISTRIBUTOR_PREACHERS_SUBMENU="Preachers Submenu" +COM_SERMONDISTRIBUTOR_PREACHERS_SUBMENU_DESC="Allows the users in this group to update the submenu of the preacher" +COM_SERMONDISTRIBUTOR_PREACHER_ACCESS_SITE="Preacher (Site) Access" +COM_SERMONDISTRIBUTOR_PREACHER_ACCESS_SITE_DESC=" Allows the users in this group to access site preacher." +COM_SERMONDISTRIBUTOR_PREACHER_ALIAS="Alias" +COM_SERMONDISTRIBUTOR_PREACHER_ALIAS_HINT="Auto-generated from name" +COM_SERMONDISTRIBUTOR_PREACHER_CREATED_BY_DESC="The user that created the Preacher." +COM_SERMONDISTRIBUTOR_PREACHER_CREATED_BY_LABEL="Created by" +COM_SERMONDISTRIBUTOR_PREACHER_CREATED_DATE_DESC="The date Preacher was created." +COM_SERMONDISTRIBUTOR_PREACHER_CREATED_DATE_LABEL="Created date" +COM_SERMONDISTRIBUTOR_PREACHER_DESCRIPTION="Description" +COM_SERMONDISTRIBUTOR_PREACHER_DESCRIPTION_LABEL="Description" +COM_SERMONDISTRIBUTOR_PREACHER_DETAILS="Details" +COM_SERMONDISTRIBUTOR_PREACHER_EDIT="Editing the Preacher" +COM_SERMONDISTRIBUTOR_PREACHER_EMAIL="Email" +COM_SERMONDISTRIBUTOR_PREACHER_EMAIL_DESCRIPTION="Enter Email" +COM_SERMONDISTRIBUTOR_PREACHER_EMAIL_HINT="demo@example.com" +COM_SERMONDISTRIBUTOR_PREACHER_EMAIL_LABEL="Email" +COM_SERMONDISTRIBUTOR_PREACHER_ERROR_UNIQUE_ALIAS="Another Preacher has the same alias." +COM_SERMONDISTRIBUTOR_PREACHER_ICON="Icon" +COM_SERMONDISTRIBUTOR_PREACHER_ICON_DESCRIPTION="Must be 358px x 358px" +COM_SERMONDISTRIBUTOR_PREACHER_ICON_LABEL="Icon" +COM_SERMONDISTRIBUTOR_PREACHER_ID="Id" +COM_SERMONDISTRIBUTOR_PREACHER_NAME="Name" +COM_SERMONDISTRIBUTOR_PREACHER_NAME_DESCRIPTION="Enter Name Here" +COM_SERMONDISTRIBUTOR_PREACHER_NAME_HINT="Name Here" +COM_SERMONDISTRIBUTOR_PREACHER_NAME_LABEL="Name" +COM_SERMONDISTRIBUTOR_PREACHER_NEW="A New Preacher" +COM_SERMONDISTRIBUTOR_PREACHER_ORDERING_LABEL="Ordering" +COM_SERMONDISTRIBUTOR_PREACHER_PERMISSION="Permissions" +COM_SERMONDISTRIBUTOR_PREACHER_PUBLISHING="Publishing" +COM_SERMONDISTRIBUTOR_PREACHER_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Preacher to customise the alias." +COM_SERMONDISTRIBUTOR_PREACHER_SERMONS="Sermons" +COM_SERMONDISTRIBUTOR_PREACHER_STATUS="Status" +COM_SERMONDISTRIBUTOR_PREACHER_VERSION_DESC="A count of the number of times this Preacher has been revised." +COM_SERMONDISTRIBUTOR_PREACHER_VERSION_LABEL="Revision" +COM_SERMONDISTRIBUTOR_PREACHER_WEBSITE="Website" +COM_SERMONDISTRIBUTOR_PREACHER_WEBSITE_DESCRIPTION="Enter website address" +COM_SERMONDISTRIBUTOR_PREACHER_WEBSITE_HINT="http://www.example.com" +COM_SERMONDISTRIBUTOR_PREACHER_WEBSITE_LABEL="Website" +COM_SERMONDISTRIBUTOR_SAVE_SUCCESS="Great! Item successfully saved." +COM_SERMONDISTRIBUTOR_SAVE_WARNING="The value already existed so please select another." +COM_SERMONDISTRIBUTOR_SERIES="Series" +COM_SERMONDISTRIBUTOR_SERIES_ACCESS_SITE="Series (Site) Access" +COM_SERMONDISTRIBUTOR_SERIES_ACCESS_SITE_DESC=" Allows the users in this group to access site series." +COM_SERMONDISTRIBUTOR_SERIES_ALIAS="Alias" +COM_SERMONDISTRIBUTOR_SERIES_ALIAS_HINT="Auto-generated from name" +COM_SERMONDISTRIBUTOR_SERIES_CREATED_BY_DESC="The user that created the Series." +COM_SERMONDISTRIBUTOR_SERIES_CREATED_BY_LABEL="Created by" +COM_SERMONDISTRIBUTOR_SERIES_CREATED_DATE_DESC="The date Series was created." +COM_SERMONDISTRIBUTOR_SERIES_CREATED_DATE_LABEL="Created date" +COM_SERMONDISTRIBUTOR_SERIES_DESCRIPTION="Description" +COM_SERMONDISTRIBUTOR_SERIES_DESCRIPTION_LABEL="Description" +COM_SERMONDISTRIBUTOR_SERIES_DETAILS="Details" +COM_SERMONDISTRIBUTOR_SERIES_EDIT="Editing the Series" +COM_SERMONDISTRIBUTOR_SERIES_ERROR_UNIQUE_ALIAS="Another Series has the same alias." +COM_SERMONDISTRIBUTOR_SERIES_ICON="Icon" +COM_SERMONDISTRIBUTOR_SERIES_ICON_DESCRIPTION="Must be 358px x 358px" +COM_SERMONDISTRIBUTOR_SERIES_ICON_LABEL="Icon" +COM_SERMONDISTRIBUTOR_SERIES_ID="Id" +COM_SERMONDISTRIBUTOR_SERIES_LIST="Series List" +COM_SERMONDISTRIBUTOR_SERIES_LIST_ACCESS="Series List Access" +COM_SERMONDISTRIBUTOR_SERIES_LIST_ACCESS_DESC="Allows the users in this group to access access series list" +COM_SERMONDISTRIBUTOR_SERIES_LIST_ACCESS_SITE="Series List (Site) Access" +COM_SERMONDISTRIBUTOR_SERIES_LIST_ACCESS_SITE_DESC=" Allows the users in this group to access site series list." +COM_SERMONDISTRIBUTOR_SERIES_LIST_BATCH_OPTIONS="Batch process the selected Series List" +COM_SERMONDISTRIBUTOR_SERIES_LIST_BATCH_TIP="All changes will be applied to all selected Series List" +COM_SERMONDISTRIBUTOR_SERIES_LIST_BATCH_USE="Series List Batch Use" +COM_SERMONDISTRIBUTOR_SERIES_LIST_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch series list" +COM_SERMONDISTRIBUTOR_SERIES_LIST_CREATE="Series List Create" +COM_SERMONDISTRIBUTOR_SERIES_LIST_CREATE_DESC="Allows the users in this group to create create series list" +COM_SERMONDISTRIBUTOR_SERIES_LIST_DASHBOARD_ADD="Series List Dashboard Add" +COM_SERMONDISTRIBUTOR_SERIES_LIST_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the series" +COM_SERMONDISTRIBUTOR_SERIES_LIST_DASHBOARD_LIST="Series List Dashboard List" +COM_SERMONDISTRIBUTOR_SERIES_LIST_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the series" +COM_SERMONDISTRIBUTOR_SERIES_LIST_DELETE="Series List Delete" +COM_SERMONDISTRIBUTOR_SERIES_LIST_DELETE_DESC="Allows the users in this group to delete delete series list" +COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT="Series List Edit" +COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_CREATED_BY="Series List Edit Created By" +COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by series list" +COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_CREATED_DATE="Series List Edit Created Date" +COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created series list" +COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_DESC="Allows the users in this group to edit the series" +COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_OWN="Series List Edit Own" +COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_OWN_DESC="Allows the users in this group to edit edit own series list created by them" +COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_STATE="Series List Edit State" +COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_STATE_DESC="Allows the users in this group to update the state of the series" +COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_VERSION="Series List Edit Version" +COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_VERSION_DESC="Allows users in this group to edit versions of version series list" +COM_SERMONDISTRIBUTOR_SERIES_LIST_EXPORT="Series List Export" +COM_SERMONDISTRIBUTOR_SERIES_LIST_EXPORT_DESC="Allows the users in this group to export export series list" +COM_SERMONDISTRIBUTOR_SERIES_LIST_IMPORT="Series List Import" +COM_SERMONDISTRIBUTOR_SERIES_LIST_IMPORT_DESC="Allows the users in this group to import import series list" +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_ARCHIVED="%s Series List archived." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_ARCHIVED_1="%s Series archived." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_CHECKED_IN_0="No Series successfully checked in." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_CHECKED_IN_1="%d Series successfully checked in." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_CHECKED_IN_MORE="%d Series List successfully checked in." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_DELETED="%s Series List deleted." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_DELETED_1="%s Series deleted." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_FEATURED="%s Series List featured." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_FEATURED_1="%s Series featured." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_PUBLISHED="%s Series List published." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_PUBLISHED_1="%s Series published." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_TRASHED="%s Series List trashed." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_TRASHED_1="%s Series trashed." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_UNFEATURED="%s Series List unfeatured." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_UNFEATURED_1="%s Series unfeatured." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_UNPUBLISHED="%s Series List unpublished." +COM_SERMONDISTRIBUTOR_SERIES_LIST_N_ITEMS_UNPUBLISHED_1="%s Series unpublished." +COM_SERMONDISTRIBUTOR_SERIES_LIST_SUBMENU="Series List Submenu" +COM_SERMONDISTRIBUTOR_SERIES_LIST_SUBMENU_DESC="Allows the users in this group to update the submenu of the series" +COM_SERMONDISTRIBUTOR_SERIES_NAME="Name" +COM_SERMONDISTRIBUTOR_SERIES_NAME_DESCRIPTION="Enter Name Here" +COM_SERMONDISTRIBUTOR_SERIES_NAME_HINT="Name Here" +COM_SERMONDISTRIBUTOR_SERIES_NAME_LABEL="Name" +COM_SERMONDISTRIBUTOR_SERIES_NEW="A New Series" +COM_SERMONDISTRIBUTOR_SERIES_ORDERING_LABEL="Ordering" +COM_SERMONDISTRIBUTOR_SERIES_PERMISSION="Permissions" +COM_SERMONDISTRIBUTOR_SERIES_PUBLISHING="Publishing" +COM_SERMONDISTRIBUTOR_SERIES_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Series to customise the alias." +COM_SERMONDISTRIBUTOR_SERIES_SCRIPTURE="Scripture" +COM_SERMONDISTRIBUTOR_SERIES_SCRIPTURE_DESCRIPTION="Add scripture reference to this sermon, use comma separation for multiply references." +COM_SERMONDISTRIBUTOR_SERIES_SCRIPTURE_HINT="1 John 3:16, Psalm 1, James 1:1-5" +COM_SERMONDISTRIBUTOR_SERIES_SCRIPTURE_LABEL="Scripture" +COM_SERMONDISTRIBUTOR_SERIES_SERMONS="Sermons" +COM_SERMONDISTRIBUTOR_SERIES_STATUS="Status" +COM_SERMONDISTRIBUTOR_SERIES_VERSION_DESC="A count of the number of times this Series has been revised." +COM_SERMONDISTRIBUTOR_SERIES_VERSION_LABEL="Revision" +COM_SERMONDISTRIBUTOR_SERMON="Sermon" +COM_SERMONDISTRIBUTOR_SERMONS="Sermons" +COM_SERMONDISTRIBUTOR_SERMONS_ACCESS="Sermons Access" +COM_SERMONDISTRIBUTOR_SERMONS_ACCESS_DESC="Allows the users in this group to access access sermons" +COM_SERMONDISTRIBUTOR_SERMONS_BATCH_OPTIONS="Batch process the selected Sermons" +COM_SERMONDISTRIBUTOR_SERMONS_BATCH_TIP="All changes will be applied to all selected Sermons" +COM_SERMONDISTRIBUTOR_SERMONS_BATCH_USE="Sermons Batch Use" +COM_SERMONDISTRIBUTOR_SERMONS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch sermons" +COM_SERMONDISTRIBUTOR_SERMONS_CREATE="Sermons Create" +COM_SERMONDISTRIBUTOR_SERMONS_CREATE_DESC="Allows the users in this group to create create sermons" +COM_SERMONDISTRIBUTOR_SERMONS_DASHBOARD_ADD="Sermons Dashboard Add" +COM_SERMONDISTRIBUTOR_SERMONS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the sermon" +COM_SERMONDISTRIBUTOR_SERMONS_DASHBOARD_LIST="Sermons Dashboard List" +COM_SERMONDISTRIBUTOR_SERMONS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the sermon" +COM_SERMONDISTRIBUTOR_SERMONS_DELETE="Sermons Delete" +COM_SERMONDISTRIBUTOR_SERMONS_DELETE_DESC="Allows the users in this group to delete delete sermons" +COM_SERMONDISTRIBUTOR_SERMONS_EDIT="Sermons Edit" +COM_SERMONDISTRIBUTOR_SERMONS_EDIT_CREATED_BY="Sermons Edit Created By" +COM_SERMONDISTRIBUTOR_SERMONS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by sermons" +COM_SERMONDISTRIBUTOR_SERMONS_EDIT_CREATED_DATE="Sermons Edit Created Date" +COM_SERMONDISTRIBUTOR_SERMONS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created sermons" +COM_SERMONDISTRIBUTOR_SERMONS_EDIT_DESC="Allows the users in this group to edit the sermon" +COM_SERMONDISTRIBUTOR_SERMONS_EDIT_OWN="Sermons Edit Own" +COM_SERMONDISTRIBUTOR_SERMONS_EDIT_OWN_DESC="Allows the users in this group to edit edit own sermons created by them" +COM_SERMONDISTRIBUTOR_SERMONS_EDIT_STATE="Sermons Edit State" +COM_SERMONDISTRIBUTOR_SERMONS_EDIT_STATE_DESC="Allows the users in this group to update the state of the sermon" +COM_SERMONDISTRIBUTOR_SERMONS_EDIT_VERSION="Sermons Edit Version" +COM_SERMONDISTRIBUTOR_SERMONS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version sermons" +COM_SERMONDISTRIBUTOR_SERMONS_EXPORT="Sermons Export" +COM_SERMONDISTRIBUTOR_SERMONS_EXPORT_DESC="Allows the users in this group to export export sermons" +COM_SERMONDISTRIBUTOR_SERMONS_IMPORT="Sermons Import" +COM_SERMONDISTRIBUTOR_SERMONS_IMPORT_DESC="Allows the users in this group to import import sermons" +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_ARCHIVED="%s Sermons archived." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_ARCHIVED_1="%s Sermon archived." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_CHECKED_IN_0="No Sermon successfully checked in." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_CHECKED_IN_1="%d Sermon successfully checked in." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_CHECKED_IN_MORE="%d Sermons successfully checked in." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_DELETED="%s Sermons deleted." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_DELETED_1="%s Sermon deleted." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_FEATURED="%s Sermons featured." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_FEATURED_1="%s Sermon featured." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_PUBLISHED="%s Sermons published." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_PUBLISHED_1="%s Sermon published." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_TRASHED="%s Sermons trashed." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_TRASHED_1="%s Sermon trashed." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_UNFEATURED="%s Sermons unfeatured." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_UNFEATURED_1="%s Sermon unfeatured." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_UNPUBLISHED="%s Sermons unpublished." +COM_SERMONDISTRIBUTOR_SERMONS_N_ITEMS_UNPUBLISHED_1="%s Sermon unpublished." +COM_SERMONDISTRIBUTOR_SERMONS_SUBMENU="Sermons Submenu" +COM_SERMONDISTRIBUTOR_SERMONS_SUBMENU_DESC="Allows the users in this group to update the submenu of the sermon" +COM_SERMONDISTRIBUTOR_SERMON_ACCESS_SITE="Sermon (Site) Access" +COM_SERMONDISTRIBUTOR_SERMON_ACCESS_SITE_DESC=" Allows the users in this group to access site sermon." +COM_SERMONDISTRIBUTOR_SERMON_ALIAS="Alias" +COM_SERMONDISTRIBUTOR_SERMON_ALIAS_HINT="Auto-generated from name" +COM_SERMONDISTRIBUTOR_SERMON_AUTOMATIC="Automatic" +COM_SERMONDISTRIBUTOR_SERMON_AUTO_SERMONS="Auto Sermons" +COM_SERMONDISTRIBUTOR_SERMON_BUILD="Build" +COM_SERMONDISTRIBUTOR_SERMON_BUILD_DESCRIPTION="Set the method used to add files to this sermon." +COM_SERMONDISTRIBUTOR_SERMON_BUILD_LABEL="Build Option" +COM_SERMONDISTRIBUTOR_SERMON_CATID_DESCRIPTION="select one of the following categories" +COM_SERMONDISTRIBUTOR_SERMON_CATID_LABEL="Category" +COM_SERMONDISTRIBUTOR_SERMON_CREATED_BY_DESC="The user that created the Sermon." +COM_SERMONDISTRIBUTOR_SERMON_CREATED_BY_LABEL="Created by" +COM_SERMONDISTRIBUTOR_SERMON_CREATED_DATE_DESC="The date Sermon was created." +COM_SERMONDISTRIBUTOR_SERMON_CREATED_DATE_LABEL="Created date" +COM_SERMONDISTRIBUTOR_SERMON_DESCRIPTION="Description" +COM_SERMONDISTRIBUTOR_SERMON_DESCRIPTION_LABEL="Description" +COM_SERMONDISTRIBUTOR_SERMON_DETAILS="Details" +COM_SERMONDISTRIBUTOR_SERMON_DIRECT="Direct" +COM_SERMONDISTRIBUTOR_SERMON_DROPBOX="Dropbox" +COM_SERMONDISTRIBUTOR_SERMON_EDIT="Editing the Sermon" +COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED="Encrypted" +COM_SERMONDISTRIBUTOR_SERMON_ERROR_UNIQUE_ALIAS="Another Sermon has the same alias." +COM_SERMONDISTRIBUTOR_SERMON_FILES="Files" +COM_SERMONDISTRIBUTOR_SERMON_ICON="Icon" +COM_SERMONDISTRIBUTOR_SERMON_ICON_DESCRIPTION="Must be 358px x 358px" +COM_SERMONDISTRIBUTOR_SERMON_ICON_LABEL="Icon" +COM_SERMONDISTRIBUTOR_SERMON_ID="Id" +COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE="Link Type" +COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_DESCRIPTION="Set the method used to build download links." +COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_LABEL="Download Link Option" +COM_SERMONDISTRIBUTOR_SERMON_LOCAL_FILES="Local Files" +COM_SERMONDISTRIBUTOR_SERMON_LOCAL_FILES_DESCRIPTION="Select the files you would like to add to this sermon." +COM_SERMONDISTRIBUTOR_SERMON_LOCAL_FILES_LABEL="Files" +COM_SERMONDISTRIBUTOR_SERMON_LOCAL_FOLDER="Local Folder" +COM_SERMONDISTRIBUTOR_SERMON_MANUAL="Manual" +COM_SERMONDISTRIBUTOR_SERMON_MANUAL_FILES="Manual Files" +COM_SERMONDISTRIBUTOR_SERMON_MANUAL_FILES_DESCRIPTION="Select the files you would like to add to this sermon." +COM_SERMONDISTRIBUTOR_SERMON_MANUAL_FILES_LABEL="Files" +COM_SERMONDISTRIBUTOR_SERMON_NAME="Name" +COM_SERMONDISTRIBUTOR_SERMON_NAME_DESCRIPTION="Enter Name Here" +COM_SERMONDISTRIBUTOR_SERMON_NAME_HINT="Name Here" +COM_SERMONDISTRIBUTOR_SERMON_NAME_LABEL="Name" +COM_SERMONDISTRIBUTOR_SERMON_NEW="A New Sermon" +COM_SERMONDISTRIBUTOR_SERMON_NOTE_AUTO_DROPBOX_DESCRIPTION="<b>To integrate auto Dropbox with your system you need to do the following:</b> <ul> + <li>Create main/first auto folder in Dropbox. This will be where you create the folders with the preacher's name. Using the preacher's alias from the system as the folder name will insure no mismatch, if the preacher already exist on the system.</li> + <li>You can add files directly to the preacher folder if it is not linked to a series.</li> + <li>If you would like the sermon linked to a series, you simply create a folder inside the preacher's folder with the series' name, and place the sermon file inside that series' folder. Using the series' alias from the system as the folder name will insure no mismatch, if the series already exist on the system.</li> + <li>Adding other preachers to the same series will only require creating a folder inside that preacher's folder with the same series' name and placing his sermons inside that new folder. Using the series' alias from the system as the folder name will insure no mismatch, if the series already exist on the system.</li> + <li>The file name will be used as the sermon name.</li> + <li>To ensure that all downloads work well, we need to hold to the following file naming convention: + <ul> + <li>No spaces in the file name!!</li> + <li>No strange characters in the file name only A-z 0-9 underscore and hyphen.</li> + </ul> + </li> + <li>We use naming conventions to add tags, categories, a short description and combine files under one sermon, these conventions are as follow: + <ul> + <li>To combine files + <ul> + <li>Use a KEY name with TWO underscores before the actual name, example (34key521__the_file_name.mp3 & 34key521__another_file_of_the_same_sermon.pdf)</li> + <li>The KEY may only have alpha numeric characters (A-z 0-9).</li> + <li>You can combine as many files as you like under each sermon with the unique KEY.</li> + <li>There are two ways to set the sermon name with combined files: + <ul> + <li>All Uppercase. example (34key521__THE_FILE_NAME.mp3 & 34key521__another_file_of_the_same_sermon.pdf).</li> + <li>Longest file name if no all-uppercase file name is found. If two file names are the same length the first one is used.</li> + </ul> + </li> + <li>Uppercase option is the most trusted method since this will insure you get what you expected.</li> + </ul> + </li> + <li>To tag files + <ul> + <li>Directly after the file name add THREE underscores and then set the tags, example (the_file_name___tag1_tag-with2_tag-three.mp3)</li> + <li>You can add as many tags to a file as you like separated by one underscore and hyphen for spaces in a tag.</li> + <li>Combined files only need to have the tags added to one of the files. If one of the files has a tag that was not already found it will also be added to the sermon as a whole since the combined files are treated as one sermon.</li> + </ul> + </li> + <li>To add sermons to categories + <ul> + <li>Directly after the file name add FOUR underscores and then set the category name, example (the_file_name____Salvation_Messages.mp3)</li> + <li>You can add only one category per sermon. Combined files only need to have the category name added to one of the files.</li> + </ul> + </li> + <li>To add a short description + <ul> + <li>Directly after the file name add FIVE underscores and then set the description, example (the_file_name_____The_short_description_can_only_be_one_sentence.mp3)</li> + <li>You can not use any strange characters, only (A-z 0-9) and underscore for spacing.</li> + <li>You can add only one short description per sermon. Combined files only need to have the short description added to one of the files.</li> + </ul> + </li> + </ul> + </li> + <li>When you use all the naming conventions together they should follow the following order: + <ul> + <li>KEY before the file name with TWO underscores.</li> + <li>TAGS must be first after the file name with THREE underscores.</li> + <li>CATEGORY must be first after TAGS with FOUR underscores. IF no tags were set then it must be first after the FILE NAME with FOUR underscores.</li> + <li>SHORT DESCRIPTION must be first after CATEGORY with FIVE underscores. IF no category was set then it must be first after the TAGS with FIVE underscores. IF no tags were set then it must be first after the FILE NAME with FIVE underscores.</li> + </ul> + </li> + <li>Adding folders and sermons will automatically load them to your sermon distributor on your website, or update the already existing sermons with the new files.</li> + </ul></li> +</ul><b>Make sure you have at least one auto folder in Dropbox and have added the shared link in the Sermon Distributor</b> <button class='btn btn-small options-link' ><span class='icon-options'></span>Options</button>" +COM_SERMONDISTRIBUTOR_SERMON_NOTE_AUTO_DROPBOX_LABEL="Dropbox Integration" +COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_DIRECTED_DESCRIPTION="This link option does not allow counting of the downloads of this file, and does not secures the download location of this file. Other can reuse it by adding it to their own websites, this action is called hotlinking, leeching, piggy-backing." +COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_DIRECTED_LABEL="The Direct Link Option" +COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_ENCRYPTED_DESCRIPTION="This link option allows for counting of all downloads of this file, and secures the download location of this file. The download link also prevents other from reusing the link outside of your website if they are not in the same session." +COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_ENCRYPTED_LABEL="The Encrypted Link Option" +COM_SERMONDISTRIBUTOR_SERMON_NOTE_MANUAL_DROPBOX_DESCRIPTION="<b>To integrate manual Dropbox option with your system you need to do the following:</b> + <ul> + <li>Create main/first manual folder in Dropbox. This will be where all files are placed. No sub folders, just one huge folder with all the files!</li> + <li>You will place the file on Dropbox in that main folder first.</li> + <li>Then the next step will be to come to Sermon Distributor and create the preacher and series if they do not already exist.</li> + <li>Please allow enough time (as set in Sermon Distributor Options) for the local listing of files to update.</li> + <li>Then you should create the sermon the file belongs to and select 'Dropbox' as the source of your file.</li> + <li>Next select 'Manual' as the build option. This will load a drop-down with the file names in the Manual Folder on Dropbox. Should the new file not be seen give it a little more time to update the local listing of files.</li> + <li>If the List is very long, you can in the select box type the name of the file and it will shorten the list. Then select your file and continue with the setup of the sermon as usual.</li> + <li>To ensure that all downloads work well, we need to hold to the following file naming convention: + <ul> + <li>No spaces in the file name!!</li> + <li>No strange characters in the file name only A-z 0-9 underscore and hyphen.</li> + </ul> + </li> + </ul> +<b>Make sure you have at least one manual folder in Dropbox and have added the shared link in the Sermon Distributor</b> <button class='btn btn-small options-link' ><span class='icon-options'></span>Options</button>" +COM_SERMONDISTRIBUTOR_SERMON_NOTE_MANUAL_DROPBOX_LABEL="Dropbox Integration" +COM_SERMONDISTRIBUTOR_SERMON_NOT_REQUIRED="Not Required" +COM_SERMONDISTRIBUTOR_SERMON_ORDERING_LABEL="Ordering" +COM_SERMONDISTRIBUTOR_SERMON_PERMISSION="Permissions" +COM_SERMONDISTRIBUTOR_SERMON_PREACHER="Preacher" +COM_SERMONDISTRIBUTOR_SERMON_PREACHER_DESCRIPTION="Select the preacher this sermon belongs to." +COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL="Preacher" +COM_SERMONDISTRIBUTOR_SERMON_PUBLISHING="Publishing" +COM_SERMONDISTRIBUTOR_SERMON_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Sermon to customise the alias." +COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE="Scripture" +COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE_DESCRIPTION="Add scripture reference to this sermon, use comma separation for multiply references." +COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE_HINT="1 John 3:16, Psalm 1, James 1:1-5" +COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE_LABEL="Scripture" +COM_SERMONDISTRIBUTOR_SERMON_SELECT_SOURCE="Select Source" +COM_SERMONDISTRIBUTOR_SERMON_SERIES="Series" +COM_SERMONDISTRIBUTOR_SERMON_SERIES_DESCRIPTION="Select the series this sermon belongs to." +COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL="Series" +COM_SERMONDISTRIBUTOR_SERMON_SERMON_CATEGORY="Sermon Category" +COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION="Short Description" +COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_DESCRIPTION="Enter short description" +COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_HINT="Your Short Description Here" +COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_LABEL="Short Description" +COM_SERMONDISTRIBUTOR_SERMON_SOURCE="Source" +COM_SERMONDISTRIBUTOR_SERMON_SOURCE_DESCRIPTION="Select the source of the file." +COM_SERMONDISTRIBUTOR_SERMON_SOURCE_LABEL="File Source" +COM_SERMONDISTRIBUTOR_SERMON_STASTICS="Stastics" +COM_SERMONDISTRIBUTOR_SERMON_STATUS="Status" +COM_SERMONDISTRIBUTOR_SERMON_TAGS="Tags" +COM_SERMONDISTRIBUTOR_SERMON_TAGS_DESCRIPTION="Assign tags to ###VIEW### items. Tag names must be unique." +COM_SERMONDISTRIBUTOR_SERMON_TAGS_LABEL="Tags" +COM_SERMONDISTRIBUTOR_SERMON_URL="Url" +COM_SERMONDISTRIBUTOR_SERMON_URL_DESCRIPTION="The url to download the sermon." +COM_SERMONDISTRIBUTOR_SERMON_URL_HINT="http://www.domain.com/direct-link-to-download.mp3" +COM_SERMONDISTRIBUTOR_SERMON_URL_LABEL="File URL" +COM_SERMONDISTRIBUTOR_SERMON_VERSION_DESC="A count of the number of times this Sermon has been revised." +COM_SERMONDISTRIBUTOR_SERMON_VERSION_LABEL="Revision" +COM_SERMONDISTRIBUTOR_STATISTIC="Statistic" +COM_SERMONDISTRIBUTOR_STATISTICS="Statistics" +COM_SERMONDISTRIBUTOR_STATISTICS_ACCESS="Statistics Access" +COM_SERMONDISTRIBUTOR_STATISTICS_ACCESS_DESC="Allows the users in this group to access access statistics" +COM_SERMONDISTRIBUTOR_STATISTICS_BATCH_OPTIONS="Batch process the selected Statistics" +COM_SERMONDISTRIBUTOR_STATISTICS_BATCH_TIP="All changes will be applied to all selected Statistics" +COM_SERMONDISTRIBUTOR_STATISTICS_BATCH_USE="Statistics Batch Use" +COM_SERMONDISTRIBUTOR_STATISTICS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch statistics" +COM_SERMONDISTRIBUTOR_STATISTICS_CREATE="Statistics Create" +COM_SERMONDISTRIBUTOR_STATISTICS_CREATE_DESC="Allows the users in this group to create create statistics" +COM_SERMONDISTRIBUTOR_STATISTICS_DASHBOARD_LIST="Statistics Dashboard List" +COM_SERMONDISTRIBUTOR_STATISTICS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the statistic" +COM_SERMONDISTRIBUTOR_STATISTICS_DELETE="Statistics Delete" +COM_SERMONDISTRIBUTOR_STATISTICS_DELETE_DESC="Allows the users in this group to delete delete statistics" +COM_SERMONDISTRIBUTOR_STATISTICS_EDIT="Statistics Edit" +COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_CREATED_BY="Statistics Edit Created By" +COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by statistics" +COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_CREATED_DATE="Statistics Edit Created Date" +COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created statistics" +COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_DESC="Allows the users in this group to edit the statistic" +COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_OWN="Statistics Edit Own" +COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_OWN_DESC="Allows the users in this group to edit edit own statistics created by them" +COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_STATE="Statistics Edit State" +COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_STATE_DESC="Allows the users in this group to update the state of the statistic" +COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_VERSION="Statistics Edit Version" +COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version statistics" +COM_SERMONDISTRIBUTOR_STATISTICS_EXPORT="Statistics Export" +COM_SERMONDISTRIBUTOR_STATISTICS_EXPORT_DESC="Allows the users in this group to export export statistics" +COM_SERMONDISTRIBUTOR_STATISTICS_IMPORT="Statistics Import" +COM_SERMONDISTRIBUTOR_STATISTICS_IMPORT_DESC="Allows the users in this group to import import statistics" +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_ARCHIVED="%s Statistics archived." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_ARCHIVED_1="%s Statistic archived." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_CHECKED_IN_0="No Statistic successfully checked in." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_CHECKED_IN_1="%d Statistic successfully checked in." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_CHECKED_IN_MORE="%d Statistics successfully checked in." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_DELETED="%s Statistics deleted." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_DELETED_1="%s Statistic deleted." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_FEATURED="%s Statistics featured." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_FEATURED_1="%s Statistic featured." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_PUBLISHED="%s Statistics published." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_PUBLISHED_1="%s Statistic published." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_TRASHED="%s Statistics trashed." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_TRASHED_1="%s Statistic trashed." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_UNFEATURED="%s Statistics unfeatured." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_UNFEATURED_1="%s Statistic unfeatured." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_UNPUBLISHED="%s Statistics unpublished." +COM_SERMONDISTRIBUTOR_STATISTICS_N_ITEMS_UNPUBLISHED_1="%s Statistic unpublished." +COM_SERMONDISTRIBUTOR_STATISTICS_SUBMENU="Statistics Submenu" +COM_SERMONDISTRIBUTOR_STATISTICS_SUBMENU_DESC="Allows the users in this group to update the submenu of the statistic" +COM_SERMONDISTRIBUTOR_STATISTIC_COUNTER="Counter" +COM_SERMONDISTRIBUTOR_STATISTIC_COUNTER_DESCRIPTION="Enter number." +COM_SERMONDISTRIBUTOR_STATISTIC_COUNTER_HINT="Number Here." +COM_SERMONDISTRIBUTOR_STATISTIC_COUNTER_LABEL="Counter" +COM_SERMONDISTRIBUTOR_STATISTIC_CREATED_BY_DESC="The user that created the Statistic." +COM_SERMONDISTRIBUTOR_STATISTIC_CREATED_BY_LABEL="Created by" +COM_SERMONDISTRIBUTOR_STATISTIC_CREATED_DATE_DESC="The date Statistic was created." +COM_SERMONDISTRIBUTOR_STATISTIC_CREATED_DATE_LABEL="Created date" +COM_SERMONDISTRIBUTOR_STATISTIC_DETAILS="Details" +COM_SERMONDISTRIBUTOR_STATISTIC_EDIT="Editing the Statistic" +COM_SERMONDISTRIBUTOR_STATISTIC_ERROR_UNIQUE_ALIAS="Another Statistic has the same alias." +COM_SERMONDISTRIBUTOR_STATISTIC_FILENAME="Filename" +COM_SERMONDISTRIBUTOR_STATISTIC_FILENAME_DESCRIPTION="Enter the file name." +COM_SERMONDISTRIBUTOR_STATISTIC_FILENAME_HINT="the_file_name.mp3" +COM_SERMONDISTRIBUTOR_STATISTIC_FILENAME_LABEL="File Name" +COM_SERMONDISTRIBUTOR_STATISTIC_ID="Id" +COM_SERMONDISTRIBUTOR_STATISTIC_NEW="A New Statistic" +COM_SERMONDISTRIBUTOR_STATISTIC_ORDERING_LABEL="Ordering" +COM_SERMONDISTRIBUTOR_STATISTIC_PERMISSION="Permissions" +COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER="Preacher" +COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER_DESCRIPTION="Select the preacher this sermon belongs to." +COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER_LABEL="Preacher" +COM_SERMONDISTRIBUTOR_STATISTIC_PUBLISHING="Publishing" +COM_SERMONDISTRIBUTOR_STATISTIC_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Statistic to customise the alias." +COM_SERMONDISTRIBUTOR_STATISTIC_SERIES="Series" +COM_SERMONDISTRIBUTOR_STATISTIC_SERIES_DESCRIPTION="Select the series this sermon belongs to." +COM_SERMONDISTRIBUTOR_STATISTIC_SERIES_LABEL="Series" +COM_SERMONDISTRIBUTOR_STATISTIC_SERMON="Sermon" +COM_SERMONDISTRIBUTOR_STATISTIC_SERMON_DESCRIPTION="Select a sermon." +COM_SERMONDISTRIBUTOR_STATISTIC_SERMON_LABEL="Sermon" +COM_SERMONDISTRIBUTOR_STATISTIC_STATUS="Status" +COM_SERMONDISTRIBUTOR_STATISTIC_VERSION_DESC="A count of the number of times this Statistic has been revised." +COM_SERMONDISTRIBUTOR_STATISTIC_VERSION_LABEL="Revision" +COM_SERMONDISTRIBUTOR_SUBMENU_DASHBOARD="Dashboard" +COM_SERMONDISTRIBUTOR_SUBMENU_HELP_DOCUMENTS="Help Documents" +COM_SERMONDISTRIBUTOR_SUBMENU_PREACHERS="Preachers" +COM_SERMONDISTRIBUTOR_SUBMENU_SERIES_LIST="Series List" +COM_SERMONDISTRIBUTOR_SUBMENU_SERMONS="Sermons" +COM_SERMONDISTRIBUTOR_SUBMENU_STATISTICS="Statistics" +COM_SERMONDISTRIBUTOR_USE_BATCH="Use Batch" +COM_SERMONDISTRIBUTOR_USE_BATCH_DESC=" Allows users in this group to use batch copy/update method." +COM_SERMONDISTRIBUTOR_VERSION="Version" +COM_SERMONDISTRIBUTOR_WEBSITE="Website" diff --git a/admin/language/en-GB/en-GB.com_sermondistributor.sys.ini b/admin/language/en-GB/en-GB.com_sermondistributor.sys.ini new file mode 100644 index 00000000..b2552e76 --- /dev/null +++ b/admin/language/en-GB/en-GB.com_sermondistributor.sys.ini @@ -0,0 +1,24 @@ +COM_SERMONDISTRIBUTOR="Sermon Distributor" +COM_SERMONDISTRIBUTOR_CONFIGURATION="Sermon Distributor Configuration" +COM_SERMONDISTRIBUTOR_MENU="&#187; Sermon Distributor" +COM_SERMONDISTRIBUTOR_MENU_CATEGORIES_DESC="All categories that are published" +COM_SERMONDISTRIBUTOR_MENU_CATEGORIES_OPTION="Categories" +COM_SERMONDISTRIBUTOR_MENU_CATEGORIES_TITLE="Categories" +COM_SERMONDISTRIBUTOR_MENU_CATEGORY_DESC="A category that is published" +COM_SERMONDISTRIBUTOR_MENU_CATEGORY_OPTION="Category" +COM_SERMONDISTRIBUTOR_MENU_CATEGORY_TITLE="Category" +COM_SERMONDISTRIBUTOR_MENU_PREACHERS="Preachers" +COM_SERMONDISTRIBUTOR_MENU_PREACHERS_DESC="All preachers that are published" +COM_SERMONDISTRIBUTOR_MENU_PREACHERS_OPTION="Preachers" +COM_SERMONDISTRIBUTOR_MENU_PREACHERS_TITLE="Preachers" +COM_SERMONDISTRIBUTOR_MENU_PREACHER_DESC="A preacher that is published" +COM_SERMONDISTRIBUTOR_MENU_PREACHER_OPTION="Preacher" +COM_SERMONDISTRIBUTOR_MENU_PREACHER_TITLE="Preacher" +COM_SERMONDISTRIBUTOR_MENU_SERIESLIST_DESC="All series that are published" +COM_SERMONDISTRIBUTOR_MENU_SERIESLIST_OPTION="Series List" +COM_SERMONDISTRIBUTOR_MENU_SERIESLIST_TITLE="Series List" +COM_SERMONDISTRIBUTOR_MENU_SERIES_DESC="A series that is published" +COM_SERMONDISTRIBUTOR_MENU_SERIES_LIST="Series List" +COM_SERMONDISTRIBUTOR_MENU_SERIES_OPTION="Series" +COM_SERMONDISTRIBUTOR_MENU_SERIES_TITLE="Series" +COM_SERMONDISTRIBUTOR_MENU_SERMONS="Sermons" diff --git a/admin/language/en-GB/index.html b/admin/language/en-GB/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/language/en-GB/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/language/index.html b/admin/language/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/language/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/layouts/batchselection.php b/admin/layouts/batchselection.php new file mode 100644 index 00000000..9d00d6e8 --- /dev/null +++ b/admin/layouts/batchselection.php @@ -0,0 +1,57 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage batchselection.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('JPATH_BASE') or die; + +JHtmlBehavior::core(); +$divWrapper = range(1,120,2); +$counter = 0; +?> +<?php if ($displayData->ListSelection) : ?> +<div class="row-fluid"> + <?php foreach ($displayData->ListSelection as $ListSelection) : ?> + <div class="control-group span6"> + <div class="controls"> + <label for="<?php echo $ListSelection['name']; ?>" class="element-invisible"><?php echo $ListSelection['label']; ?></label> + <select name="<?php echo $ListSelection['name']; ?>" id="<?php echo $ListSelection['name']; ?>" class="span12 small"> + <?php if (!$ListSelection['noDefault']) : ?> + <option value=""><?php echo $ListSelection['label']; ?></option> + <?php endif; ?> + <?php echo $ListSelection['options']; ?> + </select> + </div> + </div> + <?php if (in_array($counter,$divWrapper)) : ?> +</div> +<div class="row-fluid"> + <?php endif; ?> + <?php $counter++; ?> + <?php endforeach; ?> +</div> +<div class="control-group radio" id="batch-move-copy"> + <div class="controls"> + <label class="radio" id="batch[move_copy]c-lbl" for="batch[move_copy]c"> + <input type="radio" value="c" id="batch[move_copy]c" name="batch[move_copy]"><?php echo JText::_('Copy'); ?></label> + <label class="radio" id="batch[move_copy]m-lbl" for="batch[move_copy]m"> + <input type="radio" checked="checked" value="m" id="batch[move_copy]m" name="batch[move_copy]"><?php echo JText::_('Update'); ?></label> + </div> +</div> +<?php endif; ?> \ No newline at end of file diff --git a/admin/layouts/help_document/details_above.php b/admin/layouts/help_document/details_above.php new file mode 100644 index 00000000..a8bddd8b --- /dev/null +++ b/admin/layouts/help_document/details_above.php @@ -0,0 +1,37 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_above.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = array( + 'title', + 'alias' +); + +?> +<div class="form-inline form-inline-header"> + <?php foreach($fields as $field){ + echo $form->renderField($field); + } ?> +</div> diff --git a/admin/layouts/help_document/details_fullwidth.php b/admin/layouts/help_document/details_fullwidth.php new file mode 100644 index 00000000..8144a9b8 --- /dev/null +++ b/admin/layouts/help_document/details_fullwidth.php @@ -0,0 +1,43 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_fullwidth.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'content' +); + +?> +<div class="form-vertical"> +<?php foreach($fields as $field): ?> + <div class="control-group"> + <div class="control-label"> + <?php echo $form->getLabel($field); ?> + </div> + <div class="controls"> + <?php echo $form->getInput($field); ?> + </div> + </div> +<?php endforeach; ?> +</div> diff --git a/admin/layouts/help_document/details_left.php b/admin/layouts/help_document/details_left.php new file mode 100644 index 00000000..abbe2275 --- /dev/null +++ b/admin/layouts/help_document/details_left.php @@ -0,0 +1,53 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_left.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'target', + 'groups', + 'location', + 'admin_view', + 'site_view' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/help_document/details_right.php b/admin/layouts/help_document/details_right.php new file mode 100644 index 00000000..f00c12fe --- /dev/null +++ b/admin/layouts/help_document/details_right.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_right.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'type', + 'url', + 'article' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/help_document/details_under.php b/admin/layouts/help_document/details_under.php new file mode 100644 index 00000000..197f3696 --- /dev/null +++ b/admin/layouts/help_document/details_under.php @@ -0,0 +1,36 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_under.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = array( + 'not_required' +); + +?> +<div class="form-inline form-inline-header"> + <?php foreach($fields as $field){ + echo $form->renderField($field); + } ?> +</div> diff --git a/admin/layouts/help_document/index.html b/admin/layouts/help_document/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/layouts/help_document/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/layouts/help_document/metadata.php b/admin/layouts/help_document/metadata.php new file mode 100644 index 00000000..5368e161 --- /dev/null +++ b/admin/layouts/help_document/metadata.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage metadata.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +// JLayout for standard handling of metadata fields in the administrator content edit screens. +$fieldSets = $form->getFieldsets('metadata'); +?> + +<?php foreach ($fieldSets as $name => $fieldSet) : ?> + <?php if (isset($fieldSet->description) && trim($fieldSet->description)) : ?> + <p class="alert alert-info"><?php echo $this->escape(JText::_($fieldSet->description)); ?></p> + <?php endif; ?> + + <?php + // Include the real fields in this panel. + if ($name == 'vdmmetadata') + { + echo $form->renderField('metadesc'); + echo $form->renderField('metakey'); + } + + foreach ($form->getFieldset($name) as $field) + { + if ($field->name != 'jform[metadata][tags][]') + { + echo $field->renderField(); + } + } ?> +<?php endforeach; ?> diff --git a/admin/layouts/help_document/publishing.php b/admin/layouts/help_document/publishing.php new file mode 100644 index 00000000..9148e7dc --- /dev/null +++ b/admin/layouts/help_document/publishing.php @@ -0,0 +1,59 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage publishing.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$app = JFactory::getApplication(); +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'created', + 'created_by', + 'modified', + 'modified_by', + 'published', + 'ordering', + 'access', + 'version', + 'hits', + 'id' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/index.html b/admin/layouts/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/layouts/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/layouts/preacher/details_above.php b/admin/layouts/preacher/details_above.php new file mode 100644 index 00000000..8b5e01a7 --- /dev/null +++ b/admin/layouts/preacher/details_above.php @@ -0,0 +1,37 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_above.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = array( + 'name', + 'alias' +); + +?> +<div class="form-inline form-inline-header"> + <?php foreach($fields as $field){ + echo $form->renderField($field); + } ?> +</div> diff --git a/admin/layouts/preacher/details_fullwidth.php b/admin/layouts/preacher/details_fullwidth.php new file mode 100644 index 00000000..012d1973 --- /dev/null +++ b/admin/layouts/preacher/details_fullwidth.php @@ -0,0 +1,43 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_fullwidth.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'description' +); + +?> +<div class="form-vertical"> +<?php foreach($fields as $field): ?> + <div class="control-group"> + <div class="control-label"> + <?php echo $form->getLabel($field); ?> + </div> + <div class="controls"> + <?php echo $form->getInput($field); ?> + </div> + </div> +<?php endforeach; ?> +</div> diff --git a/admin/layouts/preacher/details_left.php b/admin/layouts/preacher/details_left.php new file mode 100644 index 00000000..4a1c754c --- /dev/null +++ b/admin/layouts/preacher/details_left.php @@ -0,0 +1,49 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_left.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'icon' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/preacher/details_right.php b/admin/layouts/preacher/details_right.php new file mode 100644 index 00000000..2a41302f --- /dev/null +++ b/admin/layouts/preacher/details_right.php @@ -0,0 +1,50 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_right.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'email', + 'website' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/preacher/index.html b/admin/layouts/preacher/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/layouts/preacher/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/layouts/preacher/metadata.php b/admin/layouts/preacher/metadata.php new file mode 100644 index 00000000..5368e161 --- /dev/null +++ b/admin/layouts/preacher/metadata.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage metadata.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +// JLayout for standard handling of metadata fields in the administrator content edit screens. +$fieldSets = $form->getFieldsets('metadata'); +?> + +<?php foreach ($fieldSets as $name => $fieldSet) : ?> + <?php if (isset($fieldSet->description) && trim($fieldSet->description)) : ?> + <p class="alert alert-info"><?php echo $this->escape(JText::_($fieldSet->description)); ?></p> + <?php endif; ?> + + <?php + // Include the real fields in this panel. + if ($name == 'vdmmetadata') + { + echo $form->renderField('metadesc'); + echo $form->renderField('metakey'); + } + + foreach ($form->getFieldset($name) as $field) + { + if ($field->name != 'jform[metadata][tags][]') + { + echo $field->renderField(); + } + } ?> +<?php endforeach; ?> diff --git a/admin/layouts/preacher/publishing.php b/admin/layouts/preacher/publishing.php new file mode 100644 index 00000000..9148e7dc --- /dev/null +++ b/admin/layouts/preacher/publishing.php @@ -0,0 +1,59 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage publishing.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$app = JFactory::getApplication(); +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'created', + 'created_by', + 'modified', + 'modified_by', + 'published', + 'ordering', + 'access', + 'version', + 'hits', + 'id' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/preacher/sermons_fullwidth.php b/admin/layouts/preacher/sermons_fullwidth.php new file mode 100644 index 00000000..3af988d5 --- /dev/null +++ b/admin/layouts/preacher/sermons_fullwidth.php @@ -0,0 +1,160 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermons_fullwidth.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +// set the defaults +$items = $displayData->kalsermons; +$user = JFactory::getUser(); +$id = $displayData->item->id; +$edit = "index.php?option=com_sermondistributor&view=sermons&task=sermon.edit"; +$ref = ($id) ? "&ref=preacher&refid=".$id : ""; +$new = "index.php?option=com_sermondistributor&view=sermon&layout=edit".$ref; +$can = SermondistributorHelper::getActions('sermon'); + +?> +<div class="form-vertical"> +<?php if ($can->get('sermon.create')): ?> + <a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo JText::_('COM_SERMONDISTRIBUTOR_NEW'); ?></a><br /><br /> +<?php endif; ?> +<?php if (SermondistributorHelper::checkArray($items)): ?> +<table class="footable table data sermons metro-blue" data-filter="#filter_sermons" data-page-size="20"> +<thead> + <tr> + <th data-toggle="true"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_NAME_LABEL'); ?> + </th> + <th data-hide="phone"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL'); ?> + </th> + <th data-hide="phone"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL'); ?> + </th> + <th data-hide="phone,tablet"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_LABEL'); ?> + </th> + <th data-hide="phone,tablet"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERMON_CATEGORY'); ?> + </th> + <th data-hide="phone,tablet"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_LABEL'); ?> + </th> + <th data-hide="all"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SOURCE_LABEL'); ?> + </th> + <th width="10" data-hide="phone,tablet"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_STATUS'); ?> + </th> + <th width="5" data-type="numeric" data-hide="phone,tablet"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_ID'); ?> + </th> + </tr> +</thead> +<tbody> +<?php foreach ($items as $i => $item): ?> + <?php + $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0; + $userChkOut = JFactory::getUser($item->checked_out); + $canDo = SermondistributorHelper::getActions('sermon',$item,'sermons'); + ?> + <tr> + <td class="nowrap"> + <?php if ($canDo->get('sermon.edit')): ?> + <a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=preacher&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->name); ?></a> + <?php if ($item->checked_out): ?> + <?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'sermons.', $canCheckin); ?> + <?php endif; ?> + <?php else: ?> + <div class="name"><?php echo $displayData->escape($item->name); ?></div> + <?php endif; ?> + </td> + <td> + <?php echo $displayData->escape($item->preacher_name); ?> + </td> + <td class="nowrap"> + <?php if ($user->authorise('series.edit', 'com_sermondistributor.series.' . (int)$item->series)): ?> + <a href="index.php?option=com_sermondistributor&view=all_series&task=series.edit&id=<?php echo $item->series; ?>&ref=preacher&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->series_name); ?></a> + <?php else: ?> + <div class="name"><?php echo $displayData->escape($item->series_name); ?></div> + <?php endif; ?> + </td> + <td> + <?php echo $displayData->escape($item->short_description); ?> + </td> + <td class="nowrap"> + <?php if ($user->authorise('core.edit', 'com_sermondistributor.sermons.category.' . (int)$item->catid)): ?> + <a href="index.php?option=com_categories&task=category.edit&id=<?php echo (int)$item->catid; ?>&extension=com_sermondistributor.sermons"><?php echo $displayData->escape($item->category_title); ?></a> + <?php else: ?> + <?php echo $displayData->escape($item->category_title); ?> + <?php endif; ?> + </td> + <td> + <?php echo JText::_($item->link_type); ?> + </td> + <td> + <?php echo JText::_($item->source); ?> + </td> + <?php if ($item->published == 1):?> + <td class="center" data-value="1"> + <span class="status-metro status-published" title="<?php echo JText::_('PUBLISHED'); ?>"> + <?php echo JText::_('PUBLISHED'); ?> + </span> + </td> + <?php elseif ($item->published == 0):?> + <td class="center" data-value="2"> + <span class="status-metro status-inactive" title="<?php echo JText::_('INACTIVE'); ?>"> + <?php echo JText::_('INACTIVE'); ?> + </span> + </td> + <?php elseif ($item->published == 2):?> + <td class="center" data-value="3"> + <span class="status-metro status-archived" title="<?php echo JText::_('ARCHIVED'); ?>"> + <?php echo JText::_('ARCHIVED'); ?> + </span> + </td> + <?php elseif ($item->published == -2):?> + <td class="center" data-value="4"> + <span class="status-metro status-trashed" title="<?php echo JText::_('ARCHIVED'); ?>"> + <?php echo JText::_('ARCHIVED'); ?> + </span> + </td> + <?php endif; ?> + <td class="nowrap center hidden-phone"> + <?php echo $item->id; ?> + </td> + </tr> +<?php endforeach; ?> +</tbody> +<tfoot class="hide-if-no-paging"> + <tr> + <td colspan="9"> + <div class="pagination pagination-centered"></div> + </td> + </tr> +</tfoot> +</table> +<?php else: ?> + <div class="alert alert-no-items"> + <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> + </div> +<?php endif; ?> +</div> diff --git a/admin/layouts/series/details_above.php b/admin/layouts/series/details_above.php new file mode 100644 index 00000000..8b5e01a7 --- /dev/null +++ b/admin/layouts/series/details_above.php @@ -0,0 +1,37 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_above.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = array( + 'name', + 'alias' +); + +?> +<div class="form-inline form-inline-header"> + <?php foreach($fields as $field){ + echo $form->renderField($field); + } ?> +</div> diff --git a/admin/layouts/series/details_fullwidth.php b/admin/layouts/series/details_fullwidth.php new file mode 100644 index 00000000..012d1973 --- /dev/null +++ b/admin/layouts/series/details_fullwidth.php @@ -0,0 +1,43 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_fullwidth.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'description' +); + +?> +<div class="form-vertical"> +<?php foreach($fields as $field): ?> + <div class="control-group"> + <div class="control-label"> + <?php echo $form->getLabel($field); ?> + </div> + <div class="controls"> + <?php echo $form->getInput($field); ?> + </div> + </div> +<?php endforeach; ?> +</div> diff --git a/admin/layouts/series/details_left.php b/admin/layouts/series/details_left.php new file mode 100644 index 00000000..4a1c754c --- /dev/null +++ b/admin/layouts/series/details_left.php @@ -0,0 +1,49 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_left.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'icon' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/series/details_right.php b/admin/layouts/series/details_right.php new file mode 100644 index 00000000..bd96b886 --- /dev/null +++ b/admin/layouts/series/details_right.php @@ -0,0 +1,49 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_right.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'scripture' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/series/index.html b/admin/layouts/series/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/layouts/series/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/layouts/series/metadata.php b/admin/layouts/series/metadata.php new file mode 100644 index 00000000..5368e161 --- /dev/null +++ b/admin/layouts/series/metadata.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage metadata.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +// JLayout for standard handling of metadata fields in the administrator content edit screens. +$fieldSets = $form->getFieldsets('metadata'); +?> + +<?php foreach ($fieldSets as $name => $fieldSet) : ?> + <?php if (isset($fieldSet->description) && trim($fieldSet->description)) : ?> + <p class="alert alert-info"><?php echo $this->escape(JText::_($fieldSet->description)); ?></p> + <?php endif; ?> + + <?php + // Include the real fields in this panel. + if ($name == 'vdmmetadata') + { + echo $form->renderField('metadesc'); + echo $form->renderField('metakey'); + } + + foreach ($form->getFieldset($name) as $field) + { + if ($field->name != 'jform[metadata][tags][]') + { + echo $field->renderField(); + } + } ?> +<?php endforeach; ?> diff --git a/admin/layouts/series/publishing.php b/admin/layouts/series/publishing.php new file mode 100644 index 00000000..9148e7dc --- /dev/null +++ b/admin/layouts/series/publishing.php @@ -0,0 +1,59 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage publishing.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$app = JFactory::getApplication(); +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'created', + 'created_by', + 'modified', + 'modified_by', + 'published', + 'ordering', + 'access', + 'version', + 'hits', + 'id' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/series/sermons_fullwidth.php b/admin/layouts/series/sermons_fullwidth.php new file mode 100644 index 00000000..f99fd7a6 --- /dev/null +++ b/admin/layouts/series/sermons_fullwidth.php @@ -0,0 +1,160 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermons_fullwidth.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +// set the defaults +$items = $displayData->aoqsermons; +$user = JFactory::getUser(); +$id = $displayData->item->id; +$edit = "index.php?option=com_sermondistributor&view=sermons&task=sermon.edit"; +$ref = ($id) ? "&ref=series&refid=".$id : ""; +$new = "index.php?option=com_sermondistributor&view=sermon&layout=edit".$ref; +$can = SermondistributorHelper::getActions('sermon'); + +?> +<div class="form-vertical"> +<?php if ($can->get('sermon.create')): ?> + <a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo JText::_('COM_SERMONDISTRIBUTOR_NEW'); ?></a><br /><br /> +<?php endif; ?> +<?php if (SermondistributorHelper::checkArray($items)): ?> +<table class="footable table data sermons metro-blue" data-filter="#filter_sermons" data-page-size="20"> +<thead> + <tr> + <th data-toggle="true"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_NAME_LABEL'); ?> + </th> + <th data-hide="phone"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL'); ?> + </th> + <th data-hide="phone"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL'); ?> + </th> + <th data-hide="phone,tablet"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_LABEL'); ?> + </th> + <th data-hide="phone,tablet"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERMON_CATEGORY'); ?> + </th> + <th data-hide="phone,tablet"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_LABEL'); ?> + </th> + <th data-hide="all"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SOURCE_LABEL'); ?> + </th> + <th width="10" data-hide="phone,tablet"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_STATUS'); ?> + </th> + <th width="5" data-type="numeric" data-hide="phone,tablet"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_ID'); ?> + </th> + </tr> +</thead> +<tbody> +<?php foreach ($items as $i => $item): ?> + <?php + $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0; + $userChkOut = JFactory::getUser($item->checked_out); + $canDo = SermondistributorHelper::getActions('sermon',$item,'sermons'); + ?> + <tr> + <td class="nowrap"> + <?php if ($canDo->get('sermon.edit')): ?> + <a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=series&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->name); ?></a> + <?php if ($item->checked_out): ?> + <?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'sermons.', $canCheckin); ?> + <?php endif; ?> + <?php else: ?> + <div class="name"><?php echo $displayData->escape($item->name); ?></div> + <?php endif; ?> + </td> + <td class="nowrap"> + <?php if ($user->authorise('preacher.edit', 'com_sermondistributor.preacher.' . (int)$item->preacher)): ?> + <a href="index.php?option=com_sermondistributor&view=preachers&task=preacher.edit&id=<?php echo $item->preacher; ?>&ref=series&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->preacher_name); ?></a> + <?php else: ?> + <div class="name"><?php echo $displayData->escape($item->preacher_name); ?></div> + <?php endif; ?> + </td> + <td> + <?php echo $displayData->escape($item->series_name); ?> + </td> + <td> + <?php echo $displayData->escape($item->short_description); ?> + </td> + <td class="nowrap"> + <?php if ($user->authorise('core.edit', 'com_sermondistributor.sermons.category.' . (int)$item->catid)): ?> + <a href="index.php?option=com_categories&task=category.edit&id=<?php echo (int)$item->catid; ?>&extension=com_sermondistributor.sermons"><?php echo $displayData->escape($item->category_title); ?></a> + <?php else: ?> + <?php echo $displayData->escape($item->category_title); ?> + <?php endif; ?> + </td> + <td> + <?php echo JText::_($item->link_type); ?> + </td> + <td> + <?php echo JText::_($item->source); ?> + </td> + <?php if ($item->published == 1):?> + <td class="center" data-value="1"> + <span class="status-metro status-published" title="<?php echo JText::_('PUBLISHED'); ?>"> + <?php echo JText::_('PUBLISHED'); ?> + </span> + </td> + <?php elseif ($item->published == 0):?> + <td class="center" data-value="2"> + <span class="status-metro status-inactive" title="<?php echo JText::_('INACTIVE'); ?>"> + <?php echo JText::_('INACTIVE'); ?> + </span> + </td> + <?php elseif ($item->published == 2):?> + <td class="center" data-value="3"> + <span class="status-metro status-archived" title="<?php echo JText::_('ARCHIVED'); ?>"> + <?php echo JText::_('ARCHIVED'); ?> + </span> + </td> + <?php elseif ($item->published == -2):?> + <td class="center" data-value="4"> + <span class="status-metro status-trashed" title="<?php echo JText::_('ARCHIVED'); ?>"> + <?php echo JText::_('ARCHIVED'); ?> + </span> + </td> + <?php endif; ?> + <td class="nowrap center hidden-phone"> + <?php echo $item->id; ?> + </td> + </tr> +<?php endforeach; ?> +</tbody> +<tfoot class="hide-if-no-paging"> + <tr> + <td colspan="9"> + <div class="pagination pagination-centered"></div> + </td> + </tr> +</tfoot> +</table> +<?php else: ?> + <div class="alert alert-no-items"> + <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> + </div> +<?php endif; ?> +</div> diff --git a/admin/layouts/sermon/details_above.php b/admin/layouts/sermon/details_above.php new file mode 100644 index 00000000..25c49efb --- /dev/null +++ b/admin/layouts/sermon/details_above.php @@ -0,0 +1,38 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_above.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = array( + 'name', + 'alias', + 'preacher' +); + +?> +<div class="form-inline form-inline-header"> + <?php foreach($fields as $field){ + echo $form->renderField($field); + } ?> +</div> diff --git a/admin/layouts/sermon/details_fullwidth.php b/admin/layouts/sermon/details_fullwidth.php new file mode 100644 index 00000000..012d1973 --- /dev/null +++ b/admin/layouts/sermon/details_fullwidth.php @@ -0,0 +1,43 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_fullwidth.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'description' +); + +?> +<div class="form-vertical"> +<?php foreach($fields as $field): ?> + <div class="control-group"> + <div class="control-label"> + <?php echo $form->getLabel($field); ?> + </div> + <div class="controls"> + <?php echo $form->getInput($field); ?> + </div> + </div> +<?php endforeach; ?> +</div> diff --git a/admin/layouts/sermon/details_left.php b/admin/layouts/sermon/details_left.php new file mode 100644 index 00000000..b308b9a0 --- /dev/null +++ b/admin/layouts/sermon/details_left.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_left.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'scripture', + 'short_description', + 'icon' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/sermon/details_right.php b/admin/layouts/sermon/details_right.php new file mode 100644 index 00000000..add9453d --- /dev/null +++ b/admin/layouts/sermon/details_right.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_right.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'series', + 'catid', + 'tags' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/sermon/details_under.php b/admin/layouts/sermon/details_under.php new file mode 100644 index 00000000..0dee7c77 --- /dev/null +++ b/admin/layouts/sermon/details_under.php @@ -0,0 +1,37 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_under.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = array( + 'not_required', + 'auto_sermons' +); + +?> +<div class="form-inline form-inline-header"> + <?php foreach($fields as $field){ + echo $form->renderField($field); + } ?> +</div> diff --git a/admin/layouts/sermon/files_fullwidth.php b/admin/layouts/sermon/files_fullwidth.php new file mode 100644 index 00000000..a834edaa --- /dev/null +++ b/admin/layouts/sermon/files_fullwidth.php @@ -0,0 +1,52 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage files_fullwidth.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'link_type', + 'note_link_directed', + 'note_link_encrypted', + 'source', + 'build', + 'note_manual_dropbox', + 'note_auto_dropbox', + 'manual_files', + 'local_files', + 'url' +); + +?> +<div class="form-vertical"> +<?php foreach($fields as $field): ?> + <div class="control-group"> + <div class="control-label"> + <?php echo $form->getLabel($field); ?> + </div> + <div class="controls"> + <?php echo $form->getInput($field); ?> + </div> + </div> +<?php endforeach; ?> +</div> diff --git a/admin/layouts/sermon/index.html b/admin/layouts/sermon/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/layouts/sermon/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/layouts/sermon/metadata.php b/admin/layouts/sermon/metadata.php new file mode 100644 index 00000000..5368e161 --- /dev/null +++ b/admin/layouts/sermon/metadata.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage metadata.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +// JLayout for standard handling of metadata fields in the administrator content edit screens. +$fieldSets = $form->getFieldsets('metadata'); +?> + +<?php foreach ($fieldSets as $name => $fieldSet) : ?> + <?php if (isset($fieldSet->description) && trim($fieldSet->description)) : ?> + <p class="alert alert-info"><?php echo $this->escape(JText::_($fieldSet->description)); ?></p> + <?php endif; ?> + + <?php + // Include the real fields in this panel. + if ($name == 'vdmmetadata') + { + echo $form->renderField('metadesc'); + echo $form->renderField('metakey'); + } + + foreach ($form->getFieldset($name) as $field) + { + if ($field->name != 'jform[metadata][tags][]') + { + echo $field->renderField(); + } + } ?> +<?php endforeach; ?> diff --git a/admin/layouts/sermon/publishing.php b/admin/layouts/sermon/publishing.php new file mode 100644 index 00000000..9148e7dc --- /dev/null +++ b/admin/layouts/sermon/publishing.php @@ -0,0 +1,59 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage publishing.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$app = JFactory::getApplication(); +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'created', + 'created_by', + 'modified', + 'modified_by', + 'published', + 'ordering', + 'access', + 'version', + 'hits', + 'id' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/sermon/stastics_fullwidth.php b/admin/layouts/sermon/stastics_fullwidth.php new file mode 100644 index 00000000..3e46c0b1 --- /dev/null +++ b/admin/layouts/sermon/stastics_fullwidth.php @@ -0,0 +1,142 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage stastics_fullwidth.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +// set the defaults +$items = $displayData->tststastics; +$user = JFactory::getUser(); +$id = $displayData->item->id; +$edit = "index.php?option=com_sermondistributor&view=statistics&task=statistic.edit"; + +?> +<div class="form-vertical"> +<?php if (SermondistributorHelper::checkArray($items)): ?> +<table class="footable table data statistics metro-blue" data-filter="#filter_statistics" data-page-size="20"> +<thead> + <tr> + <th data-toggle="true"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_FILENAME_LABEL'); ?> + </th> + <th data-hide="phone"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERMON_LABEL'); ?> + </th> + <th data-hide="phone"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER_LABEL'); ?> + </th> + <th data-hide="phone,tablet"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERIES_LABEL'); ?> + </th> + <th data-hide="phone,tablet"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_COUNTER_LABEL'); ?> + </th> + <th width="10" data-hide="phone,tablet"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_STATUS'); ?> + </th> + <th width="5" data-type="numeric" data-hide="phone,tablet"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_ID'); ?> + </th> + </tr> +</thead> +<tbody> +<?php foreach ($items as $i => $item): ?> + <?php + $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0; + $userChkOut = JFactory::getUser($item->checked_out); + $canDo = SermondistributorHelper::getActions('statistic',$item,'statistics'); + ?> + <tr> + <td class="nowrap"> + <?php if ($canDo->get('statistic.edit')): ?> + <a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=sermon&refid=<?php echo $id; ?>"><?php echo $item->filename; ?></a> + <?php if ($item->checked_out): ?> + <?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'statistics.', $canCheckin); ?> + <?php endif; ?> + <?php else: ?> + <div class="name"><?php echo $item->filename; ?></div> + <?php endif; ?> + </td> + <td> + <?php echo $displayData->escape($item->sermon_name); ?> + </td> + <td class="nowrap"> + <?php if ($user->authorise('preacher.edit', 'com_sermondistributor.preacher.' . (int)$item->preacher)): ?> + <a href="index.php?option=com_sermondistributor&view=preachers&task=preacher.edit&id=<?php echo $item->preacher; ?>&ref=sermon&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->preacher_name); ?></a> + <?php else: ?> + <div class="name"><?php echo $displayData->escape($item->preacher_name); ?></div> + <?php endif; ?> + </td> + <td class="nowrap"> + <?php if ($user->authorise('series.edit', 'com_sermondistributor.series.' . (int)$item->series)): ?> + <a href="index.php?option=com_sermondistributor&view=all_series&task=series.edit&id=<?php echo $item->series; ?>&ref=sermon&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->series_name); ?></a> + <?php else: ?> + <div class="name"><?php echo $displayData->escape($item->series_name); ?></div> + <?php endif; ?> + </td> + <td> + <?php echo $displayData->escape($item->counter); ?> + </td> + <?php if ($item->published == 1):?> + <td class="center" data-value="1"> + <span class="status-metro status-published" title="<?php echo JText::_('PUBLISHED'); ?>"> + <?php echo JText::_('PUBLISHED'); ?> + </span> + </td> + <?php elseif ($item->published == 0):?> + <td class="center" data-value="2"> + <span class="status-metro status-inactive" title="<?php echo JText::_('INACTIVE'); ?>"> + <?php echo JText::_('INACTIVE'); ?> + </span> + </td> + <?php elseif ($item->published == 2):?> + <td class="center" data-value="3"> + <span class="status-metro status-archived" title="<?php echo JText::_('ARCHIVED'); ?>"> + <?php echo JText::_('ARCHIVED'); ?> + </span> + </td> + <?php elseif ($item->published == -2):?> + <td class="center" data-value="4"> + <span class="status-metro status-trashed" title="<?php echo JText::_('ARCHIVED'); ?>"> + <?php echo JText::_('ARCHIVED'); ?> + </span> + </td> + <?php endif; ?> + <td class="nowrap center hidden-phone"> + <?php echo $item->id; ?> + </td> + </tr> +<?php endforeach; ?> +</tbody> +<tfoot class="hide-if-no-paging"> + <tr> + <td colspan="7"> + <div class="pagination pagination-centered"></div> + </td> + </tr> +</tfoot> +</table> +<?php else: ?> + <div class="alert alert-no-items"> + <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> + </div> +<?php endif; ?> +</div> diff --git a/admin/layouts/statistic/details_above.php b/admin/layouts/statistic/details_above.php new file mode 100644 index 00000000..a5fbcf87 --- /dev/null +++ b/admin/layouts/statistic/details_above.php @@ -0,0 +1,37 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_above.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = array( + 'filename', + 'sermon' +); + +?> +<div class="form-inline form-inline-header"> + <?php foreach($fields as $field){ + echo $form->renderField($field); + } ?> +</div> diff --git a/admin/layouts/statistic/details_left.php b/admin/layouts/statistic/details_left.php new file mode 100644 index 00000000..be3fecee --- /dev/null +++ b/admin/layouts/statistic/details_left.php @@ -0,0 +1,50 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_left.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'preacher', + 'series' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/statistic/details_right.php b/admin/layouts/statistic/details_right.php new file mode 100644 index 00000000..9327f3fb --- /dev/null +++ b/admin/layouts/statistic/details_right.php @@ -0,0 +1,49 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage details_right.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'counter' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/statistic/index.html b/admin/layouts/statistic/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/layouts/statistic/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/layouts/statistic/metadata.php b/admin/layouts/statistic/metadata.php new file mode 100644 index 00000000..5368e161 --- /dev/null +++ b/admin/layouts/statistic/metadata.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage metadata.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +// JLayout for standard handling of metadata fields in the administrator content edit screens. +$fieldSets = $form->getFieldsets('metadata'); +?> + +<?php foreach ($fieldSets as $name => $fieldSet) : ?> + <?php if (isset($fieldSet->description) && trim($fieldSet->description)) : ?> + <p class="alert alert-info"><?php echo $this->escape(JText::_($fieldSet->description)); ?></p> + <?php endif; ?> + + <?php + // Include the real fields in this panel. + if ($name == 'vdmmetadata') + { + echo $form->renderField('metadesc'); + echo $form->renderField('metakey'); + } + + foreach ($form->getFieldset($name) as $field) + { + if ($field->name != 'jform[metadata][tags][]') + { + echo $field->renderField(); + } + } ?> +<?php endforeach; ?> diff --git a/admin/layouts/statistic/publishing.php b/admin/layouts/statistic/publishing.php new file mode 100644 index 00000000..9148e7dc --- /dev/null +++ b/admin/layouts/statistic/publishing.php @@ -0,0 +1,59 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage publishing.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$app = JFactory::getApplication(); +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'created', + 'created_by', + 'modified', + 'modified_by', + 'published', + 'ordering', + 'access', + 'version', + 'hits', + 'id' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/models/ajax.php b/admin/models/ajax.php new file mode 100644 index 00000000..ba34d10f --- /dev/null +++ b/admin/models/ajax.php @@ -0,0 +1,577 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage ajax.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +jimport('joomla.application.component.helper'); + +/** + * Sermondistributor Ajax Model + */ +class SermondistributorModelAjax extends JModelList +{ + protected $app_params; + + public function __construct() + { + parent::__construct(); + // get params + $this->app_params = JComponentHelper::getParams('com_sermondistributor'); + + } + + // [8882] Used in sermon + /** + * Check and Set Dropbox local listing + **/ + public function dropbox($view) + { + // we update both if posible + $types = array('manual','auto'); + foreach ($types as $type) + { + // run the update + if (SermondistributorHelper::updateDropbox($type)) + { + // now update the system if needed + if ('auto' == $type) + { + $this->updateSystemWithDropbox(); + } + } + } + return true; + } + + /** + * Update Dropbox local listing + **/ + public function updateDropbox($type) + { + if (1 == $type) + { + $type = 'manual'; + } + elseif (2 == $type) + { + $type = 'auto'; + } + // the types allowed + $types = array('manual','auto'); + // check the type + if (SermondistributorHelper::checkString($type) && in_array($type,$types)) + { + // run the update + if (SermondistributorHelper::updateDropbox($type,true)) + { + // now update the system if needed + if ('auto' == $type) + { + $this->updateSystemWithDropbox(); + } + return true; + } + } + return false; + } + + /** + * Status of update progress of the local listing + **/ + public function updateProgress($type) + { + if (1 == $type) + { + $type = 'manual'; + } + elseif (2 == $type) + { + $type = 'auto'; + } + // the types allowed + $types = array('manual','auto'); + // check the type + if (SermondistributorHelper::checkString($type) && in_array($type,$types)) + { + // return the update progress + return SermondistributorHelper::getUpdateProgress($type); + } + return false; + } + + /** + * Update the System with Dropbox local listing + **/ + protected function updateSystemWithDropbox() + { + // check if we should update with auto listing + $links_dropbox_auto = SermondistributorHelper::getDropboxLink('auto', 2); + if (SermondistributorHelper::checkArray($links_dropbox_auto)) + { + $bucket = array(); + $db = JFactory::getDbo(); + // load system aliases + $this->getSermonAliasesUsed($db); + // set the class var for sermons + $this->sermons = new stdClass(); + // we must first get all the preacher names + foreach ($links_dropbox_auto as $placeholder => $link) + { + // convert the name to get needed info + $name = str_replace('VDM_pLeK_h0uEr/', '', $placeholder); + $chunks = (array) explode('/', $name); + // set some defaults + $preacherName = ''; + $seriesName = ''; + $preacher = 0; + $series = 0; + $nr = 0; + foreach ($chunks as $chunk) + { + if ($nr == 0 && strpos($chunk,'.') === false) + { + $preacherName = str_replace('-', ' ', str_replace('_', ' ', $chunk)); + $preacherName = trim(preg_replace('/\s+/', ' ', urldecode($preacherName))); + $preacher = $this->getIdByName($preacherName,'preacher',$db); + } + elseif ($nr == 1 && strpos($chunk,'.') === false) + { + $seriesName = str_replace('-', ' ', str_replace('_', ' ', $chunk)); + $seriesName = trim(preg_replace('/\s+/', ' ', urldecode($seriesName))); + $series = $this->getIdByName($seriesName,'series',$db); + } + elseif (($nr == 2 || $nr == 1) && strpos($chunk,'.') !== false) + { + $chunk = urldecode($chunk); + // load thise sermon data to the global object + $this->loadSermonData($preacher,$preacherName,$series,$seriesName,$chunk,$placeholder,$db); + } + $nr++; + } + } + return $this->setSermons($db); + } + return false; + } + + protected function setSermons($db) + { + // check if we have values + if (SermondistributorHelper::checkObject($this->sermons)) + { + foreach ($this->sermons as $sermon) + { + // make sure the lock is removed + unset($sermon->lock); + // convert the placeholders to json object + $registry = new JRegistry; + $registry->loadArray($sermon->auto_sermons); + $sermon->auto_sermons = (string) $registry; + // always the same + $sermon->link_type = $this->app_params->get('auto_link_type', 1); + $sermon->source = 2; + $sermon->build = 2; + // reset id + $aId = 0; + if (isset($sermon->id) && $sermon->id) + { + // change to modified + $sermon->modified = $sermon->created; + // make sure we dont change these if + // the sermon is being updated + unset($sermon->created); + unset($sermon->metadesc); + unset($sermon->metakey); + unset($sermon->metadata); + + // update + $done = $db->updateObject('#__sermondistributor_sermon', $sermon, 'id'); + if ($done) + { + $aId = $sermon->id; + } + } + else + { + // add some defaults + $sermon->version = 1; + $sermon->published = $this->app_params->get('sermon_state', 1); + $sermon->access = 1; // TODO must use a global setting here + $sermon->metakey = implode(', ',array_unique($sermon->metakey)); + // insert + $done = $db->insertObject('#__sermondistributor_sermon', $sermon); + if ($done) + { + $aId = $db->insertid(); + // make sure the access of asset is set + SermondistributorHelper::setAsset($aId,'sermon'); + } + } + // set global id list + if ($aId > 0) + { + $this->allSermons[] = $aId; + } + } + } + return $this->allSermonsCheckStatus($db); + } + + protected function allSermonsCheckStatus($db) + { + $query = $db->getQuery(true); + // Fields to update. + $fields = array( + $db->quoteName('published') . ' = 0' + ); + if (isset($this->allSermons) && SermondistributorHelper::checkArray($this->allSermons)) + { + // unpublish those AUTO sermons not found in this id list + $conditions = array( + $db->quoteName('source') . ' = 2', + $db->quoteName('build') . ' = 2', + $db->quoteName('id') . ' NOT IN (' . implode(',',$this->allSermons) . ')' + ); + } + else + { + // unpublish all AUTO sermons + $conditions = array( + $db->quoteName('source') . ' = 2', + $db->quoteName('build') . ' = 2' + ); + } + $query->update($db->quoteName('#__sermondistributor_sermon'))->set($fields)->where($conditions); + $db->setQuery($query); + return $db->execute(); + } + + + protected function loadSermonData($preacher,$preacherName,$series,$seriesName,$sermon,$placeholder,$db) + { + // 34key521__the_file_name___tag1_tag-with2_tag-three____Salvation_Messages_____The_short_description_can_only_be_one_sentence.mp3 + $description = ''; + $category = 0; + $tags = false; + $combined = false; + // remove the file type from the string + $fileType = pathinfo($sermon, PATHINFO_EXTENSION); + if ($fileType) + { + $sermon = str_replace('.'.$fileType, '', $sermon); + } + else + { + $fileType = 'error'; + } + // first we check if this file has discription + if (strpos($sermon,'_____') !== false) + { + list($sermon, $description) = explode('_____', $sermon); + $description = preg_replace('/\s+/', ' ', str_replace('-', ' ', str_replace('_', ' ', $description))).'.'; + } + // second we check if this file has category + if (strpos($sermon,'____') !== false) + { + list($sermon, $categoryName) = explode('____', $sermon); + $categoryName = preg_replace('/\s+/', ' ', str_replace('-', ' ', str_replace('_', ' ',$categoryName))); + $category = $this->getCatogoryId($categoryName,$db); + } + // third we check if this file has tags + if (strpos($sermon,'___') !== false) + { + list($sermon, $tags) = explode('___', $sermon); // TODO not loading the tags yet, soon... + } + // forth we check if this file is combined with another + if (strpos($sermon,'__') !== false) + { + list($key,$sermon) = explode('__', $sermon); + $key = md5($key); + $combined = true; + } + else + { + $key = md5($sermon.$preacher.$series.$category); + } + // set the name of the sermon + $name = trim(preg_replace('/\s+/', ' ', str_replace('-', ' ', str_replace('_', ' ', $sermon)))); + // check if this sermon has been set + if (isset($this->sermons->$key)) + { + $SERMON = strtoupper($sermon); + if ($combined && $sermon == $SERMON) + { + $name = ucfirst(strtolower($name)); + $this->sermons->$key->name = $name; + // make sure we always use the new name as alias + $this->sermons->$key->alias = $this->getAlias($name,'sermon'); + // lock item so other will not change the name + $this->sermons->$key->lock = true; + } + elseif ($combined && !isset($this->sermons->$key->lock) && strlen($name) > strlen($this->sermons->$key->name)) + { + $this->sermons->$key->name = $name; + // make sure we always use the new name as alias + $this->sermons->$key->alias = $this->getAlias($name,'sermon'); + } + } + else + { + // load the sermon data + $this->sermons->$key = new stdClass(); + } + // check if this value has been set + if (!isset($this->sermons->$key->alias)) + { + // make sure we always use the new name as alias + $this->sermons->$key->alias = $this->getAlias($name,'sermon'); + } + + // check if this item exist (update if it does) + $id = $this->getSermonId($this->sermons->$key->alias,$preacher,$db); + if ($id) + { + $this->sermons->$key->id = $id; + } + // check if this value has been set + if (!isset($this->sermons->$key->name)) + { + $this->sermons->$key->name = $name; + } + // check if this value has been set + if (!isset($this->sermons->$key->short_description) && SermondistributorHelper::checkString($description)) + { + $this->sermons->$key->short_description = $description; + } + // check if this value has been set + if (!isset($this->sermons->$key->preacher) && $preacher > 0) + { + $this->sermons->$key->preacher = $preacher; + } + // check if this value has been set + if (!isset($this->sermons->$key->series) && $series > 0) + { + $this->sermons->$key->series = $series; + } + // check if this value has been set + if (!isset($this->sermons->$key->catid) && $category > 0) + { + $this->sermons->$key->catid = $category; + } + // check if this value has been set + if (!isset($this->sermons->$key->created)) + { + // set the date object + $date = JFactory::getDate(); + $this->sermons->$key->created = $date->toSql(); + } + // build the Download File NAme - first add the preacher name if set + if ($preacher) + { + $downloadName[] = SermondistributorHelper::safeString($preacherName,'U'); + } + // add the series name if set + if ($series) + { + $downloadName[] = SermondistributorHelper::safeString($seriesName,'F'); + } + // add the category name if set + if ($category) + { + $downloadName[] = SermondistributorHelper::safeString($categoryName, 'F'); + } + // add the main file name + $downloadName[] = SermondistributorHelper::safeString($name,'F'); + // now build the download file name + $downloadName = implode('__', $downloadName).'.'.$fileType; + // load the placeholder to the sermon + $this->sermons->$key->auto_sermons[$downloadName] = $placeholder; + // set default metadate + if (!isset($this->sermons->$key->metadesc) && SermondistributorHelper::checkString($description)) + { + // Only process once per/sermon + $bad_characters = array("\"", "<", ">"); + $this->sermons->$key->metadesc = JString::str_ireplace($bad_characters, "", $description); // just to be save + } + // Array of characters to remove. + $bad_characters = array("\n", "\r", "\"", "<", ">"); + // set the meta key words + $this->sermons->$key->metakey[] = trim(JString::str_ireplace($bad_characters, '', $name)); // just to be save + if ($series) + { + $this->sermons->$key->metakey[] = trim(JString::str_ireplace($bad_characters, '', $seriesName)); // just to be save + } + if ($preacher) + { + $this->sermons->$key->metakey[] = trim(JString::str_ireplace($bad_characters, '', $preacherName)); // just to be save + } + if ($category) + { + $this->sermons->$key->metakey[] = trim(JString::str_ireplace($bad_characters, '', $categoryName)); // just to be save + } + $author = ($preacher) ? trim($preacherName): ''; + $this->sermons->$key->metadata = '{"robots":"","author":"'.$author.'","rights":"See our site terms."}'; + + return true; + } + + protected function getAlias($name,$type = false) + { + // sanitize the name to an alias + if (JFactory::getConfig()->get('unicodeslugs') == 1) + { + $alias = JFilterOutput::stringURLUnicodeSlug($name); + } + else + { + $alias = JFilterOutput::stringURLSafe($name); + } + if ($type) + { + return $this->getUniqe($alias,'alias',$type); + } + return $alias; + } + + protected function getIdByName($name,$type,$db) + { + // sanitize the name to an alias + $alias = $this->getAlias($name); + // check if there is a recored + if ($id = SermondistributorHelper::getVar($type, $alias, 'alias', 'id')) + { + return $id; + } + else + { + // check if the name is all lowercase + if ($name == strtolower($name)) + { + // the whole name is lowercase then fix + $name = ucwords($name); + } + // create the record + $object = new stdClass(); + // set the date object + $date = JFactory::getDate(); + // build the object + $object->name = $name; + $object->alias = $alias; + $object->published = $this->app_params->get($type.'_state', 1); + $object->created = $date->toSql(); + $object->version = 1; + $object->access = 1; // TODO must use a global setting here + // Insert the object into the table. + $done = $db->insertObject('#__sermondistributor_'.$type, $object); + // if done return last used id + if ($done) + { + $newId = $db->insertid(); + // make sure the access of asset is set + SermondistributorHelper::setAsset($newId,$type); + return $newId; + } + } + return 0; + } + + protected function getSermonId($alias = false,$preacher,$db) + { + if (!$alias) + { + // sanitize the name to an alias + $alias = $this->getAlias($name,'sermon'); + } + // Create a new query object. + $query = $db->getQuery(true); + $query->select($db->quoteName(array('id'))); + $query->from($db->quoteName('#__sermondistributor_sermon')); + $query->where($db->quoteName('alias') . ' = '. $db->quote($alias)); + $query->where($db->quoteName('preacher') . ' = '. $preacher); + $query->where($db->quoteName('build') . ' = '. 2); + $query->where($db->quoteName('source') . ' = '. 2); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + return $db->loadResult(); + } + return 0; + } + + protected function getCatogoryId($name,$db) + { + // sanitize the name to an alias + $alias = $this->getAlias($name); + // Create a new query object. + $query = $db->getQuery(true); + $query->select($db->quoteName(array('id'))); + $query->from($db->quoteName('#__categories')); + $query->where($db->quoteName('alias') . ' = '. $db->quote($alias)); + $query->where($db->quoteName('extension') . ' = '. $db->quote('com_sermondistributor.sermons')); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + return $db->loadResult(); + } + return 0; // TODO creat a category if not found + } + + /** + * Method to generate a uniqe value. + * + * @param string $field name. + * @param string $value data. + * @param string $type table. + * + * @return string New value. + */ + protected function getUniqe($value,$field,$type) + { + // insure the filed is always uniqe + while (isset($this->uniqeValueArray[$type][$field][$value])) + { + $value = JString::increment($value, 'dash'); + } + $this->uniqeValueArray[$type][$field][$value] = $value; + return $value; + } + + protected function getSermonAliasesUsed($db) + { + // Create a new query object. + $query = $db->getQuery(true); + $query->select($db->quoteName(array('alias'))); + $query->from($db->quoteName('#__sermondistributor_sermon')); + $query->where($db->quoteName('build') . ' != 2'); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + $aliases = $db->loadColumn(); + foreach($aliases as $alias) + { + $this->uniqeValueArray['sermon']['alias'][$alias] = $alias; + } + } + } +} diff --git a/admin/models/fields/articles.php b/admin/models/fields/articles.php new file mode 100644 index 00000000..c6f5d5c3 --- /dev/null +++ b/admin/models/fields/articles.php @@ -0,0 +1,110 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage articles.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the list field type +jimport('joomla.form.helper'); +JFormHelper::loadFieldClass('list'); + +/** + * Articles Form Field class for the Sermondistributor component + */ +class JFormFieldArticles extends JFormFieldList +{ + /** + * The articles field type. + * + * @var string + */ + public $type = 'articles'; + /** + * Override to add new button + * + * @return string The field input markup. + * + * @since 3.2 + */ + protected function getInput() + { + // [7657] see if we should add buttons + $setButton = $this->getAttribute('button'); + // [7659] get html + $html = parent::getInput(); + // [7661] if true set button + if ($setButton === 'true') + { + $user = JFactory::getUser(); + // [7665] only add if user allowed to create article + if ($user->authorise('core.create', 'com_sermondistributor')) + { + // [7683] get the input from url + $jinput = JFactory::getApplication()->input; + // [7685] get the view name & id + $values = $jinput->getArray(array( + 'id' => 'int', + 'view' => 'word' + )); + // [7690] check if new item + $ref = ''; + if (!is_null($values['id']) && strlen($values['view'])) + { + // [7694] only load referal if not new item. + $ref = '&amp;ref=' . $values['view'] . '&amp;refid=' . $values['id']; + } + // [7697] build the button + $button = '<a class="btn btn-small btn-success" + href="index.php?option=com_sermondistributor&amp;view=article&amp;layout=edit'.$ref.'" > + <span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>'; + // [7701] return the button attached to input field + return $html . $button; + } + } + return $html; + } + + /** + * Method to get a list of options for a list input. + * + * @return array An array of JHtml options. + */ + public function getOptions() + { + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + $query->select($db->quoteName(array('a.id','a.title','a.alias'),array('id','article_title','alias'))); + $query->from($db->quoteName('#__content', 'a')); + $query->where($db->quoteName('a.state') . ' = 1'); + $query->order('a.title ASC'); + $db->setQuery((string)$query); + $items = $db->loadObjectList(); + $options = array(); + if ($items) + { + $options[] = JHtml::_('select.option', '', 'Select an Article'); + foreach($items as $item) + { + $options[] = JHtml::_('select.option', $item->id, $item->article_title . ' (' . $item->alias . ')'); + } + } + return $options; + } +} diff --git a/admin/models/fields/dropboxfiles.php b/admin/models/fields/dropboxfiles.php new file mode 100644 index 00000000..31ca09fe --- /dev/null +++ b/admin/models/fields/dropboxfiles.php @@ -0,0 +1,105 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage dropboxfiles.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the list field type +jimport('joomla.form.helper'); +JFormHelper::loadFieldClass('list'); + +/** + * Dropboxfiles Form Field class for the Sermondistributor component + */ +class JFormFieldDropboxfiles extends JFormFieldList +{ + /** + * The dropboxfiles field type. + * + * @var string + */ + public $type = 'dropboxfiles'; + /** + * Override to add new button + * + * @return string The field input markup. + * + * @since 3.2 + */ + protected function getInput() + { + // [7657] see if we should add buttons + $setButton = $this->getAttribute('button'); + // [7659] get html + $html = parent::getInput(); + // [7661] if true set button + if ($setButton === 'true') + { + $user = JFactory::getUser(); + // [7665] only add if user allowed to create + if ($user->authorise('core.create', 'com_sermondistributor')) + { + // [7683] get the input from url + $jinput = JFactory::getApplication()->input; + // [7685] get the view name & id + $values = $jinput->getArray(array( + 'id' => 'int', + 'view' => 'word' + )); + // [7690] check if new item + $ref = ''; + if (!is_null($values['id']) && strlen($values['view'])) + { + // [7694] only load referal if not new item. + $ref = '&amp;ref=' . $values['view'] . '&amp;refid=' . $values['id']; + } + // [7697] build the button + $button = '<a class="btn btn-small btn-success" + href="index.php?option=com_sermondistributor&amp;view=&amp;layout=edit'.$ref.'" > + <span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>'; + // [7701] return the button attached to input field + return $html . $button; + } + } + return $html; + } + + /** + * Method to get a list of options for a list input. + * + * @return array An array of JHtml options. + */ + public function getOptions() + { + // set the default + $options[] = JHtml::_('select.option', '', JText::_('The local listing of the Manual Dropbox folder is empty.')); + $links = SermondistributorHelper::getDropboxLink('manual',2); + if (SermondistributorHelper::checkArray($links)) + { + $options = array(); + foreach ($links as $file => $link) + { + $name = substr($file, strrpos($file, '/') + 1); + $options[] = JHtml::_('select.option', $file, $name); + } + } + return $options; + } +} diff --git a/admin/models/fields/index.html b/admin/models/fields/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/models/fields/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/models/fields/localfiles.php b/admin/models/fields/localfiles.php new file mode 100644 index 00000000..990667c3 --- /dev/null +++ b/admin/models/fields/localfiles.php @@ -0,0 +1,114 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage localfiles.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the list field type +jimport('joomla.form.helper'); +JFormHelper::loadFieldClass('list'); + +/** + * Localfiles Form Field class for the Sermondistributor component + */ +class JFormFieldLocalfiles extends JFormFieldList +{ + /** + * The localfiles field type. + * + * @var string + */ + public $type = 'localfiles'; + /** + * Override to add new button + * + * @return string The field input markup. + * + * @since 3.2 + */ + protected function getInput() + { + // [7657] see if we should add buttons + $setButton = $this->getAttribute('button'); + // [7659] get html + $html = parent::getInput(); + // [7661] if true set button + if ($setButton === 'true') + { + $user = JFactory::getUser(); + // [7665] only add if user allowed to create + if ($user->authorise('core.create', 'com_sermondistributor')) + { + // [7683] get the input from url + $jinput = JFactory::getApplication()->input; + // [7685] get the view name & id + $values = $jinput->getArray(array( + 'id' => 'int', + 'view' => 'word' + )); + // [7690] check if new item + $ref = ''; + if (!is_null($values['id']) && strlen($values['view'])) + { + // [7694] only load referal if not new item. + $ref = '&amp;ref=' . $values['view'] . '&amp;refid=' . $values['id']; + } + // [7697] build the button + $button = '<a class="btn btn-small btn-success" + href="index.php?option=com_sermondistributor&amp;view=&amp;layout=edit'.$ref.'" > + <span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>'; + // [7701] return the button attached to input field + return $html . $button; + } + } + return $html; + } + + /** + * Method to get a list of options for a list input. + * + * @return array An array of JHtml options. + */ + public function getOptions() + { + // get local folder + $localfolder = JComponentHelper::getParams('com_sermondistributor')->get('localfolder', JPATH_ROOT.'/images'); + // set the default + $options[] = JHtml::_('select.option', '', JText::sprintf('Please add files to (%s)',$localfolder)); + // inport all needed classes + jimport('joomla.filesystem.file'); + jimport('joomla.filesystem.folder'); + // setup the folder if it does not exist + if (!JFolder::exists($localfolder)) + { + JFolder::create($localfolder); + } + // now check if there are files in the folder + if ($files = JFolder::files($localfolder)) + { + $options = array(); + foreach ($files as $file) + { + $options[] = JHtml::_('select.option', $file, $file); + } + } + return $options; + } +} diff --git a/admin/models/fields/preachers.php b/admin/models/fields/preachers.php new file mode 100644 index 00000000..b94fed04 --- /dev/null +++ b/admin/models/fields/preachers.php @@ -0,0 +1,110 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage preachers.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the list field type +jimport('joomla.form.helper'); +JFormHelper::loadFieldClass('list'); + +/** + * Preachers Form Field class for the Sermondistributor component + */ +class JFormFieldPreachers extends JFormFieldList +{ + /** + * The preachers field type. + * + * @var string + */ + public $type = 'preachers'; + /** + * Override to add new button + * + * @return string The field input markup. + * + * @since 3.2 + */ + protected function getInput() + { + // [7657] see if we should add buttons + $setButton = $this->getAttribute('button'); + // [7659] get html + $html = parent::getInput(); + // [7661] if true set button + if ($setButton === 'true') + { + $user = JFactory::getUser(); + // [7665] only add if user allowed to create preacher + if ($user->authorise('preacher.create', 'com_sermondistributor')) + { + // [7683] get the input from url + $jinput = JFactory::getApplication()->input; + // [7685] get the view name & id + $values = $jinput->getArray(array( + 'id' => 'int', + 'view' => 'word' + )); + // [7690] check if new item + $ref = ''; + if (!is_null($values['id']) && strlen($values['view'])) + { + // [7694] only load referal if not new item. + $ref = '&amp;ref=' . $values['view'] . '&amp;refid=' . $values['id']; + } + // [7697] build the button + $button = '<a class="btn btn-small btn-success" + href="index.php?option=com_sermondistributor&amp;view=preacher&amp;layout=edit'.$ref.'" > + <span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>'; + // [7701] return the button attached to input field + return $html . $button; + } + } + return $html; + } + + /** + * Method to get a list of options for a list input. + * + * @return array An array of JHtml options. + */ + public function getOptions() + { + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + $query->select($db->quoteName(array('a.id','a.name'),array('id','preacher_name'))); + $query->from($db->quoteName('#__sermondistributor_preacher', 'a')); + $query->where($db->quoteName('a.published') . ' = 1'); + $query->order('a.name ASC'); + $db->setQuery((string)$query); + $items = $db->loadObjectList(); + $options = array(); + if ($items) + { + $options[] = JHtml::_('select.option', '', 'Select a preacher'); + foreach($items as $item) + { + $options[] = JHtml::_('select.option', $item->id, $item->preacher_name); + } + } + return $options; + } +} diff --git a/admin/models/fields/series.php b/admin/models/fields/series.php new file mode 100644 index 00000000..1ceecb35 --- /dev/null +++ b/admin/models/fields/series.php @@ -0,0 +1,110 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage series.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the list field type +jimport('joomla.form.helper'); +JFormHelper::loadFieldClass('list'); + +/** + * Series Form Field class for the Sermondistributor component + */ +class JFormFieldSeries extends JFormFieldList +{ + /** + * The series field type. + * + * @var string + */ + public $type = 'series'; + /** + * Override to add new button + * + * @return string The field input markup. + * + * @since 3.2 + */ + protected function getInput() + { + // [7657] see if we should add buttons + $setButton = $this->getAttribute('button'); + // [7659] get html + $html = parent::getInput(); + // [7661] if true set button + if ($setButton === 'true') + { + $user = JFactory::getUser(); + // [7665] only add if user allowed to create series + if ($user->authorise('series.create', 'com_sermondistributor')) + { + // [7683] get the input from url + $jinput = JFactory::getApplication()->input; + // [7685] get the view name & id + $values = $jinput->getArray(array( + 'id' => 'int', + 'view' => 'word' + )); + // [7690] check if new item + $ref = ''; + if (!is_null($values['id']) && strlen($values['view'])) + { + // [7694] only load referal if not new item. + $ref = '&amp;ref=' . $values['view'] . '&amp;refid=' . $values['id']; + } + // [7697] build the button + $button = '<a class="btn btn-small btn-success" + href="index.php?option=com_sermondistributor&amp;view=series&amp;layout=edit'.$ref.'" > + <span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>'; + // [7701] return the button attached to input field + return $html . $button; + } + } + return $html; + } + + /** + * Method to get a list of options for a list input. + * + * @return array An array of JHtml options. + */ + public function getOptions() + { + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + $query->select($db->quoteName(array('a.id','a.name'),array('id','series_name'))); + $query->from($db->quoteName('#__sermondistributor_series', 'a')); + $query->where($db->quoteName('a.published') . ' = 1'); + $query->order('a.name ASC'); + $db->setQuery((string)$query); + $items = $db->loadObjectList(); + $options = array(); + if ($items) + { + $options[] = JHtml::_('select.option', '', 'Select a series'); + foreach($items as $item) + { + $options[] = JHtml::_('select.option', $item->id, $item->series_name); + } + } + return $options; + } +} diff --git a/admin/models/fields/sermon.php b/admin/models/fields/sermon.php new file mode 100644 index 00000000..356be591 --- /dev/null +++ b/admin/models/fields/sermon.php @@ -0,0 +1,110 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermon.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the list field type +jimport('joomla.form.helper'); +JFormHelper::loadFieldClass('list'); + +/** + * Sermon Form Field class for the Sermondistributor component + */ +class JFormFieldSermon extends JFormFieldList +{ + /** + * The sermon field type. + * + * @var string + */ + public $type = 'sermon'; + /** + * Override to add new button + * + * @return string The field input markup. + * + * @since 3.2 + */ + protected function getInput() + { + // [7657] see if we should add buttons + $setButton = $this->getAttribute('button'); + // [7659] get html + $html = parent::getInput(); + // [7661] if true set button + if ($setButton === 'true') + { + $user = JFactory::getUser(); + // [7665] only add if user allowed to create sermon + if ($user->authorise('sermon.create', 'com_sermondistributor')) + { + // [7683] get the input from url + $jinput = JFactory::getApplication()->input; + // [7685] get the view name & id + $values = $jinput->getArray(array( + 'id' => 'int', + 'view' => 'word' + )); + // [7690] check if new item + $ref = ''; + if (!is_null($values['id']) && strlen($values['view'])) + { + // [7694] only load referal if not new item. + $ref = '&amp;ref=' . $values['view'] . '&amp;refid=' . $values['id']; + } + // [7697] build the button + $button = '<a class="btn btn-small btn-success" + href="index.php?option=com_sermondistributor&amp;view=sermon&amp;layout=edit'.$ref.'" > + <span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>'; + // [7701] return the button attached to input field + return $html . $button; + } + } + return $html; + } + + /** + * Method to get a list of options for a list input. + * + * @return array An array of JHtml options. + */ + public function getOptions() + { + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + $query->select($db->quoteName(array('a.id','a.name'),array('id','sermon_name'))); + $query->from($db->quoteName('#__sermondistributor_sermon', 'a')); + $query->where($db->quoteName('a.published') . ' = 1'); + $query->order('a.name ASC'); + $db->setQuery((string)$query); + $items = $db->loadObjectList(); + $options = array(); + if ($items) + { + $options[] = JHtml::_('select.option', '', 'Select a sermon'); + foreach($items as $item) + { + $options[] = JHtml::_('select.option', $item->id, $item->sermon_name); + } + } + return $options; + } +} diff --git a/admin/models/forms/help_document.js b/admin/models/forms/help_document.js new file mode 100644 index 00000000..102ea871 --- /dev/null +++ b/admin/models/forms/help_document.js @@ -0,0 +1,306 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage help_document.js + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// Some Global Values +jform_lzodvvEVro_required = false; +jform_OgkLNZDeHC_required = false; +jform_cKsbxVZDmX_required = false; +jform_mFxICagiWx_required = false; + +// Initial Script +jQuery(document).ready(function() +{ + var location_xIXXXXY = jQuery("#jform_location input[type='radio']:checked").val(); + xIXXXXY(location_xIXXXXY); + + var location_UvYYxXP = jQuery("#jform_location input[type='radio']:checked").val(); + UvYYxXP(location_UvYYxXP); + + var type_lzodvvE = jQuery("#jform_type").val(); + lzodvvE(type_lzodvvE); + + var type_OgkLNZD = jQuery("#jform_type").val(); + OgkLNZD(type_OgkLNZD); + + var type_cKsbxVZ = jQuery("#jform_type").val(); + cKsbxVZ(type_cKsbxVZ); + + var target_mFxICag = jQuery("#jform_target input[type='radio']:checked").val(); + mFxICag(target_mFxICag); +}); + +// the xIXXXXY function +function xIXXXXY(location_xIXXXXY) +{ + // [7974] set the function logic + if (location_xIXXXXY == 1) + { + jQuery('#jform_admin_view').closest('.control-group').show(); + } + else + { + jQuery('#jform_admin_view').closest('.control-group').hide(); + } +} + +// the UvYYxXP function +function UvYYxXP(location_UvYYxXP) +{ + // [7974] set the function logic + if (location_UvYYxXP == 2) + { + jQuery('#jform_site_view').closest('.control-group').show(); + } + else + { + jQuery('#jform_site_view').closest('.control-group').hide(); + } +} + +// the lzodvvE function +function lzodvvE(type_lzodvvE) +{ + if (isSet(type_lzodvvE) && type_lzodvvE.constructor !== Array) + { + var temp_lzodvvE = type_lzodvvE; + var type_lzodvvE = []; + type_lzodvvE.push(temp_lzodvvE); + } + else if (!isSet(type_lzodvvE)) + { + var type_lzodvvE = []; + } + var type = type_lzodvvE.some(type_lzodvvE_SomeFunc); + + + // [7952] set this function logic + if (type) + { + jQuery('#jform_url').closest('.control-group').show(); + if (jform_lzodvvEVro_required) + { + updateFieldRequired('url',0); + jQuery('#jform_url').prop('required','required'); + jQuery('#jform_url').attr('aria-required',true); + jQuery('#jform_url').addClass('required'); + jform_lzodvvEVro_required = false; + } + + } + else + { + jQuery('#jform_url').closest('.control-group').hide(); + if (!jform_lzodvvEVro_required) + { + updateFieldRequired('url',1); + jQuery('#jform_url').removeAttr('required'); + jQuery('#jform_url').removeAttr('aria-required'); + jQuery('#jform_url').removeClass('required'); + jform_lzodvvEVro_required = true; + } + } +} + +// the lzodvvE Some function +function type_lzodvvE_SomeFunc(type_lzodvvE) +{ + // [7939] set the function logic + if (type_lzodvvE == 3) + { + return true; + } + return false; +} + +// the OgkLNZD function +function OgkLNZD(type_OgkLNZD) +{ + if (isSet(type_OgkLNZD) && type_OgkLNZD.constructor !== Array) + { + var temp_OgkLNZD = type_OgkLNZD; + var type_OgkLNZD = []; + type_OgkLNZD.push(temp_OgkLNZD); + } + else if (!isSet(type_OgkLNZD)) + { + var type_OgkLNZD = []; + } + var type = type_OgkLNZD.some(type_OgkLNZD_SomeFunc); + + + // [7952] set this function logic + if (type) + { + jQuery('#jform_article').closest('.control-group').show(); + if (jform_OgkLNZDeHC_required) + { + updateFieldRequired('article',0); + jQuery('#jform_article').prop('required','required'); + jQuery('#jform_article').attr('aria-required',true); + jQuery('#jform_article').addClass('required'); + jform_OgkLNZDeHC_required = false; + } + + } + else + { + jQuery('#jform_article').closest('.control-group').hide(); + if (!jform_OgkLNZDeHC_required) + { + updateFieldRequired('article',1); + jQuery('#jform_article').removeAttr('required'); + jQuery('#jform_article').removeAttr('aria-required'); + jQuery('#jform_article').removeClass('required'); + jform_OgkLNZDeHC_required = true; + } + } +} + +// the OgkLNZD Some function +function type_OgkLNZD_SomeFunc(type_OgkLNZD) +{ + // [7939] set the function logic + if (type_OgkLNZD == 1) + { + return true; + } + return false; +} + +// the cKsbxVZ function +function cKsbxVZ(type_cKsbxVZ) +{ + if (isSet(type_cKsbxVZ) && type_cKsbxVZ.constructor !== Array) + { + var temp_cKsbxVZ = type_cKsbxVZ; + var type_cKsbxVZ = []; + type_cKsbxVZ.push(temp_cKsbxVZ); + } + else if (!isSet(type_cKsbxVZ)) + { + var type_cKsbxVZ = []; + } + var type = type_cKsbxVZ.some(type_cKsbxVZ_SomeFunc); + + + // [7952] set this function logic + if (type) + { + jQuery('#jform_content-lbl').closest('.control-group').show(); + if (jform_cKsbxVZDmX_required) + { + updateFieldRequired('content',0); + jQuery('#jform_content').prop('required','required'); + jQuery('#jform_content').attr('aria-required',true); + jQuery('#jform_content').addClass('required'); + jform_cKsbxVZDmX_required = false; + } + + } + else + { + jQuery('#jform_content-lbl').closest('.control-group').hide(); + if (!jform_cKsbxVZDmX_required) + { + updateFieldRequired('content',1); + jQuery('#jform_content').removeAttr('required'); + jQuery('#jform_content').removeAttr('aria-required'); + jQuery('#jform_content').removeClass('required'); + jform_cKsbxVZDmX_required = true; + } + } +} + +// the cKsbxVZ Some function +function type_cKsbxVZ_SomeFunc(type_cKsbxVZ) +{ + // [7939] set the function logic + if (type_cKsbxVZ == 2) + { + return true; + } + return false; +} + +// the mFxICag function +function mFxICag(target_mFxICag) +{ + // [7974] set the function logic + if (target_mFxICag == 1) + { + jQuery('#jform_groups').closest('.control-group').show(); + if (jform_mFxICagiWx_required) + { + updateFieldRequired('groups',0); + jQuery('#jform_groups').prop('required','required'); + jQuery('#jform_groups').attr('aria-required',true); + jQuery('#jform_groups').addClass('required'); + jform_mFxICagiWx_required = false; + } + + } + else + { + jQuery('#jform_groups').closest('.control-group').hide(); + if (!jform_mFxICagiWx_required) + { + updateFieldRequired('groups',1); + jQuery('#jform_groups').removeAttr('required'); + jQuery('#jform_groups').removeAttr('aria-required'); + jQuery('#jform_groups').removeClass('required'); + jform_mFxICagiWx_required = true; + } + } +} + +// update required fields +function updateFieldRequired(name,status) +{ + var not_required = jQuery('#jform_not_required').val(); + + if(status == 1) + { + if (isSet(not_required) && not_required != 0) + { + not_required = not_required+','+name; + } + else + { + not_required = ','+name; + } + } + else + { + if (isSet(not_required) && not_required != 0) + { + not_required = not_required.replace(','+name,''); + } + } + + jQuery('#jform_not_required').val(not_required); +} + +// the isSet function +function isSet(val) +{ + if ((val != undefined) && (val != null) && 0 !== val.length){ + return true; + } + return false; +} diff --git a/admin/models/forms/help_document.xml b/admin/models/forms/help_document.xml new file mode 100644 index 00000000..557a8047 --- /dev/null +++ b/admin/models/forms/help_document.xml @@ -0,0 +1,300 @@ +<?xml version="1.0" encoding="utf-8"?> +<form + addrulepath="/administrator/components/com_sermondistributor/models/rules" + addfieldpath="/administrator/components/com_sermondistributor/models/fields" +> + <fieldset name="details"> + <!-- [10985] Default Fields. --> + <!-- [10986] Id Field. Type: Text (joomla) --> + <field + name="id" + type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL" + description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0" + readonly="true" + /> + <!-- [10993] Date Created Field. Type: Calendar (joomla) --> + <field + name="created" + type="calendar" + label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CREATED_DATE_LABEL" + description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CREATED_DATE_DESC" + size="22" + format="%Y-%m-%d %H:%M:%S" + filter="user_utc" + /> + <!-- [11004] User Created Field. Type: User (joomla) --> + <field + name="created_by" + type="user" + label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CREATED_BY_LABEL" + description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CREATED_BY_DESC" + /> + <!-- [11012] Published Field. Type: List (joomla) --> + <field name="published" type="list" label="JSTATUS" + description="JFIELD_PUBLISHED_DESC" class="chzn-color-state" + filter="intval" size="1" default="1" > + <option value="1"> + JPUBLISHED</option> + <option value="0"> + JUNPUBLISHED</option> + <option value="2"> + JARCHIVED</option> + <option value="-2"> + JTRASHED</option> + </field> + <!-- [11027] Date Modified Field. Type: Calendar (joomla) --> + <field name="modified" type="calendar" class="readonly" + label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC" + size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" /> + <!-- [11031] User Modified Field. Type: User (joomla) --> + <field name="modified_by" type="user" + label="JGLOBAL_FIELD_MODIFIED_BY_LABEL" + class="readonly" + readonly="true" + filter="unset" + /> + <!-- [11041] Access Field. Type: Accesslevel (joomla) --> + <field name="access" + type="accesslevel" + label="JFIELD_ACCESS_LABEL" + description="JFIELD_ACCESS_DESC" + default="1" + required="false" + /> + <!-- [11051] Ordering Field. Type: Numbers (joomla) --> + <field + name="ordering" + type="number" + class="inputbox validate-ordering" + label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ORDERING_LABEL" + description="" + default="0" + size="6" + required="false" + /> + <!-- [11063] Version Field. Type: Text (joomla) --> + <field + name="version" + type="text" + class="readonly" + label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_VERSION_LABEL" + description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_VERSION_DESC" + size="6" + readonly="true" + filter="unset" + /> + <!-- [11077] Metakey Field. Type: Textarea (joomla) --> + <field + name="metakey" + type="textarea" + label="JFIELD_META_KEYWORDS_LABEL" + description="JFIELD_META_KEYWORDS_DESC" + rows="3" + cols="30" + /> + <!-- [11086] Metadesc Field. Type: Textarea (joomla) --> + <field + name="metadesc" + type="textarea" + label="JFIELD_META_DESCRIPTION_LABEL" + description="JFIELD_META_DESCRIPTION_DESC" + rows="3" + cols="30" + /> + <!-- [11096] Dynamic Fields. --> + <!-- [11332] Title Field. Type: Text. (joomla) --> + <field + type="text" + name="title" + label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TITLE_LABEL" + size="40" + maxlength="150" + description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TITLE_DESCRIPTION" + class="text_area" + readonly="false" + disabled="false" + required="true" + filter="STRING" + message="Error! Please add title here." + hint="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TITLE_HINT" + /> + <!-- [11246] Type Field. Type: List. (joomla) --> + <field + type="list" + name="type" + label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TYPE_LABEL" + description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TYPE_DESCRIPTION" + class="list_class" + multiple="false" + required="true"> + <!-- [11318] Option Set. --> + <option value=""> + COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SELECT_AN_OPTION</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_JOOMLA_ARTICLE</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TEXT</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL</option> + </field> + <!-- [11332] Groups Field. Type: Usergroup. (joomla) --> + <field + type="usergroup" + name="groups" + label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_GROUPS_LABEL" + description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_GROUPS_DESCRIPTION" + required="true" + multiple="true" + /> + <!-- [11246] Location Field. Type: Radio. (joomla) --> + <field + type="radio" + name="location" + label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_LOCATION_LABEL" + description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_LOCATION_DESCRIPTION" + class="btn-group" + required="true"> + <!-- [11318] Option Set. --> + <option value="1"> + COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE</option> + </field> + <!-- [11332] Admin_view Field. Type: Folderlist. (joomla) --> + <field + type="folderlist" + name="admin_view" + label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN_VIEW_LABEL" + directory="/administrator/components/com_sermondistributor/views" + description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN_VIEW_DESCRIPTION" + hide_none="true" + hide_default="true" + /> + <!-- [11332] Site_view Field. Type: Folderlist. (joomla) --> + <field + type="folderlist" + name="site_view" + label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE_VIEW_LABEL" + directory="/components/com_sermondistributor/views" + description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE_VIEW_DESCRIPTION" + hide_none="true" + hide_default="true" + /> + <!-- [11246] Target Field. Type: Radio. (joomla) --> + <field + type="radio" + name="target" + label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TARGET_LABEL" + description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TARGET_DESCRIPTION" + class="btn-group" + required="true"> + <!-- [11318] Option Set. --> + <option value="1"> + COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SOME</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ALL</option> + </field> + <!-- [11332] Content Field. Type: Editor. (joomla) --> + <field + type="editor" + name="content" + label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CONTENT_LABEL" + width="100%" + height="300 px" + buttons="false" + filter="safehtml" + required="true" + /> + <!-- [11332] Alias Field. Type: Text. (joomla) --> + <field + type="text" + name="alias" + label="JFIELD_ALIAS_LABEL" + description="JFIELD_ALIAS_DESC" + filter="STRING" + hint="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ALIAS_HINT" + /> + <!-- [11453] Article Field. Type: Articles. (custom) --> + <field + type="articles" + name="article" + label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ARTICLE_LABEL" + class="list_class" + multiple="false" + default="0" + required="true" + /> + <!-- [11332] Url Field. Type: Url. (joomla) --> + <field + type="url" + name="url" + label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL_LABEL" + size="60" + maxlength="150" + description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL_DESCRIPTION" + class="text_area" + required="true" + filter="url" + validated="url" + message="Error! Please add url here." + hint="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL_HINT" + /> + <!-- [11332] Not_required Field. Type: Hidden. (joomla) --> + <field + type="hidden" + name="not_required" + default="[]" + /> + </fieldset> + + <!-- [11115] Metadata Fields. --> + <fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS"> + <fieldset name="vdmmetadata" + label="JGLOBAL_FIELDSET_METADATA_OPTIONS"> + <!-- [11119] Robots Field. Type: List (joomla) --> + <field name="robots" + type="list" + label="JFIELD_METADATA_ROBOTS_LABEL" + description="JFIELD_METADATA_ROBOTS_DESC" > + <option value="">JGLOBAL_USE_GLOBAL</option> + <option value="index, follow">JGLOBAL_INDEX_FOLLOW</option> + <option value="noindex, follow">JGLOBAL_NOINDEX_FOLLOW</option> + <option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option> + <option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option> + </field> + <!-- [11130] Author Field. Type: Text (joomla) --> + <field name="author" + type="text" + label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC" + size="20" + /> + <!-- [11136] Rights Field. Type: Textarea (joomla) --> + <field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL" + description="JFIELD_META_RIGHTS_DESC" required="false" filter="string" + cols="30" rows="2" + /> + </fieldset> + </fields> + + <!-- [10019] Access Control Fields. --> + <fieldset name="accesscontrol"> + <!-- [10021] Asset Id Field. Type: Hidden (joomla) --> + <field + name="asset_id" + type="hidden" + filter="unset" + /> + <!-- [10027] Rules Field. Type: Rules (joomla) --> + <field + name="rules" + type="rules" + label="Permissions in relation to this help_document" + translate_label="false" + filter="rules" + validate="rules" + class="inputbox" + component="com_sermondistributor" + section="help_document" + /> + </fieldset> +</form> \ No newline at end of file diff --git a/admin/models/forms/index.html b/admin/models/forms/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/models/forms/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/models/forms/preacher.js b/admin/models/forms/preacher.js new file mode 100644 index 00000000..2dcec684 --- /dev/null +++ b/admin/models/forms/preacher.js @@ -0,0 +1,20 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage preacher.js + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + + diff --git a/admin/models/forms/preacher.xml b/admin/models/forms/preacher.xml new file mode 100644 index 00000000..6aeb4e34 --- /dev/null +++ b/admin/models/forms/preacher.xml @@ -0,0 +1,231 @@ +<?xml version="1.0" encoding="utf-8"?> +<form + addrulepath="/administrator/components/com_sermondistributor/models/rules" + addfieldpath="/administrator/components/com_sermondistributor/models/fields" +> + <fieldset name="details"> + <!-- [10985] Default Fields. --> + <!-- [10986] Id Field. Type: Text (joomla) --> + <field + name="id" + type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL" + description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0" + readonly="true" + /> + <!-- [10993] Date Created Field. Type: Calendar (joomla) --> + <field + name="created" + type="calendar" + label="COM_SERMONDISTRIBUTOR_PREACHER_CREATED_DATE_LABEL" + description="COM_SERMONDISTRIBUTOR_PREACHER_CREATED_DATE_DESC" + size="22" + format="%Y-%m-%d %H:%M:%S" + filter="user_utc" + /> + <!-- [11004] User Created Field. Type: User (joomla) --> + <field + name="created_by" + type="user" + label="COM_SERMONDISTRIBUTOR_PREACHER_CREATED_BY_LABEL" + description="COM_SERMONDISTRIBUTOR_PREACHER_CREATED_BY_DESC" + /> + <!-- [11012] Published Field. Type: List (joomla) --> + <field name="published" type="list" label="JSTATUS" + description="JFIELD_PUBLISHED_DESC" class="chzn-color-state" + filter="intval" size="1" default="1" > + <option value="1"> + JPUBLISHED</option> + <option value="0"> + JUNPUBLISHED</option> + <option value="2"> + JARCHIVED</option> + <option value="-2"> + JTRASHED</option> + </field> + <!-- [11027] Date Modified Field. Type: Calendar (joomla) --> + <field name="modified" type="calendar" class="readonly" + label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC" + size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" /> + <!-- [11031] User Modified Field. Type: User (joomla) --> + <field name="modified_by" type="user" + label="JGLOBAL_FIELD_MODIFIED_BY_LABEL" + class="readonly" + readonly="true" + filter="unset" + /> + <!-- [11041] Access Field. Type: Accesslevel (joomla) --> + <field name="access" + type="accesslevel" + label="JFIELD_ACCESS_LABEL" + description="JFIELD_ACCESS_DESC" + default="1" + required="false" + /> + <!-- [11051] Ordering Field. Type: Numbers (joomla) --> + <field + name="ordering" + type="number" + class="inputbox validate-ordering" + label="COM_SERMONDISTRIBUTOR_PREACHER_ORDERING_LABEL" + description="" + default="0" + size="6" + required="false" + /> + <!-- [11063] Version Field. Type: Text (joomla) --> + <field + name="version" + type="text" + class="readonly" + label="COM_SERMONDISTRIBUTOR_PREACHER_VERSION_LABEL" + description="COM_SERMONDISTRIBUTOR_PREACHER_VERSION_DESC" + size="6" + readonly="true" + filter="unset" + /> + <!-- [11077] Metakey Field. Type: Textarea (joomla) --> + <field + name="metakey" + type="textarea" + label="JFIELD_META_KEYWORDS_LABEL" + description="JFIELD_META_KEYWORDS_DESC" + rows="3" + cols="30" + /> + <!-- [11086] Metadesc Field. Type: Textarea (joomla) --> + <field + name="metadesc" + type="textarea" + label="JFIELD_META_DESCRIPTION_LABEL" + description="JFIELD_META_DESCRIPTION_DESC" + rows="3" + cols="30" + /> + <!-- [11096] Dynamic Fields. --> + <!-- [11332] Name Field. Type: Text. (joomla) --> + <field + type="text" + name="name" + label="COM_SERMONDISTRIBUTOR_PREACHER_NAME_LABEL" + size="40" + maxlength="150" + description="COM_SERMONDISTRIBUTOR_PREACHER_NAME_DESCRIPTION" + class="text_area" + readonly="false" + disabled="false" + required="true" + filter="STRING" + message="Error! Please add name here." + hint="COM_SERMONDISTRIBUTOR_PREACHER_NAME_HINT" + /> + <!-- [11332] Description Field. Type: Editor. (joomla) --> + <field + type="editor" + name="description" + label="COM_SERMONDISTRIBUTOR_PREACHER_DESCRIPTION_LABEL" + width="100%" + height="500" + cols="13" + rows="50" + buttons="false" + filter="safehtml" + /> + <!-- [11332] Alias Field. Type: Text. (joomla) --> + <field + type="text" + name="alias" + label="JFIELD_ALIAS_LABEL" + description="JFIELD_ALIAS_DESC" + filter="STRING" + hint="COM_SERMONDISTRIBUTOR_PREACHER_ALIAS_HINT" + /> + <!-- [11332] Email Field. Type: Text. (joomla) --> + <field + type="text" + name="email" + label="COM_SERMONDISTRIBUTOR_PREACHER_EMAIL_LABEL" + size="10" + maxlength="50" + description="COM_SERMONDISTRIBUTOR_PREACHER_EMAIL_DESCRIPTION" + class="text_area" + required="false" + filter="STRING" + validate="email" + message="Error! Please add email address here." + hint="COM_SERMONDISTRIBUTOR_PREACHER_EMAIL_HINT" + /> + <!-- [11332] Website Field. Type: Url. (joomla) --> + <field + type="url" + name="website" + label="COM_SERMONDISTRIBUTOR_PREACHER_WEBSITE_LABEL" + size="60" + maxlength="150" + description="COM_SERMONDISTRIBUTOR_PREACHER_WEBSITE_DESCRIPTION" + class="text_area" + filter="url" + validated="url" + message="Error! Please add website here." + hint="COM_SERMONDISTRIBUTOR_PREACHER_WEBSITE_HINT" + /> + <!-- [11332] Icon Field. Type: Media. (joomla) --> + <field + type="media" + name="icon" + label="COM_SERMONDISTRIBUTOR_PREACHER_ICON_LABEL" + description="COM_SERMONDISTRIBUTOR_PREACHER_ICON_DESCRIPTION" + directory="" + /> + </fieldset> + + <!-- [11115] Metadata Fields. --> + <fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS"> + <fieldset name="vdmmetadata" + label="JGLOBAL_FIELDSET_METADATA_OPTIONS"> + <!-- [11119] Robots Field. Type: List (joomla) --> + <field name="robots" + type="list" + label="JFIELD_METADATA_ROBOTS_LABEL" + description="JFIELD_METADATA_ROBOTS_DESC" > + <option value="">JGLOBAL_USE_GLOBAL</option> + <option value="index, follow">JGLOBAL_INDEX_FOLLOW</option> + <option value="noindex, follow">JGLOBAL_NOINDEX_FOLLOW</option> + <option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option> + <option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option> + </field> + <!-- [11130] Author Field. Type: Text (joomla) --> + <field name="author" + type="text" + label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC" + size="20" + /> + <!-- [11136] Rights Field. Type: Textarea (joomla) --> + <field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL" + description="JFIELD_META_RIGHTS_DESC" required="false" filter="string" + cols="30" rows="2" + /> + </fieldset> + </fields> + + <!-- [10019] Access Control Fields. --> + <fieldset name="accesscontrol"> + <!-- [10021] Asset Id Field. Type: Hidden (joomla) --> + <field + name="asset_id" + type="hidden" + filter="unset" + /> + <!-- [10027] Rules Field. Type: Rules (joomla) --> + <field + name="rules" + type="rules" + label="Permissions in relation to this preacher" + translate_label="false" + filter="rules" + validate="rules" + class="inputbox" + component="com_sermondistributor" + section="preacher" + /> + </fieldset> +</form> \ No newline at end of file diff --git a/admin/models/forms/series.js b/admin/models/forms/series.js new file mode 100644 index 00000000..5f2710f2 --- /dev/null +++ b/admin/models/forms/series.js @@ -0,0 +1,20 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage series.js + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + + diff --git a/admin/models/forms/series.xml b/admin/models/forms/series.xml new file mode 100644 index 00000000..95f50f88 --- /dev/null +++ b/admin/models/forms/series.xml @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<form + addrulepath="/administrator/components/com_sermondistributor/models/rules" + addfieldpath="/administrator/components/com_sermondistributor/models/fields" +> + <fieldset name="details"> + <!-- [10985] Default Fields. --> + <!-- [10986] Id Field. Type: Text (joomla) --> + <field + name="id" + type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL" + description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0" + readonly="true" + /> + <!-- [10993] Date Created Field. Type: Calendar (joomla) --> + <field + name="created" + type="calendar" + label="COM_SERMONDISTRIBUTOR_SERIES_CREATED_DATE_LABEL" + description="COM_SERMONDISTRIBUTOR_SERIES_CREATED_DATE_DESC" + size="22" + format="%Y-%m-%d %H:%M:%S" + filter="user_utc" + /> + <!-- [11004] User Created Field. Type: User (joomla) --> + <field + name="created_by" + type="user" + label="COM_SERMONDISTRIBUTOR_SERIES_CREATED_BY_LABEL" + description="COM_SERMONDISTRIBUTOR_SERIES_CREATED_BY_DESC" + /> + <!-- [11012] Published Field. Type: List (joomla) --> + <field name="published" type="list" label="JSTATUS" + description="JFIELD_PUBLISHED_DESC" class="chzn-color-state" + filter="intval" size="1" default="1" > + <option value="1"> + JPUBLISHED</option> + <option value="0"> + JUNPUBLISHED</option> + <option value="2"> + JARCHIVED</option> + <option value="-2"> + JTRASHED</option> + </field> + <!-- [11027] Date Modified Field. Type: Calendar (joomla) --> + <field name="modified" type="calendar" class="readonly" + label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC" + size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" /> + <!-- [11031] User Modified Field. Type: User (joomla) --> + <field name="modified_by" type="user" + label="JGLOBAL_FIELD_MODIFIED_BY_LABEL" + class="readonly" + readonly="true" + filter="unset" + /> + <!-- [11041] Access Field. Type: Accesslevel (joomla) --> + <field name="access" + type="accesslevel" + label="JFIELD_ACCESS_LABEL" + description="JFIELD_ACCESS_DESC" + default="1" + required="false" + /> + <!-- [11051] Ordering Field. Type: Numbers (joomla) --> + <field + name="ordering" + type="number" + class="inputbox validate-ordering" + label="COM_SERMONDISTRIBUTOR_SERIES_ORDERING_LABEL" + description="" + default="0" + size="6" + required="false" + /> + <!-- [11063] Version Field. Type: Text (joomla) --> + <field + name="version" + type="text" + class="readonly" + label="COM_SERMONDISTRIBUTOR_SERIES_VERSION_LABEL" + description="COM_SERMONDISTRIBUTOR_SERIES_VERSION_DESC" + size="6" + readonly="true" + filter="unset" + /> + <!-- [11077] Metakey Field. Type: Textarea (joomla) --> + <field + name="metakey" + type="textarea" + label="JFIELD_META_KEYWORDS_LABEL" + description="JFIELD_META_KEYWORDS_DESC" + rows="3" + cols="30" + /> + <!-- [11086] Metadesc Field. Type: Textarea (joomla) --> + <field + name="metadesc" + type="textarea" + label="JFIELD_META_DESCRIPTION_LABEL" + description="JFIELD_META_DESCRIPTION_DESC" + rows="3" + cols="30" + /> + <!-- [11096] Dynamic Fields. --> + <!-- [11332] Name Field. Type: Text. (joomla) --> + <field + type="text" + name="name" + label="COM_SERMONDISTRIBUTOR_SERIES_NAME_LABEL" + size="40" + maxlength="150" + description="COM_SERMONDISTRIBUTOR_SERIES_NAME_DESCRIPTION" + class="text_area" + readonly="false" + disabled="false" + required="true" + filter="STRING" + message="Error! Please add name here." + hint="COM_SERMONDISTRIBUTOR_SERIES_NAME_HINT" + /> + <!-- [11332] Description Field. Type: Editor. (joomla) --> + <field + type="editor" + name="description" + label="COM_SERMONDISTRIBUTOR_SERIES_DESCRIPTION_LABEL" + width="100%" + height="500" + cols="13" + rows="50" + buttons="false" + filter="safehtml" + /> + <!-- [11332] Alias Field. Type: Text. (joomla) --> + <field + type="text" + name="alias" + label="JFIELD_ALIAS_LABEL" + description="JFIELD_ALIAS_DESC" + filter="STRING" + hint="COM_SERMONDISTRIBUTOR_SERIES_ALIAS_HINT" + /> + <!-- [11332] Icon Field. Type: Media. (joomla) --> + <field + type="media" + name="icon" + label="COM_SERMONDISTRIBUTOR_SERIES_ICON_LABEL" + description="COM_SERMONDISTRIBUTOR_SERIES_ICON_DESCRIPTION" + directory="" + /> + <!-- [11332] Scripture Field. Type: Text. (joomla) --> + <field + type="text" + name="scripture" + label="COM_SERMONDISTRIBUTOR_SERIES_SCRIPTURE_LABEL" + size="90" + maxlength="150" + description="COM_SERMONDISTRIBUTOR_SERIES_SCRIPTURE_DESCRIPTION" + class="text_area" + readonly="false" + disabled="false" + required="false" + filter="STRING" + message="Error! Please add some scripture reference here." + hint="COM_SERMONDISTRIBUTOR_SERIES_SCRIPTURE_HINT" + /> + </fieldset> + + <!-- [11115] Metadata Fields. --> + <fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS"> + <fieldset name="vdmmetadata" + label="JGLOBAL_FIELDSET_METADATA_OPTIONS"> + <!-- [11119] Robots Field. Type: List (joomla) --> + <field name="robots" + type="list" + label="JFIELD_METADATA_ROBOTS_LABEL" + description="JFIELD_METADATA_ROBOTS_DESC" > + <option value="">JGLOBAL_USE_GLOBAL</option> + <option value="index, follow">JGLOBAL_INDEX_FOLLOW</option> + <option value="noindex, follow">JGLOBAL_NOINDEX_FOLLOW</option> + <option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option> + <option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option> + </field> + <!-- [11130] Author Field. Type: Text (joomla) --> + <field name="author" + type="text" + label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC" + size="20" + /> + <!-- [11136] Rights Field. Type: Textarea (joomla) --> + <field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL" + description="JFIELD_META_RIGHTS_DESC" required="false" filter="string" + cols="30" rows="2" + /> + </fieldset> + </fields> + + <!-- [10019] Access Control Fields. --> + <fieldset name="accesscontrol"> + <!-- [10021] Asset Id Field. Type: Hidden (joomla) --> + <field + name="asset_id" + type="hidden" + filter="unset" + /> + <!-- [10027] Rules Field. Type: Rules (joomla) --> + <field + name="rules" + type="rules" + label="Permissions in relation to this series" + translate_label="false" + filter="rules" + validate="rules" + class="inputbox" + component="com_sermondistributor" + section="series" + /> + </fieldset> +</form> \ No newline at end of file diff --git a/admin/models/forms/sermon.js b/admin/models/forms/sermon.js new file mode 100644 index 00000000..94f55955 --- /dev/null +++ b/admin/models/forms/sermon.js @@ -0,0 +1,506 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermon.js + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// Some Global Values +jform_FvQYyEFbXL_required = false; +jform_kOrUAMyZju_required = false; +jform_YIZCNWsBCx_required = false; +jform_KqzedcNUWP_required = false; +jform_XhHkZbWFaf_required = false; + +// Initial Script +jQuery(document).ready(function() +{ + var source_FvQYyEF = jQuery("#jform_source").val(); + FvQYyEF(source_FvQYyEF); + + var source_TLlcJUt = jQuery("#jform_source").val(); + var build_TLlcJUt = jQuery("#jform_build input[type='radio']:checked").val(); + TLlcJUt(source_TLlcJUt,build_TLlcJUt); + + var source_kOrUAMy = jQuery("#jform_source").val(); + var build_kOrUAMy = jQuery("#jform_build input[type='radio']:checked").val(); + kOrUAMy(source_kOrUAMy,build_kOrUAMy); + + var build_YIZCNWs = jQuery("#jform_build input[type='radio']:checked").val(); + var source_YIZCNWs = jQuery("#jform_source").val(); + YIZCNWs(build_YIZCNWs,source_YIZCNWs); + + var source_KqzedcN = jQuery("#jform_source").val(); + KqzedcN(source_KqzedcN); + + var source_XhHkZbW = jQuery("#jform_source").val(); + XhHkZbW(source_XhHkZbW); + + var link_type_VZPUBFP = jQuery("#jform_link_type input[type='radio']:checked").val(); + VZPUBFP(link_type_VZPUBFP); + + var link_type_UiutQRQ = jQuery("#jform_link_type input[type='radio']:checked").val(); + UiutQRQ(link_type_UiutQRQ); +}); + +// the FvQYyEF function +function FvQYyEF(source_FvQYyEF) +{ + if (isSet(source_FvQYyEF) && source_FvQYyEF.constructor !== Array) + { + var temp_FvQYyEF = source_FvQYyEF; + var source_FvQYyEF = []; + source_FvQYyEF.push(temp_FvQYyEF); + } + else if (!isSet(source_FvQYyEF)) + { + var source_FvQYyEF = []; + } + var source = source_FvQYyEF.some(source_FvQYyEF_SomeFunc); + + + // [7952] set this function logic + if (source) + { + jQuery('#jform_build').closest('.control-group').show(); + if (jform_FvQYyEFbXL_required) + { + updateFieldRequired('build',0); + jQuery('#jform_build').prop('required','required'); + jQuery('#jform_build').attr('aria-required',true); + jQuery('#jform_build').addClass('required'); + jform_FvQYyEFbXL_required = false; + } + + } + else + { + jQuery('#jform_build').closest('.control-group').hide(); + if (!jform_FvQYyEFbXL_required) + { + updateFieldRequired('build',1); + jQuery('#jform_build').removeAttr('required'); + jQuery('#jform_build').removeAttr('aria-required'); + jQuery('#jform_build').removeClass('required'); + jform_FvQYyEFbXL_required = true; + } + } +} + +// the FvQYyEF Some function +function source_FvQYyEF_SomeFunc(source_FvQYyEF) +{ + // [7939] set the function logic + if (source_FvQYyEF == 2) + { + return true; + } + return false; +} + +// the TLlcJUt function +function TLlcJUt(source_TLlcJUt,build_TLlcJUt) +{ + if (isSet(source_TLlcJUt) && source_TLlcJUt.constructor !== Array) + { + var temp_TLlcJUt = source_TLlcJUt; + var source_TLlcJUt = []; + source_TLlcJUt.push(temp_TLlcJUt); + } + else if (!isSet(source_TLlcJUt)) + { + var source_TLlcJUt = []; + } + var source = source_TLlcJUt.some(source_TLlcJUt_SomeFunc); + + if (isSet(build_TLlcJUt) && build_TLlcJUt.constructor !== Array) + { + var temp_TLlcJUt = build_TLlcJUt; + var build_TLlcJUt = []; + build_TLlcJUt.push(temp_TLlcJUt); + } + else if (!isSet(build_TLlcJUt)) + { + var build_TLlcJUt = []; + } + var build = build_TLlcJUt.some(build_TLlcJUt_SomeFunc); + + + // [7952] set this function logic + if (source && build) + { + jQuery('.note_auto_dropbox').closest('.control-group').show(); + } + else + { + jQuery('.note_auto_dropbox').closest('.control-group').hide(); + } +} + +// the TLlcJUt Some function +function source_TLlcJUt_SomeFunc(source_TLlcJUt) +{ + // [7939] set the function logic + if (source_TLlcJUt == 2) + { + return true; + } + return false; +} + +// the TLlcJUt Some function +function build_TLlcJUt_SomeFunc(build_TLlcJUt) +{ + // [7939] set the function logic + if (build_TLlcJUt == 2) + { + return true; + } + return false; +} + +// the kOrUAMy function +function kOrUAMy(source_kOrUAMy,build_kOrUAMy) +{ + if (isSet(source_kOrUAMy) && source_kOrUAMy.constructor !== Array) + { + var temp_kOrUAMy = source_kOrUAMy; + var source_kOrUAMy = []; + source_kOrUAMy.push(temp_kOrUAMy); + } + else if (!isSet(source_kOrUAMy)) + { + var source_kOrUAMy = []; + } + var source = source_kOrUAMy.some(source_kOrUAMy_SomeFunc); + + if (isSet(build_kOrUAMy) && build_kOrUAMy.constructor !== Array) + { + var temp_kOrUAMy = build_kOrUAMy; + var build_kOrUAMy = []; + build_kOrUAMy.push(temp_kOrUAMy); + } + else if (!isSet(build_kOrUAMy)) + { + var build_kOrUAMy = []; + } + var build = build_kOrUAMy.some(build_kOrUAMy_SomeFunc); + + + // [7952] set this function logic + if (source && build) + { + jQuery('#jform_manual_files').closest('.control-group').show(); + if (jform_kOrUAMyZju_required) + { + updateFieldRequired('manual_files',0); + jQuery('#jform_manual_files').prop('required','required'); + jQuery('#jform_manual_files').attr('aria-required',true); + jQuery('#jform_manual_files').addClass('required'); + jform_kOrUAMyZju_required = false; + } + + jQuery('.note_manual_dropbox').closest('.control-group').show(); + } + else + { + jQuery('#jform_manual_files').closest('.control-group').hide(); + if (!jform_kOrUAMyZju_required) + { + updateFieldRequired('manual_files',1); + jQuery('#jform_manual_files').removeAttr('required'); + jQuery('#jform_manual_files').removeAttr('aria-required'); + jQuery('#jform_manual_files').removeClass('required'); + jform_kOrUAMyZju_required = true; + } + jQuery('.note_manual_dropbox').closest('.control-group').hide(); + } +} + +// the kOrUAMy Some function +function source_kOrUAMy_SomeFunc(source_kOrUAMy) +{ + // [7939] set the function logic + if (source_kOrUAMy == 2) + { + return true; + } + return false; +} + +// the kOrUAMy Some function +function build_kOrUAMy_SomeFunc(build_kOrUAMy) +{ + // [7939] set the function logic + if (build_kOrUAMy == 1) + { + return true; + } + return false; +} + +// the YIZCNWs function +function YIZCNWs(build_YIZCNWs,source_YIZCNWs) +{ + if (isSet(build_YIZCNWs) && build_YIZCNWs.constructor !== Array) + { + var temp_YIZCNWs = build_YIZCNWs; + var build_YIZCNWs = []; + build_YIZCNWs.push(temp_YIZCNWs); + } + else if (!isSet(build_YIZCNWs)) + { + var build_YIZCNWs = []; + } + var build = build_YIZCNWs.some(build_YIZCNWs_SomeFunc); + + if (isSet(source_YIZCNWs) && source_YIZCNWs.constructor !== Array) + { + var temp_YIZCNWs = source_YIZCNWs; + var source_YIZCNWs = []; + source_YIZCNWs.push(temp_YIZCNWs); + } + else if (!isSet(source_YIZCNWs)) + { + var source_YIZCNWs = []; + } + var source = source_YIZCNWs.some(source_YIZCNWs_SomeFunc); + + + // [7952] set this function logic + if (build && source) + { + jQuery('#jform_manual_files').closest('.control-group').show(); + if (jform_YIZCNWsBCx_required) + { + updateFieldRequired('manual_files',0); + jQuery('#jform_manual_files').prop('required','required'); + jQuery('#jform_manual_files').attr('aria-required',true); + jQuery('#jform_manual_files').addClass('required'); + jform_YIZCNWsBCx_required = false; + } + + jQuery('.note_manual_dropbox').closest('.control-group').show(); + } + else + { + jQuery('#jform_manual_files').closest('.control-group').hide(); + if (!jform_YIZCNWsBCx_required) + { + updateFieldRequired('manual_files',1); + jQuery('#jform_manual_files').removeAttr('required'); + jQuery('#jform_manual_files').removeAttr('aria-required'); + jQuery('#jform_manual_files').removeClass('required'); + jform_YIZCNWsBCx_required = true; + } + jQuery('.note_manual_dropbox').closest('.control-group').hide(); + } +} + +// the YIZCNWs Some function +function build_YIZCNWs_SomeFunc(build_YIZCNWs) +{ + // [7939] set the function logic + if (build_YIZCNWs == 1) + { + return true; + } + return false; +} + +// the YIZCNWs Some function +function source_YIZCNWs_SomeFunc(source_YIZCNWs) +{ + // [7939] set the function logic + if (source_YIZCNWs == 2) + { + return true; + } + return false; +} + +// the KqzedcN function +function KqzedcN(source_KqzedcN) +{ + if (isSet(source_KqzedcN) && source_KqzedcN.constructor !== Array) + { + var temp_KqzedcN = source_KqzedcN; + var source_KqzedcN = []; + source_KqzedcN.push(temp_KqzedcN); + } + else if (!isSet(source_KqzedcN)) + { + var source_KqzedcN = []; + } + var source = source_KqzedcN.some(source_KqzedcN_SomeFunc); + + + // [7952] set this function logic + if (source) + { + jQuery('#jform_local_files').closest('.control-group').show(); + if (jform_KqzedcNUWP_required) + { + updateFieldRequired('local_files',0); + jQuery('#jform_local_files').prop('required','required'); + jQuery('#jform_local_files').attr('aria-required',true); + jQuery('#jform_local_files').addClass('required'); + jform_KqzedcNUWP_required = false; + } + + } + else + { + jQuery('#jform_local_files').closest('.control-group').hide(); + if (!jform_KqzedcNUWP_required) + { + updateFieldRequired('local_files',1); + jQuery('#jform_local_files').removeAttr('required'); + jQuery('#jform_local_files').removeAttr('aria-required'); + jQuery('#jform_local_files').removeClass('required'); + jform_KqzedcNUWP_required = true; + } + } +} + +// the KqzedcN Some function +function source_KqzedcN_SomeFunc(source_KqzedcN) +{ + // [7939] set the function logic + if (source_KqzedcN == 1) + { + return true; + } + return false; +} + +// the XhHkZbW function +function XhHkZbW(source_XhHkZbW) +{ + if (isSet(source_XhHkZbW) && source_XhHkZbW.constructor !== Array) + { + var temp_XhHkZbW = source_XhHkZbW; + var source_XhHkZbW = []; + source_XhHkZbW.push(temp_XhHkZbW); + } + else if (!isSet(source_XhHkZbW)) + { + var source_XhHkZbW = []; + } + var source = source_XhHkZbW.some(source_XhHkZbW_SomeFunc); + + + // [7952] set this function logic + if (source) + { + jQuery('#jform_url').closest('.control-group').show(); + if (jform_XhHkZbWFaf_required) + { + updateFieldRequired('url',0); + jQuery('#jform_url').prop('required','required'); + jQuery('#jform_url').attr('aria-required',true); + jQuery('#jform_url').addClass('required'); + jform_XhHkZbWFaf_required = false; + } + + } + else + { + jQuery('#jform_url').closest('.control-group').hide(); + if (!jform_XhHkZbWFaf_required) + { + updateFieldRequired('url',1); + jQuery('#jform_url').removeAttr('required'); + jQuery('#jform_url').removeAttr('aria-required'); + jQuery('#jform_url').removeClass('required'); + jform_XhHkZbWFaf_required = true; + } + } +} + +// the XhHkZbW Some function +function source_XhHkZbW_SomeFunc(source_XhHkZbW) +{ + // [7939] set the function logic + if (source_XhHkZbW == 3) + { + return true; + } + return false; +} + +// the VZPUBFP function +function VZPUBFP(link_type_VZPUBFP) +{ + // [7974] set the function logic + if (link_type_VZPUBFP == 2) + { + jQuery('.note_link_directed').closest('.control-group').show(); + } + else + { + jQuery('.note_link_directed').closest('.control-group').hide(); + } +} + +// the UiutQRQ function +function UiutQRQ(link_type_UiutQRQ) +{ + // [7974] set the function logic + if (link_type_UiutQRQ == 1) + { + jQuery('.note_link_encrypted').closest('.control-group').show(); + } + else + { + jQuery('.note_link_encrypted').closest('.control-group').hide(); + } +} + +// update required fields +function updateFieldRequired(name,status) +{ + var not_required = jQuery('#jform_not_required').val(); + + if(status == 1) + { + if (isSet(not_required) && not_required != 0) + { + not_required = not_required+','+name; + } + else + { + not_required = ','+name; + } + } + else + { + if (isSet(not_required) && not_required != 0) + { + not_required = not_required.replace(','+name,''); + } + } + + jQuery('#jform_not_required').val(not_required); +} + +// the isSet function +function isSet(val) +{ + if ((val != undefined) && (val != null) && 0 !== val.length){ + return true; + } + return false; +} diff --git a/admin/models/forms/sermon.xml b/admin/models/forms/sermon.xml new file mode 100644 index 00000000..d4e91561 --- /dev/null +++ b/admin/models/forms/sermon.xml @@ -0,0 +1,384 @@ +<?xml version="1.0" encoding="utf-8"?> +<form + addrulepath="/administrator/components/com_sermondistributor/models/rules" + addfieldpath="/administrator/components/com_sermondistributor/models/fields" +> + <fieldset name="details"> + <!-- [10985] Default Fields. --> + <!-- [10986] Id Field. Type: Text (joomla) --> + <field + name="id" + type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL" + description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0" + readonly="true" + /> + <!-- [10993] Date Created Field. Type: Calendar (joomla) --> + <field + name="created" + type="calendar" + label="COM_SERMONDISTRIBUTOR_SERMON_CREATED_DATE_LABEL" + description="COM_SERMONDISTRIBUTOR_SERMON_CREATED_DATE_DESC" + size="22" + format="%Y-%m-%d %H:%M:%S" + filter="user_utc" + /> + <!-- [11004] User Created Field. Type: User (joomla) --> + <field + name="created_by" + type="user" + label="COM_SERMONDISTRIBUTOR_SERMON_CREATED_BY_LABEL" + description="COM_SERMONDISTRIBUTOR_SERMON_CREATED_BY_DESC" + /> + <!-- [11012] Published Field. Type: List (joomla) --> + <field name="published" type="list" label="JSTATUS" + description="JFIELD_PUBLISHED_DESC" class="chzn-color-state" + filter="intval" size="1" default="1" > + <option value="1"> + JPUBLISHED</option> + <option value="0"> + JUNPUBLISHED</option> + <option value="2"> + JARCHIVED</option> + <option value="-2"> + JTRASHED</option> + </field> + <!-- [11027] Date Modified Field. Type: Calendar (joomla) --> + <field name="modified" type="calendar" class="readonly" + label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC" + size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" /> + <!-- [11031] User Modified Field. Type: User (joomla) --> + <field name="modified_by" type="user" + label="JGLOBAL_FIELD_MODIFIED_BY_LABEL" + class="readonly" + readonly="true" + filter="unset" + /> + <!-- [11041] Access Field. Type: Accesslevel (joomla) --> + <field name="access" + type="accesslevel" + label="JFIELD_ACCESS_LABEL" + description="JFIELD_ACCESS_DESC" + default="1" + required="false" + /> + <!-- [11051] Ordering Field. Type: Numbers (joomla) --> + <field + name="ordering" + type="number" + class="inputbox validate-ordering" + label="COM_SERMONDISTRIBUTOR_SERMON_ORDERING_LABEL" + description="" + default="0" + size="6" + required="false" + /> + <!-- [11063] Version Field. Type: Text (joomla) --> + <field + name="version" + type="text" + class="readonly" + label="COM_SERMONDISTRIBUTOR_SERMON_VERSION_LABEL" + description="COM_SERMONDISTRIBUTOR_SERMON_VERSION_DESC" + size="6" + readonly="true" + filter="unset" + /> + <!-- [11077] Metakey Field. Type: Textarea (joomla) --> + <field + name="metakey" + type="textarea" + label="JFIELD_META_KEYWORDS_LABEL" + description="JFIELD_META_KEYWORDS_DESC" + rows="3" + cols="30" + /> + <!-- [11086] Metadesc Field. Type: Textarea (joomla) --> + <field + name="metadesc" + type="textarea" + label="JFIELD_META_DESCRIPTION_LABEL" + description="JFIELD_META_DESCRIPTION_DESC" + rows="3" + cols="30" + /> + <!-- [11096] Dynamic Fields. --> + <!-- [11332] Name Field. Type: Text. (joomla) --> + <field + type="text" + name="name" + label="COM_SERMONDISTRIBUTOR_SERMON_NAME_LABEL" + size="40" + maxlength="150" + description="COM_SERMONDISTRIBUTOR_SERMON_NAME_DESCRIPTION" + class="text_area" + readonly="false" + disabled="false" + required="true" + filter="STRING" + message="Error! Please add name here." + hint="COM_SERMONDISTRIBUTOR_SERMON_NAME_HINT" + /> + <!-- [11453] Preacher Field. Type: Preachers. (custom) --> + <field + type="preachers" + name="preacher" + label="COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL" + description="COM_SERMONDISTRIBUTOR_SERMON_PREACHER_DESCRIPTION" + class="list_class" + multiple="false" + default="0" + button="true" + /> + <!-- [11453] Series Field. Type: Series. (custom) --> + <field + type="series" + name="series" + label="COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL" + description="COM_SERMONDISTRIBUTOR_SERMON_SERIES_DESCRIPTION" + class="list_class" + multiple="false" + default="0" + button="true" + /> + <!-- [11332] Short_description Field. Type: Text. (joomla) --> + <field + type="text" + name="short_description" + label="COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_LABEL" + size="40" + maxlength="150" + description="COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_DESCRIPTION" + class="text_area" + required="true" + filter="HTML" + message="Error! Please add some short description here." + hint="COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_HINT" + /> + <!-- [11332] Catid Field. Type: Category. (joomla) --> + <field + type="category" + name="catid" + label="COM_SERMONDISTRIBUTOR_SERMON_CATID_LABEL" + extension="com_sermondistributor.sermons" + required="false" + description="COM_SERMONDISTRIBUTOR_SERMON_CATID_DESCRIPTION" + class="inputbox" + /> + <!-- [11246] Link_type Field. Type: Radio. (joomla) --> + <field + type="radio" + name="link_type" + label="COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_LABEL" + description="COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_DESCRIPTION" + class="btn-group btn-group-yesno" + default="1" + required="true"> + <!-- [11318] Option Set. --> + <option value="1"> + COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_SERMON_DIRECT</option> + </field> + <!-- [11246] Source Field. Type: List. (joomla) --> + <field + type="list" + name="source" + label="COM_SERMONDISTRIBUTOR_SERMON_SOURCE_LABEL" + description="COM_SERMONDISTRIBUTOR_SERMON_SOURCE_DESCRIPTION" + class="list_class" + multiple="false" + filter="INT" + required="true"> + <!-- [11318] Option Set. --> + <option value=""> + COM_SERMONDISTRIBUTOR_SERMON_SELECT_SOURCE</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_SERMON_LOCAL_FOLDER</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_SERMON_DROPBOX</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_SERMON_URL</option> + </field> + <!-- [11332] Icon Field. Type: Media. (joomla) --> + <field + type="media" + name="icon" + label="COM_SERMONDISTRIBUTOR_SERMON_ICON_LABEL" + description="COM_SERMONDISTRIBUTOR_SERMON_ICON_DESCRIPTION" + directory="" + /> + <!-- [11332] Tags Field. Type: Tag. (joomla) --> + <field + type="tag" + name="tags" + mode="ajax" + label="COM_SERMONDISTRIBUTOR_SERMON_TAGS_LABEL" + description="COM_SERMONDISTRIBUTOR_SERMON_TAGS_DESCRIPTION" + class="inputbox small" + published="true" + multiple="true" + /> + <!-- [11453] Local_files Field. Type: Localfiles. (custom) --> + <field + type="localfiles" + name="local_files" + label="COM_SERMONDISTRIBUTOR_SERMON_LOCAL_FILES_LABEL" + description="COM_SERMONDISTRIBUTOR_SERMON_LOCAL_FILES_DESCRIPTION" + class="list_class" + multiple="true" + default="0" + required="true" + button="false" + /> + <!-- [11332] Description Field. Type: Editor. (joomla) --> + <field + type="editor" + name="description" + label="COM_SERMONDISTRIBUTOR_SERMON_DESCRIPTION_LABEL" + width="100%" + height="500" + cols="13" + rows="50" + buttons="false" + filter="safehtml" + /> + <!-- [11346] Note_auto_dropbox Field. Type: Note. A None Database Field. (joomla) --> + <field type="note" name="note_auto_dropbox" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_AUTO_DROPBOX_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_AUTO_DROPBOX_DESCRIPTION" heading="h4" class="alert alert-info note_auto_dropbox" /> + <!-- [11332] Alias Field. Type: Text. (joomla) --> + <field + type="text" + name="alias" + label="JFIELD_ALIAS_LABEL" + description="JFIELD_ALIAS_DESC" + filter="STRING" + hint="COM_SERMONDISTRIBUTOR_SERMON_ALIAS_HINT" + /> + <!-- [11332] Not_required Field. Type: Hidden. (joomla) --> + <field + type="hidden" + name="not_required" + default="[]" + /> + <!-- [11346] Note_link_directed Field. Type: Note. A None Database Field. (joomla) --> + <field type="note" name="note_link_directed" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_DIRECTED_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_DIRECTED_DESCRIPTION" heading="h4" class="alert alert-info note_link_directed" close="true" /> + <!-- [11346] Note_manual_dropbox Field. Type: Note. A None Database Field. (joomla) --> + <field type="note" name="note_manual_dropbox" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_MANUAL_DROPBOX_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_MANUAL_DROPBOX_DESCRIPTION" heading="h4" class="alert alert-info note_manual_dropbox" /> + <!-- [11346] Note_link_encrypted Field. Type: Note. A None Database Field. (joomla) --> + <field type="note" name="note_link_encrypted" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_ENCRYPTED_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_ENCRYPTED_DESCRIPTION" heading="h4" class="alert alert-info note_link_encrypted" close="true" /> + <!-- [11453] Manual_files Field. Type: Dropboxfiles. (custom) --> + <field + type="dropboxfiles" + name="manual_files" + label="COM_SERMONDISTRIBUTOR_SERMON_MANUAL_FILES_LABEL" + description="COM_SERMONDISTRIBUTOR_SERMON_MANUAL_FILES_DESCRIPTION" + class="list_class" + multiple="true" + default="0" + required="true" + button="false" + /> + <!-- [11332] Scripture Field. Type: Text. (joomla) --> + <field + type="text" + name="scripture" + label="COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE_LABEL" + size="90" + maxlength="150" + description="COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE_DESCRIPTION" + class="text_area" + readonly="false" + disabled="false" + required="false" + filter="STRING" + message="Error! Please add some scripture reference here." + hint="COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE_HINT" + /> + <!-- [11332] Url Field. Type: Url. (joomla) --> + <field + type="url" + name="url" + label="COM_SERMONDISTRIBUTOR_SERMON_URL_LABEL" + size="10" + maxlength="50" + description="COM_SERMONDISTRIBUTOR_SERMON_URL_DESCRIPTION" + class="text_area" + required="true" + filter="url" + validated="url" + message="Error! Please add sermon url here." + hint="COM_SERMONDISTRIBUTOR_SERMON_URL_HINT" + /> + <!-- [11246] Build Field. Type: Radio. (joomla) --> + <field + type="radio" + name="build" + label="COM_SERMONDISTRIBUTOR_SERMON_BUILD_LABEL" + description="COM_SERMONDISTRIBUTOR_SERMON_BUILD_DESCRIPTION" + class="btn-group btn-group-yesno" + default="1" + required="true"> + <!-- [11318] Option Set. --> + <option value="1"> + COM_SERMONDISTRIBUTOR_SERMON_MANUAL</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_SERMON_AUTOMATIC</option> + </field> + <!-- [11332] Auto_sermons Field. Type: Hidden. (joomla) --> + <field + type="hidden" + name="auto_sermons" + default="1" + /> + </fieldset> + + <!-- [11115] Metadata Fields. --> + <fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS"> + <fieldset name="vdmmetadata" + label="JGLOBAL_FIELDSET_METADATA_OPTIONS"> + <!-- [11119] Robots Field. Type: List (joomla) --> + <field name="robots" + type="list" + label="JFIELD_METADATA_ROBOTS_LABEL" + description="JFIELD_METADATA_ROBOTS_DESC" > + <option value="">JGLOBAL_USE_GLOBAL</option> + <option value="index, follow">JGLOBAL_INDEX_FOLLOW</option> + <option value="noindex, follow">JGLOBAL_NOINDEX_FOLLOW</option> + <option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option> + <option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option> + </field> + <!-- [11130] Author Field. Type: Text (joomla) --> + <field name="author" + type="text" + label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC" + size="20" + /> + <!-- [11136] Rights Field. Type: Textarea (joomla) --> + <field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL" + description="JFIELD_META_RIGHTS_DESC" required="false" filter="string" + cols="30" rows="2" + /> + </fieldset> + </fields> + + <!-- [10019] Access Control Fields. --> + <fieldset name="accesscontrol"> + <!-- [10021] Asset Id Field. Type: Hidden (joomla) --> + <field + name="asset_id" + type="hidden" + filter="unset" + /> + <!-- [10027] Rules Field. Type: Rules (joomla) --> + <field + name="rules" + type="rules" + label="Permissions in relation to this sermon" + translate_label="false" + filter="rules" + validate="rules" + class="inputbox" + component="com_sermondistributor" + section="sermon" + /> + </fieldset> +</form> \ No newline at end of file diff --git a/admin/models/forms/statistic.js b/admin/models/forms/statistic.js new file mode 100644 index 00000000..d4ffb8e4 --- /dev/null +++ b/admin/models/forms/statistic.js @@ -0,0 +1,20 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage statistic.js + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + + diff --git a/admin/models/forms/statistic.xml b/admin/models/forms/statistic.xml new file mode 100644 index 00000000..4e8991d2 --- /dev/null +++ b/admin/models/forms/statistic.xml @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<form + addrulepath="/administrator/components/com_sermondistributor/models/rules" + addfieldpath="/administrator/components/com_sermondistributor/models/fields" +> + <fieldset name="details"> + <!-- [10985] Default Fields. --> + <!-- [10986] Id Field. Type: Text (joomla) --> + <field + name="id" + type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL" + description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0" + readonly="true" + /> + <!-- [10993] Date Created Field. Type: Calendar (joomla) --> + <field + name="created" + type="calendar" + label="COM_SERMONDISTRIBUTOR_STATISTIC_CREATED_DATE_LABEL" + description="COM_SERMONDISTRIBUTOR_STATISTIC_CREATED_DATE_DESC" + size="22" + format="%Y-%m-%d %H:%M:%S" + filter="user_utc" + /> + <!-- [11004] User Created Field. Type: User (joomla) --> + <field + name="created_by" + type="user" + label="COM_SERMONDISTRIBUTOR_STATISTIC_CREATED_BY_LABEL" + description="COM_SERMONDISTRIBUTOR_STATISTIC_CREATED_BY_DESC" + /> + <!-- [11012] Published Field. Type: List (joomla) --> + <field name="published" type="list" label="JSTATUS" + description="JFIELD_PUBLISHED_DESC" class="chzn-color-state" + filter="intval" size="1" default="1" > + <option value="1"> + JPUBLISHED</option> + <option value="0"> + JUNPUBLISHED</option> + <option value="2"> + JARCHIVED</option> + <option value="-2"> + JTRASHED</option> + </field> + <!-- [11027] Date Modified Field. Type: Calendar (joomla) --> + <field name="modified" type="calendar" class="readonly" + label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC" + size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" /> + <!-- [11031] User Modified Field. Type: User (joomla) --> + <field name="modified_by" type="user" + label="JGLOBAL_FIELD_MODIFIED_BY_LABEL" + class="readonly" + readonly="true" + filter="unset" + /> + <!-- [11041] Access Field. Type: Accesslevel (joomla) --> + <field name="access" + type="accesslevel" + label="JFIELD_ACCESS_LABEL" + description="JFIELD_ACCESS_DESC" + default="1" + required="false" + /> + <!-- [11051] Ordering Field. Type: Numbers (joomla) --> + <field + name="ordering" + type="number" + class="inputbox validate-ordering" + label="COM_SERMONDISTRIBUTOR_STATISTIC_ORDERING_LABEL" + description="" + default="0" + size="6" + required="false" + /> + <!-- [11063] Version Field. Type: Text (joomla) --> + <field + name="version" + type="text" + class="readonly" + label="COM_SERMONDISTRIBUTOR_STATISTIC_VERSION_LABEL" + description="COM_SERMONDISTRIBUTOR_STATISTIC_VERSION_DESC" + size="6" + readonly="true" + filter="unset" + /> + <!-- [11077] Metakey Field. Type: Textarea (joomla) --> + <field + name="metakey" + type="textarea" + label="JFIELD_META_KEYWORDS_LABEL" + description="JFIELD_META_KEYWORDS_DESC" + rows="3" + cols="30" + /> + <!-- [11086] Metadesc Field. Type: Textarea (joomla) --> + <field + name="metadesc" + type="textarea" + label="JFIELD_META_DESCRIPTION_LABEL" + description="JFIELD_META_DESCRIPTION_DESC" + rows="3" + cols="30" + /> + <!-- [11096] Dynamic Fields. --> + <!-- [11332] Filename Field. Type: Text. (joomla) --> + <field + type="text" + name="filename" + label="COM_SERMONDISTRIBUTOR_STATISTIC_FILENAME_LABEL" + size="80" + maxlength="550" + description="COM_SERMONDISTRIBUTOR_STATISTIC_FILENAME_DESCRIPTION" + class="text_area" + required="true" + filter="STRING" + message="Error! Please add file name here." + hint="COM_SERMONDISTRIBUTOR_STATISTIC_FILENAME_HINT" + /> + <!-- [11453] Sermon Field. Type: Sermon. (custom) --> + <field + type="sermon" + name="sermon" + label="COM_SERMONDISTRIBUTOR_STATISTIC_SERMON_LABEL" + description="COM_SERMONDISTRIBUTOR_STATISTIC_SERMON_DESCRIPTION" + class="list_class" + multiple="false" + required="true" + button="true" + /> + <!-- [11453] Preacher Field. Type: Preachers. (custom) --> + <field + type="preachers" + name="preacher" + label="COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER_LABEL" + description="COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER_DESCRIPTION" + class="list_class" + multiple="false" + default="0" + button="true" + /> + <!-- [11453] Series Field. Type: Series. (custom) --> + <field + type="series" + name="series" + label="COM_SERMONDISTRIBUTOR_STATISTIC_SERIES_LABEL" + description="COM_SERMONDISTRIBUTOR_STATISTIC_SERIES_DESCRIPTION" + class="list_class" + multiple="false" + default="0" + button="true" + /> + <!-- [11332] Counter Field. Type: Text. (joomla) --> + <field + type="text" + name="counter" + label="COM_SERMONDISTRIBUTOR_STATISTIC_COUNTER_LABEL" + size="5" + maxlength="15" + description="COM_SERMONDISTRIBUTOR_STATISTIC_COUNTER_DESCRIPTION" + class="text_area" + required="true" + filter="INT" + message="Error! Please add a number." + hint="COM_SERMONDISTRIBUTOR_STATISTIC_COUNTER_HINT" + /> + </fieldset> + + <!-- [11115] Metadata Fields. --> + <fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS"> + <fieldset name="vdmmetadata" + label="JGLOBAL_FIELDSET_METADATA_OPTIONS"> + <!-- [11119] Robots Field. Type: List (joomla) --> + <field name="robots" + type="list" + label="JFIELD_METADATA_ROBOTS_LABEL" + description="JFIELD_METADATA_ROBOTS_DESC" > + <option value="">JGLOBAL_USE_GLOBAL</option> + <option value="index, follow">JGLOBAL_INDEX_FOLLOW</option> + <option value="noindex, follow">JGLOBAL_NOINDEX_FOLLOW</option> + <option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option> + <option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option> + </field> + <!-- [11130] Author Field. Type: Text (joomla) --> + <field name="author" + type="text" + label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC" + size="20" + /> + <!-- [11136] Rights Field. Type: Textarea (joomla) --> + <field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL" + description="JFIELD_META_RIGHTS_DESC" required="false" filter="string" + cols="30" rows="2" + /> + </fieldset> + </fields> + + <!-- [10019] Access Control Fields. --> + <fieldset name="accesscontrol"> + <!-- [10021] Asset Id Field. Type: Hidden (joomla) --> + <field + name="asset_id" + type="hidden" + filter="unset" + /> + <!-- [10027] Rules Field. Type: Rules (joomla) --> + <field + name="rules" + type="rules" + label="Permissions in relation to this statistic" + translate_label="false" + filter="rules" + validate="rules" + class="inputbox" + component="com_sermondistributor" + section="statistic" + /> + </fieldset> +</form> \ No newline at end of file diff --git a/admin/models/help_document.php b/admin/models/help_document.php new file mode 100644 index 00000000..e812d4cd --- /dev/null +++ b/admin/models/help_document.php @@ -0,0 +1,899 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage help_document.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +// import Joomla modelform library +jimport('joomla.application.component.modeladmin'); + +/** + * Sermondistributor Help_document Model + */ +class SermondistributorModelHelp_document extends JModelAdmin +{ + /** + * @var string The prefix to use with controller messages. + * @since 1.6 + */ + protected $text_prefix = 'COM_SERMONDISTRIBUTOR'; + + /** + * The type alias for this content type. + * + * @var string + * @since 3.2 + */ + public $typeAlias = 'com_sermondistributor.help_document'; + + /** + * Returns a Table object, always creating it + * + * @param type $type The table type to instantiate + * @param string $prefix A prefix for the table class name. Optional. + * @param array $config Configuration array for model. Optional. + * + * @return JTable A database object + * + * @since 1.6 + */ + public function getTable($type = 'help_document', $prefix = 'SermondistributorTable', $config = array()) + { + return JTable::getInstance($type, $prefix, $config); + } + + /** + * Method to get a single record. + * + * @param integer $pk The id of the primary key. + * + * @return mixed Object on success, false on failure. + * + * @since 1.6 + */ + public function getItem($pk = null) + { + if ($item = parent::getItem($pk)) + { + if (!empty($item->params)) + { + // Convert the params field to an array. + $registry = new Registry; + $registry->loadString($item->params); + $item->params = $registry->toArray(); + } + + if (!empty($item->metadata)) + { + // Convert the metadata field to an array. + $registry = new Registry; + $registry->loadString($item->metadata); + $item->metadata = $registry->toArray(); + } + + if (!empty($item->groups)) + { + // [3986] JSON Decode groups. + $item->groups = json_decode($item->groups,true); + } + + if (!empty($item->id)) + { + $item->tags = new JHelperTags; + $item->tags->getTagIds($item->id, 'com_sermondistributor.help_document'); + } + } + + return $item; + } + + /** + * Method to get the record form. + * + * @param array $data Data for the form. + * @param boolean $loadData True if the form is to load its own data (default case), false if not. + * + * @return mixed A JForm object on success, false on failure + * + * @since 1.6 + */ + public function getForm($data = array(), $loadData = true) + { // [9532] Get the form. + $form = $this->loadForm('com_sermondistributor.help_document', 'help_document', array('control' => 'jform', 'load_data' => $loadData)); + + if (empty($form)) + { + return false; + } + + $jinput = JFactory::getApplication()->input; + + // [9617] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first. + if ($jinput->get('a_id')) + { + $id = $jinput->get('a_id', 0, 'INT'); + } + // [9622] The back end uses id so we use that the rest of the time and set it to 0 by default. + else + { + $id = $jinput->get('id', 0, 'INT'); + } + + $user = JFactory::getUser(); + + // [9628] Check for existing item. + // [9629] Modify the form based on Edit State access controls. + if ($id != 0 && (!$user->authorise('help_document.edit.state', 'com_sermondistributor.help_document.' . (int) $id)) + || ($id == 0 && !$user->authorise('help_document.edit.state', 'com_sermondistributor'))) + { + // [9642] Disable fields for display. + $form->setFieldAttribute('ordering', 'disabled', 'true'); + $form->setFieldAttribute('published', 'disabled', 'true'); + // [9645] Disable fields while saving. + $form->setFieldAttribute('ordering', 'filter', 'unset'); + $form->setFieldAttribute('published', 'filter', 'unset'); + } + // [9650] Modify the form based on Edit Creaded By access controls. + if (!$user->authorise('core.edit.created_by', 'com_sermondistributor')) + { + // [9662] Disable fields for display. + $form->setFieldAttribute('created_by', 'disabled', 'true'); + // [9664] Disable fields for display. + $form->setFieldAttribute('created_by', 'readonly', 'true'); + // [9666] Disable fields while saving. + $form->setFieldAttribute('created_by', 'filter', 'unset'); + } + // [9669] Modify the form based on Edit Creaded Date access controls. + if (!$user->authorise('core.edit.created', 'com_sermondistributor')) + { + // [9681] Disable fields for display. + $form->setFieldAttribute('created', 'disabled', 'true'); + // [9683] Disable fields while saving. + $form->setFieldAttribute('created', 'filter', 'unset'); + } + + return $form; + } + + /** + * Method to get the script that have to be included on the form + * + * @return string script files + */ + public function getScript() + { + return 'administrator/components/com_sermondistributor/models/forms/help_document.js'; + } + + /** + * Method to test whether a record can be deleted. + * + * @param object $record A record object. + * + * @return boolean True if allowed to delete the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canDelete($record) + { + if (!empty($record->id)) + { + if ($record->published != -2) + { + return; + } + + $user = JFactory::getUser(); + // [9833] The record has been set. Check the record permissions. + return $user->authorise('help_document.delete', 'com_sermondistributor.help_document.' . (int) $record->id); + } + return false; + } + + /** + * Method to test whether a record can have its state edited. + * + * @param object $record A record object. + * + * @return boolean True if allowed to change the state of the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canEditState($record) + { + $user = JFactory::getUser(); + $recordId = (!empty($record->id)) ? $record->id : 0; + + if ($recordId) + { + // [9920] The record has been set. Check the record permissions. + $permission = $user->authorise('help_document.edit.state', 'com_sermondistributor.help_document.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + return false; + } + } + // [9937] In the absense of better information, revert to the component permissions. + return $user->authorise('help_document.edit.state', 'com_sermondistributor'); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * @since 2.5 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // [9745] Check specific edit permission then general edit permission. + $user = JFactory::getUser(); + + return $user->authorise('help_document.edit', 'com_sermondistributor.help_document.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('help_document.edit', 'com_sermondistributor'); + } + + /** + * Prepare and sanitise the table data prior to saving. + * + * @param JTable $table A JTable object. + * + * @return void + * + * @since 1.6 + */ + protected function prepareTable($table) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if (isset($table->name)) + { + $table->name = htmlspecialchars_decode($table->name, ENT_QUOTES); + } + + if (isset($table->alias) && empty($table->alias)) + { + $table->generateAlias(); + } + + if (empty($table->id)) + { + $table->created = $date->toSql(); + // set the user + if ($table->created_by == 0) + { + $table->created_by = $user->id; + } + // Set ordering to the last item if not set + if (empty($table->ordering)) + { + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select('MAX(ordering)') + ->from($db->quoteName('#__sermondistributor_help_document')); + $db->setQuery($query); + $max = $db->loadResult(); + + $table->ordering = $max + 1; + } + } + else + { + $table->modified = $date->toSql(); + $table->modified_by = $user->id; + } + + if (!empty($table->id)) + { + // Increment the items version number. + $table->version++; + } + } + + /** + * Method to get the data that should be injected in the form. + * + * @return mixed The data for the form. + * + * @since 1.6 + */ + protected function loadFormData() + { + // Check the session for previously entered form data. + $data = JFactory::getApplication()->getUserState('com_sermondistributor.edit.help_document.data', array()); + + if (empty($data)) + { + $data = $this->getItem(); + } + + return $data; + } + + /** + * Method to validate the form data. + * + * @param JForm $form The form to validate against. + * @param array $data The data to validate. + * @param string $group The name of the field group to validate. + * + * @return mixed Array of filtered data if valid, false otherwise. + * + * @see JFormRule + * @see JFilterInput + * @since 12.2 + */ + public function validate($form, $data, $group = null) + { + // [8736] check if the not_required field is set + if (SermondistributorHelper::checkString($data['not_required'])) + { + $requiredFields = (array) explode(',',(string) $data['not_required']); + $requiredFields = array_unique($requiredFields); + // [8741] now change the required field attributes value + foreach ($requiredFields as $requiredField) + { + // [8744] make sure there is a string value + if (SermondistributorHelper::checkString($requiredField)) + { + // [8747] change to false + $form->setFieldAttribute($requiredField, 'required', 'false'); + // [8749] also clear the data set + $data[$requiredField] = ''; + } + } + } + return parent::validate($form, $data, $group); + } + + /** + * Method to get the unique fields of this table. + * + * @return mixed An array of field names, boolean false if none is set. + * + * @since 3.0 + */ + protected function getUniqeFields() + { + return false; + } + + /** + * Method to perform batch operations on an item or a set of items. + * + * @param array $commands An array of commands to perform. + * @param array $pks An array of item ids. + * @param array $contexts An array of item contexts. + * + * @return boolean Returns true on success, false on failure. + * + * @since 12.2 + */ + public function batch($commands, $pks, $contexts) + { + // Sanitize ids. + $pks = array_unique($pks); + JArrayHelper::toInteger($pks); + + // Remove any values of zero. + if (array_search(0, $pks, true)) + { + unset($pks[array_search(0, $pks, true)]); + } + + if (empty($pks)) + { + $this->setError(JText::_('JGLOBAL_NO_ITEM_SELECTED')); + return false; + } + + $done = false; + + // Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = SermondistributorHelper::getActions('help_document'); + $this->batchSet = true; + + if (!$this->canDo->get('core.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + return false; + } + + if ($this->type == false) + { + $type = new JUcmType; + $this->type = $type->getTypeByAlias($this->typeAlias); + } + + $this->tagsObserver = $this->table->getObserverOfClass('JTableObserverTags'); + + if (!empty($commands['move_copy'])) + { + $cmd = JArrayHelper::getValue($commands, 'move_copy', 'c'); + + if ($cmd == 'c') + { + $result = $this->batchCopy($commands, $pks, $contexts); + + if (is_array($result)) + { + foreach ($result as $old => $new) + { + $contexts[$new] = $contexts[$old]; + } + $pks = array_values($result); + } + else + { + return false; + } + } + elseif ($cmd == 'm' && !$this->batchMove($commands, $pks, $contexts)) + { + return false; + } + + $done = true; + } + + if (!$done) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + + return false; + } + + // Clear the cache + $this->cleanCache(); + + return true; + } + + /** + * Batch copy items to a new category or current. + * + * @param integer $values The new values. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return mixed An array of new IDs on success, boolean false on failure. + * + * @since 12.2 + */ + protected function batchCopy($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // [4898] Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = SermondistributorHelper::getActions('help_document'); + } + + if (!$this->canDo->get('help_document.create') && !$this->canDo->get('help_document.batch')) + { + return false; + } + + // [4918] get list of uniqe fields + $uniqeFields = $this->getUniqeFields(); + // [4920] remove move_copy from array + unset($values['move_copy']); + + // [4923] make sure published is set + if (!isset($values['published'])) + { + $values['published'] = 0; + } + elseif (isset($values['published']) && !$this->canDo->get('help_document.edit.state')) + { + $values['published'] = 0; + } + + $newIds = array(); + + // [4960] Parent exists so let's proceed + while (!empty($pks)) + { + // [4963] Pop the first ID off the stack + $pk = array_shift($pks); + + $this->table->reset(); + + // [4968] only allow copy if user may edit this item. + + if (!$this->user->authorise('help_document.edit', $contexts[$pk])) + + { + + // [4978] Not fatal error + + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + + continue; + + } + + // [4983] Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // [4988] Fatal error + $this->setError($error); + + return false; + } + else + { + // [4995] Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + list($this->table->title, $this->table->alias) = $this->_generateNewTitle($this->table->alias, $this->table->title); + + // [5031] insert all set values + if (SermondistributorHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + if (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + // [5043] update all uniqe fields + if (SermondistributorHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $this->table->$uniqeField = $this->generateUniqe($uniqeField,$this->table->$uniqeField); + } + } + + // [5052] Reset the ID because we are making a copy + $this->table->id = 0; + + // [5055] TODO: Deal with ordering? + // [5056] $this->table->ordering = 1; + + // [5058] Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // [5071] Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + + // [5079] Get the new item ID + $newId = $this->table->get('id'); + + // [5082] Add the new ID to the array + $newIds[$pk] = $newId; + } + + // [5086] Clean the cache + $this->cleanCache(); + + return $newIds; + } + + /** + * Batch move items to a new category + * + * @param integer $value The new category ID. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 12.2 + */ + protected function batchMove($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // [4700] Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = SermondistributorHelper::getActions('help_document'); + } + + if (!$this->canDo->get('help_document.edit') && !$this->canDo->get('help_document.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + return false; + } + + // [4722] make sure published only updates if user has the permission. + if (isset($values['published']) && !$this->canDo->get('help_document.edit.state')) + { + unset($values['published']); + } + // [4735] remove move_copy from array + unset($values['move_copy']); + + // [4756] Parent exists so we proceed + foreach ($pks as $pk) + { + if (!$this->user->authorise('help_document.edit', $contexts[$pk])) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + + return false; + } + + // [4773] Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // [4778] Fatal error + $this->setError($error); + + return false; + } + else + { + // [4785] Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + // [4791] insert all set values. + if (SermondistributorHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + // [4796] Do special action for access. + if ('access' == $key && strlen($value) > 0) + { + $this->table->$key = $value; + } + elseif (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + + // [4808] Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // [4821] Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + } + + // [4830] Clean the cache + $this->cleanCache(); + + return true; + } + + /** + * Method to save the form data. + * + * @param array $data The form data. + * + * @return boolean True on success. + * + * @since 1.6 + */ + public function save($data) + { + $input = JFactory::getApplication()->input; + $filter = JFilterInput::getInstance(); + + // set the metadata to the Item Data + if (isset($data['metadata']) && isset($data['metadata']['author'])) + { + $data['metadata']['author'] = $filter->clean($data['metadata']['author'], 'TRIM'); + + $metadata = new JRegistry; + $metadata->loadArray($data['metadata']); + $data['metadata'] = (string) $metadata; + } + + // [4096] Set the groups string to JSON string. + if (isset($data['groups'])) + { + $data['groups'] = (string) json_encode($data['groups']); + } + + // Set the Params Items to data + if (isset($data['params']) && is_array($data['params'])) + { + $params = new JRegistry; + $params->loadArray($data['params']); + $data['params'] = (string) $params; + } + + // [5112] Alter the title for save as copy + if ($input->get('task') == 'save2copy') + { + $origTable = clone $this->getTable(); + $origTable->load($input->getInt('id')); + + if ($data['title'] == $origTable->title) + { + list($title, $alias) = $this->_generateNewTitle($data['alias'], $data['title']); + $data['title'] = $title; + $data['alias'] = $alias; + } + else + { + if ($data['alias'] == $origTable->alias) + { + $data['alias'] = ''; + } + } + + $data['published'] = 0; + } + + // [5139] Automatic handling of alias for empty fields + if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0) + { + if ($data['alias'] == null) + { + if (JFactory::getConfig()->get('unicodeslugs') == 1) + { + $data['alias'] = JFilterOutput::stringURLUnicodeSlug($data['title']); + } + else + { + $data['alias'] = JFilterOutput::stringURLSafe($data['title']); + } + + $table = JTable::getInstance('help_document', 'sermondistributorTable'); + + if ($table->load(array('alias' => $data['alias'])) && ($table->id != $data['id'] || $data['id'] == 0)) + { + $msg = JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SAVE_WARNING'); + } + + list($title, $alias) = $this->_generateNewTitle($data['alias'], $data['title']); + $data['alias'] = $alias; + + if (isset($msg)) + { + JFactory::getApplication()->enqueueMessage($msg, 'warning'); + } + } + } + + // [5178] Alter the uniqe field for save as copy + if ($input->get('task') == 'save2copy') + { + // [5181] Automatic handling of other uniqe fields + $uniqeFields = $this->getUniqeFields(); + if (SermondistributorHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $data[$uniqeField] = $this->generateUniqe($uniqeField,$data[$uniqeField]); + } + } + } + + if (parent::save($data)) + { + return true; + } + return false; + } + + /** + * Method to generate a uniqe value. + * + * @param string $field name. + * @param string $value data. + * + * @return string New value. + * + * @since 3.0 + */ + protected function generateUniqe($field,$value) + { + + // set field value uniqe + $table = $this->getTable(); + + while ($table->load(array($field => $value))) + { + $value = JString::increment($value); + } + + return $value; + } + + /** + * Method to change the title & alias. + * + * @param string $alias The alias. + * @param string $title The title. + * + * @return array Contains the modified title and alias. + * + */ + protected function _generateNewTitle($alias, $title) + { + + // [5212] Alter the title & alias + $table = $this->getTable(); + + while ($table->load(array('alias' => $alias))) + { + $title = JString::increment($title); + $alias = JString::increment($alias, 'dash'); + } + + return array($title, $alias); + } +} diff --git a/admin/models/help_documents.php b/admin/models/help_documents.php new file mode 100644 index 00000000..6b79c404 --- /dev/null +++ b/admin/models/help_documents.php @@ -0,0 +1,474 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage help_documents.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the Joomla modellist library +jimport('joomla.application.component.modellist'); + +/** + * Help_documents Model + */ +class SermondistributorModelHelp_documents extends JModelList +{ + public function __construct($config = array()) + { + if (empty($config['filter_fields'])) + { + $config['filter_fields'] = array( + 'a.id','id', + 'a.published','published', + 'a.ordering','ordering', + 'a.created_by','created_by', + 'a.modified_by','modified_by', + 'a.title','title', + 'a.type','type', + 'a.location','location', + 'a.admin_view','admin_view', + 'a.site_view','site_view' + ); + } + + parent::__construct($config); + } + + /** + * Method to auto-populate the model state. + * + * @return void + */ + protected function populateState($ordering = null, $direction = null) + { + $app = JFactory::getApplication(); + + // Adjust the context to support modal layouts. + if ($layout = $app->input->get('layout')) + { + $this->context .= '.' . $layout; + } + $title = $this->getUserStateFromRequest($this->context . '.filter.title', 'filter_title'); + $this->setState('filter.title', $title); + + $type = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type'); + $this->setState('filter.type', $type); + + $location = $this->getUserStateFromRequest($this->context . '.filter.location', 'filter_location'); + $this->setState('filter.location', $location); + + $admin_view = $this->getUserStateFromRequest($this->context . '.filter.admin_view', 'filter_admin_view'); + $this->setState('filter.admin_view', $admin_view); + + $site_view = $this->getUserStateFromRequest($this->context . '.filter.site_view', 'filter_site_view'); + $this->setState('filter.site_view', $site_view); + + $sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int'); + $this->setState('filter.sorting', $sorting); + + $access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int'); + $this->setState('filter.access', $access); + + $search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search'); + $this->setState('filter.search', $search); + + $published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', ''); + $this->setState('filter.published', $published); + + $created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', ''); + $this->setState('filter.created_by', $created_by); + + $created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created'); + $this->setState('filter.created', $created); + + // List state information. + parent::populateState($ordering, $direction); + } + + /** + * Method to get an array of data items. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getItems() + { + // [10502] check in items + $this->checkInNow(); + + // load parent items + $items = parent::getItems(); + + // [10577] set values to display correctly. + if (SermondistributorHelper::checkArray($items)) + { + // [10580] get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('help_document.access', 'com_sermondistributor.help_document.' . (int) $item->id) && $user->authorise('help_document.access', 'com_sermondistributor')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + // [10648] decode groups + $groupsArray = json_decode($item->groups, true); + if (SermondistributorHelper::checkArray($groupsArray)) + { + $groupsNames = ''; + $counter = 0; + foreach ($groupsArray as $groups) + { + if ($counter == 0) + { + $groupsNames .= SermondistributorHelper::getGroupName($groups); + } + else + { + $groupsNames .= ', '.SermondistributorHelper::getGroupName($groups); + } + $counter++; + } + $item->groups = $groupsNames; + } + } + } + + // [10843] set selection value to a translatable value + if (SermondistributorHelper::checkArray($items)) + { + foreach ($items as $nr => &$item) + { + // [10850] convert type + $item->type = $this->selectionTranslation($item->type, 'type'); + // [10850] convert location + $item->location = $this->selectionTranslation($item->location, 'location'); + } + } + + + // return items + return $items; + } + + /** + * Method to convert selection values to translatable string. + * + * @return translatable string + */ + public function selectionTranslation($value,$name) + { + // [10876] Array of type language strings + if ($name == 'type') + { + $typeArray = array( + 0 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SELECT_AN_OPTION', + 1 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_JOOMLA_ARTICLE', + 2 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TEXT', + 3 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL' + ); + // [10907] Now check if value is found in this array + if (isset($typeArray[$value]) && SermondistributorHelper::checkString($typeArray[$value])) + { + return $typeArray[$value]; + } + } + // [10876] Array of location language strings + if ($name == 'location') + { + $locationArray = array( + 1 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN', + 2 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE' + ); + // [10907] Now check if value is found in this array + if (isset($locationArray[$value]) && SermondistributorHelper::checkString($locationArray[$value])) + { + return $locationArray[$value]; + } + } + return $value; + } + + /** + * Method to build an SQL query to load the list data. + * + * @return string An SQL query + */ + protected function getListQuery() + { + // [7363] Get the user object. + $user = JFactory::getUser(); + // [7365] Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // [7368] Select some fields + $query->select('a.*'); + + // [7375] From the sermondistributor_item table + $query->from($db->quoteName('#__sermondistributor_help_document', 'a')); + + // [7389] Filter by published state + $published = $this->getState('filter.published'); + if (is_numeric($published)) + { + $query->where('a.published = ' . (int) $published); + } + elseif ($published === '') + { + $query->where('(a.published = 0 OR a.published = 1)'); + } + + // [7401] Join over the asset groups. + $query->select('ag.title AS access_level'); + $query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access'); + // [7404] Filter by access level. + if ($access = $this->getState('filter.access')) + { + $query->where('a.access = ' . (int) $access); + } + // [7409] Implement View Level Access + if (!$user->authorise('core.options', 'com_sermondistributor')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + // [7486] Filter by search. + $search = $this->getState('filter.search'); + if (!empty($search)) + { + if (stripos($search, 'id:') === 0) + { + $query->where('a.id = ' . (int) substr($search, 3)); + } + else + { + $search = $db->quote('%' . $db->escape($search, true) . '%'); + $query->where('(a.title LIKE '.$search.' OR a.type LIKE '.$search.' OR a.location LIKE '.$search.' OR a.admin_view LIKE '.$search.' OR a.site_view LIKE '.$search.')'); + } + } + + // [7729] Filter by Type. + if ($type = $this->getState('filter.type')) + { + $query->where('a.type = ' . $db->quote($db->escape($type, true))); + } + // [7729] Filter by Location. + if ($location = $this->getState('filter.location')) + { + $query->where('a.location = ' . $db->quote($db->escape($location, true))); + } + // [7729] Filter by Admin_view. + if ($admin_view = $this->getState('filter.admin_view')) + { + $query->where('a.admin_view = ' . $db->quote($db->escape($admin_view, true))); + } + // [7729] Filter by Site_view. + if ($site_view = $this->getState('filter.site_view')) + { + $query->where('a.site_view = ' . $db->quote($db->escape($site_view, true))); + } + + // [7445] Add the list ordering clause. + $orderCol = $this->state->get('list.ordering', 'a.id'); + $orderDirn = $this->state->get('list.direction', 'asc'); + if ($orderCol != '') + { + $query->order($db->escape($orderCol . ' ' . $orderDirn)); + } + + return $query; + } + + /** + * Method to get list export data. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getExportData($pks) + { + // [7153] setup the query + if (SermondistributorHelper::checkArray($pks)) + { + // [7156] Get the user object. + $user = JFactory::getUser(); + // [7158] Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // [7161] Select some fields + $query->select('a.*'); + + // [7163] From the sermondistributor_help_document table + $query->from($db->quoteName('#__sermondistributor_help_document', 'a')); + $query->where('a.id IN (' . implode(',',$pks) . ')'); + // [7173] Implement View Level Access + if (!$user->authorise('core.options', 'com_sermondistributor')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + + // [7180] Order the results by ordering + $query->order('a.ordering ASC'); + + // [7182] Load the items + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + $items = $db->loadObjectList(); + + // [10577] set values to display correctly. + if (SermondistributorHelper::checkArray($items)) + { + // [10580] get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('help_document.access', 'com_sermondistributor.help_document.' . (int) $item->id) && $user->authorise('help_document.access', 'com_sermondistributor')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + // [10790] unset the values we don't want exported. + unset($item->asset_id); + unset($item->checked_out); + unset($item->checked_out_time); + } + } + // [10799] Add headers to items array. + $headers = $this->getExImPortHeaders(); + if (SermondistributorHelper::checkObject($headers)) + { + array_unshift($items,$headers); + } + return $items; + } + } + return false; + } + + /** + * Method to get header. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getExImPortHeaders() + { + // [7202] Get a db connection. + $db = JFactory::getDbo(); + // [7204] get the columns + $columns = $db->getTableColumns("#__sermondistributor_help_document"); + if (SermondistributorHelper::checkArray($columns)) + { + // [7208] remove the headers you don't import/export. + unset($columns['asset_id']); + unset($columns['checked_out']); + unset($columns['checked_out_time']); + $headers = new stdClass(); + foreach ($columns as $column => $type) + { + $headers->{$column} = $column; + } + return $headers; + } + return false; + } + + /** + * Method to get a store id based on model configuration state. + * + * @return string A store id. + * + */ + protected function getStoreId($id = '') + { + // [10125] Compile the store id. + $id .= ':' . $this->getState('filter.id'); + $id .= ':' . $this->getState('filter.search'); + $id .= ':' . $this->getState('filter.published'); + $id .= ':' . $this->getState('filter.ordering'); + $id .= ':' . $this->getState('filter.created_by'); + $id .= ':' . $this->getState('filter.modified_by'); + $id .= ':' . $this->getState('filter.title'); + $id .= ':' . $this->getState('filter.type'); + $id .= ':' . $this->getState('filter.location'); + $id .= ':' . $this->getState('filter.admin_view'); + $id .= ':' . $this->getState('filter.site_view'); + + return parent::getStoreId($id); + } + + /** + * Build an SQL query to checkin all items left checked out longer then a set time. + * + * @return a bool + * + */ + protected function checkInNow() + { + // [10518] Get set check in time + $time = JComponentHelper::getParams('com_sermondistributor')->get('check_in'); + + if ($time) + { + + // [10523] Get a db connection. + $db = JFactory::getDbo(); + // [10525] reset query + $query = $db->getQuery(true); + $query->select('*'); + $query->from($db->quoteName('#__sermondistributor_help_document')); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + // [10533] Get Yesterdays date + $date = JFactory::getDate()->modify($time)->toSql(); + // [10535] reset query + $query = $db->getQuery(true); + + // [10537] Fields to update. + $fields = array( + $db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'', + $db->quoteName('checked_out') . '=0' + ); + + // [10542] Conditions for which records should be updated. + $conditions = array( + $db->quoteName('checked_out') . '!=0', + $db->quoteName('checked_out_time') . '<\''.$date.'\'' + ); + + // [10547] Check table + $query->update($db->quoteName('#__sermondistributor_help_document'))->set($fields)->where($conditions); + + $db->setQuery($query); + + $db->execute(); + } + } + + return false; + } +} diff --git a/admin/models/import.php b/admin/models/import.php new file mode 100644 index 00000000..2bb57bf3 --- /dev/null +++ b/admin/models/import.php @@ -0,0 +1,724 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage import.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Sermondistributor Import Model + */ +class SermondistributorModelImport extends JModelLegacy +{ + /** + * @var object JTable object + */ + protected $_table = null; + + /** + * @var object JTable object + */ + protected $_url = null; + + /** + * Model context string. + * + * @var string + */ + protected $_context = 'com_sermondistributor.import'; + + /** + * Import Settings + */ + protected $getType = NULL; + protected $dataType = NULL; + + /** + * Method to auto-populate the model state. + * + * Note. Calling getState in this method will result in recursion. + * + * @return void + * + */ + protected function populateState() + { + $app = JFactory::getApplication('administrator'); + + $this->setState('message', $app->getUserState('com_sermondistributor.message')); + $app->setUserState('com_sermondistributor.message', ''); + + // Recall the 'Import from Directory' path. + $path = $app->getUserStateFromRequest($this->_context . '.import_directory', 'import_directory', $app->get('tmp_path')); + $this->setState('import.directory', $path); + // set uploading values + $this->use_streams = false; + $this->allow_unsafe = false; + $this->safeFileOptions = array(); + parent::populateState(); + } + + /** + * Import an spreadsheet from either folder, url or upload. + * + * @return boolean result of import + * + */ + public function import() + { + $this->setState('action', 'import'); + $app = JFactory::getApplication(); + $session = JFactory::getSession(); + $package = null; + $continue = false; + // get import type + $this->getType = $app->input->getString('gettype', NULL); + // get import type + $this->dataType = $session->get('dataType_VDM_IMPORTINTO', NULL); + + if ($package === null) + { + switch ($this->getType) + { + case 'folder': + // Remember the 'Import from Directory' path. + $app->getUserStateFromRequest($this->_context . '.import_directory', 'import_directory'); + $package = $this->_getPackageFromFolder(); + break; + + case 'upload': + $package = $this->_getPackageFromUpload(); + break; + + case 'url': + $package = $this->_getPackageFromUrl(); + break; + + case 'continue': + $continue = true; + $package = $session->get('package', null); + $package = json_decode($package, true); + // clear session + $session->clear('package'); + $session->clear('dataType'); + $session->clear('hasPackage'); + break; + + default: + $app->setUserState('com_sermondistributor.message', JText::_('COM_SERMONDISTRIBUTOR_IMPORT_NO_IMPORT_TYPE_FOUND')); + + return false; + break; + } + } + // Was the package valid? + if (!$package || !$package['type']) + { + if (in_array($this->getType, array('upload', 'url'))) + { + $this->remove($package['packagename']); + } + + $app->setUserState('com_sermondistributor.message', JText::_('COM_SERMONDISTRIBUTOR_IMPORT_UNABLE_TO_FIND_IMPORT_PACKAGE')); + return false; + } + + // first link data to table headers + if(!$continue){ + $package = json_encode($package); + $session->set('package', $package); + $session->set('dataType', $this->dataType); + $session->set('hasPackage', true); + return true; + } + + // set the data + $headerList = json_decode($session->get($this->dataType.'_VDM_IMPORTHEADERS', false), true); + if (!$this->setData($package,$this->dataType,$headerList)) + { + // There was an error importing the package + $msg = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_ERROR'); + $back = $session->get('backto_VDM_IMPORT', NULL); + if ($back) + { + $app->setUserState('com_sermondistributor.redirect_url', 'index.php?option=com_sermondistributor&view='.$back); + $session->clear('backto_VDM_IMPORT'); + } + $result = false; + } + else + { + // Package imported sucessfully + $msg = JText::sprintf('COM_SERMONDISTRIBUTOR_IMPORT_SUCCESS', $package['packagename']); + $back = $session->get('backto_VDM_IMPORT', NULL); + if ($back) + { + $app->setUserState('com_sermondistributor.redirect_url', 'index.php?option=com_sermondistributor&view='.$back); + $session->clear('backto_VDM_IMPORT'); + } + $result = true; + } + + // Set some model state values + $app->enqueueMessage($msg); + + // remove file after import + $this->remove($package['packagename']); + $session->clear($this->getType.'_VDM_IMPORTHEADERS'); + + return $result; + } + + /** + * Works out an importation spreadsheet from a HTTP upload + * + * @return spreadsheet definition or false on failure + */ + protected function _getPackageFromUpload() + { + // Get the uploaded file information + $userfile = JRequest::getVar('import_package', null, 'files', 'array'); + + // Make sure that file uploads are enabled in php + if (!(bool) ini_get('file_uploads')) + { + JError::raiseWarning('', JText::_('COM_SERMONDISTRIBUTOR_IMPORT_MSG_WARNIMPORTFILE')); + return false; + } + + // If there is no uploaded file, we have a problem... + if (!is_array($userfile)) + { + JError::raiseWarning('', JText::_('COM_SERMONDISTRIBUTOR_IMPORT_MSG_NO_FILE_SELECTED')); + return false; + } + + // Check if there was a problem uploading the file. + if ($userfile['error'] || $userfile['size'] < 1) + { + JError::raiseWarning('', JText::_('COM_SERMONDISTRIBUTOR_IMPORT_MSG_WARNIMPORTUPLOADERROR')); + return false; + } + + // Build the appropriate paths + $config = JFactory::getConfig(); + $tmp_dest = $config->get('tmp_path') . '/' . $userfile['name']; + $tmp_src = $userfile['tmp_name']; + + // Move uploaded file + jimport('joomla.filesystem.file'); + $p_file = JFile::upload($tmp_src, $tmp_dest, $this->use_streams, $this->allow_unsafe, $this->safeFileOptions); + + // Was the package downloaded? + if (!$p_file) + { + $session = JFactory::getSession(); + $session->clear('package'); + $session->clear('dataType'); + $session->clear('hasPackage'); + // was not uploaded + return false; + } + + // check that this is a valid spreadsheet + $package = $this->check($userfile['name']); + + return $package; + } + + /** + * Import an spreadsheet from a directory + * + * @return array Spreadsheet details or false on failure + * + */ + protected function _getPackageFromFolder() + { + $input = JFactory::getApplication()->input; + + // Get the path to the package to import + $p_dir = $input->getString('import_directory'); + $p_dir = JPath::clean($p_dir); + // Did you give us a valid path? + if (!file_exists($p_dir)) + { + JError::raiseWarning('', JText::_('COM_SERMONDISTRIBUTOR_IMPORT_MSG_PLEASE_ENTER_A_PACKAGE_DIRECTORY')); + return false; + } + + // Detect the package type + $type = $this->getType; + + // Did you give us a valid package? + if (!$type) + { + JError::raiseWarning('', JText::_('COM_SERMONDISTRIBUTOR_IMPORT_MSG_PATH_DOES_NOT_HAVE_A_VALID_PACKAGE')); + } + + // check the extention + switch(strtolower(pathinfo($p_dir, PATHINFO_EXTENSION))){ + case 'xls': + case 'ods': + case 'csv': + break; + + default: + JError::raiseWarning('', JText::_('COM_SERMONDISTRIBUTOR_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE')); + return false; + break; + } + + $package['packagename'] = null; + $package['dir'] = $p_dir; + $package['type'] = $type; + + return $package; + } + + /** + * Import an spreadsheet from a URL + * + * @return Package details or false on failure + * + */ + protected function _getPackageFromUrl() + { + $input = JFactory::getApplication()->input; + + // Get the URL of the package to import + $url = $input->getString('import_url'); + + // Did you give us a URL? + if (!$url) + { + JError::raiseWarning('', JText::_('COM_SERMONDISTRIBUTOR_IMPORT_MSG_ENTER_A_URL')); + return false; + } + + // Download the package at the URL given + $p_file = JInstallerHelper::downloadPackage($url); + + // Was the package downloaded? + if (!$p_file) + { + JError::raiseWarning('', JText::_('COM_SERMONDISTRIBUTOR_IMPORT_MSG_INVALID_URL')); + return false; + } + + // check that this is a valid spreadsheet + $package = $this->check($p_file); + + return $package; + } + + /** + * Check a file and verifies it as a spreadsheet file + * Supports .csv .xlsx .xls and .ods + * + * @param string $p_filename The uploaded package filename or import directory + * + * @return array of elements + * + */ + protected function check($archivename) + { + // Clean the name + $archivename = JPath::clean($archivename); + + // check the extention + switch(strtolower(pathinfo($archivename, PATHINFO_EXTENSION))){ + case 'xls': + case 'ods': + case 'csv': + break; + + default: + // Cleanup the import files + $this->remove($archivename); + JError::raiseWarning('', JText::_('COM_SERMONDISTRIBUTOR_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE')); + return false; + break; + } + + $config = JFactory::getConfig(); + // set Package Name + $check['packagename'] = $archivename; + + // set directory + $check['dir'] = $config->get('tmp_path'). '/' .$archivename; + + // set type + $check['type'] = $this->getType; + + return $check; + } + + /** + * Clean up temporary uploaded spreadsheet + * + * @param string $package Name of the uploaded spreadsheet file + * + * @return boolean True on success + * + */ + protected function remove($package) + { + jimport('joomla.filesystem.file'); + + $config = JFactory::getConfig(); + $package = $config->get('tmp_path'). '/' .$package; + + // Is the package file a valid file? + if (is_file($package)) + { + JFile::delete($package); + } + elseif (is_file(JPath::clean($package))) + { + // It might also be just a base filename + JFile::delete(JPath::clean($package)); + } + } + + /** + * Set the data from the spreadsheet to the database + * + * @param string $package Paths to the uploaded package file + * + * @return boolean false on failure + * + **/ + protected function setData($package,$table,$target_headers) + { + if (SermondistributorHelper::checkArray($target_headers)) + { + // make sure the file is loaded + JLoader::import('PHPExcel', JPATH_COMPONENT_ADMINISTRATOR . '/helpers'); + $jinput = JFactory::getApplication()->input; + foreach($target_headers as $header) + { + $data['target_headers'][$header] = $jinput->getString($header, null); + } + // set the data + if(isset($package['dir'])) + { + $inputFileType = PHPExcel_IOFactory::identify($package['dir']); + $excelReader = PHPExcel_IOFactory::createReader($inputFileType); + $excelReader->setReadDataOnly(true); + $excelObj = $excelReader->load($package['dir']); + $data['array'] = $excelObj->getActiveSheet()->toArray(null, true,true,true); + $excelObj->disconnectWorksheets(); + unset($excelObj); + return $this->save($data,$table); + } + } + return false; + } + + /** + * Save the data from the file to the database + * + * @param string $package Paths to the uploaded package file + * + * @return boolean false on failure + * + **/ + protected function save($data,$table) + { + // import the data if there is any + if(SermondistributorHelper::checkArray($data['array'])) + { + // get user object + $user = JFactory::getUser(); + // remove header if it has headers + $id_key = $data['target_headers']['id']; + $published_key = $data['target_headers']['published']; + $ordering_key = $data['target_headers']['ordering']; + // get the first array set + $firstSet = reset($data['array']); + + // check if first array is a header array and remove if true + if($firstSet[$id_key] == 'id' || $firstSet[$published_key] == 'published' || $firstSet[$ordering_key] == 'ordering') + { + array_shift($data['array']); + } + + // make sure there is still values in array and that it was not only headers + if(SermondistributorHelper::checkArray($data['array']) && $user->authorise($table.'.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor')) + { + // set target. + $target = array_flip($data['target_headers']); + // Get a db connection. + $db = JFactory::getDbo(); + // set some defaults + $todayDate = JFactory::getDate()->toSql(); + // get global action permissions + $canDo = SermondistributorHelper::getActions($table); + $canEdit = $canDo->get('core.edit'); + $canState = $canDo->get('core.edit.state'); + $canCreate = $canDo->get('core.create'); + $hasAlias = $this->getAliasesUsed($table); + // prosses the data + foreach($data['array'] as $row) + { + $found = false; + if (isset($row[$id_key]) && is_numeric($row[$id_key]) && $row[$id_key] > 0) + { + // raw items import & update! + $query = $db->getQuery(true); + $query + ->select('version') + ->from($db->quoteName('#__sermondistributor_'.$table)) + ->where($db->quoteName('id') . ' = '. $db->quote($row[$id_key])); + // Reset the query using our newly populated query object. + $db->setQuery($query); + $db->execute(); + $found = $db->getNumRows(); + } + + if($found && $canEdit) + { + // update item + $id = $row[$id_key]; + $version = $db->loadResult(); + // reset all buckets + $query = $db->getQuery(true); + $fields = array(); + $version = false; + // Fields to update. + foreach($row as $key => $cell) + { + // ignore column + if ('IGNORE' == $target[$key]) + { + continue; + } + // update modified + if ('modified_by' == $target[$key]) + { + continue; + } + // update modified + if ('modified' == $target[$key]) + { + continue; + } + // update version + if ('version' == $target[$key]) + { + $cell = (int) $version + 1; + $version = true; + } + // verify publish authority + if ('published' == $target[$key] && !$canState) + { + continue; + } + // set to update array + if(in_array($key, $data['target_headers']) && is_numeric($cell)) + { + $fields[] = $db->quoteName($target[$key]) . ' = ' . $cell; + } + elseif(in_array($key, $data['target_headers']) && is_string($cell)) + { + $fields[] = $db->quoteName($target[$key]) . ' = ' . $db->quote($cell); + } + elseif(in_array($key, $data['target_headers']) && is_null($cell)) + { + // if import data is null then set empty + $fields[] = $db->quoteName($target[$key]) . " = ''"; + } + } + // load the defaults + $fields[] = $db->quoteName('modified_by') . ' = ' . $db->quote($user->id); + $fields[] = $db->quoteName('modified') . ' = ' . $db->quote($todayDate); + if (!$version) + { + $fields[] = $db->quoteName('version') . " = " . (int) $version + 1; + } + // Conditions for which records should be updated. + $conditions = array( + $db->quoteName('id') . ' = ' . $id + ); + + $query->update($db->quoteName('#__sermondistributor_'.$table))->set($fields)->where($conditions); + $db->setQuery($query); + $db->execute(); + } + elseif ($canCreate) + { + // insert item + $query = $db->getQuery(true); + // reset all buckets + $columns = array(); + $values = array(); + $version = false; + // Insert columns. Insert values. + foreach($row as $key => $cell) + { + // ignore column + if ('IGNORE' == $target[$key]) + { + continue; + } + // remove id + if ('id' == $target[$key]) + { + continue; + } + // update created + if ('created_by' == $target[$key]) + { + continue; + } + // update created + if ('created' == $target[$key]) + { + continue; + } + // Make sure the alias is incremented + if ('alias' == $target[$key]) + { + $cell = $this->getAlias($cell,$table); + } + // update version + if ('version' == $target[$key]) + { + $cell = 1; + $version = true; + } + // set to insert array + if(in_array($key, $data['target_headers']) && is_numeric($cell)) + { + $columns[] = $target[$key]; + $values[] = $cell; + } + elseif(in_array($key, $data['target_headers']) && is_string($cell)) + { + $columns[] = $target[$key]; + $values[] = $db->quote($cell); + } + elseif(in_array($key, $data['target_headers']) && is_null($cell)) + { + // if import data is null then set empty + $columns[] = $target[$key]; + $values[] = "''"; + } + } + // load the defaults + $columns[] = 'created_by'; + $values[] = $db->quote($user->id); + $columns[] = 'created'; + $values[] = $db->quote($todayDate); + if (!$version) + { + $columns[] = 'version'; + $values[] = 1; + } + // Prepare the insert query. + $query + ->insert($db->quoteName('#__sermondistributor_'.$table)) + ->columns($db->quoteName($columns)) + ->values(implode(',', $values)); + // Set the query using our newly populated query object and execute it. + $db->setQuery($query); + $done = $db->execute(); + if ($done) + { + $aId = $db->insertid(); + // make sure the access of asset is set + SermondistributorHelper::setAsset($aId,$table); + } + } + else + { + return false; + } + } + return true; + } + } + return false; + } + + protected function getAlias($name,$type = false) + { + // sanitize the name to an alias + if (JFactory::getConfig()->get('unicodeslugs') == 1) + { + $alias = JFilterOutput::stringURLUnicodeSlug($name); + } + else + { + $alias = JFilterOutput::stringURLSafe($name); + } + // must be a uniqe alias + if ($type) + { + return $this->getUniqe($alias,'alias',$type); + } + return $alias; + } + + /** + * Method to generate a uniqe value. + * + * @param string $field name. + * @param string $value data. + * @param string $type table. + * + * @return string New value. + */ + protected function getUniqe($value,$field,$type) + { + // insure the filed is always uniqe + while (isset($this->uniqeValueArray[$type][$field][$value])) + { + $value = JString::increment($value, 'dash'); + } + $this->uniqeValueArray[$type][$field][$value] = $value; + return $value; + } + + protected function getAliasesUsed($table) + { + // Get a db connection. + $db = JFactory::getDbo(); + // first we check if there is a alias column + $columns = $db->getTableColumns('#__sermondistributor_'.$table); + if(isset($columns['alias'])){ + // Create a new query object. + $query = $db->getQuery(true); + $query->select($db->quoteName(array('alias'))); + $query->from($db->quoteName('#__sermondistributor_'.$table)); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + $aliases = $db->loadColumn(); + foreach($aliases as $alias) + { + $this->uniqeValueArray[$table]['alias'][$alias] = $alias; + } + } + return true; + } + return false; + } +} diff --git a/admin/models/index.html b/admin/models/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/models/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/models/preacher.php b/admin/models/preacher.php new file mode 100644 index 00000000..4bd91c42 --- /dev/null +++ b/admin/models/preacher.php @@ -0,0 +1,995 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage preacher.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +// import Joomla modelform library +jimport('joomla.application.component.modeladmin'); + +/** + * Sermondistributor Preacher Model + */ +class SermondistributorModelPreacher extends JModelAdmin +{ + /** + * @var string The prefix to use with controller messages. + * @since 1.6 + */ + protected $text_prefix = 'COM_SERMONDISTRIBUTOR'; + + /** + * The type alias for this content type. + * + * @var string + * @since 3.2 + */ + public $typeAlias = 'com_sermondistributor.preacher'; + + /** + * Returns a Table object, always creating it + * + * @param type $type The table type to instantiate + * @param string $prefix A prefix for the table class name. Optional. + * @param array $config Configuration array for model. Optional. + * + * @return JTable A database object + * + * @since 1.6 + */ + public function getTable($type = 'preacher', $prefix = 'SermondistributorTable', $config = array()) + { + return JTable::getInstance($type, $prefix, $config); + } + + /** + * Method to get a single record. + * + * @param integer $pk The id of the primary key. + * + * @return mixed Object on success, false on failure. + * + * @since 1.6 + */ + public function getItem($pk = null) + { + if ($item = parent::getItem($pk)) + { + if (!empty($item->params)) + { + // Convert the params field to an array. + $registry = new Registry; + $registry->loadString($item->params); + $item->params = $registry->toArray(); + } + + if (!empty($item->metadata)) + { + // Convert the metadata field to an array. + $registry = new Registry; + $registry->loadString($item->metadata); + $item->metadata = $registry->toArray(); + } + + if (!empty($item->id)) + { + $item->tags = new JHelperTags; + $item->tags->getTagIds($item->id, 'com_sermondistributor.preacher'); + } + } + $this->preachervmwm = $item->id; + + return $item; + } + + /** + * Method to get list data. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getKalsermons() + { + // [6911] Get the user object. + $user = JFactory::getUser(); + // [6913] Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // [6916] Select some fields + $query->select('a.*'); + $query->select($db->quoteName('c.title','category_title')); + + // [6923] From the sermondistributor_sermon table + $query->from($db->quoteName('#__sermondistributor_sermon', 'a')); + $query->join('LEFT', $db->quoteName('#__categories', 'c') . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('c.id') . ')'); + + // [7516] From the sermondistributor_preacher table. + $query->select($db->quoteName('g.name','preacher_name')); + $query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'g') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('g.id') . ')'); + + // [7516] From the sermondistributor_series table. + $query->select($db->quoteName('h.name','series_name')); + $query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'h') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('h.id') . ')'); + + // [6939] Filter by preachervmwm global. + $preachervmwm = $this->preachervmwm; + if (is_numeric($preachervmwm )) + { + $query->where('a.preacher = ' . (int) $preachervmwm ); + } + elseif (is_string($preachervmwm)) + { + $query->where('a.preacher = ' . $db->quote($preachervmwm)); + } + else + { + $query->where('a.preacher = -5'); + } + + // [6956] Join over the asset groups. + $query->select('ag.title AS access_level'); + $query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access'); + // [6959] Filter by access level. + if ($access = $this->getState('filter.access')) + { + $query->where('a.access = ' . (int) $access); + } + // [6964] Implement View Level Access + if (!$user->authorise('core.options', 'com_sermondistributor')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + + // [6971] Order the results by ordering + $query->order('a.ordering ASC'); + + // [6973] Load the items + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + $items = $db->loadObjectList(); + + // [10577] set values to display correctly. + if (SermondistributorHelper::checkArray($items)) + { + // [10580] get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('sermon.access', 'com_sermondistributor.sermon.' . (int) $item->id) && $user->authorise('sermon.access', 'com_sermondistributor')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + } + } + + // [10843] set selection value to a translatable value + if (SermondistributorHelper::checkArray($items)) + { + foreach ($items as $nr => &$item) + { + // [10850] convert link_type + $item->link_type = $this->selectionTranslationKalsermons($item->link_type, 'link_type'); + // [10850] convert source + $item->source = $this->selectionTranslationKalsermons($item->source, 'source'); + } + } + + return $items; + } + return false; + } + + /** + * Method to convert selection values to translatable string. + * + * @return translatable string + */ + public function selectionTranslationKalsermons($value,$name) + { + // [10876] Array of link_type language strings + if ($name == 'link_type') + { + $link_typeArray = array( + 1 => 'COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED', + 2 => 'COM_SERMONDISTRIBUTOR_SERMON_DIRECT' + ); + // [10907] Now check if value is found in this array + if (isset($link_typeArray[$value]) && SermondistributorHelper::checkString($link_typeArray[$value])) + { + return $link_typeArray[$value]; + } + } + // [10876] Array of source language strings + if ($name == 'source') + { + $sourceArray = array( + 0 => 'COM_SERMONDISTRIBUTOR_SERMON_SELECT_SOURCE', + 1 => 'COM_SERMONDISTRIBUTOR_SERMON_LOCAL_FOLDER', + 2 => 'COM_SERMONDISTRIBUTOR_SERMON_DROPBOX', + 3 => 'COM_SERMONDISTRIBUTOR_SERMON_URL' + ); + // [10907] Now check if value is found in this array + if (isset($sourceArray[$value]) && SermondistributorHelper::checkString($sourceArray[$value])) + { + return $sourceArray[$value]; + } + } + return $value; + } + + /** + * Method to get the record form. + * + * @param array $data Data for the form. + * @param boolean $loadData True if the form is to load its own data (default case), false if not. + * + * @return mixed A JForm object on success, false on failure + * + * @since 1.6 + */ + public function getForm($data = array(), $loadData = true) + { // [9532] Get the form. + $form = $this->loadForm('com_sermondistributor.preacher', 'preacher', array('control' => 'jform', 'load_data' => $loadData)); + + if (empty($form)) + { + return false; + } + + $jinput = JFactory::getApplication()->input; + + // [9617] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first. + if ($jinput->get('a_id')) + { + $id = $jinput->get('a_id', 0, 'INT'); + } + // [9622] The back end uses id so we use that the rest of the time and set it to 0 by default. + else + { + $id = $jinput->get('id', 0, 'INT'); + } + + $user = JFactory::getUser(); + + // [9628] Check for existing item. + // [9629] Modify the form based on Edit State access controls. + if ($id != 0 && (!$user->authorise('preacher.edit.state', 'com_sermondistributor.preacher.' . (int) $id)) + || ($id == 0 && !$user->authorise('preacher.edit.state', 'com_sermondistributor'))) + { + // [9642] Disable fields for display. + $form->setFieldAttribute('ordering', 'disabled', 'true'); + $form->setFieldAttribute('published', 'disabled', 'true'); + // [9645] Disable fields while saving. + $form->setFieldAttribute('ordering', 'filter', 'unset'); + $form->setFieldAttribute('published', 'filter', 'unset'); + } + // [9650] Modify the form based on Edit Creaded By access controls. + if ($id != 0 && (!$user->authorise('preacher.edit.created_by', 'com_sermondistributor.preacher.' . (int) $id)) + || ($id == 0 && !$user->authorise('preacher.edit.created_by', 'com_sermondistributor'))) + { + // [9662] Disable fields for display. + $form->setFieldAttribute('created_by', 'disabled', 'true'); + // [9664] Disable fields for display. + $form->setFieldAttribute('created_by', 'readonly', 'true'); + // [9666] Disable fields while saving. + $form->setFieldAttribute('created_by', 'filter', 'unset'); + } + // [9669] Modify the form based on Edit Creaded Date access controls. + if ($id != 0 && (!$user->authorise('preacher.edit.created', 'com_sermondistributor.preacher.' . (int) $id)) + || ($id == 0 && !$user->authorise('preacher.edit.created', 'com_sermondistributor'))) + { + // [9681] Disable fields for display. + $form->setFieldAttribute('created', 'disabled', 'true'); + // [9683] Disable fields while saving. + $form->setFieldAttribute('created', 'filter', 'unset'); + } + + return $form; + } + + /** + * Method to get the script that have to be included on the form + * + * @return string script files + */ + public function getScript() + { + return 'administrator/components/com_sermondistributor/models/forms/preacher.js'; + } + + /** + * Method to test whether a record can be deleted. + * + * @param object $record A record object. + * + * @return boolean True if allowed to delete the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canDelete($record) + { + if (!empty($record->id)) + { + if ($record->published != -2) + { + return; + } + + $user = JFactory::getUser(); + // [9833] The record has been set. Check the record permissions. + return $user->authorise('preacher.delete', 'com_sermondistributor.preacher.' . (int) $record->id); + } + return false; + } + + /** + * Method to test whether a record can have its state edited. + * + * @param object $record A record object. + * + * @return boolean True if allowed to change the state of the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canEditState($record) + { + $user = JFactory::getUser(); + $recordId = (!empty($record->id)) ? $record->id : 0; + + if ($recordId) + { + // [9920] The record has been set. Check the record permissions. + $permission = $user->authorise('preacher.edit.state', 'com_sermondistributor.preacher.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + return false; + } + } + // [9937] In the absense of better information, revert to the component permissions. + return $user->authorise('preacher.edit.state', 'com_sermondistributor'); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * @since 2.5 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // [9745] Check specific edit permission then general edit permission. + $user = JFactory::getUser(); + + return $user->authorise('preacher.edit', 'com_sermondistributor.preacher.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('preacher.edit', 'com_sermondistributor'); + } + + /** + * Prepare and sanitise the table data prior to saving. + * + * @param JTable $table A JTable object. + * + * @return void + * + * @since 1.6 + */ + protected function prepareTable($table) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if (isset($table->name)) + { + $table->name = htmlspecialchars_decode($table->name, ENT_QUOTES); + } + + if (isset($table->alias) && empty($table->alias)) + { + $table->generateAlias(); + } + + if (empty($table->id)) + { + $table->created = $date->toSql(); + // set the user + if ($table->created_by == 0) + { + $table->created_by = $user->id; + } + // Set ordering to the last item if not set + if (empty($table->ordering)) + { + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select('MAX(ordering)') + ->from($db->quoteName('#__sermondistributor_preacher')); + $db->setQuery($query); + $max = $db->loadResult(); + + $table->ordering = $max + 1; + } + } + else + { + $table->modified = $date->toSql(); + $table->modified_by = $user->id; + } + + if (!empty($table->id)) + { + // Increment the items version number. + $table->version++; + } + } + + /** + * Method to get the data that should be injected in the form. + * + * @return mixed The data for the form. + * + * @since 1.6 + */ + protected function loadFormData() + { + // Check the session for previously entered form data. + $data = JFactory::getApplication()->getUserState('com_sermondistributor.edit.preacher.data', array()); + + if (empty($data)) + { + $data = $this->getItem(); + } + + return $data; + } + + /** + * Method to get the unique fields of this table. + * + * @return mixed An array of field names, boolean false if none is set. + * + * @since 3.0 + */ + protected function getUniqeFields() + { + return false; + } + + /** + * Method to perform batch operations on an item or a set of items. + * + * @param array $commands An array of commands to perform. + * @param array $pks An array of item ids. + * @param array $contexts An array of item contexts. + * + * @return boolean Returns true on success, false on failure. + * + * @since 12.2 + */ + public function batch($commands, $pks, $contexts) + { + // Sanitize ids. + $pks = array_unique($pks); + JArrayHelper::toInteger($pks); + + // Remove any values of zero. + if (array_search(0, $pks, true)) + { + unset($pks[array_search(0, $pks, true)]); + } + + if (empty($pks)) + { + $this->setError(JText::_('JGLOBAL_NO_ITEM_SELECTED')); + return false; + } + + $done = false; + + // Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = SermondistributorHelper::getActions('preacher'); + $this->batchSet = true; + + if (!$this->canDo->get('core.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + return false; + } + + if ($this->type == false) + { + $type = new JUcmType; + $this->type = $type->getTypeByAlias($this->typeAlias); + } + + $this->tagsObserver = $this->table->getObserverOfClass('JTableObserverTags'); + + if (!empty($commands['move_copy'])) + { + $cmd = JArrayHelper::getValue($commands, 'move_copy', 'c'); + + if ($cmd == 'c') + { + $result = $this->batchCopy($commands, $pks, $contexts); + + if (is_array($result)) + { + foreach ($result as $old => $new) + { + $contexts[$new] = $contexts[$old]; + } + $pks = array_values($result); + } + else + { + return false; + } + } + elseif ($cmd == 'm' && !$this->batchMove($commands, $pks, $contexts)) + { + return false; + } + + $done = true; + } + + if (!$done) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + + return false; + } + + // Clear the cache + $this->cleanCache(); + + return true; + } + + /** + * Batch copy items to a new category or current. + * + * @param integer $values The new values. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return mixed An array of new IDs on success, boolean false on failure. + * + * @since 12.2 + */ + protected function batchCopy($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // [4898] Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = SermondistributorHelper::getActions('preacher'); + } + + if (!$this->canDo->get('preacher.create') && !$this->canDo->get('preacher.batch')) + { + return false; + } + + // [4918] get list of uniqe fields + $uniqeFields = $this->getUniqeFields(); + // [4920] remove move_copy from array + unset($values['move_copy']); + + // [4923] make sure published is set + if (!isset($values['published'])) + { + $values['published'] = 0; + } + elseif (isset($values['published']) && !$this->canDo->get('preacher.edit.state')) + { + $values['published'] = 0; + } + + $newIds = array(); + + // [4960] Parent exists so let's proceed + while (!empty($pks)) + { + // [4963] Pop the first ID off the stack + $pk = array_shift($pks); + + $this->table->reset(); + + // [4968] only allow copy if user may edit this item. + + if (!$this->user->authorise('preacher.edit', $contexts[$pk])) + + { + + // [4978] Not fatal error + + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + + continue; + + } + + // [4983] Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // [4988] Fatal error + $this->setError($error); + + return false; + } + else + { + // [4995] Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + list($this->table->name, $this->table->alias) = $this->_generateNewTitle($this->table->alias, $this->table->name); + + // [5031] insert all set values + if (SermondistributorHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + if (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + // [5043] update all uniqe fields + if (SermondistributorHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $this->table->$uniqeField = $this->generateUniqe($uniqeField,$this->table->$uniqeField); + } + } + + // [5052] Reset the ID because we are making a copy + $this->table->id = 0; + + // [5055] TODO: Deal with ordering? + // [5056] $this->table->ordering = 1; + + // [5058] Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // [5071] Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + + // [5079] Get the new item ID + $newId = $this->table->get('id'); + + // [5082] Add the new ID to the array + $newIds[$pk] = $newId; + } + + // [5086] Clean the cache + $this->cleanCache(); + + return $newIds; + } + + /** + * Batch move items to a new category + * + * @param integer $value The new category ID. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 12.2 + */ + protected function batchMove($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // [4700] Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = SermondistributorHelper::getActions('preacher'); + } + + if (!$this->canDo->get('preacher.edit') && !$this->canDo->get('preacher.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + return false; + } + + // [4722] make sure published only updates if user has the permission. + if (isset($values['published']) && !$this->canDo->get('preacher.edit.state')) + { + unset($values['published']); + } + // [4735] remove move_copy from array + unset($values['move_copy']); + + // [4756] Parent exists so we proceed + foreach ($pks as $pk) + { + if (!$this->user->authorise('preacher.edit', $contexts[$pk])) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + + return false; + } + + // [4773] Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // [4778] Fatal error + $this->setError($error); + + return false; + } + else + { + // [4785] Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + // [4791] insert all set values. + if (SermondistributorHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + // [4796] Do special action for access. + if ('access' == $key && strlen($value) > 0) + { + $this->table->$key = $value; + } + elseif (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + + // [4808] Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // [4821] Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + } + + // [4830] Clean the cache + $this->cleanCache(); + + return true; + } + + /** + * Method to save the form data. + * + * @param array $data The form data. + * + * @return boolean True on success. + * + * @since 1.6 + */ + public function save($data) + { + $input = JFactory::getApplication()->input; + $filter = JFilterInput::getInstance(); + + // set the metadata to the Item Data + if (isset($data['metadata']) && isset($data['metadata']['author'])) + { + $data['metadata']['author'] = $filter->clean($data['metadata']['author'], 'TRIM'); + + $metadata = new JRegistry; + $metadata->loadArray($data['metadata']); + $data['metadata'] = (string) $metadata; + } + + // Set the Params Items to data + if (isset($data['params']) && is_array($data['params'])) + { + $params = new JRegistry; + $params->loadArray($data['params']); + $data['params'] = (string) $params; + } + + // [5112] Alter the name for save as copy + if ($input->get('task') == 'save2copy') + { + $origTable = clone $this->getTable(); + $origTable->load($input->getInt('id')); + + if ($data['name'] == $origTable->name) + { + list($name, $alias) = $this->_generateNewTitle($data['alias'], $data['name']); + $data['name'] = $name; + $data['alias'] = $alias; + } + else + { + if ($data['alias'] == $origTable->alias) + { + $data['alias'] = ''; + } + } + + $data['published'] = 0; + } + + // [5139] Automatic handling of alias for empty fields + if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0) + { + if ($data['alias'] == null) + { + if (JFactory::getConfig()->get('unicodeslugs') == 1) + { + $data['alias'] = JFilterOutput::stringURLUnicodeSlug($data['name']); + } + else + { + $data['alias'] = JFilterOutput::stringURLSafe($data['name']); + } + + $table = JTable::getInstance('preacher', 'sermondistributorTable'); + + if ($table->load(array('alias' => $data['alias'])) && ($table->id != $data['id'] || $data['id'] == 0)) + { + $msg = JText::_('COM_SERMONDISTRIBUTOR_PREACHER_SAVE_WARNING'); + } + + list($name, $alias) = $this->_generateNewTitle($data['alias'], $data['name']); + $data['alias'] = $alias; + + if (isset($msg)) + { + JFactory::getApplication()->enqueueMessage($msg, 'warning'); + } + } + } + + // [5178] Alter the uniqe field for save as copy + if ($input->get('task') == 'save2copy') + { + // [5181] Automatic handling of other uniqe fields + $uniqeFields = $this->getUniqeFields(); + if (SermondistributorHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $data[$uniqeField] = $this->generateUniqe($uniqeField,$data[$uniqeField]); + } + } + } + + if (parent::save($data)) + { + return true; + } + return false; + } + + /** + * Method to generate a uniqe value. + * + * @param string $field name. + * @param string $value data. + * + * @return string New value. + * + * @since 3.0 + */ + protected function generateUniqe($field,$value) + { + + // set field value uniqe + $table = $this->getTable(); + + while ($table->load(array($field => $value))) + { + $value = JString::increment($value); + } + + return $value; + } + + /** + * Method to change the title & alias. + * + * @param string $alias The alias. + * @param string $title The title. + * + * @return array Contains the modified title and alias. + * + */ + protected function _generateNewTitle($alias, $title) + { + + // [5212] Alter the title & alias + $table = $this->getTable(); + + while ($table->load(array('alias' => $alias))) + { + $title = JString::increment($title); + $alias = JString::increment($alias, 'dash'); + } + + return array($title, $alias); + } +} diff --git a/admin/models/preachers.php b/admin/models/preachers.php new file mode 100644 index 00000000..026e0999 --- /dev/null +++ b/admin/models/preachers.php @@ -0,0 +1,368 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage preachers.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the Joomla modellist library +jimport('joomla.application.component.modellist'); + +/** + * Preachers Model + */ +class SermondistributorModelPreachers extends JModelList +{ + public function __construct($config = array()) + { + if (empty($config['filter_fields'])) + { + $config['filter_fields'] = array( + 'a.id','id', + 'a.published','published', + 'a.ordering','ordering', + 'a.created_by','created_by', + 'a.modified_by','modified_by', + 'a.name','name', + 'a.description','description' + ); + } + + parent::__construct($config); + } + + /** + * Method to auto-populate the model state. + * + * @return void + */ + protected function populateState($ordering = null, $direction = null) + { + $app = JFactory::getApplication(); + + // Adjust the context to support modal layouts. + if ($layout = $app->input->get('layout')) + { + $this->context .= '.' . $layout; + } + $name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name'); + $this->setState('filter.name', $name); + + $description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description'); + $this->setState('filter.description', $description); + + $sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int'); + $this->setState('filter.sorting', $sorting); + + $access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int'); + $this->setState('filter.access', $access); + + $search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search'); + $this->setState('filter.search', $search); + + $published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', ''); + $this->setState('filter.published', $published); + + $created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', ''); + $this->setState('filter.created_by', $created_by); + + $created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created'); + $this->setState('filter.created', $created); + + // List state information. + parent::populateState($ordering, $direction); + } + + /** + * Method to get an array of data items. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getItems() + { + // [10502] check in items + $this->checkInNow(); + + // load parent items + $items = parent::getItems(); + + // [10577] set values to display correctly. + if (SermondistributorHelper::checkArray($items)) + { + // [10580] get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('preacher.access', 'com_sermondistributor.preacher.' . (int) $item->id) && $user->authorise('preacher.access', 'com_sermondistributor')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + } + } + + // return items + return $items; + } + + /** + * Method to build an SQL query to load the list data. + * + * @return string An SQL query + */ + protected function getListQuery() + { + // [7363] Get the user object. + $user = JFactory::getUser(); + // [7365] Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // [7368] Select some fields + $query->select('a.*'); + + // [7375] From the sermondistributor_item table + $query->from($db->quoteName('#__sermondistributor_preacher', 'a')); + + // [7389] Filter by published state + $published = $this->getState('filter.published'); + if (is_numeric($published)) + { + $query->where('a.published = ' . (int) $published); + } + elseif ($published === '') + { + $query->where('(a.published = 0 OR a.published = 1)'); + } + + // [7401] Join over the asset groups. + $query->select('ag.title AS access_level'); + $query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access'); + // [7404] Filter by access level. + if ($access = $this->getState('filter.access')) + { + $query->where('a.access = ' . (int) $access); + } + // [7409] Implement View Level Access + if (!$user->authorise('core.options', 'com_sermondistributor')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + // [7486] Filter by search. + $search = $this->getState('filter.search'); + if (!empty($search)) + { + if (stripos($search, 'id:') === 0) + { + $query->where('a.id = ' . (int) substr($search, 3)); + } + else + { + $search = $db->quote('%' . $db->escape($search, true) . '%'); + $query->where('(a.name LIKE '.$search.' OR a.description LIKE '.$search.')'); + } + } + + + // [7445] Add the list ordering clause. + $orderCol = $this->state->get('list.ordering', 'a.id'); + $orderDirn = $this->state->get('list.direction', 'asc'); + if ($orderCol != '') + { + $query->order($db->escape($orderCol . ' ' . $orderDirn)); + } + + return $query; + } + + /** + * Method to get list export data. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getExportData($pks) + { + // [7153] setup the query + if (SermondistributorHelper::checkArray($pks)) + { + // [7156] Get the user object. + $user = JFactory::getUser(); + // [7158] Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // [7161] Select some fields + $query->select('a.*'); + + // [7163] From the sermondistributor_preacher table + $query->from($db->quoteName('#__sermondistributor_preacher', 'a')); + $query->where('a.id IN (' . implode(',',$pks) . ')'); + // [7173] Implement View Level Access + if (!$user->authorise('core.options', 'com_sermondistributor')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + + // [7180] Order the results by ordering + $query->order('a.ordering ASC'); + + // [7182] Load the items + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + $items = $db->loadObjectList(); + + // [10577] set values to display correctly. + if (SermondistributorHelper::checkArray($items)) + { + // [10580] get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('preacher.access', 'com_sermondistributor.preacher.' . (int) $item->id) && $user->authorise('preacher.access', 'com_sermondistributor')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + // [10790] unset the values we don't want exported. + unset($item->asset_id); + unset($item->checked_out); + unset($item->checked_out_time); + } + } + // [10799] Add headers to items array. + $headers = $this->getExImPortHeaders(); + if (SermondistributorHelper::checkObject($headers)) + { + array_unshift($items,$headers); + } + return $items; + } + } + return false; + } + + /** + * Method to get header. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getExImPortHeaders() + { + // [7202] Get a db connection. + $db = JFactory::getDbo(); + // [7204] get the columns + $columns = $db->getTableColumns("#__sermondistributor_preacher"); + if (SermondistributorHelper::checkArray($columns)) + { + // [7208] remove the headers you don't import/export. + unset($columns['asset_id']); + unset($columns['checked_out']); + unset($columns['checked_out_time']); + $headers = new stdClass(); + foreach ($columns as $column => $type) + { + $headers->{$column} = $column; + } + return $headers; + } + return false; + } + + /** + * Method to get a store id based on model configuration state. + * + * @return string A store id. + * + */ + protected function getStoreId($id = '') + { + // [10125] Compile the store id. + $id .= ':' . $this->getState('filter.id'); + $id .= ':' . $this->getState('filter.search'); + $id .= ':' . $this->getState('filter.published'); + $id .= ':' . $this->getState('filter.ordering'); + $id .= ':' . $this->getState('filter.created_by'); + $id .= ':' . $this->getState('filter.modified_by'); + $id .= ':' . $this->getState('filter.name'); + $id .= ':' . $this->getState('filter.description'); + + return parent::getStoreId($id); + } + + /** + * Build an SQL query to checkin all items left checked out longer then a set time. + * + * @return a bool + * + */ + protected function checkInNow() + { + // [10518] Get set check in time + $time = JComponentHelper::getParams('com_sermondistributor')->get('check_in'); + + if ($time) + { + + // [10523] Get a db connection. + $db = JFactory::getDbo(); + // [10525] reset query + $query = $db->getQuery(true); + $query->select('*'); + $query->from($db->quoteName('#__sermondistributor_preacher')); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + // [10533] Get Yesterdays date + $date = JFactory::getDate()->modify($time)->toSql(); + // [10535] reset query + $query = $db->getQuery(true); + + // [10537] Fields to update. + $fields = array( + $db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'', + $db->quoteName('checked_out') . '=0' + ); + + // [10542] Conditions for which records should be updated. + $conditions = array( + $db->quoteName('checked_out') . '!=0', + $db->quoteName('checked_out_time') . '<\''.$date.'\'' + ); + + // [10547] Check table + $query->update($db->quoteName('#__sermondistributor_preacher'))->set($fields)->where($conditions); + + $db->setQuery($query); + + $db->execute(); + } + } + + return false; + } +} diff --git a/admin/models/rules/index.html b/admin/models/rules/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/models/rules/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/models/series.php b/admin/models/series.php new file mode 100644 index 00000000..3f8f28b8 --- /dev/null +++ b/admin/models/series.php @@ -0,0 +1,995 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage series.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +// import Joomla modelform library +jimport('joomla.application.component.modeladmin'); + +/** + * Sermondistributor Series Model + */ +class SermondistributorModelSeries extends JModelAdmin +{ + /** + * @var string The prefix to use with controller messages. + * @since 1.6 + */ + protected $text_prefix = 'COM_SERMONDISTRIBUTOR'; + + /** + * The type alias for this content type. + * + * @var string + * @since 3.2 + */ + public $typeAlias = 'com_sermondistributor.series'; + + /** + * Returns a Table object, always creating it + * + * @param type $type The table type to instantiate + * @param string $prefix A prefix for the table class name. Optional. + * @param array $config Configuration array for model. Optional. + * + * @return JTable A database object + * + * @since 1.6 + */ + public function getTable($type = 'series', $prefix = 'SermondistributorTable', $config = array()) + { + return JTable::getInstance($type, $prefix, $config); + } + + /** + * Method to get a single record. + * + * @param integer $pk The id of the primary key. + * + * @return mixed Object on success, false on failure. + * + * @since 1.6 + */ + public function getItem($pk = null) + { + if ($item = parent::getItem($pk)) + { + if (!empty($item->params)) + { + // Convert the params field to an array. + $registry = new Registry; + $registry->loadString($item->params); + $item->params = $registry->toArray(); + } + + if (!empty($item->metadata)) + { + // Convert the metadata field to an array. + $registry = new Registry; + $registry->loadString($item->metadata); + $item->metadata = $registry->toArray(); + } + + if (!empty($item->id)) + { + $item->tags = new JHelperTags; + $item->tags->getTagIds($item->id, 'com_sermondistributor.series'); + } + } + $this->seriespyts = $item->id; + + return $item; + } + + /** + * Method to get list data. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getAoqsermons() + { + // [6911] Get the user object. + $user = JFactory::getUser(); + // [6913] Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // [6916] Select some fields + $query->select('a.*'); + $query->select($db->quoteName('c.title','category_title')); + + // [6923] From the sermondistributor_sermon table + $query->from($db->quoteName('#__sermondistributor_sermon', 'a')); + $query->join('LEFT', $db->quoteName('#__categories', 'c') . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('c.id') . ')'); + + // [7516] From the sermondistributor_preacher table. + $query->select($db->quoteName('g.name','preacher_name')); + $query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'g') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('g.id') . ')'); + + // [7516] From the sermondistributor_series table. + $query->select($db->quoteName('h.name','series_name')); + $query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'h') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('h.id') . ')'); + + // [6939] Filter by seriespyts global. + $seriespyts = $this->seriespyts; + if (is_numeric($seriespyts )) + { + $query->where('a.series = ' . (int) $seriespyts ); + } + elseif (is_string($seriespyts)) + { + $query->where('a.series = ' . $db->quote($seriespyts)); + } + else + { + $query->where('a.series = -5'); + } + + // [6956] Join over the asset groups. + $query->select('ag.title AS access_level'); + $query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access'); + // [6959] Filter by access level. + if ($access = $this->getState('filter.access')) + { + $query->where('a.access = ' . (int) $access); + } + // [6964] Implement View Level Access + if (!$user->authorise('core.options', 'com_sermondistributor')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + + // [6971] Order the results by ordering + $query->order('a.ordering ASC'); + + // [6973] Load the items + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + $items = $db->loadObjectList(); + + // [10577] set values to display correctly. + if (SermondistributorHelper::checkArray($items)) + { + // [10580] get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('sermon.access', 'com_sermondistributor.sermon.' . (int) $item->id) && $user->authorise('sermon.access', 'com_sermondistributor')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + } + } + + // [10843] set selection value to a translatable value + if (SermondistributorHelper::checkArray($items)) + { + foreach ($items as $nr => &$item) + { + // [10850] convert link_type + $item->link_type = $this->selectionTranslationAoqsermons($item->link_type, 'link_type'); + // [10850] convert source + $item->source = $this->selectionTranslationAoqsermons($item->source, 'source'); + } + } + + return $items; + } + return false; + } + + /** + * Method to convert selection values to translatable string. + * + * @return translatable string + */ + public function selectionTranslationAoqsermons($value,$name) + { + // [10876] Array of link_type language strings + if ($name == 'link_type') + { + $link_typeArray = array( + 1 => 'COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED', + 2 => 'COM_SERMONDISTRIBUTOR_SERMON_DIRECT' + ); + // [10907] Now check if value is found in this array + if (isset($link_typeArray[$value]) && SermondistributorHelper::checkString($link_typeArray[$value])) + { + return $link_typeArray[$value]; + } + } + // [10876] Array of source language strings + if ($name == 'source') + { + $sourceArray = array( + 0 => 'COM_SERMONDISTRIBUTOR_SERMON_SELECT_SOURCE', + 1 => 'COM_SERMONDISTRIBUTOR_SERMON_LOCAL_FOLDER', + 2 => 'COM_SERMONDISTRIBUTOR_SERMON_DROPBOX', + 3 => 'COM_SERMONDISTRIBUTOR_SERMON_URL' + ); + // [10907] Now check if value is found in this array + if (isset($sourceArray[$value]) && SermondistributorHelper::checkString($sourceArray[$value])) + { + return $sourceArray[$value]; + } + } + return $value; + } + + /** + * Method to get the record form. + * + * @param array $data Data for the form. + * @param boolean $loadData True if the form is to load its own data (default case), false if not. + * + * @return mixed A JForm object on success, false on failure + * + * @since 1.6 + */ + public function getForm($data = array(), $loadData = true) + { // [9532] Get the form. + $form = $this->loadForm('com_sermondistributor.series', 'series', array('control' => 'jform', 'load_data' => $loadData)); + + if (empty($form)) + { + return false; + } + + $jinput = JFactory::getApplication()->input; + + // [9617] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first. + if ($jinput->get('a_id')) + { + $id = $jinput->get('a_id', 0, 'INT'); + } + // [9622] The back end uses id so we use that the rest of the time and set it to 0 by default. + else + { + $id = $jinput->get('id', 0, 'INT'); + } + + $user = JFactory::getUser(); + + // [9628] Check for existing item. + // [9629] Modify the form based on Edit State access controls. + if ($id != 0 && (!$user->authorise('series.edit.state', 'com_sermondistributor.series.' . (int) $id)) + || ($id == 0 && !$user->authorise('series.edit.state', 'com_sermondistributor'))) + { + // [9642] Disable fields for display. + $form->setFieldAttribute('ordering', 'disabled', 'true'); + $form->setFieldAttribute('published', 'disabled', 'true'); + // [9645] Disable fields while saving. + $form->setFieldAttribute('ordering', 'filter', 'unset'); + $form->setFieldAttribute('published', 'filter', 'unset'); + } + // [9650] Modify the form based on Edit Creaded By access controls. + if ($id != 0 && (!$user->authorise('series.edit.created_by', 'com_sermondistributor.series.' . (int) $id)) + || ($id == 0 && !$user->authorise('series.edit.created_by', 'com_sermondistributor'))) + { + // [9662] Disable fields for display. + $form->setFieldAttribute('created_by', 'disabled', 'true'); + // [9664] Disable fields for display. + $form->setFieldAttribute('created_by', 'readonly', 'true'); + // [9666] Disable fields while saving. + $form->setFieldAttribute('created_by', 'filter', 'unset'); + } + // [9669] Modify the form based on Edit Creaded Date access controls. + if ($id != 0 && (!$user->authorise('series.edit.created', 'com_sermondistributor.series.' . (int) $id)) + || ($id == 0 && !$user->authorise('series.edit.created', 'com_sermondistributor'))) + { + // [9681] Disable fields for display. + $form->setFieldAttribute('created', 'disabled', 'true'); + // [9683] Disable fields while saving. + $form->setFieldAttribute('created', 'filter', 'unset'); + } + + return $form; + } + + /** + * Method to get the script that have to be included on the form + * + * @return string script files + */ + public function getScript() + { + return 'administrator/components/com_sermondistributor/models/forms/series.js'; + } + + /** + * Method to test whether a record can be deleted. + * + * @param object $record A record object. + * + * @return boolean True if allowed to delete the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canDelete($record) + { + if (!empty($record->id)) + { + if ($record->published != -2) + { + return; + } + + $user = JFactory::getUser(); + // [9833] The record has been set. Check the record permissions. + return $user->authorise('series.delete', 'com_sermondistributor.series.' . (int) $record->id); + } + return false; + } + + /** + * Method to test whether a record can have its state edited. + * + * @param object $record A record object. + * + * @return boolean True if allowed to change the state of the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canEditState($record) + { + $user = JFactory::getUser(); + $recordId = (!empty($record->id)) ? $record->id : 0; + + if ($recordId) + { + // [9920] The record has been set. Check the record permissions. + $permission = $user->authorise('series.edit.state', 'com_sermondistributor.series.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + return false; + } + } + // [9937] In the absense of better information, revert to the component permissions. + return $user->authorise('series.edit.state', 'com_sermondistributor'); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * @since 2.5 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // [9745] Check specific edit permission then general edit permission. + $user = JFactory::getUser(); + + return $user->authorise('series.edit', 'com_sermondistributor.series.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('series.edit', 'com_sermondistributor'); + } + + /** + * Prepare and sanitise the table data prior to saving. + * + * @param JTable $table A JTable object. + * + * @return void + * + * @since 1.6 + */ + protected function prepareTable($table) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if (isset($table->name)) + { + $table->name = htmlspecialchars_decode($table->name, ENT_QUOTES); + } + + if (isset($table->alias) && empty($table->alias)) + { + $table->generateAlias(); + } + + if (empty($table->id)) + { + $table->created = $date->toSql(); + // set the user + if ($table->created_by == 0) + { + $table->created_by = $user->id; + } + // Set ordering to the last item if not set + if (empty($table->ordering)) + { + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select('MAX(ordering)') + ->from($db->quoteName('#__sermondistributor_series')); + $db->setQuery($query); + $max = $db->loadResult(); + + $table->ordering = $max + 1; + } + } + else + { + $table->modified = $date->toSql(); + $table->modified_by = $user->id; + } + + if (!empty($table->id)) + { + // Increment the items version number. + $table->version++; + } + } + + /** + * Method to get the data that should be injected in the form. + * + * @return mixed The data for the form. + * + * @since 1.6 + */ + protected function loadFormData() + { + // Check the session for previously entered form data. + $data = JFactory::getApplication()->getUserState('com_sermondistributor.edit.series.data', array()); + + if (empty($data)) + { + $data = $this->getItem(); + } + + return $data; + } + + /** + * Method to get the unique fields of this table. + * + * @return mixed An array of field names, boolean false if none is set. + * + * @since 3.0 + */ + protected function getUniqeFields() + { + return false; + } + + /** + * Method to perform batch operations on an item or a set of items. + * + * @param array $commands An array of commands to perform. + * @param array $pks An array of item ids. + * @param array $contexts An array of item contexts. + * + * @return boolean Returns true on success, false on failure. + * + * @since 12.2 + */ + public function batch($commands, $pks, $contexts) + { + // Sanitize ids. + $pks = array_unique($pks); + JArrayHelper::toInteger($pks); + + // Remove any values of zero. + if (array_search(0, $pks, true)) + { + unset($pks[array_search(0, $pks, true)]); + } + + if (empty($pks)) + { + $this->setError(JText::_('JGLOBAL_NO_ITEM_SELECTED')); + return false; + } + + $done = false; + + // Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = SermondistributorHelper::getActions('series'); + $this->batchSet = true; + + if (!$this->canDo->get('core.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + return false; + } + + if ($this->type == false) + { + $type = new JUcmType; + $this->type = $type->getTypeByAlias($this->typeAlias); + } + + $this->tagsObserver = $this->table->getObserverOfClass('JTableObserverTags'); + + if (!empty($commands['move_copy'])) + { + $cmd = JArrayHelper::getValue($commands, 'move_copy', 'c'); + + if ($cmd == 'c') + { + $result = $this->batchCopy($commands, $pks, $contexts); + + if (is_array($result)) + { + foreach ($result as $old => $new) + { + $contexts[$new] = $contexts[$old]; + } + $pks = array_values($result); + } + else + { + return false; + } + } + elseif ($cmd == 'm' && !$this->batchMove($commands, $pks, $contexts)) + { + return false; + } + + $done = true; + } + + if (!$done) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + + return false; + } + + // Clear the cache + $this->cleanCache(); + + return true; + } + + /** + * Batch copy items to a new category or current. + * + * @param integer $values The new values. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return mixed An array of new IDs on success, boolean false on failure. + * + * @since 12.2 + */ + protected function batchCopy($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // [4898] Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = SermondistributorHelper::getActions('series'); + } + + if (!$this->canDo->get('series.create') && !$this->canDo->get('series.batch')) + { + return false; + } + + // [4918] get list of uniqe fields + $uniqeFields = $this->getUniqeFields(); + // [4920] remove move_copy from array + unset($values['move_copy']); + + // [4923] make sure published is set + if (!isset($values['published'])) + { + $values['published'] = 0; + } + elseif (isset($values['published']) && !$this->canDo->get('series.edit.state')) + { + $values['published'] = 0; + } + + $newIds = array(); + + // [4960] Parent exists so let's proceed + while (!empty($pks)) + { + // [4963] Pop the first ID off the stack + $pk = array_shift($pks); + + $this->table->reset(); + + // [4968] only allow copy if user may edit this item. + + if (!$this->user->authorise('series.edit', $contexts[$pk])) + + { + + // [4978] Not fatal error + + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + + continue; + + } + + // [4983] Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // [4988] Fatal error + $this->setError($error); + + return false; + } + else + { + // [4995] Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + list($this->table->name, $this->table->alias) = $this->_generateNewTitle($this->table->alias, $this->table->name); + + // [5031] insert all set values + if (SermondistributorHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + if (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + // [5043] update all uniqe fields + if (SermondistributorHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $this->table->$uniqeField = $this->generateUniqe($uniqeField,$this->table->$uniqeField); + } + } + + // [5052] Reset the ID because we are making a copy + $this->table->id = 0; + + // [5055] TODO: Deal with ordering? + // [5056] $this->table->ordering = 1; + + // [5058] Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // [5071] Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + + // [5079] Get the new item ID + $newId = $this->table->get('id'); + + // [5082] Add the new ID to the array + $newIds[$pk] = $newId; + } + + // [5086] Clean the cache + $this->cleanCache(); + + return $newIds; + } + + /** + * Batch move items to a new category + * + * @param integer $value The new category ID. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 12.2 + */ + protected function batchMove($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // [4700] Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = SermondistributorHelper::getActions('series'); + } + + if (!$this->canDo->get('series.edit') && !$this->canDo->get('series.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + return false; + } + + // [4722] make sure published only updates if user has the permission. + if (isset($values['published']) && !$this->canDo->get('series.edit.state')) + { + unset($values['published']); + } + // [4735] remove move_copy from array + unset($values['move_copy']); + + // [4756] Parent exists so we proceed + foreach ($pks as $pk) + { + if (!$this->user->authorise('series.edit', $contexts[$pk])) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + + return false; + } + + // [4773] Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // [4778] Fatal error + $this->setError($error); + + return false; + } + else + { + // [4785] Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + // [4791] insert all set values. + if (SermondistributorHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + // [4796] Do special action for access. + if ('access' == $key && strlen($value) > 0) + { + $this->table->$key = $value; + } + elseif (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + + // [4808] Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // [4821] Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + } + + // [4830] Clean the cache + $this->cleanCache(); + + return true; + } + + /** + * Method to save the form data. + * + * @param array $data The form data. + * + * @return boolean True on success. + * + * @since 1.6 + */ + public function save($data) + { + $input = JFactory::getApplication()->input; + $filter = JFilterInput::getInstance(); + + // set the metadata to the Item Data + if (isset($data['metadata']) && isset($data['metadata']['author'])) + { + $data['metadata']['author'] = $filter->clean($data['metadata']['author'], 'TRIM'); + + $metadata = new JRegistry; + $metadata->loadArray($data['metadata']); + $data['metadata'] = (string) $metadata; + } + + // Set the Params Items to data + if (isset($data['params']) && is_array($data['params'])) + { + $params = new JRegistry; + $params->loadArray($data['params']); + $data['params'] = (string) $params; + } + + // [5112] Alter the name for save as copy + if ($input->get('task') == 'save2copy') + { + $origTable = clone $this->getTable(); + $origTable->load($input->getInt('id')); + + if ($data['name'] == $origTable->name) + { + list($name, $alias) = $this->_generateNewTitle($data['alias'], $data['name']); + $data['name'] = $name; + $data['alias'] = $alias; + } + else + { + if ($data['alias'] == $origTable->alias) + { + $data['alias'] = ''; + } + } + + $data['published'] = 0; + } + + // [5139] Automatic handling of alias for empty fields + if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0) + { + if ($data['alias'] == null) + { + if (JFactory::getConfig()->get('unicodeslugs') == 1) + { + $data['alias'] = JFilterOutput::stringURLUnicodeSlug($data['name']); + } + else + { + $data['alias'] = JFilterOutput::stringURLSafe($data['name']); + } + + $table = JTable::getInstance('series', 'sermondistributorTable'); + + if ($table->load(array('alias' => $data['alias'])) && ($table->id != $data['id'] || $data['id'] == 0)) + { + $msg = JText::_('COM_SERMONDISTRIBUTOR_SERIES_SAVE_WARNING'); + } + + list($name, $alias) = $this->_generateNewTitle($data['alias'], $data['name']); + $data['alias'] = $alias; + + if (isset($msg)) + { + JFactory::getApplication()->enqueueMessage($msg, 'warning'); + } + } + } + + // [5178] Alter the uniqe field for save as copy + if ($input->get('task') == 'save2copy') + { + // [5181] Automatic handling of other uniqe fields + $uniqeFields = $this->getUniqeFields(); + if (SermondistributorHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $data[$uniqeField] = $this->generateUniqe($uniqeField,$data[$uniqeField]); + } + } + } + + if (parent::save($data)) + { + return true; + } + return false; + } + + /** + * Method to generate a uniqe value. + * + * @param string $field name. + * @param string $value data. + * + * @return string New value. + * + * @since 3.0 + */ + protected function generateUniqe($field,$value) + { + + // set field value uniqe + $table = $this->getTable(); + + while ($table->load(array($field => $value))) + { + $value = JString::increment($value); + } + + return $value; + } + + /** + * Method to change the title & alias. + * + * @param string $alias The alias. + * @param string $title The title. + * + * @return array Contains the modified title and alias. + * + */ + protected function _generateNewTitle($alias, $title) + { + + // [5212] Alter the title & alias + $table = $this->getTable(); + + while ($table->load(array('alias' => $alias))) + { + $title = JString::increment($title); + $alias = JString::increment($alias, 'dash'); + } + + return array($title, $alias); + } +} diff --git a/admin/models/series_list.php b/admin/models/series_list.php new file mode 100644 index 00000000..98cbb5ba --- /dev/null +++ b/admin/models/series_list.php @@ -0,0 +1,363 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage series_list.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the Joomla modellist library +jimport('joomla.application.component.modellist'); + +/** + * Series_list Model + */ +class SermondistributorModelSeries_list extends JModelList +{ + public function __construct($config = array()) + { + if (empty($config['filter_fields'])) + { + $config['filter_fields'] = array( + 'a.id','id', + 'a.published','published', + 'a.ordering','ordering', + 'a.created_by','created_by', + 'a.modified_by','modified_by', + 'a.name','name' + ); + } + + parent::__construct($config); + } + + /** + * Method to auto-populate the model state. + * + * @return void + */ + protected function populateState($ordering = null, $direction = null) + { + $app = JFactory::getApplication(); + + // Adjust the context to support modal layouts. + if ($layout = $app->input->get('layout')) + { + $this->context .= '.' . $layout; + } + $name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name'); + $this->setState('filter.name', $name); + + $sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int'); + $this->setState('filter.sorting', $sorting); + + $access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int'); + $this->setState('filter.access', $access); + + $search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search'); + $this->setState('filter.search', $search); + + $published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', ''); + $this->setState('filter.published', $published); + + $created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', ''); + $this->setState('filter.created_by', $created_by); + + $created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created'); + $this->setState('filter.created', $created); + + // List state information. + parent::populateState($ordering, $direction); + } + + /** + * Method to get an array of data items. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getItems() + { + // [10502] check in items + $this->checkInNow(); + + // load parent items + $items = parent::getItems(); + + // [10577] set values to display correctly. + if (SermondistributorHelper::checkArray($items)) + { + // [10580] get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('series.access', 'com_sermondistributor.series.' . (int) $item->id) && $user->authorise('series.access', 'com_sermondistributor')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + } + } + + // return items + return $items; + } + + /** + * Method to build an SQL query to load the list data. + * + * @return string An SQL query + */ + protected function getListQuery() + { + // [7363] Get the user object. + $user = JFactory::getUser(); + // [7365] Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // [7368] Select some fields + $query->select('a.*'); + + // [7375] From the sermondistributor_item table + $query->from($db->quoteName('#__sermondistributor_series', 'a')); + + // [7389] Filter by published state + $published = $this->getState('filter.published'); + if (is_numeric($published)) + { + $query->where('a.published = ' . (int) $published); + } + elseif ($published === '') + { + $query->where('(a.published = 0 OR a.published = 1)'); + } + + // [7401] Join over the asset groups. + $query->select('ag.title AS access_level'); + $query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access'); + // [7404] Filter by access level. + if ($access = $this->getState('filter.access')) + { + $query->where('a.access = ' . (int) $access); + } + // [7409] Implement View Level Access + if (!$user->authorise('core.options', 'com_sermondistributor')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + // [7486] Filter by search. + $search = $this->getState('filter.search'); + if (!empty($search)) + { + if (stripos($search, 'id:') === 0) + { + $query->where('a.id = ' . (int) substr($search, 3)); + } + else + { + $search = $db->quote('%' . $db->escape($search, true) . '%'); + $query->where('(a.name LIKE '.$search.')'); + } + } + + + // [7445] Add the list ordering clause. + $orderCol = $this->state->get('list.ordering', 'a.id'); + $orderDirn = $this->state->get('list.direction', 'asc'); + if ($orderCol != '') + { + $query->order($db->escape($orderCol . ' ' . $orderDirn)); + } + + return $query; + } + + /** + * Method to get list export data. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getExportData($pks) + { + // [7153] setup the query + if (SermondistributorHelper::checkArray($pks)) + { + // [7156] Get the user object. + $user = JFactory::getUser(); + // [7158] Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // [7161] Select some fields + $query->select('a.*'); + + // [7163] From the sermondistributor_series table + $query->from($db->quoteName('#__sermondistributor_series', 'a')); + $query->where('a.id IN (' . implode(',',$pks) . ')'); + // [7173] Implement View Level Access + if (!$user->authorise('core.options', 'com_sermondistributor')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + + // [7180] Order the results by ordering + $query->order('a.ordering ASC'); + + // [7182] Load the items + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + $items = $db->loadObjectList(); + + // [10577] set values to display correctly. + if (SermondistributorHelper::checkArray($items)) + { + // [10580] get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('series.access', 'com_sermondistributor.series.' . (int) $item->id) && $user->authorise('series.access', 'com_sermondistributor')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + // [10790] unset the values we don't want exported. + unset($item->asset_id); + unset($item->checked_out); + unset($item->checked_out_time); + } + } + // [10799] Add headers to items array. + $headers = $this->getExImPortHeaders(); + if (SermondistributorHelper::checkObject($headers)) + { + array_unshift($items,$headers); + } + return $items; + } + } + return false; + } + + /** + * Method to get header. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getExImPortHeaders() + { + // [7202] Get a db connection. + $db = JFactory::getDbo(); + // [7204] get the columns + $columns = $db->getTableColumns("#__sermondistributor_series"); + if (SermondistributorHelper::checkArray($columns)) + { + // [7208] remove the headers you don't import/export. + unset($columns['asset_id']); + unset($columns['checked_out']); + unset($columns['checked_out_time']); + $headers = new stdClass(); + foreach ($columns as $column => $type) + { + $headers->{$column} = $column; + } + return $headers; + } + return false; + } + + /** + * Method to get a store id based on model configuration state. + * + * @return string A store id. + * + */ + protected function getStoreId($id = '') + { + // [10125] Compile the store id. + $id .= ':' . $this->getState('filter.id'); + $id .= ':' . $this->getState('filter.search'); + $id .= ':' . $this->getState('filter.published'); + $id .= ':' . $this->getState('filter.ordering'); + $id .= ':' . $this->getState('filter.created_by'); + $id .= ':' . $this->getState('filter.modified_by'); + $id .= ':' . $this->getState('filter.name'); + + return parent::getStoreId($id); + } + + /** + * Build an SQL query to checkin all items left checked out longer then a set time. + * + * @return a bool + * + */ + protected function checkInNow() + { + // [10518] Get set check in time + $time = JComponentHelper::getParams('com_sermondistributor')->get('check_in'); + + if ($time) + { + + // [10523] Get a db connection. + $db = JFactory::getDbo(); + // [10525] reset query + $query = $db->getQuery(true); + $query->select('*'); + $query->from($db->quoteName('#__sermondistributor_series')); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + // [10533] Get Yesterdays date + $date = JFactory::getDate()->modify($time)->toSql(); + // [10535] reset query + $query = $db->getQuery(true); + + // [10537] Fields to update. + $fields = array( + $db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'', + $db->quoteName('checked_out') . '=0' + ); + + // [10542] Conditions for which records should be updated. + $conditions = array( + $db->quoteName('checked_out') . '!=0', + $db->quoteName('checked_out_time') . '<\''.$date.'\'' + ); + + // [10547] Check table + $query->update($db->quoteName('#__sermondistributor_series'))->set($fields)->where($conditions); + + $db->setQuery($query); + + $db->execute(); + } + } + + return false; + } +} diff --git a/admin/models/sermon.php b/admin/models/sermon.php new file mode 100644 index 00000000..f4e91ad6 --- /dev/null +++ b/admin/models/sermon.php @@ -0,0 +1,1084 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermon.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +// import Joomla modelform library +jimport('joomla.application.component.modeladmin'); + +/** + * Sermondistributor Sermon Model + */ +class SermondistributorModelSermon extends JModelAdmin +{ + /** + * @var string The prefix to use with controller messages. + * @since 1.6 + */ + protected $text_prefix = 'COM_SERMONDISTRIBUTOR'; + + /** + * The type alias for this content type. + * + * @var string + * @since 3.2 + */ + public $typeAlias = 'com_sermondistributor.sermon'; + + /** + * Returns a Table object, always creating it + * + * @param type $type The table type to instantiate + * @param string $prefix A prefix for the table class name. Optional. + * @param array $config Configuration array for model. Optional. + * + * @return JTable A database object + * + * @since 1.6 + */ + public function getTable($type = 'sermon', $prefix = 'SermondistributorTable', $config = array()) + { + return JTable::getInstance($type, $prefix, $config); + } + + /** + * Method to get a single record. + * + * @param integer $pk The id of the primary key. + * + * @return mixed Object on success, false on failure. + * + * @since 1.6 + */ + public function getItem($pk = null) + { + if ($item = parent::getItem($pk)) + { + if (!empty($item->params)) + { + // Convert the params field to an array. + $registry = new Registry; + $registry->loadString($item->params); + $item->params = $registry->toArray(); + } + + if (!empty($item->metadata)) + { + // Convert the metadata field to an array. + $registry = new Registry; + $registry->loadString($item->metadata); + $item->metadata = $registry->toArray(); + } + + if (!empty($item->local_files)) + { + // [3986] JSON Decode local_files. + $item->local_files = json_decode($item->local_files); + } + + if (!empty($item->manual_files)) + { + // [3986] JSON Decode manual_files. + $item->manual_files = json_decode($item->manual_files); + } + + if (!empty($item->id)) + { + $item->tags = new JHelperTags; + $item->tags->getTagIds($item->id, 'com_sermondistributor.sermon'); + } + } + $this->sermonpqlr = $item->id; + + return $item; + } + + /** + * Method to get list data. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getTststastics() + { + // [6911] Get the user object. + $user = JFactory::getUser(); + // [6913] Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // [6916] Select some fields + $query->select('a.*'); + + // [6923] From the sermondistributor_statistic table + $query->from($db->quoteName('#__sermondistributor_statistic', 'a')); + + // [7516] From the sermondistributor_sermon table. + $query->select($db->quoteName('g.name','sermon_name')); + $query->join('LEFT', $db->quoteName('#__sermondistributor_sermon', 'g') . ' ON (' . $db->quoteName('a.sermon') . ' = ' . $db->quoteName('g.id') . ')'); + + // [7516] From the sermondistributor_preacher table. + $query->select($db->quoteName('h.name','preacher_name')); + $query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'h') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('h.id') . ')'); + + // [7516] From the sermondistributor_series table. + $query->select($db->quoteName('i.name','series_name')); + $query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'i') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('i.id') . ')'); + + // [6939] Filter by sermonpqlr global. + $sermonpqlr = $this->sermonpqlr; + if (is_numeric($sermonpqlr )) + { + $query->where('a.sermon = ' . (int) $sermonpqlr ); + } + elseif (is_string($sermonpqlr)) + { + $query->where('a.sermon = ' . $db->quote($sermonpqlr)); + } + else + { + $query->where('a.sermon = -5'); + } + + // [6956] Join over the asset groups. + $query->select('ag.title AS access_level'); + $query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access'); + // [6959] Filter by access level. + if ($access = $this->getState('filter.access')) + { + $query->where('a.access = ' . (int) $access); + } + // [6964] Implement View Level Access + if (!$user->authorise('core.options', 'com_sermondistributor')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + + // [6971] Order the results by ordering + $query->order('a.ordering ASC'); + + // [6973] Load the items + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + $items = $db->loadObjectList(); + + // [10577] set values to display correctly. + if (SermondistributorHelper::checkArray($items)) + { + // [10580] get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('statistic.access', 'com_sermondistributor.statistic.' . (int) $item->id) && $user->authorise('statistic.access', 'com_sermondistributor')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + } + } + return $items; + } + return false; + } + + /** + * Method to get the record form. + * + * @param array $data Data for the form. + * @param boolean $loadData True if the form is to load its own data (default case), false if not. + * + * @return mixed A JForm object on success, false on failure + * + * @since 1.6 + */ + public function getForm($data = array(), $loadData = true) + { // [9532] Get the form. + $form = $this->loadForm('com_sermondistributor.sermon', 'sermon', array('control' => 'jform', 'load_data' => $loadData)); + + if (empty($form)) + { + return false; + } + + $jinput = JFactory::getApplication()->input; + + // [9559] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first. + if ($jinput->get('a_id')) + { + $id = $jinput->get('a_id', 0, 'INT'); + } + // [9564] The back end uses id so we use that the rest of the time and set it to 0 by default. + else + { + $id = $jinput->get('id', 0, 'INT'); + } + // [9569] Determine correct permissions to check. + if ($this->getState('sermon.id')) + { + $id = $this->getState('sermon.id'); + + $catid = 0; + if (isset($this->getItem($id)->catid)) + { + // [9576] set catagory id + $catid = $this->getItem($id)->catid; + + // [9578] Existing record. Can only edit in selected categories. + $form->setFieldAttribute('catid', 'action', 'core.edit'); + + // [9580] Existing record. Can only edit own items in selected categories. + $form->setFieldAttribute('catid', 'action', 'core.edit.own'); + } + } + else + { + // [9586] New record. Can only create in selected categories. + $form->setFieldAttribute('catid', 'action', 'core.create'); + } + + $user = JFactory::getUser(); + + // [9590] Check for existing item. + // [9591] Modify the form based on Edit State access controls. + if ($id != 0 && (!$user->authorise('sermon.edit.state', 'com_sermondistributor.sermon.' . (int) $id)) + || (isset($catid) && $catid != 0 && !$user->authorise('core.edit.state', 'com_sermondistributor.sermons.category.' . (int) $catid)) + || ($id == 0 && !$user->authorise('sermon.edit.state', 'com_sermondistributor'))) + { + // [9606] Disable fields for display. + $form->setFieldAttribute('ordering', 'disabled', 'true'); + $form->setFieldAttribute('published', 'disabled', 'true'); + + // [9609] Disable fields while saving. + $form->setFieldAttribute('ordering', 'filter', 'unset'); + $form->setFieldAttribute('published', 'filter', 'unset'); + } + // [9650] Modify the form based on Edit Creaded By access controls. + if ($id != 0 && (!$user->authorise('sermon.edit.created_by', 'com_sermondistributor.sermon.' . (int) $id)) + || ($id == 0 && !$user->authorise('sermon.edit.created_by', 'com_sermondistributor'))) + { + // [9662] Disable fields for display. + $form->setFieldAttribute('created_by', 'disabled', 'true'); + // [9664] Disable fields for display. + $form->setFieldAttribute('created_by', 'readonly', 'true'); + // [9666] Disable fields while saving. + $form->setFieldAttribute('created_by', 'filter', 'unset'); + } + // [9669] Modify the form based on Edit Creaded Date access controls. + if ($id != 0 && (!$user->authorise('sermon.edit.created', 'com_sermondistributor.sermon.' . (int) $id)) + || ($id == 0 && !$user->authorise('sermon.edit.created', 'com_sermondistributor'))) + { + // [9681] Disable fields for display. + $form->setFieldAttribute('created', 'disabled', 'true'); + // [9683] Disable fields while saving. + $form->setFieldAttribute('created', 'filter', 'unset'); + } + + return $form; + } + + /** + * Method to get the script that have to be included on the form + * + * @return string script files + */ + public function getScript() + { + return 'administrator/components/com_sermondistributor/models/forms/sermon.js'; + } + + /** + * Method to test whether a record can be deleted. + * + * @param object $record A record object. + * + * @return boolean True if allowed to delete the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canDelete($record) + { + if (!empty($record->id)) + { + if ($record->published != -2) + { + return; + } + + $user = JFactory::getUser(); + $allow = $user->authorise('core.delete', 'com_sermondistributor.sermons.category.' . (int) $record->catid); + + if ($allow) + { + // [9804] The record has been set. Check the record permissions. + return $user->authorise('sermon.delete', 'com_sermondistributor.sermon.' . (int) $record->id); + } + return $allow; + } + return false; + } + + /** + * Method to test whether a record can have its state edited. + * + * @param object $record A record object. + * + * @return boolean True if allowed to change the state of the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canEditState($record) + { + $user = JFactory::getUser(); + $recordId = (!empty($record->id)) ? $record->id : 0; + + if ($recordId) + { + // [9877] The record has been set. Check the record permissions. + $permission = $user->authorise('sermon.edit.state', 'com_sermondistributor.sermon.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + return false; + } + } + // [9893] Check against the category. + if (!empty($record->catid)) + { + $catpermission = $user->authorise('core.edit.state', 'com_sermondistributor.sermons.category.' . (int) $record->catid); + if (!$catpermission && !is_null($catpermission)) + { + return false; + } + } + // [9904] In the absense of better information, revert to the component permissions. + return $user->authorise('sermon.edit.state', 'com_sermondistributor'); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * @since 2.5 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // [9745] Check specific edit permission then general edit permission. + $user = JFactory::getUser(); + + return $user->authorise('sermon.edit', 'com_sermondistributor.sermon.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('sermon.edit', 'com_sermondistributor'); + } + + /** + * Prepare and sanitise the table data prior to saving. + * + * @param JTable $table A JTable object. + * + * @return void + * + * @since 1.6 + */ + protected function prepareTable($table) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if (isset($table->name)) + { + $table->name = htmlspecialchars_decode($table->name, ENT_QUOTES); + } + + if (isset($table->alias) && empty($table->alias)) + { + $table->generateAlias(); + } + + if (empty($table->id)) + { + $table->created = $date->toSql(); + // set the user + if ($table->created_by == 0) + { + $table->created_by = $user->id; + } + // Set ordering to the last item if not set + if (empty($table->ordering)) + { + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select('MAX(ordering)') + ->from($db->quoteName('#__sermondistributor_sermon')); + $db->setQuery($query); + $max = $db->loadResult(); + + $table->ordering = $max + 1; + } + } + else + { + $table->modified = $date->toSql(); + $table->modified_by = $user->id; + } + + if (!empty($table->id)) + { + // Increment the items version number. + $table->version++; + } + } + + /** + * Method to get the data that should be injected in the form. + * + * @return mixed The data for the form. + * + * @since 1.6 + */ + protected function loadFormData() + { + // Check the session for previously entered form data. + $data = JFactory::getApplication()->getUserState('com_sermondistributor.edit.sermon.data', array()); + + if (empty($data)) + { + $data = $this->getItem(); + } + + return $data; + } + + /** + * Method to validate the form data. + * + * @param JForm $form The form to validate against. + * @param array $data The data to validate. + * @param string $group The name of the field group to validate. + * + * @return mixed Array of filtered data if valid, false otherwise. + * + * @see JFormRule + * @see JFilterInput + * @since 12.2 + */ + public function validate($form, $data, $group = null) + { + // [8736] check if the not_required field is set + if (SermondistributorHelper::checkString($data['not_required'])) + { + $requiredFields = (array) explode(',',(string) $data['not_required']); + $requiredFields = array_unique($requiredFields); + // [8741] now change the required field attributes value + foreach ($requiredFields as $requiredField) + { + // [8744] make sure there is a string value + if (SermondistributorHelper::checkString($requiredField)) + { + // [8747] change to false + $form->setFieldAttribute($requiredField, 'required', 'false'); + // [8749] also clear the data set + $data[$requiredField] = ''; + } + } + } + return parent::validate($form, $data, $group); + } + + /** + * Method to get the unique fields of this table. + * + * @return mixed An array of field names, boolean false if none is set. + * + * @since 3.0 + */ + protected function getUniqeFields() + { + return false; + } + + /** + * Method to perform batch operations on an item or a set of items. + * + * @param array $commands An array of commands to perform. + * @param array $pks An array of item ids. + * @param array $contexts An array of item contexts. + * + * @return boolean Returns true on success, false on failure. + * + * @since 12.2 + */ + public function batch($commands, $pks, $contexts) + { + // Sanitize ids. + $pks = array_unique($pks); + JArrayHelper::toInteger($pks); + + // Remove any values of zero. + if (array_search(0, $pks, true)) + { + unset($pks[array_search(0, $pks, true)]); + } + + if (empty($pks)) + { + $this->setError(JText::_('JGLOBAL_NO_ITEM_SELECTED')); + return false; + } + + $done = false; + + // Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = SermondistributorHelper::getActions('sermon'); + $this->batchSet = true; + + if (!$this->canDo->get('core.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + return false; + } + + if ($this->type == false) + { + $type = new JUcmType; + $this->type = $type->getTypeByAlias($this->typeAlias); + } + + $this->tagsObserver = $this->table->getObserverOfClass('JTableObserverTags'); + + if (!empty($commands['move_copy'])) + { + $cmd = JArrayHelper::getValue($commands, 'move_copy', 'c'); + + if ($cmd == 'c') + { + $result = $this->batchCopy($commands, $pks, $contexts); + + if (is_array($result)) + { + foreach ($result as $old => $new) + { + $contexts[$new] = $contexts[$old]; + } + $pks = array_values($result); + } + else + { + return false; + } + } + elseif ($cmd == 'm' && !$this->batchMove($commands, $pks, $contexts)) + { + return false; + } + + $done = true; + } + + if (!$done) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + + return false; + } + + // Clear the cache + $this->cleanCache(); + + return true; + } + + /** + * Batch copy items to a new category or current. + * + * @param integer $values The new values. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return mixed An array of new IDs on success, boolean false on failure. + * + * @since 12.2 + */ + protected function batchCopy($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // [4898] Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = SermondistributorHelper::getActions('sermon'); + } + + if (!$this->canDo->get('sermon.create') && !$this->canDo->get('sermon.batch')) + { + return false; + } + + // [4918] get list of uniqe fields + $uniqeFields = $this->getUniqeFields(); + // [4920] remove move_copy from array + unset($values['move_copy']); + + // [4923] make sure published is set + if (!isset($values['published'])) + { + $values['published'] = 0; + } + elseif (isset($values['published']) && !$this->canDo->get('sermon.edit.state')) + { + $values['published'] = 0; + } + + if (isset($values['category']) && (int) $values['category'] > 0 && !static::checkCategoryId($values['category'])) + { + return false; + } + elseif (isset($values['category']) && (int) $values['category'] > 0) + { + // [4948] move the category value to correct field name + $values['catid'] = $values['category']; + unset($values['category']); + } + elseif (isset($values['category'])) + { + unset($values['category']); + } + + $newIds = array(); + + // [4960] Parent exists so let's proceed + while (!empty($pks)) + { + // [4963] Pop the first ID off the stack + $pk = array_shift($pks); + + $this->table->reset(); + + // [4968] only allow copy if user may edit this item. + + if (!$this->user->authorise('sermon.edit', $contexts[$pk])) + + { + + // [4978] Not fatal error + + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + + continue; + + } + + // [4983] Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // [4988] Fatal error + $this->setError($error); + + return false; + } + else + { + // [4995] Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + if (isset($values['catid'])) + { + list($this->table->name, $this->table->alias) = $this->generateNewTitle($values['catid'], $this->table->alias, $this->table->name); + } + else + { + list($this->table->name, $this->table->alias) = $this->generateNewTitle($this->table->catid, $this->table->alias, $this->table->name); + } + + // [5031] insert all set values + if (SermondistributorHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + if (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + // [5043] update all uniqe fields + if (SermondistributorHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $this->table->$uniqeField = $this->generateUniqe($uniqeField,$this->table->$uniqeField); + } + } + + // [5052] Reset the ID because we are making a copy + $this->table->id = 0; + + // [5055] TODO: Deal with ordering? + // [5056] $this->table->ordering = 1; + + // [5058] Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // [5071] Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + + // [5079] Get the new item ID + $newId = $this->table->get('id'); + + // [5082] Add the new ID to the array + $newIds[$pk] = $newId; + } + + // [5086] Clean the cache + $this->cleanCache(); + + return $newIds; + } + + /** + * Batch move items to a new category + * + * @param integer $value The new category ID. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 12.2 + */ + protected function batchMove($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // [4700] Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = SermondistributorHelper::getActions('sermon'); + } + + if (!$this->canDo->get('sermon.edit') && !$this->canDo->get('sermon.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + return false; + } + + // [4722] make sure published only updates if user has the permission. + if (isset($values['published']) && !$this->canDo->get('sermon.edit.state')) + { + unset($values['published']); + } + // [4735] remove move_copy from array + unset($values['move_copy']); + + if (isset($values['category']) && (int) $values['category'] > 0 && !static::checkCategoryId($values['category'])) + { + return false; + } + elseif (isset($values['category']) && (int) $values['category'] > 0) + { + // [4746] move the category value to correct field name + $values['catid'] = $values['category']; + unset($values['category']); + } + elseif (isset($values['category'])) + { + unset($values['category']); + } + + + // [4756] Parent exists so we proceed + foreach ($pks as $pk) + { + if (!$this->user->authorise('sermon.edit', $contexts[$pk])) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + + return false; + } + + // [4773] Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // [4778] Fatal error + $this->setError($error); + + return false; + } + else + { + // [4785] Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + // [4791] insert all set values. + if (SermondistributorHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + // [4796] Do special action for access. + if ('access' == $key && strlen($value) > 0) + { + $this->table->$key = $value; + } + elseif (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + + // [4808] Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // [4821] Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + } + + // [4830] Clean the cache + $this->cleanCache(); + + return true; + } + + /** + * Method to save the form data. + * + * @param array $data The form data. + * + * @return boolean True on success. + * + * @since 1.6 + */ + public function save($data) + { + $input = JFactory::getApplication()->input; + $filter = JFilterInput::getInstance(); + + // set the metadata to the Item Data + if (isset($data['metadata']) && isset($data['metadata']['author'])) + { + $data['metadata']['author'] = $filter->clean($data['metadata']['author'], 'TRIM'); + + $metadata = new JRegistry; + $metadata->loadArray($data['metadata']); + $data['metadata'] = (string) $metadata; + } + + // [4096] Set the local_files string to JSON string. + if (isset($data['local_files'])) + { + $data['local_files'] = (string) json_encode($data['local_files']); + } + + // [4096] Set the manual_files string to JSON string. + if (isset($data['manual_files'])) + { + $data['manual_files'] = (string) json_encode($data['manual_files']); + } + + // Set the Params Items to data + if (isset($data['params']) && is_array($data['params'])) + { + $params = new JRegistry; + $params->loadArray($data['params']); + $data['params'] = (string) $params; + } + + // [5112] Alter the name for save as copy + if ($input->get('task') == 'save2copy') + { + $origTable = clone $this->getTable(); + $origTable->load($input->getInt('id')); + + if ($data['name'] == $origTable->name) + { + list($name, $alias) = $this->generateNewTitle($data['catid'], $data['alias'], $data['name']); + $data['name'] = $name; + $data['alias'] = $alias; + } + else + { + if ($data['alias'] == $origTable->alias) + { + $data['alias'] = ''; + } + } + + $data['published'] = 0; + } + + // [5139] Automatic handling of alias for empty fields + if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0) + { + if ($data['alias'] == null) + { + if (JFactory::getConfig()->get('unicodeslugs') == 1) + { + $data['alias'] = JFilterOutput::stringURLUnicodeSlug($data['name']); + } + else + { + $data['alias'] = JFilterOutput::stringURLSafe($data['name']); + } + + $table = JTable::getInstance('sermon', 'sermondistributorTable'); + + if ($table->load(array('alias' => $data['alias'], 'catid' => $data['catid'])) && ($table->id != $data['id'] || $data['id'] == 0)) + { + $msg = JText::_('COM_SERMONDISTRIBUTOR_SERMON_SAVE_WARNING'); + } + + list($name, $alias) = $this->generateNewTitle($data['catid'], $data['alias'], $data['name']); + $data['alias'] = $alias; + + if (isset($msg)) + { + JFactory::getApplication()->enqueueMessage($msg, 'warning'); + } + } + } + + // [5178] Alter the uniqe field for save as copy + if ($input->get('task') == 'save2copy') + { + // [5181] Automatic handling of other uniqe fields + $uniqeFields = $this->getUniqeFields(); + if (SermondistributorHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $data[$uniqeField] = $this->generateUniqe($uniqeField,$data[$uniqeField]); + } + } + } + + if (parent::save($data)) + { + return true; + } + return false; + } + + /** + * Method to generate a uniqe value. + * + * @param string $field name. + * @param string $value data. + * + * @return string New value. + * + * @since 3.0 + */ + protected function generateUniqe($field,$value) + { + + // set field value uniqe + $table = $this->getTable(); + + while ($table->load(array($field => $value))) + { + $value = JString::increment($value); + } + + return $value; + } + + /** + * Method to change the title & alias. + * + * @param string $alias The alias. + * @param string $title The title. + * + * @return array Contains the modified title and alias. + * + */ + protected function _generateNewTitle($alias, $title) + { + + // [5212] Alter the title & alias + $table = $this->getTable(); + + while ($table->load(array('alias' => $alias))) + { + $title = JString::increment($title); + $alias = JString::increment($alias, 'dash'); + } + + return array($title, $alias); + } +} diff --git a/admin/models/sermondistributor.php b/admin/models/sermondistributor.php new file mode 100644 index 00000000..9c1acaa0 --- /dev/null +++ b/admin/models/sermondistributor.php @@ -0,0 +1,232 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermondistributor.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the Joomla modellist library +jimport('joomla.application.component.modellist'); +jimport('joomla.application.component.helper'); + +/** + * Sermondistributor Model + */ +class SermondistributorModelSermondistributor extends JModelList +{ + public function getIcons() + { + // load user for access menus + $user = JFactory::getUser(); + // reset icon array + $icons = array(); + // view groups array + $viewGroups = array( + 'main' => array('png.preacher.add', 'png.preachers', 'png.sermon.add', 'png.sermons', 'png.sermons.catid', 'png.series.add', 'png.series_list', 'png.statistics', 'png.help_documents') + ); + // [12148] view access array + $viewAccess = array( + 'preacher.create' => 'preacher.create', + 'preachers.access' => 'preacher.access', + 'preacher.access' => 'preacher.access', + 'preachers.submenu' => 'preacher.submenu', + 'preachers.dashboard_list' => 'preacher.dashboard_list', + 'preacher.dashboard_add' => 'preacher.dashboard_add', + 'sermon.create' => 'sermon.create', + 'sermons.access' => 'sermon.access', + 'sermon.access' => 'sermon.access', + 'sermons.submenu' => 'sermon.submenu', + 'sermons.dashboard_list' => 'sermon.dashboard_list', + 'sermon.dashboard_add' => 'sermon.dashboard_add', + 'series.create' => 'series.create', + 'series_list.access' => 'series.access', + 'series.access' => 'series.access', + 'series_list.submenu' => 'series.submenu', + 'series_list.dashboard_list' => 'series.dashboard_list', + 'series.dashboard_add' => 'series.dashboard_add', + 'statistic.create' => 'statistic.create', + 'statistics.access' => 'statistic.access', + 'statistic.access' => 'statistic.access', + 'statistics.submenu' => 'statistic.submenu', + 'statistics.dashboard_list' => 'statistic.dashboard_list', + 'help_document.create' => 'help_document.create', + 'help_documents.access' => 'help_document.access', + 'help_document.access' => 'help_document.access', + 'help_documents.submenu' => 'help_document.submenu', + 'help_documents.dashboard_list' => 'help_document.dashboard_list'); + foreach($viewGroups as $group => $views) + { + $i = 0; + if (SermondistributorHelper::checkArray($views)) + { + foreach($views as $view) + { + $add = false; + if (strpos($view,'.') !== false) + { + $dwd = explode('.', $view); + if (count($dwd) == 3) + { + list($type, $name, $action) = $dwd; + } + elseif (count($dwd) == 2) + { + list($type, $name) = $dwd; + $action = false; + } + if ($action) + { + $viewName = $name; + switch($action) + { + case 'add': + $url ='index.php?option=com_sermondistributor&view='.$name.'&layout=edit'; + $image = $name.'_'.$action.'.'.$type; + $alt = $name.'&nbsp;'.$action; + $name = 'COM_SERMONDISTRIBUTOR_DASHBOARD_'.SermondistributorHelper::safeString($name,'U').'_ADD'; + $add = true; + break; + default: + $url = 'index.php?option=com_categories&view=categories&extension=com_sermondistributor.'.$name; + $image = $name.'_'.$action.'.'.$type; + $alt = $name.'&nbsp;'.$action; + $name = 'COM_SERMONDISTRIBUTOR_DASHBOARD_'.SermondistributorHelper::safeString($name,'U').'_'.SermondistributorHelper::safeString($action,'U'); + break; + } + } + else + { + $viewName = $name; + $alt = $name; + $url = 'index.php?option=com_sermondistributor&view='.$name; + $image = $name.'.'.$type; + $name = 'COM_SERMONDISTRIBUTOR_DASHBOARD_'.SermondistributorHelper::safeString($name,'U'); + $hover = false; + } + } + else + { + $viewName = $view; + $alt = $view; + $url = 'index.php?option=com_sermondistributor&view='.$view; + $image = $view.'.png'; + $name = ucwords($view).'<br /><br />'; + $hover = false; + } + // first make sure the view access is set + if (SermondistributorHelper::checkArray($viewAccess)) + { + // setup some defaults + $dashboard_add = false; + $dashboard_list = false; + $accessTo = ''; + $accessAdd = ''; + // acces checking start + $accessCreate = (isset($viewAccess[$viewName.'.create'])) ? SermondistributorHelper::checkString($viewAccess[$viewName.'.create']):false; + $accessAccess = (isset($viewAccess[$viewName.'.access'])) ? SermondistributorHelper::checkString($viewAccess[$viewName.'.access']):false; + // set main controllers + $accessDashboard_add = (isset($viewAccess[$viewName.'.dashboard_add'])) ? SermondistributorHelper::checkString($viewAccess[$viewName.'.dashboard_add']):false; + $accessDashboard_list = (isset($viewAccess[$viewName.'.dashboard_list'])) ? SermondistributorHelper::checkString($viewAccess[$viewName.'.dashboard_list']):false; + // check for adding access + if ($add && $accessCreate) + { + $accessAdd = $viewAccess[$viewName.'.create']; + } + elseif ($add) + { + $accessAdd = 'core.create'; + } + // check if acces to view is set + if ($accessAccess) + { + $accessTo = $viewAccess[$viewName.'.access']; + } + // set main access controllers + if ($accessDashboard_add) + { + $dashboard_add = $user->authorise($viewAccess[$viewName.'.dashboard_add'], 'com_sermondistributor'); + } + if ($accessDashboard_list) + { + $dashboard_list = $user->authorise($viewAccess[$viewName.'.dashboard_list'], 'com_sermondistributor'); + } + if (SermondistributorHelper::checkString($accessAdd) && SermondistributorHelper::checkString($accessTo)) + { + // check access + if($user->authorise($accessAdd, 'com_sermondistributor') && $user->authorise($accessTo, 'com_sermondistributor') && $dashboard_add) + { + $icons[$group][$i] = new StdClass; + $icons[$group][$i]->url = $url; + $icons[$group][$i]->name = $name; + $icons[$group][$i]->image = $image; + $icons[$group][$i]->alt = $alt; + } + } + elseif (SermondistributorHelper::checkString($accessTo)) + { + // check access + if($user->authorise($accessTo, 'com_sermondistributor') && $dashboard_list) + { + $icons[$group][$i] = new StdClass; + $icons[$group][$i]->url = $url; + $icons[$group][$i]->name = $name; + $icons[$group][$i]->image = $image; + $icons[$group][$i]->alt = $alt; + } + } + elseif (SermondistributorHelper::checkString($accessAdd)) + { + // check access + if($user->authorise($accessAdd, 'com_sermondistributor') && $dashboard_add) + { + $icons[$group][$i] = new StdClass; + $icons[$group][$i]->url = $url; + $icons[$group][$i]->name = $name; + $icons[$group][$i]->image = $image; + $icons[$group][$i]->alt = $alt; + } + } + else + { + $icons[$group][$i] = new StdClass; + $icons[$group][$i]->url = $url; + $icons[$group][$i]->name = $name; + $icons[$group][$i]->image = $image; + $icons[$group][$i]->alt = $alt; + } + } + else + { + $icons[$group][$i] = new StdClass; + $icons[$group][$i]->url = $url; + $icons[$group][$i]->name = $name; + $icons[$group][$i]->image = $image; + $icons[$group][$i]->alt = $alt; + } + $i++; + } + } + else + { + $icons[$group][$i] = false; + } + } + return $icons; + } +} diff --git a/admin/models/sermons.php b/admin/models/sermons.php new file mode 100644 index 00000000..c80d8777 --- /dev/null +++ b/admin/models/sermons.php @@ -0,0 +1,506 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermons.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the Joomla modellist library +jimport('joomla.application.component.modellist'); + +/** + * Sermons Model + */ +class SermondistributorModelSermons extends JModelList +{ + public function __construct($config = array()) + { + if (empty($config['filter_fields'])) + { + $config['filter_fields'] = array( + 'a.id','id', + 'a.published','published', + 'a.ordering','ordering', + 'a.created_by','created_by', + 'a.modified_by','modified_by', + 'a.name','name', + 'a.preacher','preacher', + 'a.series','series', + 'a.short_description','short_description', + 'c.title','category_title', + 'c.id', 'category_id', + 'a.catid', 'catid', + 'a.link_type','link_type', + 'a.source','source' + ); + } + + parent::__construct($config); + } + + /** + * Method to auto-populate the model state. + * + * @return void + */ + protected function populateState($ordering = null, $direction = null) + { + $app = JFactory::getApplication(); + + // Adjust the context to support modal layouts. + if ($layout = $app->input->get('layout')) + { + $this->context .= '.' . $layout; + } + $name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name'); + $this->setState('filter.name', $name); + + $preacher = $this->getUserStateFromRequest($this->context . '.filter.preacher', 'filter_preacher'); + $this->setState('filter.preacher', $preacher); + + $series = $this->getUserStateFromRequest($this->context . '.filter.series', 'filter_series'); + $this->setState('filter.series', $series); + + $short_description = $this->getUserStateFromRequest($this->context . '.filter.short_description', 'filter_short_description'); + $this->setState('filter.short_description', $short_description); + + $category = $app->getUserStateFromRequest($this->context . '.filter.category', 'filter_category'); + $this->setState('filter.category', $category); + + $categoryId = $this->getUserStateFromRequest($this->context . '.filter.category_id', 'filter_category_id'); + $this->setState('filter.category_id', $categoryId); + + $catid = $app->getUserStateFromRequest($this->context . '.filter.catid', 'filter_catid'); + $this->setState('filter.catid', $catid); + + $link_type = $this->getUserStateFromRequest($this->context . '.filter.link_type', 'filter_link_type'); + $this->setState('filter.link_type', $link_type); + + $source = $this->getUserStateFromRequest($this->context . '.filter.source', 'filter_source'); + $this->setState('filter.source', $source); + + $sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int'); + $this->setState('filter.sorting', $sorting); + + $access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int'); + $this->setState('filter.access', $access); + + $search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search'); + $this->setState('filter.search', $search); + + $published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', ''); + $this->setState('filter.published', $published); + + $created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', ''); + $this->setState('filter.created_by', $created_by); + + $created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created'); + $this->setState('filter.created', $created); + + // List state information. + parent::populateState($ordering, $direction); + } + + /** + * Method to get an array of data items. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getItems() + { + // [10502] check in items + $this->checkInNow(); + + // load parent items + $items = parent::getItems(); + + // [10577] set values to display correctly. + if (SermondistributorHelper::checkArray($items)) + { + // [10580] get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('sermon.access', 'com_sermondistributor.sermon.' . (int) $item->id) && $user->authorise('sermon.access', 'com_sermondistributor')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + } + } + + // [10843] set selection value to a translatable value + if (SermondistributorHelper::checkArray($items)) + { + foreach ($items as $nr => &$item) + { + // [10850] convert link_type + $item->link_type = $this->selectionTranslation($item->link_type, 'link_type'); + // [10850] convert source + $item->source = $this->selectionTranslation($item->source, 'source'); + } + } + + + // return items + return $items; + } + + /** + * Method to convert selection values to translatable string. + * + * @return translatable string + */ + public function selectionTranslation($value,$name) + { + // [10876] Array of link_type language strings + if ($name == 'link_type') + { + $link_typeArray = array( + 1 => 'COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED', + 2 => 'COM_SERMONDISTRIBUTOR_SERMON_DIRECT' + ); + // [10907] Now check if value is found in this array + if (isset($link_typeArray[$value]) && SermondistributorHelper::checkString($link_typeArray[$value])) + { + return $link_typeArray[$value]; + } + } + // [10876] Array of source language strings + if ($name == 'source') + { + $sourceArray = array( + 0 => 'COM_SERMONDISTRIBUTOR_SERMON_SELECT_SOURCE', + 1 => 'COM_SERMONDISTRIBUTOR_SERMON_LOCAL_FOLDER', + 2 => 'COM_SERMONDISTRIBUTOR_SERMON_DROPBOX', + 3 => 'COM_SERMONDISTRIBUTOR_SERMON_URL' + ); + // [10907] Now check if value is found in this array + if (isset($sourceArray[$value]) && SermondistributorHelper::checkString($sourceArray[$value])) + { + return $sourceArray[$value]; + } + } + return $value; + } + + /** + * Method to build an SQL query to load the list data. + * + * @return string An SQL query + */ + protected function getListQuery() + { + // [7363] Get the user object. + $user = JFactory::getUser(); + // [7365] Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // [7368] Select some fields + $query->select('a.*'); + $query->select($db->quoteName('c.title','category_title')); + + // [7375] From the sermondistributor_item table + $query->from($db->quoteName('#__sermondistributor_sermon', 'a')); + $query->join('LEFT', $db->quoteName('#__categories', 'c') . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('c.id') . ')'); + + // [7516] From the sermondistributor_preacher table. + $query->select($db->quoteName('g.name','preacher_name')); + $query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'g') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('g.id') . ')'); + + // [7516] From the sermondistributor_series table. + $query->select($db->quoteName('h.name','series_name')); + $query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'h') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('h.id') . ')'); + + // [7389] Filter by published state + $published = $this->getState('filter.published'); + if (is_numeric($published)) + { + $query->where('a.published = ' . (int) $published); + } + elseif ($published === '') + { + $query->where('(a.published = 0 OR a.published = 1)'); + } + + // [7401] Join over the asset groups. + $query->select('ag.title AS access_level'); + $query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access'); + // [7404] Filter by access level. + if ($access = $this->getState('filter.access')) + { + $query->where('a.access = ' . (int) $access); + } + // [7409] Implement View Level Access + if (!$user->authorise('core.options', 'com_sermondistributor')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + // [7486] Filter by search. + $search = $this->getState('filter.search'); + if (!empty($search)) + { + if (stripos($search, 'id:') === 0) + { + $query->where('a.id = ' . (int) substr($search, 3)); + } + else + { + $search = $db->quote('%' . $db->escape($search, true) . '%'); + $query->where('(a.name LIKE '.$search.' OR a.preacher LIKE '.$search.' OR g.name LIKE '.$search.' OR a.series LIKE '.$search.' OR h.name LIKE '.$search.' OR a.short_description LIKE '.$search.' OR a.catid LIKE '.$search.' OR a.link_type LIKE '.$search.')'); + } + } + + // [7720] Filter by preacher. + if ($preacher = $this->getState('filter.preacher')) + { + $query->where('a.preacher = ' . $db->quote($db->escape($preacher, true))); + } + // [7720] Filter by series. + if ($series = $this->getState('filter.series')) + { + $query->where('a.series = ' . $db->quote($db->escape($series, true))); + } + // [7729] Filter by Link_type. + if ($link_type = $this->getState('filter.link_type')) + { + $query->where('a.link_type = ' . $db->quote($db->escape($link_type, true))); + } + // [7729] Filter by Source. + if ($source = $this->getState('filter.source')) + { + $query->where('a.source = ' . $db->quote($db->escape($source, true))); + } + + // [7423] Filter by a single or group of categories. + $baselevel = 1; + $categoryId = $this->getState('filter.category_id'); + + if (is_numeric($categoryId)) + { + $cat_tbl = JTable::getInstance('Category', 'JTable'); + $cat_tbl->load($categoryId); + $rgt = $cat_tbl->rgt; + $lft = $cat_tbl->lft; + $baselevel = (int) $cat_tbl->level; + $query->where('c.lft >= ' . (int) $lft) + ->where('c.rgt <= ' . (int) $rgt); + } + elseif (is_array($categoryId)) + { + JArrayHelper::toInteger($categoryId); + $categoryId = implode(',', $categoryId); + $query->where('a.category IN (' . $categoryId . ')'); + } + + + // [7445] Add the list ordering clause. + $orderCol = $this->state->get('list.ordering', 'a.id'); + $orderDirn = $this->state->get('list.direction', 'asc'); + if ($orderCol != '') + { + $query->order($db->escape($orderCol . ' ' . $orderDirn)); + } + + return $query; + } + + /** + * Method to get list export data. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getExportData($pks) + { + // [7153] setup the query + if (SermondistributorHelper::checkArray($pks)) + { + // [7156] Get the user object. + $user = JFactory::getUser(); + // [7158] Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // [7161] Select some fields + $query->select('a.*'); + + // [7163] From the sermondistributor_sermon table + $query->from($db->quoteName('#__sermondistributor_sermon', 'a')); + $query->where('a.id IN (' . implode(',',$pks) . ')'); + // [7173] Implement View Level Access + if (!$user->authorise('core.options', 'com_sermondistributor')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + + // [7180] Order the results by ordering + $query->order('a.ordering ASC'); + + // [7182] Load the items + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + $items = $db->loadObjectList(); + + // [10577] set values to display correctly. + if (SermondistributorHelper::checkArray($items)) + { + // [10580] get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('sermon.access', 'com_sermondistributor.sermon.' . (int) $item->id) && $user->authorise('sermon.access', 'com_sermondistributor')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + // [10790] unset the values we don't want exported. + unset($item->asset_id); + unset($item->checked_out); + unset($item->checked_out_time); + } + } + // [10799] Add headers to items array. + $headers = $this->getExImPortHeaders(); + if (SermondistributorHelper::checkObject($headers)) + { + array_unshift($items,$headers); + } + return $items; + } + } + return false; + } + + /** + * Method to get header. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getExImPortHeaders() + { + // [7202] Get a db connection. + $db = JFactory::getDbo(); + // [7204] get the columns + $columns = $db->getTableColumns("#__sermondistributor_sermon"); + if (SermondistributorHelper::checkArray($columns)) + { + // [7208] remove the headers you don't import/export. + unset($columns['asset_id']); + unset($columns['checked_out']); + unset($columns['checked_out_time']); + $headers = new stdClass(); + foreach ($columns as $column => $type) + { + $headers->{$column} = $column; + } + return $headers; + } + return false; + } + + /** + * Method to get a store id based on model configuration state. + * + * @return string A store id. + * + */ + protected function getStoreId($id = '') + { + // [10125] Compile the store id. + $id .= ':' . $this->getState('filter.id'); + $id .= ':' . $this->getState('filter.search'); + $id .= ':' . $this->getState('filter.published'); + $id .= ':' . $this->getState('filter.ordering'); + $id .= ':' . $this->getState('filter.created_by'); + $id .= ':' . $this->getState('filter.modified_by'); + $id .= ':' . $this->getState('filter.name'); + $id .= ':' . $this->getState('filter.preacher'); + $id .= ':' . $this->getState('filter.series'); + $id .= ':' . $this->getState('filter.short_description'); + $id .= ':' . $this->getState('filter.category'); + $id .= ':' . $this->getState('filter.category_id'); + $id .= ':' . $this->getState('filter.catid'); + $id .= ':' . $this->getState('filter.link_type'); + $id .= ':' . $this->getState('filter.source'); + + return parent::getStoreId($id); + } + + /** + * Build an SQL query to checkin all items left checked out longer then a set time. + * + * @return a bool + * + */ + protected function checkInNow() + { + // [10518] Get set check in time + $time = JComponentHelper::getParams('com_sermondistributor')->get('check_in'); + + if ($time) + { + + // [10523] Get a db connection. + $db = JFactory::getDbo(); + // [10525] reset query + $query = $db->getQuery(true); + $query->select('*'); + $query->from($db->quoteName('#__sermondistributor_sermon')); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + // [10533] Get Yesterdays date + $date = JFactory::getDate()->modify($time)->toSql(); + // [10535] reset query + $query = $db->getQuery(true); + + // [10537] Fields to update. + $fields = array( + $db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'', + $db->quoteName('checked_out') . '=0' + ); + + // [10542] Conditions for which records should be updated. + $conditions = array( + $db->quoteName('checked_out') . '!=0', + $db->quoteName('checked_out_time') . '<\''.$date.'\'' + ); + + // [10547] Check table + $query->update($db->quoteName('#__sermondistributor_sermon'))->set($fields)->where($conditions); + + $db->setQuery($query); + + $db->execute(); + } + } + + return false; + } +} diff --git a/admin/models/statistic.php b/admin/models/statistic.php new file mode 100644 index 00000000..623aab4e --- /dev/null +++ b/admin/models/statistic.php @@ -0,0 +1,797 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage statistic.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +// import Joomla modelform library +jimport('joomla.application.component.modeladmin'); + +/** + * Sermondistributor Statistic Model + */ +class SermondistributorModelStatistic extends JModelAdmin +{ + /** + * @var string The prefix to use with controller messages. + * @since 1.6 + */ + protected $text_prefix = 'COM_SERMONDISTRIBUTOR'; + + /** + * The type alias for this content type. + * + * @var string + * @since 3.2 + */ + public $typeAlias = 'com_sermondistributor.statistic'; + + /** + * Returns a Table object, always creating it + * + * @param type $type The table type to instantiate + * @param string $prefix A prefix for the table class name. Optional. + * @param array $config Configuration array for model. Optional. + * + * @return JTable A database object + * + * @since 1.6 + */ + public function getTable($type = 'statistic', $prefix = 'SermondistributorTable', $config = array()) + { + return JTable::getInstance($type, $prefix, $config); + } + + /** + * Method to get a single record. + * + * @param integer $pk The id of the primary key. + * + * @return mixed Object on success, false on failure. + * + * @since 1.6 + */ + public function getItem($pk = null) + { + if ($item = parent::getItem($pk)) + { + if (!empty($item->params)) + { + // Convert the params field to an array. + $registry = new Registry; + $registry->loadString($item->params); + $item->params = $registry->toArray(); + } + + if (!empty($item->metadata)) + { + // Convert the metadata field to an array. + $registry = new Registry; + $registry->loadString($item->metadata); + $item->metadata = $registry->toArray(); + } + + if (!empty($item->id)) + { + $item->tags = new JHelperTags; + $item->tags->getTagIds($item->id, 'com_sermondistributor.statistic'); + } + } + + return $item; + } + + /** + * Method to get the record form. + * + * @param array $data Data for the form. + * @param boolean $loadData True if the form is to load its own data (default case), false if not. + * + * @return mixed A JForm object on success, false on failure + * + * @since 1.6 + */ + public function getForm($data = array(), $loadData = true) + { // [9532] Get the form. + $form = $this->loadForm('com_sermondistributor.statistic', 'statistic', array('control' => 'jform', 'load_data' => $loadData)); + + if (empty($form)) + { + return false; + } + + $jinput = JFactory::getApplication()->input; + + // [9617] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first. + if ($jinput->get('a_id')) + { + $id = $jinput->get('a_id', 0, 'INT'); + } + // [9622] The back end uses id so we use that the rest of the time and set it to 0 by default. + else + { + $id = $jinput->get('id', 0, 'INT'); + } + + $user = JFactory::getUser(); + + // [9628] Check for existing item. + // [9629] Modify the form based on Edit State access controls. + if ($id != 0 && (!$user->authorise('statistic.edit.state', 'com_sermondistributor.statistic.' . (int) $id)) + || ($id == 0 && !$user->authorise('statistic.edit.state', 'com_sermondistributor'))) + { + // [9642] Disable fields for display. + $form->setFieldAttribute('ordering', 'disabled', 'true'); + $form->setFieldAttribute('published', 'disabled', 'true'); + // [9645] Disable fields while saving. + $form->setFieldAttribute('ordering', 'filter', 'unset'); + $form->setFieldAttribute('published', 'filter', 'unset'); + } + // [9650] Modify the form based on Edit Creaded By access controls. + if ($id != 0 && (!$user->authorise('statistic.edit.created_by', 'com_sermondistributor.statistic.' . (int) $id)) + || ($id == 0 && !$user->authorise('statistic.edit.created_by', 'com_sermondistributor'))) + { + // [9662] Disable fields for display. + $form->setFieldAttribute('created_by', 'disabled', 'true'); + // [9664] Disable fields for display. + $form->setFieldAttribute('created_by', 'readonly', 'true'); + // [9666] Disable fields while saving. + $form->setFieldAttribute('created_by', 'filter', 'unset'); + } + // [9669] Modify the form based on Edit Creaded Date access controls. + if ($id != 0 && (!$user->authorise('statistic.edit.created', 'com_sermondistributor.statistic.' . (int) $id)) + || ($id == 0 && !$user->authorise('statistic.edit.created', 'com_sermondistributor'))) + { + // [9681] Disable fields for display. + $form->setFieldAttribute('created', 'disabled', 'true'); + // [9683] Disable fields while saving. + $form->setFieldAttribute('created', 'filter', 'unset'); + } + + return $form; + } + + /** + * Method to get the script that have to be included on the form + * + * @return string script files + */ + public function getScript() + { + return 'administrator/components/com_sermondistributor/models/forms/statistic.js'; + } + + /** + * Method to test whether a record can be deleted. + * + * @param object $record A record object. + * + * @return boolean True if allowed to delete the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canDelete($record) + { + if (!empty($record->id)) + { + if ($record->published != -2) + { + return; + } + + $user = JFactory::getUser(); + // [9833] The record has been set. Check the record permissions. + return $user->authorise('statistic.delete', 'com_sermondistributor.statistic.' . (int) $record->id); + } + return false; + } + + /** + * Method to test whether a record can have its state edited. + * + * @param object $record A record object. + * + * @return boolean True if allowed to change the state of the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canEditState($record) + { + $user = JFactory::getUser(); + $recordId = (!empty($record->id)) ? $record->id : 0; + + if ($recordId) + { + // [9920] The record has been set. Check the record permissions. + $permission = $user->authorise('statistic.edit.state', 'com_sermondistributor.statistic.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + return false; + } + } + // [9937] In the absense of better information, revert to the component permissions. + return $user->authorise('statistic.edit.state', 'com_sermondistributor'); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * @since 2.5 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // [9745] Check specific edit permission then general edit permission. + $user = JFactory::getUser(); + + return $user->authorise('statistic.edit', 'com_sermondistributor.statistic.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('statistic.edit', 'com_sermondistributor'); + } + + /** + * Prepare and sanitise the table data prior to saving. + * + * @param JTable $table A JTable object. + * + * @return void + * + * @since 1.6 + */ + protected function prepareTable($table) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if (isset($table->name)) + { + $table->name = htmlspecialchars_decode($table->name, ENT_QUOTES); + } + + if (isset($table->alias) && empty($table->alias)) + { + $table->generateAlias(); + } + + if (empty($table->id)) + { + $table->created = $date->toSql(); + // set the user + if ($table->created_by == 0) + { + $table->created_by = $user->id; + } + // Set ordering to the last item if not set + if (empty($table->ordering)) + { + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select('MAX(ordering)') + ->from($db->quoteName('#__sermondistributor_statistic')); + $db->setQuery($query); + $max = $db->loadResult(); + + $table->ordering = $max + 1; + } + } + else + { + $table->modified = $date->toSql(); + $table->modified_by = $user->id; + } + + if (!empty($table->id)) + { + // Increment the items version number. + $table->version++; + } + } + + /** + * Method to get the data that should be injected in the form. + * + * @return mixed The data for the form. + * + * @since 1.6 + */ + protected function loadFormData() + { + // Check the session for previously entered form data. + $data = JFactory::getApplication()->getUserState('com_sermondistributor.edit.statistic.data', array()); + + if (empty($data)) + { + $data = $this->getItem(); + } + + return $data; + } + + /** + * Method to get the unique fields of this table. + * + * @return mixed An array of field names, boolean false if none is set. + * + * @since 3.0 + */ + protected function getUniqeFields() + { + return false; + } + + /** + * Method to perform batch operations on an item or a set of items. + * + * @param array $commands An array of commands to perform. + * @param array $pks An array of item ids. + * @param array $contexts An array of item contexts. + * + * @return boolean Returns true on success, false on failure. + * + * @since 12.2 + */ + public function batch($commands, $pks, $contexts) + { + // Sanitize ids. + $pks = array_unique($pks); + JArrayHelper::toInteger($pks); + + // Remove any values of zero. + if (array_search(0, $pks, true)) + { + unset($pks[array_search(0, $pks, true)]); + } + + if (empty($pks)) + { + $this->setError(JText::_('JGLOBAL_NO_ITEM_SELECTED')); + return false; + } + + $done = false; + + // Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = SermondistributorHelper::getActions('statistic'); + $this->batchSet = true; + + if (!$this->canDo->get('core.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + return false; + } + + if ($this->type == false) + { + $type = new JUcmType; + $this->type = $type->getTypeByAlias($this->typeAlias); + } + + $this->tagsObserver = $this->table->getObserverOfClass('JTableObserverTags'); + + if (!empty($commands['move_copy'])) + { + $cmd = JArrayHelper::getValue($commands, 'move_copy', 'c'); + + if ($cmd == 'c') + { + $result = $this->batchCopy($commands, $pks, $contexts); + + if (is_array($result)) + { + foreach ($result as $old => $new) + { + $contexts[$new] = $contexts[$old]; + } + $pks = array_values($result); + } + else + { + return false; + } + } + elseif ($cmd == 'm' && !$this->batchMove($commands, $pks, $contexts)) + { + return false; + } + + $done = true; + } + + if (!$done) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + + return false; + } + + // Clear the cache + $this->cleanCache(); + + return true; + } + + /** + * Batch copy items to a new category or current. + * + * @param integer $values The new values. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return mixed An array of new IDs on success, boolean false on failure. + * + * @since 12.2 + */ + protected function batchCopy($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // [4898] Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = SermondistributorHelper::getActions('statistic'); + } + + if (!$this->canDo->get('statistic.create') && !$this->canDo->get('statistic.batch')) + { + return false; + } + + // [4918] get list of uniqe fields + $uniqeFields = $this->getUniqeFields(); + // [4920] remove move_copy from array + unset($values['move_copy']); + + // [4923] make sure published is set + if (!isset($values['published'])) + { + $values['published'] = 0; + } + elseif (isset($values['published']) && !$this->canDo->get('statistic.edit.state')) + { + $values['published'] = 0; + } + + $newIds = array(); + + // [4960] Parent exists so let's proceed + while (!empty($pks)) + { + // [4963] Pop the first ID off the stack + $pk = array_shift($pks); + + $this->table->reset(); + + // [4968] only allow copy if user may edit this item. + + if (!$this->user->authorise('statistic.edit', $contexts[$pk])) + + { + + // [4978] Not fatal error + + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + + continue; + + } + + // [4983] Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // [4988] Fatal error + $this->setError($error); + + return false; + } + else + { + // [4995] Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + $this->table->filename = $this->generateUniqe('filename',$this->table->filename); + + // [5031] insert all set values + if (SermondistributorHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + if (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + // [5043] update all uniqe fields + if (SermondistributorHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $this->table->$uniqeField = $this->generateUniqe($uniqeField,$this->table->$uniqeField); + } + } + + // [5052] Reset the ID because we are making a copy + $this->table->id = 0; + + // [5055] TODO: Deal with ordering? + // [5056] $this->table->ordering = 1; + + // [5058] Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // [5071] Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + + // [5079] Get the new item ID + $newId = $this->table->get('id'); + + // [5082] Add the new ID to the array + $newIds[$pk] = $newId; + } + + // [5086] Clean the cache + $this->cleanCache(); + + return $newIds; + } + + /** + * Batch move items to a new category + * + * @param integer $value The new category ID. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 12.2 + */ + protected function batchMove($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // [4700] Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = SermondistributorHelper::getActions('statistic'); + } + + if (!$this->canDo->get('statistic.edit') && !$this->canDo->get('statistic.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + return false; + } + + // [4722] make sure published only updates if user has the permission. + if (isset($values['published']) && !$this->canDo->get('statistic.edit.state')) + { + unset($values['published']); + } + // [4735] remove move_copy from array + unset($values['move_copy']); + + // [4756] Parent exists so we proceed + foreach ($pks as $pk) + { + if (!$this->user->authorise('statistic.edit', $contexts[$pk])) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + + return false; + } + + // [4773] Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // [4778] Fatal error + $this->setError($error); + + return false; + } + else + { + // [4785] Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + // [4791] insert all set values. + if (SermondistributorHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + // [4796] Do special action for access. + if ('access' == $key && strlen($value) > 0) + { + $this->table->$key = $value; + } + elseif (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + + // [4808] Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // [4821] Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + } + + // [4830] Clean the cache + $this->cleanCache(); + + return true; + } + + /** + * Method to save the form data. + * + * @param array $data The form data. + * + * @return boolean True on success. + * + * @since 1.6 + */ + public function save($data) + { + $input = JFactory::getApplication()->input; + $filter = JFilterInput::getInstance(); + + // set the metadata to the Item Data + if (isset($data['metadata']) && isset($data['metadata']['author'])) + { + $data['metadata']['author'] = $filter->clean($data['metadata']['author'], 'TRIM'); + + $metadata = new JRegistry; + $metadata->loadArray($data['metadata']); + $data['metadata'] = (string) $metadata; + } + + // Set the Params Items to data + if (isset($data['params']) && is_array($data['params'])) + { + $params = new JRegistry; + $params->loadArray($data['params']); + $data['params'] = (string) $params; + } + + // [5178] Alter the uniqe field for save as copy + if ($input->get('task') == 'save2copy') + { + // [5181] Automatic handling of other uniqe fields + $uniqeFields = $this->getUniqeFields(); + if (SermondistributorHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $data[$uniqeField] = $this->generateUniqe($uniqeField,$data[$uniqeField]); + } + } + } + + if (parent::save($data)) + { + return true; + } + return false; + } + + /** + * Method to generate a uniqe value. + * + * @param string $field name. + * @param string $value data. + * + * @return string New value. + * + * @since 3.0 + */ + protected function generateUniqe($field,$value) + { + + // set field value uniqe + $table = $this->getTable(); + + while ($table->load(array($field => $value))) + { + $value = JString::increment($value); + } + + return $value; + } + + /** + * Method to change the title & alias. + * + * @param string $title The title. + * + * @return array Contains the modified title and alias. + * + */ + protected function _generateNewTitle($title) + { + + // [5236] Alter the title + $table = $this->getTable(); + + while ($table->load(array('title' => $title))) + { + $title = JString::increment($title); + } + + return $title; + } +} diff --git a/admin/models/statistics.php b/admin/models/statistics.php new file mode 100644 index 00000000..9ebc30da --- /dev/null +++ b/admin/models/statistics.php @@ -0,0 +1,410 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage statistics.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the Joomla modellist library +jimport('joomla.application.component.modellist'); + +/** + * Statistics Model + */ +class SermondistributorModelStatistics extends JModelList +{ + public function __construct($config = array()) + { + if (empty($config['filter_fields'])) + { + $config['filter_fields'] = array( + 'a.id','id', + 'a.published','published', + 'a.ordering','ordering', + 'a.created_by','created_by', + 'a.modified_by','modified_by', + 'a.filename','filename', + 'a.sermon','sermon', + 'a.preacher','preacher', + 'a.series','series', + 'a.counter','counter' + ); + } + + parent::__construct($config); + } + + /** + * Method to auto-populate the model state. + * + * @return void + */ + protected function populateState($ordering = null, $direction = null) + { + $app = JFactory::getApplication(); + + // Adjust the context to support modal layouts. + if ($layout = $app->input->get('layout')) + { + $this->context .= '.' . $layout; + } + $filename = $this->getUserStateFromRequest($this->context . '.filter.filename', 'filter_filename'); + $this->setState('filter.filename', $filename); + + $sermon = $this->getUserStateFromRequest($this->context . '.filter.sermon', 'filter_sermon'); + $this->setState('filter.sermon', $sermon); + + $preacher = $this->getUserStateFromRequest($this->context . '.filter.preacher', 'filter_preacher'); + $this->setState('filter.preacher', $preacher); + + $series = $this->getUserStateFromRequest($this->context . '.filter.series', 'filter_series'); + $this->setState('filter.series', $series); + + $counter = $this->getUserStateFromRequest($this->context . '.filter.counter', 'filter_counter'); + $this->setState('filter.counter', $counter); + + $sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int'); + $this->setState('filter.sorting', $sorting); + + $access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int'); + $this->setState('filter.access', $access); + + $search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search'); + $this->setState('filter.search', $search); + + $published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', ''); + $this->setState('filter.published', $published); + + $created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', ''); + $this->setState('filter.created_by', $created_by); + + $created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created'); + $this->setState('filter.created', $created); + + // List state information. + parent::populateState($ordering, $direction); + } + + /** + * Method to get an array of data items. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getItems() + { + // [10502] check in items + $this->checkInNow(); + + // load parent items + $items = parent::getItems(); + + // [10577] set values to display correctly. + if (SermondistributorHelper::checkArray($items)) + { + // [10580] get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('statistic.access', 'com_sermondistributor.statistic.' . (int) $item->id) && $user->authorise('statistic.access', 'com_sermondistributor')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + } + } + + // return items + return $items; + } + + /** + * Method to build an SQL query to load the list data. + * + * @return string An SQL query + */ + protected function getListQuery() + { + // [7363] Get the user object. + $user = JFactory::getUser(); + // [7365] Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // [7368] Select some fields + $query->select('a.*'); + + // [7375] From the sermondistributor_item table + $query->from($db->quoteName('#__sermondistributor_statistic', 'a')); + + // [7516] From the sermondistributor_sermon table. + $query->select($db->quoteName('g.name','sermon_name')); + $query->join('LEFT', $db->quoteName('#__sermondistributor_sermon', 'g') . ' ON (' . $db->quoteName('a.sermon') . ' = ' . $db->quoteName('g.id') . ')'); + + // [7516] From the sermondistributor_preacher table. + $query->select($db->quoteName('h.name','preacher_name')); + $query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'h') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('h.id') . ')'); + + // [7516] From the sermondistributor_series table. + $query->select($db->quoteName('i.name','series_name')); + $query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'i') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('i.id') . ')'); + + // [7389] Filter by published state + $published = $this->getState('filter.published'); + if (is_numeric($published)) + { + $query->where('a.published = ' . (int) $published); + } + elseif ($published === '') + { + $query->where('(a.published = 0 OR a.published = 1)'); + } + + // [7401] Join over the asset groups. + $query->select('ag.title AS access_level'); + $query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access'); + // [7404] Filter by access level. + if ($access = $this->getState('filter.access')) + { + $query->where('a.access = ' . (int) $access); + } + // [7409] Implement View Level Access + if (!$user->authorise('core.options', 'com_sermondistributor')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + // [7486] Filter by search. + $search = $this->getState('filter.search'); + if (!empty($search)) + { + if (stripos($search, 'id:') === 0) + { + $query->where('a.id = ' . (int) substr($search, 3)); + } + else + { + $search = $db->quote('%' . $db->escape($search, true) . '%'); + $query->where('(a.filename LIKE '.$search.' OR a.sermon LIKE '.$search.' OR g.name LIKE '.$search.' OR a.preacher LIKE '.$search.' OR h.name LIKE '.$search.' OR a.series LIKE '.$search.' OR i.name LIKE '.$search.')'); + } + } + + // [7720] Filter by sermon. + if ($sermon = $this->getState('filter.sermon')) + { + $query->where('a.sermon = ' . $db->quote($db->escape($sermon, true))); + } + // [7720] Filter by preacher. + if ($preacher = $this->getState('filter.preacher')) + { + $query->where('a.preacher = ' . $db->quote($db->escape($preacher, true))); + } + // [7720] Filter by series. + if ($series = $this->getState('filter.series')) + { + $query->where('a.series = ' . $db->quote($db->escape($series, true))); + } + + // [7445] Add the list ordering clause. + $orderCol = $this->state->get('list.ordering', 'a.id'); + $orderDirn = $this->state->get('list.direction', 'asc'); + if ($orderCol != '') + { + $query->order($db->escape($orderCol . ' ' . $orderDirn)); + } + + return $query; + } + + /** + * Method to get list export data. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getExportData($pks) + { + // [7153] setup the query + if (SermondistributorHelper::checkArray($pks)) + { + // [7156] Get the user object. + $user = JFactory::getUser(); + // [7158] Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // [7161] Select some fields + $query->select('a.*'); + + // [7163] From the sermondistributor_statistic table + $query->from($db->quoteName('#__sermondistributor_statistic', 'a')); + $query->where('a.id IN (' . implode(',',$pks) . ')'); + // [7173] Implement View Level Access + if (!$user->authorise('core.options', 'com_sermondistributor')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + + // [7180] Order the results by ordering + $query->order('a.ordering ASC'); + + // [7182] Load the items + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + $items = $db->loadObjectList(); + + // [10577] set values to display correctly. + if (SermondistributorHelper::checkArray($items)) + { + // [10580] get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('statistic.access', 'com_sermondistributor.statistic.' . (int) $item->id) && $user->authorise('statistic.access', 'com_sermondistributor')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + // [10790] unset the values we don't want exported. + unset($item->asset_id); + unset($item->checked_out); + unset($item->checked_out_time); + } + } + // [10799] Add headers to items array. + $headers = $this->getExImPortHeaders(); + if (SermondistributorHelper::checkObject($headers)) + { + array_unshift($items,$headers); + } + return $items; + } + } + return false; + } + + /** + * Method to get header. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getExImPortHeaders() + { + // [7202] Get a db connection. + $db = JFactory::getDbo(); + // [7204] get the columns + $columns = $db->getTableColumns("#__sermondistributor_statistic"); + if (SermondistributorHelper::checkArray($columns)) + { + // [7208] remove the headers you don't import/export. + unset($columns['asset_id']); + unset($columns['checked_out']); + unset($columns['checked_out_time']); + $headers = new stdClass(); + foreach ($columns as $column => $type) + { + $headers->{$column} = $column; + } + return $headers; + } + return false; + } + + /** + * Method to get a store id based on model configuration state. + * + * @return string A store id. + * + */ + protected function getStoreId($id = '') + { + // [10125] Compile the store id. + $id .= ':' . $this->getState('filter.id'); + $id .= ':' . $this->getState('filter.search'); + $id .= ':' . $this->getState('filter.published'); + $id .= ':' . $this->getState('filter.ordering'); + $id .= ':' . $this->getState('filter.created_by'); + $id .= ':' . $this->getState('filter.modified_by'); + $id .= ':' . $this->getState('filter.filename'); + $id .= ':' . $this->getState('filter.sermon'); + $id .= ':' . $this->getState('filter.preacher'); + $id .= ':' . $this->getState('filter.series'); + $id .= ':' . $this->getState('filter.counter'); + + return parent::getStoreId($id); + } + + /** + * Build an SQL query to checkin all items left checked out longer then a set time. + * + * @return a bool + * + */ + protected function checkInNow() + { + // [10518] Get set check in time + $time = JComponentHelper::getParams('com_sermondistributor')->get('check_in'); + + if ($time) + { + + // [10523] Get a db connection. + $db = JFactory::getDbo(); + // [10525] reset query + $query = $db->getQuery(true); + $query->select('*'); + $query->from($db->quoteName('#__sermondistributor_statistic')); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + // [10533] Get Yesterdays date + $date = JFactory::getDate()->modify($time)->toSql(); + // [10535] reset query + $query = $db->getQuery(true); + + // [10537] Fields to update. + $fields = array( + $db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'', + $db->quoteName('checked_out') . '=0' + ); + + // [10542] Conditions for which records should be updated. + $conditions = array( + $db->quoteName('checked_out') . '!=0', + $db->quoteName('checked_out_time') . '<\''.$date.'\'' + ); + + // [10547] Check table + $query->update($db->quoteName('#__sermondistributor_statistic'))->set($fields)->where($conditions); + + $db->setQuery($query); + + $db->execute(); + } + } + + return false; + } +} diff --git a/admin/sermondistributor.php b/admin/sermondistributor.php new file mode 100644 index 00000000..edef1852 --- /dev/null +++ b/admin/sermondistributor.php @@ -0,0 +1,57 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermondistributor.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// Access check. +if (!JFactory::getUser()->authorise('core.manage', 'com_sermondistributor')) +{ + return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); +}; + +// Load cms libraries +JLoader::registerPrefix('J', JPATH_PLATFORM . '/cms'); +// Load joomla libraries without overwrite +JLoader::registerPrefix('J', JPATH_PLATFORM . '/joomla',false); + +// Add CSS file for all pages +$document = JFactory::getDocument(); +$document->addStyleSheet('components/com_sermondistributor/assets/css/admin.css'); +$document->addScript('components/com_sermondistributor/assets/js/admin.js'); + +// require helper files +JLoader::register('SermondistributorHelper', dirname(__FILE__) . '/helpers/sermondistributor.php'); +JLoader::register('JHtmlBatch_', dirname(__FILE__) . '/helpers/html/batch_.php'); + +// Triger the Global Admin Event +SermondistributorHelper::globalEvent($document); + +// import joomla controller library +jimport('joomla.application.component.controller'); + +// Get an instance of the controller prefixed by Sermondistributor +$controller = JControllerLegacy::getInstance('Sermondistributor'); + +// Perform the Request task +$controller->execute(JFactory::getApplication()->input->get('task')); + +// Redirect if set by the controller +$controller->redirect(); diff --git a/admin/sql/index.html b/admin/sql/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/sql/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/sql/install.mysql.utf8.sql b/admin/sql/install.mysql.utf8.sql new file mode 100644 index 00000000..f1e8fa6c --- /dev/null +++ b/admin/sql/install.mysql.utf8.sql @@ -0,0 +1,196 @@ +CREATE TABLE IF NOT EXISTS `#__sermondistributor_preacher` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0', + `alias` CHAR(64) NOT NULL DEFAULT '', + `description` TEXT NOT NULL DEFAULT '', + `email` VARCHAR(255) NOT NULL DEFAULT '', + `icon` CHAR(64) NOT NULL DEFAULT '', + `name` VARCHAR(255) NOT NULL DEFAULT '', + `website` VARCHAR(255) NOT NULL DEFAULT '', + `params` TEXT NOT NULL DEFAULT '', + `published` tinyint(1) NOT NULL DEFAULT '1', + `created_by` int(11) NOT NULL DEFAULT '0', + `modified_by` int(11) NOT NULL DEFAULT '0', + `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `checked_out` int(11) NOT NULL, + `checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `version` int(11) NOT NULL DEFAULT '1', + `hits` int(11) NOT NULL DEFAULT '0', + `access` int(11) DEFAULT NULL, + `ordering` int(11) NOT NULL DEFAULT '0', + `metakey` TEXT NOT NULL DEFAULT '', + `metadesc` TEXT NOT NULL DEFAULT '', + `metadata` TEXT NOT NULL DEFAULT '', + PRIMARY KEY (`id`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_createdby` (`created_by`), + KEY `idx_modifiedby` (`modified_by`), + KEY `idx_state` (`published`), + KEY `idx_name` (`name`), + KEY `idx_alias` (`alias`) +) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; + +CREATE TABLE IF NOT EXISTS `#__sermondistributor_sermon` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0', + `alias` CHAR(64) NOT NULL DEFAULT '', + `auto_sermons` TEXT NOT NULL DEFAULT '', + `build` TINYINT(1) NOT NULL DEFAULT '1', + `catid` INT(11) NOT NULL DEFAULT '0', + `description` TEXT NOT NULL DEFAULT '', + `icon` CHAR(64) NOT NULL DEFAULT '', + `link_type` TINYINT(1) NOT NULL DEFAULT '1', + `local_files` TEXT NOT NULL DEFAULT '', + `manual_files` TEXT NOT NULL DEFAULT '', + `name` VARCHAR(255) NOT NULL DEFAULT '', + `not_required` INT(1) NOT NULL DEFAULT '0', + `preacher` INT(11) NOT NULL DEFAULT '0', + `scripture` VARCHAR(255) NOT NULL DEFAULT '', + `series` INT(11) NOT NULL DEFAULT '0', + `short_description` VARCHAR(255) NOT NULL DEFAULT '', + `source` TINYINT(1) NOT NULL DEFAULT '0', + `url` VARCHAR(255) NOT NULL DEFAULT '', + `params` TEXT NOT NULL DEFAULT '', + `published` tinyint(1) NOT NULL DEFAULT '1', + `created_by` int(11) NOT NULL DEFAULT '0', + `modified_by` int(11) NOT NULL DEFAULT '0', + `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `checked_out` int(11) NOT NULL, + `checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `version` int(11) NOT NULL DEFAULT '1', + `hits` int(11) NOT NULL DEFAULT '0', + `access` int(11) DEFAULT NULL, + `ordering` int(11) NOT NULL DEFAULT '0', + `metakey` TEXT NOT NULL DEFAULT '', + `metadesc` TEXT NOT NULL DEFAULT '', + `metadata` TEXT NOT NULL DEFAULT '', + PRIMARY KEY (`id`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_createdby` (`created_by`), + KEY `idx_modifiedby` (`modified_by`), + KEY `idx_state` (`published`), + KEY `idx_name` (`name`), + KEY `idx_preacher` (`preacher`), + KEY `idx_series` (`series`), + KEY `idx_catid` (`catid`), + KEY `idx_link_type` (`link_type`), + KEY `idx_alias` (`alias`), + KEY `idx_build` (`build`) +) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; + +CREATE TABLE IF NOT EXISTS `#__sermondistributor_series` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0', + `alias` CHAR(64) NOT NULL DEFAULT '', + `description` TEXT NOT NULL DEFAULT '', + `icon` CHAR(64) NOT NULL DEFAULT '', + `name` VARCHAR(255) NOT NULL DEFAULT '', + `scripture` VARCHAR(255) NOT NULL DEFAULT '', + `params` TEXT NOT NULL DEFAULT '', + `published` tinyint(1) NOT NULL DEFAULT '1', + `created_by` int(11) NOT NULL DEFAULT '0', + `modified_by` int(11) NOT NULL DEFAULT '0', + `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `checked_out` int(11) NOT NULL, + `checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `version` int(11) NOT NULL DEFAULT '1', + `hits` int(11) NOT NULL DEFAULT '0', + `access` int(11) DEFAULT NULL, + `ordering` int(11) NOT NULL DEFAULT '0', + `metakey` TEXT NOT NULL DEFAULT '', + `metadesc` TEXT NOT NULL DEFAULT '', + `metadata` TEXT NOT NULL DEFAULT '', + PRIMARY KEY (`id`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_createdby` (`created_by`), + KEY `idx_modifiedby` (`modified_by`), + KEY `idx_state` (`published`), + KEY `idx_name` (`name`), + KEY `idx_alias` (`alias`) +) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; + +CREATE TABLE IF NOT EXISTS `#__sermondistributor_statistic` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0', + `counter` INT(64) NOT NULL DEFAULT '0', + `filename` VARCHAR(255) NOT NULL DEFAULT '', + `preacher` INT(11) NOT NULL DEFAULT '0', + `series` INT(11) NOT NULL DEFAULT '0', + `sermon` INT(11) NOT NULL DEFAULT '0', + `params` TEXT NOT NULL DEFAULT '', + `published` tinyint(1) NOT NULL DEFAULT '1', + `created_by` int(11) NOT NULL DEFAULT '0', + `modified_by` int(11) NOT NULL DEFAULT '0', + `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `checked_out` int(11) NOT NULL, + `checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `version` int(11) NOT NULL DEFAULT '1', + `hits` int(11) NOT NULL DEFAULT '0', + `access` int(11) DEFAULT NULL, + `ordering` int(11) NOT NULL DEFAULT '0', + `metakey` TEXT NOT NULL DEFAULT '', + `metadesc` TEXT NOT NULL DEFAULT '', + `metadata` TEXT NOT NULL DEFAULT '', + PRIMARY KEY (`id`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_createdby` (`created_by`), + KEY `idx_modifiedby` (`modified_by`), + KEY `idx_state` (`published`), + KEY `idx_filename` (`filename`), + KEY `idx_sermon` (`sermon`), + KEY `idx_preacher` (`preacher`), + KEY `idx_series` (`series`) +) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; + +CREATE TABLE IF NOT EXISTS `#__sermondistributor_help_document` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0', + `admin_view` CHAR(255) NOT NULL DEFAULT '', + `alias` CHAR(64) NOT NULL DEFAULT '', + `article` TINYINT(1) NOT NULL DEFAULT '0', + `content` TEXT NOT NULL DEFAULT '', + `groups` TEXT NOT NULL DEFAULT '', + `location` TINYINT(1) NOT NULL DEFAULT '0', + `not_required` INT(1) NOT NULL DEFAULT '0', + `site_view` CHAR(255) NOT NULL DEFAULT '', + `target` TINYINT(1) NOT NULL DEFAULT '0', + `title` CHAR(64) NOT NULL DEFAULT '', + `type` TINYINT(1) NOT NULL DEFAULT '0', + `url` VARCHAR(255) NOT NULL DEFAULT '', + `params` TEXT NOT NULL DEFAULT '', + `published` tinyint(1) NOT NULL DEFAULT '1', + `created_by` int(11) NOT NULL DEFAULT '0', + `modified_by` int(11) NOT NULL DEFAULT '0', + `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `checked_out` int(11) NOT NULL, + `checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `version` int(11) NOT NULL DEFAULT '1', + `hits` int(11) NOT NULL DEFAULT '0', + `access` int(11) DEFAULT NULL, + `ordering` int(11) NOT NULL DEFAULT '0', + `metakey` TEXT NOT NULL DEFAULT '', + `metadesc` TEXT NOT NULL DEFAULT '', + `metadata` TEXT NOT NULL DEFAULT '', + PRIMARY KEY (`id`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_createdby` (`created_by`), + KEY `idx_modifiedby` (`modified_by`), + KEY `idx_state` (`published`), + KEY `idx_title` (`title`), + KEY `idx_type` (`type`), + KEY `idx_location` (`location`), + KEY `idx_target` (`target`), + KEY `idx_alias` (`alias`), + KEY `idx_article` (`article`) +) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; + diff --git a/admin/sql/uninstall.mysql.utf8.sql b/admin/sql/uninstall.mysql.utf8.sql new file mode 100644 index 00000000..3be116c3 --- /dev/null +++ b/admin/sql/uninstall.mysql.utf8.sql @@ -0,0 +1,5 @@ +DROP TABLE IF EXISTS `#__sermondistributor_preacher`; +DROP TABLE IF EXISTS `#__sermondistributor_sermon`; +DROP TABLE IF EXISTS `#__sermondistributor_series`; +DROP TABLE IF EXISTS `#__sermondistributor_statistic`; +DROP TABLE IF EXISTS `#__sermondistributor_help_document`; diff --git a/admin/sql/updates/index.html b/admin/sql/updates/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/sql/updates/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/sql/updates/mysql/1.0.0.sql b/admin/sql/updates/mysql/1.0.0.sql new file mode 100644 index 00000000..d3f5a12f --- /dev/null +++ b/admin/sql/updates/mysql/1.0.0.sql @@ -0,0 +1 @@ + diff --git a/admin/sql/updates/mysql/index.html b/admin/sql/updates/mysql/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/sql/updates/mysql/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/tables/help_document.php b/admin/tables/help_document.php new file mode 100644 index 00000000..ff7a62ad --- /dev/null +++ b/admin/tables/help_document.php @@ -0,0 +1,346 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage help_document.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +// import Joomla table library +jimport('joomla.database.table'); + +/** + * Help_documents Table class + */ +class SermondistributorTableHelp_document extends JTable +{ + /** + * Ensure the params and metadata in json encoded in the bind method + * + * @var array + * @since 3.3 + */ + protected $_jsonEncode = array('params', 'metadata'); + + /** + * Constructor + * + * @param object Database connector object + */ + function __construct(&$db) + { + parent::__construct('#__sermondistributor_help_document', 'id', $db); + + // [4184] Adding History Options + JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_sermondistributor.help_document')); + } + + public function bind($array, $ignore = '') + { + + if (isset($array['params']) && is_array($array['params'])) + { + $registry = new JRegistry; + $registry->loadArray($array['params']); + $array['params'] = (string) $registry; + } + + if (isset($array['metadata']) && is_array($array['metadata'])) + { + $registry = new JRegistry; + $registry->loadArray($array['metadata']); + $array['metadata'] = (string) $registry; + } + + // Bind the rules. + if (isset($array['rules']) && is_array($array['rules'])) + { + $rules = new JAccessRules($array['rules']); + $this->setRules($rules); + } + return parent::bind($array, $ignore); + } + + /** + * Overload the store method for the Help_document table. + * + * @param boolean Toggle whether null values should be updated. + * @return boolean True on success, false on failure. + * @since 1.6 + */ + public function store($updateNulls = false) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if ($this->id) + { + // Existing item + $this->modified = $date->toSql(); + $this->modified_by = $user->get('id'); + } + else + { + // New help_document. A help_document created and created_by field can be set by the user, + // so we don't touch either of these if they are set. + if (!(int) $this->created) + { + $this->created = $date->toSql(); + } + if (empty($this->created_by)) + { + $this->created_by = $user->get('id'); + } + } + + if (isset($this->alias)) + { + // Verify that the alias is unique + $table = JTable::getInstance('help_document', 'SermondistributorTable'); + + if ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->setError(JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ERROR_UNIQUE_ALIAS')); + return false; + } + } + + if (isset($this->url)) + { + // Convert IDN urls to punycode + $this->url = JStringPunycode::urlToPunycode($this->url); + } + if (isset($this->website)) + { + // Convert IDN urls to punycode + $this->website = JStringPunycode::urlToPunycode($this->website); + } + + return parent::store($updateNulls); + } + + /** + * Overloaded check method to ensure data integrity. + * + * @return boolean True on success. + */ + public function check() + { + if (isset($this->alias)) + { + // Generate a valid alias + $this->generateAlias(); + + $table = JTable::getInstance('help_document', 'sermondistributorTable'); + + while ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->alias = JString::increment($this->alias, 'dash'); + } + } + + /* + * Clean up keywords -- eliminate extra spaces between phrases + * and cr (\r) and lf (\n) characters from string. + * Only process if not empty. + */ + if (!empty($this->metakey)) + { + // Array of characters to remove. + $bad_characters = array("\n", "\r", "\"", "<", ">"); + + // Remove bad characters. + $after_clean = JString::str_ireplace($bad_characters, "", $this->metakey); + + // Create array using commas as delimiter. + $keys = explode(',', $after_clean); + $clean_keys = array(); + + foreach ($keys as $key) + { + // Ignore blank keywords. + if (trim($key)) + { + $clean_keys[] = trim($key); + } + } + + // Put array back together delimited by ", " + $this->metakey = implode(", ", $clean_keys); + } + + // Clean up description -- eliminate quotes and <> brackets + if (!empty($this->metadesc)) + { + // Only process if not empty + $bad_characters = array("\"", "<", ">"); + $this->metadesc = JString::str_ireplace($bad_characters, "", $this->metadesc); + } + + // If we don't have any access rules set at this point just use an empty JAccessRules class + if (!$this->getRules()) + { + $rules = $this->getDefaultAssetValues('com_sermondistributor.help_document.'.$this->id); + $this->setRules($rules); + } + + // Set ordering + if ($this->published < 0) + { + // Set ordering to 0 if state is archived or trashed + $this->ordering = 0; + } + + return true; + } + + /** + * Gets the default asset values for a component. + * + * @param $string $component The component asset name to search for + * + * @return JAccessRules The JAccessRules object for the asset + */ + protected function getDefaultAssetValues($component, $try = true) + { + // Need to find the asset id by the name of the component. + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select($db->quoteName('id')) + ->from($db->quoteName('#__assets')) + ->where($db->quoteName('name') . ' = ' . $db->quote($component)); + $db->setQuery($query); + $db->execute(); + if ($db->loadRowList()) + { + // asset alread set so use saved rules + $assetId = (int) $db->loadResult(); + return JAccess::getAssetRules($assetId); + } + // try again + elseif ($try) + { + $try = explode('.',$component); + $result = $this->getDefaultAssetValues($try[0], false); + if ($result instanceof JAccessRules) + { + if (isset($try[1])) + { + $_result = (string) $result; + $_result = json_decode($_result); + foreach ($_result as $name => &$rule) + { + $v = explode('.', $name); + if ($try[1] !== $v[0]) + { + // remove since it is not part of this view + unset($_result->$name); + } + else + { + // clear the value since we inherit + $rule = array(); + } + } + // check if there are any view values remaining + if (count($_result)) + { + $_result = json_encode($_result); + $_result = array($_result); + // Instantiate and return the JAccessRules object for the asset rules. + $rules = new JAccessRules; + $rules->mergeCollection($_result); + + return $rules; + } + } + return $result; + } + } + return JAccess::getAssetRules(0); + } + + /** + * Method to compute the default name of the asset. + * The default name is in the form 'table_name.id' + * where id is the value of the primary key of the table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetName() + { + $k = $this->_tbl_key; + return 'com_sermondistributor.help_document.'.(int) $this->$k; + } + + /** + * Method to return the title to use for the asset table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetTitle() + { + if (isset($this->title)) + { + return $this->title; + } + return ''; + } + + /** + * Get the parent asset id for the record + * + * @return int + * @since 2.5 + */ + protected function _getAssetParentId(JTable $table = NULL, $id = NULL) + { + $asset = JTable::getInstance('Asset'); + $asset->loadByName('com_sermondistributor'); + + return $asset->id; + } + + /** + * Generate a valid alias from title / date. + * Remains public to be able to check for duplicated alias before saving + * + * @return string + */ + public function generateAlias() + { + if (empty($this->alias)) + { + $this->alias = $this->name; + } + + $this->alias = JApplication::stringURLSafe($this->alias); + + if (trim(str_replace('-', '', $this->alias)) == '') + { + $this->alias = JFactory::getDate()->format("Y-m-d-H-i-s"); + } + + return $this->alias; + } + +} diff --git a/admin/tables/index.html b/admin/tables/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/tables/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/tables/preacher.php b/admin/tables/preacher.php new file mode 100644 index 00000000..38f0a393 --- /dev/null +++ b/admin/tables/preacher.php @@ -0,0 +1,346 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage preacher.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +// import Joomla table library +jimport('joomla.database.table'); + +/** + * Preachers Table class + */ +class SermondistributorTablePreacher extends JTable +{ + /** + * Ensure the params and metadata in json encoded in the bind method + * + * @var array + * @since 3.3 + */ + protected $_jsonEncode = array('params', 'metadata'); + + /** + * Constructor + * + * @param object Database connector object + */ + function __construct(&$db) + { + parent::__construct('#__sermondistributor_preacher', 'id', $db); + + // [4184] Adding History Options + JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_sermondistributor.preacher')); + } + + public function bind($array, $ignore = '') + { + + if (isset($array['params']) && is_array($array['params'])) + { + $registry = new JRegistry; + $registry->loadArray($array['params']); + $array['params'] = (string) $registry; + } + + if (isset($array['metadata']) && is_array($array['metadata'])) + { + $registry = new JRegistry; + $registry->loadArray($array['metadata']); + $array['metadata'] = (string) $registry; + } + + // Bind the rules. + if (isset($array['rules']) && is_array($array['rules'])) + { + $rules = new JAccessRules($array['rules']); + $this->setRules($rules); + } + return parent::bind($array, $ignore); + } + + /** + * Overload the store method for the Preacher table. + * + * @param boolean Toggle whether null values should be updated. + * @return boolean True on success, false on failure. + * @since 1.6 + */ + public function store($updateNulls = false) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if ($this->id) + { + // Existing item + $this->modified = $date->toSql(); + $this->modified_by = $user->get('id'); + } + else + { + // New preacher. A preacher created and created_by field can be set by the user, + // so we don't touch either of these if they are set. + if (!(int) $this->created) + { + $this->created = $date->toSql(); + } + if (empty($this->created_by)) + { + $this->created_by = $user->get('id'); + } + } + + if (isset($this->alias)) + { + // Verify that the alias is unique + $table = JTable::getInstance('preacher', 'SermondistributorTable'); + + if ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->setError(JText::_('COM_SERMONDISTRIBUTOR_PREACHER_ERROR_UNIQUE_ALIAS')); + return false; + } + } + + if (isset($this->url)) + { + // Convert IDN urls to punycode + $this->url = JStringPunycode::urlToPunycode($this->url); + } + if (isset($this->website)) + { + // Convert IDN urls to punycode + $this->website = JStringPunycode::urlToPunycode($this->website); + } + + return parent::store($updateNulls); + } + + /** + * Overloaded check method to ensure data integrity. + * + * @return boolean True on success. + */ + public function check() + { + if (isset($this->alias)) + { + // Generate a valid alias + $this->generateAlias(); + + $table = JTable::getInstance('preacher', 'sermondistributorTable'); + + while ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->alias = JString::increment($this->alias, 'dash'); + } + } + + /* + * Clean up keywords -- eliminate extra spaces between phrases + * and cr (\r) and lf (\n) characters from string. + * Only process if not empty. + */ + if (!empty($this->metakey)) + { + // Array of characters to remove. + $bad_characters = array("\n", "\r", "\"", "<", ">"); + + // Remove bad characters. + $after_clean = JString::str_ireplace($bad_characters, "", $this->metakey); + + // Create array using commas as delimiter. + $keys = explode(',', $after_clean); + $clean_keys = array(); + + foreach ($keys as $key) + { + // Ignore blank keywords. + if (trim($key)) + { + $clean_keys[] = trim($key); + } + } + + // Put array back together delimited by ", " + $this->metakey = implode(", ", $clean_keys); + } + + // Clean up description -- eliminate quotes and <> brackets + if (!empty($this->metadesc)) + { + // Only process if not empty + $bad_characters = array("\"", "<", ">"); + $this->metadesc = JString::str_ireplace($bad_characters, "", $this->metadesc); + } + + // If we don't have any access rules set at this point just use an empty JAccessRules class + if (!$this->getRules()) + { + $rules = $this->getDefaultAssetValues('com_sermondistributor.preacher.'.$this->id); + $this->setRules($rules); + } + + // Set ordering + if ($this->published < 0) + { + // Set ordering to 0 if state is archived or trashed + $this->ordering = 0; + } + + return true; + } + + /** + * Gets the default asset values for a component. + * + * @param $string $component The component asset name to search for + * + * @return JAccessRules The JAccessRules object for the asset + */ + protected function getDefaultAssetValues($component, $try = true) + { + // Need to find the asset id by the name of the component. + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select($db->quoteName('id')) + ->from($db->quoteName('#__assets')) + ->where($db->quoteName('name') . ' = ' . $db->quote($component)); + $db->setQuery($query); + $db->execute(); + if ($db->loadRowList()) + { + // asset alread set so use saved rules + $assetId = (int) $db->loadResult(); + return JAccess::getAssetRules($assetId); + } + // try again + elseif ($try) + { + $try = explode('.',$component); + $result = $this->getDefaultAssetValues($try[0], false); + if ($result instanceof JAccessRules) + { + if (isset($try[1])) + { + $_result = (string) $result; + $_result = json_decode($_result); + foreach ($_result as $name => &$rule) + { + $v = explode('.', $name); + if ($try[1] !== $v[0]) + { + // remove since it is not part of this view + unset($_result->$name); + } + else + { + // clear the value since we inherit + $rule = array(); + } + } + // check if there are any view values remaining + if (count($_result)) + { + $_result = json_encode($_result); + $_result = array($_result); + // Instantiate and return the JAccessRules object for the asset rules. + $rules = new JAccessRules; + $rules->mergeCollection($_result); + + return $rules; + } + } + return $result; + } + } + return JAccess::getAssetRules(0); + } + + /** + * Method to compute the default name of the asset. + * The default name is in the form 'table_name.id' + * where id is the value of the primary key of the table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetName() + { + $k = $this->_tbl_key; + return 'com_sermondistributor.preacher.'.(int) $this->$k; + } + + /** + * Method to return the title to use for the asset table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetTitle() + { + if (isset($this->title)) + { + return $this->title; + } + return ''; + } + + /** + * Get the parent asset id for the record + * + * @return int + * @since 2.5 + */ + protected function _getAssetParentId(JTable $table = NULL, $id = NULL) + { + $asset = JTable::getInstance('Asset'); + $asset->loadByName('com_sermondistributor'); + + return $asset->id; + } + + /** + * Generate a valid alias from title / date. + * Remains public to be able to check for duplicated alias before saving + * + * @return string + */ + public function generateAlias() + { + if (empty($this->alias)) + { + $this->alias = $this->name; + } + + $this->alias = JApplication::stringURLSafe($this->alias); + + if (trim(str_replace('-', '', $this->alias)) == '') + { + $this->alias = JFactory::getDate()->format("Y-m-d-H-i-s"); + } + + return $this->alias; + } + +} diff --git a/admin/tables/series.php b/admin/tables/series.php new file mode 100644 index 00000000..d3df8707 --- /dev/null +++ b/admin/tables/series.php @@ -0,0 +1,346 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage series.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +// import Joomla table library +jimport('joomla.database.table'); + +/** + * Series_list Table class + */ +class SermondistributorTableSeries extends JTable +{ + /** + * Ensure the params and metadata in json encoded in the bind method + * + * @var array + * @since 3.3 + */ + protected $_jsonEncode = array('params', 'metadata'); + + /** + * Constructor + * + * @param object Database connector object + */ + function __construct(&$db) + { + parent::__construct('#__sermondistributor_series', 'id', $db); + + // [4184] Adding History Options + JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_sermondistributor.series')); + } + + public function bind($array, $ignore = '') + { + + if (isset($array['params']) && is_array($array['params'])) + { + $registry = new JRegistry; + $registry->loadArray($array['params']); + $array['params'] = (string) $registry; + } + + if (isset($array['metadata']) && is_array($array['metadata'])) + { + $registry = new JRegistry; + $registry->loadArray($array['metadata']); + $array['metadata'] = (string) $registry; + } + + // Bind the rules. + if (isset($array['rules']) && is_array($array['rules'])) + { + $rules = new JAccessRules($array['rules']); + $this->setRules($rules); + } + return parent::bind($array, $ignore); + } + + /** + * Overload the store method for the Series table. + * + * @param boolean Toggle whether null values should be updated. + * @return boolean True on success, false on failure. + * @since 1.6 + */ + public function store($updateNulls = false) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if ($this->id) + { + // Existing item + $this->modified = $date->toSql(); + $this->modified_by = $user->get('id'); + } + else + { + // New series. A series created and created_by field can be set by the user, + // so we don't touch either of these if they are set. + if (!(int) $this->created) + { + $this->created = $date->toSql(); + } + if (empty($this->created_by)) + { + $this->created_by = $user->get('id'); + } + } + + if (isset($this->alias)) + { + // Verify that the alias is unique + $table = JTable::getInstance('series', 'SermondistributorTable'); + + if ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->setError(JText::_('COM_SERMONDISTRIBUTOR_SERIES_ERROR_UNIQUE_ALIAS')); + return false; + } + } + + if (isset($this->url)) + { + // Convert IDN urls to punycode + $this->url = JStringPunycode::urlToPunycode($this->url); + } + if (isset($this->website)) + { + // Convert IDN urls to punycode + $this->website = JStringPunycode::urlToPunycode($this->website); + } + + return parent::store($updateNulls); + } + + /** + * Overloaded check method to ensure data integrity. + * + * @return boolean True on success. + */ + public function check() + { + if (isset($this->alias)) + { + // Generate a valid alias + $this->generateAlias(); + + $table = JTable::getInstance('series', 'sermondistributorTable'); + + while ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->alias = JString::increment($this->alias, 'dash'); + } + } + + /* + * Clean up keywords -- eliminate extra spaces between phrases + * and cr (\r) and lf (\n) characters from string. + * Only process if not empty. + */ + if (!empty($this->metakey)) + { + // Array of characters to remove. + $bad_characters = array("\n", "\r", "\"", "<", ">"); + + // Remove bad characters. + $after_clean = JString::str_ireplace($bad_characters, "", $this->metakey); + + // Create array using commas as delimiter. + $keys = explode(',', $after_clean); + $clean_keys = array(); + + foreach ($keys as $key) + { + // Ignore blank keywords. + if (trim($key)) + { + $clean_keys[] = trim($key); + } + } + + // Put array back together delimited by ", " + $this->metakey = implode(", ", $clean_keys); + } + + // Clean up description -- eliminate quotes and <> brackets + if (!empty($this->metadesc)) + { + // Only process if not empty + $bad_characters = array("\"", "<", ">"); + $this->metadesc = JString::str_ireplace($bad_characters, "", $this->metadesc); + } + + // If we don't have any access rules set at this point just use an empty JAccessRules class + if (!$this->getRules()) + { + $rules = $this->getDefaultAssetValues('com_sermondistributor.series.'.$this->id); + $this->setRules($rules); + } + + // Set ordering + if ($this->published < 0) + { + // Set ordering to 0 if state is archived or trashed + $this->ordering = 0; + } + + return true; + } + + /** + * Gets the default asset values for a component. + * + * @param $string $component The component asset name to search for + * + * @return JAccessRules The JAccessRules object for the asset + */ + protected function getDefaultAssetValues($component, $try = true) + { + // Need to find the asset id by the name of the component. + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select($db->quoteName('id')) + ->from($db->quoteName('#__assets')) + ->where($db->quoteName('name') . ' = ' . $db->quote($component)); + $db->setQuery($query); + $db->execute(); + if ($db->loadRowList()) + { + // asset alread set so use saved rules + $assetId = (int) $db->loadResult(); + return JAccess::getAssetRules($assetId); + } + // try again + elseif ($try) + { + $try = explode('.',$component); + $result = $this->getDefaultAssetValues($try[0], false); + if ($result instanceof JAccessRules) + { + if (isset($try[1])) + { + $_result = (string) $result; + $_result = json_decode($_result); + foreach ($_result as $name => &$rule) + { + $v = explode('.', $name); + if ($try[1] !== $v[0]) + { + // remove since it is not part of this view + unset($_result->$name); + } + else + { + // clear the value since we inherit + $rule = array(); + } + } + // check if there are any view values remaining + if (count($_result)) + { + $_result = json_encode($_result); + $_result = array($_result); + // Instantiate and return the JAccessRules object for the asset rules. + $rules = new JAccessRules; + $rules->mergeCollection($_result); + + return $rules; + } + } + return $result; + } + } + return JAccess::getAssetRules(0); + } + + /** + * Method to compute the default name of the asset. + * The default name is in the form 'table_name.id' + * where id is the value of the primary key of the table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetName() + { + $k = $this->_tbl_key; + return 'com_sermondistributor.series.'.(int) $this->$k; + } + + /** + * Method to return the title to use for the asset table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetTitle() + { + if (isset($this->title)) + { + return $this->title; + } + return ''; + } + + /** + * Get the parent asset id for the record + * + * @return int + * @since 2.5 + */ + protected function _getAssetParentId(JTable $table = NULL, $id = NULL) + { + $asset = JTable::getInstance('Asset'); + $asset->loadByName('com_sermondistributor'); + + return $asset->id; + } + + /** + * Generate a valid alias from title / date. + * Remains public to be able to check for duplicated alias before saving + * + * @return string + */ + public function generateAlias() + { + if (empty($this->alias)) + { + $this->alias = $this->name; + } + + $this->alias = JApplication::stringURLSafe($this->alias); + + if (trim(str_replace('-', '', $this->alias)) == '') + { + $this->alias = JFactory::getDate()->format("Y-m-d-H-i-s"); + } + + return $this->alias; + } + +} diff --git a/admin/tables/sermon.php b/admin/tables/sermon.php new file mode 100644 index 00000000..7b68d61d --- /dev/null +++ b/admin/tables/sermon.php @@ -0,0 +1,349 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermon.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +// import Joomla table library +jimport('joomla.database.table'); + +/** + * Sermons Table class + */ +class SermondistributorTableSermon extends JTable +{ + /** + * Ensure the params and metadata in json encoded in the bind method + * + * @var array + * @since 3.3 + */ + protected $_jsonEncode = array('params', 'metadata'); + + /** + * Constructor + * + * @param object Database connector object + */ + function __construct(&$db) + { + parent::__construct('#__sermondistributor_sermon', 'id', $db); + + // [4178] Adding Tag Options + JTableObserverTags::createObserver($this, array('typeAlias' => 'com_sermondistributor.sermon')); + + // [4184] Adding History Options + JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_sermondistributor.sermon')); + } + + public function bind($array, $ignore = '') + { + + if (isset($array['params']) && is_array($array['params'])) + { + $registry = new JRegistry; + $registry->loadArray($array['params']); + $array['params'] = (string) $registry; + } + + if (isset($array['metadata']) && is_array($array['metadata'])) + { + $registry = new JRegistry; + $registry->loadArray($array['metadata']); + $array['metadata'] = (string) $registry; + } + + // Bind the rules. + if (isset($array['rules']) && is_array($array['rules'])) + { + $rules = new JAccessRules($array['rules']); + $this->setRules($rules); + } + return parent::bind($array, $ignore); + } + + /** + * Overload the store method for the Sermon table. + * + * @param boolean Toggle whether null values should be updated. + * @return boolean True on success, false on failure. + * @since 1.6 + */ + public function store($updateNulls = false) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if ($this->id) + { + // Existing item + $this->modified = $date->toSql(); + $this->modified_by = $user->get('id'); + } + else + { + // New sermon. A sermon created and created_by field can be set by the user, + // so we don't touch either of these if they are set. + if (!(int) $this->created) + { + $this->created = $date->toSql(); + } + if (empty($this->created_by)) + { + $this->created_by = $user->get('id'); + } + } + + if (isset($this->alias)) + { + // Verify that the alias is unique + $table = JTable::getInstance('sermon', 'SermondistributorTable'); + + if ($table->load(array('alias' => $this->alias, 'catid' => $this->catid)) && ($table->id != $this->id || $this->id == 0)) + { + $this->setError(JText::_('COM_SERMONDISTRIBUTOR_SERMON_ERROR_UNIQUE_ALIAS')); + return false; + } + } + + if (isset($this->url)) + { + // Convert IDN urls to punycode + $this->url = JStringPunycode::urlToPunycode($this->url); + } + if (isset($this->website)) + { + // Convert IDN urls to punycode + $this->website = JStringPunycode::urlToPunycode($this->website); + } + + return parent::store($updateNulls); + } + + /** + * Overloaded check method to ensure data integrity. + * + * @return boolean True on success. + */ + public function check() + { + if (isset($this->alias)) + { + // Generate a valid alias + $this->generateAlias(); + + $table = JTable::getInstance('sermon', 'sermondistributorTable'); + + while ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->alias = JString::increment($this->alias, 'dash'); + } + } + + /* + * Clean up keywords -- eliminate extra spaces between phrases + * and cr (\r) and lf (\n) characters from string. + * Only process if not empty. + */ + if (!empty($this->metakey)) + { + // Array of characters to remove. + $bad_characters = array("\n", "\r", "\"", "<", ">"); + + // Remove bad characters. + $after_clean = JString::str_ireplace($bad_characters, "", $this->metakey); + + // Create array using commas as delimiter. + $keys = explode(',', $after_clean); + $clean_keys = array(); + + foreach ($keys as $key) + { + // Ignore blank keywords. + if (trim($key)) + { + $clean_keys[] = trim($key); + } + } + + // Put array back together delimited by ", " + $this->metakey = implode(", ", $clean_keys); + } + + // Clean up description -- eliminate quotes and <> brackets + if (!empty($this->metadesc)) + { + // Only process if not empty + $bad_characters = array("\"", "<", ">"); + $this->metadesc = JString::str_ireplace($bad_characters, "", $this->metadesc); + } + + // If we don't have any access rules set at this point just use an empty JAccessRules class + if (!$this->getRules()) + { + $rules = $this->getDefaultAssetValues('com_sermondistributor.sermon.'.$this->id); + $this->setRules($rules); + } + + // Set ordering + if ($this->published < 0) + { + // Set ordering to 0 if state is archived or trashed + $this->ordering = 0; + } + + return true; + } + + /** + * Gets the default asset values for a component. + * + * @param $string $component The component asset name to search for + * + * @return JAccessRules The JAccessRules object for the asset + */ + protected function getDefaultAssetValues($component, $try = true) + { + // Need to find the asset id by the name of the component. + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select($db->quoteName('id')) + ->from($db->quoteName('#__assets')) + ->where($db->quoteName('name') . ' = ' . $db->quote($component)); + $db->setQuery($query); + $db->execute(); + if ($db->loadRowList()) + { + // asset alread set so use saved rules + $assetId = (int) $db->loadResult(); + return JAccess::getAssetRules($assetId); + } + // try again + elseif ($try) + { + $try = explode('.',$component); + $result = $this->getDefaultAssetValues($try[0], false); + if ($result instanceof JAccessRules) + { + if (isset($try[1])) + { + $_result = (string) $result; + $_result = json_decode($_result); + foreach ($_result as $name => &$rule) + { + $v = explode('.', $name); + if ($try[1] !== $v[0]) + { + // remove since it is not part of this view + unset($_result->$name); + } + else + { + // clear the value since we inherit + $rule = array(); + } + } + // check if there are any view values remaining + if (count($_result)) + { + $_result = json_encode($_result); + $_result = array($_result); + // Instantiate and return the JAccessRules object for the asset rules. + $rules = new JAccessRules; + $rules->mergeCollection($_result); + + return $rules; + } + } + return $result; + } + } + return JAccess::getAssetRules(0); + } + + /** + * Method to compute the default name of the asset. + * The default name is in the form 'table_name.id' + * where id is the value of the primary key of the table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetName() + { + $k = $this->_tbl_key; + return 'com_sermondistributor.sermon.'.(int) $this->$k; + } + + /** + * Method to return the title to use for the asset table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetTitle() + { + if (isset($this->title)) + { + return $this->title; + } + return ''; + } + + /** + * Get the parent asset id for the record + * + * @return int + * @since 2.5 + */ + protected function _getAssetParentId(JTable $table = NULL, $id = NULL) + { + $asset = JTable::getInstance('Asset'); + $asset->loadByName('com_sermondistributor'); + + return $asset->id; + } + + /** + * Generate a valid alias from title / date. + * Remains public to be able to check for duplicated alias before saving + * + * @return string + */ + public function generateAlias() + { + if (empty($this->alias)) + { + $this->alias = $this->name; + } + + $this->alias = JApplication::stringURLSafe($this->alias); + + if (trim(str_replace('-', '', $this->alias)) == '') + { + $this->alias = JFactory::getDate()->format("Y-m-d-H-i-s"); + } + + return $this->alias; + } + +} diff --git a/admin/tables/statistic.php b/admin/tables/statistic.php new file mode 100644 index 00000000..906a4d29 --- /dev/null +++ b/admin/tables/statistic.php @@ -0,0 +1,346 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage statistic.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +// import Joomla table library +jimport('joomla.database.table'); + +/** + * Statistics Table class + */ +class SermondistributorTableStatistic extends JTable +{ + /** + * Ensure the params and metadata in json encoded in the bind method + * + * @var array + * @since 3.3 + */ + protected $_jsonEncode = array('params', 'metadata'); + + /** + * Constructor + * + * @param object Database connector object + */ + function __construct(&$db) + { + parent::__construct('#__sermondistributor_statistic', 'id', $db); + + // [4184] Adding History Options + JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_sermondistributor.statistic')); + } + + public function bind($array, $ignore = '') + { + + if (isset($array['params']) && is_array($array['params'])) + { + $registry = new JRegistry; + $registry->loadArray($array['params']); + $array['params'] = (string) $registry; + } + + if (isset($array['metadata']) && is_array($array['metadata'])) + { + $registry = new JRegistry; + $registry->loadArray($array['metadata']); + $array['metadata'] = (string) $registry; + } + + // Bind the rules. + if (isset($array['rules']) && is_array($array['rules'])) + { + $rules = new JAccessRules($array['rules']); + $this->setRules($rules); + } + return parent::bind($array, $ignore); + } + + /** + * Overload the store method for the Statistic table. + * + * @param boolean Toggle whether null values should be updated. + * @return boolean True on success, false on failure. + * @since 1.6 + */ + public function store($updateNulls = false) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if ($this->id) + { + // Existing item + $this->modified = $date->toSql(); + $this->modified_by = $user->get('id'); + } + else + { + // New statistic. A statistic created and created_by field can be set by the user, + // so we don't touch either of these if they are set. + if (!(int) $this->created) + { + $this->created = $date->toSql(); + } + if (empty($this->created_by)) + { + $this->created_by = $user->get('id'); + } + } + + if (isset($this->alias)) + { + // Verify that the alias is unique + $table = JTable::getInstance('statistic', 'SermondistributorTable'); + + if ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->setError(JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_ERROR_UNIQUE_ALIAS')); + return false; + } + } + + if (isset($this->url)) + { + // Convert IDN urls to punycode + $this->url = JStringPunycode::urlToPunycode($this->url); + } + if (isset($this->website)) + { + // Convert IDN urls to punycode + $this->website = JStringPunycode::urlToPunycode($this->website); + } + + return parent::store($updateNulls); + } + + /** + * Overloaded check method to ensure data integrity. + * + * @return boolean True on success. + */ + public function check() + { + if (isset($this->alias)) + { + // Generate a valid alias + $this->generateAlias(); + + $table = JTable::getInstance('statistic', 'sermondistributorTable'); + + while ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->alias = JString::increment($this->alias, 'dash'); + } + } + + /* + * Clean up keywords -- eliminate extra spaces between phrases + * and cr (\r) and lf (\n) characters from string. + * Only process if not empty. + */ + if (!empty($this->metakey)) + { + // Array of characters to remove. + $bad_characters = array("\n", "\r", "\"", "<", ">"); + + // Remove bad characters. + $after_clean = JString::str_ireplace($bad_characters, "", $this->metakey); + + // Create array using commas as delimiter. + $keys = explode(',', $after_clean); + $clean_keys = array(); + + foreach ($keys as $key) + { + // Ignore blank keywords. + if (trim($key)) + { + $clean_keys[] = trim($key); + } + } + + // Put array back together delimited by ", " + $this->metakey = implode(", ", $clean_keys); + } + + // Clean up description -- eliminate quotes and <> brackets + if (!empty($this->metadesc)) + { + // Only process if not empty + $bad_characters = array("\"", "<", ">"); + $this->metadesc = JString::str_ireplace($bad_characters, "", $this->metadesc); + } + + // If we don't have any access rules set at this point just use an empty JAccessRules class + if (!$this->getRules()) + { + $rules = $this->getDefaultAssetValues('com_sermondistributor.statistic.'.$this->id); + $this->setRules($rules); + } + + // Set ordering + if ($this->published < 0) + { + // Set ordering to 0 if state is archived or trashed + $this->ordering = 0; + } + + return true; + } + + /** + * Gets the default asset values for a component. + * + * @param $string $component The component asset name to search for + * + * @return JAccessRules The JAccessRules object for the asset + */ + protected function getDefaultAssetValues($component, $try = true) + { + // Need to find the asset id by the name of the component. + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select($db->quoteName('id')) + ->from($db->quoteName('#__assets')) + ->where($db->quoteName('name') . ' = ' . $db->quote($component)); + $db->setQuery($query); + $db->execute(); + if ($db->loadRowList()) + { + // asset alread set so use saved rules + $assetId = (int) $db->loadResult(); + return JAccess::getAssetRules($assetId); + } + // try again + elseif ($try) + { + $try = explode('.',$component); + $result = $this->getDefaultAssetValues($try[0], false); + if ($result instanceof JAccessRules) + { + if (isset($try[1])) + { + $_result = (string) $result; + $_result = json_decode($_result); + foreach ($_result as $name => &$rule) + { + $v = explode('.', $name); + if ($try[1] !== $v[0]) + { + // remove since it is not part of this view + unset($_result->$name); + } + else + { + // clear the value since we inherit + $rule = array(); + } + } + // check if there are any view values remaining + if (count($_result)) + { + $_result = json_encode($_result); + $_result = array($_result); + // Instantiate and return the JAccessRules object for the asset rules. + $rules = new JAccessRules; + $rules->mergeCollection($_result); + + return $rules; + } + } + return $result; + } + } + return JAccess::getAssetRules(0); + } + + /** + * Method to compute the default name of the asset. + * The default name is in the form 'table_name.id' + * where id is the value of the primary key of the table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetName() + { + $k = $this->_tbl_key; + return 'com_sermondistributor.statistic.'.(int) $this->$k; + } + + /** + * Method to return the title to use for the asset table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetTitle() + { + if (isset($this->title)) + { + return $this->title; + } + return ''; + } + + /** + * Get the parent asset id for the record + * + * @return int + * @since 2.5 + */ + protected function _getAssetParentId(JTable $table = NULL, $id = NULL) + { + $asset = JTable::getInstance('Asset'); + $asset->loadByName('com_sermondistributor'); + + return $asset->id; + } + + /** + * Generate a valid alias from title / date. + * Remains public to be able to check for duplicated alias before saving + * + * @return string + */ + public function generateAlias() + { + if (empty($this->alias)) + { + $this->alias = $this->name; + } + + $this->alias = JApplication::stringURLSafe($this->alias); + + if (trim(str_replace('-', '', $this->alias)) == '') + { + $this->alias = JFactory::getDate()->format("Y-m-d-H-i-s"); + } + + return $this->alias; + } + +} diff --git a/admin/views/help_document/submitbutton.js b/admin/views/help_document/submitbutton.js new file mode 100644 index 00000000..babbe822 --- /dev/null +++ b/admin/views/help_document/submitbutton.js @@ -0,0 +1,44 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage submitbutton.js + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +Joomla.submitbutton = function(task) +{ + if (task == ''){ + return false; + } else { + var isValid=true; + var action = task.split('.'); + if (action[1] != 'cancel' && action[1] != 'close'){ + var forms = $$('form.form-validate'); + for (var i=0;i<forms.length;i++){ + if (!document.formvalidator.isValid(forms[i])){ + isValid = false; + break; + } + } + } + if (isValid){ + Joomla.submitform(task); + return true; + } else { + alert(Joomla.JText._('help_document, some values are not acceptable.','Some values are unacceptable')); + return false; + } + } +} \ No newline at end of file diff --git a/admin/views/help_document/tmpl/edit.php b/admin/views/help_document/tmpl/edit.php new file mode 100644 index 00000000..fb56b398 --- /dev/null +++ b/admin/views/help_document/tmpl/edit.php @@ -0,0 +1,188 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage edit.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); +JHtml::_('behavior.tooltip'); +JHtml::_('behavior.formvalidation'); +JHtml::_('formbehavior.chosen', 'select'); +JHtml::_('behavior.keepalive'); +$componentParams = JComponentHelper::getParams('com_sermondistributor'); +?> + +<form action="<?php echo JRoute::_('index.php?option=com_sermondistributor&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data"> + + <?php echo JLayoutHelper::render('help_document.details_above', $this); ?><div class="form-horizontal"> + + <?php echo JHtml::_('bootstrap.startTabSet', 'help_documentTab', array('active' => 'details')); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'help_documentTab', 'details', JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_DETAILS', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + <div class="span6"> + <?php echo JLayoutHelper::render('help_document.details_left', $this); ?> + </div> + <div class="span6"> + <?php echo JLayoutHelper::render('help_document.details_right', $this); ?> + </div> + </div> + <div class="row-fluid form-horizontal-desktop"> + <div class="span12"> + <?php echo JLayoutHelper::render('help_document.details_fullwidth', $this); ?> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'help_documentTab', 'publishing', JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_PUBLISHING', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + <div class="span6"> + <?php echo JLayoutHelper::render('help_document.publishing', $this); ?> + </div> + <div class="span6"> + <?php echo JLayoutHelper::render('help_document.metadata', $this); ?> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php if ($this->canDo->get('core.admin')) : ?> + <?php echo JHtml::_('bootstrap.addTab', 'help_documentTab', 'permissions', JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_PERMISSION', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + <div class="span12"> + <fieldset class="adminform"> + <div class="adminformlist"> + <?php foreach ($this->form->getFieldset('accesscontrol') as $field): ?> + <div> + <?php echo $field->label; echo $field->input;?> + </div> + <div class="clearfix"></div> + <?php endforeach; ?> + </div> + </fieldset> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + <?php endif; ?> + + <?php echo JHtml::_('bootstrap.endTabSet'); ?> + + <div> + <input type="hidden" name="task" value="help_document.edit" /> + <?php echo JHtml::_('form.token'); ?> + </div> +</div> + +<div class="clearfix"></div> +<?php echo JLayoutHelper::render('help_document.details_under', $this); ?> +</form> + +<script type="text/javascript"> + +// #jform_location listeners for location_xIXXXXY function +jQuery('#jform_location').on('keyup',function() +{ + var location_xIXXXXY = jQuery("#jform_location input[type='radio']:checked").val(); + xIXXXXY(location_xIXXXXY); + +}); +jQuery('#adminForm').on('change', '#jform_location',function (e) +{ + e.preventDefault(); + var location_xIXXXXY = jQuery("#jform_location input[type='radio']:checked").val(); + xIXXXXY(location_xIXXXXY); + +}); + +// #jform_location listeners for location_UvYYxXP function +jQuery('#jform_location').on('keyup',function() +{ + var location_UvYYxXP = jQuery("#jform_location input[type='radio']:checked").val(); + UvYYxXP(location_UvYYxXP); + +}); +jQuery('#adminForm').on('change', '#jform_location',function (e) +{ + e.preventDefault(); + var location_UvYYxXP = jQuery("#jform_location input[type='radio']:checked").val(); + UvYYxXP(location_UvYYxXP); + +}); + +// #jform_type listeners for type_lzodvvE function +jQuery('#jform_type').on('keyup',function() +{ + var type_lzodvvE = jQuery("#jform_type").val(); + lzodvvE(type_lzodvvE); + +}); +jQuery('#adminForm').on('change', '#jform_type',function (e) +{ + e.preventDefault(); + var type_lzodvvE = jQuery("#jform_type").val(); + lzodvvE(type_lzodvvE); + +}); + +// #jform_type listeners for type_OgkLNZD function +jQuery('#jform_type').on('keyup',function() +{ + var type_OgkLNZD = jQuery("#jform_type").val(); + OgkLNZD(type_OgkLNZD); + +}); +jQuery('#adminForm').on('change', '#jform_type',function (e) +{ + e.preventDefault(); + var type_OgkLNZD = jQuery("#jform_type").val(); + OgkLNZD(type_OgkLNZD); + +}); + +// #jform_type listeners for type_cKsbxVZ function +jQuery('#jform_type').on('keyup',function() +{ + var type_cKsbxVZ = jQuery("#jform_type").val(); + cKsbxVZ(type_cKsbxVZ); + +}); +jQuery('#adminForm').on('change', '#jform_type',function (e) +{ + e.preventDefault(); + var type_cKsbxVZ = jQuery("#jform_type").val(); + cKsbxVZ(type_cKsbxVZ); + +}); + +// #jform_target listeners for target_mFxICag function +jQuery('#jform_target').on('keyup',function() +{ + var target_mFxICag = jQuery("#jform_target input[type='radio']:checked").val(); + mFxICag(target_mFxICag); + +}); +jQuery('#adminForm').on('change', '#jform_target',function (e) +{ + e.preventDefault(); + var target_mFxICag = jQuery("#jform_target input[type='radio']:checked").val(); + mFxICag(target_mFxICag); + +}); + +</script> diff --git a/admin/views/help_document/tmpl/index.html b/admin/views/help_document/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/help_document/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/help_document/view.html.php b/admin/views/help_document/view.html.php new file mode 100644 index 00000000..cdc10a22 --- /dev/null +++ b/admin/views/help_document/view.html.php @@ -0,0 +1,195 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Help_document View class + */ +class SermondistributorViewHelp_document extends JViewLegacy +{ + /** + * display method of View + * @return void + */ + public function display($tpl = null) + { + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseError(500, implode('<br />', $errors)); + return false; + } + + // Assign the variables + $this->form = $this->get('Form'); + $this->item = $this->get('Item'); + $this->script = $this->get('Script'); + $this->state = $this->get('State'); + // get action permissions + $this->canDo = SermondistributorHelper::getActions('help_document',$this->item); + // get input + $jinput = JFactory::getApplication()->input; + $this->ref = $jinput->get('ref', 0, 'word'); + $this->refid = $jinput->get('refid', 0, 'int'); + $this->referral = ''; + if ($this->refid) + { + // return to the item that refered to this item + $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; + } + elseif($this->ref) + { + // return to the list view that refered to this item + $this->referral = '&ref='.(string)$this->ref; + } + + // Set the toolbar + $this->addToolBar(); + + // Display the template + parent::display($tpl); + + // Set the document + $this->setDocument(); + } + + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JFactory::getApplication()->input->set('hidemainmenu', true); + $user = JFactory::getUser(); + $userId = $user->id; + $isNew = $this->item->id == 0; + + JToolbarHelper::title( JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_NEW' : 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_EDIT'), 'pencil-2 article-add'); + // [10235] Built the actions for new and existing records. + if ($this->refid || $this->ref) + { + if ($this->canDo->get('help_document.create') && $isNew) + { + // [10247] We can create the record. + JToolBarHelper::save('help_document.save', 'JTOOLBAR_SAVE'); + } + elseif ($this->canDo->get('help_document.edit')) + { + // [10259] We can save the record. + JToolBarHelper::save('help_document.save', 'JTOOLBAR_SAVE'); + } + if ($isNew) + { + // [10264] Do not creat but cancel. + JToolBarHelper::cancel('help_document.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + // [10269] We can close it. + JToolBarHelper::cancel('help_document.cancel', 'JTOOLBAR_CLOSE'); + } + } + else + { + if ($isNew) + { + // [10277] For new records, check the create permission. + if ($this->canDo->get('help_document.create')) + { + JToolBarHelper::apply('help_document.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('help_document.save', 'JTOOLBAR_SAVE'); + JToolBarHelper::custom('help_document.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + }; + JToolBarHelper::cancel('help_document.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + if ($this->canDo->get('help_document.edit')) + { + // [10304] We can save the new record + JToolBarHelper::apply('help_document.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('help_document.save', 'JTOOLBAR_SAVE'); + // [10307] We can save this record, but check the create permission to see + // [10308] if we can return to make a new one. + if ($this->canDo->get('help_document.create')) + { + JToolBarHelper::custom('help_document.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + } + } + $canVersion = ($this->canDo->get('core.version') && $this->canDo->get('help_document.version')); + if ($this->state->params->get('save_history', 1) && $this->canDo->get('help_document.edit') && $canVersion) + { + JToolbarHelper::versions('com_sermondistributor.help_document', $this->item->id); + } + if ($this->canDo->get('help_document.create')) + { + JToolBarHelper::custom('help_document.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false); + } + JToolBarHelper::cancel('help_document.cancel', 'JTOOLBAR_CLOSE'); + } + } + JToolbarHelper::divider(); + // [10344] set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('help_document'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var) + { + if(strlen($var) > 30) + { + // use the helper htmlEscape method instead and shorten the string + return SermondistributorHelper::htmlEscape($var, $this->_charset, true, 30); + } + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset); + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + $isNew = ($this->item->id < 1); + $document = JFactory::getDocument(); + $document->setTitle(JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_NEW' : 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_EDIT')); + $document->addStyleSheet(JURI::root() . "administrator/components/com_sermondistributor/assets/css/help_document.css"); + $document->addScript(JURI::root() . $this->script); + $document->addScript(JURI::root() . "administrator/components/com_sermondistributor/views/help_document/submitbutton.js"); + JText::script('view not acceptable. Error'); + } +} diff --git a/admin/views/help_documents/index.html b/admin/views/help_documents/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/help_documents/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/help_documents/tmpl/default.php b/admin/views/help_documents/tmpl/default.php new file mode 100644 index 00000000..c88c3b7b --- /dev/null +++ b/admin/views/help_documents/tmpl/default.php @@ -0,0 +1,94 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// load tooltip behavior +JHtml::_('behavior.tooltip'); +JHtml::_('behavior.multiselect'); +JHtml::_('dropdown.init'); +JHtml::_('formbehavior.chosen', 'select'); + +if ($this->saveOrder) +{ + $saveOrderingUrl = 'index.php?option=com_sermondistributor&task=help_documents.saveOrderAjax&tmpl=component'; + JHtml::_('sortablelist.sortable', 'help_documentList', 'adminForm', strtolower($this->listDirn), $saveOrderingUrl); +} + +?> +<script type="text/javascript"> + Joomla.orderTable = function() + { + table = document.getElementById("sortTable"); + direction = document.getElementById("directionTable"); + order = table.options[table.selectedIndex].value; + if (order != '<?php echo $this->listOrder; ?>') + { + dirn = 'asc'; + } + else + { + dirn = direction.options[direction.selectedIndex].value; + } + Joomla.tableOrdering(order, dirn, ''); + } +</script> +<form action="<?php echo JRoute::_('index.php?option=com_sermondistributor&view=help_documents'); ?>" method="post" name="adminForm" id="adminForm"> +<?php if(!empty( $this->sidebar)): ?> + <div id="j-sidebar-container" class="span2"> + <?php echo $this->sidebar; ?> + </div> + <div id="j-main-container" class="span10"> +<?php else : ?> + <div id="j-main-container"> +<?php endif; ?> +<?php if (empty($this->items)): ?> + <?php echo $this->loadTemplate('toolbar');?> + <div class="alert alert-no-items"> + <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> + </div> +<?php else : ?> + <?php echo $this->loadTemplate('toolbar');?> + <table class="table table-striped" id="help_documentList"> + <thead><?php echo $this->loadTemplate('head');?></thead> + <tfoot><?php echo $this->loadTemplate('foot');?></tfoot> + <tbody><?php echo $this->loadTemplate('body');?></tbody> + </table> + <?php //Load the batch processing form. ?> + <?php if ($this->canCreate && $this->canEdit) : ?> + <?php echo JHtml::_( + 'bootstrap.renderModal', + 'collapseModal', + array( + 'title' => JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_BATCH_OPTIONS'), + 'footer' => $this->loadTemplate('batch_footer') + ), + $this->loadTemplate('batch_body') + ); ?> + <?php endif; ?> + <input type="hidden" name="filter_order" value="" /> + <input type="hidden" name="filter_order_Dir" value="" /> + <input type="hidden" name="boxchecked" value="0" /> + </div> +<?php endif; ?> +<input type="hidden" name="task" value="" /> +<?php echo JHtml::_('form.token'); ?> +</form> \ No newline at end of file diff --git a/admin/views/help_documents/tmpl/default_batch_body.php b/admin/views/help_documents/tmpl/default_batch_body.php new file mode 100644 index 00000000..87a5f846 --- /dev/null +++ b/admin/views/help_documents/tmpl/default_batch_body.php @@ -0,0 +1,27 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_batch_body.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + +<p><?php echo JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_BATCH_TIP'); ?></p> +<?php echo $this->batchDisplay; ?> \ No newline at end of file diff --git a/admin/views/help_documents/tmpl/default_batch_footer.php b/admin/views/help_documents/tmpl/default_batch_footer.php new file mode 100644 index 00000000..a92710b3 --- /dev/null +++ b/admin/views/help_documents/tmpl/default_batch_footer.php @@ -0,0 +1,32 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_batch_footer.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<!-- clear the batch values if cancel --> +<button class="btn" type="button" onclick="###BATCH_ONCLICK_CANCEL_SCRIPT###" data-dismiss="modal"> + <?php echo JText::_('JCANCEL'); ?> +</button> +<!-- post the batch values if process --> +<button class="btn btn-success" type="submit" onclick="Joomla.submitbutton('help_document.batch');"> + <?php echo JText::_('JGLOBAL_BATCH_PROCESS'); ?> +</button> \ No newline at end of file diff --git a/admin/views/help_documents/tmpl/default_body.php b/admin/views/help_documents/tmpl/default_body.php new file mode 100644 index 00000000..c6c25a5e --- /dev/null +++ b/admin/views/help_documents/tmpl/default_body.php @@ -0,0 +1,118 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_body.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +$edit = "index.php?option=com_sermondistributor&view=help_documents&task=help_document.edit"; + +?> +<?php foreach ($this->items as $i => $item): ?> + <?php + $canCheckin = $this->user->authorise('core.manage', 'com_checkin') || $item->checked_out == $this->user->id || $item->checked_out == 0; + $userChkOut = JFactory::getUser($item->checked_out); + $canDo = SermondistributorHelper::getActions('help_document',$item,'help_documents'); + ?> + <tr class="row<?php echo $i % 2; ?>"> + <td class="order nowrap center hidden-phone"> + <?php if ($canDo->get('help_document.edit.state')): ?> + <?php + if ($this->saveOrder) + { + $iconClass = ' inactive'; + } + else + { + $iconClass = ' inactive tip-top" hasTooltip" title="' . JHtml::tooltipText('JORDERINGDISABLED'); + } + ?> + <span class="sortable-handler<?php echo $iconClass; ?>"> + <i class="icon-menu"></i> + </span> + <?php if ($this->saveOrder) : ?> + <input type="text" style="display:none" name="order[]" size="5" + value="<?php echo $item->ordering; ?>" class="width-20 text-area-order " /> + <?php endif; ?> + <?php else: ?> + &#8942; + <?php endif; ?> + </td> + <td class="nowrap center"> + <?php if ($canDo->get('help_document.edit')): ?> + <?php if ($item->checked_out) : ?> + <?php if ($canCheckin) : ?> + <?php echo JHtml::_('grid.id', $i, $item->id); ?> + <?php else: ?> + &#9633; + <?php endif; ?> + <?php else: ?> + <?php echo JHtml::_('grid.id', $i, $item->id); ?> + <?php endif; ?> + <?php else: ?> + &#9633; + <?php endif; ?> + </td> + <td class="nowrap"> + <?php if ($canDo->get('help_document.edit')): ?> + <div class="name"> + <a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->title); ?></a> + <?php if ($item->checked_out): ?> + <?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'help_documents.', $canCheckin); ?> + <?php endif; ?> + </div> + <?php else: ?> + <div class="name"><?php echo $this->escape($item->title); ?></div> + <?php endif; ?> + </td> + <td class="hidden-phone"> + <?php echo JText::_($item->type); ?> + </td> + <td class="hidden-phone"> + <?php echo $this->escape($item->groups); ?> + </td> + <td class="hidden-phone"> + <?php echo JText::_($item->location); ?> + </td> + <td class="hidden-phone"> + <?php echo $this->escape($item->admin_view); ?> + </td> + <td class="hidden-phone"> + <?php echo $this->escape($item->site_view); ?> + </td> + <td class="center"> + <?php if ($canDo->get('help_document.edit.state')) : ?> + <?php if ($item->checked_out) : ?> + <?php if ($canCheckin) : ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'help_documents.', true, 'cb'); ?> + <?php else: ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'help_documents.', false, 'cb'); ?> + <?php endif; ?> + <?php else: ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'help_documents.', true, 'cb'); ?> + <?php endif; ?> + <?php else: ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'help_documents.', false, 'cb'); ?> + <?php endif; ?> + </td> + <td class="nowrap center hidden-phone"> + <?php echo $item->id; ?> + </td> + </tr> +<?php endforeach; ?> \ No newline at end of file diff --git a/admin/views/help_documents/tmpl/default_foot.php b/admin/views/help_documents/tmpl/default_foot.php new file mode 100644 index 00000000..2dd91f7d --- /dev/null +++ b/admin/views/help_documents/tmpl/default_foot.php @@ -0,0 +1,27 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_foot.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<tr> + <td colspan="10"><?php echo $this->pagination->getListFooter(); ?></td> +</tr> \ No newline at end of file diff --git a/admin/views/help_documents/tmpl/default_head.php b/admin/views/help_documents/tmpl/default_head.php new file mode 100644 index 00000000..77d97d4d --- /dev/null +++ b/admin/views/help_documents/tmpl/default_head.php @@ -0,0 +1,71 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_head.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<tr> + <?php if ($this->canEdit&& $this->canState): ?> + <th width="1%" class="nowrap center hidden-phone"> + <?php echo JHtml::_('grid.sort', '<i class="icon-menu-2"></i>', 'ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING'); ?> + </th> + <th width="20" class="nowrap center"> + <?php echo JHtml::_('grid.checkall'); ?> + </th> + <?php else: ?> + <th width="20" class="nowrap center hidden-phone"> + &#9662; + </th> + <th width="20" class="nowrap center"> + &#9632; + </th> + <?php endif; ?> + <th class="nowrap" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TITLE_LABEL', 'title', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap hidden-phone" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TYPE_LABEL', 'type', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap hidden-phone" > + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_GROUPS_LABEL'); ?> + </th> + <th class="nowrap hidden-phone" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_LOCATION_LABEL', 'location', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap hidden-phone" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN_VIEW_LABEL', 'admin_view', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap hidden-phone" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE_VIEW_LABEL', 'site_view', $this->listDirn, $this->listOrder); ?> + </th> + <?php if ($this->canState): ?> + <th width="10" class="nowrap center" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_STATUS', 'published', $this->listDirn, $this->listOrder); ?> + </th> + <?php else: ?> + <th width="10" class="nowrap center" > + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_STATUS'); ?> + </th> + <?php endif; ?> + <th width="5" class="nowrap center hidden-phone" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ID', 'id', $this->listDirn, $this->listOrder); ?> + </th> +</tr> \ No newline at end of file diff --git a/admin/views/help_documents/tmpl/default_toolbar.php b/admin/views/help_documents/tmpl/default_toolbar.php new file mode 100644 index 00000000..50c81c85 --- /dev/null +++ b/admin/views/help_documents/tmpl/default_toolbar.php @@ -0,0 +1,54 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_toolbar.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<div id="filter-bar" class="btn-toolbar"> + <div class="filter-search btn-group pull-left"> + <label for="filter_search" class="element-invisible"><?php echo JText::_('Search');?></label> + <input type="text" name="filter_search" id="filter_search" placeholder="<?php echo JText::_('JSEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" class="hasTooltip" title="<?php echo JHtml::tooltipText('Search Help_documents'); ?>" /> + </div> + <div class="btn-group pull-left"> + <button type="submit" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>"><i class="icon-search"></i></button> + <button type="button" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_CLEAR'); ?>" onclick="document.id('filter_search').value='';this.form.submit();"><i class="icon-remove"></i></button> + </div> + <div class="btn-group pull-right hidden-phone"> + <label for="limit" class="element-invisible"><?php echo JText::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC');?></label> + <?php echo $this->pagination->getLimitBox(); ?> + </div> + <div class="btn-group pull-right hidden-phone"> + <label for="directionTable" class="element-invisible"><?php echo JText::_('JFIELD_ORDERING_DESC');?></label> + <select name="directionTable" id="directionTable" class="input-medium" onchange="Joomla.orderTable()"> + <option value=""><?php echo JText::_('JFIELD_ORDERING_DESC');?></option> + <option value="asc" <?php if ($this->listDirn == 'asc') echo 'selected="selected"'; ?>><?php echo JText::_('JGLOBAL_ORDER_ASCENDING');?></option> + <option value="desc" <?php if ($this->listDirn == 'desc') echo 'selected="selected"'; ?>><?php echo JText::_('JGLOBAL_ORDER_DESCENDING');?></option> + </select> + </div> + <div class="btn-group pull-right"> + <label for="sortTable" class="element-invisible"><?php echo JText::_('JGLOBAL_SORT_BY');?></label> + <select name="sortTable" id="sortTable" class="input-medium" onchange="Joomla.orderTable()"> + <option value=""><?php echo JText::_('JGLOBAL_SORT_BY');?></option> + <?php echo JHtml::_('select.options', $this->getSortFields(), 'value', 'text', $this->listOrder);?> + </select> + </div> + </div> +<div class="clearfix"> </div> \ No newline at end of file diff --git a/admin/views/help_documents/tmpl/index.html b/admin/views/help_documents/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/help_documents/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/help_documents/view.html.php b/admin/views/help_documents/view.html.php new file mode 100644 index 00000000..b35797ea --- /dev/null +++ b/admin/views/help_documents/view.html.php @@ -0,0 +1,473 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Sermondistributor View class for the Help_documents + */ +class SermondistributorViewHelp_documents extends JViewLegacy +{ + /** + * Help_documents view display method + * @return void + */ + function display($tpl = null) + { + if ($this->getLayout() !== 'modal') + { + // Include helper submenu + SermondistributorHelper::addSubmenu('help_documents'); + } + + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseError(500, implode('<br />', $errors)); + return false; + } + + // Assign data to the view + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + $this->state = $this->get('State'); + $this->user = JFactory::getUser(); + $this->listOrder = $this->escape($this->state->get('list.ordering')); + $this->listDirn = $this->escape($this->state->get('list.direction')); + $this->saveOrder = $this->listOrder == 'ordering'; + // get global action permissions + $this->canDo = SermondistributorHelper::getActions('help_document'); + $this->canEdit = $this->canDo->get('help_document.edit'); + $this->canState = $this->canDo->get('help_document.edit.state'); + $this->canCreate = $this->canDo->get('help_document.create'); + $this->canDelete = $this->canDo->get('help_document.delete'); + $this->canBatch = $this->canDo->get('core.batch'); + + // We don't need toolbar in the modal window. + if ($this->getLayout() !== 'modal') + { + $this->addToolbar(); + $this->sidebar = JHtmlSidebar::render(); + // load the batch html + if ($this->canCreate && $this->canEdit && $this->canState) + { + $this->batchDisplay = JHtmlBatch_::render(); + } + } + + // Display the template + parent::display($tpl); + + // Set the document + $this->setDocument(); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JToolBarHelper::title(JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS'), 'support'); + JHtmlSidebar::setAction('index.php?option=com_sermondistributor&view=help_documents'); + JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields'); + + if ($this->canCreate) + { + JToolBarHelper::addNew('help_document.add'); + } + + // Only load if there are items + if (SermondistributorHelper::checkArray($this->items)) + { + if ($this->canEdit) + { + JToolBarHelper::editList('help_document.edit'); + } + + if ($this->canState) + { + JToolBarHelper::publishList('help_documents.publish'); + JToolBarHelper::unpublishList('help_documents.unpublish'); + JToolBarHelper::archiveList('help_documents.archive'); + + if ($this->canDo->get('core.admin')) + { + JToolBarHelper::checkin('help_documents.checkin'); + } + } + + // Add a batch button + if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState) + { + // Get the toolbar object instance + $bar = JToolBar::getInstance('toolbar'); + // set the batch button name + $title = JText::_('JTOOLBAR_BATCH'); + // Instantiate a new JLayoutFile instance and render the batch button + $layout = new JLayoutFile('joomla.toolbar.batch'); + // add the button to the page + $dhtml = $layout->render(array('title' => $title)); + $bar->appendButton('Custom', $dhtml, 'batch'); + } + + if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete)) + { + JToolbarHelper::deleteList('', 'help_documents.delete', 'JTOOLBAR_EMPTY_TRASH'); + } + elseif ($this->canState && $this->canDelete) + { + JToolbarHelper::trash('help_documents.trash'); + } + + if ($this->canDo->get('core.export') && $this->canDo->get('help_document.export')) + { + JToolBarHelper::custom('help_documents.exportData', 'download', '', 'COM_SERMONDISTRIBUTOR_EXPORT_DATA', true); + } + } + + if ($this->canDo->get('core.import') && $this->canDo->get('help_document.import')) + { + JToolBarHelper::custom('help_documents.importData', 'upload', '', 'COM_SERMONDISTRIBUTOR_IMPORT_DATA', false); + } + + // set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('help_documents'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + + // add the options comp button + if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) + { + JToolBarHelper::preferences('com_sermondistributor'); + } + + if ($this->canState) + { + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_PUBLISHED'), + 'filter_published', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true) + ); + // only load if batch allowed + if ($this->canBatch) + { + JHtmlBatch_::addListSelection( + JText::_('COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_STATE'), + 'batch[published]', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true) + ); + } + } + + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_ACCESS'), + 'filter_access', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + JHtmlBatch_::addListSelection( + JText::_('COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_ACCESS'), + 'batch[access]', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text') + ); + } + + // [9107] Set Type Selection + $this->typeOptions = $this->getTheTypeSelections(); + if ($this->typeOptions) + { + // [9111] Type Filter + JHtmlSidebar::addFilter( + '- Select '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TYPE_LABEL').' -', + 'filter_type', + JHtml::_('select.options', $this->typeOptions, 'value', 'text', $this->state->get('filter.type')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + // [9120] Type Batch Selection + JHtmlBatch_::addListSelection( + '- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TYPE_LABEL').' -', + 'batch[type]', + JHtml::_('select.options', $this->typeOptions, 'value', 'text') + ); + } + } + + // [9107] Set Location Selection + $this->locationOptions = $this->getTheLocationSelections(); + if ($this->locationOptions) + { + // [9111] Location Filter + JHtmlSidebar::addFilter( + '- Select '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_LOCATION_LABEL').' -', + 'filter_location', + JHtml::_('select.options', $this->locationOptions, 'value', 'text', $this->state->get('filter.location')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + // [9120] Location Batch Selection + JHtmlBatch_::addListSelection( + '- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_LOCATION_LABEL').' -', + 'batch[location]', + JHtml::_('select.options', $this->locationOptions, 'value', 'text') + ); + } + } + + // [9107] Set Admin View Selection + $this->admin_viewOptions = $this->getTheAdmin_viewSelections(); + if ($this->admin_viewOptions) + { + // [9111] Admin View Filter + JHtmlSidebar::addFilter( + '- Select '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN_VIEW_LABEL').' -', + 'filter_admin_view', + JHtml::_('select.options', $this->admin_viewOptions, 'value', 'text', $this->state->get('filter.admin_view')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + // [9120] Admin View Batch Selection + JHtmlBatch_::addListSelection( + '- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN_VIEW_LABEL').' -', + 'batch[admin_view]', + JHtml::_('select.options', $this->admin_viewOptions, 'value', 'text') + ); + } + } + + // [9107] Set Site View Selection + $this->site_viewOptions = $this->getTheSite_viewSelections(); + if ($this->site_viewOptions) + { + // [9111] Site View Filter + JHtmlSidebar::addFilter( + '- Select '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE_VIEW_LABEL').' -', + 'filter_site_view', + JHtml::_('select.options', $this->site_viewOptions, 'value', 'text', $this->state->get('filter.site_view')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + // [9120] Site View Batch Selection + JHtmlBatch_::addListSelection( + '- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE_VIEW_LABEL').' -', + 'batch[site_view]', + JHtml::_('select.options', $this->site_viewOptions, 'value', 'text') + ); + } + } + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + $document = JFactory::getDocument(); + $document->setTitle(JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS')); + $document->addStyleSheet(JURI::root() . "administrator/components/com_sermondistributor/assets/css/help_documents.css"); + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var) + { + if(strlen($var) > 50) + { + // use the helper htmlEscape method instead and shorten the string + return SermondistributorHelper::htmlEscape($var, $this->_charset, true); + } + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset); + } + + /** + * Returns an array of fields the table can be sorted by + * + * @return array Array containing the field name to sort by as the key and display text as value + */ + protected function getSortFields() + { + return array( + 'a.sorting' => JText::_('JGRID_HEADING_ORDERING'), + 'a.published' => JText::_('JSTATUS'), + 'a.title' => JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TITLE_LABEL'), + 'a.type' => JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TYPE_LABEL'), + 'a.location' => JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_LOCATION_LABEL'), + 'a.admin_view' => JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN_VIEW_LABEL'), + 'a.site_view' => JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE_VIEW_LABEL'), + 'a.id' => JText::_('JGRID_HEADING_ID') + ); + } + + protected function getTheTypeSelections() + { + // [8983] Get a db connection. + $db = JFactory::getDbo(); + + // [8985] Create a new query object. + $query = $db->getQuery(true); + + // [8987] Select the text. + $query->select($db->quoteName('type')); + $query->from($db->quoteName('#__sermondistributor_help_document')); + $query->order($db->quoteName('type') . ' ASC'); + + // [8991] Reset the query using our newly populated query object. + $db->setQuery($query); + + $results = $db->loadColumn(); + + if ($results) + { + // [8999] get model + $model = $this->getModel(); + $results = array_unique($results); + $filter = array(); + foreach ($results as $type) + { + // [9010] Translate the type selection + $text = $model->selectionTranslation($type,'type'); + // [9012] Now add the type and its text to the options array + $filter[] = JHtml::_('select.option', $type, JText::_($text)); + } + return $filter; + } + return false; + } + + protected function getTheLocationSelections() + { + // [8983] Get a db connection. + $db = JFactory::getDbo(); + + // [8985] Create a new query object. + $query = $db->getQuery(true); + + // [8987] Select the text. + $query->select($db->quoteName('location')); + $query->from($db->quoteName('#__sermondistributor_help_document')); + $query->order($db->quoteName('location') . ' ASC'); + + // [8991] Reset the query using our newly populated query object. + $db->setQuery($query); + + $results = $db->loadColumn(); + + if ($results) + { + // [8999] get model + $model = $this->getModel(); + $results = array_unique($results); + $filter = array(); + foreach ($results as $location) + { + // [9010] Translate the location selection + $text = $model->selectionTranslation($location,'location'); + // [9012] Now add the location and its text to the options array + $filter[] = JHtml::_('select.option', $location, JText::_($text)); + } + return $filter; + } + return false; + } + + protected function getTheAdmin_viewSelections() + { + // [8983] Get a db connection. + $db = JFactory::getDbo(); + + // [8985] Create a new query object. + $query = $db->getQuery(true); + + // [8987] Select the text. + $query->select($db->quoteName('admin_view')); + $query->from($db->quoteName('#__sermondistributor_help_document')); + $query->order($db->quoteName('admin_view') . ' ASC'); + + // [8991] Reset the query using our newly populated query object. + $db->setQuery($query); + + $results = $db->loadColumn(); + + if ($results) + { + $results = array_unique($results); + $filter = array(); + foreach ($results as $admin_view) + { + // [9017] Now add the admin_view and its text to the options array + $filter[] = JHtml::_('select.option', $admin_view, $admin_view); + } + return $filter; + } + return false; + } + + protected function getTheSite_viewSelections() + { + // [8983] Get a db connection. + $db = JFactory::getDbo(); + + // [8985] Create a new query object. + $query = $db->getQuery(true); + + // [8987] Select the text. + $query->select($db->quoteName('site_view')); + $query->from($db->quoteName('#__sermondistributor_help_document')); + $query->order($db->quoteName('site_view') . ' ASC'); + + // [8991] Reset the query using our newly populated query object. + $db->setQuery($query); + + $results = $db->loadColumn(); + + if ($results) + { + $results = array_unique($results); + $filter = array(); + foreach ($results as $site_view) + { + // [9017] Now add the site_view and its text to the options array + $filter[] = JHtml::_('select.option', $site_view, $site_view); + } + return $filter; + } + return false; + } +} diff --git a/admin/views/import/index.html b/admin/views/import/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/import/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/import/tmpl/default.php b/admin/views/import/tmpl/default.php new file mode 100644 index 00000000..4e3e3f1b --- /dev/null +++ b/admin/views/import/tmpl/default.php @@ -0,0 +1,228 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +JHtml::_('jquery.framework'); +JHtml::_('bootstrap.tooltip'); +JHtml::_('script', 'system/core.js', false, true); +?> +<script type="text/javascript"> + + <?php if ($this->hasPackage && SermondistributorHelper::checkArray($this->headerList)) : ?> + Joomla.continueImport = function() + { + var form = document.getElementById('adminForm'); + var error = false; + var therequired = [<?php $i = 0; foreach($this->headerList as $name => $title) { echo ($i != 0)? ', "vdm_'.$name.'"':'"vdm_'.$name.'"'; $i++; } ?>]; + for(i = 0; i < therequired.length; i++) + { + if(jQuery('#'+therequired[i]).val() == "" ) + { + error = true; + break; + } + } + // do field validation + if (error) + { + alert("<?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_MSG_PLEASE_SELECT_ALL_COLUMNS', true); ?>"); + } + else + { + jQuery('#loading').css('display', 'block'); + + form.gettype.value = 'continue'; + form.submit(); + } + }; + <?php else: ?> + Joomla.submitbutton = function() + { + var form = document.getElementById('adminForm'); + + // do field validation + if (form.import_package.value == "") + { + alert("<?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_MSG_PLEASE_SELECT_A_FILE', true); ?>"); + } + else + { + jQuery('#loading').css('display', 'block'); + + form.gettype.value = 'upload'; + form.submit(); + } + }; + + Joomla.submitbutton3 = function() + { + var form = document.getElementById('adminForm'); + + // do field validation + if (form.import_directory.value == ""){ + alert("<?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_MSG_PLEASE_SELECT_A_DIRECTORY', true); ?>"); + } + else + { + jQuery('#loading').css('display', 'block'); + + form.gettype.value = 'folder'; + form.submit(); + } + }; + + Joomla.submitbutton4 = function() + { + var form = document.getElementById('adminForm'); + + // do field validation + if (form.import_url.value == "" || form.import_url.value == "http://") + { + alert("<?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_MSG_ENTER_A_URL', true); ?>"); + } + else + { + jQuery('#loading').css('display', 'block'); + + form.gettype.value = 'url'; + form.submit(); + } + }; + <?php endif; ?> + + // Add spindle-wheel for importations: + jQuery(document).ready(function($) { + var outerDiv = $('body'); + + $('<div id="loading"></div>') + .css("background", "rgba(255, 255, 255, .8) url('components/com_sermondistributor/assets/images/import.gif') 50% 15% no-repeat") + .css("top", outerDiv.position().top - $(window).scrollTop()) + .css("left", outerDiv.position().left - $(window).scrollLeft()) + .css("width", outerDiv.width()) + .css("height", outerDiv.height()) + .css("position", "fixed") + .css("opacity", "0.80") + .css("-ms-filter", "progid:DXImageTransform.Microsoft.Alpha(Opacity = 80)") + .css("filter", "alpha(opacity = 80)") + .css("display", "none") + .appendTo(outerDiv); + }); + +</script> + +<div id="installer-import" class="clearfix"> +<form enctype="multipart/form-data" action="<?php echo JRoute::_('index.php?option=com_sermondistributor&view=import');?>" method="post" name="adminForm" id="adminForm" class="form-horizontal form-validate"> + + <?php if (!empty( $this->sidebar)) : ?> + <div id="j-sidebar-container" class="span2"> + <?php echo $this->sidebar; ?> + </div> + <div id="j-main-container" class="span10"> + <?php else : ?> + <div id="j-main-container"> + <?php endif;?> + + <?php if ($this->hasPackage && SermondistributorHelper::checkArray($this->headerList) && SermondistributorHelper::checkArray($this->headers)) : ?> + <fieldset class="uploadform"> + <legend><?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_LINK_FILE_TO_TABLE_COLUMNS'); ?></legend> + <div class="control-group"> + <label class="control-label" ><h4><?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_TABLE_COLUMNS'); ?></h4></label> + <div class="controls"> + <label class="control-label" ><h4><?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FILE_COLUMNS'); ?></h4></label> + </div> + </div> + <?php foreach($this->headerList as $name => $title): ?> + <div class="control-group"> + <label for="<?php echo $name; ?>" class="control-label" ><?php echo $title; ?></label> + <div class="controls"> + <select name="<?php echo $name; ?>" id="vdm_<?php echo $name; ?>" required class="required input_box" > + <option value=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_PLEASE_SELECT_COLUMN'); ?></option> + <option value="IGNORE"><?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_IGNORE_COLUMN'); ?></option> + <?php foreach($this->headers as $value => $option): ?> + <?php $selected = (strtolower($option) == strtolower ($title) || strtolower($option) == strtolower($name))? 'selected="selected"':''; ?> + <option value="<?php echo SermondistributorHelper::htmlEscape($value); ?>" class="required" <?php echo $selected ?>><?php echo SermondistributorHelper::htmlEscape($option); ?></option> + <?php endforeach; ?> + </select> + </div> + </div> + <?php endforeach; ?> + <div class="form-actions"> + <input class="btn btn-primary" type="button" value="<?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_CONTINUE'); ?>" onclick="Joomla.continueImport()" /> + </div> + </fieldset> + <input type="hidden" name="gettype" value="continue" /> + <?php else: ?> + <?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'upload')); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'upload', JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FROM_UPLOAD', true)); ?> + <fieldset class="uploadform"> + <legend><?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_UPDATE_DATA'); ?></legend> + <div class="control-group"> + <label for="import_package" class="control-label"><?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE'); ?></label> + <div class="controls"> + <input class="input_box" id="import_package" name="import_package" type="file" size="57" /> + </div> + </div> + <div class="form-actions"> + <input class="btn btn-primary" type="button" value="<?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_UPLOAD_BOTTON'); ?>" onclick="Joomla.submitbutton()" />&nbsp;&nbsp;&nbsp;<small><?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FORMATS_ACCEPTED'); ?> (.csv .xls .ods)</small> + </div> + </fieldset> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'directory', JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FROM_DIRECTORY', true)); ?> + <fieldset class="uploadform"> + <legend><?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_UPDATE_DATA'); ?></legend> + <div class="control-group"> + <label for="import_directory" class="control-label"><?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_DIRECTORY'); ?></label> + <div class="controls"> + <input type="text" id="import_directory" name="import_directory" class="span5 input_box" size="70" value="<?php echo $this->state->get('import.directory'); ?>" /> + </div> + </div> + <div class="form-actions"> + <input type="button" class="btn btn-primary" value="<?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_GET_BOTTON'); ?>" onclick="Joomla.submitbutton3()" />&nbsp;&nbsp;&nbsp;<small><?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FORMATS_ACCEPTED'); ?> (.csv .xls .ods)</small> + </div> + </fieldset> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'url', JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FROM_URL', true)); ?> + <fieldset class="uploadform"> + <legend><?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_UPDATE_DATA'); ?></legend> + <div class="control-group"> + <label for="import_url" class="control-label"><?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_URL'); ?></label> + <div class="controls"> + <input type="text" id="import_url" name="import_url" class="span5 input_box" size="70" value="http://" /> + </div> + </div> + <div class="form-actions"> + <input type="button" class="btn btn-primary" value="<?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_GET_BOTTON'); ?>" onclick="Joomla.submitbutton4()" />&nbsp;&nbsp;&nbsp;<small><?php echo JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FORMATS_ACCEPTED'); ?> (.csv .xls .ods)</small> + </div> + </fieldset> + + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php echo JHtml::_('bootstrap.endTabSet'); ?> + <input type="hidden" name="gettype" value="upload" /> + <?php endif; ?> + <input type="hidden" name="task" value="import.import" /> + <?php echo JHtml::_('form.token'); ?> +</form> +</div> diff --git a/admin/views/import/tmpl/index.html b/admin/views/import/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/import/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/import/view.html.php b/admin/views/import/view.html.php new file mode 100644 index 00000000..48ef60e4 --- /dev/null +++ b/admin/views/import/view.html.php @@ -0,0 +1,105 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Sermondistributor Import View + */ +class SermondistributorViewImport extends JViewLegacy +{ + protected $headerList; + protected $hasPackage = false; + protected $headers; + protected $hasHeader = 0; + protected $dataType; + + public function display($tpl = null) + { + if ($this->getLayout() !== 'modal') + { + // Include helper submenu + SermondistributorHelper::addSubmenu('import'); + } + + // Check for errors. + if (count($errors = $this->get('Errors'))){ + JError::raiseError(500, implode('<br />', $errors)); + return false; + } + + $paths = new stdClass; + $paths->first = ''; + $state = $this->get('state'); + + $this->paths = &$paths; + $this->state = &$state; + // get global action permissions + $this->canDo = SermondistributorHelper::getActions('import'); + + // We don't need toolbar in the modal window. + if ($this->getLayout() !== 'modal') + { + $this->addToolbar(); + $this->sidebar = JHtmlSidebar::render(); + } + + // get the session object + $session = JFactory::getSession(); + // check if it has package + $this->hasPackage = $session->get('hasPackage', false); + $this->dataType = $session->get('dataType', false); + if($this->hasPackage && $this->dataType) + { + $this->headerList = json_decode($session->get($this->dataType.'_VDM_IMPORTHEADERS', false),true); + $this->headers = SermondistributorHelper::getFileHeaders($this->dataType); + // clear the data type + $session->clear('dataType'); + } + + // Display the template + parent::display($tpl); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JToolBarHelper::title(JText::_('COM_SERMONDISTRIBUTOR_IMPORT_TITLE'), 'upload'); + JHtmlSidebar::setAction('index.php?option=com_sermondistributor&view=import'); + + if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) + { + JToolBarHelper::preferences('com_sermondistributor'); + } + + // set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('import'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + } +} diff --git a/admin/views/index.html b/admin/views/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/preacher/submitbutton.js b/admin/views/preacher/submitbutton.js new file mode 100644 index 00000000..697ef4cb --- /dev/null +++ b/admin/views/preacher/submitbutton.js @@ -0,0 +1,44 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage submitbutton.js + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +Joomla.submitbutton = function(task) +{ + if (task == ''){ + return false; + } else { + var isValid=true; + var action = task.split('.'); + if (action[1] != 'cancel' && action[1] != 'close'){ + var forms = $$('form.form-validate'); + for (var i=0;i<forms.length;i++){ + if (!document.formvalidator.isValid(forms[i])){ + isValid = false; + break; + } + } + } + if (isValid){ + Joomla.submitform(task); + return true; + } else { + alert(Joomla.JText._('preacher, some values are not acceptable.','Some values are unacceptable')); + return false; + } + } +} \ No newline at end of file diff --git a/admin/views/preacher/tmpl/edit.php b/admin/views/preacher/tmpl/edit.php new file mode 100644 index 00000000..a55557bd --- /dev/null +++ b/admin/views/preacher/tmpl/edit.php @@ -0,0 +1,101 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage edit.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); +JHtml::_('behavior.tooltip'); +JHtml::_('behavior.formvalidation'); +JHtml::_('formbehavior.chosen', 'select'); +JHtml::_('behavior.keepalive'); +$componentParams = JComponentHelper::getParams('com_sermondistributor'); +?> + +<form action="<?php echo JRoute::_('index.php?option=com_sermondistributor&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data"> + + <?php echo JLayoutHelper::render('preacher.details_above', $this); ?><div class="form-horizontal"> + + <?php echo JHtml::_('bootstrap.startTabSet', 'preacherTab', array('active' => 'details')); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'preacherTab', 'details', JText::_('COM_SERMONDISTRIBUTOR_PREACHER_DETAILS', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + <div class="span6"> + <?php echo JLayoutHelper::render('preacher.details_left', $this); ?> + </div> + <div class="span6"> + <?php echo JLayoutHelper::render('preacher.details_right', $this); ?> + </div> + </div> + <div class="row-fluid form-horizontal-desktop"> + <div class="span12"> + <?php echo JLayoutHelper::render('preacher.details_fullwidth', $this); ?> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'preacherTab', 'sermons', JText::_('COM_SERMONDISTRIBUTOR_PREACHER_SERMONS', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + </div> + <div class="row-fluid form-horizontal-desktop"> + <div class="span12"> + <?php echo JLayoutHelper::render('preacher.sermons_fullwidth', $this); ?> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'preacherTab', 'publishing', JText::_('COM_SERMONDISTRIBUTOR_PREACHER_PUBLISHING', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + <div class="span6"> + <?php echo JLayoutHelper::render('preacher.publishing', $this); ?> + </div> + <div class="span6"> + <?php echo JLayoutHelper::render('preacher.metadata', $this); ?> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php if ($this->canDo->get('core.admin')) : ?> + <?php echo JHtml::_('bootstrap.addTab', 'preacherTab', 'permissions', JText::_('COM_SERMONDISTRIBUTOR_PREACHER_PERMISSION', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + <div class="span12"> + <fieldset class="adminform"> + <div class="adminformlist"> + <?php foreach ($this->form->getFieldset('accesscontrol') as $field): ?> + <div> + <?php echo $field->label; echo $field->input;?> + </div> + <div class="clearfix"></div> + <?php endforeach; ?> + </div> + </fieldset> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + <?php endif; ?> + + <?php echo JHtml::_('bootstrap.endTabSet'); ?> + + <div> + <input type="hidden" name="task" value="preacher.edit" /> + <?php echo JHtml::_('form.token'); ?> + </div> +</div> +</form> diff --git a/admin/views/preacher/tmpl/index.html b/admin/views/preacher/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/preacher/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/preacher/view.html.php b/admin/views/preacher/view.html.php new file mode 100644 index 00000000..1d4f71e8 --- /dev/null +++ b/admin/views/preacher/view.html.php @@ -0,0 +1,222 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Preacher View class + */ +class SermondistributorViewPreacher extends JViewLegacy +{ + /** + * display method of View + * @return void + */ + public function display($tpl = null) + { + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseError(500, implode('<br />', $errors)); + return false; + } + + // Assign the variables + $this->form = $this->get('Form'); + $this->item = $this->get('Item'); + $this->script = $this->get('Script'); + $this->state = $this->get('State'); + // get action permissions + $this->canDo = SermondistributorHelper::getActions('preacher',$this->item); + // get input + $jinput = JFactory::getApplication()->input; + $this->ref = $jinput->get('ref', 0, 'word'); + $this->refid = $jinput->get('refid', 0, 'int'); + $this->referral = ''; + if ($this->refid) + { + // return to the item that refered to this item + $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; + } + elseif($this->ref) + { + // return to the list view that refered to this item + $this->referral = '&ref='.(string)$this->ref; + } + + // [6445] Get Linked view data + $this->kalsermons = $this->get('Kalsermons'); + + // Set the toolbar + $this->addToolBar(); + + // Display the template + parent::display($tpl); + + // Set the document + $this->setDocument(); + } + + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JFactory::getApplication()->input->set('hidemainmenu', true); + $user = JFactory::getUser(); + $userId = $user->id; + $isNew = $this->item->id == 0; + + JToolbarHelper::title( JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_PREACHER_NEW' : 'COM_SERMONDISTRIBUTOR_PREACHER_EDIT'), 'pencil-2 article-add'); + // [10235] Built the actions for new and existing records. + if ($this->refid || $this->ref) + { + if ($this->canDo->get('preacher.create') && $isNew) + { + // [10247] We can create the record. + JToolBarHelper::save('preacher.save', 'JTOOLBAR_SAVE'); + } + elseif ($this->canDo->get('preacher.edit')) + { + // [10259] We can save the record. + JToolBarHelper::save('preacher.save', 'JTOOLBAR_SAVE'); + } + if ($isNew) + { + // [10264] Do not creat but cancel. + JToolBarHelper::cancel('preacher.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + // [10269] We can close it. + JToolBarHelper::cancel('preacher.cancel', 'JTOOLBAR_CLOSE'); + } + } + else + { + if ($isNew) + { + // [10277] For new records, check the create permission. + if ($this->canDo->get('preacher.create')) + { + JToolBarHelper::apply('preacher.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('preacher.save', 'JTOOLBAR_SAVE'); + JToolBarHelper::custom('preacher.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + }; + JToolBarHelper::cancel('preacher.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + if ($this->canDo->get('preacher.edit')) + { + // [10304] We can save the new record + JToolBarHelper::apply('preacher.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('preacher.save', 'JTOOLBAR_SAVE'); + // [10307] We can save this record, but check the create permission to see + // [10308] if we can return to make a new one. + if ($this->canDo->get('preacher.create')) + { + JToolBarHelper::custom('preacher.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + } + } + $canVersion = ($this->canDo->get('core.version') && $this->canDo->get('preacher.version')); + if ($this->state->params->get('save_history', 1) && $this->canDo->get('preacher.edit') && $canVersion) + { + JToolbarHelper::versions('com_sermondistributor.preacher', $this->item->id); + } + if ($this->canDo->get('preacher.create')) + { + JToolBarHelper::custom('preacher.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false); + } + JToolBarHelper::cancel('preacher.cancel', 'JTOOLBAR_CLOSE'); + } + } + JToolbarHelper::divider(); + // [10344] set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('preacher'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var) + { + if(strlen($var) > 30) + { + // use the helper htmlEscape method instead and shorten the string + return SermondistributorHelper::htmlEscape($var, $this->_charset, true, 30); + } + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset); + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + $isNew = ($this->item->id < 1); + $document = JFactory::getDocument(); + $document->setTitle(JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_PREACHER_NEW' : 'COM_SERMONDISTRIBUTOR_PREACHER_EDIT')); + $document->addStyleSheet(JURI::root() . "administrator/components/com_sermondistributor/assets/css/preacher.css"); + + // [6480] Add the CSS for Footable. + $document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css'); + + // [6482] Use the Metro Style + if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle) + { + $document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css'); + } + // [6487] Use the Legacy Style. + elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle) + { + $document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css'); + } + + // [6492] Add the JavaScript for Footable + $document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js'); + $document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js'); + $document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js'); + $document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.paginate.js'); + + $footable = "jQuery(document).ready(function() { jQuery(function () { jQuery('.footable').footable(); }); jQuery('.nav-tabs').on('click', 'li', function() { setTimeout(tableFix, 10); }); }); function tableFix() { jQuery('.footable').trigger('footable_resize'); }"; + $document->addScriptDeclaration($footable); + + $document->addScript(JURI::root() . $this->script); + $document->addScript(JURI::root() . "administrator/components/com_sermondistributor/views/preacher/submitbutton.js"); + JText::script('view not acceptable. Error'); + } +} diff --git a/admin/views/preachers/index.html b/admin/views/preachers/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/preachers/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/preachers/tmpl/default.php b/admin/views/preachers/tmpl/default.php new file mode 100644 index 00000000..7e8fbb32 --- /dev/null +++ b/admin/views/preachers/tmpl/default.php @@ -0,0 +1,94 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// load tooltip behavior +JHtml::_('behavior.tooltip'); +JHtml::_('behavior.multiselect'); +JHtml::_('dropdown.init'); +JHtml::_('formbehavior.chosen', 'select'); + +if ($this->saveOrder) +{ + $saveOrderingUrl = 'index.php?option=com_sermondistributor&task=preachers.saveOrderAjax&tmpl=component'; + JHtml::_('sortablelist.sortable', 'preacherList', 'adminForm', strtolower($this->listDirn), $saveOrderingUrl); +} + +?> +<script type="text/javascript"> + Joomla.orderTable = function() + { + table = document.getElementById("sortTable"); + direction = document.getElementById("directionTable"); + order = table.options[table.selectedIndex].value; + if (order != '<?php echo $this->listOrder; ?>') + { + dirn = 'asc'; + } + else + { + dirn = direction.options[direction.selectedIndex].value; + } + Joomla.tableOrdering(order, dirn, ''); + } +</script> +<form action="<?php echo JRoute::_('index.php?option=com_sermondistributor&view=preachers'); ?>" method="post" name="adminForm" id="adminForm"> +<?php if(!empty( $this->sidebar)): ?> + <div id="j-sidebar-container" class="span2"> + <?php echo $this->sidebar; ?> + </div> + <div id="j-main-container" class="span10"> +<?php else : ?> + <div id="j-main-container"> +<?php endif; ?> +<?php if (empty($this->items)): ?> + <?php echo $this->loadTemplate('toolbar');?> + <div class="alert alert-no-items"> + <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> + </div> +<?php else : ?> + <?php echo $this->loadTemplate('toolbar');?> + <table class="table table-striped" id="preacherList"> + <thead><?php echo $this->loadTemplate('head');?></thead> + <tfoot><?php echo $this->loadTemplate('foot');?></tfoot> + <tbody><?php echo $this->loadTemplate('body');?></tbody> + </table> + <?php //Load the batch processing form. ?> + <?php if ($this->canCreate && $this->canEdit) : ?> + <?php echo JHtml::_( + 'bootstrap.renderModal', + 'collapseModal', + array( + 'title' => JText::_('COM_SERMONDISTRIBUTOR_PREACHERS_BATCH_OPTIONS'), + 'footer' => $this->loadTemplate('batch_footer') + ), + $this->loadTemplate('batch_body') + ); ?> + <?php endif; ?> + <input type="hidden" name="filter_order" value="" /> + <input type="hidden" name="filter_order_Dir" value="" /> + <input type="hidden" name="boxchecked" value="0" /> + </div> +<?php endif; ?> +<input type="hidden" name="task" value="" /> +<?php echo JHtml::_('form.token'); ?> +</form> \ No newline at end of file diff --git a/admin/views/preachers/tmpl/default_batch_body.php b/admin/views/preachers/tmpl/default_batch_body.php new file mode 100644 index 00000000..95b11dde --- /dev/null +++ b/admin/views/preachers/tmpl/default_batch_body.php @@ -0,0 +1,27 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_batch_body.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + +<p><?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHERS_BATCH_TIP'); ?></p> +<?php echo $this->batchDisplay; ?> \ No newline at end of file diff --git a/admin/views/preachers/tmpl/default_batch_footer.php b/admin/views/preachers/tmpl/default_batch_footer.php new file mode 100644 index 00000000..c76637dc --- /dev/null +++ b/admin/views/preachers/tmpl/default_batch_footer.php @@ -0,0 +1,32 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_batch_footer.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<!-- clear the batch values if cancel --> +<button class="btn" type="button" onclick="###BATCH_ONCLICK_CANCEL_SCRIPT###" data-dismiss="modal"> + <?php echo JText::_('JCANCEL'); ?> +</button> +<!-- post the batch values if process --> +<button class="btn btn-success" type="submit" onclick="Joomla.submitbutton('preacher.batch');"> + <?php echo JText::_('JGLOBAL_BATCH_PROCESS'); ?> +</button> \ No newline at end of file diff --git a/admin/views/preachers/tmpl/default_body.php b/admin/views/preachers/tmpl/default_body.php new file mode 100644 index 00000000..c72a2c8e --- /dev/null +++ b/admin/views/preachers/tmpl/default_body.php @@ -0,0 +1,106 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_body.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +$edit = "index.php?option=com_sermondistributor&view=preachers&task=preacher.edit"; + +?> +<?php foreach ($this->items as $i => $item): ?> + <?php + $canCheckin = $this->user->authorise('core.manage', 'com_checkin') || $item->checked_out == $this->user->id || $item->checked_out == 0; + $userChkOut = JFactory::getUser($item->checked_out); + $canDo = SermondistributorHelper::getActions('preacher',$item,'preachers'); + ?> + <tr class="row<?php echo $i % 2; ?>"> + <td class="order nowrap center hidden-phone"> + <?php if ($canDo->get('preacher.edit.state')): ?> + <?php + if ($this->saveOrder) + { + $iconClass = ' inactive'; + } + else + { + $iconClass = ' inactive tip-top" hasTooltip" title="' . JHtml::tooltipText('JORDERINGDISABLED'); + } + ?> + <span class="sortable-handler<?php echo $iconClass; ?>"> + <i class="icon-menu"></i> + </span> + <?php if ($this->saveOrder) : ?> + <input type="text" style="display:none" name="order[]" size="5" + value="<?php echo $item->ordering; ?>" class="width-20 text-area-order " /> + <?php endif; ?> + <?php else: ?> + &#8942; + <?php endif; ?> + </td> + <td class="nowrap center"> + <?php if ($canDo->get('preacher.edit')): ?> + <?php if ($item->checked_out) : ?> + <?php if ($canCheckin) : ?> + <?php echo JHtml::_('grid.id', $i, $item->id); ?> + <?php else: ?> + &#9633; + <?php endif; ?> + <?php else: ?> + <?php echo JHtml::_('grid.id', $i, $item->id); ?> + <?php endif; ?> + <?php else: ?> + &#9633; + <?php endif; ?> + </td> + <td class="nowrap"> + <?php if ($canDo->get('preacher.edit')): ?> + <div class="name"> + <a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a> + <?php if ($item->checked_out): ?> + <?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'preachers.', $canCheckin); ?> + <?php endif; ?> + </div> + <?php else: ?> + <div class="name"><?php echo $this->escape($item->name); ?></div> + <?php endif; ?> + </td> + <td class="hidden-phone"> + <?php echo $this->escape($item->description); ?> + </td> + <td class="center"> + <?php if ($canDo->get('preacher.edit.state')) : ?> + <?php if ($item->checked_out) : ?> + <?php if ($canCheckin) : ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'preachers.', true, 'cb'); ?> + <?php else: ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'preachers.', false, 'cb'); ?> + <?php endif; ?> + <?php else: ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'preachers.', true, 'cb'); ?> + <?php endif; ?> + <?php else: ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'preachers.', false, 'cb'); ?> + <?php endif; ?> + </td> + <td class="nowrap center hidden-phone"> + <?php echo $item->id; ?> + </td> + </tr> +<?php endforeach; ?> \ No newline at end of file diff --git a/admin/views/preachers/tmpl/default_foot.php b/admin/views/preachers/tmpl/default_foot.php new file mode 100644 index 00000000..04bce959 --- /dev/null +++ b/admin/views/preachers/tmpl/default_foot.php @@ -0,0 +1,27 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_foot.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<tr> + <td colspan="6"><?php echo $this->pagination->getListFooter(); ?></td> +</tr> \ No newline at end of file diff --git a/admin/views/preachers/tmpl/default_head.php b/admin/views/preachers/tmpl/default_head.php new file mode 100644 index 00000000..412d9c1a --- /dev/null +++ b/admin/views/preachers/tmpl/default_head.php @@ -0,0 +1,59 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_head.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<tr> + <?php if ($this->canEdit&& $this->canState): ?> + <th width="1%" class="nowrap center hidden-phone"> + <?php echo JHtml::_('grid.sort', '<i class="icon-menu-2"></i>', 'ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING'); ?> + </th> + <th width="20" class="nowrap center"> + <?php echo JHtml::_('grid.checkall'); ?> + </th> + <?php else: ?> + <th width="20" class="nowrap center hidden-phone"> + &#9662; + </th> + <th width="20" class="nowrap center"> + &#9632; + </th> + <?php endif; ?> + <th class="nowrap" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_PREACHER_NAME_LABEL', 'name', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap hidden-phone" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_PREACHER_DESCRIPTION_LABEL', 'description', $this->listDirn, $this->listOrder); ?> + </th> + <?php if ($this->canState): ?> + <th width="10" class="nowrap center" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_PREACHER_STATUS', 'published', $this->listDirn, $this->listOrder); ?> + </th> + <?php else: ?> + <th width="10" class="nowrap center" > + <?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHER_STATUS'); ?> + </th> + <?php endif; ?> + <th width="5" class="nowrap center hidden-phone" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_PREACHER_ID', 'id', $this->listDirn, $this->listOrder); ?> + </th> +</tr> \ No newline at end of file diff --git a/admin/views/preachers/tmpl/default_toolbar.php b/admin/views/preachers/tmpl/default_toolbar.php new file mode 100644 index 00000000..68612759 --- /dev/null +++ b/admin/views/preachers/tmpl/default_toolbar.php @@ -0,0 +1,54 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_toolbar.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<div id="filter-bar" class="btn-toolbar"> + <div class="filter-search btn-group pull-left"> + <label for="filter_search" class="element-invisible"><?php echo JText::_('Search');?></label> + <input type="text" name="filter_search" id="filter_search" placeholder="<?php echo JText::_('JSEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" class="hasTooltip" title="<?php echo JHtml::tooltipText('Search Preachers'); ?>" /> + </div> + <div class="btn-group pull-left"> + <button type="submit" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>"><i class="icon-search"></i></button> + <button type="button" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_CLEAR'); ?>" onclick="document.id('filter_search').value='';this.form.submit();"><i class="icon-remove"></i></button> + </div> + <div class="btn-group pull-right hidden-phone"> + <label for="limit" class="element-invisible"><?php echo JText::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC');?></label> + <?php echo $this->pagination->getLimitBox(); ?> + </div> + <div class="btn-group pull-right hidden-phone"> + <label for="directionTable" class="element-invisible"><?php echo JText::_('JFIELD_ORDERING_DESC');?></label> + <select name="directionTable" id="directionTable" class="input-medium" onchange="Joomla.orderTable()"> + <option value=""><?php echo JText::_('JFIELD_ORDERING_DESC');?></option> + <option value="asc" <?php if ($this->listDirn == 'asc') echo 'selected="selected"'; ?>><?php echo JText::_('JGLOBAL_ORDER_ASCENDING');?></option> + <option value="desc" <?php if ($this->listDirn == 'desc') echo 'selected="selected"'; ?>><?php echo JText::_('JGLOBAL_ORDER_DESCENDING');?></option> + </select> + </div> + <div class="btn-group pull-right"> + <label for="sortTable" class="element-invisible"><?php echo JText::_('JGLOBAL_SORT_BY');?></label> + <select name="sortTable" id="sortTable" class="input-medium" onchange="Joomla.orderTable()"> + <option value=""><?php echo JText::_('JGLOBAL_SORT_BY');?></option> + <?php echo JHtml::_('select.options', $this->getSortFields(), 'value', 'text', $this->listOrder);?> + </select> + </div> + </div> +<div class="clearfix"> </div> \ No newline at end of file diff --git a/admin/views/preachers/tmpl/index.html b/admin/views/preachers/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/preachers/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/preachers/view.html.php b/admin/views/preachers/view.html.php new file mode 100644 index 00000000..6d096844 --- /dev/null +++ b/admin/views/preachers/view.html.php @@ -0,0 +1,246 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Sermondistributor View class for the Preachers + */ +class SermondistributorViewPreachers extends JViewLegacy +{ + /** + * Preachers view display method + * @return void + */ + function display($tpl = null) + { + if ($this->getLayout() !== 'modal') + { + // Include helper submenu + SermondistributorHelper::addSubmenu('preachers'); + } + + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseError(500, implode('<br />', $errors)); + return false; + } + + // Assign data to the view + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + $this->state = $this->get('State'); + $this->user = JFactory::getUser(); + $this->listOrder = $this->escape($this->state->get('list.ordering')); + $this->listDirn = $this->escape($this->state->get('list.direction')); + $this->saveOrder = $this->listOrder == 'ordering'; + // get global action permissions + $this->canDo = SermondistributorHelper::getActions('preacher'); + $this->canEdit = $this->canDo->get('preacher.edit'); + $this->canState = $this->canDo->get('preacher.edit.state'); + $this->canCreate = $this->canDo->get('preacher.create'); + $this->canDelete = $this->canDo->get('preacher.delete'); + $this->canBatch = $this->canDo->get('core.batch'); + + // We don't need toolbar in the modal window. + if ($this->getLayout() !== 'modal') + { + $this->addToolbar(); + $this->sidebar = JHtmlSidebar::render(); + // load the batch html + if ($this->canCreate && $this->canEdit && $this->canState) + { + $this->batchDisplay = JHtmlBatch_::render(); + } + } + + // Display the template + parent::display($tpl); + + // Set the document + $this->setDocument(); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JToolBarHelper::title(JText::_('COM_SERMONDISTRIBUTOR_PREACHERS'), 'user'); + JHtmlSidebar::setAction('index.php?option=com_sermondistributor&view=preachers'); + JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields'); + + if ($this->canCreate) + { + JToolBarHelper::addNew('preacher.add'); + } + + // Only load if there are items + if (SermondistributorHelper::checkArray($this->items)) + { + if ($this->canEdit) + { + JToolBarHelper::editList('preacher.edit'); + } + + if ($this->canState) + { + JToolBarHelper::publishList('preachers.publish'); + JToolBarHelper::unpublishList('preachers.unpublish'); + JToolBarHelper::archiveList('preachers.archive'); + + if ($this->canDo->get('core.admin')) + { + JToolBarHelper::checkin('preachers.checkin'); + } + } + + // Add a batch button + if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState) + { + // Get the toolbar object instance + $bar = JToolBar::getInstance('toolbar'); + // set the batch button name + $title = JText::_('JTOOLBAR_BATCH'); + // Instantiate a new JLayoutFile instance and render the batch button + $layout = new JLayoutFile('joomla.toolbar.batch'); + // add the button to the page + $dhtml = $layout->render(array('title' => $title)); + $bar->appendButton('Custom', $dhtml, 'batch'); + } + + if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete)) + { + JToolbarHelper::deleteList('', 'preachers.delete', 'JTOOLBAR_EMPTY_TRASH'); + } + elseif ($this->canState && $this->canDelete) + { + JToolbarHelper::trash('preachers.trash'); + } + + if ($this->canDo->get('core.export') && $this->canDo->get('preacher.export')) + { + JToolBarHelper::custom('preachers.exportData', 'download', '', 'COM_SERMONDISTRIBUTOR_EXPORT_DATA', true); + } + } + + if ($this->canDo->get('core.import') && $this->canDo->get('preacher.import')) + { + JToolBarHelper::custom('preachers.importData', 'upload', '', 'COM_SERMONDISTRIBUTOR_IMPORT_DATA', false); + } + + // set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('preachers'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + + // add the options comp button + if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) + { + JToolBarHelper::preferences('com_sermondistributor'); + } + + if ($this->canState) + { + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_PUBLISHED'), + 'filter_published', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true) + ); + // only load if batch allowed + if ($this->canBatch) + { + JHtmlBatch_::addListSelection( + JText::_('COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_STATE'), + 'batch[published]', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true) + ); + } + } + + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_ACCESS'), + 'filter_access', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + JHtmlBatch_::addListSelection( + JText::_('COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_ACCESS'), + 'batch[access]', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text') + ); + } + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + $document = JFactory::getDocument(); + $document->setTitle(JText::_('COM_SERMONDISTRIBUTOR_PREACHERS')); + $document->addStyleSheet(JURI::root() . "administrator/components/com_sermondistributor/assets/css/preachers.css"); + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var) + { + if(strlen($var) > 50) + { + // use the helper htmlEscape method instead and shorten the string + return SermondistributorHelper::htmlEscape($var, $this->_charset, true); + } + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset); + } + + /** + * Returns an array of fields the table can be sorted by + * + * @return array Array containing the field name to sort by as the key and display text as value + */ + protected function getSortFields() + { + return array( + 'a.sorting' => JText::_('JGRID_HEADING_ORDERING'), + 'a.published' => JText::_('JSTATUS'), + 'a.name' => JText::_('COM_SERMONDISTRIBUTOR_PREACHER_NAME_LABEL'), + 'a.description' => JText::_('COM_SERMONDISTRIBUTOR_PREACHER_DESCRIPTION_LABEL'), + 'a.id' => JText::_('JGRID_HEADING_ID') + ); + } +} diff --git a/admin/views/series/submitbutton.js b/admin/views/series/submitbutton.js new file mode 100644 index 00000000..34e0bc63 --- /dev/null +++ b/admin/views/series/submitbutton.js @@ -0,0 +1,44 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage submitbutton.js + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +Joomla.submitbutton = function(task) +{ + if (task == ''){ + return false; + } else { + var isValid=true; + var action = task.split('.'); + if (action[1] != 'cancel' && action[1] != 'close'){ + var forms = $$('form.form-validate'); + for (var i=0;i<forms.length;i++){ + if (!document.formvalidator.isValid(forms[i])){ + isValid = false; + break; + } + } + } + if (isValid){ + Joomla.submitform(task); + return true; + } else { + alert(Joomla.JText._('series, some values are not acceptable.','Some values are unacceptable')); + return false; + } + } +} \ No newline at end of file diff --git a/admin/views/series/tmpl/edit.php b/admin/views/series/tmpl/edit.php new file mode 100644 index 00000000..8742831a --- /dev/null +++ b/admin/views/series/tmpl/edit.php @@ -0,0 +1,101 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage edit.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); +JHtml::_('behavior.tooltip'); +JHtml::_('behavior.formvalidation'); +JHtml::_('formbehavior.chosen', 'select'); +JHtml::_('behavior.keepalive'); +$componentParams = JComponentHelper::getParams('com_sermondistributor'); +?> + +<form action="<?php echo JRoute::_('index.php?option=com_sermondistributor&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data"> + + <?php echo JLayoutHelper::render('series.details_above', $this); ?><div class="form-horizontal"> + + <?php echo JHtml::_('bootstrap.startTabSet', 'seriesTab', array('active' => 'details')); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'seriesTab', 'details', JText::_('COM_SERMONDISTRIBUTOR_SERIES_DETAILS', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + <div class="span6"> + <?php echo JLayoutHelper::render('series.details_left', $this); ?> + </div> + <div class="span6"> + <?php echo JLayoutHelper::render('series.details_right', $this); ?> + </div> + </div> + <div class="row-fluid form-horizontal-desktop"> + <div class="span12"> + <?php echo JLayoutHelper::render('series.details_fullwidth', $this); ?> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'seriesTab', 'sermons', JText::_('COM_SERMONDISTRIBUTOR_SERIES_SERMONS', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + </div> + <div class="row-fluid form-horizontal-desktop"> + <div class="span12"> + <?php echo JLayoutHelper::render('series.sermons_fullwidth', $this); ?> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'seriesTab', 'publishing', JText::_('COM_SERMONDISTRIBUTOR_SERIES_PUBLISHING', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + <div class="span6"> + <?php echo JLayoutHelper::render('series.publishing', $this); ?> + </div> + <div class="span6"> + <?php echo JLayoutHelper::render('series.metadata', $this); ?> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php if ($this->canDo->get('core.admin')) : ?> + <?php echo JHtml::_('bootstrap.addTab', 'seriesTab', 'permissions', JText::_('COM_SERMONDISTRIBUTOR_SERIES_PERMISSION', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + <div class="span12"> + <fieldset class="adminform"> + <div class="adminformlist"> + <?php foreach ($this->form->getFieldset('accesscontrol') as $field): ?> + <div> + <?php echo $field->label; echo $field->input;?> + </div> + <div class="clearfix"></div> + <?php endforeach; ?> + </div> + </fieldset> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + <?php endif; ?> + + <?php echo JHtml::_('bootstrap.endTabSet'); ?> + + <div> + <input type="hidden" name="task" value="series.edit" /> + <?php echo JHtml::_('form.token'); ?> + </div> +</div> +</form> diff --git a/admin/views/series/tmpl/index.html b/admin/views/series/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/series/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/series/view.html.php b/admin/views/series/view.html.php new file mode 100644 index 00000000..4247d644 --- /dev/null +++ b/admin/views/series/view.html.php @@ -0,0 +1,222 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Series View class + */ +class SermondistributorViewSeries extends JViewLegacy +{ + /** + * display method of View + * @return void + */ + public function display($tpl = null) + { + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseError(500, implode('<br />', $errors)); + return false; + } + + // Assign the variables + $this->form = $this->get('Form'); + $this->item = $this->get('Item'); + $this->script = $this->get('Script'); + $this->state = $this->get('State'); + // get action permissions + $this->canDo = SermondistributorHelper::getActions('series',$this->item); + // get input + $jinput = JFactory::getApplication()->input; + $this->ref = $jinput->get('ref', 0, 'word'); + $this->refid = $jinput->get('refid', 0, 'int'); + $this->referral = ''; + if ($this->refid) + { + // return to the item that refered to this item + $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; + } + elseif($this->ref) + { + // return to the list view that refered to this item + $this->referral = '&ref='.(string)$this->ref; + } + + // [6445] Get Linked view data + $this->aoqsermons = $this->get('Aoqsermons'); + + // Set the toolbar + $this->addToolBar(); + + // Display the template + parent::display($tpl); + + // Set the document + $this->setDocument(); + } + + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JFactory::getApplication()->input->set('hidemainmenu', true); + $user = JFactory::getUser(); + $userId = $user->id; + $isNew = $this->item->id == 0; + + JToolbarHelper::title( JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_SERIES_NEW' : 'COM_SERMONDISTRIBUTOR_SERIES_EDIT'), 'pencil-2 article-add'); + // [10235] Built the actions for new and existing records. + if ($this->refid || $this->ref) + { + if ($this->canDo->get('series.create') && $isNew) + { + // [10247] We can create the record. + JToolBarHelper::save('series.save', 'JTOOLBAR_SAVE'); + } + elseif ($this->canDo->get('series.edit')) + { + // [10259] We can save the record. + JToolBarHelper::save('series.save', 'JTOOLBAR_SAVE'); + } + if ($isNew) + { + // [10264] Do not creat but cancel. + JToolBarHelper::cancel('series.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + // [10269] We can close it. + JToolBarHelper::cancel('series.cancel', 'JTOOLBAR_CLOSE'); + } + } + else + { + if ($isNew) + { + // [10277] For new records, check the create permission. + if ($this->canDo->get('series.create')) + { + JToolBarHelper::apply('series.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('series.save', 'JTOOLBAR_SAVE'); + JToolBarHelper::custom('series.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + }; + JToolBarHelper::cancel('series.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + if ($this->canDo->get('series.edit')) + { + // [10304] We can save the new record + JToolBarHelper::apply('series.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('series.save', 'JTOOLBAR_SAVE'); + // [10307] We can save this record, but check the create permission to see + // [10308] if we can return to make a new one. + if ($this->canDo->get('series.create')) + { + JToolBarHelper::custom('series.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + } + } + $canVersion = ($this->canDo->get('core.version') && $this->canDo->get('series.version')); + if ($this->state->params->get('save_history', 1) && $this->canDo->get('series.edit') && $canVersion) + { + JToolbarHelper::versions('com_sermondistributor.series', $this->item->id); + } + if ($this->canDo->get('series.create')) + { + JToolBarHelper::custom('series.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false); + } + JToolBarHelper::cancel('series.cancel', 'JTOOLBAR_CLOSE'); + } + } + JToolbarHelper::divider(); + // [10344] set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('series'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var) + { + if(strlen($var) > 30) + { + // use the helper htmlEscape method instead and shorten the string + return SermondistributorHelper::htmlEscape($var, $this->_charset, true, 30); + } + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset); + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + $isNew = ($this->item->id < 1); + $document = JFactory::getDocument(); + $document->setTitle(JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_SERIES_NEW' : 'COM_SERMONDISTRIBUTOR_SERIES_EDIT')); + $document->addStyleSheet(JURI::root() . "administrator/components/com_sermondistributor/assets/css/series.css"); + + // [6480] Add the CSS for Footable. + $document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css'); + + // [6482] Use the Metro Style + if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle) + { + $document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css'); + } + // [6487] Use the Legacy Style. + elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle) + { + $document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css'); + } + + // [6492] Add the JavaScript for Footable + $document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js'); + $document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js'); + $document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js'); + $document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.paginate.js'); + + $footable = "jQuery(document).ready(function() { jQuery(function () { jQuery('.footable').footable(); }); jQuery('.nav-tabs').on('click', 'li', function() { setTimeout(tableFix, 10); }); }); function tableFix() { jQuery('.footable').trigger('footable_resize'); }"; + $document->addScriptDeclaration($footable); + + $document->addScript(JURI::root() . $this->script); + $document->addScript(JURI::root() . "administrator/components/com_sermondistributor/views/series/submitbutton.js"); + JText::script('view not acceptable. Error'); + } +} diff --git a/admin/views/series_list/index.html b/admin/views/series_list/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/series_list/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/series_list/tmpl/default.php b/admin/views/series_list/tmpl/default.php new file mode 100644 index 00000000..ae75ff6d --- /dev/null +++ b/admin/views/series_list/tmpl/default.php @@ -0,0 +1,94 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// load tooltip behavior +JHtml::_('behavior.tooltip'); +JHtml::_('behavior.multiselect'); +JHtml::_('dropdown.init'); +JHtml::_('formbehavior.chosen', 'select'); + +if ($this->saveOrder) +{ + $saveOrderingUrl = 'index.php?option=com_sermondistributor&task=series_list.saveOrderAjax&tmpl=component'; + JHtml::_('sortablelist.sortable', 'seriesList', 'adminForm', strtolower($this->listDirn), $saveOrderingUrl); +} + +?> +<script type="text/javascript"> + Joomla.orderTable = function() + { + table = document.getElementById("sortTable"); + direction = document.getElementById("directionTable"); + order = table.options[table.selectedIndex].value; + if (order != '<?php echo $this->listOrder; ?>') + { + dirn = 'asc'; + } + else + { + dirn = direction.options[direction.selectedIndex].value; + } + Joomla.tableOrdering(order, dirn, ''); + } +</script> +<form action="<?php echo JRoute::_('index.php?option=com_sermondistributor&view=series_list'); ?>" method="post" name="adminForm" id="adminForm"> +<?php if(!empty( $this->sidebar)): ?> + <div id="j-sidebar-container" class="span2"> + <?php echo $this->sidebar; ?> + </div> + <div id="j-main-container" class="span10"> +<?php else : ?> + <div id="j-main-container"> +<?php endif; ?> +<?php if (empty($this->items)): ?> + <?php echo $this->loadTemplate('toolbar');?> + <div class="alert alert-no-items"> + <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> + </div> +<?php else : ?> + <?php echo $this->loadTemplate('toolbar');?> + <table class="table table-striped" id="seriesList"> + <thead><?php echo $this->loadTemplate('head');?></thead> + <tfoot><?php echo $this->loadTemplate('foot');?></tfoot> + <tbody><?php echo $this->loadTemplate('body');?></tbody> + </table> + <?php //Load the batch processing form. ?> + <?php if ($this->canCreate && $this->canEdit) : ?> + <?php echo JHtml::_( + 'bootstrap.renderModal', + 'collapseModal', + array( + 'title' => JText::_('COM_SERMONDISTRIBUTOR_SERIES_LIST_BATCH_OPTIONS'), + 'footer' => $this->loadTemplate('batch_footer') + ), + $this->loadTemplate('batch_body') + ); ?> + <?php endif; ?> + <input type="hidden" name="filter_order" value="" /> + <input type="hidden" name="filter_order_Dir" value="" /> + <input type="hidden" name="boxchecked" value="0" /> + </div> +<?php endif; ?> +<input type="hidden" name="task" value="" /> +<?php echo JHtml::_('form.token'); ?> +</form> \ No newline at end of file diff --git a/admin/views/series_list/tmpl/default_batch_body.php b/admin/views/series_list/tmpl/default_batch_body.php new file mode 100644 index 00000000..4211f1e4 --- /dev/null +++ b/admin/views/series_list/tmpl/default_batch_body.php @@ -0,0 +1,27 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_batch_body.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + +<p><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES_LIST_BATCH_TIP'); ?></p> +<?php echo $this->batchDisplay; ?> \ No newline at end of file diff --git a/admin/views/series_list/tmpl/default_batch_footer.php b/admin/views/series_list/tmpl/default_batch_footer.php new file mode 100644 index 00000000..3aab3fcd --- /dev/null +++ b/admin/views/series_list/tmpl/default_batch_footer.php @@ -0,0 +1,32 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_batch_footer.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<!-- clear the batch values if cancel --> +<button class="btn" type="button" onclick="###BATCH_ONCLICK_CANCEL_SCRIPT###" data-dismiss="modal"> + <?php echo JText::_('JCANCEL'); ?> +</button> +<!-- post the batch values if process --> +<button class="btn btn-success" type="submit" onclick="Joomla.submitbutton('series.batch');"> + <?php echo JText::_('JGLOBAL_BATCH_PROCESS'); ?> +</button> \ No newline at end of file diff --git a/admin/views/series_list/tmpl/default_body.php b/admin/views/series_list/tmpl/default_body.php new file mode 100644 index 00000000..a2776ee5 --- /dev/null +++ b/admin/views/series_list/tmpl/default_body.php @@ -0,0 +1,106 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_body.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +$edit = "index.php?option=com_sermondistributor&view=series_list&task=series.edit"; + +?> +<?php foreach ($this->items as $i => $item): ?> + <?php + $canCheckin = $this->user->authorise('core.manage', 'com_checkin') || $item->checked_out == $this->user->id || $item->checked_out == 0; + $userChkOut = JFactory::getUser($item->checked_out); + $canDo = SermondistributorHelper::getActions('series',$item,'series_list'); + ?> + <tr class="row<?php echo $i % 2; ?>"> + <td class="order nowrap center hidden-phone"> + <?php if ($canDo->get('series.edit.state')): ?> + <?php + if ($this->saveOrder) + { + $iconClass = ' inactive'; + } + else + { + $iconClass = ' inactive tip-top" hasTooltip" title="' . JHtml::tooltipText('JORDERINGDISABLED'); + } + ?> + <span class="sortable-handler<?php echo $iconClass; ?>"> + <i class="icon-menu"></i> + </span> + <?php if ($this->saveOrder) : ?> + <input type="text" style="display:none" name="order[]" size="5" + value="<?php echo $item->ordering; ?>" class="width-20 text-area-order " /> + <?php endif; ?> + <?php else: ?> + &#8942; + <?php endif; ?> + </td> + <td class="nowrap center"> + <?php if ($canDo->get('series.edit')): ?> + <?php if ($item->checked_out) : ?> + <?php if ($canCheckin) : ?> + <?php echo JHtml::_('grid.id', $i, $item->id); ?> + <?php else: ?> + &#9633; + <?php endif; ?> + <?php else: ?> + <?php echo JHtml::_('grid.id', $i, $item->id); ?> + <?php endif; ?> + <?php else: ?> + &#9633; + <?php endif; ?> + </td> + <td class="nowrap"> + <?php if ($canDo->get('series.edit')): ?> + <div class="name"> + <a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a> + <?php if ($item->checked_out): ?> + <?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'series_list.', $canCheckin); ?> + <?php endif; ?> + </div> + <?php else: ?> + <div class="name"><?php echo $this->escape($item->name); ?></div> + <?php endif; ?> + </td> + <td class="hidden-phone"> + <?php echo $this->escape($item->description); ?> + </td> + <td class="center"> + <?php if ($canDo->get('series.edit.state')) : ?> + <?php if ($item->checked_out) : ?> + <?php if ($canCheckin) : ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'series_list.', true, 'cb'); ?> + <?php else: ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'series_list.', false, 'cb'); ?> + <?php endif; ?> + <?php else: ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'series_list.', true, 'cb'); ?> + <?php endif; ?> + <?php else: ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'series_list.', false, 'cb'); ?> + <?php endif; ?> + </td> + <td class="nowrap center hidden-phone"> + <?php echo $item->id; ?> + </td> + </tr> +<?php endforeach; ?> \ No newline at end of file diff --git a/admin/views/series_list/tmpl/default_foot.php b/admin/views/series_list/tmpl/default_foot.php new file mode 100644 index 00000000..04bce959 --- /dev/null +++ b/admin/views/series_list/tmpl/default_foot.php @@ -0,0 +1,27 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_foot.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<tr> + <td colspan="6"><?php echo $this->pagination->getListFooter(); ?></td> +</tr> \ No newline at end of file diff --git a/admin/views/series_list/tmpl/default_head.php b/admin/views/series_list/tmpl/default_head.php new file mode 100644 index 00000000..7bc7a5d5 --- /dev/null +++ b/admin/views/series_list/tmpl/default_head.php @@ -0,0 +1,59 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_head.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<tr> + <?php if ($this->canEdit&& $this->canState): ?> + <th width="1%" class="nowrap center hidden-phone"> + <?php echo JHtml::_('grid.sort', '<i class="icon-menu-2"></i>', 'ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING'); ?> + </th> + <th width="20" class="nowrap center"> + <?php echo JHtml::_('grid.checkall'); ?> + </th> + <?php else: ?> + <th width="20" class="nowrap center hidden-phone"> + &#9662; + </th> + <th width="20" class="nowrap center"> + &#9632; + </th> + <?php endif; ?> + <th class="nowrap" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_SERIES_NAME_LABEL', 'name', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap hidden-phone" > + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES_DESCRIPTION_LABEL'); ?> + </th> + <?php if ($this->canState): ?> + <th width="10" class="nowrap center" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_SERIES_STATUS', 'published', $this->listDirn, $this->listOrder); ?> + </th> + <?php else: ?> + <th width="10" class="nowrap center" > + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES_STATUS'); ?> + </th> + <?php endif; ?> + <th width="5" class="nowrap center hidden-phone" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_SERIES_ID', 'id', $this->listDirn, $this->listOrder); ?> + </th> +</tr> \ No newline at end of file diff --git a/admin/views/series_list/tmpl/default_toolbar.php b/admin/views/series_list/tmpl/default_toolbar.php new file mode 100644 index 00000000..798f80a4 --- /dev/null +++ b/admin/views/series_list/tmpl/default_toolbar.php @@ -0,0 +1,54 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_toolbar.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<div id="filter-bar" class="btn-toolbar"> + <div class="filter-search btn-group pull-left"> + <label for="filter_search" class="element-invisible"><?php echo JText::_('Search');?></label> + <input type="text" name="filter_search" id="filter_search" placeholder="<?php echo JText::_('JSEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" class="hasTooltip" title="<?php echo JHtml::tooltipText('Search Series_list'); ?>" /> + </div> + <div class="btn-group pull-left"> + <button type="submit" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>"><i class="icon-search"></i></button> + <button type="button" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_CLEAR'); ?>" onclick="document.id('filter_search').value='';this.form.submit();"><i class="icon-remove"></i></button> + </div> + <div class="btn-group pull-right hidden-phone"> + <label for="limit" class="element-invisible"><?php echo JText::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC');?></label> + <?php echo $this->pagination->getLimitBox(); ?> + </div> + <div class="btn-group pull-right hidden-phone"> + <label for="directionTable" class="element-invisible"><?php echo JText::_('JFIELD_ORDERING_DESC');?></label> + <select name="directionTable" id="directionTable" class="input-medium" onchange="Joomla.orderTable()"> + <option value=""><?php echo JText::_('JFIELD_ORDERING_DESC');?></option> + <option value="asc" <?php if ($this->listDirn == 'asc') echo 'selected="selected"'; ?>><?php echo JText::_('JGLOBAL_ORDER_ASCENDING');?></option> + <option value="desc" <?php if ($this->listDirn == 'desc') echo 'selected="selected"'; ?>><?php echo JText::_('JGLOBAL_ORDER_DESCENDING');?></option> + </select> + </div> + <div class="btn-group pull-right"> + <label for="sortTable" class="element-invisible"><?php echo JText::_('JGLOBAL_SORT_BY');?></label> + <select name="sortTable" id="sortTable" class="input-medium" onchange="Joomla.orderTable()"> + <option value=""><?php echo JText::_('JGLOBAL_SORT_BY');?></option> + <?php echo JHtml::_('select.options', $this->getSortFields(), 'value', 'text', $this->listOrder);?> + </select> + </div> + </div> +<div class="clearfix"> </div> \ No newline at end of file diff --git a/admin/views/series_list/tmpl/index.html b/admin/views/series_list/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/series_list/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/series_list/view.html.php b/admin/views/series_list/view.html.php new file mode 100644 index 00000000..fb785208 --- /dev/null +++ b/admin/views/series_list/view.html.php @@ -0,0 +1,245 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Sermondistributor View class for the Series_list + */ +class SermondistributorViewSeries_list extends JViewLegacy +{ + /** + * Series_list view display method + * @return void + */ + function display($tpl = null) + { + if ($this->getLayout() !== 'modal') + { + // Include helper submenu + SermondistributorHelper::addSubmenu('series_list'); + } + + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseError(500, implode('<br />', $errors)); + return false; + } + + // Assign data to the view + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + $this->state = $this->get('State'); + $this->user = JFactory::getUser(); + $this->listOrder = $this->escape($this->state->get('list.ordering')); + $this->listDirn = $this->escape($this->state->get('list.direction')); + $this->saveOrder = $this->listOrder == 'ordering'; + // get global action permissions + $this->canDo = SermondistributorHelper::getActions('series'); + $this->canEdit = $this->canDo->get('series.edit'); + $this->canState = $this->canDo->get('series.edit.state'); + $this->canCreate = $this->canDo->get('series.create'); + $this->canDelete = $this->canDo->get('series.delete'); + $this->canBatch = $this->canDo->get('core.batch'); + + // We don't need toolbar in the modal window. + if ($this->getLayout() !== 'modal') + { + $this->addToolbar(); + $this->sidebar = JHtmlSidebar::render(); + // load the batch html + if ($this->canCreate && $this->canEdit && $this->canState) + { + $this->batchDisplay = JHtmlBatch_::render(); + } + } + + // Display the template + parent::display($tpl); + + // Set the document + $this->setDocument(); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JToolBarHelper::title(JText::_('COM_SERMONDISTRIBUTOR_SERIES_LIST'), 'folder-open'); + JHtmlSidebar::setAction('index.php?option=com_sermondistributor&view=series_list'); + JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields'); + + if ($this->canCreate) + { + JToolBarHelper::addNew('series.add'); + } + + // Only load if there are items + if (SermondistributorHelper::checkArray($this->items)) + { + if ($this->canEdit) + { + JToolBarHelper::editList('series.edit'); + } + + if ($this->canState) + { + JToolBarHelper::publishList('series_list.publish'); + JToolBarHelper::unpublishList('series_list.unpublish'); + JToolBarHelper::archiveList('series_list.archive'); + + if ($this->canDo->get('core.admin')) + { + JToolBarHelper::checkin('series_list.checkin'); + } + } + + // Add a batch button + if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState) + { + // Get the toolbar object instance + $bar = JToolBar::getInstance('toolbar'); + // set the batch button name + $title = JText::_('JTOOLBAR_BATCH'); + // Instantiate a new JLayoutFile instance and render the batch button + $layout = new JLayoutFile('joomla.toolbar.batch'); + // add the button to the page + $dhtml = $layout->render(array('title' => $title)); + $bar->appendButton('Custom', $dhtml, 'batch'); + } + + if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete)) + { + JToolbarHelper::deleteList('', 'series_list.delete', 'JTOOLBAR_EMPTY_TRASH'); + } + elseif ($this->canState && $this->canDelete) + { + JToolbarHelper::trash('series_list.trash'); + } + + if ($this->canDo->get('core.export') && $this->canDo->get('series.export')) + { + JToolBarHelper::custom('series_list.exportData', 'download', '', 'COM_SERMONDISTRIBUTOR_EXPORT_DATA', true); + } + } + + if ($this->canDo->get('core.import') && $this->canDo->get('series.import')) + { + JToolBarHelper::custom('series_list.importData', 'upload', '', 'COM_SERMONDISTRIBUTOR_IMPORT_DATA', false); + } + + // set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('series_list'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + + // add the options comp button + if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) + { + JToolBarHelper::preferences('com_sermondistributor'); + } + + if ($this->canState) + { + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_PUBLISHED'), + 'filter_published', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true) + ); + // only load if batch allowed + if ($this->canBatch) + { + JHtmlBatch_::addListSelection( + JText::_('COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_STATE'), + 'batch[published]', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true) + ); + } + } + + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_ACCESS'), + 'filter_access', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + JHtmlBatch_::addListSelection( + JText::_('COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_ACCESS'), + 'batch[access]', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text') + ); + } + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + $document = JFactory::getDocument(); + $document->setTitle(JText::_('COM_SERMONDISTRIBUTOR_SERIES_LIST')); + $document->addStyleSheet(JURI::root() . "administrator/components/com_sermondistributor/assets/css/series_list.css"); + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var) + { + if(strlen($var) > 50) + { + // use the helper htmlEscape method instead and shorten the string + return SermondistributorHelper::htmlEscape($var, $this->_charset, true); + } + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset); + } + + /** + * Returns an array of fields the table can be sorted by + * + * @return array Array containing the field name to sort by as the key and display text as value + */ + protected function getSortFields() + { + return array( + 'a.sorting' => JText::_('JGRID_HEADING_ORDERING'), + 'a.published' => JText::_('JSTATUS'), + 'a.name' => JText::_('COM_SERMONDISTRIBUTOR_SERIES_NAME_LABEL'), + 'a.id' => JText::_('JGRID_HEADING_ID') + ); + } +} diff --git a/admin/views/sermon/submitbutton.js b/admin/views/sermon/submitbutton.js new file mode 100644 index 00000000..cdc6641d --- /dev/null +++ b/admin/views/sermon/submitbutton.js @@ -0,0 +1,44 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage submitbutton.js + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +Joomla.submitbutton = function(task) +{ + if (task == ''){ + return false; + } else { + var isValid=true; + var action = task.split('.'); + if (action[1] != 'cancel' && action[1] != 'close'){ + var forms = $$('form.form-validate'); + for (var i=0;i<forms.length;i++){ + if (!document.formvalidator.isValid(forms[i])){ + isValid = false; + break; + } + } + } + if (isValid){ + Joomla.submitform(task); + return true; + } else { + alert(Joomla.JText._('sermon, some values are not acceptable.','Some values are unacceptable')); + return false; + } + } +} \ No newline at end of file diff --git a/admin/views/sermon/tmpl/edit.php b/admin/views/sermon/tmpl/edit.php new file mode 100644 index 00000000..cd330683 --- /dev/null +++ b/admin/views/sermon/tmpl/edit.php @@ -0,0 +1,329 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage edit.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); +JHtml::_('behavior.tooltip'); +JHtml::_('behavior.formvalidation'); +JHtml::_('formbehavior.chosen', 'select'); +JHtml::_('behavior.keepalive'); +$componentParams = JComponentHelper::getParams('com_sermondistributor'); +?> + +<form action="<?php echo JRoute::_('index.php?option=com_sermondistributor&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data"> + + <?php echo JLayoutHelper::render('sermon.details_above', $this); ?><div class="form-horizontal"> + + <?php echo JHtml::_('bootstrap.startTabSet', 'sermonTab', array('active' => 'details')); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'sermonTab', 'details', JText::_('COM_SERMONDISTRIBUTOR_SERMON_DETAILS', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + <div class="span6"> + <?php echo JLayoutHelper::render('sermon.details_left', $this); ?> + </div> + <div class="span6"> + <?php echo JLayoutHelper::render('sermon.details_right', $this); ?> + </div> + </div> + <div class="row-fluid form-horizontal-desktop"> + <div class="span12"> + <?php echo JLayoutHelper::render('sermon.details_fullwidth', $this); ?> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'sermonTab', 'files', JText::_('COM_SERMONDISTRIBUTOR_SERMON_FILES', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + </div> + <div class="row-fluid form-horizontal-desktop"> + <div class="span12"> + <?php echo JLayoutHelper::render('sermon.files_fullwidth', $this); ?> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'sermonTab', 'stastics', JText::_('COM_SERMONDISTRIBUTOR_SERMON_STASTICS', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + </div> + <div class="row-fluid form-horizontal-desktop"> + <div class="span12"> + <?php echo JLayoutHelper::render('sermon.stastics_fullwidth', $this); ?> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'sermonTab', 'publishing', JText::_('COM_SERMONDISTRIBUTOR_SERMON_PUBLISHING', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + <div class="span6"> + <?php echo JLayoutHelper::render('sermon.publishing', $this); ?> + </div> + <div class="span6"> + <?php echo JLayoutHelper::render('sermon.metadata', $this); ?> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php if ($this->canDo->get('core.admin')) : ?> + <?php echo JHtml::_('bootstrap.addTab', 'sermonTab', 'permissions', JText::_('COM_SERMONDISTRIBUTOR_SERMON_PERMISSION', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + <div class="span12"> + <fieldset class="adminform"> + <div class="adminformlist"> + <?php foreach ($this->form->getFieldset('accesscontrol') as $field): ?> + <div> + <?php echo $field->label; echo $field->input;?> + </div> + <div class="clearfix"></div> + <?php endforeach; ?> + </div> + </fieldset> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + <?php endif; ?> + + <?php echo JHtml::_('bootstrap.endTabSet'); ?> + + <div> + <input type="hidden" name="task" value="sermon.edit" /> + <?php echo JHtml::_('form.token'); ?> + </div> +</div> + +<div class="clearfix"></div> +<?php echo JLayoutHelper::render('sermon.details_under', $this); ?> +</form> + +<script type="text/javascript"> + +// #jform_source listeners for source_FvQYyEF function +jQuery('#jform_source').on('keyup',function() +{ + var source_FvQYyEF = jQuery("#jform_source").val(); + FvQYyEF(source_FvQYyEF); + +}); +jQuery('#adminForm').on('change', '#jform_source',function (e) +{ + e.preventDefault(); + var source_FvQYyEF = jQuery("#jform_source").val(); + FvQYyEF(source_FvQYyEF); + +}); + +// #jform_source listeners for source_TLlcJUt function +jQuery('#jform_source').on('keyup',function() +{ + var source_TLlcJUt = jQuery("#jform_source").val(); + var build_TLlcJUt = jQuery("#jform_build input[type='radio']:checked").val(); + TLlcJUt(source_TLlcJUt,build_TLlcJUt); + +}); +jQuery('#adminForm').on('change', '#jform_source',function (e) +{ + e.preventDefault(); + var source_TLlcJUt = jQuery("#jform_source").val(); + var build_TLlcJUt = jQuery("#jform_build input[type='radio']:checked").val(); + TLlcJUt(source_TLlcJUt,build_TLlcJUt); + +}); + +// #jform_build listeners for build_TLlcJUt function +jQuery('#jform_build').on('keyup',function() +{ + var source_TLlcJUt = jQuery("#jform_source").val(); + var build_TLlcJUt = jQuery("#jform_build input[type='radio']:checked").val(); + TLlcJUt(source_TLlcJUt,build_TLlcJUt); + +}); +jQuery('#adminForm').on('change', '#jform_build',function (e) +{ + e.preventDefault(); + var source_TLlcJUt = jQuery("#jform_source").val(); + var build_TLlcJUt = jQuery("#jform_build input[type='radio']:checked").val(); + TLlcJUt(source_TLlcJUt,build_TLlcJUt); + +}); + +// #jform_source listeners for source_kOrUAMy function +jQuery('#jform_source').on('keyup',function() +{ + var source_kOrUAMy = jQuery("#jform_source").val(); + var build_kOrUAMy = jQuery("#jform_build input[type='radio']:checked").val(); + kOrUAMy(source_kOrUAMy,build_kOrUAMy); + +}); +jQuery('#adminForm').on('change', '#jform_source',function (e) +{ + e.preventDefault(); + var source_kOrUAMy = jQuery("#jform_source").val(); + var build_kOrUAMy = jQuery("#jform_build input[type='radio']:checked").val(); + kOrUAMy(source_kOrUAMy,build_kOrUAMy); + +}); + +// #jform_build listeners for build_kOrUAMy function +jQuery('#jform_build').on('keyup',function() +{ + var source_kOrUAMy = jQuery("#jform_source").val(); + var build_kOrUAMy = jQuery("#jform_build input[type='radio']:checked").val(); + kOrUAMy(source_kOrUAMy,build_kOrUAMy); + +}); +jQuery('#adminForm').on('change', '#jform_build',function (e) +{ + e.preventDefault(); + var source_kOrUAMy = jQuery("#jform_source").val(); + var build_kOrUAMy = jQuery("#jform_build input[type='radio']:checked").val(); + kOrUAMy(source_kOrUAMy,build_kOrUAMy); + +}); + +// #jform_build listeners for build_YIZCNWs function +jQuery('#jform_build').on('keyup',function() +{ + var build_YIZCNWs = jQuery("#jform_build input[type='radio']:checked").val(); + var source_YIZCNWs = jQuery("#jform_source").val(); + YIZCNWs(build_YIZCNWs,source_YIZCNWs); + +}); +jQuery('#adminForm').on('change', '#jform_build',function (e) +{ + e.preventDefault(); + var build_YIZCNWs = jQuery("#jform_build input[type='radio']:checked").val(); + var source_YIZCNWs = jQuery("#jform_source").val(); + YIZCNWs(build_YIZCNWs,source_YIZCNWs); + +}); + +// #jform_source listeners for source_YIZCNWs function +jQuery('#jform_source').on('keyup',function() +{ + var build_YIZCNWs = jQuery("#jform_build input[type='radio']:checked").val(); + var source_YIZCNWs = jQuery("#jform_source").val(); + YIZCNWs(build_YIZCNWs,source_YIZCNWs); + +}); +jQuery('#adminForm').on('change', '#jform_source',function (e) +{ + e.preventDefault(); + var build_YIZCNWs = jQuery("#jform_build input[type='radio']:checked").val(); + var source_YIZCNWs = jQuery("#jform_source").val(); + YIZCNWs(build_YIZCNWs,source_YIZCNWs); + +}); + +// #jform_source listeners for source_KqzedcN function +jQuery('#jform_source').on('keyup',function() +{ + var source_KqzedcN = jQuery("#jform_source").val(); + KqzedcN(source_KqzedcN); + +}); +jQuery('#adminForm').on('change', '#jform_source',function (e) +{ + e.preventDefault(); + var source_KqzedcN = jQuery("#jform_source").val(); + KqzedcN(source_KqzedcN); + +}); + +// #jform_source listeners for source_XhHkZbW function +jQuery('#jform_source').on('keyup',function() +{ + var source_XhHkZbW = jQuery("#jform_source").val(); + XhHkZbW(source_XhHkZbW); + +}); +jQuery('#adminForm').on('change', '#jform_source',function (e) +{ + e.preventDefault(); + var source_XhHkZbW = jQuery("#jform_source").val(); + XhHkZbW(source_XhHkZbW); + +}); + +// #jform_link_type listeners for link_type_VZPUBFP function +jQuery('#jform_link_type').on('keyup',function() +{ + var link_type_VZPUBFP = jQuery("#jform_link_type input[type='radio']:checked").val(); + VZPUBFP(link_type_VZPUBFP); + +}); +jQuery('#adminForm').on('change', '#jform_link_type',function (e) +{ + e.preventDefault(); + var link_type_VZPUBFP = jQuery("#jform_link_type input[type='radio']:checked").val(); + VZPUBFP(link_type_VZPUBFP); + +}); + +// #jform_link_type listeners for link_type_UiutQRQ function +jQuery('#jform_link_type').on('keyup',function() +{ + var link_type_UiutQRQ = jQuery("#jform_link_type input[type='radio']:checked").val(); + UiutQRQ(link_type_UiutQRQ); + +}); +jQuery('#adminForm').on('change', '#jform_link_type',function (e) +{ + e.preventDefault(); + var link_type_UiutQRQ = jQuery("#jform_link_type input[type='radio']:checked").val(); + UiutQRQ(link_type_UiutQRQ); + +}); + + + +<?php + // setup the return url + $uri = (string) JUri::getInstance(); + $return = urlencode(base64_encode($uri)); + $optionsURL = 'index.php?option=com_config&view=component&component=com_sermondistributor&return='.$return; +?> + +jQuery('.options-link').on('click',function (e) +{ + e.preventDefault(); + location.href="<?php echo $optionsURL; ?>"; +}); + +// load the auto sermons if set or notice if none is found +var auto_sermons = jQuery('#jform_auto_sermons').val(); +var htmlDropNote = '<h1><?php echo JText::_('No Files Linked Yet'); ?></h1>'; +htmlDropNote += '<div class="alert alert-warning"><?php echo JText::_('Always better to add the files to Dropbox and let the system create the sermon for you. Please read instructions below carefully.'); ?></div>'; +if (auto_sermons != 1 && auto_sermons.length > 0) +{ + htmlDropNote = '<h1><?php echo JText::_('The Files Linked from Dropbox'); ?></h1>'; + auto_sermons = jQuery.parseJSON(auto_sermons); + htmlDropNote += '<div class="alert alert-success"><ul>'; + jQuery.each(auto_sermons, function(filename,fileKey) { + htmlDropNote += '<li><b><?php echo JText::_('Download Name'); ?>:</b> '; + htmlDropNote += filename; + htmlDropNote += '<br /><b><?php echo JText::_('Dropbox Relation'); ?>:</b> '; + htmlDropNote += fileKey.replace("VDM_pLeK_h0uEr/", ""); + htmlDropNote += '</li>'; + }); + htmlDropNote += '</ul></div>'; +} +jQuery('.note_auto_dropbox').closest('.control-group').prepend(htmlDropNote); +</script> diff --git a/admin/views/sermon/tmpl/index.html b/admin/views/sermon/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/sermon/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/sermon/view.html.php b/admin/views/sermon/view.html.php new file mode 100644 index 00000000..f889fba9 --- /dev/null +++ b/admin/views/sermon/view.html.php @@ -0,0 +1,222 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Sermon View class + */ +class SermondistributorViewSermon extends JViewLegacy +{ + /** + * display method of View + * @return void + */ + public function display($tpl = null) + { + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseError(500, implode('<br />', $errors)); + return false; + } + + // Assign the variables + $this->form = $this->get('Form'); + $this->item = $this->get('Item'); + $this->script = $this->get('Script'); + $this->state = $this->get('State'); + // get action permissions + $this->canDo = SermondistributorHelper::getActions('sermon',$this->item); + // get input + $jinput = JFactory::getApplication()->input; + $this->ref = $jinput->get('ref', 0, 'word'); + $this->refid = $jinput->get('refid', 0, 'int'); + $this->referral = ''; + if ($this->refid) + { + // return to the item that refered to this item + $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; + } + elseif($this->ref) + { + // return to the list view that refered to this item + $this->referral = '&ref='.(string)$this->ref; + } + + // [6445] Get Linked view data + $this->tststastics = $this->get('Tststastics'); + + // Set the toolbar + $this->addToolBar(); + + // Display the template + parent::display($tpl); + + // Set the document + $this->setDocument(); + } + + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JFactory::getApplication()->input->set('hidemainmenu', true); + $user = JFactory::getUser(); + $userId = $user->id; + $isNew = $this->item->id == 0; + + JToolbarHelper::title( JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_SERMON_NEW' : 'COM_SERMONDISTRIBUTOR_SERMON_EDIT'), 'pencil-2 article-add'); + // [10235] Built the actions for new and existing records. + if ($this->refid || $this->ref) + { + if ($this->canDo->get('sermon.create') && $isNew) + { + // [10247] We can create the record. + JToolBarHelper::save('sermon.save', 'JTOOLBAR_SAVE'); + } + elseif ($this->canDo->get('sermon.edit')) + { + // [10259] We can save the record. + JToolBarHelper::save('sermon.save', 'JTOOLBAR_SAVE'); + } + if ($isNew) + { + // [10264] Do not creat but cancel. + JToolBarHelper::cancel('sermon.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + // [10269] We can close it. + JToolBarHelper::cancel('sermon.cancel', 'JTOOLBAR_CLOSE'); + } + } + else + { + if ($isNew) + { + // [10277] For new records, check the create permission. + if ($this->canDo->get('sermon.create')) + { + JToolBarHelper::apply('sermon.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('sermon.save', 'JTOOLBAR_SAVE'); + JToolBarHelper::custom('sermon.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + }; + JToolBarHelper::cancel('sermon.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + if ($this->canDo->get('sermon.edit')) + { + // [10304] We can save the new record + JToolBarHelper::apply('sermon.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('sermon.save', 'JTOOLBAR_SAVE'); + // [10307] We can save this record, but check the create permission to see + // [10308] if we can return to make a new one. + if ($this->canDo->get('sermon.create')) + { + JToolBarHelper::custom('sermon.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + } + } + $canVersion = ($this->canDo->get('core.version') && $this->canDo->get('sermon.version')); + if ($this->state->params->get('save_history', 1) && $this->canDo->get('sermon.edit') && $canVersion) + { + JToolbarHelper::versions('com_sermondistributor.sermon', $this->item->id); + } + if ($this->canDo->get('sermon.create')) + { + JToolBarHelper::custom('sermon.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false); + } + JToolBarHelper::cancel('sermon.cancel', 'JTOOLBAR_CLOSE'); + } + } + JToolbarHelper::divider(); + // [10344] set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('sermon'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var) + { + if(strlen($var) > 30) + { + // use the helper htmlEscape method instead and shorten the string + return SermondistributorHelper::htmlEscape($var, $this->_charset, true, 30); + } + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset); + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + $isNew = ($this->item->id < 1); + $document = JFactory::getDocument(); + $document->setTitle(JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_SERMON_NEW' : 'COM_SERMONDISTRIBUTOR_SERMON_EDIT')); + $document->addStyleSheet(JURI::root() . "administrator/components/com_sermondistributor/assets/css/sermon.css"); + + // [6480] Add the CSS for Footable. + $document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css'); + + // [6482] Use the Metro Style + if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle) + { + $document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css'); + } + // [6487] Use the Legacy Style. + elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle) + { + $document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css'); + } + + // [6492] Add the JavaScript for Footable + $document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js'); + $document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js'); + $document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js'); + $document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.paginate.js'); + + $footable = "jQuery(document).ready(function() { jQuery(function () { jQuery('.footable').footable(); }); jQuery('.nav-tabs').on('click', 'li', function() { setTimeout(tableFix, 10); }); }); function tableFix() { jQuery('.footable').trigger('footable_resize'); }"; + $document->addScriptDeclaration($footable); + + $document->addScript(JURI::root() . $this->script); + $document->addScript(JURI::root() . "administrator/components/com_sermondistributor/views/sermon/submitbutton.js"); + JText::script('view not acceptable. Error'); + } +} diff --git a/admin/views/sermondistributor/index.html b/admin/views/sermondistributor/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/sermondistributor/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/sermondistributor/tmpl/default.php b/admin/views/sermondistributor/tmpl/default.php new file mode 100644 index 00000000..ee367215 --- /dev/null +++ b/admin/views/sermondistributor/tmpl/default.php @@ -0,0 +1,42 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<div id="j-main-container" class="span9"> +<?php echo JHtml::_('bootstrap.startAccordion', 'dashboard_left', array('active' => 'main')); ?> + +<?php echo JHtml::_('bootstrap.addSlide', 'dashboard_left', 'cPanel', 'main'); ?> +<?php echo $this->loadTemplate('main');?> +<?php echo JHtml::_('bootstrap.endSlide'); ?> + +<?php echo JHtml::_('bootstrap.endAccordion'); ?> +</div> +<div id="j-main-container" class="span3"> +<?php echo JHtml::_('bootstrap.startAccordion', 'dashboard_right', array('active' => 'vdm')); ?> + +<?php echo JHtml::_('bootstrap.addSlide', 'dashboard_right', 'Vast Development Method', 'vdm'); ?> +<?php echo $this->loadTemplate('vdm');?> +<?php echo JHtml::_('bootstrap.endSlide'); ?> + +<?php echo JHtml::_('bootstrap.endAccordion'); ?> +</div> \ No newline at end of file diff --git a/admin/views/sermondistributor/tmpl/default_main.php b/admin/views/sermondistributor/tmpl/default_main.php new file mode 100644 index 00000000..66b261c8 --- /dev/null +++ b/admin/views/sermondistributor/tmpl/default_main.php @@ -0,0 +1,37 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_main.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<?php if(is_array($this->icons['main'])) :?> + <?php foreach($this->icons['main'] as $icon): ?> + <div class="dashboard-wraper"> + <div class="dashboard-content"> + <a class="icon hasTip" href="<?php echo $icon->url; ?>"> + <img alt="<?php echo $icon->alt; ?>" src="components/com_sermondistributor/assets/images/icons/<?php echo $icon->image; ?>"> + <span class="dashboard-title"><?php echo JText::_($icon->name); ?></span> + </a> + </div> + </div> + <?php endforeach; ?> +<div class="clearfix"></div> +<?php endif; ?> \ No newline at end of file diff --git a/admin/views/sermondistributor/tmpl/default_vdm.php b/admin/views/sermondistributor/tmpl/default_vdm.php new file mode 100644 index 00000000..90a64c40 --- /dev/null +++ b/admin/views/sermondistributor/tmpl/default_vdm.php @@ -0,0 +1,50 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_vdm.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +$manifest = SermondistributorHelper::manifest(); +JHtml::_('bootstrap.loadCss'); + +?> +<img alt="<?php echo JText::_('COM_SERMONDISTRIBUTOR'); ?>" src="components/com_sermondistributor/assets/images/component-300.jpg"> +<ul class="list-striped"> +<li><b><?php echo JText::_('COM_SERMONDISTRIBUTOR_VERSION'); ?>:</b> <?php echo $manifest->version; ?></li> +<li><b><?php echo JText::_('COM_SERMONDISTRIBUTOR_DATE'); ?>:</b> <?php echo $manifest->creationDate; ?></li> +<li><b><?php echo JText::_('COM_SERMONDISTRIBUTOR_AUTHOR'); ?>:</b> <a href="mailto:<?php echo $manifest->authorEmail; ?>"><?php echo $manifest->author; ?></a></li> +<li><b><?php echo JText::_('COM_SERMONDISTRIBUTOR_WEBSITE'); ?>:</b> <a href="<?php echo $manifest->authorUrl; ?>" target="_blank"><?php echo $manifest->authorUrl; ?></a></li> +<li><b><?php echo JText::_('COM_SERMONDISTRIBUTOR_LICENSE'); ?>:</b> <?php echo $manifest->license; ?></li> +<li><b><?php echo $manifest->copyright; ?></b></li> +</ul> +<div class="clearfix"></div> +<?php if(SermondistributorHelper::checkArray($this->contributors)): ?> +<?php if(count($this->contributors) > 1): ?> +<h3><?php echo JText::_('COM_SERMONDISTRIBUTOR_CONTRIBUTORS'); ?></h3> +<?php else: ?> +<h3><?php echo JText::_('COM_SERMONDISTRIBUTOR_CONTRIBUTOR'); ?></h3> +<?php endif; ?> +<ul class="list-striped"> + <?php foreach($this->contributors as $contributor): ?> + <li><b><?php echo $contributor['title']; ?>:</b> <?php echo $contributor['name']; ?></li> + <?php endforeach; ?> +</ul> +<div class="clearfix"></div> +<?php endif; ?> \ No newline at end of file diff --git a/admin/views/sermondistributor/tmpl/index.html b/admin/views/sermondistributor/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/sermondistributor/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/sermondistributor/view.html.php b/admin/views/sermondistributor/view.html.php new file mode 100644 index 00000000..4446a28a --- /dev/null +++ b/admin/views/sermondistributor/view.html.php @@ -0,0 +1,93 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Sermondistributor View class + */ +class SermondistributorViewSermondistributor extends JViewLegacy +{ + /** + * View display method + * @return void + */ + function display($tpl = null) + { + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseError(500, implode('<br />', $errors)); + return false; + }; + // Assign data to the view + $this->icons = $this->get('Icons'); + $this->contributors = SermondistributorHelper::getContributors(); + + // Set the toolbar + $this->addToolBar(); + + // Display the template + parent::display($tpl); + + // Set the document + $this->setDocument(); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + $canDo = SermondistributorHelper::getActions('sermondistributor'); + JToolBarHelper::title(JText::_('COM_SERMONDISTRIBUTOR_DASHBOARD'), 'grid-2'); + + // set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('sermondistributor'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + + if ($canDo->get('core.admin') || $canDo->get('core.options')) + { + JToolBarHelper::preferences('com_sermondistributor'); + } + } + + /** + * Method to set up the document properties + * + * + * @return void + */ + protected function setDocument() + { + $document = JFactory::getDocument(); + + $document->addStyleSheet(JURI::root() . "administrator/components/com_sermondistributor/assets/css/dashboard.css"); + + $document->setTitle(JText::_('COM_SERMONDISTRIBUTOR_DASHBOARD')); + } +} diff --git a/admin/views/sermons/index.html b/admin/views/sermons/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/sermons/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/sermons/tmpl/default.php b/admin/views/sermons/tmpl/default.php new file mode 100644 index 00000000..60906f96 --- /dev/null +++ b/admin/views/sermons/tmpl/default.php @@ -0,0 +1,94 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// load tooltip behavior +JHtml::_('behavior.tooltip'); +JHtml::_('behavior.multiselect'); +JHtml::_('dropdown.init'); +JHtml::_('formbehavior.chosen', 'select'); + +if ($this->saveOrder) +{ + $saveOrderingUrl = 'index.php?option=com_sermondistributor&task=sermons.saveOrderAjax&tmpl=component'; + JHtml::_('sortablelist.sortable', 'sermonList', 'adminForm', strtolower($this->listDirn), $saveOrderingUrl); +} + +?> +<script type="text/javascript"> + Joomla.orderTable = function() + { + table = document.getElementById("sortTable"); + direction = document.getElementById("directionTable"); + order = table.options[table.selectedIndex].value; + if (order != '<?php echo $this->listOrder; ?>') + { + dirn = 'asc'; + } + else + { + dirn = direction.options[direction.selectedIndex].value; + } + Joomla.tableOrdering(order, dirn, ''); + } +</script> +<form action="<?php echo JRoute::_('index.php?option=com_sermondistributor&view=sermons'); ?>" method="post" name="adminForm" id="adminForm"> +<?php if(!empty( $this->sidebar)): ?> + <div id="j-sidebar-container" class="span2"> + <?php echo $this->sidebar; ?> + </div> + <div id="j-main-container" class="span10"> +<?php else : ?> + <div id="j-main-container"> +<?php endif; ?> +<?php if (empty($this->items)): ?> + <?php echo $this->loadTemplate('toolbar');?> + <div class="alert alert-no-items"> + <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> + </div> +<?php else : ?> + <?php echo $this->loadTemplate('toolbar');?> + <table class="table table-striped" id="sermonList"> + <thead><?php echo $this->loadTemplate('head');?></thead> + <tfoot><?php echo $this->loadTemplate('foot');?></tfoot> + <tbody><?php echo $this->loadTemplate('body');?></tbody> + </table> + <?php //Load the batch processing form. ?> + <?php if ($this->canCreate && $this->canEdit) : ?> + <?php echo JHtml::_( + 'bootstrap.renderModal', + 'collapseModal', + array( + 'title' => JText::_('COM_SERMONDISTRIBUTOR_SERMONS_BATCH_OPTIONS'), + 'footer' => $this->loadTemplate('batch_footer') + ), + $this->loadTemplate('batch_body') + ); ?> + <?php endif; ?> + <input type="hidden" name="filter_order" value="" /> + <input type="hidden" name="filter_order_Dir" value="" /> + <input type="hidden" name="boxchecked" value="0" /> + </div> +<?php endif; ?> +<input type="hidden" name="task" value="" /> +<?php echo JHtml::_('form.token'); ?> +</form> \ No newline at end of file diff --git a/admin/views/sermons/tmpl/default_batch_body.php b/admin/views/sermons/tmpl/default_batch_body.php new file mode 100644 index 00000000..8ece601c --- /dev/null +++ b/admin/views/sermons/tmpl/default_batch_body.php @@ -0,0 +1,27 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_batch_body.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + +<p><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMONS_BATCH_TIP'); ?></p> +<?php echo $this->batchDisplay; ?> \ No newline at end of file diff --git a/admin/views/sermons/tmpl/default_batch_footer.php b/admin/views/sermons/tmpl/default_batch_footer.php new file mode 100644 index 00000000..7817bd60 --- /dev/null +++ b/admin/views/sermons/tmpl/default_batch_footer.php @@ -0,0 +1,32 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_batch_footer.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<!-- clear the batch values if cancel --> +<button class="btn" type="button" onclick="###BATCH_ONCLICK_CANCEL_SCRIPT###" data-dismiss="modal"> + <?php echo JText::_('JCANCEL'); ?> +</button> +<!-- post the batch values if process --> +<button class="btn btn-success" type="submit" onclick="Joomla.submitbutton('sermon.batch');"> + <?php echo JText::_('JGLOBAL_BATCH_PROCESS'); ?> +</button> \ No newline at end of file diff --git a/admin/views/sermons/tmpl/default_body.php b/admin/views/sermons/tmpl/default_body.php new file mode 100644 index 00000000..44796d69 --- /dev/null +++ b/admin/views/sermons/tmpl/default_body.php @@ -0,0 +1,137 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_body.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +$edit = "index.php?option=com_sermondistributor&view=sermons&task=sermon.edit"; + +?> +<?php foreach ($this->items as $i => $item): ?> + <?php + $canCheckin = $this->user->authorise('core.manage', 'com_checkin') || $item->checked_out == $this->user->id || $item->checked_out == 0; + $userChkOut = JFactory::getUser($item->checked_out); + $canDo = SermondistributorHelper::getActions('sermon',$item,'sermons'); + ?> + <tr class="row<?php echo $i % 2; ?>"> + <td class="order nowrap center hidden-phone"> + <?php if ($canDo->get('sermon.edit.state')): ?> + <?php + if ($this->saveOrder) + { + $iconClass = ' inactive'; + } + else + { + $iconClass = ' inactive tip-top" hasTooltip" title="' . JHtml::tooltipText('JORDERINGDISABLED'); + } + ?> + <span class="sortable-handler<?php echo $iconClass; ?>"> + <i class="icon-menu"></i> + </span> + <?php if ($this->saveOrder) : ?> + <input type="text" style="display:none" name="order[]" size="5" + value="<?php echo $item->ordering; ?>" class="width-20 text-area-order " /> + <?php endif; ?> + <?php else: ?> + &#8942; + <?php endif; ?> + </td> + <td class="nowrap center"> + <?php if ($canDo->get('sermon.edit')): ?> + <?php if ($item->checked_out) : ?> + <?php if ($canCheckin) : ?> + <?php echo JHtml::_('grid.id', $i, $item->id); ?> + <?php else: ?> + &#9633; + <?php endif; ?> + <?php else: ?> + <?php echo JHtml::_('grid.id', $i, $item->id); ?> + <?php endif; ?> + <?php else: ?> + &#9633; + <?php endif; ?> + </td> + <td class="nowrap"> + <?php if ($canDo->get('sermon.edit')): ?> + <div class="name"> + <a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a> + <?php if ($item->checked_out): ?> + <?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'sermons.', $canCheckin); ?> + <?php endif; ?> + </div> + <?php else: ?> + <div class="name"><?php echo $this->escape($item->name); ?></div> + <?php endif; ?> + </td> + <td class="nowrap"> + <?php if ($this->user->authorise('preacher.edit', 'com_sermondistributor.preacher.' . (int)$item->preacher)): ?> + <div class="name"> + <a href="index.php?option=com_sermondistributor&view=preachers&task=preacher.edit&id=<?php echo $item->preacher; ?>&ref=sermons"><?php echo $this->escape($item->preacher_name); ?></a> + </div> + <?php else: ?> + <div class="name"><?php echo $this->escape($item->preacher_name); ?></div> + <?php endif; ?> + </td> + <td class="nowrap"> + <?php if ($this->user->authorise('series.edit', 'com_sermondistributor.series.' . (int)$item->series)): ?> + <div class="name"> + <a href="index.php?option=com_sermondistributor&view=all_series&task=series.edit&id=<?php echo $item->series; ?>&ref=sermons"><?php echo $this->escape($item->series_name); ?></a> + </div> + <?php else: ?> + <div class="name"><?php echo $this->escape($item->series_name); ?></div> + <?php endif; ?> + </td> + <td class="hidden-phone"> + <?php echo $this->escape($item->short_description); ?> + </td> + <td class="nowrap"> + <?php if ($this->user->authorise('core.edit', 'com_sermondistributor.sermons.category.' . (int)$item->catid)): ?> + <a href="index.php?option=com_categories&task=category.edit&id=<?php echo (int)$item->catid; ?>&extension=com_sermondistributor.sermons"><?php echo $this->escape($item->category_title); ?></a> + <?php else: ?> + <?php echo $this->escape($item->category_title); ?> + <?php endif; ?> + </td> + <td class="hidden-phone"> + <?php echo JText::_($item->link_type); ?> + </td> + <td class="hidden-phone"> + <?php echo JText::_($item->source); ?> + </td> + <td class="center"> + <?php if ($canDo->get('sermon.edit.state')) : ?> + <?php if ($item->checked_out) : ?> + <?php if ($canCheckin) : ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'sermons.', true, 'cb'); ?> + <?php else: ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'sermons.', false, 'cb'); ?> + <?php endif; ?> + <?php else: ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'sermons.', true, 'cb'); ?> + <?php endif; ?> + <?php else: ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'sermons.', false, 'cb'); ?> + <?php endif; ?> + </td> + <td class="nowrap center hidden-phone"> + <?php echo $item->id; ?> + </td> + </tr> +<?php endforeach; ?> \ No newline at end of file diff --git a/admin/views/sermons/tmpl/default_foot.php b/admin/views/sermons/tmpl/default_foot.php new file mode 100644 index 00000000..f0bc6d97 --- /dev/null +++ b/admin/views/sermons/tmpl/default_foot.php @@ -0,0 +1,27 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_foot.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<tr> + <td colspan="11"><?php echo $this->pagination->getListFooter(); ?></td> +</tr> \ No newline at end of file diff --git a/admin/views/sermons/tmpl/default_head.php b/admin/views/sermons/tmpl/default_head.php new file mode 100644 index 00000000..f0c6bdf7 --- /dev/null +++ b/admin/views/sermons/tmpl/default_head.php @@ -0,0 +1,74 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_head.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<tr> + <?php if ($this->canEdit&& $this->canState): ?> + <th width="1%" class="nowrap center hidden-phone"> + <?php echo JHtml::_('grid.sort', '<i class="icon-menu-2"></i>', 'ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING'); ?> + </th> + <th width="20" class="nowrap center"> + <?php echo JHtml::_('grid.checkall'); ?> + </th> + <?php else: ?> + <th width="20" class="nowrap center hidden-phone"> + &#9662; + </th> + <th width="20" class="nowrap center"> + &#9632; + </th> + <?php endif; ?> + <th class="nowrap" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_SERMON_NAME_LABEL', 'name', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL', 'preacher_name', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL', 'series_name', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap hidden-phone" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_LABEL', 'short_description', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_SERMON_SERMON_CATEGORY', 'catid', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap hidden-phone" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_LABEL', 'link_type', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap hidden-phone" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_SERMON_SOURCE_LABEL', 'source', $this->listDirn, $this->listOrder); ?> + </th> + <?php if ($this->canState): ?> + <th width="10" class="nowrap center" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_SERMON_STATUS', 'published', $this->listDirn, $this->listOrder); ?> + </th> + <?php else: ?> + <th width="10" class="nowrap center" > + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_STATUS'); ?> + </th> + <?php endif; ?> + <th width="5" class="nowrap center hidden-phone" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_SERMON_ID', 'id', $this->listDirn, $this->listOrder); ?> + </th> +</tr> \ No newline at end of file diff --git a/admin/views/sermons/tmpl/default_toolbar.php b/admin/views/sermons/tmpl/default_toolbar.php new file mode 100644 index 00000000..fc565758 --- /dev/null +++ b/admin/views/sermons/tmpl/default_toolbar.php @@ -0,0 +1,54 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_toolbar.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<div id="filter-bar" class="btn-toolbar"> + <div class="filter-search btn-group pull-left"> + <label for="filter_search" class="element-invisible"><?php echo JText::_('Search');?></label> + <input type="text" name="filter_search" id="filter_search" placeholder="<?php echo JText::_('JSEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" class="hasTooltip" title="<?php echo JHtml::tooltipText('Search Sermons'); ?>" /> + </div> + <div class="btn-group pull-left"> + <button type="submit" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>"><i class="icon-search"></i></button> + <button type="button" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_CLEAR'); ?>" onclick="document.id('filter_search').value='';this.form.submit();"><i class="icon-remove"></i></button> + </div> + <div class="btn-group pull-right hidden-phone"> + <label for="limit" class="element-invisible"><?php echo JText::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC');?></label> + <?php echo $this->pagination->getLimitBox(); ?> + </div> + <div class="btn-group pull-right hidden-phone"> + <label for="directionTable" class="element-invisible"><?php echo JText::_('JFIELD_ORDERING_DESC');?></label> + <select name="directionTable" id="directionTable" class="input-medium" onchange="Joomla.orderTable()"> + <option value=""><?php echo JText::_('JFIELD_ORDERING_DESC');?></option> + <option value="asc" <?php if ($this->listDirn == 'asc') echo 'selected="selected"'; ?>><?php echo JText::_('JGLOBAL_ORDER_ASCENDING');?></option> + <option value="desc" <?php if ($this->listDirn == 'desc') echo 'selected="selected"'; ?>><?php echo JText::_('JGLOBAL_ORDER_DESCENDING');?></option> + </select> + </div> + <div class="btn-group pull-right"> + <label for="sortTable" class="element-invisible"><?php echo JText::_('JGLOBAL_SORT_BY');?></label> + <select name="sortTable" id="sortTable" class="input-medium" onchange="Joomla.orderTable()"> + <option value=""><?php echo JText::_('JGLOBAL_SORT_BY');?></option> + <?php echo JHtml::_('select.options', $this->getSortFields(), 'value', 'text', $this->listOrder);?> + </select> + </div> + </div> +<div class="clearfix"> </div> \ No newline at end of file diff --git a/admin/views/sermons/tmpl/index.html b/admin/views/sermons/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/sermons/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/sermons/view.html.php b/admin/views/sermons/view.html.php new file mode 100644 index 00000000..790d256b --- /dev/null +++ b/admin/views/sermons/view.html.php @@ -0,0 +1,428 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Sermondistributor View class for the Sermons + */ +class SermondistributorViewSermons extends JViewLegacy +{ + /** + * Sermons view display method + * @return void + */ + function display($tpl = null) + { + if ($this->getLayout() !== 'modal') + { + // Include helper submenu + SermondistributorHelper::addSubmenu('sermons'); + } + + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseError(500, implode('<br />', $errors)); + return false; + } + + // Assign data to the view + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + $this->state = $this->get('State'); + $this->user = JFactory::getUser(); + $this->listOrder = $this->escape($this->state->get('list.ordering')); + $this->listDirn = $this->escape($this->state->get('list.direction')); + $this->saveOrder = $this->listOrder == 'ordering'; + // get global action permissions + $this->canDo = SermondistributorHelper::getActions('sermon'); + $this->canEdit = $this->canDo->get('sermon.edit'); + $this->canState = $this->canDo->get('sermon.edit.state'); + $this->canCreate = $this->canDo->get('sermon.create'); + $this->canDelete = $this->canDo->get('sermon.delete'); + $this->canBatch = $this->canDo->get('core.batch'); + + // We don't need toolbar in the modal window. + if ($this->getLayout() !== 'modal') + { + $this->addToolbar(); + $this->sidebar = JHtmlSidebar::render(); + // load the batch html + if ($this->canCreate && $this->canEdit && $this->canState) + { + $this->batchDisplay = JHtmlBatch_::render(); + } + } + + // Display the template + parent::display($tpl); + + // Set the document + $this->setDocument(); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JToolBarHelper::title(JText::_('COM_SERMONDISTRIBUTOR_SERMONS'), 'book'); + JHtmlSidebar::setAction('index.php?option=com_sermondistributor&view=sermons'); + JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields'); + + if ($this->canCreate) + { + JToolBarHelper::addNew('sermon.add'); + } + + // Only load if there are items + if (SermondistributorHelper::checkArray($this->items)) + { + if ($this->canEdit) + { + JToolBarHelper::editList('sermon.edit'); + } + + if ($this->canState) + { + JToolBarHelper::publishList('sermons.publish'); + JToolBarHelper::unpublishList('sermons.unpublish'); + JToolBarHelper::archiveList('sermons.archive'); + + if ($this->canDo->get('core.admin')) + { + JToolBarHelper::checkin('sermons.checkin'); + } + } + + // Add a batch button + if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState) + { + // Get the toolbar object instance + $bar = JToolBar::getInstance('toolbar'); + // set the batch button name + $title = JText::_('JTOOLBAR_BATCH'); + // Instantiate a new JLayoutFile instance and render the batch button + $layout = new JLayoutFile('joomla.toolbar.batch'); + // add the button to the page + $dhtml = $layout->render(array('title' => $title)); + $bar->appendButton('Custom', $dhtml, 'batch'); + } + + if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete)) + { + JToolbarHelper::deleteList('', 'sermons.delete', 'JTOOLBAR_EMPTY_TRASH'); + } + elseif ($this->canState && $this->canDelete) + { + JToolbarHelper::trash('sermons.trash'); + } + + if ($this->canDo->get('core.export') && $this->canDo->get('sermon.export')) + { + JToolBarHelper::custom('sermons.exportData', 'download', '', 'COM_SERMONDISTRIBUTOR_EXPORT_DATA', true); + } + } + + if ($this->canDo->get('core.import') && $this->canDo->get('sermon.import')) + { + JToolBarHelper::custom('sermons.importData', 'upload', '', 'COM_SERMONDISTRIBUTOR_IMPORT_DATA', false); + } + + // set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('sermons'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + + // add the options comp button + if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) + { + JToolBarHelper::preferences('com_sermondistributor'); + } + + if ($this->canState) + { + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_PUBLISHED'), + 'filter_published', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true) + ); + // only load if batch allowed + if ($this->canBatch) + { + JHtmlBatch_::addListSelection( + JText::_('COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_STATE'), + 'batch[published]', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true) + ); + } + } + + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_ACCESS'), + 'filter_access', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + JHtmlBatch_::addListSelection( + JText::_('COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_ACCESS'), + 'batch[access]', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text') + ); + } + + // [9158] Category Filter. + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_CATEGORY'), + 'filter_category_id', + JHtml::_('select.options', JHtml::_('category.options', 'com_sermondistributor.sermons'), 'value', 'text', $this->state->get('filter.category_id')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + // [9168] Category Batch selection. + JHtmlBatch_::addListSelection( + JText::_('COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_CATEGORY'), + 'batch[category]', + JHtml::_('select.options', JHtml::_('category.options', 'com_sermondistributor.sermons'), 'value', 'text') + ); + } + + // [9073] Set Preacher Name Selection + $this->preacherNameOptions = JFormHelper::loadFieldType('Preachers')->getOptions(); + if ($this->preacherNameOptions) + { + // [9077] Preacher Name Filter + JHtmlSidebar::addFilter( + '- Select '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL').' -', + 'filter_preacher', + JHtml::_('select.options', $this->preacherNameOptions, 'value', 'text', $this->state->get('filter.preacher')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + // [9086] Preacher Name Batch Selection + JHtmlBatch_::addListSelection( + '- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL').' -', + 'batch[preacher]', + JHtml::_('select.options', $this->preacherNameOptions, 'value', 'text') + ); + } + } + + // [9073] Set Series Name Selection + $this->seriesNameOptions = JFormHelper::loadFieldType('Series')->getOptions(); + if ($this->seriesNameOptions) + { + // [9077] Series Name Filter + JHtmlSidebar::addFilter( + '- Select '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL').' -', + 'filter_series', + JHtml::_('select.options', $this->seriesNameOptions, 'value', 'text', $this->state->get('filter.series')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + // [9086] Series Name Batch Selection + JHtmlBatch_::addListSelection( + '- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL').' -', + 'batch[series]', + JHtml::_('select.options', $this->seriesNameOptions, 'value', 'text') + ); + } + } + + // [9107] Set Link Type Selection + $this->link_typeOptions = $this->getTheLink_typeSelections(); + if ($this->link_typeOptions) + { + // [9111] Link Type Filter + JHtmlSidebar::addFilter( + '- Select '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_LABEL').' -', + 'filter_link_type', + JHtml::_('select.options', $this->link_typeOptions, 'value', 'text', $this->state->get('filter.link_type')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + // [9120] Link Type Batch Selection + JHtmlBatch_::addListSelection( + '- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_LABEL').' -', + 'batch[link_type]', + JHtml::_('select.options', $this->link_typeOptions, 'value', 'text') + ); + } + } + + // [9107] Set Source Selection + $this->sourceOptions = $this->getTheSourceSelections(); + if ($this->sourceOptions) + { + // [9111] Source Filter + JHtmlSidebar::addFilter( + '- Select '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_SOURCE_LABEL').' -', + 'filter_source', + JHtml::_('select.options', $this->sourceOptions, 'value', 'text', $this->state->get('filter.source')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + // [9120] Source Batch Selection + JHtmlBatch_::addListSelection( + '- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_SOURCE_LABEL').' -', + 'batch[source]', + JHtml::_('select.options', $this->sourceOptions, 'value', 'text') + ); + } + } + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + $document = JFactory::getDocument(); + $document->setTitle(JText::_('COM_SERMONDISTRIBUTOR_SERMONS')); + $document->addStyleSheet(JURI::root() . "administrator/components/com_sermondistributor/assets/css/sermons.css"); + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var) + { + if(strlen($var) > 50) + { + // use the helper htmlEscape method instead and shorten the string + return SermondistributorHelper::htmlEscape($var, $this->_charset, true); + } + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset); + } + + /** + * Returns an array of fields the table can be sorted by + * + * @return array Array containing the field name to sort by as the key and display text as value + */ + protected function getSortFields() + { + return array( + 'a.sorting' => JText::_('JGRID_HEADING_ORDERING'), + 'a.published' => JText::_('JSTATUS'), + 'a.name' => JText::_('COM_SERMONDISTRIBUTOR_SERMON_NAME_LABEL'), + 'g.name' => JText::_('COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL'), + 'h.name' => JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL'), + 'a.short_description' => JText::_('COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_LABEL'), + 'c.category_title' => JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERMON_CATEGORY'), + 'a.link_type' => JText::_('COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_LABEL'), + 'a.source' => JText::_('COM_SERMONDISTRIBUTOR_SERMON_SOURCE_LABEL'), + 'a.id' => JText::_('JGRID_HEADING_ID') + ); + } + + protected function getTheLink_typeSelections() + { + // [8983] Get a db connection. + $db = JFactory::getDbo(); + + // [8985] Create a new query object. + $query = $db->getQuery(true); + + // [8987] Select the text. + $query->select($db->quoteName('link_type')); + $query->from($db->quoteName('#__sermondistributor_sermon')); + $query->order($db->quoteName('link_type') . ' ASC'); + + // [8991] Reset the query using our newly populated query object. + $db->setQuery($query); + + $results = $db->loadColumn(); + + if ($results) + { + // [8999] get model + $model = $this->getModel(); + $results = array_unique($results); + $filter = array(); + foreach ($results as $link_type) + { + // [9010] Translate the link_type selection + $text = $model->selectionTranslation($link_type,'link_type'); + // [9012] Now add the link_type and its text to the options array + $filter[] = JHtml::_('select.option', $link_type, JText::_($text)); + } + return $filter; + } + return false; + } + + protected function getTheSourceSelections() + { + // [8983] Get a db connection. + $db = JFactory::getDbo(); + + // [8985] Create a new query object. + $query = $db->getQuery(true); + + // [8987] Select the text. + $query->select($db->quoteName('source')); + $query->from($db->quoteName('#__sermondistributor_sermon')); + $query->order($db->quoteName('source') . ' ASC'); + + // [8991] Reset the query using our newly populated query object. + $db->setQuery($query); + + $results = $db->loadColumn(); + + if ($results) + { + // [8999] get model + $model = $this->getModel(); + $results = array_unique($results); + $filter = array(); + foreach ($results as $source) + { + // [9010] Translate the source selection + $text = $model->selectionTranslation($source,'source'); + // [9012] Now add the source and its text to the options array + $filter[] = JHtml::_('select.option', $source, JText::_($text)); + } + return $filter; + } + return false; + } +} diff --git a/admin/views/statistic/submitbutton.js b/admin/views/statistic/submitbutton.js new file mode 100644 index 00000000..510ec8d4 --- /dev/null +++ b/admin/views/statistic/submitbutton.js @@ -0,0 +1,44 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage submitbutton.js + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +Joomla.submitbutton = function(task) +{ + if (task == ''){ + return false; + } else { + var isValid=true; + var action = task.split('.'); + if (action[1] != 'cancel' && action[1] != 'close'){ + var forms = $$('form.form-validate'); + for (var i=0;i<forms.length;i++){ + if (!document.formvalidator.isValid(forms[i])){ + isValid = false; + break; + } + } + } + if (isValid){ + Joomla.submitform(task); + return true; + } else { + alert(Joomla.JText._('statistic, some values are not acceptable.','Some values are unacceptable')); + return false; + } + } +} \ No newline at end of file diff --git a/admin/views/statistic/tmpl/edit.php b/admin/views/statistic/tmpl/edit.php new file mode 100644 index 00000000..e442c917 --- /dev/null +++ b/admin/views/statistic/tmpl/edit.php @@ -0,0 +1,86 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage edit.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); +JHtml::_('behavior.tooltip'); +JHtml::_('behavior.formvalidation'); +JHtml::_('formbehavior.chosen', 'select'); +JHtml::_('behavior.keepalive'); +$componentParams = JComponentHelper::getParams('com_sermondistributor'); +?> + +<form action="<?php echo JRoute::_('index.php?option=com_sermondistributor&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data"> + + <?php echo JLayoutHelper::render('statistic.details_above', $this); ?><div class="form-horizontal"> + + <?php echo JHtml::_('bootstrap.startTabSet', 'statisticTab', array('active' => 'details')); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'statisticTab', 'details', JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_DETAILS', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + <div class="span6"> + <?php echo JLayoutHelper::render('statistic.details_left', $this); ?> + </div> + <div class="span6"> + <?php echo JLayoutHelper::render('statistic.details_right', $this); ?> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php echo JHtml::_('bootstrap.addTab', 'statisticTab', 'publishing', JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_PUBLISHING', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + <div class="span6"> + <?php echo JLayoutHelper::render('statistic.publishing', $this); ?> + </div> + <div class="span6"> + <?php echo JLayoutHelper::render('statistic.metadata', $this); ?> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + + <?php if ($this->canDo->get('core.admin')) : ?> + <?php echo JHtml::_('bootstrap.addTab', 'statisticTab', 'permissions', JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_PERMISSION', true)); ?> + <div class="row-fluid form-horizontal-desktop"> + <div class="span12"> + <fieldset class="adminform"> + <div class="adminformlist"> + <?php foreach ($this->form->getFieldset('accesscontrol') as $field): ?> + <div> + <?php echo $field->label; echo $field->input;?> + </div> + <div class="clearfix"></div> + <?php endforeach; ?> + </div> + </fieldset> + </div> + </div> + <?php echo JHtml::_('bootstrap.endTab'); ?> + <?php endif; ?> + + <?php echo JHtml::_('bootstrap.endTabSet'); ?> + + <div> + <input type="hidden" name="task" value="statistic.edit" /> + <?php echo JHtml::_('form.token'); ?> + </div> +</div> +</form> diff --git a/admin/views/statistic/tmpl/index.html b/admin/views/statistic/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/statistic/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/statistic/view.html.php b/admin/views/statistic/view.html.php new file mode 100644 index 00000000..a227808d --- /dev/null +++ b/admin/views/statistic/view.html.php @@ -0,0 +1,195 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Statistic View class + */ +class SermondistributorViewStatistic extends JViewLegacy +{ + /** + * display method of View + * @return void + */ + public function display($tpl = null) + { + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseError(500, implode('<br />', $errors)); + return false; + } + + // Assign the variables + $this->form = $this->get('Form'); + $this->item = $this->get('Item'); + $this->script = $this->get('Script'); + $this->state = $this->get('State'); + // get action permissions + $this->canDo = SermondistributorHelper::getActions('statistic',$this->item); + // get input + $jinput = JFactory::getApplication()->input; + $this->ref = $jinput->get('ref', 0, 'word'); + $this->refid = $jinput->get('refid', 0, 'int'); + $this->referral = ''; + if ($this->refid) + { + // return to the item that refered to this item + $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; + } + elseif($this->ref) + { + // return to the list view that refered to this item + $this->referral = '&ref='.(string)$this->ref; + } + + // Set the toolbar + $this->addToolBar(); + + // Display the template + parent::display($tpl); + + // Set the document + $this->setDocument(); + } + + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JFactory::getApplication()->input->set('hidemainmenu', true); + $user = JFactory::getUser(); + $userId = $user->id; + $isNew = $this->item->id == 0; + + JToolbarHelper::title( JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_STATISTIC_NEW' : 'COM_SERMONDISTRIBUTOR_STATISTIC_EDIT'), 'pencil-2 article-add'); + // [10235] Built the actions for new and existing records. + if ($this->refid || $this->ref) + { + if ($this->canDo->get('statistic.create') && $isNew) + { + // [10247] We can create the record. + JToolBarHelper::save('statistic.save', 'JTOOLBAR_SAVE'); + } + elseif ($this->canDo->get('statistic.edit')) + { + // [10259] We can save the record. + JToolBarHelper::save('statistic.save', 'JTOOLBAR_SAVE'); + } + if ($isNew) + { + // [10264] Do not creat but cancel. + JToolBarHelper::cancel('statistic.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + // [10269] We can close it. + JToolBarHelper::cancel('statistic.cancel', 'JTOOLBAR_CLOSE'); + } + } + else + { + if ($isNew) + { + // [10277] For new records, check the create permission. + if ($this->canDo->get('statistic.create')) + { + JToolBarHelper::apply('statistic.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('statistic.save', 'JTOOLBAR_SAVE'); + JToolBarHelper::custom('statistic.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + }; + JToolBarHelper::cancel('statistic.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + if ($this->canDo->get('statistic.edit')) + { + // [10304] We can save the new record + JToolBarHelper::apply('statistic.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('statistic.save', 'JTOOLBAR_SAVE'); + // [10307] We can save this record, but check the create permission to see + // [10308] if we can return to make a new one. + if ($this->canDo->get('statistic.create')) + { + JToolBarHelper::custom('statistic.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + } + } + $canVersion = ($this->canDo->get('core.version') && $this->canDo->get('statistic.version')); + if ($this->state->params->get('save_history', 1) && $this->canDo->get('statistic.edit') && $canVersion) + { + JToolbarHelper::versions('com_sermondistributor.statistic', $this->item->id); + } + if ($this->canDo->get('statistic.create')) + { + JToolBarHelper::custom('statistic.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false); + } + JToolBarHelper::cancel('statistic.cancel', 'JTOOLBAR_CLOSE'); + } + } + JToolbarHelper::divider(); + // [10344] set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('statistic'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var) + { + if(strlen($var) > 30) + { + // use the helper htmlEscape method instead and shorten the string + return SermondistributorHelper::htmlEscape($var, $this->_charset, true, 30); + } + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset); + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + $isNew = ($this->item->id < 1); + $document = JFactory::getDocument(); + $document->setTitle(JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_STATISTIC_NEW' : 'COM_SERMONDISTRIBUTOR_STATISTIC_EDIT')); + $document->addStyleSheet(JURI::root() . "administrator/components/com_sermondistributor/assets/css/statistic.css"); + $document->addScript(JURI::root() . $this->script); + $document->addScript(JURI::root() . "administrator/components/com_sermondistributor/views/statistic/submitbutton.js"); + JText::script('view not acceptable. Error'); + } +} diff --git a/admin/views/statistics/index.html b/admin/views/statistics/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/statistics/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/statistics/tmpl/default.php b/admin/views/statistics/tmpl/default.php new file mode 100644 index 00000000..24d97030 --- /dev/null +++ b/admin/views/statistics/tmpl/default.php @@ -0,0 +1,94 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// load tooltip behavior +JHtml::_('behavior.tooltip'); +JHtml::_('behavior.multiselect'); +JHtml::_('dropdown.init'); +JHtml::_('formbehavior.chosen', 'select'); + +if ($this->saveOrder) +{ + $saveOrderingUrl = 'index.php?option=com_sermondistributor&task=statistics.saveOrderAjax&tmpl=component'; + JHtml::_('sortablelist.sortable', 'statisticList', 'adminForm', strtolower($this->listDirn), $saveOrderingUrl); +} + +?> +<script type="text/javascript"> + Joomla.orderTable = function() + { + table = document.getElementById("sortTable"); + direction = document.getElementById("directionTable"); + order = table.options[table.selectedIndex].value; + if (order != '<?php echo $this->listOrder; ?>') + { + dirn = 'asc'; + } + else + { + dirn = direction.options[direction.selectedIndex].value; + } + Joomla.tableOrdering(order, dirn, ''); + } +</script> +<form action="<?php echo JRoute::_('index.php?option=com_sermondistributor&view=statistics'); ?>" method="post" name="adminForm" id="adminForm"> +<?php if(!empty( $this->sidebar)): ?> + <div id="j-sidebar-container" class="span2"> + <?php echo $this->sidebar; ?> + </div> + <div id="j-main-container" class="span10"> +<?php else : ?> + <div id="j-main-container"> +<?php endif; ?> +<?php if (empty($this->items)): ?> + <?php echo $this->loadTemplate('toolbar');?> + <div class="alert alert-no-items"> + <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> + </div> +<?php else : ?> + <?php echo $this->loadTemplate('toolbar');?> + <table class="table table-striped" id="statisticList"> + <thead><?php echo $this->loadTemplate('head');?></thead> + <tfoot><?php echo $this->loadTemplate('foot');?></tfoot> + <tbody><?php echo $this->loadTemplate('body');?></tbody> + </table> + <?php //Load the batch processing form. ?> + <?php if ($this->canCreate && $this->canEdit) : ?> + <?php echo JHtml::_( + 'bootstrap.renderModal', + 'collapseModal', + array( + 'title' => JText::_('COM_SERMONDISTRIBUTOR_STATISTICS_BATCH_OPTIONS'), + 'footer' => $this->loadTemplate('batch_footer') + ), + $this->loadTemplate('batch_body') + ); ?> + <?php endif; ?> + <input type="hidden" name="filter_order" value="" /> + <input type="hidden" name="filter_order_Dir" value="" /> + <input type="hidden" name="boxchecked" value="0" /> + </div> +<?php endif; ?> +<input type="hidden" name="task" value="" /> +<?php echo JHtml::_('form.token'); ?> +</form> \ No newline at end of file diff --git a/admin/views/statistics/tmpl/default_batch_body.php b/admin/views/statistics/tmpl/default_batch_body.php new file mode 100644 index 00000000..b8dbb872 --- /dev/null +++ b/admin/views/statistics/tmpl/default_batch_body.php @@ -0,0 +1,27 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_batch_body.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + +<p><?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTICS_BATCH_TIP'); ?></p> +<?php echo $this->batchDisplay; ?> \ No newline at end of file diff --git a/admin/views/statistics/tmpl/default_batch_footer.php b/admin/views/statistics/tmpl/default_batch_footer.php new file mode 100644 index 00000000..05b4468e --- /dev/null +++ b/admin/views/statistics/tmpl/default_batch_footer.php @@ -0,0 +1,32 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_batch_footer.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<!-- clear the batch values if cancel --> +<button class="btn" type="button" onclick="###BATCH_ONCLICK_CANCEL_SCRIPT###" data-dismiss="modal"> + <?php echo JText::_('JCANCEL'); ?> +</button> +<!-- post the batch values if process --> +<button class="btn btn-success" type="submit" onclick="Joomla.submitbutton('statistic.batch');"> + <?php echo JText::_('JGLOBAL_BATCH_PROCESS'); ?> +</button> \ No newline at end of file diff --git a/admin/views/statistics/tmpl/default_body.php b/admin/views/statistics/tmpl/default_body.php new file mode 100644 index 00000000..1b3ea1aa --- /dev/null +++ b/admin/views/statistics/tmpl/default_body.php @@ -0,0 +1,133 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_body.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +$edit = "index.php?option=com_sermondistributor&view=statistics&task=statistic.edit"; + +?> +<?php foreach ($this->items as $i => $item): ?> + <?php + $canCheckin = $this->user->authorise('core.manage', 'com_checkin') || $item->checked_out == $this->user->id || $item->checked_out == 0; + $userChkOut = JFactory::getUser($item->checked_out); + $canDo = SermondistributorHelper::getActions('statistic',$item,'statistics'); + ?> + <tr class="row<?php echo $i % 2; ?>"> + <td class="order nowrap center hidden-phone"> + <?php if ($canDo->get('statistic.edit.state')): ?> + <?php + if ($this->saveOrder) + { + $iconClass = ' inactive'; + } + else + { + $iconClass = ' inactive tip-top" hasTooltip" title="' . JHtml::tooltipText('JORDERINGDISABLED'); + } + ?> + <span class="sortable-handler<?php echo $iconClass; ?>"> + <i class="icon-menu"></i> + </span> + <?php if ($this->saveOrder) : ?> + <input type="text" style="display:none" name="order[]" size="5" + value="<?php echo $item->ordering; ?>" class="width-20 text-area-order " /> + <?php endif; ?> + <?php else: ?> + &#8942; + <?php endif; ?> + </td> + <td class="nowrap center"> + <?php if ($canDo->get('statistic.edit')): ?> + <?php if ($item->checked_out) : ?> + <?php if ($canCheckin) : ?> + <?php echo JHtml::_('grid.id', $i, $item->id); ?> + <?php else: ?> + &#9633; + <?php endif; ?> + <?php else: ?> + <?php echo JHtml::_('grid.id', $i, $item->id); ?> + <?php endif; ?> + <?php else: ?> + &#9633; + <?php endif; ?> + </td> + <td class="nowrap"> + <?php if ($canDo->get('statistic.edit')): ?> + <div class="name"> + <a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $item->filename; ?></a> + <?php if ($item->checked_out): ?> + <?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'statistics.', $canCheckin); ?> + <?php endif; ?> + </div> + <?php else: ?> + <div class="name"><?php echo $item->filename; ?></div> + <?php endif; ?> + </td> + <td class="nowrap"> + <?php if ($this->user->authorise('sermon.edit', 'com_sermondistributor.sermon.' . (int)$item->sermon)): ?> + <div class="name"> + <a href="index.php?option=com_sermondistributor&view=sermons&task=sermon.edit&id=<?php echo $item->sermon; ?>&ref=statistics"><?php echo $this->escape($item->sermon_name); ?></a> + </div> + <?php else: ?> + <div class="name"><?php echo $this->escape($item->sermon_name); ?></div> + <?php endif; ?> + </td> + <td class="nowrap"> + <?php if ($this->user->authorise('preacher.edit', 'com_sermondistributor.preacher.' . (int)$item->preacher)): ?> + <div class="name"> + <a href="index.php?option=com_sermondistributor&view=preachers&task=preacher.edit&id=<?php echo $item->preacher; ?>&ref=statistics"><?php echo $this->escape($item->preacher_name); ?></a> + </div> + <?php else: ?> + <div class="name"><?php echo $this->escape($item->preacher_name); ?></div> + <?php endif; ?> + </td> + <td class="nowrap"> + <?php if ($this->user->authorise('series.edit', 'com_sermondistributor.series.' . (int)$item->series)): ?> + <div class="name"> + <a href="index.php?option=com_sermondistributor&view=all_series&task=series.edit&id=<?php echo $item->series; ?>&ref=statistics"><?php echo $this->escape($item->series_name); ?></a> + </div> + <?php else: ?> + <div class="name"><?php echo $this->escape($item->series_name); ?></div> + <?php endif; ?> + </td> + <td class="hidden-phone"> + <?php echo $this->escape($item->counter); ?> + </td> + <td class="center"> + <?php if ($canDo->get('statistic.edit.state')) : ?> + <?php if ($item->checked_out) : ?> + <?php if ($canCheckin) : ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'statistics.', true, 'cb'); ?> + <?php else: ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'statistics.', false, 'cb'); ?> + <?php endif; ?> + <?php else: ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'statistics.', true, 'cb'); ?> + <?php endif; ?> + <?php else: ?> + <?php echo JHtml::_('jgrid.published', $item->published, $i, 'statistics.', false, 'cb'); ?> + <?php endif; ?> + </td> + <td class="nowrap center hidden-phone"> + <?php echo $item->id; ?> + </td> + </tr> +<?php endforeach; ?> \ No newline at end of file diff --git a/admin/views/statistics/tmpl/default_foot.php b/admin/views/statistics/tmpl/default_foot.php new file mode 100644 index 00000000..41598474 --- /dev/null +++ b/admin/views/statistics/tmpl/default_foot.php @@ -0,0 +1,27 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_foot.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<tr> + <td colspan="9"><?php echo $this->pagination->getListFooter(); ?></td> +</tr> \ No newline at end of file diff --git a/admin/views/statistics/tmpl/default_head.php b/admin/views/statistics/tmpl/default_head.php new file mode 100644 index 00000000..5a767b7b --- /dev/null +++ b/admin/views/statistics/tmpl/default_head.php @@ -0,0 +1,68 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_head.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<tr> + <?php if ($this->canEdit&& $this->canState): ?> + <th width="1%" class="nowrap center hidden-phone"> + <?php echo JHtml::_('grid.sort', '<i class="icon-menu-2"></i>', 'ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING'); ?> + </th> + <th width="20" class="nowrap center"> + <?php echo JHtml::_('grid.checkall'); ?> + </th> + <?php else: ?> + <th width="20" class="nowrap center hidden-phone"> + &#9662; + </th> + <th width="20" class="nowrap center"> + &#9632; + </th> + <?php endif; ?> + <th class="nowrap" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_STATISTIC_FILENAME_LABEL', 'filename', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_STATISTIC_SERMON_LABEL', 'sermon_name', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER_LABEL', 'preacher_name', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_STATISTIC_SERIES_LABEL', 'series_name', $this->listDirn, $this->listOrder); ?> + </th> + <th class="nowrap hidden-phone" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_STATISTIC_COUNTER_LABEL', 'counter', $this->listDirn, $this->listOrder); ?> + </th> + <?php if ($this->canState): ?> + <th width="10" class="nowrap center" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_STATISTIC_STATUS', 'published', $this->listDirn, $this->listOrder); ?> + </th> + <?php else: ?> + <th width="10" class="nowrap center" > + <?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_STATUS'); ?> + </th> + <?php endif; ?> + <th width="5" class="nowrap center hidden-phone" > + <?php echo JHtml::_('grid.sort', 'COM_SERMONDISTRIBUTOR_STATISTIC_ID', 'id', $this->listDirn, $this->listOrder); ?> + </th> +</tr> \ No newline at end of file diff --git a/admin/views/statistics/tmpl/default_toolbar.php b/admin/views/statistics/tmpl/default_toolbar.php new file mode 100644 index 00000000..897ba5d7 --- /dev/null +++ b/admin/views/statistics/tmpl/default_toolbar.php @@ -0,0 +1,54 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_toolbar.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<div id="filter-bar" class="btn-toolbar"> + <div class="filter-search btn-group pull-left"> + <label for="filter_search" class="element-invisible"><?php echo JText::_('Search');?></label> + <input type="text" name="filter_search" id="filter_search" placeholder="<?php echo JText::_('JSEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" class="hasTooltip" title="<?php echo JHtml::tooltipText('Search Statistics'); ?>" /> + </div> + <div class="btn-group pull-left"> + <button type="submit" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>"><i class="icon-search"></i></button> + <button type="button" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_CLEAR'); ?>" onclick="document.id('filter_search').value='';this.form.submit();"><i class="icon-remove"></i></button> + </div> + <div class="btn-group pull-right hidden-phone"> + <label for="limit" class="element-invisible"><?php echo JText::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC');?></label> + <?php echo $this->pagination->getLimitBox(); ?> + </div> + <div class="btn-group pull-right hidden-phone"> + <label for="directionTable" class="element-invisible"><?php echo JText::_('JFIELD_ORDERING_DESC');?></label> + <select name="directionTable" id="directionTable" class="input-medium" onchange="Joomla.orderTable()"> + <option value=""><?php echo JText::_('JFIELD_ORDERING_DESC');?></option> + <option value="asc" <?php if ($this->listDirn == 'asc') echo 'selected="selected"'; ?>><?php echo JText::_('JGLOBAL_ORDER_ASCENDING');?></option> + <option value="desc" <?php if ($this->listDirn == 'desc') echo 'selected="selected"'; ?>><?php echo JText::_('JGLOBAL_ORDER_DESCENDING');?></option> + </select> + </div> + <div class="btn-group pull-right"> + <label for="sortTable" class="element-invisible"><?php echo JText::_('JGLOBAL_SORT_BY');?></label> + <select name="sortTable" id="sortTable" class="input-medium" onchange="Joomla.orderTable()"> + <option value=""><?php echo JText::_('JGLOBAL_SORT_BY');?></option> + <?php echo JHtml::_('select.options', $this->getSortFields(), 'value', 'text', $this->listOrder);?> + </select> + </div> + </div> +<div class="clearfix"> </div> \ No newline at end of file diff --git a/admin/views/statistics/tmpl/index.html b/admin/views/statistics/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/admin/views/statistics/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/admin/views/statistics/view.html.php b/admin/views/statistics/view.html.php new file mode 100644 index 00000000..4f992436 --- /dev/null +++ b/admin/views/statistics/view.html.php @@ -0,0 +1,315 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Sermondistributor View class for the Statistics + */ +class SermondistributorViewStatistics extends JViewLegacy +{ + /** + * Statistics view display method + * @return void + */ + function display($tpl = null) + { + if ($this->getLayout() !== 'modal') + { + // Include helper submenu + SermondistributorHelper::addSubmenu('statistics'); + } + + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseError(500, implode('<br />', $errors)); + return false; + } + + // Assign data to the view + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + $this->state = $this->get('State'); + $this->user = JFactory::getUser(); + $this->listOrder = $this->escape($this->state->get('list.ordering')); + $this->listDirn = $this->escape($this->state->get('list.direction')); + $this->saveOrder = $this->listOrder == 'ordering'; + // get global action permissions + $this->canDo = SermondistributorHelper::getActions('statistic'); + $this->canEdit = $this->canDo->get('statistic.edit'); + $this->canState = $this->canDo->get('statistic.edit.state'); + $this->canCreate = $this->canDo->get('statistic.create'); + $this->canDelete = $this->canDo->get('statistic.delete'); + $this->canBatch = $this->canDo->get('core.batch'); + + // We don't need toolbar in the modal window. + if ($this->getLayout() !== 'modal') + { + $this->addToolbar(); + $this->sidebar = JHtmlSidebar::render(); + // load the batch html + if ($this->canCreate && $this->canEdit && $this->canState) + { + $this->batchDisplay = JHtmlBatch_::render(); + } + } + + // Display the template + parent::display($tpl); + + // Set the document + $this->setDocument(); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JToolBarHelper::title(JText::_('COM_SERMONDISTRIBUTOR_STATISTICS'), 'bars'); + JHtmlSidebar::setAction('index.php?option=com_sermondistributor&view=statistics'); + JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields'); + + if ($this->canCreate) + { + JToolBarHelper::addNew('statistic.add'); + } + + // Only load if there are items + if (SermondistributorHelper::checkArray($this->items)) + { + if ($this->canEdit) + { + JToolBarHelper::editList('statistic.edit'); + } + + if ($this->canState) + { + JToolBarHelper::publishList('statistics.publish'); + JToolBarHelper::unpublishList('statistics.unpublish'); + JToolBarHelper::archiveList('statistics.archive'); + + if ($this->canDo->get('core.admin')) + { + JToolBarHelper::checkin('statistics.checkin'); + } + } + + // Add a batch button + if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState) + { + // Get the toolbar object instance + $bar = JToolBar::getInstance('toolbar'); + // set the batch button name + $title = JText::_('JTOOLBAR_BATCH'); + // Instantiate a new JLayoutFile instance and render the batch button + $layout = new JLayoutFile('joomla.toolbar.batch'); + // add the button to the page + $dhtml = $layout->render(array('title' => $title)); + $bar->appendButton('Custom', $dhtml, 'batch'); + } + + if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete)) + { + JToolbarHelper::deleteList('', 'statistics.delete', 'JTOOLBAR_EMPTY_TRASH'); + } + elseif ($this->canState && $this->canDelete) + { + JToolbarHelper::trash('statistics.trash'); + } + + if ($this->canDo->get('core.export') && $this->canDo->get('statistic.export')) + { + JToolBarHelper::custom('statistics.exportData', 'download', '', 'COM_SERMONDISTRIBUTOR_EXPORT_DATA', true); + } + } + + if ($this->canDo->get('core.import') && $this->canDo->get('statistic.import')) + { + JToolBarHelper::custom('statistics.importData', 'upload', '', 'COM_SERMONDISTRIBUTOR_IMPORT_DATA', false); + } + + // set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('statistics'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + + // add the options comp button + if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) + { + JToolBarHelper::preferences('com_sermondistributor'); + } + + if ($this->canState) + { + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_PUBLISHED'), + 'filter_published', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true) + ); + // only load if batch allowed + if ($this->canBatch) + { + JHtmlBatch_::addListSelection( + JText::_('COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_STATE'), + 'batch[published]', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true) + ); + } + } + + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_ACCESS'), + 'filter_access', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + JHtmlBatch_::addListSelection( + JText::_('COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_ACCESS'), + 'batch[access]', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text') + ); + } + + // [9073] Set Sermon Name Selection + $this->sermonNameOptions = JFormHelper::loadFieldType('Sermon')->getOptions(); + if ($this->sermonNameOptions) + { + // [9077] Sermon Name Filter + JHtmlSidebar::addFilter( + '- Select '.JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERMON_LABEL').' -', + 'filter_sermon', + JHtml::_('select.options', $this->sermonNameOptions, 'value', 'text', $this->state->get('filter.sermon')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + // [9086] Sermon Name Batch Selection + JHtmlBatch_::addListSelection( + '- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERMON_LABEL').' -', + 'batch[sermon]', + JHtml::_('select.options', $this->sermonNameOptions, 'value', 'text') + ); + } + } + + // [9073] Set Preacher Name Selection + $this->preacherNameOptions = JFormHelper::loadFieldType('Preachers')->getOptions(); + if ($this->preacherNameOptions) + { + // [9077] Preacher Name Filter + JHtmlSidebar::addFilter( + '- Select '.JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER_LABEL').' -', + 'filter_preacher', + JHtml::_('select.options', $this->preacherNameOptions, 'value', 'text', $this->state->get('filter.preacher')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + // [9086] Preacher Name Batch Selection + JHtmlBatch_::addListSelection( + '- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER_LABEL').' -', + 'batch[preacher]', + JHtml::_('select.options', $this->preacherNameOptions, 'value', 'text') + ); + } + } + + // [9073] Set Series Name Selection + $this->seriesNameOptions = JFormHelper::loadFieldType('Series')->getOptions(); + if ($this->seriesNameOptions) + { + // [9077] Series Name Filter + JHtmlSidebar::addFilter( + '- Select '.JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERIES_LABEL').' -', + 'filter_series', + JHtml::_('select.options', $this->seriesNameOptions, 'value', 'text', $this->state->get('filter.series')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + // [9086] Series Name Batch Selection + JHtmlBatch_::addListSelection( + '- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERIES_LABEL').' -', + 'batch[series]', + JHtml::_('select.options', $this->seriesNameOptions, 'value', 'text') + ); + } + } + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + $document = JFactory::getDocument(); + $document->setTitle(JText::_('COM_SERMONDISTRIBUTOR_STATISTICS')); + $document->addStyleSheet(JURI::root() . "administrator/components/com_sermondistributor/assets/css/statistics.css"); + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var) + { + if(strlen($var) > 50) + { + // use the helper htmlEscape method instead and shorten the string + return SermondistributorHelper::htmlEscape($var, $this->_charset, true); + } + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset); + } + + /** + * Returns an array of fields the table can be sorted by + * + * @return array Array containing the field name to sort by as the key and display text as value + */ + protected function getSortFields() + { + return array( + 'a.sorting' => JText::_('JGRID_HEADING_ORDERING'), + 'a.published' => JText::_('JSTATUS'), + 'a.filename' => JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_FILENAME_LABEL'), + 'g.name' => JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERMON_LABEL'), + 'h.name' => JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER_LABEL'), + 'i.name' => JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERIES_LABEL'), + 'a.counter' => JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_COUNTER_LABEL'), + 'a.id' => JText::_('JGRID_HEADING_ID') + ); + } +} diff --git a/index.html b/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/css/index.html b/media/css/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/css/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/footable/css/fonts/footable.eot b/media/footable/css/fonts/footable.eot new file mode 100644 index 00000000..37229798 Binary files /dev/null and b/media/footable/css/fonts/footable.eot differ diff --git a/media/footable/css/fonts/footable.svg b/media/footable/css/fonts/footable.svg new file mode 100644 index 00000000..5a6e1fda --- /dev/null +++ b/media/footable/css/fonts/footable.svg @@ -0,0 +1,78 @@ +<?xml version="1.0" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > +<svg xmlns="http://www.w3.org/2000/svg"> +<metadata> +This is a custom SVG font generated by IcoMoon. +<iconset grid="16"></iconset> +</metadata> +<defs> +<font id="footable" horiz-adv-x="512" > +<font-face units-per-em="512" ascent="480" descent="-32" /> +<missing-glyph horiz-adv-x="512" /> +<glyph class="hidden" unicode="&#xf000;" d="M0,480L 512 -32L0 -32 z" horiz-adv-x="0" /> +<glyph unicode="&#xe000;" d="M 496,288L 320,288 L 320,464 c0,8.836-7.164,16-16,16l-96,0 c-8.836,0-16-7.164-16-16l0-176 L 16,288 c-8.836,0-16-7.164-16-16l0-96 + c0-8.836, 7.164-16, 16-16l 176,0 l0-176 c0-8.836, 7.164-16, 16-16l 96,0 c 8.836,0, 16,7.164, 16,16L 320,160 l 176,0 c 8.836,0, 16,7.164, 16,16l0,96 + C 512,280.836, 504.836,288, 496,288z" /> +<glyph unicode="&#xe001;" d="M0,272l0-96 c0-8.836, 7.164-16, 16-16l 480,0 c 8.836,0, 16,7.164, 16,16l0,96 c0,8.836-7.164,16-16,16L 16,288 C 7.164,288,0,280.836,0,272z" /> +<glyph unicode="&#xe002;" d="M 256,480C 114.615,480,0,365.385,0,224s 114.615-256, 256-256s 256,114.615, 256,256S 397.385,480, 256,480z M 288,192l0-128 l-64,0 L 224,192 L 96,192 l0,64 + l 128,0 L 224,384 l 64,0 l0-128 l 128,0 l0-64 L 288,192 z" /> +<glyph unicode="&#xe003;" d="M 256,480C 114.615,480,0,365.385,0,224s 114.615-256, 256-256s 256,114.615, 256,256S 397.385,480, 256,480z M 416,192L 96,192 l0,64 l 320,0 L 416,192 z" /> +<glyph unicode="&#xe004;" d="M 256,480C 114.615,480,0,365.385,0,224s 114.615-256, 256-256s 256,114.615, 256,256S 397.385,480, 256,480z M 256,32 + c-106.039,0-192,85.961-192,192c0,106.039, 85.961,192, 192,192c 106.039,0, 192-85.961, 192-192C 448,117.961, 362.039,32, 256,32zM 384,192 L 288,192 L 288,96 L 224,96 L 224,192 L 128,192 L 128,256 L 224,256 L 224,352 L 288,352 L 288,256 L 384,256 Z" /> +<glyph unicode="&#xe005;" d="M 256,480C 114.615,480,0,365.385,0,224s 114.615-256, 256-256s 256,114.615, 256,256S 397.385,480, 256,480z M 256,32 + c-106.039,0-192,85.961-192,192c0,106.039, 85.961,192, 192,192c 106.039,0, 192-85.961, 192-192C 448,117.961, 362.039,32, 256,32zM 128,256L 384,256L 384,192L 128,192z" /> +<glyph unicode="&#xe006;" d="M 256,214.857l0-18.286 q0-4 -2.571-6.571t-6.571-2.571l-64,0 l0-64 q0-4 -2.571-6.571t-6.571-2.571l-18.286,0 q-4,0 -6.571,2.571t-2.571,6.571l0,64 l-64,0 q-4,0 -6.571,2.571t-2.571,6.571l0,18.286 q0,4 2.571,6.571t 6.571,2.571l 64,0 l0,64 q0,4 2.571,6.571t 6.571,2.571l 18.286,0 q 4,0 6.571-2.571t 2.571-6.571l0-64 l 64,0 q 4,0 6.571-2.571t 2.571-6.571zM 292.571,105.143l0,201.143 q0,11.429 -8,19.429t-19.429,8l-201.143,0 q-11.429,0 -19.429-8 t-8-19.429l0-201.143 q0-11.429 8-19.429t 19.429-8l 201.143,0 q 11.429,0 19.429,8t 8,19.429zM 329.143,306.286l0-201.143 q0-26.286 -18.714-45.143t-45.286-18.857l-201.143,0 q-26.571,0 -45.286,18.857t-18.714,45.143l0,201.143 q0,26.571 18.714,45.286t 45.286,18.714l 201.143,0 q 26.571,0 45.286-18.714t 18.714-45.286z" horiz-adv-x="329.143" /> +<glyph unicode="&#xe007;" d="M 265.143,370.286q 26.571,0 45.286-18.714t 18.714-45.286l0-201.143 q0-26.286 -18.714-45.143t-45.286-18.857l-201.143,0 q-26.571,0 -45.286,18.857t-18.714,45.143l0,201.143 q0,26.571 18.714,45.286t 45.286,18.714l 201.143,0 zM 292.571,105.143l0,201.143 q0,11.429 -8,19.429t-19.429,8l-201.143,0 q-11.429,0 -19.429-8t-8-19.429l0-201.143 q0-11.429 8-19.429t 19.429-8l 201.143,0 q 11.429,0 19.429,8t 8,19.429z M 246.857,224q 4,0 6.571-2.571t 2.571-6.571l0-18.286 q0-4 -2.571-6.571t-6.571-2.571l-164.571,0 q-4,0 -6.571,2.571t-2.571,6.571l0,18.286 q0,4 2.571,6.571t 6.571,2.571l 164.571,0 z" horiz-adv-x="329.143" /> +<glyph unicode="&#xe008;" d="M 365.714,205.714l0,36.571 q0,7.429 -5.429,12.857t-12.857,5.429l-91.429,0 l0,91.429 q0,7.429 -5.429,12.857t-12.857,5.429l-36.571,0 q-7.429,0 -12.857-5.429t-5.429-12.857l0-91.429 l-91.429,0 q-7.429,0 -12.857-5.429t-5.429-12.857l0-36.571 q0-7.429 5.429-12.857t 12.857-5.429l 91.429,0 l0-91.429 q0-7.429 5.429-12.857t 12.857-5.429l 36.571,0 q 7.429,0 12.857,5.429t 5.429,12.857l0,91.429 l 91.429,0 q 7.429,0 12.857,5.429t 5.429,12.857zM 438.857,361.143l0-274.286 q0-34 -24.143-58.143t-58.143-24.143l-274.286,0 q-34,0 -58.143,24.143t-24.143,58.143l0,274.286 q0,34 24.143,58.143t 58.143,24.143l 274.286,0 q 34,0 58.143-24.143t 24.143-58.143z" horiz-adv-x="438.857" /> +<glyph unicode="&#xe009;" d="M 365.714,205.714l0,36.571 q0,7.429 -5.429,12.857t-12.857,5.429l-256,0 q-7.429,0 -12.857-5.429t-5.429-12.857l0-36.571 q0-7.429 5.429-12.857t 12.857-5.429l 256,0 q 7.429,0 12.857,5.429t 5.429,12.857zM 438.857,361.143l0-274.286 q0-34 -24.143-58.143t-58.143-24.143l-274.286,0 q-34,0 -58.143,24.143t-24.143,58.143l0,274.286 q0,34 24.143,58.143t 58.143,24.143l 274.286,0 q 34,0 58.143-24.143 t 24.143-58.143z" horiz-adv-x="438.857" /> +<glyph unicode="&#xe00a;" d="M 512,224C 512,82.615, 397.385-32, 256-32s -256,114.615, -256,256s 114.615,256, 256,256S 512,365.385, 512,224z M 233.372,374.628 + l -128-128.001C 99.124,240.379, 96,232.189, 96,224s 3.124-16.379 9.372-22.627c 12.497-12.497 32.759-12.497, 45.256,0L 224,274.745 + L 224,96 c 0-17.673 14.327-32 32-32c 17.673,0, 32,14.327, 32,32l0,178.745 l 73.373-73.373c 12.497-12.497 32.758-12.497, 45.255,0 + c 12.497,12.497, 12.497,32.758, 0,45.254l -128,128.001C 266.131,387.124, 245.869,387.124, 233.372,374.628z" /> +<glyph unicode="&#xe00b;" d="M 512,224C 512,365.385, 397.385,480, 256,480s -256-114.615, -256-256s 114.615-256, 256-256S 512,82.615, 512,224z M 233.372,73.372 + l -128,128.001C 99.124,207.621, 96,215.811, 96,224s 3.124,16.379 9.372,22.627c 12.497,12.497 32.759,12.497, 45.256,0L 224,173.255 + L 224,352 c 0,17.673 14.327,32 32,32c 17.673,0, 32-14.327, 32-32l0-178.745 l 73.373,73.373c 12.497,12.497 32.758,12.497, 45.255,0 + c 12.497-12.497, 12.497-32.758, 0-45.254l -128-128.001C 266.131,60.876, 245.869,60.876, 233.372,73.372z" /> +<glyph unicode="&#xe00c;" d="M 256,480C 397.385,480, 512,365.385, 512,224s -114.615-256, -256-256s -256,114.615, -256,256S 114.615,480, 256,480z M 105.372,201.372 + l 128.001-128C 239.621,67.124, 247.811,64, 256,64s 16.379,3.124 22.627,9.372c 12.497,12.497 12.497,32.759,0,45.256L 205.255,192 + L 384,192 c 17.673,0 32,14.327 32,32c0,17.673, -14.327,32, -32,32l-178.745,0 l 73.373,73.373c 12.497,12.497 12.497,32.758,0,45.255 + c -12.497,12.497, -32.758,12.497, -45.254,0l -128.001-128C 92.876,234.131, 92.876,213.869, 105.372,201.372z" /> +<glyph unicode="&#xe00d;" d="M 256,480C 114.615,480,0,365.385,0,224s 114.615-256, 256-256s 256,114.615, 256,256S 397.385,480, 256,480z M 406.628,201.372 + l-128.001-128C 272.379,67.124, 264.189,64, 256,64s-16.379,3.124-22.627,9.372c-12.497,12.497-12.497,32.759,0,45.256L 306.745,192 + L 128,192 c-17.673,0-32,14.327-32,32c0,17.673, 14.327,32, 32,32l 178.745,0 l-73.373,73.373c-12.497,12.497-12.497,32.758,0,45.255 + c 12.497,12.497, 32.758,12.497, 45.254,0l 128.001-128C 419.124,234.131, 419.124,213.869, 406.628,201.372z" /> +<glyph unicode="&#xe00e;" d="M0,160L 96,64L 256,224L 416,64L 512,160L 256.001,416 z" /> +<glyph unicode="&#xe00f;" d="M 512,288L 416,384L 256,224L 96,384L0,288L 256,32.001 z" /> +<glyph unicode="&#xe010;" d="M 320-32L 416,64L 256,224L 416,384L 320,480L 64,224 z" /> +<glyph unicode="&#xe011;" d="M 192,480L 96,384L 256,224L 96,64L 192-32L 448,224 z" /> +<glyph unicode="&#xe012;" d="M 292.571,132.571q0-7.429 -5.429-12.857t-12.857-5.429l-256,0 q-7.429,0 -12.857,5.429t-5.429,12.857t 5.429,12.857l 128,128q 5.429,5.429 12.857,5.429t 12.857-5.429l 128-128q 5.429-5.429 5.429-12.857z" horiz-adv-x="292.571" /> +<glyph unicode="&#xe013;" d="M 292.571,278.857q0-7.429 -5.429-12.857l-128-128q-5.429-5.429 -12.857-5.429t-12.857,5.429l-128,128q-5.429,5.429 -5.429,12.857t 5.429,12.857t 12.857,5.429l 256,0 q 7.429,0 12.857-5.429t 5.429-12.857z" horiz-adv-x="292.571" /> +<glyph unicode="&#xe014;" d="M 182.857,352l0-256 q0-7.429 -5.429-12.857t-12.857-5.429t-12.857,5.429l-128,128q-5.429,5.429 -5.429,12.857t 5.429,12.857l 128,128q 5.429,5.429 12.857,5.429t 12.857-5.429t 5.429-12.857z" horiz-adv-x="182.857" /> +<glyph unicode="&#xe015;" d="M 164.571,224q0-7.429 -5.429-12.857l-128-128q-5.429-5.429 -12.857-5.429t-12.857,5.429t-5.429,12.857l0,256 q0,7.429 5.429,12.857t 12.857,5.429t 12.857-5.429l 128-128q 5.429-5.429 5.429-12.857z" horiz-adv-x="182.857" /> +<glyph unicode="&#xe016;" d="M 256,480L 32-32L 256,64L 480-32 z" /> +<glyph unicode="&#xe017;" d="M 256-32L 480,480L 256,384L 32,480 z" /> +<glyph unicode="&#xe018;" d="M0,224L 512,0L 416,224L 512,448 z" /> +<glyph unicode="&#xe019;" d="M 512,224L0,448L 96,224L0,0 z" /> +<glyph unicode="&#xe01a;" d="M 512,224C 512,82.615, 397.385-32, 256-32s -256,114.615, -256,256s 114.615,256, 256,256S 512,365.385, 512,224z M 48,224 + c 0-114.875 93.125-208 208-208S 464,109.125, 464,224s -93.125,208, -208,208S 48,338.875, 48,224zM 278.627,374.628l 128-128.001c 12.497-12.496 12.497-32.757 0-45.254c -12.497-12.497 -32.758-12.497,-45.255,0L 288,274.745 + L 288,96 c 0-17.673 -14.327-32 -32-32c-17.673,0, -32,14.327, -32,32l0,178.745 l -73.372-73.373c -12.497-12.497 -32.759-12.497,-45.256,0 + C 99.124,207.621, 96,215.811, 96,224s 3.124,16.379, 9.372,22.627l 128,128.001C 245.869,387.124, 266.131,387.124, 278.627,374.628z" /> +<glyph unicode="&#xe01b;" d="M 512,224C 512,365.385, 397.385,480, 256,480s -256-114.615, -256-256s 114.615-256, 256-256S 512,82.615, 512,224z M 48,224 + c 0,114.875 93.125,208 208,208S 464,338.875, 464,224s -93.125-208, -208-208S 48,109.125, 48,224zM 278.627,73.372l 128,128.001c 12.497,12.496 12.497,32.757 0,45.254c -12.497,12.497 -32.758,12.497,-45.255,0L 288,173.255 + L 288,352 c 0,17.673 -14.327,32 -32,32c-17.673,0, -32-14.327, -32-32l0-178.745 l -73.372,73.373c -12.497,12.497 -32.759,12.497,-45.256,0 + C 99.124,240.379, 96,232.189, 96,224s 3.124-16.379, 9.372-22.627l 128-128.001C 245.869,60.876, 266.131,60.876, 278.627,73.372z" /> +<glyph unicode="&#xe01c;" d="M 256,480C 397.385,480, 512,365.385, 512,224s -114.615-256, -256-256s -256,114.615, -256,256S 114.615,480, 256,480z M 256,16 + c 114.875,0 208,93.125 208,208S 370.875,432, 256,432s -208-93.125, -208-208S 141.125,16, 256,16zM 105.372,246.627l 128.001,128c 12.496,12.497 32.757,12.497 45.254,0c 12.497-12.497 12.497-32.758,0-45.255L 205.255,256 + L 384,256 c 17.673,0 32-14.327 32-32c0-17.673, -14.327-32, -32-32l-178.745,0 l 73.373-73.372c 12.497-12.497 12.497-32.759,0-45.256 + C 272.379,67.124, 264.189,64, 256,64s -16.379,3.124, -22.627,9.372l -128.001,128C 92.876,213.869, 92.876,234.131, 105.372,246.627z" /> +<glyph unicode="&#xe01d;" d="M 256,480C 114.615,480,0,365.385,0,224s 114.615-256, 256-256s 256,114.615, 256,256S 397.385,480, 256,480z M 256,16 + c-114.875,0-208,93.125-208,208S 141.125,432, 256,432s 208-93.125, 208-208S 370.875,16, 256,16zM 406.628,246.627l-128.001,128c-12.496,12.497-32.757,12.497-45.254,0c-12.497-12.497-12.497-32.758,0-45.255L 306.745,256 + L 128,256 c-17.673,0-32-14.327-32-32c0-17.673, 14.327-32, 32-32l 178.745,0 l-73.373-73.372c-12.497-12.497-12.497-32.759,0-45.256 + C 239.621,67.124, 247.811,64, 256,64s 16.379,3.124, 22.627,9.372l 128.001,128C 419.124,213.869, 419.124,234.131, 406.628,246.627z" /> +<glyph unicode="&#xe01e;" d="M 307.143,141.714q0-3.714 -2.857-6.571l-14.286-14.286q-2.857-2.857 -6.571-2.857t-6.571,2.857l-112.286,112.286l-112.286-112.286q-2.857-2.857 -6.571-2.857t-6.571,2.857l-14.286,14.286q-2.857,2.857 -2.857,6.571t 2.857,6.571l 133.143,133.143q 2.857,2.857 6.571,2.857t 6.571-2.857l 133.143-133.143q 2.857-2.857 2.857-6.571z" horiz-adv-x="329.143" /> +<glyph unicode="&#xe01f;" d="M 307.143,269.714q0-3.714 -2.857-6.571l-133.143-133.143q-2.857-2.857 -6.571-2.857t-6.571,2.857l-133.143,133.143q-2.857,2.857 -2.857,6.571t 2.857,6.571l 14.286,14.286q 2.857,2.857 6.571,2.857t 6.571-2.857l 112.286-112.286l 112.286,112.286q 2.857,2.857 6.571,2.857t 6.571-2.857l 14.286-14.286q 2.857-2.857 2.857-6.571z" horiz-adv-x="329.143" /> +<glyph unicode="&#xe020;" d="M 179.143,324.571q0-3.714 -2.857-6.571l-112.286-112.286l 112.286-112.286q 2.857-2.857 2.857-6.571t-2.857-6.571l-14.286-14.286q-2.857-2.857 -6.571-2.857t-6.571,2.857l-133.143,133.143q-2.857,2.857 -2.857,6.571t 2.857,6.571l 133.143,133.143q 2.857,2.857 6.571,2.857t 6.571-2.857l 14.286-14.286q 2.857-2.857 2.857-6.571z" horiz-adv-x="182.857" /> +<glyph unicode="&#xe021;" d="M 170,205.714q0-3.714 -2.857-6.571l-133.143-133.143q-2.857-2.857 -6.571-2.857t-6.571,2.857l-14.286,14.286q-2.857,2.857 -2.857,6.571t 2.857,6.571l 112.286,112.286l-112.286,112.286q-2.857,2.857 -2.857,6.571t 2.857,6.571l 14.286,14.286q 2.857,2.857 6.571,2.857t 6.571-2.857l 133.143-133.143q 2.857-2.857 2.857-6.571z" horiz-adv-x="182.857" /> +<glyph unicode="&#xe022;" d="M 292.571,169.143q0-7.429 -5.429-12.857l-128-128q-5.429-5.429 -12.857-5.429t-12.857,5.429l-128,128q-5.429,5.429 -5.429,12.857t 5.429,12.857t 12.857,5.429l 256,0 q 7.429,0 12.857-5.429t 5.429-12.857zM 292.571,278.857q0-7.429 -5.429-12.857t-12.857-5.429l-256,0 q-7.429,0 -12.857,5.429t-5.429,12.857t 5.429,12.857l 128,128q 5.429,5.429 12.857,5.429t 12.857-5.429l 128-128q 5.429-5.429 5.429-12.857z" horiz-adv-x="292.571" /> +<glyph unicode="&#x20;" horiz-adv-x="256" /> +</font></defs></svg> \ No newline at end of file diff --git a/media/footable/css/fonts/footable.ttf b/media/footable/css/fonts/footable.ttf new file mode 100644 index 00000000..2d5c84ab Binary files /dev/null and b/media/footable/css/fonts/footable.ttf differ diff --git a/media/footable/css/fonts/footable.woff b/media/footable/css/fonts/footable.woff new file mode 100644 index 00000000..4864dbb5 Binary files /dev/null and b/media/footable/css/fonts/footable.woff differ diff --git a/media/footable/css/fonts/index.html b/media/footable/css/fonts/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/footable/css/fonts/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/footable/css/footable.core.css b/media/footable/css/footable.core.css new file mode 100644 index 00000000..d8accfb6 --- /dev/null +++ b/media/footable/css/footable.core.css @@ -0,0 +1,178 @@ +@font-face { + font-family: 'footable'; + src: url('fonts/footable.eot'); + src: url('fonts/footable.eot?#iefix') format('embedded-opentype'), url('fonts/footable.woff') format('woff'), url('fonts/footable.ttf') format('truetype'), url('fonts/footable.svg#footable') format('svg'); + font-weight: normal; + font-style: normal; +} +@media screen and (-webkit-min-device-pixel-ratio: 0) { + @font-face { + font-family: 'footable'; + src: url('fonts/footable.svg#footable') format('svg'); + font-weight: normal; + font-style: normal; + } +} +.footable { + width: 100%; + /** SORTING **/ + + /** PAGINATION **/ + +} +.footable.breakpoint > tbody > tr.footable-detail-show > td { + border-bottom: none; +} +.footable.breakpoint > tbody > tr.footable-detail-show > td > span.footable-toggle:before { + content: "\e001"; +} +.footable.breakpoint > tbody > tr:hover:not(.footable-row-detail) { + cursor: pointer; +} +.footable.breakpoint > tbody > tr > td.footable-cell-detail { + background: #eee; + border-top: none; +} +.footable.breakpoint > tbody > tr > td > span.footable-toggle { + display: inline-block; + font-family: 'footable'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + -webkit-font-smoothing: antialiased; + padding-right: 5px; + font-size: 14px; + color: #888888; +} +.footable.breakpoint > tbody > tr > td > span.footable-toggle:before { + content: "\e000"; +} +.footable.breakpoint.toggle-circle > tbody > tr.footable-detail-show > td > span.footable-toggle:before { + content: "\e005"; +} +.footable.breakpoint.toggle-circle > tbody > tr > td > span.footable-toggle:before { + content: "\e004"; +} +.footable.breakpoint.toggle-circle-filled > tbody > tr.footable-detail-show > td > span.footable-toggle:before { + content: "\e003"; +} +.footable.breakpoint.toggle-circle-filled > tbody > tr > td > span.footable-toggle:before { + content: "\e002"; +} +.footable.breakpoint.toggle-square > tbody > tr.footable-detail-show > td > span.footable-toggle:before { + content: "\e007"; +} +.footable.breakpoint.toggle-square > tbody > tr > td > span.footable-toggle:before { + content: "\e006"; +} +.footable.breakpoint.toggle-square-filled > tbody > tr.footable-detail-show > td > span.footable-toggle:before { + content: "\e009"; +} +.footable.breakpoint.toggle-square-filled > tbody > tr > td > span.footable-toggle:before { + content: "\e008"; +} +.footable.breakpoint.toggle-arrow > tbody > tr.footable-detail-show > td > span.footable-toggle:before { + content: "\e00f"; +} +.footable.breakpoint.toggle-arrow > tbody > tr > td > span.footable-toggle:before { + content: "\e011"; +} +.footable.breakpoint.toggle-arrow-small > tbody > tr.footable-detail-show > td > span.footable-toggle:before { + content: "\e013"; +} +.footable.breakpoint.toggle-arrow-small > tbody > tr > td > span.footable-toggle:before { + content: "\e015"; +} +.footable.breakpoint.toggle-arrow-circle > tbody > tr.footable-detail-show > td > span.footable-toggle:before { + content: "\e01b"; +} +.footable.breakpoint.toggle-arrow-circle > tbody > tr > td > span.footable-toggle:before { + content: "\e01d"; +} +.footable.breakpoint.toggle-arrow-circle-filled > tbody > tr.footable-detail-show > td > span.footable-toggle:before { + content: "\e00b"; +} +.footable.breakpoint.toggle-arrow-circle-filled > tbody > tr > td > span.footable-toggle:before { + content: "\e00d"; +} +.footable.breakpoint.toggle-arrow-tiny > tbody > tr.footable-detail-show > td > span.footable-toggle:before { + content: "\e01f"; +} +.footable.breakpoint.toggle-arrow-tiny > tbody > tr > td > span.footable-toggle:before { + content: "\e021"; +} +.footable.breakpoint.toggle-arrow-alt > tbody > tr.footable-detail-show > td > span.footable-toggle:before { + content: "\e017"; +} +.footable.breakpoint.toggle-arrow-alt > tbody > tr > td > span.footable-toggle:before { + content: "\e019"; +} +.footable.breakpoint.toggle-medium > tbody > tr > td > span.footable-toggle { + font-size: 18px; +} +.footable.breakpoint.toggle-large > tbody > tr > td > span.footable-toggle { + font-size: 24px; +} +.footable > thead > tr > th { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: -moz-none; + -ms-user-select: none; + user-select: none; +} +.footable > thead > tr > th.footable-sortable:hover { + cursor: pointer; +} +.footable > thead > tr > th.footable-sorted > span.footable-sort-indicator:before { + content: "\e013"; +} +.footable > thead > tr > th.footable-sorted-desc > span.footable-sort-indicator:before { + content: "\e012"; +} +.footable > thead > tr > th > span.footable-sort-indicator { + display: inline-block; + font-family: 'footable'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + -webkit-font-smoothing: antialiased; + padding-left: 5px; +} +.footable > thead > tr > th > span.footable-sort-indicator:before { + content: "\e022"; +} +.footable > tfoot .pagination { + margin: 0; +} +.footable.no-paging .hide-if-no-paging { + display: none; +} +.footable-row-detail-inner { + display: table; +} +.footable-row-detail-row { + display: table-row; + line-height: 1.5em; +} +.footable-row-detail-group { + display: block; + line-height: 2em; + font-size: 1.2em; + font-weight: bold; +} +.footable-row-detail-name { + display: table-cell; + font-weight: bold; + padding-right: 0.5em; +} +.footable-row-detail-value { + display: table-cell; +} +.footable-odd { + background-color: #f7f7f7; +} diff --git a/media/footable/css/footable.core.min.css b/media/footable/css/footable.core.min.css new file mode 100644 index 00000000..22ad8439 --- /dev/null +++ b/media/footable/css/footable.core.min.css @@ -0,0 +1 @@ +@font-face{font-family:'footable';src:url('fonts/footable.eot');src:url('fonts/footable.eot?#iefix') format('embedded-opentype'),url('fonts/footable.woff') format('woff'),url('fonts/footable.ttf') format('truetype'),url('fonts/footable.svg#footable') format('svg');font-weight:normal;font-style:normal}@media screen and (-webkit-min-device-pixel-ratio:0){@font-face{font-family:'footable';src:url('fonts/footable.svg#footable') format('svg');font-weight:normal;font-style:normal}}.footable{width:100%}.footable.breakpoint>tbody>tr.footable-detail-show>td{border-bottom:0}.footable.breakpoint>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e001"}.footable.breakpoint>tbody>tr:hover:not(.footable-row-detail){cursor:pointer}.footable.breakpoint>tbody>tr>td.footable-cell-detail{background:#eee;border-top:0}.footable.breakpoint>tbody>tr>td>span.footable-toggle{display:inline-block;font-family:'footable';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;padding-right:5px;font-size:14px;color:#888}.footable.breakpoint>tbody>tr>td>span.footable-toggle:before{content:"\e000"}.footable.breakpoint.toggle-circle>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e005"}.footable.breakpoint.toggle-circle>tbody>tr>td>span.footable-toggle:before{content:"\e004"}.footable.breakpoint.toggle-circle-filled>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e003"}.footable.breakpoint.toggle-circle-filled>tbody>tr>td>span.footable-toggle:before{content:"\e002"}.footable.breakpoint.toggle-square>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e007"}.footable.breakpoint.toggle-square>tbody>tr>td>span.footable-toggle:before{content:"\e006"}.footable.breakpoint.toggle-square-filled>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e009"}.footable.breakpoint.toggle-square-filled>tbody>tr>td>span.footable-toggle:before{content:"\e008"}.footable.breakpoint.toggle-arrow>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e00f"}.footable.breakpoint.toggle-arrow>tbody>tr>td>span.footable-toggle:before{content:"\e011"}.footable.breakpoint.toggle-arrow-small>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e013"}.footable.breakpoint.toggle-arrow-small>tbody>tr>td>span.footable-toggle:before{content:"\e015"}.footable.breakpoint.toggle-arrow-circle>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e01b"}.footable.breakpoint.toggle-arrow-circle>tbody>tr>td>span.footable-toggle:before{content:"\e01d"}.footable.breakpoint.toggle-arrow-circle-filled>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e00b"}.footable.breakpoint.toggle-arrow-circle-filled>tbody>tr>td>span.footable-toggle:before{content:"\e00d"}.footable.breakpoint.toggle-arrow-tiny>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e01f"}.footable.breakpoint.toggle-arrow-tiny>tbody>tr>td>span.footable-toggle:before{content:"\e021"}.footable.breakpoint.toggle-arrow-alt>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e017"}.footable.breakpoint.toggle-arrow-alt>tbody>tr>td>span.footable-toggle:before{content:"\e019"}.footable.breakpoint.toggle-medium>tbody>tr>td>span.footable-toggle{font-size:18px}.footable.breakpoint.toggle-large>tbody>tr>td>span.footable-toggle{font-size:24px}.footable>thead>tr>th{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.footable>thead>tr>th.footable-sortable:hover{cursor:pointer}.footable>thead>tr>th.footable-sorted>span.footable-sort-indicator:before{content:"\e013"}.footable>thead>tr>th.footable-sorted-desc>span.footable-sort-indicator:before{content:"\e012"}.footable>thead>tr>th>span.footable-sort-indicator{display:inline-block;font-family:'footable';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;padding-left:5px}.footable>thead>tr>th>span.footable-sort-indicator:before{content:"\e022"}.footable>tfoot .pagination{margin:0}.footable.no-paging .hide-if-no-paging{display:none}.footable-row-detail-inner{display:table}.footable-row-detail-row{display:table-row;line-height:1.5em}.footable-row-detail-group{display:block;line-height:2em;font-size:1.2em;font-weight:bold}.footable-row-detail-name{display:table-cell;font-weight:bold;padding-right:.5em}.footable-row-detail-value{display:table-cell}.footable-odd{background-color:#f7f7f7} \ No newline at end of file diff --git a/media/footable/css/footable.metro.css b/media/footable/css/footable.metro.css new file mode 100644 index 00000000..8bdb937a --- /dev/null +++ b/media/footable/css/footable.metro.css @@ -0,0 +1,152 @@ +.footable { + border-collapse: separate; + border-spacing: 0; + width: 100%; + border: 3px solid #52b9e9; + font-family: "Open Sans", Arial, Helvetica, sans-serif; + color: #444444; + background: #efefef; + -moz-border-radius: 0; + -webkit-border-radius: 0; + border-radius: 0; +} +.footable.breakpoint > tbody > tr.footable-row-detail { + background: #eeeeee; +} +.footable.breakpoint > tbody > tr:hover:not(.footable-row-detail) { + cursor: pointer; +} +.footable.breakpoint > tbody > tr > td.footable-row-detail-cell { + background: #fff; +} +.footable > tbody img { + vertical-align: middle; +} +.footable > tbody > tr:hover:not(.footable-row-detail) { + background: #dddddd; +} +.footable > tbody > tr:hover:not(.footable-row-detail) > td { + color: #000000; +} +.footable > tbody > tr:last-child > td { + border-bottom: none; +} +.footable > tbody > tr > td { + border-top: 1px solid #dddddd; + padding: 10px; + text-align: left; + border-left: none; +} +.footable > tbody > tr > td.footable-row-detail-cell, +.footable > tbody > tr > td.footable-first-column { + border-left: none; +} +.footable > thead > tr > th { + border-bottom: 1px solid #dddddd; + padding: 10px; + text-align: left; +} +.footable > thead > tr > th, +.footable > thead > tr > td { + background-color: #52b9e9; + border: 1px solid #52b9e9; + color: #ffffff; + border-top: none; + border-left: none; + font-weight: normal; +} +.footable > thead > tr > th.footable-first-column, +.footable > thead > tr > td.footable-first-column { + border-left: none; +} +.footable > tfoot > tr > th, +.footable > tfoot > tr > td { + background-color: #52b9e9; + border: 1px solid #52b9e9; + color: #ffffff; + border-top: none; + border-left: none; + padding: 5px; +} +.footable > tfoot .pagination { + text-align: center; +} +.footable > tfoot .pagination ul { + display: inline-block; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + vertical-align: middle; + margin: 0; + padding: 0; +} +.footable > tfoot .pagination ul > li { + display: inline; +} +.footable > tfoot .pagination ul > li > a, +.footable > tfoot .pagination ul > li > span { + float: left; + border: 2px solid transparent; + margin: 0 3px; + color: #ffffff; + background: transparent; + padding: 1px 5px; + text-decoration: none; +} +.footable > tfoot .pagination ul > li.disabled > a { + color: #888; +} +.footable > tfoot .pagination ul > li.active > a { + border-color: #ffffff; +} +.footable > tfoot .pagination ul > li:first-child > a, +.footable > tfoot .pagination ul > li:last-child > a, +.footable > tfoot .pagination ul > li:first-child > span, +.footable > tfoot .pagination ul > li:last-child > span { + -moz-border-radius: 0; + -webkit-border-radius: 0; + border-radius: 0; +} +.footable.metro-red { + border-color: #fa3031; +} +.footable.metro-red > tfoot > tr > th, +.footable.metro-red > thead > tr > th, +.footable.metro-red > tfoot > tr > td, +.footable.metro-red > thead > tr > td { + background-color: #fa3031; + border-color: #fa3031; +} +.footable.metro-purple { + border-color: #932ab6; +} +.footable.metro-purple > tfoot > tr > th, +.footable.metro-purple > thead > tr > th, +.footable.metro-purple > tfoot > tr > td, +.footable.metro-purple > thead > tr > td { + background-color: #932ab6; + border-color: #932ab6; +} +.footable.metro-green { + border-color: #43c83c; +} +.footable.metro-green > tfoot > tr > th, +.footable.metro-green > thead > tr > th, +.footable.metro-green > tfoot > tr > td, +.footable.metro-green > thead > tr > td { + background-color: #43c83c; + border-color: #43c83c; +} +.footable.metro-blue { + border-color: #1171a3; +} +.footable.metro-blue > tfoot > tr > th, +.footable.metro-blue > thead > tr > th, +.footable.metro-blue > tfoot > tr > td, +.footable.metro-blue > thead > tr > td { + background-color: #1171a3; + border-color: #1171a3; +} +.footable-odd { + background-color: #f7f7f7; +} diff --git a/media/footable/css/footable.metro.min.css b/media/footable/css/footable.metro.min.css new file mode 100644 index 00000000..e603acdb --- /dev/null +++ b/media/footable/css/footable.metro.min.css @@ -0,0 +1 @@ +.footable{border-collapse:separate;border-spacing:0;width:100%;border:3px solid #52b9e9;font-family:"Open Sans",Arial,Helvetica,sans-serif;color:#444;background:#efefef;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.footable.breakpoint>tbody>tr.footable-row-detail{background:#eee}.footable.breakpoint>tbody>tr:hover:not(.footable-row-detail){cursor:pointer}.footable.breakpoint>tbody>tr>td.footable-row-detail-cell{background:#fff}.footable>tbody img{vertical-align:middle}.footable>tbody>tr:hover:not(.footable-row-detail){background:#ddd}.footable>tbody>tr:hover:not(.footable-row-detail)>td{color:#000}.footable>tbody>tr:last-child>td{border-bottom:0}.footable>tbody>tr>td{border-top:1px solid #ddd;padding:10px;text-align:left;border-left:none}.footable>tbody>tr>td.footable-row-detail-cell,.footable>tbody>tr>td.footable-first-column{border-left:none}.footable>thead>tr>th{border-bottom:1px solid #ddd;padding:10px;text-align:left}.footable>thead>tr>th,.footable>thead>tr>td{background-color:#52b9e9;border:1px solid #52b9e9;color:#fff;border-top:0;border-left:none;font-weight:normal}.footable>thead>tr>th.footable-first-column,.footable>thead>tr>td.footable-first-column{border-left:none}.footable>tfoot>tr>th,.footable>tfoot>tr>td{background-color:#52b9e9;border:1px solid #52b9e9;color:#fff;border-top:0;border-left:none;padding:5px}.footable>tfoot .pagination{text-align:center}.footable>tfoot .pagination ul{display:inline-block;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;vertical-align:middle;margin:0;padding:0}.footable>tfoot .pagination ul>li{display:inline}.footable>tfoot .pagination ul>li>a,.footable>tfoot .pagination ul>li>span{float:left;border:2px solid transparent;margin:0 3px;color:#fff;background:transparent;padding:1px 5px;text-decoration:none}.footable>tfoot .pagination ul>li.disabled>a{color:#888}.footable>tfoot .pagination ul>li.active>a{border-color:#fff}.footable>tfoot .pagination ul>li:first-child>a,.footable>tfoot .pagination ul>li:last-child>a,.footable>tfoot .pagination ul>li:first-child>span,.footable>tfoot .pagination ul>li:last-child>span{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.footable.metro-red{border-color:#fa3031}.footable.metro-red>tfoot>tr>th,.footable.metro-red>thead>tr>th,.footable.metro-red>tfoot>tr>td,.footable.metro-red>thead>tr>td{background-color:#fa3031;border-color:#fa3031}.footable.metro-purple{border-color:#932ab6}.footable.metro-purple>tfoot>tr>th,.footable.metro-purple>thead>tr>th,.footable.metro-purple>tfoot>tr>td,.footable.metro-purple>thead>tr>td{background-color:#932ab6;border-color:#932ab6}.footable.metro-green{border-color:#43c83c}.footable.metro-green>tfoot>tr>th,.footable.metro-green>thead>tr>th,.footable.metro-green>tfoot>tr>td,.footable.metro-green>thead>tr>td{background-color:#43c83c;border-color:#43c83c}.footable.metro-blue{border-color:#1171a3}.footable.metro-blue>tfoot>tr>th,.footable.metro-blue>thead>tr>th,.footable.metro-blue>tfoot>tr>td,.footable.metro-blue>thead>tr>td{background-color:#1171a3;border-color:#1171a3}.footable-odd{background-color:#f7f7f7} \ No newline at end of file diff --git a/media/footable/css/footable.standalone.css b/media/footable/css/footable.standalone.css new file mode 100644 index 00000000..a6f44814 --- /dev/null +++ b/media/footable/css/footable.standalone.css @@ -0,0 +1,181 @@ +.footable { + border-collapse: separate; + border-spacing: 0; + border: 1px solid #cccccc; + -moz-border-radius: 6px; + -webkit-border-radius: 6px; + border-radius: 6px; + font-family: 'trebuchet MS', 'Lucida sans', Arial; + font-size: 14px; + color: #444444; + background: #ffffff; +} +.footable > thead > tr:first-child > th.footable-first-column, +.footable > thead > tr:first-child > td.footable-first-column { + -moz-border-radius: 6px 0 0 0; + -webkit-border-radius: 6px 0 0 0; + border-radius: 6px 0 0 0; +} +.footable > thead > tr:first-child > th.footable-last-column, +.footable > thead > tr:first-child > td.footable-last-column { + -moz-border-radius: 0 6px 0 0; + -webkit-border-radius: 0 6px 0 0; + border-radius: 0 6px 0 0; +} +.footable > thead > tr:first-child > th.footable-first-column.footable-last-column, +.footable > thead > tr:first-child > td.footable-first-column.footable-last-column { + -moz-border-radius: 6px 6px 0 0; + -webkit-border-radius: 6px 6px 0 0; + border-radius: 6px 6px 0 0; +} +.footable > thead > tr > th { + border-left: 1px solid #cccccc; + border-top: 1px solid #cccccc; + padding: 10px; + text-align: left; +} +.footable > thead > tr > th, +.footable > thead > tr > td { + background-color: #dce9f9; + background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9)); + background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9); + background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9); + background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9); + background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9); + background-image: linear-gradient(to bottom, #ebf3fc, #dce9f9); + -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; + -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; + border-top: none; + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); +} +.footable > thead > tr > th.footable-first-column, +.footable > thead > tr > td.footable-first-column { + border-left: none; +} +.footable.breakpoint > tbody > tr.footable-row-detail { + background: #eeeeee; +} +.footable.breakpoint > tbody > tr.footable-row-detail > .footable-row-detail-cell { + border-left: none; +} +.footable > tbody img { + vertical-align: middle; +} +.footable > tbody > tr:hover { + background: #fbf8e9; +} +.footable > tbody > tr:last-child > td.footable-first-column { + -moz-border-radius: 0 0 0 6px; + -webkit-border-radius: 0 0 0 6px; + border-radius: 0 0 0 6px; +} +.footable > tbody > tr:last-child > td.footable-last-column { + -moz-border-radius: 0 0 6px 0; + -webkit-border-radius: 0 0 6px 0; + border-radius: 0 0 6px 0; +} +.footable > tbody > tr:last-child > td.footable-first-column.footable-last-column { + -moz-border-radius: 0 0 6px 6px; + -webkit-border-radius: 0 0 6px 6px; + border-radius: 0 0 6px 6px; +} +.footable > tbody > tr > td { + border-top: 1px solid #cccccc; + border-left: 1px solid #cccccc; + padding: 10px; + text-align: left; +} +.footable > tbody > tr > td.footable-first-column { + border-left: none; +} +.footable > tfoot > tr > th, +.footable > tfoot > tr > td { + background-color: #dce9f9; + background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9)); + background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9); + background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9); + background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9); + background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9); + background-image: linear-gradient(to bottom, #ebf3fc, #dce9f9); + -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; + -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; + border-top: 1px solid #cccccc; + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); + padding: 10px; +} +.footable .pagination { + margin: 20px 0; +} +.footable .pagination > ul { + display: inline-block; + margin: 0; + padding: 0; + -moz-border-radius: 6px; + -webkit-border-radius: 6px; + border-radius: 6px; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + background-color: #ffffff; +} +.footable .pagination > ul > li { + display: inline; +} +.footable .pagination > ul > li > a, +.footable .pagination > ul > li > span { + float: left; + padding: 4px 12px; + line-height: 20px; + text-decoration: none; + border: 1px solid #cccccc; + border-left-width: 0; +} +.footable .pagination > ul > li:first-child > a, +.footable .pagination > ul > li:first-child > span { + -webkit-border-bottom-left-radius: 4px; + -moz-border-radius-bottomleft: 4px; + border-bottom-left-radius: 4px; + -webkit-border-top-left-radius: 4px; + -moz-border-radius-topleft: 4px; + border-top-left-radius: 4px; + border-left-width: 1px; +} +.footable .pagination > ul > li:last-child > a, +.footable .pagination > ul > li:last-child > span { + -webkit-border-top-right-radius: 4px; + -moz-border-radius-topright: 4px; + border-top-right-radius: 4px; + -webkit-border-bottom-right-radius: 4px; + -moz-border-radius-bottomright: 4px; + border-bottom-right-radius: 4px; +} +.footable .pagination > ul > li > a:hover, +.footable .pagination > ul > li > a:focus, +.footable .pagination > ul > .active > a, +.footable .pagination > ul > .active > span { + background-color: #eeeeee; +} +.footable .pagination > ul > .active > a, +.footable .pagination > ul > .active > span { + color: #444444; + cursor: default; +} +.footable .pagination > ul > .disabled > span, +.footable .pagination > ul > .disabled > a, +.footable .pagination > ul > .disabled > a:hover, +.footable .pagination > ul > .disabled > a:focus { + color: #cccccc; + cursor: default; + background-color: #ebf3fc; +} +.footable .pagination.pagination-centered { + text-align: center; +} +.footable .pagination.pagination-right { + text-align: center; +} +.footable-odd { + background-color: #f7f7f7; +} diff --git a/media/footable/css/footable.standalone.min.css b/media/footable/css/footable.standalone.min.css new file mode 100644 index 00000000..5d375a29 --- /dev/null +++ b/media/footable/css/footable.standalone.min.css @@ -0,0 +1 @@ +.footable{border-collapse:separate;border-spacing:0;border:1px solid #ccc;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;font-family:'trebuchet MS','Lucida sans',Arial;font-size:14px;color:#444;background:#fff}.footable>thead>tr:first-child>th.footable-first-column,.footable>thead>tr:first-child>td.footable-first-column{-moz-border-radius:6px 0 0 0;-webkit-border-radius:6px 0 0 0;border-radius:6px 0 0 0}.footable>thead>tr:first-child>th.footable-last-column,.footable>thead>tr:first-child>td.footable-last-column{-moz-border-radius:0 6px 0 0;-webkit-border-radius:0 6px 0 0;border-radius:0 6px 0 0}.footable>thead>tr:first-child>th.footable-first-column.footable-last-column,.footable>thead>tr:first-child>td.footable-first-column.footable-last-column{-moz-border-radius:6px 6px 0 0;-webkit-border-radius:6px 6px 0 0;border-radius:6px 6px 0 0}.footable>thead>tr>th{border-left:1px solid #ccc;border-top:1px solid #ccc;padding:10px;text-align:left}.footable>thead>tr>th,.footable>thead>tr>td{background-color:#dce9f9;background-image:-webkit-gradient(linear,left top,left bottom,from(#ebf3fc),to(#dce9f9));background-image:-webkit-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-moz-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-ms-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-o-linear-gradient(top,#ebf3fc,#dce9f9);background-image:linear-gradient(to bottom,#ebf3fc,#dce9f9);-webkit-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;-moz-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;border-top:0;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.footable>thead>tr>th.footable-first-column,.footable>thead>tr>td.footable-first-column{border-left:none}.footable.breakpoint>tbody>tr.footable-row-detail{background:#eee}.footable.breakpoint>tbody>tr.footable-row-detail>.footable-row-detail-cell{border-left:none}.footable>tbody img{vertical-align:middle}.footable>tbody>tr:hover{background:#fbf8e9}.footable>tbody>tr:last-child>td.footable-first-column{-moz-border-radius:0 0 0 6px;-webkit-border-radius:0 0 0 6px;border-radius:0 0 0 6px}.footable>tbody>tr:last-child>td.footable-last-column{-moz-border-radius:0 0 6px 0;-webkit-border-radius:0 0 6px 0;border-radius:0 0 6px 0}.footable>tbody>tr:last-child>td.footable-first-column.footable-last-column{-moz-border-radius:0 0 6px 6px;-webkit-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px}.footable>tbody>tr>td{border-top:1px solid #ccc;border-left:1px solid #ccc;padding:10px;text-align:left}.footable>tbody>tr>td.footable-first-column{border-left:none}.footable>tfoot>tr>th,.footable>tfoot>tr>td{background-color:#dce9f9;background-image:-webkit-gradient(linear,left top,left bottom,from(#ebf3fc),to(#dce9f9));background-image:-webkit-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-moz-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-ms-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-o-linear-gradient(top,#ebf3fc,#dce9f9);background-image:linear-gradient(to bottom,#ebf3fc,#dce9f9);-webkit-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;-moz-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;border-top:1px solid #ccc;text-shadow:0 1px 0 rgba(255,255,255,0.5);padding:10px}.footable .pagination{margin:20px 0}.footable .pagination>ul{display:inline-block;margin:0;padding:0;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#fff}.footable .pagination>ul>li{display:inline}.footable .pagination>ul>li>a,.footable .pagination>ul>li>span{float:left;padding:4px 12px;line-height:20px;text-decoration:none;border:1px solid #ccc;border-left-width:0}.footable .pagination>ul>li:first-child>a,.footable .pagination>ul>li:first-child>span{-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;border-bottom-left-radius:4px;-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;border-left-width:1px}.footable .pagination>ul>li:last-child>a,.footable .pagination>ul>li:last-child>span{-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;border-bottom-right-radius:4px}.footable .pagination>ul>li>a:hover,.footable .pagination>ul>li>a:focus,.footable .pagination>ul>.active>a,.footable .pagination>ul>.active>span{background-color:#eee}.footable .pagination>ul>.active>a,.footable .pagination>ul>.active>span{color:#444;cursor:default}.footable .pagination>ul>.disabled>span,.footable .pagination>ul>.disabled>a,.footable .pagination>ul>.disabled>a:hover,.footable .pagination>ul>.disabled>a:focus{color:#ccc;cursor:default;background-color:#ebf3fc}.footable .pagination.pagination-centered{text-align:center}.footable .pagination.pagination-right{text-align:center}.footable-odd{background-color:#f7f7f7} \ No newline at end of file diff --git a/media/footable/css/index.html b/media/footable/css/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/footable/css/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/footable/dist/footable.all.min.js b/media/footable/dist/footable.all.min.js new file mode 100644 index 00000000..8c2e30c0 --- /dev/null +++ b/media/footable/dist/footable.all.min.js @@ -0,0 +1,14 @@ +/*! + * FooTable - Awesome Responsive Tables + * Version : 2.0.3 + * http://fooplugins.com/plugins/footable-jquery/ + * + * Requires jQuery - http://jquery.com/ + * + * Copyright 2014 Steven Usher & Brad Vincent + * Released under the MIT license + * You are free to use FooTable in commercial projects as long as this copyright header is left intact. + * + * Date: 11 Nov 2014 + */ +(function(e,t){function a(){var e=this;e.id=null,e.busy=!1,e.start=function(t,a){e.busy||(e.stop(),e.id=setTimeout(function(){t(),e.id=null,e.busy=!1},a),e.busy=!0)},e.stop=function(){null!==e.id&&(clearTimeout(e.id),e.id=null,e.busy=!1)}}function i(i,o,n){var r=this;r.id=n,r.table=i,r.options=o,r.breakpoints=[],r.breakpointNames="",r.columns={},r.plugins=t.footable.plugins.load(r);var l=r.options,d=l.classes,s=l.events,u=l.triggers,f=0;return r.timers={resize:new a,register:function(e){return r.timers[e]=new a,r.timers[e]}},r.init=function(){var a=e(t),i=e(r.table);if(t.footable.plugins.init(r),i.hasClass(d.loaded))return r.raise(s.alreadyInitialized),undefined;r.raise(s.initializing),i.addClass(d.loading),i.find(l.columnDataSelector).each(function(){var e=r.getColumnData(this);r.columns[e.index]=e});for(var o in l.breakpoints)r.breakpoints.push({name:o,width:l.breakpoints[o]}),r.breakpointNames+=o+" ";r.breakpoints.sort(function(e,t){return e.width-t.width}),i.unbind(u.initialize).bind(u.initialize,function(){i.removeData("footable_info"),i.data("breakpoint",""),i.trigger(u.resize),i.removeClass(d.loading),i.addClass(d.loaded).addClass(d.main),r.raise(s.initialized)}).unbind(u.redraw).bind(u.redraw,function(){r.redraw()}).unbind(u.resize).bind(u.resize,function(){r.resize()}).unbind(u.expandFirstRow).bind(u.expandFirstRow,function(){i.find(l.toggleSelector).first().not("."+d.detailShow).trigger(u.toggleRow)}).unbind(u.expandAll).bind(u.expandAll,function(){i.find(l.toggleSelector).not("."+d.detailShow).trigger(u.toggleRow)}).unbind(u.collapseAll).bind(u.collapseAll,function(){i.find("."+d.detailShow).trigger(u.toggleRow)}),i.trigger(u.initialize),a.bind("resize.footable",function(){r.timers.resize.stop(),r.timers.resize.start(function(){r.raise(u.resize)},l.delay)})},r.addRowToggle=function(){if(l.addRowToggle){var t=e(r.table),a=!1;t.find("span."+d.toggle).remove();for(var i in r.columns){var o=r.columns[i];if(o.toggle){a=!0;var n="> tbody > tr:not(."+d.detail+",."+d.disabled+") > td:nth-child("+(parseInt(o.index,10)+1)+"),"+"> tbody > tr:not(."+d.detail+",."+d.disabled+") > th:nth-child("+(parseInt(o.index,10)+1)+")";return t.find(n).not("."+d.detailCell).prepend(e(l.toggleHTMLElement).addClass(d.toggle)),undefined}}a||t.find("> tbody > tr:not(."+d.detail+",."+d.disabled+") > td:first-child").add("> tbody > tr:not(."+d.detail+",."+d.disabled+") > th:first-child").not("."+d.detailCell).prepend(e(l.toggleHTMLElement).addClass(d.toggle))}},r.setColumnClasses=function(){var t=e(r.table);for(var a in r.columns){var i=r.columns[a];if(null!==i.className){var o="",n=!0;e.each(i.matches,function(e,t){n||(o+=", "),o+="> tbody > tr:not(."+d.detail+") > td:nth-child("+(parseInt(t,10)+1)+")",n=!1}),t.find(o).not("."+d.detailCell).addClass(i.className)}}},r.bindToggleSelectors=function(){var t=e(r.table);r.hasAnyBreakpointColumn()&&(t.find(l.toggleSelector).unbind(u.toggleRow).bind(u.toggleRow,function(){var t=e(this).is("tr")?e(this):e(this).parents("tr:first");r.toggleDetail(t)}),t.find(l.toggleSelector).unbind("click.footable").bind("click.footable",function(a){t.is(".breakpoint")&&e(a.target).is("td,th,."+d.toggle)&&e(this).trigger(u.toggleRow)}))},r.parse=function(e,t){var a=l.parsers[t.type]||l.parsers.alpha;return a(e)},r.getColumnData=function(t){var a=e(t),i=a.data("hide"),o=a.index();i=i||"",i=jQuery.map(i.split(","),function(e){return jQuery.trim(e)});var n={index:o,hide:{},type:a.data("type")||"alpha",name:a.data("name")||e.trim(a.text()),ignore:a.data("ignore")||!1,toggle:a.data("toggle")||!1,className:a.data("class")||null,matches:[],names:{},group:a.data("group")||null,groupName:null,isEditable:a.data("editable")};if(null!==n.group){var d=e(r.table).find('> thead > tr.footable-group-row > th[data-group="'+n.group+'"], > thead > tr.footable-group-row > td[data-group="'+n.group+'"]').first();n.groupName=r.parse(d,{type:"alpha"})}var u=parseInt(a.prev().attr("colspan")||0,10);f+=u>1?u-1:0;var p=parseInt(a.attr("colspan")||0,10),c=n.index+f;if(p>1){var b=a.data("names");b=b||"",b=b.split(",");for(var g=0;p>g;g++)n.matches.push(g+c),b.length>g&&(n.names[g+c]=b[g])}else n.matches.push(c);n.hide["default"]="all"===a.data("hide")||e.inArray("default",i)>=0;var h=!1;for(var m in l.breakpoints)n.hide[m]="all"===a.data("hide")||e.inArray(m,i)>=0,h=h||n.hide[m];n.hasBreakpoint=h;var v=r.raise(s.columnData,{column:{data:n,th:t}});return v.column.data},r.getViewportWidth=function(){return window.innerWidth||(document.body?document.body.offsetWidth:0)},r.calculateWidth=function(e,t){return jQuery.isFunction(l.calculateWidthOverride)?l.calculateWidthOverride(e,t):(t.viewportWidth<t.width&&(t.width=t.viewportWidth),t.parentWidth<t.width&&(t.width=t.parentWidth),t)},r.hasBreakpointColumn=function(e){for(var t in r.columns)if(r.columns[t].hide[e]){if(r.columns[t].ignore)continue;return!0}return!1},r.hasAnyBreakpointColumn=function(){for(var e in r.columns)if(r.columns[e].hasBreakpoint)return!0;return!1},r.resize=function(){var t=e(r.table);if(t.is(":visible")){if(!r.hasAnyBreakpointColumn())return t.trigger(u.redraw),undefined;var a={width:t.width(),viewportWidth:r.getViewportWidth(),parentWidth:t.parent().width()};a=r.calculateWidth(t,a);var i=t.data("footable_info");if(t.data("footable_info",a),r.raise(s.resizing,{old:i,info:a}),!i||i&&i.width&&i.width!==a.width){for(var o,n=null,l=0;r.breakpoints.length>l;l++)if(o=r.breakpoints[l],o&&o.width&&a.width<=o.width){n=o;break}var d=null===n?"default":n.name,f=r.hasBreakpointColumn(d),p=t.data("breakpoint");t.data("breakpoint",d).removeClass("default breakpoint").removeClass(r.breakpointNames).addClass(d+(f?" breakpoint":"")),d!==p&&(t.trigger(u.redraw),r.raise(s.breakpoint,{breakpoint:d,info:a}))}r.raise(s.resized,{old:i,info:a})}},r.redraw=function(){r.addRowToggle(),r.bindToggleSelectors(),r.setColumnClasses();var t=e(r.table),a=t.data("breakpoint"),i=r.hasBreakpointColumn(a);t.find("> tbody > tr:not(."+d.detail+")").data("detail_created",!1).end().find("> thead > tr:last-child > th").each(function(){var i=r.columns[e(this).index()],o="",n=!0;e.each(i.matches,function(e,t){n||(o+=", ");var a=t+1;o+="> tbody > tr:not(."+d.detail+") > td:nth-child("+a+")",o+=", > tfoot > tr:not(."+d.detail+") > td:nth-child("+a+")",o+=", > colgroup > col:nth-child("+a+")",n=!1}),o+=', > thead > tr[data-group-row="true"] > th[data-group="'+i.group+'"]';var l=t.find(o).add(this);if(""!==a&&(i.hide[a]===!1?l.addClass("footable-visible").show():l.removeClass("footable-visible").hide()),1===t.find("> thead > tr.footable-group-row").length){var s=t.find('> thead > tr:last-child > th[data-group="'+i.group+'"]:visible, > thead > tr:last-child > th[data-group="'+i.group+'"]:visible'),u=t.find('> thead > tr.footable-group-row > th[data-group="'+i.group+'"], > thead > tr.footable-group-row > td[data-group="'+i.group+'"]'),f=0;e.each(s,function(){f+=parseInt(e(this).attr("colspan")||1,10)}),f>0?u.attr("colspan",f).show():u.hide()}}).end().find("> tbody > tr."+d.detailShow).each(function(){r.createOrUpdateDetailRow(this)}),t.find("[data-bind-name]").each(function(){r.toggleInput(this)}),t.find("> tbody > tr."+d.detailShow+":visible").each(function(){var t=e(this).next();t.hasClass(d.detail)&&(i?t.show():t.hide())}),t.find("> thead > tr > th.footable-last-column, > tbody > tr > td.footable-last-column").removeClass("footable-last-column"),t.find("> thead > tr > th.footable-first-column, > tbody > tr > td.footable-first-column").removeClass("footable-first-column"),t.find("> thead > tr, > tbody > tr").find("> th.footable-visible:last, > td.footable-visible:last").addClass("footable-last-column").end().find("> th.footable-visible:first, > td.footable-visible:first").addClass("footable-first-column"),r.raise(s.redrawn)},r.toggleDetail=function(t){var a=t.jquery?t:e(t),i=a.next();a.hasClass(d.detailShow)?(a.removeClass(d.detailShow),i.hasClass(d.detail)&&i.hide(),r.raise(s.rowCollapsed,{row:a[0]})):(r.createOrUpdateDetailRow(a[0]),a.addClass(d.detailShow).next().show(),r.raise(s.rowExpanded,{row:a[0]}))},r.removeRow=function(t){var a=t.jquery?t:e(t);a.hasClass(d.detail)&&(a=a.prev());var i=a.next();a.data("detail_created")===!0&&i.remove(),a.remove(),r.raise(s.rowRemoved)},r.appendRow=function(t){var a=t.jquery?t:e(t);e(r.table).find("tbody").append(a),r.redraw()},r.getColumnFromTdIndex=function(t){var a=null;for(var i in r.columns)if(e.inArray(t,r.columns[i].matches)>=0){a=r.columns[i];break}return a},r.createOrUpdateDetailRow=function(t){var a,i=e(t),o=i.next(),n=[];if(i.data("detail_created")===!0)return!0;if(i.is(":hidden"))return!1;if(r.raise(s.rowDetailUpdating,{row:i,detail:o}),i.find("> td:hidden").each(function(){var t=e(this).index(),a=r.getColumnFromTdIndex(t),i=a.name;if(a.ignore===!0)return!0;t in a.names&&(i=a.names[t]);var o=e(this).attr("data-bind-name");if(null!=o&&e(this).is(":empty")){var l=e("."+d.detailInnerValue+"["+'data-bind-value="'+o+'"]');e(this).html(e(l).contents().detach())}var s;return a.isEditable!==!1&&(a.isEditable||e(this).find(":input").length>0)&&(null==o&&(o="bind-"+e.now()+"-"+t,e(this).attr("data-bind-name",o)),s=e(this).contents().detach()),s||(s=e(this).contents().clone(!0,!0)),n.push({name:i,value:r.parse(this,a),display:s,group:a.group,groupName:a.groupName,bindName:o}),!0}),0===n.length)return!1;var u=i.find("> td:visible").length,f=o.hasClass(d.detail);return f||(o=e('<tr class="'+d.detail+'"><td class="'+d.detailCell+'"><div class="'+d.detailInner+'"></div></td></tr>'),i.after(o)),o.find("> td:first").attr("colspan",u),a=o.find("."+d.detailInner).empty(),l.createDetail(a,n,l.createGroupedDetail,l.detailSeparator,d),i.data("detail_created",!0),r.raise(s.rowDetailUpdated,{row:i,detail:o}),!f},r.raise=function(t,a){r.options.debug===!0&&e.isFunction(r.options.log)&&r.options.log(t,"event"),a=a||{};var i={ft:r};e.extend(!0,i,a);var o=e.Event(t,i);return o.ft||e.extend(!0,o,i),e(r.table).trigger(o),o},r.reset=function(){var t=e(r.table);t.removeData("footable_info").data("breakpoint","").removeClass(d.loading).removeClass(d.loaded),t.find(l.toggleSelector).unbind(u.toggleRow).unbind("click.footable"),t.find("> tbody > tr").removeClass(d.detailShow),t.find("> tbody > tr."+d.detail).remove(),r.raise(s.reset)},r.toggleInput=function(t){var a=e(t).attr("data-bind-name");if(null!=a){var i=e("."+d.detailInnerValue+"["+'data-bind-value="'+a+'"]');null!=i&&(e(t).is(":visible")?e(i).is(":empty")||e(t).html(e(i).contents().detach()):e(t).is(":empty")||e(i).html(e(t).contents().detach()))}},r.init(),r}t.footable={options:{delay:100,breakpoints:{phone:480,tablet:1024},parsers:{alpha:function(t){return e(t).data("value")||e.trim(e(t).text())},numeric:function(t){var a=e(t).data("value")||e(t).text().replace(/[^0-9.\-]/g,"");return a=parseFloat(a),isNaN(a)&&(a=0),a}},addRowToggle:!0,calculateWidthOverride:null,toggleSelector:" > tbody > tr:not(.footable-row-detail)",columnDataSelector:"> thead > tr:last-child > th, > thead > tr:last-child > td",detailSeparator:":",toggleHTMLElement:"<span />",createGroupedDetail:function(e){for(var t={_none:{name:null,data:[]}},a=0;e.length>a;a++){var i=e[a].group;null!==i?(i in t||(t[i]={name:e[a].groupName||e[a].group,data:[]}),t[i].data.push(e[a])):t._none.data.push(e[a])}return t},createDetail:function(t,a,i,o,n){var r=i(a);for(var l in r)if(0!==r[l].data.length){"_none"!==l&&t.append('<div class="'+n.detailInnerGroup+'">'+r[l].name+"</div>");for(var d=0;r[l].data.length>d;d++){var s=r[l].data[d].name?o:"";t.append(e("<div></div>").addClass(n.detailInnerRow).append(e("<div></div>").addClass(n.detailInnerName).append(r[l].data[d].name+s)).append(e("<div></div>").addClass(n.detailInnerValue).attr("data-bind-value",r[l].data[d].bindName).append(r[l].data[d].display)))}}},classes:{main:"footable",loading:"footable-loading",loaded:"footable-loaded",toggle:"footable-toggle",disabled:"footable-disabled",detail:"footable-row-detail",detailCell:"footable-row-detail-cell",detailInner:"footable-row-detail-inner",detailInnerRow:"footable-row-detail-row",detailInnerGroup:"footable-row-detail-group",detailInnerName:"footable-row-detail-name",detailInnerValue:"footable-row-detail-value",detailShow:"footable-detail-show"},triggers:{initialize:"footable_initialize",resize:"footable_resize",redraw:"footable_redraw",toggleRow:"footable_toggle_row",expandFirstRow:"footable_expand_first_row",expandAll:"footable_expand_all",collapseAll:"footable_collapse_all"},events:{alreadyInitialized:"footable_already_initialized",initializing:"footable_initializing",initialized:"footable_initialized",resizing:"footable_resizing",resized:"footable_resized",redrawn:"footable_redrawn",breakpoint:"footable_breakpoint",columnData:"footable_column_data",rowDetailUpdating:"footable_row_detail_updating",rowDetailUpdated:"footable_row_detail_updated",rowCollapsed:"footable_row_collapsed",rowExpanded:"footable_row_expanded",rowRemoved:"footable_row_removed",reset:"footable_reset"},debug:!1,log:null},version:{major:0,minor:5,toString:function(){return t.footable.version.major+"."+t.footable.version.minor},parse:function(e){var t=/(\d+)\.?(\d+)?\.?(\d+)?/.exec(e);return{major:parseInt(t[1],10)||0,minor:parseInt(t[2],10)||0,patch:parseInt(t[3],10)||0}}},plugins:{_validate:function(a){if(!e.isFunction(a))return t.footable.options.debug===!0&&console.error('Validation failed, expected type "function", received type "{0}".',typeof a),!1;var i=new a;return"string"!=typeof i.name?(t.footable.options.debug===!0&&console.error('Validation failed, plugin does not implement a string property called "name".',i),!1):e.isFunction(i.init)?(t.footable.options.debug===!0&&console.log('Validation succeeded for plugin "'+i.name+'".',i),!0):(t.footable.options.debug===!0&&console.error('Validation failed, plugin "'+i.name+'" does not implement a function called "init".',i),!1)},registered:[],register:function(a,i){t.footable.plugins._validate(a)&&(t.footable.plugins.registered.push(a),"object"==typeof i&&e.extend(!0,t.footable.options,i))},load:function(e){var a,i,o=[];for(i=0;t.footable.plugins.registered.length>i;i++)try{a=t.footable.plugins.registered[i],o.push(new a(e))}catch(n){t.footable.options.debug===!0&&console.error(n)}return o},init:function(e){for(var a=0;e.plugins.length>a;a++)try{e.plugins[a].init(e)}catch(i){t.footable.options.debug===!0&&console.error(i)}}}};var o=0;e.fn.footable=function(a){a=a||{};var n=e.extend(!0,{},t.footable.options,a);return this.each(function(){o++;var t=new i(this,n,o);e(this).data("footable",t)})}})(jQuery,window);;(function(e,t,undefined){function a(t){var a=e("<th>"+t.title+"</th>");return e.isPlainObject(t.data)&&a.data(t.data),e.isPlainObject(t.style)&&a.css(t.style),t.className&&a.addClass(t.className),a}function o(t,o){var i=t.find("thead");0===i.size()&&(i=e("<thead>").appendTo(t));for(var n=e("<tr>").appendTo(i),r=0,l=o.cols.length;l>r;r++)n.append(a(o.cols[r]))}function i(t){var a=t.find("tbody");0===a.size()&&(a=e("<tbody>").appendTo(t))}function n(t,a,o){if(o){t.attr("data-page-size",o["page-size"]);var i=t.find("tfoot");0===i.size()&&(i=e('<tfoot class="hide-if-no-paging"></tfoot>').appendTo(t)),i.append("<tr><td colspan="+a.length+"></td></tr>");var n=e("<div>").appendTo(i.find("tr:last-child td"));n.addClass(o["pagination-class"])}}function r(t){for(var a=t[0],o=0,i=t.length;i>o;o++){var n=t[o];if(n.data&&(n.data.toggle===!0||"true"===n.data.toggle))return}a.data=e.extend(a.data,{toggle:!0})}function l(e,t,a){0===e.find("tr.emptyInfo").size()&&e.find("tbody").append('<tr class="emptyInfo"><td colspan="'+t.length+'">'+a+"</td></tr>")}function d(t,a,o,i){t.find("tr:not(."+o+")").each(function(){var t=e(this),o=a.data("index"),n=parseInt(t.data("index"),0),r=n+i;n>=o&&this!==a.get(0)&&t.attr("data-index",r).data("index",r)})}function s(){function t(t,a,o){var i=e("<td>");return t.formatter?i.html(t.formatter(a,i,o)):i.html(a||""),i}var a=this;a.name="Footable Grid",a.init=function(t){var d=t.options.classes.toggle,s=t.options.classes.detail,f=t.options.grid;if(f.cols){a.footable=t;var u=e(t.table);u.data("grid",a),e.isPlainObject(f.data)&&u.data(f.data),a._items=[],r(f.cols),f.showCheckbox&&(f.multiSelect=!0,f.cols.unshift({title:f.checkboxFormatter(!0),name:"",data:{"sort-ignore":!0},formatter:f.checkboxFormatter})),f.showIndex&&f.cols.unshift({title:"#",name:"index",data:{"sort-ignore":!0},formatter:f.indexFormatter}),o(u,f),i(u),n(u,f.cols,f.pagination),u.off(".grid").on({"footable_initialized.grid":function(){f.url||f.ajax?e.ajax(f.ajax||{url:f.url}).then(function(e){a.newItem(e),t.raise(f.events.loaded)},function(){throw"load data from "+(f.url||f.ajax.url)+" fail"}):(a.newItem(f.items||[]),t.raise(f.events.loaded))},"footable_sorted.grid footable_grid_created.grid footable_grid_removed.grid":function(){f.showIndex&&a.getItem().length>0&&u.find("tbody tr:not(."+s+")").each(function(t){var a=e(this).find("td:first");a.html(f.indexFormatter(null,a,t))})},"footable_redrawn.grid footable_row_removed.grid":function(){0===a.getItem().length&&f.showEmptyInfo&&l(u,f.cols,f.emptyInfo)}}).on({"click.grid":function(a){if(e(a.target).closest("td").find(">."+d).size()>0)return!0;var o=e(a.currentTarget);return o.hasClass(s)?!0:(f.multiSelect||o.hasClass(f.activeClass)||u.find("tbody tr."+f.activeClass).removeClass(f.activeClass),o.toggleClass(f.activeClass),f.showCheckbox&&o.find("input:checkbox.check").prop("checked",function(e,t){return a.target===this?t:!t}),t.toggleDetail(o),undefined)}},"tbody tr").on("click.grid","thead input:checkbox.checkAll",function(e){var t=!!e.currentTarget.checked;t?u.find("tbody tr").addClass(f.activeClass):u.find("tbody tr").removeClass(f.activeClass),u.find("tbody input:checkbox.check").prop("checked",t)})}},a.getSelected=function(){var t=a.footable.options.grid,o=e(a.footable.table).find("tbody>tr."+t.activeClass);return o.map(function(){return e(this).data("index")})},a.getItem=function(t){return t!==undefined?e.isArray(t)?e.map(t,function(e){return a._items[e]}):a._items[t]:a._items},a._makeRow=function(o,i){var n,r=a.footable.options.grid;if(e.isFunction(r.template))n=e(r.template(e.extend({},{__index:i},o)));else{n=e("<tr>");for(var l=0,d=r.cols.length;d>l;l++){var s=r.cols[l];n.append(t(s,o[s.name]||"",i))}}return n.attr("data-index",i),n},a.newItem=function(t,o,i){var n=e(a.footable.table).find("tbody"),r=a.footable.options.classes.detail;if(n.find("tr.emptyInfo").remove(),e.isArray(t)){for(var l;l=t.pop();)a.newItem(l,o,!0);return a.footable.redraw(),a.footable.raise(a.footable.options.grid.events.created,{item:t,index:o}),undefined}if(e.isPlainObject(t)){var s,f=a._items.length;if(o===undefined||0>o||o>f)s=a._makeRow(t,f++),a._items.push(t),n.append(s);else{if(s=a._makeRow(t,o),0===o)a._items.unshift(t),n.prepend(s);else{var u=n.find("tr[data-index="+(o-1)+"]");a._items.splice(o,0,t),u.data("detail_created")===!0&&(u=u.next()),u.after(s)}d(n,s,r,1)}i||(a.footable.redraw(),a.footable.raise(a.footable.options.grid.events.created,{item:t,index:o}))}},a.setItem=function(t,o){if(e.isPlainObject(t)){var i=e(a.footable.table).find("tbody"),n=a._makeRow(t,o);e.extend(a._items[o],t);var r=i.find("tr").eq(o);r.html(n.html()),a.footable.redraw(),a.footable.raise(a.footable.options.grid.events.updated,{item:t,index:o})}},a.removeItem=function(t){var o=e(a.footable.table).find("tbody"),i=a.footable.options.classes.detail,n=[];if(e.isArray(t)){for(var r;r=t.pop();)n.push(a.removeItem(r));return a.footable.raise(a.footable.options.grid.events.removed,{item:n,index:t}),n}if(t===undefined)o.find("tr").each(function(){n.push(a._items.shift()),a.footable.removeRow(this)});else{var l=o.find("tr[data-index="+t+"]");n=a._items.splice(t,1)[0],a.footable.removeRow(l),d(o,l,i,-1)}return a.footable.raise(a.footable.options.grid.events.removed,{item:n,index:t}),n}}if(t.footable===undefined||null===t.foobox)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var f={grid:{enabled:!0,data:null,template:null,cols:null,items:null,url:null,ajax:null,activeClass:"active",multiSelect:!1,showIndex:!1,showCheckbox:!1,showEmptyInfo:!1,emptyInfo:'<p class="text-center text-warning">No Data</p>',pagination:{"page-size":20,"pagination-class":"pagination pagination-centered"},indexFormatter:function(e,t,a){return a+1},checkboxFormatter:function(e){return'<input type="checkbox" class="'+(e?"checkAll":"check")+'">'},events:{loaded:"footable_grid_loaded",created:"footable_grid_created",removed:"footable_grid_removed",updated:"footable_grid_updated"}}};t.footable.plugins.register(s,f)})(jQuery,window);;(function(t,e,undefined){function a(){var e=this;e.name="Footable Filter",e.init=function(a){if(e.footable=a,a.options.filter.enabled===!0){if(t(a.table).data("filter")===!1)return;a.timers.register("filter"),t(a.table).unbind(".filtering").bind({"footable_initialized.filtering":function(){var i=t(a.table),o={input:i.data("filter")||a.options.filter.input,timeout:i.data("filter-timeout")||a.options.filter.timeout,minimum:i.data("filter-minimum")||a.options.filter.minimum,disableEnter:i.data("filter-disable-enter")||a.options.filter.disableEnter};o.disableEnter&&t(o.input).keypress(function(t){return window.event?13!==window.event.keyCode:13!==t.which}),i.bind("footable_clear_filter",function(){t(o.input).val(""),e.clearFilter()}),i.bind("footable_filter",function(t,a){e.filter(a.filter)}),t(o.input).keyup(function(i){a.timers.filter.stop(),27===i.which&&t(o.input).val(""),a.timers.filter.start(function(){var a=t(o.input).val()||"";e.filter(a)},o.timeout)})},"footable_redrawn.filtering":function(){var i=t(a.table),o=i.data("filter-string");o&&e.filter(o)}}).data("footable-filter",e)}},e.filter=function(a){var i=e.footable,o=t(i.table),n=o.data("filter-minimum")||i.options.filter.minimum,r=!a,l=i.raise("footable_filtering",{filter:a,clear:r});if(!(l&&l.result===!1||l.filter&&n>l.filter.length))if(l.clear)e.clearFilter();else{var d=l.filter.split(" ");o.find("> tbody > tr").hide().addClass("footable-filtered");var s=o.find("> tbody > tr:not(.footable-row-detail)");t.each(d,function(t,e){e&&e.length>0&&(o.data("current-filter",e),s=s.filter(i.options.filter.filterFunction))}),s.each(function(){e.showRow(this,i),t(this).removeClass("footable-filtered")}),o.data("filter-string",l.filter),i.raise("footable_filtered",{filter:l.filter,clear:!1})}},e.clearFilter=function(){var a=e.footable,i=t(a.table);i.find("> tbody > tr:not(.footable-row-detail)").removeClass("footable-filtered").each(function(){e.showRow(this,a)}),i.removeData("filter-string"),a.raise("footable_filtered",{clear:!0})},e.showRow=function(e,a){var i=t(e),o=i.next(),n=t(a.table);i.is(":visible")||(n.hasClass("breakpoint")&&i.hasClass("footable-detail-show")&&o.hasClass("footable-row-detail")?(i.add(o).show(),a.createOrUpdateDetailRow(e)):i.show())}}if(e.footable===undefined||null===e.footable)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var i={filter:{enabled:!0,input:".footable-filter",timeout:300,minimum:2,disableEnter:!1,filterFunction:function(){var e=t(this),a=e.parents("table:first"),i=a.data("current-filter").toUpperCase(),o=e.find("td").text();return a.data("filter-text-only")||e.find("td[data-value]").each(function(){o+=t(this).data("value")}),o.toUpperCase().indexOf(i)>=0}}};e.footable.plugins.register(a,i)})(jQuery,window);;(function(e,t,undefined){function a(t){var a=e(t.table),i=a.data();this.pageNavigation=i.pageNavigation||t.options.pageNavigation,this.pageSize=i.pageSize||t.options.pageSize,this.firstText=i.firstText||t.options.firstText,this.previousText=i.previousText||t.options.previousText,this.nextText=i.nextText||t.options.nextText,this.lastText=i.lastText||t.options.lastText,this.limitNavigation=parseInt(i.limitNavigation||t.options.limitNavigation||o.limitNavigation,10),this.limitPreviousText=i.limitPreviousText||t.options.limitPreviousText,this.limitNextText=i.limitNextText||t.options.limitNextText,this.limit=this.limitNavigation>0,this.currentPage=i.currentPage||0,this.pages=[],this.control=!1}function i(){var t=this;t.name="Footable Paginate",t.init=function(a){if(a.options.paginate===!0){if(e(a.table).data("page")===!1)return;t.footable=a,e(a.table).unbind(".paging").bind({"footable_initialized.paging footable_row_removed.paging footable_redrawn.paging footable_sorted.paging footable_filtered.paging":function(){t.setupPaging()}}).data("footable-paging",t)}},t.setupPaging=function(){var i=t.footable,o=e(i.table).find("> tbody");i.pageInfo=new a(i),t.createPages(i,o),t.createNavigation(i,o),t.fillPage(i,o,i.pageInfo.currentPage)},t.createPages=function(t,a){var i=1,o=t.pageInfo,n=i*o.pageSize,r=[],l=[];o.pages=[];var d=a.find("> tr:not(.footable-filtered,.footable-row-detail)");d.each(function(e,t){r.push(t),e===n-1?(o.pages.push(r),i++,n=i*o.pageSize,r=[]):e>=d.length-d.length%o.pageSize&&l.push(t)}),l.length>0&&o.pages.push(l),o.currentPage>=o.pages.length&&(o.currentPage=o.pages.length-1),0>o.currentPage&&(o.currentPage=0),1===o.pages.length?e(t.table).addClass("no-paging"):e(t.table).removeClass("no-paging")},t.createNavigation=function(a){var i=e(a.table).find(a.pageInfo.pageNavigation);if(0===i.length){if(i=e(a.pageInfo.pageNavigation),i.parents("table:first").length>0&&i.parents("table:first")!==e(a.table))return;i.length>1&&a.options.debug===!0&&console.error("More than one pagination control was found!")}if(0!==i.length){i.is("ul")||(0===i.find("ul:first").length&&i.append("<ul />"),i=i.find("ul")),i.find("li").remove();var o=a.pageInfo;o.control=i,o.pages.length>0&&(i.append('<li class="footable-page-arrow"><a data-page="first" href="#first">'+a.pageInfo.firstText+"</a>"),i.append('<li class="footable-page-arrow"><a data-page="prev" href="#prev">'+a.pageInfo.previousText+"</a></li>"),o.limit&&i.append('<li class="footable-page-arrow"><a data-page="limit-prev" href="#limit-prev">'+a.pageInfo.limitPreviousText+"</a></li>"),o.limit||e.each(o.pages,function(e,t){t.length>0&&i.append('<li class="footable-page"><a data-page="'+e+'" href="#">'+(e+1)+"</a></li>")}),o.limit&&(i.append('<li class="footable-page-arrow"><a data-page="limit-next" href="#limit-next">'+a.pageInfo.limitNextText+"</a></li>"),t.createLimited(i,o,0)),i.append('<li class="footable-page-arrow"><a data-page="next" href="#next">'+a.pageInfo.nextText+"</a></li>"),i.append('<li class="footable-page-arrow"><a data-page="last" href="#last">'+a.pageInfo.lastText+"</a></li>")),i.off("click","a[data-page]").on("click","a[data-page]",function(n){n.preventDefault();var r=e(this).data("page"),l=o.currentPage;if("first"===r)l=0;else if("prev"===r)l>0&&l--;else if("next"===r)o.pages.length-1>l&&l++;else if("last"===r)l=o.pages.length-1;else if("limit-prev"===r){l=-1;var d=i.find(".footable-page:first a").data("page");t.createLimited(i,o,d-o.limitNavigation),t.setPagingClasses(i,o.currentPage,o.pages.length)}else if("limit-next"===r){l=-1;var s=i.find(".footable-page:last a").data("page");t.createLimited(i,o,s+1),t.setPagingClasses(i,o.currentPage,o.pages.length)}else l=r;if(l>=0){if(o.limit&&o.currentPage!=l){for(var f=l;0!==f%o.limitNavigation;)f-=1;t.createLimited(i,o,f)}t.paginate(a,l)}}),t.setPagingClasses(i,o.currentPage,o.pages.length)}},t.createLimited=function(e,t,a){a=a||0,e.find("li.footable-page").remove();var i,o,n=e.find('li.footable-page-arrow > a[data-page="limit-prev"]').parent(),r=e.find('li.footable-page-arrow > a[data-page="limit-next"]').parent();for(i=t.pages.length-1;i>=0;i--)o=t.pages[i],i>=a&&a+t.limitNavigation>i&&o.length>0&&n.after('<li class="footable-page"><a data-page="'+i+'" href="#">'+(i+1)+"</a></li>");0===a?n.hide():n.show(),a+t.limitNavigation>=t.pages.length?r.hide():r.show()},t.paginate=function(a,i){var o=a.pageInfo;if(o.currentPage!==i){var n=e(a.table).find("> tbody"),r=a.raise("footable_paging",{page:i,size:o.pageSize});if(r&&r.result===!1)return;t.fillPage(a,n,i),o.control.find("li").removeClass("active disabled"),t.setPagingClasses(o.control,o.currentPage,o.pages.length)}},t.setPagingClasses=function(e,t,a){e.find("li.footable-page > a[data-page="+t+"]").parent().addClass("active"),t>=a-1&&(e.find('li.footable-page-arrow > a[data-page="next"]').parent().addClass("disabled"),e.find('li.footable-page-arrow > a[data-page="last"]').parent().addClass("disabled")),1>t&&(e.find('li.footable-page-arrow > a[data-page="first"]').parent().addClass("disabled"),e.find('li.footable-page-arrow > a[data-page="prev"]').parent().addClass("disabled"))},t.fillPage=function(a,i,o){a.pageInfo.currentPage=o,e(a.table).data("currentPage",o),i.find("> tr").hide(),e(a.pageInfo.pages[o]).each(function(){t.showRow(this,a)}),a.raise("footable_page_filled")},t.showRow=function(t,a){var i=e(t),o=i.next(),n=e(a.table);n.hasClass("breakpoint")&&i.hasClass("footable-detail-show")&&o.hasClass("footable-row-detail")?(i.add(o).show(),a.createOrUpdateDetailRow(t)):i.show()}}if(t.footable===undefined||null===t.footable)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var o={paginate:!0,pageSize:10,pageNavigation:".pagination",firstText:"&laquo;",previousText:"&lsaquo;",nextText:"&rsaquo;",lastText:"&raquo;",limitNavigation:0,limitPreviousText:"...",limitNextText:"..."};t.footable.plugins.register(i,o)})(jQuery,window);;(function(t,e,undefined){function a(){var e=this;e.name="Footable Sortable",e.init=function(a){e.footable=a,a.options.sort===!0&&t(a.table).unbind(".sorting").bind({"footable_initialized.sorting":function(){var i,o,n=t(a.table),r=(n.find("> tbody"),a.options.classes.sort);if(n.data("sort")!==!1){n.find("> thead > tr:last-child > th, > thead > tr:last-child > td").each(function(){var e=t(this),i=a.columns[e.index()];i.sort.ignore===!0||e.hasClass(r.sortable)||(e.addClass(r.sortable),t("<span />").addClass(r.indicator).appendTo(e))}),n.find("> thead > tr:last-child > th."+r.sortable+", > thead > tr:last-child > td."+r.sortable).unbind("click.footable").bind("click.footable",function(a){a.preventDefault(),o=t(this);var i=!o.hasClass(r.sorted);return e.doSort(o.index(),i),!1});var l=!1;for(var s in a.columns)if(i=a.columns[s],i.sort.initial){var d="descending"!==i.sort.initial;e.doSort(i.index,d);break}l&&a.bindToggleSelectors()}},"footable_redrawn.sorting":function(){var i=t(a.table),o=a.options.classes.sort;i.data("sorted")>=0&&i.find("> thead > tr:last-child > th").each(function(a){var i=t(this);return i.hasClass(o.sorted)||i.hasClass(o.descending)?(e.doSort(a),undefined):undefined})},"footable_column_data.sorting":function(e){var a=t(e.column.th);e.column.data.sort=e.column.data.sort||{},e.column.data.sort.initial=a.data("sort-initial")||!1,e.column.data.sort.ignore=a.data("sort-ignore")||!1,e.column.data.sort.selector=a.data("sort-selector")||null;var i=a.data("sort-match")||0;i>=e.column.data.matches.length&&(i=0),e.column.data.sort.match=e.column.data.matches[i]}}).data("footable-sort",e)},e.doSort=function(a,i){var o=e.footable;if(t(o.table).data("sort")!==!1){var n=t(o.table),r=n.find("> tbody"),l=o.columns[a],s=n.find("> thead > tr:last-child > th:eq("+a+")"),d=o.options.classes.sort,f=o.options.events.sort;if(i=i===undefined?s.hasClass(d.sorted):"toggle"===i?!s.hasClass(d.sorted):i,l.sort.ignore===!0)return!0;var u=o.raise(f.sorting,{column:l,direction:i?"ASC":"DESC"});u&&u.result===!1||(n.data("sorted",l.index),n.find("> thead > tr:last-child > th, > thead > tr:last-child > td").not(s).removeClass(d.sorted+" "+d.descending),i===undefined&&(i=s.hasClass(d.sorted)),i?s.removeClass(d.descending).addClass(d.sorted):s.removeClass(d.sorted).addClass(d.descending),e.sort(o,r,l,i),o.bindToggleSelectors(),o.raise(f.sorted,{column:l,direction:i?"ASC":"DESC"}))}},e.rows=function(e,a,i){var o=[];return a.find("> tr").each(function(){var a=t(this),n=null;if(a.hasClass(e.options.classes.detail))return!0;a.next().hasClass(e.options.classes.detail)&&(n=a.next().get(0));var r={row:a,detail:n};return i!==undefined&&(r.value=e.parse(this.cells[i.sort.match],i)),o.push(r),!0}).detach(),o},e.sort=function(t,a,i,o){var n=e.rows(t,a,i),r=t.options.sorters[i.type]||t.options.sorters.alpha;n.sort(function(t,e){return o?r(t.value,e.value):r(e.value,t.value)});for(var l=0;n.length>l;l++)a.append(n[l].row),null!==n[l].detail&&a.append(n[l].detail)}}if(e.footable===undefined||null===e.footable)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var i={sort:!0,sorters:{alpha:function(t,e){return"string"==typeof t&&(t=t.toLowerCase()),"string"==typeof e&&(e=e.toLowerCase()),t===e?0:e>t?-1:1},numeric:function(t,e){return t-e}},classes:{sort:{sortable:"footable-sortable",sorted:"footable-sorted",descending:"footable-sorted-desc",indicator:"footable-sort-indicator"}},events:{sort:{sorting:"footable_sorting",sorted:"footable_sorted"}}};e.footable.plugins.register(a,i)})(jQuery,window);;(function(t,e,undefined){function a(){var e=this;e.name="Footable Striping",e.init=function(a){e.footable=a,t(a.table).unbind("striping").bind({"footable_initialized.striping footable_row_removed.striping footable_redrawn.striping footable_sorted.striping footable_filtered.striping":function(){t(this).data("striping")!==!1&&e.setupStriping(a)}})},e.setupStriping=function(e){var a=0;t(e.table).find("> tbody > tr:not(.footable-row-detail)").each(function(){var i=t(this);i.removeClass(e.options.classes.striping.even).removeClass(e.options.classes.striping.odd),0===a%2?i.addClass(e.options.classes.striping.even):i.addClass(e.options.classes.striping.odd),a++})}}if(e.footable===undefined||null===e.foobox)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var i={striping:{enabled:!0},classes:{striping:{odd:"footable-odd",even:"footable-even"}}};e.footable.plugins.register(a,i)})(jQuery,window);;(function(t,e,undefined){function a(t,e){e=e?e:location.hash;var a=RegExp("&"+t+"(?:=([^&]*))?(?=&|$)","i");return(e=e.replace(/^\#/,"&").match(a))?e[1]===undefined?"":decodeURIComponent(e[1]):undefined}function i(e,a){var i=t(e.table).find("tbody").find("tr:not(.footable-row-detail, .footable-filtered)").length;t(e.table).data("status_num_total",i);var o=t(e.table).find("tbody").find("tr:not(.footable-row-detail)").filter(":visible").length;t(e.table).data("status_num_shown",o);var n=t(e.table).data("sorted"),r=t(e.table).find("th")[n],l=t(r).hasClass("footable-sorted-desc");if(t(e.table).data("status_descending",l),e.pageInfo){var s=e.pageInfo.currentPage;t(e.table).data("status_pagenum",s)}var d="",f=t(e.table).data("filter");t(f).length&&(d=t(f).val()),t(e.table).data("status_filter_val",d);var u,p,c;if("footable_row_expanded"==a.type&&(u=a.row,u&&(p=t(e.table).data("expanded_rows"),c=[],p&&(c=p.split(",")),c.push(u.rowIndex),t(e.table).data("expanded_rows",c.join(",")))),"footable_row_collapsed"==a.type&&(u=a.row)){p=t(e.table).data("expanded_rows"),c=[],p&&(c=p.split(","));var g=[];for(var b in c)if(c[b]==u.rowIndex){g=c.splice(b,1);break}t(e.table).data("expanded_rows",g.join(","))}}function o(){var e=this;e.name="Footable LucidBookmarkable",e.init=function(e){e.options.bookmarkable.enabled&&t(e.table).bind({footable_initialized:function(){var i=e.table.id,o=a(i+"_f"),n=a(i+"_p"),r=a(i+"_s"),l=a(i+"_d"),s=a(i+"_e");if(o){var d=t(e.table).data("filter");t(d).val(o),t(e.table).trigger("footable_filter",{filter:o})}if(n&&t(e.table).data("currentPage",n),r!==undefined){var f=t(e.table).data("footable-sort"),u=!0;"true"==l&&(u=!1),f.doSort(r,u)}else t(e.table).trigger("footable_setup_paging");if(s){var p=s.split(",");for(var c in p){var g=t(e.table.rows[p[c]]);g.find("> td:first").trigger("footable_toggle_row")}}e.lucid_bookmark_read=!0},"footable_page_filled footable_redrawn footable_filtered footable_sorted footable_row_expanded footable_row_collapsed":function(a){if(i(e,a),e.lucid_bookmark_read){var o=e.table.id,n=o+"_f",r=o+"_p",l=o+"_s",s=o+"_d",d=o+"_e",f=location.hash.replace(/^\#/,"&"),u=[n,r,l,s,d];for(var p in u){var c=RegExp("&"+u[p]+"=([^&]*)","g");f=f.replace(c,"")}var g={};g[n]=t(e.table).data("status_filter_val"),g[r]=t(e.table).data("status_pagenum"),g[l]=t(e.table).data("sorted"),g[s]=t(e.table).data("status_descending"),g[d]=t(e.table).data("expanded_rows");var b=[];for(var h in g)g[h]!==undefined&&b.push(h+"="+encodeURIComponent(g[h]));f.length&&b.push(f),location.hash=b.join("&")}}})}}if(e.footable===undefined||null===e.foobox)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var n={bookmarkable:{enabled:!1}};e.footable.plugins.register(o,n)})(jQuery,window); \ No newline at end of file diff --git a/media/footable/dist/footable.bookmarkable.min.js b/media/footable/dist/footable.bookmarkable.min.js new file mode 100644 index 00000000..ad2b1276 --- /dev/null +++ b/media/footable/dist/footable.bookmarkable.min.js @@ -0,0 +1 @@ +(function(t,e,undefined){function a(t,e){e=e?e:location.hash;var a=RegExp("&"+t+"(?:=([^&]*))?(?=&|$)","i");return(e=e.replace(/^\#/,"&").match(a))?e[1]===undefined?"":decodeURIComponent(e[1]):undefined}function i(e,a){var i=t(e.table).find("tbody").find("tr:not(.footable-row-detail, .footable-filtered)").length;t(e.table).data("status_num_total",i);var o=t(e.table).find("tbody").find("tr:not(.footable-row-detail)").filter(":visible").length;t(e.table).data("status_num_shown",o);var n=t(e.table).data("sorted"),r=t(e.table).find("th")[n],l=t(r).hasClass("footable-sorted-desc");if(t(e.table).data("status_descending",l),e.pageInfo){var s=e.pageInfo.currentPage;t(e.table).data("status_pagenum",s)}var d="",f=t(e.table).data("filter");t(f).length&&(d=t(f).val()),t(e.table).data("status_filter_val",d);var u,p,c;if("footable_row_expanded"==a.type&&(u=a.row,u&&(p=t(e.table).data("expanded_rows"),c=[],p&&(c=p.split(",")),c.push(u.rowIndex),t(e.table).data("expanded_rows",c.join(",")))),"footable_row_collapsed"==a.type&&(u=a.row)){p=t(e.table).data("expanded_rows"),c=[],p&&(c=p.split(","));var g=[];for(var b in c)if(c[b]==u.rowIndex){g=c.splice(b,1);break}t(e.table).data("expanded_rows",g.join(","))}}function o(){var e=this;e.name="Footable LucidBookmarkable",e.init=function(e){e.options.bookmarkable.enabled&&t(e.table).bind({footable_initialized:function(){var i=e.table.id,o=a(i+"_f"),n=a(i+"_p"),r=a(i+"_s"),l=a(i+"_d"),s=a(i+"_e");if(o){var d=t(e.table).data("filter");t(d).val(o),t(e.table).trigger("footable_filter",{filter:o})}if(n&&t(e.table).data("currentPage",n),r!==undefined){var f=t(e.table).data("footable-sort"),u=!0;"true"==l&&(u=!1),f.doSort(r,u)}else t(e.table).trigger("footable_setup_paging");if(s){var p=s.split(",");for(var c in p){var g=t(e.table.rows[p[c]]);g.find("> td:first").trigger("footable_toggle_row")}}e.lucid_bookmark_read=!0},"footable_page_filled footable_redrawn footable_filtered footable_sorted footable_row_expanded footable_row_collapsed":function(a){if(i(e,a),e.lucid_bookmark_read){var o=e.table.id,n=o+"_f",r=o+"_p",l=o+"_s",s=o+"_d",d=o+"_e",f=location.hash.replace(/^\#/,"&"),u=[n,r,l,s,d];for(var p in u){var c=RegExp("&"+u[p]+"=([^&]*)","g");f=f.replace(c,"")}var g={};g[n]=t(e.table).data("status_filter_val"),g[r]=t(e.table).data("status_pagenum"),g[l]=t(e.table).data("sorted"),g[s]=t(e.table).data("status_descending"),g[d]=t(e.table).data("expanded_rows");var b=[];for(var h in g)g[h]!==undefined&&b.push(h+"="+encodeURIComponent(g[h]));f.length&&b.push(f),location.hash=b.join("&")}}})}}if(e.footable===undefined||null===e.foobox)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var n={bookmarkable:{enabled:!1}};e.footable.plugins.register(o,n)})(jQuery,window); \ No newline at end of file diff --git a/media/footable/dist/footable.filter.min.js b/media/footable/dist/footable.filter.min.js new file mode 100644 index 00000000..ed3e3622 --- /dev/null +++ b/media/footable/dist/footable.filter.min.js @@ -0,0 +1 @@ +(function(t,e,undefined){function a(){var e=this;e.name="Footable Filter",e.init=function(a){if(e.footable=a,a.options.filter.enabled===!0){if(t(a.table).data("filter")===!1)return;a.timers.register("filter"),t(a.table).unbind(".filtering").bind({"footable_initialized.filtering":function(){var i=t(a.table),o={input:i.data("filter")||a.options.filter.input,timeout:i.data("filter-timeout")||a.options.filter.timeout,minimum:i.data("filter-minimum")||a.options.filter.minimum,disableEnter:i.data("filter-disable-enter")||a.options.filter.disableEnter};o.disableEnter&&t(o.input).keypress(function(t){return window.event?13!==window.event.keyCode:13!==t.which}),i.bind("footable_clear_filter",function(){t(o.input).val(""),e.clearFilter()}),i.bind("footable_filter",function(t,a){e.filter(a.filter)}),t(o.input).keyup(function(i){a.timers.filter.stop(),27===i.which&&t(o.input).val(""),a.timers.filter.start(function(){var a=t(o.input).val()||"";e.filter(a)},o.timeout)})},"footable_redrawn.filtering":function(){var i=t(a.table),o=i.data("filter-string");o&&e.filter(o)}}).data("footable-filter",e)}},e.filter=function(a){var i=e.footable,o=t(i.table),n=o.data("filter-minimum")||i.options.filter.minimum,r=!a,l=i.raise("footable_filtering",{filter:a,clear:r});if(!(l&&l.result===!1||l.filter&&n>l.filter.length))if(l.clear)e.clearFilter();else{var d=l.filter.split(" ");o.find("> tbody > tr").hide().addClass("footable-filtered");var s=o.find("> tbody > tr:not(.footable-row-detail)");t.each(d,function(t,e){e&&e.length>0&&(o.data("current-filter",e),s=s.filter(i.options.filter.filterFunction))}),s.each(function(){e.showRow(this,i),t(this).removeClass("footable-filtered")}),o.data("filter-string",l.filter),i.raise("footable_filtered",{filter:l.filter,clear:!1})}},e.clearFilter=function(){var a=e.footable,i=t(a.table);i.find("> tbody > tr:not(.footable-row-detail)").removeClass("footable-filtered").each(function(){e.showRow(this,a)}),i.removeData("filter-string"),a.raise("footable_filtered",{clear:!0})},e.showRow=function(e,a){var i=t(e),o=i.next(),n=t(a.table);i.is(":visible")||(n.hasClass("breakpoint")&&i.hasClass("footable-detail-show")&&o.hasClass("footable-row-detail")?(i.add(o).show(),a.createOrUpdateDetailRow(e)):i.show())}}if(e.footable===undefined||null===e.footable)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var i={filter:{enabled:!0,input:".footable-filter",timeout:300,minimum:2,disableEnter:!1,filterFunction:function(){var e=t(this),a=e.parents("table:first"),i=a.data("current-filter").toUpperCase(),o=e.find("td").text();return a.data("filter-text-only")||e.find("td[data-value]").each(function(){o+=t(this).data("value")}),o.toUpperCase().indexOf(i)>=0}}};e.footable.plugins.register(a,i)})(jQuery,window); \ No newline at end of file diff --git a/media/footable/dist/footable.grid.min.js b/media/footable/dist/footable.grid.min.js new file mode 100644 index 00000000..7793ff78 --- /dev/null +++ b/media/footable/dist/footable.grid.min.js @@ -0,0 +1 @@ +(function(e,t,undefined){function a(t){var a=e("<th>"+t.title+"</th>");return e.isPlainObject(t.data)&&a.data(t.data),e.isPlainObject(t.style)&&a.css(t.style),t.className&&a.addClass(t.className),a}function o(t,o){var i=t.find("thead");0===i.size()&&(i=e("<thead>").appendTo(t));for(var n=e("<tr>").appendTo(i),r=0,l=o.cols.length;l>r;r++)n.append(a(o.cols[r]))}function i(t){var a=t.find("tbody");0===a.size()&&(a=e("<tbody>").appendTo(t))}function n(t,a,o){if(o){t.attr("data-page-size",o["page-size"]);var i=t.find("tfoot");0===i.size()&&(i=e('<tfoot class="hide-if-no-paging"></tfoot>').appendTo(t)),i.append("<tr><td colspan="+a.length+"></td></tr>");var n=e("<div>").appendTo(i.find("tr:last-child td"));n.addClass(o["pagination-class"])}}function r(t){for(var a=t[0],o=0,i=t.length;i>o;o++){var n=t[o];if(n.data&&(n.data.toggle===!0||"true"===n.data.toggle))return}a.data=e.extend(a.data,{toggle:!0})}function l(e,t,a){0===e.find("tr.emptyInfo").size()&&e.find("tbody").append('<tr class="emptyInfo"><td colspan="'+t.length+'">'+a+"</td></tr>")}function d(t,a,o,i){t.find("tr:not(."+o+")").each(function(){var t=e(this),o=a.data("index"),n=parseInt(t.data("index"),0),r=n+i;n>=o&&this!==a.get(0)&&t.attr("data-index",r).data("index",r)})}function s(){function t(t,a,o){var i=e("<td>");return t.formatter?i.html(t.formatter(a,i,o)):i.html(a||""),i}var a=this;a.name="Footable Grid",a.init=function(t){var d=t.options.classes.toggle,s=t.options.classes.detail,f=t.options.grid;if(f.cols){a.footable=t;var u=e(t.table);u.data("grid",a),e.isPlainObject(f.data)&&u.data(f.data),a._items=[],r(f.cols),f.showCheckbox&&(f.multiSelect=!0,f.cols.unshift({title:f.checkboxFormatter(!0),name:"",data:{"sort-ignore":!0},formatter:f.checkboxFormatter})),f.showIndex&&f.cols.unshift({title:"#",name:"index",data:{"sort-ignore":!0},formatter:f.indexFormatter}),o(u,f),i(u),n(u,f.cols,f.pagination),u.off(".grid").on({"footable_initialized.grid":function(){f.url||f.ajax?e.ajax(f.ajax||{url:f.url}).then(function(e){a.newItem(e),t.raise(f.events.loaded)},function(){throw"load data from "+(f.url||f.ajax.url)+" fail"}):(a.newItem(f.items||[]),t.raise(f.events.loaded))},"footable_sorted.grid footable_grid_created.grid footable_grid_removed.grid":function(){f.showIndex&&a.getItem().length>0&&u.find("tbody tr:not(."+s+")").each(function(t){var a=e(this).find("td:first");a.html(f.indexFormatter(null,a,t))})},"footable_redrawn.grid footable_row_removed.grid":function(){0===a.getItem().length&&f.showEmptyInfo&&l(u,f.cols,f.emptyInfo)}}).on({"click.grid":function(a){if(e(a.target).closest("td").find(">."+d).size()>0)return!0;var o=e(a.currentTarget);return o.hasClass(s)?!0:(f.multiSelect||o.hasClass(f.activeClass)||u.find("tbody tr."+f.activeClass).removeClass(f.activeClass),o.toggleClass(f.activeClass),f.showCheckbox&&o.find("input:checkbox.check").prop("checked",function(e,t){return a.target===this?t:!t}),t.toggleDetail(o),undefined)}},"tbody tr").on("click.grid","thead input:checkbox.checkAll",function(e){var t=!!e.currentTarget.checked;t?u.find("tbody tr").addClass(f.activeClass):u.find("tbody tr").removeClass(f.activeClass),u.find("tbody input:checkbox.check").prop("checked",t)})}},a.getSelected=function(){var t=a.footable.options.grid,o=e(a.footable.table).find("tbody>tr."+t.activeClass);return o.map(function(){return e(this).data("index")})},a.getItem=function(t){return t!==undefined?e.isArray(t)?e.map(t,function(e){return a._items[e]}):a._items[t]:a._items},a._makeRow=function(o,i){var n,r=a.footable.options.grid;if(e.isFunction(r.template))n=e(r.template(e.extend({},{__index:i},o)));else{n=e("<tr>");for(var l=0,d=r.cols.length;d>l;l++){var s=r.cols[l];n.append(t(s,o[s.name]||"",i))}}return n.attr("data-index",i),n},a.newItem=function(t,o,i){var n=e(a.footable.table).find("tbody"),r=a.footable.options.classes.detail;if(n.find("tr.emptyInfo").remove(),e.isArray(t)){for(var l;l=t.pop();)a.newItem(l,o,!0);return a.footable.redraw(),a.footable.raise(a.footable.options.grid.events.created,{item:t,index:o}),undefined}if(e.isPlainObject(t)){var s,f=a._items.length;if(o===undefined||0>o||o>f)s=a._makeRow(t,f++),a._items.push(t),n.append(s);else{if(s=a._makeRow(t,o),0===o)a._items.unshift(t),n.prepend(s);else{var u=n.find("tr[data-index="+(o-1)+"]");a._items.splice(o,0,t),u.data("detail_created")===!0&&(u=u.next()),u.after(s)}d(n,s,r,1)}i||(a.footable.redraw(),a.footable.raise(a.footable.options.grid.events.created,{item:t,index:o}))}},a.setItem=function(t,o){if(e.isPlainObject(t)){var i=e(a.footable.table).find("tbody"),n=a._makeRow(t,o);e.extend(a._items[o],t);var r=i.find("tr").eq(o);r.html(n.html()),a.footable.redraw(),a.footable.raise(a.footable.options.grid.events.updated,{item:t,index:o})}},a.removeItem=function(t){var o=e(a.footable.table).find("tbody"),i=a.footable.options.classes.detail,n=[];if(e.isArray(t)){for(var r;r=t.pop();)n.push(a.removeItem(r));return a.footable.raise(a.footable.options.grid.events.removed,{item:n,index:t}),n}if(t===undefined)o.find("tr").each(function(){n.push(a._items.shift()),a.footable.removeRow(this)});else{var l=o.find("tr[data-index="+t+"]");n=a._items.splice(t,1)[0],a.footable.removeRow(l),d(o,l,i,-1)}return a.footable.raise(a.footable.options.grid.events.removed,{item:n,index:t}),n}}if(t.footable===undefined||null===t.foobox)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var f={grid:{enabled:!0,data:null,template:null,cols:null,items:null,url:null,ajax:null,activeClass:"active",multiSelect:!1,showIndex:!1,showCheckbox:!1,showEmptyInfo:!1,emptyInfo:'<p class="text-center text-warning">No Data</p>',pagination:{"page-size":20,"pagination-class":"pagination pagination-centered"},indexFormatter:function(e,t,a){return a+1},checkboxFormatter:function(e){return'<input type="checkbox" class="'+(e?"checkAll":"check")+'">'},events:{loaded:"footable_grid_loaded",created:"footable_grid_created",removed:"footable_grid_removed",updated:"footable_grid_updated"}}};t.footable.plugins.register(s,f)})(jQuery,window); \ No newline at end of file diff --git a/media/footable/dist/footable.min.js b/media/footable/dist/footable.min.js new file mode 100644 index 00000000..0486c570 --- /dev/null +++ b/media/footable/dist/footable.min.js @@ -0,0 +1,14 @@ +/*! + * FooTable - Awesome Responsive Tables + * Version : 2.0.3 + * http://fooplugins.com/plugins/footable-jquery/ + * + * Requires jQuery - http://jquery.com/ + * + * Copyright 2014 Steven Usher & Brad Vincent + * Released under the MIT license + * You are free to use FooTable in commercial projects as long as this copyright header is left intact. + * + * Date: 11 Nov 2014 + */ +(function(e,t){function a(){var e=this;e.id=null,e.busy=!1,e.start=function(t,a){e.busy||(e.stop(),e.id=setTimeout(function(){t(),e.id=null,e.busy=!1},a),e.busy=!0)},e.stop=function(){null!==e.id&&(clearTimeout(e.id),e.id=null,e.busy=!1)}}function i(i,o,n){var r=this;r.id=n,r.table=i,r.options=o,r.breakpoints=[],r.breakpointNames="",r.columns={},r.plugins=t.footable.plugins.load(r);var l=r.options,d=l.classes,s=l.events,u=l.triggers,f=0;return r.timers={resize:new a,register:function(e){return r.timers[e]=new a,r.timers[e]}},r.init=function(){var a=e(t),i=e(r.table);if(t.footable.plugins.init(r),i.hasClass(d.loaded))return r.raise(s.alreadyInitialized),undefined;r.raise(s.initializing),i.addClass(d.loading),i.find(l.columnDataSelector).each(function(){var e=r.getColumnData(this);r.columns[e.index]=e});for(var o in l.breakpoints)r.breakpoints.push({name:o,width:l.breakpoints[o]}),r.breakpointNames+=o+" ";r.breakpoints.sort(function(e,t){return e.width-t.width}),i.unbind(u.initialize).bind(u.initialize,function(){i.removeData("footable_info"),i.data("breakpoint",""),i.trigger(u.resize),i.removeClass(d.loading),i.addClass(d.loaded).addClass(d.main),r.raise(s.initialized)}).unbind(u.redraw).bind(u.redraw,function(){r.redraw()}).unbind(u.resize).bind(u.resize,function(){r.resize()}).unbind(u.expandFirstRow).bind(u.expandFirstRow,function(){i.find(l.toggleSelector).first().not("."+d.detailShow).trigger(u.toggleRow)}).unbind(u.expandAll).bind(u.expandAll,function(){i.find(l.toggleSelector).not("."+d.detailShow).trigger(u.toggleRow)}).unbind(u.collapseAll).bind(u.collapseAll,function(){i.find("."+d.detailShow).trigger(u.toggleRow)}),i.trigger(u.initialize),a.bind("resize.footable",function(){r.timers.resize.stop(),r.timers.resize.start(function(){r.raise(u.resize)},l.delay)})},r.addRowToggle=function(){if(l.addRowToggle){var t=e(r.table),a=!1;t.find("span."+d.toggle).remove();for(var i in r.columns){var o=r.columns[i];if(o.toggle){a=!0;var n="> tbody > tr:not(."+d.detail+",."+d.disabled+") > td:nth-child("+(parseInt(o.index,10)+1)+"),"+"> tbody > tr:not(."+d.detail+",."+d.disabled+") > th:nth-child("+(parseInt(o.index,10)+1)+")";return t.find(n).not("."+d.detailCell).prepend(e(l.toggleHTMLElement).addClass(d.toggle)),undefined}}a||t.find("> tbody > tr:not(."+d.detail+",."+d.disabled+") > td:first-child").add("> tbody > tr:not(."+d.detail+",."+d.disabled+") > th:first-child").not("."+d.detailCell).prepend(e(l.toggleHTMLElement).addClass(d.toggle))}},r.setColumnClasses=function(){var t=e(r.table);for(var a in r.columns){var i=r.columns[a];if(null!==i.className){var o="",n=!0;e.each(i.matches,function(e,t){n||(o+=", "),o+="> tbody > tr:not(."+d.detail+") > td:nth-child("+(parseInt(t,10)+1)+")",n=!1}),t.find(o).not("."+d.detailCell).addClass(i.className)}}},r.bindToggleSelectors=function(){var t=e(r.table);r.hasAnyBreakpointColumn()&&(t.find(l.toggleSelector).unbind(u.toggleRow).bind(u.toggleRow,function(){var t=e(this).is("tr")?e(this):e(this).parents("tr:first");r.toggleDetail(t)}),t.find(l.toggleSelector).unbind("click.footable").bind("click.footable",function(a){t.is(".breakpoint")&&e(a.target).is("td,th,."+d.toggle)&&e(this).trigger(u.toggleRow)}))},r.parse=function(e,t){var a=l.parsers[t.type]||l.parsers.alpha;return a(e)},r.getColumnData=function(t){var a=e(t),i=a.data("hide"),o=a.index();i=i||"",i=jQuery.map(i.split(","),function(e){return jQuery.trim(e)});var n={index:o,hide:{},type:a.data("type")||"alpha",name:a.data("name")||e.trim(a.text()),ignore:a.data("ignore")||!1,toggle:a.data("toggle")||!1,className:a.data("class")||null,matches:[],names:{},group:a.data("group")||null,groupName:null,isEditable:a.data("editable")};if(null!==n.group){var d=e(r.table).find('> thead > tr.footable-group-row > th[data-group="'+n.group+'"], > thead > tr.footable-group-row > td[data-group="'+n.group+'"]').first();n.groupName=r.parse(d,{type:"alpha"})}var u=parseInt(a.prev().attr("colspan")||0,10);f+=u>1?u-1:0;var p=parseInt(a.attr("colspan")||0,10),c=n.index+f;if(p>1){var b=a.data("names");b=b||"",b=b.split(",");for(var g=0;p>g;g++)n.matches.push(g+c),b.length>g&&(n.names[g+c]=b[g])}else n.matches.push(c);n.hide["default"]="all"===a.data("hide")||e.inArray("default",i)>=0;var h=!1;for(var m in l.breakpoints)n.hide[m]="all"===a.data("hide")||e.inArray(m,i)>=0,h=h||n.hide[m];n.hasBreakpoint=h;var v=r.raise(s.columnData,{column:{data:n,th:t}});return v.column.data},r.getViewportWidth=function(){return window.innerWidth||(document.body?document.body.offsetWidth:0)},r.calculateWidth=function(e,t){return jQuery.isFunction(l.calculateWidthOverride)?l.calculateWidthOverride(e,t):(t.viewportWidth<t.width&&(t.width=t.viewportWidth),t.parentWidth<t.width&&(t.width=t.parentWidth),t)},r.hasBreakpointColumn=function(e){for(var t in r.columns)if(r.columns[t].hide[e]){if(r.columns[t].ignore)continue;return!0}return!1},r.hasAnyBreakpointColumn=function(){for(var e in r.columns)if(r.columns[e].hasBreakpoint)return!0;return!1},r.resize=function(){var t=e(r.table);if(t.is(":visible")){if(!r.hasAnyBreakpointColumn())return t.trigger(u.redraw),undefined;var a={width:t.width(),viewportWidth:r.getViewportWidth(),parentWidth:t.parent().width()};a=r.calculateWidth(t,a);var i=t.data("footable_info");if(t.data("footable_info",a),r.raise(s.resizing,{old:i,info:a}),!i||i&&i.width&&i.width!==a.width){for(var o,n=null,l=0;r.breakpoints.length>l;l++)if(o=r.breakpoints[l],o&&o.width&&a.width<=o.width){n=o;break}var d=null===n?"default":n.name,f=r.hasBreakpointColumn(d),p=t.data("breakpoint");t.data("breakpoint",d).removeClass("default breakpoint").removeClass(r.breakpointNames).addClass(d+(f?" breakpoint":"")),d!==p&&(t.trigger(u.redraw),r.raise(s.breakpoint,{breakpoint:d,info:a}))}r.raise(s.resized,{old:i,info:a})}},r.redraw=function(){r.addRowToggle(),r.bindToggleSelectors(),r.setColumnClasses();var t=e(r.table),a=t.data("breakpoint"),i=r.hasBreakpointColumn(a);t.find("> tbody > tr:not(."+d.detail+")").data("detail_created",!1).end().find("> thead > tr:last-child > th").each(function(){var i=r.columns[e(this).index()],o="",n=!0;e.each(i.matches,function(e,t){n||(o+=", ");var a=t+1;o+="> tbody > tr:not(."+d.detail+") > td:nth-child("+a+")",o+=", > tfoot > tr:not(."+d.detail+") > td:nth-child("+a+")",o+=", > colgroup > col:nth-child("+a+")",n=!1}),o+=', > thead > tr[data-group-row="true"] > th[data-group="'+i.group+'"]';var l=t.find(o).add(this);if(""!==a&&(i.hide[a]===!1?l.addClass("footable-visible").show():l.removeClass("footable-visible").hide()),1===t.find("> thead > tr.footable-group-row").length){var s=t.find('> thead > tr:last-child > th[data-group="'+i.group+'"]:visible, > thead > tr:last-child > th[data-group="'+i.group+'"]:visible'),u=t.find('> thead > tr.footable-group-row > th[data-group="'+i.group+'"], > thead > tr.footable-group-row > td[data-group="'+i.group+'"]'),f=0;e.each(s,function(){f+=parseInt(e(this).attr("colspan")||1,10)}),f>0?u.attr("colspan",f).show():u.hide()}}).end().find("> tbody > tr."+d.detailShow).each(function(){r.createOrUpdateDetailRow(this)}),t.find("[data-bind-name]").each(function(){r.toggleInput(this)}),t.find("> tbody > tr."+d.detailShow+":visible").each(function(){var t=e(this).next();t.hasClass(d.detail)&&(i?t.show():t.hide())}),t.find("> thead > tr > th.footable-last-column, > tbody > tr > td.footable-last-column").removeClass("footable-last-column"),t.find("> thead > tr > th.footable-first-column, > tbody > tr > td.footable-first-column").removeClass("footable-first-column"),t.find("> thead > tr, > tbody > tr").find("> th.footable-visible:last, > td.footable-visible:last").addClass("footable-last-column").end().find("> th.footable-visible:first, > td.footable-visible:first").addClass("footable-first-column"),r.raise(s.redrawn)},r.toggleDetail=function(t){var a=t.jquery?t:e(t),i=a.next();a.hasClass(d.detailShow)?(a.removeClass(d.detailShow),i.hasClass(d.detail)&&i.hide(),r.raise(s.rowCollapsed,{row:a[0]})):(r.createOrUpdateDetailRow(a[0]),a.addClass(d.detailShow).next().show(),r.raise(s.rowExpanded,{row:a[0]}))},r.removeRow=function(t){var a=t.jquery?t:e(t);a.hasClass(d.detail)&&(a=a.prev());var i=a.next();a.data("detail_created")===!0&&i.remove(),a.remove(),r.raise(s.rowRemoved)},r.appendRow=function(t){var a=t.jquery?t:e(t);e(r.table).find("tbody").append(a),r.redraw()},r.getColumnFromTdIndex=function(t){var a=null;for(var i in r.columns)if(e.inArray(t,r.columns[i].matches)>=0){a=r.columns[i];break}return a},r.createOrUpdateDetailRow=function(t){var a,i=e(t),o=i.next(),n=[];if(i.data("detail_created")===!0)return!0;if(i.is(":hidden"))return!1;if(r.raise(s.rowDetailUpdating,{row:i,detail:o}),i.find("> td:hidden").each(function(){var t=e(this).index(),a=r.getColumnFromTdIndex(t),i=a.name;if(a.ignore===!0)return!0;t in a.names&&(i=a.names[t]);var o=e(this).attr("data-bind-name");if(null!=o&&e(this).is(":empty")){var l=e("."+d.detailInnerValue+"["+'data-bind-value="'+o+'"]');e(this).html(e(l).contents().detach())}var s;return a.isEditable!==!1&&(a.isEditable||e(this).find(":input").length>0)&&(null==o&&(o="bind-"+e.now()+"-"+t,e(this).attr("data-bind-name",o)),s=e(this).contents().detach()),s||(s=e(this).contents().clone(!0,!0)),n.push({name:i,value:r.parse(this,a),display:s,group:a.group,groupName:a.groupName,bindName:o}),!0}),0===n.length)return!1;var u=i.find("> td:visible").length,f=o.hasClass(d.detail);return f||(o=e('<tr class="'+d.detail+'"><td class="'+d.detailCell+'"><div class="'+d.detailInner+'"></div></td></tr>'),i.after(o)),o.find("> td:first").attr("colspan",u),a=o.find("."+d.detailInner).empty(),l.createDetail(a,n,l.createGroupedDetail,l.detailSeparator,d),i.data("detail_created",!0),r.raise(s.rowDetailUpdated,{row:i,detail:o}),!f},r.raise=function(t,a){r.options.debug===!0&&e.isFunction(r.options.log)&&r.options.log(t,"event"),a=a||{};var i={ft:r};e.extend(!0,i,a);var o=e.Event(t,i);return o.ft||e.extend(!0,o,i),e(r.table).trigger(o),o},r.reset=function(){var t=e(r.table);t.removeData("footable_info").data("breakpoint","").removeClass(d.loading).removeClass(d.loaded),t.find(l.toggleSelector).unbind(u.toggleRow).unbind("click.footable"),t.find("> tbody > tr").removeClass(d.detailShow),t.find("> tbody > tr."+d.detail).remove(),r.raise(s.reset)},r.toggleInput=function(t){var a=e(t).attr("data-bind-name");if(null!=a){var i=e("."+d.detailInnerValue+"["+'data-bind-value="'+a+'"]');null!=i&&(e(t).is(":visible")?e(i).is(":empty")||e(t).html(e(i).contents().detach()):e(t).is(":empty")||e(i).html(e(t).contents().detach()))}},r.init(),r}t.footable={options:{delay:100,breakpoints:{phone:480,tablet:1024},parsers:{alpha:function(t){return e(t).data("value")||e.trim(e(t).text())},numeric:function(t){var a=e(t).data("value")||e(t).text().replace(/[^0-9.\-]/g,"");return a=parseFloat(a),isNaN(a)&&(a=0),a}},addRowToggle:!0,calculateWidthOverride:null,toggleSelector:" > tbody > tr:not(.footable-row-detail)",columnDataSelector:"> thead > tr:last-child > th, > thead > tr:last-child > td",detailSeparator:":",toggleHTMLElement:"<span />",createGroupedDetail:function(e){for(var t={_none:{name:null,data:[]}},a=0;e.length>a;a++){var i=e[a].group;null!==i?(i in t||(t[i]={name:e[a].groupName||e[a].group,data:[]}),t[i].data.push(e[a])):t._none.data.push(e[a])}return t},createDetail:function(t,a,i,o,n){var r=i(a);for(var l in r)if(0!==r[l].data.length){"_none"!==l&&t.append('<div class="'+n.detailInnerGroup+'">'+r[l].name+"</div>");for(var d=0;r[l].data.length>d;d++){var s=r[l].data[d].name?o:"";t.append(e("<div></div>").addClass(n.detailInnerRow).append(e("<div></div>").addClass(n.detailInnerName).append(r[l].data[d].name+s)).append(e("<div></div>").addClass(n.detailInnerValue).attr("data-bind-value",r[l].data[d].bindName).append(r[l].data[d].display)))}}},classes:{main:"footable",loading:"footable-loading",loaded:"footable-loaded",toggle:"footable-toggle",disabled:"footable-disabled",detail:"footable-row-detail",detailCell:"footable-row-detail-cell",detailInner:"footable-row-detail-inner",detailInnerRow:"footable-row-detail-row",detailInnerGroup:"footable-row-detail-group",detailInnerName:"footable-row-detail-name",detailInnerValue:"footable-row-detail-value",detailShow:"footable-detail-show"},triggers:{initialize:"footable_initialize",resize:"footable_resize",redraw:"footable_redraw",toggleRow:"footable_toggle_row",expandFirstRow:"footable_expand_first_row",expandAll:"footable_expand_all",collapseAll:"footable_collapse_all"},events:{alreadyInitialized:"footable_already_initialized",initializing:"footable_initializing",initialized:"footable_initialized",resizing:"footable_resizing",resized:"footable_resized",redrawn:"footable_redrawn",breakpoint:"footable_breakpoint",columnData:"footable_column_data",rowDetailUpdating:"footable_row_detail_updating",rowDetailUpdated:"footable_row_detail_updated",rowCollapsed:"footable_row_collapsed",rowExpanded:"footable_row_expanded",rowRemoved:"footable_row_removed",reset:"footable_reset"},debug:!1,log:null},version:{major:0,minor:5,toString:function(){return t.footable.version.major+"."+t.footable.version.minor},parse:function(e){var t=/(\d+)\.?(\d+)?\.?(\d+)?/.exec(e);return{major:parseInt(t[1],10)||0,minor:parseInt(t[2],10)||0,patch:parseInt(t[3],10)||0}}},plugins:{_validate:function(a){if(!e.isFunction(a))return t.footable.options.debug===!0&&console.error('Validation failed, expected type "function", received type "{0}".',typeof a),!1;var i=new a;return"string"!=typeof i.name?(t.footable.options.debug===!0&&console.error('Validation failed, plugin does not implement a string property called "name".',i),!1):e.isFunction(i.init)?(t.footable.options.debug===!0&&console.log('Validation succeeded for plugin "'+i.name+'".',i),!0):(t.footable.options.debug===!0&&console.error('Validation failed, plugin "'+i.name+'" does not implement a function called "init".',i),!1)},registered:[],register:function(a,i){t.footable.plugins._validate(a)&&(t.footable.plugins.registered.push(a),"object"==typeof i&&e.extend(!0,t.footable.options,i))},load:function(e){var a,i,o=[];for(i=0;t.footable.plugins.registered.length>i;i++)try{a=t.footable.plugins.registered[i],o.push(new a(e))}catch(n){t.footable.options.debug===!0&&console.error(n)}return o},init:function(e){for(var a=0;e.plugins.length>a;a++)try{e.plugins[a].init(e)}catch(i){t.footable.options.debug===!0&&console.error(i)}}}};var o=0;e.fn.footable=function(a){a=a||{};var n=e.extend(!0,{},t.footable.options,a);return this.each(function(){o++;var t=new i(this,n,o);e(this).data("footable",t)})}})(jQuery,window); \ No newline at end of file diff --git a/media/footable/dist/footable.paginate.min.js b/media/footable/dist/footable.paginate.min.js new file mode 100644 index 00000000..2b1a87ac --- /dev/null +++ b/media/footable/dist/footable.paginate.min.js @@ -0,0 +1 @@ +(function(e,t,undefined){function a(t){var a=e(t.table),i=a.data();this.pageNavigation=i.pageNavigation||t.options.pageNavigation,this.pageSize=i.pageSize||t.options.pageSize,this.firstText=i.firstText||t.options.firstText,this.previousText=i.previousText||t.options.previousText,this.nextText=i.nextText||t.options.nextText,this.lastText=i.lastText||t.options.lastText,this.limitNavigation=parseInt(i.limitNavigation||t.options.limitNavigation||o.limitNavigation,10),this.limitPreviousText=i.limitPreviousText||t.options.limitPreviousText,this.limitNextText=i.limitNextText||t.options.limitNextText,this.limit=this.limitNavigation>0,this.currentPage=i.currentPage||0,this.pages=[],this.control=!1}function i(){var t=this;t.name="Footable Paginate",t.init=function(a){if(a.options.paginate===!0){if(e(a.table).data("page")===!1)return;t.footable=a,e(a.table).unbind(".paging").bind({"footable_initialized.paging footable_row_removed.paging footable_redrawn.paging footable_sorted.paging footable_filtered.paging":function(){t.setupPaging()}}).data("footable-paging",t)}},t.setupPaging=function(){var i=t.footable,o=e(i.table).find("> tbody");i.pageInfo=new a(i),t.createPages(i,o),t.createNavigation(i,o),t.fillPage(i,o,i.pageInfo.currentPage)},t.createPages=function(t,a){var i=1,o=t.pageInfo,n=i*o.pageSize,r=[],l=[];o.pages=[];var d=a.find("> tr:not(.footable-filtered,.footable-row-detail)");d.each(function(e,t){r.push(t),e===n-1?(o.pages.push(r),i++,n=i*o.pageSize,r=[]):e>=d.length-d.length%o.pageSize&&l.push(t)}),l.length>0&&o.pages.push(l),o.currentPage>=o.pages.length&&(o.currentPage=o.pages.length-1),0>o.currentPage&&(o.currentPage=0),1===o.pages.length?e(t.table).addClass("no-paging"):e(t.table).removeClass("no-paging")},t.createNavigation=function(a){var i=e(a.table).find(a.pageInfo.pageNavigation);if(0===i.length){if(i=e(a.pageInfo.pageNavigation),i.parents("table:first").length>0&&i.parents("table:first")!==e(a.table))return;i.length>1&&a.options.debug===!0&&console.error("More than one pagination control was found!")}if(0!==i.length){i.is("ul")||(0===i.find("ul:first").length&&i.append("<ul />"),i=i.find("ul")),i.find("li").remove();var o=a.pageInfo;o.control=i,o.pages.length>0&&(i.append('<li class="footable-page-arrow"><a data-page="first" href="#first">'+a.pageInfo.firstText+"</a>"),i.append('<li class="footable-page-arrow"><a data-page="prev" href="#prev">'+a.pageInfo.previousText+"</a></li>"),o.limit&&i.append('<li class="footable-page-arrow"><a data-page="limit-prev" href="#limit-prev">'+a.pageInfo.limitPreviousText+"</a></li>"),o.limit||e.each(o.pages,function(e,t){t.length>0&&i.append('<li class="footable-page"><a data-page="'+e+'" href="#">'+(e+1)+"</a></li>")}),o.limit&&(i.append('<li class="footable-page-arrow"><a data-page="limit-next" href="#limit-next">'+a.pageInfo.limitNextText+"</a></li>"),t.createLimited(i,o,0)),i.append('<li class="footable-page-arrow"><a data-page="next" href="#next">'+a.pageInfo.nextText+"</a></li>"),i.append('<li class="footable-page-arrow"><a data-page="last" href="#last">'+a.pageInfo.lastText+"</a></li>")),i.off("click","a[data-page]").on("click","a[data-page]",function(n){n.preventDefault();var r=e(this).data("page"),l=o.currentPage;if("first"===r)l=0;else if("prev"===r)l>0&&l--;else if("next"===r)o.pages.length-1>l&&l++;else if("last"===r)l=o.pages.length-1;else if("limit-prev"===r){l=-1;var d=i.find(".footable-page:first a").data("page");t.createLimited(i,o,d-o.limitNavigation),t.setPagingClasses(i,o.currentPage,o.pages.length)}else if("limit-next"===r){l=-1;var s=i.find(".footable-page:last a").data("page");t.createLimited(i,o,s+1),t.setPagingClasses(i,o.currentPage,o.pages.length)}else l=r;if(l>=0){if(o.limit&&o.currentPage!=l){for(var f=l;0!==f%o.limitNavigation;)f-=1;t.createLimited(i,o,f)}t.paginate(a,l)}}),t.setPagingClasses(i,o.currentPage,o.pages.length)}},t.createLimited=function(e,t,a){a=a||0,e.find("li.footable-page").remove();var i,o,n=e.find('li.footable-page-arrow > a[data-page="limit-prev"]').parent(),r=e.find('li.footable-page-arrow > a[data-page="limit-next"]').parent();for(i=t.pages.length-1;i>=0;i--)o=t.pages[i],i>=a&&a+t.limitNavigation>i&&o.length>0&&n.after('<li class="footable-page"><a data-page="'+i+'" href="#">'+(i+1)+"</a></li>");0===a?n.hide():n.show(),a+t.limitNavigation>=t.pages.length?r.hide():r.show()},t.paginate=function(a,i){var o=a.pageInfo;if(o.currentPage!==i){var n=e(a.table).find("> tbody"),r=a.raise("footable_paging",{page:i,size:o.pageSize});if(r&&r.result===!1)return;t.fillPage(a,n,i),o.control.find("li").removeClass("active disabled"),t.setPagingClasses(o.control,o.currentPage,o.pages.length)}},t.setPagingClasses=function(e,t,a){e.find("li.footable-page > a[data-page="+t+"]").parent().addClass("active"),t>=a-1&&(e.find('li.footable-page-arrow > a[data-page="next"]').parent().addClass("disabled"),e.find('li.footable-page-arrow > a[data-page="last"]').parent().addClass("disabled")),1>t&&(e.find('li.footable-page-arrow > a[data-page="first"]').parent().addClass("disabled"),e.find('li.footable-page-arrow > a[data-page="prev"]').parent().addClass("disabled"))},t.fillPage=function(a,i,o){a.pageInfo.currentPage=o,e(a.table).data("currentPage",o),i.find("> tr").hide(),e(a.pageInfo.pages[o]).each(function(){t.showRow(this,a)}),a.raise("footable_page_filled")},t.showRow=function(t,a){var i=e(t),o=i.next(),n=e(a.table);n.hasClass("breakpoint")&&i.hasClass("footable-detail-show")&&o.hasClass("footable-row-detail")?(i.add(o).show(),a.createOrUpdateDetailRow(t)):i.show()}}if(t.footable===undefined||null===t.footable)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var o={paginate:!0,pageSize:10,pageNavigation:".pagination",firstText:"&laquo;",previousText:"&lsaquo;",nextText:"&rsaquo;",lastText:"&raquo;",limitNavigation:0,limitPreviousText:"...",limitNextText:"..."};t.footable.plugins.register(i,o)})(jQuery,window); \ No newline at end of file diff --git a/media/footable/dist/footable.sort.min.js b/media/footable/dist/footable.sort.min.js new file mode 100644 index 00000000..917793de --- /dev/null +++ b/media/footable/dist/footable.sort.min.js @@ -0,0 +1 @@ +(function(t,e,undefined){function a(){var e=this;e.name="Footable Sortable",e.init=function(a){e.footable=a,a.options.sort===!0&&t(a.table).unbind(".sorting").bind({"footable_initialized.sorting":function(){var i,o,n=t(a.table),r=(n.find("> tbody"),a.options.classes.sort);if(n.data("sort")!==!1){n.find("> thead > tr:last-child > th, > thead > tr:last-child > td").each(function(){var e=t(this),i=a.columns[e.index()];i.sort.ignore===!0||e.hasClass(r.sortable)||(e.addClass(r.sortable),t("<span />").addClass(r.indicator).appendTo(e))}),n.find("> thead > tr:last-child > th."+r.sortable+", > thead > tr:last-child > td."+r.sortable).unbind("click.footable").bind("click.footable",function(a){a.preventDefault(),o=t(this);var i=!o.hasClass(r.sorted);return e.doSort(o.index(),i),!1});var l=!1;for(var s in a.columns)if(i=a.columns[s],i.sort.initial){var d="descending"!==i.sort.initial;e.doSort(i.index,d);break}l&&a.bindToggleSelectors()}},"footable_redrawn.sorting":function(){var i=t(a.table),o=a.options.classes.sort;i.data("sorted")>=0&&i.find("> thead > tr:last-child > th").each(function(a){var i=t(this);return i.hasClass(o.sorted)||i.hasClass(o.descending)?(e.doSort(a),undefined):undefined})},"footable_column_data.sorting":function(e){var a=t(e.column.th);e.column.data.sort=e.column.data.sort||{},e.column.data.sort.initial=a.data("sort-initial")||!1,e.column.data.sort.ignore=a.data("sort-ignore")||!1,e.column.data.sort.selector=a.data("sort-selector")||null;var i=a.data("sort-match")||0;i>=e.column.data.matches.length&&(i=0),e.column.data.sort.match=e.column.data.matches[i]}}).data("footable-sort",e)},e.doSort=function(a,i){var o=e.footable;if(t(o.table).data("sort")!==!1){var n=t(o.table),r=n.find("> tbody"),l=o.columns[a],s=n.find("> thead > tr:last-child > th:eq("+a+")"),d=o.options.classes.sort,f=o.options.events.sort;if(i=i===undefined?s.hasClass(d.sorted):"toggle"===i?!s.hasClass(d.sorted):i,l.sort.ignore===!0)return!0;var u=o.raise(f.sorting,{column:l,direction:i?"ASC":"DESC"});u&&u.result===!1||(n.data("sorted",l.index),n.find("> thead > tr:last-child > th, > thead > tr:last-child > td").not(s).removeClass(d.sorted+" "+d.descending),i===undefined&&(i=s.hasClass(d.sorted)),i?s.removeClass(d.descending).addClass(d.sorted):s.removeClass(d.sorted).addClass(d.descending),e.sort(o,r,l,i),o.bindToggleSelectors(),o.raise(f.sorted,{column:l,direction:i?"ASC":"DESC"}))}},e.rows=function(e,a,i){var o=[];return a.find("> tr").each(function(){var a=t(this),n=null;if(a.hasClass(e.options.classes.detail))return!0;a.next().hasClass(e.options.classes.detail)&&(n=a.next().get(0));var r={row:a,detail:n};return i!==undefined&&(r.value=e.parse(this.cells[i.sort.match],i)),o.push(r),!0}).detach(),o},e.sort=function(t,a,i,o){var n=e.rows(t,a,i),r=t.options.sorters[i.type]||t.options.sorters.alpha;n.sort(function(t,e){return o?r(t.value,e.value):r(e.value,t.value)});for(var l=0;n.length>l;l++)a.append(n[l].row),null!==n[l].detail&&a.append(n[l].detail)}}if(e.footable===undefined||null===e.footable)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var i={sort:!0,sorters:{alpha:function(t,e){return"string"==typeof t&&(t=t.toLowerCase()),"string"==typeof e&&(e=e.toLowerCase()),t===e?0:e>t?-1:1},numeric:function(t,e){return t-e}},classes:{sort:{sortable:"footable-sortable",sorted:"footable-sorted",descending:"footable-sorted-desc",indicator:"footable-sort-indicator"}},events:{sort:{sorting:"footable_sorting",sorted:"footable_sorted"}}};e.footable.plugins.register(a,i)})(jQuery,window); \ No newline at end of file diff --git a/media/footable/dist/footable.striping.min.js b/media/footable/dist/footable.striping.min.js new file mode 100644 index 00000000..01161dd1 --- /dev/null +++ b/media/footable/dist/footable.striping.min.js @@ -0,0 +1 @@ +(function(t,e,undefined){function a(){var e=this;e.name="Footable Striping",e.init=function(a){e.footable=a,t(a.table).unbind("striping").bind({"footable_initialized.striping footable_row_removed.striping footable_redrawn.striping footable_sorted.striping footable_filtered.striping":function(){t(this).data("striping")!==!1&&e.setupStriping(a)}})},e.setupStriping=function(e){var a=0;t(e.table).find("> tbody > tr:not(.footable-row-detail)").each(function(){var i=t(this);i.removeClass(e.options.classes.striping.even).removeClass(e.options.classes.striping.odd),0===a%2?i.addClass(e.options.classes.striping.even):i.addClass(e.options.classes.striping.odd),a++})}}if(e.footable===undefined||null===e.foobox)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var i={striping:{enabled:!0},classes:{striping:{odd:"footable-odd",even:"footable-even"}}};e.footable.plugins.register(a,i)})(jQuery,window); \ No newline at end of file diff --git a/media/footable/dist/index.html b/media/footable/dist/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/footable/dist/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/footable/icomoon/footable.json b/media/footable/icomoon/footable.json new file mode 100644 index 00000000..dda61384 --- /dev/null +++ b/media/footable/icomoon/footable.json @@ -0,0 +1 @@ +{"share":"6", "iconsVersion":"1.5", "icomoon":{"selected":[{"idx":"488","unicode":"e000"},{"idx":"489","unicode":"e001"},{"idx":"511","unicode":"e002"},{"idx":"509","unicode":"e003"},{"idx":"512","unicode":"e004"},{"idx":"510","unicode":"e005"},{"idx":"780","unicode":"e006"},{"idx":"779","unicode":"e007"},{"idx":"802","unicode":"e008"},{"idx":"284","unicode":"e009"},{"idx":"397","unicode":"e00a"},{"idx":"393","unicode":"e00b"},{"idx":"391","unicode":"e00c"},{"idx":"395","unicode":"e00d"},{"idx":"430","unicode":"e00e"},{"idx":"428","unicode":"e00f"},{"idx":"427","unicode":"e010"},{"idx":"429","unicode":"e011"},{"idx":"838","unicode":"e012"},{"idx":"839","unicode":"e013"},{"idx":"837","unicode":"e014"},{"idx":"836","unicode":"e015"},{"idx":"346","unicode":"e016"},{"idx":"344","unicode":"e017"},{"idx":"343","unicode":"e018"},{"idx":"345","unicode":"e019"},{"idx":"405","unicode":"e01a"},{"idx":"401","unicode":"e01b"},{"idx":"399","unicode":"e01c"},{"idx":"403","unicode":"e01d"},{"idx":"795","unicode":"e01e"},{"idx":"794","unicode":"e01f"},{"idx":"797","unicode":"e020"},{"idx":"796","unicode":"e021"},{"idx":"834","unicode":"e022"}],"customIcons":[{"metadata":{"id":"fontawesome","name":"Font Awesome","link":"http://fortawesome.github.com/Font-Awesome/","grid":"14","author":"Dave Gandy","authorLink":"https://github.com/davegandy","license":"SIL","licenseLink":"http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL","defaultunicode":true},"svgs":["<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"renren\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 402.5,686.5q-61,33.5 -130.5,33.5q-70.5,0 -130.5-33.5q 49-30.5 83.5-74.5t 47-95.5q 12.5,51.5 47,95.5t 83.5,74.5zM 226.5,180l0,172 q0,89.5 -44.75,163t-117.25,108.5q-64.5-76 -64.5-175.5q0-100 64.75-176t 161.75-92zM 479,272.5q-64,76 -64,175.5q0,100.5 64,175.5q-72.5-35 -117.25-109t-44.75-164 l0-170.5 q 98,16.5 162,92.5zM 819,686.5q-61,33.5 -130.5,33.5q-70.5,0 -130.5-33.5q 49-30.5 83.5-74.5t 47-95.5q 12.5,51.5 47,95.5t 83.5,74.5zM 643,180l0,172 q0,89.5 -45.5,163t-118.5,108.5l0,0 q 66.5-77 66.5-175.5q0-97.5 -66.5-175.5q 64.5-75.5 164-92.5zM 960,448q0,100.5 -64.5,175.5q-72.5-35 -117.25-109 t-44.75-164l0-170.5 q 97,16 161.75,92t 64.75,176z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"weibo\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 337.5,642q 10.5-17 5.5-34.5t-22.5-25q-17-7 -36.5-0.5t-30,23q-11,17 -6.5,34.25t 21.5,25.25t 37.25,1.25t 31.25-23.75zM 384.5,581.5q 4-6.5 1.75-13.25t-8.75-9.25q-7-2.5 -14.25,0.25t-10.75,9.25q-8.5,15.5 6.5,22.5q 7,2.5 14.5-0.25t 11-9.25zM 471.5,635q-22.5,51 -79,75t-112,6 q-53.5-17 -73.75-63.25t 3.25-93.75q 23.5-46.5 75.75-69.5t 105.25-9.5q 55.5,14.5 79.25,59.75t 1.25,95.25zM 627.5,555q-4.5-48 -44.5-85t-104.25-54.5t-137.25-10.5q-111.5,11.5 -184.75,70.75t-66.25,132.25q 4.5,48 44.5,85t 104.25,54.5t 137.25,10.5q 111.5-11.5 184.75-70.75t 66.25-132.25zM 781.5,557 q0,34 -18.5,69.75t-54.5,68.5t-84.25,58.75t-113,41.5t-135.25,15.5t-137.5-16.75t-120.25-46.5t-85.75-75.5t-32.5-99.75q0-57.5 34.75-122.5t 98.75-129q 84.5-84.5 170.75-118t 123.25,3.5q 32.5,32 10,104.5q-2,7 -0.5,10t 5,3.5t 7.25-0.25t 6.75-1.75l 3-1q 69.5-29.5 123-29.5t 76.5,30.5q 22.5,31.5 0,89 q-1,6.5 -2.25,10t 2.25,6.25t 6,3.75t 8.5,3q 28.5,9 51.5,23.5t 40,40.75t 17,58.25zM 744.5,245q 21,23.5 27.25,54.25t-3.25,58.75q-4,11.5 -14.75,17t-22.25,2q-11.5-4 -17-14.75t-2-22.25q 10-31.5 -12-55.5t-53.5-17.5q-12,2.5 -22.5-4t-12.5-18.5q-2.5-12 4-22.25t 18.5-12.75q 30-6.5 59.5,2.75t 50.5,32.75z M 835,163.5q 43.5,48 56.25,111.25t-6.75,120.75q-4.5,13.5 -17,20t-26,2t-20-17t-2.5-26q 14-41 5-86t-40-79q-31-34.5 -74-47.75t-86.5-4.25q-14,3 -26-4.75t-15-21.75t 4.75-25.75t 21.75-14.75q 61.5-13 122,5.75t 104,67.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"vk\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 958.5,260q 11.5,32 -75,147q-12,16 -32.5,42.5q-39,50 -45,65.5q-8.5,20.5 7,40.5q 8.5,10.5 40.5,41l 0.5,0 l 0.5,0.5l 0.5,0.5l 1,1q 70.5,65.5 95.5,110.5q 1.5,2.5 3.25,6.25t 3.5,13.25t-0.25,17t-12.5,13.75t-29.5,6.25l-128,2q-12,2.5 -28-2.5t-26-11l-10-6q-15-10.5 -35-32t-34.25-38.75t-30.5-29 t-28.25-7.75q-1.5,0.5 -4,1.75t-8.5,7.25t-10.75,14.75t-8.5,26t-3.25,38.75q0,7.5 -1.75,13.75t-3.75,9.25l-2,2.5q-9,9.5 -26.5,11l-57.5,0 q-35.5,2 -73-8.25t-65.75-26.5t-51.5-33t-35.25-28.75l-12.5-12q-5-5 -13.75-15t-35.75-45.5t-53-75.5t-61.25-105.5t-65.25-136q-3-8 -3-13.5t 1.5-8l 2-3 q 7.5-9.5 28.5-9.5l 137-1q 6,1 11.5,3.25t 8,4.25l 2.5,1.5q 8,5.5 12,16q 10,25 23,51.75t 20.5,40.75l 8,14.5q 14.5,30 28,52t 24.25,34.25t 20.75,19.25t 17,7t 13.5-2.5q 1-0.5 2.5-2.5t 6-11t 6.75-23.5t 4.75-40.5t0-62.5q-1-20 -4.5-36.5t-7-23l-3-6q-12.5-17 -42.5-21.5q-6.5-1 2.5-12q 8.5-9.5 19-15q 26.5-13 119.5-12 q 41,0.5 67.5,6.5q 10,2.5 16.75,6.75t 10.25,12t 5.25,16t 1.75,22.75t-0.5,27.5t-1.25,35.25t-0.75,41.25q0,5.5 -0.5,21t-0.25,24t 1.75,20.25t 5.75,19.5t 11.25,12.25q 4,1 8.5,2t 13-5.5t 19-17.25t 26-33.5t 34-53.75q 30-52 53.5-112.5q 2-5 5-8.75t 5.5-5.25l 2-1.5l 2.5-1.25t 6.5-1.5t 10-0.25l 144-1 q 19.5-2.5 32,1.25t 15.5,8.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"bug, virus\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 816,480q0,13 -9.5,22.5t-22.5,9.5l-112,0 q0,85.5 -33.5,145l 104,104.5q 9.5,9.5 9.5,22.5t-9.5,22.5q-9,9.5 -22.5,9.5t-22.5-9.5l-99-98.5q-2.5,2.5 -7.5,6.5t-21,14.25t-32.5,18.25t-41,14.5t-48.5,6.5l0-448 l-64,0 l0,448 q-25.5,0 -50.75-6.75t-43.5-16.5t-33-19.5t-21.75-16.25l-7.5-7l-91.5,103.5 q-10,10.5 -24,10.5q-12,0 -21.5-8q-9.5-9 -10.25-22.25t 7.75-23.25l 101-113.5q-29-57 -29-137l-112,0 q-13,0 -22.5-9.5t-9.5-22.5t 9.5-22.5t 22.5-9.5l 112,0 l0-147 l-86.5-86.5q-9.5-9.5 -9.5-22.5t 9.5-22.5t 22.5-9.5t 22.5,9.5l 86.5,86.5l 422,0 l 86.5-86.5q 9.5-9.5 22.5-9.5t 22.5,9.5t 9.5,22.5t-9.5,22.5l-86.5,86.5l0,147 l 112,0 q 13,0 22.5,9.5 t 9.5,22.5zM 576,192l-320,0 q0-66.5 46.75-113.25t 113.25-46.75t 113.25,46.75t 46.75,113.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"archive, box\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 544,416q0-13 -9.5-22.5t-22.5-9.5l-128,0 q-13,0 -22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5l 128,0 q 13,0 22.5-9.5t 9.5-22.5zM 832,320l0,480 q0,13 -9.5,22.5t-22.5,9.5l-704,0 q-13,0 -22.5-9.5t-9.5-22.5l0-480 q0-13 9.5-22.5t 22.5-9.5l 704,0 q 13,0 22.5,9.5t 9.5,22.5zM 864,96l0,128 q0,13 -9.5,22.5t-22.5,9.5l-768,0 q-13,0 -22.5-9.5t-9.5-22.5l0-128 q0-13 9.5-22.5t 22.5-9.5l 768,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"moon, night, dark\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 631,651.5q-27,4.5 -55,4.5q-91,0 -168.5-45t-122.5-122.5t-45-168.5q0-96 52-178.5q-100.5,30 -164.25,114.5t-63.75,192q0,65 25.5,124.25t 68.25,102t 102,68.25t 124.25,25.5q 72,0 136.75-30.75t 110.25-85.75zM 732.5,609q-47,101.5 -141.75,162.25t-206.75,60.75q-78,0 -149-30.5 t-122.5-82t-82-122.5t-30.5-149q0-76.5 28.75-146.25t 78-120.75t 117.75-82.25t 145-34.25q 22-1 30.5,19.5q 9,20.5 -7.5,36q-43,39 -65.75,90.75t-22.75,109.25q0,74 36.5,136.5t 99,99t 136.5,36.5q 59,0 114-25.5q 20.5-9 36,6.5q 7,7 8.75,17t-2.25,19z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"sun, brightness, lightness\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 736,448q0-58.5 -22.75-111.75t-61.5-92t-92-61.5t-111.75-22.75t-111.75,22.75t-92,61.5t-61.5,92t-22.75,111.75t 22.75,111.75t 61.5,92t 92,61.5t 111.75,22.75t 111.75-22.75t 92-61.5t 61.5-92t 22.75-111.75zM 874,586.5q-2,7.5 -10,10l-146,48l0,153 q0,8 -6.5,13q-7.5,5 -14.5,2 l-146-47l-90,124q-5,6.5 -13,6.5t-13-6.5l-90-124l-146,47q-7,3 -14.5-2q-6.5-5 -6.5-13l0-153 l-146-48q-8-2.5 -10-10q-2.5-8.5 2-14.5l 90-124l-90-124q-4.5-6.5 -2-14.5q 2-7.5 10-10l 146-48l0-153 q0-8 6.5-13q 7.5-5 14.5-2l 146,47l 90-124q 4.5-6 13-6t 13,6l 90,124l 146-47 q 7-3 14.5,2q 6.5,5 6.5,13l0,153 l 146,48q 8,2.5 10,10q 2.5,8 -2,14.5l-90,124l 90,124q 4.5,6 2,14.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"gittip\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 386.5,651l 175-236.5q 8-11 12.25-29.5t-3-42.5t-30.75-39.5q-20-13 -41.5-12.75t-36.75,8.75t-27.25,22.5q-18,20 -48,20q-29.5,0 -47.5-20q-12-14 -27.25-22.5t-36.75-8.75t-42,12.75q-23,15.5 -30.25,39.5t-3,42.5t 12.25,29.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5 t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"male, gender, sex, man\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 512,352l0,208 q0,20 -14,34t-34,14t-34-14t-14-34l0-176 l-32,0 l0,456 q0,23 -16.5,39.5t-39.5,16.5t-39.5-16.5t-16.5-39.5l0-232 l-32,0 l0,232 q0,23 -16.5,39.5t-39.5,16.5t-39.5-16.5t-16.5-39.5l0-456 l-32,0 l0,176 q0,20 -14,34t-34,14t-34-14t-14-34l0-208 q0-40 28-68t 68-28l 320,0 q 40,0 68,28t 28,68z M 368,128q0,46.5 -32.75,79.25t-79.25,32.75t-79.25-32.75t-32.75-79.25t 32.75-79.25t 79.25-32.75t 79.25,32.75t 32.75,79.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"640\" height=\"896\" viewBox=\"0 0 640 896\" data-du=\"\" data-tags=\"female, gender, sex, woman\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 640,528q0,20 -14,34t-34,14q-25.5,0 -40-21.5l-113.5-170.5l-22.5,0 l0,66 l 123.5,205.5q 4.5,7.5 4.5,16.5q0,13 -9.5,22.5t-22.5,9.5l-96,0 l0,136 q0,23 -16.5,39.5t-39.5,16.5l-80,0 q-23,0 -39.5-16.5t-16.5-39.5l0-136 l-96,0 q-13,0 -22.5-9.5t-9.5-22.5q0-9 4.5-16.5l 123.5-205.5l0-66 l-22.5,0 l-113.5,170.5q-14.5,21.5 -40,21.5 q-20,0 -34-14t-14-34q0-14.5 8-26.5l 128-192q 36.5-53.5 88-53.5l 192,0 q 51.5,0 88,53.5l 128,192q 8,12 8,26.5zM 432,128q0,46.5 -32.75,79.25t-79.25,32.75t-79.25-32.75t-32.75-79.25t 32.75-79.25t 79.25-32.75t 79.25,32.75t 32.75,79.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"trello\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 352,672l0-512 q0-7 -4.5-11.5t-11.5-4.5l-240,0 q-7,0 -11.5,4.5t-4.5,11.5l0,512 q0,7 4.5,11.5t 11.5,4.5l 240,0 q 7,0 11.5-4.5t 4.5-11.5zM 688,480l0-320 q0-7 -4.5-11.5t-11.5-4.5l-240,0 q-7,0 -11.5,4.5t-4.5,11.5l0,320 q0,7 4.5,11.5t 11.5,4.5l 240,0 q 7,0 11.5-4.5t 4.5-11.5zM 768,96l0,704 q0,13 -9.5,22.5t-22.5,9.5l-704,0 q-13,0 -22.5-9.5t-9.5-22.5l0-704 q0-13 9.5-22.5t 22.5-9.5l 704,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"foursquare, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 741.5,512l-293.5,293.5q-26,26.5 -63.75,26.5t-64.25-26.5l-293.5-293.5q-26.5-26.5 -26.5-64t 26.5-64l 293.5-293.5q 26.5-26.5 64-26.5t 64,26.5l 132.5,132.5l-199,199.5l-94-94q-21-21 -49.5-21q-29.5,0 -50,20.5l-60,60.5q-21,20 -21,49.5q0,29 21,50l 203,204q 15,14 33.5,18.5l 3,2l 14,0 q 30,0 49.5-20.5 l 309.5-309.5l 1,1.5q 26.5,26.5 26.5,64t-26.5,64zM 703,199l 60,60q 7,7.5 7,18t-7,18l-365,365q-8.5,7.5 -18.5,7.5l0,0 q-2,0 -3-0.5q-9-1 -15-7l-203.5-204q-7-7.5 -7-18t 7-17.5l 60.5-60q 6.5-7.5 17.5-7.5t 18,7.5l 126,126l 287-287.5q 7.5-7.5 18-7.5t 18,7.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"skype, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 586.5,531.5q0-25 -9.75-45.75t-24.25-34.25t-36.5-24.5t-41.25-17t-43.75-11.5l-52-12q-15-3.5 -22-5.25t-17.5-5.75t-15-8t-8.25-10.5t-3.75-15q0-38.5 72-38.5q 21.5,0 38.5,6t 27,14.25t 19,16.75t 20,14.5t 24,6q 23.5,0 37.75-16t 14.25-38.5q0-27.5 -28-49.75t-71-33.75t-91-11.5q-34,0 -66,7.75 t-59.75,23.5t-44.5,43.5t-16.75,64.25q0,30.5 9.5,53.25t 28,37.75t 40,24.25t 51.5,16.25l 73,18q 45,11 56,18q 16,10 16,30q0,19.5 -20,32.25t-52.5,12.75q-25.5,0 -45.75-8t-32.5-19.25t-22.75-22.5t-23-19.25t-27-8q-25,0 -37.75,15t-12.75,37.5q0,46 61,78.75t 145.5,32.75 q 36.5,0 70-9.25t 61.25-26.75t 44.25-46.75t 16.5-65.75zM 768,640q0,79.5 -56.25,135.75t-135.75,56.25q-65,0 -117-40q-38.5,8 -75,8q-71.5,0 -136.75-27.75t-112.5-75t-75-112.5t-27.75-136.75q0-36.5 8-75q-40-52 -40-117q0-79.5 56.25-135.75t 135.75-56.25q 65,0 117,40 q 38.5-8 75-8q 71.5,0 136.75,27.75t 112.5,75t 75,112.5t 27.75,136.75q0,36.5 -8,75q 40,52 40,117z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"dribbble, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 512,750q-21-120.5 -70-249l-1,0 l-1,0.5q-8,3 -21.5,8.25t-50.5,24.5t-68.5,41t-65.5,57.25t-51.5,74l-7.5-5.5q 92,75 209,75q 66,0 128-26zM 419.5,446.5q-10.5-24.5 -26.5-55.5q-155.5,46.5 -336.5,46.5q-0.5,3.5 -0.5,10.5q0,62 22,118.25t 62,100.75q 25-44.5 61.75-83.25t 71.25-62.25t 65.25-40.5 t 49.75-24l 18.5-6.5q 2-0.5 6.5-1.75t 6.5-2.25zM 366,340.5q-60-106.5 -122-189q-69,32.5 -117,93t-64,136q 151,0 303-40zM 708,500q-105-30 -204.5-14.5q 43.5,119.5 64,234.5q 55.5-37.5 92.5-94.75t 48-125.25zM 305.5,129.5q-0.5,0 -1,0.5q 0.5-0.5 1-0.5zM 600.5,202q-92.5-82 -216.5-82q-38,0 -77.5,9.5 q 65.5,85 123,191q 34.5-13 65-30.25t 48.25-30.75t 32.75-28.5t 18.75-20.25zM 712,444.5q-1.5-116 -74.5-205l-0.5,0.5q-4.5,6 -9.5,12.25t-21.75,22.25t-35.5,30.25t-50,32.5t-65.75,32.25q 12.5,26.5 22,47.5q 1,3 3.25,8.75t 3.75,8.25q 18-2.5 37.25-3.5t 36.75-1t 34.5,0.75t 32,2t 28.25,2.75t 24,3.25t 18.25,3 t 12.5,2.25zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"linux, os\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 331.5,205.5q-5.5,0.5 -7.75,5.25t-4.25,4.75q-2.5,0.5 -2.5-2.5q0-6 9.5-7.5l 5,0 zM 375,212.5q-2,0.5 -5.75-3.25t-8.75-2.25q 12-5.5 16,1q 1.5,3 -1.5,4.5zM 199.5,426q-2-0.5 -3,1.5t-2.25,6.25t-2.75,6.75t-5,6.5q-3.5,5 -0.5,6q 2,0.5 6.25-3.5t 6.25-9q 0.5-1.5 1-3.5t 1-3t 0.75-2.25t 0.25-2l0-1.5 t-0.5-1.25t-1.5-1z M 627,605.5q0-9 -27.5-21q 2-7.5 3.75-13.75t 2.5-13t 1.5-10.75t 0.25-11.25t-0.5-9.75t-1.75-11t-2-10.25t-2.5-12.5t-2.75-13.25q-5-24 -23.5-51.5t-36-37.5q 12,10 28.5,41.5q 43.5,81 27,139q-5.5,20 -25,21q-15.5,2 -19.25-9.25t-4-41.75t-5.75-53.5q-4.5-19.5 -9.75-34.5t-9.75-22.75t-7.75-12.25t-6.5-7.5t-3.75-3.5 q-7-31 -15.5-51.5t-14.75-28t-11.75-16.5t-7.5-20q-2-10.5 3-26.75t 2.25-24.75t-22.25-12.5q-7.5-1.5 -22.25-9t-17.75-8q-4-0.5 -5.5-13t 4-25.5t 18-13.5q 18.5-1.5 25.5,15t 2,29q-5.5,9.5 -1,13.25t 15,0.25q 6.5-2 6.5-18l0-18.5 q-2.5-15 -6.75-25t-10.5-15.25t-11.75-7.5t-13.5-3.75q-53.5,4 -44.5,67q0,7.5 -0.5,7.5 q-4.5-4.5 -14.75-5.25t-16.5,0.25t-7.75-2.5q 0.5-28.5 -8-45t-22.5-17q-13.5-0.5 -20.75,13.75t-8.25,29.75q-0.5,7.5 1.75,18.5t 6.5,18.75t 7.75,6.75q 5-1.5 8-7q 2-4.5 -3.5-4q-3.5,0 -7.75-7.25t-4.75-16.75q-0.5-11 4.5-18.5t 17-7q 8.5,0 13.5,10.5t 4.75,19.5t-0.75,11q-11,7.5 -15.5,14.5q-4,6 -13.75,11.75 t-10.25,6.25q-6.5,7 -7.75,13.5t 3.75,9q 7,4 12.5,9.75t 8,9.5t 9.25,6.5t 17.75,3.25q 23.5,1 51-7.5q 1-0.5 11.5-3.5t 17.25-5.25t 14.75-6.5t 10.5-8.75q 4.5-7 10-4q 2.5,1.5 3.25,4.25t-1.5,6t-8.25,4.75q-10,3 -28.25,10.75t-22.75,9.75q-22,9.5 -35,11.5q-12.5,2.5 -39.5-1q-5-1 -4.5,1t 8.5,9.5 q 12.5,11.5 33.5,11q 8.5-0.5 18-3.5t 18-7t 16.75-8.75t 15-8.5t 12.25-6t 8.75-1.25t 4.25,5.5q0,1 -0.5,2.25t-2,2.5t-3,2.25t-4.25,2.5t-4.5,2.25t-5,2.5t-4.75,2.25q-14,7 -33.75,22t-33.25,21.5t-24.5,0.5q-10.5-5.5 -31.5-36.5q-11-15.5 -12.5-11q-0.5,1.5 -0.5,5q0,12.5 -7.5,28.25t-14.75,27.75t-10.5,29t 5.75,31.5 q-11.5,3 -31.25,45t-23.75,70.5q-1,9 -0.75,34.5t-2.75,29.5q-4,12 -14.5,1.5q-16-15.5 -18-47q-1-14 2-28q 2-9.5 -0.5-9l-2,2.5q-18,32.5 5,83q 2.5,6 12.5,14t 12,10q 10,11.5 52,45.25t 46.5,38.25q 8,7.5 8.75,19t-7,21.5t-22.75,11.5q 4,7.5 14.5,22.25t 14,27t 3.5,35.25q 23-12 3.5-46 q-2-4 -5.25-8t-4.75-6t-1-3q 1.5-2.5 6.5-4.75t 10,1.25q 23,26 83,18q 66.5-7.5 88.5-43.5q 11.5-19 17-15q 6,3 5,26q-0.5,12.5 -11.5,46q-4.5,11.5 -3,18.75t 12,7.75q 1.5-9.5 7.25-38.5t 6.75-45q 1-10.5 -3.25-36.75t-3.75-48.5t 11.5-35.25q 7.5-9 25.5-9q 0.5-18.5 17.25-26.5t 36.25-5.25t 30,11.25zM 313,192 q 1.5-8.5 -1.25-15t-5.75-7.5q-4.5-1 -4.5,3.5q 1,2.5 2.5,3q 5,0 3.5,7.5q-1.5,10 4,10q 1.5,0 1.5-1.5zM 522.5,290.5q-1-4 -3.25-5.75t-6.5-2.5t-7.25-2.75q-2.5-1.5 -4.75-4t-3.5-4t-2.75-3.25t-2-2t-2,0.75q-7,8 3.5,21.75t 19.5,15.75q 4.5,0.5 7.25-4t 1.75-10zM 433.5,184q0-5.5 -2.5-9.75t-5.5-6.25t-4.5-1.5q-7,0.5 -3.5,3.5l 2,1 q 7,2 9,15.5q0,1.5 4-1zM 460.5,67.5q0-1 -1.25-2.5t-4.5-3.5t-4.75-3q-7.5-7.5 -12-7.5q-4.5,0.5 -5.75,3.75t-0.5,6.5t-0.25,6.25q-0.5,2 -3,5.25t-3,4.5t 1.5,4.25q 2,1.5 4,0t 5.5-4.5t 7.5-4.5q 0.5-0.5 4.5-0.5t 7.5-1t 4.5-3.5zM 743,738q 10,6 15.5,12.25t 6,12t-1.25,11.25t-7.75,11t-11.75,9.75t-15,9.25 t-15.75,8.25t-16,7.75t-13.5,6.5q-19,9.5 -42.75,28t-37.75,32q-8.5,8 -34,9.75t-44.5-7.25q-9-4.5 -14.75-11.75t-8.25-12.75t-11-9.75t-23.5-4.75q-22-0.5 -65-0.5q-9.5,0 -28.5,0.75t-29,1.25q-22,0.5 -39.75,7.5t-26.75,15t-21.75,14.25t-26.75,5.75q-14.5-0.5 -55.5-15.5t-73-21.5q-9.5-2 -25.5-4.75 t-25-4.5t-19.75-4.75t-16.75-7.25t-8.5-9.75q-5-11.5 3.5-33.25t 9-27.25q 0.5-8 -2-20t-5-21.25t-2.25-18.25t 5.25-13.5q 7-6 28.5-7t 30-6q 15-9 21-17.5t 6-25.5q 10.5,36.5 -16,53q-16,10 -41.5,7.5q-17-1.5 -21.5,5q-6.5,7.5 2.5,28.5q 1,3 4,9t 4.25,9t 2.25,8.5t 0.5,11q0,7.5 -8.5,24.5t-7,24 q 1.5,8.5 18.5,13q 10,3 42.25,9.25t 49.75,10.25q 12,3 37,11t 41.25,11.5t 27.75,2q 21.5-3 32.25-14t 11.5-24t-3.75-29.25t-9.5-26t-10-18.25q-60.5-95 -84.5-121q-34-37 -56.5-20q-5.5,4.5 -7.5-7.5q-1.5-8 -1-19q 0.5-14.5 5-26t 12-23.5t 11-21q 4-10.5 13.25-36t 14.75-39t 15-30.5t 19.5-27q 55-71.5 62-97.5 q-6-56 -8-155q-1-45 12-75.75t 53-52.25q 19.5-10.5 52-10.5q 26.5-0.5 53,6.75t 44.5,20.75q 28.5,21 45.75,60.75t 14.75,73.75q-2.5,47.5 15,107q 17,56.5 66.5,109q 27.5,29.5 49.75,81.5t 29.75,95.5q 4,24.5 2.5,42.25t-6,27.75t-10,11q-5,1 -11.75,9.5t-13.5,17.75t-20.25,16.75t-30.5,7 q-9-0.5 -15.75-2.5t-11.25-6.75t-6.75-7.75t-5.75-10.25t-4.5-9.75q-11-18.5 -20.5-15t-14,24.5t 3.5,48.5q 10,35 0.5,97.5q-5,32.5 9,50.25t 36.5,16.5t 42.5-17.75q 29.5-24.5 44.75-33.25t 51.75-21.25q 26.5-9 38.5-18.25t 9.25-17.25t-12.5-14.25t-25.75-11.75q-16.5-5.5 -24.75-24t-7.5-36.25t 7.75-23.75q 0.5,15.5 4,28.25 t 7.25,20.25t 10.25,14.25t 10.5,9.5t 10.75,6.5t 8.25,4.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"android, os\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 246.5,241.5q 8,0 13.75-5.75t 5.75-13.75t-5.75-13.75t-13.75-5.75t-13.5,5.75t-5.5,13.75t 5.5,13.75t 13.5,5.75zM 457.5,241.5q 8,0 13.5-5.75t 5.5-13.75t-5.5-13.75t-13.5-5.75t-13.75,5.75t-5.75,13.75t 5.75,13.75t 13.75,5.75zM 51.5,333.5q 21,0 36,15t 15,36l0,215 q0,21.5 -14.75,36.5t-36.25,15 t-36.5-15t-15-36.5l0-215 q0-21 15-36t 36.5-15zM 581.5,343l0,333 q0,23 -16,39t-38.5,16l-37.5,0 l0,113.5 q0,21.5 -15,36.5t-36.5,15t-36.5-15t-15-36.5l0-113.5 l-69,0 l0,113.5 q0,21.5 -15,36.5t-36.5,15q-21,0 -36-15t-15-36.5l-0.5-113.5l-37,0 q-23,0 -39-16t-16-39l0-333 l 459,0 zM 465.5,140.5q 53.5,27.5 85.5,76.75t 32,107.75 l-462.5,0 q0-58.5 32-107.75t 86-76.75l-35.5-65.5q-3.5-6.5 2.5-10q 6.5-3 10,3l 36,66q 47.5-21 100.5-21t 100.5,21l 36-66q 3.5-6 10-3q 6,3.5 2.5,10zM 704,384.5l0,215 q0,21.5 -15,36.5t-36.5,15q-21,0 -36-15t-15-36.5l0-215 q0-21.5 15-36.25t 36-14.75q 21.5,0 36.5,14.75t 15,36.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"windows, os\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 341,503l0,325.5 l-341-47l0-278.5 l 341,0 zM 341,131.5l0,329.5 l-341,0 l0-282.5 zM 832,503l0,393 l-453.5-62.5l0-330.5 l 453.5,0 zM 832,64l0,397 l-453.5,0 l0-334.5 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"apple\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 696.5,607.5q-19.5,62.5 -61.5,125q-64.5,98 -128.5,98q-24.5,0 -70-16q-43-16 -75.5-16q-30.5,0 -71,16.5q-40.5,17 -66,17q-76,0 -150.5-129.5q-73.5-130.5 -73.5-251.5q0-114 56.5-187q 56-72 142-72q 36,0 88.5,15q 52,15 69,15q 22.5,0 71.5-17q 51-17 86.5-17q 59.5,0 106.5,32.5 q 26,18 52,50q-39.5,33.5 -57,59q-32.5,47 -32.5,103.5q0,62 34.5,111.5t 79,63zM 508.5,21q0,30.5 -14.5,68q-15,37.5 -46.5,69q-27,27 -54,36q-18.5,5.5 -52,8.5q 1.5-74.5 39-128.5q 37-53.5 125-74q 0.5,1.5 1.25,5.5t 1.25,5.5q0,2 0.25,5t 0.25,5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"long-arrow-right, arrow, right\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 864,446.5q0,7 -5,12l-192,177q-8,7 -17.5,3q-9.5-4.5 -9.5-14.5l0-112 l-624,0 q-7,0 -11.5-4.5t-4.5-11.5l0-96 q0-7 4.5-11.5t 11.5-4.5l 624,0 l0-112 q0-10.5 9.5-14.5t 17.5,2.5l 192,175q 5,5 5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"long-arrow-left, left, arrow\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 896,400l0,96 q0,7 -4.5,11.5t-11.5,4.5l-624,0 l0,112 q0,10.5 -9.5,14.5t-17.5-2.5l-192-175q-5-5 -5-11.5q0-7 5-12l 192-177q 8-7 17.5-3q 9.5,4.5 9.5,14.5l0,112 l 624,0 q 7,0 11.5,4.5t 4.5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"384\" height=\"896\" viewBox=\"0 0 384 896\" data-du=\"\" data-tags=\"long-arrow-up, arrow, up\" style=\"margin-left: 13px; margin-top: 8px;\"><path d=\"M 382.5,246.5q-4.5,9.5 -14.5,9.5l-112,0 l0,624 q0,7 -4.5,11.5t-11.5,4.5l-96,0 q-7,0 -11.5-4.5t-4.5-11.5l0-624 l-112,0 q-10.5,0 -14.5-9.5t 2.5-17.5l 175-192q 5-5 11.5-5q 7,0 12,5l 177.5,192q 6.5,8 2.5,17.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"384\" height=\"896\" viewBox=\"0 0 384 896\" data-du=\"\" data-tags=\"long-arrow-down, arrow, down, bottom\" style=\"margin-left: 13px; margin-top: 8px;\"><path d=\"M 382.5,649.5q 4,9.5 -2.5,17.5l-175,192q-5,5 -11.5,5q-7,0 -12-5l-177.5-192q-6.5-8 -2.5-17.5q 4.5-9.5 14.5-9.5l 112,0 l0-624 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5l0,624 l 112,0 q 10.5,0 14.5,9.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"tumblr-sign, social, blog\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 561.5,704.5l0-90.5 q-44,28 -87,28q-25.5,0 -44-11.5q-14.5-8.5 -19.5-22.5q-5.5-15 -5.5-64.5l0-147.5 l 137,0 l0-90.5 l-137,0 l0-145.5 l-82,0 q-5.5,45 -20,73.5t-39,49.5q-24,20 -58,31.5l0,81.5 l 63.5,0 l0,202 q0,39 8.5,60.5q 8.5,21 29.5,39q 21.5,18.5 52,28.5q 31,10 70,10q 33.5,0 64.5-7q 28.5-6.5 67-24.5zM 768,208 l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"tumblr, social, blog\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 195,64l 109.5,0 l0,194 l 182,0 l0,120.5 l-182,0 l0,197 q0,68 7,86q 6.5,18.5 26,30q 25,15.5 58.5,15.5q 58.5,0 116-38l0,121 q-51,24 -89,32.5q-38.5,9.5 -86.5,9.5q-52.5,0 -93-13.5q-39-12.5 -69-37.5q-29-25.5 -39.5-52.5q-11-27 -11-80.5l0-269.5 l-85,0 l0-108.5 q 45.5-15 77.5-42q 32-27.5 51.5-66q 19.5-39 27-98z \" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"bitbucket-sign\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 424,435q0-21.5 -20.5-33t-38.5-0.5q-21.5,10 -21.25,36.25t 21.75,35.25q 19.5,11.5 40.5-2t 18-36zM 464,427q 4,33 -18,60.5t-55,30.5t-59.5-20t-28-56.5q-1-24.5 12.75-46.5t 36.25-32q 35-15.5 70.75,5t 40.75,59zM 550,231.5q-10,10.5 -26.75,17t-26.5,8t-31.75,4q-77.5,10 -162,0q-22-3 -31.5-4.75 t-26.25-8t-27.25-16.25q 6.5-9.5 18-15.5t 20-7.75t 23.5-4.25q 99-17.5 204-0.5q 16.5,2.5 25.5,4.25t 21.5,8t 19.5,15.75zM 571,604.5q0-3.5 2.75-13.25t 1.5-16t-8.75-8.25q-80.5,53 -182.5,53t-183-53l-6,3l-2.5,6q 13,77 20.5,105q 23.5,40.5 102,54q 124.5,23 214-26.5q 17-9.5 24.5-25.75t 11.25-42.75t 6.25-35.5z M 636,258q 4.5-26.5 -4-37.5q-21.5-27.5 -77.5-44q-108-31.5 -243.5-18q-66,6 -113,23q-19,7.5 -29.75,12.5t-23.5,17t-14.75,27q 4,34 9.5,69t 14.5,85.5t 12,68.5q 0.5,2.5 2.5,15.5t 3.5,18t 6,13.5t 11,14q 52.5,40 142,50q 129.5,14 220-31.5q 12-6.5 19.75-11.5t 15.5-14.5t 9.75-20q 24-133.5 40-236.5zM 768,208 l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"bitbucket\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 407.5,429.5q 4,31.5 -25.25,50.5t-55.75,3q-19.5-8.5 -26.75-29t-0.25-41t 26-29q 18-9 36.25-6t 32,17.75t 13.75,33.75zM 463,419q-7-53.5 -56.5-82t-98.5-6.5q-31.5,14 -50.25,44.25t-17.25,64.75q 2,45.5 38.75,77.5t 82.75,28q 45.5-4 76-42t 25-84zM 582.5,148q-10-13.5 -28-22.25t-29-11 t-35.5-6.25q-145.5-23.5 -283,1q-21.5,3.5 -33,6t-27.5,11t-25,21.5q 15,14 38,22.75t 36.75,11t 43.75,5.75q 114,14.5 224,0.5q 31.5-4 44.75-6t 36.25-10.75t 37.5-23.25zM 611,665.5q-4,13 -7.75,38.25t-7,42t-14.25,35t-29,28.25q-43,24 -94.75,35.75t-101,11t-100.75-9.25q-23-4 -40.75-9 t-38.25-13.5t-36.5-21.75t-26-30.75q-12.5-48 -28.5-146l 3-8l 9-4.5q 111.5,74 253.25,74t 253.75-74q 10.5,3 12,11.5t-2.5,22.5t-4,18.5zM 701.5,185q-13,83.5 -55.5,327.5q-2.5,15 -13.5,28t-21.75,20t-27.25,15.5q-126,63 -305,44q-124-13.5 -197-69.5q-7.5-6 -12.75-13.25t-8.5-17.5t-4.5-17t-3-19.75 t-2.75-17.5q-4.5-25 -13.25-75t-14-80.75t-11.75-73.75t-11-79q 1.5-13 8.75-24.25t 15.75-18.75t 22.5-15t 23-11.25t 24-9.25q 62.5-23 156.5-32q 189.5-18.5 338,25q 77.5,23 107.5,61q 8,10 8.25,25.5t-2.75,27z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"adn\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 384,311l 100.5,153l-201,0 zM 566.5,576l 47,0 l-229.5-345.5l-229.5,345.5l 47,0 l 52-80l 261,0 zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"flickr, photos, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 624,64q 59.5,0 101.75,42.25t 42.25,101.75l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 zM 349,448q0-44 -31-75t-75-31t-75,31t-31,75t 31,75t 75,31t 75-31t 31-75zM 631,448q0-44 -31-75 t-75-31t-75,31t-31,75t 31,75t 75,31t 75-31t 31-75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"instagram, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 681,713l0-324 l-67.5,0 q 10,31.5 10,65.5q0,63 -32,116.25t-87,84.25t-120,31q-98.5,0 -168.5-67.75t-70-163.75q0-34 10-65.5l-70.5,0 l0,324 q0,13 8.75,21.75t 21.75,8.75l 534.5,0 q 12.5,0 21.5-8.75t 9-21.75zM 539,446.5q0-62 -45.25-105.75t-109.25-43.75q-63.5,0 -108.75,43.75t-45.25,105.75 t 45.25,105.75t 108.75,43.75q 64,0 109.25-43.75t 45.25-105.75zM 681,266.5l0-82.5 q0-14 -10-24.25t-24.5-10.25l-87,0 q-14.5,0 -24.5,10.25t-10,24.25l0,82.5 q0,14.5 10,24.5t 24.5,10l 87,0 q 14.5,0 24.5-10t 10-24.5zM 768,162.5l0,571 q0,40.5 -29,69.5t-69.5,29l-571,0 q-40.5,0 -69.5-29t-29-69.5l0-571 q0-40.5 29-69.5 t 69.5-29l 571,0 q 40.5,0 69.5,29t 29,69.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"stackexchange, stackoverflow, social\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 464,700.5l0,75.5 l-353.5,0.5l0-75.5 zM 584.5,527.5l0,350.5 l-0.5,17.5l0,0.5 l-566,0 l-17.5-0.5l-0.5,0 l0-368 l 60.5,0 l0,309 l 464,0 l0-309 l 60,0 zM 120.5,571.5l 352,32.5l-6.5,75l-352.5-32.5zM 154.5,413.5l 341.5,91.5l-19.5,73l-341.5-91.5zM 236,239l 304.5,180l-38.5,65l-304.5-180zM 416,73.5l 199,292.5l-62,42.5l-199.5-292zM 642.5,0 l 60.5,348.5l-74.5,13l-60.5-348.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"dropbox\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 201,353.5l 247,152.5l-171,142.5l-245-159.5zM 694,631l0,54 l-245,146.5l0,0.5 l-0.5-0.5l-0.5,0.5l0-0.5 l-244.5-146.5l0-54 l 73.5,48l 171-142l0-1 l 0.5,0.5l 0.5-0.5l0,1 l 171.5,142zM 277,59l 171,142.5l-247,152l-169-135zM 695,353.5l 169,135.5l-244.5,159.5l-171.5-142.5zM 619.5,59l 244.5,159.5l-169,135l-247-152z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"youtube-play, social\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 640,448q0-18.5 -15-27l-256-160q-15.5-10 -32.5-1q-16.5,9 -16.5,28l0,320 q0,19 16.5,28q 8,4 15.5,4q 10,0 17-5l 256-160q 15-8.5 15-27zM 896,448q0,48 -0.5,75t-4.25,68.25t-11.25,73.75q-8,36.5 -34.5,61.5t-62,29q-111,12.5 -335.5,12.5t-335.5-12.5q-35.5-4 -62.25-29t-34.75-61.5 q-7-32.5 -10.75-73.75t-4.25-68.25t-0.5-75t 0.5-75t 4.25-68.25t 11.25-73.75q 8-36.5 34.5-61.5t 62-29q 111-12.5 335.5-12.5t 335.5,12.5q 35.5,4 62.25,29t 34.75,61.5q 7,32.5 10.75,73.75t 4.25,68.25t 0.5,75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"xing-sign, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 342.5,382.5q0-0.5 -63-111q-10.5-17 -26-17l-92,0 q-9,0 -13,5.5q-3.5,6 0.5,14.5l 62.5,108l0,0.5 l-98,173q-4.5,7 0,14q 4,6.5 12,6.5l 92.5,0 q 15.5,0 25-18zM 654.5,134q-3.5-6 -12-6l-93.5,0 q-15,0 -24.5,17.5l-205.5,364.5q 0.5,1 131,240.5q 10,17.5 26,17.5l 92,0 q 9,0 12.5-6q 4-6.5 -0.5-14l-130-238l0-0.5 l 204.5-361.5q 4-8 0-14zM 768,208l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"xing, social\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 298.5,333.5q-5,9 -128.5,228q-13.5,23 -32.5,23l-119.5,0 q-10.5,0 -15.5-8.5t0-18l 126.5-224q 0.5,0 0-0.5l-80.5-139.5q-6-11 -0.5-18.5q 4.5-7.5 16-7.5l 119.5,0 q 20,0 33,22.5zM 701.5,12.5q 5.5,8 0,18.5l-264,467l0,0.5 l 168,307.5q 5.5,10 0.5,18.5q-5,7.5 -16,7.5l-119.5,0 q-21,0 -33-22.5l-169.5-311q 9-16 265.5-471 q 12.5-22.5 32-22.5l 120.5,0 q 11,0 15.5,7.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"youtube, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 485.5,622l0,105.5 q0,33.5 -19.5,33.5q-11.5,0 -22.5-11l0-150.5 q 11-11 22.5-11q 19.5,0 19.5,33.5zM 654.5,622.5l0,23 l-45,0 l0-23 q0-34 22.5-34t 22.5,34zM 171.5,513.5l 53.5,0 l0-47 l-156,0 l0,47 l 52.5,0 l0,284.5 l 50,0 l0-284.5 zM 315.5,798l 44.5,0 l0-247 l-44.5,0 l0,189 q-15,21 -28.5,21q-9,0 -10.5-10.5q-0.5-1.5 -0.5-17.5l0-182 l-44.5,0 l0,195.5 q0,24.5 4,36.5 q 6,18.5 29,18.5q 24,0 51-30.5l0,27 zM 530,724l0-98.5 q0-36.5 -4.5-49.5q-8.5-28 -35.5-28q-25,0 -46.5,27l0-108.5 l-44.5,0 l0,331.5 l 44.5,0 l0-24 q 22.5,27.5 46.5,27.5q 27,0 35.5-27.5q 4.5-13.5 4.5-50zM 699,719l0-6.5 l-45.5,0 q0,25.5 -1,30.5q-3.5,18 -20,18q-23,0 -23-34.5l0-43.5 l 89.5,0 l0-51.5 q0-39.5 -13.5-58q-19.5-25.5 -53-25.5q-34,0 -53.5,25.5 q-14,18.5 -14,58l0,86.5 q0,39.5 14.5,58q 19.5,25.5 54,25.5q 36,0 54-26.5q 9-13.5 10.5-27q 1-4.5 1-29zM 395,262.5l0-105 q0-34.5 -21.5-34.5t-21.5,34.5l0,105 q0,35 21.5,35t 21.5-35zM 754.5,638q0,117 -13,175q-7,29.5 -29,49.5t-51,23q-92,10.5 -277.5,10.5t-277.5-10.5q-29-3 -51.25-23t-28.75-49.5 q-13-56 -13-175q0-117 13-175q 7-29.5 29-49.5t 51.5-23.5q 91.5-10 277-10t 277.5,10q 29,3.5 51.25,23.5t 28.75,49.5q 13,56 13,175zM 255.5,0l 51,0 l-60.5,199.5l0,135.5 l-50,0 l0-135.5 q-7-37 -30.5-106q-18.5-51.5 -32.5-93.5l 53,0 l 35.5,131.5zM 440.5,166.5l0,87.5 q0,40.5 -14,59q-18.5,25.5 -53,25.5q-33.5,0 -52.5-25.5 q-14-19 -14-59l0-87.5 q0-40 14-58.5q 19-25.5 52.5-25.5q 34.5,0 53,25.5q 14,18.5 14,58.5zM 608,85.5l0,249.5 l-45.5,0 l0-27.5 q-26.5,31 -51.5,31q-23,0 -29.5-18.5q-4-12 -4-37.5l0-197 l 45.5,0 l0,183.5 q0,16.5 0.5,17.5q 1.5,11 10.5,11q 13.5,0 28.5-21.5l0-190.5 l 45.5,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"youtube-sign, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 459.5,651.5l0-78.5 q0-25 -14.5-25q-8.5,0 -16.5,8l0,112 q 8,8 16.5,8q 14.5,0 14.5-24.5zM 551.5,590.5l 33,0 l0-17 q0-25.5 -16.5-25.5t-16.5,25.5l0,17 zM 266,457.5l0,35 l-40,0 l0,211.5 l-37,0 l0-211.5 l-39,0 l0-35 l 116,0 zM 366.5,520.5l0,183.5 l-33.5,0 l0-20 q-19.5,22.5 -38,22.5q-16.5,0 -21-14q-3-8 -3-27l0-145 l 33,0 l0,135 q0,12 0.5,13q 0.5,7.5 7.5,7.5 q 10,0 21-15.5l0-140 l 33.5,0 zM 492.5,576l0,73 q0,26 -3.5,36.5q-6,21 -26.5,21q-17.5,0 -34-20.5l0,18 l-33.5,0 l0-246.5 l 33.5,0 l0,80.5 q 16-20 34-20q 20.5,0 26.5,21q 3.5,10.5 3.5,37zM 618,640.5l0,4.5 q0,14.5 -1,21.5q-1.5,11 -7.5,20q-13.5,20 -40,20q-26,0 -40.5-19q-10.5-13.5 -10.5-43l0-64.5 q0-29.5 10-43q 14.5-19 40-19t 39,19 q 10.5,14 10.5,43l0,38 l-66.5,0 l0,32.5 q0,25.5 17,25.5q 12,0 15-13q0-0.5 0.25-3.5t 0.25-8.25l0-10.75 l 34,0 zM 392.5,228.5l0,78 q0,25.5 -16,25.5t-16-25.5l0-78 q0-26 16-26t 16,26zM 659,585q0-88.5 -9.5-130q-5-22 -21.5-36.75t-38-17.25q-68-7.5 -206-7.5q-137.5,0 -205.5,7.5q-22,2.5 -38.25,17.25t-21.25,36.75 q-10,43.5 -10,130q0,88 10,130q 5,21.5 21.25,36.5t 37.75,17.5q 68.5,7.5 206,7.5t 206-7.5q 21.5-2.5 37.75-17.5t 21.25-36.5q 10-42 10-130zM 281.5,259.5l 45-148l-37.5,0 l-25.5,97.5l-26.5-97.5l-39,0 l 12,34.5t 11.5,34.5q 17.5,51.5 23,79l0,100.5 l 37,0 l0-100.5 zM 426,300l0-65 q0-29 -10.5-43.5q-14.5-19 -39-19q-25.5,0 -39,19 q-10.5,14.5 -10.5,43.5l0,65 q0,29 10.5,43.5q 13.5,19 39,19q 24.5,0 39-19q 10.5-13.5 10.5-43.5zM 516.5,360l 33.5,0 l0-185 l-33.5,0 l0,141.5 q-11,15.5 -21,15.5q-7.5,0 -8-8q-0.5-1 -0.5-13l0-136 l-33.5,0 l0,146.5 q0,18.5 3,27.5q 5.5,13.5 21.5,13.5q 18,0 38.5-22.5l0,20 zM 768,208l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"thumbs-down, rate, down, dislike\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 128,288q0,13 -9.5,22.5t-22.5,9.5q-13.5,0 -22.75-9.5t-9.25-22.5q0-13.5 9.25-22.75t 22.75-9.25q 13,0 22.5,9.25t 9.5,22.75zM 208,544l0-320 q0-13 -9.5-22.5t-22.5-9.5l-144,0 q-13,0 -22.5,9.5t-9.5,22.5l0,320 q0,13 9.5,22.5t 22.5,9.5l 144,0 q 13,0 22.5-9.5t 9.5-22.5zM 772.5,469.5q 27.5,30.5 27.5,74.5q-0.5,39 -28.75,67.5 t-67.25,28.5l-138.5,0 q 2,7 4,12t 5.5,11t 5,9q 9,18.5 13.5,28.5t 9.5,29.25t 5,38.25q0,12 -0.25,19.5t-2.5,22.5t-6,25t-12,22.5t-20,20.25t-30,13t-41.25,5.25q-13,0 -22.5-9.5q-10-10 -17-25t-9.75-26t-6.25-30.5q-4.5-21 -6.75-30.25t-8.75-24.25t-15.5-24q-16.5-16.5 -50.5-60q-24.5-32 -50.5-60.5 t-38-29.5q-12.5-1 -21.5-10.25t-9-21.75l0-320.5 q0-13 9.5-22.25t 22.5-9.75q 17.5-0.5 79-22q 38.5-13 60.25-19.75t 60.75-14.5t 72-7.75l 8.5,0 l 38,0 l 18,0 q 66.5,1 98.5,39q 29,34.5 24.5,90.5q 19.5,18.5 27,47q 8.5,30.5 0,58.5q 23,30.5 21.5,68.5q0,16 -7.5,38z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"thumbs-up, up, rate, like\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 128,672q0-13 -9.5-22.5t-22.5-9.5q-13.5,0 -22.75,9.5t-9.25,22.5q0,13.5 9.25,22.75t 22.75,9.25q 13,0 22.5-9.25t 9.5-22.75zM 208,416l0,320 q0,13 -9.5,22.5t-22.5,9.5l-144,0 q-13,0 -22.5-9.5t-9.5-22.5l0-320 q0-13 9.5-22.5t 22.5-9.5l 144,0 q 13,0 22.5,9.5t 9.5,22.5zM 800,416q0,43 -27.5,74.5q 7.5,22 7.5,38 q 1.5,38 -21.5,68.5q 8.5,28 0,58.5q-7.5,28.5 -27,47q 4.5,56 -24.5,90.5q-32,38 -98.5,39l-18,0 l-38,0 l-8.5,0 q-33,0 -72-7.75t-60.75-14.5t-60.25-19.75q-61.5-21.5 -79-22q-13-0.5 -22.5-9.75t-9.5-22.25l0-320.5 q0-12.5 9-21.75t 21.5-10.25q 12-1 38-29.5t 50.5-60.5q 34-43.5 50.5-60q 9-9 15.5-24t 8.75-24.25 t 6.75-30.25q 3.5-19.5 6.25-30.5t 9.75-26t 17-25q 9.5-9.5 22.5-9.5q 23,0 41.25,5.25t 30,13t 20,20.25t 12,22.5t 6,25t 2.5,22.5t 0.25,19.5q0,19 -4.75,38t-9.5,30t-13.75,28q-1.5,3 -5,9t-5.5,11t-4,12l 138.5,0 q 39,0 67.5,28.5t 28.5,67.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"sort-by-order-alt\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 673,144.5q0-31.5 -22-58t-51.5-26.5q-26,0 -41.5,18.5t-15.5,47t 18.25,47.5t 52.25,19q 25,0 42.5-13.5t 17.5-34zM 368,720q0,6 -5,12l-159.5,159.5q-5,4.5 -11.5,4.5q-6,0 -11.5-4.5l-160-160q-7.5-8 -3.5-17.5q 4-10 15-10l 96,0 l0-688 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5l0,688 l 96,0 q 7,0 11.5,4.5 t 4.5,11.5zM 728,839l0,57 l-234.5,0 l0-57 l 83.5,0 l0-216 q0-3.5 0.25-9.5t 0.25-8.5l0-8 l-1,0 l-3.5,6q-4,6.5 -13,15.5l-31,29l-41-43l 96-92.5l 61.5,0 l0,327 l 82.5,0 zM 743,173.5q0,31 -6.5,60.75t-20.5,57t-34,47.75t-49.25,32.75t-63.75,12.25q-31,0 -54-8q-12-4 -21-7.5l 19.5-56.5q 7.5,3.5 15.5,5.5q 18.5,6.5 37.5,6.5 q 42,0 67.25-29.25t 33.25-72.75l-1,0 q-10.5,11.5 -30.75,18.5t-42.25,7q-53,0 -86.5-35.75t-33.5-86.25q0-52.5 36-89t 90.5-36.5q 61.5,0 102.5,47.25t 41,126.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"sort-by-order\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 673,656.5q0-31.5 -22-58t-51.5-26.5q-26,0 -41.5,18.5t-15.5,47t 18.25,47.5t 52.25,19q 25,0 42.5-13.5t 17.5-34zM 368,720q0,6 -5,12l-159.5,159.5q-5,4.5 -11.5,4.5q-6,0 -11.5-4.5l-160-160q-7.5-8 -3.5-17.5q 4-10 15-10l 96,0 l0-688 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5l0,688 l 96,0 q 7,0 11.5,4.5t 4.5,11.5 zM 743,685.5q0,31 -6.5,60.75t-20.5,57t-34,47.75t-49.25,32.75t-63.75,12.25q-31,0 -54-8q-12-4 -21-7.5l 19.5-56.5q 7.5,3.5 15.5,5.5q 18.5,6.5 37.5,6.5q 42,0 67.25-29.25t 33.25-72.75l-1,0 q-10.5,11.5 -30.75,18.5t-42.25,7q-53,0 -86.5-35.75t-33.5-86.25q0-52.5 36-89t 90.5-36.5q 61.5,0 102.5,47.25 t 41,126.25zM 728,327l0,57 l-234.5,0 l0-57 l 83.5,0 l0-216 q0-3.5 0.25-9.5t 0.25-8.5l0-8 l-1,0 l-3.5,6q-4,6.5 -13,15.5l-31,29l-41-43l 96-92.5l 61.5,0 l0,327 l 82.5,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"sort-by-attributes-alt\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 608,784l0,96 q0,7 -4.5,11.5t-11.5,4.5l-128,0 q-7,0 -11.5-4.5t-4.5-11.5l0-96 q0-7 4.5-11.5t 11.5-4.5l 128,0 q 7,0 11.5,4.5t 4.5,11.5zM 368,720q0,6 -5,12l-159.5,159.5q-5,4.5 -11.5,4.5q-6,0 -11.5-4.5l-160-160q-7.5-8 -3.5-17.5q 4-10 15-10l 96,0 l0-688 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5l0,688 l 96,0 q 7,0 11.5,4.5t 4.5,11.5zM 704,528l0,96 q0,7 -4.5,11.5t-11.5,4.5l-224,0 q-7,0 -11.5-4.5t-4.5-11.5l0-96 q0-7 4.5-11.5t 11.5-4.5l 224,0 q 7,0 11.5,4.5t 4.5,11.5zM 800,272l0,96 q0,7 -4.5,11.5t-11.5,4.5l-320,0 q-7,0 -11.5-4.5t-4.5-11.5l0-96 q0-7 4.5-11.5t 11.5-4.5l 320,0 q 7,0 11.5,4.5t 4.5,11.5zM 896,16l0,96 q0,7 -4.5,11.5t-11.5,4.5l-416,0 q-7,0 -11.5-4.5t-4.5-11.5l0-96 q0-7 4.5-11.5t 11.5-4.5l 416,0 q 7,0 11.5,4.5t 4.5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"sort-by-attributes\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 368,720q0,6 -5,12l-159.5,159.5q-5,4.5 -11.5,4.5q-6,0 -11.5-4.5l-160-160q-7.5-8 -3.5-17.5q 4-10 15-10l 96,0 l0-688 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5l0,688 l 96,0 q 7,0 11.5,4.5t 4.5,11.5zM 896,784l0,96 q0,7 -4.5,11.5t-11.5,4.5l-416,0 q-7,0 -11.5-4.5t-4.5-11.5l0-96 q0-7 4.5-11.5t 11.5-4.5l 416,0 q 7,0 11.5,4.5t 4.5,11.5zM 800,528l0,96 q0,7 -4.5,11.5t-11.5,4.5l-320,0 q-7,0 -11.5-4.5t-4.5-11.5l0-96 q0-7 4.5-11.5t 11.5-4.5l 320,0 q 7,0 11.5,4.5t 4.5,11.5zM 704,272l0,96 q0,7 -4.5,11.5t-11.5,4.5l-224,0 q-7,0 -11.5-4.5t-4.5-11.5l0-96 q0-7 4.5-11.5t 11.5-4.5l 224,0 q 7,0 11.5,4.5t 4.5,11.5zM 608,16l0,96 q0,7 -4.5,11.5t-11.5,4.5l-128,0 q-7,0 -11.5-4.5t-4.5-11.5l0-96 q0-7 4.5-11.5t 11.5-4.5l 128,0 q 7,0 11.5,4.5t 4.5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"sort-by-alphabet-alt, alphabet\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 595.5,716l 88.5,0 l-36-109l-6-23.5q-1-8 -1-10l-2,0 l-1.5,10q0,0.5 -1.75,9t-3.75,14.5zM 368,720q0,6 -5,12l-159.5,159.5q-5,4.5 -11.5,4.5q-6,0 -11.5-4.5l-160-160q-7.5-8 -3.5-17.5q 4-10 15-10l 96,0 l0-688 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5l0,688 l 96,0 q 7,0 11.5,4.5t 4.5,11.5zM 830.5,843 l0,53 l-144,0 l0-53 l 37.5,0 l-23.5-72l-121.5,0 l-23.5,72l 37.5,0 l0,53 l-143.5,0 l0-53 l 35,0 l 115-331l 81,0 l 115,331l 35,0 zM 786,267.5l0,116.5 l-292,0 l0-45 l 184.5-264.5q 6-9 10.5-13.5l 5.5-4.5l0-1.5 q-1,0 -3.25,0.25t-3.75,0.25q-6,1.5 -15,1.5l-116,0 l0,57.5 l-60,0 l0-114.5 l 283.5,0 l0,44.5 l-184.5,265q-3,4 -10.5,13l-5.5,5l0,1.5 l 7-1.5q 4.5-0.5 15-0.5l 124,0 l0-59.5 l 60.5,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"sort-by-alphabet, alphabet\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 595.5,204l 88.5,0 l-36-109l-6-23.5q-1-8 -1-10l-2,0 l-1.5,10q0,0.5 -1.75,9t-3.75,14.5zM 368,720q0,6 -5,12l-159.5,159.5q-5,4.5 -11.5,4.5q-6,0 -11.5-4.5l-160-160q-7.5-8 -3.5-17.5q 4-10 15-10l 96,0 l0-688 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5l0,688 l 96,0 q 7,0 11.5,4.5t 4.5,11.5zM 786,779.5 l0,116.5 l-292,0 l0-45 l 184.5-264.5q 6-9 10.5-13.5l 5.5-4.5l0-1.5 q-1,0 -3.25,0.25t-3.75,0.25q-6,1.5 -15,1.5l-116,0 l0,57.5 l-60,0 l0-114.5 l 283.5,0 l0,44.5 l-184.5,265q-3,4 -10.5,13l-5.5,5.5l0,1 l 7-1q 4.5-1 15-1l 124,0 l0-59.5 l 60.5,0 zM 830.5,331l0,53 l-144,0 l0-53 l 37.5,0 l-23.5-72l-121.5,0 l-23.5,72l 37.5,0 l0,53 l-143.5,0 l0-53 l 35,0 l 115-331l 81,0 l 115,331l 35,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"640\" height=\"896\" viewBox=\"0 0 640 896\" data-du=\"\" data-tags=\"file-text\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 512,688l0-32 q0-7 -4.5-11.5t-11.5-4.5l-352,0 q-7,0 -11.5,4.5t-4.5,11.5l0,32 q0,7 4.5,11.5t 11.5,4.5l 352,0 q 7,0 11.5-4.5t 4.5-11.5zM 512,560l0-32 q0-7 -4.5-11.5t-11.5-4.5l-352,0 q-7,0 -11.5,4.5t-4.5,11.5l0,32 q0,7 4.5,11.5t 11.5,4.5l 352,0 q 7,0 11.5-4.5t 4.5-11.5zM 640,384l0,400 q0,20 -14,34t-34,14l-544,0 q-20,0 -34-14 t-14-34l0-672 q0-20 14-34t 34-14l 272,0 l0,272 q0,20 14,34t 34,14l 272,0 zM 638.5,320l-254.5,0 l0-254.5 q 41,7.5 66,32.5l 156,156q 25,25 32.5,66z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"640\" height=\"896\" viewBox=\"0 0 640 896\" data-du=\"\" data-tags=\"file, new, paper, document\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 640,384l0,400 q0,20 -14,34t-34,14l-544,0 q-20,0 -34-14t-14-34l0-672 q0-20 14-34t 34-14l 272,0 l0,272 q0,20 14,34t 34,14l 272,0 zM 638.5,320l-254.5,0 l0-254.5 q 41,7.5 66,32.5l 156,156q 25,25 32.5,66z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"640\" height=\"896\" viewBox=\"0 0 640 896\" data-du=\"\" data-tags=\"bitcoin, btc, currency, money\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 583.5,320q 9,91 -65.5,129q 58.5,14 87.5,51.5t 22.5,107q-3.5,35.5 -16.25,62.5t-32.25,44.5t-48.5,29.25t-60.75,17.25t-72.75,7.5l0,127.5 l-77,0 l0-125.5 q-40,0 -61-0.5l0,126 l-77,0 l0-127.5 q-9,0 -27-0.25t-27.5-0.25l-100,0 l 15.5-91.5l 55.5,0 q 25,0 29-25.5l0-201 l 8,0 q-3-0.5 -8-0.5l0-143.5 q-6.5-34 -44.5-34l-55.5,0 l0-82 l 106,0.5q 32,0 48.5-0.5l0-126 l 77,0 l0,123.5 q 41-1 61-1l0-122.5 l 77,0 l0,126 q 39.5,3.5 70,11.25t 56.5,22.5t 41.25,39t 18.25,57.25zM 476,592.5q0-18 -7.5-32t-18.5-23t-28.75-15.25t-32.75-9.25t-37-4.5t-34.5-1.5t-32.25,0.5t-23.75,0.5l0,169 q 4,0 18.5,0.25t 24,0.25t 26.5-0.75t 29.25-2t 28.5-4.25t 27.75-7t 23.75-10.5t 19.75-15 t 12.25-20t 4.75-25.5zM 440.5,354.5q0-16.5 -6.25-29.25t-15.25-21t-24-14t-27.5-8.25t-30.75-4t-29-1.25t-27,0.5t-19.75,0.25l0,153.5 q 2.5,0 17.25,0.25t 23.25,0t 25-1t 27.5-2.75t 25.75-5.5t 24.25-9.25t 18.5-13.5t 13.5-19.25t 4.5-25.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"won, krw, currency, money\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 257,597.5l 40.5-149.5l-79.5,0 l 37.5,150q 0.5,0.5 0.5,1.5t 0.5,1.5q0-0.5 0.25-1.75t 0.25-1.75zM 315,384l 17.5-64l-146,0 l 16,64l 112.5,0 zM 411,384l 69.5,0 l-17.5-64l-35,0 zM 635.5,598l 39-150l-81,0 l 40.5,149.5q0,0.5 0.25,1.75t 0.75,1.75q0-0.5 0.25-1.5t 0.25-1.5zM 691,384l 16.5-64l-148.5,0 l 17,64l 115,0 zM 896,400l0,32 q0,7 -4.5,11.5 t-11.5,4.5l-106.5,0 l-82,308q-3.5,12 -15.5,12l-79.5,0 q-12,0 -15.5-12l-83-308l-104.5,0 l-83.5,308q-3.5,12 -15.5,12l-79.5,0 q-5.5,0 -9.75-3.5t-5.25-8.5l-80-308l-104,0 q-7,0 -11.5-4.5t-4.5-11.5l0-32 q0-7 4.5-11.5t 11.5-4.5l 87.5,0 l-16.5-64l-71,0 q-7,0 -11.5-4.5t-4.5-11.5l0-32 q0-7 4.5-11.5t 11.5-4.5l 54.5,0 l-44.5-172q-2.5-7.5 2.5-14 q 5-6 13-6l 68.5,0 q 13,0 15.5,12l 45,180l 179.5,0 l 48.5-180q 3.5-12 15.5-12l 63,0 q 12,0 15.5,12l 49,180l 182.5,0 l 46.5-180q 2.5-12 15.5-12l 68.5,0 q 8,0 13,6q 5,6.5 2.5,14l-45.5,172l 55.5,0 q 7,0 11.5,4.5t 4.5,11.5l0,32 q0,7 -4.5,11.5t-11.5,4.5l-72.5,0 l-17,64l 89.5,0 q 7,0 11.5,4.5t 4.5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"renminbi, cny, currency, money\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 832,592l0,16 q0,66 -47,113t-113,47l-64,0 q-66,0 -113-47t-47-113l0-240 l-112,0 q-1,51 -7.25,95.25t-15.25,78t-24.25,63.25t-28.5,49.75t-33.75,38.75t-34.75,29.25t-37,22t-34.5,16t-32.75,12.75q-2,1 -16,6.5q-4,1 -6,1q-11,0 -15-10l-35.5-89q-2.5-6.5 0-12.5t 8.5-8.5 q 3.5-1.5 10-3.75t 9-3.25q 15.5-6 23.25-9.25t 22.25-10t 22.75-13t 21-16.25t 20.25-21.25t 17.25-26.75t 15.25-34.25t 11.25-41.75t 8.5-51.5t 3.25-61.5l-128,0 q-7,0 -11.5-4.5t-4.5-11.5l0-80 q0-7 4.5-11.5t 11.5-4.5l 608,0 q 7,0 11.5,4.5t 4.5,11.5l0,80 q0,7 -4.5,11.5t-11.5,4.5l-112,0 l0,256 q0,13 9.5,22.5t 22.5,9.5l 64,0 q 13,0 22.5-9.5t 9.5-22.5 l0-32 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5zM 640,80l0,80 q0,7 -4.5,11.5t-11.5,4.5l-480,0 q-7,0 -11.5-4.5t-4.5-11.5l0-80 q0-7 4.5-11.5t 11.5-4.5l 480,0 q 7,0 11.5,4.5t 4.5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"513\" height=\"896\" viewBox=\"0 0 513 896\" data-du=\"\" data-tags=\"yen, jpy, currency, money\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 301.25,768l-86,0 q-6.5,0 -11.25-4.5t-4.75-11.5l0-165 l-144,0 q-6.5,0 -11.25-4.5t-4.75-11.5l0-51.5 q0-6.5 4.75-11.25t 11.25-4.75l 144,0 l0-42.5 l-144,0 q-6.5,0 -11.25-4.5t-4.75-11.5l0-52 q0-6.5 4.75-11.25t 11.25-4.75l 107,0 l-160.5-289q-4-8 0-16q 5-8 14-8l 97,0 q 9.5,0 14.5,9l 107.5,212.5q 9.5,19 28,62.5q 5-12 15.25-34t 13.75-30.5 l 95.5-210q 4-9.5 14.5-9.5l 95.5,0 q 8.5,0 13.5,8q 4.5,7 0.5,15.5l-156.5,289.5l 107.5,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,52 q0,7 -4.75,11.5t-11.25,4.5l-145,0 l0,42.5 l 145,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,51.5 q0,7 -4.75,11.5t-11.25,4.5l-145,0 l0,165 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"449\" height=\"896\" viewBox=\"0 0 449 896\" data-du=\"\" data-tags=\"rupee, inr, currency, money\" style=\"margin-left: 12px; margin-top: 8px;\"><path d=\"M 449,235l0,51 q0,7 -4.5,11.5t-11.5,4.5l-84,0 q-11.5,72 -64.5,117t-138,55q 83.5,89 229.5,268q 7,8 2,17q-4,9 -14.5,9l-97.5,0 q-8,0 -12.5-6q-153-183.5 -249-285.5q-4.5-4.5 -4.5-11l0-63.5 q0-6.5 4.75-11.25t 11.25-4.75l 56,0 q 66,0 106.25-21.5t 51.25-62.5l-213.5,0 q-7,0 -11.5-4.5t-4.5-11.5l0-51 q0-7 4.5-11.5t 11.5-4.5l 206.5,0 q-28.5-56.5 -134-56.5l-72.5,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-66.5 q0-7 4.5-11.5t 11.5-4.5l 416,0 q 7,0 11.5,4.5t 4.5,11.5l0,51 q0,7 -4.5,11.5t-11.5,4.5l-116.5,0 q 23.5,30.5 32,72l 85.5,0 q 7,0 11.5,4.5t 4.5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"dollar, usd, currency, dollar\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 489,592.5q0,76.5 -49.75,131.75t-129.25,68.25l0,87.5 q0,7 -4.5,11.5t-11.5,4.5l-67.5,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-87.5 q-33-4.5 -63.75-15.5t-50.75-22.25t-37-24t-23.25-18.75t-8.75-9q-8.5-10.5 -1-20.5l 51.5-67.5q 3.5-5 11.5-6q 7.5-1 12,4.5l 1,1q 56.5,49.5 121.5,62.5q 18.5,4 37,4q 40.5,0 71.25-21.5 t 30.75-61q0-14 -7.5-26.5t-16.75-21t-29.25-18.75t-33-16t-40-16.25q-19.5-8 -30.75-12.5t-30.75-13.25t-31.25-15.5t-28.25-17.75t-26.75-21.25t-21.75-24.5t-17.75-29t-10.5-33.25t-4.25-39q0-69 49-121t 127.5-67l0-90 q0-6.5 4.75-11.25t 11.25-4.75l 67.5,0 q 7,0 11.5,4.5t 4.5,11.5l0,88 q 28.5,3 55.25,11.5t 43.5,16.75 t 31.75,18.75t 19.5,14.5t 7.5,7q 8.5,9 2.5,19l-40.5,73q-4,7.5 -11.5,8q-7,1.5 -13.5-3.5q-1.5-1.5 -7.25-6t-19.5-13.25t-29.25-16t-37.25-13t-42.75-5.75q-47.5,0 -77.5,21.5t-30,55.5q0,13 4.25,24t 14.75,20.75t 19.75,16.5t 28,15.5t 30.25,13.5t 35,13.75q 26.5,10 40.5,15.75t 38,17.5t 37.75,21.25t 31,25 t 26.5,31.75t 15.75,38.25t 6.5,47z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"gbp, currency, money\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 510,568.5l0,183.5 q0,7 -4.5,11.5t-11.5,4.5l-478,0 q-7,0 -11.5-4.5t-4.5-11.5l0-75 q0-6.5 4.75-11.25t 11.25-4.75l 48.5,0 l0-191.5 l-47.5,0 q-7,0 -11.5-4.75t-4.5-11.25l0-65.5 q0-7 4.5-11.5t 11.5-4.5l 47.5,0 l0-111.5 q0-85.5 61.75-141t 157.25-55.5q 92.5,0 167.5,62.5q 4.5,4 5,10.25t-3.5,11.25l-51.5,63.5q-4.5,5.5 -11,6q-6.5,1 -11.5-3.5 q-2.5-2.5 -13-9.5t-34.5-16t-46.5-9q-42.5,0 -68.5,23.5t-26,61.5l0,107.5 l 152.5,0 q 6.5,0 11.25,4.5t 4.75,11.5l0,65.5 q0,6.5 -4.75,11.25t-11.25,4.75l-152.5,0 l0,189.5 l 207,0 l0-90.5 q0-6.5 4.5-11.25t 11.5-4.75l 81,0 q 7,0 11.5,4.75t 4.5,11.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"euro, currency, money\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 488,653.5l 17.5,79.5q 1.5,6 -1.5,11.25t-8.5,7.25l-2.5,0.5q-2,1 -5.25,1.75t-8,2.25t-10.75,2.75t-12.75,2.5t-15,2.5t-16.75,2.25t-18.25,1.5t-19.25,0.5q-117,0 -204.5-65.25t-119-175.75l-47.5,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-56.5 q0-6.5 4.75-11.25t 11.25-4.75l 33,0 q-1-28.5 0.5-52.5l-33.5,0 q-7,0 -11.5-4.5 t-4.5-11.5l0-57 q0-7 4.5-11.5t 11.5-4.5l 49,0 q 33.5-105 121.75-169t 200.25-64q 51,0 97,11.5q 5.5,1.5 10,7.5q 3,5.5 1.5,12l-21.5,79.5q-1.5,6.5 -7,9.75t-12,1.25l-2-0.5q-2-0.5 -5.75-1.25l-8.75-1.75t-11.25-1.75t-13-1.5t-14.5-1.25t-14.75-0.5q-63,0 -113,32t-75,88l 234,0 q 8,0 12.5,6q 5,6 3.5,13 l-12,57q-2.5,13 -16,13l-244,0 q-1.5,18.5 0,52.5l 229.5,0 q 7.5,0 12.5,6q 4.5,6 3,13.5l-12,56q-1,5.5 -5.5,9.25t-10,3.75l-193.5,0 q 24,58.5 74.75,92.75t 114.25,34.25q 9,0 18-0.75t 16.75-1.75t 14.75-2.25t 12.25-2.5t 9.25-2.25l 6-1.5l 2.5-1q 6.5-2.5 13,1q 6,3.5 7.5,10.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"expand, right, arrow\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 544,448q0,16.5 -13.5,26l-224,160q-15.5,11.5 -33,2.5q-17.5-8.5 -17.5-28.5l0-320 q0-20 17.5-28.5q 17.5-9 33,2.5l 224,160q 13.5,9.5 13.5,26zM 640,688l0-480 q0-7 -4.5-11.5t-11.5-4.5l-480,0 q-7,0 -11.5,4.5t-4.5,11.5l0,480 q0,7 4.5,11.5t 11.5,4.5l 480,0 q 7,0 11.5-4.5t 4.5-11.5zM 768,208l0,480 q0,59.5 -42.25,101.75 t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"collapse-top, up, arrow\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 572.5,558.5q-8.5,17.5 -28.5,17.5l-320,0 q-20,0 -28.5-17.5q-9-17.5 2.5-33l 160-224q 9.5-13.5 26-13.5t 26,13.5l 160,224q 11.5,15.5 2.5,33zM 640,688l0-480 q0-6.5 -4.75-11.25t-11.25-4.75l-480,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,480 q0,6.5 4.75,11.25t 11.25,4.75l 480,0 q 6.5,0 11.25-4.75t 4.75-11.25zM 768,208l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"collapse, arrow, down\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 572.5,337.5q 9,17.5 -2.5,33l-160,224q-9.5,13.5 -26,13.5t-26-13.5l-160-224q-11.5-15.5 -2.5-33q 8.5-17.5 28.5-17.5l 320,0 q 20,0 28.5,17.5zM 640,688l0-480 q0-6.5 -4.75-11.25t-11.25-4.75l-480,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,480 q0,6.5 4.75,11.25t 11.25,4.75l 480,0 q 6.5,0 11.25-4.75t 4.75-11.25zM 768,208 l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"compass, location, direction, guide\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 320,544l 128-64l-128-64l0,128 zM 512,248.5l0,271 l-256,128l0-271 zM 656,448q0-74 -36.5-136.5t-99-99t-136.5-36.5t-136.5,36.5t-99,99t-36.5,136.5t 36.5,136.5t 99,99t 136.5,36.5t 136.5-36.5t 99-99t 36.5-136.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5 t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"share-sign\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 502.5,550.5l 176-176q 9.5-9.5 9.5-22.5t-9.5-22.5l-176-176q-15-15.5 -34.5-7q-20,8.5 -20,29.5l0,80 q-59.5,0 -108,9.75t-81.25,25.5t-57,39.5t-38.25,47.75t-22.25,54.5t-10.75,55.75t-2.5,55.25q0,90.5 83.5,202q 5,6 12.5,6q 3.5,0 6.5-1.5q 11-4.5 9.5-16.5q-22-177 31-236.5q 23-26 65-37.75 t 112-11.75l0,80 q0,21 20,29.5q 6,2.5 12,2.5q 13,0 22.5-9.5zM 768,208l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"external-link-sign, outside, popup\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 640,464l0-240 q0-13 -9.5-22.5t-22.5-9.5l-240,0 q-21,0 -29.5,19.5q-8.5,20.5 7,35l 72,72l-267,267q-9.5,9.5 -9.5,22.5t 9.5,22.5l 51,51q 9.5,9.5 22.5,9.5t 22.5-9.5l 267-267l 72,72q 9,9.5 22.5,9.5q 6,0 12.5-2.5q 19.5-8.5 19.5-29.5zM 768,208l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"edit-sign, pencil\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 202,554l 76,76l-26,26l-28,0 l0-48 l-48,0 l0-28 zM 409,359q 7,6.5 -1.5,15l-145.5,145.5q-8.5,8.5 -15,1.5q-7-6.5 1.5-15l 145.5-145.5q 8.5-8.5 15-1.5zM 272,704l 272-272l-144-144l-272,272l0,144 l 144,0 zM 576,400l 46-46q 14-14 14-34t-14-34l-76-76q-14-14 -34-14t-34,14l-46,46zM 768,208 l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"check-sign, check, tick\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 342.5,649.5l 307-307q 9.5-9.5 9.5-22.5t-9.5-22.5l-51-51q-9.5-9.5 -22.5-9.5t-22.5,9.5l-233.5,233.5l-105.5-105.5q-9.5-9.5 -22.5-9.5t-22.5,9.5l-51,51q-9.5,9.5 -9.5,22.5t 9.5,22.5l 179,179q 9.5,9.5 22.5,9.5t 22.5-9.5zM 768,208l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25 t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"level-down, down\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 16,128l 352,0 q 6.5,0 11.25,4.75t 4.75,11.75l0,431.5 l 96,0 q 20,0 29,18.5t-4.5,34.5l-160,192q-9,11 -24.5,11t-24.5-11l-160-192q-13-15.5 -4.5-34.5q 9-18.5 29-18.5l 96,0 l0-320 l-160,0 q-7,0 -12.5-5.5l-80-96q-6.5-7 -2-17q 4.5-9.5 14.5-9.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"level-up, up\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 509,301.5q-9,18.5 -29,18.5l-96,0 l0,432 q0,7 -4.5,11.5t-11.5,4.5l-352,0 q-10.5,0 -14.5-9q-4-10 2-17.5l 80-96q 4.5-5.5 12.5-5.5l 160,0 l0-320 l-96,0 q-20,0 -29-18.5q-8.5-18.5 4.5-34l 160-192q 9-11 24.5-11t 24.5,11l 160,192q 13.5,16 4.5,34z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"check-minus, subtract, remove, delete\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 576,400l0,32 q0,7 -4.5,11.5t-11.5,4.5l-416,0 q-7,0 -11.5-4.5t-4.5-11.5l0-32 q0-7 4.5-11.5t 11.5-4.5l 416,0 q 7,0 11.5,4.5t 4.5,11.5zM 640,624l0-416 q0-33 -23.5-56.5t-56.5-23.5l-416,0 q-33,0 -56.5,23.5t-23.5,56.5l0,416 q0,33 23.5,56.5t 56.5,23.5l 416,0 q 33,0 56.5-23.5t 23.5-56.5zM 704,208l0,416 q0,59.5 -42.25,101.75 t-101.75,42.25l-416,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-416 q0-59.5 42.25-101.75t 101.75-42.25l 416,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"minus-sign-alt, subtract, remove, delete\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 640,480l0-64 q0-13 -9.5-22.5t-22.5-9.5l-448,0 q-13,0 -22.5,9.5t-9.5,22.5l0,64 q0,13 9.5,22.5t 22.5,9.5l 448,0 q 13,0 22.5-9.5t 9.5-22.5zM 768,208l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25 t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"ticket\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,226l 158,158l-286,286l-158-158zM 406.5,715.5l 309-309q 9.5-9.5 9.5-22.5t-9.5-22.5l-181-181q-9-9 -22.5-9t-22.5,9l-309,309q-9.5,9.5 -9.5,22.5t 9.5,22.5l 181,181q 9,9 22.5,9t 22.5-9zM 851,397l-453.5,454q-18.5,18.5 -45.25,18.5t-45.25-18.5l-63-63q 28-28 28-68t-28-68 t-68-28t-68,28l-62.5-63q-18.5-18.5 -18.5-45.25t 18.5-45.25l 453.5-453q 18.5-18.5 45.25-18.5t 45.25,18.5l 62.5,62.5q-28,28 -28,68t 28,68t 68,28t 68-28l 63,62.5q 18.5,18.5 18.5,45.25t-18.5,45.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"play-sign, media control, video, movie, film\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 384,64q 104.5,0 192.75,51.5t 139.75,139.75t 51.5,192.75t-51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5zM 576,475.5q 16-9 16-27.5t-16-27.5l-272-160q-15.5-9.5 -32-0.5q-16,9.5 -16,28l0,320 q0,18.5 16,28 q 8,4 16,4q 8.5,0 16-4.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"rss-sign, atom, feed\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 256,640q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25zM 431.5,687q-6.5-116 -88.5-198t-198-88.5q-7-0.5 -12,4.5t-5,11.5l0,64 q0,6.5 4.25,11t 10.75,5q 77,5.5 132,60.5t 60.5,132q 0.5,6.5 5,10.75t 11,4.25l 64,0 q 6.5,0 11.5-5 t 4.5-12zM 623.5,687.5q-2.5-77 -28-148.75t-69.75-130t-102.5-102.5t-130-69.75t-148.75-28q-7-0.5 -11.5,4.5q-5,5 -5,11.5l0,64 q0,6.5 4.5,11t 11,5q 102,3.5 189,55.75t 139.25,139.25t 55.75,189q 0.5,6.5 5,11t 11,4.5l 64,0 q 6.5,0 11.5-5q 5.5-4.5 4.5-11.5zM 768,208l0,480 q0,59.5 -42.25,101.75 t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"192\" height=\"896\" viewBox=\"0 0 192 896\" data-du=\"\" data-tags=\"ellipsis-vertical, dots\" style=\"margin-left: 14px; margin-top: 8px;\"><path d=\"M 192,624l0,96 q0,20 -14,34t-34,14l-96,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 96,0 q 20,0 34,14t 14,34zM 192,368l0,96 q0,20 -14,34t-34,14l-96,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 96,0 q 20,0 34,14t 14,34zM 192,112l0,96 q0,20 -14,34t-34,14l-96,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 96,0 q 20,0 34,14t 14,34z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"ellipsis-horizontal, dots, more\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 192,368l0,96 q0,20 -14,34t-34,14l-96,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 96,0 q 20,0 34,14t 14,34zM 448,368l0,96 q0,20 -14,34t-34,14l-96,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 96,0 q 20,0 34,14t 14,34zM 704,368l0,96 q0,20 -14,34t-34,14l-96,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 96,0 q 20,0 34,14t 14,34z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"bullseye, target, goal\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 512,448q0,53 -37.5,90.5t-90.5,37.5t-90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5zM 576,448q0-79.5 -56.25-135.75t-135.75-56.25t-135.75,56.25t-56.25,135.75t 56.25,135.75t 135.75,56.25t 135.75-56.25t 56.25-135.75zM 640,448q0,106 -75,181t-181,75t-181-75 t-75-181t 75-181t 181-75t 181,75t 75,181zM 704,448q0-65 -25.5-124.25t-68.25-102t-102-68.25t-124.25-25.5t-124.25,25.5t-102,68.25t-68.25,102t-25.5,124.25t 25.5,124.25t 68.25,102t 102,68.25t 124.25,25.5t 124.25-25.5t 102-68.25t 68.25-102t 25.5-124.25zM 768,448 q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"576\" height=\"896\" viewBox=\"0 0 576 896\" data-du=\"\" data-tags=\"unlock-alt, lock, login\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 528,384q 20,0 34,14t 14,34l0,288 q0,20 -14,34t-34,14l-480,0 q-20,0 -34-14t-14-34l0-288 q0-20 14-34t 34-14l 16,0 l0-160 q0-92.5 65.75-158.25t 158.25-65.75t 158.25,65.75t 65.75,158.25q0,13 -9.5,22.5t-22.5,9.5l-32,0 q-13,0 -22.5-9.5t-9.5-22.5q0-53 -37.5-90.5t-90.5-37.5t-90.5,37.5t-37.5,90.5 l0,160 l 368,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"anchor, link\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,128q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 896,592l0,176 q0,11 -10,15q-4,1 -6,1q-6.5,0 -11.5-4.5l-46.5-46.5q-59.5,71.5 -159.25,113.25t-214.75,41.75t-214.75-41.75t-159.25-113.25l-46.5,46.5q-4.5,4.5 -11.5,4.5q-2,0 -6-1q-10-4 -10-15l0-176 q0-7 4.5-11.5t 11.5-4.5l 176,0 q 11,0 15,10q 4,9.5 -3.5,17.5l-50,50q 33.5,45.5 94.75,76.75t 135.75,41.25l0-323.5 l-96,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 96,0 l0-81.5 q-29-17 -46.5-46.25t-17.5-64.25q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5q0,35 -17.5,64.25t-46.5,46.25l0,81.5 l 96,0 q 13,0 22.5,9.5 t 9.5,22.5l0,64 q0,13 -9.5,22.5t-22.5,9.5l-96,0 l0,323.5 q 74.5-10 135.75-41.25t 94.75-76.75l-50-50q-7.5-8 -3.5-17.5q 4-10 15-10l 176,0 q 7,0 11.5,4.5t 4.5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"css3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 137.5,64l 752.5,0 l-133,666.5l-402,133.5l-349-133.5l 35.5-178l 148.5,0 l-14.5,73.5l 211,80.5l 243-80.5l 34-169.5l-604,0 l 29-148.5l 604.5,0 l 19-95.5l-604,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"html5\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 565,298.5l 8-87.5l-442,0 l 23.5,267l 306,0 l-11,114l-98.5,26.5l-98-26.5l-6.5-70l-87.5,0 l 11,139l 181,50l 2,0 l0-0.5 l 179.5-49.5l 25-272l-322,0 l-7.5-90.5l 337,0 zM0,64l 704,0 l-64,719l-289,81l-287-81z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"chevron-sign-down, arrow, down\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 406.5,649.5l 227-227q 9.5-9.5 9.5-22.5t-9.5-22.5l-51-51q-9.5-9.5 -22.5-9.5t-22.5,9.5l-153.5,153.5l-153.5-153.5q-9.5-9.5 -22.5-9.5t-22.5,9.5l-51,51q-9.5,9.5 -9.5,22.5t 9.5,22.5l 227,227q 9.5,9.5 22.5,9.5t 22.5-9.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75 t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"chevron-sign-up, arrow, up\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 582.5,569.5l 51-51q 9.5-9.5 9.5-22.5t-9.5-22.5l-227-227q-9.5-9.5 -22.5-9.5t-22.5,9.5l-227,227q-9.5,9.5 -9.5,22.5t 9.5,22.5l 51,51q 9.5,9.5 22.5,9.5t 22.5-9.5l 153.5-153.5l 153.5,153.5q 9.5,9.5 22.5,9.5t 22.5-9.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75 t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"chevron-sign-right, right, arrow\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 358.5,697.5l 227-227q 9.5-9.5 9.5-22.5t-9.5-22.5l-227-227q-9.5-9.5 -22.5-9.5t-22.5,9.5l-51,51q-9.5,9.5 -9.5,22.5t 9.5,22.5l 153.5,153.5l-153.5,153.5q-9.5,9.5 -9.5,22.5t 9.5,22.5l 51,51q 9.5,9.5 22.5,9.5t 22.5-9.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75 t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"chevron-sign-left, left, arrow\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 454.5,697.5l 51-51q 9.5-9.5 9.5-22.5t-9.5-22.5l-153.5-153.5l 153.5-153.5q 9.5-9.5 9.5-22.5t-9.5-22.5l-51-51q-9.5-9.5 -22.5-9.5t-22.5,9.5l-227,227q-9.5,9.5 -9.5,22.5t 9.5,22.5l 227,227q 9.5,9.5 22.5,9.5t 22.5-9.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75 t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"maxcdn\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 854,327.5l-94,440.5l-152,0 l 90.5-424.5q 2-10.5 0.5-21.5q-2-10 -8-17.5q-5-7 -14-12q-9-4.5 -20-4.5l-98.5,0 l-102.5,480l-151.5,0 l 102-480l-152,0 l-102.5,480l-152,0 l 136-640l 569.5,0 q 78.5,0 122.5,59q 43,58 26,140.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"rocket, speed, jet\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 720,224q0-20 -14-34t-34-14t-34,14t-14,34t 14,34t 34,14t 34-14t 14-34zM 832,80q0,124.5 -37.75,215.25t-126.75,180.25q-40.5,40 -97.5,88l-10,189.5q-1,8 -8,13l-192,112q-3.5,2 -8,2q-6,0 -11.5-4.5l-32-32q-6.5-7 -4-16l 42.5-138l-140.5-140.5l-138,42.5q-1.5,0.5 -4.5,0.5 q-7,0 -11.5-4.5l-32-32q-8.5-9.5 -2.5-19.5l 112-192q 5-7 13-8l 189.5-10q 48-57 88-97.5q 94-93.5 179-129t 215.5-35.5q 7,0 12,4.75t 5,11.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"fire-extinguisher\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 256,96q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 704,80l0,160 q0,8 -6,12.5q-4,3.5 -10,3.5q-2,0 -3.5-0.5l-224-48q-5.5-1 -9-5.5t-3.5-10l-128,0 l0,51 q 55.5,11.5 91.75,55.5t 36.25,101.5l0,400 q0,13 -9.5,22.5t-22.5,9.5l-256,0 q-13,0 -22.5-9.5t-9.5-22.5l0-400 q0-53 31.25-95.25t 80.75-57.25l0-55.5 l-16,0 q-29.5,0 -57.5,11.75t-45.75,26.5t-33,33.25t-20.25,26.75t-7,12.25q-8.5,17.5 -28.5,17.5q-8,0 -14.5-3.5q-11.5-6 -15.75-18.5t 1.75-24.5q 2.5-5 7.25-13t 18.75-26.75t 30.25-35t 42.5-33.5t 54.25-26.25q-12.5-21 -12.5-43q0-33 23.5-56.5t 56.5-23.5t 56.5,23.5t 23.5,56.5 q0,16.5 -7,32l 151,0 q0-5.5 3.5-10t 9-5.5l 224-48q 1.5-0.5 3.5-0.5q 6,0 10,3.5q 6,4.5 6,12.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"calendar-empty, schedule, date\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 64,832l 704,0 l0-512 l-704,0 l0,512 zM 256,224l0-144 q0-7 -4.5-11.5t-11.5-4.5l-32,0 q-7,0 -11.5,4.5t-4.5,11.5l0,144 q0,7 4.5,11.5t 11.5,4.5l 32,0 q 7,0 11.5-4.5t 4.5-11.5zM 640,224l0-144 q0-7 -4.5-11.5t-11.5-4.5l-32,0 q-7,0 -11.5,4.5t-4.5,11.5l0,144 q0,7 4.5,11.5t 11.5,4.5l 32,0 q 7,0 11.5-4.5t 4.5-11.5zM 832,192l0,640 q0,26 -19,45t-45,19l-704,0 q-26,0 -45-19t-19-45l0-640 q0-26 19-45t 45-19l 64,0 l0-48 q0-33 23.5-56.5t 56.5-23.5l 32,0 q 33,0 56.5,23.5t 23.5,56.5l0,48 l 192,0 l0-48 q0-33 23.5-56.5t 56.5-23.5l 32,0 q 33,0 56.5,23.5t 23.5,56.5l0,48 l 64,0 q 26,0 45,19t 19,45z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"640\" height=\"896\" viewBox=\"0 0 640 896\" data-du=\"\" data-tags=\"shield, defense, security, guard\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 544,480l0-320 l-224,0 l0,568.5 q 59.5-31.5 106.5-68.5q 117.5-92 117.5-180zM 640,96l0,384 q0,43 -16.75,85.25t-41.5,75t-59,63.75t-63.25,51.5t-60.5,38.75t-44.75,24.75t-21.25,10q-6,3 -13,3t-13-3q-8-3.5 -21.25-10t-44.75-24.75t-60.5-38.75t-63.25-51.5t-59-63.75t-41.5-75 t-16.75-85.25l0-384 q0-13 9.5-22.5t 22.5-9.5l 576,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"microphone-off, voice, record\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 135.5,472.5l-50.5,50.5q-21-51.5 -21-107l0-64 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5l0,64 q0,26.5 7.5,56.5zM 692.5,171.5l-180.5,180.5l0,64 q0,66 -47,113t-113,47q-27.5,0 -54.5-9.5l-48,48q 48.5,25.5 102.5,25.5q 92.5,0 158.25-65.75t 65.75-158.25l0-64 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5l0,64 q0,110.5 -73.75,192.25t-182.25,93.75l0,66 l 128,0 q 13,0 22.5,9.5t 9.5,22.5t-9.5,22.5t-22.5,9.5l-320,0 q-13,0 -22.5-9.5t-9.5-22.5t 9.5-22.5t 22.5-9.5l 128,0 l0-66 q-62.5-6.5 -117.5-40.5l-127,127q-5,5 -11.5,5t-11.5-5l-41-41q-5-5 -5-11.5t 5-11.5l 617-617q 5-5 11.5-5t 11.5,5l 41,41q 5,5 5,11.5 t-5,11.5zM 502.5,105.5l-310.5,310.5l0-256 q0-66 47-113t 113-47q 51,0 92.25,29.5t 58.25,76z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"576\" height=\"896\" viewBox=\"0 0 576 896\" data-du=\"\" data-tags=\"microphone, record, voice\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 576,352l0,64 q0,110.5 -73.75,192.25t-182.25,93.75l0,66 l 128,0 q 13,0 22.5,9.5t 9.5,22.5t-9.5,22.5t-22.5,9.5l-320,0 q-13,0 -22.5-9.5t-9.5-22.5t 9.5-22.5t 22.5-9.5l 128,0 l0-66 q-108.5-12 -182.25-93.75t-73.75-192.25l0-64 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5l0,64 q0,92.5 65.75,158.25t 158.25,65.75 t 158.25-65.75t 65.75-158.25l0-64 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5zM 448,160l0,256 q0,66 -47,113t-113,47t-113-47t-47-113l0-256 q0-66 47-113t 113-47t 113,47t 47,113z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"puzzle, piece, plugin, extension\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 832,549q0,40.5 -22.25,67.5t-61.75,27q-20.5,0 -38.75-8.75t-29.5-19t-28.25-19t-35.5-8.75q-55,0 -55,62q0,19.5 8,57.5t 7.5,57.5l0,2.5 q-11,0 -16.5,0.5q-17,1.5 -48.75,5.75t-57.75,6.75t-49,2.5q-30.5,0 -51.5-13.25t-21-41.75q0-18.5 8.75-35.5t 19-28.25t 19-29.5t 8.75-38.75q0-39.5 -27-61.75 t-67.5-22.25q-42,0 -71.5,22.75t-29.5,63.75q0,21.5 7.5,41.5t 16.75,32.25t 16.75,26.5t 7.5,25.25q0,22.5 -23,44.5q-18.5,17.5 -58.5,17.5q-47.5,0 -122.5-12q-4.5-1 -13.75-2t-13.75-2l-6.5-1q-0.5,0 -1.5-0.5q-1,0 -1-0.5l0-512 q 1,0.5 8.75,1.75t 17,2.5t 10.75,1.75q 75,12 122.5,12q 40,0 58.5-17.5q 23-22 23-44.5 q0-11 -7.5-25.25t-16.75-26.5t-16.75-32.25t-7.5-41.5q0-41 29.5-63.75t 72-22.75q 40,0 67,22.25t 27,61.75q0,20.5 -8.75,38.75t-19,29.5t-19,28.25t-8.75,35.5q0,28.5 21,41.75t 51.5,13.25q 32,0 90-7.5t 81.5-8.5l0,1 q-0.5,1 -1.75,8.75t-2.5,17t-1.75,10.75q-12,75 -12,122.5q0,40 17.5,58.5 q 22,23 44.5,23q 11,0 25.25-7.5t 26.5-16.75t 32.25-16.75t 41.5-7.5q 41,0 63.75,29.5t 22.75,71.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"eraser, clear, rubber\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 448,704l 168-192l-384,0 l-168,192l 384,0 zM 954.5,165.5q 7.5,17 4.75,35.75t-15.25,32.75l-448,512q-19,22 -48,22l-384,0 q-19,0 -34.75-10.25t-23.75-27.25q-7.5-17 -4.75-35.75t 15.25-32.75l 448-512q 19-22 48-22l 384,0 q 19,0 34.75,10.25t 23.75,27.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"subscript\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 448.5,684.5l0,83.5 l-124,0 l-79.5-126l-12-21q-4-4.5 -5.5-10.5l-1.5,0 l-4.5,10.5q-5,10 -12.5,22l-77.5,125l-129,0 l0-83.5 l 64,0 l 98.5-145.5l-92.5-136l-68.5,0 l0-84 l 138,0 l 69.5,114q 1,2 11.5,21q 4,4.5 5.5,10.5l 1.5,0 q 1.5-4.5 5.5-10.5l 12.5-21l 70-114l 128.5,0 l0,84 l-62.5,0 l-92,133.5l 102,148l 54.5,0 zM 768,793l0,103 l-257,0 l-2-13.5 q-1.5-22.5 -1.5-23q0-32 13-58.5t 32.5-43.25t 42-32.5t 42-27.25t 32.5-27t 13-32q0-19 -14.75-31.25t-35.25-12.25q-25.5,0 -48.5,19.5q-7,5.5 -18,19l-52.5-46q 13-18.5 31.5-33q 40-32.5 94-32.5q 55,0 89,29.75t 34,79.25q0,33 -17.25,59.25t-42,43t-49.75,31.25t-43.5,31.5t-20.5,36.5l 116,0 l0-40 l 63,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"superscript, power\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 448.5,684.5l0,83.5 l-124,0 l-79.5-126l-12-21q-4-4.5 -5.5-10.5l-1.5,0 l-4.5,10.5q-5,10 -12.5,22l-77.5,125l-129,0 l0-83.5 l 64,0 l 98.5-145.5l-92.5-136l-68.5,0 l0-84 l 138,0 l 69.5,114q 1,2 11.5,21q 4,4.5 5.5,10.5l 1.5,0 q 1.5-4.5 5.5-10.5l 12.5-21l 70-114l 128.5,0 l0,84 l-62.5,0 l-92,133.5l 102,148l 54.5,0 zM 767,345l0,103 l-257,0 l-1.5-13.5 q-2-14 -2-23q0-32 13-58.5t 32.5-43.25t 42-32.5t 42-27.25t 32.5-27t 13-32q0-19 -14.75-31.25t-35.25-12.25q-25.5,0 -48.5,19.5q-7,5.5 -18,19l-52.5-46q 13-18.5 31.5-33q 41.5-32.5 94-32.5q 55,0 89,29.75t 34,79.25q0,28 -12.25,51.5t-31,38.25t-40.75,29.25t-41,25.25t-32.75,25.75t-15.25,31.5l 116,0 l0-40 l 63,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"320\" height=\"896\" viewBox=\"0 0 320 896\" data-du=\"\" data-tags=\"exclamation, warning, notification\" style=\"margin-left: 13px; margin-top: 8px;\"><path d=\"M 256,624l0,112 q0,13 -9.5,22.5t-22.5,9.5l-128,0 q-13,0 -22.5-9.5t-9.5-22.5l0-112 q0-13 9.5-22.5t 22.5-9.5l 128,0 q 13,0 22.5,9.5t 9.5,22.5zM 271,96l-14,384q-0.5,13 -10.25,22.5t-22.75,9.5l-128,0 q-13,0 -22.75-9.5t-10.25-22.5l-14-384q-0.5-13 8.75-22.5t 22.25-9.5l 160,0 q 13,0 22.25,9.5t 8.75,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"320\" height=\"896\" viewBox=\"0 0 320 896\" data-du=\"\" data-tags=\"info\" style=\"margin-left: 13px; margin-top: 8px;\"><path d=\"M 320,672l0,64 q0,13 -9.5,22.5t-22.5,9.5l-256,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 32,0 l0-192 l-32,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 192,0 q 13,0 22.5,9.5t 9.5,22.5l0,288 l 32,0 q 13,0 22.5,9.5t 9.5,22.5zM 256,96l0,96 q0,13 -9.5,22.5t-22.5,9.5l-128,0 q-13,0 -22.5-9.5t-9.5-22.5l0-96 q0-13 9.5-22.5t 22.5-9.5l 128,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"question, ask, help\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 352,628l0,120 q0,8 -6,14t-14,6l-120,0 q-8,0 -14-6t-6-14l0-120 q0-8 6-14t 14-6l 120,0 q 8,0 14,6t 6,14zM 510,328q0,27 -7.75,50.5t-17.5,38.25t-27.5,29.75t-28.75,21.75t-30.5,17.75q-20.5,11.5 -34.25,32.5t-13.75,33.5q0,8.5 -6,16.25t-14,7.75l-120,0 q-7.5,0 -12.75-9.25 t-5.25-18.75l0-22.5 q0-41.5 32.5-78.25t 71.5-54.25q 29.5-13.5 42-28t 12.5-38q0-21 -23.25-37t-53.75-16q-32.5,0 -54,14.5q-17.5,12.5 -53.5,57.5q-6.5,8 -15.5,8q-6,0 -12.5-4l-82-62.5q-6.5-5 -7.75-12.5t 2.75-14q 80-133 232-133q 40,0 80.5,15.5t 73,41.5t 53,63.75t 20.5,79.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"unlink, link\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 219.5,635.5l-128,128q-5,4.5 -11.5,4.5q-6,0 -11.5-4.5q-4.5-5 -4.5-11.5t 4.5-11.5l 128-128q 5-4.5 11.5-4.5t 11.5,4.5q 4.5,5 4.5,11.5t-4.5,11.5zM 304,656l0,160 q0,7 -4.5,11.5t-11.5,4.5t-11.5-4.5t-4.5-11.5l0-160 q0-7 4.5-11.5t 11.5-4.5t 11.5,4.5t 4.5,11.5zM 192,544q0,7 -4.5,11.5t-11.5,4.5l-160,0 q-7,0 -11.5-4.5t-4.5-11.5t 4.5-11.5t 11.5-4.5l 160,0 q 7,0 11.5,4.5t 4.5,11.5zM 824,608q0,60 -42.5,101.5l-73.5,73q-41.5,41.5 -101.5,41.5q-60.5,0 -102-42.5l-167-167.5q-10.5-10.5 -21-28l 119.5-9l 136.5,137q 13.5,13.5 34,13.75t 34-13.25l 73.5-73q 14-14 14-33.5q0-20 -14-34l-137-137.5l 9-119.5q 17.5,10.5 28,21l 168,168q 42,43 42,102zM 515.5,246l-119.5,9 l-136.5-137q-14-14 -34-14q-19.5,0 -34,13.5l-73.5,73q-14,14 -14,33.5q0,20 14,34l 137,137l-9,120q-17.5-10.5 -28-21l-168-168q-42-43 -42-102q0-60 42.5-101.5l 73.5-73q 41.5-41.5 101.5-41.5q 60.5,0 102,42.5l 167,167.5q 10.5,10.5 21,28zM 832,288q0,7 -4.5,11.5t-11.5,4.5l-160,0 q-7,0 -11.5-4.5 t-4.5-11.5t 4.5-11.5t 11.5-4.5l 160,0 q 7,0 11.5,4.5t 4.5,11.5zM 560,16l0,160 q0,7 -4.5,11.5t-11.5,4.5t-11.5-4.5t-4.5-11.5l0-160 q0-7 4.5-11.5t 11.5-4.5t 11.5,4.5t 4.5,11.5zM 763.5,91.5l-128,128q-5.5,4.5 -11.5,4.5t-11.5-4.5q-4.5-5 -4.5-11.5t 4.5-11.5l 128-128q 5-4.5 11.5-4.5t 11.5,4.5q 4.5,5 4.5,11.5t-4.5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"code-fork, branch\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 144,736q0-20 -14-34t-34-14t-34,14t-14,34t 14,34t 34,14t 34-14t 14-34zM 144,160q0-20 -14-34t-34-14t-34,14t-14,34t 14,34t 34,14t 34-14t 14-34zM 464,224q0-20 -14-34t-34-14t-34,14t-14,34t 14,34t 34,14t 34-14t 14-34zM 512,224q0,26 -13,48.25t-35,34.75 q-1,143.5 -113,207q-34,19 -101.5,40.5q-64,20 -84.75,35.5t-20.75,50l0,13 q 22,12.5 35,34.75t 13,48.25q0,40 -28,68t-68,28t-68-28t-28-68q0-26 13-48.25t 35-34.75l0-410 q-22-12.5 -35-34.75t-13-48.25q0-40 28-68t 68-28t 68,28t 28,68q0,26 -13,48.25t-35,34.75l0,248.5 q 27-13 77-28.5q 27.5-8.5 43.75-14.75t 35.25-15.5t 29.5-19.75t 20.25-25.5t 14-34.75t 4.25-45.75q-22-12.5 -35-34.75t-13-48.25q0-40 28-68t 68-28t 68,28t 28,68z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"crop\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 278.5,640l 297.5,0 l0-297.5 zM 256,617.5l 297.5-297.5l-297.5,0 l0,297.5 zM 832,656l0,96 q0,7 -4.5,11.5t-11.5,4.5l-112,0 l0,112 q0,7 -4.5,11.5t-11.5,4.5l-96,0 q-7,0 -11.5-4.5t-4.5-11.5l0-112 l-432,0 q-7,0 -11.5-4.5t-4.5-11.5l0-432 l-112,0 q-7,0 -11.5-4.5t-4.5-11.5l0-96 q0-7 4.5-11.5t 11.5-4.5l 112,0 l0-112 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5 l0,112 l 425.5,0 l 123-123.5q 5-4.5 11.5-4.5t 11.5,4.5q 4.5,5 4.5,11.5t-4.5,11.5l-123.5,123l0,425.5 l 112,0 q 7,0 11.5,4.5t 4.5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"location-arrow, map, arrow\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 700.5,174.5l-320,640q-8.5,17.5 -28.5,17.5q-2.5,0 -7.5-1q-11-2.5 -17.75-11.25t-6.75-19.75l0-288 l-288,0 q-11,0 -19.75-6.75t-11.25-17.75t 2-21t 14.5-15l 640-320q 6.5-3.5 14.5-3.5q 13.5,0 22.5,9.5q 7.5,7 9.25,17.25t-3.25,19.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"star-half-full, star, rating, rate\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 593,478.5l 128.5-125l-178-26l-33-5l-15-30l-79.5-161l0,481.5 l 29.5,15.5l 159,84l-30-177.5l-6-33zM 819,347.5l-181.5,177l 43,250q 2.5,16.5 -3,25.75t-17,9.25q-8.5,0 -20-6l-224.5-118l-224.5,118q-11.5,6 -20,6q-11.5,0 -17-9.25t-3-25.75l 43-250l-182-177q-16-16 -11.5-29.75t 27-17.25 l 251-36.5l 112.5-227.5q 10-20.5 24.5-20.5q 14,0 24.5,20.5l 112.5,227.5l 251,36.5q 22.5,3.5 27,17.25t-12,29.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"reply-all, mail-reply-all\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,541l0,35 q0,21 -19.5,29.5q-6.5,2.5 -12.5,2.5q-13.5,0 -22.5-9.5l-256-256q-9.5-9.5 -9.5-22.5t 9.5-22.5l 256-256q 14.5-15.5 35-7q 19.5,8.5 19.5,29.5l0,34.5 l-198.5,199q-9.5,9.5 -9.5,22.5t 9.5,22.5zM 896,560q0,29 -8.5,66.75t-19.25,69t-24,62.5t-20.25,45.25l-10,20q-4,8.5 -14,8.5q-3,0 -4.5-0.5 q-12.5-4 -11.5-17q 21.5-200 -53-282.5q-32-35.5 -85.25-55.25t-133.75-26.25l0,125.5 q0,21 -19.5,29.5q-6.5,2.5 -12.5,2.5q-13.5,0 -22.5-9.5l-256-256q-9.5-9.5 -9.5-22.5t 9.5-22.5l 256-256q 14.5-15.5 35-7q 19.5,8.5 19.5,29.5l0,131 q 205.5,14 299.5,110.5q 84.5,86.5 84.5,254.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"code, embed\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 308.5,699.5l-25,25q-5,5 -11.5,5t-11.5-5l-233-233q-5-5 -5-11.5t 5-11.5l 233-233q 5-5 11.5-5t 11.5,5l 25,25q 5,5 5,11.5t-5,11.5l-196.5,196.5l 196.5,196.5q 5,5 5,11.5t-5,11.5zM 604,166l-186.5,645.5q-2,6.5 -7.75,9.75t-11.75,1.25l-31-8.5q-6.5-2 -9.75-7.75t-1.25-12.25 l 186.5-645.5q 2-6.5 7.75-9.75t 11.75-1.25l 31,8.5q 6.5,2 9.75,7.75t 1.25,12.25zM 932.5,491.5l-233,233q-5,5 -11.5,5t-11.5-5l-25-25q-5-5 -5-11.5t 5-11.5l 196.5-196.5l-196.5-196.5q-5-5 -5-11.5t 5-11.5l 25-25q 5-5 11.5-5t 11.5,5l 233,233q 5,5 5,11.5t-5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"terminal, console, command line\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 292.5,491.5l-233,233q-5,5 -11.5,5t-11.5-5l-25-25q-5-5 -5-11.5t 5-11.5l 196.5-196.5l-196.5-196.5q-5-5 -5-11.5t 5-11.5l 25-25q 5-5 11.5-5t 11.5,5l 233,233q 5,5 5,11.5t-5,11.5zM 832,720l0,32 q0,7 -4.5,11.5t-11.5,4.5l-480,0 q-7,0 -11.5-4.5t-4.5-11.5l0-32 q0-7 4.5-11.5t 11.5-4.5l 480,0 q 7,0 11.5,4.5 t 4.5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"flag-checkered, race\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,500l0-96 q-90.5,8 -192,58.5l0,92.5 q 102.5-48 192-55zM 416,291l0-98.5 q-86,4 -192,63l0,94.5 q 107.5-55.5 192-59zM 832,522.5l0-92 q-117.5,58 -192,35.5l0-112 q-10-3 -19.5-7.5q-2.5-1.5 -16.5-8.5t-17.25-8.5t-15.75-7.5t-17.25-7.75t-16.25-6.5t-18-6.25t-17.5-4.25t-19.75-3.75t-19.75-2t-22-1 q-11.5,0 -24.5,1.5l0,111 l 9.5,0 q 51,0 96.25,14.5t 98.75,41q 9.5,4.5 19.5,7.5l0,94 q 21,8.5 45.5,8.5q 60,0 146.5-46zM 832,309l0-94.5 q-84.5,45.5 -153,45.5q-22.5,0 -39-4l0,98 q 74,21 192-45zM 160,128q0,17.5 -8.75,32t-23.25,23l0,633 q0,7 -4.5,11.5t-11.5,4.5l-32,0 q-7,0 -11.5-4.5t-4.5-11.5l0-633 q-14.5-8.5 -23.25-23t-8.75-32q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25zM 896,160l0,381.5 q0,19.5 -17.5,28.5q-5,2.5 -8.5,4.5q-109,58 -184.5,58q-44,0 -79-17.5l-14-7q-32-16.5 -49.5-24t-45.5-14.5t-57-7q-51,0 -117.75,22t-114.25,51q-7.5,4.5 -16.5,4.5q-8,0 -16-4 q-16-9.5 -16-28l0-371 q0-17.5 15.5-27.5q 17.5-10.5 39.25-21.25t 57-26t 76.25-24.75t 77.5-9.5q 56,0 104.5,15.5t 104.5,43q 19,9.5 44.5,9.5q 61,0 155-56q 11-6 15.5-8.5q 15.5-8 31,1q 15.5,10 15.5,27.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"flag-alt, flag, report\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 832,522.5l0-308 q-84.5,45.5 -153,45.5q-41,0 -72.5-16q-50-24.5 -92-38.25t-89-13.75q-86.5,0 -201.5,63.5l0,299.5 q 122.5-56.5 216.5-56.5q 27.5,0 51.75,3.75t 49,13t 38.5,15.5t 41.25,19.75l 14,7q 22,11 50.5,11q 60,0 146.5-46zM 160,128q0,17.5 -8.75,32t-23.25,23l0,633 q0,7 -4.5,11.5t-11.5,4.5 l-32,0 q-7,0 -11.5-4.5t-4.5-11.5l0-633 q-14.5-8.5 -23.25-23t-8.75-32q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25zM 896,160l0,381.5 q0,19.5 -17.5,28.5q-5,2.5 -8.5,4.5q-109,58 -184.5,58q-44,0 -79-17.5l-14-7q-32-16.5 -49.5-24t-45.5-14.5t-57-7q-51,0 -117.75,22t-114.25,51 q-7.5,4.5 -16.5,4.5q-8,0 -16-4q-16-9.5 -16-28l0-371 q0-17.5 15.5-27.5q 17.5-10.5 39.25-21.25t 57-26t 76.25-24.75t 77.5-9.5q 56,0 104.5,15.5t 104.5,43q 19,9.5 44.5,9.5q 61,0 155-56q 11-6 15.5-8.5q 15.5-8 31,1q 15.5,10 15.5,27.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"keyboard, type\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 192,584l0,48 q0,8 -8,8l-48,0 q-8,0 -8-8l0-48 q0-8 8-8l 48,0 q 8,0 8,8zM 256,456l0,48 q0,8 -8,8l-112,0 q-8,0 -8-8l0-48 q0-8 8-8l 112,0 q 8,0 8,8zM 192,328l0,48 q0,8 -8,8l-48,0 q-8,0 -8-8l0-48 q0-8 8-8l 48,0 q 8,0 8,8zM 704,584l0,48 q0,8 -8,8 l-432,0 q-8,0 -8-8l0-48 q0-8 8-8l 432,0 q 8,0 8,8zM 384,456l0,48 q0,8 -8,8l-48,0 q-8,0 -8-8l0-48 q0-8 8-8l 48,0 q 8,0 8,8zM 320,328l0,48 q0,8 -8,8l-48,0 q-8,0 -8-8l0-48 q0-8 8-8l 48,0 q 8,0 8,8zM 512,456l0,48 q0,8 -8,8l-48,0 q-8,0 -8-8l0-48 q0-8 8-8 l 48,0 q 8,0 8,8zM 448,328l0,48 q0,8 -8,8l-48,0 q-8,0 -8-8l0-48 q0-8 8-8l 48,0 q 8,0 8,8zM 640,456l0,48 q0,8 -8,8l-48,0 q-8,0 -8-8l0-48 q0-8 8-8l 48,0 q 8,0 8,8zM 832,584l0,48 q0,8 -8,8l-48,0 q-8,0 -8-8l0-48 q0-8 8-8l 48,0 q 8,0 8,8zM 576,328l0,48 q0,8 -8,8l-48,0 q-8,0 -8-8l0-48 q0-8 8-8l 48,0 q 8,0 8,8zM 704,328l0,48 q0,8 -8,8l-48,0 q-8,0 -8-8l0-48 q0-8 8-8l 48,0 q 8,0 8,8zM 832,328l0,176 q0,8 -8,8l-112,0 q-8,0 -8-8l0-48 q0-8 8-8l 56,0 l0-120 q0-8 8-8l 48,0 q 8,0 8,8zM 896,704l0-448 l-832,0 l0,448 l 832,0 zM 960,256l0,448 q0,26.5 -18.75,45.25t-45.25,18.75l-832,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-448 q0-26.5 18.75-45.25t 45.25-18.75l 832,0 q 26.5,0 45.25,18.75t 18.75,45.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"gamepad, controller, joystick\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 416,544l0-64 q0-7 -4.5-11.5t-11.5-4.5l-96,0 l0-96 q0-7 -4.5-11.5t-11.5-4.5l-64,0 q-7,0 -11.5,4.5t-4.5,11.5l0,96 l-96,0 q-7,0 -11.5,4.5t-4.5,11.5l0,64 q0,7 4.5,11.5t 11.5,4.5l 96,0 l0,96 q0,7 4.5,11.5t 11.5,4.5l 64,0 q 7,0 11.5-4.5t 4.5-11.5l0-96 l 96,0 q 7,0 11.5-4.5t 4.5-11.5zM 704,576q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75 t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25zM 832,448q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25zM 960,512q0,106 -75,181t-181,75q-96,0 -169-64l-110,0 q-73,64 -169,64q-106,0 -181-75 t-75-181t 75-181t 181-75l 448,0 q 106,0 181,75t 75,181z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"meh, neutral, smiley, emoticon\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 576,544q0,13 -9.5,22.5t-22.5,9.5l-320,0 q-13,0 -22.5-9.5t-9.5-22.5t 9.5-22.5t 22.5-9.5l 320,0 q 13,0 22.5,9.5t 9.5,22.5zM 320,320q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25zM 576,320q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75 t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25zM 704,448q0-65 -25.5-124.25t-68.25-102t-102-68.25t-124.25-25.5t-124.25,25.5t-102,68.25t-68.25,102t-25.5,124.25t 25.5,124.25t 68.25,102t 102,68.25t 124.25,25.5t 124.25-25.5t 102-68.25t 68.25-102t 25.5-124.25zM 768,448 q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"frown, sad, smiley, emoticon\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 567,614.5q 4,12.5 -2,24.25t-18.5,15.75t-24.5-2t-16-19q-12.5-40 -46.25-64.75t-75.75-24.75t-75.75,24.75t-46.25,64.75q-4,13 -15.75,19t-24.25,2q-13-4 -19-15.75t-2-24.25q 18.5-60.5 69-97.5t 114-37t 114,37t 69,97.5zM 320,320q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75 t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25zM 576,320q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25zM 704,448q0-65 -25.5-124.25t-68.25-102t-102-68.25t-124.25-25.5t-124.25,25.5t-102,68.25t-68.25,102 t-25.5,124.25t 25.5,124.25t 68.25,102t 102,68.25t 124.25,25.5t 124.25-25.5t 102-68.25t 68.25-102t 25.5-124.25zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"smile, smiley, emoticon, happy\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 567,537.5q-18.5,60.5 -69,97.5t-114,37t-114-37t-69-97.5q-4-12.5 2-24.25t 19-15.75q 12.5-4 24.25,2t 15.75,19q 12.5,40 46.25,64.75t 75.75,24.75t 75.75-24.75t 46.25-64.75q 4-13 16-19t 24.5-2t 18.5,15.75t 2,24.25zM 320,320q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25 t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25zM 576,320q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25zM 704,448q0-65 -25.5-124.25t-68.25-102t-102-68.25t-124.25-25.5t-124.25,25.5t-102,68.25t-68.25,102t-25.5,124.25 t 25.5,124.25t 68.25,102t 102,68.25t 124.25,25.5t 124.25-25.5t 102-68.25t 68.25-102t 25.5-124.25zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"576\" height=\"896\" viewBox=\"0 0 576 896\" data-du=\"\" data-tags=\"collapse-alt, minus, subtract, remove, square\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 464,192q 46.5,0 79.25,32.75t 32.75,79.25l0,352 q0,46 -32.75,79t-79.25,33l-352,0 q-46.5,0 -79.25-33t-32.75-79l0-352 q0-46.5 32.75-79.25t 79.25-32.75l 352,0 zM 512,656l0-352 q0-20 -14-34t-34-14l-352,0 q-20,0 -34,14t-14,34l0,352 q0,20 14,34t 34,14l 352,0 q 20,0 34-14t 14-34z M 432,448q 7,0 11.5,4.5t 4.5,11.5l0,32 q0,7 -4.5,11.5t-11.5,4.5l-288,0 q-7,0 -11.5-4.5t-4.5-11.5l0-32 q0-7 4.5-11.5t 11.5-4.5l 288,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"576\" height=\"896\" viewBox=\"0 0 576 896\" data-du=\"\" data-tags=\"expand-alt, plus, square, add\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 448,464l0,32 q0,7 -4.5,11.5t-11.5,4.5l-112,0 l0,112 q0,7 -4.5,11.5t-11.5,4.5l-32,0 q-7,0 -11.5-4.5t-4.5-11.5l0-112 l-112,0 q-7,0 -11.5-4.5t-4.5-11.5l0-32 q0-7 4.5-11.5t 11.5-4.5l 112,0 l0-112 q0-7 4.5-11.5t 11.5-4.5l 32,0 q 7,0 11.5,4.5t 4.5,11.5l0,112 l 112,0 q 7,0 11.5,4.5t 4.5,11.5zM 512,656l0-352 q0-20 -14-34t-34-14l-352,0 q-20,0 -34,14 t-14,34l0,352 q0,20 14,34t 34,14l 352,0 q 20,0 34-14t 14-34zM 576,304l0,352 q0,46 -32.75,79t-79.25,33l-352,0 q-46.5,0 -79.25-33t-32.75-79l0-352 q0-46.5 32.75-79.25t 79.25-32.75l 352,0 q 46.5,0 79.25,32.75t 32.75,79.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"folder-open-alt, open, directory, category, browse\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 890.5,465.5q0-17.5 -26.5-17.5l-544,0 q-20,0 -42.75,10.75t-35.75,26.25l-147,181.5q-9,12 -9,20q0,17.5 26.5,17.5l 544,0 q 20,0 43-11t 35.5-26.5l 147-181.5q 9-11 9-19.5zM 320,384l 384,0 l0-80 q0-20 -14-34t-34-14l-288,0 q-20,0 -34-14t-14-34l0-32 q0-20 -14-34t-34-14l-160,0 q-20,0 -34,14t-14,34 l0,426.5 l 128-157.5q 22-26.5 58-43.75t 70-17.25zM 954.5,465.5q0,31 -23,60l-147.5,181.5q-21.5,26.5 -58,43.75t-70,17.25l-544,0 q-46,0 -79-33t-33-79l0-480 q0-46 33-79t 79-33l 160,0 q 46,0 79,33t 33,79l0,16 l 272,0 q 46,0 79,33t 33,79l0,80 l 96,0 q 27,0 49.5,12.25t 33.5,35.25q 7.5,16 7.5,34z \" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"folder-close-alt, directory, category\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 768,656l0-352 q0-20 -14-34t-34-14l-352,0 q-20,0 -34-14t-14-34l0-32 q0-20 -14-34t-34-14l-160,0 q-20,0 -34,14t-14,34l0,480 q0,20 14,34t 34,14l 608,0 q 20,0 34-14t 14-34zM 832,304l0,352 q0,46 -33,79t-79,33l-608,0 q-46,0 -79-33t-33-79l0-480 q0-46 33-79t 79-33l 160,0 q 46,0 79,33t 33,79l0,16 l 336,0 q 46,0 79,33t 33,79z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"github-alt, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 320,608q0,20 -6.25,41t-21.5,38t-36.25,17t-36.25-17t-21.5-38t-6.25-41t 6.25-41t 21.5-38t 36.25-17t 36.25,17t 21.5,38t 6.25,41zM 640,608q0,20 -6.25,41t-21.5,38t-36.25,17t-36.25-17t-21.5-38t-6.25-41t 6.25-41t 21.5-38t 36.25-17t 36.25,17t 21.5,38t 6.25,41zM 720,608 q0-60 -34.5-102t-93.5-42q-20.5,0 -97.5,10.5q-35.5,5.5 -78.5,5.5t-78.5-5.5q-76-10.5 -97.5-10.5q-59,0 -93.5,42t-34.5,102q0,44 16,76.75t 40.5,51.5t 61,30t 70,14.75t 74.5,3.5l 84,0 q 41,0 74.5-3.5t 70-14.75t 61-30t 40.5-51.5t 16-76.75zM 832,520q0,103.5 -30.5,165.5q-19,38.5 -52.75,66.5t-70.5,43 t-85,23.75t-85.75,11t-83.5,2.25q-39,0 -71-1.5t-73.75-6.25t-76.25-15t-68.5-25.75t-60.5-40.5t-43-57.5q-31-61.5 -31-165.5q0-118.5 68-198q-13.5-41 -13.5-85q0-58 25.5-109q 54,0 95,19.75t 94.5,61.75q 73.5-17.5 154.5-17.5q 74,0 140,16q 52.5-41 93.5-60.5t 94.5-19.5q 25.5,51 25.5,109 q0,43.5 -13.5,84q 68,80 68,199z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"reply, arrow, left\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 896,560q0,83 -63.5,225.5q-1.5,3.5 -5.25,12t-6.75,15t-6.5,11q-6,8.5 -14,8.5q-7.5,0 -11.75-5t-4.25-12.5q0-4.5 1.25-13.25t 1.25-11.75q 2.5-34 2.5-61.5q0-50.5 -8.75-90.5t-24.25-69.25t-40-50.5t-52.75-34.75t-66.5-21.25t-77-10.75t-87.75-3l-112,0 l0,128 q0,13 -9.5,22.5t-22.5,9.5t-22.5-9.5 l-256-256q-9.5-9.5 -9.5-22.5t 9.5-22.5l 256-256q 9.5-9.5 22.5-9.5t 22.5,9.5t 9.5,22.5l0,128 l 112,0 q 356.5,0 437.5,201.5q 26.5,67 26.5,166.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"circle\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"784\" height=\"896\" viewBox=\"0 0 784 896\" data-du=\"\" data-tags=\"spinner, loading, busy, progress\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 248,672q0,30 -21.25,51t-50.75,21q-30,0 -51-21t-21-51t 21-51t 51-21q 29.5,0 50.75,21t 21.25,51zM 464,768q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25zM 160,448q0,33 -23.5,56.5t-56.5,23.5t-56.5-23.5t-23.5-56.5 t 23.5-56.5t 56.5-23.5t 56.5,23.5t 23.5,56.5zM 680,672q0,23 -16.5,39.5t-39.5,16.5t-39.5-16.5t-16.5-39.5t 16.5-39.5t 39.5-16.5t 39.5,16.5t 16.5,39.5zM 264,224q0,36.5 -25.75,62.25t-62.25,25.75t-62.25-25.75t-25.75-62.25t 25.75-62.25t 62.25-25.75t 62.25,25.75t 25.75,62.25zM 496,128q0,40 -28,68t-68,28 t-68-28t-28-68t 28-68t 68-28t 68,28t 28,68zM 768,448q0,20 -14,34t-34,14t-34-14t-14-34t 14-34t 34-14t 34,14t 14,34zM 664,224q0,16.5 -11.75,28.25t-28.25,11.75t-28.25-11.75t-11.75-28.25t 11.75-28.25t 28.25-11.75t 28.25,11.75t 11.75,28.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"quote-right, rdquo\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 384,160l0,352 q0,52 -20.25,99.25t-54.75,81.75t-81.75,54.75t-99.25,20.25l-32,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 32,0 q 53,0 90.5-37.5t 37.5-90.5l0-16 q0-20 -14-34t-34-14l-112,0 q-40,0 -68-28t-28-68l0-192 q0-40 28-68t 68-28l 192,0 q 40,0 68,28t 28,68zM 832,160 l0,352 q0,52 -20.25,99.25t-54.75,81.75t-81.75,54.75t-99.25,20.25l-32,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 32,0 q 53,0 90.5-37.5t 37.5-90.5l0-16 q0-20 -14-34t-34-14l-112,0 q-40,0 -68-28t-28-68l0-192 q0-40 28-68t 68-28l 192,0 q 40,0 68,28t 28,68z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"quote-left, ldquo\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 384,480l0,192 q0,40 -28,68t-68,28l-192,0 q-40,0 -68-28t-28-68l0-352 q0-52 20.25-99.25t 54.75-81.75t 81.75-54.75t 99.25-20.25l 32,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13 -9.5,22.5t-22.5,9.5l-32,0 q-53,0 -90.5,37.5t-37.5,90.5l0,16 q0,20 14,34t 34,14l 112,0 q 40,0 68,28t 28,68z M 832,480l0,192 q0,40 -28,68t-68,28l-192,0 q-40,0 -68-28t-28-68l0-352 q0-52 20.25-99.25t 54.75-81.75t 81.75-54.75t 99.25-20.25l 32,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13 -9.5,22.5t-22.5,9.5l-32,0 q-53,0 -90.5,37.5t-37.5,90.5l0,16 q0,20 14,34t 34,14l 112,0 q 40,0 68,28t 28,68z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"circle-blank\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 384,176q-74,0 -136.5,36.5t-99,99t-36.5,136.5t 36.5,136.5t 99,99t 136.5,36.5t 136.5-36.5t 99-99t 36.5-136.5t-36.5-136.5t-99-99t-136.5-36.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5 t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"384\" height=\"896\" viewBox=\"0 0 384 896\" data-du=\"\" data-tags=\"mobile, phone\" style=\"margin-left: 13px; margin-top: 8px;\"><path d=\"M 232,704q0-16.5 -11.75-28.25t-28.25-11.75t-28.25,11.75t-11.75,28.25t 11.75,28.25t 28.25,11.75t 28.25-11.75t 11.75-28.25zM 336,624l0-352 q0-6.5 -4.75-11.25t-11.25-4.75l-256,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,352 q0,6.5 4.75,11.25t 11.25,4.75l 256,0 q 6.5,0 11.25-4.75t 4.75-11.25zM 240,200 q0-8 -8-8l-80,0 q-8,0 -8,8t 8,8l 80,0 q 8,0 8-8zM 384,192l0,512 q0,26 -19,45t-45,19l-256,0 q-26,0 -45-19t-19-45l0-512 q0-26 19-45t 45-19l 256,0 q 26,0 45,19t 19,45z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"576\" height=\"896\" viewBox=\"0 0 576 896\" data-du=\"\" data-tags=\"tablet, mobile\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 320,704q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 512,624l0-480 q0-6.5 -4.75-11.25t-11.25-4.75l-416,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,480 q0,6.5 4.75,11.25t 11.25,4.75l 416,0 q 6.5,0 11.25-4.75t 4.75-11.25zM 576,144l0,544 q0,33 -23.5,56.5t-56.5,23.5l-416,0 q-33,0 -56.5-23.5t-23.5-56.5l0-544 q0-33 23.5-56.5t 56.5-23.5l 416,0 q 33,0 56.5,23.5t 23.5,56.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"laptop, computer, notebook\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 208,640q-33,0 -56.5-23.5t-23.5-56.5l0-352 q0-33 23.5-56.5t 56.5-23.5l 544,0 q 33,0 56.5,23.5t 23.5,56.5l0,352 q0,33 -23.5,56.5t-56.5,23.5l-544,0 zM 192,208l0,352 q0,6.5 4.75,11.25t 11.25,4.75l 544,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-352 q0-6.5 -4.75-11.25t-11.25-4.75l-544,0 q-6.5,0 -11.25,4.75t-4.75,11.25z M 880,672l 80,0 l0,48 q0,20 -23.5,34t-56.5,14l-800,0 q-33,0 -56.5-14t-23.5-34l0-48 l 80,0 l 800,0 zM 520,720q 8,0 8-8t-8-8l-80,0 q-8,0 -8,8t 8,8l 80,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"desktop, computer, screen, display, pc\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 896,496l0-416 q0-6.5 -4.75-11.25t-11.25-4.75l-800,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,416 q0,6.5 4.75,11.25t 11.25,4.75l 800,0 q 6.5,0 11.25-4.75t 4.75-11.25zM 960,80l0,544 q0,33 -23.5,56.5t-56.5,23.5l-272,0 q0,18.5 8,38.75t 16,35.5t 8,21.75q0,13 -9.5,22.5t-22.5,9.5l-256,0 q-13,0 -22.5-9.5 t-9.5-22.5q0-7 8-22t 16-35t 8-39l-272,0 q-33,0 -56.5-23.5t-23.5-56.5l0-544 q0-33 23.5-56.5t 56.5-23.5l 800,0 q 33,0 56.5,23.5t 23.5,56.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"576\" height=\"896\" viewBox=\"0 0 576 896\" data-du=\"\" data-tags=\"angle-down, arrow, down\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 537.5,368q0,6.5 -5,11.5l-233,233q-5,5 -11.5,5t-11.5-5l-233-233q-5-5 -5-11.5t 5-11.5l 25-25q 5-5 11.5-5t 11.5,5l 196.5,196.5l 196.5-196.5q 5-5 11.5-5t 11.5,5l 25,25q 5,5 5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"576\" height=\"896\" viewBox=\"0 0 576 896\" data-du=\"\" data-tags=\"angle-up, arrow, up\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 537.5,592q0,6.5 -5,11.5l-25,25q-5,5 -11.5,5t-11.5-5l-196.5-196.5l-196.5,196.5q-5,5 -11.5,5t-11.5-5l-25-25q-5-5 -5-11.5t 5-11.5l 233-233q 5-5 11.5-5t 11.5,5l 233,233q 5,5 5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"320\" height=\"896\" viewBox=\"0 0 320 896\" data-du=\"\" data-tags=\"angle-right, arrow, right\" style=\"margin-left: 13px; margin-top: 8px;\"><path d=\"M 297.5,480q0,6.5 -5,11.5l-233,233q-5,5 -11.5,5t-11.5-5l-25-25q-5-5 -5-11.5t 5-11.5l 196.5-196.5l-196.5-196.5q-5-5 -5-11.5t 5-11.5l 25-25q 5-5 11.5-5t 11.5,5l 233,233q 5,5 5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"320\" height=\"896\" viewBox=\"0 0 320 896\" data-du=\"\" data-tags=\"angle-left, arrow, left\" style=\"margin-left: 13px; margin-top: 8px;\"><path d=\"M 313.5,272q0,6.5 -5,11.5l-196.5,196.5l 196.5,196.5q 5,5 5,11.5t-5,11.5l-25,25q-5,5 -11.5,5t-11.5-5l-233-233q-5-5 -5-11.5t 5-11.5l 233-233q 5-5 11.5-5t 11.5,5l 25,25q 5,5 5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"576\" height=\"896\" viewBox=\"0 0 576 896\" data-du=\"\" data-tags=\"double-angle-down, down, arrows\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 537.5,432q0,6.5 -5,11.5l-233,233q-5,5 -11.5,5t-11.5-5l-233-233q-5-5 -5-11.5t 5-11.5l 25-25q 5-5 11.5-5t 11.5,5l 196.5,196.5l 196.5-196.5q 5-5 11.5-5t 11.5,5l 25,25q 5,5 5,11.5zM 537.5,240q0,6.5 -5,11.5l-233,233q-5,5 -11.5,5t-11.5-5l-233-233q-5-5 -5-11.5 t 5-11.5l 25-25q 5-5 11.5-5t 11.5,5l 196.5,196.5l 196.5-196.5q 5-5 11.5-5t 11.5,5l 25,25q 5,5 5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"576\" height=\"896\" viewBox=\"0 0 576 896\" data-du=\"\" data-tags=\"double-angle-up, up, arrows\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 537.5,656q0,6.5 -5,11.5l-25,25q-5,5 -11.5,5t-11.5-5l-196.5-196.5l-196.5,196.5q-5,5 -11.5,5t-11.5-5l-25-25q-5-5 -5-11.5t 5-11.5l 233-233q 5-5 11.5-5t 11.5,5l 233,233q 5,5 5,11.5zM 537.5,464q0,6.5 -5,11.5l-25,25q-5,5 -11.5,5t-11.5-5l-196.5-196.5l-196.5,196.5 q-5,5 -11.5,5t-11.5-5l-25-25q-5-5 -5-11.5t 5-11.5l 233-233q 5-5 11.5-5t 11.5,5l 233,233q 5,5 5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"double-angle-right, right, arrows\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 297.5,480q0,6.5 -5,11.5l-233,233q-5,5 -11.5,5t-11.5-5l-25-25q-5-5 -5-11.5t 5-11.5l 196.5-196.5l-196.5-196.5q-5-5 -5-11.5t 5-11.5l 25-25q 5-5 11.5-5t 11.5,5l 233,233q 5,5 5,11.5zM 489.5,480q0,6.5 -5,11.5l-233,233q-5,5 -11.5,5t-11.5-5l-25-25q-5-5 -5-11.5t 5-11.5 l 196.5-196.5l-196.5-196.5q-5-5 -5-11.5t 5-11.5l 25-25q 5-5 11.5-5t 11.5,5l 233,233q 5,5 5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"double-angle-left, left, arrows\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 313.5,688q0,6.5 -5,11.5l-25,25q-5,5 -11.5,5t-11.5-5l-233-233q-5-5 -5-11.5t 5-11.5l 233-233q 5-5 11.5-5t 11.5,5l 25,25q 5,5 5,11.5t-5,11.5l-196.5,196.5l 196.5,196.5q 5,5 5,11.5zM 505.5,688q0,6.5 -5,11.5l-25,25q-5,5 -11.5,5t-11.5-5l-233-233q-5-5 -5-11.5 t 5-11.5l 233-233q 5-5 11.5-5t 11.5,5l 25,25q 5,5 5,11.5t-5,11.5l-196.5,196.5l 196.5,196.5q 5,5 5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"plus-sign, add, sum\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 640,480l0-64 q0-13 -9.5-22.5t-22.5-9.5l-160,0 l0-160 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13,0 -22.5,9.5t-9.5,22.5l0,160 l-160,0 q-13,0 -22.5,9.5t-9.5,22.5l0,64 q0,13 9.5,22.5t 22.5,9.5l 160,0 l0,160 q0,13 9.5,22.5t 22.5,9.5l 64,0 q 13,0 22.5-9.5t 9.5-22.5l0-160 l 160,0 q 13,0 22.5-9.5t 9.5-22.5zM 768,208l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"h-sign\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 640,672l0-448 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13,0 -22.5,9.5t-9.5,22.5l0,160 l-256,0 l0-160 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13,0 -22.5,9.5t-9.5,22.5l0,448 q0,13 9.5,22.5t 22.5,9.5l 64,0 q 13,0 22.5-9.5t 9.5-22.5l0-160 l 256,0 l0,160 q0,13 9.5,22.5t 22.5,9.5l 64,0 q 13,0 22.5-9.5t 9.5-22.5zM 768,208l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"beer, mug, drink\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 320,448l0-192 l-128,0 l0,128 q0,26.5 18.75,45.25t 45.25,18.75l 64,0 zM 832,672l0,96 l-576,0 l0-96 l 64-96l-64,0 q-79.5,0 -135.75-56.25t-56.25-135.75l0-160 l-32-32l 16-64l 240,0 l 16-64l 480,0 l 16,96l-32,16l0,400 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"fighter-jet, pane, aircraft\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 960,480q-0.5,16 -144,48l-176,16l-112,32l-32,0 l-146.5,176l 34.5,0 q 13,0 22.5,2.25t 9.5,5.75t-9.5,5.75t-22.5,2.25l-48,0 l-80,0 l-32,0 l0-16 l 32,0 l0-208 l-80,0 l-96,112l-48,0 l-16-16l0-96 l 16,0 l0-16 l 64,0 l0-4 l-96-12l0-64 l 96-12l0-4 l-64,0 l0-16 l-16,0 l0-96 l 16-16l 48,0 l 96,112l 80,0 l0-208 l-32,0 l0-16 l 32,0 l 80,0 l 48,0 q 13,0 22.5,2.25t 9.5,5.75t-9.5,5.75t-22.5,2.25l-34.5,0 l 146.5,176l 32,0 l 112,32l 176,16q 130.5,29 143.5,46.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"medkit, medicine, kit\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 640,560l0-96 q0-7 -4.5-11.5t-11.5-4.5l-112,0 l0-112 q0-7 -4.5-11.5t-11.5-4.5l-96,0 q-7,0 -11.5,4.5t-4.5,11.5l0,112 l-112,0 q-7,0 -11.5,4.5t-4.5,11.5l0,96 q0,7 4.5,11.5t 11.5,4.5l 112,0 l0,112 q0,7 4.5,11.5t 11.5,4.5l 96,0 q 7,0 11.5-4.5t 4.5-11.5l0-112 l 112,0 q 7,0 11.5-4.5t 4.5-11.5zM 320,192l 256,0 l0-64 l-256,0 l0,64 zM 128,192l0,640 l-16,0 q-46,0 -79-33t-33-79l0-416 q0-46 33-79t 79-33l 16,0 zM 720,192l0,640 l-544,0 l0-640 l 80,0 l0-80 q0-20 14-34t 34-14l 288,0 q 20,0 34,14t 14,34l0,80 l 80,0 zM 896,304l0,416 q0,46 -33,79t-79,33l-16,0 l0-640 l 16,0 q 46,0 79,33t 33,79z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"ambulance\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 320,704q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25zM 128,448l 192,0 l0-128 l-79,0 q-7,1 -11,4.5l-97.5,97.5q-3.5,6 -4.5,11l0,15 zM 768,704q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75 t 45.25-18.75t 18.75-45.25zM 832,368l0-96 q0-7 -4.5-11.5t-11.5-4.5l-112,0 l0-112 q0-7 -4.5-11.5t-11.5-4.5l-96,0 q-7,0 -11.5,4.5t-4.5,11.5l0,112 l-112,0 q-7,0 -11.5,4.5t-4.5,11.5l0,96 q0,7 4.5,11.5t 11.5,4.5l 112,0 l0,112 q0,7 4.5,11.5t 11.5,4.5l 96,0 q 7,0 11.5-4.5t 4.5-11.5l0-112 l 112,0 q 7,0 11.5-4.5t 4.5-11.5zM 960,96l0,576 q0,13 -9.5,22.5t-22.5,9.5l-96,0 q0,53 -37.5,90.5t-90.5,37.5t-90.5-37.5t-37.5-90.5l-192,0 q0,53 -37.5,90.5t-90.5,37.5t-90.5-37.5t-37.5-90.5l-64,0 q-13,0 -22.5-9.5t-9.5-22.5t 9.5-22.5t 22.5-9.5l0-208 q0-13 6.5-29t 16-25.5l 99-99q 9.5-9.5 25.5-16t 29-6.5l 80,0 l0-160 q0-13 9.5-22.5t 22.5-9.5l 576,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"hospital, building\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 192,656l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 192,528l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 320,528l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 192,400l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 576,656l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 448,528l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 320,400l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 576,528l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 448,400l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 576,400l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 448,832l 192,0 l0-576 l-128,0 l0,16 q0,20 -14,34t-34,14l-224,0 q-20,0 -34-14t-14-34l0-16 l-128,0 l0,576 l 192,0 l0-112 q0-6.5 4.75-11.25t 11.25-4.75l 160,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,112 zM 448,240l0-160 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,48 l-64,0 l0-48 q0-6.5 -4.75-11.25 t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,160 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-48 l 64,0 l0,48 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25zM 704,224l0,640 q0,13 -9.5,22.5t-22.5,9.5l-640,0 q-13,0 -22.5-9.5t-9.5-22.5l0-640 q0-13 9.5-22.5t 22.5-9.5l 160,0 l0-144 q0-20 14-34t 34-14l 224,0 q 20,0 34,14t 14,34l0,144 l 160,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"building, office, work\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 192,656l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 192,528l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 320,528l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 192,400l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 576,656l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 448,528l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 320,400l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 192,272l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 576,528l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 448,400l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 320,272l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 192,144l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 576,400l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 448,272l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 320,144l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 576,272l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 448,144l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 576,144l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 448,832l 192,0 l0-768 l-576,0 l0,768 l 192,0 l0-112 q0-6.5 4.75-11.25t 11.25-4.75l 160,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,112 zM 704,32l0,832 q0,13 -9.5,22.5t-22.5,9.5l-640,0 q-13,0 -22.5-9.5t-9.5-22.5l0-832 q0-13 9.5-22.5t 22.5-9.5l 640,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"640\" height=\"896\" viewBox=\"0 0 640 896\" data-du=\"\" data-tags=\"file-alt, paper, document\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 512,592l0,32 q0,7 -4.5,11.5t-11.5,4.5l-352,0 q-7,0 -11.5-4.5t-4.5-11.5l0-32 q0-7 4.5-11.5t 11.5-4.5l 352,0 q 7,0 11.5,4.5t 4.5,11.5zM 512,464l0,32 q0,7 -4.5,11.5t-11.5,4.5l-352,0 q-7,0 -11.5-4.5t-4.5-11.5l0-32 q0-7 4.5-11.5t 11.5-4.5l 352,0 q 7,0 11.5,4.5t 4.5,11.5zM 64,768l 512,0 l0-384 l-208,0 q-20,0 -34-14t-14-34l0-208 l-256,0 l0,640 z M 384,320l 188,0 q-5-14.5 -11-20.5l-156.5-156.5q-6-6 -20.5-11l0,188 zM 640,336l0,448 q0,20 -14,34t-34,14l-544,0 q-20,0 -34-14t-14-34l0-672 q0-20 14-34t 34-14l 320,0 q 20,0 44,10t 38,24l 156,156q 14,14 24,38t 10,44z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"food, lunch, fork, knife, dinner\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 320,32l0,320 q0,30.5 -17.75,55.5t-46.25,35l0,389.5 q0,26 -19,45t-45,19l-64,0 q-26,0 -45-19t-19-45l0-389.5 q-28.5-10 -46.25-35t-17.75-55.5l0-320 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5l0,208 q0,13 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5l0-208 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5l0,208 q0,13 9.5,22.5 t 22.5,9.5t 22.5-9.5t 9.5-22.5l0-208 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5zM 704,32l0,800 q0,26 -19,45t-45,19l-64,0 q-26,0 -45-19t-19-45l0-256 l-112,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-400 q0-66 47-113t 113-47l 128,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"coffee, break, drink, cup, tea\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 832,320q0-40 -28-68t-68-28l-32,0 l0,192 l 32,0 q 40,0 68-28t 28-68zM0,704l 896,0 q0,53 -37.5,90.5t-90.5,37.5l-640,0 q-53,0 -90.5-37.5t-37.5-90.5zM 928,320q0,79.5 -56.25,135.75t-135.75,56.25l-32,0 l0,16 q0,46 -33,79t-79,33l-352,0 q-46,0 -79-33t-33-79l0-368 q0-13 9.5-22.5 t 22.5-9.5l 576,0 q 79.5,0 135.75,56.25t 56.25,135.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"bell-alt, alarm, notification\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 424,848q0-8 -8-8q-29.5,0 -50.75-21.25t-21.25-50.75q0-8 -8-8t-8,8q0,36.5 25.75,62.25t 62.25,25.75q 8,0 8-8zM 832,704q0,26 -19,45t-45,19l-224,0 q0,53 -37.5,90.5t-90.5,37.5t-90.5-37.5t-37.5-90.5l-224,0 q-26,0 -45-19t-19-45q 95-80.5 143.5-198.75t 48.5-249.25 q0-82.5 48-131t 132-58.5q-4-9 -4-18.5q0-20 14-34t 34-14t 34,14t 14,34q0,9.5 -4,18.5q 84,10 132,58.5t 48,131q0,131 48.5,249.25t 143.5,198.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"suitcase, briefcase, travel, vacation\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,192l 256,0 l0-64 l-256,0 l0,64 zM 144,192l0,640 l-32,0 q-46,0 -79-33t-33-79l0-416 q0-46 33-79t 79-33l 32,0 zM 704,192l0,640 l-512,0 l0-640 l 64,0 l0-80 q0-20 14-34t 34-14l 288,0 q 20,0 34,14t 14,34l0,80 l 64,0 zM 896,304l0,416 q0,46 -33,79t-79,33l-32,0 l0-640 l 32,0 q 46,0 79,33 t 33,79z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"stethoscope\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 640,352q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 704,352q0,31 -17.75,55.5t-46.25,35l0,197.5 q0,79.5 -65.75,135.75t-158.25,56.25t-158.25-56.25t-65.75-135.75l0-66 q-82-10 -137-64t-55-126l0-256 q0-13 9.5-22.5t 22.5-9.5q 3,0 8,1q 8.5-15 23.5-24 t 32.5-9q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75q-16.5,0 -32-9l0,201 q0,53 47,90.5t 113,37.5t 113-37.5t 47-90.5l0-201 q-15.5,9 -32,9q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75q 17.5,0 32.5,9t 23.5,24q 5-1 8-1q 13,0 22.5,9.5t 9.5,22.5l0,256 q0,72 -55,126 t-137,64l0,66 q0,53 47,90.5t 113,37.5t 113-37.5t 47-90.5l0-197.5 q-28.5-10.5 -46.25-35t-17.75-55.5q0-40 28-68t 68-28t 68,28t 28,68z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"user-md, medic, doctor\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 192,672q0,13 -9.5,22.5t-22.5,9.5t-22.5-9.5t-9.5-22.5t 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5zM 704,702.5q0,60.5 -36.5,95t-97,34.5l-437,0 q-60.5,0 -97-34.5t-36.5-95q0-34 2.75-65.5t 12-69t 23.75-66.25t 40.5-51.5t 60-30.25q-11,26 -11,60l0,101.5 q-29,10 -46.5,35t-17.5,55.5q0,40 28,68t 68,28 t 68-28t 28-68q0-30.5 -17.75-55.5t-46.25-35l0-101.5 q0-31 12.5-46.5q 66,52 147.5,52t 147.5-52q 12.5,15.5 12.5,46.5l0,32 q-53,0 -90.5,37.5t-37.5,90.5l0,44.5 q-16,14.5 -16,35.5q0,20 14,34t 34,14t 34-14t 14-34q0-21 -16-35.5l0-44.5 q0-26 19-45t 45-19t 45,19t 19,45l0,44.5 q-16,14.5 -16,35.5q0,20 14,34 t 34,14t 34-14t 14-34q0-21 -16-35.5l0-44.5 q0-34 -17.25-63.75t-46.75-46.75q0-5 0.25-21.25t0-24t-1.25-20.75t-3.5-23.5t-6.5-20q 34,7.5 60,30.25t 40.5,51.5t 23.75,66.25t 12,69t 2.75,65.5zM 544,256q0,79.5 -56.25,135.75t-135.75,56.25t-135.75-56.25t-56.25-135.75t 56.25-135.75t 135.75-56.25 t 135.75,56.25t 56.25,135.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"cloud-upload, upload, load, open\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 640,432q0-7 -4.5-11.5l-176-176q-4.5-4.5 -11.5-4.5t-11.5,4.5l-175.5,175.5q-5,6 -5,12q0,7 4.5,11.5t 11.5,4.5l 112,0 l0,176 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-176 l 112,0 q 6.5,0 11.25-4.75t 4.75-11.25zM 960,576q0,79.5 -56.25,135.75t-135.75,56.25l-544,0 q-92.5,0 -158.25-65.75t-65.75-158.25q0-65 35-120t 94-82.5q-1-15 -1-21.5q0-106 75-181t 181-75q 78,0 142.75,43.5t 94.25,115.5q 35.5-31 83-31q 53,0 90.5,37.5t 37.5,90.5q0,38 -20.5,69q 65,15.5 106.75,67.75t 41.75,119.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"cloud-download, download, store, save\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 640,464q0-7 -4.5-11.5t-11.5-4.5l-112,0 l0-176 q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,176 l-112,0 q-6.5,0 -11.25,4.75t-4.75,11.25q0,7 4.5,11.5l 176,176q 4.5,4.5 11.5,4.5t 11.5-4.5l 175.5-175.5q 5-6 5-12zM 960,576q0,79.5 -56.25,135.75t-135.75,56.25l-544,0 q-92.5,0 -158.25-65.75t-65.75-158.25q0-65 35-120t 94-82.5q-1-15 -1-21.5q0-106 75-181t 181-75q 78,0 142.75,43.5t 94.25,115.5q 35.5-31 83-31q 53,0 90.5,37.5t 37.5,90.5q0,38 -20.5,69q 65,15.5 106.75,67.75t 41.75,119.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"exchange, transfer, tab, traffic\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 896,592l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-688,0 l0,96 q0,6.5 -4.75,11.25t-11.25,4.75q-6,0 -12-5l-159.5-160q-4.5-4.5 -4.5-11q0-7 4.5-11.5l 160-160q 4.5-4.5 11.5-4.5q 6.5,0 11.25,4.75t 4.75,11.25l0,96 l 688,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 896,320q0,7 -4.5,11.5l-160,160q-4.5,4.5 -11.5,4.5 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 l-688,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 688,0 l0-96 q0-7 4.5-11.5t 11.5-4.5q 6,0 12,5l 159.5,159.5q 4.5,4.5 4.5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"lightbulb, idea, tip\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 368,288q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25q0-23 -27-35.5t-53-12.5q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75q 25,0 49.75,8t 43.5,27t 18.75,45zM 448,288q0-36 -17.25-67t-45-50.75t-61.5-31t-68.25-11.25t-68.25,11.25t-61.5,31t-45,50.75t-17.25,67 q0,50.5 34,90q 5,5.5 15.25,16.5t 15.25,16.5q 64,76.5 70.5,149l 114,0 q 6.5-72.5 70.5-149q 5-5.5 15.25-16.5t 15.25-16.5q 34-39.5 34-90zM 512,288q0,77.5 -51.5,134q-22.5,24.5 -37.25,43.5t-29.75,47.75t-17,53.75q 23.5,14 23.5,41q0,18.5 -12.5,32q 12.5,13.5 12.5,32q0,26 -22.5,40.5q 6.5,11.5 6.5,23.5 q0,23 -15.75,35.5t-38.75,12.5q-10,22 -30,35t-43.5,13t-43.5-13t-30-35q-23,0 -38.75-12.5t-15.75-35.5q0-12 6.5-23.5q-22.5-14.5 -22.5-40.5q0-18.5 12.5-32q-12.5-13.5 -12.5-32q0-27 23.5-41q-2-25 -17-53.75t-29.75-47.75t-37.25-43.5q-51.5-56.5 -51.5-134q0-49.5 22.25-92.25t 58.5-71t 82-44.5t 93.25-16.25 t 93.25,16.25t 82,44.5t 58.5,71t 22.25,92.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"paste, clipboard\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,832l 448,0 l0-320 l-208,0 q-20,0 -34-14t-14-34l0-208 l-192,0 l0,576 zM 512,112l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-352,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 352,0 q 6.5,0 11.25-4.75t 4.75-11.25zM 640,448l 149.5,0 l-149.5-149.5l0,149.5 zM 896,512l0,336 q0,20 -14,34t-34,14 l-480,0 q-20,0 -34-14t-14-34l0-80 l-272,0 q-20,0 -34-14t-14-34l0-672 q0-20 14-34t 34-14l 544,0 q 20,0 34,14t 14,34l0,164 q 10.5,6.5 18,14l 204,204q 14,14 24,38t 10,44z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"umbrella, rainy\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 448,414l0,290 q0,52 -38,90t-90,38t-90-38t-38-90q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5q0,25 19.5,44.5t 44.5,19.5t 44.5-19.5t 19.5-44.5l0-290 q 16.5-5.5 32-5.5t 32,5.5zM 832,427.5q0,6.5 -4.75,11.25t-11.25,4.75q-5.5,0 -11.5-5q-24.5-23 -46.5-34.5t-51-11.5q-34,0 -64,18.5t-51.5,48.5 q-3.5,5 -8.75,14t-7.25,12q-5.5,8.5 -14,8.5q-9,0 -14.5-8.5q-2-3 -7.25-12t-8.75-14q-21.5-30 -51.25-48.5t-63.75-18.5t-63.75,18.5t-51.25,48.5q-3.5,5 -8.75,14t-7.25,12q-5.5,8.5 -14.5,8.5q-8.5,0 -14-8.5q-2-3 -7.25-12t-8.75-14q-21.5-30 -51.5-48.5t-64-18.5q-29,0 -51,11.5t-46.5,34.5 q-6,5 -11.5,5q-6.5,0 -11.25-4.75t-4.75-11.25q0-2.5 0.5-3.5q 22.5-91.5 86.25-159.75t 149-102.25t 180.25-34q 70,0 137.25,20t 123.25,56.75t 97.25,93.5t 57.75,125.75q 0.5,1 0.5,3.5zM 448,64l0,49 q-21-1 -32-1t-32,1l0-49 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"sitemap, tree\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 896,624l0,160 q0,20 -14,34t-34,14l-160,0 q-20,0 -34-14t-14-34l0-160 q0-20 14-34t 34-14l 48,0 l0-96 l-256,0 l0,96 l 48,0 q 20,0 34,14t 14,34l0,160 q0,20 -14,34t-34,14l-160,0 q-20,0 -34-14t-14-34l0-160 q0-20 14-34t 34-14l 48,0 l0-96 l-256,0 l0,96 l 48,0 q 20,0 34,14t 14,34l0,160 q0,20 -14,34t-34,14l-160,0 q-20,0 -34-14t-14-34l0-160 q0-20 14-34t 34-14l 48,0 l0-96 q0-26 19-45t 45-19l 256,0 l0-96 l-48,0 q-20,0 -34-14t-14-34l0-160 q0-20 14-34t 34-14l 160,0 q 20,0 34,14t 14,34l0,160 q0,20 -14,34t-34,14l-48,0 l0,96 l 256,0 q 26,0 45,19t 19,45l0,96 l 48,0 q 20,0 34,14t 14,34 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"448\" height=\"896\" viewBox=\"0 0 448 896\" data-du=\"\" data-tags=\"bolt, lightning, power, electricity, energy\" style=\"margin-left: 12px; margin-top: 8px;\"><path d=\"M 442.5,283q 9,10 3.5,22l-270,578.5q-6.5,12.5 -21,12.5q-2,0 -7-1q-8.5-2.5 -12.75-9.5t-2.25-15l 98.5-404l-203,50.5q-2,0.5 -6,0.5q-9,0 -15.5-5.5q-9-7.5 -6.5-19.5l 100.5-412.5q 2-7 8-11.5t 14-4.5l 164,0 q 9.5,0 16,6.25t 6.5,14.75q0,4 -2.5,9l-85.5,231.5l 198-49q 4-1 6-1q 9.5,0 17,7.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"comments-alt, chat, talk, bubbles\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 352,192q-76.5,0 -143,26t-105.75,70.5t-39.25,95.5q0,41 26.5,79t 74.5,66l 48.5,28l-17.5,42q 17-10 31-19.5l 22-15.5l 26.5,5q 39,7 76.5,7q 76.5,0 143-26t 105.75-70.5t 39.25-95.5t-39.25-95.5t-105.75-70.5t-143-26zM 352,128q 95.5,0 176.75,34.25t 128.25,93.25t 47,128.5t-47,128.5 t-128.25,93.25t-176.75,34.25q-43,0 -88-8q-62,44 -139,64q-18,4.5 -43,8l-1.5,0 q-5.5,0 -10.25-4t-5.75-10.5q-0.5-1.5 -0.5-3.25t 0.25-3.25t 1-3l 1.25-2.5t 1.75-2.75t 2-2.5t 2.25-2.5t 2-2.25q 2.5-3 11.5-12.5t 13-14.75t 11.25-14.5t 12.5-19.25t 10.25-22q-62-36 -97.5-88.5t-35.5-112q0-69.5 47-128.5t 128.25-93.25 t 176.75-34.25zM 763,712.5q 5,12 10.25,22t 12.5,19.25t 11.25,14.5t 13,14.75t 11.5,12.5q 0.5,0.5 2,2.25t 2.25,2.5t 2,2.5t 1.75,2.75l 1.25,2.5t 1,3t 0.25,3.25t-0.5,3.25q-1.5,7 -6.5,11t-11,3.5q-25-3.5 -43-8q-77-20 -139-64q-45,8 -88,8q-135.5,0 -236-66q 29,2 44,2q 80.5,0 154.5-22.5t 132-64.5 q 62.5-46 96-106t 33.5-127q0-38.5 -11.5-76q 64.5,35.5 102,89t 37.5,115q0,60 -35.5,112.25t-97.5,88.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"comment-alt, chat, talk, bubble\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,192q-102,0 -190.75,34.75t-141,93.75t-52.25,127.5q0,56 35.75,106.75t 100.75,87.75l 43.5,25l-13.5,48q-12,45.5 -35,86q 76-31.5 137.5-85.5l 21.5-19l 28.5,3q 34.5,4 65,4q 102,0 190.75-34.75t 141-93.75t 52.25-127.5t-52.25-127.5t-141-93.75t-190.75-34.75zM 896,448 q0,87 -60,160.75t-163,116.5t-225,42.75q-35,0 -72.5-4q-99,87.5 -230,121q-24.5,7 -57,11l-2.5,0 q-7.5,0 -13.5-5.25t-8-13.75l0-0.5 q-1.5-2 -0.25-6t 1-5t 2.25-4.75l 3-4.5t 3.5-4.25t 4-4.5q 3.5-4 15.5-17.25t 17.25-19t 15.5-19.75t 16.25-25.5t 13.5-29.5t 13-38q-78.5-44.5 -123.75-110t-45.25-140.5q0-87 60-160.75 t 163-116.5t 225-42.75t 225,42.75t 163,116.5t 60,160.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"dashboard, meter, speed\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 192,576q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25zM 288,352q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25zM 502,592.5l 50.5-191q 3-13 -3.75-24.25t-19.25-14.75 t-24,3.25t-15,19.75l-50.5,191q-30,2.5 -53.5,21.75t-31.5,49.25q-10,38.5 10,73t 58.5,44.5t 73-10t 44.5-58.5q 8-30 -3-58.5t-36-45.5zM 832,576q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25zM 512,256q0-26.5 -18.75-45.25 t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25zM 736,352q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25zM 896,576q0,130.5 -70.5,241.5q-9.5,14.5 -27,14.5l-701,0 q-17.5,0 -27-14.5 q-70.5-110.5 -70.5-241.5q0-91 35.5-174t 95.5-143t 143-95.5t 174-35.5t 174,35.5t 143,95.5t 95.5,143t 35.5,174z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"legal, hammer, rules\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 885.5,768q0,26.5 -18.5,45l-53.5,54q-19.5,18.5 -45.5,18.5q-26.5,0 -45-18.5l-181.5-182q-19-18 -19-45q0-26.5 21.5-48l-128-128l-63,63q-7,7 -17,7t-17-7q 1,1 6.25,6t 6.25,6.5t 5,5.75t 5,6.75t 3,6.75t 2.75,8.25t 0.75,9q0,19 -14,34q-1.5,1.5 -8.25,9t-9.5,10.25 t-9.25,8.25t-11,7.75t-11,4.5t-13,2.25q-20,0 -34-14l-204-204q-14-14 -14-34q0-6.5 2.25-13t 4.5-11t 7.75-11t 8.25-9.25t 10.25-9.5t 9-8.25q 15-14 34-14q 5,0 9,0.75t 8.25,2.75t 6.75,3t 6.75,5t 5.75,5t 6.5,6.25t 6,6.25q-7-7 -7-17t 7-17l 174-174q 7-7 17-7t 17,7 q-1-1 -6.25-6t-6.25-6.5t-5-5.75t-5-6.75t-3-6.75t-2.75-8.25t-0.75-9q0-19 14-34q 1.5-1.5 8.25-9t 9.5-10.25t 9.25-8.25t 11-7.75t 11-4.5t 13-2.25q 20,0 34,14l 204,204q 14,14 14,34q0,6.5 -2.25,13t-4.5,11t-7.75,11t-8.25,9.25t-10.25,9.5t-9,8.25q-15,14 -34,14 q-5,0 -9-0.75t-8.25-2.75t-6.75-3t-6.75-5t-5.75-5t-6.5-6.25t-6-6.25q 7,7 7,17t-7,17l-63,63l 128,128q 21.5-21.5 48-21.5q 26,0 45.5,18.5l 181.5,181.5q 18.5,19.5 18.5,45.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"undo, arrow, loop\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 768,448q0,78 -30.5,149t-82,122.5t-122.5,82t-149,30.5q-86,0 -163.5-36.25t-132-102.25q-3.5-5 -3.25-11.25t 4.25-10.25l 68.5-69q 5-4.5 12.5-4.5q 8,1 11.5,6q 36.5,47.5 89.5,73.5t 112.5,26q 52,0 99.25-20.25t 81.75-54.75t 54.75-81.75t 20.25-99.25t-20.25-99.25t-54.75-81.75 t-81.75-54.75t-99.25-20.25q-49,0 -94,17.75t-80,50.75l 68.5,69q 15.5,15 7,34.5q-8.5,20 -29.5,20l-224,0 q-13,0 -22.5-9.5t-9.5-22.5l0-224 q0-21 20-29.5q 19.5-8.5 34.5,7l 65,64.5q 53.5-50.5 122.25-78.25t 142.25-27.75q 78,0 149,30.5t 122.5,82t 82,122.5t 30.5,149z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"linkedin, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 174.5,312.5l0,495.5 l-165,0 l0-495.5 l 165,0 zM 185,159.5q 0.5,36.5 -25.25,61t-67.75,24.5l-1,0 q-41,0 -66-24.5t-25-61q0-37 25.75-61.25t 67.25-24.25t 66.5,24.25t 25.5,61.25zM 768,524l0,284 l-164.5,0 l0-265 q0-52.5 -20.25-82.25t-63.25-29.75q-31.5,0 -52.75,17.25t-31.75,42.75q-5.5,15 -5.5,40.5l0,276.5 l-164.5,0 q 1-199.5 1-323.5t-0.5-148l-0.5-24l 164.5,0 l0,72 l-1,0 q 10-16 20.5-28t 28.25-26t 43.5-21.75t 57.25-7.75q 85.5,0 137.5,56.75t 52,166.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"envelope-alt, letter, email, mail, contact\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 896,355l0,397 q0,33 -23.5,56.5t-56.5,23.5l-736,0 q-33,0 -56.5-23.5t-23.5-56.5l0-397 q 22,24.5 50.5,43.5q 181,123 248.5,172.5q 28.5,21 46.25,32.75t 47.25,24t 55,12.25l 0.5,0 l 0.5,0 q 25.5,0 55-12.25t 47.25-24t 46.25-32.75q 85-61.5 249-172.5q 28.5-19.5 50-43.5zM 896,208q0,39.5 -24.5,75.5t-61,61.5 q-188,130.5 -234,162.5q-5,3.5 -21.25,15.25t-27,19t-26,16.25t-28.75,13.5t-25,4.5l-0.5,0 l-0.5,0 q-11.5,0 -25-4.5t-28.75-13.5t-26-16.25t-27-19t-21.25-15.25q-45.5-32 -131-91.25t-102.5-71.25q-31-21 -58.5-57.75t-27.5-68.25q0-39 20.75-65t 59.25-26l 736,0 q 32.5,0 56.25,23.5t 23.75,56.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"sort-up\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 512,352q0,13 -9.5,22.5t-22.5,9.5l-448,0 q-13,0 -22.5-9.5t-9.5-22.5t 9.5-22.5l 224-224q 9.5-9.5 22.5-9.5t 22.5,9.5l 224,224q 9.5,9.5 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"sort-down\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 512,544q0,13 -9.5,22.5l-224,224q-9.5,9.5 -22.5,9.5t-22.5-9.5l-224-224q-9.5-9.5 -9.5-22.5t 9.5-22.5t 22.5-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"sort, menu, dropdown, arrows\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 512,544q0,13 -9.5,22.5l-224,224q-9.5,9.5 -22.5,9.5t-22.5-9.5l-224-224q-9.5-9.5 -9.5-22.5t 9.5-22.5t 22.5-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.5zM 512,352q0,13 -9.5,22.5t-22.5,9.5l-448,0 q-13,0 -22.5-9.5t-9.5-22.5t 9.5-22.5l 224-224q 9.5-9.5 22.5-9.5t 22.5,9.5l 224,224q 9.5,9.5 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"columns, layout\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 80,768l 304,0 l0-576 l-320,0 l0,560 q0,6.5 4.75,11.25t 11.25,4.75zM 768,752l0-560 l-320,0 l0,576 l 304,0 q 6.5,0 11.25-4.75t 4.75-11.25zM 832,144l0,608 q0,33 -23.5,56.5t-56.5,23.5l-672,0 q-33,0 -56.5-23.5t-23.5-56.5l0-608 q0-33 23.5-56.5t 56.5-23.5l 672,0 q 33,0 56.5,23.5t 23.5,56.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"320\" height=\"896\" viewBox=\"0 0 320 896\" data-du=\"\" data-tags=\"caret-right, right, arrow, next\" style=\"margin-left: 13px; margin-top: 8px;\"><path d=\"M 288,448q0,13 -9.5,22.5l-224,224q-9.5,9.5 -22.5,9.5t-22.5-9.5t-9.5-22.5l0-448 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5l 224,224q 9.5,9.5 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"320\" height=\"896\" viewBox=\"0 0 320 896\" data-du=\"\" data-tags=\"caret-left, previous, arrow, left\" style=\"margin-left: 13px; margin-top: 8px;\"><path d=\"M 320,224l0,448 q0,13 -9.5,22.5t-22.5,9.5t-22.5-9.5l-224-224q-9.5-9.5 -9.5-22.5t 9.5-22.5l 224-224q 9.5-9.5 22.5-9.5t 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"caret-up, upload, top, arrow\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 512,608q0,13 -9.5,22.5t-22.5,9.5l-448,0 q-13,0 -22.5-9.5t-9.5-22.5t 9.5-22.5l 224-224q 9.5-9.5 22.5-9.5t 22.5,9.5l 224,224q 9.5,9.5 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"caret-down, download, bottom, arrow\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 512,352q0,13 -9.5,22.5l-224,224q-9.5,9.5 -22.5,9.5t-22.5-9.5l-224-224q-9.5-9.5 -9.5-22.5t 9.5-22.5t 22.5-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"money, bill\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 384,576l 192,0 l0-48 l-64,0 l0-224 l-57,0 l-74,68.5l 38.5,40q 21-18.5 27.5-28.5l 1,0 l0,144 l-64,0 l0,48 zM 640,448q0,35 -10.5,71t-29.75,67t-50.75,50.5t-69,19.5t-69-19.5t-50.75-50.5t-29.75-67t-10.5-71t 10.5-71t 29.75-67t 50.75-50.5t 69-19.5t 69,19.5t 50.75,50.5t 29.75,67t 10.5,71zM 896,576 l0-256 q-53,0 -90.5-37.5t-37.5-90.5l-576,0 q0,53 -37.5,90.5t-90.5,37.5l0,256 q 53,0 90.5,37.5t 37.5,90.5l 576,0 q0-53 37.5-90.5t 90.5-37.5zM 960,160l0,576 q0,13 -9.5,22.5t-22.5,9.5l-896,0 q-13,0 -22.5-9.5t-9.5-22.5l0-576 q0-13 9.5-22.5t 22.5-9.5l 896,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"google-plus, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 438,732.5q0-10.5 -2.25-20.25t-4.75-18t-8.75-17.25t-10.5-15.25t-13.25-14.75t-13.75-12.75t-16-12.75t-15.5-11.5t-16.5-11.5t-15.25-10.5q-8.5-1 -25-1q-27,0 -53,3.5t-54,12.5t-49,23t-34.5,37.5t-13.5,53.5q0,34 17.75,60.75t 46.5,42t 60.25,22.75t 63.5,7.5q 29.5,0 56.25-6.25t 50.25-19.5t 37.25-36.75 t 13.75-55zM 378,301.5q0-30 -8.25-63.75t-23.5-65.25t-42-52t-59.75-20.5q-46.5,0 -72,34.5t-25.5,82.5q0,23.5 5.75,49.5t 17.75,52t 28,46.75t 39,33.75t 48.5,13q 48.5,0 70.25-30.25t 21.75-80.25zM 312.5,64l 218.5,0 l-67.5,39.5l-67.5,0 q 35.5,22.5 55,63t 19.5,84.5q0,37 -11.5,65.75t-28,46.25t-33,32.25 t-28,30.5t-11.5,33.75q0,13 8.25,25.5t 21.5,24t 29.25,24t 32,27.75t 29.25,33t 21.5,42.5t 8.25,53.25q0,80 -70,141q-76,65.5 -210,65.5q-29.5,0 -59.75-5t-61-16.75t-54.25-29t-38.5-44.5t-15-60.75q0-30.5 18.5-67.5q 16-32 48-55.25t 72.5-35.5t 77.5-18t 75-6.75q-32-41.5 -32-74.5q0-6 1-11.75 t 2.5-9.75t 4-10.75t 3.5-10.75q-20,2.5 -35,2.5q-74.5,0 -127.75-49t-53.25-123q0-70 47.5-125.25t 117-70.75q 47-10 93.5-10zM 832,192l0,64 l-128,0 l0,128 l-64,0 l0-128 l-128,0 l0-64 l 128,0 l0-128 l 64,0 l0,128 l 128,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"google-plus-sign, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 339,796.5q0,19 -5,35.5l-190,0 q-47.5,0 -85.75-28.25t-51.75-73.75q 12-22.5 34.5-38.75t 50-24.75t 53.5-12t 53.5-3.5q 16,0 24.5,1q 3,2 15.25,10.5t 16.5,11.5t 15.5,11.5t 16,12.75t 13.75,12.75t 13.25,14.75t 10.5,15.25t 8.75,17.25t 4.75,18t 2.25,20.25zM 192.5,621q-117,3.5 -192.5,42.5l0-216.5 q 51.5,59 136.5,59 q 16,0 35-2.5q-10.5,30.5 -10.5,43q0,33.5 31.5,74.5zM 279,365.5q0,50 -21.75,80.25t-70.25,30.25q-25.5,0 -48.5-13t-39-33.75t-28-46.75t-17.75-52t-5.75-49.5q0-48 25.75-82.5t 72.25-34.5q 33,0 59.5,20.5t 42,52t 23.5,65t 8,64zM 768,320l0,368 q0,59.5 -42.25,101.75t-101.75,42.25l-234,0 q 19.5-36.5 19.5-78.5q0-33 -11-61.25t-27.75-46.5t-36-35.5t-36-29.75t-27.75-27.25t-11-29.75q0-18 11.5-34t 28-30.75t 32.75-32.25t 27.75-46.5t 11.5-65.5t-13.25-72.75t-37.75-59.25q-3-3 -7-5.5t-6.25-3.75t-5-4.75t-5.25-8.5l 67.5,0 l 67.5-32l-218.5,0 q-69,0 -122.25,19.25t-91.25,66.75q0-63 40.5-106.5t 103.5-43.5l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75l0,48 l-128,0 l0-128 l-64,0 l0,128 l-128,0 l0,64 l 128,0 l0,128 l 64,0 l0-128 l 128,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"pinterest-sign, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 624,64q 59.5,0 101.75,42.25t 42.25,101.75l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-362.5,0 q 42.5-61 54-105q 4.5-17 26.5-104.5q 10.5,19.5 36.75,33.5t 56.25,14q 90.5,0 147.75-73.75t 57.25-186.75q0-42 -17.5-81.25t-48.25-69.5t-76.25-48.5t-98.5-18.25q-52,0 -97.25,14.25t-76.5,38.25 t-53.75,54.75t-33.25,64t-10.75,66.25q0,51 19.75,90t 58.25,55q 6.5,2.5 11.75,0t 7.25-9.5q 5-22 7.5-30.5q 3-11.5 -5.5-21q-25-31 -25-75q0-75 51.75-128.25t 135.25-53.25q 74.5,0 116.25,40.5t 41.75,105q0,84 -33.75,143t-86.75,59q-30,0 -48.5-21.75t-11.5-51.75q 4-17 13.25-46.25 t 14.75-51t 5.5-37.25q0-24.5 -13.25-40.75t-37.75-16.25q-30.5,0 -51.75,28.25t-21.25,69.75q0,36 12,60.5l-49,207q-12,50 -3.5,127l-91.5,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"pinterest, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5q-55.5,0 -109-16q 29.5-46.5 39-82q 4.5-17 27-105.5q 10,19.5 36.5,33.75t 57,14.25q 60.5,0 108-34.25t 73.5-94.25t 26-135q0-57 -29.75-107t-86.25-81.5t-127.5-31.5q-52.5,0 -98,14.5t-77.25,38.5t-54.5,55.25t-33.5,64.75t-10.75,67 q0,52 20,91.5t 58.5,55.5q 15,6 19-10q 1-3.5 4-15.5t 4-15q 3-11.5 -5.5-21.5q-25.5-30.5 -25.5-75.5q0-75.5 52.25-129.75t 136.75-54.25q 75.5,0 117.75,41t 42.25,106.5q0,85 -34.25,144.5t-87.75,59.5q-30.5,0 -49-21.75t-11.5-52.25q 4-17.5 13.25-46.75t 15-51.5t 5.75-37.75q0-25 -13.5-41.5t-38.5-16.5 q-31,0 -52.5,28.5t-21.5,71q0,36.5 12.5,61l-49.5,209q-8.5,35 -6.5,88.5q-103-45.5 -166.5-140.5t-63.5-211.5q0-104.5 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"truck, transfer, transport\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,704q0-26 -19-45t-45-19t-45,19t-19,45t 19,45t 45,19t 45-19t 19-45zM 128,448l 192,0 l0-128 l-79,0 q-6.5,0 -11,4.5l-97.5,97.5q-4.5,4.5 -4.5,11l0,15 zM 768,704q0-26 -19-45t-45-19t-45,19t-19,45t 19,45t 45,19t 45-19t 19-45zM 896,160l0,512 q0,7.5 -2,13.25t-6.75,9.25 t-8.25,5.75t-11.75,3t-11.25,1t-12.75,0t-11.25-0.25q0,53 -37.5,90.5t-90.5,37.5t-90.5-37.5t-37.5-90.5l-192,0 q0,53 -37.5,90.5t-90.5,37.5t-90.5-37.5t-37.5-90.5l-32,0 q-1.5,0 -11.25,0.25t-12.75,0t-11.25-1t-11.75-3t-8.25-5.75t-6.75-9.25t-2-13.25q0-13 9.5-22.5t 22.5-9.5l0-160 q0-4 -0.25-17.5t0-19 t 1.25-17.25t 3.25-18.5t 7-15.25t 11.25-15l 99-99q 9.5-9.5 25.25-16t 29.25-6.5l 80,0 l0-96 q0-13 9.5-22.5t 22.5-9.5l 512,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"magic, wand, wizard\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 595,290.5l 146.5-146.5l-53.5-53.5l-146.5,146.5zM 818.5,144q0,13.5 -9,22.5l-643,643q-9,9 -22.5,9t-22.5-9l-99-99q-9-9 -9-22.5t 9-22.5l 643-643q 9-9 22.5-9t 22.5,9l 99,99q 9,9 9,22.5zM 143,49l 49,15l-49,15l-15,49l-15-49l-49-15l 49-15l 15-49zM 318,130 l 98,30l-98,30l-30,98l-30-98l-98-30l 98-30l 30-98zM 783,369l 49,15l-49,15l-15,49l-15-49l-49-15l 49-15l 15-49zM 463,49l 49,15l-49,15l-15,49l-15-49l-49-15l 49-15l 15-49z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"table, grid\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 256,688l0-96 q0-7 -4.5-11.5t-11.5-4.5l-160,0 q-7,0 -11.5,4.5t-4.5,11.5l0,96 q0,7 4.5,11.5t 11.5,4.5l 160,0 q 7,0 11.5-4.5t 4.5-11.5zM 256,496l0-96 q0-7 -4.5-11.5t-11.5-4.5l-160,0 q-7,0 -11.5,4.5t-4.5,11.5l0,96 q0,7 4.5,11.5t 11.5,4.5l 160,0 q 7,0 11.5-4.5t 4.5-11.5zM 512,688l0-96 q0-7 -4.5-11.5t-11.5-4.5l-160,0 q-7,0 -11.5,4.5t-4.5,11.5 l0,96 q0,7 4.5,11.5t 11.5,4.5l 160,0 q 7,0 11.5-4.5t 4.5-11.5zM 256,304l0-96 q0-7 -4.5-11.5t-11.5-4.5l-160,0 q-7,0 -11.5,4.5t-4.5,11.5l0,96 q0,7 4.5,11.5t 11.5,4.5l 160,0 q 7,0 11.5-4.5t 4.5-11.5zM 512,496l0-96 q0-7 -4.5-11.5t-11.5-4.5l-160,0 q-7,0 -11.5,4.5t-4.5,11.5l0,96 q0,7 4.5,11.5t 11.5,4.5l 160,0 q 7,0 11.5-4.5t 4.5-11.5zM 768,688l0-96 q0-7 -4.5-11.5t-11.5-4.5l-160,0 q-7,0 -11.5,4.5t-4.5,11.5l0,96 q0,7 4.5,11.5t 11.5,4.5l 160,0 q 7,0 11.5-4.5t 4.5-11.5zM 512,304l0-96 q0-7 -4.5-11.5t-11.5-4.5l-160,0 q-7,0 -11.5,4.5t-4.5,11.5l0,96 q0,7 4.5,11.5t 11.5,4.5l 160,0 q 7,0 11.5-4.5t 4.5-11.5zM 768,496l0-96 q0-7 -4.5-11.5t-11.5-4.5l-160,0 q-7,0 -11.5,4.5t-4.5,11.5l0,96 q0,7 4.5,11.5t 11.5,4.5l 160,0 q 7,0 11.5-4.5t 4.5-11.5zM 768,304l0-96 q0-7 -4.5-11.5t-11.5-4.5l-160,0 q-7,0 -11.5,4.5t-4.5,11.5l0,96 q0,7 4.5,11.5t 11.5,4.5l 160,0 q 7,0 11.5-4.5t 4.5-11.5zM 832,144l0,544 q0,33 -23.5,56.5t-56.5,23.5l-672,0 q-33,0 -56.5-23.5t-23.5-56.5l0-544 q0-33 23.5-56.5t 56.5-23.5l 672,0 q 33,0 56.5,23.5t 23.5,56.5 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"underline, editor, format\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 24,111.5q-18.5-1 -22.5-2l-1.5-44q 6.5-0.5 20-0.5q 30,0 56,2q 66,3.5 83,3.5q 43,0 84-1.5q 58-2 73-2.5q 28,0 43-1l-0.5,7l 1,32l0,4.5 q-30,4.5 -62,4.5q-30,0 -39.5,12.5q-6.5,7 -6.5,66q0,6.5 0.25,16.25t 0.25,12.75l 0.5,114.5l 7,140q 3,62 25.5,101q 17.5,29.5 48,46q 44,23.5 88.5,23.5 q 52,0 95.5-14q 28-9 49.5-25.5q 24-18 32.5-32q 18-28 26.5-57q 10.5-36.5 10.5-114.5q0-39.5 -1.75-64t-5.5-61.25t-6.75-79.75l-2-29.5q-2.5-33.5 -12-44q-17-17.5 -38.5-17l-50,1l-7-1.5l 1-43l 42,0 l 102.5,5q 38,1.5 98-5l 9,1q 3,19 3,25.5q0,3.5 -2,15.5q-22.5,6 -42,6.5q-36.5,5.5 -39.5,8.5q-7.5,7.5 -7.5,20.5 q0,3.5 0.75,13.5t 0.75,15.5q 4,9.5 11,198q 3,97.5 -7.5,152q-7.5,38 -20.5,61q-19,32.5 -56,61.5q-37.5,28.5 -91,44.5q-54.5,16.5 -127.5,16.5q-83.5,0 -142-23q-59.5-23.5 -89.5-61q-30.5-38 -41.5-97.5q-8-40 -8-118.5l0-166.5 q0-94 -8.5-106.5q-12.5-18 -73.5-19.5zM 768,816l0-32 q0-7 -4.5-11.5t-11.5-4.5l-736,0 q-7,0 -11.5,4.5t-4.5,11.5l0,32 q0,7 4.5,11.5t 11.5,4.5l 736,0 q 7,0 11.5-4.5t 4.5-11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"strikethrough, editor, format\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 880,448q 7,0 11.5,4.5t 4.5,11.5l0,32 q0,7 -4.5,11.5t-11.5,4.5l-864,0 q-7,0 -11.5-4.5t-4.5-11.5l0-32 q0-7 4.5-11.5t 11.5-4.5l 864,0 zM 241.5,416q-14-17.5 -25.5-40q-24-48.5 -24-94q0-90.5 67-154.5q 66.5-63.5 196.5-63.5q 25,0 83.5,9.5q 33,6 88.5,24q 5,19 10.5,59q 7,61.5 7,91.5q0,9 -2.5,22.5l-6,1.5l-42-3 l-7-1q-25-74.5 -51.5-102.5q-44-45.5 -105-45.5q-57,0 -91,29.5q-33.5,29 -33.5,73q0,36.5 33,70t 139.5,64.5q 34.5,10 86.5,33q 29,14 47.5,26l-371.5,0 zM 495,544l 205.5,0 q 3.5,19.5 3.5,46q0,55.5 -20.5,106q-11.5,27.5 -35.5,52q-18.5,17.5 -54.5,40.5q-40,24 -76.5,33q-40,10.5 -101.5,10.5q-57,0 -97.5-11.5 l-70-20q-28.5-8 -36-14q-4-4 -4-11l0-6.5 q0-54 -1-78q-0.5-15 0-34l 1-18.5l0-22 l 51-1q 7.5,17 15,35.5t 11.25,28t 6.25,13.5q 17.5,28.5 40,47q 21.5,18 52.5,28.5q 29.5,11 66,11q 32,0 69.5-13.5q 38.5-13 61-43q 23.5-30.5 23.5-64.5q0-42 -40.5-78.5q-17-14.5 -68.5-35.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"list-ol, numbered list\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 190.5,810q0,40 -27.25,63t-67.75,23q-53,0 -86-33l 28.5-44q 24.5,22.5 53,22.5q 14.5,0 25.25-7.25t 10.75-21.25q0-32 -52.5-28l-13-28q 4-5 16.25-21.75t 21.25-27t 18.5-19.25l0-0.5 q-8,0 -24.25,0.5t-24.25,0.5l0,26.5 l-53,0 l0-76 l 166.5,0 l0,44 l-47.5,57.5q 25.5,6 40.5,24.5t 15,44zM 191.5,496.5l0,79.5 l-181,0 q-3-18 -3-27q0-25.5 11.75-46.5t 28.25-34t 33-23.75t 28.25-21.75t 11.75-22.5q0-12.5 -7.25-19.25t-19.75-6.75q-23,0 -40.5,29l-42.5-29.5q 12-25.5 35.75-39.75t 52.75-14.25q 36.5,0 61.5,20.75t 25,56.25q0,25 -17,45.75t-37.5,32.25t-37.75,25.25t-17.75,26.25l 63.5,0 l0-30 l 52.5,0 zM 896,656l0,96 q0,6.5 -4.75,11.25 t-11.25,4.75l-608,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-7 4.5-11.5t 11.5-4.5l 608,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 192,206.5l0,49.5 l-167.5,0 l0-49.5 l 53.5,0 q0-20.5 0.25-61t 0.25-60.5l0-6 l-1,0 q-4,8.5 -25,27l-35.5-38l 68-63.5l 53,0 l0,202 l 54,0 zM 896,400l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-608,0 q-6.5,0 -11.25-4.75 t-4.75-11.25l0-96 q0-7 4.5-11.5t 11.5-4.5l 608,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 896,144l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-608,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 608,0 q 6.5,0 11.25,4.75t 4.75,11.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"list-ul, bullets\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 192,704q0,40 -28,68t-68,28t-68-28t-28-68t 28-68t 68-28t 68,28t 28,68zM 192,448q0,40 -28,68t-68,28t-68-28t-28-68t 28-68t 68-28t 68,28t 28,68zM 896,656l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-608,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25 t 11.25-4.75l 608,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 192,192q0,40 -28,68t-68,28t-68-28t-28-68t 28-68t 68-28t 68,28t 28,68zM 896,400l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-608,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 608,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 896,144l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-608,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 608,0 q 6.5,0 11.25,4.75t 4.75,11.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"reorder, list, menu\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 768,672l0,64 q0,13 -9.5,22.5t-22.5,9.5l-704,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 704,0 q 13,0 22.5,9.5t 9.5,22.5zM 768,416l0,64 q0,13 -9.5,22.5t-22.5,9.5l-704,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 704,0 q 13,0 22.5,9.5t 9.5,22.5zM 768,160l0,64 q0,13 -9.5,22.5 t-22.5,9.5l-704,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 704,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"sign-blank, square\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 768,208l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"save, disk, floppy, store\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 192,768l 384,0 l0-192 l-384,0 l0,192 zM 640,768l 64,0 l0-448 q0-7 -5-19.25t-10-17.25l-140.5-140.5q-5-5 -17-10t-19.5-5l0,208 q0,20 -14,34t-34,14l-288,0 q-20,0 -34-14t-14-34l0-208 l-64,0 l0,640 l 64,0 l0-208 q0-20 14-34t 34-14l 416,0 q 20,0 34,14t 14,34l0,208 zM 448,304l0-160 q0-6.5 -4.75-11.25t-11.25-4.75 l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,160 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25zM 768,320l0,464 q0,20 -14,34t-34,14l-672,0 q-20,0 -34-14t-14-34l0-672 q0-20 14-34t 34-14l 464,0 q 20,0 44,10t 38,24l 140,140q 14,14 24,38t 10,44z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"paper-clip, attachment\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 702,692.5q0,58.5 -39.5,98t-98,39.5q-67.5,0 -117.5-50l-388.5-388q-56.5-57.5 -56.5-135.5q0-79.5 55-135t 134.5-55.5q 79,0 136.5,56.5l 302.5,303q 5,5 5,11q0,8 -15.25,23.25t-23.25,15.25q-6.5,0 -11.5-5l-303-303.5q-39.5-38.5 -90.5-38.5q-53,0 -89.5,37.5t-36.5,90.5q0,52.5 38,90.5 l 388,388.5q 31.5,31.5 72.5,31.5q 32,0 53-21t 21-53q0-41 -31.5-72.5l-290.5-290.5q-13-12 -30-12q-14.5,0 -24,9.5t-9.5,24q0,16 12.5,29.5l 205,205q 5,5 5,11q0,8 -15.5,23.5t-23.5,15.5q-6,0 -11-5l-205-205q-31.5-30.5 -31.5-74.5q0-41 28.5-69.5t 69.5-28.5q 44,0 74.5,31.5l 290.5,290.5q 50,49 50,117.5 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"copy, duplicate, paper, files\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 848,192q 20,0 34,14t 14,34l0,608 q0,20 -14,34t-34,14l-480,0 q-20,0 -34-14t-14-34l0-144 l-272,0 q-20,0 -34-14t-14-34l0-336 q0-20 10-44t 24-38l 204-204q 14-14 38-24t 44-10l 208,0 q 20,0 34,14t 14,34l0,164 q 34-20 64-20l 208,0 zM 576,298.5l-149.5,149.5l 149.5,0 l0-149.5 zM 256,106.5l-149.5,149.5 l 149.5,0 l0-149.5 zM 354,430l 158-158l0-208 l-192,0 l0,208 q0,20 -14,34t-34,14l-208,0 l0,320 l 256,0 l0-128 q0-20 10-44t 24-38zM 832,832l0-576 l-192,0 l0,208 q0,20 -14,34t-34,14l-208,0 l0,320 l 448,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"cut, scissors\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448q 13,0 22.5,9.5t 9.5,22.5t-9.5,22.5t-22.5,9.5t-22.5-9.5t-9.5-22.5t 9.5-22.5t 22.5-9.5zM 630,480l 253.5,199q 14,10 12.5,28q-2.5,17.5 -17.5,25.5l-64,32q-6.5,3.5 -14.5,3.5q-8.5,0 -15.5-4l-345-193.5l-55,33q-4,2 -6,2.5q 7,24.5 5,48.5q-3.5,38.5 -28,73.75t-66,61.75q-66,42 -138.5,42 q-68,0 -111-39q-45-42 -39.5-103.5q 3.5-38 28-73.5t 65.5-62q 66-42 139-42q 41.5,0 75.5,15.5q 4.5-6.5 11-11l 61-36.5l-61-36.5q-6.5-4.5 -11-11q-34,15.5 -75.5,15.5q-73,0 -139-42q-41-26.5 -65.5-62t-28-73.5q-2.5-29.5 7.75-56.5t 31.75-46.5q 42.5-39.5 111-39.5q 72.5,0 138.5,42q 41.5,26 66,61.5t 28,74 q 2,24 -5,48.5q 2,0.5 6,2.5l 55,33l 345-193.5q 7-4 15.5-4q 8,0 14.5,3.5l 64,32q 15,8 17.5,25.5q 1.5,18 -12.5,28zM 289.5,350q 23-21 10.5-54t-53-58.5q-46-29.5 -96-29.5q-37,0 -56.5,18q-23,21 -10.5,54t 53,58.5q 46,29.5 96,29.5q 37,0 56.5-18zM 247,722.5q 40.5-25.5 53-58.5t-10.5-54 q-19.5-18 -56.5-18q-50,0 -96,29.5q-40.5,25.5 -53,58.5t 10.5,54q 19.5,18 56.5,18q 50,0 96-29.5zM 336,416l 48,29l0-5.5 q0-18 16.5-28l 7-4l-39.5-23.5l-13,13q-1.5,1.5 -5,5.5t-6,6q-1,1 -2,1.75t-1.5,1.25zM 448,528l 48,16l 368-288l-64-32l-384,215.5l0,56.5 l-80,48l 4.5,4q 1,1 3.5,3 q 2,2 5.5,6t 5.5,6l 13,13zM 800,736l 64-32l-260-204l-88.5,69q-1,1.5 -6.5,3.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"beaker, lab, beta, experiment, test\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 763.5,724q 28,44.5 10.75,76.25t-70.25,31.75l-576,0 q-53,0 -70.25-31.75t 10.75-76.25l 251.5-396.5l0-199.5 l-32,0 q-13,0 -22.5-9.5t-9.5-22.5t 9.5-22.5t 22.5-9.5l 256,0 q 13,0 22.5,9.5t 9.5,22.5t-9.5,22.5t-22.5,9.5l-32,0 l0,199.5 zM 374,361.5l-136,214.5l 356,0 l-136-214.5l-10-15.5l0-18.5 l0-199.5 l-64,0 l0,199.5 l0,18.5 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"cloud, weather\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 960,576q0,79.5 -56.25,135.75t-135.75,56.25l-544,0 q-92.5,0 -158.25-65.75t-65.75-158.25q0-66 35.5-120.75t 93.5-81.75q-1-14 -1-21.5q0-106 75-181t 181-75q 79,0 143.25,44t 93.75,115q 35-31 83-31q 53,0 90.5,37.5t 37.5,90.5q0,37.5 -20.5,69q 64.5,15 106.5,67.25t 42,119.75z \" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"link, chain, anchor\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 728,608q0-20 -14-34l-104-104q-14-14 -34-14q-21,0 -36,16q 1.5,1.5 9.5,9.25t 10.75,10.75t 7.5,9.5t 6.5,12.75t 1.75,13.75q0,20 -14,34t-34,14q-7.5,0 -13.75-1.75t-12.75-6.5t-9.5-7.5t-10.75-10.75t-9.25-9.5q-16.5,15.5 -16.5,36.5q0,20 14,34l 103,103.5q 13.5,13.5 34,13.5q 20,0 34-13 l 73.5-73q 14-14 14-33.5zM 376.5,255.5q0-20 -14-34l-103-103.5q-14-14 -34-14q-19.5,0 -34,13.5l-73.5,73q-14,14 -14,33.5q0,20 14,34l 104,104q 13.5,13.5 34,13.5q 21,0 36-15.5q-1.5-1.5 -9.5-9.25t-10.75-10.75t-7.5-9.5t-6.5-12.75t-1.75-13.75q0-20 14-34t 34-14q 7.5,0 13.75,1.75t 12.75,6.5t 9.5,7.5 t 10.75,10.75t 9.25,9.5q 16.5-15.5 16.5-36.5zM 824,608q0,60 -42.5,101.5l-73.5,73q-41.5,41.5 -101.5,41.5q-60.5,0 -102-42.5l-103-103.5q-41.5-41.5 -41.5-101.5q0-61.5 44-104.5l-44-44q-43,44 -104,44q-60,0 -102-42l-104-104q-42-42 -42-102t 42.5-101.5l 73.5-73q 41.5-41.5 101.5-41.5q 60.5,0 102,42.5l 103,103.5 q 41.5,41.5 41.5,101.5q0,61.5 -44,104.5l 44,44q 43-44 104-44q 60,0 102,42l 104,104q 42,42 42,102z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"group, people, users, team, members, community\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 296.5,448q-81,2.5 -132.5,64l-67,0 q-41,0 -69-20.25t-28-59.25q0-176.5 62-176.5q 3,0 21.75,10.5t 48.75,21.25t 59.5,10.75q 33.5,0 66.5-11.5q-2.5,18.5 -2.5,33q0,69.5 40.5,128zM 832,766.5q0,60 -36.5,94.75t-97,34.75l-437,0 q-60.5,0 -97-34.75t-36.5-94.75q0-26.5 1.75-51.75t 7-54.5t 13.25-54.25 t 21.5-48.75t 31-40.5t 42.75-26.75t 55.75-10q 5,0 21.5,10.75t 36.5,24t 53.5,24t 67.5,10.75t 67.5-10.75t 53.5-24t 36.5-24t 21.5-10.75q 30.5,0 55.75,10t 42.75,26.75t 31,40.5t 21.5,48.75t 13.25,54.25t 7,54.5t 1.75,51.75zM 320,128q0,53 -37.5,90.5t-90.5,37.5t-90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5t 90.5,37.5 t 37.5,90.5zM 672,320q0,79.5 -56.25,135.75t-135.75,56.25t-135.75-56.25t-56.25-135.75t 56.25-135.75t 135.75-56.25t 135.75,56.25t 56.25,135.75zM 960,432.5q0,39 -28,59.25t-69,20.25l-67,0 q-51.5-61.5 -132.5-64q 40.5-58.5 40.5-128q0-14.5 -2.5-33q 33,11.5 66.5,11.5q 29.5,0 59.5-10.75t 48.75-21.25 t 21.75-10.5q 62,0 62,176.5zM 896,128q0,53 -37.5,90.5t-90.5,37.5t-90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"fullscreen, maximize, expand, enlarge\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 641.5,270.5l-177.5,177.5l 177.5,177.5l 72-72q 14.5-15.5 35-7q 19.5,8.5 19.5,29.5l0,224 q0,13 -9.5,22.5t-22.5,9.5l-224,0 q-21,0 -29.5-20q-8.5-19.5 7-34.5l 72-72l-177.5-177.5l-177.5,177.5l 72,72q 15.5,15 7,34.5q-8.5,20 -29.5,20l-224,0 q-13,0 -22.5-9.5t-9.5-22.5l0-224 q0-21 20-29.5q 19.5-8.5 34.5,7l 72,72 l 177.5-177.5l-177.5-177.5l-72,72q-9.5,9.5 -22.5,9.5q-6,0 -12-2.5q-20-8.5 -20-29.5l0-224 q0-13 9.5-22.5t 22.5-9.5l 224,0 q 21,0 29.5,20q 8.5,19.5 -7,34.5l-72,72l 177.5,177.5l 177.5-177.5l-72-72q-15.5-15 -7-34.5q 8.5-20 29.5-20l 224,0 q 13,0 22.5,9.5t 9.5,22.5l0,224 q0,21 -19.5,29.5q-6.5,2.5 -12.5,2.5q-13,0 -22.5-9.5z \" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"briefcase, suitcase, work, portfolio\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,128l 256,0 l0-64 l-256,0 l0,64 zM 896,448l0,240 q0,33 -23.5,56.5t-56.5,23.5l-736,0 q-33,0 -56.5-23.5t-23.5-56.5l0-240 l 336,0 l0,80 q0,13 9.5,22.5t 22.5,9.5l 160,0 q 13,0 22.5-9.5t 9.5-22.5l0-80 l 336,0 zM 512,448l0,64 l-128,0 l0-64 l 128,0 zM 896,208l0,192 l-896,0 l0-192 q0-33 23.5-56.5t 56.5-23.5l 176,0 l0-80 q0-20 14-34 t 34-14l 288,0 q 20,0 34,14t 14,34l0,80 l 176,0 q 33,0 56.5,23.5t 23.5,56.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"filter\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 701.5,147.5q 8.5,20.5 -7,35l-246.5,246.5l0,371 q0,21 -19.5,29.5q-6.5,2.5 -12.5,2.5q-13.5,0 -22.5-9.5l-128-128q-9.5-9.5 -9.5-22.5l0-243 l-246.5-246.5q-15.5-14.5 -7-35q 8.5-19.5 29.5-19.5l 640,0 q 21,0 29.5,19.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"tasks, bars\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,704l 320,0 l0-64 l-320,0 l0,64 zM 320,448l 512,0 l0-64 l-512,0 l0,64 zM 640,192l 192,0 l0-64 l-192,0 l0,64 zM 896,608l0,128 q0,13 -9.5,22.5t-22.5,9.5l-832,0 q-13,0 -22.5-9.5t-9.5-22.5l0-128 q0-13 9.5-22.5t 22.5-9.5l 832,0 q 13,0 22.5,9.5t 9.5,22.5zM 896,352l0,128 q0,13 -9.5,22.5t-22.5,9.5l-832,0 q-13,0 -22.5-9.5 t-9.5-22.5l0-128 q0-13 9.5-22.5t 22.5-9.5l 832,0 q 13,0 22.5,9.5t 9.5,22.5zM 896,96l0,128 q0,13 -9.5,22.5t-22.5,9.5l-832,0 q-13,0 -22.5-9.5t-9.5-22.5l0-128 q0-13 9.5-22.5t 22.5-9.5l 832,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"wrench, took, fix, preferences, settings, options\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 192,736q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 514,526l-341,341q-18.5,18.5 -45,18.5q-26,0 -45.5-18.5l-53-54q-19-18 -19-45q0-26.5 19-45.5l 340.5-340.5q 19.5,49 57.25,86.75t 86.75,57.25zM 831,308.5q0,19.5 -11.5,53q-23.5,67 -82.25,108.75 t-129.25,41.75q-92.5,0 -158.25-65.75t-65.75-158.25t 65.75-158.25t 158.25-65.75q 29,0 60.75,8.25t 53.75,23.25q 8,5.5 8,14t-8,14l-146.5,84.5l0,112 l 96.5,53.5q 2.5-1.5 39.5-24.25t 67.75-40.5t 35.25-17.75q 7.5,0 11.75,5t 4.25,12.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"globe, earth, universal, language, localization\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 384,64q 104.5,0 192.75,51.5t 139.75,139.75t 51.5,192.75t-51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5zM 521,324.5q-1,0.5 -4.75,4.75t-6.75,4.75q 1,0 2.25-2.5t 2.5-5.5t 1.75-3.5q 3-3.5 11-7.5q 7-3 26-6q 17-4 25.5,5.5 q-1-1 4.75-6.5t 7.25-6q 1.5-1 7.5-2.25t 7.5-3.75l 1-11q-6,0.5 -8.75-3.5t-3.25-10.5q0,1 -3,4q0-3.5 -2.25-4t-5.75,0.5t-4.5,0.5q-5-1.5 -7.5-3.75t-4-8.25t-2-7.5q-1-2.5 -4.75-5.25t-4.75-5.25q-0.5-1 -1.25-2.75t-1.5-3.25t-2-2.75t-2.75-1.25t-3.5,2.5t-3.75,5t-2.25,2.5q-1.5-1 -3-0.75t-2.25,0.5t-2.25,1.5t-2.5,1.75 q-1.5,1 -4.25,1.5t-4.25,1q 7.5-2.5 -0.5-5.5q-5-2 -8-1.5q 4.5-2 3.75-6t-4.25-7l 2.5,0 q-0.5-2 -4.25-4.25t-8.75-4.25t-6.5-3q-4-2.5 -17-4.75t-16.5-0.25q-2.5,3 -2.25,5.25t 2,7t 1.75,6.25q 0.5,3 -2.75,6.5t-3.25,6q0,3.5 7,7.75t 5,10.75q-1.5,4 -8,8t-8,6q-2.5,4 -0.75,9.25t 5.25,8.25 q 1,1 0.75,2t-1.75,2.25t-2.75,2t-3.25,1.75l-1.5,1q-5.5,2.5 -10.25-3t-6.75-13q-3.5-12.5 -8-15q-11.5-4 -14.5,0.5q-2.5-6.5 -20.5-13q-12.5-4.5 -29-2q 3-0.5 0-7.5q-3.5-7.5 -9.5-6q 1.5-3 2-8.75t 0.5-6.75q 1.5-6.5 6-11.5q 0.5-0.5 3.5-4.25t 4.75-6.75t 0.25-3q 17.5,2 25-5.5q 2.5-2.5 5.75-8.5t 5.25-8.5q 4.5-3 7-2.75t 7.25,2.75 t 7.25,2.5q 7,0.5 7.75-5.5t-3.75-10q 6,0.5 1.5-8.5q-2.5-3.5 -4-4.5q-6-2 -13.5,2.5q-4,2 1,4q-0.5-0.5 -4.75,5.25t-8.25,8.75t-8-2.5q-0.5-0.5 -2.75-6.75t-4.75-6.75q-4,0 -8,7.5q 1.5-4 -5.5-7.5t-12-4q 9.5-6 -4-13.5q-3.5-2 -10.25-2.5t-9.75,2q-2.5,3.5 -2.75,5.75t 2.5,4t 5.25,2.75t 5.75,2t 4.25,1.5 q 7,5 4,7q-1,0.5 -4.25,1.75t-5.75,2.25t-3,2q-1.5,2 0,7t-1,7q-2.5-2.5 -4.5-8.75t-3.5-8.25q 3.5,4.5 -12.5,3l-5-0.5q-2,0 -8,1t-10.25,0.5t-6.75-4q-2-4 0-10q 0.5-2 2-1q-2-1.5 -5.5-4.75t-5-4.25q-23,7.5 -47,20.5q 3,0.5 6-0.5q 2.5-1 6.5-3.25t 5-2.75q 17-7 21-3.5l 2.5-2.5q 7,8 10,12.5 q-3.5-2 -15-0.5q-10,3 -11,6q 3.5,6 2.5,9q-2-1.5 -5.75-5t-7.25-5.5t-7.5-2.5q-8,0 -11,0.5q-73,40 -117.5,111q 3.5,3.5 6,4q 2,0.5 2.5,4.5t 1.25,5.5t 5.75-1.5q 4.5,4 1.5,9.5q 0.5-0.5 22,13.5q 9.5,8.5 10.5,10.5q 1.5,5.5 -5,9q-0.5-1 -4.5-4.5t-4.5-2q-1.5,2.5 0.25,9.25t 5.25,6.25q-3.5,0 -4.75,8t-1.25,17.75 t-0.5,11.75l 1,0.5q-1.5,6 2.75,17.25t 10.75,9.75q-6.5,1.5 10,21.5q 3,4 4,4.5q 1.5,1 6,3.75t 7.5,5t 5,5.25q 2,2.5 5,11.25t 7,11.75q-1,3 4.75,10t 5.25,11.5q-0.5,0 -1.25,0.5t-1.25,0.5q 1.5,3.5 7.75,7t 7.75,6.5q 0.5,1.5 1,5t 1.5,5.5t 4,1q 1-10 -12-31q-7.5-12.5 -8.5-14.5q-1.5-2.5 -2.75-7.75 t-2.25-7.25q 1,0 3,0.75t 4.25,1.75t 3.75,2t 1,1.5q-1.5,3.5 1,8.75t 6,9.25t 8.5,9.5t 6,6.5q 3,3 7,9.75t0,6.75q 4.5,0 10,5t 8.5,10q 2.5,4 4,13t 2.5,12q 1,3.5 4.25,6.75t 6.25,4.75l 8,4t 6.5,3.5q 2.5,1 9.25,5.25t 10.75,5.75q 5,2 8,2t 7.25-1.25t 6.75-1.75q 7.5-1 14.5,7.5t 10.5,10.5 q 18,9.5 27.5,5.5q-1,0.5 0.25,3.75t 4,7.75t 4.5,7.25t 2.75,4.25q 2.5,3 9,7.5t 9,7.5q 3-2 3.5-4.5q-1.5,4 3.5,10t 9,5q 7-1.5 7-16q-15.5,7.5 -24.5-9q0-0.5 -1.25-2.75t-2-4.25t-1.25-4.25t0-3.75t 2.5-1.5q 4.5,0 5-1.75t-1-6.25t-2-6.5q-0.5-4 -5.5-10t-6-7.5q-2.5,4.5 -8,4t-8-4.5q0,0.5 -0.75,2.75t-0.75,3.25 q-6.5,0 -7.5-0.5q 0.5-1.5 1.25-8.75t 1.75-11.25q 0.5-2 2.75-6t 3.75-7.25t 2-6.25t-2.25-4.75t-8.75-1.25q-9.5,0.5 -13,10q-0.5,1.5 -1.5,5.25t-2.5,5.75t-4.5,3.5q-3.5,1.5 -12,1t-12-2.5q-6.5-4 -11.25-14.5t-4.75-18.5q0-5 1.25-13.25t 1.5-12.5t-2.75-12.25q 1.5-1 4.5-4.75t 5-5.25q 1-0.5 2.25-0.75t 2.25,0t 2-0.75t 1.5-3q-0.5-0.5 -2-1.5 q-1.5-1.5 -2-1.5q 3.5,1.5 14.25-0.75t 13.75,0.75q 7.5,5.5 11-1q0-0.5 -1.25-4.75t-0.25-6.75q 2.5,13.5 14.5,4.5q 1.5,1.5 7.75,2.5t 8.75,2.5q 1.5,1 3.5,2.75t 2.75,2.25t 2.5-0.25t 4.25-3.25q 5,7 6,12q 5.5,20 9.5,22q 3.5,1.5 5.5,1t 2.25-4.75t0-7t-0.75-6.25l-0.5-4l0-9 l-0.5-4q-7.5-1.5 -9.25-6t 0.75-9.25t 7.5-9.25q 0.5-0.5 4-1.75 t 7.75-3.25t 6.25-4q 10.5-9.5 7.5-17.5q 3.5,0 5.5-4.5q-0.5,0 -2.5-1.5t-3.75-2.5t-2.25-1q 4.5-2.5 1-8q 2.5-1.5 3.75-5.5t 3.75-5q 4.5,6 10.5,1q 3.5-4 0.5-8q 2.5-3.5 10.25-5.25t 9.25-4.75q 3.5,1 4-1t 0.5-6t 1.5-6q 2-2.5 7.5-4.5t 6.5-2.5l 8.5-5.5q 1.5-2 0-2q 9,1 15.5-5.5q 5-5.5 -3-10q 1.5-3 -1.5-4.75t-7.5-2.75q 1.5-0.5 5.75-0.25t 5.25-0.75 q 7.5-5 -3.5-8q-8.5-2.5 -21.5,6zM 439.5,763q 103-18 175.5-94.5q-1.5-1.5 -6.25-2.25t-6.25-1.75q-9-3.5 -12-4q 0.5-3.5 -1.25-6.5t-4-4.5t-6.25-4t-5.5-3.5q-1-1 -3.5-3t-3.5-2.75t-3.75-2.25t-4.25-1t-5,0.5l-1.5,0.5q-1.5,0.5 -2.75,1.25t-2.75,1.5t-2,1.5t0,1.25q-10.5-8.5 -18-11q-2.5-0.5 -5.5-2.75t-5.25-3.5t-5-0.75t-5.75,3.5 q-2.5,2.5 -3,7.5t-1,6.5q-3.5-2.5 0-8.75t 1-9.25q-1.5-3 -5.25-2.25t-6,2.25t-5.75,4.25t-4.5,3.25t-4.25,2.75t-4.25,3.75q-1.5,2 -3,6t-2.5,5.5q-1-2 -5.75-3.25t-4.75-2.75q 1,5 2,17.5t 2.5,19q 3.5,15.5 -6,24q-13.5,12.5 -14.5,20q-2,11 6,13q0,3.5 -4,10.25t-3.5,10.75q0,3 1,8z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"circle-arrow-down, download, arrow, bottom\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 642,448.5q0-13.5 -9-22.5l-45.5-45.5q-9-9 -22.5-9t-22.5,9l-94.5,94.5l0-251 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13,0 -22.5,9.5t-9.5,22.5l0,251 l-94.5-94.5q-9.5-9.5 -22.5-9.5t-22.5,9.5l-45.5,45.5q-9,9 -9,22.5t 9,22.5l 181,181l 45.5,45.5q 9,9 22.5,9t 22.5-9l 45.5-45.5l 181-181q 9-9 9-22.5zM 768,448 q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"circle-arrow-up, upload, arrow, top\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 642,447.5q0-13.5 -9-22.5l-181-181l-45.5-45.5q-9-9 -22.5-9t-22.5,9l-45.5,45.5l-181,181q-9,9 -9,22.5t 9,22.5l 45.5,45.5q 9,9 22.5,9t 22.5-9l 94.5-94.5l0,251 q0,13 9.5,22.5t 22.5,9.5l 64,0 q 13,0 22.5-9.5t 9.5-22.5l0-251 l 94.5,94.5q 9.5,9.5 22.5,9.5t 22.5-9.5l 45.5-45.5q 9-9 9-22.5zM 768,448 q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"circle-arrow-right, right, arrow, next\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 642.5,448q0-13.5 -9-22.5l-45.5-45.5l-181-181q-9-9 -22.5-9t-22.5,9l-45.5,45.5q-9,9 -9,22.5t 9,22.5l 94.5,94.5l-251,0 q-13,0 -22.5,9.5t-9.5,22.5l0,64 q0,13 9.5,22.5t 22.5,9.5l 251,0 l-94.5,94.5q-9.5,9.5 -9.5,22.5t 9.5,22.5l 45.5,45.5q 9,9 22.5,9t 22.5-9l 181-181l 45.5-45.5q 9-9 9-22.5zM 768,448 q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"circle-arrow-left, left, arrow, previous\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 640,480l0-64 q0-13 -9.5-22.5t-22.5-9.5l-251,0 l 94.5-94.5q 9.5-9.5 9.5-22.5t-9.5-22.5l-45.5-45.5q-9-9 -22.5-9t-22.5,9l-181,181l-45.5,45.5q-9,9 -9,22.5t 9,22.5l 45.5,45.5l 181,181q 9,9 22.5,9t 22.5-9l 45.5-45.5q 9-9 9-22.5t-9-22.5l-94.5-94.5l 251,0 q 13,0 22.5-9.5t 9.5-22.5zM 768,448 q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"hand-down, down, bottom, point\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 704,480q0-42 -16-91.5t-32-97t-16-83.5l0-16 l-320,0 l0,16 q0,17.5 -6,33.75t-18.5,31.25t-23,25t-27,24.5q-4.5,4 -7,6q-40.5,36 -72.5,56q-11,7 -34,19q-1.5,0.5 -11.25,5.25t-18,9.25t-17.75,10t-15.25,10.75t-5.75,9.25q0,35.5 15.25,57.75t 48.75,22.25q 21.5,0 42.25-7.5t 34-16.5 t 27.5-16.5t 24.25-7.5l0,288 q0,25 19.25,44.5t 44.75,19.5q 26,0 45-19t 19-45l0-165.5 q 23,17.5 51.5,17.5q 34.5,0 59.5-26.5q 16,9 34.5,9t 36.75-8.75t 26.25-23.75q 12,2 28,2q 42.5,0 63-24.25t 20.5-67.75zM 640,96q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 768,478 q0,71 -38.75,115t-108.75,43.5l-2.5-0.5q-38,30.5 -89,30.5q-11,0 -21.5-1.5q-27,15 -59.5,18.5l0,84.5 q0,52.5 -38,90.25t-90.5,37.75q-51.5,0 -89.5-38t-38-90l0-187 q-27,11 -64,11q-60.5,0 -94.25-40.75t-33.75-103.25q0-19 8.75-34.75t 24.75-27.5t 31.5-20.25t 36-18.5t 31-16.5q 27.5-17.5 64.5-50 q 1.5-1 8.5-7t 10.75-9.5t 10.75-10.25t 11.25-12t 9-11.25t 7-11.75t 2.25-10.75l0-144 q0-26.5 18.75-45.25t 45.25-18.75l 320,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,144 q0,29.5 29.5,111.5q 34.5,95 34.5,158.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"hand-up, up, top, point\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 640,800q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 704,418q0-94.5 -83.5-94.5q-13,0 -28,2.5q-8-15 -26.25-23.75t-36.75-8.75t-34.5,9q-25-26.5 -59.5-26.5q-12.5,0 -27.75,5t-23.75,12.5l0-165.5 q0-26 -19-45t-45-19q-25.5,0 -44.75,19.5t-19.25,44.5l0,288 q-10,0 -24.25-7.5t-27.5-16.5t-34-16.5t-42.25-7.5q-33.5,0 -48.75,22.25t-15.25,57.75q0,12 69.5,45q 22,12 32.5,18.5q 32,20 72.5,56q 40.5,35.5 53,50.5q 28.5,34.5 28.5,70l0,16 l 320,0 l0-16 q0-36 16-83.5t 32-96.75t 16-89.75zM 768,415.5q0,66.5 -34.5,161q-29.5,82 -29.5,111.5l0,144 q0,26.5 -18.75,45.25 t-45.25,18.75l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-144 q0-5 -2.25-10.75t-7-11.75t-9-11.25t-11.25-12t-10.75-10.25t-10.75-9.5t-8.5-7q-37-32.5 -64.5-50q-10.5-6.5 -31-16.5t-36-18.5t-31.5-20.25t-24.75-27.5t-8.75-34.75q0-62.5 33.5-103.25t 94.5-40.75q 34,0 64,11l0-187 q0-52 38-90t 89.5-38 q 52.5,0 90.5,37.75t 38,90.25l0,84.5 q 31,2 59.5,18.5q 10.5-1.5 21.5-1.5q 50.5,0 89,30q 69.5-0.5 109.75,42.5t 40.25,113.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"hand-left, point, left\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 688,704l 16,0 l0-320 l-16,0 q-17.5,0 -33.75-6t-31.25-18.5t-25-23t-24.5-27q-1-1.5 -1.75-2.25t-2-2.25t-2.25-2.5q-36-40.5 -56-72.5q-7-11 -19-34q-0.5-1.5 -5.25-11.25t-9.25-18t-10-17.75t-10.75-15.25t-9.25-5.75q-35.5,0 -57.75,15.25t-22.25,48.75q0,21.5 7.5,42.25t 16.5,34t 16.5,27.5t 7.5,24.25l-288,0 q-25,0 -44.5,19.25t-19.5,44.75q0,26 19,45t 45,19l 165.5,0 q-7.5,8.5 -12.5,23.75t-5,27.75q0,34.5 26.5,59.5q-9,16 -9,34.5t 8.75,36.75t 23.75,26.25q-2,12 -2,28q0,42.5 24.25,63t 67.75,20.5q 42,0 91.5-16t 97-32t 83.5-16zM 832,672q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5 t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 896,384l0,320 q0,26.5 -18.75,45.25t-45.25,18.75l-144,0 q-29.5,0 -111.5,29.5q-95,34.5 -158.5,34.5q-71,0 -115-38.75t-43.5-108.75l 0.5-2.5q-30.5-38 -30.5-89q0-11 1.5-21.5q-16.5-28.5 -18.5-59.5l-84.5,0 q-52.5,0 -90.25-38t-37.75-90.5q0-51.5 38-89.5t 90-38l 187,0 q-11-30 -11-64 q0-61 40.75-94.5t 103.25-33.5q 19,0 34.75,8.75t 27.5,24.75t 20.25,31.5t 18.5,36t 16.5,31q 17.5,27.5 50,64.5q 1,1.5 7,8.5t 9.5,10.75t 10.25,10.75t 12,11.25t 11.25,9t 11.75,7t 10.75,2.25l 144,0 q 26.5,0 45.25,18.75t 18.75,45.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"hand-right, point, right\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 128,672q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 832,384q0-25.5 -19.5-44.75t-44.5-19.25l-288,0 q0-10 7.5-24.25t 16.5-27.5t 16.5-34t 7.5-42.25q0-33.5 -22.25-48.75t-57.75-15.25q-12,0 -45,69.5q-12,22 -18.5,32.5q-20,32 -56,72.5q-35.5,40.5 -50.5,53 q-34.5,28.5 -70,28.5l-16,0 l0,320 l 16,0 q 36,0 83.5,16t 96.75,32t 89.75,16q 94.5,0 94.5-83.5q0-13 -2.5-28q 15-8 23.75-26.25t 8.75-36.75t-9-34.5q 26.5-25 26.5-59.5q0-12.5 -5-27.75t-12.5-23.75l 165.5,0 q 26,0 45-19t 19-45zM 896,383.5q0,52.5 -37.75,90.5t-90.25,38l-84.5,0 q-2,31 -18.5,59.5q 1.5,10.5 1.5,21.5 q0,50.5 -30,89q 0.5,69.5 -42.5,109.75t-113.5,40.25q-66.5,0 -161-34.5q-82-29.5 -111.5-29.5l-144,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-320 q0-26.5 18.75-45.25t 45.25-18.75l 144,0 q 5,0 10.75-2.25t 11.75-7t 11.25-9t 12-11.25t 10.25-10.75t 9.5-10.75t 7-8.5q 32.5-37 50-64.5q 6.5-10.5 16.5-31t 18.5-36t 20.25-31.5t 27.5-24.75 t 34.75-8.75q 62.5,0 103.25,33.5t 40.75,94.5q0,34 -11,64l 187,0 q 52,0 90,38t 38,89.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"certificate, starburst\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 688,448l 69,67.5q 15,14 10,35q-6,20.5 -26,25.5l-94,24l 26.5,93q 6,20.5 -9.5,35q-14.5,15.5 -35,9.5l-93-26.5l-24,94q-5,20 -25.5,26q-6,1 -9.5,1q-15.5,0 -25.5-11l-67.5-69l-67.5,69q-14,15 -35,10q-20.5-5.5 -25.5-26l-24-94l-93,26.5q-20.5,6 -35-9.5q-15.5-14.5 -9.5-35 l 26.5-93l-94-24q-20-5 -26-25.5q-5-21 10-35l 69-67.5l-69-67.5q-15-14 -10-35q 6-20.5 26-25.5l 94-24l-26.5-93q-6-20.5 9.5-35q 14.5-15.5 35-9.5l 93,26.5l 24-94q 5-20.5 25.5-25.5q 20.5-6 35,9.5l 67.5,69.5l 67.5-69.5q 14.5-15 35-9.5q 20.5,5 25.5,25.5l 24,94l 93-26.5q 20.5-6 35,9.5q 15.5,14.5 9.5,35 l-26.5,93l 94,24q 20,5 26,25.5q 5,21 -10,35z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"bell, alarm, notification\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 424,848q0-8 -8-8q-29.5,0 -50.75-21.25t-21.25-50.75q0-8 -8-8t-8,8q0,36.5 25.75,62.25t 62.25,25.75q 8,0 8-8zM 91.5,704l 649,0 q-82-90.5 -123.25-205.75t-41.25-242.25q0-128 -160-128t-160,128q0,127 -41.25,242.25t-123.25,205.75zM 832,704q0,26 -19,45t-45,19 l-224,0 q0,53 -37.5,90.5t-90.5,37.5t-90.5-37.5t-37.5-90.5l-224,0 q-26,0 -45-19t-19-45q 95-80.5 143.5-198.75t 48.5-249.25q0-82.5 48-131t 132-58.5q-4-9 -4-18.5q0-20 14-34t 34-14t 34,14t 14,34q0,9.5 -4,18.5q 84,10 132,58.5t 48,131q0,131 48.5,249.25t 143.5,198.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"bullhorn, megaphone, announcement, advertisement\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 832,320q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75l0,192 q0,26 -19,45t-45,19q-208.5-173.5 -406-190q-29,9.5 -45.5,33t-15.5,50.25t 20,46.25q-10,16.5 -11.5,32.75t 3,29t 16.75,27.5t 24,25t 30.75,25.25q-14.5,29 -55.75,41.5t-84.25,5.75t-66-27.75q-3.5-11.5 -14.75-43.75 t-16-47.25t-11.5-44.5t-7.5-50.5t 1.75-49.25t 11-55.25l-61,0 q-33,0 -56.5-23.5t-23.5-56.5l0-96 q0-33 23.5-56.5t 56.5-23.5l 240,0 q 217.5,0 448-192q 26,0 45,19t 19,45l0,192 zM 768,622l0-477 q-197,151 -384,171.5l0,135 q 188.5,21 384,170.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"hdd, drive, disk, storage, hard disk\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 520,608q0,16.5 -11.75,28.25t-28.25,11.75t-28.25-11.75t-11.75-28.25t 11.75-28.25t 28.25-11.75t 28.25,11.75t 11.75,28.25zM 648,608q0,16.5 -11.75,28.25t-28.25,11.75t-28.25-11.75t-11.75-28.25t 11.75-28.25t 28.25-11.75t 28.25,11.75t 11.75,28.25zM 704,688l0-160 q0-6.5 -4.75-11.25t-11.25-4.75 l-608,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,160 q0,6.5 4.75,11.25t 11.25,4.75l 608,0 q 6.5,0 11.25-4.75t 4.75-11.25zM 89,448l 590,0 l-78.5-241q-2-6.5 -8-10.75t-13-4.25l-391,0 q-7,0 -13,4.25t-8,10.75zM 768,528l0,160 q0,33 -23.5,56.5t-56.5,23.5l-608,0 q-33,0 -56.5-23.5t-23.5-56.5l0-160 q0-12.5 8-37.5 l 98.5-303q 8.5-26.5 31.5-43t 50.5-16.5l 391,0 q 27.5,0 50.5,16.5t 31.5,43l 98.5,303q 8,25 8,37.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"rss, atom, feed\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 192,672q0,40 -28,68t-68,28t-68-28t-28-68t 28-68t 68-28t 68,28t 28,68zM 448,733.5q 1,14 -8.5,24q-9,10.5 -23.5,10.5l-67.5,0 q-12.5,0 -21.5-8.25t-10-20.75q-11-114.5 -92.25-195.75t-195.75-92.25q-12.5-1 -20.75-10t-8.25-21.5l0-67.5 q0-14.5 10.5-23.5q 8.5-8.5 21.5-8.5l 2.5,0 q 80,6.5 153,40.25 t 129.5,90.75q 57,56.5 90.75,129.5t 40.25,153zM 704,734.5q 1,13.5 -9,23.5q-9,10 -23,10l-71.5,0 q-13,0 -22.25-8.75t-9.75-21.25q-6-107.5 -50.5-204.25t-115.75-168t-168-115.75t-204.25-51q-12.5-0.5 -21.25-9.75t-8.75-21.75l0-71.5 q0-14 10-23q 9-9 22-9l 1.5,0 q 131,6.5 250.75,60t 212.75,147 q 93.5,93 147,212.75t 60,250.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"credit, payment, card\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 880,64q 33,0 56.5,23.5t 23.5,56.5l0,608 q0,33 -23.5,56.5t-56.5,23.5l-800,0 q-33,0 -56.5-23.5t-23.5-56.5l0-608 q0-33 23.5-56.5t 56.5-23.5l 800,0 zM 80,128q-6.5,0 -11.25,4.75t-4.75,11.25l0,112 l 832,0 l0-112 q0-6.5 -4.75-11.25t-11.25-4.75l-800,0 zM 880,768q 6.5,0 11.25-4.75t 4.75-11.25l0-304 l-832,0 l0,304 q0,6.5 4.75,11.25t 11.25,4.75l 800,0 zM 128,704l0-64 l 128,0 l0,64 l-128,0 zM 320,704l0-64 l 192,0 l0,64 l-192,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"unlock\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 832,288l0,128 q0,13 -9.5,22.5t-22.5,9.5l-32,0 q-13,0 -22.5-9.5t-9.5-22.5l0-128 q0-53 -37.5-90.5t-90.5-37.5t-90.5,37.5t-37.5,90.5l0,96 l 48,0 q 20,0 34,14t 14,34l0,288 q0,20 -14,34t-34,14l-480,0 q-20,0 -34-14t-14-34l0-288 q0-20 14-34t 34-14l 336,0 l0-96 q0-92.5 65.75-158.25t 158.25-65.75 t 158.25,65.75t 65.75,158.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"github, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 768,448q0,125.5 -73.25,225.75t-189.25,138.75q-13.5,2.5 -19.75-3.5t-6.25-15l0-105.5 q0-48.5 -26-71q 28.5-3 51.25-9t 47-19.5t 40.5-33.25t 26.5-52.5t 10.25-75.25q0-60.5 -39.5-103q 18.5-45.5 -4-102q-14-4.5 -40.5,5.5t-46,22l-19,12q-46.5-13 -96-13t-96,13q-8-5.5 -21.25-13.5t-41.75-19.25t-43-6.75 q-22,56.5 -3.5,102q-39.5,42.5 -39.5,103q0,42.5 10.25,75t 26.25,52.5t 40.25,33.5t 47,19.5t 51.25,9q-20,18 -24.5,51.5q-10.5,5 -22.5,7.5t-28.5,2.5t-32.75-10.75t-27.75-31.25q-9.5-16 -24.25-26t-24.75-12l-10-1.5q-10.5,0 -14.5,2.25t-2.5,5.75t 4.5,7t 6.5,6l 3.5,2.5q 11,5 21.75,19t 15.75,25.5l 5,11.5 q 6.5,19 22,30.75t 33.5,15t 34.75,3.5t 27.75-1.75l 11.5-2q0,19 0.25,44.5t 0.25,27q0,9 -6.5,15t-20,3.5q-116-38.5 -189.25-138.75t-73.25-225.75q0-104.5 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"384\" height=\"896\" viewBox=\"0 0 384 896\" data-du=\"\" data-tags=\"facebook, social\" style=\"margin-left: 13px; margin-top: 8px;\"><path d=\"M 255.5,278l 128.5,0 l-15,142l-113.5,0 l0,412 l-170.5,0 l0-412 l-85,0 l0-142 l 85,0 l0-85.5 q0-91 43-137.75t 141.5-46.75l 113.5,0 l0,142 l-71,0 q-19.5,0 -31.25,3.25t-17,11.75t-6.75,17.25t-1.5,24.75l0,71 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"twitter, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 810,204q-33.5,49 -81,83.5q 0.5,7 0.5,21q0,65 -19,129.75t-57.75,124.25t-92.25,105.25t-129,73t-161.5,27.25q-135.5,0 -248-72.5q 17.5,2 39,2q 112.5,0 200.5-69q-52.5-1 -94-32.25t-57-79.75q 16.5,2.5 30.5,2.5q 21.5,0 42.5-5.5q-56-11.5 -92.75-55.75t-36.75-102.75l0-2 q 34,19 73,20.5 q-33-22 -52.5-57.5t-19.5-77q0-44 22-81.5q 60.5,74.5 147.25,119.25t 185.75,49.75q-4-19 -4-37q0-67 47.25-114.25t 114.25-47.25q 70,0 118,51q 54.5-10.5 102.5-39q-18.5,57.5 -71,89q 46.5-5 93-25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"phone-sign, contact, talk, voice\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 640,596.5q0-5.5 -1-8q-1.5-4 -19.25-14.75t-44.25-24.75l-26.5-14.5q-2.5-1.5 -9.5-6.5t-12.5-7.5t-10.5-2.5q-9,0 -23.5,16.25t-28.5,32.75t-22,16.5q-3.5,0 -8.25-1.75t-7.75-3.25t-8.5-4.75t-7-4.25q-49.5-27.5 -85.25-63.25t-63.25-85.25q-1-1.5 -4.25-7t-4.75-8.5t-3.25-7.75t-1.75-8.25q0-6.5 10.25-16.75t 22.5-19.25 t 22.5-19.75t 10.25-18.25q0-5 -2.5-10.5t-7.5-12.5t-6.5-9.5q-1.5-3 -7.5-14.25t-12.5-22.75t-13.25-23.75t-12.5-20.25t-8.25-9t-8-1q-24,0 -50.5,11q-23,10.5 -40,47.25t-17,65.25q0,8 1.25,17t 2.5,15.25t 4.5,16.5t 5,14.75t 6.25,16.5t 5.5,15q 30,82 108.25,160.25t 160.25,108.25q 3,1 15,5.5t 16.5,6.25 t 14.75,5t 16.5,4.5t 15.25,2.5t 17,1.25q 28.5,0 65.25-17t 47.25-40q 11-26.5 11-50.5zM 768,208l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"640\" height=\"896\" viewBox=\"0 0 640 896\" data-du=\"\" data-tags=\"bookmark-empty\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 576,128l-512,0 l0,621 l 211.5-203l 44.5-42.5l 44.5,42.5l 211.5,203l0-621 zM 582,64q 11.5,0 22,4.5q 16.5,6.5 26.25,20.5t 9.75,31l0,644.5 q0,17 -9.75,31t-26.25,20.5q-9.5,4 -22,4q-24,0 -41.5-16l-220.5-212l-220.5,212q-18,16.5 -41.5,16.5q-11.5,0 -22-4.5q-16.5-6.5 -26.25-20.5t-9.75-31l0-644.5 q0-17 9.75-31t 26.25-20.5q 10.5-4.5 22-4.5l 524,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"check-empty, checkbox, square\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 560,128l-416,0 q-33,0 -56.5,23.5t-23.5,56.5l0,416 q0,33 23.5,56.5t 56.5,23.5l 416,0 q 33,0 56.5-23.5t 23.5-56.5l0-416 q0-33 -23.5-56.5t-56.5-23.5zM 704,208l0,416 q0,59.5 -42.25,101.75t-101.75,42.25l-416,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-416 q0-59.5 42.25-101.75t 101.75-42.25l 416,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"phone, contact, talk, voice\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 704,620q0,13.5 -5,35.25t-10.5,34.25q-10.5,25 -61,53q-47,25.5 -93,25.5q-13.5,0 -26.25-1.75t-28.75-6.25t-23.75-7.25t-27.75-10.25t-24.5-9q-49-17.5 -87.5-41.5q-64-39.5 -132.25-107.75t-107.75-132.25q-24-38.5 -41.5-87.5q-1.5-4.5 -9-24.5t-10.25-27.75t-7.25-23.75t-6.25-28.75t-1.75-26.25 q0-46 25.5-93q 28-50.5 53-61q 12.5-5.5 34.25-10.5t 35.25-5q 7,0 10.5,1.5q 9,3 26.5,38q 5.5,9.5 15,27t 17.5,31.75t 15.5,26.75q 1.5,2 8.75,12.5t 10.75,17.75t 3.5,14.25q0,10 -14.25,25t-31,27.5t-31,26.5t-14.25,23q0,4.5 2.5,11.25t 4.25,10.25t 7,12t 5.75,9.5q 38,68.5 87,117.5t 117.5,87 q 1,0.5 9.5,5.75t 12,7t 10.25,4.25t 11.25,2.5q 9,0 23-14.25t 26.5-31t 27.5-31t 25-14.25q 7,0 14.25,3.5t 17.75,10.75t 12.5,8.75q 12.5,7.5 26.75,15.5t 31.75,17.5t 27,15q 35,17.5 38,26.5q 1.5,3.5 1.5,10.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"lemon, fruit, food\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 703.5,413q0-22 -3.5-56.75t-9-48.25q-6-15 -8.5-22t-4.5-18.25t-2-24.25q0-11.5 2.5-34.25t 2.5-33.75q0-18.5 -5-27.5q-2-0.5 -6.5-0.5q-9.5,0 -29,2.25t-29.5,2.25q-30,0 -88-12t-87.5-12q-21.5,0 -47.25,5.75t-42.5,11.75t-44.75,17q-68.5,27 -101,51.5q-48,36.5 -79.75,94.75t-44,118t-12.25,124.25 q0,20 6.25,60t 6.25,60.5q0,11.5 -5.5,33.25t-5.5,32.75t 6,18.25t 17,7.25q 12,0 36.25-5.5t 36.75-5.5q 28.5,0 84.75,7.75t 84.75,7.75q 90.5,0 142-18q 64.5-22.5 117.75-76.25t 83-122.75t 29.75-137.5zM 767.5,412q0,82.5 -35,163.75t-98,144t-140.5,90.25q-62,22 -163,22 q-28.5,0 -85-7.25t-84.5-7.25q-12,0 -36.25,7.25t-36.75,7.25q-36.5,0 -61.75-27.75t-25.25-64.25q0-12 5.5-34t 5.5-33.5q0-20 -6.25-60.25t-6.25-60.75q0-55.5 9-108.75t 27.25-104.75t 50.25-97t 75-78q 39-29.5 116-60q 97-39 158-39q 30,0 87.75,12t 86.75,12q 9.5,0 28.5-2.5t 29-2.5 q 40.5,0 59,25.25t 18.5,67.25q0,11.5 -2.5,34t-2.5,34q0,5 0.5,9.25t 1.5,8.5t 2,6.75t 3.25,8t 3.25,8.5q 8,20 12.5,59.25t 4.5,68.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"upload-alt, load, open\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 640,736q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 768,736q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 832,624l0,160 q0,20 -14,34t-34,14l-736,0 q-20,0 -34-14t-14-34l0-160 q0-20 14-34t 34-14l 213.5,0 q 10.5,28 35.25,46 t 55.25,18l 128,0 q 30.5,0 55.25-18t 35.25-46l 213.5,0 q 20,0 34,14t 14,34zM 669.5,300q-8.5,20 -29.5,20l-128,0 l0,224 q0,13 -9.5,22.5t-22.5,9.5l-128,0 q-13,0 -22.5-9.5t-9.5-22.5l0-224 l-128,0 q-21,0 -29.5-20q-8.5-19.5 7-34.5l 224-224q 9-9.5 22.5-9.5t 22.5,9.5l 224,224q 15.5,15 7,34.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"github-sign, git, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 197,676q-4,4.5 -10-1.5q-6.5-5.5 -2-9.5q 4-4.5 10,1.5q 6,5.5 2,9.5zM 176,645.5q 4.5,6 0,9.5q-4,3 -8.5-3.5t0-9q 4.5-3.5 8.5,3zM 145.5,615.5q-2.5,3.5 -6.5,1q-5-2.5 -3.5-6q 1.5-2.5 6.5-1q 5,2.5 3.5,6zM 161,632.5q-3,3.5 -8-1.5q-4.5-5.5 -1-8q 3-3 8,1.5q 4.5,5.5 1,8zM 225.5,688.5q-2,6 -9.5,3q-8.5-2 -6.5-7.5 t 9.5-3.5q 8,2.5 6.5,8zM 257,691q0,5.5 -8,5.5q-8.5,1 -8.5-5.5q0-5.5 8-5.5q 8.5-1 8.5,5.5zM 286,686q 1,5 -7,7t-9-4t 7-7.5q 8-1 9,4.5zM 768,208l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-112,0 q-8,0 -12.25-0.5t-9.75-2.5t-8-7.25t-2.5-13.75l0-119.5 q0-48.5 -26-71q 28.5-3 51.25-9t 47-19.5 t 40.5-33.25t 26.5-52.5t 10.25-75.25q0-60.5 -39.5-103q 18.5-45.5 -4-102q-14-4.5 -40.5,5.5t-46,22l-19,12q-46.5-13 -96-13t-96,13q-8-5.5 -21.25-13.5t-41.75-19.25t-43-6.75q-22,56.5 -3.5,102q-39.5,42.5 -39.5,103q0,42.5 10.25,75t 26.25,52.5t 40.25,33.5t 47,19.5t 51.25,9q-20,18 -24.5,51.5 q-10.5,5 -22.5,7.5t-28.5,2.5t-32.75-10.75t-27.75-31.25q-9.5-16 -24.25-26t-24.75-12l-10-1.5q-10.5,0 -14.5,2.25t-2.5,5.75t 4.5,7t 6.5,6l 3.5,2.5q 11,5 21.75,19t 15.75,25.5l 5,11.5q 6.5,19 22,30.75t 33.5,15t 34.75,3.5t 27.75-1.75l 11.5-2q0,19 0.25,51.5t 0.25,34q0,11 -5.5,16.75t-11,6.5t-16.5,0.75 l-112,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"trophy, cup, prize, present, win, tournament\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 229,441.5q-37-81 -37-185.5l-128,0 l0,48 q0,39 47.25,81t 117.75,56.5zM 768,304l0-48 l-128,0 q0,104.5 -37,185.5q 70.5-14.5 117.75-56.5t 47.25-81zM 832,240l0,64 q0,35.5 -20.75,71.5t-56,65t-86.5,48.75t-107.75,22.25q-21,27 -47.5,47.5q-19,17 -26.25,36.25t-7.25,44.75q0,27 15.25,45.5 t 48.75,18.5q 37.5,0 66.75,22.75t 29.25,57.25l0,32 q0,7 -4.5,11.5t-11.5,4.5l-416,0 q-7,0 -11.5-4.5t-4.5-11.5l0-32 q0-34.5 29.25-57.25t 66.75-22.75q 33.5,0 48.75-18.5t 15.25-45.5q0-25.5 -7.25-44.75t-26.25-36.25q-26.5-20.5 -47.5-47.5q-56.5-2.5 -107.75-22.25t-86.5-48.75t-56-65t-20.75-71.5l0-64 q0-20 14-34t 34-14l 144,0 l0-48 q0-33 23.5-56.5t 56.5-23.5l 288,0 q 33,0 56.5,23.5t 23.5,56.5l0,48 l 144,0 q 20,0 34,14t 14,34z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"signin, login, enter\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 592,448q0,13 -9.5,22.5l-272,272q-9.5,9.5 -22.5,9.5t-22.5-9.5t-9.5-22.5l0-144 l-224,0 q-13,0 -22.5-9.5t-9.5-22.5l0-192 q0-13 9.5-22.5t 22.5-9.5l 224,0 l0-144 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5l 272,272q 9.5,9.5 9.5,22.5zM 768,272l0,352 q0,59.5 -42.25,101.75t-101.75,42.25l-160,0 q-6.5,0 -11.25-4.75t-4.75-11.25 q0-2 -0.5-10t-0.25-13.25t 1.5-11.75t 5-9.75t 10.25-3.25l 160,0 q 33,0 56.5-23.5t 23.5-56.5l0-352 q0-33 -23.5-56.5t-56.5-23.5l-144,0 l-5.5,0 l-6.5,0 t-5.75-0.5t-5.75-1.5t-4-2.75t-3.5-4.5t-1-6.75q0-2 -0.5-10t-0.25-13.25t 1.5-11.75t 5-9.75t 10.25-3.25l 160,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"external-link, blank, out, popout\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 704,464l0,160 q0,59.5 -42.25,101.75t-101.75,42.25l-416,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-416 q0-59.5 42.25-101.75t 101.75-42.25l 352,0 q 7,0 11.5,4.5t 4.5,11.5l0,32 q0,7 -4.5,11.5t-11.5,4.5l-352,0 q-33,0 -56.5,23.5t-23.5,56.5l0,416 q0,33 23.5,56.5t 56.5,23.5l 416,0 q 33,0 56.5-23.5t 23.5-56.5l0-160 q0-7 4.5-11.5t 11.5-4.5l 32,0 q 7,0 11.5,4.5t 4.5,11.5zM 896,32l0,256 q0,13 -9.5,22.5t-22.5,9.5t-22.5-9.5l-88-88l-326,326q-5,5 -11.5,5t-11.5-5l-57-57q-5-5 -5-11.5t 5-11.5l 326-326l-88-88q-9.5-9.5 -9.5-22.5t 9.5-22.5t 22.5-9.5l 256,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"576\" height=\"896\" viewBox=\"0 0 576 896\" data-du=\"\" data-tags=\"pushpin, pin, needle\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 240,432l0-224 q0-7 -4.5-11.5t-11.5-4.5t-11.5,4.5t-4.5,11.5l0,224 q0,7 4.5,11.5t 11.5,4.5t 11.5-4.5t 4.5-11.5zM 576,608q0,13 -9.5,22.5t-22.5,9.5l-214.5,0 l-25.5,241.5q-1,6 -5.25,10.25t-10.25,4.25l-0.5,0 q-13.5,0 -16-13.5l-38-242.5l-202,0 q-13,0 -22.5-9.5t-9.5-22.5q0-61.5 39.25-110.75t 88.75-49.25l0-256 q-26,0 -45-19 t-19-45t 19-45t 45-19l 320,0 q 26,0 45,19t 19,45t-19,45t-45,19l0,256 q 49.5,0 88.75,49.25t 39.25,110.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"linkedin-sign, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 118.5,707l 115.5,0 l0-347 l-115.5,0 l0,347 zM 241.5,253q-0.5-26 -18-43t-46.5-17t-47.25,17t-18.25,43q0,25.5 17.75,42.75t 46.25,17.25l 0.5,0 q 29.5,0 47.5-17.25t 18-42.75zM 534,707l 115.5,0 l0-199 q0-77 -36.5-116.5t-96.5-39.5q-68,0 -104.5,58.5l 1,0 l0-50.5 l-115.5,0 q 1.5,33 0,347l 115.5,0 l0-194 q0-19 3.5-28q 7.5-17.5 22.5-29.75t 37-12.25 q 58,0 58,78.5l0,185.5 zM 768,208l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"signout, exit, quit, logout, log out, leave\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 320,720q0,2 0.5,10t 0.25,13.25t-1.5,11.75t-5,9.75t-10.25,3.25l-160,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-352 q0-59.5 42.25-101.75t 101.75-42.25l 160,0 q 6.5,0 11.25,4.75t 4.75,11.25q0,2 0.5,10t 0.25,13.25t-1.5,11.75t-5,9.75t-10.25,3.25l-160,0 q-33,0 -56.5,23.5t-23.5,56.5l0,352 q0,33 23.5,56.5t 56.5,23.5l 144,0 l 5.5,0 l 6.5,0 t 5.75,0.5t 5.75,1.5t 4,2.75t 3.5,4.5t 1,6.75zM 784,448q0,13 -9.5,22.5l-272,272q-9.5,9.5 -22.5,9.5t-22.5-9.5t-9.5-22.5l0-144 l-224,0 q-13,0 -22.5-9.5t-9.5-22.5l0-192 q0-13 9.5-22.5t 22.5-9.5l 224,0 l0-144 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5l 272,272q 9.5,9.5 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"heart-empty, love, like\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 832,298q0-40.5 -10.75-71.5t-27.5-49.25t-40.75-29.75t-47-15.5t-49-4t-56,12.75t-55.25,32t-43.25,36t-30,30.75q-9,11 -24.5,11t-24.5-11q-12-14 -30-30.75t-43.25-36t-55.25-32t-56-12.75t-49,4t-47,15.5t-40.75,29.75t-27.5,49.25t-10.75,71.5q0,84 93.5,177.5l 290.5,280l 290-279.5 q 94-94 94-178zM 896,298q0,110.5 -114.5,225l-311.5,300q-9,9 -22,9t-22-9l-312-301q-5-4 -13.75-13t-27.75-32.75t-34-48.75t-26.75-60.5t-11.75-69q0-110 63.5-172t 175.5-62q 31,0 63.25,10.75t 60,29t 47.75,34.25t 38,34q 18-18 38-34t 47.75-34.25t 60-29t 63.25-10.75 q 112,0 175.5,62t 63.5,172z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"448\" height=\"896\" viewBox=\"0 0 448 896\" data-du=\"\" data-tags=\"star-half, rating\" style=\"margin-left: 12px; margin-top: 8px;\"><path d=\"M 416,16l0,669.5 l-224.5,118q-11,6 -20,6q-10.5,0 -15.75-7.25t-5.25-17.75q0-3 1-10l 43-250l-182-177q-12.5-13.5 -12.5-24q0-18.5 28-23l 251-36.5l 112.5-227.5q 9.5-20.5 24.5-20.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"thumbs-down, dislike\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 128,224q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 704,512q0-17.5 -10.75-40.5t-26.75-23.5q 7.5-8.5 12.5-23.75t 5-27.75q0-34.5 -26.5-59.5q 9-16 9-34.5t-8.75-36.75t-23.75-26.25q 2.5-15 2.5-28q0-42.5 -24.5-63t-68-20.5l-64,0 q-65.5,0 -171,36.5q-2.5,1 -14.5,5.25 t-17.75,6.25t-17.5,5.75t-19,5.5t-16.5,3.25t-15.75,1.5l-16,0 l0,320 l 16,0 q 8,0 17.75,4.5t 20,13.5t 19.25,17.75t 20,22t 17.25,21.25t 15.75,20.5t 11.5,15q 27.5,34 38.5,45.5q 20.5,21.5 29.75,54.75t 15.25,62.75t 19,42.5q 48,0 64-23.5t 16-72.5q0-29.5 -24-80.25t-24-79.75l 176,0 q 25,0 44.5-19.25t 19.5-44.75z M 768,512.5q0,51.5 -38,89.5t-90,38l-88,0 q 24,49.5 24,96q0,59 -17.5,93q-17.5,34.5 -51,50.75t-75.5,16.25q-25.5,0 -45-18.5q-17-16.5 -27-41t-12.75-45.25t-8.75-42.25t-15.5-32q-24-25 -53.5-63.5q-50.5-65.5 -68.5-77.5l-137,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-320 q0-26.5 18.75-45.25t 45.25-18.75 l 144,0 q 11,0 69-20q 64-22 111.5-33t 100-11l 56,0 q 70,0 113.25,39.5t 42.75,108l0,2.5 q 30,38.5 30,89q0,11 -1.5,21.5q 19,33.5 19,72q0,18 -4.5,34.5q 24.5,37 24.5,81.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"thumbs-up, like\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 128,672q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 704,384q0-25.5 -19.5-44.75t-44.5-19.25l-176,0 q0-29 24-79.75t 24-80.25q0-49 -16-72.5t-64-23.5q-13,13 -19,42.5t-15.25,62.75t-29.75,54.75q-11,11.5 -38.5,45.5q-2,2.5 -11.5,15t-15.75,20.5t-17.25,21.25 t-20,22t-19.25,17.75t-20,13.5t-17.75,4.5l-16,0 l0,320 l 16,0 q 6.5,0 15.75,1.5t 16.5,3.25t 19,5.5t 17.5,5.75t 17.75,6.25t 14.5,5.25q 105.5,36.5 171,36.5l 60.5,0 q 96,0 96-83.5q0-13 -2.5-28q 15-8 23.75-26.25t 8.75-36.75t-9-34.5q 26.5-25 26.5-59.5q0-12.5 -5-27.75t-12.5-23.75q 16-0.5 26.75-23.5t 10.75-40.5zM 768,383.5 q0,44.5 -24.5,81.5q 4.5,16.5 4.5,34.5q0,38.5 -19,72q 1.5,10.5 1.5,21.5q0,50.5 -30,89q 0.5,69.5 -42.5,109.75t-113.5,40.25l-18,0 l-46.5,0 q-48,0 -94.75-11.25t-108.25-32.75q-58-20 -69-20l-144,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-320 q0-26.5 18.75-45.25t 45.25-18.75l 137,0 q 18-12 68.5-77.5q 29-37.5 53.5-64 q 12-12.5 17.75-42.75t 15.25-63.25t 31-54q 19.5-18.5 45-18.5q 42,0 75.5,16.25t 51,50.75t 17.5,93q0,46.5 -24,96l 88,0 q 52,0 90,38t 38,89.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"comments, chat, talk, bubbles\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 704,384q0,69.5 -47,128.5t-128.25,93.25t-176.75,34.25q-43,0 -88-8q-62,44 -139,64q-18,4.5 -43,8l-1.5,0 q-5.5,0 -10.25-4t-5.75-10.5q-0.5-1.5 -0.5-3.25t 0.25-3.25t 1-3l 1.25-2.5t 1.75-2.75t 2-2.5t 2.25-2.5t 2-2.25q 2.5-3 11.5-12.5t 13-14.75t 11.25-14.5t 12.5-19.25t 10.25-22q-62-36 -97.5-88.5t-35.5-112 q0-69.5 47-128.5t 128.25-93.25t 176.75-34.25t 176.75,34.25t 128.25,93.25t 47,128.5zM 896,512q0,60 -35.5,112.25t-97.5,88.25q 5,12 10.25,22t 12.5,19.25t 11.25,14.5t 13,14.75t 11.5,12.5q 0.5,0.5 2,2.25t 2.25,2.5t 2,2.5t 1.75,2.75l 1.25,2.5t 1,3t 0.25,3.25t-0.5,3.25q-1.5,7 -6.5,11t-11,3.5 q-25-3.5 -43-8q-77-20 -139-64q-45,8 -88,8q-135.5,0 -236-66q 29,2 44,2q 80.5,0 154.5-22.5t 132-64.5q 62.5-46 96-106t 33.5-127q0-38.5 -11.5-76q 64.5,35.5 102,89t 37.5,115z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"cogs, settings, options, preferences, gears\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 448,448q0-53 -37.5-90.5t-90.5-37.5t-90.5,37.5t-37.5,90.5t 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5zM 832,704q0-26 -19-45t-45-19t-45,19t-19,45q0,26.5 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25zM 832,192q0-26 -19-45t-45-19t-45,19t-19,45q0,26.5 18.75,45.25t 45.25,18.75 t 45.25-18.75t 18.75-45.25zM 640,402.5l0,92.5 q0,5 -3.5,9.75t-8,5.25l-77.5,12q-5.5,17.5 -16,38q 17,24 45,57.5q 3.5,5 3.5,10q0,6 -3.5,9.5q-11.5,15 -41.25,44.75t-39.25,29.75q-5.5,0 -10.5-3.5l-57.5-45q-18.5,9.5 -38.5,15.5q-5.5,54 -11.5,77.5q-3.5,12 -15,12l-93,0 q-5.5,0 -10-3.75t-5-8.75 l-11.5-76.5q-17-5 -37.5-15.5l-59,44.5q-3.5,3.5 -10,3.5q-5.5,0 -10.5-4q-72-66.5 -72-80q0-4.5 3.5-9.5q 5-7 20.5-26.5t 23.5-30.5q-11.5-22 -17.5-41l-76-12q-5-0.5 -8.5-4.75t-3.5-9.75l0-92.5 q0-5 3.5-9.75t 8-5.25l 77.5-12q 5.5-17.5 16-38q-17-24 -45-57.5q-3.5-5.5 -3.5-10q0-6 3.5-10q 11-15 41-44.5t 39.5-29.5q 5.5,0 10.5,3.5 l 57.5,45q 17-9 38.5-16q 5.5-54 11.5-77q 3.5-12 15-12l 93,0 q 5.5,0 10,3.75t 5,8.75l 11.5,76.5q 17,5 37.5,15.5l 59-44.5q 4-3.5 10-3.5q 5.5,0 10.5,4q 72,66.5 72,80q0,4.5 -3.5,9.5q-6,8 -21,27t-22.5,30q 11.5,24 17,41l 76,11.5q 5,1 8.5,5.25t 3.5,9.75zM 960,669l0,70 q0,8 -74.5,15.5 q-6,13.5 -15,26q 25.5,56.5 25.5,69q0,2 -2,3.5q-61,35.5 -62,35.5q-4,0 -23-23.5t-26-34q-10,1 -15,1t-15-1q-7,10.5 -26,34t-23,23.5q-1,0 -62-35.5q-2-1.5 -2-3.5q0-12.5 25.5-69q-9-12.5 -15-26q-74.5-7.5 -74.5-15.5l0-70 q0-8 74.5-15.5q 6.5-14.5 15-26q-25.5-56.5 -25.5-69q0-2 2-3.5q 2-1 17.5-10 t 29.5-17t 15-8q 4,0 23,23.25t 26,33.75q 10-1 15-1t 15,1q 25.5-35.5 46-56l 3-1q 2,0 62,35q 2,1.5 2,3.5q0,12.5 -25.5,69q 8.5,11.5 15,26q 74.5,7.5 74.5,15.5zM 960,157l0,70 q0,8 -74.5,15.5q-6,13.5 -15,26q 25.5,56.5 25.5,69q0,2 -2,3.5q-61,35.5 -62,35.5q-4,0 -23-23.5t-26-34 q-10,1 -15,1t-15-1q-7,10.5 -26,34t-23,23.5q-1,0 -62-35.5q-2-1.5 -2-3.5q0-12.5 25.5-69q-9-12.5 -15-26q-74.5-7.5 -74.5-15.5l0-70 q0-8 74.5-15.5q 6.5-14.5 15-26q-25.5-56.5 -25.5-69q0-2 2-3.5q 2-1 17.5-10t 29.5-17t 15-8q 4,0 23,23.25t 26,33.75q 10-1 15-1t 15,1q 25.5-35.5 46-56l 3-1q 2,0 62,35 q 2,1.5 2,3.5q0,12.5 -25.5,69q 8.5,11.5 15,26q 74.5,7.5 74.5,15.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"key, unlock, password\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,256q0-40 -28-68t-68-28t-68,28t-28,68q0,21 9.5,41.5q-20.5-9.5 -41.5-9.5q-40,0 -68,28t-28,68t 28,68t 68,28t 68-28t 28-68q0-21 -9.5-41.5q 20.5,9.5 41.5,9.5q 40,0 68-28t 28-68zM 841.5,608q0,8.5 -24.5,33t-33,24.5q-4.5,0 -14.25-8t-18.25-16.5t-19.25-20t-12.25-13 l-48,48l 110,110q 14,14 14,34q0,21 -19.5,40.5t-40.5,19.5q-20,0 -34-14l-335.5-335.5q-88,65.5 -182.5,65.5q-81.5,0 -132.75-51.25t-51.25-132.75q0-80 47.5-156.5t 124-124t 156.5-47.5q 81.5,0 132.75,51.25t 51.25,132.75q0,94.5 -65.5,182.5l 177.5,177.5l 48-48q-1.5-1.5 -13-12.25t-20-19.25t-16.5-18.25 t-8-14.25q0-8.5 24.5-33t 33-24.5q 6.5,0 11.5,5q 3,3 23,22.25t 41,39.75t 43.25,43t 36.5,39t 14.25,20.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"camera-retro, image, picture, photo\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,416q0-7 -4.5-11.5t-11.5-4.5q-33,0 -56.5,23.5t-23.5,56.5q0,7 4.5,11.5t 11.5,4.5t 11.5-4.5t 4.5-11.5q0-20 14-34t 34-14q 7,0 11.5-4.5t 4.5-11.5zM 576,481q0,53 -37.5,90.5t-90.5,37.5t-90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5zM 64,768l 768,0 l0-64 l-768,0 l0,64 zM 640,481q0-79.5 -56.25-135.75 t-135.75-56.25t-135.75,56.25t-56.25,135.75t 56.25,135.75t 135.75,56.25t 135.75-56.25t 56.25-135.75zM 128,160l 192,0 l0-64 l-192,0 l0,64 zM 64,256l 768,0 l0-59 l0-69 l-414,0 l-32,64l-322,0 l0,64 zM 896,128l0,640 q0,26.5 -18.75,45.25t-45.25,18.75l-768,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-640 q0-26.5 18.75-45.25t 45.25-18.75l 768,0 q 26.5,0 45.25,18.75t 18.75,45.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"facebook-sign, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 653.5,459l 11.5-109.5l-99,0 l0-54.5 q0-24.5 7.75-34.25t 35.75-9.75l 55,0 l0-109.5 l-87.5,0 q-76,0 -109,36t-33,106.5l0,65.5 l-65.5,0 l0,109.5 l 65.5,0 l0,317.5 l 131,0 l0-317.5 l 87.5,0 zM 768,208l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"twitter-sign, social\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 640,305q-28,12.5 -60.5,17q 34-20 46.5-58.5q-32.5,19 -67,25.5q-30.5-33 -76.5-33q-43.5,0 -74.25,30.75t-30.75,74.25q0,14.5 2.5,24q-64.5-3.5 -121-32.5t-96-77.5q-14.5,25 -14.5,53q0,57 45.5,87.5q-23.5-0.5 -50-13l0,1 q0,37.5 25,66.75t 61.5,36.25q-14.5,4 -25.5,4q-6.5,0 -19.5-2 q 10.5,31.5 37.25,52t 60.75,21q-58,45 -130.5,45q-13,0 -25-1.5q 74,47 161,47q 56,0 105-17.75t 84-47.5t 60.25-68.5t 37.5-81t 12.25-84.25q0-9 -0.5-13.5q 31.5-22.5 52.5-54.5zM 768,208l0,480 q0,59.5 -42.25,101.75t-101.75,42.25l-480,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-480 q0-59.5 42.25-101.75 t 101.75-42.25l 480,0 q 59.5,0 101.75,42.25t 42.25,101.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"bar-chart, chart, graph, plot\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 256,512l0,192 l-128,0 l0-192 l 128,0 zM 448,256l0,448 l-128,0 l0-448 l 128,0 zM 640,384l0,320 l-128,0 l0-320 l 128,0 zM 832,192l0,512 l-128,0 l0-512 l 128,0 zM 896,752l0-608 q0-6.5 -4.75-11.25t-11.25-4.75l-800,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,608 q0,6.5 4.75,11.25t 11.25,4.75l 800,0 q 6.5,0 11.25-4.75t 4.75-11.25z M 960,144l0,608 q0,33 -23.5,56.5t-56.5,23.5l-800,0 q-33,0 -56.5-23.5t-23.5-56.5l0-608 q0-33 23.5-56.5t 56.5-23.5l 800,0 q 33,0 56.5,23.5t 23.5,56.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"resize-horizontal, arrow\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 896,448q0,13 -9.5,22.5l-128,128q-9.5,9.5 -22.5,9.5t-22.5-9.5t-9.5-22.5l0-64 l-512,0 l0,64 q0,13 -9.5,22.5t-22.5,9.5t-22.5-9.5l-128-128q-9.5-9.5 -9.5-22.5t 9.5-22.5l 128-128q 9.5-9.5 22.5-9.5t 22.5,9.5t 9.5,22.5l0,64 l 512,0 l0-64 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5l 128,128q 9.5,9.5 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"384\" height=\"896\" viewBox=\"0 0 384 896\" data-du=\"\" data-tags=\"resize-vertical, arrow\" style=\"margin-left: 13px; margin-top: 8px;\"><path d=\"M 352,160q0,13 -9.5,22.5t-22.5,9.5l-64,0 l0,512 l 64,0 q 13,0 22.5,9.5t 9.5,22.5t-9.5,22.5l-128,128q-9.5,9.5 -22.5,9.5t-22.5-9.5l-128-128q-9.5-9.5 -9.5-22.5t 9.5-22.5t 22.5-9.5l 64,0 l0-512 l-64,0 q-13,0 -22.5-9.5t-9.5-22.5t 9.5-22.5l 128-128q 9.5-9.5 22.5-9.5t 22.5,9.5l 128,128q 9.5,9.5 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"folder-open, category, directory\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 939.5,476q0,15.5 -15.5,33l-168,198q-21.5,25.5 -60.25,43.25t-71.75,17.75l-544,0 q-17,0 -30.25-6.5t-13.25-21.5q0-15.5 15.5-33l 168-198q 21.5-25.5 60.25-43.25t 71.75-17.75l 544,0 q 17,0 30.25,6.5t 13.25,21.5zM 768,304l0,80 l-416,0 q-47,0 -98.5,23.75t-82,59.75l-168.5,198l-2.5,3q0-2 -0.25-6.25 t-0.25-6.25l0-480 q0-46 33-79t 79-33l 160,0 q 46,0 79,33t 33,79l0,16 l 272,0 q 46,0 79,33t 33,79z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"folder-close, category, directory\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 832,304l0,352 q0,46 -33,79t-79,33l-608,0 q-46,0 -79-33t-33-79l0-480 q0-46 33-79t 79-33l 160,0 q 46,0 79,33t 33,79l0,16 l 336,0 q 46,0 79,33t 33,79z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"shopping-cart, cart, ecommerce, store\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 320,768q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25zM 768,768q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25zM 832,224l0,256 q0,12 -8,21.25t-20.5,10.75 l-522,61q 0.5,3.5 2.25,10.75t 3,13.25t 1.25,11q0,8 -12,32l 460,0 q 13,0 22.5,9.5t 9.5,22.5t-9.5,22.5t-22.5,9.5l-512,0 q-13,0 -22.5-9.5t-9.5-22.5q0-7 5.5-19.75t 14.75-29.75t 10.25-19l-88.5-411.5l-102,0 q-13,0 -22.5-9.5t-9.5-22.5t 9.5-22.5t 22.5-9.5l 128,0 q 8,0 14.25,3.25t 10,7.75t 6.5,12.25t 3.75,13.25 t 2.75,14.75t 2.25,12.75l 600.5,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"retweet, loop, arrows\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 640,752q0,6.5 -4.75,11.25t-11.25,4.75l-480,0 q-4,0 -6.75-1t-4.5-3.5t-2.75-4t-1.5-5.75t-0.5-5.75l0-6.5 l0-5.5 l0-80 l0-208 l-96,0 q-13,0 -22.5-9.5t-9.5-22.5q0-12 7.5-20.5l 160-192q 9.5-11 24.5-11t 24.5,11l 160,192q 7.5,8.5 7.5,20.5q0,13 -9.5,22.5t-22.5,9.5l-96,0 l0,192 l 288,0 q 8,0 12.5,5.5l 80,96q 3.5,5.5 3.5,10.5 zM 960,544q0,12 -7.5,20.5l-160,192q-10,11.5 -24.5,11.5t-24.5-11.5l-160-192q-7.5-8.5 -7.5-20.5q0-13 9.5-22.5t 22.5-9.5l 96,0 l0-192 l-288,0 q-8,0 -12.5-6l-80-96q-3.5-4.5 -3.5-10q0-6.5 4.75-11.25t 11.25-4.75l 480,0 q 4,0 6.75,1t 4.5,3.5t 2.75,4t 1.5,5.75t 0.5,5.75l0,6.5 l0,5.5 l0,80 l0,208 l 96,0 q 13,0 22.5,9.5t 9.5,22.5z \" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"chevron-down, download, bottom\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 805.5,352q0,26.5 -18.5,45l-325.5,325.5q-19,19 -45.5,19q-27,0 -45-19l-325.5-325.5q-19-18 -19-45q0-26.5 19-45.5l 37-37.5q 19.5-18.5 45.5-18.5q 26.5,0 45,18.5l 243,243l 243-243q 18.5-18.5 45-18.5q 26,0 45.5,18.5l 37.5,37.5q 18.5,19.5 18.5,45.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"chevron-up, upload, top\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 805.5,608q0,26.5 -18.5,45l-37.5,37.5q-19,19 -45.5,19q-27,0 -45-19l-243-242.5l-243,242.5q-18,19 -45,19t-45-19l-37.5-37.5q-19-18 -19-45q0-26.5 19-45.5l 325.5-325.5q 18.5-18.5 45-18.5q 26,0 45.5,18.5l 325,325.5q 19,19 19,45.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"magnet\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 768,416l0,64 q0,100.5 -49.25,181t-137,125.75t-197.75,45.25t-197.75-45.25t-137-125.75t-49.25-181l0-64 q0-13 9.5-22.5t 22.5-9.5l 192,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,26 11.75,45t 26.75,28.5t 35.5,15t 32,6.5t 22,1t 22-1t 32-6.5t 35.5-15t 26.75-28.5t 11.75-45l0-64 q0-13 9.5-22.5t 22.5-9.5l 192,0 q 13,0 22.5,9.5t 9.5,22.5zM 256,96l0,192 q0,13 -9.5,22.5t-22.5,9.5l-192,0 q-13,0 -22.5-9.5t-9.5-22.5l0-192 q0-13 9.5-22.5t 22.5-9.5l 192,0 q 13,0 22.5,9.5t 9.5,22.5zM 768,96l0,192 q0,13 -9.5,22.5t-22.5,9.5l-192,0 q-13,0 -22.5-9.5t-9.5-22.5l0-192 q0-13 9.5-22.5t 22.5-9.5l 192,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"comment, bubble, chat, talk\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 896,448q0,87 -60,160.75t-163,116.5t-225,42.75q-35,0 -72.5-4q-99,87.5 -230,121q-24.5,7 -57,11q-8.5,1 -15.25-4.5t-8.75-14.5l0-0.5 q-1.5-2 -0.25-6t 1-5t 2.25-4.75l 3-4.5t 3.5-4.25t 4-4.5q 3.5-4 15.5-17.25t 17.25-19t 15.5-19.75t 16.25-25.5t 13.5-29.5t 13-38q-78.5-44.5 -123.75-110t-45.25-140.5 q0-65 35.5-124.25t 95.5-102.25t 143-68.25t 174-25.25q 122,0 225,42.75t 163,116.5t 60,160.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"random, shuffle, order, media, control\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 333,240.5q-30,46 -68.5,136.5q-11-22.5 -18.5-36.25t-20.25-31.75t-25.5-28.25t-31.5-17.5t-40.75-7.25l-112,0 q-7,0 -11.5-4.5t-4.5-11.5l0-96 q0-7 4.5-11.5t 11.5-4.5l 112,0 q 125,0 205,112.5zM 896,640q0,7 -4.5,11.5l-160,160q-4.5,4.5 -11.5,4.5q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q-16,0 -42.5,0.25t-40.5,0.5t-36.5-0.5 t-35.5-2.5t-32-5.25t-31.5-9.25t-29-14.25t-29.5-20t-27.5-26.75t-28-34.75q 29.5-46.5 68-136.5q 11,22.5 18.5,36.25t 20.25,31.75t 25.5,28.25t 31.5,17.5t 40.75,7.25l 128,0 l0-96 q0-7 4.5-11.5t 11.5-4.5q 6,0 12,5l 159.5,159.5q 4.5,4.5 4.5,11.5zM 896,192q0,7 -4.5,11.5l-160,160q-4.5,4.5 -11.5,4.5q-6.5,0 -11.25-4.75t-4.75-11.25 l0-96 l-128,0 q-24,0 -43.5,7.5t-34.5,22.5t-25.5,30.75t-22.5,38.75q-16,31 -39,85.5q-14.5,33 -24.75,55.5t-27,52.5t-32,50t-37,41.5t-45,34.25t-53.25,21t-64,8.25l-112,0 q-7,0 -11.5-4.5t-4.5-11.5l0-96 q0-7 4.5-11.5t 11.5-4.5l 112,0 q 24,0 43.5-7.5t 34.5-22.5t 25.5-30.75t 22.5-38.75q 16-31 39-85.5q 14.5-33 24.75-55.5 t 27-52.5t 32-50t 37-41.5t 45-34.25t 53.25-21t 64-8.25l 128,0 l0-96 q0-7 4.5-11.5t 11.5-4.5q 6,0 12,5l 159.5,159.5q 4.5,4.5 4.5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"calendar, date, schedule\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 64,832l 144,0 l0-144 l-144,0 l0,144 zM 240,832l 160,0 l0-144 l-160,0 l0,144 zM 64,656l 144,0 l0-160 l-144,0 l0,160 zM 240,656l 160,0 l0-160 l-160,0 l0,160 zM 64,464l 144,0 l0-144 l-144,0 l0,144 zM 432,832l 160,0 l0-144 l-160,0 l0,144 zM 240,464l 160,0 l0-144 l-160,0 l0,144 zM 624,832l 144,0 l0-144 l-144,0 l0,144 zM 432,656l 160,0 l0-160 l-160,0 l0,160 z M 256,224l0-144 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,144 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25zM 624,656l 144,0 l0-160 l-144,0 l0,160 zM 432,464l 160,0 l0-144 l-160,0 l0,144 zM 624,464l 144,0 l0-144 l-144,0 l0,144 zM 640,224l0-144 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,144 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25zM 832,192l0,640 q0,26 -19,45t-45,19l-704,0 q-26,0 -45-19t-19-45l0-640 q0-26 19-45t 45-19l 64,0 l0-48 q0-33 23.5-56.5t 56.5-23.5l 32,0 q 33,0 56.5,23.5t 23.5,56.5l0,48 l 192,0 l0-48 q0-33 23.5-56.5t 56.5-23.5 l 32,0 q 33,0 56.5,23.5t 23.5,56.5l0,48 l 64,0 q 26,0 45,19t 19,45z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"plane, airplane, aircraft, flight, vacation, travel\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 688,80q 22,26 6,74t-54,86l-80.5,80.5l 80,348q 2.5,9.5 -6,16.5l-64,48q-3.5,3 -9.5,3q-2,0 -3.5-0.5q-7.5-1.5 -10.5-8l-139.5-254l-129.5,129.5l 26.5,97q 2.5,8.5 -4,15.5l-48,48q-4.5,4.5 -11.5,4.5l-1,0 q-7.5-1 -12-6.5l-94.5-126l-126-94.5q-5.5-3.5 -6.5-11.5q-0.5-6.5 4.5-12.5l 48-48.5q 4.5-4.5 11.5-4.5 q 3,0 4,0.5l 97,26.5l 129.5-129.5l-254-139.5q-7-4 -8.5-12q-1-8 4.5-13.5l 64-64q 7-6.5 15-4l 332.5,79.5l 80-80q 38-38 86-54t 74,6z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"warning-sign, sign\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,687.5l0-95 q0-7 -4.75-11.75t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.75l0,95 q0,7 4.75,11.75t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.75zM 511,500.5l 9-229.5q0-6 -5-9.5q-6.5-5.5 -12-5.5l-110,0 q-5.5,0 -12,5.5q-5,3.5 -5,10.5l 8.5,228.5q0,5 5,8.25t 12,3.25l 92.5,0 q 7,0 11.75-3.25t 5.25-8.25zM 504,33.5l 384,704q 17.5,31.5 -1,63q-8.5,14.5 -23.25,23t-31.75,8.5l-768,0 q-17,0 -31.75-8.5t-23.25-23q-18.5-31.5 -1-63l 384-704q 8.5-15.5 23.5-24.5t 32.5-9t 32.5,9t 23.5,24.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"eye-close, blocked, private\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 277.5,667.5l 39-70.5q-43.5-31.5 -68-79.5t-24.5-101.5q0-60.5 30.5-112.5q-114.5,58.5 -190.5,176.5q 83.5,129 213.5,187.5zM 472,288q0-10 -7-17t-17-7q-62.5,0 -107.25,44.75t-44.75,107.25q0,10 7,17t 17,7t 17-7t 7-17q0-43 30.5-73.5t 73.5-30.5q 10,0 17-7t 7-17zM 653.5,192.5q0,3.5 -0.5,4.5 q-52.5,94 -157.5,283t-158,283.5l-24.5,44.5q-5,8 -14,8q-6,0 -67-35q-8-5 -8-14q0-6 22-43.5q-71.5-32.5 -131.75-86.5t-104.25-122.5q-10-15.5 -10-34.5t 10-34.5q 76.5-117.5 190-185.5t 248-68q 44.5,0 90,8.5l 27-48.5q 5-8 14-8q 2.5,0 9,3t 15.5,7.75t 16.5,9.25t 15.75,9.25t 9.75,5.75 q 8,5 8,13.5zM 672,416q0,69.5 -39.5,126.75t-104.5,82.25l 140-251q 4,22.5 4,42zM 896,480q0,17.5 -10,34.5q-19.5,32 -54.5,72.5q-75,86 -173.75,133.5t-209.75,47.5l 37-66q 106-9 196.25-68.5t 150.75-153.5q-57.5-89.5 -141-147l 31.5-56q 47.5,32 91.25,76.5t 72.25,92q 10,17 10,34.5z \" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"eye-open, view, visit\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 832,480q-76-118 -190.5-176.5q 30.5,52 30.5,112.5q0,92.5 -65.75,158.25t-158.25,65.75t-158.25-65.75t-65.75-158.25q0-60.5 30.5-112.5q-114.5,58.5 -190.5,176.5q 66.5,102.5 166.75,163.25t 217.25,60.75t 217.25-60.75t 166.75-163.25zM 472,288q0-10 -7-17t-17-7q-62.5,0 -107.25,44.75 t-44.75,107.25q0,10 7,17t 17,7t 17-7t 7-17q0-43 30.5-73.5t 73.5-30.5q 10,0 17-7t 7-17zM 896,480q0,17 -10,34.5q-70,115 -188.25,184.25t-249.75,69.25t-249.75-69.5t-188.25-184q-10-17.5 -10-34.5t 10-34.5q 70-114.5 188.25-184t 249.75-69.5t 249.75,69.5t 188.25,184q 10,17.5 10,34.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"fire, hot\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 704,848l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-672,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 672,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 576,320q0,39 -12.25,72t-32,56.25t-43.75,44t-48,38.75t-43.75,36t-32,40.75t-12.25,48.25q0,48 33.5,112l-2-0.5l 0.5,0.5 q-45-20.5 -80-41.5t-69.25-50t-56.75-61.25t-36.25-75.25t-13.75-92q0-39 12.25-72t 32-56.25t 43.75-44t 48-38.75t 43.75-36t 32-40.75t 12.25-48.25q0-47 -33-112l 1.5,0.5l-0.5-0.5q 45,20.5 80,41.5t 69.25,50t 56.75,61.25t 36.25,75.25t 13.75,92z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"leaf, nature, green\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 640,352q0-13 -9.5-22.5t-22.5-9.5q-86,0 -159,24.75t-129.75,67t-117.75,109.75q-9.5,10.5 -9.5,22.5q0,13 9.5,22.5t 22.5,9.5q 12,0 22.5-9.5q 13.5-12 37-35.5t 33.5-33q 68.5-62 134.25-88t 156.75-26q 13,0 22.5-9.5t 9.5-22.5zM 896,253q0,47.5 -10,96.5q-23,112 -92.25,191.5t-178.75,134 q-107,54 -219,54q-74,0 -143-23.5q-7.5-2.5 -44-21t-48-18.5q-8,0 -19.75,16t-22.5,35t-26.25,35t-30,16q-15,0 -25.5-5.5t-15.5-12t-13.5-21q-1-2 -3-5.5t-2.75-5t-1.5-4.75t-0.75-6.75q0-17.5 15.5-36.75t 34-32.75t 34-28t 15.5-24q0-2 -7-19t-8-22q-4.5-25.5 -4.5-52q0-57.5 21.75-110t 59.5-92.25 t 85.25-69.5t 102-47.75q 27.5-9 72.5-12.75t 89.75-4.5t 89.25-3t 81.75-12t 56.75-28.25l 14.75-14.75t 14.75-14t 13.5-10t 18.25-8t 21.75-2.25q 19.5,0 35.25,23t 23.75,56t 12,62t 4,48z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"gift, present, birthday, holiday\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 464,678l0-28 l0-234 l0-96 l-160,0 l0,96 l0,234 l0,28 q0,12.5 9,19.25t 23,6.75l 96,0 q 14,0 23-6.75t 9-19.25zM 236,256l 97.5,0 l-63-80.5q-13-15.5 -34.5-15.5q-20,0 -34,14t-14,34t 14,34t 34,14zM 580,208q0-20 -14-34t-34-14q-21.5,0 -34.5,15.5l-62.5,80.5l 97,0 q 20,0 34-14t 14-34zM 768,336l0,160 q0,7 -4.5,11.5t-11.5,4.5l-48,0 l0,208 q0,20 -14,34t-34,14l-544,0 q-20,0 -34-14t-14-34l0-208 l-48,0 q-7,0 -11.5-4.5t-4.5-11.5l0-160 q0-7 4.5-11.5t 11.5-4.5l 220,0 q-46.5,0 -79.25-32.75t-32.75-79.25t 32.75-79.25t 79.25-32.75q 53.5,0 84,38.5l 64,82.5l 64-82.5q 30.5-38.5 84-38.5q 46.5,0 79.25,32.75t 32.75,79.25 t-32.75,79.25t-79.25,32.75l 220,0 q 7,0 11.5,4.5t 4.5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"exclamation-sign, sign, notification, attention, warning\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 384,64q 104.5,0 192.75,51.5t 139.75,139.75t 51.5,192.75t-51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5zM 448,687.5l0-95 q0-7 -4.5-11.75t-11-4.75l-96,0 q-6.5,0 -11.5,5t-5,11.5l0,95 q0,6.5 5,11.5t 11.5,5l 96,0 q 6.5,0 11-4.75t 4.5-11.75zM 447,515.5l 9-310.5q0-6 -5-9q-5-4 -12-4l-110,0 q-7,0 -12,4q-5,3 -5,9l 8.5,310.5q0,5 5,8.75t 12,3.75l 92.5,0 q 7,0 11.75-3.75t 5.25-8.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"asterisk, star\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 741,525q 23,13 29.75,38.75t-6.25,48.75l-32,55q-13,23 -38.75,29.75t-48.75-6.25l-133-76.5l0,153.5 q0,26 -19,45t-45,19l-64,0 q-26,0 -45-19t-19-45l0-153.5 l-133,76.5q-23,13 -48.75,6.25t-38.75-29.75l-32-55q-13-23 -6.25-48.75t 29.75-38.75l 133-77l-133-77 q-23-13 -29.75-38.75t 6.25-48.75l 32-55q 13-23 38.75-29.75t 48.75,6.25l 133,76.5l0-153.5 q0-26 19-45t 45-19l 64,0 q 26,0 45,19t 19,45l0,153.5 l 133-76.5q 23-13 48.75-6.25t 38.75,29.75l 32,55q 13,23 6.25,48.75t-29.75,38.75l-133,77z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"minus, remove, delete, subtract\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 704,368l0,96 q0,20 -14,34t-34,14l-608,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 608,0 q 20,0 34,14t 14,34z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"plus, add, sum\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 704,368l0,96 q0,20 -14,34t-34,14l-208,0 l0,208 q0,20 -14,34t-34,14l-96,0 q-20,0 -34-14t-14-34l0-208 l-208,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 208,0 l0-208 q0-20 14-34t 34-14l 96,0 q 20,0 34,14t 14,34l0,208 l 208,0 q 20,0 34,14t 14,34z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"resize-small, contract, collapse\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 384,480l0,224 q0,13 -9.5,22.5t-22.5,9.5t-22.5-9.5l-72-72l-166,166q-5,5 -11.5,5t-11.5-5l-57-57q-5-5 -5-11.5t 5-11.5l 166-166l-72-72q-9.5-9.5 -9.5-22.5t 9.5-22.5t 22.5-9.5l 224,0 q 13,0 22.5,9.5t 9.5,22.5zM 761.5,144q0,6.5 -5,11.5l-166,166l 72,72q 9.5,9.5 9.5,22.5t-9.5,22.5 t-22.5,9.5l-224,0 q-13,0 -22.5-9.5t-9.5-22.5l0-224 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5l 72,72l 166-166q 5-5 11.5-5t 11.5,5l 57,57q 5,5 5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"resize-full, expand, enlarge\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 377.5,528q0,6.5 -5,11.5l-166,166l 72,72q 9.5,9.5 9.5,22.5t-9.5,22.5t-22.5,9.5l-224,0 q-13,0 -22.5-9.5t-9.5-22.5l0-224 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5l 72,72l 166-166q 5-5 11.5-5t 11.5,5l 57,57q 5,5 5,11.5zM 768,96l0,224 q0,13 -9.5,22.5t-22.5,9.5t-22.5-9.5l-72-72l-166,166 q-5,5 -11.5,5t-11.5-5l-57-57q-5-5 -5-11.5t 5-11.5l 166-166l-72-72q-9.5-9.5 -9.5-22.5t 9.5-22.5t 22.5-9.5l 224,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"share-alt, arrow, forward\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 896,320q0,13 -9.5,22.5l-256,256q-9.5,9.5 -22.5,9.5t-22.5-9.5t-9.5-22.5l0-128 l-112,0 q-49,0 -87.75,3t-77,10.75t-66.5,21.25t-52.75,34.75t-40,50.5t-24.25,69.25t-8.75,90.5q0,27.5 2.5,61.5q0,3 1.25,11.75t 1.25,13.25q0,7.5 -4.25,12.5t-11.75,5q-8,0 -14-8.5q-3.5-4.5 -6.5-11 t-6.75-15t-5.25-12q-63.5-142.5 -63.5-225.5q0-99.5 26.5-166.5q 81-201.5 437.5-201.5l 112,0 l0-128 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5l 256,256q 9.5,9.5 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 805.5,416q0,26.5 -18.5,45l-325.5,326q-19.5,18.5 -45.5,18.5q-26.5,0 -45-18.5l-325.5-326q-19-18 -19-45q0-26.5 19-45.5l 37-37.5q 19.5-18.5 45.5-18.5q 26.5,0 45,18.5l 147,147l0-352 q0-26 19-45t 45-19l 64,0 q 26,0 45,19t 19,45l0,352 l 147-147q 18.5-18.5 45-18.5q 26,0 45.5,18.5l 37.5,37.5q 18.5,19.5 18.5,45.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 805.5,485.5q0,25.5 -18.5,45l-37.5,37.5q-19,19 -45.5,19q-27,0 -45-19l-147-146.5l0,352 q0,26 -18.75,42.25t-45.25,16.25l-64,0 q-26.5,0 -45.25-16.25t-18.75-42.25l0-352 l-147,146.5q-18,19 -45,19t-45-19l-37.5-37.5q-19-19 -19-45q0-26.5 19-45.5l 325.5-325.5q 17.5-18.5 45-18.5q 27,0 45.5,18.5l 325.5,325.5 q 18.5,19.5 18.5,45.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"arrow-right, next, right\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 736,480q0,27 -18.5,45.5l-325.5,325.5q-19.5,18.5 -45.5,18.5q-25.5,0 -45-18.5l-37.5-37.5q-19-19 -19-45.5t 19-45.5l 146.5-146.5l-352,0 q-26,0 -42.25-18.75t-16.25-45.25l0-64 q0-26.5 16.25-45.25t 42.25-18.75l 352,0 l-146.5-147q-19-18 -19-45t 19-45l 37.5-37.5q 19-19 45-19q 26.5,0 45.5,19l 325.5,325.5q 18.5,17.5 18.5,45z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"arrow-left, previous, left\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 768,448l0,64 q0,26.5 -16.25,45.25t-42.25,18.75l-352,0 l 146.5,147q 19,18 19,45t-19,45l-37.5,38q-18.5,18.5 -45,18.5q-26,0 -45.5-18.5l-325.5-326q-18.5-18.5 -18.5-45q0-26 18.5-45.5l 325.5-325q 19-19 45.5-19q 26,0 45,19l 37.5,37q 19,19 19,45.5t-19,45.5l-146.5,146.5l 352,0 q 26,0 42.25,18.75 t 16.25,45.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"ban-circle, block, forbidden\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 656,446.5q0-80.5 -43.5-147.5l-377,376.5q 68.5,44.5 148.5,44.5q 55.5,0 105.75-21.75t 86.75-58.25t 58-87.25t 21.5-106.25zM 156.5,596l 377.5-377q-67.5-45.5 -150-45.5q-74,0 -136.5,36.5t-99,99.5t-36.5,137q0,81 44.5,149.5zM 768,446.5q0,78.5 -30.5,150t-81.75,123t-122.5,82t-149.25,30.5t-149.25-30.5 t-122.5-82t-81.75-123t-30.5-150t 30.5-149.75t 81.75-122.75t 122.5-82t 149.25-30.5t 149.25,30.5t 122.5,82t 81.75,122.75t 30.5,149.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"ok-circle, correct, tick, checkmark\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 585.5,406.5l-211,211q-9.5,9.5 -22.5,9.5t-22.5-9.5l-147-147q-9.5-9.5 -9.5-22.5t 9.5-22.5l 51-51q 9.5-9.5 22.5-9.5t 22.5,9.5l 73.5,73.5l 137.5-137.5q 9.5-9.5 22.5-9.5t 22.5,9.5l 51,51q 9.5,9.5 9.5,22.5t-9.5,22.5zM 656,448q0-74 -36.5-136.5t-99-99t-136.5-36.5t-136.5,36.5t-99,99t-36.5,136.5t 36.5,136.5t 99,99 t 136.5,36.5t 136.5-36.5t 99-99t 36.5-136.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"remove-circle, cancel, close, remove, delete\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 548.5,539.5l-73,73q-5,5 -11.5,5t-11.5-5l-68.5-68.5l-68.5,68.5q-5,5 -11.5,5t-11.5-5l-73-73q-5-5 -5-11.5t 5-11.5l 68.5-68.5l-68.5-68.5q-5-5 -5-11.5t 5-11.5l 73-73q 5-5 11.5-5t 11.5,5l 68.5,68.5l 68.5-68.5q 5-5 11.5-5t 11.5,5l 73,73q 5,5 5,11.5t-5,11.5 l-68.5,68.5l 68.5,68.5q 5,5 5,11.5t-5,11.5zM 656,448q0-74 -36.5-136.5t-99-99t-136.5-36.5t-136.5,36.5t-99,99t-36.5,136.5t 36.5,136.5t 99,99t 136.5,36.5t 136.5-36.5t 99-99t 36.5-136.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75 t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"screenshot, target, goal, spot\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 598.5,512l-54.5,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 54.5,0 q-16-54 -56.25-94.25t-94.25-56.25l0,54.5 q0,13 -9.5,22.5t-22.5,9.5l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-54.5 q-54,16 -94.25,56.25t-56.25,94.25l 54.5,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13 -9.5,22.5t-22.5,9.5l-54.5,0 q 16,54 56.25,94.25t 94.25,56.25l0-54.5 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13,0 22.5,9.5t 9.5,22.5l0,54.5 q 54-16 94.25-56.25t 56.25-94.25zM 768,416l0,64 q0,13 -9.5,22.5t-22.5,9.5l-71.5,0 q-18.5,80.5 -77.25,139.25t-139.25,77.25l0,71.5 q0,13 -9.5,22.5t-22.5,9.5l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-71.5 q-80.5-18.5 -139.25-77.25t-77.25-139.25l-71.5,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 71.5,0 q 18.5-80.5 77.25-139.25t 139.25-77.25l0-71.5 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13,0 22.5,9.5t 9.5,22.5l0,71.5 q 80.5,18.5 139.25,77.25t 77.25,139.25l 71.5,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"info-sign, information, sign\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 512,688l0-80 q0-7 -4.5-11.5t-11.5-4.5l-48,0 l0-256 q0-7 -4.5-11.5t-11.5-4.5l-160,0 q-7,0 -11.5,4.5t-4.5,11.5l0,80 q0,7 4.5,11.5t 11.5,4.5l 48,0 l0,160 l-48,0 q-7,0 -11.5,4.5t-4.5,11.5l0,80 q0,7 4.5,11.5t 11.5,4.5l 224,0 q 7,0 11.5-4.5t 4.5-11.5zM 448,240l0-80 q0-7 -4.5-11.5t-11.5-4.5l-96,0 q-7,0 -11.5,4.5t-4.5,11.5l0,80 q0,7 4.5,11.5 t 11.5,4.5l 96,0 q 7,0 11.5-4.5t 4.5-11.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"question-sign, help, support, sign\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 448,688l0-96 q0-7 -4.5-11.5t-11.5-4.5l-96,0 q-7,0 -11.5,4.5t-4.5,11.5l0,96 q0,7 4.5,11.5t 11.5,4.5l 96,0 q 7,0 11.5-4.5t 4.5-11.5zM 576,352q0-44 -27.75-81.5t-69.25-58t-85-20.5q-121.5,0 -185.5,106.5q-7.5,12 4,21l 66,50q 3.5,3 9.5,3q 8,0 12.5-6q 26.5-34 43-46q 17-12 43-12q 24,0 42.75,13t 18.75,29.5 q0,19 -10,30.5t-34,22.5q-31.5,14 -57.75,43.25t-26.25,62.75l0,18 q0,7 4.5,11.5t 11.5,4.5l 96,0 q 7,0 11.5-4.5t 4.5-11.5q0-9.5 10.75-24.75t 27.25-24.75q 16-9 24.5-14.25t 23-17.5t 22.25-24t 14-30.25t 6.25-40.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75 t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"ok-sign, checkmark, tick, correct, sign\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 642,367q0-14 -9-23l-45.5-45q-9.5-9.5 -22.5-9.5t-22.5,9.5l-204,203.5l-113-113q-9.5-9.5 -22.5-9.5t-22.5,9.5l-45.5,45q-9,9 -9,23q0,13.5 9,22.5l 181,181q 9.5,9.5 22.5,9.5q 13.5,0 23-9.5l 271.5-271.5q 9-9 9-22.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5 t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"remove-sign, cancel, remove, delete, close, sign\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 574.5,561q0-13 -9.5-22.5l-90.5-90.5l 90.5-90.5q 9.5-9.5 9.5-22.5q0-13.5 -9.5-23l-45-45q-9.5-9.5 -23-9.5q-13,0 -22.5,9.5l-90.5,90.5l-90.5-90.5q-9.5-9.5 -22.5-9.5q-13.5,0 -23,9.5l-45,45q-9.5,9.5 -9.5,23q0,13 9.5,22.5l 90.5,90.5l-90.5,90.5q-9.5,9.5 -9.5,22.5q0,13.5 9.5,23l 45,45q 9.5,9.5 23,9.5 q 13,0 22.5-9.5l 90.5-90.5l 90.5,90.5q 9.5,9.5 22.5,9.5q 13.5,0 23-9.5l 45-45q 9.5-9.5 9.5-23zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"minus-sign, remove, delete, subtract, sign\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 608,480l0-64 q0-13 -9.5-22.5t-22.5-9.5l-384,0 q-13,0 -22.5,9.5t-9.5,22.5l0,64 q0,13 9.5,22.5t 22.5,9.5l 384,0 q 13,0 22.5-9.5t 9.5-22.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75 t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"plus-sign, add, sum, sign\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 608,480l0-64 q0-13 -9.5-22.5t-22.5-9.5l-128,0 l0-128 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13,0 -22.5,9.5t-9.5,22.5l0,128 l-128,0 q-13,0 -22.5,9.5t-9.5,22.5l0,64 q0,13 9.5,22.5t 22.5,9.5l 128,0 l0,128 q0,13 9.5,22.5t 22.5,9.5l 64,0 q 13,0 22.5-9.5t 9.5-22.5l0-128 l 128,0 q 13,0 22.5-9.5t 9.5-22.5zM 768,448q0,104.5 -51.5,192.75 t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"576\" height=\"896\" viewBox=\"0 0 576 896\" data-du=\"\" data-tags=\"chevron-right, right, arrow-right, next\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 549.5,416q0,26 -18.5,45.5l-326,325.5q-18.5,18.5 -45,18.5t-45-18.5l-38-37.5q-18.5-19.5 -18.5-45.5q0-26.5 18.5-45l 243-243l-243-242.5q-18.5-19.5 -18.5-45.5q0-26.5 18.5-45l 38-37.5q 18-19 45-19t 45,19l 326,325.5q 18.5,18.5 18.5,45z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"576\" height=\"896\" viewBox=\"0 0 576 896\" data-du=\"\" data-tags=\"chevron-left, arrow-left, left, previous\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 371,786.5l-326-325.5q-18.5-18.5 -18.5-45.25t 18.5-45.25l 326-325.5q 18.5-18.5 45.25-18.5t 45.25,18.5l 37.5,37.5q 18.5,18.5 18.5,45.25t-18.5,45.25l-243,243l 243,242.5q 18.5,19 18.5,45.5t-18.5,45l-37.5,37.5q-18.5,18.5 -45.25,18.5t-45.25-18.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"769\" height=\"896\" viewBox=\"0 0 769 896\" data-du=\"\" data-tags=\"eject, media, control\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 7,489.5l 355-355q 9.5-9.5 22.5-9.5t 22.5,9.5l 355,355q 9.5,9.5 6.5,16t-16,6.5l-736,0 q-13,0 -16-6.5t 6.5-16zM 736.5,768l-704,0 q-13,0 -22.5-9.5t-9.5-22.5l0-128 q0-13 9.5-22.5t 22.5-9.5l 704,0 q 13,0 22.5,9.5t 9.5,22.5l0,128 q0,13 -9.5,22.5t-22.5,9.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"step-forward, forward, next, media, control\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 22.5,825.5q-9.5,9.5 -16,6.5t-6.5-16l0-736 q0-13 6.5-16t 16,6.5l 355,355q 4,4 6.5,9.5l0-339 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13,0 22.5,9.5t 9.5,22.5l0,704 q0,13 -9.5,22.5t-22.5,9.5l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-339 q-2.5,5 -6.5,9.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"fast-forward, forward, next, media, control\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 22.5,825.5q-9.5,9.5 -16,6.5t-6.5-16l0-736 q0-13 6.5-16t 16,6.5l 355,355q 4,4 6.5,9.5l0-355 q0-13 6.5-16t 16,6.5l 355,355q 4,4 6.5,9.5l0-339 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13,0 22.5,9.5t 9.5,22.5l0,704 q0,13 -9.5,22.5t-22.5,9.5l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-339 q-2.5,5 -6.5,9.5l-355,355 q-9.5,9.5 -16,6.5t-6.5-16l0-355 q-2.5,5 -6.5,9.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"forward, next, media, control\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 22.5,825.5q-9.5,9.5 -16,6.5t-6.5-16l0-736 q0-13 6.5-16t 16,6.5l 355,355q 4,4 6.5,9.5l0-355 q0-13 6.5-16t 16,6.5l 355,355q 9.5,9.5 9.5,22.5t-9.5,22.5l-355,355q-9.5,9.5 -16,6.5t-6.5-16l0-355 q-2.5,5 -6.5,9.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"stop, media, control\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 768,96l0,704 q0,13 -9.5,22.5t-22.5,9.5l-704,0 q-13,0 -22.5-9.5t-9.5-22.5l0-704 q0-13 9.5-22.5t 22.5-9.5l 704,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"pause, media, control\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 768,96l0,704 q0,13 -9.5,22.5t-22.5,9.5l-256,0 q-13,0 -22.5-9.5t-9.5-22.5l0-704 q0-13 9.5-22.5t 22.5-9.5l 256,0 q 13,0 22.5,9.5t 9.5,22.5zM 320,96l0,704 q0,13 -9.5,22.5t-22.5,9.5l-256,0 q-13,0 -22.5-9.5t-9.5-22.5l0-704 q0-13 9.5-22.5t 22.5-9.5l 256,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"play, media, control\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 692,463.5l-664,369q-11.5,6.5 -19.75,1.5t-8.25-18l0-736 q0-13 8.25-18t 19.75,1.5l 664,369q 11.5,6.5 11.5,15.5t-11.5,15.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"backward, previous, back, control\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 809.5,70.5q 9.5-9.5 16-6.5t 6.5,16l0,736 q0,13 -6.5,16t-16-6.5l-355-355q-4-4.5 -6.5-9.5l0,355 q0,13 -6.5,16t-16-6.5l-355-355q-9.5-9.5 -9.5-22.5t 9.5-22.5l 355-355q 9.5-9.5 16-6.5t 6.5,16l0,355 q 2.5-5.5 6.5-9.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"fast-backward, first, previous, control\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 873.5,70.5q 9.5-9.5 16-6.5t 6.5,16l0,736 q0,13 -6.5,16t-16-6.5l-355-355q-4.5-4.5 -6.5-9.5l0,355 q0,13 -6.5,16t-16-6.5l-355-355q-4.5-4.5 -6.5-9.5l0,339 q0,13 -9.5,22.5t-22.5,9.5l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-704 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13,0 22.5,9.5t 9.5,22.5l0,339 q 2-5.5 6.5-9.5l 355-355 q 9.5-9.5 16-6.5t 6.5,16l0,355 q 2-5.5 6.5-9.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"step-backward, previous, control\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 489.5,70.5q 9.5-9.5 16-6.5t 6.5,16l0,736 q0,13 -6.5,16t-16-6.5l-355-355q-4.5-4.5 -6.5-9.5l0,339 q0,13 -9.5,22.5t-22.5,9.5l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-704 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13,0 22.5,9.5t 9.5,22.5l0,339 q 2-5.5 6.5-9.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"move, arrows\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 896,448q0,13 -9.5,22.5l-128,128q-9.5,9.5 -22.5,9.5t-22.5-9.5t-9.5-22.5l0-64 l-192,0 l0,192 l 64,0 q 13,0 22.5,9.5t 9.5,22.5t-9.5,22.5l-128,128q-9.5,9.5 -22.5,9.5t-22.5-9.5l-128-128q-9.5-9.5 -9.5-22.5t 9.5-22.5t 22.5-9.5l 64,0 l0-192 l-192,0 l0,64 q0,13 -9.5,22.5t-22.5,9.5t-22.5-9.5l-128-128q-9.5-9.5 -9.5-22.5 t 9.5-22.5l 128-128q 9.5-9.5 22.5-9.5t 22.5,9.5t 9.5,22.5l0,64 l 192,0 l0-192 l-64,0 q-13,0 -22.5-9.5t-9.5-22.5t 9.5-22.5l 128-128q 9.5-9.5 22.5-9.5t 22.5,9.5l 128,128q 9.5,9.5 9.5,22.5t-9.5,22.5t-22.5,9.5l-64,0 l0,192 l 192,0 l0-64 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5l 128,128q 9.5,9.5 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"check, checkbox, correct, tick\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 704,465l0,159 q0,59.5 -42.25,101.75t-101.75,42.25l-416,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-416 q0-59.5 42.25-101.75t 101.75-42.25l 416,0 q 31.5,0 58.5,12.5q 7.5,3.5 9,11.5q 1.5,8.5 -4.5,14.5l-24.5,24.5q-5,5 -11.5,5q-1.5,0 -4.5-1q-11.5-3 -22.5-3l-416,0 q-33,0 -56.5,23.5t-23.5,56.5l0,416 q0,33 23.5,56.5t 56.5,23.5l 416,0 q 33,0 56.5-23.5t 23.5-56.5l0-127 q0-6.5 4.5-11l 32-32q 5-5 11.5-5q 3,0 6,1.5q 10,4 10,14.5zM 819.5,220.5l-407,407q-12,12 -28.5,12t-28.5-12l-215-215q-12-12 -12-28.5t 12-28.5l 55-55q 12-12 28.5-12t 28.5,12l 131.5,131.5l 323.5-323.5q 12-12 28.5-12t 28.5,12l 55,55 q 12,12 12,28.5t-12,28.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"share\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 704,494.5l0,129.5 q0,59.5 -42.25,101.75t-101.75,42.25l-416,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-416 q0-59.5 42.25-101.75t 101.75-42.25l 127.5,0 l0,0 q 6.5,0 11.25,4.75t 4.75,11.25q0,13.5 -13,16q-38.5,13 -66.5,30q-5,2 -8,2l-56,0 q-33,0 -56.5,23.5t-23.5,56.5l0,416 q0,33 23.5,56.5t 56.5,23.5l 416,0 q 33,0 56.5-23.5t 23.5-56.5l0-107 q0-9.5 9-14.5q 14-6.5 27-18.5q 8-8 17.5-4q 10.5,4.5 10.5,14.5zM 822.5,246.5l-192,192q-9,9.5 -22.5,9.5q-6,0 -12.5-2.5q-19.5-8.5 -19.5-29.5l0-96 l-80,0 q-161.5,0 -219,65.5q-59.5,68.5 -37,236.5q 1.5,11.5 -10,17q-4,1 -6,1q-8,0 -13-6.5q-5-7 -10.5-15.5t-19.75-34.25t-24.75-49.75 t-19.25-57t-8.75-61q0-24.5 1.75-45.5t 7-45t 14-44t 23.5-40.75t 34.25-37t 47.25-30.75t 62.25-24.25t 79.75-15.25t 98.25-5.5l 80,0 l0-96 q0-21 19.5-29.5q 6.5-2.5 12.5-2.5q 13,0 22.5,9.5l 192,192q 9.5,9.5 9.5,22.5t-9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"edit, write, blog\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 444,592l 58-58l-76-76l-58,58l0,28 l 48,0 l0,48 l 28,0 zM 664,232q-8-8 -16.5,0.5l-175,175q-8.5,8.5 -0.5,16.5t 16.5-0.5l 175-175q 8.5-8.5 0.5-16.5zM 704,529l0,95 q0,59.5 -42.25,101.75t-101.75,42.25l-416,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-416 q0-59.5 42.25-101.75t 101.75-42.25l 416,0 q 31.5,0 58.5,12.5q 7.5,3.5 9,11.5q 1.5,8.5 -4.5,14.5l-24.5,24.5q-7,7 -16,4q-11.5-3 -22.5-3l-416,0 q-33,0 -56.5,23.5t-23.5,56.5l0,416 q0,33 23.5,56.5t 56.5,23.5l 416,0 q 33,0 56.5-23.5t 23.5-56.5l0-63 q0-6.5 4.5-11l 32-32q 7.5-7.5 17.5-3.5t 10,14.5zM 656,160l 144,144l-336,336l-144,0 l0-144 zM 878,226l-46,46 l-144-144l 46-46q 14-14 34-14t 34,14l 76,76q 14,14 14,34t-14,34z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"tint, droplet, water, color\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 256,576q0-18 -10-34.5q-0.5-0.5 -7.75-11.25t-12.75-19t-12.5-22t-10.5-25.25q-2-8 -10.5-8t-10.5,8q-3.5,11.5 -10.5,25.25t-12.5,22t-12.75,19t-7.75,11.25q-10,16.5 -10,34.5q0,26.5 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25zM 512,512q0,106 -75,181t-181,75t-181-75t-75-181 q0-72.5 40.5-137.5q 3-4.5 31.25-45.25t 50.5-75.5t 49.75-89t 41.5-100.75q 4.5-15 17-23.5t 25.5-8.5t 25.75,8.5t 16.75,23.5q 14,46.5 41.5,100.75t 49.75,89t 50.5,75.5t 31.25,45.25q 40.5,63.5 40.5,137.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"adjust, contrast\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 384,720l0-544 q-74,0 -136.5,36.5t-99,99t-36.5,136.5t 36.5,136.5t 99,99t 136.5,36.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"map-marker, location, marker\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 384,320q0-53 -37.5-90.5t-90.5-37.5t-90.5,37.5t-37.5,90.5t 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5zM 512,320q0,54.5 -16.5,89.5l-182,387q-8,16.5 -23.75,26t-33.75,9.5t-33.75-9.5t-23.25-26l-182.5-387q-16.5-35 -16.5-89.5q0-106 75-181t 181-75t 181,75t 75,181z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"pencil, write, edit, blog\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 181.5,768l 45.5-45.5l-117.5-117.5l-45.5,45.5l0,53.5 l 64,0 l0,64 l 53.5,0 zM 443,304q0-11 -11-11q-5,0 -8.5,3.5l-271,271q-3.5,3.5 -3.5,8.5q0,11 11,11q 5,0 8.5-3.5l 271-271q 3.5-3.5 3.5-8.5zM 416,208l 208,208l-416,416l-208,0 l0-208 zM 757.5,256q0,26.5 -18.5,45l-83,83l-208-208l 83-82.5q 18-19 45-19 q 26.5,0 45.5,19l 117.5,117q 18.5,19.5 18.5,45.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"picture, image, photo\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 320,288q0,40 -28,68t-68,28t-68-28t-28-68t 28-68t 68-28t 68,28t 28,68zM 832,480l0,224 l-704,0 l0-96 l 160-160l 80,80l 256-256zM 880,128l-800,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,608 q0,6.5 4.75,11.25t 11.25,4.75l 800,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-608 q0-6.5 -4.75-11.25t-11.25-4.75zM 960,144l0,608 q0,33 -23.5,56.5t-56.5,23.5l-800,0 q-33,0 -56.5-23.5t-23.5-56.5l0-608 q0-33 23.5-56.5t 56.5-23.5l 800,0 q 33,0 56.5,23.5t 23.5,56.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"facetime-video, video, movie, camera, film\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 896,176l0,544 q0,21 -19.5,29.5q-6.5,2.5 -12.5,2.5q-13.5,0 -22.5-9.5l-201.5-201.5l0,83 q0,59.5 -42.25,101.75t-101.75,42.25l-352,0 q-59.5,0 -101.75-42.25t-42.25-101.75l0-352 q0-59.5 42.25-101.75t 101.75-42.25l 352,0 q 59.5,0 101.75,42.25t 42.25,101.75l0,82.5 l 201.5-201q 9-9.5 22.5-9.5q 6,0 12.5,2.5 q 19.5,8.5 19.5,29.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"indent-right\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 176,416q0,7 -4.5,11.5l-144,144q-4.5,4.5 -11.5,4.5q-6.5,0 -11.25-4.75t-4.75-11.25l0-288 q0-6.5 4.75-11.25t 11.25-4.75q 7,0 11.5,4.5l 144,144q 4.5,4.5 4.5,11.5zM 896,656l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-864,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 864,0 q 6.5,0 11.25,4.75 t 4.75,11.25zM 896,464l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-544,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 544,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 896,272l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-544,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 544,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 896,80l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-864,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 864,0 q 6.5,0 11.25,4.75t 4.75,11.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"indent-left\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 192,272l0,288 q0,6.5 -4.75,11.25t-11.25,4.75q-7,0 -11.5-4.5l-144-144q-4.5-4.5 -4.5-11.5t 4.5-11.5l 144-144q 4.5-4.5 11.5-4.5q 6.5,0 11.25,4.75t 4.75,11.25zM 896,656l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-864,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 864,0 q 6.5,0 11.25,4.75 t 4.75,11.25zM 896,464l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-544,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 544,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 896,272l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-544,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 544,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 896,80l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-864,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 864,0 q 6.5,0 11.25,4.75t 4.75,11.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"list, menu\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 128,656l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 128,464l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75 t 4.75,11.25zM 128,272l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 896,656l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-672,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 672,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 128,80l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 896,464l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-672,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25 t 11.25-4.75l 672,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 896,272l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-672,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 672,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 896,80l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-672,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 672,0 q 6.5,0 11.25,4.75t 4.75,11.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"align-justify, justify, paragraph, editor, format\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 896,672l0,64 q0,13 -9.5,22.5t-22.5,9.5l-832,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 832,0 q 13,0 22.5,9.5t 9.5,22.5zM 896,480l0,64 q0,13 -9.5,22.5t-22.5,9.5l-832,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 832,0 q 13,0 22.5,9.5t 9.5,22.5zM 896,288l0,64 q0,13 -9.5,22.5 t-22.5,9.5l-832,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 832,0 q 13,0 22.5,9.5t 9.5,22.5zM 896,96l0,64 q0,13 -9.5,22.5t-22.5,9.5l-832,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 832,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"align-right, paragraph, editor, format\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 896,672l0,64 q0,13 -9.5,22.5t-22.5,9.5l-832,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 832,0 q 13,0 22.5,9.5t 9.5,22.5zM 896,480l0,64 q0,13 -9.5,22.5t-22.5,9.5l-640,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 640,0 q 13,0 22.5,9.5t 9.5,22.5zM 896,288l0,64 q0,13 -9.5,22.5 t-22.5,9.5l-768,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 768,0 q 13,0 22.5,9.5t 9.5,22.5zM 896,96l0,64 q0,13 -9.5,22.5t-22.5,9.5l-576,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 576,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"align-center, paragraph, editor, format\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 896,672l0,64 q0,13 -9.5,22.5t-22.5,9.5l-832,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 832,0 q 13,0 22.5,9.5t 9.5,22.5zM 704,480l0,64 q0,13 -9.5,22.5t-22.5,9.5l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.5zM 832,288l0,64 q0,13 -9.5,22.5t-22.5,9.5 l-704,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 704,0 q 13,0 22.5,9.5t 9.5,22.5zM 640,96l0,64 q0,13 -9.5,22.5t-22.5,9.5l-320,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 320,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"align-left, paragraph, editor, format\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 896,672l0,64 q0,13 -9.5,22.5t-22.5,9.5l-832,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 832,0 q 13,0 22.5,9.5t 9.5,22.5zM 704,480l0,64 q0,13 -9.5,22.5t-22.5,9.5l-640,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 640,0 q 13,0 22.5,9.5t 9.5,22.5zM 832,288l0,64 q0,13 -9.5,22.5 t-22.5,9.5l-768,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 768,0 q 13,0 22.5,9.5t 9.5,22.5zM 640,96l0,64 q0,13 -9.5,22.5t-22.5,9.5l-576,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 576,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"text-width, format, text\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 40.5,64.5l 27,13.5q 10,2.5 105.5,2.5l 65,0 l 9.5-1.5l 57.5-0.5l 223,0.5l 159,0 l 17,1q 7,0.5 14-3.5t 10.5-8l 3.5-4l 21-0.5q 7.5,0 14,0.5l0,52.25 t 0.5,65.75l 0.5,50l-0.5,29q0,16 -2,25.5q-19.5,7.5 -34,9q-12.5-21.5 -27-64q-4-12 -7.75-31.25t-5.75-32.75t-3-14.5q-6.5-7.5 -13.5-9.5q-3.5-1 -29.25-1t-69.25,0.5t-64,0.5 q-47,0 -63.5,2.5q-5,48.5 -4,68l 0.5,76l0-26 l 1.5,179.5l-0.5,73.5q-0.5,23 5.5,42.5q 24.5,12.5 44.5,16q 1,0 9,2.5t 22,6.5t 21.5,6q 15,4 25,9q 2.5,22.5 2.5,25q0,5 -1.5,14.5q-7,0.5 -17,0.5q-55,0 -93.5-5q-36-4 -119-4q-41,0 -116.5,6.5q-22.5,2.5 -35,2.5q-1-11 -1-13l-0.5-13l0-4.5 q 10.5-16.5 39.5-24.5 q 69.5-19 79.5-25q 4.5-10.5 6-28q 3-68.5 3-216.5l-2.5-22q0-132.5 -1-139q-1-5.5 -3-7.5q-3-2.5 -7-3q-19-3 -74-3q-25,0 -84.25,7t-66.25,12q-6.5,4.5 -11,16.5t-11,37.5t-12,42q-3,9.5 -9.75,16t-10.25,6.5q-22-13.5 -28-22l0-148.5 l0-43 zM 752.5,711.5q 13,10 13,24.5t-13,24.5l-81,63 q-13,10 -22.25,5.5t-9.25-21l0-40 l-512,0 l0,40 q0,16.5 -9.25,21t-22.25-5.5l-81-63q-13-10 -13-24.5t 13-24.5l 81-63q 13-10 22.25-5.5t 9.25,21l0,40 l 512,0 l0-40 q0-16.5 9.25-21t 22.25,5.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"text-height, format, editor\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 40.5,64.5l 27,13.5q 10,2.5 105.5,2.5l 65,0 l 9.5-1.5l 57.5-0.5l 107.5,0.5l 146.5,0 l 17,1q 7,0.5 14-3.5t 10.5-8l 3.5-4l 21-0.5q 7.5,0 14,0.5l0,52.25 t 0.5,65.75l 0.5,50l-0.5,29q0,16 -2,25.5q-19.5,7.5 -34,9q-12.5-21.5 -27-64q-4-12 -7.75-31.25t-5.75-32.75t-3-14.5q-6.5-7.5 -13.5-9.5q-3.5-1 -21.25-1t-51.75,0.5t-55.5,0.5 q-17,0 -33.5,2.5q-5,48.5 -4,68l 0.5,76l0,166 l 1.5,179.5l-0.5,73.5q-0.5,23 5.5,42.5q 24.5,12.5 44.5,16q 1,0 9,2.5t 22,6.5t 21.5,6q 15,4 25,9q 2.5,22.5 2.5,25q0,5 -1.5,14.5q-7,0.5 -17,0.5q-55,0 -93.5-5q-36-4 -119-4q-44,0 -116.5,7q-24,2 -35,2q-1-11 -1-13l-0.5-13l0-4.5 q 10.5-16.5 39.5-24.5 q 69.5-19 79.5-25q 4.5-10.5 6-28q 4-96 3-216.5l-2.5-214q-0.5-31 -0.25-59.25t 0.25-51.25t-1-28.5t-3-7.5q-3-2.5 -7-3q-19-3 -74-3q-21.5,0 -50,6.75t-36.5,12.25q-6.5,4.5 -11,16.5t-11,37.5t-12,42q-3,9.5 -9.75,16t-10.25,6.5q-22-13.5 -28-22l0-148.5 l0-43 zM 872,704q 16.5,0 21,9.25t-5.5,22.25 l-63,81q-10,13 -24.5,13t-24.5-13l-63-81q-10-13 -5.5-22.25t 21-9.25l 40,0 l0-512 l-40,0 q-16.5,0 -21-9.25t 5.5-22.25l 63-81q 10-13 24.5-13t 24.5,13l 63,81q 10,13 5.5,22.25t-21,9.25l-40,0 l0,512 l 40,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"512\" height=\"896\" viewBox=\"0 0 512 896\" data-du=\"\" data-tags=\"italic, editor, format\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M0,831l 8.5-42.5q 2-0.5 38.5-10q 38-9.5 58-19.5q 14.5-18.5 20.5-50.5l 13.5-69.5l 28-134l 6-32q 4-22 8.5-42.25t 8-33.5t 6.25-23.25t 4.5-15.25t 1.75-5.75l 14.5-78.5l 8-31.5l 11-67.5l 4-25l0-19 q-20.5-11 -72-14q-14-1 -19-2l 9.5-51.5l 158.5,7q 19.5,1 36.5,1q 33,0 107-4.5q 16.5-1 34-2.25t 18-1.25q-1,9.5 -3,19 q-3.5,14.5 -6.5,25.5q-27.5,9.5 -54.5,15.5q-32,8 -50.5,15.5q-6,15.5 -12,44q-4.5,22 -6.5,41q-22,99.5 -33,153l-30.5,155.5l-19,79l-21.5,117.5l-6,22.5q-1,3.5 0.5,13.5q 32,7.5 59.5,10.5q 18,2.5 33,5q-0.5,14.5 -3.5,29q-3.5,15.5 -4.5,20.5q-9,0 -11.5,0.5q-12,1 -21,1q-4.5,0 -14-1.5q-9.5-2 -72.5-8.5 l-99-1q-20.5-0.5 -87,5.5q-37,3.5 -49,4.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"bold, editor, format\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 277.5,760.5q 38,16 70,16q 65.5,0 108-20.5t 61-56.5q 19-35 19-90.5q0-57 -20.5-90q-29-47 -70.5-63q-40-16 -123.5-16q-37,0 -50.5,5l0,72 l-0.5,86.5l 1.5,135q0,7.5 6,22zM 270.5,387.5q 21.5,3.5 54.5,3.5q 87.5,0 132-32.5t 44.5-112q0-56 -42.5-93.5q-42-37.5 -127.5-37.5q-26,0 -65,6.5q0,22 1,38.5 q 3.5,61 3,139.5l-0.5,49q0,21.5 0.5,38.5zM0,832l 1-47q 22.5-4.5 34-6q 38.5-6 61.5-15.5q 8.5-13.5 10.5-25.5q 4.5-33 4.5-97l-1-248.5q-2.5-128 -4.5-202q-0.5-43.5 -5.5-54.5q-0.5-2 -6-6q-9-6 -34.5-7.5q-15-1 -57-6.5l-2-41.5l 130-3l 190-6.5l 22.5-0.5q 2.5,0 7-0.25t 7-0.25q 0.5,0 10.75,0.25t 20.25,0.25l 37,0 q 44,0 95.5,13.5 q 21.5,6.5 48,19.5q 28.5,14.5 51,38q 22,23.5 32.5,52t 10.5,61q0,35 -16,64t-47.5,52.5q-13,10 -75,38.5q 88.5,20.5 133.5,73q 46,53 46,118q0,38 -14.5,80.5q-10.5,31 -35.5,58.5q-33,36 -70,54q-36.5,18 -101.5,30q-41,7.5 -99,5.5l-98.5-2q-42-1 -149,5.5q-16.5,1.5 -136,5.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"font, letter, glyph, editor\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 362.5,279.5l-85,225q 36.5,0.5 76.75,1t 59.5,0.75t 26.25,0.25l 14.5-1q-16-47.5 -46-120.5q-26.5-66 -46-105.5zM 10.5,832l-10.5,0 l 1-39.5q 11-3.5 40-9q 44.5-8 55-15.5q 10-8 24-34l 118.5-308l 140-362l 37.5,0 l 26.5,0 l 5.5,10.5l 102.5,240q 51.5,121 62,148.5q 19.5,51 48,117.5q 13,29 32.5,82q 12,33.5 32.5,74.5 q 11,24.5 17.5,28.5q 11,9.5 34.5,11.5q 23.5,3 51.5,13.5q 3,19.5 3,28.5q0,7 -0.5,13q-40,0 -96-4q-46.5-4 -94.5-4q-39.5,0 -67.5,1l-100,5.5l-29,1q0-22.5 2-39l 65.5-14q 28-6.5 34-11.5q 6-6 6-13.5t-3-16l-23.5-57l-46-114l-225-1q-14.5,32.5 -52,137q-11.5,32 -11.5,42q0,15.5 8.5,21.5 q 13,10.5 51.5,16q 1.5,0 6.75,1t 15,2.5t 20.25,3q 0.5,14 0.5,29q0,8.5 -1,13.5q-33,0 -174.5-10l-24,4q-40.5,7 -83.5,7z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"camera, photo, picture, image\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 480,336q 59.5,0 101.75,42.25t 42.25,101.75t-42.25,101.75t-101.75,42.25t-101.75-42.25t-42.25-101.75t 42.25-101.75t 101.75-42.25zM 832,128q 53,0 90.5,37.5t 37.5,90.5l0,448 q0,53 -37.5,90.5t-90.5,37.5l-704,0 q-53,0 -90.5-37.5t-37.5-90.5l0-448 q0-53 37.5-90.5t 90.5-37.5l 112,0 l 25.5-68 q 9.5-24.5 34.75-42.25t 51.75-17.75l 256,0 q 26.5,0 51.75,17.75t 34.75,42.25l 25.5,68l 112,0 zM 480,704q 92.5,0 158.25-65.75t 65.75-158.25t-65.75-158.25t-158.25-65.75t-158.25,65.75t-65.75,158.25t 65.75,158.25t 158.25,65.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"print\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 192,768l 448,0 l0-128 l-448,0 l0,128 zM 192,448l 448,0 l0-192 l-80,0 q-20,0 -34-14t-14-34l0-80 l-320,0 l0,320 zM 768,480q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 832,480l0,208 q0,6.5 -4.75,11.25t-11.25,4.75l-112,0 l0,80 q0,20 -14,34t-34,14l-480,0 q-20,0 -34-14t-14-34 l0-80 l-112,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-208 q0-39.5 28.25-67.75t 67.75-28.25l 32,0 l0-272 q0-20 14-34t 34-14l 336,0 q 20,0 44,10t 38,24l 76,76q 14,14 24,38t 10,44l0,128 l 32,0 q 39.5,0 67.75,28.25t 28.25,67.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"640\" height=\"896\" viewBox=\"0 0 640 896\" data-du=\"\" data-tags=\"bookmark, favorite, ribbon\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 582,64q 11.5,0 22,4.5q 16.5,6.5 26.25,20.5t 9.75,31l0,644.5 q0,17 -9.75,31t-26.25,20.5q-9.5,4 -22,4q-24,0 -41.5-16l-220.5-212l-220.5,212q-18,16.5 -41.5,16.5q-11.5,0 -22-4.5q-16.5-6.5 -26.25-20.5t-9.75-31l0-644.5 q0-17 9.75-31t 26.25-20.5q 10.5-4.5 22-4.5l 524,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"book, read, study, learn, education\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 819.5,239q 20,28.5 9,64.5l-137.5,453q-9.5,32 -38.25,53.75t-61.25,21.75l-461.5,0 q-38.5,0 -74.25-26.75t-49.75-65.75q-12-33.5 -1-63.5q0-2 1.5-13.5t 2-18.5q 0.5-4 -1.5-10.75t-1.5-9.75q 1-5.5 4-10.5t 8.25-11.75t 8.25-11.75q 11.5-19 22.5-45.75t 15-45.75q 1.5-5 0.25-15t-0.25-14q 1.5-5.5 8.5-14t 8.5-11.5 q 10.5-18 21-46t 12.5-45q 0.5-4.5 -1.25-16t 0.25-14q 2-6.5 11-15.25t 11-11.25q 9.5-13 21.25-42.25t 13.75-48.25q 0.5-4 -1.5-12.75t-1-13.25q 1-4 4.5-9t 9-11.5t 8.5-10.5q 4-6 8.25-15.25t 7.5-17.5t 8-18t 9.75-16t 13.25-11.75t 18-5.75t 23.75,2.75l-0.5,1.5q 19-4.5 25.5-4.5l 380.5,0 q 37,0 57,28t 9,65l-137,453 q-18,59.5 -35.75,76.75t-64.25,17.25l-434.5,0 q-13.5,0 -19,7.5q-5.5,8 -0.5,21.5q 12,35 72,35l 461.5,0 q 14.5,0 28-7.75t 17.5-20.75l 150-493.5q 3.5-11 2.5-28.5q 19,7.5 29.5,21.5zM 287.5,240q-2,6.5 1,11.25t 10,4.75l 304,0 q 6.5,0 12.75-4.75t 8.25-11.25l 10.5-32q 2-6.5 -1-11.25t-10-4.75l-304,0 q-6.5,0 -12.75,4.75 t-8.25,11.25zM 246,368q-2,6.5 1,11.25t 10,4.75l 304,0 q 6.5,0 12.75-4.75t 8.25-11.25l 10.5-32q 2-6.5 -1-11.25t-10-4.75l-304,0 q-6.5,0 -12.75,4.75t-8.25,11.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"tags, price, ecommerce\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 224,224q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25zM 757.5,512q0,26.5 -18.5,45l-245.5,246q-19.5,18.5 -45.5,18.5q-26.5,0 -45-18.5l-357.5-358q-19-18.5 -32.25-50.5t-13.25-58.5l0-208 q0-26 19-45t 45-19l 208,0 q 26.5,0 58.5,13.25t 51,32.25 l 357.5,357q 18.5,19.5 18.5,45.5zM 949.5,512q0,26.5 -18.5,45l-245.5,246q-19.5,18.5 -45.5,18.5q-18,0 -29.5-7t-26.5-22.5l 235-235q 18.5-18.5 18.5-45q0-26 -18.5-45.5l-357.5-357q-19-19 -51-32.25t-58.5-13.25l 112,0 q 26.5,0 58.5,13.25t 51,32.25l 357.5,357q 18.5,19.5 18.5,45.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"tag, price, ecommerce\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 224,224q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25zM 757.5,512q0,26.5 -18.5,45l-245.5,246q-19.5,18.5 -45.5,18.5q-26.5,0 -45-18.5l-357.5-358q-19-18.5 -32.25-50.5t-13.25-58.5l0-208 q0-26 19-45t 45-19l 208,0 q 26.5,0 58.5,13.25t 51,32.25 l 357.5,357q 18.5,19.5 18.5,45.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"barcode\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 31.5,768l-31.5,0 l0-704 l 31.5,0 l0,704 zM 63,767.5l-16,0 l0-703.5 l 16,0 l0,703.5 zM 110,767.5l-15.5,0 l0-703.5 l 15.5,0 l0,703.5 zM 188.5,767.5l-15.5,0 l0-703.5 l 15.5,0 l0,703.5 zM 267,767.5l-31,0 l0-703.5 l 31,0 l0,703.5 zM 330,767.5l-15.5,0 l0-703.5 l 15.5,0 l0,703.5 zM 361.5,767.5l-15.5,0 l0-703.5 l 15.5,0 l0,703.5 zM 393,767.5l-15.5,0 l0-703.5 l 15.5,0 l0,703.5 zM 471.5,767.5l-31.5,0 l0-703.5 l 31.5,0 l0,703.5 zM 550,767.5l-31.5,0 l0-703.5 l 31.5,0 l0,703.5 z M 613,767.5l-31.5,0 l0-703.5 l 31.5,0 l0,703.5 zM 676,767.5l-31.5,0 l0-703.5 l 31.5,0 l0,703.5 zM 723,767.5l-31.5,0 l0-703.5 l 31.5,0 l0,703.5 zM 817.5,767.5l-47,0 l0-703.5 l 47,0 l0,703.5 zM 849,767.5l-16,0 l0-703.5 l 16,0 l0,703.5 zM 896,768l-31.5,0 l0-704 l 31.5,0 l0,704 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"qrcode\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 192,576l0,64 l-64,0 l0-64 l 64,0 zM 192,192l0,64 l-64,0 l0-64 l 64,0 zM 576,192l0,64 l-64,0 l0-64 l 64,0 zM 64,703.5l 192,0 l0-191.5 l-192,0 l0,191.5 zM 64,320l 192,0 l0-192 l-192,0 l0,192 zM 448,320l 192,0 l0-192 l-192,0 l0,192 zM 320,448l0,320 l-320,0 l0-320 l 320,0 zM 576,704l0,64 l-64,0 l0-64 l 64,0 zM 704,704l0,64 l-64,0 l0-64 l 64,0 z M 704,448l0,192 l-192,0 l0-64 l-64,0 l0,192 l-64,0 l0-320 l 192,0 l0,64 l 64,0 l0-64 l 64,0 zM 320,64l0,320 l-320,0 l0-320 l 320,0 zM 704,64l0,320 l-320,0 l0-320 l 320,0 z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"volume-up, speaker\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 384,176l0,544 q0,13 -9.5,22.5t-22.5,9.5t-22.5-9.5l-166.5-166.5l-131,0 q-13,0 -22.5-9.5t-9.5-22.5l0-192 q0-13 9.5-22.5t 22.5-9.5l 131,0 l 166.5-166.5q 9.5-9.5 22.5-9.5t 22.5,9.5t 9.5,22.5zM 576,448q0,38 -21.25,70.75t-56.25,46.75q-5,2.5 -12.5,2.5q-13,0 -22.5-9.25t-9.5-22.75q0-10.5 6-17.75t 14.5-12.5t 17-11.5t 14.5-17.75 t 6-28.5t-6-28.5t-14.5-17.75t-17-11.5t-14.5-12.5t-6-17.75q0-13.5 9.5-22.75t 22.5-9.25q 7.5,0 12.5,2.5q 35,13.5 56.25,46.5t 21.25,71zM 704,448q0,76.5 -42.5,141.25t-112.5,94.25q-6.5,2.5 -12.5,2.5q-13.5,0 -23-9.5t-9.5-22.5q0-19.5 19.5-29.5q 28-14.5 38-22q 37-27 57.75-67.75t 20.75-86.75t-20.75-86.75 t-57.75-67.75q-10-7.5 -38-22q-19.5-10 -19.5-29.5q0-13 9.5-22.5t 22.5-9.5q 6.5,0 13,2.5q 70,29.5 112.5,94.25t 42.5,141.25zM 832,448q0,115 -63.5,211.25t-169,141.75q-6.5,2.5 -13,2.5q-13,0 -22.5-9.5t-9.5-22.5q0-18 19.5-29.5q 3.5-2 11.25-5.25t 11.25-5.25q 23-12.5 41-25.5q 61.5-45.5 96-113.5t 34.5-144.5t-34.5-144.5 t-96-113.5q-18-13 -41-25.5q-3.5-2 -11.25-5.25t-11.25-5.25q-19.5-11.5 -19.5-29.5q0-13 9.5-22.5t 22.5-9.5q 6.5,0 13,2.5q 105.5,45.5 169,141.75t 63.5,211.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"576\" height=\"896\" viewBox=\"0 0 576 896\" data-du=\"\" data-tags=\"volume-down, speaker\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 384,176l0,544 q0,13 -9.5,22.5t-22.5,9.5t-22.5-9.5l-166.5-166.5l-131,0 q-13,0 -22.5-9.5t-9.5-22.5l0-192 q0-13 9.5-22.5t 22.5-9.5l 131,0 l 166.5-166.5q 9.5-9.5 22.5-9.5t 22.5,9.5t 9.5,22.5zM 576,448q0,38 -21.25,70.75t-56.25,46.75q-5,2.5 -12.5,2.5q-13,0 -22.5-9.25t-9.5-22.75q0-10.5 6-17.75t 14.5-12.5t 17-11.5t 14.5-17.75 t 6-28.5t-6-28.5t-14.5-17.75t-17-11.5t-14.5-12.5t-6-17.75q0-13.5 9.5-22.75t 22.5-9.25q 7.5,0 12.5,2.5q 35,13.5 56.25,46.5t 21.25,71z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"384\" height=\"896\" viewBox=\"0 0 384 896\" data-du=\"\" data-tags=\"volume-off, speaker, mute\" style=\"margin-left: 13px; margin-top: 8px;\"><path d=\"M 384,176l0,544 q0,13 -9.5,22.5t-22.5,9.5t-22.5-9.5l-166.5-166.5l-131,0 q-13,0 -22.5-9.5t-9.5-22.5l0-192 q0-13 9.5-22.5t 22.5-9.5l 131,0 l 166.5-166.5q 9.5-9.5 22.5-9.5t 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"headphones, listen, music\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 832,443q0,83 -30,157l-10,24.5l-92.5,16.5q-11,41.5 -45.25,68.25t-78.25,26.75l0,16 q0,7 -4.5,11.5t-11.5,4.5l-32,0 q-7,0 -11.5-4.5t-4.5-11.5l0-288 q0-7 4.5-11.5t 11.5-4.5l 32,0 q 7,0 11.5,4.5t 4.5,11.5l0,16 q 35.5,0 65,17.75t 46.5,47.75l 34-6q 14.5-47.5 14.5-96.5q0-74 -44-139.5t-118.25-104.5t-157.75-39 t-157.75,39t-118.25,104.5t-44,139.5q0,49 14.5,96.5l 34,6q 17-30 46.5-47.75t 65-17.75l0-16 q0-7 4.5-11.5t 11.5-4.5l 32,0 q 7,0 11.5,4.5t 4.5,11.5l0,288 q0,7 -4.5,11.5t-11.5,4.5l-32,0 q-7,0 -11.5-4.5t-4.5-11.5l0-16 q-44,0 -78.25-26.75t-45.25-68.25l-92.5-16.5l-10-24.5q-30-74 -30-157q0-75.5 33.5-145.5t 89.5-121.25 t 133-81.75t 160-30.5t 160,30.5t 133,81.75t 89.5,121.25t 33.5,145.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"flag, report\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 160,128q0,36 -32,55l0,633 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-633 q-32-19 -32-55q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25zM 896,160l0,381.5 q0,12.5 -6.25,19.25t-19.75,13.75q-107.5,58 -184.5,58q-30.5,0 -61.75-11t-54.25-24 t-57.75-24t-71.25-11q-96,0 -232,73q-8.5,4.5 -16.5,4.5q-13,0 -22.5-9.5t-9.5-22.5l0-371 q0-16 15.5-27.5q 10.5-7 39.5-21.5q 118-60 210.5-60q 53.5,0 100,14.5t 109.5,44q 19,9.5 44,9.5q 27,0 58.75-10.5t 55-23.5t 44-23.5t 27.25-10.5q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"576\" height=\"896\" viewBox=\"0 0 576 896\" data-du=\"\" data-tags=\"lock, password, secure, private, protected, encrypted\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 160,384l 256,0 l0-96 q0-53 -37.5-90.5t-90.5-37.5t-90.5,37.5t-37.5,90.5l0,96 zM 576,432l0,288 q0,20 -14,34t-34,14l-480,0 q-20,0 -34-14t-14-34l0-288 q0-20 14-34t 34-14l 16,0 l0-96 q0-92 66-158t 158-66t 158,66t 66,158l0,96 l 16,0 q 20,0 34,14t 14,34z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"list-alt\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 192,592l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 192,464l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 192,336l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 768,592l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-480,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 480,0 q 6.5,0 11.25,4.75t 4.75,11.25z M 768,464l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-480,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 480,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 768,336l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-480,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 480,0 q 6.5,0 11.25,4.75 t 4.75,11.25zM 832,688l0-416 q0-6.5 -4.75-11.25t-11.25-4.75l-736,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,416 q0,6.5 4.75,11.25t 11.25,4.75l 736,0 q 6.5,0 11.25-4.75t 4.75-11.25zM 896,144l0,544 q0,33 -23.5,56.5t-56.5,23.5l-736,0 q-33,0 -56.5-23.5t-23.5-56.5l0-544 q0-33 23.5-56.5t 56.5-23.5l 736,0 q 33,0 56.5,23.5 t 23.5,56.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"refresh, synchronize\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 755.5,528q0,2.5 -0.5,3.5q-32,134 -134,217.25t-239,83.25q-73,0 -141.25-27.5t-121.75-78.5l-64.5,64.5q-9.5,9.5 -22.5,9.5t-22.5-9.5t-9.5-22.5l0-224 q0-13 9.5-22.5t 22.5-9.5l 224,0 q 13,0 22.5,9.5t 9.5,22.5t-9.5,22.5l-68.5,68.5q 35.5,33 80.5,51t 93.5,18q 67,0 125-32.5t 93-89.5q 5.5-8.5 26.5-58.5 q 4-11.5 15-11.5l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 768,128l0,224 q0,13 -9.5,22.5t-22.5,9.5l-224,0 q-13,0 -22.5-9.5t-9.5-22.5t 9.5-22.5l 69-69q-74-68.5 -174.5-68.5q-67,0 -125,32.5t-93,89.5q-5.5,8.5 -26.5,58.5q-4,11.5 -15,11.5l-99.5,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-3.5 q 32.5-134 135-217.25t 240-83.25 q 73,0 142,27.75t 122.5,78.25l 65-64.5q 9.5-9.5 22.5-9.5t 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"repeat, loop, reload, refresh, synchronize\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 768,128l0,224 q0,13 -9.5,22.5t-22.5,9.5l-224,0 q-21,0 -29.5-20q-8.5-19.5 7-34.5l 69-69q-74-68.5 -174.5-68.5q-52,0 -99.25,20.25t-81.75,54.75t-54.75,81.75t-20.25,99.25t 20.25,99.25t 54.75,81.75t 81.75,54.75t 99.25,20.25q 59.5,0 112.5-26t 89.5-73.5q 3.5-5 11.5-6q 7,0 12.5,4.5 l 68.5,69q 4.5,4 4.75,10.25t-3.75,11.25q-54.5,66 -132,102.25t-163.5,36.25q-78,0 -149-30.5t-122.5-82t-82-122.5t-30.5-149t 30.5-149t 82-122.5t 122.5-82t 149-30.5q 73.5,0 142.25,27.75t 122.25,78.25l 65-64.5q 14.5-15.5 35-7q 19.5,8.5 19.5,29.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"play-circle, media, control\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 592,448q0,18.5 -16,27.5l-272,160q-7.5,4.5 -16,4.5q-8,0 -16-4q-16-9.5 -16-28l0-320 q0-18.5 16-28q 16.5-9 32,0.5l 272,160q 16,9 16,27.5zM 656,448q0-74 -36.5-136.5t-99-99t-136.5-36.5t-136.5,36.5t-99,99t-36.5,136.5t 36.5,136.5t 99,99t 136.5,36.5t 136.5-36.5t 99-99t 36.5-136.5zM 768,448 q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"inbox, drawer, storage, archive\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 511.5,480l 158,0 q-0.5-1.5 -1.25-4t-1.25-4l-106-248l-354,0 l-106,248q-0.5,1 -1.25,4t-1.25,4l 158,0 l 47.5,96l 160,0 zM 768,495l0,241 q0,13 -9.5,22.5t-22.5,9.5l-704,0 q-13,0 -22.5-9.5t-9.5-22.5l0-241 q0-31 12.5-61.5l 119-276q 5-12.5 18.25-21t 26.25-8.5l 416,0 q 13,0 26.25,8.5t 18.25,21l 119,276 q 12.5,30.5 12.5,61.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"upload, load, open\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 559,438q-4,10 -15,10l-96,0 l0,176 q0,7 -4.5,11.5t-11.5,4.5l-96,0 q-7,0 -11.5-4.5t-4.5-11.5l0-176 l-96,0 q-7,0 -11.5-4.5t-4.5-11.5q0-6 5-12l 159.5-159.5q 5.5-4.5 11.5-4.5t 11.5,4.5l 160,160q 7.5,8 3.5,17.5zM 384,176q-74,0 -136.5,36.5t-99,99t-36.5,136.5t 36.5,136.5t 99,99t 136.5,36.5t 136.5-36.5t 99-99 t 36.5-136.5t-36.5-136.5t-99-99t-136.5-36.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"download, arrow, store, save\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 560,464q0,6 -5,12l-159.5,159.5q-5.5,4.5 -11.5,4.5t-11.5-4.5l-160-160q-7.5-8 -3.5-17.5q 4-10 15-10l 96,0 l0-176 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5l0,176 l 96,0 q 7,0 11.5,4.5t 4.5,11.5zM 384,176q-74,0 -136.5,36.5t-99,99t-36.5,136.5t 36.5,136.5t 99,99t 136.5,36.5t 136.5-36.5t 99-99t 36.5-136.5 t-36.5-136.5t-99-99t-136.5-36.5zM 768,448q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"download-alt, arrow, store, save\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 640,672q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 768,672q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5zM 832,560l0,160 q0,20 -14,34t-34,14l-736,0 q-20,0 -34-14t-14-34l0-160 q0-20 14-34t 34-14l 232.5,0 l 67.5,68 q 29,28 68,28t 68-28l 68-68l 232,0 q 20,0 34,14t 14,34zM 669.5,275.5q 8.5,20.5 -7,35l-224,224q-9,9.5 -22.5,9.5t-22.5-9.5l-224-224q-15.5-14.5 -7-35q 8.5-19.5 29.5-19.5l 128,0 l0-224 q0-13 9.5-22.5t 22.5-9.5l 128,0 q 13,0 22.5,9.5t 9.5,22.5l0,224 l 128,0 q 21,0 29.5,19.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"road, asphalt\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 555.5,498l0-2 l-12-160q-0.5-6.5 -5.5-11.25t-11.5-4.75l-93,0 q-6.5,0 -11.5,4.75t-5.5,11.25l-12,160l0,2 q-0.5,6 4,10t 10.5,4l 122,0 q 6,0 10.5-4t 4-10zM 935,731.5q0,36.5 -23,36.5l-352,0 q 6.5,0 11-4.75t 4-11.25l-10-128q-0.5-6.5 -5.5-11.25t-11.5-4.75l-136,0 q-6.5,0 -11.5,4.75t-5.5,11.25l-10,128 q-0.5,6.5 4,11.25t 11,4.75l-352,0 q-23,0 -23-36.5q0-27 13-58l 208.5-522q 4-9.5 13-16.5t 19-7l 169.5,0 q-6.5,0 -11.5,4.75t-5.5,11.25l-7.5,96q-0.5,7 4,11.5t 11,4.5l 83,0 q 6.5,0 11-4.5t 4-11.5l-7.5-96q-0.5-6.5 -5.5-11.25t-11.5-4.75l 169.5,0 q 10,0 19,7t 13,16.5l 208.5,522q 13,31 13,58z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"time, clock\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 448,272l0,224 q0,7 -4.5,11.5t-11.5,4.5l-160,0 q-7,0 -11.5-4.5t-4.5-11.5l0-32 q0-7 4.5-11.5t 11.5-4.5l 112,0 l0-176 q0-7 4.5-11.5t 11.5-4.5l 32,0 q 7,0 11.5,4.5t 4.5,11.5zM 656,448q0-74 -36.5-136.5t-99-99t-136.5-36.5t-136.5,36.5t-99,99t-36.5,136.5t 36.5,136.5t 99,99t 136.5,36.5t 136.5-36.5t 99-99t 36.5-136.5zM 768,448 q0,104.5 -51.5,192.75t-139.75,139.75t-192.75,51.5t-192.75-51.5t-139.75-139.75t-51.5-192.75t 51.5-192.75t 139.75-139.75t 192.75-51.5t 192.75,51.5t 139.75,139.75t 51.5,192.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"640\" height=\"896\" viewBox=\"0 0 640 896\" data-du=\"\" data-tags=\"file, paper, new, empty\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 64,768l 512,0 l0-384 l-208,0 q-20,0 -34-14t-14-34l0-208 l-256,0 l0,640 zM 384,320l 188,0 q-5-14.5 -11-20.5l-156.5-156.5q-6-6 -20.5-11l0,188 zM 640,336l0,448 q0,20 -14,34t-34,14l-544,0 q-20,0 -34-14t-14-34l0-672 q0-20 14-34t 34-14l 320,0 q 20,0 44,10t 38,24l 156,156q 14,14 24,38t 10,44z \" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"home, house, building\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 704,496l0,240 q0,13 -9.5,22.5t-22.5,9.5l-192,0 l0-192 l-128,0 l0,192 l-192,0 q-13,0 -22.5-9.5t-9.5-22.5l0-240 q0-0.5 0.25-1.5t 0.25-1.5l 287.5-237l 287.5,237q 0.5,1 0.5,3zM 815.5,461.5l-31,37q-4,4.5 -10.5,5.5l-1.5,0 q-6.5,0 -10.5-3.5l-346-288.5l-346,288.5q-6,4 -12,3.5q-6.5-1 -10.5-5.5l-31-37q-4-5 -3.5-11.75t 5.5-10.75 l 359.5-299.5q 16-13 38-13t 38,13l 122,102l0-97.5 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5l0,204 l 109.5,91q 5,4 5.5,10.75t-3.5,11.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"trash, remove, delete, bin\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 256,368l0,288 q0,7 -4.5,11.5t-11.5,4.5l-32,0 q-7,0 -11.5-4.5t-4.5-11.5l0-288 q0-7 4.5-11.5t 11.5-4.5l 32,0 q 7,0 11.5,4.5t 4.5,11.5zM 384,368l0,288 q0,7 -4.5,11.5t-11.5,4.5l-32,0 q-7,0 -11.5-4.5t-4.5-11.5l0-288 q0-7 4.5-11.5t 11.5-4.5l 32,0 q 7,0 11.5,4.5t 4.5,11.5zM 512,368l0,288 q0,7 -4.5,11.5t-11.5,4.5l-32,0 q-7,0 -11.5-4.5t-4.5-11.5l0-288 q0-7 4.5-11.5t 11.5-4.5l 32,0 q 7,0 11.5,4.5t 4.5,11.5zM 576,730l0-474 l-448,0 l0,474 q0,11 3.5,20.25t 7.25,13.5t 5.25,4.25l 416,0 q 1.5,0 5.25-4.25t 7.25-13.5t 3.5-20.25zM 240,192l 224,0 l-24-58.5q-3.5-4.5 -8.5-5.5l-158.5,0 q-5,1 -8.5,5.5zM 704,208l0,32 q0,7 -4.5,11.5t-11.5,4.5l-48,0 l0,474 q0,41.5 -23.5,71.75t-56.5,30.25l-416,0 q-33,0 -56.5-29.25t-23.5-70.75l0-476 l-48,0 q-7,0 -11.5-4.5t-4.5-11.5l0-32 q0-7 4.5-11.5t 11.5-4.5l 154.5,0 l 35-83.5q 7.5-18.5 27-31.5t 39.5-13l 160,0 q 20,0 39.5,13t 27,31.5l 35,83.5l 154.5,0 q 7,0 11.5,4.5t 4.5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"cog, settings, options, gear, preferences\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 512,448q0-53 -37.5-90.5t-90.5-37.5t-90.5,37.5t-37.5,90.5t 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5zM 768,393.5l0,111 q0,6 -4,11.5t-10,6.5l-92.5,14q-9.5,27 -19.5,45.5q 17.5,25 53.5,69q 5,6 5,12.5t-4.5,11.5q-13.5,18.5 -49.5,54t-47,35.5q-6,0 -13-4.5l-69-54q-22,11.5 -45.5,19 q-8,68 -14.5,93q-3.5,14 -18,14l-111,0 q-7,0 -12.25-4.25t-5.75-10.75l-14-92q-24.5-8 -45-18.5l-70.5,53.5q-5,4.5 -12.5,4.5q-7,0 -12.5-5.5q-63-57 -82.5-84q-3.5-5 -3.5-11.5q0-6 4-11.5q 7.5-10.5 25.5-33.25t 27-35.25q-13.5-25 -20.5-49.5l-91.5-13.5q-6.5-1 -10.5-6.25t-4-11.75l0-111 q0-6 4-11.5t 9.5-6.5 l 93-14q 7-23 19.5-46q-20-28.5 -53.5-69q-5-6 -5-12q0-5 4.5-11.5q 13-18 49.25-53.75t 47.25-35.75q 6.5,0 13,5l 69,53.5q 22-11.5 45.5-19q 8-68 14.5-93q 3.5-14 18-14l 111,0 q 7,0 12.25,4.25t 5.75,10.75l 14,92q 24.5,8 45,18.5l 71-53.5q 4.5-4.5 12-4.5q 6.5,0 12.5,5q 64.5,59.5 82.5,85q 3.5,4 3.5,11 q0,6 -4,11.5q-7.5,10.5 -25.5,33.25t-27,35.25q 13,25 20.5,49l 91.5,14q 6.5,1 10.5,6.25t 4,11.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"signal, bars, stats\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 128,720l0,96 q0,7 -4.5,11.5t-11.5,4.5l-96,0 q-7,0 -11.5-4.5t-4.5-11.5l0-96 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5zM 320,656l0,160 q0,7 -4.5,11.5t-11.5,4.5l-96,0 q-7,0 -11.5-4.5t-4.5-11.5l0-160 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5zM 512,528l0,288 q0,7 -4.5,11.5t-11.5,4.5l-96,0 q-7,0 -11.5-4.5t-4.5-11.5 l0-288 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5zM 704,336l0,480 q0,7 -4.5,11.5t-11.5,4.5l-96,0 q-7,0 -11.5-4.5t-4.5-11.5l0-480 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5zM 896,80l0,736 q0,7 -4.5,11.5t-11.5,4.5l-96,0 q-7,0 -11.5-4.5t-4.5-11.5l0-736 q0-7 4.5-11.5t 11.5-4.5l 96,0 q 7,0 11.5,4.5t 4.5,11.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"off, switch, power\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 768,448q0,78 -30.5,149t-82,122.5t-122.5,82t-149,30.5t-149-30.5t-122.5-82t-82-122.5t-30.5-149q0-91 40.25-171.5t 113.25-135q 21.5-16 47.75-12.5t 41.75,25q 16,21 12.25,47.25t-24.75,42.25q-49,37 -75.75,90.5t-26.75,114q0,52 20.25,99.25t 54.75,81.75t 81.75,54.75 t 99.25,20.25t 99.25-20.25t 81.75-54.75t 54.75-81.75t 20.25-99.25q0-60.5 -26.75-114t-75.75-90.5q-21-16 -24.75-42.25t 12.25-47.25q 15.5-21.5 42-25t 47.5,12.5q 73,54.5 113.25,135t 40.25,171.5zM 448,64l0,320 q0,26 -19,45t-45,19t-45-19t-19-45l0-320 q0-26 19-45t 45-19t 45,19t 19,45z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"zoom-out, magnifier\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 512,400l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-288,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 288,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 576,416q0-92.5 -65.75-158.25t-158.25-65.75t-158.25,65.75t-65.75,158.25t 65.75,158.25t 158.25,65.75t 158.25-65.75t 65.75-158.25z M 832,832q0,26.5 -18.75,45.25t-45.25,18.75q-27,0 -45-19l-171.5-171q-89.5,62 -199.5,62q-71.5,0 -136.75-27.75t-112.5-75t-75-112.5t-27.75-136.75t 27.75-136.75t 75-112.5t 112.5-75t 136.75-27.75t 136.75,27.75t 112.5,75t 75,112.5t 27.75,136.75q0,110 -62,199.5l 171.5,171.5q 18.5,18.5 18.5,45z \" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"zoom-in, magnifier, enlarge\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 512,400l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-112,0 l0,112 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-112 l-112,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 112,0 l0-112 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,112 l 112,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 576,416q0-92.5 -65.75-158.25t-158.25-65.75t-158.25,65.75t-65.75,158.25t 65.75,158.25t 158.25,65.75t 158.25-65.75t 65.75-158.25zM 832,832q0,26.5 -18.75,45.25t-45.25,18.75q-27,0 -45-19l-171.5-171q-89.5,62 -199.5,62q-71.5,0 -136.75-27.75 t-112.5-75t-75-112.5t-27.75-136.75t 27.75-136.75t 75-112.5t 112.5-75t 136.75-27.75t 136.75,27.75t 112.5,75t 75,112.5t 27.75,136.75q0,110 -62,199.5l 171.5,171.5q 18.5,18.5 18.5,45z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"remove, cancel, close, delete, mutiply\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 649,661q0,20 -14,34l-68,68q-14,14 -34,14t-34-14l-147-147l-147,147q-14,14 -34,14t-34-14l-68-68q-14-14 -14-34t 14-34l 147-147l-147-147q-14-14 -14-34t 14-34l 68-68q 14-14 34-14t 34,14l 147,147l 147-147q 14-14 34-14t 34,14l 68,68q 14,14 14,34 t-14,34l-147,147l 147,147q 14,14 14,34z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"ok, checkmark, tick, correct\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 835.5,283q0,20 -14,34l-362,362l-68,68q-14,14 -34,14t-34-14l-68-68l-181-181q-14-14 -14-34t 14-34l 68-68q 14-14 34-14t 34,14l 147,147.5l 328-328.5q 14-14 34-14t 34,14l 68,68q 14,14 14,34z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"th-list, list, ul\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,624l0,96 q0,20 -14,34t-34,14l-160,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 160,0 q 20,0 34,14t 14,34zM 256,368l0,96 q0,20 -14,34t-34,14l-160,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 160,0 q 20,0 34,14t 14,34zM 896,624l0,96 q0,20 -14,34t-34,14l-480,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 480,0 q 20,0 34,14t 14,34zM 256,112l0,96 q0,20 -14,34t-34,14l-160,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 160,0 q 20,0 34,14t 14,34zM 896,368l0,96 q0,20 -14,34t-34,14l-480,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14 l 480,0 q 20,0 34,14t 14,34zM 896,112l0,96 q0,20 -14,34t-34,14l-480,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 480,0 q 20,0 34,14t 14,34z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"th, grid\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,624l0,96 q0,20 -14,34t-34,14l-160,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 160,0 q 20,0 34,14t 14,34zM 256,368l0,96 q0,20 -14,34t-34,14l-160,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 160,0 q 20,0 34,14t 14,34zM 576,624l0,96 q0,20 -14,34t-34,14l-160,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 160,0 q 20,0 34,14t 14,34zM 256,112l0,96 q0,20 -14,34t-34,14l-160,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 160,0 q 20,0 34,14t 14,34zM 576,368l0,96 q0,20 -14,34t-34,14l-160,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14 l 160,0 q 20,0 34,14t 14,34zM 896,624l0,96 q0,20 -14,34t-34,14l-160,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 160,0 q 20,0 34,14t 14,34zM 576,112l0,96 q0,20 -14,34t-34,14l-160,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 160,0 q 20,0 34,14t 14,34zM 896,368l0,96 q0,20 -14,34t-34,14l-160,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 160,0 q 20,0 34,14t 14,34zM 896,112l0,96 q0,20 -14,34t-34,14l-160,0 q-20,0 -34-14t-14-34l0-96 q0-20 14-34t 34-14l 160,0 q 20,0 34,14t 14,34z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"th-large, grid, icons\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 384,512l0,192 q0,26 -19,45t-45,19l-256,0 q-26,0 -45-19t-19-45l0-192 q0-26 19-45t 45-19l 256,0 q 26,0 45,19t 19,45zM 384,128l0,192 q0,26 -19,45t-45,19l-256,0 q-26,0 -45-19t-19-45l0-192 q0-26 19-45t 45-19l 256,0 q 26,0 45,19t 19,45zM 832,512l0,192 q0,26 -19,45t-45,19 l-256,0 q-26,0 -45-19t-19-45l0-192 q0-26 19-45t 45-19l 256,0 q 26,0 45,19t 19,45zM 832,128l0,192 q0,26 -19,45t-45,19l-256,0 q-26,0 -45-19t-19-45l0-192 q0-26 19-45t 45-19l 256,0 q 26,0 45,19t 19,45z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"960\" height=\"896\" viewBox=\"0 0 960 896\" data-du=\"\" data-tags=\"film, movie, video\" style=\"margin-left: 7px; margin-top: 8px;\"><path d=\"M 192,800l0-64 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13,0 -22.5,9.5t-9.5,22.5l0,64 q0,13 9.5,22.5t 22.5,9.5l 64,0 q 13,0 22.5-9.5t 9.5-22.5zM 192,608l0-64 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13,0 -22.5,9.5t-9.5,22.5l0,64 q0,13 9.5,22.5t 22.5,9.5l 64,0 q 13,0 22.5-9.5t 9.5-22.5zM 192,416l0-64 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13,0 -22.5,9.5t-9.5,22.5l0,64 q0,13 9.5,22.5t 22.5,9.5l 64,0 q 13,0 22.5-9.5t 9.5-22.5zM 704,800l0-256 q0-13 -9.5-22.5t-22.5-9.5l-384,0 q-13,0 -22.5,9.5t-9.5,22.5l0,256 q0,13 9.5,22.5t 22.5,9.5l 384,0 q 13,0 22.5-9.5t 9.5-22.5zM 192,224l0-64 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13,0 -22.5,9.5t-9.5,22.5l0,64 q0,13 9.5,22.5 t 22.5,9.5l 64,0 q 13,0 22.5-9.5t 9.5-22.5zM 896,800l0-64 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13,0 -22.5,9.5t-9.5,22.5l0,64 q0,13 9.5,22.5t 22.5,9.5l 64,0 q 13,0 22.5-9.5t 9.5-22.5zM 704,416l0-256 q0-13 -9.5-22.5t-22.5-9.5l-384,0 q-13,0 -22.5,9.5t-9.5,22.5l0,256 q0,13 9.5,22.5t 22.5,9.5l 384,0 q 13,0 22.5-9.5t 9.5-22.5zM 896,608l0-64 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13,0 -22.5,9.5t-9.5,22.5l0,64 q0,13 9.5,22.5t 22.5,9.5l 64,0 q 13,0 22.5-9.5t 9.5-22.5zM 896,416l0-64 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13,0 -22.5,9.5t-9.5,22.5l0,64 q0,13 9.5,22.5t 22.5,9.5l 64,0 q 13,0 22.5-9.5t 9.5-22.5zM 896,224l0-64 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13,0 -22.5,9.5 t-9.5,22.5l0,64 q0,13 9.5,22.5t 22.5,9.5l 64,0 q 13,0 22.5-9.5t 9.5-22.5zM 960,144l0,672 q0,33 -23.5,56.5t-56.5,23.5l-800,0 q-33,0 -56.5-23.5t-23.5-56.5l0-672 q0-33 23.5-56.5t 56.5-23.5l 800,0 q 33,0 56.5,23.5t 23.5,56.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"704\" height=\"896\" viewBox=\"0 0 704 896\" data-du=\"\" data-tags=\"user, profile, member\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 704,702.5q0,60 -36.5,94.75t-97,34.75l-437,0 q-60.5,0 -97-34.75t-36.5-94.75q0-26.5 1.75-51.75t 7-54.5t 13.25-54.25t 21.5-48.75t 31-40.5t 42.75-26.75t 55.75-10q 4.5,0 21,10.75t 37.25,24t 54,24t 66.75,10.75t 66.75-10.75t 54-24t 37.25-24t 21-10.75q 30.5,0 55.75,10t 42.75,26.75t 31,40.5 t 21.5,48.75t 13.25,54.25t 7,54.5t 1.75,51.75zM 544,256q0,79.5 -56.25,135.75t-135.75,56.25t-135.75-56.25t-56.25-135.75t 56.25-135.75t 135.75-56.25t 135.75,56.25t 56.25,135.75z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"star-empty, favorite, rate\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 568.5,502l 153-148.5l-211-31l-94.5-191l-94.5,191l-211,31l 153,148.5l-36.5,210.5l 189-99.5l 188.5,99.5zM 832,323.5q0,11 -13,24l-181.5,177l 43,250q 0.5,3.5 0.5,10q0,25 -20.5,25q-9.5,0 -20-6l-224.5-118l-224.5,118q-11,6 -20,6q-10.5,0 -15.75-7.25t-5.25-17.75q0-3 1-10l 43-250 l-182-177q-12.5-13.5 -12.5-24q0-18.5 28-23l 251-36.5l 112.5-227.5q 9.5-20.5 24.5-20.5t 24.5,20.5l 112.5,227.5l 251,36.5q 28,4.5 28,23z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"star, favorite, rate\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 832,323.5q0,11 -13,24l-181.5,177l 43,250q 0.5,3.5 0.5,10q0,10.5 -5.25,17.75t-15.25,7.25q-9.5,0 -20-6l-224.5-118l-224.5,118q-11,6 -20,6q-10.5,0 -15.75-7.25t-5.25-17.75q0-3 1-10l 43-250l-182-177q-12.5-13.5 -12.5-24q0-18.5 28-23l 251-36.5l 112.5-227.5q 9.5-20.5 24.5-20.5t 24.5,20.5l 112.5,227.5 l 251,36.5q 28,4.5 28,23z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"heart, love, like\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,832q-13,0 -22-9l-312-301q-5-4 -13.75-13t-27.75-32.75t-34-48.75t-26.75-60.5t-11.75-69q0-110 63.5-172t 175.5-62q 31,0 63.25,10.75t 60,29t 47.75,34.25t 38,34q 18-18 38-34t 47.75-34.25t 60-29t 63.25-10.75q 112,0 175.5,62t 63.5,172q0,110.5 -114.5,225l-311.5,300 q-9,9 -22,9z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"envelope, letter, email, mail, contact\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 832,752l0-384 q-16,18 -34.5,33q-134,103 -213,169q-25.5,21.5 -41.5,33.5t-43.25,24.25t-51.25,12.25l-0.5,0 l-0.5,0 q-24,0 -51.25-12.25t-43.25-24.25t-41.5-33.5q-79-66 -213-169q-18.5-15 -34.5-33l0,384 q0,6.5 4.75,11.25t 11.25,4.75l 736,0 q 6.5,0 11.25-4.75t 4.75-11.25zM 832,226.5l0-5.5 l0-6.75 t-0.25-6.5 t-1.5-6.25t-2.75-4.5t-4.5-3.75t-7-1.25l-736,0 q-6.5,0 -11.25,4.75t-4.75,11.25q0,84 73.5,142q 96.5,76 200.5,158.5q 3,2.5 17.5,14.75t 23,18.75t 22.25,15.75t 25.25,13.75t 21.5,4.5l 0.5,0 l 0.5,0 q 10,0 21.5-4.5t 25.25-13.75t 22.25-15.75t 23-18.75t 17.5-14.75q 104-82.5 200.5-158.5q 27-21.5 50.25-57.75t 23.25-65.75z M 896,208l0,544 q0,33 -23.5,56.5t-56.5,23.5l-736,0 q-33,0 -56.5-23.5t-23.5-56.5l0-544 q0-33 23.5-56.5t 56.5-23.5l 736,0 q 33,0 56.5,23.5t 23.5,56.5z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"832\" height=\"896\" viewBox=\"0 0 832 896\" data-du=\"\" data-tags=\"search, magnifier, lookup, find\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 576,416q0-92.5 -65.75-158.25t-158.25-65.75t-158.25,65.75t-65.75,158.25t 65.75,158.25t 158.25,65.75t 158.25-65.75t 65.75-158.25zM 832,832q0,26 -19,45t-45,19q-27,0 -45-19l-171.5-171q-89.5,62 -199.5,62q-71.5,0 -136.75-27.75t-112.5-75t-75-112.5t-27.75-136.75 t 27.75-136.75t 75-112.5t 112.5-75t 136.75-27.75t 136.75,27.75t 112.5,75t 75,112.5t 27.75,136.75q0,110 -62,199.5l 171.5,171.5q 18.5,18.5 18.5,45z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"768\" height=\"896\" viewBox=\"0 0 768 896\" data-du=\"\" data-tags=\"music, song, sound\" style=\"margin-left: 9px; margin-top: 8px;\"><path d=\"M 768,112l0,560 q0,25 -17,44.5t-43,30.25t-51.75,16t-48.25,5.25t-48.25-5.25t-51.75-16t-43-30.25t-17-44.5t 17-44.5t 43-30.25t 51.75-16t 48.25-5.25q 52.5,0 96,19.5l0-268.5 l-384,118.5l0,354.5 q0,25 -17,44.5t-43,30.25t-51.75,16t-48.25,5.25t-48.25-5.25t-51.75-16t-43-30.25t-17-44.5 t 17-44.5t 43-30.25t 51.75-16t 48.25-5.25q 52.5,0 96,19.5l0-483.5 q0-15.5 9.5-28.25t 24.5-17.75l 416-128q 6-2 14-2q 20,0 34,14t 14,34z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>","<svg width=\"896\" height=\"896\" viewBox=\"0 0 896 896\" data-du=\"\" data-tags=\"glass, drink\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 849.5,93q0,17.5 -21.5,39l-316,316l0,384 l 160,0 q 13,0 22.5,9.5t 9.5,22.5t-9.5,22.5t-22.5,9.5l-448,0 q-13,0 -22.5-9.5t-9.5-22.5t 9.5-22.5t 22.5-9.5l 160,0 l0-384 l-316-316q-21.5-21.5 -21.5-39q0-11.5 9-18.25t 19-8.75t 21.5-2l 704,0 q 11.5,0 21.5,2t 19,8.75t 9,18.25z\" transform=\"scale(0.017857142857142856 0.017857142857142856)\"></path></svg>"]},{"metadata":{"id":"icomoon-ultimate","name":"IcoMoon - Ultimate","link":"http://icomoon.io/#icons","grid":"16","author":"Keyamoon","authorLink":"http://keyamoon.com/","license":"Royalty Free","licenseLink":"http://icomoon.io/#icons#license","defaultunicode":false},"svgs":["<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"IcoMoon\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 129.772,255.999A59.223,59.223 12600 1 1 248.218,255.999A59.223,59.223 12600 1 1 129.772,255.999zM 256.002,0C 114.615,0,0,114.616,0,256s 114.613,256, 256.002,256C 397.384,512, 512,397.385, 512,256\n\t\tC 512,114.616, 397.385,0, 256.002,0z M 189.698,479.641C 112.72,434.854, 60.964,351.479, 60.964,256\n\t\tc0-95.479, 51.756-178.854, 128.731-223.641C 266.7,77.14, 318.49,160.503, 318.49,256C 318.49,351.494, 266.7,434.859, 189.698,479.641z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"safari, browser, internet\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,32c-12.032,0-23.854,0.896-35.412,2.606c-0.15-0.391-0.312-0.774-0.491-1.148c 6.413-5.001, 9.775-11.915, 8.317-18.776\n\t\tC 226.547,5.9, 217.217,0, 205.197,0c-2.59,0-5.229,0.281-7.84,0.836c-15.084,3.207-25.073,14.311-22.741,25.281\n\t\tc 1.417,6.669, 7.146,11.669, 15.082,13.692c-0.016,0.486-0.008,0.975, 0.021,1.467C 89.408,70.041, 16,162.445, 16,272\n\t\tc0,132.549, 107.452,240, 240,240c 132.549,0, 240-107.451, 240-240C 496,139.452, 388.549,32, 256,32z M 182.441,24.454\n\t\tc-1.353-6.363, 6.24-13.595, 16.579-15.792C 201.086,8.223, 203.165,8, 205.197,8c 8.018,0, 14.347,3.432, 15.392,8.345\n\t\tc 0.798,3.755-1.535,7.805-5.693,10.952c-3.517-2.483-8.008-3.563-12.55-2.598c-4.522,0.961-8.174,3.754-10.379,7.428\n\t\tC 186.875,30.902, 183.213,28.085, 182.441,24.454z M 384.693,400.693c-21.984,21.984-48.605,37.639-77.655,46.077l-21.198-34.384\n\t\tl-5.373,39.979C 272.422,453.441, 264.254,454, 256,454c-48.614,0-94.318-18.932-128.693-53.307\n\t\tc-21.984-21.983-37.639-48.605-46.077-77.654l 34.384-21.199l-39.98-5.373C 74.559,288.422, 74,280.254, 74,272\n\t\tc0-48.614, 18.931-94.318, 53.307-128.693c 21.984-21.984, 48.606-37.639, 77.655-46.078l 21.198,34.385l 5.374-39.98\n\t\tC 239.578,90.559, 247.746,90, 256,90c 48.614,0, 94.318,18.931, 128.693,53.307c 21.984,21.984, 37.639,48.606, 46.077,77.655\n\t\tl-34.385,21.199l 39.98,5.373C 437.441,255.578, 438,263.746, 438,272C 438,320.614, 419.068,366.318, 384.693,400.693zM 380.451,147.549l-98.489,74.852c-7.322-3.829-15.438-6.031-23.708-6.363l-25.54-53.59l-1.534,59.332\n\t\tc-6.642,3.268-12.552,7.832-17.438,13.475l-31.544-11.182l 23.046,24.269c-3.167,6.759-4.933,14.015-5.217,21.412l-53.579,25.533\n\t\tl 59.369,1.534c 0.19,0.384, 0.387,0.763, 0.585,1.141l-74.852,98.49l 98.489-74.852c 7.322,3.828, 15.437,6.030, 23.708,6.362l 25.54,53.591\n\t\tl 1.533-59.332c 6.643-3.269, 12.553-7.832, 17.439-13.476l 31.545,11.184l-23.047-24.27c 3.168-6.76, 4.934-14.015, 5.218-21.412\n\t\tl 53.578-25.533l-59.368-1.535c-0.189-0.383-0.387-0.762-0.585-1.14L 380.451,147.549z M 256.051,222.267l0,1.724 L 256.051,222.267 \n\t\tL 256.051,222.267z M 246.021,225.049c 3.363-0.715, 6.722-1.059, 10.028-1.059c 2.072,0, 4.125,0.135, 6.147,0.398l 0.046,0.016\n\t\tl-0.005-0.011c 4.366,0.572, 8.588,1.75, 12.566,3.448l-35.773,27.188l-27.19,35.776c-1.188-2.797-2.135-5.742-2.79-8.826\n\t\tC 203.537,256.049, 220.090,230.561, 246.021,225.049z M 281.060,312.942L 281.060,312.942L 281.060,312.942\n\t\tc-4.528,2.772-9.591,4.842-15.080,6.009c-3.363,0.715-6.722,1.059-10.027,1.059c-2.075,0-4.129-0.136-6.154-0.399l-0.039-0.015\n\t\tl 0.005,0.010c-4.367-0.571-8.587-1.75-12.566-3.447l 35.772-27.188l 27.19-35.777c 1.188,2.797, 2.135,5.743, 2.79,8.827\n\t\tC 307.296,282.462, 297.923,302.621, 281.060,312.942z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"opera, browser, internet\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 255.023,0C 115.161,0, 14.649,101.448, 14.649,253.612C 14.649,389.021, 112.4,512, 255.041,512\n\tc 144.039,0, 242.31-122.943, 242.31-258.388C 497.351,100.232, 393.628,0, 255.023,0z M 344.179,249.271\n\tc-0.034,84.676-4.549,205.241-89.138,205.241l0,0.017 c-83.392,0-86.716-120.633-86.716-205.154c0-99.19, 9.28-194.284, 86.716-194.284\n\tC 332.478,55.091, 344.179,151.383, 344.179,249.271z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"IE, browser, internet explorer\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 367.101,314.415l 118.025,0 c 0.91-8.185, 1.274-16.549, 1.274-25.098c0-40.112-10.767-77.734-29.562-110.133\n\tc 19.44-51.654, 18.746-95.494-7.278-121.695c-24.748-24.64-91.145-20.64-166.206,12.599c-5.552-0.42-11.159-0.636-16.819-0.636\n\tc-103.024,0-189.463,70.897-213.354,166.425C 85.5,194.5, 119.5,164.5, 164.92,142.653c-4.13,3.87-28.227,27.826-32.28,31.882\n\tC 12.866,294.274-24.905,450.688, 15.737,491.337c 30.893,30.887, 86.879,25.671, 151.188-5.824\n\tc 29.903,15.229, 63.75,23.815, 99.609,23.815c 96.567,0, 178.402-62.158, 208.045-148.724L 355.645,360.604 \n\tc-16.367,30.191-48.374,50.74-85.109,50.74c-36.734,0-68.742-20.549-85.108-50.74c-7.275-13.637-11.457-29.277-11.457-45.828l0-0.361 \n\tL 367.101,314.415 z M 174.151,256.402c 2.728-48.555, 43.1-87.292, 92.383-87.292c 49.283,0, 89.656,38.736, 92.383,87.292L 174.151,256.402 z M 448.483,81.904\n\tc 16.763,16.94, 16.344,48.107, 2.006,87.011c-24.568-37.454-60.259-66.968-102.396-83.82\n\tC 393.146,65.776, 429.796,63.217, 448.483,81.904z M 46.741,483.628c-21.391-21.398-14.942-66.309, 12.615-120.416\n\tc 17.154,48.135, 50.578,88.545, 93.668,114.577C 105.309,499.448, 66.256,503.126, 46.741,483.628z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"firefox, browser, internet\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 511.263,167.070l-5.93,38.040c0,0-8.477-70.428-18.866-96.757c-15.923-40.344-23.007-40.020-23.054-39.961\n\tc 10.665,27.102, 8.731,41.662, 8.731,41.662s-18.896-51.499-68.856-67.884c-55.343-18.141-85.285-13.182-88.744-12.243\n\tc-0.525-0.004-1.032-0.005-1.515-0.005c 0.409,0.031, 0.806,0.073, 1.213,0.106c-0.017,0.010-0.045,0.021-0.041,0.026\n\tc 0.225,0.274, 61.153,10.651, 71.958,25.498c0,0-25.88,0-51.636,7.421c-1.164,0.333, 94.762,11.982, 114.373,107.837\n\tc0,0-10.515-21.938-23.52-25.664c 8.553,26.018, 6.357,75.388-1.788,99.925c-1.048,3.156-2.12-13.641-18.164-20.875\n\tc 5.14,36.823-0.308,95.228-25.854,111.316c-1.991,1.252, 16.015-57.655, 3.621-34.881c-71.354,109.401-155.702,50.486-193.624,24.555\n\tc 19.433,4.231, 56.327-0.659, 72.657-12.806c 0.021-0.015, 0.039-0.028, 0.059-0.043c 17.734-12.126, 28.236-20.982, 37.667-18.886\n\tc 9.437,2.107, 15.719-7.363, 8.39-15.765c-7.338-8.419-25.157-19.989-49.262-13.683c-17,4.452-38.067,23.261-70.224,4.216\n\tc-24.682-14.625-27.006-26.773-27.225-35.188c 0.609-2.983, 1.377-5.768, 2.288-8.312c 2.841-7.935, 11.456-10.329, 16.247-12.219\n\tc 8.128,1.396, 15.131,3.931, 22.484,7.703c 0.095-2.447, 0.126-5.695-0.009-9.38c 0.705-1.401, 0.269-5.626-0.861-10.79\n\tc-0.651-5.154-1.71-10.487-3.376-15.346c 0.006-0.001, 0.010-0.005, 0.015-0.007c 0.028-0.009, 0.054-0.020, 0.078-0.035\n\tc 0.039-0.022, 0.073-0.056, 0.104-0.095c 0.006-0.010, 0.015-0.017, 0.022-0.026c 0.041-0.062, 0.077-0.136, 0.099-0.233\n\tc 0.51-2.309, 6.011-6.762, 12.859-11.55c 6.136-4.29, 13.351-8.848, 19.034-12.376c 5.030-3.124, 8.86-5.441, 9.673-6.049\n\tc 0.309-0.233, 0.679-0.506, 1.082-0.818c 0.075-0.058, 0.15-0.116, 0.227-0.177c 0.047-0.037, 0.095-0.074, 0.143-0.113\n\tc 2.705-2.154, 6.742-6.224, 7.589-14.789c 0.002-0.021, 0.005-0.040, 0.006-0.061c 0.025-0.252, 0.046-0.507, 0.065-0.767\n\tc 0.014-0.181, 0.025-0.363, 0.036-0.548c 0.007-0.142, 0.016-0.283, 0.022-0.428c 0.015-0.337, 0.025-0.682, 0.030-1.032\n\tc0-0.020, 0.001-0.038, 0.002-0.058c 0.011-0.829-0.003-1.693-0.052-2.601c-0.027-0.507-0.063-0.965-0.149-1.381\n\tc-0.004-0.022-0.009-0.046-0.014-0.068c-0.009-0.041-0.018-0.082-0.029-0.122c-0.018-0.073-0.038-0.146-0.061-0.215\n\tc-0.003-0.009-0.005-0.016-0.008-0.023c-0.026-0.080-0.056-0.157-0.087-0.232c-0.002-0.003-0.002-0.005-0.003-0.008\n\tc-0.877-2.054-4.16-2.829-17.721-3.059c-0.013-0.001-0.025-0.001-0.038-0.001l0,0c-5.533-0.094-12.769-0.097-22.251-0.059\n\tc-16.625,0.067-25.814-16.252-28.747-22.566c 4.020-22.23, 15.638-38.071, 34.725-48.813c 0.361-0.203, 0.29-0.371-0.137-0.489\n\tc 3.732-2.257-45.123-0.062-67.593,28.518c-19.944-4.957-37.327-4.623-52.308-1.107c-2.877-0.081-6.462-0.44-10.717-1.326\n\tc-9.962-9.028-24.224-25.701-24.988-45.604c0,0-0.046,0.036-0.126,0.102c-0.010-0.191-0.028-0.38-0.036-0.571\n\tc0,0-30.358,23.332-25.814,86.941c-0.011,1.018-0.032,1.993-0.060,2.937c-8.216,11.144-12.293,20.51-12.596,22.578\n\tC 13.398,163.178, 6.011,185.483,0,219.346c0,0, 4.204-13.333, 12.642-28.433c-6.206,19.011-11.082,48.578-8.218,92.928\n\tc0,0, 0.757-9.833, 3.437-23.997c 2.093,27.505, 11.259,61.462, 34.429,101.394c 44.474,76.66, 112.835,115.37, 188.396,121.308\n\tc 13.418,1.106, 27.025,1.132, 40.712,0.093c 1.258-0.089, 2.516-0.182, 3.775-0.287c 15.482-1.087, 31.067-3.426, 46.619-7.183\n\tC 534.378,423.77, 511.263,167.070, 511.263,167.070z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"chrome, browser, internet\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 129.139,223.271 L 55.873,96.37 C 102.782,37.638 174.99,0 256,0 C 349.716,0 431.655,50.368 476.266,125.5 L 267.381,125.5 C 263.629,125.175 259.835,125 256,125 C 195.063,125 143.711,166.822 129.139,223.271 ZM 347.653,162.5 L 494.383,162.5 C 505.753,191.465 512,223.002 512,256 C 512,396.413 398.95,510.402 258.907,511.963 L 363.604,330.624 C 378.344,309.435 387,283.711 387,256 C 387,219.415 371.918,186.29 347.653,162.5 ZM 163,256 C 163,204.72 204.72,163 256,163 C 307.28,163 349,204.72 349,256 C 349,307.28 307.28,349 256,349 C 204.72,349 163,307.28 163,256 ZM 291.091,382.221 L 217.802,509.16 C 94.536,490.718 0,384.402 0,256 C 0,210.391 11.942,167.577 32.848,130.488 L 137.363,311.515 C 158.297,356.071 203.601,387 256,387 C 268.15,387 279.918,385.33 291.091,382.221 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"css3, w3c\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 76.194,24.261L 59.014,110.224L 408.888,110.224L 397.946,165.751L 47.852,165.751L 30.906,251.7L 380.748,251.7L 361.239,349.732L 220.233,396.443L 98.033,349.732L 106.397,307.211L 20.448,307.211L0,410.387L 202.113,487.739L 435.116,410.387L 512,24.261 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"html5, w3c\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 30.269,0l 41.072,460.815L 255.719,512l 184.862-51.262L 481.731,0L 30.269,0 z M 405.381,431.412L 256.768,472.6l0,0.233 \n\t\tl-0.388-0.117l-0.391,0.117L 255.989,472.6 l-148.611-41.188L 72.257,37.669l 368.248,0 L 405.381,431.412zM 325.377,265.102L 318.842,338.378L 255.874,355.374L 255.737,355.413L 192.806,338.455L 188.781,293.338L 132.036,293.338L 139.951,382.094L 255.737,414.221L 255.797,414.221L 255.874,414.221L 255.989,414.182L 371.66,382.094L 387.18,208.588L 181.197,208.588L 176.046,150.714L 392.117,150.714L 392.313,150.714L 397.369,94.201L 114.26,94.201L 129.509,265.102 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"html5, w3c\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 30.269,0l 41.072,460.815L 255.719,512l 184.862-51.262L 481.731,0L 30.269,0 z M 392.315,150.714l-0.195,0 L 176.045,150.714 l 5.151,57.875\n\tL 387.18,208.589 l-15.521,173.505L 255.99,414.182l-0.115,0.039l-0.077,0 l-0.061,0 l-115.786-32.127l-7.915-88.756l 56.747,0 l 4.024,45.116\n\tl 62.931,16.958l 0.139-0.039l 62.967-16.996l 6.535-73.275L 129.509,265.102 L 114.262,94.202l 283.107,0 L 392.315,150.714z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-css, file, format, code, css\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,305.723L 192,248.61 c0-7.564, 3.348-14.718, 9.427-20.143c 6.080-5.424, 14.096-8.413, 22.573-8.413l0-28.555 \n\t\tc-35.2,0-64,25.7-64,57.111l0,42.833 c0,7.886-7.164,14.279-16,14.279l-16,0 l0,28.555 l 16,0 c 8.837,0, 16,6.395, 16,14.279l0,42.838 \n\t\tc0,31.407, 28.8,57.107, 64,57.107l0-28.556 c-8.477,0-16.494-2.988-22.573-8.413c-6.079-5.426-9.427-12.577-9.427-20.139l0-57.117 \n\t\tc0-7.885-7.164-14.277-16-14.277C 184.837,320, 192,313.605, 192,305.723zM 320,334.277l0,57.117 c0,7.562-3.348,14.713-9.427,20.139c-6.079,5.425-14.095,8.413-22.573,8.413l0,28.556 \n\t\tc 35.201,0, 64-25.7, 64-57.107l0-42.838 c0-7.886, 7.164-14.279, 16-14.279l 16,0 l0-28.555 l-16,0 c-8.836,0-16-6.395-16-14.279L 352,248.61 \n\t\tc0-31.412-28.799-57.111-64-57.111l0,28.555 c 8.479,0, 16.494,2.989, 22.573,8.415c 6.080,5.424, 9.427,12.578, 9.427,20.142l0,57.114 \n\t\tc0,7.883, 7.164,14.276, 16,14.276C 327.164,320, 320,326.395, 320,334.277zM 451.716,99.715l-71.432-71.431C 364.728,12.728, 334,0, 312,0L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 368,0 \n\t\tc 22,0, 40-18, 40-40L 480,168 C 480,146, 467.272,115.271, 451.716,99.715z M 429.089,122.343c 1.565,1.565, 3.125,3.487, 4.64,5.657L 352,128 L 352,46.272 \n\t\tc 2.17,1.515, 4.092,3.075, 5.657,4.64L 429.089,122.343z M 448,472c0,4.336-3.664,8-8,8L 72,480 c-4.336,0-8-3.664-8-8L 64,40 \n\t\tc0-4.336, 3.664-8, 8-8l 240,0 c 2.416,0, 5.127,0.305, 8,0.852L 320,160 l 127.148,0 c 0.547,2.873, 0.852,5.583, 0.852,8L 448,472 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-xml, file, format, code, html, xml\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,288L 192,256L 96,352L 192,448L 224,416L 160,352 \tzM 288,416L 320,448L 416,352L 320,256L 288,288L 352,352 \tzM 451.716,99.715l-71.432-71.431C 364.728,12.728, 334,0, 312,0L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 368,0 \n\t\tc 22,0, 40-18, 40-40L 480,168 C 480,146, 467.272,115.271, 451.716,99.715z M 429.089,122.343c 1.565,1.565, 3.125,3.487, 4.64,5.657L 352,128 L 352,46.272 \n\t\tc 2.17,1.515, 4.092,3.075, 5.657,4.64L 429.089,122.343z M 448,472c0,4.336-3.664,8-8,8L 72,480 c-4.336,0-8-3.664-8-8L 64,40 \n\t\tc0-4.336, 3.664-8, 8-8l 240,0 c 2.416,0, 5.127,0.305, 8,0.852L 320,160 l 127.148,0 c 0.547,2.873, 0.852,5.583, 0.852,8L 448,472 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-powerpoint\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,256l 96,0 l0,32 L 96,288 L 96,256 z M 96,320l 96,0 l0,32 L 96,352 L 96,320 z M 96,384l 96,0 l0,32 L 96,416 L 96,384 z M 451.716,99.715l-71.432-71.431\n\tC 364.728,12.728, 334,0, 312,0L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 368,0 c 22,0, 40-18, 40-40L 480,168 \n\tC 480,146, 467.272,115.271, 451.716,99.715z M 429.089,122.343c 1.565,1.565, 3.125,3.487, 4.64,5.657L 352,128 L 352,46.272 \n\tc 2.17,1.515, 4.092,3.075, 5.657,4.64L 429.089,122.343z M 448,472c0,4.336-3.664,8-8,8L 72,480 c-4.336,0-8-3.664-8-8L 64,40 c0-4.336, 3.664-8, 8-8\n\tl 240,0 c 2.416,0, 5.127,0.305, 8,0.852L 320,160 l 127.148,0 c 0.547,2.873, 0.852,5.583, 0.852,8L 448,472 zM 288,352 L 382.396,352 C 374.983,388.516 342.703,416 304,416 C 259.817,416 224,380.183 224,336 C 224,297.297 251.485,265.017 288,257.604 L 288,352 ZM 336,224 C 380.183,224 416,259.817 416,304 C 416,309.479 415.446,314.83 414.396,320 L 320,320 L 320,225.604 C 325.17,224.554 330.521,224 336,224 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-zip, zip\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 208,64L 256,64L 256,96L 208,96zM 160,96L 208,96L 208,128L 160,128zM 208,128L 256,128L 256,160L 208,160zM 160,160L 208,160L 208,192L 160,192zM 208,192L 256,192L 256,224L 208,224zM 160,224L 208,224L 208,256L 160,256zM 208,256l0,32 l-48,0 l0,112 c0,8.837, 7.163,16, 16,16l 64,0 c 8.837,0, 16-7.163, 16-16L 256,256 L 208,256 z M 240,384l-64,0 l0-32 l 64,0 L 240,384 zM 451.716,99.715l-71.432-71.431C 364.728,12.728, 334,0, 312,0L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 368,0 \n\t\tc 22,0, 40-18, 40-40L 480,168 C 480,146, 467.272,115.271, 451.716,99.715z M 429.089,122.343c 1.565,1.565, 3.125,3.487, 4.64,5.657L 352,128 L 352,46.272 \n\t\tc 2.17,1.515, 4.092,3.075, 5.657,4.64L 429.089,122.343z M 448,472c0,4.336-3.664,8-8,8L 72,480 c-4.336,0-8-3.664-8-8L 64,40 \n\t\tc0-4.336, 3.664-8, 8-8l 240,0 c 2.416,0, 5.127,0.305, 8,0.852L 320,160 l 127.148,0 c 0.547,2.873, 0.852,5.583, 0.852,8L 448,472 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-excel, file, format, excel, xlc\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 371.514,192L 303.867,192L 256.001,262.516L 208.131,192L 140.487,192L 221.568,313.232L 130.081,448L 261.201,448L 261.201,402.212L 230.923,402.212L 256.001,364.715L 311.699,448L 381.92,448L 290.432,313.232 \tzM 451.716,99.715l-71.432-71.431C 364.728,12.728, 334,0, 312,0L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 368,0 \n\t\tc 22,0, 40-18, 40-40L 480,168 C 480,146, 467.272,115.271, 451.716,99.715z M 429.089,122.343c 1.565,1.565, 3.125,3.487, 4.64,5.657L 352,128 L 352,46.272 \n\t\tc 2.17,1.515, 4.092,3.075, 5.657,4.64L 429.089,122.343z M 448,472c0,4.336-3.664,8-8,8L 72,480 c-4.336,0-8-3.664-8-8L 64,40 \n\t\tc0-4.336, 3.664-8, 8-8l 240,0 c 2.416,0, 5.127,0.305, 8,0.852L 320,160 l 127.148,0 c 0.547,2.873, 0.852,5.583, 0.852,8L 448,472 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-word, file, format, word, docx\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 319.889,237.946L 341.995,237.946L 316.489,351.035L 283.326,192.030L 230.051,192.030L 191.494,351.035L 162.586,192.030L 106.889,192.030L 163.435,447.971L 217.854,447.971L 256.001,296.617L 290.129,447.971L 340.297,447.971L 405.112,192.030L 319.889,192.030 \t\n\t\tzM 451.716,99.715l-71.432-71.431C 364.728,12.728, 334,0, 312,0L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 368,0 \n\t\tc 22,0, 40-18, 40-40L 480,168 C 480,146, 467.272,115.271, 451.716,99.715z M 429.089,122.343c 1.565,1.565, 3.125,3.487, 4.64,5.657L 352,128 L 352,46.272 \n\t\tc 2.17,1.515, 4.092,3.075, 5.657,4.64L 429.089,122.343z M 448,472c0,4.336-3.664,8-8,8L 72,480 c-4.336,0-8-3.664-8-8L 64,40 \n\t\tc0-4.336, 3.664-8, 8-8l 240,0 c 2.416,0, 5.127,0.305, 8,0.852L 320,160 l 127.148,0 c 0.547,2.873, 0.852,5.583, 0.852,8L 448,472 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-openoffice, file, format, openoffice, open office\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 345.11,235.841c-30.334-14.326-68.986-17.21-97.417,3.024c 34.57-3.302, 72.479,2.419, 97.553,28.562\n\t\t\tc 24-27.54, 62.057-32.703, 96.479-29.866C 412.981,218.489, 375.115,221.049, 345.11,235.841zM 332.824,302.875c-34.189-0.789-67.217,11.586-95.55,30.052c-53.588-22.794-121.368-18.562-167.001,19.491\n\t\t\tc 13.165-0.467, 26.003-3.723, 39.028-5.396c 47.591-4.744, 98.294,7.071, 134.256,39.912c 14.886-21.771, 35.822-39.121, 59.826-49.961\n\t\t\tc 31.537-15.26, 67.080-16.842, 101.41-17.26C 383.949,305.389, 357.485,302.736, 332.824,302.875zM 451.716,99.715l-71.432-71.431C 364.728,12.728, 334,0, 312,0L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 368,0 \n\t\tc 22,0, 40-18, 40-40L 480,168 C 480,146, 467.272,115.271, 451.716,99.715z M 429.089,122.343c 1.565,1.565, 3.125,3.487, 4.64,5.657L 352,128 L 352,46.272 \n\t\tc 2.17,1.515, 4.092,3.075, 5.657,4.64L 429.089,122.343z M 448,472c0,4.336-3.664,8-8,8L 72,480 c-4.336,0-8-3.664-8-8L 64,40 \n\t\tc0-4.336, 3.664-8, 8-8l 240,0 c 2.416,0, 5.127,0.305, 8,0.852L 320,160 l 127.148,0 c 0.547,2.873, 0.852,5.583, 0.852,8L 448,472 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-pdf, file, format, pdf\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 421.006,294.74c-6.824-6.723-21.957-10.283-44.986-10.586c-15.589-0.172-34.351,1.201-54.085,3.964\n\t\tc-8.837-5.099-17.946-10.647-25.094-17.329c-19.231-17.958-35.284-42.886-45.288-70.297c 0.652-2.56, 1.207-4.81, 1.724-7.106\n\t\tc0,0, 10.833-61.53, 7.965-82.333c-0.395-2.853-0.637-3.681-1.404-5.898l-0.941-2.417c-2.948-6.796-8.724-13.997-17.783-13.604\n\t\tl-5.312-0.169l-0.146-0.003c-10.1,0-18.332,5.166-20.493,12.887c-6.569,24.217, 0.209,60.446, 12.491,107.369l-3.144,7.643\n\t\tc-8.794,21.438-19.815,43.030-29.539,62.079l-1.264,2.476c-10.23,20.019-19.512,37.013-27.927,51.411l-8.688,4.594\n\t\tc-0.632,0.334-15.522,8.209-19.014,10.322c-29.628,17.691-49.261,37.77-52.518,53.708c-1.036,5.085-0.265,11.593, 5.007,14.607\n\t\tl 8.403,4.229c 3.645,1.826, 7.489,2.751, 11.427,2.751c 21.102,0, 45.6-26.286, 79.348-85.183\n\t\tc 38.965-12.684, 83.327-23.228, 122.207-29.045c 29.629,16.684, 66.071,28.273, 89.071,28.273c 4.084,0, 7.606-0.389, 10.466-1.148\n\t\tc 4.411-1.168, 8.129-3.683, 10.396-7.096c 4.463-6.716, 5.367-15.966, 4.156-25.438C 425.68,300.589, 423.435,297.113, 421.006,294.74z\n\t\t M 105.823,407.024c 3.848-10.521, 19.080-31.322, 41.602-49.778c 1.416-1.148, 4.904-4.416, 8.097-7.451\n\t\tC 131.971,387.357, 116.199,402.328, 105.823,407.024z M 239.217,99.843c 6.783,0, 10.642,17.097, 10.962,33.127\n\t\tc 0.32,16.030-3.429,27.28-8.079,35.604c-3.851-12.324-5.713-31.75-5.713-44.452C 236.387,124.122, 236.104,99.843, 239.217,99.843z\n\t\t M 199.426,318.747c 4.725-8.458, 9.641-17.378, 14.665-26.839c 12.246-23.158, 19.979-41.278, 25.739-56.173\n\t\tc 11.455,20.842, 25.722,38.56, 42.493,52.756c 2.092,1.771, 4.309,3.551, 6.637,5.325C 254.855,300.564, 225.378,308.771, 199.426,318.747z\n\t\t M 414.452,316.826c-2.077,1.299-8.027,2.050-11.854,2.050c-12.353,0-27.636-5.647-49.063-14.833\n\t\tc 8.234-0.609, 15.781-0.919, 22.55-0.919c 12.391,0, 16.060-0.054, 28.175,3.036S 416.529,315.527, 414.452,316.826zM 451.716,99.715l-71.432-71.431C 364.728,12.728, 334,0, 312,0L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 368,0 \n\t\tc 22,0, 40-18, 40-40L 480,168 C 480,146, 467.272,115.271, 451.716,99.715z M 429.089,122.343c 1.565,1.565, 3.125,3.487, 4.64,5.657L 352,128 L 352,46.272 \n\t\tc 2.17,1.515, 4.092,3.075, 5.657,4.64L 429.089,122.343z M 448,472c0,4.336-3.664,8-8,8L 72,480 c-4.336,0-8-3.664-8-8L 64,40 \n\t\tc0-4.336, 3.664-8, 8-8l 240,0 c 2.416,0, 5.127,0.305, 8,0.852L 320,160 l 127.148,0 c 0.547,2.873, 0.852,5.583, 0.852,8L 448,472 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"libreoffice, file\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 267.313,11.314C 261.091,5.092, 248.8,0, 240,0L 48,0 c-8.8,0-16,7.2-16,16l0,480 c0,8.8, 7.2,16, 16,16l 384,0 c 8.8,0, 16-7.2, 16-16L 448,208 \n\t\tc0-8.8-5.091-21.091-11.313-27.313L 267.313,11.314z M 416,480L 64,480 L 64,32 l 175.579,0 c 1.458,0.24, 4.204,1.377, 5.405,2.239l 168.778,168.777\n\t\tc 0.861,1.201, 1.998,3.947, 2.238,5.405L 416,480 zM 432,0l-96,0 c-8.8,0-10.909,5.091-4.687,11.313l 105.373,105.373C 442.909,122.909, 448,120.8, 448,112L 448,16 C 448,7.2, 440.8,0, 432,0\n\t\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"yelp, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 304.438,326.734c-8.641,8.713-1.334,24.564-1.334,24.564l 65.045,108.609c0,0, 10.68,14.32, 19.932,14.32\n\t\tc 9.295,0, 18.477-7.635, 18.477-7.635l 51.422-73.504c0,0, 5.18-9.273, 5.299-17.396c 0.186-11.553-17.227-14.717-17.227-14.717\n\t\tl-121.744-39.096C 324.307,321.881, 312.379,318.715, 304.438,326.734zM 298.266,271.992c 6.23,10.564, 23.414,7.486, 23.414,7.486l 121.469-35.503c0,0, 16.553-6.733, 18.916-15.709\n\t\tc 2.32-8.977-2.73-19.811-2.73-19.811l-58.049-68.376c0,0-5.031-8.646-15.469-9.516c-11.508-0.979-18.59,12.949-18.59,12.949\n\t\tl-68.635,108.005C 298.592,251.519, 292.525,262.275, 298.266,271.992zM 240.877,229.884c 14.304-3.522, 16.574-24.302, 16.574-24.302l-0.972-172.935c0,0-2.157-21.333-11.743-27.116\n\t\tc-15.035-9.121-19.491-4.359-23.798-3.722L 120.090,39.281c0,0-9.877,3.268-15.021,11.509c-7.345,11.676, 7.464,28.772, 7.464,28.772\n\t\tL 217.355,222.44C 217.355,222.44, 227.7,233.138, 240.877,229.884zM 215.972,299.869c 0.361-13.338-16.015-21.35-16.015-21.35L 91.559,223.757c0,0-16.063-6.623-23.861-2.008\n\t\tc-5.975,3.53-11.268,9.92-11.786,15.567l-7.060,86.906c0,0-1.058,15.057, 2.845,21.91c 5.527,9.721, 23.714,2.951, 23.714,2.951\n\t\tl 126.548-27.971C 206.875,317.807, 215.496,317.51, 215.972,299.869zM 247.44,346.771c-10.863-5.578-23.862,5.975-23.862,5.975l-84.734,93.283c0,0-10.572,14.264-7.884,23.025\n\t\tc 2.533,8.209, 6.727,12.289, 12.659,15.164l 85.096,26.863c0,0, 10.317,2.143, 18.129-0.121c 11.090-3.215, 9.047-20.576, 9.047-20.576\n\t\tl 1.924-126.301C 257.814,364.084, 257.381,351.916, 247.44,346.771z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paypal, donate\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 324.171,32c 14.166,0, 28.459,2.902, 41.333,8.392c 13.542,5.774, 24.662,13.962, 33.052,24.336\n\t\tc 16.799,20.771, 21.519,49.066, 14.025,84.109c-8.153,38.189-27.199,69.98-55.080,91.935c-27.178,21.401-61.499,32.714-99.254,32.714\n\t\tl-94.135,0 l-25.895,0 l-5.401,25.325L 105.935,424.85L 82.986,424.85 l-6.971,0 L 39.723,424.85 L 125.311,32L 324.171,32 M 142.893,250.007l 40.039,0 l 61.879,0 \n\t\tc 23.718,0, 47.747-9.085, 67.659-25.582c 19.41-16.081, 33.137-37.761, 38.698-61.1c 6.951-26.262, 2.315-52.576-12.757-72.277\n\t\tc-14.588-19.070-37.432-30.007-62.673-30.007l-64.566,0 l-25.575,0 l-5.638,24.946l-28.241,124.966L 142.893,250.007 M 324.171,0L 99.532,0 \n\t\tL0,456.85l 76.016,0 L 64,512l 131.83,0 l 32.282-151.363l 94.135,0 c 90.125,0, 165.469-55.539, 185.629-149.968\n\t\tc 16.858-78.84-20.402-125.966-67.559-145.282c 12.849,6.288, 24.047,15.243, 32.251,26.241c 17.268,23.15, 22.118,54.686, 14.418,93.733\n\t\tc-7.78,39.513-25.208,72.867-50.583,97.022c-4.641,4.851-9.611,9.373-14.902,13.54c-27.178,21.401-61.499,32.714-99.254,32.714\n\t\tl-6.056,0 L 202.217,328.637 L 169.935,480l-66.212,0 l 5.043-23.15l 23.064,0 l 32.282-151.363l 94.135,0 c 90.125,0, 165.469-55.539, 185.629-149.968\n\t\tC 466.737,48.602, 390.077,0, 324.171,0L 324.171,0z M 182.932,218.007l 28.241-124.966l 64.566,0 c 32.296,0, 53.801,27.769, 44.393,62.478\n\t\tc-8.068,34.72-41.693,62.488-75.32,62.488L 182.932,218.007 L 182.932,218.007z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paypal, donate\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 440.317,65.387c 12.849,6.288, 24.047,15.243, 32.251,26.241c 17.268,23.15, 22.118,54.686, 14.418,93.733\n\tc-7.78,39.513-25.208,72.867-50.583,97.022c-4.641,4.851-9.611,9.373-14.902,13.54c-27.178,21.401-61.499,32.714-99.254,32.714\n\tl-6.056,0 L 202.217,328.637 L 169.935,480l-66.212,0 l 5.043-23.15l 23.064,0 l 32.282-151.363l 94.135,0 c 90.125,0, 165.469-55.539, 185.629-149.968\n\tC 466.737,48.602, 390.077,0, 324.171,0L 99.532,0 L0,456.85l 76.016,0 L 64,512l 131.83,0 l 32.282-151.363l 94.135,0 \n\tc 90.125,0, 165.469-55.539, 185.629-149.968C 524.734,131.829, 487.474,84.703, 440.317,65.387z M 320.131,155.519\n\tc-6.862,29.53-32.214,54.020-60.328,60.684l 15.369-68.011l 46.493,0 C 321.301,150.595, 320.804,153.037, 320.131,155.519z M 211.172,93.041\n\tl 64.566,0 c 18.38,0, 33.254,9.002, 40.935,23.15l-67.077,0 l-23.008,101.815l-43.656,0 L 211.172,93.041z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paypal, donate\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 440.317,65.387c 12.849,6.288, 24.047,15.243, 32.251,26.241c 17.268,23.15, 22.118,54.686, 14.418,93.733\n\tc-7.78,39.513-25.208,72.867-50.583,97.022c-4.641,4.851-9.611,9.373-14.902,13.54c-27.178,21.401-61.499,32.714-99.254,32.714\n\tl-6.056,0 L 202.217,328.637 L 169.935,480l-66.212,0 l 5.043-23.15l 23.064,0 l 32.282-151.363l 94.135,0 c 90.125,0, 165.469-55.539, 185.629-149.968\n\tC 466.737,48.602, 390.077,0, 324.171,0L 99.532,0 L0,456.85l 76.016,0 L 64,512l 131.83,0 l 32.282-151.363l 94.135,0 \n\tc 90.125,0, 165.469-55.539, 185.629-149.968C 524.734,131.829, 487.474,84.703, 440.317,65.387z M 211.172,93.041l 64.566,0 \n\tc 32.296,0, 53.801,27.769, 44.393,62.478c-8.068,34.72-41.693,62.488-75.32,62.488l-61.879,0 L 211.172,93.041z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"foursquare, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 511.845,0l-56.539,0 L 331.505,169.948l-49.022-49.025c-6.903-6.904-16.085-10.706-25.853-10.706\n\tc-9.766,0-18.948,3.801-25.858,10.706l-22.257,22.258c-1.249-1.702-2.545-3.382-3.939-5.012\n\tc-30.324-35.439-83.635-39.604-119.074-9.271c-35.443,30.319-39.593,83.625-9.268,119.070c 6.955,8.134, 15.131,14.599, 24.015,19.397\n\tc 0.18,9.12, 3.729,18.187, 10.669,25.132L 230.77,412.337c 6.907,6.91, 16.091,10.717, 25.86,10.717c 9.771,0, 18.953-3.808, 25.853-10.715\n\tl 119.849-119.841c 6.91-6.908, 10.717-16.092, 10.717-25.86s-3.807-18.953-10.715-25.858l-13.789-13.79l 123.301-104.045L 511.846,0 z\n\t M 247.739,137.896c 2.375-2.373, 5.532-3.68, 8.891-3.68c 3.357,0, 6.512,1.306, 8.882,3.676l 51.688,51.691l-56.18,77.121\n\tc-5.547,6.188-10.435,2.932-12.363,0.633c-0.662-0.779-13.843-18.037-30.887-40.391c 8.462-19.37, 9.378-41.408, 2.428-61.509\n\tL 247.739,137.896z M 385.364,257.752c 2.375,2.374, 3.684,5.529, 3.684,8.886s-1.309,6.512-3.686,8.888L 265.507,395.373\n\tc-2.37,2.373-5.522,3.681-8.877,3.681c-3.356,0-6.512-1.309-8.888-3.686l-118.63-118.619c 13.809,1.857, 28.036,0.313, 41.323-4.74\n\tl 79.585,64.009c0,0, 4.353,4.040, 9.158,0.137l 110.959-93.631L 385.364,257.752z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"foursquare, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.671,0L 85.343,0 C 38.406,0,0,38.405,0,85.345l0,341.311 C0,473.625, 38.406,512, 85.343,512l 341.328,0 \n\tC 473.609,512, 512,473.625, 512,426.655L 512,85.345 C 512,38.405, 473.609,0, 426.671,0z M 469.967,469.971\n\tC 458.341,481.597, 442.965,488, 426.671,488L 85.343,488 c-16.294,0-31.674-6.403-43.304-18.031C 30.406,458.339, 24,442.957, 24,426.656\n\tL 24,85.345 c0-16.292, 6.407-31.671, 18.041-43.305C 53.674,30.407, 69.053,24, 85.343,24l 341.328,0 c 3.549,0, 7.050,0.322, 10.483,0.918\n\tl-105.649,145.030l-49.022-49.025c-6.903-6.904-16.085-10.706-25.853-10.706c-9.766,0-18.948,3.801-25.858,10.706l-22.257,22.258\n\tc-1.249-1.702-2.545-3.382-3.939-5.012c-30.324-35.439-83.635-39.604-119.074-9.271c-35.443,30.319-39.593,83.625-9.268,119.070\n\tc 6.955,8.134, 15.131,14.599, 24.015,19.397c 0.18,9.12, 3.729,18.187, 10.669,25.132L 230.77,412.337\n\tc 6.907,6.91, 16.091,10.717, 25.86,10.717c 9.771,0, 18.953-3.808, 25.853-10.715l 119.849-119.841c 6.91-6.908, 10.717-16.092, 10.717-25.86\n\ts-3.807-18.953-10.715-25.858l-13.789-13.79L 488,139.519l0,287.137 C 488,442.959, 481.596,458.342, 469.967,469.971z M 220.198,165.438\n\tl 27.541-27.542c 2.375-2.373, 5.532-3.68, 8.891-3.68c 3.357,0, 6.512,1.306, 8.882,3.676l 51.688,51.691l-56.18,77.121\n\tc-5.547,6.188-10.435,2.932-12.363,0.633c-0.662-0.779-13.843-18.037-30.887-40.391\n\tC 226.232,207.577, 227.148,185.539, 220.198,165.438z M 250.020,336.018c0,0, 4.353,4.040, 9.158,0.137l 110.959-93.631l 15.228,15.229\n\tc 2.375,2.374, 3.684,5.529, 3.684,8.886s-1.309,6.512-3.686,8.888L 265.507,395.373c-2.37,2.373-5.522,3.681-8.877,3.681\n\tc-3.356,0-6.512-1.309-8.888-3.686l-118.63-118.619c 13.809,1.857, 28.036,0.313, 41.323-4.74L 250.020,336.018z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"flattr, donate, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 183.781,0C 62.102,0,0,70.081,0,200.928l0,0l0,91.402 l0,183.115 l 119.195-119.314L 119.195,216.683 c0-54.208, 14.365-88.703, 62.559-96.447\n\tl0,0c 16.836-3.292, 51.875-2.139, 74.153-2.139l0,0l0,82.798 c0,0.755, 0.104,2.103, 0.297,2.793l0,0c 0.935,3.352, 3.965,5.808, 7.558,5.815\n\tl0,0c 2.031,0.004, 3.934-1.052, 5.895-2.985l0,0L 476.218,0.031L 337.562,0L 183.781,0 z M 392.805,155.873l0,139.445 \n\tc0,54.207-14.368,88.707-62.558,96.447l0,0c-16.836,3.291-51.878,2.139-74.156,2.139l0,0l0-82.797 c0-0.75-0.103-2.102-0.297-2.791\n\tl0,0c-0.932-3.356-3.961-5.811-7.556-5.815l0,0c-2.032-0.004-3.933,1.056-5.895,2.983l0,0L 35.781,511.967L 174.434,512l 153.784,0 \n\tC 449.895,512, 512,441.916, 512,311.074l0,0l0-91.407 L 512,36.56 L 392.805,155.873z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"xing, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 172.741,320.203l-46.267,0 \n\tc-2.788,0-4.87-1.247-6.049-3.146c-1.219-1.976-1.282-4.533,0-7.080l 49.162-86.535c 0.052-0.095, 0.052-0.158,0-0.263l-31.284-54.019\n\tc-1.294-2.569-1.483-5.106-0.263-7.079c 1.179-1.909, 3.522-2.885, 6.31-2.885l 46.267,0 c 7.1,0, 10.579,4.562, 12.884,8.654\n\tc0,0, 31.62,55.025, 31.809,55.328c-1.873,3.295-49.95,88.11-49.95,88.11C 182.994,315.546, 179.661,320.203, 172.741,320.203z\n\t M 391.525,106.069L 289.084,286.741c-0.062,0.097-0.062,0.214,0,0.306l 65.229,118.875c 1.295,2.558, 1.326,5.16, 0.096,7.132\n\tc-1.178,1.897-3.354,2.946-6.141,2.946l-46.217,0 c-7.088,0-10.633-4.699-12.924-8.79c0,0-65.576-119.996-65.744-120.307\n\tc 3.28-5.791, 102.958-182.113, 102.958-182.113c 2.48-4.448, 5.477-8.79, 12.387-8.79l 46.742,0 c 2.789,0, 4.977,1.049, 6.152,2.947\n\tC 392.842,100.921, 392.809,103.52, 391.525,106.069z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"xing, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.671,0L 85.343,0 C 38.406,0,0,38.405,0,85.345l0,341.311 C0,473.625, 38.406,512, 85.343,512l 341.328,0 \n\tC 473.609,512, 512,473.625, 512,426.655L 512,85.345 C 512,38.405, 473.609,0, 426.671,0z M 155.889,333.394l-55.632,0 \n\tc-3.351,0-5.854-1.504-7.271-3.792c-1.467-2.379-1.542-5.464,0-8.534l 59.11-104.313c 0.063-0.114, 0.063-0.19,0-0.316l-37.615-65.116\n\tc-1.556-3.098-1.783-6.157-0.316-8.534c 1.417-2.301, 4.235-3.477, 7.586-3.477l 55.632,0 c 8.535,0, 12.72,5.499, 15.489,10.431\n\tc0,0, 38.020,66.33, 38.249,66.696c-2.252,3.97-60.059,106.21-60.059,106.21C 168.218,327.78, 164.21,333.394, 155.889,333.394z\n\t M 418.956,75.269L 295.78,293.059c-0.075,0.115-0.075,0.255,0,0.367l 78.431,143.295c 1.556,3.084, 1.593,6.221, 0.113,8.597\n\tc-1.415,2.288-4.033,3.552-7.383,3.552l-55.57,0 c-8.522,0-12.783-5.663-15.54-10.596c0,0-78.848-144.646-79.050-145.023\n\tc 3.944-6.98, 123.797-219.523, 123.797-219.523c 2.984-5.362, 6.587-10.596, 14.894-10.596l 56.203,0 c 3.351,0, 5.981,1.265, 7.396,3.553\n\tC 420.537,69.061, 420.499,72.196, 418.956,75.269z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pinterest, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.675,0L 85.324,0 C 38.199,0,0,38.21,0,85.343l0,341.315 C0,473.791, 38.199,512, 85.324,512l 341.351,0 \n\tC 473.8,512, 512,473.791, 512,426.658L 512,85.343 C 512,38.21, 473.8,0, 426.675,0z M 280.822,342.059\n\tc-23.26-1.807-33.021-13.328-51.252-24.404c-10.030,52.589-22.281,103.009-58.569,129.344\n\tc-11.202-79.484, 16.447-139.182, 29.285-202.557c-21.893-36.853, 2.635-111.017, 48.81-92.737\n\tc 56.813,22.474-49.2,137.004, 21.966,151.308c 74.31,14.934, 104.644-128.929, 58.571-175.712\n\tc-66.579-67.553-193.799-1.54-178.155,95.178c 3.807,23.646, 28.236,30.819, 9.762,63.451c-42.61-9.446-55.325-43.051-53.688-87.856\n\tc 2.634-73.337, 65.892-124.682, 129.343-131.783c 80.242-8.982, 155.553,29.454, 165.953,104.938\n\tC 414.553,256.423, 366.623,348.693, 280.822,342.059z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pinterest, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.613,256, 256,256c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0z M 280.822,342.059\n\tc-23.26-1.807-33.021-13.328-51.252-24.404C 219.54,370.243, 207.288,420.663, 171,446.998\n\tc-11.202-79.484, 16.447-139.182, 29.285-202.557c-21.892-36.853, 2.635-111.017, 48.81-92.737\n\tc 56.813,22.474-49.2,137.004, 21.966,151.308c 74.31,14.934, 104.644-128.929, 58.571-175.712\n\tc-66.579-67.553-193.799-1.54-178.155,95.178c 3.807,23.646, 28.236,30.819, 9.762,63.451c-42.61-9.446-55.325-43.051-53.688-87.856\n\tc 2.634-73.337, 65.892-124.682, 129.343-131.783c 80.242-8.982, 155.553,29.454, 165.953,104.938\n\tC 414.553,256.423, 366.623,348.693, 280.822,342.059z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stackoverflow, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,320 L 512,512 L 0,512 L 0,320 L 64,320 L 64,448 L 448,448 L 448,320 ZM 96,352L 416,352L 416,416L 96,416zM 103.576,282.733L 117.425,220.251L 429.841,289.499L 415.992,351.981zM 139.829,154.279L 166.875,96.276L 456.891,231.508L 429.845,289.511zM 495.861,180.738 L 456.9,231.513 L 203.027,36.709 L 231.195,0 L 260.317,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stumbleupon, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,128\n\tc-17.645,0-32,14.355-32,32l0,128 c0,52.935-43.065,96-96,96s-96-43.065-96-96l0-64 l 64,0 l0,64 c0,17.645, 14.355,32, 32,32s 32-14.355, 32-32L 160,160 \n\tc0-52.935, 43.065-96, 96-96s 96,43.065, 96,89l0,31 l-41,12l-23-12l0-31 C 288,142.355, 273.645,128, 256,128z M 384,384\n\tc-52.935,0-96-43.065-96-103l0-62 l 23,12l 41-12l0,62 c0,24.645, 14.355,39, 32,39s 32-14.355, 32-32l0-64 l 64,0 l0,64 \n\tC 480,340.935, 436.935,384, 384,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stumbleupon, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426,0L 86,0 C 38.7,0,0,38.7,0,86l0,340 c0,47.3, 38.7,86, 86,86l 340,0 c 47.3,0, 86-38.7, 86-86L 512,86 C 512,38.7, 473.3,0, 426,0z M 256,160\n\tc-17.645,0-32,14.355-32,32l0,128 c0,52.936-43.065,96-96,96s-96-43.064-96-96l0-64 l 64,0 l0,64 c0,17.645, 14.355,32, 32,32s 32-14.355, 32-32L 160,192 \n\tc0-52.935, 43.065-96, 96-96c 52.935,0, 96,43.065, 96,89l0,31 l-41,12l-23-12l0-31 C 288,174.355, 273.645,160, 256,160z M 480,320\n\tc0,52.936-43.065,96-96,96s-96-43.064-96-103l0-62 l 23,12l 41-12l0,62 c0,24.645, 14.355,39, 32,39s 32-14.355, 32-32l0-64 l 64,0 L 480,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"delicious, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.688,0L 85.343,0 C 38.405,0,0,38.408,0,85.346l0,341.312 C0,473.623, 38.405,512, 85.343,512l 341.345,0 \n\tC 473.625,512, 512,473.624, 512,426.658L 512,85.346 C 512,38.408, 473.625,0, 426.688,0z M 480,426.658c0,14.167-5.57,27.541-15.685,37.658\n\tC 454.204,474.43, 440.841,480, 426.688,480L 256,480 L 256,256 L 32,256 L 32,85.346 c0-14.154, 5.575-27.525, 15.698-37.648C 57.82,37.575, 71.19,32, 85.343,32\n\tL 256,32 l0,224 l 224,0 L 480,426.658 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lastfm, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426,0L 86,0 C 38.7,0,0,38.7,0,86l0,340 c0,47.3, 38.7,86, 86,86l 340,0 c 47.3,0, 86-38.7, 86-86L 512,86 C 512,38.7, 473.3,0, 426,0z\n\t M 373.258,380.444c-88.779,0-119.569-40.028-135.986-89.802l-16.425-51.318c-12.319-37.463-26.687-66.712-71.842-66.712\n\tc-31.31,0-63.123,22.579-63.123,85.699c0,49.264, 25.144,80.056, 60.557,80.056c 40.021,0, 66.71-29.765, 66.71-29.765l 16.425,44.644\n\tc0,0-27.718,27.197-85.699,27.197c-71.846,0-111.875-42.076-111.875-120.082c0-81.081, 40.029-128.805, 115.464-128.805\n\tc 68.253,0, 102.64,24.632, 124.188,91.346l 16.936,51.313c 12.318,37.465, 33.867,64.662, 85.698,64.662\n\tc 34.896,0, 53.367-7.699, 53.367-26.684c0-14.885-8.72-25.66-34.892-31.82l-34.9-8.207c-42.587-10.262-59.522-32.329-59.522-67.226\n\tc0-55.936, 45.16-73.384, 91.343-73.384c 52.345,0, 84.161,18.988, 88.266,65.172l-51.317,6.16\n\tc-2.054-22.066-15.396-31.305-40.027-31.305c-22.582,0-36.436,10.265-36.436,27.713c0,15.395, 6.671,24.633, 29.247,29.765\n\tl 32.842,7.182c 44.135,10.266, 67.746,31.82, 67.746,73.386C 480.001,360.946, 436.895,380.444, 373.258,380.444z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lastfm, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 409.79,406.814c-53.333-0.209-81.749-26.291-101.496-72.251l-5.649-12.541l-48.685-111\n\tc-16.146-39.293-56.211-65.836-101.417-65.836c-61.167,0-110.792,49.626-110.792,110.836c0,61.209, 49.624,110.834, 110.792,110.834\n\tc 42.669,0, 79.771-24.125, 98.291-59.5l 19.688,45.416c-27.956,34.085-70.438,55.792-117.977,55.792C 68.29,408.564,0,340.313,0,256.021\n\tc0-84.252, 68.29-152.586, 152.542-152.586c 63.583,0, 114.918,33.959, 141,94.126c 1.978,4.668, 27.579,64.543, 49.913,115.5\n\tc 13.834,31.541, 25.63,52.459, 63.878,53.752c 37.584,1.291, 63.378-21.584, 63.378-50.504c0-28.25-19.668-35.041-52.875-46.082\n\tc-59.691-19.667-90.503-39.417-90.503-86.751c0-46.168, 31.416-76.959, 82.457-76.959c 33.248,0, 57.253,14.793, 73.88,44.293\n\tl-32.628,16.666c-12.295-17.207-25.854-24-43.086-24c-23.956,0-41.063,16.668-41.063,38.833c0,31.461, 28.147,36.211, 67.503,49.127\n\tC 487.375,248.686, 512,268.396, 512,317.604C 512.001,369.272, 467.664,406.898, 409.79,406.814z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"linkedin, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426,0L 86,0 C 38.7,0,0,38.7,0,86l0,340 c0,47.3, 38.7,86, 86,86l 340,0 c 47.3,0, 86-38.7, 86-86L 512,86 C 512,38.7, 473.3,0, 426,0z M 192,416l-64,0 \n\tL 128,192 l 64,0 L 192,416 z M 160,160c-17.673,0-32-14.327-32-32s 14.327-32, 32-32s 32,14.327, 32,32S 177.673,160, 160,160z M 416,416l-64,0 L 352,288 \n\tc0-17.673-14.327-32-32-32s-32,14.327-32,32l0,128 l-64,0 L 224,192 l 64,0 l0,39.736 C 301.199,213.604, 321.376,192, 344,192c 39.765,0, 72,35.817, 72,80\n\tL 416,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"reddit, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,320A32,32 2520 1 1 192,320A32,32 2520 1 1 128,320zM 320,320A32,32 2520 1 1 384,320A32,32 2520 1 1 320,320zM 321.556,388.389 C 329.797,381.896 341.744,383.312 348.238,391.555 C 354.732,399.798 353.314,411.744 345.071,418.238 C 322.123,436.317 287.16,448 256,448 C 224.839,448 189.876,436.317 166.928,418.239 C 158.685,411.744 157.268,399.798 163.762,391.555 C 170.257,383.314 182.203,381.896 190.445,388.389 C 203.656,398.798 229.806,410 256,410 C 282.194,410 308.344,398.798 321.556,388.389 ZM 512,256c0-35.346-28.654-64-64-64c-24.058,0-44.996,13.285-55.926,32.91c-32.896-17.997-72.976-29.623-116.64-32.304\n\t\t\tl 38.191-85.763l 73.097,21.1C 393.298,146.614, 411.081,160, 432,160c 26.51,0, 48-21.49, 48-48s-21.49-48-48-48\n\t\t\tc-18.28,0-34.171,10.221-42.277,25.257L 308.27,65.745c-9.112-2.629-18.769,1.861-22.626,10.526l-51.885,116.513\n\t\t\tc-42.569,2.998-81.631,14.511-113.818,32.118C 109.009,205.277, 88.058,192, 64,192c-35.346,0-64,28.654-64,64\n\t\t\tc0,26.156, 15.701,48.627, 38.186,58.551C 34.151,326.565, 32,339.103, 32,352c0,88.365, 100.288,160, 224,160\n\t\t\tc 123.711,0, 224-71.635, 224-160c0-12.896-2.15-25.431-6.184-37.443C 496.301,304.632, 512,282.156, 512,256z M 432,94\n\t\t\tc 9.941,0, 18,8.059, 18,18s-8.059,18-18,18s-18-8.059-18-18S 422.059,94, 432,94z M 32,256c0-17.645, 14.355-32, 32-32\n\t\t\tc 12.754,0, 23.786,7.502, 28.923,18.323c-16.724,12.683-30.583,27.313-40.833,43.369C 40.328,280.957, 32,269.436, 32,256z M 256,474\n\t\t\tc-102.725,0-186-54.621-186-122s 83.275-122, 186-122c 102.725,0, 186,54.621, 186,122S 358.725,474, 256,474z M 459.91,285.692\n\t\t\tc-10.25-16.056-24.109-30.686-40.833-43.369C 424.215,231.502, 435.246,224, 448,224c 17.645,0, 32,14.355, 32,32\n\t\t\tC 480,269.436, 471.672,280.957, 459.91,285.692z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"skype, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 487.655,288.969c 1.406-10.4, 2.215-20.973, 2.215-31.736c0-129.155-105.271-233.872-235.103-233.872\n\tc-12.904,0-25.555,1.060-37.866,3.080c-22.072-14.384-48.342-22.767-76.612-22.767C 62.766,3.674,0,66.482,0,143.98\n\tc0,28.198, 8.299,54.394, 22.59,76.389c-1.925,12.017-2.909,24.323-2.909,36.859c0,129.176, 105.217,233.882, 235.085,233.882\n\tc 14.657,0, 28.927-1.427, 42.796-3.933c 21.55,13.369, 46.934,21.148, 74.146,21.148C 449.21,508.326, 512,445.502, 512,368.012\n\tC 511.997,338.719, 503.040,311.484, 487.655,288.969z M 276.74,429.596c-74.705,3.892-109.664-12.637-141.689-42.691\n\tc-35.765-33.567-21.398-71.854, 7.74-73.801c 29.122-1.944, 46.607,33.013, 62.15,42.736c 15.524,9.688, 74.594,31.76, 105.794-3.908\n\tc 33.976-38.828-22.594-58.92-64.059-65.002c-59.203-8.766-133.95-40.792-128.135-103.907c 5.816-63.074, 53.582-95.414, 103.85-99.976\n\tc 64.077-5.817, 105.791,9.707, 138.785,37.86c 38.15,32.529, 17.508,68.894-6.799,71.82c-24.212,2.909-51.404-53.504-104.791-54.352\n\tc-55.027-0.864-92.217,57.261-24.286,73.784c 67.966,16.505, 140.75,23.286, 166.961,85.417\n\tC 418.49,359.713, 351.507,425.701, 276.74,429.596z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"soundcloud, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.686,0L 85.344,0 C 38.407,0, 0.001,38.403, 0.001,85.34l0,234.658 L 8,288l 16,0 l 8,32l-8,32L 8,352 l-8-31.998l0,106.652 \n\tC 0.001,473.623, 38.407,512, 85.344,512l 341.342,0 C 473.625,512, 512,473.623, 512,426.654L 512,320.553 C 512,355.592, 482.459,384, 446.007,384\n\tc-1.177,0-182.777-0.088-182.945-0.105c-3.941-0.381-7.062-3.615-7.062-7.498L 256,175.040 c0-3.697, 1.309-5.606, 6.289-7.458\n\tc 12.818-4.767, 27.267-7.582, 42.159-7.582c 60.854,0, 110.746,44.851, 115.999,102.029c 7.858-3.168, 16.489-4.928, 25.532-4.928\n\tc 36.453,0, 66.021,28.412, 66.021,63.451L 512,85.341 C 512,38.403, 473.621,0, 426.686,0z M 88,384L 72,384 l-8-64l 8-64l 16,0 l 8,64L 88,384z M 152,384l-16,0 \n\tl-8-81.375L 136,224l 16,0 l 8,80L 152,384z M 216,384l-16,0 l-8-112.11L 200,160l 16,0 l 8,111.89L 216,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"soundcloud, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 445.98,257.102c-9.043,0-17.674,1.76-25.532,4.928C 415.195,204.851, 365.303,160, 304.448,160\n\t\tc-14.893,0-29.341,2.815-42.159,7.582c-4.98,1.851-6.289,3.76-6.289,7.458l0,201.357 c0,3.883, 3.12,7.117, 7.062,7.498\n\t\tC 263.23,383.912, 444.83,384, 446.007,384C 482.459,384, 512,355.592, 512,320.553S 482.433,257.102, 445.98,257.102zM 200,384L 216,384L 224,271.89L 216,160L 200,160L 192,271.89 \tzM 152,384L 136,384L 128,302.625L 136,224L 152,224L 160,304 \tzM 72,384L 88,384L 96,320L 88,256L 72,256L 64,320 \tzM 8,352L 24,352L 32,320L 24,288L 8,288L0,320 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"windows8, os\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 0.175,256 L 0,99.963 L 192,73.891 L 192,256 ZM 224,69.241 L 479.936,32 L 479.936,256 L 224,256 ZM 479.999,288 L 479.936,512 L 224,475.992 L 224,288 ZM 192,471.918 L 0.156,445.621 L 0.146,288 L 192,288 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"windows, os\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 206.115,255.957c-23.854-12.259-47.043-18.479-68.94-18.479c-2.978,0-5.976,0.090-8.974,0.354\n\t\tc-27.94,2.312-53.461,9.684-69.875,15.414c-4.354,1.599-8.817,3.288-13.415,5.153L0,414.096\n\t\tc 30.851-11.416, 58.146-16.969, 83.135-16.969c 40.423,0, 69.764,15.104, 93.996,30.652c 11.481-38.959, 39.022-133.045, 47.241-161.162\n\t\tC 218.397,262.975, 212.334,259.332, 206.115,255.957zM 264.174,295.535l-45.223,157.074c 13.416,7.686, 58.549,32.025, 93.106,32.025c 27.896,0, 59.126-7.148, 95.417-21.896\n\t\tl 43.178-150.988c-29.316,9.461-57.438,14.26-83.732,14.26C 318.945,326.010, 285.363,310.461, 264.174,295.535zM 146.411,184.395c 38.559,0.399, 67.076,15.104, 90.708,30.251l 46.376-158.672c-9.773-5.598-35.403-19.547-53.929-24.3\n\t\tc-12.193-2.842-25.010-4.308-38.602-4.308c-25.898,0.488-54.194,6.973-86.444,19.9l-44.22,155.298\n\t\tc 32.404-12.218, 60.322-18.17, 86.043-18.17C 146.366,184.395, 146.411,184.395, 146.411,184.395zM 512,99.062c-29.407,11.416-58.104,17.233-85.514,17.233c-45.843,0-79.646-15.901-101.547-31.183L 278.964,244.23\n\t\tc 30.873,19.854, 64.145,29.939, 99.061,29.939c 28.474,0, 57.97-6.84, 87.731-20.344l-0.091-1.111l 1.867-0.443L 512,99.062z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"android, os, mobile\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 432,160c-17.6,0-32,14.4-32,32l0,128 c0,17.6, 14.4,32, 32,32s 32-14.4, 32-32L 464,192 C 464,174.4, 449.6,160, 432,160zM 48,160c-17.6,0-32,14.4-32,32l0,128 c0,17.6, 14.4,32, 32,32s 32-14.4, 32-32L 80,192 C 80,174.4, 65.599,160, 48,160zM 96,368c0,26.51, 21.49,48, 48,48l 16,0 l0,64 c0,17.6, 14.4,32, 32,32s 32-14.4, 32-32l0-64 l 32,0 l0,64 c0,17.6, 14.401,32, 32,32s 32-14.4, 32-32\n\t\tl0-64 l 16,0 c 26.51,0, 48-21.49, 48-48L 384,192 L 96,192 L 96,368 zM 299.299,44.747l 20.252-38.903c 1.016-1.951, 0.25-4.379-1.701-5.395s-4.379-0.25-5.395,1.701l-20.559,39.493\n\t\tC 275.797,35.419, 258.299,32, 240,32c-18.298,0-35.796,3.419-51.898,9.643L 167.544,2.151c-1.016-1.951-3.443-2.717-5.395-1.701\n\t\ts-2.717,3.443-1.701,5.395l 20.25,38.904c-45.315,20.509-78.12,63.792-83.81,115.252l 286.22,0 \n\t\tC 377.42,108.539, 344.615,65.257, 299.299,44.747z M 176,135.2c-12.813,0-23.2-10.387-23.2-23.2c0-12.813, 10.387-23.2, 23.2-23.2\n\t\ts 23.2,10.387, 23.2,23.2C 199.199,124.813, 188.813,135.2, 176,135.2z M 304,135.2c-12.813,0-23.201-10.387-23.201-23.2\n\t\tc0-12.813, 10.389-23.2, 23.201-23.2s 23.199,10.387, 23.199,23.2C 327.199,124.813, 316.813,135.2, 304,135.2z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"finder, mac\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256.5,384c-66.156,0-130.837-9.686-193.050-28.849l 10.124-30.371C 132.526,342.859, 193.812,352, 256.5,352\n\t\tc 8.172,0, 16.319-0.164, 24.441-0.474C 283.054,312.746, 288,288, 288,288s-32,0-96,0c0-87.505, 29.909-165.027, 62.465-223.5L0,64.5 l0,383 \n\t\tl 283.088,0 c-2.336-22.842-3.152-44.43-3.077-63.92C 272.195,383.854, 264.358,384, 256.5,384z M 96,128l 32,0 l0,64 L 96,192 L 96,128 zM 512,64.5L 298.435,64.5 c-0.974,1.598-1.947,3.207-2.92,4.843c-19.208,32.286-34.468,65.379-45.358,98.36\n\t\tc-9.103,27.566-15.151,55.116-18.086,82.297l 102.429,0 l-9.229,45.417c-0.157,0.808-4.085,21.422-6.1,53.471\n\t\tc 40.932-4.063, 81.111-12.103, 120.257-24.107l 10.124,30.371c-42.783,13.178-86.732,21.874-131.526,26.021\n\t\tc-0.018,2.188-0.028,4.395-0.021,6.64c 0.062,20.315, 1.173,40.285, 3.301,59.688L 512,447.501 L 512,64.5 z M 416,192l-32,0 l0-64 l 32,0 L 416,192 zM 293.632,512l 39.084,0 c-2.73-10.907-5.094-22.096-7.069-33.543c-1.747-10.126-3.191-20.46-4.343-30.957l-38.216,0 \n\t\tC 285.204,468.189, 288.563,489.901, 293.632,512zM 344.224,0l-48.198,0 c-12.875,17.435-27.466,39.185-41.56,64.5l 43.969,0 C 315.272,36.844, 332.017,14.799, 344.224,0z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"apple\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 395.749,272.046c-0.647-64.841, 52.879-95.938, 55.271-97.483c-30.076-44.010-76.925-50.039-93.621-50.736\n\t\tc-39.871-4.037-77.798,23.474-98.033,23.474c-20.184,0-51.409-22.877-84.476-22.276c-43.458,0.646-83.529,25.269-105.906,64.19\n\t\tc-45.152,78.349-11.563,194.42, 32.445,257.963c 21.504,31.102, 47.146,66.038, 80.813,64.79c 32.421-1.294, 44.681-20.979, 83.878-20.979\n\t\tc 39.197,0, 50.214,20.979, 84.525,20.335c 34.887-0.648, 56.991-31.699, 78.346-62.898c 24.695-36.084, 34.863-71.019, 35.462-72.813\n\t\tC 463.679,375.26, 396.423,349.495, 395.749,272.046zM 331.281,81.761C 349.15,60.082, 361.211,30.005, 357.921,0c-25.739,1.048-56.939,17.145-75.405,38.775\n\t\tc-16.571,19.188-31.074,49.813-27.187,79.218C 284.062,120.235, 313.393,103.391, 331.281,81.761z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tux, linux\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 283.828,368.458c-40.972,19.059-79.079,18.858-104.67,17.010c-30.526-2.205-55.079-10.562-65.871-17.866\n\t\tc-6.65-4.503-15.692-2.761-20.195,3.891c-4.502,6.651-2.76,15.693, 3.891,20.195c 17.349,11.743, 48.034,20.477, 80.081,22.79\n\t\tc 5.433,0.392, 11.399,0.639, 17.823,0.639c 27.891,0, 63.313-2.658, 101.21-20.285c 7.282-3.389, 10.439-12.037, 7.052-19.32\n\t\tC 299.761,368.229, 291.111,365.076, 283.828,368.458zM 445.474,346.908c 1.393-126.344, 14.381-365.103-227.485-345.806C-20.811,20.323, 42.507,272.586, 38.948,357.077\n\t\tC 35.794,401.77, 20.959,456.401,0,512l 64.55,0 c 6.633-23.561, 11.512-46.86, 13.616-69.075c 3.891,2.714, 8.054,5.337, 12.497,7.85\n\t\tc 7.229,4.259, 13.442,9.922, 20.020,15.917c 15.372,14.009, 32.795,29.887, 66.856,31.876c 2.286,0.131, 4.587,0.197, 6.838,0.197\n\t\tc 34.448,0, 58.007-15.077, 76.939-27.191c 9.070-5.806, 16.909-10.82, 24.282-13.226c 20.955-6.56, 39.266-17.148, 52.952-30.626\n\t\tc 2.138-2.104, 4.121-4.269, 5.981-6.474c 7.623,27.939, 18.059,59.379, 29.644,90.752L 512,512 \n\t\tC 478.913,460.888, 444.782,410.813, 445.474,346.908z M 62.055,278.176c0-0.008,0-0.015-0.001-0.023\n\t\tc-2.373-41.231, 17.355-75.916, 44.063-77.468c 26.706-1.553, 50.28,30.614, 52.652,71.846c0,0.007, 0.002,0.015, 0.002,0.022\n\t\tc 0.128,2.223, 0.184,4.423, 0.185,6.603c-8.462,2.128-16.096,5.218-22.936,8.815c-0.026-0.306-0.046-0.608-0.076-0.915\n\t\tc0-0.004,0-0.009,0-0.013c-2.285-23.405-14.786-41.080-27.926-39.479c-13.14,1.602-21.94,21.875-19.656,45.279\n\t\tc0,0.005, 0.002,0.009, 0.002,0.013c 0.996,10.204, 3.934,19.318, 8.021,26.222c-1.017,0.802-3.892,2.906-7.203,5.328\n\t\tc-2.485,1.817-5.51,4.029-9.157,6.715C 70.084,318.074, 63.272,299.331, 62.055,278.176z M 332.63,380.089\n\t\tc-0.95,21.793-29.454,42.296-55.791,50.522l-0.148,0.048c-10.95,3.551-20.714,9.8-31.052,16.415\n\t\tc-17.366,11.112-35.323,22.604-61.261,22.604c-1.702,0-3.447-0.052-5.163-0.148c-23.758-1.389-34.871-11.516-48.94-24.338\n\t\tc-7.421-6.763-15.095-13.757-24.988-19.562l-0.212-0.122c-21.353-12.052-34.606-27.041-35.454-40.097\n\t\tc-0.421-6.49, 2.469-12.109, 8.591-16.7c 13.318-9.986, 22.239-16.511, 28.142-20.829c 6.555-4.794, 8.534-6.24, 10-7.632\n\t\tc 1.048-0.993, 2.182-2.094, 3.402-3.281c 12.223-11.887, 32.68-31.781, 64.075-31.781c 19.202,0, 40.449,7.4, 63.085,21.951\n\t\tc 10.662,6.939, 19.941,10.143, 31.69,14.2c 8.078,2.789, 17.234,5.951, 29.496,11.202l 0.198,0.082\n\t\tC 319.74,357.325, 333.248,365.905, 332.63,380.089z M 326.323,328.903c-2.2-1.107-4.487-2.16-6.872-3.143\n\t\tc-11.053-4.728-19.916-7.937-27.267-10.499c 4.058-7.947, 6.58-17.86, 6.812-28.621c0-0.005,0-0.011,0-0.015\n\t\tc 0.563-26.187-12.644-47.448-29.498-47.488c-16.855-0.039-30.975,21.157-31.538,47.343c0,0.005,0,0.009,0,0.014\n\t\tc-0.019,0.857-0.021,1.708-0.010,2.555c-10.381-4.776-20.59-8.245-30.583-10.38c-0.046-0.984-0.102-1.966-0.122-2.96\n\t\tc0-0.008,0-0.018,0-0.025c-0.969-47.706, 28.301-87.195, 65.377-88.201c 37.075-1.007, 67.914,36.85, 68.886,84.555\n\t\tc0,0.009,0,0.019,0,0.026C 341.945,293.637, 336.178,313.497, 326.323,328.903z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"yahoo, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 424,320l-7.429-208.010C 416.257,103.195, 423.2,96, 432,96l 64,0 c 8.8,0, 14.734,7.088, 13.188,15.751L 472,320M 480,388c0,15.4-12.6,28-28,28l-8,0 c-15.4,0-28-12.6-28-28l0-8 c0-15.4, 12.6-28, 28-28l 8,0 c 15.4,0, 28,12.6, 28,28L 480,388 zM 192,96C 85.961,96,0,167.634,0,256c0,88.365, 85.961,160, 192,160c 106.039,0, 192-71.635, 192-160\n\tC 384,167.634, 298.039,96, 192,96z M 320,224l-37.131,0 L 224,282.87L 224,320 l 48,0 l0,32 L 144,352 l0-32 l 48,0 l0-37.13 L 101.13,192L 80.099,192 l0-32 l 95.803,0 l0,32 L 154.87,192 \n\tL 208,245.13l 16-16L 224,192 l 96,0 L 320,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tumblr, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.69,0L 85.344,0 C 38.405,0, 0.001,38.407, 0.001,85.343l0,341.313 C 0.001,473.625, 38.405,512, 85.344,512L 426.69,512 \n\tC 473.625,512, 512,473.625, 512,426.656L 512,85.342 C 511.996,38.407, 473.621,0, 426.69,0z M 365.858,412.344\n\tc-15.076,7.094-28.764,12.094-41,14.969c-12.248,2.845-25.48,4.279-39.701,4.279c-16.156,0-25.688-2.029-38.094-6.094\n\tc-12.404-4.094-23-9.936-31.75-17.436c-8.779-7.564-14.843-15.599-18.233-24.097c-3.392-8.502-5.078-20.846-5.078-37.002L 192.002,223.062 \n\tl-47.998,0 l0-50.033 c 13.872-4.5, 29.968-10.967, 39.842-19.375c 9.92-8.436, 17.859-18.529, 23.842-30.342\n\tc 6.002-11.783, 10.125-26.813, 12.376-45.033l 50.25,0 L 270.314,160 L 352,160 l0,63.063 l-81.689,0 l0,90.594 c0,20.5-0.264,32.313, 1.908,38.125\n\tc 2.156,5.78, 7.563,11.78, 13.451,15.25c 7.828,4.688, 16.752,7.030, 26.813,7.030c 17.893,0, 35.689-5.813, 53.375-17.438L 365.858,412.344 \n\tL 365.858,412.344z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tumblr, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288.016,224 L 288.015,341.092 C 288.015,370.801 287.63,387.92 290.78,396.342 C 293.905,404.719 301.739,413.415 310.275,418.443 C 321.617,425.237 334.546,428.631 349.129,428.631 C 375.056,428.631 390.368,425.207 416,408.361 L 416,485.333 L 416,485.333 C 394.15,495.609 375.067,501.63 357.338,505.794 C 339.588,509.915 320.408,511.997 299.806,511.997 C 276.392,511.997 262.578,509.054 244.601,503.169 C 226.622,497.235 211.271,488.766 198.591,477.899 C 185.866,466.938 177.080,455.295 172.167,442.983 C 167.254,430.665 164.809,412.776 164.809,389.361 L 164.809,209.811 L 96.096,209.811 L 96.096,137.308 C 116.2,130.787 138.678,121.414 152.986,109.232 C 167.363,97.007 178.869,82.379 187.539,65.26 C 196.235,48.187 202.213,26.404 205.475,0.002 L 288.017,0.002 L 288.016,128 L 416,128 L 416,224 L 288.016,224 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"blogger, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.674,0L 85.325,0 C 38.202,0,0,38.209,0,85.341l0,341.318 C0,473.792, 38.202,512, 85.325,512l 341.348,0 \n\tc 47.125,0, 85.324-38.208, 85.324-85.341L 512,85.341C 512,38.209, 473.798,0, 426.674,0z M 448,324.049\n\tC 448,392.544, 392.257,448, 323.278,448L 188.869,448 C 119.941,448, 64,392.544, 64,324.049L 64,188 c 0.048-68.5, 55.94-124, 124.869-124l 62.934,0 \n\tC 320.779,64, 376.002,115.5, 376,184c 0.901,12.847, 12.461,24, 25.646,24l 0.448,0 l 21.078,0 C 436.959,208, 448,222.467, 448,236.156L 448,324.049 zM 352,320c0,17.6-14.4,32-32,32L 192,352 c-17.6,0-32-14.4-32-32l0,0c0-17.6, 14.4-32, 32-32l 128,0 C 337.6,288, 352,302.4, 352,320\n\tL 352,320zM 288,192c0,17.6-14.4,32-32,32l-64,0 c-17.6,0-32-14.4-32-32l0,0c0-17.6, 14.4-32, 32-32l 64,0 C 273.6,160, 288,174.4, 288,192L 288,192\n\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"blogger, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 478.898,192l-28.103,0 l-0.6,0 c-17.583,0-32.994-14.871-34.195-32l0,0C 416.002,68.666, 342.371,0, 250.405,0l-83.912,0 \n\tC 74.587,0, 0.065,74,0,165.333l0,181.399 C0,438.059, 74.587,512, 166.492,512l 179.21,0 C 437.676,512, 512,438.059, 512,346.732L 512,229.541 \n\tC 512,211.29, 497.28,192, 478.898,192z M 160,128l 96,0 c 17.6,0, 32,14.4, 32,32s-14.4,32-32,32l-96,0 c-17.6,0-32-14.4-32-32S 142.4,128, 160,128\n\tz M 352,384L 160,384 c-17.6,0-32-14.4-32-32s 14.4-32, 32-32l 192,0 c 17.6,0, 32,14.4, 32,32S 369.6,384, 352,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"joomla, cms\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 133.002,138.339c 16.416-16.422, 43.001-16.422, 59.402-0.016l 3.913,3.934l 50.552-50.578l-3.937-3.94\n\tc-28.812-28.85-69.257-38.939-106.21-30.261C 131.425,24.887, 103.178,0.016, 69.135,0C 31.31,0, 0.658,30.721, 0.65,68.579\n\tc0,32.668, 22.795,60, 53.331,66.915c-11.569,38.725-2.121,82.417, 28.423,112.992l 113.913,113.95l 50.498-50.607L 132.91,197.886\n\tC 116.569,181.525, 116.539,154.823, 133.002,138.339zM 511.356,68.579C 511.364,30.698, 480.697,0, 442.864,0c-34.617,0-63.239,25.722-67.841,59.119\n\tc-38.537-11.332-81.892-1.748-112.32,28.704l-113.92,113.95l 50.551,50.586l 113.883-113.928c 16.47-16.483, 42.994-16.453, 59.342-0.092\n\tc 16.4,16.415, 16.4,43.057-0.016,59.478l-3.897,3.918l 50.505,50.624l 3.929-3.964c 30.229-30.283, 39.839-73.378, 28.806-111.819\n\tC 485.461,132.159, 511.356,103.394, 511.356,68.579zM 453.133,375.532c 9.051-37.229-0.988-78.162-30.054-107.25L 309.334,154.286l-50.551,50.561l 113.76,114.006\n\tc 16.47,16.498, 16.432,43.048, 0.092,59.424c-16.401,16.407-43.002,16.407-59.418-0.015l-3.883-3.895l-50.497,50.623l 3.866,3.864\n\tc 30.758,30.797, 74.809,40.219, 113.684,28.244C 382.703,488.439, 410.354,512, 443.516,512C 481.318,512, 512,481.325, 512,443.437\n\tC 512,408.837, 486.41,380.209, 453.133,375.532zM 306.172,264.342L 192.404,378.338c-16.355,16.384-43.017,16.414-59.472-0.062c-16.409-16.452-16.416-43.049-0.022-59.485\n\tl 3.904-3.887l-50.543-50.562l-3.867,3.856c-29.38,29.401-39.28,70.917-29.725,108.491C 22.48,383.819,0,411.006,0,443.437\n\tC-0.008,481.31, 30.666,512, 68.491,512c 32.55-0.016, 59.794-22.709, 66.77-53.191c 37.351,9.276, 78.499-0.652, 107.672-29.878\n\tl 113.745-113.98L 306.172,264.342z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"wordpress, social, cms\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 259.371,272.352 L 318.386,429.823 C 318.775,430.748 319.252,431.598 319.761,432.4 C 299.805,439.241 278.359,443 256.002,443 C 237.155,443 218.966,440.31 201.758,435.381 L 259.371,272.352 ZM 448,255.997 C 448,324.982 409.612,385.212 352.53,417.626 L 411.173,252.49 C 422.129,225.813 425.775,204.48 425.775,185.515 C 425.775,178.629 425.306,172.241 424.481,166.286 C 439.47,192.917 448,223.482 448,255.997 ZM 64,255.996 C 64,228.884 69.972,203.147 80.626,179.893 L 172.215,424.285 C 108.161,393.98 64,330.009 64,255.996 ZM 95.582,153.284 C 129.911,102.523 188.924,69 256.004,69 C 305.988,69 351.5,87.613 385.658,118.098 C 384.83,118.049 384.023,117.947 383.17,117.947 C 364.31,117.947 350.927,133.948 350.927,151.135 C 350.927,166.546 360.058,179.583 369.787,194.993 C 377.087,207.446 385.614,223.447 385.614,246.564 C 385.614,262.565 379.296,281.139 371.006,307.014 L 351.85,369.33 L 282.46,168.321 C 294.018,167.732 304.434,166.546 304.434,166.546 C 314.781,165.352 313.563,150.544 303.211,151.135 C 303.211,151.135 272.109,153.511 252.036,153.511 C 233.169,153.511 201.469,151.135 201.469,151.135 C 191.114,150.545 189.899,165.95 200.25,166.546 C 200.25,166.546 210.045,167.729 220.389,168.321 L 250.3,248.146 L 208.278,370.874 L 138.361,168.321 C 149.932,167.73 160.337,166.546 160.337,166.546 C 170.674,165.352 169.453,150.544 159.108,151.135 C 159.108,151.135 128.015,153.511 107.938,153.511 C 104.335,153.511 100.087,153.425 95.582,153.284 ZM 426,0L 86,0 C 38.7,0,0,38.7,0,86l0,340 c0,47.3, 38.7,86, 86,86l 340,0 c 47.3,0, 86-38.7, 86-86L 512,86 C 512,38.7, 473.3,0, 426,0z M 480,256\n\t\tc0,123.712-100.288,224-224,224S 32,379.712, 32,256S 132.288,32, 256,32S 480,132.288, 480,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"wordpress, social, cms\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,255.996c0,74.013, 44.161,137.984, 108.215,168.289L 80.626,179.893C 69.972,203.147, 64,228.884, 64,255.996zM 385.614,246.564c0-23.117-8.527-39.118-15.827-51.571c-9.729-15.41-18.86-28.447-18.86-43.858\n\t\t\tc0-17.187, 13.383-33.188, 32.243-33.188c 0.852,0, 1.66,0.102, 2.488,0.151C 351.5,87.613, 305.988,69, 256.004,69\n\t\t\tc-67.080,0-126.093,33.523-160.422,84.284c 4.505,0.141, 8.753,0.227, 12.356,0.227c 20.077,0, 51.17-2.376, 51.17-2.376\n\t\t\tc 10.345-0.591, 11.566,14.217, 1.229,15.411c0,0-10.405,1.184-21.976,1.775l 69.917,202.553l 42.022-122.728l-29.911-79.825\n\t\t\tc-10.344-0.592-20.139-1.775-20.139-1.775c-10.351-0.596-9.136-16.001, 1.219-15.411c0,0, 31.7,2.376, 50.567,2.376\n\t\t\tc 20.073,0, 51.175-2.376, 51.175-2.376c 10.351-0.591, 11.57,14.217, 1.223,15.411c0,0-10.417,1.186-21.974,1.775L 351.85,369.33\n\t\t\tl 19.156-62.316C 379.296,281.139, 385.614,262.564, 385.614,246.564zM 259.371,272.352l-57.613,163.029c 17.208,4.929, 35.397,7.619, 54.244,7.619c 22.358,0, 43.802-3.759, 63.759-10.6\n\t\t\tc-0.509-0.801-0.987-1.652-1.375-2.577L 259.371,272.352zM 424.481,166.286c 0.826,5.955, 1.294,12.343, 1.294,19.229c0,18.965-3.646,40.298-14.601,66.975l-58.643,165.136\n\t\t\tC 409.612,385.212, 448,324.982, 448,255.997C 448,223.482, 439.47,192.917, 424.481,166.286zM 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,480\n\t\tC 132.288,480, 32,379.712, 32,256S 132.288,32, 256,32s 224,100.288, 224,224S 379.712,480, 256,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"github, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 131.736,379.684c0,13.526, 11.447,20.291, 34.334,20.291c 20.032,0, 30.044-7.021, 30.044-21.067\n\t\tc0-13.269-10.923-19.898-32.772-19.898C 142.269,359.008, 131.736,365.898, 131.736,379.684zM 426.674,0L 85.344,0 C 38.406,0,0,38.405,0,85.344l0,341.313 C0,473.625, 38.406,512, 85.344,512l 341.33,0 \n\t\tC 473.608,512, 512,473.625, 512,426.656L 512,85.344 C 512,38.405, 473.609,0, 426.674,0z M 237.864,204.494\n\t\tc-3.642,1.302-8.844,2.729-15.606,4.293c 2.080,5.983, 3.123,11.576, 3.123,16.777c0,16.646-5.009,31.149-15.022,43.506\n\t\tc-10.015,12.354-22.956,19.703-38.823,22.043c-10.402,1.563-15.604,7.156-15.604,16.779c0,3.381, 1.689,6.765, 5.072,10.145\n\t\tc 4.422,4.943, 10.924,8.066, 19.509,9.367c 37.195,5.721, 55.793,21.197, 55.793,46.427c0,40.321-24.062,60.481-72.181,60.481\n\t\tc-19.771,0-36.028-3.513-48.772-10.535c-16.129-8.844-24.188-22.76-24.188-41.75c0-21.852, 12.096-36.808, 36.282-44.869l0-0.78 \n\t\tc-8.842-5.462-13.263-13.785-13.263-24.972c0-14.566, 4.162-23.672, 12.484-27.311l0-0.781 c-8.323-2.862-15.737-9.366-22.24-19.512\n\t\tc-7.282-10.926-10.925-22.63-10.925-35.115c0-18.729, 6.635-34.335, 19.896-46.82c 12.748-11.707, 27.964-17.558, 45.653-17.558\n\t\tc 12.747,0, 24.579,3.119, 35.505,9.361c 12.485,0, 26.921-3.12, 43.313-9.361L 237.864,204.494L 237.864,204.494z M 301.089,339.497\n\t\tl-44.093,0 c 0.521-5.201, 0.779-14.042, 0.779-26.532L 257.775,191.619 c0-12.227-0.261-20.682-0.779-25.359l 44.093,0 \n\t\tc-0.521,4.942-0.781,13.135-0.781,24.582l0,119.782 C 300.308,323.891, 300.569,333.516, 301.089,339.497z M 298.159,127.241\n\t\tc-5.332,5.722-11.641,8.581-18.923,8.581c-7.543,0-13.979-2.859-19.313-8.581c-5.333-5.726-8.001-12.486-8.001-20.289\n\t\tc0-8.067, 2.668-14.956, 8.001-20.683c 5.333-5.721, 11.77-8.584, 19.313-8.584c 7.282,0, 13.592,2.863, 18.923,8.584\n\t\tc 5.333,5.728, 7.999,12.615, 7.999,20.683C 306.158,114.755, 303.492,121.516, 298.159,127.241z M 420.845,334.424\n\t\tc-9.627,5.205-21.203,7.803-34.729,7.803c-18.985,0-32.124-6.76-39.405-20.287c-5.465-10.145-8.193-26.14-8.193-47.99l0-69.842 \n\t\tl 0.389,0 l0-0.781 l-5.853-0.391c-3.382,0-7.806,0.391-13.267,1.171L 319.787,166.26 l 19.117,0 l0-15.216 c0-7.285-0.389-13.14-1.17-17.56l 45.259,0 \n\t\tc-0.775,4.94-1.168,10.533-1.168,16.776l0,15.999 l 33.943,0 l0,37.846 c-1.299,0-3.705-0.129-7.218-0.389\n\t\tc-3.512-0.261-6.828-0.393-9.949-0.393l-16.777,0 l0,72.572 c0,17.432, 5.725,26.145, 17.167,26.145c 8.063,0, 15.348-2.209, 21.854-6.632\n\t\tL 420.845,334.424 L 420.845,334.424zM 160.608,200.203c-16.388,0-24.582,9.627-24.582,28.873c0,17.951, 8.194,26.924, 24.582,26.924\n\t\tc 15.868,0, 23.801-9.104, 23.801-27.313c0-7.545-1.82-14.047-5.461-19.511C 174.525,203.195, 168.411,200.203, 160.608,200.203z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"github, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 117.639,124.36c-25.396,0-47.242,8.403-65.542,25.208c-19.043,17.926-28.57,40.33-28.57,67.218\n\t\tc0,17.926, 5.188,34.731, 15.647,50.416c 9.337,14.563, 19.090,23.903, 31.889,28.012l0,1.121 c-12.799,5.224-18.483,18.295-18.483,39.209\n\t\tc0,16.062, 5.686,28.011, 18.483,35.854l0,1.121 c-35.327,11.573-51.496,33.047-51.496,64.415c0,27.267, 11.874,47.244, 35.033,59.939\n\t\tC 72.895,506.959, 96.389,512, 124.773,512c 69.085,0, 103.703-28.941, 103.703-86.832c0-36.223-26.661-58.441-80.064-66.658\n\t\tc-12.323-1.863-21.643-6.348-27.991-13.445c-4.854-4.854-7.271-9.709-7.271-14.563c0-13.816, 7.479-21.848, 22.41-24.088\n\t\tc 22.779-3.357, 41.364-13.912, 55.743-31.648c 14.375-17.74, 21.565-38.559, 21.565-62.458c0-7.469-2.259-15.498-5.244-24.086\n\t\tc 9.709-2.244, 16.525-4.297, 21.646-6.166L 229.27,124.36 c-22.527,8.964-43.495,13.442-61.421,13.442\n\t\tC 152.162,128.841, 135.937,124.36, 117.639,124.36z M 123.801,403.885c 31.372,0, 47.052,9.521, 47.052,28.57\n\t\tc0,20.168-14.377,30.246-43.132,30.246c-32.862,0-49.293-9.711-49.293-29.127C 78.427,413.779, 93.55,403.885, 123.801,403.885z\n\t\t M 119.88,256c-23.527,0-35.293-12.882-35.293-38.654c0-27.631, 11.766-41.453, 35.293-41.453c 11.201,0, 19.979,4.298, 26.326,12.884\n\t\tc 5.229,7.845, 7.845,17.18, 7.845,28.011C 154.051,242.927, 142.658,256, 119.88,256zM 290.192,0c-10.828,0-20.070,4.107-27.727,12.324c-7.657,8.218-11.485,18.108-11.485,29.688\n\t\tc0,11.205, 3.829,20.91, 11.485,29.129c 7.654,8.217, 16.896,12.32, 27.727,12.32c 10.455,0, 19.514-4.104, 27.17-12.32\n\t\tc 7.656-8.219, 11.48-17.924, 11.48-29.129c0-11.58-3.824-21.472-11.48-29.688C 309.703,4.107, 300.647,0, 290.192,0zM 321.565,127.999l-63.303,0 c 0.748,7.168-0.32,18.021-0.32,35.57l0,174.216 c0,17.928, 1.068,32.387, 0.32,38.018l 63.303,0 \n\t\tc-0.75-8.188-2.697-22.334-2.697-41.379L 318.868,162.451 C 318.865,146.019, 320.815,135.167, 321.565,127.999zM 461.168,322.1c-16.436,0-24.541-12.514-24.541-37.533l0-103.32 l 24.932,0 c 4.48,0, 8.516-0.246, 13.559,0.123\n\t\tc 5.043,0.374, 7.076,0.125, 9.639,0.125l0-53.495 l-48.129,0 l0-23.808 c0-8.961, 1.408-17.151, 2.527-22.271l-64.979,0 \n\t\tc 1.121,5.12, 1.014,12.938, 1.014,23.395L 375.19,128 l-28.16,0 l0,53.494 c 7.682-1.12, 14.545-1.678, 19.398-1.678l 8.762,0.559l0,0.292 l0,0l0,101.101 \n\t\tc0,31.371, 3.979,54.336, 11.818,68.9c 10.461,19.42, 28.811,29.129, 56.068,29.129c 19.424,0, 36.559-3.732, 49.357-11.205l0-56.016 \n\t\tC 482.196,318.926, 472.742,322.1, 461.168,322.1z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"github, octacat, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 408.028,408.028\n\tc-19.759,19.758-42.756,35.266-68.354,46.093c-6.503,2.75-13.107,5.164-19.8,7.246L 319.874,423 c0-20.167-6.917-35-20.75-44.5\n\tc 8.667-0.833, 16.625-2, 23.875-3.5s 14.917-3.667, 23-6.5s 15.333-6.208, 21.75-10.125s 12.583-9, 18.5-15.25s 10.875-13.333, 14.875-21.25\n\ts 7.167-17.417, 9.5-28.5s 3.5-23.292, 3.5-36.625c0-25.833-8.417-47.833-25.25-66c 7.667-20, 6.833-41.75-2.5-65.25l-6.25-0.75\n\tc-4.333-0.5-12.125,1.333-23.375,5.5s-23.875,11-37.875,20.5c-19.833-5.5-40.417-8.25-61.75-8.25c-21.5,0-42,2.75-61.5,8.25\n\tc-8.833-6-17.208-10.958-25.125-14.875c-7.917-3.917-14.25-6.583-19-8s-9.167-2.292-13.25-2.625s-6.708-0.417-7.875-0.25\n\ts-2,0.333-2.5,0.5c-9.333,23.667-10.167,45.417-2.5,65.25c-16.833,18.167-25.25,40.167-25.25,66c0,13.333, 1.167,25.542, 3.5,36.625\n\ts 5.5,20.583, 9.5,28.5s 8.958,15, 14.875,21.25s 12.083,11.333, 18.5,15.25s 13.667,7.292, 21.75,10.125s 15.75,5, 23,6.5\n\ts 15.208,2.667, 23.875,3.5c-13.667,9.333-20.5,24.167-20.5,44.5l0,39.115 c-7.549-2.247-14.99-4.902-22.3-7.994\n\tc-25.597-10.827-48.594-26.335-68.353-46.093c-19.758-19.759-35.267-42.756-46.093-68.354C 46.679,313.195, 41,285.043, 41,256\n\ts 5.679-57.195, 16.879-83.675c 10.827-25.597, 26.335-48.594, 46.093-68.353s 42.756-35.267, 68.353-46.093\n\tC 198.805,46.679, 226.957,41, 256,41s 57.195,5.679, 83.675,16.879c 25.598,10.827, 48.595,26.335, 68.354,46.093\n\tc 19.758,19.758, 35.266,42.756, 46.093,68.353C 465.321,198.805, 471,226.957, 471,256s-5.679,57.195-16.879,83.675\n\tC 443.294,365.272, 427.786,388.27, 408.028,408.028z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"github, octacat, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,415.946c-9.577,0-19.154-4.958-29.071-14.875c-3.905-3.905-3.905-10.237,0-14.143c 3.905-3.904, 10.237-3.904, 14.143,0\n\t\tC 247.175,393.033, 252.058,396, 256,396c 3.941,0, 8.825-2.967, 14.929-9.071c 3.906-3.904, 10.236-3.904, 14.143,0\n\t\tc 3.905,3.905, 3.905,10.237,0,14.143C 275.154,410.988, 265.577,415.946, 256,415.946zM 0,262.746 C 0,287.692 2.133,310.307 6.4,330.587 C 10.667,350.867 16.667,368.457 24.4,383.353 C 32.133,398.249 41.911,411.305 53.733,422.523 C 65.555,433.741 78.399,442.983 92.266,450.252 C 106.133,457.52 121.999,463.4 139.866,467.885 C 157.732,472.372 175.91,475.513 194.399,477.308 C 212.888,479.103 233.244,480 255.466,480 C 277.688,480 298.087,479.105 316.665,477.31 C 335.243,475.515 353.466,472.374 371.331,467.887 C 389.198,463.4 405.11,457.522 419.065,450.254 C 433.020,442.985 445.954,433.741 457.864,422.525 C 469.776,411.307 479.599,398.251 487.331,383.355 C 495.066,368.458 501.111,350.868 505.466,330.589 C 509.821,310.309 511.999,287.695 511.999,262.749 C 511.999,218.059 498.131,179.563 470.399,147.258 C 471.999,142.95 473.376,138.015 474.532,132.451 C 475.686,126.887 476.798,119.035 477.864,108.895 C 478.933,98.754 478.532,87.043 476.665,73.763 C 474.798,60.481 471.288,46.931 466.132,33.112 L 462.132,32.303 C 459.466,31.765 455.111,31.944 449.066,32.843 C 443.023,33.74 435.955,35.354 427.867,37.688 C 419.779,40.020 409.334,44.642 396.533,51.552 C 383.734,58.461 370.223,67.211 356,77.8 C 331.822,70.441 298.49,62.742 256,62.742 C 213.512,62.742 180.089,70.44 155.735,77.799 C 141.512,67.209 127.957,58.505 115.068,51.685 C 102.178,44.864 91.867,40.198 84.134,37.686 C 76.4,35.174 69.245,33.558 62.667,32.841 C 56.089,32.123 51.866,31.898 50,32.168 C 48.134,32.437 46.756,32.751 45.867,33.11 C 40.71,46.93 37.155,60.48 35.199,73.762 C 33.244,87.042 32.799,98.708 33.866,108.758 C 34.933,118.809 36.088,126.707 37.333,132.449 C 38.578,138.192 40,143.128 41.6,147.256 C 13.867,179.381 0,217.877 0,262.746 Z M 68.268,319.702 C 68.268,290.691 78.934,264.383 100.268,240.774 C 106.668,233.571 114.091,228.118 122.535,224.418 C 130.98,220.717 140.579,218.615 151.335,218.115 C 162.091,217.615 172.357,217.715 182.135,218.415 C 191.913,219.116 204.002,220.066 218.402,221.266 C 232.801,222.468 245.246,223.067 255.735,223.067 C 266.223,223.067 278.669,222.467 293.067,221.266 C 307.47,220.066 319.558,219.116 329.335,218.415 C 339.115,217.715 349.38,217.615 360.136,218.115 C 370.892,218.616 380.537,220.717 389.070,224.418 C 397.603,228.118 405.070,233.571 411.47,240.774 C 432.802,264.383 443.47,290.691 443.47,319.702 C 443.47,336.708 441.693,351.864 438.136,365.169 C 434.581,378.475 430.091,389.627 424.669,398.63 C 419.247,407.634 411.645,415.239 401.87,421.44 C 392.091,427.643 382.624,432.445 373.47,435.845 C 364.314,439.245 352.491,441.897 338.003,443.798 C 323.512,445.696 310.536,446.849 299.067,447.248 C 287.6,447.648 273.157,447.848 255.735,447.848 C 238.313,447.848 223.913,447.647 212.535,447.248 C 201.157,446.849 188.224,445.696 173.735,443.798 C 159.246,441.897 147.424,439.246 138.268,435.845 C 129.113,432.444 119.646,427.643 109.868,421.44 C 100.090,415.238 92.49,407.634 87.068,398.63 C 81.645,389.627 77.156,378.475 73.601,365.169 C 70.046,351.864 68.268,336.708 68.268,319.702 ZM 128,304.002A32,48 2520 1 1 192,304.002A32,48 2520 1 1 128,304.002zM 320,304.002A32,48 2520 1 1 384,304.002A32,48 2520 1 1 320,304.002z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"github, octacat, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 0,278.205 C 0,301.404 2.17,322.395 6.511,341.172 C 10.85,359.949 16.859,376.264 24.537,390.118 C 32.215,403.972 41.979,416.157 53.83,426.672 C 65.68,437.188 78.533,445.784 92.386,452.46 C 106.239,459.135 122.054,464.559 139.83,468.733 C 157.606,472.906 175.758,475.827 194.285,477.497 C 212.812,479.166 233.175,480 255.374,480 C 277.74,480 298.188,479.166 316.714,477.497 C 335.241,475.827 353.435,472.905 371.294,468.733 C 389.153,464.561 405.050,459.137 418.988,452.46 C 432.926,445.783 445.861,437.188 457.796,426.672 C 469.731,416.157 479.579,403.97 487.339,390.118 C 495.099,376.266 501.15,359.95 505.49,341.172 C 509.83,322.394 512,301.404 512,278.205 C 512,236.811 498.146,201.008 470.441,170.797 C 471.943,166.791 473.32,162.243 474.572,157.152 C 475.824,152.061 476.992,144.801 478.077,135.37 C 479.162,125.939 478.745,115.049 476.825,102.697 C 474.906,90.345 471.359,77.744 466.183,64.891 L 462.428,64.14 C 459.757,63.64 455.375,63.765 449.283,64.516 C 443.191,65.267 436.097,66.769 428.002,69.023 C 419.907,71.276 409.475,75.616 396.706,82.042 C 383.937,88.468 370.459,96.521 356.271,106.202 C 331.903,99.526 298.437,96.187 255.875,96.187 C 213.479,96.187 180.097,99.526 155.728,106.202 C 141.54,96.521 127.978,88.468 115.043,82.042 C 102.108,75.616 91.801,71.276 84.123,69.023 C 76.446,66.769 69.268,65.309 62.592,64.641 C 55.915,63.973 51.7,63.765 49.948,64.015 C 48.196,64.265 46.818,64.558 45.817,64.891 C 40.643,77.744 37.096,90.344 35.177,102.697 C 33.258,115.049 32.84,125.94 33.925,135.37 C 35.010,144.8 36.179,152.061 37.43,157.152 C 38.682,162.243 40.059,166.791 41.561,170.797 C 13.854,201.008 0,236.81 0,278.205 Z M 62.842,341.047 C 62.842,317.012 73.775,294.979 95.64,274.95 C 102.149,268.94 109.744,264.393 118.423,261.304 C 127.102,258.216 136.908,256.464 147.841,256.046 C 158.774,255.629 169.247,255.712 179.262,256.297 C 189.276,256.881 201.628,257.674 216.316,258.675 C 231.004,259.677 243.69,260.177 254.372,260.177 C 265.055,260.177 277.74,259.677 292.428,258.675 C 307.117,257.674 319.467,256.881 329.483,256.297 C 339.498,255.712 349.97,255.629 360.904,256.046 C 371.837,256.464 381.642,258.216 390.323,261.304 C 399.001,264.392 406.595,268.939 413.105,274.95 C 434.97,294.647 445.904,316.678 445.904,341.047 C 445.904,355.403 444.109,368.128 440.52,379.229 C 436.931,390.329 432.341,399.634 426.749,407.144 C 421.157,414.654 413.397,421.039 403.465,426.297 C 393.534,431.555 383.854,435.602 374.423,438.441 C 364.992,441.278 352.89,443.49 338.119,445.076 C 323.346,446.662 310.161,447.622 298.56,447.955 C 286.96,448.289 272.23,448.456 254.371,448.456 C 236.512,448.456 221.782,448.289 210.182,447.955 C 198.582,447.622 185.395,446.662 170.624,445.076 C 155.853,443.49 143.752,441.278 134.321,438.441 C 124.891,435.602 115.21,431.554 105.279,426.297 C 95.348,421.040 87.586,414.656 81.995,407.144 C 76.404,399.633 71.813,390.329 68.225,379.229 C 64.636,368.128 62.842,355.401 62.842,341.047 ZM 320,336A32,48 2520 1 1 384,336A32,48 2520 1 1 320,336zM 128,336A32,48 2520 1 1 192,336A32,48 2520 1 1 128,336z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"steam, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 151.961,418.005 C 165.533,418.005 178.854,411.437 186.947,399.297 C 199.814,379.996 194.598,353.92 175.298,341.053 L 142.261,319.029 C 147.915,317.489 153.858,316.651 160,316.651 C 197.196,316.651 227.348,346.803 227.348,384 C 227.348,421.197 197.195,451.349 159.999,451.349 C 123.797,451.349 94.277,422.783 92.725,386.962 L 128.702,410.946 C 135.863,415.72 143.955,418.005 151.961,418.005 ZM 426.67,0 C 473.608,0 512,38.406 512,85.344 L 512,426.658 C 512,473.626 473.608,512 426.67,512 L 85.344,512 C 38.406,512 0,473.625 0,426.659 L 0,325.145 L 60.667,365.589 C 54.841,397.176 64.136,431.004 88.566,455.434 C 128.018,494.886 191.981,494.886 231.434,455.434 C 255.668,431.201 265.009,397.719 259.472,366.351 L 384.001,254.858 L 384,254.857 C 407.124,251.538 429.408,240.985 447.197,223.196 C 490.935,179.458 490.935,108.543 447.197,64.804 C 403.457,21.065 332.543,21.065 288.804,64.804 C 271.015,82.593 260.462,104.877 257.143,128 L 257.143,128 L 154.796,283.115 C 138.872,283.931 123.107,288.497 108.933,296.811 L 0,224.189 L 0,85.344 C 0,38.406 38.405,0 85.343,0 L 426.67,0 ZM 448,144c0-44.183-35.817-80-80-80s-80,35.817-80,80s 35.817,80, 80,80S 448,188.183, 448,144z M 320,144\n\t\tc0-26.51, 21.49-48, 48-48s 48,21.49, 48,48s-21.49,48-48,48S 320,170.51, 320,144z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"steam, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,144A48,48 1080 1 1 448,144A48,48 1080 1 1 352,144zM 479.196,64.804c-43.739-43.738-114.653-43.738-158.393,0c-17.789,17.789-28.342,40.073-31.661,63.196l0,0 L 186.795,283.114\n\t\tc-13.753,0.705-27.388,4.208-39.983,10.508L 67.866,231.91c-18.275-14.287-44.671-11.051-58.956,7.224\n\t\tc-14.286,18.275-11.051,44.671, 7.224,58.956l 77.967,60.946c-8.48,33.391, 0.336,70.269, 26.465,96.397\n\t\tc 39.453,39.452, 103.416,39.452, 142.868,0c 24.233-24.233, 33.575-57.714, 28.038-89.083L 416,254.858l-0.001-0.001\n\t\tc 23.124-3.319, 45.408-13.872, 63.197-31.661C 522.935,179.458, 522.935,108.543, 479.196,64.804z M 192,451.349\n\t\tc-37.195,0-67.349-30.152-67.349-67.349c0-0.356, 0.021-0.707, 0.027-1.062l 33.456,26.152c 7.68,6.003, 16.791,8.912, 25.837,8.912\n\t\tc 12.481,0, 24.836-5.54, 33.119-16.136c 14.286-18.275, 11.051-44.671-7.224-58.956l-31.75-24.818c 4.481-0.939, 9.124-1.44, 13.884-1.44\n\t\tc 37.196,0, 67.349,30.152, 67.349,67.349S 229.196,451.349, 192,451.349z M 400,224c-44.183,0-80-35.817-80-80s 35.817-80, 80-80\n\t\ts 80,35.817, 80,80S 444.183,224, 400,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"deviantart, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426,0L 86,0 C 38.7,0,0,38.7,0,86l0,340 c0,47.3, 38.7,86, 86,86l 340,0 c 47.3,0, 86-38.7, 86-86L 512,86 C 512,38.7, 473.3,0, 426,0z M 480,384L 288,384 \n\t\tL 288,266 c0,0, 35.167,0.5, 54,20l0,34 l 77.205,0 c-5.91-18.941-18.534-37.556-36.564-53.332C 351.651,239.553, 301.044,226, 256,226l0,158 L 32,384 l0-48 \n\t\tc0-21.698, 7.325-43.269, 21.182-62.38c 12.297-16.959, 29.432-31.916, 50.93-44.457c 25.216-14.709, 55.281-25.354, 87.888-31.389L 192,128 l 64,0 \n\t\tl0,64 c 73.5,0, 110.806,13.198, 151.889,37.163c 21.498,12.541, 38.633,27.498, 50.93,44.457C 472.676,292.731, 480,314.302, 480,336L 480,384 zM 99.795,320 C 105.705,301.059 118.33,282.444 136.359,266.668 C 152.129,252.87 171.169,242.074 192,234.79 L 192,320 L 99.795,320 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"deviantart, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 280.928,203.5c-19.521-1.141-42.041,0.024-68.125,4.475l 60.167,108.444L 512,250.786\n\tc-2.577-6.13-6.343-12.113-11.331-17.899c-24.737-28.639-78.37-54.187-136.802-65.709l 0.001-0.013\n\tc-57.322-13.437-119.401-12.872-182.98-3.274c-2.292,0.344-4.572,0.711-6.84,1.092l-21.136-39.146\n\tc-20.571,2.746-39.904,7.025-57.803,12.737l 20.13,42.099c-32.88,12.738-59.861,30.88-79.329,52.716\n\tC 3.804,269.921-8.885,315.843, 6.537,360.565c 3.102,9.021, 7.294,17.58, 12.468,25.598l 239.034-65.649l-66.375-122.924\n\tc 2.279-0.44, 4.598-0.884, 6.964-1.312c 107.341-19.149, 166.051,10.432, 198.208,41.915l-81.779,19.824L 280.928,203.5z M 87.361,313.195\n\tc-7.379-33.676-1.506-71.263, 45.202-96.297l 36.569,76.474L 87.361,313.195z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"forrst, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,288L 288,288L 288,416L 224,416zM 426,0L 86,0 C 38.7,0,0,38.7,0,86l0,340 c0,47.3, 38.7,86, 86,86l 340,0 c 47.3,0, 86-38.7, 86-86L 512,86 C 512,38.7, 473.3,0, 426,0z M 288,416l0,64 \n\t\tl-64,0 l0-64 L 96,416 L 256,64l 160,352L 288,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"forrst, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,448 L 0,448 L 224,0 L 448,448 L 256,448 L 256,384 L 320,384 L 320,352 L 256,352 L 256,288 L 192,288 ZM 192,448L 256,448L 256,512L 192,512z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"dribbble, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 382.833,113.173 C 379.392,118.075 350.59,156.788 282.555,182.287 C 251.203,124.684 216.452,77.362 211.164,70.281 C 225.552,66.813 240.563,64.961 256.001,64.961 C 304.616,64.961 349.045,83.196 382.833,113.173 ZM 269.376,257.962 C 170.7,289.86 118.19,376.801 113.855,384.223 C 83.297,350.302 64.668,305.435 64.668,256.294 C 64.668,254.336 64.707,252.389 64.766,250.446 C 73.138,250.617 165.856,251.812 261.405,223.217 C 266.881,233.937 272.113,244.818 276.917,255.687 C 274.385,256.4 271.871,257.157 269.376,257.962 ZM 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256.001,480\n\t\tC 132.486,480, 32,379.515, 32,256C 32,132.486, 132.486,32, 256.001,32C 379.517,32, 480,132.486, 480,256\n\t\tC 480,379.515, 379.517,480, 256.001,480zM 309.959,238.451 C 305.986,229.121 301.718,219.852 297.265,210.737 C 368.007,181.856 400.070,140.755 404.103,135.298 C 430.749,167.856 446.886,209.324 447.309,254.484 C 441,253.15 377.744,240.32 314.080,248.326 C 312.739,245.050 311.367,241.759 309.959,238.451 ZM 245.594,193.794 C 156.096,217.56 77.269,217.218 68.711,217.105 C 81.118,157.734 121.129,108.389 174.657,83.142 C 179.701,90.059 213.893,137.439 245.594,193.794 ZM 288.66,287.75 C 289.080,287.604 289.5,287.468 289.921,287.324 C 316.783,357.127 327.892,415.63 330.739,432.417 C 307.766,442.201 282.506,447.622 256.001,447.622 C 211.769,447.622 171,432.53 138.56,407.232 C 142.003,400.193 180.742,325.355 288.66,287.75 ZM 325.732,278.482 C 385.69,268.886 438.365,284.598 444.912,286.662 C 436.382,339.899 405.826,385.876 362.902,414.898 C 360.941,403.26 350.758,347.251 325.732,278.482 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"dribbble, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 269.376,257.962 C 170.7,289.86 118.19,376.801 113.855,384.223 C 83.297,350.302 64.668,305.435 64.668,256.294 C 64.668,254.336 64.707,252.389 64.766,250.446 C 73.138,250.617 165.856,251.812 261.405,223.217 C 266.881,233.937 272.113,244.818 276.917,255.687 C 274.385,256.4 271.871,257.157 269.376,257.962 ZM 382.833,113.173 C 379.392,118.075 350.59,156.788 282.555,182.287 C 251.203,124.684 216.452,77.362 211.164,70.281 C 225.552,66.813 240.563,64.961 256.001,64.961 C 304.616,64.961 349.045,83.196 382.833,113.173 ZM 245.594,193.794 C 156.096,217.56 77.269,217.218 68.711,217.105 C 81.118,157.734 121.129,108.389 174.657,83.142 C 179.701,90.059 213.893,137.439 245.594,193.794 ZM 288.66,287.75 C 289.080,287.604 289.5,287.468 289.921,287.324 C 316.783,357.127 327.892,415.63 330.739,432.417 C 307.766,442.201 282.506,447.622 256.001,447.622 C 211.769,447.622 171,432.53 138.56,407.232 C 142.003,400.193 180.742,325.355 288.66,287.75 ZM 426,0L 86,0 C 38.7,0,0,38.7,0,86l0,340 c0,47.3, 38.7,86, 86,86l 340,0 c 47.3,0, 86-38.7, 86-86L 512,86 C 512,38.7, 473.3,0, 426,0z M 256.001,480\n\t\tC 132.486,480, 32,379.515, 32,256C 32,132.486, 132.486,32, 256.001,32C 379.517,32, 480,132.486, 480,256\n\t\tC 480,379.515, 379.517,480, 256.001,480zM 325.732,278.482 C 385.69,268.886 438.365,284.598 444.912,286.662 C 436.382,339.899 405.826,385.876 362.902,414.898 C 360.941,403.26 350.758,347.251 325.732,278.482 ZM 297.266,210.738 C 368.008,181.856 400.070,140.756 404.103,135.298 C 430.749,167.856 446.886,209.324 447.309,254.484 C 441,253.15 377.744,240.32 314.080,248.326 C 312.739,245.050 311.367,241.759 309.959,238.451 C 305.987,229.121 301.718,219.852 297.266,210.738 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"dribbble, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256.001,512C 114.841,512,0,397.159,0,256S 114.841,0, 256.001,0\n\tC 397.162,0, 512,114.841, 512,256S 397.162,512, 256.001,512z M 471.899,291.043c-7.481-2.36-67.682-20.316-136.205-9.349\n\tc 28.602,78.593, 40.239,142.604, 42.479,155.904C 427.23,404.43, 462.152,351.885, 471.899,291.043z M 341.416,457.619\n\tc-3.253-19.185-15.949-86.045-46.649-165.82c-0.48,0.164-0.961,0.32-1.44,0.486c-123.335,42.979-167.608,128.508-171.543,136.552\n\tc 37.075,28.912, 83.668,46.16, 134.218,46.16C 286.292,474.997, 315.161,468.802, 341.416,457.619z M 93.549,402.539\n\tc 4.954-8.48, 64.965-107.842, 177.738-144.297c 2.852-0.92, 5.724-1.785, 8.618-2.6c-5.49-12.422-11.47-24.857-17.728-37.108\n\tc-109.199,32.68-215.162,31.315-224.73,31.118c-0.066,2.221-0.111,4.445-0.111,6.683C 37.336,312.495, 58.626,363.772, 93.549,402.539z\n\t M 41.956,211.548c 9.779,0.13, 99.868,0.521, 202.151-26.641c-36.23-64.406-75.306-118.555-81.071-126.46\n\tC 101.862,87.301, 56.135,143.695, 41.956,211.548z M 204.759,43.75c 6.044,8.092, 45.759,62.174, 81.59,128.007\n\tc 77.754-29.142, 110.67-73.385, 114.604-78.987c-38.615-34.259-89.391-55.1-144.951-55.1C 238.357,37.67, 221.202,39.786, 204.759,43.75z\n\t M 425.261,118.056c-4.608,6.237-41.252,53.209-122.101,86.217c 5.089,10.416, 9.967,21.009, 14.508,31.672\n\tc 1.608,3.78, 3.177,7.542, 4.709,11.285c 72.759-9.149, 145.052,5.514, 152.263,7.039C 474.156,202.657, 455.715,155.264, 425.261,118.056z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"picassa, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.688,0L 85.344,0 C 38.406,0,0,38.406,0,85.341l0,341.313 C0,473.625, 38.406,512, 85.344,512l 341.34,0 \n\tC 473.622,512, 512,473.623, 512,426.652L 512,85.341 C 512,38.406, 473.622,0, 426.688,0z M 256,32c 34.357,0, 66.902,7.745, 96,21.569L 352,197.13 \n\tL 195.221,40.351C 214.549,34.914, 234.934,32, 256,32z M 32,256c0-87.944, 50.688-164.037, 124.437-200.693L 213.13,112L 34.643,290.487\n\tC 32.906,279.245, 32,267.729, 32,256z M 128,439.831c-37.342-26.049-66.382-63.174-82.336-106.625L 128,250.87L 128,439.831 z M 256,480\n\tc-34.357,0-66.902-7.745-96-21.569L 160,384 l 279.831,0 C 399.353,442.026, 332.116,480, 256,480z M 458.431,352L 384,352 L 384,72.168 \n\tc 58.026,40.479, 96,107.715, 96,183.832C 480,290.357, 472.255,322.902, 458.431,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"picassa, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,197.13 L 169.772,14.902 C 196.717,5.264 225.742,0 256,0 C 289.952,0 322.352,6.625 352,18.628 L 352,197.13 ZM 384,352 L 384,34.257 C 460.517,78.521 512,161.246 512,256 C 512,289.952 505.375,322.352 493.372,352 L 384,352 ZM 160,384 L 477.743,384 C 433.479,460.517 350.754,512 256,512 C 222.048,512 189.648,505.375 160,493.372 L 160,384 ZM 213.13,112 L 7.489,317.641 C 2.607,297.896 0,277.254 0,256 C 0,159.309 53.613,75.149 132.726,31.596 L 213.13,112 ZM 128,250.87 L 128,477.743 C 80.702,450.382 42.982,408.319 21.063,357.807 L 128,250.87 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"flickr, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,115.398,0,257.75S 114.615,515.5, 256,515.5s 256-115.398, 256-257.75S 397.385,0, 256,0z M 144,336\n\tc-44.183,0-80-35.817-80-80c0-44.183, 35.817-80, 80-80s 80,35.817, 80,80C 224,300.183, 188.183,336, 144,336z M 368,336\n\tc-44.184,0-80-35.817-80-80c0-44.183, 35.816-80, 80-80s 80,35.817, 80,80C 448,300.183, 412.184,336, 368,336z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"flickr, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.688,0L 85.344,0 C 38.406,0,0,38.406,0,85.341l0,341.313 C0,473.625, 38.406,512, 85.344,512l 341.341,0 \n\tC 473.622,512, 512,473.623, 512,426.652L 512,85.341 C 512,38.406, 473.622,0, 426.688,0z M 144,336c-44.183,0-80-35.817-80-80\n\tc0-44.183, 35.817-80, 80-80s 80,35.817, 80,80C 224,300.183, 188.183,336, 144,336z M 368,336c-44.184,0-80-35.817-80-80\n\tc0-44.183, 35.816-80, 80-80s 80,35.817, 80,80C 448,300.183, 412.184,336, 368,336z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"flickr, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 400,208 C 364.71,208 336,236.71 336,272 C 336,307.29 364.71,336 400,336 C 435.29,336 464,307.29 464,272 C 464,236.71 435.29,208 400,208 Z M 400,160 L 400,160 C 461.855,160 512,210.144 512,272 C 512,333.855 461.855,384 400,384 C 338.145,384 288,333.855 288,272 C 288,210.144 338.145,160 400,160 ZM0,272A112,112 1080 1 1 224,272A112,112 1080 1 1 0,272z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"flickr, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,272A112,112 1080 1 1 224,272A112,112 1080 1 1 0,272zM 288,272A112,112 1080 1 1 512,272A112,112 1080 1 1 288,272z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lanyrd\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426,0L 86,0 C 38.7,0,0,38.7,0,86l0,340 c0,47.3, 38.7,86, 86,86l 340,0 c 47.3,0, 86-38.7, 86-86L 512,86 C 512,38.7, 473.3,0, 426,0z\n\t M 421.834,403.833c-56.666,18.667-167.333,55-188,60.167s-42,13.834-54-20.833c0,0-102-301.333-111.333-328S 50.077,72.424, 71.167,64\n\tc 48.688-19.447, 99.333-44.25, 108.667-16c 8.351,25.273, 97.333,304, 97.333,304s 104.666-36.834, 133.333-44.834s 38.501-13.334, 46,26\n\tS 478.5,385.166, 421.834,403.833z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"vimeo\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 406.434,219.063\n\tc-16.979,95.648-111.854,176.648-140.39,195.155c-28.544,18.503-54.577-7.411-64.019-26.997\n\tc-10.808-22.354-43.205-143.47-51.684-153.51c-8.482-10.019-33.938,10.040-33.938,10.040l-12.346-16.188\n\tc0,0, 51.691-61.724, 91.020-69.439c 41.702-8.183, 41.64,64.033, 51.67,104.121c 9.7,38.782, 16.22,60.976, 24.688,60.976\n\tc 8.485,0, 24.691-21.631, 42.426-54.785c 17.768-33.188-0.769-62.505-35.486-41.646C 292.268,143.464, 423.406,123.43, 406.434,219.063z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"vimeo2\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.655,0L 85.345,0 C 38.406,0,0,38.408,0,85.346l0,341.31 C0,473.625, 38.406,512, 85.345,512l 341.31,0 \n\tC 473.594,512, 512,473.625, 512,426.655L 512,85.346 C 512,38.408, 473.594,0, 426.655,0z M 406.434,219.063\n\tc-16.979,95.648-111.854,176.648-140.39,195.155c-28.544,18.503-54.577-7.411-64.019-26.997\n\tc-10.808-22.354-43.205-143.47-51.684-153.51c-8.482-10.019-33.938,10.040-33.938,10.040l-12.346-16.188\n\tc0,0, 51.691-61.724, 91.020-69.439c 41.702-8.183, 41.64,64.033, 51.67,104.121c 9.7,38.782, 16.22,60.976, 24.688,60.976\n\tc 8.485,0, 24.691-21.631, 42.426-54.785c 17.768-33.188-0.769-62.505-35.486-41.646C 292.268,143.464, 423.406,123.43, 406.434,219.063z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"vimeo, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,154.185l 20.797,27.272c0,0, 42.885-33.804, 57.18-16.901c 14.294,16.901, 68.868,220.978, 87.085,258.623\n\tc 15.9,33.015, 59.759,76.66, 107.857,45.491c 48.068-31.17, 207.92-167.643, 236.533-328.808\n\tc 28.59-161.113-192.36-127.363-215.765,13.005c 58.495-35.118, 89.718,14.269, 59.785,70.186\n\tc-29.879,55.862-57.18,92.296-71.476,92.296c-14.269,0-25.245-37.384-41.594-102.723c-16.899-67.551-16.796-189.23-87.058-175.435\n\tC 87.085,50.197,0,154.185,0,154.185z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"youtube, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,64L 96,64 c-52.8,0-96,43.2-96,96l0,192 c0,52.8, 43.2,96, 96,96l 320,0 c 52.8,0, 96-43.2, 96-96L 512,160 C 512,107.2, 468.8,64, 416,64z\n\t\t M 480,352c0,16.989-6.687,33.031-18.827,45.173C 449.031,409.313, 432.99,416, 416,416L 96,416 c-16.989,0-33.031-6.687-45.172-18.827\n\t\tC 38.687,385.031, 32,368.989, 32,352L 32,160 c0-16.989, 6.687-33.031, 18.828-45.172S 79.011,96, 96,96l 320,0 \n\t\tc 16.989,0, 33.031,6.687, 45.173,18.828C 473.314,126.969, 480,143.011, 480,160L 480,352 zM 192,384L 352,256L 192,128 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"youtube, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,64L 96,64 c-52.8,0-96,43.2-96,96l0,192 c0,52.8, 43.2,96, 96,96l 320,0 c 52.8,0, 96-43.2, 96-96L 512,160 C 512,107.2, 468.8,64, 416,64z\n\t M 192,384L 192,128 l 160,128L 192,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"feed, rss, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 160,384\n\tc-17.673,0-32-14.327-32-32s 14.327-32, 32-32s 32,14.327, 32,32S 177.673,384, 160,384z M 248,384c0-66.168-53.832-120-120-120l0-48 \n\tc 92.636,0, 168,75.364, 168,168L 248,384 z M 344,384c0-57.695-22.468-111.938-63.265-152.735C 239.938,190.468, 185.696,168, 128,168l0-48 \n\tc 70.517,0, 136.813,27.461, 186.677,77.324C 364.539,247.187, 392,313.483, 392,384L 344,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"feed, rss, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.67,0L 85.343,0 C 38.405,0,0,38.406,0,85.344l0,341.314 C0,473.625, 38.406,512, 85.344,512L 426.67,512 \n\tc 46.938,0, 85.33-38.374, 85.33-85.342L 512,85.344 C 512,38.406, 473.608,0, 426.67,0z M 139.472,415.624C 115.487,415.624, 96,396.278, 96,372.31\n\tc0-23.842, 19.486-43.406, 43.472-43.406c 24.079,0, 43.53,19.564, 43.53,43.406C 183.001,396.278, 163.55,415.624, 139.472,415.624z\n\t M 248.734,415.998c0-40.905-15.904-79.409-44.73-108.222c-28.857-28.875-67.188-44.813-107.952-44.813L 96.052,200.37 \n\tc 118.826,0, 215.563,96.721, 215.563,215.627L 248.734,415.998L 248.734,415.998z M 359.814,415.998\n\tc0-145.531-118.329-263.97-263.688-263.97L 96.126,89.404 c 180.001,0, 326.473,146.562, 326.473,326.596L 359.814,415.998L 359.814,415.998z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"feed, rss, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 68.147,375.465c-37.598,0-68.146,30.667-68.146,68.038c0,37.577, 30.55,67.901, 68.146,67.901\n\t\tc 37.733,0, 68.247-30.324, 68.247-67.901C 136.393,406.132, 105.882,375.465, 68.147,375.465zM 0.078,173.965l0,98.129 c 63.892,0, 123.979,24.986, 169.229,70.256c 45.192,45.159, 70.141,105.518, 70.141,169.65l 98.561,0 \n\t\tC 338.008,325.59, 186.368,173.965, 0.078,173.965zM 0.194,0l0,98.178 c 227.891,0, 413.378,185.667, 413.378,413.822L 512,512 C 512,229.765, 282.373,0, 0.194,0z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"twitter, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 403.121,180.544\n\tc 0.146,3.254, 0.221,6.528, 0.221,9.819c0,100.311-76.354,215.982-215.979,215.982c-42.868,0-82.768-12.568-116.363-34.107\n\tc 5.938,0.704, 11.981,1.063, 18.108,1.063c 35.565,0, 68.295-12.138, 94.275-32.497c-33.217-0.61-61.25-22.561-70.912-52.716\n\tc 4.637,0.884, 9.392,1.361, 14.283,1.361c 6.923,0, 13.629-0.928, 19.999-2.662c-34.726-6.976-60.893-37.656-60.893-74.434\n\tc0-0.32,0-0.639, 0.008-0.955c 10.235,5.685, 21.939,9.1, 34.382,9.494c-20.37-13.611-33.77-36.846-33.77-63.184\n\tc0-13.911, 3.744-26.952, 10.278-38.162c 37.439,45.927, 93.374,76.146, 156.462,79.314c-1.294-5.559-1.965-11.351-1.965-17.302\n\tc0-41.92, 33.99-75.906, 75.909-75.906c 21.833,0, 41.562,9.218, 55.409,23.97c 17.29-3.404, 33.537-9.721, 48.206-18.42\n\tc-5.668,17.727-17.705,32.603-33.376,41.997c 15.355-1.834, 29.984-5.916, 43.597-11.952\n\tC 430.825,156.471, 417.955,169.84, 403.121,180.544z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"twitter, tweet, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.671,0L 85.343,0 C 38.406,0,0,38.405,0,85.345l0,341.311 C0,473.625, 38.406,512, 85.343,512l 341.328,0 \n\tC 473.609,512, 512,473.625, 512,426.655L 512,85.345 C 512,38.405, 473.609,0, 426.671,0z M 419.026,170.917\n\tc 0.164,3.671, 0.245,7.364, 0.245,11.074c0,113.107-84.608,243.534-239.329,243.534c-47.502,0-91.717-14.174-128.943-38.459\n\tc 6.58,0.794, 13.276,1.197, 20.065,1.197c 39.411,0, 75.679-13.685, 104.467-36.641c-36.808-0.69-67.872-25.438-78.577-59.441\n\tc 5.137,1, 10.406,1.537, 15.826,1.537c 7.672,0, 15.103-1.048, 22.16-3.004c-38.48-7.866-67.475-42.458-67.475-83.928\n\tc0-0.361,0-0.719, 0.008-1.076c 11.34,6.41, 24.312,10.26, 38.1,10.705c-22.571-15.349-37.421-41.546-37.421-71.244\n\tc0-15.685, 4.147-30.389, 11.389-43.029c 41.487,51.785, 103.468,85.86, 173.377,89.431c-1.435-6.266-2.179-12.798-2.179-19.507\n\tc0-47.269, 37.663-85.59, 84.115-85.59c 24.195,0, 46.059,10.393, 61.401,27.029c 19.16-3.838, 37.162-10.96, 53.416-20.771\n\tc-6.281,19.988-19.617,36.761-36.983,47.355c 17.013-2.069, 33.226-6.67, 48.31-13.477C 449.725,143.774, 435.463,158.85, 419.026,170.917\n\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"twitter, tweet, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,97.209c-18.838,8.354-39.082,14.001-60.33,16.54c 21.686-13, 38.343-33.585, 46.186-58.115\n\tc-20.298,12.039-42.778,20.78-66.705,25.49c-19.16-20.415-46.461-33.17-76.673-33.17c-58.011,0-105.044,47.029-105.044,105.039\n\tc0,8.233, 0.929,16.25, 2.72,23.939c-87.3-4.382-164.701-46.2-216.509-109.753c-9.042,15.514-14.223,33.558-14.223,52.809\n\tc0,36.444, 18.544,68.596, 46.73,87.433c-17.219-0.546-33.416-5.271-47.577-13.139c-0.010,0.438-0.010,0.878-0.010,1.321\n\tc0,50.894, 36.209,93.348, 84.261,103c-8.813,2.4-18.094,3.686-27.674,3.686c-6.769,0-13.349-0.66-19.764-1.886\n\tc 13.368,41.73, 52.16,72.103, 98.126,72.948c-35.95,28.175-81.243,44.967-130.458,44.967c-8.479,0-16.84-0.497-25.058-1.47\n\tc 46.486,29.805, 101.701,47.197, 161.021,47.197c 193.211,0, 298.868-160.062, 298.868-298.872c0-4.554-0.103-9.084-0.305-13.59\n\tC 480.11,136.773, 497.918,118.273, 512,97.209z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"instagram, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 427,0L 85,0 C 38.25,0,0,38.25,0,85l0,342 c0,46.75, 38.25,85, 85,85l 342,0 c 46.75,0, 85-38.25, 85-85L 512,85 C 512,38.25, 473.75,0, 427,0z\n\t M 163.9,224l 184.2,0 c 3.494,10.029, 5.4,20.795, 5.4,32c0,53.762-43.738,97.5-97.5,97.5c-53.762,0-97.5-43.738-97.5-97.5\n\tC 158.5,244.795, 160.406,234.029, 163.9,224z M 448,224.025L 448,352 l0,64 c0,17.6-14.4,32-32,32L 96,448 c-17.6,0-32-14.4-32-32l0-64 L 64,224.025 L 64,224 \n\tl 50.054,0 c-2.321,10.301-3.554,21.008-3.554,32c0,80.229, 65.271,145.5, 145.5,145.5c 80.229,0, 145.5-65.271, 145.5-145.5\n\tc0-10.992-1.232-21.699-3.554-32L 448,224 L 448,224.025 z M 448,112c0,8.8-7.2,16-16,16l-32,0 c-8.8,0-16-7.2-16-16L 384,80 c0-8.8, 7.2-16, 16-16l 32,0 \n\tc 8.8,0, 16,7.2, 16,16L 448,112 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"facebook, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0 C 397.385,0 512,114.615 512,256 C 512,386.547 414.281,494.265 288,510.013 L 288,320 L 376,320 L 384,256 L 288,256 L 288,224 C 288,206.327 302.327,192 320,192 L 384,192 L 384,128 L 320,128 C 266.98,128 224,170.98 224,224 L 224,256 L 176,256 L 176,320 L 224,320 L 224,446.5 L 224,503.935 L 224,510.013 C 97.719,494.265 0,386.547 0,256 C 0,114.615 114.615,0 256,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"facebook, social, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,416 c0,26.4, 21.6,48, 48,48l 416,0 c 26.4,0, 48-21.6, 48-48L 512,48 C 512,21.6, 490.4,0, 464,0z M 472,408L 352,408 \n\tl0,16 l 120,0 l0,16 L 352,440 l0,16 l 120,0 l0,16 L 352,472 l0,8 l-96,0 l0-8 L 40,472 l0-16 l 216,0 l0-16 L 40,440 l0-16 l 216,0 l0-16 L 40,408 l0-16 l 216,0 L 256,256 l-46.263,0 l0-73.282 L 256,182.718 l0-47.593 \n\tC 256,70.454, 283.896,32, 359.935,32l 87.622,0 l0,79.285 l-71.565,0 c-21.241-0.035-23.876,11.076-23.876,31.756L 352,182.718l 96,0 L 435.296,256\n\tL 352,256 l0,136 l 120,0 L 472,408 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"facebook, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.672,0L 85.342,0 C 38.406,0,0,38.407,0,85.344l0,341.313 C0,473.626, 38.406,512, 85.342,512l 341.33-0.001\n\tc 46.938,0, 85.328-38.373, 85.328-85.344L 512,85.344 C 512,38.407, 473.609,0, 426.672,0z M 435.296,256L 352,256 l0,224 l-96,0 L 256,256 l-46.263,0 l0-73.282 L 256,182.718 \n\tl0-47.593 C 256,70.454, 283.896,32, 359.935,32l 87.622,0 l0,79.285 l-71.565,0 c-21.241-0.035-23.876,11.076-23.876,31.756L 352,182.718l 96,0 \n\tL 435.296,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"facebook, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 287.935,512L 192,512 L 192,256 l-64,0 l0-88.225 l 64-0.029l-0.104-51.976C 191.896,43.794, 211.413,0, 296.195,0l 70.588,0 l0,88.242 l-44.115,0 \n\tc-33.016,0-34.603,12.328-34.603,35.342l-0.131,44.162l 79.345,0 l-9.352,88.225L 288,256L 287.935,512z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"google-drive, drive\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 229.665,329.916L 144.338,477.75L 426.665,477.75L 512,329.916 \tzM 487.806,288L 341.339,34.25L 170.665,34.25L 317.143,288 \tzM 146.418,76.257L0,329.916L 85.338,477.75L 231.754,224.088 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"google plus, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 218.503,409.081 C 218.503,446.615 195.308,476.277 129.624,478.669 C 91.132,456.776 58.879,425.193 36.17,387.236 C 48.015,357.988 85.016,335.713 127.328,336.179 C 139.339,336.305 150.533,338.236 160.7,341.529 C 188.654,360.962 211.2,373.105 216.862,395.253 C 217.919,399.735 218.503,404.356 218.503,409.081 ZM 256,0C 182.030,0, 115.402,31.385, 68.667,81.549c 18.467-10.226, 40.269-16.319, 63.451-16.319c 33.534,0, 128.219,0, 128.219,0\n\t\tL 231.685,95.3L 198.030,95.3 c 23.748,13.606, 36.376,41.624, 36.376,72.506c0,28.346-15.708,51.19-37.89,68.529\n\t\tc-21.64,16.901-25.746,23.983-25.746,38.367c0,12.271, 25.861,30.549, 37.75,39.468c 41.409,31.056, 49.789,50.592, 49.789,89.435\n\t\tc0,39.363-34.468,78.552-92.933,91.871C 193.55,506.145, 224.089,512, 256,512c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0z\n\t\t M 384,192l0,64 l-32,0 l0-64 l-64,0 l0-32 l 64,0 L 352,96 l 32,0 l0,64 l 64,0 l0,32 L 384,192 zM 182.884,169.736 C 188.845,215.124 168.961,244.331 134.417,243.303 C 99.854,242.262 67.014,210.557 61.047,165.182 C 55.083,119.788 78.256,85.055 112.812,86.084 C 147.357,87.121 176.922,124.355 182.884,169.736 ZM 110.443,321.034 C 73.103,321.034 41.379,333.918 19.022,352.966 C 6.771,323.056 0,290.321 0,256 C 0,227.617 4.628,200.316 13.156,174.802 C 16.843,224.523 51.832,262.898 109.641,262.898 C 113.898,262.898 118.023,262.677 122.078,262.387 C 118.103,270.002 115.267,278.482 115.267,287.378 C 115.267,302.363 123.511,310.913 133.701,320.825 C 126,320.825 118.566,321.034 110.443,321.034 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"google plus, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 0.403,434.832c-0.122-1.266-0.226-2.535-0.292-3.815C 0.176,432.297, 0.281,433.566, 0.403,434.832zM 117.954,282.574c 46.005,1.369, 76.867-46.349, 68.931-106.599c-7.947-60.24-51.698-108.584-97.704-109.961\n\t\tc-46.013-1.365-76.87,44.741-68.926,105C 28.196,231.248, 71.931,281.201, 117.954,282.574zM 512,128L 512,85.345 C 512,38.405, 473.609,0, 426.671,0L 85.343,0 C 39.205,0, 1.337,37.116, 0.061,82.963\n\t\tc 29.181-25.693, 69.662-47.158, 111.437-47.158c 44.652,0, 178.622,0, 178.622,0l-39.974,33.809l-56.634,0 \n\t\tc 37.565,14.402, 57.578,58.062, 57.578,102.861c0,37.624-20.905,69.977-50.444,92.984c-28.822,22.451-34.286,31.854-34.286,50.939\n\t\tc0,16.289, 30.873,44, 47.016,55.394c 47.191,33.269, 62.458,64.156, 62.458,115.728c0,8.214-1.021,16.415-3.033,24.48l 153.871,0 \n\t\tC 473.609,512, 512,473.625, 512,426.655L 512,160.001 l-96,0 L 416,256 l-32,0 l0-96 l-95.999,0 l0-32 L 384,128 L 384,32 l 32,0 l0,96 L 512,128 zM 92.943,382.968c 10.807,0, 20.711-0.295, 30.968-0.295c-13.573-13.167-24.313-29.3-24.313-49.19\n\t\tc0-11.804, 3.782-23.168, 9.067-33.26c-5.391,0.385-10.895,0.497-16.563,0.497c-37.178,0-68.753-12.038-92.102-31.927l0,33.621 \n\t\tl 0.003,100.865C 26.723,390.592, 58.447,382.968, 92.943,382.968zM 1.71,443.629c-0.556-2.729-0.983-5.503-1.271-8.317C 0.726,438.126, 1.154,440.9, 1.71,443.629zM 227.725,476.423c-7.529-29.403-34.227-43.982-71.444-69.784c-13.536-4.366-28.447-6.937-44.447-7.104\n\t\tc-44.809-0.482-86.554,17.471-110.108,44.186C 9.686,482.574, 44.243,512, 85.343,512l 143.222,0 c 0.908-5.564, 1.348-11.316, 1.348-17.216\n\t\tC 229.913,488.517, 229.146,482.388, 227.725,476.423z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"google plus, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.756,0L 84.621,0 C 37.571,0,0,38.893,0,85.939l0,340.176 C0,474.326, 37.571,512, 84.621,512l 342.134,0 \n\tC 473.803,512, 512,474.326, 512,426.115L 512,85.939 C 512,38.893, 473.803,0, 426.756,0z M 352,16l0,80 l-80,0 L 272,16 L 352,16 z M 240,16l0,80 l-80,0 L 160,16 L 240,16 z\n\t M 16,96L 16,85.939 C 16,47.375, 46.783,16, 84.621,16L 128,16 l0,80 L 16,96 z M 384,320l-96,0 l0,96 l-64,0 l0-96 l-96,0 l0-64 l 96,0 l0-96 l 64,0 l0,96 l 96,0 L 384,320 z M 496,96L 384,96 L 384,16 \n\tl 42.756,0 C 464.938,16, 496,47.375, 496,85.939L 496,96 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"google plus, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 279.533,32c0,0-100.478,0-133.97,0C 85.503,32, 28.978,77.503, 28.978,130.211c0,53.863, 40.941,97.333, 102.044,97.333\n\t\tc 4.249,0, 8.378-0.085, 12.421-0.376c-3.965,7.593-6.801,16.144-6.801,25.021c0,14.969, 8.052,27.105, 18.234,37.012\n\t\tc-7.693,0-15.121,0.224-23.226,0.224C 57.259,289.424,0,336.804,0,385.935c0,48.389, 62.771,78.657, 137.167,78.657\n\t\tc 84.812,0, 131.653-48.122, 131.653-96.514c0-38.8-11.448-62.036-46.843-87.067c-12.108-8.572-35.265-29.418-35.265-41.672\n\t\tc0-14.36, 4.098-21.434, 25.714-38.323c 22.156-17.312, 37.836-41.651, 37.836-69.958c0-33.703-15.010-66.549-43.186-77.386l 42.477,0 \n\t\tL 279.533,32z M 232.74,359.729c 1.063,4.486, 1.642,9.103, 1.642,13.814c0,39.1-25.196,69.655-97.487,69.655\n\t\tc-51.421,0-88.558-32.552-88.558-71.65c0-38.321, 46.063-70.222, 97.482-69.666c 12,0.127, 23.184,2.058, 33.335,5.345\n\t\tC 207.067,326.64, 227.092,337.608, 232.74,359.729z M 150.409,213.888c-34.519-1.032-67.318-38.613-73.276-83.93\n\t\tc-5.958-45.333, 17.185-80.021, 51.694-78.995c 34.505,1.037, 67.319,37.407, 73.279,82.729\n\t\tC 208.059,179.022, 184.911,214.921, 150.409,213.888zM 416,128L 416,32L 384,32L 384,128L 288,128L 288,160L 384,160L 384,256L 416,256L 416,160L 512,160L 512,128 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"google\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 394.767,32c0,0-100.478,0-133.97,0c-60.061,0-116.585,45.503-116.585,98.211c0,53.863, 40.941,97.333, 102.044,97.333\n\tc 4.249,0, 8.378-0.085, 12.42-0.376c-3.964,7.593-6.8,16.144-6.8,25.021c0,14.969, 8.052,27.105, 18.234,37.012\n\tc-7.693,0-15.121,0.224-23.226,0.224c-74.391-0.001-131.65,47.38-131.65,96.511c0,48.389, 62.771,78.656, 137.167,78.656\n\tc 84.812,0, 131.653-48.122, 131.653-96.514c0-38.801-11.448-62.036-46.843-87.067c-12.108-8.571-35.266-29.418-35.266-41.672\n\tc0-14.36, 4.098-21.434, 25.714-38.323c 22.156-17.312, 37.837-41.651, 37.837-69.958c0-33.703-15.011-66.549-43.187-77.386l 42.478,0 \n\tL 394.767,32z M 347.974,359.729c 1.063,4.486, 1.642,9.104, 1.642,13.814c0,39.1-25.195,69.655-97.487,69.655\n\tc-51.421,0-88.558-32.552-88.558-71.65c0-38.321, 46.063-70.222, 97.482-69.666c 12,0.127, 23.184,2.058, 33.334,5.345\n\tC 322.301,326.641, 342.325,337.607, 347.974,359.729z M 265.643,213.888c-34.519-1.032-67.318-38.613-73.276-83.93\n\tc-5.958-45.333, 17.185-80.021, 51.694-78.995C 278.565,52, 311.379,88.37, 317.34,133.692\n\tC 323.293,179.022, 300.145,214.921, 265.643,213.888z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mail, contact, support, newsletter, letter, email, envelop, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 128,128l 256,0 \n\tc 4.569,0, 9.002,0.981, 13.072,2.831L 256,295.415L 114.928,130.83C 118.998,128.982, 123.431,128, 128,128z M 96,352L 96,160 \n\tc0-0.67, 0.028-1.336, 0.070-2l 93.832,109.471L 97.103,360.27C 96.381,357.602, 96,354.827, 96,352z M 384,384L 128,384 \n\tc-2.827,0-5.601-0.381-8.27-1.104l 91.059-91.059L 256,344.586l 45.212-52.747l 91.058,91.060C 389.6,383.619, 386.827,384, 384,384z\n\t M 416,352c0,2.827-0.381,5.6-1.103,8.27l-92.8-92.799L 415.93,158c 0.042,0.664, 0.070,1.33, 0.070,2L 416,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mail, contact, support, newsletter, letter, email, envelop, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.671,0L 85.343,0 C 38.406,0,0,38.405,0,85.345l0,341.311 C0,473.625, 38.406,512, 85.343,512l 341.328,0 \n\tC 473.609,512, 512,473.625, 512,426.655L 512,85.345 C 512,38.405, 473.609,0, 426.671,0z M 91.314,443.313l-38.628-38.627l 128-128\n\tl 14.628,14.627L 91.314,443.313z M 76.686,99.314l 14.628-14.628L 256,217.373L 420.687,84.686l 14.627,14.628L 256,310.627L 76.686,99.314z\n\t M 420.687,443.313l-104-152l 14.627-14.627l 128,128L 420.687,443.313z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mail, contact, support, newsletter, letter, email, envelop, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.671,0L 85.343,0 C 38.406,0,0,38.405,0,85.345l0,341.311 C0,473.625, 38.406,512, 85.343,512l 341.328,0 \n\tC 473.609,512, 512,473.625, 512,426.655L 512,85.345 C 512,38.405, 473.609,0, 426.671,0z M 426.671,64c 3.994,0, 7.773,1.167, 11.010,3.171\n\tL 256,217.373L 74.323,67.173C 77.562,65.168, 81.345,64, 85.343,64L 426.671,64 z M 85.343,448c-0.962,0-1.91-0.073-2.842-0.204\n\tl 112.813-156.483l-14.628-14.627L 64,393.371L 64,87.802 L 256,320L 448,87.803l0,305.568 L 331.314,276.686l-14.627,14.627l 112.814,156.484\n\tc-0.929,0.13-1.873,0.203-2.831,0.203L 85.343,448 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mail, contact, support, newsletter, letter, email, envelop, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 426.655,0L 85.345,0 C 38.405,0,0,38.392,0,85.329l0,341.328 C0,473.595, 38.405,512, 85.345,512l 341.311,0 \n\tC 473.625,512, 512,473.595, 512,426.657L 512,85.329 C 512,38.392, 473.625,0, 426.655,0z M 128,128l 256,0 c 4.569,0, 9.002,0.981, 13.072,2.831\n\tL 256,295.415L 114.928,130.83C 118.998,128.982, 123.431,128, 128,128z M 96,352L 96,160 c0-0.67, 0.028-1.336, 0.070-2l 93.832,109.47\n\tL 97.103,360.27C 96.381,357.601, 96,354.827, 96,352z M 384,384L 128,384 c-2.827,0-5.601-0.381-8.27-1.103l 91.059-91.059L 256,344.586\n\tl 45.212-52.747l 91.058,91.059C 389.6,383.619, 386.827,384, 384,384z M 416,352c0,2.827-0.381,5.6-1.103,8.27l-92.799-92.799L 415.93,158\n\tc 0.042,0.664, 0.070,1.33, 0.070,2L 416,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"share, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,256A64,64 12600 1 1 320,256A64,64 12600 1 1 192,256zM 256,128c 35.346,0, 67.346,14.327, 90.51,37.49l 45.255-45.255C 357.020,85.49, 309.020,64, 256,64\n\t\tc-83.596,0-154.7,53.431-181.060,128L0,192 l0,64 l 128,0 C 128,185.308, 185.308,128, 256,128zM 384,256c0,70.692-57.308,128-128,128c-35.346,0-67.346-14.327-90.51-37.49l-45.255,45.255\n\t\tC 154.981,426.51, 202.981,448, 256,448c 83.596,0, 154.7-53.431, 181.060-128L 512,320 l0-64 L 384,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"share, social\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 432,352c-22.58,0-42.96,9.369-57.506,24.415L 158.992,268.664C 159.649,264.538, 160,260.311, 160,256\n\ts-0.351-8.538-1.008-12.663l 215.502-107.751C 389.040,150.631, 409.42,160, 432,160c 44.183,0, 80-35.817, 80-80S 476.183,0, 432,0\n\ts-80,35.817-80,80c0,4.311, 0.352,8.538, 1.008,12.663L 137.506,200.415C 122.96,185.37, 102.58,176, 80,176c-44.183,0-80,35.818-80,80\n\tc0,44.184, 35.817,80, 80,80c 22.58,0, 42.96-9.369, 57.506-24.414l 215.502,107.751C 352.352,423.462, 352,427.689, 352,432\n\tc0,44.184, 35.817,80, 80,80s 80-35.816, 80-80C 512,387.818, 476.183,352, 432,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"seven segment 9, number, nine\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,32L 160,0L 352,0L 384,32L 352,64L 160,64 zM 384,240L 352,208L 352,80L 384,48L 416,80L 416,208 zM 128,240.001L 96,208.001L 96,80L 128,48L 160,80L 160,208.001 zM 384,464L 352,432L 352,304L 384,272L 416,304L 416,432 zM 128,256L 160,224L 352,224L 384,256L 352,288L 160,288 zM 128,480L 160,448L 352,448L 384,480L 352,512L 160,512 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"seven segment 8, number, eight\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,64L 384,32L 352,0L 160,0L 128,32L 160,64 \tzM 384,48L 352,80L 352,208L 384,240L 416,208L 416,80 \tzM 160,208.001L 160,80L 128,48L 96,80L 96,208.001L 128,240.001 \tzM 352,304L 352,432L 384,464L 416,432L 416,304L 384,272 \tzM 160,432L 160,304L 128,272L 96,304L 96,432L 128,464 \tzM 128,256L 160,288L 352,288L 384,256L 352,224L 160,224 \tzM 160,448L 128,480L 160,512L 352,512L 384,480L 352,448 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"seven segment 7, number\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,32L 160,0L 352,0L 384,32L 352,64L 160,64 zM 384,240L 352,208L 352,80L 384,48L 416,80L 416,208 zM 384,464L 352,432L 352,304L 384,272L 416,304L 416,432 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"seven segment 6, number, six\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,32L 160,0L 352,0L 384,32L 352,64L 160,64 zM 128,240.001L 96,208.001L 96,80L 128,48L 160,80L 160,208.001 zM 384,464L 352,432L 352,304L 384,272L 416,304L 416,432 zM 128,464L 96,432L 96,304L 128,272L 160,304L 160,432 zM 128,256L 160,224L 352,224L 384,256L 352,288L 160,288 zM 128,480L 160,448L 352,448L 384,480L 352,512L 160,512 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"seven segment 5, number, five\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,32L 160,0L 352,0L 384,32L 352,64L 160,64 zM 128,240.001L 96,208.001L 96,80L 128,48L 160,80L 160,208.001 zM 384,464L 352,432L 352,304L 384,272L 416,304L 416,432 zM 128,256L 160,224L 352,224L 384,256L 352,288L 160,288 zM 128,480L 160,448L 352,448L 384,480L 352,512L 160,512 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"seven segment 4, number, four\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,240L 352,208L 352,80L 384,48L 416,80L 416,208 zM 128,240.001L 96,208.001L 96,80L 128,48L 160,80L 160,208.001 zM 384,464L 352,432L 352,304L 384,272L 416,304L 416,432 zM 128,256L 160,224L 352,224L 384,256L 352,288L 160,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"seven segment 3, number, three\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,32L 160,0L 352,0L 384,32L 352,64L 160,64 zM 384,240L 352,208L 352,80L 384,48L 416,80L 416,208 zM 384,464L 352,432L 352,304L 384,272L 416,304L 416,432 zM 128,256L 160,224L 352,224L 384,256L 352,288L 160,288 zM 128,480L 160,448L 352,448L 384,480L 352,512L 160,512 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"seven segment 2, number, two\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,32L 160,0L 352,0L 384,32L 352,64L 160,64 zM 384,240L 352,208L 352,80L 384,48L 416,80L 416,208 zM 128,464L 96,432L 96,304L 128,272L 160,304L 160,432 zM 128,256L 160,224L 352,224L 384,256L 352,288L 160,288 zM 128,480L 160,448L 352,448L 384,480L 352,512L 160,512 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"seven segment 1, number, one\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,48L 352,80L 352,208L 384,240L 416,208L 416,80 \tzM 352,304L 352,432L 384,464L 416,432L 416,304L 384,272 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"seven segment 0, number, zero\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,64L 384,32L 352,0L 160,0L 128,32L 160,64 \tzM 384,48L 352,80L 352,208L 384,240L 416,208L 416,80 \tzM 160,208.001L 160,80L 128,48L 96,80L 96,208.001L 128,240.001 \tzM 352,304L 352,432L 384,464L 416,432L 416,304L 384,272 \tzM 160,432L 160,304L 128,272L 96,304L 96,432L 128,464 \tzM 160,448L 128,480L 160,512L 352,512L 384,480L 352,448 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"console, command line, terminal\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32l0,448 l 512,0 L 512,32 L0,32 z M 480,448L 32,448 L 32,64 l 448,0 L 480,448 zM 448,96L 64,96 l0,320 l 384,0 L 448,96 z M 224,256l-32,0 l0,32 l-32,0 l0,32 l-32,0 l0-32 l 32,0 l0-32 l 32,0 l0-32 l-32,0 l0-32 l-32,0 l0-32 l 32,0 l0,32 l 32,0 l0,32 l 32,0 L 224,256 z M 352,320l-96,0 \n\t\tl0-32 l 96,0 L 352,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"code, embed\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,256L 192,128L 128,128L0,256L 128,384L 192,384 \tzM 384,128L 320,128L 448,256L 320,384L 384,384L 512,256 \tzM 272,64L 192,448L 240,448L 320,64 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"embed\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 144,128L 16,256l 128,128l 64,0 L 80,256l 128-128L 144,128 z M 368,128l-64,0 l 128,128L 304,384l 64,0 l 128-128L 368,128z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"popout, new window\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,64L 176,64 c-26.4,0-48,21.6-48,48l0,48 L 48,160 c-26.4,0-48,21.6-48,48l0,192 c0,26.4, 21.6,48, 48,48l 288,0 c 26.4,0, 48-21.6, 48-48l0-48 l 80,0 \n\tc 26.4,0, 48-21.6, 48-48L 512,112 C 512,85.6, 490.401,64, 464,64z M 352,400c0,8.673-7.327,16-16,16L 48,416 c-8.673,0-16-7.327-16-16L 32,208 \n\tc0-8.673, 7.327-16, 16-16l 80,0 l0,112 c0,26.4, 21.6,48, 48,48l 176,0 L 352,400 z M 480,304c0,8.673-7.327,16-16,16L 176,320 c-8.673,0-16-7.327-16-16L 160,112 \n\tc0-8.673, 7.327-16, 16-16l 288,0 c 8.673,0, 16,7.327, 16,16L 480,304 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"new tab, external, outside, popout, link, blank\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,32l0,384 l 384,0 L 480,32 L 96,32 z M 448,384L 128,384 L 128,64 l 320,0 L 448,384 zM 64,448L 64,128L 32,96L 32,480L 416,480L 384,448 \tzM 214.627,342.627L 310.627,246.627L 384,320L 384,128L 192,128L 265.373,201.373L 169.373,297.373 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"new tab, external, outside, popout, link, blank\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,288 L 416,224 L 416,480 L 32,480 L 32,96 L 288,96 L 224,160 L 96,160 L 96,416 L 352,416 ZM 480,32 L 480,208 L 414.628,142.628 L 237.255,320 L 192,320 L 192,274.744 L 369.372,97.372 L 304,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"share, out, external, outside\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,320c0,0, 29.412-96, 192-96l0,96 l 192-128L 320,64l0,96 C 192,160, 128,239.836, 128,320zM 352,384L 64,384 L 64,192 l 62.938,0 c 5.047-5.959, 10.456-11.667, 16.244-17.090c 21.982-20.595, 48.281-36.326, 78.057-46.91L0,128 l0,320 l 416,0 \n\t\tL 416,313.688 l-64,42.667L 352,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"indent-decrease, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32L 512,32L 512,96L0,96zM 192,288L 512,288L 512,352L 192,352zM 192,160L 512,160L 512,224L 192,224zM0,416L 512,416L 512,480L0,480zM 128,160 L 128,352 L 0,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"indent-increase, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32L 512,32L 512,96L0,96zM 192,288L 512,288L 512,352L 192,352zM 192,160L 512,160L 512,224L 192,224zM0,416L 512,416L 512,480L0,480zM 0,352 L 0,160 L 128,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paragraph-justify, wysiwyg, justify\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32L 512,32L 512,96L0,96zM0,288L 512,288L 512,352L0,352zM0,160L 512,160L 512,224L0,224zM0,416L 512,416L 512,480L0,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paragraph-right, align right, right, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32L 512,32L 512,96L0,96zM 192,160L 512,160L 512,224L 192,224zM 192,416L 512,416L 512,480L 192,480zM0,288L 512,288L 512,352L0,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paragraph-center, align center, center, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32L 512,32L 512,96L0,96zM 96,160L 416,160L 416,224L 96,224zM 96,416L 416,416L 416,480L 96,480zM0,288L 512,288L 512,352L0,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paragraph-left, align left, left, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32L 512,32L 512,96L0,96zM0,160L 320,160L 320,224L0,224zM0,416L 320,416L 320,480L0,480zM0,288L 512,288L 512,352L0,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"indent-decrease, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32L 512,32L 512,96L0,96zM 192,128L 512,128L 512,192L 192,192zM 192,224L 512,224L 512,288L 192,288zM 192,320L 512,320L 512,384L 192,384zM0,416L 512,416L 512,480L0,480zM 128,160 L 128,352 L 0,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"indent-increase, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32L 512,32L 512,96L0,96zM 192,128L 512,128L 512,192L 192,192zM 192,224L 512,224L 512,288L 192,288zM 192,320L 512,320L 512,384L 192,384zM0,416L 512,416L 512,480L0,480zM 0,352 L 0,160 L 128,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paragraph-justify, wysiwyg, justify\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32L 512,32L 512,96L0,96zM0,128L 512,128L 512,192L0,192zM0,224L 512,224L 512,288L0,288zM0,320L 512,320L 512,384L0,384zM0,416L 512,416L 512,480L0,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paragraph-right, align right, right, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32L 512,32L 512,96L0,96zM 192,128L 512,128L 512,192L 192,192zM 192,320L 512,320L 512,384L 192,384zM0,224L 512,224L 512,288L0,288zM0,416L 512,416L 512,480L0,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paragraph-center, align center, center, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32L 512,32L 512,96L0,96zM 96,128L 416,128L 416,192L 96,192zM 96,320L 416,320L 416,384L 96,384zM0,224L 512,224L 512,288L0,288zM0,416L 512,416L 512,480L0,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paragraph-left, align left, left, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32L 512,32L 512,96L0,96zM0,128L 320,128L 320,192L0,192zM0,320L 320,320L 320,384L0,384zM0,224L 512,224L 512,288L0,288zM0,416L 512,416L 512,480L0,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paragraph-justify, wysiwyg, justify\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,160L 512,160L 512,192L0,192zM0,288L 512,288L 512,320L0,320zM0,416L 512,416L 512,448L0,448zM0,96L 512,96L 512,128L0,128zM0,224L 512,224L 512,256L0,256zM0,352L 512,352L 512,384L0,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paragraph-right, align right, right, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,96L 512,96L 512,128L0,128zM 160,160L 512,160L 512,192L 160,192zM0,224L 512,224L 512,256L0,256zM 160,288L 512,288L 512,320L 160,320zM0,352L 512,352L 512,384L0,384zM 160,416L 512,416L 512,448L 160,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paragraph-center, align center, center, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,96L 512,96L 512,128L0,128zM 96,160L 416,160L 416,192L 96,192zM 96,288L 416,288L 416,320L 96,320zM 96,416L 416,416L 416,448L 96,448zM0,224L 512,224L 512,256L0,256zM0,352L 512,352L 512,384L0,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paragraph-left, align left, left, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,96L 512,96L 512,128L0,128zM0,160L 352,160L 352,192L0,192zM0,224L 512,224L 512,256L0,256zM0,288L 352,288L 352,320L0,320zM0,352L 512,352L 512,384L0,384zM0,416L 352,416L 352,448L0,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"right to left, rtl, wysiwyg, direction\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,0C 57.308,0,0,57.308,0,128s 57.308,128, 128,128l0,256 l 64,0 L 192,64 l 64,0 l0,448 l 64,0 L 320,64 l 64,0 L 384,0 L 128,0 zM 512,96L 384,224L 512,352 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"left to right, ltr, wysiwyg, direction\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0c-70.692,0-128,57.308-128,128s 57.308,128, 128,128l0,256 l 64,0 L 320,64 l 64,0 l0,448 l 64,0 L 448,64 l 64,0 L 512,0 L 256,0 zM0,352L 128,224L0,96 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pilcrow, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,0 L 448,0 L 448,64 L 384,64 L 384,512 L 320,512 L 320,64 L 256,64 L 256,512 L 192,512 L 192,256 C 121.308,256 64,198.692 64,128 C 64,57.308 121.308,0 192,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"insert-template, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,96L 256,96L 256,128L 192,128zM 288,96L 352,96L 352,128L 288,128zM 448,96 L 448,224 L 352,224 L 352,192 L 416,192 L 416,128 L 384,128 L 384,96 ZM 160,192L 224,192L 224,224L 160,224zM 256,192L 320,192L 320,224L 256,224zM 96,128 L 96,192 L 128,192 L 128,224 L 64,224 L 64,96 L 160,96 L 160,128 ZM 192,288L 256,288L 256,320L 192,320zM 288,288L 352,288L 352,320L 288,320zM 448,288 L 448,416 L 352,416 L 352,384 L 416,384 L 416,320 L 384,320 L 384,288 ZM 160,384L 224,384L 224,416L 160,416zM 256,384L 320,384L 320,416L 256,416zM 96,320 L 96,384 L 128,384 L 128,416 L 64,416 L 64,288 L 160,288 L 160,320 ZM 480,32 L 32,32 L 32,480 L 480,480 L 480,32 Z M 512,0 L 512,0 L 512,512 L 0,512 L 0,0 L 512,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"table, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32l0,448 l 512,0 L 512,32 L0,32 z M 192,320l0-96 l 128,0 l0,96 L 192,320 z M 320,352l0,96 L 192,448 l0-96 L 320,352 z M 320,96l0,96 L 192,192 L 192,96 L 320,96 z M 160,96l0,96 L 32,192 L 32,96 L 160,96 z\n\t M 32,224l 128,0 l0,96 L 32,320 L 32,224 z M 352,224l 128,0 l0,96 L 352,320 L 352,224 z M 352,192L 352,96 l 128,0 l0,96 L 352,192 z M 32,352l 128,0 l0,96 L 32,448 L 32,352 z M 352,448l0-96 l 128,0 l0,96 L 352,448 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"table, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,96l0,352 l 512,0 L 512,96 L0,96 z M 192,320l0-64 l 128,0 l0,64 L 192,320 z M 320,352l0,64 L 192,416 l0-64 L 320,352 z M 320,160l0,64 L 192,224 l0-64 L 320,160 z M 160,160l0,64 L 32,224 l0-64 L 160,160 z\n\t M 32,256l 128,0 l0,64 L 32,320 L 32,256 z M 352,256l 128,0 l0,64 L 352,320 L 352,256 z M 352,224l0-64 l 128,0 l0,64 L 352,224 z M 32,352l 128,0 l0,64 L 32,416 L 32,352 z M 352,416l0-64 l 128,0 l0,64 L 352,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"clear-formatting, remove style, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,448L 288,448L 288,512L0,512zM 448,64 L 296.72,64 L 204.838,416 L 138.694,416 L 230.575,64 L 96,64 L 96,0 L 448,0 ZM 464.887,512 L 400,447.113 L 335.113,512 L 304,480.887 L 368.887,416 L 304,351.113 L 335.113,320 L 400,384.887 L 464.887,320 L 496,351.113 L 431.113,416 L 496,480.887 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pagebreak, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,192 L 128,0 L 512,0 L 512,192 L 480,192 L 480,32 L 160,32 L 160,192 ZM 512,288 L 512,512 L 128,512 L 128,288 L 160,288 L 160,480 L 480,480 L 480,288 ZM 256,224L 320,224L 320,256L 256,256zM 160,224L 224,224L 224,256L 160,256zM 352,224L 416,224L 416,256L 352,256zM 448,224L 512,224L 512,256L 448,256zM0,144L 96,240L0,336 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"highlight, background-color, wysiwyg, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 336,48.084L 455.917,152l 0.083-0.083L 352,32.084L 471.917,136l 0.042-0.042L 496,160L 327.82,328.18\n\t\t\tc-14.806,14.806-37.578,17.083-54.84,6.84L 296,311.917L 192,192.084l 0.79,0.685L 311.917,296l 0.083-0.083L 208,176.084L 327.917,280\n\t\t\tl 0.083-0.083L 224,160.084L 343.917,264l 0.083-0.083L 240,144.084L 359.917,248l 0.083-0.083L 256,128.084L 375.917,232l 0.083-0.083\n\t\t\tL 272,112.084L 391.917,216l 0.083-0.083L 288,96.084L 407.917,200l 0.083-0.083L 304,80.084L 423.917,184l 0.083-0.083L 320,64.084\n\t\t\tL 439.917,168l 0.083-0.083L 336,48.084zM 360.042,24.042L 352,32.084l-16,16l-16,16l-16,16l-16,16l-16,16l-16,16l-16,16l-16,16l-16,16l-15.947,15.947\n\t\t\tl-31.071,30.987c-4.189-7.058-6.287-15.037-6.287-23.019c0-11.534, 4.375-23.069, 13.125-31.819L 336,0L 360.042,24.042zM 160.981,223.019 L 272.981,335.019 L 192,416 L 0,416 L 0,384 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"text-color, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 161.009,416l 28.8-96l 132.382,0 l 28.8,96l 56.816,0 L 311.809,96L 200.191,96 l-96,320L 161.009,416 z M 237.809,160l 36.382,0 l 28.8,96l-93.982,0 \n\tL 237.809,160z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"subscript, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 97.009,416l 28.8-96l 132.382,0 l 28.8,96l 56.817,0 l-96-320L 136.191,96 l-96,320L 97.009,416 z M 173.809,160l 36.382,0 l 28.8,96l-93.982,0 \n\tL 173.809,160zM 422,416 C 453.9,416 480,437.6 480,464 C 480,490.4 453.9,512 422,512 L 410,512 C 384.872,512 363.354,498.594 355.345,480 L 422,480 C 436.643,480 448,471.398 448,464 C 448,456.602 436.643,448 422,448 L 410,448 C 378.1,448 352,426.4 352,400 C 352,373.6 378.1,352 410,352 L 422,352 C 447.128,352 468.646,365.406 476.655,384 L 410,384 C 395.357,384 384,392.602 384,400 C 384,407.398 395.357,416 410,416 L 422,416 ZM 512,96L 432,224L 352,96 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"superscript, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 97.009,416l 28.8-96l 132.382,0 l 28.8,96l 56.817,0 l-96-320L 136.191,96 l-96,320L 97.009,416 z M 173.809,160l 36.382,0 l 28.8,96l-93.982,0 \n\tL 173.809,160zM 422,64 C 453.9,64 480,85.6 480,112 C 480,138.4 453.9,160 422,160 L 410,160 C 384.872,160 363.354,146.594 355.345,128 L 422,128 C 436.643,128 448,119.399 448,112 C 448,104.601 436.643,96 422,96 L 410,96 C 378.1,96 352,74.4 352,48 C 352,21.6 378.1,0 410,0 L 422,0 C 447.128,0 468.646,13.406 476.655,32 L 410,32 C 395.357,32 384,40.601 384,48 C 384,55.399 395.357,64 410,64 L 422,64 ZM 352,416L 432,288L 512,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"subscript, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,455 L 384,480 L 448,480 L 448,512 L 352,512 L 352,439 L 416,409 L 416,384 L 352,384 L 352,352 L 448,352 L 448,425 ZM 338,128L 270,128L 176,222L 82,128L 14,128L 142,256L 14,384L 82,384L 176,290L 270,384L 338,384L 210,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"superscript, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,103 L 384,128 L 448,128 L 448,160 L 352,160 L 352,87 L 416,57 L 416,32 L 352,32 L 352,0 L 448,0 L 448,73 ZM 338,128L 270,128L 176,222L 82,128L 14,128L 142,256L 14,384L 82,384L 176,290L 270,384L 338,384L 210,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"page-break, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,256L 64,256L 64,288L0,288zM 96,256L 192,256L 192,288L 96,288zM 224,256L 288,256L 288,288L 224,288zM 320,256L 416,256L 416,288L 320,288zM 448,256L 512,256L 512,288L 448,288zM 440,0 L 448,224 L 64,224 L 72,0 L 88,0 L 96,192 L 416,192 L 424,0 ZM 72,512 L 64,320 L 448,320 L 440,512 L 424,512 L 416,352 L 96,352 L 88,512 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"page-break, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,256L 64,256L 64,288L0,288zM 96,256L 192,256L 192,288L 96,288zM 224,256L 288,256L 288,288L 224,288zM 320,256L 416,256L 416,288L 320,288zM 448,256L 512,256L 512,288L 448,288zM 440,0 L 448,224 L 64,224 L 72,0 L 120,0 L 128,192 L 384,192 L 392,0 ZM 72,512 L 64,320 L 448,320 L 440,512 L 392,512 L 384,384 L 128,384 L 120,512 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"nbsp, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,288 L 128,288 L 128,224 L 224,224 L 224,128 L 288,128 L 288,224 L 384,224 L 384,288 L 288,288 L 288,384 L 224,384 ZM 512,320 L 512,512 L 0,512 L 0,320 L 64,320 L 64,448 L 448,448 L 448,320 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"sigma, symbols, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 470.803,367.354 L 493,320 L 512,320 L 480,512 L 0,512 L 0,474.879 L 165.773,279.273 L 0,113.5 L 0,0 L 490,0 L 512,128 L 494.812,128 L 485.452,108.559 L 485.452,108.56 C 467.793,71.878 454.5,64 416,64 L 85,64 L 261.528,240.528 L 112.818,416 L 384,416 C 442.004,416 457.324,395.211 470.803,367.354 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"omega, symbols, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,448 L 480,448 L 512,384 L 512,512 L 320,512 L 320,404.893 C 385.556,376.651 432,306.312 432,224 C 432,116.784 353.201,32.867 256,32.867 C 158.797,32.867 80,116.783 80,224 C 80,306.312 126.443,376.651 192,404.893 L 192,512 L 0,512 L 0,384 L 32,448 L 160,448 L 160,431.705 C 66.185,398.475 0,318.004 0,224 C 0,100.288 114.615,0 256,0 C 397.385,0 512,100.288 512,224 C 512,318.004 445.815,398.475 352,431.705 L 352,448 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"strikethrough, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,256 L 512,288 L 394.747,288 C 408.499,307.255 416,329.346 416,352 C 416,387.439 397.67,421.513 365.71,445.482 C 336.031,467.741 297.068,480 256,480 C 214.931,480 175.969,467.741 146.29,445.482 C 114.33,421.513 96,387.439 96,352 L 160,352 C 160,386.691 203.963,416 256,416 C 308.037,416 352,386.691 352,352 C 352,317.309 308.037,288 256,288 L 0,288 L 0,256 L 149.759,256 C 148.59,255.173 147.431,254.338 146.29,253.482 C 114.33,229.512 96,195.439 96,160 C 96,124.561 114.33,90.488 146.29,66.518 C 175.969,44.259 214.931,32 256,32 C 297.068,32 336.031,44.259 365.71,66.518 C 397.67,90.488 416,124.561 416,160 L 352,160 C 352,125.309 308.037,96 256,96 C 203.963,96 160,125.309 160,160 C 160,194.691 203.963,224 256,224 C 295.489,224 333.027,235.339 362.241,256 L 512,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"italic, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,32 L 448,64 L 384,64 L 224,448 L 288,448 L 288,480 L 64,480 L 64,448 L 128,448 L 288,64 L 224,64 L 224,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"underline, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,32 L 416,32 L 416,240 C 416,319.529 344.366,384 256,384 C 167.635,384 96,319.529 96,240 L 96,32 L 160,32 L 160,240 C 160,260.083 169.119,279.352 185.677,294.253 C 204.125,310.855 229.1,320 256,320 C 282.9,320 307.875,310.855 326.323,294.253 C 342.881,279.352 352,260.083 352,240 L 352,32 ZM 96,416L 416,416L 416,480L 96,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bold, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 353.94,242.326C 372.689,220.055, 384,191.322, 384,160c0-70.58-57.421-128-128-128l-64,0 l-64,0 L 96,32 l0,448 l 32,0 l 64,0 l 96,0 \n\tc 70.579,0, 128-57.421, 128-128C 416,305.522, 391.101,264.752, 353.94,242.326z M 192,96l 50.75,0 c 27.984,0, 50.75,28.71, 50.75,64\n\ts-22.766,64-50.75,64L 192,224 L 192,96 z M 271.5,416L 192,416 L 192,288 l 79.5,0 c 29.225,0, 53,28.71, 53,64S 300.725,416, 271.5,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"font-size, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,256 L 224,256 L 224,320 L 160,320 L 160,512 L 96,512 L 96,320 L 32,320 ZM 480,128 L 354.125,128 L 354.125,512 L 285.875,512 L 285.875,128 L 160,128 L 160,64 L 480,64 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"strikethrough, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,0L 32,160L 96,64L 224,64L 224,224L 288,224L 288,64L 416,64L 480,160L 480,0 \tzM 288,480L 288,320L 224,320L 224,480L 160,480L 128,512L 256,512L 384,512L 352,480 \tzM0,256L 512,256L 512,288L0,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"strikethrough, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,256 L 480,288 L 389.043,288 C 406.067,310.881 416,338.395 416,368 C 416,447.529 344.365,512 256,512 C 173.644,512 105.833,455.998 96.988,384 L 161.98,384 C 165.483,398.155 173.585,411.37 185.677,422.253 C 204.125,438.856 229.1,448 256,448 C 282.9,448 307.875,438.856 326.323,422.253 C 342.881,407.351 352,388.083 352,368 C 352,347.917 342.881,328.649 326.323,313.747 C 307.875,297.144 282.9,288 256,288 L 32,288 L 32,256 L 155.443,256 L 356.557,256 L 480,256 ZM 256,224 L 122.957,224 C 105.933,201.119 96,173.605 96,144 C 96,64.471 167.634,0 256,0 C 338.355,0 406.167,56.002 415.011,128 L 350.020,128 C 346.516,113.845 338.414,100.63 326.323,89.748 C 307.875,73.144 282.9,64 256,64 C 229.1,64 204.125,73.144 185.677,89.748 C 169.119,104.649 160,123.917 160,144 C 160,164.083 169.119,183.351 185.677,198.252 C 204.125,214.856 229.1,224 256,224 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"italic, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,0 L 448,32 L 382.72,32 L 214.72,480 L 288,480 L 288,512 L 64,512 L 64,480 L 129.28,480 L 297.28,32 L 224,32 L 224,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"underline, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,448L 448,448L 448,512L 64,512zM 352,0 L 448,0 L 448,32 L 416,32 L 416,256 C 416,344.365 344.365,416 256,416 C 167.634,416 96,344.365 96,256 L 96,32 L 64,32 L 64,0 L 192,0 L 192,32 L 160,32 L 160,256 C 160,308.935 210.243,356 272,356 C 333.757,356 384,308.935 384,256 L 384,32 L 352,32 L 352,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bold, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320.771,238.502l0-4.307 c 58.147-10.768, 126.522-40.379, 126.522-116.83c0-38.76-18.309-71.062-47.919-89.908\n\tC 368.689,7.538, 328.848,0, 267.473,0L 32.2,0 l0,27.995 c 56.53,5.383, 64.606,10.229, 64.606,77.528l0,300.417 \n\tc0,65.894-7.625,71.844-64.807,77.559L 31.999,512 l 200.479,0 c 67.297,0, 128.134-11.846, 168.513-33.919\n\tc 46.303-24.224, 75.37-65.681, 75.37-117.369C 476.362,285.342, 414.987,248.732, 320.771,238.502z M 192.001,76.988\n\tc0-16.151, 1.615-27.459, 7-33.379c 4.846-4.306, 18.846-10.229, 36.609-10.229c 44.15,0, 87.221,26.918, 87.221,98.522\n\tc0,64.068-35.535,93.678-113.062,93.678l-17.769-0.001L 192,76.988 z M 252.304,478.082C 208.153,479.158, 192,462.467, 192,403.785l 0.001,0 \n\tL 192.001,257.883 l 15.613,0 c 93.144,0, 140.518,37.688, 140.518,111.446C 348.132,445.241, 296.99,477.543, 252.304,478.082z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"width\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,448 L 128,512 L 32,432 L 128,352 L 128,416 L 384,416 L 384,352 L 480,432 L 384,512 L 384,448 ZM 416,96 L 96,96 L 96,256 L 416,256 L 416,96 Z M 480,32 L 480,32 L 480,320 L 32,320 L 32,32 L 480,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"height\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,384 L 512,384 L 432,480 L 352,384 L 416,384 L 416,128 L 352,128 L 432,32 L 512,128 L 448,128 ZM 256,96 L 64,96 L 64,416 L 256,416 L 256,96 Z M 320,32 L 320,32 L 320,480 L 0,480 L 0,32 L 320,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"text-width, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,448 L 128,512 L 32,432 L 128,352 L 128,416 L 384,416 L 384,352 L 480,432 L 384,512 L 384,448 ZM 416,32 L 416,160 L 384,96 L 288,96 L 288,320 L 352,320 L 352,352 L 160,352 L 160,320 L 224,320 L 224,96 L 128,96 L 96,160 L 96,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"text-height, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,384 L 512,384 L 432,480 L 352,384 L 416,384 L 416,128 L 352,128 L 432,32 L 512,128 L 448,128 ZM 320,32 L 320,160 L 288,96 L 192,96 L 192,448 L 256,448 L 256,480 L 64,480 L 64,448 L 128,448 L 128,96 L 32,96 L 0,160 L 0,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"type, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,0L 32,160L 96,64L 224,64L 224,480L 160,480L 128,512L 256,512L 384,512L 352,480L 288,480L 288,64L 416,64L 480,160L 480,0 \n\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"font-size, size, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,0L 64,160L 128,64L 256,64L 256,480L 192,480L 192,512L 288,512L 384,512L 384,480L 320,480L 320,64L 448,64L 512,160L 512,0 \n\t\t\tzM 128,288L 192,288L 224,336L 224,256L0,256L0,336L 32,288L 96,288L 96,480L 64,480L 64,512L 112,512L 160,512L 160,480L 128,480 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"font, font family, wysiwyg\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 399.798,8.104C 354.535,8.104, 325.488,0, 278.874,0C 128.232,0, 57.978,85.792, 57.978,172.936\n\tc0,51.339, 24.32,68.229, 72.282,68.229c-3.379-7.432-9.457-15.54-9.457-52.017c0-102.005, 38.503-131.729, 87.818-133.755\n\tc0,0-40.459,396.687-157.889,444.271L 50.732,512 l 84.359,0 l 73.938,0 l 54.013-256l 98.922,0 L 384,192L 276.546,192 l 25.972-123.095\n\tc 29.723,6.078, 58.771,12.158, 83.766,12.158c 31.074,0, 59.447-9.457, 74.984-81.063C 442.355,6.080, 422.087,8.104, 399.798,8.104z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"filter, funnel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 434.745,96L 297.373,233.373L 288,242.745L 288,256 l0,135.016 l-64,16L 224,256 l0-13.255 l-9.373-9.373L 77.255,96L 434.745,96 M 512,64L0,64 \n\t\tl 192,192l0,192 l 128-32L 320,256 L 512,64L 512,64z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"filter, funnel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,64L 192,256L 192,448L 320,416L 320,256L 512,64 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"filter, funnel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,112C 512,50.144, 397.385,0, 256,0S0,50.144,0,112c0,19.688, 11.626,38.185, 32.016,54.261L 32,166.261 l 160,146.242L 192,480 \n\tc0,17.673, 28.654,32, 64,32c 35.348,0, 64-14.327, 64-32L 320,312.503 l 160-146.242l-0.016,0 C 500.374,150.185, 512,131.688, 512,112z\n\t M 460.172,142.132L 288,298.398l0,175.105 c-5.088,2.806-16.152,6.494-32,6.494c-15.848,0-26.912-3.688-32-6.494L 224,298.398 L 51.828,142.132\n\tC 44.423,136.293, 32,123.745, 32,112c0-6.534, 3.743-13.718, 11.124-21.354c 9.839-10.177, 25.29-20.041, 44.683-28.525\n\tc 21.27-9.305, 46.291-17.658, 74.369-22.854C 191.821,33.782, 223.388,30, 256,30c 32.611,0, 64.179,3.782, 93.824,9.267\n\tc 28.078,5.196, 53.1,13.549, 74.369,22.854c 19.393,8.484, 34.844,18.348, 44.683,28.525C 476.257,98.282, 480,105.466, 480,112\n\tC 480,123.745, 467.577,136.293, 460.172,142.132zM 96,116.25A160,43.75 2520 1 1 416,116.25A160,43.75 2520 1 1 96,116.25z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"filter, funnel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,35.817,0,80l0,48 l 192,192l0,160 c0,17.673, 28.653,32, 64,32c 35.346,0, 64-14.327, 64-32L 320,320 l 192-192L 512,80 \n\tC 512,35.817, 397.385,0, 256,0z M 47.192,69.412c 11.972-6.829, 28.791-13.31, 48.639-18.744C 139.803,38.63, 196.685,32, 256,32\n\tc 59.314,0, 116.197,6.63, 160.169,18.668c 19.848,5.434, 36.667,11.915, 48.64,18.744c 7.896,4.503, 12.162,8.312, 14.148,10.588\n\tc-1.986,2.276-6.253,6.084-14.148,10.588c-11.973,6.829-28.792,13.31-48.64,18.744C 372.198,121.37, 315.315,128, 256,128\n\tc-59.315,0-116.197-6.63-160.169-18.668c-19.848-5.434-36.667-11.915-48.639-18.744C 39.296,86.084, 35.030,82.276, 33.043,80\n\tC 35.030,77.724, 39.296,73.916, 47.192,69.412z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"scissors, cut\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 445.387,354.577c-22.827-22.778-51.864-34.536-78.973-34.536l-14.556,0 l-31.952-32.004l 127.81-128.019\n\tc 31.952-32.005, 31.952-96.014,0-128.019L 256.001,224.027L 64.285,32c-31.952,32.004-31.952,96.014,0,128.019l 127.811,128.017\n\tl-31.953,32.004l-14.557,0 c-27.11,0-56.146,11.759-78.974,34.538c-40.811,40.721-46.325,101.242-12.315,135.175\n\tC 69.282,504.704, 89.441,512, 110.795,512c 27.108,0, 56.145-11.757, 78.973-34.536c 26.792-26.732, 38.371-62, 33.542-92.674l 32.692-32.744\n\tl 32.688,32.744c-4.828,30.674, 6.753,65.941, 33.542,92.674C 345.063,500.243, 374.098,512, 401.206,512\n\tc 21.354,0, 41.512-7.296, 56.497-22.248C 491.713,455.819, 486.197,395.298, 445.387,354.577z M 176.512,422.769\n\tc-3.849,8.941-9.505,17.173-16.813,24.463c-7.318,7.302-15.586,12.959-24.574,16.812c-8.066,3.458-16.48,5.284-24.331,5.284\n\tc-7.573,0-18.306-1.701-26.431-9.806c-8.068-8.052-9.76-18.659-9.76-26.144c0-7.771, 1.821-16.105, 5.263-24.106\n\tc 3.85-8.942, 9.507-17.173, 16.813-24.463c 7.317-7.303, 15.586-12.957, 24.575-16.812c 8.067-3.457, 16.48-5.284, 24.332-5.284\n\tc 7.573,0, 18.306,1.7, 26.429,9.807c 8.067,8.049, 9.761,18.658, 9.761,26.142C 181.777,406.433, 179.957,414.77, 176.512,422.769z\n\t M 256.002,333.298c-24.957,0-45.188-20.266-45.188-45.263c0-24.996, 20.231-45.26, 45.188-45.26s 45.186,20.264, 45.186,45.26\n\tC 301.188,313.034, 280.958,333.298, 256.002,333.298z M 427.636,459.521c-8.124,8.104-18.856,9.806-26.43,9.806\n\tc-7.852,0-16.265-1.826-24.333-5.284c-8.986-3.853-17.254-9.51-24.571-16.812c-7.307-7.29-12.963-15.521-16.813-24.463\n\tc-3.443-7.999-5.263-16.336-5.263-24.106c0-7.483, 1.692-18.094, 9.76-26.143c 8.123-8.104, 18.856-9.807, 26.43-9.807\n\tc 7.85,0, 16.265,1.827, 24.33,5.284c 8.989,3.854, 17.258,9.509, 24.575,16.812c 7.305,7.29, 12.962,15.521, 16.813,24.463\n\tc 3.442,7.999, 5.263,16.335, 5.263,24.106C 437.396,440.862, 435.702,451.47, 427.636,459.521z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"scissors, cut\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 148.95,0l-8.601,16.636c-2.967,5.739-3.436,15.441, 3.916,44.132c 4.646,18.127, 12.079,42.257, 22.094,71.721\n\t\tc 12.645,37.202, 27.779,78.103, 41.266,113.162l 30.575-62.683L 148.95,0zM 445.758,435.696l-1.535-17.522l-1.179,0.564c-6.377-24.955-23.095-49.090-48.090-69.052\n\t\tc-25.345-20.24-55.312-32.814-78.206-32.814c-4.53,0-8.712,0.494-12.518,1.472l-15.711-32.209\n\t\tc 16.149-40.417, 39.153-100.779, 57.123-153.646c 10.014-29.463, 17.447-53.594, 22.093-71.72c 7.353-28.691, 6.882-38.393, 3.915-44.132\n\t\tl-8.602-16.635L 256.002,219.465l0-0.001l-32.52,66.671l0,0l-15.711,32.209c-3.806-0.978-7.989-1.472-12.519-1.472\n\t\tc-22.894,0-52.86,12.574-78.204,32.812C 87.812,373.032, 69.9,402.086, 66.614,431.49l-0.372,4.206\n\t\tc-2.601,36.446, 13.639,66.34, 40.411,74.386c 4.235,1.272, 9.070,1.918, 14.373,1.918c 27.206,0, 61.183-16.609, 75.808-53.703\n\t\tc 2.033-4.838, 4.27-10.708, 6.856-17.499c 8.286-21.751, 20.809-54.623, 33.895-68.239c 4.789-4.981, 8.493-8.596, 11.468-11.5\n\t\tc 2.675-2.61, 4.923-4.804, 6.948-7.022c 2.025,2.218, 4.273,4.411, 6.946,7.019c 2.978,2.905, 6.683,6.52, 11.473,11.504\n\t\tc 13.086,13.614, 25.606,46.481, 33.892,68.23c 2.588,6.795, 4.825,12.669, 6.859,17.509c 14.623,37.094, 48.601,53.701, 75.809,53.702\n\t\tc 0.001,0, 0.002,0, 0.002,0c 5.302,0, 10.138-0.646, 14.373-1.918C 432.123,502.034, 448.36,472.142, 445.758,435.696z M 165.027,440.949\n\t\tc-18.821,34.352-35.635,39.49-43.991,39.49c-11.377,0-19.895-9.239-21.556-18.169c-1.095-5.884-1.293-11.923-0.589-17.953\n\t\tc 2.818-24.164, 19.215-44.907, 32.475-58.052c 18.219-18.064, 38.649-30.061, 51.764-35.301c 1.308-0.457, 2.109-0.525, 2.476-0.525\n\t\tc 0.194,0, 0.3,0.018, 0.32,0.018c 0.003,0, 0.004,0, 0.004-0.001C 189.791,353.005, 194.339,382.012, 165.027,440.949z M 412.795,462.271\n\t\tc-1.674,8.931-10.244,18.169-21.691,18.169c-8.408,0-25.327-5.139-44.263-39.491c-29.499-58.958-24.904-87.982-21.062-90.478\n\t\tc 0.001,0, 0.101-0.031, 0.355-0.031c 0.368,0, 1.176,0.069, 2.489,0.526c 13.196,5.238, 33.751,17.234, 52.085,35.3\n\t\tc 13.34,13.146, 29.841,33.888, 32.678,58.044C 414.091,450.356, 413.892,456.399, 412.795,462.271z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"scissors, cut\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 390.979,512c-27.208-0.001-61.186-16.608-75.809-53.702c-2.034-4.84-4.271-10.714-6.859-17.509\n\tc-8.285-21.749-20.806-54.616-33.892-68.23c-4.79-4.984-8.495-8.599-11.473-11.504c-2.673-2.607-4.921-4.801-6.946-7.019\n\tc-2.025,2.219-4.273,4.412-6.948,7.022c-2.976,2.904-6.68,6.519-11.468,11.5c-13.086,13.616-25.608,46.488-33.895,68.239\n\tc-2.586,6.791-4.823,12.661-6.856,17.499C 182.208,495.391, 148.231,512, 121.025,512c-5.303,0-10.138-0.646-14.373-1.918\n\tc-26.772-8.046-43.012-37.939-40.411-74.386l 0.372-4.206c 3.287-29.404, 21.199-58.458, 50.435-81.806\n\tc 25.344-20.238, 55.31-32.812, 78.204-32.812c 4.53,0, 8.712,0.494, 12.519,1.472l 15.711-32.209\n\tc-16.148-40.414-39.152-100.774-57.123-153.646c-10.015-29.463-17.448-53.594-22.094-71.721\n\tc-7.352-28.691-6.883-38.393-3.916-44.132L 148.95,0l 107.053,219.465L 363.049,0.001l 8.602,16.635\n\tc 2.967,5.739, 3.438,15.441-3.915,44.132c-4.646,18.126-12.079,42.257-22.093,71.72c-17.97,52.868-40.974,113.229-57.123,153.646\n\tl 15.711,32.209c 3.806-0.978, 7.987-1.472, 12.518-1.472c 22.895,0, 52.861,12.574, 78.206,32.814\n\tc 24.995,19.962, 41.713,44.097, 48.090,69.052l 1.179-0.564l 1.535,17.522c 2.603,36.445-13.635,66.338-40.404,74.386\n\tc-4.235,1.272-9.071,1.918-14.373,1.918C 390.98,512, 390.979,512, 390.979,512z M 346.841,440.948\n\tc 18.936,34.353, 35.854,39.491, 44.263,39.491c 11.447,0, 20.018-9.238, 21.691-18.169c 1.097-5.871, 1.296-11.914, 0.592-17.961\n\tc-2.837-24.156-19.338-44.898-32.678-58.044c-18.334-18.065-38.889-30.062-52.085-35.3c-1.313-0.457-2.121-0.526-2.489-0.526\n\tc-0.255,0-0.354,0.031-0.355,0.031C 321.937,352.966, 317.342,381.99, 346.841,440.948z M 183.13,350.965\n\tc-13.115,5.24-33.545,17.236-51.764,35.301c-13.26,13.145-29.656,33.888-32.475,58.052c-0.704,6.030-0.506,12.069, 0.589,17.953\n\tc 1.661,8.93, 10.179,18.169, 21.556,18.169c 8.356,0, 25.17-5.139, 43.991-39.49c 29.312-58.938, 24.764-87.944, 20.903-90.493\n\tc0,0.001-0.001,0.001-0.004,0.001c-0.020,0-0.125-0.018-0.32-0.018C 185.239,350.439, 184.438,350.508, 183.13,350.965z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"rulers, measure, size\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,64L 256,0 L 64,0 l0,64 L0,64 l0,192 l 64,0 l0,256 l 192,0 L 256,256 l 256,0 L 512,64 L 256,64 z M 64,224L 32,224 L 32,96 l 32,0 L 64,224 z M 224,64l-64,0 l0,32 l 64,0 l0,32 l-64,0 l0,32 l 64,0 l0,32 l-64,0 l0,32 l 64,0 l0,32 \n\tl-64,0 l0,32 l 64,0 l0,32 l-64,0 l0,32 l 64,0 l0,32 l-64,0 l0,32 l 64,0 l0,64 L 96,480 L 96,32 l 128,0 L 224,64 z M 480,224l-32,0 l0-64 l-32,0 l0,64 l-32,0 l0-64 l-32,0 l0,64 l-32,0 l0-64 l-32,0 l0,64 l-32,0 L 256,96 l 224,0 L 480,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"vector, bezier\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 80,206c0-17.673-14.327-32-32-32s-32,14.327-32,32c0,11.843, 6.438,22.175, 16,27.708L 32,512 l 32,0 L 64,233.708 \n\t\tC 73.562,228.175, 80,217.843, 80,206zM 160,160l0,74.848 C 99.878,311.102, 64,407.359, 64,512l 32,0 c0-56.174, 10.995-110.65, 32.678-161.916\n\t\tc 14.316-33.848, 32.865-65.338, 55.366-94.084L 256,256 l0-71.956 c 28.746-22.501, 60.236-41.049, 94.084-55.366\n\t\tC 401.35,106.995, 455.826,96, 512,96L 512,64 c-104.641,0-200.899,35.878-277.152,96L 160,160 zM 233.708,32c-5.534-9.562-15.866-16-27.708-16c-17.673,0-32,14.326-32,32s 14.327,32, 32,32c 11.843,0, 22.175-6.438, 27.708-16\n\t\tL 512,64 L 512,32 L 233.708,32 zM 160,480L 224,480L 224,512L 160,512zM 288,480L 352,480L 352,512L 288,512zM 480,416L 480,480L 416,480L 416,512L 512,512L 512,416 \tzM 480,160L 512,160L 512,224L 480,224zM 480,288L 512,288L 512,352L 480,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"crop, resize, cut\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,192 L 216,192 L 216,96 L 416,96 L 416,296 L 320,296 ZM 512,320 L 512,416 L 96,416 L 96,0 L 192,0 L 192,320 ZM0,96L 72,96L 72,192L0,192zM 320,440L 416,440L 416,512L 320,512z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"crop, resize, cut\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,128l 96-96L 480,0l-96,96L 160,96 L 160,0 L 96,0 l0,96 L0,96 l0,64 l 96,0 l0,256 l 256,0 l0,96 l 64,0 l0-96 l 96,0 l0-64 l-96,0 L 416,128 z M 160,160l 160,0 L 160,320L 160,160 z M 192,352\n\tl 160-160l0,160 L 192,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"circle\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,256A256,256 4680 1 1 512,256A256,256 4680 1 1 0,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"circle\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,480\n\t\tC 132.288,480, 32,379.712, 32,256S 132.288,32, 256,32s 224,100.288, 224,224S 379.712,480, 256,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"radio-unchecked, circle\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,448\n\tc-106.039,0-192-85.961-192-192c0-106.039, 85.961-192, 192-192c 106.039,0, 192,85.961, 192,192C 448,362.039, 362.039,448, 256,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"radio-checked\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,448\n\t\tc-106.039,0-192-85.961-192-192c0-106.039, 85.961-192, 192-192c 106.039,0, 192,85.961, 192,192C 448,362.039, 362.039,448, 256,448zM 160,256A96,96 12600 1 1 352,256A96,96 12600 1 1 160,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"checkbox-partial, box, squares, partial, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,416 c0,26.4, 21.6,48, 48,48l 416,0 c 26.4,0, 48-21.6, 48-48L 512,48 C 512,21.6, 490.4,0, 464,0z M 448,448L 64,448 \n\t\tL 64,64 l 384,0 L 448,448 zM 160,384l 192,0 c 17.6,0, 32-14.4, 32-32L 384,160 c0-17.6-14.4-32-32-32L 160,128 c-17.6,0-32,14.4-32,32l0,192 C 128,369.6, 142.4,384, 160,384z\n\t\t M 160,348l 192,0 l0,3.942 c-0.017,0.020-0.038,0.041-0.058,0.058L 160.057,352 c-0.020-0.017-0.041-0.038-0.057-0.058L 160,348 z M 160.057,160l 191.885,0 \n\t\tc 0.020,0.017, 0.041,0.038, 0.058,0.058L 352,164 L 160,164 l0-3.943 C 160.017,160.038, 160.038,160.017, 160.057,160z M 352,172l0,8 L 160,180 l0-8 L 352,172 z\n\t\t M 352,188l0,8 L 160,196 l0-8 L 352,188 z M 352,204l0,8 L 160,212 l0-8 L 352,204 z M 352,220l0,8 L 160,228 l0-8 L 352,220 z M 352,236l0,8 L 160,244 l0-8 L 352,236 z M 352,252l0,8 L 160,260 l0-8 L 352,252 z M 352,268l0,8 \n\t\tL 160,276 l0-8 L 352,268 z M 352,284l0,8 L 160,292 l0-8 L 352,284 z M 352,300l0,8 L 160,308 l0-8 L 352,300 z M 352,316l0,8 L 160,324 l0-8 L 352,316 z M 352,332l0,8 L 160,340 l0-8 L 352,332 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"checkbox-unchecked, box, square, unchecked\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,64l0,384 L 64,448 L 64,64 L 448,64 M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,416 c0,26.4, 21.6,48, 48,48l 416,0 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0L 464,0z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"checkbox-checked, checked\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,112L 208,272L 144,192L 96,240L 208,384L 416,144 zM 448,64l0,384 L 64,448 L 64,64 L 448,64 M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,416 c0,26.4, 21.6,48, 48,48l 416,0 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0L 464,0z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"checkbox-partial, partial\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,96l0,416 l 416,0 L 416,96 L0,96 z M 384,480L 32,480 L 32,128 l 352,0 L 384,480 zM 96,192L 320,192L 320,416L 96,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"checkbox-unchecked, unchecked\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,128l0,352 L 32,480 L 32,128 L 384,128 M 416,96L0,96 l0,416 l 416,0 L 416,96 L 416,96z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"checkbox, tick, selected, checked\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 206.297,270.361L 104.8,179.922L 62.39,222.32c 41.72,39.207, 138.38,140.625, 171.080,179.447\n\t\tC 325.49,248.018, 421.157,135.506, 512,30.649l-17.973-17.974C 347.156,123.834, 206.297,270.361, 206.297,270.361zM 384,480L 32,480 L 32,128 l 251.776,0 c 11.14-10.316, 22.868-21.030, 35.086-32L0,96 l0,416 l 416,0 L 416,221 c-10.746,13.778-21.408,27.758-32,42.013L 384,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"checkbox-partial, partial\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,0l0,512 l 512,0 L 512,0 L0,0 z M 480,480L 32,480 L 32,32 l 448,0 L 480,480 zM 128,128L 384,128L 384,384L 128,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"square\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,0L 512,0L 512,512L0,512z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"checkbox-unchecked, unchecked, square\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,0l0,512 l 512,0 L 512,0 L0,0 z M 480,480L 32,480 L 32,32 l 448,0 L 480,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"checkbox-checked, tick, checked, selected\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,0l0,512 l 512,0 L 512,0 L0,0 z M 480,480L 32,480 L 32,32 l 448,0 L 480,480 z M 384,112L 224,272l-96-96l-64,64l 160,160l 224-224L 384,112z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"command, cmd\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 400,504c-57.346,0-104-46.654-104-104l0-56 l-80,0 l0,56 c0,57.346-46.654,104-104,104S 8,457.346, 8,400s 46.654-104, 104-104l 56,0 l0-80 \n\tl-56,0 C 54.654,216, 8,169.346, 8,112S 54.654,8, 112,8s 104,46.654, 104,104l0,56 l 80,0 l0-56 C 296,54.654, 342.654,8, 400,8s 104,46.654, 104,104\n\ts-46.654,104-104,104l-56,0 l0,80 l 56,0 c 57.346,0, 104,46.654, 104,104S 457.346,504, 400,504z M 344,400c0,30.879, 25.121,56, 56,56\n\ts 56-25.121, 56-56s-25.121-56-56-56l-56,0 L 344,400 z M 112,344c-30.878,0-56,25.121-56,56s 25.122,56, 56,56s 56-25.121, 56-56l0-56 L 112,344 z M 296,296\n\tl0-80 l-80,0 l0,80 L 296,296 z M 400,168c 30.879,0, 56-25.122, 56-56s-25.121-56-56-56s-56,25.122-56,56l0,56 L 400,168 z M 112,56c-30.878,0-56,25.122-56,56\n\ts 25.122,56, 56,56l 56,0 l0-56 C 168,81.122, 142.878,56, 112,56z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"key-left, left, arrow, button, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,0L 64,0 C 28.8,0,0,28.8,0,64l0,384 c0,35.2, 28.8,64, 64,64l 384,0 c 35.2,0, 64-28.8, 64-64L 512,64 C 512,28.8, 483.2,0, 448,0z M 488,436\n\tl-78.014,0 c-0.001,0-0.001,0.001-0.002,0.001c 3.811-2.367, 7.405-5.049, 10.758-8.002L 420.741,428L 488,428 L 488,436 z M 407.529,407.529\n\tC 396.908,418.15, 382.87,424, 368,424L 144,424 c-14.87,0-28.908-5.85-39.529-16.471C 93.849,396.908, 88,382.87, 88,368L 88,144 \n\tc0-14.87, 5.849-28.908, 16.471-39.529C 115.092,93.849, 129.13,88, 144,88l 224,0 c 14.87,0, 28.908,5.849, 39.529,16.471\n\tC 418.15,115.092, 424,129.13, 424,144l0,224 C 424,382.87, 418.15,396.908, 407.529,407.529z M 488,420l-59.357,0 \n\tc-0.001,0.001-0.001,0.002-0.002,0.002c 2.184-2.541, 4.216-5.214, 6.073-8.015c-0.003,0.005-0.005,0.009-0.008,0.013L 488,412 L 488,420 z\n\t M 488,404l-48.637,0 c 1.316-2.592, 2.504-5.258, 3.537-8L 488,396 L 488,404 z M 488,388l-42.549,0 c-0.009,0.033-0.021,0.065-0.029,0.1\n\tc 0.692-2.65, 1.252-5.353, 1.67-8.1L 488,380 L 488,388 z M 488,372l-40.102,0 c0,0.003-0.001,0.007-0.001,0.010c 0.066-1.329, 0.103-2.665, 0.103-4.010l0-4 \n\tl 40,0 L 488,372 z M 488,356l-40,0 l0-8 l 40,0 L 488,356 z M 488,340l-40,0 l0-8 l 40,0 L 488,340 z M 488,324l-40,0 l0-8 l 40,0 L 488,324 z M 488,308l-40,0 l0-8 l 40,0 L 488,308 z M 488,292l-40,0 l0-8 l 40,0 L 488,292 \n\tz M 488,276l-40,0 l0-8 l 40,0 L 488,276 z M 488,260l-40,0 l0-8 l 40,0 L 488,260 z M 488,244l-40,0 l0-8 l 40,0 L 488,244 z M 488,228l-40,0 l0-8 l 40,0 L 488,228 z M 488,212l-40,0 l0-8 l 40,0 L 488,212 z\n\t M 488,196l-40,0 l0-8 l 40,0 L 488,196 z M 488,180l-40,0 l0-8 l 40,0 L 488,180 z M 488,164l-40,0 l0-8 l 40,0 L 488,164 z M 488,148l-40,0 l0-4 c0-1.345-0.036-2.681-0.103-4.010\n\tc0,0.003, 0.001,0.006, 0.001,0.010L 488,140 L 488,148 z M 488,132l-40.908,0 c-0.418-2.747-0.978-5.449-1.67-8.099\n\tc 0.009,0.033, 0.021,0.066, 0.029,0.099L 488,124 L 488,132 z M 488,116l-45.1,0 c-1.033-2.742-2.221-5.408-3.537-8L 488,108 L 488,116 z M 488,100l-53.294,0 \n\tc 0.003,0.004, 0.005,0.008, 0.008,0.012c-1.856-2.8-3.888-5.472-6.071-8.012L 488,92 L 488,100 z M 488,68l-44,0 l-8,8l 52,0 l0,8 l-60,0 l-3.5,3.5\n\tC 410,73, 390,64, 368,64L 144,64 c-44,0-80,36-80,80l0,224 c0,22, 9,42, 23.5,56.5L 84,428l 7.258,0 c 3.353,2.953, 6.947,5.634, 10.757,8.001\n\tc0,0-0.001-0.001-0.002-0.001L 76,436 l-8,8l 51.139,0 c 7.836,2.583, 16.189,4, 24.861,4l 224,0 c 8.672,0, 17.025-1.417, 24.861-4L 488,444 l0,4 \n\tc0,2.032-0.156,4.042-0.457,6.019c 0.103-0.669, 0.188-1.342, 0.256-2.019L 60,452 l-8,8l 434.143,0 c-1.38,4.349-3.512,8.441-6.33,12.126\n\tc 1.013-1.325, 1.938-2.702, 2.771-4.126L 44,468 l-8,8l 440.448,0 c-0.074,0.075-0.144,0.154-0.219,0.229c-3.443,3.444-7.393,6.178-11.667,8.146\n\tL 47.438,484.375 c-4.274-1.968-8.223-4.701-11.667-8.146C 28.18,468.64, 24,458.613, 24,448L 24,64 c0-10.614, 4.18-20.639, 11.771-28.229\n\tS 53.386,24, 64,24l 384,0 c 10.613,0, 20.64,4.18, 28.229,11.771c 0.075,0.075, 0.145,0.154, 0.219,0.229L 476,36 l-8,8l 14.583,0 \n\tc-0.833-1.424-1.758-2.801-2.771-4.126c 2.818,3.685, 4.95,7.778, 6.33,12.126L 460,52 l-8,8l 35.799,0 c-0.067-0.677-0.153-1.35-0.256-2.020\n\tC 487.844,59.957, 488,61.967, 488,64L 488,68 z M 486.144,459.998c 0.402-1.27, 0.74-2.561, 1.015-3.868\n\tC 486.886,457.438, 486.546,458.729, 486.144,459.998z M 487.179,456.040c 0.126-0.607, 0.234-1.219, 0.331-1.833\n\tC 487.413,454.821, 487.304,455.433, 487.179,456.040z M 476.449,475.999c 0.565-0.574, 1.107-1.164, 1.634-1.765\n\tC 477.557,474.835, 477.015,475.425, 476.449,475.999z M 478.297,473.986c 0.494-0.573, 0.973-1.156, 1.431-1.752\n\tC 479.27,472.83, 478.792,473.414, 478.297,473.986z M 476.449,36.001c 0.565,0.574, 1.108,1.165, 1.635,1.765\n\tC 477.558,37.166, 477.015,36.576, 476.449,36.001z M 478.297,38.013c 0.494,0.574, 0.973,1.158, 1.432,1.754\n\tC 479.271,39.17, 478.791,38.586, 478.297,38.013z M 486.143,52.001c 0.404,1.272, 0.745,2.566, 1.018,3.877\n\tC 486.886,54.568, 486.547,53.274, 486.143,52.001z M 487.179,55.958c 0.126,0.611, 0.235,1.226, 0.333,1.844\n\tC 487.414,57.184, 487.305,56.569, 487.179,55.958zM 256,160L 160,256L 256,352L 256,288L 352,288L 352,224L 256,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"key-down, down, bottom, arrow, button, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,0L 64,0 C 28.8,0,0,28.8,0,64l0,384 c0,35.2, 28.8,64, 64,64l 384,0 c 35.2,0, 64-28.8, 64-64L 512,64 C 512,28.8, 483.2,0, 448,0z M 488,436\n\tl-78.014,0 c-0.001,0-0.001,0.001-0.002,0.001c 3.811-2.367, 7.405-5.049, 10.758-8.002L 420.741,428L 488,428 L 488,436 z M 407.529,407.529\n\tC 396.908,418.15, 382.87,424, 368,424L 144,424 c-14.87,0-28.908-5.85-39.529-16.471C 93.849,396.908, 88,382.87, 88,368L 88,144 \n\tc0-14.87, 5.849-28.908, 16.471-39.529C 115.092,93.849, 129.13,88, 144,88l 224,0 c 14.87,0, 28.908,5.849, 39.529,16.471\n\tC 418.15,115.092, 424,129.13, 424,144l0,224 C 424,382.87, 418.15,396.908, 407.529,407.529z M 488,420l-59.357,0 \n\tc-0.001,0.001-0.001,0.002-0.002,0.002c 2.184-2.541, 4.216-5.214, 6.073-8.015c-0.003,0.005-0.005,0.009-0.008,0.013L 488,412 L 488,420 z\n\t M 488,404l-48.637,0 c 1.316-2.592, 2.504-5.258, 3.537-8L 488,396 L 488,404 z M 488,388l-42.549,0 c-0.009,0.033-0.021,0.065-0.029,0.1\n\tc 0.692-2.65, 1.252-5.353, 1.67-8.1L 488,380 L 488,388 z M 488,372l-40.102,0 c0,0.003-0.001,0.007-0.001,0.010c 0.066-1.329, 0.103-2.665, 0.103-4.010l0-4 \n\tl 40,0 L 488,372 z M 488,356l-40,0 l0-8 l 40,0 L 488,356 z M 488,340l-40,0 l0-8 l 40,0 L 488,340 z M 488,324l-40,0 l0-8 l 40,0 L 488,324 z M 488,308l-40,0 l0-8 l 40,0 L 488,308 z M 488,292l-40,0 l0-8 l 40,0 L 488,292 \n\tz M 488,276l-40,0 l0-8 l 40,0 L 488,276 z M 488,260l-40,0 l0-8 l 40,0 L 488,260 z M 488,244l-40,0 l0-8 l 40,0 L 488,244 z M 488,228l-40,0 l0-8 l 40,0 L 488,228 z M 488,212l-40,0 l0-8 l 40,0 L 488,212 z\n\t M 488,196l-40,0 l0-8 l 40,0 L 488,196 z M 488,180l-40,0 l0-8 l 40,0 L 488,180 z M 488,164l-40,0 l0-8 l 40,0 L 488,164 z M 488,148l-40,0 l0-4 c0-1.345-0.036-2.681-0.103-4.010\n\tc0,0.003, 0.001,0.006, 0.001,0.010L 488,140 L 488,148 z M 488,132l-40.908,0 c-0.418-2.747-0.978-5.449-1.67-8.099\n\tc 0.009,0.033, 0.021,0.066, 0.029,0.099L 488,124 L 488,132 z M 488,116l-45.1,0 c-1.033-2.742-2.221-5.408-3.537-8L 488,108 L 488,116 z M 488,100l-53.294,0 \n\tc 0.003,0.004, 0.005,0.008, 0.008,0.012c-1.856-2.8-3.888-5.472-6.071-8.012L 488,92 L 488,100 z M 488,68l-44,0 l-8,8l 52,0 l0,8 l-60,0 l-3.5,3.5\n\tC 410,73, 390,64, 368,64L 144,64 c-44,0-80,36-80,80l0,224 c0,22, 9,42, 23.5,56.5L 84,428l 7.258,0 c 3.353,2.953, 6.947,5.634, 10.757,8.001\n\tc0,0-0.001-0.001-0.002-0.001L 76,436 l-8,8l 51.139,0 c 7.836,2.583, 16.189,4, 24.861,4l 224,0 c 8.672,0, 17.025-1.417, 24.861-4L 488,444 l0,4 \n\tc0,2.032-0.156,4.042-0.457,6.019c 0.103-0.669, 0.188-1.342, 0.256-2.019L 60,452 l-8,8l 434.143,0 c-1.38,4.349-3.512,8.441-6.33,12.126\n\tc 1.013-1.325, 1.938-2.702, 2.771-4.126L 44,468 l-8,8l 440.448,0 c-0.074,0.075-0.144,0.154-0.219,0.229c-3.443,3.444-7.393,6.178-11.667,8.146\n\tL 47.438,484.375 c-4.274-1.968-8.223-4.701-11.667-8.146C 28.18,468.64, 24,458.613, 24,448L 24,64 c0-10.614, 4.18-20.639, 11.771-28.229\n\tS 53.386,24, 64,24l 384,0 c 10.613,0, 20.64,4.18, 28.229,11.771c 0.075,0.075, 0.145,0.154, 0.219,0.229L 476,36 l-8,8l 14.583,0 \n\tc-0.833-1.424-1.758-2.801-2.771-4.126c 2.818,3.685, 4.95,7.778, 6.33,12.126L 460,52 l-8,8l 35.799,0 c-0.067-0.677-0.153-1.35-0.256-2.020\n\tC 487.844,59.957, 488,61.967, 488,64L 488,68 z M 486.144,459.998c 0.402-1.27, 0.74-2.561, 1.015-3.868\n\tC 486.886,457.438, 486.546,458.729, 486.144,459.998z M 487.179,456.040c 0.126-0.607, 0.234-1.219, 0.331-1.833\n\tC 487.413,454.821, 487.304,455.433, 487.179,456.040z M 476.449,475.999c 0.565-0.574, 1.107-1.164, 1.634-1.765\n\tC 477.557,474.835, 477.015,475.425, 476.449,475.999z M 478.297,473.986c 0.494-0.573, 0.973-1.156, 1.431-1.752\n\tC 479.27,472.83, 478.792,473.414, 478.297,473.986z M 476.449,36.001c 0.565,0.574, 1.108,1.165, 1.635,1.765\n\tC 477.558,37.166, 477.015,36.576, 476.449,36.001z M 478.297,38.013c 0.494,0.574, 0.973,1.158, 1.432,1.754\n\tC 479.271,39.17, 478.791,38.586, 478.297,38.013z M 486.143,52.001c 0.404,1.272, 0.745,2.566, 1.018,3.877\n\tC 486.886,54.568, 486.547,53.274, 486.143,52.001z M 487.179,55.958c 0.126,0.611, 0.235,1.226, 0.333,1.844\n\tC 487.414,57.184, 487.305,56.569, 487.179,55.958zM 160,256L 256,352L 352,256L 288,256L 288,160L 224,160L 224,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"key-right, right, button, arrow, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,0L 64,0 C 28.8,0,0,28.8,0,64l0,384 c0,35.2, 28.8,64, 64,64l 384,0 c 35.2,0, 64-28.8, 64-64L 512,64 C 512,28.8, 483.2,0, 448,0z M 488,436\n\tl-78.014,0 c-0.001,0-0.001,0.001-0.002,0.001c 3.811-2.367, 7.405-5.049, 10.758-8.002L 420.741,428L 488,428 L 488,436 z M 407.529,407.529\n\tC 396.908,418.15, 382.87,424, 368,424L 144,424 c-14.87,0-28.908-5.85-39.529-16.471C 93.849,396.908, 88,382.87, 88,368L 88,144 \n\tc0-14.87, 5.849-28.908, 16.471-39.529C 115.092,93.849, 129.13,88, 144,88l 224,0 c 14.87,0, 28.908,5.849, 39.529,16.471\n\tC 418.15,115.092, 424,129.13, 424,144l0,224 C 424,382.87, 418.15,396.908, 407.529,407.529z M 488,420l-59.357,0 \n\tc-0.001,0.001-0.001,0.002-0.002,0.002c 2.184-2.541, 4.216-5.214, 6.073-8.015c-0.003,0.005-0.005,0.009-0.008,0.013L 488,412 L 488,420 z\n\t M 488,404l-48.637,0 c 1.316-2.592, 2.504-5.258, 3.537-8L 488,396 L 488,404 z M 488,388l-42.549,0 c-0.009,0.033-0.021,0.065-0.029,0.1\n\tc 0.692-2.65, 1.252-5.353, 1.67-8.1L 488,380 L 488,388 z M 488,372l-40.102,0 c0,0.003-0.001,0.007-0.001,0.010c 0.066-1.329, 0.103-2.665, 0.103-4.010l0-4 \n\tl 40,0 L 488,372 z M 488,356l-40,0 l0-8 l 40,0 L 488,356 z M 488,340l-40,0 l0-8 l 40,0 L 488,340 z M 488,324l-40,0 l0-8 l 40,0 L 488,324 z M 488,308l-40,0 l0-8 l 40,0 L 488,308 z M 488,292l-40,0 l0-8 l 40,0 L 488,292 \n\tz M 488,276l-40,0 l0-8 l 40,0 L 488,276 z M 488,260l-40,0 l0-8 l 40,0 L 488,260 z M 488,244l-40,0 l0-8 l 40,0 L 488,244 z M 488,228l-40,0 l0-8 l 40,0 L 488,228 z M 488,212l-40,0 l0-8 l 40,0 L 488,212 z\n\t M 488,196l-40,0 l0-8 l 40,0 L 488,196 z M 488,180l-40,0 l0-8 l 40,0 L 488,180 z M 488,164l-40,0 l0-8 l 40,0 L 488,164 z M 488,148l-40,0 l0-4 c0-1.345-0.036-2.681-0.103-4.010\n\tc0,0.003, 0.001,0.006, 0.001,0.010L 488,140 L 488,148 z M 488,132l-40.908,0 c-0.418-2.747-0.978-5.449-1.67-8.099\n\tc 0.009,0.033, 0.021,0.066, 0.029,0.099L 488,124 L 488,132 z M 488,116l-45.1,0 c-1.033-2.742-2.221-5.408-3.537-8L 488,108 L 488,116 z M 488,100l-53.294,0 \n\tc 0.003,0.004, 0.005,0.008, 0.008,0.012c-1.856-2.8-3.888-5.472-6.071-8.012L 488,92 L 488,100 z M 488,68l-44,0 l-8,8l 52,0 l0,8 l-60,0 l-3.5,3.5\n\tC 410,73, 390,64, 368,64L 144,64 c-44,0-80,36-80,80l0,224 c0,22, 9,42, 23.5,56.5L 84,428l 7.258,0 c 3.353,2.953, 6.947,5.634, 10.757,8.001\n\tc0,0-0.001-0.001-0.002-0.001L 76,436 l-8,8l 51.139,0 c 7.836,2.583, 16.189,4, 24.861,4l 224,0 c 8.672,0, 17.025-1.417, 24.861-4L 488,444 l0,4 \n\tc0,2.032-0.156,4.042-0.457,6.019c 0.103-0.669, 0.188-1.342, 0.256-2.019L 60,452 l-8,8l 434.143,0 c-1.38,4.349-3.512,8.441-6.33,12.126\n\tc 1.013-1.325, 1.938-2.702, 2.771-4.126L 44,468 l-8,8l 440.448,0 c-0.074,0.075-0.144,0.154-0.219,0.229c-3.443,3.444-7.393,6.178-11.667,8.146\n\tL 47.438,484.375 c-4.274-1.968-8.223-4.701-11.667-8.146C 28.18,468.64, 24,458.613, 24,448L 24,64 c0-10.614, 4.18-20.639, 11.771-28.229\n\tS 53.386,24, 64,24l 384,0 c 10.613,0, 20.64,4.18, 28.229,11.771c 0.075,0.075, 0.145,0.154, 0.219,0.229L 476,36 l-8,8l 14.583,0 \n\tc-0.833-1.424-1.758-2.801-2.771-4.126c 2.818,3.685, 4.95,7.778, 6.33,12.126L 460,52 l-8,8l 35.799,0 c-0.067-0.677-0.153-1.35-0.256-2.020\n\tC 487.844,59.957, 488,61.967, 488,64L 488,68 z M 486.144,459.998c 0.402-1.27, 0.74-2.561, 1.015-3.868\n\tC 486.886,457.438, 486.546,458.729, 486.144,459.998z M 487.179,456.040c 0.126-0.607, 0.234-1.219, 0.331-1.833\n\tC 487.413,454.821, 487.304,455.433, 487.179,456.040z M 476.449,475.999c 0.565-0.574, 1.107-1.164, 1.634-1.765\n\tC 477.557,474.835, 477.015,475.425, 476.449,475.999z M 478.297,473.986c 0.494-0.573, 0.973-1.156, 1.431-1.752\n\tC 479.27,472.83, 478.792,473.414, 478.297,473.986z M 476.449,36.001c 0.565,0.574, 1.108,1.165, 1.635,1.765\n\tC 477.558,37.166, 477.015,36.576, 476.449,36.001z M 478.297,38.013c 0.494,0.574, 0.973,1.158, 1.432,1.754\n\tC 479.271,39.17, 478.791,38.586, 478.297,38.013z M 486.143,52.001c 0.404,1.272, 0.745,2.566, 1.018,3.877\n\tC 486.886,54.568, 486.547,53.274, 486.143,52.001z M 487.179,55.958c 0.126,0.611, 0.235,1.226, 0.333,1.844\n\tC 487.414,57.184, 487.305,56.569, 487.179,55.958zM 256,352L 352,256L 256,160L 256,224L 160,224L 160,288L 256,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"key-up, button, up, arrow, top, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,0L 64,0 C 28.8,0,0,28.8,0,64l0,384 c0,35.2, 28.8,64, 64,64l 384,0 c 35.2,0, 64-28.8, 64-64L 512,64 C 512,28.8, 483.2,0, 448,0z M 488,436\n\tl-78.014,0 c-0.001,0-0.001,0.001-0.002,0.001c 3.811-2.367, 7.405-5.049, 10.758-8.002L 420.741,428L 488,428 L 488,436 z M 407.529,407.529\n\tC 396.908,418.15, 382.87,424, 368,424L 144,424 c-14.87,0-28.908-5.85-39.529-16.471C 93.849,396.908, 88,382.87, 88,368L 88,144 \n\tc0-14.87, 5.849-28.908, 16.471-39.529C 115.092,93.849, 129.13,88, 144,88l 224,0 c 14.87,0, 28.908,5.849, 39.529,16.471\n\tC 418.15,115.092, 424,129.13, 424,144l0,224 C 424,382.87, 418.15,396.908, 407.529,407.529z M 488,420l-59.357,0 \n\tc-0.001,0.001-0.001,0.002-0.002,0.002c 2.184-2.541, 4.216-5.214, 6.073-8.015c-0.003,0.005-0.005,0.009-0.008,0.013L 488,412 L 488,420 z\n\t M 488,404l-48.637,0 c 1.316-2.592, 2.504-5.258, 3.537-8L 488,396 L 488,404 z M 488,388l-42.549,0 c-0.009,0.033-0.021,0.065-0.029,0.1\n\tc 0.692-2.65, 1.252-5.353, 1.67-8.1L 488,380 L 488,388 z M 488,372l-40.102,0 c0,0.003-0.001,0.007-0.001,0.010c 0.066-1.329, 0.103-2.665, 0.103-4.010l0-4 \n\tl 40,0 L 488,372 z M 488,356l-40,0 l0-8 l 40,0 L 488,356 z M 488,340l-40,0 l0-8 l 40,0 L 488,340 z M 488,324l-40,0 l0-8 l 40,0 L 488,324 z M 488,308l-40,0 l0-8 l 40,0 L 488,308 z M 488,292l-40,0 l0-8 l 40,0 L 488,292 \n\tz M 488,276l-40,0 l0-8 l 40,0 L 488,276 z M 488,260l-40,0 l0-8 l 40,0 L 488,260 z M 488,244l-40,0 l0-8 l 40,0 L 488,244 z M 488,228l-40,0 l0-8 l 40,0 L 488,228 z M 488,212l-40,0 l0-8 l 40,0 L 488,212 z\n\t M 488,196l-40,0 l0-8 l 40,0 L 488,196 z M 488,180l-40,0 l0-8 l 40,0 L 488,180 z M 488,164l-40,0 l0-8 l 40,0 L 488,164 z M 488,148l-40,0 l0-4 c0-1.345-0.036-2.681-0.103-4.010\n\tc0,0.003, 0.001,0.006, 0.001,0.010L 488,140 L 488,148 z M 488,132l-40.908,0 c-0.418-2.747-0.978-5.449-1.67-8.099\n\tc 0.009,0.033, 0.021,0.066, 0.029,0.099L 488,124 L 488,132 z M 488,116l-45.1,0 c-1.033-2.742-2.221-5.408-3.537-8L 488,108 L 488,116 z M 488,100l-53.294,0 \n\tc 0.003,0.004, 0.005,0.008, 0.008,0.012c-1.856-2.8-3.888-5.472-6.071-8.012L 488,92 L 488,100 z M 488,68l-44,0 l-8,8l 52,0 l0,8 l-60,0 l-3.5,3.5\n\tC 410,73, 390,64, 368,64L 144,64 c-44,0-80,36-80,80l0,224 c0,22, 9,42, 23.5,56.5L 84,428l 7.258,0 c 3.353,2.953, 6.947,5.634, 10.757,8.001\n\tc0,0-0.001-0.001-0.002-0.001L 76,436 l-8,8l 51.139,0 c 7.836,2.583, 16.189,4, 24.861,4l 224,0 c 8.672,0, 17.025-1.417, 24.861-4L 488,444 l0,4 \n\tc0,2.032-0.156,4.042-0.457,6.019c 0.103-0.669, 0.188-1.342, 0.256-2.019L 60,452 l-8,8l 434.143,0 c-1.38,4.349-3.512,8.441-6.33,12.126\n\tc 1.013-1.325, 1.938-2.702, 2.771-4.126L 44,468 l-8,8l 440.448,0 c-0.074,0.075-0.144,0.154-0.219,0.229c-3.443,3.444-7.393,6.178-11.667,8.146\n\tL 47.438,484.375 c-4.274-1.968-8.223-4.701-11.667-8.146C 28.18,468.64, 24,458.613, 24,448L 24,64 c0-10.614, 4.18-20.639, 11.771-28.229\n\tS 53.386,24, 64,24l 384,0 c 10.613,0, 20.64,4.18, 28.229,11.771c 0.075,0.075, 0.145,0.154, 0.219,0.229L 476,36 l-8,8l 14.583,0 \n\tc-0.833-1.424-1.758-2.801-2.771-4.126c 2.818,3.685, 4.95,7.778, 6.33,12.126L 460,52 l-8,8l 35.799,0 c-0.067-0.677-0.153-1.35-0.256-2.020\n\tC 487.844,59.957, 488,61.967, 488,64L 488,68 z M 486.144,459.998c 0.402-1.27, 0.74-2.561, 1.015-3.868\n\tC 486.886,457.438, 486.546,458.729, 486.144,459.998z M 487.179,456.040c 0.126-0.607, 0.234-1.219, 0.331-1.833\n\tC 487.413,454.821, 487.304,455.433, 487.179,456.040z M 476.449,475.999c 0.565-0.574, 1.107-1.164, 1.634-1.765\n\tC 477.557,474.835, 477.015,475.425, 476.449,475.999z M 478.297,473.986c 0.494-0.573, 0.973-1.156, 1.431-1.752\n\tC 479.27,472.83, 478.792,473.414, 478.297,473.986z M 476.449,36.001c 0.565,0.574, 1.108,1.165, 1.635,1.765\n\tC 477.558,37.166, 477.015,36.576, 476.449,36.001z M 478.297,38.013c 0.494,0.574, 0.973,1.158, 1.432,1.754\n\tC 479.271,39.17, 478.791,38.586, 478.297,38.013z M 486.143,52.001c 0.404,1.272, 0.745,2.566, 1.018,3.877\n\tC 486.886,54.568, 486.547,53.274, 486.143,52.001z M 487.179,55.958c 0.126,0.611, 0.235,1.226, 0.333,1.844\n\tC 487.414,57.184, 487.305,56.569, 487.179,55.958zM 352,256L 256,160L 160,256L 224,256L 224,352L 288,352L 288,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"key-A, button, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,0L 64,0 C 28.8,0,0,28.8,0,64l0,384 c0,35.2, 28.8,64, 64,64l 384,0 c 35.2,0, 64-28.8, 64-64L 512,64 C 512,28.8, 483.2,0, 448,0z M 488,436\n\tl-78.014,0 c-0.001,0-0.001,0.001-0.002,0.001c 3.811-2.367, 7.405-5.049, 10.758-8.002L 420.741,428L 488,428 L 488,436 z M 407.529,407.529\n\tC 396.908,418.15, 382.87,424, 368,424L 144,424 c-14.87,0-28.908-5.85-39.529-16.471C 93.849,396.908, 88,382.87, 88,368L 88,144 \n\tc0-14.87, 5.849-28.908, 16.471-39.529C 115.092,93.849, 129.13,88, 144,88l 224,0 c 14.87,0, 28.908,5.849, 39.529,16.471\n\tC 418.15,115.092, 424,129.13, 424,144l0,224 C 424,382.87, 418.15,396.908, 407.529,407.529z M 488,420l-59.357,0 \n\tc-0.001,0.001-0.001,0.002-0.002,0.002c 2.184-2.541, 4.216-5.214, 6.073-8.015c-0.003,0.005-0.005,0.009-0.008,0.013L 488,412 L 488,420 z\n\t M 488,404l-48.637,0 c 1.316-2.592, 2.504-5.258, 3.537-8L 488,396 L 488,404 z M 488,388l-42.549,0 c-0.009,0.033-0.021,0.065-0.029,0.1\n\tc 0.692-2.65, 1.252-5.353, 1.67-8.1L 488,380 L 488,388 z M 488,372l-40.102,0 c0,0.003-0.001,0.007-0.001,0.010c 0.066-1.329, 0.103-2.665, 0.103-4.010l0-4 \n\tl 40,0 L 488,372 z M 488,356l-40,0 l0-8 l 40,0 L 488,356 z M 488,340l-40,0 l0-8 l 40,0 L 488,340 z M 488,324l-40,0 l0-8 l 40,0 L 488,324 z M 488,308l-40,0 l0-8 l 40,0 L 488,308 z M 488,292l-40,0 l0-8 l 40,0 L 488,292 \n\tz M 488,276l-40,0 l0-8 l 40,0 L 488,276 z M 488,260l-40,0 l0-8 l 40,0 L 488,260 z M 488,244l-40,0 l0-8 l 40,0 L 488,244 z M 488,228l-40,0 l0-8 l 40,0 L 488,228 z M 488,212l-40,0 l0-8 l 40,0 L 488,212 z\n\t M 488,196l-40,0 l0-8 l 40,0 L 488,196 z M 488,180l-40,0 l0-8 l 40,0 L 488,180 z M 488,164l-40,0 l0-8 l 40,0 L 488,164 z M 488,148l-40,0 l0-4 c0-1.345-0.036-2.681-0.103-4.010\n\tc0,0.003, 0.001,0.006, 0.001,0.010L 488,140 L 488,148 z M 488,132l-40.908,0 c-0.418-2.747-0.978-5.449-1.67-8.099\n\tc 0.009,0.033, 0.021,0.066, 0.029,0.099L 488,124 L 488,132 z M 488,116l-45.1,0 c-1.033-2.742-2.221-5.408-3.537-8L 488,108 L 488,116 z M 488,100l-53.294,0 \n\tc 0.003,0.004, 0.005,0.008, 0.008,0.012c-1.856-2.8-3.888-5.472-6.071-8.012L 488,92 L 488,100 z M 488,68l-44,0 l-8,8l 52,0 l0,8 l-60,0 l-3.5,3.5\n\tC 410,73, 390,64, 368,64L 144,64 c-44,0-80,36-80,80l0,224 c0,22, 9,42, 23.5,56.5L 84,428l 7.258,0 c 3.353,2.953, 6.947,5.634, 10.757,8.001\n\tc0,0-0.001-0.001-0.002-0.001L 76,436 l-8,8l 51.139,0 c 7.836,2.583, 16.189,4, 24.861,4l 224,0 c 8.672,0, 17.025-1.417, 24.861-4L 488,444 l0,4 \n\tc0,2.032-0.156,4.042-0.457,6.019c 0.103-0.669, 0.188-1.342, 0.256-2.019L 60,452 l-8,8l 434.143,0 c-1.38,4.349-3.512,8.441-6.33,12.126\n\tc 1.013-1.325, 1.938-2.702, 2.771-4.126L 44,468 l-8,8l 440.448,0 c-0.074,0.075-0.144,0.154-0.219,0.229c-3.443,3.444-7.393,6.178-11.667,8.146\n\tL 47.438,484.375 c-4.274-1.968-8.223-4.701-11.667-8.146C 28.18,468.64, 24,458.613, 24,448L 24,64 c0-10.614, 4.18-20.639, 11.771-28.229\n\tS 53.386,24, 64,24l 384,0 c 10.613,0, 20.64,4.18, 28.229,11.771c 0.075,0.075, 0.145,0.154, 0.219,0.229L 476,36 l-8,8l 14.583,0 \n\tc-0.833-1.424-1.758-2.801-2.771-4.126c 2.818,3.685, 4.95,7.778, 6.33,12.126L 460,52 l-8,8l 35.799,0 c-0.067-0.677-0.153-1.35-0.256-2.020\n\tC 487.844,59.957, 488,61.967, 488,64L 488,68 z M 486.144,459.998c 0.402-1.27, 0.74-2.561, 1.015-3.868\n\tC 486.886,457.438, 486.546,458.729, 486.144,459.998z M 487.179,456.040c 0.126-0.607, 0.234-1.219, 0.331-1.833\n\tC 487.413,454.821, 487.304,455.433, 487.179,456.040z M 476.449,475.999c 0.565-0.574, 1.107-1.164, 1.634-1.765\n\tC 477.557,474.835, 477.015,475.425, 476.449,475.999z M 478.297,473.986c 0.494-0.573, 0.973-1.156, 1.431-1.752\n\tC 479.27,472.83, 478.792,473.414, 478.297,473.986z M 476.449,36.001c 0.565,0.574, 1.108,1.165, 1.635,1.765\n\tC 477.558,37.166, 477.015,36.576, 476.449,36.001z M 478.297,38.013c 0.494,0.574, 0.973,1.158, 1.432,1.754\n\tC 479.271,39.17, 478.791,38.586, 478.297,38.013z M 486.143,52.001c 0.404,1.272, 0.745,2.566, 1.018,3.877\n\tC 486.886,54.568, 486.547,53.274, 486.143,52.001z M 487.179,55.958c 0.126,0.611, 0.235,1.226, 0.333,1.844\n\tC 487.414,57.184, 487.305,56.569, 487.179,55.958zM 345.137,384l 48.399,0 L 276,127.501l-40,0 L 118.464,384l 48.399,0 l 29.327-64L 315.81,320 L 345.137,384z M 210.854,288L 256,189.477\n\tL 301.146,288L 210.854,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"key-keyboard, button, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,0L 64,0 C 28.8,0,0,28.8,0,64l0,384 c0,35.2, 28.8,64, 64,64l 384,0 c 35.2,0, 64-28.8, 64-64L 512,64 C 512,28.8, 483.2,0, 448,0z M 488,436\n\tl-78.014,0 c-0.001,0-0.001,0.001-0.002,0.001c 3.811-2.367, 7.405-5.049, 10.758-8.002L 420.741,428L 488,428 L 488,436 z M 407.529,407.529\n\tC 396.908,418.15, 382.87,424, 368,424L 144,424 c-14.87,0-28.908-5.85-39.529-16.471C 93.849,396.908, 88,382.87, 88,368L 88,144 \n\tc0-14.87, 5.849-28.908, 16.471-39.529C 115.092,93.849, 129.13,88, 144,88l 224,0 c 14.87,0, 28.908,5.849, 39.529,16.471\n\tC 418.15,115.092, 424,129.13, 424,144l0,224 C 424,382.87, 418.15,396.908, 407.529,407.529z M 488,420l-59.357,0 \n\tc-0.001,0.001-0.001,0.002-0.002,0.002c 2.184-2.541, 4.216-5.214, 6.073-8.015c-0.003,0.005-0.005,0.009-0.008,0.013L 488,412 L 488,420 z\n\t M 488,404l-48.637,0 c 1.316-2.592, 2.504-5.258, 3.537-8L 488,396 L 488,404 z M 488,388l-42.549,0 c-0.009,0.033-0.021,0.065-0.029,0.1\n\tc 0.692-2.65, 1.252-5.353, 1.67-8.1L 488,380 L 488,388 z M 488,372l-40.102,0 c0,0.003-0.001,0.007-0.001,0.010c 0.066-1.329, 0.103-2.665, 0.103-4.010l0-4 \n\tl 40,0 L 488,372 z M 488,356l-40,0 l0-8 l 40,0 L 488,356 z M 488,340l-40,0 l0-8 l 40,0 L 488,340 z M 488,324l-40,0 l0-8 l 40,0 L 488,324 z M 488,308l-40,0 l0-8 l 40,0 L 488,308 z M 488,292l-40,0 l0-8 l 40,0 L 488,292 \n\tz M 488,276l-40,0 l0-8 l 40,0 L 488,276 z M 488,260l-40,0 l0-8 l 40,0 L 488,260 z M 488,244l-40,0 l0-8 l 40,0 L 488,244 z M 488,228l-40,0 l0-8 l 40,0 L 488,228 z M 488,212l-40,0 l0-8 l 40,0 L 488,212 z\n\t M 488,196l-40,0 l0-8 l 40,0 L 488,196 z M 488,180l-40,0 l0-8 l 40,0 L 488,180 z M 488,164l-40,0 l0-8 l 40,0 L 488,164 z M 488,148l-40,0 l0-4 c0-1.345-0.036-2.681-0.103-4.010\n\tc0,0.003, 0.001,0.006, 0.001,0.010L 488,140 L 488,148 z M 488,132l-40.908,0 c-0.418-2.747-0.978-5.449-1.67-8.099\n\tc 0.009,0.033, 0.021,0.066, 0.029,0.099L 488,124 L 488,132 z M 488,116l-45.1,0 c-1.033-2.742-2.221-5.408-3.537-8L 488,108 L 488,116 z M 488,100l-53.294,0 \n\tc 0.003,0.004, 0.005,0.008, 0.008,0.012c-1.856-2.8-3.888-5.472-6.071-8.012L 488,92 L 488,100 z M 488,68l-44,0 l-8,8l 52,0 l0,8 l-60,0 l-3.5,3.5\n\tC 410,73, 390,64, 368,64L 144,64 c-44,0-80,36-80,80l0,224 c0,22, 9,42, 23.5,56.5L 84,428l 7.258,0 c 3.353,2.953, 6.947,5.634, 10.757,8.001\n\tc0,0-0.001-0.001-0.002-0.001L 76,436 l-8,8l 51.139,0 c 7.836,2.583, 16.189,4, 24.861,4l 224,0 c 8.672,0, 17.025-1.417, 24.861-4L 488,444 l0,4 \n\tc0,2.032-0.156,4.042-0.457,6.019c 0.103-0.669, 0.188-1.342, 0.256-2.019L 60,452 l-8,8l 434.143,0 c-1.38,4.349-3.512,8.441-6.33,12.126\n\tc 1.013-1.325, 1.938-2.702, 2.771-4.126L 44,468 l-8,8l 440.448,0 c-0.074,0.075-0.144,0.154-0.219,0.229c-3.443,3.444-7.393,6.178-11.667,8.146\n\tL 47.438,484.375 c-4.274-1.968-8.223-4.701-11.667-8.146C 28.18,468.64, 24,458.613, 24,448L 24,64 c0-10.614, 4.18-20.639, 11.771-28.229\n\tS 53.386,24, 64,24l 384,0 c 10.613,0, 20.64,4.18, 28.229,11.771c 0.075,0.075, 0.145,0.154, 0.219,0.229L 476,36 l-8,8l 14.583,0 \n\tc-0.833-1.424-1.758-2.801-2.771-4.126c 2.818,3.685, 4.95,7.778, 6.33,12.126L 460,52 l-8,8l 35.799,0 c-0.067-0.677-0.153-1.35-0.256-2.020\n\tC 487.844,59.957, 488,61.967, 488,64L 488,68 z M 486.144,459.998c 0.402-1.27, 0.74-2.561, 1.015-3.868\n\tC 486.886,457.438, 486.546,458.729, 486.144,459.998z M 487.179,456.040c 0.126-0.607, 0.234-1.219, 0.331-1.833\n\tC 487.413,454.821, 487.304,455.433, 487.179,456.040z M 476.449,475.999c 0.565-0.574, 1.107-1.164, 1.634-1.765\n\tC 477.557,474.835, 477.015,475.425, 476.449,475.999z M 478.297,473.986c 0.494-0.573, 0.973-1.156, 1.431-1.752\n\tC 479.27,472.83, 478.792,473.414, 478.297,473.986z M 476.449,36.001c 0.565,0.574, 1.108,1.165, 1.635,1.765\n\tC 477.558,37.166, 477.015,36.576, 476.449,36.001z M 478.297,38.013c 0.494,0.574, 0.973,1.158, 1.432,1.754\n\tC 479.271,39.17, 478.791,38.586, 478.297,38.013z M 486.143,52.001c 0.404,1.272, 0.745,2.566, 1.018,3.877\n\tC 486.886,54.568, 486.547,53.274, 486.143,52.001z M 487.179,55.958c 0.126,0.611, 0.235,1.226, 0.333,1.844\n\tC 487.414,57.184, 487.305,56.569, 487.179,55.958z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"sort, arrows\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 208,352 L 320,352 L 320,0 L 384,0 L 384,352 L 496,352 L 352,496 L 208,352 Z M 192,160 L 192,512 L 128,512 L 128,160 L 16,160 L 160,16 L 304,160 L 192,160 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"sort, arrows\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,128 L 192,480 L 128,480 L 128,128 L 48,128 L 160,16 L 272,128 ZM 320,384 L 320,32 L 384,32 L 384,384 L 464,384 L 352,496 L 240,384 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"transmission, arrows\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,304 L 352,192 L 0,192 L 0,128 L 352,128 L 352,16 L 496,160 L 352,304 Z M 160,320 L 512,320 L 512,384 L 160,384 L 160,496 L 16,352 L 160,208 L 160,320 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"transmission, arrows\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,192 L 32,192 L 32,128 L 384,128 L 384,48 L 496,160 L 384,272 ZM 128,320 L 480,320 L 480,384 L 128,384 L 128,464 L 16,352 L 128,240 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tab, arrows\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,96L0,96L0,160L 352,160L 352,256L 480,128L 352,0 \tzM 480,0L 480,128L 480,256L 512,256L 512,0 \tzM 160,256L 32,384L 160,512L 160,416L 512,416L 512,352L 160,352 \tzM0,256L0,512L 32,512L 32,384L 32,256 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"backspace, delete, remove\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,368M 448,160 L 202.51,160 L 90.51,272 L 202.51,384 L 448,384 L 448,160 Z M 512,96 L 512,96 L 512,448 L 176,448 L 0,272 L 176,96 L 512,96 ZM 370.744,192 L 416,192 L 416,237.256 L 381.256,272 L 416,306.744 L 416,352 L 370.744,352 L 336,317.256 L 301.256,352 L 256,352 L 256,306.745 L 290.745,272 L 256,237.255 L 256,192 L 301.255,192 L 336,226.745 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"backspace, delete, remove\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,368M 176,96L0,272l 176,176l 336,0 L 512,96 L 176,96 z M 448,205.255L 381.256,272L 448,338.744L 448,384 l-45.256,0 L 336,317.256L 269.256,384L 224,384 l0-45.255 \n\tL 290.745,272L 224,205.255L 224,160 l 45.255,0 L 336,226.745L 402.744,160L 448,160 L 448,205.255 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"backspace, delete, remove\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,128L 197.255,128 l-144,144l 144,144L 480,416 L 480,128 z M 512,96L 512,96l0,352 L 176,448 L0,272L 176,96L 512,96 z M 416,322.301L 416,352 l-29.699,0 \n\tL 336,301.699L 285.699,352L 256,352 l0,0l0-29.698 L 306.302,272L 256,221.698L 256,192 l0,0l 29.699,0 L 336,242.301L 386.301,192L 416,192 l0,29.699 L 365.699,272\n\tL 416,322.301z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"esc, escape\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 233.019,278.981 L 73.019,118.981 L 0,192 L 0,0 L 192,0 L 118.981,73.019 L 278.981,233.019 ZM 256,0 C 397.385,0 512,114.615 512,256 C 512,397.385 397.385,512 256,512 C 114.615,512 0,397.385 0,256 L 64,256 C 64,362.039 149.961,448 256,448 C 362.039,448 448,362.039 448,256 C 448,149.961 362.039,64 256,64 L 256,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"enter, arrow, return\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,32L 416,32L 416,256L 224,256L 288,128L0,304L 288,480L 224,352L 512,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"enter, arrow, return\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,32L 416,32L 416,256L 176,256L 256,176L 192,112L0,304L 192,496L 256,432L 176,352L 512,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"menu-close, arrows, contract\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,128L 256,256L 384,128 \tzM 384,416L 256,288L 128,416 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"menu-close, arrows, contract\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,96L 256,224L 384,96 \tzM 384,448L 256,320L 128,448 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"menu, down, arrows\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,128L 256,256L 384,128 \tzM 127.998,287.998L 255.998,415.998L 383.998,287.998 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"menu, arrow, options, select\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,224L 256,96L 128,224 \tzM 128,320L 256,448L 384,320 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, left, previous\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,160L 512,160L 512,352L 480,352zM 416,160L 448,160L 448,352L 416,352zM 352,160L 384,160L 384,352L 352,352zM0,256L 224,32L 224,160L 320,160L 320,352L 224,352L 224,480 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,0L 352,0L 352,32L 160,32zM 160,64L 352,64L 352,96L 160,96zM 160,128L 352,128L 352,160L 160,160zM 256,512L 480,288L 352,288L 352,192L 160,192L 160,288L 32,288 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, right, next\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,160L 32,160L 32,352L0,352zM 64,160L 96,160L 96,352L 64,352zM 128,160L 160,160L 160,352L 128,352zM 512,256L 288,32L 288,160L 192,160L 192,352L 288,352L 288,480 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,480L 352,480L 352,512L 160,512zM 160,416L 352,416L 352,448L 160,448zM 160,352L 352,352L 352,384L 160,384zM 256,0L 480,224L 352,224L 352,320L 160,320L 160,224L 32,224 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, left, previous\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,0L 128,256L 384,512L 256.001,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,128L 256,384L 512,128L 256,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, right, next\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,512L 384,256L 128,0L 256,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,384L 256,128L0,384L 256,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, left, previous\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 397.385,0, 512,114.615, 512,256s -114.615,256, -256,256s -256-114.615, -256-256S 114.615,0, 256,0z M 256,448\n\tc 106.039,0 192-85.961 192-192c0-106.039, -85.961-192, -192-192c -106.039,0, -192,85.961, -192,192C 64,362.039, 149.961,448, 256,448zM 224,368 L 224,288 L 384,288 L 384,224 L 224,224 L 224,144 L 112,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 0,256C 0,114.615, 114.615,0, 256,0s 256,114.615, 256,256s -114.615,256, -256,256S 0,397.385, 0,256z M 448,256\n\tc 0-106.039 -85.961-192 -192-192c-106.039,0, -192,85.961, -192,192c 0,106.039, 85.961,192, 192,192C 362.039,448, 448,362.039, 448,256zM 368,288 L 288,288 L 288,128 L 224,128 L 224,288 L 144,288 L 256,400 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, right, next\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,448\n\tc-106.039,0-192-85.961-192-192c0-106.039, 85.961-192, 192-192c 106.039,0, 192,85.961, 192,192C 448,362.039, 362.039,448, 256,448zM 288,368 L 288,288 L 128,288 L 128,224 L 288,224 L 288,144 L 400,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 0,256C 0,397.385, 114.615,512, 256,512s 256-114.615, 256-256s -114.615-256, -256-256S 0,114.615, 0,256z M 448,256\n\tc 0,106.039 -85.961,192 -192,192c-106.039,0, -192-85.961, -192-192c 0-106.039, 85.961-192, 192-192C 362.039,64, 448,149.961, 448,256zM 368,224 L 288,224 L 288,384 L 224,384 L 224,224 L 144,224 L 256,112 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, left, previous\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 397.385,0, 512,114.615, 512,256s -114.615,256, -256,256s -256-114.615, -256-256S 114.615,0, 256,0z M 224,368l0-80 L 384,288 l0-64 l-160,0 l0-80 \n\tl -112,112L 224,368z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 0,256C 0,114.615, 114.615,0, 256,0s 256,114.615, 256,256s -114.615,256, -256,256S 0,397.385, 0,256z M 368,288l-80,0 L 288,128 l-64,0 l0,160 l-80,0 \n\tl 112,112L 368,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, right, next\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 288,368l0-80 L 128,288 l0-64 l 160,0 l0-80 \n\tl 112,112L 288,368z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 0,256C 0,397.385, 114.615,512, 256,512s 256-114.615, 256-256s -114.615-256, -256-256S 0,114.615, 0,256z M 368,224l-80,0 L 288,384 l-64,0 l0-160 l-80,0 \n\tl 112-112L 368,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, left, previous\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,256L 512,480L 416,256L 512,32 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512L 480,0L 256,96L 32,0 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, right, next\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,256L0,32L 96,256L0,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0L 32,512L 256,416L 480,512 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, left, arrow, previous, backward\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,0L0,256l 224,256L 224,325.774 l 288,58.225L 512,128 l-288,58.227L 224,0 z M 480,165.774l0,180.45 l-288-58.226l0,138.833 L 42.522,256\n\tL 192,85.166L 192,224 L 480,165.774z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,288l 256,224l 256-224L 325.776,288 L 384,0L 128,0 l 58.227,288L0,288 z M 165.775,32l 180.451,0 L 288,320l 138.833,0 L 256,469.479L 85.166,320L 224,320 \n\tL 165.775,32z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, right, next\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,512l 224-256L 288,0l0,186.225 L0,128l0,256 l 288-58.227L 288,512 z M 32,346.226L 32,165.774 L 320,224L 320,85.167 L 469.479,256L 320,426.834L 320,288 \n\tL 32,346.226z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,224L 256,0L0,224l 186.225,0 L 128,512l 256,0 l-58.226-288L 512,224 z M 346.226,480L 165.775,480 L 224,192L 85.167,192 L 256,42.521L 426.834,192\n\tL 288,192 L 346.226,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, left, previous\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,480L 352,480L 192,320L 512,320L 512,192L 192,192L 352,32L 224,32L0,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down-left, down, left, arrow, bottom left, down left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,480L 352,480L 448,384L 224,384L 480,128L 384,32L 128,288L 128,64L 32,160 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,288L 480,160L 320,320L 320,0L 192,0L 192.001,320.001L 32,160L 32,288.001L 256.001,512 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down-right, down, right, arrow, bottom right, down right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,480L 480,160L 384,64L 384,288L 128,32L 32,128L 288,384L 64.001,384L 160.001,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, right, next\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,32L 160,32L 320,192L0,192L0,320L 320,320L 160,480L 288,480L 512,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up-right, up, right, arrow, top right, up right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,32L 160,32L 64,128L 288,128L 32,384L 128,480L 384,224L 384,448L 480,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,224L 32,352L 192,192L 192,512L 320,512L 320,192L 480,352L 480,224L 256,0 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up-left, up, left, arrow, top left, up left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,32L 32,352L 128,448L 128,224L 384,480L 480,384L 224,128L 448,128L 352,32 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, left, previous\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,255.998L 128,312L 128,416L0,256.001L 128,96L 128,200.001 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down-left, down, left, arrow, bottom left, down left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,512L 288,512L 192,416L 512,0L 96,320L0,226.692 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 255.998,0L 312,384L 416,384L 256.001,512L 96,384L 200.001,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down-right, down, right, arrow, bottom right, down right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,512L 512,224L 416.001,320L0,0L 320,416L 226.692,512 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, right, next\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,256.002L 384,200L 384,96L 512,255.999L 384,416L 384,311.999 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up-right, up, right, arrow, top right, up right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,0L 224,0L 320,96L0,512L 416,192L 512,285.309 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256.002,512L 200,128L 96,128L 255.999,0L 416,128L 311.999,128 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up-left, up, left, arrow, top left, up left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,0L0,288L 96,192L 512,512L 192,96L 285.309,0 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, previous, left, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,255.999L 256,512L 256,352 l 255.999,0 L 512,160L 256,160 L 256,0 L0,255.999z M 76,225.254l 8-8l0,77.49 l-8-8L 76,225.254 z M 68,278.744l-8-8l0-29.49 l 8-8\n\tL 68,278.744 z M 92,209.254l 8-8l0,109.491 l-8-8L 92,209.254 z M 108,193.254l 8-8l0,141.491 l-8-8L 108,193.254 z M 124,177.254l 8-8l0,173.491 l-8-8L 124,177.254 z\n\t M 140,161.254l 8-7.999l0,205.49 l-8-8L 140,161.254 z M 156,145.255l 8-8l0,237.49 l-8-8L 156,145.255 z M 172,129.255l 8-8l0,269.49 l-8-8L 172,129.255 z\n\t M 188,113.255l 8-8l0,301.49 l-8-8L 188,113.255 z M 204,97.255l 8-8l0,333.49 l-8-8L 204,97.255 z M 52,249.254l0,13.49 l-6.745-6.745L 52,249.254z M 236,320\n\tL 236,192 l 8,0 l0,128 L 236,320 z M 252,320L 252,192 l 8,0 l0,128 L 252,320 z M 268,320L 268,192 l 8,0 l0,128 L 268,320 z M 284,320L 284,192 l 8,0 l0,128 L 284,320 z M 300,320L 300,192 l 8,0 l0,128 L 300,320 z M 316,320L 316,192 l 8,0 \n\tl0,128 L 316,320 z M 332,320L 332,192 l 8,0 l0,128 L 332,320 z M 348,320L 348,192 l 8,0 l0,128 L 348,320 z M 364,320L 364,192 l 8,0 l0,128 L 364,320 z M 380,320L 380,192 l 8,0 l0,128 L 380,320 z M 396,320L 396,192 l 8,0 l0,128 \n\tL 396,320 z M 412,320L 412,192 l 8,0 l0,128 L 412,320 z M 428,320L 428,192 l 8,0 l0,128 L 428,320 z M 444,320L 444,192 l 8,0 l0,128 L 444,320 z M 460,320L 460,192 l 8,0 l0,128 L 460,320 z M 479.999,320L 476,320 L 476,192 l 4,0 \n\tL 479.999,320z M 224,192l 4,0 l0,128 l-4,0 l0,114.745 l-4-4L 220,81.255 l 4-4L 224,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-bottom, download, bottom, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 255.999,512L 512,256L 352,256 L 352,0.001 L 160,0l0,256 L0,256 L 255.999,512z M 225.254,436l-8-8l 77.49,0 l-8,8L 225.254,436 z M 278.744,444l-8,8l-29.49,0 \n\tl-8-8L 278.744,444 z M 209.254,420l-8-8l 109.491,0 l-8,8L 209.254,420 z M 193.254,404l-8-8l 141.491,0 l-8,8L 193.254,404 z M 177.254,388l-8-8l 173.491,0 l-8,8\n\tL 177.254,388 z M 161.254,372l-7.999-8l 205.49,0 l-8,8L 161.254,372 z M 145.255,356l-8-8l 237.49,0 l-8,8L 145.255,356 z M 129.255,340l-8-8l 269.49,0 l-8,8\n\tL 129.255,340 z M 113.255,324l-8-8l 301.49,0 l-8,8L 113.255,324 z M 97.255,308l-8-8l 333.49,0 l-8,8L 97.255,308 z M 249.254,460l 13.49,0 l-6.745,6.745\n\tL 249.254,460z M 320,276L 192,276 l0-8 l 128,0 L 320,276 z M 320,260L 192,260 l0-8 l 128,0 L 320,260 z M 320,244L 192,244 l0-8 l 128,0 L 320,244 z M 320,228L 192,228 l0-8 l 128,0 L 320,228 z M 320,212L 192,212 \n\tl0-8 l 128,0 L 320,212 z M 320,196L 192,196 l0-8 l 128,0 L 320,196 z M 320,180L 192,180 l0-8 l 128,0 L 320,180 z M 320,164L 192,164 l0-8 l 128,0 L 320,164 z M 320,148L 192,148 l0-8 l 128,0 L 320,148 z M 320,132L 192,132 \n\tl0-8 l 128,0 L 320,132 z M 320,116L 192,116 l0-8 l 128,0 L 320,116 z M 320,100L 192,100 l0-8 l 128,0 L 320,100 z M 320,84L 192,84 l0-8 l 128,0 L 320,84 z M 320,68L 192,68 l0-8 l 128,0 L 320,68 z M 320,52L 192,52 l0-8 l 128,0 \n\tL 320,52 z M 320,32.001L 320,36 L 192,36 l0-4 L 320,32.001z M 192,288l0-4 l 128,0 l0,4 l 114.745,0 l-4,4L 81.255,292 l-4-4L 192,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, next, right, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,256.001L 256,0l0,160 L 0.001,160 L0,352l 256,0 l0,160 L 512,256.001z M 436,286.746l-8,8l0-77.49 l 8,8L 436,286.746 z M 444,233.256l 8,8l0,29.49 \n\tl-8,8L 444,233.256 z M 420,302.746l-8,8L 412,201.255 l 8,8L 420,302.746 z M 404,318.746l-8,8L 396,185.255 l 8,8L 404,318.746 z M 388,334.746l-8,8L 380,169.255 l 8,8\n\tL 388,334.746 z M 372,350.746l-8,7.999l0-205.49 l 8,8L 372,350.746 z M 356,366.745l-8,8l0-237.49 l 8,8L 356,366.745 z M 340,382.745l-8,8l0-269.49 l 8,8\n\tL 340,382.745 z M 324,398.745l-8,8l0-301.49 l 8,8L 324,398.745 z M 308,414.745l-8,8L 300,89.255 l 8,8L 308,414.745 z M 460,262.746l0-13.49 l 6.745,6.745\n\tL 460,262.746z M 276,192l0,128 l-8,0 L 268,192 L 276,192 z M 260,192l0,128 l-8,0 L 252,192 L 260,192 z M 244,192l0,128 l-8,0 L 236,192 L 244,192 z M 228,192l0,128 l-8,0 L 220,192 L 228,192 z M 212,192l0,128 \n\tl-8,0 L 204,192 L 212,192 z M 196,192l0,128 l-8,0 L 188,192 L 196,192 z M 180,192l0,128 l-8,0 L 172,192 L 180,192 z M 164,192l0,128 l-8,0 L 156,192 L 164,192 z M 148,192l0,128 l-8,0 L 140,192 L 148,192 z M 132,192l0,128 \n\tl-8,0 L 124,192 L 132,192 z M 116,192l0,128 l-8,0 L 108,192 L 116,192 z M 100,192l0,128 l-8,0 L 92,192 L 100,192 z M 84,192l0,128 l-8,0 L 76,192 L 84,192 z M 68,192l0,128 l-8,0 L 60,192 L 68,192 z M 52,192l0,128 l-8,0 L 44,192 \n\tL 52,192 z M 32.001,192L 36,192 l0,128 l-4,0 L 32.001,192z M 288,320l-4,0 L 284,192 l 4,0 L 288,77.255 l 4,4l0,349.49 l-4,4L 288,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256.001,0L0,256l 160,0 l0,255.999 L 352,512L 352,256 l 160,0 L 256.001,0z M 286.746,76l 8,8l-77.49,0 l 8-8L 286.746,76 z M 233.256,68l 8-8l 29.49,0 l 8,8\n\tL 233.256,68 z M 302.746,92l 8,8L 201.255,100 l 8-8L 302.746,92 z M 318.746,108l 8,8L 185.255,116 l 8-8L 318.746,108 z M 334.746,124l 8,8L 169.255,132 l 8-8L 334.746,124 z\n\t M 350.746,140l 7.999,8l-205.49,0 l 8-8L 350.746,140 z M 366.745,156l 8,8l-237.49,0 l 8-8L 366.745,156 z M 382.745,172l 8,8l-269.49,0 l 8-8L 382.745,172 z\n\t M 398.745,188l 8,8l-301.49,0 l 8-8L 398.745,188 z M 414.745,204l 8,8L 89.255,212 l 8-8L 414.745,204 z M 262.746,52l-13.49,0 l 6.745-6.745L 262.746,52z M 192,236\n\tl 128,0 l0,8 L 192,244 L 192,236 z M 192,252l 128,0 l0,8 L 192,260 L 192,252 z M 192,268l 128,0 l0,8 L 192,276 L 192,268 z M 192,284l 128,0 l0,8 L 192,292 L 192,284 z M 192,300l 128,0 l0,8 L 192,308 L 192,300 z M 192,316l 128,0 l0,8 \n\tL 192,324 L 192,316 z M 192,332l 128,0 l0,8 L 192,340 L 192,332 z M 192,348l 128,0 l0,8 L 192,356 L 192,348 z M 192,364l 128,0 l0,8 L 192,372 L 192,364 z M 192,380l 128,0 l0,8 L 192,388 L 192,380 z M 192,396l 128,0 l0,8 L 192,404 \n\tL 192,396 z M 192,412l 128,0 l0,8 L 192,420 L 192,412 z M 192,428l 128,0 l0,8 L 192,436 L 192,428 z M 192,444l 128,0 l0,8 L 192,452 L 192,444 z M 192,460l 128,0 l0,8 L 192,468 L 192,460 z M 192,479.999L 192,476 l 128,0 l0,4 \n\tL 192,479.999z M 320,224l0,4 L 192,228 l0-4 L 77.255,224 l 4-4l 349.49,0 l 4,4L 320,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, previous, left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,255.999L 256,512L 256,352 l 255.999,0 L 512,160L 256,160 L 256,0 L0,255.999z M 224,192l 256,0 l-0.001,128L 224,320 l0,114.745 L 45.255,255.999L 224,77.255\n\tL 224,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 255.999,512L 512,256L 352,256 L 352,0.001 L 160,0l0,256 L0,256 L 255.999,512z M 192,288L 192,32 l 128,0.001L 320,288 l 114.745,0 L 255.999,466.745L 77.255,288\n\tL 192,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, next, right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,256.001L 256,0l0,160 L 0.001,160 L0,352l 256,0 l0,160 L 512,256.001z M 288,320L 32,320 l 0.001-128L 288,192 L 288,77.255 l 178.745,178.746L 288,434.745\n\tL 288,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256.001,0L0,256l 160,0 l0,255.999 L 352,512L 352,256 l 160,0 L 256.001,0z M 320,224l0,256 l-128-0.001L 192,224 L 77.255,224 L 256.001,45.255L 434.745,224\n\tL 320,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, left, previous\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 0.001,512L 512,512 L 512,0 L0,0 L 0.001,512z M 448,64l0,384 L 64.001,448 L 64,64L 448,64 z M 224,368L 112,256l 112-112l0,80 l 160,0 l0,64 L 224,288 L 224,368 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down-left, down, left, arrow, bottom left, down left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,512L 512,0 L0,0 l0,512 L 512,512 z M 64,64l 384,0 l0,384 L 64,448 L 64,64 zM 374.627,182.628 L 246.628,310.628 L 320,384 L 128,384 L 128,192 L 201.372,265.372 L 329.372,137.372 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 0,511.999L 0,0 L 512,0 L 512,512 L 0,511.999z M 448,64l-384,0 L 64,447.999 L 448,448L 448,64 z M 144,288L 256,400l 112-112l-80,0 l0-160 l-64,0 L 224,288 L 144,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down-right, down, right, arrow, bottom right, down right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 511.999,0L0,0 l0,512 l 512,0 L 511.999,0z M 64,448L 64,64 l 383.999,0 L 448,448L 64,448 zM 182.628,137.373 L 310.627,265.372 L 384,192 L 384,384 L 192,384 L 265.371,310.628 L 137.372,182.628 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, right, next\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 511.999,512L 0,512 L 0,0 L 512,0 L 511.999,512z M 64,64l0,384 L 447.999,448 L 448,64L 64,64 z M 288,368L 400,256l -112-112l0,80 l-160,0 l0,64 L 288,288 L 288,368 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up-right, up, right, arrow, top right, up right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 315.875,150.871L 361.13,196.126L 182.633,374.623L 137.377,329.368zM0,0l0,512 l 512,0 L 512,0 L0,0 z M 448,448L 64,448 L 64,64 l 384,0 L 448,448 zM 384,320 L 192,128 L 384,128 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow square\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 0,0.001L 0,512 L 512,512 L 512,0 L 0,0.001z M 448,448l-384,0 L 64,64.001 L 448,64L 448,448 z M 144,224L 256,112l 112,112l-80,0 l0,160 l-64,0 L 224,224 L 144,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up-left, up, left, arrow, top left, up left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,512l 512,0 L 512,0 L0,0 L0,512 z M 448,64l0,384 L 64,448 L 64,64 L 448,64 zM 329.372,374.627 L 201.372,246.628 L 128,320 L 128,128 L 320,128 L 246.628,201.372 L 374.628,329.372 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow, resize, vertically\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,16 L 400,160 L 320,160 L 320,352 L 400,352 L 256,496 L 112,352 L 192,352 L 192,160 L 112,160 L 256,16 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow, resize, horizontally\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 496,256 L 352,400 L 352,320 L 160,320 L 160,400 L 16,256 L 160,112 L 160,192 L 352,192 L 352,112 L 496,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow, resize, diagonally\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0L0,0L0,256L 85.573,170.427L 341.573,426.427L 256,512L 512,512L 512,256L 426.427,341.573L 170.427,85.573 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow, resize, diagonally\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,256L 512,0L 256,0L 341.573,85.573L 85.573,341.573L0,256L0,512L 256,512L 170.427,426.427L 426.427,170.427 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow, resize, vertically\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 329.372,361.372L 288,402.745l0-293.49 l 41.372,41.373C 335.621,156.876, 343.811,160, 352,160s 16.379-3.124, 22.628-9.373\n\tc 12.496-12.497, 12.496-32.758,0-45.255l-96-96c-12.498-12.497-32.758-12.497-45.255,0l-96,96c-12.497,12.497-12.497,32.758,0,45.255\n\tc 12.497,12.497, 32.758,12.497, 45.255,0L 224,109.255l0,293.49 l-41.373-41.373c-12.497-12.496-32.758-12.496-45.255,0\n\tc-12.497,12.497-12.497,32.759,0,45.256l 96,96C 239.621,508.876, 247.811,512, 256,512s 16.379-3.124, 22.628-9.372l 96-96\n\tc 12.496-12.497, 12.496-32.759,0-45.256C 362.13,348.876, 341.87,348.876, 329.372,361.372z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow, resize, horizontally\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 361.372,182.628L 402.745,224l-293.49,0 l 41.373-41.372C 156.876,176.379, 160,168.189, 160,160s-3.124-16.379-9.373-22.628\n\tc-12.497-12.496-32.758-12.496-45.255,0l-96,96c-12.497,12.498-12.497,32.759,0,45.255l 96,96c 12.497,12.497, 32.758,12.497, 45.255,0\n\tc 12.497-12.496, 12.497-32.758,0-45.254L 109.255,288l 293.49,0 l-41.373,41.372c-12.496,12.497-12.496,32.758,0,45.255\n\tc 12.497,12.497, 32.759,12.497, 45.256,0l 96-96C 508.876,272.379, 512,264.189, 512,256s-3.124-16.379-9.372-22.628l-96-96\n\tc-12.497-12.496-32.759-12.496-45.256,0C 348.876,149.87, 348.876,170.13, 361.372,182.628z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow, resize, diagonally\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,224c0,17.673, 14.327,32, 32,32s 32-14.327, 32-32L 64,109.256 L 402.744,448L 288,448 c-17.673,0-32,14.326-32,32\n\tc0,17.673, 14.327,32, 32,32l 224,0 L 512,288 c0-17.674-14.327-32-32-32s-32,14.326-32,32l0,114.744 L 109.255,64L 224,64 c 17.673,0, 32-14.327, 32-32\n\tS 241.673,0, 224,0L0,0 L0,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow, resize, diagonally\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,0c-17.673,0-32,14.327-32,32s 14.327,32, 32,32l 114.744,0 L 64,402.744L 64,288 c0-17.673-14.327-32-32-32S0,270.327,0,288l0,224 \n\tl 224,0 c 17.673,0, 32-14.327, 32-32s-14.327-32-32-32L 109.255,448 L 448,109.255L 448,224 c0,17.673, 14.327,32, 32,32s 32-14.327, 32-32L 512,0 L 288,0 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, left, previous\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 397.385,0, 512,114.615, 512,256s -114.615,256, -256,256s -256-114.615, -256-256S 114.615,0, 256,0z M 105.372,278.628\n\t\tl 128.001,128C 239.621,412.876, 247.811,416, 256,416s 16.379-3.124 22.627-9.372c 12.497-12.497 12.497-32.759,0-45.256L 205.255,288\n\t\tL 384,288 c 17.673,0 32-14.327 32-32c0-17.673, -14.327-32, -32-32l-178.745,0 l 73.373-73.373c 12.497-12.497 12.497-32.758,0-45.255\n\t\tc -12.497-12.497, -32.758-12.497, -45.254,0l -128.001,128C 92.876,245.869, 92.876,266.131, 105.372,278.628z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down-left, down, left, arrow, bottom left, down left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512C 397.385,512, 512,397.385, 512,256s -114.615-256, -256-256s -256,114.615, -256,256S 114.615,512, 256,512z M 128,192\n\t\tc0-17.673 14.327-32 32-32s 32,14.327 32,32l0,82.745 L 329.373,137.372C 335.621,131.124, 343.811,128, 352,128\n\t\ts 16.379,3.124 22.627,9.372c 12.497,12.497 12.497,32.759,0,45.256L 237.256,320L 320,320 c 17.673,0 32,14.327 32,32s -14.327,32, -32,32\n\t\tl-192,0 L 128,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,256C 512,114.615, 397.385,0, 256,0s -256,114.615, -256,256s 114.615,256, 256,256S 512,397.385, 512,256z M 233.372,406.628\n\t\tl -128-128.001C 99.124,272.379, 96,264.189, 96,256s 3.124-16.379 9.372-22.627c 12.497-12.497 32.759-12.497, 45.256,0L 224,306.745\n\t\tL 224,128 c 0-17.673 14.327-32 32-32c 17.673,0, 32,14.327, 32,32l0,178.745 l 73.373-73.373c 12.497-12.497 32.758-12.497, 45.255,0\n\t\tc 12.497,12.497, 12.497,32.758, 0,45.254l -128,128.001C 266.131,419.124, 245.869,419.124, 233.372,406.628z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down-right, down, right, arrow, bottom right, down right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512C 114.615,512, 0,397.385, 0,256s 114.615-256, 256-256s 256,114.615, 256,256S 397.385,512, 256,512z M 384,192\n\t\tc0-17.673 -14.327-32 -32-32s -32,14.327 -32,32l0,82.745 L 182.627,137.372C 176.379,131.124, 168.189,128, 160,128\n\t\ts -16.379,3.124 -22.627,9.372c -12.497,12.497 -12.497,32.759,0,45.256L 274.744,320L 192,320 c -17.673,0 -32,14.327 -32,32s 14.327,32, 32,32\n\t\tl 192,0 L 384,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, right, next\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 406.628,278.628\n\t\tl-128.001,128C 272.379,412.876, 264.189,416, 256,416s-16.379-3.124-22.627-9.372c-12.497-12.497-12.497-32.759,0-45.256L 306.745,288\n\t\tL 128,288 c-17.673,0-32-14.327-32-32c0-17.673, 14.327-32, 32-32l 178.745,0 l-73.373-73.373c-12.497-12.497-12.497-32.758,0-45.255\n\t\tc 12.497-12.497, 32.758-12.497, 45.254,0l 128.001,128C 419.124,245.869, 419.124,266.131, 406.628,278.628z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up-right, up, right, arrow, top right, up right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 384,320\n\t\tc0,17.673-14.327,32-32,32s-32-14.327-32-32l0-82.745 L 182.627,374.628C 176.379,380.876, 168.189,384, 160,384\n\t\ts-16.379-3.124-22.627-9.372c-12.497-12.497-12.497-32.759,0-45.256L 274.744,192L 192,192 c-17.673,0-32-14.327-32-32s 14.327-32, 32-32\n\t\tl 192,0 L 384,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,256C 512,397.385, 397.385,512, 256,512s -256-114.615, -256-256s 114.615-256, 256-256S 512,114.615, 512,256z M 233.372,105.372\n\t\tl -128,128.001C 99.124,239.621, 96,247.811, 96,256s 3.124,16.379 9.372,22.627c 12.497,12.497 32.759,12.497, 45.256,0L 224,205.255\n\t\tL 224,384 c 0,17.673 14.327,32 32,32c 17.673,0, 32-14.327, 32-32l0-178.745 l 73.373,73.373c 12.497,12.497 32.758,12.497, 45.255,0\n\t\tc 12.497-12.497, 12.497-32.758, 0-45.254l -128-128.001C 266.131,92.876, 245.869,92.876, 233.372,105.372z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up-left, up, left, arrow, top left, up left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 397.385,0, 512,114.615, 512,256s -114.615,256, -256,256s -256-114.615, -256-256S 114.615,0, 256,0z M 128,320\n\t\tc0,17.673 14.327,32 32,32s 32-14.327 32-32l0-82.745 L 329.373,374.628C 335.621,380.876, 343.811,384, 352,384\n\t\ts 16.379-3.124 22.627-9.372c 12.497-12.497 12.497-32.759,0-45.256L 237.256,192L 320,192 c 17.673,0 32-14.327 32-32s -14.327-32, -32-32\n\t\tl-192,0 L 128,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, left, previous\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 397.385,0, 512,114.615, 512,256s -114.615,256, -256,256s -256-114.615, -256-256S 114.615,0, 256,0z M 256,464\n\t\tc 114.875,0 208-93.125 208-208S 370.875,48, 256,48s -208,93.125, -208,208S 141.125,464, 256,464zM 105.372,233.373l 128.001-128c 12.496-12.497 32.757-12.497 45.254,0c 12.497,12.497 12.497,32.758,0,45.255L 205.255,224\n\tL 384,224 c 17.673,0 32,14.327 32,32c0,17.673, -14.327,32, -32,32l-178.745,0 l 73.373,73.372c 12.497,12.497 12.497,32.759,0,45.256\n\tC 272.379,412.876, 264.189,416, 256,416s -16.379-3.124, -22.627-9.372l -128.001-128C 92.876,266.131, 92.876,245.869, 105.372,233.373z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down-left, down, left, arrow, bottom left, down left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512C 397.385,512, 512,397.385, 512,256s -114.615-256, -256-256s -256,114.615, -256,256S 114.615,512, 256,512z M 256,48\n\t\tc 114.875,0 208,93.125 208,208S 370.875,464, 256,464s -208-93.125, -208-208S 141.125,48, 256,48zM 320,384c 17.673,0 32-14.327 32-32s -14.327-32, -32-32l-82.744,0 L 374.627,182.628c 12.497-12.497 12.497-32.759,0-45.256\n\tC 368.379,131.124, 360.189,128, 352,128s -16.379,3.124, -22.627,9.372L 192,274.745L 192,192 c0-17.673, -14.327-32, -32-32s -32,14.327, -32,32L 128,384 L 320,384 \n\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,256C 512,114.615, 397.385,0, 256,0s -256,114.615, -256,256s 114.615,256, 256,256S 512,397.385, 512,256z M 48,256\n\t\tc 0-114.875 93.125-208 208-208S 464,141.125, 464,256s -93.125,208, -208,208S 48,370.875, 48,256zM 278.627,406.628l 128-128.001c 12.497-12.496 12.497-32.757 0-45.254c -12.497-12.497 -32.758-12.497,-45.255,0L 288,306.745\n\tL 288,128 c 0-17.673 -14.327-32 -32-32c-17.673,0, -32,14.327, -32,32l0,178.745 l -73.372-73.373c -12.497-12.497 -32.759-12.497,-45.256,0\n\tC 99.124,239.621, 96,247.811, 96,256s 3.124,16.379, 9.372,22.627l 128,128.001C 245.869,419.124, 266.131,419.124, 278.627,406.628z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down-right, down, right, arrow, bottom right, down right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512C 114.615,512, 0,397.385, 0,256s 114.615-256, 256-256s 256,114.615, 256,256S 397.385,512, 256,512z M 256,48\n\t\tc -114.875,0 -208,93.125 -208,208S 141.125,464, 256,464s 208-93.125, 208-208S 370.875,48, 256,48zM 192,384c -17.673,0 -32-14.327 -32-32s 14.327-32, 32-32l 82.744,0 L 137.373,182.628c -12.497-12.497 -12.497-32.759,0-45.256\n\tC 143.621,131.124, 151.811,128, 160,128s 16.379,3.124, 22.627,9.372L 320,274.745L 320,192 c0-17.673, 14.327-32, 32-32s 32,14.327, 32,32L 384,384 L 192,384 \n\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, right, next\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,464\n\t\tc-114.875,0-208-93.125-208-208S 141.125,48, 256,48s 208,93.125, 208,208S 370.875,464, 256,464zM 406.628,233.373l-128.001-128c-12.496-12.497-32.757-12.497-45.254,0c-12.497,12.497-12.497,32.758,0,45.255L 306.745,224\n\tL 128,224 c-17.673,0-32,14.327-32,32c0,17.673, 14.327,32, 32,32l 178.745,0 l-73.373,73.372c-12.497,12.497-12.497,32.759,0,45.256\n\tC 239.621,412.876, 247.811,416, 256,416s 16.379-3.124, 22.627-9.372l 128.001-128C 419.124,266.131, 419.124,245.869, 406.628,233.373z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up-right, up, right, arrow, top right, up right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,464\n\t\tc-114.875,0-208-93.125-208-208S 141.125,48, 256,48s 208,93.125, 208,208S 370.875,464, 256,464zM 192,128c-17.673,0-32,14.327-32,32s 14.327,32, 32,32l 82.744,0 L 137.373,329.372c-12.497,12.497-12.497,32.759,0,45.256\n\tC 143.621,380.876, 151.811,384, 160,384s 16.379-3.124, 22.627-9.372L 320,237.255L 320,320 c0,17.673, 14.327,32, 32,32s 32-14.327, 32-32L 384,128 L 192,128 \n\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,256C 512,397.385, 397.385,512, 256,512s -256-114.615, -256-256s 114.615-256, 256-256S 512,114.615, 512,256z M 48,256\n\t\tc 0,114.875 93.125,208 208,208S 464,370.875, 464,256s -93.125-208, -208-208S 48,141.125, 48,256zM 278.627,105.372l 128,128.001c 12.497,12.496 12.497,32.757 0,45.254c -12.497,12.497 -32.758,12.497,-45.255,0L 288,205.255\n\tL 288,384 c 0,17.673 -14.327,32 -32,32c-17.673,0, -32-14.327, -32-32l0-178.745 l -73.372,73.373c -12.497,12.497 -32.759,12.497,-45.256,0\n\tC 99.124,272.379, 96,264.189, 96,256s 3.124-16.379, 9.372-22.627l 128-128.001C 245.869,92.876, 266.131,92.876, 278.627,105.372z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up-left, up, left, arrow, top left, up left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 397.385,0, 512,114.615, 512,256s -114.615,256, -256,256s -256-114.615, -256-256S 114.615,0, 256,0z M 256,464\n\t\tc 114.875,0 208-93.125 208-208S 370.875,48, 256,48s -208,93.125, -208,208S 141.125,464, 256,464zM 320,128c 17.673,0 32,14.327 32,32s -14.327,32, -32,32l-82.744,0 L 374.627,329.372c 12.497,12.497 12.497,32.759,0,45.256\n\tC 368.379,380.876, 360.189,384, 352,384s -16.379-3.124, -22.627-9.372L 192,237.255L 192,320 c0,17.673, -14.327,32, -32,32s -32-14.327, -32-32L 128,128 L 320,128 \n\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, left, previous\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 201.373,73.373l-160,160c-12.497,12.496-12.497,32.758,0,45.254l 160,160c 12.497,12.496, 32.758,12.496, 45.255,0\n\tc 12.498-12.496, 12.498-32.758,0-45.254L 141.254,288L 448,288 c 17.673,0, 32-14.326, 32-32c0-17.673-14.327-32-32-32L 141.254,224 l 105.373-105.373\n\tC 252.875,112.379, 256,104.189, 256,96s-3.124-16.379-9.372-22.627C 234.13,60.876, 213.87,60.876, 201.373,73.373z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down-left, down, left, arrow, bottom left, down left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,448c 17.674,0, 32-14.326, 32-32c0-17.673-14.326-32-32-32L 173.254,384 l 265.374-265.373c 12.496-12.496, 12.496-32.758,0-45.254\n\tC 432.379,67.124, 424.189,64, 416,64s-16.379,3.124-22.627,9.373L 128,338.746L 128,224 c0-17.673-14.327-32-32-32s-32,14.327-32,32l0,224 L 288,448 z\n\t\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 73.373,310.627l 160,160c 12.496,12.497, 32.758,12.497, 45.255,0l 160-160c 12.496-12.497, 12.496-32.758,0-45.255\n\tc-12.497-12.497-32.758-12.497-45.255,0L 288,370.745L 288,64 c0-17.673-14.327-32-32-32s-32,14.327-32,32l0,306.745 L 118.627,265.372\n\tC 112.379,259.124, 104.189,256, 96,256s-16.379,3.124-22.627,9.372C 60.876,277.869, 60.876,298.13, 73.373,310.627z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down-right, down, right, arrow, bottom right, down right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,224c0-17.674-14.326-32-32-32c-17.673,0-32,14.326-32,32l0,114.746 L 118.627,73.372\n\tc-12.496-12.496-32.758-12.496-45.254,0C 67.124,79.621, 64,87.811, 64,96s 3.124,16.379, 9.373,22.627L 338.746,384L 224,384 \n\tc-17.673,0-32,14.327-32,32s 14.327,32, 32,32l 224,0 L 448,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, right, next\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 310.627,438.627l 160-160c 12.497-12.496, 12.497-32.758,0-45.255l-160-160c-12.497-12.496-32.758-12.496-45.255,0\n\tc-12.497,12.497-12.497,32.758,0,45.255L 370.745,224L 64,224 c-17.673,0-32,14.327-32,32s 14.327,32, 32,32l 306.745,0 L 265.372,393.373\n\tC 259.124,399.621, 256,407.811, 256,416s 3.124,16.379, 9.372,22.627C 277.869,451.124, 298.13,451.124, 310.627,438.627z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up-right, up, right, arrow, top right, up right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416.010,64c-0.006,0-0.014,0-0.020,0L 224,64 c-17.673,0-32,14.327-32,32s 14.327,32, 32,32l 114.746,0 L 73.373,393.373\n\tc-12.497,12.496-12.497,32.758,0,45.254C 79.621,444.876, 87.811,448, 96,448s 16.379-3.124, 22.627-9.373L 384,173.254L 384,288 \n\tc0,17.673, 14.327,32, 32,32s 32-14.327, 32-32L 448,64 L 416.010,64 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 438.627,201.373l-160-160c-12.496-12.497-32.757-12.497-45.254,0l-160,160c-12.497,12.497-12.497,32.758,0,45.255\n\tc 12.497,12.498, 32.758,12.498, 45.255,0L 224,141.255L 224,448 c0,17.673, 14.327,32, 32,32c 17.673,0, 32-14.327, 32-32L 288,141.255 l 105.373,105.373\n\tC 399.621,252.876, 407.811,256, 416,256s 16.379-3.124, 22.627-9.373C 451.124,234.13, 451.124,213.87, 438.627,201.373z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up-left, up, left, arrow, top left, up left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,288c0,17.674, 14.327,32, 32,32s 32-14.326, 32-32L 128,173.254 l 265.373,265.374c 12.496,12.496, 32.758,12.496, 45.254,0\n\tC 444.876,432.379, 448,424.189, 448,416s-3.124-16.379-9.373-22.627L 173.254,128L 288,128 c 17.673,0, 32-14.327, 32-32s-14.327-32-32-32L 64,64 \n\tL 64,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, left, previous\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,256L 256,512L 256,352L 511.999,352L 512,160L 256,160L 256,0 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down-left, down, left, arrow, bottom left, down left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,512L 256,384L 512,128L 384,0L 128,256.001L0,128.001L0,512 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512L 512,256L 352,256L 352,0.001L 160,0L 160,256L0,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down-right, down, right, arrow, bottom right, down right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,128L 384,256L 128,0L0,128L 256.001,384L 128.001,512L 512,512 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, right, next\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,256L 256,0L 256,160L 0.001,160L0,352L 256,352L 256,512 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up-right, up, right, arrow, top right, up right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,0L 256.001,128L0,384L 128,512L 384,256L 512,383.999L 512,0 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256.001,0L0,256L 160,256L 160,511.999L 352,512L 352,256L 512,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up-left, up, left, arrow, top left, up left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,384L 128,256L 384,512L 512,384L 256,128L 383.999,0L0,0 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, left, previous\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320.001,128L 192.001,256L 320.001,384.001 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,192L 256,320L 384,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, right, next\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192.001,384L 320.001,256L 192.001,128 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,320L 256,192L 128,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-left, previous, left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,512L 416,416L 256,256L 416,96L 320,0L 64,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-down, download, bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,192L 416,96L 256,256L 96,96L0,192L 256,447.999 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, right, next\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,0L 96,96L 256,256L 96,416L 192,512L 448,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-up, upload, top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,320L 96,416L 256,256L 416,416L 512,320L 256.001,64 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-right, first, right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,416L 192,512L 448,256L 192,0L 96,96L 256,256 \tzM 512,512L 512,0L 448,0L 448,256L 448,512 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"arrow-first, first, left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,96L 320,0L 64,256L 320,512L 416,416L 256,256 \tzM0,0L0,512L 64,512L 64,256L 64,0 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"576\" height=\"512\" viewBox=\"0 0 576 512\" data-tags=\"wave\" style=\"margin-left: 8px; margin-top: 9px;\"><path d=\"M 512,128 L 576,128 L 576,384 C 576,436.935 532.935,480 480,480 C 427.065,480 384,436.935 384,384 L 384,128 C 384,110.355 369.645,96 352,96 C 334.355,96 320,110.355 320,128 L 320,384 C 320,436.935 276.935,480 224,480 C 171.065,480 128,436.935 128,384 L 128,128 C 128,110.355 113.645,96 96,96 C 78.355,96 64,110.355 64,128 L 64,384 L 0,384 L 0,128 C 0,75.065 43.065,32 96,32 C 148.935,32 192,75.065 192,128 L 192,384 C 192,401.645 206.355,416 224,416 C 241.645,416 256,401.645 256,384 L 256,128 C 256,75.065 299.065,32 352,32 C 404.935,32 448,75.065 448,128 L 448,384 C 448,401.645 462.355,416 480,416 C 497.645,416 512,401.645 512,384 L 512,128 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"wave\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,160 L 480,160 L 480,352 C 480,369.251 476.607,386.021 469.915,401.843 C 463.465,417.093 454.244,430.776 442.51,442.51 C 430.776,454.244 417.093,463.465 401.843,469.915 C 386.021,476.607 369.252,480 352,480 C 334.748,480 317.979,476.607 302.157,469.915 C 286.907,463.465 273.224,454.244 261.49,442.51 C 249.756,430.776 240.535,417.093 234.085,401.843 C 227.393,386.021 224,369.252 224,352 L 224,160 C 224,124.654 195.346,96 160,96 C 124.654,96 96,124.654 96,160 L 96,352 L 32,352 L 32,160 C 32,142.749 35.393,125.979 42.085,110.157 C 48.535,94.907 57.756,81.225 69.49,69.49 C 81.225,57.756 94.907,48.535 110.157,42.085 C 125.979,35.393 142.749,32 160,32 C 177.251,32 194.021,35.393 209.843,42.085 C 225.093,48.535 238.775,57.756 250.51,69.49 C 262.244,81.225 271.465,94.907 277.915,110.157 C 284.607,125.979 288,142.749 288,160 L 288,352 C 288,387.347 316.654,416 352,416 C 387.346,416 416,387.346 416,352 L 416,160 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"shuffle, media control, random\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,352 L 384,288 L 512,384 L 384,480 L 384,416 L 292,416 C 279.379,416 266.979,409.621 259.64,399.352 L 111.533,192 L 0,192 L 0,128 L 124,128 C 136.624,128 149.025,134.381 156.363,144.653 L 208,216.945 L 259.64,144.648 C 266.979,134.379 279.379,128 292,128 L 384,128 L 384,64 L 512,160 L 384,256 L 384,192 L 304.468,192 L 247.325,272 L 304.468,352 L 384,352 ZM 111.533,352 L 145.268,304.77 L 184.593,359.826 L 156.363,399.347 C 149.025,409.619 136.624,416 124,416 L 0,416 L 0,352 L 111.533,352 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"shuffle, media control, random\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,128L 384,0l0,96 c-65.386,0-115.376,15.604-152.825,47.704c-2.625,2.25-5.142,4.55-7.581,6.887\n\t\tc 13.76,19.082, 24.358,38.758, 33.886,57.545C 281.641,178.935, 316.507,160, 384,160l0,96 l0,0 l0,96 c-108.223,0-132.563-48.68-163.378-110.311\n\t\tc-17.153-34.306-34.89-69.78-67.796-97.985C 115.376,111.604, 65.386,96,0,96l0,64 c 108.223,0, 132.563,48.68, 163.378,110.311\n\t\tc 17.153,34.306, 34.89,69.78, 67.796,97.985C 268.624,400.396, 318.615,416, 384,416l0,96 l 128-128L 384,256L 512,128zM0,352l0,64 c 65.386,0, 115.375-15.604, 152.825-47.704c 2.625-2.249, 5.142-4.55, 7.581-6.888\n\t\tc-13.76-19.081-24.359-38.758-33.886-57.545C 102.36,333.064, 67.494,352,0,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"loop, repeat, reload, refresh, update, upgrade, synchronize, media control, arrows\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,320L 160,224L 256,224L 128,96L0,224L 96,224L 96,384L 288,384L 224,320 \tzM 416,288L 416,128L 224,128L 288,192L 352,192L 352,288L 256,288L 384,416L 512,288 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"loop, repeat, reload, refresh, update, upgrade, synchronize, media control, arrows\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 437.011,74.99C 390.685,28.662, 326.693,0, 256,0C 146.256,0, 52.655,69.064, 16.251,166.094l 59.938,22.477\n\t\tC 103.491,115.798, 173.692,64, 256,64c 53.020,0, 101.010,21.5, 135.753,56.247L 320,192l 192,0 L 512,0 L 437.011,74.99zM 256,448c-53.020,0-101.013-21.496-135.756-56.244L 192,320L0,320 l0,192 l 74.997-74.997C 121.32,483.334, 185.306,512, 256,512\n\t\tc 109.745,0, 203.346-69.064, 239.75-166.094l-59.938-22.477C 408.51,396.202, 338.309,448, 256,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"loop, repeat, reload, refresh, update, upgrade, synchronize, media control, arrows\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,104 C 205.874,104 161.23,127.401 132.837,163.628 L 94.449,134.837 C 131.609,86.955 190.196,56 256,56 L 256,0 L 336,80 L 256,160 L 256,104 ZM 256,408 C 306.127,408 350.771,384.599 379.163,348.372 L 417.551,377.163 C 380.391,425.045 321.804,456 256,456 L 256,512 L 176,432 L 256,352 L 256,408 ZM 100.8,256 C 100.8,306.182 125.764,350.754 164.162,378.451 L 135.37,416.841 C 85.316,380.377 52.8,321.858 52.8,256 L 0,256 L 80,176 L 160,256 L 100.8,256 ZM 459.2,256 L 512,256 L 432,336 L 352,256 L 411.2,256 C 411.2,205.818 386.236,161.246 347.838,133.549 L 376.63,95.16 C 426.684,131.623 459.2,190.141 459.2,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"loop, repeat, reload, refresh, update, upgrade, synchronize, media control, arrows\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,16 L 480,192 L 304,192 L 368,128 L 336,96 L 224,96 L 224,32 L 368,32 L 416,80 ZM 496,480 L 320,480 L 320,304 L 384,368 L 416,336 L 416,224 L 480,224 L 480,368 L 432,416 ZM 32,496 L 32,320 L 208,320 L 144,384 L 176,416 L 288,416 L 288,480 L 144,480 L 96,432 ZM 16,32 L 192,32 L 192,208 L 128,144 L 96,176 L 96,288 L 32,288 L 32,144 L 80,96 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"loop, repeat, reload, refresh, update, upgrade, synchronize, media control, arrows\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,160L 384,160L 384,256L 512,128L 384,0L 384,96L0,96L0,288L 64,288 \tzM 448,352L 128,352L 128,256L0,384L 128,512L 128,416L 512,416L 512,224L 448,224 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume-mute, speaker, media control, audio, mute\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,0L 192,160L 96,160L 96,352L 352,96 \tzM 477.088,34.912L 34.912,477.088L 69.824,512L 210.912,370.912L 352,512L 352,229.823L 512,69.823 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume-mute, speaker, media control, audio, mute\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 0,160 L 96,160 L 256,0 L 256,512 L 96,352 L 0,352 L 0,160 Z M 458.426,256 L 512,309.574 L 512,352 L 469.574,352 L 416,298.426 L 362.426,352 L 320,352 L 320,309.574 L 373.574,256 L 320,202.426 L 320,160 L 362.426,160 L 416,213.574 L 469.574,160 L 512,160 L 512,202.426 L 458.426,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume0, speaker, media control, audio, mute\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 0,160 L 96,160 L 256,0 L 256,512 L 96,352 L 0,352 L 0,160 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume1, speaker, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,416L 512,416L 512,480L 288,480zM0,160L0,352L 96,352L 256,512L 256,0L 96,160 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume2, speaker, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,320L 512,320L 512,384L 288,384zM 288,416L 512,416L 512,480L 288,480zM0,160L0,352L 96,352L 256,512L 256,0L 96,160 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume3, speaker, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,224L 512,224L 512,288L 288,288zM 288,320L 512,320L 512,384L 288,384zM 288,416L 512,416L 512,480L 288,480zM0,160L0,352L 96,352L 256,512L 256,0L 96,160 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume4, speaker, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,128L 512,128L 512,192L 288,192zM 288,224L 512,224L 512,288L 288,288zM 288,320L 512,320L 512,384L 288,384zM 288,416L 512,416L 512,480L 288,480zM0,160L0,352L 96,352L 256,512L 256,0L 96,160 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume5, speaker, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,32L 512,32L 512,96L 288,96zM 288,128L 512,128L 512,192L 288,192zM 288,224L 512,224L 512,288L 288,288zM 288,320L 512,320L 512,384L 288,384zM 288,416L 512,416L 512,480L 288,480zM0,160L0,352L 96,352L 256,512L 256,0L 96,160 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume-decrease, speaker, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 214.082,31.959c-3.802,0-8.433,2.392-13.416,7.375L 80,160L0,160 l0,192 l 80,0 l 120.666,120.665c 4.983,4.982, 9.615,7.376, 13.417,7.376\n\tc 5.99,0, 9.918-5.938, 9.918-17.041L 224.001,49 C 224,37.898, 220.070,31.959, 214.082,31.959z M 160,364.117L 99.882,304L 64,304 l0-96 l 35.882,0 L 160,147.882\n\tL 160,364.117 zM 256,224L 512,224L 512,288L 256,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume-increase, speaker, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 214.082,31.959c-3.802,0-8.433,2.392-13.416,7.375L 80,160L0,160 l0,192 l 80,0 l 120.666,120.665c 4.983,4.982, 9.615,7.376, 13.417,7.376\n\tc 5.99,0, 9.918-5.938, 9.918-17.041L 224.001,49 C 224,37.898, 220.070,31.959, 214.082,31.959z M 160,364.117L 99.882,304L 64,304 l0-96 l 35.882,0 L 160,147.882\n\tL 160,364.117 zM 512,288 L 416,288 L 416,384 L 352,384 L 352,288 L 256,288 L 256,224 L 352,224 L 352,128 L 416,128 L 416,224 L 512,224 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume-mute, speaker, media control, audio, mute\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,309.574 L 480,352 L 437.574,352 L 384,298.426 L 330.426,352 L 288,352 L 288,309.574 L 341.574,256 L 288,202.426 L 288,160 L 330.426,160 L 384,213.574 L 437.574,160 L 480,160 L 480,202.426 L 426.426,256 ZM 214.082,31.959c-3.802,0-8.433,2.392-13.416,7.375L 80,160L0,160 l0,192 l 80,0 l 120.666,120.665c 4.983,4.982, 9.615,7.376, 13.417,7.376\n\tc 5.99,0, 9.918-5.938, 9.918-17.041L 224.001,49 C 224,37.898, 220.070,31.959, 214.082,31.959z M 160,364.117L 99.882,304L 64,304 l0-96 l 35.882,0 L 160,147.882\n\tL 160,364.117 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume-mute, speaker, media control, audio, mute\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 214.082,31.959c-3.802,0-8.433,2.392-13.416,7.375L 80,160L0,160 l0,192 l 80,0 l 120.666,120.665c 4.983,4.982, 9.615,7.376, 13.417,7.376\n\tc 5.99,0, 9.918-5.938, 9.918-17.041L 224.001,49 C 224,37.898, 220.070,31.959, 214.082,31.959z M 160,364.117L 99.882,304L 64,304 l0-96 l 35.882,0 L 160,147.882\n\tL 160,364.117 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume-low, speaker, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 274.51,370.51c-6.143,0-12.284-2.343-16.971-7.029c-9.373-9.373-9.373-24.568,0-33.941\n\t\tc 40.55-40.55, 40.55-106.529,0-147.078c-9.373-9.373-9.373-24.569,0-33.941c 9.373-9.372, 24.568-9.372, 33.941,0\n\t\tc 59.265,59.265, 59.265,155.696,0,214.961C 286.794,368.167, 280.652,370.51, 274.51,370.51zM 214.082,31.959c-3.802,0-8.433,2.392-13.416,7.375L 80,160L0,160 l0,192 l 80,0 l 120.666,120.665c 4.983,4.982, 9.615,7.376, 13.417,7.376\n\tc 5.99,0, 9.918-5.938, 9.918-17.041L 224.001,49 C 224,37.898, 220.070,31.959, 214.082,31.959z M 160,364.117L 99.882,304L 64,304 l0-96 l 35.882,0 L 160,147.882\n\tL 160,364.117 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume-medium, speaker, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 359.765,415.765c-6.143,0-12.284-2.343-16.971-7.029c-9.372-9.372-9.372-24.568,0-33.941\n\t\tc 65.503-65.503, 65.503-172.085,0-237.588c-9.372-9.373-9.372-24.569,0-33.941c 9.372-9.371, 24.569-9.372, 33.941,0\n\t\tC 417.532,144.062, 440,198.304, 440,256c0,57.695-22.468,111.938-63.265,152.735C 372.049,413.422, 365.907,415.765, 359.765,415.765zM 274.51,370.51c-6.143,0-12.284-2.343-16.971-7.029c-9.373-9.373-9.373-24.568,0-33.941\n\t\tc 40.55-40.55, 40.55-106.529,0-147.078c-9.373-9.373-9.373-24.569,0-33.941c 9.373-9.372, 24.568-9.372, 33.941,0\n\t\tc 59.265,59.265, 59.265,155.696,0,214.961C 286.794,368.167, 280.652,370.51, 274.51,370.51zM 214.082,31.959c-3.802,0-8.433,2.392-13.416,7.375L 80,160L0,160 l0,192 l 80,0 l 120.666,120.665c 4.983,4.982, 9.615,7.376, 13.417,7.376\n\tc 5.99,0, 9.918-5.938, 9.918-17.041L 224.001,49 C 224,37.898, 220.070,31.959, 214.082,31.959z M 160,364.117L 99.882,304L 64,304 l0-96 l 35.882,0 L 160,147.882\n\tL 160,364.117 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"544\" height=\"512\" viewBox=\"0 0 544 512\" data-tags=\"volume-high, speaker, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 445.020,461.020c-6.143,0-12.284-2.343-16.971-7.029c-9.372-9.373-9.372-24.568,0-33.941\n\t\tC 471.868,376.229, 496.001,317.97, 496.001,256c0-61.969-24.133-120.229-67.952-164.049c-9.372-9.373-9.372-24.569,0-33.941\n\t\tc 9.372-9.372, 24.569-9.372, 33.941,0c 52.885,52.886, 82.011,123.2, 82.011,197.99c0,74.791-29.126,145.104-82.011,197.99\n\t\tC 457.304,458.677, 451.162,461.020, 445.020,461.020zM 359.765,415.765c-6.143,0-12.284-2.343-16.971-7.029c-9.372-9.372-9.372-24.568,0-33.941\n\t\tc 65.503-65.503, 65.503-172.085,0-237.588c-9.372-9.373-9.372-24.569,0-33.941c 9.372-9.371, 24.569-9.372, 33.941,0\n\t\tC 417.532,144.062, 440,198.304, 440,256c0,57.695-22.468,111.938-63.265,152.735C 372.049,413.422, 365.907,415.765, 359.765,415.765zM 274.51,370.51c-6.143,0-12.284-2.343-16.971-7.029c-9.373-9.373-9.373-24.568,0-33.941\n\t\tc 40.55-40.55, 40.55-106.529,0-147.078c-9.373-9.373-9.373-24.569,0-33.941c 9.373-9.372, 24.568-9.372, 33.941,0\n\t\tc 59.265,59.265, 59.265,155.696,0,214.961C 286.794,368.167, 280.652,370.51, 274.51,370.51zM 214.082,31.959c-3.802,0-8.433,2.392-13.416,7.375L 80,160L0,160 l0,192 l 80,0 l 120.666,120.665c 4.983,4.982, 9.615,7.376, 13.417,7.376\n\tc 5.99,0, 9.918-5.938, 9.918-17.041L 224.001,49 C 224,37.898, 220.070,31.959, 214.082,31.959z M 160,364.117L 99.882,304L 64,304 l0-96 l 35.882,0 L 160,147.882\n\tL 160,364.117 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume-decrease, speaker, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 214.082,31.959 C 220.070,31.959 224,37.898 224.001,49 L 224.001,463 C 224.001,474.103 220.073,480.041 214.083,480.041 C 210.281,480.041 205.649,477.647 200.666,472.665 L 80,352 L 0,352 L 0,160 L 80,160 L 200.666,39.334 C 205.649,34.351 210.28,31.959 214.082,31.959 ZM 256,224L 512,224L 512,288L 256,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume-increase, speaker, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 214.082,31.959 C 220.070,31.959 224,37.898 224.001,49 L 224.001,463 C 224.001,474.103 220.073,480.041 214.083,480.041 C 210.281,480.041 205.649,477.647 200.666,472.665 L 80,352 L 0,352 L 0,160 L 80,160 L 200.666,39.334 C 205.649,34.351 210.28,31.959 214.082,31.959 ZM 512,288 L 416,288 L 416,384 L 352,384 L 352,288 L 256,288 L 256,224 L 352,224 L 352,128 L 416,128 L 416,224 L 512,224 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume-mute, speaker, media control, audio, mute\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 200.666,39.334 C 213.5,26.5 224,30.85 224,49 L 224,463 C 224,481.15 213.5,485.499 200.666,472.665 L 80,352 L 0,352 L 0,160 L 80,160 L 200.666,39.334 ZM 480,309.574 L 480,352 L 437.574,352 L 384,298.426 L 330.426,352 L 288,352 L 288,309.574 L 341.574,256 L 288,202.426 L 288,160 L 330.426,160 L 384,213.574 L 437.574,160 L 480,160 L 480,202.426 L 426.426,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume-mute, speaker, media control, audio, mute\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 200.666,39.334 C 213.5,26.5 224,30.85 224,49 L 224,463 C 224,481.15 213.5,485.499 200.666,472.665 L 80,352 L 0,352 L 0,160 L 80,160 L 200.666,39.334 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume-low, speaker, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 274.51,370.51c-6.143,0-12.284-2.343-16.971-7.029c-9.373-9.373-9.373-24.568,0-33.941\n\t\tc 40.55-40.55, 40.55-106.529,0-147.078c-9.373-9.373-9.373-24.569,0-33.941c 9.373-9.372, 24.568-9.372, 33.941,0\n\t\tc 59.265,59.265, 59.265,155.696,0,214.961C 286.794,368.167, 280.652,370.51, 274.51,370.51zM 200.666,39.334 C 213.5,26.5 224,30.85 224,49 L 224,463 C 224,481.15 213.5,485.499 200.666,472.665 L 80,352 L 0,352 L 0,160 L 80,160 L 200.666,39.334 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"volume-medium, speaker, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 359.765,415.765c-6.143,0-12.284-2.343-16.971-7.029c-9.372-9.372-9.372-24.568,0-33.941\n\t\tc 65.503-65.503, 65.503-172.085,0-237.588c-9.372-9.373-9.372-24.569,0-33.941c 9.372-9.371, 24.569-9.372, 33.941,0\n\t\tC 417.532,144.062, 440,198.304, 440,256c0,57.695-22.468,111.938-63.265,152.735C 372.049,413.422, 365.907,415.765, 359.765,415.765zM 274.51,370.51c-6.143,0-12.284-2.343-16.971-7.029c-9.373-9.373-9.373-24.568,0-33.941\n\t\tc 40.55-40.55, 40.55-106.529,0-147.078c-9.373-9.373-9.373-24.569,0-33.941c 9.373-9.372, 24.568-9.372, 33.941,0\n\t\tc 59.265,59.265, 59.265,155.696,0,214.961C 286.794,368.167, 280.652,370.51, 274.51,370.51zM 200.666,39.334 C 213.5,26.5 224,30.85 224,49 L 224,463 C 224,481.15 213.5,485.499 200.666,472.665 L 80,352 L 0,352 L 0,160 L 80,160 L 200.666,39.334 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"544\" height=\"512\" viewBox=\"0 0 544 512\" data-tags=\"volume-high, speaker, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 445.020,461.020c-6.143,0-12.284-2.343-16.971-7.029c-9.372-9.373-9.372-24.568,0-33.941\n\t\tC 471.868,376.229, 496.001,317.97, 496.001,256c0-61.969-24.133-120.229-67.952-164.049c-9.372-9.373-9.372-24.569,0-33.941\n\t\tc 9.372-9.372, 24.569-9.372, 33.941,0c 52.885,52.886, 82.011,123.2, 82.011,197.99c0,74.791-29.126,145.104-82.011,197.99\n\t\tC 457.304,458.677, 451.162,461.020, 445.020,461.020zM 359.765,415.765c-6.143,0-12.284-2.343-16.971-7.029c-9.372-9.372-9.372-24.568,0-33.941\n\t\tc 65.503-65.503, 65.503-172.085,0-237.588c-9.372-9.373-9.372-24.569,0-33.941c 9.372-9.371, 24.569-9.372, 33.941,0\n\t\tC 417.532,144.062, 440,198.304, 440,256c0,57.695-22.468,111.938-63.265,152.735C 372.049,413.422, 365.907,415.765, 359.765,415.765zM 274.51,370.51c-6.143,0-12.284-2.343-16.971-7.029c-9.373-9.373-9.373-24.568,0-33.941\n\t\tc 40.55-40.55, 40.55-106.529,0-147.078c-9.373-9.373-9.373-24.569,0-33.941c 9.373-9.372, 24.568-9.372, 33.941,0\n\t\tc 59.265,59.265, 59.265,155.696,0,214.961C 286.794,368.167, 280.652,370.51, 274.51,370.51zM 200.666,39.334 C 213.5,26.5 224,30.85 224,49 L 224,463 C 224,481.15 213.5,485.499 200.666,472.665 L 80,352 L 0,352 L 0,160 L 80,160 L 200.666,39.334 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"eject, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,384L 512,384L 512,448L0,448zM 256,64 L 512,320 L 0,320 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"next, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,64 L 384,448 L 320,448 L 320,272 L 160,432 L 160,80 L 320,240 L 320,64 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"previous, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,448 L 128,64 L 192,64 L 192,240 L 352,80 L 352,432 L 192,272 L 192,448 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"last, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,64 L 448,448 L 384,448 L 384,272 L 224,432 L 224,272 L 64,432 L 64,80 L 224,240 L 224,80 L 384,240 L 384,64 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"first, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,448 L 64,64 L 128,64 L 128,240 L 288,80 L 288,240 L 448,80 L 448,432 L 288,272 L 288,432 L 128,272 L 128,448 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"forward, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,432 L 256,272 L 96,432 L 96,80 L 256,240 L 256,80 L 432,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"backward, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,80 L 288,240 L 448,80 L 448,432 L 288,272 L 288,432 L 112,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stop, media control, audio, square\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,64L 448,64L 448,448L 64,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pause, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,64L 224,64L 224,448L 64,448zM 288,64L 448,64L 448,448L 288,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"play, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,64L 416,256L 96,448 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"forward, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,464\n\t\tc-114.875,0-208-93.125-208-208S 141.125,48, 256,48s 208,93.125, 208,208S 370.875,464, 256,464zM 160,176L 272,256L 160,336 zM 288,176L 400,256L 288,336 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"backward, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0S0,114.615,0,256S 114.615,512, 256,512z M 256,48\n\t\tc 114.875,0, 208,93.125, 208,208s-93.125,208-208,208S 48,370.875, 48,256S 141.125,48, 256,48zM 352,336L 240,256L 352,176 zM 224,336L 112,256L 224,176 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stop, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,464\n\t\tc-114.875,0-208-93.125-208-208S 141.125,48, 256,48s 208,93.125, 208,208S 370.875,464, 256,464zM 160,160L 352,160L 352,352L 160,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pause, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,464\n\t\tc-114.875,0-208-93.125-208-208S 141.125,48, 256,48s 208,93.125, 208,208S 370.875,464, 256,464zM 160,160L 224,160L 224,352L 160,352zM 288,160L 352,160L 352,352L 288,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"play, media control, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,464\n\t\tc-114.875,0-208-93.125-208-208S 141.125,48, 256,48s 208,93.125, 208,208S 370.875,464, 256,464zM 192,144L 384,256L 192,368 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"exit, sign out, log out, quit, close, logout\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,32l0,224 l0,224 l 256,0 L 512,32 L 256,32 z M 480,448L 288,448 l 128-128L 416,96 L 288,64l 192,0 L 480,448 zM 128,224L0,224L0,288L 128,288L 128,352L 256,256L 128,160 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"exit, sign out, log out, quit, close, logout\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,320 L 384,256 L 224,256 L 224,192 L 384,192 L 384,128 L 480,224 ZM 352,288 L 352,416 L 192,416 L 192,512 L 0,416 L 0,0 L 352,0 L 352,160 L 320,160 L 320,32 L 64,32 L 192,96 L 192,384 L 320,384 L 320,288 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"enter, sign in, log in, login\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,256 L 32,256 L 32,192 L 192,192 L 192,128 L 288,224 L 192,320 ZM 512,0 L 512,416 L 320,512 L 320,416 L 128,416 L 128,288 L 160,288 L 160,384 L 320,384 L 320,96 L 448,32 L 160,32 L 160,160 L 128,160 L 128,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"exit, sign out, log out, quit, close, logout\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,288 L 160,288 L 160,224 L 384,224 L 384,128 L 512,256 L 384,384 ZM 320,320 L 320,512 L 0,512 L 0,0 L 320,0 L 320,192 L 288,192 L 288,64 L 128,64 L 128,448 L 288,448 L 288,320 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"enter, sign in, log in, login\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,0 L 480,512 L 96,512 L 96,352 L 128,352 L 128,448 L 352,448 L 352,64 L 128,64 L 128,160 L 96,160 L 96,0 ZM 192,288 L 0,288 L 0,224 L 192,224 L 192,128 L 320,256 L 192,384 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"exit, sign out, log out, quit, close, logout\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 496,272L 352,128L 352,224L 160,224L 160,320L 352,320L 352,416 \tzM 416,96L 416,64 c0-17.6-14.4-32-32-32L 32,32 C 14.4,32,0,46.4,0,64l0,416 c0,17.6, 14.399,32, 32,32l 352,0 c 17.6,0, 32-14.4, 32-32l0-32 L 64,448 L 64,96 \n\t\tL 416,96 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"enter, sign in, log in, login\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,32L 96,32 c-17.6,0-32,14.4-32,32l0,128 l 64,0 L 128,96 l 288,0 l0,352 L 128,448 l0-96 L 64,352 l0,128 c0,17.6, 14.399,32, 32,32l 352,0 c 17.6,0, 32-14.4, 32-32L 480,64 \n\t\tC 480,46.4, 465.6,32, 448,32zM 192,416L 336,272L 192,128L 192,224L0,224L0,320L 192,320 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"plus, add, sum\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,160L 352,160L 352,0L 160,0L 160,160L0,160L0,352L 160,352L 160,512L 352,512L 352,352L 512,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"minus, minimize, subtract\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,160L 512,160L 512,352L0,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"plus, add, sum\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 496,192L 320,192 L 320,16 c0-8.836-7.164-16-16-16l-96,0 c-8.836,0-16,7.164-16,16l0,176 L 16,192 c-8.836,0-16,7.164-16,16l0,96 \n\tc0,8.836, 7.164,16, 16,16l 176,0 l0,176 c0,8.836, 7.164,16, 16,16l 96,0 c 8.836,0, 16-7.164, 16-16L 320,320 l 176,0 c 8.836,0, 16-7.164, 16-16l0-96 \n\tC 512,199.164, 504.836,192, 496,192z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"minus, minimize, subtract\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,208l0,96 c0,8.836, 7.164,16, 16,16l 480,0 c 8.836,0, 16-7.164, 16-16l0-96 c0-8.836-7.164-16-16-16L 16,192 C 7.164,192,0,199.164,0,208z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spell-check, correct\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,128l 64,0 l0,96 l 32,0 L 160,32 c0-17.6-14.4-32-32-32L 64,0 C 46.4,0, 32,14.4, 32,32l0,192 l 32,0 L 64,128 z M 64,32l 64,0 l0,64 L 64,96 L 64,32 z M 480,32L 480,0 l-96,0 \n\tc-17.601,0-32,14.4-32,32l0,160 c0,17.6, 14.399,32, 32,32l 96,0 l0-32 l-96,0 L 384,32 L 480,32 z M 320,80L 320,32 c0-17.6-14.4-32-32-32l-96,0 l0,224 l 96,0 \n\tc 17.6,0, 32-14.4, 32-32l0-48 c0-17.6-4.4-32-22-32C 315.6,112, 320,97.6, 320,80z M 288,192l-64,0 l0-64 l 64,0 L 288,192 z M 288,96l-64,0 L 224,32 l 64,0 L 288,96 zM 416,288 L 208,512 L 96,368 L 137,333 L 208,407 L 384,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"checkmark, tick, correct, accept, ok\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 438.975,107.787 L 214.724,301.201 L 195.974,317.373 L 176.042,302.638 L 74.423,227.513 L 52.682,248.944 L 194.835,400.742 L 458.905,127.432 L 438.975,107.787 Z M 440.692,56.124 L 440.692,56.124 L 465.651,80.723 L 485.581,100.368 L 512.375,126.779 L 486.233,153.836 L 222.164,427.147 L 194.406,455.876 L 167.099,426.717 L 24.946,274.919 L -0.372,247.883 L 26.006,221.882 L 47.748,200.451 L 70.887,177.642 L 97.013,196.957 L 194.148,268.768 L 414.156,79.012 L 440.692,56.124 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"checkmark, tick, correct, accept, ok\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 491.529,32c-167.25,126.583-327.651,295.9-327.651,295.9L 48.288,224L0,273.189\n\t\t\tC 47.508,317.84, 157.581,435.788, 194.816,480C 299.611,304.91, 408.555,174.332, 512,54.923L 491.529,32z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"checkmark, tick, correct, accept, ok\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 198.717,458.848l-198.934-195.8l 98.689-97.135l 100.245,98.666l 214.81-211.426l 98.689,97.135L 198.717,458.848z\n\t\t M 53.956,263.048l 144.762,142.481l 259.328-255.241l-44.518-43.816l-214.81,211.426L 98.473,219.231L 53.956,263.048z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"checkmark, tick, correct, accept, ok\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 432,64L 192,304L 80,192L0,272L 192,464L 512,144 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"close, cancel, quit, remove, cross, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 286.745,180 L 278.745,188 L 233.255,188 L 225.254,180 ZM 310.744,156 L 201.254,156 L 193.254,148 L 318.744,148 ZM 294.745,172 L 217.254,172 L 209.254,164 L 302.744,164 ZM 326.744,140 L 185.254,140 L 177.254,132 L 334.744,132 ZM 249.255,204 L 241.255,196 L 270.745,196 L 262.745,204 ZM 241.255,316 L 249.255,308 L 262.745,308 L 270.745,316 ZM 209.254,348 L 217.254,340 L 294.745,340 L 302.744,348 ZM 185.254,372 L 326.744,372 L 334.744,380 L 177.254,380 ZM 201.254,356 L 310.744,356 L 318.744,364 L 193.254,364 ZM 233.255,324 L 278.745,324 L 286.745,332 L 225.254,332 ZM 256,32C 132.289,32, 32,132.288, 32,256s 100.289,224, 224,224c 123.712,0, 224-100.288, 224-224S 379.712,32, 256,32z M 448,256\n\t\tc0,1.336-0.021,2.668-0.049,4L 305.255,260 l 8,8l 134.364,0 c-0.164,2.678-0.378,5.345-0.65,8L 321.255,276 l 8,8L 445.98,284 \n\t\tc-0.389,2.682-0.843,5.347-1.343,8L 337.255,292 l 8.001,8l 97.694,0 c-0.626,2.684-1.303,5.353-2.043,8l-87.651,0 l 8,8l 77.226,0 \n\t\tc-0.882,2.689-1.828,5.355-2.828,8l-66.397,0 l 8,8l 55.16,0 c-1.161,2.694-2.386,5.361-3.671,8l-43.489,0 l 5.372,5.372L 388,348l 36.609,0 \n\t\tc-1.479,2.701-3.023,5.368-4.636,8L 380,356 l-8,8l 42.796,0 c-1.852,2.71-3.776,5.377-5.773,8L 364,372 l-8,8l 46.591,0 \n\t\tc-2.31,2.721-4.694,5.392-7.167,8L 348,388 l-2.628,2.628L 342.744,388l-173.49,0 l-2.627,2.627L 164,388l-47.423,0 \n\t\tc-2.473-2.608-4.858-5.279-7.167-8L 156,380 l-8-8l-45.022,0 c-1.997-2.623-3.922-5.29-5.773-8L 140,364 l-8-8L 92.026,356 \n\t\tc-1.612-2.632-3.157-5.299-4.636-8L 124,348 l-2.628-2.628l 5.372-5.372L 83.255,340 c-1.286-2.639-2.51-5.306-3.671-8l 55.16,0 l 8-8L 76.347,324 \n\t\tc-1-2.645-1.947-5.311-2.828-8l 77.226,0 l 8-8L 71.093,308 c-0.74-2.647-1.417-5.316-2.043-8l 97.695,0 l 8-8L 67.362,292 \n\t\tc-0.5-2.653-0.954-5.318-1.343-8l 116.726,0 l 8-8L 65.032,276 c-0.273-2.655-0.487-5.322-0.651-8l 134.364,0 l 8-8L 64.049,260 \n\t\tc-0.027-1.332-0.049-2.664-0.049-4s 0.021-2.668, 0.049-4l 142.696,0 l-8-8L 64.381,244 c 0.164-2.677, 0.377-5.345, 0.651-8l 125.713,0 l-8-8L 66.019,228 \n\t\tc 0.39-2.682, 0.843-5.347, 1.343-8l 107.383,0 l-8-8L 69.049,212 c 0.626-2.684, 1.303-5.352, 2.043-8l 87.653,0 l-8-8L 73.519,196 \n\t\tc 0.881-2.689, 1.829-5.355, 2.829-8l 66.399,0 l-8-8L 79.584,180 c 1.162-2.694, 2.386-5.361, 3.671-8l 43.491,0 l-5.373-5.373L 124,164L 87.391,164 \n\t\tc 1.479-2.701, 3.024-5.368, 4.636-8L 132,156 l 8-8L 97.205,148 c 1.851-2.71, 3.776-5.377, 5.773-8L 148,140 l 8-8l-46.59,0 c 2.309-2.721, 4.694-5.392, 7.167-8\n\t\tL 164,124 l 2.627-2.627l 2.627,2.627l 173.49,0 l 2.628-2.628L 348,124l 47.424,0 c 2.473,2.608, 4.857,5.279, 7.167,8L 356,132 l 8,8l 45.021,0 \n\t\tc 1.997,2.623, 3.923,5.29, 5.773,8l-42.794,0 l 8,8l 39.973,0 c 1.612,2.632, 3.157,5.299, 4.636,8l-36.608,0 l 2.627,2.627L 385.255,172l 43.489,0 \n\t\tc 1.286,2.639, 2.511,5.306, 3.672,8l-55.161,0 l-8,8l 66.398,0 c 1,2.645, 1.946,5.311, 2.828,8l-77.227,0 l-8,8l 87.652,0 \n\t\tc 0.74,2.648, 1.417,5.316, 2.043,8l-97.695,0 l-8,8l 107.383,0 c 0.5,2.653, 0.954,5.318, 1.343,8L 329.255,228 l-8,8l 125.714,0 \n\t\tc 0.272,2.655, 0.486,5.323, 0.65,8L 313.255,244 l-8,8l 142.696,0 C 447.979,253.332, 448,254.664, 448,256z M 188.934,436\n\t\tc-6.289-2.34-12.45-5.005-18.459-8l 171.050,0 c-6.010,2.995-12.171,5.66-18.459,8L 188.934,436 z M 295.231,444\n\t\tc-12.767,2.637-25.894,4-39.231,4s-26.465-1.363-39.231-4L 295.231,444 z M 156.042,420c-4.096-2.507-8.106-5.176-12.024-8l 223.963,0 \n\t\tc-3.917,2.824-7.927,5.493-12.023,8L 156.042,420 z M 133.674,404c-3.088-2.562-6.106-5.23-9.053-8L 387.38,396 \n\t\tc-2.947,2.77-5.965,5.438-9.054,8L 133.674,404 z M 323.066,76c 6.288,2.339, 12.449,5.005, 18.459,8l-171.050,0 \n\t\tc 6.009-2.995, 12.17-5.661, 18.459-8L 323.066,76 z M 216.769,68c 12.767-2.637, 25.894-4, 39.231-4s 26.465,1.363, 39.231,4L 216.769,68 z\n\t\t M 355.958,92c 4.097,2.507, 8.106,5.175, 12.023,8L 144.019,100 c 3.918-2.825, 7.928-5.493, 12.024-8L 355.958,92 z M 378.326,108\n\t\tc 3.089,2.562, 6.106,5.23, 9.054,8L 124.621,116 c 2.947-2.77, 5.965-5.438, 9.053-8L 378.326,108 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"close, cancel, quit, remove, cross\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 380.628,335.372 L 335.372,380.628 L 256,301.255 L 176.627,380.627 L 131.372,335.372 L 210.745,256 L 131.373,176.627 L 176.627,131.373 L 256,210.745 L 335.372,131.372 L 380.628,176.627 L 301.255,256 L 380.628,335.372 ZM 256,74 C 207.386,74 161.682,92.931 127.307,127.307 C 92.931,161.682 74,207.386 74,256 C 74,304.614 92.932,350.318 127.307,384.693 C 161.682,419.068 207.386,438 256,438 C 304.614,438 350.318,419.068 384.693,384.693 C 419.068,350.318 438,304.614 438,256 C 438,207.386 419.068,161.682 384.693,127.307 C 350.318,92.931 304.614,74 256,74 Z M 256,32 L 256,32 C 379.712,32 480,132.288 480,256 C 480,379.712 379.712,480 256,480 C 132.289,480 32,379.712 32,256 C 32,132.288 132.289,32 256,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"close, cancel, quit, remove, cross\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,32C 132.289,32, 32,132.288, 32,256s 100.289,224, 224,224c 123.712,0, 224-100.288, 224-224S 379.712,32, 256,32z\n\t M 390.628,345.372l-45.256,45.256L 256,301.255l-89.373,89.372l-45.255-45.255L 210.745,256l-89.372-89.373l 45.254-45.254L 256,210.745\n\tl 89.372-89.373l 45.256,45.255L 301.255,256L 390.628,345.372z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"close, cancel, quit, remove, cross\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 390.628,345.372 L 345.372,390.628 L 256,301.255 L 166.627,390.627 L 121.372,345.372 L 210.745,256 L 121.373,166.627 L 166.627,121.373 L 256,210.745 L 345.372,121.372 L 390.628,166.627 L 301.255,256 L 390.628,345.372 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"close, cancel, quit, remove, cross\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 507.331,411.33c-0.002-0.002-0.004-0.004-0.006-0.005L 352.003,256l 155.322-155.325c 0.002-0.002, 0.004-0.003, 0.006-0.005\n\t\tc 1.672-1.673, 2.881-3.627, 3.656-5.708c 2.123-5.688, 0.912-12.341-3.662-16.915L 433.952,4.674c-4.574-4.573-11.225-5.783-16.914-3.66\n\t\tc-2.080,0.775-4.035,1.984-5.709,3.655c0,0.002-0.002,0.003-0.004,0.005L 256.001,160L 100.677,4.675\n\t\tc-0.002-0.002-0.003-0.003-0.005-0.005c-1.673-1.671-3.627-2.88-5.707-3.655c-5.69-2.124-12.341-0.913-16.915,3.66L 4.676,78.049\n\t\tc-4.574,4.574-5.784,11.226-3.661,16.914c 0.776,2.080, 1.985,4.036, 3.656,5.708c 0.002,0.001, 0.003,0.003, 0.005,0.005L 160.001,256\n\t\tL 4.676,411.326c-0.001,0.002-0.003,0.003-0.004,0.005c-1.671,1.673-2.88,3.627-3.657,5.707c-2.124,5.688-0.913,12.341, 3.661,16.915\n\t\tl 73.374,73.373c 4.575,4.574, 11.226,5.784, 16.915,3.661c 2.080-0.776, 4.035-1.985, 5.708-3.656c 0.001-0.002, 0.003-0.003, 0.005-0.005\n\t\tl 155.324-155.325l 155.324,155.325c 0.002,0.001, 0.004,0.003, 0.006,0.004c 1.674,1.672, 3.627,2.881, 5.707,3.657\n\t\tc 5.689,2.123, 12.342,0.913, 16.914-3.661l 73.373-73.374c 4.574-4.574, 5.785-11.227, 3.662-16.915\n\t\tC 510.212,414.957, 509.003,413.003, 507.331,411.33z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spam, notice, notification, exclamation\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,368M 368,0L 144,0 L0,144l0,224 l 144,144l 224,0 l 144-144L 512,144 L 368,0z M 288,416l-64,0 l0-64 l 64,0 L 288,416 z M 288,288l-64,0 L 224,96 l 64,0 L 288,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cancel, close, remove, delete\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 368,0L 144,0 L0,144l0,224 l 144,144l 224,0 l 144-144L 512,144 L 368,0z M 392.897,368.006l-24.892,24.891c-6.846,6.845-18.046,6.845-24.89,0\n\tL 256,305.779l-87.115,87.117c-6.845,6.844-18.046,6.844-24.89,0l-24.891-24.892c-6.845-6.846-6.845-18.046,0-24.89L 206.22,256\n\tl-87.116-87.115c-6.845-6.845-6.845-18.046,0-24.89l 24.891-24.891c 6.844-6.845, 18.045-6.845, 24.89,0L 256,206.22l 87.116-87.116\n\tc 6.844-6.845, 18.044-6.845, 24.89,0l 24.891,24.891c 6.845,6.844, 6.845,18.045,0,24.89L 305.781,256l 87.116,87.116\n\tC 399.741,349.96, 399.741,361.16, 392.897,368.006zM 512,368\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"checkmark-circle, tick, correct\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 208,416L 102,278l 47-49l 59,75\n\tl 185-151l 23,23L 208,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"checkmark-circle, tick, correct\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,448\n\t\tc-106.039,0-192-85.961-192-192c0-106.039, 85.961-192, 192-192c 106.039,0, 192,85.961, 192,192C 448,362.039, 362.039,448, 256,448zM 208,416L 102,278L 149,229L 208,304L 393,153L 416,176 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cancel-circle, close, remove, delete\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 384,173.255L 301.256,256\n\tL 384,338.744L 384,384 l-45.256,0 L 256,301.256L 173.255,384L 128,384 l0-45.256 L 210.745,256L 128,173.255L 128,128 l 45.255,0 L 256,210.745L 338.744,128L 384,128 \n\tL 384,173.255 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cancel-circle, close, remove, delete\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,448\n\tc-106.039,0-192-85.961-192-192c0-106.039, 85.961-192, 192-192c 106.039,0, 192,85.961, 192,192C 448,362.039, 362.039,448, 256,448zM 352,306.744 L 352,352 L 306.744,352 L 256,301.256 L 205.255,352 L 160,352 L 160,306.744 L 210.745,256 L 160,205.255 L 160,160 L 205.255,160 L 256,210.745 L 306.744,160 L 352,160 L 352,205.255 L 301.256,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"blocked, cancel, stop, forbidden, denied, banned\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,256c0,141.385, 114.615,256, 256,256c 141.386,0, 256-114.615, 256-256S 397.386,0, 256,0C 114.615,0,0,114.615,0,256z M 448,256\n\tc0,36.618-10.256,70.84-28.044,99.956L 156.045,92.044C 185.16,74.255, 219.382,64, 256,64C 362.038,64, 448,149.961, 448,256z M 64,256\n\tc0-36.618, 10.256-70.839, 28.045-99.956l 263.911,263.912C 326.839,437.745, 292.618,448, 256,448C 149.962,448, 64,362.039, 64,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"info, information\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 224,96l 64,0 l0,64 l-64,0 L 224,96 z\n\t M 320,416L 192,416 l0-32 l 32,0 L 224,256 l-32,0 l0-32 l 96,0 l0,160 l 32,0 L 320,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"info, information\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,464\n\t\tc-114.875,0-208-93.125-208-208S 141.125,48, 256,48s 208,93.125, 208,208S 370.875,464, 256,464zM 224,128L 288,128L 288,192L 224,192zM 320,384L 192,384L 192,352L 224,352L 224,256L 192,256L 192,224L 288,224L 288,352L 320,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"minus-circle, minus, remove, delete, subtract\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 416,288L 96,288 l0-64 l 320,0 L 416,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"minus-circle, minus, remove, delete, subtract\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,448\n\tc-106.039,0-192-85.961-192-192c0-106.039, 85.961-192, 192-192c 106.039,0, 192,85.961, 192,192C 448,362.039, 362.039,448, 256,448zM 128,224L 384,224L 384,288L 128,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"plus-circle, plus, add, sum\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 288,288l0,128 l-64,0 L 224,288 L 96,288 l0-64 \n\tl 128,0 L 224,96 l 64,0 l0,128 l 128,0 l0,64 L 288,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"plus-circle, plus, add, sum\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,448\n\tc-106.039,0-192-85.961-192-192c0-106.039, 85.961-192, 192-192c 106.039,0, 192,85.961, 192,192C 448,362.039, 362.039,448, 256,448zM 384,288 L 288,288 L 288,384 L 224,384 L 224,288 L 128,288 L 128,224 L 224,224 L 224,128 L 288,128 L 288,224 L 384,224 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"question, help, support\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,416L 288,416L 288,512L 192,512zM 400,32 C 426.51,32 448,53.49 448,80 L 448,224 L 288,320 L 288,384 L 192,384 L 192,288 L 352,192 L 352,128 L 96,128 L 96,32 L 400,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"question, help, support\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.613,256, 256,256c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0z M 288,416l-64,0 l0-64 l 64,0 \n\tL 288,416 z M 384,224c0,35.29-28.71,64-64,64l-31.942,0 c-0.020,0.017-0.041,0.038-0.058,0.058L 288,320 l-64,0 l0-32 c0-35.29, 28.71-64, 64-64l 31.942,0 \n\tc 0.020-0.017, 0.041-0.038, 0.058-0.057l0-63.885 c-0.017-0.020-0.037-0.041-0.058-0.058L 160,160 L 160,96 l 160,0 c 35.29,0, 64,28.71, 64,64L 384,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"question, help, support\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,96 C 355.29,96 384,124.71 384,160 L 384,224 C 384,259.29 355.29,288 320,288 L 288.059,288 C 288.038,288.018 288.018,288.038 288,288.059 L 288,320 L 224,320 L 224,288 C 224,252.71 252.71,224 288,224 L 319.942,224 C 319.962,223.984 319.983,223.963 320,223.943 L 320,160.058 C 319.983,160.038 319.963,160.017 319.942,160 L 160,160 L 160,96 L 320,96 ZM 224,352L 288,352L 288,416L 224,416zM 256,48 C 200.441,48 148.208,69.636 108.922,108.922 C 69.636,148.208 48,200.441 48,256 C 48,311.559 69.636,363.792 108.922,403.078 C 148.208,442.364 200.441,464 256,464 C 311.559,464 363.792,442.364 403.078,403.078 C 442.364,363.792 464,311.559 464,256 C 464,200.441 442.364,148.208 403.078,108.922 C 363.792,69.636 311.559,48 256,48 Z M 256,0 L 256,0 C 397.385,0 512,114.615 512,256 C 512,397.385 397.385,512 256,512 C 114.615,512 0,397.385 0,256 C 0,114.615 114.615,0 256,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"question, help, support\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.613,256, 256,256c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0z M 288,416l-64,0 l0-64 l 64,0 \n\tL 288,416 z M 384,256l-96,64l-64,0 l0-32 l 96-64l0-32 L 160,192 l0-64 l 192,0 c 17.673,0, 32,14.327, 32,32L 384,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"question, help, support\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,352L 288,352L 288,416L 224,416zM 352,128 C 369.673,128 384,142.327 384,160 L 384,256 L 288,320 L 224,320 L 224,288 L 320,224 L 320,192 L 160,192 L 160,128 L 352,128 ZM 256,48 C 200.441,48 148.208,69.636 108.922,108.922 C 69.636,148.208 48,200.441 48,256 C 48,311.559 69.636,363.792 108.922,403.078 C 148.208,442.364 200.441,464 256,464 C 311.559,464 363.792,442.364 403.078,403.078 C 442.364,363.792 464,311.559 464,256 C 464,200.441 442.364,148.208 403.078,108.922 C 363.792,69.636 311.559,48 256,48 Z M 256,0 L 256,0 C 397.385,0 512,114.615 512,256 C 512,397.385 397.385,512 256,512 C 114.615,512 0,397.385 0,256 C 0,114.615 114.615,0 256,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"notification, warning, notice, note, exclamation\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 288,416l-64,0 l0-64 l 64,0 L 288,416 z\n\t M 288,288l-64,0 L 224,96 l 64,0 L 288,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"notification, warning, notice, note, exclamation\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,48 C 200.441,48 148.208,69.636 108.922,108.922 C 69.636,148.208 48,200.441 48,256 C 48,311.559 69.636,363.792 108.922,403.078 C 148.208,442.364 200.441,464 256,464 C 311.559,464 363.792,442.364 403.078,403.078 C 442.364,363.792 464,311.559 464,256 C 464,200.441 442.364,148.208 403.078,108.922 C 363.792,69.636 311.559,48 256,48 Z M 256,0 L 256,0 C 397.385,0 512,114.615 512,256 C 512,397.385 397.385,512 256,512 C 114.615,512 0,397.385 0,256 C 0,114.615 114.615,0 256,0 ZM 224,352L 288,352L 288,416L 224,416zM 224,96L 288,96L 288,288L 224,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"warning, sign\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 504.978,457.88L 286.441,22.324C 278.070,7.441, 267.035,0, 256,0s-22.070,7.441-30.442,22.324L 7.021,457.88\n\tC-9.722,487.646, 4.521,512, 38.673,512l 434.654,0 C 507.478,512, 521.723,487.646, 504.978,457.88z M 256,448c-17.673,0-32-14.327-32-32\n\tc0-17.674, 14.327-32, 32-32c 17.674,0, 32,14.326, 32,32C 288,433.673, 273.674,448, 256,448z M 278,352l-44,0 l-10-128\n\tc0-17.673, 14.327-32, 32-32s 32,14.327, 32,32L 278,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"warning, sign\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,79.362 L 83.583,448 L 428.417,448 L 256,79.362 Z M 256,0 L 256,0 C 267.035,0 278.070,7.441 286.442,22.324 L 504.978,457.88 C 521.723,487.646 507.478,512 473.327,512 L 38.673,512 C 4.521,512 -9.722,487.646 7.021,457.88 L 225.558,22.324 C 233.93,7.441 244.965,0 256,0 ZM 224,384A32,32 2520 1 1 288,384A32,32 2520 1 1 224,384zM 256,192 C 273.673,192 288,206.327 288,224 L 278,320 L 234,320 L 224,224 C 224,206.327 238.327,192 256,192 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"resize, dots\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,32L 480,32L 480,96L 416,96zM 416,160L 480,160L 480,224L 416,224zM 288,160L 352,160L 352,224L 288,224zM 416,288L 480,288L 480,352L 416,352zM 288,288L 352,288L 352,352L 288,352zM 160,288L 224,288L 224,352L 160,352zM 288,416L 352,416L 352,480L 288,480zM 160,416L 224,416L 224,480L 160,480zM 32,416L 96,416L 96,480L 32,480zM 416,416L 480,416L 480,480L 416,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"resize, dots\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,128L 416,128L 416,160L 384,160zM 320,192L 352,192L 352,224L 320,224zM 320,256L 352,256L 352,288L 320,288zM 320,320L 352,320L 352,352L 320,352zM 256,256L 288,256L 288,288L 256,288zM 256,320L 288,320L 288,352L 256,352zM 192,320L 224,320L 224,352L 192,352zM 384,192L 416,192L 416,224L 384,224zM 384,256L 416,256L 416,288L 384,288zM 384,320L 416,320L 416,352L 384,352zM 384,384L 416,384L 416,416L 384,416zM 320,384L 352,384L 352,416L 320,416zM 256,384L 288,384L 288,416L 256,416zM 192,384L 224,384L 224,416L 192,416zM 128,384L 160,384L 160,416L 128,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"move, drag, arrows\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,256L 384,160L 384,224L 288,224L 288,128L 352,128L 256,0L 160,128L 224,128L 224,224L 128,224L 128,160L0,256L 128,352L 128,288L 224,288L 224,384L 160,384L 256,512L 352,384L 288,384L 288,288L 384,288L 384,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-play, files, paper, pages\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,32l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 L 512,32 L 160,32 z M 125.728,476.13\n\t\tL 35.87,162.759l 49.843-14.292l 43.922,312.522l 95.897-13.479L 125.728,476.13z M 154.316,428.235l-45.37-322.828L 160,98.233L 160,416 \n\t\tl 81.375,0 L 154.316,428.235z M 480,384L 192,384 L 192,64 l 288,0 L 480,384 zM 288,128L 448,224L 288,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-music, files, paper, pages\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,32l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 L 512,32 L 160,32 z M 125.728,476.13\n\t\tL 35.87,162.759l 49.843-14.292l 43.922,312.522l 95.897-13.479L 125.728,476.13z M 154.316,428.235l-45.37-322.828L 160,98.233L 160,416 \n\t\tl 81.375,0 L 154.316,428.235z M 480,384L 192,384 L 192,64 l 288,0 L 480,384 zM 272,352 C 245.49,352 224,330.51 224,304 C 224,277.49 245.49,256 272,256 C 277.611,256 282.994,256.972 288,258.742 L 288,128 L 448,96 L 448,272 C 448,298.51 426.51,320 400,320 C 373.49,320 352,298.51 352,272 C 352,245.491 373.49,224 400,224 C 405.611,224 410.994,224.972 416,226.742 L 416,166.4 L 320,185.6 L 320,304 C 320,330.51 298.51,352 272,352 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack, files, paper, pages, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,32l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 L 512,32 L 160,32 z M 125.728,476.13\n\t\tL 35.87,162.759l 49.843-14.292l 43.922,312.522l 95.897-13.478L 125.728,476.13z M 154.316,428.235l-45.37-322.828L 160,98.233L 160,416 \n\t\tl 81.375,0 L 154.316,428.235z M 480,384L 192,384 L 192,64 l 288,0 L 480,384 zM 224,228L 448,228L 448,236L 224,236zM 224,244L 448,244L 448,252L 224,252zM 224,276L 448,276L 448,284L 224,284zM 224,260L 448,260L 448,268L 224,268zM 224,292L 448,292L 448,300L 224,300zM 224,340L 448,340L 448,348L 224,348zM 224,308L 448,308L 448,316L 224,316zM 224,324L 448,324L 448,332L 224,332zM 224,148L 448,148L 448,156L 224,156zM 224,116L 448,116L 448,124L 224,124zM 224,132L 448,132L 448,140L 224,140zM 224,100L 448,100L 448,108L 224,108zM 224,212L 448,212L 448,220L 224,220zM 224,196L 448,196L 448,204L 224,204zM 224,164L 448,164L 448,172L 224,172zM 224,180L 448,180L 448,188L 224,188z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-user, files, paper, pages\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,32l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 L 512,32 L 160,32 z M 125.728,476.13\n\t\tL 35.87,162.759l 49.843-14.292l 43.922,312.522l 95.897-13.479L 125.728,476.13z M 154.316,428.235l-45.37-322.828L 160,98.233L 160,416 \n\t\tl 81.375,0 L 154.316,428.235z M 480,384L 192,384 L 192,64 l 288,0 L 480,384 zM 416,288 L 416,320 L 256,320 L 256,288 C 256,270.4 270.4,256 288,256 L 336,256 L 384,256 C 401.6,256 416,270.4 416,288 ZM 288,208A48,48 2520 1 1 384,208A48,48 2520 1 1 288,208z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-diamonds, files, paper, pages, cards, diamonds\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,32l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 L 512,32 L 160,32 z M 125.728,476.13\n\t\tL 35.87,162.759l 49.843-14.292l 43.922,312.522l 95.897-13.479L 125.728,476.13z M 154.316,428.235l-45.37-322.828L 160,98.233L 160,416 \n\t\tl 81.375,0 L 154.316,428.235z M 480,384L 192,384 L 192,64 l 288,0 L 480,384 zM 336,352 L 256,224 L 336,96 L 416,224 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-hearts, files, paper, pages, cards, hearts\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,32l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 L 512,32 L 160,32 z M 125.728,476.13\n\t\tL 35.87,162.759l 49.843-14.292l 43.922,312.522l 95.897-13.479L 125.728,476.13z M 154.316,428.235l-45.37-322.828L 160,98.233L 160,416 \n\t\tl 81.375,0 L 154.316,428.235z M 480,384L 192,384 L 192,64 l 288,0 L 480,384 zM 445.631,173.315 C 447.161,177.586 448,183.082 448,190 C 448,270 336,270 336,350 C 336,270 224,270 224,190 C 224,183.083 224.838,177.587 226.369,173.316 C 233.599,148.3 252.654,130 280,130 C 302.238,130 325.636,149.108 336,167.082 C 346.364,149.108 369.762,130 392,130 C 419.345,130 438.4,148.3 445.631,173.315 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-spades, files, paper, pages, cards, spades\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,32l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 L 512,32 L 160,32 z M 125.728,476.13\n\t\tL 35.87,162.759l 49.843-14.292l 43.922,312.522l 95.897-13.479L 125.728,476.13z M 154.316,428.235l-45.37-322.828L 160,98.233L 160,416 \n\t\tl 81.375,0 L 154.316,428.235z M 480,384L 192,384 L 192,64 l 288,0 L 480,384 zM 336,66 C 336,156.5 448,160 448,240 C 448,266.51 426.51,288 400,288 C 373.49,288 352,266.51 352,240 L 352,272 C 352,304 352,336 384,336 L 384,352 L 288,352 L 288,336 C 320,336 320,304 320,272 L 320,240 C 320,266.51 298.51,288 272,288 C 245.49,288 224,266.51 224,240 C 224,160 336,156.5 336,66 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-clubs, files, paper, pages, cards, clubs\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,32l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 L 512,32 L 160,32 z M 125.728,476.13\n\t\tL 35.87,162.759l 49.843-14.292l 43.922,312.522l 95.897-13.478L 125.728,476.13z M 154.316,428.235l-45.37-322.828L 160,98.233L 160,416 \n\t\tl 81.375,0 L 154.316,428.235z M 480,384L 192,384 L 192,64 l 288,0 L 480,384 zM 224,240A48,48 2520 1 1 320,240A48,48 2520 1 1 224,240zM 352,240A48,48 2520 1 1 448,240A48,48 2520 1 1 352,240zM 384,155 C 384,169.896 377.209,183.198 366.56,192 C 352,207.5 352,224 352,240 L 352,272 C 352,304 352,336 384,336 L 384,352 L 288,352 L 288,336 C 320,336 320,304 320,272 L 320,240 C 320,224 320,207.5 305.44,192 C 294.791,183.198 288,169.896 288,155 C 288,128.49 309.49,107 336,107 C 362.51,107 384,128.49 384,155 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-list, files, paper, pages\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,416L 512,32 L 160,32 l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 z M 192,64l 288,0 l0,320 \n\tL 192,384 L 192,64 z M 160,98.233L 160,416 l 81.375,0 l-87.058,12.235l-45.37-322.828L 160,98.233z M 125.728,476.13L 35.87,162.759l 49.843-14.292\n\tl 43.922,312.522l 95.897-13.478L 125.728,476.13zM 224,96L 448,96L 448,128L 224,128zM 224,160L 448,160L 448,192L 224,192zM 224,224L 448,224L 448,256L 224,256zM 224,288L 384,288L 384,320L 224,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-checkmark, files, paper, pages\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,32l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 L 512,32 L 160,32 z M 125.728,476.13\n\tL 35.87,162.759l 49.843-14.292l 43.922,312.522l 95.897-13.479L 125.728,476.13z M 154.316,428.235l-45.37-322.828L 160,98.233L 160,416 l 81.375,0 \n\tL 154.316,428.235z M 192,384L 192,64 l 288,0 l0,80 l-22.628-22.626L 320,242.745l-73.373-57.372l-29.254,29.255L 320,333.255l 160-175.364L 480,384 L 192,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-cancel, files, paper, pages\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,32l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 L 512,32 L 160,32 z M 125.728,476.13\n\tL 35.87,162.759l 49.843-14.292l 43.922,312.522l 95.897-13.479L 125.728,476.13z M 154.316,428.235l-45.37-322.828L 160,98.233L 160,416 l 81.375,0 \n\tL 154.316,428.235z M 480,384L 192,384 L 192,64 l 288,0 L 480,384 zM 416,286.059 L 416,320 L 382.059,320 L 336,273.941 L 289.941,320 L 256,320 L 256,286.059 L 302.059,240 L 256,193.941 L 256,160 L 289.941,160 L 336,206.059 L 382.059,160 L 416,160 L 416,193.941 L 369.941,240 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-up, files, paper, pages\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,416L 512,32 L 160,32 l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 z M 192,64l 288,0 l0,320 \n\tL 192,384 L 192,64 z M 160,98.233L 160,416 l 81.375,0 l-87.058,12.235l-45.37-322.828L 160,98.233z M 125.728,476.13L 35.87,162.759l 49.843-14.292\n\tl 43.922,312.522l 95.897-13.478L 125.728,476.13zM 208,224 L 336,96 L 464,224 L 384,224 L 384,320 L 288,320 L 288,224 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-down, files, paper, pages\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,416L 512,32 L 160,32 l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 z M 192,64l 288,0 l0,320 \n\tL 192,384 L 192,64 z M 160,98.233L 160,416 l 81.375,0 l-87.058,12.235l-45.37-322.828L 160,98.233z M 125.728,476.13L 35.87,162.759l 49.843-14.292\n\tl 43.922,312.522l 95.897-13.478L 125.728,476.13zM 464,224 L 336,352 L 208,224 L 288,224 L 288,128 L 384,128 L 384,224 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-picture, files, paper, pages\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,32l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 L 512,32 L 160,32 z M 125.728,476.13\n\t\tL 35.87,162.759l 49.843-14.292l 43.922,312.522l 95.897-13.478L 125.728,476.13z M 154.316,428.235l-45.37-322.828L 160,98.233L 160,416 \n\t\tl 81.375,0 L 154.316,428.235z M 480,384L 192,384 L 192,64 l 288,0 L 480,384 zM 320,352 L 224,352 L 256,224 L 288,224 L 362.667,298.667 L 384,256 L 416,256 L 448,352 ZM 352,160A32,32 2520 1 1 416,160A32,32 2520 1 1 352,160z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-star, files, paper, pages\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,32l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 L 512,32 L 160,32 z M 125.728,476.13\n\t\tL 35.87,162.759l 49.843-14.292l 43.922,312.522l 95.897-13.478L 125.728,476.13z M 154.316,428.235l-45.37-322.828L 160,98.233L 160,416 \n\t\tl 81.375,0 L 154.316,428.235z M 480,384L 192,384 L 192,64 l 288,0 L 480,384 zM 336,122.046L 358.89,192.495L 432.964,192.495L 373.037,236.034L 395.927,306.482L 336,262.942L 276.073,306.482L 298.963,236.034L 239.036,192.495L 313.11,192.495 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-minus, files, paper, pages\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,32l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 L 512,32 L 160,32 z M 125.728,476.13\n\t\tL 35.87,162.759l 49.843-14.292l 43.922,312.522l 95.897-13.478L 125.728,476.13z M 154.316,428.235l-45.37-322.828L 160,98.233L 160,416 \n\t\tl 81.375,0 L 154.316,428.235z M 480,384L 192,384 L 192,64 l 288,0 L 480,384 zM 256,224L 416,224L 416,256L 256,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-plus, files, paper, pages\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,32l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 L 512,32 L 160,32 z M 125.728,476.13\n\t\tL 35.87,162.759l 49.843-14.292l 43.922,312.522l 95.897-13.478L 125.728,476.13z M 154.316,428.235l-45.37-322.828L 160,98.233L 160,416 \n\t\tl 81.375,0 L 154.316,428.235z M 480,384L 192,384 L 192,64 l 288,0 L 480,384 zM 416,256 L 352,256 L 352,320 L 320,320 L 320,256 L 256,256 L 256,224 L 320,224 L 320,160 L 352,160 L 352,224 L 416,224 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack-empty, files, paper, pages\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,416L 512,32 L 160,32 l0,36.948 L 76.192,80.726l 5.444,38.74L0,142.875L 105.845,512l 326.033-93.488l 17.87-2.512L 512,416 z M 192,64l 288,0 l0,320 \n\tL 192,384 L 192,64 z M 160,98.233L 160,416 l 81.375,0 l-87.058,12.235l-45.37-322.828L 160,98.233z M 125.728,476.13L 35.87,162.759l 49.843-14.292\n\tl 43.922,312.522l 95.897-13.478L 125.728,476.13z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"hand, stop\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 470.667,201.334L 470.667,201.334c-12.445-12.445-32.811-12.445-45.255-0.001l-13.917,13.917\n\tC 389.493,237.252, 352,270.428, 352,224L 352,64 c0-17.6-14.4-32-32-32s-32,14.4-32,32l0,160 c0,8.837-7.164,16-16,16s-16-7.163-16-16L 256,32 \n\tc0-17.6-14.4-32-32-32c-17.6,0-32,14.4-32,32l0,192 c0,8.837-7.164,16-16,16s-16-7.163-16-16L 160,64 c0-17.6-14.4-32-32-32S 96,46.4, 96,64\n\tl0,160 c0,8.837-7.164,16-16,16s-16-7.163-16-16l0-96 c0-17.6-14.4-32-32-32S0,110.4,0,128l0,96 l0,64 c0,64, 32,224, 192,224\n\ts 188.627-175.373, 269.255-256l 9.412-9.412C 483.112,234.144, 483.112,213.778, 470.667,201.334z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pointer, touch, drag, finger, hand\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 386.597,176l-16,0 l-48-16l-16,0 l-48-16L 256,144 L 256,32 l-96,0 l0,259.808 L 103.494,224L0,224 l 115.293,185.921L 217.373,512l 176.516,0 L 448,403.777\n\tl0-207.31 L 386.597,176z M 416,396.223L 374.112,480L 230.628,480 l-89.921-89.921L 60.26,256l 28.247,0 L 192,384L 192,64 l 32,0 l0,224 l 32,0 L 256,176 l 32,10.667L 288,288 \n\tl 32,0 l0-96 l 32,10.667L 352,304 l 32,0 l0-96 l 32,10.667L 416,396.223 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"point-left, finger, direction, hand, left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,192L 237.904,192 C 226.676,151.545, 221,141.704, 221,99c0-36.944 30.056-67 67-67c 36.943,0 67,30.056 67,67\n\tc0,51.986 19.361,75.975 57.545,102.855c 1.134,0.798 2.289,1.581 3.455,2.355L 416,160 L 512,160 l0,320 l-96,0 l0-28.502 \n\tc -31.831,2.151, -40.56,11.096, -51.223,22.042c -8.226,8.445, -18.464,18.956, -37.015,26.638C 308.285,508.243, 282.939,512, 248,512l-24,0 l-8.49,0 \n\tc -30.969,0, -56.163-25.634, -56.163-57.143c0-5.235 0.712-10.438 2.095-15.45c -9.855-10.498, -15.482-24.501, -15.482-39.407\n\tc0-5.234 0.712-10.438 2.095-15.449c -9.855-10.499, -15.482-24.503, -15.482-39.408c0-9.018 2.071-17.55 5.744-25.143L 64,320 \n\tc -35.347,0, -64-28.653, -64-64C 0,220.654, 28.653,192, 64,192z M 464,448c 8.836,0 16-7.163 16-16s -7.164-16, -16-16s -16,7.163, -16,16\n\tS 455.164,448, 464,448z M 67,288L 191.734,288 L 195,288 l0,32 l-3.266,0 c -13.323,0, -24.163,11.279, -24.163,25.143c0,8.685 4.234,16.645 11.327,21.293\n\tl 12.394,8.122l -7.149,12.979c -2.083,3.781, -3.184,8.091, -3.184,12.463c0,8.685 4.234,16.644 11.326,21.291l 12.395,8.122l -7.149,12.98\n\tc -2.083,3.781, -3.184,8.091, -3.184,12.464c0,13.863 10.84,25.143 24.163,25.143L 227,480 l 24,0 c 63.281,0 76.044-19.103 89.556-32.975\n\tc 13.794-14.16 29.245-29.992 75.444-33.364L 416,246.474 c -7.878-4.132, -15.35-8.632, -22.329-13.545C 345.475,199, 320,163.156, 320,99\n\tc0-15.991, -15.010-29, -31-29s -30,13.009, -30,29c0,42.83 6.207,52.706 18.48,93c 3.062,11.371 5.961,22.635 7.938,31.667L 67,224\n\tc -17.645,0, -32,14.355, -32,32C 35,273.645, 49.355,288, 67,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"point-down, finger, direction, hand, down\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,448L 160,274.096 C 119.545,285.324, 109.704,291, 67,291c -36.944,0 -67-30.056 -67-67c0-36.943 30.056-67 67-67\n\tc 51.986,0 75.975-19.361 102.855-57.545c 0.798-1.134 1.581-2.289 2.355-3.455L 128,96 L 128,0 l 320,0 l 0,96 l -28.502,0 \n\tc 2.151,31.831, 11.096,40.56, 22.042,51.223c 8.445,8.226, 18.956,18.464, 26.638,37.015C 476.243,203.715, 480,229.061, 480,264l 0,24 l 0,8.49 \n\tc 0,30.969, -25.634,56.163, -57.143,56.163c -5.235,0 -10.438-0.712 -15.45-2.095c -10.498,9.855, -24.501,15.482, -39.407,15.482\n\tc -5.234,0 -10.438-0.712 -15.449-2.095c -10.499,9.855, -24.503,15.482, -39.408,15.482c -9.018,0 -17.55-2.071 -25.143-5.744L 288,448 \n\tc 0,35.347, -28.653,64, -64,64C 188.654,512, 160,483.347, 160,448z M 416,48c0-8.836 -7.163-16 -16-16s -16,7.164, -16,16s 7.163,16, 16,16\n\tS 416,56.836, 416,48z M 256,445L 256,320.266 L 256,317 l 32,0 l 0,3.266 c 0,13.323, 11.279,24.163, 25.143,24.163c 8.685,0 16.645-4.234 21.293-11.327\n\tl 8.122-12.394l 12.979,7.149c 3.781,2.083, 8.091,3.184, 12.463,3.184c 8.685,0 16.644-4.234 21.291-11.326l 8.122-12.395l 12.98,7.149\n\tc 3.781,2.083, 8.091,3.184, 12.464,3.184c 13.863,0 25.143-10.84 25.143-24.163L 448,285 l0-24 c0-63.281 -19.103-76.044 -32.975-89.556\n\tc -14.16-13.794 -29.992-29.245 -33.364-75.444L 214.474,96 c -4.132,7.878, -8.632,15.35, -13.545,22.329C 167,166.525, 131.156,192, 67,192\n\tc -15.991,0, -29,15.010, -29,31s 13.009,30, 29,30c 42.83,0 52.706-6.207 93-18.48c 11.371-3.062 22.635-5.961 31.667-7.938L 192,445\n\tc 0,17.645, 14.355,32, 32,32C 241.645,477, 256,462.645, 256,445z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"point-right, finger, direction, hand, right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,192L 274.096,192 C 285.324,151.545, 291,141.704, 291,99c0-36.944-30.056-67-67-67c-36.943,0-67,30.056-67,67\n\tc0,51.986-19.361,75.975-57.545,102.855c-1.134,0.798-2.289,1.581-3.455,2.355L 96,160 L0,160 l0,320 l 96,0 l0-28.502 \n\tc 31.831,2.151, 40.56,11.096, 51.223,22.042c 8.226,8.445, 18.464,18.956, 37.015,26.638C 203.715,508.243, 229.061,512, 264,512l 24,0 l 8.49,0 \n\tc 30.969,0, 56.163-25.634, 56.163-57.143c0-5.235-0.712-10.438-2.095-15.45c 9.855-10.498, 15.482-24.501, 15.482-39.407\n\tc0-5.234-0.712-10.438-2.095-15.449c 9.855-10.499, 15.482-24.503, 15.482-39.408c0-9.018-2.071-17.55-5.744-25.143L 448,320 \n\tc 35.347,0, 64-28.653, 64-64C 512,220.654, 483.347,192, 448,192z M 48,448c-8.836,0-16-7.163-16-16s 7.164-16, 16-16s 16,7.163, 16,16\n\tS 56.836,448, 48,448z M 445,288L 320.266,288 L 317,288 l0,32 l 3.266,0 c 13.323,0, 24.163,11.279, 24.163,25.143c0,8.685-4.234,16.645-11.327,21.293\n\tl-12.394,8.122l 7.149,12.979c 2.083,3.781, 3.184,8.091, 3.184,12.463c0,8.685-4.234,16.644-11.326,21.291l-12.395,8.122l 7.149,12.98\n\tc 2.083,3.781, 3.184,8.091, 3.184,12.464c0,13.863-10.84,25.143-24.163,25.143L 285,480 l-24,0 c-63.281,0-76.044-19.103-89.556-32.975\n\tc-13.794-14.16-29.245-29.992-75.444-33.364L 96,246.474 c 7.878-4.132, 15.35-8.632, 22.329-13.545C 166.525,199, 192,163.156, 192,99\n\tc0-15.991, 15.010-29, 31-29s 30,13.009, 30,29c0,42.83-6.207,52.706-18.48,93c-3.062,11.371-5.961,22.635-7.938,31.667L 445,224\n\tc 17.645,0, 32,14.355, 32,32C 477,273.645, 462.645,288, 445,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"point-up, finger, direction, hand, up\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,64L 160,237.904 C 119.545,226.676, 109.704,221, 67,221c-36.944,0-67,30.056-67,67c0,36.943 30.056,67 67,67\n\tc 51.986,0 75.975,19.361 102.855,57.545c 0.798,1.134 1.581,2.289 2.355,3.455L 128,416 L 128,512 l 320,0 l 0-96 l-28.502,0 \n\tc 2.151-31.831, 11.096-40.56, 22.042-51.223c 8.445-8.226, 18.956-18.464, 26.638-37.015C 476.243,308.285, 480,282.939, 480,248l 0-24 l 0-8.49 \n\tc 0-30.969, -25.634-56.163, -57.143-56.163c-5.235,0-10.438,0.712-15.45,2.095c -10.498-9.855, -24.501-15.482, -39.407-15.482\n\tc-5.234,0-10.438,0.712-15.449,2.095c -10.499-9.855, -24.503-15.482, -39.408-15.482c-9.018,0-17.55,2.071-25.143,5.744L 288,64 \n\tc 0-35.347, -28.653-64, -64-64C 188.654,0, 160,28.653, 160,64z M 416,464c0,8.836-7.163,16-16,16s -16-7.164, -16-16s 7.163-16, 16-16\n\tS 416,455.164, 416,464z M 256,67L 256,191.734 L 256,195 l 32,0 l 0-3.266 c 0-13.323, 11.279-24.163, 25.143-24.163c 8.685,0 16.645,4.234 21.293,11.327\n\tl 8.122,12.394l 12.979-7.149c 3.781-2.083, 8.091-3.184, 12.463-3.184c 8.685,0 16.644,4.234 21.291,11.326l 8.122,12.395l 12.98-7.149\n\tc 3.781-2.083, 8.091-3.184, 12.464-3.184c 13.863,0 25.143,10.84 25.143,24.163L 448,227 l0,24 c0,63.281-19.103,76.044-32.975,89.556\n\tc-14.16,13.794-29.992,29.245-33.364,75.444L 214.474,416 c -4.132-7.878, -8.632-15.35, -13.545-22.329C 167,345.475, 131.156,320, 67,320\n\tc-15.991,0, -29-15.010, -29-31s 13.009-30, 29-30c 42.83,0 52.706,6.207 93,18.48c 11.371,3.062 22.635,5.961 31.667,7.938L 192,67\n\tc 0-17.645, 14.355-32, 32-32C 241.645,35, 256,49.355, 256,67z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cursor, pointer\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 186.198,512.566L 99.983,336.288L0,432.486L0,0 l 338.877,259.318L 203.79,283.151l 86.285,176.421L 186.198,512.566z\n\t\t M 109.438,282.785l 91.207,186.486l 46.858-23.905l-91.137-186.342l 105.211-18.563L 32,64.781l0,292.51 L 109.438,282.785z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cursor, pointer\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 323.817,242.863L0,0L0,404.771L 101.067,309.466L 202.135,512L 288,469.067L 186.933,266.533 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"wondering, emoticon, smiley, face, question\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 352,128\n\tc 17.673,0, 32,14.327, 32,32s-14.327,32-32,32s-32-14.327-32-32S 334.327,128, 352,128z M 128,160c0-17.673, 14.327-32, 32-32\n\ts 32,14.327, 32,32s-14.327,32-32,32S 128,177.673, 128,160z M 165.622,403.193l-11.244-38.387l 218.5-64l 11.244,38.387L 165.622,403.193z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"wondering, emoticon, smiley, face, question\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0S0,114.615,0,256S 114.615,512, 256,512z M 256,48\n\t\tc 114.875,0, 208,93.125, 208,208s-93.125,208-208,208S 48,370.875, 48,256S 141.125,48, 256,48zM 372.87,300.81L 384.114,339.198L 165.61,403.199L 154.366,364.811zM 128,160 C 128,142.327 142.327,128 160,128 C 177.673,128 192,142.327 192,160 C 192,177.673 177.673,192 160,192 C 142.327,192 128,177.673 128,160 Z M 320,160 C 320,142.327 334.327,128 352,128 C 369.673,128 384,142.327 384,160 C 384,177.673 369.673,192 352,192 C 334.327,192 320,177.673 320,160 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"neutral, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.613,256, 256,256c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0z M 320,384L 192,384 l0-32 \n\tl 128,0 L 320,384 z M 352,128c 17.673,0, 32,14.327, 32,32c0,17.673-14.327,32-32,32s-32-14.327-32-32C 320,142.327, 334.327,128, 352,128z M 160,128\n\tc 17.673,0, 32,14.327, 32,32c0,17.673-14.327,32-32,32s-32-14.327-32-32C 128,142.327, 142.327,128, 160,128z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"neutral, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0S0,114.615,0,256S 114.615,512, 256,512z M 256,48\n\t\tc 114.875,0, 208,93.125, 208,208s-93.125,208-208,208S 48,370.875, 48,256S 141.125,48, 256,48zM 128,160c0,17.673, 14.327,32, 32,32s 32-14.327, 32-32s-14.327-32-32-32S 128,142.327, 128,160z M 320,160\n\tc0,17.673, 14.327,32, 32,32s 32-14.327, 32-32s-14.327-32-32-32S 320,142.327, 320,160z M 192,352l 128,0 l0,32 L 192,384 L 192,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"confused, emoticon, smiley, face, bewildered\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.613,256, 256,256c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0z M 352,128\n\tc 17.673,0, 32,14.327, 32,32c0,17.673-14.327,32-32,32s-32-14.327-32-32C 320,142.327, 334.327,128, 352,128z M 160,128\n\tc 17.673,0, 32,14.327, 32,32c0,17.673-14.327,32-32,32s-32-14.327-32-32C 128,142.327, 142.327,128, 160,128z M 343.505,405.28\n\tc-41.451,15.090-87.45-6.356-102.54-47.807c-9.054-24.871-36.653-37.739-61.524-28.686c-22.781,8.294-35.479,32.148-30.494,55.212\n\tl-32.43,0 c-4.622-36.254, 16.225-72.266, 51.978-85.28c 41.452-15.090, 87.451,6.356, 102.541,47.807\n\tc 9.054,24.871, 36.653,37.738, 61.523,28.685c 22.781-8.292, 35.479-32.147, 30.494-55.211l 32.432,0 \n\tC 400.105,356.253, 379.258,392.266, 343.505,405.28z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"confused, emoticon, smiley, face, bewildered\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0S0,114.615,0,256S 114.615,512, 256,512z M 256,48\n\t\tc 114.875,0, 208,93.125, 208,208s-93.125,208-208,208S 48,370.875, 48,256S 141.125,48, 256,48zM 128,160A32,32 2520 1 1 192,160A32,32 2520 1 1 128,160zM 320,160A32,32 2520 1 1 384,160A32,32 2520 1 1 320,160zM 363.053,320 L 395.485,320 C 400.108,356.253 379.259,392.265 343.506,405.28 C 302.054,420.368 256.056,398.922 240.966,357.472 C 231.912,332.6 204.313,319.731 179.442,328.786 C 156.661,337.080 143.964,360.935 148.948,383.998 L 116.518,383.998 C 111.897,347.744 132.743,311.734 168.496,298.718 C 209.948,283.629 255.947,305.076 271.037,346.525 C 280.089,371.399 307.69,384.266 332.559,375.211 C 355.34,366.919 368.037,343.062 363.053,320 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"shocked, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 160,224\n\t\tc-17.673,0-32-21.49-32-48s 14.327-48, 32-48s 32,21.49, 32,48S 177.673,224, 160,224z M 256,416c-35.346,0-64-28.654-64-64\n\t\ts 28.654-64, 64-64c 35.346,0, 64,28.654, 64,64S 291.346,416, 256,416z M 352,224c-17.673,0-32-21.49-32-48s 14.327-48, 32-48\n\t\ts 32,21.49, 32,48S 369.673,224, 352,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"shocked, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0S0,114.615,0,256S 114.615,512, 256,512z M 256,48\n\t\tc 114.875,0, 208,93.125, 208,208s-93.125,208-208,208S 48,370.875, 48,256S 141.125,48, 256,48zM 192,352 C 192,316.654 220.654,288 256,288 C 291.346,288 320,316.654 320,352 C 320,387.346 291.346,416 256,416 C 220.654,416 192,387.346 192,352 ZM 320,176A32,48 2520 1 1 384,176A32,48 2520 1 1 320,176zM 128,176A32,48 2520 1 1 192,176A32,48 2520 1 1 128,176z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"evil, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,32c0-22.758-4.762-44.4-13.326-64c-16.788,38.418-48.224,68.966-87.247,84.589C 368.33,19.609, 314.459,0, 256,0\n\tS 143.67,19.609, 100.573,52.589C 61.549,36.966, 30.114,6.418, 13.326-32C 4.762-12.4,0,9.242,0,32c0,36.787, 12.425,70.664, 33.294,97.689\n\tC 12.109,166.96,0,210.064,0,256c0,141.385, 114.615,256, 256,256s 256-114.615, 256-256c0-45.936-12.109-89.040-33.294-126.311\n\tC 499.575,102.664, 512,68.787, 512,32z M 288.047,190.258c 1.016-23.727, 22.605-39.474, 40.796-48.569\n\tc 17.371-8.686, 34.552-13.030, 35.274-13.211c 8.573-2.144, 17.26,3.069, 19.403,11.642c 2.143,8.573-3.069,17.259-11.642,19.403\n\tc-8.812,2.225-19.261,6.060-28.468,10.675c 5.324,5.715, 8.587,13.376, 8.587,21.803c0,17.673-14.327,32-32,32s-32-14.327-32-32\n\tC 287.998,191.416, 288.016,190.835, 288.047,190.258z M 128.479,140.12c 2.144-8.573, 10.83-13.786, 19.403-11.642\n\tc 0.723,0.181, 17.903,4.526, 35.274,13.211c 18.19,9.096, 39.78,24.842, 40.796,48.569c 0.031,0.577, 0.049,1.157, 0.049,1.742\n\tc0,17.673-14.327,32-32,32s-32-14.327-32-32c0-8.427, 3.263-16.088, 8.587-21.803c-9.207-4.615-19.655-8.45-28.468-10.675\n\tC 131.549,157.379, 126.337,148.692, 128.479,140.12z M 256,416c-58.255,0-109.232-31.137-137.213-77.672l 41.164-24.698\n\tC 179.538,346.204, 215.222,368, 256,368c 40.777,0, 76.462-21.796, 96.049-54.37l 41.164,24.698C 365.232,384.863, 314.255,416, 256,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"evil, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 319.998,224 C 302.325,224 287.998,209.673 287.999,191.999 C 287.999,191.414 288.017,190.834 288.048,190.257 C 289.064,166.53 310.654,150.784 328.844,141.688 C 346.215,133.003 363.395,128.658 364.118,128.477 C 372.691,126.333 381.377,131.546 383.521,140.119 C 385.663,148.692 380.451,157.378 371.879,159.522 C 363.066,161.747 352.618,165.582 343.411,170.197 C 348.735,175.912 351.998,183.573 351.998,192 C 351.998,209.673 337.671,224 319.998,224 ZM 140.121,159.522 C 131.549,157.379 126.337,148.692 128.48,140.12 C 130.623,131.547 139.31,126.334 147.883,128.478 C 148.605,128.659 165.786,133.003 183.157,141.689 C 201.348,150.784 222.937,166.531 223.953,190.258 C 223.984,190.835 224.002,191.416 224.002,192 C 224.002,209.673 209.675,224 192.002,224 C 174.329,224 160.002,209.673 160.002,192 C 160.002,183.573 163.265,175.912 168.589,170.197 C 159.382,165.582 148.933,161.747 140.121,159.522 ZM 256,368 C 296.777,368 332.462,346.204 352.049,313.63 L 393.213,338.328 C 365.232,384.863 314.255,416 256,416 C 197.745,416 146.768,384.863 118.787,338.328 L 159.951,313.63 C 179.538,346.204 215.222,368 256,368 ZM 512,32c0-22.758-4.762-44.4-13.326-64c-16.788,38.418-48.224,68.966-87.247,84.589C 368.33,19.609, 314.459,0, 256,0\n\t\tS 143.67,19.609, 100.573,52.589C 61.549,36.966, 30.114,6.418, 13.326-32C 4.762-12.4,0,9.242,0,32\n\t\tc0,36.787, 12.425,70.664, 33.294,97.689C 12.109,166.96,0,210.064,0,256c0,141.385, 114.615,256, 256,256s 256-114.615, 256-256\n\t\tc0-45.936-12.109-89.040-33.294-126.311C 499.575,102.664, 512,68.787, 512,32z M 256,464c-114.875,0-208-93.125-208-208\n\t\tS 141.125,48, 256,48s 208,93.125, 208,208S 370.875,464, 256,464z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"angry, emoticon, smiley, face, rage\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 288.047,190.258\n\tc 1.016-23.727, 22.605-39.474, 40.796-48.569c 17.371-8.686, 34.552-13.030, 35.274-13.211c 8.573-2.144, 17.26,3.069, 19.403,11.642\n\tc 2.143,8.573-3.069,17.259-11.642,19.403c-8.812,2.225-19.261,6.060-28.468,10.675c 5.324,5.715, 8.587,13.376, 8.587,21.803\n\tc0,17.673-14.327,32-32,32s-32-14.327-32-32C 287.998,191.416, 288.016,190.835, 288.047,190.258z M 128.479,140.12\n\tc 2.144-8.573, 10.83-13.786, 19.403-11.642c 0.723,0.181, 17.903,4.526, 35.274,13.211c 18.19,9.096, 39.78,24.842, 40.796,48.569\n\tc 0.031,0.577, 0.049,1.157, 0.049,1.742c0,17.673-14.327,32-32,32s-32-14.327-32-32c0-8.427, 3.263-16.088, 8.587-21.803\n\tc-9.207-4.615-19.655-8.45-28.468-10.675C 131.549,157.379, 126.337,148.692, 128.479,140.12z M 352.049,390.37\n\tC 332.462,357.796, 296.777,336, 256,336c-40.778,0-76.462,21.796-96.049,54.37l-41.164-24.698C 146.767,319.137, 197.745,288, 256,288\n\tc 58.254,0, 109.232,31.137, 137.213,77.672L 352.049,390.37z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"angry, emoticon, smiley, face, rage\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0S0,114.615,0,256S 114.615,512, 256,512z M 256,48\n\tc 114.875,0, 208,93.125, 208,208s-93.125,208-208,208S 48,370.875, 48,256S 141.125,48, 256,48z M 352.049,390.37\n\tC 332.462,357.796, 296.777,336, 256,336c-40.778,0-76.462,21.796-96.049,54.37l-41.164-24.698C 146.767,319.137, 197.745,288, 256,288\n\tc 58.254,0, 109.232,31.137, 137.213,77.672L 352.049,390.37zM 383.521,140.12 C 385.663,148.692 380.451,157.379 371.88,159.522 C 363.067,161.747 352.619,165.582 343.412,170.197 C 348.736,175.912 351.999,183.573 351.999,192 C 351.999,209.673 337.672,224 319.999,224 C 302.326,224 287.999,209.673 287.999,192 C 287.999,191.415 288.017,190.835 288.048,190.258 C 289.064,166.531 310.654,150.785 328.844,141.689 C 346.215,133.004 363.395,128.659 364.118,128.478 C 372.691,126.334 381.377,131.547 383.521,140.12 ZM 128.479,140.12c 2.144-8.573, 10.83-13.786, 19.403-11.642c 0.723,0.181, 17.903,4.526, 35.274,13.211\n\tc 18.19,9.096, 39.78,24.842, 40.796,48.569c 0.031,0.577, 0.049,1.157, 0.049,1.742c0,17.673-14.327,32-32,32s-32-14.327-32-32\n\tc0-8.427, 3.263-16.088, 8.587-21.803c-9.207-4.615-19.655-8.45-28.468-10.675C 131.549,157.379, 126.337,148.692, 128.479,140.12z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cool, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.613,256, 256,256c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0z M 256,416\n\tc-24.229,0-47.192-5.398-67.771-15.041l 16.581-27.638C 220.488,380.177, 237.793,384, 256,384c 46.604,0, 87.386-24.909, 109.771-62.139\n\tl 27.441,16.467C 365.23,384.863, 314.255,416, 256,416z M 416,192c0,17.6-14.4,32-32,32l-64,0 c-17.6,0-32-14.4-32-32l-64,0 \n\tc0,17.6-14.4,32-32,32l-64,0 c-17.6,0-32-14.4-32-32l0-48 c0-8.8, 7.2-16, 16-16l 96,0 c 8.8,0, 16,7.2, 16,16l0,16 l 64,0 l0-16 c0-8.8, 7.2-16, 16-16l 96,0 \n\tc 8.8,0, 16,7.2, 16,16L 416,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cool, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0S0,114.615,0,256S 114.615,512, 256,512z M 256,48\n\t\tc 114.875,0, 208,93.125, 208,208s-93.125,208-208,208S 48,370.875, 48,256S 141.125,48, 256,48zM 400,128 C 408.8,128 416,135.2 416,144 L 416,192 C 416,209.6 401.6,224 384,224 L 320,224 C 302.4,224 288,209.6 288,192 L 224,192 C 224,209.6 209.6,224 192,224 L 128,224 C 110.4,224 96,209.6 96,192 L 96,144 C 96,135.2 103.2,128 112,128 L 208,128 C 216.8,128 224,135.2 224,144 L 224,160 L 288,160 L 288,144 C 288,135.2 295.2,128 304,128 L 400,128 ZM 256,384 C 302.604,384 343.386,359.091 365.773,321.861 L 393.213,338.328 C 365.23,384.863 314.255,416 256,416 C 231.771,416 208.808,410.602 188.23,400.959 L 204.811,373.32 C 220.488,380.177 237.793,384 256,384 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"grin, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.613,256, 256,256c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0z M 352,118\n\tc 31.981,0, 58,26.019, 58,58c0,3.189-0.273,6.438-0.814,9.656c-0.809,4.816-4.979,8.344-9.862,8.344s-9.054-3.528-9.861-8.345\n\tC 386.383,167.313, 370.628,159, 352,159s-34.383,8.313-37.462,26.655c-0.808,4.816-4.978,8.345-9.861,8.345c-0.001,0,0,0-0.001,0\n\tc-4.883,0-9.053-3.528-9.861-8.344C 294.273,182.438, 294,179.189, 294,176C 294,144.019, 320.019,118, 352,118z M 160,118\n\tc 31.981,0, 58,26.019, 58,58c0,3.189-0.274,6.438-0.814,9.656c-0.809,4.816-4.978,8.344-9.862,8.344c-4.884,0-9.053-3.528-9.861-8.345\n\tC 194.383,167.313, 178.628,159, 160,159s-34.383,8.313-37.462,26.655c-0.808,4.816-4.978,8.345-9.861,8.345c0,0,0,0,0,0\n\tc-4.883,0-9.053-3.528-9.862-8.344C 102.274,182.438, 102,179.189, 102,176C 102,144.019, 128.019,118, 160,118z M 96,288l 96,0 l0,123.923 \n\tC 136.953,397.62, 96,347.361, 96,288z M 224,416L 224,288 l 64,0 l0,128 L 224,416 z M 320,411.923L 320,288 l 96,0 C 416,347.361, 375.048,397.62, 320,411.923z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"grin, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0S0,114.615,0,256S 114.615,512, 256,512z M 256,48\n\t\tc 114.875,0, 208,93.125, 208,208s-93.125,208-208,208S 48,370.875, 48,256S 141.125,48, 256,48zM 96,256l0,32 c0,70.4, 57.6,128, 128,128l 64,0 c 70.4,0, 128-57.6, 128-128l0-32 L 96,256 z M 192,378.494\n\tc-13.269-4.729-25.462-12.411-35.772-22.723C 138.025,337.57, 128,313.501, 128,288l 64,0 L 192,378.494 z M 288,384l-64,0 l0-96 l 64,0 L 288,384 z\n\t M 355.772,355.771c-10.312,10.312-22.505,17.994-35.772,22.723L 320,288 l 64,0 C 384,313.501, 373.976,337.57, 355.772,355.771z M 112.676,192\n\tC 112.677,192, 112.676,192, 112.676,192c 4.884,0, 9.054-3.528, 9.862-8.345C 125.617,165.313, 141.372,152, 160,152\n\ts 34.383,13.313, 37.462,31.655c 0.808,4.816, 4.978,8.345, 9.861,8.345c 4.884,0, 9.054-3.528, 9.862-8.344\n\tc 0.541-3.218, 0.814-6.467, 0.814-9.656c0-31.981-26.019-58-58-58s-58,26.019-58,58c0,3.189, 0.274,6.438, 0.814,9.656\n\tC 103.623,188.472, 107.793,192, 112.676,192z M 304.676,192C 304.677,192, 304.676,192, 304.676,192c 4.885,0, 9.056-3.528, 9.862-8.345\n\tC 317.617,165.313, 333.372,152, 352,152s 34.383,13.313, 37.462,31.655c 0.808,4.816, 4.979,8.345, 9.861,8.345s 9.054-3.528, 9.861-8.344\n\tc 0.541-3.218, 0.814-6.467, 0.814-9.656c0-31.981-26.019-58-58-58s-58,26.019-58,58c0,3.189, 0.272,6.438, 0.813,9.656\n\tC 295.623,188.472, 299.793,192, 304.676,192z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"wink, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.614,0,256c0,141.385, 114.614,256, 256,256c 141.385,0, 256-114.615, 256-256\n\tC 512,114.614, 397.385,0, 256,0z M 352,128c 17.673,0, 32,21.49, 32,48s-14.327,48-32,48s-32-21.49-32-48S 334.327,128, 352,128z\n\t M 176,156.031c 29.823,0, 51,11.166, 51,28.641c0,3.699, 1.906,21.497-0.085,24.797c-7.414-12.288-27.405-21.094-50.915-21.094\n\ts-43.501,8.806-50.915,21.094c-1.991-3.3-0.085-21.098-0.085-24.797C 125,167.197, 146.177,156.031, 176,156.031z M 250.172,416\n\tc-59.621,0-111.929-32.14-141.446-80.476c 35.205,27.53, 97.267,32.905, 162.644,19.989c 70.124-13.853, 124.555-45.771, 144.227-88.297\n\tC 404.77,351.196, 334.838,416, 250.172,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"wink, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0S0,114.615,0,256S 114.615,512, 256,512z M 256,48\n\t\tc 114.875,0, 208,93.125, 208,208s-93.125,208-208,208S 48,370.875, 48,256S 141.125,48, 256,48zM 271.37,355.514 C 341.494,341.661 395.925,309.743 415.597,267.217 C 404.77,351.195 334.838,416 250.172,416 C 190.551,416 138.243,383.859 108.726,335.526 C 143.931,363.055 205.993,368.43 271.37,355.514 ZM 320,176A32,48 2520 1 1 384,176A32,48 2520 1 1 320,176zM 176,185.75 C 155.102,185.75 137.333,193.578 130.742,204.5 C 128.972,201.567 128,188.413 128,185.125 C 128,169.592 149.49,157 176,157 C 202.51,157 224,169.592 224,185.125 C 224,188.413 223.028,201.567 221.258,204.5 C 214.667,193.578 196.898,185.75 176,185.75 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"sad, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 352,128\n\tc 17.673,0, 32,14.327, 32,32s-14.327,32-32,32s-32-14.327-32-32S 334.327,128, 352,128z M 160,128c 17.673,0, 32,14.327, 32,32\n\ts-14.327,32-32,32s-32-14.327-32-32S 142.327,128, 160,128z M 352.049,390.37C 332.462,357.796, 296.777,336, 256,336\n\tc-40.778,0-76.462,21.796-96.049,54.37l-41.164-24.698C 146.767,319.137, 197.745,288, 256,288c 58.254,0, 109.232,31.137, 137.213,77.672\n\tL 352.049,390.37z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"sad, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0S0,114.615,0,256S 114.615,512, 256,512z M 256,48\n\t\tc 114.875,0, 208,93.125, 208,208s-93.125,208-208,208S 48,370.875, 48,256S 141.125,48, 256,48zM 128,160 C 128,142.327 142.327,128 160,128 C 177.673,128 192,142.327 192,160 C 192,177.673 177.673,192 160,192 C 142.327,192 128,177.673 128,160 Z M 320,160 C 320,142.327 334.327,128 352,128 C 369.673,128 384,142.327 384,160 C 384,177.673 369.673,192 352,192 C 334.327,192 320,177.673 320,160 ZM 159.951,390.37 L 118.787,365.672 C 146.768,319.137 197.745,288 256,288 C 314.254,288 365.231,319.137 393.213,365.672 L 352.049,390.37 C 332.462,357.796 296.778,336 256,336 C 215.221,336 179.538,357.796 159.951,390.37 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tongue, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 160,128\n\tc 17.673,0, 32,14.327, 32,32s-14.327,32-32,32s-32-14.327-32-32S 142.327,128, 160,128z M 384,320l-32,0 l0,48 c0,26.51-21.49,48-48,48\n\ts-48-21.49-48-48l0-48 L 128,320 l0-32 l 256,0 L 384,320 z M 352,192c-17.673,0-32-14.327-32-32s 14.327-32, 32-32s 32,14.327, 32,32S 369.673,192, 352,192z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tongue, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0S0,114.615,0,256S 114.615,512, 256,512z M 256,48\n\t\tc 114.875,0, 208,93.125, 208,208s-93.125,208-208,208S 48,370.875, 48,256S 141.125,48, 256,48zM 128,160 C 128,142.327 142.327,128 160,128 C 177.673,128 192,142.327 192,160 C 192,177.673 177.673,192 160,192 C 142.327,192 128,177.673 128,160 Z M 320,160 C 320,142.327 334.327,128 352,128 C 369.673,128 384,142.327 384,160 C 384,177.673 369.673,192 352,192 C 334.327,192 320,177.673 320,160 ZM 384,288 L 384,320 L 352,320 L 352,368 C 352,394.51 330.51,416 304,416 C 277.49,416 256,394.51 256,368 L 256,320 L 128,320 L 128,288 L 384,288 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"smiley, emoticon, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 352,128\n\tc 17.673,0, 32,14.327, 32,32s-14.327,32-32,32s-32-14.327-32-32S 334.327,128, 352,128z M 160,128c 17.673,0, 32,14.327, 32,32\n\ts-14.327,32-32,32s-32-14.327-32-32S 142.327,128, 160,128z M 256,416c-58.255,0-109.232-31.137-137.213-77.672l 41.164-24.698\n\tC 179.538,346.204, 215.222,368, 256,368s 76.462-21.796, 96.049-54.37l 41.164,24.698C 365.232,384.863, 314.255,416, 256,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"smiley, emoticon, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0S0,114.615,0,256S 114.615,512, 256,512z M 256,48\n\t\tc 114.875,0, 208,93.125, 208,208s-93.125,208-208,208S 48,370.875, 48,256S 141.125,48, 256,48zM 128,160 C 128,142.327 142.327,128 160,128 C 177.673,128 192,142.327 192,160 C 192,177.673 177.673,192 160,192 C 142.327,192 128,177.673 128,160 Z M 320,160 C 320,142.327 334.327,128 352,128 C 369.673,128 384,142.327 384,160 C 384,177.673 369.673,192 352,192 C 334.327,192 320,177.673 320,160 ZM 352.049,313.63 L 393.213,338.328 C 365.232,384.863 314.255,416 256,416 C 197.745,416 146.768,384.863 118.787,338.328 L 159.951,313.63 C 179.538,346.204 215.222,368 256,368 C 296.778,368 332.462,346.204 352.049,313.63 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"happy, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 352,128\n\t\tc 17.674,0, 32,21.49, 32,48s-14.326,48-32,48s-32-21.49-32-48S 334.326,128, 352,128z M 160,128c 17.673,0, 32,21.49, 32,48\n\t\ts-14.327,48-32,48s-32-21.49-32-48S 142.327,128, 160,128z M 256,448c-83.434,0-152.711-69.936-160-159.152\n\t\tc 46.885,27.057, 102.025,42.532, 160,42.532c 57.975,0, 113.115-15.403, 160-42.46C 408.713,378.139, 339.436,448, 256,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"happy, emoticon, smiley, face\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,512c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0S0,114.615,0,256S 114.615,512, 256,512z M 256,48\n\t\tc 114.875,0, 208,93.125, 208,208s-93.125,208-208,208S 48,370.875, 48,256S 141.125,48, 256,48zM 256,299.38 C 313.975,299.38 369.115,283.977 416,256.92 C 408.713,346.139 339.436,416 256,416 C 172.566,416 103.289,346.064 96,256.848 C 142.885,283.904 198.025,299.38 256,299.38 ZM 128,176A32,48 2520 1 1 192,176A32,48 2520 1 1 128,176zM 320,176A32,48 2520 1 1 384,176A32,48 2520 1 1 320,176z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"yin-yang\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,128A32,32 2520 1 1 288,128A32,32 2520 1 1 224,128zM 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,416\n\tc-17.674,0-32-14.326-32-32s 14.326-32, 32-32c 17.673,0, 32,14.326, 32,32S 273.673,416, 256,416z M 256,256c-57.438,0-104,46.562-104,104\n\ts 46.562,104, 104,104c-114.875,0-208-93.125-208-208S 141.125,48, 256,48c 57.438,0, 104,46.562, 104,104S 313.438,256, 256,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"peace\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.616,0,0,114.615,0,256s 114.616,256, 256,256c 141.385,0, 256-114.615, 256-256S 397.385,0, 256,0z M 464,256\n\tc0,47.478-15.812,92.519-44.924,129.135L 280,246.059L 280,49.375 c 46.477,5.307, 89.506,25.975, 123.078,59.547\n\tC 442.364,148.208, 464,200.441, 464,256z M 232,462.625c-38.565-4.403-74.751-19.392-105.135-43.548L 232,313.941L 232,462.625 z M 280,313.941\n\tl 105.135,105.135c-30.384,24.157-66.569,39.146-105.135,43.549L 280,313.941 z M 108.922,108.922C 142.494,75.35, 185.523,54.682, 232,49.375\n\tl0,196.684 L 92.924,385.136C 63.812,348.519, 48,303.478, 48,256C 48,200.441, 69.636,148.208, 108.922,108.922z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"female, gender, sex, woman\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,316.796c 73.030-14.825, 128-79.391, 128-156.796C 416,71.634, 344.365,0, 256,0S 96,71.634, 96,160\n\tc0,77.405, 54.969,141.971, 128,156.796L 224,384 l-96,0 l0,64 l 96,0 l0,64 l 64,0 l0-64 l 96,0 l0-64 l-96,0 L 288,316.796 z M 150.401,160\n\tc0-58.321, 47.278-105.601, 105.601-105.601c 58.321,0, 105.6,47.28, 105.6,105.601c0,58.32-47.279,105.6-105.601,105.6\n\tC 197.678,265.6, 150.401,218.32, 150.401,160z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"woman, human, female, gender, sex\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 405.369,221.499l-62.063-62.063c-0.070-0.070-0.138,0.145-0.207,0.075C 320.554,136.966, 311.237,128, 288.679,128l-64,0 \n\t\tc-22.557,0-31.875,8.966-54.42,31.511l-0.704,0.066l-62.555,61.925l0-0.003 c-13,13.575-10.816,33.939, 0.497,45.253l 93.188-92.66\n\t\tL 126.365,320l 65.636,0 l0,159.436 c0,13.257, 10.745,24, 24,24c 13.254,0, 24-10.743, 24-24L 240.001,320 l 32,0 l0,159.436 c0,13.257, 10.745,24, 24,24\n\t\ts 24-10.743, 24-24L 320.001,320 l 64.68,0 l-73.372-147.027l 94.059,93.917l 0.005-0.076C 416.68,255.501, 418.938,235.071, 405.369,221.499zM 208.411,64A48,48 12600 1 1 304.411,64A48,48 12600 1 1 208.411,64z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"male, gender, sex, man\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,0l0,64 l 82.745,0 L 280.229,186.517C 254.935,169.764, 224.61,160, 192,160c-88.365,0-160,71.634-160,160\n\tc0,88.365, 71.634,160, 160,160s 160-71.635, 160-160c0-32.609-9.765-62.936-26.517-88.229L 448,109.255L 448,192 l 64,0 L 512,0 L 320,0 z M 192,425.6\n\tC 133.679,425.6, 86.4,378.32, 86.4,320S 133.679,214.399, 192,214.399c 58.32,0, 105.6,47.279, 105.6,105.601\n\tC 297.6,378.32, 250.321,425.6, 192,425.6z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"man, human, male, gender, sex\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,128L 160,128 c-17.601,0-32,14.4-32,32l0,128 c0,17.6, 14.399,32, 32,32l0,0L 160,192 l 16,0 l0,296 c0,13.2, 10.8,24, 24,24s 24-10.8, 24-24L 224,320 \n\t\tl 32,0 l0,168 c0,13.2, 10.8,24, 24,24s 24-10.8, 24-24L 304,192 l 16,0 l0,128 c 17.6,0, 32-14.4, 32-32L 352,160 C 352,142.4, 337.6,128, 320,128zM 192,64A48,48 12600 1 1 288,64A48,48 12600 1 1 192,64z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"people, team, men, humen, man, human, group\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,128L 32,128 c-17.6,0-32,14.4-32,32l0,128 c0,17.6, 14.4,32, 32,32l0,0 L 32,192 l 16,0 l0,128 l0,64 l0,104 c0,13.2, 10.8,24, 24,24s 24-10.8, 24-24L 96,320 \n\t\tl 32,0 l0,168 c0,13.2, 10.8,24, 24,24s 24-10.8, 24-24L 176,320 l0,0 L 176,192 l 16,0 l0,128 c 17.6,0, 32-14.4, 32-32L 224,160 C 224,142.4, 209.6,128, 192,128zM 64.016,47.984A47.984,47.984 12600 1 1 159.984,47.98399999999998A47.984,47.984 12600 1 1 64.016,47.98399999999998zM 480,128L 320,128 c-17.6,0-32,14.4-32,32l0,128 c0,17.6, 14.4,32, 32,32L 320,192 l 16,0 l0,128 l0,64 l0,104 c0,13.2, 10.8,24, 24,24s 24-10.8, 24-24L 384,320 \n\t\tl 32,0 l0,168 c0,13.2, 10.8,24, 24,24s 24-10.8, 24-24L 464,320 L 464,192 l 16,0 l0,128 c 17.6,0, 32-14.4, 32-32L 512,160 C 512,142.4, 497.6,128, 480,128zM 352.016,47.984A47.984,47.984 12600 1 1 447.984,47.98399999999998A47.984,47.984 12600 1 1 352.016,47.98399999999998z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"thumbs-up, up, like, rate, vote down\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 21.807,208C 8.463,219.751,0,236.931,0,256c0,35.2, 28.8,64, 64,64l 160,0 c 35.2,0, 64,28.8, 64,64l0,64 c0,35.2, 28.8,64, 64,64\n\ts 64-28.8, 64-64l0-64 c0-35.2, 21.6-64, 48-64s 48-28.8, 48-64L 512,128 C 512,57.308, 454.692,0, 384,0L 224,0 L 96,0 C 60.8,0, 32,28.8, 32,64\n\tc0,13.154, 4.024,25.414, 10.9,35.612C 17.988,108.383,0,132.187,0,160C0,179.069, 8.463,196.249, 21.807,208z M 266.193,112\n\tC 279.537,100.249, 288,83.069, 288,64c0-11.64-3.164-22.57-8.652-32L 384,32 c 52.935,0, 96,43.065, 96,96l0,128 c0,19.538-10.506,32-16,32\n\tc-22.752,0-44.438,11.518-59.5,31.6C 391.28,337.227, 384,360.098, 384,384l0,64 c0,8.477-3.348,16.493-9.428,22.572\n\tC 368.493,476.652, 360.477,480, 352,480s-16.493-3.348-22.572-9.428C 323.348,464.493, 320,456.477, 320,448l0-64 \n\tc0-36.127-20.068-67.642-49.635-84.021C 281.272,288.488, 288,272.996, 288,256c0-19.069-8.463-36.249-21.807-48\n\tC 279.537,196.249, 288,179.069, 288,160S 279.537,123.751, 266.193,112z M 73.428,41.428C 79.507,35.348, 87.523,32, 96,32l 128,0 \n\tc 8.477,0, 16.493,3.348, 22.572,9.428C 252.652,47.507, 256,55.523, 256,64s-3.348,16.493-9.428,22.572C 240.493,92.652, 232.477,96, 224,96\n\tL 96,96 c-8.477,0-16.493-3.348-22.572-9.428C 67.348,80.493, 64,72.477, 64,64S 67.348,47.507, 73.428,41.428z M 41.428,137.428\n\tC 47.507,131.348, 55.523,128, 64,128l 32,0 l 128,0 c 8.477,0, 16.493,3.348, 22.572,9.428C 252.652,143.507, 256,151.523, 256,160\n\ts-3.348,16.493-9.428,22.572C 240.493,188.652, 232.477,192, 224,192L 64,192 c-8.477,0-16.493-3.348-22.572-9.428\n\tC 35.348,176.493, 32,168.477, 32,160S 35.348,143.507, 41.428,137.428z M 41.428,233.428C 47.507,227.348, 55.523,224, 64,224l 160,0 \n\tc 8.477,0, 16.493,3.348, 22.572,9.428C 252.652,239.507, 256,247.523, 256,256s-3.348,16.494-9.428,22.572\n\tC 240.493,284.652, 232.477,288, 224,288L 64,288 c-8.477,0-16.493-3.348-22.572-9.428C 35.348,272.494, 32,264.477, 32,256\n\tS 35.348,239.507, 41.428,233.428z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"thumbs-up, up, like, rate, vote-up\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 490.193,304C 503.537,292.249, 512,275.069, 512,256c0-35.2-28.8-64-64-64L 288,192 c-35.2,0-64-28.8-64-64L 224,64 c0-35.2-28.8-64-64-64\n\tS 96,28.8, 96,64l0,64 c0,35.2-21.6,64-48,64S0,220.8,0,256l0,128 c0,70.692, 57.308,128, 128,128l 160,0 l 128,0 c 35.2,0, 64-28.8, 64-64\n\tc0-13.154-4.024-25.414-10.9-35.612C 494.012,403.617, 512,379.813, 512,352C 512,332.931, 503.537,315.751, 490.193,304z M 245.807,400\n\tC 232.463,411.751, 224,428.931, 224,448c0,11.64, 3.164,22.57, 8.653,32L 128,480 c-52.935,0-96-43.065-96-96L 32,256 c0-19.538, 10.506-32, 16-32\n\tc 22.751,0, 44.438-11.518, 59.5-31.6c 13.22-17.626, 20.5-40.498, 20.5-64.4L 128,64 c0-8.477, 3.348-16.493, 9.427-22.573\n\tC 143.507,35.348, 151.523,32, 160,32s 16.493,3.348, 22.573,9.427C 188.652,47.507, 192,55.523, 192,64l0,64 \n\tc0,36.127, 20.069,67.642, 49.635,84.021C 230.728,223.512, 224,239.004, 224,256c0,19.069, 8.463,36.249, 21.807,48\n\tC 232.463,315.751, 224,332.931, 224,352S 232.463,388.249, 245.807,400z M 438.572,470.572C 432.493,476.652, 424.477,480, 416,480L 288,480 \n\tc-8.477,0-16.493-3.348-22.572-9.428C 259.348,464.493, 256,456.477, 256,448s 3.348-16.493, 9.428-22.572\n\tC 271.507,419.348, 279.523,416, 288,416l 128,0 c 8.477,0, 16.493,3.348, 22.572,9.428C 444.652,431.507, 448,439.523, 448,448\n\tS 444.652,464.493, 438.572,470.572z M 470.572,374.572C 464.493,380.652, 456.477,384, 448,384l-32,0 L 288,384 \n\tc-8.477,0-16.493-3.348-22.572-9.428C 259.348,368.493, 256,360.477, 256,352s 3.348-16.493, 9.428-22.572\n\tC 271.507,323.348, 279.523,320, 288,320l 160,0 c 8.477,0, 16.493,3.348, 22.572,9.428C 476.652,335.507, 480,343.523, 480,352\n\tS 476.652,368.493, 470.572,374.572z M 470.572,278.572C 464.493,284.652, 456.477,288, 448,288L 288,288 c-8.477,0-16.493-3.348-22.572-9.428\n\tC 259.348,272.493, 256,264.477, 256,256c0-8.477, 3.348-16.494, 9.428-22.573C 271.507,227.348, 279.523,224, 288,224l 160,0 \n\tc 8.477,0, 16.493,3.348, 22.572,9.427C 476.652,239.506, 480,247.523, 480,256C 480,264.477, 476.652,272.493, 470.572,278.572z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"thumbs-up, up, like, rate, vote down\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 48,224 C 11.5,224 32,128 64,128 C 48,128 64,48 96,48 C 96,16 128,0 160,0 C 295.176,0 247.632,33.825 384,48 L 384,304 C 263.539,340.134 144,430.712 144,512 C 117.5,512 48,480 144,320 C 144,320 64,320 48,320 C 0,320 16,224 48,224 ZM 416,304 L 416,48 L 384,48 L 384,32 L 448,32 C 465.6,32 480,53.6 480,80 L 480,272 C 480,298.4 465.6,320 448,320 L 384,320 L 384,304 L 416,304 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"thumbs-up, up, like, rate, vote up\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,288 C 500.5,288 480,384 448,384 C 464,384 448,464 416,464 C 416,496 384,512 352,512 C 216.824,512 264.368,478.175 128,464 L 128,208 C 248.461,171.866 368,81.288 368,0 C 394.5,0 464,32 368,192 C 368,192 448,192 464,192 C 512,192 496,288 464,288 ZM 96,208 L 96,464 L 128,464 L 128,480 L 64,480 C 46.4,480 32,458.4 32,432 L 32,240 C 32,213.6 46.4,192 64,192 L 128,192 L 128,208 L 96,208 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"thumbs-down, down, like, rate, vote down\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 16,208c0,16.458 8.978,30.977 22.654,39.624C 34.432,254.77, 32,263.1, 32,272c0,26.51 21.49,48 48,48l 93.904,0 \n\tC 162.676,360.455, 157,402.296, 157,445c0,36.944 30.056,67 67,67c 36.943,0 67-30.056 67-67c0-51.986 19.361-91.975 57.545-118.855\n\tc 10.5-7.392 22.371-13.743 35.455-19.033L 384,352 L 512,352 l0-320 l -128,0 l0,31.499 c -29.945-1.966, -44.484-9.461, -58.595-16.747\n\tC 311.361,39.499, 296.839,32, 272,32l -160,0 c -26.51,0, -48,21.49, -48,48c0,6.249 1.207,12.213 3.38,17.688\n\tC 46.995,103.231, 32,121.859, 32,144c0,8.9 2.432,17.23 6.654,24.376C 24.978,177.023, 16,191.542, 16,208z M 464,64\n\tc 8.836,0 16,7.163 16,16s -7.164,16, -16,16s -16-7.163, -16-16S 455.164,64, 464,64z M 68,192l 28,0 l0-32 l -16,0 c -8.822,0, -16-7.178, -16-16\n\ts 7.178-16 16-16l 32,0 l0-32 c -8.822,0, -16-7.178, -16-16s 7.178-16 16-16L 272,64 c 17.064,0 26.149,4.691 38.723,11.185\n\tc 15.874,8.196 35.193,18.16 73.277,20.364L 384,266.66 c -21.468,7.214, -40.714,16.715, -57.329,28.412C 278.475,329, 253,380.844, 253,445\n\tc0,15.991, -13.010,29, -29,29s -29-13.009, -29-29c0-42.83 6.207-84.706 18.48-125c 3.099-11.509 6.033-22.913 8.012-32l -0.234,0 L 80,288 \n\tc -8.822,0, -16-7.178, -16-16s 7.178-16 16-16l 16,0 l0-32 l -28,0 c -10.841,0, -20-7.327, -20-16S 57.159,192, 68,192z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"thumbs-down, down, like, rate, vote down\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 16,208c0,16.458 8.978,30.977 22.654,39.624C 34.432,254.77, 32,263.1, 32,272c0,26.51 21.49,48 48,48l 93.904,0 \n\tC 162.676,360.455, 157,402.296, 157,445c0,36.944 30.056,67 67,67c 36.943,0 67-30.056 67-67c0-51.986 19.361-91.975 57.545-118.855\n\tc 10.5-7.392 22.371-13.743 35.455-19.033L 384,352 L 512,352 l0-320 l -128,0 l0,31.499 c -29.945-1.966, -44.484-9.461, -58.595-16.747\n\tC 311.361,39.499, 296.839,32, 272,32l -80,0 l -80,0 c -26.51,0, -48,21.49, -48,48c0,6.249 1.207,12.213 3.38,17.688\n\tC 46.995,103.231, 32,121.859, 32,144c0,8.9 2.432,17.23 6.654,24.376C 24.978,177.023, 16,191.542, 16,208z M 176,288l -96,0 \n\tc -8.822,0, -16-7.178, -16-16s 7.178-16 16-16l 96,0 c 8.822,0 16,7.178 16,16S 184.822,288, 176,288z M 233.455,184.688\n\tC 246.992,176.201, 256,161.156, 256,144c0-17, -8.846-31.925, -22.177-40.453C 237.749,96.589, 240,88.56, 240,80\n\tc0-5.611, -0.973-10.994, -2.742-16L 272,64 c 17.064,0 26.149,4.691 38.723,11.185c 15.874,8.196 35.193,18.16 73.277,20.364L 384,266.66 \n\tc -21.468,7.214, -40.714,16.715, -57.329,28.412C 278.475,329, 253,380.844, 253,445c0,15.991, -13.010,29, -29,29s -29-13.009, -29-29\n\tc0-42.83 6.207-84.706 18.48-125c 3.33-12.37 6.47-24.614 8.438-33.995c 1.271-4.17 1.98-8.582 2.061-13.147\n\tc 0.015-0.301 0.021-0.59 0.021-0.855c0-8.9, -2.432-17.229, -6.654-24.376C 231.021,238.977, 240,224.458, 240,208\n\tC 240,199.538, 237.619,191.592, 233.455,184.688z M 112,64l 80,0 c 8.822,0 16,7.178 16,16s -7.178,16, -16,16l -80,0 c -8.822,0, -16-7.178, -16-16\n\tS 103.178,64, 112,64z M 80,128L 208,128 c 8.822,0 16,7.178 16,16s -7.178,16, -16,16l -128,0 c -8.822,0, -16-7.178, -16-16S 71.178,128, 80,128z\n\t M 68,192L 188,192 c 10.841,0 20,7.327 20,16s -9.159,16, -20,16l -120,0 c -10.841,0, -20-7.327, -20-16S 57.159,192, 68,192z M 448,80\n\tc0-8.837 7.164-16 16-16s 16,7.163 16,16s -7.164,16, -16,16S 448,88.837, 448,80z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"thumbs-up, up, like, rate, vote up\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 496,336c0-16.458-8.978-30.977-22.654-39.624C 477.568,289.23, 480,280.9, 480,272c0-26.51-21.49-48-48-48l-93.904,0 \n\tC 349.324,183.545, 355,141.704, 355,99c0-36.944-30.056-67-67-67c-36.943,0-67,30.056-67,67c0,51.986-19.361,91.975-57.545,118.855\n\tc-10.5,7.392-22.371,13.743-35.455,19.033L 128,192 L0,192 l0,320 l 128,0 l0-31.499 c 29.945,1.966, 44.484,9.461, 58.595,16.747\n\tC 200.639,504.501, 215.161,512, 240,512l 160,0 c 26.51,0, 48-21.49, 48-48c0-6.249-1.207-12.213-3.38-17.688\n\tC 465.005,440.769, 480,422.141, 480,400c0-8.9-2.432-17.23-6.654-24.376C 487.022,366.977, 496,352.458, 496,336z M 48,480\n\tc-8.836,0-16-7.163-16-16s 7.164-16, 16-16s 16,7.163, 16,16S 56.836,480, 48,480z M 444,352l-28,0 l0,32 l 16,0 c 8.822,0, 16,7.178, 16,16\n\ts-7.178,16-16,16l-32,0 l0,32 c 8.822,0, 16,7.178, 16,16s-7.178,16-16,16L 240,480 c-17.064,0-26.149-4.691-38.723-11.185\n\tc-15.874-8.196-35.193-18.16-73.277-20.364L 128,277.34 c 21.468-7.214, 40.714-16.715, 57.329-28.412C 233.525,215, 259,163.156, 259,99\n\tc0-15.991, 13.010-29, 29-29s 29,13.009, 29,29c0,42.83-6.207,84.706-18.48,125c-3.099,11.509-6.033,22.913-8.012,32l 0.234,0 L 432,256 \n\tc 8.822,0, 16,7.178, 16,16s-7.178,16-16,16l-16,0 l0,32 l 28,0 c 10.841,0, 20,7.327, 20,16S 454.841,352, 444,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"thumbs-up, up, like, rate, vote up\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 496,336c0-16.458-8.978-30.977-22.654-39.624C 477.568,289.23, 480,280.9, 480,272c0-26.51-21.49-48-48-48l-93.904,0 \n\tC 349.324,183.545, 355,141.704, 355,99c0-36.944-30.056-67-67-67c-36.943,0-67,30.056-67,67c0,51.986-19.361,91.975-57.545,118.855\n\tc-10.5,7.392-22.371,13.743-35.455,19.033L 128,192 L0,192 l0,320 l 128,0 l0-31.499 c 29.945,1.966, 44.484,9.461, 58.595,16.747\n\tC 200.639,504.501, 215.161,512, 240,512l 80,0 l 80,0 c 26.51,0, 48-21.49, 48-48c0-6.249-1.207-12.213-3.38-17.688\n\tC 465.005,440.769, 480,422.141, 480,400c0-8.9-2.432-17.23-6.654-24.376C 487.022,366.977, 496,352.458, 496,336z M 336,256l 96,0 \n\tc 8.822,0, 16,7.178, 16,16s-7.178,16-16,16l-96,0 c-8.822,0-16-7.178-16-16S 327.178,256, 336,256z M 278.545,359.312\n\tC 265.008,367.799, 256,382.844, 256,400c0,17, 8.846,31.925, 22.177,40.453C 274.251,447.411, 272,455.44, 272,464\n\tc0,5.611, 0.973,10.994, 2.742,16L 240,480 c-17.064,0-26.149-4.691-38.723-11.185c-15.874-8.196-35.193-18.16-73.277-20.364L 128,277.34 \n\tc 21.468-7.214, 40.714-16.715, 57.329-28.412C 233.525,215, 259,163.156, 259,99c0-15.991, 13.010-29, 29-29s 29,13.009, 29,29\n\tc0,42.83-6.207,84.706-18.48,125c-3.33,12.37-6.47,24.614-8.438,33.995c-1.271,4.17-1.98,8.582-2.061,13.147\n\tc-0.015,0.301-0.021,0.59-0.021,0.855c0,8.9, 2.432,17.229, 6.654,24.376C 280.979,305.023, 272,319.542, 272,336\n\tC 272,344.462, 274.381,352.408, 278.545,359.312z M 400,480l-80,0 c-8.822,0-16-7.178-16-16s 7.178-16, 16-16l 80,0 c 8.822,0, 16,7.178, 16,16\n\tS 408.822,480, 400,480z M 432,416L 304,416 c-8.822,0-16-7.178-16-16s 7.178-16, 16-16l 128,0 c 8.822,0, 16,7.178, 16,16S 440.822,416, 432,416z\n\t M 444,352L 324,352 c-10.841,0-20-7.327-20-16s 9.159-16, 20-16l 120,0 c 10.841,0, 20,7.327, 20,16S 454.841,352, 444,352z M 64,464\n\tc0,8.837-7.164,16-16,16s-16-7.163-16-16s 7.164-16, 16-16S 64,455.163, 64,464z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lips, mouth, kiss\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 482.257,185.558c-14.605,0-64.466-26.681-64.466-26.681c-28.426-15.856-60.645-33.828-96.991-33.828\n\tc-26.883,0-48.65,4.256-64.8,12.659c-16.149-8.403-37.917-12.659-64.801-12.659c-36.347,0-68.565,17.972-96.991,33.828\n\tc0,0-49.86,26.681-64.466,26.681c-22.295,0-45.304,29.652-15.688,57.387c 15.905,12.17, 31.108,27.354, 47.204,43.429\n\tc 23.498,23.469, 47.796,47.735, 78.253,66.891c 36.043,22.668, 74.146,33.688, 116.489,33.688c 42.342,0, 80.445-11.020, 116.489-33.688\n\tc 30.456-19.155, 54.755-43.422, 78.252-66.891c 16.096-16.075, 31.3-31.259, 47.204-43.429\n\tC 527.562,215.21, 504.552,185.558, 482.257,185.558z M 256,358.151c-112.285,0-159.638-88.491-224.444-138.080\n\tC 54.398,237.55, 180.040,286.65, 256,286.65s 201.602-49.101, 224.443-66.579C 415.637,269.66, 368.284,358.151, 256,358.151z M 256,240.25\n\tc-86.401,0-230.402-26.030-230.402-26.030l 4.512-0.141c 55.732-3.22, 104.998-60.229, 161.090-60.229c 57.601,0, 64.801,21.6, 64.801,21.6\n\ts 7.2-21.6, 64.8-21.6c 56.092,0, 105.357,57.010, 161.091,60.229l 4.511,0.141C 486.401,214.22, 342.4,240.25, 256,240.25z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lips, mouth, kiss\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,220.078l-5.013-0.157C 445.062,216.344, 390.323,153, 328,153c-64,0-72,24-72,24s-8-24-72-24\n\t\t\tc-62.323,0-117.062,63.344-178.987,66.921L0,220.078c0,0, 160,28.922, 256,28.922S 512,220.078, 512,220.078zM 256,295c-84.399,0-224-49-249.38-68.42C 78.626,281.677, 131.24,380, 256,380c 124.76,0, 177.373-98.322, 249.38-153.42\n\t\t\tC 480,246, 340.399,295, 256,295z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"heart-broken, love\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 376,32 C 451.111,32 512,92.89 512,168 C 512,352 256,480 256,480 C 256,480 0,352 0,168 C 0,92.89 60.889,32 136,32 C 167.047,32 195.657,42.412 218.547,59.924 L 176,128 L 288,192 L 224,352 L 400,160 L 288,96 L 323.707,42.439 C 339.807,35.725 357.466,32 376,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"heart, like, love, favorite\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,480l-13.97-6.779C 232.147,468.426,0,353.771,0,179.487C0,98.162, 67.738,32, 151,32c 39.83,0, 77.258,15.237, 105,41.462\n\t\tC 283.742,47.237, 321.17,32, 361,32c 83.262,0, 151,66.162, 151,147.487c0,174.284-232.147,288.938-242.030,293.733L 256,480z M 151,96\n\t\tc-47.972,0-87,37.452-87,83.487c0,67.976, 54.123,127.616, 99.526,165.68c 36.25,30.39, 73.062,52.351, 92.474,63.081\n\t\tc 19.412-10.73, 56.224-32.691, 92.474-63.081C 393.877,307.104, 448,247.463, 448,179.487C 448,133.452, 408.972,96, 361,96\n\t\tc-32.336,0-61.831,17.070-76.974,44.55L 256,191.41l-28.026-50.86C 212.831,113.070, 183.336,96, 151,96z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"heart, like, love, favorite\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 376,32c-51.956,0-97.1,29.138-120,71.96C 233.099,61.138, 187.955,32, 136,32C 60.889,32,0,92.89,0,168c0,184, 256,312, 256,312\n\ts 256-128, 256-312C 512,92.89, 451.111,32, 376,32z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"heart-broken, love\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 377.594,32 C 451.785,32 512,92.22 512,166.416 C 512,312.521 354.088,357.837 256.011,506.125 C 152.25,356.913 0,317.339 0,166.416 C 0,92.22 60.213,32 134.404,32 C 164.581,32 192.399,45.765 214.802,65.917 L 176,128 L 288,192 L 224,352 L 400,160 L 288,96 L 318.948,49.577 C 336.658,38.693 356.553,32 377.594,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"heart, like, love, favorite\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256.661,512l-26.448-36.033c-32.472-44.238-70.793-76.045-107.854-106.805c-31.139-25.844-60.55-50.256-82.931-79.527\n\t\tC 12.897,254.938,0,217.58,0,175.426C0,96.341, 67.112,32, 149.604,32c 28.833,0, 57.551,10.134, 83.049,29.306\n\t\tc 8.305,6.245, 16.154,13.389, 23.352,21.197c 7.195-7.808, 15.041-14.951, 23.346-21.196C 304.845,42.135, 333.562,32, 362.395,32\n\t\tC 444.888,32, 512,96.341, 512,175.426c0,40.521-12.92,76.971-39.499,111.429c-22.229,28.82-51.254,53.197-81.983,79.006\n\t\tc-37.83,31.771-76.948,64.623-108.27,109.488L 256.661,512z M 149.604,96C 102.401,96, 64,131.631, 64,175.426\n\t\tc0,62.126, 41.624,96.673, 99.233,144.49c 29.444,24.438, 61.92,51.393, 92.271,85.654c 30.285-35.332, 63.626-63.332, 93.853-88.719\n\t\tc 28.007-23.521, 54.461-45.738, 72.467-69.083C 439.927,224.298, 448,201.987, 448,175.426C 448,131.631, 409.598,96, 362.395,96\n\t\tc-23.976,0-58.52,17.647-77.708,56.393l-28.664,57.88l-28.684-57.871C 208.132,113.651, 173.579,96, 149.604,96z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"heart, like, love, favorite\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 377.594,32c-53.815,0-100.129,43.777-121.582,89.5C 234.543,75.778, 188.223,32, 134.404,32C 60.213,32,0,92.22,0,166.416\n\tc0,150.923, 152.25,190.497, 256.011,339.709C 354.088,357.837, 512,312.522, 512,166.416C 512,92.22, 451.785,32, 377.594,32z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"heart-broken, love\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,179.078 C 512,222.259 493.391,261.093 463.755,288 L 464,288 L 304,448 C 288,464 272,480 256,480 C 240,480 224,464 208,448 L 48,288 L 48.245,288 C 18.609,261.093 0,222.259 0,179.078 C 0,97.849 65.849,32 147.078,32 C 174.803,32 200.729,39.682 222.864,53.018 L 176,128 L 288,192 L 224,352 L 400,160 L 288,96 L 327.446,36.83 C 339.412,33.686 351.969,32 364.922,32 C 446.15,32 512,97.849 512,179.078 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"heart, like, love, favorite\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,179.078C 512,97.849, 446.15,32, 364.922,32C 321.741,32, 282.907,50.609, 256,80.245C 229.093,50.609, 190.259,32, 147.078,32\n\tC 65.849,32,0,97.849,0,179.078C0,222.259, 18.609,261.093, 48.245,288L 48,288 l 160,160c 16,16, 32,32, 48,32s 32-16, 48-32l 160-160l-0.245,0 \n\tC 493.391,261.093, 512,222.259, 512,179.078z M 420.734,240.616L 258.745,402.745c-0.839,0.839-1.766,1.766-2.745,2.74\n\tc-0.98-0.975-1.907-1.901-2.745-2.74L 91.266,240.617C 73.683,224.653, 64,202.798, 64,179.078C 64,133.269, 101.269,96, 147.078,96\n\tc 23.72,0, 45.575,9.683, 61.538,27.266L 256,175.456l 47.384-52.189C 319.348,105.683, 341.202,96, 364.922,96\n\tC 410.731,96, 448,133.269, 448,179.078C 448,202.798, 438.316,224.653, 420.734,240.616z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"heart, like, love, favorite\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,179.078 C 512,222.259 493.391,261.093 463.755,288 L 464,288 L 304,448 C 288,464 272,480 256,480 C 240,480 224,464 208,448 L 48,288 L 48.245,288 C 18.609,261.093 0,222.259 0,179.078 C 0,97.849 65.849,32 147.078,32 C 190.259,32 229.093,50.609 256,80.245 C 282.907,50.609 321.741,32 364.922,32 C 446.15,32 512,97.849 512,179.078 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"heart, like, love, favorite\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,80l-96,96l-96-96L0,240l 256,256l 256-256L 352,80z M 90.51,240L 160,170.51l 96,96l 96-96L 421.49,240L 256,405.49L 90.51,240z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"heart, like, love, favorite\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,80 L 512,240 L 416,336 L 256,496 L 96,336 L 0,240 L 160,80 L 256,176 L 352,80 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"star, rate, favorite, bookmark\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,198.525L 335.11,172.821L 256,12.53l-79.108,160.291L0,198.525l 128,124.769L 97.784,499.47L 256,416.291l 158.216,83.179\n\tl-30.217-176.176L 512,198.525z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"star, rate, half\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,198.525l-176.89-25.704L 256,12.53l-79.108,160.291L0,198.525l 128,124.769L 97.784,499.47L 256,416.291l 158.216,83.179\n\tl-30.217-176.176L 512,198.525z M 256,376.749l-0.471,0.248L 256,91.613l 55.868,113.198l 124.918,18.152l-90.394,88.111l 21.339,124.415\n\tL 256,376.749z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"star, rate, favorite, bookmark\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,198.525l-176.89-25.704L 256,12.53l-79.108,160.291L0,198.525l 128,124.769L 97.784,499.47L 256,416.291l 158.216,83.179\n\tl-30.217-176.176L 512,198.525z M 256,376.749l-111.731,58.74l 21.338-124.415l-90.393-88.111l 124.92-18.152L 256,91.613l 55.868,113.198\n\tl 124.918,18.152l-90.394,88.111l 21.339,124.415L 256,376.749z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"star, rate, favorite, bookmark\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,192.004L 316.434,192.004L 256,6.009L 195.567,192.004L0,192.004L 158.217,306.956L 97.783,492.951L 256,378L 414.216,492.95L 353.783,306.956 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"star, rate, half\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,192.004L 316.434,192.004 L 256,6.009l-60.433,185.995L0,192.004 l 158.217,114.952L 97.783,492.951L 256,378l 158.216,114.95l-60.433-185.994\n\tL 512,192.004z M 256,338.446L 256,109.563 l 37.185,114.44l 120.33,0 l-97.35,70.729l 37.184,114.44L 256,338.446z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"star, rate, favorite, bookmark\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,109.563l 30,92.329l 7.185,22.111l 23.249,0 l 97.081,0 l-78.541,57.063l-18.809,13.666l 7.185,22.111l 29.999,92.329\n\tl-78.539-57.062L 256,338.446l-18.809,13.665l-78.54,57.062l 30-92.329l 7.184-22.111l-18.809-13.666l-78.541-57.063l 97.082,0 l 23.25,0 \n\tL 226,201.893L 256,109.563 M 256,6.009l-60.433,185.995L0,192.004 l 158.217,114.952L 97.783,492.951L 256,378l 158.216,114.95l-60.433-185.994\n\tL 512,192.004L 316.434,192.004 L 256,6.009L 256,6.009z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bed, sleep, night, hotel, room\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,448L 64,448L 64,512L 128,512L 128,448L 384,448L 384,512L 448,512L 448,448L 512,448L 512,416L0,416 \tzM 416,160L 256,160L 96,160L0,384L 512,384 \tzM 176,128c 44.183,0, 80,14.327, 80,32c0-17.673, 35.817-32, 80-32s 80,14.327, 80,32L 416,32 c0-17.673-14.326-32-32-32L 128,0 \n\t\tc-17.673,0-32,14.327-32,32l0,128 C 96,142.327, 131.818,128, 176,128z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bed, sleep, night, hotel, room\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,160c-17.673,0-32,14.327-32,32l0,64 c0-26.51-21.49-48-48-48l-192,0 c-26.51,0-48,21.49-48,48l0,16 l 288,0 l0,16 L 112,288 \n\t\tc-26.51,0-48-21.49-48-48l0-16 L 64,96 c0-17.673-14.327-32-32-32S0,78.327,0,96l0,320 l 64,0 l0-64 l 384,0 l0,64 l 64,0 L 512,192 \n\t\tC 512,174.327, 497.673,160, 480,160zM 64,224A48,48 10800 1 1 160,224A48,48 10800 1 1 64,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"moon, night, sleep\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 357.906,32.24C 327.781,14.848, 295.597,4.288, 263.12,0c 61.468,80.041, 72.384,192.381, 18.787,285.21\n\tc-53.6,92.835-156.344,139.556-256.394,126.34c 19.949,25.979, 45.188,48.573, 75.314,65.967\n\tc 122.954,70.987, 280.185,28.86, 351.172-94.099C 522.993,260.456, 480.865,103.232, 357.906,32.24z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"contrast\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 64,256\n\tc0-106.039, 85.961-192, 192-192l0,384 C 149.961,448, 64,362.039, 64,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"brightness-contrast, contrast\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,128c-70.692,0-128,57.308-128,128s 57.308,128, 128,128s 128-57.308, 128-128S 326.692,128, 256,128z M 256,336L 256,176 \n\t\tc 44.112,0, 80,35.888, 80,80S 300.112,336, 256,336zM 256,416 C 273.673,416 288,430.327 288,448 L 288,480 C 288,497.673 273.673,512 256,512 C 238.327,512 224,497.673 224,480 L 224,448 C 224,430.327 238.327,416 256,416 ZM 256,96 C 238.327,96 224,81.673 224,64 L 224,32 C 224,14.327 238.327,0 256,0 C 273.673,0 288,14.327 288,32 L 288,64 C 288,81.673 273.673,96 256,96 ZM 480,224 C 497.673,224 512,238.327 512,256 C 512,273.673 497.673,288 480,288 L 448,288 C 430.327,288 416,273.673 416,256 C 416,238.327 430.327,224 448,224 L 480,224 ZM 96,256 C 96,273.673 81.673,288 64,288 L 32,288 C 14.327,288 0,273.673 0,256 C 0,238.327 14.327,224 32,224 L 64,224 C 81.673,224 96,238.327 96,256 ZM 414.392,369.137 L 437.020,391.765 C 449.516,404.261 449.516,424.523 437.020,437.020 C 424.523,449.516 404.261,449.516 391.765,437.020 L 369.137,414.392 C 356.641,401.896 356.641,381.634 369.137,369.137 C 381.634,356.641 401.896,356.641 414.392,369.137 ZM 97.608,142.863 L 74.98,120.235 C 62.483,107.738 62.483,87.477 74.98,74.98 C 87.477,62.483 107.738,62.483 120.235,74.98 L 142.863,97.608 C 155.36,110.105 155.36,130.366 142.863,142.863 C 130.366,155.36 110.105,155.36 97.608,142.863 ZM 414.392,142.863 C 401.896,155.359 381.634,155.359 369.137,142.863 C 356.641,130.366 356.641,110.105 369.137,97.608 L 391.765,74.981 C 404.261,62.484 424.523,62.484 437.020,74.981 C 449.516,87.478 449.516,107.739 437.020,120.236 L 414.392,142.863 ZM 97.608,369.137 C 110.104,356.641 130.366,356.641 142.862,369.137 C 155.359,381.634 155.359,401.896 142.862,414.392 L 120.235,437.020 C 107.738,449.516 87.477,449.516 74.98,437.020 C 62.483,424.523 62.483,404.261 74.98,391.765 L 97.608,369.137 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"brightness-low, day, lightness, sun\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,96A32,32 2520 1 1 288,96A32,32 2520 1 1 224,96zM 96,128A32,32 2520 1 1 160,128A32,32 2520 1 1 96,128zM 224,416A32,32 2520 1 1 288,416A32,32 2520 1 1 224,416zM 352,384A32,32 2520 1 1 416,384A32,32 2520 1 1 352,384zM 64,256A32,32 2520 1 1 128,256A32,32 2520 1 1 64,256zM 384,256A32,32 2520 1 1 448,256A32,32 2520 1 1 384,256zM 352,128A32,32 2520 1 1 416,128A32,32 2520 1 1 352,128zM 96,384A32,32 2520 1 1 160,384A32,32 2520 1 1 96,384zM 256,160c-53.020,0-96,42.98-96,96s 42.98,96, 96,96s 96-42.98, 96-96S 309.020,160, 256,160z M 256,301c-24.813,0-45-20.187-45-45\n\t\tc0-24.813, 20.187-45, 45-45c 24.813,0, 45,20.187, 45,45C 301,280.813, 280.813,301, 256,301z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"brightness-medium, day, lightness, sun\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,211 C 231.187,211 211,231.187 211,256 C 211,280.813 231.187,301 256,301 C 280.813,301 301,280.813 301,256 C 301,231.187 280.813,211 256,211 Z M 256,160 L 256,160 C 309.020,160 352,202.98 352,256 C 352,309.020 309.020,352 256,352 C 202.98,352 160,309.020 160,256 C 160,202.98 202.98,160 256,160 ZM 438.627,393.373 C 451.125,405.87 451.124,426.131 438.627,438.627 C 426.13,451.125 405.87,451.125 393.373,438.627 L 361.373,406.627 C 348.875,394.13 348.875,373.87 361.373,361.373 C 373.869,348.876 394.13,348.875 406.627,361.373 L 438.627,393.373 ZM 150.627,105.373 C 163.125,117.87 163.124,138.131 150.627,150.627 C 138.13,163.125 117.87,163.125 105.373,150.627 L 73.373,118.627 C 60.875,106.13 60.875,85.87 73.373,73.373 C 85.869,60.876 106.13,60.875 118.627,73.373 L 150.627,105.373 ZM 393.372,73.373 C 405.869,60.875 426.13,60.876 438.626,73.373 C 451.124,85.87 451.124,106.13 438.627,118.627 L 406.627,150.627 C 394.129,163.125 373.869,163.125 361.373,150.627 C 348.875,138.131 348.875,117.87 361.373,105.373 L 393.372,73.373 ZM 105.373,361.373 C 117.87,348.875 138.13,348.876 150.627,361.373 C 163.125,373.87 163.125,394.13 150.627,406.627 L 118.627,438.627 C 106.13,451.125 85.87,451.125 73.373,438.627 C 60.876,426.131 60.875,405.87 73.373,393.373 L 105.373,361.373 ZM 256,32 C 273.673,32 288,46.327 288,64 L 288,96 C 288,113.673 273.673,128 256,128 C 238.327,128 224,113.673 224,96 L 224,64 C 224,46.327 238.327,32 256,32 ZM 256,384 C 273.673,384 288,398.326 288,416 L 288,448 C 288,465.674 273.673,480 256,480 C 238.327,480 224,465.674 224,448 L 224,416 C 224,398.326 238.327,384 256,384 ZM 32,256 C 32,238.327 46.327,224 64,224 L 96,224 C 113.673,224 128,238.327 128,256 C 128,273.674 113.673,288 96,288 L 64,288 C 46.327,288 32,273.674 32,256 ZM 384,256 C 384,238.327 398.326,224 416,224 L 448,224 C 465.674,224 480,238.327 480,256 C 480,273.673 465.674,288 448,288 L 416,288 C 398.326,288 384,273.673 384,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"brightness-high, day, lightness, sun\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,211 C 231.187,211 211,231.187 211,256 C 211,280.813 231.187,301 256,301 C 280.813,301 301,280.813 301,256 C 301,231.187 280.813,211 256,211 Z M 256,160 L 256,160 C 309.020,160 352,202.98 352,256 C 352,309.020 309.020,352 256,352 C 202.98,352 160,309.020 160,256 C 160,202.98 202.98,160 256,160 ZM 470.627,425.373 C 483.125,437.87 483.124,458.131 470.627,470.627 C 458.13,483.125 437.87,483.125 425.373,470.627 L 361.373,406.627 C 348.875,394.13 348.875,373.87 361.373,361.373 C 373.869,348.876 394.13,348.875 406.627,361.373 L 470.627,425.373 ZM 150.627,105.373 C 163.125,117.87 163.124,138.131 150.627,150.627 C 138.13,163.125 117.87,163.125 105.373,150.627 L 41.373,86.627 C 28.875,74.13 28.875,53.87 41.373,41.373 C 53.869,28.876 74.13,28.875 86.627,41.373 L 150.627,105.373 ZM 425.372,41.373 C 437.869,28.875 458.13,28.876 470.626,41.373 C 483.124,53.87 483.124,74.13 470.627,86.627 L 406.627,150.627 C 394.129,163.125 373.869,163.125 361.373,150.627 C 348.875,138.131 348.875,117.87 361.373,105.373 L 425.372,41.373 ZM 105.373,361.373 C 117.87,348.875 138.13,348.876 150.627,361.373 C 163.125,373.87 163.125,394.13 150.627,406.627 L 86.627,470.627 C 74.13,483.125 53.87,483.125 41.373,470.627 C 28.876,458.131 28.875,437.87 41.373,425.373 L 105.373,361.373 ZM 256,0 C 273.673,0 288,14.327 288,32 L 288,96 C 288,113.673 273.673,128 256,128 C 238.327,128 224,113.673 224,96 L 224,32 C 224,14.327 238.327,0 256,0 ZM 256,384 C 273.673,384 288,398.326 288,416 L 288,480 C 288,497.674 273.673,512 256,512 C 238.327,512 224,497.674 224,480 L 224,416 C 224,398.326 238.327,384 256,384 ZM 0,256 C 0,238.327 14.327,224 32,224 L 96,224 C 113.673,224 128,238.327 128,256 C 128,273.674 113.673,288 96,288 L 32,288 C 14.327,288 0,273.674 0,256 ZM 384,256 C 384,238.327 398.326,224 416,224 L 480,224 C 497.674,224 512,238.327 512,256 C 512,273.673 497.674,288 480,288 L 416,288 C 398.326,288 384,273.673 384,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"sun, brightness, day, lightness\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 459.975,256l 45.606-56.965l-65.807-31.536l 16.375-71.112l-72.974,0.14l-16.102-71.174L 301.389,57.14L 256,0l-45.389,57.14\n\t\tl-65.686-31.788l-16.102,71.174l-72.973-0.14l 16.374,71.112L 6.419,199.035L 52.026,256L 6.419,312.965l 65.807,31.536l-16.374,71.112\n\t\tl 72.973-0.14l 16.102,71.175l 65.686-31.788L 256,512l 45.389-57.14l 65.686,31.788l 16.102-71.175l 72.974,0.14l-16.375-71.112\n\t\tl 65.807-31.536L 459.975,256z M 256,420.5c-87.765,0-158.913-73.649-158.913-164.5c0-90.851, 71.148-164.5, 158.913-164.5\n\t\tc 87.766,0, 158.913,73.649, 158.913,164.5C 414.913,346.851, 343.766,420.5, 256,420.5zM 128,256A128,128 4680 1 1 384,256A128,128 4680 1 1 128,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"sun, brightness, day, lightness\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,32 C 224,14.327 238.327,0 256,0 C 273.674,0 288,14.327 288,32 C 288,49.673 273.674,64 256,64 C 238.327,64 224,49.673 224,32 Z M 224,480 C 224,462.327 238.327,448 256,448 C 273.674,448 288,462.327 288,480 C 288,497.673 273.674,512 256,512 C 238.327,512 224,497.673 224,480 Z M 448,256 C 448,238.327 462.327,224 480,224 C 497.673,224 512,238.327 512,256 C 512,273.674 497.673,288 480,288 C 462.327,288 448,273.674 448,256 Z M 0,256 C 0,238.327 14.327,224 32,224 C 49.673,224 64,238.327 64,256 C 64,273.674 49.673,288 32,288 C 14.327,288 0,273.674 0,256 Z M 384.001,96 C 384.001,78.327 398.328,64 416.001,64 C 433.674,64 448.001,78.327 448.001,96 C 448.001,113.673 433.674,128 416.001,128 C 398.328,128 384.001,113.673 384.001,96 Z M 64,416 C 64,398.327 78.327,384 96,384 C 113.673,384 128,398.327 128,416 C 128,433.673 113.673,448 96,448 C 78.327,448 64,433.673 64,416 Z M 384.001,416 C 384.001,398.327 398.328,384 416.001,384 C 433.674,384 448.001,398.327 448.001,416 C 448.001,433.673 433.674,448 416.001,448 C 398.328,448 384.001,433.673 384.001,416 Z M 64,96 C 64,78.327 78.327,64 96,64 C 113.673,64 128,78.327 128,96 C 128,113.673 113.673,128 96,128 C 78.327,128 64,113.673 64,96 ZM 256,192 C 220.71,192 192,220.71 192,256 C 192,291.29 220.71,320 256,320 C 291.29,320 320,291.29 320,256 C 320,220.71 291.29,192 256,192 Z M 256,128 L 256,128 C 326.692,128 384,185.308 384,256 C 384,326.692 326.692,384 256,384 C 185.308,384 128,326.692 128,256 C 128,185.308 185.308,128 256,128 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"umbrella, weather, rainy\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 287.933,33.98 C 414.246,49.698 512,157.43 512,288 L 503.418,288 C 492.351,268.876 471.687,256 448.001,256 C 424.316,256 403.652,268.876 392.585,288 L 375.417,288 C 364.35,268.876 343.686,256 320.001,256 C 308.339,256 297.413,259.127 288.001,264.579 L 288.001,432 C 288.001,476.112 252.113,512 208.001,512 C 163.889,512 128.001,476.112 128.001,432 C 128.001,414.327 142.328,400 160.001,400 C 177.674,400 192.001,414.327 192.001,432 C 192.001,440.822 199.179,448 208.001,448 C 216.823,448 224.001,440.822 224.001,432 L 224.001,264.578 C 214.588,259.127 203.663,256 192.001,256 C 168.315,256 147.651,268.876 136.584,288 L 119.417,288 C 108.349,268.876 87.685,256 64,256 C 40.315,256 19.651,268.876 8.583,288 L 0,288 C 0,157.43 97.754,49.698 224.067,33.98 C 224.027,33.325 224,32.666 224,32 C 224,14.327 238.327,0 256,0 C 273.673,0 288,14.327 288,32 C 288,32.666 287.973,33.325 287.933,33.98 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"fan, wind\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 460.453,252.301c-25.392-25.391-56.613-41.391-89.355-48.021l 102.556-102.556c 21.799-21.801, 33.919-49.609-7.144-77.164\n\tC 398.975-15.533, 310.389-6.541, 252.302,51.547c-25.392,25.392-41.391,56.614-48.021,89.355L 101.725,38.346\n\tC 79.924,16.548, 52.115,4.427, 24.561,45.49C-15.532,113.025-6.54,201.611, 51.547,259.698c 25.392,25.392, 56.614,41.391, 89.356,48.021\n\tL 38.347,410.276c-21.799,21.801-33.919,49.609, 7.144,77.162c 67.535,40.094, 156.121,31.102, 214.208-26.984\n\tc 25.392-25.393, 41.392-56.614, 48.021-89.357l 102.556,102.556c 21.802,21.799, 49.609,33.92, 77.164-7.143\n\tC 527.533,398.975, 518.54,310.389, 460.453,252.301z M 256,320c-35.346,0-64-28.653-64-64c0-35.346, 28.654-64, 64-64\n\tc 35.347,0, 64,28.654, 64,64C 320,291.347, 291.347,320, 256,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"windy, weather\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 336,160c-26.51,0-48-21.49-48-48s 21.49-48, 48-48s 48,21.49, 48,48c0,2.305-0.173,4.569-0.486,6.788l 31.675,4.525\n\t\tC 415.713,119.615, 416,115.842, 416,112c0-44.183-35.817-80-80-80s-80,35.817-80,80s 35.817,80, 80,80l 176,0 l0-32 L 336,160 zM 64,384c0,53.019, 42.981,96, 96,96s 96-42.981, 96-96c0-8.032-0.992-15.831-2.851-23.287l-31.056,7.764\n\t\tC 223.333,373.447, 224,378.646, 224,384c0,35.347-28.654,64-64,64s-64-28.653-64-64s 28.654-64, 64-64l 352,0 l0-32 L 160,288 \n\t\tC 106.981,288, 64,330.979, 64,384zM 32,144c0-44.183, 35.817-80, 80-80s 80,35.817, 80,80c0,11.811-2.58,23.012-7.174,33.103l 29.157,13.253\n\t\tC 220.415,176.229, 224,160.534, 224,144c0-61.856-50.144-112-112-112S0,82.144,0,144c0,61.855, 50.144,112, 112,112l 400,0 l0-32 L 112,224 \n\t\tC 67.818,224, 32,188.183, 32,144z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"weather-snow, snow\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 445.502,148.031 C 483.66,157.321 512,191.727 512,232.771 C 512,280.889 473.065,319.902 424.996,319.994 L 424.996,320 L 96.865,320 C 43.367,320 0,276.607 0,223.076 C 0,169.548 43.367,126.154 96.867,126.155 C 102.768,126.155 108.541,126.712 114.151,127.724 C 113.709,124.627 113.469,121.465 113.469,118.247 C 113.469,81.324 143.385,51.386 180.29,51.386 C 201.799,51.386 220.923,61.567 233.144,77.366 C 254.938,49.747 288.675,32 326.571,32 C 391.273,32 443.881,83.681 445.502,148.031 ZM 447.984,404.084 C 448.137,406.582 447.141,408.326 444.992,409.328 L 389.57,432.002 L 444.992,454.891 C 447.142,455.744 448.138,457.42 447.984,459.912 C 447.838,462.414 445.999,466.438 442.463,471.999 C 438.929,477.703 436.055,481.198 433.835,482.479 C 431.614,483.765 429.581,483.765 427.741,482.479 L 378.749,449.324 L 385.189,505.371 C 385.653,507.507 384.639,509.146 382.194,510.287 C 379.741,511.429 374.987,512 367.931,512 C 360.879,512 356.124,511.426 353.682,510.287 C 351.223,509.146 350.223,507.507 350.682,505.371 L 357.125,449.324 L 308.359,482.479 C 306.519,483.765 304.445,483.765 302.152,482.479 C 299.851,481.198 296.933,477.703 293.411,471.999 C 289.869,466.438 288.080,462.414 288.002,459.912 C 287.923,457.42 288.958,455.745 291.112,454.891 L 346.537,432.002 L 291.112,409.328 C 288.958,408.33 287.923,406.582 288.002,404.084 C 288.080,401.591 289.869,397.562 293.411,392.001 C 296.936,386.443 299.848,383.026 302.152,381.741 C 304.453,380.459 306.519,380.459 308.359,381.741 L 357.125,414.671 L 350.682,358.846 C 350.223,356.563 351.223,354.857 353.682,353.72 C 356.129,352.571 360.879,352 367.931,352 C 374.987,352 379.741,352.578 382.194,353.72 C 384.639,354.854 385.653,356.563 385.189,358.846 L 378.749,414.671 L 427.741,381.741 C 429.581,380.459 431.617,380.459 433.835,381.741 C 436.055,383.027 438.929,386.517 442.463,392.215 C 446,397.631 447.831,401.586 447.984,404.084 ZM 223.984,404.084 C 224.137,406.582 223.141,408.326 220.992,409.328 L 165.57,432.002 L 220.992,454.891 C 223.142,455.744 224.138,457.42 223.984,459.912 C 223.838,462.414 221.999,466.438 218.463,471.999 C 214.929,477.703 212.055,481.198 209.835,482.479 C 207.614,483.765 205.581,483.765 203.741,482.479 L 154.749,449.324 L 161.189,505.371 C 161.653,507.507 160.639,509.146 158.194,510.287 C 155.741,511.429 150.987,512 143.931,512 C 136.879,512 132.124,511.426 129.682,510.287 C 127.223,509.146 126.223,507.507 126.682,505.371 L 133.125,449.324 L 84.359,482.479 C 82.519,483.765 80.445,483.765 78.152,482.479 C 75.851,481.198 72.933,477.703 69.411,471.999 C 65.869,466.438 64.080,462.414 64.002,459.912 C 63.923,457.42 64.958,455.745 67.112,454.891 L 122.537,432.002 L 67.112,409.328 C 64.958,408.33 63.923,406.582 64.002,404.084 C 64.080,401.591 65.869,397.562 69.411,392.001 C 72.936,386.443 75.848,383.026 78.152,381.741 C 80.453,380.459 82.519,380.459 84.359,381.741 L 133.125,414.671 L 126.682,358.846 C 126.223,356.563 127.223,354.857 129.682,353.72 C 132.129,352.571 136.879,352 143.931,352 C 150.987,352 155.741,352.578 158.194,353.72 C 160.639,354.854 161.653,356.563 161.189,358.846 L 154.749,414.671 L 203.741,381.741 C 205.581,380.459 207.617,380.459 209.835,381.741 C 212.055,383.027 214.929,386.517 218.463,392.215 C 222,397.631 223.831,401.586 223.984,404.084 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"weather-rain, rainy\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 445.502,148.031 C 483.66,157.321 512,191.727 512,232.771 C 512,280.889 473.065,319.902 424.996,319.994 L 424.996,320 L 96.865,320 C 43.367,320 0,276.607 0,223.076 C 0,169.548 43.367,126.154 96.867,126.155 C 102.768,126.155 108.541,126.712 114.151,127.724 C 113.709,124.627 113.469,121.465 113.469,118.247 C 113.469,81.324 143.385,51.386 180.29,51.386 C 201.799,51.386 220.923,61.567 233.144,77.366 C 254.938,49.747 288.675,32 326.571,32 C 391.273,32 443.881,83.681 445.502,148.031 ZM 112,352 C 112,352 160,416 160,464 C 160,490.51 138.51,512 112,512 C 85.49,512 64,490.51 64,464 C 64,416 112,352 112,352 ZM 400,352 C 400,352 448,416 448,464 C 448,490.51 426.51,512 400,512 C 373.49,512 352,490.51 352,464 C 352,416 400,352 400,352 ZM 256,320 C 256,320 304,384 304,432 C 304,458.51 282.51,480 256,480 C 229.49,480 208,458.51 208,432 C 208,384 256,320 256,320 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"weather-lightning, lightning\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 445.502,148.031C 443.881,83.681, 391.273,32, 326.57,32c-37.896,0-71.632,17.747-93.426,45.366\n\t\tc-12.221-15.8-31.345-25.98-52.854-25.98c-36.905,0-66.821,29.938-66.821,66.861c0,3.218, 0.24,6.38, 0.682,9.477\n\t\tc-5.61-1.012-11.383-1.569-17.284-1.569C 43.367,126.154,0,169.548,0,223.076C0,276.607, 43.367,320, 96.865,320l 82.737,0 l 21.333-64\n\t\tl 170.842,0 l-32,64l 85.219,0 l0-0.007 C 473.065,319.902, 512,280.889, 512,232.771C 512,191.727, 483.66,157.321, 445.502,148.031zM 320,288L 224,288L 192,384L 256,384L 224,480L 352,352L 288,352 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"temperature, thermometer\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,360.564L 192,64 c0-17.673-14.326-32-32-32c-17.673,0-32,14.327-32,32l0,296.564 C 108.871,371.631, 96,392.313, 96,416\n\t\tc0,35.347, 28.653,64, 64,64s 64-28.653, 64-64C 224,392.313, 211.13,371.631, 192,360.564zM 256,64L 416,64L 416,96L 256,96zM 256,160L 416,160L 416,192L 256,192zM 256,256L 416,256L 416,288L 256,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"temperature, thermometer\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,345.859L 288,160 c0-17.673-14.326-32-32-32c-17.673,0-32,14.327-32,32l0,185.859 c-10.869,9.131-17.78,22.822-17.78,38.129\n\t\t\tc0,27.492, 22.287,49.779, 49.78,49.779c 27.494,0, 49.779-22.287, 49.779-49.779C 305.781,368.682, 298.869,354.99, 288,345.859zM 352,299.316L 352,102.4 c0-56.32-43.199-102.4-96-102.4c-52.8,0-96,46.080-96,102.4l0,196.917 \n\t\t\tc-19.919,22.565-32.014,52.205-32.014,84.672C 127.988,454.688, 185.302,512, 256.001,512c 70.699,0, 128.013-57.313, 128.013-128.012\n\t\t\tC 384.014,351.521, 371.92,321.883, 352,299.316z M 256.001,480c-53.026,0-96.014-42.986-96.014-96.012\n\t\t\tc0-28.438, 12.367-53.982, 32.014-71.564L 192.001,102.4 c0-19.079, 6.94-36.99, 19.546-50.435C 223.617,39.091, 239.404,32, 256.001,32\n\t\t\tc 16.595,0, 32.384,7.091, 44.455,19.966C 313.061,65.41, 320,83.321, 320,102.4l0,210.023 c 19.646,17.582, 32.014,43.127, 32.014,71.563\n\t\t\tC 352.014,437.014, 309.028,480, 256.001,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"snowflake, winter, weather\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 489.923,362.834L 434.663,330.932L 482.64,303.323L 458.416,261.232L 386.060,302.87L 304.564,255.817L 385.742,208.948L 458.416,250.769L 482.64,208.677L 434.348,180.887L 489.764,148.893L 465.482,106.835L 410.226,138.736L 410.303,83.386L 361.74,83.318L 361.619,166.799L 280.123,213.85L 280.123,120.111L 352.679,78.086L 328.338,36.063L 280.123,63.99L 280.123,0L 231.559,0L 231.559,63.807L 183.662,36.063L 159.322,78.086L 231.559,119.93L 231.559,214.033L 150.38,167.165L 150.261,83.318L 101.698,83.386L 101.777,139.104L 46.361,107.109L 22.077,149.167L 77.335,181.070L 29.36,208.677L 53.585,250.769L 125.939,209.13L 207.438,256.183L 126.257,303.053L 53.585,261.232L 29.36,303.323L 77.651,331.113L 22.236,363.107L 46.518,405.166L 101.775,373.264L 101.698,428.615L 150.261,428.683L 150.38,345.201L 231.877,298.148L 231.877,391.889L 159.322,433.912L 183.662,475.938L 231.877,448.010L 231.877,512L 280.441,512L 280.441,448.194L 328.338,475.938L 352.679,433.912L 280.441,392.070L 280.441,297.969L 361.619,344.836L 361.74,428.683L 410.303,428.615L 410.225,372.898L 465.642,404.895 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"starburst\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256.001,40.007L 296.549,0L 322.744,50.579L 373.67,25.058L 382.956,81.259L 439.276,72.725L 430.74,129.044L 486.942,138.331L 461.422,189.256L 512,215.452L 471.993,256L 512,296.548L 461.422,322.744L 486.942,373.669L 430.74,382.956L 439.276,439.275L 382.956,430.741L 373.67,486.942L 322.744,461.421L 296.549,512L 256.001,471.993L 215.451,512L 189.255,461.421L 138.331,486.942L 129.044,430.741L 72.725,439.275L 81.261,382.956L 25.060,373.669L 50.579,322.744L0,296.548L 40.008,256L0,215.452L 50.579,189.256L 25.060,138.331L 81.261,129.044L 72.725,72.725L 129.044,81.259L 138.331,25.058L 189.255,50.579L 215.451,0 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spotlight, featured, lights, dualtone, highlight\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 498.608,439.539c 0.003,0.002, 0.005,0.004, 0.008,0.006L 495.111,436l-1.134,0 c-4.219-2.932-9.083-5.615-14.487-8l 7.711,0 \n\t\tl-7.911-8l-24.88,0 c-11.764-2.57-24.752-4-38.41-4c-13.662,0-26.653,1.43-38.419,4.002c 0.003-0.001, 0.006-0.001, 0.009-0.002l-84.852,0 \n\t\tl 4.356,8l 55.415,0 c 0.001,0, 0.002-0.001, 0.003-0.001c-5.407,2.386-10.273,5.070-14.493,8.003c 0.001,0, 0.002-0.001, 0.003-0.002l-36.57,0 \n\t\tl 4.356,8l 22.901,0 c 0.002-0.002, 0.004-0.004, 0.006-0.006c-2.348,2.557-4.264,5.232-5.692,8.008c 0.001-0.001, 0.001-0.002, 0.001-0.002\n\t\tl-12.858,0 l 4.356,8l 5.812,0 c 0.001-0.005, 0.002-0.009, 0.003-0.014C 320.117,461.31, 320,462.648, 320,464c0,1.348, 0.117,2.681, 0.334,4\n\t\tl-1.454,0 l 3.015,5.536l 0.003-0.001C 330.742,495.477, 369.511,512, 416,512c 53.020,0, 96-21.49, 96-48\n\t\tC 512,455.065, 507.112,446.702, 498.608,439.539z M 330.755,441.908c0,0.001-0.001,0.001-0.002,0.002\n\t\tC 330.754,441.909, 330.755,441.909, 330.755,441.908z M 321.382,455.858c-0.022,0.065-0.043,0.131-0.065,0.196\n\t\tC 321.338,455.989, 321.359,455.924, 321.382,455.858z M 322.184,453.791c-0.039,0.090-0.079,0.18-0.117,0.27\n\t\tC 322.104,453.97, 322.145,453.881, 322.184,453.791z M 321.36,472.076c 0.016,0.046, 0.029,0.093, 0.046,0.139\n\t\tC 321.391,472.169, 321.376,472.122, 321.36,472.076z M 320.606,469.393c 0.002,0.008, 0.004,0.016, 0.005,0.022\n\t\tC 320.61,469.408, 320.608,469.4, 320.606,469.393z M 320.943,470.729c 0.012,0.039, 0.021,0.079, 0.033,0.118\n\t\tC 320.965,470.808, 320.954,470.768, 320.943,470.729zM 179.215,420c-15.685-2.57-33.003-4-51.215-4c-18.211,0-35.529,1.43-51.213,4L 36.911,420 l-8.439,8l 14.873,0 \n\t\tc 0.018-0.006, 0.038-0.012, 0.056-0.018c-7.228,2.389-13.731,5.078-19.37,8.018l-3.999,0 l-8.44,8l 0.022,0 C 4.161,450.089,0,456.861,0,464\n\t\tc0,26.51, 57.308,48, 128,48c 65.084,0, 118.82-18.216, 126.937-41.794l 0.021,0.002l 1.057-2.208l-0.461,0 c 0.29-1.319, 0.446-2.652, 0.446-4\n\t\ts-0.156-2.683-0.446-4.002c0,0.001,0,0.001,0,0.002l 4.29,0 l 3.829-8l-11.706,0 c-1.902-2.771-4.455-5.445-7.581-8l 23.116,0 l 3.828-8l-39.36,0 \n\t\tc0,0, 0.001,0.001, 0.002,0.001c-5.625-2.933-12.111-5.616-19.318-8.001l 62.506,0 l 3.829-8l-99.775,0 C 179.213,420, 179.214,420, 179.215,420\n\t\tz M 253.245,454.061c-0.051-0.090-0.104-0.18-0.156-0.27C 253.141,453.881, 253.194,453.971, 253.245,454.061z M 254.244,456.054\n\t\tc-0.029-0.064-0.057-0.13-0.086-0.194C 254.188,455.924, 254.215,455.988, 254.244,456.054z M 233.737,436.945L 233.737,436.945\n\t\tL 233.737,436.945zM 432.14,100L 374.503,100L 366.062,108L 428.312,108 \tzM 424.482,116L 357.623,116L 349.184,124L 420.653,124 \tzM 447.455,68L 408.262,68L 399.822,76L 443.626,76 \tzM 439.798,84L 391.382,84L 382.942,92L 435.969,92 \tzM 455.113,52L 425.142,52L 416.701,60L 451.284,60 \tzM 462.771,36L 442.021,36L 433.581,44L 458.941,44 \tzM 478.086,4L 475.78,4L 467.34,12L 474.257,12 \tzM 470.428,20L 458.9,20L 450.461,28L 466.6,28 \tzM 409.167,148L 323.864,148L 315.424,156L 405.339,156 \tzM 416.825,132L 340.743,132L 332.304,140L 412.996,140 \tzM 393.852,180L 290.104,180L 281.665,188L 390.023,188 \tzM 401.51,164L 306.984,164L 298.545,172L 397.681,172 \tzM 471.38,412L 463.47,404L 286.646,404L 290.475,396L 455.56,396L 447.649,388L 294.304,388L 298.133,380L 439.739,380L 431.829,372L 301.961,372L 305.79,364L 423.918,364L 416.008,356L 309.619,356L 313.447,348L 408.098,348L 400.188,340L 317.276,340L 321.105,332L 392.277,332L 384.367,324L 324.934,324L 328.763,316L 328.763,316L 376.457,316L 368.546,308L 332.592,308L 336.42,300L 360.636,300L 352.726,292L 340.249,292L 340.249,292L 344.078,284L 344.078,284L 344.815,284L 344.318,283.497L 347.906,276L 336.905,276L 328.995,268L 328.995,268L 351.735,268L 355.564,260L 321.085,260L 321.085,260L 313.174,252L 359.393,252L 363.222,244L 305.264,244L 297.354,236L 367.051,236L 370.879,228L 289.443,228L 289.443,228L 281.533,220L 281.533,220L 374.708,220L 378.537,212L 273.623,212L 273.623,212L 265.712,204L 265.713,204L 382.365,204L 386.194,196L 273.226,196L 265.264,203.546L 257.802,196L 170.744,196L 175.102,204L 264.785,204L 256.346,212L 179.458,212L 183.815,220L 247.906,220L 239.466,228L 188.172,228L 192.529,236L 231.026,236L 231.026,236L 222.587,244L 222.586,244L 196.886,244L 201.243,252L 214.147,252L 214.147,252L 205.708,260L 205.707,260L 205.6,260L 205.636,260.067L 197.267,268L 209.957,268L 214.313,276L 188.828,276L 180.388,284L 218.67,284L 223.027,292L 171.948,292L 163.508,300L 227.384,300L 231.741,308L 155.068,308L 146.628,316L 236.098,316L 240.455,324L 138.189,324L 129.749,332L 244.812,332L 249.169,340L 121.309,340L 112.87,348L 253.526,348L 257.883,356L 104.43,356L 95.99,364L 262.239,364L 262.239,364L 266.597,372L 87.55,372L 79.11,380L 270.953,380L 270.953,380L 275.311,388L 70.67,388L 62.231,396L 279.667,396L 279.667,396L 284.024,404L 53.791,404L 45.351,412L 282.816,412L 285.419,406.562L 288.381,412 \tzM 114.104,92L 154.968,92L 147.058,84L 109.748,84 \tzM 96.677,60L 123.327,60L 115.417,52L 92.32,52 \tzM 105.391,76L 139.148,76L 131.237,68L 101.034,68 \tzM 87.963,44L 107.507,44L 99.596,36L 83.606,36 \tzM 75.865,12L 67.955,4L 66.179,4L 70.535,12 \tzM 131.532,124L 186.609,124L 178.699,116L 127.175,116 \tzM 79.249,28L 91.686,28L 83.776,20L 74.892,20 \tzM 122.818,108L 170.789,108L 162.879,100L 118.461,100 \tzM 148.96,156L 218.251,156L 210.34,148L 144.603,148 \tzM 140.246,140L 202.43,140L 194.52,132L 135.889,132 \tzM 157.674,172L 234.071,172L 226.161,164L 153.317,164 \tzM 166.388,188L 249.892,188L 241.981,180L 162.031,180 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bookmark\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 417.889,0L 416,0 L 32,0 l0,448 l 32,64l 384,0 L 448,60.224 L 417.889,0z M 398.111,32l 16,32L 320,64 l-16-32L 398.111,32 z M 64,32l 112,0 l 16,32L 80,64 L 64,32z\n\t M 416,480L 96,480 L 96,96 l 96,0 l0,192 l 64-64l 64,64L 320,96 l 96,0 L 416,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bookmarks, favorite, ribbon\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,64L 128,512L 288,352L 448,512L 448,64 \tzM 384,0L 64,0L 64,448L 96,416L 96,32L 384,32 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bookmark, ribbon\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,0l0,512 l 160-160l 160,160L 416,0 L 96,0 z M 384,434.745l-128-128l-128,128L 128,32 l 256,0 L 384,434.745 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bookmark, ribbon\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,0L 96,512L 256,352L 416,512L 416,0 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"eye, views, vision, visit\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 178,256A78,78 4680 1 1 334,256A78,78 4680 1 1 178,256zM 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,373\n\t\tc-104,0-207.999-90.999-208-117c 0.001-26.001, 104-117, 208-117s 207.997,90.999, 208,117C 463.997,282.001, 360,373, 256,373z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"eye, views, vision, visit\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,160C 151.316,160, 58.378,210.278,0,288c 58.378,77.723, 151.316,128, 256,128c 104.684,0, 197.622-50.277, 256-128\n\tC 453.622,210.278, 360.684,160, 256,160z M 224,224c 17.673,0, 32,14.327, 32,32s-14.327,32-32,32s-32-14.327-32-32S 206.327,224, 224,224z\n\t M 386.808,352.648c-19.824,10.129-40.826,17.931-62.423,23.188C 302.141,381.254, 279.134,384, 256,384\n\tc-23.133,0-46.141-2.746-68.384-8.162c-21.597-5.259-42.599-13.061-62.423-23.188c-31.51-16.101-60.111-38.205-83.82-64.649\n\tc 23.709-26.444, 52.31-48.55, 83.82-64.649c 16.168-8.261, 33.121-14.973, 50.541-20.020C 165.79,218.453, 160,236.549, 160,256\n\tc0,53.020, 42.981,96, 96,96c 53.019,0, 96-42.98, 96-96c0-19.451-5.791-37.547-15.733-52.67c 17.419,5.048, 34.372,11.76, 50.541,20.021\n\tc 31.511,16.099, 60.109,38.204, 83.819,64.649C 446.917,314.443, 418.318,336.55, 386.808,352.648z M 430.459,121.861\n\tC 376.099,94.084, 317.403,80, 256,80c-61.403,0-120.099,14.084-174.459,41.861C 52.155,136.877, 24.675,155.813,0,177.899l0,54.603 \n\tc 27.669-29.283, 60.347-53.877, 96.097-72.145C 145.907,134.905, 199.706,122, 256,122s 110.093,12.905, 159.902,38.358\n\tc 35.751,18.268, 68.429,42.862, 96.098,72.145L 512,177.9 C 487.325,155.813, 459.846,136.877, 430.459,121.861z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"eye, views, vision, visit\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,409.5c-74.095,0-140.032-36.302-172.742-57.941c-21.921-14.502-42.094-31.101-56.803-46.74\n\t\tC 8.654,285.892,0,269.924,0,256.001c0-13.924, 8.654-29.892, 26.456-48.819c 14.709-15.639, 34.882-32.238, 56.803-46.74\n\t\tC 115.968,138.803, 181.906,102.5, 256,102.5c 74.094,0, 140.031,36.303, 172.741,57.942c 21.92,14.502, 42.093,31.101, 56.803,46.74\n\t\tc 17.801,18.926, 26.455,34.894, 26.456,48.815c-0.001,13.927-8.655,29.895-26.456,48.822c-14.709,15.639-34.882,32.237-56.803,46.739\n\t\tC 396.031,373.198, 330.095,409.5, 256,409.5z M 48.817,256c 5.511,10.143, 28.255,34.967, 67.025,59.47\n\t\tc 27.2,17.19, 81.577,46.029, 140.158,46.029c 58.582,0, 112.959-28.839, 140.158-46.030c 38.77-24.503, 61.514-49.326, 67.024-59.469\n\t\tc-5.512-10.143-28.255-34.966-67.025-59.47C 368.958,179.339, 314.581,150.5, 256,150.5s-112.958,28.839-140.157,46.030\n\t\tC 77.073,221.033, 54.328,245.857, 48.817,256zM 256,322.999c-36.944,0-67-30.056-67-66.999c0-36.944, 30.056-67, 67-67c 36.943,0, 66.999,30.056, 66.999,67\n\t\tC 322.999,292.943, 292.943,322.999, 256,322.999z M 256,220.905c-19.352,0-35.095,15.743-35.095,35.095s 15.743,35.095, 35.095,35.095\n\t\ts 35.095-15.743, 35.095-35.095S 275.352,220.905, 256,220.905z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"eye, views, vision, visit\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 92.959,357.768 C 89.468,355.604 86.223,353.52 83.259,351.558 C 61.338,337.056 41.165,320.458 26.456,304.818 C 8.654,285.892 0,269.924 0,256.001 C 0,242.077 8.654,226.109 26.454,207.183 C 41.163,191.544 61.336,174.945 83.257,160.443 C 115.967,138.804 181.905,102.501 255.999,102.501 C 262.311,102.501 268.558,102.783 274.737,103.279 L 240.534,151.163 C 187.991,155.534 140.63,180.865 115.842,196.531 C 77.072,221.035 54.327,245.859 48.816,256.002 C 54.327,266.145 77.071,290.969 115.841,315.472 C 117.44,316.482 119.141,317.536 120.923,318.619 L 92.959,357.768 ZM 485.544,207.182c-14.71-15.639-34.883-32.238-56.803-46.74c-16.325-10.8-40.938-25.242-70.702-37.007l 57.422-80.392\n\t\tl-30.922-22.087l-320,448l 30.922,22.088l 70.088-98.124c 27.191,9.628, 58.037,16.58, 90.451,16.58\n\t\tc 74.095,0, 140.031-36.302, 172.741-57.941c 21.921-14.502, 42.094-31.101, 56.803-46.739c 17.801-18.927, 26.455-34.895, 26.456-48.822\n\t\tC 511.999,242.076, 503.345,226.108, 485.544,207.182z M 396.158,315.47C 368.959,332.661, 314.582,361.5, 256,361.5\n\t\tc-21.332,0-42.102-3.827-61.207-9.521l 29.037-40.651c 9.453,5.51, 20.44,8.673, 32.17,8.673c 35.347,0, 64-28.653, 64-64\n\t\tc0-19.321-8.572-36.626-22.11-48.357l 31.258-43.76c 28.146,9.813, 51.818,23.046, 67.010,32.647\n\t\tc 38.771,24.504, 61.514,49.327, 67.025,59.47C 457.672,266.144, 434.928,290.967, 396.158,315.47z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"eye, views, vision, visit\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,409.5c-74.095,0-140.032-36.302-172.742-57.941c-21.921-14.502-42.094-31.101-56.803-46.74\n\t\tC 8.654,285.892,0,269.924,0,256.001c0-13.924, 8.654-29.892, 26.456-48.819c 14.709-15.639, 34.882-32.238, 56.803-46.74\n\t\tC 115.968,138.803, 181.906,102.5, 256,102.5c 74.094,0, 140.031,36.303, 172.741,57.942c 21.92,14.502, 42.093,31.101, 56.803,46.74\n\t\tc 17.801,18.926, 26.455,34.894, 26.456,48.815c-0.001,13.927-8.655,29.895-26.456,48.822c-14.709,15.639-34.882,32.237-56.803,46.739\n\t\tC 396.031,373.198, 330.095,409.5, 256,409.5z M 48.817,256c 5.511,10.143, 28.255,34.967, 67.025,59.47\n\t\tc 27.2,17.19, 81.577,46.029, 140.158,46.029c 58.582,0, 112.959-28.839, 140.158-46.030c 38.77-24.503, 61.514-49.326, 67.024-59.469\n\t\tc-5.512-10.143-28.255-34.966-67.025-59.47C 368.958,179.339, 314.581,150.5, 256,150.5s-112.958,28.839-140.157,46.030\n\t\tC 77.073,221.033, 54.328,245.857, 48.817,256zM 192,256A64,64 2520 1 1 320,256A64,64 2520 1 1 192,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"eye-blocked, views, vision, visit, banned, blocked, forbidden, private\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,320c 35.346,0, 64-28.654, 64-64c0-13.627-4.271-26.249-11.531-36.628l 151.68-176.959l-24.297-20.825L 284.183,198.535\n\t\tC 275.678,194.355, 266.115,192, 256,192c-35.346,0-64,28.654-64,64c0,13.627, 4.272,26.249, 11.531,36.628L 51.852,469.587\n\t\tl 24.296,20.826l 151.669-176.947C 236.322,317.645, 245.884,320, 256,320zM 165.436,287.902C 161.919,277.92, 160,267.185, 160,256c0-53.020, 42.979-96, 96-96c 6.037,0, 11.941,0.563, 17.67,1.629\n\t\tl 37.081-43.262C 292.753,114.318, 274.377,112, 256,112C 128,112, 0.001,223.999,0,256c0,18.815, 44.258,65.279, 106.74,100.381\n\t\tL 165.436,287.902zM 405.26,155.62l-58.695,68.478C 350.081,234.080, 352,244.815, 352,256c0,53.020-42.98,96-96,96\n\t\tc-6.037,0-11.941-0.563-17.67-1.629l-37.081,43.262C 219.248,397.682, 237.623,400, 256,400c 128,0, 255.997-111.999, 256-144\n\t\tC 511.998,237.185, 467.741,190.72, 405.26,155.62z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"eye, views, vision, visit\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,112C 128,112, 0.001,223.999,0,256l0,0c 0.001,32.001, 128,144, 256,144s 255.997-111.999, 256-144l0,0\n\t\tC 511.997,223.999, 384,112, 256,112z M 256,352c-53.021,0-96-42.98-96-96c0-53.020, 42.979-96, 96-96c 53.020,0, 96,42.98, 96,96\n\t\tC 352,309.020, 309.020,352, 256,352zM 192,256A64,64 7560 1 1 320,256A64,64 7560 1 1 192,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"eye, views, vision, visit\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,112C 128,112, 0.001,223.999,0,256l0,0c 0.001,32.001, 128,144, 256,144s 255.997-111.999, 256-144l0,0\n\t\tC 511.997,223.999, 384,112, 256,112z M 256,352c-53.021,0-96-42.98-96-96c0-53.020, 42.979-96, 96-96c 53.020,0, 96,42.98, 96,96\n\t\tC 352,309.020, 309.020,352, 256,352zM 224,256A32,32 12600 1 1 288,256A32,32 12600 1 1 224,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"eye-blocked, views, vision, visit, banned, blocked, forbidden, private\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 419.661,148.208 C 458.483,175.723 490.346,212.754 512,256 C 464.439,350.979 367.657,416 256,416 C 224.717,416 194.604,410.894 166.411,401.458 L 205.389,362.48 C 221.918,366.13 238.875,368 256,368 C 300.779,368 344.427,355.257 382.223,331.148 C 412.304,311.96 437.795,286.26 456.941,255.999 C 438.415,226.716 413.934,201.724 385.116,182.752 L 419.661,148.208 ZM 256,349 C 244.638,349 233.624,347.512 223.136,344.733 L 379.729,188.141 C 382.51,198.627 384,209.638 384,221 C 384,291.692 326.692,349 256,349 ZM 480,0l-26.869,0 L 343.325,109.806C 315.787,100.844, 286.448,96, 256,96C 144.341,96, 47.559,161.021,0,256\n\t\tc 21.329,42.596, 52.564,79.154, 90.597,106.534L0,453.131L0,480 l 26.869,0 L 480,26.869L 480,0 z M 208,157c 24.022,0, 43.923,17.647, 47.446,40.685\n\t\tl-54.762,54.762C 177.647,248.923, 160,229.022, 160,205C 160,178.49, 181.49,157, 208,157z M 55.058,256\n\t\tc 19.146-30.262, 44.637-55.962, 74.717-75.148c 1.959-1.25, 3.938-2.461, 5.929-3.65C 130.725,190.866, 128,205.613, 128,221\n\t\tc0,29.262, 9.825,56.224, 26.349,77.781l-29.275,29.275C 97.038,309.235, 73.197,284.67, 55.058,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"eye, views, vision, visit\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,96C 144.341,96, 47.559,161.021,0,256c 47.559,94.979, 144.341,160, 256,160c 111.657,0, 208.439-65.021, 256-160\n\tC 464.442,161.021, 367.657,96, 256,96z M 382.225,180.852c 30.081,19.187, 55.571,44.887, 74.717,75.148\n\tc-19.146,30.261-44.637,55.961-74.718,75.149C 344.427,355.257, 300.779,368, 256,368c-44.78,0-88.428-12.743-126.225-36.852\n\tC 99.695,311.962, 74.205,286.262, 55.058,256c 19.146-30.262, 44.637-55.962, 74.717-75.148c 1.959-1.25, 3.938-2.461, 5.929-3.65\n\tC 130.725,190.866, 128,205.613, 128,221c0,70.692, 57.308,128, 128,128s 128-57.308, 128-128c0-15.387-2.725-30.134-7.704-43.799\n\tC 378.286,178.39, 380.265,179.602, 382.225,180.852z M 256,205c0,26.51-21.49,48-48,48s-48-21.49-48-48s 21.49-48, 48-48\n\tS 256,178.49, 256,205z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"attachment, paperclip\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,128L 128,128 C 57.308,128,0,185.308,0,256s 57.308,128, 128,128l 288,0 l0-32 L 128,352 c-53.020,0-96-42.98-96-96s 42.98-96, 96-96l 288,0 \n\tc 35.347,0, 64,28.654, 64,64c0,35.347-28.653,64-64,64L 192,288 c-17.673,0-32-14.327-32-32s 14.327-32, 32-32l 224,0 l0-32 L 192,192 \n\tc-35.346,0-64,28.654-64,64c0,35.347, 28.654,64, 64,64l 224,0 c 53.020,0, 96-42.98, 96-96S 469.020,128, 416,128z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"attachment, paperclip\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 348.916,163.524l-32.476-32.461L 154.035,293.434c-26.907,26.896-26.907,70.524,0,97.422\n\tc 26.902,26.896, 70.53,26.896, 97.437,0l 194.886-194.854c 44.857-44.831, 44.857-117.531,0-162.363\n\tc-44.833-44.852-117.556-44.852-162.391,0L 79.335,238.212l 0.017,0.016c-0.145,0.152-0.306,0.288-0.438,0.423\n\tc-62.551,62.548-62.551,163.928,0,226.453c 62.527,62.528, 163.934,62.528, 226.494,0c 0.137-0.137, 0.258-0.284, 0.41-0.438l 0.016,0.017\n\tl 139.666-139.646l-32.493-32.46L 273.35,432.208l-0.008,0 c-0.148,0.134-0.282,0.285-0.423,0.422\n\tc-44.537,44.529-116.99,44.529-161.538,0c-44.531-44.521-44.531-116.961,0-161.489c 0.152-0.152, 0.302-0.291, 0.444-0.423l-0.023-0.030\n\tl 204.64-204.583c 26.856-26.869, 70.572-26.869, 97.443,0c 26.856,26.867, 26.856,70.574,0,97.42L 218.999,358.375\n\tc-8.968,8.961-23.527,8.961-32.486,0c-8.947-8.943-8.947-23.516,0-32.46L 348.916,163.524z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"flag, report, mark\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,32.5c 19.393,0.786, 33.686,2.681, 46.365,6.903c 19.163,6.381, 35.674,19.009, 55.209,42.224\n\t\t\tc 54.165,64.364, 108.925,91.826, 183.107,91.826c 7.729,0, 15.767-0.307, 24.147-0.925c-10.090,11.872-20.705,23.466-31.729,34.059\n\t\t\tc-15.453,14.849-30.499,26.521-44.72,34.692c-14.99,8.612-29.547,13.609-43.263,14.851c-1.81,0.164-3.533,0.243-5.271,0.243\n\t\t\tc-16.82,0-29.746-7.817-49.442-20.573c-22.574-14.618-50.668-32.812-91.546-32.812c-13.692,0-27.906,2.034-42.859,6.161L 127.998,32.5 \n\t\t\t M 96,0l0,256 c 30.587-15.262, 54.737-21.011, 74.859-21.011c 61.341,0, 85.367,53.384, 140.988,53.384c 2.648,0, 5.354-0.12, 8.152-0.373\n\t\t\tc 79.729-7.221, 147.031-99.564, 192-160c-38.205,8.835-70.726,13.453-99.318,13.453c-66.72,0-112.085-25.129-158.623-80.43\n\t\t\tC 205.881,3.773, 169.369,0, 96,0L 96,0zM0,0L 64,0L 64,512L0,512z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"flag, report, mark\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 254.059,61.023C 205.881,3.773, 169.369,0, 96,0l0,256 c 128.267-64, 142.636,8.335, 223.506,1.023\n\t\tC 399.234,249.803, 467.031,188.436, 512,128C 384.644,157.453, 320.54,140.023, 254.059,61.023zM0,0L 64,0L 64,512L0,512z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"flag, report, mark\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 295.832,37.094C 284.518,3.451, 151.002,13.915, 110.264,14.908C 106.385,6.129, 98.028,0, 88.384,0\n\tC 75.069,0, 64.177,11.638, 64.177,25.86l0,460.281 c0,14.223, 10.893,25.859, 24.207,25.859c 13.313,0, 24.205-11.637, 24.205-25.859L 112.589,266.176 \n\tc 42.999-32.181, 174.39-71.337, 183.246-43.268c 9.891,31.352, 105.426,56.895, 151.99,35.262c0,0,0-158.896,0-203.115\n\tC 344.196,100.653, 308.633,75.147, 295.832,37.094z M 112.589,254.707L 112.589,30.38 C 126.911,63.968, 153.415,149.373, 112.589,254.707z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"flag, report, mark\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 432.311,3.138L 303.69,28.862C 295.061,30.588, 288,24.8, 288,16S 280.94,1.412, 272.311,3.138L 128,32L 128,0 L 64,0 l0,512 l 64,0 L 128,256 \n\tl 144.311-28.862C 280.94,225.412, 288,231.2, 288,240s 7.061,14.588, 15.689,12.862l 128.621-25.725C 440.94,225.412, 448,216.8, 448,208L 448,16 \n\tC 448,7.2, 440.94,1.412, 432.311,3.138z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"flag, report, mark\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,0 C 81.673,0 96,14.327 96,32 L 96,512 L 32,512 L 32,32 C 32,14.327 46.327,0 64,0 ZM 304,56.615 L 304,327.384 C 282.5,313.075 251.047,302.77 216,302.77 C 180.953,302.77 149.5,320.459 128,334.769 L 128,64 C 149.5,49.689 180.953,32 216,32 C 251.047,32 282.5,42.305 304,56.615 ZM 416,384 C 377.767,384 343.454,373.695 320,359.384 L 320,88.615 C 343.454,102.925 377.767,113.23 416,113.23 C 454.233,113.23 488.546,94.311 512,80 L 512,350.769 C 488.546,365.080 454.233,384 416,384 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"flag, report, mark\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,86.153 C 454.233,86.153 488.546,65.342 512,49.6 L 512,347.445 C 488.546,363.188 454.233,384 416,384 C 377.767,384 343.454,372.665 320,356.922 C 296.546,341.182 262.233,329.847 224,329.847 C 185.767,329.847 151.455,349.305 128,365.045 L 128,67.2 C 151.455,51.458 185.767,32 224,32 C 262.233,32 296.546,43.334 320,59.076 C 343.454,74.818 377.767,86.153 416,86.153 ZM 64,0 C 81.673,0 96,14.327 96,32 L 96,512 L 32,512 L 32,32 C 32,14.327 46.327,0 64,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"anchor, link\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,288l0,66.098 c-40.261,41.123-96.519,80.825-160,91.254L 288,256 l 96,0 l0-32 l-96-37.465l0-0.006 c 37.282-13.18, 64-48.731, 64-90.529\n\tc0-53.020-42.98-96-96-96c-53.021,0-96,42.98-96,96c0,41.798, 26.715,77.35, 64,90.529l0,0.006 L 128,224l0,32 l 96,0 l0,189.352 \n\tc-63.484-10.429-119.742-50.131-160-91.254L 64,288 L0,288 l0,32 c0,64, 128,192, 256,192s 256-128, 256-192l0-32 L 448,288 z M 288,96\n\tc0,17.673-14.327,32-32,32c-17.673,0-32-14.327-32-32s 14.327-32, 32-32C 273.673,64, 288,78.327, 288,96z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"link, attach, chain, anchor, url, uri\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 490.745,154.745l-69.49-69.49C 408.81,72.809, 392.404,66.587, 376,66.587s-32.81,6.222-45.255,18.667l-133.49,133.49\n\t\tc-24.891,24.89-24.891,65.62,0,90.509L 200,312l 31.819-31.82l-2.745-2.745c-4.774-4.774-5.487-10.467-5.487-13.435\n\t\tc0-2.969, 0.713-8.661, 5.487-13.436l 133.49-133.49c 4.775-4.775, 10.468-5.488, 13.436-5.488s 8.66,0.713, 13.435,5.488l 69.491,69.491\n\t\tc 4.774,4.774, 5.487,10.466, 5.487,13.435s-0.713,8.66-5.487,13.435l-133.491,133.49c-4.774,4.775-10.467,5.488-13.435,5.488\n\t\ts-8.66-0.713-13.435-5.488l-2.745-2.746L 264,375.999l 2.745,2.746c 12.445,12.445, 28.851,18.668, 45.255,18.668\n\t\ts 32.81-6.223, 45.255-18.668l 133.49-133.491C 515.636,220.364, 515.636,179.635, 490.745,154.745zM 314.745,202.745L 312,200l-31.82,31.82l 2.746,2.746c 4.774,4.774, 5.487,10.466, 5.487,13.435s-0.713,8.661-5.487,13.435\n\t\tl-133.491,133.49c-4.774,4.775-10.467,5.488-13.435,5.488c-2.969,0-8.66-0.713-13.436-5.488l-69.489-69.49\n\t\tc-7.283-7.282-7.283-19.587-0.001-26.87l 133.49-133.49c 4.775-4.774, 10.467-5.487, 13.436-5.487c 2.968,0, 8.66,0.713, 13.435,5.487\n\t\tl 2.745,2.745L 248,136l-2.745-2.745c-12.445-12.445-28.851-18.667-45.255-18.667c-16.405,0-32.81,6.222-45.255,18.667\n\t\tl-133.49,133.49c-24.891,24.891-24.891,65.62,0,90.511l 69.49,69.49c 12.445,12.445, 28.85,18.668, 45.255,18.668\n\t\tc 16.404,0, 32.81-6.223, 45.255-18.668l 133.49-133.491C 339.636,268.364, 339.636,227.635, 314.745,202.745z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"link, chain, url, uri, anchor\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 159.965,352.034c 8.803,8.803, 23.209,8.803, 32.012,0l 160.059-160.059c 8.805-8.803, 8.805-23.208,0-32.012\n\t\tc-8.802-8.803-23.208-8.803-32.012,0L 159.965,320.022C 151.162,328.825, 151.162,343.231, 159.965,352.034zM 489.457,73.305l-50.765-50.763c-30.056-30.056-79.237-30.056-109.294,0l-82.775,82.775\n\t\tc-21.994,21.995-27.891,54.229-17.695,81.719L 348.597,67.368c 12.449-12.45, 32.822-12.45, 45.271,0l 50.764,50.763\n\t\tc 12.448,12.45, 12.448,32.822,0,45.271L 324.965,283.069c 27.487,10.195, 59.723,4.301, 81.717-17.695l 82.775-82.773\n\t\tC 519.515,152.543, 519.515,103.362, 489.457,73.305zM 163.403,444.632c-12.449,12.449-32.821,12.449-45.271,0L 67.37,393.868c-12.449-12.45-12.449-32.822,0-45.271\n\t\tL 187.036,228.93c-27.489-10.196-59.725-4.3-81.719,17.695l-82.774,82.773c-30.057,30.060-30.057,79.24,0,109.297l 50.764,50.763\n\t\tc 30.056,30.058, 79.239,30.058, 109.293,0l 82.777-82.774c 21.994-21.994, 27.891-54.229, 17.694-81.719L 163.403,444.632z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"link, chain, url, uri, anchor\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 476.698,37.321l-2.014-2.021c-47.074-47.067-124.097-47.067-171.163,0L 194.468,144.368\n\t\tc-47.067,47.066-47.067,124.088,0,171.155l 2.013,2.013c 3.916,3.924, 8.073,7.462, 12.368,10.729l 39.924-39.925\n\t\tc-4.651-2.747-9.063-6.036-13.058-10.030l-2.021-2.021c-25.557-25.549-25.557-67.136,0-92.695L 342.758,74.538\n\t\tc 25.558-25.559, 67.137-25.559, 92.693,0l 2.021,2.012c 25.55,25.558, 25.55,67.146,0,92.695l-49.343,49.343\n\t\tc 8.566,21.154, 12.624,43.7, 12.269,66.193l 76.302-76.302C 523.767,161.411, 523.767,84.39, 476.698,37.321zM 315.521,194.467c-3.916-3.916-8.073-7.461-12.368-10.72l-39.924,39.916c 4.652,2.748, 9.063,6.037, 13.058,10.031l 2.021,2.020\n\t\tc 25.558,25.558, 25.558,67.136,0,92.694L 169.243,437.475c-25.559,25.551-67.138,25.551-92.694,0l-2.021-2.021\n\t\tc-25.549-25.56-25.549-67.138,0-92.694l 49.344-49.343c-8.567-21.153-12.623-43.701-12.269-66.193l-76.301,76.299\n\t\tc-47.068,47.066-47.068,124.089,0,171.162l 2.013,2.016c 47.076,47.064, 124.096,47.064, 171.164,0l 109.055-109.059\n\t\tc 47.067-47.066, 47.067-124.097,0-171.163L 315.521,194.467z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"link2\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,320 L 256,320 L 208,384 L 48,384 L 0,336 L 0,208 L 48,160 L 208,160 L 256,224 L 64,224 ZM 448,224L 256,224L 304,160L 464,160L 512,208L 512,336L 464,384L 304,384L 256,320L 448,320 zM 224,416L 288,416L 288,512L 224,512zM 109.255,512 L 64,512 L 64,466.744 L 114.745,416 L 160,416 L 160,461.256 ZM 448,466.744 L 448,512 L 402.744,512 L 352,461.256 L 352,416 L 397.256,416 ZM 224,32L 288,32L 288,128L 224,128zM 160,82.744L 160,128L 114.745,128L 64,77.256L 64,32L 109.255,32 zM 397.256,128L 352,128L 352,82.744L 402.744,32L 448,32L 448,77.256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"link\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,304L 192,304 c-17.673,0-32-14.327-32-32c0-17.673, 14.327-32, 32-32l 128,0 c 17.673,0, 32,14.327, 32,32\n\t\tC 352,289.673, 337.673,304, 320,304zM 64,320 L 256,320 L 208,384 L 48,384 L 0,336 L 0,208 L 48,160 L 208,160 L 256,224 L 64,224 ZM 448,224L 256,224L 304,160L 464,160L 512,208L 512,336L 464,384L 304,384L 256,320L 448,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"link, chain, unlink\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 238.444,337.557c 2.28,4.524, 3.495,9.579, 3.495,14.848c0,8.808-3.372,17.029-9.496,23.154l-81.69,81.69\n\t\tc-6.124,6.124-14.348,9.496-23.154,9.496s-17.030-3.372-23.154-9.496l-49.69-49.69c-6.124-6.125-9.496-14.348-9.496-23.154\n\t\ts 3.372-17.030, 9.496-23.154l 81.69-81.691c 6.124-6.123, 14.348-9.496, 23.154-9.496c 5.269,0, 10.322,1.215, 14.848,3.494l 32.669-32.668\n\t\tc-13.935-10.705-30.72-16.080-47.517-16.080c-19.993,0-39.986,7.583-55.154,22.751l-81.69,81.691\n\t\tc-30.335,30.335-30.335,79.975,0,110.309l 49.69,49.691c 15.167,15.166, 35.16,22.75, 55.153,22.75\n\t\tc 19.994,0, 39.987-7.584, 55.154-22.751l 81.69-81.69c 27.91-27.91, 30.119-72.149, 6.672-102.673L 238.444,337.557zM 489.248,72.442l-49.69-49.691C 424.391,7.583, 404.398,0, 384.404,0c-19.993,0-39.985,7.583-55.153,22.751l-81.691,81.691\n\t\tc-27.91,27.91-30.119,72.149-6.671,102.671l 32.669-32.67c-2.279-4.525-3.494-9.58-3.494-14.847c0-8.808, 3.372-17.030, 9.496-23.154\n\t\tl 81.691-81.691c 6.123-6.124, 14.347-9.497, 23.153-9.497c 8.808,0, 17.030,3.373, 23.154,9.497l 49.69,49.691\n\t\tc 6.124,6.124, 9.496,14.347, 9.496,23.154c0,8.807-3.372,17.030-9.496,23.154l-81.69,81.691c-6.124,6.124-14.347,9.496-23.154,9.496\n\t\tc-5.268,0-10.322-1.215-14.848-3.495l-32.669,32.669c 13.936,10.705, 30.72,16.080, 47.517,16.080c 19.994,0, 39.987-7.584, 55.154-22.752\n\t\tl 81.69-81.69C 519.584,152.416, 519.584,102.777, 489.248,72.442zM 116.684,139.312L 20.687,43.315L 43.315,20.687L 139.312,116.684zM 192,0L 224,0L 224,96L 192,96zM0,192L 96,192L 96,224L0,224zM 395.316,372.688L 491.314,468.686L 468.686,491.314L 372.688,395.316zM 288,416L 320,416L 320,512L 288,512zM 416,288L 512,288L 512,320L 416,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"link, chain, url, uri, anchor\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,352c 8.8,8.8, 23.637,8.363, 32.971-0.971L 351.030,192.971C 360.364,183.637, 360.8,168.8, 352,160\n\t\ts-23.637-8.363-32.971,0.971L 160.971,319.029C 151.637,328.363, 151.2,343.2, 160,352zM 238.444,337.556c 2.28,4.525, 3.495,9.58, 3.495,14.848c0,8.808-3.372,17.030-9.496,23.154l-81.691,81.691\n\t\tc-6.124,6.124-14.347,9.496-23.154,9.496s-17.030-3.372-23.154-9.496l-49.691-49.691c-6.124-6.124-9.496-14.347-9.496-23.154\n\t\ts 3.372-17.030, 9.496-23.154l 81.691-81.691c 6.124-6.124, 14.347-9.497, 23.154-9.497c 5.268,0, 10.322,1.215, 14.848,3.495l 32.669-32.669\n\t\tc-13.935-10.705-30.72-16.080-47.517-16.080c-19.993,0-39.986,7.583-55.154,22.751l-81.691,81.691\n\t\tc-30.335,30.335-30.335,79.974,0,110.309l 49.691,49.691C 87.611,504.416, 107.604,512, 127.597,512\n\t\tc 19.994,0, 39.987-7.584, 55.154-22.751l 81.691-81.691c 27.91-27.91, 30.119-72.149, 6.672-102.672L 238.444,337.556zM 489.249,72.442l-49.691-49.691C 424.391,7.583, 404.398,0, 384.404,0c-19.993,0-39.986,7.583-55.154,22.751l-81.691,81.691\n\t\tc-27.91,27.91-30.119,72.149-6.671,102.671l 32.669-32.67c-2.279-4.525-3.494-9.58-3.494-14.847c0-8.808, 3.372-17.030, 9.496-23.154\n\t\tl 81.691-81.691c 6.124-6.124, 14.347-9.497, 23.154-9.497s 17.030,3.373, 23.154,9.497l 49.691,49.691\n\t\tc 6.124,6.124, 9.496,14.347, 9.496,23.154s-3.372,17.030-9.496,23.154l-81.691,81.691c-6.124,6.124-14.347,9.496-23.154,9.496\n\t\tc-5.268,0-10.322-1.215-14.848-3.495l-32.669,32.669c 13.936,10.705, 30.72,16.080, 47.517,16.080c 19.994,0, 39.987-7.584, 55.154-22.751\n\t\tl 81.691-81.691C 519.584,152.416, 519.584,102.777, 489.249,72.442z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"network, p2p, connection, lan\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,416L 512,224 L 384,224 L 384,96 L 256,96 L 256,0 L0,0 l0,192 l 96,0 l0,32 L 64,224 l0,32 l 128,0 l0-32 l-32,0 l0-32 l 96,0 l0-64 l 96,0 l0,96 l-96,0 l0,192 l 96,0 l0,32 l-32,0 l0,32 l 128,0 l0-32 l-32,0 l0-32 L 512,416 z\n\t M 224,160L 32,160 L 32,32 l 192,0 L 224,160 z M 288,384L 288,256 l 192,0 l0,128 L 288,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"earth, globe, web, internet, sphere, planet\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 437.020,74.981 C 485.371,123.333 512,187.621 512,256.001 C 512,324.381 485.371,388.668 437.020,437.020 C 388.667,485.371 324.38,512 256,512 C 187.62,512 123.333,485.371 74.98,437.020 C 26.629,388.668 0,324.381 0,256.001 C 0,187.621 26.627,123.333 74.98,74.981 C 123.333,26.629 187.62,0 256,0 C 324.38,0 388.667,26.629 437.020,74.981 Z M 414.392,414.393 C 445.921,382.863 466.885,343.589 475.528,300.862 C 468.791,310.78 462.347,314.459 458.356,292.259 C 454.246,256.064 421.002,279.185 400.098,266.329 C 378.096,281.158 328.645,237.498 337.049,286.741 C 350.016,308.952 407.053,257.016 378.623,304.012 C 360.486,336.82 312.302,409.478 318.57,447.141 C 319.361,502.013 262.503,458.583 242.913,440.381 C 229.735,403.921 238.422,340.194 203.964,322.338 C 166.563,320.714 134.462,317.315 119.967,275.503 C 111.244,245.589 129.249,201.056 161.306,194.181 C 208.231,164.698 224.993,228.708 269.001,229.898 C 282.665,215.601 319.909,211.055 322.997,195.023 C 294.122,189.928 359.631,170.744 320.233,159.832 C 298.498,162.388 284.494,182.369 296.049,199.311 C 253.93,209.132 252.581,138.359 212.094,160.682 C 211.065,195.977 145.983,172.125 189.576,164.968 C 204.554,158.424 165.146,139.46 186.436,142.906 C 196.894,142.338 232.102,130 222.574,121.705 C 242.179,109.535 258.654,150.85 277.843,120.764 C 291.697,97.631 272.033,93.36 254.668,105.086 C 244.878,94.124 271.953,70.448 295.834,60.217 C 303.793,56.807 311.395,54.949 317.207,55.475 C 329.236,69.371 351.482,71.778 352.646,53.804 C 322.855,39.537 290.008,32 256,32 C 207.189,32 160.765,47.512 122.346,76.195 C 132.671,80.925 138.532,86.814 128.585,94.343 C 120.857,117.37 89.5,148.281 61.973,143.905 C 47.68,168.553 38.267,195.708 34.243,224.169 C 57.299,231.797 62.615,246.894 57.661,251.944 C 45.913,262.188 38.693,276.709 34.973,292.605 C 42.478,338.523 64.059,380.843 97.608,414.393 C 139.916,456.7 196.167,480 256,480 C 315.832,480 372.084,456.7 414.392,414.393 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"globe, network, sphere, internet, web\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 265.035,470.342\n\tc-3.771,8.332-6.934,12.994-9.035,15.516c-2.102-2.521-5.265-7.184-9.036-15.516c-5.792-12.799-11.245-30.529-15.768-51.273\n\tc-0.278-1.276-0.552-2.566-0.823-3.864C 238.802,415.728, 247.35,416, 256,416c 8.65,0, 17.198-0.272, 25.628-0.796\n\tc-0.271,1.298-0.545,2.588-0.823,3.864C 276.281,439.812, 270.828,457.543, 265.035,470.342z M 256,392\n\tc-10.145,0-20.19-0.387-30.108-1.155c-3.553-22.027-6.201-46.185-7.858-71.546C 230.423,319.759, 243.098,320, 256,320\n\tc 12.901,0, 25.577-0.241, 37.967-0.702c-1.657,25.362-4.306,49.52-7.858,71.546C 276.19,391.613, 266.146,392, 256,392z M 256,296\n\tc-13.225,0-26.339-0.261-39.229-0.771C 216.261,282.339, 216,269.225, 216,256s 0.261-26.339, 0.771-39.229\n\tC 229.661,216.261, 242.775,216, 256,216c 13.225,0, 26.339,0.261, 39.229,0.771C 295.739,229.661, 296,242.775, 296,256\n\tc0,13.225-0.261,26.339-0.771,39.229C 282.339,295.739, 269.225,296, 256,296z M 120,256c0-10.145, 0.387-20.19, 1.156-30.108\n\tc 22.027-3.553, 46.184-6.201, 71.546-7.858C 192.241,230.423, 192,243.098, 192,256c0,12.901, 0.241,25.577, 0.702,37.967\n\tc-25.362-1.657-49.519-4.306-71.546-7.857C 120.387,276.19, 120,266.146, 120,256z M 96.796,281.628\n\tc-1.298-0.271-2.588-0.545-3.865-0.823c-20.745-4.523-38.475-9.977-51.274-15.77c-8.332-3.771-12.995-6.934-15.515-9.035\n\tc 2.52-2.101, 7.183-5.264, 15.515-9.035c 12.799-5.793, 30.53-11.245, 51.274-15.768c 1.277-0.278, 2.567-0.552, 3.865-0.823\n\tC 96.272,238.803, 96,247.351, 96,256C 96,264.65, 96.272,273.198, 96.796,281.628z M 246.964,41.657\n\tc 3.771-8.332, 6.934-12.994, 9.036-15.514c 2.102,2.52, 5.266,7.183, 9.035,15.515c 5.793,12.799, 11.244,30.53, 15.77,51.274\n\tc 0.278,1.276, 0.552,2.566, 0.823,3.864C 273.198,96.272, 264.65,96, 256,96c-8.65,0-17.198,0.272-25.627,0.796\n\tc 0.271-1.298, 0.545-2.588, 0.823-3.865C 235.719,72.186, 241.172,54.456, 246.964,41.657z M 256,120c 10.146,0, 20.19,0.387, 30.108,1.156\n\tc 3.553,22.027, 6.201,46.184, 7.858,71.546C 281.577,192.241, 268.901,192, 256,192c-12.902,0-25.577,0.241-37.966,0.702\n\tc 1.657-25.362, 4.305-49.519, 7.858-71.546C 235.81,120.386, 245.854,120, 256,120z M 319.298,218.034\n\tc 25.362,1.658, 49.52,4.305, 71.546,7.858C 391.613,235.81, 392,245.855, 392,256c0,10.146-0.387,20.19-1.156,30.108\n\tc-22.026,3.553-46.184,6.201-71.546,7.858C 319.759,281.577, 320,268.901, 320,256C 320,243.098, 319.759,230.423, 319.298,218.034z\n\t M 415.204,230.374c 1.298,0.271, 2.588,0.545, 3.864,0.823c 20.744,4.523, 38.475,9.975, 51.273,15.768\n\tc 8.332,3.771, 12.994,6.934, 15.516,9.035c-2.521,2.102-7.184,5.266-15.516,9.035c-12.8,5.793-30.529,11.244-51.273,15.77\n\tc-1.276,0.278-2.566,0.552-3.864,0.823C 415.728,273.198, 416,264.65, 416,256C 416,247.351, 415.728,238.803, 415.204,230.374z\n\t M 412.871,205.424c-2.382-19.014-6.075-37.269-10.931-54.507c 7.833,3.788, 15.299,7.885, 22.358,12.297\n\tc 20.652,12.907, 36.703,27.697, 47.707,43.958c 4.164,6.152, 7.51,12.42, 10.054,18.775C 464.994,217.941, 441.329,210.949, 412.871,205.424\n\tz M 380.223,162.488c 3.323,12.571, 5.943,25.489, 7.865,38.681c-21.474-3.24-45.006-5.712-69.988-7.268\n\tc-1.557-24.982-4.028-48.515-7.268-69.988c 13.191,1.921, 26.109,4.541, 38.681,7.864c 8.094,2.14, 15.931,4.547, 23.513,7.197\n\tC 375.676,146.557, 378.083,154.394, 380.223,162.488z M 306.576,99.129c-5.525-28.458-12.518-52.124-20.524-69.189\n\tc 6.355,2.544, 12.624,5.89, 18.776,10.054c 16.261,11.004, 31.050,27.055, 43.957,47.707c 4.412,7.060, 8.511,14.526, 12.298,22.359\n\tC 343.845,105.204, 325.59,101.51, 306.576,99.129z M 207.173,39.993c 6.152-4.164, 12.42-7.509, 18.775-10.053\n\tc-8.006,17.065-14.999,40.73-20.523,69.189c-19.014,2.381-37.269,6.075-54.507,10.931c 3.787-7.833, 7.885-15.3, 12.297-22.36\n\tC 176.122,67.049, 190.912,50.997, 207.173,39.993z M 162.488,131.776c 12.571-3.323, 25.489-5.942, 38.681-7.864\n\tc-3.24,21.474-5.712,45.006-7.268,69.988c-24.982,1.556-48.515,4.028-69.988,7.268c 1.921-13.192, 4.541-26.11, 7.864-38.682\n\tc 2.14-8.094, 4.547-15.931, 7.198-23.514C 146.557,136.322, 154.394,133.916, 162.488,131.776z M 99.129,205.424\n\tc-28.458,5.525-52.124,12.517-69.189,20.523c 2.544-6.355, 5.89-12.624, 10.054-18.776c 11.004-16.261, 27.055-31.050, 47.707-43.958\n\tc 7.060-4.412, 14.526-8.51, 22.359-12.297C 105.204,168.155, 101.51,186.41, 99.129,205.424z M 29.94,286.053\n\tc 17.065,8.007, 40.73,14.999, 69.189,20.523c 2.382,19.015, 6.075,37.27, 10.931,54.508c-7.833-3.787-15.3-7.886-22.36-12.298\n\tc-20.651-12.907-36.703-27.696-47.707-43.957C 35.83,298.677, 32.484,292.407, 29.94,286.053z M 131.776,349.514\n\tc-3.323-12.571-5.942-25.49-7.864-38.682c 21.474,3.24, 45.006,5.711, 69.988,7.268c 1.556,24.982, 4.028,48.515, 7.268,69.988\n\tc-13.192-1.921-26.11-4.54-38.682-7.863c-8.094-2.14-15.931-4.547-23.513-7.197C 136.323,365.444, 133.916,357.607, 131.776,349.514z\n\t M 205.424,412.871c 5.525,28.458, 12.517,52.124, 20.523,69.188c-6.355-2.544-12.624-5.89-18.776-10.054\n\tc-16.261-11.004-31.050-27.055-43.958-47.707c-4.412-7.060-8.51-14.525-12.298-22.359C 168.154,406.796, 186.41,410.489, 205.424,412.871\n\tz M 304.829,472.006c-6.153,4.164-12.422,7.51-18.777,10.055c 8.007-17.065, 14.999-40.73, 20.524-69.189\n\tc 19.014-2.382, 37.27-6.075, 54.508-10.932c-3.787,7.834-7.886,15.3-12.298,22.359C 335.879,444.951, 321.090,461.002, 304.829,472.006z\n\t M 349.513,380.223c-12.571,3.323-25.489,5.943-38.681,7.864c 3.239-21.473, 5.711-45.005, 7.268-69.987\n\tc 24.982-1.557, 48.515-4.028, 69.988-7.268c-1.922,13.191-4.541,26.109-7.864,38.682c-2.14,8.093-4.546,15.93-7.196,23.512\n\tC 365.444,375.676, 357.606,378.083, 349.513,380.223z M 412.871,306.576c 28.458-5.525, 52.124-12.518, 69.189-20.524\n\tc-2.545,6.355-5.891,12.624-10.055,18.776c-11.004,16.261-27.055,31.050-47.707,43.957c-7.060,4.412-14.525,8.511-22.358,12.298\n\tC 406.796,343.845, 410.489,325.59, 412.871,306.576z M 420.049,91.951c 21.314,21.314, 38.046,46.128, 49.729,73.751\n\tc 0.52,1.228, 1.013,2.463, 1.51,3.698c-20.423-19.792-47.646-36.58-79.6-49.088c-12.509-31.953-29.296-59.176-49.088-79.6\n\tc 1.234,0.498, 2.47,0.991, 3.697,1.51C 373.921,53.906, 398.735,70.638, 420.049,91.951z M 91.951,91.952\n\tc 21.314-21.314, 46.128-38.045, 73.751-49.729c 1.227-0.519, 2.462-1.012, 3.695-1.509c-19.791,20.423-36.578,47.646-49.085,79.598\n\tc-31.953,12.508-59.176,29.295-79.599,49.086c 0.497-1.233, 0.99-2.468, 1.509-3.695C 53.906,138.079, 70.638,113.266, 91.951,91.952z\n\t M 91.952,420.049c-21.314-21.313-38.045-46.128-49.729-73.751c-0.519-1.228-1.012-2.462-1.509-3.695\n\tc 20.423,19.791, 47.646,36.578, 79.598,49.086c 12.508,31.952, 29.295,59.176, 49.087,79.599c-1.234-0.496-2.469-0.989-3.696-1.509\n\tC 138.079,458.094, 113.266,441.363, 91.952,420.049z M 420.049,420.049c-21.313,21.314-46.128,38.046-73.751,49.729\n\tc-1.228,0.52-2.463,1.013-3.697,1.51c 19.792-20.423, 36.579-47.646, 49.088-79.6c 31.953-12.509, 59.177-29.296, 79.6-49.088\n\tc-0.497,1.234-0.99,2.47-1.51,3.697C 458.094,373.921, 441.363,398.735, 420.049,420.049z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"globe, web, internet, network, sphere\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 240,32C 107.452,32,0,139.452,0,272c0,132.549, 107.452,240, 240,240c 132.549,0, 240-107.451, 240-240\n\tC 480,139.452, 372.549,32, 240,32z M 375.795,352c 4.29-20.227, 6.998-41.695, 7.879-64l 63.724,0 c-1.669,22.098-6.812,43.557-15.341,64\n\tL 375.795,352 z M 343.018,192c 4.808,20.481, 7.699,41.927, 8.641,64L 256,256 l0-64 L 343.018,192 z M 256,160L 256,66.331 \n\tc 7.295,2.123, 14.521,5.685, 21.614,10.685c 13.291,9.37, 26.006,23.804, 36.77,41.743c 7.441,12.401, 13.876,26.208, 19.248,41.242L 256,160\n\tL 256,160z M 165.616,118.758c 10.764-17.939, 23.478-32.374, 36.77-41.743c 7.091-5, 14.319-8.562, 21.614-10.685L 224,160 l-77.632,0 \n\tC 151.741,144.967, 158.176,131.16, 165.616,118.758z M 224,192l0,64 l-95.657,0 c 0.94-22.073, 3.833-43.519, 8.639-64L 224,192 z M 128.343,288L 224,288 l0,64 \n\tl-87.018,0 C 132.176,331.52, 129.283,310.073, 128.343,288z M 224,384l0,93.67 c-7.294-2.123-14.522-5.686-21.614-10.685\n\tc-13.292-9.37-26.007-23.806-36.77-41.743c-7.441-12.402-13.875-26.209-19.249-41.242L 224,384 z M 314.384,425.242\n\tc-10.764,17.938-23.479,32.373-36.77,41.743c-7.093,4.999-14.319,8.562-21.614,10.685L 256,384 l 77.633,0 \n\tC 328.26,399.033, 321.825,412.84, 314.384,425.242z M 256,352l0-64 l 95.657,0 c-0.94,22.073-3.833,43.52-8.641,64L 256,352 z M 383.674,256\n\tc-0.881-22.304-3.589-43.773-7.879-64l 56.262,0 c 8.528,20.443, 13.672,41.903, 15.341,64L 383.674,256 z M 415.329,160l-47.95,0 \n\tc-9.319-29.381-22.188-55.147-37.658-75.714c 21.269,10.17, 40.529,23.808, 57.357,40.636C 397.818,135.661, 407.259,147.391, 415.329,160\n\tz M 387.078,419.078c-16.828,16.829-36.090,30.467-57.357,40.637c 15.472-20.566, 28.339-46.334, 37.658-75.715l 47.95,0 \n\tC 407.259,396.609, 397.818,408.339, 387.078,419.078z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"globe, web, internet, network, sphere\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 240,32C 107.452,32,0,139.452,0,272c0,132.549, 107.452,240, 240,240c 132.549,0, 240-107.451, 240-240\n\tC 480,139.452, 372.549,32, 240,32z M 375.795,352c 4.29-20.227, 6.998-41.696, 7.879-64l 63.723,0 c-1.668,22.098-6.812,43.557-15.34,64\n\tL 375.795,352 z M 104.205,192c-4.29,20.227-6.998,41.696-7.879,64L 32.604,256 c 1.668-22.097, 6.811-43.557, 15.339-64L 104.205,192 z M 343.018,192\n\tc 4.807,20.481, 7.699,41.927, 8.64,64L 256,256 l0-64 L 343.018,192 z M 256,160L 256,66.331 c 7.295,2.123, 14.522,5.685, 21.614,10.685\n\tc 13.291,9.37, 26.006,23.804, 36.77,41.743c 7.441,12.401, 13.876,26.208, 19.248,41.242L 256,160.001 z M 165.616,118.758\n\tc 10.764-17.939, 23.478-32.374, 36.77-41.743c 7.091-5, 14.319-8.562, 21.614-10.685L 224,160 l-77.632,0 \n\tC 151.741,144.967, 158.176,131.16, 165.616,118.758z M 224,192l0,64 l-95.657,0 c 0.94-22.073, 3.833-43.519, 8.639-64L 224,192 z M 47.944,352\n\tc-8.528-20.443-13.671-41.902-15.339-64l 63.722,0 c 0.881,22.304, 3.589,43.773, 7.879,64L 47.944,352 z M 128.343,288L 224,288 l0,64 l-87.018,0 \n\tC 132.176,331.52, 129.283,310.073, 128.343,288z M 224,384l0,93.67 c-7.294-2.123-14.522-5.686-21.614-10.685\n\tc-13.292-9.37-26.007-23.805-36.77-41.743c-7.441-12.402-13.875-26.209-19.249-41.242L 224,384 z M 314.384,425.242\n\tc-10.764,17.938-23.479,32.373-36.77,41.743c-7.092,4.999-14.319,8.562-21.614,10.685L 256,384 l 77.633,0 \n\tC 328.26,399.033, 321.825,412.84, 314.384,425.242z M 256,352l0-64 l 95.657,0 c-0.94,22.073-3.833,43.52-8.64,64L 256,352 z M 383.674,256\n\tc-0.881-22.304-3.589-43.773-7.879-64l 56.262,0 c 8.528,20.443, 13.672,41.903, 15.34,64L 383.674,256 z M 415.329,160l-47.95,0 \n\tc-9.319-29.381-22.188-55.147-37.658-75.714c 21.268,10.17, 40.529,23.808, 57.357,40.636C 397.818,135.661, 407.259,147.391, 415.329,160\n\tz M 92.922,124.922c 16.829-16.829, 36.090-30.466, 57.357-40.636c-15.471,20.567-28.338,46.333-37.658,75.714L 64.672,160 \n\tC 72.741,147.391, 82.183,135.661, 92.922,124.922z M 64.672,384l 47.949,0 c 9.32,29.381, 22.188,55.147, 37.659,75.715\n\tc-21.268-10.17-40.529-23.808-57.357-40.637C 82.183,408.339, 72.741,396.609, 64.672,384z M 387.078,419.078\n\tc-16.828,16.829-36.090,30.467-57.357,40.637c 15.471-20.567, 28.339-46.334, 37.658-75.715l 47.95,0 \n\tC 407.259,396.609, 397.818,408.339, 387.078,419.078z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"upload, load, arrow\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,320L 288,320L 288,192L 400,192L 256,64L 112,192L 224,192 \tzM 320,259.024l0,16.622 c 74.569,8.786, 128,32.488, 128,60.354c0,35.347-85.961,64-192,64c-106.039,0-192-28.653-192-64\n\t\tc0-27.865, 53.431-51.566, 128-60.354l0-16.622 C 81.585,269.682,0,307.268,0,352c0,53.020, 114.615,96, 256,96s 256-42.98, 256-96\n\t\tC 512,307.268, 430.414,269.682, 320,259.024z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"download, save, store, arrow\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 400,192L 288,192L 288,64L 224,64L 224,192L 112,192L 256,320 \tzM 371.549,266.316l-16.805,14.788C 410.614,292.295, 448,312.691, 448,336c0,35.347-85.961,64-192,64\n\t\tc-106.039,0-192-28.653-192-64c0-23.309, 37.386-43.705, 93.255-54.896l-16.804-14.788C 57.122,282.151,0,314.572,0,352\n\t\tc0,53.020, 114.615,96, 256,96s 256-42.98, 256-96C 512,314.572, 454.879,282.151, 371.549,266.316z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"upload, load\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 240,352L0,352 l0,128 l 480,0 L 480,352 L 240,352 z M 448,416l-64,0 l0-32 l 64,0 L 448,416 zM 112,160 L 240,32 L 368,160 L 288,160 L 288,320 L 192,320 L 192,160 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"download, store, save\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 368,224 L 240,352 L 112,224 L 192,224 L 192,32 L 288,32 L 288,224 ZM 240,352L0,352 l0,128 l 480,0 L 480,352 L 240,352 z M 448,416l-64,0 l0-32 l 64,0 L 448,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"upload, load\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,448L 512,448L 512,480L0,480zM 512,384 L 512,416 L 0,416 L 0,384 L 64,256 L 192,256 L 192,320 L 320,320 L 320,256 L 448,256 ZM 112,160 L 256,16 L 400,160 L 288,160 L 288,288 L 224,288 L 224,160 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"download, store, save\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,256l-80,0 L 256,368L 144,256L 64,256 L0,384l0,32 l 512,0 l0-32 L 448,256z M0,448l 512,0 l0,32 L0,480 L0,448 z M 288,160L 288,32 l-64,0 l0,128 L 112,160 l 144,144l 144-144\n\tL 288,160 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"upload, load\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,512l 320,0 c 53.019,0, 96-42.981, 96-96L0,416 C0,469.019, 42.981,512, 96,512z M 416,448l 32,0 l0,32 l-32,0 L 416,448 zM 112,160 L 256,16 L 400,160 L 288,160 L 288,256 L 224,256 L 224,160 ZM 511.4,368.615 C 513.854,377.077 508.553,384 499.62,384 L 12.379,384 C 3.447,384 -1.854,377.077 0.6,368.615 L 56.642,207.384 C 59.096,198.923 68.413,192 77.345,192 L 192,192 L 192,288 L 320,288 L 320,192 L 434.655,192 C 443.588,192 452.904,198.923 455.358,207.384 L 511.4,368.615 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"download, store, save\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,512l 320,0 c 53.019,0, 96-42.981, 96-96L0,416 C0,469.019, 42.981,512, 96,512z M 416,448l 32,0 l0,32 l-32,0 L 416,448 zM 400,128 L 256,272 L 112,128 L 224,128 L 224,0 L 288,0 L 288,128 ZM 511.4,368.615 C 513.854,377.077 508.553,384 499.62,384 L 12.379,384 C 3.447,384 -1.854,377.077 0.6,368.615 L 56.642,207.384 C 59.096,198.923 68.413,192 77.345,192 L 112,192 L 240,320 L 272,320 L 400,192 L 434.655,192 C 443.588,192 452.904,198.923 455.358,207.384 L 511.4,368.615 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"upload, load\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,384L 448,384L 448,480L 64,480zM 192,191.954 L 80,191.954 L 228.686,43.267 C 243.709,28.245 268.291,28.245 283.313,43.267 L 432,191.954 L 320,191.954 L 320,351.954 L 192,351.954 L 192,191.954 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"download, arrow, store, save\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,384L 448,384L 448,480L 64,480zM 320,192 L 432,192 L 283.314,340.687 C 268.291,355.709 243.709,355.709 228.687,340.687 L 80,192 L 192,192 L 192,32 L 320,32 L 320,192 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"upload, arrow, load, outbox\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,352L 448,416L 64,416L 64,352L0,352L0,480L 512,480L 512,352 \tzM 128,224L 224,224L 224,384L 288,384L 288,224L 384,224L 256,32 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"download, arrow, store, save, inbox\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,352L 448,416L 64,416L 64,352L0,352L0,480L 512,480L 512,352 \tzM 384,192L 288,192L 288,32L 224,32L 224,192L 128,192L 256,384 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cloud-upload, load\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 446.134,193.245C 447.356,187.69, 448,181.921, 448,176c0-44.183-35.817-80-80-80c-7.111,0-14.007,0.934-20.566,2.676\n\tC 335.035,60, 298.789,32, 256,32c-43.674,0-80.527,29.168-92.163,69.085C 152.466,97.774, 140.441,96, 128,96C 57.308,96,0,153.308,0,224\n\tc0,70.694, 57.308,128, 128,128l 64,0 l0,96 l 128,0 l0-96 l 112,0 c 44.183,0, 80-35.816, 80-80C 512,232.64, 483.573,199.919, 446.134,193.245z M 288,320l0,96 \n\tl-64,0 l0-96 l-80,0 l 112-112l 112,112L 288,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cloud-download, download, store, save\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 445.502,180.030C 443.881,115.681, 391.273,64, 326.571,64c-37.896,0-71.633,17.747-93.427,45.366\n\tc-12.221-15.799-31.345-25.98-52.854-25.98c-36.905,0-66.821,29.937-66.821,66.861c0,3.218, 0.24,6.38, 0.682,9.477\n\tc-5.611-1.012-11.383-1.569-17.285-1.569C 43.367,158.154,0,201.548,0,255.076C0,308.607, 43.367,352, 96.865,352l 49.88,0 L 256,461.255\n\tL 365.255,352l 59.741,0 l0-0.006 C 473.065,351.902, 512,312.888, 512,264.771C 512,223.726, 483.661,189.321, 445.502,180.030z M 256,416l-96-96\n\tl 64,0 l0-96 l 64,0 l0,96 l 64,0 L 256,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cloud, weather\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,328.771c0-41.045-28.339-75.45-66.498-84.74C 443.881,179.681, 391.273,128, 326.571,128\n\tc-37.896,0-71.633,17.747-93.427,45.366c-12.221-15.799-31.345-25.98-52.854-25.98c-36.905,0-66.821,29.937-66.821,66.861\n\tc0,3.218, 0.24,6.38, 0.682,9.477c-5.611-1.012-11.383-1.569-17.285-1.569C 43.367,222.154,0,265.548,0,319.076\n\tC0,372.607, 43.367,416, 96.865,416l 328.131,0 l0-0.006 C 473.065,415.902, 512,376.888, 512,328.771z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cloud, weather\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 446.134,257.245C 447.356,251.691, 448,245.922, 448,240c0-44.183-35.817-80-80-80c-7.112,0-14.007,0.934-20.567,2.676\n\tC 335.035,124, 298.789,96, 256,96c-43.674,0-80.527,29.168-92.163,69.085C 152.466,161.775, 140.441,160, 128,160\n\tC 57.308,160,0,217.308,0,288c0,70.693, 57.308,128, 128,128l 304,0 c 44.183,0, 80-35.816, 80-80C 512,296.641, 483.573,263.92, 446.134,257.245\n\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cloud, weather\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 446.133,257.245C 447.356,251.691, 448,245.922, 448,240c0-44.183-35.817-80-80-80c-7.112,0-14.008,0.934-20.568,2.676\n\tC 335.035,124, 298.789,96, 256,96c-43.674,0-80.527,29.168-92.164,69.085C 152.465,161.775, 140.44,160, 128,160\n\tC 57.307,160,0,217.308,0,288c0,70.693, 57.307,128, 128,128l 304,0 c 44.182,0, 80-35.816, 80-80C 512,296.641, 483.573,263.92, 446.133,257.245\n\tz M 432,384.077L 432,384 L 128,384 c-53.021,0-96-42.98-96-96c0-53.019, 42.979-96, 96-96c 31.404,0, 59.288,15.083, 76.803,38.398l 25.601-19.201\n\tc-9.993-13.305-22.521-24.596-36.864-33.163C 199.911,149.406, 225.452,128, 256,128c 35.346,0, 64,28.654, 64,64\n\tc0,8.942-1.839,17.454-5.148,25.184l 29.426,12.593c 4.627-10.799, 7.33-22.615, 7.68-35.021C 356.975,192.976, 362.371,192, 368,192\n\tc 26.51,0, 48,21.49, 48,48c0,6.541-1.316,12.773-3.688,18.455c-8.925,2.261-17.256,6.009-24.701,10.982l 17.7,26.567\n\tc 7.635-5.104, 16.813-8.083, 26.688-8.083c 26.554,0, 48.075,21.523, 48.075,48.076C 480.074,362.553, 458.553,384.077, 432,384.077z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"menu, options\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,96L 352,96L 352,192L0,192zM0,224L 352,224L 352,320L0,320zM0,352L 352,352L 352,448L0,448zM 511.998,288 L 431.998,384 L 351.998,288 ZM 352,256 L 432,160 L 512,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"menu, options, collapse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,96L 352,96L 352,192L0,192zM0,224L 352,224L 352,320L0,320zM0,352L 352,352L 352,448L0,448zM 352,320 L 432,224 L 512,320 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"menu, options, expand\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,96L 352,96L 352,192L0,192zM0,224L 352,224L 352,320L0,320zM0,352L 352,352L 352,448L0,448zM 512,224 L 432,320 L 352,224 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"menu, list, items, lines, options\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,96L 480,96L 480,192L 32,192zM 32,224L 480,224L 480,320L 32,320zM 32,352L 480,352L 480,448L 32,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"menu, options\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,192l 352,0 l0,64 L0,256 L0,192 z M0,96l 352,0 l0,64 L0,160 L0,96 z M0,288l 352,0 l0,64 L0,352 L0,288 z M0,384l 352,0 l0,64 L0,448 L0,384 z M 384,288l 64,96l 64-96L 384,288 z M 512,256\n\tl-64-96l-64,96L 512,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"menu, options, expand\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,192L 352,192L 352,256L0,256zM0,96L 352,96L 352,160L0,160zM0,288L 352,288L 352,352L0,352zM0,384L 352,384L 352,448L0,448zM 384,224L 448,320L 512,224 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"menu, list, items, lines, options\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,384L 64,384 c-35.2,0-64,28.8-64,64s 28.8,64, 64,64l 384,0 c 35.2,0, 64-28.8, 64-64S 483.2,384, 448,384zM 448,192L 64,192 c-35.2,0-64,28.8-64,64s 28.8,64, 64,64l 384,0 c 35.2,0, 64-28.8, 64-64S 483.2,192, 448,192zM 64,128l 384,0 c 35.2,0, 64-28.8, 64-64S 483.2,0, 448,0L 64,0 C 28.8,0,0,28.8,0,64S 28.8,128, 64,128z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"circle-small\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,256A96,96 2520 1 1 352,256A96,96 2520 1 1 160,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"menu, dots, more\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,96A64,64 9000 1 1 320,96A64,64 9000 1 1 192,96zM 192,256A64,64 9000 1 1 320,256A64,64 9000 1 1 192,256zM 192,416A64,64 9000 1 1 320,416A64,64 9000 1 1 192,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"menu, dots, more\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,32L 320,32L 320,160L 192,160zM 192,192L 320,192L 320,320L 192,320zM 192,352L 320,352L 320,480L 192,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tree, branches, descendants\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 488,384l-8,0 L 480,280 c0-30.878-25.121-56-56-56L 288,224 l0-64 l 8,0 c 13.2,0, 24-10.8, 24-24L 320,56 c0-13.2-10.8-24-24-24l-80,0 \n\tc-13.2,0-24,10.8-24,24l0,80 c0,13.2, 10.8,24, 24,24l 8,0 l0,64 L 88,224 c-30.878,0-56,25.122-56,56l0,104 l-8,0 c-13.2,0-24,10.8-24,24l0,80 \n\tc0,13.2, 10.8,24, 24,24l 80,0 c 13.2,0, 24-10.8, 24-24l0-80 c0-13.2-10.8-24-24-24l-8,0 l0-96 l 128,0 l0,96 l-8,0 c-13.2,0-24,10.8-24,24l0,80 \n\tc0,13.2, 10.8,24, 24,24l 80,0 c 13.2,0, 24-10.8, 24-24l0-80 c0-13.2-10.8-24-24-24l-8,0 l0-96 l 128,0 l0,96 l-8,0 c-13.2,0-24,10.8-24,24l0,80 \n\tc0,13.2, 10.8,24, 24,24l 80,0 c 13.2,0, 24-10.8, 24-24l0-80 C 512,394.8, 501.2,384, 488,384z M 96,480L 32,480 l0-64 l 64,0 L 96,480 z M 288,480l-64,0 l0-64 l 64,0 L 288,480 z\n\t M 224,128L 224,64 l 64,0 l0,64 L 224,128 z M 480,480l-64,0 l0-64 l 64,0 L 480,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tree, branches, descendants\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 488,384l-8,0 L 480,280 c0-30.878-25.121-56-56-56L 288,224 l0-64 l 8,0 c 13.2,0, 24-10.8, 24-24L 320,56 c0-13.2-10.8-24-24-24l-80,0 \n\tc-13.2,0-24,10.8-24,24l0,80 c0,13.2, 10.8,24, 24,24l 8,0 l0,64 L 88,224 c-30.878,0-56,25.122-56,56l0,104 l-8,0 c-13.2,0-24,10.8-24,24l0,80 \n\tc0,13.2, 10.8,24, 24,24l 80,0 c 13.2,0, 24-10.8, 24-24l0-80 c0-13.2-10.8-24-24-24l-8,0 l0-96 l 128,0 l0,96 l-8,0 c-13.2,0-24,10.8-24,24l0,80 \n\tc0,13.2, 10.8,24, 24,24l 80,0 c 13.2,0, 24-10.8, 24-24l0-80 c0-13.2-10.8-24-24-24l-8,0 l0-96 l 128,0 l0,96 l-8,0 c-13.2,0-24,10.8-24,24l0,80 \n\tc0,13.2, 10.8,24, 24,24l 80,0 c 13.2,0, 24-10.8, 24-24l0-80 C 512,394.8, 501.2,384, 488,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tree, branches, binary tree\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 488,352l-50.411,0 L 320,156.020L 320,56 c0-13.2-10.8-24-24-24l-80,0 c-13.2,0-24,10.8-24,24l0,100.019 L 74.412,352L 24,352 \n\tc-13.2,0-24,10.8-24,24l0,80 c0,13.2, 10.8,24, 24,24l 80,0 c 13.2,0, 24-10.8, 24-24L 128,355.98 L 245.588,160l 20.823,0 L 384,355.98L 384,456 \n\tc0,13.2, 10.8,24, 24,24l 80,0 c 13.2,0, 24-10.8, 24-24l0-80 C 512,362.8, 501.2,352, 488,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"grid, icons, apps\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,0l0,512 l 512,0 L 512,0 L0,0 z M 480,160L 352,160 L 352,32 l 128,0 L 480,160 z M 192,320L 192,192 l 128,0 l0,128 L 192,320 z M 320,352l0,128 L 192,480 L 192,352 L 320,352 z M 160,320L 32,320 L 32,192 l 128,0 L 160,320 z\n\t M 192,160L 192,32 l 128,0 l0,128 L 192,160 z M 352,192l 128,0 l0,128 L 352,320 L 352,192 z M 160,32l0,128 L 32,160 L 32,32 L 160,32 z M 32,352l 128,0 l0,128 L 32,480 L 32,352 z M 352,480L 352,352 l 128,0 l0,128 L 352,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"grid, icons, apps, squares\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,0L 224,0L 224,224L0,224zM 288,0L 512,0L 512,224L 288,224zM0,288L 224,288L 224,512L0,512zM 288,288L 512,288L 512,512L 288,512z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"grid, icons, apps, circles\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,32 L 96,32 C 131.346,32 160,60.654 160,96 C 160,131.346 131.346,160 96,160 C 60.654,160 32,131.346 32,96 C 32,60.654 60.654,32 96,32 ZM 256,32 L 256,32 C 291.346,32 320,60.654 320,96 C 320,131.346 291.346,160 256,160 C 220.654,160 192,131.346 192,96 C 192,60.654 220.654,32 256,32 ZM 416,32 L 416,32 C 451.346,32 480,60.654 480,96 C 480,131.346 451.346,160 416,160 C 380.654,160 352,131.346 352,96 C 352,60.654 380.654,32 416,32 ZM 96,192 L 96,192 C 131.346,192 160,220.654 160,256 C 160,291.346 131.346,320 96,320 C 60.654,320 32,291.346 32,256 C 32,220.654 60.654,192 96,192 ZM 256,192 L 256,192 C 291.346,192 320,220.654 320,256 C 320,291.346 291.346,320 256,320 C 220.654,320 192,291.346 192,256 C 192,220.654 220.654,192 256,192 ZM 416,192 L 416,192 C 451.346,192 480,220.654 480,256 C 480,291.346 451.346,320 416,320 C 380.654,320 352,291.346 352,256 C 352,220.654 380.654,192 416,192 ZM 96,352 L 96,352 C 131.346,352 160,380.654 160,416 C 160,451.346 131.346,480 96,480 C 60.654,480 32,451.346 32,416 C 32,380.654 60.654,352 96,352 ZM 256,352 L 256,352 C 291.346,352 320,380.654 320,416 C 320,451.346 291.346,480 256,480 C 220.654,480 192,451.346 192,416 C 192,380.654 220.654,352 256,352 ZM 416,352 L 416,352 C 451.346,352 480,380.654 480,416 C 480,451.346 451.346,480 416,480 C 380.654,480 352,451.346 352,416 C 352,380.654 380.654,352 416,352 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"grid, icons, apps, squares\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,32L 160,32L 160,160L 32,160zM 192,32L 320,32L 320,160L 192,160zM 352,32L 480,32L 480,160L 352,160zM 32,192L 160,192L 160,320L 32,320zM 192,192L 320,192L 320,320L 192,320zM 352,192L 480,192L 480,320L 352,320zM 32,352L 160,352L 160,480L 32,480zM 192,352L 320,352L 320,480L 192,480zM 352,352L 480,352L 480,480L 352,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"grid, icons, apps, circles\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,64A64,64 2520 1 1 128,64A64,64 2520 1 1 0,64zM 192,64A64,64 2520 1 1 320,64A64,64 2520 1 1 192,64zM 384,64A64,64 2520 1 1 512,64A64,64 2520 1 1 384,64zM0,256A64,64 2520 1 1 128,256A64,64 2520 1 1 0,256zM 192,256A64,64 2520 1 1 320,256A64,64 2520 1 1 192,256zM 384,256A64,64 2520 1 1 512,256A64,64 2520 1 1 384,256zM0,448A64,64 2520 1 1 128,448A64,64 2520 1 1 0,448zM 192,448A64,64 2520 1 1 320,448A64,64 2520 1 1 192,448zM 384,448A64,64 2520 1 1 512,448A64,64 2520 1 1 384,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"grid, icons, apps\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,0L 128,0L 128,128L0,128zM 192,0L 320,0L 320,128L 192,128zM 384,0L 512,0L 512,128L 384,128zM0,192L 128,192L 128,320L0,320zM 192,192L 320,192L 320,320L 192,320zM 384,192L 512,192L 512,320L 384,320zM0,384L 128,384L 128,512L0,512zM 192,384L 320,384L 320,512L 192,512zM 384,384L 512,384L 512,512L 384,512z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"playlist, music, songs\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32L 320,32L 320,96L0,96zM0,160L 288,160L 288,224L0,224zM0,288L 224,288L 224,352L0,352zM0,416L 160,416L 160,480L0,480zM 416,0l-64,0 l0,356.559 c-10.010-2.949-20.778-4.559-32-4.559c-53.020,0-96,35.817-96,80s 42.98,80, 96,80s 96-35.817, 96-80L 416,96 l 96,32\n\t\tL 512,64 L 416,0z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"list, bullet, ul, menu\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,0l 320,0 l0,128 L 192,128 L 192,0 z M 192,192l 320,0 l0,128 L 192,320 L 192,192 z M 192,384l 320,0 l0,128 L 192,512 L 192,384 zM0,64A64,64 2520 1 1 128,64A64,64 2520 1 1 0,64zM0,256A64,64 2520 1 1 128,256A64,64 2520 1 1 0,256zM0,448A64,64 2520 1 1 128,448A64,64 2520 1 1 0,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"list, bullet, ul, menu\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,0L 128,0L 128,128L0,128zM 192,0L 512,0L 512,128L 192,128zM0,192L 128,192L 128,320L0,320zM 192,192L 512,192L 512,320L 192,320zM0,384L 128,384L 128,512L0,512zM 192,384L 512,384L 512,512L 192,512z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"numbered-list, list, items, nl\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,416L 512,416L 512,480L 192,480zM 192,224L 512,224L 512,288L 192,288zM 192,32L 512,32L 512,96L 192,96zM 96,0 L 96,128 L 64,128 L 64,32 L 32,32 L 32,0 ZM 64,263 L 64,288 L 128,288 L 128,320 L 32,320 L 32,247 L 96,217 L 96,192 L 32,192 L 32,160 L 128,160 L 128,233 ZM 128,352 L 128,512 L 32,512 L 32,480 L 96,480 L 96,448 L 32,448 L 32,416 L 96,416 L 96,384 L 32,384 L 32,352 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"list, bullet, ul, menu\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,0C 28.654,0,0,28.654,0,64s 28.654,64, 64,64s 64-28.654, 64-64S 99.346,0, 64,0z M 64,108c-24.262,0-44-19.738-44-44\n\t\ts 19.738-44, 44-44s 44,19.738, 44,44S 88.262,108, 64,108zM 64,192c-35.346,0-64,28.654-64,64c0,35.346, 28.654,64, 64,64s 64-28.654, 64-64C 128,220.654, 99.346,192, 64,192z M 64,300\n\t\tc-24.262,0-44-19.738-44-44s 19.738-44, 44-44s 44,19.738, 44,44S 88.262,300, 64,300zM 64,384c-35.346,0-64,28.654-64,64s 28.654,64, 64,64s 64-28.654, 64-64S 99.346,384, 64,384z M 64,492c-24.262,0-44-19.738-44-44\n\t\ts 19.738-44, 44-44s 44,19.738, 44,44S 88.262,492, 64,492zM 192,32L 512,32L 512,96L 192,96zM 192,224L 512,224L 512,288L 192,288zM 192,416L 512,416L 512,480L 192,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"list, bullet, ul, todo, menu\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,32l 320,0 l0,64 L 192,96 L 192,32 z M 192,224l 320,0 l0,64 L 192,288 L 192,224 z M 192,416l 320,0 l0,64 L 192,480 L 192,416 zM0,64A64,64 2520 1 1 128,64A64,64 2520 1 1 0,64zM0,256A64,64 2520 1 1 128,256A64,64 2520 1 1 0,256zM0,448A64,64 2520 1 1 128,448A64,64 2520 1 1 0,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"list, bullet, ul, todo, menu\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,0L 128,0L 128,128L0,128zM 192,32L 512,32L 512,96L 192,96zM0,192L 128,192L 128,320L0,320zM 192,224L 512,224L 512,288L 192,288zM0,384L 128,384L 128,512L0,512zM 192,416L 512,416L 512,480L 192,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"clipboard, board, list\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,64l-64,0 L 320,32 c0-17.6-14.4-32-32-32l-64,0 c-17.602,0-32,14.4-32,32l0,32 l-64,0 l0,64 l 256,0 L 384,64 z M 288,64l-64,0 L 224,32.057 \n\t\tc 0.017-0.019, 0.036-0.039, 0.057-0.057l 63.884,0 c 0.021,0.018, 0.041,0.038, 0.059,0.057L 288,64 L 288,64zM 432,64l-32,0 l0,32 l 16,0 l0,384 L 96,480 L 96,96 l 16,0 L 112,64 L 80,64 c-8.801,0-16,7.2-16,16l0,416 c0,8.8, 7.199,16, 16,16l 352,0 c 8.8,0, 16-7.2, 16-16L 448,80 \n\t\tC 448,71.2, 440.8,64, 432,64zM 128,192L 384,192L 384,224L 128,224zM 128,288L 384,288L 384,320L 128,320zM 128,384L 384,384L 384,416L 128,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"clipboard, board\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,64l-64,0 L 320,32 c0-17.6-14.4-32-32-32l-64,0 c-17.602,0-32,14.4-32,32l0,32 l-64,0 l0,64 l 256,0 L 384,64 z M 288,64l-64,0 L 224,32.057 \n\t\tc 0.017-0.019, 0.036-0.039, 0.057-0.057l 63.884,0 c 0.021,0.018, 0.041,0.038, 0.059,0.057L 288,64 L 288,64zM 432,64l-32,0 l0,32 l 16,0 l0,384 L 96,480 L 96,96 l 16,0 L 112,64 L 80,64 c-8.801,0-16,7.2-16,16l0,416 c0,8.8, 7.199,16, 16,16l 352,0 c 8.8,0, 16-7.2, 16-16L 448,80 \n\t\tC 448,71.2, 440.8,64, 432,64z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"signup, checkmark, board, agreement, register\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,397.255L 121.373,278.628L 150.627,249.373L 224,306.745L 361.372,185.373L 390.628,214.627 \tzM 415.886,64c 0.039,0.033, 0.081,0.075, 0.114,0.115l0,383.771 c-0.033,0.039-0.075,0.081-0.114,0.114L 96.114,448 \n\tc-0.040-0.033-0.081-0.075-0.114-0.114L 96,64.114 c 0.033-0.040, 0.075-0.081, 0.115-0.114L 32,64 l0,384 c0,35.2, 28.8,64, 64,64l 320,0 \n\tc 35.2,0, 64-28.8, 64-64L 480,64 L 415.886,64 z M 320,64L 320,32 c0-17.673-14.327-32-32-32l-64,0 c-17.673,0-32,14.327-32,32l0,32 l-64,0 l0,64 l 256,0 L 384,64 L 320,64 z\n\t M 288,64l-64,0 L 224,32 l 64,0 L 288,64 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"clipboard, list\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 415.886,64c 0.039,0.033, 0.081,0.075, 0.114,0.115l0,383.771 c-0.033,0.039-0.075,0.081-0.114,0.114L 96.114,448 \n\t\tc-0.040-0.033-0.081-0.075-0.114-0.114L 96,64.114 c 0.033-0.040, 0.075-0.081, 0.115-0.114L 32,64 l0,384 c0,35.2, 28.8,64, 64,64l 320,0 \n\t\tc 35.2,0, 64-28.8, 64-64L 480,64 L 415.886,64 zM 128,160L 192,160L 192,224L 128,224zM 224,160L 384,160L 384,224L 224,224zM 128,256L 192,256L 192,320L 128,320zM 224,256L 384,256L 384,320L 224,320zM 128,352L 192,352L 192,416L 128,416zM 224,352L 384,352L 384,416L 224,416zM 320,64L 320,32 c0-17.673-14.327-32-32-32l-64,0 c-17.673,0-32,14.327-32,32l0,32 l-64,0 l0,64 l 256,0 L 384,64 L 320,64 z M 288,64l-64,0 L 224,32 l 64,0 L 288,64 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"clipboard, board, list\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,48c0-26.51-21.49-48-48-48c-26.509,0-48,21.49-48,48c0,48-96,16-96,80l 288,0 C 384,64, 288,96, 288,48z M 240,71.2\n\t\tc-12.813,0-23.2-10.387-23.2-23.2s 10.387-23.2, 23.2-23.2c 12.812,0, 23.2,10.387, 23.2,23.2S 252.812,71.2, 240,71.2zM 448,96l-32,0 l0,64 L 64,160 L 64,96 L 32,96 c-17.673,0-32,14.327-32,32l0,352 c0,17.674, 14.326,32, 32,32l 416,0 c 17.672,0, 32-14.326, 32-32L 480,128 \n\t\tC 480,110.327, 465.672,96, 448,96z M 416,448L 64,448 l0-32 l 352,0 L 416,448 z M 416,352L 64,352 l0-32 l 352,0 L 416,352 z M 416,256L 64,256 l0-32 l 352,0 L 416,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"socket, power, plugin\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,160L 160,160L 160,288L 128,288zM 352,160L 384,160L 384,256L 352,256zM 379.996,32L 132.004,32 C 53.288,75.667,0,159.604,0,256s 53.288,180.333, 132.004,224l 247.992,0 \n\t\tC 458.712,436.333, 512,352.396, 512,256S 458.712,75.667, 379.996,32z M 371.418,448L 140.582,448 c-31.358-18.896-57.763-45.287-76.68-76.726\n\t\tC 43.032,336.59, 32,296.729, 32,256s 11.032-80.589, 31.902-115.275C 82.82,109.287, 109.224,82.896, 140.582,64l 230.836,0 \n\t\tc 31.357,18.896, 57.763,45.287, 76.68,76.725C 468.969,175.411, 480,215.272, 480,256c0,40.729-11.031,80.59-31.902,115.274\n\t\tC 429.181,402.713, 402.776,429.104, 371.418,448zM 256,320c-35.346,0-64,14.327-64,32l0,64 l 128,0 l0-64 C 320,334.327, 291.347,320, 256,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cord\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 441.435,198.565c-7.42-7.42-19.449-7.42-26.869,0L 336,277.131L 234.87,176l 78.564-78.565c 7.421-7.42, 7.421-19.45,0-26.87\n\tc-7.42-7.42-19.449-7.42-26.869,0L 208,149.13l-46.565-46.565c-7.42-7.42-19.45-7.42-26.87,0s-7.42,19.45,0,26.87l 33.49,33.49\n\tL 101.49,229.49c-42.174,42.174-48.766,106.456-19.775,155.541L 9.373,457.373c-12.497,12.496-12.497,32.758,0,45.254\n\tC 15.621,508.876, 23.811,512, 32,512s 16.379-3.124, 22.627-9.373l 72.341-72.342c 49.085,28.99, 113.367,22.398, 155.541-19.775\n\tl 66.565-66.565l 33.49,33.49c 3.71,3.71, 8.572,5.565, 13.435,5.565s 9.725-1.855, 13.435-5.565c 7.421-7.42, 7.421-19.449,0-26.869\n\tL 362.869,304l 78.565-78.565C 448.855,218.015, 448.855,205.985, 441.435,198.565z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"power cord, cord, plugin, extension\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,141.25L 466.747,96L 377.374,185.376L 326.624,134.625L 415.999,45.25L 370.749,0L 281.374,89.375L 224,32L 180.687,75.312L 436.688,331.313L 480,288.001L 422.624,230.625 \tzM 137.374,374.627c 82.884,82.881, 192.597,18.181, 259.646-37.732L 175.108,114.983\n\t\tC 119.196,182.031, 54.494,291.744, 137.374,374.627zM 95.999,352.002L 159.996,416L 64,511.996L 0.002,447.999z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"switch, power, turn off, off, shutdown\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,73.294l0,67.979 c 18.103,7.902, 34.75,19.204, 49.137,33.59C 399.358,205.083, 416,245.263, 416,288\n\t\ts-16.643,82.917-46.863,113.137C 338.917,431.357, 298.738,448, 256,448s-82.917-16.643-113.137-46.863\n\t\tC 112.643,370.917, 96,330.737, 96,288s 16.643-82.917, 46.863-113.137c 14.387-14.387, 31.034-25.689, 49.137-33.591L 192,73.294 \n\t\tC 99.476,100.834, 32,186.53, 32,288c0,123.712, 100.289,224, 224,224c 123.712,0, 224-100.288, 224-224\n\t\tC 480,186.53, 412.525,100.834, 320,73.294zM 224,0L 288,0L 288,256L 224,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"power, lightning, bolt\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,352L 160,96L 320,256L 512,128L 352,416L 192,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"power, lightning\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,0L 64,288L 240,288L 160,512L 448,224L 272,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lightning, power\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,0L0,256L 192,256L 64,512L 512,192L 256,192L 448,0 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bowling, game, pin, sports\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 307.943,243.345c-12.006-25.346-24.421-51.555-24.421-84.844c0-13.231, 2.004-28.615, 4.125-44.903\n\tc 4.822-37.026, 9.808-75.313-8.953-97.388c-6.049-7.117-13.967-11.915-23.637-14.341L 255.057,0 l-14,0 c-0.357,0-0.704,0.009-1.051,0.020l-0.012,0 \n\tC 239.647,0.009, 239.3,0, 238.941,0l-14,0.046l0,1.822 c-9.669,2.426-17.587,7.224-23.636,14.341\n\tc-18.761,22.075-13.775,60.362-8.953,97.389c 2.121,16.288, 4.125,31.672, 4.125,44.902c0,33.289-12.415,59.498-24.42,84.844\n\tc-11.822,24.958-24.046,50.765-24.046,82.187c0,60.911, 25.799,139.836, 32.729,155.582c 6.698,15.214, 23.585,26.13, 44.779,29.65L 225.519,512 \n\tl 14,0 c 0.157,0, 0.314-0.002, 0.479-0.007c 0.162,0.004, 0.322,0.007, 0.483,0.007l 14-0.025l0-1.211 c 21.193-3.521, 38.080-14.437, 44.78-29.651\n\tc 6.93-15.748, 32.729-94.678, 32.729-155.581C 331.99,294.109, 319.766,268.303, 307.943,243.345z M 255.54,160l-31.080,0 \n\tc 0.005-0.5, 0.017-0.996, 0.017-1.499c0-9.585-0.902-19.971-2.109-30.501l 35.264,0 c-1.208,10.53-2.109,20.916-2.109,30.501\n\tC 255.522,159.004, 255.535,159.5, 255.54,160z M 222.641,34.342c 2.161-2.542, 6.249-5.962, 16.754-6.303l 0.444-0.016l 0.158,0.002\n\tl 0.131-0.002l 0.476,0.016c 10.506,0.341, 14.594,3.761, 16.755,6.303c 9.060,10.66, 7.361,36.188, 4.298,61.658l-43.313,0 \n\tC 215.28,70.53, 213.581,45.002, 222.641,34.342z M 273.635,469.831c-2.946,6.689-15.628,13.92-33.331,14.145L 240,483.979l-0.304-0.004\n\tc-17.703-0.225-30.385-7.454-33.33-14.143c-6.179-14.038-30.356-88.632-30.356-144.302c0-25.126, 10.371-47.021, 21.351-70.2\n\tc 8.872-18.73, 18.564-39.21, 23.612-63.332l 38.053,0 c 5.048,24.122, 14.74,44.601, 23.612,63.332c 10.98,23.18, 21.352,45.074, 21.352,70.2\n\tC 303.99,381.193, 279.812,455.793, 273.635,469.831z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bowling, game, pins, sports\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 459.941,212.927c-10.505-22.178-21.368-45.11-21.368-74.238c0-11.577, 1.754-25.039, 3.609-39.29\n\tc 4.22-32.398, 8.582-65.899-7.834-85.215c-5.293-6.228-12.221-10.426-20.683-12.548L 413.665,0 l-12.25,0 c-0.312,0-0.615,0.008-0.919,0.017\n\tl-0.011,0 C 400.183,0.008, 399.879,0, 399.564,0l-12.25,0.041l0,1.595 c-8.461,2.123-15.389,6.32-20.682,12.548\n\tC 350.217,33.499, 354.58,67, 358.799,99.399c 1.856,14.251, 3.609,27.713, 3.609,39.29c0,29.128-10.863,52.061-21.367,74.238\n\tc-8.701,18.367-17.647,37.26-20.272,59.159c-3.886-9.868-8.384-19.365-12.825-28.741c-12.006-25.346-24.421-51.555-24.421-84.844\n\tc0-13.231, 2.004-28.615, 4.125-44.903c 4.822-37.026, 9.808-75.313-8.953-97.388c-6.049-7.117-13.967-11.915-23.637-14.341L 255.058,0 l-14,0 \n\tc-0.357,0-0.704,0.009-1.051,0.020l-0.012,0 C 239.647,0.009, 239.3,0, 238.941,0l-14,0.046l0,1.822 c-9.669,2.426-17.587,7.224-23.636,14.341\n\tc-18.761,22.075-13.775,60.362-8.953,97.389c 2.121,16.288, 4.125,31.672, 4.125,44.902c0,33.289-12.415,59.498-24.42,84.844\n\tc-4.162,8.786-8.372,17.68-12.082,26.884c-2.894-21.113-11.579-39.457-20.033-57.302c-10.505-22.178-21.368-45.11-21.368-74.238\n\tc0-11.577, 1.754-25.039, 3.609-39.29c 4.22-32.398, 8.582-65.899-7.834-85.215c-5.293-6.228-12.221-10.426-20.682-12.548L 93.667,0 l-12.25,0 \n\tc-0.312,0-0.616,0.008-0.919,0.017l-0.011,0 C 80.183,0.008, 79.878,0, 79.565,0l-12.25,0.041l0,1.595 \n\tc-8.461,2.123-15.389,6.32-20.682,12.548C 30.217,33.499, 34.58,67, 38.799,99.399c 1.856,14.251, 3.609,27.713, 3.609,39.29\n\tc0,29.128-10.863,52.061-21.368,74.238C 10.696,234.765,0,257.346,0,284.84c0,53.297, 22.574,122.356, 28.638,136.135\n\tc 5.86,13.312, 20.637,22.863, 39.182,25.943L 67.82,448 l 12.25,0 c 0.137,0, 0.275-0.002, 0.419-0.006c 0.142,0.003, 0.282,0.006, 0.423,0.006\n\tl 12.25-0.022l0-1.060 c 18.544-3.080, 33.32-12.632, 39.182-25.944c 3.277-7.446, 11.374-31.038, 18.125-59.557\n\tc 6.611,52.579, 24.647,106.924, 30.27,119.696c 6.698,15.214, 23.585,26.13, 44.779,29.65L 225.518,512 l 14,0 c 0.157,0, 0.314-0.002, 0.479-0.007\n\tc 0.162,0.004, 0.322,0.007, 0.483,0.007l 14-0.025l0-1.211 c 21.193-3.521, 38.080-14.437, 44.78-29.651\n\tc 5.72-12.998, 24.292-69.038, 30.604-122.458c 6.873,29.752, 15.39,54.636, 18.772,62.32c 5.859,13.312, 20.637,22.863, 39.182,25.943L 387.818,448 \n\tl 12.25,0 c 0.137,0, 0.274-0.002, 0.419-0.006c 0.142,0.003, 0.282,0.006, 0.423,0.006l 12.25-0.022l0-1.060 \n\tc 18.545-3.080, 33.32-12.632, 39.183-25.944c 6.064-13.78, 28.638-82.844, 28.638-136.134\n\tC 480.982,257.346, 470.286,234.765, 459.941,212.927z M 222.641,34.342c 2.161-2.542, 6.249-5.962, 16.754-6.303l 0.444-0.016l 0.158,0.002\n\tl 0.131-0.002l 0.476,0.016c 10.506,0.341, 14.594,3.761, 16.755,6.303c 9.060,10.66, 7.361,36.188, 4.298,61.658l-43.313,0 \n\tC 215.28,70.53, 213.581,45.002, 222.641,34.342z M 255.54,160l-31.080,0 c 0.005-0.5, 0.017-0.996, 0.017-1.499\n\tc0-9.585-0.902-19.971-2.109-30.501l 35.264,0 c-1.208,10.53-2.109,20.916-2.109,30.501C 255.522,159.004, 255.535,159.5, 255.54,160z\n\t M 273.635,469.831c-2.946,6.689-15.628,13.92-33.331,14.145L 240,483.979l-0.304-0.004c-17.703-0.225-30.385-7.454-33.33-14.143\n\tc-6.179-14.038-30.356-88.632-30.356-144.302c0-25.126, 10.371-47.021, 21.351-70.2c 8.872-18.73, 18.564-39.21, 23.612-63.332l 38.053,0 \n\tc 5.048,24.122, 14.74,44.601, 23.612,63.332c 10.98,23.18, 21.352,45.074, 21.352,70.2C 303.99,381.193, 279.812,455.793, 273.635,469.831z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bowling ball, ball, game, sports\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 288,320\n\tc-17.673,0-32-14.327-32-32s 14.327-32, 32-32s 32,14.327, 32,32S 305.673,320, 288,320z M 320,160c-17.673,0-32-14.327-32-32\n\ts 14.327-32, 32-32s 32,14.327, 32,32S 337.673,160, 320,160z M 416,224c-17.673,0-32-14.327-32-32s 14.327-32, 32-32s 32,14.327, 32,32\n\tS 433.673,224, 416,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"eight ball, 8ball, billiards, snooker, sports\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,384\n\t\tc-70.692,0-128-57.308-128-128s 57.308-128, 128-128s 128,57.308, 128,128S 326.692,384, 256,384zM 296.963,253.506c 10.817-9.805, 17.543-23.442, 17.543-38.507c0-29.775-26.246-54-58.507-54\n\t\tc-32.26,0-58.505,24.224-58.505,54c0,15.065, 6.726,28.702, 17.542,38.506c-14.076,10.281-23.052,25.735-23.052,42.994\n\t\tc0,30.879, 28.717,56, 64.015,56c 35.299,0, 64.017-25.121, 64.017-56C 320.016,279.241, 311.040,263.787, 296.963,253.506z M 225.494,215\n\t\tc0-14.336, 13.685-26, 30.505-26c 16.821,0, 30.507,11.663, 30.507,26c0,12.943-11.154,23.704-25.699,25.675\n\t\tc-1.59-0.104-3.188-0.174-4.808-0.174c-1.619,0-3.218,0.070-4.807,0.174C 236.648,238.703, 225.494,227.942, 225.494,215z\n\t\t M 255.999,323.5c-19.307,0-35.015-12.112-35.015-27s 15.708-27, 35.015-27c 19.309,0, 35.017,12.112, 35.017,27\n\t\tS 275.308,323.5, 255.999,323.5z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"racing, flag, sports\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,0L 80,0L 80,512L 32,512zM 192,96L 256,96L 256,160L 192,160zM 256,160l0,64 c 32,0, 32,32, 64,32l0-64 C 288,192, 288,160, 256,160zM 320,128L 384,128L 384,192L 320,192zM 320,32c-16,0-24-8-32-16S 272,0, 256,0L 96,0 l0,320 l 160,0 c 16,0, 24,8, 32,16s 16,16, 32,16l 160,0 L 480,32 L 320,32 z M 448,192l-64,0 l0,64 l 64,0 l0,64 l-64,0 l0-64 \n\t\tl-64,0 l0,64 c-16,0-24-8-32-16s-16-16-32-16l0-64 l-64,0 l0,64 l-64,0 l0-64 l 64,0 l0-64 l-64,0 L 128,96 l 64,0 L 192,32 l 64,0 l0,64 c 16,0, 24,8, 32,16s 16,16, 32,16L 320,64 l 64,0 l0,64 l 64,0 L 448,192 \n\t\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"hockey, sports\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,422.439L 320,438 c0,17.673, 42.98,32, 96,32s 96-14.327, 96-32l0-15.561 C 495.415,437.965, 455.522,446, 416,446\n\t\tS 336.585,437.965, 320,422.439zM 320,404A96,32 7560 1 1 512,404A96,32 7560 1 1 320,404zM 454.402,96L 224.521,384.982c-15.687,18.019-126.371,12.893-184.957,3.903c-0.015,0-0.029,0-0.045-0.001\n\t\tc-26.645-2.943-33.747-13.682-38.070,10.169L 1.446,399.053 c-4.93,37.705, 4.325,70.333, 4.325,70.333\n\t\tc 19.563,20.469, 199.608,8.402, 218.749-11.447L 512,96L 454.402,96 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"golf, sports, ball\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 208.85,387.4L 236,464l0,48 l 40,0 l0-48 l 27.149-76.6c-15.129,3.651-30.915,5.6-47.149,5.6S 223.979,391.052, 208.85,387.4zM 96,192A160,160 7560 1 1 416,192A160,160 7560 1 1 96,192z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"basketball, sports, ball\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 479.456,256c-3.461-52.57-23.85-100.511-55.763-138.432c-3.75,3.247-7.401,6.64-10.943,10.182\n\t\tc-34.734,34.734-55.393,79.79-59.128,128.25L 479.456,256 zM 398.495,91.805C 359.963,57.887, 310.467,36.13, 256,32.543L 256,256 l 61.544,0 C 321.845,190.673, 352.276,132.492, 398.495,91.805zM 67.25,127.75c-3.542-3.542-7.194-6.936-10.943-10.182C 24.394,155.489, 4.005,203.43, 0.543,256l 125.834,0 \n\t\tC 122.643,207.54, 101.984,162.484, 67.25,127.75zM 162.457,256L 224,256 L 224,32.543 C 169.534,36.13, 120.037,57.887, 81.505,91.805C 127.724,132.492, 158.155,190.673, 162.457,256zM 412.75,416.25c 3.542,3.542, 7.194,6.936, 10.943,10.183c 31.913-37.921, 52.302-85.862, 55.763-138.433L 353.622,288 \n\t\tC 357.357,336.46, 378.016,381.516, 412.75,416.25zM 317.544,288L 256,288 l0,223.456 c 54.467-3.586, 103.963-25.343, 142.495-59.261C 352.276,411.509, 321.845,353.328, 317.544,288zM 0.543,288c 3.461,52.57, 23.85,100.512, 55.763,138.432c 3.75-3.246, 7.401-6.64, 10.943-10.182\n\t\tc 34.734-34.734, 55.393-79.79, 59.128-128.25L 0.543,288 zM 81.505,452.195c 38.532,33.918, 88.029,55.675, 142.495,59.261L 224,288 l-61.543,0 C 158.155,353.327, 127.723,411.509, 81.505,452.195z\n\t\t\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"baseball, sports, ball\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384.385,439.584c0-0.001-0.002-0.003-0.004-0.004c-0.040-0.044-0.073-0.080-0.114-0.123\n\t\tc-0.003-0.004-0.006-0.007-0.009-0.010c-0.123-0.132-0.236-0.255-0.359-0.387c-0.003-0.004-0.006-0.008-0.010-0.011\n\t\tc-0.041-0.044-0.070-0.077-0.111-0.121c-0.002-0.003-0.006-0.006-0.008-0.009c-0.082-0.088-0.154-0.166-0.236-0.255\n\t\tc-0.006-0.007-0.012-0.013-0.018-0.019c-0.029-0.033-0.066-0.072-0.097-0.105c-0.008-0.009-0.016-0.018-0.023-0.025\n\t\tc-0.030-0.033-0.072-0.079-0.103-0.111c-0.004-0.004-0.008-0.009-0.012-0.013c-0.041-0.044-0.075-0.082-0.115-0.126\n\t\tc-0.006-0.006-0.011-0.012-0.016-0.018c-0.031-0.033-0.068-0.073-0.098-0.106c-0.009-0.010-0.019-0.021-0.027-0.030\n\t\tc-0.031-0.033-0.059-0.063-0.089-0.098c-0.009-0.008-0.018-0.018-0.026-0.027c-0.035-0.039-0.076-0.084-0.112-0.123l-0.001,0 \n\t\tc-0.035-0.039-0.076-0.084-0.111-0.123c-0.010-0.011-0.020-0.021-0.029-0.031c-0.030-0.033-0.052-0.057-0.082-0.090\n\t\tc-0.013-0.014-0.023-0.027-0.036-0.041c-0.030-0.032-0.054-0.058-0.083-0.090c-0.010-0.012-0.020-0.021-0.027-0.031\n\t\tc-0.041-0.045-0.069-0.075-0.109-0.119c-0.011-0.012-0.020-0.022-0.031-0.033c-0.024-0.029-0.053-0.059-0.077-0.087\n\t\tc-0.015-0.017-0.030-0.032-0.044-0.049c-0.021-0.022-0.045-0.050-0.066-0.072c-0.016-0.017-0.030-0.034-0.047-0.052\n\t\tc-0.024-0.027-0.050-0.055-0.076-0.084c-0.010-0.012-0.020-0.023-0.031-0.035c-0.035-0.039-0.065-0.072-0.101-0.111\n\t\tc-0.019-0.020-0.035-0.039-0.053-0.059c-0.015-0.018-0.040-0.045-0.056-0.061c-0.019-0.021-0.037-0.041-0.055-0.062\n\t\tc-0.016-0.017-0.037-0.042-0.053-0.059c-0.019-0.021-0.037-0.041-0.057-0.062c-0.020-0.023-0.035-0.041-0.055-0.062\n\t\tc-0.035-0.039-0.069-0.076-0.104-0.115c-0.010-0.012-0.031-0.035-0.041-0.045c-0.022-0.025-0.045-0.051-0.068-0.076\n\t\tc-0.010-0.012-0.025-0.029-0.036-0.041c-0.022-0.024-0.045-0.050-0.067-0.074c-0.010-0.012-0.025-0.027-0.035-0.039\n\t\tc-0.078-0.088-0.157-0.176-0.236-0.264c-0.010-0.012-0.017-0.020-0.026-0.031c-0.024-0.027-0.048-0.055-0.073-0.082\n\t\tc-0.010-0.012-0.021-0.023-0.031-0.035c-0.024-0.027-0.049-0.055-0.074-0.084c-0.062-0.068-0.123-0.138-0.184-0.206l-0.004-0.004\n\t\tc-0.027-0.030-0.055-0.062-0.082-0.093c-0.006-0.006-0.014-0.016-0.019-0.021c-0.028-0.031-0.057-0.062-0.085-0.094l-0.003-0.004\n\t\tc-0.089-0.102-0.18-0.203-0.269-0.305c-0.006-0.005-0.008-0.008-0.013-0.013c-0.027-0.032-0.056-0.063-0.083-0.095\n\t\tc-0.005-0.006-0.009-0.010-0.014-0.016c-0.121-0.137-0.242-0.274-0.363-0.412l-0.002-0.003c-1.082-1.231-2.152-2.477-3.209-3.731\n\t\tl 6.658-5.61c-6.201-7.489-11.959-15.359-17.228-23.573l-8.081,5.438c-1.694-2.518-3.342-5.070-4.943-7.654l-0.002-0.006\n\t\tc-0.023-0.036-0.047-0.073-0.068-0.109c-0.005-0.007-0.008-0.012-0.012-0.019c-0.092-0.149-0.185-0.298-0.276-0.448\n\t\tc-0.008-0.013-0.015-0.023-0.022-0.037c-0.020-0.030-0.037-0.061-0.057-0.091c-0.008-0.013-0.018-0.030-0.025-0.043\n\t\tc-0.041-0.065-0.080-0.128-0.12-0.193c-0.004-0.007-0.005-0.007-0.008-0.013c-0.017-0.029-0.033-0.057-0.050-0.084\n\t\tc-0.013-0.019-0.022-0.035-0.035-0.055c-0.015-0.025-0.031-0.053-0.047-0.078c-0.012-0.020-0.026-0.043-0.038-0.062\n\t\tc-0.015-0.024-0.030-0.049-0.044-0.072c-0.017-0.025-0.034-0.055-0.051-0.080c-0.020-0.036-0.042-0.072-0.064-0.107\n\t\tc-0.015-0.025-0.030-0.051-0.045-0.076c-0.014-0.021-0.027-0.043-0.041-0.065c-0.016-0.026-0.029-0.050-0.045-0.075\n\t\tc-0.014-0.021-0.025-0.042-0.039-0.062c-0.020-0.033-0.038-0.063-0.057-0.096c-0.010-0.014-0.019-0.029-0.026-0.043\n\t\tc-0.028-0.045-0.054-0.088-0.081-0.133c-0.010-0.016-0.020-0.032-0.029-0.048c-0.020-0.032-0.039-0.065-0.059-0.099\n\t\tc-0.010-0.014-0.019-0.029-0.027-0.045c-0.023-0.038-0.041-0.066-0.064-0.106c-0.008-0.012-0.016-0.024-0.022-0.036\n\t\tc-0.026-0.045-0.060-0.098-0.087-0.144c0-0.001-0.001-0.003-0.002-0.005c-0.027-0.045-0.057-0.094-0.084-0.139\n\t\tc-0.006-0.010-0.012-0.021-0.018-0.031c-0.023-0.039-0.050-0.080-0.072-0.12c-0.006-0.009-0.012-0.018-0.017-0.026\n\t\tc-0.027-0.046-0.060-0.1-0.087-0.145c-0.031-0.052-0.060-0.102-0.092-0.152c-0.002-0.004-0.003-0.006-0.005-0.010\n\t\tc-0.028-0.045-0.056-0.092-0.083-0.139c-0.004-0.006-0.008-0.014-0.013-0.021c-0.089-0.149-0.181-0.305-0.27-0.454\n\t\tc-0.001-0.001-0.003-0.004-0.003-0.005c-0.031-0.052-0.059-0.097-0.089-0.148c-0.001-0.002-0.003-0.005-0.004-0.007\n\t\tc-0.092-0.154-0.181-0.307-0.272-0.463c-0.002-0.001-0.002-0.002-0.003-0.003c-3.678-6.233-7.075-12.636-10.188-19.212l 9.401-4.451\n\t\tc-3.538-7.792-6.66-15.812-9.362-24.021l-9.865,3.414c-2.137-6.174-4.027-12.459-5.662-18.848c0-0.002,0-0.002-0.001-0.004\n\t\tc-0.046-0.18-0.091-0.355-0.137-0.536c0-0.001,0-0.001-0.001-0.002c-0.045-0.18-0.088-0.351-0.133-0.531\n\t\tc-0.002-0.005-0.003-0.010-0.004-0.015c-0.045-0.18-0.088-0.348-0.133-0.529c0-0.002-0.001-0.005-0.002-0.008\n\t\tc-0.044-0.18-0.086-0.35-0.131-0.53c0-0.005-0.002-0.008-0.002-0.012c-0.016-0.061-0.027-0.11-0.043-0.171\n\t\tc0-0.002,0-0.002-0.001-0.004c-0.029-0.121-0.058-0.237-0.087-0.357c0-0.001-0.001-0.004-0.001-0.004\n\t\tc-0.015-0.061-0.028-0.115-0.042-0.176c-0.001-0.002-0.001-0.002-0.002-0.005c-0.029-0.12-0.057-0.236-0.086-0.356\n\t\tc0-0.002-0.001-0.004-0.002-0.006c-0.015-0.061-0.025-0.11-0.041-0.17c-0.001-0.005-0.002-0.008-0.002-0.012\n\t\tc-0.043-0.18-0.084-0.348-0.127-0.529c-0.001-0.004-0.002-0.010-0.004-0.014c-0.043-0.182-0.082-0.35-0.125-0.531\n\t\tc0-0.004-0.002-0.008-0.002-0.010c-0.043-0.181-0.084-0.354-0.125-0.535c-0.001-0.002-0.002-0.004-0.002-0.006\n\t\tc-0.042-0.182-0.083-0.357-0.124-0.538c-0.001-0.001-0.001-0.003-0.001-0.005c-0.043-0.182-0.083-0.357-0.124-0.539\n\t\tc-0.001-0.002-0.001-0.004-0.001-0.005c-0.738-3.241-1.41-6.505-2.017-9.794l 10.659-1.962c-1.417-8.074-2.425-16.289-3.013-24.62\n\t\tL 320,289.777l0-35.555 l 8.616,0.636c 0.588-8.331, 1.596-16.545, 3.013-24.62l-10.659-1.962c 0.606-3.289, 1.278-6.552, 2.017-9.793\n\t\tc0-0.001,0-0.003, 0.001-0.005c 0.041-0.181, 0.081-0.358, 0.124-0.54c0-0.001,0-0.003, 0.001-0.004\n\t\tc 0.041-0.181, 0.082-0.356, 0.124-0.538c0-0.003, 0.001-0.004, 0.002-0.007c 0.041-0.181, 0.082-0.354, 0.125-0.534\n\t\tc0-0.003, 0.002-0.007, 0.002-0.010c 0.043-0.182, 0.082-0.351, 0.125-0.531c 0.002-0.004, 0.003-0.010, 0.004-0.015\n\t\tc 0.043-0.181, 0.084-0.349, 0.127-0.529c0-0.004, 0.001-0.006, 0.002-0.011c 0.016-0.060, 0.026-0.11, 0.041-0.17\n\t\tc 0.001-0.002, 0.002-0.004, 0.002-0.006c 0.029-0.12, 0.057-0.236, 0.086-0.356c 0.001-0.002, 0.001-0.003, 0.002-0.005\n\t\tc 0.014-0.061, 0.027-0.115, 0.042-0.175c0,0, 0.001-0.003, 0.001-0.003c 0.029-0.121, 0.058-0.237, 0.087-0.358\n\t\tc 0.001-0.001, 0.001-0.002, 0.001-0.004c 0.016-0.060, 0.027-0.11, 0.043-0.171c0-0.004, 0.002-0.007, 0.002-0.012\n\t\tc 0.045-0.18, 0.087-0.351, 0.131-0.53c 0.001-0.003, 0.002-0.005, 0.002-0.008c 0.045-0.181, 0.088-0.349, 0.133-0.529\n\t\tc 0.001-0.005, 0.002-0.010, 0.004-0.015c 0.045-0.181, 0.088-0.352, 0.133-0.531c 0.001,0, 0.001-0.001, 0.001-0.002\n\t\tc 0.046-0.18, 0.091-0.357, 0.137-0.536c 0.001-0.001, 0.001-0.002, 0.001-0.004c 1.635-6.389, 3.525-12.674, 5.662-18.848l 9.865,3.414\n\t\tc 2.702-8.21, 5.825-16.229, 9.362-24.021l-9.401-4.451c 3.113-6.576, 6.511-12.978, 10.188-19.212c 0.001-0.001, 0.001-0.002, 0.003-0.003\n\t\tc 0.092-0.156, 0.181-0.308, 0.272-0.463c 0.001-0.002, 0.003-0.004, 0.004-0.006c 0.030-0.052, 0.058-0.097, 0.089-0.148\n\t\tc0-0.001, 0.002-0.004, 0.003-0.005c 0.089-0.149, 0.181-0.305, 0.27-0.454c 0.005-0.007, 0.009-0.014, 0.013-0.021\n\t\tc 0.027-0.046, 0.055-0.093, 0.083-0.138c 0.002-0.003, 0.003-0.006, 0.005-0.010c 0.032-0.051, 0.061-0.101, 0.092-0.152l0,0 \n\t\tc 0.027-0.045, 0.060-0.099, 0.087-0.144c 0.005-0.009, 0.011-0.018, 0.017-0.027c 0.022-0.040, 0.049-0.082, 0.072-0.121\n\t\tc 0.006-0.010, 0.012-0.021, 0.018-0.031c 0.027-0.045, 0.057-0.094, 0.084-0.139c 0.001-0.001, 0.002-0.003, 0.002-0.005\n\t\tc 0.027-0.045, 0.061-0.099, 0.087-0.143c 0.007-0.012, 0.015-0.025, 0.022-0.037c 0.023-0.040, 0.041-0.068, 0.064-0.107\n\t\tc 0.009-0.015, 0.018-0.030, 0.027-0.045c 0.020-0.032, 0.039-0.065, 0.059-0.098c 0.010-0.016, 0.020-0.032, 0.029-0.047\n\t\tc 0.027-0.045, 0.053-0.089, 0.081-0.133c 0.008-0.014, 0.017-0.029, 0.026-0.043c 0.019-0.032, 0.037-0.062, 0.057-0.095\n\t\tc 0.014-0.021, 0.025-0.042, 0.039-0.062c 0.016-0.026, 0.029-0.050, 0.045-0.076c 0.014-0.022, 0.027-0.043, 0.041-0.065\n\t\tc 0.015-0.025, 0.030-0.051, 0.045-0.077c 0.022-0.035, 0.045-0.071, 0.064-0.106c 0.017-0.025, 0.034-0.055, 0.051-0.080\n\t\tc 0.014-0.024, 0.029-0.048, 0.044-0.073c 0.012-0.019, 0.026-0.043, 0.038-0.062c 0.016-0.026, 0.032-0.053, 0.047-0.079\n\t\tc 0.013-0.019, 0.022-0.036, 0.035-0.055c 0.017-0.027, 0.033-0.055, 0.050-0.083c 0.003-0.006, 0.004-0.007, 0.008-0.013\n\t\tc 0.040-0.065, 0.079-0.128, 0.12-0.193c 0.008-0.013, 0.018-0.030, 0.025-0.043c 0.020-0.031, 0.037-0.061, 0.057-0.091\n\t\tc 0.008-0.013, 0.015-0.024, 0.022-0.037c 0.092-0.15, 0.185-0.299, 0.276-0.448c 0.004-0.006, 0.007-0.012, 0.012-0.018\n\t\tc 0.021-0.037, 0.045-0.074, 0.068-0.11l 0.002-0.006c 1.602-2.584, 3.249-5.136, 4.943-7.654l 8.081,5.438\n\t\tc 5.269-8.215, 11.026-16.084, 17.228-23.574l-6.658-5.61c 1.057-1.254, 2.127-2.499, 3.209-3.731l 0.002-0.002\n\t\tc 0.121-0.138, 0.242-0.275, 0.363-0.413c 0.005-0.005, 0.009-0.010, 0.014-0.015c 0.027-0.032, 0.056-0.062, 0.083-0.095\n\t\tc 0.005-0.005, 0.007-0.008, 0.013-0.013c 0.089-0.101, 0.18-0.203, 0.269-0.304l 0.003-0.003c 0.028-0.031, 0.057-0.063, 0.085-0.095\n\t\tc 0.005-0.006, 0.013-0.016, 0.019-0.021c 0.027-0.031, 0.055-0.062, 0.082-0.093l 0.004-0.004c 0.061-0.068, 0.122-0.138, 0.184-0.207\n\t\tc 0.025-0.028, 0.050-0.056, 0.074-0.084c 0.010-0.011, 0.021-0.023, 0.031-0.035c 0.025-0.027, 0.049-0.054, 0.073-0.082\n\t\tc 0.010-0.011, 0.017-0.020, 0.026-0.031c 0.079-0.088, 0.158-0.176, 0.236-0.264c 0.010-0.011, 0.025-0.028, 0.035-0.039\n\t\tc 0.022-0.025, 0.045-0.050, 0.067-0.075c 0.011-0.011, 0.026-0.030, 0.036-0.042c 0.023-0.025, 0.046-0.050, 0.068-0.075\n\t\tc 0.010-0.011, 0.031-0.034, 0.041-0.045c 0.034-0.040, 0.068-0.077, 0.104-0.116c 0.020-0.022, 0.035-0.040, 0.055-0.062\n\t\tc 0.020-0.021, 0.038-0.042, 0.057-0.062c 0.016-0.017, 0.037-0.042, 0.053-0.059c 0.018-0.020, 0.036-0.040, 0.055-0.061\n\t\tc 0.016-0.016, 0.041-0.044, 0.056-0.061c 0.018-0.020, 0.034-0.039, 0.053-0.059c 0.035-0.039, 0.065-0.073, 0.101-0.111\n\t\tc 0.012-0.012, 0.021-0.023, 0.031-0.035c 0.026-0.029, 0.052-0.057, 0.076-0.084c 0.017-0.018, 0.031-0.035, 0.047-0.052\n\t\tc 0.021-0.022, 0.046-0.050, 0.066-0.072c 0.014-0.017, 0.029-0.033, 0.044-0.049c 0.024-0.028, 0.053-0.058, 0.077-0.086\n\t\tc 0.012-0.011, 0.021-0.022, 0.031-0.033c 0.040-0.044, 0.068-0.075, 0.109-0.12c 0.008-0.010, 0.018-0.020, 0.027-0.031\n\t\tc 0.029-0.033, 0.053-0.058, 0.083-0.091c 0.013-0.014, 0.023-0.027, 0.036-0.041c 0.030-0.033, 0.052-0.056, 0.082-0.089\n\t\tc 0.010-0.011, 0.020-0.021, 0.029-0.032c 0.035-0.039, 0.076-0.084, 0.111-0.123l 0.001,0c 0.036-0.038, 0.077-0.084, 0.112-0.123\n\t\tc 0.009-0.009, 0.018-0.019, 0.026-0.027c 0.030-0.034, 0.058-0.064, 0.089-0.098c 0.009-0.010, 0.019-0.020, 0.027-0.030\n\t\tc 0.029-0.033, 0.066-0.074, 0.098-0.107c 0.005-0.006, 0.010-0.011, 0.016-0.017c 0.040-0.044, 0.074-0.082, 0.115-0.126\n\t\tc 0.004-0.004, 0.008-0.008, 0.012-0.012c 0.030-0.033, 0.072-0.078, 0.103-0.111c 0.008-0.009, 0.016-0.017, 0.023-0.025\n\t\tc 0.030-0.033, 0.067-0.073, 0.097-0.106c 0.006-0.006, 0.012-0.012, 0.018-0.019c 0.082-0.089, 0.154-0.167, 0.236-0.255\n\t\tc 0.002-0.002, 0.006-0.005, 0.008-0.008c 0.041-0.044, 0.070-0.077, 0.111-0.121c 0.004-0.003, 0.007-0.007, 0.010-0.011\n\t\tc 0.123-0.132, 0.236-0.255, 0.359-0.387c 0.003-0.003, 0.006-0.006, 0.009-0.010c 0.041-0.043, 0.074-0.079, 0.114-0.123\n\t\tc 0.002-0.001, 0.004-0.003, 0.004-0.004c 4.284-4.598, 8.751-9.019, 13.381-13.268C 355.58,54.318, 300.398,32, 240,32\n\t\tc-60.399,0-115.58,22.318-157.765,59.148c 4.629,4.249, 9.096,8.67, 13.38,13.268c 0.001,0.001, 0.003,0.003, 0.004,0.004\n\t\tc 0.041,0.044, 0.074,0.080, 0.115,0.123c 0.003,0.003, 0.006,0.007, 0.009,0.010c 0.122,0.132, 0.236,0.255, 0.358,0.387\n\t\tc 0.003,0.003, 0.007,0.007, 0.010,0.011c 0.041,0.044, 0.071,0.077, 0.112,0.121c 0.002,0.003, 0.005,0.006, 0.007,0.008\n\t\tc 0.082,0.088, 0.154,0.167, 0.236,0.255c 0.006,0.006, 0.012,0.012, 0.018,0.019c 0.030,0.033, 0.066,0.073, 0.097,0.106\n\t\tc 0.008,0.008, 0.016,0.017, 0.023,0.025c 0.031,0.033, 0.072,0.079, 0.103,0.111c 0.004,0.004, 0.008,0.008, 0.011,0.012\n\t\tc 0.041,0.044, 0.076,0.082, 0.116,0.126c 0.005,0.006, 0.011,0.011, 0.016,0.017c 0.031,0.033, 0.068,0.074, 0.098,0.107\n\t\tc 0.008,0.010, 0.018,0.020, 0.027,0.030c 0.030,0.033, 0.059,0.064, 0.088,0.098c 0.009,0.009, 0.018,0.019, 0.026,0.027\n\t\tc 0.035,0.039, 0.077,0.085, 0.112,0.123l0,0c 0.035,0.039, 0.077,0.084, 0.112,0.123c 0.010,0.011, 0.019,0.021, 0.029,0.032\n\t\tc 0.030,0.033, 0.052,0.057, 0.082,0.089c 0.013,0.014, 0.023,0.027, 0.036,0.041c 0.030,0.033, 0.053,0.058, 0.083,0.091\n\t\tc 0.009,0.011, 0.019,0.021, 0.027,0.031c 0.041,0.045, 0.069,0.075, 0.109,0.12c 0.011,0.011, 0.020,0.022, 0.031,0.033\n\t\tc 0.025,0.029, 0.053,0.059, 0.078,0.086c 0.015,0.016, 0.030,0.032, 0.044,0.049c 0.021,0.022, 0.045,0.050, 0.066,0.072\n\t\tc 0.016,0.017, 0.031,0.034, 0.047,0.052c 0.025,0.027, 0.050,0.055, 0.076,0.084c 0.010,0.012, 0.021,0.023, 0.032,0.035\n\t\tc 0.035,0.039, 0.065,0.072, 0.101,0.111c 0.018,0.020, 0.035,0.039, 0.053,0.059c 0.015,0.017, 0.041,0.045, 0.056,0.061\n\t\tc 0.019,0.021, 0.037,0.041, 0.055,0.061c 0.015,0.017, 0.037,0.042, 0.052,0.059c 0.019,0.021, 0.037,0.041, 0.056,0.062\n\t\tc 0.020,0.022, 0.036,0.040, 0.056,0.062c 0.035,0.039, 0.069,0.076, 0.104,0.116c 0.010,0.011, 0.031,0.034, 0.041,0.045\n\t\tc 0.022,0.025, 0.045,0.050, 0.068,0.075c 0.010,0.012, 0.026,0.030, 0.037,0.042c 0.022,0.024, 0.045,0.050, 0.067,0.075\n\t\tc 0.010,0.011, 0.025,0.027, 0.036,0.039c 0.078,0.088, 0.157,0.176, 0.236,0.264c 0.010,0.011, 0.017,0.020, 0.027,0.031\n\t\tc 0.024,0.028, 0.048,0.055, 0.073,0.082c 0.010,0.011, 0.021,0.023, 0.031,0.035c 0.024,0.028, 0.049,0.056, 0.074,0.084l0,0 \n\t\tc 0.061,0.069, 0.123,0.138, 0.184,0.207l 0.003,0.004c 0.028,0.031, 0.055,0.062, 0.083,0.093c 0.005,0.005, 0.013,0.015, 0.018,0.021\n\t\tc 0.028,0.031, 0.057,0.063, 0.084,0.095l 0.003,0.003c 0.089,0.101, 0.18,0.204, 0.269,0.304c 0.005,0.005, 0.007,0.008, 0.012,0.013\n\t\tc 0.027,0.033, 0.055,0.063, 0.083,0.095c 0.005,0.005, 0.009,0.010, 0.014,0.015c 0.121,0.137, 0.242,0.274, 0.362,0.413l 0.002,0.002\n\t\tc 1.083,1.232, 2.152,2.477, 3.209,3.731l-6.658,5.61c 6.201,7.49, 11.959,15.36, 17.228,23.574l 8.082-5.438\n\t\tc 1.694,2.518, 3.341,5.070, 4.942,7.654l 0.003,0.006c 0.023,0.037, 0.046,0.074, 0.068,0.11c 0.004,0.006, 0.007,0.012, 0.011,0.018\n\t\tc 0.092,0.149, 0.185,0.298, 0.276,0.448c 0.008,0.013, 0.015,0.024, 0.022,0.037c 0.019,0.031, 0.038,0.061, 0.056,0.091\n\t\tc 0.008,0.013, 0.019,0.030, 0.026,0.043c 0.040,0.065, 0.080,0.128, 0.12,0.193c 0.004,0.006, 0.004,0.007, 0.008,0.013\n\t\tc 0.017,0.028, 0.033,0.056, 0.050,0.083c 0.012,0.019, 0.022,0.036, 0.034,0.055c 0.015,0.026, 0.032,0.052, 0.048,0.079\n\t\tc 0.012,0.019, 0.026,0.043, 0.038,0.062c 0.015,0.024, 0.030,0.048, 0.044,0.073c 0.016,0.025, 0.034,0.055, 0.050,0.080\n\t\tc 0.021,0.036, 0.042,0.072, 0.064,0.106c 0.015,0.026, 0.031,0.051, 0.046,0.077c 0.014,0.022, 0.027,0.043, 0.040,0.065\n\t\tc 0.016,0.026, 0.030,0.050, 0.046,0.076c 0.013,0.021, 0.025,0.042, 0.038,0.062c 0.020,0.033, 0.039,0.063, 0.058,0.095\n\t\tc 0.009,0.014, 0.018,0.030, 0.026,0.043c 0.028,0.044, 0.054,0.088, 0.082,0.133c 0.010,0.016, 0.019,0.032, 0.029,0.047\n\t\tc 0.019,0.033, 0.039,0.066, 0.059,0.098c 0.009,0.015, 0.019,0.030, 0.028,0.045c 0.023,0.039, 0.041,0.067, 0.064,0.107\n\t\tc 0.007,0.012, 0.015,0.024, 0.022,0.037c 0.027,0.044, 0.059,0.098, 0.087,0.143c0,0.001, 0.001,0.003, 0.001,0.005\n\t\tc 0.028,0.045, 0.057,0.094, 0.084,0.139c 0.006,0.010, 0.013,0.021, 0.019,0.031c 0.023,0.039, 0.049,0.081, 0.072,0.121\n\t\tc 0.006,0.009, 0.011,0.018, 0.017,0.027c 0.027,0.045, 0.060,0.099, 0.086,0.144l0,0 c 0.031,0.051, 0.060,0.101, 0.092,0.152\n\t\tc 0.002,0.004, 0.003,0.006, 0.005,0.010c 0.028,0.045, 0.055,0.092, 0.083,0.138c 0.004,0.007, 0.009,0.014, 0.013,0.021\n\t\tc 0.088,0.149, 0.181,0.305, 0.27,0.454c 0.001,0.001, 0.002,0.003, 0.003,0.005c 0.030,0.052, 0.058,0.096, 0.088,0.148\n\t\tc 0.001,0.002, 0.003,0.004, 0.004,0.006c 0.092,0.155, 0.181,0.307, 0.273,0.463c 0.001,0.001, 0.001,0.002, 0.002,0.003\n\t\tc 3.678,6.234, 7.076,12.636, 10.189,19.212l-9.402,4.452c 3.538,7.792, 6.66,15.811, 9.362,24.021l 9.865-3.414\n\t\tc 2.137,6.174, 4.028,12.459, 5.663,18.848c0,0.001,0,0.002, 0.001,0.004c 0.046,0.179, 0.091,0.356, 0.137,0.536c0,0.001,0,0.001,0,0.002\n\t\tc 0.045,0.18, 0.088,0.351, 0.134,0.531c 0.001,0.005, 0.002,0.010, 0.003,0.015c 0.045,0.18, 0.087,0.348, 0.132,0.529\n\t\tc0,0.003, 0.001,0.005, 0.002,0.008c 0.044,0.18, 0.087,0.35, 0.131,0.53c 0.001,0.005, 0.002,0.008, 0.003,0.012\n\t\tc 0.015,0.061, 0.027,0.111, 0.042,0.171c0,0.001, 0.001,0.002, 0.001,0.004c 0.029,0.121, 0.058,0.237, 0.087,0.358c0,0,0,0.003,0,0.003\n\t\tc 0.015,0.061, 0.028,0.115, 0.042,0.175c0,0.002,0,0.003, 0.001,0.005c 0.029,0.12, 0.057,0.236, 0.086,0.356\n\t\tc0,0.002, 0.001,0.004, 0.002,0.006c 0.015,0.061, 0.026,0.11, 0.041,0.17c 0.001,0.004, 0.002,0.007, 0.003,0.011\n\t\tc 0.043,0.181, 0.083,0.348, 0.126,0.529c 0.001,0.004, 0.003,0.010, 0.004,0.015c 0.043,0.181, 0.083,0.35, 0.125,0.531\n\t\tc 0.001,0.003, 0.002,0.007, 0.002,0.010c 0.043,0.18, 0.083,0.353, 0.125,0.534c0,0.002, 0.001,0.004, 0.001,0.007\n\t\tc 0.042,0.182, 0.083,0.357, 0.124,0.538c0,0.001, 0.001,0.003, 0.001,0.004c 0.042,0.182, 0.083,0.358, 0.124,0.54\n\t\tc0,0.001, 0.001,0.003, 0.001,0.005c 0.738,3.241, 1.41,6.504, 2.016,9.793l-10.659,1.962c 1.417,8.075, 2.425,16.289, 3.013,24.62\n\t\tl 8.616-0.636l0,35.555 l-8.616-0.637c-0.588,8.331-1.596,16.546-3.013,24.62l 10.659,1.962c-0.606,3.289-1.278,6.553-2.016,9.794\n\t\tc0,0.001-0.001,0.003-0.001,0.005c-0.041,0.182-0.082,0.357-0.124,0.539c0,0.002-0.001,0.004-0.001,0.005\n\t\tc-0.041,0.181-0.082,0.356-0.124,0.538c0,0.002-0.001,0.004-0.001,0.006c-0.042,0.182-0.083,0.354-0.125,0.535\n\t\tc0,0.002-0.001,0.006-0.002,0.010c-0.042,0.182-0.082,0.35-0.125,0.531c-0.001,0.004-0.002,0.010-0.004,0.014\n\t\tc-0.043,0.182-0.083,0.35-0.126,0.529c-0.001,0.004-0.001,0.007-0.003,0.012c-0.015,0.060-0.026,0.109-0.041,0.17\n\t\tc-0.001,0.002-0.001,0.004-0.002,0.006c-0.029,0.12-0.057,0.236-0.086,0.356c-0.001,0.003-0.001,0.003-0.001,0.005\n\t\tc-0.015,0.061-0.028,0.115-0.042,0.176c0,0,0,0.003,0,0.004c-0.029,0.12-0.058,0.236-0.087,0.357c0,0.002-0.001,0.002-0.001,0.004\n\t\tc-0.015,0.061-0.027,0.11-0.042,0.171c-0.001,0.004-0.002,0.007-0.003,0.012c-0.044,0.181-0.086,0.351-0.131,0.53\n\t\tc0,0.003-0.001,0.006-0.002,0.008c-0.045,0.182-0.087,0.35-0.132,0.529c-0.001,0.005-0.002,0.010-0.003,0.015\n\t\tc-0.045,0.181-0.089,0.352-0.134,0.531c0,0.001,0,0.001,0,0.002c-0.046,0.181-0.091,0.356-0.137,0.536\n\t\tc0,0.002-0.001,0.002-0.001,0.004c-1.635,6.389-3.526,12.674-5.663,18.848l-9.865-3.414c-2.702,8.21-5.825,16.229-9.362,24.021\n\t\tl 9.402,4.451c-3.113,6.576-6.511,12.979-10.189,19.212c-0.001,0.001-0.001,0.002-0.002,0.003c-0.092,0.156-0.181,0.309-0.273,0.463\n\t\tc-0.001,0.002-0.003,0.005-0.004,0.007c-0.031,0.052-0.058,0.097-0.088,0.148c-0.001,0.001-0.002,0.004-0.003,0.005\n\t\tc-0.088,0.149-0.181,0.305-0.27,0.454c-0.004,0.007-0.009,0.015-0.013,0.021c-0.027,0.047-0.055,0.094-0.083,0.139\n\t\tc-0.002,0.004-0.003,0.006-0.005,0.010c-0.032,0.051-0.061,0.101-0.092,0.152c-0.027,0.045-0.059,0.099-0.086,0.145\n\t\tc-0.005,0.009-0.011,0.018-0.017,0.026c-0.022,0.040-0.048,0.081-0.072,0.12c-0.006,0.010-0.013,0.021-0.019,0.031\n\t\tc-0.027,0.045-0.056,0.094-0.084,0.139c0,0.002-0.001,0.004-0.001,0.005c-0.028,0.046-0.060,0.099-0.087,0.144\n\t\tc-0.007,0.012-0.015,0.024-0.022,0.036c-0.023,0.040-0.041,0.068-0.064,0.106c-0.009,0.016-0.019,0.031-0.028,0.045\n\t\tc-0.020,0.033-0.040,0.066-0.059,0.099c-0.010,0.016-0.019,0.032-0.029,0.048c-0.027,0.045-0.054,0.088-0.082,0.133\n\t\tc-0.008,0.014-0.017,0.029-0.026,0.043c-0.019,0.032-0.038,0.062-0.058,0.096c-0.013,0.021-0.025,0.041-0.038,0.062\n\t\tc-0.016,0.025-0.030,0.049-0.046,0.075c-0.013,0.022-0.026,0.044-0.040,0.065c-0.015,0.025-0.031,0.051-0.046,0.076\n\t\tc-0.022,0.035-0.044,0.071-0.064,0.107c-0.016,0.025-0.034,0.055-0.050,0.080c-0.015,0.023-0.030,0.048-0.044,0.072\n\t\tc-0.012,0.020-0.026,0.043-0.038,0.062c-0.016,0.025-0.033,0.053-0.048,0.078c-0.012,0.020-0.022,0.036-0.034,0.055\n\t\tc-0.017,0.027-0.034,0.055-0.050,0.084c-0.003,0.006-0.004,0.006-0.008,0.013c-0.040,0.065-0.080,0.128-0.12,0.193\n\t\tc-0.008,0.013-0.018,0.030-0.026,0.043c-0.019,0.030-0.037,0.061-0.056,0.091c-0.007,0.014-0.015,0.024-0.022,0.037\n\t\tc-0.092,0.15-0.185,0.299-0.276,0.448c-0.004,0.007-0.007,0.012-0.011,0.019c-0.022,0.036-0.045,0.073-0.068,0.109l-0.003,0.006\n\t\tc-1.601,2.584-3.249,5.137-4.942,7.654l-8.082-5.438c-5.268,8.214-11.026,16.084-17.227,23.573l 6.658,5.61\n\t\tc-1.057,1.255-2.127,2.5-3.209,3.731l-0.002,0.003c-0.121,0.138-0.242,0.275-0.362,0.412c-0.005,0.006-0.009,0.010-0.014,0.016\n\t\tc-0.028,0.031-0.056,0.062-0.083,0.095c-0.005,0.005-0.007,0.008-0.012,0.013c-0.089,0.102-0.18,0.203-0.269,0.305l-0.003,0.004\n\t\tc-0.028,0.031-0.056,0.062-0.084,0.094c-0.005,0.006-0.013,0.016-0.018,0.021c-0.028,0.031-0.055,0.062-0.083,0.093l-0.003,0.004\n\t\tc-0.061,0.068-0.123,0.138-0.184,0.206l0,0 c-0.025,0.029-0.050,0.057-0.074,0.084c-0.010,0.012-0.021,0.023-0.031,0.035\n\t\tc-0.025,0.027-0.049,0.055-0.073,0.082c-0.010,0.012-0.017,0.020-0.027,0.031c-0.079,0.088-0.158,0.176-0.236,0.264\n\t\tc-0.010,0.012-0.025,0.027-0.036,0.039c-0.022,0.024-0.045,0.050-0.067,0.074c-0.010,0.012-0.026,0.029-0.037,0.041\n\t\tc-0.022,0.025-0.045,0.051-0.068,0.076c-0.010,0.010-0.031,0.033-0.041,0.045c-0.035,0.039-0.069,0.076-0.104,0.115\n\t\tc-0.020,0.021-0.036,0.039-0.056,0.062c-0.019,0.021-0.038,0.041-0.056,0.062c-0.015,0.017-0.038,0.042-0.052,0.059\n\t\tc-0.019,0.021-0.037,0.040-0.055,0.062c-0.015,0.016-0.041,0.043-0.056,0.061c-0.018,0.020-0.035,0.039-0.053,0.059\n\t\tc-0.035,0.039-0.066,0.072-0.101,0.111c-0.011,0.012-0.021,0.023-0.032,0.035c-0.026,0.029-0.051,0.057-0.076,0.084\n\t\tc-0.016,0.018-0.031,0.035-0.047,0.052c-0.021,0.022-0.045,0.050-0.066,0.072c-0.014,0.017-0.029,0.032-0.044,0.049\n\t\tc-0.025,0.028-0.053,0.058-0.078,0.087c-0.011,0.011-0.020,0.021-0.031,0.033c-0.040,0.044-0.068,0.074-0.109,0.119\n\t\tc-0.009,0.010-0.018,0.020-0.027,0.031c-0.030,0.032-0.053,0.058-0.083,0.090c-0.013,0.014-0.023,0.027-0.036,0.041\n\t\tc-0.030,0.033-0.052,0.057-0.082,0.090c-0.010,0.010-0.020,0.021-0.029,0.031c-0.035,0.039-0.077,0.084-0.112,0.123l0,0 \n\t\tc-0.036,0.039-0.077,0.084-0.112,0.123c-0.009,0.010-0.018,0.020-0.026,0.027c-0.030,0.034-0.058,0.064-0.088,0.098\n\t\tc-0.009,0.010-0.019,0.021-0.027,0.030c-0.030,0.033-0.067,0.073-0.098,0.106c-0.005,0.006-0.010,0.012-0.016,0.018\n\t\tc-0.040,0.044-0.075,0.082-0.116,0.126c-0.003,0.004-0.007,0.009-0.011,0.013c-0.030,0.032-0.072,0.078-0.103,0.111\n\t\tc-0.008,0.008-0.016,0.017-0.023,0.025c-0.031,0.033-0.067,0.072-0.097,0.105c-0.006,0.006-0.012,0.012-0.018,0.019\n\t\tc-0.082,0.089-0.154,0.167-0.236,0.255c-0.002,0.003-0.005,0.006-0.007,0.009c-0.041,0.044-0.071,0.077-0.112,0.121\n\t\tc-0.003,0.003-0.007,0.007-0.010,0.011c-0.123,0.132-0.236,0.255-0.358,0.387c-0.003,0.003-0.006,0.006-0.009,0.010\n\t\tc-0.041,0.043-0.074,0.079-0.115,0.123c-0.001,0.001-0.003,0.003-0.004,0.004c-4.284,4.598-8.75,9.019-13.38,13.268\n\t\tC 124.42,489.682, 179.601,512, 240,512c 60.398,0, 115.58-22.318, 157.766-59.148C 393.136,448.603, 388.669,444.182, 384.385,439.584zM 100.911,392.461l-8.524-5.736c 5.686-8.449, 10.772-17.387, 15.118-26.567l 8.676,4.107c 0.76-1.682, 1.502-3.374, 2.223-5.078\n\t\tc 2.412-5.703, 4.564-11.484, 6.484-17.328l-9.041-3.129c 3.321-9.596, 5.938-19.529, 7.778-29.524l 9.028,1.662\n\t\tc 1.319-7.555, 2.243-15.195, 2.782-22.904l-8.995-0.664c 0.374-5.055, 0.549-10.188, 0.548-15.299c 0.001-5.11-0.175-10.244-0.548-15.299\n\t\tl 8.995-0.664c-0.539-7.709-1.462-15.35-2.782-22.904l-9.028,1.662c-1.84-9.996-4.457-19.929-7.778-29.525l 9.041-3.129\n\t\tc-1.919-5.844-4.072-11.625-6.484-17.328c-0.721-1.705-1.463-3.397-2.224-5.079l-8.676,4.108\n\t\tc-4.346-9.18-9.433-18.119-15.118-26.567l 8.524-5.736c-4.926-7.712-10.33-15.117-16.193-22.195l-8.644,7.283\n\t\tc-5.903-7.006-12.331-13.66-19.127-19.824C 21.434,158.649,0,212.817,0,272s 21.434,113.351, 56.947,155.196\n\t\tc 6.797-6.164, 13.224-12.817, 19.127-19.824l 8.644,7.283C 90.581,407.576, 95.985,400.172, 100.911,392.461zM 423.053,116.804c-6.797,6.164-13.224,12.818-19.127,19.824l-8.644-7.284c-5.863,7.079-11.267,14.484-16.192,22.196\n\t\tl 8.523,5.736c-5.686,8.448-10.771,17.387-15.117,26.567l-8.676-4.108c-0.761,1.682-1.503,3.375-2.224,5.079\n\t\tc-2.412,5.703-4.564,11.484-6.484,17.328l 9.041,3.129c-3.321,9.596-5.938,19.529-7.778,29.525l-9.028-1.662\n\t\tc-1.319,7.554-2.243,15.194-2.782,22.903l 8.996,0.665c-0.374,5.055-0.55,10.188-0.549,15.299\n\t\tc-0.001,5.11, 0.175,10.244, 0.549,15.299l-8.996,0.664c 0.539,7.71, 1.463,15.35, 2.782,22.904l 9.028-1.662\n\t\tc 1.84,9.995, 4.457,19.929, 7.778,29.524l-9.041,3.129c 1.92,5.844, 4.072,11.625, 6.484,17.328c 0.721,1.704, 1.463,3.396, 2.224,5.078\n\t\tl 8.676-4.107c 4.346,9.181, 9.432,18.118, 15.117,26.567l-8.523,5.735c 4.926,7.712, 10.329,15.117, 16.191,22.195l 8.645-7.283\n\t\tc 5.903,7.007, 12.33,13.66, 19.127,19.824C 458.566,385.351, 480,331.183, 480,272S 458.566,158.649, 423.053,116.804z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"football, rugby, sports, ball\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 509.052,79.515c-4.199-38.088-38.479-72.367-76.566-76.566c-103.448-11.402-237.574,7.875-329.617,99.919\n\tC 10.824,194.91-8.452,329.039, 2.948,432.484c 4.199,38.088, 38.479,72.368, 76.566,76.566c 103.445,11.401, 237.573-7.877, 329.616-99.918\n\tC 501.175,317.089, 520.454,182.962, 509.052,79.515z M 162.565,290.565c 7.42-7.422, 19.45-7.422, 26.87,0l 32,32\n\tc 7.42,7.42, 7.42,19.449,0,26.869C 217.725,353.146, 212.862,355, 208,355s-9.725-1.854-13.435-5.565l-32-32\n\tC 155.145,310.015, 155.145,297.985, 162.565,290.565z M 170.898,478.433c-29.015-14.741-55.835-34.136-79.515-57.815\n\tc-23.707-23.706-43.119-50.561-57.867-79.613c 1.802-21.906, 5.369-45.418, 11.594-69.638c 2.121-8.25, 4.489-16.306, 7.085-24.178\n\tc 9.431,52.555, 34.577,100.935, 73.13,139.487c 38.523,38.523, 86.859,63.66, 139.368,73.107\n\tC 231.16,470.827, 198.56,476.124, 170.898,478.433z M 285.435,285.435C 281.725,289.146, 276.862,291, 272,291s-9.725-1.854-13.435-5.565\n\tl-32-32c-7.42-7.42-7.42-19.45,0-26.87s 19.45-7.42, 26.87,0l 32,32C 292.855,265.985, 292.855,278.015, 285.435,285.435z\n\t M 349.435,221.435c-3.71,3.71-8.572,5.565-13.435,5.565s-9.725-1.855-13.435-5.565l-32-32c-7.421-7.42-7.421-19.45,0-26.87\n\tc 7.42-7.42, 19.449-7.42, 26.869,0l 32,32C 356.855,201.985, 356.855,214.015, 349.435,221.435z M 466.891,240.634\n\tc-2.12,8.25-4.488,16.306-7.085,24.178c-9.432-52.555-34.577-100.935-73.13-139.487c-38.523-38.523-86.858-63.66-139.367-73.107\n\tc 33.533-11.044, 66.132-16.341, 93.793-18.649c 29.015,14.742, 55.835,34.136, 79.515,57.815c 23.707,23.707, 43.119,50.562, 57.867,79.615\n\tC 476.683,192.903, 473.116,216.415, 466.891,240.634z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"soccer, football, sports, ball\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,432\n\tc-13.729,0-27.215-1.573-40.262-4.611l-30.864-59.863l 34.005-46.804l 74.242,0 l 34.005,46.804l-30.864,59.863\n\tC 283.215,430.427, 269.729,432, 256,432z M 187.794,93.659L 248,123.972l0,57.84 l-60.102,43.666l-54.989-17.867l-10.212-66.544\n\tc 2.821-3.262, 5.771-6.437, 8.852-9.518C 147.955,115.144, 167.031,102.384, 187.794,93.659z M 380.451,131.549\n\tc 3.080,3.080, 6.030,6.255, 8.852,9.517l-10.212,66.545l-54.988,17.867L 264,181.812l0-57.84 l 60.206-30.313\n\tC 344.97,102.384, 364.046,115.144, 380.451,131.549z M 127.948,222.823l 55.029,17.88l 22.948,70.626l-33.99,46.783l-66.501-10.86\n\tc-14.084-23.145-22.59-49.246-24.828-76.63L 127.948,222.823z M 406.565,347.252l-66.501,10.86l-33.99-46.783l 22.948-70.626\n\tl 55.029-17.88l 47.342,47.799C 429.155,298.006, 420.649,324.108, 406.565,347.252z M 425.705,86.294\n\tc 13.677,13.676, 25.525,28.749, 35.439,45.042l-58.491,0.755c-19.854-23.475-45.237-42.115-74.146-53.914l-17.341-55.811\n\tc 13.032,3.067, 25.805,7.224, 38.247,12.486C 377.991,46.941, 403.659,64.248, 425.705,86.294z M 86.294,86.294\n\tc 22.046-22.046, 47.714-39.354, 76.292-51.44c 12.442-5.263, 25.215-9.419, 38.247-12.486l-17.34,55.811\n\tc-28.908,11.8-54.292,30.439-74.146,53.914l-58.491-0.756C 60.77,115.043, 72.618,99.971, 86.294,86.294z M 16,256\n\tc0-6.609, 0.278-13.174, 0.804-19.695l 47.709,33.73c 2.301,31.842, 12.37,61.525, 28.316,87.178l-18.768,55.318\n\tc-16.298-18.896-29.455-40.058-39.208-63.117C 22.343,319.836, 16,288.407, 16,256z M 163.304,477.439l 46.841-34.965\n\tC 224.84,446.076, 240.194,448, 256,448s 31.159-1.924, 45.854-5.525l 46.842,34.965C 319.327,489.75, 288.146,496, 256,496\n\tS 192.673,489.75, 163.304,477.439z M 477.146,349.414c-9.754,23.059-22.91,44.221-39.208,63.117l-18.768-55.318\n\tc 15.946-25.653, 26.016-55.337, 28.316-87.178l 47.708-33.729C 495.722,242.826, 496,249.391, 496,256\n\tC 496,288.407, 489.656,319.836, 477.146,349.414z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"shield, security, defense, protection, anti virus, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,0L 256,64L 32,0c0,0-2.25,25.849,0,64l 224,70.045L 480,64C 482.249,25.849, 480,0, 480,0zM 36.095,97.553C 48.088,222.901, 92.84,433.67, 256,512c 163.16-78.33, 207.912-289.099, 219.905-414.447L 256,180.232\n\t\tL 36.095,97.553z M 244.739,210.185l 4.827,1.815L 87.224,212 c-0.64-2.676-1.263-5.344-1.867-8l 142.932,0 L 244.739,210.185z M 100.62,156\n\t\tl 21.278,8L 77.32,164 c-0.471-2.688-0.927-5.356-1.365-8L 100.62,156 z M 143.176,172l 21.278,8L 80.283,180 c-0.525-2.686-1.028-5.35-1.519-8L 143.176,172 z\n\t\t M 185.732,188l 21.278,8L 83.58,196 c-0.581-2.681-1.143-5.347-1.688-8L 185.732,188 z M 437.622,146.134\n\t\tc-7.63,49.57-21.006,108.417-44.45,163.801C 360.239,387.732, 314.144,443.507, 256,475.97L 256,468 l-13.27,0 \n\t\tc-3.982-2.552-7.905-5.216-11.766-8L 256,460 l0-8 l-35.568,0 c-3.226-2.58-6.405-5.249-9.54-8L 256,444 l0-8 l-53.835,0 c-2.721-2.6-5.406-5.266-8.053-8\n\t\tL 256,428 l0-8 l-69.375,0 c-2.346-2.606-4.652-5.282-6.936-8L 256,412 l0-8 l-82.831,0 c-2.061-2.616-4.089-5.289-6.097-8L 256,396 l0-8 l-94.695,0 \n\t\tc-1.828-2.62-3.624-5.297-5.405-8L 256,380 l0-8 L 150.771,372 c-1.642-2.634-3.27-5.293-4.869-8L 256,364 l0-8 L 141.311,356 \n\t\tc-1.477-2.633-2.932-5.302-4.371-8L 256,348 l0-8 L 132.778,340 c-1.338-2.639-2.662-5.301-3.965-8L 256,332 l0-8 L 125.039,324 \n\t\tc-1.213-2.638-2.406-5.309-3.587-8L 256,316 l0-8 L 118.022,308 c-1.113-2.66-2.208-5.326-3.275-8L 256,300 l0-8 L 111.631,292 \n\t\tc-1.015-2.663-2.014-5.329-2.985-8L 256,284 l0-8 L 105.807,276 c-0.926-2.665-1.838-5.332-2.723-8L 256,268 l0-8 L 100.496,260 \n\t\tc-0.845-2.668-1.677-5.335-2.483-8L 256,252 l0-8 L 95.652,244 c-0.771-2.67-1.528-5.338-2.262-8L 256,236 l0-8 L 91.239,228 c-0.703-2.673-1.391-5.341-2.058-8\n\t\tL 256,220 l0-5.581 l 11.262-4.234L 437.622,146.134z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"shield, security, defense, protection, anti virus\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,0L 256,64L 32,0c0,0-2.25,25.849,0,64l 224,70.045L 480,64C 482.249,25.849, 480,0, 480,0zM 36.095,97.553C 48.088,222.901, 92.84,433.67, 256,512c 163.16-78.33, 207.912-289.099, 219.905-414.447L 256,180.232\n\t\tL 36.095,97.553z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"shield, security, defense, protection, anti virus\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 177.779,146.007L 177.779,256 c0,33.313, 13.555,65.756, 40.286,96.43c 13.125,15.061, 26.722,26.534, 37.937,34.635\n\t\t\tc 11.215-8.101, 24.811-19.574, 37.936-34.635c 26.732-30.674, 40.287-63.117, 40.287-96.43L 334.225,146.007 L 256,119.933L 177.779,146.007zM 256,0L 64,64c0,0,0,96,0,192c0,160.001, 160,256, 192,256s 192-95.999, 192-256c0-96,0-192,0-192L 256,0z M 384,256\n\t\t\tc0,25.2-5.523,50.083-16.419,73.958c-9.677,21.207-23.497,41.633-41.079,60.711c-26.953,29.245-55.599,47.326-70.502,54.681\n\t\t\tc-14.902-7.354-43.548-25.436-70.501-54.681c-17.582-19.078-31.403-39.504-41.080-60.711C 133.525,306.083, 128,281.2, 128,256\n\t\t\tL 128,110.129 l 128-42.667l 128,42.667L 384,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"shield, security, defense, protection, anti virus\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 131.851,141.857c 2.709,85.392, 23.232,156.27, 61.189,211.080c 17.343,25.043, 38.449,46.778, 62.96,64.873\n\t\tc 24.511-18.095, 45.618-39.83, 62.959-64.873c 37.957-54.811, 58.48-125.688, 61.189-211.080c-40.225-9.645-79.752-25.45-124.149-49.495\n\t\tC 211.596,116.411, 172.078,132.212, 131.851,141.857zM 458.873,73.091C 387.436,68.123, 329.919,45.132, 256.002,0C 182.080,45.132, 124.563,68.123, 53.127,73.091\n\t\tC 33.451,384.432, 202.896,483.16, 256.002,512C 309.105,483.16, 478.55,384.432, 458.873,73.091z M 358.422,380.265\n\t\tc-35.469,51.219-77.048,80.031-102.421,95.026c-25.374-14.995-66.952-43.807-102.422-95.026\n\t\tc-49.507-71.489-72.928-164.977-69.753-278.177c 56.394-7.775, 107.891-27.271, 172.175-64.812\n\t\tc 64.281,37.541, 115.777,57.037, 172.173,64.812C 431.35,215.288, 407.929,308.775, 358.422,380.265z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"gun-ban, weapon, fire, pistol, firearm\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 199,224 L 36,224 L 28,160 L 0,160 L 0,96 L 295,96 ZM 512,192l0-64 c0-17.6-14.4-32-32-32l-74,0 l 72-96l-60,0 L 82,448l 60,0 l 96.033-128.044c 0.653,0.027, 1.309,0.044, 1.968,0.044l 91.429,0 \n\t\tl 29.46,103.111l-2.262,2.262C 346.183,437.817, 350.4,448, 368,448l 12.5,0 L 512,448 l0-64 l-51.203-128.009C 443.849,213.601, 496.001,192, 512,192\n\t\tz M 262,288l 24-32l 27.143,0 l 9.145,32L 262,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"gun, weapon, fire, pistol, firearm\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,96l0,64 l 28,0 l 8,64l 156,0 l0,48 c0,26.4, 21.6,48, 48,48l 91.429,0 l 29.46,103.111l-2.262,2.262C 346.183,437.817, 350.4,448, 368,448l 12.5,0 \n\tL 512,448 l0-64 l-51.203-128.009C 443.849,213.601, 496.001,192, 512,192l0-64 c0-17.6-14.4-32-32-32 M 240,288c-8.673,0-16-7.327-16-16l0-48 l 32,0 \n\tl0,32 l 57.143,0 l 9.144,32L 240,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"target, goal, location, spot\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 391.765,391.765\n\tC 363.16,420.369, 327.117,438.826, 288,445.352L 288,352 l-64,0 l0,93.352 c-39.117-6.525-75.16-24.982-103.765-53.587\n\tC 91.632,363.16, 73.174,327.117, 66.649,288L 160,288 l0-64 L 66.649,224 c 6.525-39.117, 24.983-75.16, 53.587-103.765\n\tC 148.84,91.631, 184.883,73.174, 224,66.648L 224,160 l 64,0 L 288,66.648 c 39.117,6.525, 75.16,24.983, 103.765,53.587\n\tc 28.604,28.604, 47.062,64.647, 53.587,103.765L 352,224 l0,64 l 93.352,0 C 438.826,327.117, 420.369,363.16, 391.765,391.765z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"target, goal, location, spot\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,224l-50.462,0 C 447.718,134.88, 377.12,64.282, 288,50.462L 288,0 l-64,0 l0,50.462 C 134.88,64.282, 64.282,134.88, 50.462,224L0,224 l0,64 \n\tl 50.462,0 C 64.282,377.12, 134.88,447.718, 224,461.538L 224,512 l 64,0 l0-50.462 C 377.12,447.718, 447.718,377.12, 461.538,288L 512,288 L 512,224 z M 396.411,224\n\tL 346.53,224 c-9.642-27.275-31.255-48.889-58.53-58.53l0-49.881 C 341.757,127.834, 384.166,170.244, 396.411,224z M 256,288\n\tc-17.673,0-32-14.327-32-32c0-17.673, 14.327-32, 32-32c 17.673,0, 32,14.327, 32,32C 288,273.673, 273.673,288, 256,288z M 224,115.589\n\tl0,49.881 c-27.275,9.641-48.889,31.255-58.53,58.53l-49.881,0 C 127.834,170.244, 170.244,127.834, 224,115.589z M 115.589,288l 49.881,0 \n\tc 9.641,27.275, 31.255,48.889, 58.53,58.53l0,49.881 C 170.244,384.166, 127.834,341.757, 115.589,288z M 288,396.411L 288,346.53 \n\tc 27.275-9.642, 48.889-31.255, 58.53-58.53l 49.881,0 C 384.166,341.757, 341.757,384.166, 288,396.411z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"target, goal\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.844,0,0,114.838,0,256.001C0,397.162, 114.844,512, 256,512c 141.155,0, 256-114.838, 256-255.999\n\t\tC 512,114.838, 397.156,0, 256,0z M 256,455.111c-109.789,0-199.11-89.323-199.11-199.11c0-109.79, 89.322-199.112, 199.11-199.112\n\t\ts 199.11,89.322, 199.11,199.112C 455.113,365.788, 365.788,455.111, 256,455.111zM 256,113.777c-78.422,0-142.224,63.801-142.224,142.224c0,78.421, 63.801,142.224, 142.224,142.224\n\t\ts 142.223-63.803, 142.223-142.224C 398.223,177.578, 334.423,113.777, 256,113.777z M 256,341.334\n\t\tc-47.058,0-85.334-38.277-85.334-85.333c0-47.058, 38.276-85.335, 85.334-85.335c 47.056,0, 85.335,38.277, 85.335,85.335\n\t\tC 341.335,303.057, 303.056,341.334, 256,341.334zM 224,256A32,32 12600 1 1 288,256A32,32 12600 1 1 224,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"brain, think, intelligence\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 409.229,148.523 C 452.646,192.37 435.608,279.131 300.902,247.012 C 267.18,252.108 195.051,262.45 185.942,211.934 C 173.126,220.029 108.311,174.537 160.983,105.677 C 223.19,24.351 377.523,44.979 409.229,148.523 ZM 111.44,430.812 C 87.711,403.741 93.114,341.487 96.304,319.265 L 53.648,319.265 C 42.692,319.265 33.405,313.571 29.409,304.406 C 24.022,292.050 29.236,276.662 43.356,263.245 C 67.044,240.736 77.648,217.417 77.648,204.292 L 77.642,202.88 C 77.588,194.453 77.426,168.812 84.316,138.281 C 93.156,99.105 109.925,67.497 134.156,44.334 C 164.931,14.917 207.050,0 259.343,0 C 318.367,0 398.994,13.861 447.907,79.893 C 467.85,106.816 480.214,139.928 483.662,175.652 C 486.765,207.801 482.43,241.531 471.452,270.63 C 458.384,305.271 432.801,323.771 420.817,340.092 C 400.406,367.891 384.179,415.509 383.376,511.999 L 351.375,511.999 C 352.224,405.889 370.974,354.834 394.573,322.695 C 405.947,307.201 429.703,291.189 441.329,260.371 C 450.765,235.355 454.482,206.254 451.795,178.429 C 448.858,147.997 438.466,119.976 421.739,97.394 C 406.656,77.032 386.504,61.033 361.841,49.843 C 333.413,36.945 298.928,30.405 259.343,30.405 C 235.972,30.405 215.052,33.838 197.165,40.61 C 181.792,46.429 168.229,54.894 156.852,65.769 C 137.015,84.73 123.138,111.271 115.605,144.654 C 109.448,171.939 109.594,195.086 109.642,202.692 C 109.646,203.324 109.649,203.857 109.649,204.291 C 109.649,228.325 92.918,259.153 65.985,284.745 C 64.405,286.245 63.178,287.631 62.233,288.858 L 134.456,288.858 L 129.245,315.787 C 129.213,315.957 125.76,334.303 125.438,355.492 C 124.914,389.908 132.674,407.531 136.035,411.36 C 138.673,414.366 141.402,415.483 146.104,415.483 C 182.333,415.483 194.582,416.019 208.155,428.993 C 224.268,444.395 224.317,490.332 224.183,511.999 L 192.182,511.999 C 192.289,494.863 192.295,456.964 185.46,450.429 C 178.652,443.921 172.287,445.89 146.105,445.89 C 131.873,445.89 120.21,440.817 111.44,430.812 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"accessibility, disabled\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,464c-61.856,0-112-50.145-112-112c0-43.848, 25.2-81.803, 61.903-100.19l-21.47-42.938C 36.001,235.14,0,289.361,0,352\n\t\tc0,88.366, 71.634,160, 160,160s 160-71.634, 160-160l-48,0 C 272,413.855, 221.856,464, 160,464zM 480,352L 448,384L 338.743,274.745L 224,274.745L 224,224L 352,224L 352,192L 224,192L 224,128L 160,128L 160,320L 320,320L 448,448L 512,384 \tzM 144,48A48,48 12600 1 1 240,48A48,48 12600 1 1 144,48z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"accessibility\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,96L 480,64L 256,128L 32,64L 32,96L 192,160L 192,288L 128,512L 160,512L 256,288L 352,512L 384,512L 320,288L 320,160 \tzM 208,48A48,48 12600 1 1 304,48A48,48 12600 1 1 208,48z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"sun glasses, glasses\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 510.33,173.193c-31.538-3.68-77.793-5.78-96.188-5.78c-18.399,0-78.318,2.103-95.665,10.51\n\tc-17.224,8.352-34.455,20.322-62.479,20.492c-28.023-0.17-45.26-12.141-62.481-20.491c-17.346-8.406-77.266-10.51-95.662-10.51\n\tc-18.397,0-64.65,2.102-96.188,5.779c0,0-3.753,29.049,0,38.368c 16.208,9.591, 17.098,54.853, 31.176,93.845\n\tc 14.079,38.987, 79.877,38.987, 94.5,38.987c 14.624,0, 50.787,2.41, 68.427-9.761c 17.64-12.171, 32.963-71.558, 37.17-88.903\n\tc 3.576-14.755, 18.181-15.435, 22.462-15.31c0,0.043,0,0.067,0,0.067s 0.219-0.022, 0.599-0.044c 0.378,0.021, 0.596,0.044, 0.596,0.044\n\ts0-0.024,0-0.067c 4.283-0.125, 18.885,0.555, 22.463,15.31c 4.203,17.348, 19.528,76.733, 37.17,88.903\n\tc 17.639,12.171, 53.804,9.761, 68.425,9.761c 14.623,0, 80.421,0, 94.503-38.987c 14.079-38.992, 14.965-84.253, 31.177-93.845\n\tC 514.085,202.241, 510.33,173.193, 510.33,173.193z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"glasses, prescription glasses\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 364.556,349.662c-16.559,0-40.228-1.143-54.553-11.025c-17.946-12.381-32.25-62.186-39.18-90.771\n\tc-1.225-5.048-4.669-7.367-8.378-8.329l-6.442-0.545l-6.526,0.564c-3.678,0.975-7.083,3.297-8.298,8.309\n\tc-6.932,28.588-21.239,78.395-39.178,90.772c-14.328,9.883-37.997,11.025-54.554,11.025c-3.699,0-7.116-0.060-10.131-0.111\n\tc-2.295-0.040-4.345-0.076-6.076-0.076c-68.958,0-91.864-23.347-98.936-42.932c-5.459-15.116-8.929-31.13-11.99-45.259\n\tc-4.019-18.546-8.175-37.724-14.898-41.701l-2.263-1.34l-0.982-2.439c-4.185-10.392-1.149-36.057-0.498-41.097l 0.776-6.010\n\tl 6.019-0.701c 30.069-3.506, 75.116-5.658, 94.174-5.658c 0.735,0, 74.489,0.472, 96.149,10.97c 2.973,1.44, 5.97,3.002, 8.869,4.512\n\tc 13.646,7.108, 27.757,14.459, 48.385,14.585c 20.533-0.127, 34.642-7.477, 48.288-14.585c 2.897-1.51, 5.895-3.071, 8.866-4.512\n\tc 21.663-10.498, 95.417-10.97, 96.152-10.97c 19.063,0, 64.113,2.152, 94.175,5.658l 6.019,0.701l 0.776,6.010\n\tc 0.651,5.039, 3.69,30.704-0.489,41.095l-0.981,2.441l-2.266,1.34c-6.724,3.979-10.879,23.156-14.898,41.703\n\tc-3.061,14.128-6.53,30.142-11.988,45.257c-7.074,19.586-29.98,42.932-98.937,42.932c-1.734,0-3.784,0.036-6.078,0.076\n\tC 371.671,349.603, 368.255,349.662, 364.556,349.662z M 413.927,195.488c-50.501,0-85.259,6.76-96.183,13.041\n\tc-12.664,7.281-15.064,14.673-15.064,25.766c0,8.89, 9.907,48.147, 17.364,63.063c 6.573,13.144, 14.895,19.464, 26.982,20.491\n\tc 4.684,0.398, 11.674,0.627, 19.176,0.627c 29.55,0, 54.92-2.995, 64.635-7.631c 12.679-6.051, 25.789-12.308, 30.033-69.774\n\tc 0.19-2.574, 0.438-5.146, 0.679-7.635c 1.175-12.159, 2.19-22.661-3.359-28.91c-4.925-5.546-15.666-8.54-31.923-8.9\n\tC 422.157,195.534, 418.006,195.488, 413.927,195.488z M 98.067,195.485c-4.079,0-8.231,0.046-12.34,0.137\n\tc-16.256,0.36-26.996,3.355-31.92,8.901c-5.551,6.251-4.535,16.754-3.359,28.916c 0.241,2.486, 0.489,5.058, 0.679,7.631\n\tc 4.244,57.468, 17.353,63.725, 30.032,69.775c 9.712,4.636, 35.080,7.631, 64.626,7.631c 7.505,0, 14.496-0.229, 19.18-0.628\n\tc 12.093-1.026, 20.415-7.346, 26.985-20.491c 5.45-10.899, 17.361-50.897, 17.36-63.066c0-11.093-2.4-18.485-15.062-25.766\n\tC 183.325,202.244, 148.566,195.485, 98.067,195.485z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"glasses, 3d\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,32l0,48 l 80,144L 80,224 l 80-144L 160,32 L0,224l0,256 l 160,0 l 96-96l 96,96l 160,0 L 512,224 L 352,32z M 224,352l-64,64L 32,416 L 32,288 l 192,0 L 224,352 z M 480,416L 352,416 \n\tl-64-64l0-64 l 192,0 L 480,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"glasses, 3d glasses\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,128l0,256 l 160,0 l 96-96l 96,96l 160,0 L 512,128 L0,128 z M 224,256l-64,64L 32,320 L 32,192 l 192,0 L 224,256 z M 480,320L 352,320 l-64-64l0-64 l 192,0 L 480,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"puzzle, piece, app, addon, extension\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 255.993,512 C 269.439,512 282.057,506.787 291.52,497.324 L 350.603,438.24 L 351.33,437.306 C 354.67,433.011 364.836,419.942 361.054,404.135 C 357.124,387.71 341.982,380.579 327.336,373.683 C 318.277,369.416 308.91,365.005 301.889,358.723 L 301.547,358.411 C 301.101,358.005 300.66,357.594 300.202,357.135 C 284.51,341.442 284.51,315.906 300.202,300.213 C 307.805,292.611 317.913,288.424 328.663,288.424 C 339.413,288.424 349.521,292.611 357.101,300.192 C 357.549,300.641 357.981,301.103 358.473,301.641 L 358.673,301.859 C 364.975,308.885 369.395,318.271 373.669,327.348 C 380.915,342.734 389.931,361.882 411.109,361.886 C 411.111,361.886 411.113,361.886 411.115,361.886 C 419.606,361.886 428.168,358.437 437.29,351.341 L 438.223,350.615 L 497.309,291.53 C 516.896,271.939 516.896,240.062 497.307,220.47 L 447.141,170.303 C 443.945,167.105 441.892,164.679 440.582,162.929 C 443.624,161.227 447.84,159.242 451.245,157.638 C 461.718,152.708 474.75,146.571 485.881,136.586 C 486.077,136.411 486.271,136.234 486.469,136.052 C 487.439,135.167 488.292,134.355 489.065,133.581 C 503.844,118.801 511.984,99.151 511.984,78.25 C 511.984,57.349 503.844,37.698 489.066,22.918 C 474.287,8.14 454.637,0 433.737,0 C 412.837,0 393.188,8.139 378.399,22.927 C 377.626,23.702 376.849,24.517 376.022,25.421 L 375.44,26.059 C 365.418,37.232 359.282,50.265 354.351,60.737 C 352.748,64.143 350.762,68.36 349.060,71.402 C 347.307,70.090 344.874,68.031 341.668,64.825 L 291.522,14.679 C 282.056,5.213 269.439,0 255.994,0 C 242.549,0 229.93,5.213 220.464,14.679 L 170.329,64.815 C 167.115,68.029 164.678,70.092 162.922,71.406 C 161.221,68.365 159.237,64.149 157.633,60.744 C 152.704,50.27 146.568,37.236 136.539,26.055 C 136.357,25.852 136.173,25.65 136.034,25.5 C 135.13,24.51 134.348,23.689 133.577,22.919 C 118.798,8.14 99.149,0.001 78.248,0.001 C 57.348,0.001 37.698,8.14 22.917,22.919 C -7.591,53.429 -7.591,103.072 22.906,133.571 C 23.668,134.334 24.474,135.103 25.442,135.988 C 25.637,136.169 25.836,136.35 26.058,136.55 C 37.232,146.572 50.265,152.708 60.737,157.638 C 64.143,159.241 68.359,161.227 71.401,162.929 C 70.086,164.685 68.025,167.121 64.812,170.334 L 14.68,220.47 C 5.213,229.936 0,242.555 0,256.001 C 0,269.447 5.213,282.065 14.679,291.531 L 64.811,341.665 C 68.024,344.879 70.087,347.315 71.401,349.071 C 68.359,350.773 64.142,352.758 60.737,354.361 C 50.265,359.292 37.232,365.428 26.058,375.45 L 25.49,375.968 C 24.496,376.878 23.675,377.66 22.916,378.419 C -7.591,408.927 -7.592,458.569 22.917,489.082 C 37.697,503.86 57.346,512 78.246,512 C 99.146,512 118.795,503.86 133.566,489.092 C 134.32,488.339 135.086,487.536 135.972,486.568 C 136.123,486.406 136.278,486.235 136.477,486.014 L 136.544,485.94 C 146.565,474.767 152.701,461.734 157.632,451.262 C 159.235,447.856 161.221,443.639 162.923,440.597 C 164.676,441.909 167.109,443.968 170.316,447.173 L 220.464,497.323 C 229.929,506.788 242.547,512 255.993,512 Z M 160.697,400.532 C 139.516,400.532 130.499,419.685 123.253,435.074 C 118.984,444.143 114.569,453.52 108.278,460.543 L 107.987,460.86 C 107.573,461.314 107.153,461.765 106.707,462.211 C 99.105,469.813 88.997,474 78.246,474 C 67.495,474 57.388,469.813 49.787,462.212 C 34.094,446.517 34.094,420.982 49.797,405.279 C 50.235,404.839 50.688,404.418 51.113,404.028 L 51.484,403.69 C 58.504,397.414 67.867,393.006 76.922,388.742 C 91.46,381.898 107.937,374.14 111.018,356.483 C 113.96,339.616 102.229,325.345 91.679,314.794 L 41.548,264.661 C 39.259,262.372 37.999,259.297 37.999,256.001 C 37.999,252.705 39.259,249.629 41.548,247.34 L 90.375,198.515 L 91.193,197.963 L 92.382,196.502 C 102.741,186.026 113.896,172.014 111.019,155.519 C 107.939,137.862 91.462,130.104 76.924,123.26 C 67.845,118.985 58.458,114.566 51.461,108.289 L 51.135,107.99 C 50.682,107.576 50.232,107.158 49.787,106.712 C 34.095,91.019 34.095,65.484 49.786,49.791 C 57.389,42.189 67.498,38.002 78.248,38.002 C 88.999,38.002 99.106,42.188 106.712,49.794 C 107.151,50.233 107.572,50.685 108.034,51.19 L 108.258,51.435 C 114.561,58.462 118.98,67.849 123.253,76.928 C 130.497,92.318 139.51,111.471 160.693,111.47 C 160.695,111.47 160.7,111.47 160.702,111.47 C 172.176,111.467 183.35,105.455 196.891,91.991 L 247.332,41.55 C 249.621,39.261 252.697,38 255.994,38 C 259.289,38 262.365,39.26 264.655,41.55 L 314.801,91.698 C 328.477,105.371 339.728,111.468 351.284,111.468 C 351.286,111.468 351.29,111.468 351.29,111.468 C 372.468,111.464 381.486,92.314 388.731,76.926 C 393.004,67.848 397.424,58.46 403.671,51.495 L 403.989,51.146 C 404.413,50.684 404.84,50.225 405.276,49.789 C 412.879,42.187 422.987,38 433.737,38 C 444.488,38 454.595,42.187 462.196,49.787 C 469.797,57.389 473.984,67.497 473.984,78.248 C 473.984,88.999 469.797,99.106 462.186,106.718 C 461.755,107.15 461.31,107.565 460.862,107.974 L 460.55,108.26 C 453.524,114.563 444.137,118.983 435.059,123.257 C 420.524,130.101 404.049,137.858 400.966,155.511 C 398.024,172.367 409.732,186.624 420.267,197.166 L 470.436,247.337 C 475.13,252.032 475.13,259.966 470.438,264.659 L 413.318,321.779 C 411.619,318.741 409.644,314.546 408.047,311.155 C 403.116,300.685 396.979,287.654 386.905,276.422 L 386.443,275.917 C 385.572,274.964 384.776,274.128 383.991,273.341 C 369.213,258.562 349.563,250.423 328.662,250.423 C 307.763,250.423 288.112,258.562 273.332,273.341 C 242.824,303.851 242.824,353.493 273.303,383.972 C 274.084,384.757 274.915,385.55 275.917,386.466 L 276.474,386.972 C 287.646,396.994 300.676,403.129 311.147,408.060 C 314.538,409.657 318.733,411.633 321.772,413.331 L 264.651,470.452 C 262.363,472.74 259.289,474 255.993,474 C 252.696,474 249.62,472.739 247.332,470.452 L 197.183,420.302 C 183.507,406.629 172.254,400.532 160.697,400.532 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"puzzle, piece, app, addon, extension\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 502.156,232.133l-54.194-54.194c-41.73-41.762, 11.691-38.424, 42.707-66.245c 0.155-0.139, 0.309-0.28, 0.463-0.422\n\tc 0.719-0.657, 1.43-1.325, 2.123-2.018c 24.993-24.994, 24.993-65.515,0-90.51c-24.994-24.993-65.516-24.993-90.51,0\n\tc-0.693,0.693-1.361,1.404-2.019,2.123c-0.142,0.154-0.282,0.308-0.422,0.462c-27.826,31.022-24.48,84.461-66.271,42.682\n\tL 279.867,9.845c-13.126-13.127-34.605-13.127-47.733,0l-54.141,54.141c-0.005,0.005-0.010,0.009-0.015,0.014\n\tc-41.805,41.804-38.454-11.644-66.283-42.669c-0.14-0.155-0.281-0.309-0.422-0.463c-0.658-0.719-1.326-1.43-2.019-2.123\n\tc-24.993-24.993-65.515-24.993-90.51,0c-24.993,24.994-24.993,65.516,0,90.51c 0.692,0.693, 1.403,1.361, 2.123,2.019\n\tc 0.153,0.142, 0.308,0.282, 0.462,0.422c 31.026,27.829, 84.473,24.479, 42.67,66.283c-0.005,0.005-0.008,0.010-0.014,0.015l-54.14,54.14\n\tc-13.127,13.127-13.127,34.607,0,47.734l 54.151,54.151c 0.001,0.001, 0.001,0.002, 0.002,0.003\n\tc 41.804,41.805-11.644,38.454-42.669,66.283c-0.155,0.14-0.309,0.281-0.463,0.422c-0.719,0.658-1.43,1.326-2.123,2.019\n\tc-24.993,24.993-24.993,65.515,0,90.51c 24.994,24.993, 65.516,24.993, 90.51,0c 0.693-0.692, 1.361-1.403, 2.019-2.123\n\tc 0.142-0.153, 0.282-0.308, 0.422-0.462c 27.826-31.023, 24.48-84.461, 66.27-42.683l 54.169,54.169c 13.127,13.125, 34.607,13.125, 47.733,0\n\tl 62.917-62.917c 25.066-32.225-22.422-31.452-50.955-57.045c-0.154-0.14-0.309-0.28-0.462-0.422c-0.72-0.657-1.431-1.325-2.123-2.019\n\tc-24.993-24.994-24.993-65.516,0-90.51c 24.995-24.993, 65.517-24.993, 90.51,0c 0.692,0.693, 1.36,1.404, 2.019,2.123\n\tc 0.141,0.154, 0.282,0.308, 0.422,0.463c 25.593,28.532, 24.819,76.021, 57.045,50.954l 62.917-62.917\n\tC 515.282,266.74, 515.282,245.26, 502.156,232.133z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"puzzle, piece, app, addon, extension\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 465.36,512L 386.89,512 c-24.708,0-35.678-9.903-40.529-18.211c-7.357-12.601-5.437-29.006, 5.71-48.76\n\t\tc 12.133-21.498, 16.191-38.792, 11.136-47.45c-4.733-8.106-19.91-12.57-42.736-12.57c-22.825,0-38.001,4.464-42.734,12.57\n\t\tc-5.056,8.657-0.996,25.952, 11.136,47.448c 11.147,19.755, 13.069,36.16, 5.711,48.761c-4.851,8.308-15.82,18.211-40.529,18.211\n\t\tl-79.27,0 c-25.717,0-46.639-20.979-46.639-46.768l0-69.138 c0-2.794, 0.089-5.459, 0.175-8.037c 0.021-0.63, 0.044-1.316, 0.065-2.030\n\t\tc-1.582,0.78-3.443,1.763-5.62,3.002c-14.011,7.973-43.795,17.477-64.926,17.477c-17.396,0-31.892-6.58-41.922-19.028\n\t\tC 5.207,374.183,0,355.185,0,329.396c0-25.791, 5.207-44.791, 15.917-58.085c 10.029-12.448, 24.526-19.028, 41.923-19.028\n\t\tc 21.131,0, 50.915,9.504, 64.923,17.478c 2.176,1.238, 4.038,2.221, 5.619,3c-0.021-0.715-0.044-1.402-0.065-2.034\n\t\tc-0.086-2.575-0.175-5.238-0.175-8.029l-0.4-87.683c0-25.86, 20.922-46.84, 46.639-46.84l 79.388,0 c 2.34-0.004, 8.342-0.014, 12.246-0.588\n\t\tc-0.673-2.288-2.156-6.067-5.414-11.84C 241.942,82.685, 238.275,48, 249.7,28.434C 260.717,9.566, 284.392,0, 320.067,0\n\t\tc 35.679,0, 59.355,9.567, 70.373,28.436c 11.425,19.566, 7.757,54.251-10.901,87.313c-3.258,5.773-4.741,9.552-5.415,11.84\n\t\tc 3.905,0.574, 9.91,0.583, 12.27,0.587l 78.566,0 c 25.717,0, 46.64,20.979, 46.64,46.766L 512,465.21C 512,491.021, 491.077,512, 465.36,512z\n\t\t M 374.026,477.626c 0.932,0.731, 4.714,2.374, 12.863,2.374l 78.471,0 c 8.072,0, 14.64-6.625, 14.64-14.768l-0.4-290.269\n\t\tc0-8.164-6.567-14.788-14.64-14.788l-78.591,0 c-12.822-0.020-32.162-0.050-41.104-15.392c-8.587-14.731-0.457-32.602, 6.405-44.762\n\t\tc 12.133-21.498, 16.191-46.793, 11.136-55.45C 358.072,36.464, 342.895,32, 320.067,32c-22.824,0-38.001,4.464-42.734,12.57\n\t\tc-5.055,8.657-0.996,33.953, 11.137,55.452c 6.861,12.16, 14.991,30.029, 6.406,44.76c-8.942,15.341-28.283,15.373-41.081,15.394\n\t\tL 174.38,160.176 c-8.072,0-14.639,6.625-14.639,14.767l 0.4,87.683c0,2.33, 0.080,4.721, 0.157,7.034c 0.375,11.206, 0.762,22.795-7.325,31.159\n\t\tc-3.052,3.155-8.478,6.918-16.999,6.919c-0.001,0-0.004,0-0.005,0c-7.727,0-16.681-3.135-29.034-10.164\n\t\tc-14.839-8.446-38.229-13.289-49.096-13.289c-7.067,0-25.84,0-25.84,45.112c0,45.108, 18.772,45.108, 25.839,45.108\n\t\tc 10.866,0, 34.258-4.844, 49.098-13.289c 12.353-7.029, 21.308-10.165, 29.037-10.165c 8.523,0, 13.951,3.763, 17.003,6.919\n\t\tc 8.088,8.362, 7.7,19.951, 7.325,31.157c-0.078,2.315-0.158,4.708-0.158,6.967l0,69.138 c0,8.143, 6.567,14.768, 14.639,14.768l 79.27,0 \n\t\tc 8.148,0, 11.932-1.643, 12.863-2.373c 0.138-0.887, 0.433-5.625-5.914-16.871c-18.658-33.061-22.326-59.745-10.901-79.312\n\t\tc 11.017-18.868, 34.693-28.435, 70.369-28.435c 35.678,0, 59.354,9.567, 70.371,28.436c 11.425,19.565, 7.757,46.25-10.901,79.312\n\t\tC 373.593,472.003, 373.889,476.741, 374.026,477.626z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"puzzle, piece, app, addon, extension\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 479.165,128.125L 394.94,128.125 c-21.715-0.033-43.348-1.503-22.252-38.729c 21.138-37.3, 36.059-89.521-48.802-89.521 c-84.857,0-69.935,52.221-48.797,89.521c 21.096,37.226-0.538,38.694-22.255,38.729l-91.938,0 c-18.060,0-32.835,14.778-32.835,32.834 l0,102.189 c0,21.756, 5.904,43.513-31.393,22.378C 59.372,264.389,0,249.469,0,334.328c0,84.854, 59.37,69.935, 96.67,48.798 c 37.297-21.137, 31.393,0.62, 31.393,22.38l0,73.783 c0,18.062, 14.777,32.835, 32.835,32.835l 91.811,0 c 21.76,0, 43.517-8.706, 22.382-46.004 c-21.137-37.295-36.061-89.519, 48.797-89.519c 84.858,0, 69.938,52.221, 48.8,89.519c-21.135,37.299, 0.623,46.005, 22.381,46.005l 84.096,0 c 18.062,0, 32.837-14.777, 32.837-32.835L 512.002,160.958 C 512.002,142.901, 497.227,128.125, 479.165,128.125z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"package, box, book, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,0L 32,64l0,352 l 96,96l 320-64L 448,96 L 352,0z M 344.111,26.053l 75.604,75.604l-263.432,52.687L 80.68,78.739L 344.111,26.053z\n\t M 160,178.075l 4-0.8l0,303.049 l-4,0.801L 160,178.075 z M 172,175.675l 8-1.6l0,303.050 l-8,1.6L 172,175.675 z M 188,172.475l 8-1.6l0,303.049 l-8,1.6\n\tL 188,172.475 z M 204,169.275l 8-1.6l0,303.049 l-8,1.6L 204,169.275 z M 220,166.075l 8-1.6l0,303.049 l-8,1.601L 220,166.075 z M 236,162.875l 8-1.6l0,303.050 \n\tl-8,1.6L 236,162.875 z M 252,159.675l 8-1.6l0,303.050 l-8,1.6L 252,159.675 z M 268,156.476l 8-1.6l0,303.049 l-8,1.6L 268,156.476 z M 284,153.275l 8-1.6\n\tl0,303.049 l-8,1.601L 284,153.275 z M 300,150.075l 8-1.6l0,303.050 l-8,1.6L 300,150.075 z M 316,146.875l 8-1.6l0,303.050 l-8,1.6L 316,146.875 z M 332,143.675\n\tl 8-1.6l0,303.050 l-8,1.6L 332,143.675 z M 348,140.476l 8-1.6l0,303.049 l-8,1.601L 348,140.476 z M 364,137.275l 8-1.6l0,303.049 l-8,1.601L 364,137.275 z\n\t M 380,134.075l 8-1.6l0,303.050 l-8,1.6L 380,134.075 z M 396,130.875l 8-1.6l0,303.050 l-8,1.6L 396,130.875 z M 412,127.675l 4-0.8l0,303.049 l-4,0.801\n\tL 412,127.675 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cylinder, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448.18,80l-0.184,0.114C 447.997,80.076, 448,80.038, 448,80c0-44.183-85.961-80-192-80C 149.961,0, 64,35.817, 64,80\n\tc0,0.039, 0.003,0.076, 0.003,0.115L 63.82,80l0,348 l 0.456-0.285C 64.096,429.134, 64,430.562, 64,432c0,44.183, 85.961,80, 192,80\n\tc 106.039,0, 192-35.817, 192-80c0-1.438-0.096-2.865-0.275-4.284L 448.18,428L 448.18,80 z M 416,432c0,0.658-0.446,2.035-1.806,4L 97.807,436 \n\tc-1.36-1.965-1.807-3.342-1.807-4s 0.446-2.035, 1.807-4l 316.388,0 C 415.554,429.965, 416,431.342, 416,432z M 159.058,468\n\tc-8.613-2.354-16.697-5.029-24.126-8l 242.136,0 c-7.429,2.971-15.514,5.646-24.126,8L 159.058,468 z M 313.593,476\n\tc-18.341,2.613-37.831,4-57.593,4s-39.252-1.387-57.593-4L 313.593,476 z M 117.876,452c-5.219-2.896-9.191-5.618-12.176-8L 406.3,444 \n\tc-2.985,2.382-6.957,5.104-12.177,8L 117.876,452 z M 95.82,124.114c 4.375,2.752, 9.145,5.386, 14.282,7.886L 95.82,132 L 95.82,124.114 z M 95.82,140\n\tl 33.201,0 c 8.035,2.955, 16.667,5.633, 25.813,8L 95.82,148 L 95.82,140 z M 95.82,364l 59.014,0 c-9.146,2.367-17.778,5.045-25.813,8L 95.82,372 L 95.82,364 z\n\t M 198.407,388c 18.341-2.613, 37.831-4, 57.593-4s 39.252,1.387, 57.593,4L 198.407,388 z M 352.942,396c 8.612,2.354, 16.697,5.029, 24.126,8\n\tL 134.932,404 c 7.429-2.971, 15.513-5.646, 24.126-8L 352.942,396 z M 95.82,387.886L 95.82,380 l 14.282,0 C 104.965,382.5, 100.195,385.133, 95.82,387.886z\n\t M 105.701,420c 2.985-2.382, 6.957-5.104, 12.176-8l 276.247,0 c 5.22,2.896, 9.191,5.618, 12.177,8L 105.701,420 z M 416.18,387.886\n\tc-4.375-2.753-9.145-5.386-14.281-7.886l 14.281,0 L 416.18,387.886 z M 416.18,372L 382.98,372 c-8.036-2.955-16.668-5.633-25.813-8l 59.013,0 L 416.18,372 z\n\t M 416.18,356L 316.077,356 c-18.901-2.593-39.094-4-60.077-4c-20.984,0-41.176,1.407-60.077,4L 95.82,356 l0-8 l 320.36,0 L 416.18,356 z M 416.18,340L 95.82,340 l0-8 \n\tl 320.36,0 L 416.18,340 z M 416.18,324L 95.82,324 l0-8 l 320.36,0 L 416.18,324 z M 416.18,308L 95.82,308 l0-8 l 320.36,0 L 416.18,308 z M 416.18,292L 95.82,292 l0-8 l 320.36,0 L 416.18,292 z M 416.18,276\n\tL 95.82,276 l0-8 l 320.36,0 L 416.18,276 z M 416.18,260L 95.82,260 l0-8 l 320.36,0 L 416.18,260 z M 416.18,244L 95.82,244 l0-8 l 320.36,0 L 416.18,244 z M 416.18,228L 95.82,228 l0-8 l 320.36,0 L 416.18,228 z\n\t M 416.18,212L 95.82,212 l0-8 l 320.36,0 L 416.18,212 z M 416.18,196L 95.82,196 l0-8 l 320.36,0 L 416.18,196 z M 416.18,180L 95.82,180 l0-8 l 320.36,0 L 416.18,180 z M 416.18,164L 95.82,164 l0-8 \n\tl 100.104,0 c 18.901,2.592, 39.093,4, 60.077,4c 20.983,0, 41.176-1.408, 60.077-4L 416.18,156 L 416.18,164 z M 416.18,148l-59.013,0 \n\tc 9.146-2.367, 17.777-5.045, 25.813-8l 33.199,0 L 416.179,148 z M 416.18,124.115L 416.18,132 l-14.281,0 C 407.035,129.5, 411.805,126.867, 416.18,124.115z\n\t M 101.545,71.657c 4.631-4.563, 13.769-11.509, 30.998-18.687C 164.527,39.643, 209.525,32, 256,32s 91.473,7.643, 123.457,20.97\n\tc 17.229,7.178, 26.366,14.124, 30.998,18.687C 414.832,75.969, 416,78.93, 416,80s-1.168,4.031-5.545,8.343\n\tc-4.632,4.562-13.77,11.508-30.998,18.687C 347.473,120.357, 302.475,128, 256,128s-91.473-7.643-123.457-20.97\n\tc-17.229-7.178-26.367-14.124-30.998-18.687C 97.168,84.031, 96,81.070, 96,80S 97.168,75.969, 101.545,71.657z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pyramid, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 240.001,32.027L 8.352,373.011L 240.001,512L 471.65,373.011L 240.001,32.027z M 53.846,362.989L 224,112.524l0,352.558\n\tL 53.846,362.989z M 256.001,460l 8.47,0 l-8.47,5.082L 256.001,460 z M 256.001,452l0-8 l 35.137,0 l-13.333,8L 256.001,452 z M 256.001,436l0-8 l 61.804,0 l-13.334,8\n\tL 256.001,436 z M 256.001,420l0-8 l 88.471,0 l-13.334,8L 256.001,420 z M 256.001,404l0-8 l 115.137,0 l-13.333,8L 256.001,404 z M 256.001,388l0-8 l 141.804,0 \n\tl-13.333,8L 256.001,388 z M 256.001,372l0-8 l 168.471,0 l-13.333,8L 256.001,372 z M 263.798,124l 5.435,8l-13.231,0 l0-8 L 263.798,124 z M 274.667,140l 5.435,8\n\tl-24.1,0 l0-8 L 274.667,140 z M 285.537,156l 5.435,8l-34.97,0 l0-8 L 285.537,156 z M 296.406,172l 5.436,8l-45.84,0 l0-8 L 296.406,172 z M 307.276,188l 5.435,8l-56.709,0 \n\tl0-8 L 307.276,188 z M 318.146,204l 5.436,8l-67.58,0 l0-8 L 318.146,204 z M 329.016,220l 5.435,8l-78.449,0 l0-8 L 329.016,220 z M 339.886,236l 5.435,8l-89.319,0 l0-8 \n\tL 339.886,236 z M 350.755,252l 5.435,8L 256.001,260 l0-8 L 350.755,252 z M 361.625,268l 5.435,8L 256.001,276 l0-8 L 361.625,268 z M 372.494,284l 5.436,8L 256.001,292 l0-8 \n\tL 372.494,284 z M 383.364,300l 5.435,8L 256.001,308 l0-8 L 383.364,300 z M 394.233,316l 5.436,8L 256.001,324 l0-8 L 394.233,316 z M 405.104,332l 5.435,8L 256.001,340 l0-8 \n\tL 405.104,332 z M 415.974,348l 5.435,8L 256.001,356 l0-8 L 415.974,348 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pyramid\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 240.001,32.027L 8.352,373.011L 240.001,512L 471.65,373.011L 240.001,32.027z M 53.846,362.989L 224,112.524l0,352.558\n\tL 53.846,362.989z M 256.001,112.524l 170.155,250.465L 256.001,465.082L 256.001,112.524z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cube4, 3d, box, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 244.016,0l-8.031,0 L 26.718,112.107L0,126.42l0,228.121 L 235.137,512l 9.727,0 L 480,354.541L 480,126.42 L 244.016,0z M 203.050,452l-11.947-8\n\tL 224,444 l0,8 L 203.050,452 z M 224,460l0,6.029 L 214.996,460L 224,460 z M 179.157,436l-11.947-8L 224,428 l0,8 L 179.157,436 z M 155.263,420l-11.946-8L 224,412 l0,8 L 155.263,420 z\n\t M 131.37,404l-11.946-8L 224,396 l0,8 L 131.37,404 z M 107.477,388l-11.947-8L 224,380 l0,8 L 107.477,388 z M 83.584,372l-11.947-8L 224,364 l0,8 L 83.584,372 z M 59.69,356\n\tl-11.946-8L 224,348 l0,8 L 59.69,356 z M 35.797,340L 32,337.457L 32,332 l 192,0 l0,8 L 35.797,340 z M 32,324l0-8 l 192,0 l0,8 L 32,324 z M 32,308l0-8 l 192,0 l0,8 L 32,308 z M 32,292l0-8 l 192,0 l0,8 L 32,292 z\n\t M 32,276l0-8 l 192,0 l0,8 L 32,276 z M 32,260l0-8 l 166.65,0 l 14.934,8L 32,260 z M 32,244l0-8 l 136.784,0 l 14.934,8L 32,244 z M 32,228l0-8 l 106.917,0 l 14.934,8L 32,228 z M 32,212l0-8 \n\tl 77.050,0 l 14.933,8L 32,212 z M 32,196l0-8 l 47.184,0 l 14.934,8L 32,196 z M 32,180l0-8 l 17.317,0 l 14.933,8L 32,180 z M 32,164l0-1.277 L 34.383,164L 32,164 z M 240,237.849\n\tL 49.882,136L 240,34.151L 430.117,136L 240,237.849z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cube, 3d, box\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 244.016,0l-8.031,0 L 26.718,112.107L0,126.42l0,228.121 L 235.137,512l 9.727,0 L 480,354.541L 480,126.42 L 244.016,0z M 430.117,136\n\tl-76.519,40.992l-85.010-45.542l 76.518-40.992L 430.117,136z M 240,34.151l 76.519,40.992L 240,116.136l-76.519-40.992L 240,34.151z\n\t M 134.893,90.458l 76.519,40.993l-85.011,45.541L 49.882,136L 134.893,90.458z M 98.542,382.017L 32,337.457l0-77.563 l 66.542,41.589\n\tL 98.542,382.017 z M 98.542,269.643L 32,228.054l0-65.331 l 66.542,35.647L 98.542,269.643 z M 224,466.029l-98.458-65.933l0-81.739 L 224,379.895L 224,466.029 z\n\t M 224,348.054l-98.458-61.536l0-73.684 L 224,265.58L 224,348.054 z M 240,237.849l-85.010-45.541L 240,146.766l 85.011,45.541L 240,237.849z\n\t M 354.459,400.097L 256,466.029l0-86.135 l 98.459-61.537L 354.459,400.097 z M 354.459,286.518L 256,348.055L 256,265.58 l 98.459-52.746L 354.459,286.518 z\n\t M 448,337.457l-66.541,44.559l0-80.533 L 448,259.894L 448,337.457 z M 448,228.054l-66.541,41.588L 381.459,198.37 L 448,162.723L 448,228.054 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cube, box, 3d, miscellaneous\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 240,32L0,128l0,224 l 240,128l 240-128L 480,128 L 240,32z M 224,435.2L 32,332.8L 32,177.067 l 192,102.4L 224,435.2 z M 41.498,145.866L 240,66.465\n\tl 198.502,79.401L 240,251.733L 41.498,145.866z M 448,332.8L 256,435.2L 256,279.467 l 192-102.4L 448,332.8 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cube, box, 3d, miscellaneous\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,32L 32,128L 256,224L 480,128 \tzM 32,416L 224,496L 224,272L 32,192 \tzM 288,496L 480,416L 480,192L 288,272 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"boat, sailing\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,352l0,128 l 352,0 c 64,0, 160-58.5, 160-128L0,352 zM 256,32L0,320L 256,320 \tzM 288,96l0,224 l 160,0 C 448,160, 288,96, 288,96z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"ship, travel, vacation, transport\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 450.017,432L 448,432 l-2.017,0 c-7.104,27.604-32.162,48-61.983,48s-54.879-20.396-61.983-48L 320,432 l-2.017,0 \n\t\tc-7.104,27.604-32.162,48-61.983,48s-54.879-20.396-61.983-48L 192,432 l-2.017,0 c-7.104,27.604-32.162,48-61.983,48\n\t\ts-54.879-20.396-61.983-48L 64,432 l-2.017,0 C 54.879,459.604, 29.821,480,0,480l0,32 c 35.346,0, 64-18.653, 64-54c0,35.347, 28.654,54, 64,54\n\t\ts 64-18.653, 64-54c0,35.347, 28.654,54, 64,54c 35.346,0, 64-18.653, 64-54c0,35.347, 28.654,54, 64,54s 64-18.653, 64-54\n\t\tc0,35.347, 28.654,54, 64,54l0-32 C 482.179,480, 457.121,459.604, 450.017,432zM 450.017,368L 448,368 l-2.017,0 c-7.104,27.604-32.162,48-61.983,48c-24.019,0-44.939-13.236-55.886-32.808\n\t\tC 391.793,371.008, 480,224, 480,224l-63.928-27.397c-0.066-0.544-0.143-1.082-0.229-1.613L 389.157,31.582\n\t\tC 386.321,14.212, 369.6,0, 352,0L 160,0 c-17.6,0-34.321,14.212-37.157,31.582L 96.157,194.989c-0.087,0.531-0.163,1.069-0.229,1.613\n\t\tL 32,224c0,0, 88.207,147.008, 151.886,159.192C 172.939,402.764, 152.019,416, 128,416c-29.821,0-54.879-20.396-61.983-48L 64,368 l-2.017,0 \n\t\tC 54.879,395.604, 29.821,416,0,416l0,32 c 35.346,0, 64-18.653, 64-54c0,35.347, 28.654,54, 64,54s 64-18.653, 64-54c0,35.347, 28.654,54, 64,54\n\t\tc 35.346,0, 64-18.653, 64-54c0,35.347, 28.654,54, 64,54s 64-18.653, 64-54c0,35.347, 28.654,54, 64,54l0-32 \n\t\tC 482.179,416, 457.121,395.604, 450.017,368z M 288,32l 64,0 c 1.93,0, 5.265,2.834, 5.575,4.739l 23.669,144.937l-107.891-46.238L 288,32z\n\t\t M 154.424,36.739C 154.735,34.834, 158.070,32, 160,32l 64,0 l 14.646,103.438l-107.891,46.239L 154.424,36.739z M 256,416\n\t\tc-23.686,0-44.356-12.874-55.423-32l 110.846,0 C 300.355,403.126, 279.686,416, 256,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"train, travel, transport, travel, vacation\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,272l0-42 c0-21-16-38-36-38l-28,0 L 352,96 l 32-64L 256,32 l 32,64l0,96 L 128,192 l0-64 L0,128 l0,288 l 32,0 c0,35.347, 28.653,64, 64,64s 64-28.653, 64-64\n\t\tc0,35.347, 28.653,64, 64,64s 64-28.653, 64-64c0,35.347, 28.653,64, 64,64s 64-28.653, 64-64l 96,0 L 416,272z M 96,448\n\t\tc-17.673,0-32-14.326-32-32s 14.327-32, 32-32s 32,14.326, 32,32S 113.673,448, 96,448z M 224,448c-17.673,0-32-14.326-32-32\n\t\ts 14.327-32, 32-32s 32,14.326, 32,32S 241.673,448, 224,448z M 352,448c-17.674,0-32-14.326-32-32s 14.326-32, 32-32s 32,14.326, 32,32\n\t\tS 369.674,448, 352,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"road, asphalt\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,512l 160,0 L 384,0l-96,0 l 16,128l-96,0 L 224,0l-96,0 L0,512l 160,0 l 16-128l 160,0 L 352,512z M 184,320l 16-128l 112,0 l 16,128L 184,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bike, bicycle, ride\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,224c-11.158,0-21.869,1.91-31.831,5.411l-26.398-61.213l 24.512-44.698l 19.967,0 c 7.456,0, 13.5-6.044, 13.5-13.5\n\ts-6.044-13.5-13.5-13.5l-68.785,0 c-7.456,0-13.5,6.044-13.5,13.5s 6.044,13.5, 13.5,13.5l 21.447,0 L 334.895,160L 147.485,160 l 7.903-36.5l 54.11,0 \n\tc 7.456,0, 13.5-6.044, 13.5-13.5s-6.044-13.5-13.5-13.5l-75.89,0 l-27.714,128.004C 102.641,224.171, 99.341,224, 96,224\n\tc-53.020,0-96,42.98-96,96s 42.98,96, 96,96s 96-42.98, 96-96c0-40.247-24.77-74.702-59.893-88.971l 8.224-37.986l 106.824,144.496\n\tc 2.074,2.806, 5.356,4.461, 8.845,4.461l 66.536,0 c 9.946,42.416, 48.015,74, 93.464,74c 53.020,0, 96-42.98, 96-96S 469.020,224, 416,224z\n\t M 165,320c0,38.047-30.953,69-69,69s-69-30.953-69-69s 30.953-69, 69-69c 1.387,0, 2.761,0.053, 4.128,0.134l-17.323,80.009\n\tc-1.578,7.287, 3.051,14.473, 10.338,16.051c 0.963,0.208, 1.923,0.309, 2.87,0.309c 6.217,0, 11.812-4.322, 13.181-10.646l 17.071-78.849\n\tC 149.181,269.242, 165,292.805, 165,320z M 322.83,182l-69.546,126.821L 159.526,182L 322.83,182 z M 274.524,320l 69.835-127.346l 20.010,46.4\n\tC 337.689,256.107, 320,285.987, 320,320L 274.524,320 z M 375.276,264.346L 399.277,320L 347,320 C 347,297.175, 358.147,276.913, 375.276,264.346z\n\t M 416,389c-30.355,0-56.176-19.712-65.383-47L 416,342 c 3.702,0, 7.155-1.862, 9.19-4.955c 2.034-3.093, 2.376-7.002, 0.91-10.4l-31.194-72.334\n\tC 401.56,252.168, 408.645,251, 416,251c 38.047,0, 69,30.953, 69,69S 454.047,389, 416,389z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"truck, vehicle, transit, transport\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,288l-64-128l-96,0 L 352,96 c0-17.6-14.4-32-32-32L 32,64 C 14.4,64,0,78.4,0,96l0,256 l 32,32l 40.583,0 C 67.134,393.416, 64,404.339, 64,416\n\tc0,35.346, 28.654,64, 64,64s 64-28.654, 64-64c0-11.661-3.134-22.584-8.583-32l 177.167,0 c-5.449,9.416-8.584,20.339-8.584,32\n\tc0,35.346, 28.654,64, 64,64s 64-28.654, 64-64c0-11.661-3.135-22.584-8.584-32L 512,384 L 512,288 z M 352,288l0-80 l 66.334,0 l 40,80L 352,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bus, transport, public transportation, travel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,32C 432.279,0, 320,0, 256,0S 79.72,0, 64,32S 32,256, 32,256l0,192 l 64,0 l0,32 c0,17.673, 14.327,32, 32,32s 32-14.327, 32-32l0-32 l 192,0 l0,32 \n\tc0,17.673, 14.327,32, 32,32c 17.674,0, 32-14.327, 32-32l0-32 l 64,0 L 480,256 C 480,256, 463.721,64, 448,32z M 160,32l 192,0 l0,32 L 160,64 L 160,32 z M 128,352\n\tc-17.673,0-32-14.327-32-32s 14.327-32, 32-32s 32,14.327, 32,32S 145.673,352, 128,352z M 102.499,224.001\n\tc 0.8-7.513, 1.656-15.314, 2.559-23.231c 6.083-53.329, 10.847-81.788, 13.844-96.464c 8.586-2.002, 23.196-4.479, 46.867-6.145\n\tC 196.495,96, 229.49,96, 256,96s 59.505,0, 90.231,2.161c 23.671,1.665, 38.28,4.142, 46.866,6.145\n\tc 2.996,14.676, 7.762,43.136, 13.845,96.465c 0.902,7.917, 1.759,15.718, 2.559,23.23L 102.499,224.001 z M 384,352c-17.673,0-32-14.327-32-32\n\ts 14.327-32, 32-32s 32,14.327, 32,32S 401.673,352, 384,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"gas-pump, pump, oil\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 490.5,128C 446,91, 352,71.5, 352,71.5L 352,96 c 47.5,13.5, 64,45.719, 64,45.719L 416,192 c0,17.594, 14.406,32, 32,32l 16,0 l0,144 l-48,0 l0-88 \n\tc0-22.062-17.938-40-40-40l-56,0 L 320,80 c0-26.406-21.594-48-48-48L 80,32 c-26.406,0-48,21.594-48,48l0,368 L0,448 l0,64 l 352,0 l0-64 l-32,0 L 320,288 l 48,0 l0,88 \n\tc0,22.062, 17.938,40, 40,40l 64,0 c 22.062,0, 40-17.938, 40-40L 512,176 C 512,146.5, 490.5,128, 490.5,128z M 288,176c0,8.797-7.188,16-16,16L 80,192 \n\tc-8.797,0-16-7.203-16-16L 64,80 c0-8.797, 7.203-16, 16-16l 192,0 c 8.812,0, 16,7.203, 16,16L 288,176 z M 480,184c0,4.4-3.6,8-8,8l-16,0 \n\tc-4.4,0-8-3.6-8-8l0-16 c0-4.4, 3.6-8, 8-8l 16,0 c 4.4,0, 8,3.6, 8,8L 480,184 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"car, drive, vehicle, automobile, transport, travel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 422.198,160L 384.444,46.738C 381.554,38.061, 373.146,32, 364,32L 148,32 c-9.145,0-17.552,6.060-20.444,14.735L 89.801,160L0,160 l0,224 l 64,0 \n\tl0,80 c0,8.8, 7.199,16, 16,16l 64,0 c 8.8,0, 16-7.2, 16-16l0-80 l 192,0 l0,80 c0,8.8, 7.198,16, 16,16l 64,0 c 8.8,0, 16-7.2, 16-16l0-80 l 64,0 L 512,160 L 422.198,160 z\n\t M 112,320c-26.51,0-48-21.49-48-48s 21.49-48, 48-48s 48,21.49, 48,48S 138.51,320, 112,320z M 131.532,160l 32-96l 184.936,0 l 32,96L 131.532,160 z\n\t M 400,320c-26.51,0-48-21.49-48-48s 21.49-48, 48-48s 48,21.49, 48,48S 426.51,320, 400,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paper plane, send, flight, fly, plane, airplane, speed, light\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,352L 420.818,422.244L 512,23.566 \tzM 160,329.954L 512,23.566L0,276.797 \tzM 224,385.977L 224,512L 316.876,419.124 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"airplane, flight, fly, plane, travel, vacation\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,224L 160,32L 96,32 l 128,192c-41.455,0-82.064,0-112,0l-48-64L0,160 l 56,112L0,384l 64,0 l 48-64c 29.936,0, 70.545,0, 112,0L 96,512l 64,0 \n\tl 192-192c 96,0, 160-29.625, 160-48S 448,224, 352,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"airplane, flight, fly, plane, travel, vacation\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,319.984l-91.41-91.411L 512,63.998L 447.995,0l-274.26,109.721L 87.385,23.368C 62.495-1.521, 27.734-7.485, 10.134,10.114\n\tC-7.465,27.713-1.5,62.477, 23.389,87.364l 86.343,86.342L0,447.997L 63.995,512L 228.59,292.566l 91.413,91.414l0,127.99 L 384,511.97 \n\tl 31.996-95.994l 95.994-31.998l0-63.996 L 384,319.982 L 384,319.984 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"briefcase, portfolio, suitcase, work, job, employee\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,128L 352,128 L 352,96 c0-17.6-14.4-32-32-32L 192,64 c-17.602,0-32,14.4-32,32l0,32 L 32,128 c-17.6,0-32,14.4-32,32l0,288 \n\tc0,17.601, 14.398,32, 32,32l 448,0 c 17.6,0, 32-14.399, 32-32L 512,160 C 512,142.4, 497.6,128, 480,128z M 192,96.058\n\tc 0.017-0.020, 0.037-0.041, 0.057-0.058l 127.886,0 c 0.021,0.017, 0.041,0.038, 0.059,0.058L 320.002,128 L 192,128 L 192,96.058 z M 480,256l-64,0 l0,48 \n\tc0,8.801-7.2,16-16,16l-32,0 c-8.802,0-16-7.199-16-16l0-48 L 160,256 l0,48 c0,8.801-7.2,16-16,16l-32,0 c-8.801,0-16-7.199-16-16l0-48 L 32,256 l0-32 l 448,0 \n\tL 480,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"briefcase, portfolio, suitcase, work, job, employee\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,160L 352,160 L 352,96 c0-17.6-14.4-32-32-32L 192,64 c-17.602,0-32,14.4-32,32l0,64 L 48,160 c-26.4,0-48,21.6-48,48l0,224 c0,26.4, 21.6,48, 48,48\n\tl 416,0 c 26.398,0, 48-21.6, 48-48L 512,208 C 512,181.6, 490.401,160, 464,160z M 192,96.057c 0.016-0.020, 0.037-0.041, 0.058-0.057l 127.887,0 \n\tc 0.021,0.018, 0.040,0.038, 0.058,0.057L 320.003,160 L 192,160 L 192,96.057 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"briefcase, portfolio, suitcase, work, job, employee\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 109.255,320L 224,320 l0-32 l 64,0 l0,32 l 114.745,0 L 512,210.745L 512,160 c0-17.6-14.4-32-32-32l-96,0 l-64-64L 192,64 l-64,64L 32,128 c-17.6,0-32,14.4-32,32\n\tl0,50.745 L 109.255,320z M 205.255,96l 101.49,0 l 32,32l-165.49,0 L 205.255,96z M 416,352L 288,352 l0,32 l-64,0 l0-32 L 96,352 L0,256l0,192 c0,17.6, 14.4,32, 32,32l 448,0 \n\tc 17.6,0, 32-14.4, 32-32L 512,256 L 416,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"remove, delete, trashcan, recycle bin, bin, dispose\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,480c0,17.673, 14.327,32, 32,32l 320,0 c 17.674,0, 32-14.327, 32-32L 448,128 L 64,128 L 64,480 z M 320,192l 64,0 l0,256 l-64,0 L 320,192 z M 224,192l 64,0 l0,256 l-64,0 \n\t\tL 224,192 z M 128,192l 64,0 l0,256 l-64,0 L 128,192 zM 448,32L 320,32 L 320,0 L 192,0 l0,32 L 64,32 C 28.654,32,0,60.654,0,96l 512,0 C 512,60.654, 483.347,32, 448,32z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"remove, delete, trashcan, recycle bin, bin, dispose\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,224c-106.039,0-192-42.98-192-96l0,32 c0,19.625, 11.787,37.871, 32,53.074L 96,448 c0,35.347, 71.634,64, 160,64\n\t\tc 88.365,0, 160-28.653, 160-64L 416,213.074 c 20.213-15.204, 32-33.449, 32-53.074l0-32 C 448,181.020, 362.039,224, 256,224z M 192,474.118\n\t\tc-10.372-2.025-20.122-4.538-28.967-7.528c-23.747-8.027-33.068-16.675-35.033-19.794L 128,231.547 \n\t\tc 18.467,8.265, 40.151,14.767, 64,18.982L 192,474.118 z M 288,478.597c-10.404,0.924-21.134,1.403-32,1.403\n\t\tc-10.867,0-21.596-0.479-32-1.403L 224,254.665 c 10.408,0.874, 21.096,1.335, 32,1.335s 21.592-0.461, 32-1.335L 288,478.597 z M 384,446.796\n\t\tc-1.965,3.118-11.286,11.767-35.033,19.794c-8.846,2.99-18.596,5.503-28.967,7.528L 320,250.53 c 23.849-4.215, 45.533-10.717, 64-18.982\n\t\tL 384,446.796 zM 256,192c 106.039,0, 192-42.98, 192-96S 362.039,0, 256,0C 149.962,0, 64,42.98, 64,96S 149.962,192, 256,192z M 134.547,56.739\n\t\tC 165.991,41.017, 210.259,32, 256,32s 90.010,9.017, 121.454,24.739C 401.231,68.627, 416,83.671, 416,96s-14.77,27.373-38.546,39.261\n\t\tC 346.010,150.983, 301.741,160, 256,160s-90.009-9.017-121.454-24.739C 110.77,123.373, 96,108.329, 96,96S 110.77,68.627, 134.547,56.739z\n\t\tM 224,96L 288,96L 288,128L 320,128L 320,64L 192,64L 192,128L 224,128 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"remove, delete, trashcan, recycle bin, bin, dispose\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224.001,384.001L 256,384.001L 256,416L 224.001,416zM 288,384.001L 288,352.001L 256,352.001L 256,384L 287.999,384L 287.999,416L 319.999,416L 319.999,384.001 \tzM 160.001,384.001L 192.001,384.001L 192.001,416L 160.001,416zM 256,416L 287.999,416L 287.999,448L 256,448zM 192.001,416.001L 224.001,416.001L 224.001,447.999L 192.001,447.999zM 128.001,287.999L 160,287.999L 160,319.999L 128.001,319.999zM 192.001,352.001L 224,352.001L 224,384.001L 192.001,384.001zM 480,112c0-44.183-107.451-80-240-80S0,67.817,0,112c0,0.216, 0.020,0.431, 0.024,0.646l-0.016-0.021\n\t\tC0,131.442, 7.547,158.176, 20.595,210.367c 0.001,0.004, 0.002,0.008, 0.004,0.013l 57.941,231.77\n\t\tC 88.145,480.567, 128.403,512, 168.003,512L 240,512 l 71.997,0 c 39.601,0, 79.858-31.433, 89.463-69.851l 57.941-231.77\n\t\tc 0.002-0.005, 0.003-0.009, 0.004-0.013c 13.048-52.191, 20.595-78.924, 20.586-97.741l-0.016,0.021\n\t\tC 479.981,112.431, 480,112.216, 480,112z M 96.001,319.999l0-32 L 128,287.999 L 128,256 L 96,256 l0-32 L 64,224 l0-32 l 32,0 l0,32 l 32,0 l0-32 l 32,0 l0,32 l 32,0 l0,31.999 l 32,0 l0,32 l 32,0 l0,32 l-32,0 \n\t\tl0-32 l-32,0 l0,32 l-31.999,0 l0,32 l-32,0 l0-32 L 96.001,319.999 z M 288,255.998l0-31.999 l 31.996,0 l0-32 l 32,0 l0,32 L 320,223.999 l0,32 L 288,255.998l0,32 l-32,0 l0-32 l-32,0 l0-32 l 32,0 l0,32 L 288,255.998 z\n\t\t M 351.999,416l-32,0 l0,32 L 288,448 l0,32 l-32,0 l0-32 l-32,0 l0,31.999 l-32,0 L 192,448 l-32,0 l0-32 l-32,0 l0-32 l 32,0 l0-31.999 L 192,352.001 l0-32 l 32,0 l0,32 l 32,0 l0-32 l 32,0 l0,32 l 32,0 L 320,384 l 31.999,0 L 351.999,416 \n\t\tz M 384,320.001l-32,0 L 352,352 l-32,0 l0-32 l-32,0 l0-32 l 32,0 l0-31.999 l 31.996,0 l0-32 l 32,0 l0,32 L 352,256.001 l0,32 l 32,0 L 384,320.001 z M 416,223.999l-32,0 l0-32 l 32,0 L 416,223.999 z\n\t\t M 434.762,122.571c-3.738,2.324-8.031,4.609-12.787,6.831c-9.065,4.234-19.843,8.23-31.885,11.789\n\t\tC 349.052,153.32, 295.749,160, 240,160s-109.052-6.68-150.090-18.809c-12.042-3.559-22.819-7.555-31.885-11.789\n\t\tc-4.756-2.221-9.049-4.506-12.787-6.831c-7.975-4.958-11.354-8.742-12.665-10.571c 1.312-1.829, 4.69-5.613, 12.665-10.571\n\t\tc 10.865-6.755, 26.313-13.194, 44.672-18.62C 130.948,70.68, 184.251,64, 240,64s 109.052,6.68, 150.090,18.809\n\t\tc 18.359,5.426, 33.807,11.865, 44.672,18.62c 7.975,4.958, 11.354,8.742, 12.665,10.571\n\t\tC 446.115,113.829, 442.737,117.613, 434.762,122.571zM 160,255.999L 160,287.999L 192,287.999L 192,256L 160,256L 160,224L 128,224L 128,255.999 \tzM 320,288.001L 352,288.001L 352,320L 320,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"remove, delete, trashcan, recycle bin, bin, dispose\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,64L 320,64 L 320,16 c0-8.836-7.163-16-16-16l-96,0 c-8.836,0-16,7.164-16,16l0,48 L 32,64 L0,128l 64,0 l 32,384l 320,0 l 32-384l 64,0 L 480,64z M 224,448\n\tl-64,0 L 160,160 l 64,0 L 224,448 z M 224,32l 64,0 l0,32 l-64,0 L 224,32 z M 352,448l-64,0 L 288,160 l 64,0 L 352,448 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"remove, delete, trashcan, recycle bin, bin, dispose\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 456,96L 320,96 L 320,56 c0-13.2-10.8-24-24-24L 184,32 c-13.2,0-24,10.8-24,24l0,40 L 24,96 c-13.2,0-24,10.8-24,24l0,16 c0,13.2, 10.8,24, 24,24l 432,0 \n\tc 13.2,0, 24-10.8, 24-24l0-16 C 480,106.8, 469.2,96, 456,96z M 192,64.401l 96,0 L 288,96 l-96,0 L 192,64.401 zM 64,192l0,256 c0,17.6, 14.4,32, 32,32l 288,0 c 17.6,0, 32-14.4, 32-32L 416,192 L 64,192 z M 160,448l-32,0 L 128,224 l 32,0 L 160,448 z M 224,448l-32,0 L 192,224 l 32,0 L 224,448 z\n\t M 288,448l-32,0 L 256,224 l 32,0 L 288,448 z M 352,448l-32,0 L 320,224 l 32,0 L 352,448 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"remove, delete, trashcan, recycle bin, bin, dispose\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,192 L 416,192 L 416,464 C 416,490.4 394.4,512 368,512 L 144,512 C 117.6,512 96,490.4 96,464 L 96,192 L 160,192 L 160,448 L 224,448 L 224,192 L 288,192 L 288,448 L 352,448 L 352,192 ZM 64,96L 448,96L 448,160L 64,160zM 192,32L 320,32L 320,80L 192,80z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"remove, delete, trashcan, recycle bin, bin, dispose\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 400,64L 112,64 c-26.51,0-48,21.49-48,48l0,16 l 384,0 l0-16 C 448,85.49, 426.51,64, 400,64zM 316.16,32l 7.058,50.5L 188.782,82.5 l 7.057-50.5L 316.16,32 M 320,0L 192,0 c-13.2,0-25.495,10.696-27.321,23.769l-9.357,66.962\n\tC 153.495,103.804, 162.8,114.5, 176,114.5l 160,0 c 13.2,0, 22.505-10.696, 20.679-23.769l-9.357-66.962C 345.495,10.696, 333.2,0, 320,0L 320,0z\n\tM 408,160L 104,160 c-17.6,0-30.696,14.341-29.103,31.869l 26.206,288.263C 102.696,497.659, 118.4,512, 136,512l 240,0 \n\tc 17.6,0, 33.304-14.341, 34.897-31.868l 26.205-288.263C 438.696,174.341, 425.6,160, 408,160z M 192,448l-48,0 l-16-224l 64,0 L 192,448 z M 288,448l-64,0 \n\tL 224,224 l 64,0 L 288,448 z M 368,448l-48,0 L 320,224 l 64,0 L 368,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"remove, delete, trashcan, recycle bin, bin, dispose\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,512L 416,512L 448,160L 64,160 \tzM 320,64L 320,0 L 192,0 l0,64 L 32,64 l0,96 l 32-32l 384,0 l 32,32L 480,64 L 320,64 z M 288,64l-64,0 L 224,32 l 64,0 L 288,64 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lamp, idea, tip, light, bulb\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 191.076,399.223 C 202.953,412.152 222.605,416.557 258.824,415.961 C 291.477,415.416 309.766,412.588 320.924,402.316 L 320.924,439.84 C 300.973,446.326 279.032,449.926 256.003,449.926 C 232.972,449.926 211.026,446.326 191.076,439.838 L 191.076,399.223 Z M 191.753,465.056 C 220.577,473.871 233.728,474.347 256.003,474.347 C 278.275,474.347 291.427,473.871 320.253,465.056 C 317.745,478.761 306.952,512 256.003,512 C 205.053,512 194.26,478.761 191.753,465.056 ZM 256.003,38 C 191.676,38 139.342,89.382 139.342,152.54 C 139.342,183.947 161.241,222.929 187.698,266.936 C 198.256,284.497 203.319,301.851 207.387,315.795 C 210.541,326.608 213.52,336.821 217.394,340.44 C 219.195,342.124 227.234,347.617 255.027,347.617 C 256.092,347.617 257.172,347.61 258.273,347.593 C 289.090,347.14 296.43,341.548 297.165,340.912 C 299.529,338.867 302.087,329.647 304.345,321.512 C 307.97,308.448 312.482,292.188 322.461,274.724 C 342.452,239.753 372.659,186.914 372.659,152.539 C 372.659,122.065 360.585,93.373 338.66,71.749 C 316.595,49.985 287.24,38 256.003,38 Z M 256.003,0 L 256.003,0 C 341.371,0 410.66,68.338 410.659,152.54 C 410.659,194.641 382.743,245.843 355.454,293.579 C 328.175,341.316 352.442,384.214 258.825,385.59 C 257.537,385.608 256.273,385.618 255.027,385.618 C 161.744,385.618 183.452,333.624 155.13,286.516 C 126.431,238.779 101.342,194.642 101.342,152.54 C 101.342,68.339 170.629,0 256.003,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lamp, idea, tip, light, bulb\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256.003,0c-85.374,0-154.661,68.339-154.661,152.54c0,42.102, 25.089,86.239, 53.788,133.976\n\t\tc 28.7,47.737, 6.022,100.49, 103.695,99.073c 93.617-1.376, 69.35-44.274, 96.629-92.011c 27.289-47.736, 55.205-98.938, 55.205-141.039\n\t\tC 410.66,68.338, 341.371,0, 256.003,0zM 191.076,399.223l0,40.615 c 19.95,6.488, 41.896,10.088, 64.927,10.088c 23.029,0, 44.97-3.6, 64.921-10.086l0-37.525 \n\t\tc-11.158,10.273-29.447,13.1-62.1,13.645C 222.605,416.557, 202.953,412.152, 191.076,399.223zM 191.753,465.056c 2.507,13.705, 13.3,46.944, 64.25,46.944c 50.949,0, 61.742-33.239, 64.25-46.944\n\t\tc-28.826,8.815-41.977,9.291-64.25,9.291C 233.728,474.347, 220.577,473.871, 191.753,465.056z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lamp, idea, tip, light, bulb, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 149.961,0, 64,85.961, 64,192c0,71.066, 38.613,133.109, 96,166.309L 160,448 l 64,64l 64,0 l 64-64l0-89.691 \n\tc 57.388-33.199, 96-95.242, 96-166.309C 448,85.961, 362.039,0, 256,0z M 224,340l0-8 l 64,0 l0,8 L 224,340 z M 288,348l0,0.812 \n\tc-10.42,2.104-21.127,3.188-32,3.188c-10.874,0-21.58-1.083-32-3.188L 224,348 L 288,348 z M 224,324l0-8 l 64,0 l0,8 L 224,324 z M 224,308l0-8 l 64,0 l0,8 L 224,308 z\n\t M 224,292l0-8 l 64,0 l0,8 L 224,292 z M 224,276l0-8 l 64,0 l0,8 L 224,276 z M 224,260l0-8 l 64,0 l0,8 L 224,260 z M 224,244l0-8 l 64,0 l0,8 L 224,244 z M 224,228l0-8 l 64,0 l0,8 L 224,228 z M 224,212l0-8 l 64,0 l0,8 \n\tL 224,212 z M 224,196l0-8 l 64,0 l0,8 L 224,196 z M 224,180l0-8 l 64,0 l0,8 L 224,180 z M 224,164l0-4 c0-1.355-0.094-2.688-0.258-4l 64.516,0 \n\tc-0.164,1.312-0.258,2.645-0.258,4l0,4 L 224,164 z M 290.335,148l-68.67,0 c0,0.001, 0.001,0.003, 0.001,0.004\n\tc-1.176-2.906-2.765-5.598-4.697-8.006c0,0.001, 0.001,0.001, 0.002,0.002l 78.057,0 C 293.099,142.407, 291.511,145.097, 290.335,148z\n\t M 289.636,149.901c-0.004,0.011-0.008,0.022-0.012,0.034C 289.628,149.924, 289.632,149.913, 289.636,149.901z M 222.376,149.937\n\tc-0.004-0.013-0.009-0.025-0.013-0.039C 222.367,149.911, 222.372,149.924, 222.376,149.937z M 207.493,132\n\tc 0.003,0.002, 0.006,0.004, 0.010,0.006C 202.909,129.457, 197.625,128, 192,128s-10.909,1.457-15.502,4.006\n\tc 0.003-0.002, 0.006-0.004, 0.010-0.006l-68.913,0 c 2.208-5.463, 4.718-10.802, 7.528-15.995c-1.423,2.629-2.772,5.294-4.041,7.995L 400.92,124 \n\tc 1.237,2.634, 2.396,5.303, 3.486,8l-68.913,0 c 0.004,0.002, 0.009,0.005, 0.013,0.007C 330.912,129.457, 325.627,128, 320,128\n\ts-10.912,1.457-15.506,4.007c 0.004-0.002, 0.009-0.005, 0.013-0.007L 207.493,132 z M 303.164,132.789c-0.014,0.008-0.027,0.018-0.041,0.026\n\tC 303.137,132.806, 303.15,132.797, 303.164,132.789z M 301.858,133.643c-0.017,0.011-0.032,0.023-0.048,0.034\n\tC 301.826,133.666, 301.842,133.654, 301.858,133.643z M 300.595,134.561c-0.014,0.011-0.027,0.021-0.041,0.032\n\tC 300.567,134.582, 300.581,134.571, 300.595,134.561z M 299.376,135.54c-0.007,0.006-0.014,0.012-0.021,0.019\n\tC 299.362,135.552, 299.369,135.546, 299.376,135.54z M 298.206,136.578c-0.001,0.001-0.002,0.001-0.003,0.002\n\tC 298.204,136.579, 298.205,136.579, 298.206,136.578z M 215.968,138.809C 215.968,138.809, 215.968,138.808, 215.968,138.809\n\tC 215.968,138.808, 215.968,138.809, 215.968,138.809z M 214.911,137.67c-0.001-0.001-0.003-0.003-0.004-0.004\n\tC 214.908,137.667, 214.909,137.668, 214.911,137.67z M 213.804,136.587c-0.004-0.004-0.009-0.008-0.013-0.012\n\tC 213.795,136.579, 213.799,136.583, 213.804,136.587z M 212.652,135.564c-0.010-0.009-0.020-0.018-0.030-0.026\n\tC 212.632,135.547, 212.642,135.556, 212.652,135.564z M 211.451,134.597c-0.016-0.012-0.032-0.025-0.048-0.038\n\tC 211.419,134.572, 211.435,134.585, 211.451,134.597z M 210.189,133.677c-0.016-0.011-0.032-0.023-0.048-0.034\n\tC 210.158,133.654, 210.173,133.666, 210.189,133.677z M 208.874,132.813c-0.013-0.008-0.025-0.016-0.038-0.024\n\tC 208.849,132.797, 208.861,132.805, 208.874,132.813z M 160.258,164L 98.431,164 c-0.231,1.318-0.447,2.64-0.646,3.966\n\tc 0.604-4.028, 1.362-8.019, 2.265-11.966l 60.208,0 c-0.164,1.312-0.258,2.645-0.258,4S 160.094,162.688, 160.258,164z M 102.104,148\n\tc-0.372,1.307-0.727,2.62-1.066,3.938c 1.387-5.403, 3.057-10.716, 4.999-15.925c-0.493,1.322-0.968,2.651-1.426,3.987l 62.417,0 \n\tc0-0.001, 0.001-0.001, 0.002-0.002c-1.932,2.408-3.521,5.101-4.697,8.006c0-0.001, 0.001-0.002, 0.001-0.004L 102.104,148 z M 161.637,149.898\n\tc-0.004,0.013-0.009,0.025-0.013,0.039C 161.628,149.924, 161.633,149.911, 161.637,149.898z M 100.059,155.962\n\tc 0.304-1.326, 0.625-2.646, 0.962-3.96C 100.684,153.316, 100.363,154.636, 100.059,155.962z M 175.164,132.789\n\tc-0.013,0.008-0.025,0.016-0.038,0.024C 175.139,132.805, 175.151,132.797, 175.164,132.789z M 173.858,133.643\n\tc-0.016,0.011-0.032,0.023-0.048,0.034C 173.827,133.666, 173.842,133.654, 173.858,133.643z M 172.597,134.56\n\tc-0.017,0.012-0.032,0.025-0.048,0.038C 172.565,134.585, 172.581,134.572, 172.597,134.56z M 171.378,135.538\n\tc-0.010,0.009-0.020,0.018-0.030,0.026C 171.358,135.556, 171.368,135.547, 171.378,135.538z M 170.209,136.575\n\tc-0.004,0.004-0.008,0.008-0.013,0.012C 170.201,136.583, 170.205,136.579, 170.209,136.575z M 169.093,137.666\n\tc-0.001,0.001-0.003,0.003-0.004,0.004C 169.091,137.668, 169.092,137.667, 169.093,137.666z M 168.033,138.808\n\tC 168.032,138.808, 168.032,138.809, 168.033,138.808C 168.032,138.809, 168.032,138.808, 168.033,138.808z M 106.060,135.951\n\tc 0.494-1.323, 1.004-2.639, 1.533-3.948C 107.064,133.312, 106.553,134.628, 106.060,135.951z M 350.376,170.065\n\tc-0.004,0.011-0.008,0.022-0.012,0.034C 350.368,170.087, 350.372,170.076, 350.376,170.065z M 350.364,149.901\n\tc 0.004,0.011, 0.008,0.022, 0.012,0.034C 350.372,149.924, 350.368,149.913, 350.364,149.901z M 349.665,172l 65.103,0 \n\tc-0.332-2.679-0.732-5.342-1.196-7.989c 0.924,5.267, 1.591,10.601, 1.988,15.989l-70.588,0 C 346.901,177.593, 348.489,174.903, 349.665,172\n\tz M 351.742,164c 0.164-1.312, 0.258-2.645, 0.258-4s-0.094-2.688-0.258-4l 60.208,0 c 0.605,2.648, 1.147,5.314, 1.619,8L 351.742,164 z\n\t M 349.665,148c-1.176-2.903-2.764-5.593-4.693-8l 62.418,0 c 0.904,2.642, 1.741,5.309, 2.507,8L 349.665,148 z M 409.897,148.004\n\tc 0.373,1.313, 0.731,2.632, 1.070,3.956C 410.628,150.636, 410.271,149.317, 409.897,148.004z M 410.977,151.993\n\tc 0.341,1.331, 0.667,2.666, 0.974,4.006C 411.643,154.658, 411.318,153.323, 410.977,151.993z M 404.41,132.010\n\tc 0.525,1.301, 1.033,2.609, 1.524,3.924C 405.443,134.619, 404.936,133.312, 404.41,132.010z M 405.972,136.034\n\tc 0.486,1.307, 0.956,2.619, 1.408,3.938C 406.928,138.653, 406.458,137.34, 405.972,136.034z M 341.797,136.58\n\tc-0.001-0.001-0.002-0.001-0.003-0.002C 341.795,136.579, 341.796,136.579, 341.797,136.58z M 340.646,135.559\n\tc-0.008-0.006-0.015-0.013-0.021-0.019C 340.631,135.546, 340.638,135.552, 340.646,135.559z M 339.446,134.593\n\tc-0.014-0.011-0.027-0.021-0.041-0.032C 339.419,134.571, 339.433,134.582, 339.446,134.593z M 338.189,133.677\n\tc-0.016-0.011-0.031-0.022-0.048-0.034C 338.158,133.654, 338.174,133.666, 338.189,133.677z M 336.877,132.814\n\tc-0.014-0.008-0.027-0.018-0.041-0.026C 336.85,132.797, 336.863,132.806, 336.877,132.814z M 320,284l 66.955,0 \n\tc-1.922,2.723-3.943,5.387-6.043,8L 320,292 L 320,284 z M 320,268l 76.875,0 c 1.423-2.629, 2.771-5.292, 4.041-7.993\n\tc-2.577,5.482-5.479,10.819-8.682,15.993L 320,276 L 320,268 z M 320,260l0-8 l 84.406,0 c-1.090,2.697-2.249,5.366-3.486,8L 320,260 z M 320,244l0-8 l 89.896,0 \n\tc-0.766,2.691-1.603,5.358-2.507,8L 320,244 z M 407.381,244.025c-0.453,1.321-0.923,2.636-1.411,3.944\n\tC 406.457,246.661, 406.928,245.347, 407.381,244.025z M 405.936,248.063c-0.492,1.317-1.001,2.628-1.527,3.932\n\tC 404.935,250.691, 405.443,249.381, 405.936,248.063z M 320,228l0-8 l 93.569,0 c-0.71,4.046-1.578,8.050-2.593,12.008\n\tc 0.342-1.331, 0.667-2.667, 0.974-4.008L 320,228 z M 410.969,232.038c-0.34,1.325-0.698,2.645-1.071,3.959\n\tC 410.271,234.683, 410.628,233.363, 410.969,232.038z M 320,212l0-8 l 95.56,0 c-0.397,5.388-1.064,10.722-1.988,15.989\n\tc 0.464-2.646, 0.864-5.31, 1.196-7.989L 320,212 z M 320,196l0-4 c 5.627,0, 10.912-1.457, 15.506-4.007c-0.004,0.002-0.009,0.005-0.013,0.007\n\tl 80.458,0 c-0.033-1.339-0.082-2.675-0.147-4.008C 415.935,186.65, 416,189.32, 416,192s-0.065,5.35-0.196,8.008\n\tc 0.065-1.333, 0.114-2.669, 0.147-4.008L 320,196 z M 415.798,200.118c-0.064,1.291-0.143,2.58-0.237,3.865\n\tC 415.655,202.697, 415.733,201.409, 415.798,200.118z M 341.797,183.42c-0.001,0.001-0.002,0.001-0.003,0.002\n\tC 341.795,183.421, 341.796,183.421, 341.797,183.42z M 340.646,184.441c-0.008,0.006-0.015,0.013-0.021,0.019\n\tC 340.631,184.454, 340.638,184.448, 340.646,184.441z M 339.446,185.407c-0.014,0.011-0.027,0.021-0.041,0.032\n\tC 339.419,185.429, 339.433,185.418, 339.446,185.407z M 338.189,186.323c-0.016,0.011-0.031,0.022-0.048,0.034\n\tC 338.158,186.346, 338.174,186.334, 338.189,186.323z M 336.877,187.186c-0.014,0.008-0.027,0.018-0.041,0.026\n\tC 336.85,187.203, 336.863,187.194, 336.877,187.186z M 415.561,180.018c 0.095,1.285, 0.173,2.574, 0.237,3.865\n\tC 415.733,182.591, 415.655,181.303, 415.561,180.018z M 392.222,107.98c-0.807-1.302-1.632-2.594-2.476-3.875\n\tC 390.592,105.386, 391.415,106.678, 392.222,107.98z M 346.479,60c-2.087-1.437-4.204-2.822-6.35-4.153\n\tc 7.441,4.617, 14.539,9.872, 21.225,15.738c-1.39-1.219-2.793-2.418-4.218-3.585L 154.863,68 c 3.453-2.827, 7.011-5.489, 10.657-8L 346.479,60 z\n\t M 165.524,59.998c 1.043-0.719, 2.094-1.424, 3.153-2.117C 167.619,58.574, 166.567,59.279, 165.524,59.998z M 168.681,57.879\n\tc 1.055-0.69, 2.117-1.367, 3.187-2.031C 170.798,56.512, 169.735,57.189, 168.681,57.879z M 171.901,55.828\n\tc 1.062-0.659, 2.13-1.305, 3.206-1.937C 174.032,54.523, 172.963,55.169, 171.901,55.828z M 175.158,53.861\n\tc 6.452-3.791, 13.144-7.115, 20.041-9.947c-0.071,0.029-0.143,0.056-0.213,0.085l 122.029,0 c 6.822,2.812, 13.443,6.11, 19.829,9.862\n\tc-1.078-0.634-2.164-1.255-3.256-1.862L 178.412,51.999 C 177.32,52.607, 176.236,53.228, 175.158,53.861z M 336.892,53.89\n\tc 1.078,0.633, 2.148,1.28, 3.212,1.94C 339.040,55.17, 337.97,54.523, 336.892,53.89z M 366.169,75.97c-1.318-1.253-2.66-2.474-4.014-3.676\n\tC 363.509,73.497, 364.851,74.717, 366.169,75.97z M 313.924,42.764c-0.599-0.232-1.202-0.453-1.804-0.678\n\tC 312.722,42.311, 313.325,42.532, 313.924,42.764z M 310.57,41.51c-0.627-0.227-1.258-0.445-1.888-0.665\n\tC 309.312,41.065, 309.943,41.283, 310.57,41.51z M 307.203,40.337c-0.652-0.219-1.306-0.434-1.961-0.645\n\tC 305.897,39.903, 306.551,40.118, 307.203,40.337z M 303.841,39.249c-0.684-0.213-1.368-0.424-2.056-0.628\n\tC 302.473,38.825, 303.157,39.036, 303.841,39.249z M 300.524,38.256c-0.735-0.212-1.47-0.424-2.208-0.625\n\tC 299.055,37.832, 299.789,38.044, 300.524,38.256z M 297.558,37.431c-1.89-0.504-3.789-0.979-5.7-1.415\n\tC 293.769,36.452, 295.668,36.927, 297.558,37.431z M 291.789,36l-71.578,0 c 11.607-2.639, 23.593-4, 35.789-4\n\tC 268.195,32, 280.182,33.361, 291.789,36z M 198.074,42.765c 0.604-0.234, 1.213-0.457, 1.82-0.684\n\tC 199.287,42.308, 198.678,42.531, 198.074,42.765z M 201.427,41.512c 0.63-0.229, 1.264-0.448, 1.897-0.668\n\tC 202.69,41.063, 202.057,41.284, 201.427,41.512z M 204.793,40.338c 0.655-0.22, 1.311-0.436, 1.969-0.647\n\tC 206.105,39.903, 205.448,40.118, 204.793,40.338z M 208.153,39.251c 0.687-0.214, 1.375-0.426, 2.064-0.631\n\tC 209.528,38.825, 208.84,39.037, 208.153,39.251z M 211.467,38.258c 0.739-0.213, 1.478-0.426, 2.22-0.628\n\tC 212.944,37.832, 212.206,38.045, 211.467,38.258z M 214.418,37.438c 1.907-0.51, 3.825-0.989, 5.753-1.428\n\tC 218.243,36.448, 216.326,36.928, 214.418,37.438z M 149.845,72.294c-1.364,1.212-2.716,2.442-4.045,3.706l 220.401,0 \n\tc 0.988,0.94, 1.968,1.894, 2.937,2.863c 1.681,1.68, 3.312,3.396, 4.908,5.137L 137.955,84 c-2.385,2.602-4.672,5.271-6.866,8l 249.822,0 \n\tc-2.19-2.726-4.476-5.392-6.856-7.99c 5.747,6.27, 10.942,12.92, 15.562,19.896c-0.867-1.314-1.753-2.617-2.663-3.906L 125.046,100 \n\tc-0.907,1.286-1.791,2.585-2.656,3.895c 5.903-8.913, 12.74-17.3, 20.472-25.032C 145.133,76.593, 147.466,74.409, 149.845,72.294z\n\t M 154.861,68.002c-1.423,1.165-2.825,2.364-4.213,3.582C 152.036,70.365, 153.438,69.167, 154.861,68.002z M 122.238,104.13\n\tc-0.841,1.28-1.666,2.57-2.471,3.87l 272.468,0 c 3.202,5.173, 6.104,10.508, 8.68,15.989c-1.269-2.699-2.617-5.362-4.039-7.989l-281.75,0 \n\tC 117.316,111.951, 119.69,107.991, 122.238,104.13z M 97.781,167.99c-0.199,1.326-0.381,2.656-0.547,3.991\n\tC 97.4,170.646, 97.583,169.316, 97.781,167.99z M 97.232,172l 65.103,0 c0-0.001-0.001-0.003-0.001-0.004\n\tc 1.176,2.906, 2.765,5.598, 4.697,8.006c0-0.001-0.001-0.001-0.002-0.002L 96.441,180 c-0.196,2.654-0.327,5.322-0.392,8l 80.458,0 \n\tc-0.003-0.002-0.006-0.004-0.010-0.006C 181.091,190.543, 186.375,192, 192,192l0,4 L 96.049,196 c 0.065,2.678, 0.196,5.346, 0.392,8L 192,204 l0,8 L 97.232,212 \n\tc 0.333,2.683, 0.734,5.35, 1.199,8L 192,220 l0,8 l-91.95,0 C 97.379,216.327, 96,204.27, 96,192C 96,185.26, 96.416,178.584, 97.232,172z\n\t M 161.624,170.063c 0.004,0.013, 0.009,0.025, 0.013,0.039C 161.633,170.089, 161.628,170.076, 161.624,170.063z M 168.032,181.191\n\tC 168.032,181.191, 168.032,181.192, 168.032,181.191C 168.032,181.192, 168.032,181.191, 168.032,181.191z M 169.089,182.33\n\tc 0.001,0.001, 0.003,0.003, 0.004,0.004C 169.092,182.333, 169.091,182.332, 169.089,182.33z M 170.196,183.413\n\tc 0.004,0.004, 0.009,0.008, 0.013,0.012C 170.205,183.421, 170.201,183.417, 170.196,183.413z M 171.348,184.436\n\tc 0.010,0.009, 0.020,0.018, 0.030,0.026C 171.368,184.453, 171.358,184.444, 171.348,184.436z M 172.549,185.403\n\tc 0.016,0.012, 0.032,0.025, 0.048,0.038C 172.581,185.428, 172.565,185.415, 172.549,185.403z M 173.811,186.323\n\tc 0.016,0.011, 0.032,0.023, 0.048,0.034C 173.842,186.346, 173.827,186.334, 173.811,186.323z M 175.126,187.187\n\tc 0.013,0.008, 0.025,0.016, 0.038,0.024C 175.151,187.203, 175.139,187.195, 175.126,187.187z M 192,236l0,8 l-87.389,0 \n\tc-0.905-2.642-1.742-5.309-2.507-8L 192,236 z M 102.101,235.99c-0.371-1.307-0.727-2.618-1.065-3.936\n\tC 101.375,233.371, 101.729,234.683, 102.101,235.99z M 101.022,232.002c-0.339-1.322-0.663-2.65-0.967-3.983\n\tC 100.36,229.352, 100.683,230.68, 101.022,232.002z M 106.059,248.047c 0.494,1.324, 1.005,2.642, 1.535,3.953L 192,252 l0,8 l-80.919,0 \n\tc 1.27,2.703, 2.621,5.369, 4.044,8L 192,268 l0,8 l-72.234,0 c 0.803,1.298, 1.626,2.585, 2.466,3.863\n\tC 115.634,269.861, 110.221,259.198, 106.059,248.047z M 104.612,244.003c 0.457,1.335, 0.933,2.664, 1.425,3.985\n\tC 105.544,246.667, 105.069,245.339, 104.612,244.003z M 192,284l0,8 l-60.912,0 c-3.091-3.847-5.994-7.812-8.696-11.892\n\tc 0.864,1.309, 1.747,2.607, 2.653,3.892L 192,284 z M 131.093,292.006c 2.192,2.728, 4.478,5.395, 6.861,7.994L 192,300 l0,8 l-46.199,0 \n\tc 1.406,1.337, 2.835,2.641, 4.281,3.919c-2.462-2.18-4.874-4.435-7.22-6.78C 138.672,300.948, 134.753,296.56, 131.093,292.006z\n\t M 150.393,312.195c 1.474,1.297, 2.967,2.566, 4.48,3.805L 192,316 l0,8 l-26.484,0 c 3.123,2.149, 6.312,4.182, 9.564,6.095\n\tC 166.369,324.973, 158.106,318.99, 150.393,312.195z M 192,332l0,6.729 c-5.782-2.523-11.413-5.397-16.872-8.604\n\tc 1.087,0.639, 2.181,1.264, 3.281,1.876L 192,332.001 z M 304,448l-96,0 c-8.8,0-16-7.2-16-16s 7.2-16, 16-16l 96,0 c 8.8,0, 16,7.2, 16,16S 312.8,448, 304,448\n\tz M 320,332l 13.589,0 c 1.1-0.611, 2.192-1.236, 3.278-1.874c-5.457,3.206-11.087,6.079-16.867,8.603L 320,332 z M 336.939,330.082\n\tc 3.244-1.909, 6.427-3.938, 9.543-6.082L 320,324 l0-8 l 37.126,0 C 350.725,321.238, 343.979,325.941, 336.939,330.082z M 357.126,316\n\tc 1.514-1.239, 3.008-2.509, 4.482-3.807C 360.135,313.492, 358.64,314.761, 357.126,316z M 361.915,311.921\n\tc 1.439-1.272, 2.862-2.57, 4.262-3.9C 364.777,309.351, 363.354,310.647, 361.915,311.921z M 366.199,308L 320,308 l0-8 l 54.047,0 \n\tc-1.597,1.741-3.229,3.458-4.909,5.139C 368.169,306.107, 367.188,307.060, 366.199,308z M 380.906,292.007\n\tc-2.19,2.726-4.474,5.391-6.854,7.988C 376.433,297.397, 378.716,294.732, 380.906,292.007z M 389.774,279.853\n\tc 0.837-1.272, 1.656-2.555, 2.456-3.847C 391.431,277.298, 390.613,278.581, 389.774,279.853z M 386.961,283.991\n\tc 0.903-1.28, 1.783-2.574, 2.644-3.878C 388.742,281.416, 387.864,282.711, 386.961,283.991z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lamp, idea, tip, light, bulb\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,192C 448,85.961, 362.039,0, 256,0C 149.961,0, 64,85.961, 64,192c0,71.066, 38.613,133.109, 96,166.308L 160,448 l 64,64l 64,0 l 64-64\n\tl0-89.692 C 409.388,325.109, 448,263.066, 448,192z M 304,448l-96,0 c-8.8,0-16-7.2-16-16s 7.2-16, 16-16l 96,0 c 8.8,0, 16,7.2, 16,16\n\tS 312.8,448, 304,448z M 320,338.728L 320,192 c 17.674,0, 32-14.327, 32-32s-14.326-32-32-32s-32,14.327-32,32l0,188.812 \n\tc-10.42,2.104-21.127,3.188-32,3.188c-10.874,0-21.58-1.083-32-3.188L 224,160 c0-17.673-14.327-32-32-32s-32,14.327-32,32\n\ts 14.327,32, 32,32l0,146.728 c-18.103-7.901-34.75-19.203-49.137-33.59C 112.643,274.917, 96,234.738, 96,192\n\tc0-42.737, 16.643-82.917, 46.863-113.137C 173.083,48.643, 213.263,32, 256,32s 82.917,16.643, 113.138,46.863\n\tC 399.357,109.083, 416,149.262, 416,192s-16.643,82.917-46.862,113.138C 354.75,319.524, 338.103,330.826, 320,338.728z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"skull, skeleton, death, danger\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 132.288,0, 32,93.125, 32,208c0,70.68, 37.974,143.113, 96,180.701l0,99.747 C 165.655,503.425, 209.37,512, 256,512\n\t\tc 46.631,0, 90.345-8.575, 128-23.552l0-99.747 C 442.026,351.113, 480,278.68, 480,208C 480,93.125, 379.712,0, 256,0z M 366.603,361.844\n\t\tL 352,371.303l0,17.398 l0,77.137 c-10.353,3.219-21.056,5.894-32,8.031L 320,384 l-32,0 l0,94.488 c-10.559,0.998-21.25,1.512-32,1.512\n\t\tc-10.75,0-21.441-0.514-32-1.512L 224,384 l-32,0 l0,89.869 c-10.944-2.138-21.647-4.812-32-8.031l0-77.137 l0-17.398 l-14.603-9.459\n\t\tc-23.808-15.422-44.167-38.263-58.875-66.053C 71.789,267.95, 64,237.593, 64,208c0-46.56, 19.668-90.466, 55.383-123.629\n\t\tc 17.626-16.367, 38.191-29.233, 61.125-38.24C 204.381,36.754, 229.78,32, 256,32s 51.619,4.754, 75.493,14.131\n\t\tc 22.933,9.007, 43.498,21.873, 61.124,38.24C 428.331,117.534, 448,161.44, 448,208c0,29.593-7.788,59.95-22.523,87.791\n\t\tC 410.769,323.581, 390.41,346.422, 366.603,361.844zM 139.864,137.409c-31.363,16.3-35.877,44.583-23.652,68.105s 41.561,35.377, 72.924,19.076\n\t\tc 31.363-16.3, 43.364-43.271, 31.652-74.105C 211.375,125.703, 171.227,121.108, 139.864,137.409zM 373.107,137.409c-31.363-16.301-71.512-11.706-80.925,13.076c-11.712,30.834, 0.289,57.805, 31.651,74.105\n\t\tc 31.363,16.301, 60.699,4.446, 72.925-19.076S 404.47,153.709, 373.107,137.409zM 297.167,294.917c0,13.852,0,25.083-41.279,25.083c-39.733,0-41.279-11.231-41.279-25.083s 18.481-25.083, 41.279-25.083\n\tC 278.686,269.834, 297.167,281.065, 297.167,294.917z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"skull, skeleton, death, danger\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 132.288,0, 32,93.125, 32,208c0,70.68, 37.974,143.113, 96,180.701l0,99.747 C 165.655,503.425, 209.37,512, 256,512\n\t\tc 46.631,0, 90.345-8.575, 128-23.552l0-99.747 C 442.026,351.113, 480,278.68, 480,208C 480,93.125, 379.712,0, 256,0z M 366.603,361.844\n\t\tL 352,371.303l0,17.398 l0,77.137 c-10.353,3.219-21.056,5.894-32,8.031L 320,384 l-32,0 l0,94.488 c-10.559,0.998-21.25,1.512-32,1.512\n\t\tc-10.75,0-21.441-0.514-32-1.512L 224,384 l-32,0 l0,89.869 c-10.944-2.138-21.647-4.812-32-8.031l0-77.137 l0-17.398 l-14.603-9.459\n\t\tc-23.808-15.422-44.167-38.263-58.875-66.053C 71.789,267.95, 64,237.593, 64,208c0-46.56, 19.668-90.466, 55.383-123.629\n\t\tc 17.626-16.367, 38.191-29.233, 61.125-38.24C 204.381,36.754, 229.78,32, 256,32s 51.619,4.754, 75.493,14.131\n\t\tc 22.933,9.007, 43.498,21.873, 61.124,38.24C 428.331,117.534, 448,161.44, 448,208c0,29.593-7.788,59.95-22.523,87.791\n\t\tC 410.769,323.581, 390.41,346.422, 366.603,361.844zM 139.864,137.409c-31.363,16.3-35.877,44.583-23.652,68.105s 41.561,35.377, 72.924,19.076\n\t\tc 31.363-16.3, 43.364-43.271, 31.652-74.105C 211.375,125.703, 171.227,121.108, 139.864,137.409zM 373.107,137.409c-31.363-16.301-71.512-11.706-80.925,13.076c-11.712,30.834, 0.289,57.805, 31.651,74.105\n\t\tc 31.363,16.301, 60.699,4.446, 72.925-19.076S 404.47,153.709, 373.107,137.409z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"skull, dangerous, death, skeleton\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,107.452,0,240c0,2.541, 0.047,5.070, 0.131,7.594C 107.971,273.672, 124.405,266.656, 128,375.083\n\t\tc 20.494,4.957, 105.853,12.714, 128,12.714c 22.146,0, 107.505-7.757, 128-12.714c 3.595-108.427, 20.027-101.411, 127.866-127.489\n\t\tC 511.95,245.073, 512,242.541, 512,240C 512,107.452, 397.385,0, 256,0z M 208,181.333C 208,204.8, 188.8,224, 165.332,224l-26.666,0 \n\t\tC 115.199,224, 96,204.8, 96,181.333l0-10.666 C 96,147.2, 115.199,128, 138.666,128l 26.666,0 C 188.8,128, 208,147.2, 208,170.667L 208,181.333 z\n\t\t M 276,328l-40,0 c-11,0-17.817-8.73-15.149-19.402l 10.299-41.193C 233.817,256.73, 245,248, 256,248s 22.183,8.73, 24.85,19.402\n\t\tl 10.3,41.193C 293.818,319.27, 287,328, 276,328z M 416,181.333C 416,204.8, 396.8,224, 373.331,224l-26.665,0 \n\t\tC 323.198,224, 304,204.8, 304,181.333l0-10.666 C 304,147.2, 323.198,128, 346.665,128l 26.666,0 C 396.8,128, 416,147.2, 416,170.667L 416,181.333 zM 224,427.020L 224,480 l 64,0 l0-52.98 c-13.891,1.045-25.595,1.694-32,1.694C 249.592,428.714, 237.889,428.063, 224,427.020zM 320,480l 64-12.947L 384,416 c-10.327,2.497-37.122,5.705-64,8.274L 320,480 zM 128,467.053L 192,480l0-55.726 c-26.879-2.569-53.674-5.777-64-8.274L 128,467.053 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"dumbbell, fitness, gym, exercise\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 72,128L 56,128 c-4.4,0-8,3.6-8,8l0,240 c0,4.4, 3.6,8, 8,8l 16,0 c 4.4,0, 8-3.6, 8-8L 80,136 C 80,131.6, 76.4,128, 72,128zM 24,192L 8,192 c-4.4,0-8,2.4-8,5.333l0,117.333 C0,317.601, 3.6,320, 8,320l 16,0 c 4.4,0, 8-2.399, 8-5.333L 32,197.333 \n\t\tC 32,194.4, 28.4,192, 24,192zM 400,96l-32,0 c-8.8,0-16,7.2-16,16l0,112 L 160,224 L 160,112 c0-8.8-7.2-16-16-16l-32,0 c-8.8,0-16,7.2-16,16l0,288 c0,8.8, 7.2,16, 16,16l 32,0 \n\t\tc 8.8,0, 16-7.2, 16-16L 160,288 l 192,0 l0,112 c0,8.8, 7.2,16, 16,16l 32,0 c 8.8,0, 16-7.2, 16-16L 416,112 C 416,103.2, 408.8,96, 400,96zM 456,128l-16,0 c-4.4,0-8,3.6-8,8l0,240 c0,4.4, 3.6,8, 8,8l 16,0 c 4.4,0, 8-3.6, 8-8L 464,136 C 464,131.6, 460.4,128, 456,128zM 504,192l-16,0 c-4.4,0-8,2.4-8,5.333l0,117.333 c0,2.934, 3.6,5.333, 8,5.333l 16,0 c 4.4,0, 8-2.399, 8-5.333L 512,197.333 \n\t\tC 512,194.4, 508.4,192, 504,192z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"magnet, attract, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 429.751,13.271L 427.454,0L 304,0 l 3.301,18.771c 11.173,63.55, 37.161,218.268, 37.161,282.229c0,49.075-39.684,89-88.462,89\n\tc-48.778,0-88.461-39.925-88.461-89c0-63.963, 25.988-218.68, 37.162-282.229L 208,0L 84.546,0 l-2.297,13.271\n\tC 68.711,91.482, 46,232.864, 46,301c0,116.346, 94.206,211, 210,211c 115.794,0, 210-94.654, 210-211\n\tC 466,232.867, 443.289,91.484, 429.751,13.271z M 434,301c0,2.346-0.060,4.677-0.148,7l-57.597,0 c 0.133-2.317, 0.207-4.65, 0.207-7\n\tc0-0.326-0.006-0.67-0.007-1l 57.539,0 C 433.995,300.33, 434,300.674, 434,301z M 191.935,468c-6.042-2.353-11.927-5.023-17.631-8l 163.393,0 \n\tc-5.704,2.977-11.589,5.647-17.631,8L 191.935,468 z M 293.454,476c-12.081,2.612-24.608,4-37.454,4s-25.373-1.388-37.454-4L 293.454,476 z\n\t M 160.51,452c-3.924-2.519-7.744-5.188-11.451-8l 213.883,0 c-3.708,2.812-7.526,5.481-11.451,8L 160.51,452 z M 139.243,436\n\tc-2.938-2.572-5.789-5.242-8.553-8l 250.621,0 c-2.765,2.758-5.616,5.428-8.554,8L 139.243,436 z M 78,301c0-0.326, 0.005-0.67, 0.006-1l 57.539,0 \n\tc-0.001,0.33-0.007,0.674-0.007,1c0,2.35, 0.074,4.683, 0.207,7L 78.149,308 C 78.060,305.677, 78,303.346, 78,301z M 154.256,128\n\tc-0.203,1.332-0.404,2.666-0.606,4L 95.489,132 c 0.198-1.334, 0.395-2.669, 0.594-4L 154.256,128 z M 152.447,140c-0.397,2.666-0.791,5.333-1.182,8\n\tL 93.156,148 c 0.382-2.668, 0.767-5.335, 1.156-8L 152.447,140 z M 150.102,156c-0.385,2.67-0.767,5.338-1.144,8L 90.902,164 \n\tc 0.368-2.664, 0.741-5.331, 1.117-8L 150.102,156 z M 147.836,172c-0.371,2.676-0.736,5.341-1.097,8L 88.741,180 c 0.351-2.66, 0.707-5.326, 1.069-8\n\tL 147.836,172 z M 145.665,188c-0.355,2.679-0.705,5.348-1.047,8L 86.682,196 c 0.333-2.655, 0.67-5.321, 1.015-8L 145.665,188 z M 143.603,204\n\tc-0.336,2.685-0.666,5.354-0.986,8L 84.743,212 c 0.309-2.647, 0.629-5.318, 0.955-8L 143.603,204 z M 141.667,220c-0.313,2.693-0.617,5.358-0.911,8\n\tL 82.949,228 c 0.283-2.642, 0.576-5.311, 0.878-8L 141.667,220 z M 139.886,236c-0.286,2.704-0.557,5.365-0.818,8L 81.329,244 \n\tc 0.25-2.635, 0.512-5.301, 0.786-8L 139.886,236 z M 138.299,252c-0.25,2.716-0.482,5.377-0.701,8L 79.929,260 c 0.208-2.623, 0.431-5.291, 0.668-8\n\tL 138.299,252 z M 136.968,268c-0.201,2.727-0.386,5.4-0.546,8L 78.82,276 c 0.151-2.604, 0.324-5.278, 0.514-8L 136.968,268 z M 135.986,284\n\tc-0.13,2.76-0.232,5.427-0.306,8L 78.129,292 c 0.068-2.583, 0.162-5.248, 0.282-8L 135.986,284 z M 136.464,316c 0.333,2.695, 0.76,5.362, 1.267,8\n\tL 79.465,324 c-0.339-2.648-0.612-5.317-0.835-8L 136.464,316 z M 139.553,332c 0.714,2.704, 1.515,5.373, 2.408,8L 82.268,340 \n\tc-0.587-2.646-1.12-5.312-1.589-8L 139.553,332 z M 144.998,348c 1.146,2.719, 2.387,5.387, 3.72,8l-62.11,0 c-0.85-2.641-1.64-5.308-2.369-8\n\tL 144.998,348 z M 153.192,364c 1.671,2.741, 3.451,5.408, 5.328,8L 92.617,372 c-1.137-2.635-2.211-5.302-3.224-8L 153.192,364 z M 164.83,380\n\tc 2.392,2.781, 4.91,5.448, 7.541,8l-71.882,0 c-1.459-2.627-2.854-5.294-4.184-8L 164.83,380 z M 181.477,396c 3.63,2.879, 7.43,5.549, 11.378,8\n\tl-82.352,0 c-1.836-2.615-3.6-5.284-5.297-8L 181.477,396 z M 208.074,412c 8.256,3.61, 16.989,6.32, 26.077,8L 123.155,420 \n\tc-2.307-2.602-4.543-5.267-6.697-8L 208.074,412 z M 277.849,420c 9.089-1.68, 17.821-4.39, 26.077-8l 91.616,0 c-2.154,2.733-4.391,5.398-6.697,8\n\tL 277.849,420 z M 319.146,404c 3.948-2.451, 7.749-5.121, 11.378-8l 76.271,0 c-1.697,2.716-3.461,5.385-5.297,8L 319.146,404 z M 339.631,388\n\tc 2.63-2.552, 5.148-5.219, 7.54-8l 68.524,0 c-1.329,2.706-2.725,5.373-4.184,8L 339.631,388 z M 353.48,372c 1.876-2.592, 3.656-5.259, 5.327-8\n\tl 63.799,0 c-1.012,2.698-2.087,5.365-3.224,8L 353.48,372 z M 376.015,284l 57.574,0 c 0.121,2.752, 0.214,5.417, 0.282,8L 376.32,292 \n\tC 376.247,289.426, 376.146,286.76, 376.015,284z M 375.579,276c-0.161-2.6-0.346-5.273-0.546-8l 57.633,0 c 0.189,2.722, 0.363,5.396, 0.514,8\n\tL 375.579,276 z M 374.402,260c-0.22-2.623-0.451-5.284-0.701-8l 57.701,0 c 0.237,2.709, 0.461,5.377, 0.669,8L 374.402,260 z M 372.933,244\n\tc-0.262-2.635-0.532-5.296-0.818-8l 57.771,0 c 0.273,2.699, 0.536,5.365, 0.786,8L 372.933,244 z M 371.244,228c-0.294-2.642-0.598-5.307-0.911-8\n\tl 57.839,0 c 0.303,2.689, 0.596,5.358, 0.879,8L 371.244,228 z M 369.384,212c-0.32-2.646-0.65-5.315-0.986-8l 57.905,0 \n\tc 0.325,2.682, 0.646,5.353, 0.955,8L 369.384,212 z M 367.382,196c-0.342-2.652-0.691-5.321-1.047-8l 57.968,0 c 0.346,2.679, 0.683,5.345, 1.015,8\n\tL 367.382,196 z M 365.262,180c-0.361-2.659-0.727-5.324-1.098-8l 58.026,0 c 0.361,2.674, 0.717,5.34, 1.068,8L 365.262,180 z M 363.043,164\n\tc-0.377-2.662-0.76-5.33-1.145-8l 58.082,0 c 0.376,2.669, 0.749,5.336, 1.117,8L 363.043,164 z M 360.735,148c-0.392-2.667-0.785-5.334-1.183-8\n\tl 58.135,0 c 0.389,2.665, 0.773,5.332, 1.156,8L 360.735,148 z M 358.351,132c-0.202-1.334-0.403-2.668-0.606-4l 58.173,0 \n\tc 0.198,1.331, 0.396,2.666, 0.594,4L 358.351,132 z M 363.283,356c 1.333-2.613, 2.574-5.281, 3.719-8l 60.76,0 c-0.729,2.692-1.52,5.359-2.369,8\n\tL 363.283,356 z M 370.040,340c 0.893-2.627, 1.694-5.296, 2.408-8l 58.873,0 c-0.469,2.688-1.002,5.354-1.589,8L 370.040,340 z M 374.27,324\n\tc 0.508-2.638, 0.934-5.305, 1.268-8l 57.832,0 c-0.222,2.683-0.495,5.352-0.834,8L 374.27,324 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"magnet, attract\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 429.751,13.271L 427.454,0L 304,0 l 3.301,18.771c 11.173,63.55, 37.161,218.268, 37.161,282.229c0,49.075-39.684,89-88.462,89\n\tc-48.778,0-88.461-39.925-88.461-89c0-63.963, 25.988-218.68, 37.162-282.229L 208,0L 84.546,0 l-2.297,13.271\n\tC 68.711,91.482, 46,232.864, 46,301c0,116.346, 94.206,211, 210,211c 115.794,0, 210-94.654, 210-211\n\tC 466,232.867, 443.289,91.484, 429.751,13.271z M 342.086,32L 400.5,32 c 4.718,27.656, 10.235,61.294, 15.417,96l-58.173,0 \n\tC 352.52,93.702, 346.945,60.168, 342.086,32z M 169.914,32c-4.859,28.168-10.433,61.702-15.658,96L 96.083,128 \n\tc 5.181-34.706, 10.699-68.344, 15.417-96L 169.914,32 z M 256,480c-98.149,0-178-80.299-178-179c0-33.735, 5.904-86.849, 13.457-141l 58.069,0 \n\tc-7.865,55.027-13.988,108.347-13.988,141c0,66.72, 54.039,121, 120.461,121c 66.423,0, 120.462-54.28, 120.462-121\n\tc0-32.652-6.123-85.973-13.988-141l 58.069,0 C 428.096,214.152, 434,267.266, 434,301C 434,399.701, 354.149,480, 256,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"magnet, attract\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 429.751,13.271L 427.454,0L 304,0 l 3.301,18.771c 11.173,63.55, 37.161,218.268, 37.161,282.229c0,49.075-39.684,89-88.462,89\n\tc-48.778,0-88.461-39.925-88.461-89c0-63.963, 25.988-218.68, 37.162-282.229L 208,0L 84.546,0 l-2.297,13.271\n\tC 68.711,91.482, 46,232.864, 46,301c0,116.346, 94.206,211, 210,211c 115.794,0, 210-94.654, 210-211\n\tC 466,232.867, 443.289,91.484, 429.751,13.271z M 256,480c-98.149,0-178-80.299-178-179c0-40.386, 8.46-108.538, 18.083-173l 58.173,0 \n\tc-9.997,65.617-18.717,134.028-18.717,173c0,66.72, 54.039,121, 120.461,121c 66.423,0, 120.462-54.28, 120.462-121\n\tc0-38.971-8.721-107.382-18.718-173l 58.173,0 C 425.54,192.463, 434,260.616, 434,301C 434,399.701, 354.149,480, 256,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"magnet, attract\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,0L 512,0L 512,128L 384,128zM 384,160l0,96 c0,70.692-57.308,128-128,128s-128-57.308-128-128l0-96 L0,160 l0,96 c0,141.385, 114.615,256, 256,256s 256-114.615, 256-256\n\t\tl0-96 L 384,160 zM0,0L 128,0L 128,128L0,128z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"atom, nuclear\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 415.962,103.352L 415.962,103.352L 415.962,103.352z M 417.025,256c 52.192-49.905, 77.541-98.79, 60.677-128\n\tc-9.63-16.678-31.68-24.648-61.74-24.648l0,24 c 21.072,0, 36.383,4.729, 40.956,12.648c 3.609,6.252, 1.6,15.865-0.723,22.829\n\tc-4.453,13.355-14.144,29.332-28.021,46.202c-8.424,10.239-18.135,20.561-28.937,30.821c-14.882-12.849-31.438-25.629-49.398-38.029\n\tc-1.757-21.74-4.545-42.458-8.229-61.759c 28.095-8.333, 53.593-12.709, 74.341-12.711l 0.011-24c-0.004,0-0.009,0-0.013,0\n\tc-22.587,0.002-49.698,4.516-79.437,13.202C 319.392,46.396, 289.729,0, 256,0c-33.729,0-63.392,46.396-80.514,116.551\n\tc-29.737-8.686-56.849-13.199-79.436-13.199c-30.060,0-52.124,7.971-61.753,24.648c-16.865,29.21, 8.483,78.095, 60.676,128\n\tc-52.193,49.904-77.541,98.79-60.676,128c 9.63,16.68, 31.685,24.647, 61.753,24.647c 22.586,0, 49.698-4.515, 79.436-13.2\n\tC 192.608,465.604, 222.27,512, 256,512c 33.729,0, 63.392-46.396, 80.514-116.551c 29.737,8.687, 56.85,13.199, 79.437,13.199\n\tc 30.060,0, 52.124-7.972, 61.753-24.648C 494.566,354.791, 469.219,305.904, 417.025,256z M 381.271,256\n\tc-9.31,7.938-19.227,15.792-29.679,23.494C 351.857,271.756, 352,263.923, 352,256c0-7.922-0.143-15.755-0.406-23.494\n\tC 362.046,240.208, 371.963,248.062, 381.271,256z M 318.646,364.434c-11.527-4.098-23.281-8.76-35.135-13.934\n\tc 6.813-3.631, 13.647-7.412, 20.487-11.361c 6.861-3.961, 13.573-8, 20.144-12.099C 322.701,339.923, 320.861,352.42, 318.646,364.434z\n\t M 292,318.354c-11.891,6.864-23.938,13.315-36,19.308c-12.062-5.991-24.11-12.442-36-19.308\n\tc-11.988-6.922-23.596-14.113-34.749-21.506C 184.426,283.492, 184,269.843, 184,256s 0.426-27.492, 1.251-40.847\n\tc 11.153-7.393, 22.761-14.585, 34.749-21.507c 11.89-6.864, 23.938-13.315, 36-19.307c 12.062,5.991, 24.109,12.442, 36,19.307\n\tc 11.988,6.921, 23.596,14.115, 34.749,21.507C 327.574,228.508, 328,242.157, 328,256s-0.426,27.492-1.251,40.848\n\tC 315.596,304.24, 303.988,311.434, 292,318.354z M 187.856,327.040c 6.57,4.099, 13.282,8.138, 20.144,12.099\n\tc 6.84,3.949, 13.673,7.73, 20.487,11.361c-11.852,5.174-23.607,9.835-35.133,13.932C 191.139,352.419, 189.298,339.922, 187.856,327.040z\n\t M 160.406,279.495c-10.452-7.703-20.37-15.558-29.679-23.495c 9.309-7.938, 19.227-15.792, 29.679-23.495\n\tC 160.142,240.245, 160,248.077, 160,256S 160.142,271.756, 160.406,279.495z M 193.354,147.568c 11.526,4.097, 23.281,8.759, 35.133,13.932\n\tc-6.813,3.631-13.647,7.412-20.487,11.361c-6.861,3.961-13.573,8.001-20.144,12.099\n\tC 189.298,172.078, 191.139,159.581, 193.354,147.568z M 304,172.861c-6.84-3.949-13.673-7.73-20.486-11.361\n\tc 11.853-5.173, 23.606-9.834, 35.134-13.931c 2.215,12.012, 4.055,24.508, 5.496,37.391C 317.573,180.862, 310.861,176.823, 304,172.861z\n\t M 210.59,83.408c 7.67-20.454, 16.661-36.834, 26.001-47.368C 241.46,30.547, 248.78,24, 256,24c 7.221,0, 14.539,6.547, 19.409,12.040\n\tc 9.34,10.534, 18.329,26.914, 26.001,47.368c 4.656,12.417, 8.739,25.989, 12.225,40.476c-18.568,6.463-37.916,14.412-57.634,23.766\n\tc-19.719-9.355-39.066-17.304-57.635-23.768C 201.851,109.396, 205.934,95.824, 210.59,83.408z M 83.825,209.031\n\tc-13.878-16.87-23.568-32.846-28.021-46.202c-2.322-6.963-4.332-16.577-0.722-22.829c 4.572-7.919, 19.888-12.647, 40.969-12.648l 0.002,0 \n\tc 20.746,0, 46.243,4.376, 74.337,12.709c-3.684,19.302-6.471,40.020-8.228,61.761c-17.96,12.399-34.518,25.18-49.4,38.029\n\tC 101.96,229.591, 92.249,219.27, 83.825,209.031z M 96.050,384.646c-21.081,0-36.396-4.728-40.968-12.646\n\tc-3.61-6.252-1.6-15.865, 0.722-22.829c 4.453-13.354, 14.143-29.331, 28.021-46.2c 8.424-10.24, 18.135-20.562, 28.937-30.822\n\tc 14.881,12.851, 31.439,25.631, 49.399,38.029c 1.757,21.741, 4.544,42.458, 8.228,61.762C 142.294,380.271, 116.797,384.646, 96.050,384.646\n\tz M 301.41,428.592c-7.671,20.455-16.661,36.834-26.001,47.369C 270.539,481.453, 263.221,488, 256,488\n\tc-7.22,0-14.54-6.547-19.409-12.039c-9.34-10.535-18.331-26.914-26.001-47.368c-4.656-12.417-8.739-25.989-12.225-40.476\n\tc 18.569-6.465, 37.916-14.412, 57.634-23.768c 19.72,9.355, 39.065,17.305, 57.635,23.769\n\tC 310.148,402.604, 306.066,416.176, 301.41,428.592z M 456.195,349.172c 2.321,6.963, 4.332,16.576, 0.723,22.828\n\tc-4.573,7.92-19.889,12.648-40.969,12.648c-20.748,0-46.245-4.377-74.339-12.709c 3.684-19.303, 6.472-40.021, 8.229-61.762\n\tc 17.96-12.4, 34.518-25.181, 49.398-38.029c 10.802,10.261, 20.513,20.582, 28.937,30.82C 442.053,319.84, 451.742,335.816, 456.195,349.172\n\tzM 216,256A40,40 4680 1 1 296,256A40,40 4680 1 1 216,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"atom, science\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 415.962,103.352L 415.962,103.352L 415.962,103.352 \tzM 417.025,256c 52.193-49.905, 77.541-98.79, 60.677-128c-9.63-16.678-31.68-24.648-61.74-24.648l0,24 \n\t\tc 21.072,0, 36.383,4.729, 40.956,12.648c 3.609,6.252, 1.6,15.865-0.723,22.829c-4.453,13.355-14.143,29.332-28.021,46.202\n\t\tc-8.424,10.239-18.135,20.561-28.937,30.821c-14.882-12.849-31.438-25.629-49.398-38.029c-1.757-21.74-4.545-42.458-8.229-61.759\n\t\tc 28.095-8.333, 53.593-12.709, 74.341-12.711l 0.011-24c-0.004,0-0.009,0-0.013,0c-22.587,0.002-49.698,4.516-79.436,13.202\n\t\tC 319.392,46.396, 289.729,0, 256,0s-63.392,46.396-80.514,116.551c-29.737-8.686-56.849-13.199-79.436-13.199\n\t\tc-30.060,0-52.124,7.971-61.753,24.648c-16.865,29.21, 8.483,78.095, 60.676,128c-52.193,49.905-77.541,98.79-60.676,128\n\t\tc 9.63,16.68, 31.685,24.647, 61.753,24.647c 22.586,0, 49.698-4.514, 79.436-13.2C 192.608,465.604, 222.27,512, 256,512\n\t\tc 33.729,0, 63.392-46.396, 80.514-116.551c 29.737,8.687, 56.849,13.199, 79.436,13.199c 30.060,0, 52.124-7.971, 61.753-24.648\n\t\tC 494.566,354.791, 469.219,305.905, 417.025,256z M 381.271,256c-9.309,7.938-19.226,15.792-29.678,23.494\n\t\tC 351.857,271.756, 352,263.923, 352,256c0-7.922-0.143-15.755-0.406-23.494C 362.046,240.208, 371.963,248.062, 381.271,256z\n\t\t M 318.646,364.433c-11.527-4.097-23.281-8.759-35.134-13.933c 6.813-3.631, 13.647-7.412, 20.487-11.361\n\t\tc 6.861-3.961, 13.573-8.001, 20.144-12.099C 322.701,339.923, 320.861,352.42, 318.646,364.433z M 292,318.354\n\t\tc-11.89,6.864-23.938,13.315-36,19.307c-12.062-5.991-24.11-12.442-36-19.307c-11.988-6.922-23.596-14.114-34.749-21.507\n\t\tC 184.426,283.492, 184,269.843, 184,256c0-13.843, 0.426-27.492, 1.251-40.847c 11.153-7.393, 22.761-14.585, 34.749-21.507\n\t\tc 11.89-6.864, 23.938-13.315, 36-19.307c 12.062,5.991, 24.11,12.442, 36,19.307c 11.988,6.921, 23.596,14.115, 34.749,21.507\n\t\tC 327.574,228.508, 328,242.157, 328,256s-0.426,27.492-1.251,40.848C 315.596,304.24, 303.988,311.433, 292,318.354z M 187.856,327.040\n\t\tc 6.57,4.098, 13.282,8.138, 20.144,12.099c 6.84,3.949, 13.673,7.73, 20.487,11.361c-11.852,5.174-23.607,9.835-35.133,13.932\n\t\tC 191.139,352.419, 189.298,339.922, 187.856,327.040z M 160.406,279.495c-10.452-7.703-20.37-15.558-29.679-23.495\n\t\tc 9.309-7.938, 19.227-15.792, 29.679-23.495C 160.142,240.245, 160,248.077, 160,256S 160.142,271.756, 160.406,279.495z M 193.354,147.568\n\t\tc 11.526,4.097, 23.281,8.759, 35.133,13.932c-6.813,3.631-13.647,7.412-20.487,11.361c-6.861,3.961-13.573,8.001-20.144,12.099\n\t\tC 189.298,172.078, 191.139,159.581, 193.354,147.568z M 304,172.861c-6.84-3.949-13.673-7.73-20.486-11.361\n\t\tc 11.852-5.173, 23.606-9.834, 35.133-13.931c 2.215,12.012, 4.055,24.508, 5.497,37.391C 317.573,180.862, 310.861,176.823, 304,172.861z\n\t\t M 210.59,83.408c 7.67-20.454, 16.661-36.834, 26.001-47.368C 241.46,30.547, 248.78,24, 256,24s 14.539,6.547, 19.409,12.040\n\t\tc 9.34,10.534, 18.33,26.914, 26.001,47.368c 4.656,12.417, 8.739,25.989, 12.225,40.476c-18.569,6.463-37.916,14.412-57.634,23.766\n\t\tc-19.719-9.355-39.066-17.304-57.635-23.768C 201.851,109.396, 205.934,95.824, 210.59,83.408z M 83.825,209.031\n\t\tc-13.878-16.87-23.568-32.846-28.021-46.202c-2.322-6.963-4.332-16.577-0.722-22.829c 4.572-7.919, 19.888-12.647, 40.969-12.648\n\t\tl 0.002,0 c 20.746,0, 46.243,4.376, 74.337,12.709c-3.684,19.302-6.471,40.020-8.228,61.761c-17.96,12.399-34.518,25.18-49.4,38.029\n\t\tC 101.96,229.591, 92.249,219.27, 83.825,209.031z M 96.050,384.647c-21.081,0-36.396-4.728-40.968-12.647\n\t\tc-3.61-6.252-1.6-15.865, 0.722-22.829c 4.453-13.355, 14.143-29.331, 28.021-46.201c 8.424-10.239, 18.135-20.561, 28.937-30.821\n\t\tc 14.881,12.85, 31.439,25.63, 49.399,38.029c 1.757,21.741, 4.544,42.458, 8.228,61.761C 142.294,380.271, 116.797,384.647, 96.050,384.647z\n\t\t M 301.41,428.592c-7.671,20.455-16.661,36.834-26.001,47.369C 270.539,481.453, 263.22,488, 256,488s-14.54-6.547-19.409-12.039\n\t\tc-9.34-10.535-18.331-26.914-26.001-47.368c-4.656-12.417-8.739-25.989-12.225-40.476c 18.569-6.464, 37.916-14.412, 57.634-23.767\n\t\tc 19.72,9.355, 39.066,17.305, 57.635,23.768C 310.148,402.604, 306.066,416.176, 301.41,428.592z M 456.195,349.172\n\t\tc 2.322,6.963, 4.332,16.576, 0.723,22.828c-4.573,7.92-19.889,12.648-40.969,12.648c-20.748,0-46.245-4.376-74.339-12.709\n\t\tc 3.684-19.303, 6.472-40.021, 8.229-61.762c 17.96-12.399, 34.517-25.18, 49.398-38.028c 10.802,10.26, 20.513,20.581, 28.937,30.82\n\t\tC 442.053,319.84, 451.742,335.816, 456.195,349.172z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lab, beta, test, experiment\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 478.145,402.241L 320,138.729L 320,32 l 16,0 c 8.8,0, 16-7.2, 16-16s-7.2-16-16-16L 176,0 c-8.8,0-16,7.2-16,16s 7.2,16, 16,16l 16,0 l0,106.729 \n\tL 33.856,402.241C-2.365,462.608, 25.6,512, 96,512l 320,0 C 486.4,512, 514.365,462.608, 478.145,402.241z M 120.519,320L 224,147.531L 224,32 l 64,0 \n\tl0,115.531 L 391.482,320L 120.519,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"fire, flame, hot, popular\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160.504,512 C 126.381,440.996 144.553,400.311 170.779,361.978 C 199.499,320 206.901,278.445 206.901,278.445 C 206.901,278.445 229.478,307.795 220.447,353.699 C 260.333,309.299 267.859,238.559 261.838,211.467 C 351.995,274.473 390.526,410.895 338.599,512 C 614.785,355.734 407.298,121.914 371.176,95.575 C 383.217,121.913 385.5,166.5 361.176,188.138 C 320,32 218.19,0 218.19,0 C 230.231,80.522 174.542,168.572 120.842,234.365 C 118.955,202.257 116.951,180.101 100.067,149.375 C 96.277,207.703 51.701,255.249 39.63,313.689 C 23.279,392.832 51.878,450.779 160.504,512 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"fire, flame, hot, popular\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 296.146,512c 49.775-35.92, 81.064-82.854, 84.13-141.004c-15.867,31.84-48.576,41.795-48.576,41.795\n\tc 17.523-45.572-5.688-121.602-86.047-152.889c 22.758,49.777, 6.575,80.855,0,91.73c-18.491-40.533-54.67-54.252-54.67-54.252\n\ts 35.471,146.695-49.155,79.137C 134.716,444.076, 229.545,512, 229.545,512c-56.091,0-217.339-25.322-192.802-225.137\n\tc 40.374,43.432, 66.602,45.572, 66.602,45.572c 14.024-59.596, 13.769-117.822-21.033-143.725c 39.608-8.463, 77.123,14.022, 87.64,45.571\n\tc 28.045-31.551, 16.68-113.053-18.167-140.073c 40.535,2.13, 69.060,34.021, 77.762,55.94c 24.441-39.584, 31.043-89.361,0-150.149\n\tc 73,52.968, 77.265,104.166, 84.13,171.183c 50.887-56.343, 92.888-52.766, 93.402-52.795c-47.646,57.6-39.822,140.802-19.91,172.8\n\tc 54.759-20.623, 71.11-58.31, 71.11-58.31S 560.686,512, 296.146,512z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bomb, explosive, destroy, detonate\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,32 L 512,45.254 L 493.255,64 L 512,82.746 L 512,96 L 480,96 L 480,128 L 466.745,128 L 448,109.255 L 429.254,128 L 415.999,128 L 415.999,96 L 383.999,96 L 383.999,95.624 C 377.494,95.395 371.286,94.093 365.348,91.671 C 350.538,85.631 340.384,74.143 330.566,63.034 C 320.893,52.090 311.756,41.753 298.94,37.481 C 282.77,32.090 260.329,27.943 245.27,38.797 C 238.147,43.931 232.748,52.448 229.169,64 L 232,64 C 245.2,64 256,74.8 256,88 L 256,101.577 C 347.732,123.247 416,205.647 416,304 C 416,418.875 322.875,512 208,512 C 93.125,512 0,418.875 0,304 C 0,205.647 68.268,123.247 160,101.577 L 160,88 C 160,74.8 170.8,64 184,64 L 196.080,64 C 201.292,40.842 211.481,23.706 226.56,12.837 C 247.174-2.022 275.704-3.996 309.060,7.123 C 330.037,14.115 343.057,28.846 354.543,41.842 C 369.721,59.016 378.284,68.705 399.795,61.050 L 384,45.254 L 384,32 L 416,32 L 416,0 L 429.255,0 L 448,18.745 L 466.745,0 L 480,0 L 480,32 L 512,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"balance, justice, legal\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 28.302,224L 80,141.283L 131.698,224L 160,224L 80,96L0,224 \tzM 128,320L 160,288L 160,256L0,256L0,288L 32,320 \tzM 348.302,224L 400,141.283L 451.698,224L 480,224L 400,96L 320,224 \tzM 320,288L 352,320L 448,320L 480,288L 480,256L 320,256 \tzM 256,416L 256,125.258 c 13.635-4.821, 24.438-15.623, 29.258-29.258L 400,96 l 16,0 L 416,64 L 285.258,64 C 278.667,45.359, 260.899,32, 240,32\n\t\tc-20.898,0-38.667,13.359-45.258,32L 64,64 l0,32 l 16,0 l 114.742,0 c 4.821,13.635, 15.623,24.437, 29.258,29.258L 224,416 L 64,416 l-32,64l 416,0 l-32-64L 256,416 z\n\t\t M 216.8,80c0-12.813, 10.387-23.2, 23.2-23.2c 12.813,0, 23.2,10.387, 23.2,23.2c0,12.813-10.388,23.2-23.2,23.2\n\t\tC 227.187,103.2, 216.8,92.813, 216.8,80z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"hammer, rules, justice, legal\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 505.087,457.875L 230.77,208.146l 12.767-12.799c 10.447-10.477, 16.094-24.015, 16.959-37.805\n\tc 0.501-0.225, 1.001-0.456, 1.479-0.721l 51.495-32.201c 6.967-8.196, 6.458-21.134-1.142-28.751L 222.768,6.065\n\tc-7.595-7.617-20.499-8.131-28.672-1.142l-32.118,51.634c-0.263,0.483-0.495,0.983-0.72,1.487\n\tc-13.751,0.868-27.25,6.528-37.699,17.003l-48.714,48.851c-10.449,10.478-16.092,24.013-16.959,37.802\n\tc-0.502,0.225-1.002,0.458-1.482,0.723L 4.911,194.626c-6.971,8.195-6.458,21.132, 1.138,28.748l 89.56,89.802\n\tc 7.597,7.619, 20.498,8.131, 28.675,1.143l 32.114-51.635c 0.264-0.479, 0.494-0.98, 0.721-1.483c 13.751-0.869, 27.252-6.525, 37.699-17.002\n\tl 14.146-14.186l 249.061,275.057c 7.218,7.972, 18.35,9.259, 24.737,2.856l 25.178-25.244\n\tC 514.322,476.278, 513.038,465.116, 505.087,457.875z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"dashboard, control panel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,448\n\t\tc-106.039,0-192-85.961-192-192c0-106.039, 85.961-192, 192-192c 106.039,0, 192,85.961, 192,192C 448,362.039, 362.039,448, 256,448zM 224,128A32,32 10800 1 1 288,128A32,32 10800 1 1 224,128zM 320,160A32,32 10800 1 1 384,160A32,32 10800 1 1 320,160zM 128,160A32,32 10800 1 1 192,160A32,32 10800 1 1 128,160zM 224,352L 224,384L 288,384L 288,352L 256,192 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"meter-fast, speed, performance, fast\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,384l 96,0 c0-141.386-114.615-256-256-256S0,242.614,0,384l 32,0 c0-106.039, 85.961-192, 192-192\n\tc 56.409,0, 107.136,24.326, 142.263,63.061l-100.217,80.174c-3.245-0.665-6.604-1.016-10.046-1.016\n\tc-27.493,0-49.78,22.289-49.78,49.781s 22.287,49.779, 49.78,49.779c 27.492,0, 49.778-22.287, 49.778-49.779\n\tc0-3.44-0.349-6.802-1.014-10.047l 78.166-97.707C 403.803,306.969, 416,344.059, 416,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"meter-medium, speed, performance, medium\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,128C 114.615,128,0,242.614,0,384l 32,0 c0-106.039, 85.961-192, 192-192c 7.167,0, 14.241,0.396, 21.205,1.16l-16.586,149.264\n\tc-13.494,8.904-22.399,24.199-22.399,41.576c0,27.492, 22.288,49.779, 49.78,49.779S 305.78,411.492, 305.78,384\n\tc0-17.377-8.904-32.672-22.398-41.576l-16.172-145.542C 352.44,216.483, 416,292.818, 416,384l 96,0 C 512,242.614, 397.385,128, 256,128z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"meter-slow, speed, performance, slow\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,128C 114.615,128,0,242.614,0,384l 32,0 c0-58.209, 25.903-110.363, 66.811-145.574l 108.423,135.527\n\tc-0.665,3.245-1.014,6.604-1.014,10.047c0,27.492, 22.287,49.779, 49.779,49.779c 27.493,0, 49.779-22.287, 49.779-49.779\n\ts-22.286-49.781-49.779-49.781c-3.441,0-6.802,0.351-10.046,1.016L 111.979,228.053c 31.528-22.688, 70.213-36.054, 112.021-36.054\n\tc 106.038,0, 192,85.96, 192,191.999l 96,0 C 512,242.614, 397.385,128, 256,128z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"meter2\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 151.418,417.076\n\t\tC 156.971,401.76, 160,385.232, 160,368c0-62.175-39.405-115.146-94.604-135.303c 5.105-42.462, 24.127-81.749, 54.839-112.462\n\t\tC 156.5,83.972, 204.715,64, 256,64s 99.5,19.972, 135.765,56.235c 30.714,30.713, 49.734,70, 54.841,112.462\n\t\tC 391.405,252.854, 352,305.825, 352,368c0,17.234, 3.030,33.76, 8.583,49.075C 329.73,437.196, 293.698,448, 256,448\n\t\tC 218.303,448, 182.271,437.196, 151.418,417.076zM 275.877,320.498 C 282.816,322.245 288,328.538 288,336 L 288,368 C 288,376.8 280.8,384 272,384 L 240,384 C 231.2,384 224,376.8 224,368 L 224,336 C 224,328.538 229.184,322.245 236.123,320.498 L 248,96 L 264,96 L 275.877,320.498 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"meter\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,32 C 397.385,32 512,146.615 512,288 C 512,384.396 458.712,468.333 379.996,512 L 132.004,512 C 53.288,468.333 0,384.396 0,288 C 0,146.615 114.615,32 256,32 Z M 400.957,432.957 C 439.676,394.237 461,342.758 461,288 L 416,288 L 416,256 L 458.519,256 C 455.012,233.501 447.824,211.927 437.237,192 L 384,192 L 384,160 L 416.142,160 C 411.423,154.119 406.366,148.452 400.957,143.043 C 377.846,119.933 350.187,103.024 320,93.144 L 320,128 L 288,128 L 288,85.48 C 277.509,83.846 266.82,83 256,83 C 245.18,83 234.491,83.845 224,85.48 L 224,128 L 192,128 L 192,93.144 C 161.814,103.024 134.154,119.932 111.043,143.043 C 105.634,148.452 100.577,154.119 95.858,160 L 128,160 L 128,192 L 74.762,192 C 64.175,211.927 56.986,233.501 53.48,256 L 96,256 L 96,288 L 51,288 C 51,342.758 72.324,394.237 111.043,432.957 C 116.398,438.312 122.005,443.321 127.823,448 L 224,448 L 242.286,192 L 269.714,192 L 288,448 L 384.177,448 C 389.995,443.321 395.603,438.311 400.957,432.957 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"rocket, speed, jet, spaceship, fast\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,32L 192,192L 96,192 L0,320c0,0, 101.708-28.326, 161.033-15.042L0,512l 210.951-164.072C 240.37,415.255, 192,512, 192,512l 128-96\n\tl0-96 l 160-160L 512,0L 352,32z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"flower, nature, plant\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 505.647,188.864c-26.708-82.185-107.774-90.487-170.346-28.040c 40.062-78.801, 7.105-153.337-79.305-153.337\n\ts-119.357,74.535-79.31,153.333C 114.121,98.378, 33.055,106.684, 6.354,188.864c-26.701,82.183, 33.998,136.552, 121.318,122.811\n\tC 48.953,351.884, 31.8,431.549, 101.71,482.341c 69.901,50.79, 140.368,9.859, 154.285-77.433\n\tc 13.917,87.292, 84.384,128.225, 154.293,77.433c 69.903-50.792, 52.751-130.456-25.969-170.666\n\tC 471.641,325.417, 532.349,271.047, 505.647,188.864z M 255.996,342.951c-40.876,0-74.006-33.135-74.006-74.010\n\tc0-40.877, 33.13-74.011, 74.006-74.011c 40.875,0, 74.015,33.135, 74.015,74.011C 330.011,309.816, 296.871,342.951, 255.996,342.951z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"steps, shoes, footprint\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 401.006,116.918c 61.533,44.385, 67.586,183.594, 79.691,225.961l-114.557,45.395\n\t\tc-11.668-76.665-110.396-134.165-114.432-218.9C 247.674,84.638, 339.471,72.533, 401.006,116.918zM 470.609,506.298c-91.45,33.253-96.841-89.779-96.841-89.779l 119.033-48.42\n\t\tC 492.802,368.099, 548.283,478.053, 470.609,506.298zM 1.074,95.524C 13.2,20.628, 86.67-35.723, 143.735,27.047c 57.061,62.77, 27.905,173.24, 73.867,235.695l-113.099,48.91\n\t\tC 83.1,273.135-11.054,170.42, 1.074,95.524zM 227.187,420.078c-74.894,34.951-113.415-82.033-113.415-82.033l 118.411-49.934\n\t\tC 232.183,288.111, 315.365,378.924, 227.187,420.078z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paw, animal, pet, footprint\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 267.169,275.999c-62.664,0-122.669,28.036-161.386,140.869C 67.066,529.701, 152.499,520.707, 206.42,497.39\n\tc 52.206-22.573, 72.079-26.017, 134.958,3.874c 59.195,28.141, 109.789-1.229, 88.681-62.868\n\tC 408.951,376.757, 337.833,275.999, 267.169,275.999z M 148.636,21.786c-35.721,8.537-54.605,57.079-42.18,108.42\n\tc 12.425,51.341, 51.455,86.041, 87.176,77.503c 0.165-0.040, 0.33-0.080, 0.494-0.121c 35.721-8.537, 54.605-57.079, 42.18-108.42\n\tc-5.349-22.1-15.626-41.116-28.448-54.927c-16.965-18.275-38.383-27.438-58.728-22.576C 148.965,21.705, 148.8,21.745, 148.636,21.786z\n\t M 355.568,19.996c-35.95-7.521-73.771,28.318-84.474,80.048c-6.152,29.733-2.007,58.244, 9.457,78.543\n\tc 8.481,15.019, 20.969,25.542, 36.256,28.741c 0.129,0.027, 0.258,0.053, 0.388,0.080c 35.949,7.521, 73.77-28.318, 84.473-80.048\n\tc 10.704-51.73-9.763-99.763-45.713-107.284C 355.826,20.048, 355.697,20.022, 355.568,19.996z M 10.295,286.861\n\tc 19.751,45.678, 61.375,71.645, 92.969,57.996c 18.079-7.81, 28.957-26.896, 31.254-50.356c 1.718-17.539-1.36-37.521-9.81-57.063\n\tc-0.011-0.026-0.022-0.052-0.034-0.078c-19.751-45.678-61.375-71.645-92.969-57.997C 0.111,193.011-9.49,241.104, 10.261,286.783\n\tC 10.272,286.809, 10.284,286.835, 10.295,286.861z M 408.774,336.787c 17.982,7.893, 39.269,2.891, 57.926-11.336\n\tc 14.041-10.705, 26.594-26.635, 35.13-46.226c 19.879-45.623, 10.446-93.821-21.069-107.654c-0.136-0.060-0.272-0.119-0.41-0.177\n\tc-31.515-13.833-73.177,11.938-93.056,57.562c-19.879,45.623-10.446,93.822, 21.069,107.654\n\tC 408.5,336.67, 408.637,336.729, 408.774,336.787z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tree, nature, green\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,42.521L 353.691,128l-73.145,0 l 64.095,56.083L 390.262,224l-24.548,0 l-85.167,0 l 64.095,56.083L 390.262,320L 317.12,320 \n\t\tl 64.094,56.082L 426.834,416l-101.44,0 l-35.88,0 l 4.088,35.646c 1.156,10.074, 2.31,19.565, 3.792,28.354l-82.788,0 \n\t\tc 1.482-8.788, 2.637-18.279, 3.792-28.354L 222.486,416l-35.88,0 L 85.167,416 l 45.62-39.918L 194.881,320l-73.143,0 l 45.62-39.918L 231.452,224\n\t\tl-85.167,0 l-24.548,0 l 45.62-39.917L 231.452,128l-73.143,0 L 256,42.521 M 256,0L 73.143,160l 73.143,0 L 36.571,256l 109.714,0 L 36.571,352l 73.143,0 \n\t\tL0,448l 186.606,0 c-4.043,35.249-8.033,64-26.606,64c 28.735,0, 163.265,0, 192,0c-18.574,0-22.563-28.751-26.606-64L 512,448 l-109.714-96\n\t\tl 73.143,0 l-109.715-96l 109.715,0 l-109.715-96l 73.144,0 L 256,0L 256,0z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tree, nature, green\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,416l 192,0 l-96-128l 64,0 l-96-96l 64,0 l-96-96l 64,0 L 256,0L 128,96l 64,0 l-96,96l 64,0 l-96,96l 64,0 L 32,416l 192,0 c0,32,0,96-32,96l 128,0 \n\tC 288,512, 288,448, 288,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"apple-fruit, fruit, food\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,158.653c-42.276-43.218-224-71.030-224,134.179c0,126.782, 160.518,267.145, 223.965,203.193l 0.070,0 \n\t\tC 319.483,559.977, 480,419.614, 480,292.832C 480,87.624, 298.276,115.435, 256,158.653z M 416.552,341.25\n\t\tc-12.045,46.402-51.907,89.539-98.744,120.021c 48.953-58.283, 79.127-156.949, 49.948-233.464\n\t\tc-8.688-22.783-18.648-42.083-29.535-58.319C 395.741,188.772, 443.145,238.795, 416.552,341.25zM 240.162,102.028c 6.817-1.627, 13.289-3.756, 19.451-6.256C 257.372,106.106, 256,116.995, 256,128l 10.67,0 \n\t\tc 9.286-43.374, 44.19-94, 90.727-94c0-23.833-16.166-34-34.355-34c-17.31,8.583-32.418,23.974-44.621,45.713\n\t\tc-6.589,11.738-13.463,27.834-17.835,45.851c-0.872-5.087-2.174-10.19-3.983-15.276C 236.858,20.757, 168.043-11.655, 102.9,3.894\n\t\tc-7.376,1.761-14.368,4.085-20.977,6.861c 0.827,6.278, 2.301,12.591, 4.537,18.878C 106.204,85.165, 175.019,117.577, 240.162,102.028z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"leaf, nature, green\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 357.722,57.524c 16.267,26.877, 33.118,58.46, 46.958,94.158c 27.229,70.232, 33.754,134.454, 19.393,190.877\n\t\tc-7.805,30.667-23.158,55.555-44.399,71.973c-19.013,14.696-42.097,22.464-66.758,22.464c-34.216,0-66.683-15.044-89.079-41.274\n\t\tl-17.479-20.473l-19.723,11.68c-0.414,0.025-0.921,0.043-1.525,0.043c-4.953,0-19.333-1.277-45.82-13.104\n\t\tc-24.112-10.768-41.896-34.861-47.57-64.45c-3.432-17.895-2.157-37.114, 3.688-55.583c 6.773-21.403, 19.392-41.691, 37.505-60.301\n\t\tc 37.296-38.319, 68.56-47.973, 101.659-58.194c 23.814-7.354, 48.439-14.958, 74.26-32.279\n\t\tC 326.399,91.273, 342.422,76.402, 357.722,57.524 M 358.774,0c-84.382,139.493-151.15,70.891-248.795,171.215\n\t\tc-86.168,88.533-54.834,200.125, 16.262,231.872c 28.755,12.84, 47.531,15.885, 58.867,15.885c 10.218,0, 14.392-2.472, 14.392-2.472\n\t\tc 29.521,34.577, 71.58,52.496, 113.415,52.496c 61.097,0, 121.721-38.207, 142.169-118.543C 492.533,203.316, 394.89,53.505, 358.774,0\n\t\tL 358.774,0zM 48.506,483.121C 48.564,484.574, 50.217,512, 86.189,512C 132.597,512, 288,384, 352,160C 281.089,336, 81.5,477.5, 48.506,483.121z\n\t\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"leaf, nature, green\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 358.774,0c-84.382,139.493-151.15,70.891-248.795,171.215c-86.168,88.533-56.291,195.153, 16.262,231.872\n\t\tc 71.615-36.594, 144.884-118.411, 199.225-236.862c0,0, 48.833,149.572-100.745,293.687c 72.634,85.074, 195.914,25.886, 230.363-109.459\n\t\tC 492.533,203.316, 394.89,53.505, 358.774,0zM 48.506,483.121C 48.564,484.574, 50.217,512, 86.189,512c 26.172,0, 158.916-72.339, 227.133-260.102\n\t\tC 210.103,434.505, 60.262,479.817, 48.506,483.121z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cup, coffee, break, drink, beverage\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 432,256l-16.104,0 c 0.062-2.658, 0.104-5.323, 0.104-8c0-1.927-0.026-3.846-0.062-5.762c 0.037-0.744, 0.062-1.49, 0.062-2.238\n\tc0-53.020-93.125-96-208-96S0,186.98,0,240c0,0.749, 0.024,1.494, 0.062,2.238C 0.026,244.154,0,246.073,0,248\n\tc0,145.803, 93.125,264, 208,264c 64.591,0, 122.305-37.368, 160.455-96L 432,416 c 44.183,0, 80-35.817, 80-80S 476.183,256, 432,256z M 208,288\n\tc-79.529,0-144-21.49-144-48s 64.471-48, 144-48c 79.529,0, 144,21.49, 144,48S 287.529,288, 208,288z M 432,384l-45.697,0 \n\tc 13.696-28.864, 23.17-61.321, 27.323-96L 432,288 c 23.159,0, 42,24.841, 42,48S 455.159,384, 432,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cup, coffee, break, drink, hot\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 432,256l-16.104,0 c 0.062-2.658, 0.104-5.323, 0.104-8c0-1.927-0.026-3.846-0.062-5.762c 0.037-0.744, 0.062-1.49, 0.062-2.238\n\tc0-41.61-57.363-77.033-137.579-90.353c-2.896-5.198-6.102-10.012-9.108-14.522C 262.169,124.41, 256,115.156, 256,105\n\tc0-12.191, 9.189-27.562, 27.313-45.687c 6.249-6.248, 6.249-16.379,0-22.627c-6.248-6.249-16.379-6.249-22.627,0\n\tc-51.436,51.435-38.372,84.139-23.169,108.28C 227.874,144.334, 218.022,144, 208,144c-9.622,0-19.086,0.309-28.361,0.892\n\tc-2.092-3.417-4.257-6.664-6.326-9.767C 166.169,124.41, 160,115.156, 160,105c0-12.191, 9.189-27.562, 27.313-45.687\n\tc 6.249-6.248, 6.249-16.379,0-22.627c-6.248-6.249-16.379-6.249-22.627,0c-54.103,54.102-36.845,87.48-20.796,111.968\n\tC 60.39,161.129,0,197.307,0,240c0,0.749, 0.024,1.494, 0.062,2.238C 0.026,244.154,0,246.073,0,248c0,145.803, 93.125,264, 208,264\n\tc 64.591,0, 122.305-37.368, 160.455-96L 432,416 c 44.183,0, 80-35.817, 80-80S 476.183,256, 432,256z M 208,288c-79.529,0-144-21.49-144-48\n\tc0-20.577, 38.848-38.127, 93.427-44.953c-3.882,9.791-12.15,21.049-24.74,33.64c-6.249,6.248-6.249,16.379,0,22.627\n\tC 135.811,254.438, 139.905,256, 144,256s 8.189-1.562, 11.313-4.687c 23.148-23.148, 33.229-42.501, 35.935-58.988\n\tC 196.745,192.113, 202.333,192, 208,192c 15.954,0, 31.299,0.867, 45.642,2.463c-3.779,9.926-12.112,21.379-24.956,34.223\n\tc-6.249,6.248-6.249,16.379,0,22.627C 231.811,254.438, 235.905,256, 240,256s 8.189-1.562, 11.313-4.687\n\tc 19.844-19.844, 30.083-36.898, 34.307-51.75C 325.544,208.096, 352,223.018, 352,240C 352,266.51, 287.529,288, 208,288z M 432,384l-45.697,0 \n\tc 13.696-28.864, 23.17-61.321, 27.323-96L 432,288 c 23.159,0, 42,24.841, 42,48S 455.159,384, 432,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"hamburger, food, launch\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,480c 141.385,0, 256-42.98, 256-96L0,384 C0,437.020, 114.615,480, 256,480zM 464,192L 48,192 c-26.4,0-48,21.6-48,48c0,26.4, 21.6,48, 48,48l 416,0 c 26.4,0, 48-21.6, 48-48C 512,213.6, 490.4,192, 464,192zM 256,32C 114.615,32,0,84.98,0,138l0,22 l 512,0 l0-22 C 512,84.98, 397.385,32, 256,32z M 80,128c-8.836,0-16-7.164-16-16\n\t\ts 7.164-16, 16-16s 16,7.164, 16,16S 88.836,128, 80,128z M 144,96c-8.836,0-16-7.164-16-16s 7.164-16, 16-16s 16,7.164, 16,16\n\t\tS 152.836,96, 144,96z M 208,128c-8.836,0-16-7.164-16-16s 7.164-16, 16-16s 16,7.164, 16,16S 216.836,128, 208,128z M 304,128\n\t\tc-8.837,0-16-7.164-16-16s 7.163-16, 16-16s 16,7.164, 16,16S 312.837,128, 304,128z M 368,96c-8.836,0-16-7.164-16-16s 7.164-16, 16-16\n\t\ts 16,7.164, 16,16S 376.836,96, 368,96z M 432,128c-8.836,0-16-7.164-16-16s 7.164-16, 16-16s 16,7.164, 16,16S 440.836,128, 432,128zM0,320L 512,320L 512,352L0,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"food, spoon, fork, dinner, lunch, restaurant\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 112,0C 58.98,0, 16,50.144, 16,112c0,52.962, 31.511,97.333, 73.853,108.999L 73.959,480.061C 72.882,497.627, 86.4,512, 104,512\n\t\tl 16,0 c 17.6,0, 31.118-14.373, 30.041-31.939l-15.894-259.062C 176.489,209.333, 208,164.962, 208,112C 208,50.144, 165.020,0, 112,0zM 434.667,0L 408,160l-20,0 L 374.667,0l-13.334,0 L 348,160l-20,0 L 301.333,0L 288,0 l0,208 c0,8.836, 7.163,16, 16,16l 41.669,0 l-15.71,256.061\n\t\tC 328.882,497.627, 342.4,512, 360,512l 16,0 c 17.6,0, 31.118-14.373, 30.041-31.939L 390.331,224L 432,224 c 8.837,0, 16-7.164, 16-16L 448,0 L 434.667,0 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"food, knife, fork, dinner, lunch, restaurant\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 432,0c-44.186,0-80,35.816-80,80l0,240 l 64,0 l0,192 l 96,0 L 512,80 C 512,35.816, 476.183,0, 432,0zM 208,0c-8.838,0-16,7.164-16,16l0,112 c0,4.418-7.164,8-16,8c-8.838,0-16-3.582-16-8L 160,16 c0-8.836-7.164-16-16-16\n\t\tc-8.837,0-16,7.164-16,16l0,112 c0,4.418-7.164,8-16,8c-8.837,0-16-3.582-16-8L 96,16 c0-8.836-7.164-16-16-16c-8.837,0-16,7.164-16,16l0,112 \n\t\tc0,4.418-7.164,8-16,8s-16-3.582-16-8L 32,16 c0-8.836-7.164-16-16-16S0,7.164,0,16l0,112 l0,32 c0,14.159, 12.529,22.055, 26.502,32\n\t\tC 44.107,204.532, 64,220.318, 64,256l0,256 l 96,0 L 160,256 c0-35.682, 19.893-51.468, 37.496-64C 211.469,182.055, 224,174.159, 224,160l0-32 L 224,16 \n\t\tC 224,7.164, 216.837,0, 208,0z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mug, glass, beverage\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,160l-32,0 l0-48 c0-44.183-85.961-80-192-80C 85.961,32,0,67.817,0,112l0,288 c0,44.183, 85.961,80, 192,80\n\tc 106.039,0, 192-35.817, 192-80l0-48 l 32,0 c 52.8,0, 96-43.2, 96-96S 468.8,160, 416,160z M 88.028,94.801C 116.999,85.256, 153.923,80, 192,80\n\ts 75.002,5.256, 103.972,14.801c 18.497,6.094, 29.704,12.623, 35.705,17.199c-6.001,4.576-17.208,11.104-35.705,17.199\n\tC 267.002,138.744, 230.077,144, 192,144s-75.001-5.256-103.972-14.801C 69.531,123.104, 58.324,116.576, 52.323,112\n\tC 58.324,107.424, 69.531,100.896, 88.028,94.801z M 452.182,284.182C 447.768,288.596, 438.237,296, 424,296l-40,0 l0-80 l 40,0 \n\tc 14.237,0, 23.768,7.405, 28.182,11.819S 464,241.763, 464,256S 456.596,279.768, 452.182,284.182z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bottle, drink, beverage\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,160L 288,32 l 8,0 c 4.4,0, 8-3.6, 8-8L 304,8 c0-4.4-3.6-8-8-8l-80,0 c-4.4,0-8,3.6-8,8l0,16 c0,4.4, 3.6,8, 8,8l 8,0 l0,128 c0,50.832-64,64-64,112.269\n\tL 160,496 c0,8.837, 7.164,16, 16,16l 160,0 c 8.836,0, 16-7.163, 16-16L 352,272.269 C 352,224, 288,210.832, 288,160z M 320,471.849\n\tc-16.984,5.068-39.411,8.151-64,8.151c-24.589,0-47.015-3.083-64-8.151l0-160 c 16.985,5.068, 39.411,8.151, 64,8.151\n\tc 24.589,0, 47.016-3.083, 64-8.151L 320,471.849 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bottle, drink, beverage\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,160L 288,32 l 8,0 c 4.4,0, 8-3.6, 8-8L 304,8 c0-4.4-3.6-8-8-8l-80,0 c-4.4,0-8,3.6-8,8l0,16 c0,4.4, 3.6,8, 8,8l 8,0 l0,128 c0,50.832-64,64-64,112.269\n\tL 160,496 c0,8.837, 7.164,16, 16,16l 160,0 c 8.836,0, 16-7.163, 16-16L 352,272.269 C 352,224, 288,210.832, 288,160z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"glass, drink, beverage\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 304,192 C 288,208 288,208 288,224 L 288,448 L 352,448 C 369.673,448 384,462.327 384,480 L 128,480 C 128,462.327 142.327,448 160,448 L 224,448 L 224,224 C 224,208 224,208 208,192 L 70.627,54.627 C 58.182,42.182 62.4,32 80,32 L 432,32 C 449.6,32 453.817,42.182 441.373,54.627 L 304.005,191.995 C 304.003,191.997 304.002,191.999 304,192 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"glass, drink, beverage\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,160 C 384,261.766 288,288 288,384 L 288,480 L 336,480 C 362.51,480 384,494.327 384,512 L 128,512 C 128,494.327 149.49,480 176,480 L 224,480 L 224,384 C 224,288 128,261.766 128,160 C 128,122.658 135.263,34.781 144.138,0 L 367.861,0 C 376.737,34.781 384,122.658 384,160 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"diamond, gem, jewelry, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,64L 128,64 L0,192l 256,288l 256-288L 384,64z M 256,389.333L 256,388 l-1.185,0 l-7.111-8L 256,380 l0-8 l-15.407,0 l-7.111-8L 256,364 l0-8 l-29.629,0 \n\tl-7.111-8L 256,348 l0-8 l-43.852,0 l-7.111-8L 256,332 l0-8 l-58.074,0 l-7.111-8L 256,316 l0-8 l-72.296,0 l-7.111-8L 256,300 l0-8 l-86.519,0 l-7.111-8L 256,284 l0-8 L 155.259,276 \n\tl-7.111-8L 256,268 l0-8 L 141.037,260 l-7.111-8L 256,252 l0-8 L 126.814,244 l-7.111-8L 256,236 l0-8 L 112.592,228 l-7.111-8L 256,220 l0-8 L 98.37,212 l-7.111-8L 256,204 l0-8 L 84.147,196 \n\tl-3.672-4.131l 69.536-69.536L 256,122.333 L 256,124 l 107.657,0 l 8,8L 256,132 l0,8 l 123.657,0 l 8,8L 256,148 l0,8 l 139.657,0 l 8,8L 256,164 l0,8 l 155.657,0 l 8,8L 256,180 l0,8 l 171.656,0 l 3.869,3.869\n\tL 256,389.333z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"diamond, gem, jewelry\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 357.49,128l 66.584,66.584L 256,383.667L 87.926,194.584L 154.51,128L 357.49,128 M 384,64L 128,64 L0,192l 256,288l 256-288L 384,64L 384,64z\n\t\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"trophy-star, cup, prize, award, winner, tournament\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,96L 416,32 L 96,32 l0,64 L0,96 l0,32 l0,32 c0,53.019, 42.979,96, 96,96c 10.038,0, 19.715-1.543, 28.81-4.401\n\tc 23.087,33.004, 58.304,56.898, 99.19,65.198L 224,416 l-32,0 c-35.347,0-64,28.653-64,64l 256,0 c0-35.347-28.653-64-64-64l-32,0 l0-99.203 \n\tc 40.886-8.3, 76.103-32.193, 99.19-65.198C 396.285,254.457, 405.962,256, 416,256c 53.021,0, 96-42.981, 96-96l0-32 L 512,96 L 416,96 z M 96,218\n\tc-31.981,0-58-26.019-58-58l0-32 l 58,0 l0,32 c0,20.093, 3.715,39.316, 10.477,57.034C 103.076,217.657, 99.578,218, 96,218z M 304.707,185.597\n\tl 30.51,93.208L 256,220.984l-79.216,57.821l 30.509-93.208l-79.468-57.472l 98.072,0.214L 256,35l 30.104,93.339l 98.071-0.214\n\tL 304.707,185.597z M 474,160c0,31.981-26.019,58-58,58c-3.578,0-7.076-0.343-10.477-0.966C 412.285,199.316, 416,180.093, 416,160l0-32 \n\tl 58,0 L 474,160 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"trophy, cup, prize, award, winner, tournament\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,96L 416,32 L 96,32 l0,64 L0,96 l0,32 l0,32 c0,53.019, 42.979,96, 96,96c 10.038,0, 19.715-1.543, 28.81-4.401\n\tc 23.087,33.004, 58.304,56.898, 99.19,65.198L 224,416 l-32,0 c-35.347,0-64,28.653-64,64l 256,0 c0-35.347-28.653-64-64-64l-32,0 l0-99.203 \n\tc 40.886-8.3, 76.103-32.193, 99.19-65.198C 396.285,254.457, 405.962,256, 416,256c 53.021,0, 96-42.981, 96-96l0-32 L 512,96 L 416,96 z M 96,218\n\tc-31.981,0-58-26.019-58-58l0-32 l 58,0 l0,32 c0,20.093, 3.715,39.316, 10.477,57.034C 103.076,217.657, 99.578,218, 96,218z M 474,160\n\tc0,31.981-26.019,58-58,58c-3.578,0-7.076-0.343-10.477-0.966C 412.285,199.316, 416,180.093, 416,160l0-32 l 58,0 L 474,160 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"trophy, cup, prize, award, winner, tournament\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,32c-32,0-160,0-160,0l0,64 L 160,96 L 160,32 c0,0-128,0-160,0c0,160, 128,347.188, 224,376l0,40 c-32,0-64,16-64,32l 192,0 c0-16-32-32-64-32\n\tl0-40 C 384,379.188, 512,192, 512,32z M 383.85,113.227L 384,96L 384,64 l 94.227,0 c-2.787,25.839-8.855,53.128-18.14,81.495\n\tc-12.272,37.499-30.058,75.91-51.433,111.082c-20.559,33.826-43.896,63.859-67.488,86.852c-2.266,2.208-4.521,4.336-6.765,6.391\n\tC 376.819,264.762, 382.961,158.322, 383.85,113.227z M 170.834,343.428c-23.593-22.992-46.93-53.025-67.488-86.852\n\tc-21.375-35.172-39.161-73.583-51.433-111.082C 42.629,117.128, 36.56,89.839, 33.773,64L 128,64 l0,32 l 0.15,17.227\n\tc 0.889,45.096, 7.031,151.535, 49.448,236.592C 175.355,347.764, 173.099,345.636, 170.834,343.428z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"crown, king\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,384L 384,384L 384,448L 128,448zM 480,96c-17.673,0-32,14.327-32,32c0,6.567, 1.981,12.67, 5.375,17.75L 336,224l-12.031-96.254\n\t\tC 339.768,125.791, 352,112.329, 352,96c0-17.673-14.327-32-32-32s-32,14.327-32,32c0,12.528, 7.203,23.367, 17.689,28.621L 256,224\n\t\tl-49.689-99.379C 216.797,119.367, 224,108.528, 224,96c0-17.673-14.327-32-32-32s-32,14.327-32,32\n\t\tc0,16.329, 12.232,29.791, 28.032,31.746L 176,224L 58.626,145.75C 62.019,140.671, 64,134.567, 64,128c0-17.673-14.327-32-32-32\n\t\tS0,110.327,0,128s 14.327,32, 32,32c 4.478,0, 8.738-0.923, 12.607-2.583L 128,352l 256,0 l 83.393-194.583\n\t\tc 3.869,1.66, 8.13,2.583, 12.607,2.583c 17.673,0, 32-14.327, 32-32S 497.673,96, 480,96z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"medal, prize, third\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,208c0-106.039-85.961-192-192-192S 64,101.961, 64,208c0,62.271, 29.654,117.609, 75.603,152.689L 64,512l 96-64l 32,64\n\t\tl 44.823-112.951C 243.131,399.675, 249.527,400, 256,400c 6.473,0, 12.869-0.325, 19.178-0.951L 320,512l 32-64l 96,64l-75.603-151.311\n\t\tC 418.346,325.609, 448,270.271, 448,208z M 346.51,298.51C 322.334,322.686, 290.189,336, 256,336c-34.19,0-66.334-13.314-90.51-37.49\n\t\tC 141.314,274.334, 128,242.19, 128,208s 13.314-66.333, 37.49-90.51C 189.667,93.314, 221.81,80, 256,80\n\t\tc 34.189,0, 66.334,13.314, 90.51,37.49C 370.686,141.666, 384,173.81, 384,208S 370.686,274.334, 346.51,298.51zM 192,160L 288,160L 288,192L 192,192L 192,192L 192,192L 192,224L 288,224L 288,256L 192,256L 192,288L 320,288L 320,128L 192,128 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"medal, prize, second\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,208c0-106.039-85.961-192-192-192S 64,101.961, 64,208c0,62.271, 29.654,117.609, 75.603,152.689L 64,512l 96-64l 32,64\n\t\tl 44.823-112.951C 243.131,399.675, 249.527,400, 256,400c 6.473,0, 12.869-0.325, 19.178-0.951L 320,512l 32-64l 96,64l-75.603-151.311\n\t\tC 418.346,325.609, 448,270.271, 448,208z M 346.51,298.51C 322.334,322.686, 290.189,336, 256,336c-34.19,0-66.334-13.314-90.51-37.49\n\t\tC 141.314,274.334, 128,242.19, 128,208s 13.314-66.333, 37.49-90.51C 189.667,93.314, 221.81,80, 256,80\n\t\tc 34.189,0, 66.334,13.314, 90.51,37.49C 370.686,141.666, 384,173.81, 384,208S 370.686,274.334, 346.51,298.51zM 192,160L 288,160L 288,192L 192,192L 192,288L 320,288L 320,256L 224,256L 224,224L 320,224L 320,128L 192,128 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"medal, prize, first\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,208c0-106.039-85.961-192-192-192S 64,101.961, 64,208c0,62.271, 29.654,117.609, 75.603,152.689L 64,512l 96-64l 32,64\n\t\tl 44.823-112.951C 243.131,399.675, 249.527,400, 256,400c 6.473,0, 12.869-0.325, 19.178-0.951L 320,512l 32-64l 96,64l-75.603-151.311\n\t\tC 418.346,325.609, 448,270.271, 448,208z M 346.51,298.51C 322.334,322.686, 290.189,336, 256,336c-34.19,0-66.334-13.314-90.51-37.49\n\t\tC 141.314,274.334, 128,242.19, 128,208s 13.314-66.333, 37.49-90.51C 189.667,93.314, 221.81,80, 256,80\n\t\tc 34.189,0, 66.334,13.314, 90.51,37.49C 370.686,141.666, 384,173.81, 384,208S 370.686,274.334, 346.51,298.51zM 288,256L 288,128L 224,128L 224,160L 256,160L 256,256L 224,256L 224,288L 320,288L 320,256 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"medal, prize\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,208c0-106.039-85.961-192-192-192S 64,101.961, 64,208c0,62.271, 29.654,117.609, 75.603,152.689L 64,512l 96-64l 32,64\n\t\tl 44.823-112.951C 243.131,399.675, 249.527,400, 256,400c 6.473,0, 12.869-0.325, 19.178-0.951L 320,512l 32-64l 96,64l-75.603-151.311\n\t\tC 418.346,325.609, 448,270.271, 448,208z M 346.51,298.51C 322.334,322.686, 290.189,336, 256,336c-34.19,0-66.334-13.314-90.51-37.49\n\t\tC 141.314,274.334, 128,242.19, 128,208s 13.314-66.333, 37.49-90.51C 189.667,93.314, 221.81,80, 256,80\n\t\tc 34.189,0, 66.334,13.314, 90.51,37.49C 370.686,141.666, 384,173.81, 384,208S 370.686,274.334, 346.51,298.51z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"medal, award, prize, winner\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,160c0-25.319-19.607-46.045-44.465-47.856c 16.296-18.858, 15.506-47.377-2.398-65.281\n\tc-17.903-17.903-46.423-18.694-65.28-2.399C 302.045,19.607, 281.32,0, 256,0s-46.044,19.607-47.856,44.464\n\tc-18.857-16.295-47.377-15.504-65.281,2.399c-17.903,17.904-18.694,46.423-2.399,65.281C 115.608,113.956, 96,134.681, 96,160\n\ts 19.607,46.044, 44.464,47.856c-16.295,18.857-15.504,47.377, 2.399,65.28c 13.294,13.294, 32.439,17.143, 49.137,11.577L 192,512 l 64-64l 64,64\n\tL 320,284.714 c 16.698,5.565, 35.843,1.717, 49.137-11.577c 17.904-17.903, 18.694-46.422, 2.398-65.28C 396.393,206.045, 416,185.319, 416,160z\n\t M 256,256c-53.020,0-96-42.98-96-96s 42.98-96, 96-96s 96,42.98, 96,96S 309.020,256, 256,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"podium, ranking, standings, winers, rating\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,224L 352,96 L 160,96 l0,96 L0,192 l0,256 l 512,0 L 512,224 L 352,224 z M 128,352L 64,352 l0,32 l 64,0 l0,32 L 32,416 l0-96 l 64,0 l0-32 L 32,288 l0-32 l 96,0 L 128,352 z M 288,320l-32,0 L 256,192 l-32,0 l0-32 l 64,0 L 288,320 \n\tz M 480,416l-96,0 l0-32 l 64,0 l0-32 l-64,0 l0-32 l 64,0 l0-32 l-64,0 l0-32 l 96,0 L 480,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"rating, ranking, rate, standing\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,416L 32,480L 256,368L 480,480L 480,416L 256,304 \tzM 32,288L 32,352L 256,240L 480,352L 480,288L 256,176 \tzM 256,48L 32,160L 32,224L 256,112L 480,224L 480,160 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"rating, ranking, rate, standing\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,416L 32,480L 256,368L 480,480L 480,416L 256,304 \tzM 32,288L 32,352L 256,240L 480,352L 480,288L 256,176 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"rating, ranking, rate, standing\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,416L 32,480L 256,368L 480,480L 480,416L 256,304 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"balloon, party\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,224C 448,100.288, 362.039,0, 256,0C 149.962,0, 64,100.288, 64,224c0,111.292, 69.573,203.611, 160.743,221.029L 208,512l 96,0 \n\tl-16.743-66.971C 378.427,427.611, 448,335.293, 448,224z M 141.353,256L 93.351,256 C 91.811,245.601, 91,234.912, 91,224\n\tc0-22.483, 3.409-44.038, 9.654-64l 48.008,0 c-6.246,19.963-9.662,41.515-9.662,64C 139,234.912, 139.813,245.601, 141.353,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"gift, box, present\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 385.758,160c 9.063-6.44, 17.756-13.608, 25.722-21.574c 16.701-16.701, 27.873-37.25, 31.456-57.861\n\tc 3.929-22.593-1.836-43.57-15.815-57.55c-11.15-11.149-26.255-17.043-43.682-17.043c-24.816,0-50.961,11.912-71.73,32.681\n\tc-33.238,33.238-52.613,79.119-63.038,111.861c-7.72-32.901-23.103-77.322-53.009-107.229C 179.615,27.239, 159.105,19, 139.739,19\n\tc-15.827,0-30.89,5.502-42.13,16.743c-24.993,24.994-21.616,68.893, 7.543,98.052c 10.396,10.396, 22.549,19.031, 35.36,26.206L 32,160.001 l0,128 \n\tl 32,0 l0,224 l 384,0 L 448,288 l 32,0 L 480,160 L 385.758,160 z M 337.163,64.109c 13.862-13.862, 31.161-22.137, 46.275-22.137c 5.35,0, 12.854,1.127, 18.225,6.499\n\tc 13.015,13.014, 5.706,43.154-15.64,64.499c-21.973,21.973-51.53,37.084-77.216,47.030l-25.336,0 \n\tC 292.755,131.226, 309.5,91.772, 337.163,64.109z M 130.607,108.338c-7.914-7.914-12.885-18.080-13.64-27.893\n\tc-0.351-4.56-0.025-13.124, 6.098-19.247C 128.187,56.076, 134.959,55, 139.739,55l0,0 c 10.629,0, 21.734,5.008, 30.466,13.74\n\tc 16.936,16.936, 30.883,43.886, 40.334,77.938c 0.255,0.92, 0.504,1.835, 0.748,2.743c-0.908-0.243-1.823-0.492-2.743-0.748\n\tC 174.492,139.222, 147.542,125.274, 130.607,108.338z M 448,272L 288,272 l0,208 l-64,0 L 224,272 L 64,272 l0-16 l 160,0 l0-64 l 64,0 l0,64 l 160,0 L 448,272 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"gift, box, present\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 385.758,160c 9.063-6.44, 17.756-13.608, 25.722-21.574c 16.701-16.701, 27.873-37.25, 31.456-57.861\n\tc 3.929-22.593-1.836-43.57-15.815-57.55c-11.15-11.149-26.255-17.043-43.682-17.043c-24.816,0-50.961,11.912-71.73,32.681\n\tc-33.238,33.238-52.613,79.119-63.038,111.861c-7.72-32.901-23.103-77.322-53.009-107.229C 179.615,27.239, 159.105,19, 139.739,19\n\tc-15.827,0-30.89,5.502-42.13,16.743c-24.993,24.994-21.616,68.893, 7.543,98.052c 10.396,10.396, 22.549,19.031, 35.36,26.206L 32,160.001 l0,128 \n\tl 32,0 l0,224 l 384,0 L 448,288 l 32,0 L 480,160 L 385.758,160 z M 337.163,64.109c 13.862-13.862, 31.161-22.137, 46.275-22.137c 5.35,0, 12.854,1.127, 18.225,6.499\n\tc 13.015,13.014, 5.706,43.154-15.64,64.499c-21.973,21.973-51.53,37.084-77.216,47.030l-25.336,0 \n\tC 292.755,131.226, 309.5,91.772, 337.163,64.109z M 116.967,80.445c-0.351-4.56-0.025-13.124, 6.098-19.247\n\tC 128.187,56.076, 134.959,55, 139.739,55l0,0 c 10.629,0, 21.734,5.008, 30.466,13.74c 16.936,16.936, 30.883,43.886, 40.334,77.938\n\tc 0.255,0.92, 0.504,1.835, 0.748,2.743c-0.908-0.243-1.823-0.492-2.743-0.748c-34.052-9.452-61.001-23.399-77.937-40.335\n\tC 122.693,100.425, 117.722,90.258, 116.967,80.445z M 224,480L 96,480 L 96,272 l 128,0 L 224,480 z M 224,256L 64,256 l0-64 l 160,0 L 224,256 z M 416,480L 288,480 L 288,272 l 128,0 L 416,480 z\n\t M 448,256L 288,256 l0-64 l 160,0 L 448,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cake, birthday, party, anniversary\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,160.621L 288,112 c0-8.8-7.2-16-16-16l-32,0 c-8.8,0-16,7.2-16,16l0,48.621 C 97.719,165.542,0,199.204,0,240l0,192 \n\t\tc0,44.183, 114.615,80, 256,80c 141.385,0, 256-35.817, 256-80L 512,240 C 512,199.204, 414.281,165.542, 288,160.621z M 53.508,232.795\n\t\tc 12.139-6.375, 28.751-12.408, 48.042-17.445c 34.724-9.067, 77.333-14.832, 122.451-16.692L 224.001,240 c0,8.8, 7.2,16, 16,16l 32,0 \n\t\tc 8.8,0, 16-7.2, 16-16l0-41.342 c 45.117,1.86, 87.727,7.625, 122.45,16.692c 19.291,5.038, 35.903,11.070, 48.042,17.445\n\t\tc 5.353,2.812, 9.059,5.266, 11.582,7.205c-2.523,1.939-6.229,4.394-11.582,7.205c-12.139,6.375-28.751,12.408-48.042,17.445\n\t\tC 367.605,275.839, 312.754,282, 256,282s-111.605-6.161-154.451-17.35c-19.291-5.037-35.903-11.070-48.042-17.445\n\t\tc-5.353-2.812-9.059-5.266-11.582-7.205C 44.449,238.061, 48.155,235.606, 53.508,232.795z M 480,381.749\n\t\tC 436.333,406.348, 352.396,423, 256,423c-96.396,0-180.333-16.652-224-41.251l0-45 C 75.667,361.348, 159.604,378, 256,378\n\t\tc 96.396,0, 180.333-16.652, 224-41.251L 480,381.749 zM 256,80 C 238.327,80 224,65.673 224,48 C 224,47.375 224.022,46.756 224.058,46.141 C 225.268,15.388 256,0 256,0 C 256,0 286.732,15.388 287.942,46.141 C 287.978,46.756 288,47.375 288,48 C 288,65.673 273.673,80 256,80 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"ladder, rank\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,0c-17.673,0-32,14.327-32,32l0,64 L 160,96 L 160,32 c0-17.673-14.327-32-32-32S 96,14.327, 96,32l0,448 c0,17.674, 14.327,32, 32,32\n\ts 32-14.326, 32-32l0-64 l 192,0 l0,64 c0,17.674, 14.327,32, 32,32c 17.674,0, 32-14.326, 32-32L 416,32 C 416,14.327, 401.674,0, 384,0z M 352,352L 160,352 l0-64 \n\tl 192,0 L 352,352 z M 352,224L 160,224 l0-64 l 192,0 L 352,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stairs, steps, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,160L 512,64L 160,64L 128,96L 128,160L 64,224L 64,320L0,384L0,480L 352,480L 384,448L 384,384L 32,384L 36,380L 390.863,380L 398.454,372L 44,372L 52,364L 406.046,364L 413.637,356L 60,356L 68,348L 421.228,348L 428.818,340L 76,340L 84,332L 436.409,332L 444,324L 92,324L 96,320L 448,320L 448,224L 96,224L 100,220L 452.764,220L 460.654,212L 108,212L 116,204L 468.546,204L 476.437,196L 124,196L 132,188L 484.327,188L 492.218,180L 140,180L 148,172L 500.109,172L 508,164L 156,164L 160,160 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stairs, steps\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,64L 128,96L 128,160L 64,224L 64,320L0,384L0,480L 352,480L 384,448L 384,384L 32,384L 96,320L 416,320L 448,288L 448,224L 96,224L 160,160L 480,160L 512,128L 512,64 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"chart, stats, statistics, dualtone, plot, graph\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 496,480L 384,480L 384,464L 368,464L 368,480L 208,480L 208,464L 192,464L 192,480L 80,480L 80,464L 64,464L 64,480L 32,480L 32,336L 48,336L 48,320L 32,320L 32,208L 48,208L 48,192L 32,192L 32,80L 48,80L 48,64L 32,64L 32,0L0,0L0,512L 512,512L 512,464L 496,464 \tzM 220,196L 212,204L 212,330.059L 220,322.059 \tzM 204,212L 196,220L 196,346.059L 204,338.059 \tzM 188,354.059L 188,222L 180,218L 180,351.167L 187.261,354.798 \tzM 268,148L 260,156L 260,282.059L 268,274.059 \tzM 236,180L 228,188L 228,314.059L 236,306.059 \tzM 172,214L 164,210L 164,343.167L 172,347.167 \tzM 252,164L 244,172L 244,298.059L 252,290.059 \tzM 124,190L 116,186L 116,319.167L 124,323.167 \tzM 92,174L 84,170L 84,303.167L 92,307.167 \tzM 156,206L 148,202L 148,335.167L 156,339.167 \tzM 108,182L 100,178L 100,311.167L 108,315.167 \tzM 76,166L 68,162L 68,295.167L 76,299.167 \tzM 284,132L 276,140L 276,266.059L 284,258.059 \tzM 140,198L 132,194L 132,327.167L 140,331.167 \tzM 412,164L 404,172L 404,342.733L 412,330.733 \tzM 428,148L 420,156L 420,318.733L 428,306.733 \tzM 444,132L 436,140L 436,294.733L 444,282.733 \tzM 476,100L 468,108L 468,246.733L 476,234.733 \tzM 460,116L 452,124L 452,270.733L 460,258.733 \tzM 508,68L 500,76L 500,198.733L 508,186.733 \tzM 492,84L 484,92L 484,222.733L 492,210.733 \tzM 348,168L 340,162.667L 340,317.334L 348,328 \tzM 332,157.333L 324,152L 324,296L 332,306.667 \tzM 300,136L 292,130.667L 292,253.333L 300,264 \tzM 316,146.667L 308,141.333L 308,274.667L 316,285.334 \tzM 364,178.667L 356,173.333L 356,338.667L 364,349.334 \tzM 396,180L 388,188L 388,366.732L 396,354.733 \tzM 380,189.333L 372,184L 372,360.001L 380,370.667 \tzM 384,416L 288,288L 192,384L 64,320L 64,448L 512,448L 512,224 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stairs-down, down, descend, bottom, steps\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,64L 128,160L 224,160L 224,256L 320,256L 320,352L 416,352L 416,448L 512,448L 512,512L 352,512L 352,416L 256,416L 256,320L 160,320L 160,224L 64,224L 64,224L 64,128L0,128L0,64 \tzM 224,0L 461,240L 512,192L 512,320L 384,320L 429,272L 192,32 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stairs-down, up, ascend, top, steps\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,64L 384,160L 288,160L 288,256L 192,256L 192,352L 96,352L 96,448L0,448L0,512L 160,512L 160,416L 256,416L 256,320L 352,320L 352,224L 448,224L 448,224L 448,128L 512,128L 512,64 \tzM 32,320L 269,80L 320,128L 320,0L 192,0L 237,48L0,288 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stats-down, decay, decline, bars, graph, statistics\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,384L 480,384L 480,512L 384,512zM 256,320L 352,320L 352,512L 256,512zM 128,288L 224,288L 224,512L 128,512zM0,192L 96,192L 96,512L0,512zM 480,144 L 480,288 L 336,288 L 391.029,232.971 L 288,129.941 L 192,225.941 L 0,33.941 L 0,0 L 33.941,0 L 192,158.059 L 288,62.059 L 424.971,199.029 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stats-up, growth, improvement, bars, graph, statistics\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,384L 128,384L 128,512L 32,512zM 160,320L 256,320L 256,512L 160,512zM 288,288L 384,288L 384,512L 288,512zM 416,192L 512,192L 512,512L 416,512zM 512,0 L 512,144 L 456.971,88.971 L 288,257.941 L 192,161.941 L 65.941,288 L 32,288 L 32,254.059 L 192,94.059 L 288,190.059 L 423.029,55.029 L 368,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bars, stats, statistics, chart, graph, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 144,192L 48,192 c-8.8,0-16,7.2-16,16l0,288 c0,8.8, 7.2,16, 16,16l 96,0 c 8.8,0, 16-7.2, 16-16L 160,208 C 160,199.2, 152.8,192, 144,192z M 144,352\n\t\tl0,4 L 48,356 l0-4 L 144,352 z M 48,452l0-8 l 96,0 l0,8 L 48,452 z M 144,460l0,8 L 48,468 l0-8 L 144,460 z M 48,436l0-8 l 96,0 l0,8 L 48,436 z M 48,420l0-8 l 96,0 l0,8 L 48,420 z M 48,404l0-8 l 96,0 l0,8 L 48,404 z M 48,388l0-8 \n\t\tl 96,0 l0,8 L 48,388 z M 48,372l0-8 l 96,0 l0,8 L 48,372 z M 48,480l0-4 l 96,0 l0,4 L 48,480 zM 304,128l-96,0 c-8.8,0-16,7.2-16,16l0,352 c0,8.8, 7.2,16, 16,16l 96,0 c 8.8,0, 16-7.2, 16-16L 320,144 C 320,135.2, 312.8,128, 304,128z\n\t\t M 304,320l0,4 l-96,0 l0-4 L 304,320 z M 208,452l0-8 l 96,0 l0,8 L 208,452 z M 304,460l0,8 l-96,0 l0-8 L 304,460 z M 208,436l0-8 l 96,0 l0,8 L 208,436 z M 208,420l0-8 l 96,0 l0,8 L 208,420 z M 208,404l0-8 \n\t\tl 96,0 l0,8 L 208,404 z M 208,388l0-8 l 96,0 l0,8 L 208,388 z M 208,372l0-8 l 96,0 l0,8 L 208,372 z M 208,356l0-8 l 96,0 l0,8 L 208,356 z M 208,340l0-8 l 96,0 l0,8 L 208,340 z M 208,480l0-4 l 96,0 l0,4 L 208,480 zM 464,64l-96,0 c-8.8,0-16,7.2-16,16l0,416 c0,8.8, 7.2,16, 16,16l 96,0 c 8.8,0, 16-7.2, 16-16L 480,80 C 480,71.2, 472.8,64, 464,64z M 464,288l0,4 \n\t\tl-96,0 l0-4 L 464,288 z M 368,452l0-8 l 96,0 l0,8 L 368,452 z M 464,460l0,8 l-96,0 l0-8 L 464,460 z M 368,436l0-8 l 96,0 l0,8 L 368,436 z M 368,420l0-8 l 96,0 l0,8 L 368,420 z M 368,404l0-8 l 96,0 l0,8 L 368,404 z\n\t\t M 368,388l0-8 l 96,0 l0,8 L 368,388 z M 368,372l0-8 l 96,0 l0,8 L 368,372 z M 368,356l0-8 l 96,0 l0,8 L 368,356 z M 368,340l0-8 l 96,0 l0,8 L 368,340 z M 368,324l0-8 l 96,0 l0,8 L 368,324 z M 368,308l0-8 l 96,0 \n\t\tl0,8 L 368,308 z M 368,480l0-4 l 96,0 l0,4 L 368,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bars, stats, statistics, chart, graph, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 304,128l-96,0 c-8.8,0-16,7.2-16,16l0,352 c0,8.8, 7.2,16, 16,16l 96,0 c 8.8,0, 16-7.2, 16-16L 320,144 C 320,135.2, 312.8,128, 304,128z\n\t\t M 304,480l-96,0 L 208,316 l 96,0 L 304,480 z M 304,308l-96,0 l0-8 l 96,0 L 304,308 z M 304,292l-96,0 l0-8 l 96,0 L 304,292 z M 304,276l-96,0 l0-8 l 96,0 L 304,276 z M 304,260l-96,0 l0-8 l 96,0 L 304,260 z\n\t\t M 304,244l-96,0 l0-8 l 96,0 L 304,244 z M 304,228l-96,0 l0-8 l 96,0 L 304,228 z M 304,212l-96,0 l0-8 l 96,0 L 304,212 z M 304,196l-96,0 l0-8 l 96,0 L 304,196 z M 304,180l-96,0 l0-8 l 96,0 L 304,180 z\n\t\t M 304,164l-96,0 l0-4 l 96,0 L 304,164 zM 144,192L 48,192 c-8.8,0-16,7.2-16,16l0,288 c0,8.8, 7.2,16, 16,16l 96,0 c 8.8,0, 16-7.2, 16-16L 160,208 C 160,199.2, 152.8,192, 144,192z M 144,480\n\t\tL 48,480 L 48,348 l 96,0 L 144,480 z M 144,340L 48,340 l0-8 l 96,0 L 144,340 z M 144,324L 48,324 l0-8 l 96,0 L 144,324 z M 144,308L 48,308 l0-8 l 96,0 L 144,308 z M 144,292L 48,292 l0-8 l 96,0 L 144,292 z M 144,276L 48,276 l0-8 l 96,0 \n\t\tL 144,276 z M 144,260L 48,260 l0-8 l 96,0 L 144,260 z M 144,244L 48,244 l0-8 l 96,0 L 144,244 z M 144,228L 48,228 l0-4 l 96,0 L 144,228 zM 464,64l-96,0 c-8.8,0-16,7.2-16,16l0,416 c0,8.8, 7.2,16, 16,16l 96,0 c 8.8,0, 16-7.2, 16-16L 480,80 C 480,71.2, 472.8,64, 464,64z M 464,480l-96,0 \n\t\tL 368,284 l 96,0 L 464,480 z M 464,276l-96,0 l0-8 l 96,0 L 464,276 z M 464,260l-96,0 l0-8 l 96,0 L 464,260 z M 464,244l-96,0 l0-8 l 96,0 L 464,244 z M 464,228l-96,0 l0-8 l 96,0 L 464,228 z M 464,212l-96,0 l0-8 \n\t\tl 96,0 L 464,212 z M 464,196l-96,0 l0-8 l 96,0 L 464,196 z M 464,180l-96,0 l0-8 l 96,0 L 464,180 z M 464,164l-96,0 l0-8 l 96,0 L 464,164 z M 464,148l-96,0 l0-8 l 96,0 L 464,148 z M 464,132l-96,0 l0-8 l 96,0 \n\t\tL 464,132 z M 464,116l-96,0 l0-8 l 96,0 L 464,116 z M 464,100l-96,0 l0-4 l 96,0 L 464,100 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bars, stats, statistics, chart, graph\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 144,192L 48,192 c-8.8,0-16,7.2-16,16l0,288 c0,8.8, 7.2,16, 16,16l 96,0 c 8.8,0, 16-7.2, 16-16L 160,208 C 160,199.2, 152.8,192, 144,192z M 144,480\n\t\tL 48,480 L 48,352 l 96,0 L 144,480 zM 304,128l-96,0 c-8.8,0-16,7.2-16,16l0,352 c0,8.8, 7.2,16, 16,16l 96,0 c 8.8,0, 16-7.2, 16-16L 320,144 C 320,135.2, 312.8,128, 304,128z\n\t\t M 304,480l-96,0 L 208,320 l 96,0 L 304,480 zM 464,64l-96,0 c-8.8,0-16,7.2-16,16l0,416 c0,8.8, 7.2,16, 16,16l 96,0 c 8.8,0, 16-7.2, 16-16L 480,80 C 480,71.2, 472.8,64, 464,64z M 464,480l-96,0 \n\t\tL 368,288 l 96,0 L 464,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bars, stats, statistics, chart, graph, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,128L 192,128 l0,384 l 128,0 L 320,128 L 320,128z M 224,164l0-4 l 64,0 l0,4 L 224,164 L 224,164z M 224,180l0-8 l 64,0 l0,8 L 224,180 L 224,180z M 224,196l0-8 l 64,0 l0,8 L 224,196 \n\t\tL 224,196z M 224,212l0-8 l 64,0 l0,8 L 224,212 L 224,212z M 224,228l0-8 l 64,0 l0,8 L 224,228 L 224,228z M 224,244l0-8 l 64,0 l0,8 L 224,244 L 224,244z M 224,260l0-8 l 64,0 l0,8 L 224,260 \n\t\tL 224,260z M 224,276l0-8 l 64,0 l0,8 L 224,276 L 224,276z M 224,292l0-8 l 64,0 l0,8 L 224,292 L 224,292z M 224,308l0-8 l 64,0 l0,8 L 224,308 L 224,308z M 224,324l0-8 l 64,0 l0,8 L 224,324 \n\t\tL 224,324z M 224,340l0-8 l 64,0 l0,8 L 224,340 L 224,340z M 224,356l0-8 l 64,0 l0,8 L 224,356 L 224,356z M 224,372l0-8 l 64,0 l0,8 L 224,372 L 224,372z M 224,388l0-8 l 64,0 l0,8 L 224,388 \n\t\tL 224,388z M 224,404l0-8 l 64,0 l0,8 L 224,404 L 224,404z M 224,420l0-8 l 64,0 l0,8 L 224,420 L 224,420z M 224,436l0-8 l 64,0 l0,8 L 224,436 L 224,436z M 224,452l0-8 l 64,0 l0,8 L 224,452 \n\t\tL 224,452z M 224,468l0-8 l 64,0 l0,8 L 224,468 L 224,468z M 224,480l0-4 l 64,0 l0,4 L 224,480 L 224,480zM0,288L 128,288L 128,512L0,512zM 384,0L 512,0L 512,512L 384,512z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bars, stats, statistics, chart, graph\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,192L 352,0 L 128,0 l0,128 L0,128 l0,384 l 480,0 L 480,192 L 352,192 z M 160,448L 64,448 L 64,192 l 96,0 L 160,448 z M 288,448l-96,0 L 192,64 l 96,0 L 288,448 z M 416,448l-96,0 L 320,256 l 96,0 L 416,448 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bars, statistics, stats, chart, graph\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,416L 512,416L 512,480L0,480zM 64,288L 128,288L 128,384L 64,384zM 160,160L 224,160L 224,384L 160,384zM 256,256L 320,256L 320,384L 256,384zM 352,64L 416,64L 416,384L 352,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stats, pie, chart, statistics, graph\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 488,96c 13.2,0, 24-10.8, 24-24L 512,24 c0-13.2-10.8-24-24-24l-48,0 c-13.2,0-24,10.8-24,24l0,8 L 96,32 l0-8 C 96,10.8, 85.2,0, 72,0L 24,0 \n\tC 10.8,0,0,10.8,0,24l0,48 c0,13.2, 10.8,24, 24,24l 8,0 l0,320 l-8,0 c-13.2,0-24,10.8-24,24l0,48 c0,13.2, 10.8,24, 24,24l 48,0 c 13.2,0, 24-10.8, 24-24l0-8 \n\tl 320,0 l0,8 c0,13.2, 10.8,24, 24,24l 48,0 c 13.2,0, 24-10.8, 24-24l0-48 c0-13.2-10.8-24-24-24l-8,0 L 480,96 L 488,96 z M 448,32l 32,0 l0,32 l-32,0 L 448,32 z M 32,32l 32,0 l0,32 L 32,64 \n\tL 32,32 z M 64,480L 32,480 l0-32 l 32,0 L 64,480 z M 480,480l-32,0 l0-32 l 32,0 L 480,480 z M 448,416l-8,0 c-13.2,0-24,10.8-24,24l0,8 L 96,448 l0-8 c0-13.2-10.8-24-24-24l-8,0 L 64,96 l 8,0 \n\tc 13.2,0, 24-10.8, 24-24l0-8 l 320,0 l0,8 c0,13.2, 10.8,24, 24,24l 8,0 L 448,416 zM 256,128l0,128 l 128,0 C 384,185.308, 326.692,128, 256,128zM 224,288L 224,132.033 c-55.207,14.209-96,64.325-96,123.967c0,70.692, 57.308,128, 128,128c 59.643,0, 109.758-40.793, 123.967-96L 224,288 \n\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stats, bars, graph, plot, chart\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 488,96c 13.2,0, 24-10.8, 24-24L 512,24 c0-13.2-10.8-24-24-24l-48,0 c-13.2,0-24,10.8-24,24l0,8 L 96,32 l0-8 C 96,10.8, 85.2,0, 72,0L 24,0 \n\tC 10.8,0,0,10.8,0,24l0,48 c0,13.2, 10.8,24, 24,24l 8,0 l0,320 l-8,0 c-13.2,0-24,10.8-24,24l0,48 c0,13.2, 10.8,24, 24,24l 48,0 c 13.2,0, 24-10.8, 24-24l0-8 \n\tl 320,0 l0,8 c0,13.2, 10.8,24, 24,24l 48,0 c 13.2,0, 24-10.8, 24-24l0-48 c0-13.2-10.8-24-24-24l-8,0 L 480,96 L 488,96 z M 448,32l 32,0 l0,32 l-32,0 L 448,32 z M 32,32l 32,0 l0,32 L 32,64 \n\tL 32,32 z M 64,480L 32,480 l0-32 l 32,0 L 64,480 z M 480,480l-32,0 l0-32 l 32,0 L 480,480 z M 448,416l-8,0 c-13.2,0-24,10.8-24,24l0,8 L 96,448 l0-8 c0-13.2-10.8-24-24-24l-8,0 L 64,96 l 8,0 \n\tc 13.2,0, 24-10.8, 24-24l0-8 l 320,0 l0,8 c0,13.2, 10.8,24, 24,24l 8,0 L 448,416 zM 128,128L 192,128L 192,384L 128,384zM 224,256L 288,256L 288,384L 224,384zM 320,192L 384,192L 384,384L 320,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stats, graph, plot, statistics, chart\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,448 L 512,448 L 512,512 L 0,512 L 0,0 L 64,0 ZM 144,416 C 117.49,416 96,394.51 96,368 C 96,341.49 117.49,320 144,320 C 145.414,320 146.811,320.074 148.194,320.193 L 199.79,234.2 C 194.87,226.665 192,217.669 192,207.999 C 192,181.489 213.49,159.999 240,159.999 C 266.51,159.999 288,181.489 288,207.999 C 288,217.67 285.13,226.665 280.21,234.2 L 331.806,320.193 C 333.189,320.074 334.586,320 336,320 C 337.068,320 338.124,320.047 339.175,320.115 L 424.353,171.054 C 419.085,163.35 416,154.036 416,143.999 C 416,117.489 437.49,95.999 464,95.999 C 490.51,95.999 512,117.489 512,143.999 C 512,170.509 490.51,191.999 464,191.999 C 462.93,191.999 461.876,191.952 460.825,191.883 L 375.647,340.945 C 380.915,348.648 384,357.963 384,368 C 384,394.51 362.51,416 336,416 C 309.49,416 288,394.51 288,368 C 288,358.33 290.87,349.334 295.789,341.799 L 244.194,255.807 C 242.811,255.926 241.414,256 240,256 C 238.586,256 237.189,255.927 235.806,255.807 L 184.21,341.8 C 189.13,349.334 192,358.33 192,368 C 192,394.51 170.51,416 144,416 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pie, statistics, stats, chart, graph\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,288 L 510.013,288 C 494.265,414.281 386.547,512 256,512 C 114.615,512 0,397.385 0,256 C 0,125.453 97.719,17.736 224,1.988 L 224,288 ZM 288,34.253 L 288,223.999 L 477.747,223.999 C 475.044,205.032 469.918,186.566 462.411,168.818 C 451.13,142.148 434.974,118.19 414.392,97.607 C 393.81,77.025 369.851,60.869 343.181,49.589 C 325.434,42.083 306.967,36.956 288,34.253 Z M 256,0 L 256,0 C 397.385,0 512,114.615 512,256 L 256,256 L 256,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pie, statistics, stats, chart, graph, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,1.988 L 224,288 L 510.013,288 C 494.265,414.281 386.547,512 256,512 C 114.615,512 0,397.385 0,256 C 0,125.453 97.719,17.736 224,1.988 ZM 256,0l0,256 l 256,0 C 512,114.615, 397.385,0, 256,0z M 288,220l 189.136,0 c 0.214,1.331, 0.42,2.664, 0.61,4L 288,224 L 288,220 z M 328.542,44\n\t\tc 4.929,1.689, 9.812,3.548, 14.639,5.59c 1.841,0.778, 3.665,1.585, 5.479,2.41L 288,52 l0-8 L 328.542,44 z M 288,36l0-1.747 \n\t\tc 3.503,0.499, 6.988,1.083, 10.455,1.747L 288,36 z M 364.535,60c 4.535,2.514, 8.978,5.18, 13.32,8L 288,68 l0-8 L 364.535,60 z M 389.375,76\n\t\tc 3.448,2.562, 6.823,5.233, 10.13,8L 288,84 l0-8 L 389.375,76 z M 408.559,92c 1.97,1.835, 3.921,3.696, 5.833,5.608\n\t\tc 0.789,0.79, 1.56,1.593, 2.336,2.392L 288,100 l0-8 L 408.559,92 z M 424.135,108c 2.312,2.619, 4.556,5.287, 6.734,8L 288,116 l0-8 L 424.135,108 z M 437.001,124\n\t\tc 1.922,2.628, 3.788,5.293, 5.591,8L 288,132 l0-8 L 437.001,124 z M 447.69,140c 1.594,2.631, 3.122,5.302, 4.608,8L 288,148 l0-8 L 447.69,140 z M 456.492,156\n\t\tc 1.317,2.64, 2.596,5.302, 3.812,8L 288,164 l0-8 L 456.492,156 z M 463.726,172c 1.074,2.651, 2.090,5.319, 3.058,8L 288,180 l0-8 L 463.726,172 z M 469.502,188\n\t\tc 0.846,2.654, 1.646,5.32, 2.391,8L 288,196 l0-8 L 469.502,188 z M 473.947,204c 0.631,2.655, 1.212,5.322, 1.745,8L 288,212 l0-8 L 473.947,204 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pie, statistics, stats, chart, graph\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,288L 224,1.988 C 97.719,17.736,0,125.453,0,256c0,141.385, 114.615,256, 256,256c 130.547,0, 238.265-97.719, 254.013-224L 224,288 z\n\t M 404.79,423.444C 363.783,459.915, 310.942,480, 256,480c-30.254,0-59.586-5.918-87.181-17.59\n\tc-26.67-11.28-50.628-27.437-71.21-48.019C 77.026,393.81, 60.87,369.851, 49.59,343.181C 37.918,315.586, 32,286.254, 32,256\n\tc0-54.942, 20.085-107.783, 56.556-148.789C 116.489,75.803, 152.373,53.090, 192,41.286L 192,320 l 278.715,0 \n\tC 458.91,359.628, 436.197,395.511, 404.79,423.444zM 256,0 C 397.385,0 512,114.615 512,256 L 256,256 L 256,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pie, statistics, stats, chart, graph, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0 C 397.385,0 512,114.615 512,256 L 256,256 L 256,0 ZM 224,1.988C 97.719,17.736,0,125.453,0,256c0,141.385, 114.615,256, 256,256c 130.547,0, 238.265-97.719, 254.013-224L 224,288 L 224,1.988 z\n\t\t M 183.534,44L 192,44 l0,8 l-28.617,0 C 169.96,49.010, 176.686,46.342, 183.534,44z M 147.509,60L 192,60 l0,8 l-57.808,0 \n\t\tC 138.541,65.178, 142.982,62.51, 147.509,60z M 122.664,76L 192,76 l0,8 l-79.49,0 C 115.823,81.233, 119.208,78.563, 122.664,76z M 103.438,92L 192,92 l0,8 \n\t\tL 95.268,100 C 97.929,97.259, 100.653,94.592, 103.438,92z M 87.87,108L 192,108 l0,8 L 81.147,116 C 83.322,113.288, 85.562,110.62, 87.87,108z M 75.024,124\n\t\tL 192,124 l0,8 L 69.442,132 C 71.241,129.296, 73.104,126.63, 75.024,124z M 64.354,140L 192,140 l0,8 L 59.74,148 C 61.224,145.305, 62.757,142.636, 64.354,140z\n\t\t M 55.549,156L 192,156 l0,8 L 51.751,164 C 52.963,161.31, 54.23,158.643, 55.549,156z M 48.323,172L 192,172 l0,8 L 45.272,180 \n\t\tC 46.24,177.314, 47.253,174.646, 48.323,172z M 42.562,188L 192,188 l0,8 L 40.169,196 C 40.914,193.316, 41.718,190.651, 42.562,188z M 38.113,204L 192,204 l0,8 \n\t\tL 36.362,212 C 36.898,209.321, 37.481,206.654, 38.113,204z M 34.905,220L 192,220 l0,8 L 33.764,228 C 34.1,225.324, 34.473,222.656, 34.905,220z M 32.896,236\n\t\tL 192,236 l0,8 L 32.333,244 C 32.476,241.327, 32.658,238.659, 32.896,236z M 32,256c0-1.335, 0.022-2.667, 0.046-4L 192,252 l0,8 L 32.049,260 \n\t\tC 32.026,258.668, 32,257.336, 32,256z M 32.32,268L 192,268 l0,8 L 32.89,276 C 32.657,273.342, 32.46,270.676, 32.32,268z M 33.721,284L 192,284 l0,8 L 34.878,292 \n\t\tC 34.45,289.342, 34.054,286.678, 33.721,284z M 36.307,300L 192,300 l0,8 L 38.063,308 C 37.432,305.344, 36.84,302.679, 36.307,300z M 256,480\n\t\tc-14.362,0-28.513-1.351-42.373-4l 84.523,0 C 284.354,478.638, 270.249,480, 256,480z M 328.362,468L 183.472,468 \n\t\tc-4.934-1.689-9.821-3.546-14.653-5.59c-1.84-0.778-3.665-1.585-5.479-2.41l 185.218,0 C 341.96,462.994, 335.22,465.661, 328.362,468z\n\t\t M 364.466,452L 147.465,452 c-4.536-2.514-8.978-5.18-13.32-8l 243.649,0 C 373.438,446.824, 368.993,449.493, 364.466,452z M 389.334,436\n\t\tL 122.625,436 c-3.449-2.562-6.824-5.233-10.13-8l 286.988,0 C 396.168,430.769, 392.787,433.439, 389.334,436z M 408.565,420L 103.441,420 \n\t\tc-1.97-1.835-3.921-3.696-5.833-5.608c-0.789-0.789-1.56-1.593-2.335-2.392l 321.464,0 C 414.088,414.729, 411.362,417.396, 408.565,420z\n\t\t M 424.144,404L 87.865,404 c-2.311-2.619-4.556-5.286-6.734-8l 349.727,0 C 428.684,398.713, 426.448,401.383, 424.144,404z M 436.981,388L 74.999,388 \n\t\tc-1.921-2.628-3.788-5.293-5.59-8l 373.155,0 C 440.763,382.705, 438.901,385.371, 436.981,388z M 447.647,372L 64.31,372 \n\t\tc-1.594-2.631-3.123-5.302-4.608-8l 392.572,0 C 450.786,366.697, 449.245,369.364, 447.647,372z M 456.481,356L 55.508,356 \n\t\tc-1.317-2.64-2.596-5.302-3.812-8l 408.58,0 C 459.062,350.69, 457.801,353.359, 456.481,356z M 463.696,340L 48.291,340 \n\t\tc-1.074-2.652-2.104-5.317-3.072-8L 466.76,332 C 465.79,334.688, 464.768,337.354, 463.696,340z M 470.715,320\n\t\tc-0.398,1.338-0.812,2.671-1.235,4L 42.508,324 c-0.846-2.654-1.647-5.319-2.392-8L 192,316 l0,4 L 470.715,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pie, statistics, stats, chart, graph, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 147.503,452\n\tc-4.534-2.516-8.971-5.186-13.306-8l 243.613,0 c-4.336,2.815-8.775,5.483-13.312,8L 147.503,452 z M 348.635,460\n\tc-6.556,2.981-13.283,5.65-20.158,8L 183.524,468 c-6.872-2.349-13.594-5.020-20.146-8L 348.635,460 z M 122.679,436\n\tc-3.467-2.573-6.864-5.235-10.173-8l 286.991,0 c-3.309,2.764-6.702,5.428-10.169,8L 122.679,436 z M 95.277,412l 294.096,0 l 8,8L 103.452,420 \n\tC 100.66,417.402, 97.933,414.736, 95.277,412z M 293.373,316l 8,8L 42.537,324 c-0.842-2.646-1.634-5.312-2.38-8L 293.373,316 z M 38.084,308\n\tc-0.629-2.647-1.199-5.317-1.733-8l 241.022,0 l 8,8L 38.084,308 z M 309.373,332l 8,8L 48.312,340 c-1.070-2.644-2.1-5.308-3.071-8L 309.373,332 z\n\t M 325.373,348l 8,8L 55.532,356 c-1.317-2.637-2.581-5.305-3.796-8L 325.373,348 z M 341.373,364l 8,8L 64.357,372 c-1.596-2.632-3.141-5.299-4.63-8\n\tL 341.373,364 z M 357.373,380l 8,8L 75.029,388 c-1.917-2.624-3.778-5.291-5.582-8L 357.373,380 z M 373.373,396l 8,8L 87.868,404 \n\tc-2.301-2.612-4.538-5.281-6.717-8L 373.373,396 z M 265.373,288l 4,4L 34.904,292 c-0.215-1.33-0.428-2.662-0.619-4L 265.373,288 z M 256,32l0,224 L 32,256 \n\tC 32,132.288, 132.288,32, 256,32z M 213.69,476l 84.613,0 c-13.7,2.619-27.84,4-42.304,4C 241.534,480, 227.393,478.62, 213.69,476z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pie, statistics, stats, chart, graph\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,64C 100.288,64,0,164.288,0,288s 100.288,224, 224,224s 224-100.288, 224-224L 224,288 L 224,64 zM 288,0l0,224 l 224,0 C 512,100.288, 411.712,0, 288,0z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pie, statistics, stats, chart, graph\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,288L 224,64 C 100.288,64,0,164.288,0,288s 100.288,224, 224,224s 224-100.288, 224-224c0-36.017-8.514-70.042-23.618-100.191\n\t\tL 224,288zM 456.382,123.809C 419.606,50.401, 343.695,0, 256,0l0,224 L 456.382,123.809z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cone, traffic, maintenance\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,448L 313.792,30.465C 308.406,13.709, 293.2,0, 280,0s-34.8,0-48,0s-28.407,13.709-33.792,30.465L 64,448L0,448 l0,64 l 512,0 l0-64 L 448,448 z\n\t M 210.755,96l 90.489,0 l 20.572,64L 190.184,160 L 210.755,96z M 169.613,224l 172.775,0 l 20.571,64L 149.041,288 L 169.613,224z M 107.898,416l 20.571-64\n\tl 255.061,0 l 20.571,64L 107.898,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"construction, maintenance\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,208L 512,80 c0-8.8-7.2-16-16-16L 16,64 C 7.2,64,0,71.2,0,80l0,128 c0,8.8, 7.2,16, 16,16l 60.175,0 L0,448l 96,0 l 32.646-96l 254.707,0 L 416,448\n\tl 96,0 l-76.175-224L 496,224 C 504.8,224, 512,216.8, 512,208z M 416,96l-96,96l-96,0 l 96-96L 416,96 z M 128,96l 96,0 l-96,96L 32,192 L 128,96z M 372.472,320\n\tL 139.529,320 l 32.646-96l 167.65,0 L 372.472,320z M 480,192l-64,0 l 64-64L 480,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"inject, anti virus, medicine, heal, vaccine\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 496,192l 16-64L 384,0l-64,16l 31.515,31.515l-52.201,52.201l-71.515-71.515l-39.598,39.598l 48.185,48.185\n\t\tc-1.045,0.811-2.055,1.686-3.013,2.644L 54.627,297.373c-12.445,12.444-12.445,32.81,0,45.254L 64,352l0,0 l0,32 l 20.687,20.687L0,489.373\n\t\tl0,0 L 22.627,512l 84.687-84.687L 128,448l 32,0 l 9.373,9.373c 6.223,6.223, 14.425,9.333, 22.627,9.333s 16.405-3.11, 22.627-9.333\n\t\tl 178.746-178.746c 0.958-0.958, 1.833-1.968, 2.644-3.013l 48.185,48.185l 39.598-39.598l-71.515-71.515l 52.201-52.201L 496,192z\n\t\t M 373.574,258.828L 194.829,437.573c-0.937,0.937-2.055,1.133-2.829,1.133s-1.893-0.196-2.828-1.132L 74.426,322.827\n\t\tc-0.936-0.936-1.132-2.054-1.132-2.827s 0.196-1.892, 1.133-2.828l 178.745-178.746c 0.937-0.936, 2.055-1.133, 2.829-1.133\n\t\ts 1.892,0.196, 2.828,1.133l 114.745,114.745C 375.080,254.678, 375.081,257.321, 373.574,258.828z M 395.313,195.716l-79.029-79.029\n\t\tl 52.201-52.201l 79.029,79.029L 395.313,195.716zM 199.514,376.489L 135.514,312.489L 152.484,295.519L 216.484,359.518zM 295.514,280.489L 231.515,216.489L 248.485,199.519L 312.485,263.518zM 247.514,328.489L 183.514,264.489L 200.485,247.519L 264.484,311.518z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"inject, anti virus, medicine, heal, vaccine, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 496,192l 16-64L 384,0l-64,16l 31.515,31.515l-52.201,52.201l-71.515-71.515l-39.598,39.598l 48.185,48.185\n\tc-1.045,0.811-2.055,1.686-3.013,2.644L 54.627,297.373c-12.445,12.444-12.445,32.81,0,45.254L 64,352l0,0 l0,32 l 20.687,20.687L0,489.373l0,0 \n\tL 22.627,512l 84.687-84.687L 128,448l 32,0 l 9.373,9.373c 6.223,6.223, 14.425,9.333, 22.627,9.333s 16.405-3.11, 22.627-9.333l 178.746-178.746\n\tc 0.958-0.958, 1.833-1.968, 2.644-3.013l 48.185,48.185l 39.598-39.598l-71.515-71.515l 52.201-52.201L 496,192z M 123.34,268.258\n\tl 0.917-0.918l 127.484,113.32l-15.082,15.082L 123.34,268.258z M 235.742,396.66l-15.082,15.082L 107.34,284.258l 0.917-0.918\n\tL 235.742,396.66z M 139.34,252.258l 0.917-0.917l 127.484,113.32l-15.082,15.082L 139.34,252.258z M 155.34,236.258l 0.917-0.917\n\tl 127.484,113.32l-15.082,15.082L 155.34,236.258z M 171.34,220.258l 0.917-0.917l 127.484,113.32l-15.082,15.082L 171.34,220.258z\n\t M 187.34,204.258l 0.917-0.917l 127.484,113.32l-15.082,15.082L 187.34,204.258z M 203.34,188.258l 0.917-0.917l 127.484,113.32\n\tl-15.082,15.082L 203.34,188.258z M 219.34,172.258l 0.918-0.918l 127.484,113.32l-15.082,15.082L 219.34,172.258z M 235.34,156.258\n\tl 0.918-0.918l 127.484,113.32l-15.082,15.082L 235.34,156.258z M 192,438.706c-0.774,0-1.893-0.196-2.828-1.132L 74.426,322.827\n\tc-0.936-0.936-1.132-2.054-1.132-2.827s 0.196-1.892, 1.133-2.828l 1.832-1.832l 127.484,113.32l-8.913,8.913\n\tC 193.893,438.51, 192.774,438.706, 192,438.706z M 204.66,427.742L 91.34,300.258l 0.917-0.918l 127.484,113.32L 204.66,427.742z\n\t M 373.574,258.828l-8.914,8.914L 251.34,140.258l 1.832-1.832c 0.937-0.936, 2.055-1.133, 2.829-1.133s 1.892,0.196, 2.828,1.133\n\tl 114.745,114.745C 375.080,254.678, 375.081,257.321, 373.574,258.828z M 395.313,195.716l-79.029-79.029l 52.201-52.201l 79.029,79.029\n\tL 395.313,195.716z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bug, virus, error\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,288l0-32 l-96.645,0 c-2.931-36.343-15.893-69.513-35.835-96.125l 80.972,0 l 35.030-140.12l-31.045-7.761l-28.97,115.88l-87.34,0 \n\tc-0.446-0.347-0.898-0.687-1.349-1.028c 3.355-9.751, 5.181-20.211, 5.181-31.097C 352,42.869, 309.020,0, 256,0s-96,42.869-96,95.75\n\tc0,10.886, 1.825,21.346, 5.181,31.097c-0.45,0.342-0.902,0.681-1.349,1.028l-87.34,0 l-28.97-115.88l-31.045,7.761l 35.030,140.12l 80.972,0 \n\tC 112.537,186.487, 99.576,219.657, 96.645,256L0,256 l0,32 l 96.685,0 c 1.901,22.832, 7.754,44.406, 16.819,63.875L 51.508,351.875 l-35.030,140.119\n\tl 31.045,7.762l 28.97-115.881l 56.177,0 C 162.016,422.891, 206.368,447.75, 256,447.75s 93.983-24.859, 123.331-63.875l 56.177,0 l 28.97,115.881\n\tl 31.045-7.762l-35.030-140.119l-61.996,0 c 9.065-19.469, 14.918-41.043, 16.818-63.875L 512,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bug, virus, error\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,160l 32-64L 512,32 l-48,96L 407.11,128 c-4.274-4.689-10.553-9.171-19.73-14.311l-70.76-35.377C 300.88,70.439, 273.6,64, 256,64\n\t\t\tc-17.602,0-44.881,6.439-60.623,14.313l-70.758,35.377c-9.181,5.14-15.457,9.623-19.731,14.311L 48,128.001 L0,32l0,64 l 32,64l 64,0 l0,64 L0,256l0,32 \n\t\t\tl 96-32l0,96 L 64,352 L0,512l 32,0 l 51.199-128l 16.712,0 c 4.447,12.48, 12.241,24.669, 21.074,31.734l 110.022,88.021\n\t\t\tC 237.882,509.253, 246.94,512, 256,512c 9.057,0, 18.113-2.747, 24.985-8.245l 110.022-88.021c 8.835-7.065, 16.628-19.254, 21.074-31.734\n\t\t\tL 428.8,384 L 480,512l 32,0 l-64-160l-32,0 l0-96 l 96,32l0-32 l-96-32l0-64 L 480,160 z M 272,448l-32,0 L 240,128 l 32,0 L 272,448 zM 320,62.221L 320,32 c0-17.6-14.4-32-32-32l-64,0 c-17.602,0-32,14.4-32,32l0,30.221 C 210.129,54.116, 237.284,48, 256,48\n\t\tC 274.713,48, 301.865,54.116, 320,62.221z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"patch, fix\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,416L 96,416L 96,448L 64,448zM 384,96L 416,96L 416,128L 384,128zM 352,64L 384,64L 384,96L 352,96zM 64,352L 96,352L 96,384L 64,384zM 128,416L 160,416L 160,448L 128,448zM 416,128L 448,128L 448,160L 416,160zM 416,64L 448,64L 448,96L 416,96zM 478.864,33.137C 458.39,12.664, 430.105,0, 398.864,0c-13.969,0-27.344,2.538-39.695,7.167\n\t\tc-15.27,5.723-28.975,14.644-40.292,25.957l-0.025,0.025L 33.15,318.851l-0.025,0.025c-11.313,11.317-20.234,25.022-25.957,40.292\n\t\tC 2.538,371.52,0,384.895,0,398.863c0,31.241, 12.663,59.526, 33.137,80S 81.896,512, 113.137,512c 13.969,0, 27.344-2.538, 39.695-7.167\n\t\tc 15.27-5.723, 28.975-14.644, 40.292-25.957l 0.025-0.025l 285.701-285.701l 0.025-0.025c 11.313-11.317, 20.234-25.022, 25.957-40.292\n\t\tc 4.629-12.352, 7.167-25.727, 7.167-39.695C 512,81.896, 499.337,53.611, 478.864,33.137z M 192,448l-32,0 l0,32 l-32,0 l0-32 L 96,448 l0,32 L 64,480 l0-32 L 32,448 l0-32 \n\t\tl 32,0 l0-32 L 32,384 l0-32 l 32,0 l0-32 l 32,0 l0,32 l 32,0 l0,32 l 32,0 l0,32 l 32,0 L 192,448 z M 224,384l-96-96l 32-32l 96,96L 224,384z M 352,256l-96-96l 32-32l 96,96L 352,256z\n\t\t M 480,96l-32,0 l0,32 l 32,0 l0,32 l-32,0 l0,32 l-32,0 l0-32 l-32,0 l0-32 l-32,0 L 352,96 l-32,0 L 320,64 l 32,0 L 352,32 l 32,0 l0,32 l 32,0 L 416,32 l 32,0 l0,32 l 32,0 L 480,96 zM 96,384L 128,384L 128,416L 96,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"aid, medicine, medical, kit, health\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,128l-96,0 L 352,64 c0-17.6-14.4-32-32-32L 192,32 c-17.6,0-32,14.4-32,32l0,64 L 64,128 c-35.2,0-64,28.8-64,64l0,256 c0,35.2, 28.8,64, 64,64l 384,0 \n\tc 35.2,0, 64-28.8, 64-64L 512,192 C 512,156.8, 483.2,128, 448,128z M 192,64l 128,0 l0,64 L 192,128 L 192,64 z M 384,352l-96,0 l0,96 l-64,0 l0-96 l-96,0 l0-64 l 96,0 l0-96 l 64,0 l0,96 l 96,0 \n\tL 384,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"health, medicine, medical, pulse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,320L 384,352L 320,192L 256,384L 160,32L 96,352L0,352L0,384L 122.235,384L 164.794,171.197L 225.128,392.42L 252.937,494.385L 322.734,284.995L 354.288,363.885L 372.313,408.943L 429.256,352L 512,352L 512,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"wand, magic, wizard\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 258.181,225.909l 94.386-29.34L 256,128.277L 256,0 L 152.532,74.534L 32,32l 42.533,120.533L0,256l 128,0 l 68.567,96.568l 29.341-94.387\n\tL 448,512l 64-64L 258.181,225.909z M 202.327,202.328l-19.579,62.986l-38.084-53.010L 78.712,212.304 l 39.447-52.861L 96.979,96.979l 62.464,21.182\n\tl 52.862-39.447l0,65.952 l 53.008,38.084L 202.327,202.328z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"wand, magic, wizard\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,96L 64,32L 32,32L 32,64L 96,128 \tzM 160,0L 192,0L 192,64L 160,64zM 288,160L 352,160L 352,192L 288,192zM 320,64L 320,32L 288,32L 224,96L 256,128 \tzM0,160L 64,160L 64,192L0,192zM 160,288L 192,288L 192,352L 160,352zM 32,288L 32,320L 64,320L 128,256L 96,224 \tzM 505,441L 186.941,122.941c-9.334-9.334-24.607-9.334-33.941,0L 122.941,153c-9.334,9.334-9.334,24.607,0,33.941L 441,505\n\t\tc 9.334,9.334, 24.607,9.334, 33.941,0L 505,474.941C 514.334,465.607, 514.334,450.334, 505,441z M 240,272l-96-96l 32-32l 96,96L 240,272z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"screwdriver, fix, tool, make, build\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 507.256,395.256L 398.361,286.361c-20.765,4.761-43.441-0.932-59.616-17.106c-16.175-16.175-21.867-38.852-17.106-59.616\n\tl-12.895-12.895c-11.030-11.031-38.41-2.154-65.372,19.758L 96,69.13L 80,32L 28.768,0L0,28.768L 32,80l 37.13,16l 147.373,147.372\n\tc-21.913,26.963-30.79,54.342-19.76,65.372c 0.003,0.003, 0.006,0.005, 0.009,0.008l 12.887,12.887\n\tc 20.765-4.761, 43.441,0.931, 59.616,17.106c 16.176,16.176, 21.868,38.852, 17.106,59.616l 108.894,108.895\n\tc 12.976,12.975, 48.565-1.579, 79.494-32.508C 505.677,443.82, 520.23,408.229, 507.256,395.256z M 445.435,445.435\n\tc-3.71,3.71-8.572,5.565-13.435,5.565s-9.725-1.855-13.435-5.565l-160-160c-7.421-7.42-7.421-19.449,0-26.869\n\tc 7.42-7.42, 19.449-7.42, 26.869,0l 160,160C 452.855,425.985, 452.855,438.015, 445.435,445.435z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"screwdriver, fix, tool, make, build\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 507.256,395.256L 308.744,196.744c-11.030-11.031-38.41-2.154-65.372,19.758L 96,69.13L 80,32L 28.768,0L0,28.768L 32,80\n\tl 37.13,16l 147.373,147.372c-21.913,26.963-30.79,54.342-19.76,65.372c 0.003,0.003, 0.006,0.005, 0.009,0.008l 198.503,198.504\n\tc 12.976,12.975, 48.565-1.579, 79.494-32.508C 505.677,443.82, 520.23,408.229, 507.256,395.256z M 445.435,445.435\n\tc-3.71,3.71-8.572,5.565-13.435,5.565s-9.725-1.855-13.435-5.565l-160-160c-7.421-7.42-7.421-19.449,0-26.869\n\tc 7.42-7.42, 19.449-7.42, 26.869,0l 160,160C 452.855,425.985, 452.855,438.015, 445.435,445.435z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"640\" height=\"512\" viewBox=\"0 0 640 512\" data-tags=\"tools, hammer, tool, fix, make, generate, work, build\" style=\"margin-left: 7px; margin-top: 9px;\"><path d=\"M 246.278,352.277 L 319.723,425.722 L 261.385,500.634 C 250.694,514.615 231.764,515.871 219.319,503.427 L 168.574,452.681 C 156.129,440.237 157.386,421.307 171.366,410.616 L 246.278,352.277 ZM 636.756,131.246L 560,208.001l-96-96l 76.756-76.755c-9.244-2.122-18.869-3.245-28.756-3.245c-70.692,0-128,57.308-128,128\n\t\tc0,25.498, 7.458,49.253, 20.309,69.208l-71.454,55.646L 224,176.001l 144-144L 208,32.001 l-71.029,71.029l-7.030-7.029L 96,96.001 l0,33.941 l 7.029,7.029\n\t\tL0,240.001l 80,80l 96-96l 169.116,169.115L 464,511.999l 48-47.998L 387.146,339.146l 55.646-71.454\n\t\tc 19.954,12.851, 43.71,20.309, 69.208,20.309c 70.692,0, 128-57.308, 128-128C 640,150.114, 638.877,140.489, 636.756,131.246z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"hammer, tool, fix, make, generate, work, build\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 504.998,414.488L 354.226,263.716c-9.334-9.334-24.607-9.334-33.941,0l-11.313,11.313l-92-92L 368,32L 208,32 l-71.029,71.029\n\tL 129.941,96L 96,96 l0,33.941 l 7.029,7.029L0,240l 80,80l 103.029-103.029l 92,92l-11.313,11.313c-9.334,9.334-9.334,24.607,0,33.941\n\tl 150.772,150.772c 9.334,9.334, 24.607,9.334, 33.941,0l 56.568-56.568C 514.332,439.096, 514.332,423.822, 504.998,414.488z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"factory, make, generate, produce, production\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,448L 480,160L 352,256L 352,160L 224,256L 224,128L 96,224L 96,32L 32,32L 32,448L0,448L0,480L 512,480L 512,448 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cog, preferences, settings, gear, generate, control, options\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,224l-120.543-24.108l 68.189-102.284l-45.255-45.255l-102.283,68.189L 288,0l-64,0 l-24.108,120.542L 97.608,52.353\n\t\tL 52.353,97.608l 68.189,102.284L0,224l0,64 l 120.542,24.108L 52.353,414.392l 45.255,45.255l 102.284-68.189L 224,512l 64,0 l 24.108-120.542\n\t\tl 102.283,68.188l 45.255-45.255l-68.188-102.283L 512,288L 512,224 z M 352,216.236l0,79.528 L 295.764,352l-79.528,0 L 160,295.764l0-79.528 \n\t\tL 216.235,160l 79.528,0 L 352,216.236zM 224,224L 288,224L 288,288L 224,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cog, preferences, settings, gear, generate, control, options\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,224l-120.543-24.108l 68.189-102.284l-45.255-45.255l-102.283,68.189L 288,0l-64,0 l-24.108,120.542L 97.608,52.353\n\t\tL 52.353,97.608l 68.189,102.284L0,224l0,64 l 120.542,24.108L 52.353,414.392l 45.255,45.255l 102.284-68.189L 224,512l 64,0 l 24.108-120.542\n\t\tl 102.283,68.188l 45.255-45.255l-68.188-102.283L 512,288L 512,224 z M 352,216.236l0,79.528 L 295.764,352l-79.528,0 L 160,295.764l0-79.528 \n\t\tL 216.235,160l 79.528,0 L 352,216.236z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cog, preferences, settings, gear, generate, control, options\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,208l-112.869-11.287l 71.83-87.791L 403.078,41.040l-87.791,71.829L 304,0l-96,0 l-11.287,112.869L 108.922,41.040\n\tL 41.040,108.922l 71.829,87.791L0,208l0,96 l 112.869,11.287L 41.040,403.078l 67.882,67.883l 87.791-71.83L 208,512l 96,0 l 11.287-112.869\n\tl 87.791,71.83l 67.883-67.883l-71.83-87.791L 512,304L 512,208 z M 352,216.236l0,79.528 L 295.764,352l-79.528,0 L 160,295.764l0-79.528 L 216.235,160\n\tl 79.528,0 L 352,216.236zM 224,224L 288,224L 288,288L 224,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cog, preferences, settings, gear, generate, control, options\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,208l-112.869-11.287l 71.83-87.791L 403.078,41.040l-87.791,71.829L 304,0l-96,0 l-11.287,112.869L 108.922,41.040\n\tL 41.040,108.922l 71.829,87.791L0,208l0,96 l 112.869,11.287L 41.040,403.078l 67.882,67.883l 87.791-71.83L 208,512l 96,0 l 11.287-112.869\n\tl 87.791,71.83l 67.883-67.883l-71.83-87.791L 512,304L 512,208 z M 352,216.236l0,79.528 L 295.764,352l-79.528,0 L 160,295.764l0-79.528 L 216.235,160\n\tl 79.528,0 L 352,216.236z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cog, preferences, settings, gear, generate, control, options\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 316.576,512L 195.423,512 l-12.202-73.212c-1.679-0.669-3.35-1.36-5.010-2.075l-60.396,43.141l-85.669-85.667l 43.058-60.281\n\t\tc-0.738-1.707-1.453-3.425-2.142-5.152L0,316.575L0,195.423 l 72.868-12.144c 0.711-1.795, 1.45-3.582, 2.213-5.355l-42.935-60.108\n\t\tl 85.669-85.669l 59.991,42.851c 1.821-0.788, 3.654-1.549, 5.499-2.282L 195.423,0l 121.153,0 l 12.119,72.715\n\t\tc 1.845,0.733, 3.679,1.494, 5.499,2.282l 59.991-42.851l 85.668,85.669l-42.936,60.107c 0.765,1.774, 1.503,3.561, 2.214,5.357\n\t\tL 512,195.423l0,121.152 l-73.062,12.178c-0.689,1.728-1.403,3.445-2.142,5.151l 43.058,60.281l-85.668,85.668l-60.397-43.141\n\t\tc-1.661,0.714-3.331,1.405-5.011,2.074L 316.576,512z M 227.615,474l 56.77,0 l 10.617-63.705l 10.894-3.6\n\t\tc 7.31-2.416, 14.506-5.396, 21.389-8.856l 10.246-5.151l 52.548,37.533l 40.143-40.143l-37.479-52.472l 5.184-10.26\n\t\tc 3.493-6.913, 6.502-14.146, 8.941-21.499l 3.608-10.874L 474,284.385l0-56.771 l-63.402-10.567l-3.589-10.92\n\t\tc-2.438-7.423-5.454-14.721-8.963-21.69l-5.158-10.25l 37.333-52.265l-40.143-40.144l-52.191,37.279l-10.262-5.192\n\t\tc-6.998-3.541-14.333-6.584-21.801-9.048l-10.902-3.596L 284.385,38l-56.77,0 l-10.537,63.222l-10.902,3.596\n\t\tc-7.465,2.463-14.799,5.507-21.799,9.049l-10.262,5.192l-52.192-37.28l-40.144,40.144l 37.333,52.266l-5.158,10.249\n\t\tc-3.508,6.971-6.523,14.268-8.962,21.69l-3.588,10.921L 38,227.615l0,56.77 l 63.526,10.589l 3.607,10.876\n\t\tc 2.437,7.346, 5.445,14.578, 8.941,21.496l 5.185,10.26l-37.481,52.474l 40.144,40.142l 52.549-37.534l 10.247,5.154\n\t\tc 6.877,3.459, 14.073,6.438, 21.385,8.855l 10.894,3.6L 227.615,474zM 272,192l-32,0 c-26.4,0-48,21.6-48,48l0,32 c0,26.4, 21.6,48, 48,48l 32,0 c 26.4,0, 48-21.6, 48-48l0-32 C 320,213.6, 298.4,192, 272,192z\n\t M 288,272c0,8.8-7.2,16-16,16l-32,0 c-8.8,0-16-7.2-16-16l0-32 c0-8.8, 7.2-16, 16-16l 32,0 c 8.8,0, 16,7.2, 16,16L 288,272 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cog, preferences, settings, gear, generate, control, options\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,304.047l0-96.094 l-73.387-12.231c-2.979-9.066-6.611-17.834-10.847-26.25l 43.227-60.517l-67.948-67.949l-60.413,43.152\n\t\tc-8.455-4.277-17.269-7.944-26.384-10.951L 304.047,0l-96.094,0 l-12.201,73.208c-9.115,3.007-17.929,6.674-26.383,10.951\n\t\tl-60.414-43.152l-67.949,67.949l 43.227,60.518c-4.235,8.415-7.867,17.183-10.846,26.249L0,207.953l0,96.094 l 73.559,12.26\n\t\tc 2.98,8.984, 6.605,17.674, 10.821,26.015l-43.374,60.724l 67.949,67.948l 60.827-43.447c 8.301,4.175, 16.945,7.764, 25.882,10.717\n\t\tL 207.953,512l 96.094,0 l 12.289-73.737c 8.937-2.953, 17.581-6.542, 25.883-10.716l 60.826,43.446l 67.948-67.948l-43.372-60.723\n\t\tc 4.216-8.341, 7.839-17.031, 10.82-26.016L 512,304.047z M 256,320c-35.346,0-64-28.653-64-64c0-35.346, 28.654-64, 64-64\n\t\tc 35.347,0, 64,28.654, 64,64C 320,291.347, 291.347,320, 256,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cogs, settings, gears, generate, control, options\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 181.861,361.026l 20.649-28.908l-22.627-22.628l-28.909,20.648c-5.361-2.997-11.102-5.387-17.133-7.096L 128,288L 96,288 \n\t\tl-5.84,35.043c-6.031,1.709-11.772,4.099-17.133,7.096L 44.118,309.49L 21.49,332.118l 20.649,28.908\n\t\tc-2.997,5.36-5.387,11.103-7.096,17.133L0,384l0,32 l 35.043,5.841c 1.709,6.030, 4.099,11.772, 7.096,17.133L 21.49,467.882l 22.627,22.628\n\t\tl 28.909-20.648c 5.361,2.997, 11.102,5.387, 17.133,7.096L 96,512l 32,0 l 5.84-35.043c 6.031-1.709, 11.772-4.099, 17.133-7.096l 28.909,20.648\n\t\tl 22.627-22.628l-20.649-28.908c 2.997-5.36, 5.387-11.103, 7.096-17.133L 224,416l0-32 l-35.043-5.841\n\t\tC 187.248,372.129, 184.858,366.387, 181.861,361.026z M 112,432c-17.674,0-32-14.327-32-32s 14.326-32, 32-32s 32,14.327, 32,32\n\t\tS 129.674,432, 112,432zM 512,192l0-32 l-33.691-6.125c-0.621-4.023-1.416-7.989-2.362-11.895l 28.779-18.55L 492.48,93.866l-33.472,7.234\n\t\tc-2.107-3.455-4.363-6.81-6.746-10.065l 19.503-28.171l-22.628-22.627l-28.171,19.503c-3.256-2.383-6.61-4.638-10.065-6.747\n\t\tl 7.234-33.472L 388.571,7.274l-18.55,28.779c-3.906-0.946-7.872-1.741-11.895-2.362L 352,0l-32,0 l-6.126,33.691\n\t\tc-4.023,0.621-7.988,1.416-11.895,2.362L 283.43,7.274L 253.866,19.52l 7.234,33.472c-3.455,2.108-6.81,4.364-10.065,6.747\n\t\tl-28.171-19.503l-22.627,22.627l 19.503,28.171c-2.383,3.255-4.639,6.61-6.747,10.065l-33.472-7.234l-12.246,29.564l 28.779,18.55\n\t\tc-0.946,3.906-1.741,7.871-2.362,11.895L 160,160l0,32 l 33.691,6.125c 0.621,4.023, 1.416,7.989, 2.362,11.895l-28.779,18.55\n\t\tl 12.246,29.564l 33.472-7.234c 2.108,3.455, 4.364,6.809, 6.747,10.065l-19.503,28.171l 22.627,22.628l 28.171-19.503\n\t\tc 3.255,2.383, 6.61,4.638, 10.065,6.746l-7.234,33.472l 29.564,12.246l 18.551-28.779c 3.905,0.946, 7.871,1.741, 11.894,2.362L 320,352l 32,0 \n\t\tl 6.126-33.691c 4.022-0.621, 7.988-1.416, 11.895-2.362l 18.55,28.779l 29.564-12.246l-7.234-33.472\n\t\tc 3.455-2.108, 6.81-4.363, 10.065-6.746l 28.171,19.503l 22.628-22.628l-19.503-28.171c 2.383-3.256, 4.638-6.61, 6.746-10.065\n\t\tl 33.472,7.234l 12.246-29.565l-28.779-18.55c 0.946-3.906, 1.741-7.871, 2.362-11.895L 512,192z M 336,245.6\n\t\tc-38.439,0-69.6-31.161-69.6-69.6c0-38.439, 31.16-69.6, 69.6-69.6s 69.6,31.161, 69.6,69.6C 405.6,214.439, 374.44,245.6, 336,245.6z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cog, preferences, settings, gear, generate, control, options\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 466.895,305.125c-26.863-46.527-10.708-106.152, 36.076-133.244l-50.313-87.146c-14.375,8.427-31.088,13.259-48.923,13.259\n\tc-53.768,0-97.354-43.873-97.354-97.995L 205.752-0.001 c 0.133,16.705-4.037,33.641-12.979,49.126\n\tc-26.862,46.528-86.578,62.351-133.431,35.379L 9.030,171.65c 14.485,8.236, 27.025,20.294, 35.943,35.739\n\tc 26.819,46.454, 10.756,105.96-35.854,133.112l 50.313,87.146c 14.325-8.348, 30.958-13.127, 48.7-13.127\n\tc 53.598,0, 97.072,43.596, 97.35,97.479l 100.627,0 c-0.043-16.537, 4.136-33.285, 12.983-48.609\n\tc 26.818-46.453, 86.388-62.297, 133.207-35.506l 50.313-87.145C 488.222,332.506, 475.766,320.49, 466.895,305.125z M 256,359.666\n\tc-57.254,0-103.668-46.412-103.668-103.667c0-57.254, 46.413-103.667, 103.668-103.667c 57.254,0, 103.666,46.413, 103.666,103.667\n\tC 359.665,313.254, 313.254,359.666, 256,359.666z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"equalizer, control, options, settings, dashboard\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,32L 32,32 C 14.4,32,0,46.4,0,64l0,384 c0,17.601, 14.397,32, 32,32l 448,0 c 17.6,0, 32-14.399, 32-32L 512,64 C 512,46.4, 497.6,32, 480,32z\n\t\t M 480,447.943c-0.020,0.020-0.037,0.041-0.061,0.057L 32.057,448 c-0.019-0.017-0.040-0.038-0.056-0.057L 32.001,64.057 \n\t\tc 0.017-0.019, 0.038-0.039, 0.057-0.057l 447.885,0 c 0.021,0.018, 0.041,0.038, 0.060,0.057L 480,447.943L 480,447.943zM 216,352l-24,0 L 192,96 l-64,0 l0,256 l-24,0 c-4.4,0-8,3.6-8,8l0,48 c0,4.4, 3.6,8, 8,8l 112,0 c 4.4,0, 8-3.6, 8-8l0-48 C 224,355.6, 220.4,352, 216,352zM 296,160l 24,0 l0,256 l 64,0 L 384,160 l 24,0 c 4.4,0, 8-3.6, 8-8l0-48 c0-4.4-3.6-8-8-8L 296,96 c-4.399,0-8,3.6-8,8l0,48 C 288,156.4, 291.601,160, 296,160z\n\t\t\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"equalizer, control, options, settings, dashboard\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 144,160L 80,160 c-8.8,0-16,7.2-16,16l0,32 c0,8.8, 7.2,16, 16,16l 64,0 c 8.8,0, 16-7.2, 16-16l0-32 C 160,167.2, 152.8,160, 144,160zM 96,64L 128,64L 128,144L 96,144zM 96,240L 128,240L 128,448L 96,448zM 272,288l-64,0 c-8.8,0-16,7.2-16,16l0,32 c0,8.8, 7.2,16, 16,16l 64,0 c 8.801,0, 16-7.2, 16-16l0-32 C 288,295.2, 280.801,288, 272,288zM 224.001,64L 256.001,64L 256.001,272L 224.001,272zM 224.001,368L 256.001,368L 256.001,448L 224.001,448zM 400,192l-64,0 c-8.799,0-16,7.2-16,16l0,32 c0,8.8, 7.201,16, 16,16l 64,0 c 8.801,0, 16-7.2, 16-16l0-32 C 416,199.2, 408.801,192, 400,192zM 352,64L 384,64L 384,176L 352,176zM 352,272L 384,272L 384,448L 352,448zM 440,0L 40,0 C 17.944,0,0,17.944,0,40l0,432 c0,22.056, 17.944,40, 40,40l 400,0 c 22.056,0, 40-17.944, 40-40L 480,40 \n\t\tC 480,17.944, 462.056,0, 440,0z M 448,472c0,4.4-3.6,8-8,8L 40,480 c-4.4,0-8-3.6-8-8L 32,40 c0-4.4, 3.6-8, 8-8l 400,0 c 4.4,0, 8,3.6, 8,8L 448,472 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"equalizer, control, options, settings, dashboard\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,224l 8,0 c 13.2,0 24-10.8 24-24l0-80 c0-13.2-10.8-24-24-24l-8,0 L 448,0 l-64,0 l 0,96 l-8,0 c-13.2,0, -24,10.8, -24,24l 0,80 c 0,13.2, 10.8,24, 24,24l 8,0 \n\t\tl 0,288 L 448,512 L 448,224 z M 384,128L 448,128 l 0,64 l-64,0 L 384,128 zM 296,416c 13.2,0 24-10.8 24-24l0-80 c0-13.2-10.8-24-24-24l-8,0 L 288,0 l-64,0 l 0,288 l-8,0 c-13.2,0, -24,10.8, -24,24l 0,80 c 0,13.2, 10.8,24, 24,24l 8,0 \n\t\tl 0,96 l 64,0 l0-96 L 296,416 z M 224,320l 64,0 l 0,64 l-64,0 L 224,320 zM 136,224c 13.2,0 24-10.8 24-24l0-80 c0-13.2-10.8-24-24-24l-8,0 L 128,0 l-64,0 l 0,96 l-8,0 c-13.2,0, -24,10.8, -24,24l 0,80 c 0,13.2, 10.8,24, 24,24l 8,0 \n\t\tl 0,288 l 64,0 L 128,224 L 136,224 z M 64,128l 64,0 l 0,64 l-64,0 L 64,128 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"settings, preferences, options\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,64l0-8 c0-13.2-10.8-24-24-24l-80,0 c-13.2,0-24,10.8-24,24l0,8 L0,64 l0,64 l 96,0 l0,8 c0,13.2, 10.8,24, 24,24l 80,0 c 13.2,0, 24-10.8, 24-24l0-8 \n\t\tl 288,0 L 512,64 L 224,64 z M 128,128L 128,64 l 64,0 l0,64 L 128,128 zM 416,216c0-13.2-10.8-24-24-24l-80,0 c-13.2,0-24,10.8-24,24l0,8 L0,224 l0,64 l 288,0 l0,8 c0,13.2, 10.8,24, 24,24l 80,0 c 13.2,0, 24-10.8, 24-24l0-8 \n\t\tl 96,0 l0-64 l-96,0 L 416,216 z M 320,288l0-64 l 64,0 l0,64 L 320,288 zM 224,376c0-13.2-10.8-24-24-24l-80,0 c-13.2,0-24,10.8-24,24l0,8 L0,384 l0,64 l 96,0 l0,8 c0,13.2, 10.8,24, 24,24l 80,0 c 13.2,0, 24-10.8, 24-24l0-8 \n\t\tl 288,0 l0-64 L 224,384 L 224,376 z M 128,448l0-64 l 64,0 l0,64 L 128,448 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"wrench, settings, control, tool, options, preferences, fix\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 507.882,68.117L 448,128l-64-64l 59.882-59.883C 435.057,1.443, 425.698,0, 416,0c-53.021,0-96,42.98-96,96\n\tc0,9.697, 1.442,19.057, 4.116,27.882L 123.882,324.117C 115.057,321.443, 105.698,320, 96,320c-53.021,0-96,42.98-96,96\n\tc0,9.697, 1.442,19.058, 4.117,27.882L 64,384l 64,64l-59.883,59.882C 76.943,510.556, 86.302,512, 96,512c 53.020,0, 96-42.981, 96-96\n\tc0-9.698-1.444-19.059-4.118-27.883l 200.234-200.235C 396.943,190.556, 406.302,192, 416,192c 53.020,0, 96-42.981, 96-96\n\tC 512,86.302, 510.556,76.942, 507.882,68.117z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"wrench, settings, control, tool, options, preferences, fix\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480.895,365.861L 294.502,213.748c-6.183-5.045-12.183-9.551-17.906-13.495C 283.937,182.971, 288,163.96, 288,144\n\tC 288,64.471, 223.529,0, 144,0c-14.547,0-28.586,2.166-41.823,6.177L 192,96l0,96 L 96,192 L 6.177,102.177C 2.166,115.414,0,129.453,0,144\n\tc0,79.529, 64.471,144, 144,144c 19.96,0, 38.97-4.063, 56.252-11.404c 3.944,5.724, 8.449,11.724, 13.494,17.906L 365.86,480.896\n\tc 31.645,38.776, 86.336,41.702, 121.536,6.502S 519.671,397.506, 480.895,365.861z M 432,480l-48-48l 48-48l 48,48L 432,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"wrench, settings, control, tool, options, preferences, fix\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 420.438,512C 420.438,512, 420.438,512, 420.438,512c-12.681,0-24.784-5.636-33.207-15.462L 210.156,289.95\n\t\tC 191.547,297.86, 171.335,302, 151,302C 67.738,302,0,234.262,0,151c0-14.908, 2.18-29.661, 6.478-43.849l 7.743-25.558l 96.879,96.879\n\t\tc 2.621,2.621, 6.137,4.064, 9.9,4.064s 7.279-1.443, 9.9-4.064l 47.573-47.574c 5.458-5.458, 5.458-14.341,0-19.8L 81.594,14.222\n\t\tl 25.557-7.744C 121.338,2.18, 136.091,0, 151,0c 83.262,0, 151,67.739, 151,151c0,20.331-4.14,40.543-12.050,59.155L 496.538,387.23\n\t\tc 9.481,8.128, 14.961,19.335, 15.431,31.557c 0.469,12.221-4.136,23.813-12.966,32.643l-47.574,47.574\n\t\tC 443.049,507.385, 432.042,512, 420.438,512z M 218.138,250.091l 193.39,225.621c 2.37,2.766, 5.534,4.288, 8.911,4.288\n\t\tc 2.162,0, 5.368-0.629, 8.363-3.623l 47.574-47.575c 2.455-2.455, 3.739-5.576, 3.616-8.788c-0.124-3.213-1.644-6.227-4.28-8.487\n\t\tL 250.094,218.139l 6.024-11.32C 265.199,189.754, 270,170.452, 270,151c0-65.617-53.383-119-119-119c-2.076,0-4.147,0.054-6.213,0.16\n\t\tL 201.1,88.473c 17.935,17.936, 17.935,47.119,0,65.054L 153.527,201.1c-8.665,8.665-20.216,13.437-32.527,13.437\n\t\tc-12.31,0-23.862-4.772-32.527-13.437L 32.16,144.788C 32.054,146.854, 32,148.925, 32,151c0,65.617, 53.383,119, 119,119\n\t\tc 19.456,0, 38.757-4.801, 55.817-13.882L 218.138,250.091z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"wrench, settings, control, tool, options, preferences, fix\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 501.467,408.938l-230.276-197.38C 281.915,191.409, 288,168.417, 288,144C 288,64.471, 223.529,0, 144,0\n\tc-14.547,0-28.586,2.166-41.823,6.177l 83.195,83.195c 12.445,12.445, 12.445,32.81,0,45.255l-50.745,50.745\n\tc-12.445,12.445-32.81,12.445-45.255,0L 6.177,102.177C 2.166,115.414,0,129.453,0,144c0,79.529, 64.471,144, 144,144\n\tc 24.417,0, 47.409-6.085, 67.558-16.81l 197.38,230.276c 11.454,13.362, 31.008,14.113, 43.452,1.669l 50.746-50.746\n\tC 515.58,439.945, 514.829,420.392, 501.467,408.938z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"unlocked, lock\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,32l-64,0 c-52.935,0-96,43.065-96,96l0,96 L 24,224 c-13.2,0-24,10.8-24,24l0,240 c0,13.2, 10.8,24, 24,24l 272,0 c 13.2,0, 24-10.8, 24-24L 320,248 \n\tc0-13.2-10.8-24-24-24l-8,0 l0-96 c0-17.645, 14.355-32, 32-32l 64,0 c 17.645,0, 32,14.355, 32,32l0,96 l 64,0 l0-96 C 480,75.065, 436.935,32, 384,32z\n\t M 192,448l-64,0 l 13.92-69.6C 133.516,372.634, 128,362.963, 128,352c0-17.673, 14.327-32, 32-32c 17.673,0, 32,14.327, 32,32\n\tc0,10.963-5.516,20.634-13.92,26.4L 192,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lock, secure, private, encrypted\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 296,224l-8,0 l0-96 c0-52.935-43.065-96-96-96l-64,0 c-52.935,0-96,43.065-96,96l0,96 l-8,0 c-13.2,0-24,10.8-24,24l0,240 \n\tc0,13.2, 10.8,24, 24,24l 272,0 c 13.2,0, 24-10.8, 24-24L 320,248 C 320,234.8, 309.2,224, 296,224z M 192,448l-64,0 l 13.92-69.6\n\tC 133.516,372.634, 128,362.963, 128,352c0-17.673, 14.327-32, 32-32c 17.673,0, 32,14.327, 32,32c0,10.963-5.516,20.634-13.92,26.4L 192,448\n\tz M 224,224L 96,224 l0-96 c0-17.645, 14.355-32, 32-32l 64,0 c 17.645,0, 32,14.355, 32,32L 224,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"unlocked, lock\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,32 C 436.935,32 480,75.065 480,128 L 480,224 L 416,224 L 416,128 C 416,110.355 401.645,96 384,96 L 320,96 C 302.355,96 288,110.355 288,128 L 288,224 L 296,224 C 309.2,224 320,234.8 320,248 L 320,488 C 320,501.2 309.2,512 296,512 L 24,512 C 10.8,512 0,501.2 0,488 L 0,248 C 0,234.8 10.8,224 24,224 L 224,224 L 224,128 C 224,75.065 267.065,32 320,32 L 384,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lock, secure, private, encrypted\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 296,224l-8,0 l0-96 c0-52.935-43.065-96-96-96l-64,0 c-52.935,0-96,43.065-96,96l0,96 l-8,0 c-13.2,0-24,10.8-24,24l0,240 \n\tc0,13.2, 10.8,24, 24,24l 272,0 c 13.2,0, 24-10.8, 24-24L 320,248 C 320,234.8, 309.2,224, 296,224z M 96,128c0-17.645, 14.355-32, 32-32l 64,0 \n\tc 17.645,0, 32,14.355, 32,32l0,96 L 96,224 L 96,128 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lock, secure, private, encrypted, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,224l-32,0 l0-96 C 384,57.308, 326.692,0, 256,0S 128,57.308, 128,128l0,96 L 96,224 c-17.6,0-32,14.4-32,32l0,224 c0,17.6, 14.4,32, 32,32l 320,0 \n\tc 17.6,0, 32-14.4, 32-32L 448,256 C 448,238.4, 433.6,224, 416,224z M 192,128c0-35.29, 28.71-64, 64-64s 64,28.71, 64,64l0,96 L 192,224 L 192,128 z M 416,320\n\tl-160,16l 160,16l-160,16l 160,16l-160,16l 160,16l-160,16l 160,16l-160,16l 159.947,15.995c-0.002,0.001-0.003,0.003-0.005,0.005L 96.058,480 \n\tc-0.002-0.002-0.003-0.004-0.005-0.005L 256,464L 96,448l 160-16L 96,416l 160-16L 96,384l 160-16L 96,352l 160-16L 96,320l 160-16L 96,288\n\tl 160-16L 96.052,256.005c 0.002-0.002, 0.003-0.004, 0.005-0.005l 319.885,0 c 0.002,0.001, 0.003,0.004, 0.005,0.005L 256,272l 160,16l-160,16\n\tL 416,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lock, secure, private, encrypted\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,224l-32,0 l0-96 C 384,57.308, 326.692,0, 256,0c-70.692,0-128,57.308-128,128l0,96 L 96,224 c-17.6,0-32,14.4-32,32l0,224 \n\tc0,17.6, 14.4,32, 32,32l 320,0 c 17.6,0, 32-14.4, 32-32L 448,256 C 448,238.4, 433.6,224, 416,224z M 256,416c-17.673,0-32-14.327-32-32\n\ts 14.327-32, 32-32s 32,14.327, 32,32S 273.673,416, 256,416z M 320,224L 192,224 l0-96 c0-35.29, 28.71-64, 64-64s 64,28.71, 64,64L 320,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"lock, secure, private, encrypted\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,192l-32,0 L 416,32 c0-17.6-14.4-32-32-32L 128,0 c-17.6,0-32,14.4-32,32l0,160 L 64,192 c-17.602,0-32,14.4-32,32l0,256 \n\tc0,17.6, 14.398,32, 32,32l 384,0 c 17.6,0, 32-14.4, 32-32L 480,224 C 480,206.4, 465.6,192, 448,192z M 288,416l-64,0 l 13.92-69.6\n\tC 229.516,340.634, 224,330.963, 224,320c0-17.673, 14.327-32, 32-32c 17.673,0, 32,14.327, 32,32c0,10.963-5.516,20.634-13.92,26.4L 288,416\n\tz M 352,192L 160,192 L 160,64 l 192,0 L 352,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"keyhole, entrance, signin sign in, login, log in\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,128C 384,57.308, 326.693,0, 256,0S 128,57.308, 128,128c0,48.913, 27.439,91.411, 67.76,112.958L 128,512l 256,0 l-67.76-271.042\n\tC 356.561,219.411, 384,176.912, 384,128z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"key, password, login, log in, signin, sign in\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,192L 238.872,192 C 216.74,153.742, 175.377,128, 128,128C 57.308,128,0,185.308,0,256c0,70.691, 57.308,128, 128,128\n\tc 47.377,0, 88.739-25.742, 110.872-64L 256,320 l 32-32l 32,0 l0,32 l 32,0 l 32-32l 32,0 l0,32 l 32,0 l 64-64L 480,192z M 96,301.255\n\tc-24.994,0-45.255-20.262-45.255-45.255c0-24.994, 20.261-45.255, 45.255-45.255s 45.255,20.261, 45.255,45.255\n\tC 141.255,280.993, 120.994,301.255, 96,301.255z M 256,240l0-16 l 192,0 l 8,16L 256,240 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"key, password, login, log in, signin, sign in\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 336,8.083c-74.945,0-135.917,60.972-135.917,135.917c0,28.822, 9.025,55.572, 24.388,77.588L 15.029,431.029\n\tc-9.373,9.373-9.373,24.568,0,33.941C 19.716,469.657, 25.858,472, 32,472s 12.284-2.343, 16.971-7.029L 60,453.941l 51.029,51.029\n\tC 115.716,509.657, 121.858,512, 128,512s 12.284-2.343, 16.971-7.029c 9.373-9.373, 9.373-24.568,0-33.941L 93.941,420L 121,392.941\n\tl 51.029,51.029C 176.716,448.657, 182.858,451, 189,451s 12.284-2.343, 16.971-7.029c 9.373-9.373, 9.373-24.568,0-33.941L 154.941,359\n\tl 103.471-103.471c 22.016,15.362, 48.766,24.388, 77.588,24.388c 74.945,0, 135.917-60.972, 135.917-135.917S 410.945,8.083, 336,8.083z\n\t M 336,231.917c-48.478,0-87.917-39.439-87.917-87.917S 287.522,56.083, 336,56.083S 423.917,95.522, 423.917,144\n\tS 384.478,231.917, 336,231.917z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"key, password, login, log in, signin, sign in\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 336,0c-79.529,0-144,64.471-144,144c0,31.598, 10.186,60.813, 27.441,84.558L 4.667,443.332\n\tc-6.223,6.224-6.223,16.406,0,22.629l 9.372,9.372c 6.223,6.223, 16.406,6.223, 22.628,0L 96,416l 32,32l-27.333,27.332\n\tc-6.223,6.224-6.223,16.406,0,22.629l 9.372,9.372c 6.223,6.223, 16.406,6.223, 22.628,0l 86.666-86.665\n\tc 6.222-6.224, 6.222-16.406,0-22.629l-9.372-9.372c-6.223-6.223-16.406-6.223-22.628,0L 160,416l-32-32l 123.441-123.441\n\tC 275.187,277.815, 304.401,288, 336,288c 79.529,0, 144-64.471, 144-144S 415.529,0, 336,0z M 336,250.4c-58.763,0-106.4-47.637-106.4-106.4\n\tS 277.237,37.6, 336,37.6S 442.4,85.237, 442.4,144S 394.763,250.4, 336,250.4z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"key, password, login, log in, signin, sign in\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 501.066,157.121l-50.553-50.552c-12.396-12.397-32.685-32.684-45.081-45.082l-50.553-50.552\n\tc-12.396-12.397-34.477-14.583-49.065-4.858L 167.595,98.223c-14.588,9.726-20.109,30.514-12.268,46.195l 35.243,70.487\n\tc 1.077,2.153, 2.323,4.448, 3.695,6.83L 16,400L0,512l 96,0 l0-32 l 64,0 l0-64 l 64,0 l0-64l 64,0 l0-35.593 c 3.198,1.906, 6.267,3.608, 9.096,5.022\n\tl 70.485,35.244c 15.683,7.841, 36.47,2.319, 46.195-12.269l 92.147-138.22C 515.65,191.598, 513.462,169.519, 501.066,157.121z\n\t M 75.314,427.313l-22.627-22.627l 155.786-155.785l 22.627,22.627L 75.314,427.313z M 458.51,211.882l-22.628,22.628\n\tc-6.223,6.222-16.404,6.222-22.627,0L 277.49,98.745c-6.223-6.222-6.223-16.405,0-22.627l 22.628-22.628\n\tc 6.223-6.222, 16.404-6.222, 22.627,0L 458.51,189.255C 464.733,195.477, 464.733,205.66, 458.51,211.882z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"key, password, login, log in, signin, sign in\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,0c-88.365,0-160,71.634-160,160c0,10.013, 0.929,19.808, 2.688,29.312L0,384l0,96 c0,17.673, 14.327,32, 32,32\n\tl 32,0 l0-32 l 64,0 l0-64 l 64,0 l0-64 l 64,0 l 41.521-41.521C 314.526,316.637, 332.869,320, 352,320c 88.365,0, 160-71.634, 160-160S 440.365,0, 352,0z\n\t M 399.937,160.063c-26.51,0-48-21.49-48-48s 21.49-48, 48-48s 48,21.49, 48,48S 426.447,160.063, 399.937,160.063z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"contract, minimize, shrink, collapse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,288 L 224,496 L 144,416 L 48,512 L 0,464 L 96,368 L 16,288 ZM 512,48 L 416,144 L 496,224 L 288,224 L 288,16 L 368,96 L 464,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"expand, enlarge, maximize, fullscreen\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,0 L 512,208 L 432,128 L 336,224 L 288,176 L 384,80 L 304,0 ZM 224,336 L 128,432 L 208,512 L 0,512 L 0,304 L 80,384 L 176,288 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"fullscreen, expand, maximize, enlarge\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,64l0,384 l 512,0 L 512,64 L0,64 z M 480,256l0,160 L 256,416 L 32,416 L 32,256 L 32,96 l 224,0 l 224,0 L 480,256 zM 224,160L 224,224L 288,224L 288,160L 336,160L 256,96L 176,160 \tzM 288,352L 288,288L 224,288L 224,352L 176,352L 256,416L 336,352 \tzM 96,288L 160,288L 160,224L 96,224L 96,176L 32,256L 96,336 \tzM 416,224L 352,224L 352,288L 416,288L 416,336L 480,256L 416,176 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"scale-down, smaller, contract, collapse, minimize\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,128L 96,128 l0,288 l 288,0 L 384,128 z M 352,384L 128,384 L 128,160 l 224,0 L 352,384 zM 40,72l0,400 l 400,0 L 440,72 L 40,72 z M 424,456L 56,456 L 56,88 l 368,0 L 424,456 zM 160,256L 320,256L 320,288L 160,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"scale-up, bigger, expand, fullscreen, enlarge\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32l0,480 l 480,0 L 480,32 L0,32 z M 448,480L 32,480 L 32,64 l 416,0 L 448,480 zM 408,104L 72,104 l0,336 l 336,0 L 408,104 z M 392,424L 88,424 L 88,120 l 304,0 L 392,424 zM 224,288 L 160,288 L 160,256 L 224,256 L 224,192 L 256,192 L 256,256 L 320,256 L 320,288 L 256,288 L 256,352 L 224,352 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"contract, minimize, shrink, collapse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,192L 192,0L0,192 \tzM 320,0L 320,192L 512,192 \tzM 320,512L 512,320L 320,320 \tzM 192,512L 192,320L0,320 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"expand, enlarge, maximize, fullscreen\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,192L 192,0L0,0 \tzM 320,0L 512,192L 512,0 \tzM 512,512L 512,320L 320,512 \tzM0,512L 192,512L0,320 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"scale-down, smaller, contract, collapse, minimize\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,144 L 320,192 L 368,48 ZM 264,0L 280,0L 280,32L 264,32zM 296,0L 312,0L 312,32L 296,32zM 328,0L 344,0L 344,32L 328,32zM 360,0L 376,0L 376,32L 360,32zM 392,0L 408,0L 408,32L 392,32zM 424,0L 440,0L 440,32L 424,32zM 457,0L 473,0L 473,32L 457,32zM 72,0L 88,0L 88,32L 72,32zM 104,0L 120,0L 120,32L 104,32zM 136,0L 152,0L 152,32L 136,32zM 168,0L 184,0L 184,32L 168,32zM 200,0L 216,0L 216,32L 200,32zM 232,0L 248,0L 248,32L 232,32zM 144,48 L 192,192 L 48,144 ZM 48,368 L 192,320 L 144,464 ZM 368,464 L 320,320 L 464,368 ZM 40,0L 56,0L 56,32L 40,32zM 264,480L 280,480L 280,512L 264,512zM 296,480L 312,480L 312,512L 296,512zM 328,480L 344,480L 344,512L 328,512zM 360,480L 376,480L 376,512L 360,512zM 392,480L 408,480L 408,512L 392,512zM 424,480L 440,480L 440,512L 424,512zM 457,480L 473,480L 473,512L 457,512zM 72,480L 88,480L 88,512L 72,512zM 104,480L 120,480L 120,512L 104,512zM 136,480L 152,480L 152,512L 136,512zM 168,480L 184,480L 184,512L 168,512zM 200,480L 216,480L 216,512L 200,512zM 232,480L 248,480L 248,512L 232,512zM 40,480L 56,480L 56,512L 40,512zM 0.5,232.5L 32.5,232.5L 32.5,248.5L 0.5,248.5zM 0.5,200.5L 32.5,200.5L 32.5,216.5L 0.5,216.5zM 0.5,168.5L 32.5,168.5L 32.5,184.5L 0.5,184.5zM 0.5,136.5L 32.5,136.5L 32.5,152.5L 0.5,152.5zM 0.5,104.5L 32.5,104.5L 32.5,120.5L 0.5,120.5zM 0.5,72.5L 32.5,72.5L 32.5,88.5L 0.5,88.5zM 0.5,39.5L 32.5,39.5L 32.5,55.5L 0.5,55.5zM 0.5,424.5L 32.5,424.5L 32.5,440.5L 0.5,440.5zM 0.5,392.5L 32.5,392.5L 32.5,408.5L 0.5,408.5zM 0.5,360.5L 32.5,360.5L 32.5,376.5L 0.5,376.5zM 0.5,328.5L 32.5,328.5L 32.5,344.5L 0.5,344.5zM 0.5,296.5L 32.5,296.5L 32.5,312.5L 0.5,312.5zM 0.5,264.5L 32.5,264.5L 32.5,280.5L 0.5,280.5zM 0.5,456.5L 32.5,456.5L 32.5,472.5L 0.5,472.5zM 480.5,232.5L 512.5,232.5L 512.5,248.5L 480.5,248.5zM 480.5,200.5L 512.5,200.5L 512.5,216.5L 480.5,216.5zM 480.5,168.5L 512.5,168.5L 512.5,184.5L 480.5,184.5zM 480.5,136.5L 512.5,136.5L 512.5,152.5L 480.5,152.5zM 480.5,104.5L 512.5,104.5L 512.5,120.5L 480.5,120.5zM 480.5,72.5L 512.5,72.5L 512.5,88.5L 480.5,88.5zM 480.5,39.5L 512.5,39.5L 512.5,55.5L 480.5,55.5zM 480.5,424.5L 512.5,424.5L 512.5,440.5L 480.5,440.5zM 480.5,392.5L 512.5,392.5L 512.5,408.5L 480.5,408.5zM 480.5,360.5L 512.5,360.5L 512.5,376.5L 480.5,376.5zM 480.5,328.5L 512.5,328.5L 512.5,344.5L 480.5,344.5zM 480.5,296.5L 512.5,296.5L 512.5,312.5L 480.5,312.5zM 480.5,264.5L 512.5,264.5L 512.5,280.5L 480.5,280.5zM 480.5,456.5L 512.5,456.5L 512.5,472.5L 480.5,472.5zM 320,192 L 192,192 L 192,320 L 320,320 L 320,192 Z M 352,160 L 352,160 L 352,352 L 160,352 L 160,160 L 352,160 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"scale-up, bigger, expand, fullscreen, enlarge\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,0l0,512 l 512,0 L 512,0 L0,0 z M 480,480L 32,480 L 32,32 l 448,0 L 480,480 zM 336,80 L 480,32 L 432,176 ZM 168,128L 184,128L 184,160L 168,160zM 200,128L 216,128L 216,160L 200,160zM 232,128L 248,128L 248,160L 232,160zM 264,128L 280,128L 280,160L 264,160zM 296,128L 312,128L 312,160L 296,160zM 328,128L 344,128L 344,160L 328,160zM 168,352L 184,352L 184,384L 168,384zM 200,352L 216,352L 216,384L 200,384zM 232,352L 248,352L 248,384L 232,384zM 264,352L 280,352L 280,384L 264,384zM 296,352L 312,352L 312,384L 296,384zM 328,352L 344,352L 344,384L 328,384zM 128,328L 160,328L 160,344L 128,344zM 128,296L 160,296L 160,312L 128,312zM 128,264L 160,264L 160,280L 128,280zM 128,232L 160,232L 160,248L 128,248zM 128,200L 160,200L 160,216L 128,216zM 128,168L 160,168L 160,184L 128,184zM 352,328L 384,328L 384,344L 352,344zM 352,296L 384,296L 384,312L 352,312zM 352,264L 384,264L 384,280L 352,280zM 352,232L 384,232L 384,248L 352,248zM 352,200L 384,200L 384,216L 352,216zM 352,168L 384,168L 384,184L 352,184zM 80,176 L 32,32 L 176,80 ZM 176,432 L 32,480 L 80,336 ZM 432,336 L 480,480 L 336,432 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"contract, minimize, shrink, collapse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,288 L 224,288 L 224,480 L 154.87,410.87 L 53.87,511.87 L 0.13,458.13 L 101.13,357.13 ZM 410.87,357.13 L 511.87,458.13 L 458.13,511.87 L 357.13,410.87 L 288,480 L 288,288 L 480,288 ZM 480,224 L 288,224 L 288,32 L 357.13,101.13 L 458.13,0.13 L 511.87,53.87 L 410.87,154.87 ZM 154.87,101.13 L 224,32 L 224,224 L 32,224 L 101.13,154.87 L 0.13,53.87 L 53.87,0.13 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"expand, enlarge, maximize, fullscreen\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,0 L 512,192 L 442.87,122.87 L 336.87,228.87 L 283.13,175.13 L 389.13,69.13 L 320,0 ZM 122.87,69.13 L 228.87,175.13 L 175.13,228.87 L 69.13,122.87 L 0,192 L 0,0 L 192,0 ZM 442.87,389.13 L 512,320 L 512,512 L 320,512 L 389.13,442.87 L 283.13,336.87 L 336.87,283.13 ZM 228.87,336.87 L 122.87,442.87 L 192,512 L 0,512 L 0,320 L 69.13,389.13 L 175.13,283.13 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"search, magnifier, lookup, find\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,0c 88.366,0, 160.001,71.635, 160.001,160c0,32.62-9.771,62.954-26.532,88.251c 0.005-0.007, 0.010-0.015, 0.015-0.022\n\tl 35.18,35.18c 17.436-9.611, 33.847-11.408, 42.221-3.035l 135.764,135.764c 12.497,12.498, 2.366,42.891-22.627,67.885\n\tc-24.994,24.992-55.386,35.123-67.882,22.627L 280.375,370.883c-8.375-8.373-6.576-24.783, 3.033-42.221l-35.178-35.178\n\tc 0.021-0.016, 0.043-0.029, 0.063-0.045C 222.987,310.219, 192.639,320, 160,320C 71.635,320,0,248.365,0,160S 71.635,0, 160,0z\n\t M 69.49,250.509C 93.666,274.686, 125.811,288, 160,288c 34.19,0, 66.334-13.314, 90.511-37.491C 274.687,226.333, 288,194.189, 288,160\n\ts-13.313-66.333-37.489-90.51C 226.334,45.313, 194.19,32, 160,32c-34.189,0-66.334,13.314-90.51,37.49C 45.314,93.667, 32,125.81, 32,160\n\tS 45.314,226.333, 69.49,250.509z M 256,160c0,14.397-3.175,28.051-8.854,40.309c-7.261-66.992-60.462-120.193-127.454-127.455\n\tC 131.949,67.174, 145.604,64, 160,64C 213.021,64, 256,106.979, 256,160z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"zoom out, smaller, scale, reduce\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 496.131,435.698L 374.855,332.551c-12.537-11.283-25.945-16.463-36.776-15.963C 366.707,283.054, 384,239.549, 384,192\n\t\tC 384,85.961, 298.039,0, 192,0C 85.962,0,0,85.961,0,192c0,106.039, 85.961,192, 192,192c 47.549,0, 91.054-17.293, 124.588-45.922\n\t\tc-0.5,10.831, 4.68,24.239, 15.963,36.776l 103.147,121.276c 17.661,19.623, 46.511,21.277, 64.11,3.678S 515.754,453.359, 496.131,435.698\n\t\tz M 192,320c-70.692,0-128-57.308-128-128S 121.308,64, 192,64s 128,57.308, 128,128S 262.693,320, 192,320zM 96,160L 288,160L 288,224L 96,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"zoom in, enlarge, scale\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 496.131,435.698L 374.855,332.551c-12.537-11.283-25.945-16.463-36.776-15.963C 366.707,283.054, 384,239.549, 384,192\n\t\tC 384,85.961, 298.039,0, 192,0C 85.962,0,0,85.961,0,192c0,106.039, 85.961,192, 192,192c 47.549,0, 91.054-17.293, 124.588-45.922\n\t\tc-0.5,10.831, 4.68,24.239, 15.963,36.776l 103.147,121.276c 17.661,19.623, 46.511,21.277, 64.11,3.678S 515.754,453.359, 496.131,435.698\n\t\tz M 192,320c-70.692,0-128-57.308-128-128S 121.308,64, 192,64s 128,57.308, 128,128S 262.693,320, 192,320zM 224,96L 160,96L 160,160L 96,160L 96,224L 160,224L 160,288L 224,288L 224,224L 288,224L 288,160L 224,160 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"search, magnifier, lookup, find, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 496.131,435.698L 374.855,332.551c-12.537-11.283-25.945-16.463-36.776-15.963C 366.707,283.055, 384,239.549, 384,192\n\tC 384,85.961, 298.039,0, 192,0C 85.962,0,0,85.961,0,192s 85.961,192, 192,192c 47.549,0, 91.055-17.293, 124.588-45.922\n\tc-0.5,10.831, 4.68,24.238, 15.963,36.775L 435.698,496.13c 17.661,19.623, 46.511,21.277, 64.109,3.678\n\tC 517.407,482.209, 515.754,453.359, 496.131,435.698z M 287.261,292L 96.74,292 c-2.694-2.56-5.281-5.232-7.762-8l 206.044,0 \n\tC 292.541,286.768, 289.955,289.44, 287.261,292z M 151.544,324c-7.014-2.141-13.79-4.824-20.281-8l 121.475,0 \n\tc-6.491,3.176-13.267,5.859-20.281,8L 151.544,324 z M 117.089,308c-3.851-2.484-7.567-5.156-11.142-8l 172.106,0 \n\tc-3.575,2.844-7.292,5.516-11.143,8L 117.089,308 z M 82.332,276c-1.997-2.596-3.903-5.264-5.715-8l 230.766,0 \n\tc-1.812,2.736-3.718,5.404-5.715,8L 82.332,276 z M 71.701,260c-1.486-2.615-2.894-5.281-4.21-8l 249.018,0 c-1.316,2.719-2.724,5.385-4.21,8\n\tL 71.701,260 z M 63.936,244c-1.071-2.628-2.071-5.294-2.981-8l 262.090,0 c-0.911,2.706-1.91,5.372-2.982,8L 63.936,244 z M 58.539,228\n\tc-0.712-2.637-1.355-5.303-1.912-8l 270.746,0 c-0.557,2.697-1.2,5.363-1.911,8L 58.539,228 z M 53.778,192c0-1.338, 0.024-2.671, 0.062-4\n\tl 276.319,0 c 0.038,1.329, 0.062,2.662, 0.062,4s-0.023,2.671-0.062,4L 53.84,196 C 53.802,194.671, 53.778,193.338, 53.778,192z M 96.74,92l 190.52,0 \n\tc 2.694,2.56, 5.28,5.232, 7.762,8L 88.979,100 C 91.459,97.232, 94.045,94.56, 96.74,92z M 232.456,60c 7.014,2.141, 13.79,4.824, 20.281,8L 131.263,68 \n\tc 6.491-3.176, 13.267-5.859, 20.281-8L 232.456,60 z M 266.91,76c 3.851,2.484, 7.567,5.157, 11.143,8L 105.947,84 \n\tc 3.575-2.843, 7.292-5.516, 11.143-8L 266.91,76 z M 301.667,108c 1.997,2.596, 3.903,5.263, 5.715,8L 76.617,116 c 1.812-2.737, 3.718-5.404, 5.715-8\n\tL 301.667,108 z M 312.298,124c 1.486,2.616, 2.894,5.282, 4.21,8L 67.491,132 c 1.316-2.718, 2.724-5.384, 4.21-8L 312.298,124 z M 320.062,140\n\tc 1.072,2.628, 2.070,5.294, 2.981,8L 60.955,148 c 0.911-2.706, 1.91-5.372, 2.981-8L 320.062,140 z M 325.46,156c 0.712,2.637, 1.355,5.303, 1.912,8\n\tL 56.626,164 c 0.557-2.697, 1.2-5.363, 1.912-8L 325.46,156 z M 328.771,172c 0.385,2.643, 0.692,5.311, 0.925,8L 54.304,180 \n\tc 0.232-2.689, 0.54-5.357, 0.924-8L 328.771,172 z M 329.695,204c-0.232,2.689-0.54,5.357-0.925,8L 55.228,212 c-0.384-2.643-0.692-5.311-0.924-8\n\tL 329.695,204 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"search, magnifier, lookup, find\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 496.131,435.698L 374.855,332.551c-12.537-11.283-25.945-16.463-36.776-15.963C 366.707,283.054, 384,239.549, 384,192\n\tC 384,85.961, 298.039,0, 192,0C 85.962,0,0,85.961,0,192c0,106.039, 85.961,192, 192,192c 47.549,0, 91.054-17.293, 124.588-45.922\n\tc-0.5,10.831, 4.68,24.239, 15.963,36.776l 103.147,121.276c 17.661,19.623, 46.511,21.277, 64.11,3.678S 515.754,453.359, 496.131,435.698z\n\t M 192,320c-70.692,0-128-57.308-128-128S 121.308,64, 192,64s 128,57.308, 128,128S 262.693,320, 192,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"zoom out, smaller, scale, reduce\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,160L 256,160L 256,192L 96,192zM 318.771,278.924C 339.674,249.979, 352,214.432, 352,176C 352,78.798, 273.202,0, 176,0S0,78.798,0,176s 78.798,176, 176,176\n\t\tc 38.432,0, 73.979-12.326, 102.924-33.229L 448,512l 64-64L 318.771,278.924z M 176,304c-70.692,0-128-57.308-128-128S 105.308,48, 176,48\n\t\ts 128,57.308, 128,128S 246.693,304, 176,304z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"zoom in, enlarge, scale\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,96L 160,96L 160,160L 96,160L 96,192L 160,192L 160,256L 192,256L 192,192L 256,192L 256,160L 192,160 \tzM 318.771,278.924C 339.674,249.979, 352,214.432, 352,176C 352,78.798, 273.202,0, 176,0S0,78.798,0,176s 78.798,176, 176,176\n\t\tc 38.432,0, 73.979-12.326, 102.924-33.229L 448,512l 64-64L 318.771,278.924z M 176,304c-70.692,0-128-57.308-128-128S 105.308,48, 176,48\n\t\ts 128,57.308, 128,128S 246.693,304, 176,304z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"search, magnifier, lookup, find\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 449.077,469.246l-114.54-168.305c 65.459-51.835, 83.963-145.677, 39.835-219.126\n\t\tC 326.445,2.041, 222.559-23.857, 142.793,24.060C 63.028,71.993, 37.131,175.876, 85.054,255.643\n\t\tc 43.213,71.942, 131.962,100.047, 207.479,69.717l 95.143,180.783c 2.95,5.611, 9.802,7.523, 15.229,4.273l 42.784-25.72\n\t\tC 451.126,481.433, 452.653,474.482, 449.077,469.246z M 288.781,267.032c-54.211,32.563-124.808,14.959-157.375-39.253\n\t\tc-32.565-54.197-14.952-124.794, 39.253-157.36c 54.189-32.57, 124.787-14.961, 157.351,39.245\n\t\tC 360.579,163.862, 342.978,234.475, 288.781,267.032z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"search, magnifier, lookup, find\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 440.698,471.936L 313.486,285.050c-3.336-4.914-10.234-6.433-15.325-3.379l-16.069,9.668\n\t\tc-5.087,3.050-6.992,9.845-4.229,15.111l 105.281,200.064c 2.763,5.252, 9.177,7.056, 14.271,3.99l 40.101-24.093\n\t\tC 442.608,483.356, 444.033,476.851, 440.698,471.936zM 296.322,266.061c 48.104-30.646, 50.188-110.532, 4.747-181.875c-38.64-60.653-97.389-92.75-143.688-82.201\n\t\tc-10.647,2.086-24.247,7.761-37.93,16.475c-13.683,8.721-24.604,18.643-30.979,27.432C 59.346,83.396, 63.617,150.194, 102.25,210.83\n\t\tc 45.45,71.346, 118.727,103.23, 166.844,72.58l 27.22-17.346L 296.322,266.061z M 278.977,238.831\n\t\tc-31.746,20.215-87.728-8.487-122.253-62.704c-34.536-54.196-36.891-117.063-5.14-137.293c 31.722-20.217, 87.719,8.5, 122.243,62.708\n\t\tC 308.357,155.731, 310.704,218.608, 278.977,238.831z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"binoculars, lookup, search, find\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,224L 448,224L 416,64L 376,64L 384,0L 288,0L 296,64L 216,64L 224,0L 128,0L 136,64L 96,64L 64,224L 32,224L0,480L0,512L 192,512L 192,224L 224,224L 224,192L 288,192L 288,224L 320,224L 320,512L 512,512L 512,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"binoculars, lookup, search, find\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,0L 224,0L 224,32L 32,32zM 288,0L 480,0L 480,32L 288,32zM 476,160l-28,0 L 448,32 L 320,32 l0,128 L 192,160 L 192,32 L 64,32 l0,128 L 36,160 c-19.8,0-36,16.2-36,36l0,280 c0,19.8, 16.2,36, 36,36l 152,0 c 19.8,0, 36-16.2, 36-36L 224,288 l 64,0 \n\tl0,188 c0,19.8, 16.2,36, 36,36l 152,0 c 19.8,0, 36-16.2, 36-36L 512,196 C 512,176.2, 495.8,160, 476,160z M 174,480L 50,480 c-9.9,0-18-7.2-18-16\n\ts 8.1-16, 18-16l 124,0 c 9.9,0, 18,7.2, 18,16S 183.9,480, 174,480z M 272,256l-32,0 c-8.8,0-16-7.2-16-16s 7.2-16, 16-16l 32,0 c 8.8,0, 16,7.2, 16,16\n\tS 280.8,256, 272,256z M 462,480L 338,480 c-9.9,0-18-7.2-18-16s 8.1-16, 18-16l 124,0 c 9.9,0, 18,7.2, 18,16S 471.9,480, 462,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"microscope, research, lab\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,464c-25.943,0-50.785-4.788-73.707-13.504C 168.378,467.154, 160,488.598, 160,512l 192,0 \n\t\tc0-23.402-8.378-44.846-22.293-61.504C 306.785,459.212, 281.944,464, 256,464zM 320,288l0,64 l 43.328,0 c-1.777,1.981-3.608,3.927-5.505,5.823C 330.626,385.021, 294.464,400, 256,400\n\t\ts-74.625-14.979-101.823-42.177C 126.979,330.626, 112,294.464, 112,256c0-36.326, 14.35-71.562, 38.771-98.194l 117.583,91.453\n\t\tl 39.293-50.519L 52.122,0l0,0L0,40.54l 112.794,87.729C 83.033,162.104, 64,207.427, 64,256c0,106.039, 85.961,192, 192,192\n\t\tc 71.066,0, 133.109-38.612, 166.308-96L 512,352 l0-64 L 320,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spinner, loading, busy, wait, wheel, repeat\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,192 L 320,192 L 391.765,120.235 C 355.5,83.972 307.285,64 256,64 C 204.715,64 156.5,83.972 120.235,120.235 C 83.972,156.5 64,204.715 64,256 C 64,307.285 83.972,355.5 120.235,391.765 C 156.5,428.028 204.715,448 256,448 C 307.285,448 355.5,428.028 391.764,391.764 C 394.792,388.737 397.694,385.618 400.492,382.43 L 448.652,424.571 C 401.729,478.154 332.82,512 256,512 C 114.615,512 0,397.385 0,256 C 0,114.615 114.615,0 256,0 C 326.693,0 390.684,28.663 437.008,74.992 L 512,0 L 512,192 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spinner, loading, busy, wait, wheel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 0.021,256.809l-0.011,0.002c0,0, 0.006,0.045, 0.014,0.111c 0.055,1.939, 0.275,3.838, 0.661,5.676\n\tc 0.102,0.873, 0.214,1.83, 0.337,2.887c 0.111,0.943, 0.23,1.957, 0.359,3.039c 0.187,1.283, 0.385,2.646, 0.595,4.088\n\tc 0.428,2.873, 0.9,6.062, 1.454,9.479c 0.674,3.223, 1.402,6.707, 2.182,10.432c 0.355,1.859, 0.888,3.752, 1.393,5.703\n\tc 0.512,1.945, 1.039,3.947, 1.58,6.002c 0.283,1.021, 0.52,2.066, 0.854,3.104c 0.328,1.037, 0.66,2.088, 0.994,3.15\n\tc 0.674,2.117, 1.363,4.283, 2.068,6.494c 0.176,0.553, 0.354,1.105, 0.532,1.662c 0.204,0.551, 0.407,1.104, 0.613,1.658\n\tc 0.413,1.109, 0.829,2.229, 1.251,3.357c 0.848,2.248, 1.711,4.539, 2.59,6.871c 0.984,2.283, 1.985,4.607, 3.002,6.967\n\tc 0.509,1.174, 1.022,2.357, 1.539,3.549c 0.524,1.188, 1.135,2.352, 1.704,3.537c 1.161,2.357, 2.339,4.748, 3.531,7.166\n\tc 1.235,2.393, 2.604,4.756, 3.923,7.164c 0.668,1.199, 1.34,2.404, 2.014,3.615c 0.684,1.205, 1.451,2.375, 2.178,3.57\n\tc 1.475,2.369, 2.965,4.762, 4.467,7.174c 6.32,9.447, 13.338,18.783, 21.105,27.639c 7.856,8.789, 16.363,17.125, 25.346,24.801\n\tc 9.090,7.568, 18.632,14.451, 28.363,20.557c 9.802,6.018, 19.822,11.156, 29.688,15.572c 2.502,1.020, 4.982,2.031, 7.439,3.033\n\tc 1.231,0.486, 2.434,1.016, 3.668,1.459c 1.235,0.434, 2.465,0.867, 3.688,1.297c 2.449,0.842, 4.839,1.734, 7.242,2.496\n\tc 2.416,0.715, 4.802,1.422, 7.156,2.121c 1.178,0.336, 2.33,0.713, 3.502,1.006c 1.173,0.287, 2.338,0.57, 3.493,0.852\n\tc 2.303,0.559, 4.571,1.107, 6.802,1.648c 2.25,0.434, 4.463,0.861, 6.635,1.279c 1.083,0.205, 2.155,0.41, 3.217,0.611\n\tc 0.531,0.1, 1.059,0.199, 1.583,0.299c 0.53,0.074, 1.059,0.146, 1.583,0.221c 2.096,0.291, 4.146,0.576, 6.15,0.855\n\tc 0.999,0.137, 1.986,0.273, 2.961,0.408c 0.973,0.143, 1.952,0.189, 2.907,0.285c 1.911,0.168, 3.772,0.332, 5.582,0.49\n\tc 1.808,0.152, 3.552,0.344, 5.263,0.369c 0.115,0.004, 0.226,0.008, 0.341,0.013C 223.866,497.983, 238.063,512, 255.543,512\n\tc 0.271,0, 0.54-0.014, 0.81-0.021l0,0.011c0,0, 0.045-0.006, 0.112-0.014c 1.939-0.055, 3.837-0.275, 5.675-0.661\n\tc 0.874-0.102, 1.831-0.213, 2.888-0.336c 0.942-0.111, 1.956-0.231, 3.038-0.359c 1.283-0.188, 2.646-0.386, 4.088-0.596\n\tc 2.873-0.428, 6.062-0.9, 9.479-1.454c 3.223-0.674, 6.707-1.402, 10.432-2.181c 1.859-0.356, 3.752-0.889, 5.703-1.393\n\tc 1.946-0.513, 3.947-1.040, 6.002-1.581c 1.022-0.283, 2.066-0.52, 3.104-0.854c 1.037-0.328, 2.087-0.659, 3.15-0.994\n\tc 2.116-0.674, 4.282-1.363, 6.494-2.067c 0.552-0.177, 1.105-0.354, 1.662-0.533c 0.55-0.203, 1.103-0.407, 1.658-0.613\n\tc 1.108-0.412, 2.228-0.829, 3.357-1.25c 2.248-0.849, 4.539-1.712, 6.87-2.591c 2.284-0.984, 4.608-1.985, 6.968-3.002\n\tc 1.174-0.509, 2.357-1.022, 3.549-1.539c 1.188-0.524, 2.351-1.135, 3.537-1.704c 2.357-1.161, 4.747-2.339, 7.165-3.531\n\tc 2.393-1.235, 4.756-2.604, 7.164-3.923c 1.199-0.668, 2.404-1.339, 3.615-2.014c 1.205-0.683, 2.375-1.45, 3.57-2.177\n\tc 2.369-1.476, 4.762-2.965, 7.175-4.468c 9.445-6.32, 18.782-13.337, 27.639-21.105c 8.787-7.856, 17.124-16.363, 24.801-25.345\n\tc 7.568-9.091, 14.451-18.632, 20.556-28.364c 6.018-9.801, 11.157-19.822, 15.571-29.688c 1.021-2.501, 2.031-4.982, 3.034-7.439\n\tc 0.487-1.231, 1.016-2.434, 1.459-3.667c 0.435-1.236, 0.866-2.466, 1.296-3.688c 0.843-2.449, 1.734-4.839, 2.497-7.242\n\tc 0.716-2.416, 1.423-4.802, 2.12-7.155c 0.337-1.179, 0.715-2.33, 1.008-3.502c 0.285-1.174, 0.569-2.338, 0.851-3.494\n\tc 0.559-2.303, 1.108-4.57, 1.648-6.801c 0.434-2.251, 0.86-4.464, 1.279-6.636c 0.205-1.082, 0.409-2.154, 0.611-3.217\n\tc 0.1-0.53, 0.199-1.058, 0.298-1.582c 0.074-0.531, 0.148-1.059, 0.222-1.584c 0.291-2.095, 0.576-4.146, 0.854-6.15\n\tc 0.139-0.998, 0.275-1.985, 0.41-2.961c 0.142-0.973, 0.188-1.951, 0.284-2.906c 0.168-1.911, 0.332-3.773, 0.49-5.582\n\tc 0.152-1.808, 0.343-3.553, 0.369-5.264c 0.010-0.267, 0.020-0.522, 0.029-0.787C 497.746,287.923, 512,273.627, 512,256\n\tc0-0.271-0.014-0.54-0.021-0.81l 0.011,0c0,0-0.006-0.045-0.014-0.112c-0.055-1.939-0.275-3.837-0.661-5.675\n\tc-0.102-0.874-0.214-1.831-0.337-2.888c-0.111-0.943-0.23-1.957-0.359-3.038c-0.187-1.283-0.385-2.647-0.595-4.088\n\tc-0.428-2.873-0.9-6.062-1.454-9.479c-0.674-3.222-1.402-6.707-2.182-10.431c-0.355-1.86-0.888-3.753-1.393-5.704\n\tc-0.512-1.946-1.039-3.947-1.58-6.001c-0.283-1.022-0.52-2.067-0.854-3.104c-0.328-1.038-0.66-2.087-0.994-3.15\n\tc-0.674-2.117-1.363-4.283-2.068-6.495c-0.176-0.551-0.354-1.105-0.532-1.662c-0.204-0.55-0.407-1.103-0.613-1.658\n\tc-0.413-1.108-0.829-2.227-1.251-3.357c-0.848-2.249-1.711-4.54-2.59-6.87c-0.984-2.285-1.985-4.608-3.002-6.968\n\tc-0.51-1.174-1.022-2.357-1.539-3.549c-0.524-1.188-1.135-2.351-1.704-3.538c-1.161-2.357-2.339-4.747-3.531-7.165\n\tc-1.235-2.393-2.604-4.756-3.923-7.164c-0.668-1.199-1.34-2.404-2.014-3.615c-0.684-1.205-1.451-2.375-2.178-3.57\n\tc-1.475-2.37-2.965-4.762-4.467-7.175c-6.32-9.446-13.338-18.782-21.105-27.639c-7.856-8.788-16.363-17.125-25.346-24.801\n\tc-9.090-7.568-18.632-14.451-28.363-20.556c-9.802-6.018-19.822-11.157-29.688-15.571c-2.502-1.020-4.982-2.031-7.439-3.034\n\tc-1.231-0.487-2.434-1.016-3.668-1.459c-1.235-0.435-2.465-0.867-3.688-1.296c-2.449-0.842-4.839-1.734-7.242-2.497\n\tc-2.416-0.716-4.802-1.423-7.156-2.121c-1.178-0.336-2.33-0.714-3.502-1.007c-1.173-0.286-2.338-0.569-3.493-0.851\n\tc-2.303-0.559-4.571-1.108-6.802-1.649c-2.25-0.434-4.463-0.86-6.635-1.279c-1.083-0.206-2.155-0.41-3.217-0.611\n\tc-0.531-0.1-1.059-0.199-1.583-0.298c-0.53-0.074-1.059-0.148-1.583-0.221c-2.096-0.292-4.146-0.577-6.15-0.855\n\tc-0.999-0.138-1.986-0.275-2.961-0.41c-0.973-0.142-1.952-0.188-2.907-0.285c-1.911-0.168-3.772-0.332-5.582-0.49\n\tc-1.808-0.152-3.552-0.343-5.263-0.369c-0.426-0.016-0.837-0.031-1.256-0.046C 287.201,13.999, 273.012,0, 255.543,0\n\tc-0.271,0-0.54,0.014-0.81,0.021l-0.001-0.011c0,0-0.045,0.006-0.111,0.014c-1.939,0.055-3.838,0.275-5.676,0.661\n\tc-0.874,0.102-1.831,0.213-2.888,0.336c-0.942,0.111-1.956,0.231-3.038,0.359c-1.283,0.188-2.646,0.386-4.088,0.596\n\tc-2.873,0.428-6.062,0.9-9.479,1.454c-3.223,0.674-6.707,1.402-10.432,2.181c-1.859,0.356-3.752,0.889-5.703,1.393\n\tc-1.946,0.513-3.947,1.040-6.002,1.581c-1.022,0.283-2.066,0.52-3.104,0.854c-1.037,0.328-2.087,0.659-3.15,0.994\n\tc-2.116,0.674-4.282,1.363-6.494,2.067c-0.552,0.177-1.105,0.354-1.662,0.533c-0.55,0.203-1.103,0.407-1.658,0.613\n\tc-1.108,0.412-2.228,0.829-3.357,1.25c-2.248,0.849-4.539,1.712-6.87,2.591c-2.284,0.984-4.608,1.985-6.968,3.002\n\tc-1.174,0.509-2.357,1.022-3.549,1.539c-1.188,0.524-2.351,1.135-3.537,1.704c-2.357,1.161-4.747,2.339-7.165,3.531\n\tc-2.393,1.235-4.756,2.604-7.164,3.923c-1.199,0.668-2.404,1.339-3.615,2.014c-1.205,0.683-2.375,1.45-3.57,2.177\n\tc-2.369,1.476-4.762,2.965-7.175,4.468c-9.445,6.32-18.782,13.337-27.639,21.105c-8.787,7.856-17.124,16.363-24.801,25.345\n\tc-7.568,9.091-14.451,18.632-20.556,28.364c-6.018,9.801-11.157,19.822-15.571,29.688c-1.021,2.501-2.031,4.982-3.034,7.439\n\tc-0.487,1.231-1.016,2.434-1.459,3.667c-0.435,1.236-0.866,2.466-1.296,3.688c-0.843,2.449-1.734,4.839-2.497,7.242\n\tc-0.716,2.416-1.423,4.802-2.12,7.155c-0.337,1.179-0.715,2.33-1.008,3.502c-0.285,1.174-0.569,2.338-0.851,3.494\n\tc-0.559,2.303-1.108,4.57-1.648,6.801c-0.434,2.251-0.86,4.464-1.279,6.636c-0.205,1.082-0.409,2.154-0.611,3.217\n\tc-0.1,0.53-0.199,1.058-0.298,1.582c-0.074,0.531-0.148,1.059-0.222,1.584c-0.291,2.095-0.576,4.146-0.854,6.15\n\tc-0.139,0.998-0.275,1.985-0.41,2.961c-0.142,0.973-0.188,1.951-0.284,2.906c-0.168,1.911-0.332,3.773-0.49,5.582\n\tc-0.152,1.808-0.343,3.553-0.369,5.264c-0.010,0.274-0.020,0.538-0.029,0.81C 13.763,224.583,0,238.679,0,256\n\tC0,256.271, 0.014,256.539, 0.021,256.809z M 36.759,224.353c 0.021-0.098, 0.043-0.192, 0.064-0.29c 0.322-1.624, 0.816-3.271, 1.278-4.971\n\tc 0.467-1.694, 0.947-3.438, 1.44-5.227c 0.258-0.89, 0.467-1.801, 0.773-2.703c 0.298-0.901, 0.601-1.814, 0.905-2.738\n\tc 0.609-1.841, 1.232-3.725, 1.868-5.647c 0.158-0.479, 0.317-0.962, 0.478-1.446c 0.185-0.477, 0.37-0.957, 0.557-1.438\n\tc 0.373-0.962, 0.75-1.934, 1.13-2.915c 0.76-1.952, 1.535-3.941, 2.323-5.965c 0.884-1.98, 1.783-3.995, 2.696-6.040\n\tc 0.454-1.019, 0.912-2.045, 1.373-3.078c 0.466-1.030, 1.018-2.036, 1.526-3.063c 1.035-2.042, 2.085-4.111, 3.147-6.206\n\tc 1.101-2.071, 2.327-4.112, 3.499-6.196c 0.592-1.037, 1.187-2.080, 1.785-3.128c 0.605-1.043, 1.293-2.051, 1.938-3.083\n\tc 1.308-2.049, 2.628-4.116, 3.959-6.201c 5.617-8.149, 11.816-16.199, 18.665-23.819c 6.937-7.552, 14.421-14.702, 22.299-21.274\n\tc 7.987-6.464, 16.343-12.325, 24.838-17.511c 8.565-5.097, 17.3-9.419, 25.867-13.129c 2.175-0.85, 4.331-1.691, 6.467-2.525\n\tc 1.068-0.406, 2.108-0.855, 3.18-1.222c 1.073-0.357, 2.14-0.714, 3.202-1.068c 2.125-0.693, 4.191-1.444, 6.274-2.071\n\tc 2.092-0.587, 4.157-1.166, 6.196-1.737c 1.019-0.275, 2.013-0.595, 3.027-0.831c 1.015-0.229, 2.022-0.457, 3.022-0.684\n\tc 1.989-0.455, 3.948-0.903, 5.874-1.344c 1.944-0.343, 3.855-0.68, 5.731-1.011c 0.934-0.165, 1.858-0.329, 2.773-0.49\n\tc 0.457-0.081, 0.912-0.162, 1.364-0.242c 0.458-0.056, 0.914-0.111, 1.367-0.166c 1.806-0.224, 3.574-0.441, 5.302-0.655\n\tc 0.86-0.108, 1.711-0.216, 2.551-0.322c 0.837-0.113, 1.682-0.133, 2.505-0.204c 1.646-0.119, 3.249-0.236, 4.808-0.35\n\tc 1.555-0.109, 3.055-0.262, 4.529-0.254c 2.924-0.066, 5.66-0.128, 8.19-0.186c 2.332,0.084, 4.474,0.162, 6.409,0.231\n\tc 0.957,0.027, 1.863,0.054, 2.716,0.078c 1.061,0.067, 2.054,0.13, 2.979,0.189c 1.065,0.069, 2.030,0.133, 2.91,0.19\n\tc 1.628,0.255, 3.296,0.391, 4.995,0.391c 0.233,0, 0.465-0.013, 0.698-0.018c 0.066,0.004, 0.112,0.007, 0.112,0.007l0-0.010 \n\tc 15.57-0.389, 28.375-11.892, 30.778-26.877c 0.271,0.060, 0.532,0.118, 0.806,0.178c 1.623,0.322, 3.271,0.816, 4.971,1.278\n\tc 1.693,0.467, 3.438,0.947, 5.227,1.44c 0.889,0.258, 1.801,0.467, 2.702,0.773c 0.901,0.298, 1.815,0.601, 2.739,0.906\n\tc 1.84,0.609, 3.724,1.232, 5.646,1.868c 0.48,0.158, 0.962,0.317, 1.446,0.478c 0.478,0.185, 0.957,0.37, 1.438,0.556\n\tc 0.963,0.373, 1.934,0.75, 2.915,1.13c 1.952,0.76, 3.942,1.535, 5.966,2.323c 1.98,0.884, 3.994,1.783, 6.040,2.696\n\tc 1.019,0.454, 2.044,0.912, 3.078,1.373c 1.030,0.466, 2.036,1.018, 3.063,1.527c 2.041,1.035, 4.111,2.085, 6.205,3.147\n\tc 2.072,1.101, 4.113,2.327, 6.197,3.499c 1.037,0.592, 2.080,1.187, 3.128,1.786c 1.043,0.605, 2.051,1.293, 3.083,1.938\n\tc 2.049,1.308, 4.115,2.628, 6.201,3.959c 8.148,5.617, 16.199,11.816, 23.818,18.665c 7.552,6.937, 14.703,14.421, 21.275,22.299\n\tc 6.464,7.987, 12.324,16.343, 17.51,24.838c 5.098,8.565, 9.42,17.3, 13.13,25.868c 0.849,2.174, 1.691,4.331, 2.525,6.466\n\tc 0.406,1.068, 0.855,2.108, 1.222,3.18c 0.357,1.073, 0.714,2.14, 1.068,3.202c 0.693,2.125, 1.444,4.192, 2.071,6.274\n\tc 0.587,2.092, 1.165,4.158, 1.737,6.196c 0.275,1.019, 0.595,2.013, 0.83,3.027c 0.23,1.015, 0.458,2.023, 0.684,3.023\n\tc 0.455,1.989, 0.904,3.948, 1.344,5.874c 0.344,1.944, 0.681,3.855, 1.012,5.731c 0.165,0.934, 0.328,1.858, 0.49,2.774\n\tc 0.081,0.457, 0.162,0.912, 0.242,1.364c 0.055,0.458, 0.111,0.914, 0.166,1.367c 0.223,1.806, 0.441,3.574, 0.655,5.302\n\tc 0.108,0.86, 0.216,1.71, 0.321,2.55c 0.113,0.837, 0.134,1.682, 0.205,2.505c 0.119,1.646, 0.236,3.249, 0.35,4.808\n\tc 0.109,1.555, 0.262,3.055, 0.254,4.529c 0.066,2.924, 0.128,5.66, 0.186,8.19c-0.084,2.332-0.162,4.474-0.231,6.409\n\tc-0.027,0.957-0.054,1.863-0.078,2.716c-0.067,1.061-0.13,2.054-0.189,2.979c-0.069,1.065-0.133,2.030-0.19,2.91\n\tC 448.135,252.633, 448,254.301, 448,256c0,0.234, 0.013,0.465, 0.018,0.698c-0.004,0.066-0.008,0.112-0.008,0.112l 0.011,0 \n\tc 0.384,15.383, 11.618,28.064, 26.341,30.685c-0.033,0.148-0.065,0.292-0.099,0.442c-0.322,1.624-0.816,3.271-1.278,4.971\n\tc-0.467,1.694-0.947,3.438-1.44,5.227c-0.258,0.89-0.467,1.801-0.773,2.703c-0.298,0.901-0.601,1.814-0.905,2.738\n\tc-0.609,1.841-1.232,3.725-1.868,5.647c-0.158,0.479-0.317,0.962-0.478,1.446c-0.185,0.477-0.37,0.957-0.557,1.438\n\tc-0.373,0.962-0.75,1.934-1.13,2.915c-0.76,1.952-1.535,3.941-2.323,5.965c-0.884,1.98-1.783,3.995-2.696,6.040\n\tc-0.454,1.019-0.912,2.045-1.373,3.078c-0.466,1.030-1.018,2.036-1.526,3.063c-1.035,2.042-2.085,4.111-3.147,6.206\n\tc-1.101,2.071-2.327,4.112-3.499,6.196c-0.592,1.037-1.187,2.080-1.785,3.128c-0.605,1.043-1.293,2.051-1.938,3.083\n\tc-1.308,2.049-2.628,4.116-3.959,6.201c-5.617,8.149-11.816,16.199-18.665,23.819c-6.937,7.552-14.421,14.702-22.299,21.274\n\tc-7.987,6.464-16.343,12.325-24.838,17.511c-8.565,5.097-17.3,9.419-25.867,13.129c-2.175,0.85-4.331,1.691-6.467,2.525\n\tc-1.068,0.406-2.108,0.855-3.18,1.222c-1.073,0.357-2.14,0.714-3.202,1.068c-2.125,0.693-4.191,1.444-6.274,2.071\n\tc-2.092,0.587-4.157,1.166-6.196,1.737c-1.019,0.275-2.013,0.595-3.027,0.831c-1.015,0.229-2.022,0.457-3.022,0.684\n\tc-1.989,0.455-3.948,0.903-5.874,1.344c-1.944,0.343-3.855,0.68-5.731,1.011c-0.934,0.165-1.858,0.329-2.773,0.49\n\tc-0.457,0.081-0.912,0.162-1.364,0.242c-0.458,0.056-0.914,0.111-1.367,0.166c-1.806,0.224-3.574,0.441-5.302,0.655\n\tc-0.86,0.108-1.711,0.216-2.551,0.322c-0.837,0.113-1.682,0.133-2.505,0.204c-1.646,0.119-3.249,0.236-4.808,0.35\n\tc-1.555,0.109-3.055,0.262-4.529,0.254c-2.924,0.066-5.66,0.128-8.19,0.186c-2.332-0.084-4.474-0.162-6.409-0.231\n\tc-0.957-0.027-1.863-0.054-2.716-0.078c-1.061-0.067-2.054-0.13-2.979-0.189c-1.065-0.069-2.030-0.133-2.91-0.19\n\tc-1.628-0.255-3.296-0.391-4.995-0.391c-0.233,0-0.465,0.013-0.698,0.018c-0.066-0.004-0.112-0.007-0.112-0.007l0,0.010 \n\tc-15.502,0.387-28.262,11.793-30.744,26.682c-1.6-0.32-3.223-0.805-4.896-1.261c-1.693-0.467-3.438-0.947-5.227-1.439\n\tc-0.889-0.258-1.801-0.469-2.702-0.773c-0.901-0.299-1.815-0.602-2.739-0.906c-1.84-0.609-3.724-1.232-5.646-1.869\n\tc-0.48-0.158-0.962-0.316-1.446-0.477c-0.478-0.186-0.957-0.371-1.438-0.557c-0.963-0.373-1.934-0.75-2.915-1.129\n\tc-1.952-0.762-3.942-1.535-5.966-2.324c-1.98-0.885-3.994-1.783-6.040-2.695c-1.019-0.455-2.044-0.912-3.078-1.373\n\tc-1.030-0.467-2.036-1.018-3.063-1.527c-2.041-1.035-4.111-2.086-6.205-3.148c-2.072-1.1-4.113-2.326-6.197-3.498\n\tc-1.037-0.592-2.080-1.188-3.128-1.785c-1.043-0.605-2.051-1.293-3.083-1.939c-2.049-1.307-4.115-2.627-6.201-3.959\n\tc-8.148-5.615-16.199-11.816-23.818-18.664c-7.552-6.938-14.703-14.42-21.275-22.299c-6.464-7.986-12.324-16.342-17.51-24.838\n\tc-5.098-8.564-9.42-17.301-13.13-25.867c-0.849-2.176-1.691-4.332-2.525-6.467c-0.406-1.068-0.855-2.109-1.222-3.18\n\tc-0.357-1.074-0.714-2.141-1.068-3.203c-0.693-2.125-1.444-4.191-2.071-6.273c-0.587-2.092-1.165-4.158-1.737-6.197\n\tc-0.275-1.018-0.595-2.012-0.83-3.027c-0.23-1.014-0.458-2.021-0.684-3.021c-0.455-1.99-0.904-3.949-1.344-5.875\n\tc-0.344-1.943-0.681-3.855-1.012-5.73c-0.165-0.934-0.328-1.859-0.49-2.773c-0.081-0.457-0.162-0.912-0.242-1.365\n\tc-0.055-0.457-0.111-0.914-0.166-1.367c-0.223-1.805-0.441-3.574-0.655-5.301c-0.108-0.861-0.216-1.711-0.321-2.551\n\tc-0.113-0.838-0.134-1.682-0.205-2.506c-0.119-1.645-0.236-3.248-0.35-4.807c-0.109-1.555-0.262-3.055-0.254-4.529\n\tc-0.066-2.924-0.128-5.66-0.186-8.191c 0.084-2.332, 0.162-4.473, 0.231-6.408c 0.027-0.957, 0.054-1.863, 0.078-2.717\n\tc 0.067-1.061, 0.13-2.053, 0.189-2.979c 0.069-1.064, 0.133-2.029, 0.19-2.91C 63.865,259.367, 64,257.699, 64,256\n\tc0-0.233-0.013-0.465-0.018-0.698c 0.004-0.066, 0.008-0.112, 0.008-0.112l-0.011,0 C 63.589,239.5, 51.912,226.613, 36.759,224.353z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spinner, loading, busy, wait, wheel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0 C 116.626,0 3.271,111.381 0.076,249.987 C 3.036,129.055 94.992,32 208,32 C 322.875,32 416,132.288 416,256 C 416,282.51 437.49,304 464,304 C 490.51,304 512,282.51 512,256 C 512,114.615 397.385,0 256,0 ZM 256,512 C 395.374,512 508.729,400.619 511.924,262.013 C 508.964,382.945 417.008,480 304,480 C 189.125,480 96,379.712 96,256 C 96,229.49 74.51,208 48,208 C 21.49,208 0,229.49 0,256 C 0,397.385 114.615,512 256,512 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spinner, loading, busy, wait, wheel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 208,464A48,48 12600 1 1 304,464A48,48 12600 1 1 208,464zM0,256A48,48 12600 1 1 96,256A48,48 12600 1 1 0,256zM 416,256A48,48 12600 1 1 512,256A48,48 12600 1 1 416,256zM 60.922,108.922A48,48 12600 1 1 156.922,108.92200000000003A48,48 12600 1 1 60.922,108.92200000000003zM 355.078,403.078A48,48 12600 1 1 451.078,403.078A48,48 12600 1 1 355.078,403.078zM 60.922,403.078A48,48 12600 1 1 156.922,403.078A48,48 12600 1 1 60.922,403.078zM 355.078,108.922A48,48 12600 1 1 451.078,108.92200000000003A48,48 12600 1 1 355.078,108.92200000000003z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spinner, loading, busy, wait, wheel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,64A64,64 12600 1 1 320,64A64,64 12600 1 1 192,64zM 395.497,256A52.503,52.503 12600 1 1 500.503,256A52.503,52.503 12600 1 1 395.497,256zM 344.212,391.765A47.553,47.553 12600 1 1 439.318,391.765A47.553,47.553 12600 1 1 344.212,391.765zM 212.931,448A43.069,43.069 12600 1 1 299.069,448A43.069,43.069 12600 1 1 212.931,448zM 81.227,391.765A39.009,39.009 12600 1 1 159.245,391.765A39.009,39.009 12600 1 1 81.227,391.765zM 28.669,256A35.331,35.331 12600 1 1 99.331,256A35.331,35.331 12600 1 1 28.669,256zM 88.236,120.236A32,32 12600 1 1 152.236,120.23599999999999A32,32 12600 1 1 88.236,120.23599999999999zM 449.732,120.236c0,32.012-25.953,57.967-57.968,57.967c-32.012,0-57.968-25.955-57.968-57.967\n\tc0-32.016, 25.956-57.967, 57.968-57.967C 423.779,62.269, 449.732,88.22, 449.732,120.236z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spinner, loading, busy, wait, wheel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0 C 356.223,0 442.978,57.601 485.008,141.496 L 370.504,198.748 C 349.489,156.801 306.111,128 256,128 C 205.889,128 162.511,156.801 141.496,198.748 L 26.992,141.496 C 69.022,57.601 155.778,0 256,0 ZM 382.74,358.502 C 371.524,372.361 358.059,384.36 342.831,393.963 C 316.853,410.342 286.827,419 256,419 C 225.173,419 195.147,410.342 169.169,393.962 C 153.941,384.359 140.475,372.36 129.259,358.501 L 76.468,384.896 C 93.077,408 114.055,427.793 138.341,443.106 C 173.508,465.279 214.194,477 256,477 C 297.807,477 338.492,465.279 373.658,443.107 C 397.944,427.793 418.923,408.001 435.531,384.897 L 382.74,358.502 Z M 370.504,313.252 L 370.504,313.252 L 485.008,370.504 C 442.978,454.398 356.223,512 256,512 C 155.778,512 69.022,454.398 26.992,370.504 L 141.496,313.252 C 162.511,355.199 205.889,384 256,384 C 306.111,384 349.489,355.199 370.504,313.252 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spinner, loading, busy, wait, wheel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0 C 356.223,0 442.978,57.601 485.008,141.496 L 370.504,198.748 C 349.489,156.801 306.111,128 256,128 C 205.889,128 162.511,156.801 141.496,198.748 L 26.992,141.496 C 69.022,57.601 155.778,0 256,0 ZM 370.504,313.252 L 485.008,370.504 C 442.978,454.398 356.223,512 256,512 C 155.778,512 69.022,454.398 26.992,370.504 L 141.496,313.252 C 162.511,355.199 205.889,384 256,384 C 306.111,384 349.489,355.199 370.504,313.252 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spinner, loading, busy, wait, wheel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 117.417,175.989C 145.084,128.173, 196.783,96, 256,96s 110.916,32.173, 138.583,79.989l 83.149-48.007\n\t\tC 433.466,51.476, 350.747,0, 256,0S 78.533,51.476, 34.267,127.982L 117.417,175.989z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spinner, loading, busy, wait, wheel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,128\n\tc 70.692,0, 128,57.308, 128,128s-57.308,128-128,128s-128-57.308-128-128S 185.308,128, 256,128z M 408.735,408.735\n\tC 367.938,449.532, 313.695,472, 256,472c-57.696,0-111.938-22.468-152.735-63.265C 62.468,367.938, 40,313.696, 40,256\n\tc0-57.695, 22.468-111.938, 63.265-152.735l 33.941,33.941c0,0,0,0,0,0c-65.503,65.503-65.503,172.085,0,237.588\n\tC 168.937,406.525, 211.125,424, 256,424c 44.874,0, 87.062-17.475, 118.794-49.206c 65.503-65.503, 65.503-172.084,0-237.588l 33.941-33.941\n\tC 449.532,144.062, 472,198.305, 472,256C 472,313.696, 449.532,367.938, 408.735,408.735z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spinner, loading, busy, wait, wheel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,256c0-6.090, 0.352-12.098, 1.015-18.011l-92.49-30.052C 1.567,223.507,0,239.569,0,256\n\t\t\tc0,73.615, 31.083,139.961, 80.827,186.662l 57.142-78.648C 111.907,335.551, 96,297.635, 96,256zM 416,256c0,41.634-15.906,79.551-41.969,108.014l 57.142,78.648C 480.917,395.961, 512,329.615, 512,256\n\t\t\tc0-16.431-1.566-32.493-4.524-48.063l-92.49,30.052C 415.648,243.903, 416,249.91, 416,256zM 288,99.204c 45.967,9.331, 84.772,38.371, 107.225,77.913l 92.489-30.051C 451.116,69.356, 376.594,13.036, 288,1.988L 288,99.204 zM 116.775,177.116c 22.453-39.542, 61.258-68.582, 107.225-77.913L 224,1.988 C 135.406,13.036, 60.885,69.356, 24.287,147.065\n\t\t\tL 116.775,177.116zM 322.278,401.664C 302.083,410.868, 279.642,416, 256,416s-46.083-5.132-66.277-14.335l-57.146,78.655\n\t\t\tC 169.18,500.503, 211.245,512, 256,512s 86.82-11.497, 123.424-31.68L 322.278,401.664z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spinner, loading, busy, wait, wheel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,256c-0.639-33.431-7.892-66.758-21.288-97.231c-13.352-30.5-32.731-58.129-56.521-80.96\n\tc-23.776-22.848-51.972-40.91-82.492-52.826C 321.197,13.021, 288.401,7.307, 256,8c-32.405,0.641-64.666,7.687-94.167,20.678\n\tc-29.524,12.948-56.271,31.735-78.367,54.788c-22.112,23.041-39.58,50.354-51.093,79.899C 20.816,192.896, 15.309,224.625, 16,256\n\tc 0.643,31.38, 7.482,62.574, 20.067,91.103c 12.544,28.55, 30.738,54.414, 53.055,75.774c 22.305,21.377, 48.736,38.252, 77.307,49.36\n\tC 194.988,483.389, 225.652,488.688, 256,488c 30.354-0.645, 60.481-7.277, 88.038-19.457c 27.575-12.141, 52.558-29.74, 73.183-51.322\n\tc 20.641-21.57, 36.922-47.118, 47.627-74.715c 6.517-16.729, 10.94-34.2, 13.271-51.899c 0.623,0.036, 1.249,0.060, 1.881,0.060\n\tc 17.673,0, 32-14.326, 32-32c0-0.898-0.047-1.786-0.119-2.666L 512,256.001 z M 461.153,340.974c-11.736,26.601-28.742,50.7-49.589,70.59\n\tc-20.835,19.905-45.5,35.593-72.122,45.895C 312.828,467.798, 284.297,472.685, 256,472c-28.302-0.649-56.298-6.868-81.91-18.237\n\tc-25.625-11.333-48.842-27.745-67.997-47.856c-19.169-20.099-34.264-43.882-44.161-69.529C 51.997,310.736, 47.318,283.271, 48,256\n\tc 0.651-27.276, 6.664-54.206, 17.627-78.845c 10.929-24.65, 26.749-46.985, 46.123-65.405c 19.365-18.434, 42.265-32.935, 66.937-42.428\n\tC 203.356,59.792, 229.755,55.319, 256,56c 26.25,0.653, 52.114,6.459, 75.781,17.017c 23.676,10.525, 45.128,25.751, 62.812,44.391\n\tc 17.698,18.629, 31.605,40.647, 40.695,64.344C 444.412,205.448, 448.679,230.781, 448,256l 0.119,0 c-0.072,0.88-0.119,1.768-0.119,2.666\n\tc0,16.506, 12.496,30.087, 28.543,31.812C 473.431,307.889, 468.278,324.887, 461.153,340.974z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spinner, loading, busy, wait, wheel\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,64A64,64 12600 1 1 320,64A64,64 12600 1 1 192,64zM 327.765,120.235A64,64 12600 1 1 455.765,120.23500000000001A64,64 12600 1 1 327.765,120.23500000000001zM 416,256A32,32 12600 1 1 480,256A32,32 12600 1 1 416,256zM 359.765,391.765A32,32 12600 1 1 423.765,391.765A32,32 12600 1 1 359.765,391.765zM 224.001,448A32,32 12600 1 1 288.001,448A32,32 12600 1 1 224.001,448zM 88.236,391.765A32,32 12600 1 1 152.236,391.765A32,32 12600 1 1 88.236,391.765zM 72.236,120.235A48,48 12600 1 1 168.236,120.23500000000001A48,48 12600 1 1 72.236,120.23500000000001zM 28,256A36,36 12600 1 1 100,256A36,36 12600 1 1 28,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"busy, wait, loading, hour glass\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 190.040,305.023c-47.689,25.929-82.896,79.105-91.826,142.978l 315.57,0 c-8.929-63.871-44.137-117.049-91.824-142.978\n\t\tC 288.007,280.883, 288,269.324, 288,256s 0.007-24.882, 33.959-49.023c 47.688-25.928, 82.896-79.105, 91.825-142.977L 98.214,64 \n\t\tc 8.93,63.871, 44.138,117.049, 91.826,142.977C 223.992,231.118, 224,242.676, 224,256S 223.992,280.883, 190.040,305.023zM 64,480.001L 448,480.001L 448,512L 64,512zM 64,0L 448,0L 448,32L 64,32z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"busy, wait, loading, hour glass\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,96L 128,96L 224.001,192L 224.001,320L 128,416L 352,416L 256,320L 256,192 \tzM 480,77.255L 480,0 L0,0 l0,77.255 l 160,160l0,37.489 l-160,160L0,512 l 480,0 l0-77.256 l-160-160l0-37.489 L 480,77.255z M 448,448L 32,448 l 160-160l0-64 \n\t\tL 32,64l 416,0 L 288,224l0,64 L 448,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"busy, wait, loading, hour glass\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 346.828,314.38C 309.427,290.036, 288,276.379, 288,256c0-20.378, 21.427-34.036, 58.826-58.379\n\tC 407.055,159.779, 448,85.476, 448,0L 64,0 c0,85.476, 40.945,159.779, 101.174,197.621C 202.573,221.964, 224,235.622, 224,256\n\tc0,20.379-21.427,34.036-58.829,58.38C 104.944,352.223, 64,426.525, 64,512l 384,0 C 448,426.525, 407.057,352.223, 346.828,314.38z\n\t M 129.815,96.91c-8.776-16.792-15.155-35.11-18.968-54.244l 290.306,0 c-3.813,19.134-10.191,37.452-18.969,54.244\n\tc-5.893,11.276-12.767,21.694-20.466,31.090L 150.281,128 C 142.582,118.604, 135.708,108.186, 129.815,96.91z M 248,382.81\n\tc0,21.78-88,54.523-88,86.523l-49.153,0 c 3.813-19.133, 10.191-37.45, 18.967-54.242c 14.308-27.376, 34.383-49.709, 58.057-64.583\n\tl 0.289-0.182l 0.286-0.187l 1.544-1.005c 23.355-15.199, 44.029-28.661, 58.010-44.766L 248,382.81 z M 401.154,469.333L 352,469.333 \n\tc0-32-88-64.743-88-86.523l0-78.44 c 13.98,16.104, 34.654,29.566, 58.010,44.766l 1.544,1.005l 0.286,0.187l 0.289,0.182\n\tc 23.674,14.874, 43.749,37.207, 58.057,64.583C 390.962,431.883, 397.341,450.2, 401.154,469.333z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"busy, wait, loading, hour glass\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 364.496,256C 433.373,212.333, 480,128.396, 480,32c0-10.838-0.596-21.517-1.739-32L 33.74,0 C 32.595,10.484, 32,21.163, 32,32\n\t\tc0,96.396, 46.627,180.333, 115.503,224C 78.627,299.667, 32,383.604, 32,480c0,10.838, 0.595,21.517, 1.739,32l 444.521,0 \n\t\tc 1.144-10.483, 1.739-21.162, 1.739-32C 480,383.604, 433.373,299.667, 364.496,256z M 80,480c0-93.456, 40.081-172.707, 112-198.854\n\t\tl0-50.293 l0,0 C 120.081,204.708, 80,125.457, 80,32l0,0 l 352,0 l0,0 c0,93.457-40.081,172.708-112,198.853l0,50.293 \n\t\tC 391.919,307.293, 432,386.544, 432,480L 80,480 zM 309.813,334.797c-35.827-20.322-37.804-46.684-37.813-62.683L 272,240 c0-15.997, 1.902-42.457, 37.872-62.832\n\t\tc 19.252-11.182, 35.904-28.174, 48.524-49.168L 153.605,128 c 12.633,21.016, 29.306,38.021, 48.583,49.203\n\t\tc 35.827,20.322, 37.803,46.683, 37.813,62.683L 240.001,272 c0,15.996-1.902,42.457-37.872,62.832c-36.311,21.090-63.369,62.842-71.545,113.168\n\t\tl 250.835,0 C 373.237,397.646, 346.154,355.876, 309.813,334.797z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"quotes-right, rdquo\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,480 L 288,32 L 480,32 L 480,256 ZM 0,480 L 0,32 L 192,32 L 192,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"quotes-right, rdquo\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,32 L 192,480 L 0,480 L 0,256 ZM 480,32 L 480,480 L 288,480 L 288,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"quotes-right, rdquo\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 400,320 C 338.144,320 288,269.855 288,208 C 288,146.144 338.144,96 400,96 C 461.856,96 512,146.144 512,208 L 512.5,224 C 512.5,347.712 412.212,448 288.5,448 L 288.5,384 C 331.237,384 371.417,367.357 401.637,337.137 C 407.454,331.319 412.763,325.129 417.552,318.627 C 411.833,319.527 405.972,320 400,320 ZM 112,320 C 50.145,320 0,269.855 0,208 C 0,146.144 50.145,96 112,96 C 173.855,96 224,146.144 224,208 L 224.5,224 C 224.5,347.712 124.212,448 0.5,448 L 0.5,384 C 43.237,384 83.417,367.357 113.637,337.137 C 119.455,331.319 124.764,325.129 129.553,318.627 C 123.833,319.527 117.973,320 112,320 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"quotes-left, ldquo\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 112.5,224 C 174.356,224 224.5,274.145 224.5,336 C 224.5,397.856 174.356,448 112.5,448 C 50.644,448 0.5,397.856 0.5,336 L 0,320 C 0,196.288 100.288,96 224,96 L 224,160 C 181.263,160 141.083,176.643 110.863,206.863 C 105.046,212.681 99.737,218.871 94.948,225.373 C 100.667,224.473 106.528,224 112.5,224 ZM 400.5,224 C 462.355,224 512.5,274.145 512.5,336 C 512.5,397.856 462.355,448 400.5,448 C 338.645,448 288.5,397.856 288.5,336 L 288,320 C 288,196.288 388.288,96 512,96 L 512,160 C 469.263,160 429.083,176.643 398.863,206.863 C 393.045,212.681 387.736,218.871 382.947,225.373 C 388.667,224.473 394.527,224 400.5,224 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"hanger, coat hanger, dress\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 497.817,421.401L 288,271.532L 288,232 c0-24-7.75-33-31-33l-9.365,0 c-7.8-1.428-15.98-4.131-21.711-9.79\n\tc-6.833-6.747-11.605-19.376-11.605-30.713c0-11.335, 4.772-23.965, 11.605-30.713c 7.483-7.389, 17.432-11.458, 28.016-11.458\n\tc 10.583,0, 20.531,4.069, 28.013,11.458c 10.249,10.119, 26.865,10.119, 37.112-0.001c 10.249-10.12, 10.248-26.526,0-36.646\n\tC 301.669,73.959, 278.541,64.5, 253.94,64.5c-24.604,0-47.734,9.46-65.13,26.639c-16.64,16.432-26.977,42.241-26.977,67.357\n\tc0,25.119, 10.337,50.929, 26.979,67.36c 10.079,9.951, 22.089,17.292, 35.188,21.725l0,23.951 L 13.4,421.961\n\tc-11.32,8.085-16.119,22.558-11.874,35.805C 5.772,471.013, 18.089,480, 32,480l 448,0 c 0.007,0, 0.015,0, 0.020,0c 17.674,0, 32-14.327, 32-32\n\tC 512.020,436.913, 506.382,427.144, 497.817,421.401z M 115.855,416L 256,319.325L 396.146,416L 115.855,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tshirt, team, member\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 348.976,64 L 512,96 L 512,224 L 416,224 L 416,480 L 96,480 L 96,224 L 0,224 L 0,96 L 163.024,64 C 173.682,105.405 211.267,136 256,136 C 300.733,136 338.319,105.405 348.976,64 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"vcard, card, contact\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,96L 64,96 c-35.2,0-64,28.8-64,64l0,224 c0,35.2, 28.8,64, 64,64l 384,0 c 35.2,0, 64-28.8, 64-64L 512,160 C 512,124.8, 483.2,96, 448,96z\n\t M 64,384c0-70.692, 35.817-128, 80-128c-26.51,0-48-21.49-48-48s 21.49-48, 48-48s 48,21.49, 48,48s-21.49,48-48,48\n\tc 44.183,0, 80,57.308, 80,128L 64,384 z M 448,384L 288,384 l0-32 l 160,0 L 448,384 z M 448,288L 288,288 l0-32 l 160,0 L 448,288 z M 448,192L 288,192 l0-32 l 160,0 L 448,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"users, people, group, team, members, community\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,192A64,64 12600 1 1 224,192A64,64 12600 1 1 96,192zM 288,96A64,64 12600 1 1 416,96A64,64 12600 1 1 288,96zM 160,288C 71.635,288,0,373.961,0,480l 48,0 c0-20.471, 3.312-40.247, 9.844-58.779c 6.155-17.461, 14.866-33.023, 25.894-46.257\n\t\tC 104.677,349.838, 131.76,336, 160,336s 55.324,13.838, 76.263,38.964c 11.027,13.233, 19.739,28.796, 25.894,46.257\n\t\tC 268.689,439.753, 272,459.529, 272,480l 48,0 C 320,373.961, 248.366,288, 160,288zM 352,192c-47.088,0-89.423,24.413-118.701,63.264c 3.598,1.559, 7.168,3.228, 10.705,5.022\n\t\tc 10.877,5.521, 21.24,12.047, 31.037,19.535c 0.233-0.285, 0.462-0.575, 0.697-0.857C 296.677,253.838, 323.761,240, 352,240\n\t\tc 28.24,0, 55.324,13.838, 76.263,38.964c 11.027,13.233, 19.739,28.796, 25.894,46.257C 460.689,343.753, 464,363.529, 464,384l 48,0 \n\t\tC 512,277.961, 440.366,192, 352,192z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"user, profile, avatar, person, talk, member\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,128A96,96 12600 1 1 352,128A96,96 12600 1 1 160,128zM 256,256C 149.961,256, 64,356.289, 64,480l 64,0 c0-88.365, 57.307-160, 128-160c 70.691,0, 128,71.635, 128,160l 64,0 \n\t\t\tC 448,356.289, 362.038,256, 256,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"user, profile, avatar, person, talk, member, employee, job, official\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,96A96,96 10800 1 1 352,96A96,96 10800 1 1 160,96zM 384.039,224l-0.078,0 l-17.634,0 l-99.552,202.122L 304,240l-48-48l-48,48l 37.225,186.122L 145.674,224l-17.635,0 l-0.077,0 \n\t\tC 64,224, 64,266.993, 64,320l0,160 l 384,0 L 448,320 C 448,266.993, 448,224, 384.039,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"users, people, group, team, members, community\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,321.922l0-14.768 c 19.129-16.6, 32-47.621, 32-83.154c0-53.020-28.653-96-64-96c-35.346,0-64,42.98-64,96\n\t\tc0,35.535, 12.872,66.558, 32.003,83.156l0,14.766 c-73.031,8.895-128,47.634-128,94.078L 416,416 C 416,369.556, 361.031,330.816, 288,321.922zM 160.84,304.806c-13.354-8.158-30.188-13.814-48.839-15.902l0-7.341 c 9.562-8.301, 16-23.799, 16-41.563\n\t\tc0-26.51-14.327-48-32-48s-32,21.49-32,48c0,17.764, 6.438,33.262, 16,41.563l0,7.327 c-45.402,5.079-80,31.397-80,63.109l 89.713,0 \n\t\tC 106.735,332.386, 131.324,316.057, 160.84,304.806zM 432,288.89l0-7.327 c 9.563-8.301, 16-23.799, 16-41.563c0-26.51-14.327-48-32-48s-32,21.49-32,48\n\t\tc0,17.764, 6.438,33.262, 16,41.563l0,7.341 c-18.65,2.088-35.485,7.744-48.84,15.902c 29.516,11.251, 54.104,27.58, 71.127,47.193L 512,351.999 \n\t\tC 512,320.287, 477.403,293.969, 432,288.89z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"user, profile, avatar, person, talk, member\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 336.788,330.301c-23.375,17.894-50.901,28.32-80.784,28.32c-29.892,0-57.418-10.427-80.797-28.32\n\t\tC 73.459,351.183,0,410.249,0,480l 512,0 C 512,410.249, 438.54,351.183, 336.788,330.301zM 150.753,176A105.247,144 12600 1 1 361.247,176A105.247,144 12600 1 1 150.753,176z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"user, profile, avatar, person, talk, member, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,288c 70.692,0, 128-57.308, 128-128S 326.692,32, 256,32S 128,89.308, 128,160S 185.308,288, 256,288z M 160,160\n\t\tc0-1.34, 0.035-2.673, 0.090-4l 191.82,0 c 0.055,1.327, 0.090,2.66, 0.090,4s-0.035,2.673-0.090,4L 160.090,164 C 160.035,162.673, 160,161.34, 160,160z\n\t\t M 188.303,92l 135.395,0 c 2.54,2.529, 4.937,5.202, 7.184,8L 181.12,100 C 183.366,97.202, 185.762,94.529, 188.303,92z M 197.421,84\n\t\tc 3.831-2.96, 7.891-5.637, 12.149-8l 92.859,0 c 4.258,2.363, 8.318,5.040, 12.149,8L 197.421,84 z M 336.661,108c 1.672,2.584, 3.223,5.253, 4.645,8\n\t\tL 170.694,116 c 1.422-2.747, 2.973-5.416, 4.645-8L 336.661,108 z M 344.989,124c 1.061,2.612, 2.011,5.28, 2.842,8L 164.169,132 \n\t\tc 0.831-2.72, 1.781-5.388, 2.841-8L 344.989,124 z M 349.898,140c 0.56,2.629, 1.015,5.297, 1.353,8L 160.749,148 c 0.339-2.703, 0.793-5.371, 1.353-8\n\t\tL 349.898,140 z M 351.251,172c-0.338,2.703-0.793,5.371-1.353,8L 162.102,180 c-0.56-2.629-1.014-5.297-1.353-8L 351.251,172 z M 347.831,188\n\t\tc-0.831,2.72-1.781,5.388-2.842,8L 167.011,196 c-1.061-2.612-2.010-5.28-2.841-8L 347.831,188 z M 341.306,204c-1.422,2.747-2.973,5.416-4.645,8\n\t\tL 175.339,212 c-1.672-2.584-3.223-5.253-4.645-8L 341.306,204 z M 323.697,228L 188.303,228 c-2.541-2.529-4.937-5.202-7.183-8l 149.761,0 \n\t\tC 328.634,222.798, 326.237,225.471, 323.697,228z M 314.579,236c-3.831,2.96-7.892,5.637-12.149,8L 209.57,244 \n\t\tc-4.258-2.363-8.318-5.040-12.149-8L 314.579,236 z M 228.568,252l 54.863,0 c-8.695,2.598-17.902,4-27.432,4S 237.264,254.598, 228.568,252z\n\t\t M 283.432,68l-54.863,0 c 8.696-2.598, 17.902-4, 27.432-4S 274.736,65.402, 283.432,68zM 384,320L 128,320 C 57.308,320,0,377.309,0,448l0,32 l 4.033,0 l 503.934,0 L 512,480 l0-32 C 512,377.309, 454.692,320, 384,320z M 60.303,380l 391.395,0 \n\t\tc 2.54,2.529, 4.937,5.202, 7.184,8L 53.12,388 C 55.366,385.202, 57.762,382.529, 60.303,380z M 69.421,372c 3.831-2.96, 7.891-5.637, 12.149-8\n\t\tL 430.43,364 c 4.258,2.363, 8.318,5.040, 12.149,8L 69.421,372 z M 464.661,396c 1.672,2.584, 3.223,5.254, 4.645,8L 42.694,404 \n\t\tc 1.422-2.746, 2.973-5.416, 4.645-8L 464.661,396 z M 472.989,412c 1.061,2.612, 2.011,5.28, 2.842,8L 36.169,420 c 0.831-2.72, 1.781-5.388, 2.841-8\n\t\tL 472.989,412 z M 477.898,428c 0.56,2.629, 1.015,5.297, 1.353,8L 32.749,436 c 0.339-2.703, 0.793-5.371, 1.353-8L 477.898,428 z M 384,352\n\t\tc 9.529,0, 18.736,1.402, 27.432,4L 100.568,356 c 8.696-2.598, 17.902-4, 27.432-4L 384,352 z M 32,448c0-1.341, 0.035-2.673, 0.090-4l 447.82,0 \n\t\tc 0.055,1.327, 0.090,2.659, 0.090,4L 32,448 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"user, profile, avatar, person, talk, member\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,64c 52.935,0, 96,43.065, 96,96s-43.065,96-96,96s-96-43.065-96-96S 203.065,64, 256,64 M 256,32\n\t\tc-70.692,0-128,57.308-128,128s 57.308,128, 128,128s 128-57.308, 128-128S 326.692,32, 256,32L 256,32zM 384,352c 52.935,0, 96,43.065, 96,96L 32,448 c0-52.935, 43.065-96, 96-96L 384,352 M 384,320L 128,320 C 57.308,320,0,377.309,0,448l0,32 l 4.033,0 \n\t\tl 503.934,0 L 512,480 l0-32 C 512,377.309, 454.692,320, 384,320L 384,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"user, profile, avatar, person, talk, member\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,160A128,128 12600 1 1 384,160A128,128 12600 1 1 128,160zM 384,320L 128,320 C 57.308,320,0,377.309,0,448l0,32 l 4.033,0 l 503.934,0 L 512,480 l0-32 C 512,377.309, 454.692,320, 384,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"user-block, profile, avatar, person, talk, member, ban\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 206.92,464L 51.037,464 c 4.614-19.67, 14.259-41.192, 27.38-60.255c 20.728-30.113, 46.589-49.811, 72.82-55.463\n\tc 11.053-2.382, 18.944-12.155, 18.944-23.462l0-17.146 c0-8.63-4.633-16.595-12.134-20.861c-29.74-16.917-48.957-54.133-48.957-94.813\n\tc0-57.346, 37.193-104, 82.909-104c 45.717,0, 82.909,46.654, 82.909,104c0,4.599-0.258,9.15-0.737,13.636\n\tc 15.016-8.696, 31.351-15.361, 48.629-19.638c-1.249-37.569-14.193-72.845-36.784-99.893C 261.184,56.374, 227.795,40, 192,40\n\ts-69.184,16.374-94.017,46.105C 74.193,114.589, 61.091,152.197, 61.091,192c0,28.64, 6.872,56.533, 19.873,80.664\n\tc 8.107,15.048, 18.355,28.238, 30.254,39.061c-26.997,12.995-51.993,35.246-72.339,64.805C 14.534,411.898,0,453.569,0,488\n\tc0,13.255, 10.745,24, 24,24l 223.923,0 C 231.704,498.46, 217.81,482.232, 206.92,464zM 368,224c-79.529,0-144,64.471-144,144s 64.471,144, 144,144s 144-64.471, 144-144S 447.529,224, 368,224z M 262,368\n\tc0-58.448, 47.552-106, 106-106c 22.375,0, 43.148,6.975, 60.273,18.856L 280.856,428.273C 268.975,411.148, 262,390.375, 262,368z M 368,474\n\tc-22.375,0-43.148-6.975-60.273-18.856l 147.417-147.417C 467.025,324.852, 474,345.625, 474,368C 474,426.448, 426.448,474, 368,474z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"user-cancel, profile, avatar, person, talk, member\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 206.92,464L 51.037,464 c 4.614-19.67, 14.259-41.192, 27.38-60.255c 20.728-30.113, 46.589-49.811, 72.82-55.463\n\tc 11.053-2.382, 18.944-12.155, 18.944-23.462l0-17.146 c0-8.63-4.633-16.595-12.134-20.861c-29.74-16.917-48.957-54.133-48.957-94.813\n\tc0-57.346, 37.193-104, 82.909-104c 45.717,0, 82.909,46.654, 82.909,104c0,4.599-0.258,9.15-0.737,13.636\n\tc 15.016-8.696, 31.351-15.361, 48.629-19.638c-1.249-37.569-14.193-72.845-36.784-99.893C 261.184,56.374, 227.795,40, 192,40\n\ts-69.184,16.374-94.017,46.105C 74.193,114.589, 61.091,152.197, 61.091,192c0,28.64, 6.872,56.533, 19.873,80.664\n\tc 8.107,15.048, 18.355,28.238, 30.254,39.061c-26.997,12.995-51.993,35.246-72.339,64.805C 14.534,411.898,0,453.569,0,488\n\tc0,13.255, 10.745,24, 24,24l 223.923,0 C 231.704,498.46, 217.81,482.232, 206.92,464zM 368,224c-79.529,0-144,64.471-144,144s 64.471,144, 144,144s 144-64.471, 144-144S 447.529,224, 368,224z M 428.273,280.856\n\tL 368,341.13l-60.273-60.273C 324.852,268.975, 345.625,262, 368,262S 411.148,268.975, 428.273,280.856z M 262,368\n\tc0-22.375, 6.975-43.148, 18.856-60.273L 341.13,368l-60.273,60.273C 268.975,411.148, 262,390.375, 262,368z M 307.727,455.144L 368,394.87\n\tl 60.273,60.273C 411.148,467.025, 390.375,474, 368,474S 324.852,467.025, 307.727,455.144z M 455.144,428.273L 394.87,368l 60.273-60.273\n\tC 467.025,324.852, 474,345.625, 474,368S 467.025,411.148, 455.144,428.273z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"user-minus, profile, avatar, person, talk, member\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 206.92,464L 51.037,464 c 4.614-19.67, 14.259-41.192, 27.38-60.255c 20.728-30.113, 46.589-49.811, 72.82-55.463\n\tc 11.053-2.382, 18.944-12.155, 18.944-23.462l0-17.146 c0-8.63-4.633-16.595-12.134-20.861c-29.74-16.917-48.957-54.133-48.957-94.813\n\tc0-57.346, 37.193-104, 82.909-104c 45.717,0, 82.909,46.654, 82.909,104c0,4.599-0.258,9.15-0.737,13.636\n\tc 15.016-8.696, 31.351-15.361, 48.629-19.638c-1.249-37.569-14.193-72.845-36.784-99.893C 261.184,56.374, 227.795,40, 192,40\n\ts-69.184,16.374-94.017,46.105C 74.193,114.589, 61.091,152.197, 61.091,192c0,28.64, 6.872,56.533, 19.873,80.664\n\tc 8.107,15.048, 18.355,28.238, 30.254,39.061c-26.997,12.995-51.993,35.246-72.339,64.805C 14.534,411.898,0,453.569,0,488\n\tc0,13.255, 10.745,24, 24,24l 223.923,0 C 231.704,498.46, 217.81,482.232, 206.92,464zM 288,352L 448,352L 448,384L 288,384zM 368,262c 58.448,0, 106,47.552, 106,106s-47.552,106-106,106s-106-47.552-106-106S 309.552,262, 368,262 M 368,224\n\tc-79.529,0-144,64.471-144,144s 64.471,144, 144,144s 144-64.471, 144-144S 447.529,224, 368,224L 368,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"user-plus, profile, avatar, person, talk, member\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,288L 352,288L 352,352L 288,352L 288,384L 352,384L 352,448L 384,448L 384,384L 448,384L 448,352L 384,352 \tzM 206.92,464L 51.037,464 c 4.614-19.67, 14.259-41.192, 27.38-60.255c 20.728-30.113, 46.589-49.811, 72.82-55.463\n\tc 11.053-2.382, 18.944-12.155, 18.944-23.462l0-17.146 c0-8.63-4.633-16.595-12.134-20.861c-29.74-16.917-48.957-54.133-48.957-94.813\n\tc0-57.346, 37.193-104, 82.909-104c 45.717,0, 82.909,46.654, 82.909,104c0,4.599-0.258,9.15-0.737,13.636\n\tc 15.016-8.696, 31.351-15.361, 48.629-19.638c-1.249-37.569-14.193-72.845-36.784-99.893C 261.184,56.374, 227.795,40, 192,40\n\ts-69.184,16.374-94.017,46.105C 74.193,114.589, 61.091,152.197, 61.091,192c0,28.64, 6.872,56.533, 19.873,80.664\n\tc 8.107,15.048, 18.355,28.238, 30.254,39.061c-26.997,12.995-51.993,35.246-72.339,64.805C 14.534,411.898,0,453.569,0,488\n\tc0,13.255, 10.745,24, 24,24l 223.923,0 C 231.704,498.46, 217.81,482.232, 206.92,464zM 368,262c 58.448,0, 106,47.552, 106,106s-47.552,106-106,106s-106-47.552-106-106S 309.552,262, 368,262 M 368,224\n\tc-79.529,0-144,64.471-144,144s 64.471,144, 144,144s 144-64.471, 144-144S 447.529,224, 368,224L 368,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"users, people, group, team, members, community\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 488,512L 152,512 c-13.255,0-24-10.745-24-24c0-34.431, 14.534-76.102, 38.879-111.471c 20.346-29.559, 45.342-51.81, 72.339-64.805\n\t\tc-11.899-10.822-22.147-24.013-30.254-39.061c-13-24.131-19.873-52.024-19.873-80.664c0-39.803, 13.102-77.411, 36.893-105.895\n\t\tC 250.816,56.374, 284.205,40, 320,40s 69.184,16.374, 94.017,46.105c 23.79,28.484, 36.893,66.091, 36.893,105.895\n\t\tc0,28.64-6.872,56.533-19.872,80.664c-8.107,15.048-18.355,28.239-30.255,39.061c 26.997,12.995, 51.993,35.246, 72.339,64.805\n\t\tC 497.466,411.898, 512,453.569, 512,488C 512,501.255, 501.255,512, 488,512z M 179.037,464l 281.926,0 \n\t\tc-4.613-19.67-14.26-41.192-27.381-60.255c-20.727-30.113-46.588-49.811-72.819-55.463c-11.053-2.382-18.944-12.155-18.944-23.462\n\t\tl0-17.146 c0-8.63, 4.633-16.595, 12.135-20.861c 29.739-16.916, 48.956-54.133, 48.956-94.813c0-57.346-37.192-104-82.909-104\n\t\ts-82.909,46.654-82.909,104c0,40.68, 19.217,77.896, 48.957,94.813c 7.501,4.267, 12.134,12.231, 12.134,20.861l0,17.146 \n\t\tc0,11.307-7.892,21.080-18.944,23.462c-26.231,5.652-52.092,25.35-72.82,55.463C 193.296,422.808, 183.651,444.33, 179.037,464zM 98.557,432l-47.52,0 c 4.614-19.67, 14.259-41.192, 27.38-60.255c 20.728-30.113, 46.589-49.811, 72.82-55.463\n\t\tc 11.053-2.382, 18.944-12.155, 18.944-23.462l0-17.146 c0-8.63-4.633-16.595-12.134-20.861c-29.74-16.917-48.957-54.133-48.957-94.813\n\t\tc0-57.346, 37.192-104, 82.909-104c 3.127,0, 6.213,0.226, 9.251,0.651c 13.179-14.667, 28.117-26.587, 44.321-35.502\n\t\tC 228.975,12.533, 210.821,8, 192,8c-35.795,0-69.184,16.374-94.017,46.105C 74.193,82.589, 61.091,120.197, 61.091,160\n\t\tc0,28.64, 6.872,56.533, 19.873,80.664c 8.107,15.048, 18.355,28.238, 30.254,39.061c-26.997,12.995-51.993,35.246-72.339,64.805\n\t\tC 14.534,379.898,0,421.569,0,456c0,13.255, 10.745,24, 24,24l 66.193,0 C 90.931,464.487, 93.792,448.294, 98.557,432z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"user, profile, avatar, person, talk, member\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 424,512L 88,512 c-13.255,0-24-10.745-24-24c0-34.431, 14.534-76.102, 38.879-111.471c 20.346-29.559, 45.342-51.81, 72.339-64.805\n\t\tc-11.899-10.822-22.147-24.013-30.254-39.061c-13-24.131-19.873-52.024-19.873-80.664c0-39.803, 13.102-77.411, 36.893-105.895\n\t\tC 186.816,56.374, 220.205,40, 256,40s 69.184,16.374, 94.017,46.105c 23.79,28.484, 36.893,66.091, 36.893,105.895\n\t\tc0,28.64-6.872,56.533-19.872,80.664c-8.107,15.048-18.355,28.239-30.255,39.061c 26.997,12.995, 51.993,35.246, 72.339,64.805\n\t\tC 433.466,411.898, 448,453.569, 448,488C 448,501.255, 437.255,512, 424,512z M 115.037,464l 281.926,0 \n\t\tc-4.613-19.67-14.26-41.192-27.381-60.255c-20.727-30.113-46.588-49.811-72.819-55.463c-11.053-2.382-18.944-12.155-18.944-23.462\n\t\tl0-17.146 c0-8.63, 4.633-16.595, 12.135-20.861c 29.739-16.916, 48.956-54.133, 48.956-94.813c0-57.346-37.192-104-82.909-104\n\t\tc-45.716,0-82.909,46.654-82.909,104c0,40.68, 19.217,77.896, 48.957,94.813c 7.501,4.267, 12.134,12.231, 12.134,20.861l0,17.146 \n\t\tc0,11.307-7.892,21.080-18.944,23.462c-26.231,5.652-52.092,25.35-72.82,55.463C 129.296,422.808, 119.651,444.33, 115.037,464z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"users, people, group, team, members, community, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 152.983,292c-0.493,2.762-1.188,5.575-2.164,8l 49.679,0 c-0.688-2.631-1.245-5.306-1.662-8L 152.983,292 zM 9.399,388c-1.724,2.638-3.245,5.306-4.529,8l 194.986,0 c 5.639-2.821, 11.325-5.508, 16.946-8L 9.399,388 zM 41.145,356c-3.452,2.599-6.777,5.269-9.945,8l 202.902,0 c-1.456-2.549-2.89-5.219-4.28-8L 41.145,356 zM 138.285,308c-6.406,1.61-14.68,4.332-24.004,8l 92.448,0 c-1.359-2.521-2.583-5.191-3.661-8L 138.285,308 zM 65.208,340c-4.316,2.558-8.585,5.228-12.75,8l 173.643,0 c-1.117-2.591-2.186-5.255-3.182-8L 65.208,340 zM 1.796,404c-0.776,2.649-1.306,5.317-1.575,8l 170.856,0 c 0.318-0.198, 0.628-0.396, 0.949-0.595\n\t\tc 4.079-2.511, 8.32-4.987, 12.661-7.405L 1.796,404 zM 15.32,380l 221.067,0 c 2.17-0.808, 4.317-1.587, 6.409-2.307c-1.259-1.793-2.542-3.699-3.829-5.693L 22.579,372 \n\t\tC 19.977,374.621, 17.554,377.292, 15.32,380zM 124.279,76l 135.453,0 c-2.175-2.818-4.63-5.498-7.394-8L 131.669,68 C 128.905,70.502, 126.454,73.183, 124.279,76zM 108.402,124l 154.566,0 c 3.915-1.792, 8-3.374, 12.259-4.734c-0.104-1.083-0.226-2.172-0.362-3.266L 109.134,116 \n\t\tC 108.798,118.704, 108.56,121.377, 108.402,124zM 79.513,332L 219.26,332 c-2.667-2.341-5.145-5.021-7.404-8L 95.662,324 C 90.377,326.455, 84.958,329.127, 79.513,332zM 133.849,252l 70.037,0 c 0.404-0.855, 0.826-1.697, 1.269-2.525c-0.159-1.705-0.313-3.543-0.453-5.475l-75.065,0 \n\t\tC 130.987,246.799, 132.404,249.47, 133.849,252zM 112.354,212c 2.376,2.069, 5.055,3.283, 7.928,3.283c 0.263,1.593, 0.581,3.161, 0.921,4.717l 83.138,0 \n\t\tc 0.127-2.611, 0.314-5.279, 0.581-8L 112.354,212 zM 108.801,148c 0.248,3.018, 0.528,5.713, 0.775,8l 114.753,0 c 1.916-2.729, 4.008-5.4, 6.284-8L 108.801,148 zM 108.141,132c-0.014,2.779, 0.048,5.453, 0.156,8l 130.18,0 c 3.217-2.898, 6.626-5.564, 10.224-8L 108.141,132 zM 112.378,100c-0.776,2.656-1.424,5.33-1.958,8l 163.155,0 c-0.534-2.67-1.182-5.344-1.958-8L 112.378,100 zM 119.006,84c-1.456,2.603-2.729,5.278-3.839,8l 153.67,0 c-1.109-2.722-2.381-5.397-3.836-8L 119.006,84 zM 198.009,276l-46.956,0 c 1.94,2.176, 3.142,3.359, 3.142,3.359s-0.018,1.878-0.225,4.641l 44.044,0 \n\t\tC 197.873,281.315, 197.868,278.64, 198.009,276zM 163.364,52c-7.931,1.915-14.756,4.643-20.622,8l 98.528,0 c-5.857-3.354-12.666-6.085-20.583-8L 163.364,52 zM 138.783,260c 1.968,2.971, 3.896,5.648, 5.69,8l 54.435,0 c 0.471-2.743, 1.096-5.417, 1.889-8L 138.783,260 zM 204.128,228l-80.822,0 c 0.846,2.745, 1.796,5.413, 2.82,8l 78.136,0 C 204.169,233.445, 204.117,230.776, 204.128,228zM 103.475,196c 0.755,2.85, 1.761,5.56, 2.979,8l 99.473,0 c 0.403-2.643, 0.885-5.312, 1.459-8L 103.475,196 zM 108.591,164c-2.11,2.245-3.676,4.977-4.76,8l 111.377,0 c 1.226-2.693, 2.57-5.365, 4.062-8L 108.591,164 zM 102.089,180c-0.256,2.622-0.25,5.319-0.014,8l 107.282,0 c 0.754-2.668, 1.621-5.338, 2.585-8L 102.089,180 zM 367.497,402.687c-9.476-1.494-9.692-27.327-9.692-27.327s 27.844-27.328, 33.912-64.076\n\tc 16.326,0, 26.407-39.069, 10.082-52.814c 0.681-14.47, 20.984-113.588-81.799-113.588c-102.782,0-82.479,99.118-81.799,113.588\n\tc-16.327,13.745-6.244,52.814, 10.081,52.814c 6.067,36.748, 33.913,64.076, 33.913,64.076s-0.216,25.833-9.692,27.327\n\tC 241.979,407.503, 128,457.345, 128,512l 192,0 l 192,0 C 512,457.345, 398.021,407.503, 367.497,402.687z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"544\" height=\"512\" viewBox=\"0 0 544 512\" data-tags=\"user-block, profile, avatar, person, talk, member, ban\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 218,368 C 218,396.688 224.681,423.841 236.555,448 L 192,448 L 0,448 L 0,390.743 C 41.682,352.17 112.118,323.262 136.586,319.368 C 147.641,317.609 147.893,287.211 147.893,287.211 C 147.893,287.211 115.408,255.053 108.329,211.81 C 89.283,211.81 77.521,165.837 96.568,149.662 C 95.775,132.635 72.089,16 192,16 C 311.911,16 288.227,132.635 287.43,149.662 C 306.478,165.837 294.714,211.81 275.669,211.81 C 273.538,224.827 269.098,236.827 263.942,247.261 C 253.726,258.761 244.935,271.551 237.865,285.366 C 236.756,286.563 236.105,287.211 236.105,287.211 C 236.105,287.211 236.11,287.808 236.148,288.815 C 224.526,312.77 218,339.636 218,368 ZM 400,224c-79.529,0-144,64.471-144,144s 64.471,144, 144,144s 144-64.471, 144-144S 479.529,224, 400,224z M 294,368\n\tc0-58.448, 47.552-106, 106-106c 22.375,0, 43.149,6.975, 60.274,18.856L 312.856,428.274C 300.975,411.149, 294,390.375, 294,368z M 400,474\n\tc-22.375,0-43.149-6.975-60.274-18.856l 147.418-147.418C 499.025,324.851, 506,345.625, 506,368C 506,426.448, 458.448,474, 400,474z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"544\" height=\"512\" viewBox=\"0 0 544 512\" data-tags=\"user-cancel, profile, avatar, person, talk, member\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 400,224c-79.529,0-144,64.471-144,144s 64.471,144, 144,144s 144-64.471, 144-144S 479.529,224, 400,224z M 480,314.869\n\t\tL 426.869,368L 480,421.131L 480,448 l-26.869,0 L 400,394.869L 346.869,448L 320,448 l0-26.869 L 373.131,368L 320,314.869L 320,288 l 26.869,0 L 400,341.131\n\t\tL 453.131,288L 480,288 L 480,314.869 zM 218,368 C 218,396.688 224.681,423.841 236.555,448 L 192,448 L 0,448 L 0,390.743 C 41.682,352.17 112.118,323.262 136.586,319.368 C 147.641,317.609 147.893,287.211 147.893,287.211 C 147.893,287.211 115.408,255.053 108.329,211.81 C 89.283,211.81 77.521,165.837 96.568,149.662 C 95.775,132.635 72.089,16 192,16 C 311.911,16 288.227,132.635 287.43,149.662 C 306.478,165.837 294.714,211.81 275.669,211.81 C 273.538,224.827 269.098,236.827 263.942,247.261 C 253.726,258.761 244.935,271.551 237.865,285.366 C 236.756,286.563 236.105,287.211 236.105,287.211 C 236.105,287.211 236.11,287.808 236.148,288.815 C 224.526,312.77 218,339.636 218,368 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"user-minus, profile, avatar, person, talk, member\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,288L 512,288L 512,352L 320,352zM 384,422.743c-41.683-38.573-112.118-67.481-136.587-71.375c-11.056-1.759-11.308-32.157-11.308-32.157\n\ts 32.484-32.158, 39.564-75.401c 19.045,0, 30.809-45.973, 11.761-62.148C 288.227,164.635, 311.911,48, 192,48\n\tS 95.775,164.635, 96.568,181.662c-19.047,16.175-7.285,62.148, 11.761,62.148c 7.079,43.243, 39.564,75.401, 39.564,75.401\n\ts-0.252,30.398-11.307,32.157C 112.118,355.262, 41.682,384.17,0,422.743L0,480 l 192,0 l 192,0 L 384,422.743 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"544\" height=\"512\" viewBox=\"0 0 544 512\" data-tags=\"user-minus, profile, avatar, person, talk, member\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 218,368 C 218,396.688 224.681,423.841 236.555,448 L 192,448 L 0,448 L 0,390.743 C 41.682,352.17 112.118,323.262 136.586,319.368 C 147.641,317.609 147.893,287.211 147.893,287.211 C 147.893,287.211 115.408,255.053 108.329,211.81 C 89.283,211.81 77.521,165.837 96.568,149.662 C 95.775,132.635 72.089,16 192,16 C 311.911,16 288.227,132.635 287.43,149.662 C 306.478,165.837 294.714,211.81 275.669,211.81 C 273.538,224.827 269.098,236.827 263.942,247.261 C 253.726,258.761 244.935,271.551 237.865,285.366 C 236.756,286.563 236.105,287.211 236.105,287.211 C 236.105,287.211 236.11,287.808 236.148,288.815 C 224.526,312.77 218,339.636 218,368 ZM 400,224c-79.529,0-144,64.471-144,144s 64.471,144, 144,144s 144-64.471, 144-144S 479.529,224, 400,224z M 480,384L 320,384 l0-32 l 160,0 \n\tL 480,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"user-plus, profile, avatar, person, talk, member\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,288L 448,224L 384,224L 384,288L 320,288L 320,352L 384,352L 384,416L 448,416L 448,352L 512,352L 512,288 zM 384,422.743c-41.683-38.573-112.118-67.481-136.587-71.375c-11.056-1.759-11.308-32.157-11.308-32.157\n\ts 32.484-32.158, 39.564-75.401c 19.045,0, 30.809-45.973, 11.761-62.148C 288.227,164.635, 311.911,48, 192,48\n\tS 95.775,164.635, 96.568,181.662c-19.047,16.175-7.285,62.148, 11.761,62.148c 7.079,43.243, 39.564,75.401, 39.564,75.401\n\ts-0.252,30.398-11.307,32.157C 112.118,355.262, 41.682,384.17,0,422.743L0,480 l 192,0 l 192,0 L 384,422.743 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"544\" height=\"512\" viewBox=\"0 0 544 512\" data-tags=\"user-plus, profile, avatar, person, talk, member\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 218,368 C 218,396.688 224.681,423.841 236.555,448 L 192,448 L 0,448 L 0,390.743 C 41.682,352.17 112.118,323.262 136.586,319.368 C 147.641,317.609 147.893,287.211 147.893,287.211 C 147.893,287.211 115.408,255.053 108.329,211.81 C 89.283,211.81 77.521,165.837 96.568,149.662 C 95.775,132.635 72.089,16 192,16 C 311.911,16 288.227,132.635 287.43,149.662 C 306.478,165.837 294.714,211.81 275.669,211.81 C 273.538,224.827 269.098,236.827 263.942,247.261 C 253.726,258.761 244.935,271.551 237.865,285.366 C 236.756,286.563 236.105,287.211 236.105,287.211 C 236.105,287.211 236.11,287.808 236.148,288.815 C 224.526,312.77 218,339.636 218,368 ZM 400,224c-79.529,0-144,64.471-144,144s 64.471,144, 144,144s 144-64.471, 144-144S 479.529,224, 400,224z M 480,384l-64,0 l0,64 l-32,0 \n\tl0-64 l-64,0 l0-32 l 64,0 l0-64 l 32,0 l0,64 l 64,0 L 480,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"users, people, group, team, members, community\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 367.497,402.687c-9.476-1.494-9.692-27.327-9.692-27.327s 27.844-27.328, 33.912-64.076\n\tc 16.326,0, 26.407-39.069, 10.082-52.814c 0.681-14.47, 20.984-113.588-81.799-113.588c-102.782,0-82.479,99.118-81.799,113.588\n\tc-16.327,13.745-6.244,52.814, 10.081,52.814c 6.067,36.748, 33.913,64.076, 33.913,64.076s-0.216,25.833-9.692,27.327\n\tC 241.979,407.503, 128,457.345, 128,512l 192,0 l 192,0 C 512,457.345, 398.021,407.503, 367.497,402.687zM 172.027,411.405c 22.047-13.575, 48.813-26.154, 70.769-33.712c-7.876-11.216-16.647-26.468-22.165-44.531\n\tc-7.703-6.283-13.972-15.266-17.999-26.301c-4.033-11.052-5.561-23.426-4.304-34.842c 0.902-8.196, 3.239-15.833, 6.825-22.544\n\tc-2.175-23.293-3.707-69.017, 26.224-102.366c 11.607-12.933, 26.278-22.23, 43.85-27.843C 272.090,86.886, 255.647,48.881, 192,48.881\n\tc-102.782,0-82.479,99.118-81.799,113.588c-16.327,13.745-6.244,52.814, 10.081,52.814c 6.067,36.748, 33.913,64.076, 33.913,64.076\n\ts-0.216,25.833-9.692,27.327C 113.979,311.503,0,361.345,0,416l 164.798,0 C 167.153,414.463, 169.551,412.93, 172.027,411.405z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"user, profile, avatar, person, talk, member\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 311.413,351.368c-11.055-1.759-11.307-32.157-11.307-32.157s 32.484-32.158, 39.564-75.401\n\tc 19.045,0, 30.809-45.973, 11.761-62.148C 352.226,164.635, 375.911,48, 256,48c-119.911,0-96.225,116.635-95.432,133.662\n\tc-19.047,16.175-7.285,62.148, 11.761,62.148c 7.079,43.243, 39.564,75.401, 39.564,75.401s-0.252,30.398-11.307,32.157\n\tC 164.976,357.034, 32,415.685, 32,480l 224,0 l 224,0 C 480,415.685, 347.024,357.034, 311.413,351.368z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-forward, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 363.878,223.997L 255.875,320l0-96 C 167.578,224, 96,166.692, 96,96c0-10.113, 1.471-19.95, 4.24-29.387\n\tc 4.406,20.518, 13.669,39.375, 28.062,55.002c 30.944,33.601, 78.688,44.84, 127.573,34.937L 255.875,64 l 108.003,96.003\n\tc 19.997,17.776, 19.997,27.497, 19.997,31.997S 383.875,206.221, 363.878,223.997z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-reply, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 224,224l0,96 l-108.003-96.003C 96,206.221, 96,196.5, 96,192s0-14.221, 19.997-31.997L 224,64l0,92.552 \n\tc 48.885,9.903, 96.629-1.336, 127.573-34.937c 14.393-15.628, 23.655-34.485, 28.062-55.002c 2.77,9.436, 4.24,19.273, 4.24,29.386\n\tC 383.875,166.692, 312.297,224, 224,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-forward, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 363.878,223.997L 255.875,320l0-92.552 c-48.885-9.903-96.629,1.336-127.573,34.937\n\tc-14.393,15.627-23.655,34.484-28.062,55.002C 97.471,307.95, 96,298.113, 96,288c0-70.692, 71.578-128, 159.875-128L 255.875,64 l 108.003,96.003\n\tc 19.997,17.776, 19.997,27.497, 19.997,31.997S 383.875,206.221, 363.878,223.997z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-replu, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 379.635,317.387c-4.406-20.518-13.669-39.375-28.062-55.002c-30.944-33.601-78.688-44.84-127.573-34.937\n\tL 224,320 l-108.003-96.003C 96,206.221, 96,196.5, 96,192s0-14.221, 19.997-31.997L 224,64l0,96 c 88.297,0, 159.875,57.308, 159.875,128\n\tC 383.875,298.113, 382.404,307.95, 379.635,317.387z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-last, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 332.003,223.997L 224,320l0-96 L 96,224 l0-64 l 128,0 L 224,64 l 108.003,96.003C 352,177.779, 352,187.5, 352,192\n\tS 352,206.221, 332.003,223.997z M 416,320l-32,0 L 384,64 l 32,0 L 416,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-first, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 128,320L 96,320 L 96,64 l 32,0 L 128,320 z M 416,224L 288,224 l0,96 l-108.003-96.003C 160,206.221, 160,196.5, 160,192\n\ts0-14.221, 19.997-31.997L 288,64l0,96 l 128,0 L 416,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-down, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 287.997,300.003C 270.221,320, 260.5,320, 256,320s-14.221,0-31.997-19.997L 128,192l 96,0 L 224,96 l 64,0 l0,96 l 96,0 \n\tL 287.997,300.003z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-up, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 288,224l0,96 l-64,0 l0-96 l-96,0 l 96.003-108.003C 241.779,96, 251.5,96, 256,96s 14.221,0, 31.997,19.997L 384,224L 288,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-right, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 288,320l0-96 L 96,224 l0-64 l 192,0 L 288,64 l 108.003,96.003C 416,177.779, 416,187.5, 416,192s0,14.221-19.997,31.997L 288,320\n\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-left, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 224,64l0,96 l 192,0 l0,64 L 224,224 l0,96 l-108.003-96.003C 96,206.221, 96,196.5, 96,192s0-14.221, 19.997-31.997L 224,64z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-trash, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 342,320L 170,320 l-23.833-160l 219.667,0 L 342,320z M 384,128L 128,128 L 128,96 l 96,0 L 224,64 l 64,0 l0,32 l 96,0 L 384,128 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-notification, comment, chat, talk, notification\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 288,320l-64,0 l0-64 l 64,0 L 288,320 z M 288,192l-64,0 L 224,64 l 64,0 L 288,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-minus, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 384,224L 128,224 l0-64 l 256,0 L 384,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-plus, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 384,224l-96,0 l0,96 l-64,0 l0-96 l-96,0 l0-64 l 96,0 L 224,64 l 64,0 l0,96 l 96,0 L 384,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-cancel, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 352,137.012L 297.012,192L 352,246.988L 352,288 l-41.012,0 L 256,233.012L 201.012,288L 160,288 l0-41.012 L 214.988,192\n\tL 160,137.012L 160,96 l 41.012,0 L 256,150.988L 310.988,96L 352,96 L 352,137.012 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-paperclip, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 448,160c0,35.2-28.8,64-64,64L 160,224 c-17.6,0-32-14.4-32-32l0-32 c0-17.6, 14.4-32, 32-32l 176,0 \n\tc 8.837,0, 16,7.164, 16,16s-7.163,16-16,16L 160.057,160 c-0.020,0.017-0.041,0.038-0.057,0.057l0,31.886 c 0.017,0.020, 0.038,0.041, 0.057,0.057\n\tL 384,192 c 8.477,0, 16.493-3.348, 22.572-9.428C 412.652,176.493, 416,168.477, 416,160l0-32 c0-8.477-3.348-16.493-9.428-22.573\n\tC 400.493,99.348, 392.477,96, 384,96L 128,96 c-8.477,0-16.493,3.348-22.573,9.427C 99.348,111.507, 96,119.523, 96,128l0,96 \n\tc0,8.477, 3.348,16.493, 9.427,22.572c 6.080,6.080, 14.096,9.428, 22.573,9.428l 208,0 c 8.837,0, 16,7.164, 16,16s-7.163,16-16,16L 128,288 \n\tc-35.2,0-64-28.8-64-64l0-96 c0-35.2, 28.8-64, 64-64l 256,0 c 35.2,0, 64,28.8, 64,64L 448,160 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-heart, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 256,288c0,0-128-61.125-128-132c0-0.985, 0.028-1.938, 0.077-2.868c 0.006-0.106, 0.008-0.213, 0.014-0.318\n\tc 0.040-0.672, 0.095-1.326, 0.16-1.969C 131.042,120.123, 158.508,96, 192,96c 35.346,0, 64,38.863, 64,72c0-33.137, 28.654-72, 64-72\n\tc 33.491,0, 60.957,24.122, 63.749,54.843c 0.064,0.645, 0.12,1.298, 0.159,1.971c 0.007,0.105, 0.009,0.212, 0.015,0.317\n\tc 0.048,0.931, 0.077,1.884, 0.077,2.869C 384,226.875, 256,288, 256,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-star, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 356,342l-100-82.098L 156,342l 36.372-117.326L 96,159.875l 120.676,0 L 256,34.848l 39.324,125.027L 416,159.875 \n\tl-96.372,64.799L 356,342z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-locked, comment, chat, talk, private\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,95.5 C 291.565,95.5 320.5,124.435 320.5,160 L 191.5,160 C 191.5,124.435 220.435,95.5 256,95.5 ZM 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\t\tC 512,21.6, 490.4,0, 464,0z M 384,304c0,8.8-7.2,16-16,16L 144,320 c-8.8,0-16-7.2-16-16L 128,176 c0-8.8, 7.2-16, 16-16l 15.5,0 \n\t\tc0-53.295, 43.205-96.5, 96.5-96.5c 53.296,0, 96.5,43.205, 96.5,96.5L 368,160 c 8.8,0, 16,7.2, 16,16L 384,304 zM 224,256A32,32 2520 1 1 288,256A32,32 2520 1 1 224,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-link, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 224,288l-96,0 c-35.2,0-64-28.8-64-64l0-32 c0-35.2, 28.8-64, 64-64l 96,0 l0,32 l-96,0 \n\tc-8.477,0-16.493,3.348-22.573,9.427C 99.348,175.507, 96,183.523, 96,192l0,32 c0,8.477, 3.348,16.493, 9.427,22.573\n\tC 111.507,252.652, 119.523,256, 128,256l 96,0 L 224,288 z M 192,224l0-32 l 128,0 l0,32 L 192,224 z M 448,224c0,35.2-28.8,64-64,64l-96,0 l0-32 l 96,0 \n\tc 8.477,0, 16.493-3.348, 22.572-9.427c 6.080-6.080, 9.428-14.096, 9.428-22.573l0-32 c0-8.477-3.348-16.493-9.428-22.573\n\tC 400.493,163.348, 392.477,160, 384,160l-96,0 l0-32 l 96,0 c 35.2,0, 64,28.8, 64,64L 448,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-video-chat, comment, chat, talk, video chat\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 416,256c0,17.6-11.52,23.36-25.6,12.8L 320,192l0,64 c0,17.6-14.4,32-32,32L 128,288 c-17.6,0-32-14.4-32-32L 96,128 \n\tc0-17.6, 14.4-32, 32-32l 160,0 c 17.6,0, 32,14.4, 32,32l0,64 l 70.4-76.8c 14.080-10.56, 25.6-4.8, 25.6,12.8L 416,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-check, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 224,301.255L 121.373,182.628l 29.254-29.255L 224,210.745L 361.372,89.373l 29.256,29.254L 224,301.255z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-user, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 256,64.165c 35.255,0, 63.835,28.58, 63.835,63.835s-28.58,63.835-63.835,63.835\n\ts-63.835-28.58-63.835-63.835S 220.745,64.165, 256,64.165z M 352,320L 160,320 l0-32 c0-35.348, 28.654-64, 64-64l0,0l 64,0 \n\tc 35.348,0, 64,28.652, 64,64L 352,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-quote, comment, chat, talk, quote\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.4,0, 464,0z M 224,135.385c-29.821,6.85-55.189,28.007-70.488,56.941C 155.646,192.111, 157.81,192, 160,192\n\tc 35.346,0, 64,28.654, 64,64c0,35.346-28.654,64-64,64s-64-28.654-64-64c0-43.612, 15.198-84.729, 42.795-115.775\n\tC 162.042,114.073, 191.74,97.612, 224,92.621L 224,135.385 z M 416,135.385c-29.82,6.85-55.189,28.007-70.488,56.941\n\tC 347.646,192.111, 349.81,192, 352,192c 35.346,0, 64,28.654, 64,64c0,35.346-28.654,64-64,64s-64-28.654-64-64\n\tc0-43.612, 15.198-84.729, 42.795-115.775C 354.041,114.073, 383.74,97.612, 416,92.621L 416,135.385 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-blocked, blocked, denied, forbidden\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,102 C 273.952,102 290.692,107.287 304.75,116.38 L 180.38,240.75 C 171.287,226.692 166,209.953 166,192 C 166,142.374 206.374,102 256,102 ZM 207.25,267.619 L 331.619,143.25 C 340.714,157.308 346,174.047 346,192 C 346,241.626 305.626,282 256,282 C 238.047,282 221.308,276.714 207.25,267.619 ZM 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,288 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,48 \n\t\tC 512,21.6, 490.4,0, 464,0z M 256,320c-70.692,0-128-57.308-128-128S 185.308,64, 256,64s 128,57.308, 128,128S 326.692,320, 256,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"576\" height=\"512\" viewBox=\"0 0 576 512\" data-tags=\"bubbles, comments, chat, talk\" style=\"margin-left: 8px; margin-top: 9px;\"><path d=\"M 400,0 C 426.4,0 448,21.6 448,48 L 448,208 C 448,234.4 426.4,256 400,256 L 217.6,256 L 64,384 L 64,256 L 48,256 C 21.6,256 0,234.4 0,208 L 0,48 C 0,21.6 21.6,0 48,0 L 400,0 ZM 528,96 C 554.4,96 576,117.6 576,144 L 576,336 C 576,362.4 554.4,384 528,384 L 448,384 L 448,512 L 294.4,384 L 192,384 L 192,320 L 317.57,320 L 416,407.357 L 416,320 L 512,320 L 512,160 L 480,160 L 480,96 L 528,96 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"576\" height=\"512\" viewBox=\"0 0 576 512\" data-tags=\"bubbles, comments, chat, talk\" style=\"margin-left: 8px; margin-top: 9px;\"><path d=\"M 400,0L 48,0 C 21.6,0,0,21.6,0,48l0,160 c0,26.4, 21.6,48, 48,48l 16,0 l0,128 l 153.6-128L 400,256 c 26.4,0, 48-21.6, 48-48L 448,48 \n\tC 448,21.6, 426.4,0, 400,0z M 384,192L 194.428,192 L 96,279.357L 96,192 L 64,192 L 64,64 l 320,0 L 384,192 zM 528,96 C 554.4,96 576,117.6 576,144 L 576,336 C 576,362.4 554.4,384 528,384 L 448,384 L 448,512 L 294.4,384 L 192,384 L 192,320 L 317.57,320 L 416,407.357 L 416,320 L 512,320 L 512,160 L 480,160 L 480,96 L 528,96 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,128L 416,128L 416,160L 96,160zM 96,192L 352,192L 352,224L 96,224zM 96,256L 224,256L 224,288L 96,288zM 464,32L 48,32 C 21.6,32,0,53.6,0,80l0,256 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,80 \n\tC 512,53.6, 490.4,32, 464,32z M 448,320L 258.429,320 L 160,407.357L 160,320 L 64,320 L 64,96 l 384,0 L 448,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-dots, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,192L 192,192L 192,256L 128,256zM 224,192L 288,192L 288,256L 224,256zM 320,192L 384,192L 384,256L 320,256zM 464,32L 48,32 C 21.6,32,0,53.6,0,80l0,256 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,80 \n\t\tC 512,53.6, 490.4,32, 464,32z M 448,320L 258.429,320 L 160,407.357L 160,320 L 64,320 L 64,96 l 384,0 L 448,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,32L 48,32 C 21.6,32,0,53.6,0,80l0,256 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,80 \n\tC 512,53.6, 490.4,32, 464,32z M 448,320L 258.429,320 L 160,407.357L 160,320 L 64,320 L 64,96 l 384,0 L 448,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,32L 48,32 C 21.6,32,0,53.6,0,80l0,256 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,80 \n\tC 512,53.6, 490.4,32, 464,32z M 224,288L 96,288 l0-32 l 128,0 L 224,288 z M 352,224L 96,224 l0-32 l 256,0 L 352,224 z M 416,160L 96,160 l0-32 l 320,0 L 416,160 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-dots, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,32L 48,32 C 21.6,32,0,53.6,0,80l0,256 c0,26.4, 21.6,48, 48,48l 80,0 l0,128 l 153.6-128L 464,384 c 26.4,0, 48-21.6, 48-48L 512,80 \n\tC 512,53.6, 490.4,32, 464,32z M 192,256l-64,0 l0-64 l 64,0 L 192,256 z M 288,256l-64,0 l0-64 l 64,0 L 288,256 z M 384,256l-64,0 l0-64 l 64,0 L 384,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,32 C 490.4,32 512,53.6 512,80 L 512,336 C 512,362.4 490.4,384 464,384 L 281.6,384 L 128,512 L 128,384 L 48,384 C 21.6,384 0,362.4 0,336 L 0,80 C 0,53.6 21.6,32 48,32 L 464,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubbles, comments, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,96L 144,96 c-26.4,0-48,21.6-48,48l0,224 c0,26.4, 21.6,48, 48,48l 77.714,0 L 304,512l 82.286-96L 464,416 c 26.4,0, 48-21.6, 48-48L 512,144 \n\tC 512,117.6, 490.401,96, 464,96z M 448,352l-75.149,0 L 304,429.658L 235.15,352L 160,352 L 160,160 l 288,0 L 448,352 zM 64,64 L 64,320 L 48,320 C 21.6,320 0,298.4 0,272 L 0,48 C 0,21.6 21.6,0 48,0 L 368,0 C 394.401,0 416,21.6 416,48 L 416,64 L 64,64 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0L 48,0 C 21.6,0,0,21.6,0,48l0,320 c0,26.4, 21.6,48, 48,48l 109.714,0 L 240,512l 82.286-96L 464,416 c 26.4,0, 48-21.6, 48-48L 512,48 \n\tC 512,21.6, 490.401,0, 464,0z M 448,352L 308.851,352 L 240,429.658L 171.15,352L 64,352 L 64,64 l 384,0 L 448,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubbles, comments, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,96 C 490.401,96 512,117.6 512,144 L 512,368 C 512,394.4 490.4,416 464,416 L 386.286,416 L 304,512 L 221.714,416 L 144,416 C 117.6,416 96,394.4 96,368 L 96,144 C 96,117.6 117.6,96 144,96 L 464,96 ZM 64,64 L 64,320 L 48,320 C 21.6,320 0,298.4 0,272 L 0,48 C 0,21.6 21.6,0 48,0 L 368,0 C 394.401,0 416,21.6 416,48 L 416,64 L 64,64 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,0 C 490.401,0 512,21.6 512,48 L 512,368 C 512,394.4 490.4,416 464,416 L 322.286,416 L 240,512 L 157.714,416 L 48,416 C 21.6,416 0,394.4 0,368 L 0,48 C 0,21.6 21.6,0 48,0 L 464,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble, comment, chat, talk, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 418,32L 94,32 C 42.3,32,0,74.3,0,126l0,354 l 96-96l 124.75,0 L 418,384 c 51.7,0, 94-42.3, 94-94L 512,126 C 512,74.3, 469.7,32, 418,32z M 448,126l0,6 L 64,132 \n\tl0-6 c0-0.672, 0.032-1.337, 0.078-2l 383.844,0 C 447.968,124.663, 448,125.328, 448,126z M 447.922,292L 64,292 l0-8 l 384,0 l0,6 \n\tC 448,290.672, 447.968,291.338, 447.922,292z M 64,320l0-4 l 368.708,0 c-4.376,2.532-9.406,4-14.708,4L 64,320 z M 64,308l0-8 l 382.212,0 \n\tc-1.059,2.887-2.556,5.581-4.406,8L 64,308 z M 64,276l0-8 l 384,0 l0,8 L 64,276 z M 64,260l0-8 l 384,0 l0,8 L 64,260 z M 64,244l0-8 l 384,0 l0,8 L 64,244 z M 64,228l0-8 l 384,0 l0,8 L 64,228 z\n\t M 64,212l0-8 l 384,0 l0,8 L 64,212 z M 64,196l0-8 l 384,0 l0,8 L 64,196 z M 64,180l0-8 l 384,0 l0,8 L 64,180 z M 64,164l0-8 l 384,0 l0,8 L 64,164 z M 64,148l0-8 l 384,0 l0,8 L 64,148 z M 418,96\n\tc 5.302,0, 10.332,1.468, 14.709,4L 79.291,100 c 4.377-2.532, 9.407-4, 14.709-4L 418,96 z M 441.806,108c 1.852,2.419, 3.348,5.113, 4.406,8L 65.788,116 \n\tc 1.058-2.887, 2.555-5.581, 4.406-8L 441.806,108 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 418,32L 94,32 C 42.3,32,0,74.3,0,126l0,354 l 96-96l 124.75,0 L 418,384 c 51.7,0, 94-42.3, 94-94L 512,126 C 512,74.3, 469.7,32, 418,32z M 448,290\n\tc0,16.262-13.738,30-30,30L 64,320 L 64,126 c0-16.262, 13.738-30, 30-30l 324,0 c 16.262,0, 30,13.738, 30,30L 448,290 zM 128,160L 384,160L 384,192L 128,192zM 128,224L 320,224L 320,256L 128,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-dots, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 418,32L 94,32 C 42.3,32,0,74.3,0,126l0,354 l 96-96l 124.75,0 L 418,384 c 51.7,0, 94-42.3, 94-94L 512,126 C 512,74.3, 469.7,32, 418,32z M 448,290\n\tc0,16.262-13.738,30-30,30L 64,320 L 64,126 c0-16.262, 13.738-30, 30-30l 324,0 c 16.262,0, 30,13.738, 30,30L 448,290 zM 128,224A32,32 2520 1 1 192,224A32,32 2520 1 1 128,224zM 224,224A32,32 2520 1 1 288,224A32,32 2520 1 1 224,224zM 320,224A32,32 2520 1 1 384,224A32,32 2520 1 1 320,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 418,32L 94,32 C 42.3,32,0,74.3,0,126l0,354 l 96-96l 124.75,0 L 418,384 c 51.7,0, 94-42.3, 94-94L 512,126 C 512,74.3, 469.7,32, 418,32z M 448,290\n\tc0,16.262-13.738,30-30,30L 64,320 L 64,126 c0-16.262, 13.738-30, 30-30l 324,0 c 16.262,0, 30,13.738, 30,30L 448,290 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 418,32L 94,32 C 42.3,32,0,74.3,0,126l0,354 l 96-96l 124.75,0 L 418,384 c 51.7,0, 94-42.3, 94-94L 512,126 C 512,74.3, 469.7,32, 418,32z M 320,256L 128,256 \n\tl0-32 l 192,0 L 320,256 z M 384,192L 128,192 l0-32 l 256,0 L 384,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-dots, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 418,32L 94,32 C 42.3,32,0,74.3,0,126l0,354 l 96-96l 124.75,0 L 418,384 c 51.7,0, 94-42.3, 94-94L 512,126 C 512,74.3, 469.7,32, 418,32z M 160,256\n\tc-17.673,0-32-14.327-32-32s 14.327-32, 32-32s 32,14.327, 32,32S 177.673,256, 160,256z M 256,256c-17.673,0-32-14.327-32-32\n\ts 14.327-32, 32-32s 32,14.327, 32,32S 273.673,256, 256,256z M 352,256c-17.673,0-32-14.327-32-32s 14.327-32, 32-32s 32,14.327, 32,32\n\tS 369.673,256, 352,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 418,32 C 469.7,32 512,74.3 512,126 L 512,290 C 512,341.7 469.7,384 418,384 L 96,384 L 0,480 L 0,126 C 0,74.3 42.3,32 94,32 L 418,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"576\" height=\"512\" viewBox=\"0 0 576 512\" data-tags=\"bubbles, comments, chat, talk\" style=\"margin-left: 8px; margin-top: 9px;\"><path d=\"M 512,96 C 547.2,96 576,124.8 576,160 L 576,512 L 480,416 L 192,416 C 156.8,416 128,387.2 128,352 L 128,320 L 192,320 L 192,351.886 C 192.033,351.925 192.074,351.967 192.114,352 L 512,352 L 512,160.115 C 511.967,160.075 511.925,160.033 511.886,160 L 480,160 L 480,96 L 512,96 ZM 384,0L 64,0 C 28.8,0,0,28.8,0,64l0,320 l 96-96l 288,0 c 35.2,0, 64-28.8, 64-64L 448,64 C 448,28.8, 419.2,0, 384,0z M 384,223.886\n\tc-0.033,0.040-0.075,0.081-0.114,0.114L 64,224 L 64,64.114 c 0.033-0.040, 0.075-0.081, 0.115-0.114l 319.771,0 c 0.039,0.033, 0.081,0.075, 0.114,0.115\n\tL 384,223.886 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"576\" height=\"512\" viewBox=\"0 0 576 512\" data-tags=\"bubbles, comments, chat, talk\" style=\"margin-left: 8px; margin-top: 9px;\"><path d=\"M 384,0 C 419.2,0 448,28.8 448,64 L 448,224 C 448,259.2 419.2,288 384,288 L 96,288 L 0,384 L 0,64 C 0,28.8 28.8,0 64,0 L 384,0 ZM 512,96 C 547.2,96 576,124.8 576,160 L 576,512 L 480,416 L 192,416 C 156.8,416 128,387.2 128,352 L 128,320 L 192,320 L 192,351.886 C 192.033,351.925 192.074,351.967 192.114,352 L 512,352 L 512,160.115 C 511.967,160.075 511.925,160.033 511.886,160 L 480,160 L 480,96 L 512,96 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble-notification, comment, chat, talk, notification, warning\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,93.125,0,208c0,65.275, 37.020,123.52, 94.918,161.652C 95.621,374.335, 96,379.123, 96,384\n\tc0,34.948-29.732,65.529-64,82.318l0,13.458 c 63.463-1.448, 129.099-11.31, 184.088-66.299C 229.095,415.133, 242.422,416, 256,416\n\tc 141.385,0, 256-93.124, 256-208C 512,93.125, 397.385,0, 256,0z M 288,320l-64,0 l0-64 l 64,0 L 288,320 z M 288,192l-64,0 L 224,64 l 64,0 L 288,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"576\" height=\"512\" viewBox=\"0 0 576 512\" data-tags=\"bubbles, comments, chat, talk\" style=\"margin-left: 8px; margin-top: 9px;\"><path d=\"M 240,64 C 214.667,64 190.209,67.975 167.307,75.814 C 145.845,83.161 126.75,93.532 110.556,106.637 C 80.534,130.932 64,162.038 64,194.224 C 64,212.219 69.033,229.698 78.96,246.173 C 89.303,263.343 104.909,279.070 124.090,291.652 C 139.31,301.636 149.558,317.628 152.271,335.627 C 152.722,338.622 153.086,341.63 153.361,344.643 C 154.722,343.383 156.073,342.086 157.418,340.746 C 169.487,328.726 185.762,322.090 202.579,322.090 C 205.253,322.090 207.938,322.258 210.626,322.599 C 220.306,323.825 230.188,324.447 240,324.447 C 265.333,324.447 289.79,320.473 312.692,312.633 C 334.155,305.287 353.25,294.916 369.444,281.811 C 399.467,257.516 416,226.41 416,194.224 C 416,162.038 399.467,130.933 369.444,106.637 C 353.25,93.531 334.155,83.161 312.692,75.814 C 289.79,67.975 265.333,64 240,64 Z M 240,0 L 240,0 C 372.548,0 480,86.957 480,194.224 C 480,301.491 372.548,388.448 240,388.448 C 227.271,388.448 214.777,387.638 202.583,386.093 C 151.030,437.44 91.497,446.647 32,448 L 32,435.433 C 64.126,419.756 90,391.2 90,358.566 C 90,354.013 89.644,349.542 88.985,345.169 C 34.706,309.562 0,255.175 0,194.224 C 0,86.957 107.452,0 240,0 ZM 498,435.343 C 498,463.314 516.157,487.792 544,501.229 L 544,512 C 492.437,510.841 445.107,502.949 400.429,458.937 C 389.859,460.262 379.032,460.957 368,460.957 C 320.265,460.957 276.296,448.078 241.193,426.437 C 313.53,426.184 381.823,403.010 433.61,361.101 C 459.714,339.975 480.307,315.188 494.817,287.427 C 510.2,257.994 518,226.636 518,194.224 C 518,189 517.775,183.806 517.371,178.64 C 553.656,208.607 576,249.451 576,294.478 C 576,346.722 545.921,393.339 498.88,423.86 C 498.309,427.608 498,431.44 498,435.343 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"576\" height=\"512\" viewBox=\"0 0 576 512\" data-tags=\"bubbles, comments, chat, talk\" style=\"margin-left: 8px; margin-top: 9px;\"><path d=\"M 544,450.583 C 544,473.333 557.014,493.037 576,502.675 L 576,510.644 C 570.687,511.371 565.264,511.756 559.75,511.756 C 525.746,511.756 495.076,497.492 473.389,474.624 C 460.278,478.115 446.388,480 432,480 C 352.471,480 288,422.692 288,352 C 288,281.308 352.471,224 432,224 C 511.529,224 576,281.308 576,352 C 576,379.674 566.118,405.296 549.322,426.233 C 545.91,433.645 544,441.889 544,450.583 ZM 115.339,110.593 C 82.232,137.492 64,172.085 64,208 C 64,228.149 69.594,247.689 80.626,266.075 C 92.002,285.035 109.117,302.368 130.12,316.201 C 145.298,326.197 155.51,342.175 158.208,360.148 C 159.108,366.14 159.672,372.192 159.893,378.21 C 163.628,375.113 167.268,371.787 170.833,368.222 C 182.91,356.146 199.223,349.477 216.084,349.477 C 218.768,349.477 221.465,349.645 224.162,349.989 C 234.636,351.32 245.334,351.997 255.959,351.999 L 255.959,415.999 C 242.395,415.998 229.082,415.13 216.088,413.478 C 161.099,468.467 95.463,478.328 32,479.776 L 32,466.318 C 66.268,449.529 96,418.948 96,384 C 96,379.123 95.621,374.335 94.918,369.652 C 37.020,331.52 0,273.275 0,208 C 0,93.125 114.615,0 256,0 C 395.229,0 508.496,90.307 511.918,202.76 C 491.37,193.602 468.998,188.049 445.787,186.471 C 440.022,158.437 423.086,132.063 396.661,110.593 C 379,96.244 358.203,84.898 334.847,76.871 C 309.994,68.331 283.467,64 256,64 C 228.534,64 202.006,68.331 177.153,76.871 C 153.797,84.898 133,96.243 115.339,110.593 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,96 C 228.534,96 202.006,100.331 177.153,108.871 C 153.797,116.898 133,128.243 115.339,142.593 C 82.232,169.492 64,204.085 64,240 C 64,260.149 69.594,279.689 80.626,298.076 C 92.002,317.036 109.117,334.369 130.12,348.202 C 145.298,358.198 155.51,374.176 158.208,392.149 C 159.108,398.141 159.672,404.193 159.893,410.211 C 163.628,407.114 167.268,403.788 170.833,400.223 C 182.91,388.147 199.223,381.478 216.084,381.478 C 218.768,381.478 221.465,381.646 224.162,381.99 C 234.649,383.323 245.361,384 256,384 C 283.467,384 309.994,379.67 334.847,371.129 C 358.203,363.102 379,351.757 396.661,337.407 C 429.768,310.509 448,275.915 448,240 C 448,204.085 429.768,169.492 396.661,142.593 C 379,128.244 358.203,116.898 334.847,108.871 C 309.994,100.331 283.467,96 256,96 Z M 256,32 L 256,32 C 397.385,32 512,125.125 512,240 C 512,354.876 397.385,448 256,448 C 242.422,448 229.095,447.133 216.088,445.478 C 161.099,500.467 95.463,510.328 32,511.776 L 32,498.318 C 66.268,481.529 96,450.948 96,416 C 96,411.123 95.621,406.335 94.918,401.652 C 37.020,363.52 0,305.275 0,240 C 0,125.125 114.615,32 256,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"576\" height=\"512\" viewBox=\"0 0 576 512\" data-tags=\"bubbles, comments, chat, talk\" style=\"margin-left: 8px; margin-top: 9px;\"><path d=\"M 240,0 L 240,0 C 372.548,0 480,86.957 480,194.224 C 480,301.491 372.548,388.448 240,388.448 C 227.271,388.448 214.777,387.638 202.583,386.093 C 151.030,437.44 91.497,446.647 32,448 L 32,435.433 C 64.126,419.756 90,391.2 90,358.566 C 90,354.013 89.644,349.542 88.985,345.169 C 34.706,309.562 0,255.175 0,194.224 C 0,86.957 107.452,0 240,0 ZM 498,435.343 C 498,463.314 516.157,487.792 544,501.229 L 544,512 C 492.437,510.841 445.107,502.949 400.429,458.937 C 389.859,460.262 379.032,460.957 368,460.957 C 320.265,460.957 276.296,448.078 241.193,426.437 C 313.53,426.184 381.823,403.010 433.61,361.101 C 459.714,339.975 480.307,315.188 494.817,287.427 C 510.2,257.994 518,226.636 518,194.224 C 518,189 517.775,183.806 517.371,178.64 C 553.656,208.607 576,249.451 576,294.478 C 576,346.722 545.921,393.339 498.88,423.86 C 498.309,427.608 498,431.44 498,435.343 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"576\" height=\"512\" viewBox=\"0 0 576 512\" data-tags=\"bubbles, comments, chat, talk\" style=\"margin-left: 8px; margin-top: 9px;\"><path d=\"M 544,450.583 C 544,473.333 557.014,493.037 576,502.675 L 576,510.644 C 570.687,511.371 565.264,511.756 559.75,511.756 C 525.746,511.756 495.076,497.492 473.389,474.624 C 460.278,478.115 446.388,480 432,480 C 352.471,480 288,422.692 288,352 C 288,281.308 352.471,224 432,224 C 511.529,224 576,281.308 576,352 C 576,379.674 566.118,405.296 549.322,426.233 C 545.91,433.645 544,441.889 544,450.583 ZM 256,0 C 395.229,0 508.496,90.307 511.918,202.76 C 487.327,191.8 460.125,186 432,186 C 384.22,186 339.092,202.723 304.931,233.089 C 269.508,264.575 250,306.806 250,352 C 250,374.336 254.772,395.944 263.868,415.894 C 261.254,415.957 258.634,416 256,416 C 242.422,416 229.095,415.133 216.088,413.478 C 161.099,468.467 95.463,478.328 32,479.776 L 32,466.318 C 66.268,449.529 96,418.948 96,384 C 96,379.123 95.621,374.335 94.918,369.652 C 37.020,331.52 0,273.275 0,208 C 0,93.125 114.615,0 256,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bubble, comment, chat, talk\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,32 C 397.385,32 512,125.125 512,240 C 512,354.876 397.385,448 256,448 C 242.422,448 229.095,447.133 216.088,445.478 C 161.099,500.467 95.463,510.328 32,511.776 L 32,498.318 C 66.268,481.529 96,450.948 96,416 C 96,411.123 95.621,406.335 94.918,401.652 C 37.020,363.52 0,305.275 0,240 C 0,125.125 114.615,32 256,32 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"reply, replyall\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 429.406,0C 486.27,103.016, 511.375,260.152, 288,254.912L 288,128 L 96,320l 192,192L 288,387.814 C 512,387.814, 569.762,151.707, 429.406,0\n\t\tzM 192,173.255L 192,128L0,320L 192,512L 192,466.745L 45.255,320 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"reply, arrow, left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,387.814L 224,512 L 32,320l 192-192l0,126.912 C 447.375,260.152, 437.794,103.016, 380.931,0\n\tC 521.286,151.707, 491.481,394.785, 224,387.814z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"forward, arrow, right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 131.070,0C 74.206,103.016, 64.625,260.152, 288,254.912L 288,128 l 192,192L 288,512L 288,387.814 C 20.52,394.785-9.286,151.707, 131.070,0z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"redo, arrow, right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,124.186L 288,0 l 192,192L 288,384L 288,257.088 C 64.625,251.847, 74.206,408.984, 131.070,512\n\tC-9.286,360.293, 20.52,117.215, 288,124.186z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"undo, arrow, left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 380.931,512C 437.794,408.984, 447.375,251.847, 224,257.088L 224,384 L 32,192L 224,0l0,124.186 \n\tC 491.481,117.215, 521.285,360.293, 380.931,512z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"align-bottom\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,64 L 192,352 L 128,352 L 128,64 L 192,64 Z M 224,32 L 224,32 L 96,32 L 96,384 L 224,384 L 224,32 ZM 512,480L 512,416L 0,416L 0,480zM 416,384L 416,160L 288,160L 288,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"align-center-vertical\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,448L 224,288 l 64,0 l 0,96 L 416,384 l0-96 L 512,288 l0-64 l-96,0 l0-96 l-128,0 l 0,96 l-64,0 L 224,64 l-128,0 l 0,160 l-96,0 l 0,64 l 96,0 l 0,160 L 224,448 z M 128,416L 128,96 l 64,0 l 0,320 L 128,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"align-top\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,448 L 192,160 L 128,160 L 128,448 L 192,448 Z M 224,480 L 224,480 L 96,480 L 96,128 L 224,128 L 224,480 ZM 512,32L 512,96L 0,96L 0,32zM 416,128L 416,352L 288,352L 288,128z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"align-right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,320 L 352,320 L 352,384 L 64,384 L 64,320 Z M 32,288 L 32,288 L 32,416 L 384,416 L 384,288 L 32,288 ZM 480,0L 416,0L 416,512L 480,512zM 384,96L 160,96L 160,224L 384,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"align-center-horizontal\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,288L 288,288 l0-64 l 96,0 L 384,96 l-96,0 L 288,0 l-64,0 l0,96 l-96,0 l0,128 l 96,0 l0,64 L 64,288 l0,128 l 160,0 l0,96 l 64,0 l0-96 l 160,0 L 448,288 z M 416,384L 96,384 l0-64 l 320,0 L 416,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"align-left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,320 L 160,320 L 160,384 L 448,384 L 448,320 Z M 480,288 L 480,288 L 480,416 L 128,416 L 128,288 L 480,288 ZM 32,0L 96,0L 96,512L 32,512zM 128,96L 352,96L 352,224L 128,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"exclude, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,128L 352,0 L0,0 l0,352 l 128,0 l0,160 l 384,0 L 512,128 L 352,128 z M 448,196l-96,0 l0-4 l 96,0 L 448,196 z M 192,448l0-4 l 256,0 l0,4 L 192,448 z M 192,436l0-8 l 256,0 l0,8 L 192,436 z M 192,420l0-8 \n\tl 256,0 l0,8 L 192,420 z M 192,404l0-8 l 256,0 l0,8 L 192,404 z M 192,388l0-8 l 256,0 l0,8 L 192,388 z M 192,372l0-8 l 256,0 l0,8 L 192,372 z M 192,356l0-4 l 160,0 l0-4 l 96,0 l0,8 L 192,356 z M 352,340l0-8 l 96,0 l0,8 \n\tL 352,340 z M 352,324l0-8 l 96,0 l0,8 L 352,324 z M 352,308l0-8 l 96,0 l0,8 L 352,308 z M 352,292l0-8 l 96,0 l0,8 L 352,292 z M 352,276l0-8 l 96,0 l0,8 L 352,276 z M 352,260l0-8 l 96,0 l0,8 L 352,260 z M 352,244l0-8 \n\tl 96,0 l0,8 L 352,244 z M 352,228l0-8 l 96,0 l0,8 L 352,228 z M 352,212l0-8 l 96,0 l0,8 L 352,212 z M 288,128L 128,128 l0,4 L 64,132 l0-8 l 224,0 L 288,128 z M 64,288l0-4 l 64,0 l0,4 L 64,288 z M 64,276l0-8 l 64,0 l0,8 L 64,276 z\n\t M 64,260l0-8 l 64,0 l0,8 L 64,260 z M 64,244l0-8 l 64,0 l0,8 L 64,244 z M 64,228l0-8 l 64,0 l0,8 L 64,228 z M 64,212l0-8 l 64,0 l0,8 L 64,212 z M 64,196l0-8 l 64,0 l0,8 L 64,196 z M 64,180l0-8 l 64,0 l0,8 L 64,180 z\n\t M 64,164l0-8 l 64,0 l0,8 L 64,164 z M 64,148l0-8 l 64,0 l0,8 L 64,148 z M 288,116L 64,116 l0-8 l 224,0 L 288,116 z M 288,100L 64,100 l0-8 l 224,0 L 288,100 z M 288,84L 64,84 l0-8 l 224,0 L 288,84 z M 288,68L 64,68 l0-4 \n\tl 224,0 L 288,68 z M 160,160l 160,0 l0,160 L 160,320 L 160,160 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"interset, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,128L 352,0 L0,0 l0,352 l 128,0 l0,160 l 384,0 L 512,128 L 352,128 z M 320,196L 192,196 l0-4 l 128,0 L 320,196 z M 320,320L 192,320 l0-4 l 128,0 L 320,320 z M 320,308L 192,308 l0-8 l 128,0 L 320,308 z\n\t M 320,292L 192,292 l0-8 l 128,0 L 320,292 z M 320,276L 192,276 l0-8 l 128,0 L 320,276 z M 320,260L 192,260 l0-8 l 128,0 L 320,260 z M 320,244L 192,244 l0-8 l 128,0 L 320,244 z M 320,228L 192,228 l0-8 l 128,0 L 320,228 z\n\t M 320,212L 192,212 l0-8 l 128,0 L 320,212 z M 128,320L 32,320 L 32,32 l 288,0 l0,96 L 128,128 L 128,320 z M 480,480L 160,480 l0-96 l 224,0 L 384,160 l 96,0 L 480,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"subtract, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,160L 352,0 L0,0 l0,352 l 160,0 l0,160 l 352,0 L 512,160 L 352,160 z M 288,128L 128,128 l0,4 L 64,132 l0-8 l 224,0 L 288,128 z M 64,288l0-4 l 64,0 l0,4 L 64,288 z M 64,276l0-8 l 64,0 l0,8 L 64,276 z M 64,260l0-8 \n\tl 64,0 l0,8 L 64,260 z M 64,244l0-8 l 64,0 l0,8 L 64,244 z M 64,228l0-8 l 64,0 l0,8 L 64,228 z M 64,212l0-8 l 64,0 l0,8 L 64,212 z M 64,196l0-8 l 64,0 l0,8 L 64,196 z M 64,180l0-8 l 64,0 l0,8 L 64,180 z M 64,164l0-8 l 64,0 l0,8 \n\tL 64,164 z M 64,148l0-8 l 64,0 l0,8 L 64,148 z M 288,116L 64,116 l0-8 l 224,0 L 288,116 z M 288,100L 64,100 l0-8 l 224,0 L 288,100 z M 288,84L 64,84 l0-8 l 224,0 L 288,84 z M 288,68L 64,68 l0-4 l 224,0 L 288,68 z M 480,480\n\tL 192,480 L 192,192 l 288,0 L 480,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"unite, add, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,128L 352,0 L0,0 l0,352 l 128,0 l0,160 l 384,0 L 512,128 L 352,128 z M 320,164L 160,164 l0-4 l 160,0 L 320,164 z M 448,196l-96,0 l0-4 l 96,0 L 448,196 z M 160,316l 160,0 l0,4 L 160,320 L 160,316 z M 64,284\n\tl 64,0 l0,4 L 64,288 L 64,284 z M 128,188l0,8 L 64,196 l0-8 L 128,188 z M 64,180l0-8 l 64,0 l0,8 L 64,180 z M 128,204l0,8 L 64,212 l0-8 L 128,204 z M 160,260l0-8 l 160,0 l0,8 L 160,260 z M 320,268l0,8 L 160,276 l0-8 L 320,268 z\n\t M 160,244l0-8 l 160,0 l0,8 L 160,244 z M 160,228l0-8 l 160,0 l0,8 L 160,228 z M 160,212l0-8 l 160,0 l0,8 L 160,212 z M 128,220l0,8 L 64,228 l0-8 L 128,220 z M 128,236l0,8 L 64,244 l0-8 L 128,236 z M 128,252l0,8 L 64,260 \n\tl0-8 L 128,252 z M 128,268l0,8 L 64,276 l0-8 L 128,268 z M 160,284l 160,0 l0,8 L 160,292 L 160,284 z M 320,300l0,8 L 160,308 l0-8 L 320,300 z M 192,448l0-4 l 256,0 l0,4 L 192,448 z M 192,436l0-8 l 256,0 l0,8 L 192,436 z\n\t M 192,420l0-8 l 256,0 l0,8 L 192,420 z M 192,404l0-8 l 256,0 l0,8 L 192,404 z M 192,388l0-8 l 256,0 l0,8 L 192,388 z M 192,372l0-8 l 256,0 l0,8 L 192,372 z M 192,356l0-4 l 160,0 l0-4 l 96,0 l0,8 L 192,356 z\n\t M 352,340l0-8 l 96,0 l0,8 L 352,340 z M 352,324l0-8 l 96,0 l0,8 L 352,324 z M 352,308l0-8 l 96,0 l0,8 L 352,308 z M 352,292l0-8 l 96,0 l0,8 L 352,292 z M 352,276l0-8 l 96,0 l0,8 L 352,276 z M 352,260l0-8 l 96,0 l0,8 \n\tL 352,260 z M 352,244l0-8 l 96,0 l0,8 L 352,244 z M 352,228l0-8 l 96,0 l0,8 L 352,228 z M 352,212l0-8 l 96,0 l0,8 L 352,212 z M 320,196L 160,196 l0-8 l 160,0 L 320,196 z M 160,180l0-8 l 160,0 l0,8 L 160,180 z\n\t M 128,164L 64,164 l0-8 l 64,0 L 128,164 z M 288,64l0,4 L 64,68 l0-4 L 288,64 z M 288,76l0,8 L 64,84 l0-8 L 288,76 z M 288,92l0,8 L 64,100 l0-8 L 288,92 z M 288,108l0,8 L 64,116 l0-8 L 288,108 z M 288,124l0,4 L 128,128 l0,4 \n\tL 64,132 l0-8 L 288,124 z M 128,140l0,8 L 64,148 l0-8 L 128,140 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"flip, mirror, horizontal\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,0L 288,512L 480,512 \t\tzM0,512L 192,512L 192,0 \t\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"flip, mirror, vertical\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,192L 512,192L 512,0 \t\tzM 512,480L 512,288L0,288 \t\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"rotate, arrow, cw, redo\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,288c0-123.711-100.288-224-224-224S0,164.289,0,288c0,86.687, 49.246,161.865, 121.283,199.104\n\tC 67.973,454.109, 32,391.641, 32,320c0-106.039, 78.798-192, 176-192c 87.206,0, 159.577,69.196, 173.543,160L 320,288 l 96,112l 96-112L 448,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"rotate, arrow, ccw, undo\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,288C 64,164.289, 164.288,64, 288,64s 224,100.289, 224,224c0,86.687-49.246,161.865-121.283,199.104\n\tC 444.027,454.109, 480,391.641, 480,320c0-106.039-78.798-192-176-192c-87.206,0-159.577,69.196-173.543,160L 192,288 L 96,400L0,288L 64,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"redo, arrow, right\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,288c0,76.462, 33.524,145.092, 86.675,192l 42.333-48C 89.145,396.818, 64,345.348, 64,288c0-106.038, 85.965-192, 192-192\n\tc 53.021,0, 101.019,21.493, 135.765,56.239L 320,224l 192,0 L 512,32 l-74.985,74.989C 390.688,60.66, 326.693,32, 256,32\n\tC 114.615,32,0,146.615,0,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"undo, arrow, left\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,32c-70.692,0-134.688,28.66-181.016,74.989L0,32l0,192 l 192,0 l-71.766-71.761C 154.982,117.493, 202.98,96, 256,96\n\tc 106.034,0, 192,85.962, 192,192c0,57.348-25.146,108.818-65.009,144l 42.333,48C 478.475,433.092, 512,364.462, 512,288\n\tC 512,146.615, 397.385,32, 256,32z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"database, server, host, storage, save, datecenter\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,42.98,0,96l0,320 c0,53.020, 114.615,96, 256,96s 256-42.98, 256-96L 512,96 C 512,42.98, 397.385,0, 256,0z M 480,416\n\tc0,4.563-9.96,21.323-54.217,37.92c-21.501,8.062-46.785,14.432-75.149,18.931C 320.726,477.595, 288.887,480, 256,480\n\tc-32.886,0-64.726-2.405-94.634-7.149c-28.365-4.499-53.648-10.868-75.149-18.931C 41.96,437.323, 32,420.563, 32,416L 32,302.499 \n\tC 75.667,332.018, 159.604,352, 256,352s 180.333-19.982, 224-49.501L 480,416 z M 480,256c0,4.563-9.96,21.323-54.217,37.92\n\tc-21.501,8.062-46.785,14.432-75.149,18.931C 320.726,317.595, 288.887,320, 256,320c-32.886,0-64.726-2.405-94.634-7.149\n\tc-28.365-4.499-53.648-10.868-75.149-18.931C 41.96,277.323, 32,260.563, 32,256L 32,142.499 C 75.667,172.017, 159.604,192, 256,192\n\ts 180.333-19.983, 224-49.501L 480,256 z M 440.174,128c-4.342,1.962-9.115,3.942-14.391,5.92c-21.501,8.063-46.785,14.432-75.149,18.931\n\tC 320.726,157.595, 288.887,160, 256,160c-32.886,0-64.726-2.405-94.634-7.149c-28.365-4.499-53.648-10.868-75.149-18.931\n\tc-5.275-1.978-10.049-3.958-14.391-5.92C 39.742,113.502, 32,100.019, 32,96c0-4.563, 9.96-21.324, 54.217-37.92\n\tc 21.501-8.063, 46.785-14.432, 75.149-18.931C 191.274,34.405, 223.114,32, 256,32c 32.887,0, 64.726,2.405, 94.634,7.149\n\tc 28.364,4.499, 53.648,10.868, 75.149,18.931C 470.040,74.676, 480,91.437, 480,96C 480,100.019, 472.259,113.502, 440.174,128z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"database, server, host, storage, save, datecenter\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,112c0-14.205-5.024-35.38-28.958-55.589c-14.22-12.006-33.695-22.475-57.888-31.115C 379.48,8.983, 319.407,0, 256,0\n\tS 132.52,8.983, 86.845,25.295c-24.192,8.64-43.668,19.109-57.887,31.115C 5.024,76.62,0,97.795,0,112l-0.086,0 l0,144 L0,256 l0,0 l-0.086,0 l0,144 L0,400 \n\tc0,14.205, 5.024,35.381, 28.958,55.59c 14.219,12.006, 33.695,22.475, 57.887,31.115C 132.519,503.018, 192.593,512, 256,512\n\ts 123.48-8.982, 169.154-25.295c 24.192-8.641, 43.669-19.109, 57.888-31.115C 506.976,435.381, 512,414.205, 512,400L 512,256 l0,0l0,0 L 512,112 z\n\t M 115.588,83.115C 153.728,70.789, 203.593,64, 256,64c 52.406,0, 102.272,6.789, 140.411,19.115\n\tc 37.277,12.048, 49.46,24.998, 51.416,28.885c-1.956,3.887-14.139,16.837-51.416,28.885C 358.272,153.211, 308.406,160, 256,160\n\tc-52.407,0-102.272-6.789-140.412-19.115C 78.312,128.837, 66.129,115.887, 64.173,112C 66.129,108.113, 78.312,95.163, 115.588,83.115z\n\t M 396.412,428.885C 358.272,441.213, 308.407,448, 256,448c-52.407,0-102.273-6.787-140.412-19.115\n\tC 78.311,416.838, 66.129,403.887, 64.173,400l-0.087,0 l0-66.62 c 7.044,3.307, 14.628,6.421, 22.759,9.325\n\tC 132.519,359.017, 192.593,368, 256,368s 123.48-8.983, 169.154-25.295c 8.097-2.892, 15.652-5.993, 22.673-9.284L 447.827,400 \n\tC 445.871,403.887, 433.689,416.838, 396.412,428.885z M 396.412,284.885C 358.272,297.212, 308.407,304, 256,304\n\tc-52.407,0-102.273-6.788-140.412-19.115C 78.311,272.837, 66.129,259.887, 64.173,256l-0.087,0 l0-66.62 \n\tc 7.044,3.306, 14.628,6.421, 22.759,9.325C 132.52,215.017, 192.593,224, 256,224s 123.48-8.983, 169.154-25.295\n\tc 8.097-2.892, 15.652-5.993, 22.673-9.284L 447.827,256 C 445.871,259.887, 433.689,272.837, 396.412,284.885z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"database, server, host, storage, save, datecenter\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.614,0,0,35.816,0,80l0,64 c0,44.183, 114.611,80, 256,80c 141.385,0, 256-35.817, 256-80L 512,80 C 512,35.816, 397.385,0, 256,0\n\t\tzM 255.193,256C 140.566,256, 43.94,232.457, 11.32,200C 3.705,207.577,0,215.639,0,224l0,64 c0,44.184, 114.611,80, 256,80\n\t\tc 141.385,0, 256-35.816, 256-80l0-64 c0-8.361-4.516-16.423-12.131-24C 467.25,232.457, 369.82,256, 255.193,256zM 255.193,400C 140.566,400, 43.94,376.456, 11.32,344C 3.705,351.576,0,359.639,0,368l0,64 c0,44.183, 114.611,80, 256,80\n\t\tc 141.385,0, 256-35.817, 256-80l0-64 c0-8.361-4.516-16.424-12.131-24C 467.25,376.456, 369.82,400, 255.193,400z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"storage, save, hdd, hard disk, drive\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,128L 96,128L0,256L 512,256 \tzM0,384l 512,0 l0-96 L0,288 L0,384 z M 448,320l 32,0 l0,32 l-32,0 L 448,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"storage, save, hdd, hard disk, drive\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,448l 320,0 c 53.019,0, 96-42.98, 96-96L0,352 C0,405.020, 42.981,448, 96,448z M 416,384l 32,0 l0,32 l-32,0 L 416,384 zM 480,64L 32,64L0,320L 512,320 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cd, disk, record, dj, save, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,208.248c-26.331,0-47.752,21.421-47.752,47.752c0,26.331, 21.421,47.752, 47.752,47.752\n\t\tc 26.331,0, 47.752-21.421, 47.752-47.752C 303.752,229.669, 282.331,208.248, 256,208.248zM 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 439.442,123.984\n\t\tc-1.923-2.667-3.9-5.3-5.942-7.887C 435.543,118.684, 437.52,121.316, 439.442,123.984z M 426.758,107.976\n\t\tc-1.14-1.313-2.296-2.616-3.468-3.906C 424.464,105.359, 425.617,106.663, 426.758,107.976z M 422.93,103.677\n\t\tc-1.124-1.233-2.26-2.458-3.416-3.669C 420.67,101.218, 421.804,102.444, 422.93,103.677z M 100.511,420.004\n\t\tc 1.393,1.321, 2.802,2.618, 4.225,3.898C 103.315,422.621, 101.903,421.325, 100.511,420.004z M 104.926,424.078\n\t\tc 1.468,1.318, 2.952,2.616, 4.449,3.895C 107.878,426.694, 106.393,425.398, 104.926,424.078z M 136.2,447.68\n\t\tc-1.912-1.196-3.803-2.426-5.678-3.68l 7.978,0 L 136.2,447.68z M 143.5,436l-24.17,0 c 1.799,1.368, 3.616,2.71, 5.452,4.023\n\t\tc-5.285-3.774-10.411-7.785-15.375-12.023L 148.5,428 L 143.5,436z M 130.504,443.987c-1.892-1.265-3.762-2.563-5.615-3.886\n\t\tC 126.741,441.427, 128.612,442.723, 130.504,443.987z M 153.5,420l-52.993,0 c-1.453-1.379-2.893-2.773-4.313-4.194\n\t\tc-2.442-2.442-4.805-4.945-7.122-7.481c 1.126,1.236, 2.264,2.464, 3.422,3.676L 158.5,412.001 L 153.5,420z M 85.223,404.002\n\t\tc 1.146,1.32, 2.309,2.629, 3.486,3.927C 87.529,406.633, 86.369,405.322, 85.223,404.002z M 163.5,404L 85.221,404 \n\t\tc-4.472-5.151-8.695-10.48-12.663-15.982c 1.947,2.701, 3.948,5.365, 6.017,7.982L 168.5,396 L 163.5,404z M 173.5,388L 72.546,388 \n\t\tc-2.87-3.982-5.624-8.043-8.226-12.2c 0.884,1.413, 1.797,2.808, 2.713,4.2L 178.5,380 L 173.5,388z M 183.5,372L 70.399,372 l 21.051-13.156\n\t\tL 83.2,364l 105.3,0 L 183.5,372z M 193.5,356L 96,356 l 22.855-14.285L 108.8,348l 89.7,0 L 193.5,356z M 423.956,151.027L 428.8,148L 323.5,148 l-5,8L 416,156 \n\t\tl-12.8,8l-89.7,0 l-5,8l 81.899,0 l 5.237-3.273l-19.608,12.255L 377.6,180l-71.546,0 c 3.665,2.418, 7.146,5.092, 10.414,8L 364.8,188 l-12.8,8l-27.593,0 \n\t\tc 2.234,2.545, 4.329,5.215, 6.271,8l 8.521,0 l 4.044-2.527l-10.066,6.292c 8.76,13.985, 13.829,30.517, 13.829,48.236\n\t\tc0,50.26-40.744,91.003-91.006,91.003c-17.718,0-34.25-5.068-48.235-13.827L 203.5,340l-81.9,0 l 24.66-15.413L 134.4,332l 71.546,0 \n\t\tc-3.665-2.418-7.145-5.092-10.414-8L 147.2,324 l 31.624-19.765c-8.759-13.984-13.829-30.517-13.829-48.235\n\t\tc0-50.26, 40.744-91.003, 91.005-91.003c 17.719,0, 34.25,5.068, 48.234,13.827L 375.8,64.32c 3.849,2.409, 7.617,4.942, 11.315,7.581\n\t\tc-1.859-1.33-3.738-2.631-5.638-3.901L 373.5,68 l-5,8l 24.17,0 c-1.804-1.372-3.626-2.717-5.466-4.034\n\t\tc 5.29,3.778, 10.421,7.792, 15.39,12.034L 363.5,84 l-5,8l 52.992,0 c-1.388-1.317-2.793-2.611-4.211-3.887\n\t\tc 2.898,2.616, 5.746,5.303, 8.524,8.081c 1.254,1.253, 2.48,2.528, 3.701,3.806L 353.5,100 l-5,8l 78.279,0 c 2.276,2.623, 4.499,5.285, 6.646,8\n\t\tL 343.5,116 l-5,8l 100.954,0 c 2.87,3.982, 5.623,8.043, 8.226,12.2L 423.956,151.027z M 402.634,84.035c 1.493,1.276, 2.975,2.569, 4.438,3.886\n\t\tC 405.607,86.605, 404.127,85.311, 402.634,84.035zM 333.5,132l-5,8l 113.1,0 l 6.080-3.8c-0.885-1.413-1.797-2.808-2.713-4.2L 333.5,132 zM 172.8,308l-12.8,8l 27.593,0 c-2.234-2.545-4.329-5.215-6.272-8L 172.8,308 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"disk, save, floppy\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,0L0,0 l0,512 l 512,0 L 512,64 L 448,0z M 256,64l 64,0 l0,128 l-64,0 L 256,64 z M 448,448L 64,448 L 64,64 l 32,0 l0,160 l 288,0 L 384,64 l 37.489,0 L 448,90.509L 448,448 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"upload, load, arrow\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,288L 288,288L 288,160L 384,160L 256,32L 128,160L 224,160 \tzM 320,216L 320,265.356L 466.533,320L 256,398.509L 45.467,320L 192,265.356L 192,216L0,288L0,416L 256,512L 512,416L 512,288 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"download, store, save, arrow\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,288L 384,160L 288,160L 288,32L 224,32L 224,160L 128,160 \tzM 372.363,235.636L 336.493,271.507L 466.533,320L 256,398.509L 45.467,320L 175.507,271.507L 139.636,235.636L0,288L0,416L 256,512L 512,416L 512,288 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"box-remove, storage, inbox, archive, upload\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,32L 96,32 L0,128l0,336 c0,8.837, 7.163,16, 16,16l 480,0 c 8.836,0, 16-7.163, 16-16L 512,128 L 416,32z M 320,320l0,96 L 192,416 l0-96 L 96,320 l 160-128\n\tl 160,128L 320,320 z M 77.255,96l 32-32l 293.488,0 l 32,32L 77.255,96 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"box-add, storage, inbox, archive, download\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,32L 96,32 L0,128l0,336 c0,8.837, 7.163,16, 16,16l 480,0 c 8.836,0, 16-7.163, 16-16L 512,128 L 416,32z M 256,416L 96,288l 96,0 l0-96 l 128,0 l0,96 l 96,0 \n\tL 256,416z M 77.255,96l 32-32l 293.489,0 l 32,32L 77.255,96 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"box, storage, inbox, archive\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,64L 480,64L 480,128L 32,128zM 64,448l 384,0 L 448,160 L 64,160 L 64,448 z M 192,192l 128,0 l0,32 L 192,224 L 192,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"drawer, inbox, box, archive, storage, category\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 449.248,0 L 482.87,285.78 L 445.13,290.22 L 415.104,35 L 96.896,35 L 66.87,290.22 L 29.13,285.78 L 62.751,0 ZM 128,64L 384,64L 384,96L 128,96zM 128,128L 384,128L 384,160L 128,160zM 128,192L 384,192L 384,224L 128,224zM 128,256L 384,256L 384,288L 128,288zM 496,320L 16,320 c-8.8,0-13.723,6.83-10.94,15.179L 58.94,496.821C 61.723,505.17, 71.2,512, 80,512l 352,0 \n\tc 8.8,0, 18.276-6.83, 21.060-15.179l 53.881-161.643C 509.724,326.83, 504.8,320, 496,320z M 320,384L 192,384 l0-32 l 128,0 L 320,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"drawer, inbox, box, archive, storage, category\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,96L 160,96 L0,288l0,128 c0,17.673, 14.327,32, 32,32l 448,0 c 17.674,0, 32-14.327, 32-32L 512,288 L 352,96z M 320,352L 192,352 l-32-32l 192,0 \n\t\tL 320,352z M 41.655,288l 133.333-160l 162.024,0 l 133.333,160L 41.655,288 zM 142.482,192L 369.518,192L 342.851,160L 169.148,160 \tzM 89.149,256L 422.852,256L 396.185,224L 115.815,224 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"drawer, inbox, box, archive, storage, category\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,96L 160,96 L0,288l0,80 l0,48 c0,17.673, 14.327,32, 32,32l 448,0 c 17.674,0, 32-14.327, 32-32l0-48 l0-80 L 352,96z M 384,288l-64,64L 192,352 \n\tl-64-64L 41.655,288 l 133.333-160l 162.024,0 l 133.333,160L 384,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"544\" height=\"512\" viewBox=\"0 0 544 512\" data-tags=\"archive, office, documents, library, books\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,32L 32,32 C 14.4,32,0,46.4,0,64l0,384 c0,17.6, 14.4,32, 32,32l 96,0 c 17.6,0, 32-14.4, 32-32L 160,64 C 160,46.4, 145.6,32, 128,32z M 96,404\n\tc0,6.6-5.4,12-12,12l-8,0 c-6.6,0-12-5.4-12-12l0-8 c0-6.6, 5.4-12, 12-12l 8,0 c 6.6,0, 12,5.4, 12,12L 96,404 z M 128,320L 32,320 L 32,160 l 96,0 L 128,320 z M 128,128L 32,128 \n\tL 32,96 l 96,0 L 128,128 zM 320,32l-96,0 c-17.6,0-32,14.4-32,32l0,384 c0,17.6, 14.4,32, 32,32l 96,0 c 17.6,0, 32-14.4, 32-32L 352,64 C 352,46.4, 337.6,32, 320,32z\n\t M 288,404c0,6.6-5.4,12-12,12l-8,0 c-6.6,0-12-5.4-12-12l0-8 c0-6.6, 5.4-12, 12-12l 8,0 c 6.6,0, 12,5.4, 12,12L 288,404 z M 320,320l-96,0 L 224,160 l 96,0 L 320,320 z\n\t M 320,128l-96,0 L 224,96 l 96,0 L 320,128 zM 512,32l-96,0 c-17.6,0-32,14.4-32,32l0,384 c0,17.6, 14.4,32, 32,32l 96,0 c 17.6,0, 32-14.4, 32-32L 544,64 C 544,46.4, 529.6,32, 512,32z\n\t M 480,404c0,6.6-5.4,12-12,12l-8,0 c-6.6,0-12-5.4-12-12l0-8 c0-6.6, 5.4-12, 12-12l 8,0 c 6.6,0, 12,5.4, 12,12L 480,404 z M 512,320l-96,0 L 416,160 l 96,0 L 512,320 z\n\t M 512,128l-96,0 L 416,96 l 96,0 L 512,128 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cabinet, storage, drawer, archive, office\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,0L 160,0 L 64,64l0,128 l 384,0 L 448,64 L 352,0z M 320,160l-32,0 l0-21.333 C 288,132.8, 283.2,128, 277.333,128l-42.666,0 \n\t\tc-5.866,0-10.667,4.8-10.667,10.667L 224,160 l-32,0 l0-53.333 C 192,100.8, 196.801,96, 202.667,96l 106.665,0 c 5.867,0, 10.668,4.8, 10.668,10.667\n\t\tL 320,160 zM 64,352.001l 384,0 L 448,224 L 64,224 L 64,352.001 z M 192,266.666c0-5.867, 4.801-10.666, 10.667-10.666l 106.665,0 \n\t\tc 5.867,0, 10.668,4.799, 10.668,10.666L 320,320 l-32,0 l0-21.334 c0-5.867-4.8-10.666-10.667-10.666l-42.666,0 \n\t\tc-5.866,0-10.667,4.799-10.667,10.666L 224,320 l-32,0 L 192,266.666 zM 64,512l 384,0 L 448,384.001 L 64,384.001 L 64,512 z M 192,426.666c0-5.867, 4.801-10.666, 10.667-10.666l 106.665,0 c 5.867,0, 10.668,4.799, 10.668,10.666\n\t\tL 320,480 l-32,0 l0-21.334 c0-5.867-4.8-10.666-10.667-10.666l-42.666,0 c-5.866,0-10.667,4.799-10.667,10.666L 224,480 l-32,0 L 192,426.666 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tv, television, show\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 490.594,144.054c-44.404-6.384-91.691-11.008-141.038-13.61L 432,48l-32-32L 287.721,128.278\n\tC 277.218,128.094, 266.643,128, 256,128l0,0L 128,0L 96,32l 97.098,97.098c-60.461,2.121-118.169,7.262-171.693,14.956\n\tC 7.639,197.917,0,257.43,0,320s 7.639,122.083, 21.402,175.945C 93.223,506.271, 172.572,512, 256,512\n\tc 83.428,0, 162.775-5.729, 234.594-16.055C 504.361,442.083, 512,382.57, 512,320S 504.361,197.917, 490.594,144.054z M 431.946,437.297\n\tC 378.081,444.18, 318.571,448, 256,448c-62.571,0-122.083-3.82-175.946-10.703C 69.73,401.389, 64,361.714, 64,320\n\tc0-41.715, 5.729-81.39, 16.054-117.298C 133.917,195.819, 193.429,192, 256,192c 62.568,0, 122.081,3.819, 175.943,10.702\n\tC 442.271,238.61, 448,278.285, 448,320C 448,361.714, 442.271,401.389, 431.946,437.297z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mobile, phone, contact\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 336,0c-8.837,0-16,7.163-16,16l0,48 L 144,64 c-8.836,0-16,7.163-16,16l0,416 c0,8.836, 7.164,16, 16,16l 192,0 c 8.837,0, 16-7.164, 16-16L 352,16 \n\tC 352,7.163, 344.837,0, 336,0z M 192,480l-32,0 l0-32 l 32,0 L 192,480 z M 192,416l-32,0 l0-32 l 32,0 L 192,416 z M 192,352l-32,0 l0-32 l 32,0 L 192,352 z M 256,480l-32,0 l0-32 l 32,0 L 256,480 z\n\t M 256,416l-32,0 l0-32 l 32,0 L 256,416 z M 256,352l-32,0 l0-32 l 32,0 L 256,352 z M 320,480l-32,0 l0-32 l 32,0 L 320,480 z M 320,416l-32,0 l0-32 l 32,0 L 320,416 z M 320,352l-32,0 l0-32 l 32,0 L 320,352 z\n\t M 320,272c0,8.836-7.163,16-16,16L 176,288 c-8.836,0-16-7.164-16-16L 160,112 c0-8.837, 7.164-16, 16-16l 128,0 c 8.837,0, 16,7.163, 16,16L 320,272 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tablet, mobile\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 400,0L 80,0 C 53.6,0, 32,21.6, 32,48l0,416 c0,26.4, 21.6,48, 48,48l 320,0 c 26.4,0, 48-21.6, 48-48L 448,48 C 448,21.6, 426.4,0, 400,0z M 240,496\n\tc-8.836,0-16-7.163-16-16s 7.164-16, 16-16s 16,7.163, 16,16S 248.836,496, 240,496z M 384,448L 96,448 L 96,64 l 288,0 L 384,448 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mobile, phone, handheld\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,0L 96,0 C 78.4,0, 64,14.399, 64,32l0,448 c0,17.6, 14.399,32, 32,32l 288,0 c 17.6,0, 32-14.4, 32-32L 416,32 C 416,14.399, 401.6,0, 384,0z\n\t M 240,488.891c-13.746,0-24.891-11.145-24.891-24.891s 11.145-24.891, 24.891-24.891s 24.891,11.145, 24.891,24.891\n\tS 253.746,488.891, 240,488.891z M 384,416L 96,416 L 96,64 l 288,0 L 384,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mobile, phone, handheld\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 368,0L 144,0 c-26.4,0-48,21.6-48,48l0,416 c0,26.4, 21.6,48, 48,48l 224,0 c 26.4,0, 48-21.6, 48-48L 416,48 C 416,21.6, 394.4,0, 368,0z M 192,24\n\tl 128,0 l0,16 L 192,40 L 192,24 z M 256,480c-17.673,0-32-14.327-32-32s 14.327-32, 32-32s 32,14.327, 32,32S 273.673,480, 256,480z M 384,384L 128,384 L 128,64 l 256,0 L 384,384 \n\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"laptop, pc, computer\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,352L 448,96 c0-17.6-14.4-32-32-32L 96,64 c-17.6,0-32,14.4-32,32l0,256 L0,352 l0,96 l 512,0 l0-96 L 448,352 z M 320,416L 192,416 l0-32 l 128,0 L 320,416 z M 416,352L 96,352 \n\tL 96,96.057 c 0.017-0.020, 0.038-0.041, 0.057-0.057l 319.885,0 c 0.020,0.017, 0.041,0.038, 0.058,0.058L 416,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"screen, monitor, computer, pc, desktop\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,416L 512,32 L0,32 l0,384 l 224,0 l0,32 l-96,0 l0,32 l 256,0 l0-32 l-96,0 l0-32 L 512,416 z M 64,96l 384,0 l0,256 L 64,352 L 64,96 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"screen, monitor, computer, pc, desktop, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 48,236L 333,236L 319,228L 48,228 \t\tzM 48,220L 305,220L 291,212L 48,212 \t\tzM 48,204L 277,204L 263,196L 48,196 \t\tzM 48,188L 249,188L 235,180L 48,180 \t\tzM 48,252L 361,252L 347,244L 48,244 \t\tzM 48,268L 389,268L 375,260L 48,260 \t\tzM 48,284L 417,284L 403,276L 48,276 \t\tzM 48,92L 81,92L 67,84L 48,84 \t\tzM 48,292L 48,300L 445,300L 431,292 \t\tzM 48,108L 109,108L 95,100L 48,100 \t\tzM 48,124L 137,124L 123,116L 48,116 \t\tzM 48,156L 193,156L 179,148L 48,148 \t\tzM 48,140L 165,140L 151,132L 48,132 \t\tzM 48,172L 221,172L 207,164L 48,164 \t\tzM0,32l0,320 l 512,0 L 512,32 L0,32 z M 480,320L 32,320 L 32,64 l 448,0 L 480,320 zM 336,384L 176,384L 160,448L 128,480L 384,480L 352,448 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"screen, monitor, computer, pc, desktop, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32l0,320 l 512,0 L 512,32 L0,32 z M 480,320L 32,320 L 32,64 l 448,0 L 480,320 zM 336,384L 176,384L 160,448L 128,480L 384,480L 352,448 \tzM 48,228L 464,228L 464,236L 48,236zM 48,212L 464,212L 464,220L 48,220zM 48,244L 464,244L 464,252L 48,252zM 48,196L 464,196L 464,204L 48,204zM 48,260L 464,260L 464,268L 48,268zM 48,292L 464,292L 464,300L 48,300zM 48,276L 464,276L 464,284L 48,284zM 48,100L 464,100L 464,108L 48,108zM 48,180L 464,180L 464,188L 48,188zM 48,116L 464,116L 464,124L 48,124zM 48,84L 464,84L 464,92L 48,92zM 48,164L 464,164L 464,172L 48,172zM 48,148L 464,148L 464,156L 48,156zM 48,132L 464,132L 464,140L 48,140z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"screen, monitor, computer, pc, desktop\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32l0,320 l 512,0 L 512,32 L0,32 z M 480,320L 32,320 L 32,64 l 448,0 L 480,320 zM 336,384L 176,384L 160,448L 128,480L 384,480L 352,448 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"keyboard, type, typing\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,128L 32,128 c-17.6,0-32,14.4-32,32l0,224 c0,17.6, 14.4,32, 32,32l 416,0 c 17.6,0, 32-14.4, 32-32L 480,160 C 480,142.4, 465.6,128, 448,128z\n\t\t M 448,383.942c-0.017,0.020-0.038,0.041-0.058,0.058L 32.057,384 c-0.020-0.017-0.041-0.038-0.057-0.058L 32,160.057 \n\t\tc 0.017-0.020, 0.038-0.041, 0.057-0.057l 415.885,0 c 0.020,0.017, 0.041,0.038, 0.058,0.058L 448,383.942 zM 128,320L 352,320L 352,352L 128,352zM 352,256L 384,256L 384,288L 352,288zM 288,256L 320,256L 320,288L 288,288zM 224,256L 256,256L 256,288L 224,288zM 160,256L 192,256L 192,288L 160,288zM 96,256L 128,256L 128,288L 96,288zM 320,192L 352,192L 352,224L 320,224zM 384,192L 416,192L 416,224L 384,224zM 256,192L 288,192L 288,224L 256,224zM 192,192L 224,192L 224,224L 192,224zM 128,192L 160,192L 160,224L 128,224zM 64,192L 96,192L 96,224L 64,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"576\" height=\"512\" viewBox=\"0 0 576 512\" data-tags=\"keyboard, type, typing\" style=\"margin-left: 8px; margin-top: 9px;\"><path d=\"M 544,64L 32,64 C 14.4,64,0,78.4,0,96l0,320 c0,17.6, 14.4,32, 32,32l 512,0 c 17.6,0, 32-14.4, 32-32L 576,96 C 576,78.4, 561.6,64, 544,64z M 320,128\n\tl 64,0 l0,64 l-64,0 L 320,128 z M 416,224l0,64 l-64,0 l0-64 L 416,224 z M 224,128l 64,0 l0,64 l-64,0 L 224,128 z M 320,224l0,64 l-64,0 l0-64 L 320,224 z M 128,128l 64,0 l0,64 l-64,0 L 128,128 z M 224,224l0,64 \n\tl-64,0 l0-64 L 224,224 z M 64,128l 32,0 l0,64 L 64,192 L 64,128 z M 64,224l 64,0 l0,64 L 64,288 L 64,224 z M 96,384L 64,384 l0-64 l 32,0 L 96,384 z M 384,384L 128,384 l0-64 l 256,0 L 384,384 z M 512,384l-96,0 l0-64 l 96,0 \n\tL 512,384 z M 512,288l-64,0 l0-64 l 64,0 L 512,288 z M 512,192l-96,0 l0-64 l 96,0 L 512,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mouse, click, right, pc\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 239.999,32C 192,32, 96,50.68, 96,128l0,212 c0,77.318, 64.471,140, 143.999,140S 384,417.318, 384,340L 384,128 \n\tC 384,50.68, 288,32, 239.999,32z M 128,128c0-10.974, 2.969-20.152, 9.076-28.060c 5.924-7.672, 14.915-14.422, 26.72-20.063\n\tC 182.578,70.902, 205.132,65.632, 224,64l0,128 l-96,0 L 128,128 z M 352,340c0,28.677-11.537,55.686-32.484,76.051\n\tc-10.287,10.002-22.277,17.857-35.635,23.353c-13.873,5.704-28.637,8.597-43.882,8.597c-15.244,0-30.008-2.893-43.881-8.598\n\tc-13.357-5.494-25.349-13.351-35.636-23.353C 139.536,395.686, 128,368.676, 128,339.999L 128,224 l 224,0 L 352,340 L 352,340z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mouse, click, left, pc\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 240,32c-48,0-144,18.68-144,96l0,212 c0,77.318, 64.471,140, 144,140c 79.528,0, 144-62.682, 144-140L 384,128 C 384,50.68, 288,32, 240,32z\n\t M 352,340c0,28.677-11.537,55.686-32.484,76.051c-10.287,10.002-22.277,17.857-35.635,23.353C 270.008,445.107, 255.245,448, 240,448\n\ts-30.009-2.893-43.881-8.598c-13.358-5.494-25.35-13.351-35.637-23.353C 139.536,395.686, 128,368.677, 128,340L 128,224 l 224,0 L 352,340 z M 352,192\n\tl-96,0 L 256,64 c 18.868,1.633, 41.422,6.904, 60.204,15.878c 11.805,5.641, 20.795,12.391, 26.721,20.063C 349.030,107.848, 352,117.027, 352,128L 352,192 \n\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mouse, pc\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 397.759,318.145l-76.8-128c-35.532-59.222-111.393-79.334-171.395-46.317C 136.634,120.593, 128,98.603, 128,80\n\tc0-17.485, 3.79-40.151, 21.843-48.83c 1.368-0.658, 3.435-1.651, 5.47-3.687c 6.249-6.249, 6.249-16.379,0-22.628\n\tc-5.266-5.266-13.29-6.094-19.421-2.484C 110.166,14.785, 96,42.349, 96,80c0,25.991, 11.055,54.009, 27.449,82.79\n\tc-42.94,40.348-53.559,106.479-22.008,159.065l 76.8,128c 24.001,40.003, 66.395,62.164, 109.88,62.164\n\tc 22.411,0, 45.118-5.891, 65.734-18.26C 414.474,457.389, 434.13,378.763, 397.759,318.145z M 236.069,297.825\n\tc-4.576,2.912-9.688,4.303-14.737,4.303c-9.090,0-17.985-4.503-23.228-12.74l-36.771-57.782c-8.153-12.813-4.376-29.811, 8.438-37.965\n\tc 12.812-8.154, 29.81-4.377, 37.965,8.437l 36.771,57.782C 252.66,272.674, 248.883,289.671, 236.069,297.825z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mouse, pc\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,39.429L 320,192 L 192,192 L 192,39.429 C 144.201,50.546, 96,76.024, 96,128l0,212 c0,77.318, 71.634,140, 160,140c 88.363,0, 160-62.682, 160-140\n\t\tL 416,128 C 416,76.024, 367.799,50.546, 320,39.429zM 288,33.933C 276.277,32.579, 265.321,32, 256,32c-9.32,0-20.276,0.579-32,1.933L 224,160 l 64,0 L 288,33.933 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"print, printer\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,288L 448,416L 64,416L 64,288L0,288L0,480L 512,480L 512,288 \t\tzM 416,32L 96,32 l0,352 l 320,0 L 416,32 z M 352,320L 160,320 l0-32 l 192,0 L 352,320 z M 352,224L 160,224 l0-32 l 192,0 L 352,224 z M 352,128L 160,128 L 160,96 l 192,0 L 352,128 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"print, printer\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,32L 384,32L 384,96L 128,96zM 480,128L 32,128 C 14.4,128,0,142.4,0,160l0,160 c0,17.6, 14.398,32, 32,32l 96,0 l0,128 l 256,0 L 384,352 l 96,0 c 17.6,0, 32-14.4, 32-32L 512,160 \n\t\tC 512,142.4, 497.6,128, 480,128z M 352,448L 160,448 L 160,288 l 192,0 L 352,448 z M 487.2,176c0,12.813-10.387,23.2-23.199,23.2\n\t\tc-12.813,0-23.201-10.387-23.201-23.2s 10.388-23.2, 23.201-23.2C 476.814,152.8, 487.2,163.187, 487.2,176z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"print, printer\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 510.225,384.049l-12.449-224.098C 496.799,142.378, 481.6,128, 464,128l-80,0 L 384,0 L 128,0 l0,128 L 48,128 \n\tc-17.601,0-32.799,14.378-33.775,31.951L 1.775,384.049C 0.799,401.622, 14.4,416, 32,416l 70.4,0 L 64,512l 384,0 l-38.4-96L 480,416 \n\tC 497.6,416, 511.2,401.622, 510.225,384.049z M 160,32l 192,0 l0,96 L 160,128 L 160,32 z M 111.265,480l 38.4-96l 212.67,0 l 38.4,96L 111.265,480 z M 448,224l-32,0 l0-64 \n\tl 32,0 L 448,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"calendar, schedule, date, time, day\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,64l-48,0 l0,16 c0,17.645-14.355,32-32,32s-32-14.355-32-32L 336,64 L 176,64 l0,16 c0,17.645-14.355,32-32,32s-32-14.355-32-32L 112,64 L 64,64 \n\t\tc-17.6,0-32,14.4-32,32l0,352 c0,17.6, 14.4,32, 32,32l 384,0 c 17.6,0, 32-14.4, 32-32L 480,96 C 480,78.4, 465.6,64, 448,64z M 448,447.942\n\t\tc-0.017,0.020-0.038,0.041-0.058,0.058L 64.057,448 c-0.020-0.017-0.041-0.038-0.057-0.058L 64,160 l 384,0 L 448,447.942 zM 144,96c 8.836,0, 16-7.164, 16-16L 160,16 c0-8.836-7.164-16-16-16s-16,7.164-16,16l0,64 C 128,88.836, 135.164,96, 144,96zM 368,96c 8.836,0, 16-7.164, 16-16L 384,16 c0-8.836-7.164-16-16-16s-16,7.164-16,16l0,64 C 352,88.836, 359.164,96, 368,96zM 288,192L 128,192L 128,224L 256,224L 256,288L 128,288L 128,320L 256,320L 256,384L 128,384L 128,416L 288,416 \tzM 352,416L 384,416L 384,192L 320,192L 320,224L 352,224 \tzM 436,492L 76,492 c-17.6,0-32-10.4-32-28l0,16 c0,17.6, 14.4,32, 32,32l 360,0 c 17.6,0, 32-14.4, 32-32l0-16 C 468,481.6, 453.6,492, 436,492z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"calendar, schedule, date, time, day\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,96l-32,0 l0,64 l-96,0 L 288,96 l-96,0 l0,64 L 96,160 L 96,96 L 64,96 c-17.6,0-32,14.4-32,32l0,352 c0,17.6, 14.4,32, 32,32l 352,0 c 17.6,0, 32-14.4, 32-32L 448,128 \n\t\tC 448,110.4, 433.6,96, 416,96z M 128,480L 64.057,480 c-0.020-0.017-0.041-0.038-0.057-0.058L 64,416 l 64,0 L 128,480 z M 128,384L 64,384 l0-64 l 64,0 L 128,384 z M 128,288\n\t\tL 64,288 l0-64 l 64,0 L 128,288 z M 224,480l-64,0 l0-64 l 64,0 L 224,480 z M 224,384l-64,0 l0-64 l 64,0 L 224,384 z M 224,288l-64,0 l0-64 l 64,0 L 224,288 z M 320,480l-64,0 l0-64 l 64,0 L 320,480 z M 320,384\n\t\tl-64,0 l0-64 l 64,0 L 320,384 z M 320,288l-64,0 l0-64 l 64,0 L 320,288 z M 416,479.942c-0.017,0.020-0.038,0.041-0.058,0.058L 352,480 l0-64 l 64,0 L 416,479.942 z M 416,384l-64,0 \n\t\tl0-64 l 64,0 L 416,384 z M 416,288l-64,0 l0-64 l 64,0 L 416,288 zM 160,64c0-8.836-7.164-16-16-16s-16,7.164-16,16l0,64 l 32,0 L 160,64 zM 352,64c0-8.836-7.164-16-16-16s-16,7.164-16,16l0,64 l 32,0 L 352,64 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"calendar, schedule, date, time, day\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,160L 96,160L 96,192L 64,192zM 128,160L 160,160L 160,192L 128,192zM 192,160L 224,160L 224,192L 192,192zM 256,160L 288,160L 288,192L 256,192zM 320,160L 352,160L 352,192L 320,192zM 384,160L 416,160L 416,192L 384,192zM 64,224L 96,224L 96,256L 64,256zM 128,224L 160,224L 160,256L 128,256zM 192,224L 224,224L 224,256L 192,256zM 256,224L 288,224L 288,256L 256,256zM 320,224L 352,224L 352,256L 320,256zM 384,224L 416,224L 416,256L 384,256zM 64,288L 96,288L 96,320L 64,320zM 128,288L 160,288L 160,320L 128,320zM 192,288L 224,288L 224,320L 192,320zM 256,288L 288,288L 288,320L 256,320zM 320,288L 352,288L 352,320L 320,320zM 384,288L 416,288L 416,320L 384,320zM 64,352L 96,352L 96,384L 64,384zM 128,352L 160,352L 160,384L 128,384zM 192,352L 224,352L 224,384L 192,384zM 256,352L 288,352L 288,384L 256,384zM 320,352L 352,352L 352,384L 320,384zM 384,352L 416,352L 416,384L 384,384zM 64,416L 96,416L 96,448L 64,448zM 128,416L 160,416L 160,448L 128,448zM 192,416L 224,416L 224,448L 192,448zM 256,416L 288,416L 288,448L 256,448zM 320,416L 352,416L 352,448L 320,448zM 384,416L 416,416L 416,448L 384,448zM 416,32L 416,0 l-64,0 l0,64 l-32,0 L 320,32 L 160,32 l0,32 l-32,0 L 128,0 L 64,0 l0,32 L0,32 l0,480 l 480,0 L 480,32 L 416,32 z M 448,480L 32,480 L 32,128 l 416,0 L 448,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"calendar, schedule, date, time, day\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,192L 224,192L 224,256L 160,256zM 256,192L 320,192L 320,256L 256,256zM 352,192L 416,192L 416,256L 352,256zM 64,384L 128,384L 128,448L 64,448zM 160,384L 224,384L 224,448L 160,448zM 256,384L 320,384L 320,448L 256,448zM 160,288L 224,288L 224,352L 160,352zM 256,288L 320,288L 320,352L 256,352zM 352,288L 416,288L 416,352L 352,352zM 64,288L 128,288L 128,352L 64,352zM 416,0l0,32 l-64,0 L 352,0 L 128,0 l0,32 L 64,32 L 64,0 L0,0 l0,512 l 480,0 L 480,0 L 416,0 z M 448,480L 32,480 L 32,128 l 416,0 L 448,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"calendar, schedule, date, time, day\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,480c0,17.674, 14.327,32, 32,32l 448,0 c 17.674,0, 32-14.326, 32-32L 512,192 L0,192 L0,480 z M 352,224l 128,0 l0,64 L 352,288 L 352,224 z M 352,320l 128,0 l0,64 L 352,384 \n\t\tL 352,320 z M 352,416l 128,0 l0,64 L 352,480 L 352,416 z M 192,224l 128,0 l0,64 L 192,288 L 192,224 z M 192,320l 128,0 l0,64 L 192,384 L 192,320 z M 192,416l 128,0 l0,64 L 192,480 L 192,416 z M 32,224l 128,0 l0,64 L 32,288 \n\t\tL 32,224 z M 32,320l 128,0 l0,64 L 32,384 L 32,320 z M 32,416l 128,0 l0,64 L 32,480 L 32,416 zM 480,64l-64,0 L 416,18.286 C 416,8.187, 408.837,0, 400,0c-8.836,0-16,8.187-16,18.286L 384,64 L 128,64 L 128,18.286 C 128,8.187, 120.837,0, 112,0\n\t\tS 96,8.187, 96,18.286L 96,64 L 32,64 C 14.327,64,0,78.327,0,96l0,64 l 512,0 L 512,96 C 512,78.327, 497.673,64, 480,64z M 112,144c-17.673,0-32-14.327-32-32\n\t\tc0-11.842, 6.438-22.174, 16-27.708L 96,112 c0,8.836, 7.164,16, 16,16s 16-7.164, 16-16L 128,84.292 c 9.562,5.534, 16,15.866, 16,27.708\n\t\tC 144,129.673, 129.673,144, 112,144z M 400,144c-17.672,0-32-14.327-32-32c0-11.842, 6.438-22.174, 16-27.708L 384,112 \n\t\tc0,8.836, 7.164,16, 16,16c 8.837,0, 16-7.164, 16-16L 416,84.292 c 9.563,5.534, 16,15.866, 16,27.708C 432,129.673, 417.674,144, 400,144z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stopwatch, time, speed, meter, chronometer\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256.001,96.606L 256.001,64 l 64,0 L 320.001,32 c0-17.673-14.327-32-32.001-32l-95.999,0 c-17.673,0-32,14.327-32,32l0,32 l 64,0 l0,32.606 \n\tc-107.399,8.169-192,97.901-192,207.394c0,114.875, 93.125,208, 208,208c 114.875,0, 208-93.125, 208-208\n\tC 448.001,194.508, 363.4,104.776, 256.001,96.606z M 353.138,417.137C 322.917,447.357, 282.739,464, 240.001,464\n\ts-82.917-16.643-113.137-46.863C 96.644,386.917, 80.001,346.737, 80.001,304s 16.643-82.917, 46.863-113.137\n\tc 29.020-29.019, 67.224-45.509, 108.057-46.774l-10.839,157.010C 223.152,314.244, 230.314,320, 240,320\n\tc 9.686,0, 16.849-5.756, 15.918-18.901L 245.080,144.088c 40.833,1.266, 79.038,17.756, 108.058,46.775\n\tc 30.22,30.22, 46.863,70.4, 46.863,113.137S 383.358,386.917, 353.138,417.137z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"alarm-cancel, bell, notification\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,416c-53.021,0-96-42.98-96-96L 416,177.455 c0-70.369-54.971-129.064-128-142.542L 288,0 l-64,0 l0,34.912 \n\tC 150.968,48.391, 96,107.085, 96,177.454L 96,320 c0,53.020-42.981,96-96,96l0,32 l 214.799,0 c-2.604,5.712-4.055,12.059-4.055,18.745\n\tC 210.744,491.738, 231.006,512, 256,512c 24.992,0, 45.255-20.262, 45.255-45.255c0-6.688-1.45-13.033-4.056-18.745L 512,448 L 512,416 z M 352,352\n\tl-38.891,0 L 256,294.891L 198.891,352L 160,352 l0-38.891 L 217.109,256L 160,198.891L 160,160 l 38.891,0 L 256,217.109L 313.109,160L 352,160 l0,38.891 L 294.891,256\n\tL 352,313.109L 352,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"alarm-check, bell, notification\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,416c-53.021,0-96-42.98-96-96L 416,177.455 c0-70.369-54.971-129.064-128-142.542L 288,0 l-64,0 l0,34.912 \n\tC 150.968,48.391, 96,107.085, 96,177.454L 96,320 c0,53.020-42.981,96-96,96l0,32 l 214.799,0 c-2.604,5.712-4.055,12.059-4.055,18.745\n\tC 210.744,491.738, 231.006,512, 256,512c 24.992,0, 45.255-20.262, 45.255-45.255c0-6.688-1.45-13.033-4.056-18.745L 512,448 L 512,416 z\n\t M 224,369.891l-77.445-102.445l 23.891-23.891L 224,282.109l 122.555-108.555l 24.891,24.891L 224,369.891z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"alarm-minus, bell, notification\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,416c-53.021,0-96-42.98-96-96L 416,177.455 c0-70.369-54.971-129.064-128-142.542L 288,0 l-64,0 l0,34.912 \n\tC 150.968,48.391, 96,107.085, 96,177.454L 96,320 c0,53.020-42.981,96-96,96l0,32 l 214.799,0 c-2.604,5.712-4.055,12.059-4.055,18.745\n\tC 210.744,491.738, 231.006,512, 256,512c 24.992,0, 45.255-20.262, 45.255-45.255c0-6.688-1.45-13.033-4.056-18.745L 512,448 L 512,416 z M 352,288\n\tL 160,288 l0-64 l 192,0 L 352,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"alarm-plus, bell, notification\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,416c-53.021,0-96-42.98-96-96L 416,177.455 c0-70.369-54.971-129.064-128-142.542L 288,0 l-64,0 l0,34.912 \n\tC 150.968,48.391, 96,107.085, 96,177.454L 96,320 c0,53.020-42.981,96-96,96l0,32 l 214.799,0 c-2.604,5.712-4.055,12.059-4.055,18.745\n\tC 210.744,491.738, 231.006,512, 256,512c 24.992,0, 45.255-20.262, 45.255-45.255c0-6.688-1.45-13.033-4.056-18.745L 512,448 L 512,416 z M 352,288\n\tl-64,0 l0,64 l-64,0 l0-64 l-64,0 l0-64 l 64,0 l0-64 l 64,0 l0,64 l 64,0 L 352,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bell, alarm, notification\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,416c-53.021,0-96-42.98-96-96L 416,177.455 c0-70.369-54.971-129.064-128-142.542L 288,0 l-64,0 l0,34.912 \n\tC 150.968,48.391, 96,107.085, 96,177.454L 96,320 c0,53.020-42.981,96-96,96l0,32 l 214.799,0 c-2.604,5.712-4.055,12.059-4.055,18.745\n\tC 210.744,491.738, 231.006,512, 256,512c 24.992,0, 45.255-20.262, 45.255-45.255c0-6.688-1.451-13.033-4.056-18.745L 512,448 L 512,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bell, alarm, notification\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512.75,400c0-144-128-112-128-224c0-9.28-0.894-17.21-2.524-23.964c-8.415-56.509-46.078-101.86-94.886-115.68\n\tc 0.433-1.974, 0.66-4.016, 0.66-6.105C 288,13.612, 273.6,0, 256,0c-17.6,0-32,13.612-32,30.25c0,2.090, 0.228,4.132, 0.66,6.105\n\tc-54.735,15.499-95.457,70.649-96.627,136.721c-0.020,0.96-0.033,1.932-0.033,2.923C 128,288,0,256,0,400\n\tc0,38.113, 85.295,69.998, 199.485,78.040C 210.247,498.242, 231.513,512, 256,512s 45.754-13.758, 56.515-33.96\n\tC 426.705,469.998, 512,438.113, 512,400c0-0.114-0.013-0.228-0.014-0.341L 512.75,400z M 413.123,427.048\n\tc-27.115,7.235-59.079,12.438-93.384,15.324C 316.887,409.663, 289.448,384, 256,384s-60.887,25.663-63.739,58.372\n\tc-34.304-2.886-66.269-8.089-93.384-15.324C 61.562,417.091, 43.722,405.953, 37.193,400c 6.529-5.953, 24.369-17.091, 61.684-27.048\n\tC 142.263,361.376, 198.063,355, 256,355s 113.737,6.376, 157.123,17.952c 37.315,9.957, 55.155,21.095, 61.684,27.048\n\tC 468.278,405.953, 450.438,417.091, 413.123,427.048z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"alarm, clock, time\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,64C 132.288,64, 32,164.288, 32,288s 100.288,224, 224,224s 224-100.288, 224-224S 379.712,64, 256,64z M 256,468\n\tc-99.412,0-180-80.589-180-180c0-99.412, 80.588-180, 180-180c 99.411,0, 180,80.588, 180,180C 436,387.411, 355.411,468, 256,468z\n\t M 467.392,143.587C 475.413,129.561, 480,113.316, 480,96c0-53.020-42.98-96-96-96c-30.909,0-58.401,14.611-75.96,37.298\n\tC 373.982,50.916, 430.643,89.897, 467.392,143.587z M 203.96,37.298C 186.402,14.611, 158.909,0, 128,0C 74.98,0, 32,42.98, 32,96\n\tc0,17.316, 4.587,33.561, 12.608,47.587C 81.358,89.897, 138.019,50.916, 203.96,37.298z M 224,160l 32,0 l0,160 l-32,0 L 224,160 z M 256,288l 96,0 l0,32 l-96,0 \n\tL 256,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"alarm, clock, time\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,274.745 L 342.627,329.373 L 297.373,374.627 L 224,301.255 L 224,192 L 288,192 ZM 416,32 C 469.020,32 512,74.98 512,128 C 512,160.492 495.855,189.209 471.154,206.579 C 447.859,145.057 398.943,96.141 337.421,72.846 C 354.791,48.145 383.509,32 416,32 ZM 174.579,72.846 C 113.057,96.141 64.141,145.057 40.846,206.579 C 16.145,189.209 0,160.492 0,128 C 0,74.98 42.98,32 96,32 C 128.492,32 157.209,48.145 174.579,72.846 ZM 256,96C 149.961,96, 64,181.961, 64,288c0,46.337, 16.416,88.839, 43.747,122.010L 96,512l 32,0 l 32-57.69l-0.004-0.004\n\t\tC 188.238,470.645, 221.025,480, 256,480c 34.974,0, 67.76-9.355, 96.002-25.693L 352,454.309L 384,512l 32,0 l-11.751-101.984\n\t\tC 431.583,376.843, 448,334.34, 448,288C 448,181.961, 362.039,96, 256,96z M 256,416c-70.692,0-128-57.308-128-128s 57.308-128, 128-128\n\t\ts 128,57.308, 128,128S 326.692,416, 256,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"clock, time, schedule\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 240,32C 107.452,32,0,139.452,0,272c0,132.549, 107.452,240, 240,240c 132.549,0, 240-107.451, 240-240\n\tC 480,139.452, 372.549,32, 240,32z M 384,288l-98.742,0 c-6.591,18.641-24.359,32-45.258,32c-26.51,0-48-21.49-48-48\n\tc0-20.898, 13.359-38.667, 32-45.258L 224,96 l 32,0 l0,130.742 c 13.636,4.821, 24.438,15.623, 29.258,29.258L 384,256 L 384,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"clock, time, schedule\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 240,32C 107.452,32,0,139.452,0,272c0,132.549, 107.452,240, 240,240c 132.549,0, 240-107.451, 240-240\n\t\tC 480,139.452, 372.549,32, 240,32z M 240,480c-114.875,0-208-93.125-208-208S 125.125,64, 240,64s 208,93.125, 208,208\n\t\tS 354.875,480, 240,480zM 256,226.742L 256,96 l-32,0 l0,130.742 c-18.641,6.59-32,24.36-32,45.258c0,26.51, 21.49,48, 48,48c 20.898,0, 38.667-13.359, 45.258-32\n\t\tL 384,288 l0-32 l-98.742,0 C 280.438,242.365, 269.636,231.563, 256,226.742z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"clock, time, schedule\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,64 C 204.715,64 156.5,83.972 120.235,120.235 C 83.972,156.5 64,204.715 64,256 C 64,307.285 83.972,355.5 120.235,391.765 C 156.5,428.028 204.715,448 256,448 C 307.285,448 355.5,428.028 391.765,391.765 C 428.028,355.5 448,307.285 448,256 C 448,204.715 428.028,156.5 391.765,120.235 C 355.5,83.972 307.285,64 256,64 Z M 256,0 L 256,0 C 397.385,0 512,114.615 512,256 C 512,397.385 397.385,512 256,512 C 114.615,512 0,397.385 0,256 C 0,114.615 114.615,0 256,0 ZM 311.417,224c-5.618-9.708-13.709-17.798-23.417-23.417L 288,96 l-64,0 l0,104.583 c-19.124,11.067-32,31.731-32,55.417\n\tc0,35.347, 28.654,64, 64,64c 23.686,0, 44.35-12.876, 55.417-32L 384,288 l0-64 L 311.417,224 z M 256,288c-17.673,0-32-14.327-32-32s 14.327-32, 32-32\n\tc 17.673,0, 32,14.327, 32,32S 273.673,288, 256,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"watch, wrist watch, clock, time\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,224 L 352,224 L 352,288 L 224,288 L 224,160 L 288,160 ZM 448,256c0-71.066-38.613-133.109-96-166.308L 352,0 L 160,0 l0,89.692 C 102.613,122.89, 64,184.934, 64,256\n\t\tc0,71.065, 38.613,133.109, 96,166.308L 160,512 l 192,0 l0-89.692 C 409.387,389.109, 448,327.065, 448,256z M 256,384c-70.692,0-128-57.308-128-128\n\t\ts 57.308-128, 128-128s 128,57.308, 128,128S 326.692,384, 256,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"clock, time, schedule\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 384,288L 224,288 L 224,96 l 64,0 l0,128 l 96,0 L 384,288 \n\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"clock, time, schedule\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,224 L 384,288 L 224,288 L 224,96 L 288,96 L 288,224 ZM 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,448\n\tc-106.039,0-192-85.961-192-192c0-106.039, 85.961-192, 192-192c 106.039,0, 192,85.961, 192,192C 448,362.039, 362.039,448, 256,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"clock, time, schedule\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 329.372,374.628L 224,269.255\n\t\tL 224,128 l 64,0 l0,114.745 l 86.628,86.627L 329.372,374.628z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"clock, time, schedule\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 329.372,374.628L 224,269.255L 224,128L 288,128L 288,242.745L 374.628,329.372 \tzM 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,448\n\t\tc-106.039,0-192-85.961-192-192c0-106.039, 85.961-192, 192-192c 106.039,0, 192,85.961, 192,192C 448,362.039, 362.039,448, 256,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"history, time, past, archive\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,128L 256,288L 384,288L 384,256L 288,256L 288,128 \tzM 288,32C 164.288,32, 64,132.288, 64,256L0,256 l 80,96l 80-96L 96,256 c0-106.039, 85.961-192, 192-192c 106.039,0, 192,85.961, 192,192\n\t\tc0,106.039-85.961,192-192,192c-10.904,0-21.592-0.923-32-2.67l0,32.385 c 10.453,1.495, 21.134,2.285, 32,2.285\n\t\tc 123.712,0, 224-100.288, 224-224S 411.712,32, 288,32z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"history, time, past, archive\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,32 C 411.712,32 512,132.288 512,256 C 512,379.712 411.712,480 288,480 L 288,432 C 335.012,432 379.209,413.693 412.451,380.451 C 445.693,347.209 464,303.012 464,256 C 464,208.989 445.693,164.791 412.451,131.549 C 379.209,98.307 335.012,80 288,80 C 240.989,80 196.791,98.307 163.549,131.549 C 137.979,157.118 121.258,189.172 114.896,224 L 208,224 L 96,352 L -16,224 L 66.285,224 C 81.815,115.449 175.154,32 288,32 ZM 384,224 L 384,288 L 256,288 L 256,128 L 320,128 L 320,224 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"direction, address, directions, location, map\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 400,192l 96-64l-96-64L 288,64 L 288,24 c0-13.2-10.8-24-24-24l-16,0 c-13.2,0-24,10.8-24,24l0,40 L 64,64 l0,128 l 160,0 l0,32 L 80,224 l-64,48l 64,48l 144,0 l0,192 l 64,0 \n\tL 288,320 l 128,0 l0-96 L 288,224 l0-32 L 400,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"map, location, guide\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 336,96L 176,32L0,96l0,384 l 176-64l 160,64l 176-64L 512,32 L 336,96z M 192,72.865l 128,51.2l0,315.069 l-128-51.199L 192,72.865 z M 32,118.414\n\tl 128-46.545l0,315.9 L 32,434.313L 32,118.414 z M 480,393.586l-128,46.546l0-315.9 l 128-46.545L 480,393.586 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"map, location, guide\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,96L 160,32L 160,416L0,480 zM 352,96 L 352,480 L 192,426.667 L 192,42.667 ZM 512,32 L 512,416 L 384,467.2 L 384,83.2 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"map, location, guide, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,80L 128,16L0,96l0,416 l 128-80l 256,64l 128-80L 512,0 L 384,80z M 160,407.016L 160,56.985 l 4,1l0,350.031 L 160,407.016z M 172,410.016L 172,59.985 \n\tl 8,2l0,350.031 L 172,410.016z M 188,414.016L 188,63.985 l 8,2l0,350.031 L 188,414.016z M 204,418.016L 204,67.985 l 8,2l0,350.031 L 204,418.016z\n\t M 220,422.016L 220,71.985 l 8,2l0,350.031 L 220,422.016z M 236,426.016L 236,75.985 l 8,2l0,350.031 L 236,426.016z M 252,430.016L 252,79.985 l 8,2l0,350.031 \n\tL 252,430.016z M 268,434.016L 268,83.985 l 8,2l0,350.031 L 268,434.016z M 284,438.016L 284,87.985 l 8,2l0,350.031 L 284,438.016z M 300,442.016L 300,91.985 l 8,2\n\tl0,350.031 L 300,442.016z M 316,446.016L 316,95.985 l 8,2l0,350.031 L 316,446.016z M 332,450.016L 332,99.985 l 8,2l0,350.031 L 332,450.016z M 352,455.016\n\tl-4-1L 348,103.985 l 4,1L 352,455.016 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"map, location, guide\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,80L 128,16L0,96l0,416 l 128-80l 256,64l 128-80L 512,0 L 384,80z M 352,455.016l-192-48L 160,56.985 l 192,48L 352,455.016 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"compass, direction, map, locate\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,464\n\tc-114.875,0-208-93.125-208-208S 141.125,48, 256,48s 208,93.125, 208,208S 370.875,464, 256,464zM 304,208l-144-80l-32,0 l0,32 l 80,144l 144,80l 32,0 l0-32 L 304,208z M 256,288c-17.673,0-32-14.327-32-32c0-17.673, 14.327-32, 32-32\n\tc 17.673,0, 32,14.327, 32,32C 288,273.673, 273.673,288, 256,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"compass, direction, map, locate\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 240,32C 107.452,32,0,139.452,0,272c0,132.549, 107.452,240, 240,240c 132.549,0, 240-107.451, 240-240\n\t\tC 480,139.452, 372.549,32, 240,32z M 240,464c-106.039,0-192-85.961-192-192c0-106.039, 85.961-192, 192-192\n\t\tc 106.039,0, 192,85.961, 192,192C 432,378.039, 346.039,464, 240,464zM 416,264.615l-106.469-24.569L 352,182.588L 352,160 l-22.588,0 l-57.458,42.469L 247.385,96l-14.77,0 l-24.569,106.469L 150.588,160L 128,160 \n\tl0,22.588 l 42.469,57.458L 64,264.615l0,14.77 l 106.469,24.569L 128,361.412L 128,384 l 22.588,0 l 57.458-42.469L 232.615,448l 14.77,0 l 24.569-106.469\n\tL 329.412,384L 352,384 l0-22.588 l-42.469-57.458L 416,279.385L 416,264.615 z M 256,276c0,6.6-5.4,12-12,12l-8,0 c-6.6,0-12-5.4-12-12l0-8 \n\tc0-6.6, 5.4-12, 12-12l 8,0 c 6.6,0, 12,5.4, 12,12L 256,276 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"location, map, marker, pin\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 167.635,0, 96,67.157, 96,150c0,120, 128,160.73, 128,330l0,16 c0,8.449, 6.551,15.363, 14.85,15.955L 238.85,512 L 272,512 \n\tc 8.836,0, 16-7.163, 16-16l0-16 c0-169.27, 128-210, 128-330C 416,67.157, 344.365,0, 256,0z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"location, map, marker, pin\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 149.961,0, 64,85.961, 64,192c0,192, 192,320, 192,320s 192-128, 192-320C 448,85.961, 362.039,0, 256,0z M 322.991,396.373\n\tc-24.718,29.093-49.755,51.45-66.991,65.485c-17.237-14.035-42.274-36.394-66.991-65.485c-25.119-29.564-45.030-60.251-59.181-91.204\n\tC 112.689,267.684, 104,229.607, 104,192c0-40.601, 15.811-78.771, 44.52-107.48S 215.399,40, 256,40c 40.602,0, 78.771,15.811, 107.48,44.52\n\tS 408,151.399, 408,192c0,37.607-8.689,75.684-25.827,113.169C 368.021,336.122, 348.11,366.809, 322.991,396.373zM 256,96c-35.346,0-64,28.654-64,64s 28.654,64, 64,64c 35.347,0, 64-28.654, 64-64S 291.347,96, 256,96z M 256,192\n\tc-17.673,0-32-14.327-32-32s 14.327-32, 32-32c 17.673,0, 32,14.327, 32,32S 273.673,192, 256,192z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"location, map, marker, pin\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 149.961,0, 64,85.961, 64,192c0,192, 192,320, 192,320s 192-128, 192-320C 448,85.961, 362.039,0, 256,0z M 256,224\n\tc-35.346,0-64-28.654-64-64s 28.654-64, 64-64c 35.347,0, 64,28.654, 64,64S 291.347,224, 256,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"location, map, marker, pin\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 167.634,0, 96,71.634, 96,160c0,160, 160,288, 160,288s 160-128, 160-288C 416,71.634, 344.365,0, 256,0z M 256,258\n\tc-54.124,0-98-43.876-98-98s 43.876-98, 98-98s 98,43.876, 98,98S 310.124,258, 256,258z M 194,160c0,34.242, 27.758,62, 62,62\n\tc 34.242,0, 62-27.758, 62-62s-27.758-62-62-62C 221.758,98, 194,125.758, 194,160zM 393.128,348.815c-7.091,11.137-14.438,21.69-21.828,31.613c 1.173,0.551, 2.333,1.108, 3.471,1.677\n\tC 399.106,394.274, 410,407.896, 410,416s-10.894,21.726-35.229,33.895C 344.131,465.214, 300.841,474, 256,474\n\ts-88.131-8.786-118.771-24.105C 112.893,437.726, 102,424.104, 102,416s 10.893-21.726, 35.229-33.895\n\tc 1.138-0.568, 2.298-1.126, 3.47-1.677c-7.39-9.923-14.737-20.477-21.827-31.613C 84.935,366.131, 64,389.841, 64,416\n\tc0,53.020, 85.961,96, 192,96c 106.039,0, 192-42.98, 192-96C 448,389.841, 427.065,366.131, 393.128,348.815z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"location, map, marker, pin\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 167.634,0, 96,71.634, 96,160c0,160, 160,352, 160,352s 160-192, 160-352C 416,71.634, 344.365,0, 256,0z M 256,258\n\tc-54.124,0-98-43.876-98-98s 43.876-98, 98-98s 98,43.876, 98,98S 310.124,258, 256,258zM 194,160A62,62 1080 1 1 318,160A62,62 1080 1 1 194,160z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"location, map, marker, pin\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 167.634,0, 96,71.634, 96,160c0,160, 160,288, 160,288s 160-128, 160-288C 416,71.634, 344.365,0, 256,0z M 256,256\n\tc-53.020,0-96-42.98-96-96s 42.98-96, 96-96c 53.020,0, 96,42.98, 96,96S 309.020,256, 256,256zM 393.128,348.815c-7.091,11.137-14.438,21.69-21.828,31.613c 1.173,0.551, 2.333,1.108, 3.471,1.677\n\tC 399.106,394.274, 410,407.896, 410,416s-10.894,21.726-35.229,33.895C 344.131,465.214, 300.841,474, 256,474\n\ts-88.131-8.786-118.771-24.105C 112.893,437.726, 102,424.104, 102,416s 10.893-21.726, 35.229-33.895\n\tc 1.138-0.568, 2.298-1.126, 3.47-1.677c-7.39-9.923-14.737-20.477-21.827-31.613C 84.935,366.131, 64,389.841, 64,416\n\tc0,53.020, 85.961,96, 192,96c 106.039,0, 192-42.98, 192-96C 448,389.841, 427.065,366.131, 393.128,348.815z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"location, map, marker, pin\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 167.634,0, 96,71.634, 96,160c0,160, 160,352, 160,352s 160-192, 160-352C 416,71.634, 344.365,0, 256,0z M 256,256\n\tc-53.020,0-96-42.98-96-96s 42.98-96, 96-96s 96,42.98, 96,96S 309.020,256, 256,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pushpin, pin\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 272,0l-48,48l 48,48L 160,224L 48,224 l 88,88L0,492.308L0,512 l 19.692,0 L 200,376l 88,88L 288,352 l 128-112l 48,48l 48-48L 272,0z M 224,272l-32-32\n\tl 112-112l 32,32L 224,272z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"envelop, mail, email, contact, letter\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,64L 48,64 C 21.6,64,0,85.6,0,112l0,320 c0,26.4, 21.6,48, 48,48l 416,0 c 26.4,0, 48-21.6, 48-48L 512,112 C 512,85.6, 490.4,64, 464,64z\n\t M 199.37,275.186L 64,380.632L 64,129.811 L 199.37,275.186z M 88.19,128L 423.81,128 L 256,254L 88.19,128z M 204.644,280.849L 256,336l 51.355-55.151\n\tL 412.632,416L 99.368,416 L 204.644,280.849z M 312.63,275.186L 448,129.811l0,250.821 L 312.63,275.186z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"envelop-opened, mail, email, contact, letter\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 325.607,361.050L 512,489.605L 512,193.657 \tzM0,193.657L0,489.605L 186.388,361.032 \tzM 256,423.56L 211.499,383.605L0,511.868L 512,511.868L 300.494,383.605 \tzM 15.359,192L 496.64,192L 255.999,11.074 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"640\" height=\"512\" viewBox=\"0 0 640 512\" data-tags=\"mail-send, send, envelope\" style=\"margin-left: 7px; margin-top: 9px;\"><path d=\"M 607.984,128L 192.015,128L 400,294.389 \tzM 400,345.611L 373.791,324.646L 202.5,416L 597.499,416L 426.209,324.646 \tzM 460.21,297.443L 640,393.333L 640,153.612 \tzM 160,153.612L 160,393.333L 339.791,297.443 \tzM 128,192L0,184L0,168L 128,160 \tzM 128,288L0,280L0,264L 128,256 \tzM 128,384L0,376L0,360L 128,352 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"envelop, mail, email, contact, letter\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 325.608,265.182L 512,393.736L 512,97.789 \tzM0,97.789L0,393.736L 186.388,265.164 \tzM 256,327.691L 211.499,287.736L0,416L 512,416L 300.495,287.736 \tzM 496.64,96L 15.36,96L 256,276.926 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"envelop, mail, email, contact, letter\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,64L 32,64 C 14.4,64,0,78.4,0,96l0,320 c0,17.6, 14.4,32, 32,32l 448,0 c 17.6,0, 32-14.4, 32-32L 512,96 C 512,78.4, 497.6,64, 480,64z M 448,128\n\tl0,23 L 256,264.143L 64,151l0-23 L 448,128 z M 64,384L 64,206.714 l 192,113.143l 192-113.143L 448,384 L 64,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"notebook, notes, book, journal\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 449.18,32L 64,32 l0,64 L 17.18,96 C 8.38,96,0,102.264,0,111.064l0,32 C0,151.864, 8.38,160, 17.18,160L 64,160 l0,32 L 17.18,192 \n\tC 8.38,192,0,198.264,0,207.064l0,32 C0,247.864, 8.38,256, 17.18,256L 64,256 l0,32 L 17.18,288 C 8.38,288,0,294.264,0,303.064l0,32 \n\tC0,343.863, 8.38,352, 17.18,352L 64,352 l0,32 L 17.18,384 C 8.38,384,0,390.264,0,399.064l0,32 C0,439.864, 8.38,448, 17.18,448L 64,448 l0,64 l 385.18,0 \n\tc 17.674,0, 30.82-15.263, 30.82-32.936l0-416 C 480,45.391, 466.854,32, 449.18,32z M 160,480L 96,480 l0-32 l 17.18,0 c 8.8,0, 14.82-8.136, 14.82-16.936\n\tl0-32 c0-8.801-6.021-15.064-14.82-15.064L 96,384 l0-32 l 17.18,0 c 8.8,0, 14.82-8.136, 14.82-16.936l0-32 c0-8.801-6.021-15.064-14.82-15.064L 96,288 l0-32 \n\tl 17.18,0 c 8.8,0, 14.82-8.136, 14.82-16.936l0-32 c0-8.801-6.021-15.064-14.82-15.064L 96,192 l0-32 l 17.18,0 c 8.8,0, 14.82-8.136, 14.82-16.936l0-32 \n\tC 128,102.263, 121.98,96, 113.18,96L 96,96 L 96,64 l 64,0 L 160,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"address-book, book, contacts\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,128c 17.673,0, 32-14.327, 32-32L 512,32 l-64,0 L 448,0 L 32,0 C 14.4,0,0,14.399,0,32l0,448 c0,17.6, 14.398,32, 32,32l 416,0 L 448,384 l 32,0 \n\tc 17.673,0, 32-14.327, 32-32l0-64 l-64,0 l0-32 l 32,0 c 17.673,0, 32-14.327, 32-32l0-64 l-64,0 l0-32 L 480,128 z M 288,128.165\n\tc 35.255,0, 63.835,28.58, 63.835,63.835s-28.58,63.835-63.835,63.835c-35.255,0-63.835-28.58-63.835-63.835\n\tS 252.745,128.165, 288,128.165z M 128,480L 96,480 L 96,32 l 32,0 L 128,480 z M 384,384L 192,384 l0-32 c0-35.347, 28.654-64, 64-64l0,0 l 64,0 c 35.348,0, 64,28.653, 64,64\n\tL 384,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"address-book, book, contacts\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,224L 80,224L 80,304L 32,304zM 32,128L 80,128L 80,208L 32,208zM 32,320L 80,320L 80,400L 32,400zM 32,416L 80,416L 80,496L 32,496zM 96,0l0,512 l 384,0 L 480,0 L 96,0 z M 288,128.165c 35.255,0, 63.835,28.58, 63.835,63.835s-28.58,63.835-63.835,63.835\n\t\tc-35.255,0-63.835-28.58-63.835-63.835S 252.745,128.165, 288,128.165z M 384,384L 192,384 l0-32 c0-35.347, 28.654-64, 64-64l0,0 l 64,0 \n\t\tc 35.348,0, 64,28.653, 64,64L 384,384 zM 32,32L 80,32L 80,112L 32,112z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"phone-hang-up, contact, telephone, support, call\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 424.382,388.799 C 441.311,388.799 482.44,386.766 498.852,367.945 C 507.097,358.495 511.376,344.13 511.936,324.030 C 512.285,311.501 511.208,296.612 508.733,279.777 L 508.669,279.366 C 504.458,254.51 492.619,233.415 470.282,210.968 L 469.649,210.361 C 439.541,182.778 390.517,151.251 276.851,147.563 L 276.851,147.201 L 257.851,147.201 L 256.030,147.208 L 254.148,147.201 L 235.148,147.215 L 235.148,147.564 C 121.482,151.252 72.458,182.779 42.35,210.362 L 41.716,210.971 C 19.381,233.415 7.542,254.509 3.331,279.367 L 3.266,279.778 C 0.792,296.612 -0.285,311.501 0.063,324.031 C 0.623,344.13 4.902,358.495 13.145,367.945 C 29.561,386.767 70.697,388.799 87.621,388.799 C 110.601,388.799 132.23,385.328 148.522,379.025 C 181.239,366.368 186.124,345.147 186.124,333.625 C 186.124,322.556 182.829,313.434 180.182,306.105 C 176.106,294.823 175.82,293.398 180.649,287.862 C 194.004,272.552 224.119,272.546 255.996,272.54 C 287.879,272.546 317.995,272.551 331.349,287.863 C 336.179,293.399 335.893,294.824 331.818,306.105 C 329.17,313.435 325.875,322.557 325.875,333.625 C 325.875,345.146 330.761,366.366 363.479,379.023 C 379.772,385.326 401.399,388.798 424.378,388.799 C 424.38,388.799 424.38,388.799 424.382,388.799 Z M 255.997,234.539 C 217.023,234.546 176.723,234.553 152.013,262.882 C 132.321,285.459 139.909,306.464 144.443,319.014 C 146.418,324.484 148.125,329.208 148.125,333.623 C 148.125,339.452 126.77,350.798 87.622,350.798 C 62.053,350.798 45.257,345.651 41.646,342.793 C 39.379,339.74 35.172,324.195 40.833,285.514 C 42.858,273.715 47.768,258.857 68.355,238.075 C 95.091,213.693 140.475,185.782 254.244,185.215 L 255.654,185.207 L 256.031,185.208 L 256.249,185.207 L 257.757,185.215 C 371.541,185.782 416.921,213.7 443.654,238.085 C 464.237,258.866 469.144,273.719 471.169,285.517 C 476.831,324.2 472.622,339.742 470.353,342.795 C 466.744,345.653 449.95,350.799 424.379,350.799 C 385.23,350.798 363.875,339.453 363.875,333.624 C 363.875,329.209 365.582,324.486 367.558,319.016 C 372.092,306.465 379.681,285.459 359.987,262.883 C 335.277,234.553 294.977,234.546 255.997,234.539 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"phone-hang-up, contact, telephone, support, call\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 508.689,287.997 C 512.691,315.738 515.297,353.693 502.857,368.22 C 482.286,392.242 352.001,392.242 352.001,344.199 C 352.001,320 373.429,304.132 352.857,280.11 C 332.621,256.479 296.344,256.095 256,256.089 C 215.657,256.095 179.379,256.479 159.143,280.11 C 138.572,304.133 160,320 160,344.199 C 160,392.242 29.715,392.242 9.143,368.221 C -3.296,353.694 -0.691,315.739 3.312,287.998 C 6.392,269.479 14.174,249.5 39.086,224.001 C 39.086,224 39.087,224 39.087,223.999 C 76.456,189.128 133.010,160.63 254,160.015 L 254,160 C 254.672,160 255.332,160.005 256,160.007 C 256.669,160.005 257.328,160 258,160 L 258,160.014 C 378.99,160.629 435.544,189.127 472.913,223.998 C 472.914,223.999 472.914,224 472.914,224 C 497.826,249.498 505.609,269.477 508.689,287.997 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"phone, contact, telephone, support, call\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 403.655,512L 397.6,512 c-32.828,0-82.212-15.348-135.488-42.106c-52.054-26.146-99.579-58.811-130.387-89.619\n\t\tc-30.809-30.808-63.473-78.332-89.618-130.386C 15.347,196.612,0,147.228,0,114.399l0-6.056 l 3.359-5.038\n\t\tc 0.667-1, 16.557-24.767, 36.677-48.91C 61.141,29.070, 88.666,0, 114.4,0c 22.215,0, 49.753,22.282, 64.191,35.564\n\t\tc 11.086,10.199, 38.206,37.139, 50.555,66.953c 13.070,31.554, 1.723,49.564-6.205,57.491c-13.666,13.666-27.12,21.981-37.931,28.663\n\t\tc-16.997,10.505-19.144,12.762-19.144,20.128c0,23.18, 29.012,52.193, 57.068,80.252c 28.069,28.067, 57.083,57.081, 80.265,57.081\n\t\tc 7.366,0, 9.624-2.147, 20.128-19.144c 6.682-10.812, 14.998-24.266, 28.664-37.932c 7.975-7.975, 18.547-12.191, 30.574-12.191\n\t\tc 13.033,0, 27.884,4.986, 44.139,14.821c 12.849,7.772, 26.457,18.512, 39.355,31.056C 476.837,333.225, 512,369.599, 512,397.6\n\t\tc0,25.734-29.070,53.26-54.396,74.364c-24.144,20.12-47.91,36.011-48.91,36.677L 403.655,512z M 40.212,120.282\n\t\tc 1.845,26.779, 15.62,67.814, 37.639,111.653c 23.947,47.677, 54.66,92.558, 82.158,120.055c 27.498,27.498, 72.378,58.212, 120.056,82.158\n\t\tc 43.839,22.020, 84.871,35.795, 111.649,37.64c 7.785-5.418, 23.196-16.44, 38.681-29.225c 36.434-30.080, 41.072-43.227, 41.569-45.081\n\t\tc-0.911-5.818-11.776-24.986-35.052-47.28c-23.913-22.904-44.934-33.336-54.346-33.336c-1.204,0-1.975,0.16-2.29,0.476\n\t\tc-10.373,10.373-16.753,20.695-22.922,30.677c-11.041,17.865-23.557,38.114-54.154,38.114c-39.75,0-74.721-34.97-108.54-68.787\n\t\tc-33.827-33.828-68.794-68.797-68.794-108.546c0-30.598, 20.249-43.113, 38.115-54.154c 9.982-6.169, 20.304-12.549, 30.676-22.921\n\t\tc 0.598-0.598, 1.055-4.287-1.481-11.354c-5.294-14.753-20.189-34.967-38.872-52.752c-20.225-19.252-35.43-26.847-39.793-27.58\n\t\tc-1.88,0.507-15.083,5.192-45.267,41.8C 56.506,97.286, 45.591,112.55, 40.212,120.282zM 320,128c-22.419,0-42.133,11.536-53.563,28.987C 274.33,153.781, 282.955,152, 292,152c 37.556,0, 68,30.445, 68,68\n\tc0,9.045-1.781,17.669-4.987,25.563C 372.464,234.133, 384,214.419, 384,192C 384,156.654, 355.347,128, 320,128zM 336,64c-33.896,0-64.273,15.059-84.812,38.85C 267.98,93.398, 287.358,88, 308,88c 64.064,0, 116,51.935, 116,116\n\tc0,20.642-5.398,40.020-14.85,56.812C 432.941,240.273, 448,209.896, 448,176C 448,114.144, 397.855,64, 336,64zM 368,0c-41.519,0-78.926,17.578-105.206,45.689C 285.271,31.917, 311.707,23.972, 340,23.972c 81.738,0, 148,66.269, 148,148.014\n\tc0,28.326-7.962,54.79-21.761,77.286C 494.393,222.989, 512,185.554, 512,144C 512,64.471, 447.529,0, 368,0z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"phone, contact, telephone, support, call\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 403.655,512L 397.6,512 c-32.828,0-82.212-15.348-135.488-42.106c-52.054-26.146-99.579-58.811-130.387-89.619\n\t\tc-30.809-30.808-63.473-78.332-89.618-130.386C 15.347,196.612,0,147.228,0,114.399l0-6.056 l 3.359-5.038\n\t\tc 0.667-1, 16.557-24.767, 36.677-48.91C 61.141,29.070, 88.666,0, 114.4,0c 22.215,0, 49.753,22.282, 64.191,35.564\n\t\tc 11.086,10.199, 38.206,37.139, 50.555,66.953c 13.070,31.554, 1.723,49.564-6.205,57.491c-13.666,13.666-27.12,21.981-37.931,28.663\n\t\tc-16.997,10.505-19.144,12.762-19.144,20.128c0,23.18, 29.012,52.193, 57.068,80.252c 28.069,28.067, 57.083,57.081, 80.265,57.081\n\t\tc 7.366,0, 9.624-2.147, 20.128-19.144c 6.682-10.812, 14.998-24.266, 28.664-37.932c 7.975-7.975, 18.547-12.191, 30.574-12.191\n\t\tc 13.033,0, 27.884,4.986, 44.139,14.821c 12.849,7.772, 26.457,18.512, 39.355,31.056C 476.837,333.225, 512,369.599, 512,397.6\n\t\tc0,25.734-29.070,53.26-54.396,74.364c-24.144,20.12-47.91,36.011-48.91,36.677L 403.655,512z M 40.212,120.282\n\t\tc 1.845,26.779, 15.62,67.814, 37.639,111.653c 23.947,47.677, 54.66,92.558, 82.158,120.055c 27.498,27.498, 72.378,58.212, 120.056,82.158\n\t\tc 43.839,22.020, 84.871,35.795, 111.649,37.64c 7.785-5.418, 23.196-16.44, 38.681-29.225c 36.434-30.080, 41.072-43.227, 41.569-45.081\n\t\tc-0.911-5.818-11.776-24.986-35.052-47.28c-23.913-22.904-44.934-33.336-54.346-33.336c-1.204,0-1.975,0.16-2.29,0.476\n\t\tc-10.373,10.373-16.753,20.695-22.922,30.677c-11.041,17.865-23.557,38.114-54.154,38.114c-39.75,0-74.721-34.97-108.54-68.787\n\t\tc-33.827-33.828-68.794-68.797-68.794-108.546c0-30.598, 20.249-43.113, 38.115-54.154c 9.982-6.169, 20.304-12.549, 30.676-22.921\n\t\tc 0.598-0.598, 1.055-4.287-1.481-11.354c-5.294-14.753-20.189-34.967-38.872-52.752c-20.225-19.252-35.43-26.847-39.793-27.58\n\t\tc-1.88,0.507-15.083,5.192-45.267,41.8C 56.506,97.286, 45.591,112.55, 40.212,120.282z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"call-outgoing, phone, telephone, support, call\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,320 C 384,288 480,384 480,416 C 480,448 384,512 384,512 C 320,512 190.25,446.25 128,384 C 65.75,321.75 0,192 0,128 C 0,128 64,32 96,32 C 128,32 224,128 192,160 C 160,192 128,192 128,224 C 128,256 160,288 192,320 C 224,352 256,384 288,384 C 320,384 320,352 352,320 ZM 448,64 L 448,240 L 382.628,174.628 L 301.256,256 L 256,256 L 256,210.745 L 337.372,129.372 L 272,64 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"call-incoming, phone, telephone, support, call\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,320 C 384,288 480,384 480,416 C 480,448 384,512 384,512 C 320,512 190.25,446.25 128,384 C 65.75,321.75 0,192 0,128 C 0,128 64,32 96,32 C 128,32 224,128 192,160 C 160,192 128,192 128,224 C 128,256 160,288 192,320 C 224,352 256,384 288,384 C 320,384 320,352 352,320 ZM 256,256 L 256,80 L 321.372,145.372 L 402.744,64 L 448,64 L 448,109.255 L 366.628,190.628 L 432,256 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"contact-remove, phone, telephone, support, call\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,320c 32-32, 128,64, 128,96s-96,96-96,96c-64,0-193.75-65.75-256-128S0,192,0,128c0,0, 64-96, 96-96s 128,96, 96,128\n\ts-64,32-64,64s 32,64, 64,96s 64,64, 96,64S 320,352, 352,320zM 288,96L 480,96L 480,160L 288,160zM 288,96L 480,96L 480,160L 288,160z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"contact-add, phone, telephone, support, call\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,320c 32-32, 128,64, 128,96s-96,96-96,96c-64,0-193.75-65.75-256-128S0,192,0,128c0,0, 64-96, 96-96s 128,96, 96,128\n\ts-64,32-64,64s 32,64, 64,96s 64,64, 96,64S 320,352, 352,320zM 480,160 L 416,160 L 416,224 L 352,224 L 352,160 L 288,160 L 288,96 L 352,96 L 352,32 L 416,32 L 416,96 L 480,96 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"contact-remove, phone, telephone, support, call\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,320c 32-32, 128,64, 128,96s-96,96-96,96c-64,0-193.75-65.75-256-128S0,192,0,128c0,0, 64-96, 96-96s 128,96, 96,128\n\ts-64,32-64,64s 32,64, 64,96s 64,64, 96,64S 320,352, 352,320zM 368,0c-79.528,0-144,64.471-144,144s 64.472,144, 144,144s 144-64.471, 144-144S 447.528,0, 368,0z M 447.876,160L 288.124,160 l0-32 \n\tl 159.752,0 L 447.876,160 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"contact-add, phone, telephone, support, call\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,320c 32-32, 128,64, 128,96s-96,96-96,96c-64,0-193.75-65.75-256-128S0,192,0,128c0,0, 64-96, 96-96s 128,96, 96,128\n\ts-64,32-64,64s 32,64, 64,96s 64,64, 96,64S 320,352, 352,320zM 368,0c-79.528,0-144,64.471-144,144s 64.472,144, 144,144s 144-64.471, 144-144S 447.528,0, 368,0z M 384,160l0,63.876 l-32,0 L 352,160 \n\tl-63.876,0 l0-32 L 352,128 L 352,64.124 l 32,0 L 384,128 l 63.876,0 l0,32 L 384,160 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"phone, contact, telephone, support, call\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,320 C 384,288 480,384 480,416 C 480,448 384,512 384,512 C 320,512 190.25,446.25 128,384 C 65.75,321.75 0,192 0,128 C 0,128 64,32 96,32 C 128,32 224,128 192,160 C 160,192 128,192 128,224 C 128,256 160,288 192,320 C 224,352 256,384 288,384 C 320,384 320,352 352,320 ZM 320,128c-22.419,0-42.133,11.536-53.563,28.987C 274.33,153.781, 282.955,152, 292,152c 37.556,0, 68,30.445, 68,68\n\tc0,9.045-1.781,17.669-4.987,25.563C 372.464,234.133, 384,214.419, 384,192C 384,156.654, 355.347,128, 320,128zM 336,64c-33.896,0-64.273,15.059-84.812,38.85C 267.98,93.398, 287.358,88, 308,88c 64.064,0, 116,51.935, 116,116\n\tc0,20.642-5.398,40.020-14.85,56.812C 432.941,240.273, 448,209.896, 448,176C 448,114.144, 397.855,64, 336,64zM 368,0c-41.519,0-78.926,17.578-105.206,45.689C 285.271,31.917, 311.707,23.972, 340,23.972c 81.738,0, 148,66.269, 148,148.014\n\tc0,28.326-7.962,54.79-21.761,77.286C 494.393,222.989, 512,185.554, 512,144C 512,64.471, 447.529,0, 368,0z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"phone, contact, telephone, support, call\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,320c-32,32-32,64-64,64s-64-32-96-64s-64-64-64-96s 32-32, 64-64S 128,32, 96,32S0,128,0,128c0,64, 65.75,193.75, 128,256\n\ts 192,128, 256,128c0,0, 96-64, 96-96S 384,288, 352,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"phone, contact, telephone, support, call\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 321.788,371.146c-11.188,6.236-20.175,2.064-32.764-4.572c-11.46-8.748-45.402-35.438-81.226-71.188\n\t\tc-26.156-33.084-46.162-64.288-55.375-79.293c-0.625-1.66-0.944-2.632-0.944-2.632c-5.397-13.476-8.771-22.92-1.324-33.521\n\t\tc 6.854-9.727, 9.5-12.383, 18.24-20.108L 80.605,29.708c-10.604,7.728-27.018,25.106-40.509,44.378\n\t\tc-12.538,18.317-23.154,38.587-26.049,53.055c 15.295,55.117, 52.258,157.896, 120.583,231.325l-0.021,0.308\n\t\tC 200.339,439.802, 304.774,490.204, 360.18,512c 14.679-1.385, 35.938-9.844, 55.456-20.404c 20.598-11.415, 39.567-25.945, 48.329-35.685\n\t\tL 343.677,355.082C 335.080,362.992, 332.179,365.336, 321.788,371.146zM 205.61,128.658c 7.241-5.302, 5.313-14.944, 1.926-20.245L 140.957,6.5c-4.344-5.291-13.396-8.064-21.252-5.579L 92.272,19.302\n\t\tl 88.034,129.879L 205.61,128.658zM 492.949,397.846l-94.473-76.788c-4.93-3.918-14.313-6.838-20.325-0.188l-23.046,23.050l 120.047,101.015l 21.136-25.357\n\t\tC 499.573,412.014, 497.755,402.721, 492.949,397.846z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"phone, contact, telephone, support, call\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 457.153,103.648 C 510.42,133.932 512,166.357 512.002,188.997 L 512.002,192.394 C 512.002,197.576 507.533,201.812 502.074,201.812 L 381.928,201.812 C 376.469,201.812 372,197.576 372,192.394 L 372,180.941 C 372,152.336 344.645,147.766 329.551,145.336 C 314.455,142.91 276.934,140.559 256.071,140.559 C 256.045,140.559 256.025,140.559 256.005,140.559 C 255.976,140.559 255.956,140.559 255.928,140.559 C 235.066,140.559 197.541,142.909 182.448,145.336 C 167.355,147.763 139.999,152.334 139.999,180.941 L 139.999,192.394 C 139.999,197.576 135.53,201.812 130.073,201.812 L 9.927,201.812 C 4.47,201.812 0.001,197.576 0.001,192.394 L 0.001,188.997 C 0.001,166.357 1.581,133.932 54.848,103.648 C 118.198,67.638 208.777,64 255.928,64 C 255.956,64.025 255.976,64.055 256.005,64.078 C 256.023,64.056 256.044,64.024 256.071,64 C 303.223,64 393.803,67.634 457.153,103.648 ZM 256.001,192c-28.374,0-87.443,2.126-117.456,38.519C 108.523,266.902, 33.455,448, 100.398,448c 66.956,0, 125.458,0, 155.606,0\n\t\tc 30.137,0, 88.648,0, 155.595,0c 66.945,0-8.125-181.098-38.137-217.481C 343.444,194.126, 284.362,192, 256.001,192z M 256,384\n\t\tc-35.346,0-64-28.653-64-64s 28.654-64, 64-64c 35.347,0, 64,28.653, 64,64S 291.347,384, 256,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"support, help, life, lifebuoy\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 160,256\n\tc0-53.020, 42.98-96, 96-96s 96,42.98, 96,96s-42.98,96-96,96S 160,309.020, 160,256z M 462.99,341.738L 462.99,341.738l-88.71-36.745\n\tC 380.539,289.901, 384,273.355, 384,256s-3.461-33.901-9.72-48.993l 61.063-25.293l 27.647-11.452C 473.944,196.673, 480,225.627, 480,256\n\tC 480,286.373, 473.943,315.327, 462.99,341.738L 462.99,341.738z M 341.739,49.010L 341.739,49.010L 341.739,49.010l-36.745,88.71\n\tC 289.902,131.461, 273.356,128, 256,128s-33.901,3.461-48.993,9.72l-17.23-41.599l-19.515-47.112C 196.673,38.057, 225.628,32, 256,32\n\tC 286.373,32, 315.327,38.057, 341.739,49.010z M 49.010,170.262l 47.112,19.515l 41.599,17.23C 131.462,222.099, 128,238.645, 128,256\n\ts 3.461,33.901, 9.72,48.993l-88.71,36.745C 38.057,315.327, 32,286.373, 32,256C 32,225.627, 38.057,196.673, 49.010,170.262z\n\t M 170.262,462.99l 11.452-27.647l 25.293-61.063C 222.099,380.539, 238.645,384, 256,384s 33.901-3.461, 48.993-9.72l 36.745,88.71l0,0l0,0\n\tC 315.327,473.942, 286.373,480, 256,480C 225.628,480, 196.673,473.943, 170.262,462.99z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"calculate, sum, calculator, compute, math, arithmetic\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,32L 32,32 C 14.4,32,0,46.4,0,64l0,160 c0,17.6, 14.398,32, 32,32l 160,0 c 17.6,0, 32-14.4, 32-32L 224,64 C 224,46.4, 209.6,32, 192,32z\n\t M 192,160L 32,160 l0-32 l 160,0 L 192,160 z M 448,32L 288,32 c-17.602,0-32,14.4-32,32l0,416 c0,17.6, 14.398,32, 32,32l 160,0 c 17.6,0, 32-14.4, 32-32L 480,64 \n\tC 480,46.4, 465.6,32, 448,32z M 448,320L 288,320 l0-32 l 160,0 L 448,320 z M 448,224L 288,224 l0-32 l 160,0 L 448,224 z M 192,288L 32,288 c-17.6,0-32,14.4-32,32l0,160 \n\tc0,17.6, 14.398,32, 32,32l 160,0 c 17.6,0, 32-14.4, 32-32L 224,320 C 224,302.4, 209.6,288, 192,288z M 192,416l-64,0 l0,64 L 96,480 l0-64 L 32,416 l0-32 l 64,0 l0-64 l 32,0 l0,64 l 64,0 \n\tL 192,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"calculate, sum, calculator, compute, math, arithmetic\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,0L 128,0 c-17.6,0-32,14.4-32,32l0,448 c0,17.6, 14.4,32, 32,32l 256,0 c 17.6,0, 32-14.4, 32-32L 416,32 C 416,14.4, 401.6,0, 384,0z M 192,480\n\tl-64,0 l0-64 l 64,0 L 192,480 z M 192,384l-64,0 l0-64 l 64,0 L 192,384 z M 192,288l-64,0 l0-64 l 64,0 L 192,288 z M 288,480l-64,0 l0-64 l 64,0 L 288,480 z M 288,384l-64,0 l0-64 l 64,0 L 288,384 z M 288,288\n\tl-64,0 l0-64 l 64,0 L 288,288 z M 384,480l-64,0 l0-64 l 64,0 L 384,480 z M 384,384l-64,0 l0-64 l 64,0 L 384,384 z M 384,288l-64,0 l0-64 l 64,0 L 384,288 z M 384,192L 128,192 L 128,32 l 256,0 L 384,192 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"credit, card, purchase, payment, ecommerce\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,64L 48,64 C 21.6,64,0,85.6,0,112l0,288 c0,26.4, 21.6,48, 48,48l 416,0 c 26.4,0, 48-21.6, 48-48L 512,112 C 512,85.6, 490.4,64, 464,64z M 96,384\n\tL 64,384 l0-64 l 32,0 L 96,384 z M 160,384l-32,0 l0-64 l 32,0 L 160,384 z M 224,384l-32,0 l0-64 l 32,0 L 224,384 z M 496,256L 16,256 l0-96 l 480,0 L 496,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"credit, card, purchase, payment, ecommerce\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464,64L 48,64 C 21.6,64,0,85.6,0,112l0,288 c0,26.4, 21.6,48, 48,48l 416,0 c 26.4,0, 48-21.6, 48-48L 512,112 C 512,85.6, 490.4,64, 464,64z M 48,96\n\t\tl 416,0 c 8.673,0, 16,7.327, 16,16l0,48 L 32,160 l0-48 C 32,103.327, 39.327,96, 48,96z M 464,416L 48,416 c-8.673,0-16-7.327-16-16L 32,256 l 448,0 l0,144 \n\t\tC 480,408.673, 472.673,416, 464,416zM 64,320L 96,320L 96,384L 64,384zM 128,320L 160,320L 160,384L 128,384zM 192,320L 224,320L 224,384L 192,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"coins, money, cash\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 335.333,158.667c-11.648,0-23.030,1.14-34.049,3.292c-0.873-0.659-1.763-1.314-2.694-1.958\n\t\tc 13.614-9.414, 21.41-20.342, 21.41-32L 320,96 c0-35.346-71.634-64-160-64S0,60.654,0,96l0,32 c0,11.658, 7.796,22.586, 21.41,32\n\t\tC 7.796,169.414,0,180.342,0,192l0,32 c0,11.658, 7.796,22.586, 21.411,32C 7.796,265.414,0,276.343,0,288l0,32 \n\t\tc0,11.658, 7.796,22.586, 21.41,32C 7.796,361.414,0,372.343,0,384l0,32 c0,35.347, 71.634,64, 160,64c 23.616,0, 46.021-2.057, 66.2-5.73\n\t\tC 256.244,497.902, 294.143,512, 335.333,512C 432.904,512, 512,432.903, 512,335.333C 512,237.763, 432.904,158.667, 335.333,158.667z\n\t\t M 16,96c0-9.523, 14.447-21.456, 36.805-30.399C 81.18,54.251, 119.25,48, 160,48s 78.82,6.251, 107.195,17.601\n\t\tC 289.553,74.544, 304,86.477, 304,96s-14.447,21.456-36.805,30.399c-9.23,3.692-19.492,6.841-30.533,9.414\n\t\tC 213.763,141.15, 187.495,144, 160,144s-53.763-2.85-76.663-8.187c-11.041-2.573-21.302-5.722-30.532-9.414\n\t\tC 30.447,117.456, 16,105.523, 16,96z M 16,288c0-7.067, 7.961-15.46, 21.203-22.975C 66.553,279.066, 110.666,288, 160,288\n\t\tc 1.71,0, 3.406-0.023, 5.102-0.047c-4.188,15.080-6.436,30.967-6.436,47.38c0,0.22, 0.007,0.438, 0.008,0.658\n\t\tc-27.013-0.090-52.808-2.927-75.339-8.178c-11.040-2.573-21.301-5.722-30.531-9.413C 30.447,309.457, 16,297.523, 16,288z M 160,432\n\t\tc-40.75,0-78.82-6.25-107.195-17.6C 30.447,405.457, 16,393.523, 16,384c0-7.067, 7.961-15.46, 21.203-22.975\n\t\tC 66.553,375.066, 110.666,384, 160,384c 1.824,0, 3.635-0.023, 5.443-0.050c 4.82,16.873, 12.088,32.713, 21.391,47.114\n\t\tC 178.073,431.677, 169.108,432, 160,432z M 160,240c-27.494,0-53.763-2.85-76.662-8.187c-11.041-2.573-21.303-5.722-30.533-9.414\n\t\tC 30.447,213.456, 16,201.523, 16,192c0-7.067, 7.961-15.46, 21.202-22.975C 66.552,183.066, 110.665,192, 160,192\n\t\tc 32.961,0, 63.569-4.001, 89.022-10.836c-24.988,14.020-46.22,33.935-61.811,57.865C 178.33,239.66, 169.241,240, 160,240z\n\t\t M 335.333,479.879c-79.83,0-144.545-64.715-144.545-144.546c0-79.83, 64.715-144.545, 144.545-144.545\n\t\tc 79.831,0, 144.546,64.715, 144.546,144.545C 479.879,415.164, 415.164,479.879, 335.333,479.879zM 352,224l-32,0 l0,32 l-64,0 l0,96 l 64,0 l0,32 l-64,0 l0,32 l 64,0 l0,32 l 32,0 l0-32 l 64,0 l0-96 l-64,0 l0-32 l 64,0 l0-32 l-64,0 L 352,224 z M 320,320l-32,0 l0-32 l 32,0 L 320,320 z M 384,352l0,32 \n\t\tl-32,0 l0-32 L 384,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"coin, money, cash\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 240,32C 107.452,32,0,139.452,0,272c0,132.549, 107.452,240, 240,240c 132.549,0, 240-107.451, 240-240\n\t\tC 480,139.452, 372.549,32, 240,32z M 240,464c-106.039,0-192-85.961-192-192c0-106.039, 85.961-192, 192-192\n\t\tc 106.039,0, 192,85.961, 192,192C 432,378.039, 346.039,464, 240,464zM 256,256l0-64 l 64,0 l0-32 l-64,0 l0-32 l-32,0 l0,32 l-64,0 l0,128 l 64,0 l0,64 l-64,0 l0,32 l 64,0 l0,32 l 32,0 l0-32 l 64,0 l 0.001,0 L 320,256L 256,256 z M 224,256l-32,0 l0-64 l 32,0 L 224,256 z\n\t M 288.001,352L 256,352 l0-64 l 32.001,0 L 288.001,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bag, cart, ecommerce, shopping, products, purchase, buy, store\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 432,160l-80,0 c0-88.365-42.98-160-96-160s-96,71.635-96,160L 80,160 c-8.8,0-16,7.2-16,16l0,320 c0,8.8, 7.2,16, 16,16l 352,0 \n\tc 8.8,0, 16-7.2, 16-16L 448,176 C 448,167.2, 440.8,160, 432,160z M 256,32c 35.347,0, 64,57.308, 64,128L 192,160 C 192,89.308, 220.654,32, 256,32z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bag, store, ecommerce, purchase, buy, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,96L 352,80 c0-44.183-35.817-80-80-80c-18.011,0-34.629,5.955-48,15.999C 210.629,5.955, 194.011,0, 176,0\n\tc-44.183,0-80,35.817-80,80l0,54.4 L 32,144l0,336 l 64,0 l 32,32l 320-48L 448,128 L 352,96z M 64,420l0-8 l 32,0 l0,8 L 64,420 z M 96,428l0,8 L 64,436 l0-8 L 96,428 z M 64,404l0-8 l 32,0 l0,8 \n\tL 64,404 z M 64,388l0-8 l 32,0 l0,8 L 64,388 z M 64,372l0-8 l 32,0 l0,8 L 64,372 z M 64,356l0-8 l 32,0 l0,8 L 64,356 z M 64,340l0-8 l 32,0 l0,8 L 64,340 z M 64,324l0-8 l 32,0 l0,8 L 64,324 z M 64,308l0-8 l 32,0 l0,8 L 64,308 z\n\t M 64,292l0-8 l 32,0 l0,8 L 64,292 z M 64,276l0-8 l 32,0 l0,8 L 64,276 z M 64,260l0-8 l 32,0 l0,8 L 64,260 z M 64,244l0-8 l 32,0 l0,8 L 64,244 z M 64,228l0-8 l 32,0 l0,8 L 64,228 z M 64,212l0-8 l 32,0 l0,8 L 64,212 z\n\t M 64,196l0-8 l 32,0 l0,8 L 64,196 z M 64,180l0-8 l 32,0 l0,8 L 64,180 z M 64,448l0-4 l 32,0 l0,4 L 64,448 z M 380,170.558l 8-1.2l0,271.284 l-8,1.199L 380,170.558 z M 372,443.042l-8,1.2\n\tL 364,172.958 l 8-1.2L 372,443.042 z M 396,168.158l 8-1.2l0,271.284 l-8,1.2L 396,168.158 z M 356,174.158l0,271.284 l-8,1.2L 348,175.358 L 356,174.158z\n\t M 252,189.758l 8-1.2l0,271.284 l-8,1.2L 252,189.758 z M 244,462.242l-8,1.2L 236,192.158 l 8-1.2L 244,462.242 z M 268,187.358l 8-1.2l0,271.284 l-8,1.199\n\tL 268,187.358 z M 284,184.958l 8-1.2l0,271.284 l-8,1.2L 284,184.958 z M 300,182.558l 8-1.2l0,271.284 l-8,1.199L 300,182.558 z M 316,180.158l 8-1.2l0,271.284 \n\tl-8,1.2L 316,180.158 z M 332,177.758l 8-1.2l0,271.284 l-8,1.2L 332,177.758 z M 272,32c 26.468,0, 48,21.533, 48,48l0,20.8 l-64,9.6L 256,80 \n\tc0-14.531-3.894-28.145-10.666-39.89C 252.967,34.992, 262.14,32, 272,32z M 228,193.358l0,271.283 l-8,1.2L 220,194.558 L 228,193.358z\n\t M 180,200.558l0,271.284 l-8,1.2L 172,201.758 L 180,200.558z M 188,199.358l 8-1.2l0,271.283 l-8,1.2L 188,199.358 z M 204,196.958l 8-1.2l0,271.284 l-8,1.2\n\tL 204,196.958 z M 128,80c0-26.467, 21.533-48, 48-48c 9.86,0, 19.033,2.992, 26.666,8.111C 195.894,51.855, 192,65.469, 192,80l0,40 l-64,9.6L 128,80 z\n\t M 160,203.558l 4-0.6l0,271.284 l-4,0.6L 160,203.558 z M 416,436.442l-4,0.6L 412,165.758 l 4-0.6L 416,436.442 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bag, store, ecommerce, purchase, buy\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,96L 352,80 c0-44.183-35.817-80-80-80c-18.011,0-34.629,5.955-48,15.999C 210.629,5.955, 194.011,0, 176,0\n\tc-44.183,0-80,35.817-80,80l0,54.4 L 32,144l0,336 l 64,0 l 32,32l 320-48L 448,128 L 352,96z M 96,448L 64,448 L 64,171.558 l 32-4.8L 96,448 z M 272,32\n\tc 26.468,0, 48,21.533, 48,48l0,20.8 l-64,9.6L 256,80 c0-14.531-3.894-28.145-10.666-39.89C 252.967,34.992, 262.14,32, 272,32z M 128,80\n\tc0-26.467, 21.533-48, 48-48c 9.86,0, 19.033,2.992, 26.666,8.111C 195.894,51.855, 192,65.469, 192,80l0,40 l-64,9.6L 128,80 z M 416,436.442\n\tl-256,38.399L 160,203.558 l 256-38.4L 416,436.442 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"basket, cart, ecommerce, shopping, products, purchase, buy, store\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,512l 383.459,0 c0,0, 32.541-64, 64-256L0,256 C 32,448, 64,512, 64,512z M 368,288l 48,0 l0,192 l-48,0 L 368,288 z M 277.333,288l 48,0 l0,192 l-48,0 L 277.333,288 z\n\t\t M 186.667,288l 48,0 l0,192 l-48,0 L 186.667,288 z M 96,288l 48,0 l0,192 L 96,480 L 96,288 zM 437.768,160L 347.9,47.666c 2.606-4.631, 4.1-9.973, 4.1-15.666c0-17.673-14.327-32-32-32c-17.674,0-32,14.327-32,32\n\t\ts 14.326,32, 32,32c 3.185,0, 6.259-0.472, 9.162-1.338L 407.032,160L 104.968,160 l 77.871-97.338C 185.742,63.528, 188.815,64, 192,64\n\t\tc 17.673,0, 32-14.327, 32-32S 209.673,0, 192,0s-32,14.327-32,32c0,5.693, 1.493,11.034, 4.1,15.666L 74.232,160L0,160 l0,64 l 512,0 l0-64 L 437.768,160 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"basket, cart, ecommerce, shopping, products, purchase, buy, store\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 406.494,192L 317.573,76.235C 319.134,72.465, 320,68.334, 320,64c0-17.673-14.326-32-32-32c-17.673,0-32,14.327-32,32\n\ts 14.327,32, 32,32c 1.421,0, 2.816-0.102, 4.188-0.282L 366.144,192L 145.857,192 l 73.956-96.282C 221.184,95.898, 222.58,96, 224,96\n\tc 17.673,0, 32-14.327, 32-32s-14.327-32-32-32s-32,14.327-32,32c0,4.334, 0.866,8.465, 2.427,12.234L 105.506,192L0,192 l0,64 l 32,0 l 32,256l 384,0 \n\tl 32-256l 32,0 l0-64 L 406.494,192 z M 160,448L 96,448 l0-64 l 64,0 L 160,448 z M 160,320L 96,320 l0-64 l 64,0 L 160,320 z M 288,448l-64,0 l0-64 l 64,0 L 288,448 z M 288,320l-64,0 l0-64 l 64,0 L 288,320 z\n\t M 416,448l-64,0 l0-64 l 64,0 L 416,448 z M 416,320l-64,0 l0-64 l 64,0 L 416,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cart-remove, ecommerce, shopping, products, purchase, buy, store\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 488.791,97.231 C 505.784,102.086 515.624,119.798 510.769,136.791 L 446.769,360.791 C 442.844,374.528 430.287,384 416,384 L 144,384 C 127.862,384 114.249,371.982 112.247,355.969 L 83.751,128 L 32,128 C 14.327,128 0,113.673 0,96 C 0,78.327 14.327,64 32,64 L 112,64 C 128.138,64 141.751,76.017 143.753,92.031 L 172.249,320 L 391.862,320 L 449.231,119.209 C 454.086,102.216 471.799,92.377 488.791,97.231 ZM 128,464A48,48 2520 1 1 224,464A48,48 2520 1 1 128,464zM 320,464A48,48 2520 1 1 416,464A48,48 2520 1 1 320,464zM 402.628,229.372l-45.256,45.256L 288,205.255l-69.373,69.372l-45.255-45.255L 242.745,160l-69.372-69.373l 45.254-45.254\n\tL 288,114.745l 69.372-69.373l 45.256,45.255L 333.255,160L 402.628,229.372z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cart-checkout, checkout, ecommerce, shopping, products, purchase, buy, store\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,384L 144,384 c-16.138,0-29.751-12.018-31.753-28.031L 83.751,128L 32,128 c-17.673,0-32-14.327-32-32s 14.327-32, 32-32l 80,0 \n\t\tc 16.138,0, 29.751,12.017, 31.753,28.031L 172.249,320l 219.613,0 l 57.369-200.791c 4.854-16.993, 22.567-26.832, 39.56-21.978\n\t\tc 16.993,4.855, 26.833,22.567, 21.978,39.56l-64,224C 442.844,374.528, 430.287,384, 416,384zM 128,464A48,48 2520 1 1 224,464A48,48 2520 1 1 128,464zM 320,464A48,48 2520 1 1 416,464A48,48 2520 1 1 320,464zM 429.312,77.082L 295.159,255.4L 215,151.91L 241.612,127.485L 293.159,173.125L 406.981,57.75 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cart-remove, ecommerce, shopping, products, purchase, buy, store\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 488.791,97.231 C 505.784,102.086 515.624,119.798 510.769,136.791 L 446.769,360.791 C 442.844,374.528 430.287,384 416,384 L 144,384 C 127.862,384 114.249,371.982 112.247,355.969 L 83.751,128 L 32,128 C 14.327,128 0,113.673 0,96 C 0,78.327 14.327,64 32,64 L 112,64 C 128.138,64 141.751,76.017 143.753,92.031 L 172.249,320 L 391.862,320 L 449.231,119.209 C 454.086,102.216 471.799,92.377 488.791,97.231 ZM 128,464A48,48 2520 1 1 224,464A48,48 2520 1 1 128,464zM 320,464A48,48 2520 1 1 416,464A48,48 2520 1 1 320,464zM 394,192 L 320,192 L 320,288 L 256,288 L 256,192 L 182,192 L 288,78 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cart-add, ecommerce, shopping, products, purchase, buy, store\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 488.791,97.231 C 505.784,102.086 515.624,119.798 510.769,136.791 L 446.769,360.791 C 442.844,374.528 430.287,384 416,384 L 144,384 C 127.862,384 114.249,371.982 112.247,355.969 L 83.751,128 L 32,128 C 14.327,128 0,113.673 0,96 C 0,78.327 14.327,64 32,64 L 112,64 C 128.138,64 141.751,76.017 143.753,92.031 L 172.249,320 L 391.862,320 L 449.231,119.209 C 454.086,102.216 471.799,92.377 488.791,97.231 ZM 128,464A48,48 2520 1 1 224,464A48,48 2520 1 1 128,464zM 320,464A48,48 2520 1 1 416,464A48,48 2520 1 1 320,464zM 182,160 L 256,160 L 256,64 L 320,64 L 320,160 L 394,160 L 288,274 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cart-minus, ecommerce, shopping, products, purchase, buy, store\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,384L 144,384 c-16.138,0-29.751-12.018-31.753-28.031L 83.751,128L 32,128 c-17.673,0-32-14.327-32-32s 14.327-32, 32-32l 80,0 \n\t\tc 16.138,0, 29.751,12.017, 31.753,28.031L 172.249,320l 219.613,0 l 57.369-200.791c 4.854-16.993, 22.567-26.832, 39.56-21.978\n\t\tc 16.993,4.855, 26.833,22.567, 21.978,39.56l-64,224C 442.844,374.528, 430.287,384, 416,384zM 128,464A48,48 2520 1 1 224,464A48,48 2520 1 1 128,464zM 320,464A48,48 2520 1 1 416,464A48,48 2520 1 1 320,464zM 192,160L 384,160L 384,224L 192,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cart-plus, ecommerce, shopping, products, purchase, buy, store\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,384L 144,384 c-16.138,0-29.751-12.018-31.753-28.031L 83.751,128L 32,128 c-17.673,0-32-14.327-32-32s 14.327-32, 32-32l 80,0 \n\t\tc 16.138,0, 29.751,12.017, 31.753,28.031L 172.249,320l 219.613,0 l 57.369-200.791c 4.854-16.993, 22.567-26.832, 39.56-21.978\n\t\tc 16.993,4.855, 26.833,22.567, 21.978,39.56l-64,224C 442.844,374.528, 430.287,384, 416,384zM 128,464A48,48 2520 1 1 224,464A48,48 2520 1 1 128,464zM 320,464A48,48 2520 1 1 416,464A48,48 2520 1 1 320,464zM 384,224 L 320,224 L 320,288 L 256,288 L 256,224 L 192,224 L 192,160 L 256,160 L 256,96 L 320,96 L 320,160 L 384,160 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cart, ecommerce, shopping, products, purchase, buy, store\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 488.791,97.231c-16.992-4.854-34.705,4.985-39.56,21.978L 446.72,128L 148.249,128 l-4.496-35.969\n\t\tC 141.751,76.017, 128.138,64, 112,64L 32,64 C 14.327,64,0,78.327,0,96s 14.327,32, 32,32l 51.751,0 l 28.496,227.969\n\t\tC 114.249,371.982, 127.862,384, 144,384l 272,0 c 14.287,0, 26.844-9.472, 30.769-23.209l 64-224\n\t\tC 515.624,119.798, 505.784,102.086, 488.791,97.231z M 437.577,160l-9.144,32L 156.249,192 l-4-32L 437.577,160 z M 419.291,224l-9.143,32L 164.249,256 \n\t\tl-4-32L 419.291,224 z M 172.249,320l-4-32l 232.756,0 l-9.143,32L 172.249,320 zM 128,464A48,48 2520 1 1 224,464A48,48 2520 1 1 128,464zM 320,464A48,48 2520 1 1 416,464A48,48 2520 1 1 320,464z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cart, ecommerce, shopping, products, purchase, buy, store\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 488.791,97.231c-16.992-4.854-34.705,4.985-39.56,21.978L 446.72,128L 148.249,128 l-4.496-35.969\n\t\tC 141.751,76.017, 128.138,64, 112,64L 32,64 C 14.327,64,0,78.327,0,96s 14.327,32, 32,32l 51.751,0 l 28.496,227.969\n\t\tC 114.249,371.982, 127.862,384, 144,384l 272,0 c 14.287,0, 26.844-9.472, 30.769-23.209l 64-224\n\t\tC 515.624,119.798, 505.784,102.086, 488.791,97.231z M 256,256l0-32 l 63.998,0 l0,32 L 256,256 z M 319.998,288l0,32 L 256,320 l0-32 L 319.998,288 z M 256,192l0-32 \n\t\tl 63.998,0 l0,32 L 256,192 z M 152.249,160L 224,160 l0,32 l-67.751,0 L 152.249,160z M 160.249,224L 224,224 l0,32 l-59.751,0 L 160.249,224z M 168.249,288L 224,288 l0,32 l-51.751,0 \n\t\tL 168.249,288z M 391.862,320l-39.864,0 l0-32 l 49.007,0 L 391.862,320z M 410.148,256l-58.15,0 l0-32 l 67.293,0 L 410.148,256z M 428.434,192l-76.436,0 \n\t\tl0-32 l 85.579,0 L 428.434,192zM 128,464A48,48 2520 1 1 224,464A48,48 2520 1 1 128,464zM 320,464A48,48 2520 1 1 416,464A48,48 2520 1 1 320,464z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cart, ecommerce, shopping, products, purchase, buy, store, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 488.791,97.231c-16.992-4.854-34.705,4.985-39.56,21.978L 446.72,128L 148.249,128 l-4.496-35.969\n\t\tC 141.751,76.017, 128.138,64, 112,64L 32,64 C 14.327,64,0,78.327,0,96s 14.327,32, 32,32l 51.751,0 l 28.496,227.969\n\t\tC 114.249,371.982, 127.862,384, 144,384l 272,0 c 14.287,0, 26.844-9.472, 30.769-23.209l 64-224\n\t\tC 515.624,119.798, 505.784,102.086, 488.791,97.231z M 391.862,320L 172.249,320 l-0.5-4l 221.256,0 L 391.862,320z M 395.291,308L 170.749,308 l-1-8\n\t\tl 227.827,0 L 395.291,308z M 399.862,292L 168.749,292 l-1-8l 234.399,0 L 399.862,292z M 404.434,276L 166.749,276 l-1-8L 406.72,268 L 404.434,276z\n\t\t M 409.005,260L 164.749,260 l-1-8l 247.542,0 L 409.005,260z M 413.577,244L 162.749,244 l-1-8l 254.113,0 L 413.577,244z M 418.148,228L 160.749,228 l-1-8\n\t\tl 260.685,0 L 418.148,228z M 422.72,212L 158.749,212 l-1-8l 267.256,0 L 422.72,212z M 427.291,196L 156.749,196 l-1-8l 273.828,0 L 427.291,196z M 431.862,180\n\t\tL 154.749,180 l-1-8l 280.399,0 L 431.862,180z M 152.749,164l-0.5-4l 285.327,0 l-1.143,4L 152.749,164 zM 128,464A48,48 2520 1 1 224,464A48,48 2520 1 1 128,464zM 320,464A48,48 2520 1 1 416,464A48,48 2520 1 1 320,464z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cart, ecommerce, shopping, products, purchase, buy, store\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 488.791,97.231 C 505.784,102.086 515.624,119.798 510.769,136.791 L 446.769,360.791 C 442.844,374.528 430.287,384 416,384 L 144,384 C 127.862,384 114.249,371.982 112.247,355.969 L 83.751,128 L 32,128 C 14.327,128 0,113.673 0,96 C 0,78.327 14.327,64 32,64 L 112,64 C 128.138,64 141.751,76.017 143.753,92.031 L 172.249,320 L 391.862,320 L 449.231,119.209 C 454.086,102.216 471.799,92.377 488.791,97.231 ZM 128,464A48,48 2520 1 1 224,464A48,48 2520 1 1 128,464zM 320,464A48,48 2520 1 1 416,464A48,48 2520 1 1 320,464z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cart, ecommerce, shopping, products, purchase, buy, store, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 423.609,288c 17.6,0, 35.956-13.846, 40.791-30.769l 46.418-162.463C 515.653,77.846, 505.209,64, 487.609,64L 160,64 \n\t\tc0-35.346-28.654-64-64-64L0,0 l0,64 l 96,0 l0,272 c0,26.51, 21.49,48, 48,48l 304,0 c 17.673,0, 32-14.327, 32-32s-14.327-32-32-32L 160,320 l0-32 L 423.609,288 z\n\t\t M 160,224l0-4 l 263.117,0 l-1.143,4L 160,224 z M 441.403,156l-2.286,8L 160,164 l0-8 L 441.403,156 z M 160,148l0-8 l 285.975,0 l-2.285,8L 160,148 z M 436.832,172\n\t\tl-2.286,8L 160,180 l0-8 L 436.832,172 z M 432.261,188l-2.286,8L 160,196 l0-8 L 432.261,188 z M 427.688,204l-2.285,8L 160,212 l0-8 L 427.688,204 z M 449.403,128l-1.143,4\n\t\tL 160,132 l0-4 L 449.403,128 zM 152,416 C 174,416 192,434 192,456 L 192,472 C 192,494 174,512 152,512 L 136,512 C 114,512 96,494 96,472 L 96,456 C 96,434 114,416 136,416 L 152,416 ZM 440,416 C 462,416 480,434 480,456 L 480,472 C 480,494 462,512 440,512 L 424,512 C 402,512 384,494 384,472 L 384,456 C 384,434 402,416 424,416 L 440,416 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cart, ecommerce, shopping, products, purchase, buy, store\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 423.609,288c 17.6,0, 35.956-13.846, 40.791-30.769l 46.418-162.463C 515.653,77.846, 505.209,64, 487.609,64L 160,64 \n\tc0-35.346-28.654-64-64-64L0,0 l0,64 l 96,0 l0,272 c0,26.51, 21.49,48, 48,48l 304,0 c 17.673,0, 32-14.327, 32-32s-14.327-32-32-32L 160,320 l0-32 L 423.609,288 z\n\t M 160,128l 289.403,0 l-27.429,96L 160,224 L 160,128 zM 192,472c0,22-18,40-40,40l-16,0 c-22,0-40-18-40-40l0-16 c0-22, 18-40, 40-40l 16,0 c 22,0, 40,18, 40,40L 192,472 zM 480,472c0,22-18,40-40,40l-16,0 c-22,0-40-18-40-40l0-16 c0-22, 18-40, 40-40l 16,0 c 22,0, 40,18, 40,40L 480,472 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cart, ecommerce, shopping, products, purchase, buy, store\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,464A48,48 10800 1 1 160,464A48,48 10800 1 1 64,464zM 384,464A48,48 10800 1 1 480,464A48,48 10800 1 1 384,464zM 480,256L 480,64 L 64,64 C 64,28.654, 35.347,0,0,0l0,32 c 17.645,0, 32,14.355, 32,32l 24.037,206.027C 41.39,281.756, 32,299.777, 32,320\n\t\tc0,35.347, 28.654,64, 64,64l 384,0 l0-32 L 96,352 c-17.673,0-32-14.327-32-32c0-0.11, 0.007-0.218, 0.008-0.328L 480,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"ticket, theater, cinema\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 287.998,160L 351.997,223.999L 224,351.996L 160.001,287.997zM 500.763,148.752l-36.758-36.758l-16.004,16.004c-8.189,8.19-19.505,13.255-32,13.255\n\t\tc-24.994,0-45.257-20.261-45.257-45.255c0-12.501, 5.070-23.819, 13.267-32.009l 15.994-15.993l-36.759-36.758\n\t\tc-14.984-14.984-39.504-14.984-54.488,0L 11.238,308.757c-14.983,14.984-14.983,39.505,0,54.488l 36.76,36.759l 15.981-15.982\n\t\tc 8.191-8.203, 19.515-13.276, 32.022-13.276c 24.994,0, 45.255,20.262, 45.255,45.255c0,12.503-5.070,23.82-13.267,32.011l-15.992,15.993\n\t\tl 36.758,36.759c 14.983,14.983, 39.504,14.983, 54.488,0l 297.52-297.52C 515.745,188.256, 515.745,163.736, 500.763,148.752z\n\t\t M 224.001,415.998l-128-128l 192-192l 128,128L 224.001,415.998z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"qrcode, price\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,32 L 32,32 L 32,160 L 160,160 L 160,32 Z M 192,0 L 192,0 L 192,192 L 0,192 L 0,0 L 192,0 ZM 64,64L 128,64L 128,128L 64,128zM 480,32 L 352,32 L 352,160 L 480,160 L 480,32 Z M 512,0 L 512,0 L 512,192 L 320,192 L 320,0 L 512,0 ZM 384,64L 448,64L 448,128L 384,128zM 160,352 L 32,352 L 32,480 L 160,480 L 160,352 Z M 192,320 L 192,320 L 192,512 L 0,512 L 0,320 L 192,320 ZM 64,384L 128,384L 128,448L 64,448zM 224,0L 256,0L 256,32L 224,32zM 256,32L 288,32L 288,64L 256,64zM 224,64L 256,64L 256,96L 224,96zM 256,96L 288,96L 288,128L 256,128zM 224,128L 256,128L 256,160L 224,160zM 256,160L 288,160L 288,192L 256,192zM 224,192L 256,192L 256,224L 224,224zM 224,256L 256,256L 256,288L 224,288zM 256,288L 288,288L 288,320L 256,320zM 224,320L 256,320L 256,352L 224,352zM 256,352L 288,352L 288,384L 256,384zM 224,384L 256,384L 256,416L 224,416zM 256,416L 288,416L 288,448L 256,448zM 224,448L 256,448L 256,480L 224,480zM 256,480L 288,480L 288,512L 256,512zM 480,256L 512,256L 512,288L 480,288zM 32,256L 64,256L 64,288L 32,288zM 64,224L 96,224L 96,256L 64,256zM0,224L 32,224L 32,256L0,256zM 128,224L 160,224L 160,256L 128,256zM 160,256L 192,256L 192,288L 160,288zM 192,224L 224,224L 224,256L 192,256zM 288,256L 320,256L 320,288L 288,288zM 320,224L 352,224L 352,256L 320,256zM 352,256L 384,256L 384,288L 352,288zM 384,224L 416,224L 416,256L 384,256zM 416,256L 448,256L 448,288L 416,288zM 448,224L 480,224L 480,256L 448,256zM 480,320L 512,320L 512,352L 480,352zM 288,320L 320,320L 320,352L 288,352zM 320,288L 352,288L 352,320L 320,320zM 352,320L 384,320L 384,352L 352,352zM 416,320L 448,320L 448,352L 416,352zM 448,288L 480,288L 480,320L 448,320zM 480,384L 512,384L 512,416L 480,416zM 288,384L 320,384L 320,416L 288,416zM 320,352L 352,352L 352,384L 320,384zM 384,352L 416,352L 416,384L 384,384zM 416,384L 448,384L 448,416L 416,416zM 448,352L 480,352L 480,384L 448,384zM 480,448L 512,448L 512,480L 480,480zM 320,416L 352,416L 352,448L 320,448zM 352,448L 384,448L 384,480L 352,480zM 384,416L 416,416L 416,448L 384,448zM 416,448L 448,448L 448,480L 416,480zM 320,480L 352,480L 352,512L 320,512zM 384,480L 416,480L 416,512L 384,512zM 448,480L 480,480L 480,512L 448,512z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"barcode, price\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,64L 64,64L 64,384L0,384zM 96,64L 128,64L 128,384L 96,384zM 160,64L 192,64L 192,384L 160,384zM 256,64L 288,64L 288,384L 256,384zM 384,64L 416,64L 416,384L 384,384zM 480,64L 512,64L 512,384L 480,384zM 320,64L 336,64L 336,384L 320,384zM 224,64L 240,64L 240,384L 224,384zM 432,64L 448,64L 448,384L 432,384zM0,416L 32,416L 32,448L0,448zM 96,416L 128,416L 128,448L 96,448zM 160,416L 192,416L 192,448L 160,448zM 320,416L 352,416L 352,448L 320,448zM 480,416L 512,416L 512,448L 480,448zM 384,416L 448,416L 448,448L 384,448zM 224,416L 288,416L 288,448L 224,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"barcode, price\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,96L 64,96L 64,416L0,416zM 96,96L 128,96L 128,416L 96,416zM 160,96L 192,96L 192,416L 160,416zM 256,96L 288,96L 288,416L 256,416zM 384,96L 416,96L 416,416L 384,416zM 480,96L 512,96L 512,416L 480,416zM 320,96L 336,96L 336,416L 320,416zM 224,96L 240,96L 240,416L 224,416zM 432,96L 448,96L 448,416L 432,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tag, price\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,256L 224,256L 224,320L 192,320zM 256,352L 288,352L 288,416L 256,416zM 400.443,143.029L 284.891,16.971C 276.334,7.637, 259.434,0, 247.333,0l-14.667,0 c-12.1,0-29,7.637-37.556,16.971\n\t\tL 79.557,143.029C 71,152.363, 64,170.8, 64,184l0,304 c0,13.2, 9.9,24, 22,24l 308,0 c 12.101,0, 22-10.8, 22-24L 416,184 \n\t\tC 416,170.8, 409,152.363, 400.443,143.029z M 320,256l-64,0 l0,64 l 64,0 l0,8 l0,24 l0,64 l0,24 l0,8 l-64,0 l0,32 l-32,0 l0-32 l-64,0 l0-32 l 64,0 l0-64 l-64,0 l0-16 l0-16 l0-64 l0-32 l 32,0 \n\t\tl 32,0 l0-32 l 32,0 l0,32 l 64,0 L 320,256 z M 265,80c0,13.807-11.193,25-25,25s-25-11.193-25-25s 11.193-25, 25-25S 265,66.193, 265,80z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"544\" height=\"512\" viewBox=\"0 0 544 512\" data-tags=\"tags, prices\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,96 L 384,96 C 381.158,96 373.652,97.357 364.621,101.098 C 355.59,104.839 349.322,109.187 347.312,111.196 L 170.509,288 L 288,405.49 L 464.803,228.686 C 466.813,226.677 471.161,220.409 474.901,211.378 C 478.643,202.348 480,194.842 480,192 L 480,96 Z M 496,32 L 496,32 C 522.4,32 544,53.6 544,80 L 544,192 C 544,218.4 528.727,255.273 510.058,273.941 L 321.941,462.058 C 312.607,471.392 300.304,476.059 288,476.059 C 275.696,476.059 263.392,471.392 254.059,462.058 L 113.941,321.941 C 95.274,303.273 95.274,272.726 113.941,254.059 L 302.059,65.941 C 320.727,47.273 357.6,32 384,32 L 496,32 ZM 43.313,299.313 L 214.502,470.502 C 196.37,480.082 173.271,477.271 158.059,462.058 L 17.941,321.941 C -0.726,303.273 -0.726,272.726 17.941,254.059 L 206.059,65.941 C 224.727,47.273 261.6,32 288,32 L 43.313,276.686 C 37.091,282.909 37.091,293.090 43.313,299.313 ZM 384,160A32,32 2520 1 1 448,160A32,32 2520 1 1 384,160z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"544\" height=\"512\" viewBox=\"0 0 544 512\" data-tags=\"tags, prices\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 496,32L 384,32 c-26.4,0-63.273,15.273-81.941,33.941L 113.941,254.059c-18.667,18.667-18.667,49.214,0,67.882l 140.118,140.117\n\tc 18.667,18.668, 49.214,18.668, 67.882,0l 188.117-188.117C 528.727,255.273, 544,218.4, 544,192L 544,80 C 544,53.6, 522.4,32, 496,32z M 432,192\n\tc-26.51,0-48-21.49-48-48s 21.49-48, 48-48s 48,21.49, 48,48S 458.51,192, 432,192zM 43.313,299.313 L 214.502,470.502 C 196.37,480.082 173.271,477.271 158.059,462.058 L 17.941,321.941 C -0.726,303.273 -0.726,272.726 17.941,254.059 L 206.059,65.941 C 224.727,47.273 261.6,32 288,32 L 43.313,276.686 C 37.091,282.909 37.091,293.090 43.313,299.313 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tag, price\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 447.875,64.126 L 319.625,64.126 C 316.777,64.126 309.256,65.487 300.207,69.235 C 291.16,72.983 284.881,77.338 282.867,79.351 L 70.707,291.511 L 220.49,441.293 L 432.649,229.134 C 434.662,227.12 439.018,220.841 442.766,211.792 C 446.516,202.743 447.875,195.223 447.875,192.376 L 447.875,64.125 Z M 463.906,0 L 463.906,0 C 490.357,0 512,21.643 512,48.094 L 512,192.376 C 512,218.827 496.697,255.772 477.993,274.478 L 254.498,497.972 C 245.146,507.324 232.817,512 220.49,512 C 208.163,512 195.835,507.325 186.483,497.972 L 14.028,325.519 C -4.676,306.815 -4.676,276.207 14.028,257.503 L 237.523,34.008 C 256.227,15.304 293.172,0 319.625,0 L 463.906,0 ZM 320,144A48,48 2520 1 1 416,144A48,48 2520 1 1 320,144z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tag, price\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,64 L 298.51,64 L 90.51,272 L 240,421.49 L 448,213.49 L 448,64 Z M 512,0 L 512,0 L 512,240 L 240,512 L 0,272 L 272,0 L 512,0 ZM 320,144A48,48 2520 1 1 416,144A48,48 2520 1 1 320,144z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tag, price\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 463.906,0L 319.625,0 c-26.453,0-63.398,15.303-82.102,34.007L 14.028,257.502c-18.704,18.704-18.704,49.312,0,68.016\n\tl 172.455,172.453c 18.704,18.705, 49.311,18.705, 68.015,0l 223.495-223.494C 496.697,255.772, 512,218.826, 512,192.375L 512,48.094 \n\tC 512,21.642, 490.357,0, 463.906,0z M 400,160c-26.51,0-48-21.49-48-48s 21.49-48, 48-48s 48,21.49, 48,48S 426.51,160, 400,160z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tag, price\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 272,0L0,272l 240,240l 272-272L 512,0 L 272,0 z M 400,160c-26.51,0-48-21.49-48-48s 21.49-48, 48-48s 48,21.49, 48,48S 426.51,160, 400,160z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tag, price\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 312.377,128 L 40.048,128 C 35.686,128 32,131.664 32,136 L 32,408 C 32,412.336 35.685,416 40.048,416 L 312.377,416 C 325.904,416 348.567,406.626 358.131,397.074 L 477.707,277.643 C 479.703,275.648 480.002,273.251 480.002,272 C 480.002,270.749 479.703,268.351 477.706,266.356 L 358.131,146.925 C 348.567,137.375 325.904,128 312.377,128 Z M 312.377,96 L 312.377,96 C 334.403,96 365.168,108.728 380.744,124.284 L 500.32,243.716 C 515.895,259.272 515.895,284.727 500.32,300.284 L 380.744,419.716 C 365.168,435.272 334.403,448 312.377,448 L 40.048,448 C 18.022,448 0,430 0,408 L 0,136 C 0,114 18.022,96 40.048,96 L 312.377,96 ZM 288,272A48,48 2520 1 1 384,272A48,48 2520 1 1 288,272z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tag, price\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 312.279,160 L 64,160 L 64,384 L 312.28,384 C 318.076,383.738 331.297,378.271 335.588,374.362 L 438.074,272 L 335.589,169.639 C 331.297,165.729 318.076,160.262 312.279,160 Z M 312.377,96 L 312.377,96 C 334.403,96 365.168,108.728 380.744,124.284 L 500.32,243.716 C 515.895,259.272 515.895,284.727 500.32,300.284 L 380.744,419.716 C 365.168,435.272 334.403,448 312.377,448 L 40.048,448 C 18.022,448 0,430 0,408 L 0,136 C 0,114 18.022,96 40.048,96 L 312.377,96 ZM 256,272A48,48 2520 1 1 352,272A48,48 2520 1 1 256,272z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"tag, price\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 500.32,243.716L 380.744,124.284C 365.168,108.728, 334.403,96, 312.377,96L 40.048,96 C 18.022,96,0,114,0,136l0,272 \n\tc0,22, 18.022,40, 40.048,40l 272.329,0 c 22.026,0, 52.791-12.728, 68.367-28.284L 500.32,300.284\n\tC 515.896,284.728, 515.896,259.272, 500.32,243.716z M 368,320c-26.51,0-48-21.49-48-48s 21.49-48, 48-48s 48,21.49, 48,48\n\tS 394.51,320, 368,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"cc, creative commons, license\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 255.645,0C 185.511,0, 123.788,25.955, 76.090,74.347\n\t\tc-49.086,49.8-75.735,114.324-75.735,181.661c0,68.027, 25.939,131.147, 75.041,180.249C 124.49,485.351, 188.312,512, 255.645,512\n\t\tc 67.333,0, 132.56-26.649, 183.058-76.445c 47.697-46.995, 72.941-109.413, 72.941-179.547c0-69.439-25.244-132.563-73.643-180.959\n\t\tC 388.908,25.955, 325.779,0, 255.645,0z M 256.347,46.293c 57.512,0, 108.711,21.742, 148.694,61.72\n\t\tc 39.271,39.28, 60.311,91.178, 60.311,147.995c0,57.511-20.338,108.001-59.609,146.587c-41.385,40.676-94.684,62.418-149.395,62.418\n\t\tc-55.404,0-107.314-21.742-147.289-61.716c-39.974-39.981-62.426-92.586-62.426-147.289c0-55.413, 22.452-108.013, 62.426-148.697\n\t\tC 148.338,67.337, 198.836,46.293, 256.347,46.293zM 253.042,213.47c-14.453-26.373-39.131-36.865-67.768-36.865\n\t\tc-41.686,0-74.867,29.489-74.867,79.403c0,50.759, 31.193,79.396, 76.287,79.396c 28.922,0, 53.599-15.881, 67.207-39.981\n\t\tl-31.762-16.165c-7.092,17.017-17.868,22.113-31.477,22.113c-23.533,0-34.311-19.564-34.311-45.362\n\t\tc0-25.813, 9.073-45.378, 34.311-45.378c 6.808,0, 20.416,3.692, 28.361,20.701L 253.042,213.47zM 400.725,213.47c-14.461-26.373-39.129-36.865-67.766-36.865\n\t\tc-41.688,0-74.867,29.489-74.867,79.403c0,50.759, 31.193,79.396, 76.287,79.396c 28.92,0, 53.59-15.881, 67.199-39.981l-31.762-16.165\n\t\tc-7.084,17.017-17.861,22.113-31.479,22.113c-23.525,0-34.309-19.564-34.309-45.362c0-25.813, 9.080-45.378, 34.309-45.378\n\t\tc 6.809,0, 20.418,3.692, 28.369,20.701L 400.725,213.47z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"certificate, license, degree\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,0l0,512 l 448,0 L 480,0 L 32,0 z M 448,480L 64,480 L 64,32 l 384,0 L 448,480 zM 96,96L 256,96L 256,128L 96,128zM 96,160L 256,160L 256,192L 96,192zM 96,224L 256,224L 256,256L 96,256zM 96,287.68L 256,287.68L 256,319.68L 96,319.68zM 96,352L 256,352L 256,384L 96,384zM 96,416L 416,416L 416,448L 96,448zM 384,224 L 384,384 L 352,336 L 320,384 L 320,224 ZM 416,109.254 L 397.255,128 L 416,146.746 L 416,160 L 384,160 L 384,192 L 370.745,192 L 352,173.255 L 333.255,192 L 320,192 L 320,160 L 288,160 L 288,146.746 L 306.745,128 L 288,109.254 L 288,96 L 320,96 L 320,64 L 333.255,64 L 352,82.745 L 370.745,64 L 384,64 L 384,96 L 416,96 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-open, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 492.25,192L 448,192 L 448,88 c0-13.255-10.745-24-24-24L 208,64 l-16-32L 88,32 c-13.255,0-24,10.745-24,24l0,136 L 19.75,192 \n\tc-13.2,0-21.882,10.59-19.293,23.534l 58.836,208.932C 61.882,437.41, 74.8,448, 88,448l 336,0 c 13.2,0, 26.118-10.59, 28.707-23.534\n\tl 58.836-208.932C 514.132,202.59, 505.45,192, 492.25,192z M 96,64l 76.223,0 l 16,32L 416,96 l0,96 L 96,192 L 96,64 z M 421.797,416L 90.203,416 L 35.017,224l 441.966,0 \n\tL 421.797,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 492.25,128L 448,128 L 448,88 c0-13.255-10.745-24-24-24L 208,64 l-16-32L 88,32 c-13.255,0-24,10.745-24,24l0,72 L 19.75,128 \n\tc-13.2,0-21.882,10.59-19.293,23.534l 58.836,272.932C 61.882,437.41, 74.8,448, 88,448l 336,0 c 13.2,0, 26.118-10.59, 28.707-23.534\n\tl 58.836-272.932C 514.132,138.59, 505.45,128, 492.25,128z M 96,64l 76.223,0 l 16,32L 416,96 l0,32 L 96,128 L 96,64 z M 421.797,416L 90.203,416 L 35.017,160l 441.966,0 \n\tL 421.797,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-open, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 492.25,192 C 505.45,192 514.132,202.59 511.543,215.534 L 452.707,424.466 C 450.118,437.41 437.2,448 424,448 L 88,448 C 74.8,448 61.882,437.41 59.293,424.466 L 0.457,215.534 C -2.132,202.59 6.55,192 19.75,192 L 492.25,192 Z M 448,88 L 448,160 L 64,160 L 64,56 C 64,42.745 74.745,32 88,32 L 192,32 L 208,64 L 424,64 C 437.255,64 448,74.745 448,88 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 492.25,128L 19.75,128 c-13.2,0-21.882,10.59-19.293,23.534l 58.836,272.932C 61.882,437.41, 74.8,448, 88,448l 336,0 \n\t\tc 13.2,0, 26.118-10.59, 28.707-23.534l 58.836-272.932C 514.132,138.59, 505.45,128, 492.25,128zM 448,88c0-13.255-10.745-24-24-24L 208,64 l-16-32L 88,32 c-13.255,0-24,10.745-24,24l0,56 l 384,0 L 448,88 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-upload, upload, load, open, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,128l-64-64L0,64 l0,416 l 512,0 L 512,128 L 288,128 z M 480,448L 288,448 l0-96 l 96,0 L 256,224L 128,352l 96,0 l0,96 L 32,448 L 32,96 l 178.745,0 l 54.628,54.627l 9.372,9.373\n\tL 288,160 l 192,0 L 480,448 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-download, download, save, store, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,128l-64-64L0,64 l0,416 l 512,0 L 512,128 L 288,128 z M 480,448L 256,448 L 32,448 L 32,96 l 178.745,0 l 54.628,54.627l 9.372,9.373L 288,160 l 192,0 L 480,448 zM 288,320L 288,224L 224,224L 224,320L 128,320L 256,448L 384,320 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-upload, upload, load, open, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,128L 224,64L0,64L0,480L 224,480L 224,352L 128,352L 256,224L 384,352L 288,352L 288,480L 512,480L 512,128 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-download, download, save, store, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,128l-64-64L0,64 l0,416 l 512,0 L 512,128 L 288,128 z M 256,448L 128,320l 96,0 L 224,192 l 64,0 l0,128 l 96,0 L 256,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-remove, remove, directory, category\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,128l-64-64L0,64 l0,416 l 512,0 L 512,128 L 288,128 z M 480,448L 32,448 L 32,96 l 178.745,0 l 54.628,54.627l 9.372,9.373L 288,160 l 192,0 L 480,448 zM 160,288L 352,288L 352,352L 160,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-plus, plus, add, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,128l-64-64L0,64 l0,416 l 512,0 L 512,128 L 288,128 z M 480,448L 32,448 L 32,96 l 178.745,0 l 54.628,54.627l 9.372,9.373L 288,160 l 192,0 L 480,448 zM 288,224L 224,224L 224,288L 160,288L 160,352L 224,352L 224,416L 288,416L 288,352L 352,352L 352,288L 288,288 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-minus, minus, remove, delete, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,128l-64-64L0,64 l0,416 l 512,0 L 512,128 L 288,128 z M 352,352L 160,352 l0-64 l 192,0 L 352,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-plus, plus, add, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,128l-64-64L0,64 l0,416 l 512,0 L 512,128 L 288,128 z M 352,352l-64,0 l0,64 l-64,0 l0-64 l-64,0 l0-64 l 64,0 l0-64 l 64,0 l0,64 l 64,0 L 352,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 210.745,96l 54.628,54.627l 9.372,9.373L 288,160 l 192,0 l0,288 L 32,448 L 32,96 L 210.745,96 M 224,64L0,64 l0,416 l 512,0 L 512,128 L 288,128 L 224,64L 224,64z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder, directory, category, browse, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,128l-64-64L0,64 l0,416 l 512,0 L 512,128 L 288,128 z M 274.745,160L 288,160 l 192,0 l0,4 L 32,164 l0-8 l 238.745,0 L 274.745,160z M 32,448l0-4 l 448,0 l0,4 L 32,448 z M 32,436l0-8 \n\tl 448,0 l0,8 L 32,436 z M 32,420l0-8 l 448,0 l0,8 L 32,420 z M 32,404l0-8 l 448,0 l0,8 L 32,404 z M 32,388l0-8 l 448,0 l0,8 L 32,388 z M 32,372l0-8 l 448,0 l0,8 L 32,372 z M 32,356l0-8 l 448,0 l0,8 L 32,356 z M 32,340l0-8 \n\tl 448,0 l0,8 L 32,340 z M 32,324l0-8 l 448,0 l0,8 L 32,324 z M 32,308l0-8 l 448,0 l0,8 L 32,308 z M 32,292l0-8 l 448,0 l0,8 L 32,292 z M 32,276l0-8 l 448,0 l0,8 L 32,276 z M 32,260l0-8 l 448,0 l0,8 L 32,260 z M 32,244l0-8 \n\tl 448,0 l0,8 L 32,244 z M 32,228l0-8 l 448,0 l0,8 L 32,228 z M 32,212l0-8 l 448,0 l0,8 L 32,212 z M 32,196l0-8 l 448,0 l0,8 L 32,196 z M 32,180l0-8 l 448,0 l0,8 L 32,180 z M 210.745,96l 4,4L 32,100 l0-4 L 210.745,96 z\n\t M 222.745,108l 8,8L 32,116 l0-8 L 222.745,108 z M 238.745,124l 8,8L 32,132 l0-8 L 238.745,124 z M 254.746,140l 8,8L 32,148 l0-8 L 254.746,140 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-open, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,480L 512,224L 96,224L0,480 zM 64,192 L 0,480 L 0,64 L 144,64 L 208,128 L 416,128 L 416,192 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,64L 288,128L 512,128L 512,480L0,480L0,64 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-remove, cancel, close, remove, delete, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,128 L 32,128 L 64,64 L 240,64 L 256,96 L 464,96 ZM0,160l 32,320l 448,0 l 32-320L0,160 z M 352,257.941L 289.941,320L 352,382.059L 352,416 l-33.941,0 L 256,353.941L 193.941,416L 160,416 l0-33.941 \n\t\tL 222.059,320L 160,257.941L 160,224 l 33.941,0 L 256,286.059L 318.059,224L 352,224 L 352,257.941 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder8\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,128 L 32,128 L 64,64 L 240,64 L 256,96 L 464,96 ZM0,160l 32,320l 448,0 l 32-320L0,160 z M 215,427.255L 112.373,308.628l 29.254-29.255L 215,336.745l 137.372-121.372l 29.256,29.254\n\t\tL 215,427.255z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-minus, minus, remove, delete, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,128 L 32,128 L 64,64 L 240,64 L 256,96 L 464,96 ZM0,160l 32,320l 448,0 l 32-320L0,160 z M 352,352L 160,352 l0-64 l 192,0 L 352,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-minus, minus, remove, delete, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,128 L 32,128 L 64,64 L 240,64 L 256,96 L 464,96 ZM 250,400 C 250,429.392 258.504,456.831 273.171,480 L 32,480 L 0,160 L 512,160 L 499.237,287.624 C 472.772,264.226 438.019,250 400,250 C 317.29,250 250,317.29 250,400 ZM 400,288c-61.855,0-112,50.145-112,112s 50.145,112, 112,112s 112-50.145, 112-112S 461.855,288, 400,288z M 320,416l0-32 l 160,0 l0,32 \n\tL 320,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-plus, plus, add, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,128 L 32,128 L 64,64 L 240,64 L 256,96 L 464,96 ZM0,160l 32,320l 448,0 l 32-320L0,160 z M 352,352l-64,0 l0,64 l-64,0 l0-64 l-64,0 l0-64 l 64,0 l0-64 l 64,0 l0,64 l 64,0 L 352,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-plus, plus, add, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,128 L 32,128 L 64,64 L 240,64 L 256,96 L 464,96 ZM 250,400 C 250,429.392 258.504,456.831 273.171,480 L 32,480 L 0,160 L 512,160 L 499.237,287.624 C 472.772,264.226 438.019,250 400,250 C 317.29,250 250,317.29 250,400 ZM 400,288c-61.855,0-112,50.145-112,112s 50.145,112, 112,112s 112-50.145, 112-112S 461.855,288, 400,288z M 416,416l0,64 l-32,0 l0-64 \n\tl-64,0 l0-32 l 64,0 l0-64 l 32,0 l0,64 l 64,0 l0,32 L 416,416 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-upload, upload, load, open, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,128 L 32,128 L 64,64 L 240,64 L 256,96 L 464,96 ZM0,160l 32,320l 448,0 l 32-320L0,160 z M 288,352l0,95.508 l-64,0 L 224,352 L 112,352 l 144-144l 144,144L 288,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder-download, download, save, store, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,128 L 32,128 L 64,64 L 240,64 L 256,96 L 464,96 ZM0,160l 32,320l 448,0 l 32-320L0,160 z M 256,464L 112,320l 112,0 l0-95.508 l 64,0 L 288,320 l 112,0 L 256,464z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"folder, directory, category, browse\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 0,160 L 512,160 L 480,480 L 32,480 L 0,160 Z M 464,96 L 480,128 L 32,128 L 64,64 L 240,64 L 256,96 L 464,96 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack, layers\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,288 L 0,160 L 256,32 L 512,160 ZM 460.722,230.361 L 512,256 L 256,384 L 0,256 L 51.278,230.361 L 256,332.722 ZM 460.722,326.361 L 512,352 L 256,480 L 0,352 L 51.278,326.361 L 256,428.722 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack, layers\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,160L 256,32L0,160l 256,128L 512,160z M 256,74.485L 427.029,160L 256,245.515L 84.971,160L 256,74.485zM 460.722,230.361 L 512,256 L 256,384 L 0,256 L 51.278,230.361 L 256,332.722 ZM 460.722,326.361 L 512,352 L 256,480 L 0,352 L 51.278,326.361 L 256,428.722 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"stack, files, archive, category, papers, documents, layers\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 440,128l-24,0 l0-24 c0-22.056-17.944-40-40-40l-24,0 L 352,40 c0-22.056-17.943-40-40-40l-240,0 c-22.056,0-40,17.944-40,40l0,304 \n\tc0,22.057, 17.944,40, 40,40l 24,0 l0,24 c0,22.057, 17.944,40, 40,40l 24,0 l0,24 c0,22.056, 17.944,40, 40,40l 240,0 c 22.056,0, 40-17.944, 40-40L 480,168 \n\tC 480,145.944, 462.056,128, 440,128z M 72.001,352c-4.4,0-8-3.6-8-8L 64.001,40 c0-4.4, 3.6-8, 8-8l 240,0 c 4.4,0, 8,3.6, 8,8l0,24 L 136,64 \n\tc-22.056,0-40,17.944-40,40l0,248 L 72.001,352 z M 136,416c-4.4,0-8-3.6-8-8L 128,104 c0-4.4, 3.6-8, 8-8l 240,0 c 4.4,0, 8,3.6, 8,8l0,24 L 200,128 \n\tc-22.056,0-40,17.944-40,40l0,248 L 136,416 z M 448,472c0,4.4-3.6,8-8,8L 200,480 c-4.4,0-8-3.6-8-8L 192,168 c0-4.4, 3.6-8, 8-8l 240,0 c 4.4,0, 8,3.6, 8,8L 448,472 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paste, clipboard\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,64l-64,0 L 288,32 c0-17.6-14.4-32-32-32l-64,0 c-17.602,0-32,14.4-32,32l0,32 L 96,64 l0,64 l 256,0 L 352,64 z M 256,64l-64,0 L 192,32.057 \n\t\tc 0.017-0.019, 0.036-0.039, 0.057-0.057l 63.884,0 c 0.021,0.018, 0.041,0.038, 0.059,0.057L 256,64 zM 416,160L 416,80 c0-8.8-7.2-16-16-16l-32,0 l0,32 l 16,0 l0,64 l-96,0 l-96,96l0,128 L 64,384 L 64,96 l 16,0 L 80,64 L 48,64 c-8.801,0-16,7.2-16,16l0,320 \n\t\tc0,8.8, 7.199,16, 16,16l 144,0 l0,96 l 320,0 L 512,160 L 416,160 z M 288,205.255L 288,256 l-50.745,0 L 288,205.255z M 480,480L 224,480 L 224,288 l 96,0 l0-96 l 160,0 L 480,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paste, clipboard\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,160L 416,80 c0-8.8-7.2-16-16-16L 288,64 L 288,32 c0-17.6-14.4-32-32-32l-64,0 c-17.602,0-32,14.4-32,32l0,32 L 48,64 c-8.801,0-16,7.2-16,16l0,320 \n\tc0,8.8, 7.199,16, 16,16l 144,0 l0,96 l 224,0 l 96-96L 512,160 L 416,160 z M 192,32.057c 0.017-0.019, 0.036-0.039, 0.057-0.057l 63.884,0 \n\tc 0.021,0.018, 0.041,0.038, 0.059,0.057L 256,64 l-64,0 L 192,32.057 z M 96,128L 96,96 l 256,0 l0,32 L 96,128 z M 416,466.745L 416,416 l 50.745,0 L 416,466.745z M 480,384l-96,0 l0,96 \n\tL 224,480 L 224,192 l 256,0 L 480,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paste, clipboard\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,64l-64,0 L 288,32 c0-17.6-14.4-32-32-32l-64,0 c-17.602,0-32,14.4-32,32l0,32 L 96,64 l0,64 l 256,0 L 352,64 z M 256,64l-64,0 L 192,32.057 \n\t\tc 0.017-0.019, 0.036-0.039, 0.057-0.057l 63.884,0 c 0.021,0.018, 0.041,0.038, 0.059,0.057L 256,64 zM 416,160L 416,80 c0-8.8-7.2-16-16-16l-32,0 l0,32 l 16,0 l0,64 L 192,160 l0,224 L 64,384 L 64,96 l 16,0 L 80,64 L 48,64 c-8.801,0-16,7.2-16,16l0,320 c0,8.8, 7.199,16, 16,16l 144,0 \n\t\tl0,96 l 224,0 l 96-96L 512,160 L 416,160 z M 416,466.745L 416,416 l 50.745,0 L 416,466.745z M 480,384l-96,0 l0,96 L 224,480 L 224,192 l 256,0 L 480,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"copy, duplicate, files, pages, papers, documents\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,128L 320,0 L 96,0 L0,96l0,288 l 192,0 l0,128 l 320,0 L 512,128 L 320,128 z M 96,45.255L 96,96 L 45.255,96 L 96,45.255z M 32,352L 32,128 l 96,0 L 128,32 l 160,0 l0,96 l-96,96l0,128 L 32,352 z\n\t M 288,173.255L 288,224 l-50.745,0 L 288,173.255z M 480,480L 224,480 L 224,256 l 96,0 l0-96 l 160,0 L 480,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"copy, duplicate, clipboard\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 432,64 C 440.8,64 448,71.2 448,80 L 448,384 L 320,512 L 80,512 C 71.199,512 64,504.8 64,496 L 64,80 C 64,71.2 71.199,64 80,64 L 112,64 L 112,96 L 96,96 L 96,480 L 288,480 L 288,352 L 416,352 L 416,96 L 400,96 L 400,64 L 432,64 ZM 384,64l-64,0 L 320,32 c0-17.6-14.4-32-32-32l-64,0 c-17.602,0-32,14.4-32,32l0,32 l-64,0 l0,64 l 256,0 L 384,64 z M 288,64l-64,0 L 224,32.057 \n\t\tc 0.017-0.019, 0.036-0.039, 0.057-0.057l 63.884,0 c 0.021,0.018, 0.041,0.038, 0.059,0.057L 288,64 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"copy, duplicate\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 432,64l-32,0 l0,32 l 16,0 l0,256 L 288,352 l0,128 L 96,480 L 96,96 l 16,0 L 112,64 L 80,64 c-8.801,0-16,7.2-16,16l0,416 c0,8.8, 7.199,16, 16,16l 252,0 l 116-116L 448,80 \n\tC 448,71.2, 440.8,64, 432,64z M 320,480l0-96 l 96,0 L 320,480zM 384,64l-64,0 L 320,32 c0-17.6-14.4-32-32-32l-64,0 c-17.602,0-32,14.4-32,32l0,32 l-64,0 l0,64 l 256,0 L 384,64 z M 288,64l-64,0 L 224,32.057 \n\tc 0.017-0.019, 0.036-0.039, 0.057-0.057l 63.884,0 c 0.021,0.018, 0.041,0.038, 0.059,0.057L 288,64 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"copy, duplicate, files, pages, papers, documents\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,128l-96,0 L 320,96 L 224,0L0,0 l0,384 l 192,0 l0,128 l 320,0 L 512,224 L 416,128z M 416,173.255L 466.745,224L 416,224 L 416,173.255 z M 224,45.255L 274.745,96L 224,96 \n\tL 224,45.255 z M 32,32l 160,0 l0,96 l 96,0 l0,224 L 32,352 L 32,32 z M 480,480L 224,480 l0-96 l 96,0 L 320,160 l 64,0 l0,96 l 96,0 L 480,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file, paper, page, new, empty, blank, document\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 451.716,99.715l-71.432-71.431C 364.728,12.728, 334,0, 312,0L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 368,0 c 22,0, 40-18, 40-40\n\tL 480,168 C 480,146, 467.272,115.271, 451.716,99.715z M 429.089,122.343c 1.565,1.565, 3.125,3.487, 4.64,5.657L 352,128 L 352,46.272 \n\tc 2.17,1.515, 4.092,3.075, 5.657,4.64L 429.089,122.343z M 448,472c0,4.336-3.664,8-8,8L 72,480 c-4.336,0-8-3.664-8-8L 64,40 c0-4.336, 3.664-8, 8-8\n\tl 240,0 c 2.416,0, 5.127,0.305, 8,0.852L 320,160 l 127.148,0 c 0.547,2.873, 0.852,5.583, 0.852,8L 448,472 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-remove, delete, remove, cancel, close, document, page, paper\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,32l 288,0 l0,96 l 96,0 l0,160 l 32,0 L 448,128 L 320,0L0,0 l0,512 l 288,0 l0-32 L 32,480 L 32,32 zM 461.256,416L 512,365.256L 512,320L 466.744,320L 416,370.744L 365.256,320L 320,320L 320,365.256L 370.744,416L 320,466.744L 320,512L 365.256,512L 416,461.256L 466.744,512L 512,512L 512,466.744 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-check, checkmark, correct, tick, page, document, paper\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,512L 256,400L 296.75,359.25L 352,414.875L 480,288L 512,320 \tzM 32,32l 288,0 l0,96 l 96,0 l0,160 l 32,0 L 448,128 L 320,0L0,0 l0,512 l 288,0 l0-32 L 32,480 L 32,32 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-upload, page, document, upload, paper\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,512l 96,0 L 288,352 l 80,0 L 240,224L 112,352l 80,0 L 192,512 z M 320,0L 32,0 l0,192 l 16,320l 16-320L 64,32 l 256,0 l0,96 l 96,0 l0,64 l 16,320l 16-320l0-64 L 320,0z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-download, page, document, download, paper\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288,224L 192,224L 192,384L 112,384L 240,512L 368,384L 288,384 \tzM 320,0L 32,0L 32,192L 48,512L 64,192L 64,32L 320,32L 320,128L 416,128L 416,192L 432,512L 448,192L 448,128 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-minus, minus, remove, delete, page, document, paper\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,384L 512,384L 512,448L 320,448zM 32,32L 320,32L 320,128L 416,128L 416,288L 448,288L 448,128L 320,0L0,0L0,512L 288,512L 288,480L 32,480 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-plus, plus, new, page, document, paper\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,384L 448,320L 384,320L 384,384L 320,384L 320,448L 384,448L 384,512L 448,512L 448,448L 512,448L 512,384 \tzM 32,32L 320,32L 320,128L 416,128L 416,288L 448,288L 448,128L 320,0L0,0L0,512L 288,512L 288,480L 32,480 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file, list, paper, page, document\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,0L 32,0 l0,512 l 448,0 L 480,128 L 352,0z M 448,480L 64,480 L 64,32 l 288,0 l0,96 l 96,0 L 448,480 zM 128,384L 384,384L 384,416L 128,416zM 128,320L 384,320L 384,352L 128,352zM 128,256L 384,256L 384,288L 128,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file, paper, page, new, empty, blank, document\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,0L 32,0 l0,512 l 448,0 L 480,128 L 352,0z M 448,480L 64,480 L 64,32 l 288,0 l0,96 l 96,0 L 448,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-remove, delete, remove, cancel, close, document, page, paper\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 451.716,99.715 C 465.462,113.461 476.993,139.051 479.492,160 L 320,160 L 320,0.508 C 340.949,3.007 366.538,14.538 380.284,28.284 L 451.716,99.715 ZM 288,192L 288,0 L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 368,0 c 22,0, 40-18, 40-40L 480,192 L 288,192 z M 352,289.941L 289.941,352L 352,414.059\n\tL 352,448 l-33.941,0 L 256,385.941L 193.941,448L 160,448 l0-33.941 L 222.059,352L 160,289.941L 160,256 l 33.941,0 L 256,318.059L 318.059,256L 352,256 L 352,289.941 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-check, checkmark, correct, tick, page, document, paper\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 451.716,99.715 C 465.462,113.461 476.993,139.051 479.492,160 L 320,160 L 320,0.508 C 340.949,3.007 366.538,14.538 380.284,28.284 L 451.716,99.715 ZM 288,192L 288,0 L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 368,0 c 22,0, 40-18, 40-40L 480,192 L 288,192 z M 215,459.255L 112.373,340.628\n\tl 29.254-29.255L 215,368.745l 137.372-121.372l 29.256,29.254L 215,459.255z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-upload, page, document, upload, paper\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 419.716,99.715 C 433.462,113.461 444.993,139.051 447.492,160 L 288,160 L 288,0.508 C 308.949,3.007 334.538,14.538 348.284,28.284 L 419.716,99.715 ZM 256,192L 256,0 L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 336,0 c 22,0, 40-18, 40-40L 448,192 L 256,192 z M 288,384l0,96 l-96,0 l0-96 l-80,0 l 128-128\n\tl 128,128L 288,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-download, page, document, download, paper\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 419.716,99.715 C 433.462,113.461 444.993,139.051 447.492,160 L 288,160 L 288,0.508 C 308.949,3.007 334.538,14.538 348.284,28.284 L 419.716,99.715 ZM 256,192L 256,0 L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 336,0 c 22,0, 40-18, 40-40L 448,192 L 256,192 z M 240,480L 112,352l 80,0 l0-96 l 96,0 l0,96 l 80,0 \n\tL 240,480z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-minus, minus, remove, delete, page, document, paper\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 451.716,99.715 C 465.462,113.461 476.993,139.051 479.492,160 L 320,160 L 320,0.508 C 340.949,3.007 366.538,14.538 380.284,28.284 L 451.716,99.715 ZM 288,192L 288,0 L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 368,0 c 22,0, 40-18, 40-40L 480,192 L 288,192 z M 352,384L 160,384 l0-64 l 192,0 L 352,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file-plus, plus, new, page, document, paper\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 451.716,99.715 C 465.462,113.461 476.993,139.051 479.492,160 L 320,160 L 320,0.508 C 340.949,3.007 366.538,14.538 380.284,28.284 L 451.716,99.715 ZM 288,192L 288,0 L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 368,0 c 22,0, 40-18, 40-40L 480,192 L 288,192 z M 352,384l-64,0 l0,64 l-64,0 l0-64 l-64,0 l0-64 l 64,0 \n\tl0-64 l 64,0 l0,64 l 64,0 L 352,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"files, pages, copy, duplicate, documents, papers\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 483.717,195.715 C 497.463,209.461 508.994,235.051 511.492,256 L 352,256 L 352,96.508 C 372.949,99.007 398.539,110.538 412.285,124.284 L 483.717,195.715 ZM 320,288 L 512,288 L 512,472 C 512,494 494,512 472,512 L 168,512 C 146,512 128,494 128,472 L 128,136 C 128,114 146,96 168,96 L 320,96 L 320,288 ZM 96,64 L 96,416 L 38,416 C 17.1,416 0,398.9 0,378 L 0,38 C 0,17.1 17.1,0 38,0 L 346,0 C 366.9,0 384,17.1 384,38 L 384,64 L 96,64 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file, list, paper, page, document\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 451.716,99.715c 13.746,13.746, 25.277,39.336, 27.776,60.285L 320,160 L 320,0.508 c 20.949,2.499, 46.538,14.030, 60.284,27.776\n\tL 451.716,99.715z M 288,192L 288,0 L 72,0 C 50,0, 32,18, 32,40l0,432 c0,22, 18,40, 40,40l 368,0 c 22,0, 40-18, 40-40L 480,192 L 288,192 z M 416,448L 96,448 l0-32 l 320,0 L 416,448 z\n\t M 416,384L 96,384 l0-32 l 320,0 L 416,384 z M 416,320L 96,320 l0-32 l 320,0 L 416,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file, paper, page, new, empty, blank, document\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 451.716,99.715 C 465.462,113.461 476.993,139.051 479.492,160 L 320,160 L 320,0.508 C 340.949,3.007 366.538,14.538 380.284,28.284 L 451.716,99.715 ZM 288,192 L 480,192 L 480,472 C 480,494 462,512 440,512 L 72,512 C 50,512 32,494 32,472 L 32,40 C 32,18 50,0 72,0 L 288,0 L 288,192 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file, list, paper, page, document\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 446.059,94.059l-60.117-60.118C 367.273,15.273, 330.4,0, 304,0L 80,0 C 53.6,0, 32,21.6, 32,48l0,416 c0,26.4, 21.6,48, 48,48l 352,0 \n\tc 26.4,0, 48-21.6, 48-48L 480,176 C 480,149.6, 464.727,112.727, 446.059,94.059z M 320,67.781c 1.098,0.402, 2.226,0.84, 3.379,1.318\n\tc 9.030,3.741, 15.299,8.088, 17.308,10.097l 60.118,60.119c 2.009,2.009, 6.356,8.277, 10.097,17.307c 0.478,1.153, 0.916,2.281, 1.318,3.378\n\tL 320,160 L 320,67.781 z M 416,448L 96,448 L 96,64 l 192,0 l0,128 l 128,0 L 416,448 zM 128,256L 384,256L 384,288L 128,288zM 128,320L 384,320L 384,352L 128,352zM 128,384L 384,384L 384,416L 128,416z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file, paper, page, new, empty, blank, document\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 446.059,94.059l-60.117-60.118C 367.273,15.273, 330.4,0, 304,0L 80,0 C 53.6,0, 32,21.6, 32,48l0,416 c0,26.4, 21.6,48, 48,48l 352,0 \n\tc 26.4,0, 48-21.6, 48-48L 480,176 C 480,149.6, 464.727,112.727, 446.059,94.059z M 320,67.781c 1.098,0.402, 2.226,0.84, 3.379,1.318\n\tc 9.030,3.741, 15.299,8.088, 17.308,10.097l 60.118,60.119c 2.009,2.009, 6.356,8.277, 10.097,17.307c 0.478,1.153, 0.916,2.281, 1.318,3.378\n\tL 320,160 L 320,67.781 z M 416,448L 96,448 L 96,64 l 192,0 l0,128 l 128,0 L 416,448 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file, paper, empty, blank, new, document\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 446.059,94.059l-60.117-60.118C 367.273,15.273, 330.4,0, 304,0L 80,0 C 53.6,0, 32,21.6, 32,48l0,416 c0,26.4, 21.6,48, 48,48l 352,0 \n\tc 26.4,0, 48-21.6, 48-48L 480,176 C 480,149.6, 464.727,112.727, 446.059,94.059z M 416,448L 96,448 L 96,64 l 208,0 c 2.479,0, 8.507,1.034, 16,3.781L 320,160 l 92.22,0 \n\tc 2.746,7.493, 3.78,13.521, 3.78,16L 416,448 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"profile, page, user, paper, file, document\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 432,0L 48,0 C 21.6,0,0,21.6,0,48l0,416 c0,26.4, 21.6,48, 48,48l 384,0 c 26.4,0, 48-21.6, 48-48L 480,48 C 480,21.6, 458.4,0, 432,0z M 416,448L 64,448 \n\t\tL 64,64 l 352,0 L 416,448 zM 128,288L 352,288L 352,320L 128,320zM 128,352L 352,352L 352,384L 128,384zM 160,144A48,48 4680 1 1 256,144A48,48 4680 1 1 160,144zM 240,192l-64,0 c-26.4,0-48,14.4-48,32l0,32 l 160,0 l0-32 C 288,206.4, 266.4,192, 240,192z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"file, list, paper, page, document\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 432,0L 48,0 C 21.6,0,0,21.6,0,48l0,416 c0,26.4, 21.6,48, 48,48l 384,0 c 26.4,0, 48-21.6, 48-48L 480,48 C 480,21.6, 458.4,0, 432,0z M 416,448L 64,448 \n\t\tL 64,64 l 352,0 L 416,448 zM 128,224L 352,224L 352,256L 128,256zM 128,288L 352,288L 352,320L 128,320zM 128,352L 352,352L 352,384L 128,384zM 128,160L 352,160L 352,192L 128,192z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"graduation, hat, education\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,293.666L 96,368 c0,32, 71.634,80, 160,80c 88.365,0, 160-48, 160-80l0-74.334 l-160,80L 96,293.666zM 256,64L0,192l 256,128l 207.714-103.857L 448,352l 32,0 L 480,208 l 32-16L 256,64z M 272,199.2c-12.813,0-23.2-10.387-23.2-23.2\n\t\tc0-12.813, 10.387-23.2, 23.2-23.2s 23.2,10.387, 23.2,23.2C 295.2,188.813, 284.814,199.2, 272,199.2z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"library, reading, building\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0L0,160l 512,0 L 256,0z M 400,192l 16,32l0,192 l 64,0 L 480,224 l 16-32L 400,192 z M 272,192l 16,32l0,192 l 64,0 L 352,224 l 16-32L 272,192 z M 144,192l 16,32l0,192 l 64,0 \n\tL 224,224 l 16-32L 144,192 z M 16,192l 16,32l0,192 l 64,0 L 96,224 l 16-32L 16,192 z M 16,448L0,512l 512,0 l-16-64L 16,448 z M 288,96c0,17.673-14.327,32-32,32\n\tc-17.673,0-32-14.327-32-32s 14.327-32, 32-32C 273.673,64, 288,78.327, 288,96z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"544\" height=\"512\" viewBox=\"0 0 544 512\" data-tags=\"library, reading, building\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 272,0L0,128L 544,128 \tzM 128.5,192L 128.5,160L 32.5,160L 32.5,192L 64.5,192L 64.5,384L 32.5,384L 32.5,416L 128.5,416L 128.5,384L 96.5,384L 96.5,192 \tzM 256.5,192L 256.5,160L 160.5,160L 160.5,192L 192.5,192L 192.5,384L 160.5,384L 160.5,416L 256.5,416L 256.5,384L 224.5,384L 224.5,192 \tzM 384.5,192L 384.5,160L 288.5,160L 288.5,192L 320.5,192L 320.5,384L 288.5,384L 288.5,416L 384.5,416L 384.5,384L 352.5,384L 352.5,192 \tzM 512.5,192L 512.5,160L 416.5,160L 416.5,192L 448.5,192L 448.5,384L 416.5,384L 416.5,416L 512.5,416L 512.5,384L 480.5,384L 480.5,192 \tzM 32.5,448L 0.5,512L 544,512L 512,448 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"reading, book, student, library\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 176,80A80,80 10800 1 1 336,80A80,80 10800 1 1 176,80zM 504.988,364.010l-128-160c-6.315-7.894-15.606-11.997-24.984-12.004L 352,192L 160,192 l-0.004,0.007\n\t\tc-9.378,0.007-18.669,4.11-24.984,12.002l-128,160c-8.402,10.502-9.34,25.138-2.348,36.627\n\t\tc 5.881,9.663, 16.314,15.365, 27.329,15.365c 2.082,0, 4.186-0.204, 6.282-0.623L 128,397.434L 128,512 l 256,0 L 384,397.434 l 89.725,17.945\n\t\tc 2.097,0.419, 4.199,0.623, 6.281,0.623c 11.015,0, 21.449-5.703, 27.329-15.365C 514.328,389.148, 513.39,374.512, 504.988,364.010z\n\t\t M 352,325.767l-25.725-5.146c-17.325-3.468-34.188,7.772-37.654,25.104c-3.466,17.33, 7.773,34.188, 25.104,37.654L 352,391.034L 352,416 \n\t\tl-96,32l-96-32l0-24.966 l 38.276-7.655c 17.33-3.466, 28.569-20.324, 25.103-37.654c-3.466-17.331-20.326-28.564-37.654-25.104\n\t\tL 160,325.767L 160,256 l 96,32l 96-32L 352,325.767 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"books, library, archive\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 288.117,144.635L 409.473,103.919L 511.265,407.311L 389.909,448.027zM0,448l 128,0 L 128,96 L0,96 L0,448 z M 32,160l 64,0 l0,32 L 32,192 L 32,160 zM 160,448l 128,0 L 288,96 L 160,96 L 160,448 z M 192,160l 64,0 l0,32 l-64,0 L 192,160 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"book, reading\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,64l0,416 L 112,480 c-26.511,0-48-21.49-48-48c0-26.509, 21.489-48, 48-48l 304,0 L 416,0 L 96,0 C 60.801,0, 32,28.8, 32,64l0,384 \n\t\tc0,35.2, 28.801,64, 64,64l 384,0 L 480,64 L 448,64 zM 128,416L 416,416L 416,448L 128,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"book, reading\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,64c-49.179,0-94.030,18.498-128,48.905C 222.031,82.498, 177.179,64, 128,64S 33.969,82.498,0,112.904l0,8.596 l0,38.49 l0,192.004 \n\tL0,392.5 l0,6.576 c 0.342,0.306, 0.676,0.62, 1.020,0.924c 8.209,7.244, 17.040,13.798, 26.406,19.569c 9.43-7.631, 19.739-14.216, 30.761-19.569\n\tc 21.098-10.248, 44.783-16, 69.813-16s 48.716,5.752, 69.813,16c 11.021,5.354, 21.331,11.938, 30.761,19.569\n\tc 1.842,1.491, 3.65,3.022, 5.424,4.592c 8.108,7.178, 15.488,15.159, 22.002,23.83c 6.515-8.671, 13.894-16.652, 22.002-23.83\n\tc 1.773-1.569, 3.581-3.101, 5.424-4.592c 9.43-7.631, 19.739-14.216, 30.761-19.569c 21.098-10.248, 44.783-16, 69.813-16\n\ts 48.716,5.752, 69.813,16c 11.021,5.354, 21.331,11.938, 30.761,19.569c 9.366-5.771, 18.196-12.325, 26.405-19.569\n\tc 0.344-0.304, 0.679-0.618, 1.021-0.924L 512,392.5 l0-40.506 L 512,159.99 L 512,121.5 l0-8.596 C 478.031,82.498, 433.179,64, 384,64z M 128,352\n\tc-34.976,0-67.758,9.365-96,25.705L 32,127.993 C 58.741,107.905, 91.98,96, 128,96c 36.025,0, 69.258,11.919, 96,32.013l0,249.692 \n\tC 195.758,361.365, 162.976,352, 128,352z M 384,352c-34.976,0-67.758,9.365-96,25.705L 288,128.013 C 314.742,107.919, 347.976,96, 384,96\n\tc 36.021,0, 69.259,11.906, 96,31.994l0,249.712 C 451.758,361.365, 418.976,352, 384,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mic, microphone, voice, audio, radio, interview\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 229.053,168.046L0,448c0,32, 32,64, 64,64l 279.954-229.054C 287.768,268.467, 243.533,224.232, 229.053,168.046zM 291.482,39.548C 269.502,62.531, 256,93.688, 256,128c0,70.692, 57.308,128, 128,128c 34.312,0, 65.469-13.502, 88.452-35.481\n\t\tC 380.441,204.127, 307.872,131.56, 291.482,39.548zM 416,64L 448,64L 448,96L 416,96zM 384,0c-23.014,0-44.606,6.078-63.268,16.71c 7.994,92.704, 81.854,166.564, 174.558,174.558\n\t\tC 505.922,172.607, 512,151.014, 512,128C 512,57.308, 454.693,0, 384,0z M 480,96l-32,0 l0,32 l 32,0 l0,32 l-32,0 l0-32 l-32,0 L 416,96 l-32,0 L 384,64 l-32,0 L 352,32 l 32,0 l0,32 l 32,0 L 416,32 \n\t\tl 32,0 l0,32 l 32,0 L 480,96 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mic, microphone, mute, off, voice, record\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,80c0-44.183-35.816-80-80-80c-44.183,0-80,35.817-80,80l0,172.118 l 160-160L 320,80 zM 128.587,283.531C 128.2,279.74, 128,275.894, 128,272l0-48 L 96,224 l0,48 c0,13.45, 1.853,26.467, 5.302,38.816L 128.587,283.531zM 352,272c0,61.855-50.145,112-112,112c-33.313,0-63.215-14.557-83.729-37.644l 22.69-22.69\n\t\tC 193.629,340.99, 215.52,352, 240,352c 44.184,0, 80-35.816, 80-80l0-89.373 L 448.313,54.313l-22.627-22.627L 320,137.373l0-0.001 L 1,457.687\n\t\tl 22.627,22.627l 109.986-111.3c 22.954,25.155, 54.699,42.151, 90.387,46.097L 224,480 l-64,0 l0,32 l 64,0 l 32,0 l 64,0 l0-32 l-64,0 l0-64.89 \n\t\tc 71.997-7.96, 128-68.991, 128-143.11l0-48 l-32,0 L 352,272 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mic, microphone, voice, audio, radio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 240,352c 44.183,0, 80-35.817, 80-80L 320,80 c0-44.183-35.817-80-80-80s-80,35.817-80,80l0,192 C 160,316.183, 195.818,352, 240,352zM 352,224l0,48 c0,61.855-50.145,112-112,112c-61.856,0-112-50.145-112-112l0-48 L 96,224 l0,48 c0,74.119, 56.002,135.15, 128,143.11L 224,480 \n\t\tl-64,0 l0,32 l 64,0 l 32,0 l 64,0 l0-32 l-64,0 l0-64.89 c 71.997-7.96, 128-68.991, 128-143.11l0-48 L 352,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mic, microphone, voice, audio, radio, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 420,224l0,64 c0,43.807-17.059,84.99-48.035,115.966C 340.99,434.941, 299.807,452, 256,452\n\t\tc-43.806,0-84.99-17.059-115.965-48.034C 109.060,372.99, 92,331.807, 92,288l0-64 L 64,224 l0,64 c0,95.135, 69.195,174.094, 160,189.33L 224,480 l-96,0 l0,32 \n\t\tl 256,0 l0-32 l-96,0 l0-2.67 c 90.804-15.236, 160-94.195, 160-189.33l0-64 L 420,224 zM 256,0c-70.692,0-128,57.308-128,128l0,160 c0,70.693, 57.308,128, 128,128c 70.692,0, 128-57.307, 128-128L 384,128 \n\t\tC 384,57.308, 326.692,0, 256,0z M 348,79.548c 3.314,6.269, 6.012,12.912, 8,19.852L 356,192 l-8,0 L 348,79.548 z M 332,57.088\n\t\tc 2.854,3.057, 5.526,6.286, 8,9.669L 340,192 l-8,0 L 332,57.088 z M 316,43.099c 2.77,1.962, 5.439,4.056, 8,6.273L 324,192 l-8,0 L 316,43.099 z M 300,33.781\n\t\tc 2.732,1.281, 5.402,2.674, 8,4.18L 308,192 l-8,0 L 300,33.781 z M 284,27.833c 2.713,0.759, 5.381,1.625, 8,2.594L 292,192 l-8,0 L 284,27.833 z M 268,24.696\n\t\tc 2.699,0.312, 5.367,0.726, 8,1.241L 276,192 l-8,0 L 268,24.696 z M 252,24.084c 1.328-0.051, 2.66-0.084, 4-0.084s 2.672,0.034, 4,0.084L 260,192 l-8,0 L 252,24.084 z\n\t\t M 236,25.938c 2.633-0.515, 5.301-0.93, 8-1.241L 244,192 l-8,0 L 236,25.938 z M 220,30.427c 2.619-0.969, 5.287-1.834, 8-2.594L 228,192 l-8,0 L 220,30.427 z\n\t\t M 204,37.961c 2.597-1.506, 5.268-2.898, 8-4.18L 212,192 l-8,0 L 204,37.961 z M 188,49.372c 2.561-2.217, 5.231-4.311, 8-6.273L 196,192 l-8,0 L 188,49.372 z\n\t\t M 172,66.757c 2.474-3.383, 5.146-6.612, 8-9.669L 180,192 l-8,0 L 172,66.757 z M 156,99.4c 1.988-6.94, 4.686-13.583, 8-19.852L 164,192 l-8,0 L 156,99.4 z M 360,288\n\t\tc0,57.346-46.654,104-104,104s-104-46.654-104-104l0-64 l 208,0 L 360,288 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"mic, microphone, voice, audio, radio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,384c 70.692,0, 128-57.308, 128-128l0-64 L 128,192 l0,64 C 128,326.692, 185.308,384, 256,384zM 448,160l-32,0 l0,96 c0,88.365-71.635,160-160,160S 96,344.365, 96,256l0-96 L 64,160 l-32,32l 32,0 l0,64 c0,95.134, 69.196,174.094, 160,189.33\n\t\tL 224,480 l-64,32l 192,0 l-64-32l0-34.67 c 90.804-15.236, 160-94.196, 160-189.33l0-64 l 32,0 L 448,160zM 384,128C 384,57.308, 326.693,0, 256,0S 128,57.308, 128,128l0,32 l 256,0 L 384,128 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"podcast, broadcast, live, wave, radio, feed\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,512l 192,0 l-64-64L 288,215.417 c 19.124-11.067, 32-31.732, 32-55.417c0-35.346-28.653-64-64-64c-35.346,0-64,28.654-64,64\n\t\tc0,23.685, 12.876,44.349, 32,55.417L 224,448 L 160,512zM 355.918,80.004C 373.486,101.918, 384,129.729, 384,160s-10.515,58.082-28.082,79.996l 24.979,19.999\n\t\tC 402.857,232.603, 416,197.839, 416,160s-13.144-72.603-35.103-99.995L 355.918,80.004zM 131.102,60.006C 109.143,87.398, 96,122.162, 96,160s 13.143,72.602, 35.102,99.994l 24.979-19.999\n\t\tC 138.515,218.082, 128,190.271, 128,160s 10.515-58.082, 28.082-79.995L 131.102,60.006zM 56.164,0C 21.030,43.828,0,99.449,0,159.991S 21.030,276.154, 56.164,319.98l 24.979-19.998\n\t\tC 50.401,261.633, 32,212.965, 32,159.991s 18.4-101.643, 49.143-139.992L 56.164,0zM 455.836,0l-24.979,19.999C 461.6,58.348, 480,107.017, 480,159.991s-18.4,101.644-49.144,139.992l 24.979,19.999\n\t\tC 490.971,276.154, 512,220.533, 512,159.991S 490.971,43.828, 455.836,0z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"podcast, broadcast, live, wave, radio, feed\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256c0,70.691, 28.653,134.691, 74.98,181.019l 22.627-22.626C 57.072,373.855, 32,317.855, 32,256\n\t\t\tC 32,132.288, 132.288,32, 256,32s 224,100.288, 224,224c0,61.855-25.072,117.855-65.608,158.393l 22.628,22.626\n\t\t\tC 483.346,390.691, 512,326.691, 512,256C 512,114.615, 397.385,0, 256,0zM 256,0C 114.615,0,0,114.615,0,256c0,70.691, 28.653,134.691, 74.98,181.019l 22.627-22.626C 57.072,373.855, 32,317.855, 32,256\n\t\t\tC 32,132.288, 132.288,32, 256,32s 224,100.288, 224,224c0,61.855-25.072,117.855-65.608,158.393l 22.628,22.626\n\t\t\tC 483.346,390.691, 512,326.691, 512,256C 512,114.615, 397.385,0, 256,0L 256,0zM 256,96c-88.366,0-160,71.634-160,160c0,44.184, 17.909,84.184, 46.862,113.137l 22.639-22.638\n\t\t\tc-23.161-23.161-37.486-55.157-37.486-90.499c0-70.684, 57.301-127.985, 127.985-127.985c 70.684,0, 127.984,57.301, 127.984,127.985\n\t\t\tc0,35.342-14.325,67.338-37.486,90.499l 22.639,22.638C 398.092,340.184, 416,300.184, 416,256C 416,167.634, 344.365,96, 256,96zM 301.255,301.255C 312.837,289.673, 320,273.673, 320,256c0-35.346-28.654-64-64-64c-35.347,0-64,28.654-64,64\n\t\tc0,17.673, 7.164,33.673, 18.745,45.255l 22.627-22.627C 227.582,272.837, 224,264.837, 224,256c0-17.673, 14.327-32, 32-32\n\t\ts 32,14.327, 32,32c0,8.837-3.582,16.837-9.372,22.628L 301.255,301.255zM 244,288L 160,512L 352,512L 268,288 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"radio, podcast, broadcast, live, wave\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,192L 96,512l 48.596,0 L 256,414.521L 367.406,512L 416,512 L 288,192L 224,192 z M 149.024,465.605l 42.871-107.179l 39.81,34.833\n\t\t\tL 149.024,465.605z M 362.978,465.604l-82.68-72.344l 39.809-34.833L 362.978,465.604z M 256,372l-51.507-45.068L 245.665,224l 20.67,0 \n\t\t\tl 41.173,102.932L 256,372zM 366.871,64.001C 377.764,82.828, 384,104.686, 384,128s-6.236,45.172-17.129,63.999l 27.72,16\n\t\t\tC 408.204,184.465, 416,157.144, 416,128s-7.796-56.465-21.409-79.999L 366.871,64.001zM 145.128,191.999C 134.238,173.172, 128,151.314, 128,128s 6.236-45.172, 17.128-63.999L 117.41,48.002\n\t\t\tC 103.796,71.536, 96,98.856, 96,128s 7.796,56.464, 21.41,79.999L 145.128,191.999zM 34.252,0C 12.47,37.655,0,81.371,0,128s 12.47,90.345, 34.252,127.999l 27.719-16C 42.911,207.052, 32,168.801, 32,128\n\t\t\tS 42.911,48.948, 61.971,16L 34.252,0zM 512,128c0-46.63-12.47-90.346-34.253-128l0,0L 450.030,16C 469.090,48.948, 480,87.199, 480,128s-10.91,79.053-29.971,112\n\t\t\tl 27.718,16l0,0C 499.531,218.346, 512,174.63, 512,128zM 224,128A32,32 12600 1 1 288,128A32,32 12600 1 1 224,128z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"connection, broadcast, wifi, wave, feed\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,384A32,32 12600 1 1 288,384A32,32 12600 1 1 224,384zM 256,64c-96.026,0-182.161,42.307-240.815,109.286l 24.081,21.071C 92.055,134.077, 169.577,96, 256,96\n\t\tc 86.423,0, 163.945,38.077, 216.734,98.357l 24.081-21.071C 438.161,106.307, 352.027,64, 256,64zM 256,160c-67.218,0-127.513,29.615-168.571,76.5l 24.082,21.071C 146.703,217.384, 198.385,192, 256,192\n\t\tc 57.616,0, 109.297,25.384, 144.489,65.571l 24.082-21.071C 383.513,189.615, 323.219,160, 256,160zM 256,256c-38.41,0-72.865,16.923-96.326,43.715l 24.082,21.071C 201.352,300.692, 227.192,288, 256,288\n\t\tc 28.808,0, 54.648,12.692, 72.245,32.786l 24.081-21.071C 328.865,272.923, 294.41,256, 256,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"feed, wave, radio, live, broadcast\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,256A64,64 2520 1 1 320,256A64,64 2520 1 1 192,256zM 332.174,115.263 C 382.1,142.342 416,195.212 416,256 C 416,316.788 382.1,369.658 332.174,396.737 C 354.207,361.674 368,311.602 368,256 C 368,200.398 354.207,150.326 332.174,115.263 ZM 144,256 C 144,311.602 157.792,361.674 179.826,396.737 C 129.9,369.657 96,316.788 96,256 C 96,195.212 129.9,142.343 179.826,115.263 C 157.792,150.326 144,200.398 144,256 ZM 48,256 C 48,341.95 75.202,419.092 118.326,471.861 C 47.175,426.387 0,346.704 0,256 C 0,165.296 47.175,85.613 118.326,40.139 C 75.202,92.908 48,170.050 48,256 ZM 393.676,40.14 C 464.825,85.613 512,165.296 512,256 C 512,346.704 464.825,426.387 393.676,471.86 C 436.798,419.092 464,341.95 464,256 C 464,170.050 436.798,92.908 393.676,40.14 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"radio, podcast, broadcast, live, wave\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,160c0-35.346-28.653-64-64-64c-35.346,0-64,28.654-64,64c0,22.677, 11.804,42.583, 29.592,53.952L 140.306,512l 39.388,0 \n\t\tl 8.727-32l 135.158,0 l 8.728,32l 39.388,0 l-81.286-298.048C 308.196,202.583, 320,182.677, 320,160z M 297.397,384l-82.794,0 l 8.727-32l 65.34,0 \n\t\tL 297.397,384z M 232.058,320L 256,232.211L 279.942,320L 232.058,320 z M 197.148,448l 8.728-32l 100.249,0 l 8.727,32L 197.148,448 zM 332.174,19.263 C 382.1,46.342 416,99.212 416,160 C 416,220.788 382.1,273.658 332.174,300.737 C 354.207,265.674 368,215.602 368,160 C 368,104.398 354.207,54.326 332.174,19.263 ZM 428.174,19.263 C 478.1,46.342 512,99.212 512,160 C 512,220.788 478.1,273.658 428.174,300.737 C 450.207,265.674 464,215.602 464,160 C 464,104.398 450.207,54.326 428.174,19.263 ZM 179.826,300.737 C 129.9,273.657 96,220.788 96,160 C 96,99.212 129.9,46.343 179.826,19.263 C 157.792,54.326 144,104.398 144,160 C 144,215.602 157.792,265.674 179.826,300.737 ZM 0,160 C 0,99.212 33.9,46.343 83.826,19.263 C 61.792,54.326 48,104.398 48,160 C 48,215.602 61.792,265.674 83.826,300.737 C 33.9,273.657 0,220.788 0,160 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"podcast, broadcast, live, wave, radio, feed\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,256C 512,114.615, 397.385,0, 256,0S0,114.615,0,256c0,110.027, 69.418,203.832, 166.843,240.034L 160,512l 192,0 l-6.843-15.966\n\tC 442.582,459.832, 512,366.027, 512,256z M 243.395,317.413C 231.991,312.519, 224,301.195, 224,288c0-17.673, 14.327-32, 32-32\n\tc 17.673,0, 32,14.327, 32,32c0,13.195-7.989,24.522-19.393,29.417L 256,288L 243.395,317.413z M 269.134,318.646\n\tC 298.18,312.587, 320,286.845, 320,256c0-35.347-28.653-64-64-64c-35.346,0-64,28.653-64,64c0,30.846, 21.831,56.561, 50.88,62.614\n\tl-37.312,87.061C 159.953,386.1, 128,340.783, 128,288c0-70.692, 57.308-134, 128-134s 128,63.308, 128,134\n\tc0,52.783-31.953,98.1-77.568,117.675L 269.134,318.646z M 344.224,493.854l-36.962-86.243C 370.485,386.242, 416,326.438, 416,256\n\tc0-88.365-71.634-160-160-160c-88.365,0-160,71.635-160,160c0,70.438, 45.515,130.242, 108.738,151.611l-36.962,86.243\n\tC 87.979,459.61, 32.083,380.337, 32.083,288C 32.083,164.334, 132.334,58.083, 256,58.083c 123.666,0, 223.917,106.251, 223.917,229.917\n\tC 479.917,380.337, 424.021,459.61, 344.224,493.854z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"640\" height=\"512\" viewBox=\"0 0 640 512\" data-tags=\"connection, broadcast, wifi, wave, feed\" style=\"margin-left: 7px; margin-top: 9px;\"><path d=\"M 288,448A32,32 2520 1 1 352,448A32,32 2520 1 1 288,448zM 320,96c 112.8,0, 216.385,34.658, 297.72,92.509C 546.826,92.902, 439.777,32, 320,32C 200.223,32, 93.175,92.902, 22.281,188.508\n\tC 103.616,130.658, 207.2,96, 320,96zM 320,224c 76.853,0, 147.895,20.56, 205.514,55.385C 479.462,207.064, 404.574,160, 320,160s-159.462,47.064-205.514,119.385\n\tC 172.105,244.56, 243.146,224, 320,224zM 320,352c 40.751,0, 79.405,5.262, 114.121,14.676C 411.059,319.587, 368.588,288, 320,288s-91.059,31.587-114.121,78.676\n\tC 240.595,357.262, 279.248,352, 320,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"640\" height=\"512\" viewBox=\"0 0 640 512\" data-tags=\"connection, broadcast, wifi, wave, feed\" style=\"margin-left: 7px; margin-top: 9px;\"><path d=\"M 320,288 C 372.935,288 420.935,309.533 455.701,344.299 L 410.467,389.533 C 387.29,366.355 355.289,352 320,352 C 284.711,352 252.711,366.355 229.533,389.533 L 184.299,344.299 C 219.065,309.533 267.065,288 320,288 ZM 93.726,253.726 C 154.166,193.286 234.525,160 320,160 C 405.475,160 485.834,193.286 546.275,253.726 L 501.020,298.98 L 501.020,298.98 C 452.667,250.628 388.38,224 320,224 C 251.619,224 187.333,250.628 138.981,298.981 L 93.726,253.726 ZM 494.392,67.219 C 547.743,89.785 595.65,122.083 636.783,163.217 L 636.783,163.217 L 591.529,208.471 C 519.001,135.943 422.569,96 320,96 C 217.43,96 121,135.943 48.471,208.471 L 3.216,163.216 C 44.35,122.083 92.257,89.785 145.608,67.219 C 200.86,43.85 259.534,32 320,32 C 380.466,32 439.139,43.85 494.392,67.219 ZM 288,448A32,32 2520 1 1 352,448A32,32 2520 1 1 288,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"new, advertisement\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,96L 64,96 c-35.2,0-64,28.8-64,64l0,192 c0,35.2, 28.8,64, 64,64l 384,0 c 35.2,0, 64-28.8, 64-64L 512,160 C 512,124.8, 483.2,96, 448,96z\n\t M 160,352l-32,0 L 64,245.333L 64,352 L 32,352 L 32,192 l 32,0 l 64,106.667L 128,192 l 32,0 L 160,352 z M 288,224l-64,0 l0,32 l 64,0 l0,32 l-64,0 l0,32 l 64,0 l0,31.999 L 192,352L 192,192 l 96,0 L 288,224 z\n\t M 480,352l-47.999,0 L 400,288l-32,64l-48,0 L 320,192 l 32,0 l0,128 l 32-64l 32.001,0 L 448,319.998L 448,192 l 32,0 L 480,352 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"megaphone, bullhorn, announcement, advertisement, news\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,192L0,192 l0,160 l 64,0 l0-32 l 64.009,18.289c-0.002,0.242-0.009,0.484-0.009,0.729L 128,384 c0,17.602, 14.399,32, 32,32l 64,0 \n\t\tc 17.6,0, 32-14.398, 32-32l0-9.143 l 160,45.715L 416,123.43 L 64,224L 64,192 z M 160,347.43l 63.928,18.265L 223.928,384 L 160,384 L 160,347.43 zM 448,114.286L 448,429.715L 512,448L 512,96 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bullhorn, megaphone, announcement, advertisement, news\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,214.628c0-100.463-29.396-181.969-65.741-182.613c 0.146-0.003, 0.289-0.015, 0.436-0.015l-41.471,0 \n\tc0,0-97.4,73.168-237.615,101.877c-4.28,22.646-7.015,49.637-7.015,80.751c0,31.114, 2.733,58.104, 7.015,80.75\n\tc 140.214,28.709, 237.615,101.878, 237.615,101.878l 41.471,0 c-0.146,0-0.289-0.012-0.436-0.016C 482.607,396.596, 512,315.091, 512,214.628\n\tz M 432.412,369.626c-4.691,0-9.766-4.871-12.373-7.774c-6.315-7.032-12.396-17.98-17.594-31.664\n\tc-11.628-30.616-18.033-71.655-18.033-115.562c0-43.905, 6.405-84.945, 18.033-115.561c 5.197-13.684, 11.281-24.633, 17.594-31.664\n\tc 2.607-2.906, 7.682-7.776, 12.373-7.776c 4.69,0, 9.768,4.872, 12.372,7.776c 6.317,7.032, 12.398,17.979, 17.594,31.664\n\tc 11.629,30.615, 18.034,71.656, 18.034,115.561c0,43.902-6.405,84.944-18.034,115.562c-5.195,13.684-11.281,24.632-17.594,31.664\n\tC 442.18,364.755, 437.104,369.626, 432.412,369.626z M 125.906,214.628c0-25.975, 1.905-51.215, 5.526-74.547\n\tc-23.686,3.277-44.471,5.162-70.17,5.162c-33.529,0-33.529,0-33.529,0L0,192.586l0,44.085 l 27.73,47.343c0,0,0,0, 33.53,0\n\tc 25.699,0, 46.484,1.887, 70.17,5.162C 127.812,265.844, 125.906,240.603, 125.906,214.628z M 184.075,321.086l-63.999-12.255\n\tl 40.921,160.772c 2.118,8.317, 10.372,12.519, 18.343,9.327l 59.278-23.726c 7.972-3.188, 11.164-11.982, 7.098-19.542L 184.075,321.086zM 432.412,274.365c-1.809,0-3.764-1.877-4.769-2.996c-2.435-2.71-4.778-6.93-6.781-12.204\n\tc-4.481-11.8-6.95-27.617-6.95-44.539c0-16.922, 2.469-32.739, 6.95-44.539c 2.003-5.274, 4.348-9.494, 6.781-12.204\n\tc 1.005-1.12, 2.96-2.997, 4.769-2.997c 1.808,0, 3.765,1.878, 4.769,2.997c 2.435,2.71, 4.778,6.929, 6.78,12.204\n\tc 4.482,11.799, 6.951,27.617, 6.951,44.539c0,16.921-2.469,32.739-6.951,44.539c-2.002,5.274-4.348,9.494-6.78,12.204\n\tC 436.177,272.488, 434.221,274.365, 432.412,274.365z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"chess, grid, game\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,0L 512,0L 512,64L 448,64zM 448,128L 512,128L 512,192L 448,192zM 448,256L 512,256L 512,320L 448,320zM 448,384L 512,384L 512,448L 448,448zM 384,64L 448,64L 448,128L 384,128zM 384,192L 448,192L 448,256L 384,256zM 384,320L 448,320L 448,384L 384,384zM 384,448L 448,448L 448,512L 384,512zM 320,0L 384,0L 384,64L 320,64zM 320,128L 384,128L 384,192L 320,192zM 320,256L 384,256L 384,320L 320,320zM 320,384L 384,384L 384,448L 320,448zM 256,64L 320,64L 320,128L 256,128zM 256,192L 320,192L 320,256L 256,256zM 256,320L 320,320L 320,384L 256,384zM 256,448L 320,448L 320,512L 256,512zM 192,0L 256,0L 256,64L 192,64zM 192,128L 256,128L 256,192L 192,192zM 192,256L 256,256L 256,320L 192,320zM 192,384L 256,384L 256,448L 192,448zM 128,64L 192,64L 192,128L 128,128zM 128,192L 192,192L 192,256L 128,256zM 128,320L 192,320L 192,384L 128,384zM 128,448L 192,448L 192,512L 128,512zM 64,0L 128,0L 128,64L 64,64zM 64,128L 128,128L 128,192L 64,192zM 64,256L 128,256L 128,320L 64,320zM 64,384L 128,384L 128,448L 64,448zM0,64L 64,64L 64,128L0,128zM0,192L 64,192L 64,256L0,256zM0,320L 64,320L 64,384L0,384zM0,448L 64,448L 64,512L0,512z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pawn, chess, game\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 368.010,317.98C 378.193,299.615, 384,278.487, 384,256c0-51.657-30.604-96.162-74.667-116.386\n\tC 325.695,124.965, 336,103.689, 336,80c0-44.183-35.817-80-80-80c-44.183,0-80,35.817-80,80c0,23.69, 10.305,44.965, 26.667,59.614\n\tC 158.604,159.838, 128,204.343, 128,256c0,22.487, 5.806,43.615, 15.99,61.98C 77.044,356.713, 32,429.094, 32,512l 448,0 \n\tC 480,429.094, 434.956,356.713, 368.010,317.98z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"knight, chess, game\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 496,480L 128,480L 112,512L 512,512 \tzM 283.746,256c 6.724,103.949-84.766,144.757-116.334,208L 480,464 c0-35.797,0-92.966,0-176\n\t\tc0-111.17-43.536-191.427-94.956-230.070c-2.373-10.093-5.959-21.243-9.954-30.304l-6.18-14.013\n\t\tc-7.102-16.104-22.144-18.229-33.426-4.722l-19.313,23.118C 316.030,32.008, 315.888,32, 315.746,32\n\t\tc-8.234,0-15.821,0.257-22.854,0.745L 250.626,4.567C 235.981-5.196, 224,1.216, 224,18.816l0,32.592 \n\t\tc-12.982,7.351-23.863,16.243-36.254,25.691c-32,24.399-108.926,121.066-160,178.901c-47.246,53.5-21.725,96, 23,86\n\t\tc-2.246,42, 32.754,28.5, 57,10C 163.653,309.343, 288.5,329.5, 283.746,256z M 387.463,86.538c 17.253,17.466, 32.154,39.811, 43.73,65.751\n\t\tC 448.981,192.146, 458,237.806, 458,288l0,144 l-48-48l0-96 c0-43.411-7.617-82.489-22.64-116.149\n\t\tc-9.204-20.625-20.739-38.084-33.835-51.375L 387.463,86.538z M 80,294.628c-12.497,0-22.628-10.13-22.628-22.628\n\t\tc0-12.497, 10.131-22.627, 22.628-22.627c 12.496,0, 22.627,10.13, 22.627,22.627C 102.627,284.498, 92.496,294.628, 80,294.628z\n\t\t M 240.971,143.971c-18.746,18.745-41.539,26.343-50.912,16.971c-9.373-9.373-1.775-32.167, 16.97-50.912\n\t\tc 18.745-18.745, 41.539-26.343, 50.913-16.97C 267.312,102.432, 259.716,125.226, 240.971,143.971z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"bishop, chess, game\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 396.797,384L 83.204,384 c 14.825,36.516, 79.39,64, 156.796,64S 381.972,420.516, 396.797,384zM0,512l 45,0 c0-1.29, 1.402-5.613, 5.57-10.059S 58.791,496, 60,496l 135,0 c 26.719-0.5, 45-31.5, 45-48c0,0-150,0-180,0S0,480,0,512zM 420,448c-30,0-180,0-180,0c0,16.5, 18.281,47.5, 45,48l 135,0 c 1.209,0, 5.263,1.496, 9.43,5.941\n\t\tc 4.168,4.445, 5.57,8.769, 5.57,10.059l 45,0 C 480,480, 450,448, 420,448zM 240,352l 156.797,0 c-6.501-16.013-22.567-30.287-45.086-41.271C 362.080,296.723, 368,278.706, 368,256\n\t\tc0-80.469-58.467-132.785-99.354-151.882C 285.024,94.347, 296,76.458, 296,56c0-30.928-25.072-56-56-56c-30.928,0-56,25.072-56,56\n\t\tc0,20.458, 10.976,38.347, 27.354,48.118C 170.467,123.215, 112,175.531, 112,256c0,22.706, 5.92,40.723, 16.289,54.729\n\t\tC 105.771,321.713, 89.704,335.988, 83.204,352L 240,352 C 240,352, 240,352, 240,352z M 160,224l0-32 l 64,0 l0-64 l 32,0 l0,64 l 64,0 l0,32 l-64,0 l0,64 l-32,0 l0-64 L 160,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"rock, chess, game\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,144L 384,144L 384,400L 96,400zM 384,128l 64-64L 448,0 l-64,0 l0,32 l-96,0 L 288,0 l-96,0 l0,32 L 96,32 L 96,0 L 32,0 l0,64 l 64,64L 384,128 z M 384,80l-16,16L 112,96 L 96,80L 384,80 zM 64,416L 416,416L 416,448L 64,448zM 448,464L 32,464 c0,0-24.5,16-32,48l 480,0 C 472.5,480, 448,464, 448,464z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"queen, chess, game, crown\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,480c-57.294,0-112.881-4.967-156.521-13.984c-1.169-0.241-2.328-0.487-3.479-0.734l0,32.676 \n\t\tC 139.829,506.742, 195.454,512, 256,512s 116.171-5.258, 160-14.043l0-32.676 c-1.151,0.247-2.31,0.493-3.479,0.734\n\t\tC 368.882,475.033, 313.295,480, 256,480zM 384,430.997L 384,416 l-16-32L 144,384 l-16,32l0,14.997 c 37.655,5.446, 81.37,8.564, 128,8.564\n\t\tC 302.631,439.562, 346.345,436.443, 384,430.997zM 500.754,140.828c-14.997-14.997-39.311-14.997-54.307,0c-12.725,12.724-14.646,32.154-5.776,46.911l-97.661,58.597\n\t\tl 19.253-90.858c 16.84,3.581, 34.585-4.562, 42.474-20.735c 9.297-19.062, 1.381-42.050-17.68-51.347\n\t\tc-19.062-9.297-42.051-1.381-51.348,17.681c-7.889,16.174-3.38,35.171, 9.811,46.236l-59.104,70.348l-21.101-84.403\n\t\tc 16.705-4.163, 29.085-19.261, 29.085-37.256c0-21.208-17.192-38.4-38.399-38.4c-21.208,0-38.4,17.192-38.4,38.4\n\t\tc0,17.995, 12.38,33.093, 29.086,37.256l-21.101,84.403l-59.104-70.348c 13.19-11.065, 17.699-30.062, 9.811-46.236\n\t\tc-9.297-19.062-32.286-26.978-51.348-17.681c-19.061,9.297-26.977,32.286-17.68,51.347c 7.888,16.174, 25.634,24.316, 42.474,20.735\n\t\tl 19.252,90.858l-97.66-58.597c 8.87-14.757, 6.947-34.187-5.777-46.911c-14.996-14.997-39.31-14.997-54.307,0\n\t\tc-14.995,14.996-14.995,39.309, 0.001,54.306c 12.724,12.724, 32.154,14.646, 46.91,5.777L 148.811,352l 214.378,0 l 90.653-151.089\n\t\tc 14.756,8.869, 34.186,6.947, 46.91-5.777C 515.749,180.137, 515.749,155.823, 500.754,140.828z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"king, chess, game, crwon\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 487.024,132.75c-16.872-16.872-40.057-24.976-65.75-24.976c-34.444,0-73.404,14.558-107.766,42.062\n\t\tc-8.132-24.908-23.24-43.758-41.509-50.811L 271.999,64 l 48,0 L 319.999,32 l-48,0 L 271.999,0 l-32,0 l0,32 l-48,0 l0,32 l 48,0 l0,35.024 c-18.268,7.053-33.376,25.902-41.508,50.809\n\t\tc-34.361-27.503-73.321-42.062-107.765-42.060c-25.693,0.002-48.879,8.104-65.75,24.976\n\t\tc-43.739,43.739-28.542,129.85, 33.941,192.333C 70.596,336.761, 83.103,346.776, 96,355.075l0,46.882 \n\t\tC 139.829,410.742, 195.454,416, 256,416s 116.171-5.258, 160-14.043l0-46.88 c 12.897-8.298, 25.404-18.314, 37.083-29.993\n\t\tC 515.566,262.6, 530.763,176.488, 487.024,132.75z M 81.546,189.322c 0.539-0.36, 3.423-1.548, 9.181-1.549l 0.006,0 l 0.002,0 \n\t\tc 15.925,0, 43.814,9.293, 70.005,35.484c 17.287,17.287, 29.66,38.181, 33.948,57.326c 3.059,13.66, 0.767,20.748-0.007,21.868\n\t\tc-0.536,0.359-3.416,1.549-9.18,1.549c-15.928,0-43.822-9.294-70.015-35.486c-17.288-17.289-29.662-38.185-33.948-57.33\n\t\tC 78.48,197.528, 80.772,190.443, 81.546,189.322z M 430.461,211.19c-4.287,19.145-16.66,40.039-33.946,57.324\n\t\tC 370.322,294.707, 342.429,304, 326.5,304c-5.762,0-8.644-1.188-9.18-1.548c-0.773-1.119-3.066-8.204-0.009-21.862\n\t\tc 4.286-19.146, 16.66-40.041, 33.948-57.33c 26.192-26.192, 54.087-35.486, 70.015-35.486c 5.764,0, 8.645,1.188, 9.18,1.548\n\t\tC 431.228,190.442, 433.521,197.53, 430.461,211.19zM 96,450.832l0,47.125 C 139.829,506.742, 195.454,512, 256,512s 116.171-5.258, 160-14.043l0-47.125 \n\t\tC 369.086,459.457, 314.020,464, 256,464S 142.914,459.457, 96,450.832z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"diamonds, bet, game, gamble, cards\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0L 96,256L 256,512L 416,256 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"clubs, bet, game, gamble, cards\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 393.416,196.386c-29.516,0-56.043,12.298-74.926,32.347c-7.998,8.492-21.881,18.556-36.9,27.405\n\tc 7.055-26.934, 29.338-60.85, 44.814-75.728c 19.82-19.085, 31.992-45.915, 31.992-75.75C 358.399,47.213, 312.658,0.612, 256.002,0\n\tc-56.66,0.611-102.398,47.213-102.398,104.659c0,29.836, 12.172,56.665, 31.993,75.75c 15.477,14.878, 37.76,48.794, 44.814,75.728\n\tc-15.021-8.85-28.903-18.913-36.9-27.405c-18.884-20.049-45.41-32.347-74.925-32.347c-57.193,0-103.54,46.832-103.54,104.664\n\tc0,57.819, 46.346,104.669, 103.54,104.669c 29.521,0, 56.041-12.678, 74.925-32.726c 8.402-8.936, 23.222-20.069, 39.146-29.316\n\tc-1.501,73.846-36.766,128.084-72.659,149.453L 159.998,512 l 96.005,0 l 96.002,0 l0-18.87 c-35.896-21.368-71.16-75.608-72.66-149.453\n\tc 15.926,9.247, 30.744,20.384, 39.146,29.316c 18.883,20.047, 45.404,32.726, 74.926,32.726c 57.193,0, 103.539-46.85, 103.539-104.669\n\tC 496.955,243.218, 450.61,196.386, 393.416,196.386z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"spades, bet, game, gamble, cards\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 408.785,174.075C 312.002,102.146, 278.652,44.566, 256.002,0.001l0,0C 256,0.001, 256,0, 256,0l0,0.001 \n\tc-22.648,44.565-56,102.146-152.783,174.074c-165.018,122.643-9.688,293.834, 126.879,199.612\n\tc-8.898,58.465-39.265,101.086-70.104,119.441L 159.992,512 l 96.008,0 l 96.008,0 l0-18.87 c-30.841-18.354-61.205-60.977-70.106-119.442\n\tC 418.47,467.911, 573.802,296.718, 408.785,174.075z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pacman, game, arcade\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 482.365,89.402C 435.414,34.677, 365.76,0, 288,0C 146.615,0, 32,114.615, 32,256s 114.615,256, 256,256\n\tc 77.76,0, 147.414-34.678, 194.364-89.402L 320,256L 482.365,89.402z M 352,60.301c 19.716,0, 35.699,15.982, 35.699,35.699\n\tc0,19.716-15.983,35.699-35.699,35.699S 316.301,115.716, 316.301,96C 316.301,76.284, 332.284,60.301, 352,60.301z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"gamepad, video game, controller, joystick\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 400,160L 112,160 C 50.144,160,0,210.144,0,272c0,61.855, 50.144,112, 112,112c 44.677,0, 83.237-26.162, 101.215-64l 85.567,0 \n\tc 17.978,37.838, 56.538,64, 101.218,64c 61.854,0, 112-50.145, 112-112C 512,210.144, 461.857,160, 400,160z M 168.89,288L 128,288 l0,40.891 L 96,328.891 L 96,288 \n\tL 55.11,288 l0-32 L 96,256 l0-40.89 l 32,0 L 128,256 l 40.89,0 L 168.89,288 z M 368,328.891c-13.747,0-24.892-11.145-24.892-24.891s 11.145-24.891, 24.892-24.891\n\tc 13.743,0, 24.89,11.145, 24.89,24.891S 381.743,328.891, 368,328.891z M 432,264.891c-13.747,0-24.892-11.144-24.892-24.891\n\ts 11.145-24.89, 24.892-24.89c 13.743,0, 24.891,11.144, 24.891,24.89S 445.743,264.891, 432,264.891z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"gamepad, video game, controller, joystick\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 475.931,157.934c-12.993-21.217-28.493-38.025-46.064-49.957C 409.825,94.37, 387.61,87.47, 363.839,87.47\n\t\tc-32.558,0-50.831,10.297-66.954,19.382c-13.141,7.404-23.52,13.253-40.882,13.255c-17.366-0.001-27.746-5.851-40.887-13.255\n\t\tc-16.122-9.084-34.395-19.381-66.952-19.381c-23.772,0-45.987,6.899-66.027,20.506c-17.574,11.932-33.072,28.74-46.066,49.957\n\t\tC 13.484,194.814,0,243.195,0,287.354c0,42.424, 2.291,72.609, 7.21,94.996c 6.673,30.364, 18.785,47.547, 37.017,52.523\n\t\tc 4.014,1.1, 8.24,1.656, 12.562,1.656c 31.438,0, 65.118-29.235, 96.922-59.182c 28.18-26.541, 33.171-26.541, 49.708-26.541\n\t\tc 1.258,0, 2.563,0.006, 3.925,0.014c 1.483,0.008, 3.031,0.015, 4.653,0.015L 256,351.809l 44.002-0.974c 1.622,0, 3.169-0.007, 4.652-0.015\n\t\tc 1.361-0.008, 2.669-0.014, 3.926-0.014c 16.537,0, 21.529,0, 49.71,26.541c 31.803,29.946, 65.482,59.182, 96.92,59.183\n\t\tc 0.001,0, 0.001,0, 0.002,0c 4.32,0, 8.547-0.558, 12.551-1.653c 18.243-4.979, 30.354-22.162, 37.026-52.525\n\t\tc 4.919-22.389, 7.211-52.574, 7.211-94.998C 512,243.195, 498.516,194.814, 475.931,157.934z M 473.534,375.483\n\t\tc-3.554,16.173-8.993,27.103-14.218,28.528c-1.257,0.344-2.638,0.519-4.105,0.519c-21.375-0.001-57.583-34.095-74.981-50.478\n\t\tc-17.039-16.048-27.119-23.831-37.192-28.719c-13.453-6.527-24.612-6.527-34.457-6.527c-1.314,0-2.683,0.006-4.096,0.014\n\t\tc-1.429,0.008-2.92,0.015-4.482,0.015l-0.354,0 l-0.354,0.008L 256,319.801l-43.295-0.958l-0.354-0.008l-0.354,0 \n\t\tc-1.563,0-3.054-0.007-4.472-0.014c-1.425-0.009-2.791-0.015-4.106-0.015c-9.845,0-21.004,0-34.457,6.528\n\t\tc-10.072,4.887-20.152,12.67-37.188,28.715c-17.401,16.385-53.61,50.479-74.985,50.479c-1.468,0-2.85-0.175-4.136-0.526\n\t\tc-5.198-1.419-10.635-12.348-14.189-28.521C 34.054,355.411, 32,327.407, 32,287.354c0-18.804, 2.901-39.153, 8.391-58.848\n\t\tc 5.472-19.634, 13.415-38.258, 22.969-53.859c 10.603-17.312, 22.968-30.836, 36.753-40.195c 14.639-9.94, 30.805-14.98, 48.051-14.98\n\t\tc 24.161,0, 36.71,7.071, 51.251,15.264c 14.451,8.142, 30.83,17.37, 56.592,17.372c 25.752-0.003, 42.13-9.23, 56.588-17.376\n\t\tc 14.531-8.188, 27.082-15.26, 51.244-15.26c 17.244,0, 33.411,5.041, 48.050,14.98c 13.787,9.362, 26.152,22.886, 36.753,40.196\n\t\tc 9.554,15.601, 17.496,34.225, 22.968,53.859c 5.489,19.695, 8.391,40.044, 8.391,58.848C 480,327.403, 477.945,355.408, 473.534,375.483zM 320,192A32,32 6120 1 1 384,192A32,32 6120 1 1 320,192zM 384,256A32,32 6120 1 1 448,256A32,32 6120 1 1 384,256zM 128,192c 17.645,0, 32,14.355, 32,32s-14.355,32-32,32s-32-14.355-32-32S 110.355,192, 128,192 M 128,160\n\t\tc-35.29,0-64,28.71-64,64c0,35.29, 28.71,64, 64,64s 64-28.71, 64-64C 192,188.71, 163.29,160, 128,160L 128,160z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"gamepad, video game, controller, joystick\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,160L 128,160L 128,192L 96,192L 96,224L 128,224L 128,256L 160,256L 160,224L 192,224L 192,192L 160,192 \tzM 320,184A24,24 12600 1 1 368,184A24,24 12600 1 1 320,184zM 368,232A24,24 12600 1 1 416,232A24,24 12600 1 1 368,232zM 369.736,85.926c-58.11,0-67.181,34.417-113.735,34.421c-46.555-0.004-55.625-34.421-113.735-34.421\n\t\tC 48.53,85.926,0,200.663,0,282.739c0,77.651, 7.296,134.155, 36.344,142.085c 29.063,7.958, 66.085-23.379, 102.175-57.36\n\t\tc 36.081-33.981, 42.174-31.771, 71.229-31.771L 256,336.715l 46.252-1.021c 29.056,0, 35.148-2.211, 71.229,31.771\n\t\tc 36.090,33.981, 73.111,65.318, 102.175,57.36C 504.704,416.895, 512,360.391, 512,282.739C 512,200.663, 463.471,85.926, 369.736,85.926z\n\t\t M 144,288c-44.183,0-80-35.817-80-80s 35.817-80, 80-80s 80,35.817, 80,80S 188.183,288, 144,288z M 368,288c-44.183,0-80-35.817-80-80\n\t\ts 35.817-80, 80-80s 80,35.817, 80,80S 412.183,288, 368,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"dice, die, game, chance, luck, random, gample\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 432,96L 176,96 c-44,0-80,36-80,80l0,256 c0,44, 36,80, 80,80l 256,0 c 44,0, 80-36, 80-80L 512,176 C 512,132, 476,96, 432,96z M 208,448\n\tc-26.51,0-48-21.49-48-48s 21.49-48, 48-48s 48,21.49, 48,48S 234.51,448, 208,448z M 208,256c-26.51,0-48-21.49-48-48s 21.49-48, 48-48\n\ts 48,21.49, 48,48S 234.51,256, 208,256z M 304,352c-26.51,0-48-21.49-48-48s 21.49-48, 48-48s 48,21.49, 48,48S 330.51,352, 304,352z M 400,448\n\tc-26.51,0-48-21.49-48-48s 21.49-48, 48-48s 48,21.49, 48,48S 426.51,448, 400,448z M 400,256c-26.51,0-48-21.49-48-48s 21.49-48, 48-48\n\ts 48,21.49, 48,48S 426.51,256, 400,256z M 414.38,64C 406.915,27.598, 374.525,0, 336,0L 80,0 C 36,0,0,36,0,80l0,256 \n\tc0,38.523, 27.598,70.915, 64,78.38L 64,96 c0-17.6, 14.4-32, 32-32L 414.38,64 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"camera, video, media, film, movie\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 291.571,416l-199,0 C 59.172,416, 32,389.683, 32,357.334L 32,186.667 C 32,154.318, 59.172,128, 92.571,128l 199,0 \n\t\tc 33.399,0, 60.571,26.318, 60.571,58.667l0,21.7 l 69.58-60.266c 9.591-9.084, 19.306-13.69, 28.881-13.69\n\t\tc 13.561,0, 29.396,9.961, 29.396,38.033l0,199.111 c0,10.083-2.061,18.469-6.124,24.924c-5.244,8.331-13.727,13.109-23.271,13.109\n\t\tc-0.001,0-0.001,0-0.003,0c-9.574-0.001-19.287-4.605-28.877-13.688l-69.582-60.267l0,21.699 \n\t\tC 352.143,389.683, 324.971,416, 291.571,416z M 92.571,160C 76.817,160, 64,171.963, 64,186.667l0,170.667 \n\t\tC 64,372.038, 76.817,384, 92.571,384l 199,0 c 15.754,0, 28.571-11.962, 28.571-26.666l0-57.005 c0-6.58, 4.028-12.489, 10.153-14.894\n\t\tc 6.124-2.402, 13.098-0.814, 17.573,4.008c 0.328,0.354, 0.625,0.663, 0.902,0.938l 94.188,81.577c 0.2,0.175, 0.396,0.354, 0.589,0.537\n\t\tc 1.623,1.554, 3.029,2.668, 4.174,3.453c 0.163-1.159, 0.278-2.615, 0.278-4.393L 447.999,172.444 c0-1.777-0.115-3.233-0.278-4.392\n\t\tc-1.145,0.784-2.551,1.899-4.174,3.453c-0.192,0.184-0.389,0.362-0.589,0.536l-94.19,81.581c-0.273,0.271-0.573,0.582-0.908,0.942\n\t\tc-4.479,4.817-11.445,6.404-17.571,3.996c-6.121-2.406-10.146-8.313-10.146-14.891l0-57.004 c0-14.704-12.817-26.667-28.571-26.667\n\t\tL 92.571,159.998 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"camera, video, media, film, movie\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 352,368c0,26.4-21.6,48-48,48L 80,416 c-26.4,0-48-21.6-48-48L 32,176 c0-26.4, 21.6-48, 48-48l 224,0 c 26.4,0, 48,21.6, 48,48L 352,368 zM 480,160 L 480,384 C 480,410.4 464.727,416.727 446.059,398.058 L 353.942,305.941 C 335.274,287.273 335.274,256.726 353.942,238.059 L 446.059,145.941 C 464.727,127.273 480,133.6 480,160 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"camera, video, media, film, movie\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 489.42,128.126c-5.294,0-10.729,1.861-15.718,5.383L 384,196.816L 384,144 c0-26.4-21.6-48-48-48L 48,96 c-26.4,0-48,21.6-48,48l0,224 \n\tc0,26.4, 21.6,48, 48,48l 288,0 c 26.4,0, 48-21.6, 48-48l0-52.815 l 89.701,63.307c 4.989,3.521, 10.424,5.382, 15.717,5.383\n\tc 0.001,0, 0.001,0, 0.003,0c 7.044,0, 13.477-3.248, 17.646-8.911c 3.228-4.385, 4.934-10.027, 4.934-16.318L 512.001,153.355 \n\tC 512,136.792, 500.641,128.126, 489.42,128.126z M 480,343.77L 400.979,288L 352,288 l0,80 c0,8.673-7.327,16-16,16L 48,384 c-8.673,0-16-7.327-16-16\n\tL 32,144 c0-8.673, 7.327-16, 16-16l 288,0 c 8.673,0, 16,7.327, 16,16l0,80 l 48.979,0 L 480,168.23L 480,343.77 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"camera, video, media, film, movie\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 489.42,128.126c-5.294,0-10.729,1.861-15.718,5.383L 384,196.816L 384,144 c0-26.4-21.6-48-48-48L 48,96 c-26.4,0-48,21.6-48,48l0,224 \n\tc0,26.4, 21.6,48, 48,48l 288,0 c 26.4,0, 48-21.6, 48-48l0-52.815 l 89.701,63.307c 4.989,3.521, 10.424,5.382, 15.717,5.383\n\tc 0.001,0, 0.001,0, 0.003,0c 7.044,0, 13.477-3.248, 17.646-8.911c 3.228-4.385, 4.934-10.027, 4.934-16.318L 512.001,153.355 \n\tC 512,136.792, 500.641,128.126, 489.42,128.126z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"camera, video, media, film, movie\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,144A80,80 10800 1 1 352,144A80,80 10800 1 1 192,144zM0,144A80,80 10800 1 1 160,144A80,80 10800 1 1 0,144zM 384,304l0-48 c0-17.6-14.4-32-32-32l-80,0 L 80,224 L 32,224 c-17.6,0-32,14.4-32,32l0,160 c0,17.6, 14.4,32, 32,32l 320,0 c 17.6,0, 32-14.4, 32-32\n\t\tl0-48 l 128,80L 512,224 L 384,304z M 320,384L 64,384 l0-96 l 256,0 L 320,384 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"film, video, movie, tape, play\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,64l0,384 l 512,0 L 512,64 L0,64 z M 96,416L 32,416 l0-64 l 64,0 L 96,416 z M 96,288L 32,288 l0-64 l 64,0 L 96,288 z M 96,160L 32,160 L 32,96 l 64,0 L 96,160 z M 384,416L 128,416 L 128,96 l 256,0 L 384,416 z\n\t\t M 480,416l-64,0 l0-64 l 64,0 L 480,416 z M 480,288l-64,0 l0-64 l 64,0 L 480,288 z M 480,160l-64,0 L 416,96 l 64,0 L 480,160 zM 192,160L 192,352L 320,256 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"film, video, movie, tape\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,64l0,384 l 512,0 L 512,64 L0,64 z M 96,416L 32,416 l0-64 l 64,0 L 96,416 z M 96,288L 32,288 l0-64 l 64,0 L 96,288 z M 96,160L 32,160 L 32,96 l 64,0 L 96,160 z M 384,416L 128,416 L 128,96 l 256,0 L 384,416 z\n\t M 480,416l-64,0 l0-64 l 64,0 L 480,416 z M 480,288l-64,0 l0-64 l 64,0 L 480,288 z M 480,160l-64,0 L 416,96 l 64,0 L 480,160 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"film, video, movie, tape\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32l0,448 l 512,0 L 512,32 L0,32 z M 96,448L 32,448 l0-64 l 64,0 L 96,448 z M 96,352L 32,352 l0-64 l 64,0 L 96,352 z M 96,224L 32,224 l0-64 l 64,0 L 96,224 z M 96,128L 32,128 L 32,64 l 64,0 L 96,128 z M 384,448\n\tL 128,448 l0-64 l0-32 l0-64 l 256,0 L 384,448 z M 384,224L 128,224 L 128,64 l 256,0 L 384,224 z M 480,448l-64,0 l0-64 l 64,0 L 480,448 z M 480,352l-64,0 l0-64 l 64,0 L 480,352 z M 480,224l-64,0 l0-64 l 64,0 L 480,224 z\n\t M 480,128l-64,0 L 416,64 l 64,0 L 480,128 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"film, video, movie, tape\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,0l0,512 l 512,0 L 512,0 L0,0 z M 320,32l 64,0 l0,64 l-64,0 L 320,32 z M 224,32l 64,0 l0,64 l-64,0 L 224,32 z M 128,32l 64,0 l0,64 l-64,0 L 128,32 z M 32,32l 64,0 l0,64 L 32,96 L 32,32 z M 32,128l 192,0 l0,256 \n\tL 32,384 L 32,128 z M 96,480L 32,480 l0-64 l 64,0 L 96,480 z M 192,480l-64,0 l0-64 l 64,0 L 192,480 z M 288,480l-64,0 l0-64 l 64,0 L 288,480 z M 384,480l-64,0 l0-64 l 64,0 L 384,480 z M 480,480l-64,0 l0-64 l 64,0 \n\tL 480,480 z M 480,384L 256,384 L 256,128 l 224,0 L 480,384 z M 480,96l-64,0 L 416,32 l 64,0 L 480,96 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"movie, wheel, video, film\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0C 114.615,0,0,114.615,0,256s 114.615,256, 256,256s 256-114.615, 256-256S 397.385,0, 256,0z M 256,56.809\n\tc 30.187,0, 54.658,24.471, 54.658,54.659c0,30.187-24.472,54.658-54.658,54.658c-30.188,0-54.658-24.471-54.658-54.658\n\tC 201.342,81.28, 225.812,56.809, 256,56.809z M 57.778,207.364c0-30.187, 24.471-54.658, 54.659-54.658\n\tc 30.187,0, 54.658,24.471, 54.658,54.658c0,30.188-24.471,54.659-54.658,54.659C 82.25,262.022, 57.778,237.551, 57.778,207.364z\n\t M 169.201,422.644c-30.187,0-54.658-24.471-54.658-54.658s 24.472-54.659, 54.658-54.659c 30.187,0, 54.659,24.472, 54.659,54.659\n\tS 199.388,422.644, 169.201,422.644z M 256,288c-17.673,0-32-14.327-32-32c0-17.673, 14.327-32, 32-32c 17.673,0, 32,14.327, 32,32\n\tC 288,273.673, 273.673,288, 256,288z M 342.799,422.969c-30.188,0-54.658-24.471-54.658-54.658s 24.471-54.659, 54.658-54.659\n\tc 30.187,0, 54.658,24.472, 54.658,54.659S 372.985,422.969, 342.799,422.969z M 399.562,262.348c-30.187,0-54.658-24.471-54.658-54.659\n\tc0-30.187, 24.472-54.658, 54.658-54.658c 30.188,0, 54.659,24.471, 54.659,54.658C 454.222,237.876, 429.751,262.348, 399.562,262.348z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"movie, play, media, video\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 32,224l0,288 l 480,0 L 512,224 L 32,224 z M 480,320L 64,320 l0-32 l 416,0 L 480,320 zM 14.628,65.143L 32,191.959l 475.559-65.144L 490.188,0L 14.628,65.143z M 184.497,138.771l-89.771,12.297l 54.722-72.094\n\tl 89.771-12.297L 184.497,138.771z M 369.767,113.392l-89.771,12.297l 54.722-72.094l 89.771-12.297L 369.767,113.392z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"movie, play, media, video\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 39.151,131.27L 471.873,15.328L 496.718,108.054L 63.996,223.996zM 64,224l0,288 l 448,0 L 512,224 L 64,224 z M 224,448L 224,288 l 128,80L 224,448z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"play, video, movie\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,148.925L 192,299.075L 322.033,224.004 \tzM0,96l0,320 l 512,0 L 512,96 L0,96 z M 480,384L 32,384 l0-32 l 448,0 L 480,384 z M 480,320L 32,320 L 32,128 l 448,0 L 480,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"play, video, movie\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 490.594,80.054C 418.778,69.729, 339.428,64, 256.001,64c-83.43,0-162.778,5.729-234.597,16.054\n\tC 7.639,133.917,0,193.429,0,256c0,62.57, 7.639,122.083, 21.404,175.945C 93.223,442.271, 172.572,448, 256.001,448\n\tc 83.427,0, 162.776-5.729, 234.593-16.055C 504.36,378.083, 512,318.57, 512,256C 512,193.429, 504.36,133.917, 490.594,80.054z\n\t M 192.001,352L 192.001,160 l 160,96L 192.001,352z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"headphones, headset, music, song, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256.001,64C 132.288,64, 32,164.288, 32,288l0,96 l 32,0 l0-96 c0-106.039, 85.961-160, 192-160s 192,53.961, 192,160l0,96 l 32,0 l0-96 \n\t\tC 480.001,164.288, 379.712,64, 256.001,64zM 138.667,288l-21.333,0 C 105.6,288, 96,297.6, 96,309.333l0,117.334 C 96,438.399, 105.6,448, 117.333,448l 21.333,0 \n\t\tC 150.4,448, 160,438.399, 160,426.667L 160,309.333 C 160,297.6, 150.4,288, 138.667,288zM 394.666,288l-21.334,0 c-11.731,0-21.331,9.6-21.331,21.333l0,117.334 c0,11.732, 9.6,21.333, 21.331,21.333l 21.334,0 \n\t\tC 406.4,448, 416,438.399, 416,426.667L 416,309.333 C 416.001,297.6, 406.401,288, 394.666,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"headphones, headset, music, song, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 96,289.143l0,221.715 c 5.227,0.748, 10.567,1.143, 16,1.143l 16,0 L 128,288 l-16,0 C 106.567,288, 101.227,288.395, 96,289.143zM 384,288l0,224 l 16,0 c 5.434,0, 10.773-0.395, 16-1.143L 416,289.143 c-5.227-0.748-10.566-1.143-16-1.143L 384,288 zM 512,256C 512,114.615, 397.385,0, 256,0S0,114.615,0,256c0,30.709, 5.414,60.153, 15.328,87.437C 5.592,360.038,0,379.363,0,400\n\t\tc0,44.677, 26.163,83.239, 64,101.216L 64,298.784 c-10.063,4.781-19.29,11.030-27.429,18.452C 33.575,302.626, 32,287.497, 32,272\n\t\tC 32,148.288, 132.288,48, 256,48s 224,100.288, 224,224c0,15.497-1.574,30.626-4.571,45.236c-8.14-7.422-17.365-13.671-27.429-18.452\n\t\tl0,202.432 c 37.838-17.977, 64-56.539, 64-101.216c0-20.637-5.592-39.962-15.328-56.563C 506.586,316.153, 512,286.709, 512,256z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"guitar, music, rock, song, classic\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 440,128l 72-64c-6.038-32.334-31.666-57.962-64-64l-64,72l0,17.109 l-90.735,90.735\n\tc-47.034-38.417-79.561-33.168-100.675-15.795c-20.49,16.855-28.145,50.262-39.481,60.243\n\tc-22.896,20.152-79.232-0.076-127.196,52.117C-29.588,336.807, 14.208,401.2, 62.504,449.496\n\tc 48.295,48.294, 112.689,92.092, 173.087,36.592c 52.194-47.964, 31.954-104.312, 52.105-127.207c 9.98-11.337, 43.398-18.979, 60.255-39.47\n\tc 17.371-21.114, 22.62-53.642-15.796-100.676L 422.891,128L 440,128 z M 146.565,429.435l-64-64l 26.87-26.869l 64,64L 146.565,429.435z\n\t M 240,320c-26.51,0-48-21.49-48-48s 21.49-48, 48-48s 48,21.49, 48,48S 266.51,320, 240,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"piano, music, song, audio\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,0l0,512 l 480,0 L 480,0 L0,0 z M 96,480L 32,480 L 32,32 l 32,0 l0,320 l 32,0 L 96,480 z M 224.001,480l-96,0 L 128.001,352 l 32,0 L 160.001,32 l 32,0 l0,320 l 32,0 L 224.001,480 z M 352,480l-96,0 L 256,352 l 32,0 L 288,32 l 32,0 l0,320 \n\tl 32,0 L 352,480 z M 448,480l-64,0 L 384,352 l 32,0 L 416,32 l 32,0 L 448,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"music, song, audio, sound\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,0L 192,64l0,312.020 C 171.671,361.2, 143.342,352, 112,352C 50.144,352,0,387.816,0,432c0,44.183, 50.144,80, 112,80\n\ts 112-35.817, 112-80L 224,225.292 l 256-56.889L 480,312.020 C 459.671,297.2, 431.342,288, 400,288c-61.855,0-112,35.816-112,80\n\tc0,44.183, 50.145,80, 112,80s 112-35.817, 112-80L 512,0 L 480,0 z M 112,474c-42.353,0-74-22.174-74-42s 31.647-42, 74-42s 74,22.174, 74,42\n\tS 154.353,474, 112,474z M 400,410c-42.354,0-74-22.174-74-42s 31.646-42, 74-42s 74,22.174, 74,42S 442.354,410, 400,410z M 480,127.426\n\tl-256,56.889l0-63.426 L 480,64L 480,127.426 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"music, song, audio, sound\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,0 L 512,0 L 512,368 C 512,412.183 461.855,448 400,448 C 338.145,448 288,412.183 288,368 C 288,323.816 338.145,288 400,288 C 431.342,288 459.671,297.2 480,312.020 L 480,128 L 224,184.889 L 224,432 C 224,476.183 173.856,512 112,512 C 50.144,512 0,476.183 0,432 C 0,387.816 50.144,352 112,352 C 143.342,352 171.671,361.2 192,376.020 L 192,64 L 480,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"music, song, audio, sound\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,0L 192,64l0,312.020 C 171.671,361.2, 143.342,352, 112,352C 50.144,352,0,387.816,0,432c0,44.183, 50.144,80, 112,80\n\ts 112-35.817, 112-80L 224,225.292 l 256-56.889L 480,312.020 C 459.671,297.2, 431.342,288, 400,288c-61.855,0-112,35.816-112,80\n\tc0,44.183, 50.145,80, 112,80s 112-35.817, 112-80L 512,0 L 480,0 z M 480,127.426l-256,56.889l0-63.426 L 480,64L 480,127.426 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"music, song, audio, sound\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,96 L 512,0 L 512,32 L 512,96 L 512,368 C 512,412.183 461.855,448 400,448 C 338.145,448 288,412.183 288,368 C 288,323.817 338.145,288 400,288 C 417.179,288 433.451,290.766 448,295.703 L 448,130.909 L 224,192 L 224,432 C 224,476.183 173.856,512 112,512 C 50.144,512 0,476.183 0,432 C 0,387.817 50.144,352 112,352 C 129.179,352 145.451,354.766 160,359.703 L 160,192 L 160,96 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"music, song, audio, sound\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160,96l0,263.703 c-14.549-4.937-30.821-7.703-48-7.703C 50.144,352,0,387.817,0,432s 50.144,80, 112,80s 112-35.817, 112-80\n\tL 224,280.422 l 224-61.091l0,76.372 c-14.549-4.937-30.821-7.703-48-7.703c-61.855,0-112,35.817-112,80s 50.145,80, 112,80s 112-35.817, 112-80L 512,0 \n\tL 160,96z M 224,230.669L 224,182 l 224-61.091l0,48.669 L 224,230.669z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"music, song, audio, sound\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 406.079,147.206c-43.525-61.105-39.44-17.957-81.604-139.842L 279.886,0l-49.609,366.475\n\tc-111.816-63.979-182.336,1.734-164.492,84.443c 9.46,43.856, 80.716,85.137, 150.9,44.39c 33.171-19.945, 43.836-52.11, 48.070-74.919\n\tl 35.438-271.926c 126.445,111.487, 86.071,178.946, 59.925,256.622C 413.867,382.918, 498.058,285.141, 406.079,147.206z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"camera, photo, picture, image\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,32L 96,32 c-35.2,0-64,28.8-64,64l0,320 c0,35.2, 28.8,64, 64,64l 320,0 c 35.2,0, 64-28.8, 64-64L 480,96 C 480,60.8, 451.2,32, 416,32z\n\t M 336,288c0,44.112-35.888,80-80,80s-80-35.888-80-80c0-26.142, 12.605-49.393, 32.056-64l 95.889,0 C 323.395,238.607, 336,261.858, 336,288\n\tz M 160,96l 32,0 l0,64 l-32,0 L 160,96 z M 96,96l 32,0 l0,64 L 96,160 L 96,96 z M 416,415.886c-0.033,0.039-0.075,0.081-0.114,0.114L 256,416 L 96.114,416 \n\tc-0.040-0.033-0.081-0.075-0.114-0.114L 96,224 l 49.128,0 C 134.237,242.828, 128,264.685, 128,288c0,70.692, 57.308,128, 128,128\n\ts 128-57.308, 128-128c0-23.315-6.236-45.172-17.128-64L 416,224 L 416,415.886 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"camera, photo, picture, image\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 152,304c0,57.438, 46.562,104, 104,104s 104-46.562, 104-104s-46.562-104-104-104S 152,246.562, 152,304z M 480,128L 368,128 \n\tc-8-32-16-64-48-64L 192,64 c-32,0-40,32-48,64L 32,128 c-17.6,0-32,14.4-32,32l0,288 c0,17.6, 14.4,32, 32,32l 448,0 c 17.6,0, 32-14.4, 32-32L 512,160 \n\tC 512,142.4, 497.6,128, 480,128z M 256,446c-78.425,0-142-63.574-142-142c0-78.425, 63.575-142, 142-142c 78.426,0, 142,63.575, 142,142\n\tC 398,382.426, 334.427,446, 256,446z M 480,224l-64,0 l0-32 l 64,0 L 480,224 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"camera, photo, picture, image\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480,96l-96,0 l-16.179-40.717C 364.619,42.478, 351.2,32, 338,32L 174,32 c-13.2,0-26.619,10.478-29.821,23.283L 128,96L 32,96 \n\tc-17.6,0-32,14.4-32,32l0,352 c0,17.6, 14.4,32, 32,32l 448,0 c 17.6,0, 32-14.4, 32-32L 512,128 C 512,110.4, 497.6,96, 480,96z M 448,448L 64,448 L 64,160 l 107.437,0 \n\tl 25.431-64l 118.265,0 l 25.431,64L 448,160 L 448,448 zM 256,184c-66.168,0-120,53.832-120,120s 53.832,120, 120,120s 120-53.832, 120-120S 322.168,184, 256,184z M 256,376\n\tc-39.701,0-72-32.299-72-72s 32.299-72, 72-72s 72,32.299, 72,72S 295.701,376, 256,376z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"camera, photo, picture, image\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,216 C 302.869,216 341,255.477 341,304 C 341,352.523 302.869,392 256,392 C 209.131,392 171,352.523 171,304 C 171,255.477 209.131,216 256,216 ZM 480,96l-96,0 l-16.179-40.717C 364.619,42.478, 351.2,32, 338,32L 174,32 c-13.2,0-26.619,10.478-29.821,23.283L 128,96L 32,96 \n\t\tc-17.6,0-32,14.4-32,32l0,352 c0,17.6, 14.4,32, 32,32l 448,0 c 17.6,0, 32-14.4, 32-32L 512,128 C 512,110.4, 497.6,96, 480,96z M 256,440\n\t\tc-73.336,0-133-61.010-133-136c0-74.991, 59.664-136, 133-136c 73.337,0, 133,61.009, 133,136C 389,378.99, 329.337,440, 256,440z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"image, picture, photo, graphic\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32l0,448 l 512,0 L 512,32 L0,32 z M 480,64l0,325.154 L 354.059,242.222c-8.806-10.272-21.219-16.164-34.059-16.164\n\t\ts-25.253,5.892-34.059,16.164L 136.99,416L 43.529,416 l 72.914-91.143c 3.271-4.090, 7.376-6.342, 11.557-6.342s 8.286,2.252, 11.557,6.342\n\t\tl 15.867,19.834l 18.295-21.954l-12.297-15.372c-8.567-10.708-20.749-16.85-33.421-16.85s-24.854,6.142-33.421,16.85L 32,385.589L 32,64 \n\t\tL 480,64 z M 466.132,416L 173.868,416 l 133.333-155.556c 3.529-4.118, 8.075-6.386, 12.799-6.386s 9.27,2.268, 12.799,6.386L 466.132,416zM 144,124c 28.673,0, 52,23.327, 52,52s-23.327,52-52,52s-52-23.327-52-52S 115.327,124, 144,124 M 144,96\n\t\tc-44.183,0-80,35.817-80,80s 35.817,80, 80,80s 80-35.817, 80-80S 188.183,96, 144,96L 144,96z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"images, pictures, photos, graphics, polaroids\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,32L0,32 l0,384 l 384,0 L 384,32 z M 352,320L 32,320 L 32,64 l 320,0 L 352,320 zM 256,160L 233.143,205.714L 160,96L 64,288L 320,288 \tzM 416,123.377L 416,448L 60.472,448L 57.964,471.861L 439.861,512L 480,130.104 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"image, picture, photo, graphic, polaroid\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,32l0,480 l 512,0 L 512,32 L0,32 z M 448,384L 64,384 L 64,96 l 384,0 L 448,384 zM 416,288L 384,224L 320,288L 224,128L 96,320L 96,352L 416,352 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"image, picture, photo, graphic\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,96l0,320 l 512,0 L 512,96 L0,96 z M 480,320l-96-96l-45.898,68.847L 429.255,384L 384,384 L 224,224L 32,384L 32,128 l 448,0 L 480,320 zM 64,208A48,48 10800 1 1 160,208A48,48 10800 1 1 64,208z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"image, picture, photo, graphic\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,287.887c-32,0-64,32.113-96,32.113s-32-128-96-128S 96,256, 64,384c0,0, 352,0, 384,0\n\t\tC 448,384.001, 448,287.887, 416,287.887zM0,96l0,352 l 512,0 L 512,96 L0,96 z M 480,416L 32,416 L 32,128 l 448,0 L 480,416 zM 352,208A48,48 12600 1 1 448,208A48,48 12600 1 1 352,208z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"images, pictures, photos, graphics\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 64,128l0,320 l 448,0 L 512,128 L 64,128 z M 480,394.667L 416,288l-72.533,60.444L 288,256L 96,416L 96,160 l 384,0 L 480,394.667 zM 128,240A48,48 7560 1 1 224,240A48,48 7560 1 1 128,240zM 448,64L0,64L0,384L 32,384L 32,96L 448,96 \tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"image, picture, photo, graphic\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,64l0,384 l 512,0 L 512,64 L0,64 z M 480,416l-32,0 l-96-144l-64,48L 160,160L 64,416L 32,416 L 32,96 l 448,0 L 480,416 zM 352,176A48,48 12600 1 1 448,176A48,48 12600 1 1 352,176z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"image, picture, photo, graphic\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,64l0,416 l 512,0 L 512,64 L0,64 z M 480,448L 32,448 L 32,96 l 448,0 L 480,448 zM 352,176A48,48 2520 1 1 448,176A48,48 2520 1 1 352,176zM 448,416 L 64,416 L 160,160 L 288,320 L 352,272 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"image, picture, photo, graphic\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,96 L 64,96 L 64,416 L 448,416 L 448,96 Z M 512,32 L 512,32 L 512,480 L 0,480 L 0,32 L 512,32 ZM 416,384 L 96,384 L 96,320 L 192,160 L 323.5,320 L 416,256 L 416,288 ZM 320,176A48,48 2520 1 1 416,176A48,48 2520 1 1 320,176z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paint-format, format\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,288L 512,96 l-96,0 L 416,64 c0-17.6-14.4-32-32-32L 32,32 C 14.4,32,0,46.4,0,64l0,96 c0,17.6, 14.4,32, 32,32l 352,0 c 17.6,0, 32-14.4, 32-32l0-32 l 64,0 \n\tl0,128 L 192,256 l0,64 l-16,0 c-8.837,0-16,7.163-16,16l0,160 c0,8.837, 7.163,16, 16,16l 64,0 c 8.837,0, 16-7.163, 16-16L 256,336 c0-8.837-7.163-16-16-16l-16,0 l0-32 \n\tL 512,288 z M 384,96L 32,96 L 32,64 l 352,0 L 384,96 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"paint-format, format, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 416,96L 416,64 c0-17.6-14.4-32-32-32L 32,32 C 14.4,32,0,46.4,0,64l0,96 c0,17.6, 14.4,32, 32,32l 352,0 c 17.6,0, 32-14.4, 32-32l0-32 l 64,0 l0,128 L 192,256 \n\tl0,64 l-16,0 c-8.837,0-16,7.163-16,16l0,160 c0,8.837, 7.163,16, 16,16l 64,0 c 8.837,0, 16-7.163, 16-16L 256,336 c0-8.837-7.163-16-16-16l-16,0 l0-32 l 288,0 L 512,96 \n\tL 416,96 z M 35,96l-3,0 L 32,64 l 3,0 L 35,96 z M 51,96l-8,0 L 43,64 l 8,0 L 51,96 z M 67,96l-8,0 L 59,64 l 8,0 L 67,96 z M 83,96l-8,0 L 75,64 l 8,0 L 83,96 z M 99,96l-8,0 L 91,64 l 8,0 L 99,96 z M 115,96l-8,0 L 107,64 l 8,0 L 115,96 z\n\t M 131,96l-8,0 L 123,64 l 8,0 L 131,96 z M 147,96l-8,0 L 139,64 l 8,0 L 147,96 z M 163,96l-8,0 L 155,64 l 8,0 L 163,96 z M 179,96l-8,0 L 171,64 l 8,0 L 179,96 z M 195,96l-8,0 L 187,64 l 8,0 L 195,96 z M 211,96l-8,0 L 203,64 l 8,0 L 211,96 z\n\t M 227,96l-8,0 L 219,64 l 8,0 L 227,96 z M 243,96l-8,0 L 235,64 l 8,0 L 243,96 z M 259,96l-8,0 L 251,64 l 8,0 L 259,96 z M 275,96l-8,0 L 267,64 l 8,0 L 275,96 z M 291,96l-8,0 L 283,64 l 8,0 L 291,96 z M 307,96l-8,0 L 299,64 l 8,0 L 307,96 z\n\t M 323,96l-8,0 L 315,64 l 8,0 L 323,96 z M 339,96l-8,0 L 331,64 l 8,0 L 339,96 z M 355,96l-8,0 L 347,64 l 8,0 L 355,96 z M 371,96l-8,0 L 363,64 l 8,0 L 371,96 z M 384,96l-5,0 L 379,64 l 5,0 L 384,96 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"droplet, colors, water\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,88.019 C 242.179,102.214 226.216,119.718 210.327,139.546 C 158.108,204.707 129.666,265.583 128.078,315.593 C 128.061,316.123 128.046,316.614 128.035,317.108 L 128.028,317.426 L 128.019,317.868 C 128.008,318.578 128.001,319.289 128.001,320.003 C 128.001,320.658 128.008,321.31 128.019,321.962 L 128.031,322.583 C 128.689,356.217 142.293,387.742 166.338,411.348 C 190.413,434.983 222.255,448 256,448 C 289.744,448 321.587,434.983 345.661,411.348 C 369.697,387.75 383.301,356.244 383.971,322.624 L 383.971,322.6 L 383.975,322.382 C 383.988,321.589 384,320.795 384,320 C 384,319.284 383.991,318.57 383.98,317.856 L 383.979,317.816 L 383.978,317.776 L 383.973,317.545 L 383.965,317.098 C 383.954,316.646 383.943,316.195 383.927,315.743 L 383.925,315.667 L 383.922,315.591 C 382.333,265.582 353.892,204.706 301.673,139.546 C 285.783,119.718 269.82,102.215 256,88.019 Z M 256,0 L 256,0 C 256,0 442.875,155.734 447.889,313.558 C 447.914,314.271 447.932,314.984 447.949,315.698 C 447.955,316.050 447.964,316.398 447.97,316.751 C 447.988,317.832 448,318.914 448,320 C 448,321.182 447.985,322.361 447.964,323.539 C 447.963,323.636 447.961,323.734 447.959,323.832 C 445.916,428.101 360.758,512 256,512 C 151.241,512 66.082,428.101 64.043,323.836 C 64.039,323.737 64.038,323.642 64.036,323.543 C 64.015,322.364 64.001,321.189 64.001,320.004 C 64.001,318.918 64.011,317.836 64.029,316.756 C 64.035,316.403 64.043,316.056 64.050,315.703 C 64.066,314.987 64.088,314.276 64.11,313.561 C 69.123,155.734 256,0 256,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"droplet, colors, water\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,65.328 C 239.761,81.321 218.94,103.259 198.21,129.082 C 143.571,197.139 113.79,261.458 112.087,315.085 C 112.069,315.643 112.052,316.2 112.039,316.762 L 112.031,317.147 L 112.022,317.59 C 112.009,318.393 112.001,319.197 112.001,320.004 C 112.001,320.796 112.010,321.582 112.023,322.369 L 112.024,322.393 L 112.034,322.897 C 112.774,360.741 128.079,396.208 155.129,422.766 C 182.213,449.355 218.037,464 256,464 C 293.963,464 329.785,449.355 356.87,422.764 C 383.917,396.21 399.223,360.745 399.968,322.904 L 399.969,322.831 L 399.972,322.665 C 399.988,321.778 400,320.89 400,320 C 400,319.189 399.99,318.381 399.977,317.573 L 399.97,317.23 L 399.961,316.763 C 399.949,316.244 399.936,315.727 399.918,315.208 L 399.916,315.145 L 399.914,315.082 C 398.21,261.455 368.429,197.136 313.79,129.080 C 293.059,103.259 272.238,81.321 256,65.328 Z M 256,0 L 256,0 C 256,0 442.875,155.734 447.889,313.558 C 447.914,314.271 447.932,314.984 447.949,315.698 C 447.955,316.050 447.964,316.398 447.97,316.751 C 447.988,317.832 448,318.914 448,320 C 448,321.182 447.985,322.361 447.964,323.539 C 447.963,323.636 447.961,323.734 447.959,323.832 C 445.916,428.101 360.758,512 256,512 C 151.241,512 66.082,428.101 64.043,323.836 C 64.039,323.737 64.038,323.642 64.036,323.543 C 64.015,322.364 64.001,321.189 64.001,320.004 C 64.001,318.918 64.011,317.836 64.029,316.756 C 64.035,316.403 64.043,316.056 64.050,315.703 C 64.066,314.987 64.088,314.276 64.11,313.561 C 69.123,155.734 256,0 256,0 ZM 361.981,312.116 C 361.992,312.743 362,313.37 362,314 C 362,314.688 361.99,315.377 361.977,316.103 L 361.974,316.269 L 361.973,316.345 C 361.376,345.741 349.473,373.292 328.452,393.93 C 307.387,414.61 279.525,426 250,426 C 226.519,426 204.094,418.79 185.299,405.439 C 189.5,405.805 193.736,406 198,406 C 235.963,406 271.785,391.355 298.87,364.764 C 325.917,338.21 341.223,302.745 341.968,264.904 L 341.969,264.831 L 341.972,264.665 C 341.988,263.778 342,262.89 342,262 C 342,261.189 341.99,260.381 341.977,259.572 L 341.97,259.229 L 341.961,258.762 C 341.949,258.243 341.936,257.726 341.918,257.207 L 341.916,257.144 L 341.914,257.081 C 341.616,247.7 340.439,237.986 338.44,227.988 C 353.169,257.842 361.149,285.535 361.931,310.153 L 361.935,310.255 L 361.936,310.294 C 361.948,310.675 361.958,311.056 361.967,311.438 L 361.975,311.869 L 361.981,312.116 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"droplet, colors, water\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 120.037,315.356 C 120.033,315.27 120.032,315.186 120.031,315.099 C 120.013,314.068 120,313.039 120,312.003 C 120,311.052 120.009,310.106 120.024,309.161 C 120.030,308.851 120.037,308.548 120.043,308.239 C 120.058,307.613 120.076,306.99 120.096,306.365 C 124.481,168.267 287.999,32 287.999,32 C 287.999,32 325.697,63.418 365.377,111.368 L 124.79,351.954 C 121.921,340.19 120.283,327.944 120.037,315.356 ZM 455.954,308.235c-0.015-0.624-0.029-1.247-0.051-1.872c-1.545-48.613-22.809-96.999-49.718-139.293L 510.628,62.627L 486,38\n\t\tL 38,486l 24.627,24.628l 93.961-93.962C 187.37,455.263, 234.793,480, 287.999,480c 91.664,0, 166.176-73.411, 167.965-164.646\n\t\tc 0.002-0.086, 0.003-0.173, 0.003-0.257c 0.021-1.030, 0.033-2.063, 0.033-3.097c0-0.95-0.011-1.896-0.027-2.843\n\t\tC 455.967,308.849, 455.96,308.544, 455.954,308.235z M 399.979,314.073l-0.004,0.178c-0.576,29.438-12.483,57.022-33.523,77.678\n\t\tC 345.388,412.61, 317.524,424, 287.999,424c-5.451,0-10.847-0.391-16.154-1.155c 60.839-36.244, 101.596-102.682, 101.596-178.64\n\t\tc0-8.511-0.518-16.902-1.512-25.147c 17.619,32.349, 27.154,62.475, 28.002,89.086l 0.002,0.062c 0.015,0.415, 0.021,0.829, 0.033,1.244\n\t\tl 0.013,0.634c 0.013,0.638, 0.021,1.277, 0.021,1.916C 400,312.692, 399.991,313.384, 399.979,314.073z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"droplet, colors, water\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 447.97,316.751c-0.006-0.353-0.015-0.701-0.021-1.053c-0.016-0.714-0.035-1.427-0.059-2.14C 442.875,155.734, 256,0, 256,0\n\t\tS 69.123,155.734, 64.11,313.561c-0.022,0.715-0.044,1.426-0.060,2.141c-0.007,0.352-0.015,0.701-0.021,1.053\n\t\tc-0.018,1.080-0.028,2.162-0.028,3.248c0,1.184, 0.014,2.361, 0.035,3.539c 0.002,0.098, 0.003,0.195, 0.007,0.293\n\t\tC 66.082,428.101, 151.241,512, 256,512c 104.758,0, 189.916-83.899, 191.959-188.168c 0.002-0.098, 0.004-0.196, 0.005-0.293\n\t\tc 0.021-1.178, 0.036-2.357, 0.036-3.539C 448,318.914, 447.988,317.832, 447.97,316.751z M 383.975,322.37l-0.004,0.203\n\t\tc-0.659,33.643-14.266,65.167-38.313,88.774C 321.587,434.983, 289.743,448, 256,448c-6.231,0-12.397-0.447-18.462-1.319\n\t\tc 69.528-41.423, 116.108-117.352, 116.108-204.161c0-9.728-0.59-19.317-1.726-28.74c 20.136,36.97, 31.032,71.4, 32.001,101.813\n\t\tl 0.002,0.072c 0.016,0.474, 0.026,0.946, 0.039,1.422l 0.014,0.724C 383.99,318.539, 384,319.27, 384,320\n\t\tC 384,320.792, 383.99,321.581, 383.975,322.37z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"eyedropper, color, pick, sample\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 384,160l-56,0 c-32,0-8-32-8-96c0-7.555-0.9-13.307-2.474-17.61C 309.875,19.611, 285.236,0, 256,0\n\tc-29.235,0-53.875,19.611-61.526,46.39C 192.901,50.693, 192,56.445, 192,64c0,64, 24,96-8,96l-56,0 l0,64 l 64,0 l0,248 c0,4.4, 3.6,8, 8,8l 16,0 \n\tc 4.4,0, 8,3.6, 8,8l0,16 c0,4.4, 3.6,8, 8,8l 48,0 c 4.4,0, 8-3.6, 8-8l0-16 c0-4.4, 3.6-8, 8-8l 16,0 c 4.4,0, 8-3.6, 8-8L 320,224 l 64,0 L 384,160 z M 288,448.804\n\tc-15.649,3.189-28.007,15.547-31.196,31.196l-1.607,0 c-3.19-15.649-15.547-28.007-31.196-31.196L 224.001,224 l 64,0 L 288.001,448.804 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"eyedropper, color, pick, sample\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 490.927,21.072 C 561.337,91.482 435.214,134.438 405.506,164.141 C 400.001,169.649 394.697,174.949 389.718,179.932 L 420.037,210.249 C 426.232,216.445 426.232,226.583 420.037,232.778 L 389.762,263.055 C 383.567,269.248 373.428,269.248 367.234,263.055 L 337.070,232.89 L 148.485,421.473 C 116.196,453.766 54.276,481.961 24.237,512 C 15.225,502.988 12.12,499.882 12.12,499.882 C 12.12,499.882 9.012,496.776 0,487.763 C 30.039,457.722 58.235,395.805 90.527,363.511 L 279.115,174.927 L 248.953,144.763 C 242.756,138.568 242.756,128.431 248.953,122.236 L 279.226,91.959 C 285.424,85.762 295.562,85.762 301.756,91.959 L 332.074,122.277 C 337.054,117.295 342.355,111.997 347.862,106.488 C 377.566,76.786 420.519-49.336 490.927,21.072 Z M 133.82,406.807 L 325.621,214.999 L 296.997,186.374 L 105.194,378.181 C 90.361,393.013 75.489,416.335 61.103,438.896 L 61.037,438.999 C 53.163,451.344 45.563,463.261 37.845,474.154 C 48.772,466.41 60.723,458.789 73.102,450.896 C 95.66,436.512 118.986,421.639 133.82,406.807 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"palette, color, paint, art\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,64C 114.615,64,0,164.288,0,288c0,82.947, 51.529,155.359, 128.101,194.078c 43.186,21.34, 80.116,5.816, 54.146-30.87\n\tC 168.359,437.333, 160,419.48, 160,400c0-44.183, 42.98-80, 96-80s 96,35.817, 96,80c0,19.48-8.359,37.332-22.246,51.207\n\tc-25.97,36.685, 10.955,52.209, 54.139,30.874C 460.469,443.363, 512,370.949, 512,288C 512,164.288, 397.385,64, 256,64z M 64,320\n\tc-17.673,0-32-14.326-32-32s 14.327-32, 32-32s 32,14.326, 32,32S 81.673,320, 64,320z M 128,219.713\n\tc-22.958,13.255-48.732,11.593-57.569-3.713c-8.836-15.306, 2.611-38.458, 25.569-51.713s 48.732-11.593, 57.569,3.713\n\tC 162.406,183.306, 150.958,206.458, 128,219.713z M 256,192c-35.346,0-64-21.49-64-48s 28.654-48, 64-48c 35.347,0, 64,21.49, 64,48\n\tS 291.347,192, 256,192z M 384,219.713c-22.958-13.255-34.406-36.407-25.569-51.713s 34.611-16.968, 57.569-3.713\n\ts 34.406,36.407, 25.569,51.713S 406.958,232.968, 384,219.713z M 448,320c-17.673,0-32-14.326-32-32s 14.327-32, 32-32s 32,14.326, 32,32\n\tS 465.673,320, 448,320z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"palette, color, paint, art\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 257.54,64C 92.994,64,0,173.352,0,253.347c0,121.887, 109.354,190.477, 200.308,212.956\n\tC 291.27,488.791, 325.48,447.538, 324.022,400c-1.771-57.75, 27.073-58.496, 47.52-56.459C 391.973,345.592, 512,373.305, 512,281.326\n\tC 512,167.5, 422.072,64, 257.54,64z M 224,96c 17.673,0, 32,14.327, 32,32s-14.327,32-32,32s-32-14.327-32-32S 206.327,96, 224,96z\n\t M 80,288.246c-8.973,0-16.246-7.273-16.246-16.246S 71.027,255.754, 80,255.754S 96.246,263.027, 96.246,272S 88.973,288.246, 80,288.246z\n\t M 128,224c-17.673,0-32-14.327-32-32s 14.327-32, 32-32s 32,14.327, 32,32S 145.673,224, 128,224z M 256,352c-35.346,0-64-21.49-64-48\n\ts 28.654-48, 64-48c 35.347,0, 64,21.49, 64,48S 291.347,352, 256,352z M 368,224c-26.51,0-48-21.49-48-48s 21.49-48, 48-48s 48,21.49, 48,48\n\tS 394.51,224, 368,224z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"brush, art, paint\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 160.061,320C 96.036,320, 117.88,433.14,0,458.637c 32.011,21.324, 125.898,39.027, 192.072-10.668\n\t\t\tC 249.298,404.994, 224.085,320, 160.061,320zM 505.965,38.035c-32.009-32.007-110.472,72.027-171.617,107.603c-60.98,37.464-144.033,112.027-96.021,160.037\n\t\t\tc 48.010,48.013, 122.571-35.040, 160.036-96.022C 433.938,148.505, 537.973,70.042, 505.965,38.035z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"blog, pencil, feed, publish, broadcast, write\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,96l0,48 c 47.011,0, 91.209,18.307, 124.451,51.549S 368,272.988, 368,320l 48,0 C 416,196.289, 315.712,96, 192,96zM 192,0l0,48 c 36.741,0, 72.357,7.185, 105.859,21.355c 32.384,13.697, 61.478,33.316, 86.474,58.312\n\t\t\tc 24.995,24.996, 44.614,54.090, 58.312,86.474C 456.815,247.643, 464,283.26, 464,320l 48,0 C 512,143.27, 368.73,0, 192,0zM 178.745,242.745L 44.18,377.311l 90.51,90.51l 134.565-134.565c 24.993-24.993, 24.994-65.516,0-90.51\n\t\t\tC 244.261,217.751, 203.738,217.752, 178.745,242.745zM0,512L 106.806,493.675L 18.325,405.194 \t\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"blog, pen, feed, publish, broadcast, write\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,96 C 315.712,96 416,196.289 416,320 L 368,320 C 368,272.988 349.693,228.791 316.451,195.549 C 283.209,162.307 239.011,144 192,144 L 192,96 ZM 192,0 C 368.73,0 512,143.27 512,320 L 464,320 C 464,283.26 456.815,247.643 442.645,214.141 C 428.947,181.757 409.328,152.663 384.333,127.667 C 359.337,102.671 330.243,83.052 297.859,69.355 C 264.357,55.185 228.741,48 192,48 L 192,0 ZM 287.195,224.804 C 309.074,246.682 319.993,275.357 319.98,304.029 C 288,352.027 288,416 288,416 C 160,416 64,512 64,512 L 57,505 L 45.435,493.435 L 187.226,351.644 C 188.784,351.877 190.377,352 192,352 C 209.673,352 224,337.673 224,320 C 224,302.327 209.673,288 192,288 C 174.327,288 160,302.327 160,320 C 160,321.623 160.123,323.217 160.356,324.774 L 18.565,466.565 L 0,448 C 0,448 96,352 96,224 C 96,224 159.999,224 207.999,192 C 236.663,192 265.326,202.935 287.195,224.804 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"marker, highlight, pencil, write, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 228,492L 512,492L 512,484L 236,484 \tzM 244,476L 512,476L 512,468L 252,468 \tzM 212,508L 512,508L 512,500L 220,500 \tzM 292,428L 512,428L 512,420L 300,420 \tzM 276,444L 512,444L 512,436L 284,436 \tzM 260,460L 512,460L 512,452L 268,452 \tzM 469.486,42.514C 443.517,16.544, 413.958,0, 385.073,0c-19.764,0-39.211,7.745-56.979,25.514L 80.223,271.775L0,480l 32,32\n\tl 208.223-80.225l 18.041-18.157l 228.224-229.713C 530.225,140.167, 513.225,86.252, 469.486,42.514z M 240.149,386.447L 125.551,271.85\n\tL 327.355,71.356l 113.287,113.288L 240.149,386.447z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"home, house, building, dualtone\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,16L0,272l 48,48l 48-48l0,240 l 128,0 l0-32 l0-64 l 64,0 l0,96 l 128,0 L 416,272 l 48,48l 48-48L 256,16z M 132,480l-4,0 L 128,240 l 4-4L 132,480 z M 148,480l-8,0 L 140,228 \n\tl 8-8L 148,480 z M 164,480l-8,0 L 156,212 l 8-8L 164,480 z M 180,480l-8,0 L 172,196 l 8-8L 180,480 z M 196,384l-4,0 l0,32 l0,64 l-4,0 L 188,180 l 8-8L 196,384 z M 212,384l-8,0 L 204,164 l 8-8L 212,384 z M 228,384\n\tl-8,0 L 220,148 l 8-8L 228,384 z M 244,384l-8,0 L 236,132 l 8-8L 244,384 z M 260,384l-8,0 L 252,116 l 4-4l 4,4L 260,384 z M 276,384l-8,0 L 268,124 l 8,8L 276,384 z M 292,384l-8,0 L 284,140 l 8,8L 292,384 z\n\t M 308,384l-8,0 L 300,156 l 8,8L 308,384 z M 324,480l-4,0 l0-64 l0-32 l-4,0 L 316,172 l 8,8L 324,480 z M 340,480l-8,0 L 332,188 l 8,8L 340,480 z M 356,480l-8,0 L 348,204 l 8,8L 356,480 z M 372,480l-8,0 L 364,220 \n\tl 8,8L 372,480 z M 384,480l-4,0 L 380,236 l 4,4L 384,480 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"marker, highlight, pencil, write\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 469.486,42.514C 443.517,16.544, 413.958,0, 385.073,0c-19.763,0-39.211,7.745-56.979,25.514L 80.223,271.776L0,480l 32,32\n\tl 208.223-80.225l 18.040-18.157l 228.224-229.713C 530.225,140.167, 513.225,86.252, 469.486,42.514z M 240.149,386.447L 125.551,271.85\n\tL 327.355,71.356l 113.288,113.288L 240.149,386.447z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pen, blog, write, edit, note\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 258.027,130.026c-21.205,20.571-56.098,55.135-63.634,62.679C 135.58,251.512-2.507,415.325, 0.036,511.965\n\t\t\tc 96.64,2.551, 260.449-135.547, 319.263-194.354c 7.544-7.545, 42.108-42.441, 62.673-63.64L 258.027,130.026zM 472.339,102.090l-9.023-9.007L 512,52.861L 459.14,0l-40.222,48.686l-9.018-9.039\n\t\t\tc-27.895-1.631-72.881,25.375-117.215,61.040l 118.63,118.63c 13.414-16.688, 25.524-33.433, 35.421-49.356\n\t\t\tc 9.648,36.481-5.979,102.913-117.835,190.941l 14.233,14.232C 448,299.708, 498.531,211.017, 466.263,131.77\n\t\t\tC 470.452,120.691, 472.834,110.538, 472.339,102.090z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pen, blog, write, edit, note\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 325.926,78.222L 352,0L 128,0 l 26.074,78.222L 80,256l 128,256l 64,0 l 128-256L 325.926,78.222z M 307.603,32l-10.667,32L 183.064,64 \n\tl-10.667-32L 307.603,32 z M 256,472.445L 256,285.258 c 18.641-6.591, 32-24.359, 32-45.258c0-26.51-21.49-48-48-48s-48,21.49-48,48\n\tc0,20.898, 13.359,38.667, 32,45.258l0,187.188 L 115.171,254.789L 181.333,96l 117.333,0 l 66.161,158.789L 256,472.445z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pen, blog, write, edit, note\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,64L 336,0L 144,0L 160,64 \t\tzM 320,96L 160,96 L 80,256l 128,256l 16,0 L 224,288 c-17.6,0-32-14.4-32-32l0-32 c0-17.6, 14.4-32, 32-32l 32,0 c 17.6,0, 32,14.4, 32,32l0,32 \n\t\t\tc0,17.6-14.4,32-32,32l0,224 l 16,0 l 128-256L 320,96z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pen, blog, write, edit, note\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 480.002,144.003L 368.003,32.004L 400.003,0.004L 512.002,112.003zM 448,176 L 432,352 C 288,352 80,512 80,512 L 53.435,485.435 L 190.267,348.603 C 195.754,350.787 201.734,352 208,352 C 234.51,352 256,330.51 256,304 C 256,277.49 234.51,256 208,256 C 181.49,256 160,277.49 160,304 C 160,310.266 161.213,316.245 163.397,321.733 L 26.565,458.565 L 0,432 C 0,432 160,224 160,80 L 336,64 L 448,176 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pen, blog, write, edit, note\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 464.001,192.003L 320.003,48.004L 368.002,0.004L 512.001,144.003zM 304,96 L 416,208 L 352,384 L 64,512 L 43.313,491.313 L 215.716,318.911 C 218.359,319.618 221.134,320 224,320 C 241.673,320 256,305.673 256,288 C 256,270.327 241.673,256 224,256 C 206.327,256 192,270.327 192,288 C 192,290.865 192.382,293.641 193.089,296.285 L 20.687,468.687 L 0,448 L 128,160 L 304,96 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"quill, feather, write, blog, edit\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,293.333c0,0, 101.972-61.18, 159.383-37.013c 11.901-18.134, 23.624-37.668, 35.101-57.611\n\tC 330.321,184.949, 256,197.333, 256,197.333s 95.106-57.061, 153.333-39.2c 11.675-21.054, 23.027-41.821, 33.978-61.152\n\tC 396.923,93.847, 352,101.333, 352,101.333s 59.574-35.744, 113.289-41.799C 482.188,32.104, 497.874,10.594, 512,0C 231.5,0, 64,320,0,512\n\tl 32,0 l 96-160c0,0, 32,32, 128,0c 22.737-7.579, 45.474-28.626, 67.786-56.967C 267.478,280.756, 192,293.333, 192,293.333z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"quill, feather, write, blog, edit\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,512l 32,0 l 96-160c0,0,0,0, 96,0S 380.5,105.5, 512,0C 231.5,0, 64,320,0,512z M 196,288l-36,0 c0,0, 88.5-160, 224-224\n\tC 384,64, 262.5,171.5, 196,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"quill, feather, write, blog, edit\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,512C 64,320, 231.5,0, 512,0C 380.5,105.5, 320,352, 224,352s-96,0-96,0L 32,512L0,512 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pencil, write, edit, blog, note\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 320,64L 64,320L0,512L 192,448L 448,192 \tzM 512,90.51C 512,40.522, 471.478,0, 421.49,0c-27.789,0-52.648,12.528-69.251,32.239L 352,32l 127.761,127.761\n\t\tC 499.473,143.158, 512,118.299, 512,90.51zM 224,480L 512,480L 512,512L 224,512z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pencil, write, edit, blog, note\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 424,168 L 208,384 L 128,384 L 128,304 L 344,88 ZM 451,141 L 371,61 L 399.029,32.971 C 408.363,23.637 423.636,23.637 432.97,32.971 L 479.029,79.030 C 488.363,88.364 488.363,103.637 479.029,112.971 L 451,141 ZM 384,281.791L 384,448 L 64,448 L 64,128 l 176,0 l 64-64L 48,64 C 21.6,64,0,85.6,0,112l0,352 c0,26.4, 21.6,48, 48,48l 352,0 c 26.4,0, 48-21.6, 48-48L 448,224.319 \n\tL 384,281.791z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pencil, write, edit, blog, note\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 224,352 L 224,416 L 190.4,430.399 L 81.6,321.6 L 96,288 L 160,288 L 160,352 ZM 67.2,355.2 L 156.8,444.8 L 0,512 ZM 512,144 L 272,384 L 256,384 L 256,352 L 464,144 L 440,120 L 240,320 L 192,320 L 192,272 L 392,72 L 368,48 L 160,256 L 128,256 L 128,240 L 368,0 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pencil, write, edit, blog, note\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 192,320l 64-32L 480,64l-32-32L 224,256L 192,320z M 144.65,433.549c-15.816-33.364-32.833-50.381-66.198-66.197L 128,230.956\n\tL 192,192L 384,0l-96,0 L 96,192L0,512l 320-96l 192-192l0-96 L 320,320l-38.956,64\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pencil, write, edit, blog, note\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 397.042,114.956C 356.341,74.43, 338.388,26.228, 356.943,7.293c 18.556-18.935, 66.592-1.432, 107.293,39.095\n\tc 0.23,0.229, 0.459,0.458, 0.688,0.688c 40.701,40.526, 58.654,88.729, 40.099,107.663c-18.555,18.935-66.592,1.431-107.293-39.095\n\tC 397.5,115.415, 397.271,115.186, 397.042,114.956z M 195.896,406.974l 225.637-225.637c 13.607,7.621, 27.189,13.070, 40.16,16.048\n\tL 224,435.078L0,512l 76.922-224l 237.69-237.691c 1.169,5.179, 2.738,10.47, 4.718,15.841c 2.948,8.001, 6.768,16.154, 11.348,24.302\n\tl-225.65,225.653l 26.869,26.869l 220.66-220.661c 5.448,6.685, 11.333,13.223, 17.62,19.511c 6.339,6.339, 12.858,12.233, 19.485,17.645\n\tL 169.027,380.105L 195.896,406.974z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"pencil, write, edit, blog, note\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 432,0 C 476.182,0 512,35.817 512,80 C 512,98.010 506.045,114.629 496,128 L 464,160 L 352,48 L 384,16 C 397.371,5.955 413.989,0 432,0 ZM 32,368L0,512l 144-32l 296-296L 328,72L 32,368z M 357.789,181.789l-224,224l-27.578-27.578l 224-224L 357.789,181.789z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"newspaper, paper\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,128L 448,64 L0,64 l0,352 c0,17.673, 14.327,32, 32,32l 432,0 c 26.511,0, 48-21.489, 48-48L 512,128 L 448,128 z M 416,416L 32,416 L 32,96 l 384,0 L 416,416 zM 64,160L 384,160L 384,192L 64,192zM 256,224L 384,224L 384,256L 256,256zM 256,288L 384,288L 384,320L 256,320zM 256,352L 352,352L 352,384L 256,384zM 64,224L 224,224L 224,384L 64,384z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"office, home, house, work, building\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M0,512l 256,0 L 256,0 L0,0 L0,512 z M 160,64l 64,0 l0,64 l-64,0 L 160,64 z M 160,192l 64,0 l0,64 l-64,0 L 160,192 z M 160,320l 64,0 l0,64 l-64,0 L 160,320 z M 32,64l 64,0 l0,64 L 32,128 L 32,64 z M 32,192\n\t\t\tl 64,0 l0,64 L 32,256 L 32,192 z M 32,320l 64,0 l0,64 L 32,384 L 32,320 zM 288,160L 512,160L 512,192L 288,192zM 288,512L 352,512L 352,384L 448,384L 448,512L 512,512L 512,224L 288,224 \t\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"home, house, building\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 128,64L0,224L 135,224L 263,64 \tzM0,256L 128,256L 128,480L0,480zM 320,64L 160,256l0,224 l 128,0 l0-96 c0-17.674, 14.327-32, 32-32s 32,14.326, 32,32l0,96 l 128,0 L 480,256 L 320,64z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"home, house, building\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0L0,192l0,96 l 64-48l0,240 c0,17.6, 14.399,32, 32,32l 320,0 c 17.6,0, 32-14.4, 32-32L 448,240 l 64,48l0-96 L 256,0z M 416,479.942\n\t\tc-0.018,0.020-0.038,0.041-0.059,0.058L 256,480 L 256,320 l-96,0 l0,160 L 96.058,480 c-0.020-0.017-0.041-0.038-0.058-0.058L 96,216 L 256,96l 160,120L 416,479.942 zM 288,224L 352,224L 352,288L 288,288z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"home, house, building\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,0L0,192l0,96 l 64-48l0,240 c0,17.6, 14.4,32, 32,32l 320,0 c 17.6,0, 32-14.4, 32-32L 448,240 l 64,48l0-96 L 256,0z M 416,479.942\n\tc-0.017,0.020-0.038,0.041-0.058,0.058L 320,480 L 320,320 L 192,320 l0,160 L 96.058,480 c-0.020-0.017-0.041-0.038-0.058-0.058L 96,216 L 256,96l 160,120L 416,479.942 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"home, house, building\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,32L0,288l 48,48l 48-48l 32,192l 96,0 l0-96 l 64,0 l0,96 l 96,0 l 32-192l 48,48l 48-48L 256,32z M 256,237.254\n\t\tc-24.994,0-45.256-20.26-45.256-45.254s 20.262-45.255, 45.256-45.255c 24.992,0, 45.255,20.262, 45.255,45.255\n\t\tC 301.255,216.994, 280.992,237.254, 256,237.254z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"home, house, building\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,32L0,288l 48,48l 48-48l 32,192l 128,0 l 128,0 l 32-192l 48,48l 48-48L 256,32z M 256,237.254c-24.994,0-45.256-20.26-45.256-45.254\n\t\ts 20.262-45.255, 45.256-45.255c 24.992,0, 45.255,20.262, 45.255,45.255C 301.255,216.994, 280.992,237.254, 256,237.254z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"home, house, building\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 448,288 L 448,480 L 64,480 L 64,288 L 128,288 L 128,416 L 384,416 L 384,288 ZM 512,295.223 L 256,96.509 L 0,295.223 L 0,214.204 L 256,15.491 L 512,214.205 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"home, house, building\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,64L0,288l 64,0 l0,160 l 128,0 l0-96 l 128,0 l0,96 l 128,0 L 448,288 l 64,0 L 256,64z M 240,288l-48,0 l0-48 l 48,0 L 240,288 z M 240,208l-48,0 l0-48 l 48,0 L 240,208 z M 320,288l-48,0 \n\t\tl0-48 l 48,0 L 320,288 z M 320,208l-48,0 l0-48 l 48,0 L 320,208 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"home, house, building\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 256,32L0,288L 64,288L 256,96L 448,288L 512,288 \t\tzM 96,320L 96,480L 224,480L 224,352L 288,352L 288,480L 416,480L 416,320L 256,160 \t\tz\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"home, house, building\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,304L 416,208L 416,64L 352,64L 352,144L 256,48L0,304L0,320L 64,320L 64,480L 224,480L 224,384L 288,384L 288,480L 448,480L 448,320L 512,320 z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"home, house, building\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,295.222 L 256,96.509 L 0,295.223 L 0,214.204 L 256,15.491 L 512,214.205 ZM 448,288 L 448,480 L 320,480 L 320,352 L 192,352 L 192,480 L 64,480 L 64,288 L 256,144 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-tags=\"home, house, building\" style=\"margin-left: 9px; margin-top: 9px;\"><path d=\"M 512,295.223 L 256,96.509 L 0,295.223 L 0,214.204 L 256,15.491 L 512,214.205 ZM 448,288 L 448,480 L 64,480 L 64,288 L 256,144 Z\" transform=\"scale(0.02734375 0.02734375)\"></path></svg>"]},{"metadata":{"id":"whhglyphs","name":"WebHostingHub Glyphs","link":"http://www.webhostinghub.com/glyphs/","grid":"16","author":"WebHostingHub","authorLink":"http://www.webhostinghub.com","license":"CC BY 3.0","licenseLink":"http://creativecommons.org/licenses/by/3.0/","defaultunicode":true},"svgs":["<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"©\" data-tags=\"copyright\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25t 70,70t 96.25,25.75t 96.25-25.75t 70-70\nt 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 367,216q-3,10.5 -11.5,17.25t-19.5,6.75q-4,0 -8-1.5t-6.5-3t-5.75-5t-4.5-5t-3.5-5.25t-2.75-4.25q-19.5-24 -49-24q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75q 29.5,0 49-24q 1-1 4.75-6.75t 6.25-8.5t 8-5.75t 12-3q 11,0 19.5,6.75\nt 11.5,17.25q 0.5,2 1,5.5t-1.75,11.75t-9.25,14.75q-18.5,25 -45,40.5t-56,15.5q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5q 30.5,0 57.25,15.75t 45.25,41.75q 6,5.5 8,13.25t 1,12.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"¥\" data-tags=\"yen\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 439.5,52.5l-151.5,151.5l0,52 l 64,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-64,0 l0,32 l 64,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-64,0 l0,64 q0,13.5 -9.25,22.75t-22.5,9.25t-22.5-9.25t-9.25-22.75l0-64 l-64,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 64,0 \nl0-32 l-64,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 64,0 l0-52 l-151.5-151.5q-9-9 -9-21.75t 9-21.75t 21.75-9t 21.75,9l 139.5,139.5l 140-139.5q 9-9 21.75-9t 21.75,9t 9,21.75t-9,21.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"z\" data-tags=\"z\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 432,64l-274,384l 258,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-320,0 q-13.5,0 -22.75-9.25t-9.25-22.75q0-12 16-32l 274-384l-258,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 320,0 q 13.5,0 22.75,9.25t 9.25,22.75q0,13 -16,32z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"y\" data-tags=\"y\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,33.5l0,350.5 q0,53 -37.5,90.5t-90.5,37.5l-160,0 l0,0 q-13.5,0 -22.75-9.5t-9.25-22.5t 9.25-22.5t 22.75-9.5l0,0 l 160,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-81.5 q-30,17.5 -64,17.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-160 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,160 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 \nq 26.5,0 45.25-18.75t 18.75-45.25l0-160 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,1 l0,0.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"x\" data-tags=\"x\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 295,256l 143,200.5q 10.5,14 10.5,23.5q0,13.5 -9.5,22.75t-22.5,9.25q-3.5,0 -6.75-0.5t-5.75-1.75t-4.25-2.25t-4-3t-2.75-2.75t-2.5-3.25l-2-2.5l-132.5-185l-132,185l-2,2.5t-2.5,3.25t-2.75,2.75t-4,3t-4.5,2.25t-5.75,1.75t-6.5,0.5q-13,0 -22.5-9.25t-9.5-22.75q0-9.5 10.5-23.5l 143-200.5l-145.5-203.5\nq-0.5-0.5 -2-2.75t-2.25-3.25t-1.75-3.25t-1.25-5t-0.25-6.25q0-13 9.25-22.5t 22.75-9.5q 19,0 28,17l 131.5,184.5l 132-184.5q 9-17 28-17q 13.5,0 22.75,9.5t 9.25,22.5q0,3.5 -0.25,6.25t-1.25,5t-1.75,3.25t-2.25,3.25t-2,2.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"w\" data-tags=\"w\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,36l0,348 q0,53 -37.5,90.5t-90.5,37.5l-32,0 l-64,0 l-32,0 q-53,0 -90.5-37.5t-37.5-90.5l0-352 q0-13 9.5-22.5t 22.75-9.5t 22.75,9.5t 9.5,22.5q0,0.5 -0.25,1.5t-0.25,1.5l0,349 q0,26.5 18.75,45.25t 45.25,18.75l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-400 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,400 \nq0,6.5 4.75,11.25t 11.25,4.75l 16,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-352 q0-13 9.5-22.5t 22.75-9.5t 22.75,9.5t 9.5,22.5q0,1 -0.5,4z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"v\" data-tags=\"v\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,312.5q0,19.5 -8.5,27.5l-163,163q-9,9 -20.5,9t-20.5-9l-163-163q-8.5-8.5 -8.5-25l0-283 q0-13 9.5-22.5t 22.75-9.5t 22.75,9.5t 9.5,22.5l-0.5,0 l0,276.5 l 128,128l 128-128l0-276.5 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,280.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"u\" data-tags=\"u\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,33l0,351 q0,53 -37.5,90.5t-90.5,37.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-352 q0-13 9.5-22.5t 22.75-9.5t 22.75,9.5t 9.5,22.5l-0.5,0.5l0,351.5 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-352 q0-13 9.5-22.5t 22.75-9.5t 22.75,9.5t 9.5,22.5q-0.5,0.5 -0.5,1z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"t\" data-tags=\"t\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,64l-128,0 l0,416 q0,13.5 -9.5,22.75t-22.5,9.25t-22.5-9.25t-9.5-22.75l0-416 l-128,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 320,0 q 13,0 22.5,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"s\" data-tags=\"s\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416.25,160q-13.25,0 -22.75-9.25t-9.5-22.75q0-26.5 -18.75-45.25t-45.25-18.75l-127.5,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,32 q0,26.5 18.75,45.25t 45.25,18.75l 127.5,0 q 53,0 90.5,37.5t 37.5,90.5l0,32 q0,53 -37.5,90.5t-90.5,37.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5\nq0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-32 q0-26.5 -18.75-45.25t-45.25-18.75l-128,0 q-53,0 -90.25-37.5t-37.25-90.5l0-32 q0-53 37.5-90.5t 90.5-37.5l 127.5,0 q 53,0 90.5,37.5t 37.5,90.5q0,13.5 -9.25,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"r\" data-tags=\"r\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 404.5,288q 20.5,18 32,43t 11.5,53l0,96 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-96 q0-26.5 -18.75-45.25t-45.25-18.75l-192,0 l0,160 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5l0,0 l 224,0 q 53,0 90.5,37.5t 37.5,90.5l0,64 q0,28 -11.5,53\nt-32,43zM 384,128q0-26.5 -18.75-45.25t-45.25-18.75l-192,0 l0,192 l 192,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"q\" data-tags=\"q\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 439,459.5q 9,9 9,21.75t-9,21.75t-21.75,9t-21.75-9l-9.5-9.5q-30.5,18.5 -66,18.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-256 q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53,0 90.5,37.5t 37.5,90.5l0,256 q0,35.5 -18.5,66zM 384,384l0-256 q0-26.5 -18.75-45.25t-45.25-18.75l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25\nl0,256 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 8,0 17.5-3l-73-73q-9-9 -9-21.75t 9-21.75t 21.75-9t 21.75,9l 73,73q 3-9.5 3-17.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"p\" data-tags=\"p\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,320l-192,0 l0,160 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5l0,0 l 224,0 q 53,0 90.5,37.5t 37.5,90.5l0,64 q0,53 -37.5,90.5t-90.5,37.5zM 384,128q0-26.5 -18.75-45.25t-45.25-18.75l-192,0 l0,192 l 192,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"o\" data-tags=\"o\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,512l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-256 q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53,0 90.5,37.5t 37.5,90.5l0,256 q0,53 -37.5,90.5t-90.5,37.5zM 384,128q0-26.5 -18.75-45.25t-45.25-18.75l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,256 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-256 \nz\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"n\" data-tags=\"n\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512q-15.5,0 -28-16l-260-364.5l0,348.5 q0,13 -9.25,22.5t-22.75,9.5t-22.75-9.5t-9.25-22.5l0-447.5 q0-13.5 9.25-23t 22.75-9.5q 17.5,0 27.5,16l 260.5,365l0-349 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,448 q0,13 -9.5,22.5t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"m\" data-tags=\"m\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416.25,512q-13.25,0 -22.75-9.25t-9.5-22.75l0-348.5 l-100,140.5q-11.5,16 -28,16q-16,0 -28-16l-100-140.5l0,348.5 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5q 8.5,0 14.5,3t 7.75,5.25t 5.25,7.75l 132.5,186l 132.5-186q 4-5.5 5.75-7.5t 7.75-5.25t 14-3.25\nq 13,0 22.5,9.5t 9.5,22.5l0,448 q0,13.5 -9.25,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"l\" data-tags=\"l\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-13,0 -22.5-9.25t-9.5-22.75l0-448 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.25t 9.25,22.75l0,400 q0,6.5 4.75,11.25t 11.25,4.75l 272,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"k\" data-tags=\"k\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,160q0,28 -11.5,53t-32,43q 20.5,18 32,43t 11.5,53l0,126.5 l0,0.75 l0,0.75 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-128 q0-26.5 -18.75-45.25t-45.25-18.75l-192,0 l0,192 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-448 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.25t 9.25,22.75\nl0,192 l 192,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-128 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,1 l0,0.5 l0,126.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"j\" data-tags=\"j\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,384q0,53 -37.5,90.5t-90.5,37.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5q0-13 9.5-22.5t 22.75-9.5t 22.5,9.25t 9.25,22.75q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-352 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,352 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"320\" height=\"512\" viewBox=\"0 0 320 512\" data-du=\"i\" data-tags=\"i\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 224,64l-31.5,0 l0,384 l 31.5,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-128,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 32.5,0 l0-384 l-32.5,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 128,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"h\" data-tags=\"h\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416.25,512q-13.25,0 -22.5-9.25t-9.25-22.75l0-176 q0-6.5 -4.75-11.25t-11.25-4.75l-224.5,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,176 q0,13.5 -9.25,22.75t-22.75,9.25t-22.75-9.25t-9.25-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5t 22.75,9.5t 9.25,22.5l0,176 q0,6.5 4.75,11.25t 11.25,4.75l 224.5,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-176 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.25t 9.5,22.75l0,448 q0,13.5 -9.5,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"g\" data-tags=\"g\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,320q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 128,0 q 13,0 22.5,9.5t 9.5,22.5l0,96 q0,53 -37.5,90.5t-90.5,37.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-256 q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53,0 90.5,37.5t 37.5,90.5q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75q0-26.5 -18.75-45.25\nt-45.25-18.75l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,256 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-64 l-96,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"f\" data-tags=\"f\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416.5,64l-272.5,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,128 q0,6.5 4.75,11.25t 11.25,4.75l 208,0 q 13.5,0 23,9.5t 9.5,22.75t-9.5,22.5t-23,9.25l-208,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,176 q0,13.5 -9.25,22.75t-22.75,9.25t-22.75-9.25t-9.25-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5l 320.5,0 q 13,0 22.5,9.5\nt 9.5,22.75t-9.5,22.5t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"e\" data-tags=\"e\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,64l-272,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,128 q0,6.5 4.75,11.25t 11.25,4.75l 208,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-208,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,128 q0,6.5 4.75,11.25t 11.25,4.75l 272,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-320,0 q-13.5,0 -22.75-9.25\nt-9.25-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5l 320,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"d\" data-tags=\"d\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,512l-224,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5l 224,0 q 53,0 90.5,37.5t 37.5,90.5l0,256 q0,53 -37.5,90.5t-90.5,37.5zM 384,128q0-26.5 -18.75-45.25t-45.25-18.75l-176,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,352 q0,6.5 4.75,11.25t 11.25,4.75l 176,0 q 26.5,0 45.25-18.75t 18.75-45.25\nl0-256 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"c\" data-tags=\"c\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416.25,160q-13.25,0 -22.5-9.25t-9.25-22.75q0-26.5 -18.75-45.25t-45.75-18.75l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,256 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 27,0 45.75-18.75t 18.75-45.25q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.5t 9.5,22.5q0,53 -37.5,90.5t-91,37.5l-128,0 q-53,0 -90.5-37.5\nt-37.5-90.5l0-256 q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53.5,0 91,37.5t 37.5,90.5q0,13.5 -9.5,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"b\" data-tags=\"b\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,352l0,32 q0,53 -37.5,90.5t-90.5,37.5l-224,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5l 224,0 q 53,0 90.5,37.5t 37.5,90.5l0,32 q0,28 -11.75,53t-31.75,43q 20,18 31.75,43t 11.75,53zM 384,128q0-26.5 -18.75-45.25t-45.25-18.75l-176,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nl0,128 q0,6.5 4.75,11.25t 11.25,4.75l 176,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-32 zM 384,352q0-26.5 -18.75-45.25t-45.25-18.75l-176,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,128 q0,6.5 4.75,11.25t 11.25,4.75l 176,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"a\" data-tags=\"a\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 415.75,512q-13.25,0 -22.5-9.25t-9.25-22.75l0-144 q0-6.5 -4.75-11.25t-11.25-4.75l-224,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,144 q0,13.5 -9.5,22.75t-22.5,9.25t-22.5-9.25t-9.5-22.75l0-352 q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53,0 90.5,37.5t 37.5,90.5l0,352 q0,13.5 -9.5,22.75t-22.75,9.25zM 384,128\nq0-26.5 -18.75-45.25t-45.25-18.75l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,112 q0,6.5 4.75,11.25t 11.25,4.75l 224,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-112 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"Z\" data-tags=\"Z\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 432,64l-274,384l 258,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-320,0 q-13.5,0 -22.75-9.25t-9.25-22.75q0-12 16-32l 274-384l-258,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 320,0 q 13.5,0 22.75,9.25t 9.25,22.75q0,13 -16,32z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"Y\" data-tags=\"Y\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,33.5l0,350.5 q0,53 -37.5,90.5t-90.5,37.5l-160,0 l0,0 q-13.5,0 -22.75-9.5t-9.25-22.5t 9.25-22.5t 22.75-9.5l0,0 l 160,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-81.5 q-30,17.5 -64,17.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-160 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,160 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 \nq 26.5,0 45.25-18.75t 18.75-45.25l0-160 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,1 l0,0.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"X\" data-tags=\"X\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 295,256l 143,200.5q 10.5,14 10.5,23.5q0,13.5 -9.5,22.75t-22.5,9.25q-3.5,0 -6.75-0.5t-5.75-1.75t-4.25-2.25t-4-3t-2.75-2.75t-2.5-3.25l-2-2.5l-132.5-185l-132,185l-2,2.5t-2.5,3.25t-2.75,2.75t-4,3t-4.5,2.25t-5.75,1.75t-6.5,0.5q-13,0 -22.5-9.25t-9.5-22.75q0-9.5 10.5-23.5l 143-200.5l-145.5-203.5\nq-0.5-0.5 -2-2.75t-2.25-3.25t-1.75-3.25t-1.25-5t-0.25-6.25q0-13 9.25-22.5t 22.75-9.5q 19,0 28,17l 131.5,184.5l 132-184.5q 9-17 28-17q 13.5,0 22.75,9.5t 9.25,22.5q0,3.5 -0.25,6.25t-1.25,5t-1.75,3.25t-2.25,3.25t-2,2.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"W\" data-tags=\"W\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,36l0,348 q0,53 -37.5,90.5t-90.5,37.5l-32,0 l-64,0 l-32,0 q-53,0 -90.5-37.5t-37.5-90.5l0-352 q0-13 9.5-22.5t 22.75-9.5t 22.75,9.5t 9.5,22.5q0,0.5 -0.25,1.5t-0.25,1.5l0,349 q0,26.5 18.75,45.25t 45.25,18.75l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-400 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,400 \nq0,6.5 4.75,11.25t 11.25,4.75l 16,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-352 q0-13 9.5-22.5t 22.75-9.5t 22.75,9.5t 9.5,22.5q0,1 -0.5,4z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"V\" data-tags=\"V\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,312.5q0,19.5 -8.5,27.5l-163,163q-9,9 -20.5,9t-20.5-9l-163-163q-8.5-8.5 -8.5-25l0-283 q0-13 9.5-22.5t 22.75-9.5t 22.75,9.5t 9.5,22.5l-0.5,0 l0,276.5 l 128,128l 128-128l0-276.5 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,280.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"U\" data-tags=\"U\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,33l0,351 q0,53 -37.5,90.5t-90.5,37.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-352 q0-13 9.5-22.5t 22.75-9.5t 22.75,9.5t 9.5,22.5l-0.5,0.5l0,351.5 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-352 q0-13 9.5-22.5t 22.75-9.5t 22.75,9.5t 9.5,22.5q-0.5,0.5 -0.5,1z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"T\" data-tags=\"T\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,64l-128,0 l0,416 q0,13.5 -9.5,22.75t-22.5,9.25t-22.5-9.25t-9.5-22.75l0-416 l-128,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 320,0 q 13,0 22.5,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"S\" data-tags=\"S\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416.25,160q-13.25,0 -22.75-9.25t-9.5-22.75q0-26.5 -18.75-45.25t-45.25-18.75l-127.5,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,32 q0,26.5 18.75,45.25t 45.25,18.75l 127.5,0 q 53,0 90.5,37.5t 37.5,90.5l0,32 q0,53 -37.5,90.5t-90.5,37.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5\nq0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-32 q0-26.5 -18.75-45.25t-45.25-18.75l-128,0 q-53,0 -90.25-37.5t-37.25-90.5l0-32 q0-53 37.5-90.5t 90.5-37.5l 127.5,0 q 53,0 90.5,37.5t 37.5,90.5q0,13.5 -9.25,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"R\" data-tags=\"R\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 404.5,288q 20.5,18 32,43t 11.5,53l0,96 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-96 q0-26.5 -18.75-45.25t-45.25-18.75l-192,0 l0,160 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5l0,0 l 224,0 q 53,0 90.5,37.5t 37.5,90.5l0,64 q0,28 -11.5,53\nt-32,43zM 384,128q0-26.5 -18.75-45.25t-45.25-18.75l-192,0 l0,192 l 192,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"Q\" data-tags=\"Q\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 439,459.5q 9,9 9,21.75t-9,21.75t-21.75,9t-21.75-9l-9.5-9.5q-30.5,18.5 -66,18.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-256 q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53,0 90.5,37.5t 37.5,90.5l0,256 q0,35.5 -18.5,66zM 384,384l0-256 q0-26.5 -18.75-45.25t-45.25-18.75l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25\nl0,256 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 8,0 17.5-3l-73-73q-9-9 -9-21.75t 9-21.75t 21.75-9t 21.75,9l 73,73q 3-9.5 3-17.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"P\" data-tags=\"P\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,320l-192,0 l0,160 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5l0,0 l 224,0 q 53,0 90.5,37.5t 37.5,90.5l0,64 q0,53 -37.5,90.5t-90.5,37.5zM 384,128q0-26.5 -18.75-45.25t-45.25-18.75l-192,0 l0,192 l 192,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"O\" data-tags=\"O\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,512l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-256 q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53,0 90.5,37.5t 37.5,90.5l0,256 q0,53 -37.5,90.5t-90.5,37.5zM 384,128q0-26.5 -18.75-45.25t-45.25-18.75l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,256 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-256 \nz\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"N\" data-tags=\"N\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512q-15.5,0 -28-16l-260-364.5l0,348.5 q0,13 -9.25,22.5t-22.75,9.5t-22.75-9.5t-9.25-22.5l0-447.5 q0-13.5 9.25-23t 22.75-9.5q 17.5,0 27.5,16l 260.5,365l0-349 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,448 q0,13 -9.5,22.5t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"M\" data-tags=\"M\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416.25,512q-13.25,0 -22.75-9.25t-9.5-22.75l0-348.5 l-100,140.5q-11.5,16 -28,16q-16,0 -28-16l-100-140.5l0,348.5 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5q 8.5,0 14.5,3t 7.75,5.25t 5.25,7.75l 132.5,186l 132.5-186q 4-5.5 5.75-7.5t 7.75-5.25t 14-3.25\nq 13,0 22.5,9.5t 9.5,22.5l0,448 q0,13.5 -9.25,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"L\" data-tags=\"L\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-13,0 -22.5-9.25t-9.5-22.75l0-448 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.25t 9.25,22.75l0,400 q0,6.5 4.75,11.25t 11.25,4.75l 272,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"K\" data-tags=\"K\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,160q0,28 -11.5,53t-32,43q 20.5,18 32,43t 11.5,53l0,126.5 l0,0.75 l0,0.75 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-128 q0-26.5 -18.75-45.25t-45.25-18.75l-192,0 l0,192 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-448 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.25t 9.25,22.75\nl0,192 l 192,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-128 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,1 l0,0.5 l0,126.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"J\" data-tags=\"J\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,384q0,53 -37.5,90.5t-90.5,37.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5q0-13 9.5-22.5t 22.75-9.5t 22.5,9.25t 9.25,22.75q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-352 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,352 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"320\" height=\"512\" viewBox=\"0 0 320 512\" data-du=\"I\" data-tags=\"I\" style=\"margin-left: 11px; margin-top: 8px;\"><path d=\"M 224,64l-31.5,0 l0,384 l 31.5,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-128,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 32.5,0 l0-384 l-32.5,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 128,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"H\" data-tags=\"H\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416.25,512q-13.25,0 -22.5-9.25t-9.25-22.75l0-176 q0-6.5 -4.75-11.25t-11.25-4.75l-224.5,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,176 q0,13.5 -9.25,22.75t-22.75,9.25t-22.75-9.25t-9.25-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5t 22.75,9.5t 9.25,22.5l0,176 q0,6.5 4.75,11.25t 11.25,4.75l 224.5,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-176 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.25t 9.5,22.75l0,448 q0,13.5 -9.5,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"G\" data-tags=\"G\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,320q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 128,0 q 13,0 22.5,9.5t 9.5,22.5l0,96 q0,53 -37.5,90.5t-90.5,37.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-256 q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53,0 90.5,37.5t 37.5,90.5q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75q0-26.5 -18.75-45.25\nt-45.25-18.75l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,256 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-64 l-96,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"F\" data-tags=\"F\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416.5,64l-272.5,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,128 q0,6.5 4.75,11.25t 11.25,4.75l 208,0 q 13.5,0 23,9.5t 9.5,22.75t-9.5,22.5t-23,9.25l-208,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,176 q0,13.5 -9.25,22.75t-22.75,9.25t-22.75-9.25t-9.25-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5l 320.5,0 q 13,0 22.5,9.5\nt 9.5,22.75t-9.5,22.5t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"E\" data-tags=\"E\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,64l-272,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,128 q0,6.5 4.75,11.25t 11.25,4.75l 208,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-208,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,128 q0,6.5 4.75,11.25t 11.25,4.75l 272,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-320,0 q-13.5,0 -22.75-9.25\nt-9.25-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5l 320,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"D\" data-tags=\"D\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,512l-224,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5l 224,0 q 53,0 90.5,37.5t 37.5,90.5l0,256 q0,53 -37.5,90.5t-90.5,37.5zM 384,128q0-26.5 -18.75-45.25t-45.25-18.75l-176,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,352 q0,6.5 4.75,11.25t 11.25,4.75l 176,0 q 26.5,0 45.25-18.75t 18.75-45.25\nl0-256 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"C\" data-tags=\"C\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416.25,160q-13.25,0 -22.5-9.25t-9.25-22.75q0-26.5 -18.75-45.25t-45.75-18.75l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,256 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 27,0 45.75-18.75t 18.75-45.25q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.5t 9.5,22.5q0,53 -37.5,90.5t-91,37.5l-128,0 q-53,0 -90.5-37.5\nt-37.5-90.5l0-256 q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53.5,0 91,37.5t 37.5,90.5q0,13.5 -9.5,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"B\" data-tags=\"B\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,352l0,32 q0,53 -37.5,90.5t-90.5,37.5l-224,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5l 224,0 q 53,0 90.5,37.5t 37.5,90.5l0,32 q0,28 -11.75,53t-31.75,43q 20,18 31.75,43t 11.75,53zM 384,128q0-26.5 -18.75-45.25t-45.25-18.75l-176,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nl0,128 q0,6.5 4.75,11.25t 11.25,4.75l 176,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-32 zM 384,352q0-26.5 -18.75-45.25t-45.25-18.75l-176,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,128 q0,6.5 4.75,11.25t 11.25,4.75l 176,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"A\" data-tags=\"A\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 415.75,512q-13.25,0 -22.5-9.25t-9.25-22.75l0-144 q0-6.5 -4.75-11.25t-11.25-4.75l-224,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,144 q0,13.5 -9.5,22.75t-22.5,9.25t-22.5-9.25t-9.5-22.75l0-352 q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53,0 90.5,37.5t 37.5,90.5l0,352 q0,13.5 -9.5,22.75t-22.75,9.25zM 384,128\nq0-26.5 -18.75-45.25t-45.25-18.75l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,112 q0,6.5 4.75,11.25t 11.25,4.75l 224,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-112 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"@\" data-tags=\"at\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,352q-14.5,32 -48,32l-80,0 q-12.5,0 -21.5-8.25t-10-20.25q-35.5,28.5 -80.5,28.5q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5q 49.5,0 86.5,33.5q 5-1.5 9.5-1.5q 13.5,0 22.75,9.5t 9.25,22.5l0,128 l 52.5,0 q 11.5-32 11.5-64q0-52 -25.75-96.25t-70-70t-96.25-25.75t-96.25,25.75t-70,70t-25.75,96.25\nt 25.75,96.25t 70,70t 96.25,25.75l 96,0 q 13.5,0 22.75,9.25t 9.25,22.75t-9.25,22.75t-22.75,9.25l-96,0 q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5q0,31 -3.25,52.5t-12.75,43.5z\nM 256,192q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"9\" data-tags=\"_9\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,512l-128,0 q-53,0 -90.5-37.5t-37.5-90.5q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.5-18.75t 19-45.25l0-81.5 q-30,17.5 -64.5,17.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-64 q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53.5,0 91,37.5t 37.5,90.5l0,256 q0,53 -37.5,90.5t-91,37.5\nzM 384.5,128q0-26.5 -18.75-45.25t-45.75-18.75l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,64 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.5-18.75t 19-45.25l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"8\" data-tags=\"_8\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,352l0,32 q0,53 -37.5,90.5t-90.5,37.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-32 q0-28 11.5-53t 32-43q-20.5-18 -32-43t-11.5-53l0-32 q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53,0 90.5,37.5t 37.5,90.5l0,32 q0,28 -11.75,53t-31.75,43q 20,18 31.75,43t 11.75,53zM 384,128q0-26.5 -18.75-45.25t-45.25-18.75\nl-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,32 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-32 zM 384,352q0-26.5 -18.75-45.25t-45.25-18.75l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,32 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"7\" data-tags=\"_7\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 432,208l-144,272q-0.5,0.5 -2,3.5t-2.5,4.75l-3,5.25t-3.5,5.5t-4.25,4.75t-5,4.25t-5.5,2.75t-6.25,1.25q-13.5,0 -22.75-7.5t-9.25-24.5q0-10 16-32q 69.5-131 130.5-255.5q 6-12 9.25-28.25t 3.75-26.25l 0.5-10q0-26.5 -18.75-45.25t-45.25-18.75l-64,0 l-32,0 l-128,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75\nt 22.75-9.5l 128,0 l 32,0 l 64,0 q 53,0 90.5,37.5t 37.5,90.5q0,20 -5.5,45t-10.5,35z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"6\" data-tags=\"_6\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 192,192l 128,0 q 53.5,0 91,37.5t 37.5,90.5l0,64 q0,53 -37.5,90.5t-91,37.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-256 q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53.5,0 91,37.5t 37.5,90.5q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75q0-26.5 -18.75-45.25t-45.75-18.75l-128,0 q-26.5,0 -45.25,18.75\nt-18.75,45.25l0,81.5 q 30-17.5 64-17.5zM 128,384q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 27,0 45.75-18.75t 18.75-45.25l0-64 q0-26.5 -18.75-45.25t-45.75-18.75l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"5\" data-tags=\"_5\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 128,176q0,6.5 4.75,11.25t 11.25,4.75l 176,0 q 53,0 90.5,37.5t 37.5,90.5l0,64 q0,53 -37.5,90.5t-90.5,37.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-64 q0-26.5 -18.75-45.25t-45.25-18.75\nl-192,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-160 q0-13.5 9.25-22.75t 22.75-9.25l 320,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.5t-22.5,9.25l-272,0 q-6.5,0 -11.25,4.75t-4.75,11.75l0,96 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"4\" data-tags=\"_4\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 415.75,512q-13.25,0 -22.5-9.25t-9.25-22.75l0-177.5 q-30,17.5 -64,17.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-160 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,160 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-160 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,448 q0,13 -9.5,22.5\nt-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"3\" data-tags=\"_3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,352l0,32 q0,53 -37.5,90.5t-90.5,37.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-32 q0-26.5 -18.75-45.25t-45.25-18.75l-32,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 32,0 \nq 26.5,0 45.25-18.75t 18.75-45.25l0-32 q0-26.5 -18.75-45.25t-45.25-18.75l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53,0 90.5,37.5t 37.5,90.5l0,32 q0,28 -11.75,53t-31.75,43q 20,18 31.75,43t 11.75,53z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"2\" data-tags=\"_2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,320l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,48 q0,6.5 4.75,11.25t 11.25,4.75l 272.5,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-320.5,0 q-13,0 -22.5-9.25t-9.5-22.75l0-96 q0-53 37.5-90.5t 90.5-37.5l 128,0 q 26.5,0 45.5-18.75t 19-45.25l0-64 q0-26.5 -18.75-45.25t-45.75-18.75l-128,0 q-26.5,0 -45.25,18.75\nt-18.75,45.25q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53.5,0 91,37.5t 37.5,90.5l0,64 q0,53 -37.5,90.5t-91,37.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"384\" height=\"512\" viewBox=\"0 0 384 512\" data-du=\"1\" data-tags=\"_1\" style=\"margin-left: 10px; margin-top: 8px;\"><path d=\"M 287.5,512l-192,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 64,0 l0-320 q0-26.5 -18.5-45t-44.5-19l-0.75,0 l-0.25,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l0,0.5 l0-0.5 q 53,0 90.5,37.5t 37.5,90.5l0,320 l 64,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.5,22.5t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"0\" data-tags=\"_0\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,512l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-256 q0-53 37.5-90.5t 90.5-37.5l 128,0 q 53,0 90.5,37.5t 37.5,90.5l0,256 q0,53 -37.5,90.5t-90.5,37.5zM 192,448l 128,0 q 15.5,0 30.5-8l-222.5-306.5l0,250.5 q0,26.5 18.75,45.25t 45.25,18.75zM 320,64l-128,0 q-16,0 -30.5,8l 222.5,306.5l0-250.5 q0-26.5 -18.75-45.25t-45.25-18.75z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"+\" data-tags=\"plus\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,320l-160,0 l0,160 q0,13.5 -9.25,22.75t-22.75,9.25l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-160 l-160,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 160,0 l0-160 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,160 l 160,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 \nq0,13 -9.25,22.5t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"*\" data-tags=\"asterisk\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 494,274.5l-124.5,18l 92.5,95q 7.5,10.5 5.5,23.5t-12,20.5l-98,74.5q-10,7.5 -22.25,5.5t-19.75-12.5l-55.5-116.5l-55.5,116.5q-7.5,10.5 -19.75,12.5t-22.25-5.5l-98-74.5q-10-7.5 -12-20.5t 5.5-23.5l 92.5-95l-124.5-18q-12.5-4 -18.5-15.5t-2-23.5l 39.5-118q 4-12.5 15.75-18.25t 24.25-1.75l 98.5,49.5l-19.5-115\nq0-13 9.5-22.5t 22.5-9.5l 128,0 q 13,0 22.5,9.5t 9.5,22.5l-19.5,115l 98.5-49.5q 12.5-4 24.25,1.75t 15.75,18.25l 39.5,118q 4,12 -2,23.5t-18.5,15.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"%\" data-tags=\"percent\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512q-40,0 -68-28.25t-28-68t 28-67.75t 68-28t 68,28t 28,67.75t-28,68t-68,28.25zM 416.25,384q-13.25,0 -22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5t 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25zM 198,480q-7,13.5 -21.75,22.75t-28.25,9.25l-64.5,0 q-13.5,0 -17.75-9.5t 2.75-22.5l 245.5-448\nq 7-13.5 21.75-22.75t 28.25-9.25l 64.5,0 q 13.5,0 17.75,9.25t-2.75,22.75zM 96,192q-40,0 -68-28.25t-28-68t 28-67.75t 68-28t 68,28t 28,67.75t-28,68t-68,28.25zM 95.75,64q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.75,9.5t 22.75-9.5t 9.25-22.75t-9.5-22.5t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"$\" data-tags=\"dollar\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 415.75,192q-13.25,0 -22.5-9.25t-9.25-22.75q0-17 -18.75-32t-48.25-23.5t-61-8.5t-61,8.5t-48.25,23.5t-18.75,32t 18.75,32t 48.25,23.5t 61,8.5q 52,0 96.25,17.25t 70,46.5t 25.75,64.25q0,47 -45.75,82.75t-114.25,43.25l0,2 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-2 \nq-68.5-7.5 -114.25-43.25t-45.75-82.75q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5q0,17 18.75,32t 48.25,23.5t 61,8.5t 61-8.5t 48.25-23.5t 18.75-32t-18.75-32t-48.25-23.5t-61-8.5q-52,0 -96.25-17t-70-46.5t-25.75-64.5q0-47 45.75-82.75t 114.25-43.25l0-2 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,2 \nq 68.5,7.5 114.25,43.25t 45.75,82.75q0,13.5 -9.5,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"synckeeplocal\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-128,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-128 q0-26.5 18.75-45.25t 45.25-18.75l 128,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,128 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,224q-13.5,0 -22.75-9.25t-9.25-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25zM 447.75,96\nq-13.25,0 -22.5-9.25t-9.25-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.75t-9.5,22.5t-22.75,9.25zM 320.25,96q-13.25,0 -22.75-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.5,9.25zM 128,256q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5t-37.5,90.5t-90.5,37.5z\nM 128,64q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75zM 64,288q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25t-22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25zM 64,416q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5\nt-22.75,9.25t-22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5zM 192,416q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.5,9.25t-22.75-9.25t-9.5-22.5t 9.25-22.75t 22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"synckeeponserver\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-128,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-128 q0-26.5 18.75-45.25t 45.25-18.75l 128,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,128 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,336q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-96 zM 448,224q-13.5,0 -22.75-9.25t-9.25-22.75t 9.5-22.75t 22.75-9.25t 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25zM 448,96q-13.5,0 -22.75-9.25t-9.25-22.75t 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75t-9.25,22.75t-22.75,9.25zM 320,96q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75\nt 22.75-9.25t 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 128,256q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5t-37.5,90.5t-90.5,37.5zM 64.25,288q 13.25,0 22.5,9.25t 9.25,22.75t-9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75t 9.5-22.75t 22.75-9.25zM 64.25,416\nq 13.25,0 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.5,9.25t-22.75-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5zM 192.25,416q 13.25,0 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.5,9.25t-22.75-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"root\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 483.5,64l-169.5,0 l-151.5,424.5q-3.5,12.5 -15,19.25t-24.5,3.25q-9-2.5 -15-9t-7.5-15l-96-255.5q-3.5-12.5 3.25-23.75t 19.5-14.5t 24.25,3.25t 14.5,19l 61,183l 133-372.5q 2.5-11 11.25-18.5t 20.25-7.5l 192,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sum\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,64l-258.5,0 l 126,176.5q 9,15.5 0.5,31q-1,1.5 -32.5,45.75t-62.5,87.5l-31,43.25l 258,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-320,0 q-13.5,0 -22.75-9.25t-9.25-22.75q0-9 10-23l 143-200.5q-144.5-202.5 -149-209l0,0 q-4-7.5 -4-15.5q0-13.5 9.5-22.75t 22.5-9.25l 320,0 q 13.5,0 22.75,9.25\nt 9.25,22.5t-9.25,22.75t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cmd\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 400,224l-48,0 l0,64 l 48,0 q 46.5,0 79.25,32.75t 32.75,79.25t-32.75,79.25t-79.25,32.75t-79.25-32.75t-32.75-79.25l0-48 l-64,0 l0,48 q0,46.5 -32.75,79.25t-79.25,32.75t-79.25-32.75t-32.75-79.25t 32.75-79.25t 79.25-32.75l 48,0 l0-64 l-48,0 q-46.5,0 -79.25-32.75t-32.75-79.25t 32.75-79.25\nt 79.25-32.75t 79.25,32.75t 32.75,79.25l0,48 l 64,0 l0-48 q0-46.5 32.75-79.25t 79.25-32.75t 79.25,32.75t 32.75,79.25t-32.75,79.25t-79.25,32.75zM 352,400q0,20 14,34t 34,14t 34-14t 14-34t-14-34t-34-14l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 160,112q0-20 -14-34t-34-14t-34,14\nt-14,34t 14,34t 34,14l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 160,368q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-20,0 -34,14t-14,34t 14,34t 34,14t 34-14t 14-34l0-32 zM 288,224l-64,0 l0,64 l 64,0 l0-64 zM 400,64q-20,0 -34,14t-14,34l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 20,0 34-14t 14-34\nt-14-34t-34-14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"loading2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l-43,0 q 11-31.5 11-64l 32,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 464,171.5l-20.5,12q-6.5-31.5 -24-59.5l 13-7.5q 11.5-7 24-3.5t 19.25,15t 3.25,24.25t-15,19.25zM 391,87.5q-22.5-22.5 -52.5-36.5l 2-3q 6.5-11.5 19.25-15t 24.25,3.25t 15,19.25t-3.5,24zM 395.5,432.5q 7,11.5 3.5,24t-15,19.25\nt-24.25,3.25t-19.25-15l-32.5-55.5q 31.5-8.5 58-27zM 255.75,512q-13.25,0 -22.5-9.25t-9.25-22.75l0-68 q 16,4 32,4q 15,0 32-3l0,67 q0,13.5 -9.5,22.75t-22.75,9.25zM 256,192q-16.5,0 -26-13.5q-45.5,7 -73.75,35.75t-28.25,73.75l-96,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 105.5,0 l-89.5-52.5\nq-11.5-6.5 -15-19.25t 3.25-24.25t 19.25-15t 24,3.5l 88,51l-51-88q-7-11.5 -3.5-24t 15-19.25t 24.25-3.25t 19.25,15l 52.5,89.5l0-105.5 q0-13 9.25-22.5t 22.75-9.5t 22.75,9.5t 9.25,22.5l0,128 q0,13.5 -9.5,22.75t-22.5,9.25zM 48,340.5l 80.5-47q 1,34 19,62.5l-68,39.5q-11.5,7 -24,3.5t-19.25-15t-3.25-24.25\nt 15-19.25zM 155,366q 20.5,27 50.5,39.5l-34,58.5q-6.5,11.5 -19.25,15t-24.25-3.25t-15-19.25t 3.5-24zM 424,317l 40,23.5q 11.5,6.5 15,19.25t-3.25,24.25t-19.25,15t-24-3.5l-49-28.5q 25-22 40.5-50z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lightbulb\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,255.5q-31.5,33.5 -47.75,60.75t-16.25,51.75l0,0 q0,6.5 -4.75,11.25t-11.25,4.75l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0,0 q0-24.5 -16.25-51.75t-47.75-60.75q-32-42.5 -32-95.5q0-43.5 21.5-80.25t 58.25-58.25t 80.25-21.5t 80.25,21.5t 58.25,58.25t 21.5,80.25q0,53 -32,95.5zM 208,416l 96,0 \nq 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 256,512q-26.5,0 -45.25-9.5t-18.75-22.5l 128,0 q0,13 -18.75,22.5t-45.25,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"wizard3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 96,0 l 71-307.5l-71,19.5l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 144-128q 13,0 22.5,9.5t 9.5,22.5l 96,416l 96,0 q 13.5,0 22.75,9.25t 9.25,22.75t-9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"infographic\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 457.5,413l-92.5-92.5q 18.5-30.5 18.5-65.5q0-44.5 -27.25-79t-69.25-45.5l0-130.5 q 63,8 114.25,43.5t 81,91.25t 29.75,120.25q0,88 -54.5,158zM 131,222.5l-131,0 q 11-87 73.25-149.25t 149.25-73.25l0,130.5 q-33.5,9 -58.25,33.75t-33.25,58.25zM 130.5,287q 11,42 45.5,69.25t 79,27.25q 35,0 65.5-18.5\nl 92.5,92.5q-70,54.5 -158,54.5q-64.5,0 -120.25-29.75t-91.25-81t-43.5-114.25l 130.5,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"split\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 503,119.5q-9,9 -21.75,9t-21.75-9l-12-12l0,85 q0,27.5 -5,50t-16,40.25t-30,27.75t-44.5,10q-26.5,0 -45.25,18.5t-18.75,45l0,96 q0,13.5 -9.5,22.75t-22.5,9.25t-22.5-9.25t-9.5-22.75l0-96 q0-26.5 -18.75-45t-45.25-18.5q-25.5,0 -44.5-10t-30-27.75t-16-40.25t-5-50l0-85 l-12,12\nq-9,9 -21.75,9t-21.75-9t-9-21.75t 9-21.75l 60-60q 3-5.5 4.5-6.5q 9-9.5 23-9q 13.5-0.5 22.5,9q 3,2.5 5.5,7l 59,59.5q 9,9 9,21.75t-9,21.75t-21.75,9t-21.75-9l-12-12l0,85 q0,29 11.5,46.5t 36.5,17.5l 16,0 q 26.5,0 45.25,18.75t 18.75,45.25q0-26.5 18.75-45.25t 45.25-18.75l 16,0 q 25,0 36.5-17.5\nt 11.5-46.5l0-85 l-12,12q-9,9 -21.75,9t-21.75-9t-9-21.75t 9-21.75l 60-60q 3-5.5 4.5-6.5q 9-9.5 23-9q 13.5-0.5 22.5,9q 3,2.5 5.5,7l 59,59.5q 9,9 9,21.75t-9,21.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"merge\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 479.75,512q-13.25,0 -22.5-9.25t-9.25-22.75l0-96 q0-26.5 -18.75-45.25t-45.25-18.75l-64,0 q-26.5,0 -45.25-18.75t-18.75-45.25q0,26.5 -18.75,45.25t-45.25,18.75l-64,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,96 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-96 q0-53 37.5-90.5t 90.5-37.5l 32,0 \nq 26.5,0 45.25-18.75t 18.75-45.25l0-85 l-12,12q-9,9 -21.75,9t-21.75-9t-9-21.75t 9-21.75l 60.5-60.5q 3-5 4-6.5q 9.5-9 23-8.5q 13.5-0.5 23,8.5q 1,1.5 4,6.5l 60.5,60.5q 9,9 9,21.75t-9,21.75t-21.75,9t-21.75-9l-12-12l0,85 q0,26.5 18.75,45.25t 45.25,18.75l 32,0 q 53,0 90.5,37.5t 37.5,90.5\nl0,96 q0,13.5 -9.5,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"link2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 473.75,473.75q-38.25,38.25 -92.5,38.25t-92.25-38.5l-25.5-25.5l 56.5-32l 12,12q 20,20 48,20t 48-20t 20-48t-20-48l-120-120.5q-20-19.5 -48.25-19.5t-48.25,19.5q-0.5,1 -1.5,2q-15.5,15.5 -18,26.5l-48-48q 2-3.5 5-7.5t 4.75-5.75l 6.5-6.5t 6.25-5.75q 38-38.5 92.25-38.5t 92.25,38.5l 122.5,122.5\nq 38.5,38 38.5,92.25t-38.25,92.5zM 180,84q-20-20 -48-20t-48,20t-20,48t 20,48l 120,120.5q 20,20 48.25,20t 48.25-20q 0.5-1 1.5-2q 15.5-15.5 18-26.5l 48,48q-2,3.5 -5,7.5t-4.75,5.75l-6.5,6.5t-6.25,5.75q-38,38.5 -92.25,38.5t-92.25-38.5l-122.5-122.5q-38.5-38 -38.5-92.25t 38.25-92.5t 92.5-38.25\nt 92.25,38.5l 25.5,25.5l-56.5,32z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"opennewwindow\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,384l-256,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 256,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,256 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,96q0-13.5 -9.25-22.75t-22.75-9.25l-192,0 q-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75t 22.75,9.5l 116,0 l-139.5,139.5\nq-9,9 -9,21.75t 9,21.75t 21.75,9t 21.75-9l 140-140l0,117 q0,13.5 9.5,22.75t 22.75,9.25t 22.5-9.25t 9.25-22.75l0-192 zM 416,480.25q0,13.25 -9.25,22.5t-22.75,9.25l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-320 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,288 q0,13.5 9.25,22.75\nt 22.75,9.25l 288,0 q 13,0 22.5,9.5t 9.5,22.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pagesetup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 447.5,512l-383.5,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-447.5 q0-13.5 9.25-22.75t 22.75-9.25l 224,0 l0,95.5 l-128,0 l0-48 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,48 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 48,0 l0,255.5 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.5t 4.75,11.25t 11.25,4.5l 48,0 l0,48 \nq0,7 4.75,11.5t 11.25,4.5t 11.25-4.5t 4.75-11.5l0-48 l 192,0 l0,48 q0,7 4.5,11.5t 11.25,4.5t 11.5-4.5t 4.75-11.5l0-48 l 47.5,0 q 7,0 11.5-4.5t 4.5-11.25t-4.5-11.5t-11.5-4.75l-47.5,0 l0-191 l 95.5,0 l0,0.5 l0,287 q0,13.5 -9.25,22.75t-22.75,9.25zM 320,0q 13,0 22,9l 128,128.5q 9.5,9.5 9.5,23l-159.5,0 l0-160.5 zM 352,383.5l-192,0 l0-255.5 l 128,0 l0,48.5 \nq0,6.5 4.5,11.25t 11.5,4.75l 48,0 l0,191 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"preview\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-352,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-40.5 q-42.5-15.5 -69.25-52.5t-26.75-83.5t 26.75-83.5t 69.25-52l0-136 q0-13 9.25-22.5t 22.75-9.5l 192,0 l0,176 q0,6.5 4.75,11.25t 11.25,4.75l 175.5,0 l 0.5,0.5l0,287.5 q0,13 -9.5,22.5t-22.5,9.5zM 316,434.5l-75.5-75q 15.5-26.5 15.5-56q0-46 -32.75-79t-79.25-33\nt-79.25,32.75t-32.75,79.25t 32.75,79.25t 79.25,32.75q 29,0 56-15.5l 75,75.5q 4,4 10,4t 10.5-4l 20.5-20.5q 4-4 4-10t-4-10.5zM 144,383.5q-33,0 -56.5-23.25t-23.5-56.5t 23.5-56.75t 56.5-23.5t 56.5,23.5t 23.5,56.75t-23.5,56.5t-56.5,23.25zM 352-0.5q 13,0.5 22,9.5l 128.5,128.5q 9.5,9.5 9,22.5l-159.5,0 l0-160.5 z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"exportfile\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-352,0 q-13,0 -22.5-9.25t-9.5-22.75l0-5.5 q-82.5-80 -83-81q-13-12 -13-38.75t 13-39.25l 83-80l0-203.5 q0-13 9.5-22.5t 22.5-9.5l 192,0 l0,176 q0,7 4.75,11.5t 11.25,4.5l 175.5,0 q 0.5,0.5 0.5,1l0,287 q0,13.5 -9.25,22.75t-22.75,9.25zM 320,319.5q0-13 -9.25-22.5t-22.75-9.5l-96,0 l0-29 q 2-15 -8.5-25.5\nq-9-9.5 -21.75-9.5t-21.75,9.5l-99,98.5q-9,9 -9,21.75t 9,21.75q 6,6 48.25,46.75t 50.75,49.25q 9,9 21.75,9t 21.75-9q 10.5-10.5 8.5-26l0-29.5 l 96,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-64 zM 352,0q 13,0 22,9l 128.5,128.5q 9.5,9.5 9,22.5l-159.5,0 l0-160 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"importfile\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-352,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-32.5 l-50.5,0 q-19,0 -32.25-14t-13.25-34l0-96 q0-19.5 13.25-33.75t 32.25-14.25l 50.5,0 l0-223.5 q0-13 9.25-22.5t 22.75-9.5l 192,0 l0,176 q0,6.5 4.75,11.25t 11.25,4.75l 175.5,0 l 0.5,0.5l0,287.5 q0,13.5 -9.25,22.75t-22.75,9.25zM 311,331.5l-99-99q-9-9 -21.75-9\nt-21.75,9q-9.5,9.5 -8.5,24l0,31 l-96,0 q-13,0 -22.5,9.5t-9.5,22.5l0,64 q0,13.5 9.5,22.75t 22.5,9.25l 96,0 l0,31.5 q-1,14.5 8.5,24q 9,9 21.75,9t 21.75-9l 91-91q 5.5-2.5 8-5q 9-9 9-21.75t-9-21.75zM 352-0.5q 13,0 22,9.5l 128.5,128.5q 9.5,9.5 9,22.5l-159.5,0 l0-160.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"switchoff\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,448l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,256 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,160q0-13.5 -9.5-22.75t-22.5-9.25l-320,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,192 q0,13 9.25,22.5t 22.75,9.5l 320,0 q 13,0 22.5-9.5\nt 9.5-22.5l0-192 zM 384,352l-96,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-128 q0-13.5 9.25-22.75t 22.75-9.25l 96,0 q 13,0 22.5,9.25t 9.5,22.75l0,128 q0,13 -9.5,22.5t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"switchon\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,448l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,256 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,160q0-13.5 -9.5-22.75t-22.5-9.25l-320,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,192 q0,13 9.25,22.5t 22.75,9.5l 320,0 q 13,0 22.5-9.5\nt 9.5-22.5l0-192 zM 224,352l-96,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-128 q0-13.5 9.25-22.75t 22.75-9.25l 96,0 q 13,0 22.5,9.25t 9.5,22.75l0,128 q0,13 -9.5,22.5t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"redo\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 511.5,170.5q-0.5,7.5 -4.75,14.5t-10.75,7l-165,0 q-12,0.5 -11.5-17l 63-63q-54.5-48 -126.5-48q-52,0 -96.25,25.75t-70,70t-25.75,96.5t 25.75,96.25t 70,69.75t 96.25,25.75q 44,0 82.75-18.75t 65.75-51.75l 50.5,39.5q-36,44.5 -88,69.75t-111,25.25q-52,0 -99.5-20.25t-81.75-54.5\nt-54.5-81.75t-20.25-99.5t 20.25-99.25t 54.5-81.5t 81.75-54.5t 99.5-20.25q 48.5,0 92.75,17.5t 79.25,49l 67-67q 17.5-0.5 17,11.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"undo\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256.5,512q-59,0 -111-25.25t-88-69.75l 50.5-39.5q 27,33 65.75,51.75t 82.75,18.75q 52,0 96.25-25.75t 70-70t 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75q-72,0 -126.5,48l 63,63q 0.5,17.5 -11.5,17l-165,0 q-6.5,0 -10.75-7t-4.75-14.5l-0.5-159q-0.5-12 17-11.5l 67,67\nq 35-31.5 79.25-49.25t 92.75-17.75q 52,0 99.5,20.5t 81.75,54.75t 54.5,81.5t 20.25,99.25t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"quotedown\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,448l-96,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-96 q0-26.5 18.75-45.25t 45.25-18.75l 64,0 l0-64 q0-13 -9.25-22.5t-22.5-9.5t-22.75-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 64,0 q 15.5,0 30.5,16t 24.25,38.5t 9.25,41.5l0,224 q0,26.5 -18.75,45.25t-45.25,18.75zM 160,448l-96,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-96 \nq0-26.5 18.75-45.25t 45.25-18.75l 64,0 l0-64 q0-13 -9.5-22.5t-22.75-9.5t-22.5-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 64,0 q 15,0 30.25,16t 24.5,38.5t 9.25,41.5l0,224 q0,26.5 -18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"quoteup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,288l-64,0 l0,64 q0,13.5 9.25,22.75t 22.5,9.25t 22.75,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-64,0 q-15.5,0 -30.5-16t-24.25-38.5t-9.25-41.5l0-224 q0-26.5 18.75-45.25t 45.25-18.75l 96,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,96 q0,26.5 -18.75,45.25t-45.25,18.75zM 160,288l-64,0 l0,64 q0,13.5 9.25,22.75\nt 22.75,9.25t 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-64,0 q-15,0 -30.25-16t-24.5-38.5t-9.25-41.5l0-224 q0-26.5 18.75-45.25t 45.25-18.75l 96,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,96 q0,26.5 -18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"mergecells\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 379,166.5q 6-6 15-6.5t 15.5,3.5t 6.5,10l0,165 q0,6 -6.5,10t-15.5,3.25t-15-6.75l-82-66.5q-9.5-9.5 -9.5-22.75t 9.5-22.75zM 448,512l-96,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-64 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,48 q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-352 \nq0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,48 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-64 q0-26.5 18.75-45.25t 45.25-18.75l 96,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 133,345q-6,6 -15,6.75t-15.5-3.25t-6.5-10l0-165 \nq0-6 6.5-10t 15.5-3.5t 15,6.5l 82,66.5q 9.5,9.5 9.5,22.75t-9.5,22.75zM 192.25,160q-13.25,0 -22.75-9.25t-9.5-22.75l0-48 q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,352 q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-48 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5\nl0,64 q0,26.5 -18.75,45.25t-45.25,18.75l-96,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 96,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 q0,13.5 -9.25,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"scaledown\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.5,410.5q 9.5,9.5 9.5,23t-9.5,23l-45.5,46q-9.5,9.5 -22.75,9.5t-22.75-9.5l-57-57l-66.5,66.5q-13.5,0 -22.75-9.5t-9.25-22.5l0-192.5 q0-13 9.25-22.5t 22.75-9.5l 192,0 q 13,0 22.5,9.5t 9.5,22.5l-66.5,66.5zM 224,255.5l-191.5,0 q-13.5,0 -22.75-9.25t-9.25-22.75l 66-66l-57-56.5q-9.5-9.5 -9.5-23t 9.5-23\nl 45.5-46q 9.5-9.5 23-9.5t 23,9.5l 57,57l 66-66q 13.5,0 22.75,9.25t 9.25,22.75l0,191.5 q0,13.5 -9.5,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"scaleup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-191.5,0 q-13.5,0 -22.75-9.25t-9.25-22.75l 67.5-67.5l-74.5-72.5q-9-9.5 -9-22.75t 9-22.75l 46-45.5q 9-9 22.5-9t 23,9l 73.5,72.5l 65.5-65q 13.5,0 22.75,9.25t 9.25,22.75l0,191.5 q0,13.5 -9.25,22.75t-22.75,9.25zM 217,263q-9.5,9.5 -22.75,9.5t-22.75-9.5l-74-72.5l-65.5,65.5\nq-13,0 -22.5-9.5t-9.5-22.5l0-192 q0-13.5 9.5-22.75t 22.5-9.25l 192,0 q 13.5,0 22.75,9.25t 9.25,22.75l-67.5,67.5l 74.5,73q 9.5,9 9.5,22.5t-9.5,22.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"exit\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 503,277.5l-81.5,100q-5.5,6 -14.75,6.25t-16-3.75t-6.75-9.5l0-50.5 l-64,0 q-13,0 -22.5-9.25t-9.5-22.75l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 l0-50 q0-6 6.75-10t 16-3.75t 14.75,6.25l 81.5,99.5q 9,9 9,21.75t-9,21.75zM 320.25,128q-13.25,0 -22.75-9.5t-9.5-22.75t-9.25-22.5t-22.75-9.25l-160,0 \nq-13,0 -22.5,9.25t-9.5,22.75l0,320 q0,13 9.5,22.5t 22.5,9.5l 160,0 q 13.5,0 22.75-9.5t 9.25-22.75t 9.5-22.5t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,32 q0,26.5 -18.75,45.25t-45.25,18.75l-224,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 224,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,32 \nq0,13 -9.25,22.5t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"enter\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-224,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-32 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.5t 9.5,22.75t 22.5,9.5l 160,0 q 13.5,0 22.75-9.5t 9.25-22.5l0-320 q0-13.5 -9.25-22.75t-22.75-9.25l-160,0 q-13,0 -22.5,9.25t-9.5,22.5t-9.25,22.75t-22.5,9.5t-22.75-9.5t-9.5-22.5l0-32 q0-26.5 18.75-45.25t 45.25-18.75\nl 224,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 215,277.5l-81.5,100q-6,6 -15,6.25t-16-3.75t-7-9.5l0-50.5 l-63.5,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 63.5,0 l0-50 q0-6 7-10t 16-3.75t 15,6.25l 81.5,99.5q 8.5,9 8.5,21.75t-8.5,21.75\nz\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"move\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 506.5,267l-99,82q-5.5,4 -14.5,2.5t-9-6.5l0-57 l-96.5,0 l0,96 l 57,0 q 5,0 6.75,9t-2.75,14.5l-82,99q-4.5,5.5 -10.75,5.5t-10.75-5.5l-82-99q-4.5-5.5 -2.75-14.5t 6.25-9l 57,0 l0-96 l-95.5,0 l0,57 q0,4.5 -9,6.25t-14.5-2.25l-99-82.5q-5.5-4.5 -5.5-10.75t 5.5-10.75l 99-82q 5.5-4.5 14.5-2.75t 9,6.25\nl0,57.5 l 95.5,0 l0-96.5 l-56.5,0 q-5,0 -6.75-9t 2.75-14.5l 82-98.5q 4.5-6 10.75-6t 10.75,6l 82,98.5q 4.5,5.5 2.75,14.5t-6.25,9l-57.5,0 l0,96.5 l 96.5,0 l0-57 q0-5 9-6.75t 14.5,2.75l 99,82q 5.5,4.5 5.5,11t-5.5,11z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"zoomout\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.5,502.5q-9.5,9.5 -22.75,9.5t-22.75-9.5l-99-99q-60,44.5 -134,44.5q-45.5,0 -87-17.75t-71.5-47.75t-47.75-71.5t-17.75-87t 17.75-87t 47.75-71.5t 71.5-47.75t 87-17.75t 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87q0,74 -44.5,134l 99,99q 9.5,9.5 9.5,22.75t-9.5,22.75zM 224,64\nq-43.5,0 -80.25,21.5t-58.25,58.25t-21.5,80.25t 21.5,80.5t 58.25,58.25t 80.25,21.25t 80.25-21.25t 58.25-58.25t 21.5-80.5t-21.5-80.25t-58.25-58.25t-80.25-21.5zM 288,256l-128,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 128,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"zoomin\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.5,502.5q-9.5,9.5 -22.75,9.5t-22.75-9.5l-99-99q-60,44.5 -134,44.5q-45.5,0 -87-17.75t-71.5-47.75t-47.75-71.5t-17.75-87t 17.75-87t 47.75-71.5t 71.5-47.75t 87-17.75t 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87q0,74 -44.5,134l 99,99q 9.5,9.5 9.5,22.75t-9.5,22.75zM 224,64\nq-43.5,0 -80.25,21.5t-58.25,58.25t-21.5,80.25t 21.5,80.5t 58.25,58.25t 80.25,21.25t 80.25-21.25t 58.25-58.25t 21.5-80.5t-21.5-80.25t-58.25-58.25t-80.25-21.5zM 288,256l-32,0 l0,32 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-32 l-32,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5\nl 32,0 l0-32 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,32 l 32,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"forward\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 503,213.5l-209.5,164q-5.5,6 -14.75,6.25t-16-3.75t-6.75-9.5l0-114.5 l-96,0 q-13,0 -22.5,9.25t-9.5,22.75l0,128 l0,32 l0,32 q0,13 -9.25,22.5t-22.75,9.5l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-32 l0-32 l0-160 q0-53 37.5-90.5t 90.5-37.5l 128,0 l0-114 q0-6 6.75-10t 16-3.75t 14.75,6.25l 209.5,163.5q 9,9 9,21.75\nt-9,21.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"back\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-32 l0-32 l0-128 q0-13.5 -9.5-22.75t-22.5-9.25l-96,0 l0,114.5 q0,5.5 -6.75,9.5t-16,3.75t-14.75-6.25l-209.5-164q-9-9 -9-21.75t 9-21.75l 209.5-163.5q 5.5-6 14.75-6.25t 16,3.75t 6.75,10l0,114 l 128,0 q 53,0 90.5,37.5t 37.5,90.5l0,160 l0,32 l0,32 q0,13 -9.5,22.5\nt-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fastdown\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 278.5,295q-9,9 -22.5,9t-22.5-9l-224-226q-9.5-9.5 -9.5-23t 9.5-22.5l 13-14q 9.5-9.5 22.75-9.5t 22.75,9.5l 188,189.5l 188-189.5q 9.5-9.5 22.75-9.5t 22.75,9.5l 13,14q 9.5,9 9.5,22.5t-9.5,23zM 22.5,217.5q 9.5-9.5 22.75-9.5t 22.75,9.5l 188,189.5l 188-189.5q 9.5-9.5 22.75-9.5t 22.75,9.5l 13,13.5\nq 9.5,9.5 9.5,22.75t-9.5,22.75l-224,226q-9,9.5 -22.5,9.5t-22.5-9.5l-224-226q-9.5-9.5 -9.5-22.75t 9.5-22.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fastup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 233.5,217.5q 9-9.5 22.5-9.5t 22.5,9.5l 224,225.5q 9.5,9.5 9.5,23t-9.5,23l-13,13.5q-9.5,9.5 -22.75,9.5t-22.75-9.5l-188-189.5l-188,189.5q-9.5,9.5 -22.75,9.5t-22.75-9.5l-13-13.5q-9.5-9.5 -9.5-23t 9.5-23zM 489.5,295q-9.5,9.5 -22.75,9.5t-22.75-9.5l-188-190l-188,190q-9.5,9.5 -22.75,9.5t-22.75-9.5\nl-13-14q-9.5-9.5 -9.5-22.75t 9.5-22.75l 224-226q 9-9.5 22.5-9.5t 22.5,9.5l 224,226q 9.5,9.5 9.5,22.75t-9.5,22.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fastright\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 294.5,233.5q 9.5,9 9.5,22.25t-9.5,22.75l-225.5,224q-9.5,9.5 -23,9.5t-23-9.5l-13.5-13.5q-9.5-9 -9.5-22.25t 9.5-22.75l 189.5-188l-189.5-188q-9.5-9.5 -9.5-22.75t 9.5-22.75l 13.5-13q 9.5-9.5 23-9.5t 23,9.5zM 217.5,489q-9.5-9 -9.5-22.25t 9.5-22.75l 189.5-188l-189.5-188q-9.5-9.5 -9.5-22.75t 9.5-22.75l 13.5-13\nq 9.5-9.5 22.75-9.5t 22.75,9.5l 226,224q 9.5,9 9.5,22.25t-9.5,22.75l-226,224q-9.5,9.5 -22.75,9.5t-22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fastleft\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 217.5,233.5q-9.5,9 -9.5,22.25t 9.5,22.75l 225.5,224q 9.5,9.5 23,9.5t 23-9.5l 13.5-13.5q 9.5-9 9.5-22.25t-9.5-22.75l-189.5-188l 189.5-188q 9.5-9.5 9.5-22.75t-9.5-22.75l-13.5-13q-9.5-9.5 -23-9.5t-23,9.5zM 294.5,489q 9.5-9 9.5-22.25t-9.5-22.75l-189.5-188l 189.5-188q 9.5-9.5 9.5-22.75t-9.5-22.75l-13.5-13\nq-9.5-9.5 -22.75-9.5t-22.75,9.5l-226,224q-9.5,9 -9.5,22.25t 9.5,22.75l 226,224q 9.5,9.5 22.75,9.5t 22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"resizev\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 245,507.5l-144.5-139.5q-4.5-4.5 -4.5-10.75t 4.5-10.75l 23-22q 4.5-4.5 11.25-4.5t 11.25,4.5l 78,75.5l0-288 l-78,75.5q-4.5,4.5 -11.25,4.5t-11.25-4.5l-23-22q-4.5-4.5 -4.5-10.75t 4.5-10.75l 144.5-139.5q 4.5-4.5 11.25-4.5t 11.25,4.5l 144.5,139.5q 4.5,4.5 4.5,10.75t-4.5,10.75l-23,22q-4.5,4.5 -11.25,4.5t-11.25-4.5l-78.5-76l0,289 l 78.5-76\nq 4.5-4.5 11.25-4.5t 11.25,4.5l 23,22q 4.5,4.5 4.5,10.75t-4.5,10.75l-144.5,139.5q-4.5,4.5 -11.25,4.5t-11.25-4.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"resizeh\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507.5,267l-139.5,144.5q-4.5,4.5 -10.75,4.5t-10.75-4.5l-22-23q-4.5-4.5 -4.5-11.25t 4.5-11.25l 75.5-78l-288,0 l 75.5,78q 4.5,4.5 4.5,11.25t-4.5,11.25l-22,23q-4.5,4.5 -10.75,4.5t-10.75-4.5l-139.5-144.5q-4.5-4.5 -4.5-11.25t 4.5-11.25l 139.5-144.5q 4.5-4.5 10.75-4.5t 10.75,4.5l 22,23q 4.5,4.5 4.5,11.25t-4.5,11.25l-76,78.5l 289,0 \nl-76-78.5q-4.5-4.5 -4.5-11.25t 4.5-11.25l 22-23q 4.5-4.5 10.75-4.5t 10.75,4.5l 139.5,144.5q 4.5,4.5 4.5,11.25t-4.5,11.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"asterisk2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 455,215.5q-13,7.5 -45.5,20t-64,20.5q 31.5,8 64,20.5t 45.5,20q 22.5,13.5 29,39t-6.25,48.5t-37.75,29.75t-47-6.25q-13-7.5 -39-29.75t-48.5-45.75q 9,32 15,66.25t 6,49.75q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25q0-15.5 5.75-49.75t 14.75-66.25q-22.5,23.5 -48.5,45.75\nt-38.5,29.75q-22.5,13 -47.5,6.25t-37.75-29.75t-6-48.5t 28.75-39q 13-7.5 45.5-20t 64-20.5q-31.5-8 -64-20.5t-45.5-20q-22-13.5 -28.75-39t 6-48.5t 37.75-29.75t 47.5,6.25q 12.5,7.5 38.5,29.75t 48.5,45.75q-9-32 -14.75-66.25t-5.75-49.75q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25q0,15 -6,49.5\nt-15,66.5q 22.5-23.5 48.5-45.75t 39-29.75q 22-13 47-6.25t 37.75,29.75t 6.25,48.5t-29,39z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"alert\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,448q0,13 -9.25,22.5t-22.75,9.5l-448,0 q-13.5,0 -22.75-9.5t-9.25-22.5q0-8.5 4.5-16l 219.5-368q 4-9 5.75-12t 6-9.25t 9-8.5t 11.25-2.25q 8.5,0 14.75,5t 9.5,10.75t 7.75,16.25l 219.5,368q 4.5,7.5 4.5,16zM 288,192q0-13.5 -9.25-22.75t-22.75-9.25t-22.75,9.25t-9.25,22.75l0,96 q0,13 9.5,22.5\nt 22.5,9.5t 22.5-9.5t 9.5-22.5l0-96 zM 255.75,352q-13.25,0 -22.5,9.25t-9.25,22.5t 9.5,22.75t 22.5,9.5t 22.5-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"info\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 272,64q-20,0 -34,14t-14,33.75t 14,34t 34,14.25t 34-14.25t 14-34\nt-14-33.75t-34-14zM 336.5,329q-30,31.5 -44,40.75t-27.5,9.25q-7.5,0 -12.75-6.75t-5.25-17.25q0-21.5 41-163l-77.5-14.5q-50.5,124.5 -50.5,195q0,32.5 15.5,54t 38,21.5q 40.5,0 123-81l0-38 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"forbidden2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.25t 54.5-81.5t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.5t 20.25,99.25t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 367,412.5l-111-111l-111,111q 50,35.5 111,35.5t 111-35.5zM 64,256\nq0,61 35,110.5l 111-111l-110.5-110.5q-35.5,50 -35.5,111zM 145.5,99.5l 110.5,110l 110.5-110q-50-35.5 -110.5-35.5t-110.5,35.5zM 412.5,145l-110.5,110.5l 111,111q 35-49.5 35-110.5t-35.5-111z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"forbidden\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.75t 99.5-20.5t 99.5,20.5t 81.75,54.75t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 64,256q0,52 25.75,96.25t 70,70t 96.25,25.75q 61,0 111-35.5\nl-267.5-267.5q-35.5,50 -35.5,111zM 256,64q-60.5,0 -110.5,35l 267.5,267.5q 35-50 35-110.5q0-52.5 -25.75-96.75t-70-69.75t-96.25-25.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"radiobutton\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45t 45.25-18.5l 384,0 q 26.5,0 45.25,18.5t 18.75,45l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,96q0-13 -9.25-22.5t-22.75-9.5l-320,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,320 q0,13.5 9.25,22.75t 22.75,9.25l 320,0 q 13.5,0 22.75-9.25t 9.25-22.75\nl0-320 zM 255.75,352q-39.75,0 -67.75-28t-28-67.75t 28-68t 67.75-28.25t 68,28.25t 28.25,68t-28.25,67.75t-68,28z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"checkbox2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45t 45.25-18.5l 384,0 q 26.5,0 45.25,18.5t 18.75,45l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,96q0-13 -9.25-22.5t-22.75-9.5l-320,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,320 q0,13.5 9.25,22.75t 22.75,9.25l 320,0 q 13.5,0 22.75-9.25t 9.25-22.75\nl0-320 zM 303,256l 71,71q 10,10 10,23.75t-9.75,23.25t-23.5,9.5t-23.75-9.5l-71-71l-71,71.5q-10,9.5 -23.5,9.5t-23.25-9.75t-9.75-23.5t 9.5-23.25l 71.5-71.5l-72-71.5q-9.5-10 -9.5-23.75t 9.5-23.25t 23.25-9.5t 23.75,9.5l 71.5,72l 72-72q 9.5-9.5 23.25-9.5t 23.5,9.75t 9.75,23.5t-10,23.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"checkbox\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45t 45.25-18.5l 384,0 q 13.5,0 26.5,5.5l-58.5,58l-320,0 q-13,0 -22.5,9.5t-9.5,22.5l0,320 q0,13.5 9.25,22.75t 22.75,9.25l 320,0 q 13,0 22.5-9.25t 9.5-22.75l0-192 l 64-64l0,288 q0,26.5 -18.75,45.25t-45.25,18.75zM 279,342.5q-9.5,9.5 -23.5,9\nq-14.5,0.5 -24-9.5l-94-93.5q-9.5-10 -9.5-23.75t 9.75-23.25t 23.25-9.5t 23.5,9.5l 72,72l 244-245.5q 11.5,16.5 11.5,36l0,34 q-4,15.5 -10,21z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"maximize\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,128l-35-35l-58.5,58q-8.5,9 -21,9t-21.25-8.75t-8.75-21.25t 9-21l 58-58.5l-34.5-34.5q0-13 1.25-14.5t 14.75-1.5l 80,0 q 13,0 22.5,9.5t 9.5,22.5l0,80 q0,13.5 -1.5,14.75t-14.5,1.25zM 384,256l0,192 q0,26.5 -18.75,45.25t-45.25,18.75l-256,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-192 q0-26.5 18.75-45.25\nt 45.25-18.75l 256,0 q 26.5,0 45.25,18.75t 18.75,45.25zM 320,288q0-13 -9.5-22.5t-22.5-9.5l-192,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,128 q0,13.5 9.25,22.75t 22.75,9.25l 192,0 q 13,0 22.5-9.25t 9.5-22.75l0-128 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"minimize\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,320l-256,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-192 q0-26.5 18.75-45.25t 45.25-18.75l 256,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,192 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,96q0-13.5 -9.25-22.75t-22.75-9.25l-192,0 q-13,0 -22.5,9.25t-9.5,22.75l0,128 q0,13 9.5,22.5t 22.5,9.5l 192,0 q 13.5,0 22.75-9.5\nt 9.25-22.5l0-128 zM 352,480q0,13.5 -9.25,22.75t-22.75,9.25l-192,0 q-13,0 -22.5-9.25t-9.5-22.75t 9.5-22.75t 22.5-9.25l 192,0 q 13.5,0 22.75,9.25t 9.25,22.75zM 32.25,512q-13.25,0 -22.75-9.25t-9.5-22.75t 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75t-9.25,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"restore\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,320l-32,0 l0-64 q 13.5,0 22.75-9.5t 9.25-22.5l0-128 q0-13.5 -9.25-22.75t-22.75-9.25l-192,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,64 l-64,0 l0-96 q0-26.5 18.75-45.25t 45.25-18.75l 256,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,192 q0,26.5 -18.75,45.25t-45.25,18.75zM 384,256l0,192 q0,26.5 -18.75,45.25\nt-45.25,18.75l-256,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-192 q0-26.5 18.75-45.25t 45.25-18.75l 256,0 q 26.5,0 45.25,18.75t 18.75,45.25zM 288,256l-192,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,128 q0,13 9.25,22.5t 22.75,9.5l 192,0 q 13.5,0 22.75-9.5t 9.25-22.5l0-128 q0-13.5 -9.25-22.75t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"equals\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448l-448,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 448,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 480,192l-448,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 448,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13 -9.25,22.5\nt-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"smaller\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,428l0,64.5 q0,13.5 -9.25,18t-22.75-3l-448-165q-13.5-7.5 -22.75-22t-9.25-28l0-72.5 q0-13 9.25-27.75t 22.75-21.75l 448-165q 13.5-7.5 22.75-3.25t 9.25,17.75l0,64.5 q0,13.5 -9.25,28.25t-22.75,21.75l-330.5,122l 330.5,122q 13.5,7 22.75,21.5t 9.25,28z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bigger\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,342.5l-448,165q-13.5,7.5 -22.75,3t-9.25-18l0-64.5 q0-13.5 9.25-28t 22.75-22l 330.5-122l-330.5-122q-13.5-7 -22.75-21.75t-9.25-27.75l0-65 q0-13.5 9.25-17.75t 22.75,3.25l 448,165q 13,7.5 22.5,22t 9.5,28l0,72.5 q0,13.5 -9.5,28t-22.5,22z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"settings5\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l-160,0 q0,13 -9.5,22.5t-22.5,9.5l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l-160,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 160,0 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l 160,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 288,224l-64,0 l0,64 l 64,0 l0-64 \nzM 480,96l-32,0 q0,13 -9.5,22.5t-22.5,9.5l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l-288,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 288,0 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l 32,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 416,32l-64,0 l0,64 l 64,0 l0-64 z\nM 32,416l 32,0 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l 288,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.5,22.75t-22.5,9.5l-288,0 q0,13.5 -9.5,22.75t-22.5,9.25l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25zM 96,480l 64,0 l0-64 l-64,0 l0,64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"settings4\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,320q 1,9 1,16t-1,16l-32,0 q-1.5,12 -4.5,24l 29.5,12.5q-4.5,14.5 -12,29.5l-30-12.5q-5.5,10.5 -13.5,20.5l 22.5,22.5q-10,12.5 -22.5,22.5l-22.5-22.5q-10,8 -20.5,13.5l 12.5,29.5q-15,8 -29.5,12.5l-12.5-29.5q-12,3 -24,4.5l0,32 q-9,1 -16,1t-16-1l0-32 q-12-1.5 -24-4.5l-12,29.5q-15-4.5 -30-12.5l 12.5-29.5\nq-10.5-5.5 -20-13.5l-23,22.5q-12.5-10 -22.5-22.5l 22.5-22.5q-7.5-10 -13.5-20.5l-29.5,12.5q-8-15 -12.5-29.5l 30-12.5q-3.5-12 -5-24l-32,0 q-1-9 -1-16t 1-16l 32,0 q 1.5-12 5-24l-30-12.5q 4.5-14.5 12.5-29.5l 29.5,12.5q 6-10.5 13.5-20.5l-22.5-22.5q 10-12.5 22.5-22.5l 23,22.5q 9.5-8 20-13.5l-12.5-30q 15-7.5 30-12l 12,29.5q 12-3.5 24-4.5l0-32 \nq 9-1 16-1t 16,1l0,32 q 12,1 24,4.5l 12.5-29.5q 14.5,4.5 29.5,12l-12.5,30q 10.5,6 20.5,13.5l 22.5-22.5q 12.5,10 22.5,22.5l-22.5,22.5q 8,10 13.5,20.5l 30-12.5q 7.5,15 12,29.5l-29.5,12.5q 3,12 4.5,24l 32,0 zM 337,256q-33,0 -56.5,23.5t-23.5,56.5t 23.5,56.5t 56.5,23.5t 56.5-23.5t 23.5-56.5t-23.5-56.5t-56.5-23.5zM 224.5,149l-6,15.5\nq-1.5,3 -4.75,4.5t-6.25,0l-28.5-11.5q-8.5,12 -20.5,20l 12,28.5q 1.5,3.5 0,6.5t-4.5,4.5l-15.5,6.5q-3,1.5 -6.25,0t-4.75-4.5l-12-28.5q-8,1.5 -14.5,1.5q-6,0 -14-1.5l-12,28.5q-1,3 -4.25,4.5t-6.75,0l-15-6.5q-3.5-1 -4.75-4.25t-0.25-6.75l 12-28q-12-8.5 -20.5-20.5l-28.5,12q-3,1 -6.25-0.25t-4.75-4.25l-6-15.5\nq-1.5-3.5 -0.25-6.75t 4.75-4.25l 28-12q-1.5-8 -1.5-14.5q0-6 1.5-14.5l-28.5-11.5q-3-1.5 -4.25-4.5t-0.25-6.5l 6.5-15.5q 1.5-3 4.5-4.5t 6.5,0l 28.5,11.5q 8-12 20-20l-11.5-28.5q-1.5-3.5 -0.25-6.5t 4.75-4.5l 15.5-6.5q 3-1.5 6.25,0t 4.75,4.5l 11.5,28.5q 8-1.5 14.5-1.5t 14.5,1.5l 11.5-28.5q 1.5-3.5 4.75-4.75t 6.25,0.25l 15.5,6.5q 3.5,1 4.75,4.25t-0.25,6.25\nl-11.5,28.5q 12,8.5 20.5,20.5l 28-12q 3.5-1 6.75,0.25t 4.25,4.25l 6.5,15.5q 1.5,3.5 0.25,6.75t-4.75,4.25l-28.5,12q 1.5,8 1.5,14.5t-1.5,14.5l 28.5,11.5q 3.5,1.5 4.75,4.5t-0.25,6.5zM 113.25,64q-19.75,0 -34,14t-14.25,34t 14.25,34t 34,14t 33.75-14t 14-34t-14-34t-33.75-14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"settings3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,383.5l-54,0 q-6,17.5 -19,32l 23.5,41.5q 3,6 1.25,12t-6.75,9.5l-26.5,15.5q-5.5,3 -11.5,1.5t-9-7.5l-24-42q-10,2 -18,2t-18-2l-24,42q-3,6 -9,7.5t-11.5-1.5l-26.5-15.5q-5-3.5 -6.75-9.5t 1.25-12l 23.5-41.5q-13-14.5 -19-32l-54,0 q-6.5,0 -11.25-4.5t-4.75-11.5l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 54,0 \nq 6-17 19-31.5l-23.5-41.5q-3-6 -1.25-12t 6.75-9.5l 26.5-15.5q 5.5-3 11.5-1.5t 9,7l 24,42.5q 10-2 18-2t 18,2l 24-42.5q 3-5.5 9-7t 11.5,1.5l 26.5,15.5q 5,3.5 6.75,9.5t-1.25,12l-23.5,41.5q 13,14.5 19,31.5l 54,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,7 -4.75,11.5t-11.25,4.5zM 352,319.5q-13.5,0 -22.75,9.5\nt-9.25,22.75t 9.25,22.5t 22.75,9.25t 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5zM 304,191.5l-54,0 q-6,17.5 -19,32l 23.5,41.5q 3,5.5 1.25,11.75t-6.75,9.75l-26.5,15.5q-5.5,3 -11.5,1.25t-9-7.25l-24-42q-9.5,1.5 -18,1.5t-18-1.5l-24,42q-3,5.5 -9,7.25t-11.5-1.25l-26.5-15.5q-5-3.5 -6.75-9.75\nt 1.25-11.75l 23.5-41.5q-13-14.5 -19-32l-54,0 q-6.5,0 -11.25-4.5t-4.75-11.5l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 54,0 q 6-17 19-32l-23.5-41.5q-3-5.5 -1.25-11.75t 6.75-9.25l 26.5-15.5q 5.5-3.5 11.5-1.75t 9,7.25l 24,42.5q 10-2 18-2t 18,2l 24-42.5q 3-5.5 9-7.25t 11.5,1.75l 26.5,15.5q 5,3 6.75,9.25t-1.25,11.75l-23.5,41.5\nq 13,15 19,32l 54,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,7 -4.75,11.5t-11.25,4.5zM 160,127.5q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25t 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"settings2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,288l-51,0 q-7,43.5 -33,79.5l 31.5,32q 4.5,4.5 4.5,11t-4.5,11l-22,22q-4.5,4.5 -11,4.5t-11-4.5l-32-31.5q-36,26 -79.5,33l0,51 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-51 q-43.5-7 -79.5-33l-32,31.5q-4.5,4.5 -11,4.5t-11-4.5l-22-22q-4.5-4.5 -4.5-11t 4.5-11l 31.5-32\nq-26-36 -33-79.5l-51,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 51,0 q 7-43 33-79.5l-31.5-31.5q-4.5-4.5 -4.5-11t 4.5-11l 22-22.5q 4.5-4.5 11-4.5t 11,4.5l 32,32q 36-26 79.5-33.5l0-51 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,51 q 43.5,7.5 79.5,33.5l 32-32q 4.5-4.5 11-4.5t 11,4.5\nl 22,22.5q 4.5,4.5 4.5,11t-4.5,11l-31.5,31.5q 26,36.5 33,79.5l 51,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 256,128q-53,0 -90.75,37.5t-37.75,90.5t 37.75,90.5t 90.75,37.5t 90.75-37.5t 37.75-90.5t-37.75-90.5t-90.75-37.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"left\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 9.5,233l 226-224.5q 9.5-9.5 22.75-9.5t 22.75,9.5l 46,45.5q 9.5,9.5 9.5,22.75t-9.5,22.75l-93,92l 246,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13 -9.25,22.5t-22.75,9.5l-246.5,0 l 93.5,92.5q 9.5,9 9.5,22.5t-9.5,22.5l-46,45.5q-9.5,9.5 -22.75,9.5t-22.75-9.5l-226-224q-9.5-9.5 -9.5-22.75t 9.5-22.75z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"right\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.5,278.5l-226,224q-9.5,9.5 -22.75,9.5t-22.75-9.5l-46-45.5q-9.5-9 -9.5-22.5t 9.5-22.5l 93-92l-246,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 246.5,0 l-93.5-92.5q-9.5-9.5 -9.5-22.75t 9.5-22.75l 46-45.5q 9.5-9 22.75-9t 22.75,9l 226,224.5q 9.5,9.5 9.5,22.75t-9.5,22.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"upright\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,415.5l-64,0 q-13,0 -22.5-9.25t-9.5-22.75l0-162 l-283.5,281q-9,9.5 -22.5,9.5t-23-9.5l-45.5-45q-9.5-9.5 -9.5-22.75t 9.5-22.75l 286-283.5l-167.5,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 352,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,351 q0,13.5 -9.5,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"upleft\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.5,457.5l-45.5,45q-9.5,9.5 -23,9.5t-23-9.5l-283-281.5l0,162.5 q0,13.5 -9.5,22.75t-22.5,9.25l-64,0 q-13,0 -22.5-9.25t-9.5-22.75l0-351.5 q0-13.5 9.25-22.75t 22.75-9.25l 352,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13 -9.5,22.5t-22.5,9.5l-167,0 l 285.5,284q 9.5,9.5 9.5,22.75t-9.5,22.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"up\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 278.5,10l 224,226q 9.5,9.5 9.5,22.75t-9.5,22.75l-45,45.5q-9.5,9.5 -22.75,9.5t-22.75-9.5l-92-92.5l0,245.5 q0,13.5 -9.25,22.75t-22.75,9.25l-63.5,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-246 l-92.5,93q-9.5,9.5 -22.75,9.5t-22.75-9.5l-45-45.5q-9.5-9.5 -9.5-22.75t 9.5-22.75l 224-226q 9-9.5 22.5-9.5\nt 22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"downright\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,97l-64,0 q-13,0 -22.5,9.25t-9.5,22.75l0,162 l-283.5-281q-9-9.5 -22.5-9.5t-23,9.5l-45.5,45q-9.5,9.5 -9.5,22.75t 9.5,22.75l 286,284l-167.5,0 q-13,0 -22.5,9.25t-9.5,22.25l0,64 q0,13.5 9.5,22.75t 22.5,9.25l 352,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-351.5 q0-13 -9.25-22.25t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"downleft\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 32,97l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,162.5 l 283-281.5q 9.5-9.5 23-9.5t 23,9.5l 45.5,45q 9.5,9.5 9.5,22.75t-9.5,22.75l-286,284l 167.5,0 q 13,0 22.5,9.25t 9.5,22.25l0,64 q0,13.5 -9.5,22.75t-22.5,9.25l-352,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-351 q0-13.5 9.25-22.75t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"down\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 233.5,502.5l-224-225.5q-9.5-9.5 -9.5-23t 9.5-22.5l 45-46q 9.5-9.5 22.75-9.5t 22.75,9.5l 92,92.5l0-245.5 q0-13 9.25-22.5t 22.75-9.5l 63.5,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,246 l 92.5-93q 9.5-9.5 22.75-9.5t 22.75,9.5l 45,46q 9.5,9 9.5,22.5t-9.5,23l-224,225.5q-9,9.5 -22.5,9.5t-22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"queen\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,96l-64,224q-2.5,8.5 -25,18.25t-55,13.75q 13,30.5 34,47.25t 46,16.75q 13.5,0 22.75,9.5t 9.25,22.5l0,32 q0,13.5 -9.25,22.75t-22.75,9.25l-320,0 q-13,0 -22.5-9.25t-9.5-22.75l0-32 q0-13 9.5-22.5t 22.5-9.5q 25,0 46-16.75t 34-47.25q-33.5-4 -55.5-13.25t-24.5-18.75l-64-224l 96,82.5l0-146.5 \nl 77,128l 51-160l 51,160l 77-128l0,146.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"king\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,416q 13,0 22.5,9.5t 9.5,22.5l0,32 q0,13.5 -9.5,22.75t-22.5,9.25l-320,0 q-13,0 -22.5-9.25t-9.5-22.75l0-32 q0-13 9.5-22.5t 22.5-9.5q 29,0 53-26.5t 35-70q-50.5-3 -85.25-39.75t-34.75-87.75q0-53 37.5-90.5t 90.5-37.5q 16,0 32,4l0-36 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,36 q 16-4 32-4\nq 53,0 90.5,37.5t 37.5,90.5q0,51 -34.75,87.75t-85.25,39.75q 11,43.5 35,70t 53,26.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"knight\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 417,416q 13,0 22.5,9.5t 9.5,22.5l0,32 q0,13.5 -9.5,22.75t-22.5,9.25l-320,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-32 q0-13 9.25-22.5t 22.75-9.5q 26,0 48-21.5t 35-58.25t 13-80.25q0-1.5 -0.25-4t-0.25-3.5l-47.5,40.5q-26,47 -66,22.5q-13.5-8 -14.25-31.25t 6-46.25t 16.25-40l 90-163q 7.5-13.5 20.25-21.75\nt 27.75-9.25l 16,0 q 64.5,0 112,41.25t 71.75,113.25t 24.25,165.5q-65.5,0 -96,48q 28,48 64,48zM 225,104q0-3.5 -2.5-5.75t-5.5-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3,0 5.5-2.25t 2.5-5.75l0-16 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"rook\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-13,0 -22.5-9.25t-9.5-22.75l0-32 q0-13 9.5-22.5t 22.5-9.5l 3,0 q 38-2 64.5-37.5t 28.5-90.5q-13.5-4 -22.75-14t-9.25-18q0-7 10-17.5t 22-14.5q-7.5-37 -26.75-66.5t-37.25-29.5q-13,0 -22.5-9.25t-9.5-22.75l0-32 l0-32 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,16 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75\nt 4.75-11.25l0-16 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,16 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-16 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,32 l0,32 q0,13.5 -9.25,22.75t-22.75,9.25q-18,0 -37.25,29.5t-26.75,66.5q 12,4 22,14.5t 10,17.5q0,8 -9.25,18t-22.75,14\nq 2,55 28.5,90.5t 64.5,37.5l 3,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,32 q0,13.5 -9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bishop\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-13,0 -22.5-9.25t-9.5-22.75l0-32 q0-13 9.5-22.5t 22.5-9.5q 30,0 54-28t 35-73.5q-26.5-4.5 -41.75-11.5t-15.25-15q0-12 32-21q-32-42.5 -32-91q0-25 15.5-57t 36.5-57.75t 42.5-43.5t 33.5-17.75t 33.5,17.75t 42.5,43.5t 36.5,57.75t 15.5,57q0,48.5 -32,91q 32,9 32,21q0,8 -15.25,15t-41.75,11.5\nq 11,45.5 35,73.5t 54,28q 13.5,0 22.75,9.5t 9.25,22.5l0,32 q0,13.5 -9.25,22.75t-22.75,9.25zM 256,64q-8,0 -23.25,19.5t-28,47.75t-12.75,47.75q0,32 18.75,54.5t 45.25,22.5t 45.25-22.5t 18.75-54.5q0-19.5 -12.75-47.75t-28-47.75t-23.25-19.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pawn\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-32 q0-13 9.25-22.5t 22.75-9.5q 39.5,0 67.75-44.75t 28.25-115.25q-22.5,0 -43.25-11.25t-20.75-20.75q0-10.5 26-19q-26-34.5 -26-77q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5q0,42.5 -26,77q 26,8.5 26,19q0,9.5 -20.75,20.75t-43.25,11.25\nq0,70.5 28.25,115.25t 67.75,44.75q 13,0 22.5,9.5t 9.5,22.5l0,32 q0,13.5 -9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"diamonds\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 32,256q 7-3.5 19.5-10.5t 46.25-32t 62.25-53.5q 18-18 34.25-41t 27-43.25t 19-37.75t 11.75-27.5l 4-10.5q 1,4 3.5,10.75t 11.5,26.75t 19.25,38.75t 27,42.25t 34.75,41.5q 28,28.5 60,52.5t 50,33.5l 17.5,10q-7,3.5 -19.5,10.75t-46.25,32t-61.75,53.25q-18,18 -34.5,41t-27.25,43.25t-19,37.75t-11.75,27.5\nl-3.5,10.5q-1.5-4 -4-10.75t-11.5-26.75t-19.25-38.75t-26.75-42.25t-34.5-41.5q-28.5-28.5 -60.75-52.5t-49.25-33.75t-18-9.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"clubs\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,448q-56,0 -94-41.5q 3.5,47 11.75,76.25t 18.25,29.25l-128,0 q 10,0 18.25-29.25t 11.75-76.25q-38,41.5 -94,41.5q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5q 7,0 18.5,1.5q-18.5-30.5 -18.5-65.5q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5q0,35 -18.5,65.5q 11.5-1.5 18.5-1.5q 53,0 90.5,37.5t 37.5,90.5\nt-37.5,90.5t-90.5,37.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"spades\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,448q-56,0 -94-41.5q 3.5,47 11.75,76.25t 18.25,29.25l-128,0 q 10,0 18.25-29.25t 11.75-76.25q-38,41.5 -94,41.5q-53,0 -90.5-37.5t-37.5-90.5q0-39 14-74.5t 36.75-62t 50-49.75t 54.5-41.75t 50-34t 36.75-30.5t 14-27.5q0,12.5 14,27.5t 36.75,30.5t 50,34t 54.5,41.75t 50,49.75t 36.75,62t 14,74.5\nq0,53 -37.5,90.5t-90.5,37.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"hearts\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q0-10 -8.75-21.5t-23.5-23.5t-34-26t-40.5-31.25t-42.5-37.25t-40.5-45.75t-34-54.5t-23.5-66t-8.75-78.25q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5q0,41 -8.75,78.25t-23.5,66t-34,54.5t-40.5,45.75t-42.5,37.25t-40.5,31.25t-34,26t-23.5,23.5\nt-8.75,21.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bowling\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 95.75,192q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 192,64\nq-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.25-22.5t-22.75-9.25zM 256,192q-13.5,0 -22.75,9.25t-9.25,22.5t 9.5,22.75t 22.5,9.5t 22.5-9.5t 9.5-22.75t-9.25-22.5t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"racquet\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 510.75,503.25q-8.75,8.75 -21,8.75t-21.25-8.5l-84.5-84.5q-9.5-10 -8-25l-18.5-18.5q-6.5-7 -11.5-11t-14.5-8.25t-20-4.25l-89,0 q-39.5,2 -79.5-14.25t-72-48.75q-37-36.5 -53-83t-8.25-90.5t 38.5-74.75t 74.75-38.5t 90.5,8.25t 83,53q 32.5,32 48.75,72t 14.25,79.5l0,89 q0,23 23.5,46l 18.5,18.5\nq 15-1.5 25,8l 84,84.5q 9,9 9,21.25t-8.75,21zM 276,84q-46-46 -105.5-51.25t-97.5,32.75t-32.75,97.5t 51.25,105.5t 105.5,51.25t 97.5-32.75t 32.75-97.5t-51.25-105.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"golf\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-15t-93.25-40.75t-34.25-56.25t 34.75-56.25t 93.25-40.75l0,97 q0,20 14,34t 34,14t 34-14t 14-34l0-111 q 18.5-1 32-1q 69.5,0 128.5,15t 93.25,40.75t 34.25,56.25t-34.25,56.25t-93.25,40.75t-128.5,15zM 320,384q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25\nt 22.75-9.25t 9.5-22.75t-9.25-22.75t-22.75-9.25zM 369.5,112l-131,80q-6,0 -10.25-4.75t-4.25-11.25l0-160 q0-6.5 4.25-11.25t 10.25-4.75l 131,80q 0.5,0.5 2.5,1.5t 2.75,1.5t 2.5,1.5t 2.25,1.75t 1.75,2t 1.75,2.25t 0.75,2.5t 0.25,3q0,6 -3.5,9t-11,7zM 176,416q-6.5,0 -11.25-4.75t-4.75-11.25l0-384 \nq0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,384 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pingpong\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 438,510l-131.5-153.5q-34,22 -72.75,26.75t-78.75-10t-73.5-48.25q-40-40 -60.25-93.5t-14.5-105.5t 39-85.5t 85.5-39.25t 105.75,14.5t 93,60.25q 34,33.5 48.75,73.5t 10,78.75t-26.25,72.75l 154,131q 5,5 -11.75,27.5t-38.25,40t-28.5,10.5zM 308,95q-33-33 -77.5-50t-88-12t-71.25,32.75\nt-32.75,71.25t 12,88t 50,77.5q 32,32 71,43.5l 180-180q-11.5-39 -43.5-71z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"axe\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507,481.5l-25.5,25.5q-5,5 -12.25,5t-12.75-5l-288.5-289q-8,18.5 -8,38q0,29.5 17,54q-24,10 -49,10q-53,0 -90.5-37.5t-37.5-90.5q0-24.5 10-48.5q 24.5,16.5 54,16.5q 20,0 38-8l-65-64.5q-5-5.5 -5-12.75t 5-12.25l 25.5-25.5q 5-5 12.25-5t 12.75,5l 64.5,65q 8-18.5 8-38\nq0-29.5 -16.5-54q 23.5-10 48.5-10q 53,0 90.5,37.5t 37.5,90.5q0,25 -10,49q-24.5-17 -54-17q-19.5,0 -38,8l 289,288.5q 5,5.5 5,12.75t-5,12.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bow\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,384q 7,0 14,7l 50,50l0,7 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,48 l-7,0 l-50-50q-7-7 -7-14l0-42 l-128-128l-227,226.5q-4.5,7.5 -13,7.5q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 q0-93.5 34.25-177.75t 95.75-150.25l-93-93l-21,21q-6.5,0 -11.25-4.75t-4.75-11.25l0-48 q0-6.5 4.75-11.25\nt 11.25-4.75l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l-21.5,21.5l 93.5,93q 65.5-62 150-96.25t 178-34.25l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25q0,8.5 -7.5,13l-227,227l 128,128l 42.5,0 l0,0 zM 33.5,457l 200.5-201l-60.5-60.5q-58.5,61 -96.25,129.75t-43.75,131.75zM 457,33.5q-63,6 -131.75,43.75t-130.25,96.25\nl 61,61z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sword\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507,481.5l-25.5,25.5q-5,5 -12.25,5t-12.75-5l-89.5-90l-58.5,58.5q-4.5,5 -11.5,5t-12-5l-24-24q-5-5 -5-12t 5-11.5l 42.5-42.5l-295.5-295.5q-2-2.5 -3.75-5.25t-2.5-4.75t-1.25-4.75t-0.5-4.25l0-4 l0-3 l0-48 q0-6.5 4.75-11.25t 11.25-4.75l 48,0 l 3.5,0 l 3.75,0 t 4,0.5t 4.75,1.25t 4.75,2.5t 5.25,3.75l 295.5,295.5l 42.5-42.5\nq 4.5-5 11.5-5t 12,5l 24,24q 5,5 5,12t-5,12l-58.5,58l 90,89.5q 5,5.5 5,12.75t-5,12.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"americanfootball\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 176,512q-66,0 -144-32q-32-78 -32-144q0-72 25.25-134.5t 69.5-106.75t 106.75-69.5t 134.5-25.25q 66,0 144,32q 32,78 32,144q0,72 -25.25,134.5t-69.5,106.75t-106.75,69.5t-134.5,25.25zM 39,258.5q-7,34 -7,67.5q0,25.5 7.5,59q 35.5,52 87.5,87.5q 33.5,7.5 59,7.5q 33.5,0 67.5-7\nq-82-18.5 -139-75.5t-75.5-139zM 229.25,165.25q-5.25,5.25 -5.25,12.5t 5.5,12.75l 33.5,33.5l-38.5,38.5l-34-33.5q-5-5.5 -12.5-5.5t-12.75,5.5t-5.25,12.75t 5.5,12.75l 33.5,33.5l-38.5,38.5l-34-33.5q-5-5.5 -12.5-5.5t-12.75,5.5t-5.25,12.75t 5.5,12.75l 33.5,33.5l-1.5,1.5q-5,5 -5,12.5t 5.25,12.75t 12.5,5.25\nt 12.75-5.5l 1.5-1l 33.5,33q 5,5.5 12.5,5.5t 12.75-5.25t 5.25-12.75t-5.5-12.5l-33.5-33.5l 39-38.5l 33.5,33.5q 5,5 12.5,5t 12.75-5.25t 5.25-12.75t-5.5-12.5l-33.5-33.5l 39-38.5l 33.5,33.5q 5,5 12.5,5t 12.75-5.25t 5.25-12.75t-5.5-12.5l-33.5-33.5l 38.5-39l 34,34q 5,5 12.5,5t 12.75-5.25t 5.25-12.75t-5.5-12.5l-33.5-33.5l 1.5-2\nq 5.5-5 5.5-12.5t-5.25-12.75t-12.75-5.25t-12.5,5.5l-2,1.5l-33.5-33.5q-5-5 -12.5-5t-12.75,5.25t-5.25,12.5t 5.5,12.75l 33.5,33.5l-39,38.5l-33.5-33.5q-5-5 -12.5-5t-12.75,5.25zM 472.5,127q-35.5-52 -87.5-87.5q-33.5-7.5 -59-7.5q-33.5,0 -67.5,7q 82,18.5 139,75.5t 75.5,139q 7-34 7-67.5\nq0-25.5 -7.5-59z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"football\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 433,119.5q-34.5-45 -87.5-68.5l-89.5,45l-89.5-45q-53,23.5 -88,68.5l 17.5,8.5\nl0,96 l-63,47.5q 4,61.5 39.5,112.5l 87.5,0 l 32,80l0,6.5 q 31.5,9.5 64,9.5t 64-9.5l0-6.5 l 32-80l 87.5,0 q 35.5-51 39.5-112.5l-63-47.5l0-96 zM 206.5,319.5l-30.5-88.5l 80-55l 80,55l-30.5,88.5l-99,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tennis\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5q 69.5,0 128.5-34.25t 93.25-93.25t 34.25-128.5q 69.5,0 128.5,34.25t 93.25,93.25t 34.25,128.5q-69.5,0 -128.5,34.25t-93.25,93.25t-34.25,128.5zM 2,224q 11-87 73-149t 149-73q-0.5,60 -30.25,111t-80.75,80.75t-111,30.25zM 510,288\nq-11,87 -73,149t-149,73q 0.5-60 30.25-111t 80.75-80.75t 111-30.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"basketball\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 342.5,320.5l-64-64.5l 169-169.5q 31,35 47.75,78.25t 16.75,91.25q-48,0 -91.25,17t-78.25,47.5zM 191.5,169.5q 31-35 47.75-78.25t 16.75-91.25q 48,0 91.25,17t 78.25,47.5l-169.5,169zM 87,64.5q 59-52.5 137-62q-1,82 -55,144zM 146.5,169q-62,54 -144.5,55q 10-78 62.5-137z\nM 233.5,256l-169,169.5q-30.5-35 -47.5-78.25t-17-91.25q 48,0 91.25-16.75t 78.25-47.75zM 320.5,342.5q-31,35 -47.75,78.25t-16.75,91.25q-48,0 -91.25-16.75t-78.25-47.75l 169.5-169zM 425,447.5q-59,52.5 -137,62.5q 1-82 55-144.5zM 510,288q-10,78 -62.5,137l-82-82q 62-54 144.5-55z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"medalbronze\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,31.5l-109.5,191q-39.5-43.5 -96.5-57l 76.5-134q 7.5-13 22-22.5t 28-9.5l 64.5,0 q 13.5,0 18,9.5t-3,22.5zM 420.5,352q0,43.5 -21.25,80.25t-58.25,58.25t-80.5,21.5t-80.5-21.5t-58.25-58.25t-21.25-80.25t 21.25-80.5t 58.25-58.5t 80.5-21.5t 80.5,21.5t 58.25,58.5t 21.25,80.5zM 324.5,304q0-25 -17.5-36.75\nt-46.5-11.75l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.5t 4.75,11.5t 11.25,4.75l 48,0 q 1.5,0 4.5-0.5q 7.5,0 11,0.25t 8.25,1.75t 6.5,5t 1.75,9.25t-1.75,9.25t-6.5,5t-8.25,1.75t-11,0.25l-4.5,0 l-16,0 q-6.5,0 -11.25,4.5t-4.75,11.25t 4.75,11.5t 11.25,4.75l 16,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-48,0 l0,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l0,0 l 48,0 q 26.5,0 45.25-18.75t 18.75-45.25q0-29 -22-48q 3-2.5 8.75-7t 7.75-6.5t 3.75-7t 1.75-11.5zM 9,31.5q-7.5-13 -3-22.5t 18-9.5l 64.5,0 q 13.5,0 28,9.5t 22,22.5l 76.5,134q-57,13.5 -96.5,57z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"medalsilver\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,31.5l-109.5,191q-39.5-43.5 -96.5-57l 76.5-134q 7.5-13 22-22.5t 28-9.5l 64.5,0 q 13.5,0 18,9.5t-3,22.5zM 420.5,352q0,43.5 -21.25,80.25t-58.25,58.25t-80.5,21.5t-80.5-21.5t-58.25-58.25t-21.25-80.25t 21.25-80.5t 58.25-58.5t 80.5-21.5t 80.5,21.5t 58.25,58.5t 21.25,80.5zM 260.5,384q 26.5,0 45.25-18.75\nt 18.75-45.25t-18.75-45.5t-45.25-19t-45.25,19t-18.75,45.5q0,6.5 4.5,11.25t 11.25,4.75t 11.5-4.75t 4.75-11.25q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5q-26.5,0 -45.25,18.75t-18.75,45.25l0,16 q0,6.5 4.5,11.25t 11.5,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75\nl-80,0 q0-13.5 9.25-22.75t 22.75-9.25zM 9,31.5q-7.5-13 -3-22.5t 18-9.5l 64.5,0 q 13.5,0 28,9.5t 22,22.5l 76.5,134q-57,13.5 -96.5,57z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"medalgold\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,31.5l-109.5,191q-39.5-43.5 -96.5-57.5l 76.5-133.5q 7.5-13 22-22.5t 28-9.5l 64.5,0 q 13.5,0 18,9.5t-3,22.5zM 420.5,352q0,43.5 -21.25,80.25t-58.25,58.25t-80.5,21.5t-80.5-21.5t-58.25-58.25t-21.25-80.25t 21.25-80.5t 58.25-58.5t 80.5-21.5t 80.5,21.5t 58.25,58.5t 21.25,80.5zM 308.5,416l-16,0 l0-96.5 \nq0-26.5 -18.75-45.25t-45.25-18.75l0,0.5 l0-0.5 q-7,0 -11.5,4.75t-4.5,11.5t 4.5,11.5t 11.5,4.75l0-0.5 q 13.5,0.5 22.75,9.75t 9.25,22.25l0,96.5 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 9,31.5q-7.5-13 -3-22.5t 18-9.5l 64.5,0 q 13.5,0 28,9.5t 22,22.5\nl 76.5,133.5q-57,14 -96.5,57.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"medal\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,31.5l-109.5,191q-40-43.5 -96.5-57l 76.5-134q 7.5-13 22-22.5t 28-9.5l 64.5,0 q 13.5,0 18,9.5t-3,22.5zM 420.5,352q0,43.5 -21.25,80.25t-58.25,58.25t-80.5,21.5t-80.5-21.5t-58.25-58.25t-21.25-80.25t 21.25-80.5t 58.25-58.5t 80.5-21.5t 80.5,21.5t 58.25,58.5t 21.25,80.5zM 9,31.5q-7.5-13 -3-22.5t 18-9.5\nl 64.5,0 q 13.5,0 28,9.5t 22,22.5l 76.5,134q-57,13.5 -96.5,57z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"warmedal\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 471.5,212.5l-47,47q-15.5-28 -40.5-50l0-209.5 l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,160 q0,12 -8.5,20.5zM 256,512q-43.5,0 -80.25-21.5t-58.25-58.25t-21.5-80.25t 21.5-80.25t 58.25-58.25t 80.25-21.5t 80.25,21.5t 58.25,58.25t 21.5,80.25t-21.5,80.25t-58.25,58.25t-80.25,21.5zM 296.5,303l-40.5-84\nl-40.5,84l-94,11.5l 69,63.5l-17.5,91l 83-45l 83,45l-17.5-91l 69-63.5zM 320,0l 32,0 l0,186 q-15.5-8.5 -32-14.5l0-171.5 zM 160,0l 32,0 l0,171.5 q-17,6 -32,14.5l0-186 zM 87.5,259.5l-47-47q-8.5-8.5 -8.5-20.5l0-160 q0-13 9.5-22.5t 22.5-9.5l 64,0 l0,209.5 q-25,22 -40.5,50z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lifefull\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,144q0,29 -17.5,77.25t-47,93.25q-17.5,27.5 -27.75,43.25t-26.75,39.5t-28,37.75t-26.75,30.5t-27.75,25.5t-26.75,15t-27.75,6t-27.75-6.25t-26.75-15.25t-28-25.75t-27-30.75t-28-37.75t-26.75-39.25t-27.25-42.5q-31-47.5 -47.75-94.25t-16.75-76.25l0,0 q0-59.5 42.25-101.75t 101.75-42.25\nq 33.5,0 62.5,14.25t 49.5,39.25q 20-25 49.25-39.25t 62.75-14.25q 59.5,0 101.75,42.25t 42.25,101.75l0,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lifehalf\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,144q0,29 -17.5,77.25t-47,93.25q-17.5,27.5 -27.75,43.25t-26.75,39.5t-28,37.75t-26.75,30.5t-27.75,25.5t-26.75,15t-27.75,6t-27.75-6.25t-26.75-15.25t-28-25.75t-27-30.75t-28-37.75t-26.75-39.25t-27.25-42.5q-31-47.5 -47.75-94.25t-16.75-76.25l0,0 q0-59.5 42.25-101.75t 101.75-42.25\nq 33.5,0 62.5,14.25t 49.5,39.25q 20-25 49.25-39.25t 62.75-14.25q 59.5,0 101.75,42.25t 42.25,101.75l0,0 zM 368,64q-20.5,0 -42.5,14.25t-37.5,33.75q-1.5,2 -5.75,9t-7,11.25t-8.25,8t-11,3.75l0,304 q 11.5,0 23-5.75t 20.5-14.25t 20.5-24t 19.75-28.25t 21.75-33.75l 22.5-35q 29.5-43.5 48-88t 16-75q0-33 -23.5-56.5\nt-56.5-23.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lifeempty\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,144q0,29 -17.5,77.25t-47,93.25q-17.5,27.5 -27.75,43.25t-26.75,39.5t-28,37.75t-26.75,30.5t-27.75,25.5t-26.75,15t-27.75,6t-27.75-6.25t-26.75-15.25t-28-25.75t-27-30.75t-28-37.75t-26.75-39.25t-27.25-42.5q-31-47.5 -47.75-94.25t-16.75-76.25l0,0 q0-59.5 42.25-101.75t 101.75-42.25\nq 33.5,0 62.5,14.25t 49.5,39.25q 20-25 49.25-39.25t 62.75-14.25q 59.5,0 101.75,42.25t 42.25,101.75l0,0 zM 368,64q-20.5,0 -42.5,14.25t-37.5,33.75q-1.5,2 -5.75,9t-7,11.25t-8.25,8t-11,3.75t-11-3.75t-8.25-7.75t-7.25-11.25t-5.5-9.25q-15.5-19.5 -37.5-33.75t-42.5-14.25q-33,0 -56.5,23.5t-23.5,56.5\nq-2.5,30.5 16,75t 48,88q 9,13.5 22.25,34.5t 21.5,33.75t 19.75,28.25t 20.75,24t 20.75,14.5t 23,6t 23-5.75t 20.5-14.25t 20.5-24t 19.75-28.25t 21.75-33.75l 22.5-35q 29.5-43.5 48-88t 16-75q0-33 -23.5-56.5t-56.5-23.5zM0,144zM0,144z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"starfull\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 453,314q-23,23 -44,39q 3.5,18 6,35.5q 4,34 4.5,56.75t-3.75,38.5t-12.75,22.25t-24,5.75t-35.75-8.25t-49.75-22q-17.5-9 -34.5-19.5q-16,10 -34.5,19.5q-29.5,14.5 -49.75,22t-35.75,8.25t-24-5.75t-12.75-22.25t-3.75-38.5t 4.5-56.75q 2.5-17 6-35.5q-21-16 -44-39q-24-24 -38.25-41.75t-20-32.75\nt-2.25-25.5t 17.5-19.5t 36.25-15.25t 57.25-12.75q 24.5-4 45.5-6q 8.5-20.5 21-43.5q 16-29.5 28.5-47.75t 25-28t 23.5-9.75t 23.5,9.75t 25,28t 28.5,47.75q 12.5,23 21,43.5q 21,2 45.5,6q 35,6.5 57.25,12.75t 36.25,15.25t 17.5,19.5t-2.25,25.5t-20,32.75t-38.25,41.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"starhalf\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 453,314q-23,23 -44,39q 3.5,18 6,35.5q 4,34 4.5,56.75t-3.75,38.5t-12.75,22.25t-24,5.75t-35.75-8.25t-49.75-22q-17.5-9 -34.5-19.5q-16,10 -34.5,19.5q-29.5,14.5 -49.75,22t-35.75,8.25t-24-5.75t-12.75-22.25t-3.75-38.5t 4.5-56.75q 2.5-17.5 6-35.5q-21.5-16 -44-39q-24-24 -38.25-41.75t-20-32.75\nt-2.25-25.5t 17.5-19.5t 36.25-15.25t 57.25-12.75q 24.5-4 45.5-6q 8.5-21 21-43.5q 16-29.5 28.5-47.75t 25-28t 23.5-9.75t 23.5,9.75t 25,28t 28.5,47.75q 12.5,23 21,43.5q 21,2 45.5,6q 35,6.5 57.25,12.75t 36.25,15.25t 17.5,19.5t-2.25,25.5t-20,32.75t-38.25,41.75zM 378,226.5q-34-3 -58.5-2.5q-5-21.5 -16.5-48.5\nq-13.5-33 -24-48.5t-20-15.5l0,289 q 13.5,9.5 36.5,22.5l 7.5,4.5q 10.5,6 15.25,8.75t 12,6t 9.75,4.75t 6.75,1t 5-1.25t 2.25-5.25t 1.25-7.75t-0.5-12.5t-1-15.5t-2.25-20.25q-1-6.5 -1-9.5q-4.5-39.5 -13.5-61q 17.5-5.5 53-24q 15-8.5 24.75-14t 19-11.5t 12.5-9.75t 4.5-8t-3.25-7t-13.25-5.5t-22.75-4.75t-33.5-4z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"starempty\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 453,314q-23,23 -44,39q 3.5,18 6,35.5q 4,34 4.5,56.75t-3.75,38.5t-12.75,22.25t-24,5.75t-35.75-8.25t-49.75-22q-17.5-9 -34.5-19.5q-16,10 -34.5,19.5q-29.5,14.5 -49.75,22t-35.75,8.25t-24-5.75t-12.75-22.25t-3.75-38.5t 4.5-56.75q 2.5-17.5 6-35.5q-21.5-16 -44-39q-24-24 -38.25-41.75t-20-32.75\nt-2.25-25.5t 17.5-19.5t 36.25-15.25t 57.25-12.75q 24.5-4 45.5-6q 9-21 21-43.5q 16-29.5 28.5-47.75t 25-28t 23.5-9.75t 23.5,9.75t 25,28t 28.5,47.75q 12.5,23 21,43.5q 21,2 45.5,6q 35,6.5 57.25,12.75t 36.25,15.25t 17.5,19.5t-2.25,25.5t-20,32.75t-38.25,41.75zM 378,226.5q-34-3 -58.5-2.5q-5-21.5 -16.5-48.5\nq-13.5-33 -23.5-48.25t-20.5-15.25t-20.5,15.25t-23.5,48.25q-11,27 -16,48.5q-25-0.5 -59,2.5q-19.5,2 -33.5,4t-22.75,4.75t-13.25,5.5t-3.25,7t 4.5,8t 12.5,9.75t 19,11.5t 24.75,14q 36,19 53,24.5q-9,21.5 -13,60.5q-0.5,3 -1.5,9.5q-1.5,14 -2.25,20.25t-1,15.5t-0.5,12.5t 1.25,7.75t 2.25,5.25\nt 5,1.25t 6.75-1t 9.75-4.75t 12-6t 15.25-8.75l 7.5-4.5q 23-13 36.5-22.5q 13.5,9.5 36.5,22.5q 2.5,1.5 7,4.5q 11,6 15.75,8.75t 12,6t 9.75,4.75t 6.75,1t 5-1.25t 2.25-5.25t 1.25-7.75t-0.5-12.5t-1-15.5t-2.25-20.75q-1-6 -1-9q-4.5-39.5 -13.5-61q 17.5-5.5 53-24q 15-8.5 24.75-14t 19-11.5t 12.5-9.75t 4.5-8t-3.25-7\nt-13.25-5.5t-22.75-4.75t-33.5-4z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"steam\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,288l-5.5,0 l-123.5,85q 1,9.5 1,11q0,40 -28,68t-67.75,28t-67.75-28t-28-68q0-20.5 9-40l-64-63.5q-9.5-10 -9.5-23.5t 9.75-23.25t 23.5-9.75t 23.25,9.5l 63.5,63.5q 19.5-9 40-9q 2,0 11.5,1l 85-123.5q0-0.5 -0.25-2.5t-0.25-3q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5t-37.5,90.5t-90.5,37.5z\nM 160,320q-6.5,0 -15,2l 37,37.5q 5.5,5 8,13q 2,6 2,11.5q0,13.5 -9.25,22.75t-22.75,9.25q-3,0 -6.5-0.5q-10.5-2 -18-9.5l-37.5-37q-2,8 -2,15q0,26.5 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75zM 384.25,64q-39.75,0 -68,28.25t-28.25,68t 28.25,67.75\nt 68,28t 67.75-28t 28-67.75t-28-68t-67.75-28.25zM 384,224q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bomb\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 471,116q 9,9 9,21.75t-9,22.25l-19.5,19q 28.5,51 28.5,109q0,45.5 -17.75,87t-47.75,71.5t-71.5,47.75t-87,17.75t-87-17.75t-71.5-47.75t-47.75-71.5t-17.75-87t 17.75-87t 47.75-71.5t 71.5-47.75t 87-17.75q 58,0 108.5,28l 19-19.5q 9.5-9 22.25-9t 21.75,9l 12.5,12.5q 8-9 8-21\nq0-13 -9.5-22.5t-22.5-9.5q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75q 26.5,0 45.25,18.75t 18.75,45.25q0,25 -17.5,44zM 281.25,134.25q-27.75-27.75 -73.5-21.25t-82.75,43.75t-43.5,83.25t 21.25,73.75t 73.5,21.25t 82.75-43.75t 43.5-83.25t-21.25-73.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pacman\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,256l 192.5,168.5q-36,41 -86,64.25t-106.5,23.25q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25q 56.5,0 106.5,23.25t 86,64.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ghost\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 459,505.5q-4.5,6.5 -10.75,6.5t-10.75-6.5l-47.5-57.5l-11.5,0 l-47.5,57.5q-4.5,6.5 -10.75,6.5t-10.75-6.5l-47.5-57.5l-11.5,0 l-47.5,57.5q-4.5,6.5 -10.75,6.5t-10.75-6.5l-47.5-57.5l-11.5,0 l-47.5,57.5q-4.5,6.5 -10.75,6.5t-10.75-6.5l-21.5-26l0-255.5 q0-45.5 17.75-87t 47.75-71.5t 71.5-47.75t 87-17.75t 87,17.75t 71.5,47.75\nt 47.75,71.5t 17.75,87l0,256 zM 256,160q0-13.5 -9.25-22.75t-22.75-9.25l-96,0 q-13,0 -22.5,9.25t-9.5,22.75l0,96 q0,13 9.5,22.5t 22.5,9.5l 96,0 q 13.5,0 22.75-9.5t 9.25-22.5l0-96 zM 448,160q0-13.5 -9.25-22.75t-22.75-9.25l-96,0 q-13,0 -22.5,9.25t-9.5,22.75l0,96 q0,13 9.5,22.5t 22.5,9.5l 96,0 \nq 13.5,0 22.75-9.5t 9.25-22.5l0-96 zM 400,256l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 208,256l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 \nq0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"boardgame\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,480q0,13.5 -9.5,22.75t-22.5,9.25l-256,0 q-13,0 -22.5-9.25t-9.5-22.75q0-26.5 10-50.5t 24-42.75l 28-37.5t 24-42.75t 10-50.5q0-9 -2-18.5q-28.5-17 -45.25-46.25t-16.75-63.25q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5q0,34 -16.75,63.25t-45.25,46.25q-2,9 -2,18.5q0,26.5 10,50.5t 24,42.75\nl 28,37.5t 24,42.75t 10,50.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"die\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-352,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-352 q0-26.5 18.75-45t 45.25-18.5l 352,0 q 26.5,0 45.25,18.5t 18.75,45l0,352 q0,26.5 -18.75,45.25t-45.25,18.75zM 144,96q-20,0 -34,14.25t-14,34t 14,33.75t 34,14t 34-14t 14-33.75t-14-34t-34-14.25zM 144,352q-20,0 -34,14t-14,34t 14,34t 34,14\nt 34-14t 14-34t-14-34t-34-14zM 272,224q-20,0 -34,14.25t-14,34t 14,33.75t 34,14t 34-14t 14-33.75t-14-34t-34-14.25zM 400,96q-20,0 -34,14.25t-14,34t 14,33.75t 34,14t 34-14t 14-33.75t-14-34t-34-14.25zM 400,352q-20,0 -34,14t-14,34t 14,34t 34,14t 34-14t 14-34t-14-34\nt-34-14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"trophy\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,160q0,43.5 -21.5,80.5t-58.25,58.25t-80.25,21.25l-16,0 q-48,21.5 -48,64q0,51 40,69.5q 26,4.5 41,11.5t 15,15q0,13.5 -37.5,22.75t-90.5,9.25t-90.5-9.25t-37.5-22.75q0-8 15-15t 41-11.5q 40-18.5 40-69.5q0-42.5 -48-64l-16,0 q-43.5,0 -80.25-21.25t-58.25-58.25t-21.5-80.5\nq0-48 26.25-83t 70.25-50q-0.5-15.5 -0.5-27l 320,0 q0,12 -0.5,27q 44,15 70.25,50t 26.25,83zM 102.5,94q-38.5,21.5 -38.5,66q0,38.5 26.75,66.25t 64.75,29.25q-39-60.5 -53-161.5zM 285,96.5l-29-64.5l-29,64.5l-67,9l 49.5,48.5l-13,70l 59.5-34l 59.5,34l-13-70l 49.5-48.5zM 409.5,94\nq-14,101 -53,161.5q 38-1.5 64.75-29.25t 26.75-66.25q0-44.5 -38.5-66z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"podium\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,480l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-160 q0-26.5 18.75-45.25t 45.25-18.75l 96,0 l0-64 q0-26.5 18.75-45.25t 45.25-18.75l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,128 l 96,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,96 q0,26.5 -18.75,45.25t-45.25,18.75zM 144,352q 6.5,0 11.25-4.75t 4.75-11.25l0-64 \nq0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 48,0 l0,32 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-48,0 l0-32 l 48,0 zM 288,112q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 16,0 l0,112 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-128 zM 448,368l0-64 q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 48,0 l0,32 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75\nl 48,0 l0,32 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"joystickatari\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 128,0 q0-13 9.25-22.5t 22.75-9.5l0-256 q0-10 10.25-21t 21.75-11l 96,0 q 13.5,0 22.75,9.5t 9.25,22.5l-32,64l0,192 q 13.5,0 22.75,9.5t 9.25,22.5l 128,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 255.75,0\nq 13.25,0 22.75,9.5t 9.5,22.5l-64,0 q0-13 9.25-22.5t 22.5-9.5zM 64,320l 32,0 q 13,0 22.5,9.5t 9.5,22.5l-96,0 q0-13 9.25-22.5t 22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"joystickarcade\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 128,0 q0-13 9.25-22.5t 22.75-9.5l 32,0 l0-166 q-28.5-10 -46.25-34.5t-17.75-55.5q0-39.5 28-67.75t 68-28.25t 68,28t 28,68q0,31 -17.75,55.5t-46.25,34.5l0,166 l 32,0 q 13.5,0 22.75,9.5t 9.25,22.5l 128,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.5,22.75\nt-22.5,9.25zM 64,320l 32,0 q 13,0 22.5,9.5t 9.5,22.5l-96,0 q0-13 9.25-22.5t 22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"controllersnes\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,384q-48,0 -84.5-32l-87,0 q-36.5,32 -84.5,32q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5l 256,0 q 53,0 90.5,37.5t 37.5,90.5t-37.5,90.5t-90.5,37.5zM 192,224l-32,0 l0-32 q0-13.5 -9.5-22.75t-22.75-9.25t-22.5,9.25t-9.25,22.75l0,32 l-32,0 q-13.5,0 -22.75,9.5t-9.25,22.5t 9.25,22.5t 22.75,9.5l 32,0 l0,32 \nq0,13.5 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75l0-32 l 32,0 q 13,0 22.5-9.5t 9.5-22.75t-9.5-22.5t-22.5-9.25zM 351.75,256q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 415.75,192q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5\nt-9.5-22.75t-22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"controllernes\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,384l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-192 q0-13 9.5-22.5t 22.5-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.5l0,192 q0,13.5 -9.25,22.75t-22.75,9.25zM 192,224l-32,0 l0-32 q0-13 -9.25-22.5t-22.5-9.5t-22.75,9.5t-9.5,22.5l0,32 l-32,0 q-13,0 -22.5,9.5t-9.5,22.75t 9.5,22.5t 22.5,9.25l 32,0 l0,32 q0,13.5 9.5,22.75t 22.75,9.25\nt 22.5-9.25t 9.25-22.75l0-32 l 32,0 q 13.5,0 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5zM 352.25,256q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 448.25,256q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"controllerps\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,320q0,25 -2.5,47t-8,40.75t-15.25,29.5t-22.25,10.75q-25.5,0 -48.5-19t-31.5-45q-21.5-64 -128-64t-128,64q-8.5,26 -31.5,45t-48.5,19q-12.5,0 -22.25-10.75t-15.25-29.5t-8-40.75t-2.5-47q0-23 4.75-50.75t 15-59.25t 30-58.25t 46.25-39.75l0-16 q0-13.5 9.25-22.75t 22.75-9.25l 32,0 \nq 13,0 22.5,9.25t 9.5,22.75l 128,0 q0-13.5 9.5-22.75t 22.5-9.25l 32,0 q 13,0 22.5,9.25t 9.5,22.75l0,16 q 26.5,13 46.25,39.75t 30,58.25t 15,59.25t 4.75,50.75zM 144,192l-16,0 l0-16 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 16,0 l0,16 \nq0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-16 l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 352,224q-13,0 -22.5,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5t 22.5-9.5t 9.25-22.75t-9.5-22.5t-22.5-9.25zM 384,191.75q0,13.25 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25\nt-22.5,9.25t-9.25,22.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"gamecursor\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,352l-128,0 l0,128 q0,13 -9.5,22.5t-22.5,9.5l-128,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-128 l-128,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-128 q0-13.5 9.5-22.75t 22.5-9.25l 128,0 l0-128 q0-13.5 9.5-22.75t 22.5-9.25l 128,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,128 l 128,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,128 q0,13 -9.5,22.5t-22.5,9.5z\nM 96,192l-64,64l 64,64l0-128 zM 256,32l-64,64l 128,0 zM 224,255.75q0,13.25 9.5,22.75t 22.75,9.5t 22.5-9.5t 9.25-22.75t-9.5-22.5t-22.5-9.25t-22.5,9.25t-9.5,22.5zM 192,416l 64,64l 64-64l-128,0 zM 416,192l0,128 l 64-64z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"psr2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,448l-320,0 q-40,0 -68-28t-28-68l0-192 q0-40 28-68t 68-28l 320,0 q 40,0 68,28t 28,68l0,192 q0,40 -28,68t-68,28zM 224,192q0-26.5 -18.75-45.25t-45.25-18.75l-48,0 l0,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,224 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-80 l 32,0 \nq 13,0 22.5,9.25t 9.5,22.75l0,48 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-48 q0-29 -22-48q 22-19 22-48l0-32 zM 352,288q 26.5,0 45.25-18.75t 18.75-45.25l0-32 q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25q0,6.5 4.5,11.25t 11.25,4.75t 11.5-4.75t 4.75-11.25q0-13.5 9.25-22.75t 22.5-9.25\nt 22.75,9.5t 9.5,22.5l0,32 q0,13 -9.25,22.5t-22.75,9.5q-26.5,0 -45.25,18.75t-18.75,45.25l0,48 q0,6.5 4.5,11.25t 11.5,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-72,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-24 q0-13.5 9.25-22.75t 22.75-9.25zM 160,256l-32,0 l0-96 l 32,0 q 13,0 22.5,9.25t 9.5,22.75l0,32 \nq0,13 -9.25,22.5t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"psr1\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,448l-320,0 q-40,0 -68-28t-28-68l0-192 q0-40 28-68t 68-28l 320,0 q 40,0 68,28t 28,68l0,192 q0,40 -28,68t-68,28zM 224,192q0-26.5 -18.75-45.25t-45.25-18.75l-48,0 l0,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,224 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-80 l 32,0 \nq 13,0 22.5,9.25t 9.5,22.75l0,48 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-48 q0-29 -22-48q 22-19 22-48l0-32 zM 400,352l-16,0 l0-160 q0-26.5 -18.75-45.25t-45.25-18.75l0,0 q-7,0 -11.5,4.75t-4.5,11.25t 4.5,11.25t 11.5,4.75l0,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,160 l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nt 4.75,11.25t 11.25,4.75l 80,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 160,256l-32,0 l0-96 l 32,0 q 13,0 22.5,9.25t 9.5,22.75l0,32 q0,13 -9.5,22.5t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"psl2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,448l-320,0 q-40,0 -68-28t-28-68l0-192 q0-40 28-68t 68-28l 320,0 q 40,0 68,28t 28,68l0,192 q0,40 -28,68t-68,28zM 208,352l-80,0 l0-208 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,223.5 l0,0.5 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25\nt-11.25-4.75zM 352,288q 26.5,0 45.25-18.75t 18.75-45.25l0-32 q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.5t 9.25,22.5l0,32 q0,13 -9.25,22.5t-22.75,9.5q-26.5,0 -45.25,18.75t-18.75,45.25l0,48 \nq0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-72,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-24 q0-13.5 9.25-22.75t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"psl1\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,448l-320,0 q-40,0 -68-28t-28-68l0-192 q0-40 28-68t 68-28l 320,0 q 40,0 68,28t 28,68l0,192 q0,40 -28,68t-68,28zM 208,352l-80,0 l0-208 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,223.5 l0,0.5 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25\nt-11.25-4.75zM 400,352l-16,0 l0-160 q0-26.5 -18.75-45.25t-45.25-18.75l0,0 q-7,0 -11.5,4.75t-4.5,11.25t 4.5,11.25t 11.5,4.75l0,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,160 l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 80,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"analogdown\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 361.5,421.5l 15-25q 5-6 5.25-16.5t-5.25-19t-16-8.5l-209-0.5q-10,0 -15.75,8.5t-5.5,19t 5.25,17l 15.5,25q-54-28.5 -86.5-81.5t-32.5-116q0-45.5 17.75-87t 47.75-71.5t 71.5-47.75t 87-17.75t 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87q0,63 -32.25,115.75t-86.25,81.75zM 331.5,384\nq 4.5,6.5 4.5,15.5t-4.5,15l-64.5,91q-4.5,6.5 -10.75,6.5t-10.75-6.5l-65-91q-4-6.5 -4-15.25t 4-15.25l 151,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"analogup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-45.5,0 -87-17.75t-71.5-47.75t-47.75-71.5t-17.75-87q0-63 32.5-116t 86.5-81.5l-15.5,25q-5,6.5 -5.25,17t 5.5,19t 15.75,8.5l 209-0.5q 10.5,0 16-8.5t 5.25-19t-5.25-16.5l-15-25q 54,29 86.25,81.75t 32.25,115.75q0,45.5 -17.75,87t-47.75,71.5t-71.5,47.75t-87,17.75zM 180.5,128\nq-4.5-6.5 -4.5-15.25t 4.5-15.25l 65-91q 4.5-6.5 10.75-6.5t 10.75,6.5l 64.5,91q 4.5,6 4.5,15t-4.5,15.5l-151,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"analogright\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 505.5,266.5l-91,65q-6.5,4.5 -15.25,4.5t-15.25-4.5l0-151 q 6.5-4.5 15.5-4.5t 15,4.5l 91,64.5q 6.5,4.5 6.5,10.75t-6.5,10.75zM 352,151.5l0,209 q0,10 8.5,15.75t 19,5.5t 17-5.25l 25-15.5q-28.5,54 -81.5,86.5t-116,32.5q-45.5,0 -87-17.75t-71.5-47.75t-47.75-71.5t-17.75-87t 17.75-87t 47.75-71.5t 71.5-47.75\nt 87-17.75q 63,0 115.75,32.25t 81.75,86.25l-25-15q-6-5 -16.5-5.25t-19.25,5.25t-8.75,16z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"analogleft\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,480q-63,0 -116-32.5t-81.5-86.5l 25,15.5q 6.5,5 17,5.25t 19-5.5t 8.5-15.75l-0.5-209q0-10.5 -8.5-16t-19-5.25t-16.5,5.25l-25,15q 29-54 81.75-86.25t 115.75-32.25q 45.5,0 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87t-17.75,87t-47.75,71.5t-71.5,47.75t-87,17.75zM 128,180.5l0,151 \nq-6.5,4.5 -15.25,4.5t-15.25-4.5l-91-65q-6.5-4.5 -6.5-10.75t 6.5-10.75l 91-64.5q 6-4.5 15-4.5t 15.5,4.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"psleft\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 486,209l-147.5-140q-11-11.5 -35.5-24.25t-39.5-12.75l-188,0 q-31.5,0 -53.5,21.75t-22,52.75l0,299 q0,31 22,52.75t 53.5,21.75l 188,0 q 15,0 41-12.5t 34-25l 147.5-139.5q 26-20 26-47t-26-47z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"psdown\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 303,26l 139.5,147.5q 11.5,11 24.25,35.5t 12.75,39.5l0,188 q0,31.5 -21.75,53.5t-52.75,22l-298.5,0 q-31,0 -52.75-22t-21.75-53.5l0-188 q0-15 12.5-41t 25-34l 139.5-147.5q 20-26 47-26t 47,26z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"psright\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 26,209l 147.5-140q 11-11.5 35.5-24.25t 39.5-12.75l 188.5,0 q 31,0 53,21.75t 22,52.75l0,299 q0,30.5 -22,52.5t-53,22l-188.5,0 q-15,0 -41-12.5t-34-25l-147.5-139.5q-26-20 -26-47t 26-47z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"psup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 201,486.5l-131.5-148q-12-11.5 -24.75-36t-12.75-39.5l0-188 q0-31 22-53t 52.5-22l 299,0 q 31,0 52.75,22t 21.75,53l0,188 q0,15.5 -12.5,41.25t-24.5,34.25l-132,148q-23.5,25.5 -55,25.5t-55-25.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pscursor\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,352l-80,0 q-6.5,0 -16.75-5.5t-15.25-10.5l-64-64q-9.5-9.5 -9.5-16t 9.5-16l 64-64q 3.5-5.5 14.5-10.75t 17.5-5.25l 80,0 q 13,0 22.5,9.25t 9.5,22.75l0,128 q0,13 -9.5,22.5t-22.5,9.5zM 336,144l-64,64q-9.5,9.5 -16,9.5t-16-9.5l-64-64q-5-5 -10.5-15.25t-5.5-16.75l0-80 q0-13.5 9.5-22.75t 22.5-9.25\nl 128,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,80 q0,6.5 -5.25,17.5t-10.75,14.5zM 208,272l-64,64q-5,5 -15.25,10.5t-16.75,5.5l-80,0 q-13,0 -22.5-9.5t-9.5-22.5l0-128 q0-13.5 9.5-22.75t 22.5-9.25l 80,0 q 6.5,0 17.5,5.25t 14.5,10.75l 64,64q 9.5,9.5 9.5,16t-9.5,16zM 240,304q 9.5-9.5 16-9.5t 16,9.5l 64,64\nq 5.5,3.5 10.75,14.5t 5.25,17.5l0,80 q0,13 -9.5,22.5t-22.5,9.5l-128,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-80 q0-6.5 5.5-16.75t 10.5-15.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"buttony\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 368,100q-11.5-6 -24.25-3t-19.25,13.5l-68.5,95.5l-68.5-95.5q-6.5-10.5 -19.25-13.5t-24.25,3t-15,17.5t 3.5,21.5l 91.5,128.5l0,116.5 \nq0,13 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5l0-116.5 l 91.5-128.5q 7-10 3.5-21.5t-15-17.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"buttonx\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 379.5,139q 7-10 3.5-21.5t-15-17.5t-24.25-3t-19.25,13.5l-68.5,93.5l-68.5-93.5q-6.5-10.5 -19.25-13.5t-24.25,3t-15,17.5t 3.5,21.5\nl 85.5,117l-85.5,117q-7,10 -3.5,21.5t 15,17.5t 24.25,3t 19.25-13.5l 68.5-93.5l 68.5,93.5q 6.5,10.5 19.25,13.5t 24.25-3t 15-17.5t-3.5-21.5l-85.5-117z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"buttonb\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 339,239q 13-22.5 13-47q0-40 -28-68t-68-28l-96,0 q-13,0 -22.5,9.5t-9.5,22.5l0,256 q0,13 9.5,22.5t 22.5,9.5l 128,0 \nq 40,0 68-28t 28-68q0-25 -12-46.5t-33-34.5zM 288,352l-96,0 l0-64 l 96,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.5,22.5t-22.5,9.25zM 256,224l-64,0 l0-64 l 64,0 q 13,0 22.5,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"buttona\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 411.5,371l-126-256.5q-10.5-18.5 -29.5-18.5q-18.5,0 -27.5,15l-128,260q-7,11 -3.5,23t 15,18t 24.25,3t 19.25-14l 24.5-49l 152,0 \nl 24.5,49q 6.5,11 19.25,14t 24.25-3t 15-18t-3.5-23zM 211.5,288l 44.5-90.5l 44.5,90.5l-89,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"psbuttonx\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 379.25,132.75q-5.25-5.25 -12.75-5.25t-12.5,5l-98,98l-97.5-97.5\nq-5-5 -12.5-5t-12.75,5.25t-5.25,12.5t 5.5,12.75l 97,97.5l-97,97q-5.5,5.5 -5.5,13t 5.25,12.75t 12.75,5.25t 13-5.5l 97-97l 97.5,97q 5,5.5 12.5,5.5t 12.75-5.25t 5.25-12.75t-5.5-12.5l-97-97.5l 97.5-98q 5.5-5 5.5-12.5t-5.25-12.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"psbuttontriangle\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 272,104.5q-9.5-9 -16-9t-16,9l-144,248.5q0,11 2.25,17.75t 7.5,9.25\nt 9.5,3.25t 12.75,0.75l 256,0 q 8,0 12.75-0.75t 9.75-3.5t 7.25-9.5t 2.25-17.25zM 256,144l 128,208l-256,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"psbuttonsquare\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 384,160q0-13.5 -9.5-22.75t-22.5-9.25l-192,0 q-13,0 -22.5,9.25t-9.5,22.75l0,192 \nq0,13 9.5,22.5t 22.5,9.5l 192,0 q 13.5,0 22.75-9.5t 9.25-22.5l0-192 zM 160,160l 192,0 l0,192 l-192,0 l0-192 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"psbuttoncircle\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,96q-43.5,0 -80.25,21.25t-58.25,58.25t-21.5,80.5t 21.5,80.25\nt 58.25,58.25t 80.25,21.5t 80.25-21.5t 58.25-58.25t 21.5-80.25t-21.5-80.5t-58.25-58.25t-80.25-21.25zM 256,384q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5t-37.5,90.5t-90.5,37.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"firstaid\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 64,0 l0-32 q0-40 28-68t 68-28l 64,0 q 40,0 68,28t 28,68l0,32 l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,256 q0,26.5 -18.75,45.25t-45.25,18.75zM 320,96q0-13.5 -9.5-22.75t-22.5-9.25l-64,0 q-13.5,0 -22.75,9.25\nt-9.25,22.75l0,32 l 128,0 l0-32 zM 352,288l-64,0 l0-64 q0-13.5 -9.5-22.75t-22.75-9.25t-22.5,9.25t-9.25,22.75l0,64 l-64,0 q-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75t 22.75,9.5l 64,0 l0,64 q0,13 9.25,22.5t 22.5,9.5t 22.75-9.5t 9.5-22.5l0-64 l 64,0 q 13.5,0 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bed\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,320l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 448,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13 -9.5,22.5t-22.5,9.5zM 160,160l-128,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-16 q0-25 17.5-36.5t 46.5-11.5q 19,0 48.5,8.25t 54.5,23.75t 25,32q0,13.5 -9.25,22.75t-22.75,9.25z\nM 128,352l0,64 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-64 l 64,0 zM 448,352l0,64 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-64 l 64,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"plaque\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q0-40 -28.25-68t-67.75-28l0-320 q 40,0 68-28t 28-68l 320,0 q0,40 28,68t 68,28l0,320 q-40,0 -68,28t-28,68zM 448,128q-26.5,0 -45.25-18.75t-18.75-45.25l-256,0 q0,26.5 -18.75,45.25t-45.25,18.75l0,256 q 26.5,0 45.25,18.75t 18.75,45.25l 256,0 q0-26.5 18.75-45.25t 45.25-18.75l0-256 \nzM 352,416l-192,0 q-5-23.5 -22.75-41.25t-41.25-22.75l0-192 q 23.5-5 41.25-22.75t 22.75-41.25l 192,0 q 5,23.5 22.75,41.25t 41.25,22.75l0,192 q-23.5,5 -41.25,22.75t-22.75,41.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"extinguisher\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 439,30l-121,49.5q-2.5,9 -7,16.5l 121,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-144,0 l0,36 q 42,11 69,45.5t 27,78.5l0,64 l0,128 q0,13.5 -9.5,22.75t-22.5,9.25l-192,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-128 l0-64 q0-44 27-78.5t 69-45.5l0-36 l-64,0 l0,0 q-26.5,0 -45.25,18.75t-18.75,45.25\nl0,256 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-256 q0-53 37.5-90.5t 90.5-37.5l0,0 l 32,0 q0-26.5 18.75-45.25t 45.25-18.75q 21,0 37.75,12.5t 23.25,32.5l 104-43q 6.5-3 13.75-1.25t 10.75,7.25t 1.75,12t-8.25,10z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"jar\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-192 q0-31.5 9.25-61.25t 24.25-48.25t 30.5-18.5q 13.5,0 22.75-9.25t 9.25-22.5t-7.5-33.25q-10.5-2.5 -17.5-11.25t-7-19.75q0-13 9.5-22.5t 22.5-9.5l 256,0 q 13,0 22.5,9.5t 9.5,22.5q0,11 -7,19.75t-17.5,11.25q-7.5,20 -7.5,33q0,13.5 9.25,22.75t 22.75,9.25\nq 15.5,0 30.5,18.5t 24.25,48.25t 9.25,61.25l0,192 q0,26.5 -18.75,45.25t-45.25,18.75zM 416,277.5q0-36 -8-60.75t-24-24.75q-19.5,0 -41.75-17.25t-22.25-30.75l0-80 l-128,0 l0,80 q0,13.5 -22.25,30.75t-41.75,17.25q-16,0 -24,25t-8,60.5l0,128 q0,17.5 13.5,30t 32,12.5l 229,0 q 18.5,0 32-12.5t 13.5-30l0-128 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"eye2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,480q-61,0 -115.5-29.25t-91.75-80.5t-48.75-114.25q 11.5-63 48.75-114.25t 91.75-80.5t 115.5-29.25t 115.5,29.25t 91.75,80.5t 48.75,114.25q-11.5,63 -48.75,114.25t-91.75,80.5t-115.5,29.25zM 256,96q-81,0 -144.75,45.75t-79.25,114.25q 15.5,69 79.25,114.5t 144.75,45.5t 144.75-45.5\nt 79.25-114.5q-15.5-68.5 -79.25-114.25t-144.75-45.75zM 256,384q-53,0 -90.5-37.5t-37.5-90.5q0-30 13.5-57l 29,14.5q-10.5,21 -10.5,42.5q0,40 28,68t 67.75,28t 68-28t 28.25-67.75t-28.25-68t-67.75-28.25q-22,0 -43,10.5l-14-28.5q 27-14 57-14q 53,0 90.5,37.5t 37.5,90.5t-37.5,90.5t-90.5,37.5z\nM 227.5,199q 14-7 28.5-7q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25q0-14.5 7-28.5l 57,28.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"alert2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l-32,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.5-22.75t 22.5-9.25l 32,0 q 13,0 22.5,9.25t 9.5,22.5t-9.25,22.75t-22.75,9.5zM 418.5,135q-9,9 -21.25,9t-20.75-8.75t-8.5-21t 8.5-21.25l 21-20.5q 8.5-9 20.75-9t 21,8.75t 8.75,21t-8.5,20.75zM 384,400q0,6.5 -4.75,11.25t-11.25,4.75l-224,0 \nq-6.5,0 -11.25-4.75t-4.75-11.25l0-144 q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5l0,144 zM 256.25,96q-13.25,0 -22.75-9.5t-9.5-22.5l0-32 q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.25t 9.25,22.75l0,32 q0,13 -9.25,22.5t-22.5,9.5zM 93.5,135l-20.5-21q-9-8.5 -9-20.75t 8.75-21t 21-8.75t 20.75,9l 21,20.5\nq 8.5,9 8.5,21.25t-8.5,20.75t-20.75,8.5t-21.25-8.5zM 96,255.75q0,13.25 -9.25,22.75t-22.75,9.5l-32,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 32,0 q 13.5,0 22.75,9.25t 9.25,22.5zM 32,448l 448,0 q 13,0 22.5,9.25t 9.5,22.75t-9.5,22.75t-22.5,9.25l-448,0 q-13,0 -22.5-9.25t-9.5-22.75t 9.5-22.75t 22.5-9.25\nz\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"hamburger\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l-448,0 q-13,0 -22.5-9.25t-9.5-22.75t 9.5-22.75t 22.5-9.25l 448,0 q 13,0 22.5,9.25t 9.5,22.75t-9.5,22.75t-22.5,9.25zM 448,192l-384,0 q-13.5,0 -22.75-9.25t-9.25-22.75q0-41 60.5-68.5t 163.5-27.5t 163.5,27.5t 60.5,68.5q0,13.5 -9.5,22.75t-22.5,9.25zM 32,320l 448,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75\nt-22.5,9.5l-448,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.25-22.5t 22.75-9.25zM 64,416l 384,0 q 13,0 22.5,9.25t 9.5,22.75q0,23 -36,27.5t-188,4.5t-188-4.5t-36-27.5q0-13 9.25-22.5t 22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"wrench2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 128.5,256q 28.5,0 61-18.5l 84.5,84l 0.5,0.5q-18.5,33 -18.5,61.5q0,52 38,89.5t 90,39l0-20 l-41-38.5q-23-22.5 -23-55t 23-55.5t 55.5-23t 55,23l 38.5,41l 20,0 q-1.5-52 -39-90t-89.5-38q-28.5,0 -61.5,18.5l-84-84l-0.5-0.5q 18.5-33 18.5-61.5q0-52 -38-89.5t-90-39l0,20 l 41,38.5q 23,22.5 23,55\nt-23,55.5t-55.5,23t-55-23l-38.5-41l-20,0 q 1.5,52 39,90t 89.5,38z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lamp\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464.5,192l-142,0 q0,21.5 10,48.5t 22,48.75t 22,48.25t 10,46.5q0,28.5 -11.75,53.75t-32.25,43.25q 5,1 8.5,5.25t 3.5,9.75q0,6.5 -4.75,11.25t-11.25,4.75l-160,0 q-6.5,0 -11.25-4.75t-4.75-11.25q0-5.5 3.5-9.75t 9-5.25q-21-18 -32.75-43.25t-11.75-53.75q0-20.5 10-47t 22-48.25t 22-48.5t 10-48.25\nl-96,0 l0,144 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-144 l-14,0 q-10,0 -14.75-7t-1.25-16.5l 121.5-157.5q 1.5-4.5 7.5-7.75t 13-3.25l 165,0 q 6.5,0 12.5,3.25t 7.5,7.75l 118,157.5q 3,9.5 -2,16.5t-15,7z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"science\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 478.5,377q-13,22.5 -43.25,32.25t-71.75,5.75q-18,45.5 -44.25,71.25t-56,25.75t-56-26t-44.25-71q-41.5,4 -71.75-5.75t-43.25-32.25q-13.5-24.5 -6.25-55.5t 33.75-65.5q-26.5-34.5 -33.75-65.5t 6.25-55.5q 13-22.5 43.5-32.25t 71.5-5.75q 18-45.5 44.25-71.25t 56-25.75t 56,25.75t 44.25,71.25\nq 41.5-4 71.75,5.75t 43.25,32.25q 14,24 6.5,55.25t-34,65.75q 26.5,34.5 34,65.5t-6.5,55.5zM 449.5,359q 18-30 -18.5-79.5q-20,21.5 -44,40.5q-4,33 -13,63.5q 58.5,3.5 75.5-24.5zM 175.5,166.5q 13-8.5 25.5-15.5q 2.5-1 19-9.5q-19.5-6 -36.5-9q-5,17 -8,34zM 217.5,179.5q-25,14 -48,30.5q-2,22.5 -2,46\nq0,20.5 2,46.5q 23.5,16.5 48,30q 21.5,12 45.5,22q 26-11 46.5-22q 25-14 48-30.5q 2-23 2-46q0-20 -2.5-46.5q-23.5-16.5 -47.5-30q-22-12 -46-22q-26,11 -46,22zM 136,236.5q-10,8.5 -20.5,19.5q 10,10.5 20.5,19.5q-0.5-14.5 -0.5-19.5q0-8 0.5-19.5zM 351.5,345.5q-14,8.5 -26,15.5l-19,9.5q 19,6 36.5,9q 5-17 8.5-34z\nM 391,275.5q 10-9 20-19.5q-9.5-10 -20.5-19.5q 1,16.5 1,19.5q0,5 -0.5,19.5zM 263.5,480q 20,0 38-18.25t 31-50.75q-33-6.5 -69.5-20.5q-36,14 -69,20.5q 13.5,32.5 31.5,50.75t 38,18.25zM 219.5,370.5q-11.5-5.5 -18.5-9.5q-11.5-6.5 -25.5-15.5q 3.5,20 8,34q 15.5-2.5 36-9zM 77,359q 17.5,28 75.5,24.5q-8.5-29.5 -13-63.5\nq-24-19 -44-40q-36,49.5 -18.5,79zM 77,153q-17.5,30 18.5,79q 20-21 44-40q 4-33 13-63.5q-58-3.5 -75.5,24.5zM 263.5,32q-20,0 -38,18.25t-31.5,50.75q 33.5,6.5 69.5,20.5q 36.5-14 69-20.5q-13.5-32.5 -31.25-50.75t-37.75-18.25zM 307.5,141.5q 10.5,5.5 18,9.5q 11,6.5 25.5,15.5q-3.5-19.5 -7.5-34\nq-15,2.5 -36,9zM 449.5,153q-17-28 -75.5-24.5q 8.5,29.5 13,63.5q 24,19 44,40q 36-49 18.5-79z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fence\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,384q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-48 l-64,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-48 l-64,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75l-64,0 \nq-6.5,0 -11.25-4.75t-4.75-11.25l0-48 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0-192 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0-48 q0-20 2.5-25l 39-51.5q 2.5-3.5 6.25-3.5t 6.75,3.5l 38.5,51.5q 3,4 3,25l0,48 l 64,0 l0-48 q0-18.5 2.5-25l 39-51.5q 2.5-3.5 6.25-3.5\nt 6.75,3.5l 39,51.5q 2.5,4 2.5,25l0,48 l 64,0 l0-48 q0-21.5 2.5-25l 39-51.5q 2.5-3.5 6.25-3.5t 6.75,3.5l 38.5,51.5q 3,5.5 3,25l0,48 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,192 l 16,0 zM 224,192l-64,0 l0,192 l 64,0 l0-192 zM 384,192l-64,0 l0,192 l 64,0 l0-192 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"director\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,224l0,32 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-1,0 q-2,8.5 -7,13.5l-103,66l 103.5,66.5q 8,8 8,19t-8,19t-19.25,8t-18.75-8l-114.5-73l-114.5,73q-8,8 -19,8t-19-8t-8-19t 8-19l 103.5-66.5l-103-66q-5-5 -7-13.5l-1,0 q-13.5,0 -22.75-9.25t-9.25-22.5\nt 9.25-22.75t 22.75-9.5l0-32 q-13.5,0 -22.75-9.25t-9.25-22.75l0-128 q0-13 9.25-22.5t 22.75-9.5q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l 192,0 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5q 13.5,0 22.75,9.5t 9.25,22.5l0,128 q0,13.5 -9.5,22.75t-22.5,9.25zM 256,368.5l 75.5-48.5l-151.5,0 zM 160,224l0,32 l 192,0 l0-32 l-192,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"toast\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,183l0,265 q0,26.5 -18.75,45.25t-45.25,18.75l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-265 q-14.5-8.5 -23.25-23t-8.75-32q0-35 34.25-64.25t 93.25-46.5t 128.5-17.25t 128.5,17.25t 93.25,46.5t 34.25,64.25q0,17.5 -8.75,32t-23.25,23z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"addtolist\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-320 q0-26.5 18.75-45.25t 45.25-18.75l 32,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75l 352,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 q0-6.5 -4.75-11.25t-11.25-4.75l-16,0 \nq-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 32,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,320 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,320l-384,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75l 352,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-16 zM 448,416l-384,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75l 352,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-16 z\nM 320,128l-32,0 l0,32 q0,13 -9.25,22.5t-22.75,9.5t-22.75-9.5t-9.25-22.5l0-32 l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.5-22.5t 22.5-9.25l 32,0 l0-32 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,32 l 32,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"hanger\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,352l0,4 q 83.5,11 137.75,45.5t 54.25,78.5q0,13 -14,22.5t-34,9.5t-34-9.5t-14-22.5q0-17.5 -21.5-32.25t-58.25-23.25t-80.25-8.5t-80.25,8.5t-58.25,23.25t-21.5,32.25q0,13 -14,22.5t-34,9.5t-34-9.5t-14-22.5q0-44.5 54.25-78.75t 137.75-45.25l0-4 q0-13 9.5-22.5t 22.5-9.5l0-64 q0-13 9.5-22.5t 22.5-9.5\nq 26.5,0 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5q0,44 -27,78.5t-69,45.5l0,36 q 13.5,0 22.75,9.5t 9.25,22.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"police\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,128q0,31 16,93.5t 16,98.5q0,55 -30.25,91.5t-81.75,36.5q-20,0 -38.75,6.75t-31.5,16t-22.5,18.75t-14.5,15.75t-4.75,6.75q-1.5-2.5 -4.75-6.75t-14.25-15.5t-23-19.5t-31-15.25t-39-7q-51.5,0 -81.75-36.5t-30.25-91.5q0-36 16-98.5t 16-93.5q0-33.5 -7.25-56t-24.75-40q0-1.5 0.25-3.5t 2-7.5\nt 4.75-9.75t 9.5-7.75t 15.5-3.5q0,8 5.5,18.5t 15.25,21t 25.5,17.5t 33.75,7q 50,0 73-17.5t 23-46.5l 32,0 q0,29 23,46.5t 73,17.5q 18,0 33.75-7t 25.5-17.5t 15.25-21t 5.5-18.5q 9,0 15.5,3.25t 9.5,8t 4.75,9.5t 2.25,7.75l0,3.5 q-17.5,17.5 -24.75,40t-7.25,56zM 294.5,214l-38.5-86l-38.5,86l-89.5,12l 66,65\nl-17,93l 79-46l 79,46l-17-93l 66-65z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sheriff\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 447.75,192q-13.25,0 -22.25-9.5l-73.5,73.5l 73.5,73.5q 9-9.5 22.25-9.5t 22.75,9.5t 9.5,22.5t-9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l-83,0 l-60.5,100.5q 15.5,9.5 15.5,27.5q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75q0-18 15.5-27.5l-60.5-100.5l-83,0 q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5\nt-9.5-22.75t 9.5-22.5t 22.75-9.25t 22.25,9.5l 73.5-73.5l-73.5-73.5q-9,9.5 -22.25,9.5t-22.75-9.5t-9.5-22.75t 9.5-22.5t 22.75-9.25t 22.5,9.25t 9.25,22.75l 83,0 l 60.5-100.5q-15.5-9.5 -15.5-27.5q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5q0,18 -15.5,27.5l 60.5,100.5l 83,0 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75\nt-9.5,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lightning2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,512l-202-202l-118,74l-192-256l 160-128l 116,220l 108-60z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"peace\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 288,445.5q 49-8.5 88-40l-88-88l0,128 zM 224,445.5l0-128 l-88,88q 39,31.5 88,40zM 64,256q0,60.5 35,110.5l 125-125\nl0-174.5 q-68.5,11.5 -114.25,64.75t-45.75,124.25zM 288,67l0,174.5 l 125,125q 35-50 35-110.5q0-71 -45.75-124.25t-114.25-64.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"target\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25\nt 70,70t 96.25,25.75t 96.25-25.75t 70-70t 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 256,416q-43.5,0 -80.25-21.5t-58.25-58.25t-21.5-80.25t 21.5-80.25t 58.25-58.25t 80.25-21.5t 80.25,21.5t 58.25,58.25t 21.5,80.25t-21.5,80.25t-58.25,58.25t-80.25,21.5zM 255.75,160\nq-39.75,0 -67.75,28t-28,68t 28,68t 68,28t 68-28t 28-68t-28.25-68t-68-28zM 256,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"flower\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 467,297q-13.5,5.5 -34.75,4.75t-48.25-10.25q 5-17.5 5-35.5q0-55 -40-93q 16.5-19 32.5-30.5t 35.5-17.5l 0.75,0 l 0.25,0 l 0.5,0 l0,0 q 22.5-7 41.5,2t 23.5,28.5q 5.5,24 -10.5,50q 16,5 27.75,16t 15.25,23.5q 5,19 -9.25,37t-39.25,25l-0.5,0 zM 261,128q-39,0 -71,21.5q-16-24.5 -20.5-43.5t-4.5-42.5q0-26.5 14-45.25t 34-18.75\nq 12.5,0 25.75,7.75t 22.25,20.75q 9-13 22.25-20.75t 25.75-7.75q 20,0 34,18.75t 14,45.25q0,23.5 -4.5,42.5t-20.5,43.5q-32-21.5 -71-21.5zM 133,255.5q0,18.5 5,36q-27.5,9.5 -48.5,10.25t-35-4.75q-25-7 -39.25-25t-9.25-37q 3.5-12.5 15.25-23.5t 27.75-16q-16-26 -10.5-50q 4.5-19.5 23.5-28.5t 41.5-2l0,0 l 0.5,0 l 0.25,0 l 0.75,0 \nq 19.5,6 35.5,17.5t 32.5,30.5q-40,38 -40,92.5zM 79.5,376.5l0-0.5 q 0.5-0.5 1-1.75t 1-2t 1.25-1.75t 0.75-1.5q 11.5-19 25.75-31.5t 37.25-24.5q 15,30 43.25,49t 62.75,21.5q-2.5,29 -5,48.5q 0.5,17 -6,34q 0.5,4 -4,9q 1.5-2 3.5-8q-2.5,5.5 -3.5,8q-12.5,23 -33,32.5t-37-0.5q-11-7 -18.25-22t-7.75-32\nq-14,9 -30.75,10.25t-27.75-5.25q-14-7.5 -14.25-34t 10.25-47zM 165,255.75q0-39.75 28-67.75t 67.75-28t 68,28t 28.25,67.75t-28.25,68t-68,28.25t-67.75-28.25t-28-68zM 375.5,313q 23,12 37.25,24.5t 25.25,31.5q 0.5,0.5 1.25,1.5t 1.25,1.75t 1,2.25t 1,1.5l0,0.5 l 0.5,0.5q 10.5,20 10.25,46.75\nt-14.25,34.25q-11,6.5 -27.75,5.25t-30.75-10.25q-0.5,17 -7.75,32t-18.25,22q-16.5,10 -37,0.5t-33-33q-0.5-1.5 -3.5-7.5q 2,6 3.5,7.5q-4.5-4.5 -4-8.5q-6.5-17 -6-34q-2.5-19.5 -5-48.5q 34.5-2.5 62.75-21.5t 43.25-49z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"icecream\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 400,160l-288,0 q-6.5,0 -11.25-4.75t-4.75-11.25q0-17 7.5-26.75t 24.5-21.25q 1.5-39 29.75-67.5t 66.25-28.5q 36.5,0 63.5,24.5t 31.5,60.5q 11.5-5 25-5q 30.5,0 51.25,17.5t 20.75,46.5q0,6.5 -4.75,11.25t-11.25,4.75zM 128,192l 256,0 q 13,0 22.5,9.5t 9.5,22.5l-128,256q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5\nl-128-256q0-13 9.5-22.5t 22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"patch\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 481,481q-31,31 -75,31t-75-31l-42-42.5q-5-20 9.5-35l 105-104.5q 15-15.5 36-9.5l 41.5,41.5q 31,31 31,75t-31,75zM 273,373.5q-10.5,10.5 -25,10.5t-25-10.5l-84.5-84.5q-10.5-10.5 -10.5-25.25t 10.5-24.75l 100.5-100.5q 10.5-10.5 25-10.5t 25,10.5l 84.5,84.5q 10.5,10 10.5,24.75t-10.5,25.25zM 108,213.5\nq-14.5,14.5 -35,9.5l-42-42q-31-31 -31-75t 31-75t 75-31t 75,31l 41.5,41q 6,21 -9.5,36.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"man\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 477.75,239q-14.25,0 -24.25-10t-10-24l0-93 l-132.5,132.5q 30.5,44 30.5,97q0,46.5 -23,85.75t-62.25,62t-85.5,22.75t-85.75-22.75t-62.25-62t-22.75-85.75t 22.75-85.75t 62.25-62t 85.5-22.75q 53.5,0 97,30l 133-132.5l-93.5,0 q-14,0 -24-10t-10-24t 10-24t 24-10l 171,0 q 14,0 24,10t 10,24\nl0,170.5 q0,14 -10,24t-24.25,10zM 170.75,239q-42.25,0 -72.25,30t-30,72.5t 30,72.5t 72.25,30t 72.25-30t 30-72.5t-30-72.5t-72.25-30z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"woman\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,317l0,67 l 32,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-32,0 l0,32 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-32 l-32,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 32,0 l0-67 q-55.5-11.5 -91.75-55.5t-36.25-101.5q0-43.5 21.5-80.25t 58.25-58.25t 80.25-21.5t 80.25,21.5\nt 58.25,58.25t 21.5,80.25q0,57.5 -36.5,101.5t-91.5,55.5zM 255.75,64q-39.75,0 -67.75,28.25t-28,68t 28,67.75t 67.75,28t 68-28t 28.25-67.75t-28.25-68t-68-28.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"binoculars\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,320l0,128 q0,26.5 -18.75,45.25t-45.25,18.75l-64,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-192 l-32,0 q0,13.5 -9.25,22.75t-22.75,9.25t-22.75-9.25t-9.25-22.75l-32,0 l0,192 q0,26.5 -18.75,45.25t-45.25,18.75l-64,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-128 q0-20.5 8.25-64.75t 24-85.75t 31.75-41.5l0-64 \nq-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 96,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l0,73 q 14.5,8.5 23.25,23t 8.75,32l 32,0 q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.5t 9.25,22.5l 32,0 q0-17.5 8.75-32t 23.25-23l0-73 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 96,0 q 13.5,0 22.75,9.5\nt 9.25,22.75t-9.25,22.5t-22.75,9.25l0,64 q 16,0 31.75,41.5t 24,85.75t 8.25,64.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"croisant\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 525,144q0,4 -0.5,7t-2.5,4.75t-3.25,2.75t-5,1.25t-5.75,0.25l-7,0 l-8,0 q-6,0 -13.5-5t-13.5-10.75t-15.5-10.75t-20-5.5l 21.5-77q 22.5,15.5 38,31l 24.5,24.5q 4,4 6.5,7.5t 3.25,8t 1,6.5t0,7.75t-0.25,7.75zM 365.5,128l-33.5,0 q-15.5-27 -41.5-61.75t-49.5-61.25q 94.5-17.5 180.5,27l-27.5,96l-28.5,0 z\nM 289.5,185.5l-90.5,90.5q-9.5,9 -13,10.5t-16,1.5q-15.5,0 -65.5-36t-77.5-63.5q-8.5-8.5 -12-23.5t 1-28q 17.5-46 53-81.75t 81.5-52.75q 13-4.5 28-1t 23.5,11.5q 27.5,28 63.5,78t 36,65.5q0,12.5 -1.5,16t-10.5,13zM 141.5,417q 0.5,10.5 5.5,20t 10.75,15.5t 10.75,13.5t 5,13.5q0,16.5 -3.25,24.25t-12.75,7.75\nq-2,0 -7.75,0.25t-7.75,0t-6.5-1t-8-3.25t-7.5-6.5l-24.5-24.5q-15.5-15.5 -31-37.5zM 45.5,408q-44.5-86 -27-180.5q 26.5,23.5 61.25,49.5t 61.75,42l0,33 l0,28.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"orange\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 256,32q-45.5,0 -87,17.75t-71.5,47.75t-47.75,71.5t-17.75,87t 17.75,87t 47.75,71.5t 71.5,47.75t 87,17.75\nt 87-17.75t 71.5-47.75t 47.75-71.5t 17.75-87t-17.75-87t-47.75-71.5t-71.5-47.75t-87-17.75zM 441,306.5l-52-13l-91-37.5l 93.5-38.5l 49.5-12.5q 7,25.5 7,51q0,25 -7,50.5zM 285.5,226.5l 39-93.5l 26.5-44q 45.5,26 71.5,72l-45.5,27.5zM 256,214l-38.5-93l-12-50q 25.5-7 50.5-7t 50.5,7l-12.5,52zM 135.5,188.5\nl-46-27.5q 26-46 71.5-72l 27,44l 38.5,93.5zM 214.5,256l-91.5,37.5l-52,13q-7-25.5 -7-50.5t 7-51l 50,12.5zM 226.5,285.5l-37.5,91l-28,46q-45.5-26 -71.5-71.5l 43.5-27zM 256,298l 38,91l 12.5,52q-25.5,7 -50.5,7t-50.5-7l 12-50zM 379,324l 44,27q-26,45.5 -71.5,71.5l-28-46l-38-91z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"paw\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502,246.75q-13,24.75 -33,35.5t-35,1.25t-16.25-33.75t 11.75-49t 32.75-35.5t 34.75-1.25t 16.5,33.75t-11.5,49zM 257.5,480q-29,0 -43.25-0.25t-36.75-2t-33.75-5.75t-23.75-11t-17.5-18.25t-5-26.75q0-21 8-47t 23-51.25t 34.25-46.5t 44.25-34.25t 50.5-13t 50.5,13t 44.25,34.25t 34.25,46.5t 23,51.25t 8,47\nq0,15.5 -5,26.75t-17.5,18.25t-23.75,11t-33.75,5.75t-36.75,2t-43.25,0.25zM 319.5,190.75q-18.5-5.25 -26.25-29.75t-0.25-54t 25.75-46.5t 36.75-11.75t 26.25,29.75t 0.5,54t-25.75,46.5t-37,11.75zM 195.5,190.75q-18.5,5.25 -36.75-11.75t-25.75-46.5t 0.25-54t 26.25-29.75t 36.75,11.75t 25.75,46.5t-0.25,54\nt-26.25,29.75zM 13,246.75q-13-24.75 -11.5-49t 16.5-33.75t 34.75,1.25t 32.75,35.5t 11.75,49t-16.25,33.75t-35-1.25t-33-35.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"rocket\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 430.5,508.5l-46.5-124.5l-11.5,0 q-4,11.5 -12,33t-11.5,31l-61,0 l0,32 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.5t-9.25-22.5l0-32 l-61.5,0 q-3-9.5 -11-31t-12-33l-11.5,0 l-46.5,124.5q-17.5-9 -17.5-28.5l0-96 q0-13.5 25.5-38.75t 38.5-25.25q0-68 16.25-133.5t 45.75-115.5t 66-71q 36.5,21 66,71t 45.75,115.5t 16.25,133.5\nq 13,0 38.5,25.25t 25.5,38.75l0,96 q0,19.5 -17.5,28.5zM 256,128q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"forklift\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,320q-38,1.5 -67,30t-29,66l0,32 l-32,0 l0-32 q0-37.5 -30.25-66.75t-65.75-29.25l-96,0 l0,112 q0,6 -3.75,10.25t-9.25,5.25q-1,0.5 -3,0.5l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 80,0 l0-368 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,240 l 64,0 l 64-224\nq0-13 9.25-22.5t 22.75-9.5l 192,0 q 13,0 22.5,9.5t 9.5,22.5l0,224 l0,32 l-64,0 zM 448,114q0-7.5 -5.75-12.75t-13.25-5.25l-115.5,0 q-8,0 -13.5,5.25t-5.5,12.75l-38.5,124q0,7.5 5.75,12.75t 13.25,5.25l 45,0 q0-13.5 9.5-22.75t 22.5-9.25l 32,0 l0-80 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,80 l 32,0 l0-110 l0,0 z\nM 224,352q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 448,352q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"candle\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 80,0 l 48,0 l 192,0 l 48,0 l 80,0 q 13,0 22.5,9.25t 9.5,22.5t-9.25,22.75t-22.75,9.5zM 160,416l0-176 q0-6.5 4.75-11.25t 11.25-4.75l 160,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,176 l-192,0 zM 266.5,192q 11-12 16.25-22.5t 5.25-25.5q0-8 -7.25-23t-14.75-26\nl-7.5-11q-0.5,5 -2.25,12.75t-9.25,24t-17.5,23.25q-5.5,3.5 -5.75,12.25t 2.75,18t 8,17.75q-9,0 -29.5-21.5q-13-14.5 -13-32.5q0-26.5 21.5-48q 11-10.5 13.5-33t-0.5-40l-2.5-17q 2,1 5.75,2.75t 14,8.25t 19.25,13.5t 19.75,18t 17.75,22q 10,16 15,34.5t 4.5,33q0,2.5 -0.25,9.75t-0.5,10.75t-0.75,8.5\nt-1.5,8.25t-2.5,4.75q-6.5,7.5 -22.25,12.75t-25.75,5.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"flashlight\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.5,442.5l-60,60q-9.5,9.5 -23,9.5t-23-9.5l-214-214.5l-86.5,0 q-13,0 -22.5-9.25t-9.5-22.75l 192-191.5q 13.5,0 22.75,9.25t 9.25,22.25l0,86.5 l 214.5,214q 9.5,9.5 9.5,23t-9.5,23zM 375,331.5l-66.5-66.5q-9-9 -21.75-9t-21.75,9t-9,21.75t 9,21.75l 66.5,66.5q 9,9 21.75,9t 21.75-9\nt 9-21.75t-9-21.75zM 44,216.5q-7.5,7.5 -18.25,7.5t-18.25-7.5t-7.5-18t 7.5-18l 173-173q 7.5-7.5 18-7.5t 18,7.5t 7.5,18.25t-7.5,18.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"remote\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 128,164.5q-4-4.5 -10-4.5t-10.5,4.5l-71.5,80.5q-4,4.5 -4,11t 4,11l 71.5,80.5q 4.5,4.5 10.5,4.5t 10-4.5l0-183 zM 347.5,107.5l-80.5-71.5q-4.5-4 -11-4\nt-11,4l-80.5,71.5q-4.5,4 -4.5,10.25t 4.5,10.25l 183,0 q 4.5-4 4.5-10.25t-4.5-10.25zM 160,256q0,40 28,68t 68,28t 68-28.25t 28-68t-28-67.75t-68-28t-68,28t-28,68zM 347.5,383.5l-183,0 q-4.5,4 -4.5,10.25t 4.5,10.25l 80.5,71.5q 4.5,4 11,4t 11-4l 80.5-71.5q 4.5-4 4.5-10.25t-4.5-10.25zM 476,245l-71.5-80.5\nq-4.5-4.5 -10.5-4.5t-10,4.5l0,183 q 4,4.5 10,4.5t 10.5-4.5l 71.5-80.5q 4-4.5 4-11t-4-11z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"recycle\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 387.5,480l-32.5,0 l0,20.5 q-7.5,10.5 -19,11.5l-5,0 q-11.5-1 -19.5-11.5l-43-56.5q-9-11.5 -9-28t 9-28l 43-56.5q 9-12 21.75-12t 21.75,12l0,20.5 l 47.5,0 l-37-70l 124-71.5l 26,45.5zM 450.5,196.5q-6,13.5 -22,21.5t-32,6l-73,0 q-17.5-2 -26.25-9.5t-2.75-20l 19-11.5l-54-103l-46,88l-123-64.5l 41-71.5l 256,0 l 45,78.5\nl 24-14.5q 16,2 23.25,12.75t 0.75,23.75zM 162.5,187.5l 30,64q 6.5,13 -0.75,23.75t-23.25,12.75l-14.5-7.5l-37.5,71.5l 111,0 l0,128 l-96,0 l-128-224l 23-40l-20-10.5q-6.5-13 3.25-28.25t 25.75-17.25l 73,0 q 16-2 32,6t 22,21.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"paperairplane\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,256l0,176 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 l-72-72l-136,136l-192-512l 512,192zM 416,256l-352-192l 352,352l0-160 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"glasses\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 516,336q0,35 -7.25,57.75t-22.75,34.25t-34.25,15.75t-47.75,4.25t-47.75-4.25t-34.25-15.75t-22.75-34.25t-7.25-57.75q0-13 -9.25-22.5t-22.5-9.5t-22.75,9.5t-9.5,22.5q0,35 -7.25,57.75t-22.75,34.25t-34.25,15.75t-47.75,4.25t-47.75-4.25t-34.25-15.75t-22.75-34.25t-7.25-57.75\nq0-28.5 4-44.5q-8-14 -0.5-27.5l 108.5-171q 5.5-9.5 15.75-12.25t 19.5,2.75t 12,16.25t-2.75,20.25l-78,122.5q 21-2.5 49.5-2.5q 37.5,0 57.25,5.5t 28.25,18.5q 25.5,8 42.5,8t 42.5-8q 8.5-13 28.25-18.5t 57.25-5.5q 28.5,0 49.5,2.5l-78-122.5q-5.5-9.5 -2.75-20.25t 12-16.25t 19.5-2.75t 15.75,12.25l 108.5,171q 7.5,13.5 -0.5,27.5\nq 4,16 4,44.5zM 127.5,272q-30,0 -48,3.25t-27.75,12t-12.75,20t-3,31.25q0,24.5 5.25,40t 16.25,23.75t 24.5,11t 34,2.75t 34-2.75t 24.75-11t 16.25-23.75t 5-40l0-14 t-0.5-11.75t-1.25-10.5t-2.5-8.25t-4.25-7.25t-6.25-5.5t-8.75-4.25t-11.5-2.5t-14.75-2t-18.75-0.5zM 392.5,272q-10.5,0 -18.5,0.5t-14.75,2\nt-11.75,2.5t-8.75,4.25t-6.25,5.5t-4.25,7.5t-2.5,8.25t-1.25,10.25t-0.5,11.75l0,14 q0,24.5 5.25,40t 16.25,23.75t 24.5,11t 34,2.75t 34-2.75t 24.75-11t 16.25-23.75t 5-40q0-20 -3-31.25t-12.75-20t-27.75-12t-48-3.25zM 388,336q-15,0 -23.5-4.5t-8.5-11.5t 8.5-11.5t 23.5-4.5q 48,0 48,16t-48,16zM 100,336\nq-15,0 -23.5-4.5t-8.5-11.5t 8.5-11.5t 23.5-4.5q 48,0 48,16t-48,16z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sunglasses\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 516,336q0,35 -7.25,57.75t-22.75,34.25t-34.25,15.75t-47.75,4.25t-47.75-4.25t-34.25-15.75t-22.75-34.25t-7.25-57.75q0-13 -9.5-22.5t-22.75-9.5t-22.5,9.5t-9.25,22.5q0,35 -7.25,57.75t-22.75,34.25t-34.25,15.75t-47.75,4.25t-47.75-4.25t-34.25-15.75t-22.75-34.25t-7.25-57.75\nq0-28.5 4-44.5q-8-14 -0.5-27.5l 108.5-171q 5.5-9.5 15.75-12.25t 19.5,2.75t 12,16.25t-2.75,20.25l-78,122.5q 21-2.5 49.5-2.5q 37.5,0 57.25,5.5t 28.25,18.5q 25.5,8 42.5,8t 42.5-8q 8.5-13 28.25-18.5t 57.25-5.5q 28,0 49.5,2.5l-78-122.5q-5.5-9.5 -2.75-20.25t 12-16.25t 19.5-2.75t 15.75,12.25l 108.5,171q 7.5,13.5 -0.5,27.5\nq 4,16 4,44.5zM 68,272q-15,0 -23.5,9t-8.5,23t 8.5,23t 23.5,9q 26.5,0 45.25-9.25t 18.75-22.75t-18.75-22.75t-45.25-9.25zM 356,272q-15,0 -23.5,9t-8.5,23t 8.5,23t 23.5,9q 26.5,0 45.25-9.25t 18.75-22.75t-18.75-22.75t-45.25-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"screwdriver2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 474.25,474.25q-37.75,37.75 -91.5,37.75t-91.25-38l-51.5-51.5q-0.5-35 -25.25-60t-60.25-26.5q-8-10 -10.5-21l0-17.5 q 3.5-13 16-25.5l 112-112q 12.5-12.5 25.5-16l 17.5,0 q 10.5,2.5 21,10.5q 1,35.5 26.25,60.25t 60.25,25.25l 51.5,51.5q 38,37.5 38,91.25t-37.75,91.5zM 260.75,356.75q-4.75,4.75 -4.75,11.5t 5,11.75\nl 111,111q 4.5,5 11.5,5t 11.75-4.75t 4.75-11.75t-5-11.5l-111-111q-5-5 -11.75-5t-11.5,4.75zM 332,309q-5-5 -11.75-5t-11.5,4.75t-4.75,11.5t 5,11.75l 127,127q 4.5,5 11.5,5t 11.75-4.75t 4.75-11.75t-5-11.5zM 380,261q-5-5 -11.75-5t-11.5,4.75t-4.75,11.5t 5,11.75l 111,111q 4.5,5 11.5,5\nt 11.75-4.75t 4.75-11.75t-5-11.5zM 176,224l-80-80l-48,0 l-48-96l 48-48l 96,48l0,48 l 80,80z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"screwdriver\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 489,489.25q-23,22.75 -55.25,22.75t-55.25-23l-42.5-41l-48-48q0-19.5 -14-33.75t-34-14.25l-3.5-3.5q-23.5-23.5 -2-45.5l 23.5-23.5l-151.5-151.5l-58.5,0 l-48-96l 32-32l 96,48l0,58.5 l 151.5,151.5l 23.5-23q 21.5-22 45.5,2l 3.5,3.5q 0.5,20 14.5,33.75t 33.5,13.75l 48,48l 41,42.5q 23,23 23,55.5t-23,55.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"hammer\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496.25,496.25q-15.75,15.75 -38,15.75t-38.25-16l-116.5-116.5q-18.5-18.5 -15-45l-139.5-139.5l-50,51.5q-9,9.5 -22.25,9.5t-22.75-9.5l-44.5-46q-9.5-10 -9.5-23.25t 9.5-23.25l 118.5-122l 134.5,0 q 9.5,9.5 9.5,23t-9.5,23l-68.5,70.5l 140.5,140q 26.5-3.5 45,15l 116.5,116.5q 16,16 16,38.25t-15.75,38z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"shovel\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 497,497q-21.5,18.5 -56.75,14.5t-71.25-21t-56.5-37l-47-47q-9.5-10 -9.5-23.75t 9.5-23.25l 24-24l-193.5-194l-41,41q-9.5,9.5 -22.75,9.5t-22.75-9.5t-9.5-22.75t 9.5-22.75l 127.5-127.5q 9.5-9.5 22.75-9.5t 22.75,9.5t 9.5,22.75t-9.5,22.75l-41,41l 194,193.5l 24-24q 9.5-9.5 23.25-9.5t 23.75,9.5l 47,47\nq 20,20.5 37,56.5t 21,71.25t-14.5,56.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"crown\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,128l-0.5,0 l-0.5,0 l 1,222l0,0.75 l0,1.25 q0,13 -9.5,22.5t-22.5,9.5l-384,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-1.25 l0-0.75 l 1-222l-0.5,0 l-0.5,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75q0,16.5 -13.5,26l 109.5,155l 83-184q-8.5-3.5 -13.75-11.5t-5.25-17.5q0-13.5 9.25-22.75t 22.5-9.25\nt 22.75,9.25t 9.5,22.75q0,9.5 -5.25,17.5t-13.75,11.5l 83,184l 109.5-155q-13.5-9.5 -13.5-26q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75t-9.5,22.75t-22.5,9.25zM 32,416l 223.5,0 l 0.5,0 l 0.5,0 l 223.5,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-448,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.25-22.5t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"switchoff2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 64.25,32q-13.25,0 -22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5t 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25zM 64.25,416\nq-13.25,0 -22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5t 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25zM 384,160l-256,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,128 q0,13 9.25,22.5t 22.75,9.5l 256,0 q 13,0 22.5-9.5t 9.5-22.5l0-128 q0-13.5 -9.5-22.75t-22.5-9.25zM 447.75,32q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75\nt 22.75,9.5t 22.75-9.5t 9.25-22.75t-9.5-22.5t-22.75-9.25zM 447.75,416q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.75,9.5t 22.75-9.5t 9.25-22.75t-9.5-22.5t-22.75-9.25zM 352,320l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 \nq0,13 -9.25,22.5t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"switchon2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 63.75,32q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 64,416\nq-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.25-22.5t-22.75-9.25zM 384,160l-256,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,128 q0,13 9.25,22.5t 22.75,9.5l 256,0 q 13,0 22.5-9.5t 9.5-22.5l0-128 q0-13.5 -9.25-22.75t-22.75-9.25zM 448,32q-13.5,0 -22.75,9.25t-9.25,22.5\nt 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.25-22.5t-22.75-9.25zM 448,416q-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.25-22.5t-22.75-9.25zM 224,320l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 \nq0,13 -9.25,22.5t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"powerplugus\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 64.25,480q 13.25,0 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25t-22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5zM 64.25,32\nq-13.25,0 -22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5t 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25zM 362,96l-212,0 q-39.5,26.5 -62.75,68.75t-23.25,91.5t 23.25,91.25t 62.75,68.5l 212,0 q 39.5-26.5 62.75-68.5t 23.25-91.5t-23.25-91.5t-62.75-68.5zM 448.25,32q-13.25,0 -22.75,9.25t-9.5,22.5t 9.5,22.75\nt 22.75,9.5t 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25zM 448.25,416q-13.25,0 -22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5t 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25zM 351.5,384l-191,0 q-30-22.5 -47.25-56t-17.25-72t 17.25-72t 47.25-56l 191,0 q 30,22.5 47.25,56t 17.25,72t-17.25,72t-47.25,56z\nM 192,208q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-32 zM 288,320q0-13.5 -9.25-22.75t-22.75-9.25t-22.75,9.25t-9.25,22.75l0,32 l 64,0 l0-32 zM 352,208q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25\nt 11.25,4.75t 11.25-4.75t 4.75-11.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"powerplugeu\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 64.25,480q 13.25,0 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25t-22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5zM 64.25,32\nq-13.25,0 -22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5t 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25zM 256,96q-43.5,0 -80.25,21.5t-58.25,58.25t-21.5,80.25t 21.5,80.25t 58.25,58.25t 80.25,21.5t 80.25-21.5t 58.25-58.25t 21.5-80.25t-21.5-80.25t-58.25-58.25t-80.25-21.5zM 447.75,32\nq-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 447.75,416q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 256,384q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5t-37.5,90.5t-90.5,37.5z\nM 192.25,224q-13.25,0 -22.75,9.25t-9.5,22.75t 9.25,22.75t 22.5,9.25t 22.75-9.5t 9.5-22.75t-9.25-22.5t-22.5-9.25zM 320,224q-13.5,0 -22.75,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25t 22.75-9.5t 9.5-22.75t-9.25-22.5t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"switch\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 63.75,32q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 63.75,416\nq-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 352,128q0-13.5 -9.5-22.75t-22.5-9.25l-128,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,256 q0,13 9.25,22.5t 22.75,9.5l 128,0 q 13,0 22.5-9.5t 9.5-22.5l0-256 zM 448,32q-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75\nt 22.75,9.5t 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25zM 448,416q-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75t 22.75,9.5t 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25zM 288,384l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-32 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,32 q0,13 -9.5,22.5\nt-22.5,9.5zM 288,256l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13 -9.5,22.5t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"icecream2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 352,352l-192,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-192 q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5l0,192 q0,13.5 -9.5,22.75t-22.5,9.25zM 288,480q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-96 l 64,0 l0,96 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"student\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,432q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-210.5 l-176.5,88.5q-20,10 -47.5,10t-47.5-10l-189-94.5q-19.5-10 -19.5-23.75t 19.5-23.25l 189-94.5q 20-10 47.5-10t 47.5,10l 189,94.5q 17,8.5 19,21q 0.5,0.5 0.5,2l0,0.5 l0,240 l0,0 zM 319.5,342l 96.5-48.5l0,70.5 q0,21.5 -46.75,36.75t-113.25,15.25\nt-113.25-15.25t-46.75-36.75l0-70.5 l 96.5,48.5q 20,10 63.5,10t 63.5-10z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"megaphone\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 474.5,505.5l-146-121.5l-200.5,0 l0,96 q0,13.5 -9.5,22.75t-22.5,9.25l-32,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-96 q-13.5,0 -22.75-9.25t-9.25-22.75l0-192 q0-13.5 9.25-22.75t 22.75-9.25l 296.5,0 l 146-121.5q 5.5-6 14.75-6.25t 16,3.75t 6.75,10l0,484.5 q0,6 -6.75,10t-16,3.5t-14.75-6.5zM 240,128l-64,0 \nq 6.5,0 11.25,4.75t 4.75,11.25l0,224 q0,6.5 -4.75,11.25t-11.25,4.75l 64,0 q-7,0 -11.5-4.75t-4.5-11.25l0-224 q0-6.5 4.5-11.25t 11.5-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"paperclip3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 271.75,512q-47.75,0 -88.25-23.25t-64-63.25t-23.5-87.5l0-210 q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5l0,176 q0,33 -23.5,56.5t-56.5,23.5t-56.5-23.5t-23.5-56.5l0-80 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,80 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-176 q0-64 -64-64\nt-64,64l0,205 q0,47.5 32.75,81.25t 79.25,33.75t 79.25-33.75t 32.75-81.25l0-141 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.5t 9.5,22.5l0,146 q0,47.5 -23.75,87.5t-64.25,63.25t-88.25,23.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"paperclip2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 471.5,183.5q-1.5,1.5 -3.25,4.75t-4.25,3.75l-176,176q-16,16 -32,16l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-5 2.5-10t 5-7.5t 7.5-7t 6-6l 89.5-89.5q 8.5-8.5 20.5-8.5t 20.5,8.5t 8.5,20.5t-8.5,20.5l-87.5,87.5l0,23.5 l 23,0 l 160-160l-87.5-87.5l-223.5,224l0,151.5 l 151,0 l 183.5-183.5q 8.5-8.5 20.5-8.5t 20.25,8.5\nt 8.25,20.25t-8,20.25l-185.5,185.5q-2.5,2.5 -7,7.75t-7,7.25t-6.75,4.25t-9.25,2.25l-192,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-192 q0-5 3-10.25t 5.75-8.5t 7.5-7.25t 5.25-4.5l 234.5-241.5l 8-8q 9.5-9.5 23.5-8q 14.5-1.5 24,8l 8.5,8l 112,112q 3.5,4.5 7.5,8q 9,9.5 7.5,24q 1.5,14 -7.5,23.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"paperclip\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 268,416q 4-3.5 80-78.5t 89-88.5q 9.5-9 22.75-9t 22.75,9.25t 9.5,22.75t-9.5,22.5q-11,11 -86.5,87t-79.5,79.5q-34,33.5 -79.75,45.5t-91.5-0.5t-80.25-46.5t-47-79.5t-0.5-90.75t 46-79.25l 174-172q 38-38 92-38t 92.25,37.75t 38.25,91.25t-38,91l-143,141.5q-23.5,22.5 -57.5,22.5\nt-57.75-22.75t-23.75-54t 23.5-54.25q 8.5-8.5 57.5-58.75t 56-57.25q 9.5-9.5 22.75-9.5t 22.5,9.5t 9.25,22.75t-9,22.75q-5.5,5 -56.25,56.5t-55.75,56.5q-4.5,4.5 -4.5,11t 4.75,11t 11.25,4.5t 11.5-4.5l 142.5-143q 46-45.5 -0.25-91.25t-92.25,0.25l-175.5,172.5q-34.5,34.5 -34.25,80.75t 34,79.5t 79.75,33.5\nt 80.5-33.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"microscope\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448.5,224q0,67 -36.25,121.75t-94.75,81.75q 30.5,12.5 48.75,35t 18.25,49.5l-256.5,0 q0-20.5 11.25-39t 30.75-32q-25.5-6.5 -58-25q-7.5-3.5 -11.75-12.5t-4.25-19.5q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 128,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5q 43.5,0 80.5-21.5t 58.5-58.25t 21.5-80.25\nq0-36 -15.25-67.75t-41.75-54.25l-27.5,43q0,0.5 -0.5,0.75l-0.5,0.25l 4.5,2.5q 12,6.5 15.5,19.5t-3.5,24.5l-51,79.5q-7,11.5 -20.25,15t-25.25-3.5l-58-32q-12-6.5 -15.5-19.5t 3.5-24.5l 50.5-79.5q 7-11 20-14.5t 25,2.5l 64-101.5q 6.5-10.5 19.5-13.5t 24.5,3t 14.75,17.75t-3.25,22.25l-2.5,3.5q 40.5,31.5 63.75,77.5\nt 23.25,99z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"radioactive\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.25t 54.5-81.5t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.5t 20.25,99.25t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,448l0-128 q-17,0 -31.5-8.5t-23-22.5l-110,66q 25.5,42.5 69.25,67.75\nt 95.25,25.25zM 256,64q-51.5,0 -95.25,25.5t-69.25,68l 110,66q 8.5-14.5 23-23t 31.5-8.5l0-128 zM 255.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 420.5,157.5l-110,66q 9.5,15.5 9.5,32.5t-9,32l 111,64q 26-44.5 26-96q0-53 -27.5-98.5z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"magnet\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 365.5,384l 18.5-128q0-66.5 -30.75-97.25t-97.25-30.75t-97.25,30.75t-30.75,97.25l 18.5,128l-128,0 l-18.5-128q0-52 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5l-18.5,128l-128,0 zM 151,416l 9,64q0,13 -18.75,22.5t-45.25,9.5t-45.25-9.5\nt-18.75-22.5l-9-64l 128,0 zM 489,416l-9,64q0,13 -18.75,22.5t-45.25,9.5t-45.25-9.5t-18.75-22.5l 9-64l 128,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"eye\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,448q-61,0 -115.5-25t-91.75-69t-48.75-98q 11.5-54 48.75-98t 91.75-69t 115.5-25t 115.5,25t 91.75,69t 48.75,98q-11.5,54 -48.75,98t-91.75,69t-115.5,25zM 133,154q-39,17.5 -65.5,44t-35.5,58q 9,32 35.75,58.5t 65.25,44q-37-44.5 -37-102.5t 37-102zM 256,192\nq-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75zM 379,154q 37,44 37,102t-37,102.5q 39-17.5 65.5-44t 35.5-58.5q-9-31.5 -35.5-58.25t-65.5-43.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fire\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384.5,464q-48.5,48 -96.5,48q 28-27 38-54.75t 10-73.25q0-21 -17.75-60.75t-35.75-70.25t-18-29q-1,5 -2.75,13t-9,30.5t-16.25,42t-25.25,41t-35.25,33.5q-15.5,10 -16.5,33.25t 8.5,48t 24,46.75q-27,0 -88-58q-20.5-19 -30.25-43t-9.75-43q0-32 17.75-66.75t 47.75-61.25\nq 25.5-23 41.25-48.5t 20.25-48.25t 3.75-44.75t-6.75-39.5t-12-31t-11-20.5l-5-7.5q 6.5,2.5 17.25,7.5t 41.5,22t 58.25,35.5t 60,47.75t 53.5,59.75q 29,42 44.25,91.25t 13.75,88.25q-1,20 -14.5,45t-26,40.25t-23.5,26.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"flaskfull\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 488,378q 21.5,31.5 28.25,62.25t-4.25,51.25t-39,20.5l-421,0 q-28,0 -39-20.5t-4.25-51.25t 28.25-62.25l 129.5-164l0-150 l-32,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 256,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-32,0 l0,150 zM 294.5,224l0-160 l-64,0 l0,160 l-74.5,96l 213,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"flask\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 488,378q 21.5,31.5 28.25,62.25t-4.25,51.25t-39,20.5l-421,0 q-28,0 -39-20.5t-4.25-51.25t 28.25-62.25l 129.5-164l0-150 l-32,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 256,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-32,0 l0,150 zM 294.5,224l0-160 l-64,0 l0,160 l-121.5,156q-16,16.5 -22.25,31.75\nt 1.75,25.75t 32,10.5l 284,0 q 23.5,0 31.75-10.5t 2-25.75t-22.75-31.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"shredder\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,383l0-64 q0-13.5 -9.5-22.75t-22.5-9.25l-288,0 q-13,0 -22.5,9.25t-9.5,22.75l0,64 q-26.5,0 -45.25-18.75t-18.75-45.25l0-128 q0-26.5 18.75-45.25t 45.25-18.75l0,64 q0,13.5 9.5,22.75t 22.5,9.25l 288,0 q 13,0 22.5-9.25t 9.5-22.75l0-64 q 26.5,0 45.25,18.75t 18.75,45.25l0,128 q0,26.5 -18.75,45.25t-45.25,18.75z\nM 400,191l-256,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-160 q0-6.5 4.75-11.25t 11.25-4.75l 256,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,160 q0,6.5 -4.75,11.25t-11.25,4.75zM 144,319q 6.5,0 11.25,4.5t 4.75,11l0,160.5 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-160.5 q0-6.5 4.75-11t 11.25-4.5zM 208,319q 7,0 11.5,4.5\nt 4.5,11l0,128.5 q0,6.5 -4.5,11.25t-11.5,4.75t-11.5-4.75t-4.5-11.25l0-128.5 q0-6.5 4.5-11t 11.5-4.5zM 272,319q 6.5,0 11.25,4.5t 4.75,11l0,96.5 q0,6.5 -4.75,11t-11.25,4.5t-11.25-4.5t-4.75-11l0-96.5 q0-6.5 4.75-11t 11.25-4.5zM 336,319q 7,0 11.5,4.5t 4.5,11l0,160.5 q0,6.5 -4.5,11.25t-11.5,4.75t-11.5-4.75t-4.5-11.25l0-160.5 q0-6.5 4.5-11\nt 11.5-4.5zM 400,319q 6.5,0 11.25,4.5t 4.75,11l0,128.5 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-128.5 q0-6.5 4.75-11t 11.25-4.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cash\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,480l-448,0 q-13,0 -22.5-4.75t-9.5-11.25l0-64 l0-64 l0-32 l0-32 l0-32 l0-32 q0-0.5 1.5-5l 57-126.5q 1.5-5 10-8.75t 18.5-3.75l 341,0 q 10.5,0 18.75,3.75t 10.25,8.75l 54,126.5q 1,3 1,5l0,32 l0,32 l0,32 l0,32 l0,64 l0,64 q0,6.5 -9.5,11.25t-22.5,4.75zM 160,96l-7.5,0 q-6.5,12 -22.75,22t-33.75,10l-28.5,0 l-13,32l 41.5,0 \nq 25.5,0 32.25,4.25t 4.25,19.25l-1.5,8.5l 29,0 l0-96 zM 160,224l-128,0 l0,24 q0,3.5 4.75,5.75t 11.25,2.25l 112,0 l0-32 zM 160,288l-128,0 l0,24 q0,3.5 4.75,5.75t 11.25,2.25l 112,0 l0-32 zM 160,352l-128,0 l0,24 q0,3.5 4.75,5.75t 11.25,2.25l 112,0 l0-32 zM 160,416l-128,0 l0,24 q0,3.5 4.75,5.75t 11.25,2.25l 112,0 l0-32 zM 320,336\nq0-6.5 -4.75-11.25t-11.25-4.75l-80,0 l0-32 l 80,0 q 10,0 14.5-9q-3-10 -11.5-16.5t-19-6.5l0-16 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16 l-32,0 q-13,0 -22.5,9.5t-9.5,22.5l0,48 q0,6.5 4.75,11.25t 11.25,4.75l 80,0 l0,32 l-80,0 q-10,0 -14.5,9.5q 3.5,10 11.75,16.25t 18.75,6.25l0,16 q0,6.5 4.75,11.25\nt 11.25,4.75t 11.25-4.75t 4.75-11.25l0-16 l 32,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-48 zM 445,128l-29,0 q-17.5,0 -32.75-9.75t-21.25-22.25l-10,0 l0,96 l 29.5,0 l-1-8.5q-2.5-14.5 10.5-19t 41-4.5l 25.5,0 zM 480,224l-128,0 l0,32 l 112,0 q 6.5,0 11.25-2.25t 4.75-5.75l0-24 zM 480,288l-128,0 l0,32 l 112,0 q 6.5,0 11.25-2.25t 4.75-5.75l0-24 zM 480,352l-128,0 \nl0,32 l 112,0 q 6.5,0 11.25-2.25t 4.75-5.75l0-24 zM 480,416l-128,0 l0,32 l 112,0 q 6.5,0 11.25-2.25t 4.75-5.75l0-24 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"factory\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-448 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,211 l 96-77.5q 13-8 22.5-5t 9.5,15l0,67.5 l 96-77.5q 13-8 22.5-5t 9.5,15l0,67.5 l 96-77.5q 13.5-8 22.75-5t 9.25,15l0,304.5 q0,13.5 -9.5,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"creditcard\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-224 l 512,0 l0,224 q0,13.5 -9.25,22.75t-22.75,9.25zM 80,384l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 144,256l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25\nt 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 240,256l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 256,368q0,6.5 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-128,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25zM 336,256l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 432,256l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM0,96\nq0-13 9.25-22.5t 22.75-9.5l 448,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,32 l-512,0 l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bill\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448l-448,0 q-13,0 -22.5-9.25t-9.5-22.75l0-320 q0-13 9.25-22.5t 22.75-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.5l0,320 q0,13.5 -9.25,22.75t-22.75,9.25zM 480,192l-32,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-32 l-256,0 l0,32 q0,26.5 -18.75,45.25t-45.25,18.75l-32,0 l0,128 l 32,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,32 l 256,0 \nl0-32 q0-26.5 18.75-45.25t 45.25-18.75l 32,0 l0-128 zM 256,384q-40,0 -68-37.5t-28-90.5t 28-90.5t 68-37.5t 68,37.5t 28,90.5t-28,90.5t-68,37.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sale\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,195.5l-45.5,61l 45.5,60.5q-2,9 -3.5,14.5l-70,30l 8.5,75.5q-4.5,5 -10,10.5l-75.5-9l-30.5,70l-14,3.5l-61-45.5l-61,45.5q-9-2 -14-3.5l-30.5-70l-75.5,9q-3.5-4 -10-10.5l 8.5-75.5l-70-30q-1.5-5 -3.5-14.5l 45.5-60.5l-45.5-61q 2-8.5 3.5-14l 70-30l-8.5-75.5q 4.5-5 10-10.5l 75.5,9l 30.5-70\nq 4.5-1.5 14-3.5l 61,45l 61-45q 9,2 14,3.5l 30.5,70l 75.5-9q 5,5 10,10.5l-8.5,75.5l 70,30z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"barcode\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480.25,512q-13.25,0 -22.75-9.25t-9.5-22.75l0-447.5 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,447.5 q0,13.5 -9.25,22.75t-22.5,9.25zM 400,512q-6.5,0 -11.25-4.75t-4.75-11.25l0-479.5 q0-7 4.75-11.5t 11.25-4.5t 11.25,4.5t 4.75,11.5l0,479.5 q0,6.5 -4.75,11.25t-11.25,4.75zM 320.25,512q-13.25,0 -22.75-9.25\nt-9.5-22.75l0-447.5 q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.25t 9.25,22.75l0,447.5 q0,13.5 -9.25,22.75t-22.5,9.25zM 208,512q-6.5,0 -11.25-4.75t-4.75-11.25l0-479.5 q0-7 4.75-11.5t 11.25-4.5t 11.25,4.5t 4.75,11.5l0,479.5 q0,6.5 -4.75,11.25t-11.25,4.75zM 128.25,512q-13.25,0 -22.75-9.25t-9.5-22.75l0-447.5 q0-13.5 9.5-22.75\nt 22.5-9.25t 22.5,9.25t 9.5,22.75l0,447.5 q0,13.5 -9.25,22.75t-22.5,9.25zM 32.25,512q-13.25,0 -22.75-9.25t-9.5-22.75l0-447.5 q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.25t 9.25,22.75l0,447.5 q0,13.5 -9.25,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"qrcode\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,448q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 496,320q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 496,192l-16,0 l0,16 q0,6.5 -4.75,11.25\nt-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16 l-64,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-32 l0-32 l0-48 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 48,0 l0-64 l-32,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75l 64,0 l 160,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,160 q0,6.5 -4.75,11.25t-11.25,4.75zM 480,48q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 zM 432,128l-32,0 q-6.5,0 -11.25-4.75\nt-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 256,160l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-48,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16 l-16,0 l-32,0 l-48,0 l0,32 l 32,0 l0-16 q0-6.5 4.75-11.25\nt 11.25-4.75t 11.25,4.75t 4.75,11.25l0,48 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-48,0 q-6.5,0 -11.25-4.25t-4.75-10.25l0-49.5 l-32,0 l0,17.5 q0,6 -4.75,10.25t-11.25,4.25t-11.25-4.25t-4.75-10.25l0-30 q0-1 0.5-2q0-0.5 -0.25-0.75t-0.25-0.75l0-160 \nq0-6.5 4.75-11.25t 11.25-4.75l 160,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-16,0 l0,32 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-16,0 l0,32 l 32,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,16 zM 160,48q0-6.5 -4.75-11.25\nt-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 zM 112,128l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 16,256q 6.5,0 11.25,4.75\nt 4.75,11.25t-4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 240,288q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 272,224q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25t 4.75-11.25\nt 11.25-4.75zM 384,240q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25zM 16,320l 48,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,16 l 80,0 q 6.5,0 11.25,4.75t 4.75,11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,32 l 64,0 l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75l 112,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,32 l0,48 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-16,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75l-48,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-32,0 l0,16 q0,6.5 -4.75,11.25\nt-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 16,0 l0-48 l-96,0 l0,80 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-16,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-160,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-160 q0-6.5 4.75-11.25t 11.25-4.75zM 336,416\nl 64,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75zM 32,464q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 z\nM 80,384l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75zM 368,352q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 240,384q 6.5,0 11.25,4.75t 4.75,11.25\nt-4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 272,480q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 432,480l 16,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,16 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25\nt-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"rubberstamp\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,416l-448,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-32 q0-13.5 9.25-22.75t 22.75-9.25l 173,0 q 19-24.5 19-64q0-36.5 -14-66.75t-37.5-46.75q-12.5-22 -12.5-46.5q0-40 28-68.25t 68-28.25t 68,28.25t 28,68.25q0,24.5 -12.5,46.5q-23.5,16.5 -37.5,46.75t-14,66.75q0,39.5 19,64l 173,0 q 13.5,0 22.75,9.25t 9.25,22.75\nl0,32 q0,13 -9.25,22.5t-22.75,9.5zM 480,480q0,13 -9.25,22.5t-22.75,9.5l-384,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-32 l 448,0 l0,32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"shoppingbag\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-320 q0-13 9.25-22.5t 22.75-9.5l 64,0 l0-64 l 64-63.5l0,127.5 l 192,0 l0-127.5 l 64,63.5l0,64 l 64,0 q 13,0 22.5,9.5t 9.5,22.5l0,320 q0,13.5 -9.25,22.75t-22.75,9.25zM 192,0.5l 128,0 l0,63.5 l-128,0 l0-63.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"store\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,256q-26.5,0 -45.25-18.75t-18.75-45.25q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25q0-17 16-48l 46-119.5q 3.5-10.5 13-17.5t 19-7l 326,0 q 10,0 19.25,7\nt 12.75,17.5l 44,119.5q 1,2.5 4.75,10.75t 5.75,13t 3.75,11.75t 1.75,12.5q0,26.5 -18.75,45.25t-45.25,18.75zM 32,448l0-128 q0-13.5 9.5-22.75t 22.5-9.25t 22.5,9.25t 9.5,22.75l0,128 l 96,0 l0-128 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,128 l 96,0 l0-128 q0-13.5 9.5-22.75t 22.5-9.25t 22.5,9.25\nt 9.5,22.75l0,128 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-448,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"moneybag\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,511.5q-22.5,0.5 -112,0.5t-112-0.5q-63.5-1.5 -95.75-8.5t-32.25-23.5q0-10 10-40.25t 22-63.5t 22-76.5t 10-75.75q0-96 176-96t 176,96q0,32.5 10,75.75t 22,76.5t 22,63.5t 10,40.25q0,16.5 -32.25,23.5t-95.75,8.5zM 272,239.5q 34,0 56.75,8t 23.25,23.5l0,0.5 q0,6.5 4.75,11.25t 11.25,4.75\nt 11.25-4.75t 4.75-11.25q0-58.5 -96-63.5l0-16.5 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16.5 q-96,5 -96,63.5q0,11 3.25,19t 10.5,13.25t 15.75,8.5t 22.5,4.75t 27,2t 33,0.5q 34.5,0 57.25,8.25t 22.75,23.75t-22.75,23.75t-57.25,8.25q-34,0 -56.75-8t-23.25-23.5l0-0.5 q0-6.5 -4.75-11.25\nt-11.25-4.75t-11.25,4.75t-4.75,11.25q0,58.5 96,63.5l0,16.5 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-16.5 q 96-5 96-63.5q0-64 -112-64q-7,0 -17.5,0.25t-17,0.5t-14.5,0t-13-1.25t-9.5-2.75t-6.5-5t-2-7.75q0-15.5 23-23.75t 57-8.25zM 272,95.5q-30,0 -55,3q-10.5-21 -17.75-40.75\nt-7.25-26.25q0-8 13-16q 12,7 30.5,11.5t 36.5,4.5t 36.5-4.5t 30.5-11.5q 13,8 13,16q0,6.5 -7.25,26.25t-17.75,40.75q-25-3 -55-3z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"googlewallet\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512q-26.5,0 -45.25-18.75t-18.75-45.25q-4.5-40.5 -20.25-84.5t-43.75-75.5q-2.5,38 -10.75,77.75t-21.25,66.25q-12,24 -29,36t-35,12q-26.5,0 -45.25-18.75t-18.75-45.25q0-30 -15-66.25t-35.5-63t-37-35.25q-18-7.5 -29.25-23.5t-11.25-36q0-25.5 15.75-44.75t 32.25-19.25q 17.5,0 37,7.75t 32.5,21.75\nq 7,7.5 15,18.75t 22,32.25t 21.5,32q0-43.5 -4-74t-8-46.5t-4-24q0-26.5 18.75-45.25t 45.25-18.75q 19,0 34.25,10t 23.25,26.5q 33.5,34.5 101,141q-3.5-61 -15.5-105q-15-18 -15-40.5q0-26.5 18.75-45.25t 45.25-18.75q 16.5,0 27.75,8.25t 20.25,23.75q 2,3.5 5.25,10t 11.5,28.5t 14.5,46.25t 11.5,62.25t 5.25,77\nq0,72 -9.25,124.75t-22.75,83.25q-21.5,48 -64,48z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"squareapp\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-40,0 -68-28.25t-28-67.75l0-320 q0-40 28-68t 68-28l 320,0 q 39.5,0 67.75,28t 28.25,68l0,320 q0,39.5 -28.25,67.75t-67.75,28.25zM 416,112q0-6.5 -4.75-11.25t-11.25-4.75l-288,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,288 q0,6.5 4.75,11.25t 11.25,4.75l 288,0 q 6.5,0 11.25-4.75t 4.75-11.25\nl0-288 zM 304,320l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cashregister\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-416,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 416,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13 -9.5,22.5t-22.5,9.5zM 256,416l-32,0 q-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75t 22.75,9.5l 32,0 q 13,0 22.5-9.5t 9.5-22.75t-9.5-22.5t-22.5-9.25zM 448,352l-416,0 q-13.5,0 -22.75-9.5\nt-9.25-22.5l0-160 q0-13.5 25.25-38.75t 38.75-25.25l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 288,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q 13,0 38.5,25.25t 25.5,38.75l0,160 q0,13 -9.5,22.5t-22.5,9.5zM 256,304q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 256,208q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 160,304q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 160,208q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 64,304q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 112,160l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75zM 352,80q0-6.5 -4.75-11.25t-11.25-4.75l-192,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75\nl 192,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 416,176q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 416,272q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 \nq 6.5,0 11.25-4.75t 4.75-11.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"officechair\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 432,320l-48,0 q0,13 -9.5,22.5t-22.5,9.5l-64,0 l0,64 l 80,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-16,0 l-96,0 l-96,0 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 80,0 l0-64 l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-128 q0-6.5 4.75-11.25t 11.25-4.75\nt 11.25,4.75t 4.75,11.25l0,112 l 64,0 l 64,0 l0-32.5 q-18.5,0 -31.5-1.5t-26-5.75t-20.75-11t-12.75-18t-5-27.25q0-92 36-142t 92-50t 92,50t 36,142q0,16 -5,27.25t-12.75,18t-20.75,11t-26,5.75t-31.5,1.5l0,32.5 l 64,0 l 64,0 l0-112 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,128 \nq0,6.5 -4.75,11.25t-11.25,4.75zM 384,479.75q0,13.25 -9.5,22.75t-22.75,9.5t-22.5-9.5t-9.25-22.75t 9.25-22.5t 22.5-9.25t 22.75,9.25t 9.5,22.5zM 288,479.75q0,13.25 -9.5,22.75t-22.75,9.5t-22.5-9.5t-9.25-22.75t 9.25-22.5t 22.5-9.25t 22.75,9.25t 9.5,22.5zM 192,479.75q0,13.25 -9.5,22.75t-22.75,9.5t-22.5-9.5\nt-9.25-22.75t 9.25-22.5t 22.5-9.25t 22.75,9.25t 9.5,22.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"appointment\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 400,512q-46.5,0 -79.25-32.75t-32.75-79.25t 32.75-79.25t 79.25-32.75t 79.25,32.75t 32.75,79.25t-32.75,79.25t-79.25,32.75zM 464,384l-48,0 l0-48 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,64 q0,6 3.75,10.25t 9.25,5.25q 1,0.5 3,0.5l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25\nt-11.25-4.75zM 240,416l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 144,320l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 304,288l-160,0 \nq-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 160,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 368,224l-224,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 224,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 368,96l-224,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25\nt 11.25-4.75l 224,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 368,160l-224,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 224,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 416,48q0-6.5 -4.75-11.25t-11.25-4.75l-320,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,16 \nq 13.5,0 22.75,9.25t 9.25,22.75t-9.25,22.75t-22.75,9.25l0,32 q 13.5,0 22.75,9.25t 9.25,22.75t-9.25,22.75t-22.75,9.25l0,32 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l0,32 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l0,16 q0,6.5 4.75,11.25t 11.25,4.75l 208,0 l0,32 l-224,0 \nq-13,0 -22.5-9.5t-9.5-22.5l0-32 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l0-32 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l0-32 q-13,0 -22.5-9.25t-9.5-22.75t 9.5-22.75t 22.5-9.25l0-32 q-13,0 -22.5-9.25t-9.5-22.75t 9.5-22.75t 22.5-9.25l0-32 q0-13.5 9.5-22.75t 22.5-9.25l 352,0 q 13,0 22.5,9.25t 9.5,22.75l0,224 l-32,0 l0-208 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"exchange\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,336q-6.5,0 -11.25-4.75t-4.75-11.25l0-0.5 q-0.5-15 -19.25-23.25t-44.75-8.25q-32,0 -49.5,32l 33.5,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-44.5,0 q-3.5,15.5 -3.5,32l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-44.5,0 q 5.5,27.5 20.5,45.75t 40,18.25q 26,0 44.75-8.25t 19.25-23.25\nl0-0.5 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25q0,32 -26,48t-70,16q-41.5,0 -64.5-26.75t-29-69.25l-18.5,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 16,0 q0-16 2.5-32l-18.5,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 26,0 q 23-64 86-64q 44,0 70,16t 26,48\nq0,6.5 -4.75,11.25t-11.25,4.75zM 464,192l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-48,0 l0,28.5 q-5,3.5 -11.5,3.5t-11.5-3.5l-68-52q-5-3.5 -5-8.5t 5-8.5l 68-52q 5-3.5 11.5-3.5t 11.5,3.5l0,28.5 l 48,0 q 36,0 58,22t 22,58l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 183,476.5\nq-5,3.5 -11.5,3.5t-11.5-3.5l0-28.5 l-48,0 q-36,0 -58-22t-22-58l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 48,0 l0-28.5 q 5-3.5 11.5-3.5t 11.5,3.5l 68,52q 5,3.5 5,8.5t-5,8.5zM 112,128q 112,0 112,64q0,59 -96,63.5l0,16.5 q0,6.5 -4.75,11.25\nt-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16.5 q-96-4.5 -96-63.5q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,0.5 q 0.5,15.5 23.25,23.5t 56.75,8q 34.5,0 57.25-8.25t 22.75-23.75t-22.75-23.75t-57.25-8.25q-112,0 -112-64q0-59 96-63.5l0-16.5 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,16.5 \nq 96,4.5 96,63.5q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-0.5 q-0.5-15.5 -23.25-23.5t-56.75-8q-34.5,0 -57.25,8.25t-22.75,23.75t 22.75,23.75t 57.25,8.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"westernunion\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,512q-67,0 -97.5-28.25t-30.5-83.75l0-112 l-16,0 l-48-96l-48,96l-80,0 l-64-288l 80,0 l 48,144l 32-144l 64,0 l 32,144l 48-144l 80,0 l-50,224l 18,0 l0,176 q0,15.5 12.25,31.75t 19.75,16.25q 11.5,0 21.75-14.75t 10.25-33.25l0-176 l 96,0 l0,176 q0,56 -29.5,84t-98.5,28z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"alertpay\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 509.5,367.5l-87,11.5q-17,1 -28.5-16q-12-17 -28.5-41.5l-135.5,22.5l 0.5,41.5q-2.5,24.5 -18.5,28l-111.5,15q-7,1.5 -10.75-5.25t-0.75-18.25l 97-384q 3-11.5 7.5-17t 10-4.5t 11.5,5.75t 13.5,13.75l 279.5,320q 5,6 6.75,12.75t0,11.25t-5.25,4.5zM 257,163.5q-6.5-8 -17.75-2.25t-11.25,14.25q0,12.5 1,113\nl 104-14.5q-69.5-102.5 -76-110.5zM 54,478.5l 136-18q 7.5-1.5 12.5-5.5l0,7.5 q-3,27 -20.5,30.5l-142.5,18.5q-17,3.5 -28-11.75t-7-29.75l 109-398.5q 5-18 13.75-27.5t 19.75-8l-109.5,408.5q-3.5,12.5 2.75,24.25t 13.75,9.75zM 353.5,414.5q 13.5,20 33,18.5l 96-16q-1,11.5 -7.75,23.25t-11.75,11.75l-97.5,12.5\nq-24,1.5 -36-16q-9-17 -23-42l-45.5,15.5q-0.5-16.5 -0.5-28.5l 63.5-9.5q 7,10.5 14.5,18t 11,10z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"skrill\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-118,0 q 50.5-22 84.25-64.75t 33.75-89.75q0-33 -12-62t-35-52t-60.5-36.5t-84.5-14l0-0.5 q-10,0 -16.25-0.25t-16.25-2t-16-4.75t-10.75-9.5t-4.75-15.5q0-11.5 10.75-19.25t 24.25-10.25t 29-2.5q 96.5,0 160,32l0-128.5 q-18.5-18.5 -65.5-32l 97.5,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25\nt-45.25,18.75zM 64,155q0,33 12,62.25t 35,52.25t 60.5,36.5t 84.5,14q 10,0 16.25,0.25t 16.25,2t 16,4.75t 10.75,9.5t 4.75,15.5q0,11.5 -10.75,19.25t-24.25,10.25t-29,2.5q-96.5,0 -160-32l0,128 q 18.5,18.5 65.5,32l-97.5,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 118,0 \nq-50.5,22 -84.25,65t-33.75,90z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"paypal\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 510,217q-12.5,60.5 -61,97.75t-112,37.25l-96,0 q-19,0 -32,16l-30.5,127q-1.5,7 -7.75,12t-13.25,5l-79,0 q-7,0 -10.75-5t-2.25-12l 3.5-15l 56.5,0 q 7,0 13.25-5t 7.75-12l 30.5-127q 13-16 32-16l 96,0 q 63.5,0 112-37.25t 61-97.75q 2.5-11.5 3-24.5l0-0.5 l0-53.5 l 1.25,1t 1.75,1.5q 18,21 25.25,49\nt 0.75,59zM 273,288l-96,0 q-19,0 -32,16l-30.5,127q-1.5,7 -7.75,12t-13.25,5l-79,0 q-7,0 -10.75-5t-2.25-12l 95-410q 1.5-6.5 11.25-13.75t 17.25-7.25q 151,1.5 169.5,1.5q 32,0 71,12.75t 54.5,30.75q 18,21 25.25,49t 0.75,59q-12.5,60.5 -61,97.75t-112,37.25zM 273,96l-48,0 \nq-16,0 -21.25,3.25t-10.75,12.75l-16,61q-2,6.5 6.25,12.75t 15.25,6.25q 5,0 21.5-0.5t 20.5-0.5q 36,0 57.5-15.25t 21.5-39.25q0-20.5 -10.75-30.5t-35.75-10z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"mastercard\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448l-448,0 q-13,0 -22.5-9.25t-9.5-22.75l0-320 q0-13 9.25-22.5t 22.75-9.5l 448,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,320 q0,13 -9.25,22.5t-22.75,9.5zM 320,160q-36.5,0 -64,25q-27.5-25 -64-25q-40,0 -68,28.25t-28,68t 28,67.75t 68,28q 36.5,0 64-25q 27.5,25 64,25q 39.5,0 67.75-28\nt 28.25-67.75t-28.25-68t-67.75-28.25zM 320,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"calculator2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 208,128l-48,0 l0-48 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,48 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25\nt 11.25,4.75l 48,0 l0,48 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-48 l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 220.25,291.75q-3.75-3.75 -9.25-3.75t-9.5,3.5l-57.5,57.5l-57.5-57.5q-4-3.5 -9.5-3.5t-9.25,3.75t-3.75,9.25t 3.5,9.5l 57.5,57.5l-57,57q-4,4 -4,9.5t 4,9.5t 9.5,4\nt 9.5-4l 57-57l 57,57q 4,4 9.5,4t 9.5-4t 4-9.5t-4-9.5l-57-57l 57.5-57.5q 3.5-4 3.5-9.5t-3.75-9.25zM 432,128l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 432,320l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25\nt 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 432,384l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"price2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 503,340.5l-162.5,162.5q-9,9 -22.25,9t-22.25-9l-287-287q-9-9 -9-39.5l0-144 q0-13.5 9.5-22.75t 22.5-9.25l 144,0 q 31,0 40,9l 287,286.5q 9,9.5 9,22.5t-9,22zM 128,64q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75z\nM 202,276.5q-4.5-4.5 -10.75-4.5t-10.75,4.5t-4.5,11t 4.5,11l 129,129q 4.5,4.5 11,4.5t 11-4.5t 4.5-10.75t-4.5-10.75zM 228.5,228.5q-4.5,4.5 -4.5,11t 4.5,11l 129,129q 4.5,4.5 11,4.5t 11-4.5t 4.5-10.75t-4.5-10.75l-129.5-129.5q-4.5-4.5 -10.75-4.5t-10.75,4.5zM 427.5,310l-129.5-129.5q-4.5-4.5 -10.75-4.5t-10.75,4.5t-4.5,11t 4.5,11l 129,129\nq 4.5,4.5 11,4.5t 11-4.5t 4.5-10.75t-4.5-10.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"law\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 503,503q-9,9 -21.5,9t-21.5-9l-224.5-224.5l-52.5,52.5l0,0.5 q 9,9 9,21.75t-9,21.75t-21.75,9t-21.75-9l-130.5-130.5q-9-9 -9-21.75t 9-21.75t 21.75-9t 21.75,9l 0.5,0.5l 148.5-148.5l-0.5-0.5q-9-9 -9-21.75t 9-21.75t 21.75-9t 21.75,9l 130.5,130.5q 9,9 9,21.75t-9,21.75\nt-21.75,9t-21.75-9l-0.5-0.5l-52.5,52.5l 224.5,225q 9,9 9,21.5t-9,21.5zM 168.5,125l-43,43.5l 90.5,90.5l 43-43z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bank\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,128l-448,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 224-64.5l 224,64.5q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 64,416q-13.5,0 -22.75-9.5t-9.25-22.5l0-192 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,192 q0,13 -9.5,22.5t-22.5,9.5l-64,0 z\nM 224,416q-13.5,0 -22.75-9.5t-9.25-22.5l0-192 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,192 q0,13 -9.25,22.5t-22.75,9.5l-64,0 zM 384,416q-13,0 -22.5-9.5t-9.5-22.5l0-192 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,192 q0,13 -9.25,22.5t-22.75,9.5l-64,0 zM 32,448\nl 448,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-448,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"abacus\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,288l-17.5,0 q-5,32 -30.5,32t-30.5-32l-67,0 q-5,32 -30.5,32t-30.5-32l-99,0 q-5,32 -30.5,32t-30.5-32l-35,0 q-5,32 -30.5,32t-30.5-32l-17.5,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 17.5,0 q 5-32 30.5-32t 30.5,32l 35,0 q 5-32 30.5-32t 30.5,32l 99,0 q 5-32 30.5-32t 30.5,32l 67,0 q 5-32 30.5-32\nt 30.5,32l 17.5,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 496,96l-17.5,0 q-5,32 -30.5,32t-30.5-32l-131,0 q-5,32 -30.5,32t-30.5-32l-35,0 q-5,32 -30.5,32t-30.5-32l-35,0 q-5,32 -30.5,32t-30.5-32l-17.5,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 17.5,0 q 5-32 30.5-32t 30.5,32l 35,0 \nq 5-32 30.5-32t 30.5,32l 35,0 q 5-32 30.5-32t 30.5,32l 131,0 q 5-32 30.5-32t 30.5,32l 17.5,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 16,448l 177.5,0 q 5-32 30.5-32t 30.5,32l 67,0 q 5-32 30.5-32t 30.5,32l 35,0 q 5-32 30.5-32t 30.5,32l 17.5,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-17.5,0 \nq-5,32 -30.5,32t-30.5-32l-35,0 q-5,32 -30.5,32t-30.5-32l-67,0 q-5,32 -30.5,32t-30.5-32l-177.5,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"gift\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,224l-208,0 l0-64 l 208,0 q 6.5,0 11.25,4.5t 4.75,11.5l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 320,128l-160,0 q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75q 27,0 40.25,6.75t 16.75,20t 4.75,28t 9.25,35.25t 25,38l0-21.75 t 0.5-20.25t 1.75-20t 3.25-17.75t 5.25-16.5t 8-12.75t 11.25-10.5t 15-6t 19-2.5\nq 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 159.75,32q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 319.75,32q-13.25,0 -22.5,9.25t-9.25,22.5t 9.5,22.75t 22.5,9.5t 22.5-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 224,224l-208,0 \nq-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-7 4.75-11.5t 11.25-4.5l 208,0 l0,64 zM 224,512l-160,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-224 l 192,0 l0,256 zM 480,256l0,224 q0,13 -9.25,22.5t-22.75,9.5l-160,0 l0-256 l 192,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"briefcase3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-160 q0-13.5 9.25-22.75t 22.75-9.25l 32,0 l0,32 q0,13 9.25,22.5t 22.75,9.5l 64,0 q 13.5,0 22.75-9.5t 9.25-22.5l0-32 l 128,0 l0,32 q0,13 9.25,22.5t 22.75,9.5l 64,0 q 13.5,0 22.75-9.5t 9.25-22.5l0-32 l 32,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,160 q0,26.5 -18.75,45.25\nt-45.25,18.75zM 400,224q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 zM 144,224q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25\nt 11.25-4.75l 32,0 zM 480,224l-32,0 q0-13.5 -9.25-22.75t-22.75-9.25l-64,0 q-13.5,0 -22.75,9.25t-9.25,22.75l-128,0 q0-13.5 -9.5-22.75t-22.5-9.25l-64,0 q-13.5,0 -22.75,9.25t-9.25,22.75l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5q0-3.5 0.5-6.5q 2.5-24.5 20.75-41t 42.75-16.5l 64,0 l0-32 q0-40 28-68t 68-28l 64,0 q 40,0 68,28\nt 28,68l0,32 l 64,0 q 24.5,0 42.75,16.5t 20.75,41q 0.5,3 0.5,6.5q0,13 -9.25,22.5t-22.75,9.5zM 320,96q0-13.5 -9.5-22.75t-22.5-9.25l-64,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,32 l 128,0 l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"briefcase2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-192 l 192,0 l0,32 q0,13 9.5,22.5t 22.5,9.5l 64,0 q 13.5,0 22.75-9.5t 9.25-22.5l0-32 l 192,0 l0,192 q0,13.5 -9.5,22.75t-22.5,9.25zM 288,287.75q0,13.25 -9.25,22.75t-22.5,9.5t-22.75-9.5t-9.5-22.75t 9.5-22.5t 22.75-9.25t 22.5,9.25t 9.25,22.5zM 288,224l-64,0 q-13,0 -22.5,9.25\nt-9.5,22.75l-192,0 l0-96 q0-13.5 9.25-22.75t 22.75-9.25l 96,0 l0-32 q0-40 28-68t 68-28l 64,0 q 40,0 68,28t 28,68l0,32 l 96,0 q 13,0 22.5,9.25t 9.5,22.75l0,96 l-192,0 q0-13.5 -9.25-22.75t-22.75-9.25zM 320,96q0-13.5 -9.25-22.75t-22.75-9.25l-64,0 q-13,0 -22.5,9.25t-9.5,22.75l0,32 l 128,0 l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"yen2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.25t 54.5-81.5t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.5t 20.25,99.25t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 407,105q-9-9 -21.75-9t-21.75,9l-107.5,81l-108-81q-9-9 -21.75-9\nt-21.75,9t-9,21.75t 9,21.75l 119.5,90l0,17.5 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.5t 4.75,11.25t 11.25,4.5l 48,0 l0,32 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 48,0 l0,64 q0,13.5 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75l0-64 l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75\nl-48,0 l0-32 l 48,0 q 6.5,0 11.25-4.5t 4.75-11.25t-4.75-11.5t-11.25-4.75l-48,0 l0-17.5 l 119-90q 9-9 9-21.75t-9-21.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pound2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.25t 54.5-81.5t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.5t 20.25,99.25t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 224,288l 32,0 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5l-56,0 l-1-3\nq-7-14 -7-29q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25q0,13.5 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75q0-53 -37.5-90.5t-90.5-37.5t-90.5,37.5t-37.5,90.5q0,14.5 4.5,32l-4.5,0 q-13,0 -22.5,9.5t-9.5,22.75t 9.5,22.5t 22.5,9.25l 32,0 q0,17.5 -5,33t-11,24.5t-11,19.5t-5,19\nq0,13.5 9.5,22.75t 22.5,9.25l 192,0 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5l-146,0 q 8-7.5 12.25-23.5t 5.25-28.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pound\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 447.75,224q-13.25,0 -22.5-9.25t-9.25-22.75q0-53 -37.5-90.5t-90.5-37.5t-90.5,37.5t-37.5,90.5q0,26 8.5,64l 87.5,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-72.5,0 q 8.5,38 8.5,64q0,32 -17,64l 273,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-320,0 q-13,0 -22.5-9.75t-9.5-22.75\nq0-7 5-16.75t 11-19.25t 11-25.5t 5-34q0-26.5 -9-64l-55,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 39.5,0 q-7.5-35.5 -7.5-64q0-52 25.75-96.25t 70-70t 96.25-25.75t 96.25,25.75t 70,70t 25.75,96.25q0,13.5 -9.5,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"euro2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,380l0,4 l-2-1q-33.5,59 -92.75,94t-129.25,35q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.25t 54.5-81.5t 81.75-54.5t 99.5-20.25q 70,0 129.25,35t 92.75,94l 2-1.5l0,4.5 q 32,57.5 32,123.5t-32,124zM 224,352q 13.5,0 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5l-60.5,0 \nq-3.5-16 -3.5-32q0-15.5 3.5-32l 60.5,0 q 13,0 22.5-9.25t 9.5-22.5t-9.25-22.75t-22.75-9.5l-26,0 q 32-32 74-32q 30.5,0 56.25,17.5t 40.25,46.5l-0.5,0 q 3.5,7.5 12.75,11.75t 19.25,4.25q 13.5,0 22.75-9.25t 9.25-22.75q0-17 -14-26.5q-24.5-39 -62.75-62.25t-83.25-23.25q-48,0 -88.5,26.25t-64,69.75l-23.5,0 q-13,0 -22.5,9.5\nt-9.5,22.75t 9.5,22.5t 22.5,9.25l 2.5,0 q-2.5,17 -2.5,32t 2.5,32l-2.5,0 q-13,0 -22.5,9.5t-9.5,22.75t 9.5,22.5t 22.5,9.25l 23.5,0 q 23.5,44 64,70t 88.5,26q 45,0 83.25-23t 62.75-62.5q 14-9.5 14-26.5q0-13 -9.25-22.5t-22.75-9.5q-10,0 -19.25,4.25t-12.75,11.75l 0.5,0.5q-14.5,29 -40.25,46.25t-56.25,17.25\nq-42,0 -74-32l 26,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"dollar2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.25t 54.5-81.5t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.5t 20.25,99.25t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 160,192q0-32.5 26.5-48.25t 69.5-15.75t 69.5,11.5t 26.5,36.5q0,13.5 9.25,22.75\nt 22.5,9.25t 22.75-9.25t 9.5-22.75l0,0 l0,0 q0-26 -19.25-49.5t-48-38.5t-61.25-20.5q 0.5-2 0.5-3.5q0-13 -9.5-22.25t-22.75-9.25t-22.5,9.25t-9.25,22.25l0,1.5 l0,1 q-24.5,4 -46.5,13t-40.75,23.75t-29.75,37.75t-11,51q0,47 43,71.5t 117,24.5l 12.5,0 q 15.5,0 23,0.25t 19.25,1t 17.5,2.75t 12.25,5.5t 9,9t 2.5,13.5\nq0,33 -26.5,48.5t-69.5,15.5q-43.5,0 -69.75-11.5t-26.25-36.5q0-13 -9.5-22.5t-22.75-9.5t-22.5,9.5t-9.25,22.5l0,0 l0,0 q0,26.5 19.25,49.75t 48,38.25t 60.75,21l0,3 q0,13.5 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75q0-0.5 -0.25-1.25t-0.25-1.25q 25-3.5 47-12.5t 40.75-23.75t 29.75-37.75t 11-51.5q0-46.5 -43-71.25\nt-117-24.75l-13,0 q-15,0.5 -22.5,0.25t-19.25-1t-17.5-2.75t-12.25-5.5t-9-9.25t-2.5-13.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"calculator\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45t 45.25-18.5l 384,0 q 26.5,0 45.25,18.5t 18.75,45l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 256,432q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 \nzM 256,304q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.5t 4.75-11.5l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 160,432q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 z\nM 160,304q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.5t 4.75-11.5l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 64,432q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 64,304\nq0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.5t 4.75-11.5l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 448,96q0-13 -9.25-22.5t-22.75-9.5l-320,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,64 q0,13.5 9.25,22.75t 22.75,9.25l 320,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-64 zM 448,272\nq0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,7 4.75,11.5t 11.25,4.5l 64,0 q 6.5,0 11.25-4.5t 4.75-11.5l0-32 zM 448,368q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"piggybank\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,256q0,43.5 -17,82.75t-47.5,69.75l 29.5,71.5q 5.5,13 -0.25,22.5t-19.75,9.5l-66.5,0 q-14,0 -27.5-9.5t-19-22.5l-4-9.5q-34,9.5 -68,9.5q-19.5,0 -38.5-3l-1.5,3q-5.5,13 -19,22.5t-27.5,9.5l-66.5,0 q-14,0 -19.75-9.5t-0.25-22.5l 22.5-55q-47.5-42 -65-105l-24.5,0 q-13,0 -22.5-18.75t-9.5-45.25t 9.5-45.25\nt 22.5-18.75l 25,0 q 10.5-37.5 32-68q-2.5-9.5 -7-23.5t-7.75-24.5t-6.25-23t-3.5-21.25t 1.25-16.25t 7.75-11.5t 16.5-4q 25.5,0 50,13.5t 42,36q 42-17.5 90-17.5q 77.5,0 140.5,42.5q 16-10.5 35.5-10.5q 26.5,0 45.25,18.75t 18.75,45.25q0,25.5 -17.5,44q 17.5,40.5 17.5,84zM 159.75,160q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75\nt 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"news\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-448 q0-13.5 9.25-22.75t 22.75-9.25l 448,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,448 q0,13.5 -9.25,22.75t-22.75,9.25zM 208,448l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 80,448\nl 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 80,352l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 256,80q0-7 -4.75-11.5t-11.25-4.5l-160,0 \nq-6.5,0 -11.25,4.5t-4.75,11.5l0,160 q0,6.5 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-160 zM 272,320l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 432,128l-16,0 l0-16 q0-7 -4.75-11.5t-11.25-4.5t-11.25,4.5t-4.75,11.5l0,16 \nl-64,0 l0-16 q0-7 -4.75-11.5t-11.25-4.5t-11.25,4.5t-4.75,11.5l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.5t-4.75-11.25t-11.25-4.5zM 432,224l-128,0 q-6.5,0 -11.25,4.5t-4.75,11.25t 4.75,11.5t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.5t-4.75-11.25t-11.25-4.5zM 432,320l-96,0 q-6.5,0 -11.25,4.75\nt-4.75,11.25t 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 432,416l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"playstore\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.25t-9.5-22.75l0-320 q0-13 9.5-22.5t 22.5-9.5l 64,0 l0-63.5 l 64-64l0,127.5 l 192,0 l0-127.5 l 64,64l0,63.5 l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,320 q0,13.5 -9.25,22.75t-22.75,9.25zM 160,192l0,256 l 224-128zM 192,0.5l 128,0 l0,64 l-128,0 l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"coupon\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,448l 5.5,4q-5.5,5 -5.5,12q0,6.5 4.75,11.25t 11.25,4.75l 26.5,0 l 8.5,6.5q-19.5,25.5 -51,25.5l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 31.5,0 51,25.5l-8.5,6.5l-26.5,0 q-6.5,0 -11.25,4.75t-4.75,11.25q0,7 5.5,12l-5.5,4l 64,48l-64,48l 64,48\nl-64,48l 64,48l-64,48l 64,48zM 272,480l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 352,384q 26.5,0 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75zM 176,480l 32,0 \nq 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 80,480l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 32,416q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25\nl0-32 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,32 zM 32,320q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,32 zM 32,224q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75\nt-4.75,11.25l0,32 zM 48,80q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75zM 112,32l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 208,32l-32,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 192,128q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75zM 304,32l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25\nt 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 344.75,130.25q-5.25-3.25 -11.25-1.75t-9.5,7.5l-130,224.5q-3,5.5 -1.5,12t 7,9.75t 11.5,1.5t 9-7.25l 130.5-225q 3-5.5 1.25-11.75t-7-9.5zM 400,32l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75\nt 4.75-11.25t-4.75-11.25t-11.25-4.75zM 400,448l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 192.25,224q-13.25,0 -22.75-9.5t-9.5-22.75t 9.5-22.5t 22.75-9.25t 22.5,9.25t 9.25,22.5t-9.25,22.75t-22.5,9.5zM 352.25,288q 13.25,0 22.5,9.25\nt 9.25,22.5t-9.25,22.75t-22.5,9.5t-22.75-9.5t-9.5-22.75t 9.5-22.5t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"timeline\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507.5,456.5l-68.5,52q-4.5,3.5 -11.25,3.5t-11.25-3.5l0-28.5 l-233.5,0 q-8.5,14.5 -23,23.25t-32,8.75q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75q 17.5,0 32,8.75t 23,23.25l 233.5,0 l0-29 q 4.5-3.5 11.25-3.5t 11.25,3.5l 68.5,52q 4.5,3.5 4.5,8.75t-4.5,8.75zM 375,124q-4.5,4 -11.25,4t-11.25-4l0-28 l-233.5,0 \nq-8.5,14.5 -23,23.25t-32,8.75q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75q 17.5,0 32,8.75t 23,23.25l 233.5,0 l0-29 q 4.5-3.5 11.25-3.5t 11.25,3.5l 68.5,52q 4.5,3.5 4.5,8.5t-4.5,9zM 96,192q 17.5,0 32,8.75t 23,23.25l 114,0 q 8.5-14.5 23-23.25t 32-8.75q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75q-17.5,0 -32-8.75t-23-23.25l-114,0 q-8.5,14.5 -23,23.25t-32,8.75q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 320.25,288q 13.25,0 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25t-22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"stockdown\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,128q0-26.5 -18.75-45.25t-45.25-18.75l-256,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,256 q0,26.5 18.75,45.25t 45.25,18.75l 256,0 \nq 26.5,0 45.25-18.75t 18.75-45.25l0-256 zM 392.5,352l-93,0 q-8,0 -9.75-4.75t-1.75-15.25l0-3 l 30.5-30.5l-79-79l-27,27.5q-9,9 -21.75,9t-21.75-9q0-0.5 -3.5-5.5l-61-61q-9-9 -9-21.75t 9-21.75t 21.75-9t 21.75,9l 44,44l 27.5-28q 9-9 21.75-9t 21.75,9q 2.5,2.5 5,8l 94.5,94l 30-30l 3.5,0 \nq 7,0 10.5,0.5t 6.5,3t 3,8l0,92.5 q0,9.5 -6.75,16.25t-16.75,6.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"stockup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,128q0-26.5 -18.75-45.25t-45.25-18.75l-256,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,256 q0,26.5 18.75,45.25t 45.25,18.75l 256,0 \nq 26.5,0 45.25-18.75t 18.75-45.25l0-256 zM 392.5,287l-30-30l-94,94q-3,5.5 -5.5,8q-9,9 -21.75,9t-21.75-9l-27.5-27.5l-44,43.5q-9,9 -21.75,9t-21.75-9t-9-21.75t 9-21.75l 61-61q 3.5-5 3.5-5.5q 9-9 21.75-9t 21.75,9l 27,27.5l 79-79l-30.5-30.5l0-3 q0-7 0.25-10.5t 3-6.5t 8.25-3l 93,0 \nq 10,0 16.75,6.75t 6.75,16.25l0,92.5 q0,5.5 -3,8.25t-6.5,3t-10.5,0.25l-3.5,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"stocks\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 495,192l-35-34.5l-142,142.5q-2.5,7 -7,11.5q-10,10 -24.5,8q-13,0.5 -22-8.5q-4.5-4 -6.5-10.5l-18.5-18.5q-1,1.5 -27.25,30.25t-28.75,31.25q-10,10 -25,8q-13,0.5 -22-8.5q-4.5-4 -6.5-10.5l-2.5-2.5l-61,61q-0.5,0.5 -1.25,1t-1.25,1l0,55 l 416,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-448,0 \nq-13.5,0 -22.75-9.25t-9.25-22.75l0-448 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,277.5 l 34-34q 2-6 6.5-10.5q 9-9 22-8.5q 14.5-1.5 24.5,8q 4.5,4.5 7,12l 1.5,1.5l 50.5-50.5q 2-6 6.5-10.5q 9-9 22-8.5q 15-1.5 24.5,8q 4.5,4.5 7,12l 17.5,17.5l 130.5-130.5l-34-34q-0.5-18 11-17.5l 101,0 q 7,0.5 11.25,4.75t 4.75,11.25l0,101 \nq 0.5,12 -17,11z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"metro\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 481.5,448l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-317.5 q-1.5-18 15.5-31l 75-56q 17-13 41.5-11.5l 247.5,0 q 24.5-1.5 42,11.5l 75,56q 12.5,9.5 14.5,23q 1,2 1,5.5l0,320 q0,13 -9.5,22.5t-22.5,9.5zM 385.5,384l 32,0 q 13.5,0 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25l-32,0 q-13,0 -22.5,9.25t-9.5,22.5t 9.5,22.75t 22.5,9.5z\nM 97.5,384l 32,0 q 13.5,0 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25l-32,0 q-13,0 -22.5,9.25t-9.5,22.5t 9.5,22.75t 22.5,9.5zM 449.5,128q-2-6 -12-13.5l-56-42q-12-9 -29.5-8.5l-189,0 q-17.5-0.5 -29.5,8.5l-56.5,42q-7,5.5 -10,13.5l-1.5,0 l0,96 q0,13 9.5,22.5t 22.5,9.5l 320,0 q 13.5,0 22.75-9.5t 9.25-22.5l 0.5-96l-0.5,0 z\nM 97.5,448l 32,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-32,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25zM 385.5,448l 32,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-32,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"mug\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,384q-15.5,0 -32-6l0,6 q0,40 -28,68t-68,28l-192,0 q-40,0 -68-28t-28-68l0-320 q0-13.5 9.25-22.75t 22.75-9.25l 320,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,37.5 q 15.5-5.5 32-5.5q 40,0 68,28t 28,68l0,96 q0,40 -28,68t-68,28zM 448,202.5q0-17.5 -14-30t-34-12.5q-8,0 -16,2.5l0,93.5 \nl0,61.5 q 8,2.5 16,2.5q 20,0 34-12.5t 14-30l0-75 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"women\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 435.5,331.75q-11.5,6.75 -24.25,3.25t-19.25-15l-36.5-63.5l0,63.5 l 59.5,79.5q 7,11.5 3.5,24.5t-15,19.5q-7.5,4.5 -16,4.5l-32,0 l0,32 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-32 l-64,0 l0,32 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-32 l-32,0 q-8.5,0 -16-4.5q-11.5-6.5 -15-19.5t 3.5-24.5l 59.5-79.5l0-63.5 \nl-36.5,63.5q-6.5,11.5 -19.25,15t-24.25-3.25t-15-19.75t 3.5-24.5l 64-111.5q 8.5-15.5 27.5-15.5l0-0.5 l 64,0 l0-24.5 q-8-5 -14-13.5q-17,11.5 -34,1.5q-11.5-6.5 -15-19.5t 3.5-24.5l 31-46q 6-16.5 22.25-25t 38.25-8.5t 38.25,8.5t 22.25,25l 31,46q 7,11.5 3.5,24.5t-15,19.5q-16.5,9.5 -33-1q-6,8.5 -15,14l0,23.5 l 64,0 l0,0.5 \nq 19,0 27.5,15.5l 64,111.5q 7,11.5 3.5,24.5t-15,19.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"men\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 435.5,331.75q-11.5,6.75 -24.25,3.25t-19.25-15l-36.5-63.5l0,223.5 q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l0-64 q0-12 -9.75-22t-22.25-10q-14,0 -23,8.75t-9,23.25l0,64 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-223.5 l-36.5,63.5q-6.5,11.5 -19.25,15t-24.25-3.25t-15-19.75t 3.5-24.5\nl 64-111.5q 8.5-15.5 27.5-15.5l0-0.5 l 64,0 l0-24.5 q-32-20.5 -32-83q0-26 18-39.25t 46-13.25t 46,13.25t 18,39.25q0,65.5 -32,84l0,23.5 l 64,0 l0,0.5 q 19,0 27.5,15.5l 64,111.5q 7,11.5 3.5,24.5t-15,19.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,128l-64,352q-2,12 -10.75,22t-21.25,10l-96,0 l-96,0 q-12.5,0 -21.25-10t-10.75-22l-64-352q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l0-32 q0-13.5 9.25-22.75t 22.75-9.25l 320,0 q 13,0 22.5,9.25t 9.5,22.75l0,32 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"freeway\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,224l-16,0 l0,80 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-80 l-384,0 l0,80 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-80 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 480,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75z\nM 288,16q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l 22.5,112l-86.5,0 l0-112 zM 160,16q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,112 l-86.5,0 zM 224,256l0,240 q0,6.5 -4.75,11.25t-11.25,4.75l-128,0 q-6.5,0 -11.25-4.75t-4.75-11.25l 48-240l 112,0 zM 448,496\nq0,6.5 -4.75,11.25t-11.25,4.75l-128,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-240 l 112,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"road\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,512l-160,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-64,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-160,0 q-6.5,0 -11.25-4.75t-4.75-11.25l 96-480q0-6.5 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 64,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l 96,480\nq0,6.5 -4.75,11.25t-11.25,4.75zM 288,96l-64,0 l0,128 l 64,0 l0-128 zM 224,288l0,128 l 64,0 l0-128 l-64,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"railroad\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 415.75,512q-13.25,0 -22.5-9.25t-9.25-22.75l-256,0 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.25t-9.25-22.75l 96-464q0-3 0.25-5.25t 1-4t 1-2.75t 1.5-1.75t 1.75-1.25t 2.5-0.75t 2.5-0.25l 2.75,0 l 2.75,0 l 2.75,0 l 2.75,0 t 2.5,0.25t 2.5,0.75t 1.75,1.25t 1.5,1.75t 1,2.75t 1,4t 0.25,5.25l-2,16l 132,0 l-2-16q0-3 0.25-5.25t 0.75-4\nt 1-2.75t 1.75-1.75t 1.75-1.25t 2.5-0.75t 2.5-0.25l 2.75,0 l 2.75,0 l 2.75,0 l 2.75,0 t 2.5,0.25t 2.5,0.75t 1.75,1.25t 1.5,1.75t 1,2.75t 1,4t 0.25,5.25l 96,464q0,13.5 -9.5,22.75t-22.75,9.25zM 181,96l-9,64l 168,0 l-9-64l-150,0 zM 348.5,224l-185,0 l-9,64l 203,0 zM 366.5,352l-221,0 l-8.5,64l 238,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"hospital\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,96q0-13.5 -9.25-22.75t-22.75-9.25l-64,0 q-13,0 -22.5,9.25t-9.5,22.75l0,96 l-128,0 l0-96 q0-13.5 -9.25-22.75t-22.75-9.25l-64,0 \nq-13,0 -22.5,9.25t-9.5,22.75l0,320 q0,13.5 9.5,22.75t 22.5,9.25l 64,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-96 l 128,0 l0,96 q0,13.5 9.5,22.75t 22.5,9.25l 64,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-320 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"emergency\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,224q0-13.5 -9.25-22.75t-22.75-9.25l-96,0 l0-96 q0-13.5 -9.25-22.75t-22.75-9.25l-64,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,96 l-96,0 \nq-13,0 -22.5,9.25t-9.5,22.75l0,64 q0,13.5 9.5,22.75t 22.5,9.25l 96,0 l0,96 q0,13.5 9.5,22.75t 22.5,9.25l 64,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-96 l 96,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"building\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,512l-480,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 16,0 q 13.5,0 22.75-9.5t 9.25-22.5l0-416 q0-13 9.5-22.5t 22.5-9.5l 320,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,416 q0,13.5 9.5,22.75t 22.5,9.25l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 192,80q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 192,176q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 192,272q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 288,80q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 288,176q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 288,272q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 304,384l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nl0,64 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 q0-6.5 -4.75-11.25t-11.25-4.75zM 384,80q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 384,176q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 384,272q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"beer\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,448q-15.5,0 -32-6l0,6 q0,26.5 -18.75,45.25t-45.25,18.75l-192,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-352 q0-3.5 1-8q-1-5.5 -1-8q0-18 11.5-31.25t 29-15.75q 8.5-15 23.25-24t 32.25-9q 13.5,0 26,5.5q 10.5-5.5 22-5.5q 22,0 36.5,17q 18.5-17 43.5-17q 17.5,0 32.25,9t 23.25,24q 17.5,2.5 29,15.75t 11.5,31.25\nq0,2.5 -1,8q 1,4.5 1,8l0,38 q 16.5-6 32-6q 40,0 68,28t 28,68l0,128 q0,40 -28,68t-68,28zM 64,416q0,13.5 9.5,22.75t 22.5,9.25l 192,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-224 l-256,0 l0,224 zM 416,234.5q0-17.5 -14-30t-34-12.5q-8,0 -16,2.5l0,187 q 8.5,2.5 16,2.5q 20,0 34-12.5t 14-30l0-107 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"stamp2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 511.5,448l0,32 q-13,0 -22.5,9.25t-9.5,22.75l-32,0 q0-13 -9.25-22.5t-22.5-9.5t-22.75,9.25t-9.5,22.75l-32,0 q0-13.5 -9.25-22.75t-22.5-9.25t-22.75,9.5t-9.5,22.5l-32,0 q0-13.5 -9.25-22.75t-22.5-9.25t-22.75,9.25t-9.5,22.75l-32,0 q0-13 -9.25-22.5t-22.5-9.5t-22.75,9.25t-9.5,22.75l-32,0 q0-13.5 -9.25-22.75\nt-22.75-9.25l0-32 q 13.5,0 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5l0-32 q 13.5,0 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5l0-32 q 13.5,0 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25l0-32 q 13.5,0 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25l0-32 q 13.5,0 22.75-9.25t 9.25-22.75l 32,0 q0,13.5 9.5,22.75t 22.75,9.25\nt 22.5-9.5t 9.25-22.5l 32,0 q0,13.5 9.5,22.75t 22.75,9.25t 22.5-9.25t 9.25-22.75l 32,0 q0,13 9.5,22.5t 22.75,9.5t 22.5-9.25t 9.25-22.75l 32,0 q0,13.5 9.5,22.75t 22.75,9.25t 22.5-9.5t 9.25-22.5l 32,0 q0,13.5 9.5,22.75t 22.5,9.25l0,32 q-13,0 -22.5,9.25t-9.5,22.5t 9.5,22.75t 22.5,9.5l0,32 q-13,0 -22.5,9.25t-9.5,22.5\nt 9.5,22.75t 22.5,9.5l0,32 q-13,0 -22.5,9.5t-9.5,22.75t 9.5,22.5t 22.5,9.25l0,32 q-13,0 -22.5,9.5t-9.5,22.75t 9.5,22.5t 22.5,9.25zM 447.5,112q0-6.5 -4.75-11.25t-11.25-4.75l-320,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,320 q0,6.5 4.75,11.25t 11.25,4.75l 320,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-320 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"stamp\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,448l0,32 q-13.5,0 -22.75,9.25t-9.25,22.75l-32,0 q0-13.5 -9.25-22.75t-22.5-9.25t-22.75,9.25t-9.5,22.75l-32,0 q0-13.5 -9.25-22.75t-22.75-9.25t-22.75,9.25t-9.25,22.75l-32,0 q0-13.5 -9.25-22.75t-22.75-9.25t-22.75,9.25t-9.25,22.75l-32,0 q0-13.5 -9.5-22.75t-22.75-9.25t-22.5,9.25\nt-9.25,22.75l-32,0 q0-13.5 -9.25-22.75t-22.75-9.25l0-32 q 13,0 22.5-9.5t 9.5-22.75t-9.25-22.5t-22.75-9.25l0-32 q 13.5,0 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25l0-32 q 13,0 22.5-9.5t 9.5-22.75t-9.25-22.5t-22.75-9.25l0-32 q 13,0 22.5-9.5t 9.5-22.75t-9.5-22.5t-22.5-9.25l0-32 q 13.5,0 22.75-9.5t 9.25-22.5l 32,0 q0,13 9.25,22.5\nt 22.5,9.5t 22.75-9.5t 9.5-22.5l 32,0 q0,13 9.25,22.5t 22.75,9.5t 22.75-9.5t 9.25-22.5l 32,0 q0,13 9.25,22.5t 22.75,9.5t 22.75-9.5t 9.25-22.5l 32,0 q0,13 9.5,22.5t 22.75,9.5t 22.5-9.5t 9.25-22.5l 32,0 q0,13 9.25,22.5t 22.75,9.5l0,32 q-13,0 -22.5,9.25t-9.5,22.5t 9.5,22.75t 22.5,9.5l0,32 q-13.5,0 -22.75,9.25t-9.25,22.5\nt 9.5,22.75t 22.5,9.5l0,32 q-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75t 22.75,9.5l0,32 q-13.5,0 -22.75,9.25t-9.25,22.5t 9.5,22.75t 22.5,9.5zM 448,112q0-6.5 -4.75-11.25t-11.25-4.75l-320,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,320 q0,6.5 4.75,11.25t 11.25,4.75l 320,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-320 zM 403,416\nl-262,0 q-5.5,0 -9.25-3.75t-3.75-9.25l0-262 q0-5.5 3.75-9.25t 9.25-3.75l 262,0 q 5.5,0 9.25,3.75t 3.75,9.25l0,262 q0,5.5 -3.75,9.25t-9.25,3.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bus\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448l0,32 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-32 l-320,0 l0,32 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-32 q-13,0 -22.5-9.5t-9.5-22.5l0-384 q0-13.5 9.5-22.75t 22.5-9.25l 448,0 q 13,0 22.5,9.25t 9.5,22.75l0,384 q0,13 -9.25,22.5t-22.75,9.5zM 96,384l 32,0 q 13.5,0 22.75-9.5t 9.25-22.75\nt-9.25-22.5t-22.75-9.25l-32,0 q-13,0 -22.5,9.25t-9.5,22.5t 9.5,22.75t 22.5,9.5zM 448,96q0-13.5 -9.5-22.75t-22.5-9.25l-320,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,128 q0,13 9.25,22.5t 22.75,9.5l 320,0 q 13,0 22.5-9.5t 9.5-22.5l0-128 zM 416,320l-32,0 q-13,0 -22.5,9.25t-9.5,22.5t 9.5,22.75t 22.5,9.5l 32,0 q 13.5,0 22.75-9.5\nt 9.25-22.75t-9.25-22.5t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"roadsignleft\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,256l-192,0 l0,224 q0,13 -9.25,22.5t-22.75,9.5t-22.75-9.5t-9.25-22.5l0-224 l-79.5,0 l-0.5,0 l-16,0 q-7.5,0 -11.5-4q-4.5-1.5 -6-3.5l-103-71q-7.5-7.5 -7.5-17.75t 7.5-17.75l 103-71q 2-2 7-3.5q 3.5-3.5 10.5-3.5l 7,0 q 9-0.5 18.5,0l 70.5,0 l0-32 q0-13 9.25-22.5t 22.75-9.5t 22.75,9.5t 9.25,22.5l0,32 l 192,0 q 13,0 22.5,9.5t 9.5,22.5l0,128 \nq0,13.5 -9.5,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"shipping\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480.5,384l-41,0 q 9,15.5 9,32q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25q0-16.5 9-32l-146,0 q 9,15.5 9,32q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25q0-16.5 9-32l-41,0 q-13,0 -22.5-9.25t-9.5-22.75l0-127 q-0.5-14.5 9.5-25l 62.5-62.5q 11-10.5 26.5-9.5l 93.5,0 l0-32 \nq0-13.5 9.5-22.75t 22.5-9.25l 256,0 q 13,0 22.5,9.5t 9.5,22.5l0,256 q0,13 -9.25,22.5t-22.75,9.5zM 192.5,176q0-6.5 -4.75-11.25t-11.25-4.75l-78.5,0 l-65.5,65.5l0,46.5 q0,6.5 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"airplane\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 515.5,384q 2.5,0 4,2.25t 1.5,5.75l0,16 q0,3.5 -1.5,5.75t-4,2.25l-64.5,26l-26,64.5q0,2.5 -2.25,4t-5.75,1.5l-16,0 q-3.5,0 -5.75-1.5t-2.25-4l0-57 l-142-141.5l-50,188q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-7,0 -11.5-4.75t-4.5-11.25l0-302 l-90-89.5q-12.5-13 -28.25-52.25t-6.5-48.75t 48.75,6.25\nt 52,28.75l 90,89.5l 302,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-188,50l 142.5,142l 56,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"alarm2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,480l-32,0 q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l-256,0 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-352 q0-13.5 9.25-22.75t 22.75-9.25l 32,0 l0-32 q0-13.5 9.25-23t 22.75-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,23l0,32 l 128,0 l0-32 q0-13.5 9.5-23t 22.5-9.5l 64,0 \nq 13.5,0 22.75,9.5t 9.25,23l0,32 l 32,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,352 q0,13 -9.25,22.5t-22.75,9.5zM 480,160q0-13.5 -9.25-22.75t-22.75-9.25l-384,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,224 q0,13 9.25,22.5t 22.75,9.5l 384,0 q 13.5,0 22.75-9.5t 9.25-22.5l0-224 zM 432,352l-64,0 q-6.5,0 -11.25-4.75\nt-4.75-11.25l0-0.5 l0-127.5 q0-7 4.75-11.5t 11.25-4.5l 64,0 q 6.5,0 11.25,4.5t 4.75,11.5l0,128 q0,6.5 -4.75,11.25t-11.25,4.75zM 416,224l-32,0 l0,96 l 32,0 l0-96 zM 320,272q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,32 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-0.5 l0-63.5 \nq0-6.5 4.75-11.25t 11.25-4.75l 16,0 l0-32 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.5t 4.75-11.25t 11.25-4.5l 32,0 q 6.5,0 11.25,4.5t 4.75,11.5l0,0 l0,64 zM 208,320q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 208,256q-6.5,0 -11.25-4.75t-4.75-11.5t 4.75-11.25t 11.25-4.5\nt 11.25,4.5t 4.75,11.25t-4.75,11.5t-11.25,4.75zM 144,352q-6.5,0 -11.25-4.75t-4.75-11.25l0-48 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-7 4.75-11.5t 11.25-4.5t 11.25,4.5t 4.75,11.5l0,48 l 32,0 l0-48 q0-7 4.75-11.5t 11.25-4.5t 11.25,4.5t 4.75,11.5l0,128 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"wave\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,263.5q-26.5-9 -59-7.5t-62.75,10.25t-65,19.5t-66,20.25t-66.25,12.75t-65-2.75q-27-5.5 -45.5-17.75t-18.5-26.25t 19-21t 45-2q 21.5,9.5 51.5,8t 60.5-10.25t 66.5-19.5t 69.5-20.5t 69.5-13t 66.5,2.75q 27,5.5 45.5,17.75t 18.5,25.75q0,15 -19.75,23t-44.25,0.5zM 448,71.5q-26.5-9 -59-7.5\nt-62.75,10.25t-65,19.5t-66,20.25t-66.25,12.75t-65-2.75q-27-5.5 -45.5-17.75t-18.5-26.25t 19-21t 45-2q 21.5,9.5 51.5,8t 60.5-10.25t 66.5-19.5t 69.5-20.5t 69.5-13t 66.5,2.75q 27,5.5 45.5,17.75t 18.5,25.75q0,15 -19.75,23t-44.25,0.5zM 64,441q 21.5,9.5 51.5,8t 60.5-10.25t 66.5-19.5t 69.5-20.5t 69.5-13\nt 66.5,2.75q 27,5.5 45.5,17.75t 18.5,25.75q0,15 -19.75,23t-44.25,0.5q-26.5-9 -59-7.5t-62.75,10.25t-65,19.5t-66,20.25t-66.25,12.75t-65-2.75q-27-5.5 -45.5-17.75t-18.5-26.25t 19-21t 45-2z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"wave2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512q-26,0 -46.5-13t-33.5-35q-18-16 -40-16t-40,16q-12.5,21.5 -37,34.75t-51,13.25t-51-13.25t-37-34.75q-18-16 -40-16t-40,16q-9.5,17 -32,30l0-50 q 30.5-28 72-28q 26.5,0 51,13.25t 37,34.75q 18,16 40,16t 40-16q 12.5-21.5 37-34.75t 51-13.25t 51,13.25t 37,34.75q 1,1 4.25,4\nt 4.25,3.75t 3.5,2.75t 4.25,2.5t 4.25,1.5t 5.25,1.25t 6.25,0.25q 12.5,0 26.25-4.5t 21.75-11.5l 16,0 l0,30 q-31,18 -64,18zM 368,336q-18-16 -40-16t-40,16q-12.5,21.5 -37,34.75t-51,13.25t-51-13.25t-37-34.75q-18-16 -40-16t-40,16q-9.5,17 -32,30l0-50 q 30.5-28 72-28q 26.5,0 51,13.25t 37,34.75\nq 18,16 40,16t 40-16q 12.5-21.5 37-34.75t 51-13.25t 51,13.25t 37,34.75q 1.5,1 4.5,3.75t 4,3.75t 3.5,3t 4.25,2.5t 4.25,1.5t 5.25,1.25t 6.25,0.25q 12.5,0 26.25-4.5t 21.75-11.5l 16,0 l0,30 q-31,18 -64,18q-26,0 -46.5-12.75t-33.5-35.25zM 368,208q-18-16 -40-16t-40,16q-12.5,21.5 -37,34.75t-51,13.25\nt-51-13.25t-37-34.75q-18-16 -40-16t-40,16q-9.5,17 -32,30l0-50 q 30.5-28 72-28q 26.5,0 51,13.25t 37,34.75q 18,16 40,16t 40-16q 12.5-21.5 37-34.75t 51-13.25t 51,13.25t 37,34.75q 1,1 4.25,4t 4.25,3.75t 3.5,2.75t 4.25,2.5t 4.25,1.5t 5.25,1.25t 6.25,0.25q 12.5,0 26.25-4.5t 21.75-11.5l 16,0 l0,30 \nq-31,18 -64,18q-26,0 -46.5-12.75t-33.5-35.25zM 368,80q-18-16 -40-16t-40,16q-12.5,21.5 -37,34.75t-51,13.25t-51-13.25t-37-34.75q-18-16 -40-16t-40,16q-9.5,17 -32,30l0-50 q 30.5-28 72-28q 26.5,0 51,13.25t 37,34.75q 18,16 40,16t 40-16q 12.5-21.5 37-34.75t 51-13.25t 51,13.25\nt 37,34.75q 1.5,1 4.5,3.75t 4,3.75t 3.5,3t 4.25,2.5t 4.25,1.5t 5.25,1.25t 6.25,0.25q 12.5,0 26.25-4.5t 21.75-11.5l 16,0 l0,30 q-31,18 -64,18q-26,0 -46.5-12.75t-33.5-35.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"navigation\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512q-20,0 -48-32l-80-64q-5-3 -17.5-11t-18-11.25t-14-6.5t-14.5-3.25q-8,0 -17.5,4.25t-25.75,14.75t-20.75,13l-80,64q-1.5,1.5 -7,6.75t-7.75,7.5t-7.5,6.5t-8.75,6t-8.25,3.5t-8.75,1.75q-13.5,0 -22.75-9.5t-9.25-22.5l 192-448q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5\nl 192,448q0,13.5 -9.5,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"automobile\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,407l0,41 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-32 l-320,0 l0,32 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-41 q-14.5-8.5 -23.25-23t-8.75-32l0-96 q0-14 11.5-32.25t 29-34.75l 23.5-93q0-26.5 18.75-45.25t 45.25-18.75l 256,0 q 26.5,0 45.25,18.75t 18.75,45.25l 23.5,93\nq 17.5,16.5 29,34.75t 11.5,32.25l0,96 q0,17.5 -8.75,32t-23.25,23zM 64,320.25q0,13.25 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5t-22.5,9.5t-9.25,22.75zM 400,128q0-13 -9.25-22.5t-22.75-9.5l-224,0 q-13,0 -22.5,9.5t-9.5,22.5l-16,64q0,13.5 9.25,22.75t 22.75,9.25l 256,0 \nq 13.5,0 22.75-9.25t 9.25-22.75zM 416.25,288q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"wine\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,316l0,132 l 64,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-192,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 64,0 l0-132 q-55.5-13.5 -91.75-66.25t-36.25-121.75q0-73 41-128l 238,0 q 41,55 41,128q0,69 -36.5,121.75t-91.5,66.25zM 358,32l-204,0 q-26,43 -26,96\nq0,33.5 10.5,64l 234.5,0 q 11-30.5 11-64q0-53 -26-96z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"scope2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 288,461.5q 67-10.5 115-58.5t 58.5-115l-65.5,0 q-9,40.5 -38.5,69.75t-69.5,38.75\nl0,65 zM 288,224l 58.5,0 q-7.5-20.5 -22.75-35.75t-35.75-22.75l0,58.5 zM 346.5,288l-58.5,0 l0,58 q 20.5-7 35.75-22.5t 22.75-35.5zM 224,288l-58.5,0 q 7.5,20 22.75,35.5t 35.75,22.5l0-58 zM 224,461.5l0-65 q-40.5-9.5 -69.75-38.75t-38.25-69.75l-65.5,0 q 10.5,67 58.5,115t 115,58.5zM 224,50.5q-67,10.5 -115,58.5t-58.5,115l 65.5,0 \nq 9-40.5 38.25-70t 69.75-38.5l0-65 zM 165.5,224l 58.5,0 l0-58.5 q-20.5,7.5 -35.75,22.75t-22.75,35.75zM 288,50.5l0,65 q 40,9 69.5,38.5t 38.5,70l 65.5,0 q-10.5-67 -58.5-115t-115-58.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"martini\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,288l0,160 l 64,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-192,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 64,0 l0-160 l-219.5-239.5q-4.5-8 -4.5-16q0-13.5 9.5-22.75t 22.5-9.25l 448,0 q 13,0 22.5,9.25t 9.5,22.75q0,8 -4.5,16zM 32,32.5l 119.5,127.5l 43.5,0 l 3.5-6.5l-36.5-65.5q-3-6 -1.25-12.25t 7.5-9.5\nt 12-1.5t 9.75,7.25l 33,59.5q 9-3.5 17-3.5q 15.5,0 27.75,9t 17.25,23l 75.5,0 l 119.5-127.5l-448,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"coffee\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 339,416l-166,0 q-23.5-16.5 -44.5-38q-17,6 -32.5,6q-40,0 -68-28.25t-28-67.75q0-31.5 18.5-56.25t 47.5-34.75q 0.5-3 0.5-5l 379,0 q 2.5,17.5 2.5,64q0,22.5 -10.5,47t-27.5,45.5t-34.75,37.75t-36.25,29.75zM 64,256q0-7.5 0.5-23.5q-15,8.5 -23.75,23.25t-8.75,32.25q0,26.5 18.75,45.25t 45.25,18.75q 2,0 8-1\nq-40-50.5 -40-95zM 288,96q0,11.5 4.5,27.5q 19.5,14 25.5,36.5l-32,0 q-1-7 -2.5-12q-27.5-19 -27.5-52q0-26.5 18.75-45.25t 45.25-18.75q 7.5,0 16,2q-21,5.5 -34.5,22.5t-13.5,39.5zM 192,64q0,11.5 4.5,27.5q 27.5,19.5 27.5,52.5q0,7 -2.5,16l-31.5,0 q 2-9 2-16q0-12 -4.5-28q-27.5-19 -27.5-52q0-26.5 18.75-45.25\nt 45.25-18.75q 7.5,0 16,2q-21,5.5 -34.5,22.5t-13.5,39.5zM 384,512l-256,0 q-27.5,0 -58-10.75t-50.25-26t-19.75-27.25l 512,0 q0,12 -19.75,27.25t-50.25,26t-58,10.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bag\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-32,0 l0-384 l 32,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,320 q0,13 -9.25,22.5t-22.75,9.5zM 416,512l-320,0 l0-384 l 32,0 l0-32 q0-40 28-68.25t 68-28.25l 64,0 q 40,0 68,28.25t 28,68.25l0,32 l 32,0 l0,384 zM 320,96q0-13.5 -9.5-22.75t-22.5-9.25l-64,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,32 l 128,0 l0-32 zM0,480l0-320 \nq0-13.5 9.25-22.75t 22.75-9.25l 32,0 l0,384 l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"alarm\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502,160l-9,0 q-19.5-48 -56.25-84.75t-84.75-55.75l0-9.5 q 7.5-10 32-10q 53,0 90.5,37.5t 37.5,90.5q0,24.5 -10,32zM 480,288q0,77 -47.5,138l 47.5,65.5l-20.5,20.5l-65.5-47.5q-61,47.5 -138,47.5t-138-47.5l-65.5,47.5l-20.5-20.5l 47.5-65.5q-47.5-61 -47.5-138q0-45.5 17.75-87t 47.75-71.5t 71.5-47.75\nt 87-17.75t 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87zM 256,128q-43.5,0 -80.25,21.5t-58.25,58.25t-21.5,80.25t 21.5,80.25t 58.25,58.25t 80.25,21.5t 80.25-21.5t 58.25-58.25t 21.5-80.25t-21.5-80.25t-58.25-58.25t-80.25-21.5zM 336,224l-49,71.5q-2.5,10.5 -11.25,17.5t-19.75,7t-19.5-6.5\nt-11-17l-65.5-88.5l0-16 l 16,0 l 80.5,59.5l 63.5-43.5l0,0 l 16,0 l0,16 l0,0 zM 19,160l-9,0 q-10-7.5 -10-32q0-53 37.5-90.5t 90.5-37.5q 24.5,0 32,10l0,9.5 q-48,19.5 -84.75,56t-56.25,84.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"flag2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,32.5l-128,127.5l 128,128l0,0 q0,13.5 -9.5,22.75t-22.5,9.25l0,0 l-288,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-256 q0-13 9.25-22.25t 22.75-9.25l 288,0 l0,0 q 13,0 22.5,9.25t 9.5,22.25l0,0.5 zM 192,480.25q0,13.25 -9.25,22.5t-22.75,9.25l-128,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 32,0 l0-416 \nq0-13 9.5-22.25t 22.75-9.25t 22.5,9.25t 9.25,22.25l0,416 l 32,0 q 13.5,0 22.75,9.5t 9.25,22.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"storm2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,288l 224,224l-416-192l 128-96l-224-224l 416,192z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"storm\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 408.5,381.5l-56.5-141.5q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,80 l-64,0 l-32-80q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-11,0 -15,11q-33-40 -33-91q0-59.5 42.25-101.75t 101.75-42.25q 44,0 79.75,24t 52.25,63q-34,11 -59,37t-35,60.5q 17.5-26 45.5-41.25\nt 60.5-15.25q 53,0 90.5,37.5t 37.5,90.5q0,46.5 -29.5,81.75t-74,43.75zM 128,320l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,37 q-29-14 -46.5-41t-17.5-60q0-28.5 13.5-53t 36.5-40q 25.5,51.5 78,76.5l0,64.5 zM 160,256l 64,160l-64,0 l0,96 l-64-160l 64,0 l0-96 zM 320,256l 64,160l-64,0 l0,96 l-64-160l 64,0 \nl0-96 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"rain\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,384l-320,0 q-42-4.5 -69-36.5t-27-75.5q0-28.5 13.5-53t 36.5-40q 17,34.5 48.25,58.25t 69.75,31.25q-33-19 -52.5-52t-19.5-72.5q0-59.5 42.25-101.75t 101.75-42.25q 44,0 79.75,24t 52.25,63q-34,11 -59,37t-35,60.5q 17.5-26 45.5-41.25t 60.5-15.25q 53,0 90.5,37.5t 37.5,90.5q0,44 -27.5,80.25\nt-68.5,47.75zM 86.5,416l 61,0 l-31,80q-6,11.5 -17.25,15t-21.25-3.25t-13-19.5t 3-24.75zM 214.5,416l 61,0 l-31,80q-6,11.5 -17.25,15t-21.25-3.25t-13-19.5t 3-24.75zM 342.5,416l 61,0 l-31.5,80q-5.5,11.5 -16.75,15t-21.25-3.25t-13-19.5t 2.5-24.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"snow\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480.5,231.5q-3,6 -8.5,8t-10.5-1.5l-50.5-34l-25,14.5l0,75 l 25,14.5l 50.5-34q 5-3.5 10.5-1.5t 8.5,8t 1.5,12.5t-6.5,10l-34,23l 25,14.5q 11.5,6.5 14.75,19.25t-3.25,24.25t-19.25,15t-24.25-3.5l-16-9.5l0,30 q0,6.5 -4.75,11.25t-11.5,4.75t-11.25-4.75t-4.5-11.25l0-48.5 l-35-20l-61.5,34.5l0,44.5 l 40.5,23.5\nq 5.5,3.5 7.25,10t-1.5,12t-9.5,7.25t-11.75-1.25l-25-15l0,17 q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l0-17 l-24.5,15q-5.5,3 -11.75,1.25t-9.5-7.25t-1.5-12t 7.25-10l 40-23.5l0-44.5 l-61-34.5l-35,20l0,48.5 q0,6.5 -4.5,11.25t-11.25,4.75t-11.5-4.75t-4.75-11.25l0-30 l-16,9.5q-11.5,7 -24.25,3.5\nt-19.25-15t-3.25-24.25t 14.75-19.25l 25-14.5l-34-23q-5-3.5 -6.5-10t 1.5-12.5t 8.5-8t 10.5,1.5l 50.5,34l 25-14.5l0-75 l-25-14.5l-50.5,34q-5,3.5 -10.5,1.5t-8.5-8t-1.5-12.5t 6.5-10l 34-23l-25-14.5q-11.5-6.5 -14.75-19.25t 3.25-24.25t 19.25-15t 24.25,3.5l 16,9.5l0-30 q0-6.5 4.75-11.25t 11.5-4.75t 11.25,4.75t 4.5,11.25l0,48.5 \nl 35,20l 61-34.5l0-44.5 l-40-23.5q-5.5-3.5 -7.25-10t 1.5-12t 9.5-7.25t 11.75,1.25l 24.5,15l0-17 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,17 l 25-15q 5.5-3 11.75-1.25t 9.5,7.5t 1.5,12t-7.25,9.75l-40.5,23.5l0,44.5 l 61.5,34.5l 35-20l0-48.5 q0-6.5 4.5-11.25t 11.25-4.75t 11.5,4.75t 4.75,11.25l0,30 l 16-9.5q 11.5-7 24.25-3.5\nt 19.25,15t 3.25,24.25t-14.75,19.25l-25,14.5l 34,23q 5,3.5 6.5,10t-1.5,12.5zM 322,224l-64-32l-63.5,32l0,64 l 63.5,32l 64-32l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"watertap\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,384l-48,0 l-80,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25q0-32 -64-32l-32,0 q0,13.5 -9.25,22.75t-22.75,9.25l-32,0 q-13,0 -22.5-9.25t-9.5-22.75l-96,0 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-128 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l 96,0 q0-13.5 9.5-22.75\nt 22.5-9.25l0-35 q-13-4.5 -21.75-15.75t-9.75-25.25q-17,5 -36.5,8.5t-28,3.5q-13,0 -22.5-9.25t-9.5-22.75t 9.5-22.75t 22.5-9.25q 10.5,0 35,4.75t 41,11.75q 14.5-16.5 36-16.5t 36,16.5q 16.5-7 41-11.75t 35-4.75q 13.5,0 22.75,9.25t 9.25,22.75t-9.25,22.75t-22.75,9.25q-8.5,0 -28-3.5t-36.5-8.5q-1,14 -9.75,25.25\nt-21.75,15.75l0,35 q 13.5,0 22.75,9.25t 9.25,22.75l 32,0 q 53.5,0 96.75,19t 69.25,55.75t 26,85.25q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 480,464q0,20 -14,34t-34,14t-34-14t-14-34q0-12 11.25-31.75t 23-34t 13.75-14.25q 3,0 14.75,14.25t 22.5,34t 10.75,31.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cactus\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320l-64,0 l0,176 q0,6.5 -4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-112 l-64,0 q-39.5,0 -67.75-28t-28.25-68l0-80 q0-20 14-34t 34-14t 34,14t 14,34l0,80 l 64,0 l0-238 q0-21 14-35.5t 34-14.5t 34,14.5t 14,35.5l0,174 l 64,0 l0-112 q0-20 14-34t 34-14t 34,14t 14,34l0,112 \nq0,39.5 -28,67.75t-68,28.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"clock2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 384,224l-96,0 l0-128 q0-13.5 -9.5-22.75t-22.75-9.25t-22.5,9.25t-9.25,22.75l0,160 q0,13.5 9.25,22.75t 22.75,9.25l 128,0 \nq 13,0 22.5-9.5t 9.5-22.75t-9.25-22.5t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"trafficlight\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,192q 13,0 22.5,9.25t 9.5,22.75l-96,64l0,64 l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l-96,64l0,32 q0,13 -9.25,22.5t-22.75,9.5l-128,0 q-13,0 -22.5-9.5t-9.5-22.5l0-32 l-96-64q0-13.5 9.5-22.75t 22.5-9.25l 64,0 l0-64 l-96-64q0-13.5 9.5-22.75t 22.5-9.25l 64,0 l0-64 l-96-64q0-13.5 9.5-22.75t 22.5-9.25\nl 64,0 q0-13.5 9.5-22.75t 22.5-9.25l 128,0 q 13.5,0 22.75,9.25t 9.25,22.75l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l-96,64l0,64 l 64,0 zM 256,480q 26.5,0 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75zM 256,32q-26.5,0 -45.25,18.75t-18.75,45.25\nt 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75zM 256,192q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cigarette\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,256q0,18 4.5,41.5q 0.5,2.5 8.25,17.75t 13.5,36.75t 5.75,48l-32-32q-4-32.5 -16-48q-11.5-12 -13.75-23.75t-2.25-40.25q0-40 18.75-68t 45.25-28q 7.5,0 16,3.5q-21,8 -34.5,33.75t-13.5,58.75zM 368,102.5q0,19 4.5,44.5q 27.5,30.5 27.5,83.5l0,73.5 l-32-32q 0.5-3.5 0.5-11.5t-0.25-17.75t-0.25-12.25\nq0-38.5 -4.5-44.5q-27.5-31 -27.5-83.5q0-42.5 18.75-72.5t 45.25-30q 7,0 16,3.5q-21,9 -34.5,36.25t-13.5,62.75zM 507,484.5l-22.5,22.5q-5,5 -11.75,5t-11.25-5l-329-328.5q-4.5-4.5 -4.5-11.25t 4.5-11.75l 23-23q 5-4.5 11.75-4.5t 11.25,4.5l 329,329q 4.5,4.5 4.5,11.25t-5,11.75zM 128,112l-16,16q-1.5,1.5 -3.75,4.25\nt-3.75,4.5t-3.5,3.25t-4,1.25t-3.5-1.75l-88.5-89q-5-4.5 -5-11.25t 5-11.75l 22.5-23q 5-4.5 11.75-4.5t 11.25,4.5l 89,89q 1.5,1.5 1.75,3.5t-1.25,4t-3.25,3.5t-4.5,3.75t-4.25,3.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"wheel\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 66.5,225q-2.5,17 -2.5,31q0,71 45.75,124.25t 114.25,64.75l0-96 q-42-8.5 -69-34.25t-27-58.75q0-5 1-10.5\nq-39-7.5 -62.5-20.5zM 256,64q-54,0 -99.25,27.75t-70.25,73.75q 59.5,26.5 169.5,26.5t 169.5-26.5q-25-46 -70.25-73.75t-99.25-27.75zM 383,245.5q 1,5.5 1,10.5q0,33 -27,59t-69,34l0,96 q 68.5-11.5 114.25-64.75t 45.75-124.25q0-14 -2.5-31q-23,13 -62.5,20.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"checkin2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 414,382.5q-7,10 -14,17.5l-144.5,112l-143.5-112q-7-7.5 -14-17.5q-31-31 -48.5-72t-17.5-86.5t 17.75-87t 47.75-71.5t 71.5-47.75t 87-17.75t 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87t-17.5,86.5t-48.5,72zM 256,64q-43.5,0 -80.25,21.5t-58.25,58.25t-21.5,80.25t 21.5,80.25t 58.25,58\nt 80.25,21.25t 80.25-21.25t 58.25-58t 21.5-80.25t-21.5-80.25t-58.25-58.25t-80.25-21.5zM 255.75,320q-39.75,0 -67.75-28.25t-28-68t 28-67.75t 67.75-28t 68,28t 28.25,67.75t-28.25,68t-68,28.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"place2delete\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 414,382.5q-7,10 -14,17.5l-144.5,112l-143.5-112q-7-7.5 -14-17.5q-31-31 -48.5-72t-17.5-86.5t 17.75-87t 47.75-71.5t 71.5-47.75t 87-17.75t 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87t-17.5,86.5t-48.5,72zM 256,64q-43.5,0 -80.25,21.5t-58.25,58.25t-21.5,80.25t 21.5,80.25t 58.25,58\nt 80.25,21.25t 80.25-21.25t 58.25-58t 21.5-80.25t-21.5-80.25t-58.25-58.25t-80.25-21.5zM 352,256l-192,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 192,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"place2add\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 414,382.5q-7,10.5 -14,17.5l-144.5,112l-143.5-112q-7-7 -14-17.5q-31-31 -48.5-72t-17.5-86.5t 17.75-87t 47.75-71.5t 71.5-47.75t 87-17.75t 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87t-17.5,86.5t-48.5,72zM 256,64q-43.5,0 -80.25,21.5t-58,58.25t-21.25,80.25t 21.25,80.25t 58,58\nt 80.25,21.25t 80.25-21.25t 58.25-58t 21.5-80.25t-21.5-80.25t-58.25-58.25t-80.25-21.5zM 352,256l-64,0 l0,64 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-64 l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 64,0 l0-64 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,64 l 64,0 \nq 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"place2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 414,382.5q-7,10 -14,17.5l-144.5,112l-143.5-112q-7-7.5 -14-17.5q-31-31 -48.5-72t-17.5-86.5t 17.75-87t 47.75-71.5t 71.5-47.75t 87-17.75t 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87t-17.5,86.5t-48.5,72zM 256,64q-43.5,0 -80.25,21.5t-58.25,58.25t-21.5,80.25t 21.5,80.25t 58.25,58\nt 80.25,21.25t 80.25-21.25t 58.25-58t 21.5-80.25t-21.5-80.25t-58.25-58.25t-80.25-21.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"checkin\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 405,339.5l-136,172.5l-136-172.5q-36.5-38 -49.75-89.25t0-102.5t 49.75-89.75q 28-28.5 63.75-43.25t 72.25-14.75t 72.25,14.75t 63.75,43.25q 36.5,38.5 49.75,89.75t0,102.5t-49.75,89.25zM 269.25,64.5q-53.25,0 -90.75,37.5t-37.5,90.5t 37.5,90.25t 90.75,37.25t 90.75-37.25t 37.5-90.25t-37.5-90.5\nt-90.75-37.5zM 269.5,256q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"placedelete\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 405,339.5l-136,172.5l-136-172.5q-36.5-38 -49.75-89.25t0-102.5t 49.75-89.75q 28-28.5 63.75-43.25t 72.25-14.75t 72.25,14.75t 63.75,43.25q 36.5,38.5 49.75,89.75t0,102.5t-49.75,89.25zM 269.25,64.5q-53.25,0 -90.75,37.5t-37.5,90.5t 37.5,90.25t 90.75,37.25t 90.75-37.25t 37.5-90.25t-37.5-90.5\nt-90.75-37.5zM 333.5,224l-128,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 128,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"placeadd\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 405,339.5l-136,172.5l-136-172.5q-36.5-38 -49.75-89.25t0-102.5t 50-89.5t 86.25-51.75t 99,0t 86.25,51.75t 50,89.5t0,102.5t-49.75,89.25zM 269.25,64.5q-53.25,0 -90.75,37.5t-37.5,90.5t 37.5,90.25t 90.75,37.25t 90.75-37.25t 37.5-90.25t-37.5-90.5t-90.75-37.5zM 333.5,224l-32,0 l0,32 q0,13 -9.5,22.5\nt-22.75,9.5t-22.5-9.5t-9.25-22.5l0-32 l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 32,0 l0-32 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,32 l 32,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"place\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 405,339.5l-136,172.5l-136-172.5q-36.5-38 -49.75-89.25t0-102.5t 50-89.5t 86.25-51.75t 99,0t 86.25,51.75t 50,89.5t0,102.5t-49.75,89.25zM 269.25,64.5q-53.25,0 -90.75,37.5t-37.5,90.5t 37.5,90.25t 90.75,37.25t 90.75-37.25t 37.5-90.25t-37.5-90.5t-90.75-37.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"gpson\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l-35,0 q-10,60 -53.25,103.5t-103.75,53.5l0,35 q0,13 -9.25,22.5t-22.75,9.5t-22.75-9.5t-9.25-22.5l0-35 q-60.5-10 -103.75-53.5t-53.25-103.5l-35,0 q-13,0 -22.5-9.25t-9.5-22.75t 9.25-22.75t 22.75-9.25l 35,0 q 10-60 53.25-103.5t 103.75-53.5l0-35 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,35 \nq 60.5,10 103.75,53.5t 53.25,103.5l 35,0 q 13,0 22.5,9.25t 9.5,22.75t-9.25,22.75t-22.75,9.25zM 256,128q-53,0 -90.5,37.5t-37.5,90.5t 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5t-37.5-90.5t-90.5-37.5zM 256.25,352q-39.75,0 -68-28t-28.25-67.75t 28.25-68t 68-28.25t 67.75,28.25t 28,68t-28,67.75\nt-67.75,28z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"gpsoff\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l-35,0 q-10,60 -53.25,103.5t-103.75,53.5l0,35 q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l0-35 q-60.5-10 -103.75-53.5t-53.25-103.5l-35,0 q-13,0 -22.5-9.25t-9.5-22.75t 9.5-22.75t 22.5-9.25l 35,0 q 10-60 53.25-103.5t 103.75-53.5l0-35 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,35 \nq 60.5,10 103.75,53.5t 53.25,103.5l 35,0 q 13,0 22.5,9.25t 9.5,22.75t-9.5,22.75t-22.5,9.25zM 256,128q-53,0 -90.5,37.5t-37.5,90.5t 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5t-37.5-90.5t-90.5-37.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"port\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,448l-37-37q-35.5,47 -88.75,74t-114.25,27t-114.25-27t-88.75-74l-37,37q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l-29.5,29.5q 22,31.5 54.5,52.25t 71,27.25l0-157 l-32,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 32,0 l0-38 \nq-28.5-10 -46.25-34.5t-17.75-55.5q0-40 28-68t 68-28t 68,28.25t 28,67.75q0,31 -17.75,55.5t-46.25,34.5l0,38 l 32,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-32,0 l0,157 q 38.5-6.5 71-27.25t 54.5-52.25l-29.5-29.5q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 \nq0,6.5 -4.75,11.25t-11.25,4.75zM 255.75,64q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.5t-9.5-22.5t-22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"forest2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,224q0,31 -18,55.5t-46.5,34.5l 0.25,2.25t 0.25,3.75q0,26.5 -18.75,45.25t-45.25,18.75l0,96 q0,13 -9.5,22.5t-22.5,9.5l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-96 q-26.5,0 -45.25-18.75t-18.75-45.25q-26.5,0 -45.25-18.75t-18.75-45.25q0-18 9.25-32.75t 24.25-23.25q-33.5-28.5 -33.5-72q0-40 28-68\nt 68-28q 1.5,0 3.75,0.25t 3.25,0.25q 40.5-32.5 89-32.5q 50.5,0 92,35q 11-3 20-3q 33,0 56.5,23.5t 23.5,56.5q0,30 -20.5,53q 20.5,26 20.5,59z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"roadsign\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 504.5,177.5l-103,71q-2,2 -6.5,3.5q-3.5,4 -11,4l-16,0 l-0.5,0 l-79.5,0 l0,224 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-224 l-192,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-128 q0-13 9.25-22.5t 22.75-9.5l 192,0 l0-32 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,32 l 70.5,0 q 9.5-0.5 18.5,0l 7,0 q 7,0 10.5,3.5q 5,1.5 7,3.5\nl 103,71q 7.5,7.5 7.5,17.75t-7.5,17.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"boat\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,352l-96,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-256 q0-13.5 9.25-22.75t 22.75-9.25l 128,288q0,13 -9.25,22.5t-22.75,9.5zM 384,512l-256,0 q-27.5,0 -58-21.75t-50.25-52t-19.75-54.25l 256,0 l0-368 q0-7 4.75-11.5t 11.25-4.5t 11.25,4.5t 4.75,11.5l0,368 l 224,0 q0,24 -19.75,54.25t-50.25,52t-58,21.75z\nM 192,352l-128,0 q-13,0 -22.5-9.5t-9.5-22.5l 160-288q 13.5,0 22.75,9.25t 9.25,22.75l0,256 q0,13 -9.25,22.5t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"stopwatch\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507,99.5l-23.5,23.5q-5,5 -12,5t-11.5-5l-18-17.5l-26,26q 30,31 46.75,71.5t 16.75,85q0,45.5 -17.5,87t-47.5,71.5t-71.5,47.75t-87,17.75t-87-17.75t-71.5-47.75t-47.75-71.5t-17.75-87q0-44.5 17-85t 47-71.5l-26-26l-18,17.5q-4.5,5 -11.5,5t-12-5l-23.5-23.5q-5-5 -5-12t 5-11.5\nl 71-71q 4.5-5 11.5-5t 12,5l 23.5,23.5q 5,5 5,12t-5,11.5l-17.5,18l 29.5,30q 41-26.5 89.5-33.5l0-2 l-16.5,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-7 4.75-11.5t 11.25-4.5l 96,0 q 6.5,0 11.25,4.5t 4.75,11.5l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,2 q 48,7 89,33.5l 29.5-30l-17.5-18q-5-4.5 -5-11.5t 5-12l 23.5-23.5\nq 5-5 12-5t 11.5,5l 71,71q 5,4.5 5,11.5t-5,12zM 256,128q-43.5,0 -80.25,21.5t-58.25,58.25t-21.5,80.25t 21.5,80.25t 58.25,58.25t 80.25,21.5t 80.25-21.5t 58.25-58.25t 21.5-80.25t-21.5-80.25t-58.25-58.25t-80.25-21.5zM 288,288q0,13.5 -9.25,22.75t-22.75,9.25q-13,0 -22.5-9.25\nt-9.5-22.5t 9.5-22.75t 22.5-9.5q 1.5,0 5,0.5l 75-64l0-0.5 l 16,0 l0,16 l-64.5,75.5q 0.5,3.5 0.5,4.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"umbrella\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 501,224q-10.5-14.5 -28.75-23.25t-40-8.75t-40.25,8.75t-29,23.25l-38,0 q-13-18 -37-26.5l0,218.5 q0,39.5 -28,67.75t-67.75,28.25t-68-28.25t-28.25-67.75q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.5t 9.5,22.75t 22.75,9.5t 22.5-9.5t 9.25-22.5l0-218.5 q-23.5,8.5 -37,26.5l-38,0 q-10.5-14.5 -29-23.25\nt-40.25-8.75t-40,8.75t-28.75,23.25l-11,0 q0-48 29.5-89.75t 80.75-68.25t 113.75-32.5l0-1.5 q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.25t 9.25,22.75l0,1.5 q 62.5,6 113.75,32.5t 80.75,68t 29.5,90l-11,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"forest\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 467.5,411.5q-6.5,3.5 -15.5,4l-0.5,0.5l-128,0 l0,64 q0,13 -9.25,22.5t-22.75,9.5l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 l-128,0 q0-0.5 -0.5-0.5q-9-0.5 -15.5-4q-11.5-6.5 -15-19t 3.5-24l 74.5-112.5l-15,0 l0-1 q-9.5,0.5 -16-3.5q-11.5-6.5 -15-19t 3.5-24l 160-192.5q0-0.5 2-2.5l 2.75-2.75t 2.75-2.5t 3.25-2.5t 3.5-2.25t 4-2t 4.25-1t 5-0.5t 5,0.5\nt 4.25,1t 4,2t 3.5,2.25t 3.25,2.5t 2.75,2.5l 2.75,2.75l 2.5,2.5l 160,192.5q 6.5,11.5 3,24t-15,19q-6.5,4 -16,3.5l0,1 l-15,0 l 75,112.5q 6.5,11.5 3,24t-15,19z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"gasstation\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,64l-32,0 q-13,0 -22.5,9.5t-9.5,22.5l0,224 q0,26.5 -18.75,45.25t-45.25,18.75l-32,0 l0,64 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-32,0 l-224,0 l-32,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l0-415.5 q0-13.5 9.25-22.75t 22.75-9.25l 224,0 q 13,0 22.5,9.25t 9.5,22.75l0,287.5 \nq 13.5,0 22.75-9.25t 9.25-22.75l0-224 q0-26.5 18.75-45t 45.25-18.5l 32,0 l 32,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.5t-22.75,9.25zM 288,96q0-13 -9.25-22.5t-22.75-9.5l-160,0 q-13,0 -22.5,9.5t-9.5,22.5l0,64 q0,13.5 9.25,22.75t 22.75,9.25l 160,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tent\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-128,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-128 q0-13.5 -9.5-22.75t-22.5-9.25l-64,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,128 q0,13 -9.5,22.5t-22.5,9.5l-128.5,0 q-11.5,0 -21.5-9.75t-10-21.75q0-9 4.5-16.5l 212.5-298l-84.5-118q-7-11.5 -3.5-24.25t 15-19.25t 24.25-3.25t 19.25,14.75l 68.5,95.5l 68-96\nq 6.5-11 19.5-14.5t 24.25,3t 14.75,19.25t-3,24.25l-84.5,118.5l 212.5,298.5q 4.5,8 4.5,15.5q0,12 -9.75,22t-22.25,10z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"knife\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 495.75,495.25q-12.75,12.75 -29.25,16t-35.25-4.75t-36.25-27l-112-131.5l-15,14q-6.5,6 -15.5,6t-15-6q-31.5-28.5 -60.25-58.75t-52.25-58.5t-43.75-55.75t-35.25-51.75t-25.5-46t-15.5-38.5t-4.5-28.75t 6.75-17.75t 15.5-5.75t 15.25,5.5l 186,171.5l 255.5,217q 19,17 27.25,35.75t 5,35.5t-16,29.5z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"spoon\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 497.25,495.25q-12.75,12.75 -29.25,16t-35.25-4.75t-36.25-27l-179-209.5q-23,14.5 -47.75,17.75t-51.5-6.75t-51.75-35q-31-31 -48.75-72.75t-15.75-82t 26.25-64.25t 64.5-26t 82,15.75t 72.75,48.75q 24.5,24.5 34.75,51.5t 6.75,51.5t-18,48l 210,178q 19,17 27.25,36t 5,35.5t-16,29.25z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"scope\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 288,66.5l0,62.5 q0,13 -9.25,22.5t-22.75,9.5t-22.75-9.5t-9.25-22.5l0-62.5 \nq-60,10 -103.5,53.5t-53.5,104l 61,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-61,0 q 10,60 53.5,103.5t 103.5,53.5l0-61 q0-13 9.25-22.25t 22.75-9.25t 22.75,9.25t 9.25,22.25l0,61 q 60-10 103.5-53.5t 53.5-103.5l-61.5,0 q-13,0 -22.25-9.5t-9.25-22.75t 9.25-22.5t 22.25-9.25l 61.5,0 \nq-10-60.5 -53.5-104t-103.5-53.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"truck\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,446.5l0,33.5 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-32 l-320,0 l0,32 q0,13 -9.25,22.5t-22.75,9.5t-22.75-9.5t-9.25-22.5l0-33.5 q-17-2.5 -24.5-13.5t-7.5-33l0-320 q0-7 4.75-11.5t 11.25-4.5t 11.25,4.5t 4.75,11.5l0,167 q 16-23.5 32-38l0-177 q0-13.5 9.5-22.75t 22.5-9.25l 320,0 q 13,0 22.5,9.25t 9.5,22.75l0,177 \nq 16,14.5 32,38l0-167 q0-7 4.75-11.5t 11.25-4.5t 11.25,4.5t 4.75,11.5l0,320 q0,22 -7.5,33t-24.5,13.5zM 160,352q0,13 9.25,22.5t 22.75,9.5l 128,0 q 13,0 22.5-9.5t 9.5-22.5l0-64 q0-13.5 -9.5-22.75t-22.5-9.25l-128,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,64 zM 95.75,320q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75\nt 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 384,96q0-13.5 -9.5-22.75t-22.5-9.25l-192,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,64 q0,13 9.25,22.5t 22.75,9.5l 192,0 q 13,0 22.5-9.5t 9.5-22.5l0-64 zM 415.75,320q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"clock\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.75t 99.5-20.5t 99.5,20.5t 81.75,54.75t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,64q-52,0 -96.25,25.5t-70,69.75t-25.75,96.5t 25.75,96.5t 70,70\nt 96.25,25.75t 96.25-25.75t 70-70t 25.75-96.5t-25.75-96.5t-70-69.75t-96.25-25.5zM 352,176l-65.5,88.5q-2.5,10 -11,16.75t-19.5,6.75q-10.5,0 -19-6.5t-11.5-16l-97.5-121.5l0-0.5 l0-15.5 l 16,0 l 112.5,90.5l 79.5-58.5l0,0 l 16,0 l0,16 l0,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"calendar\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-384 q0-13.5 9.25-22.75t 22.75-9.25l 32,0 l0,64 q0,32 17.75,48t 46.25,16q 28,0 46-16.5t 18-47.5l0-64 l 128,0 l0,64 q0,32 17.75,48t 46.25,16t 46.25-16t 17.75-48l0-64 l 32,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,384 q0,13 -9.25,22.5t-22.75,9.5zM 96,384l 64,0 \nq 26.5,0 45.25-18.75t 18.75-45.25l0-32 q0-26.5 -18.75-45.25t-45.25-18.75l-64,0 q-26.5,0 -45.25,18.75t-18.75,45.25q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,32 q0,13 -9.25,22.5t-22.75,9.5l-64,0 q-26.5,0 -45.25,18.75\nt-18.75,45.25l0,48 q0,6.5 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-136,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-24 q0-13.5 9.25-22.75t 22.75-9.25zM 480.5,288q0-26.5 -19-45.25t-45.5-18.75l-64,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,32 q0,26.5 18.75,45.25t 45.25,18.75l 64,0 \nq 17.5,0 32-8.5l0,40.5 q0,13 -9.25,22.5t-22.75,9.5l-64,0 q-13,0 -22.5-9.5t-9.5-22.5q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25q0,26.5 18.75,45.25t 45.25,18.75l 64,0 q 26.5,0 45.5-18.75t 19-45.25l0-128 zM 416,352l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-32 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13.5,0 22.75,9.25\nt 9.25,22.75l0,32 q0,13 -9.25,22.5t-22.75,9.5zM 384.25,160q-13.25,0 -22.75-9.5t-9.5-22.5l0-96 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,96 q0,13 -9.25,22.5t-22.5,9.5zM 128,160q-13.5,0 -22.75-9.5t-9.25-22.5l0-96 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,96 q0,13 -9.25,22.5\nt-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"temperature2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448.5,512l-384.5,0 q-13,0 -22.5-9.5t-9.5-22.5l0-448 q0-13.5 9.5-22.75t 22.5-9.25l 384.5,0 q 13,0 22.5,9.25t 9.5,22.75l0,448 q0,13 -9.5,22.5t-22.5,9.5zM 176,64l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 176,128l-64,0 q-6.5,0 -11.25,4.75\nt-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 176,192l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 176,256l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 \nq 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 384,281l0-153 q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25l0,153 q-32,28.5 -32,71q0,39.5 28.25,67.75t 68,28.25t 68-28.25t 28.25-67.75q0-42 -32.5-71zM 320,416q-26.5,0 -45.25-18.75t-18.75-45.25q0-17.5 8.75-32t 23.25-23l0-105 \nl 64,0 l0,105 q 15,8.5 23.5,23t 8.5,32q0,26.5 -18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"temperature\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-43.5,0 -80.25-21.5t-58.25-58.25t-21.5-80.25q0-38.5 17.25-72t 46.75-56l0-125.5 q0-40.5 28-69.5t 67.75-29t 68,29t 28.25,69.5l0,125.5 q 29.5,22.5 46.75,56t 17.25,72q0,43.5 -21.5,80.25t-58.25,58.25t-80.25,21.5zM 288,261.5l0-165.5 q0-13.5 -9.5-22.75t-22.75-9.25t-22.5,9.25t-9.25,22.75l0,165.5 \nq-28.5,10 -46.25,34.75t-17.75,55.75q0,40 28,68t 67.75,28t 68-28t 28.25-68q0-31 -17.75-55.75t-46.25-34.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"placeios\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-12.75t-93.25-35t-34.25-48.25q0-24 29.5-45t 80.75-34.25t 113.75-15.75l0-33 l 64,0 l0,33 q 62.5,2.5 113.75,15.75t 80.75,34.25t 29.5,45q0,26 -34.25,48.25t-93.25,35t-128.5,12.75zM 288,352.5l0,31.5 q0,16.5 -10,40.25t-22,23.75t-22-23.75t-10-40.25l0-31.5 q-82,3.5 -137,21.5\nt-55,42q0,17.5 30,32.25t 81.5,23.25t 112.5,8.5t 112.5-8.5t 81.5-23.25t 30-32.25q0-24 -55-42t-137-21.5zM 256,256q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5t-37.5,90.5t-90.5,37.5zM 268,39q-7-6.5 -21.5-7.25t-32.25,5.5t-30.25,18.75t-18.75,30.25t-5.5,32.5t 7.75,21.25\nq 16.5,17 66.75-33.5t 33.75-67.5zM 348.5,147q-6-6 -18.5-1.75t-24.25,16.25t-16,24.5t 1.5,18.5t 18.5,1.75t 24.5-16t 16-24.5t-1.75-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"flag\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,224l-288,160l0,0 l0,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-319.5 q0-13.5 9.25-22.75t 22.75-9.25l 288,159.5q 1,0.5 2.5,1.5q 7,3 10.75,5.25t 8.75,6t 7.5,8.75t 2.5,10.5q0,6.5 -2.5,11.5t-8,9t-9.75,6.25t-11.75,5.25zM 192,480.25q0,13.25 -9.25,22.5t-22.75,9.25l-128,0 q-13.5,0 -22.75-9.25\nt-9.25-22.5t 9.25-22.75t 22.75-9.5l 32,0 l0-415.5 q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.25t 9.25,22.75l0,415.5 l 32,0 q 13.5,0 22.75,9.5t 9.25,22.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pin\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,400.5l 64,111.5l-112-64l-0.5-3l-84-83.5l-76,75.5q-21,21 -47.5-5l0-89.5 l-129-134l-6.5,6q-9.5,10 -23.25,10t-23.5-9.75t-9.75-23.5t 9.5-23.75l 158-157.5q 10-9.5 23.75-9.5t 23.5,9.5t 9.75,23.25t-10,23.75l-6.5,6.5l 134.5,129l 89.5,0.5q 26,26 4.5,47l-75.5,75.5l 84,84z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"maps\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 352,512l0-192 l 160-64l0,192 zM 352,64l 160-64l0,224 l-160,64l0-224 zM 192,256l 128,64l0,192 l-128-64l0-192 zM 192,0l 128,64l0,224 l-128-64l0-224 zM0,320l 160-64l0,192 l-160,64l0-192 zM0,64l 160-64l0,224 l-160,64l0-224 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"water\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 404.75,453.75q-36.75,38.25 -86.25,51.75t-99,0t-86.25-51.75t-50-89.5t0-102.25t 49.75-89.5l 136-172.5l 136,172.5q 36.5,38.5 49.75,89.5t0,102.25t-50,89.5zM 178.5,417q 4,4.5 5.75,6.75t 7.75,5.25t 13,3q 15.5,0 23.25-8.75t 7.75-20.25q0-14 -11.5-40.25t-23.25-56.25t-11.75-53\nq0-14 12-37.25t 23.5-39.75l 12-16.5l-16,0 l-42.5,48.5q-37.5,46.5 -37.5,104.25t 37.5,104.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"moon\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 257.5,512q-63.5,0 -119.75-29.75t-92.75-81.25t-45-113q 28.5,43 76.5,69.5t 101,26.5q 56.5,0 104.25-27.75t 75.25-75.75t 27.5-104.5q0-53 -26.75-100.25t-69.75-75.75q 61.5,8.5 112.75,44.5t 81.25,92t 30,119.5q0,52 -20.25,99.5t-54.25,81.75t-81.25,54.5t-98.75,20.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sun\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,187.5q-48.5,31 -48,68.5q 1,39 48,68.5q-127.5,6 -68.5,119q-113.5-59 -119,68.5q-31-48.5 -68.5-48q-38.5,1 -68.5,48q-5.5-127.5 -119-68.5q 59-113 -68.5-119q 48.5-31 48-68.5q-1-38.5 -48-68.5q 127.5-5.5 68.5-118.5q 113.5,58.5 119-68.5q 30,46.5 68.5,47.5q 37.5,1 68.5-47.5q 5.5,127 119,68.5\nq-59,113 68.5,118.5zM 256,96q-43.5,0 -80.5,21.5t-58.25,58.25t-21.25,80.25t 21.25,80.5t 58.25,58.25t 80.5,21.25t 80.5-21.25t 58.25-58.25t 21.25-80.5t-21.25-80.25t-58.25-58.25t-80.5-21.5zM 256,384q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5t-37.5,90.5t-90.5,37.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"canvasrulers\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,512l-320,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 304,0 l0-304 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,320 q0,6.5 -4.75,11.25t-11.25,4.75zM 480,112q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16 l-32,0 l0-48 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75\nt-4.75,11.25l0,48 l-32,0 l0-16 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16 l-32,0 l0-48 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,48 l-32,0 l0-16 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16 l-16,0 l-16,0 l0-48 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,48 \nl-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 48,0 l0,16 l0,16 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 16,0 l0,32 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 48,0 l0,32 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 16,0 l0,32 l-48,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 48,0 l0,32 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 16,0 l0,32 l-96,0 q-13,0 -22.5-9.25t-9.5-22.75l0-448 q0-13 9.5-22.5t 22.5-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.5l0,96 l-32,0 l0-16 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"marker\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 511.5,512l-72.5,0 l-19.5-19.5l 41.5-41l 47,46.5q 5.5,5.5 3.5,14zM 272.5,448l 144-144l 34,110l-68,68zM 16,208q-16-16.5 -16-40.25t 16.5-40.25l 79.5-79.5q 16.5-16 40.25-16.25t 39.75,16.25l 224.5,224l-160,160zM 279,310.75q 9-9.25 9-22t-9-21.75l-130.5-130.5q-9-9 -21.75-9t-21.75,9t-9,21.75\nt 9,21.75l 130.5,131q 9,9 21.75,9t 21.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"rotatecounterclockwise\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,352l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-288 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,288 q0,13.5 -9.25,22.75t-22.75,9.25zM 320,512l-288,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 288,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13 -9.25,22.5t-22.75,9.5zM 288,416l-224,0 \nq-13,0 -22.5,9.25t-9.5,22.75t 9.5,22.75t 22.5,9.25l 224,0 q 13.5,0 22.75-9.25t 9.25-22.75t-9.25-22.75t-22.75-9.25zM 288,128l-32,0 q-44.5,0 -78.75,27.25t-45.25,68.75l 54.5,0 q 5.5,5 5.5,11.5t-5.5,11.5l-77.5,100q-5.5,5 -13,5t-13-5l-77.5-100q-5.5-5 -5.5-11.5t 5.5-11.5l 61.5,0 q 11.5-68.5 64.75-114.25\nt 124.25-45.75l 32,0 q 13.5,0 22.75,9.25t 9.25,22.75t-9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"rotateclockwise\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-288,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 288,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13 -9.25,22.5t-22.75,9.5zM 448,416l-224,0 q-13,0 -22.5,9.25t-9.5,22.5t 9.5,22.75t 22.5,9.5l 224,0 q 13.5,0 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25zM 429,347\nq-5.5,5 -13,5t-13-5l-77.5-100q-5.5-5 -5.5-11.5t 5.5-11.5l 54.5,0 q-11-42 -45.25-69t-78.75-27l-32,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 32,0 q 71,0 124.25,45.75t 64.75,114.25l 61.5,0 q 5.5,5 5.5,11.5t-5.5,11.5zM 96,352l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-288 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 \nq 13,0 22.5,9.25t 9.5,22.75l0,288 q0,13.5 -9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"mergeshapes\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-256,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-64 l-64,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 256,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,256 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,336q0-6.5 -4.75-11.25t-11.25-4.75l-36,36\nl-240-240l 36-36q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75l 36-36l 240,240l-36,36q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"excludeshape\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-256,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-64 l-64,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 256,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,256 q0,26.5 -18.75,45.25t-45.25,18.75zM 320,192l-112,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nl0,112 l 112,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-112 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"intersectshape\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-256,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-64 l-64,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 256,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,256 q0,26.5 -18.75,45.25t-45.25,18.75zM 320,80q0-6.5 -4.75-11.25t-11.25-4.75l-224,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,224 q0,6.5 4.75,11.25t 11.25,4.75l 48,0 l0-128 q0-26.5 18.75-45.25t 45.25-18.75l 128,0 l0-48 zM 448,208q0-6.5 -4.75-11.25t-11.25-4.75l-48,0 l0,128 q0,26.5 -18.75,45.25t-45.25,18.75l-128,0 l0,48 q0,6.5 4.75,11.25t 11.25,4.75l 224,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-224 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"subtractshape\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-256,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-64 l-64,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 256,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,256 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,208q0-6.5 -4.75-11.25t-11.25-4.75l-224,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,224 q0,6.5 4.75,11.25t 11.25,4.75l 224,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-224 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"addshape\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-256,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-64 l-64,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 256,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,256 q0,26.5 -18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"creativecommons\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25t 70,70t 96.25,25.75t 96.25-25.75t 70-70\nt 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 320,224q-13.5,0 -22.75,9.25t-9.25,22.75t 9.25,22.75t 22.75,9.25l 55,0 q-8.5,14.5 -23,23.25t-32,8.75q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75q 17.5,0 32,8.75t 23,23.25l-55,0 zM 160,256q0,13 9.5,22.5t 22.5,9.5l 55,0 \nq-8.5,14.5 -23,23.25t-32,8.75q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75q 17.5,0 32,8.75t 23,23.25l-55,0 q-13,0 -22.5,9.5t-9.5,22.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"wizard2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 503.5,502q-9.5,9.5 -22.5,10t-22-8.5l-224.5-225q-9-9 -8.5-22t 10-22.5t 22.5-10t 22,8.5l 224.5,225q 9,9 8.5,22t-10,22.5zM 322,192l-64,16l-74-71.5q-8.5-9 -21.5-8.5t-22.5,10t-10,22.5t 8.5,22l 71.5,73.5l-16,64q-1,1.5 -2.75,4t-2.75,4t-2.5,3.25t-2.75,2.5t-3,0.75t-3.25-1.5l-63-77\nl-96,0 q-8-2.5 -13-6.5t-3-9.5l 64-96l-32.5-96.5q0-6.5 4.75-11.25t 11.25-4.75l 96.5,32.5l 96-64q 5.5-2 9.5,3t 6.5,13l0,96 l 76.5,63q 1.5,1.5 1.5,3.25t-0.75,3t-2.5,3t-3.25,2.75t-4,2.5t-3.5,2.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"paintroll\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,224l-240,0 l0,96 q 13,0 22.5,9.5t 9.5,22.5l0,128 q0,13 -9.5,22.5t-22.5,9.5l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-128 q0-13 9.25-22.5t 22.75-9.5l0-112 q0-6.5 4.75-11.25t 11.25-4.75l 240,0 l0-96 l-32,0 l0,32 q0,13 -9.5,22.5t-22.5,9.5l-384,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-96 q0-13 9.25-22.5t 22.75-9.5l 384,0 \nq 13,0 22.5,9.5t 9.5,22.5l0,32 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,128 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fontwidth\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 508,475l-41,32.5q-4,4.5 -9.5,4.5t-9.5-4.5l0-27 l-384,0 l0,27 q-4,4.5 -9.5,4.5t-9.5-4.5l-41-32.5q-4-4.5 -4-10.75t 4-10.75l 41-33q 4-4 9.5-4t 9.5,4l0,28 l 384,0 l0-28 q 4-4 9.5-4t 9.5,4l 41,33q 4,4.5 4,10.75t-4,10.75zM 447.5,128q-13,0 -22.5-9.25t-9.5-22.75t-24.75-22.75t-70.75-9.25q-13.5,0 -22.75,9.5t-9.25,22.5\nl0,224 q0,13.5 9.25,22.75t 22.5,9.25t 22.75,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-128,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.5-9.5t 22.75-9.25t 9.5-22.75l0-160 l0,1 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0 l0,0.5 l0,0 l0,0 l0,0 l0,0 l0,0 l0,0 l0-0.5 l0,0 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 \nl0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-5 q0-13 -9.5-22.5t-22.5-9.5q-46,0 -71,9.25t-25,22.75t-9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-64 q0-13 9.25-22.5t 22.75-9.5l 384,0 \nq 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.5,22.75t-22.5,9.25l-0.5,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fontheight\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,128q-13,0 -22.5-9.5t-9.5-22.5q0-12.5 -21.25-22.25t-42.25-9.75l-0.5,0 q-13,0 -22.5,9.25t-9.5,22.75l0,319.5 q0,13.5 9.5,22.75t 22.75,9.25t 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-128,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5t 22.5-9.25t 9.25-22.75l0-319.5 q0-13.5 -9.25-22.75t-22.75-9.25\nq-21.5,0 -42.75,9.75t-21.25,22.25q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 320,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13 -9.5,22.5t-22.5,9.5zM 92,448q 4,4 4,9.5t-4,9.5l-33,41q-4.5,4 -10.75,4t-10.75-4l-33-41q-4.5-4 -4.5-9.5t 4.5-9.5l 28,0 l0-384 l-28,0 \nq-4.5-4 -4.5-9.75t 4.5-9.75l 33-41q 4.5-4 10.75-4t 10.75,4l 33,41q 4,4 4,9.75t-4,9.75l-27.5,0 l0,384 l 27.5,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"strikethrough\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l-49.5,0 q 17,30 17,64l0,32 q0,53 -37.25,90.5t-90.25,37.5l-128,0 q-53,0 -90.5-37.5t-37.5-90.5q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-32 q0-26.5 -18.75-45.25t-45.25-18.75l-288,0 q-13.5,0 -22.75-9.25t-9.25-22.75\nt 9.25-22.75t 22.75-9.25l 49.5,0 q-17-30 -17-64l0-32 q0-53 37.25-90.5t 90.25-37.5l 128,0 q 53,0 90.5,37.5t 37.5,90.5q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.5t-9.5-22.5q0-26.5 -18.75-45.25t-45.25-18.75l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,32 q0,26.5 18.75,45.25t 45.25,18.75l 288,0 q 13,0 22.5,9.5t 9.5,22.5\nt-9.5,22.5t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"underline\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 448,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 320,416l-128,0 q-53,0 -90.5-37.5t-37.5-90.5l0-256 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,0.5 l0,255.5 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-256 l0,0 \nq0-13 9.5-22.5t 22.75-9.5t 22.5,9.25t 9.25,22.75l0,256 q0,53 -37.5,90.5t-90.5,37.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"italic\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,64l-39,0 l-111.5,384l 22.5,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-128,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 40,0 l 111.5-384l-23.5,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 128,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bold\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,352l0,32 q0,53 -37.5,90.5t-90.5,37.5l-224,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-448 q0-13 9.25-22.5t 22.75-9.5l 224,0 q 53,0 90.5,37.5t 37.5,90.5l0,16 q0,28 -11.75,53t-31.75,43q 19,17 31.25,49.5t 12.25,62.5zM 304,96l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 128,0 \nq 19.5,0 33.75-14t 14.25-34t-14.25-34t-33.75-14zM 288,288l-112,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75l 112,0 q 26.5,0 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"indentright\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,288l-48,0 l0,28.5 q-3.5,3.5 -7.75,3.5t-7.75-3.5l-77.5-52q-3-3.5 -3-8.5t 3-9l 77.5-51.5q 3.5-4 7.75-4t 7.75,4l0,28.5 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 336,512q-6.5,0 -11.25-4.75t-4.75-11.25l0-480 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,480 \nq0,6.5 -4.75,11.25t-11.25,4.75zM 256,192l-224,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 224,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 160,96l-128,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25l 128,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 32,224l 160,0 \nq 13,0 22.5,9.5t 9.5,22.5t-9.5,22.5t-22.5,9.5l-160,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25zM 32,320l 192,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-192,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25zM 32,416l 64,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-64,0 \nq-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"indentleft\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,192l-224,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 224,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 384,96l-128,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25l 128,0 q 13,0 22.5,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25zM 176,512q-6.5,0 -11.25-4.75t-4.75-11.25l0-480 \nq0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,480 q0,6.5 -4.75,11.25t-11.25,4.75zM 79.5,316.5q-3.5,3.5 -7.75,3.5t-7.75-3.5l0-28.5 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0-28.5 q 3.5-4 7.75-4t 7.75,4l 77.5,51.5q 3,3.5 3,8.75t-3,8.75zM 256,224l 160,0 q 13,0 22.5,9.25\nt 9.5,22.75t-9.5,22.75t-22.5,9.25l-160,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25zM 256,320l 192,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-192,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.25-22.5t 22.75-9.25zM 256,416l 64,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-64,0 q-13,0 -22.5-9.5t-9.5-22.75\nt 9.25-22.5t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"eraser\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-447.5,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 447.5,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25zM 413.5,396.5q-1,1 -4.25,4.5t-5.25,5.5t-5.5,4.5t-7,3.75t-7.5,1.25l-128,0 q-3.5,0 -7.25-1.5t-7.5-4.25t-6-4.75t-5.25-5.25t-3.5-3.75l-218-218q-8.5-9 -8.5-21.25t 8.5-20.75\nl 65.25-65.25l 62.75-62.75q 8.5-8.5 20.75-8.5t 21.25,8.5l 292.5,293q 9,8.5 9,20.75t-9,21.25q-2.5,3 -26,24t-31.5,29zM 272,186l-86,86l 80,80l 108.5,0 l 32-32z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"moleskine\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-32,0 l0-160 l 64,0 l0-192 l-64,0 l0-160 l 32,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 64,160l0,192 l 288,0 l0,160 l-256,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 256,0 l0,160 l-288,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ruler\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507.5,427.5l-80,80q-5,4.5 -11.5,4.5t-11-4.5l-31.5-31.5l 40.5-40.5q 4.5-4.5 0-8.5l-8.5-9q-4.5-4.5 -9,0l-40.5,40.5l-62.5-62.5l 40.5-40.5q 4.5-4.5 0-8.5l-8.5-9q-4.5-4.5 -9,0l-40.5,40.5l-62.5-62.5l 40.5-40.5q 4.5-4.5 0-8.5l-8.5-9q-4.5-4.5 -9,0l-40.5,40.5l-62.5-62.5l 40.5-40.5q 4.5-4.5 0-8.5l-8.5-9q-4.5-4.5 -9,0l-40.5,40.5l-62.5-62.5\nl 40.5-40.5q 4.5-4.5 0-8.5l-8.5-9q-4.5-4.5 -9,0l-40.5,40.5l-31.5-31.5q-4.5-4.5 -4.5-11t 4.5-11.5l 80-80q 5-4.5 11.5-4.5t 11,4.5l 400.5,400.5q 4.5,4.5 4.5,11t-4.5,11.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pen\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507.5,507.5q-4.5,4.5 -10.75,4.5t-10.75-4.5l-33.5-33q-4.5-4.5 -4.5-11t 4.5-11t 11-4.5t 11,4.5l 33,33.5q 4.5,4.5 4.5,10.75t-4.5,10.75zM 344,421q-1.5-1.5 -4-6q 4-1 6.5-3.5l 65-65q 2.5-2.5 3.5-6.5q 5,2.5 6,4l 32,77.5l-31.5,31.5zM 337.5,376q-8,7.5 -19.5,7.5t-19.5-7.5l-258.5-259q-7-7 -7.75-16.75t 4.75-17.75l-32.5-32.5\nq-4.5-4.5 -4.5-11.25t 4.5-11.25l 23-23q 4.5-4.5 11.25-4.5t 11.25,4.5l 32.5,32.5q 8-5.5 17.75-4.75t 16.75,7.75l 25,24.5l 78.5,0 q 8.5-1.5 14,4l 129,129.5q 4.5,4.5 4.5,10.75t-4.5,10.75t-10.75,4.5t-10.75-4.5l-124.5-124l-45,0 l 203.5,203q 8,8 8,19.25t-8,19.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"resize\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-64,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 36.5,0 q 11.5,0 19.5-8t 8-19.5l0-36.5 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,64 q0,26.5 -18.75,45.25t-45.25,18.75zM 479.75,160q-13.25,0 -22.5-9.25t-9.25-22.75l0-36.5 q0-11.5 -8-19.5t-19.5-8l-36.5,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 64,0 \nq 26.5,0 45.25,18.75t 18.75,45.25l0,64 q0,13.5 -9.5,22.75t-22.75,9.25zM 128,64l-36.5,0 q-11.5,0 -19.5,8t-8,19.5l0,36.5 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-64 q0-26.5 18.75-45.25t 45.25-18.75l 64,0 q 13,0 22.5,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25zM 96,384l0-256 q0-13 9.25-22.5\nt 22.75-9.5l 256,0 q 13,0 22.5,9.5t 9.5,22.5l0,256 q0,13.5 -9.5,22.75t-22.5,9.25l-256,0 q-13.5,0 -22.75-9.25t-9.25-22.75zM 160,336q0,6.5 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-160 q0-6.5 -4.75-11.25t-11.25-4.75l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,160 zM 31.75,352q 13.25,0 22.75,9.5\nt 9.5,22.5l0,36.5 q0,11.5 8,19.5t 19.5,8l 36.5,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-64,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-64 q0-13.5 9.25-22.75t 22.5-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"magazine\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-448 q0-13.5 9.25-22.75t 22.75-9.25l 384,0 q 13,0 22.5,9.25t 9.5,22.75l0,448 q0,13 -9.5,22.5t-22.5,9.5zM 96,32q-13.5,0 -22.75,9.25t-9.25,22.75l0,384 q0,13.5 9.25,22.75t 22.75,9.25l 224,0 q0-30 -1.5-49t-5.25-33.5t-11.5-22.75t-18.25-13.5t-27.5-9.25\nq-8.5-2 -18.5-2t-18,1.25t-18.75,4t-16.25,4.5t-14.75,4.75t-9.75,3.5l 271.5-332q-7.5-4 -15.5-4l-320,0 zM 448,64q0-10.5 -6.5-19.5l-102,435.5l 76.5,0 q 13,0 22.5-9.25t 9.5-22.75l0-384 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"superscript\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,96.5l-80,0 l0,32 l 80,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-96,0 q-6,0 -10.25-3.75t-5.25-9.25l0-70 q 1-5.5 5.25-9.25t 10.25-3.75l 80,0 l0-32 l-80,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 96,0 q 6,0 10.25,3.75t 5.25,9.25l0,70 q-1,5.5 -5.25,9.25t-10.25,3.75z\nM 311.25,503.75q-8.25,8.25 -19.75,8.25t-20-8.5l-111.5-138.5l-112,138.5q-8,8.5 -19.75,8.5t-20-8.25t-8.25-20t 8.5-19.75l 115.5-144l-115.5-143.5q-8.5-8.5 -8.5-20t 8.25-19.75t 20-8.25t 19.75,8l 112,139l 111.5-139q 8.5-8 20-8t 19.75,8.25t 8.25,19.75t-8,20l-115.5,143.5l 115.5,144\nq 8,8 8,19.75t-8.25,20z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"subscript\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,448l-80,0 l0,32 l 80,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-96,0 q-6,0 -10.25-3.75t-5.25-9.25l0-70 q 1-5.5 5.25-9.25t 10.25-3.75l 80,0 l0-32 l-80,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 96,0 q 6,0 10.25,3.75t 5.25,9.25l0,70 q-1,5.5 -5.25,9.25t-10.25,3.75z\nM 311.25,375.25q-8.25,8.25 -19.75,8.25t-20-8l-111.5-139l-112,139q-8,8 -19.75,8t-20-8.25t-8.25-19.75t 8.5-20l 115.5-143.5l-115.5-144q-8.5-8 -8.5-19.75t 8.25-20t 20-8.25t 19.75,8.5l 112,138.5l 111.5-138.5q 8.5-8.5 20-8.5t 19.75,8.25t 8.25,20t-8,19.75l-115.5,144l 115.5,143.5\nq 8,8.5 8,20t-8.25,19.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"kerning\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502,352l-20,0 q-7.5,0 -15.75-5.25t-12.25-12.75l-15-46l-139.5,0 l-15,46q-4,7.5 -12.25,12.75t-15.75,5.25l-20,0 q-7.5,0 -10-5.25t 1.5-12.75l 93-283.5q 4-7.5 12.25-12.75t 15.75-5.25l 40.5,0 q 7.5,0 15.75,5.25t 12.25,12.75l 93,283.5q 4,7.5 1.5,12.75t-10,5.25zM 369,76l-48.5,148l 97.5,0 zM 193.5,334\nq-4,7.5 -12.25,12.75t-15.75,5.25l-40.5,0 q-7.5,0 -15.75-5.25t-12.25-12.75l-93-283.5q-4-7.5 -1.5-12.75t 10-5.25l 20,0 q 7.5,0 15.75,5.25t 12.25,12.75l 85,258l 84.5-258q 4-7.5 12.25-12.75t 15.75-5.25l 20.5,0 q 7.5,0 9.75,5.25t-1.75,12.75zM 46.5,388.5q 4-4 9.5-4t 9.5,4l0,28 l 384,0 l0-28 q 4-4 9.5-4t 9.5,4l 41,33\nq 4,4.5 4,10.75t-4,10.75l-41,32.5q-4,4.5 -9.5,4.5t-9.5-4.5l0-27 l-384,0 l0,27 q-4,4.5 -9.5,4.5t-9.5-4.5l-41-32.5q-4-4.5 -4-10.75t 4-10.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"paintbrush\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507.5,485.5l-22,22q-5,4.5 -43.25,4.5t-43.25-4.5l-147.5-198l-34,31.5q-12.5,11.5 -41,10.75t-41.5-12.75q-8-7.5 -7-18.25t 5.5-19.5t 10-13.75l 144-144q 5-4.5 13.5-8.75t 19.75-6t 19.25,5.75q 12.5,12 11.5,47.5t-13.5,47.5l-26.5,24l 196,146q 4.5,4.5 4.5,42.75t-4.5,43.25zM 135,339l 0.25,0.25l 0.25,0.25zM 340.5,134.5\nl-0.5,0 l0-0.5 zM 196.5,27q-4.5-4.5 -4.5-11t 4.5-11.25t 11-4.75t 11,5l 92,92l-22,22zM 240.5,167l-92-92q-4.5-5 -4.5-11.25t 4.5-11t 11-4.75t 11,5l 92,92zM 192.5,215l-92-92q-4.5-5 -4.5-11.25t 4.5-11t 11-4.75t 11,4.5l 92,92.5zM 144.5,262.5l-92-92q-4.5-4.5 -4.5-10.75t 4.5-11t 11-4.75t 11,4.5l 92,92zM 96.5,310.5\nl-92-92q-4.5-4.5 -4.5-11t 4.5-11t 11-4.5t 11,4.5l 92,92z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"clearformatting\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507.5,377l-55,55l 54.5,54.5q 4.5,4.5 4.5,10.75t-4.25,10.5t-10.5,4.25t-10.75-4.5l-54.5-54.5l-54.5,54.5q-4.5,4.5 -10.75,4.5t-10.5-4.25t-4.25-10.5t 4.5-10.75l 54.5-54.5l-55-55q-4.5-4.5 -4.5-10.75t 4.5-10.5t 10.5-4.25t 10.5,4.5l 55,55l 55-55q 4.5-4.5 10.75-4.5t 10.5,4.25t 4.25,10.5t-4.5,10.75zM 447,32l-10.5,64\nq-2,13 -12.75,22.5t-23.75,9.5t-20.5-9.5t-5.5-22.5q 2-6.5 1.25-12.5t-4.75-10.25t-17-6.75t-35.5-2.5q-13,0 -23.75,9.25t-12.75,22.75l-37,192q-2,14 2.75,23t 16.25,9q 12,0 19,9.25t 5,22.5t-12,22.75t-22,9.5l-130,0 q-14,0 -22-9.5t-5.75-22.75t 13.75-22.5t 25-9.25q 14.5,0 30-9.75t 18-22.25l 36.5-192\nq 2.5-13.5 -5.25-22.75t-20.25-9.25q-18.5,0 -31,1.75t-19,4t-10.25,7.5t-4.75,8.5t-2,10.25q-2,13 -12.75,22.5t-23.75,9.5t-20.5-9.5t-5.5-22.5l 11-64q 2-13.5 12.75-22.75t 23.25-9.25l 310,0 q 13,0 20.5,9.25t 5.5,22.75zM 351.5,432.25q0,6.75 -4.75,11.25t-11.25,4.5l-319.5,0 q-6.5,0 -11.25-4.5t-4.75-11.25t 4.75-11.25\nt 11.25-4.5l 319.5,0 q 6.5,0 11.25,4.5t 4.75,11.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"color\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,352q0,43.5 -21.5,80.25t-58.25,58.25t-80.25,21.5q-53,0 -96-32q-43,32 -96,32q-43.5,0 -80.25-21.5t-58.25-58.25t-21.5-80.25q0-48.5 26.75-88.25t 69.75-58.75l0,0 q-0.5-8 -0.5-13q0-43.5 21.5-80.25t 58.25-58.25t 80.25-21.5t 80.25,21.5t 58.25,58.25t 21.5,80.25q0,1 -1,13l 0.5,0 \nq 43,19 69.75,58.75t 26.75,88.25zM 32,352q0,53 37.5,90.5t 90.5,37.5q 39.5,0 72-22.5q-40-45.5 -40-105.5q0-3.5 1-13l-0.5,0 q 30.5,13 63.5,13t 63-13q-2.5-35 -19.25-64.75t-43.75-49.75q-27,20 -43.75,50t-19.75,64.5l0-0.5 q-32-14 -55.75-40.25t-33.75-60.25q-32,16 -51.5,46.5t-19.5,67.5zM 256,64\nq-53,0 -90.5,37.5t-37.5,90.5l0,1.5 t 0.5,1.5q 16-3 31.5-3q 53.5,0 96,32q 42.5-32 96-32q 16,0 32,3l0-1.5 l0-1.5 q0-53 -37.5-90.5t-90.5-37.5zM 409,238q-10,34 -33.75,60.5t-55.75,40.5l-0.5,0 q 1,9.5 1,13q0,60 -40,105.5q 32.5,22.5 72,22.5q 53,0 90.5-37.5t 37.5-90.5q0-37 -19.5-67.5t-51.5-46.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"insertbarchart\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,416q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-320,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 l0-320 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25\nt 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 320,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,320 l 16,0 zM 32,472q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25\nt-2.25,5.75l0,16 zM 64,40q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 zM 416,80l0-16 l-320,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,320 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 320,0 l0-16 q0-6.5 4.75-11.25\nt 11.25-4.75l 16,0 l0-320 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25zM 480,40q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 zM 472,448l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25\nt 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25zM 368,384l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-160 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,160 q0,6.5 -4.75,11.25t-11.25,4.75zM 272,384l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75\nt 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75zM 176,384l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-224 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,224 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"insertpiechart\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,416q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-320,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 l0-320 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25\nt 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 320,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,320 l 16,0 zM 32,472q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25\nt-2.25,5.75l0,16 zM 64,40q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 zM 416,80l0-16 l-320,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,320 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 320,0 l0-16 q0-6.5 4.75-11.25\nt 11.25-4.75l 16,0 l0-320 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25zM 480,40q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 zM 472,448l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25\nt 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25zM 288,96q 53,0 90.5,37.5t 37.5,90.5l-128,0 l0-128 zM 256,384q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5l0,128 l 128,0 q0,53 -37.5,90.5t-90.5,37.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"insertpicturecenter\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,128l-480,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 480,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 400,64l-384,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 384,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 160,384q-13,0 -22.5-9.25t-9.5-22.75\nl0-160 q0-13 9.5-22.5t 22.5-9.5l 192,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,160 q0,13.5 -9.25,22.75t-22.75,9.25l-192,0 zM 16,416l 448,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-448,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 16,480l 384,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75\nl-384,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"insertpictureright\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,256l-192,0 q-13,0 -22.5-9.5t-9.5-22.5l0-160 q0-13 9.5-22.5t 22.5-9.5l 192,0 q 13,0 22.5,9.5t 9.5,22.5l0,160 q0,13 -9.5,22.5t-22.5,9.5zM 208,192l-192,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 192,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 16,96l 128,0 q 6.5,0 11.25,4.75t 4.75,11.25\nt-4.75,11.25t-11.25,4.75l-128,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 208,64l-192,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 192,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 16,224l 160,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-160,0 \nq-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 16,288l 480,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-480,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 16,352l 416,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-416,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25\nt 11.25-4.75zM 16,416l 448,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-448,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 16,480l 384,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-384,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"insertpictureleft\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,192l-192,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 192,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 304,96l 128,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-128,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 496,64l-192,0 q-6.5,0 -11.25-4.75\nt-4.75-11.25t 4.75-11.25t 11.25-4.75l 192,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 224,256l-192,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-160 q0-13 9.25-22.5t 22.75-9.5l 192,0 q 13,0 22.5,9.5t 9.5,22.5l0,160 q0,13 -9.5,22.5t-22.5,9.5zM 304,256q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 160,0 \nq 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-160,0 zM 16,288l 480,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-480,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 16,352l 416,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-416,0 q-6.5,0 -11.25-4.75t-4.75-11.25\nt 4.75-11.25t 11.25-4.75zM 16,416l 448,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-448,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 16,480l 384,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-384,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"insertpicture\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,416q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-320,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 l0-320 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25\nt 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 320,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,320 l 16,0 zM 32,472q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25\nt-2.25,5.75l0,16 zM 64,40q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 zM 416,80l0-16 l-320,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,320 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 320,0 l0-16 q0-6.5 4.75-11.25\nt 11.25-4.75l 16,0 l0-320 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25zM 480,40q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 zM 472,448l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25\nt 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25zM 238.5,307.5l 74.5-75q 9-9 23.25-9t 23.25,9l 24.5,24.5l0,127 l-70,0 zM 176,224q-20,0 -34-14t-14-34t 14-34t 34-14t 34,14t 14,34t-14,34t-34,14zM 183.5,297l 86.5,87l-142,0 l0-78 l 9-9q 9-9.5 23.25-9.5t 23.25,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"invert\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,128q0-26.5 -19-45.5l-60,60.5q-22-22.5 -51.25-34.75t-61.75-12.25q-43.5,0 -80.25,21.5t-58.25,58.25t-21.5,80.25\nq0,32.5 12.25,61.75t 34.75,51.25l-60.5,60.5q 19,18.5 45.5,18.5l 256,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-256 zM 256,416q-66.5,0 -113-47l 226-226q 22.5,22 34.75,51.25t 12.25,61.75q0,43.5 -21.5,80.25t-58.25,58.25t-80.25,21.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"exposure\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 224,128l-32,0 l0-32 q0-13.5 -9.5-22.75t-22.75-9.25t-22.5,9.25t-9.25,22.75l0,32 l-32,0 q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5\nt 22.75,9.25l 32,0 l0,32 q0,13 9.25,22.5t 22.5,9.5t 22.75-9.5t 9.5-22.5l0-32 l 32,0 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5zM 448,128q0-26.5 -18.5-45.5l-347,347q 19,18.5 45.5,18.5l 256,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-256 zM 384,384l-128,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 128,0 q 13,0 22.5,9.25\nt 9.5,22.5t-9.25,22.75t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"shapes\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 368,448q-59.5,0 -101.75-42.25t-42.25-101.75q0-7.5 1-16l 151,0 q 5-5.5 7.25-32t-2.25-32l-34-62.5q 11.5-1.5 21-1.5q 59.5,0 101.75,42.25t 42.25,101.75t-42.25,101.75t-101.75,42.25zM 347,256l-262.5,0 q-5-5 -5-12.5t 5-13l 120-225.5q 4.5-5.5 11.25-5.5t 11.25,5.5l 120,225.5q 5,5.5 4.75,13t-4.75,12.5z\nM 192,304q0,40.5 17,75.75t 47,60.25l0,56 q0,6.5 -4.75,11.25t-11.25,4.75l-224,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-224 q0-6.5 4.75-11.25t 11.25-4.75l 32.5,0 q 2,26.5 7,32l 137.5,0 q-1,12 -1,16z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"distributehorizontalcenters\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,384l-32,0 l0,96 q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l0-96 l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-192 q0-13.5 9.25-22.75t 22.75-9.25l 32,0 l0-96 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,96 l 32,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,192 q0,13.5 -9.25,22.75t-22.75,9.25zM 416,208\nq0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 zM 192,448l-32,0 l0,32 q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l0-32 l-32,0 q-13,0 -22.5-9.5t-9.5-22.5l0-320 q0-13.5 9.5-22.75t 22.5-9.25l 32,0 l0-32 q0-13 9.5-22.5t 22.75-9.5\nt 22.5,9.5t 9.25,22.5l0,32 l 32,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,320 q0,13.5 -9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"distributeverticalcenters\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,160l-96,0 l0,32 q0,13.5 -9.5,22.75t-22.5,9.25l-192,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-32 l-96,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.25-22.75t 22.75-9.5l 96,0 l0-32 q0-13 9.25-22.5t 22.75-9.5l 192,0 q 13,0 22.5,9.5t 9.5,22.5l0,32 l 96,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 320,112q0-6.5 -4.75-11.25\nt-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 32,352l 32,0 l0-32 q0-13.5 9.5-22.75t 22.5-9.25l 320,0 q 13,0 22.5,9.5t 9.5,22.5l0,32 l 32,0 q 13,0 22.5,9.25t 9.5,22.75t-9.25,22.75t-22.75,9.25l-32,0 l0,32 q0,13 -9.5,22.5t-22.5,9.5l-320,0 \nq-13,0 -22.5-9.5t-9.5-22.5l0-32 l-32,0 q-13,0 -22.5-9.25t-9.5-22.75t 9.5-22.75t 22.5-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"alignjustify\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 480,192l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 480,96l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75\nt 22.75-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 32,320l 448,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25zM 32,416l 192,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-192,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75\nt 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"aligncenter\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,192l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 416,96l-320,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 320,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 64,288q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75\nt 22.75-9.5l 384,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-384,0 zM 32,320l 448,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25zM 160,416l 192,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-192,0 q-13.5,0 -22.75-9.25t-9.25-22.75\nt 9.25-22.75t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"alignright\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,384l-416,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 416,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 480,288l-384,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 384,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 480,192l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75\nt 22.75-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 480,96l-352,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 352,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 288,416l 192,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-192,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75\nt 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"alignleft\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,192l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 384,96l-352,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 352,0 q 13,0 22.5,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25zM 32,224l 384,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5\nt-22.5,9.25l-384,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5zM 32,320l 416,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-416,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25zM 32,416l 192,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-192,0 q-13.5,0 -22.75-9.25\nt-9.25-22.75t 9.25-22.75t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"alignleftedges\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,480l-320,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-128 q0-13 9.25-22.5t 22.75-9.5l 320,0 q 13,0 22.5,9.5t 9.5,22.5l0,128 q0,13.5 -9.5,22.75t-22.5,9.25zM 352,224l-192,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-128 q0-13 9.25-22.5t 22.75-9.5l 192,0 q 13,0 22.5,9.5t 9.5,22.5l0,128 q0,13.5 -9.5,22.75t-22.5,9.25zM 320,112\nq0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 32,512q-13.5,0 -22.75-9.5t-9.25-22.5l0-448 q0-13 9.25-22.5t 22.75-9.5t 22.75,9.5t 9.25,22.5l0,448 q0,13.5 -9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"alignrightedges\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 479.75,512q-13.25,0 -22.5-9.5t-9.25-22.5l0-448 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,448 q0,13.5 -9.5,22.75t-22.75,9.25zM 352,480l-320,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-128 q0-13 9.25-22.5t 22.75-9.5l 320,0 q 13,0 22.5,9.5t 9.5,22.5l0,128 q0,13.5 -9.5,22.75t-22.5,9.25zM 352,224l-192,0 \nq-13.5,0 -22.75-9.25t-9.25-22.75l0-128 q0-13 9.25-22.5t 22.75-9.5l 192,0 q 13,0 22.5,9.5t 9.5,22.5l0,128 q0,13.5 -9.5,22.75t-22.5,9.25zM 320,112q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"aligntopedges\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,64l-448,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.25-22.75t 22.75-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25zM 64,128l 128,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,320 q0,13 -9.25,22.5t-22.75,9.5l-128,0 q-13,0 -22.5-9.5t-9.5-22.5l0-320 q0-13.5 9.5-22.75t 22.5-9.25zM 320,128l 128,0 q 13.5,0 22.75,9.25\nt 9.25,22.75l0,192 q0,13 -9.25,22.5t-22.75,9.5l-128,0 q-13,0 -22.5-9.5t-9.5-22.5l0-192 q0-13.5 9.5-22.75t 22.5-9.25zM 352,304q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"alignbottomedges\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 448,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5zM 448,384l-128,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-192 q0-13.5 9.25-22.75t 22.75-9.25l 128,0 q 13,0 22.5,9.25t 9.5,22.75l0,192 q0,13.5 -9.5,22.75t-22.5,9.25zM 416,208q0-6.5 -4.75-11.25t-11.25-4.75\nl-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 zM 192,384l-128,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-320 q0-13 9.25-22.5t 22.75-9.5l 128,0 q 13,0 22.5,9.5t 9.5,22.5l0,320 q0,13.5 -9.5,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"alignhorizontalcenters\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,480l-128,0 q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l-128,0 q-13,0 -22.5-9.25t-9.5-22.75l0-128 q0-13 9.5-22.5t 22.5-9.5l 128,0 l0-64 l-64,0 q-13,0 -22.5-9.25t-9.5-22.75l0-128 q0-13 9.5-22.5t 22.5-9.5l 64,0 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,128 q0,13.5 -9.25,22.75\nt-22.75,9.25l-64,0 l0,64 l 128,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,128 q0,13.5 -9.25,22.75t-22.75,9.25zM 304,160q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"alignverticalcenters\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l0,64 q0,13.5 -9.5,22.75t-22.5,9.25l-128,0 q-13,0 -22.5-9.25t-9.5-22.75l0-64 l-64,0 l0,128 q0,13.5 -9.25,22.75t-22.75,9.25l-128,0 q-13,0 -22.5-9.25t-9.5-22.75l0-128 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l0-128 q0-13 9.5-22.5t 22.5-9.5l 128,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,128 l 64,0 l0-64 \nq0-13 9.5-22.5t 22.5-9.5l 128,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q 13,0 22.5,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25zM 416,208q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"dreamweaver\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 224,192q0-26.5 -18.75-45.25t-45.25-18.75l-80,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,224 q0,6.5 4.75,11.25t 11.25,4.75l 80,0 \nq 26.5,0 45.25-18.75t 18.75-45.25l0-128 zM 432,128q-6.5,0 -11.25,4.75t-4.75,11.25l0,176 q0,7 -6,15t-12,12.5l-6,4.5q-3.5,0 -5.75-2.25t-2.25-5.75l0-200 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,200 q0,3.5 -2.25,5.75t-5.75,2.25q-2.5-2 -6.5-5t-10.75-11.5t-6.75-15.5l0-174.5 l0-1 l0-0.5 \nq0-6.5 -4.5-11.25t-11.25-4.75t-11.5,4.75t-4.75,11.25l0,176 q0,26.5 18.75,45.25t 45.25,18.75l 32,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-174 l0-2 q0-6.5 -4.75-11.25t-11.25-4.75zM 160,352l-56,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-176 q0-3.5 2.25-5.75t 5.75-2.25l 56,0 q 13,0 22.5,9.25t 9.5,22.75l0,128 q0,13 -9.5,22.5t-22.5,9.5\nz\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"flash\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 208,128l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,224 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-72 q0-3.5 2.25-5.75t 5.75-2.25\nl 40,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-40,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-80 q0-3.5 2.25-5.75t 5.75-2.25l 72,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 400,352l-80,0 l0-208 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,224 q0,6.5 4.75,11.25t 11.25,4.75l0,0 l0,0 l 0.5,0 l0,0 l0,0 \nl 0.5,0 l0,0 l 0.5,0 l0,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 1,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 1,0 l 0.5,0 l 0.5,0 l 0.5,0 l 0.5,0 l 1,0 l 0.5,0 l 0.5,0 l 0.5,0 l 1,0 l 0.5,0 l 0.5,0 l 0.5,0 l 1,0 l 0.5,0 l 0.5,0 l 1,0 l 0.5,0 l 0.5,0 l 1,0 l 0.5,0 l 0.5,0 l 1,0 l 0.5,0 l 1,0 l 0.5,0 l 0.5,0 l 1,0 l 0.5,0 l 1,0 l 0.5,0 l 1,0 l 0.5,0 l 1,0 l 0.5,0 l 1,0 l 0.5,0 l 1,0 l 0.5,0 l 1,0 l 0.5,0 l 1,0 l 0.5,0 l 1,0 l 0.5,0 l 1,0 l 0.5,0 l 1,0 l 1,0 l 0.5,0 l 1,0 l 0.5,0 l 1,0 l 1,0 l 0.5,0 l 1,0 l 0.5,0 l 1,0 l 1,0 l 0.5,0 l 1,0 l 1,0 l 0.5,0 l 1,0 l 1,0 l 0.5,0 l 1,0 l 1,0 l 1,0 l 0.5,0 l 1,0 l 1,0 l 1,0 l 0.5,0 l 1,0 l 1,0 l 1,0 l 0.5,0 l 1,0 l 1,0 l 1,0 \nl 1,0 l 0.5,0 l 1,0 l 1,0 l 1,0 l 1,0 l 0.5,0 l 1,0 l 4.5,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"illustrator\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 256,192q0-26.5 -18.75-45.25t-45.25-18.75l-32,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,176 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75\nt 4.75-11.25l0-72 q0-3.5 2.25-5.75t 5.75-2.25l 80,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,72 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-176 zM 400,160q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 16,0 l0,192 l-16,0 q-6.5,0 -11.25,4.75\nt-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-16,0 l0-192 l 16,0 zM 216,256l-80,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-56 q0-13 9.25-22.5t 22.75-9.5l 32,0 q 13,0 22.5,9.5t 9.5,22.5l0,56 q0,3.5 -2.25,5.75t-5.75,2.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"photoshop\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 224,192q0-26.5 -18.75-45.25t-45.25-18.75l-80,0 l0,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,224 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75\nt 4.75-11.25l0-80 l 64,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-32 zM 384,128l-32,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,16 q0,25 17.5,36.5t 46.5,11.5l 32,0 q 12.5,0 22.25,16.5t 9.75,31.5l0,16 q0,13 -9.5,22.5t-22.5,9.5l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25\nq0,26.5 18.75,45.25t 45.25,18.75l 32,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-16 q0-28 -19.25-54t-44.75-26l-32,0 l-4,0 q-7.5,0 -11.25-0.25t-8.25-1.5t-6.5-4.75t-2-9.5l0-16 q0-13.5 9.5-22.75t 22.5-9.25l 32,0 q 13.5,0 22.75,9.5t 9.25,22.5q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25q0-26.5 -18.75-45.25t-45.25-18.75z\nM 160,256l-64,0 l0-96 l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,32 q0,13.5 -9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pagebreak\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 440,200l-56,56l-16,0 l-56-56l-56,56l-16,0 l-56-56l-56,56l-16,0 l-56-56l-24,24l0-192 q0-13 9.5-22.5t 22.5-9.5l 384,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,208 zM 48,256l 16,0 l 56,56l 56-56l 16,0 l 56,56l 56-56l 16,0 l 56,56l 56-56l 16,0 l 32,32l0,192 q0,13 -9.25,22.5t-22.75,9.5\nl-384,0 q-13,0 -22.5-9.5t-9.5-22.5l0-208 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"layers2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 492.5,189.5l-189,118.5q-20,12 -47.5,12t-47.5-12l-189-118.5q-19.5-12 -19.5-29.25t 19.5-29.75l 189-118q 20-12 47.5-12t 47.5,12l 189,118q 19.5,12.5 19.5,29.75t-19.5,29.25zM 19.5,322.5l 55.5-34.5l 133.5,84q 20,12 47.5,12t 47.5-12l 133.5-84l 55.5,34.5q 19.5,12.5 19.5,29.75t-19.5,29.25l-189,118.5q-20,12 -47.5,12\nt-47.5-12l-189-118.5q-19.5-12 -19.5-29.25t 19.5-29.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"layers\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 492.5,280l-189,94q-20,10 -47.5,10t-47.5-10l-189-94q-19.5-10 -19.5-23.75t 19.5-23.75l 17-8.5l 172,86.5q 20,9.5 47.5,9.5t 47.5-9.5l 172-86.5l 17,8.5q 19.5,10 19.5,23.75t-19.5,23.75zM 492.5,152l-189,94.5q-20,9.5 -47.5,9.5t-47.5-9.5l-189-94.5q-19.5-10 -19.5-23.75t 19.5-23.75l 189-94.5q 20-9.5 47.5-9.5\nt 47.5,9.5l 189,94.5q 19.5,10 19.5,23.75t-19.5,23.75zM 19.5,360.5l 17-8.5l 172,86q 20,10 47.5,10t 47.5-10l 172-86l 17,8.5q 19.5,10 19.5,23.75t-19.5,23.75l-189,94q-20,10 -47.5,10t-47.5-10l-189-94q-19.5-10 -19.5-23.75t 19.5-23.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"adobe\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,192l-80,192l 80,0 l 41,96l-297,0 l 192-448l 128,0 l 192,448l-132.5,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"canvas\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,384l-83,0 l 46.5,80.5q 7,11.5 3.5,24t-15,19.25t-24.25,3.25t-19.25-15l-65.5-112l-35,0 l0,96 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-96 l-35,0 l-65.5,112q-6.5,11.5 -19.25,15t-24.25-3.25t-15-19.25t 3.5-24l 46.5-80.5l-83,0 q-13,0 -22.5-9.25t-9.5-22.75l0-288 q0-13 9.5-22.5t 22.5-9.5l 192,0 \nq0-13 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5l 192,0 q 13,0 22.5,9.5t 9.5,22.5l0,288 q0,13.5 -9.5,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"spray\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496.5,96q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 464.5,32q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 432.5,96q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75\nt 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 400.5,48q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 368.5,96q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 336.5,64\nq-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 304.5,96q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 240.5,96q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25\nt-4.75,11.25t-11.25,4.75zM 311.5,202q 9,9 9,22l0,224 q0,26.5 -18.75,45.25t-45.25,18.75l-192,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-223 q-0.5-13.5 8.5-23l 87.5-87l0-83 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,48 l0,35.5 zM 336.5,96q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75\nt-11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 400.5,112q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 464.5,128q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"macro\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,368.5q 20.5-36.5 58-60q 19-11.5 42-16.75t 46.75-2.75t 44.75,18.5t 32.5,44.5q-23.5,0 -44.25,7t-35.75,18.25t-29.5,25.5t-26,29.25t-25,29.5t-26.5,25.75t-30.75,18t-37.75,6.75l-0.5,0 l-0.25,0 l-0.25,0 q-20,0 -37.75-6.75t-30.75-18t-26.5-25.75t-25-29.5t-26-29.25t-29.5-25.5t-35.75-18.25t-44.25-7q 11.5-28.5 32.5-44.5\nt 44.75-18.5t 46.75,2.75t 42,16.75q 37.5,23.5 58,60l0-112.5 l0-0.5 q-43.5,2.5 -86-24q-35.5-22 -55.5-55t-18.5-65q 23.5-17 58.75-15.5t 69.75,21q 2.5-40 19.75-71.75t 43.75-45.25q 26.5,13.5 43.75,45.25t 19.75,71.75q 34.5-19.5 69.75-20.75t 58.75,15.25q 1.5,32 -18.5,65t-55.5,55q-42.5,26.5 -86,24l0,0.5 l0,112.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"write\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 268.5,205q-33-33 -82.75-74.75t-82.75-66.75l-33.5-25.5q-6-6 -14.5-6t-14.5,6q-1.5,1.5 -2,3.5t 0.25,4.5t 2,4.25t 3.75,4.5t 4,4.5t 4.25,4.25t 3.75,3.5q 12.5,9 32.75,24.5t 69.75,57t 83.5,75.5q 21,21 55.75,55.5t 59.75,59.5t 44.5,45q 29,30.5 55.5,59t 38.5,41.75l 12,13.25q 6,6 6,6.5\nt-6,6.5q-5,5.5 -35.75-16.25t-41.25-32.25q-30-30.5 -81-82q-35.5-9 -87.75-38t-97.75-61.25t-79-58.25t-42.5-35q-13-13 -25.5-45.75t-15.25-65.5t 12.75-51.25q 23.5-24 66-25.25t 77,18.75q 38,21.5 86,65.75t 88,93.5t 65,98.25t 20,78q-73.5-74 -149-149.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sortbysizedescending\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,96.5l-192,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 192,0 q 13.5,0 22.75,9.5t 9.25,22.5t-9.25,22.5t-22.75,9.5zM 109,508q-5.5,4 -13,4t-13-4l-77.5-103.5q-5.5-4 -5.5-10t 5.5-10l 59,0 l0-352 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,352 l 58.5,0 q 5,4 5,10t-5,10zM 288,160.5l 128,0 \nq 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-128,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25zM 288,288.5l 64,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.5t-22.75,9.25l-64,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.5t 22.5-9.25zM 288.25,416q 13.25,0 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.5,9.25\nt-22.75-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sortbysizeascending\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,480l-192,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 192,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25zM 416,352l-128,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.5t 22.5-9.25l 128,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.5t-22.75,9.25zM 352,224.5l-64,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25\nl 64,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 288.25,96.5q-13.25,0 -22.75-9.5t-9.5-22.75t 9.5-22.5t 22.75-9.25t 22.5,9.5t 9.25,22.5t-9.25,22.5t-22.5,9.5zM 109,508q-5.5,4 -13,4t-13-4l-77.5-103.5q-5.5-4 -5.5-10t 5.5-10l 59,0 l0-352 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,352 l 58.5,0 \nq 5,4 5,10t-5,10z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sortbynamedescending\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 370.5,480l 125.5,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-160,0 q-6.5,0 -11.25-4.5t-4.75-11.5q0-3 2-6.25t 3.25-4t 5.25-4.75l 131.5-161l-126,0 q-6.5,0 -11.25-4.5t-4.75-11.25t 4.75-11.5t 11.25-4.75l 160,0 q 5.5,0 10.75,4.75t 5.25,11.25q0,5 -10,15zM 496,224.5q-6.5,0 -11.25-4.75t-4.75-11.25l0-40 \nq0-3.5 -2.25-5.75t-5.75-2.25l-112,0 q-3,0 -5.5,2.25t-2.5,5.75l0,40 q0,6.5 -4.5,11.25t-11.25,4.75t-11.5-4.75t-4.75-11.25l0-144 q0-26.5 18.75-45.25t 45.25-18.75l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,144 q0,6.5 -4.75,11.25t-11.25,4.75zM 480,64.5q0-13.5 -9.5-22.75t-22.5-9.25l-64,0 q-13,0 -22.5,9.25\nt-9.5,22.75l0,56 q0,3 2.5,5.5t 5.5,2.5l 112,0 q 3.5,0 5.75-2.5t 2.25-5.5l0-56 zM 109,508q-5.5,4 -13,4t-13-4l-77.5-103.5q-5.5-4 -5.5-10t 5.5-10l 59,0 l0-352 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,352 l 58,0 q 5.5,4 5.5,10t-5.5,10z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sortbynameascending\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 501.5,31l-131,161.5l 125.5,0 q 6.5,0 11.25,4.5t 4.75,11.25t-4.75,11.25t-11.25,4.5l-160,0 q-6.5,0 -11.25-4.25t-4.75-11.75q0-3 2-6t 3.25-4t 5.25-4.5l 131.5-161l-126,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 160,0 q 5.5,0 10.75,4.5t 5.25,11q0,5 -10.5,15zM 109,507.5q-5.5,4.5 -13,4.5t-13-4.5\nl-77.5-103q-5.5-4 -5.5-10t 5.5-10l 59,0 l0-352 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,352 l 58.5,0 q 5,4 5,10t-5,10zM 384,288l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,144 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-40 q0-3.5 -2.25-5.75t-5.75-2.25l-112,0 q-3,0 -5.5,2.25\nt-2.5,5.75l0,40 q0,6.5 -4.5,11.25t-11.25,4.75t-11.5-4.75t-4.75-11.25l0-144 q0-26.5 18.75-45.25t 45.25-18.75zM 352,408q0,3.5 2.5,5.75t 5.5,2.25l 112,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-56 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13,0 -22.5,9.5t-9.5,22.5l0,56 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lineheight\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,192l-320,0 q-13,0 -22.25-9.5t-9.25-22.75t 9.25-22.5t 22.25-9.25l 320,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 384,96l-224,0 q-13,0 -22.25-9.5t-9.25-22.75t 9.25-22.5t 22.25-9.25l 224,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 91.5,448q 4.5,4 4.5,9.5t-4.5,9.5\nl-32.5,41q-4.5,4 -10.75,4t-10.75-4l-33-41q-4.5-4 -4.5-9.5t 4.5-9.5l 28,0 l0-384 l-28,0 q-4.5-4 -4.5-9.75t 4.5-9.25l 33-41.5q 4.5-4 10.75-4t 10.75,4l 32.5,41.5q 4.5,3.5 4.5,9.25t-4.5,9.75l-27,0 l0,384 l 27,0 zM 160,224l 256,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-256,0 q-13,0 -22.25-9.5t-9.25-22.75t 9.25-22.5\nt 22.25-9.25zM 160,320l 288,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-288,0 q-13,0 -22.25-9.5t-9.25-22.75t 9.25-22.5t 22.25-9.25zM 160,415.5l 160,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-160,0 q-13,0 -22.25-9.25t-9.25-22.5t 9.25-22.75t 22.25-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"line\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,96l-32,0 q-3.5,0 -7.5-1l-345.5,345.5q 1,4 1,7.5l0,32 q0,13 -9.25,22.5t-22.75,9.5l-32,0 q-13,0 -22.5-9.5t-9.5-22.5l0-32 q0-13.5 9.5-22.75t 22.5-9.25l 32,0 q 3.5,0 7.5,1l 345.5-345.5q-1-4 -1-7.5l0-32 q0-13 9.25-22.5t 22.75-9.5l 32,0 q 13,0 22.5,9.5t 9.5,22.5l0,32 q0,13.5 -9.5,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"polygon\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,480l-256,0 l-128-224l 128-224.5l 256,0 l 128,224.5zM 368,63.5l-224,0 l-112,192.5l 112,192l 224,0 l 112-192z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"roundedrectangle\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,512l-256,0 q-53,0 -90.5-37.5t-37.5-90.5l0-256 q0-53 37.5-90.5t 90.5-37.5l 256,0 q 53,0 90.5,37.5t 37.5,90.5l0,256 q0,53 -37.5,90.5t-90.5,37.5zM 480,128q0-40 -28-68t-68-28l-256,0 q-40,0 -68,28t-28,68l0,256 q0,40 28,68t 68,28l 256,0 q 40,0 68-28t 28-68l0-256 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"elipse\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,32q-45.5,0 -87,17.75t-71.5,47.75t-47.75,71.5t-17.75,87t 17.75,87\nt 47.75,71.5t 71.5,47.75t 87,17.75t 87-17.75t 71.5-47.75t 47.75-71.5t 17.75-87t-17.75-87t-47.75-71.5t-71.5-47.75t-87-17.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"wacom\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502,59.5l-69,69l 14.5,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,255.5 q0,26.5 -18.75,45.25t-45.25,18.75l-383.5,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-255.5 q0-26.5 18.75-45.25t 45.25-18.75l 270.5,0 l 118-118.5q 10.5-10 24.75-10t 24.5,10.25t 10.25,24.5t-10,24.75zM 96,176.5q0-7 -4.75-11.5t-11.25-4.5l-32,0 q-6.5,0 -11.25,4.5\nt-4.75,11.5l0,96 q0,6.5 4.75,11t 11.25,4.5l 32,0 q 6.5,0 11.25-4.5t 4.75-11l0-96 zM 96,368q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 zM 160,160.5q-13.5,0 -22.75,9.25t-9.25,22.75l0,255.5 q0,13.5 9.25,22.75\nt 22.75,9.25l 287.5,0 q 13,0 22.5-9.25t 9.5-22.75l0-255.5 q0-13.5 -9.25-22.75t-22.75-9.25l-46.5,0 l-143,142.5q-6,6 -22.5,10.5t-30,5.5l-14,1.5q 0.5-6 1.5-15.25t 5.5-27.25t 10.5-24l 93.5-93.5l-142.5,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"book\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,96q 13.5,0 22.75,9.25t 9.25,22.75l0,320 q0,24.5 -33.25,44.25t-62.75,19.75l-288,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 352,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-96,0 l-240,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 112,0 l0,144 \nq0,6 5.5,11t 10.5,5l 48-48l 48,48q 5,0 10.5-5t 5.5-11l0-144 l 96,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"palette\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25q 56,0 76,13.75t 20,50.25q0,16 -7.5,30.5t-16.5,23.5t-16.5,20.25t-7.5,21.75q0,48 48,48q 10.5,0 21.75-7.5t 20.25-16.5t 23.5-16.5t 30.5-7.5q 36,0 50,20.5t 14,75.5q0,52 -20.25,99.5t-54.5,81.75\nt-81.75,54.5t-99.5,20.25zM 144,416q 20,0 34-14t 14-34t-14-34t-34-14t-34,14t-14,34t 14,34t 34,14zM 112,160q-20,0 -34,14t-14,34t 14,34t 34,14t 34-14t 14-34t-14-34t-34-14zM 208,64q-20,0 -34,14t-14,34t 14,34t 34,14t 34-14t 14-34t-14-34t-34-14zM 304,352\nq-20,0 -34,14t-14,34t 14,34t 34,14t 34-14t 14-34t-14-34t-34-14zM 400,256q-20,0 -34,14t-14,34t 14,34t 34,14t 34-14t 14-34t-14-34t-34-14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"brush\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 441.5,509.5q-29.5,8 -71.25-6.75t-72.75-43.75t-31-57.5q0-17 2.5-33q 21-0.5 42.25-9.5t 35.25-23q 23.5-24 30.5-53q 31,1 49.5,22.5q 10,11.5 15.75,28.25t 7.25,32t 5.25,31t 9.5,27t 20.5,18.5t 37.75,7.25q 3,11.5 -24,31.75t-57,28.25zM 208.5,313.5q-13.5-14 -48.25-58t-72.5-96.75t-61.25-98.75t-12.5-57\nt 56.75,12.75t 98,61.75t 96.25,72.75t 57.5,48.75q 23.5,23.5 23.5,57t-23.5,57.25t-57,23.75t-57-23.5zM 282,186.5q-1,40.5 -23.25,63t-62.25,23q 2,3 22.25,24.5t 22.25,24q 42,0.5 65.75-23.5t 23.25-66q-2.5-2 -23.75-22.25t-24.25-22.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"edit\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 390,474.5l-86-26.5l 144-144l 26.5,86q-30.5,9 -53,31.5t-31.5,53zM 16,176q-16-16.5 -16-40.25t 16.5-39.75l 79.5-79.5q 16-16.5 39.75-16.5t 40.25,16l 256,256l-160,160zM 484.5,422.5l 27.5,89.5l-89.5-27.5q 8-21.5 24.25-37.75t 37.75-24.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"vector\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-32 q0-13.5 9.25-22.75t 22.75-9.25q0-55.5 -36.75-96.25t-91.25-46.75l0,15 q0,13 -9.25,22.5t-22.75,9.5l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-17 q-67.5-6 -113.75-56.25t-46.25-118.75q-13,0 -22.5-9.5t-9.5-22.5l0-32 q0-13.5 9.5-22.75t 22.5-9.25l 32,0 q 13.5,0 22.75,9.25\nt 9.25,22.75l0,32 q0,13 -9.5,22.5t-22.5,9.5q0,55.5 36.75,96.25t 91.25,46.75l0-15 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,17 q 67.5,6 113.75,56.25t 46.25,118.75q 13,0 22.5,9.25t 9.5,22.75l0,32 q0,13.5 -9.5,22.75t-22.5,9.25zM 255.75,224q-13.25,0 -22.5,9.5\nt-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bucket\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 498,495.5q-14,16.5 -34,16.5t-34-16.5t-14-39.5t 14-39.5l 18-25.5l0-98.5 q0,13 -8.5,21.5l-181,181.5q-17,16.5 -40.5,16.5t-40.5-16.5l-161-161q-16.5-17 -16.5-40.5t 16.5-40.5l 143.5-143l0,50 q0,26.5 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25l0-38 l 134,134l 26,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,29 l0,73.5 l 18,25.5\nq 14,16.5 14,39.5t-14,39.5zM 224.25,192.5q-13.25,0 -22.75-9.5t-9.5-22.5l0-128 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,128 q0,13 -9.25,22.5t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"selectionintersect\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25-4.75t 4.75-11.25t 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 q0,26.5 -18.75,45.25t-45.25,18.75zM 496,352l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75\nt 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 496,224l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 496,96l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25t-4.75-11.25t-11.25-4.75t-11.25-4.75t-4.75-11.25l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75l 16,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,16 q0,6.5 -4.75,11.25t-11.25,4.75zM 336,512l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 336,64l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 208,64l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 212,168.5l 44,44l 43.5-43.5q 9-9 21.75-9t 21.75,9\nt 9,21.75t-9,21.75l-43.5,43.5l 43.5,43.5q 9,9 9,21.75t-9,21.75t-21.75,9t-21.75-9l-43.5-43.5l-43.5,43.5q-9,9 -21.75,9t-21.75-9t-9-21.75t 9-21.75l 43.5-43.5l-44-44q-9-9 -9-21.75t 9-21.75t 21.75-9t 21.75,9zM 80,512l-16,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-16 q0-6.5 4.75-11.25\nt 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 80,64q-6.5,0 -11.25,4.75t-4.75,11.25t-4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 q0-26.5 18.75-45.25t 45.25-18.75l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25\nl0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 16,160l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75zM 16,288l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25\nl0-32 q0-6.5 4.75-11.25t 11.25-4.75zM 176,448l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"selectionrmove\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25-4.75t 4.75-11.25t 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 q0,26.5 -18.75,45.25t-45.25,18.75zM 496,352l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75\nt 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 496,224l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 496,96l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25t-4.75-11.25t-11.25-4.75t-11.25-4.75t-4.75-11.25l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75l 16,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,16 q0,6.5 -4.75,11.25t-11.25,4.75zM 352,288l-192,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 192,0 q 13,0 22.5,9.25t 9.5,22.75t-9.25,22.75t-22.75,9.25zM 336,64l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25\nt 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 208,64l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 80,512l-16,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-16 q0-6.5 4.75-11.25\nt 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 80,64q-6.5,0 -11.25,4.75t-4.75,11.25t-4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 q0-26.5 18.75-45.25t 45.25-18.75l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25\nl0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 16,160l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75zM 16,288l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25\nl0-32 q0-6.5 4.75-11.25t 11.25-4.75zM 176,448l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75zM 304,448l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"selectionadd\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25-4.75t 4.75-11.25t 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 q0,26.5 -18.75,45.25t-45.25,18.75zM 496,352l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75\nt 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 496,224l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 496,96l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25t-4.75-11.25t-11.25-4.75t-11.25-4.75t-4.75-11.25l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75l 16,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,16 q0,6.5 -4.75,11.25t-11.25,4.75zM 352,288l-64,0 l0,64 q0,13 -9.25,22.5t-22.75,9.5t-22.75-9.5t-9.25-22.5l0-64 l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 64,0 l0-64 q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.25\nt 9.25,22.75l0,64 l 64,0 q 13,0 22.5,9.25t 9.5,22.5t-9.25,22.75t-22.75,9.5zM 336,64l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 208,64l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75\nl 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 80,512l-16,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 80,64q-6.5,0 -11.25,4.75\nt-4.75,11.25t-4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 q0-26.5 18.75-45.25t 45.25-18.75l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 16,160l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75zM 16,288l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75zM 176,448l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75zM 304,448l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"circleselection\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 447,223.5q-7.5-43 -33.5-79.5l 46-46q 44,56 52.5,125.5l-65,0 zM 288.5,65l0-65 q 69.5,8.5 125.5,52.5l-46,46q-36.5-26 -79.5-33.5zM 98,52.5q 56-44 125.5-52.5l0,65 q-43,7.5 -79.5,33.5zM 98.5,144q-26,36.5 -33.5,79.5l-65,0 q 8.5-69.5 52.5-125.5zM 98.5,368l-46,46q-44-56 -52.5-125.5l 65,0 q 7.5,43 33.5,79.5z\nM 223.5,447l0,65 q-69.5-8.5 -125.5-52.5l 46-46q 36.5,26 79.5,33.5zM 414,459.5q-56,44 -125.5,52.5l0-65 q 43-7.5 79.5-33.5zM 447,288.5l 65,0 q-8.5,69.5 -52.5,125.5l-46-46q 26-36.5 33.5-79.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"rectangleselection\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25-4.75t 4.75-11.25t 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 q0,26.5 -18.75,45.25t-45.25,18.75zM 496,352l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75\nt 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 496,224l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 496,96l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25t-4.75-11.25t-11.25-4.75t-11.25-4.75t-4.75-11.25l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75l 16,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,16 q0,6.5 -4.75,11.25t-11.25,4.75zM 336,512l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 336,64l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 208,512l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 208,64l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 80,512l-16,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75z\nM 80,64q-6.5,0 -11.25,4.75t-4.75,11.25t-4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 q0-26.5 18.75-45.25t 45.25-18.75l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 16,160l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 \nq-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75zM 16,288l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"crop\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 445,110q 3,10 3,18l0,256 l 32,0 q 13,0 22.5,9.25t 9.5,22.5t-9.25,22.75t-22.75,9.5l-32,0 l0,32 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-32 l-256,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 l-32,0 q-13,0 -22.5-9.25t-9.5-22.75t 9.25-22.75t 22.75-9.25l 32,0 l0-32 q0-13 9.25-22.5t 22.75-9.5t 22.75,9.5\nt 9.25,22.5l0,32 l 256,0 q 8,0 17.5,2.5l 58-58q 9-9 21.75-9t 21.75,9t 9,21.75t-9,21.75zM 384,171l-213,213l 213,0 l0-213 zM 128,128l0,212 l 212-212l-212,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"font\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480.25,160q-13.25,0 -22.75-9.5t-9.5-22.5q0-26.5 -18.75-45.25t-45.25-18.75l-32,0 q-13,0 -22.5,9.25t-9.5,22.75l0,320 q0,13 9.5,22.5t 22.75,9.5t 22.5,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-192,0 q-13,0 -22.5-9.25t-9.5-22.75t 9.5-22.75t 22.75-9.25t 22.5-9.5t 9.25-22.5l0-320 q0-13.5 -9.25-22.75t-22.75-9.25\nl-32,0 q-26.5,0 -45.25,18.75t-18.75,45.25q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l0-96 q0-13 9.5-22.5t 22.5-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.5l0,96 q0,13.5 -9.25,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"eyedropper\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 500.75,500.75q-11.25,11.25 -27.25,11.25t-27-11.5l-28-27.5l-82.5-25q-25.5-1 -43.5-19l-126-125.5l-21.5,21.5q-11,11 -27,11t-27.25-11.25t-11.25-27t 11.5-27.25l 2.5-2.5l-57.5-57.5q-36-36 -36-87t 36-87t 87-36t 87,36l 57.5,57.5l 2.5-2.5q 11-11.5 27-11.5t 27.25,11.25t 11.25,27.25t-11,27.5l-21,21\nl 125.5,125.5q 18.5,18 18.5,44l 24.5,81l 29,29q 11,11 11,27t-11.25,27.25zM 372.5,318.5l-110-110l-55,54.5l 110,110.5q 11.5,11.5 27.5,11.5t 27.25-11.5t 11.25-27.5t-11-27.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"inkpen\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,192l 42.5,0 l 53.5,288l-128-128l0-32 q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75l 32,0 l 128,128l-288-53.5l0-42.5 q0-88 -39.5-162q-27.5,4 -54-4.5t-46.5-29l-17-16.5q-35-35 -35-84.5t 35-84.5t 84.75-35t 84.75,35l 16.5,16.5q 20.5,20.5 29,47.25t 4.5,54.25\nq 74,39 161.5,39z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"threecolumn\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-448 q0-13 9.25-22.5t 22.75-9.5l 32,0 q 13,0 22.5,9.5t 9.5,22.5l0,448 q0,13 -9.5,22.5t-22.5,9.5zM 320,512l-128,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 128,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75z\nM 320,80q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,352 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-352 zM 64,512l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-448 q0-13 9.25-22.5t 22.75-9.5l 32,0 q 13,0 22.5,9.5t 9.5,22.5l0,448 q0,13 -9.5,22.5t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"twocolumnleft2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13 -9.5,22.5t-22.5,9.5zM 480,320l-64,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13 -9.5,22.5t-22.5,9.5z\nM 480,128l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13 -9.5,22.5t-22.5,9.5zM 256,512l-192,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 192,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25\nt-45.25,18.75zM 256,80q0-6.5 -4.75-11.25t-11.25-4.75l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,352 q0,6.5 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-352 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"twocolumnleft\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-96,0 q-13,0 -22.5-9.5t-9.5-22.5l0-448 q0-13 9.5-22.5t 22.5-9.5l 96,0 q 13,0 22.5,9.5t 9.5,22.5l0,448 q0,13 -9.25,22.5t-22.75,9.5zM 256,512l-192,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 192,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 256,80\nq0-6.5 -4.75-11.25t-11.25-4.75l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,352 q0,6.5 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-352 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"twocolumnright2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-192,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 192,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,80q0-6.5 -4.75-11.25t-11.25-4.75l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,352 q0,6.5 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-352 zM 96,512l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13 -9.5,22.5t-22.5,9.5zM 96,320l-64,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13 -9.5,22.5\nt-22.5,9.5zM 96,128l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13 -9.5,22.5t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"twocolumnright\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-192,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 192,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,80q0-6.5 -4.75-11.25t-11.25-4.75l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,352 q0,6.5 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-352 zM 128,512l-96,0 q-13,0 -22.5-9.5t-9.5-22.5l0-448 q0-13 9.5-22.5t 22.5-9.5l 96,0 q 13,0 22.5,9.5t 9.5,22.5l0,448 q0,13 -9.25,22.5t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"transform\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,416q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-96,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-96,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 \nq0-6.5 4.75-11.25t 11.25-4.75l 16,0 l0-96 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 l0-96 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 96,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 96,0 l0-16 \nq0-6.5 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,96 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,96 l 16,0 zM 256,472q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25\nl-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 zM 64,472q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 zM 64,280q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 \nq-3.5,0 -5.75,2.25t-2.25,5.75l0,16 zM 96,72q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 zM 288,72q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 \nq 3.5,0 5.75-2.25t 2.25-5.75l0-16 zM 416,112l0-16 l-96,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-96,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,96 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,96 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25\nl0,16 l 96,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 96,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 l0-96 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 l0-96 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25zM 480,72q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25\nt-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 zM 480,264q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 zM 472,448l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75\nt 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25zM 280,288l-16,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-16 q0-3.5 2.25-5.75t 5.75-2.25l 16,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,16 q0,3.5 -2.25,5.75t-5.75,2.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"violin\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 468.5,465q-48-57.5 -52-103.5l-9-9l 8-8l-23.5-24l-72,72l 24,24l 8-8l 4.5,4.5q 46.5,7 105.5,58q-27.5,25 -65.5,35.25t-74.25,3.25t-59.25-30q-9.5-9.5 -19.5-25.5q 12.5-17 12.5-37.5q0-26.5 -18.75-45.25t-45.25-18.75q-9.5,0 -20,3.5q-4.5-3.5 -5.5-5q-30-29.5 -36.75-78.25t 15.75-89.25l-77-94\nq-7.5,7 -18,7t-18-7.5l-25-25q-7.5-8 -7.5-18.75t 7.5-18.25l 18.5-18.5q 8-8 18.75-8t 18.25,8l 25.5,25q 7,7 7.25,17.5t-6.75,18l 94,77q 40-22.5 88.75-15.75t 78.75,36.75q 1,1.5 5,5.5q-3.5,10.5 -3.5,20q0,26.5 18.5,45.25t 45,18.75q 21,0 38-12.5q 16.5,10 26,19.5q 23,23.5 30,60.5t-4,75.5\nt-37,65.5zM 216,176.5l-40,40l 40,40l 40-40zM 240,328.5l 40,40l 24-24l-40-40zM 328,240.5l-24,24l 40,40l 24-24z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tv\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-224 q0-26.5 18.75-45.25t 45.25-18.75l 174,0 l-98-98.5q-6,2.5 -12,2.5q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.75-9.25t 22.5,9.25t 9.25,22.75q0,6 -2.5,12l 98.5,98l 98.5-98q-2.5-6 -2.5-12q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.5t-9.25,22.75\nt-22.75,9.5q-6,0 -12-2.5l-98,98.5l 174,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,224 q0,26.5 -18.75,45.25t-45.25,18.75zM 352,310.5q0-82.5 -32-86.5l-256,0 q-9.5,1.5 -16,8.5t-9.5,14.75t-4.75,20.5t-1.75,19.5l0,18.25 l0,5 l0,51 q0,12 1,23.75t 4,26.5t 9.75,24.75t 17.25,11.5l 256,0 q 7.5-1 13.5-5.75t 9.25-13.5\nt 5.25-16.25t 2.75-19t 1-17t 0.25-15l0-51 zM 464,224l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 464,288l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\nM 464,352l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 464,416l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"headphones2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,416l-32,0 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-160 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 q0-74 -41.25-117t-118.75-43t-118.75,43t-41.25,117l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,160 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 q0,26.5 18.75,45.25t 45.25,18.75l 32,0 q0-13.5 9.25-22.75t 22.75-9.25l 32,0 \nq 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-16,0 l-16,0 l-64,0 q-40,0 -68-28t-28-68q-26.5,0 -45.25-28t-18.75-68q0-26 8.75-48t 23.25-34.5l0-13.5 q0-45.5 17.75-87t 47.75-71.5t 71.5-47.75t 87-17.75t 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87l0,13.5 q 14.5,12.5 23.25,34.5t 8.75,48\nq0,40 -18.75,68t-45.25,28z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"podcast\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,336q-13.5,0 -22.75-9.5t-9.25-22.5l0-48 q0-52 -25.75-96.25t-70-70t-96.25-25.75t-96.25,25.75t-70,70t-25.75,96.25l0,48 q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l0-48 q0-52 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5l0,48 \nq0,13 -9.25,22.5t-22.75,9.5zM 256,96q 43.5,0 80.25,21.5t 58.25,58.25t 21.5,80.25l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,1 l0,1 l0,1 l0,1 l0,1 l0,1 l0,1 l0,4 q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l0-32 q0-40 -28-68t-68-28t-68,28\nt-28,68l0,32 q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l0,0 l0,0 l0,0 l0,0 l0-0.5 l0,0 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-5 q0-43.5 21.5-80.25t 58.25-58.25t 80.25-21.5zM 256,192q 26.5,0 45.25,18.75t 18.75,45.25\nt-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 224,352l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l-32,96q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l-32-96q0-13.5 9.25-22.75t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"radio\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,256l-16,0 l0,128 q0,26.5 -18.75,45.25t-45.25,18.75l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-224,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 q-26.5,0 -45.25-18.75t-18.75-45.25l0-288 q0-26.5 18.75-45.25t 45.25-18.75l 352,0 \nq 26.5,0 45.25,18.75t 18.75,45.25l0,32 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75zM 160,416q 40,0 68-28t 28-68t-28-68t-68-28t-68,28t-28,67.75t 28,68t 68,28.25zM 416,112q0-6.5 -4.75-11.25t-11.25-4.75l-320,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 \nq0,6.5 4.75,11.25t 11.25,4.75l 48,0 l 48-64l 48,64l 176,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 zM 160,288q 13.5,0 22.75,9.25t 9.25,22.75t-9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75t 9.25-22.75t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"hdtv\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,415.5l0,32.5 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-224,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 48,0 l0-32.5 q-192-3.5 -192-47.5l0-272 q0-13.5 9.25-22.75t 22.75-9.25l 448,0 q 13,0 22.5,9.25t 9.5,22.75l0,272 q0,44 -192,47.5zM 480,96l-448,0 l0,256 l 448,0 l0-256 zM 64,320l0-192 \nl 288,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"album\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-448 q0-13 9.25-22.5t 22.75-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.5l0,448 q0,13.5 -9.5,22.75t-22.5,9.25zM 480,64q0-13 -9.5-22.5t-22.5-9.5l-352,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,384 q0,13.5 9.25,22.75t 22.75,9.25l 352,0 q 13,0 22.5-9.25t 9.5-22.75l0-384 zM 272,448\nq-48,0 -88.5-23.5t-64-64t-23.5-88.5t 23.5-88.5t 64-64t 88.5-23.5t 88.5,23.5t 64,64t 23.5,88.5t-23.5,88.5t-64,64t-88.5,23.5zM 272,192q-33,0 -56.5,23.5t-23.5,56.5t 23.5,56.5t 56.5,23.5t 56.5-23.5t 23.5-56.5t-23.5-56.5t-56.5-23.5zM 272,320q-20,0 -34-14t-14-34t 14-34t 34-14t 34,14t 14,34t-14,34\nt-34,14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"piano\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-224 q 13,0 22.5-9.5t 9.5-22.5l0-224 l 32,0 q 13,0 22.5,9.5t 9.5,22.5l0,448 q0,13 -9.5,22.5t-22.5,9.5zM 384,256l0,224 q0,13 -9.5,22.5t-22.5,9.5l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-448 q0-13 9.25-22.5t 22.75-9.5l 32,0 l0,224 q0,13.5 9.25,22.75t 22.75,9.25zM 224,512l-32,0 \nq-13.5,0 -22.75-9.5t-9.25-22.5l0-224 q 13,0 22.5-9.5t 9.5-22.5l0-224 l 32,0 q 13,0 22.5,9.5t 9.5,22.5l0,448 q0,13 -9.5,22.5t-22.5,9.5zM 96,512l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-448 q0-13 9.25-22.5t 22.75-9.5l 32,0 l0,224 q0,13 9.25,22.5t 22.75,9.5l0,224 q0,13 -9.5,22.5t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"video3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l0-16 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,16 l-320,0 l0-16 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,16 q-13.5,0 -22.75-9.5t-9.25-22.5l0-416 q0-13.5 9.25-22.75t 22.75-9.25l0,16 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-16 \nl 320,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-16 q 13,0 22.5,9.25t 9.5,22.75l0,416 q0,13 -9.5,22.5t-22.5,9.5zM 96,112q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 96,208\nq0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 96,304q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 96,400\nq0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 480,112q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 480,208\nq0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 480,304q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 480,400\nq0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"videocamera\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,416l0,4 q0,8 -0.25,11.5t-1.5,8.25t-4.75,6.5t-9.5,1.75l-112-74.5l0,74.5 q0,13 -9.5,22.5t-22.5,9.5l-288,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-192 q0-13 9.25-22.5t 22.75-9.5l 32,0 l 224,0 l 32,0 q 13,0 22.5,9.5t 9.5,22.5l0,74.5 l 112-74.5q 6,0 9.5,1.75t 4.75,6.5t 1.5,8.25t 0.25,11.5l0,4 l0,128 zM0,128.25\nq0-39.75 28-68t 67.75-28.25t 68,28t 28.25,68t-28.25,68t-68,28t-67.75-28t-28-67.75zM 224,128.25q0-39.75 28-68t 67.75-28.25t 68,28t 28.25,68t-28.25,68t-68,28t-67.75-28t-28-67.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"camera\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 46.5,0 l 21-47q 5.5-21 27.5-35t 49-14l 96,0 q 27,0 49,14t 27,35l 21.5,47l 46.5,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,256 q0,26.5 -18.75,45.25t-45.25,18.75zM 256,160q-43.5,0 -80.25,21.5t-58.25,58.25t-21.5,80.25t 21.5,80.25\nt 58.25,58.25t 80.25,21.5t 80.25-21.5t 58.25-58.25t 21.5-80.25t-21.5-80.25t-58.25-58.25t-80.25-21.5zM 256,448q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5t-37.5,90.5t-90.5,37.5zM 256,224q-40,0 -68,28t-28,68t 28,68t 68,28t 68-28t 28-68t-28-68t-68-28z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"guitar\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 466,466q-42.5,42.5 -99.5,45.75t-94.5-34.25q-13-13.5 -20.5-23.25t-11.5-22.25q0-12.5 -6.5-28.75t-18.5-28.75q-15-15 -31.25-22.25t-27.75-5.25q-24.5-28.5 -26.75-72.25t 19.25-78.25l-70.5-70.5q-20,6 -34.5-8l-33.5-33.5q-10-10.5 -10-25t 10-24.5l 25-24.5q 10-10.5 24.5-10.5t 25,10.5l 33.5,33q 14,14.5 8,34.5l 70.5,70.5\nq 34.5-21.5 78.25-19.25t 72.25,26.75q-2,11.5 5.25,27.75t 22.25,31.25q 12.5,12 28.75,18.5t 28.75,6.5q 12.5,4 22.25,11.5t 23.25,20.5q 37.5,37.5 34.25,94.5t-45.75,99.5zM 272,224q-20,0 -34,14t-14,34t 14,34t 34,14t 34-14t 14-34t-14-34t-34-14zM 429,352l-77,77l 19,19l 77-77z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"eject\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 20,256q-20-18.5 -6.5-31l 231.5-217.5q 7.5-7 18.75-7t 19.25,7l 231.5,217.5q 13.5,13 -6.5,31l-488,0 zM 72,384l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"previous2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512q-26.5,0 -45.25-18.75t-18.75-45.25l0-384.5 q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25l0,384.5 q0,26.5 -18.75,45.25t-45.25,18.75zM 225,506.5l-217.5-231.5q-7.5-8 -7.5-19t 7.5-19l 217.5-231.5q 12.5-13.5 31,6l0,488.5 q-18.5,20 -31,6.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"next2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 504.5,275l-217.5,231.5q-12.5,13.5 -31-6.5l0-488.5 q 18.5-19.5 31-6l 217.5,231.5q 7.5,8 7.5,19t-7.5,19zM 64,512q-26.5,0 -45.25-18.75t-18.75-45.25l0-384.5 q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25l0,384.5 q0,26.5 -18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"repeatone\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,384q0,26.5 -18.75,45.25t-45.25,18.75l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-192 q0-26.5 18.75-45.25t 45.25-18.75l 64,0 l0-84 q 18.5-20 31-6.5l 121.5,103.5q 7.5,8 7.5,19.25t-7.5,18.75l-121.5,104q-12.5,13 -31-7l0-84 l-32,0 q-13,0 -22.5,9.25t-9.5,22.75l0,128 q0,13 9.5,22.5t 22.5,9.5l 320,0 \nq 13.5,0 22.75-9.5t 9.25-22.5l0-128 q0-13.5 -9.25-22.75t-22.75-9.25l-32,0 l0,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l0,0 l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,192 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"boombox\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,480l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-256 q0-13 9.25-22.5t 22.75-9.5l 32,0 l0-96 q0-13 9.5-22.5t 22.5-9.5l 320,0 q 13,0 22.5,9.5t 9.5,22.5l0,96 l 32,0 q 13,0 22.5,9.5t 9.5,22.5l0,256 q0,13 -9.5,22.5t-22.5,9.5zM 384,112q0-6.5 -4.75-11.25t-11.25-4.75l-224,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,48 l 256,0 l0-48 zM 384,224\nq-40,0 -68,28t-28,68q0,36.5 25,64l-114,0 q 25-27.5 25-64q0-40 -28-68t-68-28t-68,28t-28,68t 28,68t 68,28l 256,0 q 40,0 68-28t 28-68t-28-68t-68-28zM 384,384q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\nM 64,320q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"soundwave\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-64 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0,128 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75\nt-11.25-4.75t-4.75-11.25l0-160 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-64 q0,6.5 -4.75,11.25\nt-11.25,4.75t-11.25-4.75t-4.75-11.25l0-96 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-32 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-32 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16 \nq-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l0-16 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0-96 q0-6.5 4.75-11.25\nt 11.25-4.75t 11.25,4.75t 4.75,11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,96 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,64 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0-160 q0-6.5 4.75-11.25t 11.25-4.75\nt 11.25,4.75t 4.75,11.25l0,32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,128 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,48 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75\nt-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"movie5\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 485.5,124l-0.5,0 l-35.5-59.5l-63.5,8.5l 40,60l-106,16.5l-40.5-60l-58,9l 40.5,60l-110,17.5l-38.5-63.5l-61,12l 40.5,60.5l-47.5,7.5l 52,0 l-32,63.5l 64,0 l 32-63.5l 96,0 l-32,63.5l 64,0 l 32-63.5l 96,0 l-32,63.5l 64,0 l 32-63.5q 13,0 22.5,9.25t 9.5,22.25l0,256 q0,13.5 -9.5,22.75t-22.5,9.25l-447.5,0 \nq-13.5,0 -22.75-9.25t-9.25-22.75l0-256 q0-13 9.25-22.25t 22.75-9.25q-2.5-1 -6-2.75t-10.25-8.75t-8.25-15.5l-8-62q-1.5-12.5 6.75-22.75t 21.25-11.75l 441-68.5q 13-1.5 23.25,6.5t 11.75,20.5l 8,62q 1.5,12.5 -6.75,22.75t-21.25,11.75zM 81.5,448l 352,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-352,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 81.5,352l 352,0 q 6.5,0 11.25-4.5t 4.75-11.25t-4.75-11.5t-11.25-4.75l-352,0 q-6.5,0 -11.25,4.75t-4.75,11.5t 4.75,11.25t 11.25,4.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"vlc\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 32,0 l 24.5-64l 335,0 l 24.5,64l 32,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5zM 211.5,64l 12.5-32q 11-32 32-32q 22.5,0 32,32l 12.5,32l-89,0 zM 349.5,192l-187,0 l 24.5-64l 138,0 zM 138,256l 236,0 l 25,64l-286,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"microphone\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 500,465l-35,35.5q-8,8 -16.75,10.5t-16.75-3.5l-256-188q 57.5-5.5 98-46.25t 46-98.25l 188,256.5q 6,8 3.5,16.75t-11,16.75zM 144,288q-59.5,0 -101.75-42.25t-42.25-101.75t 42.25-101.75t 101.75-42.25t 101.75,42.25t 42.25,101.75t-42.25,101.75t-101.75,42.25zM 48,96q-6.5,0 -11.25,4.75\nt-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 48,160q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 112,32q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25\nt-11.25-4.75zM 112,96q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 112,160q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 112,224q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25\nt 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 176,32q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 176,96q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 176,160\nq-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 176,224q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 240,96q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75\nt 4.75-11.25t-4.75-11.25t-11.25-4.75zM 256,176q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ipod\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 352,512l-192,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 192,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 384,64q0-13 -9.25-22.5t-22.75-9.5l-192,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,96 q0,13.5 9.25,22.75t 22.75,9.25l 192,0 q 13,0 22.5-9.25\nt 9.5-22.75l0-96 zM 256,224q-53,0 -90.5,37.5t-37.5,90.5t 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5t-37.5-90.5t-90.5-37.5zM 256,448q-40,0 -68-28t-28-68t 28-68t 68-28t 68,28t 28,68t-28,68t-68,28zM 256,320q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25t 22.75-9.25t 9.25-22.75\nt-9.25-22.75t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"equalizer2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,384l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5zM 480,288l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5zM 480,192l-64,0 q-13.5,0 -22.75-9.25t-9.25-22.75\nt 9.25-22.75t 22.75-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5zM 288,480l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.5,22.75t-22.5,9.5zM 288,384l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.5\nt-9.5,22.75t-22.5,9.5zM 288,288l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.5,22.75t-22.5,9.5zM 96,480l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.5,22.75t-22.5,9.5zM 96,384l-64,0 \nq-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 96,288l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 96,192l-64,0 q-13.5,0 -22.75-9.25t-9.25-22.75\nt 9.25-22.75t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75t-9.25,22.75t-22.75,9.25zM 96,96l-64,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.5,22.75t-22.5,9.5zM 416,416l 64,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-64,0 \nq-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"equalizer\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,352l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 416,32q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.25t 9.25,22.75l0,224 l-64,0 l0-224 zM 304,192l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 224,32q0-13.5 9.5-22.75t 22.5-9.25t 22.5,9.25t 9.5,22.75l0,64 l-64,0 l0-64 zM 112,416l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 \nq0,6.5 -4.75,11.25t-11.25,4.75zM 32,32q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.25t 9.25,22.75l0,288 l-64,0 l0-288 zM 96,480q0,13 -9.25,22.5t-22.75,9.5t-22.75-9.5t-9.25-22.5l0-32 l 64,0 l0,32 zM 288,480q0,13 -9.5,22.5t-22.5,9.5t-22.5-9.5t-9.5-22.5l0-256 l 64,0 l0,256 zM 480,480q0,13 -9.5,22.5t-22.75,9.5\nt-22.5-9.5t-9.25-22.5l0-96 l 64,0 l0,96 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"music2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,208q0,30 -17.25,64.75t-40,57t-38.75,22.25q-12.5,0 -22.25-10t-9.75-22q0-13 9.25-22.5t 22.75-9.5q-0.5-4 -2-10.5t-7-23t-12-29t-18-23t-25-10.5q-17.5,0 -24.75,6.75t-7.25,25.25l0,224 q0,26.5 -28,45.25t-68,18.75t-68-18.75t-28-45.25t 28-45.25t 68-18.75q 15.5,0 32,4l0-356 \nq0-13 9.5-22.5t 22.5-9.5q 20,0 112,64q 16,10.5 26.5,17.75t 28.5,22.75t 28.75,29.5t 19.5,34t 8.75,40z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"voice\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,413l0,35 l 64,0 q 13,0 22.5,9.25t 9.5,22.5t-9.25,22.75t-22.75,9.5l-192,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 64,0 l0-35 q-68.5-11.5 -114.25-64.75t-45.75-124.25q0-13 9.25-22.5t 22.75-9.5t 22.75,9.5t 9.25,22.5q0,53 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5\nt 9.25,22.5q0,71 -45.75,124.25t-114.25,64.75zM 256,320q-40,0 -68-28t-28-68l0-128 q0-40 28-68t 68-28t 68,28t 28,68l0,128 q0,40 -28,68t-68,28z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"previous\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 481,506.5l-281.5-231.5q-7.5-7.5 -7.5-18.75t 7.5-19.25l 281.5-231.5q 12.5-13.5 31,6.5l0,488 q-18.5,20 -31,6.5zM 64,512q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"next\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 31,506.5q-12.5,13.5 -31-6.5l0-488 q 18.5-20 31-6.5l 281.5,231.5q 7.5,8 7.5,19.25t-7.5,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"record\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,0q 69.5,0 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25t-128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"shuffle\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 383,250.5q-12.5,13.5 -31-6.5l0-83 q-61.5,5 -98.5,26q-7.5-30.5 -35-55q 56-36 133.5-36.5l0-84 q 18.5-19.5 31-6l 121.5,103.5q 7.5,8 7.5,19t-7.5,19zM 224,288q0,23 36.25,40.5t 91.75,22l0-83 q 18.5-19.5 31-6l 121.5,103.5q 7.5,8 7.5,19t-7.5,19l-121.5,103.5q-12.5,13.5 -31-6.5l0-84 q-52,0 -96.25-17.25\nt-70-46.75t-25.75-64l0-64 q0-23.5 -36.25-41t-91.75-22l0-1 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.75t 22.5-9.5q 52,0 96.25,17.25t 70,46.75t 25.75,64.5l0,64 zM 32,352l0-1.5 q 61.5-5 98.5-26q 7.5,30 35,55q-56,36.5 -133.5,36.5q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"repeat\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,416l-288,0 l0,84.5 q-18.5,19.5 -31,6l-121.5-103.5q-7.5-8 -7.5-19t 7.5-19l 121.5-103.5q 12.5-13.5 31,6.5l0,84 l 256,0 q 13,0 22.5-9.25t 9.5-22.75l0-64 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,96 q0,26.5 -18.75,45.25t-45.25,18.75zM 383,251q-12.5,13.5 -31-6.5l0-84.5 l-256,0 q-13.5,0 -22.75,9.5t-9.25,22.5\nl0,64 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-96 q0-26.5 18.75-45.25t 45.25-18.75l 288,0 l0-84 q 18.5-19.5 31-6l 121.5,103.5q 7.5,8 7.5,19t-7.5,19z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pause\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-64,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 128,512l-64,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 \nq0,26.5 -18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"stop\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 64,0l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"play\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 63,3.5l 409.5,233.5q 8,4.5 8,19.75t-8,18.75l-409.5,233.5q-6,4 -15,2.75t-16-8.75l0-492.5 q 15.5-17 31-7z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"rewind\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 481,506.5l-217.5-231.5q-7.5-8 -7.5-19.25t 7.5-18.75l 217.5-232q 12.5-13 31,7l0,488.5 q-18.5,19.5 -31,6zM 225,506.5l-217.5-231.5q-7.5-8 -7.5-19.25t 7.5-18.75l 217.5-232q 12.5-13 31,7l0,488.5 q-18.5,19.5 -31,6z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fastforward\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 504.5,275l-217.5,231.5q-12.5,13.5 -31-6.5l0-488 q 18.5-20 31-6.5l 217.5,231.5q 7.5,8 7.5,19.25t-7.5,18.75zM 31,506.5q-12.5,13.5 -31-6.5l0-488 q 18.5-20 31-6.5l 217.5,231.5q 7.5,8 7.5,19.25t-7.5,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"music\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 415.75,448q-39.75,0 -67.75-18.75t-28-45.25t 28-45.25t 68-18.75q 15.5,0 32,4l0-189.5 l-256,51l0,262.5 q0,26.5 -28,45.25t-68,18.75t-68-18.75t-28-45.25t 28-45.25t 68-18.75q 15.5,0 32,4l0-228 l0-64 q0-13 9.5-22.5t 22.5-9.5l 320-64q 13,0 22.5,9.25t 9.5,22.75l0,352 q0,26.5 -28.25,45.25t-68,18.75z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"headphones\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,384q0,53 -37.5,90.5t-90.5,37.5l0-256 q 15.5,0 32,4l0-36 q0-74 -41.25-117t-118.75-43t-118.75,43t-41.25,117l0,36 q 16.5-4 32-4l0,256 q-53,0 -90.5-37.5t-37.5-90.5q0-48 32-84.5l0-75.5 q0-45.5 17.75-87t 47.75-71.5t 71.5-47.75t 87-17.75t 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87l0,75.5 \nq 32,36.5 32,84.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"movie4\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5q0-52 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5q0,69.5 -34.25,128.5t-93.25,93.25t-128.5,34.25zM 352,448q 26.5,0 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75t-45.25,18.75\nt-18.75,45.25t 18.75,45.25t 45.25,18.75zM 255.75,288q 13.25,0 22.75-9.5t 9.5-22.5t-9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.75t 9.25,22.5t 22.5,9.25zM 160,448q 26.5,0 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75zM 112,144q-26.5,0 -45.25,18.75\nt-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75zM 256,32q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75zM 400,144q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75\nt 18.75-45.25t-18.75-45.25t-45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"play2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 256,64q-79.5,0 -135.75,56.25t-56.25,135.75t 56.25,135.75t 135.75,56.25t 135.75-56.25t 56.25-135.75\nt-56.25-135.75t-135.75-56.25zM 192,144l 192,112l-192,112l0-224 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"video\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l0-32 l-320,0 l0,32 l-96,0 l0-480 l 96,0 l0,32 l 320,0 l0-32 l 96,0 l0,480 l-96,0 zM 64,64l-32,0 l0,32 l 32,0 l0-32 zM 64,128l-32,0 l0,32 l 32,0 l0-32 zM 64,192l-32,0 l0,32 l 32,0 l0-32 zM 64,256l-32,0 l0,32 l 32,0 l0-32 zM 64,320l-32,0 l0,32 l 32,0 l0-32 zM 64,384l-32,0 l0,32 l 32,0 l0-32 zM 64,448l-32,0 l0,32 l 32,0 l0-32 zM 416,96l-320,0 l0,352 l 320,0 l0-352 z\nM 480,64l-32,0 l0,32 l 32,0 l0-32 zM 480,128l-32,0 l0,32 l 32,0 l0-32 zM 480,192l-32,0 l0,32 l 32,0 l0-32 zM 480,256l-32,0 l0,32 l 32,0 l0-32 zM 480,320l-32,0 l0,32 l 32,0 l0-32 zM 480,384l-32,0 l0,32 l 32,0 l0-32 zM 480,448l-32,0 l0,32 l 32,0 l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"evernote\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 481,320q0,88.5 -12,129.5t-40,48q-1.5,0.5 -11,3.25t-15.5,4t-16.75,3.25t-22.75,3t-26,1q-52,0 -64-16q-5-7 -10.5-22.5t-5.5-25.5q0-33.5 14.25-48.75t 49.75-15.25q 32,0 32,16q0,0.5 -3.5,4.25t-11.5,7.75t-17,4q-7,0 -19.5,10.25t-12.5,21.75q0,10.5 13,21.25t 35,10.75q 9.5,0 15.5-0.5t 13-2.25\nt 10.75-5t 6.25-9.25t 2.5-15l0-64 q0-7 -1-12.25t-2.5-8.75t-4.75-5.75t-5.75-3.5t-7.5-1.75t-8-0.5t-9,0.25t-9.5,0.25q-51,0 -64-16l-2.25-2.75t-3.75-4.75t-3.5-5.5t-3.75-8.5t-2.75-10.5q0,15 -15.75,34.5t-34.75,32.5t-29.5,13l-48,0 q-15,0 -38.25-18.25t-40.5-41.5t-17.25-36.25l0-128 q0-13.5 8.5-22.75t 23.5-9.25\nl 64,0 q 10,0 21-11.5t 11-20.5l0-64 q0-14.5 12.75-23.25t 38.75-8.75q 29,0 54,9.5t 38.5,22.5q 35.5,0.5 55,1.5t 42,4.5t 31,10q 13.5,10.5 20.5,16.75t 14.5,15.75t 10.25,21t 2.75,26.5l0,192 zM 385.25,192q-13.25,0 -22.75,9.5t-9.5,22.5l 51.5,25.5q 12.5-9.5 12.5-25.5q0-13 -9.25-22.5t-22.5-9.5zM 113,96l-79.5,0 l-0.5-0.5q-1-2 13.5-21.5\nt 27-33.5q 12-13 31-27.5t 23.5-13l 1,2l0,78 q0,6.5 -4.5,11.25t-11.5,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"rss\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,512q-20,0 -34-14t-14-34q0-75 -29.25-143t-78.5-117.25t-117.25-78.5t-143-29.25q-20,0 -34-14t-14-34t 14-34t 34-14q 63,0 123.25,16.75t 111,46.5t 93.75,72.75t 72.75,93.75t 46.5,111t 16.75,123.25q0,20 -14,34t-34,14zM 48,192q 55.5,0 105.75,21.5t 86.75,58t 58,86.75\nt 21.5,105.75q0,20 -14,34t-34,14t-34-14t-14-34q0-75.5 -50.25-125.75t-125.75-50.25q-20,0 -34-14t-14-34t 14-34t 34-14zM 64,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"draft2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,448l0,32 q0,13 -9.5,22.5t-22.5,9.5l-32,0 l-384,0 l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-96 l0-320 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 l0,0 zM 448,128q0-26.5 -18.75-45.25t-45.25-18.75l-256,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,192 q0,13.5 9.25,22.75t 22.75,9.25l 16,0 \nq 10,0 19,4.25t 13,11.75q 2.5,8.5 8.25,33t 7.75,31q 4,10 11.75,13t 22.75,3l 124.5,0 q 14.5,0 21.75-3t 11.25-13q 9-45 16-64q 6.5-16 32-16l 16,0 q 13,0 22.5-9.25t 9.5-22.75l0-192 zM 352,288l-192,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25l 192,0 q 13,0 22.5,9.5t 9.5,22.5t-9.5,22.5t-22.5,9.5z\nM 352,192l-192,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 192,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"outbox\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,448l0,32 q0,13 -9.5,22.5t-22.5,9.5l-32,0 l-384,0 l-32,0 q-13,0 -22.5-9.5t-9.5-22.5l0-96 l0-320 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 l0,0 zM 448,128q0-26.5 -18.75-45.25t-45.25-18.75l-256,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,192 q0,13.5 9.25,22.75t 22.75,9.25l 16,0 \nq 10,0 19,4.25t 13,11.75q 2.5,8.5 8.25,33t 7.75,31q 4,10 11.75,13t 22.75,3l 124.5,0 q 14.5,0 21.75-3t 11.25-13q 9-45 16-64q 6.5-16 32-16l 16,0 q 13,0 22.5-9.25t 9.5-22.75l0-192 zM 373.5,256l-53.5,0 l0,64 q0,13.5 -9.25,22.75t-22.75,9.25l-64,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-64 l-54,0 q-7.5,0 -9.5-3t 4-9.5\nl 107-108.5q 7-7 16.5-7t 16,7l 107,108.5q 6,6.5 4,9.5t-9.5,3z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"inbox\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-32,0 l-384,0 l-32,0 q-13,0 -22.5-9.5t-9.5-22.5l0-96 l0-320 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,320 l0,64 l0,32 q0,13 -9.25,22.5t-22.75,9.5zM 448,128q0-26.5 -18.75-45.25t-45.25-18.75l-256,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,192 q0,13.5 9.25,22.75t 22.75,9.25l 16,0 \nq 10,0 19.25,4.25t 12.75,11.75q 2.5,8.5 8.25,33t 7.75,31q 4,10 11.75,13t 22.75,3l 124.5,0 q 14.5,0 21.75-3t 11.25-13q 9-45 16-64q 6.5-16 32-16l 16,0 q 13,0 22.5-9.25t 9.5-22.75l0-192 zM 272,345q-6.5,7 -16,7t-16.5-7l-107-108.5q-6-6.5 -4-9.5t 9.5-3l 54,0 l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 \nq 13.5,0 22.75,9.25t 9.25,22.75l0,64 l 53.5,0 q 7.5,0 9.5,3t-4,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"emailimport\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 508.5,494.5l-175-174.5l 175-174.5q 3.5,7 3.5,14.5l0,320 q0,7.5 -3.5,14.5zM 31.5,128l 0.5,0 l 67,0 q 11.5-55.5 55.5-91.75t 101.5-36.25t 101.5,36.25t 55.5,91.75l 67,0 l 0.5,0 l-224.5,224.5zM 348,183q 4-5 4-11.5t-4-11.5l-60,0 l0-80 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,80 l-60.5,0 q-4,5 -4,11.5\nt 4,11.5l 92.5,73zM 3.5,494.5q-3.5-7 -3.5-14.5l0-320 q0-7.5 3.5-14.5l 175,174.5zM 236.5,378q 3,3 7.75,4.5t 8.25,1.5l 3.5,0 q 13,0.5 19.5-6l 35.5-35.5l 169.5,169.5l-0.5,0 l-448,0 l-0.5,0 l 169.5-169.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"emailexport\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 508.5,494.5l-175-174.5l 175-174.5q 3.5,7 3.5,14.5l0,320 q0,7.5 -3.5,14.5zM 31.5,128l 0.5,0 l 67,0 q 11.5-55.5 55.5-91.75t 101.5-36.25t 101.5,36.25t 55.5,91.75l 67,0 l 0.5,0 l-224.5,224.5zM 288,240l0-80 l 60,0 q 4-5 4-11.5t-4-11.5l-92-73l-92.5,73q-4,5 -4,11.5t 4,11.5l 60.5,0 l0,80 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 \nq 6.5,0 11.25-4.75t 4.75-11.25zM 3.5,494.5q-3.5-7 -3.5-14.5l0-320 q0-7.5 3.5-14.5l 175,174.5zM 236.5,378q 3,3 7.75,4.5t 8.25,1.5l 3.5,0 q 13,0.5 19.5-6l 35.5-35.5l 169.5,169.5l-0.5,0 l-448,0 l-0.5,0 l 169.5-169.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"emailforward\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 508.5,494.5l-175-174.5l 175-174.5q 3.5,7 3.5,14.5l0,320 q0,7.5 -3.5,14.5zM 31.5,128l 0.5,0 l 67,0 q 11.5-55 55.5-91.5t 101.5-36.5t 101.5,36.5t 55.5,91.5l 67,0 l 0.5,0 l-224.5,224.5zM 279,252l 73-92l-73-92.5q-5-4 -11.5-4t-11.5,4l0,60.5 l-80,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 80,0 l0,60 \nq 5,4 11.5,4t 11.5-4zM 3.5,494.5q-3.5-7 -3.5-14.5l0-320 q0-7.5 3.5-14.5l 175,174.5zM 236.5,378q 3,3 7.75,4.5t 8.25,1.5l 3.5,0 q 13,0.5 19.5-6l 35.5-35.5l 169.5,169.5l-0.5,0 l-448,0 l-0.5,0 l 169.5-169.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"emailrefresh\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 333.5,320l 175-174.5q 3.5,7 3.5,14.5l0,320 q0,7.5 -3.5,14.5zM 31.5,128l 0.5,0 l 67,0 q 11.5-55.5 55.5-91.75t 101.5-36.25t 101.5,36.25t 55.5,91.75l 67,0 l 0.5,0 l-224.5,224.5zM 256,64q-22.5,0 -42,10t-33,27l-5-5q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25\nl-20.5-20.5q 9-12.5 22.75-20t 29.75-7.5q 18.5,0 33.75,9.75t 23.25,25.75l 28.5-14.5q-12-24 -35-38.5t-50.5-14.5zM 331,219l 5,5q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l 20.5,20.5q-19.5,27.5 -52.5,27.5q-18.5,0 -33.75-9.75t-23.25-25.75l-28.5,14.5\nq 12,24 35,38.5t 50.5,14.5q 22.5,0 42-10t 33-27zM 3.5,494.5q-3.5-7 -3.5-14.5l0-320 q0-7.5 3.5-14.5l 175,174.5zM 201,342.5l 35.5,35.5q 3,3 7.75,4.5t 8.25,1.5l 3.5,0 q 13,0.5 19.5-6l 35.5-35.5l 169.5,169.5l-0.5,0 l-448,0 l-0.5,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"reademail\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 508.5,494.5l-175-174.5l 174.5-174.5q 4,7 4,14.5l0,320 q0,7.5 -3.5,14.5zM 448.5,160l-0.5,0 l0,0.5 l-128,128l0-0.5 l-128,0 l0,0.5 l-128-128l0-0.5 l-0.5,0 l-31.5-31.5l0-0.5 l0-96 q0-13.5 9.5-22.75t 22.5-9.25l 384,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,96 l0,0.5 zM 178.5,320l-175,174.5q-3.5-7 -3.5-14.5l0-320 q0-7.5 4-14.5zM 288.5,320l 192,192l-0.5,0 l-448,0 l-0.5,0 \nl 192-192l 65,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"draft\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-128 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 10,0 19.25,4.25t 12.75,11.75l 16.75,50.25l 15.25,45.75q 4,10 12,13t 22.5,3l 124.5,0 q 14.5,0 21.75-3t 11.25-13q 25.5-77 32-96q 6.5-16 32-16l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,128 q0,13 -9.25,22.5t-22.75,9.5z\nM 328,390.5q-4.5,10.5 -16.25,18t-24.75,7.5l-60.5,0 q-13,0 -25-7.5t-16.5-18l-35.5-102.5l-117.5,0 l0-256 q0-13.5 9.25-22.75t 22.75-9.25l 384,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,256 l-117.5,0 zM 112,224l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75z\nM 240,96l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 400,96l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 416,208q0-6.5 -4.75-11.25t-11.25-4.75\nl-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"archive\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 133,332.5l 106.5,108.5q 7,7 16.5,7t 16.5-7l 106.5-108.5q 6-6.5 4-9.5t-9.5-3l-53.5,0 l0-64 q0-13.5 -9.25-22.75t-22.75-9.25l-64,0 \nq-13.5,0 -22.75,9.25t-9.25,22.75l0,64 l-54,0 q-7.5,0 -9.25,3t 4.25,9.5zM 448,80q0-6.5 -4.75-11.25t-11.25-4.75l-352,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 352,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"closetab\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-320 l 24-78q 7-21.5 29.25-35.75t 47.75-14.25l 182,0 q 25.5,0 47.75,14.25t 29.25,35.75l 24,78l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,256 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,208q0-6.5 -4.75-11.25t-11.25-4.75l-352,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nl0,224 q0,6.5 4.75,11.25t 11.25,4.75l 352,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-224 zM 320,352l-128,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25l 128,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"newtab\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-320 l 24-78q 7-21.5 29.25-35.75t 47.75-14.25l 182,0 q 25.5,0 47.75,14.25t 29.25,35.75l 24,78l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,256 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,208q0-6.5 -4.75-11.25t-11.25-4.75l-352,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nl0,224 q0,6.5 4.75,11.25t 11.25,4.75l 352,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-224 zM 320,352l-32,0 l0,32 q0,13 -9.5,22.5t-22.5,9.5t-22.5-9.5t-9.5-22.5l0-32 l-32,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25l 32,0 l0-32 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.25t 9.5,22.75l0,32 l 32,0 q 13,0 22.5,9.25t 9.5,22.75t-9.5,22.75\nt-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"closewindow\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 128,80q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-32 zM 224,80q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 448,80q0-6.5 -4.75-11.25t-11.25-4.75l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-32 zM 448,176q0-6.5 -4.75-11.25t-11.25-4.75l-352,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,256 q0,6.5 4.75,11.25t 11.25,4.75l 352,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-256 zM 320,352l-128,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25l 128,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"newwindow\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 128,80q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-32 zM 224,80q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 448,80q0-6.5 -4.75-11.25t-11.25-4.75l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-32 zM 448,176q0-6.5 -4.75-11.25t-11.25-4.75l-352,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,256 q0,6.5 4.75,11.25t 11.25,4.75l 352,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-256 zM 320,352l-32,0 l0,32 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-32 l-32,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75\nt 22.75-9.5l 32,0 l0-32 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,32 l 32,0 q 13,0 22.5,9.25t 9.5,22.75t-9.5,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"share\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,192q-22,0 -41.5-9.75t-33-26.25l-153,75q 3.5,13.5 3.5,25t-3.5,25l 153,75q 14-17 33.25-26.5t 41.25-9.5q 40,0 68,28t 28,67.75t-28,68t-68,28.25q-39.5,0 -67.5-28t-28.5-67.5l-168.5-82.5q-25,18 -55.5,18q-40,0 -68-28.25t-28-68t 28-67.75t 68-28q 30.5,0 55.5,17.5l 168.5-82\nq 0.5-39.5 28.5-67.5t 67.5-28q 40,0 68,28t 28,67.75t-28,68t-68,28.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pocket\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,480q-44,0 -81-8t-70-27t-55.75-48t-36-73t-13.25-100l0-128 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,128 q0,56 -13.25,100t-36,73t-55.75,48t-70,27t-81,8zM 403.75,171.25q-12.25-11.75 -29.75-11.75t-29.5,11.5l-88.5,84.5l-89-84.5\nq-12-11.5 -29.25-11.5t-29.5,11.75t-12.25,28.25t 12,28l 118.5,112.5q 12,12 29.25,12t 29.75-12l 118-112.5q 12.5-11.5 12.5-28t-12.25-28.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"twitter\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,128q-45.5,0 -60.5,2q 29-17.5 44.5-66q-4.5,3 -14.75,9.5t-16.5,10.25t-15.75,7.75t-18,5.5q-31-33 -76.5-33q-46,0 -72.25,19.25t-26.25,60.75q0,2 -0.5,13.5t-0.5,21.25t 1,13.25q-67-3.5 -118.5-26.5t-89.5-69.5q-16,27.5 -16,48q0,28.5 8,47.25t 28,32.25q-20,0.5 -36,0.5\nq0,76 73,90.5q-13.5,4 -28,4q-10,0 -19.5-2q 9.5,30.5 38.25,48.75t 64.25,18.75q-11.5,11.5 -27,18.5t-35.5,9.75t-32.5,3.25t-33,0.5q-2,0 -14.5,0.75t-17.5,0.25q 13.5,26 55.25,44.5t 105.75,18.5q 56,0 103.75-18.25t 81-48.75t 56.75-70t 34.5-82t 11-85q0-1.5 4.75-2.75t 12.25-3.75t 15.75-6.75t 17-13.25\nt 14.25-21.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"path\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,384q-37,0 -64-17.5l0,81.5 q0,26.5 -18.75,45.25t-45.25,18.75l-32,0 q-26.5,0 -45.25-18.75t-18.75-45.25q0-1.5 0.25-3.5t 2-7.5t 4.75-9.75t 9.5-7.75t 15.5-3.5l 4.75,0 l 4.75,0 t 4.25-0.25t 4.5-0.5l 3.75-0.75t 3.5-1.25t 2.5-2t 2.25-2.75t 1.25-3.75t 0.5-4.75l0-208 q0-13.5 9.25-22.75t 22.75-9.25l 32,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 \nq0,14 19.25,23t 44.75,9q 38.5,0 67.25-26t 28.75-70q0-31 -21.75-53t-57.5-32.5t-80.75-10.5q-34.5,0 -62.5,7t-50.5,21.75t-34.75,40t-12.25,59.25q0,18 19.5,44.5l-75.5,75.5q-40-55 -40-120q0-46.5 14.5-84.5t 38.75-63.5t 57.5-43t 69.5-25.25t 75.75-7.75q 39,0 75.75,7.5t 69.5,23.25t 57.5,38.25\nt 39,54t 14.25,69q0,40.5 -12.25,75t-35.5,60.75t-60.5,41.25t-83.75,15z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"vimeo\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 240,512q-23,0 -42-12.75t-32-35.75t-22.75-49.75t-16.75-59.5t-11.75-60.25t-9.75-57t-9-45q-1-3.5 -2.75-13.5t-3.5-17.5t-5-15.75t-8.5-12.75t-12.25-4.5q-7.5,0 -22.5,9.5t-25.5,22.5l-16-32q 72-128 144-128q 25,0 41,21.25t 23,58.75q 4,21 11.25,63.25t 12.5,70.75t 12.25,59.25t 14,46.75t 14,16\nq 15,0 38.25-29t 40.5-67.5t 17.25-63.5q0-27.5 -11.25-37.75t-32.25-10.25q-20.5,0 -36.5,14q 0.5-35 15-67.5t 40.5-53.5t 56.5-21q 112,0 112,128q0,37 -20.25,88.75t-52.5,102t-68.5,94.5t-72,71.5t-58.75,27.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"blogger\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 352,512l-192,0 q-43.5,0 -80.25-21.5t-58.25-58.25t-21.5-80.25l0-192 q0-43.5 21.5-80.25t 58.25-58.25t 80.25-21.5l 96,0 q 43.5,0 80.25,21.5t 58.25,58.25t 21.5,80.25q0,13 9.25,22.5t 22.75,9.5l 32,0 q 13,0 22.5,9.25t 9.5,22.75l0,128 q0,43.5 -21.5,80.25t-58.25,58.25t-80.25,21.5zM 256,128l-96,0 \nq-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75t 22.75,9.5l 96,0 q 13.5,0 22.75-9.5t 9.25-22.75t-9.5-22.5t-22.5-9.25zM 352,320l-192,0 q-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75t 22.75,9.5l 192,0 q 13,0 22.5-9.5t 9.5-22.75t-9.5-22.5t-22.5-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"linkedin\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 128,80q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-32 zM 128,176q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,256 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-256 zM 448,256q0-40 -28-68t-68-28q-22,0 -48.25,7t-47.75,19.5l0-10.5 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75\nt-4.75,11.25l0,256 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-144 q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25l0,144 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-176 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"googleplus\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-208,0 q 32-34 32-80q0-55.5 -38-90.5q-6.5-6 -14.75-12.5t-17.75-13.5t-13.5-10l0-0.5 q-12-6.5 -12-33q0-7 10.75-16.5t 21.25-15.5q 12-6.5 22-28.75t 10-51.25q0-28 -9.25-54.25t-27.25-41.75l 36.5,0 l 32-32l-157,0 q-78,0 -115,39l0-7 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25\nl0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 464,128l-48,0 l0-48 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,48 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 48,0 l0,48 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-48 l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75\nzM 96,64q 39,0 67.5,28.25t 28.5,67.75q0,38 -22.75,59t-57.25,21q-32.5,0 -56.25-28.25t-23.75-67.75q0-33.5 20.25-56.75t 43.75-23.25zM 96,272l0,16 q0,11 4,23t 8,18.5l 4,6.5q-67,0 -112,26l0-121.5 q 33.5,30.5 96,31.5zM0,420.5q 11-27.5 46.75-40t 81.25-12.5q 21,0 42.75,9.75t 37.5,28.75\nt 15.75,41.5q0,19 -11.25,35.75t-30.25,28.25l-118.5,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-27.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tumblr\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 432,512q-33,0 -56.5-23.5t-23.5-56.5t 23.5-56.5t 56.5-23.5t 56.5,23.5t 23.5,56.5t-23.5,56.5t-56.5,23.5zM 192,512q-50.5,0 -89.25-26t-38.75-54l0-208 l-64,0 l0-96 q 49.5,0 72.75-29t 23.25-99l 64,0 l0,128 l 96,0 l0,96 l-96,0 l0,162.5 q0,13 19.25,21.25t 44.75,8.25t 40-3.25t 24-12.75l0,74.5 q0,11.5 -16.25,20.5t-37.75,13\nt-42,4z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"googledrive\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 188,38.5l 4-6.5l 128,0 l 173,288l-142.5,0 zM 71.5,454.5l-71.5-102.5l 167.5-279.5l 61.5,106.5zM 171,352l 341,0 l-89,128l-326,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"chat\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,416l0,96 q-3.5-2 -10-6t-27-22t-41-42q-24.5,6 -50,6q-36.5,0 -67.25-7.5t-50.25-18.5t-33.25-24.5t-19.5-25t-5.75-20.5l 48,0 q 64.5,0 114.75-22.5t 79.75-66.5t 29.5-103q 96,48.5 96,136q0,71.5 -64,120zM 416,160zM 192,320q-25.5,0 -50-6q-20.5,24 -40,41.5t-29,23l-9,5.5l0-96 \nq-64-48.5 -64-120q0-45.5 25.75-84.25t 70-61.25t 96.5-22.5t 96.5,22.5t 69.75,61.25t 25.5,84.25t-26,80.5t-69.5,53.25t-96.5,18.25zM 192,32q-43.5,0 -80.25,17t-58.25,46.5t-21.5,64.25t 21.5,64.25t 58.25,46.75t 80.25,17.25t 80.25-17.25t 58.25-46.75t 21.5-64.25t-21.5-64.25t-58.25-46.5\nt-80.25-17z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"avatar2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l0-32 q0-31 -12-54.5t-34.25-38.25t-50.5-23.25t-63.25-11l0-8 q 40.5-17 68.25-68.75t 27.75-107.75q0-51.5 -35.75-78t-92.25-26.5t-92.25,26.5t-35.75,78q0,54.5 28.5,106t 67.5,69.5l0,9 q-35,2.5 -63.25,11t-50.5,23.25t-34.25,38.25t-12,54.5l0,32 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 \nq0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"basecamp\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,480q-55.5,0 -100-6.75t-80.5-21t-55.75-39.75t-19.75-60.5q0-38 12.75-82.25t 36.75-86t 55-76t 70.75-55t 80.75-20.75t 80.75,20.75t 70.75,55t 55,76t 36.75,86t 12.75,82.25q0,35 -19.75,60.5t-55.75,39.75t-80.5,21t-100,6.75zM 320,128q-10,0 -26,22.5t-30.25,49.5\nt-30.25,49.5t-25.5,22.5q-10.5,0 -21-7.5t-18-16.5t-18.5-16.5t-22.5-7.5q-23.5,0 -43.75,30t-20.25,66q0,26 14.75,45.25t 41.75,30t 60.5,15.75t 75,5t 75-5t 60.5-15.75t 41.75-30t 14.75-45.25q0-34 -21.5-79.75t-52-79t-54.5-33.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tag2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 385,512l-256,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-251.5 q-1-14.5 9-25l 160.5-162q 9.5-9.5 22.5-9.5q 13.5,0 23,9.5l 40,40.5l 80,81l 40,40.5q 4.5,5 7,10.25t 2,8.25l0,3 l0,255 q0,26.5 -18.75,45.25t-45.25,18.75zM 257,96q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75\nt 18.75-45.25t-18.75-45.25t-45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"outgoingcall\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 482.75,192q-13.25,0 -22.75-9.5t-9.5-22.5l0-52 l-107,107.5q-9.5,9 -22.25,9t-21.75-9.25t-9-22t 9-21.75l 108-107.5l-53,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 128,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,128 q0,13 -9.25,22.5t-22.5,9.5zM 326.5,402l 43.5-43.5q 7.5-7 26.25-6t 38,6t 31.75,11\nq 28,13 41,32.75t 1.5,31.25l-53,53q-22,22 -58.75,24.75t-79.75-11.5t-91-45.25t-91.5-74.5t-74.5-91.5t-45.25-90.75t-11.5-79.5t 24.75-58.75l 53-53q 10.5-10.5 27.75,2t 36.75,40.5q 9,13.5 14.5,48.25t-4,47.75l-43.5,43.5q 9,32.5 47.5,80t 86,86.25t 80.5,47.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"incomingcall\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 505.5,52l-108,108l 53,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-128,0 q-13,0 -22.5-9.5t-9.5-22.5l0-128 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,52 l 107.5-107.5q 9-9 21.75-9t 21.75,9t 9,21.75t-9,21.75zM 326.5,402l 43.5-43.5q 7.5-7 26.25-6t 38.25,6t 31.5,11\nq 28,13 41,32.75t 2,31.25l-53.5,53q-22,22 -58.75,24.75t-79.5-11.5t-91-45.25t-91.75-74.5t-74.5-91.5t-45.25-91t-11.5-79.5t 24.75-58.5l 53-53q 10.5-10.5 27.75,2t 36.75,40.5q 9,13.5 14.5,48.25t-4,47.75l-43.5,43.5q 9,32.5 47.5,80t 86,86.25t 80.5,47.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"missedcall\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 446,111.5l 59.5,59.5q 9,9 9,21.75t-9,22t-21.75,9.25t-21.75-9l-59.5-60l-59.5,60q-9,9 -21.75,9t-22-9.25t-9.25-22t 9.5-21.75l 59.5-59.5l-59.5-59.5q-9.5-9 -9.5-21.75t 9.25-21.75t 22-9t 21.75,9l 59.5,59.5l 59.5-59.5q 9-9 21.75-9t 21.75,9t 9,21.75t-9,21.75zM 326.5,402\nl 43.5-43.5q 7.5-7 26.25-6t 38.25,6t 31.5,11q 28,13 41,32.75t 2,31.25l-53.5,53q-22,22 -58.75,24.75t-79.5-11.5t-91-45.25t-91.75-74.5t-74.5-91.5t-45.25-91t-11.5-79.5t 24.75-58.5l 53-53q 10.5-10.5 27.75,2t 36.75,40.5q 9,13.5 14.5,48.25t-4,47.75l-43.5,43.5q 9,32.5 47.5,80t 86,86.25\nt 80.5,47.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"phone\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 156.5,144.5l-44,43.5q 9,32.5 47.5,80.25t 86.25,86.25t 80.75,47.5l 43.5-43.5q 7.5-7.5 26.5-6.25t 38.25,6t 31.75,10.75q 28,13.5 41,33.25t 1.5,30.75l-53.5,53.5q-21.5,22 -58.5,24.75t-80-11.5t-91-45.25t-91.5-74.5t-74.75-91.75t-45.5-91.25t-11.5-79.75t 24.75-58.25l 53.5-53.5q 10.5-10.5 27.5,2.25t 36.5,40.25\nq 9.5,13.5 15,48.5t-4,48z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"avatar\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M0,512l0-512 l 512,0 l0,512 l-512,0 zM 480,32l-448,0 l0,384 l 448,0 l0-384 zM 224,273.5l0-6.5 q-33.5-11 -48.75-45t-15.25-82.5q0-37 26.75-56.25t 69.25-19.25t 69.25,19.25t 26.75,56.25q0,108.5 -64,128l0,6 q 56.5,5 91.75,26.5t 36.25,57q0,5 -4.25,9t-13,6.75t-18,4.75t-23.5,3.25t-25,2t-27.25,1\nt-25.25,0.25l-23.75,0 l-23.75,0 t-25.25-0.25t-27.25-1t-25-2t-23.5-3.25t-18-4.75t-13-6.75t-4.25-9q 1-35.5 36.25-57t 91.75-26.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"browser\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 128,80q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-32 zM 224,80q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 448,80q0-6.5 -4.75-11.25t-11.25-4.75l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-32 zM 448,176q0-6.5 -4.75-11.25t-11.25-4.75l-352,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,256 q0,6.5 4.75,11.25t 11.25,4.75l 352,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-256 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"comment6\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-80.5,0 -146.5-46.5q-17.5,21.5 -46.5,34t-63,12.5q 12.5,0 21.75-38.25t 10.25-94.25q-32-57.5 -32-123.5q0-69.5 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25\nt 25.75,96.25t 70,70t 96.25,25.75t 96.25-25.75t 70-70t 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 352.25,288q-13.25,0 -22.75-9.5t-9.5-22.5t 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5t-9.25,22.5t-22.5,9.5zM 256.25,288q-13.25,0 -22.75-9.5t-9.5-22.5t 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.75t-9.25,22.5\nt-22.5,9.25zM 160.25,288q-13.25,0 -22.75-9.25t-9.5-22.75t 9.5-22.75t 22.75-9.25t 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"comment5\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-80.5,0 -146.5-46.5q-17.5,21.5 -46.5,34t-63,12.5q 12.5,0 21.75-38.25t 10.25-94.25q-32-57.5 -32-123.5q0-69.5 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 160.25,224q-13.25,0 -22.75,9.25t-9.5,22.75t 9.5,22.75\nt 22.75,9.25t 22.5-9.5t 9.25-22.5t-9.25-22.5t-22.5-9.5zM 256.25,224q-13.25,0 -22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5t 22.5-9.25t 9.25-22.75t-9.25-22.75t-22.5-9.25zM 352.25,224q-13.25,0 -22.75,9.5t-9.5,22.5t 9.5,22.5t 22.75,9.5t 22.5-9.5t 9.25-22.5t-9.25-22.5t-22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"comment4\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-80.5,0 -146.5-46.5q-17.5,21.5 -46.5,34t-63,12.5q 12.5,0 21.75-38.25t 10.25-94.25q-32-57.5 -32-123.5q0-52 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,64q-52,0 -96.25,25.75\nt-70,70t-25.75,96.25t 25.75,96.25t 70,70t 96.25,25.75t 96.25-25.75t 70-70t 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"comment3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-80.5,0 -146.5-46.5q-17.5,21.5 -46.5,34t-63,12.5q 12.5,0 21.75-38.25t 10.25-94.25q-32-57.5 -32-123.5q0-69.5 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"reddit\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 470,252q 10,25.5 10,52q0,48 -30,88.5t-81.5,64t-112.5,23.5t-112.5-23.5t-81.5-64t-30-88.5q0-26.5 10-52q-18.5-7 -30.25-23.25t-11.75-36.75q0-26.5 18.75-45.25t 45.25-18.75q 18.5,0 33.75,9.75t 23.25,25.75q 51-30 114.5-34.5q 1-5.5 3.25-14.25t 7-27.25t 8-30.75l 3.25-12.25q 6-12.5 15-12.5l 83,0 \nq 5-14 17.25-23t 27.75-9q 20,0 34,14t 14,34t-14,34t-34,14q-15.5,0 -27.75-9t-17.25-23l-70.5,0 l-16.5,64.5q 68.5,3 123,35q 8-16 23.25-25.75t 33.75-9.75q 26.5,0 45.25,18.75t 18.75,45.25q0,20.5 -11.75,36.75t-30.25,23.25zM 63.75,160q-13.25,0 -22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25\nt 22.75-9.25t 9.5-22.75t-9.5-22.75t-22.75-9.25zM 159.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 256,384q-27,0 -40.75-3.25t-23.25-12.75q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25q0,3.5 1.5,6.5q 5,16.5 31.5,29t 63,12.5\nq 37,0 63.5-12.25t 31-29.25q 1.5-3.5 1.5-6.5q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25q-16,16 -64,16zM 351.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 447.75,160q-13.25,0 -22.5,9.25t-9.25,22.75t 9.25,22.75t 22.75,9.25\nt 22.75-9.25t 9.25-22.75t-9.5-22.75t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"myspace\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,32 l 384,0 l0-32 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,64 q0,13.5 -9.5,22.75t-22.5,9.25zM 443.5,272q-6.5,11.5 -19.25,15t-24.25-3.25t-15-19.75t 3.5-24.5l 15-53.5l-55.5-137.5q-3.5-6 -5.75-14.25t-2.75-15.75t 2.5-13\nt 10-5.5q 15,0 22.25,2.75t 13.25,13.25l 39.5,88l 25.5-88q 6.5-11.5 19.25-14.75t 24.25,3.25t 15,19.5t-3.5,24.5zM 288,224q-13.5,0 -22.75-9.25t-9.25-22.75l0-128 q0-13 -9.25-22.5t-22.75-9.5t-22.75,9.5t-9.25,22.5l0,128 q0,13.5 -9.25,22.75t-22.75,9.25t-22.75-9.25t-9.25-22.75l0-128 q0-13 -9.25-22.5\nt-22.75-9.5t-22.75,9.5t-9.25,22.5l0,128 q0,13.5 -9.25,22.75t-22.75,9.25t-22.75-9.25t-9.25-22.75l0-96 l0-64 q0-13 9.5-22.5t 22.5-9.5q 13.5,0 23,9.5q 20-9.5 41-9.5q 36.5,0 64,25q 27.5-25 64-25q 39.5,0 67.75,28.25t 28.25,67.75l0,96 q0,13.5 -9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"delicious\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 480,64q0-13.5 -9.25-22.75t-22.75-9.25l-192,0 l0,224 l-224,0 l0,192 q0,13.5 9.5,22.75t 22.5,9.25l 192,0 l0-224 l 224,0 l0-192 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"yahoo\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,128l-59.5,0 l-148.5,164l0,156 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-192,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0-152.5 l-131-230.5l0-0.5 l0-0.5 l-45,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 192,0 q 6.5,0 11.25,4.75t 4.75,11.25\nl0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-63,0 l 106,183.5l 109-119.5l-56,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 192,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"gmail\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-320 q0-13.5 9.25-22.75t 22.75-9.25l 448,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,320 q0,13 -9.25,22.5t-22.75,9.5zM 480,112q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-10,0 -15.75,0.75t-15,5.5t-18.75,14.25l-126.5,126.5l-126.5-126.5q-9.5-9.5 -18.75-14.25t-14.75-5.5\nt-16-0.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,288 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-16.5 l 105.5-105l 37,37q 7.5,7.5 17.5,3.5q 10,4 17.5-3.5l 37-37l 105.5,105l0,16.5 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-288 zM 416,338.5l-83-83l 83-82.5l0,165.5 zM 96,173\nl 83,82.5l-83,83l0-165.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"phonebook2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-384,0 q-13,0 -22.5-9.5t-9.5-22.5l 32,0 q 26.5,0 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75l-32,0 l0-32 l 32,0 q 26.5,0 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75l-32,0 l0-32 l 32,0 q 26.5,0 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75l-32,0 q0-13 9.5-22.5t 22.5-9.5l 384,0 q 13,0 22.5,9.5t 9.5,22.5l0,448 \nq0,13 -9.5,22.5t-22.5,9.5zM 336,307l0-9 q 48-19.5 48-106q0-31.5 -22.25-47.75t-57.5-16.25t-57.75,16.25t-22.5,47.75q0,84 48,105.5l0,9.5 q-34.5,6 -57,22.5t-23,37.5q0,6 10.75,9.75t 31.5,5.25t 34.25,1.75t 35.5,0.25t 35.5-0.25t 34.25-1.75t 31.5-5.25t 10.75-9.75q-0.5-21 -23-37.5t-57-22.5zM 128,96.25\nq0,13.25 -9.25,22.5t-22.75,9.25l-64,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.25-22.75t 22.75-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.75zM 32,224l 64,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-64,0 q-13,0 -22.5-9.25t-9.5-22.75t 9.5-22.75t 22.5-9.25zM 32,384l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5t-9.25,22.5\nt-22.75,9.5l-64,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"chrome\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512l 112-192q 16-27.5 16-64q0-28 -11.5-53t-32-43l 152.5,0 q 19,46.5 19,96q0,69.5 -34.25,128.5t-93.25,93.25t-128.5,34.25zM 130.5,230.5l-76-132q 35.5-45.5 88.25-72t 113.25-26.5q 70,0 128.75,34.75t 92.75,93.25l-221.5,0 q-46,0 -81.25,29.25t-44.25,73.25zM 256,160q 40,0 68,28t 28,68\nt-28,68t-68,28t-68-28t-28-68t 28-68t 68-28zM 144,320q 17,29 47,46.5t 65,17.5q 21,0 41-7l-76.5,132.5q-61.5-9 -112-44.25t-79.5-90.5t-29-118.75q0-68.5 34.5-128z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"forrst\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 432,384l-144-288q-11.5-32 -32-32q-3,0 -6.25,1t-5.5,2.25t-4.75,4t-4,4.25t-3.5,5.25t-2.75,5.25l-2.75,5.5t-2.5,4.5l-144,288\nq-0.5,1 -8.25,13.5t-7.75,18.5q0,13 9.5,22.5t 22.5,9.5l 128,0 l0-74.5 l-59.5-59q-4.5-4.5 -4.5-11t 4.5-11t 11-4.5t 11,4.5l 37.5,38l0-26.5 q0-6.5 4.75-11.25t 11.25-4.75l 26.5,0 l 27-27.5q 4.5-4.5 11-4.5t 11,4.5t 4.5,11t-4.5,11l-27.5,27l0,53 l 37.5-38q 4.5-4.5 11-4.5t 11,4.5t 4.5,11t-4.5,11l-59.5,59l0,42.5 l 128,0 q 13,0 22.5-9.5t 9.5-22.5q0-4.5 -3-10.75\nt-7.5-13z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"dribbble\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 432.5,331q-33.5-10.5 -65-10.5q-5,0 -18.5,2q 9.5,46.5 10,95q 50-32 73.5-86.5zM 302,442q 1-51 -9-103q-15,7.5 -27.5,16.5\nq-54,38 -71,82q 30,10.5 61.5,10.5q 22.5,0 46-6zM 65,239q-1,9.5 -1,17q0,46.5 20.75,86.75t 56.75,66.75q 25.5-65.5 81.5-105q 26.5-18.5 53-30q-8-22.5 -16-41q-48,23 -100,22.5q-47.5-0.5 -95-17zM 153,94.5q-48,30.5 -71.5,82q 40,15.5 78.5,15.5q 35.5,0 69-16q-33.5-52.5 -76-81.5zM 256,64\nq-22.5,0 -47,6.5q 37,29 68,75q 39-30.5 54-66q-36-15.5 -75-15.5zM 382,111.5q-24,55.5 -72,92q 12,26 22,55q 18.5-2.5 35.5-2.5q 38.5,0.5 79.5,12q 1-11.5 1-12q0-42.5 -17.5-80t-48.5-64.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"facebook2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 64,415.75q0,13.25 9.5,22.75t 22.5,9.5l 128,0 l0-64 l-128,0 q-13,0 -22.5,9.25t-9.5,22.5zM 416,245.5q0-9 -9.25-15.25t-22.75-6.25l-64,0 l0-64 \nq0-13.5 9.5-22.75t 22.5-9.25l 32,0 q 13.5,0 22.75-6.25t 9.25-15.25l0-21 q0-9 -9.25-15.25t-22.75-6.25l-32,0 q-53,0 -74.5,21.5t-21.5,74.5l0,64 l-32,0 q-13,0 -22.5,6.25t-9.5,15.25l0,21 q0,9 9.5,15.25t 22.5,6.25l 32,0 l0,128 q0,13 6.25,22.5t 15.25,9.5l 21,0 q 9,0 15.25-9.5t 6.25-22.5l0-0.5 l0-127.5 l 64,0 q 13.5,0 22.75-6.25\nt 9.25-15.25l0-21 zM 416,384l-64,0 l0,64 l 64,0 q 13.5,0 22.75-9.5t 9.25-22.75t-9.5-22.5t-22.5-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"instagram\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 256,192q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75zM 448,80\nq0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 zM 448,240q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,16 q0,53 -37.5,90.5t-90.5,37.5t-90.5-37.5t-37.5-90.5l0-16 q0-6.5 -4.75-11.25\nt-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,192 q0,6.5 4.75,11.25t 11.25,4.75l 352,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-192 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"phone3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 112,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-304 q0-6.5 4.75-11.25t 11.25-4.75l 240,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,352 q0,26.5 -18.75,45.25t-45.25,18.75zM 320,432q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 \nq0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 320,336q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 320,240q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 \nq0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 224,432q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 224,336q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 \nq0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 224,240q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 480,112q0-6.5 -4.75-11.25t-11.25-4.75l-224,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nl0,32 q0,6.5 4.75,11.25t 11.25,4.75l 224,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 480,208q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 480,304q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nl0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 480,400q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 128,384l-96,0 q-13,0 -22.5-9.25t-9.5-22.75l0-320 q0-13 9.5-22.5t 22.5-9.5l 96,0 \nq 13,0 22.5,9.5t 9.5,22.5l0,320 q0,13.5 -9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"phone2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,480l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-256,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 q-26.5,0 -45.25-18.75t-18.75-45.25l0-32 q0-35 18.25-72.25t 48.5-62.5t 61.25-25.25q 13,0 22.5-9.25t 9.5-22.75l0-32 q0-13 9.25-22.5\nt 22.75-9.5t 22.75,9.5t 9.25,22.5l 64,0 q0-13 9.25-22.5t 22.75-9.5t 22.75,9.5t 9.25,22.5l0,32 q0,13.5 9.25,22.75t 22.75,9.25q 31,0 61.25,25.25t 48.5,62.5t 18.25,72.25l0,32 q0,26.5 -18.75,45.25t-45.25,18.75zM 256,256q-40,0 -68,28.25t-28,68t 28,67.75t 68,28t 68-28t 28-68t-28-68\nt-68-28zM 256,416q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 448,192l-16.25,0 t-14.25-0.5t-13.75-1.5t-10-2.75t-7.5-4.5t-2.25-6.75l0-51.5 q-12.5-11 -50-19.75t-78-8.75t-78,8.75t-50,19.75l0,51.5 q0,4 -2.25,6.75t-7.5,4.5\nt-10,2.75t-13.75,1.5t-14.25,0.5l-16.25,0 l-17.5,0 t-14.5-0.5t-13.5-1.5t-9.5-2.75t-7-4.5t-2-6.75l0-43.5 q0-31 34.75-54.25t 92.25-34.75t 129-11.5t 129,11.5t 92.25,34.75t 34.75,54.25l0,43.5 q0,4 -2,6.75t-7,4.5t-9.5,2.75t-13.5,1.5t-14.5,0.5l-17.5,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"share2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 128,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-96,0 q-13,0 -22.5,9.5t-9.5,22.5l0,320 q0,13.5 9.25,22.75t 22.75,9.25l 320,0 q 13,0 22.5-9.25t 9.5-22.75l0-96 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,128 \nq0,26.5 -18.75,45.25t-45.25,18.75zM 479.75,256q-13.25,0 -22.5-9.25t-9.25-22.75l0-119 l-206.5,206.5q-8.5,8.5 -20.5,8.5t-20.5-8.5t-8.5-20.5t 8.5-20.5l 206.5-206.5l-119,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 192,0 q 13,0 22.5,9.5t 9.5,22.5l0,192 q0,13.5 -9.5,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"flickr\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 400,384q-46.5,0 -79.25-32.75t-32.75-79.25t 32.75-79.25t 79.25-32.75t 79.25,32.75t 32.75,79.25t-32.75,79.25t-79.25,32.75zM 112,384q-46.5,0 -79.25-32.75t-32.75-79.25t 32.75-79.25t 79.25-32.75t 79.25,32.75t 32.75,79.25t-32.75,79.25t-79.25,32.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"notificationup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 427.5,512l-343,0 q-28.5,0 -56.5-28.5t-28-57.5l0-212 q0-29 28-57.5t 56.5-28.5l 75.5,0 l 96-128l 96,128l 75.5,0 q 28.5,0 56.5,28.5t 28,57.5l0,212 q0,29 -28,57.5t-56.5,28.5zM 416,224l-320,0 q-13,0 -22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5l 320,0 q 13,0 22.5-9.5t 9.5-22.5t-9.5-22.5t-22.5-9.5zM 416,352l-320,0 q-13,0 -22.5,9.25\nt-9.5,22.5t 9.5,22.75t 22.5,9.5l 320,0 q 13,0 22.5-9.5t 9.5-22.75t-9.5-22.5t-22.5-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"notificationdown\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 427.5,384l-75.5,0 l-96,128l-96-128l-75.5,0 q-28.5,0 -56.5-28.5t-28-57.5l0-212 q0-29 28-57.5t 56.5-28.5l 343,0 q 28.5,0 56.5,28.5t 28,57.5l0,212 q0,29 -28,57.5t-56.5,28.5zM 416,96l-320,0 q-13,0 -22.5,9.5t-9.5,22.75t 9.5,22.5t 22.5,9.25l 320,0 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5zM 416,224l-320,0 \nq-13,0 -22.5,9.5t-9.5,22.75t 9.5,22.5t 22.5,9.25l 320,0 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bookmark\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-160-112l-160,112q-13.5,0 -22.75-9.5t-9.25-22.5l0-416 q0-26.5 18.75-45.25t 45.25-18.75l 256,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,416 q0,13 -9.25,22.5t-22.75,9.5zM 294.5,166l-38.5-86l-38.5,86l-89.5,12l 66,64.5l-17,93.5l 79-46l 79,46l-17-93.5l 66-64.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"youtube\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,432q-111,16 -208,16q-43,0 -95-4t-82.5-8l-30.5-4q-13.5-2.5 -23.75-18.75t-15-39.25t-7-43t-2.25-36.5l0-77 q0-127.5 48-137.5q 111-16 208-16q 43,0 95,4t 82.5,8l 30.5,4q 14.5,2 24.75,18.25t 14.75,39.75t 6.5,43t 2,36.5l0,77 q0,18 -1.5,36.5t-6,42.5t-15,40t-25.5,18.5zM 346.5,243.5\nl-131-80q-5.5-5 -14.5-2.75t-9,7.25l0,176 q0,5.5 9,7.5t 14.5-3l 131-80q 5.5-5 5.5-12.5t-5.5-12.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"skype\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,384q0,53 -37.5,90.5t-90.5,37.5q-51.5,0 -88.5-35.5q-20.5,3.5 -39.5,3.5q-45.5,0 -87-17.75t-71.5-47.75t-47.75-71.5t-17.75-87q0-18.5 3.5-39.5q-35.5-37 -35.5-88.5q0-53 37.5-90.5t 90.5-37.5q 51.5,0 88.5,35.5q 20.5-3.5 39.5-3.5q 45.5,0 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87q0,19 -3.5,39.5q 35.5,37 35.5,88.5\nzM 256,160q 26.5,0 45.25,9.25t 18.75,22.5t 9.5,22.75t 22.75,9.5t 22.5-9.5t 9.25-22.5q0-40 -37.5-68t-90.5-28t-90.5,28t-37.5,68t 37.5,68t 90.5,28q 26.5,0 45.25,9.25t 18.75,22.75t-18.75,22.75t-45.25,9.25t-45.25-9.5t-18.75-22.75t-9.25-22.5t-22.5-9.25t-22.75,9.25t-9.5,22.75q0,40 37.5,68t 90.5,28\nt 90.5-28t 37.5-68t-37.5-68t-90.5-28q-26.5,0 -45.25-9.5t-18.75-22.75t 18.75-22.5t 45.25-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"facebook\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,224q 13,0 22.5,9.25t 9.5,22.75l0,32 q0,13.5 -9.5,22.75t-22.5,9.25l-96,0 l0,159.5 l0,0.5 q0,13 -9.5,22.5t-22.5,9.5l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-160 l-32,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-32 q0-13.5 9.25-22.75t 22.75-9.25l 32,0 l0-96 q0-53 37.5-90.5t 90.5-37.5l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,32 \nq0,13.5 -9.25,22.75t-22.75,9.25l-64,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,96 l 96,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"laugh\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 144,128q-20,0 -34,18.75t-14,45.25t 14,45.25t 34,18.75t 34-18.75t 14-45.25\nt-14-45.25t-34-18.75zM 368,128q-20,0 -34,18.75t-14,45.25t 14,45.25t 34,18.75t 34-18.75t 14-45.25t-14-45.25t-34-18.75zM 400,320l-288,0 q-6.5,0 -11.25,4.75t-4.75,11.25q 20,56.5 58.75,84.25t 100.75,27.75t 101.25-27.75t 59.25-84.25q0-6.5 -4.75-11.25t-11.25-4.75zM 191.5,400q 12.5-48 64.5-48\nq 51.5,0 63.5,48q-7.5,7.5 -19.25,11.25t-20.25,4.25t-24.5,0.5t-24.5-0.5t-20.25-4.25t-19.25-11.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"blankstare\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 144,128q-20,0 -34,18.75t-14,45.25t 14,45.25t 34,18.75t 34-18.75t 14-45.25t-14-45.25t-34-18.75zM 144,352\nq-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 224,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-224,0 zM 368,128q-20,0 -34,18.75t-14,45.25t 14,45.25t 34,18.75t 34-18.75t 14-45.25t-14-45.25t-34-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sad\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 144,128q-20,0 -34,18.75t-14,45.25t 14,45.25t 34,18.75t 34-18.75t 14-45.25\nt-14-45.25t-34-18.75zM 368,128q-20,0 -34,18.75t-14,45.25t 14,45.25t 34,18.75t 34-18.75t 14-45.25t-14-45.25t-34-18.75zM 414.5,381.5q-11-29 -53.75-45.25t-104.75-16.25t-104.75,16.25t-53.75,45.25l-1.5,2.5q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25q 26.5-20.5 51.25-26.25t 76.75-5.75\nt 76.75,5.75t 51.25,26.25q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25q-0.5-1 -1.5-2.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"happy\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 144,128q-20,0 -34,18.75t-14,45.25t 14,45.25t 34,18.75t 34-18.75t 14-45.25\nt-14-45.25t-34-18.75zM 368,128q-20,0 -34,18.75t-14,45.25t 14,45.25t 34,18.75t 34-18.75t 14-45.25t-14-45.25t-34-18.75zM 400,336q-6.5,0 -11.25,4.75t-4.75,11.25l-0.5,0 q-26.5,20.5 -51.25,26.25t-76.5,5.75t-76.5-5.75t-51.25-26.25q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25\nq 0.5,1 1.5,2.5q 11.5,29 54,45.25t 104,16.25l 0.5,0 l0,0 q 59,0 100.75-15t 55.25-42l 4-7q0-6.5 -4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"favorite2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512.5,231.5l-101,112l 14.5,148.5q-1.5,10 -9.5,15.75t-18,3.75l-139.5-59.5l-139.5,59.5q-10,2 -18-3.75t-9.5-15.75l 14.5-148.5l-101-112q-4.5-8.5 -1.25-18t 11.75-14l 149-32l 77-129q 7-7 17-7t 17,7l 77,129l 149,32q 8.5,4.5 11.75,14t-1.25,18zM 425.5,229l-102-22.5l-53-90q-5-5 -11.75-5\nt-11.75,5l-53,90l-102.5,22.5q-6,3.5 -8,10t 1,12.5l 70.5,80l-8,100q 1,7.5 5.25,12.5t 10.25,4l 96-42l 96,42q 6.5,1 10.75-4t 5.25-12.5l-8-100.5l 70.5-79.5q 3-6 0.75-12.5t-8.25-10z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"favorite\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512.5,231.5l-101,112l 14.5,148.5q-1.5,10 -9.5,15.75t-18,3.75l-139.5-59.5l-139.5,59.5q-10,2 -18-4t-9.5-15.5l 14.5-148.5l-101-112q-4.5-8.5 -1.25-18t 11.75-14l 149-32l 77-129q 7-7 17-7t 17,7l 77,129l 149,32q 8.5,4.5 11.75,14t-1.25,18z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"thumbdown\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,320q-27,0 -56.5,12.75t-50.5,35.5t-21,47.75l0,64 q0,13.5 -9.5,22.75t-22.5,9.25q-8.5,0 -16-4.5q-18.5-8.5 -33.25-24.75t-14.75-34.75q0-12.5 0.25-19.75t 1-20.5t 2.75-21.5t 5.5-17t 9.25-13t 13.25-4.25l-192,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.25-22.75t 22.75-9.5l 144,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25\nt-11.25-4.75l-176,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 176,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-176,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 176,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-144,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.25-22.75t 22.75-9.5l 384,0 q 26.5,0 45.25,18.75\nt 18.75,45.25l0,192 q0,26.5 -18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"thumbup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,192q-27,0 -56.5-12.5t-50.5-35.5t-21-48l0-64 q0-13 -9.25-22.5t-22.75-9.5q-8.5,0 -16,4.5q-18.5,8.5 -33.25,24.75t-14.75,34.75q0,12.5 0.25,19.75t 1,20.5t 2.75,21.5t 5.5,17t 9.25,13t 13.25,4.25l-192,0 q-13,0 -22.5,9.5t-9.5,22.75t 9.5,22.5t 22.5,9.25l 144,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25\nt-11.25,4.75l-176,0 q-13,0 -22.5,9.5t-9.5,22.75t 9.25,22.5t 22.75,9.25l 176,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-176,0 q-13,0 -22.5,9.5t-9.5,22.75t 9.25,22.5t 22.75,9.25l 176,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-144,0 q-13,0 -22.5,9.5t-9.5,22.75t 9.5,22.5\nt 22.5,9.25l 384,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-192 q0-26.5 -18.75-45.25t-45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"businesscard2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,480l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-320 q0-13.5 9.25-22.75t 22.75-9.25l 32,0 l0,32 q0,32.5 17.75,48.25t 46.25,15.75q 28,0 46-16.5t 18-47.5l0-32 l 128,0 l0,32 q0,32.5 17.75,48.25t 46.25,15.75t 46.25-15.75t 17.75-48.25l0-32 l 32,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,320 q0,13.5 -9.25,22.75t-22.75,9.25zM 192,387\nl0-26.5 q 32-18.5 32-84q0-26 -18-39.25t-46-13.25t-46,13.25t-18,39.25q0,62.5 32,83l0,27.5 q-28,5.5 -45.75,18.5t-18.25,29q0,13.5 96,13.5t 96-13.5q-0.5-16 -18.25-29t-45.75-18.5zM 464,256l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25\nt-11.25-4.75zM 320,336q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25zM 464,384l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 384,160\nq-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.25t 9.25,22.75l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 128,160q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.25t 9.25,22.75l0,64 q0,13.5 -9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"email2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,256l-256-129.5l0-30.5 q0-13.5 9.5-22.75t 22.5-9.25l 448,0 q 13,0 22.5,9.25t 9.5,22.75l0,30.5 zM 240,288l 32,0 l 240-124.5l0,252.5 q0,13 -9.5,22.5t-22.5,9.5l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-252.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"phonebook\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,480l-32,0 l0-128 l 32,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 480,320l-32,0 l0-128 l 32,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 480,160l-32,0 l0-128 l 32,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13.5 -9.25,22.75t-22.75,9.25z\nM 416,480q0,13 -9.25,22.5t-22.75,9.5l-352,0 q-13,0 -22.5-9.5t-9.5-22.5l0-448 q0-13.5 9.5-22.75t 22.5-9.25l 352,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,448 zM 240,307l0-9 q 48-19.5 48-106q0-31.5 -22.25-47.75t-57.5-16.25t-57.75,16.25t-22.5,47.75q0,84 48,105.5l0,9.5 q-34.5,6 -57,22.5t-23,37.5q0,6 10.75,9.75\nt 31.5,5.25t 34.25,1.75t 35.5,0.25t 35.5-0.25t 34.25-1.75t 31.5-5.25t 10.75-9.75q-0.5-21 -23-37.5t-57-22.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"friends\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,293q0,5 -4.25,9t-13,6.75t-18,4.75t-23.5,3.25t-25,1.75t-27.25,1t-25.25,0.5l-23.75,0 l-64,0 l0-64 l-0.5,0 q-0.5-23 -9-40q 13.5-3.5 25.5-5l0-15.5 q-48-29 -48-120q0-37.5 26.75-56.5t 69.25-19t 69.25,19t 26.75,56.5q0,94.5 -48,121.5l0,14 q 50.5,7 81,28t 31,54zM 208,389l0,14 \nq 50.5,7 81,28.25t 31,53.75q0,5 -4.25,9t-13,6.75t-18,4.75t-23.5,3.25t-25,2t-27.25,1t-25.25,0.25l-23.75,0 l-23.75,0 t-25.25-0.25t-27.25-1t-25-2t-23.5-3.25t-18-4.75t-13-6.75t-4.25-9q 0.5-32.5 31-53.75t 81-28.25l0-15.5 q-48-29 -48-120q0-37.5 26.75-56.5t 69.25-19t 69.25,19t 26.75,56.5\nq0,94.5 -48,121.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"user\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,478.5q0,6 -6.75,11t-20.75,8.25t-28.75,6t-37.75,4.25t-40,2.25t-43.75,1.25t-40.5,0.5l-37.75,0 l-37.75,0 t-40.5-0.5t-43.75-1.25t-40-2.25t-37.75-4.25t-28.75-6t-20.75-8.25t-6.75-11q 1-44 55-77.75t 137-44.75l0-16.5 q-26-11.5 -45-32.5t-30-49.25t-16-60.5t-5-69.75q0-32 12.5-57t 34.5-40.25\nt 50.5-23t 62.5-7.75t 62.5,7.75t 50.5,23t 34.5,40.25t 12.5,57q0,175 -96,213l0,15.5 q 83,11 137,44.75t 55,77.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"love\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 402.5,362l-146.5,150l-147-150q-59.5-61 -84.25-115.5t-24.75-118.5q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5q0,63.5 -24.75,118.25t-84.75,115.75zM 448,128q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25l0,0.5 q0,8.5 -20,20t-44,11.5\nq-25,0 -44.5-11t-19.5-21l0,0 q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25l0,0.5 q0,53 18,95.25t 63.5,95.25l 110.5,113l 110-113q 46-53.5 64-95.5t 18-95.5l0,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"loved\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 402.5,362l-146.5,150l-147-150q-59.5-61 -84.25-115.5t-24.75-118.5q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5q0,63.5 -24.75,118.25t-84.75,115.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"post2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 427.5,384l-43.5,0 l-128,128l0-128 l-171.5,0 q-28.5,0 -56.5-28.5t-28-57.5l0-212 q0-29 28-57.5t 56.5-28.5l 343,0 q 28.5,0 56.5,28.5t 28,57.5l0,212 q0,29 -28,57.5t-56.5,28.5zM 384,96l-256,0 q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25l 256,0 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5zM 384,224l-256,0 \nq-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25l 256,0 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"quote\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 427.5,384l-43.5,0 l-128,128l0-128 l-171.5,0 q-28.5,0 -56.5-28.5t-28-57.5l0-212 q0-29 28-57.5t 56.5-28.5l 343,0 q 28.5,0 56.5,28.5t 28,57.5l0,212 q0,29 -28,57.5t-56.5,28.5zM 224,192q0-13.5 -9.25-22.75t-22.75-9.25l-32,0 l0-32 l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-48,0 q-13,0 -22.5,9.5t-9.5,22.5l0,128 \nq0,13 9.5,22.5t 22.5,9.5l 64,0 q 13,0 22.5-9.5t 9.5-22.5l0-64 zM 416,192q0-13.5 -9.5-22.75t-22.5-9.25l-32,0 l0-32 l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-48,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,128 q0,13 9.25,22.5t 22.75,9.5l 64,0 q 13,0 22.5-9.25t 9.5-22.75l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"post\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 427.5,384l-107.5,0 l-128,128l0-128 l-107.5,0 q-28.5,0 -56.5-28.5t-28-57.5l0-212 q0-29 28-57.5t 56.5-28.5l 343,0 q 28.5,0 56.5,28.5t 28,57.5l0,212 q0,29 -28,57.5t-56.5,28.5zM 448,113.5q0-20.5 -14.5-35t-34.5-14.5l-286,0 q-20.5,0 -34.75,14.5t-14.25,35l0,157 q0,20.5 14.25,35t 34.75,14.5l 286,0 q 20,0 34.5-14.5t 14.5-35l0-157 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"comment2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,448q-33,0 -67-8q-17,20 -34.75,34.75t-30,21.75t-23.75,10.75t-15,4.25t-5.5,0.5q 13-28.5 15-62.25t-6.5-56.75q-41.5-31.5 -65-75.5t-23.5-93.5q0-45.5 20.25-87t 54.5-71.5t 81.75-47.75t 99.5-17.75t 99.5,17.75t 81.75,47.75t 54.5,71.5t 20.25,87t-20.25,87t-54.5,71.5t-81.75,47.75\nt-99.5,17.75zM 127.75,192q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 255.75,192q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 383.75,192q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5\nt 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"comment\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,448q-33,0 -67-8q-17,20 -34.75,34.75t-30,21.75t-23.75,10.75t-15.25,4.25t-5.25,0.5q 13-28.5 15-62.25t-7-56.75q-41-31.5 -64.5-75.5t-23.5-93.5q0-45.5 20.25-87t 54.5-71.5t 81.75-47.75t 99.5-17.75t 99.5,17.75t 81.75,47.75t 54.5,71.5t 20.25,87t-20.25,87t-54.5,71.5t-81.75,47.75\nt-99.5,17.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bluetooth\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 438.5,167q-5.5,5.5 -15,7.5l-124.5,81.5l 139.5,91.5q 9,9 9,21.75t-9,21.75q-6.5,6.5 -17.5,8l-173.5,102.5q-1.5,0.5 -5,2.75t-5.75,3.75t-5.5,2.75t-6.75,1.25q-14,1 -24.25-9t-8.25-25.5l0-151.5 l-76,49.5q-9,9 -21.75,9t-21.75-9t-9-21.75t 9-21.75l 116-76l-116-76\nq-9-9 -9-21.75t 9-21.75t 21.75-9t 21.75,9l 76,49.5l0-151.5 q-2-15.5 8.25-25.5t 24.25-9q 2.5,0 5,0.5t 5,2t 4,2.25t 4.75,3t 4.25,3.25l 191,112.5q 9,9 9,21.75t-9,21.75zM 256,427l 102.5-60l-102.5-67l0,127 zM 256,85l0,127 l 102.5-67z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"android\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,128q-4,0 -9-1.5l-63,63.5q 61.5,32.5 98.75,93t 37.25,133q0,13.5 -9.5,22.75t-22.5,9.25l-448,0 q-13,0 -22.5-9.25t-9.5-22.75q0-72.5 37.25-133t 98.75-93l-63-63.5q-5,1.5 -9,1.5q-13.5,0 -22.75-9.25t-9.25-22.5t 9.5-22.75t 22.5-9.5t 22.5,9.5t 9.5,22.5q0,4 -1.5,9l 72,71.5q 44-16.5 89.5-16.5\nt 89.5,16.5l 72-71.5q-1.5-5 -1.5-9q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 128,288q-13,0 -22.5,9.5t-9.5,22.75t 9.5,22.5t 22.5,9.25t 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5zM 383.75,352q 13.25,0 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5t-22.5,9.5t-9.5,22.75t 9.25,22.5t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"webcam2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288.5,415l0-64.5 q 54-6 91-46.75t 37-96.25t-37-96.5t-91-47l0-64 q 53,4 97,32.5t 69.5,74.75t 25.5,100.25t-25.5,100.25t-69.5,74.75t-97,32.5zM 352.5,143.5q0,20 -23.5,34t-56.75,14t-56.75-14t-23.5-34t 23.5-34t 56.75-14t 56.75,14t 23.5,34zM 128,207.5q0,55.5 37,96.25t 91.5,46.75l0,64.5 \nq-53.5-4 -97.5-32.5t-69.5-74.75t-25.5-100.25t 25.5-100.25t 69.5-74.75t 97.5-32.5l0,64 q-54.5,6 -91.5,47t-37,96.5zM 128,416q 11.5,11 28.25,18.25t 39.25,9.75t 37.25,3.25t 39.75,0.75t 39.5-0.75t 37.25-3.25t 39.25-9.75t 28-18.25q 11,10.5 16.25,17t 10.5,19.25t 5.25,27.75q0,6 -4.5,10.5t-14,7.75\nt-19.25,5.75t-25.5,4t-27.5,2.25t-30.25,1.25t-28.25,0.5l-27,0 l-27,0 t-28.25-0.5t-30-1.25t-27.5-2.25t-25.75-4t-19.25-5.75t-14-7.75t-4.5-10.5q0-15 5.25-27.75t 10.75-19.25t 16-17z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"install\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 500.5,331.5q 11.5,25 11.5,52q0,53 -37.5,90.5t-90.5,37.5q-27,0 -52-11q-37,11.5 -76,11.5q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5q0,38.5 -11.5,75.5zM 256,448q 7.5,0 17-1\nq-17-29.5 -17-63.5q0-36 19-66.5q-10.5,3 -19,3q-22.5,0 -40.5-14.5l-81,99q 53,43.5 121.5,43.5zM 288,256.25q0-13.25 -9.5-22.75t-22.5-9.5t-22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5q 13.5,0 22.75-9.25t 9.25-22.5zM 64,256q0,68.5 43.5,121.5l 99-81q-14.5-18 -14.5-40.5q0-13 5-25l-117.5-50.5q-15.5,36 -15.5,75.5z\nM 256,64q-39.5,0 -75.5,15.5l 50.5,117.5q 11.5-5 25-5q 22.5,0 40.5,14.5l 81-99q-53-43.5 -121.5-43.5zM 404.5,134.5l-99,81q 14.5,18 14.5,40.5q0,8.5 -3,18.5q 31-19 67-19q 33.5,0 63,17q 1-10 1-16.5q0-68.5 -43.5-121.5zM 475.5,351.5l-59.5,0 l0-32 q0-13 -9.5-22.5t-22.75-9.5t-22.5,9.5t-9.25,22.5l0,32 l-59.5,0 \nq-4.5,0 -4.75,7t 3.75,11l 74,70.5q 7.5,7.5 18.5,7.5t 18.5-7.5l 74-70.5q 4-4 3.5-11t-4.5-7z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"menu\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,320l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 448,128l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 64,384l 384,0 \nq 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"mouse2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-43.5,0 -80.25-21.5t-58.25-58.25t-21.5-80.25l0-192 q0-43.5 21.5-80.25t 58.25-58.25t 80.25-21.5t 80.25,21.5t 58.25,58.25t 21.5,80.25l0,192 q0,43.5 -21.5,80.25t-58.25,58.25t-80.25,21.5zM 256.25,96q-13.25,0 -22.75,9.5t-9.5,22.5t 9.5,22.5t 22.75,9.5t 22.5-9.5t 9.25-22.5t-9.25-22.5t-22.5-9.5z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"print\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,448l0,32 q0,13.5 -9.5,22.75t-22.5,9.25l-320,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-32 q-26.5,0 -45.25-18.75t-18.75-45.25l0-128 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,128 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,288q0-13 -9.5-22.5t-22.5-9.5l-320,0 q-13.5,0 -22.75,9.5\nt-9.25,22.5l0,64 q0,13.5 9.25,22.75t 22.75,9.25l 320,0 q 13,0 22.5-9.25t 9.5-22.75l0-64 zM 128,352q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.5-9.5t 22.75,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25zM 64,32q0-13 9.25-22.5t 22.75-9.5l 320,0 q 13,0 22.5,9.5t 9.5,22.5l0,128 l-384,0 l0-128 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sidebar\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 64,432q0,6.5 4.75,11.25t 11.25,4.75l 176,0 l0-224 l-192,0 l0,208 zM 256,64l-176,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,80 l 192,0 l0-96 zM 448,80\nq0-6.5 -4.75-11.25t-11.25-4.75l-112,0 l0,384 l 112,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-352 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"hourglass2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,64l-32,0 l0,32 q0,49.5 -23.25,91.5t-62.75,68.5q 39.5,26.5 62.75,68.75t 23.25,91.25l0,32 l 32,0 q 13,0 22.5,9.25t 9.5,22.75t-9.5,22.75t-22.5,9.25l-448,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 32,0 l0-32 q0-49 23.25-91.25t 62.75-68.75q-39.5-26.5 -62.75-68.5t-23.25-91.5l0-32 l-32,0 \nq-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 128,416l0,32 l 256,0 q 1-4.5 1-9.75t-0.5-12t-0.5-10.25q0-53 -37.5-90.5t-90.5-37.5t-90.5,37.5t-37.5,90.5zM 384,64l-256,0 l0,32 q0,53 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"loading\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,64l-32,0 l0,32 q0,49.5 -23.25,91.5t-62.75,68.5q 39.5,26.5 62.75,68.75t 23.25,91.25l0,32 l 32,0 q 13,0 22.5,9.25t 9.5,22.75t-9.5,22.75t-22.5,9.25l-448,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 32,0 l0-32 q0-49 23.25-91.25t 62.75-68.75q-39.5-26.5 -62.75-68.5t-23.25-91.5l0-32 l-32,0 \nq-13,0 -22.5-9.25t-9.5-22.75t 9.5-22.75t 22.5-9.25l 448,0 q 13,0 22.5,9.25t 9.5,22.75t-9.5,22.75t-22.5,9.25zM 288,292l0,96 l 96,60l0-32 q0-44 -27-78.5t-69-45.5zM 128,416l0,32 l 96-60l0-96 q-42,11 -69,45.5t-27,78.5zM 384,64l-256,0 l0,32 q0,34 17.5,64l 221,0 q 17.5-30 17.5-64l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sim2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-448 q0-13 9.25-22.5t 22.75-9.5l 221,0 q 16-1 26.5,9.5l 94.5,94.5q 10,10 10,24l0,352 q0,13.5 -9.5,22.75t-22.5,9.25zM 160,208q0-6.5 -4.75-11.25t-11.25-4.75l-16,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,16 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-32 zM 160,304q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 zM 160,432q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,16 q0,13.5 9.25,22.75t 22.75,9.25l 16,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-32 zM 256,208q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 256,304q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-64 zM 256,432q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 352,224q0-13.5 -9.5-22.75t-22.5-9.25l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-16 zM 352,304q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 zM 352,432q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 16,0 q 13,0 22.5-9.25\nt 9.5-22.75l0-16 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ubuntu\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 414,222.5q-11-42 -45.5-69.25t-79-27.25q-17,0 -34.5,5l-49-85q 41.5-16.5 83.5-16.5q 15.5,0 33.5,3q-1.5,8 -1.5,13q0,33.5 23.5,57t 57,23.5q 31,0 54.5-21.5q 46,51 55.5,118l-98,0 zM 402,94q-20,0 -34-14.25t-14-34.25t 14-34t 34-14t 34,14t 14,34t-14,34.25t-34,14.25zM 199.5,346.5l-49,85\nq-58.5-46 -78-116.5q 25-8 40.5-29t 15.5-47.5q0-23.5 -12.5-43t-33.5-29.5q 22-51.5 68-87.5l 49,84.5q-38.5,38 -38.5,91.75t 38.5,91.75zM 48.25,287q-19.75,0 -34-14.25t-14.25-34.25t 14.25-34t 34-14t 34,14t 14.25,34t-14.25,34.25t-34,14.25zM 255,378.5q 17.5,5 34.5,5q 44.5,0 79-27.25t 45.5-69.25l 98,0 \nq-9.5,67 -55.5,118q-23.5-21.5 -54.5-21.5q-33.5,0 -57,23.5t-23.5,57q0,5 1.5,13q-18,3 -33.5,3q-43,0 -83.5-16.5zM 402,415.5q 20,0 34,14.25t 14,34.25t-14,34t-34,14t-34-14t-14-34t 14-34.25t 34-14.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"restart\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l-64,0 q-13,0 -22.5-9.25t-9.5-22.75t 9.5-22.75t 22.5-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75t-9.25,22.75t-22.75,9.25zM 393,164.5q-9.5,9.5 -23,9.5t-23-9.5t-9.5-23t 9.5-23l 46-45.5q 9-9.5 22.5-9.5t 23,9.5t 9.5,23t-9.5,22.5zM 256,512q-13.5,0 -22.75-9.25t-9.25-22.75l0-64 q0-13 9.5-22.5t 22.75-9.5\nt 22.5,9.5t 9.25,22.5l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 256.25,128q-13.25,0 -22.75-9.5t-9.5-22.5l0-64 q0-13.5 9.5-22.75t 22.5-9.25t 22.5,9.25t 9.5,22.75l0,64 q0,13.5 -9.25,22.75t-22.5,9.25zM 118.5,438.5q-9,9.5 -22.5,9.5t-23-9.5t-9.5-23t 9.5-22.5l 45.5-46q 9.5-9.5 23-9.5t 23,9.5t 9.5,23t-9.5,23z\nM 118.5,164.5l-45.5-46q-9.5-9 -9.5-22.5t 9.5-23t 23-9.5t 22.5,9.5l 46,45.5q 9.5,9.5 9.5,23t-9.5,23t-23,9.5t-23-9.5zM 128,256.25q0,13.25 -9.5,22.5t-22.5,9.25l-64,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25l 64,0 q 13,0 22.5,9.5t 9.5,22.75zM 393,347l 45.5,46q 9.5,9 9.5,22.5t-9.5,23t-23,9.5\nt-22.5-9.5l-46-45.5q-9.5-9.5 -9.5-23t 9.5-23t 23-9.5t 23,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"shutdown\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25t 70,70t 96.25,25.75t 96.25-25.75t 70-70\nt 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 256,384q-13,0 -22.5-9.25t-9.5-22.75l0-192 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5l0,192 q0,13.5 -9.5,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"power\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5q0-48.5 17.25-92.5t 48.75-78.5q 1.5-1.5 5.75-6t 7-7.25t 7.5-5.25t 9.75-2.5q 13,0 22.5,9.5t 9.5,22.5q0,8 -1.75,14t-3.75,8l-1.5,2.5q-27,26.5 -42,61.5t-15,74q0,52 25.75,96.25t 70,70t 96.25,25.75t 96.25-25.75t 70-70t 25.75-96.25\nq0-39 -15-74.25t-41.5-61.75q-7.5-7.5 -7.5-24q0-13 9.5-22.5t 22.5-9.5q 3.5,0 6.75,1t 5.25,2t 5.25,4t 4.25,4.25t 4.5,5.25t 4,4.5q 31.5,34.5 48.75,78.5t 17.25,92.5q0,52 -20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,256q-13.5,0 -22.75-9.25t-9.25-22.75l0-192 q0-13.5 9.5-22.75t 22.75-9.25\nt 22.5,9.25t 9.25,22.75l0,192 q0,13.5 -9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sync2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507,160l-57.5,0 l0,192 q0,13 -9.25,22.25t-22.75,9.25l-64,0 q-13.5,0 -22.75-9.25t-9.25-22.25l0-192 l-57,0 q-4.5,0 -6.25-9t 2.25-14.5l 114-131q 4.5-5.5 11-5.5t 11,5.5l 114,131q 4,5.5 2.5,14.5t-6,9zM 140.5,506.5q-4.5,5.5 -11,5.5t-11-5.5l-114-131q-4.5-5.5 -2.75-14.5t 6.25-9l 57.5,0 l0-192 q0-13.5 9.25-22.75\nt 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,192 l 57,0 q 4.5,0 6.25,9t-2.25,14.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"upload\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-48 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5l0,16 q0,13.5 9.25,22.75t 22.75,9.25l 320,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-16 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5l0,48 q0,26.5 -18.75,45.25t-45.25,18.75zM 437.5,192l-117.5,0 l0,160 q0,13.5 -9.25,22.75t-22.75,9.25\nl-64,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-160 l-118,0 q-7.5,0 -9.25-3t 4.25-9.5l 170.5-172.5q 7-7 16.5-7t 16.5,7l 170.5,172.5q 6,6.5 4,9.5t-9.5,3z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"download\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-48 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,16 q0,13.5 9.25,22.75t 22.75,9.25l 320,0 q 13,0 22.5-9.25t 9.5-22.75l0-16 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,48 q0,26.5 -18.75,45.25t-45.25,18.75zM 272.5,377q-7,7 -16.5,7t-16.5-7l-170.5-172.5\nq-6-6.5 -4.25-9.5t 9.25-3l 118,0 l0-160 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,160 l 117.5,0 q 7.5,0 9.5,3t-4,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"keyboard\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 504,288l-48,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25zM 472,192l-48,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25zM 440,96\nl-48,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25zM 384,184q0,3.5 -2.25,5.75t-5.75,2.25l-48,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 zM 344,96l-48,0 \nq-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25zM 288,184q0,3.5 -2.25,5.75t-5.75,2.25l-48,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 zM 248,96l-48,0 \nq-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25zM 192,184q0,3.5 -2.25,5.75t-5.75,2.25l-48,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 zM 152,96l-48,0 \nq-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25zM 96,184q0,3.5 -2.25,5.75t-5.75,2.25l-80,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 80,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 zM 56,96l-48,0 \nq-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25zM 8,224l 112,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25l-112,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25zM 8,416l 48,0 \nq 3.5,0 5.75,2.25t 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25l-48,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25zM0,376l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 80,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25l-80,0 q-3.5,0 -5.75-2.25t-2.25-5.75zM 104,416l 48,0 \nq 3.5,0 5.75,2.25t 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25l-48,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25zM 128,376l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25l-48,0 q-3.5,0 -5.75-2.25t-2.25-5.75zM 168,288q-3.5,0 -5.75-2.25\nt-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25l-48,0 zM 288,328l0,48 q0,3.5 -2.25,5.75t-5.75,2.25l-48,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75zM 264,224l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75\nl0,48 q0,3.5 -2.25,5.75t-5.75,2.25l-48,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25zM 384,328l0,48 q0,3.5 -2.25,5.75t-5.75,2.25l-48,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75zM 360,224l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 \nq0,3.5 -2.25,5.75t-5.75,2.25l-48,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25zM 200,416l 208,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25l-208,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25zM 416,328q0-3.5 2.25-5.75t 5.75-2.25l 48,0 q 3.5,0 5.75,2.25\nt 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25l-48,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 zM 456,416l 48,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,48 q0,3.5 -2.25,5.75t-5.75,2.25l-48,0 q-3.5,0 -5.75-2.25t-2.25-5.75l0-48 q0-3.5 2.25-5.75t 5.75-2.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tablet\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,448l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,256 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,128l-384,0 l0,256 l 384,0 l0-256 zM 96,352l0-192 l 256,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"rar\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,480l-128,0 l0-73 q 14.5-8.5 23.25-23t 8.75-32l 96,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.5,22.75t-22.5,9.25zM 480,320l-96,0 l0-128 l 96,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.5,22.75t-22.5,9.25zM 480,160l-96,0 q0-17.5 -8.75-32t-23.25-23l0-73 l 128,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.5,22.75\nt-22.5,9.25zM 352,352q0,13.5 -9.5,22.75t-22.5,9.25l0,96 q0,13.5 -9.25,22.75t-22.75,9.25l-64,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-96 q-13.5,0 -22.75-9.25t-9.25-22.75l0-192 q0-13 9.5-22.5t 22.5-9.5l0-96 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,96 q 13.5,0 22.75,9.25\nt 9.25,22.75l0,192 zM 320,192q0-13 -9.25-22.5t-22.75-9.5l0,64 q0,13.5 -9.25,22.75t-22.75,9.25t-22.75-9.25t-9.25-22.75l0-64 q-13.5,0 -22.75,9.5t-9.25,22.5l0,128 q0,13.5 9.25,22.75t 22.75,9.25l 64,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-128 zM 128,160l-96,0 q-13,0 -22.5-9.25t-9.5-22.75l0-64 \nq0-13.5 9.5-22.75t 22.5-9.25l 128,0 l0,73 q-14.5,8.5 -23.25,23t-8.75,32zM 32,192l 96,0 l0,128 l-96,0 q-13,0 -22.5-9.25t-9.5-22.75l0-64 q0-13 9.25-22.5t 22.75-9.5zM 32,352l 96,0 q0,17.5 8.75,32t 23.25,23l0,73 l-128,0 q-13,0 -22.5-9.25t-9.5-22.75l0-64 q0-13 9.25-22.5t 22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"zip\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 160,0 l0,32 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 16,0 l0,32 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 16,0 l0,32 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 16,0 \nl0,32 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 16,0 l0,32 q-13.5,0 -22.75,9.5t-9.25,22.5l0,96 q0,13.5 9.25,22.75t 22.75,9.25l 64,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-96 q0-13 -9.25-22.5t-22.75-9.5l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-16,0 l0-32 l 16,0 q 6.5,0 11.25-4.75\nt 4.75-11.25t-4.75-11.25t-11.25-4.75l-16,0 l0-32 l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-16,0 l0-32 l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-16,0 l0-32 l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l 144,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75\nzM 256,416q-13,0 -22.5-9.25t-9.5-22.5t 9.25-22.75t 22.75-9.5t 22.75,9.5t 9.25,22.75t-9.5,22.5t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"touchpad\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,480l-160,0 l0-128 l 128,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-192 q0-13 -9.25-22.5t-22.75-9.5l-288,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,192 q0,13.5 9.5,22.75t 22.5,9.25l 128,0 l0,128 l-160,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-320 q0-26.5 18.75-45.25t 45.25-18.75l 352,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,320 \nq0,26.5 -18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"terminal\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 224,32q-13.5,0 -22.75,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75t-9.25-22.75t-22.75-9.25zM 320,32\nq-13.5,0 -22.75,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75t-9.25-22.75t-22.75-9.25zM 416,32q-13.5,0 -22.75,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75t-9.25-22.75t-22.75-9.25zM 448,160q0-13 -9.5-22.5t-22.5-9.5l-320,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,256 \nq0,13 9.25,22.5t 22.75,9.5l 320,0 q 13,0 22.5-9.5t 9.5-22.5l0-256 zM 368,352l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 218.5,284l-62.5,62.5q-5,5 -12,5t-11.75-5t-4.75-11.75t 5-11.25l 51.5-51.5l-51.5-51.5q-5-4.5 -5-11.25\nt 4.75-11.75t 11.75-5t 12,5l 62.5,62.5q 2,2 1.5,2.5q 3.5,5 3.25,11t-4.75,10.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"list\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l-256,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 256,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 480,96l-256,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 256,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 96,512l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13 9.25-22.5t 22.75-9.5l 64,0 \nq 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.5,22.75t-22.5,9.25zM 96,320l-64,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-64 q0-13 9.25-22.5t 22.75-9.5l 64,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.5,22.75t-22.5,9.25zM 96,128l-64,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-64 q0-13 9.25-22.5t 22.75-9.5l 64,0 q 13,0 22.5,9.5\nt 9.5,22.5l0,64 q0,13.5 -9.5,22.75t-22.5,9.25zM 224,416l 256,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-256,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"thumbnails\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-160,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-160 q0-13.5 9.25-22.75t 22.75-9.25l 160,0 q 13,0 22.5,9.25t 9.5,22.75l0,160 q0,13.5 -9.5,22.75t-22.5,9.25zM 448,368q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25\nl0-64 zM 480,224l-160,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-160 q0-13.5 9.25-22.75t 22.75-9.25l 160,0 q 13,0 22.5,9.25t 9.5,22.75l0,160 q0,13 -9.5,22.5t-22.5,9.5zM 448,80q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 \nzM 192,512l-160,0 q-13,0 -22.5-9.25t-9.5-22.75l0-160 q0-13.5 9.5-22.75t 22.5-9.25l 160,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,160 q0,13.5 -9.5,22.75t-22.5,9.25zM 160,368q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 z\nM 192,224l-160,0 q-13,0 -22.5-9.5t-9.5-22.5l0-160 q0-13.5 9.5-22.75t 22.5-9.25l 160,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,160 q0,13 -9.5,22.5t-22.5,9.5zM 160,80q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"details\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-256,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13 9.25-22.5t 22.75-9.5l 256,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.5,22.75t-22.5,9.25zM 480,320l-256,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 256,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13.5 -9.5,22.75t-22.5,9.25z\nM 480,128l-256,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 256,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13 -9.5,22.5t-22.5,9.5zM 96,512l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 96,320l-64,0 \nq-13,0 -22.5-9.25t-9.5-22.75l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 96,128l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13 -9.25,22.5t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"grid\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 480,320l-64,0 q-13,0 -22.5-9.25t-9.5-22.75l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 480,128l-64,0 \nq-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13 -9.25,22.5t-22.75,9.5zM 288,512l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 288,320l-64,0 q-13.5,0 -22.75-9.25\nt-9.25-22.75l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 288,128l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13 -9.25,22.5t-22.75,9.5zM 96,512l-64,0 q-13,0 -22.5-9.5\nt-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 96,320l-64,0 q-13,0 -22.5-9.25t-9.5-22.75l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 96,128l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 \nq0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13 -9.25,22.5t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"usb3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 352,448l-32,0 l0,32 q0,13 -9.5,22.5t-22.5,9.5l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-32 l-32,0 q-8.5,0 -32-20.25t-43.75-43.75t-20.25-32l0-160 q0-13 9.25-22.5t 22.75-9.5l 320,0 q 13,0 22.5,9.5t 9.5,22.5l0,160 q0,8.5 -20.25,32t-43.75,43.75t-32,20.25zM 96,0l 320,0 l0,128 l-320,0 l0-128 zM 320,80q0,6.5 4.75,11.25\nt 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 128,80q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"usb2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-352,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 352,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,144q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 16,0 \nq0,26.5 -18.75,45.25t-45.25,18.75l-32,0 l0-160 l 26.5,0 q 5.5-5.5 5.5-13t-5.5-12.5l-29.5-65.5q-5.5-5.5 -13-5.5t-13,5.5l-29.5,65.5q-5.5,5 -5.5,12.5t 5.5,13l 26.5,0 l0,192 l-32,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-3 q 14-5 23-17.25t 9-27.75q0-20 -14-34t-34-14t-34,14t-14,34q0,15.5 9,27.75t 23.5,17.25\nq0,0.5 -0.25,1.5t-0.25,1.5q0,36.5 29.75,66.25t 66.25,29.75l 32,0 l0,35 q-14,5 -23,17.25t-9,27.75q0,20 14,34t 34,14t 34-14t 14-34q0-15.5 -9-27.75t-23-17.25l0-67 l 32,0 q 36.5,0 66.25-29.75t 29.75-66.25l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"usb\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 432,224l-16,0 q0,36.5 -29.75,66.25t-66.25,29.75l-32,0 l0,99 q 14,5 23,17.25t 9,27.75q0,20 -14,34t-34,14t-34-14t-14-34q0-15.5 8.75-27.75t 23.25-17.25l0-35 l-32,0 q-36.5,0 -66.25-29.75t-29.75-66.25l0-1.5 l0-1 q-14-5 -23-17.5t-9-28q0-19.5 14-33.5t 34-14t 34,14t 14,33.5q0,15.5 -9,27.75\nt-23,17.75l0,2.5 q0,26.5 18.75,45.25t 45.25,18.75l 32,0 l0-256 l-26.5,0 q-5.5-5 -5.5-12.5t 5.5-13l 29.5-65q 5.5-5.5 13-5.5t 13,5.5l 29.5,65q 5.5,5.5 5.5,13t-5.5,12.5l-26.5,0 l0,192 l 32,0 q 26.5,0 45.25-18.75t 18.75-45.25l-16,0 q-7,0 -11.5-4.5t-4.5-11.5l0-63.5 q0-7 4.5-11.5t 11.5-4.5l 64,0 q 6.5,0 11.25,4.5t 4.75,11.5l0,63.5 q0,7 -4.75,11.5\nt-11.25,4.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"brightnesshalf\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 479.75,288q-13.25,0 -22.5-9.25t-9.25-22.5t 9.25-22.75t 22.5-9.5t 22.75,9.5t 9.5,22.75t-9.5,22.5t-22.75,9.25zM 416.25,128q-13.25,0 -22.75-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.5,9.25zM 256,416q-43.5,0 -80.25-21.5t-58.25-58.25t-21.5-80.25t 21.5-80.25t 58.25-58.25\nt 80.25-21.5t 80.25,21.5t 58.25,58.25t 21.5,80.25t-21.5,80.25t-58.25,58.25t-80.25,21.5zM 256,160l0,192 q 40,0 68-28t 28-67.75t-28-68t-68-28.25zM 256,64q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5t 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 95.75,128q-13.25,0 -22.5-9.25t-9.25-22.5\nt 9.25-22.75t 22.5-9.5t 22.75,9.5t 9.5,22.75t-9.5,22.5t-22.75,9.25zM 32.25,288q-13.25,0 -22.75-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.5,9.25zM 95.75,384q 13.25,0 22.75,9.5t 9.5,22.75t-9.5,22.5t-22.75,9.25t-22.5-9.25t-9.25-22.5t 9.25-22.75t 22.5-9.5zM 255.75,448\nq 13.25,0 22.75,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25t-22.75-9.25t-9.25-22.5t 9.25-22.75t 22.5-9.5zM 416,384q 13.5,0 22.75,9.5t 9.25,22.75t-9.5,22.5t-22.5,9.25t-22.5-9.25t-9.5-22.5t 9.25-22.75t 22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"brightnessfull\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.5-9.5t 22.75,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25zM 416.25,128q-13.25,0 -22.75-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.5,9.25zM 256,416q-43.5,0 -80.25-21.5t-58.25-58.25t-21.5-80.25t 21.5-80.25t 58.25-58.25\nt 80.25-21.5t 80.25,21.5t 58.25,58.25t 21.5,80.25t-21.5,80.25t-58.25,58.25t-80.25,21.5zM 256,64q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5t 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 95.75,128q-13.25,0 -22.5-9.25t-9.25-22.5t 9.25-22.75t 22.5-9.5t 22.75,9.5t 9.5,22.75t-9.5,22.5t-22.75,9.25z\nM 32,288q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.75t-9.5,22.5t-22.5,9.25zM 95.75,384q 13.25,0 22.75,9.5t 9.5,22.75t-9.5,22.5t-22.75,9.25t-22.5-9.25t-9.25-22.5t 9.25-22.75t 22.5-9.5zM 256,448q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.75,9.25t-22.5-9.25t-9.25-22.5t 9.5-22.75t 22.5-9.5z\nM 416.25,384q 13.25,0 22.5,9.5t 9.25,22.75t-9.5,22.5t-22.5,9.25t-22.5-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"brightness\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 479.75,288q-13.25,0 -22.5-9.25t-9.25-22.5t 9.25-22.75t 22.5-9.5t 22.75,9.5t 9.5,22.75t-9.5,22.5t-22.75,9.25zM 416.25,128q-13.25,0 -22.75-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.5,9.25zM 256,416q-43.5,0 -80.25-21.5t-58.25-58.25t-21.5-80.25t 21.5-80.25t 58.25-58.25\nt 80.25-21.5t 80.25,21.5t 58.25,58.25t 21.5,80.25t-21.5,80.25t-58.25,58.25t-80.25,21.5zM 256,160q-40,0 -68,28.25t-28,68t 28,67.75t 68,28t 68-28t 28-67.75t-28-68t-68-28.25zM 256,64q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5t 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25z\nM 95.75,128q-13.25,0 -22.5-9.25t-9.25-22.5t 9.25-22.75t 22.5-9.5t 22.75,9.5t 9.5,22.75t-9.5,22.5t-22.75,9.25zM 32.25,288q-13.25,0 -22.75-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.5,9.25zM 95.75,384q 13.25,0 22.75,9.5t 9.5,22.75t-9.5,22.5t-22.75,9.25t-22.5-9.25t-9.25-22.5\nt 9.25-22.75t 22.5-9.5zM 255.75,448q 13.25,0 22.75,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25t-22.75-9.25t-9.25-22.5t 9.25-22.75t 22.5-9.5zM 416,384q 13.5,0 22.75,9.5t 9.25,22.75t-9.5,22.5t-22.5,9.25t-22.5-9.25t-9.5-22.5t 9.25-22.75t 22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"screenshot\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,416l-64,0 l0,64 q0,13.5 -9.25,22.75t-22.75,9.25t-22.75-9.25t-9.25-22.75l0-64 l-64,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 64,0 l0-64 q0-13 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5l0,64 l 64,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 400,192l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 400,96l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25t-4.75-11.25t-11.25-4.75t-11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,16 q0,6.5 -4.75,11.25t-11.25,4.75z\nM 272,64l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 176,416l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75z\nM 176,64l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 80,416l-16,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25,4.75\nt 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 80,64q-6.5,0 -11.25,4.75t-4.75,11.25t-4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 q0-26.5 18.75-45.25t 45.25-18.75l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 16,128l 32,0 q 6.5,0 11.25,4.75\nt 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75zM 16,224l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"graphicscard\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,448l-16,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-32,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-32,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-32,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-32,0 \nl0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-32,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-32,0 l0-352 l 400,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,320 q0,6.5 -4.75,11.25t-11.25,4.75zM 480,160q0-13 -9.25-22.5t-22.75-9.5l-224,0 q-13,0 -22.5,9.5t-9.5,22.5l0,192 \nq0,13.5 9.5,22.75t 22.5,9.25l 224,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-192 zM 432,352l-192,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-160 q0-6.5 4.75-11.25t 11.25-4.75l 192,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,160 q0,6.5 -4.75,11.25t-11.25,4.75zM 352,192q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75\nt 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75zM 352.25,288q-13.25,0 -22.75-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.25t 9.25,22.75t-9.25,22.75t-22.5,9.25zM 64,448l0,32 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-464 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75\nl 32,0 q 2,0 3,0.5q 5.5,1 9.25,5.25t 3.75,10.25l0,64 l0,16 l0,352 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"microsd\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-96 q 13.5,0 22.75-9.25t 9.25-22.75l0-32 q0-13 -9.25-22.5t-22.75-9.5l0-32 q0-14 10-24l 86-86l0-82 q0-13 9.5-22.5t 22.5-9.5l 288,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,416 q0,26.5 -18.75,45.25t-45.25,18.75zM 192,48q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75\nt-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-64 zM 256,48q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-64 zM 320,48q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25\nt 11.25,4.75t 11.25-4.75t 4.75-11.25l0-64 zM 384,48q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-64 zM 448,48q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-64 z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sd\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,320l0,128 q0,26.5 -18.75,45.25t-45.25,18.75l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-128 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5l0-128 q0-14 10-24l 94.5-94.5q 10.5-10.5 26.5-9.5l 285,0 q 13,0 22.5,9.5t 9.5,22.5l0,224 q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25zM 128,112q0-6.5 -4.75-11.25\nt-11.25-4.75t-11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-64 zM 192,80q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,64 q0,7 4.75,11.5t 11.25,4.5t 11.25-4.5t 4.75-11.5l0-64 zM 256,80q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,64 \nq0,7 4.75,11.5t 11.25,4.5t 11.25-4.5t 4.75-11.5l0-64 zM 320,80q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,64 q0,7 4.75,11.5t 11.25,4.5t 11.25-4.5t 4.75-11.5l0-64 zM 384,80q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,64 q0,7 4.75,11.5t 11.25,4.5t 11.25-4.5t 4.75-11.5l0-64 zM 448,80\nq0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,64 q0,7 4.75,11.5t 11.25,4.5t 11.25-4.5t 4.75-11.5l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"keyboard2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,320l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75zM 368,128l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25\nt-11.25,4.75zM 320,208l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 176,128l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 \nq0,6.5 -4.75,11.25t-11.25,4.75zM 128,208l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 112,384l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-96,0 q-6.5,0 -11.25-4.75\nt-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75zM 304,384l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"batteryaltcharging\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-320 q0-26.5 18.75-45.25t 45.25-18.75l 96,0 l0-48 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,48 l 96,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,320 q0,26.5 -18.75,45.25t-45.25,18.75zM 416,157.5q0-12.5 -8.5-21t-20.5-8.5l-262,0 q-12,0 -20.5,8.5\nt-8.5,21l0,261 q0,12.5 8.5,21t 20.5,8.5l 262,0 q 12,0 20.5-8.5t 8.5-21l0-261 zM 256,416l-64-160l 64,0 l0-96 l 64,160l-64,0 l0,96 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"batteryalt30\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-320 q0-26.5 18.75-45.25t 45.25-18.75l 96,0 l0-48 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,48 l 96,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,320 q0,26.5 -18.75,45.25t-45.25,18.75zM 416,157.5q0-12.5 -8.5-21t-20.5-8.5l-262,0 q-12,0 -20.5,8.5\nt-8.5,21l0,261 q0,12.5 8.5,21t 20.5,8.5l 262,0 q 12,0 20.5-8.5t 8.5-21l0-261 zM 368,416l-224,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 224,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"batteryalt60\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-320 q0-26.5 18.75-45.25t 45.25-18.75l 96,0 l0-48 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,48 l 96,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,320 q0,26.5 -18.75,45.25t-45.25,18.75zM 416,157.5q0-12.5 -8.5-21t-20.5-8.5l-262,0 q-12,0 -20.5,8.5\nt-8.5,21l0,261 q0,12.5 8.5,21t 20.5,8.5l 262,0 q 12,0 20.5-8.5t 8.5-21l0-261 zM 368,416l-224,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 224,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 368,320l-224,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75\nl 224,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"batteryaltfull\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-320 q0-26.5 18.75-45.25t 45.25-18.75l 96,0 l0-48 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,48 l 96,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,320 q0,26.5 -18.75,45.25t-45.25,18.75zM 416,157.5q0-12.5 -8.5-21t-20.5-8.5l-262,0 q-12,0 -20.5,8.5\nt-8.5,21l0,261 q0,12.5 8.5,21t 20.5,8.5l 262,0 q 12,0 20.5-8.5t 8.5-21l0-261 zM 368,416l-224,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 224,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 368,320l-224,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75\nl 224,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 368,224l-224,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 224,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"networksignal\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448.25,512q-13.25,0 -22.75-9.25t-9.5-22.75l0-448 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.25t 9.25,22.75l0,448 q0,13.5 -9.25,22.75t-22.5,9.25zM 320.25,512q-13.25,0 -22.75-9.25t-9.5-22.75l0-320 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.5t 9.25,22.5l0,320 q0,13.5 -9.25,22.75t-22.5,9.25zM 192.25,512\nq-13.25,0 -22.75-9.25t-9.5-22.75l0-192 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,192 q0,13.5 -9.25,22.75t-22.5,9.25zM 64,512q-13.5,0 -22.75-9.25t-9.25-22.75l0-64 q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.25t 9.25,22.75l0,64 q0,13.5 -9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"wifi\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,127.5q-10,0 -33-10t-48.5-22t-65-22t-77.5-10t-77.5,10t-65,22t-48.5,22t-33,10q-13.5,0 -22.75-9t-9.25-22.5q0-6 6.75-15t 17.25-16q 107-65 232-65t 232,65q 24,12 24,31q0,13.5 -9.25,22.5t-22.75,9zM 84.5,178q 79-50 171.5-50t 171.5,50q 20.5,13 20.5,30\nq0,13 -9.75,22.25t-22.25,9.75l0-0.5 q-4.5,0 -20.75-7.5t-35.25-16.5t-47.75-16.5t-56.25-7.5t-56.25,7.5t-47.75,16.5t-35.25,16.5t-20.75,7.5q-13.5,0 -22.75-9t-9.25-22.5q0-17 20.5-30zM 256,255.5q 20.5,0 46.5,9t 45.75,24.25t 19.75,31.25q0,13.5 -9.5,22.75t-22.5,9.25t-24-5t-17.5-11t-16.75-11.25\nt-21.75-5.25q-12,0 -22.25,5.25t-16.5,11.25t-17.25,11t-24,5t-22.5-9.25t-9.5-22.75q0-16 19.75-31.25t 45.75-24.25t 46.5-9zM 256,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"webcam\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,384q-52,0 -96.25-25.75t-70-70t-25.75-96.25t 25.75-96.25t 70-70t 96.25-25.75t 96.25,25.75t 70,70t 25.75,96.25t-25.75,96.25t-70,70t-96.25,25.75zM 256,64q-53,0 -90.5,37.5t-37.5,90.5t 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5t-37.5-90.5t-90.5-37.5zM 256,192q-26.5,0 -45.25-14\nt-18.75-34t 18.75-34t 45.25-14t 45.25,14t 18.75,34t-18.75,34t-45.25,14zM 184,410.5q 34,5.5 72,5.5t 72-5.5q 25,19 40.5,46t 15.5,55.5l-256,0 q0-28.5 15.5-55.75t 40.5-45.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"powerjack\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,448l-352,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-288 q0-26.5 18.75-45.25t 45.25-18.75l 352,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,288 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,192q0-6.5 -4.5-11l-81-81q-5-5 -12.5-4l-156.5,0 q-7.5-1 -12.5,4l-81,81q-5,5 -4,12.5l0,174.5 q0,6.5 4.75,11.25\nt 11.25,4.75l 320,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-176 zM 368,320q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 272,224q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,32 \nq0,6.5 -4.75,11.25t-11.25,4.75zM 176,320q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"firewire\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507,98.5l-89,88.5q-4.5,5 -11.5,5t-12-5l-70-70q-5-4.5 -5-11.5t 5-11.5l 89-89q 5-5 11.75-5t 11.75,5l 70,70q 5,5 5,11.75t-5,11.75zM 352,224.25q0,39.75 -28.25,67.75t-67.75,28t-67.75-28t-28.25-67.75t 28.25-68t 67.75-28.25t 67.75,28.25t 28.25,68z\nM 256.25,192q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 118.5,187q-4.5,5 -11.25,5t-11.25-5l-23-22.5q-4.5-5 -4.5-11.5t 4.5-11.5l 68.5-68q 4.5-5 11.25-5t 11.75,5l 22.5,22.5q 5,5 5,11.5t-5,11.5zM 50.5,119q-5,4.5 -11.75,4.5t-11.25-4.5l-23-23\nq-4.5-4.5 -4.5-11.25t 4.5-11.25l 68.5-68.5q 5-5 11.5-5t 11.5,5l 22.5,22.5q 5,5 5,11.5t-5,11.5zM 208,352l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75zM 208,448l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 \nq0,6.5 -4.75,11.25t-11.25,4.75l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"imac\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,416.5l-192,0 l0,63.5 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-160,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 48,0 l0-63.5 l-192,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-352 q0-13.5 9.25-22.75t 22.75-9.25l 448,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,352 q0,13 -9.25,22.5t-22.75,9.5z\nM 480,32.5l-448,0 l0,288 l 448,0 l0-288 zM 64,288l0-224 l 320,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"batteryfull\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,320l-48,0 l0,64 q0,26.5 -18.75,45.25t-45.25,18.75l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 320,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"battery80\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,320l-48,0 l0,64 q0,26.5 -18.75,45.25t-45.25,18.75l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 320,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75zM 384,157q0-12 -8.5-20.5t-21-8.5l-5,0 \nq-12.5,0 -21,8.5t-8.5,20.5l0,198 q0,12 8.5,20.5t 21,8.5l 5,0 q 12.5,0 21-8.5t 8.5-20.5l0-198 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"battery60\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,320l-48,0 l0,64 q0,26.5 -18.75,45.25t-45.25,18.75l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 320,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75zM 384,157q0-12 -8.5-20.5t-21-8.5l-69,0 \nq-12.5,0 -21,8.5t-8.5,20.5l0,198 q0,12 8.5,20.5t 21,8.5l 69,0 q 12.5,0 21-8.5t 8.5-20.5l0-198 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"battery40\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,320l-48,0 l0,64 q0,26.5 -18.75,45.25t-45.25,18.75l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 320,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75zM 384,157q0-12 -8.5-20.5t-21-8.5l-133,0 \nq-12.5,0 -21,8.5t-8.5,20.5l0,198 q0,12 8.5,20.5t 21,8.5l 133,0 q 12.5,0 21-8.5t 8.5-20.5l0-198 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"battery20\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,320l-48,0 l0,64 q0,26.5 -18.75,45.25t-45.25,18.75l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 320,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75zM 384,157q0-12 -8.5-20.5t-21-8.5l-197,0 \nq-12.5,0 -21,8.5t-8.5,20.5l0,198 q0,12 8.5,20.5t 21,8.5l 197,0 q 12.5,0 21-8.5t 8.5-20.5l0-198 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"batteryempty\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,320l-48,0 l0,64 q0,26.5 -18.75,45.25t-45.25,18.75l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 320,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75zM 384,157q0-12 -8.5-20.5t-21-8.5l-261,0 \nq-12.5,0 -21,8.5t-8.5,20.5l0,198 q0,12 8.5,20.5t 21,8.5l 261,0 q 12.5,0 21-8.5t 8.5-20.5l0-198 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"batterycharged\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,320l-48,0 l0,64 q0,26.5 -18.75,45.25t-45.25,18.75l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 320,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75zM 256,256l0-64 l-160,64l 96,0 l0,64 l 160-64l-96,0 \nz\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"batterycharging\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,320l-48,0 l0,64 q0,26.5 -18.75,45.25t-45.25,18.75l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 320,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75zM 384,157q0-12 -8.5-20.5t-21-8.5l-261,0 \nq-12.5,0 -21,8.5t-8.5,20.5l0,198 q0,12 8.5,20.5t 21,8.5l 261,0 q 12.5,0 21-8.5t 8.5-20.5l0-198 zM 192,256l-96,0 l 160-64l0,64 l 96,0 l-160,64l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"edit2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-384,0 q-13,0 -22.5-9.25t-9.5-22.75l0-180 l 139.5,139q 9,9.5 23,8.5l 61.5,0 q 13,0 22.5-9.25t 9.5-22.75l0-63.5 q0-11.5 -9.5-20.5l-246.5-246.5l0-52.5 q0-13.5 9.5-22.75t 22.5-9.25l 224,0 l0,176 q0,6.5 4.5,11.25t 11.5,4.75l 175.5,0 l0,0.5 l0,287 q0,13.5 -9.25,22.75t-22.25,9.25zM 352,0q 13,0 22,9l 128,128.5\nq 9.5,9.5 9.5,23l-159.5,0 l0-160.5 zM 39.5,222l-34-33.5q-5.5-6 -5.5-14t 5.5-13.5l 27.5-27.5q 5.5-5.5 13.75-5.5t 13.75,5.5l 33.5,33.5zM 288,367.5l0,32 q0,7 -4.75,11.5t-11.25,4.5l-32,0 q-7,0 -13-5.5l-162-162l 55-55l 162,162q 6,6 6,12.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tethering\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 437,437q-9.5,9.5 -23.25,10.25t-21.75-7.75q-9-8.5 -9.25-23.25t 9.25-24.25l-0.5,0 q 27-27 41.75-62t 14.75-74q0-52 -25.75-96.25t-70-70t-96.25-25.75t-96.25,25.75t-70,70t-25.75,96.25q0,39 14.75,74t 41.25,62q 9.5,9.5 9,24.25t-9,23.25t-22,7.75t-23-10.25\nq-35.5-35.5 -55.25-82.25t-19.75-98.75t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-19.75,98.75t-55.25,82.25zM 115.5,337.5q-10.5-18.5 -16-38.5q-11-42 0-83.25t 41.25-71.5t 72.25-41.5t 83,0t 71.25,41.25t 41.75,72q 17,64 -16,121l0,0.5 \nq-14,23.5 -40,10.5q-12-6 -15.75-18t 3.25-22.5q 9.5-14 10.75-35.25t-4.25-39.75q-10.5-38.5 -44.75-58.25t-72.75-9.5t-58.5,44.75t-9.5,72.5q 3,11 10,23q 0.5,1.5 1.5,3.25t 2,7.25t 0.5,10.5t-4.75,11.25t-12.25,10.25q-12,7 -24.25,4t-18.75-14zM 256,192q 26.5,0 45.25,18.75t 18.75,45.25q0,17.5 -8.75,32\nt-23.25,23l0,169 q0,13.5 -9.25,22.75t-22.75,9.25t-22.75-9.25t-9.25-22.75l0-169 q-14.5-8.5 -23.25-23t-8.75-32q0-26.5 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"foldertree\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,368q0-6.5 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 80,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-160,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-208,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-272 l-80,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-160 q0-6.5 4.75-11.25\nt 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 80,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,128 q0,6.5 -4.75,11.25t-11.25,4.75l-80,0 l0,64 l 192,0 l0-80 q0-6.5 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 80,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-160,0 \nq-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-192,0 l0,160 l 192,0 l0-80 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sharedfile\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25l 192,0 l0-64 l-96,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-320 q0-13.5 9.25-22.75t 22.75-9.25l 128,0 l0,144 q0,6.5 4.75,11.25t 11.25,4.75l 143.5,0 l 0.5,0.5l0,191.5 q0,13.5 -9.5,22.75t-22.5,9.25l-96,0 l0,64 l 192,0 q 13.5,0 22.75,9.5t 9.25,22.75\nt-9.25,22.5t-22.75,9.25zM 288-0.5q 13,0 22,9l 96.5,97q 9.5,9 9,22.5l-127.5,0 l0-128.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lan\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,384l-32,0 l0,32 q0,13.5 -9.5,22.75t-22.5,9.25l-32,0 l0,32 q0,13.5 -9.25,22.75t-22.75,9.25l-160,0 q-13,0 -22.5-9.25t-9.5-22.75l0-32 l-32,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-32 l-32,0 q-13,0 -22.5-9.25t-9.5-22.75l0-320 q0-13 9.5-22.5t 22.5-9.5l 416,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,320 q0,13.5 -9.25,22.75\nt-22.75,9.25zM 480,80q0-6.5 -4.75-11.25t-11.25-4.75l-48,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-32,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-32,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-32,0 l0,48 q0,6.5 -4.75,11.25\nt-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-32,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,224 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 \nq0,6.5 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-224 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"powerplug\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,413.5l0,66.5 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-66.5 q-53.5-8 -97.5-39t-69.25-79t-25.25-103.5q0-13 9.25-22.5t 22.75-9.5l 384,0 q 13,0 22.5,9.5t 9.5,22.5q0,55.5 -25.25,103.5t-69.25,79.25t-97.5,38.75zM 352,128l0-96 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,96 l-64,0 z\nM 96,128l0-96 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,96 l-64,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"treediagram\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-32,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-32 q0-13 9.25-22.5t 22.75-9.5l0-128 l-160,0 l0,128 q 13,0 22.5,9.5t 9.5,22.5l0,32 q0,13.5 -9.5,22.75t-22.5,9.25l-32,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-32 q0-13 9.25-22.5t 22.75-9.5l0-128 l-160,0 l0,128 q 13,0 22.5,9.5t 9.5,22.5l0,32 q0,13.5 -9.5,22.75t-22.5,9.25l-32,0 \nq-13.5,0 -22.75-9.25t-9.25-22.75l0-32 q0-13 9.25-22.5t 22.75-9.5l0-144 q0-6.5 4.75-11.25t 11.25-4.75l 176,0 l0-96 l-32,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-96 q0-13 9.25-22.5t 22.75-9.5l 96,0 q 13,0 22.5,9.5t 9.5,22.5l0,96 q0,13.5 -9.5,22.75t-22.5,9.25l-32,0 l0,96 l 160,0 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,144 \nq 13,0 22.5,9.5t 9.5,22.5l0,32 q0,13.5 -9.5,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lock2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 309.5,244l 74.5,236q0,13.5 -9.25,22.75t-22.75,9.25l-192,0 q-13,0 -22.5-9.25t-9.5-22.75l 74.5-236q-33.5-15.5 -54-46.75t-20.5-69.25q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5q0,38 -20.5,69.25t-54,46.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"plug\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.5,502q-9.5,9.5 -22.5,10t-22-8.5l-47.5-47.5q-43,28.5 -95.75,23t-90.25-43l-8-8l 212-211.5l 7.5,7.5q 37.5,37.5 43,90.25t-22.5,96.25l 47.5,47q 9,9 8.5,22t-10,22.5zM 266,215.5l-51-50.5l-50,50l 51,50.5q 9,9 8.5,22t-10,22.5t-22.5,10t-22-8.5l-51-50.5l-35,35l-7.5-8\nq-37.5-37.5 -43-90.25t 22.5-95.75l-47-47q-9-9 -8.5-22t 10-22.5t 22.5-10t 22,8.5l 47,47q 43-28.5 95.75-23t 90.75,43l 7.5,8l-35,35l 51,50.5q 9,9 8.5,22t-10,22.5t-22.5,10t-22-8.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"router\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-64 q0-26.5 18.75-45.25t 45.25-18.75l 64,0 l0-105 q-14.5-8.5 -23.25-23t-8.75-32q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25q0,17.5 -8.75,32t-23.25,23l0,105 l 256,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 q0,26.5 -18.75,45.25t-45.25,18.75z\nM 96.25,384q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 224.25,384q-13.25,0 -22.75,9.5t-9.5,22.75t 9.25,22.5t 22.75,9.25t 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 416,384l-64,0 q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25l 64,0 \nq 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5zM 288,160q-13.5,0 -22.75-9.25t-9.25-22.75q-9.5-28 -36.75-46t-59.25-18t-59.25,18t-36.75,46q0,13.5 -9.5,22.75t-22.5,9.25t-22.5-9.25t-9.5-22.75q0-30.5 25.25-60.75t 62.5-48.75t 72.25-18.5t 72.25,18.5t 62.5,48.75t 25.25,60.75q0,13.5 -9.25,22.75\nt-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"mobile\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,512l-224,0 q-13,0 -22.5-9.25t-9.5-22.75l0-352 q0-13 9.5-22.5t 22.5-9.5l0-64 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,64 l 160,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,352 q0,13.5 -9.25,22.75t-22.75,9.25zM 256,440q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25\nl-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 zM 256,376q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 zM 256,312q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 \nq-3.5,0 -5.75,2.25t-2.25,5.75l0,16 zM 192,440q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 zM 192,376q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 \nq-3.5,0 -5.75,2.25t-2.25,5.75l0,16 zM 192,312q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 zM 352,176q0-6.5 -4.75-11.25t-11.25-4.75l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 128,0 \nq 6.5,0 11.25-4.75t 4.75-11.25l0-64 zM 352,296q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 zM 352,360q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 \nq 3.5,0 5.75-2.25t 2.25-5.75l0-16 zM 352,424q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"nexus\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 296,512l-80,0 q-72,0 -112-15.75t-40-48.25l0-384 q0-32.5 40-48.25t 112-15.75l 80,0 q 72.5,0 112.25,15.75t 39.75,48.25l0,384 q0,32.5 -40,48.25t-112,15.75zM 416,64l-320,0 l0,384 l 320,0 l0-384 zM 128,416l0-320.5 l 192,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"iphone\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,512l-256,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 256,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 256.25,480q 13.25,0 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5t-22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25zM 416,64l-320,0 l0,320 l 320,0 l0-320 z\nM 128,352l0-256.5 l 192,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"volumemute2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507,28.5l-478.5,478.5q-5,5 -12,5t-11.75-4.75t-4.75-11.75t 5-12l 478.5-478.5q 5-5 12-5t 11.75,4.75t 4.75,11.75t-5,12zM 224,128l 122.5-121.5q 15-15 37.5,8l0,27 l-160,159.5l0-73 zM 64,352l0-192 q0-13 9.5-22.5t 22.5-9.5l 96,0 l0,105 l-126.5,127q-1.5-4 -1.5-8zM 384,498.5q-22.5,22.5 -37.5,7l-122.5-121.5\nl0-9 l 160-160l0,283.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"volumemute\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496.5,224l-32,32l 32,32q 0.5,0.5 2.25,2t 2.5,2.5t 2.25,2.5t 2.25,2.5t 1.75,2.5t 1.5,2.75t 0.75,2.5t-0.25,2.5t-1.5,2.25l-21.5,21.5q-1,1 -2.25,1.5t-2.5,0.25t-2.5-0.75t-2.75-1.5t-2.5-1.75t-2.5-2.25l-2.5-2.5l-2.5-2.5l-2-2l-32-32l-32,32l-1.5,1.5q-15.5,15.5 -21,10l-21.5-21.5q-1-1.5 -1.5-3t 0.25-3.25t 1.5-3.25t 2.5-3.5t 3-3t 3.5-3.25\nl 2.75-2.75l 32-32l-32-32l-2.25-2.25l-2.5-2.5t-2.25-2.5t-2.5-2.75t-2-2.5t-1.5-2.75t-0.75-2.5t 0.25-2.5t 1.5-2.25l 21.5-21.5q 1-1 2.25-1.5t 2.5-0.25t 2.5,0.75t 2.75,1.5t 2.75,2t 2.75,2.5t 2.5,2.25t 2.5,2.5t 2,2.25l 32,32l 32-32q 0.5-1 2.75-3t 3.25-3.25t 3-3t 3.5-2.5t 3.25-1.5t 3.25-0.5t 3,1.75l 21.5,21.5q 5.5,5.5 -10,21zM 282.5,506l-122.5-122l0-256.5 \nl 122.5-121.5q 15-15 38,7.5l0,485 q-22.5,22.5 -38,7.5zM0,352l0-192.5 q0-13 9.5-22.5t 22.5-9.5l 96,0 l0,256.5 l-96,0 q-13,0 -22.5-9.25t-9.5-22.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"volumehalf\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 396,381.5l-22.5-22.5q 42-42.5 42-102.25t-42-101.75l 22.5-22.5q 24.5,24 38,56.25t 13.5,68.25t-13.5,68t-38,56.5zM 281.5,507l-122.5-122l0-256.5 l 122.5-121.5q 15-15 38,7.5l0,485 q-22.5,22.5 -38,7.5zM 127,385l-96,0 q-13,0 -22.5-9.25t-9.5-22.75l0-192.5 q0-13 9.5-22.5t 22.5-9.5l 96,0 l0,256.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"volumefull\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 437,437l-22.5-22.5q 31-31 48.25-71.75t 17.25-86.5t-17.25-86.5t-48.25-71.75l 22.5-23q 35.5,35.5 55.25,82.25t 19.75,99t-19.75,99t-55.25,81.75zM 380.5,380.5l-22.5-22.5q 42-42 42-101.75t-42-101.75l 22.5-22.5q 24.5,24 38,56.25t 13.5,68t-13.5,68t-38,56.25zM 282.5,506l-122.5-121.5l0-256 l 122.5-122\nq 15-15 37.5,8l0,484 q-22.5,22.5 -37.5,7.5zM 128,384.5l-96,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-192.5 q0-13 9.25-22.5t 22.75-9.5l 96,0 l0,256.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sim\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-32,0 q-13,0 -22.5-9.25t-9.5-22.75l0-64 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,32 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,352l-64,0 q-13,0 -22.5-9.25t-9.5-22.75l0-128 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,128 q0,13.5 -9.25,22.75t-22.75,9.25zM 448,128l-64,0 \nq-13,0 -22.5-9.25t-9.5-22.75l0-64 q0-13 9.5-22.5t 22.5-9.5l 32,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,32 q0,13.5 -9.25,22.75t-22.75,9.25zM 288,512l-64,0 q-13,0 -22.5-9.25t-9.5-22.75l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 288,352l-64,0 \nq-13,0 -22.5-9.25t-9.5-22.75l0-128 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,128 q0,13.5 -9.25,22.75t-22.75,9.25zM 288,128l-64,0 q-13,0 -22.5-9.25t-9.5-22.75l0-64 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 128,512l-32,0 \nq-26.5,0 -45.25-18.75t-18.75-45.25l0-32 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 128,352l-64,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-128 q0-13 9.25-22.5t 22.75-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,128 q0,13.5 -9.25,22.75t-22.75,9.25z\nM 128,128l-64,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-32 q0-26.5 18.75-45.25t 45.25-18.75l 32,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,64 q0,13.5 -9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"diskspace2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,320l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 448,224l-240,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 240,0 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5zM 448,128l-384,0 \nq-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 448,32l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,7 4.75,11.5t 11.25,4.5l 48,0 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5zM 64,384l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25\nt-18.75,45.25t-45.25,18.75l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 288,464q0,6.5 4.75,11.25t 11.25,4.75l 144,0 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5l-144,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"handtwofingers\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,320q0,9.5 -8,41.5t-16,59.5t-8,27q-5.5,14.5 -10.5,24t-12.75,19.75t-18,15.25t-22.75,5l-224,0 q-12.5,0 -22.5-4.5t-17.5-14.75t-12.25-19.5t-11.75-25.25l-48-112q-3.5-7.5 -9.75-28.25t-6.25-25.25l0-58.5 q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.5t 9.25,22.5l0,16 q0,6.5 4.75,11.25t 11.25,4.75\nt 11.25-4.75t 4.75-11.25l0-208 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.25t 9.25,22.75l0,208 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-208 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,208 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-80 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,80 \nq0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-48 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,128 l0,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"handdrag\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,448q-18.5,64 -64,64l-224,0 q-24,0 -37.75-16t-26.25-48q-18.5-40 -48-112q-3.5-8.5 -7.5-21t-6.5-20.5l-2-7.5l0-95 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,48 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-176 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,176 \nq0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-208 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,208 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-208 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,208 q0,6.5 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25l0-144 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5\nt 9.25,22.5l0,224 q0,12 -8,43.75t-16,58.5t-8,25.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"handpointup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,448q0,26.5 -18.75,45.25t-45.25,18.75l-224,0 q-5,0 -10-1.25t-8.75-2.5t-8-4.75t-6.75-5.25t-6.25-7t-5.25-7.25t-5.25-9t-4.5-8.5l-4.75-9.5l-4.5-9q-7-14.5 -17.75-37t-28.5-66.25t-17.75-56.75l0-64 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,16 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75\nt 4.75-11.25l0-208 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.25t 9.25,22.75l0,208 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-80 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,80 q0,6.5 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25l0-80 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,80 q0,6.5 4.75,11.25t 11.5,4.75\nt 11.25-4.75t 4.5-11.25l0-48 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,128 q0,9 -8,41t-16,59.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cursor\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 407,318.5l-127,0 l 71,148q 6,12 1.5,24.25t-16.75,18t-24.75,1.25t-18.5-16l-68-142.5l-96,96q-13.5,0 -23-9.5t-9.5-22.5l0-403.5 q0-7.5 8.75-10.5t 20.25,0t 19.5,10.5l 258,258q 6.5,6.5 10.75,18t 3,21t-9.25,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"deletefolder\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 494,428.5q 4.5,17.5 -7.5,30l-45,44.5q-12.5,12.5 -30.5,8q-18,4.5 -30.5-8l-44.5-44.5l-45,44.5q-12.5,12.5 -30.5,8q-18,4.5 -30.5-8l-45-44.5q-3.5-4 -6-9.5l-115,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-13.5 9.5-22.75t 22.5-9.25l 240,0 l 23-42.5q 4.5-8 15-14.75t 21-6.75l 120,0 q 12,0 22.5,6.25t 14,15.25\nq 24.5,34 24.5,42.5l0,288 q0,24.5 -18,43.5zM 439,309q 9-9 9-21.75t-9-21.75t-21.75-9t-21.75,9l-59.5,59.5l-60-59.5q-9-9 -21.75-9t-21.75,9t-9,21.75t 9,21.75l 59.5,59.5l-59.5,59.5q-9,9 -9,21.75t 9,21.75t 21.75,9t 21.75-9l 60-59.5l 59.5,59.5q 9,9 21.75,9t 21.75-9\nt 9-21.75t-9-21.75l-59.5-59.5zM 23,22.5q 3.5-9 14-15.25t 22-6.25l 120,0 q 12,0 22.5,6.25t 14.5,15.25l 24,42.5l-240,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"addfolder\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,448l-32,0 l0,32 q0,13.5 -9.25,22.75t-22.75,9.25l-64,0 q-13,0 -22.5-9.25t-9.5-22.75l0-32 l-224,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-13 9.5-22.5t 22.5-9.5l 240,0 l 23-42q 4.5-8 15-15t 21-7l 120,0 q 12,0 22.5,6.25t 14,15.75q 24.5,33.5 24.5,42l0,288 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,320l-64,0 \nl0-64 q0-13 -9.5-22.5t-22.75-9.5t-22.5,9.5t-9.25,22.5l0,64 l-64,0 q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25l 64,0 l0,64 q0,13.5 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75l0-64 l 64,0 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5zM 23,22q 3.5-9.5 14-15.75t 22-6.25l 120,0 q 12,0 22.5,6.25t 14.5,15.75\nl 24,42l-240,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"explorerwindow\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 224,96l-128,0 q-13,0 -22.5,9.5t-9.5,22.5l0,288 q0,13.5 9.25,22.75t 22.75,9.25l 128,0 l0-352 zM 448,128q0-13 -9.5-22.5t-22.5-9.5l-160,0 l0,352 \nl 160,0 q 13,0 22.5-9.25t 9.5-22.75l0-288 zM 112,384l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 176,352l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75z\nM 176,288l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 176,224l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 176,160l-64,0 q-6.5,0 -11.25-4.75\nt-4.75-11.25t 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"laptop\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,480l-448,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 448,384l-384,0 q-13,0 -22.5-9.25t-9.5-22.75l0-256 q0-13 9.5-22.5t 22.5-9.5l 384,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,256 q0,13.5 -9.25,22.75t-22.75,9.25zM 448,112q0-6.5 -4.75-11.25t-11.25-4.75l-352,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,192 q0,6.5 4.75,11.25t 11.25,4.75l 352,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-192 zM 96,127.5l 192,0 l-192,160.5l0-160.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"notes\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-352,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-352 q0-26.5 18.75-45.25t 45.25-18.75l0,64 q0,13.5 9.5,22.75t 22.5,9.25l 32,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-64 l 160,0 l0,64 q0,13.5 9.5,22.75t 22.5,9.25l 32,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-64 q 26.5,0 45.25,18.75t 18.75,45.25l0,352 q0,26.5 -18.75,45.25\nt-45.25,18.75zM 432,192l-320,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 320,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 432,288l-320,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 320,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 432,384l-320,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 320,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 400,96q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75zM 144,96q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 \nq0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"file\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 447.5,512l-383.5,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-447.5 q0-13.5 9.25-22.75t 22.75-9.25l 224,0 l0,176 q0,6.5 4.5,11.25t 11.5,4.75l 175.5,0 l0,0.5 l0,287 q0,13.5 -9.25,22.75t-22.75,9.25zM 320,0q 12.5,0 22,9l 128,128.5q 9.5,9.5 9.5,23l-159.5,0 l0-160.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"monitor\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,384l-192,0 l0,64 l 32,0 q 26.5,0 45.25,18.75t 18.75,45.25l-256,0 q0-26.5 18.75-45.25t 45.25-18.75l 32,0 l0-64 l-192,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-320 q0-13 9.25-22.5t 22.75-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.5l0,320 q0,13.5 -9.25,22.75t-22.75,9.25zM 448,64l-384,0 l0,256 l 384,0 l0-256 zM 96,288l0-192.5 l 256,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"mouse\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288.5,222.5l0-31.5 q 14-4.5 23-18.25t 9-29.25l0-64 q0-16 -9-29.75t-23-18.75l0-31 q 62,6 106.5,53.5t 52,114.5q-71,50 -158.5,54.5zM 272.25,159.5q-6.75,0 -11.25-4.75t-4.5-11.25l0-64 q0-7 4.5-11.5t 11.25-4.5t 11.5,4.5t 4.75,11.5l0,64 q0,6.5 -4.75,11.25t-11.5,4.75zM 256.5,191l0,31.5 q-88-4.5 -159-54.5\nq 7.5-67 52.25-114.5t 106.75-53.5l0,31 q-14,5 -23.25,18.75t-9.25,29.75l0,64 q0,15.5 9.25,29t 23.25,18.5zM 448.5,202l0,117.5 q0,52.5 -23.5,96.75t-64.25,70t-88.5,25.75t-88.5-25.75t-64.25-70t-23.5-96.75l0-117.5 q 80.5,53.5 176.25,53.5t 176.25-53.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"circleselect\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 406.25,169.25q-9.75-9.75 -23.75-9.75t-23.5,10l-135.5,135l-71-71\nq-9.5-10 -23.5-10t-23.75,9.75t-9.75,23.75t 10,23.5l 93.5,93.5q 10,10.5 25,10q 14.5,0.5 24.5-10l 157.5-157.5q 10-9.5 10-23.5t-9.75-23.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"circledelete\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 374,184.5q 10-9.5 10-23.5t-9.75-23.75t-23.75-9.75t-23.5,10l-71.5,71l-71-71\nq-9.5-10 -23.5-10t-23.75,9.75t-9.75,23.75t 10,23.5l 71,71.5l-71,71q-10,9.5 -10,23.5t 9.75,23.75t 23.75,9.75t 23.5-10l 71-71l 71.5,71q 9.5,10 23.5,10t 23.75-9.75t 9.75-23.75t-10-23.5l-71-71z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"circleadd\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 384,224l-96,0 l0-96 q0-13 -9.5-22.5t-22.75-9.5t-22.5,9.5t-9.25,22.5l0,96 l-96,0 \nq-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25l 96,0 l0,96 q0,13.5 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75l0-96 l 96,0 q 13.5,0 22.75-9.25t 9.25-22.5t-9.5-22.75t-22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"trashfull\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,96l-448,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 160,0 q0-13 9.25-22.5t 22.75-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l 160,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 64,128l 384,0 q 13,0 22.5,9.5t 9.5,22.5l0,288 q0,26.5 -18.75,45.25t-45.25,18.75l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-288 \nq0-13 9.5-22.5t 22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"trashempty\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,96l-448,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 160,0 q0-13 9.25-22.5t 22.75-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l 160,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 64,128q 13.5,0 22.75,9.5t 9.25,22.5l0,256 q0,13.5 9.5,22.75t 22.5,9.25l 256,0 q 13,0 22.5-9.25t 9.5-22.75l0-256 q0-13 9.25-22.5\nt 22.5-9.5t 22.75,9.5t 9.5,22.5l0,288 q0,26.5 -18.75,45.25t-45.25,18.75l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-288 q0-13 9.25-22.5t 22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"trash\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,96l-9,0 l-430,0 l-9,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.25-22.75t 22.75-9.5l 160,0 q0-13 9.25-22.5t 22.75-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l 160,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 480,448q0,26.5 -18.75,45.25t-45.25,18.75l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-320 l 448,0 l0,320 zM 160,224\nq0-13 -9.5-22.5t-22.75-9.5t-22.5,9.5t-9.25,22.5l0,192 q0,13.5 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75l0-192 zM 288,224q0-13 -9.5-22.5t-22.75-9.5t-22.5,9.5t-9.25,22.5l0,192 q0,13.5 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75l0-192 zM 416,224q0-13 -9.5-22.5t-22.75-9.5t-22.5,9.5t-9.25,22.5l0,192 \nq0,13.5 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75l0-192 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cd\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,448q 39.5,0 75.5-15.5l-50.5-117.5q-12,5 -25,5q-22.5,0 -40.5-14.5l-81,99\nq 53,43.5 121.5,43.5zM 288,256.25q0-13.25 -9.5-22.75t-22.5-9.5t-22.5,9.5t-9.5,22.75t 9.5,22.5t 22.5,9.25t 22.5-9.25t 9.5-22.5zM 64,256q0,68.5 43.5,121.5l 99-81q-14.5-18 -14.5-40.5q0-13 5-25l-117.5-50.5q-15.5,36 -15.5,75.5zM 256,64q-39.5,0 -75.5,15.5l 50.5,118q 12-5.5 25-5.5q 22.5,0 40.5,15l 81-99.5\nq-53-43.5 -121.5-43.5zM 404.5,134.5l-99,81q 14.5,18 14.5,40.5q0,13 -5,25.5l 117.5,50q 15.5-36 15.5-75.5q0-68.5 -43.5-121.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"vinyl\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,160q-40,0 -68,28.25t-28,68t 28,67.75t 67.75,28t 68-28\nt 28.25-67.75t-28-68t-68-28.25zM 256,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 255.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"paste\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-13,0 -22.5-9.5t-9.5-22.5l0-416 q0-13.5 9.25-23t 22.75-9.5l 64,0 l0,64 q0,13.5 9.5,22.75t 22.5,9.25l 192,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-64 l 64,0 q 13.5,0 22.75,9.5t 9.25,23l0,416 q0,13 -9.25,22.5t-22.75,9.5zM 320,96l-128,0 q-13,0 -22.5-9.5t-9.5-22.5q0-13.5 9.5-22.75t 22.5-9.25q0-13.5 9.5-22.75\nt 22.5-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75q 13.5,0 22.75,9.25t 9.25,22.75q0,13 -9.25,22.5t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cut\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 460,416q-18.5,0 -34-9.75t-23.5-26.25l-19-8.5l 8.5,19q 16,8 26,23.5t 10,34q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25q0-17 8.5-31.5t 22.5-23l-25-56.5l-38-17q-144-80.5 -205-125.75t-49-65.75l 254,127.5l-127.5-254.5q 20.5-12 65.25,48.75t 126.25,205.75l 17,38l 56.5,25\nq 8.5-14 23-22.5t 31.5-8.5q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 332,448.25q0,13.25 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5t-22.75,9.5t-9.5,22.75zM 460.25,320q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"copy\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-256,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-96 l 112,0 q 15.5,0 27.75-9t 17.25-23l 83,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-80,0 l0-64 l 80,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-80,0 l0-64 l 128,0 q 13,0 22.5,9.5t 9.5,22.5l0,288 q0,13 -9.25,22.5t-22.75,9.5zM 432,416l-160,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 288,352l-256,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-288 q0-13 9.25-22.5t 22.75-9.5l 256,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,288 q0,13.5 -9.5,22.75t-22.5,9.25zM 240,64l-160,0 q-6.5,0 -11.25,4.75\nt-4.75,11.25t 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 240,160l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 240,256l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 160,0 \nq 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"save\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-32,0 l0-224 q0-13 -9.5-22.5t-22.5-9.5l-320,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,224 l-32,0 q-13,0 -22.5-9.5t-9.5-22.5l0-448 q0-13 9.5-22.5t 22.5-9.5l 32,0 l 320,0 l 64,0 l 64,64l0,416 q0,13 -9.5,22.5t-22.5,9.5zM 384,32l-320,0 l0,128 q0,13.5 9.25,22.75t 22.75,9.25l 256,0 q 13,0 22.5-9.25t 9.5-22.75l0-128 zM 256,64l 64,0 \nl0,96 l-64,0 l0-96 zM 112,288l 288,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-288,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 112,384l 288,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-288,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 112,480l 288,0 \nq 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-288,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"deletefile\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 447.5,512l-383.5,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-447.5 q0-13.5 9.25-22.75t 22.75-9.25l 224,0 l0,176 q0,6.5 4.5,11.25t 11.5,4.75l 175.5,0 l0,0.5 l0,287 q0,13.5 -9.25,22.75t-22.75,9.25zM 326.5,292.5q 9-9 9-21.75t-9-21.75t-21.75-9t-21.75,9l-59.5,59.5l-59.5-59.5q-9-9 -21.75-9t-21.75,9t-9,21.75\nt 9,21.75l 59.5,59.5l-59.5,59.5q-9,9 -9,21.75t 9,21.75t 21.75,9t 21.75-9l 59.5-59.5l 59.5,59.5q 9,9 21.75,9t 21.75-9t 9-21.75t-9-21.75l-59.5-59.5zM 320,0q 13,0 22,9l 128,128.5q 9.5,9.5 9.5,23l-159.5,0 l0-160.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"createfile\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 447.5,512l-383.5,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-447.5 q0-13 9.5-22.5t 22.5-9.5l 224,0 l0,176 q0,6.5 4.5,11.25t 11.5,4.75l 175.5,0 l0,287 q0,13.5 -9.25,22.75t-22.75,9.25l0,0.5 zM 320,320l-64,0 l0-64 q0-13 -9.5-22.25t-22.75-9.25t-22.5,9.25t-9.25,22.25l0,64 l-64,0 q-13.5,0 -22.75,9.5t-9.25,22.5t 9.25,22.25\nt 22.75,9.25l 64,0 l0,64 q0,13.5 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75l0-64 l 64,0 q 13,0 22.5-9.25t 9.5-22.25t-9.5-22.5t-22.5-9.5zM 320,0q 10.5,0 22,9.5l 128,128.5q 9.5,9.5 9.5,23l-159.5,0 l0-160.5 l0-0.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"search\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.5,502.5q-9.5,9.5 -22.75,9.5t-22.75-9.5l-99-99q-60,44.5 -134,44.5q-45.5,0 -87-17.75t-71.5-47.75t-47.75-71.25t-17.75-87t 17.75-87.25t 47.75-71.25t 71.5-47.5t 87-17.75t 87,17.75t 71.5,47.5t 47.75,71.25t 17.75,87q0,74.5 -44.5,134l 99,99q 9.5,9.5 9.5,22.75t-9.5,22.75zM 224,64.5\nq-43.5,0 -80.25,21.25t-58.25,58.25t-21.5,80.25t 21.5,80.25t 58.25,58.25t 80.25,21.25t 80.25-21.25t 58.25-58.25t 21.5-80.25t-21.5-80.25t-58.25-58.25t-80.25-21.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"presentation\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,319.5l-448,0 q-13,0 -22.5-9.25t-9.5-22.75l0-191.5 q0-13.5 9.5-22.75t 22.5-9.25l 448,0 q 13,0 22.5,9.25t 9.5,22.75l0,192 q0,13 -9.5,22.25t-22.5,9.25zM 496,32l-480,0 q-6.5,0 -11.25-4.75t-4.75-11.5t 4.75-11.25t 11.25-4.5l 480,0 q 6.5,0 11.25,4.5t 4.75,11.25t-4.75,11.5t-11.25,4.75zM 16,351.5l 480,0 q 6.5,0 11.25,4.75\nt 4.75,11.5t-4.75,11.25t-11.25,4.5l-163,0 l 47.5,88.5q 5.5,9.5 2.75,20.25t-12.25,16.25t-20,2.5t-16-12.5l-62.5-115l-33,0 l-62.5,115q-5.5,9.5 -16,12.5t-20-2.5t-12.25-16.25t 2.75-20.25l 47.5-88.5l-163,0 q-6.5,0 -11.25-4.5t-4.75-11.25t 4.75-11.5t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"spreadsheet\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 416,480l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-16 l-64,0 l0,32 zM 416,416l 64,0 l0-32 l-64,0 l0,32 zM 416,352l 64,0 l0-32 l-64,0 l0,32 zM 416,288l 64,0 l0-32 l-64,0 \nl0,32 zM 480,224l0-32 l-64,0 l0,32 l 64,0 zM 320,480l 64,0 l0-32 l-64,0 l0,32 zM 320,416l 64,0 l0-32 l-64,0 l0,32 zM 320,352l 64,0 l0-32 l-64,0 l0,32 zM 320,288l 64,0 l0-32 l-64,0 l0,32 zM 384,224l0-32 l-64,0 l0,32 l 64,0 zM 224,480l 64,0 l0-32 l-64,0 l0,32 zM 224,416l 64,0 l0-32 l-64,0 l0,32 zM 224,352l 64,0 l0-32 l-64,0 l0,32 zM 224,288l 64,0 l0-32 l-64,0 l0,32 z\nM 288,224l0-32 l-64,0 l0,32 l 64,0 zM 128,464q0,6.5 4.75,11.25t 11.25,4.75l 48,0 l0-32 l-64,0 l0,16 zM 128,416l 64,0 l0-32 l-64,0 l0,32 zM 128,352l 64,0 l0-32 l-64,0 l0,32 zM 128,288l 64,0 l0-32 l-64,0 l0,32 zM 192,224l0-32 l-64,0 l0,32 l 64,0 zM 192,64l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,16 l 64,0 l0-32 zM 128,128l0,32 l 64,0 l0-32 l-64,0 z\nM 288,64l-64,0 l0,32 l 64,0 l0-32 zM 224,128l0,32 l 64,0 l0-32 l-64,0 zM 384,64l-64,0 l0,32 l 64,0 l0-32 zM 320,128l0,32 l 64,0 l0-32 l-64,0 zM 480,80q0-6.5 -4.75-11.25t-11.25-4.75l-48,0 l0,32 l 64,0 l0-16 zM 480,128l-64,0 l0,32 l 64,0 l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"document\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-13,0 -22.5-9.25t-9.5-22.75l0-448 q0-13 9.5-22.5t 22.5-9.5l 384,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,448 q0,13.5 -9.25,22.75t-22.75,9.25zM 240,416l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 112,416l 64,0 \nq 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 112,320l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 112,224l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25\nt-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 240,96l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 400,96l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75\nt 4.75-11.25t-4.75-11.25t-11.25-4.75zM 400,192l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 400,288l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\nM 400,384l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"rawaccesslogs\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 479.5,319.5l-399.5,0.5q-6.5,0 -11.25,4.75t-4.75,11.5t 4.75,11.25t 11.25,4.5l 208,0 l0,32 l-208,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 208,0 l0,95.5 l-224,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-447.5 q0-13.5 9.25-22.75t 22.75-9.25l 383.5,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,287 l0,0.5 zM 431.5,64.5l-351.5,0 \nq-6.5,0 -11.25,4.5t-4.75,11.25t 4.75,11.5t 11.25,4.75l 351.5,0 q 7,0 11.5-4.75t 4.5-11.5t-4.5-11.25t-11.5-4.5zM 431.5,128.5l-351.5,0 q-6.5,0 -11.25,4.5t-4.75,11.25t 4.75,11.5t 11.25,4.75l 351.5,0 q 7,0 11.5-4.75t 4.5-11.5t-4.5-11.25t-11.5-4.5zM 431.5,192l-351.5,0 q-6.5,0 -11.25,4.75t-4.75,11.5t 4.75,11.25t 11.25,4.5l 351.5,0 q 7,0 11.5-4.5t 4.5-11.25\nt-4.5-11.5t-11.5-4.75zM 431.5,256l-351.5,0 q-6.5,0 -11.25,4.75t-4.75,11.5t 4.75,11.25t 11.25,4.5l 351.5,0 q 7,0 11.5-4.5t 4.5-11.25t-4.5-11.5t-11.5-4.75zM 470,374.5l-128,128.5q-9,9 -22,9l0-160.5 l 159.5,0 q0,13.5 -9.5,23z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"remotemysql\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,66l0,302.5 l 32,32q-72.5,47.5 -159,47.5q-68.5,0 -130.5-31.5l-3,6q 36.5,37 36.5,89.5l-256,0 q0-53 37.5-90.5t 90.5-37.5q 15,0 31,4l 5.5-10.5q-47-40.5 -73.75-97.25t-26.75-121.25q0-86.5 47.5-159l 32.5,32l 301,0 l 24.5-25q 7.5-7 17.5-7t 17.25,7.25t 7.25,17.25t-7,17.5zM 175.5,64l 119,118.5l 118.5-118.5\nl-237.5,0 zM 448,98l-119,119.5l 119,119l0-238.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"unlock\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-13,0 -22.5-9.5t-9.5-22.5l0-224 q0-13.5 9.5-22.75t 22.5-9.25l0,0 l 128,0 l 160,0 l0-64 q0-40 -28-68t-67.75-28t-68,28t-28.25,68l-64,0 q0-43.5 21.5-80.25t 58.25-58.25t 80.25-21.5t 80.25,21.5t 58.25,58.25t 21.5,80.25l0,64 l 32,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,224 q0,13 -9.25,22.5\nt-22.75,9.5zM 320,320q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25q0,20 11.25,36t 29.25,23.5l-40.5,100.5l 128,0 l-40.5-100.5q 18-7.5 29.25-23.5t 11.25-36z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lock\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-13,0 -22.5-9.25t-9.5-22.75l0-224 q0-13.5 9.5-22.75t 22.5-9.25l 32,0 l0-64 q0-43.5 21.5-80.25t 58.25-58.25t 80.25-21.5t 80.25,21.5t 58.25,58.25t 21.5,80.25l0,64 l 32,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,224 q0,13.5 -9.25,22.75t-22.75,9.25zM 192,480l 128,0 l-40.5-100.5q 18-7.5 29.25-23.5t 11.25-36\nq0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25q0,20 11.25,36t 29.25,23.5zM 352,160q0-40 -28-68t-67.75-28t-68,28t-28.25,68l0,64 l 192,0 l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sync\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-192,0 q-13,0 -22.5-9.25t-9.5-22.75l0-160 q0-13.5 9.5-22.75t 22.5-9.25l 96,0 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l 32,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,160 q0,13.5 -9.25,22.75t-22.75,9.25zM 448,368q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25\nt 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 zM 416.25,224q-13.25,0 -22.75-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.5,9.25zM 416.25,128q-13.25,0 -22.75-9.25t-9.5-22.75t 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75t-9.25,22.75t-22.5,9.25zM 320.25,128\nq-13.25,0 -22.75-9.25t-9.5-22.75t 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75t-9.25,22.75t-22.5,9.25zM 224,224l-96,0 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l-32,0 q-13,0 -22.5-9.25t-9.5-22.75l0-160 q0-13.5 9.5-22.75t 22.5-9.25l 192,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,160 \nq0,13.5 -9.25,22.75t-22.75,9.25zM 192,80q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 zM 95.75,288q 13.25,0 22.75,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5t-22.5-9.5t-9.5-22.75t 9.25-22.5t 22.5-9.25z\nM 95.75,384q 13.25,0 22.75,9.25t 9.5,22.75t-9.5,22.75t-22.5,9.25t-22.5-9.25t-9.5-22.75t 9.25-22.75t 22.5-9.25zM 192,384q 13.5,0 22.75,9.25t 9.25,22.75t-9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75t 9.25-22.75t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cloudsync\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 437.5,372l 10.5,40q0,10 -5.5,23t-12,13l-32,0 q-16.5,29 -46,46.5t-64.5,17.5q-40,0 -72.25-22.25t-46.75-58.25q-6-1 -9.5-5l-26-26q-7-6.5 -5-16.5l-16.5,0 q-46.5,0 -79.25-32.75t-32.75-79.25q0-28.5 13.5-53t 36.5-40q 17,34.5 48.25,58.25t 69.75,31.25q-33-19 -52.5-52t-19.5-72.5\nq0-59.5 42.25-101.75t 101.75-42.25q 44,0 79.75,24t 52.25,63q-34,11 -59,37t-35,60.5q 17.5-26 45.5-41.25t 60.5-15.25q 53,0 90.5,37.5t 37.5,90.5q0,38 -20.5,69.25t-54,46.75zM 288,288q-31,0 -55.5,18t-34.5,46.5l-32.5,0 q-5.5,6 -5.5,14.5t 5.5,14.5l 26.5,34.5q 3,3 7,4.5l 0.5,0 q 6,2.5 13,1.25t 11.5-5.75\nl 26.5-34.5q 5.5-6 5.5-14.5t-5.5-14.5l-18,0 q 8.5-15 23.25-23.75t 32.25-8.75q 5,0 11,1l 20.5-27q-16.5-6 -31.5-6zM 410.5,387l-26.5-35q-3-3 -7.5-4.5l0,0 q-6-2.5 -13.25-1.25t-11.25,5.75l-26.5,35q-5.5,6 -5.5,14.5t 5.5,14.5l 17.5,0 q-8.5,14.5 -23,23.25t-32,8.75q-5,0 -11-1l-20.5,27.5q 16,5.5 31.5,5.5q 31,0 55.5-17.75\nt 34.5-46.25l 32.5,0 q 5.5-6 5.5-14.5t-5.5-14.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"clouddownload\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 422,378.5l-124.5,129q-4,4.5 -25.5,4.5t-25.5-4.5l-119-123.5l-15.5,0 q-46.5,0 -79.25-32.75t-32.75-79.25q0-28.5 13.5-53t 36.5-40q 17,35 48.25,58.75t 69.75,31.25q-33-19.5 -52.5-52.5t-19.5-72.5q0-59.5 42.25-101.75t 101.75-42.25q 44,0 79.75,24t 52.25,63q-34,11 -59,37t-35,60.5q 17.5-26 45.5-41\nt 60.5-15q 53,0 90.5,37.5t 37.5,90.5q0,42.5 -25.25,76t-64.75,46zM 378,352.5l-58,0 l0-64.5 q0-13 -9.25-22.5t-22.75-9.5l-32,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,64.5 l-58,0 q-4,0 -5.5,7t 2.5,11.5l 99.5,104.5q 4,4.5 9.5,4.5t 9.5-4.5l 99.5-104.5q 4-4.5 2.5-11.5t-5.5-7z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cloudupload\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,416l-32,0 l0,32 q0,26.5 -18.75,45.25t-45.25,18.75l-32,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-32 l-80,0 q-46.5,0 -79.25-32.75t-32.75-79.25q0-28.5 13.5-53t 36.5-40q 17,34.5 48.25,58.25t 69.75,31.25q-33-19 -52.5-52t-19.5-72.5q0-59.5 42.25-101.75t 101.75-42.25q 44,0 79.75,24t 52.25,63\nq-34,11 -59,37t-35,60.5q 17.5-26 45.5-41.25t 60.5-15.25q 53,0 90.5,37.5t 37.5,90.5t-37.5,90.5t-90.5,37.5zM 381,365l-99.5-104.5q-4-4.5 -9.5-4.5t-9.5,4.5l-99.5,104.5q-4,4.5 -2.5,11.75t 5.5,7.25l 58,0 l0,64 q0,13.5 9.25,22.75t 22.75,9.25l 32,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-64 l 58,0 q 4,0 5.5-7.25t-2.5-11.75z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cloud\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,448l-272,0 q-46.5,0 -79.25-32.75t-32.75-79.25q0-28.5 13.5-53t 36.5-40q 17,34.5 48.25,58.25t 69.75,31.25q-33-19 -52.5-52t-19.5-72.5q0-59.5 42.25-101.75t 101.75-42.25q 44,0 79.75,24t 52.25,63q-34,11 -59,36.75t-35,60.75q 17.5-26 45.5-41.25t 60.5-15.25q 53,0 90.5,37.5t 37.5,90.5\nt-37.5,90.5t-90.5,37.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"algorhythm\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507.5,282.5l-59.5,59.5l0,122 q0,6.5 -4.75,11.25t-11.25,4.75l-191.5,0 q-15,14.5 -40.5,23.25t-56,8.75q-46.5,0 -79.25-18.75t-32.75-45.25q0-24 27.5-41.75t 68.5-21.25l0-65 l-96,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 96,0 l0-65 q-41-3.5 -68.5-21.25t-27.5-41.75q0-26.5 32.75-45.25t 79.25-18.75\nt 79.25,18.75t 32.75,45.25q0,24 -27.5,41.75t-68.5,21.25l0,65 l 96,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,32 l 73,0 l 60-60q 4.5-4.5 10.75-4.5t 10.75,4.5l 65,65q 4.5,4.5 4.5,10.75t-4.5,10.75zM 256,320l-96,0 l0,65 q 41,3.5 68.5,21.25t 27.5,41.75l 160,0 l0-105.5 l-54.5-54.5l-73.5,0 q0,13 -9.25,22.5t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"perl2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 319,143q-24-24 -27.5-29.25t-3.5-17.75q0-13.5 -9.25-22.75t-22.75-9.25l0-32 q-13,0 -22.5,9.25t-9.5,22.75q0,9.5 -0.5,16\nt-3.25,17.75t-9.75,22.75t-18,23q-24,9.5 -46,24.25t-41,33.25t-30.25,41.25t-11.25,45.75q0,59 45.75,103.5t 114.75,54q-0.5,0.5 -0.5,1.25l0,1.25 q0,13 9.5,22.5t 22.75,9.5t 22.5-9.5t 9.25-22.5l0-1.25 l0-1.25 q 68.5-9.5 114.25-54t 45.75-103.5q0-23 -11.25-45.75t-30.25-41.25t-41.25-33.25t-46.25-24.75z\nM 310.5,419.5q 19-22 30.25-56.75t 11.25-74.75q0-37.5 -13.75-71.25t-34.75-57.75q 33.5,19 57,52.75t 23.5,76.25q0,46.5 -20,81t-53.5,50.5zM 224,288q0,91.5 25.5,128.5q-5,1.5 -10,4q-21.5-15.5 -34.5-50.25t-13-82.25q0-31 8.5-56.75t 21.5-40.5t 26-22.75t 24-8q-6.5,0 -14.25,8t-15.5,22.75t-13,40.5\nt-5.25,56.75zM 201.5,419.5q-33.5-16 -53.5-50.5t-20-81q0-42.5 23.5-76.25t 57-52.75q-21,24 -34.75,57.75t-13.75,71.25q0,40 11.25,74.75t 30.25,56.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"perl\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,288q0,20 -2.5,28.25t-13.5,19.75q-6,6 -12-11.5q-4-11.5 -4-20.5l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1.5 l0-1 l0-4.5 q0-9.5 -7-1.5q-5.5,6.5 -9,17.5\nq-3,10 -7,32.75t-2,31.25q 0.5,1.5 2,8.25t 2.25,10.25t 1.5,9t 0.25,9t-2.5,5.5q-2.5,3 -2.75,4.75t 0.5,2.75t 3.25,3.5t 4,5q 1.5,1.5 2,3.5t0,4t-1,3.5t-1.75,3.75t-2,3.75t-2.75,4t-2.5,3.5q-2.5,3.5 -4.25,12.75t-3.25,20.25t-2,13.5q-1.5,6.5 2,18.25t 8,17.25q 1.5,2.5 0,5.5t-5,6.75t-7,6.75\nt-6.25,5l-2.75,2l-25.5,0 q-1-18.5 3-26q 0.5-1 14-25.5q 7.5-13 9.5-46q 1-5 0.25-10t-5.25-11q-3-6 -2.25-12t 2.75-14t 2-10.5q-1.5-14 -11.5-21q-5-4 -7.5-20t-3-17.5q-3.5-9 -4-32q-25,39 -35.5,58.5q-3.5,6.5 -3.75,20.5t 1.75,16.5q0,0.5 1,2.25t 1.25,2.5t 0.75,2.5t 0.25,2.75t-1.25,2.75t-3,3.25\nq-6,4.5 -50.5,56q 19.5,13.5 21,16.5q 3.5,5.5 3,12.75t-4.5,12.75q-4,5 -11.25,2.75t-7.25-7.75q 0.5-8.5 -13.5-22.5q-5,7 -6.75,13.5t 1.75,9q 2.5,1.5 1,4t-4.5,4l-3.5,2l-31,0 q-9,2 -12-5q-1.5-3 2.5-5.5t 12-5.25t 11-4.25q 7.5-4.5 21-20q-7.5-6.5 -32.5-27.5t-29.5-25q-6-6.5 -5.25-18.75t 6.75-18.25q 2-1.5 3.5-4\nt 2.25-4.25t 1.25-4.75t 0.5-4.5l0-4.75 l0-3.75 q 0.5-3 3-8l 4.25-8.5t 0.25-5q-3-2 -14.5,0t-17.5,5.5q-3.5,2 -3.75,7t 1.25,11.5t 1.5,8q-0.5,7.5 -13.5,21q-4.5,4 -7.25,15.5t-0.25,16q 2,3.5 3,7.75t 0.25,8t-4.25,4.75q-5,1.5 -12.75,21.75t-7.75,30.25q-1,28 -7.5,30.5q-4.5,1.5 -5.25,5t 5.25,5q 5.5,1.5 5.5,10\nl-62,0 q-0.5,0.5 -1.75,0.5t-2.75-1t-1.5-4.5q0-4.5 12-9.25t 19.5-5.75q 4.5-1 13.75-19t 12.75-32q 1.5-13.5 1-22.75t-2.75-25t-2.25-19.75q-3-55.5 2-63.5q 4-4.5 3-11.75t-8.5-9.75q-6.5-1.5 -14.75,7.25t-11.25,8.75q-3.5,0 -6.75-1.25t-4.75-2.75l-1.5-1q-3.5,1 -12.5,0q-4-0.5 -7.25-3.25t-4.25-5.25l-1-2.5q-12.5-6.5 -19-10.5\nq-3-2 -4.5-4.75t-1.5-4.25l0-2 q-11.5-5 -19-10.5q-4-3 -6.5-10.25t-6-11.25t-4.25-15t-0.25-25t0-18.5q-1-15 2.75-31.5t 13.25-16.5l0,0 l0,0 l-0.5,0 l0,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-0.5,0 l-1,0 l-0.5,0 l-0.5,0 l-0.5,0 l-1,0 l-0.5,0 l-0.5,0 l-0.5,0 l-1,0 l-0.5,0 l-1,0 l-0.5,0 l-0.5,0 l-1,0 l-0.5,0 l-1,0 l-0.5,0 l-1,0 l-0.5,0 l-1,0 l-0.5,0 l-1,0 l-0.5,0 l-1,0 l-0.5,0 l-1,0 \nl-1,0 l-0.5,0 l-1,0 l-0.5,0 l-1,0 l-1,0 l-0.5,0 l-1,0 l-1,0 l-1,0 l-0.5,0 l-1,0 l-1,0 l-1,0 l-0.5,0 l-1,0 l-4.5,0 l0-3.25 t 1-7.75t 2.5-9.75t 4.75-7.75t 7.75-3.5l 48,0 q 2.5-3.5 6-8.5t 12-14t 14-9.5q 8-1 24.5-0.25t 23.5,4.75q 4.5,2.5 6,8t 1,10l-1,4.5q 7.5,4.5 12.5,16.5q 1.5,8.5 0.75,12.5t-4,13t-4.25,13.5q-1.5,6.5 -8,25.75t-6.5,23.75q-0.5,4 4.5,6.75t 9.5,3.75l 5,0.5\nq-2-22 1-33q 1-4.5 7.25-11.5t 14.75-15.25t 11.5-11.75q 10.5-12 47-33.5q 3.5-2 6-3.75t 3.75-3.25t 3-4.25t 2.5-4t 2.75-5.75t 3-7q 9-20 80.5-39.5q 38-10.5 71,22.5q 7,7 12,28.5t 11,28q 8.5,9 18.75,27.75t 16.25,32.75q 3.5,9.5 18,24t 17.5,20q 5,8.5 5,70zM 315.5,304q-2.5,3.5 -3.75,13.75t-3.75,12.75\nq-1.5,1.5 -2.5,3.25t-1.75,4.25t-1.25,4t-1,4.75t-1,4.75q-1,6 -12.25,14.25t-20.75,12.25q-2,0.5 -3.25,1.5t-1.75,2.25t-0.75,2t 0.5,2.25t 1.25,2.25t 1.75,2.75t 1.75,2.5q 6.5,10 41.5,34q 5.5-8.5 12.75-22.25t 11.75-23.25l 4.5-9.5q-3.5-28 -4.5-36.5q0-3 -0.5-18.75t-1-24.75q-12,6.5 -16,11.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"chevrons\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 368,512l-80,0 l 144-256l-144-256l 80,0 l 144,256zM 144,512l-144-256l 144-256l 80,0 l-144,256l 144,256l-80,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braces\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 479.75,288q-13.25,0 -22.5,18.75t-9.25,45.25l0,96 q0,26.5 -18.75,45.25t-45.25,18.75l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.5-22.5t 22.5-9.25l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-112 q0-26.5 18.75-45.25t 45.25-18.75q-26.5,0 -45.25-18.75t-18.75-45.25l0-112 q0-6.5 -4.75-11.25t-11.25-4.75l-16,0 q-13.5,0 -22.75-9.5\nt-9.25-22.75t 9.5-22.5t 22.5-9.25l 32,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,96 q0,26.5 9.5,45.25t 22.5,18.75t 22.5,9.5t 9.5,22.5t-9.5,22.5t-22.75,9.5zM 128,320l0,112 q0,6.5 4.75,11.25t 11.25,4.75l 16,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-32,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-96 \nq0-26.5 -9.25-45.25t-22.5-18.75t-22.75-9.5t-9.5-22.5t 9.5-22.5t 22.75-9.5t 22.5-18.75t 9.25-45.25l0-96 q0-26.5 18.75-45.25t 45.25-18.75l 32,0 q 13.5,0 22.75,9.25t 9.25,22.75t-9.25,22.75t-22.75,9.25l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,112 q0,26.5 -18.75,45.25t-45.25,18.75q 26.5,0 45.25,18.75t 18.75,45.25z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"squarebrackets\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-64,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-352 q0-6.5 -4.75-11.25t-11.25-4.75l-48,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 80,448l 48,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75\nt-22.5,9.5l-64,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 64,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,352 q0,6.5 4.75,11.25t 11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"csharp\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,224l-16,0 l0,64 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-16,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16 l-64,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 16,0 l0-64 l-16,0 \nq-6.5,0 -11.25-4.5t-4.75-11.25t 4.75-11.5t 11.25-4.75l 16,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,16 l 64,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,16 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.5t-4.75,11.25t-11.25,4.5zM 384,224l0,64 l 64,0 l0-64 l-64,0 zM 224.25,384q 13.25,0 22.5,9.5t 9.25,22.5\nl0,1.5 l0,1.5 q-0.5,25 -10.75,43.25t-28,29t-39.75,15.75t-49.5,5q-53,0 -90.5-37.5t-37.5-90.5l0-128 l0-128 q0-53 37.5-90.5t 90.5-37.5q 57.5,0 92.75,29.25t 35.25,66.75q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75q0-9.5 -3-15.75t-7-9.5t-12.75-4.75t-14.5-1.75t-18.25-0.25l-8.5,0 q-26.5,0 -45.25,18.75\nt-18.75,45.25l0,128 l0,128 q0,26.5 18.75,45.25t 45.25,18.75l 8.5,0 l 18.25,0 t 14.5-1.75t 12.75-5t 7-9.5t 3-15.75l0,0 q0-13 9.5-22.5t 22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cplusplus\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,288l-48,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 48,0 l0-48 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,48 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 304,288l-48,0 l0,48 \nq0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 48,0 l0-48 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,48 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 224.25,128q-13.25,0 -22.75-9.25t-9.5-22.75q0-9.5 -3-15.75\nt-7-9.5t-12.75-4.75t-14.5-1.75t-18.25-0.25l-8.5,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,128 l0,128 q0,26.5 18.75,45.25t 45.25,18.75l 8.5,0 l 18.25,0 t 14.5-1.75t 12.75-5t 7-9.5t 3-15.75l0,0 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,2 l0,1 q-0.5,25 -10.75,43.25t-28,29t-39.75,15.75t-49.5,5q-53,0 -90.5-37.5\nt-37.5-90.5l0-128 l0-128 q0-53 37.5-90.5t 90.5-37.5q 27.5,0 49.5,5.25t 39.75,15.75t 28,29t 10.75,43.5l0,1 l0,1.5 q0,13.5 -9.25,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cmsmadesimple\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 320,112q 22.5,0 37.5,3t 26.5,13q-3-29.5 -25.5-46.75t-54.5-17.25q-28,0 -49.75,17.5t-27.75,44q-22.5-29.5 -55-29.5\nq-31,0 -53.25,28.25t-22.25,67.75q0,15.5 4.5,32q 7-24.5 22.5-41.25t 36-21.25q-31,28 -31,62.5l0,32 q 13-1 25.75-8.75t 21-16.75t 19.5-21.75t 18.25-19.25q 11.5,41.5 11.5,82.5l0,32 q0,13.5 9.5,22.75t 22.75,9.25t 22.5-9.25t 9.25-22.75l0,0 l0,0 l0,0 l0,0 l0,0 l0,0 l0,0 l0-0.5 l0,0 l0,0 l0,0 l0-0.5 l0,0 l0,0 l0-0.5 l0,0 l0-0.5 l0,0 l0-0.5 l0-0.5 l0,0 l0-0.5 l0,0 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 \nl0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-4.5 q0-47 -9.5-80q 56.5,7.5 69.5,52q 16.5-9 26.25-23t 9.75-30.5q0-26.5 -23.5-45.25t-56.5-18.75q-11.5,0 -24,3q 12-19 40-19zM 320,288l0,16 q0,26.5 -18.75,45.25t-45.25,18.75q-26,0 -44.75-18.5t-19.25-44.5\nq-42,12.5 -69,29.75t-27,33.25q0,26 34.75,37t 109.25,11q 48.5,0 96.5-8.5t 79.75-23.5t 31.75-32q0-11.5 -2.25-19.5t-10-16.75t-21.25-14t-37.25-9t-57.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"concrete5\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 242.5,512q-47.5,0 -88-17t-64.25-46.5t-23.75-64.5t 23.75-64.25t 64.25-46.5t 88-17.25q 16.5,0 36.5,2.5t 41.5,7.5t 35.75,15t 14.25,23q0,20 -12.25,34t-35.75,14q-9.5,0 -22-8t-27.5-16t-30.5-8q-35.5,0 -57.75,15t-22.25,49q0,8.5 4.75,18.75t 13.5,20.75t 25,17.5t 36.75,7q 29.5,0 79.5-27t 80.5-69\nq 1.5-2 6.25-8.5t 6-8.25t 5.75-6t 8-5.5t 9.25-2.5t 12.75-1.25q 32,0 32,48q0,11 -11.5,28.75t-33.75,37.5t-50.5,37.25t-66.75,29t-77.5,11.5zM 386.5,224q-3.5,10 -11.25,12t-14.25-2.25t-6.5-9.75l0-160 q0-13 13.75-23.75t 26.5-7.25t 19.5,14.5t 3.25,23q-1,3 -5.25,32t-11,64.5t-14.75,57zM 274.5,224\nq-10.5,0 -18-25.75t-10-65.5t-3.25-61.25t-0.75-39.5q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5q0,0.5 0.25,11t 0.25,20.5t-0.25,26t-1,30t-2.25,30t-4,28.75t-5.75,23.5t-8,16.5t-11.25,5.75zM 162.5,224q-7.5-20.5 -14.5-56t-11.25-65t-4.75-32.5q-3.5-12 3.25-23t 19.5-14.5t 26.25,7.25t 13.5,23.75l0,160 \nq0,6.5 -6,11t-13.75,2.25t-12.25-13.25zM 114.5,256q-8.5,0 -18.5-9.5t-19-25t-16.25-29.25t-13.75-28.75t-8-17q-6-12 -2.75-25.5t 14-20.25t 22.75-3.25t 18.5,15.5q 8.5,16 21.25,79.5t 1.75,63.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fantastico\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 188,201.75q-6-19.75 -18.75-31.75t-24.25-9.5t-15.5,18.5t 2.25,35.5t 19,31.5t 24.25,9.5t 15.25-18.25t-2.25-35.5zM 348,169.75\nq-6-19.75 -18.75-31.75t-24.25-9.5t-15.5,18.25t 2.25,35.5t 19,31.75t 24.25,9.5t 15.25-18.25t-2.25-35.5zM 283,374q-21.5,3.5 -44,6t-45.25,3.25t-36.75,1t-35.75,0t-25.25-0.25q 9,15 41.5,24.25t 79.25,9t 90.75-11.75q 33-8.5 60.5-23.5t 44.5-31.5t 26.25-32.75t 9.25-29.75q-17,14 -28.5,22.5t-34.5,23.25\nt-48.75,25t-53.25,15.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"piwigo\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,432l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-256 q0-13.5 9.5-22.75t 22.5-9.25l 192,0 q0-13.5 9.25-22.75t 22.75-9.25l 160,0 q 13,0 22.5,9.25t 9.5,22.75l 32,0 q 13,0 22.5,9.25t 9.5,22.75l0,256 q0,13.5 -9.25,22.75t-22.75,9.25zM 160,176q-40,0 -68,28t-28,67.75t 28,68t 68,28.25t 68-28.25t 28-68\nt-28-67.75t-68-28zM 384,112l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 160,336q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"zikula\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 503,309.5l-83.5,58.5q-11,8 -40,15.5l-127.5,34l 59,41q 10,7.5 12,19.5t-5.5,21.75t-20,11.75t-22.5-5l-99-69.5q-5.5-4 -18-16.25t-16-16.75l-64-92.5l-16.5,52q-4,12 -15,17.75t-22.5,1.75t-17.25-15.25t-1.75-23.25l 36.5-115q 4-12 10-21l 81-112l-33,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5\nt 22.5-9.25l 128,0 q 11,0 48,16l 93,32.5l-11.5-41q-4-11.5 1.75-22.75t 17.25-15.25t 22.5,1.75t 15,17.75l 36.5,131.5q 1.5,4.5 1.5,23.5l0,96 l 15.5-11q 10-7 22.5-5t 20,11.75t 5.5,22t-12,19.25zM 387.5,179l-54,42q-5.5,4 -12.25,3t-10.75-6.75t-2.75-13t 6.75-11.25l 58-45l-129-51.5q-2.5-1 -5.5-2q-0.5,0.5 -2,0.5\nt-2,0.5l 24.5,75q 2.5,6.5 -0.75,12.75t-9.75,8.25t-12.75-1t-8.25-9.5l-25.5-77.5l-80.5,121l 58.5,0 q 6.5,0 11.25,4.5t 4.75,11.25t-4.75,11.5t-11.25,4.75l-68.5,0 l 78,110.5l 22-67q 2-6.5 8.25-9.75t 12.75-1t 9.75,8.25t 0.75,12.5l-17,53.5l 123-33.5l-34.5-26.5q-5.5-4 -6.5-11t 3-13t 10.5-7t 12,3l 54.5,42l0-138 l0-0.5 \nz\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"restricted\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 362,512l-212,0 l-150-150l0-212 l 150-150l 212,0 l 150,150l0,212 zM 448,176.5l-112.5-112.5l-159,0 l-112.5,112.5l0,159 l 112.5,112.5l 159,0 l 112.5-112.5l0-159 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pill\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 467,467q-45,45 -108.5,45t-108-45l-205.5-205.5q-45-44.5 -45-108t 45-108.5t 108.5-45t 108,45l 205.5,205.5q 45,44.5 45,108t-45,108.5zM 420,284.5l-108-108l-135.5,135.5l 108,108q 28,28 67.75,28t 67.75-28t 28-67.75t-28-67.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"syringe\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,512l-21.5,0 l-94-94l-23,23q-7,7 -16.75,7t-16.75-7l-205-205q-7-7 -7-17t 7-17l 23-22.5l-81.5-81.5l-23,23q-7,7 -16.75,7t-16.75-7l-13-13q-7-7 -7-17t 7-17l 67-67q 7-7 17-7t 17,7l 13,13q 7,7 7,16.75t-7,16.75l-23,23l 81.5,81l 22.5-22.5\nq 7-7 17-7t 17,7l 205,205q 7,7 7,16.75t-7,16.75l-23,23l 94,94l0,21.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"virus\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l-35,0 q-7,43.5 -32.5,79l 26,26q 9.5,9 9.5,22.5t-9.5,23t-23,9.5t-23-9.5l-25.5-26q-36,25.5 -79,32.5l0,35 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-35 q-43.5-7 -79-32.5l-26.5,26q-9,9.5 -22.5,9.5t-23-9.5t-9.5-23t 9.5-22.5l 26-26.5q-25-35.5 -32-78.5l-35,0 \nq-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 35,0 q 7-43 32.5-79l-26.5-26q-9.5-9.5 -9.5-23t 9.5-23t 23-9.5t 22.5,9.5l 26.5,26.5q 36-25.5 79-32.5l0-35 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,35 q 43,7 78.5,32l 26-26q 9.5-9.5 23-9.5t 23,9.5t 9.5,23t-9.5,22.5l-26,26.5q 25.5,35.5 32.5,79l 35,0 \nq 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 128,192q0,12 1.5,26.5t 4.5,31t 9.75,27.5t 16.25,11q 11.5,0 21.5-1.25t 20.25-4.5t 16.25-10t 6-16.25zM 208,352q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-96,0 zM 288,256q0,9.5 6,16.25\nt 16.25,10t 20.25,4.5t 21.5,1.25q 9.5,0 16.25-11t 9.75-27.5t 4.5-31t 1.5-26.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bug\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 481.5,224q 13,0 22.5,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25l-33.5,0 q-2.5,26.5 -9.5,53l 50.5,13q 18.5,5 23,22.5q 3,7 0,16q-1,5 -4.5,9.5q-25,78 -26,78q-12,0 -22-9.5t-10-22.5l0-38.5 l-34-9q-26.5,51.5 -68,81.5t-90,30t-90-30t-68-81.5l-34,9l0,38.5 q0,13 -10,22.5t-22,9.5\nq-1,0 -26-78q-3.5-4.5 -4.5-9.5q-3-9 0-16q 5-17.5 23-22.5l 50.5-13q-7-26.5 -9.5-53l-33.5,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 33.5,0 q 2.5-26.5 9.5-53l-50.5-13q-18.5-4.5 -23-22.5q-3-7 0-16q 1-5 4.5-9.5q 25-78 26-78q 12,0 22,9.5t 10,22.5l0,39 l 34,8.5q 26.5-51.5 68-81.5t 90-30t 90,30t 68,81.5\nl 34-8.5l0-39 q0-13 10-22.5t 22-9.5q 0.5,0 26,78q 3.5,4.5 4.5,9.5q 3,9 0,16q-5,18 -23,22.5l-50.5,13q 7,27 9.5,53l 33.5,0 zM 321.75,448q 13.25,0 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5t-22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25zM 193.75,448q 13.25,0 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5\nt-22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25zM 161.75,320q 13.25,0 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5t-22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25zM 257.5,64q-31,0 -61,22.5t-48.5,56.25t-18.5,65.25q 5,2.5 10.5,4.75t 10.25,3.75t 12.25,2.75t 11.75,2t 13.5,1.25t 13,1t 14.25,0.5l 13.5,0 l 15,0 l 14,0 \nq 32.5,0 48.75-0.5t 39.5-4.25t 39.75-11.25q0-31.5 -18.25-65.25t-48.5-56.25t-61.25-22.5zM 353.75,256q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"network\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,256l-80,0 l0,128 l 32,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.5,22.75t-22.5,9.25l-96,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-64 q0-13 9.25-22.5t 22.75-9.5l 32,0 l0-128 l-224,0 l0,128 l 32,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.5,22.75t-22.5,9.25l-96,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-64 q0-13 9.25-22.5\nt 22.75-9.5l 32,0 l0-128 l-112,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 240,0 l0-96 l-32,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-64 q0-13 9.25-22.5t 22.75-9.5l 96,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.5,22.75t-22.5,9.25l-32,0 l0,96 l 208,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"dropmenu\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q-26.5,0 -45.25-18.75t-18.75-45.25l0-64 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 l0,320 q0,26.5 -18.75,45.25t-45.25,18.75zM 442,48l-148,0 q-4,0 -5.5,7.25t 2.5,11.75l 67.5,88.5q 4,4.5 9.5,4.5t 9.5-4.5l 67.5-88.5\nq 4-4.5 2.5-11.75t-5.5-7.25zM 448,192l-320,0 l0,64 l 320,0 l0-64 zM 448,288l-320,0 l0,64 l 320,0 l0-64 zM 448,384l-320,0 l0,48 q0,6.5 4.75,11.25t 11.25,4.75l 288,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-48 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"coppermine\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,448l-256,0 q-53,0 -90.5-37.5t-37.5-90.5l0-128 q0-53 37.5-90.5t 90.5-37.5l 256,0 q 53,0 90.5,37.5t 37.5,90.5l0,128 q0,53 -37.5,90.5t-90.5,37.5zM 448,272q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 48,0 l0,32 l-32,0 q-26.5,0 -45.25-18.75t-18.75-45.25\nt 18.75-45.25t 45.25-18.75l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-48,0 q-43,0 -72,33.5q-8.5-15.5 -23.25-24.5t-32.75-9l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,144 l-32,0 q-26.5,0 -45.25-18.75t-18.75-45.25q0-29 11.5-46.5t 36.5-17.5q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75\nq-38,0 -59,27.25t-21,68.75q0,40 28,68t 68,28l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-48 l 32,0 q 19,0 34.5-10.5q 7.5,32.5 33.5,53.5t 60,21l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 zM 256,256l-32,0 l0-64 l 32,0 q 13,0 22.5,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"supportrequest\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256.25,448q 13.25,0 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5t-22.75,9.5\nt-9.5,22.75t 9.5,22.5t 22.75,9.25zM 256,64q-53,0 -90.5,37.5t-37.5,90.5q0,13.5 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75q-13,0 -22.5,19.75t-9.5,44.25q0,13.5 9.25,22.75t 22.75,9.25t 22.75-9.25t 9.25-22.75l0-4 \nq 42-11 69-45.5t 27-78.5q0-53 -37.5-90.5t-90.5-37.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"briefcase\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.25t-9.5-22.75l0-256 l 64,0 l 32,0 l0,32 l-32,0 q0,13.5 9.25,22.75t 22.75,9.25l 64,0 q 13.5,0 22.75-9.25t 9.25-22.75l-32,0 l0-32 l 32,0 l 128,0 l 32,0 l0,32 l-32,0 q0,13.5 9.5,22.75t 22.5,9.25l 64,0 q 13.5,0 22.75-9.25t 9.25-22.75l-32,0 l0-32 l 32,0 l 64,0 l0,256 q0,13.5 -9.25,22.75t-22.75,9.25zM 416,160\nl-64,0 q-13,0 -22.5,9.5t-9.5,22.5l-128,0 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13.5,0 -22.75,9.5t-9.25,22.5l-64,0 l0-64 q0-13 9.5-22.5t 22.5-9.5l 96,0 l0-32 q0-26.5 18.75-45.25t 45.25-18.75l 128,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,32 l 96,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 l-64,0 q0-13 -9.25-22.5t-22.75-9.5zM 288,64l-64,0 \nq-13,0 -22.5,9.25t-9.5,22.75l 128,0 q0-13 -9.25-22.5t-22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"calendar2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-320 q0-13.5 9.5-22.75t 22.5-9.25l 448,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,320 q0,13.5 -9.25,22.75t-22.75,9.25zM 96,208q0-7 -4.75-11.5t-11.25-4.5l-32,0 q-6.5,0 -11.25,4.5t-4.75,11.5l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 z\nM 96,304q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 192,304q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 z\nM 192,400q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 288,208q0-7 -4.75-11.5t-11.25-4.5l-32,0 q-6.5,0 -11.25,4.5t-4.75,11.5l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 288,304\nq0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 384,208q0-7 -4.75-11.5t-11.25-4.5l-32,0 q-6.5,0 -11.25,4.5t-4.75,11.5l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 384,304\nq0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 384,400q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 480,208\nq0-7 -4.75-11.5t-11.25-4.5l-32,0 q-6.5,0 -11.25,4.5t-4.75,11.5l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 480,400q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 448.25,96\nq-13.25,0 -22.75-9.5t-9.5-22.5l0-32 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,32 q0,13 -9.25,22.5t-22.5,9.5zM 352.25,96q-13.25,0 -22.75-9.5t-9.5-22.5l0-32 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,32 q0,13 -9.25,22.5t-22.5,9.5zM 255.75,96q-13.25,0 -22.5-9.5t-9.25-22.5l0-32 \nq0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,32 q0,13 -9.5,22.5t-22.75,9.5zM 159.75,96q-13.25,0 -22.5-9.5t-9.25-22.5l0-32 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,32 q0,13 -9.5,22.5t-22.75,9.5zM 63.75,96q-13.25,0 -22.5-9.5t-9.25-22.5l0-32 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25\nt 9.5,22.75l0,32 q0,13 -9.5,22.5t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"plugin\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,384q-17.5,0 -32-8.75t-23-23.25l-9,0 l0,128 q0,13.5 -9.5,22.75t-22.5,9.25l-128,0 l0-9 q 14.5-8.5 23.25-23t 8.75-32q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25q0,17.5 8.75,32t 23.25,23l0,9 l-128,0 q-13,0 -22.5-9.25t-9.5-22.75l0-128 l 9,0 q 8.5,14.5 23,23.25t 32,8.75\nq 26.5,0 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75q-17.5,0 -32,8.75t-23,23.25l-9,0 l0-128 q0-13 9.5-22.5t 22.5-9.5l 128,0 l0-9 q-14.5-8.5 -23.25-23t-8.75-32q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25q0,17.5 -8.75,32t-23.25,23l0,9 l 128,0 q 13,0 22.5,9.5t 9.5,22.5l0,128 l 9,0 q 8.5-14.5 23-23.25\nt 32-8.75q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"images\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 64,512l0-448 l 448,0 l0,448 l-448,0 zM 480,96l-384,0 l0,320 l 384,0 l0-320 zM 192,128q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45-18.75t-19-45.25l0-0.5 q 0.5-26.5 19-45t 45-18.5zM 215.5,296.5l 87,87.5l-174.5,0 l0-46.5 l 41-41q 9-9 23.25-9t 23.25,9zM 345,232.5q 9-9 23.25-9t 23.25,9l 56.5,56.5l0,95 \nl-100.5,0 l-76.5-76.5zM 32,448l-32,0 l0-448 l 448,0 l0,32 l-416,0 l0,416 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"indexmanager\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-448 q0-13.5 9.25-22.75t 22.75-9.25l 448,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,448 q0,13.5 -9.25,22.75t-22.75,9.25zM 32,416zM 480,64q0-13.5 -9.25-22.75t-22.75-9.25l-384,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,128 l 18.5-42.5q 2.5-9 11-15.25t 18-6.25l 64,0 \nq 9,0 17.5,6.25t 11.5,15.25l 5,10.5l 254.5,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-336,0 l-64,0 l0,224 l 18.5-42.5q 2.5-9 11-15.25t 18-6.25l 64,0 q 9,0 17.5,6.25t 11.5,15.25l 5,10.5l 302.5,0 l0-320 l0,0 zM 194.5,309.5q 2.5-9 11-15.25t 18-6.25l 64,0 q 9,0 17.5,6.25t 11.5,15.25l 5,10.5l 110.5,0 q 6.5,0 11.25,4.75\nt 4.75,11.25t-4.75,11.25t-11.25,4.75l-192,0 l-64,0 zM 338.5,245.5q 2.5-9 11-15.25t 18-6.25l 64,0 q 9,0 17.5,6.25t 11.5,15.25l 19.5,42.5l-160,0 zM 288,256l-208,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 208,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 80,288l 64,0 q 6.5,0 11.25,4.75\nt 4.75,11.25t-4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75zM 432,128l-192,0 l-64,0 l 18.5-42.5q 2.5-9 11-15.25t 18-6.25l 64,0 q 9,0 17.5,6.25t 11.5,15.25l 5,10.5l 110.5,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 144,96l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25\nt 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fourohfour\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 160,208q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,48 l-32,0 l0-48 \nq0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,64 q0,6 3.75,10.25t 9.25,5.25q 1,0.5 3,0.5l 48,0 l0,48 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-128 zM 320,224q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13,0 -22.5,9.5t-9.5,22.5l0,96 q0,13.5 9.5,22.75t 22.5,9.25l 64,0 q 13,0 22.5-9.25t 9.5-22.75\nl0-96 zM 432,192q-6.5,0 -11.25,4.75t-4.75,11.25l0,48 l-32,0 l0-48 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,64 q0,6 3.75,10.25t 9.25,5.25q 1,0.5 3,0.5l 48,0 l0,48 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-128 q0-6.5 -4.75-11.25t-11.25-4.75zM 224,224l 64,0 l0,96 l-64,0 l0-96 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"php\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,448q-69.5,0 -128.5-25.75t-93.25-70t-34.25-96.25t 34.25-96.25t 93.25-70t 128.5-25.75t 128.5,25.75t 93.25,70t 34.25,96.25t-34.25,96.25t-93.25,70t-128.5,25.75zM 144,192l-40,0 q-3.5,0 -5.75,2.25t-2.25,5.75l-32,112q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75\nl 7-24l 25,0 q 12,0 21.5-1.5t 20-6t 16.5-14.75t 6-25.75q0-20 -14-34t-34-14zM 272,192l-7,0 l 7-24q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l-32,112q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l 16-56q 23,1 29,16.5l-13,39.5q0,3.5 2.25,5.75t 5.75,2.25l 16,0 \nq 3.5,0 5.75-2.25t 2.25-5.75l 16-48q0-3 -2.5-5.5q-4-15 -16.75-24.75t-28.75-9.75zM 400,192l-40,0 q-3.5,0 -5.75,2.25t-2.25,5.75l-32,112q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l 7-24l 25,0 q 12,0 21.5-1.5t 20-6t 16.5-14.75t 6-25.75q0-20 -14-34t-34-14zM 400,256l-32,0 l 9-32l 23,0 \nq 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 144,256l-32,0 l 9-32l 23,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"phppear\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 511,78.5l-59.5,100l0,301.5 q0,13.5 -9.25,22.75t-22.75,9.25l-320,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-301.5 l-59.5-100q-7-11 -3.5-23.5t 15-19t 24.25-3t 19.25,14.5l 47.5,80l 298,0 l 47.5-80q 6.5-11 19.25-14.5t 24.25,3t 15,19t-3.5,23.5zM 370.5,191.5q-34,8.5 -51,39q-13.5-7 -28-7q-17.5,0 -32.25,9\nt-23.25,24l-3.25-0.5t-5.25-0.5q-40,0 -68,28.25t-28,68t 28,68t 68,28.25t 68-28.25t 28-67.75q0-2 -0.25-5t-0.25-3.5q 14.5-8.5 23.5-23.25t 9-32.25q0-19.5 -11-36q 5.5-13 17-21.5t 26-9q-4.5-17.5 -17-30zM 99.5,31.5q0-13 9.25-22.5t 22.75-9.5l 256,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,64 l-320,0 l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"software\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 511,78.5l-59.5,100l0,301.5 q0,13.5 -9.25,22.75t-22.75,9.25l-320,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-301.5 l-59.5-100q-7-11 -3.5-23.5t 15-19t 24.25-3t 19.25,14.5l 47.5,80l 298,0 l 47.5-80q 6.5-11 19.25-14.5t 24.25,3t 15,19t-3.5,23.5zM 355.5,288.5l-6,0 q-5.5-15 -17-29l 3-5q 6.5-11 3-23.5t-15-18.75t-24.25-3\nt-19.25,14.25l-3,5q-9.5-2 -17.5-2t-17.5,2l-3-5q-6.5-11 -19.25-14.25t-24.25,3t-15,18.75t 3,23.5l 3.5,5q-12,14 -17.5,29l-6,0 q-13.5,0 -22.75,9.25t-9.25,22t 9.25,22t 22.75,9.25l 6,0 q 5.5,15.5 17.5,29l-3.5,5q-6.5,11 -3,23.5t 15,19t 24.25,3t 19.25-14.5l 3-4.5q 9.5,1.5 17.5,1.5t 17.5-1.5l 3,4.5\nq 6.5,11 19.25,14.5t 24.25-3t 15-19t-3-23.5l-3-5q 11.5-13.5 17-29l 6,0 q 13.5,0 22.75-9.25t 9.25-22t-9.25-22t-22.75-9.25zM 259.5,352q-13,0 -22.5-9.5t-9.5-22.5t 9.5-22.5t 22.5-9.5t 22.5,9.5t 9.5,22.5t-9.5,22.5t-22.5,9.5zM 99.5,31.5q0-13.5 9.25-22.75t 22.75-9.25l 256,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,64 l-320,0 l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"faq\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 112,96l 48,0 l 256,0 l 32,0 q 13,0 22.5,9.25t 9.5,22.75l0,320 q0,24.5 -33.25,44.25t-62.75,19.75l-288,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-64 l0-224 l0-96 q0-26.5 18.75-45.25t 45.25-18.75l 256,0 l 0.5,0 l 95.5,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-96,0 l-195.5,0 l-0.5,0 l-44,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25\nt 11.25,4.75zM 224,464q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 128,256q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25q0-13.5 18.75-22.75t 45.25-9.25t 45.25,9.5t 18.75,22.5\nq0,13.5 -18.75,22.75t-45.25,9.25q-13,0 -22.5,9.5t-9.5,22.5l0,48 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-19 q 42-8 69-34t 27-59q0-40 -37.5-68t-90.5-28q-25.5,0 -49.75,6.75t-41,16.75t-27,21t-10.25,19.5l0,32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"plugin2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-352,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-0.5 l 176,0 q 20,0 34-14t 14-34l0-160 q0-19.5 -14-33.75t-34-14.25l-176,0 l0-191.5 q0-13 9.25-22.5t 22.75-9.5l 192,0 l0,176 q0,6.5 4.75,11.25t 11.25,4.75l 175.5,0 l 0.5,0.5l0,287.5 q0,13.5 -9.25,22.75t-22.75,9.25zM 352-0.5q 13,0 22,9.5l 128.5,128.5q 9.5,9 9,22.5l-159.5,0 \nl0-160.5 zM 224,287.5l0,128 q0,13.5 -9.5,22.75t-22.5,9.25l-160,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-128 q0-13 9.25-22.5t 22.75-9.5l 160,0 q 13.5,0 22.75,9.5t 9.25,22.5zM 189.5,346l-82.5-56.5q-3-2.5 -7-1.5t-4,3.5l0,28 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,7 4.75,11.5t 11.25,4.5l 48,0 l0,28.5 q0,2.5 4,3.25t 7-1.25\nl 82.5-56.5q 2.5-2.5 2.5-5.75t-2.5-5.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"visitor\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-320 q0-13 9.25-22.5t 22.75-9.5l 160,0 l0,32 q0,32.5 17.75,48.25t 46.25,15.75q 28,0 46-16.5t 18-47.5l0-32 l 160,0 q 13,0 22.5,9.5t 9.5,22.5l0,320 q0,13.5 -9.25,22.75t-22.75,9.25zM 176,403l0-9 q 48-19.5 48-106q0-31.5 -22.25-47.75t-57.5-16.25t-57.75,16.25\nt-22.5,47.75q0,84 48,105l0,10 q-34.5,6 -57,22.5t-23,37.5q0,6 10.75,9.75t 31.5,5.25t 34.25,1.75t 35.5,0.25t 35.5-0.25t 34.25-1.75t 31.5-5.25t 10.75-9.75q-0.5-21 -22.75-37.5t-57.25-22.5zM 432,288l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25\nt-4.75-11.25t-11.25-4.75zM 288,368q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25zM 432,416l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 288,64\nl0,96 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-96 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 64,0 q 13,0 22.5,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"diskspace\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 320,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 416,368q0-16 -9.5-28.5t-24.5-17q 34-43.5 34-98.5q0-43.5 -21.5-80.25t-58.25-58.25t-80.25-21.5t-80.25,21.5t-58.25,58.25t-21.5,80.25\nq0,55 34,98.5q-15,4.5 -24.5,17t-9.5,28.5l0,32 q0,20 14,34t 34,14l 224,0 q 20,0 34-14t 14-34l0-32 zM 346.5,314.5l-68-68q-9.5,9.5 -22.75,9.5t-22.5-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l0-96 q 53,0 90.5,37.5t 37.5,90.5t-37.5,90.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"legacyfilemanager\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,480l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-13 9.25-22.5t 22.75-9.5l 240,0 l 23-42.5q 3.5-9 14-15.25t 22-6.25l 120,0 q 12,0 22.5,6.25t 14,15.25l 24.5,42.5l0,288 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,160q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13.5,0 -22.75,9.5t-9.25,22.75t-14,22.5t-34,9.25l-192,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,192 q0,6.5 4.75,11.25t 11.25,4.75l 352,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-240 zM 23,54q 3.5-9.5 14-15.75t 22-6.25l 120,0 q 12,0 22.5,6.25t 14.5,15.75l 24,42l-240,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"filemanager\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,416q0,26.5 -18.75,45.25t-45.25,18.75l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-13 9.25-22.5t 22.75-9.5l 240,0 q0-6 5.75-16.5t 11.25-18l 6-8q 3.5-9 14-15.25t 22-6.25l 120,0 q 12,0 22.5,6.25t 14,15.25q 24.5,29 24.5,42.5l0,288 zM 23,53.5q 3.5-9 14-15.25t 22-6.25l 120,0 q 12,0 22.5,6.25t 14.5,15.25\nl 24,42.5l-240,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"key\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 478,426l-51.5,51.5q-34.5,34.5 -83.5,34.5t-83.75-34.5t-34.75-83.5t 34.5-83.5l 19-19l-85.5-86l-41.5,41.5q-9,9 -22,8.5t-22.5-10t-10-22.5t 8.5-22l 41.5-41l-50.5-50.5l-41,41.5q-9,9 -22,8.5t-22.5-10t-10-22.5t 8.5-22l 41-41l-9.5-9.5q-8.5-9 -8.25-22t 9.75-22.5t 22.75-10t 21.75,8.5l 239,238.5\nq 34.5-25.5 78-22.25t 74.5,34.25q 34.5,34.5 34.5,83.5t-34.5,83.5zM 432.5,304.5q-16.5-16.5 -39.75-16.5t-39.75,16.5l-48,48q-16.5,16.5 -16.5,39.75t 16.5,39.75t 40,16.5t 40-16.5l 47.5-47.5q 16.5-16.5 16.5-40t-16.5-40z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"importcontacts\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.25t-9.5-22.75l0-320 q0-13 9.5-22.5t 22.5-9.5l 96,0 q0-13 9.5-22.5t 22.5-9.5l 32,0 l0-64 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,64 l 32,0 q 13.5,0 22.75,9.5t 9.25,22.5l 96,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,320 q0,13.5 -9.25,22.75t-22.75,9.25zM 144,192q-35.5,0 -57.75,16.25\nt-22.25,47.75q0,84 48,105.5l0,9.5 q-34.5,6 -57,22.5t-23,37.5q0,6 10.75,9.75t 31.5,5.25t 34.25,1.75t 35.5,0.25t 35.5-0.25t 34.25-1.75t 31.5-5.25t 10.75-9.75q-0.5-21 -22.75-37.5t-57.25-22.5l0-9 q 48-19.5 48-106l0-1 l0-0.5 l-77.5-62.5l-1.25,0 l-1.25,0 zM 348,128l-60,0 l0-80 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,80 l-60.5,0 q-4,5 -4,11.5t 4,11.5l 92.5,73l 92-73q 4-5 4-11.5t-4-11.5zM 464,224l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 320,336q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75\nt 4.75-11.25t-4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25zM 464,416l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"emailtrace\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 508.5,367l-29.5-29.5q 1-9.5 1-17.5q0-55 -33.75-98t-85.75-56.5l 148-148q 3.5,7 3.5,14.5l0,320 q0,7.5 -3.5,15zM 320,160q-53,0 -96,32.5l-192.5-192.5l 0.5,0 l 448,0 l 0.5,0 l-160,160l-0.5,0 zM 3.5,367q-3.5-7.5 -3.5-15l0-320 q0-7.5 3.5-14.5l 175,174.5zM 160,320q0,33.5 13.5,64l-141.5,0 l-0.5,0 l 162.5-162q-34,43.5 -34,98z\nM 320,192q 53,0 90.5,37.5t 37.5,90.5q0,37.5 -20.5,69l 80.5,80q 4,4 4,9.75t-4,9.75l-19.5,19.5q-4,4 -9.75,4t-9.75-4l-80-80q-32,20 -69,20q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5zM 320,384q 26.5,0 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25\nt 18.75,45.25t 45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"mailinglists\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 447.5,512l-383.5,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-447.5 q0-13.5 9.25-22.75t 22.75-9.25l 224,0 l0,127.5 l-176,0 q-6.5,0 -11.25,4.5t-4.75,11.5l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 367.5,0.5l0,0.5 l0,287 q0,13.5 -9.25,22.75t-22.75,9.25zM 431.5,272q0-7 -4.5-11.5t-11-4.5l-304,0 q-6.5,0 -11.25,4.5t-4.75,11.5l0,32 \nq0,6.5 4.75,11.25t 11.25,4.75l 304,0 q 6.5,0 11-4.75t 4.5-11.25l0-32 zM 431.5,399.5q0-6.5 -4.5-11.25t-11-4.75l-304,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,7 4.75,11.5t 11.25,4.5l 304,0 q 6.5,0 11-4.5t 4.5-11.5l0-32 zM 320,0q 13,0 22,9l 128,128.5q 9.5,9.5 9.5,23l-159.5,0 l0-160.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"address\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-320 q0-13.5 9.5-22.75t 22.5-9.25l 448,0 q 13,0 22.5,9.25t 9.5,22.75l0,320 q0,13 -9.5,22.5t-22.5,9.5zM 80,384l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 240,224l-160,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 240,288l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 448,144q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"autorespond\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 427.5,384l-43.5,0 l-128,128l0-128 l-171.5,0 q-28.5,0 -56.5-28.5t-28-57.5l0-212 q0-29 28-57.5t 56.5-28.5l 343,0 q 28.5,0 56.5,28.5t 28,57.5l0,212 q0,29 -28,57.5t-56.5,28.5zM 256,64q-46,0 -82,30l-30-30q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25\nl-27-27q 26-21 59-21q 40,0 68,28.25t 28,68t-28.25,67.75t-67.75,28q-27.5,0 -50.5-14.5t-35-38.5l-29,14q 16,32 46.75,51.5t 67.75,19.5q 53,0 90.5-37.5t 37.5-90.5t-37.5-90.5t-90.5-37.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sc\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512q-19.5-12.5 -25.75-34.25t-6.25-56.25l0-34.5 q0-14.5 9.5-24.75t 22.5-10.25l 32,0 q 13.5,0 22.75,10.25t 9.25,24.75l0,34.5 q0,26.5 -19,50.25t-45,40.25zM 400,512l-304,0 q-33.5,0 -63.75-28.75t-31.75-67.25q0-24.5 11.25-55.5t 25-55t 34.75-59.25t 31-54.25l 185.5,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-32 q0-19.5 17.25-42.75\nt 40-38.25t 38.75-15q 23,0 42.75,31.5t 21.25,64.5q0,27 -13.25,60.5t-32,65.25t-37.5,62.75t-32,61.75t-13.25,53.75q 2.5,53 16,112zM 320,96l0,32 q0,13 -9.25,22.5t-22.75,9.5l-256,0 q-13,0 -22.5-9.5t-9.5-22.5l0-32 q0-25.5 17-48t 42.75-35.25t 52.25-12.75l 272,0 q-6.5,0 -17.25,7.75t-21.25,20.25\nt-18,31t-7.5,37z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"form\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,384l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,256 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,96q0-13 -9.5-22.5t-22.5-9.5l-320,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,64 q0,13 9.25,22.5t 22.75,9.5l 320,0 q 13.5,0 22.75-9.5t 9.25-22.5\nl0-64 zM 416,256l-320,0 q-13.5,0 -22.75,9.25t-9.25,22.75t 9.25,22.75t 22.75,9.25l 320,0 q 13.5,0 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25zM 128,448l 96,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-96,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25zM 320,448l 128,0 q 13,0 22.5,9.25t 9.5,22.5\nt-9.5,22.75t-22.5,9.5l-128,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ipcontrol\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-32,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-16 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,32 q0,26.5 -18.75,45.25t-45.25,18.75zM 480,128q-13.5,0 -22.75-9.5t-9.25-22.5l0-16 q0-6.5 -4.75-11.25t-11.25-4.75l-16,0 q-13,0 -22.5-9.25t-9.5-22.75t 9.5-22.75\nt 22.5-9.25l 32,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,32 q0,13.5 -9.25,22.75t-22.75,9.25zM 416,224q0,40 -28,68t-68,28l-32,0 l0,32 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.5t-9.5-22.5l0-192 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 40,0 68,28t 28,68zM 320,192l-32,0 l0,64 l 32,0 q 13,0 22.5-9.5t 9.5-22.75\nt-9.25-22.5t-22.75-9.25zM 128.25,384q-13.25,0 -22.75-9.5t-9.5-22.5l0-192 q0-13.5 9.5-22.75t 22.5-9.25t 22.5,9.25t 9.5,22.75l0,192 q0,13.5 -9.25,22.75t-22.5,9.25zM 96,64l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,16 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.5t-9.5-22.5l0-32 q0-26.5 18.75-45.25t 45.25-18.75l 32,0 \nq 13,0 22.5,9.25t 9.5,22.5t-9.25,22.75t-22.75,9.5zM 32.25,384q 13.25,0 22.5,9.25t 9.25,22.75l0,16 q0,6.5 4.75,11.25t 11.25,4.75l 16,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-32,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-32 q0-13.5 9.5-22.75t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"query\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-256,0 l0-0.5 q-13,0 -22.5-9.25t-9.5-22.75l0-61 q 42.5-18.5 69.25-55t 26.75-76q0-34.5 -21.5-64t-58.25-46.75t-80.25-17.25q-13,0 -22.5-9.25t-9.5-22.75l0-95.5 q0-13 9.5-22.5t 22.5-9.5l 192,0 l0,176 q0,6.5 4.75,11.25t 11.25,4.75l 175.5,0 q 0.5,0.5 0.5,1l0,287 q0,13.5 -9.25,22.75t-22.75,9.25zM 352-0.5\nq 13,0.5 22,9.5l 128.5,128.5q 9.5,9.5 9,22.5l-159.5,0 l0-160.5 zM 256,287.5q0,33.5 -27,59.25t-69,33.75l0,19 q0,7 -4.75,11.5t-11.25,4.5l-32,0 q-6.5,0 -11.25-4.5t-4.75-11.5l0-48 q0-13 9.5-22.5t 22.5-9.5q 26.5,0 45.25-9.25t 18.75-22.5t-18.75-22.75t-45.25-9.5t-45.25,9.5t-18.75,22.5q0,7 -4.75,11.5t-11.25,4.5l-32,0 \nq-6.5,0 -11.25-4.5t-4.75-11.5l0-32 q0-7.5 8.75-18t 24.25-21t 40.75-17.75t 54.25-7.25q 53,0 90.5,28.25t 37.5,67.75zM 112,447.5l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,7 -4.75,11.5t-11.25,4.5l-32,0 q-6.5,0 -11.25-4.5t-4.75-11.5l0-32 q0-6.5 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pull\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 447.5,512l-351.5,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-447.5 q0-13.5 9.25-22.75t 22.75-9.25l 192,0 l0,176 q0,6.5 4.5,11.25t 11.5,4.75l 175.5,0 l0,0.5 l0,287 q0,13.5 -9.25,22.75t-22.75,9.25zM 362,320l-42,0 l0-80 q0-7 -4.75-11.5t-11.25-4.5l-64,0 q-6.5,0 -11.25,4.5t-4.75,11.5l0,80 l-43.5,0 q-11.5,0 -17.5,13.25t-1,18.75l 44.5,44.5\nt 42.5,42q 8.5,9 21,9t 21-9l 89.5-86.5q 7-7 0.5-19.5t-19-12.5zM 320,0q 13,0 22,9l 128,128.5q 9.5,9.5 9.5,23l-159.5,0 l0-160.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"push\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-352,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-447.5 q0-13.5 9.25-22.75t 22.75-9.25l 192,0 l0,176 q0,6.5 4.5,11.25t 11.5,4.75l 175.5,0 l0,0.5 l0,287 q0,13.5 -9.25,22.75t-22.25,9.25zM 380.5,320l-89.5-87q-8.5-9 -21-9t-21.5,9l-42.5,42.5t-44,44.5q-5.5,5 0.75,18.5t 17.25,13.5l 44,0 l0,79.5 q0,7 4.5,11.5t 11.5,4.5\nl 64,0 q 6.5,0 11.25-4.5t 4.75-11.5l0-79.5 l 42,0 q 12.5,0 19-12.75t-0.5-19.25zM 320,0q 12.5,0 22,9l 128,128.5q 9.5,9.5 9.5,23l-159.5,0 l0-160.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"binary\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448l-192,0 q-13,0 -22.5-9.25t-9.5-22.75l0-320 q0-13 9.5-22.5t 22.5-9.5l 192,0 q 13,0 22.5,9.5t 9.5,22.5l0,320 q0,13.5 -9.25,22.75t-22.75,9.25zM 448,128l-128,0 l0,256 l 128,0 l0-256 zM 192,448l-160,0 q-13,0 -22.5-9.25t-9.5-22.75t 9.5-22.75t 22.5-9.25l 32,0 l0-256 l-32,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 64,0 \nq 13.5,0 22.75,9.5t 9.25,22.5l0,288 l 32,0 l0-32 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.5t 9.25,22.5l0,64 q0,13.5 -9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cgi\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 498,112l-159.5,0 l 164,33.5q 6,1.5 9.25,7.25t 1.75,12t-7.25,9.5t-11.75,1.25l-110.5-22l 121.5,56.5q 6,3.5 7.75,10t-1.75,12.25t-10,7.5t-12.5-1.75l-136-64l 161,258q0,13.5 -9.5,22.75t-22.5,9.25l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.75l 135.5-218.5l-88.5,54.5q-11.5,6.5 -23.75,3t-18.75-15\nt-3.25-24.25t 14.75-19.25l 193.5-118.5l 23-37q 9.5-9.5 22.75-9.5t 22.25,9.5l 14.5,23l 204,0 q 6.5,0 11.25,4.75t 4.75,11.5t-4.75,11.25t-11.25,4.5zM 258,96l-208,336l 416,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"grails\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 101,192l-69,0 q0,30 18.5,58t 45.5,35.5l0,67.5 q-14,1.5 -23,5.75t-9,9.25\nq0,6.5 14,11.25t 34,4.75t 34-4.75t 14-11.25q0-5 -9-9.25t-23-5.75l0-67.5 q 18.5-5 34.5-22q-47-27 -61.5-71.5zM 128,160q0,33 27,58.75t 69,33.75l0,136 q-14.5,4 -23.25,11.5t-8.75,16q0,13 18.75,22.5t 45.25,9.5t 45.25-9.5t 18.75-22.5q0-8.5 -8.75-16t-23.25-11.5l0-136 q 42-8 69-33.75t 27-58.75\nl-256,0 zM 411,192q-14.5,44.5 -61.5,71.5q 16,17 34.5,22l0,67.5 q-14,1.5 -23,5.75t-9,9.25q0,6.5 14,11.25t 34,4.75t 34-4.75t 14-11.25q0-5 -9-9.25t-23-5.75l0-67.5 q 27-7.5 45.5-35.5t 18.5-58l-69,0 l0,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"nodejs\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 193.5,224l 64-32l 64,32l0,64 l-64,32l-64-32l0-64 zM 469.5,225.5l-95,62.5q-10,0 -15.5-6.5t-5.5-16l0-65.5 l-96-56l-95.5,56l0,112 l 221.5,129.5l-96,63.5q-12.5,7 -30.25,7t-30.25-7l-181-119.5q-14-8 -12.5-19.5l0-220 q-1.5-11.5 12.5-19l 181-120q 12.5-7 30.25-7t 30.25,7l 181.5,120\nq 12.5,7 12,17l 0.5,0 l0,62 q 2,11.5 -12,19.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"java\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 471,384q-12,0 -24.75-9t-21.25-23.5q 4.5,0.5 7,0.5q 20,0 34-9.5t 14-22.5q0-12.5 -12.5-21.5t-31-10.5q-20.5,14 -69.75,23t-110.75,9q-79.5,0 -135.75-14.25t-56.25-33.75q0-15 33-27q 7,18 57,30.5t 118,12.5q 56.5,0 101.5-9t 64-23q 6,4.5 8.5,9q 13-9 25-9q 17,0 29,18.75t 12,45.25\nt-12,45.25t-29,18.75zM 288,159.5q0,16.5 5,29.5t 11,20.5t 11,19.75t 5,26.75q-2.5-1.5 -6.75-4t-15.5-11.75t-19.5-19.5t-15.25-26.75t-7-34.5q0-16.5 15.75-34.75t 37.25-31t 42.5-21.25t 32.5-8q-9,0 -31.75,15.5t-43.5,39t-20.75,40.5zM 192,176q0,17.5 8,37.5t 16,31.5l 8,11.5q-24,0 -44-25.5t-20-55\nq0-13 10-26.25t 24-24t 28-20.25t 24-18.75t 10-16.25q0-14 -1.5-24.5t-8.25-24t-19.25-21.5q 31,3.5 46,22.25t 15,47.75q0,16 -10,28.5t-24,20.5t-28,15.5t-24,17.75t-10,23.25zM 256,416q 73.5,0 110.5-16q 17.5,7.5 17.5,16q0,13 -37.5,22.5t-90.5,9.5t-90.5-9.5t-37.5-22.5q0-8.5 17.5-16q 37,16 110.5,16z\nM 96,352q0-8.5 21.5-16q 46.5,16 138.5,16t 138.5-16q 21.5,7.5 21.5,16q0,13 -47,22.5t-113.25,9.5t-113-9.5t-46.75-22.5zM 64,416q0,17.5 25.75,32.25t 70,23.25t 96.25,8.5t 96.25-8.5t 70-23.25t 25.75-32.25q0-5.5 -3-11q 67,18 67,43q0,17.5 -34.25,32.25t-93.25,23.25t-128.5,8.5t-128.5-8.5\nt-93.25-23.25t-34.25-32.25q0-25 67-43q-3,5.5 -3,11z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ads\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,320l-32,0 l0,128 l 16,0 q 25,0 36.5,17.5t 11.5,46.5l-192,0 q0-29 11.5-46.5t 36.5-17.5l 16,0 l0-128 l-256,0 l0,128 l 16,0 q 25,0 36.5,17.5t 11.5,46.5l-192,0 q0-29 11.5-46.5t 36.5-17.5l 16,0 l0-128 l-32,0 q-13,0 -22.5-9.25t-9.5-22.75l0-256 q0-13 9.25-22.5t 22.75-9.5l 96,0 l0,64 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25\nt 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-16,0 l0-64 l 192,0 l0,64 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-16,0 l0-64 l 96,0 q 13,0 22.5,9.5t 9.5,22.5l0,256 q0,13.5 -9.5,22.75\nt-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"github\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,256q0,55.5 -13,93.5t-43,64.25t-79,38.25t-121,12t-121-12t-79-38.25t-43-64.25t-13-93.5q0-74.5 39-115.5q-7-51 -7-76.5q0-6.5 4.75-11.25t 11.25-4.75q 6,0 42,16.5t 49,26q 49-10.5 117-10.5q 59,0 104.5,8q 15.5-10 48.75-25t 38.75-15q 6.5,0 11.25,4.75t 4.75,11.25\nq0,17.5 -5,63.5q 53,41.5 53,128.5zM 256,176q-10,0 -29-0.5q-23-1 -44,0.25t-39.25,3.75t-33,11t-25,22t-16,36.5t-5.75,55q0,61 48.75,94.5t 143.25,33.5t 143.25-33.5t 48.75-94.5q0-32 -5.75-55t-16-36.5t-25-22t-33-11t-39.25-3.75t-44-0.25q-19,0.5 -29,0.5zM 352,336q-13.5,0 -22.75-14\nt-9.25-34t 9.5-34t 22.5-14t 22.5,14t 9.5,34t-9.25,34t-22.75,14zM 272,400l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 160.25,336q-13.25,0 -22.75-14t-9.5-34t 9.5-34t 22.75-14t 22.5,14t 9.25,34t-9.25,34t-22.5,14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"commentout\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 427.5,384l-107.5,0 l-128,128l0-128 l-107.5,0 q-28.5,0 -56.5-28.5t-28-57.5l0-212 q0-29 28-57.5t 56.5-28.5l 343,0 q 28.5,0 56.5,28.5t 28,57.5l0,212 q0,29 -28,57.5t-56.5,28.5zM 190.5,78.5q 3-6 0.25-10.25t-9.75-4.25l-34,0 q-7,0 -14,4.25t-10,10.25l-57.5,115q-1.5,3 -1.5,6.5t 1.5,6.5l 57.5,99q 3,6 10,10.25\nt 14,4.25l 34,0 q 7,0 9.75-4.25t-0.25-10.25l-58.5-106zM 288,80q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,128 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-128 zM 288,272q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 \nq0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 448,272q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"dnszone\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25q0,42 17,79\nt 47,64l0-239 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,277 q 31.5,11 64,11q 52,0 96.25-25.75t 70-70t 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 352,288l0,0 l-96,64l0,0 l0,0 q-13,0 -22.5-9.5t-9.5-22.5l0-128 q0-13.5 9.5-22.75t 22.5-9.25l 96,64l0,0 q 0.5,0 6.25,3t 7.5,4.25\nt 6.25,4.25t 6.5,5.75t 3.75,6.75t 1.75,8q0,3 -0.75,6t-2,5.25t-3.75,4.75l-4,4t-5.25,3.5t-5,2.75t-5.75,3z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"leechprotect\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,480l-352,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-64 q-13,0 -22.5-9.5t-9.5-22.5l0-128 q0-13.5 9.5-22.75t 22.5-9.25l0-64 q0-26.5 18.75-45.25t 45.25-18.75l 352,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,320 q0,26.5 -18.75,45.25t-45.25,18.75zM 480,128q0-13.5 -9.25-22.75t-22.75-9.25l-352,0 q-13,0 -22.5,9.25t-9.5,22.75\nl0,32 l 32,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 32,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 32,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 32,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 32,0 l0-32 \nzM 480,208q0-6.5 -4.75-11.25t-11.25-4.75l-416,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75l 416,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 zM 480,352l-32,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-32,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 \nq-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-32,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-32,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-32,0 l0,32 q0,13.5 9.5,22.75t 22.5,9.25l 352,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-32 zM 416.25,288\nq-13.25,0 -22.75-9.5t-9.5-22.75t 9.5-22.5t 22.75-9.25t 22.5,9.25t 9.25,22.5t-9.25,22.75t-22.5,9.5zM 320.25,288q-13.25,0 -22.75-9.5t-9.5-22.75t 9.5-22.5t 22.75-9.25t 22.5,9.25t 9.25,22.5t-9.25,22.75t-22.5,9.5zM 224.25,288q-13.25,0 -22.75-9.5t-9.5-22.75t 9.5-22.5t 22.75-9.25t 22.5,9.25t 9.25,22.5t-9.25,22.75\nt-22.5,9.5zM 128.25,288q-13.25,0 -22.75-9.5t-9.5-22.75t 9.5-22.5t 22.75-9.25t 22.5,9.25t 9.25,22.5t-9.25,22.75t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"analytics3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-448 q0-13 9.25-22.5t 22.75-9.5l 32,0 q 13,0 22.5,9.5t 9.5,22.5l0,448 q0,13 -9.5,22.5t-22.5,9.5zM 352,512l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-320 q0-13 9.25-22.5t 22.75-9.5l 32,0 q 13,0 22.5,9.5t 9.5,22.5l0,320 q0,13 -9.5,22.5t-22.5,9.5zM 224,512l-32,0 q-13.5,0 -22.75-9.5\nt-9.25-22.5l0-192 q0-13.5 9.25-22.75t 22.75-9.25l 32,0 q 13,0 22.5,9.25t 9.5,22.75l0,192 q0,13 -9.5,22.5t-22.5,9.5zM 96,384q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-32,0 l0,32 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-448 q0-13 9.25-22.5t 22.75-9.5l 64,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5\nt-22.5,9.25l-32,0 l0,64 l 32,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-32,0 l0,64 l 32,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-32,0 l0,64 l 32,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ftpsession\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,384l-160,0 l0,64 l 64,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-192,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.25-22.75t 22.75-9.5l 64,0 l0-64 l-160,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-192 q0-13 9.5-22.5t 22.5-9.5l 240,0 l 23-42.5q 3.5-9 14-15.25t 22-6.25l 120,0 q 12,0 22.5,6.25t 14,15.25q 24.5,29 24.5,42.5l0,224 \nq0,26.5 -18.75,45.25t-45.25,18.75zM 256,128q-43.5,0 -80.25,21.5t-58.25,58.25t-21.5,80.25q0,16.5 3,32l 33,0 q-4-16 -4-32q0-48 32-84.5l0,4.5 l 65.5,88.5q 2.5,10.5 11,17t 19.5,6.5q 12,0 20.75-7.5t 10.75-19l 32.5-53.5l0,0 l0-16 l-16,0 l0,0 l-46.5,28.5l-81.5-60.5l-4.5,0 q 36.5-32 84.5-32q 53,0 90.5,37.5t 37.5,90.5\nq0,15.5 -4,32l 33,0 q 3-16 3-32q0-43.5 -21.5-80.25t-58.25-58.25t-80.25-21.5zM 23,22q 3.5-9.5 14-15.75t 22-6.25l 120,0 q 12,0 22.5,6.25t 14.5,15.75l 24,42l-240,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ftpaccounts\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,384l-160,0 l0,64 l 64,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-192,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 64,0 l0-64 l-160,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-192 q0-13 9.5-22.5t 22.5-9.5l 240,0 q0-4 5.75-14.5t 11.25-19l 6-8.5q 3.5-9.5 14-15.75t 22-6.25l 120,0 q 12,0 22.5,6.25t 14,15.75\nl 24.5,42l0,224 q0,26.5 -18.75,45.25t-45.25,18.75zM 288,291l0-26.5 q 32-18.5 32-84q0-26 -18-39.25t-46-13.25t-46,13.25t-18,39.25q0,62.5 32,83l0,27.5 q-28,5.5 -45.75,18.5t-18.25,29q0,13.5 96,13.5t 96-13.5q-0.5-16 -18.25-29t-45.75-18.5zM 23,22q 3.5-9.5 14-15.75t 22-6.25l 120,0 q 12,0 22.5,6.25\nt 14.5,15.75l 24,42l-240,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"mxentry\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,192l-64,0 l-320,0 l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-128 q0-13.5 9.5-22.75t 22.5-9.25l 448,0 q 13,0 22.5,9.25t 9.5,22.75l0,128 q0,13 -9.5,22.5t-22.5,9.5zM 96.25,64q-13.25,0 -22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5t 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25zM 416,64l-192,0 q-13,0 -22.5,9.25t-9.5,22.5\nt 9.5,22.75t 22.5,9.5l 192,0 q 13.5,0 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25zM 224.5,224l 9,9l-36,35.5q-2.5,3 -4,7.75t-1.5,8.25l0,3.5 q-0.5,13 5.5,19.5l 36,35.5l-137.5,137.5l0-0.5 l0-256 l 128.5,0 zM 398.5,508.5q-7,3.5 -14.5,3.5l-256,0 q-7.5,0 -14.5-3.5l 142.5-143zM 287.5,224l 128.5,0 l0,256 l0,0.5 l-192.5-192.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cgicenter\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-352,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-32 q-13,0 -22.5-9.25t-9.5-22.75l0-128 q0-13 9.5-22.5t 22.5-9.5l0-160 q0-26.5 18.75-45.25t 45.25-18.75l 352,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 48,256q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75\nl 288,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 q0-6.5 -4.75-11.25t-11.25-4.75l-288,0 zM 480,80q0-6.5 -4.75-11.25t-11.25-4.75l-384,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,144 l 288,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,128 q0,13 -9.25,22.5t-22.75,9.5l-288,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75l 384,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-352 zM 416,160q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75t-9.25,22.75t-22.75,9.25zM 320,160q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25t 22.75,9.25t 9.25,22.75t-9.25,22.75t-22.75,9.25zM 224,160l-96,0 q-13,0 -22.5-9.25t-9.5-22.75\nt 9.5-22.75t 22.5-9.25l 96,0 q 13.5,0 22.75,9.25t 9.25,22.75t-9.25,22.75t-22.75,9.25zM 288.25,352q-13.25,0 -22.75-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.5,9.25zM 192.25,352q-13.25,0 -22.75-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.5,9.25z\nM 96.25,352q-13.25,0 -22.75-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.75t-9.25,22.5t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"refresh\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 495.5,512l-67-67q-34.5,31.5 -78.75,49.25t-93.25,17.75q-79.5,0 -144.25-44.75t-93.25-116.25l 59.5-24q 21.5,54 69.75,87.5t 108.25,33.5q 72.5,0 127-48.5l-63-63.5q-0.5-7 4.25-11.75t 11.75-4.25l 154.5,0 q 7,0 13.75,6.75t 7.25,13.75l 0.5,160q 0.5,12 -17,11.5zM 256.5,64q-72.5,0 -127,48l 63,63.5\nq 0.5,7 -4.25,11.75t-11.75,4.75l-154.5,0 q-7-0.5 -13.75-7.25t-7.25-13.75l-0.5-160q-0.5-12 17-11.5l 67,67q 34.5-31.5 78.75-49t 93.25-17.5q 79.5,0 144.25,44.5t 93.25,116.5l-59.5,23.5q-21.5-54 -69.75-87.25t-108.25-33.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"codeigniter\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 352,512q 11-7.5 18-18.25t 9.75-24.25t 3.5-23t 0.75-24.5q0-19 -10.25-38.75t-26-35t-31-26.25t-28.75-18q-27-13.5 -45.5-34.25t-18.5-45.75q-8.5,0 -20.25,14.75t-11.75,33.25q0,9 9.75,19.5t 21.25,19t 21,20.5t 9.5,24q0,24.5 -11.5,42.75t-34,18.25t-35.25-19t-12.75-45q-9,4.5 -15.5,11.75t-9.75,14\nt-4.75,17.75t-1.75,17.5t-0.25,19q0,57 32,80q-32.5-6 -56.25-18t-37.5-26.25t-21.5-34.5t-10.25-38.75t-2.5-42.5q0-45 46.75-115.75t 97.25-108.25q 2.5-2.5 14-11.25t 21.25-18t 20.75-23.25t 17.5-33.5t 6.5-42q 6.5,0 16.75,6t 21,15.75t 18.5,25.5t 7.75,32.75q0,16 -5,30.5t-11,23.5t-11,20.25t-5,21.75\nq0,20 14,34t 34,14q 17.5,0 30.75-8.5t 17.25-23.5q 44,32 70,75.5t 26,84.5q0,23 -4,45t-13.5,43.25t-23.75,36.75t-36.5,25.25t-50.25,9.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"mysql\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 402.5,444q 8.5,16.5 12,31.75t 0.25,25.75t-14.75,10.5q-30.5-41 -59.5-90q-14-10 -42.5-25.25t-51-27.75t-51.5-37t-51.5-55q0,6 -4,11.25t-8,12.5t-4,19.25l0,4 q0,8 -0.25,11.5t-1.5,8.25t-4.75,6.5t-9.5,1.75q-12.5,0 -30.25-25t-17.75-39q0-27 9.5-60.75t 21.5-35.25q-16-29 -21-39\nq-12-19.5 -32.5-50t-31-47.5t-10.5-23.5q0-13 9.25-22.5t 22.75-9.5t 22.75,9.5t 9.25,22.5q0,3.5 2.5,16q 23-16 61.5-16q 24,0 66.25,34.5t 61.75,61.5q0,0.5 0.5,1l 0.5,0.5q 27.5,4.5 56.5,18.25t 49.75,34.75t 20.75,41.5l0,0.5 q-7.5,0.5 -29.75-0.25t-33.75-0.75q 10,18 15.5,32.5q 6.5,18 11,43q 4,2 5,5\nq 9,22 28.75,44t 41.5,39t 42.5,33t 34,31.5t 13.25,28.5l-17-5t-44.25-14t-48.25-17z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"drupal\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-61-0.5 -112.5-29.75t-81.5-79.5t-30-109.25q0-63.5 34.5-115.75t 91.5-80.75q 19.5-10 34.75-22.5t 23.5-23.75t 12.75-22t 4.25-18.25t-3.75-10.5q 24,21.5 31,29.5q 16,20 38.75,36t 64.75,37q 52.5,26.5 84.25,79.5t 31.75,114.5q0,59 -30,108.75t-81.5,78.5t-112.5,28.25zM 272,480q 26,0 53-10.5t 27-21.5\nq0-12 -2-14t-14-2q-9,0 -29.5,8t-34.5,8q-10.5,0 -25.25-8t-22.75-8q-4.5,0 -6.75,0.25t-4.75,1.75t-3.5,4.75t-1,9.25q0,9 19.75,20.5t 44.25,11.5zM 352,384q0-10.5 -12-21.25t-36-10.75q-23,0 -35.25,9.5t-12.25,22.5q0,12 2,14t 14,2q 6.5,0 9.5-2.5t 3.75-5.5t 5.25-5.5t 13-2.5q 10.5,0 17.5,8\nt 14.5,8q 5,0 7-0.25t 4.5-1.75t 3.5-4.75t 1-9.25zM 419.5,256q-22,0 -40.5,4.5t-28.75,10.25t-22.5,11t-23.25,6.75l-0.25-0.25l-0.25-0.25q-8.5,0 -22.25-5t-27.5-11t-36.25-11t-46-5q-28,0 -51.75,22.75t-23.75,49.25t 16.5,41.25t 44.5,14.75q 20.5,0 43.25-10t 39.25-22t 34.25-22t 29.75-10q 11-1.5 21.5,4.75\nt 19.25,15.75t 17.25,19.5t 18.25,17t 19.25,7q 17.5,0 33-26.75t 15.5-54.25q0-17.5 -7.25-32.25t-21.25-14.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"wordpress\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,96q0,7 0.5,12.25t 2.25,10.5t 3,8.5t 5,8.5t 5.25,7.5t 7.25,9.25t 8.25,9.5q 11,14 14.25,22.75t 0.75,20.25q-3.5,17 -8,30l-38.5,101l-41.5-94q-4.5-11 -18.5-58.75t-14-51.25q0-7 5-10.5q 11-9 21-9.5l0-16 l-144,0 l0,16 q 4.5,0.5 7,3t 4.75,5.75t 3.75,4.75q 7,6 16.5,29l 16,53.5\nl-32,128l-66-174.5q-10-25.5 -10-31t 5.5-9.5q 12-9 22.5-9l0-16 l-103.5,0 q 35.5-45 87.75-70.5t 111.75-25.5q 47.5,0 91,16.75t 78,47.25q-19.5,0 -30.25,8t-10.75,24zM 33,130.5q 12.5,14.5 30,61.5l 97,256l 32,0 l 64-192l 80,192l 32,0 l 75.5-195q 3-8.5 12-26.75t 15.25-35t 7.75-30.25q 1.5-20 1.5-29q 32,58 32,124\nq0,69.5 -34.25,128.5t-93.25,93.25t-128.5,34.25q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5q0-67 33-125.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"joomla\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,96q-20,0 -34-14t-14-34t 14-34t 34-14t 34,14t 14,34t-14,34t-34,14zM 421.5,229.5l-37.5-37.5q 10-10.5 8.5-30.25t-12-30.25t-30.25-12t-30.25,8.5l-96.5,96l-37.5-37.5l 93.5-93.5q 29-29 69.75-29t 69.75,29q 28,28 28.75,67.75t-26.25,68.75zM 131.5,131.5q-10.5,10.5 -12,30.25t 8.5,30.25\nl 96,96l-38,37.5l-93-93q-29-29 -29-69.75t 29-69.75q 28-28 67.75-28.75t 68.75,26.25l-37.5,37.5q-10.5-10 -30.25-8.5t-30.25,12zM 48,96q-20,0 -34-14t-14-34t 14-34t 34-14t 34,14t 14,34t-14,34t-34,14zM 48,416q 20,0 34,14t 14,34t-14,34t-34,14t-34-14t-14-34t 14-34t 34-14\nzM 90,283l 37.5,37.5q-10,10.5 -8.5,30.25t 12,30.25t 30.25,12t 30.25-8.5l 96-96l 37.5,38l-93,93q-29,29 -69.75,29t-69.75-29q-28-28 -28.75-67.75t 26.25-68.75zM 381,381q 10.5-10.5 12-30.25t-8.5-30.25l-96-96.5l 37.5-37.5l 93.5,93.5q 29,29 29,69.75t-29,69.75q-28,28 -67.75,28.75\nt-68.75-26.25l 37.5-37.5q 10.5,10 30.25,8.5t 30.25-12zM 464,416q 20,0 34,14t 14,34t-14,34t-34,14t-34-14t-14-34t 14-34t 34-14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cpanel\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,256q0,13.5 -9.5,22.75t-22.5,9.25l-192,0 l0,192 q0,13.5 -9.25,22.75t-22.75,9.25l0,0 q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25l0,0 q 69.5,0 128.5,34.25t 93.25,93.25t 34.25,128.5zM 64,256q0,71 45.75,124.25t 114.25,64.75l0-378 \nq-68.5,11.5 -114.25,64.75t-45.75,124.25zM 288,67l0,157 l 157,0 q-10-60.5 -53.5-103.75t-103.5-53.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"python\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,384l-144,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 q0,26.5 -18.75,45.25t-45.25,18.75l-96,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-112 q0-26.5 10.75-37.25t 37.25-10.75l 128,0 q 26.5,0 53.25-26.75t 26.75-53.25l0-80 l 32,0 q 26.5,0 45.25,18.75t 18.75,45.25\nl0,96 q0,36.5 -29.75,66.25t-66.25,29.75zM 288,472q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 zM 320,256l-128,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,64 l-64,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-96 \nq0-36.5 29.75-66.25t 66.25-29.75l 144,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 q0-26.5 18.75-45.25t 45.25-18.75l 128,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,128 q0,26.5 -18.75,45.25t-45.25,18.75zM 224,40q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25\nt-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"flashplayer\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,96l-16,0 q-23,0 -44,11.75t-37.75,31.75t-28.75,40.5t-22.5,44l 85,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75l-119,0 q-4.5,9.5 -10.75,25t-10.5,26.5t-11.25,25.75t-13.5,25.5t-16,23.5t-19.75,21.75t-24.5,17.75t-30.25,14.25t-36.5,8.75t-44,3.25l-16,0 q-6.5,0 -11.25-4.75\nt-4.75-11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 q 25,0 49.5-15.75t 43-40.25t 31.75-51.75t 19.75-52.25q 4-16.5 9.75-34.5t 16.75-44t 24.25-49.25t 32.75-47.5t 41.75-41.5t 52-28.25t 62.75-11l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ajax\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 443,230l-21,21.5q-4.5,4.5 -10.75,4.5t-10.75-4.5l-16.5-16.5l0,181 q0,40 -28.25,68t-67.75,28l-64,0 q-40,0 -68-28t-28-68l 64,0 q0,13.5 9.25,22.75t 22.75,9.25l 64,0 q 13,0 22.5-9.25t 9.5-22.75l0-181 l-16.5,16.5q-4.5,4.5 -10.75,4.5t-10.75-4.5l-21.5-21.5q-4.5-4.5 -4.5-10.75t 4.5-10.75l 76-76q 4.5-4.5 15.5-4.5\nq 10.5,0 15.5,5l 76,75.5q 4,4.5 4,10.75t-4.5,10.75zM 288,64l-64,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,181 l 16-16.5q 4.5-4.5 10.75-4.5t 10.75,4.5l 21.5,21.5q 4.5,4.5 4.5,10.75t-4.5,10.75l-75.5,76q-4.5,4.5 -15.5,4.5t-16-5l-75.5-75.5q-4.5-4.5 -4.5-10.75t 4.5-10.75l 21.5-21.5q 4.5-4.5 10.75-4.5t 10.75,4.5l 16.5,16.5l0-181 q0-40 28-68\nt 68-28l 64,0 q 39.5,0 67.75,28t 28.25,68l-64,0 q0-13 -9.5-22.5t-22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"magento\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,420.5l0-260.5 l-160-80l-160,80l0,260.5 l-64-36.5l0-256 l 224-128l 224.5,128l0,256 zM 224,429.5l 32,18.5l 32-18.5l0-267 l 64.5,37.5l0,256 l-96.5,56l-96-56l0-256 l 64-37.5l0,267 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"oxwall\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25t 70,70t 96.25,25.75q 58,0 106-32l 54,0 l0-54 \nq 32-48 32-106q0-52 -25.75-96.25t-70-70t-96.25-25.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"jqueryui\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,480q-55.5,0 -100-13.25t-80.5-42.25t-55.75-79.75t-19.75-120.75l0-128 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,128 q0,70 -19.75,120.75t-55.75,79.75t-80.5,42.25t-100,13.25zM 256,320q-21.5,0 -37.75-5.5t-30-19t-21-39.5t-7.25-64l0-64 l-96,0 l0,96 \nq 0.5,42 10.75,75t 27.25,54.75t 41.5,36t 52.25,20.25t 60.25,6q 38,0 69.25-8.5t 57.75-26.75t 43.25-50t 21.75-74.75l-96,0 q-18.5,64 -96,64zM 384,96l-32,96l 96,32l 32-96z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"jquery\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 403.5,240q-54.5,0 -93-38.5t-38.5-93q0-32 18-60.75t 46-47.75q-2,5 -6.25,15.5t-6.5,16t-6,14.75t-5.5,15t-3.75,12.75t-3,12.25t-1,9.75q0,47.5 32.25,79.75t 79.75,32.25q 4.5,0 9.75-1t 12.25-3t 12.75-3.75t 15-5.5t 14.75-6t 16-6.5t 15.5-6.25q-19,28 -47.75,46t-60.75,18zM 368,320\nq 30.5,0 57.25-3.5t 70.75-12.5q-27.5,31 -66.5,47.5t-83.5,16.5q-55,0 -101.5-27t-73.5-73.5t-27-101q0-45 16.5-84t 47.5-66.5q-9,44 -12.5,70.75t-3.5,57.25q0,47 24,87.5t 64.5,64.5t 87.5,24zM 288,448q 91.5,0 160-16q-35,39 -85,59.5t-107,20.5q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5\nq0-57 20.5-107t 59.5-85q-16,68.5 -16,160q0,45.5 17.75,87t 47.75,71.5t 71.5,47.75t 87,17.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"css3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,448l-192,64l-192-64l-32-448l 448,0 zM 96,64l 6,64l 218,0 l0,64 l-212.5,0 l 6,64l 206.5,0 l0,96 l-64,16l-64-16l0-64 l-75.5,0 l 11.5,128l 128,32l 128-32l 32-352l-320,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"html5\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,448l-192,64l-192-64l-32-448l 448,0 zM 96,64l 17.5,192l 206.5,0 l0,96 l-64,16l-64-16l0-64 l-75.5,0 l 11.5,128l 128,32l 128-32l 20.5-224l-212.5,0 l0-64 l 218,0 l 6-64l-320,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"html\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 503,277l-99,130q-9,8.5 -21.75,8.5t-21.75-8.75t-9-21.5t 9-21.75l 82.5-108l-82.5-108q-9-9 -9-21.5t 9-21.5t 21.75-9t 21.75,9l 99,129.5q 9,9 9,21.5t-9,21.5zM 256,480q-0.5,1.5 -1.5,5.75t-1.5,5.75l-1.75,5.25t-2.5,5.25t-3.75,4t-5.25,3.5t-6.75,1.75t-9,0.75q-12,0 -23-12.5\nt-8-24l 63-444q 8.5-32 48-32q 11,0 14.75,11.75t 0.25,24.75zM 151.5,406.75q-9,8.75 -21.75,8.75t-21.75-8.5l-99-130q-9-9 -9-21.5t 9-21.5l 99-129.5q 9-9 21.75-9t 21.75,9t 9,21.5t-9,21.5l-82.5,108l 82.5,108q 9,9 9,21.75t-9,21.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ruby\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 96,512l 0.5-0.5q-44-2 -69-27q-25-24.5 -27-68.5l-0.5,0 l0-160 l 0.5,0 q0-36 23.25-81t 64.75-86.5t 86.5-64.75t 81-23.25l0-0.5 l 160,0 l0,0.5 q 44,2 68.5,27q 25,25 27,69l 0.5-0.5l0,416 l-416,0 zM 480,480l-112-112l-144,112l 256,0 zM 337.5,356.5l-177.5-68.5l-27,188q 47.5-9.5 101.25-40.5t 103.25-79zM 32,432q 1,2.5 4.25,9.75\nt 6.25,13.5t 5.5,8.75q 14.5,14.5 26.5,16.75t 38.5-1.75q-79-161.5 -81-166l0,119 zM 274.25,45.75q-23.75-23.75 -74-7t-97.5,64t-64,97.5t 7,74t 74,7t 97.5-64t 64-97.5t-7-74zM 356.5,337.5q 47.5-49.5 78.5-103.25t 40.5-101.25l-187.5,27zM 463,48q-2.5-2.5 -8.5-5.5t-13.5-6.25t-9.5-4.25l-118.5,0 l 165,80\nq 4-26 1.75-38t-16.75-26z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"whmcs\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 437,192l-70.5,0 q-17-29 -46.25-46.5t-64.25-17.5q-53,0 -90.5,37.5t-37.5,90.5t 37.5,90.5t 90.5,37.5q 35,0 64.25-17.5t 46.25-46.5l 70.5,0 l-0.5,0.5l 50.5,45q-8,16.5 -17,30.5l-66-17.5q-11,13 -24.5,24.5l 19.5,65.5q-12.5,8.5 -31,17.5l-46.5-49.5q-16.5,5.5 -33.5,8.5l-17.5,66.5q-12.5,0.5 -14.5,0.5q-8,0 -21-1l-13.5-66\nq-15-3 -30-8.5l-45,50.5q-17-8 -30.5-17l 17.5-66q-13-11 -24.5-24.5l-65.5,19.5q-8.5-13 -17.5-31l 49.5-46.5q-5.5-16.5 -8.5-33.5l-66.5-17.5q-0.5-12.5 -0.5-14.5q0-8 1-21l 66-13.5q 3-15 8.5-30l-50.5-45q 8-17 17-30.5l 66,17.5q 11-13 24.5-24.5l-19.5-65.5q 13-8.5 31-17.5l 46.5,49.5q 16.5-5.5 33.5-8.5l 17.5-66.5q 13-0.5 14.5-0.5\nq 8,0 21,1l 13.5,66q 15,3 30,8.5l 45-50.5q 17,8 30.5,17l-17.5,66q 13,11 24.5,24.5l 65.5-19.5q 8.5,12.5 17.5,31l-49.5,46.5l0,1 t 0.5,0.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"mybb\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,208q0,15 2.5,28.5t 6.5,22.75t 8.5,16t 8.25,9.75t 6.25,3q-37,0 -69.25-9.5t-54.75-26q-18.5,3.5 -36.25,3.5t-35.75-3.5l-1,2t-0.5,1.5l 2.75,0 l 2.75,0 q 43.5,0 80.25,15t 58.25,40.75t 21.5,56.25t-21.5,56.25t-58.25,40.75t-80.25,15q-18,0 -36.5-3q-22.5,16.5 -54.75,25.75t-68.75,9.25\nq 4.5,0 11.5-8t 13.5-27t 7-42q-32-30 -32-67q0-7 2-16l-1,0 l-1,0 q-17.5,0 -36-3.5q-22.5,16.5 -54.75,26t-69.25,9.5q 2.5,0 6.25-3t 8.25-9.75t 8.5-16t 6.5-22.75t 2.5-28.5q0-0.5 0.25-1.5t 0.25-1.5q-32.5-34.5 -32.5-77q0-34.5 21.5-64t 58.25-46.75t 80.25-17.25q 18,0 36,3.5q 12.5-43 56-71.25t 100-28.25q 43.5,0 80.25,17.25\nt 58.25,46.75t 21.5,64q0,42.5 -32.5,77q0,0.5 0.25,1.5t 0.25,1.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"dolphinsoftware\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 444.5,79.5q 33.5,35 52.25,80.5t 18.75,96q0,73 -39,135q 15,20 39,22q-16.5,19 -41,19q-22,0 -38.5-20t-16.5-44q0-10 2.5-32.25t 3-32.75q-16.5-36.5 -52.75-64.25t-79.25-39.75q-17.5,7.5 -39,24.5t-38.5,33t-38.75,31.5t-40.25,21q-49.5,14.5 -88.25,9.5t-44.25-27q-3.5-15.5 11.75-33.5t 44.25-34\nq-1-1 -2.25-3.25t-1.75-2.75q 26.5,6 59.5,6q 26.5,0 48.5-8.75t 34.5-23.75q 12.5-1 20.75-10t 8.25-21.5q0-13 -9.25-22.5t-22.5-9.5t-22.75,9.5t-9.5,22.5q0,11 7.5,20q-25.5,12 -55.5,12q-19,0 -29.5-0.5t-23.25-2.75t-21.75-6.75q-5-20.5 -5.5-38q-0.5-24.5 7-43.5t 25-36.5q 32-31.5 84.5-47.75t 107.5-16.25q 64.5,0 121,30.5\nq 27-30.5 66.5-30.5q 41,0 68.5,33q-22.5,2 -41,14.5t-30,32zM 93,351q 25,44 69.5,70.5t 97,26.5q 73.5,0 128.5-49.5q 3.5,34 29,59q-69.5,54.5 -157.5,54.5q-79.5,0 -144-44.5t-93.5-116q 13.5,0.5 29.5,0.5q 24,0 41.5-1z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"phpbb\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,160q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75q-34,0 -58,23.25t-33,63.75\nq-35-55 -101-55q 39.5,0 67.75-28t 28.25-67.75t-28.25-68t-68-28.25t-67.75,28.25t-28,68t 28,67.75t 68,28q-58,0 -93,44t-35,116q 32,18 58,25t 70,7t 70-7t 58-25q0-22 -4-43.5q 26.5,11.5 68,11.5q 33,0 52.5-5.75t 43.5-20.75q0-60.5 -26.25-97t-69.75-36.5q 26.5,0 45.25-18.75\nt 18.75-45.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"smf\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 498,32l-40,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,48 q0,3 2.25,5.5t 5.75,2.5l 40,0 q 6.5,0 11.25,4.5t 4.75,11.25t-4.75,11.5t-11.25,4.75l-40,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,104 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-224 q0-7 4.5-11.5t 11.5-4.5l 64,0 q 6.5,0 11.25,4.5t 4.75,11.25t-4.75,11.5\nt-11.25,4.75zM 370,256q-6.5,0 -11.25-4.75t-4.75-11.25l0-174.5 l-50,70.5q-4.5,8 -14,8t-14-8l-50-70.5l0,174.5 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-224 q0-6.5 4.75-11.25t 11.25-4.75q 9,0 14,8l 66,93l 66-93q 5-8 14-8q 6.5,0 11.25,4.75t 4.75,11.25l0,224 \nq0,6.5 -4.75,11.25t-11.25,4.75zM 239,292.5l 29.5,41l 204-44.5q 13-3.5 24.75,3t 15.25,19t-3.25,23.75t-19.75,14.75l-181,39.5l 74,102q 8.5,8.5 -4,21l-308-0.5q-5-5 -5-12t 5-12l 39.5-55.5l-66.5,14.5q-13,3.5 -24.75-3t-15.25-19t 3.25-23.75t 19.75-14.75l 138-30l 45.5-63.5q 5-5 14.5-5t 14.5,5z\nM 194,383.75q0,13.25 9.5,22.75t 22.75,9.5t 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25t-22.75,9.25t-9.5,22.5zM 146,64q-6.5,0 -11.25-4.75t-4.75-11.25q0-6 -1.75-9.5t-6.5-4.75t-8.25-1.75t-11,0l-4.5,0 l-32,0 q-13,0 -22.5,9.25t-9.5,22.5t 9.5,22.75t 22.5,9.5l 32,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,32 \nq0,26.5 -18.75,45.25t-45.25,18.75l-32,0 q-29,0 -46.5-11.5t-17.5-36.5q0-7 4.75-11.5t 11.25-4.5t 11.25,4.5t 4.75,11.5q0,5.5 1.75,9t 6.5,5t 8.25,1.75t 11.5,0.25l 4,0 l 32,0 q 13,0 22.5-9.5t 9.5-22.5l0-32 q0-13.5 -9.5-22.75t-22.5-9.25l-32,0 q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75l 32,0 q 29,0 46.5,11.5t 17.5,36.5\nq0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"prestashop\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,480l-32,0 l0-80 q0-16 -9.5-28.5t-24.5-17q0-15 -15.75-24.75t-30.25-9.75l-16,0 l0-16 q0-20 -14-34t-34-14t-34,14t-14,34l0,51 q-14,5 -23,17.25t-9,27.75l0,80 l-128,0 q-13,0 -22.5-9.25t-9.5-22.75l0-288 q0-13 9.25-22.5t 22.75-9.5l 32,0 l0-64 l 64-64l0,128 l 192,0 l0-128 l 64,64l0,64 l 32,0 \nq 13.5,0 22.75,9.5t 9.25,22.5l0,288 q0,13.5 -9.25,22.75t-22.75,9.25zM 192,0l 128,0 l0,64 l-128,0 l0-64 zM 240,384q 6.5,0 11.25,4.75t 4.75,11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,64 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75\nt 4.75,11.25l0,32 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,48 q0,26.5 -15.5,45.25t-38,18.75l-53,0 q-22,0 -37.75-18.75t-15.75-45.25l0-48 q0-6.5 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"opencart\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,384q 11.5-23 25.25-48t 20-36.5t 10.75-22.75t 4.5-19.25q0-26 -9.75-44.5t-23.75-18.5q-98.5,0 -180-12q-128-18.5 -191-83q-10.5-12 -14-17t-10-16.75t-9.75-27t-6.25-38.75q 6,16.5 12.25,29.25t 11,20t 11.75,13.75t 10.25,9t 10.75,6.5t 9.5,5.5q 70.5,44 382.5,44q 24.5,0 44.25,20.25t 19.75,46.25\nq0,15 -4.5,30.5t-15,32.5t-20,30.25t-27.5,32.75t-28.75,30.75t-32.25,32.75zM 144,416q 20,0 34,14t 14,34t-14,34t-34,14t-34-14t-14-34t 14-34t 34-14zM 336,416q 20,0 34,14t 14,34t-14,34t-34,14t-34-14t-14-34t 14-34t 34-14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"backupwizard\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502,502q-9.5,9.5 -22.5,10t-22-8.5l-96.5-97q-9-9 -8.5-22t 10-22.5t 22.5-10t 22,8.5l 96.5,97q 9,9 8.5,22t-10,22.5zM 288,128l0,114 l-96.5-97l 16.5-16.5l-44.5-6l-12.5-26.5l 105,0 q 13.5,0 22.75,9.25t 9.25,22.75zM 128,96l 9,0 l-12,26.5l-29,4q 0.5-13 9.75-21.75t 22.25-8.75zM 128,288\nq-13,0 -22.5-9.5t-9.5-22.5l0-111.5 l 17,16.5l-8.5,47l 36.5-21.5l 101,101.5l-114,0 zM 320,96q0-13.5 -9.25-23t-22.75-9.5l-192,0 q-13,0 -22.5,9.5t-9.5,23l0,192 q0,13 9.5,22.5t 22.5,9.5l 178,0 l 64,64l-306,0 q-13,0 -22.5-9.5t-9.5-22.5l0-320.5 q0-13 9.5-22.5t 22.5-9.5l 320,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,306.5 l-64-64l0-178 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"accountfiltering\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,128l-190,234l-18,118q0,13.5 -9.25,22.75t-22.75,9.25t-22.75-9.25t-9.25-22.75l-18-118l-190-234l-11.5-16q-4.5-7.5 -4.5-16q0-13 9.5-22.5t 22.5-9.5l 96,0 l0,128 q0,26.5 18.75,45.25t 45.25,18.75l 128,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-128 l 96,0 q 13.5,0 22.75,9.5t 9.25,22.5q0,8.5 -4.5,16zM 255.5,112\nl 93.5-93.5q 3,6.5 3,13.5l0,160 q0,7 -3,13.5zM 190,0l 0.75,0 l 1.25,0 l 128,0 l 1.25,0 l 0.75,0 l-66,66.5zM 320,224l-128,0 l-1.25,0 l-0.75,0 l 66-66.5l 66,66.5l-0.75,0 l-1.25,0 zM 230,92.5q-3,3 -4.5,7.75t-1.5,8.25l0,3.5 q-0.5,13 6,19.5l 3.5,3.5l-70.5,70.5q-3-6.5 -3-13.5l0-160 q0-7 3-13.5l 70.5,70.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"userfiltering\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,128l-190,234l-18,118q0,13.5 -9.25,22.75t-22.75,9.25t-22.75-9.25t-9.25-22.75l-18-118l-190-234l-11.5-16q-4.5-7.5 -4.5-16q0-13 9.5-22.5t 22.5-9.5l 128,0 q0,59.5 8,81.5q-40,23.5 -40,83.5q0,6.5 5.75,11.5t 17.75,7.75t 23,4.5t 28.5,2.25t 27,0.75t 26,0.25t 26-0.25t 27-0.75t 28.5-2.25t 23-4.5\nt 17.75-7.75t 5.75-11.5q0-60 -40-83.5q 8-22 8-81.5l 128,0 q 13.5,0 22.75,9.5t 9.25,22.5q0,8.5 -4.5,16zM 288,136.5l0,26.5 q 28,5.5 45.75,18.5t 18.25,29q0,13.5 -96,13.5t-96-13.5q 0.5-16 18.25-29t 45.75-18.5l0-27.5 q-32-20.5 -32-83q0-26 18-39.25t 46-13.25t 46,13.25t 18,39.25q0,65.5 -32,84z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"filter\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,64l-177.5,219.5l-30.5,196.5q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l-30.5-196.5l-177.5-219.5l-11.5-16q-4.5-7.5 -4.5-16q0-13 9.5-22.5t 22.5-9.5l 448,0 q 13.5,0 22.75,9.5t 9.25,22.5q0,8.5 -4.5,16z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"wrench\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507.5,399q 4.5,5 4.5,43.25t-4.5,43.25l-22,22q-5,4.5 -43.25,4.5t-43.25-4.5l-207.5-267.5l0-0.5 t-0.5-0.5q-29.5,17 -63,17q-52.5,0 -89.5-36.5t-38.5-88.5l0-3 l 19,0 l 41.5,41.5q 22.5,22.5 54.25,22.5t 54.25-22.5t 22.5-54.5t-22.5-54.5l-41-41l0-19.5 l 3,0 q 52,1.5 88.25,38.75t 36.25,89.25q0,34 -16.5,63.5l 0.5,0.5zM 447.75,480\nq 13.25,0 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25t-22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"error2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25t 70,70t 96.25,25.75t 96.25-25.75t 70-70\nt 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 256.25,320q-13.25,0 -22.75-9.5t-9.5-22.5l-32-128q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25l-32,128q0,13 -9.25,22.5t-22.5,9.5zM 256,352q 13.5,0 22.75,9.25t 9.25,22.5t-9.5,22.75t-22.75,9.5t-22.5-9.5t-9.25-22.75t 9.25-22.5\nt 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"certificate2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 338.5,297l 45.5,183l-64,32l-43-193.5q-11.5,1.5 -21,1.5t-21-1.5l-43,193.5l-64-32l 45.5-183q-35.5-21.5 -56.5-57.75t-21-79.25q0-43.5 21.5-80.25t 58.25-58.25t 80.25-21.5t 80.25,21.5t 58.25,58.25t 21.5,80.25q0,43 -21,79.25t-56.5,57.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"certificate\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 400.5,192l 48,51.5l-67.5,21l 16,68.5l-63.5-14.5l 51,162.5q0,16.5 -14,26l-26-26l-31,31q-11-2.5 -18-11.25t-7-19.75l-32.5-103l-32,103q0,11 -7,19.75t-18,11.25l-31-31l-26,26q-14-9.5 -14-26l 51-162.5l-63.5,14.5l 16-68.5l-67.5-21l 48-51.5l-48-51.5l 67.5-20.5l-16-68.5l 68.5,16\nl 20.5-67.5l 51.5,48l 51.5-48l 21,67.5l 68.5-16l-16,68.5l 67.5,20.5zM 256.25,96q-39.75,0 -68,28.25t-28.25,68t 28.25,68t 68,28.25t 68-28.25t 28.25-68t-28.25-68t-68-28.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"mimetype\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 447.5,512l-155.5,0 l 4-2q 5.5-3.5 7.25-9.75t-1.75-12.25l-22.5-40q 5.5-8 9.5-16.5l 47,0 q 7,0 11.5-4.5t 4.5-11.5l0-95.5 q0-7 -4.5-11.5t-11.5-4.5l-47,0 q-4-8.5 -9.5-17l 22.5-39.5q 3.5-6 1.75-12.25t-7.25-9.75l-82.5-48q-5.5-3 -12-1.25t-9.5,7.25l-23.5,41q-1,0 -4-0.25t-4.75-0.25t-5,0.25t-3.75,0.25l-23.5-41q-3-5.5 -9.5-7.25\nt-12,1.25l-74,43.5l0-188.5 q0-13.5 9.25-22.75t 22.75-9.25l 223.5,0 l0,176 q0,6.5 4.75,11.25t 11.25,4.75l 176,0 l0,0.5 l0,287 q0,13.5 -9.25,22.75t-22.75,9.25zM 319.5,0q 13,0 22.5,9l 128,128.5q 9.5,9.5 9.5,23l-160,0 l0-160.5 zM 89,304l-23.5-41.5q-3-5.5 -1.5-11.75t 7-9.75l 26.5-15.5q 5-3 11.25-1.25t 9.25,7.25l 24,42\nq 9.5-1.5 17.75-1.5t 18.25,1.5l 23.5-42q 3.5-5.5 9.5-7.25t 11.5,1.25l 26,15.5q 5.5,3.5 7,9.75t-1.5,11.75l-23.5,41.5q 13,14.5 19.5,31.5l 53.5,0 q 7,0 11.5,4.75t 4.5,11.25l0,32 q0,7 -4.5,11.5t-11.5,4.5l-53.5,0 q-6.5,17.5 -19.5,32l 23.5,41.5q 3,5.5 1.5,11.75t-7,9.25l-26,16q-5.5,3 -11.5,1.25t-9.5-7.25l-23.5-42\nq-10,1.5 -18.25,1.5t-17.75-1.5l-24,42q-3,5.5 -9,7.25t-11.5-1.25l-26.5-16q-5.5-3 -7-9.25t 1.5-11.75l 23.5-41.5q-13-14.5 -19-32l-54,0 q-6.5,0 -11.25-4.5t-4.75-11.5l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 54,0 q 6-17 19-31.5zM 159.75,399.5q 13.25,0 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5t-22.5,9.5t-9.25,22.75\nt 9.25,22.5t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"apache\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,512q-12.5,0 -26-0.5q-207-5.5 -318.75-88t-118.25-230q-33-85.5 -33-177.5q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,1.5 l0,1.5 q-4.5,7.5 -2,16q 1,7.5 4,20q 2,21 5.5,42q 1,0 2.5,0.5t 2,0.5q 39,161 84,206q 30,30.5 55,53t 56.25,45.75t 63.75,39t 65,22.25l 32,0 q-5.5-3 -14.75-8.25\nt-37.5-23.5t-55.75-39t-64.25-53.5t-67.75-67.75q-39.5-44.5 -75.5-153.5q 22.5,17 43.5,41.5q 46,54 123,128.75t 149.75,133t 95.25,58.25q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"parkeddomain\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 320,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 160,416q0,13.5 9.5,22.75t 22.5,9.25l 32,0 q 13,0 22.5-9.25t 9.5-22.75l0-32 q0-13 -9.5-22.5t-22.5-9.5l-32,0 q-13,0 -22.5,9.5t-9.5,22.5l0,32 z\nM 112,384q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-16,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,32 q0,13.5 9.25,22.75t 22.75,9.25l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-16,0 l0-32 l 16,0 zM 288,64l-96,0 q-13,0 -22.5,9.5t-9.5,22.5l0,192 q0,13.5 9.5,22.75t 22.75,9.25t 22.5-9.25t 9.25-22.75\nl0-32 l 64,0 q 46,0 71-27t 25-69t-25-69t-71-27zM 448,384q0-13 -9.5-22.5t-22.5-9.5l-32,0 q-8.5,0 -16,4.5q-7.5-4.5 -16-4.5l-32,0 q-13,0 -22.5,9.5t-9.5,22.5l0,48 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-48 l 32,0 l0,48 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-48 l 32,0 l0,48 q0,6.5 4.75,11.25\nt 11.25,4.75t 11.25-4.75t 4.75-11.25l0-48 zM 288,192l-64,0 l0-64 l 64,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25zM 224,416l-32,0 l0-32 l 32,0 l0,32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"redirect\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,384q0,53 -37.5,90.5t-90.5,37.5q-27.5,0 -52.5-11.5q-37,11.5 -75.5,11.5q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5q0,38.5 -11.5,75.5q 11.5,25 11.5,52.5zM 445,224q-9.5-8 -27.25-23.5t-26.25-22.5l-18.5,0 q-0.5,2 -1,5.75\nt-1,5.75q 7,4.5 19.75,13.5t 15.75,11q-16.5,16.5 -24,24.5q-6-9 -17-27.25t-16.5-27.25q-9.5,2.5 -20.5,5.5q-2,1 -5.25,3t-4.25,2.5q 1.5,6.5 3.5,18.5t 2.5,13.5q-7.5,9 -11.5,13.5q-6-3 -24.75-11.5t-28.75-13q0-0.5 -2-6l0-17 q 13-3.5 41-11q-0.5-1 -20.5-43.5q 3.5-5 7.5-11.5q 10.5-0.5 32.25-2.5t 32.75-3l0-24.5 q 1,0 3.5-0.75\nt 3.5-1.25q 1.5,11.5 2,17q 0.5,0 22-1q-16.5-14 -34-23.5q-8.5,1 -19.5,2l-2-2q 1.5-5 2.5-9q-24-10 -50.5-13q 1.5,6 4.5,18.5t 4.5,19q-2,0.5 -6,1.75t-5,1.75l 4,2l-17,2q 1.5-9 4.75-26.25t 3.75-19.25q-10-1 -16-1q-1,0 -10.5,0.5q 0.5,0 1,0.5l 0.5,0 l0,19 l-13,0 q-2.5-0.5 -11-2q 0.5-2.5 2.25-7.75t 2.75-7.75\nq-66.5,9.5 -112.5,59l 7,0 l 12,10.5l 12,10.5l0,11 q-11,4.5 -32.5,13.5t-31.5,13q-1.5,11.5 -5,34.75t-5.5,34.75q 15,16 29.5,32q-7,4.5 -8,5l-26,0 q 12,68 65.25,112.75t 123.25,44.75q 8.5,0 17-0.5q-4.5-7.5 -7-14q-2.5,0 -7.75-0.25t-7.75-0.75q-7-10 -21.25-31.5t-21.25-32.5q 9.5-18.5 33.5-64q 1-1.5 3.5-4\nq 7-6 21.25-18.75t 21.25-18.75q 11,2 44.5-3.75t 44.5-3.75q 0.5,0 0.5,0.5l 0.5,0.5q 4.5-0.5 6.5-0.5q 33.5,0 63,17q 1-9 1-17q0-15 -3-32zM 384,288q-31,0 -55.5,18t-34.5,46l-32.5,0 q-5.5,6 -5.5,14.5t 5.5,14.5l 26.5,35q 3,3 7.5,4.5l0,0 q 6,2.5 13,1.25t 11.5-5.75l 26.5-35q 5.5-6 5.5-14.5t-5.5-14.5l-17.5,0 q 8-14.5 22.75-23.25\nt 32.25-8.75q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75q-4.5,0 -10.5-1l-26,25.5q 17.5,7.5 36.5,7.5q 40,0 68-28.25t 28-68t-28-67.75t-68-28z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"domainaddon\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,416q0,13.5 -9.25,22.75t-22.75,9.25l-32,0 l0,32 q0,13.5 -9.25,22.75t-22.75,9.25l-64,0 q-14,0 -23.5-10.5q-36,10.5 -72.5,10.5q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5q0,37 -10.5,72.5q 10.5,9.5 10.5,23.5l0,64 z\nM 445,224q-9.5-8 -27.25-23.5t-26.25-22.5l-18.5,0 q-1.5,8.5 -2,11.5q 15,10.5 35.5,24.5q-12,12 -24,24.5q-11.5-18.5 -33.5-54.5q-9.5,2.5 -20.5,5.5q-2,1 -5.25,3t-4.25,2.5q 1.5,6.5 3.5,18.5t 2.5,13.5q-7.5,9 -11.5,13.5q-6-3 -24.75-11.5t-28.75-13q0-0.5 -2-6l0-17 q 13-3.5 41-11l-20.5-43.5q 1.5-2 4-6t 3.5-5.5q 10.5-0.5 32.25-2.5\nt 32.75-3l0-24.5 q 1-0.5 3.5-1t 3.5-1q 1,6.5 2,17q 0.5,0 22-1q-16.5-14 -34-23.5q-7,0.5 -19.5,2l-2-2q 1.5-5 2.5-9q-24-10 -50.5-13q 1.5,6 4.5,18.5t 4.5,19q-2,0.5 -6,1.75t-5,1.75l 4,2q-16.5,2 -17,2q 1.5-9 4.75-26.25t 3.75-19.25q-10-1 -16-1q-1,0 -10.5,0.5q 1,0.5 1.5,0.5l0,19 l-13,0 q-2-0.5 -11-2q 1-3.5 5-15.5\nq-66.5,9.5 -112.5,59l 7,0 l 12,10.5l 12,10.5l0,11 q-12.5,5 -36,14.75t-28,11.75q0,2.5 -4.25,29t-6.25,40.5q 9.5,10 29.5,32q-1,0.5 -3.75,2.25t-4.25,2.75l-26,0 q 12,68 65.25,112.75t 123.25,44.75q 10,0 22.5-1.5q-11-3.5 -17.5-13q-1.5-0.5 -5-0.5t-5.5-0.5q-7-10.5 -21.25-32t-21.25-32q 11.5-22.5 33.5-64\nq 1-1.5 3.5-4q 7-6 21.25-18.5t 21.25-19q 6.5,0.5 9.25,0.75t 10.75-0.75t 11.75-1.5t 12.25-2t 12.5-2.5q 4.5-1 8-1q 16.5-2 24.5-0.5q 0.5,0 0.5,0.25l0,0.25 l 39,0 q 10.5,0 19,6.25t 11.5,16.25q 1.5-12.5 1.5-22.5q0-15 -3-32zM 448,352l-32,0 l0-32 q0-13 -9.5-22.5t-22.75-9.5t-22.5,9.25t-9.25,22.75l0,32 l-32,0 q-13,0 -22.5,9.5t-9.5,22.75t 9.5,22.5\nt 22.5,9.25l 32,0 l0,32 q0,13.5 9.5,22.75t 22.5,9.25t 22.5-9.25t 9.5-22.75l0-32 l 32,0 q 13.5,0 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"subdomain\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,352q0,43.5 -21.5,80.25t-58.25,58.25t-80.25,21.5q-38.5,0 -72-17.25t-56-46.75q-45.5,0 -87-17.75t-71.5-47.75t-47.75-71.5t-17.75-87t 17.75-87t 47.75-71.5t 71.5-47.75t 87-17.75t 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87q 29.5,22.5 46.75,56t 17.25,72zM 256,224\nq-7.5-3.5 -11.75-15.75t-11.75-15.75q-1-3 -2-4.5q0-2.5 -3.25-14t-3.25-14q 5.5-1.5 16,0t 16,0q-3-6 -4-16.75t-4-17.25q 1-1.5 3-4.75t 3-4.75q 9.5-1 17.25-2.25t 16.75-2.25l0-16 l 32,0 q-32-24 -71.5-30q 1.5,5 3.75,14.75t 3.25,14.25q-4,1.5 -9,3.5q 0.5,0 1.5,0.75t 1.5,0.75q-2.5,0.5 -12.75-2t-12.75-2q 1-4 0.5-16.25t 2-15.75\nl-1.25,0 l-1.25,0 q-55.5,0 -99,34.5q 16,26.5 19,29.5q-4-2 -8,5.5t-6,15.75t-2,10.75q-9,4 -22.5,2.75t-22.5,2.25q-1.5,10 -9.5,29.5t-9.5,29.5q 3,2.5 8.5,2.5t 11-1.5t 9.25,2t 3.25,13q-1,1 -2,8.75t-2,8.25l-24.5,0 q 10,47.5 44.75,81.5t 82.75,43q-3-15.5 -3-29.5q0-59.5 38.5-104.25t 96.5-53.75\nq-21-30.5 -23-34q-3,1 -8,0t-8,0q-1.5,1 -3,7.5t-2.5,7.5q 3,19.5 4.5,27.5q-1.5,2 -15.5,10.75t-15.5,10.75zM 372.5,165q-2-3 -4.5-5l-32,0 q0,1.5 0.25,8t-0.25,8q 5,3.5 16,8t 16,8l-0.5,0.25l-0.5,0.25q 6.5,1 14,2.5q-2.5-16 -8.5-30zM 352.25,256q-39.75,0 -68,28t-28.25,68t 28.25,68t 68,28\nt 67.75-28t 28-68t-28-68t-67.75-28z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"authentication\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320.25,512q-52.25,0 -96.5-25.75t-69.75-69.75t-25.5-96.5q0-41 17.5-79.5l-33.5,0 l0-80 l-31,0 l-17-17.5l0-30.5 l-30.5,0 l-1.5-1.5l0-30.5 l-28.5,0 q-4-8 -3-16.5l-1,0 l0-64 l 64,0 l0,1 q 14-1.5 23.5,7.5l 142,142.5q 42.5-22.5 90.5-22.5q 52.5,0 96.5,25.5t 69.75,69.75t 25.75,96.5t-25.75,96.25t-69.75,69.75t-96.25,25.75zM 49,16.5l-16.5,16.5\nl 159.5,159.5l 16.5-16.5zM 352,288q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"hotlinkprotection\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502,374q-9.5,9.5 -22.5,10t-22-8.5l-60.5-60.5l-19,19q-17.5,17.5 -42.25,17.5t-42.25-17.5l-34.5-34.5l-54,53.5l 6.5,6.5q 12.5,12 12.5,29.25t-12.5,29.75l-81,81.5q-12.5,12 -29.75,12t-29.25-12l-59.5-59q-12-12.5 -12-29.75t 12-29.75l 81.5-81q 12.5-12.5 29.75-12.5t 29.25,12.5l 7,6.5l 53.5-53.5l-36-36\nq-17.5-17.5 -17.5-42t 17.5-42l 19.5-19.5l-60-59.5q-8.5-9 -8.25-22t 9.75-22.5t 22.5-10t 22,8.5l 60,59.5l 19-19q 17.5-17.5 42.25-17.5t 42.25,17.5l 116.5,116.5q 17.5,17.5 17.5,42.25t-17.5,41.75l-19.5,19.5l 60.5,60.5q 9,9 8.5,22t-10,22.5zM 150,362q-9.5-9.5 -22.5-9.75t-22,8.25l-32.5,33q-9,9 -8.5,22t 10,22.5\nt 22.5,9.75t 21.5-8.25l 33-33q 9-9 8.5-22t-10-22.5zM 406,184l-79-79q-9.5-9.5 -23.25-9.5t-23.75,9.5l-0.5,1q 8.5,8.5 8.25,21.5t-9.75,22.5t-22.5,10t-21.5-8.5l-0.5,0.5q-10,9.5 -10,23.25t 10,23.75l 17,17l 15-15.5q 9-9 22-8.5t 22.5,10t 10,22.5t-8.5,22l-15,15.5l 16,16q 9.5,9.5 23.25,9.5t 23.25-9.5\nl 1-1q-8-9 -7.5-21.5t 9.75-21.5t 21.75-9.75t 21.5,7.25l 0.5-0.5q 9.5-10 9.5-23.5t-9.5-23.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sslmanager\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -96.25-25.75t-70-70t-25.75-96.25q0-58 32-106l0-54 q0-43.5 21.5-80.25t 58.25-58.25t 80.25-21.5t 80.25,21.5t 58.25,58.25t 21.5,80.25l0,54 q 32,48 32,106q0,52 -25.75,96.25t-70,70t-96.25,25.75zM 256,64q-38,0 -65.5,26t-30,63.5q 44.5-25.5 95.5-25.5t 95.5,25.5\nq-2.5-37.5 -30-63.5t-65.5-26zM 256,192q-53,0 -90.5,37.5t-37.5,90.5t 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5t-37.5-90.5t-90.5-37.5zM 256,384q-26.5,0 -45.25-18.75t-18.75-45.25q0-32 26-51l 38-76.5l 38,76.5q 26,19 26,51q0,26.5 -18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ssh\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,432l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 368,368l-16,0 l0,16 q0,6 -3.75,10.25t-9.25,5.25q-1,0.5 -3,0.5l-16,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-48 l-16,0 q-2,0 -3-0.5\nq-5.5-1 -9.25-5.25t-3.75-10.25l0-16 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 l0,16 l 64,0 l0-96 l-80,0 q-2,0 -3-0.5q-5.5-1 -9.25-5.25t-3.75-10.25l0-16 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 l0-16 q0-6 3.75-10.25\nt 9.25-5.25q 1-0.5 3-0.5l 16,0 l0-48 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,48 l 16,0 q 2,0 3,0.5q 5.5,1 9.25,5.25t 3.75,10.25l0,16 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 l0-16 l-64,0 l0,96 l 80,0 q 2,0 3,0.5\nq 5.5,1 9.25,5.25t 3.75,10.25l0,16 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75zM 144,304l-16,0 l0,16 q0,6 -3.75,10.25t-9.25,5.25q-1,0.5 -3,0.5l-16,0 l0,16 q0,6 -3.75,10.25t-9.25,5.25q-1,0.5 -3,0.5l-16,0 l0,16 q0,5.5 -3.75,10t-9.25,5.5q-1,0.5 -3,0.5l-32,0 \nq-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 16,0 l0-16 q0-6 3.75-10.25t 9.25-5.25q 1-0.5 3-0.5l 16,0 l0-16 q0-6 3.75-10.25t 9.25-5.25q 1-0.5 3-0.5l 16,0 l0-32 l-16,0 q-2,0 -3-0.5q-5.5-1 -9.25-5.25t-3.75-10.25l0-16 l-16,0 q-2,0 -3-0.5q-5.5-1 -9.25-5.25t-3.75-10.25l0-16 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25\nt 11.25-4.75l 32,0 q 2,0 3,0.5q 5.5,1 9.25,5.25t 3.75,10.25l0,16 l 16,0 q 2,0 3,0.5q 5.5,1 9.25,5.25t 3.75,10.25l0,16 l 16,0 q 2,0 3,0.5q 5.5,1 9.25,5.25t 3.75,10.25l0,16 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"protecteddirectory\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,480l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-13 9.25-22.5t 22.75-9.5l 240,0 q0-3.5 5.75-14t 11.25-19.5l 6-8.5q 3.5-9.5 14-15.75t 22-6.25l 120,0 q 12,0 22.5,6.25t 14,15.75q 24.5,32 24.5,42l0,288 q0,26.5 -18.75,45.25t-45.25,18.75zM 320,256q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75\nt-18.75,45.25q0,19.5 11.25,35.75t 29.25,23.25l-40.5,101l 128,0 l-40.5-101q 18-7 29.25-23.25t 11.25-35.75zM 23,54q 3.5-9.5 14-15.75t 22-6.25l 120,0 q 12,0 22.5,6.25t 14.5,15.75l 24,42l-240,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"awstats\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.25t-9.5-22.75t 9.5-22.75t 22.5-9.25l 1,0 l 447,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5zM 464,416l-432,0 l 88-165q 2.5-4.5 8-6.25t 10.5,0.25l0-0.5 q-2-1.5 -1.5-1.5q 1,0 4.5,3q 4,3 5.5,7.5l 17.5,17.5l 92.5-131.5q 1-4.5 3.5-7q 4.5-4.5 11.5-4.5q 6.5,0 11.5,4.5q0,0.5 0.5,1.25l 0.5,0.75l 44.5,36l 120-159.5\nq 4-11 15-11l 0.5,0 q 6.5,0 11,4.5t 4.5,11l0,0.5 l0,384 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"taskmanager\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 64,416q0,13.5 9.5,22.75t 22.5,9.25l 320,0 q 13,0 22.5-9.25t 9.5-22.75l0-96 l-80,0 q-8.5,0 -13-7.5l-67-67l0,122.5 l0,0.5 q0,6.5 -4.5,11t-11,4.5\nl-0.5,0 q-11,0 -15-11l-82.5-109.5l-49.5,49q-4.5,7.5 -13,7.5l-48,0 l0,96 zM 416,64l-320,0 q-13,0 -22.5,9.5t-9.5,22.5l0,192 l 42.5,0 l 56-56q 1-2.5 2-3.5q 4.5-4.5 11.5-4.5t 11.5,4.5q 2.5,2.5 3.5,6.5l 65,86.5l0-113.5 l0-0.5 q0-6.5 4.5-11t 11-4.5l 0.5,0 q 8.5,0 13,7.5l 88.5,88.5l 74.5,0 l0-192 q0-13 -9.5-22.5t-22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"error\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 256,416q 13.5,0 22.75-9.25t 9.25-22.5t-9.5-22.75t-22.5-9.5t-22.5,9.5t-9.5,22.75t 9.25,22.5t 22.75,9.25zM 256,96\nq-26.5,0 -45.25,18.75t-18.75,45.25l 32,128q0,13.5 9.5,22.75t 22.5,9.25t 22.5-9.25t 9.5-22.75l 32-128q0-26.5 -18.75-45.25t-45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"emailforward2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 508.5,367l-175-174.5l 175-175q 3.5,7.5 3.5,15l0,320 q0,7.5 -3.5,14.5zM 31.5,0.5l 0.5,0 l 448,0 l 0.5,0 l-224.5,224.5zM 3.5,367q-3.5-7 -3.5-14.5l0-320 q0-7.5 3.5-15l 175,175zM 236.5,250.5q 3,3 7.75,4.5t 8.25,1.5l 3.5,0 q 13,0.5 19.5-6l 35.5-35.5l 169.5,169.5l-0.5,0 l0,1 t 0.25,2t-0.25,3t-1.25,3.75t-2.25,4.25t-4,5l-121.5,104\nq-4,3.5 -14.25,4.25t-21-1.75t-19.25-9.25t-8.5-16.25l0-36 l-96,0 q-13,0 -22.5-9.5t-9.5-22.5l0-32 l-128,0 l-0.5,0 l 169.5-169.5zM 224,416.5l 96,0 l0,40.5 q 13,12.5 21.5,4l 74.5-64.5q 5-5 5-12t-5-12l-74.5-64.5q-8.5-8.5 -21.5,4l0,40.5 l-96,0 q-13.5,0 -22.75,9.25t-9.25,22.5t 9.5,22.75t 22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"spam2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 362,512l-212,0 l-150-150l0-212 l 150-150l 212,0 l 150,150l0,212 zM 288,80q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,224 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-224 zM 288,400q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 \nq0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"spam\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-8.5t-93.25-23.25t-34.25-32.25l0-331.5 q 36.5,19.5 105,31.5t 151,12t 151-12t 105-31.5l0,331.5 q0,17.5 -34.25,32.25t-93.25,23.25t-128.5,8.5zM 448,193q-30,14 -81,22.5t-111,8.5t-111-8.5t-81-22.5l0,207 q0,20 56.25,34t 135.75,14t 135.75-14t 56.25-34l0-207 zM 288,416l-64,0 \nq-10.5,0 -19-6.25t-11.5-16.25q 4.5-9.5 14.5-9.5l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-48 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 10.5,0 19,6.25t 11.5,16.25q-4.5,9.5 -14.5,9.5l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25,4.75\nt 4.75,11.25l0,48 q0,13.5 -9.25,22.75t-22.75,9.25zM 256,128q-69.5,0 -128.5-8.5t-93.25-23.25t-34.25-32.25t 34.25-32.25t 93.25-23.25t 128.5-8.5t 128.5,8.5t 93.25,23.25t 34.25,32.25t-34.25,32.25t-93.25,23.25t-128.5,8.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"boxtrapper\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-288,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 288,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 416,224q0-13 -9.5-22.5t-22.5-9.5l-64,0 l0-112 q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,112 l-64,0 \nq-13.5,0 -22.75,9.5t-9.25,22.5l0,192 q0,13.5 9.25,22.75t 22.75,9.25l 96,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-16 l 96,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-192 zM 368,416l-80,0 l0-160 l 96,0 l0,144 q0,6.5 -4.75,11.25t-11.25,4.75zM 256,416l-80,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-144 l 96,0 \nl0,160 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"webmail\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 333.5,256l 138-138q 40.5,63.5 40.5,138t-40.5,138zM 59.5,92q 36-43 87.25-67.5t 109.25-24.5t 109.25,24.5t 87.25,67.5l-196.5,196.5zM 40.5,394q-40.5-63.5 -40.5-138t 40.5-138l 138,138zM 201,278.5l 35.5,36q 3,2.5 7.75,4t 8.25,1.5l 3.5,0 q 13,0.5 19.5-5.5l 35.5-36l 141.5,141.5q-36,43 -87.25,67.5t-109.25,24.5\nt-109.25-24.5t-87.25-67.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"mailbox\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,128l0,352 q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l0-32 l-32,0 l0,32 q0,13 -9.25,22.5t-22.75,9.5l-320,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-288 q0-52 25.75-96.25t 70-70t 96.25-25.75t 96.25,25.75t 70,70t 25.75,96.25l0,192 l 32,0 l0-352 q0-13.5 9.5-22.75t 22.5-9.25l 32,0 q 13.5,0 22.75,9.25\nt 9.25,22.75l0,64 q0,13 -9.25,22.5t-22.75,9.5zM 320,192q0-53 -37.5-90.5t-90.5-37.5t-90.5,37.5t-37.5,90.5l0,240 q0,6.5 4.75,11.25t 11.25,4.75l 224,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-240 zM 256,384l-128,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 128,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5\nz\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"shortcut\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,96q0-13 -9.5-22.5t-22.5-9.5l-224,0 q-8,0 -16,4t-12,8l-4,4l 71.5,72q-32,17.5 -61.25,42t-53.5,54.25t-38.5,65.25\nt-14.25,70.5q0,3.5 -0.25,10.25t-0.25,12t 0.5,9.75q0,13.5 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75q 9.5-42.5 42.5-74t 79.5-48.25t 103-20.75l 79,79q 0.5,0 4.25-4t 7.75-12t 4-16l0-224 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lang\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448.5,256q0-52 -25.75-96.25t-70-70t-96.25-25.75q-48.5,0 -90,22.5t-68,61l 30,30q 0.5,15 -9,14.5l-101-1q-6,0 -11.75-5.75t-5.75-11.25l-0.5-101q-0.5-9.5 14-9l 38,37.5q 35.5-47 89-74.25t 115-27.25q 52,0 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5l-64,0 zM 192.5,368\nq0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-176 q0-26.5 18.75-45.25t 45.25-18.75l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,176 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-72 q0-3.5 -2.5-5.75t-5.5-2.25l-112,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,72 zM 200.5,256l 112,0 q 3,0 5.5-2.25t 2.5-5.75\nl0-56 q0-13.5 -9.5-22.75t-22.5-9.25l-64,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,56 q0,3.5 2.25,5.75t 5.75,2.25zM 256.5,448q 48.5,0 90-22.5t 68-61l-30-30q-0.5-15 9-14.5l 101,1q 6,0 11.75,5.75t 5.75,11.25l 0.5,100.5q 0.5,10 -14,9.5l-38-37.5q-35.5,47 -89,74.25t-115,27.25q-52,0 -99.5-20.25\nt-81.75-54.5t-54.5-81.75t-20.25-99.5l 64,0 q0,52 25.75,96.25t 70,70t 96.25,25.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"theme\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-332 l0-52 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,135.5 l0,248.5 q0,26.5 -18.75,45.25t-45.25,18.75zM 480,88q0-23 -16.5-39.5t-39.5-16.5l-336,0 q-23,0 -39.5,16.5t-16.5,39.5l0,79 l 0.25,0.25l 0.75,0.75q-1,4.5 -1,8q0,20 14,34\nt 34,14q 48,0 48-49q-0.5-20 -14.5-33.5q-1.5-8 -1.5-13.5q0-10.5 15.25-21.25t 32.75-10.75q 18,0 33,10.25t 15,21.75q0,6.5 -1,13.5q-15,14 -15,34.5q0,20 14,34t 34,14q 15,0 27-8.25t 17.5-21.75q 19,5 34.5,24.5t 24.5,44.5q-10.5,6.5 -17,17.25t-6.5,23.75q0,20 14,34t 34,14t 34-14t 14-34\nq0-13 -6.25-23.75t-17.25-17.25q 12.5-30 37-50.5t 50.5-20.5l0-104 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"contact\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-320 q0-13 9.5-22.5t 22.5-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.5l0,320 q0,13.5 -9.5,22.75t-22.5,9.25zM 176,307l0-8.5 q 48-19 48-106.5q0-31.5 -22.25-47.75t-57.75-16.25t-57.75,16.25t-22.25,47.75q0,85 48,106l0,9 q-35,6 -57.25,22.5t-22.75,37.5q0,6 10.75,9.75\nt 31.5,5.25t 34.25,1.75t 35.5,0.25t 35.5-0.25t 34.25-1.75t 31.5-5.25t 10.75-9.75q-0.5-21 -23-37.5t-57-22.5zM 464,128l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 320,240q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25\nt-4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25zM 464,320l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"password2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,513l-352,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-320 q0-26.5 18.75-45.25t 45.25-18.75l 352,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,320 q0,26.5 -18.75,45.25t-45.25,18.75zM 480,385l0-32 l0-96 l0-32 l0-64 q0-13 -9.25-22.5t-22.75-9.5l-352,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,64 l0,32 l0,96 l0,32 l0,32 q0,13 9.25,22.5\nt 22.75,9.5l 352,0 q 13.5,0 22.75-9.5t 9.25-22.5l0-32 zM 432,417l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l 64,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75zM 384,257l 64,0 l0,96 l-64,0 l0-96 zM 384,177q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,48 l-64,0 l0-48 zM 288,353l0-96 l 64,0 l0,96 l-64,0 zM 288,177\nq0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 7,0 11.5,4.75t 4.5,11.25l0,48 l-64,0 l0-48 zM 192,353l0-96 l 64,0 l0,96 l-64,0 zM 192,177q0-6.5 4.5-11.25t 11.5-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,48 l-64,0 l0-48 zM 96,353l0-96 l 64,0 l0,96 l-64,0 zM 96,177q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,48 l-64,0 l0-48 z\nM 160,401q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l 64,0 l0,16 zM 256,385l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-7,0 -11.5-4.75t-4.5-11.25l0-16 l 64,0 zM 352,385l0,16 q0,6.5 -4.5,11.25t-11.5,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l 64,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"password\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-160 q0-13.5 9.5-22.75t 22.5-9.25l 448,0 q 13,0 22.5,9.25t 9.5,22.75l0,160 q0,13 -9.5,22.5t-22.5,9.5zM 480,336q0-6.5 -4.75-11.25t-11.25-4.75l-416,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,128 q0,6.5 4.75,11.25t 11.25,4.75l 416,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-128 zM 384,448\nq-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25t 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 288.25,448q-13.25,0 -22.75-9.5t-9.5-22.75t 9.5-22.5t 22.75-9.25t 22.5,9.25t 9.25,22.5t-9.25,22.75t-22.5,9.5zM 192,448q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25t 22.75,9.25t 9.25,22.5\nt-9.25,22.75t-22.75,9.5zM 96,448q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25t 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 480,224l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-160 q0-13.5 9.5-22.75t 22.5-9.25l 448,0 q 13,0 22.5,9.25t 9.5,22.75l0,160 q0,13 -9.5,22.5t-22.5,9.5zM 480,48q0-6.5 -4.75-11.25\nt-11.25-4.75l-416,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,128 q0,6.5 4.75,11.25t 11.25,4.75l 416,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-128 zM 80,160q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"video2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l0-32 l-320,0 l0,32 l-96,0 l0-480 l 96,0 l0,32 l 320,0 l0-32 l 96,0 l0,480 l-96,0 zM 64,64l-32,0 l0,32 l 32,0 l0-32 zM 64,128l-32,0 l0,32 l 32,0 l0-32 zM 64,192l-32,0 l0,32 l 32,0 l0-32 zM 64,256l-32,0 l0,32 l 32,0 l0-32 zM 64,320l-32,0 l0,32 l 32,0 l0-32 zM 64,384l-32,0 l0,32 l 32,0 l0-32 zM 64,448l-32,0 l0,32 l 32,0 l0-32 zM 416,96l-320,0 l0,352 l 320,0 l0-352 z\nM 480,64l-32,0 l0,32 l 32,0 l0-32 zM 480,128l-32,0 l0,32 l 32,0 l0-32 zM 480,192l-32,0 l0,32 l 32,0 l0-32 zM 480,256l-32,0 l0,32 l 32,0 l0-32 zM 480,320l-32,0 l0,32 l 32,0 l0-32 zM 480,384l-32,0 l0,32 l 32,0 l0-32 zM 480,448l-32,0 l0,32 l 32,0 l0-32 zM 192,352l0-160 l 128,80z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"wizard\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.5,502q-9.5,9.5 -22.5,10t-22-8.5l-321-321.5q-9-9 -8.5-22t 10-22.5t 22.5-10t 22,8.5l 321,321.5q 9,9 8.5,22t-10,22.5zM 472.5,127.5l-40-23l-39.5,23l 8.5-46.5l-33-32.5l 45-6l 19-43l 19.5,43l 45,6l-33,32.5zM 73.5,119l-64.5-65q-9-9 -8.5-22t 10-22.5t 22.5-10t 22,8.5l 64.5,65q 9,9 8.5,22\nt-10,22.5t-22.5,10t-22-8.5zM 61,234.5l 19.5-43l 19,43l 45,6l-33,32.5l 8.5,47l-39.5-23l-40,23l 8.5-47l-32.5-32.5zM 189,427l 19.5-43l 19,43l 45,5.5l-33,33l 8.5,46.5l-39.5-23l-39.5,23l 8.5-46.5l-33-33z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"socialnetworking\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 352,512q-43.5,0 -80.5-17.25t-58.25-46.75t-21.25-64.25t 21.25-64.25t 58.25-46.5t 80.5-17q 18,0 36.5,3.5q 10.5-17 25.25-34t 24.75-25l 9.5-8.5l0,89.5 q 29.5,18 46.75,44.75t 17.25,57.75q0,34.5 -21.5,64t-58.25,46.75t-80.25,17.25zM 336,224q-66.5,0 -107,26t-57.5,69.5q-22-2 -44-9\nq-10.5,18.5 -26.5,37t-26.5,27.5l-10.5,9l0-104.5 q-30-22.5 -47-53.5t-17-66q0-43.5 25.75-80.25t 70-58.25t 96.5-21.5t 96.5,21.5t 69.75,58.25t 25.5,80.25q0,34 -16,64.5q-15-0.5 -32-0.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"resellerhosting\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75l 160,0 l0-19 q-42-8 -69-34t-27-59l0,0 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5t 8.75,24t 23.25,17.5l0-92.5 q-42-8 -69-34t-27-59t 27-59t 69-34l0-3 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,3 q 42,8 69,34t 27,59l0,0 \nl0,0 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.5t-9.25-22.5t-8.75-24t-23.25-17.5l0,92.5 q 42,8 69,34t 27,59t-27,59t-69,34l0,19 l 160,0 q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 224,86.5q-14.5,6.5 -23.25,17.5t-8.75,24t 8.75,24t 23.25,17.5l0-83 zM 95.75,416\nq-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 320,272q0-13 -8.75-24t-23.25-17.5l0,83 q 14.5-6.5 23.25-17.5t 8.75-24zM 416,416l-192,0 q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25l 192,0 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"greenhosting\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 162,225q 27.5,15.5 78,38.25t 93.25,44t 70.25,41.25q 79.5,58.5 108.5,99.5l-64,64q-32-64 -69-108q-93,76.5 -197,19q-38.5-21 -67.5-45.75t-48.25-47t-32.25-56t-19.75-57.25t-10-67.25t-3.75-69.75t-0.5-80q 23,25.5 54.5,40.5t 64,20.25t 67.75,8t 69.5,8t 65.75,16t 60,36.25\nt 49,64.5q 17.5,34.5 17.5,78.5q0,28.5 -9.5,54q-40-24 -105.25-56t-120.5-60t-84.75-50q-27-20 -54-55.5q-7.5-9.5 -9-6q-1,3.5 -1,29.5q0,15.5 25.5,39.5t 72.5,57.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"managedhosting\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 95.75,416q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 416,416l-192,0 q-13.5,0 -22.75,9.5t-9.25,22.75\nt 9.25,22.5t 22.75,9.25l 192,0 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5zM 400,224l-20,0 q-4.5,17.5 -14.5,34l 9.5,9.5q 9,9 9,21.75t-9,21.75t-21.75,9t-21.75-9l-9.5-10q-16.5,10 -34,14.5l0,20.5 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-20.5 q-17.5-4.5 -34-14.5l-10,10\nq-9,9 -21.75,9t-21.75-9t-9-21.75t 9-21.75l 10-10q-10-16 -14.5-33.5l-20,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 20,0 q 4.5-17.5 14.5-34l-10-10q-9-9 -9-21.75t 9-21.75t 21.75-9t 21.75,9l 10,10.5q 16.5-10 34-14.5l0-20.5 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,20.5 q 17.5,4.5 33.5,14l 10-10\nq 9-9 21.75-9t 21.75,9t 9,21.75t-9,21.75l-10,9.5q 10.5,17 15,34.5l 20,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.5,22.5t-22.5,9.25zM 256,128q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sharedhosting\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,320q 26.5,0 45.25,18.75t 18.75,45.25l0,64 q0,26.5 -18.75,45.25t-45.25,18.75l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-64 q0-26.5 18.75-45.25t 45.25-18.75l 160,0 l0-64 l-160,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-64 q0-26.5 18.75-45.25t 45.25-18.75l 160,0 l0-32 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25\nt 9.5,22.75l0,32 l 160,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 q0,26.5 -18.75,45.25t-45.25,18.75l-160,0 l0,64 l 160,0 zM 95.75,384q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 95.75,128q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25\nt 9.5-22.5t-9.5-22.75t-22.75-9.5zM 416,192q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5l-192,0 q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25l 192,0 zM 224,384q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25l 192,0 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5l-192,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cms\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,384l0-64 q0-7 -4.75-11.5t-11.25-4.5l-47,0 q-4.5-8.5 -10-16.5l 23-40q 3-5.5 1.5-12t-7.5-10l-82-48q-6-3 -12.25-1.25t-9.75,7.25l-23,41q-1,0 -4-0.25t-4.75-0.25t-5,0.25t-4.25,0.25l-23-41q-3.5-5.5 -9.75-7.25t-12.25,1.25l-82,48q-6,3.5 -7.5,10t 1.5,12l 23,40q-5.5,8 -9.5,16.5l-47.5,0 \nq-6.5,0 -11.25,4.5t-4.75,11.5l0,64 q-26.5,0 -45.25-18.75t-18.75-45.25l0-192 q0-13.5 9.25-22.75t 22.75-9.25l 240,0 l 23-42.5q 3.5-9 14-15.25t 22-6.25l 120,0 q 12,0 22.5,6.25t 14,15.25l 24.5,42.5l0,224 q0,26.5 -18.75,45.25t-45.25,18.75zM 23,21.5q 3.5-9 14-15.25t 22-6.25l 120,0 q 12,0 22.5,6.25t 14.5,15.25l 24,42.5l-240,0 \nzM 112,336l 54,0 q 6-17.5 19-32l-23-41.5q-3.5-5.5 -1.75-11.75t 7.25-9.75l 26-15.5q 5.5-3 11.5-1.25t 9,7.25l 24,42q 10-1.5 18-1.5q 8.5,0 18,1.5l 24-42q 3-5.5 9-7.25t 11.5,1.25l 26.5,15.5q 5,3.5 6.75,9.75t-1.25,11.75l-23.5,41.5q 13,14.5 19,32l 54,0 q 6.5,0 11.25,4.5t 4.75,11.5l0,32 q0,6.5 -4.75,11.25t-11.25,4.75\nl-54,0 q-6,17 -19,31.5l 23.5,41.5q 3,6 1.25,12t-6.75,9.5l-26.5,15.5q-5.5,3 -11.5,1.5t-9-7.5l-24-42q-9.5,2 -17.75,2t-18.25-2l-24,42q-3,6 -9,7.5t-11.5-1.5l-26-15.5q-5.5-3.5 -7.25-9.5t 1.75-12l 23-41.5q-13-14.5 -19-31.5l-54,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-7 4.75-11.5t 11.25-4.5zM 256.25,400\nq 13.25,0 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25t-22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"shoppingcart\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 484.5,64l-38,0 l-61,297.5q-2.5,9.5 -10.75,16t-17.25,6.5l-273.5,0 q-9.5,0 -17.75-6.5t-10.75-16l-49-188.5q-5-18 1.5-31.5t 20-13.5l 354.5-61.5l 9-44.5q 2.5-9 10.75-15.5t 17.25-6.5l 65,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.5,22.75t-22.5,9.5zM 148.5,416q 20,0 34,14t 14,34t-14,34t-34,14t-34-14t-14-34t 14-34\nt 34-14zM 308.5,416q 20,0 34,14t 14,34t-14,34t-34,14t-34-14t-14-34t 14-34t 34-14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"websitebuilder\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,128q-1.5,52 -38.75,90t-89.25,38q-14.5,0 -30-4q 4,15.5 16.75,25.75t 29.25,10.25l 48,48l 41,42.5q 23,23 23,55.25t-23,55t-55.25,22.75t-55.25-22.5l-42.5-41l-48-48q0-20 -14-34t-34-14l-3.5-3.5l0-0.5 l-123.5,159.5q-5,4.5 -43.25,4.5t-42.75-4.5l-22.5-22q-4.5-5 -4.5-43.25t 4.5-43.25\nl 210-162.5l-108-108.5l-58.5,0 l-48-96l 32-32l 96,48l0,58 l 111,111.5l 33-25.5q0-0.5 0.5-0.5l 0.5,0 q-17-30 -17-63.5q0-52 37.75-89.5t 90.25-38.5l0,0 l0,19 l-41,39q-23,23 -23,55.25t 23,55.25t 55.5,23t 55.5-23l 38.5-40.5l 19.5,0 l0,0 zM 64,416q-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75t 22.75,9.5t 22.75-9.5\nt 9.25-22.75t-9.25-22.5t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"webpage\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-256,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-256 q0-13.5 9.25-22.75t 22.75-9.25l 256,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,256 q0,13.5 -9.25,22.75t-22.75,9.25zM 448,272q0-6.5 -4.75-11.25t-11.25-4.75l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,160 q0,6.5 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-160 zM 480,160l-256,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-96 q0-13 9.25-22.5t 22.75-9.5l 256,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,96 q0,13.5 -9.25,22.75t-22.75,9.25zM 128,512l-96,0 q-13,0 -22.5-9.5t-9.5-22.5l0-448 q0-13 9.5-22.5t 22.5-9.5l 96,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,448 q0,13.5 -9.25,22.75t-22.75,9.25z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"price\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 503,340.5l-162.5,162.5q-9,9 -22.25,9t-22.25-9l-287-287q-9-9 -9-39.5l0-144 q0-13.5 9.5-22.75t 22.5-9.25l 144,0 q 31,0 40,9l 287,286.5q 9,9.5 9,22.5t-9,22zM 128,64q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"webhostinghub\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,416q-21,0 -41-9.5q-52.5,41.5 -119,41.5q-19.5,0 -39-4q-37.5,36 -89,36q-53,0 -90.5-37.5t-37.5-90.5q0-35 17.5-64.75t 47.5-46.25q 3.5-49 29.75-89.5t 69-64t 92.25-23.5q 72,0 126,47.5t 64,117.5q 29,10 47.5,34.75t 18.5,56.25q0,40 -28,68t-68,28zM 256,96q-58.5,0 -102.75,37.5\nt-54.75,94q 15-3.5 29.5-3.5q 53,0 90.5,37.5t 37.5,90.5q0,33.5 -16.5,63q 8.5,1 16.5,1q 50.5,0 91.5-29q-27.5-28 -27.5-67t 27-66.75t 66-28.75q-11.5-55.5 -55.5-92t-101.5-36.5zM 272,224q-20,0 -34-14t-14-34t 14-34t 34-14t 34,14t 14,34t-14,34t-34,14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uni0430\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507,483l-23.5,24q-5,4.5 -12,4.5t-12-4.5l-75.5-76q-30,17 -64,17q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5q0,34 -17,63.5l 76,76q 5,5 5,11.75t-5,11.75zM 320.25,224q-39.75,0 -68,28t-28.25,67.75t 28.25,68t 68,28.25t 67.75-28.25t 28-68\nt-28-67.75t-67.75-28zM 352,163l0-3 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13.5,0 23,9.25t 9.5,22.75l0,160 l-0.5,0 q0-57.5 -36.25-101.75t-91.75-55.25zM 192,224l0-128 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q-38.5,0 -72,17.25t-56,46.75zM 192,415.5q 22.5,30 56,47.25t 72,17.25\nl 32,0 q0,13 -9.25,22.5t-22.75,9.5l-288,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.25-22.5t 22.75-9.25l0-416.5 q0-13 9.5-22.5t 22.5-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,288 l0,0.5 l0,128 l 32,0 l0-32.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"barchart\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,479.75q0,13.25 -9.5,22.75t-22.5,9.5l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.75t 9.25-22.75t 22.75-9.25l0-160 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13,0 22.5,9.25t 9.5,22.75l0,160 l 32,0 l0-416 q0-13.5 9.25-22.75t 22.75-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,416 l 32,0 l0-288 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 \nq 13.5,0 22.75,9.25t 9.25,22.75l0,288 q 13.5,0 22.75,9.25t 9.25,22.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"security2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-42-21 -76-44.5t-59.5-45t-44.75-51t-32-51.25t-21.25-57.25t-13-58.25t-6.75-65.25t-2.5-66.5t-0.25-73q0,13 37.5,22.5t 90.5,9.5t 90.5-9.5t 37.5-22.5q0,13 37.5,22.5t 90.5,9.5t 90.5-9.5t 37.5-22.5q0,49 -0.25,73t-2.5,66.5t-6.75,65.25t-13,58.25t-21.25,57.25t-32,51.25t-44.75,51\nt-59.5,45t-76,44.5zM 256,64l0,0 q0,13 -28.25,22.5t-67.75,9.5q-27,0 -53.5-4.5t-42.5-12q0,39.5 1,63.5t 4.75,57.25t 11.25,54.75t 21.5,48.5t 34.25,47t 50.25,41.5t 69,40l0-368 l0,0 zM 256,0l0,0 l0,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"security\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-38-19 -69.25-38t-55.75-40.25t-43.25-39t-32.5-43t-23.25-43t-15.5-48.5t-9.5-49.5t-5-55.75t-1.75-58t-0.25-65q 122-32 256-32q 133.5,0 256,32q0,44 -0.25,65.25t-1.75,58t-5,55.75t-9.5,49.5t-15.5,48.25t-23.25,43t-32.5,43t-43.25,39t-55.75,40.25t-69.25,38zM 64,87\nq0,44.5 0.5,65.75t 4,56.25t 10.75,53.5t 20.75,45t 34,44.75t 51,39.25t 71,40.5q 40.5-19.5 71-40.5t 51-39.25t 34-44.75t 20.75-45t 10.75-53.5t 4-56.25t 0.5-65.75q-91.5-23 -192-23t-192,23z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ram\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,384l-352,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-128 q0-26.5 18.75-45.25t 45.25-18.75l 352,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,128 q0,26.5 -18.75,45.25t-45.25,18.75zM 160,208q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75\nt 4.75-11.25l0-16 l 32,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-16 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 16,0 l0-48 zM 288,208q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-16 l 32,0 l0,16 \nq0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-96 zM 480,208q0-6.5 -4.75-11.25t-11.25-4.75l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-80 l 32,0 l0,80 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-80 l 32,0 l0,80 q0,6.5 4.75,11.25\nt 11.25,4.75t 11.25-4.75t 4.75-11.25l0-96 zM 224,224l 32,0 l0,32 l-32,0 l0-32 zM 96,224l 32,0 l0,32 l-32,0 l0-32 zM 416,16q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,80 l-32,0 l0-80 zM 352,16q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,80 l-32,0 l0-80 zM 288,16q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75\nt 4.75,11.25l0,80 l-32,0 l0-80 zM 224,16q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,80 l-32,0 l0-80 zM 160,16q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,80 l-32,0 l0-80 zM 96,16q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,80 l-32,0 l0-80 zM 128,496q0,6.5 -4.75,11.25t-11.25,4.75\nt-11.25-4.75t-4.75-11.25l0-80 l 32,0 l0,80 zM 192,496q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-80 l 32,0 l0,80 zM 256,496q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-80 l 32,0 l0,80 zM 320,496q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-80 l 32,0 l0,80 zM 384,496\nq0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-80 l 32,0 l0,80 zM 448,496q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-80 l 32,0 l0,80 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"home2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.25,277.75q-9.75,9.75 -23.5,9.75t-23.25-9.5l-7.5-7.5l0,209.5 q0,13 -9.25,22.5t-22.75,9.5l-320,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-209.5 l-7.5,7.5q-9.5,9.5 -23.25,9.5t-23.5-9.75t-9.75-23.5t 9.5-23.25l 222-222q 8-8 19.25-9.25t 20.75,4.75q 4,0 9,4.5l 222,222q 9.5,9.5 9.5,23.25t-9.75,23.5z\nM 384,206.5l-128-128l-128,128l0,241.5 l 256,0 l0-241.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"hdd\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 320,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 416,368q0-16 -9.5-28.5t-24.5-17q 34-43.5 34-98.5q0-43.5 -21.5-80.25t-58.25-58.25t-80.25-21.5t-80.25,21.5t-58.25,58.25t-21.5,80.25\nq0,55 34,98.5q-15,4.5 -24.5,17t-9.5,28.5l0,32 q0,20 14,34t 34,14l 224,0 q 20,0 34-14t 14-34l0-32 zM 256,288q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ftp\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,384l-160,0 l0,64 l 64,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-192,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.5-22.75t 22.5-9.5l 64,0 l0-64 l-160,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-192 q0-13 9.5-22.5t 22.5-9.5l 240,0 l 23-42q 3.5-9.5 14-15.75t 22-6.25l 120,0 q 12,0 22.5,6.25t 14,15.75l 24.5,42l0,224 \nq0,26.5 -18.75,45.25t-45.25,18.75zM 221,237l-67.5-72.5q-4-4.5 -9.5-4.5t-9.5,4.5l-67.5,72.5q-4,4.5 -2.5,11.75t 5.5,7.25l 26,0 l0,48 q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-48 l 26,0 q 4,0 5.5-7.25t-2.5-11.75zM 442,224l-26,0 l0-48 q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75\nt-4.75,11.25l0,48 l-26,0 q-4,0 -5.5,7.25t 2.5,11.75l 67.5,72.5q 4,4.5 9.5,4.5t 9.5-4.5l 67.5-72.5q 4-4.5 2.5-11.75t-5.5-7.25zM 23,22q 3.5-9.5 14-15.75t 22-6.25l 120,0 q 12,0 22.5,6.25t 14.5,15.75l 24,42l-240,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"email\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,288.5l-224.5-224.5l 0.5,0 l 448,0 l 0.5,0 zM 3.5,430.5q-3.5-7 -3.5-14.5l0-320 q0-7.5 3.5-14.5l 175,174.5zM 236.5,314.5q 3,2.5 7.75,4t 8.25,1.5l 3.5,0 q 13,0.5 19.5-5.5l 35.5-36l 169.5,169.5l-0.5,0 l-448,0 l-0.5,0 l 169.5-169.5zM 508.5,81.5q 3.5,7 3.5,14.5l0,320 q0,7.5 -3.5,14.5l-175-174.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"servers\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-160,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-448 q0-13 9.25-22.5t 22.75-9.5l 160,0 q 13,0 22.5,9.5t 9.5,22.5l0,448 q0,13.5 -9.25,22.75t-22.75,9.25zM 320,416.25q0,13.25 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5t-22.5,9.5t-9.5,22.75zM 480,48q0-6.5 -4.75-11.25t-11.25-4.75l-128,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 480,144q0-6.5 -4.75-11.25t-11.25-4.75l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 480,240q0-6.5 -4.75-11.25t-11.25-4.75l-128,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 192,512l-160,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-448 q0-13 9.25-22.5t 22.75-9.5l 160,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,448 q0,13.5 -9.25,22.75t-22.75,9.25zM 32,416.25q0,13.25 9.25,22.5t 22.75,9.25\nt 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5t-22.75,9.5t-9.5,22.75zM 192,48q0-6.5 -4.75-11.25t-11.25-4.75l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 192,144q0-6.5 -4.75-11.25t-11.25-4.75l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 \nq0,6.5 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 192,240q0-6.5 -4.75-11.25t-11.25-4.75l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"server\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,512l-256,0 q-13,0 -22.5-9.25t-9.5-22.75l0-448 q0-13.5 9.5-22.75t 22.5-9.25l 256,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,448 q0,13.5 -9.25,22.75t-22.75,9.25zM 256.25,448q 13.25,0 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5t-22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25zM 384,48q0-6.5 -4.75-11.25t-11.25-4.75\nl-224,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 224,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 384,144q0-6.5 -4.75-11.25t-11.25-4.75l-224,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 224,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 384,240q0-6.5 -4.75-11.25t-11.25-4.75\nl-224,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 224,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"vps\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,192l-160,0 l0,64 l 192,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-448,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 192,0 l0-64 l-160,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-64 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,64 q0,26.5 -18.75,45.25t-45.25,18.75z\nM 96,64q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.25-22.75t-22.75-9.5zM 416,64l-192,0 q-13,0 -22.5,9.5t-9.5,22.75t 9.5,22.5t 22.5,9.25l 192,0 q 13.5,0 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5zM 256,384q 52,0 96.25,8.5t 70,23.25t 25.75,32.25t-25.75,32.25\nt-70,23.25t-96.25,8.5t-96.25-8.5t-70-23.25t-25.75-32.25t 25.75-32.25t 70-23.25t 96.25-8.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"colocation3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-352 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,352 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,128q0-13 -9.5-22.5t-22.5-9.5l-320,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,32 q0,13.5 9.25,22.75t 22.75,9.25l0-32 q0-13 9.25-22.5t 22.5-9.5\nt 22.75,9.5t 9.5,22.5l0,32 l 256,0 q 13,0 22.5-9.25t 9.5-22.75l0-32 zM 448,256q0-13 -9.5-22.5t-22.5-9.5l-320,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,32 q0,13.5 9.25,22.75t 22.75,9.25l0-32 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,32 l 256,0 q 13,0 22.5-9.25t 9.5-22.75l0-32 zM 448,384q0-13 -9.5-22.5t-22.5-9.5l-320,0 \nq-13.5,0 -22.75,9.25t-9.25,22.75l0,32 q0,13.5 9.25,22.75t 22.75,9.25l0-32 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,32 l 256,0 q 13,0 22.5-9.25t 9.5-22.75l0-32 zM 400,416l-192,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 192,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 400,288\nl-192,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 192,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 400,160l-192,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 192,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"colocation2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 448,96q0-13 -9.5-22.5t-22.5-9.5l-320,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,320 q0,13.5 9.25,22.75t 22.75,9.25l 320,0 q 13,0 22.5-9.25t 9.5-22.75\nl0-320 zM 384,416l-256,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13 9.25-22.5t 22.75-9.5l 256,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.5,22.75t-22.5,9.25zM 159.75,320q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 368,352l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nt 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 384,224l-256,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-64 q0-13 9.25-22.5t 22.75-9.5l 256,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.5,22.75t-22.5,9.25zM 159.75,128q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25\nt 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 368,160l-128,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"link\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 494.5,410l-84.5,84.5q-17,17.5 -41.75,17.5t-42.25-17.5l-84.5-84.5q-16-16 -17-38.75t 13-40.25l 107,107.5q 10,9.5 23.75,9.5t 23.25-9.5l 47-47q 9.5-9.5 9.5-23.25t-9.5-23.75l-107.5-107q 17.5-14 40.25-13t 38.75,17l 84.5,84.5q 17.5,17.5 17.5,42.25t-17.5,41.75zM 170.5,170.5q 9.5-9.5 22.5-10t 22,8.5l 128.5,129\nq 9,8.5 8.5,21.75t-10,22.75t-22.5,9.75t-22-8.25l-128.5-129q-9-9 -8.5-22t 10-22.5zM 167.5,74q-9.5-10 -23.25-10t-23.75,10l-46.5,46.5q-10,10 -10,23.75t 10,23.25l 107,107q-17.5,14 -40.25,13t-38.75-17l-84.5-84.5q-17.5-17.5 -17.5-42.25t 17.5-42.25l 84.5-84q 17-17.5 41.75-17.5t 42.25,17.5l 84.5,84\nq 16,16.5 17,39.25t-13,40.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"firewall\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 478.5,461.5q-19,19 -42,34.75t-36.5,15.75q 18-28.5 19-70.75t-19-57.25q-16-10.5 -26.75-28t-14.75-35.25t-5.75-33.75t-1.25-26l 0.5-10.5q-3,4 -8.5,10.25t-19.25,25t-24.25,36t-19.25,39.25t-8.75,39q0,37 11.25,61.5t 36.75,50.5q-23.5,0 -49.25-9.5t-43.25-28q-10.5-11 -22.5-45t-13-61.5\nq-1.5-33.5 11.25-74.75t 36.75-78.25q 18-26.5 42.5-52t 47-42.5t 42.5-30.5t 32-19.5l 12-6.5q-1.5,2 -3.5,6.25t-6.5,17.25t-6.75,26.5t-1.75,33.5t 6,39.25t 19.25,42.5t 34.75,44.75q 25,25 39.75,54.75t 14.75,57.25q0,17 -8.25,37.75t-25.25,37.75zM 256,96l0-64 q0-13 9.5-22.5t 22.5-9.5l 128,0 q 10.5,0 19.5,7\nq-81.5,46 -158.5,119q-9.5-3.5 -15.25-11.75t-5.75-18.25zM 165,305.5q-5-8 -5-17.5l0-96 q0-13 9.5-22.5t 22.5-9.5l 51,0 q-19.5,20.5 -35,39q-30.5,37 -43,106.5zM 192,128l-160,0 q-13,0 -22.5-9.25t-9.5-22.75l0-64 q0-13 9.5-22.5t 22.5-9.5l 160,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,64 q0,13.5 -9.25,22.75t-22.75,9.25z\nM 32,160l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,96 q0,13.5 -9.25,22.75t-22.75,9.25l-64,0 q-13,0 -22.5-9.25t-9.5-22.75l0-96 q0-13 9.5-22.5t 22.5-9.5zM 32,352l 128,0 q-0.5,11.5 0,20q 1,28 13.25,68t 22.25,50.5q 6.5,7 15.5,15q-8.5,6.5 -19,6.5l-160,0 q-13,0 -22.5-9.25t-9.5-22.75l0-96 q0-13 9.5-22.5t 22.5-9.5z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"amd\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507.5,507.5l-123.5-123.5l0-240 q0-6.5 -4.75-11.25t-11.25-4.75l-240,0 l-123.5-123.5q 5-4.5 11.5-4.5l 480,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,480 q0,6.5 -4.5,11.5zM 128,368q0,6.5 4.75,11.25t 11.25,4.75l 208,0 l-128,128l-208,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-208 l 128-128l0,208 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"intel\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,418l0-83 q 30-24.5 47-57.5t 17-69.5q0-62.5 -45.5-112.25t-114.5-63.75l0-32 q 62.5,7 113.75,38.25t 80.75,80.5t 29.5,105.25q0,61 -34.75,112.5t-93.25,81.5zM 240,384q-20,0 -34-14t-14-34l0-192 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,224 q0,6.5 -4.75,11.25t-11.25,4.75z\nM 240,64l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 32,240q0,56.5 27.75,104.5t 75.75,75.75t 104.5,27.75q 60.5,0 112-33l0,78 q-46.5,19 -96,19q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5\nq0-71 36.25-130.75t 96.25-93.25l 27.5,0 l0,32 q-59.5,24.5 -93.75,69t-34.25,107z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"affiliate\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,239q0,6 -10.75,9.75t-31.5,5.25t-34.25,1.75t-35.5,0.25t-35.5-0.25t-34.25-1.75t-31.5-5.25t-10.75-9.75q 0.5-21 23-37.5t 57-22.5l0-10 q-48-21 -48-105q0-31.5 22.5-47.75t 57.75-16.25t 57.5,16.25t 22.25,47.75q0,86.5 -48,105.5l0,9.5 q 35,6 57.25,22.5t 22.75,37.5zM 112,256q-22,0 -35.5-0.25\nt-34.25-1.75t-31.5-5.25t-10.75-9.75q 0.5-21 22.75-37.5t 57.25-22.5l0-10 q-48-21 -48-105q0-31.5 22.25-47.75t 57.5-16.25t 57.75,16.25t 22.5,47.75q0,86.5 -48,105.5l0,9.5 q 34.5,6 57,22.5t 23,37.5q0,6 -10.75,9.75t-31.5,5.25t-34.25,1.75t-35.5,0.25zM 95.75,288q 13.25,0 22.75,9.25t 9.5,22.75l0,112 \nq0,6.5 4.75,11.25t 11.25,4.75l 224,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-112 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,128 q0,26.5 -18.75,45.25t-45.25,18.75l-256,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-128 q0-13.5 9.25-22.75t 22.5-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"domain3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 429,385.5q 15.5-47 19.5-97l 63.5,0 q-6.5,51 -33,97l-50,0 zM 429,127l 50,0 q 26.5,46 33,97l-63.5,0 q-4-50 -19.5-97zM 375,27.5q 27.5,14.5 51,35l-26,0 q-12-20 -25-35zM 288.5,224l0-97 l 79,0 q 13.5,45.5 16.5,97l-95.5,0 zM 288.5,6.5q 29.5,15 52.5,56l-52.5,0 l0-56 zM 144.5,385.5q-13.5-45.5 -16.5-97l 95.5,0 l0,97 l-79,0 z\nM 144.5,127l 79,0 l0,97 l-95.5,0 q 3-51.5 16.5-97zM 223.5,6.5l0,56 l-52.5,0 q 23-41 52.5-56zM 86,62.5q 23.5-20.5 51-35q-13,15 -25,35l-26,0 zM0,224q 6.5-51 33-97l 50,0 q-15.5,47 -19.5,97l-63.5,0 zM 83,385.5l-50,0 q-26.5-46 -33-97l 63.5,0 q 4,50 19.5,97zM 112,450q 12,20 25,35q-27.5-14.5 -51-35l 26,0 z\nM 223.5,450l0,56 q-29.5-15.5 -52.5-56l 52.5,0 zM 288.5,288.5l 95.5,0 q-3,51.5 -16.5,97l-79,0 l0-97 zM 341,450q-23,40.5 -52.5,56l0-56 l 52.5,0 zM 426,450q-23,20.5 -51,35q 13-15 25-35l 26,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"domain2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 440.5,161q-5-1 -7.5-1q-18.5,0 -32,12.5q-30.5-13.5 -57-22q-43.5-14 -91-23q-4.5-12 -13.5-20q 12.5-59 33.5-107q 63,4.5 115.75,36.5t 85.25,84q-18.5,20 -33.5,40zM 208.5,96q-13,0 -24.5,7q-40.5-30 -81.5-51q 62-47 139-51.5q-19.5,43.5 -31.5,95.5l-1,0 l-0.5,0 zM 35,127q 17-28.5 43-54q 34,17.5 70.5,43\nq-64.5-1.5 -113.5,11zM 160.5,147q 1,15.5 10.75,27.25t 24.25,15.75q-3,35 -3,66.5q0,22 1.5,50.5q-11,3.5 -19.5,12q-27-10.5 -52-24q 5.5-11 5.5-22.5q0-20 -14-34t-34-14q-22,0 -36.5,17q-21-19 -37.5-39.5q 4.5-21.5 13.5-42.5q 61-17 141-12.5zM 32.5,276.5q 1.5,18.5 15.25,31.25t 32.25,12.75q 5.5,0 12-2\nq 32,18.5 68.5,32l0,1 l0,1 q0,19.5 13.25,33.25t 32.75,14.75q 12.5,61 35,111.5q-50-3 -94.5-24.25t-76.75-55.25t-51.25-80t-19-96q0-0.5 0.5-13.5q 14,17.5 32,33.5zM 250.5,375q 36,6.5 72.5,8.5q 3.5,10 11,18.5q-11.5,52.5 -14,102q-25.5,6.5 -47,8q-23.5-53.5 -36.5-121q 9-6 14-16zM 405.5,399\nq 6.5-8 9-17q 36.5-3 70.5-9.5q-24,47 -66,81.5q-4.5-26 -13.5-55zM 324,351.5q-35-2 -69-9q-5.5-25 -28.5-34.5q-2-29.5 -2-51.5q0-33 3-68.5q 1,0 2.5-1t 2-1q 19.5,19 34,35q 43.5,48 74,109q-11,8.5 -16,21.5zM 368.5,416.5q 1,0 5.5-0.5q 8.5,30.5 12.5,60.5q-14.5,8.5 -35,17q 3.5-39 12-77.5q 4,0.5 5,0.5z\nM 366,297q-0.5,1 -1.25,3t-1.25,3q-31.5-57 -74-103.5q-15.5-17.5 -37-38q 0.5,0 0.75-0.75l 0.25-0.75q 42,8.5 80.5,21q 23.5,7.5 51.5,20q-1,5 -1,7.5q0,15 9,27.5q-16.5,31.5 -27.5,61zM 389.5,326q 6-17.5 6-18q 10-25 25-53.5q 6.5,2 12.5,2q 17,0 30.5-11.5q 24.5,17 48,38q-3,28.5 -12,55\nq-41,8.5 -86.5,12q-6.5-16 -23.5-24zM 481,208q0-16.5 -11-30q 10.5-13.5 21-24.5q 18,41 21,84.5q-16.5-12.5 -32-22.5q 1-4.5 1-7.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"domain\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 438,201q 0.5,1 1.75,3.25t 1.75,3.75q0-0.5 -0.75-3.75t-1.25-5.25zM 245.5,64.5\nq 0.5,0 0.75,0.25t 0.75,0.25l0,19 l-13,0 q-8-1.5 -11.5-2q 1-2.5 2.75-7.75t 2.75-7.75q-66.5,9.5 -112.5,59l 7,0 l 12,10.5l 12,10.5l0,11 q-11,4.5 -32.5,13.5t-31.5,13q-1.5,11.5 -5,34.75t-5.5,34.75q 29,31.5 29.5,32q-1.5,1 -4.5,2.75t-3.5,2.25l-26,0 q 12,68 65.25,112.75t 123.25,44.75q 32.5,0 64.5-11.5q-25.5-1.5 -70-4\nq-7-10.5 -21.25-32t-21.25-32q 5.5-10.5 16.5-31.75t 16.5-32.25q 0.5,0 1.75-1.5t 2.25-2.5q 27-24 42.5-37.5q 11,2 44.5-3.75t 44.5-3.75q 2,0.5 2,9.25t 1.75,17t 7.75,7.75q 35.5-3.5 56.5,2.5q 3.5-18.5 3.5-36q0-15 -3-32q-35.5-30.5 -53.5-46l-18.5,0 q-0.5,4 -2,11.5q 20,14 35.5,24.5l-12.25,12.25l-12.25,12.25q-4-7 -15.5-25.75t-17.5-28.75\nq-3.5,1 -10.5,2.75t-10,2.75q-1.5,1 -4.75,3t-4.75,2.5q 1,6 3,17.25t 2.5,14.75q-2,3 -6.25,8t-4.75,5.5q-16.5-7.5 -53.5-24.5l-2-6l0-16.5 q 7-2 20.5-5.75t 20.5-5.75q-1-1.5 -20.5-43.5q 4-6 7.5-11q 2-0.5 27-2.5t 37.5-3.5l0-24.5 q 6-1.5 7.5-2q 0.5,3 1,8.75t 1,8.25q 14.5-0.5 21.5-1q-16-14 -33.5-23.5q-16,1.5 -19.5,2l-2-2\nq 1.5-5 2.5-9q-24-10 -50.5-13q 1.5,7 4.75,19.75t 4.25,17.75q-8.5,3 -11,3.5q 2.5,1.5 3.5,2q-0.5,0 -6.75,0.75t-9.75,1.25q 1.5-9 4.75-26.25t 3.75-19.25q-10-1 -16-1q-1.5,0 -10.5,0.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"linux\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-176,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75l 112,0 q 13,0 22.5-9.5t 9.5-22.5l0-256 q0-13.5 -9.5-22.75t-22.5-9.25l-256,0 q-13,0 -22.5,9.25t-9.5,22.75l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-80 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 \nq 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 16,192l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,176 q0,13 9.5,22.5t 22.5,9.5l 80,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75l-144,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-240 q0-6.5 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"windows\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,512l0-224 l 224,0 l0,224 l-224,0 zM 288,0l 224,0 l0,224 l-224,0 l0-224 zM0,288l 224,0 l0,224 l-224,0 l0-224 zM0,0l 224,0 l0,224 l-224,0 l0-224 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"value\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,320q-77,0 -137-13.5t-79-34q 68,15.5 152,15.5q 61.5,0 116.75-8.5t 89.25-23.5t 34-32l0-32 l 16,0 q 14.5,3 23.25,12.25t 8.75,19.75l0,32 q0,17.5 -30,32.25t-81.5,23.25t-112.5,8.5zM 256,192q-48.5,0 -89-5.25t-64.5-12.5t-40.75-15.5t-23.25-14.25t-6.5-8.5l0-19.5 q 25.5,19 88,31.25t 136,12.25t 136-12.25\nt 88-31.25l0,11.5 q0,17 -30,31.75t-81.5,23.5t-112.5,8.75zM 256,128q-61,0 -112.5-8.75t-81.5-23.5t-30-32t 30-32t 81.5-23.25t 112.5-8.5t 112.5,8.5t 81.5,23.25t 30,32t-30,32t-81.5,23.5t-112.5,8.75zM 16,160q0,17 34,32t 89.25,23.5t 116.75,8.5q 56,0 107-7.25t 85-19.75q-0.5,1 -1.75,3.25\nt-7.75,8.25t-15.75,11.5t-27,12.5t-40,11.75t-56.75,8.25t-75,3.5q-61,0 -112.5-8.75t-81.5-23.5t-30-31.75l0-32 q0-12 16-23.5l0,23.5 zM 16,328.5l0,23.5 q0,17 34,32t 89.25,23.5t 116.75,8.5q 55,0 105.75-7t 85.25-19.5q-7.5,25 -71.5,41.75t-151.5,16.75q-61,0 -112.5-8.5t-81.5-23.25t-30-32.25l0-32 \nq0-12 16-23.5zM 288,352q 55.5,0 106.25-7.25t 84.75-19.75q-7,25 -71,42t-152,17q-61,0 -112.5-8.5t-81.5-23.25t-30-32.25l0-32 q0-11 14.5-22.5q 7.5,2.5 13,4q-9.5,9.5 -9.5,18.5q0,17 33.5,32t 88.5,23.5t 116,8.5zM 464,416l0-23.5 q 16,11.5 16,23.5l0,32 q0,17.5 -30,32.25t-81.5,23.25t-112.5,8.5\nq-88,0 -152-17t-71-42q 34,12.5 84.75,19.75t 106.25,7.25q 61.5,0 116.75-8.5t 89.25-23.5t 34-32z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uptime\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 391,222.5q-6,3 -12.5,0t-9.25-9.75t0-13.75t 9.25-9.5l 47.5-21.5\nq-28.5-54.5 -82-82.5l-21.5,48q-2.5,6.5 -9.5,9.25t-13.75,0t-9.75-9.25t0-13l 21.5-48.5q-27-8 -55-8t-55,8l 21.5,48.5q 3,6.5 0,13t-9.75,9.25t-13.75,0t-9.5-9.25l-21.5-48q-53.5,27.5 -82,82.5l 47.5,21q 6,3 8.75,9.75t0,13.75t-9,9.75t-12.75-0.25l-48.5-21q-8,27 -8,55t 8,55\nl 48.5-21q 6.5-3 12.75-0.25t 9,9.75t0,13.75t-8.75,9.75l-47.5,21q 28.5,54.5 82,82.5l 21-48q 3-6 9.75-8.75t 13.75,0t 9.75,9t-0.25,12.75l-21,48.5q 27,8 55,8t 55-8l-21-48.5q-3-6.5 -0.25-12.75t 9.75-9t 13.75,0t 9.75,8.75l 21,48q 54-28 82-82.5l-47.5-21.5q-6.5-2.5 -9.25-9.5t0-13.75\nt 9.25-9.75t 12.5,0l 49,21.5q 8-27 8-55t-8-55zM 256,288q-13.5,0 -22.75-9.25t-9.25-22.75q0-10.5 6.25-19t 16.25-11.5l 121.5-97.5l 8,0 q 3.5,0 5.75,2.25t 2.25,5.75l0,8 l-97.5,121.5q-3,10 -11.5,16.25t-19,6.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"reliability\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,192l-192,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 192,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 192,512l-160,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-160 q0-13 9.25-22.5t 22.75-9.5l 160,0 q 17.5,0 27,15l-115,115.5l-27-27q-7.5-8 -18.5-8t-18.75,7.75t-7.75,18.75t 7.5,19l 43,43\nq 8.5,8.5 21.5,7q 13,1.5 21.5-7l 98.5-98.5l0,106.5 q0,13.5 -9.5,22.75t-22.5,9.25zM 192,224l-160,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-160 q0-13 9.25-22.5t 22.75-9.5l 160,0 q 17.5,0 27,15l-115,115.5l-27-27q-7.5-8 -18.5-8t-18.75,7.75t-7.75,18.75t 7.5,19l 43,43q 8.5,8.5 21.5,7q 13,1.5 21.5-7l 98.5-98.5\nl0,106.5 q0,13.5 -9.5,22.75t-22.5,9.25zM 288,384l 192,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-192,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"support3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,256q0,52.5 -21,101q 21,26.5 21,59q0,40 -28,68t-68,28q-32.5,0 -59-21q-48.5,21 -101,21t-101-21q-26.5,21 -59,21q-40,0 -68-28t-28-68q0-32.5 21-59q-21-48.5 -21-101t 21-101q-21-26.5 -21-59q0-39.5 28.25-67.75t 67.75-28.25q 32.5,0 59,21q 48.5-21 101-21\nt 101,21q 26.5-21 59-21q 40,0 68,28.25t 28,67.75q0,32.5 -21,59q 21,48.5 21,101zM 96,480q 13.5,0 26.5-6q-52.5-32 -84.5-84.5q-6,13 -6,26.5q0,26.5 18.75,45.25t 45.25,18.75zM 96,32q-26.5,0 -45.25,18.75t-18.75,45.25q0,13.5 6,26.5q 32-52.5 84.5-84.5q-13-6 -26.5-6zM 145.5,192l-49.5,0 l0,0 \nl-54.5,0 q-9.5,31.5 -9.5,64t 9.5,64l 104,0 q-17.5-30 -17.5-64t 17.5-64zM 416,480q 26.5,0 45.25-18.75t 18.75-45.25q0-13.5 -6-26.5q-32,52.5 -84.5,84.5q 13,6 26.5,6zM 366.5,320l 104,0 q 9.5-31.5 9.5-64t-9.5-64l-54.5,0 l0,0 l-49.5,0 q 17.5,30 17.5,64t-17.5,64zM 192,416l0,0 l0,54.5 q 31.5,9.5 64,9.5t 64-9.5l0-104 \nq-30,17.5 -64,17.5t-64-17.5l0,49.5 zM 160,256q0,40 28.25,68t 68,28t 67.75-28t 28-68t-28-68t-67.75-28t-68,28t-28.25,68zM 320,41.5q-31.5-9.5 -64-9.5t-64,9.5l0,54.5 l0,0 l0,49.5 q 30-17.5 64-17.5t 64,17.5l0-104 zM 480,96q0-26.5 -18.75-45.25t-45.25-18.75q-13.5,0 -26.5,6q 52.5,32 84.5,84.5\nq 6-13 6-26.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF014\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 192,470.5q 31.5,9.5 64,9.5t 64-9.5l0-104 q-29.5,17.5 -63.75,17.5t-64.25-17.5l0,104 zM 145.5,192l-104,0 q-9.5,31.5 -9.5,64\nt 9.5,64l 104,0 q-17.5-30 -17.5-64t 17.5-64zM 320,41.5q-31.5-9.5 -64-9.5t-64,9.5l0,104 q 30-17.5 64-17.5t 64,17.5l0-104 zM 256,160q-40,0 -68,28t-28,68t 28,68t 68,28t 68-28t 28-68t-28-68t-68-28zM 366.5,192q 17.5,30 17.5,64t-17.5,64l 104,0 q 9.5-31.5 9.5-64t-9.5-64l-104,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF013\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,448q-33,0 -67-8q-17,20 -34.75,34.75t-30,21.75t-23.75,10.75t-15,4.25t-5.5,0.5l0,0 q 13-28.5 15-62.25t-7-56.75q-41-31.5 -64.5-75.5t-23.5-93.5q0-45.5 20.25-87t 54.5-71.5t 81.75-47.75t 99.5-17.75t 99.5,17.75t 81.75,47.75t 54.5,71.5t 20.25,87t-20.25,87t-54.5,71.5t-81.75,47.75\nt-99.5,17.75zM 224,368q0,6.5 4.5,11.25t 11.5,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-7 -4.75-11.5t-11.25-4.5l-32,0 q-7,0 -11.5,4.5t-4.5,11.5l0,32 zM 256,64q-42.5,0 -76,18.75t-46,48.25l 58,29q0-13.5 18.75-22.75t 45.25-9.25t 45.25,9.25t 18.75,22.5t-18.75,22.75t-45.25,9.5q-13.5,0 -22.75,9.25\nt-9.25,22.75l0,48 q0,6.5 4.5,11.25t 11.5,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-19.5 q 41.5-8 68.75-33.75t 27.25-58.75q0-40 -37.5-68t-90.5-28z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF012\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-13,0 -22.5-9.25t-9.5-22.75l0-448 q0-13 9.5-22.5t 22.5-9.5l 384,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,448 q0,13.5 -9.25,22.75t-22.75,9.25zM 416,80q0-6.5 -4.75-11.25t-11.25-4.75l-288,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,128 q0,6.5 4.75,11.25t 11.25,4.75l 288,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-128 z\nM 416,304q0-6.5 -4.75-11.25t-11.25-4.75l-288,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,128 q0,6.5 4.75,11.25t 11.25,4.75l 288,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-128 zM 255.75,416q-13.25,0 -22.5-9.5t-9.25-22.5t 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5t-9.5,22.5t-22.75,9.5zM 255.75,192q-13.25,0 -22.5-9.25t-9.25-22.75\nt 9.25-22.75t 22.5-9.25t 22.75,9.5t 9.5,22.75t-9.5,22.5t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF011\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.25t-9.5-22.75l0-448 q0-13 9.5-22.5t 22.5-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.5l0,448 q0,13.5 -9.5,22.75t-22.5,9.25zM 195.5,384l 28.5,0 l0,48 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-48 l 28.5,0 q 3.5-4 3.5-9.5t-3.5-9.5l-52-41.5q-3.5-4 -8.75-4t-8.75,4l-51.5,41.5\nq-4,3.5 -4,9.25t 4,9.75zM 320,32l-128,0 l0,128 q0,13.5 9.5,22.75t 22.5,9.25l 64,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-128 zM 448,336q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25q0,15.5 9,27.75t 23,17.25l0,35 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 64,0 \nq 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-16,0 l0-35 q 14-5 23-17.25t 9-27.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF010\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,256l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 28,0 q 10,15 25.75,23.5t 34.25,8.5t 34.25-8.5t 25.75-23.5l 152,0 q 10,15 25.75,23.5t 34.25,8.5t 34.25-8.5t 25.75-23.5l 28,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25zM 403,189q-9.5,5.5 -20,2.5t-16-12.5l-75.5-139\nq-5.5-9.5 -2.75-20.25t 12.25-16.25t 20-2.5t 16,12.5l 75.5,139q 5.5,9.5 2.75,20.25t-12.25,16.25zM 145,179q-5.5,9.5 -16,12.5t-20-2.5t-12.25-16.25t 2.75-20.25l 75.5-139q 5.5-9.5 16-12.5t 20,2.5t 12.25,16.25t-2.75,20.25zM 448,480q-4,20 -14.75,26t-32.75,6l-287,0 q-22.5,0 -34-6t-15.5-26l-32-192l 448,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF00F\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 446,225.5q 2.5,15.5 2.5,30.5t-2.5,30.5l 64.5,62q 2.5,2.5 1.75,7.75t-4.25,10.75l-34.5,53.5q-3.5,5.5 -8.5,8.75t-8,2.75l-82.5-24.5q-23,17.5 -49,27.5l-19.5,69q-1,3 -6.5,5.5t-12.5,2.5l-68.5,0 q-7,0 -12.25-2.5t-6.25-5.5l-18-71q-22-9.5 -43.5-26l-82,25q-3.5,0.5 -8.5-2.75t-8.5-8.75l-34.5-53.5\nq-3.5-5.5 -4.25-10.75t 1.75-7.75l 64.5-62q-2.5-15.5 -2.5-30.5t 2.5-30.5l-64.5-62q-2.5-2.5 -1.75-7.75t 4.25-10.75l 34.5-53.5q 3.5-5.5 8.5-8.75t 8.5-2.75l 82,25q 22.5-18 49-28l 19.5-69q 1-3 6.5-5.5t 12.5-2.5l 68.5,0 q 7,0 12.5,2.5t 6,5.5l 18,71q 22.5,9.5 43.5,26l 82.5-25q 3.5-0.5 8.25,2.75t 8.25,8.75l 34.5,53.5q 3.5,5.5 4.25,10.75\nt-1.75,7.75zM 256.5,160q-40,0 -68,28.25t-28,68t 28,67.75t 68,28t 68-28t 28-67.75t-28-68t-68-28.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF00E\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,416l0,32 q0,26.5 -18.75,45.25t-45.25,18.75l-32,0 l0-32 l-320,0 l0,32 l-32,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-32 l 32,0 l0-320 l-32,0 l0-32 q0-26.5 18.75-45.25t 45.25-18.75l 32,0 l0,32 l 320,0 l0-32 l 32,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,32 l-32,0 l0,320 l 32,0 zM 96,144q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25\nl0,96 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-96 zM 160,144q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-96 zM 112,320q-20,0 -34,14t-14,34t 14,34t 34,14t 34-14t 14-34t-14-34t-34-14zM 224,144\nq0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-96 zM 320,144q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-96 zM 384,144q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75\nt-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-96 zM 448,144q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-96 zM 432,320l-224,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 224,0 q 6.5,0 11.25-4.75\nt 4.75-11.25t-4.75-11.25t-11.25-4.75zM 432,384l-224,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 224,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF00D\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 396.5,406q 79-11.5 112.5-31.5q 3,5.5 3,9.5l0,64 q0,17.5 -34.25,32.25t-93.25,23.25t-128.5,8.5t-128.5-8.5t-93.25-23.25t-34.25-32.25l0-64 q0-4 3-9.5q 33.5,20 112,31.5q 2.5-5.5 6-9.5l 19.5-19.5q-63.5-8 -102-23.25t-38.5-33.75l0-64 q0-4 3-9q 33,19 110,30.5q 2.5-9.5 8-15.5l 14-13.5q-61.5-8.5 -98.25-23.5\nt-36.75-33l0-64 q0-4 3-9q 31,18 101.25,29.5t 151.75,11.5t 151.75-11.5t 101.25-29.5q 3,5 3,9l0,64 q0,18 -37,33.25t-98,23.25l 13.5,13.5q 5.5,6 8,16q 77.5-11.5 110.5-31q 3,5 3,9l0,64 q0,18.5 -38.75,33.75t-102.25,23.25l 19.5,19.5q 3.5,4 6,9.5zM 343,308q 9-9 9-21.75t-9-21.75t-21.75-9\nt-21.75,9l-44,43.5l-43.5-43.5q-9-9 -21.75-9t-21.75,9t-9,21.75t 9,21.75l 43.5,44l-43.5,43.5q-9,9 -9,21.75t 9,21.75t 21.75,9t 21.75-9l 43.5-43.5l 44,43.5q 9,9 21.75,9t 21.75-9t 9-21.75t-9-21.75l-43.5-43.5zM 256,128q-69.5,0 -128.5-8.5t-93.25-23.25t-34.25-32.25t 34.25-32.25\nt 93.25-23.25t 128.5-8.5t 128.5,8.5t 93.25,23.25t 34.25,32.25t-34.25,32.25t-93.25,23.25t-128.5,8.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF00C\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,384l0,64 q0,24 -62,41.75t-155,21.25q-3.5,1 -7,1l-64,0 q-3.5,0 -7-1q-93-3.5 -155-21.25t-62-41.75l0-64 q0-4 3-9.5q 31,18.5 100.5,30q-7.5-9 -7.5-20.5l0-14 q-44.5-9 -70.25-22t-25.75-28l0-64 q0-4 3-9q 24.5,14 75.25,24.5t 113.75,14.5l0-32 q-83.5-5.5 -137.75-22.75t-54.25-39.25l0-64 \nq0-4 3-9q 31,18 101.25,29.5t 151.75,11.5t 151.75-11.5t 101.25-29.5q 3,5 3,9l0,64 q0,22 -54.25,39.25t-137.75,22.75l0,32 q 63-4 113.75-14.5t 75.25-24.5q 3,5 3,9l0,64 q0,15 -25.5,28t-70.5,22l0,14 q0,11.5 -7.5,20.5q 69.5-11.5 100.5-30q 3,5.5 3,9.5zM 352,320l-64,0 l0-64 q0-13 -9.5-22.5t-22.5-9.5\nt-22.5,9.5t-9.5,22.5l0,64 l-64,0 q-13,0 -22.5,9.5t-9.5,22.75t 9.5,22.5t 22.5,9.25l 64,0 l0,64 q0,13.5 9.5,22.75t 22.5,9.25t 22.5-9.25t 9.5-22.75l0-64 l 64,0 q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5zM 256,128q-69.5,0 -128.5-8.5t-93.25-23.25t-34.25-32.25t 34.25-32.25t 93.25-23.25t 128.5-8.5t 128.5,8.5t 93.25,23.25\nt 34.25,32.25t-34.25,32.25t-93.25,23.25t-128.5,8.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF00B\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-8.5t-93.25-23.25t-34.25-32.25l0-64 q0-4 3-9.5q 31,18.5 101.25,30t 151.75,11.5t 151.75-11.5t 101.25-30q 3,5.5 3,9.5l0,64 q0,17.5 -34.25,32.25t-93.25,23.25t-128.5,8.5zM 256,384q-69.5,0 -128.5-8.5t-93.25-23.25t-34.25-32.25l0-64 q0-4 3-9.5q 31,18.5 101.25,30t 151.75,11.5\nt 151.75-11.5t 101.25-30q 3,5.5 3,9.5l0,64 q0,17.5 -34.25,32.25t-93.25,23.25t-128.5,8.5zM 256,256q-69.5,0 -128.5-8.5t-93.25-23.25t-34.25-32.25l0-64 q0-4 3-9.5q 31,18.5 101.25,30t 151.75,11.5t 151.75-11.5t 101.25-30q 3,5.5 3,9.5l0,64 q0,17.5 -34.25,32.25t-93.25,23.25t-128.5,8.5zM 256,128\nq-69.5,0 -128.5-8.5t-93.25-23.25t-34.25-32.25t 34.25-32.25t 93.25-23.25t 128.5-8.5t 128.5,8.5t 93.25,23.25t 34.25,32.25t-34.25,32.25t-93.25,23.25t-128.5,8.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF00A\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 64.25,480q 13.25,0 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25t-22.75,9.25t-9.25,22.5t 9.5,22.75t 22.75,9.5zM 64,32\nq-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75t 22.75,9.5t 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25t 70,70t 96.25,25.75t 96.25-25.75t 70-70t 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 448,32\nq-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75t 22.75,9.5t 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25zM 448,416q-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75t 22.75,9.5t 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25zM 320,256q0,15 -7.5,29.5q 29,6 52.75,16.75t 34.75,21.75q-27,56 -80,76\nq0-35.5 -5.75-57.5t-18.75-36.5q-17.5,14 -39.5,14q-15,0 -29.5-7.5q-6,29 -16.75,52.75t-21.75,34.75q-56-27 -76-80q 35.5,0 57.5-5.75t 36.5-18.75q-14-17.5 -14-39.5q0-15 7.5-29.5q-29-6 -52.75-16.75t-34.75-21.75q 27-56 80-76q0,35.5 5.75,57.5t 18.75,36.5q 17.5-14 39.5-14q 15,0 29.5,7.5\nq 6-29 16.75-52.75t 21.75-34.75q 56,27 76,80q-35.5,0 -57.5,5.75t-36.5,18.75q 14,17.5 14,39.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF009\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 256,432q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75\nt-4.75,11.25l0,32 zM 64,432q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 432,96l-176,0 q0-13.5 -9.25-22.75t-22.75-9.25l-64,0 q-13,0 -22.5,9.25t-9.5,22.75l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nt 4.75,11.25t 11.25,4.75l 48,0 q0,13 9.5,22.5t 22.5,9.5l 64,0 q 13.5,0 22.75-9.25t 9.25-22.75l 176,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 432,256l-48,0 q0-13.5 -9.5-22.75t-22.5-9.25l-64,0 q-13,0 -22.5,9.25t-9.5,22.75l-176,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 176,0 \nq0,13.5 9.5,22.75t 22.5,9.25l 64,0 q 13,0 22.5-9.25t 9.5-22.75l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 448,400q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 336,288l-32,0 q-6.5,0 -11.25-4.75\nt-4.75-11.25t 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 208,128l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF008\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 160,160q0-13.5 -9.5-22.75t-22.5-9.25l0-32 q0-13.5 -9.5-22.75t-22.75-9.25t-22.5,9.25t-9.25,22.75l0,32 q-13.5,0 -22.75,9.25t-9.25,22.75\nl0,64 q0,13.5 9.25,22.75t 22.75,9.25l0,160 q0,13.5 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75l0-160 q 13,0 22.5-9.25t 9.5-22.75l0-64 zM 320,352q0-13 -9.5-22.5t-22.5-9.5l0-224 q0-13.5 -9.5-22.75t-22.75-9.25t-22.5,9.25t-9.25,22.75l0,224 q-13.5,0 -22.75,9.5t-9.25,22.5l0,64 q0,13.5 9.25,22.75t 22.75,9.25\nl 64,0 q 13,0 22.5-9.25t 9.5-22.75l0-64 zM 480,224q0-13 -9.25-22.5t-22.75-9.5l0-96 q0-13.5 -9.25-22.75t-22.5-9.25t-22.75,9.25t-9.5,22.75l0,96 q-13.5,0 -22.75,9.5t-9.25,22.5l0,64 q0,13 9.25,22.5t 22.75,9.5l0,96 q0,13.5 9.5,22.75t 22.75,9.25t 22.5-9.25t 9.25-22.75l0-96 q 13.5,0 22.75-9.5t 9.25-22.5l0-64 z\nM 432,288l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 272,416l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75z\nM 112,224l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF007\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 95.75,416q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.25t 9.5-22.75t-9.5-22.75t-22.75-9.25zM 416,416l-192,0 q-13.5,0 -22.75,9.25t-9.25,22.5\nt 9.25,22.75t 22.75,9.5l 192,0 q 13,0 22.5-9.25t 9.5-22.75t-9.5-22.75t-22.5-9.25zM 368,352l-240,0 q-40,0 -68-28t-28-68q0-28.5 15.25-51.75t 40.25-35.25q 17,27 43.75,45t 58.75,23.5q-28.5-17 -45.25-46t-16.75-63.5q0-53 37.5-90.5t 90.5-37.5q 40.5,0 73,22.75t 46.5,59.25q-51.5,9 -85.5,49t-34,93\nq0,5.5 0.5,11q 2-44.5 34.25-75.75t 77.25-31.25q 46.5,0 79.25,32.75t 32.75,79.25t-32.75,79.25t-79.25,32.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF006\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,448q 13,0 22.5-9.25t 9.5-22.5t-9.5-22.75t-22.5-9.5t-22.5,9.5t-9.5,22.75t 9.5,22.5\nt 22.5,9.25zM 391,222.5q-6,3 -12.5,0t-9.25-9.75t0-13.75t 9.25-9.5l 47.5-21.5q-28-54.5 -82-82.5l-21.5,48q-2.5,6.5 -9.5,9.25t-13.75,0t-9.75-9.25t0-13l 21.5-48.5q-27-8 -55-8t-55,8l 21.5,48.5q 3,6.5 0,13t-9.75,9.25t-13.75,0t-9.5-9.25l-21.5-48q-53.5,27.5 -82,82.5l 47.5,21\nq 6,3 8.75,9.75t0,13.75t-9,9.75t-12.75-0.25l-48.5-21q-8,27 -8,55t 8,55l 48.5-21q 6.5-3 12.75-0.25t 9,9.75t0,13.75t-8.75,9.75l-48,21q 11,21.5 28,40q 48-27 120-31l 97-158.5q 4.5-1 8.5-2.5q 3.5-0.5 6.75,1.25t 3.75,5.25l 2.5,8l-55.5,148q 60.5,6.5 102,29.5q 17-18.5 28-40l-48-21.5\nq-6.5-2.5 -9.25-9.5t0-13.75t 9.25-9.75t 13,0l 48.5,21.5q 8-27 8-55t-8-55z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF005\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-448 q0-13 9.5-22.5t 22.5-9.5l 448,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,448 q0,13.5 -9.25,22.75t-22.75,9.25zM 448,96q0-13.5 -9.25-22.75t-22.75-9.25l-320,0 q-13,0 -22.5,9.25t-9.5,22.75l0,32 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 16,0 \nl0,64 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 16,0 l0,32 q0,13.5 9.5,22.75t 22.5,9.25l 320,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-320 zM 384,416l-256,0 q-13,0 -22.5-9.5t-9.5-22.5l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 q0-6.5 -4.75-11.25t-11.25-4.75l-48,0 l0-64 l 48,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-64 q0-6.5 -4.75-11.25t-11.25-4.75l-48,0 q0-13.5 9.5-22.75t 22.5-9.25l 256,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,256 q0,13.5 -9.25,22.75t-22.75,9.25zM 288,192q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75zM 288.25,288\nq-13.25,0 -22.75-9.5t-9.5-22.5t 9.5-22.5t 22.75-9.5t 22.5,9.25t 9.25,22.75t-9.25,22.75t-22.5,9.25zM 128,176q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25zM 80,320l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75\nl-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF004\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-416,0 q-13,0 -22.5-9.5t-9.5-22.5l0-32 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 l0-128 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 l0-32 q0-13.5 9.5-22.75t 22.5-9.25l 416,0 q 13,0 22.5,9.25t 9.5,22.75l0,448 q0,13 -9.5,22.5t-22.5,9.5zM 448,96\nq0-13.5 -9.25-22.75t-22.75-9.25l-288,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,320 q0,13 9.25,22.5t 22.75,9.5l 288,0 q 13,0 22.5-9.5t 9.5-22.5l0-320 zM 384,416l-224,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-256 q0-13 9.25-22.5t 22.75-9.5l 224,0 q 13,0 22.5,9.5t 9.5,22.5l0,256 q0,13.5 -9.5,22.75t-22.5,9.25zM 288,192\nq-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75zM 287.75,288q-13.25,0 -22.5-9.25t-9.25-22.5t 9.25-22.75t 22.5-9.5t 22.75,9.25t 9.5,22.75t-9.5,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF003\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,384l-48,0 l0-64 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 496,288l-48,0 l0-64 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 496,192l-48,0 l0-64 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 384,416l-256,0 \nq-13,0 -22.5-9.5t-9.5-22.5l0-256 q0-13 9.25-22.5t 22.75-9.5l 256,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,256 q0,13.5 -9.25,22.75t-22.75,9.25zM 320,16q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,48 l-64,0 l0-48 zM 224,16q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,48 l-64,0 l0-48 z\nM 128,16q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,48 l-64,0 l0-48 zM0,368l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0,64 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25zM0,272l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0,64 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25zM0,176l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0,64 \nl-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25zM 192,496q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-48 l 64,0 l0,48 zM 288,496q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-48 l 64,0 l0,48 zM 384,496q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-48 \nl 64,0 l0,48 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF002\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,352l-48,0 l0-32 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 496,288l-48,0 l0-32 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 496,224l-48,0 l0-32 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 496,160l-48,0 l0-32 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25\nt-4.75,11.25t-11.25,4.75zM 400,512q-6.5,0 -11.25-4.75t-4.75-11.25l0-48 l 32,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75zM 384,416l-224,0 q-13,0 -22.5-9.5t-9.5-22.5l0-224 q0-13 9.5-22.5t 22.5-9.5l 224,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,224 q0,13.5 -9.25,22.75t-22.75,9.25zM 384,48q0-6.5 4.75-11.25t 11.25-4.75\nt 11.25,4.75t 4.75,11.25l0,48 l-32,0 l0-48 zM 320,48q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,48 l-32,0 l0-48 zM 256,48q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,48 l-32,0 l0-48 zM 192,48q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,48 l-32,0 l0-48 zM 128,48q0-6.5 4.75-11.25t 11.25-4.75\nt 11.25,4.75t 4.75,11.25l0,48 l-32,0 l0-48 zM 32,400q0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0,32 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25zM 32,336q0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0,32 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25zM 32,272q0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0,32 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25zM 32,208\nq0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0,32 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25zM 32,144q0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0,32 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25zM 160,496q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l 32,0 l0,48 zM 224,496q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 \nl 32,0 l0,48 zM 288,496q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l 32,0 l0,48 zM 352,496q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l 32,0 l0,48 zM 512,400q0,6.5 -4.75,11.25t-11.25,4.75l-48,0 l0-32 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF001\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 64,256l 192,0 l0-192 q-79.5,0 -135.75,56.25t-56.25,135.75zM 288,288l-221,0 q 11.5,68.5 64.75,114.25t 124.25,45.75\nq 39,0 74-14.75t 62-41.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF000\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,224l0-224 q 45.5,0 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87l-224,0 zM 224,512q-45.5,0 -87-17.75t-71.5-47.75t-47.75-71.5t-17.75-87t 17.75-87t 47.75-71.5t 71.5-47.75t 87-17.75l0,224 l 224,0 q0,45.5 -17.75,87t-47.75,71.5t-71.5,47.75t-87,17.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"wheelchair\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.5,438l-31.5,32q-0.5,0 -0.5,0.25t-0.5,0.75l-0.75,0.5t-1.25,0.5q-2,2 -3.5,2.5q-9,6 -20.25,5.25t-19.25-8.75l-86.5-87l-147,0 q-13,0 -22.5-9.25t-9.5-22.25l0-160 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,128 l 124.5,0 q 3.5-0.5 8,0.5q 2,0 3.5,0.5q 3.5,1 4.5,1.5q 6,2.5 11,7.5l 72.5,72.5l 10-10\nq 9.5-9.5 22.75-9.5t 22.5,9.5t 9.25,22.75t-9.5,22.25zM 191.5,128.5q-26.5,0 -45-18.75t-18.5-45.25t 18.5-45.25t 45-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 264.5,425l 1.5,1.5q 9.5-9 22.75-9t 22.5,9.25t 9.25,22.5t-9,22.75q-5,5 -13,7.5q-37,25 -80.75,31t-86.5-8t-75.25-46.5\nt-46.5-75.25t-8-86.5t 31-80.75q 2.5-8 7.5-13q 9.5-9.5 22.75-9.5t 22.5,9.5t 9.25,22.75t-9,22.75l 1.5,1.5q-26.5,37 -22.75,83.5t 37,79.75t 79.75,37t 83.5-22.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"scales\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,352q0,9 -7.5,13.5q-10,8.5 -29.5,13.5t-43,5t-43-5t-29.5-13.5q-7.5-5 -7.5-13.5l0,0 q0-3 0.5-4l 58-284l-122.5,0 l0,384.5 q 55.5,2.5 91.75,11.25t 36.25,20.25q0,13 -9.25,22.5t-22.75,9.5l-256,0 q-13.5,0 -22.75-9.5t-9.25-22.5q0-11.5 36.25-20.25t 91.75-11.25l0-384.5 l-122.5,0 l 58,284q 0.5,1 0.5,4l0,0 \nq0,9 -7.5,13.5q-10,8.5 -29.5,13.5t-43,5t-43-5t-29.5-13.5q-7.5-5 -7.5-13.5l0,0 q0-3.5 0.5-4l 62-304q 3.5-11 16-11.5l 0.5-0.25t 1-0.25l 144,0 q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.25t 9.25,22.75l 144,0 q 0.5,0 1.5,0.5q 12.5,0.5 16,11.5l 62,304q 0.5,1 0.5,4l0,0 zM 39.5,324.5q 19-4.5 40.5-4.5t 40.5,4.5l-40.5-198zM 432,126.5\nl-40.5,198q 19-4.5 40.5-4.5t 40.5,4.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"diesix\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-352,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-352 q0-26.5 18.75-45t 45.25-18.5l 352,0 q 26.5,0 45.25,18.5t 18.75,45l0,352 q0,26.5 -18.75,45.25t-45.25,18.75zM 144,448q 20,0 34-14t 14-34t-14-34t-34-14t-34,14t-14,34t 14,34t 34,14zM 144,96q-20,0 -34,14.25t-14,34t 14,33.75t 34,14t 34-14\nt 14-33.75t-14-34t-34-14.25zM 144,224q-20,0 -34,14.25t-14,34t 14,33.75t 34,14t 34-14t 14-33.75t-14-34t-34-14.25zM 400,96q-20,0 -34,14.25t-14,34t 14,33.75t 34,14t 34-14t 14-33.75t-14-34t-34-14.25zM 352,272.25q0,19.75 14,33.75t 34,14t 34-14t 14-33.75t-14-34t-34-14.25\nt-34,14.25t-14,34zM 400,352q-20,0 -34,14t-14,34t 14,34t 34,14t 34-14t 14-34t-14-34t-34-14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"diefive\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-352,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-352 q0-26 18.75-44.75t 45.25-18.75l 352,0 q 26.5,0 45.25,18.5t 18.75,45l0,352 q0,26.5 -18.75,45.25t-45.25,18.75zM 144,96q-20,0 -34,14.25t-14,34t 14,33.75t 34,14t 34-14t 14-33.75t-14-34t-34-14.25zM 144,352q-20,0 -34,14t-14,34t 14,34\nt 34,14t 34-14t 14-34t-14-34t-34-14zM 272,224q-20,0 -34,14.25t-14,34t 14,33.75t 34,14t 34-14t 14-33.75t-14-34t-34-14.25zM 400,96q-20,0 -34,14.25t-14,34t 14,33.75t 34,14t 34-14t 14-33.75t-14-34t-34-14.25zM 400,352q-20,0 -34,14t-14,34t 14,34t 34,14t 34-14t 14-34\nt-14-34t-34-14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"diefour\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-352,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-352 q0-26 18.75-44.75t 45.25-18.75l 352,0 q 26.5,0 45.25,18.5t 18.75,45l0,352 q0,26.5 -18.75,45.25t-45.25,18.75zM 144,96q-20,0 -34,14.25t-14,34t 14,33.75t 34,14t 34-14t 14-33.75t-14-34t-34-14.25zM 144,352q-20,0 -34,14t-14,34t 14,34\nt 34,14t 34-14t 14-34t-14-34t-34-14zM 400,96q-20,0 -34,14.25t-14,34t 14,33.75t 34,14t 34-14t 14-33.75t-14-34t-34-14.25zM 400,352q-20,0 -34,14t-14,34t 14,34t 34,14t 34-14t 14-34t-14-34t-34-14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"diethree\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-352,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-351.5 q0-26.5 18.75-45.25t 45.25-18.75l 352,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,351.5 q0,26.5 -18.75,45.25t-45.25,18.75zM 144,96.5q-20,0 -34,14t-14,33.75t 14,33.75t 34,14t 34-14t 14-33.75t-14-33.75t-34-14zM 272,224q-20,0 -34,14.25t-14,34\nt 14,33.75t 34,14t 34-14t 14-33.75t-14-34t-34-14.25zM 400,352q-20,0 -34,14t-14,34t 14,34t 34,14t 34-14t 14-34t-14-34t-34-14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"dietwo\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-352,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-351.5 q0-26.5 18.75-45.25t 45.25-18.75l 352,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,351.5 q0,26.5 -18.75,45.25t-45.25,18.75zM 144,96.5q-20,0 -34,14t-14,33.75t 14,33.75t 34,14t 34-14t 14-33.75t-14-33.75t-34-14zM 400,352q-20,0 -34,14t-14,34t 14,34\nt 34,14t 34-14t 14-34t-14-34t-34-14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"dieone\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-352,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-352 q0-26.5 18.75-45t 45.25-18.5l 352,0 q 26.5,0 45.25,18.75t 18.75,44.75l0,352 q0,26.5 -18.75,45.25t-45.25,18.75zM 272,224q-20,0 -34,14.25t-14,34t 14,33.75t 34,14t 34-14t 14-33.75t-14-34t-34-14.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ink\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 461,512l-441.5,0 q-14,0 -18.25-14.5t 3.75-34l 74-257.5q 2-5.5 8.75-9.75t 14.25-4.25l 58,0 l0-32 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-128 q0-6.5 4.75-11.25t 11.25-4.75l 256,0 q 7,0 11.5,4.75t 4.5,11.25l0,128 q0,6.5 -4.5,11.25t-11.5,4.75l-48,0 l0,32 l 56.5,0 q 7,0 13.75,4t 9.25,10l 75.5,257.5q 8,19.5 4,34t-18,14.5z\nM 160,48q0-6.5 -4.5-11.25t-11.25-4.75t-11.5,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25l0-64 zM 224,48q0-6.5 -4.5-11.25t-11.25-4.75t-11.5,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25l0-64 zM 288,48q0-6.5 -4.5-11.25t-11.25-4.75t-11.5,4.75t-4.75,11.25\nl0,64 q0,6.5 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25l0-64 zM 336.25,128q 6.75,0 11.25-4.75t 4.5-11.25l0-64 q0-6.5 -4.5-11.25t-11.25-4.75t-11.5,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.5,4.75zM 352,224l-224,0 l-27.5,111q 29,17 59.5,17q 17.5,0 34.25-6.5t 30-16t 26-19t 26.75-16t 27-6.5q 42.5,0 70,22.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sticker\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,224q0,10.5 -0.5,16.5t-4.25,15t-11.25,16.5l-224,224q-7.5,7.5 -16.5,11.25t-15,4.25t-16.5,0.5l0-2.5 q-62.5-7.5 -113.75-43t-80.75-91t-29.5-119.5q0-52 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25q 64,0 119.5,29.5t 91,80.75t 43,113.75l 2.5,0 zM 256,32q-45.5,0 -87,17.75t-71.5,47.75\nt-47.75,71.5t-17.75,87q0,55.5 25.25,103.75t 69.25,79.25t 97.5,38.5q 0.5-51.5 20.75-98t 54.25-80.5t 80.5-54.25t 98-20.75q-7.5-53.5 -38.5-97.5t-79.25-69.25t-103.75-25.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"banana\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 429.5,419.5q-20.5,26 -40.5,45.25t-35,29t-27.5,14.25t-20.25,4t-11.75-4q-6-5.5 -6.25-22.75t 5.25-37.25t 15-33q 38.5-50 64-113.5q-32.5,40 -70,68.75t-73.5,38.75q-31.5,8 -60.5,7.25t-49.75-6.75t-22.75-14q-2-7 19-25t 48-34.25t 41.5-20.25q 11-3 33-25.5q-61,29.5 -109.5,29.5\nq-23,0 -47-5.25t-41.25-12.75t-28.5-15.75t-11.25-14.25q0-11.5 51.25-29.75t 76.75-18.25q 15.5,0 56.25-26.25t 84.75-64.75t 67-69q 12-16 39.5-15q 10-29 10-49l 30.5,0 q0,17 -0.5,32l0,0.5 l 0.25-0.25l 0.25-0.25q 22.5,11 37,32.5l 0.5,0 t 0.5,0.5q 35.5,16 49.25,59.5t 7,95.5t-28.25,106t-52.5,93.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"strawberry\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 479,487q-19.5,20 -53,23.5t-68.5-4.75t-79-25.75t-77-34.25t-70.5-36.25t-51.5-25.5q-104.5-47.5 23-190q-53.5,9.5 -68,63.5q-6.5-27.5 6.5-53.5q-28.5,16 -38.5,53.5q-7-31.5 9.5-59t 47.5-36l 1.25,0 t 1.25-0.5q-36.5-11 -62,4q 17-28 47.25-36t 57.75,8.5q-28.5-47.5 -72.5-76l 31.5-30.5q 40.5,40.5 63,67\nq-1.5-20.5 6.75-38.25t 26.25-28.75q0,40.5 3,57.5q 8.5-30.5 35.5-46.5t 57.5-9q-56.5,15.5 -63.5,75q 31-23 59.25-34.25t 60.25-10t 64.5,18.25q 24.5,12 48,41.5t 41.5,67.25t 30,81.25t 15.25,83.75t-4.75,75.25t-27.5,55zM 304.25,448q 6.75,0 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75t-11.5,4.75t-4.75,11.25\nt 4.75,11.25t 11.5,4.75zM 112.25,256q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 144.25,320q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 176.25,192q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25\nt 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 176.25,256q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 208.25,384q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 240.25,160q-6.75,0 -11.5,4.75\nt-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 240.25,256q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 240.25,320q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75z\nM 304.25,128q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 304.25,192q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 304.25,288q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25\nt-4.5-11.25t-11.25-4.75zM 336.25,352q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 368.25,160q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 368.25,256q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25\nt 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 368.25,416q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 432.25,224q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 432.25,320q-6.75,0 -11.5,4.75\nt-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 432.25,384q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"carrot\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 508.75,508.75q-10.75,10.75 -56.5-13t-103-64.75t-115.75-86.5t-98.25-78.5t-47.25-40q-11-12 -7-33.25t 21-45.25q-42.5-19.5 -102-19.5l0-32 q 47,0 85,12.5l-85-85l 23.5-23.5l 85,85.5q-12.5-38.5 -12.5-85.5l 32,0 q0,59.5 19.5,102q 24-17 45.25-21t 33.25,7q 7,7.5 40,47.25t 78.5,98.25t 86.5,115.75\nt 64.75,103t 13,56.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fedora\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,336q0,13.5 -20.5,32.5t-53.75,36.75t-82.5,30.25t-99.25,12.5t-99-12.5t-82.5-30.25t-54-36.75t-20.5-32.5q0-26.5 85-38.5q 4.5-31 11-61.25t 16-64.25t 22.25-55t 25.75-21q 14,0 47.25,16t 48.75,16q 13.5,0 26-5t 21-11t 21.5-11t 27.5-5q 14,0 36.5,67.5t 37,133.5q 86.5,12 86.5,39z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tophat\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,512l-480,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 80,0 l-32-437.5q-0.5-12 3-20t 9.25-12.5t 16.75-6.75t 20.25-2.75t 24.75-0.5l 236,0 q 15.5,0 24.75,0.5t 20.25,2.75t 16.75,6.75t 9.5,12.5t 2.75,20l-32,437.5l 80,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 121.5,416l 6.5,64l 256,0 \nl 7-64l-269.5,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"telescope\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 493.5,493.5q-13.5,13.5 -25.5,16.75t-20.5-0.75t-18-13.5l-52.5-52q-35.5,13 -63-15l-58-58.5l0-115 q0-26.5 -19-45.25t-45.5-18.75t-45.25,18.75t-18.75,45.25l0,38.5 l-111-111q-14-14 -16.25-34.25t 10-46.25t 39.25-53t 53-39.25t 46.25-10t 34.25,16.25l 152,152q 24.5,24.5 12.5,64.5l 81.5,81q 27,27.5 14.5,63\nl 52.5,52.5q 9.5,9.5 13.5,17.75t 0.75,20.5t-16.75,25.75zM 111.5,480l 48,0 l0-224.5 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,224.5 l 48.5,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-160.5,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lollypop\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 503.5,503.5q-8.5,8.5 -20.5,8.5t-20.5-8.5l-211.5-211.5q-41,28 -90.5,28q-12,0 -26.5-2l 184-184q 2,14.5 2,26.5q0,49.5 -28,90.5l 211.5,211.5q 8.5,8.5 8.5,20.5t-8.5,20.5zM0,232.5l 232.5-232.5q 29.5,13 52.25,35.75t 35.75,52.25l-232.5,232.5q-29.5-13 -52.25-35.75t-35.75-52.25zM 0.5,160.5q0-43.5 21.25-80.5\nt 58.25-58.25t 80.5-21.25q 12,0 26,2l-184,184q-2-14 -2-26z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"filmstrip\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 32,416l0-288 l 480,0 l0,288 l-480,0 zM 400,384q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 400,160q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 464,160q-6.5,0 -11.25,4.75t-4.75,11.25\nt 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 480,240q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 64,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 zM 464,352q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75\nt 4.75-11.25t-4.75-11.25t-11.25-4.75zM 400,96l-384,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 144,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 144,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 16,448l 384,0 q 6.5,0 11.25,4.75\nt 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-384,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"antenna\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464.5,59.5l-176.5,233.5l0,187 q0,13 -9.25,22.5t-22.75,9.5t-22.75-9.5t-9.25-22.5l0-187 l-176.5-233.5q-15.5-9.5 -15.5-27.5q0-13 9.5-22.5t 22.5-9.5l 384,0 q 13.5,0 22.75,9.5t 9.25,22.5q0,18 -15.5,27.5zM 388,64l-100,0 l0,132.5 zM 224,64l-100,0 l 100,132.5l0-132.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"resistor\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l-71,0 l-23.5,84q-1.5,6 -6.5,9.25t-11,2.75q-6,0.5 -11-2.75t-6.5-9.25l-46.5-167.5l-46.5,167.5q-1.5,6 -6.5,9.25t-11,2.75q-6,0.5 -11-2.75t-6.5-9.25l-46.5-167.5l-16,83.5l-42.5,0 l-85.5,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 103,0 l 23.5-84q 1.5-5.5 6.5-8.75t 11-2.75q 6-0.5 11,2.75\nt 6.5,8.75l 46.5,168l 46.5-168q 1.5-5.5 6.5-8.75t 11-2.75q 6-0.5 11,2.75t 6.5,8.75l 46.5,168l 16-84l 42.5,0 l 53.5,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"acsource\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25\nt 70,70t 96.25,25.75t 96.25-25.75t 70-70t 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 320,352q-29,0 -48.75-21t-31.25-75q-10.5-24.5 -23.75-44.25t-24.25-19.75q-7.5,0 -12.5,9.25t-10.5,28t-9,26.75l-32,0 q0-13.5 3.5-28.75t 10.5-31t 20-26t 30-10.25q 29,0 48.75,21t 31.25,75\nq 10.5,24.5 23.75,44.25t 24.25,19.75q 7.5,0 12.5-9.25t 10.5-28t 9-26.75l 32,0 q0,13.5 -3.5,28.75t-10.5,31t-20,26t-30,10.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"dcsource\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,128l-48,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 48,0 l0-48 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,48 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 512,256q0,13.5 -9.25,22.75\nt-22.75,9.25l-160,0 l0,128 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-320 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,128 l 160,0 q 13.5,0 22.75,9.25t 9.25,22.75zM 159.75,352q-13.25,0 -22.5-9.25t-9.25-22.75l0-32 l-96,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 96,0 l0-32 \nq0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.5t 9.5,22.5l0,128 q0,13.5 -9.5,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"capacitator\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l-128,0 l0,96 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-256 q0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,96 l 128,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5zM 191.75,416q-13.25,0 -22.5-9.5t-9.25-22.5l0-96 l-128,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 128,0 l0-96 \nq0-13 9.25-22.5t 22.5-9.5t 22.75,9.5t 9.5,22.5l0,256 q0,13 -9.5,22.5t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"diode\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l-64,0 l0,96 q0,13 -9.5,22.5t-22.5,9.5t-22.5-9.5t-9.5-22.5l0-96 l-5,0 l-199,124.5q-8.5,8.5 -20-4l0-120.5 l-96,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 96,0 l0-121 q 12-12.5 20-4l 199.5,125l 4.5,0 l0-96 q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.25t 9.25,22.75l0,96 l 64,0 q 13,0 22.5,9.25t 9.5,22.5\nt-9.5,22.75t-22.5,9.5zM 160,160l0,192 l 160-96z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lighthouse\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,96l 128-64l0,160 l-128-64l0-32 zM 352,160q0,11.5 -7.5,20.5t-19,11l 6,32.5l-151,0 l 6-32.5q-11.5-2 -19-11t-7.5-20.5l0-96 l-32,0 l 128-64l 128,64l-32,0 l0,96 zM 256,80q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-64 zM 320,80q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-64 zM 128,128l-128,64l0-160 l 128,64l0,32 zM 337.5,256l 5.5,32l-174.5,0 l 6-32l 163,0 zM 355,352l-198,0 l 6-32l 186,0 zM 143.5,426l 8-42l 209,0 l 8,42\nq 64.5,12 104,35t 39.5,51l-128,0 l-256,0 l-128,0 q0-28 39.5-51t 104-35z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"invoice\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,480l-32,32l-32-32l-32,32l-32-32l-32,32l-32-32l-32,32l-32-32l-32,32l-32-32l-32,32l-32-32l-32,32l0-480 q0-13 9.5-22.5t 22.5-9.5l 384,0 q 13,0 22.5,9.5t 9.5,22.5l0,480 zM 112,416l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nt 4.75,11.25t 11.25,4.75zM 416,80q0-6.5 -4.75-11.25t-11.25-4.75l-288,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,192 q0,6.5 4.75,11.25t 11.25,4.75l 176,0 l0,48 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-256 zM 320,288l 64,0 l0,32 l-64,0 l0-32 zM 320,224l 64,0 l0,32 l-64,0 l0-32 zM 320,160l 64,0 l0,32 \nl-64,0 l0-32 zM 320,96l 64,0 l0,32 l-64,0 l0-32 zM 128,224l 160,0 l0,32 l-160,0 l0-32 zM 128,160l 160,0 l0,32 l-160,0 l0-32 zM 128,96l 160,0 l0,32 l-160,0 l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"helicopter\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,256l0,16 q0,6 -1,9.25t-3.75,4.75t-4.75,1.75t-6.5,0.25q-16,0 -19.5-5l-28.5-27l-117.5,62q-16,15.5 -38.75,24.75t-41.75,9.25l-26,0 l0,32 l 112,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-176,0 l-80,0 l-32,0 q-13.5,0 -30.75-17.25t-17.25-30.75q0-6 1.75-9.5t 6.5-4.75t 8.25-1.5\nt 11.5-0.25l 4,0 q0,13.5 9.25,22.75t 22.75,9.25l 16,0 l 16,0 l0-32 l-9.5,0 q-21,0 -35.5-10.75t-18.25-32t 13.25-53.25l 34-64q 9-14.5 29.25-23.25t 39.75-8.75l 43,0 l0-32 l-144,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 144,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,16 l 144,0 q 6.5,0 11.25,4.75\nt 4.75,11.25t-4.75,11.25t-11.25,4.75l-144,0 l0,32 l 56.5,0 q 18.5,0 34.25,9.75t 20.75,24.25l 10,47.5l 102.5-49.5l 28.5-56.5q 3.5-7.5 19.5-7.5q 4.5,0 6.5,0.25t 4.75,1.75t 3.75,4.75t 1,9.25l0,16 q-13.5,0 -22.75,14t-9.25,34t 9.25,34t 22.75,14zM 128,384l 64,0 l0-32 l-64,0 l0,32 zM 224,224q0-13.5 -9.5-22.75t-23-9.25l-31.5,0 \nq-23,0 -33,16l-28,48q-6.5,18.5 0.5,25.25t 27.5,6.75l 64.5,0 q 13.5,0 23-9.5t 9.5-22.5l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"brain\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,288q-6,0 -23.5-8t-38-16t-34.5-8q-13,0 -29,8.25t-32,20t-33.25,23.5t-38.75,20t-43,8.25q-26,0 -45-12.75t-19-35.25q0-16.5 10.75-28.75t 26-18.75t 36.25-10.25t 37.5-4.75t 33.5-1l0-0.5 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75q-91,0 -136.5,31.5q-1.5,1 -11,7.75t-12,8.25\nt-11.25,6t-15,6t-16.5,3t-21.75,1.5q-22.5,0 -35.25-19t-12.75-45q0-35 22-65.5t 58-50.75t 82-32t 94-11.75q 69.5,0 128.5,25.75t 93.25,70t 34.25,96.25q0,22.5 -13,43.25t-35,20.75zM 231,352l 57-16q0-12.5 32.5-30.25t 47.5-17.75q 33,0 56.5,16.5t 23.5,31.5q0,12.5 -32.5,30.25t-47.5,17.75\nq-11,0 -13.5,24t-2.5,104l-32,0 q0-25 -29.5-70.5t-54.5-57.5q-6-3 -9.75-10.75t-2.5-14.5t 7.25-6.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"liver\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,256q-12.5,0 -28.5-11.75t-31.25-31.75t-25.75-51.25t-10.5-65.25q0-8 0.5-12.25t 3.25-9.75t 9.75-7.75t 18.5-2.25q 21.5,0 47.25-10t 44.75-22t 38.25-22t 29.75-10q 14.5,0 23.25,8.5t 8.75,23.5q0,36.5 -10.25,72.25t-25.75,62.25t-33.25,47.25t-33.25,31.5t-25.5,10.75zM 352,288q0,11 -13.75,26\nt-32,28.75t-42.5,34.5t-39.75,38.75q-15.5,18.5 -26.25,42.75t-15,38.75t-6.75,14.5q-14.5,0 -36.75-14t-46-39.5t-45-56.75t-34.75-70.25t-13.5-75.5q0-43.5 23.5-80.25t 64-58.25t 88.5-21.5q 11,0 17,0.25t 17.25,1t 17.75,2.75t 13.75,5.5t 10.75,9.25t 3.5,13.25q0,27.5 13,57t 35,55q 6.5,7.5 19.25,17.75\nt 20.75,17.75t 8,12.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"stomach\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 224,480q-32.5,0 -62.75-15t-47.75-37.25t-17.5-43.75q0-15 -8-21.25t-16,0t-8,21.25l0,96 q0,10.5 -10.75,21.25t-21.25,10.75t-21.25-10.75t-10.75-21.25l0-96 q0-19 1.25-32t 5-26t 10.75-20.75t 18.75-12.5t 28.25-4.75q 17,0 31,5t 21.75,11t 19.25,11t 24,5q 13.5,0 21-0.25t 21.25-1.5t 22.5-4.25t 19.25-8\nt 17.25-13.75t 10.75-20.25q 7.5-22.5 11.25-49.75t 4.25-44.75t 0.5-49.5q-24,0 -44-20t-20-44l0-32 q0-10.5 10.75-21.25t 21.25-10.75t 21.25,10.75t 10.75,21.25l0,16 q0,16 64,16q 8.5,0 16.75-5t 14.75-11t 19.5-11t 29-5q 37.5,0 58.75,47.25t 21.25,125.75q0,65.5 -22.5,118.25t-61.75,86.75t-91.25,52t-112.5,18z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"kidney\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-24.5,0 -46.25-6.75t-40.5-21t-30-40t-11.25-60.25q0-16 8-30.25t 20-25.5t 24.5-21.75t 24-23t 16-25q-56.5,8 -90.5,42.5t-34,96q0,44.5 15,83l-69.5,0 q-9.5-39.5 -9.5-81q0-61 22.75-106t 62.25-70.5q-9.5-8.5 -18.5-17q-29-28.5 -50.5-62l 49-47.5q 16.5,36.5 48,67q 15.5,15 30.25,21.25\nt 34.25,7.25q-5-8 -20-26.25t-22.25-33.75t-7.25-35.5q0-23 11.75-41.75t 30.75-30.25t 41.25-17.75t 44.25-6.25q 39.5,0 74.75,17.75t 61,49t 41,76.25t 15.25,97q0,51.5 -20.25,102t-52,87.25t-72.25,59.75t-79.5,23z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lungs\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512q-6.5,0 -19-8.25t-30.25-20.75t-30.75-19q-11-5.5 -25-11.5t-22.5-9.75t-16.75-8.25t-12-9t-3.75-9.5l0-145 l-64-64l-64,64l0,145 q0,5 -3.75,9.5t-12,9t-16.75,8.25t-22.5,9.75t-25,11.5q-13,6.5 -30.75,19t-30.25,20.75t-19,8.25q-21.5,0 -26.75-30t-5.25-98q0-90 16.5-149.5\nt 47.5-106.5q 21.5-32 50-48t 46-16q 13.5,0 22.75,9.5t 9.25,22.5l0,81 l 32-32l0-113 q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5l0,113 l 32,32l0-81 q0-13 9.5-22.5t 22.5-9.5q 17.5,0 46,16t 50,48q 31,47 47.5,106.5t 16.5,149.5q0,23.5 -0.25,35t-1,29.75t-2.75,27t-5.5,18.5t-9,13.75t-13.5,4z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tooth\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,352l0,25.5 t-0.5,26t-2,27.5t-3.5,24.75t-5.75,22.75t-8.5,17t-12,12.5t-15.75,4q-4,0 -6.75-1.75t-4.5-6t-2.75-8t-1.5-11.75t-0.5-13l0-15 l0-8.5 q0-31 -0.25-45.75t-2-37.5t-5.75-33.25t-11-22.5t-18.25-16.5t-26.75-4.5t-26.75,4.5t-18.25,16.5t-11,22.5t-5.75,33.25t-2,37.5t-0.25,45.75l0,8.5 l0,15 t-0.5,13\nt-1.5,11.75t-2.75,8t-4.5,6t-6.75,1.75q-8.5,0 -15.75-4t-12-12.5t-8.5-17t-5.75-22.75t-3.5-24.75t-2-27.5t-0.5-26l0-25.5 q0-21 -10-53.5t-22-62.25t-22-68.75t-10-71.5q0-40 28-68t 68-28q 16,0 48,16t 48,16t 48-16t 48-16q 39.5,0 67.75,28t 28.25,68q0,32.5 -10,71.5t-22,68.75t-22,62.25\nt-10,53.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"marvin\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,223.5q-57,0 -133.25,7.25t-122.75,15.75q 1.5-50.5 22.5-96.25t 55-79t 80.75-52.75t 97.75-19.5t 97.75,19.5t 80.75,52.75t 55,79t 22.5,96.25q-46.5-8.5 -122.75-15.75t-133.25-7.25zM 111.5,319.5l 75-62q 38.5-2 69.5-2t 69.5,2l 75,62l 32-54q 49,5.5 79,11.5q-5.5,65 -40.75,118.75\nt-92,85t-122.75,31.25t-123-31.25t-92-85t-40.5-118.75q 30-6 79-11.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ticket\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,320l0,96 q0,13 -9.5,22.5t-22.5,9.5l-288,0 l0-16 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16 l-128,0 q-13,0 -22.5-9.5t-9.5-22.5l0-96 q 26.5,0 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75l0-96 q0-13 9.5-22.5t 22.5-9.5l 128,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-16 l 288,0 \nq 13,0 22.5,9.5t 9.5,22.5l0,96 q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75zM 192,144q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-32 zM 192,240q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,32 \nq0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-32 zM 192,336q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"removefriend\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448l-128,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 128,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 355,320q-16,13 -35,21l0,14 q-14,5 -23,17.25t-9,27.75l0,32 q0,20 14,34t 34,14l 16,0 l0,31 q-35,1 -96,1l-38,0 t-40.5-0.5t-43.5-1.25t-40-2.25t-37.75-4.25\nt-28.75-6t-20.75-8.25t-6.75-11q 1-44 55-77.75t 137-44.75l0-16.5 q-26-11.5 -45-32.5t-30-49.25t-16-60.5t-5-69.25q0-32.5 12.5-57.25t 34.5-40t 50.5-23t 62.5-7.75t 62.5,7.75t 50.5,23t 34.5,40t 12.5,57.25q0,110 -37.5,165q-17,9 -23.5,27z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"addfriend\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448l-32,0 l0,32 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-32 l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 32,0 l0-32 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,32 l 32,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5zM 355,320q-16,13 -35,21l0,14 \nq-14,5 -23,17.25t-9,27.75l0,32 q0,20 14,34t 34,14l 16,0 l0,31 q-35,1 -96,1l-38,0 t-40.5-0.5t-43.5-1.25t-40-2.25t-37.75-4.25t-28.75-6t-20.75-8.25t-6.75-11q 1-44 55-77.75t 137-44.75l0-16.5 q-26-11.5 -45-32.5t-30-49.25t-16-60.5t-5-69.25q0-32.5 12.5-57.25t 34.5-40t 50.5-23t 62.5-7.75t 62.5,7.75\nt 50.5,23t 34.5,40t 12.5,57.25q0,110 -37.5,165q-17,9 -23.5,27z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"hockey\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,384l-155.5-15.5q-3.5,0.5 -4.5-0.5l-321-321q-11-11 -14-25.25t 2.5-18.25q 4-5.5 18.25-2.5t 25.75,14l 302,302.5l 146.5-29.5q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75zM 240,448q 20,0 34,9.5t 14,22.75t-14,22.5t-34,9.25t-34-9.25t-14-22.5t 14-22.75t 34-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"whistle\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,192l-172.5,34.5q 12.5,29.5 12.5,61.5q0,43.5 -21.5,80.25t-58.25,58.25t-80.25,21.5t-80.25-21.5t-58.25-58.25t-21.5-80.25q0-58 37-102q-16.5-8 -26.75-23.5t-10.25-34.5q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25q0,0.5 -0.25,1.75t-0.25,1.75q 16-3.5 32.5-3.5l 320,0 q 8.5,0 12.75,0.25\nt 9.5,1.75t 7.5,5t 2.25,9l0,16 q0,11.5 -9.5,20t-22.5,12zM 64,96q-13.5,0 -22.75,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75t-9.25-22.75t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"curling\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,464q0,14 -17.25,26.5t-48.25,21.5l-253,0 q-31-9 -48.25-21.5t-17.25-26.5l-64-32l0-208 l 64-32q0-14 17.25-26.5t 48.25-21.5l 160,0 l-48-48l-145.5,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 160,0 q 0.5,0 1.5,0.25l 1,0.25q 3.5,0 7,1t 7.5,3.5q 1,0.5 1.5,1q 5,3.5 5.5,3.5l 102.5,102.5q 31,9 48.25,21.5\nt 17.25,26.5l 64,32l0,208 zM 96,448q0,18.5 54.5,32l 211,0 q 54.5-13.5 54.5-32l 64-34l0-127 q-33.5,15 -93.25,24t-130.75,9t-130.75-9t-93.25-24l0,127 zM 424,224l-2,0 q-25.5,14.5 -69.5,23.25t-96.5,8.75t-96.5-8.75t-69.5-23.25l-2,0 l-56,25l0,6 q 33,15 92.75,24t 131.25,9t 131.25-9t 92.75-24\nl0-6 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"stadium\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-288,0 q-13,0 -22.5-9.25t-9.5-22.75l0-416 q0-13 9.5-22.5t 22.5-9.5l 288,0 q 13,0 22.5,9.5t 9.5,22.5l0,416 q0,13.5 -9.25,22.75t-22.75,9.25zM 224,480l 96,0 l0-64 l-96,0 l0,64 zM 320,64l-96,0 l0,64 l 96,0 l0-64 zM 416,64l-64,0 l0,96 l-160,0 l0-96 l-64,0 l0,192 l 65.5,0 q 5.5-27.5 27.5-45.75t 51-18.25t 51,18.25t 27.5,45.75\nl 65.5,0 l0-192 zM 224,272q0,20 14,34t 34,14t 34-14t 14-34t-14-34t-34-14t-34,14t-14,34zM 416,288l-65.5,0 q-5.5,27.5 -27.5,45.75t-51,18.25t-51-18.25t-27.5-45.75l-65.5,0 l0,192 l 64,0 l0-96 l 160,0 l0,96 l 64,0 l0-192 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"domino\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 503.5,370.5l-133,133q-8.5,8.5 -20.5,8.5t-21-8.5l-320.5-320.5q-8.5-9 -8.5-21t 8.5-20.5l 133-133q 8.5-8.5 20.5-8.5t 21,8.5l 320.5,320.5q 8.5,9 8.5,21t-8.5,20.5zM 80.25,160.5q-6.75,0 -11.25,4.5t-4.5,11.25t 4.5,11.5t 11.25,4.75t 11.5-4.75t 4.75-11.5t-4.75-11.25t-11.5-4.5zM 176.25,64.5q-6.75,0 -11.25,4.5t-4.5,11.25\nt 4.5,11.5t 11.25,4.75t 11.5-4.75t 4.75-11.5t-4.75-11.25t-11.5-4.5zM 176.25,160.5q-6.75,0 -11.25,4.5t-4.5,11.25t 4.5,11.5t 11.25,4.75t 11.5-4.75t 4.75-11.5t-4.75-11.25t-11.5-4.5zM 176.25,256q-6.75,0 -11.25,4.75t-4.5,11.5t 4.5,11.25t 11.25,4.5t 11.5-4.5t 4.75-11.25t-4.75-11.5t-11.5-4.75zM 272.25,160.5q-6.75,0 -11.5,4.5t-4.75,11.25\nt 4.75,11.5t 11.5,4.75t 11.25-4.75t 4.5-11.5t-4.5-11.25t-11.25-4.5zM 336.25,224q-6.75,0 -11.5,4.75t-4.75,11.5t 4.75,11.25t 11.5,4.5t 11.25-4.5t 4.5-11.25t-4.5-11.5t-11.25-4.75zM 336.25,320q-6.75,0 -11.5,4.75t-4.75,11.5t 4.75,11.25t 11.5,4.5t 11.25-4.5t 4.5-11.25t-4.5-11.5t-11.25-4.75zM 336.25,416q-6.75,0 -11.5,4.75t-4.75,11.5\nt 4.75,11.25t 11.5,4.5t 11.25-4.5t 4.5-11.25t-4.5-11.5t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"dart\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 424.5,378.5l-37.5-37.5l 16.5-17q 10.5,3 27.5,7.5t 26.75,7.25t 20,7.25t 15.75,9.5q 21,21.5 18,52zM 352.5,375.5l 23-23q 18.5,20.5 42,49.75t 38,48.25l 14,19q-70-50.5 -117-94zM 117.5,220.5q-21.5-21.5 -21.5-51.75t 21.25-51.5t 51.5-21.25t 51.75,21.25t 147.5,186.75l-64,64q-165-126 -186.5-147.5zM0,0\nq 7,4.5 18.5,12t 39.5,29t 47.5,41l-23.5,23.5q-20.5-20.5 -40.75-46.75t-31-42.5t-10.25-16.25zM 378.5,424.5l 29,87q-30.5,3 -52-18q-5-5.5 -9.5-15.75t-7.25-20t-7.25-26.75t-7.5-27.5l 17-16.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bat\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.5,440l-62.5,62.5q-9.5,9.5 -23,9.5t-23.25-9.5t-9.75-23.25t 9.5-23.25l 9-9l-74.5-74.5q-19-19 -53.5-38.25t-65.25-35t-41.75-26.75l-160-160q-11.5-11 -6-40t 23.75-47.25t 47.25-23.75t 40,6l 160,160q 11,11 26.75,41.75t 35,65.25t 38.25,53.5l 74.5,74.5l 9-9q 9.5-9.5 23.25-9.5\nt 23.25,9.75t 9.5,23.25t-9.5,23z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bowlingpins\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 396.5,128q-12.5-20 -12.5-48q0-23 12.75-35.5t 35.25-12.5t 35.25,12.5t 12.75,35.5q0,28 -12.5,48l-71,0 zM 413.5,192q 2.5-9 2.5-16q0-8.5 -2-16l 36,0 q-2,7.5 -2,16q0,6.5 2.5,16l-37,0 zM 400.5,224l 63,0 q 4,8 19.5,36.5t 22.25,45.5t 6.75,30q0,22.5 -0.5,37t-2.75,38.5t-8.25,41.25t-15,27.25l-106.5,0 q 5-51.5 5-134\nq0-38.5 -9-73.5q 1-2 11-20.5t 14.5-28zM 192,512q-11-11 -18.25-32.75t-9.75-51.5t-3.25-47.5t-0.75-44.25q0-15 7-32.5t 22.5-44t 20-35.5l 93,0 q 4.5,8.5 20,35.25t 22.5,44.25t 7,32.5q0,26.5 -0.75,44.25t-3.25,47.5t-9.75,51.5t-18.25,32.75l-128,0 zM 209,128q-5.5-9.5 -8.5-16t-5.75-19.5t-2.75-28.5q0-26.5 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25q0,15.5 -2.75,28.5t-5.75,19.5t-8.5,16l-94,0 zM 133,480l-106.5,0 q-9-10 -15-27.25t-8.25-41.25t-2.75-38.5t-0.5-37q0-13 6.75-30t 22.25-45.5t 19.5-36.5l 63,0 q 3.5,7 7.75,15t 9.5,18t 8.25,15.5q-9,35 -9,73.5q0,83 5,134zM 61.5,192q 2.5-9 2.5-16q0-8.5 -2-16l 36,0 \nq-2,7.5 -2,16q0,7 2.5,16l-37,0 zM 44.5,128q-12.5-20 -12.5-48q0-23 12.75-35.5t 35.25-12.5t 35.25,12.5t 12.75,35.5q0,28 -12.5,48l-71,0 zM 222,192q 2-9 2-16q0-8.5 -1.5-16l 67,0 q-1.5,7.5 -1.5,16q0,7 2,16l-68,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"soup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 304,224q0,17.5 4.5,41.5q 0.5,2.5 8.25,17.75t 13.5,36.75t 5.75,48l-32,0 q0-0.5 -0.75-9t-2-17.75t-3-20t-4.25-20t-6-13.25q-11.5-12 -13.75-23.75t-2.25-40.25q0-40 18.75-68t 45.25-28q 7.5,0 16,3q-21,8.5 -34.5,34t-13.5,59zM 208,102q0,19 4.5,44.5q 27.5,31 27.5,84q0,87.5 -16,121.5\nq-16-72.5 -16-121.5q0-38.5 -4.5-44.5q-27.5-31 -27.5-84q0-42 18.75-72t 45.25-30q 7.5,0 16,3.5q-21,8.5 -34.5,36t-13.5,62.5zM 422.5,450.5q-10.5,25 -27.25,43.25t-35.25,18.25l-208,0 q-18.5,0 -35.5-18.5t-27.5-44q-8.5-5 -25.5-14.5t-25.5-14.5t-19-12.25t-15-13t-4-11.25l 512,0 q0,7.5 -4.5,14.5t-14.75,14t-19.25,11.75\nt-25.25,13t-25.75,13.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"foodtray\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,384l-480,0 q-6.5,0 -11.25-4.75t-4.75-11.25q0-94 58.25-160.25t 149.75-79.75q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75t-11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75t-11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75\nq 91.5,13.5 149.75,79.75t 58.25,160.25q0,6.5 -4.75,11.25t-11.25,4.75zM 16,416l 480,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-480,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pretzel\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,448q-51.5,0 -99.25-17.5t-82-46.25t-54.5-67t-20.25-78.75q0-31 8.75-61.75t 24-56t 38.75-41t 50.5-15.75q 56.5,0 134,58q 77.5-58 134-58q 27,0 50.5,15.75t 38.75,41t 24,56t 8.75,61.75q0,40.5 -20.25,78.75t-54.5,67t-82,46.25t-99.25,17.5zM 357,362q-13-45.5 -39.75-89.25\nt-61.75-77.75q-34.5,33.5 -61,77.5t-39.5,89.5q 47,22 101,22t 101-22zM 64,244.5q0,41 33.5,76.5q 16-45.5 43.75-87.75t 63.75-73.75q-53-31.5 -77-31.5q-17,0 -29.75,10.25t-20,27.75t-10.75,37.25t-3.5,41.25zM 384,128q-24,0 -77,31.5q 36,31.5 63.75,73.75t 43.75,87.75q 33.5-35.5 33.5-76.5\nq0-29 -6.5-54.5t-21.5-43.75t-36-18.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"chef\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 479,223q-7.5,8 -15.5,17t-20.25,24t-19.75,30t-7.5,26q0,13.5 -46.75,22.75t-113.25,9.25t-113.25-9.25t-46.75-22.75q0-14.5 -13.5-36.25t-25.25-35t-23.25-24.75q-34-33 -34-80q0-46.5 32.75-79.25t 79.25-32.75q 11.5,0 24,2.5q-8,20.5 -8,45.5q0,53.5 33,89q-1-27 -1-57q0-46.5 28-79.25\nt 68-32.75t 68,32.75t 28,79.25q0,30.5 -1,57q 33-35.5 33-89q0-25 -8-45.5q 12.5-2.5 24-2.5q 46.5,0 79.25,32.75t 32.75,79.25t-33,79zM 255.75,384q 66.25,0 113.25-9.5t 47-22.5l0,32 l0,96 q0,13 -47,22.5t-113.25,9.5t-113-9.5t-46.75-22.5l0-96 l0-32 q0,13.5 46.75,22.75t 113,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"taco\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507.5,165.5l-340.5,342q-5,4.5 -11.5,4.5t-11.5-4.5q-41.5-42 -61.75-93.5t-18.5-101t 21.25-95.5t 54-80q 34.5-33.5 80.5-52.5t 95.25-21t 100.5,18t 92.25,61q 4.5,4.5 4.5,11.25t-4.5,11.25zM 30.5,376.5q-40.5-80.5 -27-163.25t 71.5-139.75t 141-70t 163,27q-39,0.5 -71.5,3.5t-69.25,11t-69,24.5t-56.75,40.5\nq-26,26 -43.25,57.25t-25.25,67.5t-10.75,68.25t-2.75,73.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"hotdog\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 504,371.5l-363.5-363.5q 6-6 20.25-7.25t 30.75,2.25t 34.25,12.5t 30.25,21.5l 219,219q 12.5,12.5 21.5,31t 12.75,35.25t 2.5,30.75t-7.75,18.5zM 494,494q-18,18 -43.5,18t-43.5-18l-389-389q-18-18 -18-43.5t 18-43.5t 43.5-18t 43.5,18l 389,389q 18,18 18,43.5t-18,43.5zM 371.5,503.5q-4.5,7 -18.5,8.25t-30.75-2.5\nt-35.25-12.75t-31-21.5l-218.5-219q-12.5-12.5 -21.75-31t-12.75-35.5t-2.25-30.75t 7.75-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tea\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 339,416l-166,0 q-23.5-16.5 -44.5-38q-17,6 -32.5,6q-40,0 -68-28.25t-28-67.75q0-31.5 18.5-56.5t 47.5-34.5q 0.5-3.5 0.5-5l 189.5,0 l0,73.5 l-64,37l 47,81.5l 81-47l-32-55.5l0-89.5 l 157.5,0 q 2.5,17.5 2.5,64q0,22.5 -10.5,47t-27.5,45.5t-34.75,37.75t-36.25,29.75zM 64,256q0-7 0.5-23.5q-15,8.5 -23.75,23.25\nt-8.75,32.25q0,26.5 18.75,45.25t 45.25,18.75q 2,0 8-1q-40-50.5 -40-95zM 288,96q0,11.5 4.5,27.5q 19.5,13.5 25.5,36.5l-32,0 q-1-7 -2.5-12q-27.5-19 -27.5-52q0-26.5 18.75-45.25t 45.25-18.75q 7,0 16,2q-21,5.5 -34.5,22.5t-13.5,39.5zM 192,64q0,11.5 4.5,27.5q 27.5,19.5 27.5,52.5q0,7 -2.5,16l-32,0 q 2.5-9 2.5-16\nq0-12 -4.5-28q-27.5-19 -27.5-52q0-26.5 18.75-45.25t 45.25-18.75q 7.5,0 16,2q-21,5.5 -34.5,22.5t-13.5,39.5zM 384,512l-256,0 q-27.5,0 -58-10.75t-50.25-26t-19.75-27.25l 512,0 q0,12 -19.75,27.25t-50.25,26t-58,10.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"donut\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,160q-40,0 -68,28t-28,68t 28,68t 68,28t 68-28t 28-68\nt-28-68t-68-28zM 432,287.5q-18,0 -31.25,8.5t-16.75,24q0,32 15,50.5q 1,7 1,13.5q0,10 -15.25,21t-32.75,11q-18,0 -33-10.25t-15-21.75q0-3 1-9.5q-23.5,9.5 -49,9.5q-1,0 -8-0.5q 8,17 8,32.5q0,10 -15.25,21t-32.75,11q-18,0 -33-10.25t-15-21.75q0-14.5 7.5-38.5q 10-5.5 16.5-15.5\nq-39-27 -51.5-72.5q-16,3.5 -26.25,16.5t-10.25,29.5q0,5.5 1.5,11q-0.5,0 -0.75,0.25l-0.25,0.25l 3,4.5q 9.5,13.5 14.25,21t 9.5,20t 4.75,23.5q0,4.5 -4.25,6.75t-12.75,4.25q 63,53 145,53q 77.5,0 138-47.75t 79-121.25q-6.5-10.5 -17.25-17t-23.75-6.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"circleright\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25\nt 70,70t 96.25,25.75t 96.25-25.75t 70-70t 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 343.5,279.5q-5,5 -14,7.5l-88.5,88.5q-8.5,8.5 -20.5,8.5t-20.5-8.5t-8.5-20.5t 8.5-20.5l 79-78.5l-79-79q-8.5-8.5 -8.5-20.5t 8.5-20.5t 20.5-8.5t 20.5,8.5l 89,89q 8.5,2 13.5,7q 9.5,9.5 8,24\nq 1.5,14 -8,23.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"circleup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25\nt 70,70t 96.25,25.75t 96.25-25.75t 70-70t 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 335,312l-79-78.5l-78.5,78.5q-8.5,8.5 -20.5,8.5t-20.5-8.5t-8.5-20.5t 8.5-20.5l 88.5-88.5q 2.5-9 7.5-14q 9.5-9.5 23.5-8q 14.5-1.5 24,8q 5,5 7,13.5l 89,89q 8.5,8.5 8.5,20.5t-8.5,20.5t-20.5,8.5t-20.5-8.5z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"circledown\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25\nt 70,70t 96.25,25.75t 96.25-25.75t 70-70t 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 287,330q-2,8.5 -7,13.5q-9.5,9.5 -24,8q-14,1.5 -23.5-8q-5-5 -7.5-14l-88.5-88.5q-8.5-8.5 -8.5-20.5t 8.5-20.5t 20.5-8.5t 20.5,8.5l 78.5,79l 79-79q 8.5-8.5 20.5-8.5t 20.5,8.5t 8.5,20.5t-8.5,20.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"circleleft\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25\nt 70,70t 96.25,25.75t 96.25-25.75t 70-70t 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 312,375.5q-8.5,8.5 -20.5,8.5t-20.5-8.5l-88.5-88.5q-9-2.5 -14-7.5q-9.5-9.5 -8-23.5q-1.5-14.5 8-24q 5-5 13.5-7l 89-89q 8.5-8.5 20.5-8.5t 20.5,8.5t 8.5,20.5t-8.5,20.5l-78.5,79l 78.5,78.5q 8.5,8.5 8.5,20.5\nt-8.5,20.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"vendetta\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 466.5,352q-12.5,30 -38.5,60.25t-54,51.5t-55.5,34.75t-45,13.5q-24.5,0 -62.25-22.5t-74.5-60.25t-56.75-77.25q-16-32 -16-224q0-32 16.5-57t 45.75-40.25t 66.5-23t 81-7.75t 80.5,7.75t 65.25,23t 44.5,40.25t 16,57q0,192 -13.5,224zM 272,480q 5.5,0 9.25-10.5t 5-27t 1.5-25.25t 0.25-17.25\nq0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25q0,8.5 0.25,17.25t 1.5,25.25t 5,27t 9.25,10.5zM 160,96q-26.5,0 -45.25,12.25t-18.75,29.25q0,1.5 1,5.5q 3-11.5 21.25-21.25t 41.75-9.75q 18,0 39.25,5.75t 38.25,17.25t 18,25l 0.25-0.75l 0.25-0.75q0-19.5 -17-34.5t-38.25-21.5t-40.75-6.5zM 128,176\nq0,6.5 14,11.25t 34,4.75t 34-4.75t 14-11.25t-14-11.25t-34-4.75t-34,4.75t-14,11.25zM 272,288q-16.5,0 -29.25-6.75t-17.25-17.25q-1.5,4.5 -1.5,8q0,10 8.75,18.25t 22.75,11.75q-21.5,18 -55.5,18q-26,0 -46-11.25t-24.5-28.25q-1.5,4.5 -1.5,7.5q0,23 22.5,35.5t 57.5,12.5q 39,0 64-13.5q 25,13.5 64,13.5\nq 35,0 57.5-12.5t 22.5-35.5q0-3 -1.5-7.5q-4.5,17 -24.5,28.25t-46,11.25q-34,0 -55.5-18q 14-3.5 22.75-11.75t 8.75-18.25q0-3.5 -1.5-8q-4.5,10.5 -17.25,17.25t-29.25,6.75zM 416,176q0-6.5 -14-11.25t-34-4.75t-34,4.75t-14,11.25t 14,11.25t 34,4.75t 34-4.75t 14-11.25zM 384,96q-19.5,0 -40.75,6.5t-38.25,21.5\nt-17,34.5l 0.25,0.75l 0.25,0.75q 1-13.5 18-25t 38.25-17.25t 39.25-5.75q 23.5,0 41.75,9.75t 21.25,21.25q 1-4 1-5.5q0-17 -18.75-29.25t-45.25-12.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"parentheses\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-32,0 q 64-80 64-256t-64-256l 32,0 q 45.5,42.5 70.75,108.25t 25.25,147.75t-25.25,147.75t-70.75,108.25zM 96,0l 32,0 q-64,80 -64,256t 64,256l-32,0 q-45.5-42.5 -70.75-108.25t-25.25-147.75t 25.25-147.75t 70.75-108.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"webplatform\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 493.5,493.5q-19,18.5 -45.5,18.5q-2,0 -8-1l-2,0 l-2,0 q-20.5-4 -35-20l-145-144.5l-145,144.5q-14.5,16 -35,20l-2,0 l-2,0 q-6,1 -8,1q-26.5,0 -45.5-18.5q-20.5-21 -18.5-51l0-378 q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25l0,228.5 l 82-82q 19-19 46-18.5q 27-0.5 46,18.5l 82,82l0-228.5 \nq0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25l0,378 q 2,30 -18.5,51zM 64.25,32.5q-13.25,0 -22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5t 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25zM 64.25,416q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5z\nM 255.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 447.75,32.5q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 447.75,416q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5\nt-9.5-22.75t-22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"visa\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448l-448,0 q-13,0 -22.5-9.25t-9.5-22.75l0-64 l 512,0 l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM0,96q0-13 9.25-22.5t 22.75-9.5l 448,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,32 l-512,0 l0-32 zM 164.5,320l 26-160l 41.5,0 l-26,160l-41.5,0 zM 429,160l 33.5,0 l 33.5,160l-38.5,0 l-9.5-16l-48,0 l-9,16l-43.5,0 l 62-148l 0.5-1.25t 2-3t 3.5-3.5\nt 5.5-3t 8-1.25zM 448,272l-14.5-68.5l-17.5,68.5l 32,0 zM 279,320q-12.5,0 -24.5-2.25t-17-4.25l-5.5-2l 6-35q 8.5,7 25,9.75t 30.25-0.5t 13.75-13.25q0-6.5 -9-12.75t-20-10.75t-20-14.5t-9-23.5q0-14.5 7.75-25.5t 19.75-16t 22.5-7.25t 20-2.25q 8.5,0 18,1.75t 14.5,3.25l 5,1.5l-6,33.5q-13-8 -35.75-7.25\nt-22.75,12.75q0,6 9.25,11.75t 20.25,10.5t 20,15.25t 9,24q0,18 -12.25,30.75t-27.75,17.5t-31.5,4.75zM 51,160q 8,0 12.75,3.75t 5.75,7.25l 1,3.5l 14,72l 5,23.5l 39.5-110l 45,0 l-66.5,160l-43.5,0 l-36-139q-11-6.5 -28-12l0-9 l 51,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"angrybirds\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,320q0,54.5 -34,101.5q 4.5,26.5 -4.5,24.5q-2.5-0.5 -6.5-4.5q-0.5-0.5 -1.75-1.5t-1.25-1.5q-31.5,34.5 -77.5,54t-98.5,19.5q-78.5,0 -139-41.5t-78.5-105.5q-40.5-7 -62-16q-5-2.5 -7.25-5t-1-6t 2.75-6.25t 5.5-7.75l 2.5-2.5q 0.5-0.5 2.75-3.75t 2.75-3.75t 2.75-3t 3-3l 3-2t 3.5-1.5t 3.5-0.25t 4.5,0.25t 4.75,2q 7.5,3 22.5,12.5\nq0-8 1-16q-13-11.5 -26.75-27t-18.75-23q-1.5-2 -2.25-3.75t-1.25-3.25t0-3t 0.75-2.5t 1.75-2.25t 2-1.75t 2.75-1.75t 3-1.5t 3.75-1.5t 3.5-1.75q 1-0.5 4.25-2t 4-1.75t 3.5-1.25t 3.75-1t 3.25-0.25t 3.5,0.5t 3,1.5t 3.25,2.5t 3,4.25q 4,6 11.5,21q 18-50 58.25-90.25t 91.75-57.25q-11-3 -26.75-3t-26.25-1t-13.5-6q-1.5-2.5 -2.25-4.25\nt-0.75-3.5l0-3 t 1.25-2.75t 1.75-2.25t 3-2.25t 3.5-2.25t 4.5-2.5l 4.5-2.25q 12.5-6.5 27-7t 29,4.5t 27.5,11.75t 25.5,15.75l 1.75,0 l 1.75,0 q 3,0 17,1l-1-1q-6.5-13 -19-25.75t-20.75-21.75t-8.25-16.5q0-13 9.5-22.5t 22.5-9.5q 16.5,0 31.5,9.75t 25.5,24t 19,31.5t 12.75,31t 6.25,24.25q 52,27.5 87,76.5l 10-5l 32,48l-15.5,6\nq 15.5,38 15.5,74zM 448,400q0-7 -22.5-27.5t-29.5-20.5q-10.5,0 -27.25,4.75t-16.75,11.25q0,5.5 2.5,9t 8.25,5t 9.75,1.75t 11.5,0.25q 16.5,0 50,14.5q 14,6.5 14,1.5zM 388,448q 12,0 39.5-27.5q-12.5-4 -27.75-7.75t-34.5-7.5t-25.75-5.25q 7,15 24,31.5t 24.5,16.5zM 454,261.5l-66.5,25.5q-3.5,8.5 -3.5,17\nq0-8.5 -3.5-17l-66.5-25.5q-12,6.5 -19,17.75t-7,24.75q0,20 14,34t 34,14t 34-14t 14-34q0,20 14,34t 34,14t 34-14t 14-34q0-13.5 -7-24.75t-19-17.75zM 432,320q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 336,320q-6.5,0 -11.25-4.75\nt-4.75-11.25t 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"drwho\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 467.5,86.5l0,336.5 q0,6.5 13.5,16q 8.5,5.5 4.5,8l-2,1l-166,60q-17,7 -29.5,2.25t-12.5-18.75l0-470.5 q0-14 12.5-19t 29.5,1.5l 22,8l0,388.5 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-376.5 l 32,11.5l0,333 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-321.5 l 48,17.5q 6.5,2.5 -1,7\nq-13,7.5 -14.5,12.5q-0.5,1.5 -0.5,3zM 201.5,508l-166-60q-6.5-3 1.5-8.5q 12.5-9 14-13.5q 0.5-1.5 0.5-3l0-336.5 q0-7 -13.5-14.5q-8-5 -4.5-7l 2-1l 166-60.5q 17-6.5 29.5-1.5t 12.5,19l0,470.5 q0,13.5 -12.5,18.5t-29.5-2zM 147.5,112q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,288 q0,6.5 4.75,11.25t 11.25,4.75\nt 11.25-4.75t 4.75-11.25l0-288 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"warcraft\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,380l0,84 q0,6.5 -4.75,11.25t-11.25,4.75l-84,0 q-58,32 -124,32t-124-32l-84,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-84 q-32-58 -32-124t 32-124l0-84 q0-6.5 4.75-11.25t 11.25-4.75l 84,0 q 58-32 124-32t 124,32l 84,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,84 q 32,58 32,124t-32,124zM 256,64\nq-42,0 -79,17t-64,47l 47,0 l 32,0 l-25.5,25.5l 37.5,151.5l 52-145l 51.5,145l 38-151.5l-25.5-25.5l 32,0 l 47,0 q-27-30 -64-47t-79-17zM 413.5,146.5l-3,3l-53,213l 10.5,21.5l-16,0 l-16,0 l-48,0 l-16,0 l 9.5-19l-25.5-77l-25.5,77l 9.5,19l-16,0 l-48,0 l-16,0 l-16,0 l 10.5-21.5l-53-213l-3-3q-34.5,50 -34.5,109.5\nq0,52 25.75,96.25t 70,70t 96.25,25.75t 96.25-25.75t 70-70t 25.75-96.25q0-59.5 -34.5-109.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"alienware\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-19.5,0 -44.5-14.25t-50.75-41.25t-47.5-61.5t-35.5-79.75t-13.75-91.25q0-48.5 12.25-89t 35.75-70.75t 60.25-47.25t 83.75-17t 83.75,17t 60.25,47.25t 35.75,70.75t 12.25,89q0,46 -13.75,91.25t-35.5,79.75t-47.5,61.5t-50.75,41.25t-44.5,14.25zM 192,320q-18.5-23.5 -44.5-35.75t-51.5-12.25\nq0,23.5 14,55.25t 34,56.75q 9.5,11.5 18.25,18.5t 20,9.75t 18.75,3.25t 23,0.5q0-56 -32-96zM 320,320q-32,40 -32,96q 15.5,0 23-0.5t 18.75-3.25t 20-9.75t 18.25-18.5q 20-25 34-56.75t 14-55.25q-25.5,0 -51.5,12.25t-44.5,35.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"monstersinc\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 352,448l-21.5-96l-26.5,96l-96,0 l-26.5-96l-21.5,96l-160,0 l 64-384l 160,0 l 32,96q-46.5,0 -85.25,26.25t-58.75,69.75q 20,43.5 58.75,69.75t 85.25,26.25t 85.25-26.25t 58.75-69.75q-20-43.5 -58.75-69.75t-85.25-26.25l 32-96l 160,0 l 64,384l-160,0 zM 256,320q-26.5,0 -45.25-18.75\nt-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"walle\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5q0-52 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 416,320l-240,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 208,0 l0-64 l-208,0 \nq-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 240,0 l0-64 l-256,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,128 q0,26.5 18.75,45.25t 45.25,18.75l 256,0 l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"halo\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 285,224l 19,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-19,0 q-5,14 -17.25,23t-27.75,9q-20,0 -34-14t-14-34t 14-34t 34-14q 15.5,0 27.75,9t 17.25,23zM 496,256l-17,0 q-4.5,50.5 -35.75,93.25t-80.75,68.75t-106.5,29.5l0,16.5 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75\nt-4.75-11.25l0-49 q-53-4 -96-29.5l0-38 q 48.5,36.5 112,36.5q 37,0 68.5-7.75t 55.75-23t 38-40.25t 13.75-57q0-43.5 -23.5-80.25t-64-58.25t-88.5-21.5t-88.5,21.5t-64,58.25t-23.5,80.25l-32,0 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 19,0 q 9-49 42.5-87.75t 82.5-57.25l0-26.5 q 46-20.5 96-20.5\nq 58,0 107.75,25.5t 80.5,69.5t 34.75,97l 17,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"halflife\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25\nt 70,70t 96.25,25.75t 96.25-25.75t 70-70t 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 304,384l-46.5-149l-81.5,149l-48,0 l 114-199l-8-25l-42,0 l0-32 l 32,0 l 32,0 l 16,0 l 71.5,200l 40.5-8l 16,32z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"atari\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,480q-51.5,0 -92.25-26t-62.25-69.5t-21.5-96.5l0-240 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,176 q0,36.5 10.25,68.75t 26.5,54.25t 35.75,38t 38,23.5t 33.5,7.5q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 272,480l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-416 \nq0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,416 q0,6.5 -4.75,11.25t-11.25,4.75zM 16,480q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75q 15,0 33.5-7.5t 38-23.5t 35.75-38t 26.5-54.25t 10.25-68.75l0-176 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,240 \nq0,53 -21.5,96.5t-62.25,69.5t-92.25,26z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"zelda\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 506,480l-244,0 q-10-9 -3.5-15.5l 116-205q 4-3.5 9.5-3.5t 9.5,3.5l 116,205q 6.5,6 -3.5,15.5zM 134,256q-10-9 -3.5-15.5l 116-205q 4-3.5 9.5-3.5t 9.5,3.5l 116,205q 6.5,6 -3.5,15.5l-244,0 zM 253.5,464.5q 6.5,6 -3.5,15.5l-244,0 q-10-9 -3.5-15.5l 116-205q 4-3.5 9.5-3.5t 9.5,3.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"oneup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,384l0,32 q0,42 -25,69t-71,27l-192,0 q-46,0 -71-27t-25-69l0-32 q-24,0 -44-20t-20-44l0-64 q0-52 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5l0,64 q0,24 -20,44t-44,20zM 96,416q0,26.5 18.75,45.25t 45.25,18.75l 192,0 \nq 26.5,0 45.25-18.75t 18.75-45.25l0-35 l-0.5,0 l-0.5,0 q-3.5-11 -25.75-20t-37.25-9l-32,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-64,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-32,0 q-15,0 -37.5,9t-25.5,20l-0.5,0 l-0.5,0 l0,35 zM 73.5,129q-41.5,59 -41.5,127l0,21 \nq 15,11 32,11q 26.5,0 45.25-23.5t 18.75-56.5q0-30 -15.75-52.25t-38.75-26.75zM 223,35q-66,10 -116.5,56.5q 8.5,17 22.75,26.75t 30.75,9.75q 26.5,0 45.25-23.5t 18.75-56.5q0-5.5 -1-13zM 160,240q0,33 28,56.5t 68,23.5t 68-23.5t 28-56.5t-28-56.5t-68-23.5t-68,23.5t-28,56.5zM 289,35\nq-1,7.5 -1,13q0,33 18.75,56.5t 45.25,23.5q 16.5,0 30.75-9.75t 22.75-26.75q-50.5-46.5 -116.5-56.5zM 480,256q0-68 -41.5-127q-23,4.5 -38.75,26.75t-15.75,52.25q0,33 18.75,56.5t 45.25,23.5q 16.5,0 32-11l0-21 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"oneupalt\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,352l-16,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,80 q0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75l-288,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-80 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-16,0 q-6.5,0 -11.25-4.75t-4.75-11.25\nl0-160 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 l0-48 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75l 160,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 16,0 \nq 6.5,0 11.25,4.75t 4.75,11.25l0,48 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,160 q0,6.5 -4.75,11.25t-11.25,4.75zM 96,432q0,6.5 4.75,11.25t 11.25,4.75l 16,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75l 224,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-16 l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 q0-6.5 -4.75-11.25t-11.25-4.75l-16,0 l0-16 \nq0-6.5 -4.75-11.25t-11.25-4.75l-48,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-64,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,16 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 zM 176,192q-6.5,0 -11.25,4.75t-4.75,11.25\nl0,64 q0,6.5 4.75,11.25t 11.25,4.75l 16,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-16 l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 q0-6.5 -4.75-11.25t-11.25-4.75l-16,0 l0-16 q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,16 l-16,0 zM 112,160l-16,0 l0-16 q0-6.5 -4.75-11.25\nt-11.25-4.75t-11.25,4.75t-4.75,11.25l0,48 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-16 l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-64 q0-6.5 -4.75-11.25t-11.25-4.75zM 224,48q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16 l-48,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-16 l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 384,80q0-6.5 -4.75-11.25t-11.25-4.75l-48,0 l0-16 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 16,0 l0,16 \nq0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 480,208q0-6.5 -4.75-11.25t-11.25-4.75l-16,0 l0-48 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75l 16,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 \nq 6.5,0 11.25-4.75t 4.75-11.25l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pisces\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,64q-96,23.5 -96,192t 96,192q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5q-48-8 -83.25-40t-53.25-78.5t-22.5-105.5l-130,0 q-4.5,59 -22.5,105.5t-53.25,78.5t-83.25,40q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25q 96-23.5 96-192t-96-192q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5\nt 22.5-9.25q 48,8 83.25,40t 53.25,78.5t 22.5,105.5l 130,0 q 4.5-59 22.5-105.5t 53.25-78.5t 83.25-40q 13,0 22.5,9.25t 9.5,22.75t-9.25,22.75t-22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"aquarius\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 452.5,208l-72-95.5l-98.5,99l-0.25,0.25l-0.25,0.25l-3.5,3l-0.5,0.5l-0.75,0.75l-1.75,1.75t-2.5,2q-2,1 -5,2q-5,2 -10.5,2l-2.5,0 q-4,0 -8-1.5q-3.5-1 -7.5-3.5q-2-1.5 -2.5-1.75t-1.75-1t-1.75-1.25q-5-5 -7.5-13l-44.5-88.5l-126.5,101.5q-9.5,9.5 -22.75,9.5t-22.5-9.5t-9.25-22.75t 9.5-22.25l 160.5-129\nq 9.5-9 22.5-9t 22.5,9q 1.5,1.5 4.5,7l 0.5,0.5l 0.5,0.5q 1.5,4 2,4l 42.5,85l 96.5-97q 9.5-9 22.75-9t 22.75,9q 1.5,1.5 4.5,7l0,0.25 t 0.5,0.25l 95.5,127.5q 7,11.5 3.5,24.25t-15,19.5t-24.25,3.25t-19.25-15zM 170,297q 9.5-9.5 22.5-9.5t 22.5,9.5q 1.5,1.5 4.5,7l 0.25,0 t 0.25,0.5l 0.5,0.5q 1.5,3.5 2,4l 42.5,85l 97-97\nq 9-9.5 22.25-9.5t 22.75,9.5q 1.5,1.5 4.5,7l 0.5,0.5l 95.5,127q 7,11.5 3.5,24.5t-15,19.5t-24.25,3.25t-19.25-14.75l-72-95.5l-98.5,98.5l-0.5,0.5l-3.5,3q0,0.5 -0.5,0.75t-0.75,0.5l-1.75,1.75t-2.5,2q-2,1 -5,2q-5,2 -10.5,2q-1.5,0.5 -2.5,0.5q-3.5-0.5 -8-1.5q-3.5-1.5 -7.5-4q-2-1 -2.5-1.5t-1.75-1.25t-1.75-1.25\nq-5-4.5 -7.5-12.5l-44.5-89l-126.5,101.5q-9.5,9.5 -22.75,9.5t-22.5-9.25t-9.25-22.5t 9.5-22.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"capricorn\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 400,480q-46,0 -80-32.5q-47,64.5 -128,64.5q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25q 10.5,0 16.25-0.25t 15.5-2t 16.5-5.75t 15.5-10.75t 16.5-18.25t 15.75-27l-27.5-305.5q-29,31 -48.75,112t-19.75,161.5q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5q0-64.5 -12.75-130.75t-35.25-111.75t-48-45.5\nq-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25q 25,0 49.75,24t 43.75,61t 34.5,84.5q 21-65 49.75-110.5t 60.75-56q 6-3 12.5-3q 0.5,0 1.25,0.25t 1,0t 1.25-0.25l 1.5,0 l0,0.5 q 25,2.5 32,31.5l 22.5,246q 28-22 57.5-22q 46.5,0 79.25,32.75t 32.75,79.25t-32.75,79.25t-79.25,32.75zM 400,320q-18.5,0 -33.25,20.5\nt-14.75,37q0,15 14.25,26.75t 33.75,11.75q 20,0 34-14t 14-34t-14-34t-34-14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sagitarius\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480.25,288.5q-13.25,0 -22.75-9.5t-9.5-22.5l0-147 l-210.5,211l 73,73q 9.5,9.5 9.5,22.75t-9.5,22.75t-22.75,9.5t-22.75-9.5l-73.5-73l-136.5,136.5q-9.5,9.5 -22.75,9.5t-22.75-9.5t-9.5-22.75t 9.5-22.75l 136.5-136.5l-72.5-73q-9.5-9.5 -9.5-22.75t 9.5-22.75t 22.75-9.5t 22.75,9.5l 73,72.5l 210-210l-146,0 \nq-13,0 -22.25-9.5t-9.25-22.75t 9.25-22.5t 22.25-9.25l 224,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,224 q0,13 -9.25,22.5t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"scorpio\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 509,456.5l-46,52q-3,3.5 -7.5,3.5t-7.5-3.5l0-29 q-32-2.5 -60.25-13.5t-48-33t-19.75-51l0-196 l0-74 q0-20 -14-34t-34-14t-34,14t-14,34l0,55 l0,249 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-230 l0-74 q0-20 -14-34t-34-14t-34,14t-14,34l0,55 l0,249 q0,13.5 -9.25,22.75\nt-22.5,9.25t-22.75-9.25t-9.5-22.75l0-384 q0-13 9.5-22.5t 22.5-9.5q 11.5,0 20.25,7.25t 11.25,18.25q 27.5-25.5 64.5-25.5q 24.5,0 45.5,11.75t 34,31.75q 13.5-20 34.5-31.75t 46-11.75q 38,0 65.5,26t 30,63.5q 0.5,3.5 0.5,6.5l0,252 q0,17 6.5,30t 17.25,20.25t 20.25,10.75t 20,5.5l0-27 q 3-3.5 7.5-3.5t 7.5,3.5l 46,52q 3,3.5 3,8.5\nt-3,8.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"libra\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,384l-160,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25q 7.5,0 23.25-25t 28.25-56.25t 12.5-46.75q0-53 -37.5-90.5t-90.5-37.5t-90.5,37.5t-37.5,90.5q0,15.5 12.5,46.75t 28.25,56.25t 23.25,25q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-160,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5\nt 22.75-9.25l 75.5,0 q-19.5-30.5 -31.5-65.5t-12-62.5q0-52 25.75-96.25t 70-70t 96.25-25.75t 96.25,25.75t 70,70t 25.75,96.25q0,27.5 -12,62.5t-31.5,65.5l 75.5,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 32,448l 448,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-448,0 \nq-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"virgo\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 460,389.5q-14,29.5 -37.5,53.5l 9,10.5q 11.5,6.5 15,19t-3.25,23.75t-19.75,14.75t-25-3q-12-9.5 -27-25q-23.5,14.5 -46.75,21.75t-36.75,7.25t-22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5q 20,0 46.5-14q-14.5-27.5 -14.5-52l0-195.5 l0-74.5 q0-19.5 -14.25-33.5t-34-14t-33.75,14t-14,33.5l0,304 \nq0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-229.5 l0-74.5 q0-19.5 -14-33.5t-34-14t-34,14t-14,33.5l0,55.5 l0,248.5 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-383.5 q0-13.5 9.25-22.75t 22.75-9.25q 11.5,0 20.25,7.25t 11.25,18.25q 27.5-25.5 64.5-25.5q 24.5,0 45.5,11.75t 34,31.75\nq 13-20 34.25-31.75t 46.25-11.75q 32,0 57.25,19.25t 33.75,49.25q 23-20.5 52.5-20.5q 32.5,0 55.5,23t 24.5,56l0,0.5 q0,1.5 0.25,16.25t 0.25,24.5t-1,29.5t-2.75,35.25t-5.75,37.5t-9.25,40.25t-13.75,39.25t-19.5,39zM 415.5,96.5q-32,0 -32,47.5l0,204 q0,17.5 7,37.5q 16-20.5 26.5-43q 21.5-47.5 30.5-112.5l0-86 \nq0-47.5 -32-47.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"leo\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 432,512q-46.5,0 -79.25-42.25t-32.75-101.75l0,0 l0,0 q0-5.5 0.5-14.25t 4.5-30.25t 11-35.5q 16-32 16-80l0-32 q0-46.5 -32.75-79.25t-79.25-32.75t-79.25,32.75t-32.75,79.25q0,26 11.25,48.75t 31.25,38.75q 38,13.5 61.75,46.25t 23.75,74.25q0,53 -37.5,90.5t-90.5,37.5t-90.5-37.5t-37.5-90.5\nq0-41.5 24.25-74.75t 62.75-46.25q-23-40.5 -23-87q0-48 23.5-88.5t 64-64t 88.5-23.5t 88.5,23.5t 64,64t 23.5,88.5l0,48 q0,16.5 -16,57.25t-16,54.75l0,32 q0,33 14,56.5t 34,23.5q 21.5,0 48-22l0,75 q-25.5,11 -48,11zM 64,384q0,26.5 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25\nt-45.25-18.75t-45.25,18.75t-18.75,45.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cancer\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 272,480q 16-32 16-80q 46-26.5 80.75-64.75t 54.75-85.75q-19.5,6.5 -39.5,6.5q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5q0,50 -14.25,99.25t-38.25,89.75t-54.75,74.5t-65,56.5t-67.75,32zM 384,64q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75\nt 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75zM 88.5,262.5q 19-6.5 39.5-6.5q 53,0 90.5,37.5t 37.5,90.5t-37.5,90.5t-90.5,37.5t-90.5-37.5t-37.5-90.5q0-50 14.25-99.25t 38.25-89.75t 54.75-74.5t 65-56.5t 67.75-32q-16,32 -16,80q-46,26.5 -80.75,64.75t-54.75,85.75zM 64,384q0,26.5 18.75,45.25\nt 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"gemini\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,64l-64,0 q-3.5,11 -8.75,29.5t-14.25,69.25t-9,93.25q0,27 3.25,56.5t 8,52.75t 9.5,42.25t 8,30t 3.25,10.5l 64,0 q 13,0 22.5,9.25t 9.5,22.5t-9.25,22.75t-22.75,9.5l-448,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.25-22.5t 22.75-9.25l 64,0 q 3.5-11 8.75-29.5t 14.25-69.25t 9-93.25q0-27 -3.25-56.5\nt-8-52.75t-9.5-42.25t-8-30t-3.25-10.5l-64,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.25-22.75t 22.75-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.75t-9.25,22.5t-22.75,9.25zM 164,64q 3,11 7.75,29.5t 12.5,69.25t 7.75,93.25q0,90.5 -27,189l-1,3l 184,0 q-3-11 -7.75-29.5t-12.5-69.25t-7.75-93.25q0-90.5 27-189l 1-3\nl-184,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"taurus\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,96q-6,0 -11-5t-5-11q0-6.5 -10.5-11.25t-21.5-4.75q-8,0 -15.5,3.25t-14.75,10.75t-13.25,15t-13.25,20.75t-12.25,22.75t-12,26.75t-11,27t-11.5,28.25q 33,22 52.25,57.25t 19.25,76.25q0,43.5 -21.5,80.25t-58.25,58.25t-80.25,21.5t-80.25-21.5t-58.25-58.25t-21.5-80.25\nq0-41 19.25-76.25t 52.25-57.25q-7.5-18.5 -11.5-28.25t-11-27t-12-26.75t-12.25-22.75t-13.25-20.75t-13.25-15t-14.75-10.75t-15.5-3.25q-11,0 -21.5,4.75t-10.5,11.25q0,6 -5,11t-11,5t-11-5t-5-11q0-35 16.25-57.5t 47.75-22.5q 18.5,0 35.75,8.25t 30.75,20.25t 26.5,30.75t 21.75,35t 17.75,38t 13.5,34.5\nt 10,29.25q 18.5-4 36-4t 36,4q 5.5-16.5 10-29.25t 13.5-34.5t 17.75-38t 21.75-35t 26.5-30.75t 30.75-20.25t 35.75-8.25q 31.5,0 47.75,22.5t 16.25,57.5q0,6 -5,11t-11,5zM 160,352q0,40 28.25,68t 68,28t 67.75-28t 28-68t-28-68t-67.75-28t-68,28t-28.25,68z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"aries\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,160q-12,0 -22-10t-10-22q0-28 -16.25-46t-47.75-18q-15.5,0 -38.5,25.75t-40.25,60.5t-17.25,57.75l0,0 l0,0 l0,0 l0,0 l0,0 l0,0 l0,0 l0,0.5 l0,0 l0,0 l0,0 l0,0.5 l0,0 l0,0 l0,0.5 l0,0 l0,0.5 l0,0 l0,0.5 l0,0 l0,0.5 l0,0 l0,0.5 l0,0 l0,0.5 l0,0 l0,0.5 l0,0.5 l0,0 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 \nl0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 \nl0,0.5 l0,1 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,0.5 \nl0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 \nl0,1 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,1 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,1 l0,1 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,1 l0,1 l0,1 l0,1 l0,0.5 l0,1 \nl0,1 l0,1 l0,1 l0,1 l0,1 l0,0.5 l0,1 l0,1 l0,1 l0,1 l0,1 l0,4.5 q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l0,0 l0,0 l0,0 l0,0 l0-0.5 l0,0 l0,0 l0,0 l0-0.5 l0,0 l0,0 l0-0.5 l0,0 l0-0.5 l0,0 l0-0.5 l0,0 l0-0.5 l0,0 l0-0.5 l0,0 l0-0.5 l0,0 l0-0.5 l0-0.5 l0-0.5 l0,0 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 \nl0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 \nl0-0.5 l0-1 l0-0.5 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-1 l0-1 l0-0.5 \nl0-1 l0-1 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-0.5 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1 l0-1.5 l0-1 l0-1 l0-1 l0-4.5 q0-23 -17.25-57.75t-40.25-60.5t-38.5-25.75q-31.5,0 -47.75,18t-16.25,46q0,12 -10,22t-22,10t-22-10t-10-22q0-54.5 35-91.25t 93-36.75q 16,0 34.25,10.5t 35.25,28.25\nt 31,36.5t 27.5,39.75q 13.5-21 27.5-39.75t 31-36.5t 35.25-28.25t 34.25-10.5q 58,0 93,36.75t 35,91.25q0,12 -10,22t-22,10z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"signal\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448.5,416l-48-42q 47.5-54.5 47.5-126.5t-47.5-126l 48-42.5q 30,34.5 46.75,77.75t 16.75,90.75t-16.75,90.75t-46.75,77.75zM 376.5,353l-48.5-42.5q 24-27.5 24-63t-24-63l 48.5-42q 39.5,45 39.5,105t-39.5,105.5zM 256,311.5q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25\nt-18.75,45.25t-45.25,18.75zM 135.5,353q-39.5-45.5 -39.5-105.5t 39.5-105l 48.5,42q-24,27.5 -24,63t 24,63zM 111.5,374l-48,42q-30-34.5 -46.75-77.75t-16.75-90.75t 16.75-90.75t 46.75-77.75l 48,42.5q-47.5,54 -47.5,126t 47.5,126.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"flowernew\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,320l-41,0 l 22.5,23q 18.5,18 18.5,43.25t-18.25,43.5t-43.5,18.25t-43.75-18l-22.5-23l0,41 q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25l0-41.5 l-23,23.5q-18.5,18 -43.75,18t-43.5-18.25t-18.25-43.5t 18.5-43.25l 22.5-23l-40.5,0 q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75l 41,0 l-23-23\nq-18-18 -18-43.5t 18-43.5t 43.5-18t 43.5,18l 23,23l0-41 q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25l0,40.5 l 23-23q 18-18 43.25-18t 43.5,18.25t 18.25,43.5t-18,43.75l-23.5,23l 41.5,0 q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 256,160q-40,0 -68,28t-28,68t 28.25,68\nt 68,28t 67.75-28.25t 28-68t-28-67.75t-68-28zM 256,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"gearfour\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,288l-51,0 q-3,18 -9,35l 44,25.5q 5.5,3 7.25,9.5t-1.75,12l-16,28q-3,5.5 -9.5,7.25t-12-1.75l-44-25q-11.5,14 -25.5,25.5l 25,44q 3.5,5.5 1.75,12t-7.25,9.5l-28,16q-5.5,3.5 -12,1.75t-9.5-7.25l-25.5-44q-17,6 -35,9l0,51 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 \nq-6.5,0 -11.25-4.75t-4.75-11.25l0-51 q-18-3 -35-9l-25.5,44q-3,5.5 -9.5,7.25t-12-1.75l-28-16q-5.5-3 -7.25-9.5t 1.75-12l 25-44q-14-11.5 -25.5-25.5l-44,25q-5.5,3.5 -12,1.75t-9.5-7.25l-16-28q-3.5-5.5 -1.75-12t 7.25-9.5l 44-25.5q-6-17 -9-35l-51,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75l 51,0 q 3-18 9-35l-44-25.5q-5.5-3 -7.25-9.5t 1.75-12l 16-28q 3-5.5 9.5-7.25t 12,1.75l 44,25q 11.5-14 25.5-25.5l-25-44q-3.5-5.5 -1.75-12t 7.25-9.5l 28-16q 5.5-3.5 12-1.75t 9.5,7.25l 25.5,44q 17-6 35-9l0-51 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,51 \nq 18,3 35,9l 25.5-44q 3-5.5 9.5-7.25t 12,1.75l 28,16q 5.5,3 7.25,9.5t-1.75,12l-25,44q 14,11.5 25.5,25.5l 44-25q 5.5-3.5 12-1.75t 9.5,7.25l 16,28q 3.5,5.5 1.75,12t-7.25,9.5l-44,25.5q 6,17 9,35l 51,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 256,416\nq 48,0 88-26.5l-47-47q-20,9.5 -41,9.5t-41-9.5l-47,47q 40,26.5 88,26.5zM 320,256q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25zM 122.5,168q-26.5,40 -26.5,88t 26.5,88l 47-47q-9.5-20 -9.5-41t 9.5-41zM 256,96q-48,0 -88,26.5\nl 47,47q 20-9.5 41-9.5t 41,9.5l 47-47q-40-26.5 -88-26.5zM 389.5,168l-47,47q 9.5,20 9.5,41t-9.5,41l 47,47q 26.5-40 26.5-88t-26.5-88z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"keyboarddelete\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,416l-320,0 l0-0.5 q-12.5,0.5 -21.5-8.5l-129.5-129.5q-9-9 -9-21.75t 9-21.25l 129.5-129.5q 10-10 24-9l 317.5,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,256 q0,13.5 -9.25,22.75t-22.75,9.25zM 441.5,196q 6-6.5 6-15t-6-14.75t-14.75-6.25t-14.75,6.5l-60,60l-60-60q-6.5-6.5 -15-6.5t-14.75,6.25\nt-6.25,14.75t 6.5,15l 60,60l-60,60q-6.5,6.5 -6.5,15t 6.25,14.5t 14.75,6t 15-6l 60-60l 60,60q 6,6 14.75,6t 14.75-6t 6-14.5t-6-15l-60-60z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"macpro\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-32,0 q-8,0 -16.75-2.75t-11.25-6.75l-33.5-54.5l-261,0 l-33.5,54.5q-2.5,4 -11.5,6.75t-16.5,2.75l-32,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-448 q0-13.5 9.25-22.75t 22.75-9.25l 32,0 q 7.5,0 16.5,2.75t 11.5,6.75l 33.5,54.5l 261,0 l 33.5-54.5q 2.5-4 11.25-6.75t 16.75-2.75l 32,0 q 13,0 22.5,9.25t 9.5,22.75l0,448 \nq0,13.5 -9.5,22.75t-22.5,9.25zM 256,224q-13,0 -22.5,9.5t-9.5,22.5t 9.5,22.5t 22.5,9.5t 22.5-9.25t 9.5-22.75t-9.5-22.75t-22.5-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"taxi\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,439l0,41 q0,13.5 -9.5,22.75t-22.75,9.25t-22.5-9.25t-9.25-22.75l0-32 l-320,0 l0,32 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-41 q-14.5-8.5 -23.25-23t-8.75-32l0-96 q0-15.5 13.75-35.75t 33.75-36.75l 16.5-55.5q0-26.5 18.75-45.25t 45.25-18.75l 36.5,0 l 183,0 l 36.5,0 q 26.5,0 45.25,18.75t 18.75,45.25\nl 16.5,55.5q 20,16.5 33.75,36.75t 13.75,35.75l0,96 q0,17.5 -8.75,32t-23.25,23zM 64,352.25q0,13.25 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5t-22.75,9.5t-9.5,22.75zM 400,192q0-13 -9.25-22.5t-22.75-9.5l-224,0 q-13.5,0 -22.75,9.5t-9.25,22.5l-16,32q0,13.5 9.5,22.75t 22.5,9.25\nl 256,0 q 13,0 22.5-9.25t 9.5-22.75zM 415.75,320q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 173.5,64l 14.5-53q 2-4.5 7-7.5t 10.5-3l 102.5,0 q 5,0 10,3t 7,7.5l 14,53l-165.5,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lastfm\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 400,128q-20,0 -34,14t-14,34q0,19 21.25,33.5t 42.75,14.5q 40,0 68,28t 28,68t-28,68t-68,28q-24.5,0 -45.5-13.25t-34.5-34.75q-24.5-64.5 -48-112q-11-21.5 -23-41.5t-18.5-29.5l-6.5-9q-4.5-14.5 -30-31.25t-50-16.75q-53,0 -90.5,37.5t-37.5,90.5t 37.5,90.5t 90.5,37.5t 90.5-37.5l 22.5,22.5\nq-22,22.5 -51.25,34.75t-61.75,12.25q-43.5,0 -80.25-21.5t-58.25-58.25t-21.5-80.25t 21.5-80.25t 58.25-58.25t 80.25-21.5q 32.5,0 66,19.75t 46,44.25q 23,30 48,80q 10,20.5 22,48.5t 19,45.5l 7,18q 20,32 48,32q 26.5,0 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75q-34.5,0 -65.25-24\nt-30.75-56q0-33 23.5-56.5t 56.5-23.5q 34.5,0 57.25,19.5t 22.75,44.5l-32,0 q-5.5-13 -19.5-22.5t-28.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"grooveshark\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 256,64q-35,0 -70.25,16.75t-61.75,43.25t-43.25,61.75t-16.75,70.25q0,18 3.75,31t 8.25,19.25t 12.5,9.5\nt 12.25,3.75t 11.25,0.5q 17.5,0 33.75-18t 30.25-46q 7-14 11-46t 4.5-57l 0.5-25q 7,3.5 19.5,10.75t 46.25,32t 62.25,53.25q 11,11 30.25,37.5t 35,42.5t 29.25,16q 7,0 10.5-0.5t 8.75-3.75t 7.75-9.5t 4.5-19t 2-31.25q0-35 -16.75-70.25t-43.25-61.75t-61.75-43.25t-70.25-16.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"skypeoffline\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,384q0,53 -37.5,90.5t-90.5,37.5q-51.5,0 -88.5-35.5q-20.5,3.5 -39.5,3.5q-45.5,0 -87-17.75t-71.5-47.75t-47.75-71.5t-17.75-87q0-18.5 3.5-39.5q-35.5-37 -35.5-88.5q0-53 37.5-90.5t 90.5-37.5q 51.5,0 88.5,35.5q 20.5-3.5 39.5-3.5q 45.5,0 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87q0,19 -3.5,39.5q 35.5,37 35.5,88.5\nzM 448,256q0-52 -25.75-96.25t-70-70t-96.25-25.75q-25.5,0 -51,7q-13.5-18 -33.75-28.5t-43.25-10.5q-40,0 -68,28.25t-28,67.75q0,23 10.5,43.25t 28.5,33.75q-7,25.5 -7,51q0,52 25.75,96.25t 70,70t 96.25,25.75q 25.5,0 51-7q 13.5,18 33.5,28.5t 43.5,10.5q 39.5,0 67.75-28t 28.25-68\nq0-23 -10.5-43.25t-28.5-33.75q 7-25.5 7-51z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"skypebusy\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,384q0,53 -37.5,90.5t-90.5,37.5q-51.5,0 -88.5-35.5q-20.5,3.5 -39.5,3.5q-45.5,0 -87-17.75t-71.5-47.75t-47.75-71.5t-17.75-87q0-19 3.5-39.5q-35.5-37 -35.5-88.5q0-53 37.5-90.5t 90.5-37.5q 51.5,0 88.5,35.5q 20.5-3.5 39.5-3.5q 45.5,0 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87q0,19 -3.5,39.5q 35.5,37 35.5,88.5\nzM 352,224l-192,0 q-13.5,0 -22.75,9.5t-9.25,22.5t 9.25,22.5t 22.75,9.5l 192,0 q 13,0 22.5-9.5t 9.5-22.5t-9.5-22.5t-22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"skypeaway\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,384q0,53 -37.5,90.5t-90.5,37.5q-51.5,0 -88.5-35.5q-20.5,3.5 -39.5,3.5q-45.5,0 -87-17.75t-71.5-47.75t-47.75-71.5t-17.75-87q0-19 3.5-39.5q-35.5-37 -35.5-88.5q0-53 37.5-90.5t 90.5-37.5q 51.5,0 88.5,35.5q 20.5-3.5 39.5-3.5q 45.5,0 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87q0,19 -3.5,39.5q 35.5,37 35.5,88.5\nzM 367,289l-79-51.5l0-77.5 q0-13 -9.5-22.5t-22.75-9.5t-22.5,9.5t-9.25,22.5l0,96 l0,0.5 l0,0.5 q-0.5,20.5 17,30l 92.5,60.5q 12,7 25.5,3.5t 20.5-15.75t 3.25-25.75t-15.75-20.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"skypeonline\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,384q0,53 -37.5,90.5t-90.5,37.5q-51.5,0 -88.5-35.5q-20.5,3.5 -39.5,3.5q-45.5,0 -87-17.75t-71.5-47.75t-47.75-71.5t-17.75-87q0-19 3.5-39.5q-35.5-37 -35.5-88.5q0-53 37.5-90.5t 90.5-37.5q 51.5,0 88.5,35.5q 20.5-3.5 39.5-3.5q 45.5,0 87,17.75t 71.5,47.75t 47.75,71.5t 17.75,87q0,19 -3.5,39.5q 35.5,37 35.5,88.5\nzM 374.25,169.75q-9.75-9.75 -23.25-9.75t-23.5,9.5l-103.5,104l-39.5-40q-10-9.5 -23.5-9.5t-23.25,9.75t-9.75,23.25t 9.5,23.5l 61.5,61.5q 10,10 25,9.5q 15,0.5 25-9.5l 125.5-125.5q 9.5-10 9.5-23.5t-9.75-23.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"glassesalt\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,327.5q0,38 -7.25,62.25t-22.75,36.75t-34.25,17t-47.75,4.5t-47.75-4.5t-34.25-17t-22.75-36.75t-7.25-62.25l0-4 l0-3.5 q0-13 -9.5-22.5t-22.5-9.5t-22.5,9.5t-9.5,22.5l0,7.5 q0,38 -7.25,62.25t-22.75,36.75t-34.25,17t-47.75,4.5t-47.75-4.5t-34.25-17t-22.75-36.75t-7.25-62.25q0-32.5 5-50.5\nq-10-14 -1.5-29l 108.5-171q 5.5-9.5 15.75-12.25t 19.5,2.75t 12,16.25t-2.75,20.25l-78,122.5q 21-2.5 49.5-2.5q 36,0 55.5,5.5t 28.5,17.5q 26.5,9 44,9t 44-9q 9-12 28.5-17.5t 55.5-5.5q 28.5,0 49.5,2.5l-78-122.5q-5.5-9.5 -2.75-20.25t 12-16.25t 19.5-2.75t 15.75,12.25l 108.5,171q 8.5,15 -1.5,29q 5,18 5,50.5zM 112,416\nq 28,0 45-6.75t 26-25.25l-142,0 q 9,18.5 26,25.25t 45,6.75zM 123.5,256q-40.5,0 -60,7.25t-26,24.75l 152,0 q-3.5-17.5 -17.75-24.75t-48.25-7.25zM 192,320l-160,0 l0,10 q0,11.5 1,22l 158,0 q 1-10.5 1-22l0-10 zM 400,416q 28,0 45-6.75t 26-25.25l-142,0 q 9,18.5 26,25.25t 45,6.75zM 388.5,256q-34,0 -48.25,7.25\nt-18.25,24.75l 152.5,0 q-6.5-17.5 -26-24.75t-60-7.25zM 480,320l-160,0 l0,10 q0,11.5 1,22l 158,0 q 1-10.5 1-22l0-10 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"theather\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-448 q0-13 9.5-22.5t 22.5-9.5l 128,0 q0,46 -5.75,84.75t-18.25,71.75t-34.25,56.25t-51.75,34.25q 43,41 64.5,137l 283,0 q 21.5-96 64.5-137q-30-11 -51.75-34.25t-34.25-56.25t-18.25-71.75t-5.75-84.75l 128,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,448 \nq0,13.5 -9.25,22.75t-22.75,9.25zM 120.5,416q 5,33.5 6.5,64l 258,0 q 1.5-30.5 6.5-64l-271,0 zM 192,0l 128,0 q0,74 15,128l-158,0 q 15-54 15-128z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"washer\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-13,0 -22.5-9.5t-9.5-22.5l0-320 q0-13 9.5-22.5t 22.5-9.5l 384,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,320 q0,13.5 -9.25,22.75t-22.75,9.25zM 256,192q-53,0 -90.5,37.5t-37.5,90.5t 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5t-37.5-90.5t-90.5-37.5zM 256,416q-40,0 -68-28t-28-68t 28-68t 68-28t 68,28\nt 28,68t-28,68t-68,28zM 448,96l-384,0 q-13,0 -22.5-9.5t-9.5-22.5l0-32 q0-13 9.5-22.5t 22.5-9.5l 384,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,32 q0,13.5 -9.25,22.75t-22.75,9.25zM 144,32l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\nM 208,32q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 272,32q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tictactoe\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507.5,27.5l-69,69l 68.5,68q 4.5,4.5 4.5,11.25t-4.75,11.5t-11.5,4.75t-11.25-5l-68-68l-68,68q-5,5 -11.75,5t-11.5-4.75t-4.75-11.5t 5-11.25l 68-68l-68.5-69q-5-4.5 -5-11.25t 4.75-11.5t 11.5-4.75t 11.75,5l 68.5,68.5l 68.5-68.5q 4.5-5 11.25-5t 11.5,4.75t 4.75,11.5t-4.5,11.25zM 480,224\nq 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-192,0 l0,192 q0,13.5 -9.5,22.75t-22.5,9.25t-22.5-9.25t-9.5-22.75l0-192 l-192,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 192,0 l0-191.5 q0-13.5 9.5-22.75t 22.5-9.25t 22.5,9.25t 9.5,22.75l0,191.5 l 192,0 zM 96.25,192q-39.75,0 -68-28t-28.25-67.75t 28.25-67.75t 68-28\nt 67.75,28t 28,67.75t-28,67.75t-67.75,28zM 96,32.5q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75zM 4.75,324.75q 4.75-4.75 11.5-4.75t 11.25,4.5l 68.5,69l 68.5-69q 5-4.5 11.75-4.5t 11.25,4.75t 4.5,11.25t-4.5,11.5l-68.5,68.5l 68,68\nq 4.5,5 4.5,11.75t-4.5,11.25t-11.25,4.5t-11.75-4.5l-68-68l-68,68q-4.5,4.5 -11.25,4.5t-11.5-4.5t-4.75-11.25t 4.5-11.75l 68.5-68l-69-68.5q-4.5-5 -4.5-11.5t 4.75-11.25zM 415.75,320q 39.75,0 68,28.25t 28.25,68t-28.25,67.75t-68,28t-67.75-28t-28-67.75t 28-68t 67.75-28.25zM 416,480\nq 26.5,0 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"dialpad\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 443.5,375.5l-68,0 q-14,0 -24-10t-10-24l0-34.5 q0-14 10-24t 24-10l 68,0 q 14.5,0 24.5,10t 10,24l0,34.5 q0,14 -10,24t-24.5,10zM 443.5,239l-68,0 q-14,0 -24-10t-10-24l0-34.5 q0-14 10-24t 24-10l 68,0 q 14.5,0 24.5,10t 10,24l0,34.5 q0,14 -10,24t-24.5,10zM 443.5,102.5l-68,0 q-14,0 -24-10t-10-24l0-34.5 \nq0-14 10-24t 24-10l 68,0 q 14.5,0 24.5,10t 10,24l0,34.5 q0,14 -10,24t-24.5,10zM 273,512l-68,0 q-14.5,0 -24.5-10t-10-24l0-34.5 q0-14 10-24t 24.5-10l 68,0 q 14,0 24,10t 10,24l0,34.5 q0,14 -10,24t-24,10zM 273,375.5l-68,0 q-14.5,0 -24.5-10t-10-24l0-34.5 q0-14 10-24t 24.5-10l 68,0 q 14,0 24,10t 10,24l0,34.5 \nq0,14 -10,24t-24,10zM 273,239l-68,0 q-14.5,0 -24.5-10t-10-24l0-34.5 q0-14 10-24t 24.5-10l 68,0 q 14,0 24,10t 10,24l0,34.5 q0,14 -10,24t-24,10zM 273,102.5l-68,0 q-14.5,0 -24.5-10t-10-24l0-34.5 q0-14 10-24t 24.5-10l 68,0 q 14,0 24,10t 10,24l0,34.5 q0,14 -10,24t-24,10zM 102.5,375.5l-68.5,0 \nq-14,0 -24-10t-10-24l0-34.5 q0-14 10-24t 24-10l 68.5,0 q 14,0 24,10t 10,24l0,34.5 q0,14 -10,24t-24,10zM 102.5,239l-68.5,0 q-14,0 -24-10t-10-24l0-34.5 q0-14 10-24t 24-10l 68.5,0 q 14,0 24,10t 10,24l0,34.5 q0,14 -10,24t-24,10zM 102.5,102.5l-68.5,0 q-14,0 -24-10t-10-24l0-34.5 q0-14 10-24t 24-10l 68.5,0 \nq 14,0 24,10t 10,24l0,34.5 q0,14 -10,24t-24,10z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"finder\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,448l-195.5,0 q 7.5,31 19.5,64l-32,0 q-13.5-19 -22.5-64l-249.5,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-352 q0-6.5 4.75-11.25t 11.25-4.75l 244,0 q 18-29.5 44-64l 32,0 q-5.5,9 -19.25,30.5t-21.25,33.5l 200.5,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,352 q0,6.5 -4.75,11.25t-11.25,4.75zM 32,96l0,320 l 228.5,0 q-2-16 -3.5-32l-0.5,0 l-0.5,0 \nq-75,0 -160-32l0-32 q 78,32 160,32q0-31 20-64l-68,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0,0 q0-84.5 49.5-176l-209.5,0 zM 480,96l-203.5,0 q-47.5,85 -52,160l 79.5,0 q 6.5,0 11.25,4.75t 4.75,11.25q0,11.5 -11.5,15q-19.5,31.5 -20.5,63.5q 67-5.5 128-30.5l0,32 q-66,25 -126.5,30.5q 1.5,17.5 4,33.5l 186.5,0 l0-320 z\nM 368,224q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75zM 144,224q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"polygonlasso\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507.5,252l-188.5,125q-3,14.5 -13.25,24.75t-24.25,12.75l-59.5,89q-3.5,6 -9.75,7.75t-12-1.5t-7.5-10t 1.25-12.75l 53-78.5q-23-14 -23-41q0-10 4.5-20l-223.5-224q-5-5 -5-11.5q0-7.5 5-12.5l 63-95q 8-8 18.5-3.5l 0.5,0.5l 248.5,91.5l 148-88.5q 8-8 18.5-3.5q 6.5,2.5 9,9q 1,3 1,7l0,222.5 \nq 0.5,7.5 -4.5,12.5zM 348,123q-8,8 -18.5,3.5l0-0.5 l-0.5,0 l-243.5-89.5l-48,73l 214.5,215q 9.5-5 20-5q 26.5,0 40.5,23l 167.5-111.5l0-186.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lasso\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 319,376q-2.5,14.5 -12.75,25.25t-24.75,13.25l-59.5,89q-3.5,6 -10,7.75t-12-1.5t-7.25-10t 1.25-12.75l 53-78.5q-15.5-9.5 -20.5-26.5q-46.5-5 -89-25.5t-72.25-49t-47.5-63.5t-17.75-68.5q0-47.5 34.25-88t 93.25-64.25t 128.5-23.75t 128.5,23.75t 93.25,64.25t 34.25,88q0,41 -24.75,82.25\nt-69.5,73.25t-98.75,45zM 256,31.5q-61,0 -112.5,19.25t-81.5,52.5t-30,72.25q0,27.5 15.25,56.5t 41,53.25t 62.5,42t 76.75,22.75q 5.5-13.5 17.5-22t 27-8.5q 13,0 24.25,6.75t 17.25,18.25q 70.5-17.5 118.5-67.5t 48-101.5q0-39 -30-72.25t-81.5-52.5t-112.5-19.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"emptycart\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,256l-448,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 28,0 q 10,15 25.75,23.5t 34.25,8.5t 34.25-8.5t 25.75-23.5l 152,0 q 10,15 25.75,23.5t 34.25,8.5t 34.25-8.5t 25.75-23.5l 28,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.5,22.5t-22.5,9.25zM 403,189q-9.5,5.5 -20,2.5t-16-12.5l-75.5-139q-5.5-9.5 -2.75-20.25\nt 12.25-16.25t 20-2.5t 16,12.5l 75.5,139q 5.5,9.5 2.75,20.25t-12.25,16.25zM 145,179q-5.5,9.5 -16,12.5t-20-2.5t-12.25-16.25t 2.75-20.25l 75.5-139q 5.5-9.5 16-12.5t 20,2.5t 12.25,16.25t-2.75,20.25zM 448,480q-4,20 -14.75,26t-32.75,6l-287,0 q-22.5,0 -34-6t-15.5-26l-32-192l 448,0 zM 368,384l-128,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 128,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"addtocart\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,256l-448,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.25-22.75t 22.75-9.5l 28,0 q 10,15 25.75,23.5t 34.25,8.5t 34.25-8.5t 25.75-23.5l 152,0 q 10,15 25.75,23.5t 34.25,8.5t 34.25-8.5t 25.75-23.5l 28,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.5,22.5t-22.5,9.25zM 403,189q-9.5,5.5 -20,2.5t-16-12.5l-75.5-139q-5.5-9.5 -2.75-20.25\nt 12.25-16.25t 20-2.5t 16,12.5l 75.5,139q 5.5,9.5 2.75,20.25t-12.25,16.25zM 145,179q-5.5,9.5 -16,12.5t-20-2.5t-12.25-16.25t 2.75-20.25l 75.5-139q 5.5-9.5 16-12.5t 20,2.5t 12.25,16.25t-2.75,20.25zM 448,480q-4,20 -14.75,26t-32.75,6l-287,0 q-22.5,0 -34-6t-15.5-26l-32-192l 448,0 zM 368,384l-48,0 l0-48 \nq0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,48 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 48,0 l0,48 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-48 l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"handcuffs\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,512q-34.5,0 -63.75-17t-46.25-46q 14-31 14-65t-14-65q 17-29 46-46l0-65 q0-6.5 4.75-11.25t 11.25-4.75l 48,0 q0-43.5 -17.25-80.25t-46.75-58.25t-64.25-21.5t-64.25,21.5t-46.5,58.25t-17,80.25l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,65.5 q 29,16.5 46.5,46t 17.5,64.5q0,53 -37.5,90.5t-90.5,37.5\nt-90.5-37.5t-37.5-90.5q0-35 17.5-64.5t 46.5-46l0-65.5 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 q0-52 21.5-96.25t 58.25-70t 80.25-25.75t 80.25,25.75t 58.25,70t 21.5,96.25l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,65.5 q 29,16.5 46.5,46t 17.5,64.5q0,53 -37.5,90.5t-90.5,37.5zM 64,384q0,26.5 18.75,45.25t 45.25,18.75\nt 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25zM 384,320q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"island\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,448q0,15.5 -13.5,27t-35.75,18.5t-56,11.25t-69.5,5.75t-81.25,1.5q-55,0 -100-4t-80.75-12.25t-55.5-22.5t-19.75-33.25q0-21 25.5-43.75t 69.75-41.5t 96.75-27.75l0-39 q0-53.5 -20-103q-9,9.5 -23,29t-24.5,33.75t-26.5,26.5t-32.5,13.75q-1.5-7 -1.5-14.75t 0.75-18t 0.75-15.75q0-32.5 15.25-61.5\nt 40.75-50l-9.5,0 q-34.5,0 -59.25,26.5t-36.75,69.5q-4.5-4.5 -10.25-15.75t-5.75-22.25q0-56 32.25-89t 79.75-33q 52.5,0 77,27q 9-39.5 40.75-65.25t 72.75-25.75q 48,0 80.75,25t 32.75,71q-36.5-32 -96-32q-24.5,0 -37.75,9.75t-20.75,28.75q 20.5-6.5 41.5-6.5q 47,0 80,25.5t 33,61.5\nq0,22.5 -13.75,41.75t-37.25,31.25q-8.5-42.5 -37.5-66.75t-71-28.25q 5,10 10.5,25.25t 13.25,54.25t 7.75,79.5l0,0.5 q 52.5,3 105.5,24.25t 85.75,49.75t 32.75,53.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"phonemic\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 471.75,471.75q-19.25,19.25 -82.5,30t-133.25,10.75t-133.25-10.75t-82.5-30t-30-82.5t-10.75-133.25t 10.75-133.25t 30-82.5t 82.5-30t 133.25-10.75t 133.25,10.75t 82.5,30t 30,82.5t 10.75,133.25t-10.75,133.25t-30,82.5zM 320.25,384.5q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25\nt-9.25,22.5t 9.25,22.75t 22.5,9.5zM 192.25,384.5q 13.25,0 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25t-22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5zM 128.25,224.5q-13.25,0 -22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5t 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25zM 192.25,128q-13.25,0 -22.75,9.5t-9.5,22.75\nt 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 256.25,224.5q-13.25,0 -22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 320.25,128q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 384.25,224.5\nq-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"birdhouse\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.25,278.25q-9.75,9.75 -23.5,9.75t-23.25-10l-13.5-13.5l-42,215.5q-1.5,10.5 -11.75,21.25t-20.25,10.75l-223.5,0 q-10,0 -20.25-10.75t-11.75-21.25l-42-216l-14,14q-9.5,10 -23.25,10t-23.5-9.75t-9.75-23.5t 9.5-23.25l 222-221.5q 10-10 24.5-9.5q 14.5-0.5 24.5,9.5l 222,221.5q 9.5,9.5 9.5,23.25t-9.75,23.5\nzM 256.25,448q 13.25,0 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5t-22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25zM 256.5,192q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45-18.75t 18.5-45.25t-18.5-45.25t-45-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"doghouse\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.25,278.25q-9.75,9.75 -23.5,9.75t-23.25-9.5l-7.5-7.5l0,209 q0,13.5 -9.25,22.75t-22.75,9.25l-64,0 l0-128 q0-39.5 -28-67.5t-67.75-28t-67.75,28t-28,67.5l0,128 l-64.5,0 q-13.5,0 -22.75-9.25t-9.25-22.75l0-209 l-7.5,7.5q-9.5,9.5 -23.25,9.5t-23.5-9.75t-9.75-23.5t 9.5-23.25l 222-221.5\nq 10-10 24.5-9.5q 14.5-0.5 24.5,9.5l 222,221.5q 9.5,9.5 9.5,23.25t-9.75,23.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"raceflag\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,352q-4-4 -11.5-8.5q-0.5-0.5 -3.5-2q-5.5-3 -11-5.5q-3-1.5 -4-1.5q-15.5-6.5 -34-10.5l0-66.5 q 36.5,5 64,30.5l0,64 zM 410,256q-11.5,0 -26,1.5l0-64 q 14.5-1.5 26-1.5q 25,0 38,1.5l0,64 q-12.5-1.5 -38-1.5zM 384,129.5l0-64 q 14.5-1.5 26-1.5q 25.5,0 38,1.5l0,64 q-12.5-1.5 -38-1.5q-11.5,0 -26,1.5zM 256,169l0-64 q 47.5-19.5 64-25l0,64 \nq-15.5,5 -64,25zM 167.5,192q-19,0 -39.5-4l0-64 q 20.5,4 39.5,4q 11,0 24.5-2.5l0,64 q-13.5,2.5 -24.5,2.5zM 64,160q 21.5,19.5 64,28l0,64 q-43-8.5 -64-28l0,64 q 21.5,19.5 64,28l0,66.5 q-7-1 -14.5-3q-1,0 -2.5-0.5t-1.5-1q-5.5-1.5 -10.5-3.5q-3-1 -5-2q-5-2.5 -10.5-6q-4-2.5 -4.5-2.5q-8.5-6 -15-12l0,128 \nq0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-448 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75q 4.5,4.5 12,9q 0.5,0 1.25,0.5l 1.5,1t 1.25,0.5q 5,3 10.5,5.5q 2.5,1 4,2q 7.5,2.5 14,4.5l 1.5,0.5q 8.5,2.5 18,4.5l0,64 q-42.5-8.5 -64-28l0,64 zM 167.5,256q 11,0 24.5-2.5l0,64 q-13.5,2.5 -24.5,2.5q-19,0 -39.5-4l0-64 \nq 20.5,4 39.5,4zM 320,208l0,64 q-16,5.5 -64,25l0-64 q 47.5-19.5 64-25zM 320,144q 33.5-11 64-14.5l0,64 q-30.5,3.5 -64,14.5l0-64 zM 192,253.5l0-64 q 24-4 64-20.5l0,64 q-40,16.5 -64,20.5zM 384,321.5q-31,3 -64,14l0-63.5 q 33.5-11 64-14.5l0,64 zM 256,360.5q-7.5,3 -14,5.5q-1.5,0.5 -3.5,1.5q-5.5,2 -12.5,4.5\nl-3,1q-8.5,3 -15,4.5q-8.5,2.5 -16,4l0-64 q 24-4 64-20.5l0,63.5 zM 192,61.5q 20-3.5 47.5-14l 0.5-0.25t 1-0.25q 8-3 15-6l0,64 q-40,16.5 -64,20.5l0-64 zM 320,16q 33.5-11 64-14.5l0,64 q-30.5,3.5 -64,14.5l0-64 zM 462.5,4.5q 1,0 2.25,0.5t 1.75,0.5q 5.5,1.5 11,4q 2,1 4.5,2q 5,2.5 10.5,6q 4,2.5 4.5,2.5\nq 8.5,6 15,12l0,64 q-27.5-25.5 -64-30.5l0-64 q 7,1 14.5,3zM 512,160l0,64 q-27.5-25.5 -64-30.5l0-64 q 36.5,5 64,30.5zM 410,0l 1,0 l-1,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"skull\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,403l0,61 q0,20 -14,34t-34,14t-34-14t-14-34q0,20 -14,34t-34,14t-34-14t-14-34q0,20 -14,34t-34,14t-34-14t-14-34l0-61 q-44.5-31.5 -70.25-78.25t-25.75-100.75q0-45.5 19-87t 51.25-71.5t 76.5-47.75t 93.25-17.75t 93.25,17.75t 76.5,47.75t 51.25,71.5t 19,87\nq0,54 -25.75,101t-70.25,78zM 144,160q-20,0 -34,14t-14,34t 14,34t 34,14t 34-14t 14-34t-14-34t-34-14zM 192,352l 96,0 l-48-64zM 336,160q-20,0 -34,14t-14,34t 14,34t 34,14t 34-14t 14-34t-14-34t-34-14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"jason\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 450.5,384q-18,40 -48.75,69.75t-63.75,44t-64.5,14.25t-64.5-14t-64-43.75t-49-70.25q-32-71.5 -32-224q0-43.5 28.5-80.25t 76.75-58.25t 104.25-21.5t 103.75,21.5t 75.25,58.25t 27.5,80.25l0,15.75 l0,21 t-0.25,23t-1,26.75t-2.25,27.25t-3.75,29.25t-5.25,27.75t-7.25,28t-9.75,25.25z\nM 176,160q-15,0 -27.75,8.75t-20.25,23.25q 7.5,14.5 20.25,23.25t 27.75,8.75t 27.75-8.75t 20.25-23.25q-7.5-14.5 -20.25-23.25t-27.75-8.75zM 240,64q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 240,288q-6.5,0 -11.25,4.75t-4.75,11.25\nt 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 240,352q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 240,416q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\nM 304,448q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 304,384q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 304,320q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75t-11.25,4.75\nt-4.75,11.25t 4.75,11.25t 11.25,4.75zM 304,64q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 368,160q-15,0 -27.75,8.75t-20.25,23.25q 7.5,14.5 20.25,23.25t 27.75,8.75t 27.75-8.75t 20.25-23.25q-7.5-14.5 -20.25-23.25t-27.75-8.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"harrypotter\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 499.5,480l-486.5,0 q-21.5-20 -7.5-33l 230-402.5q 8.5-7.5 20.5-7.5t 20,7.5l 230,402.5q 14.5,13.5 -6.5,33zM 40.5,446l 119.5,0 q-25-20 -39.75-48.5t-17.25-61.5zM 137,326.25q0,44.75 29.25,78t 72.75,39.75l0-235 q-43.5,6 -72.75,39.25t-29.25,78zM 187,189.5q 24.5-12.5 52-15.5l0-75.5 zM 273.5,99.5l0,74.5 q 27,3 51,15.5z\nM 273.5,209l0,235 q 43.5-6.5 72.75-39.75t 29.25-78t-29.25-78t-72.75-39.25zM 409,337q-2,32.5 -17,60.75t-39.5,48.25l 119,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"satellite\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 456.5,188.5q-3.5,3.5 -8.5,3.5q0,5 -3.5,8.5l-52,52q-3.5,3.5 -8.5,3.5t-9-3.5l-45-45.5l-16.5,16.5l 128.5,128.5q 12,12 -1.5,35l 69,32.5q 6.5,6 -2.5,23.75t-27.5,36.25t-36.25,27.5t-23.75,2.5l-32.5-69q-23,13.5 -35,1.5l-128.5-128.5l-16.5,16.5l 45.5,45q 3.5,4 3.5,9t-3.5,8.5l-52,52q-3.5,3.5 -8.5,3.5\nq0,5 -3.5,8.5l-52,52q-3.5,3.5 -8.5,3.5t-8.5-3.5l-45.5-45.5l-11.5,11.5q-5,5 -12.25,5t-12.5-5t-5.25-12.5t 5.5-12.5l 11-11.5l-45.5-45.5q-3.5-3.5 -3.5-8.5t 3.5-9l 52-51.5q 3.5-3.5 8.5-3.5q0-5 3.5-8.5l 52-52q 3.5-3.5 8.5-3.5t 8.5,3.5l 46,45.5l 16-16l-96.5-97q-16.5-16 13.5-51.5l-48-48q-9.5,4 -19,4q-20,0 -34-14.25\nt-14-34t 14-33.75t 33.75-14t 33.75,14t 14,34q0,9.5 -3.5,19l 48,48q 35.5-30 51.5-13.5l 96.5,96.5l 16.5-16l-45.5-46q-3.5-3.5 -3.5-8.5t 3.5-8.5l 51.5-52q 4-3.5 9-3.5q0-5 3.5-8.5l 51.5-52q 4-3.5 9-3.5t 8.5,3.5l 45.5,45.5l 12-11.5q 5-5.5 12.25-5.5t 12.5,5.25t 5.25,12.5t-5,12.25l-12,12l 45.5,45.5q 3.5,3.5 3.5,8.5t-3.5,8.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"handpointleft\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,448l-118,29.5q-4,2.5 -10,2.5l-128,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 32,0 l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-80,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 64,0 l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-80,0 q-13.5,0 -22.75-9.5\nt-9.25-22.75t 9.25-22.5t 22.75-9.25l 64,0 l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-16,0 l-192,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 192,0 l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-16,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 58.5,0 q 2.5-0.5 4,0l 1.5,0 q 12,0 21,8\nl 126.5,53l 12.5,3q 26.5,0 45.25,18.75t 18.75,45.25l0,224 q0,26.5 -18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"handpointright\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,192l-192,0 l-16,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 16,0 l 64,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-80,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75l 16,0 l 64,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-80,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nt 4.75,11.25t 11.25,4.75l 16,0 l 32,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-128,0 q-6,0 -10-2.5l-118-29.5q-26.5,0 -45.25-18.75t-18.75-45.25l0-224 q0-26.5 18.75-45.25t 45.25-18.75l 12.5-3l 126.5-53q 9-8 21-8l 1,0 q 2-0.5 4.5,0l 58.5,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-16,0 q-6.5,0 -11.25,4.75\nt-4.75,11.25t 4.75,11.25t 11.25,4.75l 16,0 l 192,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.5,22.75t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"handpointdown\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448.25,320q-13.25,0 -22.75-9.25t-9.5-22.75l0-16 q0-6.5 -4.5-11.25t-11.25-4.75t-11.5,4.75t-4.75,11.25l0,16 l0,192 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-208 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16 l0,64 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75\nl0-80 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16 l0,64 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-80 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16 l0,32 q0,13.5 -9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.75l0-128 q0-6 2.5-10l 29.5-118q0-26.5 18.75-45.25\nt 45.25-18.75l 224,0 q 26.5,0 45.25,18.75t 18.75,45.25l 3,12.5l 53,126.5q 8,9 8,21l0,1.5 q 0.5,1.5 0,4l0,58.5 q0,13 -9.25,22.5t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bluetoothconnected\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,306.5q0,6 -3.5,10.5q-6.5,7 -16.5,0l-68-46.5q-8-4.5 -8-13.25t 8.25-15t 25.25-17.75t 29.5-20l 13-8.5q 10.5-7 16.5,0q 3.5,4.5 3.5,10.5l0,100 zM 424,175l-124.5,81.5l 139.5,91q 9,9 9,21.75t-9,21.75q-6.5,7 -17.5,8.5l-173.5,101.5q-9.5,10.5 -23,11q-14.5,1 -24-8.5t-8.5-24l0-153.5 l-76,49.5\nq-9,9 -21.75,9t-21.75-9t-9-21.75t 9-21.75l 116-75.5l-116-75.5q-9-9 -9-21.75t 9-21.75t 21.75-9t 21.75,9l 76,49l0-153.5 q-1-14 8.5-23.5t 24-8.5q 13.5,0.5 23,10.5l 191,112.5q 9,9 9,21.75t-9,21.75q-5.5,5.5 -15,7.5zM 256,427.5l 102.5-60.5l-102.5-66.5l0,127 zM 256,85.5l0,127 l 102.5-66.5z\nM 88,270.5l-68,46.5q-10,7 -16.5,0q-3.5-4.5 -3.5-10.5l0-100 q0-6.5 3.5-10.5q 6-7 16.5,0q 49.5,32.5 67.5,46.5q 8.5,6 8.5,14.75t-8,13.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"toothbrush\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 499.5,499.75q-12.5,12.25 -30,12.25t-29.5-12.5l-434-431.5q-6-6 -6-14.75t 6.25-15t 15-6.25t 14.75,6l 14.5,14.5q 2-3.5 3.5-5l 41.5-41.5q 5.5-5.5 13.5-5.5t 13.75,5.75t 5.75,13.75t-6,13.5l-41,41.5q-1.5,1.5 -5,3.5l 6,6q 2-3.5 3.5-5l 41.5-41.5q 5.5-5.5 13.5-5.5t 13.75,5.75t 5.75,13.75t-6,13.5l-41,41.5\nq-1.5,1.5 -5,3l 6,6.5q 2-3.5 3.5-5l 41.5-41.5q 5.5-5.5 13.5-5.5t 13.75,5.75t 5.75,13.75t-6,13.5l-41,41.5q-1.5,1.5 -5,3l 30,30q 28,28 53.25,48.75t 43.25,32t 38.25,23.75t 38.25,23.75t 43.25,32t 53.25,48.25l 59.5,59.5q 12.5,12.5 12.5,30t-12.5,29.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"toiletpaper\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,480q-36.5,0 -50.25-17t-13.75-47l0-336 q 3,4 9.75,14.75t 9.75,14t 9.5,9t 14.75,7.25t 20.25,1.5q 35,0 64-17.5l0,354.5 q-27.5,16.5 -64,16.5zM 176,512q-48,0 -88.5-8.5t-64-23.5t-23.5-32l0-336 q 27.5,21 74.25,33.75t 101.75,12.75t 101.75-12.75t 74.25-33.75l0,336 q0,17 -23.5,32t-64,23.5t-88.5,8.5\nzM 176,128q-48,0 -88.5-8.5t-64-23.25t-23.5-32.25t 23.5-32.25t 64-23.25t 88.5-8.5t 88.5,8.5t 64,23.25t 23.5,32.25t-23.5,32.25t-64,23.25t-88.5,8.5zM 176,32q-33,0 -56.5,9.5t-23.5,22.75t 23.5,22.5t 56.5,9.25t 56.5-9.25t 23.5-22.5t-23.5-22.75t-56.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"crayon\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 482.5,510l-62-35.5q-9,6 -19.75,5t-18.75-9l-373-373q-9-9 -9-22t 9-22l 44.5-44q 9-9.5 22-9.5t 22,9.5l 373,373q 7.5,7.5 8.5,18.25t-4.5,19.75l 35.5,62q 5.5,16.5 -2.75,24.75t-24.75,2.75zM 138,97l-41.5,41l 22,21.5l 41-41zM 186,145l-41.5,41l 117.5,117.5l 41-41.5zM 329.5,288.5l-41,41\nl 21.5,22l 41-41.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"favoritefolder\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,448l0,64 l-48,0 l-64-32l-64,32l-48,0 l0-64 l-160,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-192 l0-32 l0-32 q0-13 9.5-22.5t 22.5-9.5l 32,0 l 352,0 l 32,0 l 64,0 l0,64 l0,224 q0,26.5 -18.75,45.25t-45.25,18.75zM 374.5,310l-38.5-86l-38.5,86l-89.5,12l 66,65l-17,93l 79-46l 79,46l-17-93l 66-65zM 295,54\nq 3.5-9.5 14-15.75t 22-6.25l 120,0 q 12,0 22.5,6.25t 14.5,15.75l 24,42l-240,0 zM 23,22q 3.5-9.5 14-15.75t 22-6.25l 120,0 q 12,0 22.5,6.25t 14.5,15.75l 24,42l-240,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"favoritefile\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-13,0 -22.5-9.25t-9.5-22.75l0-447.5 q0-13.5 9.5-22.75t 22.5-9.25l 224,0 l0,176 q0,6.5 4.75,11.25t 11.25,4.75l 176,0 l0,0.5 l0,287 q0,13.5 -9.25,22.75t-22.75,9.25zM 230.5,310l-38.5-86l-38.5,86l-89.5,12l 66,65l-17,93l 79-45.5l 79,45.5l-17-93l 66-65zM 320,0q 13,0 22,9\nl 128.5,128.5q 9.5,9.5 9.5,23l-160,0 l0-160.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lifehacker\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 432,512l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-256 q0-22.5 -18.25-35.25t-45.75-12.75q-20.5,0 -32,7l0,297 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-480 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,118.5 q 12-6.5 32-6.5q 53.5,0 90.75,32.25t 37.25,79.75l0,256 \nq0,6.5 -4.75,11.25t-11.25,4.75zM 176,512l-64,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-480 q0-6.5 4.75-11.25t 11.25-4.75l 64,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,480 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bowtie\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,346.5q0,13 -6.5,23t-20.5,14t-36-7.5q-3.5-4 -10.25-10.5t-25.25-22t-35.5-25.5q-16-9 -36.5-19q 10.5-20.5 10.5-43q0-41 -29.5-69q 16-12.5 31-21.5q 18.5-10.5 42.5-18t 38.5-9.5l 14.5-2.5q 22-11 36-6.75t 20.5,14.25t 6.5,23q-3.5,5 -8.75,14t-14.25,33.25t-9,44.75q0,20 8,42t 16,34.5zM 256,320\nq-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 170.5,299q-20.5,10 -36.5,19q-17,10 -34.75,24.5t-26.75,24l-9.5,9.5q-22,11.5 -36,7.5t-20.5-14t-6.5-23q 3.5-5 8.75-13.5t 14.25-32t 9-43q0-20.5 -8-43.5t-16-35.5l-8-13q0-13 6.5-23\nt 20.5-14.25t 36,6.75q 6,1 16,2.5t 35.5,9.25t 44,18.25q 15,8.5 31,21q-29.5,28.5 -29.5,69.5q0,22.5 10.5,43z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"treeornament\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,176l0,48 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,48 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,48 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,48 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,48 l-48,0 q-0.5,0 -1,0.25t-1,0.25q-59-35.5 -88-96.5l 26,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-48 l 48,0 q 6.5,0 11.25-4.75\nt 4.75-11.25l0-48 l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-48 l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-48 l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-26 q 61,29 96.5,88q0,0.5 -0.25,1t-0.25,1zM 288,112l0,48 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,48 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,48 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nl0,48 l-22.5,0 q-9.5-31.5 -9.5-64q0-35.5 11-69.5l-38.5-38.5q-9-9 20.5-52.5q-24-2.5 -40.5-20.75t-16.5-42.75q0-26.5 18.75-45.25t 45.25-18.75q 24.5,0 42.5,16.5t 21,41q 43.5-30 52.5-21l 38.5,38.5q 34-11 69.5-11q 32.5,0 64,9.5l0,22.5 l-48,0 q-6.5,0 -11.25,4.75t-4.75,11.25zM 64.25,32q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5\nt 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 254,503.5l 0.5-0.5q 1.5-3.5 1.5-7l0-48 l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-48 l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-48 l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-48 l 48,0 q 3.5,0 7-1.5l0-0.25 t 0.5-0.25q 2.5-1.5 5-4q 3.5,20.5 3.5,38q0,45.5 -17.75,87t-47.75,71.5t-71.5,47.75t-87,17.75\nq-17.5,0 -38-3.5q 2.5-2.5 4-5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"candycane\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 420.25,502q-10.25,10 -24.5,10t-24.25-10l-254-252.5l 34,33.5l 73.5-24l-27.5-27.5l 223,222q 10,10 10,24.25t-10.25,24.25zM 273.5,307.5l-73,24.5l 36.5,36.5l 73.5-24.5zM 359,392.5l-73,24.5l 36.5,36.5l 73.5-24.5zM 340.75,134q-8.75,8.5 -20.5,9t-21.25-6.5l-1,1l-12-12.5l 24.5-72.5l-12.5-12.5l 49,48.5l-3.5,4\nq 7,9 6.5,21t-9.25,20.5zM 249,89q-16-16.5 -40-19.5l-34-67q 52-9.5 97.5,17.5zM 131.5,132.5l-67.5-17q 7-44 38.5-75.5q 10.5-10.5 26.5-20l 31,61.5q-5.5,4.5 -8.5,7q-18,18 -20,44zM 188,222.5l-73,24l-12.5-12q-29.5-29.5 -37.5-70l 86.5,21.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"snowman\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 472.5,158l-92,54.5q 3.5,14.5 3.5,27.5q0,34.5 -19.5,63.5q 23.5,26.5 37.5,61.75t 14,69.25q0,19 -4.25,32.75t-14.75,22t-19.75,13.25t-28.5,6.75t-31.25,2.25t-37,0.5l-8.25,0 l-8.75,0 q-24.5,0 -36.75-0.5t-31.25-2.25t-28.5-6.75t-20-13.25t-14.75-22t-4.25-32.75q0-34 14-69.25t 38-61.75q-20-29 -20-63.5\nq0-13 3.5-27.5l-91.5-54.5q-6-3.5 -7.5-10t 1.75-12t 9.25-7.25t 12,1.25l 88.5,53q 16.5-27.5 44.5-42.5q-28.5-24 -28.5-60.5q0-33 23.5-56.5t 56.75-23.5t 56.5,23.5t 23.25,56.5q0,36.5 -28,60.5q 28,15 44.5,42.5l 88.5-53q 5.5-3 11.75-1.25t 9.5,7.25t 1.5,12t-7.25,10zM 272.25,320q 6.75,0 11.25-4.75t 4.5-11.25t-4.5-11.25\nt-11.25-4.75t-11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75zM 272.25,256q 6.75,0 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75t-11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75zM 240.25,64q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 272.25,160\nq-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 304,64q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"christmastree\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480.5,384.5q0,2.5 -0.5,5l0,0.5 t-0.5,0.5q-0.5,2.5 -1.5,5.5l0,0.5 q-1,2 -2.5,4.5l-0.5,1q-1.5,1.5 -3,3.5l-1.5,1.5l-2,2q-2,1 -3.5,2l-0.25,0.25l-0.25,0.25l-0.5,0 q-5.5,3 -11.5,4q-3.5,0.5 -4,0.5l-128,0 l0,64 q0,13 -9.5,22.5t-22.5,9.5l-64.5,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 l-128,0 q-0.5,0 -4-0.5q-6-1 -11.5-4l-0.5,0 l-0.25-0.25\nl-0.25-0.25q-1.5-0.5 -3.5-2q-1-1.5 -2-2l-1.5-1.5q-1.5-2 -3-3.5l-0.25-0.5l-0.25-0.5q-1.5-2.5 -2.5-4.5l0-0.5 q-1-3 -1.5-5.5q-0.5,0 -0.5-0.5l0-0.5 q-0.5-2.5 -0.5-5l0-0.5 l0-1 l0-0.5 q 0.5-2 0.5-3.5q 0.5-2 1-4.5l0-0.5 q 2-6 6.5-11l 52-78.5q 46,45 128.25,72t 180.25,27q 39,0 79.5-5l0,0.5 q0,1.5 0.5,3.5l0,0.5 l0,0.75 l0,0.75 zM 112,351.5q-6.5,0 -11.25,4.75t-4.75,11.5\nt 4.75,11.25t 11.25,4.5t 11.25-4.5t 4.75-11.25t-4.75-11.5t-11.25-4.75zM 176.25,351.5q-6.75,0 -11.5,4.75t-4.75,11.5t 4.75,11.25t 11.5,4.5t 11.25-4.5t 4.5-11.25t-4.5-11.5t-11.25-4.75zM 111.5,255.5l-15.5,0 l-4,0 q-6-1 -11.5-4q-0.5,0 -0.5-0.25t-0.25-0.25l-0.25,0 q-1.5-1 -3-2.5q-2-1 -2.5-1.5t-1.5-2q-1.5-1.5 -2.5-3l-0.75-0.75l-0.25-0.25q-1.5-2.5 -2.5-4.5l0-1 \nq-1-2.5 -1.5-5l-0.25-0.5l-0.25-0.5q-0.5-2.5 -0.5-5l0-0.25 l0-0.75 l0-0.5 l0-1 q 0.5-2 0.5-3q 0.5-2 1-4.5l0-0.5 q 3-9.5 11-15.5l 36.5-44q 32.5,55 116.75,91.5t 192.25,41l 42,63q-25,1.5 -47.5,1.5q-96,0 -177-26t-128-70zM 144.25,223.5q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75z\nM 208.25,255.5q-6.75,0 -11.5,4.75t-4.75,11.25t 4.75,11.25t 11.5,4.75t 11.25-4.75t 4.5-11.25t-4.5-11.25t-11.25-4.75zM 304.25,287.5q-6.75,0 -11.25,4.75t-4.5,11.25t 4.5,11.25t 11.25,4.75t 11.5-4.75t 4.75-11.25t-4.75-11.25t-11.5-4.75zM 448,229.5l-0.5,1q-0.5,2.5 -1.5,5l0,1 q-1,2 -2.5,4.5l-0.25,0.25t-0.25,0.75l-3,3\nq-1,1.5 -1.5,2t-2.5,1.5q-1.5,1.5 -3,2.5l-0.25,0 t-0.25,0.5l-0.5,0 q-2,1 -8,2.5q-100-6 -178-40t-112-84.5l 56.5-68.5q 31,38 88.5,66t 131,40l 26,31.5q 8,6 11,15.5l0,0.5 q 0.5,2.5 1,4.5q0,1 0.5,3l0,1 l0,0.75 l0,0.5 l0,0.25 q0,2.5 -0.5,5zM 240.25,127.5q-6.75,0 -11.5,4.5t-4.75,11.25t 4.75,11.5t 11.5,4.75t 11.5-4.75\nt 4.75-11.5t-4.75-11.25t-11.5-4.5zM 304.25,159.5q-6.75,0 -11.25,4.75t-4.5,11.25t 4.5,11.25t 11.25,4.75t 11.5-4.75t 4.75-11.25t-4.75-11.25t-11.5-4.75zM 368.5,191.5q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 228.5,15.5q0-0.5 0.25-0.75t 0.75-0.25q 2.5-4.5 7-8\nq 0.5-0.5 1.5-1q0-0.5 1-1t 1.5-1q 0.5,0 1.75-0.25t 1.75-0.75q 3.5-1.5 6.5-2q 2-0.5 5.75-0.5t 6.25,0.5t 6,2q 0.5,0.5 1.75,0.75t 2,0.5t 1.75,1.25q 0.5,0 0.5,0.5l 1.5,1q 4.5,3.5 7.5,8l 0.25,0.25t 0.25,0.75l 90,108q-108.5-29 -162-88.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"mickeymouse\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 434.5,250q 13.5,34 13.5,70q0,52 -25.75,96.25t-70,70t-96.25,25.75t-96.25-25.75t-70-70t-25.75-96.25q0-36 13.5-70q-34.5-11 -56-40.25t-21.5-65.75q0-46.5 32.75-79.25t 79.25-32.75q 43,0 74.5,28.5t 36,70.5q 18-3 33.5-3t 33.5,3q 4.5-42 36-70.5t 74.5-28.5q 46.5,0 79.25,32.75t 32.75,79.25\nq0,36.5 -21.5,65.75t-56,40.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"viking\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 444,281.5q 4,19 4,38.5q0,0.5 -0.25,1.25l-0.25,0.75q 9-2 15.5-2q 17,0 17,48.5q0,19.5 -29.75,38t-82,30t-112.25,11.5t-112.25-11.5t-82-30t-29.75-38q0-48.5 18.5-48.5q 5.5,0 14,2q-0.5-0.5 -0.5-1l0-1 q0-19.5 4-38.5q-68-43 -68-137.5q0-13 0.5-20.25t 3.25-19t 9.75-21.75t 18.5-19q0,94 71,140.5\nq 26.5-35.5 66.75-56t 86.25-20.5t 86.25,20.5t 66.75,56q 71-46.5 71-140.5q 11.5,9 18.5,19t 9.75,21.75t 3.25,19t 0.5,20.25q0,94.5 -68,137.5zM 256,192q-8,0 -20,5t-12,11l0,173.5 q 16.5,2.5 32,2.5t 32-2.5l0-173.5 q0-6 -12-11t-20-5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"watch\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 509.5,427l-82.5,82.5q-6,6 -11.5,0l-109.5-109l-12.5,12.5q-3,3 -7.25,3t-7.25-3l-29-29q-49.5-2.5 -84.25-37.5t-37.25-84l-29.5-29.5q-3-3 -3-7.25t 3-7.25l 12.5-12.5l-109-109.5q-6-5.5 0-11.5l 82.5-82.5q 6-6 11.5,0l 109.5,109l 12.5-12.5q 3-3 7.25-3t 7.25,3l 29.5,29.5q 49,2.5 84,37.25t 37.5,84.25\nl 29,29q 3,3 3,7.25t-3,7.25l-12.5,12.5l 109,109.5q 6,5.5 0,11.5zM 256.25,160q-39.75,0 -68,28.25t-28.25,68t 28.25,67.75t 68,28t 67.75-28t 28-67.75t-28-68t-67.75-28.25zM 267.5,299q-4.5,5 -11.5,5t-12-5l-47-46.5q-5-5 -5-11.75t 4.75-11.75t 11.75-5t 12,5l 35.5,35l 35.5-35\nq 4.5-5 11.5-5t 12,5t 5,11.75t-5,11.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cassette\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-320 q0-13 9.5-22.5t 22.5-9.5l 448,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,320 q0,13 -9.25,22.5t-22.75,9.5zM 304,416q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 48,416q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25\nt-11.25-4.75t-11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 48,96q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 128.25,160q-39.75,0 -68,28t-28.25,68t 28.25,68t 68,28t 67.75-28t 28-68t-28-68t-67.75-28zM 208,384\nq-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 464,96q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 384,160q-40,0 -68,28t-28,68t 28,68t 68,28t 68-28t 28-68t-28-68\nt-68-28zM 464,384q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 384.25,288q-13.25,0 -22.75-9.25t-9.5-22.75t 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75t-9.25,22.75t-22.5,9.25zM 128.25,288q-13.25,0 -22.75-9.25t-9.5-22.75t 9.5-22.75\nt 22.75-9.25t 22.5,9.25t 9.25,22.75t-9.25,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"knob\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 64,448l-64-96l 384-352l 96,32l 32,96l-352,384zM 315.5,224l 132.5-132.5l-27.5-27.5l-132.5,132.5zM0,256q0-52 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25q 40,0 78.5,12.5l-329.5,294q-5-25.5 -5-50.5zM 512,256q0,52 -20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25q-25.5,0 -50.5-5\nl 294-329.5q 12.5,38.5 12.5,78.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"trumpet\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512q-36.5-44.5 -74-88q-8,16.5 -18.5,27q-29,29 -69.5,29t-69.5-29l-59.5-59q-28.5-29 -28.5-69.5t 28.5-69.5q 8.5-8.5 21.5-16q-71.5-45 -146-45l-28-6q-4.5-5 -4.5-11.5t 4.5-11.5l 158.5-158.5q 5-4.5 11.5-4.5t 11.5,4.5l 6.5,28q0,51.5 23.25,106.25t 73.25,104.75l 76,76q 20,20 56.75,52.25t 63.5,54.25\nl 26.75,22zM 196.5,292.5q-12,12.5 -12,30t 12,29.5l 59.5,59.5q 12.5,12.5 30,12.5t 29.5-12.5q 16.5-16.5 11-39.5q-4.5-5 -7-7l-76-76q-1.5-1.5 -4.25-4t-3.75-3.5q-22.5-5 -39,11z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"metronome\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 96,512l 39.5-275l-69-116q-4-6 -2-12.75t 8.25-10.25t 13-1.75t 10.25,7.75l 47,79l 17-119l 112-64l 112,64l 64,448l-352,0 zM 144,416l 97.5,0 l-78-131.5zM 352,96l-80-64l-80,64l-20.5,135.5l 84.5,141.5l0-293 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,336 l 112,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"submarine\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,339.5q0,5.5 -4.5,9t-11.5,3.5t-13.25-3.5t-9.25-9l-20.5-14.5q-21.5,8 -62.25,37.5t-48.75,34.5l-15,40q-2,4.5 -8,7.75t-13,3.25l-132,0 q-7,0 -13-3.25t-8-7.75l-8-21l-17,0 q-53,0 -90.5-37.5t-37.5-90.5q0-45.5 28.25-80.25t 71.75-44.75l 21-56q 2-4.5 8-7.75t 13-3.25l 18,0 l0-16 q0-6.5 -4.75-11.25\nt-11.25-4.75l-16,0 l0-32 l 32,0 q 13,0 22.5,9.5t 9.5,22.5l0,32 l 18,0 q 7,0 13,3.25t 8,7.75l 20,53l 37,0 q 18,0 40,11.25t 40,25.5t 41.25,30.25t 40.75,22.5l 23.5-45q 3-5.5 9.25-9t 13.25-3.5t 11.5,3.5t 4.5,9l0,50.5 l0,0.5 l0,0.25 l0,0.25 l0,83.5 zM 96.25,256q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5\nt-9.25-22.75t-22.5-9.5zM 192.25,256q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 288.25,256q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"speaker\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,512l-320,0 q-13,0 -22.5-9.5t-9.5-22.5l0-448 q0-13 9.25-22.5t 22.75-9.5l 320,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,448 q0,13.5 -9.5,22.75t-22.5,9.25zM 256,32q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75zM 256,224q-53,0 -90.5,37.5\nt-37.5,90.5t 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5t-37.5-90.5t-90.5-37.5zM 256,416q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 256,128q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.75t-9.5,22.5t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"stove\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-448 q0-13 9.5-22.5t 22.5-9.5l 448,0 q 13,0 22.5,9.25t 9.5,22.75l0,448 q0,13.5 -9.5,22.75t-22.5,9.25zM 144,64q-33,0 -56.5,23.5t-23.5,56.5t 23.5,56.5t 56.5,23.5t 56.5-23.5t 23.5-56.5t-23.5-56.5t-56.5-23.5zM 144,288q-33,0 -56.5,23.5t-23.5,56.5t 23.5,56.5t 56.5,23.5t 56.5-23.5\nt 23.5-56.5t-23.5-56.5t-56.5-23.5zM 368,64q-33,0 -56.5,23.5t-23.5,56.5t 23.5,56.5t 56.5,23.5t 56.5-23.5t 23.5-56.5t-23.5-56.5t-56.5-23.5zM 368,288q-33,0 -56.5,23.5t-23.5,56.5t 23.5,56.5t 56.5,23.5t 56.5-23.5t 23.5-56.5t-23.5-56.5t-56.5-23.5zM 368,416q-20,0 -34-14t-14-34t 14-34t 34-14t 34,14t 14,34t-14,34t-34,14z\nM 368,192q-20,0 -34-14t-14-34t 14-34t 34-14t 34,14t 14,34t-14,34t-34,14zM 144,416q-20,0 -34-14t-14-34t 14-34t 34-14t 34,14t 14,34t-14,34t-34,14zM 144,192q-20,0 -34-14t-14-34t 14-34t 34-14t 34,14t 14,34t-14,34t-34,14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"lego\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M0,448l0-224 q0-13.5 9.25-22.75t 22.75-9.25l 32,0 l 128,0 l 128,0 l 128,0 l 32,0 q 13,0 22.5,9.25t 9.5,22.75l0,224 l-512,0 zM 320,160l0-32 q0-13 9.25-22.5t 22.75-9.5l 64,0 q 13,0 22.5,9.5t 9.5,22.5l0,32 l-128,0 zM 64,160l0-32 q0-13 9.25-22.5t 22.75-9.5l 64,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,32 l-128,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"rim\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5q0-52 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 303,409q 34.5-10.5 62-36q-25.5-31.5 -42-41.5q-14.5-8 -31-13q-4,16.5 -4,33.5\nq0,19 15,57zM 209,409q 15-38 15-57q0-16.5 -4-33.5q-17,5 -31,13q-16.5,9.5 -42,41.5q 27.5,25.5 62,36zM 96,256q0,16 4.5,36q 40-6 56.5-15.5q 15-9 27-20q-12.5-12.5 -27-21q-16.5-9.5 -56.5-15.5q-4.5,20 -4.5,36zM 209,103q-34.5,10.5 -62,36q 25.5,31.5 42,41.5q 15,8.5 31,13.5q 4-16.5 4-34\nq0-19 -15-57zM 256,224q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25t 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5zM 303,103q-15,38 -15,57q0,16.5 4.5,33.5q 15.5-4.5 30.5-13q 16.5-10 42-41.5q-27.5-25.5 -62-36zM 411.5,220q-40,6 -56.5,15.5q-14,8.5 -27,21q 12.5,11 27,20\nq 16.5,9.5 56.5,15.5q 4.5-20 4.5-36t-4.5-36z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"eightball\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 208,64q-59.5,0 -101.75,42.25t-42.25,101.75t 42.25,101.75t 101.75,42.25\nt 101.75-42.25t 42.25-101.75t-42.25-101.75t-101.75-42.25zM 255,215.5q 3.5,24 -9.75,44t-36.75,26.5q-25.5,6.5 -48.5-6.75t-30-38.75q-5.5-21.5 3.25-41.5t 27.75-30.5q-3.5-24 9.75-44t 36.75-26.5q 25.5-6.5 48.5,6.75t 30,38.75q 5.5,21.5 -3.25,41.5t-27.75,30.5zM 183.5,193q-12.5,3.5 -19.25,15t-3.25,24.25t 15,19.5\nt 24.25,3.25t 19.5-15t 3.25-24.5q-1-3.5 -3.25-4.5t-5.75-1.25t-6-1.75t-7.25-6.25t-9-7.25t-8.25-1.5zM 255,151.5q-3.5-12.5 -15-19.25t-24.5-3.25q-11,3 -17.5,12.25t-6,20.75q 11.5,2 32,14q 11.5,6.5 17,11q 8.5-5.5 12.5-15.25t 1.5-20.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"glue\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,464q-1.5,18 -16.25,33t-31.75,15l-224,0 q-17,0 -31.75-15t-16.25-33l-32-208q0-24.5 14-44.25t 34-19.75l 28.5,0 q-12.5-23.5 -12.5-32q0-7 18.5-16.5t 45.5-18q 1-20 9.25-48.75t 23.5-52.75t 31.25-24t 31.25,24t 23.5,52.75t 9.25,48.75q 27,8.5 45.5,18t 18.5,16.5q0,8.5 -12.5,32l 28.5,0 q 20,0 34,19.75t 14,44.25z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"globe\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 405,373q-61.5,61 -148,72.5l0,34.5 l 48,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-160,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 48,0 l0-34.5 q-87.5-10.5 -149.5-72.5l-11.5-11.5l 46-46q-44.5-53.5 -44.5-123q0-52 25.5-96.25t 69.75-70t 96.25-25.75q 69.5,0 123,45l 45.5-45.5l 11.5,11.5\nq 49,49 66.5,114.75t0,131.5t-66.5,115.25zM 393,45.5q-6.5,7 -22.5,22.5q 46,54 46,124.5q0,52 -25.5,96.25t-69.75,69.75t-96.25,25.5q-70.5,0 -124.5-46q-4,4 -22.5,23q 43,37.5 98.25,49.75t 110-3.5t 96-57t 57-96t 3.5-110t-49.75-98.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"birthday\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,512l-480,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 16,0 l0-192 q0-26.5 18.75-45.25t 45.25-18.75l 320,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,192 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 400,96q 6.5,0 11.25,4.75t 4.75,11.25l0,80 l-64,0 l0-80 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 z\nM 389.5,80q 10.5-9.5 10.5-20q0-3.5 -3.75-9.75t-7.25-10.75l-3.5-4.5q-3.5,18.5 -15,25q-3.5,3 -2.25,8.75t 5.25,11.25q-4.5,0 -15-9q-6.5-6 -6.5-13.5q0-11 11-20q 5-4.5 6.5-13.75t0-16.75l-1.5-7q 26,10 38.5,27q 10,14 9.5,28q-0.5,15.5 -2.5,17.5q-3.5,3 -11.25,5.25t-12.75,2.25zM 272,96q 6.5,0 11.25,4.75\nt 4.75,11.25l0,80 l-64,0 l0-80 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 zM 261.5,80q 10.5-9.5 10.5-20q0-3.5 -3.75-9.75t-7.25-10.75l-3.5-4.5q-3.5,18.5 -15,25q-3.5,3 -2.25,8.75t 5.25,11.25q-4.5,0 -15-9q-6.5-6 -6.5-13.5q0-11 11-20q 5-4.5 6.5-13.75t0-16.75l-1.5-7q 26,10 38.5,27q 10,14 9.5,28q-0.5,15.5 -2.5,17.5\nq-3.5,3 -11.25,5.25t-12.75,2.25zM 144,96q 6.5,0 11.25,4.75t 4.75,11.25l0,80 l-64,0 l0-80 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 zM 133.5,80q 10.5-9.5 10.5-20q0-3.5 -3.75-9.75t-7.25-10.75l-3.5-4.5q-3.5,18.5 -15,25q-3.5,3 -2.25,8.75t 5.25,11.25q-4.5,0 -15-9q-6.5-6 -6.5-13.5q0-11 11-20q 5-4.5 6.25-13.75\nt 0.25-16.75l-1.5-7q 26,10 38.5,27q 10,14 9.5,28q-0.5,15.5 -2.5,17.5q-3.5,3 -11.25,5.25t-12.75,2.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fries\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 511.5,231l-52,256q-1.5,10.5 -12.5,17.75t-24.5,7.25l-329,0 q-13.5,0 -24.5-7.25t-13-17.75l-55.5-256q-2.5-13 3.25-23.5t 17.25-15.5q 31,13.5 95.25,22.75t 140.25,9.25q 75.5,0 139.25-9t 94.75-23q 11.5,5 17.25,15.5t 3.75,23.5zM 416,48l 64-16l0,132 q-24.5,9 -64,15.5l0-131.5 zM 320.5,0.5l 63.5,32l0,152 \nq-30.5,3.5 -63.5,5.5l0-189.5 zM 224.5,191.5l0-175 l 64-16l0,191 q-19,0.5 -32.25,0.5t-31.75-0.5zM 128.5,16.5l 64-16l0,189.5 q-33.5-1.5 -64-5.5l0-168 zM 32.5,64l 64-32l0,147.5 q-39.5-6.5 -64-15l0-100.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"raspberrypi\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,304q0,22 -8.75,40.25t-23.25,28.75q 1.5,41.5 -32,74.5q-30,30 -68.5,32q-8,14 -28.75,23.25t-46.75,9.25t-46.75-9.25t-28.75-23.25q-38.5-2 -68.5-32q-33.5-33 -32-74.5q-14.5-10.5 -23.25-28.75t-8.75-40.25q0-22.5 9.5-41.5t 25-29q-5.5-18.5 1-40t 23.5-38.5q 15-14.5 34.5-22q-24-12.5 -40.75-36.75\nt-20.75-50.75q 14-21 37.25-33.25t 50.75-12.25t 50.75,12.25t 37.25,33.25q 14-21 37.25-33.25t 50.75-12.25t 50.75,12.25t 37.25,33.25q-4,26.5 -20.75,50.75t-41.25,36.75q 20,7.5 35,22q 17,17 23.5,38.5t 1,40q 15.5,10 25,29t 9.5,41.5zM 317,446q 24.5-5 43-22.5q 15.5-14.5 20.75-27t 2.25-22t-13-19\nq-7.5-6.5 -16.5-11.5l-0.5,0.5t-1,0.5q-6.5,3.5 -16,5.5l0,0.5 l0,1 q0,40 -28.5,68q 6.5,15.5 9.5,26zM 342,257q-11.5-19 -33.25-28.25t-37-1.25t-15.75,32.25t 13.5,36.25q 20.5,18 39.75,22.75t 28.75-4.75q 13-12 14-25t-10-32zM 240,480q 20,0 34-9.25t 14-22.75q0-5.5 -3.5-11.5q-21.5,11.5 -44.5,11.5t-44.5-11.5\nq-3.5,6 -3.5,11.5q0,13.5 14,22.75t 34,9.25zM 240,416q 25.5,0 44.75-15.5t 19.25-32.5q0-8 -3-19q-38.5-10 -61-44.5q-22.5,34.5 -61,44.5q-3,10.5 -3,19q0,17 19.25,32.5t 44.75,15.5zM 208.25,227.5q-15.25-8 -37,1.25t-33.25,28.25q-11,19 -10,32t 14,25q 9.5,9.5 28.75,4.75t 39.75-22.75q 14-12 13.5-36.25\nt-15.75-32.25zM 120,423.5q 18.5,17.5 43,22.5q 3-10.5 9.5-26q-28.5-28 -28.5-68l0-1 l0-0.5 q-9-2 -16-5.5q-0.5,0 -1-0.5l-0.5-0.5q-9,5 -16.5,11.5q-10,9.5 -13,19t 2.25,22t 20.75,27zM 64,304q0,20.5 9,37q 3.5-5 6.5-8q 9-9 24.5-11.5q-16-29.5 -1-65q-5-0.5 -7-0.5q-14.5,0 -23.25,11.5t-8.75,36.5zM 117,181\nq-19,19 -21,43q 12,0 23.5,6q 22-27 53.5-35q-12.5-15.5 -13-34.5q-24,2 -43,20.5zM 155,32q-16,0 -34.5,5t-24.5,11q 4,22.5 24,43.25t 44.5,20.75q 9.5,0 18.5-2q-4-7.5 -9.75-15.25t-13-15.25t-11.75-12.25t-12-11.5t-8.5-7.75q 25.5,3.5 48.5,16t 38.5,31q 6-5 9-9l0-0.5 q0-22.5 -20.25-38t-48.75-15.5zM 240,128\nq-20,0 -34,14t-14,34q0,8 3,16q 16,0 29,7q 8.5,4 16,12.5q 7.5-8.5 16-12.5q 13-7 29-7q 3-8.5 3-16q0-20 -14-34t-34-14zM 384,48q-6-6 -24.5-11t-34-5q-29,0 -49.25,15.5t-20.25,38l0,0.5 q 3,4 9,9q 15.5-18.5 38.5-31t 48.5-16q-1,1 -8.5,7.75t-12,11.5t-11.75,12.25t-13,15.25\nt-9.75,15.25q 9,2 18.5,2q 24.5,0 44.5-20.75t 24-43.25zM 363,181q-19-18.5 -43-20.5q0,19 -13,34.5q 31.5,8 53.5,35q 11.5-6 23.5-6q-2-24 -21-43zM 384,256q-2,0 -7,0.5q 15,35.5 -1,65q 15.5,2.5 24.5,11.5q 3,2.5 6.5,8q 9-16.5 9-37q0-48 -32-48z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"raspberry\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,224q0,24 -15.75,42t-39.25,21q 23,19.5 23,49q0,26.5 -18.75,45.25t-45.25,18.75l-1.25,0 l-1.25,0 q 2.5,8.5 2.5,16q0,26.5 -18.75,45.25t-45.25,18.75q-19.5,0 -36-11q-6.5,19 -23,31t-37,12t-37-12t-23-31q-16.5,11 -36,11q-26.5,0 -45.25-18.75t-18.75-45.25q0-7.5 2.5-16l-1.25,0 l-1.25,0 \nq-26.5,0 -45.25-18.75t-18.75-45.25q0-29.5 23-49q-23.5-3 -39.25-21t-15.75-42q0-26.5 18.75-45.25t 45.25-18.75q 3,0 9.5,1q-9.5-15.5 -9.5-33q0-26.5 18.75-45.25t 45.25-18.75q 8,0 16,2.5q 4-1.5 8.5-2q-24.5-21.5 -24.5-55q 14.5-9.5 31.5-9.75t 32.5,9.25q 14,9 22.5,25q0-0.5 0.75-1.75t 0.75-1.75q 9-15.5 25.25-23.25\nt 35.25-7.25q 13,19.5 11,41q 4.5,2.5 5.5,3.5q 8.5-23.5 27-35q 15.5-10 32.5-9.75t 31.5,9.75q0,34 -25,55.5q 14.5,2 25,8q 15.5-9 32-9q 26.5,0 45.25,18.75t 18.75,45.25q0,19.5 -11,36q 19,6.5 31,23t 12,37zM 416.25,352q 13.25,0 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5t-22.75,9.5t-9.5,22.75t 9.5,22.5\nt 22.75,9.25zM 352.25,448q 13.25,0 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5t-22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25zM 320,320.25q0-13.25 -9.25-22.75t-22.75-9.5t-22.75,9.5t-9.25,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5zM 256.25,480q 13.25,0 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5\nt-22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25zM 224,320.25q0-13.25 -9.25-22.75t-22.5-9.5t-22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5zM 160.25,448q 13.25,0 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5t-22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25zM 96.25,352q 13.25,0 22.5-9.25t 9.25-22.5\nt-9.25-22.75t-22.5-9.5t-22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25zM 64.25,192q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 128.25,96q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 160.25,192\nq-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 224.25,96q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 256.25,192q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5\nt-9.25-22.75t-22.5-9.5zM 320.25,128q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 352.25,224q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 416.25,96q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5\nt 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 448,192q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25t 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"chocolate\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,416l-187,0 q 18,9 24,19.25t 1.5,19.5t-11.25,17.25t-11.75,15.5t-3,11.5q-7.5,13 -15.5,13q-3.5,0 -17.75-12.75t-33.5-29t-31.25-22.25l-162.5,0 q-13,0 -22.5-9.5t-9.5-22.5l0-32 l0-224 l0-32 q0-13.5 9.25-22.75t 22.75-9.25l 128,0 q 22,0 43.25-10t 34-22t 23-22t 12.25-10q 4,0 6.75,0.5t 5.75,4.25t 3,11.25\nq-15.5,27 -15.5,64q0,6.5 1,16l 206.5,0 q 13,0 22.5,9.25t 9.5,22.75l0,224 q0,13.5 -9.25,22.75t-22.75,9.25zM 217.5,128l-185.5,0 l0,288 l 185.5,0 q-3-2.5 -7.25-6.75t-11.25-16.75t-7-24.5q0-12.5 4.75-22t 20.75-26q 7-7.5 7-18.5t-5-23.25t-11.25-24.25t-11.25-24.75t-5-21.25q0-18.5 6.25-38.5t 12.75-30.5zM 336,160\nl-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-48 l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 336,288l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-48 l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25\nt-4.75-11.25t-11.25-4.75zM 464,160l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-48 l 48,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 464,288l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,64 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-48 \nl 48,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"coffeebean\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 463.5,454q-4.5-22.5 -55.5-85.5t-126.25-138.25t-138.25-126.25t-85.5-55.5q 42-39 104.75-47t 130.25,17.25t 121.25,79t 79,121.25t 17.25,130.25t-47,104.75zM 230.25,281.75q 75.25,75.25 138.25,126.25t 85.5,55.5q-42,39 -104.75,47t-130.25-17.25t-121.25-79t-79-121.25t-17.25-130.25\nt 47-104.75q 4.5,22.5 55.5,85.5t 126.25,138.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sunnysideup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,341.5q0,80 -15.75,125.25t-48.25,45.25q-22.5,0 -45.75-5t-42-12.75t-40.25-16.5t-40.25-16.25t-42-12.75t-45.75-5.25q-31.5,0 -57-18.5t-40.5-48.75t-22.75-65.5t-7.75-71.75q0-15 9.75-33t 20.75-31t 27.5-30.75t 22-24.75q 8.5-11 20.25-33.5t 20.75-40.25t 23.75-31.75t 31.25-14q 26.5,0 68.5,10.25t 88,29\nt 86.5,41.5t 66.75,51.5t 26.25,55.25q0,24 -6.5,45.5t-16,36.25t-19,27.5t-16,24t-6.5,20.75zM 192,32q-14.5,0 -28.5,12.25t-22.75,27.5t-20,35.5t-18.75,29.25q-5,6 -19.5,21.75t-24,27t-18,27t-8.5,28.75q0,32 6.75,62.25t 20,56t 35.25,41.25t 50,15.5q 23,0 47,6.5t 44.5,16l 41,19\nt 44.5,16t 47,6.5q 14,0 23.75-12t 15-35t 7.25-49.75t 2-63.25q0-8 6.5-16.75t 16-18.25t 19-21t 16-29.25t 6.5-38.25q0-23.5 -23.75-48.75t-59.5-45.25t-75.5-36.25t-74.75-25.25t-54.5-9zM 224,352q-40,0 -68-28t-28-68t 28-68t 68-28t 68,28t 28,68t-28,68t-68,28z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pepperoni\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 471.75,471.75q-24.75,24.75 -23.75,40.25q-3,0 -5.75-3t-5.75-7.25t-4.5-5.75q-2-2 -4.5-8.25t-6-16t-6.5-16.75q-42.5,29 -95,24.25t-90-42.25l-155-155q-37.5-37.5 -42.25-90t 24.25-95q-7-3 -16.75-6.5t-16-6t-8.25-4.5q-1.5-1.5 -5.75-4.5t-7.25-5.75t-3-5.75q 16,1 40.5-23.5q 24.5-25 23.5-40.5\nq 3,0 5.75,3t 5.75,7.25t 4.5,5.75q 2,2 4.5,8.25t 6,16t 6.5,16.75q 42.5-29 95-24.25t 90,42.25l 155,155q 37.5,37.5 42.25,90t-24.25,95q 7,3 16.75,6.5t 16,6t 8.25,4.5q 1.5,1.5 5.75,4.25t 7.25,5.75t 3,6q-15.5-1 -40.25,23.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"muffin\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,192q0,21 -4.5,38t-11,29.75t-20,22.25t-24.25,16t-31.75,10.75t-34.75,6.5t-40.75,3.25t-42.5,1.25t-46.5,0.25t-46.5-0.25t-42.5-1.25t-40.75-3.25t-34.75-6.5t-31.75-10.75t-24.25-16t-20-22.25t-11-29.75t-4.5-38q0-35 19.5-69.25t 54-61.75l-9.5-29l 92-15.5q 48-16.5 100-16.5q 90,0 162.5,47\nl 29.5-15l 48,96l-0.5,0.5q 16.5,32 16.5,63.5zM 470.5,145l-22.5,15l-96-80l 34-17q-59.5-31 -130-31q-39.5,0 -78,10.5l 14,21.5l-96,64l-12.5-37q-24.5,20.5 -38,45t-13.5,49.5q0,41.5 23,65l 9-26.5l 96,32l-18.5,28q 34.5,4 114.5,4q 46,0 68-0.5l 12-47.5l 80-16l 23,40.5q 41-23.5 41-79q0-20 -9.5-40.5z\nM 192,176l 32-80l 96,32l-16,64zM 110,489.5q-46-18 -46-41.5l-32-128q 26.5,13.5 66,21zM 192,508.5q-26-3.5 -49-9l-13-153q 28,3.5 62,4.5l0,157.5 zM 288,352l0,159 q-17,1 -32,1t-32-1l0-159 l 32,0 l 32,0 zM 369,499.5q-23,5.5 -49,9l0-157.5 q 34-1 62-4.5zM 480,320l-32,128q0,23.5 -46,41.5l 12-148.5\nq 39.5-7.5 66-21z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"restaurantmenu\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,448l-32,0 l0,9.5 q0,26.5 -14.75,42.25t-35.75,11.25l-251-49.5q-21-4 -35.75-25.5t-14.75-48l0-4 l0-314 l0-6 q0-26.5 18.75-45.25t 45.25-18.75l 320,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,320 q0,26.5 -18.75,45.25t-45.25,18.75zM 96,208.5q0,23 15,42q 2,3 10.75,9.5t 15.5,13.75t 6.75,14.25l0,16 l0,48 \nq0,7.5 15.75,13.75t 48.25,14.25q 19.5,5 33.75,3.75t 22.25-5.75t 8-10l0-32 l0-32 q0-7 6.75-13.25t 16-11.25t 10.75-6.5q 2.5-2 7.25-4.5t 6-5.25t 1.25-9.75q0-22.5 -14.5-41.5t-34.5-23q-12.5-2.5 -23.5,2.5q-15-25.5 -39.75-30.5t-39.25,14.5q-11.5-9 -23.5-11.5q-20.5-4 -34.75,9t-14.25,35.5zM 448,87q0-23 -16.25-39\nt-38.75-16l-232.5,0 l 173,34q 21,4.5 35.75,26t 14.75,47.5l0,276.5 l 9,0 q 22.5,0 38.75-16.25t 16.25-38.75l0-274 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bottle\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,480q-2.5,13 -10.75,22.5t-21.25,9.5l-192,0 q-13,0 -21-9.25t-11-22.75l-32-192l0-64 q0-14.5 9.75-24t 28.75-18.75t 23.5-12.25q 20-14 36-33t 23.5-40l-9.5,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,64 q0,6.5 -4.75,11.25t-11.25,4.75l-9.5,0 \nq 15,40.5 55.5,70q 5.5,4.5 25,14t 30.25,19.5t 10.75,24.5l0,64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"steak\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 481,488q-19.5,20 -53.25,23.75t-75.25-11t-80.5-46.25q-19.5-16 -44.5-24.5t-47.75-10.75t-44.75-4t-41.25-7.5t-30.75-17.75q-40-40.5 -55.25-102.75t-1.75-124.5t 53.5-102.75t 101.25-54.25t 122.5,1.75t 101.25,56.5q 24.5,24.5 49.25,67.5t 43.5,94t 28.75,101t 4.25,93.75t-29.25,67.75zM 368,95.5\nq-28-28.5 -65.75-45.5t-78.25-18.5q-39-1 -76.5,13t-63.5,40q-55.5,56.5 -52,139q 1,34 12.5,70.25t 26.5,63.25q 7.5,13 26.5,19t 43.75,7.5t 50.75,3t 52.5,8.5t 43.5,21q 35.5,29 66.25,44t 56.25,15.75t 42.5-16.75q 20.5-21 25.5-58.5t-4-80.25t-25.25-86.25t-38-80t-43.25-58.5zM 288,384\nq-18-15 -49.5-22.5t-59.25-8.75t-52.25-5t-31-12.25q-29.5-37 -32-106q-3-71 44.5-120q 22-22.5 54.25-34.75t 65.75-11.25q 34.5,1 67,16t 56.5,39.5q 35.5,36 65.75,113t 30.25,136q0,24.5 -2.75,38.75t-13.25,25.25q-38,38.5 -144-48zM 176,127.5q-20,0 -34,14.25t-14,34t 14,33.75t 34,14t 34-14\nt 14-33.75t-14-34t-34-14.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bone\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,416q-36,0 -42,6t-6,42q0,20 -14,34t-34,14t-34-14t-14-34q 0.5-3 0.5-8.25t-0.75-20t-3.5-28t-10-29t-18.25-26.75l-64-64l-64-64q-15.5-15.5 -37.25-23.5t-36.25-9.25t-28.5-0.25q-5,1 -10,1q-20,0 -34-14t-14-34t 14-34t 34-14q 36,0 42-6t 6-42q0-20 14-34t 34-14t 34,14\nt 14,34q0,5 -1,9.5q-1,14 0.25,28.5t 9.25,36.5t 23.5,37.5q 13.5,13 40,39.75t 48.25,48.5l 39.75,39.75q 10.5,10.5 25.25,17.75t 27.5,10.25t 26.75,4t 20.5,0.75t 11-0.75l 0.75,0 l 0.25,0 q 20,0 34,14t 14,34t-14,34t-34,14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"mushroom\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448.25,256q-26.25,0 -55-8t-60.75-16t-66.25-8t-101,16.5t-95.25,15.5q-98.5-3 -58.5-64q 15-23 32.25-44.75t 45.25-49.75t 57.25-48.25t 68.25-34.5t 78.5-14.25q 50.5,0 92.25,15t 69.25,41t 42.5,61t 15,74.5q0,31 -18.75,47.5t-45,16.5zM 266.5,256q 24.5,0 50,4.5q-17.5,88.5 3.5,203.5\nq 4,20 -0.75,34t-18.25,14l-103.5,0 q-14.5,0 -25.75-13.25t-11.75-31.25q-3-106.5 29-200.5q 46.5-11 77.5-11z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cherry\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 415.75,384q-39.75,0 -67.75-28.25t-28-67.75q0-6.5 1.5-16q-157-56.5 -247.5-157.5q 21,117.5 87,211q 16.5-5.5 31-5.5q 40,0 68,28t 28,67.75t-28,68t-68,28.25t-68-28t-28-68q0-44 34.5-73.5q-76-106 -94-247q-3,0.5 -4.5,0.5q-13,0 -22.5-9.5t-9.5-22.5l0-32 q0-13.5 9.5-22.75t 22.75-9.25\nt 22.5,9.25t 9.25,22.75q0,3.5 1.5,18.5q 91,123.5 268,189q 12.5-21.5 34.5-34.5t 48-13q 40,0 68,28t 28,67.75t-28.25,68t-68,28.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pizza\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,32l-0.25-0.25l-0.25-0.25q-1,0.5 -2.5,1t-2.5,0.5l 197.5,479l-480-192.5l0,0.5 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0,0 l0-5.5 q 31-114.5 115.5-199t 199.5-115.5l 5,0 q 6.5,0 11.25,4.5t 4.75,11.25t-4.75,11.5t-11.25,4.75zM 383.75,416q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25\nt-9.25,22.5t 9.25,22.75t 22.5,9.5zM 127.75,224q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 223.75,128q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 223.75,288q-13.25,0 -22.5,9.25t-9.25,22.5\nt 9.25,22.75t 22.5,9.5t 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 288,255.75q0,13.25 9.25,22.75t 22.75,9.5t 22.75-9.5t 9.25-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cupcake\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,320q-69.5,0 -128.5-17.25t-93.25-46.75t-34.25-64q0-40 44.5-72.25t 116.5-46.75q 3.5,37 30.75,62t 64.25,25t 64.25-25t 30.75-62q 72,14.5 116.5,46.75t 44.5,72.25q0,34.5 -34.25,64t-93.25,46.75t-128.5,17.25zM 256,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75\nt 18.75,45.25t-18.75,45.25t-45.25,18.75zM 110,489.5q-46-18 -46-41.5l-32-160q 26.5,26.5 65,42zM 129.5,340.5q 28,7 62.5,10l0,158 q-26-3.5 -49-9zM 288,351.5l0,159.5 q-17,1 -32,1t-32-1l0-159.5 q 12.5,0.5 32,0.5q 20,0 32-0.5zM 369,499.5q-23,5.5 -49,9l0-158 q 34.5-3 62.5-10zM 480,288l-32,160q0,23.5 -46,41.5\nl 13-159.5q 38.5-15.5 65-42z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fish\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 406,382q-22-57 -22-126t 22-126q 45.5,8 75.75,43.5t 30.25,82.5t-30.25,82.5t-75.75,43.5zM 432,224q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 143,291q-13,4 -24,15.25t-19.25,24t-17.25,25.25t-21.75,20.5t-28.75,8\nq-15.5,0 -23.75-9.5t-8.25-22.5q0-34 21.5-57.25t 57.5-32.75q 1-3.5 1-6t-1-6q-36-9.5 -57.5-32.75t-21.5-57.25q0-12.5 9-22.25t 23-9.75q 16,0 28.75,8t 21.75,20.5t 17.25,25.25t 19.25,24t 24,15.25q 20-23.5 64-45t 88.75-33.5t 77.75-14q-21.5,59.5 -21.5,127.5t 21.5,127.5q-33-2 -77.75-14t-88.75-33.5t-64-45z\nM 320,112zM 272,64q 20,0 34,14t 14,34q-32,0 -82.25,19.5t-93.75,44.5q 13-24 40.5-51t 52.5-44t 35-17zM 201,368q 40,19.5 87,32.5q-9,21.5 -28.5,34.5t-43,13q-12.5,0 -18.25-3.75t-6-11.75t 1.5-16.75l 4.5-22.5t 2.75-24.75l0-0.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"chicken\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448q-6,0 -25-17q-16.5-5.5 -23,1t-1,23q 17,19 17,25q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5q0-6 -2-13.75t-9.5-23.75t-12.5-26.25t-19.5-39.75l-36-34q 0.5-1 3.5-6t 5.75-9t 6.25-7.5t 7.25-6.25t 8.5-5.5t 6.25-3.75l 34.5,36q 29.5,14.5 39.75,19.5t 26.25,12.5t 23.75,9.5t 13.75,2\nq 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25zM 304,304q-6,6 -10.75,15t-9,13t-12.25,4q-22,0 -41.75-5t-32.5-11.75t-32.5-16t-37.25-15.25q-73-24.5 -100.5-54.75t-27.5-89.25q0-59.5 42.25-101.75t 101.75-42.25q 59,0 89.25,27.5t 54.75,100.5q 7,20.5 20.25,46.25t 20.5,47.5t 7.25,50.25\nq0,7.5 -4.25,11.75t-13.25,9.5t-14.5,10.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"rorschach\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 503,68l-54.5,0 q-13,0.5 -21.75,5.5t-18.25,14.5q-1.5,4.5 -5.5,14t-5.5,14.5q-5.5,21.5 -10.5,28.5q-4.5,6 -17.25,10t-15.75,6.5q-6.5,5 -14.5,18t-10,16q-3,3.5 -4.75,5.25t-5.75,3t-9.5,0.75q-13.5-1.5 -26-36t-10-67.5q 0.5-4.5 5-8t 10.25-5.5t 11.25-6.5t 7.5-10.5q 2.5-9.5 1.5-12.5t-4.25-6.75t-3.75-6.25\nq-0.5-1.5 2.25-5t 2.75-13q0-6.5 4-14.75t 11.25-11.75t 17.75,7.5q 4,4.5 10.25,7.75t 16.25,6.75t 14,5.5q 5.5,2.5 9.5,10.5q 33.5,12.5 59.5,12.5q 8,0 19.5-14t 16-15.5q 15.5-5.5 24.5,15q 7.5,17.5 1,28q-2,3.5 -6.5,3.5zM 331,238q 1-3.5 0.5-6.75t 0.25-6t 3.25-3.25q 5.5-1 17.25,4.75t 15.25,13.75q 3,7.5 -9,23\nq-5,6.5 -1,9.25t 10-0.25q 7.5-3.5 17-13.25t 17-16t 14-4.75q 11,2.5 23,12.5t 18,25.5q 4.5,11 4.75,26.75t-5.75,24.25q-8,8.5 -29.25,10.25t-25.25,3.25q-11,5 -18,12.5t-11,13t-9,7q-8.5,2 -16.5,2.25t-12.75-0.25t-14.25-2.25t-14-2.25q-16-2 -22.75-16t-0.75-28q 2-5.5 7-10.5t 7.5-8t 1-5.5\nt-10.5-2t-11-1.5q-7-9.5 1-29q 4.5-10 16.75-15t 23.5-8.25t 13.75-9.25zM 214.5,303q-1.5,2.5 1,5.5t 7.5,8t 7,10.5q 6,14 -0.75,28t-22.75,16q-4.5,0.5 -14,2.25t-14.25,2.25t-12.75,0t-16.5-2q-5-1.5 -9-7t-11-13t-18-12.5q-4-1.5 -25.25-3.25t-28.75-10.25q-6.5-8.5 -6.25-24.25t 4.75-26.75q 6-15.5 18-25.5t 23-12.5\nq 6.5-1.5 14,4.75t 17,16t 17,13.25q 6,3 10,0.5t-1-9.5q-12-15.5 -9-23q 3.5-8 15.25-13.75t 17.25-4.75q 3,0.5 3.5,3.25t0,6t 0.5,6.75q 2.5,6 14,9t 23.5,8.25t 16.5,15.25q 8,19.5 1,29q-1.5,2 -10.75,1.5t-10.75,2zM 202.5,204.5q-7.5,1 -11.5-1.25t-8.5-7.75q-2-3 -10-16t-14.5-18q-3-2.5 -15.75-6.5t-17.25-10\nq-5-7 -10.5-28.5q-1.5-5 -5.5-14.5t-5.5-14q-9.5-9.5 -18.25-14.5t-21.75-5.5l-54.5,0 q-10.5,0 -9-17.5q 1.5-20 14-27.5q 6.5-4 14-1.5q 4.5,1.5 16,15.5t 19.5,14q 26,0 59.5-12.5q 4-8 9.5-10.5q 4-2 14-5.5t 16.25-6.75t 10.25-7.75q 10.5-11 17.75-7.5t 11.25,11.75t 4,14.75q0,9.5 2.75,13t 2.25,5q-0.5,3 -3.75,6.5t-4.25,6.5\nt 1.5,12.5q 2,6 7.5,10.5t 11.25,6.75t 10.25,5.5t 5,7.75q 2.5,33 -10,67.5t-26,36zM 68.25,170.5q 14.25,0 24.25,5t 10,12.25t-10,12.25t-24.25,5t-24.25-5t-10-12.25t 10-12.25t 24.25-5zM 136,410.5q 5.5-2 14,5t 15,6q 4-0.5 8.75-2.75t 9.25-1.75q 3.5,0 7.5,6.5t 8.75,12.25t 11.25,4.25q 17-3 26.5,4\nq 4,2.5 -0.75,15.25t-14.25,24.5t-17.25,11.5t-12.5-3.5t-6-5t-7.25,0.25q-5.5,2.5 -5.5,4.75t 2.75,4t 5.25,4t 1,4.25q-2,4.5 -10.75,6.5t-14.25,1.5q-9.5-0.5 -23.75-12t-18.25-14q-14.5-7.5 -13-52.5q0-6.5 5.5-11.25t 10.5-6.75t 14.5-4.5q 2-0.5 3-0.5zM 301.5,440q 5,1 9.25-2.25t 6.75-7.75t 5.5-8.75t 6-4.25\nq 4.5-0.5 9.25,1.75t 8.75,2.75q 6.5,1 15-6t 14-5q 1,0 3,0.5q 9.5,2.5 14.5,4.5t 10.5,6.75t 5.5,11.25q 1.5,45 -13,52.5q-4,2.5 -18.25,14t-23.75,12q-5.5,0.5 -14.25-1.75t-10.75-6.25q-1-2 0.5-3.75t 3.75-3t 4-2.75t 0.75-3.5t-5.5-4q-6-2 -7.25-0.25t-6,5t-12.5,3.5t-17.25-11.5t-14.25-24.5t-0.75-15.25\nq 9.5-7 26.5-4zM 409.5,187.75q0-7.25 10-12.25t 24.25-5t 24.25,5t 10,12.25t-10,12.25t-24.25,5t-24.25-5t-10-12.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"robocop\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288l-5,0 q-7.5,58 -24.5,96q-18,40 -48.75,69.75t-63.75,44t-64.5,14.25t-64.5-14t-64-43.75t-49-70.25q-17-37.5 -25-96l-7,0 q-13,0 -22.5-9.25t-9.5-22.75l0-96 q0-13.5 9.5-22.75t 22.5-9.25l 4.5,0 q 14.5-55 72.5-91.5t 132.5-36.5t 131.25,36.25t 71.25,91.75l 4,0 q 13,0 22.5,9.25t 9.5,22.75l0,96 \nq0,13.5 -9.5,22.75t-22.5,9.25zM 123.5,368q 7,16 13,27.75t 14.75,25t 19.25,20.25t 21.5,7q 13.5,0 27.75-8t 27.5-16t 24.75-8q 11,0 24.5,8t 27.75,16t 27.75,8q 19.5,0 38.25-24t 32.75-56q 14-31.5 20-80l-340,0 q 7,48.5 20.5,80zM 432,192l-320,0 q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75\nl 320,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"aperture\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 362.5,327q 3-5 4.5-7l 110.5-192q 34.5,59.5 34.5,128q0,14 -2,31.5zM 381.5,231l-2-8l-57-214q 82.5,22 135,89.5zM 327,149.5q-5.5-3.5 -7-4.5l-192-110.5q 59.5-34.5 128-34.5q 14,0 31.5,2zM 231,130.5l-8,2l-214,57q 22-82.5 89.5-135zM 149.5,185q-3.5,5.5 -4.5,7l-110.5,192q-34.5-59.5 -34.5-128q0-14 2-31.5\nzM 130.5,281q 1.5,6.5 2,8l 57,214q-82.5-22 -135-89.5zM 185,362.5q 5.5,3.5 7,4.5l 192,110.5q-59.5,34.5 -128,34.5q-14,0 -31.5-2zM 281,381.5q 7-1.5 8-2l 214-57q-22,82.5 -89.5,135z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"quake\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,350l0,98 l-32,64l-32-64l0-98 q-53.5-7 -97.5-33.5t-69.25-67.75t-25.25-88.75q0-28 10.25-58t 32.75-58.5t 53-43.5q-64,78.5 -64,120q0,62 45.75,108.75t 114.25,56.75l0-61.5 l 32-64l 32,64l0,61.5 q 68.5-10 114.25-56.75t 45.75-108.75q0-41.5 -64-120q 30.5,15 53,43.5t 32.75,58.5\nt 10.25,58q0,47.5 -25.25,88.75t-69.25,67.75t-97.5,33.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pokemon\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,480q 55.5,0 103.5-25.25t 79.25-69.25t 38.75-97.5l-131.5,0 q-10,28.5 -34.5,46.25\nt-55.5,17.75t-55.5-17.75t-34.5-46.25l-131.5,0 q 8,53.5 39,97.5t 79,69.25t 103.5,25.25zM 320,256q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25zM 458,160l-10,0 l0-18.5 q-4.5-7.5 -8.5-13.5l-23.5,0 l0-28.5 l-1.75-1.75l-1.75-1.75l-28.5,0 l0-23.5 q-8-5.5 -12.5-8.5l-19.5,0 \nl0-10.5 q-15.5-7 -32-12l0,22.5 l-32,0 l0-29.5 q-17.5-2.5 -32-2.5l0,32 l-32,0 l0-29.5 q-17,2.5 -32,7l0,22.5 l-32,0 l0-10.5 q-10.5,5 -19.5,10.5l 19.5,0 l0,32 l-32,0 l0-23.5 q-15,10.5 -28.5,23.5l 28.5,0 l0,32 l-32,0 l0-28.5 q-12.5,13 -23.5,28.5l 23.5,0 l0,32 l-32,0 l0-18.5 q-5.5,9 -10,18.5l 10,0 l0,32 l-22,0 q-5.5,17.5 -7.5,32l 29.5,0 l0-32 l 32,0 l0,32 l 32,0 l0-32 l 32,0 l0,32 l 6,0 q 6-17.5 19-32\nl-25,0 l0-32 l 32,0 l0,25 q 14.5-13 32-19.5l0-5.5 l 32,0 q 16,0 32,5.5l0-5.5 l 32,0 l0,25 q 3.5,3 7,7l 25,0 l0,32 l 32,0 l0-32 l 32,0 l0,32 l 32,0 l0-32 l 22,0 q-4.5-16.5 -12-32zM 416,192l0-32 l 32,0 l0,32 l-32,0 zM 384,160l0-32 l 32,0 l0,32 l-32,0 zM 352,128l0-32 l 32,0 l0,32 l-32,0 zM 320,96l0-32 l 32,0 l0,32 l-32,0 zM 256,96l0-32 l 32,0 l0,32 l-32,0 zM 192,96l0-32 l 32,0 l0,32 l-32,0 z\nM 192,128l-32,0 l0-32 l 32,0 l0,32 zM 160,160l-32,0 l0-32 l 32,0 l0,32 zM 128,192l-32,0 l0-32 l 32,0 l0,32 zM 224,128l0,32 l-32,0 l0-32 l 32,0 zM 288,128l0,32 l-32,0 l0-32 l 32,0 zM 352,128l0,32 l-32,0 l0-32 l 32,0 zM 384,160l0,32 l-32,0 l0-32 l 32,0 zM 288,128l0-32 l 32,0 l0,32 l-32,0 zM 224,128l0-32 l 32,0 l0,32 l-32,0 zM 224,256.25q0-13.25 9.5-22.75t 22.75-9.5t 22.5,9.25\nt 9.25,22.75t-9.25,22.75t-22.5,9.25t-22.75-9.25t-9.5-22.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"xbox\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,480q-5.5-2.5 -15.25-7.25t-39.5-21t-59-33.75t-68.75-45t-73.5-55.5q-34,28 -73,55.25t-70,45.75t-57.5,33t-40.75,21.5t-14.75,7q 5-4.5 14-12.75t 34.25-33.75t 48-50.5t 49.75-59.75t 45.5-64.75q-85-85.5 -156.5-190l-3-4.5q 4,4 11.75,11.25t 32,27t 49.25,36.5t 61,35.5t 70,29.25\nq 34-10.5 69.5-28.5t 62-36.75t 48.25-35.75t 32.75-27.5l 11.5-11q-7.5,11.5 -21.5,31t-55.75,71t-82.25,92.5q 18.5,30 45,64t 51.25,61t 46.75,49.25t 35.25,34.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"spaceinvaders\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,416l0-96 l-64,0 l0,96 l-32,0 l0-32 l-256,0 l0,32 l-32,0 l0-96 l-64,0 l0,96 l-32,0 l0-128 l 32,0 l0-64 l 64,0 l0-64 l 64,0 l0-32 l 32,0 l0,32 l 128,0 l0-32 l 32,0 l0,32 l 64,0 l0,64 l 64,0 l0,64 l 32,0 l0,32 l0,96 l-32,0 zM 192,224l-64,0 l0,64 l 64,0 l0-64 zM 384,224l-64,0 l0,64 l 64,0 l0-64 zM 288,448l0-32 l 96,0 l0,32 l-96,0 zM 224,448l-96,0 l0-32 l 96,0 l0,32 z\nM 128,96l 32,0 l0,32 l-32,0 l0-32 zM 64,64l 64,0 l0,32 l-64,0 l0-32 zM 384,96l0,32 l-32,0 l0-32 l 32,0 zM 448,64l0,32 l-64,0 l0-32 l 64,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"designcontest\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 456,162.5l-127.5,127l-128.5-127.5q-7.5-7.5 -18.25-7.5t-18.25,7.5t-7.5,18.25t 7.5,18.25l 183.5,181.5q 23,23 23,55t-23,54.5t-55.25,22.5t-54.75-22.5l-184-182q-34.5-34.5 -47-81t0-92.75t 47.25-81t 81.75-47t 93.75,0t 81.75,47.25l 18,18l 23.5-23q 10.5-10.5 28.5-14.75t 39.25,1t 36.25,20.25\nq 23.5,23.5 23.75,54.5t-23.75,53.5zM 336,160l-64-64q-31-31 -65-42t-64.5-2.25t-56.5,34.75q-25,25 -34,56.25t-1.5,61t 29.5,52.25l 192,192q 16,16 32,0t0-32l-185.5-186q-23-23 -23-55.5t 23-56q 15-14.5 35.75-20t 39.5-1.75t 30.25,15.25l 80,80q 7.5,7.5 16,7.5t 16-7.5q 16-16 0-32z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"residentevil\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 352,512l-192,0 l-160-160l0-192 l 160-160l 192,0 l 160,160l0,192 zM 224,256l-192-88.5l0,177 zM 167.5,480l 177,0 l-88.5-192zM 256,224l 88.5-192l-177,0 zM 288,256l 192,88.5l0-177 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tron\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,160l-96,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,0 l0,256 q0,13 -9.25,22.5t-22.75,9.5l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-256 l0,0 q0-52 25.75-96.25t 70-70t 96.25-25.75l 96,0 q 13,0 22.5,9.5t 9.5,22.5l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 480,64l-96,0 q-42.5,0 -79.5,22t-58.75,58.75\nt-21.75,79.25l0,0 l0,256 l 64,0 l0-256 q0-36.5 30-66.25t 66-29.75l 96,0 l0-64 zM 160,160l-128,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 128,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,64 q0,13.5 -9.25,22.75t-22.75,9.25zM 160,64l-128,0 l0,64 l 128,0 l0-64 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"apple\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,272q0,36 15,64.75t 38.5,40.75q-22,57 -54,95.75t-63.5,38.75q-13.5,0 -26.75-8l-26.5-16t-26.75-8t-26.75,8l-26.5,16t-26.75,8q-25,0 -49.5-26.5t-41.25-65.5t-27-83.25t-10.25-80.75q0-53 37.5-90.5t 90.5-37.5q 13.5,0 28.5,8t 28.25,16t 23.25,8q 11,0 24.25-8t 27.75-16t 28-8\nq 29,0 57.25,12.25t 49.75,33.25q-19.5,14.5 -31.25,40.75t-11.75,57.75zM 272,112q-1-18.5 7.75-39.25t 26.5-38.25t 38.5-26.5t 39.25-8q 1,18.5 -7.75,39.25t-26.5,38.5t-38.5,26.75t-39.25,7.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tetristhree\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,512l-288,0 q-13,0 -22.5-9.5t-9.5-22.5l0-448 q0-13 9.25-22.5t 22.75-9.5l 128,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,288 l 128,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,128 q0,13.5 -9.25,22.75t-22.75,9.25zM 224,48q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,96 q0,6.5 4.75,11.25t 11.25,4.75\nl 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 zM 224,205q0-5.5 -3.75-9.25t-9.25-3.75l-102,0 q-5.5,0 -9.25,3.75t-3.75,9.25l0,102 q0,5.5 3.75,9.25t 9.25,3.75l 102,0 q 5.5,0 9.25-3.75t 3.75-9.25l0-102 zM 224,365q0-5.5 -3.75-9.25t-9.25-3.75l-102,0 q-5.5,0 -9.25,3.75t-3.75,9.25l0,102 q0,5.5 3.75,9.25\nt 9.25,3.75l 102,0 q 5.5,0 9.25-3.75t 3.75-9.25l0-102 zM 384,365q0-5.5 -3.75-9.25t-9.25-3.75l-102,0 q-5.5,0 -9.25,3.75t-3.75,9.25l0,102 q0,5.5 3.75,9.25t 9.25,3.75l 102,0 q 5.5,0 9.25-3.75t 3.75-9.25l0-102 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tetristwo\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,352l-128,0 l0,128 q0,13 -9.5,22.5t-22.5,9.5l-128,0 q-13,0 -22.5-9.5t-9.5-22.5l0-288 q0-13 9.5-22.5t 22.5-9.5l 128,0 l0-128 q0-13 9.25-22.5t 22.75-9.5l 128,0 q 13,0 22.5,9.5t 9.5,22.5l0,288 q0,13.5 -9.5,22.75t-22.5,9.25zM 224,205q0-5.5 -3.75-9.25t-9.25-3.75l-102,0 q-5.5,0 -9.25,3.75t-3.75,9.25l0,102 \nq0,5.5 3.75,9.25t 9.25,3.75l 102,0 q 5.5,0 9.25-3.75t 3.75-9.25l0-102 zM 224,365q0-5.5 -3.75-9.25t-9.25-3.75l-102,0 q-5.5,0 -9.25,3.75t-3.75,9.25l0,102 q0,5.5 3.75,9.25t 9.25,3.75l 102,0 q 5.5,0 9.25-3.75t 3.75-9.25l0-102 zM 384,48q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nl0,96 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 zM 384,205q0-5.5 -3.75-9.25t-9.25-3.75l-102,0 q-5.5,0 -9.25,3.75t-3.75,9.25l0,102 q0,5.5 3.75,9.25t 9.25,3.75l 102,0 q 5.5,0 9.25-3.75t 3.75-9.25l0-102 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tetrisone\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,352l-128,0 l0,128 q0,13 -9.25,22.5t-22.75,9.5l-128,0 q-13,0 -22.5-9.5t-9.5-22.5l0-448 q0-13 9.5-22.5t 22.5-9.5l 128,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,128 l 128,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,128 q0,13.5 -9.25,22.75t-22.75,9.25zM 224,48q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25\nl0,96 q0,6.5 4.75,11.25t 11.25,4.75l 96,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-96 zM 224,205q0-5.5 -3.75-9.25t-9.25-3.75l-102,0 q-5.5,0 -9.25,3.75t-3.75,9.25l0,102 q0,5.5 3.75,9.25t 9.25,3.75l 102,0 q 5.5,0 9.25-3.75t 3.75-9.25l0-102 zM 224,365q0-5.5 -3.75-9.25t-9.25-3.75l-102,0 q-5.5,0 -9.25,3.75\nt-3.75,9.25l0,102 q0,5.5 3.75,9.25t 9.25,3.75l 102,0 q 5.5,0 9.25-3.75t 3.75-9.25l0-102 zM 384,205q0-5.5 -3.75-9.25t-9.25-3.75l-102,0 q-5.5,0 -9.25,3.75t-3.75,9.25l0,102 q0,5.5 3.75,9.25t 9.25,3.75l 102,0 q 5.5,0 9.25-3.75t 3.75-9.25l0-102 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"darthvader\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 436,230q-14.5-24 -41-33q-34-20.5 -75-30l0-145 q 58.5,12.5 93.25,47.5t 34.75,90q0,46.5 -3,84q-2.5-6 -9-13.5zM 224,161.5l0-114 l0-30 l0-2 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,1.5 l0,30.5 l0,114 q-17-2 -31.75-2t-32.25,2zM 76,229.5q-6.5,8 -9,14q-3-37.5 -3-84q0-54 35-89\nt 93-48l0,144.5 q-41,9.5 -75,30q-26.5,9 -41,32.5zM 144,320q-20,0 -34-14.25t-14-34t 14-33.75t 34-14t 34,14t 14,33.75t-14,34t-34,14.25zM 320,271.75q0-19.75 14-33.75t 34-14t 34,14t 14,33.75t-14,34t-34,14.25t-34-14.25t-14-34zM 144,352q 33,0 56.5-23.5t 23.5-56.5q0-24 -12.75-43.25\nt-33.25-29.25q 39-8 78-8q 38.5,0 78,8q-21,10 -33.5,29.5t-12.5,43q0,33 23.5,56.5t 56.5,23.5q 32.5,0 55.75-22.75t 24.25-54.75l 64,205.5q-8.5,0 -27.25-4.5t-51-13.25t-55.25-14.25q-28,31.5 -64,47.75t-58.5,16.25t-58.5-16.25t-64-47.75q-23,5.5 -55,14.25t-51,13.25t-27.5,4.5l 64-205.5\nq 1,32 24.25,54.75t 55.75,22.75zM 176,448l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25q-1.5-3.5 -4-7l-60-105l-64,0 l-60,105l-4,7q0,6.5 4.75,11.25t 11.25,4.75zM 272,352l 32,64l-96,0 l 32-64l 32,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"ironman\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 418.5,416q-12,26 -36.5,51t-54.5,45l-175,0 q-28-18.5 -51.75-44t-36.75-52q-32-64 -32-256q0-17.5 5.5-48.25t 10.5-47.75l 80-48q 49.5-16 113.5-16q 60.5,0 110.5,16l 80,48q 5,17 10.5,47.75t 5.5,48.25q0,192 -29.5,256zM 167.5,480l 147,0 q 44-30.5 69.5-80l-32,16l-32,0 l-24-32l-112,0 l-24,32l-32,0 \nl-32-16q 21.5,45 71.5,80zM 416,96l-81-50q-16.5-5.5 -32.5-8.5l-14.5,58.5q-3.5,13.5 -11.5,22.75t-20.5,9.25l-32,0 q-12,0 -20.25-9.75t-11.75-22.25l-14.5-58q-15,3 -30,8l-83.5,50l0,112 q0,27.5 8,68.75t 8,59.25q0,12 3,25.5l 62.5,31l 30.5-40.5l 128,0 l 30.5,40.5l 62.5-31q 3-14 3-25.5\nq0-17 8-59.25t 8-68.75l0-112 zM 288,208l 96-16l0,32 l-96,32l0-48 zM 96,192l 96,16l0,48 l-96-32l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"batman\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,448q-24.5,24.5 -77,44.25t-97,19.75q-45.5,0 -99.5-19.75t-78.5-44.25q-32-32 -32-256l0-176 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l 18.5,74.5q 30-27 71.75-42.75t 87.75-15.75q 45.5,0 86,15.5t 69.5,42l 18.5-73.5q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,176 \nq0,224 -32,256zM 160,224q-13,0 -32.75-10t-26.75-23q-4.5,8.5 -4.5,17q0,21.5 11.5,34.75t 36.5,13.25q 24,0 34.25-7t 13.75-25l-32,0 zM 379.5,191q-7,13.5 -26.25,23.25t-33.25,9.75l-32,0 q 3.5,18 13.75,25t 34.25,7q 25,0 36.5-13.25t 11.5-34.75q0-8.5 -4.5-17zM 240,352l-176-64l0,0 l0,0 l0,0 q0,109 27,136.5\nq 20.5,21 66.5,38.25t 84,17.25q 37.5,0 82-17t 65.5-38.5q 27-27.5 27-136.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"spiderman\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 431,355q-40.5,33.5 -106,50.5l-66-118.5l 99-178.5q 53,11.5 89.5,29q 2,12.5 2,22.5l0,17.75 l0,25 t-0.5,26t-1.75,31.75t-3.25,30.5t-5.25,33.5t-7.75,30.5zM 360.5,230.5q-23.5,10.5 -47.5,27.25t-24,24.25q0,9.5 2.75,16.25t 9,10.75t 11.75,6.5t 15.5,3.5t 15.75,1.25t 16.75,0.25q 57,0 57-128.5\nq0,0.5 -6.25,6.25t-20.5,15.5t-30.25,16.75zM 391.5,48.5q 35,28.5 49.5,65.5q-28-20 -68-32.5zM 257,64l0-64 q 59.5,3 107.5,30.5l-23.5,42.5q-39-8 -84-9zM 174,440.5q 26,6.5 50.5,8l0,63.5 q-37.5-5 -74.5-28.5zM 224.5,349l0,67 q-18.5-1 -35-3.5zM 224.5,96l0,129 l-67.5-122.5q 34.5-5.5 67.5-6.5zM 117.5,31.5\nq 48-27.5 107-31.5l0,64 q-45,1.5 -84,9.5zM 90.5,49.5l 18,32q-40,12.5 -67.5,32q 14.5-36 49.5-64zM 222.5,287l-66,119q-62.5-16 -102.5-48.5q-22-69.5 -22-197.5q0-10 2.5-22.5q 36.5-17.5 89-28.5zM 64,192q0,128.5 57,128.5q 11,0 16.75-0.25t 15.75-1.25t 15.5-3.25t 11.75-6.5t 9-11t 2.75-16.25q0-7.5 -24-24.25\nt-47.5-27.25q-16-7 -30.25-16.75t-20.25-15.75zM 124,464.5q-37-31.5 -57.5-75.5q 32,26 76,42zM 257,225l0-129 q 33.5,1 68,6.5zM 257,416.5l0-67.5 l 35,63.5q-18,3 -35,4zM 332,484.5q-38,23.5 -75,27.5l0-63.5 q 24.5-1.5 50.5-8zM 358.5,465.5l-19.5-35q 47.5-17 81-45.5q-21.5,47 -61.5,80.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"spider\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,320q0,21.5 -0.25,32.75t-2,30.75t-5.75,33t-10.75,30.75t-18.25,33.25t-27,31.5q 14.5-44 22.25-79.5t 8.75-49.25t 1-31.25q0-11.5 -7.25-21.5t-18.5-16.75t-21.5-11.25t-20.25-7.5q 3.5,11 3.5,25q0,15 -0.25,24.5t-2,28t-6,31.75t-10.75,28.75t-18,27.5t-27,19.5q 15-29.5 22.5-57.5t 8.5-42t 1-35.5\nq0-23.5 -9-35.75t-26.5-17.25q-5.5,34.5 -17.75,70t-28.5,60.75t-30.25,25.25t-30.25-25.25t-28.5-60.75t-17.75-70q-17.5,5 -26.5,17.25t-9,35.75q0,21.5 1,35.5t 8.5,42t 22.5,57.5q-15.5-7.5 -27-19.5t-18-27.5t-10.75-28.75t-6-31.75t-2-28t-0.25-24.5q0-14 3.5-25q-10,3 -20.25,7.5t-21.5,11.25t-18.5,16.75\nt-7.25,21.5q0,17.5 1,31.25t 8.75,49.25t 22.25,79.5q-18-18 -31-41.25t-19.25-42.25t-9.5-43.5t-3.75-36t-0.5-29q0-13.5 5.75-23.75t 17.25-17t 25.25-11.25t 33-7t 37.25-3.5t 41.5-1.5l0,0 q-25.5-0.5 -43.5-2t-35-5.5t-27.25-10.75t-16.25-18.25t-6-27.5q0-17.5 0.5-29t 3.75-36t 9.5-43.25t 19.25-42.25t 31-41.5q-32,96 -32,179.5\nq0,27.5 35.5,37.5q-3.5-11 -3.5-25q0-15 0.25-24.5t 2-28t 6-31.75t 10.75-28.75t 18-27.5t 27-19.5q-15,29.5 -22.5,57.5t-8.5,42t-1,35.5q0,27 11.75,39.25t 34.75,15.75q 12-13.5 30.25-21.75t 35.25-8.25t 35.25,8.25t 30.25,21.75q 23-3.5 34.75-15.75t 11.75-39.25q0-21.5 -1-35.5t-8.5-42t-22.5-57.5q 15.5,7.5 27,19.5t 18,27.5\nt 10.75,28.75t 6,31.75t 2,28t 0.25,24.5q0,14 -3.5,25q 35.5-10 35.5-37.5q0-83.5 -32-179.5q 15.5,15.5 27,31.5t 18.25,33.25t 10.75,30.75t 5.75,33t 2,30.75t 0.25,32.75q0,16 -6,27.5t-16.25,18.25t-27.25,10.75t-35,5.5t-43.5,2l0,0 q 23.5,0.5 41.5,1.5t 37.25,3.5t 33,7t 25.25,11.25t 17.25,17t 5.75,23.75z\nM 192,144q0-20 14-34t 34-14t 34,14t 14,34t-14,34t-34,14t-34-14t-14-34z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"xmen\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 256,416q 39,0 74-18l-74-74l-74,74q 35,18 74,18zM 114,330l 74-74l-74-74q-18,35 -18,74t 18,74\nzM 256,96q-39,0 -74,18l 74,74l 74-74q-35-18 -74-18zM 398,182l-74,74l 74,74q 18-35 18-74t-18-74z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"spawn\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 235,334q-19-3 -31-11.25t-12-18.75q0-10 11.75-18.25t 30.75-11.75\nq-10-31.5 -35.5-67.75t-55-64.75q 34-15.5 55.25-44t 23.25-62.5q-53.5,8 -97,39t-68.5,79t-25,103q0,57.5 27,107t 73.75,80.25t 103.25,35.75q-9.5-1 -19-2.5q-12-35.5 -43.5-59.5q 20-15 37-36.5t 24.5-46.5zM 289.5,35q 2,34 23.25,62.5t 55.25,44q-29.5,28.5 -55,64.75t-35.5,67.75\nq 19,3.5 30.75,11.75t 11.75,18.25q0,10.5 -12,18.75t-31,11.25q 7.5,25 24.5,46.5t 37,36.5q-31.5,24 -43.5,59.5q-9.5,1.5 -19,2.5q 56.5-5 103.25-35.75t 73.75-80.25t 27-107q0-55 -25-103t-68.5-79t-97-39zM 352,352q 8-3 15-6.75t 11.25-6.5t 10.25-8t 8.5-7.5t 9.5-9.5t 9.5-9.75q 7.5-7.5 11.75-23.5t 4.25-24.5\nq 5.5,0 10.75,9.75t 5.25,22.25q0,46 -30.5,57.5q-16.5,6.5 -65.5,6.5zM 64,288q0-12.5 5.25-22.25t 10.75-9.75q0,8.5 4.25,24.5t 11.75,23.5q 2.5,2.5 9.5,9.75t 9.25,9.5t 8.5,7.5t 10.5,8t 11.25,6.5t 15,6.75l-0.5,0 l-16.5,0 t-15-0.5t-14.25-1.25t-12.25-2.25t-11.25-4l-9-6t-7.75-8.25t-5-10.75t-3.5-13.75\nt-1-17.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"punisher\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 402.5,288.5q 13.5,12.5 13.5,31.5q0,47.5 -64,67l0,109 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-64 l0-32 l0-6 l-0.5,0.25l-0.5,0.25q-4-10.5 -15-10.5q-6,0 -10.5,4t-5,10l-0.5,0 l0,2 l0,32 l0,64 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-64 l0-32 l0,0 q0-7 -4.75-11.5t-11.25-4.5\nt-11.25,4.5t-4.75,11.5l0,0 l0,32 l0,64 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-64 l0-32 l0-2 l-0.5,0 q-0.5-6 -5-10t-10.5-4q-11,0 -15,10.5l-0.5,0 t-0.5-0.5l0,6 l0,32 l0,64 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-109 q-64-19.5 -64-67q0-19 13.5-31.5q-45.5-47.5 -45.5-112.5q0-36 15.25-68.5\nt 42.25-56t 66-37.5t 84.5-14t 84.5,14t 66,37.5t 42.25,56t 15.25,68.5q0,65 -45.5,112.5zM 128,176q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25q0,35.5 18.5,57.75t 45.5,22.25q 32,0 32-16q-64-32 -64-64zM 208,288q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75q 12,0 14-2\nt 2-14t-2-14t-14-2zM 272,288q-12,0 -14,2t-2,14t 2,14t 14,2q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 368,160q-6.5,0 -11.25,4.75t-4.75,11.25q0,32 -64,64q0,16 32,16q 27,0 45.5-22.25t 18.5-57.75q0-6.5 -4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"avengers\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 288,445l0-61 l-128,0 l-14.5,29q 50,35 110.5,35q 15,0 32-3zM 192,320l 96,0 l0-192 zM 64,256q0,54.5 29,101.5l 146.5-292.5\nq-74,6 -124.75,61t-50.75,130zM 352,90l0,332 q 44-25.5 70-69.5t 26-96.5t-26-96.5t-70-69.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"captainamerica\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 256,32q-45.5,0 -87,17.75t-71.5,47.75t-47.75,71.5t-17.75,87t 17.75,87t 47.75,71.5t 71.5,47.75t 87,17.75\nt 87-17.75t 71.5-47.75t 47.75-71.5t 17.75-87t-17.75-87t-47.75-71.5t-71.5-47.75t-87-17.75zM 350,385.5l-32.5-109.5l 90.5-69.5q 8,24.5 8,49.5q0,39 -17.75,73t-48.25,56.5zM 294,203.5l-38-107.5q 52.5,0 94.5,31t 57.5,79.5zM 104,206.5q 15.5-48.5 57.5-79.5t 94.5-31l-38,107.5zM 194.5,276l-32.5,109.5\nq-30.5-22.5 -48.25-56.5t-17.75-73q0-25 8-49.5zM 256,320.5l 94,65q-42,30.5 -94,30.5t-94-30.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"greenlantern\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 327,64q 53.5,24.5 87.25,78t 33.75,114t-33.75,114t-87.25,78l 121,0 l 32,64l-448,0 l 32-64l 121,0 q-53.5-24.5 -87.25-78t-33.75-114t 33.75-114t 87.25-78l-121,0 l-32-64l 448,0 l-32,64l-121,0 zM 128,256q0,53 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5t-37.5-90.5t-90.5-37.5t-90.5,37.5t-37.5,90.5z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"superman\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.5,182.5l-224,256q-9,9.5 -22.25,9.5t-22.75-9.5l-224-256q-9.5-9 -9.5-22.25t 9.5-22.75l 64-64q 9.5-9.5 22.5-9.5l 320,0 q 13,0 22.5,9.5l 64,64q 9.5,9 9.5,22.5t-9.5,22.5zM 256,416l 57.5-65.5q-10,1.5 -19.5,1.5l-46,0 q-29.5,0 -52.5-5zM 144,288l 48,0 q0,16 14.25,24t 33.75,8l 32,0 q 28.5,0 38.25-6.5\nt 9.75-25.5q0-14.5 -15.5-23.25t-48.5-8.75q-38.5,0 -60-0.5t-48.25-3.75t-43.75-9.25zM 96,96l-64,64l 32.5,37l-0.25-2t-0.25-3q0-23.5 22.5-46.25t 54.5-36.25t 61-13.5l-106,0 zM 272,96q 69,0 91,35l 21-35l-112,0 zM 434.5,114.5l-34.5,45.5l-64,0 q0-11 -11.5-18.5t-25.5-10.5t-27-3l-48,0 q-31,0 -47.5,7.25t-16.5,24.75\nq0,13 30,22.5t 66,9.5q 36.5,0 62.5,5.25t 39.75,14.75t 19.75,20.25t 6,23.75q0,5 -1,15l 97-111z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"weight\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 471,512l-430,0 q-15.5,0 -25-6.5t-12.75-16.25t-3-22.5t 2.75-23.5t 6-21.25l 45-245q 7-23.5 27.5-36.25t 44.5-12.75l 40,0 q-6-16.5 -6-32q0-40 28-68t 68-28t 68,28t 28,68q0,15.5 -6,32l 40,0 q 24,0 44.5,12.75t 27.5,36.25l 45,245q 3.5,10.5 6,21.25t 2.75,23.5t-3,22.5t-12.75,16.25t-25,6.5zM 256,64\nq-13.5,0 -22.75,9.25t-9.25,22.5t 9.25,22.75t 22.75,9.5t 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.75-9.25zM 304,384l-16,0 q-12,0 -22-10.5t-10-21.5l0-32 l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75l-16,0 l0-48 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,48 l-16,0 q-6.5,0 -11.25,4.75\nt-4.75,11.25t 4.75,11.25t 11.25,4.75l 16,0 l0,32 q0,24 20,44t 44,20l 16,0 q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"bread\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384.5,314.5q 9,8.5 33.5,4t 45-19.5q 25,39.5 37.25,74.25t 11.75,59.75t-6.75,42.25t-17.75,28.25q-23,23.5 -72.75-15.25t-164.75-154.25l-36-36q-120.5-120.5 -144.5-146q-68.5-74.5 -69.5-106q-0.5-12.5 8.5-21.5q 10.5-10.5 26.5-16.75t 38.75-7.5t 54.5,8.5t 67.75,30.25q-4,5.5 -5.5,7q-13,15 -30.25,27\nt-31.75,17.5q 5.5,4.5 16.75,5.25t 24.25-2.5t 26.75-11t 23.75-18.75q0-0.5 4.5-6.5q 46.5,31 98.5,79.5q-0.5,0 -2,2.25t-2.5,3.25q-13.5,15 -30.5,27t-31.5,17.5q 5.5,4.5 16.75,5.25t 24-2.5t 26.5-11t 23.75-18.25l 1.25,1.25l 1.25,1.25q 56.5,56.5 94.5,109.5q-29.5,31.5 -60,42.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"microwave\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,448l-32,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16 l-320,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16 l-32,0 q-13,0 -22.5-9.5t-9.5-22.5l0-320 q0-13 9.5-22.5t 22.5-9.5l 448,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,320 q0,13.5 -9.25,22.75t-22.75,9.25zM 432,320\nq 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 400,352q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 400,288q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25\nt 4.75,11.25t 11.25,4.75zM 352,160q0-13.5 -9.25-22.75t-22.75-9.25l-256,0 q-13,0 -22.5,9.25t-9.5,22.75l0,192 q0,13 9.5,22.5t 22.5,9.5l 256,0 q 13.5,0 22.75-9.5t 9.25-22.5l0-192 zM 480,144q0-6.5 -4.75-11.25t-11.25-4.75l-64,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 64,0 \nq 6.5,0 11.25-4.75t 4.75-11.25l0-32 zM 464,256q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 464,320q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"candy\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,384q-48,24 -76,52t-52,76q0-8 -0.75-16.25t-2.75-18t-3.5-16.75t-5-18.25t-4.75-16t-5.25-17t-5-14.75q-85,59.5 -192.25-47.75t-47.75-192.25q-2-0.5 -14.5-4.75t-17.25-5.5t-16-4.75t-18.25-5t-16.75-3.5t-18-2.75t-16.25-0.75q 48-24 76-52t 52-76q0,8 0.75,16.25t 2.75,18\nt 3.5,16.75t 5,18.25t 4.75,16t 5.5,17.25t 4.75,14.5q 85-59.5 192.25,47.75t 47.75,192.25q 2.5,0.5 14.75,4.75t 17,5.5t 16,4.75t 18.25,5t 16.75,3.5t 18,2.75t 16.25,0.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"teapot\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,192q0,64 -32,64q-1.5,0 -2.5,2.5q 2.5,16 2.5,29.5q0,54 -27.25,107.25t-71.25,84.75l-187,0 q-49.5-35.5 -77.5-98.5q-9,2.5 -21,2.5q-17,0 -32-23.25t-23.5-56.25t-8.5-64.5q0-80 64-80q 25.5,0 40,11q 27-35 66.75-55t 85.25-20q 48.5,0 90.5,22.75t 68.5,61.75q 1-3 1-4.5q0-33 23.5-56.5\nt 56.5-23.5q 8,0 16,1.5l0,62.5 q-13.5,0 -22.75,9.25t-9.25,22.75zM 64,192q-32,0 -32,57q0,28.5 13.75,60.25t 27.75,40.25q-9.5-32.5 -9.5-61.5q0-42.5 18.5-81.5q-8.5-14.5 -18.5-14.5zM 224,63.75q0-13.25 9.25-22.5t 22.5-9.25t 22.75,9.25t 9.5,22.5t-9.5,22.75t-22.75,9.5t-22.5-9.5t-9.25-22.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fishbone\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,384q-17-17 -23.75-40.75t-7.75-55.25l-32.5,0 l0,80 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-80 l-32,0 l0,80 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-80 l-32,0 l0,48 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-48 l-32,0 l0,16 q0,6.5 -4.75,11.25\nt-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16 l-39,0 q-10,26.5 -29.25,49.25t-43.75,30.75q-0.5-2.5 -8.25-7.75t-7.75-8.25q0-39.5 15.25-62.5t 48.75-30l0-7 q-33.5-7 -48.75-30t-15.25-62.5q0-3 7.75-8.25t 8.25-7.75q 24.5,8 43.75,30.75t 29.25,49.25l 39,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,16 \nl 32,0 l0-48 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,48 l 32,0 l0-80 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,80 l 32,0 l0-80 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,80 l 32.5,0 q 1-31.5 7.75-55.25t 23.75-40.75q 44,7.5 70,43.5t 26,84.5t-26,84.5t-70,43.5zM 432,224\nq-6.5,0 -11.25,4.75t-4.75,11.25l0,0 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"foursquare\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 499,163l-87,79l 29,29q 7,7 7,17t-7,17l-168.5,168q-7,7 -16.75,7t-16.75-7l-157.5-157.5q-36-10.5 -58.75-40t-22.75-67.5q0-46 32.75-79t 79.25-33q 27,0 50.25,12t 38.75,33l 38-38q 7-7 16.75-7t 16.75,7l 68.5,68l 158-169q 6.5-7 11,7.5q 2,5.5 2,10.5l0,113 \nq0,6.5 -3.75,15.25t-9.25,14.75zM 270,134q-6-6 -14.25-6t-13.75,6l-28.5,28q 10.5,22.5 10.5,46q0,18.5 -7,38l 27,28.5l 80.5-86zM 394.5,258l-137.5,124.5q-3.5,3 -10,0.75t-12.5-6.75l-6-4l-65.5-65q-20.5,10.5 -44,12l 123,122.5q 5.5,6 13.75,6t 14.25-6l 140-140q 6-6 6-14t-6-14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"stiletto\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 473,234q-25,90 -25,150l0,96 l-32,0 l0-128 q0-63.5 -21-87.5q-11.5,9 -24.5,29.75t-23.75,44t-24.75,49t-27.5,46t-32,33.5t-38.5,13.25q-51,0 -100.75-5t-86.5-16.5t-36.75-26.5q0-13 32.5-39.5t 71-48.5t 56.5-24q 9,9 15.25,14.25t 20.25,11.5t 28.5,6.25q 11.5,0 43.5-41.25t 64.75-94.5t 58.25-107.5\nt 25.5-76.75q 40,0 68,32.75t 28,79.25q0,27 -10.5,50.5t-28.5,39.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"nail\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 510.5,510.5q-8,8 -56.75-26.5t-65.75-51.5l-263.5-263.5q-114.5,27.5 -119.5,22q-5-4.5 -5-11.25t 5-11.75l 163-163q 5-5 11.75-5t 11.25,5q 5.5,5 -22,119.5l 263.5,263.5q 17,17 51.5,65.75t 26.5,56.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"nut\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512l-224-128l0-256 l 224-128l 224,128l0,256 zM 256.25,160q-39.75,0 -68,28t-28.25,68t 28,68t 68,28t 68-28t 28-68t-28-68t-67.75-28z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"screw\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,128l-32,0 l-32,32l-96-32l-96,0 l 192,64l 32,32l-32,32l-192-64l-32-32l 32-32l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 320,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13 -9.25,22.5t-22.75,9.5zM 352,288l 32,32l-32,32l-192-64l-32-32l 32-32zM 352,384\nl 32,32l-32,32l-192-64l-32-32l 32-32zM 352,480l-32,32l-64,0 l-96-32l-32-32l 32-32z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"windright\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512q-13.5,0 -22.75-9.5t-9.25-22.5l0-307.5 l-128,76.5l0,7 l-9.5-1.5q-7.5,3 -15-2l-274-39.5q-9-1 -15.25-7.75t-6.25-15.75l0-123 q0-9 6.25-16t 15.25-7.5l 274-39.5q 7.5-5 15-2l 9.5-1.5l0,7 l 128,76.5l0-51.5 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,448 q0,13 -9.25,22.5t-22.75,9.5zM 64,78\nl-15.5,2q-7,1 -11.75,6t-4.75,12l0,60 q0,7 4.75,12t 11.75,6l 15.5,2l0-100 zM 192,61l-64,8.5l0,117 l 64,8.5l0-134 zM 288,48l-32,4.5l0,151 l 32,4.5l0-160 zM 320,45l0,166 l 128-76l0-14 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"windleft\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 490.5,213l-274,39.5q-7.5,5 -15,2l-9.5,1.5l0-7 l-128-76.5l0,307.5 q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l0-448 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,51.5 l 128-76.5l0-7 l 9.5,1.5q 7.5-3 15,2l 274,39.5q 9,1 15.25,7.75t 6.25,15.75l0,123 q0,9 -6.25,15.75t-15.25,7.75z\nM 64,121l0,14 l 128,76l0-166 zM 256,52.5l-32-4.5l0,160 l 32-4.5l0-151 zM 384,69.5l-64-8.5l0,134 l 64-8.5l0-117 zM 480,98q0-7 -4.75-12t-11.75-6l-15.5-2l0,100 l 15.5-2q 7-1 11.75-6t 4.75-12l0-60 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"tank\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 484,219.5l 25,64q 6,14.5 0.5,25.5t-19.5,11l-35,0 q 13,14.5 19,32l 22,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75l-16,0 q0,12.5 -4.5,27l 12.5,7q 6,3.5 7.5,10t-1.75,12t-9.5,7.25t-12.25-1.25l-10-6q-4.5,6 -11.5,13l 11.5,19q 3.5,6 1.75,12.25t-7.5,9.5t-12.25,1.75t-10-7.5l-10-17\nq-19.5,9 -40,9l0,16 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16 l-32,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16 l-32,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16 l-32,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16 l-32,0 \nl0,16 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-22 q-10.5-4 -18.5-9l-21.5,13q-6,3 -12.25,1.25t-9.5-7.25t-1.5-12t 7.25-10l 12.5-7q-9.5-12.5 -14.5-27l-22,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 16,0 q0-12.5 4.5-27l-12.5-7q-5.5-3.5 -7.25-9.75t 1.5-12t 9.5-7.5t 12.25,1.25l 10.5,6\nq 2.5-4 6.5-8l-31.5,0 q-13.5,0 -20.75-11t-3.75-25.5l 15.5-64q 2.5-11.5 12.5-19.5t 21.5-8l 71,0 q-13.5,0 -20.75-10.75t-3.75-25.75l 15.5-63.5q 2.5-12 12.5-20t 21.5-8l 139.5,0 q 9.5,0 19,6t 15.5,15l 142.5-80.5q 11.5-6.5 24.5-3.25t 19.75,14.75t 3.25,24.25t-15,19.75l-150.5,85l 4,10.5q 6,14.5 0.5,25.5t-19.5,11l 116,0 q 11.5,0 22.5,8t 15.5,19.5z\nM 128.25,352q-13.25,0 -22.75,9.5t-9.5,22.5t 9.5,22.5t 22.75,9.5t 22.5-9.5t 9.25-22.5t-9.25-22.5t-22.5-9.5zM 256.25,352q-13.25,0 -22.75,9.5t-9.5,22.5t 9.5,22.5t 22.75,9.5t 22.5-9.5t 9.25-22.5t-9.25-22.5t-22.5-9.5zM 384.25,352q-13.25,0 -22.75,9.5t-9.5,22.5t 9.5,22.5t 22.75,9.5t 22.5-9.5t 9.25-22.5t-9.25-22.5t-22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"travel\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45.25t 45.25-18.75l 64,0 l0-48 q0-34 25.5-57t 54.5-23l 96,0 q 29,0 54.5,23t 25.5,57l0,48 l 64,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,256 q0,26.5 -18.75,45.25t-45.25,18.75zM 144,224q-20,0 -34,14t-14,34t 14,34t 34,14t 34-14t 14-34\nt-14-34t-34-14zM 320,96q0-13.5 -9.25-22.75t-22.75-9.25l-64,0 q-13,0 -22.5,9.25t-9.5,22.75l0,32 l 128,0 l0-32 zM 416,320l-128,32l 32,96l 128-32z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"blackberry\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 509.75,240.25q-6.25,19.75 -24.5,34t-38.25,14.25l-79.5,0 l 32-96l 77,0 q 20,0 29.75,14t 3.5,33.75zM 303.5,192.5l-80,0 l 32-96l 77.5,0 q 19.5,0 29.25,14t 3.75,34t-24.25,34t-38.25,14zM 301,224.5q 19.5,0 29.25,14t 3.75,33.75t-24.25,33.75t-38.25,14l-80,0 l 32-95.5l 77.5,0 zM 112,192.5l-80,0 l 32-96l 77,0 \nq 20,0 29.75,14t 3.75,34t-24.5,34t-38,14zM 109,224.5q 20,0 29.75,14t 3.75,33.75t-24.5,33.75t-38,14l-80,0 l 32-95.5l 77,0 zM 269,352q 19.5,0 29.25,14t 3.75,34t-24.25,34t-38.25,14l-80,0 l 32-96l 77.5,0 zM 444.5,320q 20,0 29.75,14.25t 3.75,34t-24.5,33.75t-38,14l-80,0 l 32-96l 77,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"firefox\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5q0-52 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 116.5,81q 2,3 7.5,7q 5,4 14.75,3.75t 15.25,0.25q 12.5-15.5 26.5-23.5q 8-5 19.75-8\nt 19.25-3.5l 7.5-1q-3,3.5 -7.75,9.25t-13.25,21.75t-10,30q 2,2 14.25,5.25t 13.75,5.75l 32,0 q 6.5,0 9,11.5t-1.5,18.5q-2.5,0.5 -12.75,6.5t-25.25,15t-21.5,12.5q-1,2 -1.5,2.5q-1,2 1.75,16.75t-1.25,24.75q-0.5,1 -2.25,0.25t-5.25-2.75t-6-3q-4-2 -8.75-2.5t-4.75,0q-5.5,7.5 -8.5,14q 1.5,8.5 2.5,10.5\nq 6.5,13.5 19,25.25t 28.5,13.75q 9,1 18.25-3.75t 16-11.25t 15.75-12t 16.5-5q 18.5,0 30.5,6.25t 12,17.25q0,3 -3,5.5l 0.25,0.25t 0.75,0.25q-1.5,1.5 -4.5,2.5t-5.25,1.5t-6.5,0.75t-5.25,0.25q-6,1 -15,12.25t-16,13.75q-8.5,3 -20.5,12.25t-22.75,15.25t-20.75,4.5q 2.5,3 1,3.5q-0.5,0 2,2.5\nq 21.5,16 58.5,15.5q-8.5,5 -24,6.5q 9.5,4 19.5,6.5q 38,2.5 61.5-5.5t 42-28.5q-2,13 -10,24.5q 3.5-1.5 7.5-4q 24.5-25 34.5-46.5t 9-45.5l0-1.25 l0-1.25 q0-4 -0.5-6.5q 7.5,9 10.5,21q 1.5-58.5 -12-82q 19.5,11.5 30.5,32q 0.5-59 -18.5-97q 14.5,10 25.5,23q-9.5-42.5 -40-79.5q-63.5-57.5 -149-57.5q-78,0 -139.5,49z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"alienship\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,384q-69.5,0 -128.5-10.75t-93.25-29.25t-34.25-40.25t 34.75-40t 93.25-28.75l0-43 q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5l0,43 q 58.5,10.5 93.25,28.75t 34.75,40t-34.25,40.25t-93.25,29.25t-128.5,10.75zM 352,200.5q0-43 -28-73.75t-68-30.75t-68,30.75t-28,73.75l0,34 q 45,21.5 96,21.5\nt 96-21.5l0-34 zM 479,375q-7.5,31 -71.5,52t-151.5,21t-151.5-21t-71.5-52q 33.5,19 93,30t 130,11t 130-11t 93-30z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pictureframe\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,512l-480,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-352 q0-6.5 4.75-11.25t 11.25-4.75l 105.5,0 l 122.5-122.5l 0.25-0.5l 0.25-0.5q 5-4.5 11.5-4.5t 11.5,4.5l 0.25,0.5l 0.25,0.5l 122.5,122.5l 105.5,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,352 q0,6.5 -4.75,11.25t-11.25,4.75zM 256,38.5l-89.5,89.5l 179,0 zM 448,192l-384,0 l0,256 l 384,0 l0-256 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"thissideup\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.25t-9.5-22.75l0-32 q0-13 9.5-22.5t 22.5-9.5l 448,0 q 13.5,0 22.75,9.5t 9.25,22.5l0,32 q0,13.5 -9.25,22.75t-22.75,9.25zM 448,128l0,192 q0,13.5 -9.25,22.75t-22.75,9.25l-32,0 q-13,0 -22.5-9.25t-9.5-22.75l0-192 l-60,0 q-4-4 -4-10t 4-10.5l 98-103q 4-4.5 9.75-4.5t 9.75,4.5l 98.5,103\nq 4,4.5 4,10.5t-4,10l-60,0 zM 160,128l0,192 q0,13.5 -9.25,22.75t-22.75,9.25l-32,0 q-13,0 -22.5-9.25t-9.5-22.75l0-192 l-60,0 q-4-4 -4-10t 4-10.5l 98-103q 4.5-4.5 10-4.5t 10,4.5l 98,103q 4,4.5 4,10.5t-4,10l-60,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"breakable\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,349l0,99 l 64,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-192,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25l 64,0 l0-99 q-68.5-13 -114.25-71.75t-45.75-136.25q0-80.5 49-141l 111,0 l 32,96l-96,32l 96,160l-32-128l 96-32l-32-128l 110.5,0 q 49.5,60.5 49.5,141\nq0,77.5 -45.75,136.25t-114.25,71.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"wind\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,256l-352,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 6,0 l 90,0 q 13.5,0 22.75-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25t-22.75-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25q 3,0 6.5,0.5q 37.5,2.5 63.5,30t 26,65.5q0,15.5 -6,32l 6,0 l 49.5,0 l 110.5,0 q 26.5,0 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75t-45.25,18.75\nt-18.75,45.25q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5q0-53 37.5-90.5t 90.5-37.5t 90.5,37.5t 37.5,90.5t-37.5,90.5t-90.5,37.5zM 32,288l 160,0 q 2,0 5.5,0.5q 5.5-0.5 10.5-0.5q 46.5,0 79.25,32.75t 32.75,79.25q0,24 -6.75,43.75t-21.25,35.25t-39.75,24.25t-60.25,8.75q-13.5,0 -22.75-9.5t-9.25-22.75t 9.5-22.5\nt 22.5-9.25q 15.5,0 26.75-1.5t 18.25-5.25t 11-7t 5.75-10.25t 2-11.25t 0.25-12.75q0-20 -14-34t-34-14l-101,0 l-75,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.25-22.5t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"searchfolder\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,480l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-192 l0-32 l0-32 q0-13 9.5-22.5t 22.5-9.5l 32,0 l 352,0 l 32,0 l 64,0 l0,63.5 l0,0.5 l0,224 q0,26.5 -18.75,45.25t-45.25,18.75zM 349,387.5l-45.5-46q 16.5-24 16.5-53.5q0-39.5 -28-67.75t-68-28.25t-68,28.25t-28,68t 28,67.75t 68,28q 29.5,0 53.5-16.5l 46,46q 2.5,2.5 6.25,2.5\nt 6.75-2.5l 12.5-13q 3-3 3-6.75t-3-6.25zM 224,352q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 295,86q 3.5-9.5 14-15.75t 22-6.25l 120,0 q 12,0 22.5,6.25t 14.5,15.75l 24,42l-240,0 zM 23,54q 3.5-9.5 14-15.75t 22-6.25l 120,0 q 12,0 22.5,6.25\nt 14.5,15.75l 24,42l-240,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"searchdocument\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-13,0 -22.5-9.25t-9.5-22.75l0-447.5 q0-13.5 9.5-22.75t 22.5-9.25l 224,0 l0,176 q0,6.5 4.75,11.25t 11.25,4.75l 176,0 l0,0.5 l0,287 q0,13.5 -9.25,22.75t-22.75,9.25zM 317.5,419.5l-46-46q 16.5-24 16.5-53.5q0-40 -28-68t-67.75-28t-68,28t-28.25,68t 28.25,68t 67.75,28q 29.5,0 53.5-16.5l 46,46\nq 2.5,2.5 6.25,2.5t 6.75-2.5l 13-13q 2.5-3 2.5-6.75t-2.5-6.25zM 192,384q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 320,0q 13,0 22,9l 128.5,128.5q 9.5,9.5 9.5,23l-160,0 l0-160.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cricket\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 502,454.5l-47.5,47.5q-9.5,10 -23.5,10t-24-10l-237-237q-10-10 -10-24t 10-23.5l 4.5-4.5l-75-75l-88.5-48q-11-10.5 -11-26t 11-26.5l 26.5-26.5q 11-11 26.5-11t 26,11l 48,88.5\nl 75,75l 4.5-4.5q 9.5-10 23.5-10t 24,10l 237,237q 10,10 10,24t-10,23.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"safetypin\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 475.5,475.5q-36.5,36.5 -87.75,36.5t-87.75-36.5l-263.5-263.5q-36.5-36.5 -36.5-87.75t 36.5-87.75t 87.75-36.5t 87.75,36.5l 263.5,263.5q 36.5,36.5 36.5,87.75t-36.5,87.75zM 256,128q-13,0 -35-0.5t-30-0.5t-19,2.25t-18.5,7.75q-10.5-14.5 -10.5-35.25t-6-25.75q-12.5-12.5 -30.25-12.5t-30.5,12.75t-12.75,30.5t 12.5,30.25\nq 6,5.5 15.5,5.5t 21.75,1.25t 23.25,9.75q-5,7.5 -7.5,18t-2.5,18.75t 0.75,29.75t 0.75,36l 128,132l0-1.75 l0-2.25 q0-53 37.5-90.5t 90.5-37.5l 2.25,0 l 1.75,0 zM 384.25,288q-39.75,0 -68,28.25t-28.25,68t 28.25,67.75t 68,28t 67.75-28t 28-67.75t-28-68t-67.75-28.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"razor\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,325.5q-5.5-5.5 -13.5-5.5t-13.5,5.5t-5.5,13.25t 5.5,13.25l 29.5,29l-101.5,101.5l-29-29q-5.5-5.5 -13.25-5.5t-13.5,5.5t-5.75,13t 5.5,13l 9.5,9.5l-23,23l-311.5-311.5l 23-23l 9,9q 5.5,5.5 13.5,5.5t 13.5-5.5t 5.5-13.25t-5.5-13.25l-29.5-29l 101.5-101.5l 29,29q 5.5,5.5 13.25,5.5t 13.25-5.5t 5.5-13.25t-5.5-13.25\nl-9-9l 23-23l 311.5,311.5l-23,23zM 412,355.75q-4-3.75 -9.5-3.75t-9,4l-10,9.5l-45-45l 9.5-10q 4-4 4-9.5t-4-9.25t-9.5-3.75t-9,4l-10,9.5l-34-34q 2.5-5.5 2.5-11.5q0-13 -9.25-22.5t-22.75-9.5q-6,0 -11.5,2.5l-34-34l 9.5-10q 4-3.5 4-9t-3.75-9.5t-9.25-4t-9.5,4l-9.5,9.5l-45.5-45l 10-9.5q 3.5-4 3.5-9.5\nt-3.75-9.5t-9.25-4t-9.5,4l-37.5,37.5q-4,4 -4,9.5t 4,9.25t 9.5,3.75t 9.5-3.5l 9.5-10l 45,45l-9.5,10q-4,4 -4,9.5t 4,9.25t 9.5,3.75t 9-4l 10-9.5l 34,34q-2.5,5.5 -2.5,11.5q0,13.5 9.5,22.75t 22.5,9.25q 6,0 11.5-2l 34,33.5l-9.5,10q-4,3.5 -4,9t 3.75,9.5t 9.25,4t 9.5-4l 10-9.5l 45,45l-9.5,10\nq-4,3.5 -4,9t 3.75,9.5t 9.25,4t 9.5-4l 37.5-37.5q 4-4 4-9.5t-4-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"danger\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 441,283.5l 71,80l-87,23.5l 23,61l-82.5-23l-29.5,87l-79-52.5l-37,52.5l-33.5-64l-90.5,0 l 8-58l-78,0 l 36.5-86.5l-62.5-35l 47.5-38l-47-68l 95.5-23.5l0-74.5 l 43.5,28.5l 22.5-92.5l 80.5,67.5l 74-67.5l 16,57.5l 57.5-32l 14,85l 76-14.5l-34,77l 65.5,46.5zM 288,144.5q0-7 -4.75-11.5t-11.25-4.5l-32,0 \nq-6.5,0 -11.25,4.5t-4.75,11.5l0,128 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-128 zM 288,336.5q0-7 -4.75-11.5t-11.25-4.5l-32,0 q-6.5,0 -11.25,4.5t-4.75,11.5l0,31.5 q0,7 4.75,11.5t 11.25,4.5l 32,0 q 6.5,0 11.25-4.5t 4.75-11.5l0-31.5 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"sharethree\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,320l-43,0 q-20,56.5 -69.5,92.25t-111.5,35.75t-111.5-35.75t-69.5-92.25l 70.5,0 q 16.5,29 46,46.5t 64.5,17.5q 53,0 90.5-37.5t 37.5-90.5l 32,0 l 32,0 l 32,0 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5zM 320,256q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75\nt 45.25,18.75t 18.75,45.25zM 256,128q-53,0 -90.5,37.5t-37.5,90.5l-32,0 l-32,0 l-32,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 43,0 q 20-56.5 69.5-92.25t 111.5-35.75t 111.5,35.75t 69.5,92.25l-70,0 q-17-29 -46.5-46.5t-64.5-17.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"aaabattery\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496.5,403.5l-93,93q-15.5,15.5 -37.25,15.5t-37.25-15.5l-313.5-313.5q-15.5-15.5 -15.5-37.25t 15.5-37.25l 14-14l-23.5-23.5q-6-6 -6-14.5t 6-14.5l 36-36q 6-6 14.5-6t 14.5,6l 23.5,23.5l 14-14q 15.5-15.5 37.25-15.5t 37.25,15.5l 313.5,313.5q 15.5,15.5 15.5,37.25t-15.5,37.25zM 192,120l-24-24l-24,24l-24-24l-24,24\nl 24,24l-24,24l 24,24l 24-24l 24,24l 24-24l-24-24zM 468.5,343.5l-186.5-186.5l-125.5,125l 187,186.5q 12,11 28.5,9.5t 28.5-13.5l 64-64q 11.5-12 13.25-28.5t-9.25-28.5zM 320,392.5l 72.5-72.5l 24,24.5l-72.5,72z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"desklamp\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288,288q-64-46.5 -64-111.5q0-25 8.5-48.5l-9-9l-133.5,133.5l 103,195.5l 127,0 q 13,0 22.5,9.5t 9.5,22.75t-9.5,22.5t-22.5,9.25l-256,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 93,0 l-91-171.5l-6.5,6.5q-4.5,5 -11.25,5t-11.5-4.75t-4.75-11.5t 4.5-11.25l 14-14l-16-30.5q-3.5-5.5 -1.75-12t 7.5-10t 12-1.75\nt 9.75,7.75l 12,23l 128-127.5q-12-18 -10-40t 17.5-37.5q 18-18 43.5-18t 43.5,18l 23,23q 24-8.5 48.5-8.5q 65.5,0 112,64z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"torigate\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,192l0,64 l-50.5,0 q 18.5,118 18.5,256l-64,0 q0-134.5 -22-256l-276,0 q-22,122 -22,256l-64,0 q0-138 18.5-256l-50.5,0 l0-64 l 62,0 q 8.5-37.5 16-64l-46,0 l-32-128l 512,0 l-32,128l-46,0 q 7.5,26 16,64l 62,0 zM 132,192l 92,0 l0-64 l-73.5,0 q-9,25.5 -18.5,64zM 361.5,128l-73.5,0 l0,64 l 92,0 q-9.5-38 -18.5-64z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"islam\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25t 70,70t 96.25,25.75q 47.5,0 91.5-21.5t 74-57.5q-32,64.5 -93.5,103.75t-136,39.25q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25q 74.5,0 136,39.25t 93.5,103.75\nq-30-36 -74-57.5t-91.5-21.5zM 393,225.5l 23-65.5l 23,65.5l 73-0.5l-59,44.5l 19.5,66.5l-56.5-39l-56.5,39l 19.5-66.5l-59-44.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"christiancross\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 416,256l-96,0 l0,224 q0,13 -9.25,22.5t-22.75,9.5l-64,0 q-13,0 -22.5-9.5t-9.5-22.5l0-224 l-96,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13.5 9.25-22.75t 22.75-9.25l 96,0 l0-96 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,96 l 96,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13 -9.25,22.5\nt-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"davidstar\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480.5,384l-144.5,0 l-80,128l-80-128l-144,0 l 64-128l-64-128l 144,0 l 80-128l 80,128l 144.5,0 l-64.5,128zM 432,352l-33.5-67.5l-42.5,67.5l 76,0 zM 256,448l 43-64l-85.5,0 zM 80,352l 76,0 l-42-67.5zM 80,160l 34,67.5l 42-67.5l-76,0 zM 256,64l-42.5,64l 85.5,0 zM 320,160l-128,0 l-64,96l 64,96l 128,0 \nl 64-96zM 432,160l-76,0 l 42.5,67.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fridge\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,480l-32,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16 l-128,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75t-11.25-4.75t-4.75-11.25l0-16 l-32,0 q-13,0 -22.5-9.5t-9.5-22.5l0-224 q0-13.5 9.25-22.75t 22.75-9.25l 256,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,224 q0,13 -9.25,22.5t-22.75,9.5zM 160,240\nq0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-32 zM 384,160l-256,0 q-13,0 -22.5-9.5t-9.5-22.5l0-96 q0-13.5 9.5-22.75t 22.5-9.25l 256,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,96 q0,13 -9.25,22.5t-22.75,9.5zM 160,80q0-6.5 -4.75-11.25t-11.25-4.75\nt-11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"stumbleupon\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 341.5,187.5q0-35 -25-60t-60.5-25t-60.5,25t-25,60l0,102.5 q0,7 -5,12\nt-12,5t-12-5t-5-12l0-51 l-68.5,0 l0,51 q0,35.5 25,60.5t 60.5,25t 60.5-25t 25-60.5l0-102.5 q0-7 5-12t 12-5t 12,5t 5,12l0,17.5 l 34,34l 34.5-34l0-17.5 zM 375.5,239l0,51 q0,7 -5,12t-12,5t-12-5t-5-12l0-51 l-34.5,34l-34-34l0,51 q0,35.5 25,60.5t 60.25,25t 60.25-25t 25-60.5l0-51 l-68,0 z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"speed\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 210.75,366.75q-18.75-18.75 -18.75-45.25t 19-45.5l 272-181l-181.5,272q-18.5,18.5 -45.25,18.5t-45.5-18.75zM 256,96.5q-45.5,0 -87.25,18t-71.75,48t-47.75,71.5t-17.75,87q0,53 24,101l-28,14q-27.5-54.5 -27.5-114.5q0-52.5 20.25-99.75t 54.5-81.5t 81.75-54.5t 99.5-20.25q 80.5,0 146.5,46l-28.5,19\nq-54.5-34 -118-34zM 466.5,175.5q 45.5,66 45.5,146q0,60 -27.5,114.5l-28-14.5q 24-47.5 24-100.5q0-62.5 -33-117z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"broom\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.5,55l-154,154q 9.5,25.5 -4.5,39.5t-39.5,4.5l-0.5,0.5q 14.5,23.5 15.25,47.5t-8.75,43.5t-27,36.5q-44.5,44.5 -64,131q-23-11.5 -50.5-30q-5.5-25 2-49.5t 26-41.5q-23,7.5 -39.5,25t-22.5,40.5q-24.5-19.5 -42.5-37q-1-1 -2.75-3t-2.25-3q 17-17 24-38.5q-17.5,15.5 -39,22.5q-15.5-17.5 -27.5-33.5q 22-7 39-23.25\nt 24-38.75q-16,18 -39,25.75t-47,3.75q-13.5-21.5 -22-39q 86.5-20 131-64q 17-17.5 36.5-27t 43.5-8.75t 47.5,15.25l 0.5-0.5q-9.5-25.5 4.5-39.5t 39.5-4.5l 154-154q 9.5-9.5 22.75-9.5t 22.75,9.5t 9.5,22.75t-9.5,22.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"dna\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 364,239.5q-37.5-18.5 -75.5-31.5q 16.5-8.5 30.5-16l-126,0 q 10.5,5.5 63,32q 32,10.5 63.75,25t 67.5,38.25t 62.5,50.75t 44.5,64.25t 17.75,77.75q0,13 -9.25,22.5t-22.5,9.5t-22.75-9.5t-9.5-22.5l-384,0 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5q0-34 12-65.75t 33.75-57.25t 46.75-46t 55.5-38.5\nq 37.5,18.5 75.5,31.5q-16.5,8.5 -30.5,16l 126,0 q-10.5-5.5 -63-32q-32-10.5 -63.75-25.25t-67.5-38.25t-62.5-50.5t-44.5-64.25t-17.75-77.75q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l 384,0 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75q0,34 -12,65.5t-33.75,57.25t-46.75,46.25t-55.5,38.5z\nM 68,448l 375.5,0 q-4-16 -13-32l-349,0 q-9.5,16 -13.5,32zM 142.5,352q-23.5,17 -37.5,32l 301.5,0 q-15.5-16.5 -36.5-32l-227.5,0 zM 142,160l 227.5,0 q 23.5-17 37-32l-301,0 q 15.5,16.5 36.5,32zM 68.5,64q 4,16 13,32l 349,0 q 9.5-16 13.5-32l-375.5,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pasta\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,160l-128.5-26q-2.5,24.5 -20.5,41.25t-43,16.75l-32,0 l0-160 l 32,0 q 25,0 43,16.75t 20.5,40.75l 128.5-25.5q 64,0 64,47.5q0,26.5 -18,37.5t-46,11zM 176,224q-6.5,0 -11.25-4.75t-4.75-11.25l0-192 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,192 q0,6.5 -4.75,11.25t-11.25,4.75zM 112,512\nq-6.5,0 -11.25-4.75t-4.75-11.25l0-480 q0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,480 q0,6.5 -4.75,11.25t-11.25,4.75zM0,176q0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0,32 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25zM0,112q0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0,32 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25zM0,48\nq0-6.5 4.75-11.25t 11.25-4.75l 48,0 l0,32 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"egg\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,0q 30.5,0 58.5,16.25t 48.25,43.25t 37,60.75t 27,69.75t 15.75,69.25t 5.5,60.75q0,52 -25.75,96.25t-70,70t-96.25,25.75t-96.25-25.75t-70-70t-25.75-96.25q0-27.5 5.5-60.75t 15.75-69.25t 27-69.75t 37-60.75t 48.25-43.25t 58.5-16.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"greenlightbulb\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 423,195l-286,124q-13,4 -24.75-3.25t-15.25-20.75t 3.25-25.75t 19.75-16.25l 286-124q 13.5-3.5 25,3.5t 15.25,20.75t-3.25,26t-20,15.75zM 391,99l-286,124q-13,4 -24.75-3.25t-15.25-20.75t 3.25-25.75t 19.75-15.75l 286-124.5q 13.5-3.5 25,3.5t 15.25,20.75t-3.25,26t-20,15.75zM 215,67l-78,28\nq-13,4 -24.75-3t-15.25-20.75t 3.25-26t 19.75-15.75l 78.5-28.5q 13-3.5 24.75,3.5t 15.25,20.75t-3.25,26t-20.25,15.75zM 204.5,323.5q 5-4.5 11.5-6.5l 158-60q 13.5-3.5 25,3.5t 15.25,20.75t-3.25,26t-20,15.75l-135,51.5q-0.5,6.5 -0.5,9.5l 32,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-64,0 q-3,0 -6-0.5\nq-24.5-2.5 -41.25-20.75t-16.75-42.75q0-21 12.5-37.75t 32.5-22.75zM 255.5,512q-26.5,0 -45.25-9.25t-18.75-22.75l 128,0 q0,13.5 -18.75,22.75t-45.25,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"baloon\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 270,445.5q 38,38.5 47.5,66.5l-123,0 q 9.5-28 47-66.5q-24.5-6.5 -55.75-33.5t-58-62.75t-45.25-78.75t-18.5-78.5q0-52 25.75-96.25t 70-70t 96.25-25.75t 96.25,25.75t 70,70t 25.75,96.25q0,35.5 -18.5,78.5t-45.25,78.75t-58,62.75t-56.25,33.5zM 191.5,97.5q-19-5.5 -37,8t-24,38\nq-7,24 -2.5,84.25t 16,60.25q 7,0 11.5-16.25t 9.25-36.75t 11.25-27q 2.5-2.5 10-9.75t 11.75-11.75t 10-10.75t 9.25-12t 4.5-11.25q 11.5-43.5 -30-55z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"nintendods\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,288l0,160 q0,13 -9.5,22.5t-22.5,9.5l-448,0 q-13,0 -22.5-9.5t-9.5-22.5l0-160 q0-13 9.5-22.5t 22.5-9.5q-13,0 -22.5-9.25t-9.5-22.75l0-160 q0-13 9.5-22.5t 22.5-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.5l0,160 q0,13.5 -9.5,22.75t-22.5,9.25q 13.5,0 22.75,9.25t 9.25,22.75zM 432,416q 6.5,0 11.25-4.75t 4.75-11.25t-4.75-11.25\nt-11.25-4.75t-11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75zM 128,360q0-3.5 -2.25-5.75t-5.75-2.25l-24,0 l0-24 q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,24 l-24,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,16 q0,3.5 2.25,5.75t 5.75,2.25l 24,0 l0,24 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 \nq 3.5,0 5.75-2.25t 2.25-5.75l0-24 l 24,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 zM 352,80q0-6.5 -4.75-11.25t-11.25-4.75l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,128 q0,6.5 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-128 zM 352,304q0-6.5 -4.75-11.25t-11.25-4.75l-160,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,128 \nq0,6.5 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-128 zM 400,352q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75zM 432,320q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\nM 464,352q-6.5,0 -11.25,4.75t-4.75,11.25t 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25t-4.75-11.25t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"gameboy\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 336,512l-240,0 q-13,0 -22.5-9.5t-9.5-22.5l0-448 q0-13.5 9.25-22.75t 22.75-9.25l 320,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,368 q0,46.5 -32.75,79.25t-79.25,32.75zM 320.25,448q 13.25,0 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25t-22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5zM 96,360l0,16 q0,3.5 2.25,5.75\nt 5.75,2.25l 24,0 l0,24 q0,3.5 2.25,5.75t 5.75,2.25l 16,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-24 l 24,0 q 3.5,0 5.75-2.25t 2.25-5.75l0-16 q0-3.5 -2.25-5.75t-5.75-2.25l-24,0 l0-24 q0-3.5 -2.25-5.75t-5.75-2.25l-16,0 q-3.5,0 -5.75,2.25t-2.25,5.75l0,24 l-24,0 q-3.5,0 -5.75,2.25t-2.25,5.75zM 384,80q0-6.5 -4.75-11.25t-11.25-4.75\nl-224,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,160 q0,6.5 4.75,11.25t 11.25,4.75l 224,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-160 zM 384.25,320q-13.25,0 -22.75,9.25t-9.5,22.5t 9.5,22.75t 22.75,9.5t 22.5-9.5t 9.25-22.75t-9.25-22.5t-22.5-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"route\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,0zM 256,0l0,0 l0,0 zM 384,32q 53,0 90.5-9.25t 37.5-22.75l0,128 l-512,0 l0-128 l0,0 q0,13.5 37.5,22.75t 90.5,9.25t 90.5-9.25t 37.5-22.75q0,13.5 37.5,22.75t 90.5,9.25zM 256,512q-47-13.5 -84.25-32.75t-62.5-39.25t-44.25-48.5t-29.75-52t-18.25-58.25t-10.75-59t-6.25-62.25l 512,0 \nq-3,38 -6.25,62.25t-10.75,59t-18.25,58.25t-29.75,52t-44.25,48.5t-62.5,39.25t-84.25,32.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"cannon\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,224l-121,20q 25,34 25,76q0,53 -37.5,90.5t-90.5,37.5q-42.5,0 -76-24.75t-46-64.25l-41,72.5q-7.5,13 -22.5,16q-3,0.5 -5.5,0.5l-0.5,0 l-0.5,0 l-32,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l 13,0 l 55.5-97l-4.5,1q-36.5,2 -66.25-27.5t-29.75-68.5q0-39.5 27-68.75t 63-27.25l 6,0 l0-16 \nq0-6.5 4.75-11.25t 11.25-4.75t 11.25,4.75t 4.75,11.25l0,16 l 352,0 q 13.5,0 22.75,18.75t 9.25,45.25q0,25.5 -9,42.5t-23,21.5zM 256,256q-26.5,0 -45.25,18.75t-18.75,45.25t 18.75,45.25t 45.25,18.75t 45.25-18.75t 18.75-45.25t-18.75-45.25t-45.25-18.75zM 255.75,352q-13.25,0 -22.5-9.5t-9.25-22.75t 9.25-22.5\nt 22.5-9.25t 22.75,9.25t 9.5,22.5t-9.5,22.75t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"fort\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,512l-176,0 l0-64 q0-26.5 -18.75-45.25t-45.25-18.75t-45.25,18.75t-18.75,45.25l0,64 l-176,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-240 l0-16 l0-48 l 32,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-16 l 32,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-16 l 32,0 l0-96 l-16,0 q-6.5,0 -11.25-4.75\nt-4.75-11.25l0-64 q0-6.5 4.75-11.25t 11.25-4.75l 16,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-16 l 32,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-16 l 32,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-16 l 16,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,64 \nq0,6.5 -4.75,11.25t-11.25,4.75l-16,0 l0,96 l 32,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-16 l 32,0 l0,16 q0,6.5 4.75,11.25t 11.25,4.75t 11.25-4.75t 4.75-11.25l0-16 l 32,0 l0,48 l0,16 l0,240 q0,6.5 -4.75,11.25t-11.25,4.75zM 128,320q0-13 -9.5-22.5t-22.75-9.5t-22.5,9.5t-9.25,22.5l0,32 l 64,0 l0-32 z\nM 288,128q0-13 -9.5-22.5t-22.75-9.5t-22.5,9.5t-9.25,22.5l0,32 l 64,0 l0-32 zM 448,320q0-13 -9.5-22.5t-22.75-9.5t-22.5,9.5t-9.25,22.5l0,32 l 64,0 l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"hydrant\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 432,384q-6.5,0 -11.25-4.75t-4.75-11.25l0-16 l-32,0 l0,96 q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l-256,0 q-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25l0-96 l-32,0 l0,16 q0,6.5 -4.75,11.25t-11.25,4.75q-20,0 -34-18.75t-14-45.25t 14-45.25t 34-18.75q 6.5,0 11.25,4.75t 4.75,11.25l0,16 l 32,0 l0-64 \nq-13,0 -22.5-9.5t-9.5-22.75t 9.5-22.5t 22.5-9.25q0-44.5 27-78.75t 69-45.25l0-4 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,4 q 42,11 69,45.5t 27,78.5q 13.5,0 22.75,9.25t 9.25,22.5t-9.25,22.75t-22.75,9.5l0,64 l 32,0 l0-16 q0-6.5 4.75-11.25t 11.25-4.75q 20,0 34,18.75t 14,45.25t-14,45.25t-34,18.75\nz\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillespace\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,224q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.75t-9.25-22.75t-22.75-9.25zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,32q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.25-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\nM 128.25,416q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128.25,224q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25\nt 22.5-9.25t 9.25-22.75t-9.25-22.75t-22.5-9.25zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128.25,32q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 384,384\nq 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.25-22.5t-22.75-9.25t-22.75,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braille9\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384.25,32q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5\nt 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\nM 128.25,224q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128.25,32q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25\nt 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 384.25,480q 13.25,0 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5t-22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braille8\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384.25,224q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75\nt 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384.25,32q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320\nq-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128.25,32q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25\nt 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braille7\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384.25,32q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5\nt 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\nM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128.25,32q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75\nt-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braille6\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,32q-13.25,0 -22.5,9.5t-9.25,22.75\nt 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,32q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5t-22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braille5\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75\nt 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,32q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,416\nq-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75\nt 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,32q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braille4\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,32q-13.25,0 -22.5,9.5t-9.25,22.75\nt 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,416q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,320\nq-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,32q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25\nt 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braille3\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,32q-13.25,0 -22.5,9.25t-9.25,22.5\nt 9.5,22.75t 22.5,9.5t 22.5-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,416q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,320\nq-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,32q-13.25,0 -22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5\nt 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.25t 9.5-22.5t-9.25-22.75t-22.75-9.5t-22.75,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braille2\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,224q-13.5,0 -22.75,9.5t-9.25,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75\nt 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,32q-13.5,0 -22.75,9.5t-9.25,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320\nq-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,32q-13.5,0 -22.75,9.5t-9.25,22.75t 9.5,22.5t 22.75,9.25\nt 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 384.25,480q 13.25,0 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5t-22.75,9.5t-9.25,22.75t 9.5,22.5t 22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braille1\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75\nt 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,32q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,416\nq-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.25-22.75t-22.75-9.5zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75\nt 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,32q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480\nq 13.25,0 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5t-22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braille0\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,32q-13.25,0 -22.5,9.5t-9.25,22.75\nt 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75zM 127.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,32q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5\nt 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillez\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,32q-13.25,0 -22.5,9.5t-9.25,22.75\nt 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75zM 127.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"brailley\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128.25,224q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5z\nM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillex\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384.25,224q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75\nt 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\nM 128.25,224q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75\nt-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillew\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128.25,416q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\nM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128.25,32q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75\nt-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillev\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384.25,224q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75\nt 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384.25,32q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320\nq-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"brailleu\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75\nt 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,32q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320\nq-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75\nt 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillet\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75zM 128,32q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25t 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 384,480q 13.5,0 22.75-9.25t 9.25-22.5t-9.25-22.75\nt-22.75-9.5t-22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"brailles\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.75t-9.5-22.75t-22.75-9.25zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,32q-13.25,0 -22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25\nt-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.5t 9.25,22.75t 22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"brailler\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,32q-13.25,0 -22.5,9.25t-9.25,22.75\nt 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75\nt-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"brailleq\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillep\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.75t-9.5-22.75t-22.75-9.25zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75\nt-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"brailleo\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,32q-13.5,0 -22.75,9.25t-9.25,22.75\nt 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.25-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75zM 128.25,224q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.75t-9.25-22.75t-22.5-9.25zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25\nt-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillen\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128.25,224q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.75t-9.25-22.75t-22.5-9.25\nzM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5\nt-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillem\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.75t-9.5-22.75t-22.75-9.25zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75zM 127.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.75t-9.5-22.75t-22.75-9.25zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25\nt-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillel\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.75t-9.5-22.75t-22.75-9.25zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,32q-13.25,0 -22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\nM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillek\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.75t-9.5-22.75t-22.75-9.25zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,32q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\nM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.75t-9.5-22.75t-22.75-9.25zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75\nt 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillej\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,416q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\nM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,32q-13.5,0 -22.75,9.5t-9.25,22.75t 9.5,22.5t 22.5,9.25t 22.5-9.25t 9.5-22.5t-9.25-22.75t-22.75-9.5zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75\nt-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillei\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,224q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.75t-9.25-22.75t-22.75-9.25zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,416q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.25-22.75t-22.75-9.5z\nM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,32q-13.5,0 -22.75,9.5t-9.25,22.75t 9.5,22.5\nt 22.5,9.25t 22.5-9.25t 9.5-22.5t-9.25-22.75t-22.75-9.5zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"brailleh\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,32q-13.25,0 -22.5,9.5t-9.25,22.75\nt 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,416q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,320\nq-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"brailleg\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,416q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\nM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5\nt-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillef\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.75t-9.5-22.75t-22.75-9.25zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 127.75,416q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.5t-9.5-22.75t-22.75-9.5z\nM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillee\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,32q-13.25,0 -22.5,9.5t-9.25,22.75\nt 9.25,22.5t 22.75,9.25t 22.75-9.25t 9.25-22.5t-9.5-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128.25,416q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5z\nM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128.25,224q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.75t-9.25-22.75t-22.5-9.25zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75\nt 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"brailled\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128.25,416q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\nM 128.25,224q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.75t-9.25-22.75t-22.5-9.25zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25\nt-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillec\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,224q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.5,9.25t 22.75-9.25t 9.5-22.75t-9.25-22.75t-22.75-9.25zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128.25,416q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5z\nM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128.25,224q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.75t-9.25-22.75t-22.5-9.25zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75\nt 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.25-22.5t-22.75-9.25t-22.75,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"brailleb\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25t 22.75-9.25t 9.25-22.75t-9.5-22.75t-22.75-9.25zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,32q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25t 22.75-9.25t 9.25-22.5t-9.5-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\nM 128.25,416q-13.25,0 -22.75,9.5t-9.5,22.75t 9.25,22.5t 22.75,9.25t 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75\nt 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480q 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"braillea\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,224q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25t 22.75-9.25t 9.25-22.75t-9.5-22.75t-22.75-9.25zM 384,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25\nt 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 383.75,32q-13.25,0 -22.5,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25t 22.75-9.25t 9.25-22.5t-9.5-22.75t-22.75-9.5zM 128,512q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\nM 128.25,416q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25t 22.5-9.25t 9.25-22.5t-9.25-22.75t-22.5-9.5zM 128,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 128.25,224q-13.25,0 -22.75,9.5t-9.5,22.75t 9.5,22.5t 22.75,9.25\nt 22.5-9.25t 9.25-22.75t-9.25-22.75t-22.5-9.25zM 128,128q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75zM 384,384q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75zM 383.75,480\nq 13.25,0 22.75-9.5t 9.5-22.75t-9.5-22.5t-22.75-9.25t-22.5,9.25t-9.25,22.75t 9.25,22.75t 22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenz\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 488,504.25q-17,11.25 -36.25,5.5t-29.25-25.25l-166.5-322.5l-166.5,322.5q-10,19.5 -29.25,25.25t-36.25-5.5t-22.25-32.75t 4.75-40.5l 208-403.5q0-0.5 0.5-1.25l 0.5-0.75q 6.5-11.5 16.5-18q 17-11 36.25-5.25t 29.25,25.25l 208,403.5q 10,19 4.75,40.5t-22.25,32.75zM 256,384q 26.5,0 45.25,18.75t 18.75,45.25\nt-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpeny\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,320q-26.5,0 -45.25-18.75t-18.75-45.5t 18.75-45.5t 45.25-18.75t 45.25,18.75t 18.75,45.5t-18.75,45.5t-45.25,18.75zM 484.5,89l-323,167l 323,166.5q 19.5,10 25.25,29t-5.5,36.25t-32.75,22.5t-40.5-4.75l-404-208q-19.5-10 -25.25-29.25t 5.25-36.25q 6.5-10 18-16.5q 0.5,0 1-0.5l 1-1l 404-208q 19-10 40.5-4.75\nt 32.75,22.5t 5.5,36.5t-25.25,28.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenx\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 64,191.5q 26.5,0 45.25,18.75t 18.75,45.5t-18.75,45.5t-45.25,18.75t-45.25-18.75t-18.75-45.5t 18.75-45.5t 45.25-18.75zM 485,297.5l-404,208q-19,10 -40.5,4.75t-32.75-22.5t-5.5-36.25t 25.25-29l 323-166.5l-323-167q-19.5-9.5 -25.25-28.75t 5.5-36.5t 32.75-22.5t 40.5,4.75l 404,208l 1,1t 1,0.5q 11.5,6.5 18,16.5\nq 11,17 5.25,36.25t-25.25,29.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenw\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 505.5,81.5l-208,403.5q-10,19.5 -29.25,25.25t-36.25-5.25q-10-6.5 -16.5-18q0-0.5 -0.5-1t-0.5-1l-208-403.5q-10-19.5 -4.75-41t 22.25-32.5t 36.25-5.25t 29.25,24.75l 166.5,323l 166.5-323q 10-19 29.25-24.75t 36.25,5.25t 22.25,32.5t-4.75,41zM 256,128.5q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75\nt 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenv\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 488,504.75q-17,11.25 -36.25,5.5t-29.25-25.25l-166.5-323l-166.5,323q-10,19.5 -29.25,25.25t-36.25-5.5t-22.25-32.75t 4.75-40.5l 208-404l 0.5-0.75l 0.5-0.75q 6.5-11.5 16.5-18q 17-11 36.25-5.25t 29.25,24.75l 208,404q 10,19 4.75,40.5t-22.25,32.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenu\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 485,89l-323.5,166.5l 323.5,167q 19.5,9.5 25.25,28.75t-5.5,36.5t-32.75,22.5t-41-4.75l-404-208.5q-19.5-9.5 -25.25-28.75t 5.25-36.75q 6.5-10 18-16.5q 0.5,0 1-0.5t 1-0.5l 404-208.5q 19.5-10 41-4.75t 32.75,22.5t 5.5,36.5t-25.25,29.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpent\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 485,297l-404,208.5q-19.5,10 -41,4.75t-32.75-22.5t-5.5-36.5t 25.25-28.75l 323.5-167l-323.5-166.5q-19.5-10 -25.25-29.25t 5.5-36.5t 32.75-22.5t 41,4.75l 404,208.5q 0.5,0 1,0.5t 1,0.5q 11.5,6.5 18,16.5q 11,17.5 5.25,36.75t-25.25,28.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpens\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 505.5,81.5l-208,403.5q-10,19.5 -29.25,25.25t-36.25-5.25q-9.5-6.5 -16.5-18q0-0.5 -0.5-1t-0.5-1l-208-403.5q-10-19.5 -4.75-41t 22.25-32.5t 36.25-5.25t 29.25,25.25l 166.5,322.5l 166.5-322.5q 10-19.5 29.25-25.25t 36.25,5.25t 22.25,32.5t-4.75,41z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenr\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,96l-368,0 l0,368 q0,20 -14,34t-34,14t-34-14t-14-34l0-416 q0-20 14-34t 34-14l 416,0 q 20,0 34,14t 14,34t-14,34t-34,14zM 256,192q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenq\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,512q-20,0 -34-14t-14-34l0-368 l-320,0 l0,368 q0,20 -14,34t-34,14t-34-14t-14-34l0-416 q0-20 14-34t 34-14l 416,0 q 20,0 34,14t 14,34l0,416 q0,20 -14,34t-34,14zM 256,192q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\n\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenp\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,512q-20,0 -34-14t-14-34l0-368 l-368,0 q-20,0 -34-14t-14-34t 14-34t 34-14l 416,0 q 20,0 34,14t 14,34l0,416 q0,20 -14,34t-34,14zM 256,192q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpeno\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 192,256q0-26.5 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25zM 464,96l-368,0 l0,320 l 368,0 q 20,0 34,14t 14,34t-14,34t-34,14l-416,0 q-20,0 -34-14t-14-34l0-416 q0-20 14-34t 34-14l 416,0 q 20,0 34,14t 14,34t-14,34t-34,14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenn\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,512l-416,0 q-20,0 -34-14t-14-34l0-416 q0-20 14-34t 34-14l 416,0 q 20,0 34,14t 14,34l0,416 q0,20 -14,34t-34,14zM 416,96l-320,0 l0,320 l 320,0 l0-320 zM 256,192q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenm\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 320,256q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25zM 464,512l-416,0 q-20,0 -34-14t-14-34t 14-34t 34-14l 368,0 l0-320 l-368,0 q-20,0 -34-14t-14-34t 14-34t 34-14l 416,0 q 20,0 34,14t 14,34l0,416 q0,20 -14,34t-34,14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenl\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,512l-416,0 q-20,0 -34-14t-14-34l0-416 q0-20 14-34t 34-14t 34,14t 14,34l0,368 l 368,0 q 20,0 34,14t 14,34t-14,34t-34,14zM 256,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenk\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,512l-416,0 q-20,0 -34-14t-14-34l0-416 q0-20 14-34t 34-14t 34,14t 14,34l0,368 l 320,0 l0-368 q0-20 14-34t 34-14t 34,14t 14,34l0,416 q0,20 -14,34t-34,14zM 256,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenj\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,512l-416,0 q-20,0 -34-14t-14-34t 14-34t 34-14l 368,0 l0-368 q0-20 14-34t 34-14t 34,14t 14,34l0,416 q0,20 -14,34t-34,14zM 256,320q-26.5,0 -45.25-18.75t-18.75-45.25t 18.75-45.25t 45.25-18.75t 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpeni\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,96l-368,0 l0,368 q0,20 -14,34t-34,14t-34-14t-14-34l0-416 q0-20 14-34t 34-14l 416,0 q 20,0 34,14t 14,34t-14,34t-34,14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenh\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,512q-20,0 -34-14t-14-34l0-368 l-320,0 l0,368 q0,20 -14,34t-34,14t-34-14t-14-34l0-416 q0-20 14-34t 34-14l 416,0 q 20,0 34,14t 14,34l0,416 q0,20 -14,34t-34,14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpeng\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,512q-20,0 -34-14t-14-34l0-368 l-368,0 q-20,0 -34-14t-14-34t 14-34t 34-14l 416,0 q 20,0 34,14t 14,34l0,416 q0,20 -14,34t-34,14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenf\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,96l-368,0 l0,320 l 368,0 q 20,0 34,14t 14,34t-14,34t-34,14l-416,0 q-20,0 -34-14t-14-34l0-416 q0-20 14-34t 34-14l 416,0 q 20,0 34,14t 14,34t-14,34t-34,14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpene\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,512l-416,0 q-20,0 -34-14t-14-34l0-416 q0-20 14-34t 34-14l 416,0 q 20,0 34,14t 14,34l0,416 q0,20 -14,34t-34,14zM 416,96l-320,0 l0,320 l 320,0 l0-320 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpend\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,512l-416,0 q-20,0 -34-14t-14-34t 14-34t 34-14l 368,0 l0-320 l-368,0 q-20,0 -34-14t-14-34t 14-34t 34-14l 416,0 q 20,0 34,14t 14,34l0,416 q0,20 -14,34t-34,14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenc\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,512l-416,0 q-20,0 -34-14t-14-34l0-416 q0-20 14-34t 34-14t 34,14t 14,34l0,368 l 368,0 q 20,0 34,14t 14,34t-14,34t-34,14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpenb\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,512l-416,0 q-20,0 -34-14t-14-34l0-416 q0-20 14-34t 34-14t 34,14t 14,34l0,368 l 320,0 l0-368 q0-20 14-34t 34-14t 34,14t 14,34l0,416 q0,20 -14,34t-34,14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"pigpena\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,512l-416,0 q-20,0 -34-14t-14-34t 14-34t 34-14l 368,0 l0-368 q0-20 14-34t 34-14t 34,14t 14,34l0,416 q0,20 -14,34t-34,14z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF48B\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288.5,400l 213-217q 10.5-10.5 10.5-25.5t-10.5-25.5l-25.5-25.5q-10.5-10.5 -25.5-10.5t-25.5,10.5l-169,169l-169-169q-10.5-10.5 -25.5-10.5t-25.5,10.5l-25.5,25.5q-10.5,10.5 -10.5,25.5t 10.5,25.5l 214,217q 16,16 32,16t 32-16z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF48A\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 288.5,112l 213,217q 10.5,10.5 10.5,25.5t-10.5,25.5l-25.5,25.5q-10.5,10.5 -25.5,10.5t-25.5-10.5l-169-169l-169,169q-10.5,10.5 -25.5,10.5t-25.5-10.5l-25.5-25.5q-10.5-10.5 -10.5-25.5t 10.5-25.5l 214-217q 16-16 32-16t 32,16z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF489\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 112,288.5l 217,213q 10.5,10.5 25.5,10.5t 25.5-10.5l 25.5-25.5q 10.5-10.5 10.5-25.5t-10.5-25.5l-169-169l 169-169q 10.5-10.5 10.5-25.5t-10.5-25.5l-25.5-25.5q-10.5-10.5 -25.5-10.5t-25.5,10.5l-217,214q-16,16 -16,32t 16,32z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF488\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 400,288.5l-217,213q-10.5,10.5 -25.5,10.5t-25.5-10.5l-25.5-25.5q-10.5-10.5 -10.5-25.5t 10.5-25.5l 169-169l-169-169q-10.5-10.5 -10.5-25.5t 10.5-25.5l 25.5-25.5q 10.5-10.5 25.5-10.5t 25.5,10.5l 217,214q 16,16 16,31.75t-16,32.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF487\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 432,224q-22,0 -42.5,6.5t-37,16l-33,19t-37,16t-42.5,6.5q-48.5,0 -80-40.5l0-215.5 q 9,11.5 18.25,18.5t 20.25,9.75t 18,3.25t 19.5,0.5l 4,0 q 22,0 42.5-6.5t 37-16l 33-19t 37-16t 42.5-6.5q 20,0 40.75,12t 39.25,36l0,208 q-11.5-11.5 -21.75-18.5t-20.75-9.75t-17.5-3.25t-20-0.5zM 192,480.25q0,13.25 -9.25,22.5\nt-22.75,9.25l-128,0 q-13,0 -22.5-9.25t-9.5-22.5t 9.5-22.75t 22.5-9.5l 32,0 l0-416 q0-13 9.25-22.5t 22.75-9.5t 22.75,9.25t 9.25,22.75l0,416 l 32,0 q 13.5,0 22.75,9.5t 9.25,22.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF486\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,288l-96,128l-96-128l 64,0 l0-128 l-192,0 l-48-64l 304,0 l0,192 l 64,0 zM 128,224l0,128 l 192,0 l 48,64l-304,0 l0-192 l-64,0 l 96-128l 96,128l-64,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF485\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,512l-448,0 q-13,0 -22.5-9.25t-9.5-22.75l0-448 q0-13.5 9.5-22.75t 22.5-9.25l 448,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,448 q0,13.5 -9.25,22.75t-22.75,9.25zM 480,32l-448,0 l0,448 l 448,0 l0-448 zM 80,64l 32,0 l 96,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-34,0 l 82.5,82.5l 82-82.5l-34.5,0 \nq-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 128,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 l0,96 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-34.5 l-82,82.5l 82,81.5l0-33.5 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,128 q0,6.5 -4.75,11.25\nt-11.25,4.75l-32,0 l-96,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 35.5,0 l-82.5-82.5l-82.5,82.5l 33.5,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75l-128,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 l0-96 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,35.5 \nl 83-83.5l-83-82.5l0,34.5 q0,6.5 -4.75,11.25t-11.25,4.75l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-128 q0-6.5 4.75-11.25t 11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF484\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25\nt 70,70t 96.25,25.75l0-384 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF483\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 315,160q-11.5,0 -22,6.25t-14,15.25l-23,42.5l-224,0 l-4,0 q-8,0 -11.5,0.25t-8.25,1.5t-6.5,4.75t-1.75,9.5l0,16 l0-128 l 24.5-42.5q 3.5-9 14-15.25t 22.5-6.25l 120,0 q 11.5,0 22,6.25t 14,15.25l 23,42.5l 240,0 q 13,0 22.5,9.25t 9.5,22.75l-197,0 zM 32,256l 256,0 l 16-48q 3.5-9 9.5-12.5t 17.5-3.5l 133,0 q 25.5,0 32,16l 16,48\nl0,128 q0,26.5 -18.75,45.25t-45.25,18.75l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-96 q0-13.5 9.25-22.75t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF482\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 503,344l-130.5,132q-1,1 -6.5,4q-5-3 -6-4l-8-7l 112-113q 16-16.5 16-32.5q0-15 -3-25.75t-5.75-14.5t-7.25-8.25l-224-226.5q-5-5 -15-10.5t-14.5-5.5l 31,0 q 14,0.5 22.5,9l 239,241.5q 9,9.5 9,30.75t-9,30.25zM 432,339.5l-128,129.5q-9.5,9.5 -24.25,9.5t-23.75-9.5l-247-250.5\nq-12.5-13 -7.5-31q-1.5-5 -1.5-9.5l0-113 q0-13.5 9.5-23t 22.5-9.5l 112,0 q 4.5,0 9,1.5q 18.5-5 31,7.5l 248,249.5q 9,9.5 9,24.5t-9,24zM 112,97q-20,0 -34,14.25t-14,34.5t 14,34.25t 34,14t 34-14t 14-34.25t-14-34.5t-34-14.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF481\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 55,502.5q-9.5,9.5 -22.75,9.5t-22.75-9.5t-9.5-22.75t 9.5-22.75l 61-61q-55.5-60 -70-139.5q 11.5-63 48.5-114.25t 91.5-80.5t 115.5-29.25q 72.5,0 136,42l 64.5-64.5q 9.5-9.5 23-9.5t 22.75,9.25t 9.25,22.75t-9.5,23zM 256,96.5q-65.5,0 -122.5,32l-5.5,0 l0,3 q-36.5,22 -61.75,54.25t-33.75,70.75\nq 14,62.5 70.5,107l 42.5-43q-17.5-29.5 -17.5-64q0-30 14-57l 28.5,14q-10.5,21 -10.5,43q0,21.5 9.5,40.5l 25-25q-2.5-8.5 -2.5-15.5q0-14.5 7-28.5l 26.5,13l 15-15.5l-13-26q 14-7 28.5-7q 7,0 16,2l 25-25q-19.5-9 -41-9t-42.5,10.5l-14.5-29q 27-13.5 57-13.5q 34.5,0 64.5,17.5l 30.5-30.5q-46-19 -95-19zM 383.5,270\nq-5,45 -37,76.75t-76.5,36.75zM 256,416q 81,0 144.75-45.5t 79.25-114q-7-30 -25-58l 26.5-26.5q 22.5,40 30.5,84.5q-11.5,63 -48.75,114.25t-91.75,80.25t-115.5,29q-36,0 -71.5-11l 53.5-53.5q 10,0.5 18,0.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF480\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 480,128q0-13 -9.5-22.5t-22.5-9.5l-384,0 q-13,0 -22.5,9.5t-9.5,22.5l0,320 q0,13.5 9.5,22.75t 22.5,9.25l 384,0 q 13,0 22.5-9.25t 9.5-22.75l0-320 z\nM 432,448l-256,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 256,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 432,320l-256,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 256,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 432,192l-256,0 q-6.5,0 -11.25-4.75\nt-4.75-11.25t 4.75-11.25t 11.25-4.75l 256,0 q 6.5,0 11.25,4.75t 4.75,11.25t-4.75,11.25t-11.25,4.75zM 112,448l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 112,320l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 \nq0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75zM 112,192l-32,0 q-6.5,0 -11.25-4.75t-4.75-11.25l0-32 q0-6.5 4.75-11.25t 11.25-4.75l 32,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,32 q0,6.5 -4.75,11.25t-11.25,4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF47F\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480.25,512q-13.25,0 -22.75-9.5t-9.5-22.5l0-194.5 l-193,221q-12,13.5 -31-6.5l0-215 l-193,221.5q-12.5,13.5 -31-6.5l0-488 q 18.5-20 31-6.5l 193,222l0-215.5 q 18.5-20 31-6.5l 193,221.5l0-195 q0-13.5 9.25-22.75t 22.75-9.25t 22.75,9.25t 9.25,22.75l0,448 q0,13 -9.25,22.5t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF47E\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 481,506.5l-193-221.5l0,215 q-19,20 -31,6.5l-193-221l0,194.5 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-448 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,195 l 193-221.5q 12.5-13.5 31,6.5l0,215.5 l 193-222q 12.5-13.5 31,6.5l0,488 q-18.5,20 -31,6.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF47D\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 224,0 l0,64 l-192,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,320 q0,13.5 9.25,22.75t 22.75,9.25l 320,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-151 l 64-53.5l0,236.5 q0,26.5 -18.75,45.25t-45.25,18.75zM 348,283.5q-6.5,6.5 -17.25,4\nt-10.75-9.5l0-86 q-112,0 -192,160l0-32 q0-58 15-102t 41.5-70t 60.5-39t 75-13l0-85 q0-7 10.75-9.75t 17.25,3.75l 157,123q 6.5,6.5 6.5,16t-6.5,16.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF47C\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45t 45.25-18.5l 288,0 l-64,63.5l-192,0 q-13.5,0 -22.75,9.5t-9.25,22.5l0,320 q0,13.5 9.5,22.75t 22.5,9.25l 320,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-192 l 64-64l0,288 q0,26.5 -18.75,45.25t-45.25,18.75zM 160,280l 72,72l-104,32zM 264,328\nl-80-79.5l 239.5-240q 8.5-8 20.25-8t 20.25,8l 39.5,40q 8,8 8.25,19.75t-8.25,20.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF47B\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 438,256l-117.5,0 l0-160 q0-13.5 -9.5-22.75t-22.5-9.25l-64.5,0 q-13,0 -22.5,9.25t-9.5,22.75l0,160 l-118,0 q-7.5,0 -9.25,3t 4.25,9.5\nl 171,172.5q 6.5,7 16.25,7t 16.25-7l 171-172.5q 6-6.5 4-9.5t-9.5-3z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF47A\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 272.5,71q-6.5-7 -16.25-7t-16.25,7l-171,172.5q-6,7 -4.25,9.75t 9.25,2.75l 118,0 l0,160 q0,13.5 9.5,22.75\nt 22.5,9.25l 64.5,0 q 13,0 22.5-9.25t 9.5-22.75l0-160 l 117.5,0 q 7.5,0 9.5-2.75t-4-9.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF479\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 411.5,170.5l-22-22q-5-4.5 -11.25-4.5t-11.25,4.5l-151,151l-71.5-71q-4.5-4.5 -11-4.5t-11,4.5l-22,22q-4.5,4.5 -4.5,11t 4.5,11.5\nl 76,75.5q 0.5,5.5 4,9l 22,22q 5.5,5.5 13.5,4q 8,1.5 13.5-4l 22-22q 3-3.5 4-9l 156-156q 4.5-4.5 4.5-11t-4.5-11z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF478\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 379.5,177q 4.5-5 4.5-11.5t-4.5-11l-22-22q-5-4.5 -11.25-4.5t-11.25,4.5l-79,79.5\nl-79.5-79.5q-4.5-4.5 -11-4.5t-11,4.5l-22,22q-4.5,4.5 -4.5,11t 4.5,11.5l 79,79l-79,79q-4.5,5 -4.5,11.5t 4.5,11l 22,22q 4.5,4.5 11,4.5t 11-4.5l 79.5-79.5l 79,79.5q 5,4.5 11.25,4.5t 11.25-4.5l 22-22q 4.5-4.5 4.5-11t-4.5-11.5l-79.5-79z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF477\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 384,240q0-6.5 -4.75-11.25t-11.25-4.75l-224,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 224,0 \nq 6.5,0 11.25-4.75t 4.75-11.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF476\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 384,240q0-6.5 -4.75-11.25t-11.25-4.75l-80,0 l0-80 q0-6.5 -4.75-11.25t-11.25-4.75l-32,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,80 \nl-80,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,32 q0,6.5 4.75,11.25t 11.25,4.75l 80,0 l0,80 q0,6.5 4.75,11.25t 11.25,4.75l 32,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-80 l 80,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-32 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF475\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 374.5,265.5q-9.5-9.5 -23-9.5t-23,9.5l-41,40.5l0-178 q0-13.5 -9.25-22.75t-22.5-9.25t-22.5,9.25t-9.25,22.75l0,178 l-41-40.5\nq-9.5-9.5 -23-9.5t-23,9.5t-9.5,23t 9.5,23l 95,95q 4,4 11.5,6.5q 0.5,0 1.5,0.5q 1,0 1.25,0.25t 1,0.5l 0.75,0.25q 1.5,0.5 3,0.5l 0.75,0 l 0.75,0 q 16,2 27-8.5l 95-95q 9.5-9.5 9.5-23t-9.5-23z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF474\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 374.5,200.5l-95-95q-11-10.5 -27-8.5l-0.75,0 l-0.75,0 q-1.5,0 -3,0.5l-0.75,0.25t-1.25,0.25l-1,0.5t-1.5,0.5q-7.5,2.5 -11.5,6.5\nl-95,95q-9.5,9.5 -9.5,23t 9.5,23t 23,9.5t 23-9.5l 41-40.5l0,178 q0,13.5 9.25,22.75t 22.5,9.25t 22.5-9.25t 9.25-22.75l0-178 l 41,40.5q 9.5,9.5 23,9.5t 23-9.5t 9.5-23t-9.5-23z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF473\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 415.5,253l0-1 l0-1 q0-1.5 -0.5-2.5q0-0.5 -0.25-1.25t-0.5-1t-0.5-1.25t-0.25-1.5q-2.5-7 -6.5-11l-95.5-95.5q-9.5-9.5 -23-9.5t-23,9.5t-9.5,23\nt 9.5,23l 41,41l-178.5,0 q-13.5,0 -22.75,9.5t-9.25,22.5t 9.25,22.5t 22.75,9.5l 178.5,0 l-41,41q-9.5,9.5 -9.5,23t 9.5,23t 23,9.5t 23-9.5l 95.5-95.5q 10.5-10.5 8.5-26.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF472\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 384,224l-178.5,0 l 41-41q 9.5-9.5 9.5-23t-9.5-23t-23-9.5t-23,9.5l-95.5,95.5q-4,4 -6.5,11q0,0.5 -1,3l-0.25,0.75\nt-0.25,1.25q0,1 -0.5,2.5l0,1 l0,1 q-2,16 8.5,26.5l 95.5,95.5q 9.5,9.5 23,9.5t 23-9.5t 9.5-23t-9.5-23l-41-41l 178.5,0 q 13,0 22.5-9.5t 9.5-22.5t-9.25-22.5t-22.75-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF471\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-69.5,0 -128.5-34.25t-93.25-93.25t-34.25-128.5t 34.25-128.5t 93.25-93.25t 128.5-34.25t 128.5,34.25t 93.25,93.25t 34.25,128.5t-34.25,128.5t-93.25,93.25t-128.5,34.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25t 70,70t 96.25,25.75t 96.25-25.75t 70-70\nt 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 255,329.5q-2.5,9 -7.5,14q-10,10 -24.5,8q-14,1 -23-8q-5-5 -7-13.5l-57-57q-8.5-8.5 -8.5-20.5t 8.5-20.5t 20.5-8.5t 20.5,8.5l 46.5,46.5l 111-110.5q 8.5-8.5 20.5-8.5t 20.5,8.5t 8.5,20.5t-8.5,20.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"uniF470\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,64q-52,0 -96.25,25.75t-70,70t-25.75,96.25t 25.75,96.25\nt 70,70t 96.25,25.75t 96.25-25.75t 70-70t 25.75-96.25t-25.75-96.25t-70-70t-96.25-25.75zM 343.5,343.5q-8.5,8.5 -20.5,8.5t-20.5-8.5l-47-47l-46.5,47q-8.5,8.5 -20.5,8.5t-20.5-8.5t-8.5-20.5t 8.5-20.5l 46.5-47l-46.5-46.5q-8.5-8.5 -8.5-20.5t 8.5-20.5t 20.5-8.5t 20.5,8.5l 46.5,47l 47-47q 8.5-8.5 20.5-8.5t 20.5,8.5t 8.5,20.5\nt-8.5,20.5l-47,46.5l 47,47q 8.5,8.5 8.5,20.5t-8.5,20.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"\" data-tags=\"wallet\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,480l-288,0 q-26.5,0 -45.25-18.75t-18.75-45.25l-32,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-256 q0-26.5 18.75-45t 45.25-18.5l 384,0 q 26.5,0 45.25,18.5t 18.75,45l0,320 q0,26.5 -18.75,45.25t-45.25,18.75zM 208,352q 48,0 48-48t-48-48t-48,48t 48,48zM 432,96l-323.5,0 q-18.5,0 -31.5,12.5t-13,30.5l0,170.5 \nq0,14.5 9,25.75t 23,14.75l0-158 q0-26.5 18.75-45.25t 45.25-18.75l 272,0 q 6.5,0 11.25-4.5t 4.75-11.25t-4.75-11.5t-11.25-4.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"✓\" data-tags=\"checkmark\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 503,162.5l-309.5,309q-9,9 -26.5,8.5q-16-0.5 -24.5-8.5l-133.5-133.5q-9-9 -9-22t 9-22l 44.5-44.5q 9-9 22-9t 22,9l 70.5,70.5l 246.5-246q 9-9 22-9t 22,9l 44.5,44q 9,9.5 9,22.25t-9,22.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"♦\" data-tags=\"diamond\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,32l 64,128l-128,0 zM 288,32l 128,0 l-64,128zM 192,160l 64-128l 64,128l-128,0 zM 96,32l 128,0 l-64,128zM0,160l 64-128l 64,128l-128,0 zM 224,480l-224-288l 128,0 zM 352,192l-96,288l-96-288l 192,0 zM 512,192l-224,288l 96-288l 128,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"☼\" data-tags=\"compass\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,64q-52,0 -96.25,25.5t-70,69.75t-25.75,96.5t 25.75,96.5t 70,70\nt 96.25,25.75t 96.25-25.75t 70-70t 25.75-96.5t-25.75-96.5t-70-69.75t-96.25-25.5zM 256,288q-17.5,0 -27-15l-117-65l 144,16q 17.5,0 27,15l 117,65z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"☺\" data-tags=\"smile\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.5t 20.25-99.5t 54.5-81.75t 81.75-54.5t 99.5-20.25t 99.5,20.25t 81.75,54.5t 54.5,81.75t 20.25,99.5t-20.25,99.5t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 144,128q-20,0 -34,18.75t-14,45.25t 14,45.25t 34,18.75t 34-18.75t 14-45.25\nt-14-45.25t-34-18.75zM 368,128q-20,0 -34,18.75t-14,45.25t 14,45.25t 34,18.75t 34-18.75t 14-45.25t-14-45.25t-34-18.75zM 400,320l-288,0 q-6.5,0 -11.25,4.75t-4.75,11.25q 20,56.5 58.75,84.25t 100.75,27.75t 101.25-27.75t 59.25-84.25q0-6.5 -4.75-11.25t-11.25-4.75zM 255.5,416q-83,0 -111.5-57\nq0-3 2.75-5t 6.75-2l 205,0 q 4,0 6.75,2t 2.75,5q-28.5,57 -112.5,57z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"☯\" data-tags=\"yinyang\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 256,512q-52,0 -99.5-20.25t-81.75-54.5t-54.5-81.75t-20.25-99.75t 20.25-99.5t 54.5-81.5t 81.75-54.75t 99.5-20.5t 99.5,20.5t 81.75,54.75t 54.5,81.5t 20.25,99.5t-20.25,99.75t-54.5,81.75t-81.75,54.5t-99.5,20.25zM 256,128q-13,0 -22.5,9.25t-9.5,22.5t 9.25,22.75t 22.75,9.5t 22.75-9.5\nt 9.25-22.75t-9.5-22.5t-22.5-9.25zM 256,256q-40,0 -68-28.25t-28-68t 28-67.75t 68-28q-52,0 -96.25,25.5t-70,69.75t-25.75,96.5t 25.75,96.5t 70,70t 96.25,25.75q 40,0 68-28.25t 28-68t-28-67.75t-68-28zM 256.25,384q-13.25,0 -22.75-9.5t-9.5-22.75t 9.5-22.5t 22.75-9.25t 22.5,9.25\nt 9.25,22.5t-9.25,22.75t-22.5,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"△\" data-tags=\"triangle\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 496,512l-16,0 l0-16 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16 l-32,0 l0-48 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,48 l-32,0 l0-16 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16 l-32,0 l0-48 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,48 l-32,0 l0-16 \nq0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16 l-32,0 l0-48 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,48 l-32,0 l0-16 q0-6.5 -4.75-11.25t-11.25-4.75t-11.25,4.75t-4.75,11.25l0,16 l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25l 496-496q 6.5,0 11.25,4.75t 4.75,11.25l0,480 q0,6.5 -4.75,11.25\nt-11.25,4.75zM 416,240q0-6.5 -4.75-11.25t-11.25-4.75l-176,176q0,6.5 4.75,11.25t 11.25,4.75l 160,0 q 6.5,0 11.25-4.75t 4.75-11.25l0-160 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"▭\" data-tags=\"rectangle\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M0,512l0-512 l 512,0 l0,512 l-512,0 zM 480,32l-448,0 l0,448 l 448,0 l0-448 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"⑁\" data-tags=\"chair\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 464,480q-20,0 -34-14t-14-34l0-160 q0-21 22.5-50.5t 41.5-29.5q 9.5,0 16.25,8.5t 9.75,22t 4.5,25.75t 1.5,23.75l0,160 q0,20 -14,34t-34,14zM 352,256l-192,0 q-13.5,0 -22.75-9.5t-9.25-22.5l-32-128q0-13.5 9.25-22.75t 22.75-9.25l 256,0 q 13,0 22.5,9.5t 9.5,22.5l-32,128q0,13 -9.5,22.5t-22.5,9.5zM 96,432\nq0,20 -14,34t-34,14t-34-14t-14-34l0-160 q0-11.5 1.25-23.75t 4.5-25.75t 10-22t 16.25-8.5q 19,0 41.5,29.5t 22.5,50.5l0,160 zM 160,288l 192,0 q 13,0 22.5,9.25t 9.5,22.5t-9.5,22.75t-22.5,9.5l-192,0 q-13.5,0 -22.75-9.5t-9.25-22.75t 9.25-22.5t 22.75-9.25zM 160,384l 192,0 q 13,0 22.5,9.25t 9.5,22.75l0,32 \nq0,13 -9.5,22.5t-22.5,9.5l-192,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-32 q0-13.5 9.25-22.75t 22.75-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"␇\" data-tags=\"bell\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,480l-169,0 q-8.5,14.5 -23,23.25t-32,8.75t-32-8.75t-23-23.25l-169,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-32 q 26.5,0 45.25-37.5t 18.75-90.5l0-64 q0-71 45.75-124.25t 114.25-64.75l0-3 q0-13.5 9.5-22.75t 22.5-9.25t 22.5,9.25t 9.5,22.75l0,3 q 68.5,11.5 114.25,64.75t 45.75,124.25l0,64 q0,53 18.75,90.5\nt 45.25,37.5l0,32 q0,13 -9.25,22.5t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"⋔\" data-tags=\"fork\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 495.25,495.25q-12.75,12.75 -29.25,16t-35.25-4.75t-36.25-27l-145-170q-32,15 -68.25,8.75t-62.75-32.75l-110.5-111q-8-7.5 -8-18.75t 8-19.25t 19.25-8t 18.75,8l 117,117q 19-4.5 36.5-15l-127.5-127.5q-8-8 -8-19.25t 8-19.25t 19-8t 19,8l 128,127.5q 10.5-17 15-36l-117-117\nq-8-8 -8-19.25t 7.75-19t 19-7.75t 19.25,8l 111.5,110q 26,26.5 32.25,63t-8.75,68.5l 170,144q 19,17 27.25,36t 5,35.5t-16,29.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"⊷\" data-tags=\"image\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M0,512l0-512.5 l 512,0 l0,512.5 l-512,0 zM 480,31.5l-448,0 l0,384.5 l 448,0 l0-384.5 zM 128,63.5q 26.5,0 45.25,18.75t 18.75,45.25t-18.75,45.25t-45.25,18.75t-45.25-18.5t-18.75-45l0-0.5 q0-26.5 18.75-45.25t 45.25-18.75zM 183.5,264.5l 119,119.5l-238.5,0 l0-46.5 l 73-73q 9-9 23.25-9t 23.25,9zM 345,168.5q 9-9.5 23.25-9.5t 23.25,9.5\nl 56.5,56.5l0,159 l-102,0 q0-0.5 -0.75-1.75t-1.25-2.25l-105.5-105z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"∩\" data-tags=\"intersection\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,192l-192,0 l0,32 l 128,0 l 0.25,0 l 0.75,0 q 17,0.5 21.5,5l 68.5,47q 5,5 5,12t-5,12l-68.5,47q-5,5 -22.5,5l-128,0 l0,128 q0,13 -9.25,22.5t-22.75,9.5t-22.75-9.5t-9.25-22.5l0-128 l-192,0 q-13,0 -22.5-9.5t-9.5-22.5l0-64 q0-13 9.5-22.5t 22.5-9.5l 192,0 l0-32 l-128,0 q-17.5,0 -22.5-5l-68.5-47q-5-5 -5-12\nt 5-12l 68.5-47q 4.5-5 21.5-5l 0.75,0 l 0.25,0 l 128,0 l0-32 q0-13 9.25-22.5t 22.75-9.5t 22.75,9.5t 9.25,22.5l0,32 l 192,0 q 13,0 22.5,9.25t 9.5,22.75l0,64 q0,13.5 -9.5,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"∞\" data-tags=\"infinity\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,384q-48.5,0 -128-76.5q-79.5,76.5 -128,76.5q-53,0 -90.5-37.5t-37.5-90.5t 37.5-90.5t 90.5-37.5q 49,0 128,76.5q 79.5-76.5 128-76.5q 53,0 90.5,37.5t 37.5,90.5t-37.5,90.5t-90.5,37.5zM 128,192q-28.5,0 -46.25,18.5t-17.75,45.5t 17.75,45.5t 46.25,18.5q 11,0 23.25-6.5t 22-16t 17.75-19t 12.5-16l 4.5-6.5\nq-1.5-2.5 -4.5-6.75t-12.25-15.5t-18.25-19.5t-21.5-15.25t-23.5-7zM 384,192q-11,0 -23.25,6.5t-22,16t-17.75,19t-12.5,16l-4.5,6.5q 1.5,2.5 4.5,7t 12.25,15.5t 18.25,19.25t 21.5,15.25t 23.5,7q 28.5,0 46.25-18.5t 17.75-45.5t-17.75-45.5t-46.25-18.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"−\" data-tags=\"minus\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 512,224l0,64 q0,13.5 -9.5,22.75t-22.5,9.25l-448,0 q-13,0 -22.5-9.25t-9.5-22.75l0-64 q0-13 9.25-22.5t 22.75-9.5l 448,0 q 13,0 22.5,9.5t 9.5,22.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"∇\" data-tags=\"gradient\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448,512l-384,0 q-26.5,0 -45.25-18.75t-18.75-45.25l0-384 q0-26.5 18.75-45.25t 45.25-18.75l 384,0 q 26.5,0 45.25,18.75t 18.75,45.25l0,384 q0,26.5 -18.75,45.25t-45.25,18.75zM 352,384l-32,0 l0-32 l 32,0 l0-32 l-32,0 l0-32 l 32,0 l0-32 l-32,0 l0-32 l 32,0 l0-32 l-32,0 l0-32 l 32,0 l0-32 l-32,0 l0-32 l 32,0 l0-32 l-32,0 l0,32 l-32,0 l0-32 l-32,0 l0,32 l-32,0 l0-32 l-144,0 \nq-6.5,0 -11.25,4.75t-4.75,11.25l0,352 q0,6.5 4.75,11.25t 11.25,4.75l 112,0 l0-32 l 32,0 l0,32 l 32,0 l0-32 l 32,0 l0,32 l 32,0 l0-32 l 32,0 l0-32 zM 288,416l0-32 l 32,0 l0,32 l-32,0 zM 288,320l 32,0 l0,32 l-32,0 l0-32 zM 288,256l 32,0 l0,32 l-32,0 l0-32 zM 288,192l 32,0 l0,32 l-32,0 l0-32 zM 288,128l 32,0 l0,32 l-32,0 l0-32 zM 256,128l0-32 l 32,0 l0,32 l-32,0 zM 192,128l0-32 l 32,0 \nl0,32 l-32,0 zM 256,384l0,32 l-32,0 l0-32 l 32,0 zM 256,352l 32,0 l0,32 l-32,0 l0-32 zM 256,288l 32,0 l0,32 l-32,0 l0-32 zM 256,224l 32,0 l0,32 l-32,0 l0-32 zM 256,160l 32,0 l0,32 l-32,0 l0-32 zM 224,160l0-32 l 32,0 l0,32 l-32,0 zM 256,224l-32,0 l0-32 l 32,0 l0,32 zM 256,288l-32,0 l0-32 l 32,0 l0,32 zM 256,352l-32,0 l0-32 l 32,0 l0,32 zM 192,384l0-32 l 32,0 l0,32 l-32,0 zM 192,320l0-32 l 32,0 \nl0,32 l-32,0 zM 192,256l0-32 l 32,0 l0,32 l-32,0 zM 192,192l0-32 l 32,0 l0,32 l-32,0 z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"⇪\" data-tags=\"capslock\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 466.5,256.5l-83,0 l0,95.5 q0,13.5 -9.25,22.75t-22.25,9.25l-192,0 q-13,0 -22.5-9.25t-9.5-22.75l0-95.5 l-82,0 q-6,0 -10-6.5t-3.5-15.5t 6.5-15l 194.5-210q 9-9.5 22.5-9.5t 23,9.5l 194,210q 6,6 6.75,15t-3.25,15.5t-10,6.5zM 160,415.5l 192,0 q 13,0 22.25,9.5t 9.25,22.5l0,32.5 q0,13 -9.25,22.5t-22.25,9.5l-192,0 \nq-13,0 -22.5-9.25t-9.5-22.75l0-32.5 q0-13 9.5-22.5t 22.5-9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"↸\" data-tags=\"home\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 502.25,277.75q-9.75,9.75 -23.5,9.75t-23.25-9.5l-7.5-7.5l0,209.5 q0,13 -9.25,22.5t-22.75,9.5l-96,0 l0-144 q0-6.5 -4.75-11.25t-11.25-4.75l-96,0 q-6.5,0 -11.25,4.75t-4.75,11.25l0,144 l-96,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-209.5 l-7.5,7.5q-9.5,9.5 -23.25,9.5t-23.5-9.75t-9.75-23.5t 9.5-23.25l 222-222\nq 10-10 24.5-9.5q 14.5-0.5 24.5,9.5l 222,222q 9.5,9.5 9.5,23.25t-9.75,23.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"€\" data-tags=\"euro\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 448.25,192q-13.25,0 -22.75-9.25t-9.5-22.75q-10.5-41.5 -47-68.75t-81-27.25q-44,0 -78.5,27t-45.5,69l 92,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-96,0 l0,64 l 96,0 q 13.5,0 22.75,9.5t 9.25,22.75t-9.25,22.5t-22.75,9.25l-92,0 q 11,42 45.5,69t 78.5,27q 44.5,0 81-27.25\nt 47-68.75q0-13 9.5-22.5t 22.75-9.5t 22.5,9.5t 9.25,22.5q0,11.5 -7.5,20.5q-17.5,61 -68.5,100.25t-116,39.25q-71,0 -124.25-45.75t-64.75-114.25l-35,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 32,0 l0-64 l-32,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 35,0 q 11.5-68.5 64.75-114.25\nt 124.25-45.75q 65,0 116,39.25t 68.5,100.25q 7.5,9 7.5,20.5q0,13.5 -9.25,22.75t-22.5,9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"⁀\" data-tags=\"tie\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 351,30.5l-62,71.5l 60.5,285q 3,8 4,11.25t 0.25,7.25t-4.25,7.5l-78,93.5q-5,5.5 -12.75,5.5t-13.25-5.5l-77.5-93.5q-5-6.5 -4.75-10.75t 4.75-15.25l 60.5-285.5l-61.5-71q-6.5-6 -3.25-18.25t 14.25-12.25l 162.5,0 q 11,0 13.75,12.25t-3.25,18.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"†\" data-tags=\"dagger\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 507,481.5l-25.5,25.5q-5,5 -12.25,5t-12.75-5l-164-164.5l-38.5,39q-3,2.5 -7,2.5t-6.5-2.5l-14-13.5q-2.5-3 -2.5-7t 2.5-7l 14.5-14.5l-113-99.5q-37.5-37.5 -80.5-114.75t-47.5-125.25q 5.5,6.5 13.5,14.5t 18.75,18.25t 15.75,15.25q 36.5,36.5 77,61.75t 49.5,16.25l 0.25-0.25t 0.25-0.75l 140.5,140.5l 6.5-7q 3-2.5 7-2.5\nt 7,2.5l 13.5,14q 3,2.5 3,6.5t-3,7l-6.5,6.5l 164,164q 5,5.5 5,12.75t-5,12.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"˚\" data-tags=\"ring\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,288q0,45.5 -17.75,87t-47.75,71.5t-71.5,47.75t-87,17.75t-87-17.75t-71.5-47.75t-47.75-71.5t-17.75-87q0-81.5 51.75-143.25t 130.25-76.75l-54-36l 64-32l 64,0 l 64,32l-54,36q 78.5,15 130.25,76.75t 51.75,143.25zM 256,128q-43.5,0 -80.25,21.5t-58.25,58.25t-21.5,80.25\nt 21.5,80.25t 58.25,58.25t 80.25,21.5t 80.25-21.5t 58.25-58.25t 21.5-80.25t-21.5-80.25t-58.25-58.25t-80.25-21.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"ǀ\" data-tags=\"pipe\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 384,512q-25.5,0 -50-10.5t-47.25-30.25t-40.5-39.75t-38.25-47.5q-8.5-11.5 -21-24.75t-32.5-30.75t-44-29t-46.5-11.5l-48,0 q-6.5,0 -11.25-4.75t-4.75-11.25t 4.75-11.25t 11.25-4.75l 48,0 q 18.5,0 27.75,0.25t 26.25,1.25t 27.25,3.5t 25,7t 25.5,11.25t 22.5,17t 21.75,23.75q 12.5,17 39.75,40.5t 40.25,23.5q 32,0 32-32l0-64 \nq0-13 9.25-22.5t 22.75-9.5l 96,0 q 13,0 22.5,9.5t 9.5,22.5l0,96 q0,53 -37.5,90.5t-90.5,37.5zM 448,128q0,18 4.5,41.5q 0.5,2.5 9,20.25t 12.5,34.25l-29,0 q-4.5-21 -13-32q-11.5-12 -13.75-23.75t-2.25-40.25q0-40 18.75-68t 45.25-28q-19,7.5 -25.5,32t-6.5,64zM 352,102.5q0,19 4.5,44.5q 25,28 27,77l-31.5,0 \nq0-32 -4.5-38q-27.5-31 -27.5-83.5q0-42.5 18.75-72.5t 45.25-30q 7.5,0 16,3.5q-21,9 -34.5,36.25t-13.5,62.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"÷\" data-tags=\"divide\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,320l-448,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 448,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13 -9.25,22.5t-22.75,9.5zM 288,128l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.5-22.75t 22.5-9.25l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13 -9.25,22.5t-22.75,9.5z\nM 224,384l 64,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,64 q0,13.5 -9.5,22.75t-22.5,9.25l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.5l0-64 q0-13.5 9.5-22.75t 22.5-9.25z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"×\" data-tags=\"multiply\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 350.5,256l 151.5,152q 10,10 10,23.75t-10,23.25l-47,47q-9.5,10 -23.5,10t-23.5-10l-152-151.5l-152,151.5q-9.5,10 -23.5,10t-23.5-10l-47-47q-10-9.5 -10-23.25t 10-23.75l 151.5-152l-151.5-151.5q-10-10 -10-23.75t 10-23.75l 47-47q 9.5-9.5 23.5-9.5t 23.5,9.5l 152,152l 152-152q 9.5-9.5 23.5-9.5t 23.5,9.5\nl 47,47q 10,10 10,23.75t-10,23.75z\" transform=\"scale(0.03125 0.03125)\"></path></svg>","<svg width=\"512\" height=\"512\" viewBox=\"0 0 512 512\" data-du=\"¶\" data-tags=\"pilcrow\" style=\"margin-left: 8px; margin-top: 8px;\"><path d=\"M 480,64l-32,0 l0,416 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-416 l-128,0 l0,416 q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-160 l-32,0 q-43.5,0 -80.25-21.5t-58.25-58.25t-21.5-80.25t 21.5-80.25t 58.25-58.25t 80.25-21.5l 320,0 q 13,0 22.5,9.25t 9.5,22.5t-9.25,22.75t-22.75,9.5z\" transform=\"scale(0.03125 0.03125)\"></path></svg>"]}],"IDs":[219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156,2157,2158,2159,2160,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2172,2173,2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2200,2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2473,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500,2501,2502,2503,2504,2505,2506,2507,2508,2509,2510,2511,2512,2513,2514,2515,2516,2517,2518,2519,2520,2521,2522,2523,2524,2525,2526,2527,2528,2529,2530,2531,2532,2533,2534,2535,2536,2537,2538,2539,2540,2541,2542,2543,2544,2545,2546,2547,2548,2549,2550,2551,2552,2553,2554,2555,2556,2557,2558,2559,2560,2561,2562,2563,2564,2565,2566,2567,2568,2569,2570,2571,2572,2573,2574,2575,2576,2577,2578,2579,2580,2581,2582,2583,2584,2585,2586,2587,2588,2589,2590,2591,2592,2593,2594,2595,2596,2597,2598,2599,2600,2601,2602,2603,2604,2605,2606,2607,2608,2609,2610,2611,2612,2613,2614,2615,2616,2617,2618,2619,2620,2621,2622,2623,2624,2625,2626,2627,2628,2629,2630,2631,2632,2633,2634,2635,2636,2637,2638,2639,2640,2641,2642,2643,2644,2645,2646,2647,2648,2649,2650,2651,2652,2653,2654,2655,2656,2657,2658,2659,2660,2661,2662,2663,2664,2665,2666,2667,2668,2669,2670,2671,2672,2673,2674,2675,2676,2677,2678,2679,2680,2681,2682,2683,2684,2685,2686,2687,2688,2689,2690,2691,2692,2693,2694,2695,2696,2697,2698,2699,2700,2701,2702,2703,2704,2705,2706,2707,2708,2709,2710,2711,2712,2713,2714,2715,2716,2717,2718,2719,2720,2721,2722,2723,2724,2725,2726,2727,2728,2729,2730,2731,2732,2733,2734,2735,2736,2737,2738,2739,2740,2741,2742,2743,2744,2745,2746,2747,2748,2749,2750,2751,2752,2753,2754,2755,2756,2757,2758,2759,2760,2761,2762,2763,2764,2765,2766,2767,2768,2769,2770,2771,2772,2773,2774,2775,2776,2777,2778,2779,2780,2781,2782,2783,2784,2785,2786,2787,2788,2789,2790,2791,2792,2793,2794,2795,2796,2797,2798,2799,2800,2801,2802,2803,2804,2805,2806,2807,2808,2809,2810,2811,2812,2813,2814,2815,2816,2817,2818,2819,2820,2821,2822,2823,2824,2825,2826,2827,2828,2829,2830,2831,2832,2833,2834,2835,2836,2837,2838,2839,2840,2841,2842,2843,2844,2845,2846,2847,2848,2849,2850,2851,2852,2853,2854,2855,2856,2857,2858,2859,2860,2861,2862,2863,2864,2865,2866,2867,2868,2869,2870,2871,2872,2873,2874,2875,2876,2877,2878,2879,2880,2881,2882,2883,2884,2885],"user":{"email":"bradvin@gmail.com","newsletter":true,"secret":"3d0d429f221caf894108d146c0010f1a4b4904abf43f75d76f59d6fc480fc322c1515c3628389d9dae32700ecfa09e1f499597ad3f957314a2fd306e9f39fc1c","uid":10966}},"inputCache":"{\"baseline\":\"6.25\",\"emSize\":\"512\",\"prev_size\":\"16\",\"hdr-imported\":\"checked\",\"iconAlignment\":\"0\",\"showGrid\":\"checked\",\"fi_name\":\"footable\",\"fi_id\":\"\",\"fi_link\":\"\",\"fi_author\":\"\",\"fi_authorLink\":\"\",\"fi_license\":\"\",\"fi_licenseLink\":\"\",\"include_metadata\":false,\"base64\":true,\"img-height\":\"32\",\"img-color\":\"000000\",\"include_png\":\"checked\",\"fi_class\":\"icon-\",\"showCloudLinks\":false,\"sprites-cols\":\"16\",\"ligatures\":false,\"include_sprites\":false,\"designGrid\":\"\",\"whitespace\":\"50\",\"glyph_widths\":\"100\",\"manualMetrics\":false,\"hdr-fontawesome\":true,\"hdr-icomoon-ultimate\":true,\"hdr-whhglyphs\":true}"} \ No newline at end of file diff --git a/media/footable/icomoon/index.html b/media/footable/icomoon/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/footable/icomoon/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/footable/index.html b/media/footable/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/footable/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/footable/js/.jshintrc b/media/footable/js/.jshintrc new file mode 100644 index 00000000..6d98f863 --- /dev/null +++ b/media/footable/js/.jshintrc @@ -0,0 +1,29 @@ +{ + "curly": false, + "eqeqeq": false, + "forin": false, + "indent": false, + "newcap": false, + "plusplus": false, + "quotmark": false, + "undef": false, + "unused": false, + "strict": false, + "trailing": false, + "maxparams": false, + "maxdepth": false, + "maxstatements": false, + "maxcomplexity": false, + "maxlen": false, + + "eqnull": true, + "loopfunc": true, + "smarttabs": true, + "sub": true, + + "browser": true, + "jquery": true, + "node": true, + + "white": false +} \ No newline at end of file diff --git a/media/footable/js/footable.bookmarkable.js b/media/footable/js/footable.bookmarkable.js new file mode 100644 index 00000000..0765cbf8 --- /dev/null +++ b/media/footable/js/footable.bookmarkable.js @@ -0,0 +1,170 @@ +(function ($, w, undefined) { + if (w.footable === undefined || w.foobox === null) + throw new Error('Please check and make sure footable.js is included in the page and is loaded prior to this script.'); + + var defaults = { + bookmarkable: { + enabled: false + } + }; + + // see http://www.onlineaspect.com/2009/06/10/reading-get-variables-with-javascript/ + function $_HASH(q,s) { + s = s ? s : location.hash; + var re = new RegExp('&'+q+'(?:=([^&]*))?(?=&|$)','i'); + return (s=s.replace(/^\#/,'&').match(re)) ? (typeof s[1] == 'undefined' ? '' : decodeURIComponent(s[1])) : undefined; + } + + function addFootableStatusData(ft, event) { + var tbl_total = $(ft.table).find("tbody").find("tr:not(.footable-row-detail, .footable-filtered)").length; + $(ft.table).data("status_num_total", tbl_total); + + var tbl_num = $(ft.table).find("tbody").find("tr:not(.footable-row-detail)").filter(":visible").length; + $(ft.table).data("status_num_shown", tbl_num); + + var sort_colnum = $(ft.table).data("sorted"); + var sort_col = $(ft.table).find("th")[sort_colnum]; + var descending = $(sort_col).hasClass("footable-sorted-desc"); + $(ft.table).data("status_descending", descending); + + if (ft.pageInfo) { + var pagenum = ft.pageInfo.currentPage; + $(ft.table).data("status_pagenum", pagenum); + } + + var filter_val = ''; + var filter_field_id = $(ft.table).data('filter'); + if ( $(filter_field_id).length ) { + filter_val = $(filter_field_id).val(); + } + + $(ft.table).data("status_filter_val", filter_val); + + // manage expanded or collapsed rows: + var row, rowlist, expanded_rows; + if (event.type == 'footable_row_expanded') { + row = event.row; + if (row) { + rowlist = $(ft.table).data('expanded_rows'); + expanded_rows = []; + if (rowlist) { + expanded_rows = rowlist.split(','); + } + expanded_rows.push(row.rowIndex); + $(ft.table).data('expanded_rows', expanded_rows.join(',')); + } + } + if (event.type == 'footable_row_collapsed') { + row = event.row; + if (row) { + rowlist = $(ft.table).data('expanded_rows'); + expanded_rows = []; + if (rowlist) { + expanded_rows = rowlist.split(','); + } + var new_expanded_rows = []; + for (var i in expanded_rows) { + if (expanded_rows[i] == row.rowIndex) { + new_expanded_rows = expanded_rows.splice(i, 1); + break; + } + } + $(ft.table).data('expanded_rows', new_expanded_rows.join(',')); + } + } + } + + function Bookmarkable() { + var p = this; + p.name = 'Footable LucidBookmarkable'; + p.init = function(ft) { + if (ft.options.bookmarkable.enabled) { + + $(ft.table).bind({ + 'footable_initialized': function(){ + var tbl_id = ft.table.id; + var q_filter = $_HASH(tbl_id + '_f'); + var q_page_num = $_HASH(tbl_id + '_p'); + var q_sorted = $_HASH(tbl_id + '_s'); + var q_desc = $_HASH(tbl_id + '_d'); + var q_expanded = $_HASH(tbl_id + '_e'); + + if (q_filter) { + var filter_field_id = $(ft.table).data('filter'); + $(filter_field_id).val(q_filter); + $(ft.table).trigger('footable_filter', {filter: q_filter}); + } + if (q_page_num) { + $(ft.table).data('currentPage', q_page_num); + // we'll check for sort before triggering pagination, since + // sorting triggers pagination. + } + if (typeof q_sorted !== 'undefined') { + var footableSort = $(ft.table).data('footable-sort'); + var ascending = true; + if (q_desc == 'true') { + ascending = false; + } + footableSort.doSort(q_sorted, ascending); + } + else { + $(ft.table).trigger('footable_setup_paging'); + } + if (q_expanded) { + var expanded_rows = q_expanded.split(','); + for (var i in expanded_rows) { + var row = $(ft.table.rows[expanded_rows[i]]); + row.find('> td:first').trigger('footable_toggle_row'); + } + } + ft.lucid_bookmark_read = true; + }, + 'footable_page_filled footable_redrawn footable_filtered footable_sorted footable_row_expanded footable_row_collapsed': function(e) { + addFootableStatusData(ft, e); + + // update the URL hash + // lucid_bookmark_read guards against running this logic before + // the "first read" of the location bookmark hash. + if (ft.lucid_bookmark_read) { + var tbl_id = ft.table.id; + var filter = tbl_id + '_f'; + var page_num = tbl_id + '_p'; + var sorted = tbl_id + '_s'; + var descending = tbl_id + '_d'; + var expanded = tbl_id + '_e'; + + var hash = location.hash.replace(/^\#/, '&'); + var hashkeys = [filter, page_num, sorted, descending, expanded]; + // trim existing elements out of the hash. + for (var i in hashkeys) { + var re = new RegExp('&' + hashkeys[i]+'=([^&]*)', 'g'); + hash = hash.replace(re, ''); + } + + var foostate = {}; + foostate[filter] = $(ft.table).data('status_filter_val'); + foostate[page_num] = $(ft.table).data('status_pagenum'); + foostate[sorted] = $(ft.table).data('sorted'); + foostate[descending] = $(ft.table).data('status_descending'); + foostate[expanded] = $(ft.table).data('expanded_rows'); + + var pairs = []; + for (var elt in foostate) { + if (foostate[elt] !== undefined) { + pairs.push(elt + '=' + encodeURIComponent(foostate[elt])); + } + } + if (hash.length) { + pairs.push(hash); + } + location.hash = pairs.join('&'); + } + } + }); + } + }; + } + + w.footable.plugins.register(Bookmarkable, defaults); + +})(jQuery, window); diff --git a/media/footable/js/footable.filter.js b/media/footable/js/footable.filter.js new file mode 100644 index 00000000..718dd7f8 --- /dev/null +++ b/media/footable/js/footable.filter.js @@ -0,0 +1,143 @@ +(function ($, w, undefined) { + if (w.footable === undefined || w.footable === null) + throw new Error('Please check and make sure footable.js is included in the page and is loaded prior to this script.'); + + var defaults = { + filter: { + enabled: true, + input: '.footable-filter', + timeout: 300, + minimum: 2, + disableEnter: false, + filterFunction: function(index) { + var $t = $(this), + $table = $t.parents('table:first'), + filter = $table.data('current-filter').toUpperCase(), + text = $t.find('td').text(); + if (!$table.data('filter-text-only')) { + $t.find('td[data-value]').each(function () { + text += $(this).data('value'); + }); + } + return text.toUpperCase().indexOf(filter) >= 0; + } + } + }; + + function Filter() { + var p = this; + p.name = 'Footable Filter'; + p.init = function (ft) { + p.footable = ft; + if (ft.options.filter.enabled === true) { + if ($(ft.table).data('filter') === false) return; + ft.timers.register('filter'); + $(ft.table) + .unbind('.filtering') + .bind({ + 'footable_initialized.filtering': function (e) { + var $table = $(ft.table); + var data = { + 'input': $table.data('filter') || ft.options.filter.input, + 'timeout': $table.data('filter-timeout') || ft.options.filter.timeout, + 'minimum': $table.data('filter-minimum') || ft.options.filter.minimum, + 'disableEnter': $table.data('filter-disable-enter') || ft.options.filter.disableEnter + }; + if (data.disableEnter) { + $(data.input).keypress(function (event) { + if (window.event) + return (window.event.keyCode !== 13); + else + return (event.which !== 13); + }); + } + $table.bind('footable_clear_filter', function () { + $(data.input).val(''); + p.clearFilter(); + }); + $table.bind('footable_filter', function (event, args) { + p.filter(args.filter); + }); + $(data.input).keyup(function (eve) { + ft.timers.filter.stop(); + if (eve.which === 27) { + $(data.input).val(''); + } + ft.timers.filter.start(function () { + var val = $(data.input).val() || ''; + p.filter(val); + }, data.timeout); + }); + }, + 'footable_redrawn.filtering': function (e) { + var $table = $(ft.table), + filter = $table.data('filter-string'); + if (filter) { + p.filter(filter); + } + } + }) + //save the filter object onto the table so we can access it later + .data('footable-filter', p); + } + }; + + p.filter = function (filterString) { + var ft = p.footable, + $table = $(ft.table), + minimum = $table.data('filter-minimum') || ft.options.filter.minimum, + clear = !filterString; + + //raise a pre-filter event so that we can cancel the filtering if needed + var event = ft.raise('footable_filtering', { filter: filterString, clear: clear }); + if (event && event.result === false) return; + if (event.filter && event.filter.length < minimum) { + return; //if we do not have the minimum chars then do nothing + } + + if (event.clear) { + p.clearFilter(); + } else { + var filters = event.filter.split(' '); + + $table.find('> tbody > tr').hide().addClass('footable-filtered'); + var rows = $table.find('> tbody > tr:not(.footable-row-detail)'); + $.each(filters, function (i, f) { + if (f && f.length > 0) { + $table.data('current-filter', f); + rows = rows.filter(ft.options.filter.filterFunction); + } + }); + rows.each(function () { + p.showRow(this, ft); + $(this).removeClass('footable-filtered'); + }); + $table.data('filter-string', event.filter); + ft.raise('footable_filtered', { filter: event.filter, clear: false }); + } + }; + + p.clearFilter = function () { + var ft = p.footable, + $table = $(ft.table); + + $table.find('> tbody > tr:not(.footable-row-detail)').removeClass('footable-filtered').each(function () { + p.showRow(this, ft); + }); + $table.removeData('filter-string'); + ft.raise('footable_filtered', { clear: true }); + }; + + p.showRow = function (row, ft) { + var $row = $(row), $next = $row.next(), $table = $(ft.table); + if ($table.hasClass('breakpoint') && $row.hasClass('footable-detail-show') && $next.hasClass('footable-row-detail')) { + $row.add($next).show(); + ft.createOrUpdateDetailRow(row); + } + else $row.show(); + }; + } + + w.footable.plugins.register(Filter, defaults); + +})(jQuery, window); diff --git a/media/footable/js/footable.grid.js b/media/footable/js/footable.grid.js new file mode 100644 index 00000000..6f6d9602 --- /dev/null +++ b/media/footable/js/footable.grid.js @@ -0,0 +1,373 @@ +(function($, w, undefined) { + if (w.footable === undefined || w.foobox === null) throw new Error('Please check and make sure footable.js is included in the page and is loaded prior to this script.'); + var defaults = { + grid: { + enabled: true, + data: null, + template: null, //row html template, use for make a row. + cols: null, //column define + items: null, //data items + url: null, //get data from url + ajax: null, //paramater for $.ajax + activeClass: 'active', //add to row selected + multiSelect: false, //allow select multiple row + showIndex: false, //show row index + showCheckbox: false, //show checkbox for select + showEmptyInfo: false, //when that is not data in table, show a info to notify user + emptyInfo: '<p class="text-center text-warning">No Data</p>', + pagination: { + "page-size": 20, + "pagination-class": "pagination pagination-centered" + }, + indexFormatter: function(val, $td, index) { + return index + 1; + }, + checkboxFormatter: function(isTop) { + return '<input type="checkbox" class="' + (isTop ? 'checkAll' : 'check') + '">'; + }, + events: { + loaded: 'footable_grid_loaded', + created: 'footable_grid_created', + removed: 'footable_grid_removed', + updated: 'footable_grid_updated' + } + } + }; + + function makeTh(col) { + var $th = $('<th>' + col.title + '</th>'); + if ($.isPlainObject(col.data)) { + $th.data(col.data); + } + if ($.isPlainObject(col.style)) { + $th.css(col.style); + } + if (col.className) { + $th.addClass(col.className); + } + return $th; + } + + function initThead($table, options) { + var $thead = $table.find('thead'); + if ($thead.size() === 0) { + $thead = $('<thead>').appendTo($table); + } + var $row = $('<tr>').appendTo($thead); + for (var i = 0, len = options.cols.length; i < len; i++) { + $row.append(makeTh(options.cols[i])); + } + } + + function initTBody($table) { + var $tbody = $table.find('tbody'); + if ($tbody.size() === 0) { + $tbody = $('<tbody>').appendTo($table); + } + } + + function initPagination($table, cols, options) { + if (options) { + $table.attr("data-page-size", options['page-size']); + var $tfoot = $table.find('tfoot'); + if ($tfoot.size() === 0) { + $tfoot = $('<tfoot class="hide-if-no-paging"></tfoot>').appendTo($table); + } + $tfoot.append('<tr><td colspan=' + cols.length + '></td></tr>'); + var $pagination = $("<div>").appendTo($tfoot.find("tr:last-child td")); + $pagination.addClass(options['pagination-class']); + } + } + + function setToggleColumn(cols) { + var toggleColumn = cols[0]; + for (var i = 0, len = cols.length; i < len; i++) { + var col = cols[i]; + if (col.data && (col.data.toggle === true || col.data.toggle === "true")) { + return; + } + } + toggleColumn.data = $.extend(toggleColumn.data, { + toggle: true + }); + } + + function makeEmptyInfo($table, cols, emptyInfo) { + if ($table.find("tr.emptyInfo").size() === 0) { + $table.find('tbody').append('<tr class="emptyInfo"><td colspan="' + cols.length + '">' + emptyInfo + '</td></tr>'); + } + } + + function updateRowIndex($tbody, $newRow, detailClass, offset) { + //update rows index + $tbody.find('tr:not(.' + detailClass + ')').each(function() { + var $row = $(this), + index = $newRow.data('index'), + oldIndex = parseInt($row.data('index'), 0), + newIndex = oldIndex + offset; + if (oldIndex >= index && this !== $newRow.get(0)) { + $row.attr('data-index', newIndex).data('index', newIndex); + } + }); + } + + function Grid() { + var grid = this; + grid.name = 'Footable Grid'; + grid.init = function(ft) { + var toggleClass = ft.options.classes.toggle; + var detailClass = ft.options.classes.detail; + var options = ft.options.grid; + if (!options.cols) return; + grid.footable = ft; + var $table = $(ft.table); + $table.data('grid', grid); + if ($.isPlainObject(options.data)) { + $table.data(options.data); + } + grid._items = []; + setToggleColumn(options.cols); + if (options.showCheckbox) { + options.multiSelect = true; + options.cols.unshift({ + title: options.checkboxFormatter(true), + name: '', + data: { + "sort-ignore": true + }, + formatter: options.checkboxFormatter + }); + } + if (options.showIndex) { + options.cols.unshift({ + title: '#', + name: 'index', + data: { + "sort-ignore": true + }, + formatter: options.indexFormatter + }); + } + initThead($table, options); + initTBody($table); + initPagination($table, options.cols, options.pagination); + $table.off('.grid').on({ + 'footable_initialized.grid': function(e) { + if (options.url || options.ajax) { + $.ajax(options.ajax || { + url: options.url + }).then(function(resp) { + grid.newItem(resp); + ft.raise(options.events.loaded); + }, function(jqXHR) { + throw 'load data from ' + (options.url || options.ajax.url) + ' fail'; + }); + } else { + grid.newItem(options.items || []); + ft.raise(options.events.loaded); + } + }, + 'footable_sorted.grid footable_grid_created.grid footable_grid_removed.grid': function(event) { + if (options.showIndex && grid.getItem().length > 0) { + $table.find('tbody tr:not(.' + detailClass + ')').each(function(index) { + var $td = $(this).find('td:first'); + $td.html(options.indexFormatter(null, $td, index)); + }); + } + }, + 'footable_redrawn.grid footable_row_removed.grid': function(event) { + if (grid.getItem().length === 0 && options.showEmptyInfo) { + makeEmptyInfo($table, options.cols, options.emptyInfo); + } + } + }).on({ + 'click.grid': function(event) { + if ($(event.target).closest('td').find('>.' + toggleClass).size() > 0) { + return true; + } + var $tr = $(event.currentTarget); + if ($tr.hasClass(detailClass)) { + return true; + } + if (!options.multiSelect && !$tr.hasClass(options.activeClass)) { + $table.find('tbody tr.' + options.activeClass).removeClass(options.activeClass); + } + $tr.toggleClass(options.activeClass); + if (options.showCheckbox) { + $tr.find('input:checkbox.check').prop('checked', function(index, val) { + if (event.target === this) { + return val; + } + return !val; + }); + } + ft.toggleDetail($tr); + } + }, 'tbody tr').on('click.grid', 'thead input:checkbox.checkAll', function(event) { + var checked = !! event.currentTarget.checked; + if (checked) { + $table.find('tbody tr').addClass(options.activeClass); + } else { + $table.find('tbody tr').removeClass(options.activeClass); + } + $table.find('tbody input:checkbox.check').prop('checked', checked); + }); + }; + /** + * get selected rows index; + */ + grid.getSelected = function() { + var options = grid.footable.options.grid, + $selected = $(grid.footable.table).find('tbody>tr.' + options.activeClass); + return $selected.map(function() { + return $(this).data('index'); + }); + }; + /** + * get row's data by index + */ + grid.getItem = function(index) { + if (index !== undefined) { + if ($.isArray(index)) { + return $.map(index, function(item) { + return grid._items[item]; + }); + } + return grid._items[index]; + } + return grid._items; + }; + + function makeCell(col, value, index) { + var $td = $('<td>'); + if (col.formatter) { + $td.html(col.formatter(value, $td, index)); + } else { + $td.html(value || ''); + } + return $td; + } + grid._makeRow = function(item, index) { + var options = grid.footable.options.grid; + var $row; + if ($.isFunction(options.template)) { + $row = $(options.template($.extend({}, { + __index: index + }, item))); + } else { + $row = $('<tr>'); + for (var i = 0, len = options.cols.length; i < len; i++) { + var col = options.cols[i]; + $row.append(makeCell(col, item[col.name] || '', index)); + } + } + $row.attr('data-index', index); + return $row; + }; + /** + * create rows by js object + */ + grid.newItem = function(item, index, wait) { + var $tbody = $(grid.footable.table).find('tbody'); + var detailClass = grid.footable.options.classes.detail; + $tbody.find('tr.emptyInfo').remove(); + if ($.isArray(item)) { + for (var atom; + (atom = item.pop());) { + grid.newItem(atom, index, true); + } + grid.footable.redraw(); + grid.footable.raise(grid.footable.options.grid.events.created, { + item: item, + index: index + }); + return; + } + if (!$.isPlainObject(item)) { + return; + } + var $tr, len = grid._items.length; + if (index === undefined || index < 0 || index > len) { + $tr = grid._makeRow(item, len++); + grid._items.push(item); + $tbody.append($tr); + } else { + $tr = grid._makeRow(item, index); + if (index === 0) { + grid._items.unshift(item); + $tbody.prepend($tr); + } else { + var $before = $tbody.find('tr[data-index=' + (index - 1) + ']'); + grid._items.splice(index, 0, item); + if ($before.data('detail_created') === true) { + $before = $before.next(); + } + $before.after($tr); + } + updateRowIndex($tbody, $tr, detailClass, 1); + } + if (!wait) { + grid.footable.redraw(); + grid.footable.raise(grid.footable.options.grid.events.created, { + item: item, + index: index + }); + } + }; + /** + * update row by js object + */ + grid.setItem = function(item, index) { + if (!$.isPlainObject(item)) { + return; + } + var $tbody = $(grid.footable.table).find('tbody'), + $newTr = grid._makeRow(item, index); + $.extend(grid._items[index], item); + var $tr = $tbody.find('tr').eq(index); + $tr.html($newTr.html()); + grid.footable.redraw(); + grid.footable.raise(grid.footable.options.grid.events.updated, { + item: item, + index: index + }); + }; + /** + * remove rows by index + */ + grid.removeItem = function(index) { + var $tbody = $(grid.footable.table).find('tbody'); + var detailClass = grid.footable.options.classes.detail; + var result = []; + if ($.isArray(index)) { + for (var i; + (i = index.pop());) { + result.push(grid.removeItem(i)); + } + grid.footable.raise(grid.footable.options.grid.events.removed, { + item: result, + index: index + }); + return result; + } + if (index === undefined) { + $tbody.find('tr').each(function() { + result.push(grid._items.shift()); + grid.footable.removeRow(this); + }); + } else { + var $tr = $tbody.find('tr[data-index=' + index + ']'); + result = grid._items.splice(index, 1)[0]; + grid.footable.removeRow($tr); + //update rows index + updateRowIndex($tbody, $tr, detailClass, -1); + } + grid.footable.raise(grid.footable.options.grid.events.removed, { + item: result, + index: index + }); + return result; + }; + } + w.footable.plugins.register(Grid, defaults); +})(jQuery, window); diff --git a/media/footable/js/footable.js b/media/footable/js/footable.js new file mode 100644 index 00000000..234e4f4e --- /dev/null +++ b/media/footable/js/footable.js @@ -0,0 +1,824 @@ +/*! + * FooTable - Awesome Responsive Tables + * Version : 2.0.3 + * http://fooplugins.com/plugins/footable-jquery/ + * + * Requires jQuery - http://jquery.com/ + * + * Copyright 2014 Steven Usher & Brad Vincent + * Released under the MIT license + * You are free to use FooTable in commercial projects as long as this copyright header is left intact. + * + * Date: 11 Nov 2014 + */ +(function ($, w, undefined) { + w.footable = { + options: { + delay: 100, // The number of millseconds to wait before triggering the react event + breakpoints: { // The different screen resolution breakpoints + phone: 480, + tablet: 1024 + }, + parsers: { // The default parser to parse the value out of a cell (values are used in building up row detail) + alpha: function (cell) { + return $(cell).data('value') || $.trim($(cell).text()); + }, + numeric: function (cell) { + var val = $(cell).data('value') || $(cell).text().replace(/[^0-9.\-]/g, ''); + val = parseFloat(val); + if (isNaN(val)) val = 0; + return val; + } + }, + addRowToggle: true, + calculateWidthOverride: null, + toggleSelector: ' > tbody > tr:not(.footable-row-detail)', //the selector to show/hide the detail row + columnDataSelector: '> thead > tr:last-child > th, > thead > tr:last-child > td', //the selector used to find the column data in the thead + detailSeparator: ':', //the separator character used when building up the detail row + toggleHTMLElement: '<span />', // override this if you want to insert a click target rather than use a background image. + createGroupedDetail: function (data) { + var groups = { '_none': { 'name': null, 'data': [] } }; + for (var i = 0; i < data.length; i++) { + var groupid = data[i].group; + if (groupid !== null) { + if (!(groupid in groups)) + groups[groupid] = { 'name': data[i].groupName || data[i].group, 'data': [] }; + + groups[groupid].data.push(data[i]); + } else { + groups._none.data.push(data[i]); + } + } + return groups; + }, + createDetail: function (element, data, createGroupedDetail, separatorChar, classes) { + /// <summary>This function is used by FooTable to generate the detail view seen when expanding a collapsed row.</summary> + /// <param name="element">This is the div that contains all the detail row information, anything could be added to it.</param> + /// <param name="data"> + /// This is an array of objects containing the cell information for the current row. + /// These objects look like the below: + /// obj = { + /// 'name': String, // The name of the column + /// 'value': Object, // The value parsed from the cell using the parsers. This could be a string, a number or whatever the parser outputs. + /// 'display': String, // This is the actual HTML from the cell, so if you have images etc you want moved this is the one to use and is the default value used. + /// 'group': String, // This is the identifier used in the data-group attribute of the column. + /// 'groupName': String // This is the actual name of the group the column belongs to. + /// } + /// </param> + /// <param name="createGroupedDetail">The grouping function to group the data</param> + /// <param name="separatorChar">The separator charactor used</param> + /// <param name="classes">The array of class names used to build up the detail row</param> + + var groups = createGroupedDetail(data); + for (var group in groups) { + if (groups[group].data.length === 0) continue; + if (group !== '_none') element.append('<div class="' + classes.detailInnerGroup + '">' + groups[group].name + '</div>'); + + for (var j = 0; j < groups[group].data.length; j++) { + var separator = (groups[group].data[j].name) ? separatorChar : ''; + element.append($('<div></div>').addClass(classes.detailInnerRow).append($('<div></div>').addClass(classes.detailInnerName) + .append(groups[group].data[j].name + separator)).append($('<div></div>').addClass(classes.detailInnerValue) + .attr('data-bind-value', groups[group].data[j].bindName).append(groups[group].data[j].display))); + } + } + }, + classes: { + main: 'footable', + loading: 'footable-loading', + loaded: 'footable-loaded', + toggle: 'footable-toggle', + disabled: 'footable-disabled', + detail: 'footable-row-detail', + detailCell: 'footable-row-detail-cell', + detailInner: 'footable-row-detail-inner', + detailInnerRow: 'footable-row-detail-row', + detailInnerGroup: 'footable-row-detail-group', + detailInnerName: 'footable-row-detail-name', + detailInnerValue: 'footable-row-detail-value', + detailShow: 'footable-detail-show' + }, + triggers: { + initialize: 'footable_initialize', //trigger this event to force FooTable to reinitialize + resize: 'footable_resize', //trigger this event to force FooTable to resize + redraw: 'footable_redraw', //trigger this event to force FooTable to redraw + toggleRow: 'footable_toggle_row', //trigger this event to force FooTable to toggle a row + expandFirstRow: 'footable_expand_first_row', //trigger this event to force FooTable to expand the first row + expandAll: 'footable_expand_all', //trigger this event to force FooTable to expand all rows + collapseAll: 'footable_collapse_all' //trigger this event to force FooTable to collapse all rows + }, + events: { + alreadyInitialized: 'footable_already_initialized', //fires when the FooTable has already been initialized + initializing: 'footable_initializing', //fires before FooTable starts initializing + initialized: 'footable_initialized', //fires after FooTable has finished initializing + resizing: 'footable_resizing', //fires before FooTable resizes + resized: 'footable_resized', //fires after FooTable has resized + redrawn: 'footable_redrawn', //fires after FooTable has redrawn + breakpoint: 'footable_breakpoint', //fires inside the resize function, when a breakpoint is hit + columnData: 'footable_column_data', //fires when setting up column data. Plugins should use this event to capture their own info about a column + rowDetailUpdating: 'footable_row_detail_updating', //fires before a detail row is updated + rowDetailUpdated: 'footable_row_detail_updated', //fires when a detail row is being updated + rowCollapsed: 'footable_row_collapsed', //fires when a row is collapsed + rowExpanded: 'footable_row_expanded', //fires when a row is expanded + rowRemoved: 'footable_row_removed', //fires when a row is removed + reset: 'footable_reset' //fires when FooTable is reset + }, + debug: false, // Whether or not to log information to the console. + log: null + }, + + version: { + major: 0, minor: 5, + toString: function () { + return w.footable.version.major + '.' + w.footable.version.minor; + }, + parse: function (str) { + var version = /(\d+)\.?(\d+)?\.?(\d+)?/.exec(str); + return { + major: parseInt(version[1], 10) || 0, + minor: parseInt(version[2], 10) || 0, + patch: parseInt(version[3], 10) || 0 + }; + } + }, + + plugins: { + _validate: function (plugin) { + ///<summary>Simple validation of the <paramref name="plugin"/> to make sure any members called by FooTable actually exist.</summary> + ///<param name="plugin">The object defining the plugin, this should implement a string property called "name" and a function called "init".</param> + + if (!$.isFunction(plugin)) { + if (w.footable.options.debug === true) console.error('Validation failed, expected type "function", received type "{0}".', typeof plugin); + return false; + } + var p = new plugin(); + if (typeof p['name'] !== 'string') { + if (w.footable.options.debug === true) console.error('Validation failed, plugin does not implement a string property called "name".', p); + return false; + } + if (!$.isFunction(p['init'])) { + if (w.footable.options.debug === true) console.error('Validation failed, plugin "' + p['name'] + '" does not implement a function called "init".', p); + return false; + } + if (w.footable.options.debug === true) console.log('Validation succeeded for plugin "' + p['name'] + '".', p); + return true; + }, + registered: [], // An array containing all registered plugins. + register: function (plugin, options) { + ///<summary>Registers a <paramref name="plugin"/> and its default <paramref name="options"/> with FooTable.</summary> + ///<param name="plugin">The plugin that should implement a string property called "name" and a function called "init".</param> + ///<param name="options">The default options to merge with the FooTable's base options.</param> + + if (w.footable.plugins._validate(plugin)) { + w.footable.plugins.registered.push(plugin); + if (typeof options === 'object') $.extend(true, w.footable.options, options); + } + }, + load: function(instance){ + var loaded = [], registered, i; + for(i = 0; i < w.footable.plugins.registered.length; i++){ + try { + registered = w.footable.plugins.registered[i]; + loaded.push(new registered(instance)); + } catch (err) { + if (w.footable.options.debug === true) console.error(err); + } + } + return loaded; + }, + init: function (instance) { + ///<summary>Loops through all registered plugins and calls the "init" method supplying the current <paramref name="instance"/> of the FooTable as the first parameter.</summary> + ///<param name="instance">The current instance of the FooTable that the plugin is being initialized for.</param> + + for (var i = 0; i < instance.plugins.length; i++) { + try { + instance.plugins[i]['init'](instance); + } catch (err) { + if (w.footable.options.debug === true) console.error(err); + } + } + } + } + }; + + var instanceCount = 0; + + $.fn.footable = function (options) { + ///<summary>The main constructor call to initialize the plugin using the supplied <paramref name="options"/>.</summary> + ///<param name="options"> + ///<para>A JSON object containing user defined options for the plugin to use. Any options not supplied will have a default value assigned.</para> + ///<para>Check the documentation or the default options object above for more information on available options.</para> + ///</param> + + options = options || {}; + var o = $.extend(true, {}, w.footable.options, options); //merge user and default options + return this.each(function () { + instanceCount++; + var footable = new Footable(this, o, instanceCount); + $(this).data('footable', footable); + }); + }; + + //helper for using timeouts + function Timer() { + ///<summary>Simple timer object created around a timeout.</summary> + var t = this; + t.id = null; + t.busy = false; + t.start = function (code, milliseconds) { + ///<summary>Starts the timer and waits the specified amount of <paramref name="milliseconds"/> before executing the supplied <paramref name="code"/>.</summary> + ///<param name="code">The code to execute once the timer runs out.</param> + ///<param name="milliseconds">The time in milliseconds to wait before executing the supplied <paramref name="code"/>.</param> + + if (t.busy) { + return; + } + t.stop(); + t.id = setTimeout(function () { + code(); + t.id = null; + t.busy = false; + }, milliseconds); + t.busy = true; + }; + t.stop = function () { + ///<summary>Stops the timer if its runnning and resets it back to its starting state.</summary> + + if (t.id !== null) { + clearTimeout(t.id); + t.id = null; + t.busy = false; + } + }; + } + + function Footable(t, o, id) { + ///<summary>Inits a new instance of the plugin.</summary> + ///<param name="t">The main table element to apply this plugin to.</param> + ///<param name="o">The options supplied to the plugin. Check the defaults object to see all available options.</param> + ///<param name="id">The id to assign to this instance of the plugin.</param> + + var ft = this; + ft.id = id; + ft.table = t; + ft.options = o; + ft.breakpoints = []; + ft.breakpointNames = ''; + ft.columns = {}; + ft.plugins = w.footable.plugins.load(ft); + + var opt = ft.options, + cls = opt.classes, + evt = opt.events, + trg = opt.triggers, + indexOffset = 0; + + // This object simply houses all the timers used in the FooTable. + ft.timers = { + resize: new Timer(), + register: function (name) { + ft.timers[name] = new Timer(); + return ft.timers[name]; + } + }; + + ft.init = function () { + var $window = $(w), $table = $(ft.table); + + w.footable.plugins.init(ft); + + if ($table.hasClass(cls.loaded)) { + //already loaded FooTable for the table, so don't init again + ft.raise(evt.alreadyInitialized); + return; + } + + //raise the initializing event + ft.raise(evt.initializing); + + $table.addClass(cls.loading); + + // Get the column data once for the life time of the plugin + $table.find(opt.columnDataSelector).each(function () { + var data = ft.getColumnData(this); + ft.columns[data.index] = data; + }); + + // Create a nice friendly array to work with out of the breakpoints object. + for (var name in opt.breakpoints) { + ft.breakpoints.push({ 'name': name, 'width': opt.breakpoints[name] }); + ft.breakpointNames += (name + ' '); + } + + // Sort the breakpoints so the smallest is checked first + ft.breakpoints.sort(function (a, b) { + return a['width'] - b['width']; + }); + + $table + .unbind(trg.initialize) + //bind to FooTable initialize trigger + .bind(trg.initialize, function () { + //remove previous "state" (to "force" a resize) + $table.removeData('footable_info'); + $table.data('breakpoint', ''); + + //trigger the FooTable resize + $table.trigger(trg.resize); + + //remove the loading class + $table.removeClass(cls.loading); + + //add the FooTable and loaded class + $table.addClass(cls.loaded).addClass(cls.main); + + //raise the initialized event + ft.raise(evt.initialized); + }) + .unbind(trg.redraw) + //bind to FooTable redraw trigger + .bind(trg.redraw, function () { + ft.redraw(); + }) + .unbind(trg.resize) + //bind to FooTable resize trigger + .bind(trg.resize, function () { + ft.resize(); + }) + .unbind(trg.expandFirstRow) + //bind to FooTable expandFirstRow trigger + .bind(trg.expandFirstRow, function () { + $table.find(opt.toggleSelector).first().not('.' + cls.detailShow).trigger(trg.toggleRow); + }) + .unbind(trg.expandAll) + //bind to FooTable expandFirstRow trigger + .bind(trg.expandAll, function () { + $table.find(opt.toggleSelector).not('.' + cls.detailShow).trigger(trg.toggleRow); + }) + .unbind(trg.collapseAll) + //bind to FooTable expandFirstRow trigger + .bind(trg.collapseAll, function () { + $table.find('.' + cls.detailShow).trigger(trg.toggleRow); + }); + + //trigger a FooTable initialize + $table.trigger(trg.initialize); + + //bind to window resize + $window + .bind('resize.footable', function () { + ft.timers.resize.stop(); + ft.timers.resize.start(function () { + ft.raise(trg.resize); + }, opt.delay); + }); + }; + + ft.addRowToggle = function () { + if (!opt.addRowToggle) return; + + var $table = $(ft.table), + hasToggleColumn = false; + + //first remove all toggle spans + $table.find('span.' + cls.toggle).remove(); + + for (var c in ft.columns) { + var col = ft.columns[c]; + if (col.toggle) { + hasToggleColumn = true; + var selector = '> tbody > tr:not(.' + cls.detail + ',.' + cls.disabled + ') > td:nth-child(' + (parseInt(col.index, 10) + 1) + '),' + + '> tbody > tr:not(.' + cls.detail + ',.' + cls.disabled + ') > th:nth-child(' + (parseInt(col.index, 10) + 1) + ')'; + $table.find(selector).not('.' + cls.detailCell).prepend($(opt.toggleHTMLElement).addClass(cls.toggle)); + return; + } + } + //check if we have an toggle column. If not then add it to the first column just to be safe + if (!hasToggleColumn) { + $table + .find('> tbody > tr:not(.' + cls.detail + ',.' + cls.disabled + ') > td:first-child') + .add('> tbody > tr:not(.' + cls.detail + ',.' + cls.disabled + ') > th:first-child') + .not('.' + cls.detailCell) + .prepend($(opt.toggleHTMLElement).addClass(cls.toggle)); + } + }; + + ft.setColumnClasses = function () { + var $table = $(ft.table); + for (var c in ft.columns) { + var col = ft.columns[c]; + if (col.className !== null) { + var selector = '', first = true; + $.each(col.matches, function (m, match) { //support for colspans + if (!first) selector += ', '; + selector += '> tbody > tr:not(.' + cls.detail + ') > td:nth-child(' + (parseInt(match, 10) + 1) + ')'; + first = false; + }); + //add the className to the cells specified by data-class="blah" + $table.find(selector).not('.' + cls.detailCell).addClass(col.className); + } + } + }; + + //moved this out into it's own function so that it can be called from other add-ons + ft.bindToggleSelectors = function () { + var $table = $(ft.table); + + if (!ft.hasAnyBreakpointColumn()) return; + + $table.find(opt.toggleSelector).unbind(trg.toggleRow).bind(trg.toggleRow, function (e) { + var $row = $(this).is('tr') ? $(this) : $(this).parents('tr:first'); + ft.toggleDetail($row); + }); + + $table.find(opt.toggleSelector).unbind('click.footable').bind('click.footable', function (e) { + if ($table.is('.breakpoint') && $(e.target).is('td,th,.'+ cls.toggle)) { + $(this).trigger(trg.toggleRow); + } + }); + }; + + ft.parse = function (cell, column) { + var parser = opt.parsers[column.type] || opt.parsers.alpha; + return parser(cell); + }; + + ft.getColumnData = function (th) { + var $th = $(th), hide = $th.data('hide'), index = $th.index(); + hide = hide || ''; + hide = jQuery.map(hide.split(','), function (a) { + return jQuery.trim(a); + }); + var data = { + 'index': index, + 'hide': { }, + 'type': $th.data('type') || 'alpha', + 'name': $th.data('name') || $.trim($th.text()), + 'ignore': $th.data('ignore') || false, + 'toggle': $th.data('toggle') || false, + 'className': $th.data('class') || null, + 'matches': [], + 'names': { }, + 'group': $th.data('group') || null, + 'groupName': null, + 'isEditable': $th.data('editable') + }; + + if (data.group !== null) { + var $group = $(ft.table).find('> thead > tr.footable-group-row > th[data-group="' + data.group + '"], > thead > tr.footable-group-row > td[data-group="' + data.group + '"]').first(); + data.groupName = ft.parse($group, { 'type': 'alpha' }); + } + + var pcolspan = parseInt($th.prev().attr('colspan') || 0, 10); + indexOffset += pcolspan > 1 ? pcolspan - 1 : 0; + var colspan = parseInt($th.attr('colspan') || 0, 10), curindex = data.index + indexOffset; + if (colspan > 1) { + var names = $th.data('names'); + names = names || ''; + names = names.split(','); + for (var i = 0; i < colspan; i++) { + data.matches.push(i + curindex); + if (i < names.length) data.names[i + curindex] = names[i]; + } + } else { + data.matches.push(curindex); + } + + data.hide['default'] = ($th.data('hide') === "all") || ($.inArray('default', hide) >= 0); + + var hasBreakpoint = false; + for (var name in opt.breakpoints) { + data.hide[name] = ($th.data('hide') === "all") || ($.inArray(name, hide) >= 0); + hasBreakpoint = hasBreakpoint || data.hide[name]; + } + data.hasBreakpoint = hasBreakpoint; + var e = ft.raise(evt.columnData, { 'column': { 'data': data, 'th': th } }); + return e.column.data; + }; + + ft.getViewportWidth = function () { + return window.innerWidth || (document.body ? document.body.offsetWidth : 0); + }; + + ft.calculateWidth = function ($table, info) { + if (jQuery.isFunction(opt.calculateWidthOverride)) { + return opt.calculateWidthOverride($table, info); + } + if (info.viewportWidth < info.width) info.width = info.viewportWidth; + if (info.parentWidth < info.width) info.width = info.parentWidth; + return info; + }; + + ft.hasBreakpointColumn = function (breakpoint) { + for (var c in ft.columns) { + if (ft.columns[c].hide[breakpoint]) { + if (ft.columns[c].ignore) { + continue; + } + return true; + } + } + return false; + }; + + ft.hasAnyBreakpointColumn = function () { + for (var c in ft.columns) { + if (ft.columns[c].hasBreakpoint) { + return true; + } + } + return false; + }; + + ft.resize = function () { + var $table = $(ft.table); + + if (!$table.is(':visible')) { + return; + } //we only care about FooTables that are visible + + if (!ft.hasAnyBreakpointColumn()) { + $table.trigger(trg.redraw); + return; + } //we only care about FooTables that have breakpoints + + var info = { + 'width': $table.width(), //the table width + 'viewportWidth': ft.getViewportWidth(), //the width of the viewport + 'parentWidth': $table.parent().width() //the width of the parent + }; + + info = ft.calculateWidth($table, info); + + var pinfo = $table.data('footable_info'); + $table.data('footable_info', info); + ft.raise(evt.resizing, { 'old': pinfo, 'info': info }); + + // This (if) statement is here purely to make sure events aren't raised twice as mobile safari seems to do + if (!pinfo || (pinfo && pinfo.width && pinfo.width !== info.width)) { + + var current = null, breakpoint; + for (var i = 0; i < ft.breakpoints.length; i++) { + breakpoint = ft.breakpoints[i]; + if (breakpoint && breakpoint.width && info.width <= breakpoint.width) { + current = breakpoint; + break; + } + } + + var breakpointName = (current === null ? 'default' : current['name']), + hasBreakpointFired = ft.hasBreakpointColumn(breakpointName), + previousBreakpoint = $table.data('breakpoint'); + + $table + .data('breakpoint', breakpointName) + .removeClass('default breakpoint').removeClass(ft.breakpointNames) + .addClass(breakpointName + (hasBreakpointFired ? ' breakpoint' : '')); + + //only do something if the breakpoint has changed + if (breakpointName !== previousBreakpoint) { + //trigger a redraw + $table.trigger(trg.redraw); + //raise a breakpoint event + ft.raise(evt.breakpoint, { 'breakpoint': breakpointName, 'info': info }); + } + } + + ft.raise(evt.resized, { 'old': pinfo, 'info': info }); + }; + + ft.redraw = function () { + //add the toggler to each row + ft.addRowToggle(); + + //bind the toggle selector click events + ft.bindToggleSelectors(); + + //set any cell classes defined for the columns + ft.setColumnClasses(); + + var $table = $(ft.table), + breakpointName = $table.data('breakpoint'), + hasBreakpointFired = ft.hasBreakpointColumn(breakpointName); + + $table + .find('> tbody > tr:not(.' + cls.detail + ')').data('detail_created', false).end() + .find('> thead > tr:last-child > th') + .each(function () { + var data = ft.columns[$(this).index()], selector = '', first = true; + $.each(data.matches, function (m, match) { + if (!first) { + selector += ', '; + } + var count = match + 1; + selector += '> tbody > tr:not(.' + cls.detail + ') > td:nth-child(' + count + ')'; + selector += ', > tfoot > tr:not(.' + cls.detail + ') > td:nth-child(' + count + ')'; + selector += ', > colgroup > col:nth-child(' + count + ')'; + first = false; + }); + + selector += ', > thead > tr[data-group-row="true"] > th[data-group="' + data.group + '"]'; + var $column = $table.find(selector).add(this); + if (breakpointName !== '') { + if (data.hide[breakpointName] === false) $column.addClass('footable-visible').show(); + else $column.removeClass('footable-visible').hide(); + } + + if ($table.find('> thead > tr.footable-group-row').length === 1) { + var $groupcols = $table.find('> thead > tr:last-child > th[data-group="' + data.group + '"]:visible, > thead > tr:last-child > th[data-group="' + data.group + '"]:visible'), + $group = $table.find('> thead > tr.footable-group-row > th[data-group="' + data.group + '"], > thead > tr.footable-group-row > td[data-group="' + data.group + '"]'), + groupspan = 0; + + $.each($groupcols, function () { + groupspan += parseInt($(this).attr('colspan') || 1, 10); + }); + + if (groupspan > 0) $group.attr('colspan', groupspan).show(); + else $group.hide(); + } + }) + .end() + .find('> tbody > tr.' + cls.detailShow).each(function () { + ft.createOrUpdateDetailRow(this); + }); + + $table.find("[data-bind-name]").each(function () { + ft.toggleInput(this); + }); + + $table.find('> tbody > tr.' + cls.detailShow + ':visible').each(function () { + var $next = $(this).next(); + if ($next.hasClass(cls.detail)) { + if (!hasBreakpointFired) $next.hide(); + else $next.show(); + } + }); + + // adding .footable-first-column and .footable-last-column to the first and last th and td of each row in order to allow + // for styling if the first or last column is hidden (which won't work using :first-child or :last-child) + $table.find('> thead > tr > th.footable-last-column, > tbody > tr > td.footable-last-column').removeClass('footable-last-column'); + $table.find('> thead > tr > th.footable-first-column, > tbody > tr > td.footable-first-column').removeClass('footable-first-column'); + $table.find('> thead > tr, > tbody > tr') + .find('> th.footable-visible:last, > td.footable-visible:last') + .addClass('footable-last-column') + .end() + .find('> th.footable-visible:first, > td.footable-visible:first') + .addClass('footable-first-column'); + + ft.raise(evt.redrawn); + }; + + ft.toggleDetail = function (row) { + var $row = (row.jquery) ? row : $(row), + $next = $row.next(); + + //check if the row is already expanded + if ($row.hasClass(cls.detailShow)) { + $row.removeClass(cls.detailShow); + + //only hide the next row if it's a detail row + if ($next.hasClass(cls.detail)) $next.hide(); + + ft.raise(evt.rowCollapsed, { 'row': $row[0] }); + + } else { + ft.createOrUpdateDetailRow($row[0]); + $row.addClass(cls.detailShow) + .next().show(); + + ft.raise(evt.rowExpanded, { 'row': $row[0] }); + } + }; + + ft.removeRow = function (row) { + var $row = (row.jquery) ? row : $(row); + if ($row.hasClass(cls.detail)) { + $row = $row.prev(); + } + var $next = $row.next(); + if ($row.data('detail_created') === true) { + //remove the detail row + $next.remove(); + } + $row.remove(); + + //raise event + ft.raise(evt.rowRemoved); + }; + + ft.appendRow = function (row) { + var $row = (row.jquery) ? row : $(row); + $(ft.table).find('tbody').append($row); + + //redraw the table + ft.redraw(); + }; + + ft.getColumnFromTdIndex = function (index) { + /// <summary>Returns the correct column data for the supplied index taking into account colspans.</summary> + /// <param name="index">The index to retrieve the column data for.</param> + /// <returns type="json">A JSON object containing the column data for the supplied index.</returns> + var result = null; + for (var column in ft.columns) { + if ($.inArray(index, ft.columns[column].matches) >= 0) { + result = ft.columns[column]; + break; + } + } + return result; + }; + + ft.createOrUpdateDetailRow = function (actualRow) { + var $row = $(actualRow), $next = $row.next(), $detail, values = []; + if ($row.data('detail_created') === true) return true; + + if ($row.is(':hidden')) return false; //if the row is hidden for some reason (perhaps filtered) then get out of here + ft.raise(evt.rowDetailUpdating, { 'row': $row, 'detail': $next }); + $row.find('> td:hidden').each(function () { + var index = $(this).index(), column = ft.getColumnFromTdIndex(index), name = column.name; + if (column.ignore === true) return true; + + if (index in column.names) name = column.names[index]; + + var bindName = $(this).attr("data-bind-name"); + if (bindName != null && $(this).is(':empty')) { + var bindValue = $('.' + cls.detailInnerValue + '[' + 'data-bind-value="' + bindName + '"]'); + $(this).html($(bindValue).contents().detach()); + } + var display; + if (column.isEditable !== false && (column.isEditable || $(this).find(":input").length > 0)) { + if(bindName == null) { + bindName = "bind-" + $.now() + "-" + index; + $(this).attr("data-bind-name", bindName); + } + display = $(this).contents().detach(); + } + if (!display) display = $(this).contents().clone(true, true); + values.push({ 'name': name, 'value': ft.parse(this, column), 'display': display, 'group': column.group, 'groupName': column.groupName, 'bindName': bindName }); + return true; + }); + if (values.length === 0) return false; //return if we don't have any data to show + var colspan = $row.find('> td:visible').length; + var exists = $next.hasClass(cls.detail); + if (!exists) { // Create + $next = $('<tr class="' + cls.detail + '"><td class="' + cls.detailCell + '"><div class="' + cls.detailInner + '"></div></td></tr>'); + $row.after($next); + } + $next.find('> td:first').attr('colspan', colspan); + $detail = $next.find('.' + cls.detailInner).empty(); + opt.createDetail($detail, values, opt.createGroupedDetail, opt.detailSeparator, cls); + $row.data('detail_created', true); + ft.raise(evt.rowDetailUpdated, { 'row': $row, 'detail': $next }); + return !exists; + }; + + ft.raise = function (eventName, args) { + + if (ft.options.debug === true && $.isFunction(ft.options.log)) ft.options.log(eventName, 'event'); + + args = args || { }; + var def = { 'ft': ft }; + $.extend(true, def, args); + var e = $.Event(eventName, def); + if (!e.ft) { + $.extend(true, e, def); + } //pre jQuery 1.6 which did not allow data to be passed to event object constructor + $(ft.table).trigger(e); + return e; + }; + + //reset the state of FooTable + ft.reset = function() { + var $table = $(ft.table); + $table.removeData('footable_info') + .data('breakpoint', '') + .removeClass(cls.loading) + .removeClass(cls.loaded); + + $table.find(opt.toggleSelector).unbind(trg.toggleRow).unbind('click.footable'); + + $table.find('> tbody > tr').removeClass(cls.detailShow); + + $table.find('> tbody > tr.' + cls.detail).remove(); + + ft.raise(evt.reset); + }; + + //Switch between row-detail and detail-show. + ft.toggleInput = function (column) { + var bindName = $(column).attr("data-bind-name"); + if(bindName != null) { + var bindValue = $('.' + cls.detailInnerValue + '[' + 'data-bind-value="' + bindName + '"]'); + if(bindValue != null) { + if($(column).is(":visible")) { + if(!$(bindValue).is(':empty')) $(column).html($(bindValue).contents().detach()); + } else if(!$(column).is(':empty')) { + $(bindValue).html($(column).contents().detach()); + } + } + } + }; + + ft.init(); + return ft; + } +})(jQuery, window); diff --git a/media/footable/js/footable.memory.js b/media/footable/js/footable.memory.js new file mode 100644 index 00000000..487ed709 --- /dev/null +++ b/media/footable/js/footable.memory.js @@ -0,0 +1,429 @@ +/** + * Footable Memory + * + * Version 1.1.0 + * + * Requires browser support for localStorage. Fallback to cookies using + * jQuery Cookie (https://github.com/carhartl/jquery-cookie) + * + * Stores table state in a cookie and reloads state when page is refreshed. + * + * Supports common FooTable features: + * - Pagination + * - Sorting + * - Filtering + * - Expansion + * + * Written to be compatible with multiple FooTables per page and with + * JavaScript libraries like AngularJS and Ember that use hash based URLs. + * + * Disabled by default, to enable add the following section to the footable + * options: + * + * $('#table').footable({ + * memory: { + * enabled: true + * } + * }); + * + * Based on FooTable Plugin Bookmarkable by Amy Farrell (https://github.com/akf) + * + * Created by Chris Laskey (https://github.com/chrislaskey) + */ + +(function ($, w, undefined) { + + if (w.footable === undefined || w.foobox === null) { + throw new Error('Please check and make sure footable.js is included in the page and is loaded prior to this script.'); + } + + var defaults = { + memory: { + enabled: false + } + }; + + var storage; + + var storage_engines = {}; + + storage_engines.local_storage = (function($){ + + 'use strict'; + + var path_page = function(){ + return location.pathname; + }; + + var path_subpage = function(){ + return location.hash || 'root'; + }; + + var storage_key = function(index){ + return path_page() + '/' + path_subpage() + '/index-' + index; + }; + + var get = function(index){ + var key = storage_key(index), + as_string = localStorage.getItem(key); + + return as_string ? JSON.parse(as_string) : {}; + }; + + var set = function(index, item){ + var key = storage_key(index), + as_string = JSON.stringify(item); + + localStorage.setItem(key, as_string); + }; + + return { + get: function(index){ + return get(index); + }, + set: function(index, item){ + set(index, item); + } + }; + + })($); + + storage_engines.cookie = (function($){ + + 'use strict'; + + /** + * Stores footable bookmarkable data in a cookie + * + * By default will store each page in its own cookie. + * Supports multiple FooTables per page. + * Supports JS frameworks that use hashmap URLs (AngularJS, Ember, etc). + * + * For example take an example application: + * + * http://example.com/application-data (2 FooTables on this page) + * http://example.com/application-data/#/details (1 FooTable on this page) + * http://example.com/other-data (1 FooTable on this page) + * + * Would be stored like this: + * + * cookie['/application-data'] = { + * '/': { + * 1: { + * key1: value1, + * key2: value2 + * }, + * 2: { + * key1: value1, + * key2: value2 + * } + * }, + * '#/details': { + * 1: { + * key1: value1, + * key2: value2 + * } + * } + * }; + * + * cookie['/other-data'] = { + * '/': { + * 1: { + * key1: value1, + * key2: value2 + * }, + * } + * } + * + */ + + if( $.cookie ){ + $.cookie.json = true; + } + + var days_to_keep_data = 7; + + var path_page = function(){ + return location.pathname; + }; + + var path_subpage = function(){ + return location.hash || '/'; + }; + + var get_data = function(){ + var page = path_page(), + data = $.cookie(page); + + return data || {}; + }; + + var get_table = function(index){ + var subpage = path_subpage(), + data = get_data(); + + if( data[subpage] && data[subpage][index] ){ + return data[subpage][index]; + } else { + return {}; + } + }; + + var set = function(index, item){ + var page = path_page(), + subpage = path_subpage(), + data = get_data(), + options; + + if( !data[subpage] ){ + data[subpage] = {}; + } + + data[subpage][index] = item; + + options = { + path: page, + expires: days_to_keep_data + }; + + $.cookie(page, data, options); + }; + + return { + get: function(index){ + return get_table(index); + }, + set: function(index, item){ + set(index, item); + } + }; + + })($); + + var set_storage_engine = (function(){ + var test = 'footable-memory-plugin-storage-test'; + + try { + localStorage.setItem(test, test); + localStorage.removeItem(test); + storage = storage_engines.local_storage; + } catch(e) { + try { + $.cookie(test, test); + storage = storage_engines.cookie; + } catch(e) { + throw new Error('FooTable Memory requires either localStorage or cookie support via jQuery $.cookie plugin (https://github.com/carhartl/jquery-cookie)'); + } + } + })($); + + var state = (function($){ + + 'use strict'; + + /** + * Gets and sets current table state + */ + + var vars = {}; + + var get = {}; + + var set = {}; + + set.vars = function(ft){ + vars.ft = ft; + vars.table = $(ft.table); + }; + + get.descending = function(){ + var descending = false; + $.each(vars.table.find('th'), function(index){ + if( $(this).hasClass('footable-sorted-desc') ){ + descending = true; + } + }); + return descending; + }; + + get.expanded = function(){ + var indexes = []; + $.each(vars.ft.table.rows, function(index, value){ + if( $(this).hasClass('footable-detail-show') ){ + indexes.push(index); + } + }); + return indexes; + }; + + set.expanded = function(data){ + if( data.expanded ){ + $.each(data.expanded, function(index, value){ + // var row = $(vars.ft.table.rows[value]); + // row.find('> td:first').trigger('footable_toggle_row'); + + // Trying to execute the lines above, but the expanded row + // shows raw AngularJS template (with {{ values }}) instead + // of the fully rendered result. + // + // Best guess is some things happen after + // 'footable_initialized' event and row expanding can not + // occur until after those fire. + // + // A hack to get around this is to wait an interval before + // executing the intended commands. Wrapped in an + // immediately executing function to ensure ft is the + // current value. + + (function(ft){ + setTimeout(function(){ + var row = $(ft.table.rows[value]); + row.find('> td:first').trigger('footable_toggle_row'); + }, 150); + })(vars.ft); + }); + } + }; + + get.filter = function(){ + return vars.table.data('filter') ? $(vars.table.data('filter')).val() : ''; + }; + + set.filter = function(data){ + if( data.filter ){ + $(vars.table.data('filter')) + .val(data.filter) + .trigger('keyup'); + } + }; + + get.page = function(){ + return vars.ft.pageInfo && vars.ft.pageInfo.currentPage !== undefined ? vars.ft.pageInfo.currentPage : 0; + }; + + set.page = function(data){ + if( data.page ){ + vars.table.data('currentPage', data.page); + // Delay triggering table until sort is updated, since both effect + // pagination. + } + }; + + get.shown = function(){ + return vars.table + .find('tbody') + .find('tr:not(.footable-row-detail)') + .filter(':visible').length; + }; + + get.sorted = function(){ + if( vars.table.data('sorted') !== undefined ){ + return vars.table.data('sorted'); + } else { + return -1; + } + }; + + set.sorted = function(data){ + if( data.sorted >= 0 ) { + // vars.table.data('footable-sort').doSort(data.sorted, !data.descending); + + // Trying to execute the line above, but only sort icon on the + // <th> element gets set. The rows themselves do not get sorted. + // + // Best guess is some things happen after 'footable_initialized' event + // and sorting can not occur until after those fire. + // + // A hack to get around this is to wait an interval before executing + // the intended commands. Wrapped in an immediately executing + // function to ensure ft is the current value. + + (function(ft){ + setTimeout(function(){ + $(ft.table).data('footable-sort').doSort(data.sorted, !data.descending); + }, 150); + })(vars.ft); + } else { + vars.table.trigger('footable_setup_paging'); + } + }; + + get.total = function(){ + return vars.table + .find('tbody') + .find('tr:not(.footable-row-detail, .footable-filtered)').length; + }; + + var get_state = function(){ + return { + descending: get.descending(), + expanded: get.expanded(), + filter: get.filter(), + page: get.page(), + shown: get.shown(), + sorted: get.sorted(), + total: get.total() + }; + }; + + var set_state = function(data){ + set.filter(data); + set.page(data); + set.sorted(data); + set.expanded(data); + }; + + return { + get: function(ft){ + set.vars(ft); + return get_state(); + }, + set: function(ft, data){ + set.vars(ft); + return set_state(data); + } + }; + + })($); + + var is_enabled = function(ft){ + return ft.options.memory.enabled; + }; + + var update = function(ft, event) { + var index = ft.id, + data = state.get(ft); + + storage.set(index, data); + }; + + var load = function(ft){ + var index = ft.id, + data = storage.get(index); + + state.set(ft, data); + ft.memory_plugin_loaded = true; + }; + + function Memory() { + var p = this; + p.name = 'Footable Memory'; + p.init = function(ft) { + if (is_enabled(ft)) { + $(ft.table).bind({ + 'footable_initialized': function(){ + load(ft); + }, + 'footable_page_filled footable_redrawn footable_filtered footable_sorted footable_row_expanded footable_row_collapsed': function(e) { + if (ft.memory_plugin_loaded) { + update(ft, e); + } + } + }); + } + }; + } + + w.footable.plugins.register(Memory, defaults); + +})(jQuery, window); diff --git a/media/footable/js/footable.paginate.js b/media/footable/js/footable.paginate.js new file mode 100644 index 00000000..8f21c453 --- /dev/null +++ b/media/footable/js/footable.paginate.js @@ -0,0 +1,242 @@ +(function ($, w, undefined) { + if (w.footable === undefined || w.footable === null) + throw new Error('Please check and make sure footable.js is included in the page and is loaded prior to this script.'); + + var defaults = { + paginate: true, + pageSize: 10, + pageNavigation: '.pagination', + firstText: '&laquo;', + previousText: '&lsaquo;', + nextText: '&rsaquo;', + lastText: '&raquo;', + limitNavigation: 0, + limitPreviousText: '...', + limitNextText: '...' + }; + + function pageInfo(ft) { + var $table = $(ft.table), data = $table.data(); + this.pageNavigation = data.pageNavigation || ft.options.pageNavigation; + this.pageSize = data.pageSize || ft.options.pageSize; + this.firstText = data.firstText || ft.options.firstText; + this.previousText = data.previousText || ft.options.previousText; + this.nextText = data.nextText || ft.options.nextText; + this.lastText = data.lastText || ft.options.lastText; + this.limitNavigation = parseInt(data.limitNavigation || ft.options.limitNavigation || defaults.limitNavigation, 10); + this.limitPreviousText = data.limitPreviousText || ft.options.limitPreviousText; + this.limitNextText = data.limitNextText || ft.options.limitNextText; + this.limit = this.limitNavigation > 0; + this.currentPage = data.currentPage || 0; + this.pages = []; + this.control = false; + } + + function Paginate() { + var p = this; + p.name = 'Footable Paginate'; + + p.init = function (ft) { + if (ft.options.paginate === true) { + if ($(ft.table).data('page') === false) return; + p.footable = ft; + $(ft.table) + .unbind('.paging') + .bind({ + 'footable_initialized.paging footable_row_removed.paging footable_redrawn.paging footable_sorted.paging footable_filtered.paging': function () { + p.setupPaging(); + } + }) + //save the filter object onto the table so we can access it later + .data('footable-paging', p); + } + }; + + p.setupPaging = function () { + var ft = p.footable, + $tbody = $(ft.table).find('> tbody'); + + ft.pageInfo = new pageInfo(ft); + + p.createPages(ft, $tbody); + p.createNavigation(ft, $tbody); + p.fillPage(ft, $tbody, ft.pageInfo.currentPage); + }; + + p.createPages = function (ft, tbody) { + var pages = 1; + var info = ft.pageInfo; + var pageCount = pages * info.pageSize; + var page = []; + var lastPage = []; + info.pages = []; + var rows = tbody.find('> tr:not(.footable-filtered,.footable-row-detail)'); + rows.each(function (i, row) { + page.push(row); + if (i === pageCount - 1) { + info.pages.push(page); + pages++; + pageCount = pages * info.pageSize; + page = []; + } else if (i >= rows.length - (rows.length % info.pageSize)) { + lastPage.push(row); + } + }); + if (lastPage.length > 0) info.pages.push(lastPage); + if (info.currentPage >= info.pages.length) info.currentPage = info.pages.length - 1; + if (info.currentPage < 0) info.currentPage = 0; + if (info.pages.length === 1) { + //we only have a single page + $(ft.table).addClass('no-paging'); + } else { + $(ft.table).removeClass('no-paging'); + } + }; + + p.createNavigation = function (ft, tbody) { + var $nav = $(ft.table).find(ft.pageInfo.pageNavigation); + //if we cannot find the navigation control within the table, then try find it outside + if ($nav.length === 0) { + $nav = $(ft.pageInfo.pageNavigation); + //if the navigation control is inside another table, then get out + if ($nav.parents('table:first').length > 0 && $nav.parents('table:first') !== $(ft.table)) return; + //if we found more than one navigation control, write error to console + if ($nav.length > 1 && ft.options.debug === true) console.error('More than one pagination control was found!'); + } + //if we still cannot find the control, then don't do anything + if ($nav.length === 0) return; + //if the nav is not a UL, then find or create a UL + if (!$nav.is('ul')) { + if ($nav.find('ul:first').length === 0) { + $nav.append('<ul />'); + } + $nav = $nav.find('ul'); + } + $nav.find('li').remove(); + var info = ft.pageInfo; + info.control = $nav; + if (info.pages.length > 0) { + $nav.append('<li class="footable-page-arrow"><a data-page="first" href="#first">' + ft.pageInfo.firstText + '</a>'); + $nav.append('<li class="footable-page-arrow"><a data-page="prev" href="#prev">' + ft.pageInfo.previousText + '</a></li>'); + if (info.limit){ + $nav.append('<li class="footable-page-arrow"><a data-page="limit-prev" href="#limit-prev">' + ft.pageInfo.limitPreviousText + '</a></li>'); + } + if (!info.limit){ + $.each(info.pages, function (i, page) { + if (page.length > 0) { + $nav.append('<li class="footable-page"><a data-page="' + i + '" href="#">' + (i + 1) + '</a></li>'); + } + }); + } + if (info.limit){ + $nav.append('<li class="footable-page-arrow"><a data-page="limit-next" href="#limit-next">' + ft.pageInfo.limitNextText + '</a></li>'); + p.createLimited($nav, info, 0); + } + $nav.append('<li class="footable-page-arrow"><a data-page="next" href="#next">' + ft.pageInfo.nextText + '</a></li>'); + $nav.append('<li class="footable-page-arrow"><a data-page="last" href="#last">' + ft.pageInfo.lastText + '</a></li>'); + } + $nav.off('click', 'a[data-page]').on('click', 'a[data-page]', function (e) { + e.preventDefault(); + var page = $(this).data('page'); + var newPage = info.currentPage; + if (page === 'first') { + newPage = 0; + } else if (page === 'prev') { + if (newPage > 0) newPage--; + } else if (page === 'next') { + if (newPage < info.pages.length - 1) newPage++; + } else if (page === 'last') { + newPage = info.pages.length - 1; + } else if (page === 'limit-prev') { + newPage = -1; + var first = $nav.find('.footable-page:first a').data('page'); + p.createLimited($nav, info, first - info.limitNavigation); + p.setPagingClasses($nav, info.currentPage, info.pages.length); + } else if (page === 'limit-next') { + newPage = -1; + var last = $nav.find('.footable-page:last a').data('page'); + p.createLimited($nav, info, last + 1); + p.setPagingClasses($nav, info.currentPage, info.pages.length); + } else { + newPage = page; + } + if (newPage >= 0){ + if (info.limit && info.currentPage != newPage){ + var start = newPage; + while (start % info.limitNavigation !== 0){ start -= 1; } + p.createLimited($nav, info, start); + } + p.paginate(ft, newPage); + } + }); + p.setPagingClasses($nav, info.currentPage, info.pages.length); + }; + + p.createLimited = function(nav, info, start){ + start = start || 0; + nav.find('li.footable-page').remove(); + var i, page, + $prev = nav.find('li.footable-page-arrow > a[data-page="limit-prev"]').parent(), + $next = nav.find('li.footable-page-arrow > a[data-page="limit-next"]').parent(); + for (i = info.pages.length - 1; i >=0 ; i--){ + page = info.pages[i]; + if (i >= start && i < start + info.limitNavigation && page.length > 0) { + $prev.after('<li class="footable-page"><a data-page="' + i + '" href="#">' + (i + 1) + '</a></li>'); + } + } + if (start === 0){ $prev.hide(); } + else { $prev.show(); } + if (start + info.limitNavigation >= info.pages.length){ $next.hide(); } + else { $next.show(); } + }; + + p.paginate = function (ft, newPage) { + var info = ft.pageInfo; + if (info.currentPage !== newPage) { + var $tbody = $(ft.table).find('> tbody'); + + //raise a pre-pagin event so that we can cancel the paging if needed + var event = ft.raise('footable_paging', { page: newPage, size: info.pageSize }); + if (event && event.result === false) return; + + p.fillPage(ft, $tbody, newPage); + info.control.find('li').removeClass('active disabled'); + p.setPagingClasses(info.control, info.currentPage, info.pages.length); + } + }; + + p.setPagingClasses = function (nav, currentPage, pageCount) { + nav.find('li.footable-page > a[data-page=' + currentPage + ']').parent().addClass('active'); + if (currentPage >= pageCount - 1) { + nav.find('li.footable-page-arrow > a[data-page="next"]').parent().addClass('disabled'); + nav.find('li.footable-page-arrow > a[data-page="last"]').parent().addClass('disabled'); + } + if (currentPage < 1) { + nav.find('li.footable-page-arrow > a[data-page="first"]').parent().addClass('disabled'); + nav.find('li.footable-page-arrow > a[data-page="prev"]').parent().addClass('disabled'); + } + }; + + p.fillPage = function (ft, tbody, pageNumber) { + ft.pageInfo.currentPage = pageNumber; + $(ft.table).data('currentPage', pageNumber); + tbody.find('> tr').hide(); + $(ft.pageInfo.pages[pageNumber]).each(function () { + p.showRow(this, ft); + }); + ft.raise('footable_page_filled'); + }; + + p.showRow = function (row, ft) { + var $row = $(row), $next = $row.next(), $table = $(ft.table); + if ($table.hasClass('breakpoint') && $row.hasClass('footable-detail-show') && $next.hasClass('footable-row-detail')) { + $row.add($next).show(); + ft.createOrUpdateDetailRow(row); + } + else $row.show(); + }; + } + + w.footable.plugins.register(Paginate, defaults); + +})(jQuery, window); diff --git a/media/footable/js/footable.plugin.template.js b/media/footable/js/footable.plugin.template.js new file mode 100644 index 00000000..381cc549 --- /dev/null +++ b/media/footable/js/footable.plugin.template.js @@ -0,0 +1,44 @@ +(function ($, w, undefined) { + if (w.footable === undefined || w.foobox === null) + throw new Error('Please check and make sure footable.js is included in the page and is loaded prior to this script.'); + + var defaults = { + /* + Plugin options here, example: + + var defaults = { + myPlugin: { + enabled: true + } + }; + + This would allow you to access this option using ft.options.myPlugin.enabled + */ + }; + + function MyPlugin() { + var p = this; + p.name = 'Footable MyPlugin'; + p.init = function(ft) { + $(ft.table).bind({ + /* + Bind to relevant events here to modify/add functionality to Footable, example: + + $(ft.table).bind({ + 'footable_initialized': function(e){ + if (e.ft.options.myPlugin.enabled === true){ + alert('Hello World'); + } + } + }); + + This would listen for the 'footable_initialized' event and when called check if the plugin is enabled + and if it is alert 'Hello World' to the user. + */ + }); + }; + } + + w.footable.plugins.register(MyPlugin, defaults); + +})(jQuery, window); diff --git a/media/footable/js/footable.sort.js b/media/footable/js/footable.sort.js new file mode 100644 index 00000000..ec3c0402 --- /dev/null +++ b/media/footable/js/footable.sort.js @@ -0,0 +1,190 @@ +(function ($, w, undefined) { + if (w.footable === undefined || w.footable === null) + throw new Error('Please check and make sure footable.js is included in the page and is loaded prior to this script.'); + + var defaults = { + sort: true, + sorters: { + alpha: function (a, b) { + if (typeof(a) === 'string') { a = a.toLowerCase(); } + if (typeof(b) === 'string') { b = b.toLowerCase(); } + if (a === b) return 0; + if (a < b) return -1; + return 1; + }, + numeric: function (a, b) { + return a - b; + } + }, + classes: { + sort: { + sortable: 'footable-sortable', + sorted: 'footable-sorted', + descending: 'footable-sorted-desc', + indicator: 'footable-sort-indicator' + } + }, + events: { + sort: { + sorting: 'footable_sorting', + sorted: 'footable_sorted' + } + } + }; + + function Sort() { + var p = this; + p.name = 'Footable Sortable'; + p.init = function (ft) { + p.footable = ft; + if (ft.options.sort === true) { + $(ft.table) + .unbind('.sorting') + .bind({ + 'footable_initialized.sorting': function (e) { + var $table = $(ft.table), + $tbody = $table.find('> tbody'), + cls = ft.options.classes.sort, + column, $th; + + if ($table.data('sort') === false) return; + + $table.find('> thead > tr:last-child > th, > thead > tr:last-child > td').each(function (ec) { + var $th = $(this), column = ft.columns[$th.index()]; + if (column.sort.ignore !== true && !$th.hasClass(cls.sortable)) { + $th.addClass(cls.sortable); + $('<span />').addClass(cls.indicator).appendTo($th); + } + }); + + $table.find('> thead > tr:last-child > th.' + cls.sortable + ', > thead > tr:last-child > td.' + cls.sortable).unbind('click.footable').bind('click.footable', function (ec) { + ec.preventDefault(); + $th = $(this); + var ascending = !$th.hasClass(cls.sorted); + p.doSort($th.index(), ascending); + return false; + }); + + var didSomeSorting = false; + for (var c in ft.columns) { + column = ft.columns[c]; + if (column.sort.initial) { + var ascending = (column.sort.initial !== 'descending'); + p.doSort(column.index, ascending); + break; + } + } + if (didSomeSorting) { + ft.bindToggleSelectors(); + } + }, + 'footable_redrawn.sorting': function(e) { + var $table = $(ft.table), + cls = ft.options.classes.sort; + if ($table.data('sorted') >= 0) { + $table.find('> thead > tr:last-child > th').each(function(i){ + var $th = $(this); + if ($th.hasClass(cls.sorted) || $th.hasClass(cls.descending)) { + p.doSort(i); + return; + } + }); + } + }, + 'footable_column_data.sorting': function (e) { + var $th = $(e.column.th); + e.column.data.sort = e.column.data.sort || {}; + e.column.data.sort.initial = $th.data('sort-initial') || false; + e.column.data.sort.ignore = $th.data('sort-ignore') || false; + e.column.data.sort.selector = $th.data('sort-selector') || null; + + var match = $th.data('sort-match') || 0; + if (match >= e.column.data.matches.length) match = 0; + e.column.data.sort.match = e.column.data.matches[match]; + } + }) + //save the sort object onto the table so we can access it later + .data('footable-sort', p); + } + }; + + p.doSort = function(columnIndex, ascending) { + var ft = p.footable; + if ($(ft.table).data('sort') === false) return; + + var $table = $(ft.table), + $tbody = $table.find('> tbody'), + column = ft.columns[columnIndex], + $th = $table.find('> thead > tr:last-child > th:eq(' + columnIndex + ')'), + cls = ft.options.classes.sort, + evt = ft.options.events.sort; + + ascending = (ascending === undefined) ? $th.hasClass(cls.sorted) : + (ascending === 'toggle') ? !$th.hasClass(cls.sorted) : ascending; + + if (column.sort.ignore === true) return true; + + //raise a pre-sorting event so that we can cancel the sorting if needed + var event = ft.raise(evt.sorting, { column: column, direction: ascending ? 'ASC' : 'DESC' }); + if (event && event.result === false) return; + + $table.data('sorted', column.index); + + $table.find('> thead > tr:last-child > th, > thead > tr:last-child > td').not($th).removeClass(cls.sorted + ' ' + cls.descending); + + if (ascending === undefined) { + ascending = $th.hasClass(cls.sorted); + } + + if (ascending) { + $th.removeClass(cls.descending).addClass(cls.sorted); + } else { + $th.removeClass(cls.sorted).addClass(cls.descending); + } + + p.sort(ft, $tbody, column, ascending); + + ft.bindToggleSelectors(); + ft.raise(evt.sorted, { column: column, direction: ascending ? 'ASC' : 'DESC' }); + }; + + p.rows = function (ft, tbody, column) { + var rows = []; + tbody.find('> tr').each(function () { + var $row = $(this), $next = null; + if ($row.hasClass(ft.options.classes.detail)) return true; + if ($row.next().hasClass(ft.options.classes.detail)) { + $next = $row.next().get(0); + } + var row = { 'row': $row, 'detail': $next }; + if (column !== undefined) { + row.value = ft.parse(this.cells[column.sort.match], column); + } + rows.push(row); + return true; + }).detach(); + return rows; + }; + + p.sort = function (ft, tbody, column, ascending) { + var rows = p.rows(ft, tbody, column); + var sorter = ft.options.sorters[column.type] || ft.options.sorters.alpha; + rows.sort(function (a, b) { + if (ascending) { + return sorter(a.value, b.value); + } else { + return sorter(b.value, a.value); + } + }); + for (var j = 0; j < rows.length; j++) { + tbody.append(rows[j].row); + if (rows[j].detail !== null) { + tbody.append(rows[j].detail); + } + } + }; + } + + w.footable.plugins.register(Sort, defaults); + +})(jQuery, window); diff --git a/media/footable/js/footable.striping.js b/media/footable/js/footable.striping.js new file mode 100644 index 00000000..17c505b0 --- /dev/null +++ b/media/footable/js/footable.striping.js @@ -0,0 +1,57 @@ +(function ($, w, undefined) { + if (w.footable === undefined || w.foobox === null) + throw new Error('Please check and make sure footable.js is included in the page and is loaded prior to this script.'); + + var defaults = { + striping: { + enabled: true + }, + classes: { + striping: { + odd: 'footable-odd', + even: 'footable-even' + } + } + }; + + function Striping() { + var p = this; + p.name = 'Footable Striping'; + p.init = function (ft) { + p.footable = ft; + $(ft.table) + .unbind('striping') + .bind({ + 'footable_initialized.striping footable_row_removed.striping footable_redrawn.striping footable_sorted.striping footable_filtered.striping': function () { + + if ($(this).data('striping') === false) return; + + p.setupStriping(ft); + } + }); + }; + + p.setupStriping = function (ft) { + + var rowIndex = 0; + $(ft.table).find('> tbody > tr:not(.footable-row-detail)').each(function () { + + var $row = $(this); + + //Clean off old classes + $row.removeClass(ft.options.classes.striping.even).removeClass(ft.options.classes.striping.odd); + + if (rowIndex % 2 === 0) { + $row.addClass(ft.options.classes.striping.even); + } else { + $row.addClass(ft.options.classes.striping.odd); + } + + rowIndex++; + }); + }; + } + + w.footable.plugins.register(Striping, defaults); + +})(jQuery, window); diff --git a/media/footable/js/index.html b/media/footable/js/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/footable/js/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/footable/less/footable.core.less b/media/footable/less/footable.core.less new file mode 100644 index 00000000..7e287ef3 --- /dev/null +++ b/media/footable/less/footable.core.less @@ -0,0 +1,259 @@ +// Variables +@charPlus: "\e000"; +@charMinus: "\e001"; + +@charCircleFilledPlus: "\e002"; +@charCircleFilledMinus: "\e003"; + +@charCirclePlus: "\e004"; +@charCircleMinus: "\e005"; + +@charSquarePlus: "\e006"; +@charSquareMinus: "\e007"; + +@charSquareFilledPlus: "\e008"; +@charSquareFilledMinus: "\e009"; + +@charCircleFilledArrowUp: "\e00a"; +@charCircleFilledArrowDown: "\e00b"; +@charCircleFilledArrowLeft: "\e00c"; +@charCircleFilledArrowRight: "\e00d"; + +@charArrowUp: "\e00e"; +@charArrowDown: "\e00f"; +@charArrowLeft: "\e010"; +@charArrowRight: "\e011"; + +@charArrowSmallUp: "\e012"; +@charArrowSmallDown: "\e013"; +@charArrowSmallLeft: "\e014"; +@charArrowSmallRight: "\e015"; + +@charArrowAltUp: "\e016"; +@charArrowAltDown: "\e017"; +@charArrowAltLeft: "\e018"; +@charArrowAltRight: "\e019"; + +@charCircleArrowUp: "\e01a"; +@charCircleArrowDown: "\e01b"; +@charCircleArrowLeft: "\e01c"; +@charCircleArrowRight: "\e01d"; + +@charArrowTinyUp: "\e01e"; +@charArrowTinyDown: "\e01f"; +@charArrowTinyLeft: "\e020"; +@charArrowTinyRight: "\e021"; + +@charArrowSmallUpDown: "\e022"; + +@colorDarkGrey: #888; +@colorStriping: #F7F7F7; + +@fontPath: "fonts/"; +@fontFootable: 'footable'; + +.ToggleTheme (@charPlus, @charMinus) { + > tbody > tr { + &.footable-detail-show > td > span.footable-toggle:before { + content: @charMinus; + } + + > td > span.footable-toggle:before { + content: @charPlus; + } + } +} + +// Classes + +@font-face { + font-family: @fontFootable; + src:url('@{fontPath}footable.eot'); + src:url('@{fontPath}footable.eot?#iefix') format('embedded-opentype'), + url('@{fontPath}footable.woff') format('woff'), + url('@{fontPath}footable.ttf') format('truetype'), + url('@{fontPath}footable.svg#footable') format('svg'); + font-weight: normal; + font-style: normal; +} +@media screen and (-webkit-min-device-pixel-ratio: 0) { + @font-face { + font-family: @fontFootable; + src: url('@{fontPath}footable.svg#footable') format('svg'); + font-weight: normal; + font-style: normal; + } +} + +.footable { + width: 100%; + + + &.breakpoint { + > tbody > tr { + &.footable-detail-show > td { + border-bottom:none; + + & > span.footable-toggle:before { + content: @charMinus; + } + } + + &:hover:not(.footable-row-detail) { + cursor: pointer; + } + + > td.footable-cell-detail { + background: #eee; + border-top:none; + } + + > td > span.footable-toggle { + display: inline-block; + font-family: @fontFootable; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + -webkit-font-smoothing: antialiased; + padding-right:5px; + font-size:14px; + color: @colorDarkGrey; + + &:before { + content: @charPlus; + } + } + } + + &.toggle-circle { + .ToggleTheme(@charCirclePlus, @charCircleMinus); + } + + &.toggle-circle-filled { + .ToggleTheme(@charCircleFilledPlus, @charCircleFilledMinus); + } + + &.toggle-square { + .ToggleTheme(@charSquarePlus, @charSquareMinus); + } + + &.toggle-square-filled { + .ToggleTheme(@charSquareFilledPlus, @charSquareFilledMinus); + } + + &.toggle-arrow { + .ToggleTheme(@charArrowRight, @charArrowDown); + } + + &.toggle-arrow-small { + .ToggleTheme(@charArrowSmallRight, @charArrowSmallDown); + } + + &.toggle-arrow-circle { + .ToggleTheme(@charCircleArrowRight, @charCircleArrowDown); + } + + &.toggle-arrow-circle-filled { + .ToggleTheme(@charCircleFilledArrowRight, @charCircleFilledArrowDown); + } + + &.toggle-arrow-tiny { + .ToggleTheme(@charArrowTinyRight, @charArrowTinyDown); + } + + &.toggle-arrow-alt { + .ToggleTheme(@charArrowAltRight, @charArrowAltDown); + } + + &.toggle-medium > tbody > tr { + > td > span.footable-toggle { + font-size:18px; + } + } + + &.toggle-large > tbody > tr { + > td > span.footable-toggle { + font-size:24px; + } + } + } + + /** SORTING **/ + > thead > tr > th { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: -moz-none; + -ms-user-select: none; + user-select: none; + + &.footable-sortable:hover { + cursor:pointer; + } + + &.footable-sorted > span.footable-sort-indicator:before { + content: @charArrowSmallDown; + } + + &.footable-sorted-desc > span.footable-sort-indicator:before { + content: @charArrowSmallUp; + } + + > span.footable-sort-indicator { + display: inline-block; + font-family: @fontFootable; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + -webkit-font-smoothing: antialiased; + padding-left: 5px; + + &:before { + content: @charArrowSmallUpDown; + } + } + } + + /** PAGINATION **/ + > tfoot .pagination { + margin: 0; + } + + &.no-paging .hide-if-no-paging { + display: none; + } +} + +.footable-row-detail-inner { + display:table; +} + +.footable-row-detail-row { + display: table-row; + line-height: 1.5em; +} + +.footable-row-detail-group { + display: block; + line-height: 2em; + font-size: 1.2em; + font-weight: bold; +} + +.footable-row-detail-name { + display: table-cell; + font-weight: bold; + padding-right: 0.5em; +} + +.footable-row-detail-value { + display: table-cell; +} + +.footable-odd { + background-color: @colorStriping; +} diff --git a/media/footable/less/footable.metro.less b/media/footable/less/footable.metro.less new file mode 100644 index 00000000..6134538c --- /dev/null +++ b/media/footable/less/footable.metro.less @@ -0,0 +1,195 @@ +// Variables + +@colorRed: #fa3031; +@colorPurple: #932ab6; +@colorGreen: #43c83c; +@colorBlue: #1171a3; +@colorLightBlue: #52b9e9; +@colorGrey: #444; +@colorLightest: #efefef; +@colorStriping: #F7F7F7; +@colorLight: #eee; +@colorLightGrey: #ddd; +@colorBlack: #000; +@colorWhite: #fff; +@fontDefault: "Open Sans", Arial, Helvetica, sans-serif; + + +// Mixins + +.metroTheme(@color) { + border-color: @color; + + > tfoot > tr, + > thead > tr { + > th, + > td { + background-color: @color; + border-color: @color; + } + } +} + +.borderRadius(@radius) { + -moz-border-radius: @radius; + -webkit-border-radius: @radius; + border-radius: @radius; +} + + +// Classes + +.footable { + border-collapse: separate; + border-spacing: 0; + width: 100%; + border: 3px solid @colorLightBlue; + font-family: @fontDefault; + color: @colorGrey; + background: @colorLightest; + .borderRadius(0); + + &.breakpoint > tbody > tr { + &.footable-row-detail { + background: @colorLight; + } + + &:hover:not(.footable-row-detail) { + cursor: pointer; + } + + > td.footable-row-detail-cell { + background:#fff; + } + } + + > tbody { + img { + vertical-align: middle; + } + + > tr { + &:hover:not(.footable-row-detail) { + background: @colorLightGrey; + + > td { + color: @colorBlack; + } + } + + &:last-child > td { + border-bottom: none; + } + + > td { + border-top: 1px solid @colorLightGrey; + padding: 10px; + text-align: left; + border-left: none; + + &.footable-row-detail-cell, + &.footable-first-column { + border-left: none; + } + } + } + } + + > thead > tr { + > th { + border-bottom: 1px solid @colorLightGrey; + padding: 10px; + text-align: left; + } + + > th, + > td { + background-color: @colorLightBlue; + border: 1px solid @colorLightBlue; + color: @colorWhite; + border-top: none; + border-left: none; + font-weight: normal; + + &.footable-first-column { + border-left: none; + } + } + } + + > tfoot { + > tr { + > th, + > td { + background-color: @colorLightBlue; + border: 1px solid @colorLightBlue; + color: @colorWhite; + border-top: none; + border-left: none; + padding: 5px; + } + } + } + + // PAGINATION + > tfoot .pagination { + text-align: center; + ul { + display: inline-block; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + vertical-align: middle; + margin: 0; + padding: 0; + > li { + display: inline; + > a, + > span{ + float: left; + border: 2px solid transparent; + margin: 0 3px; + color: @colorWhite; + background: transparent; + padding:1px 5px; + text-decoration: none; + } + + &.disabled > a { + color:#888; + } + + &.active > a { + border-color: @colorWhite; + } + + &:first-child, + &:last-child { + > a, + > span { + .borderRadius(0); + } + } + } + } + } + + //Metro Themes + + &.metro-red { + .metroTheme(@colorRed); + } + &.metro-purple { + .metroTheme(@colorPurple); + } + &.metro-green { + .metroTheme(@colorGreen); + } + &.metro-blue { + .metroTheme(@colorBlue); + } +} + +.footable-odd{ + background-color: @colorStriping; +} \ No newline at end of file diff --git a/media/footable/less/footable.standalone.less b/media/footable/less/footable.standalone.less new file mode 100644 index 00000000..a3b504d7 --- /dev/null +++ b/media/footable/less/footable.standalone.less @@ -0,0 +1,230 @@ +// Variables + +@colorGrey: #444; +@colorLightGrey: #dce9f9; +@colorLighterGrey: #ebf3fc; +@colorSoftGrey: #ccc; +@colorSoftWhite: #fbf8e9; +@colorTransparentWhite: rgba(255,255,255,.8); +@colorLucidWhite: rgba(255,255,255,.5); +@colorLightest: #eee; +@colorStriping: #F7F7F7; +@colorWhite: #fff; +@fontFamily: 'trebuchet MS' , 'Lucida sans' , Arial; + + +// Mixins + +.borderRadius(@radius) { + -moz-border-radius: @radius; + -webkit-border-radius: @radius; + border-radius: @radius; +} + +.borderRadius(@r1, @r2, @r3, @r4) { + -moz-border-radius: @r1 @r2 @r3 @r4; + -webkit-border-radius: @r1 @r2 @r3 @r4; + border-radius: @r1 @r2 @r3 @r4; +} + +.boxShadow(@x, @y, @z, @color) { + -webkit-box-shadow: @x @y @z @color inset; + -moz-box-shadow: @x @y @z @color inset; + box-shadow: @x @y @z @color inset; +} + +.noBoxShadow() { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} + +.linearGradient(@colorFrom, @colorTo) { + background-color: @colorTo; + background-image: -webkit-gradient(linear, left top, left bottom, from(@colorFrom), to(@colorTo)); + background-image: -webkit-linear-gradient(top, @colorFrom, @colorTo); + background-image: -moz-linear-gradient(top, @colorFrom, @colorTo); + background-image: -ms-linear-gradient(top, @colorFrom, @colorTo); + background-image: -o-linear-gradient(top, @colorFrom, @colorTo); + background-image: linear-gradient(to bottom, @colorFrom, @colorTo); +} + + +// Classes + +.footable { + border-collapse: separate; + border-spacing: 0; + border: 1px solid @colorSoftGrey; + .borderRadius(6px); + font-family: @fontFamily; + font-size: 14px; + color: @colorGrey; + background: @colorWhite; + + > thead > tr { + &:first-child { + > th, + > td { + &.footable-first-column { + .borderRadius(6px, 0, 0, 0); + } + + &.footable-last-column { + .borderRadius(0, 6px, 0, 0); + } + + &.footable-first-column.footable-last-column { + .borderRadius(6px, 6px, 0, 0); + } + } + } + + > th { + border-left: 1px solid @colorSoftGrey; + border-top: 1px solid @colorSoftGrey; + padding: 10px; + text-align: left; + } + + > th, + > td { + .linearGradient(@colorLighterGrey, @colorLightGrey); + .boxShadow(0, 1px, 0, @colorTransparentWhite); + border-top: none; + text-shadow: 0 1px 0 @colorLucidWhite; + + &.footable-first-column { + border-left: none; + } + } + } + + &.breakpoint > tbody > tr.footable-row-detail { + background: @colorLightest; + + > .footable-row-detail-cell { + border-left: none; + } + } + + > tbody { + img { + vertical-align: middle; + } + + > tr { + &:hover { + background: @colorSoftWhite; + } + + &:last-child > td { + &.footable-first-column { + .borderRadius(0, 0, 0, 6px); + } + + &.footable-last-column { + .borderRadius(0, 0, 6px, 0); + } + + &.footable-first-column.footable-last-column { + .borderRadius(0, 0, 6px, 6px); + } + } + + > td { + border-top: 1px solid @colorSoftGrey; + border-left: 1px solid @colorSoftGrey; + padding: 10px; + text-align: left; + + &.footable-first-column { + border-left: none; + } + } + } + } + + > tfoot > tr { + > th, + > td { + .linearGradient(@colorLighterGrey, @colorLightGrey); + .boxShadow(0, 1px, 0, @colorTransparentWhite); + border-top: 1px solid @colorSoftGrey; + text-shadow: 0 1px 0 @colorLucidWhite; + padding: 10px; + } + } + + .pagination { + margin: 20px 0; + > ul { + display: inline-block; + margin: 0; + padding: 0; + .borderRadius(6px); + .noBoxShadow(); + background-color: @colorWhite; + > li { + display: inline; + > a, + > span { + float: left; + padding: 4px 12px; + line-height: 20px; + text-decoration: none; + border: 1px solid @colorSoftGrey; + border-left-width: 0; + } + } + > li:first-child > a, + > li:first-child > span { + -webkit-border-bottom-left-radius: 4px; + -moz-border-radius-bottomleft: 4px; + border-bottom-left-radius: 4px; + -webkit-border-top-left-radius: 4px; + -moz-border-radius-topleft: 4px; + border-top-left-radius: 4px; + border-left-width: 1px; + } + > li:last-child > a, + > li:last-child > span { + -webkit-border-top-right-radius: 4px; + -moz-border-radius-topright: 4px; + border-top-right-radius: 4px; + -webkit-border-bottom-right-radius: 4px; + -moz-border-radius-bottomright: 4px; + border-bottom-right-radius: 4px; + } + > li > a:hover, + > li > a:focus, + > .active > a, + > .active > span { + background-color: @colorLightest; + } + > .active > a, + > .active > span { + color: @colorGrey; + cursor: default; + } + > .disabled > span, + > .disabled > a, + > .disabled > a:hover, + > .disabled > a:focus { + color: @colorSoftGrey; + cursor: default; + background-color: @colorLighterGrey; + } + } + &.pagination-centered { + text-align: center; + } + &.pagination-right { + text-align: center; + } + } +} + +.footable-odd{ + background-color: @colorStriping; +} \ No newline at end of file diff --git a/media/footable/less/index.html b/media/footable/less/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/footable/less/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/images/index.html b/media/images/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/images/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/index.html b/media/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/js/index.html b/media/js/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/js/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/soundmanager/README.rdoc b/media/soundmanager/README.rdoc new file mode 100644 index 00000000..451d7a2b --- /dev/null +++ b/media/soundmanager/README.rdoc @@ -0,0 +1,72 @@ +== SoundManager 2: JavaScript Sound for the Web + +By wrapping and extending HTML5 and Flash Audio APIs, SoundManager 2 brings reliable cross-platform audio to JavaScript. + +== HTML5 Audio() Support + + * 100% Flash-free MP3 + MP4/AAC where supported + * Compatible with Apple iPad 3.2, iPhone/iOS 4 and newer + * Fallback to Flash for MP3/MP4 support, as needed + * SM2 API is transparent; HTML5/flash switching handled internally + * HTML5 API support approximates Flash 8 API features + * Some other formats (WAV/OGG) supported via HTML5, depending on browser + * See "useHTML5Audio" property for implementation details + +== Basic API Features (Flash 8) + + * Load, stop, play, pause, mute, seek, pan and volume control of sounds from Javascript + * Events: onload, whileloading, whileplaying, onfinish and more + * ID3V1 and ID3V2 tag support for MP3s (title, artist, genre etc.) + +== Shiny Flash 9 Features + + * RTMP / Flash Media Server streaming support + * MPEG-4 (AAC, HE-AAC, H.264) audio support + * "MultiShot" play (layered/chorusing effects) + * Waveform/frequency spectrum data + * Peak (L/R channel volume) data + * Audio buffering state/event handling + +== General Tech Stuff + + * Full API Documentation with examples and notes + * console.log()-style debug output and troubleshooting tools + * Community-based discussion/support + +== As Heard On The Internets + +A few nifty sites that have implemented SM2 for driving audio: + + * Tidal + * Beats + * Songza + * Earbits + * freesound.org + * last.fm + * 8tracks + * Discogs + * The Hype Machine + * nyan.cat + +== Project home, documentation, live demos etc.: + +http://www.schillmania.com/projects/soundmanager2/ + +== Compiling JS builds (-nodebug, -jsmin) and Flash components, AS2/AS3 to SWF + +An Ant build file defines the tasks for compiling JS and SWF components, useful if you make changes to the SM2 source and want to recompile. +Google's Closure Compiler is used for the JS. AS2 compilation is done by MTASC, and AS3 is handled by Adobe's Open Source Flex SDK (mxmlc) compiler. +Refer to the build.xml file for compiler downloads and path definitions. + +== Versioning / Development Notes + +Releases are versioned by date, e.g., V2.97a.20110424 and are tagged as such.* +The latest official release is always on trunk/master. +Post-release development builds may be available on the appropriate +DEV branch, eg., V2.97a.20110801+DEV + +== Forks and Pull Requests + +Firstly, thank you for wanting to contribute! Bug fixes and tweaks are welcomed, particularly if they follow the general coding style of the project. +If making a pull request, use the project's current +DEV development branch as the merge target instead of "master", if possible (please and thank-you.) + +* SoundManager 2 has been at "version" 2.97 for a long time, because 2.97 was arguably the best llama-ass-whipping version of WinAmp. (WinAmp 3 was not as good, and WinAmp 5 was "the best of 2 and 3 combined.") This MP3 player was my favourite Windows app during the 90's, and is missed as there's nothing quite like it on OS X where I spend most of my time these days. diff --git a/media/soundmanager/demo/360-player/360 button (retina - not playing).psd b/media/soundmanager/demo/360-player/360 button (retina - not playing).psd new file mode 100644 index 00000000..38479c8d Binary files /dev/null and b/media/soundmanager/demo/360-player/360 button (retina - not playing).psd differ diff --git a/media/soundmanager/demo/360-player/360 button (retina - playing).psd b/media/soundmanager/demo/360-player/360 button (retina - playing).psd new file mode 100644 index 00000000..b44caee0 Binary files /dev/null and b/media/soundmanager/demo/360-player/360 button (retina - playing).psd differ diff --git a/media/soundmanager/demo/360-player/360 button - large.psd b/media/soundmanager/demo/360-player/360 button - large.psd new file mode 100644 index 00000000..930b41e0 Binary files /dev/null and b/media/soundmanager/demo/360-player/360 button - large.psd differ diff --git a/media/soundmanager/demo/360-player/360 button.psd b/media/soundmanager/demo/360-player/360 button.psd new file mode 100644 index 00000000..afd04980 Binary files /dev/null and b/media/soundmanager/demo/360-player/360 button.psd differ diff --git a/media/soundmanager/demo/360-player/360-button-pause-2x.png b/media/soundmanager/demo/360-player/360-button-pause-2x.png new file mode 100644 index 00000000..f348d7ad Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-pause-2x.png differ diff --git a/media/soundmanager/demo/360-player/360-button-pause-light-2x.png b/media/soundmanager/demo/360-player/360-button-pause-light-2x.png new file mode 100644 index 00000000..4b1e436e Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-pause-light-2x.png differ diff --git a/media/soundmanager/demo/360-player/360-button-pause-light.gif b/media/soundmanager/demo/360-player/360-button-pause-light.gif new file mode 100644 index 00000000..a7efb1da Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-pause-light.gif differ diff --git a/media/soundmanager/demo/360-player/360-button-pause-light.png b/media/soundmanager/demo/360-player/360-button-pause-light.png new file mode 100644 index 00000000..4412d438 Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-pause-light.png differ diff --git a/media/soundmanager/demo/360-player/360-button-pause.gif b/media/soundmanager/demo/360-player/360-button-pause.gif new file mode 100644 index 00000000..5317ded4 Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-pause.gif differ diff --git a/media/soundmanager/demo/360-player/360-button-pause.png b/media/soundmanager/demo/360-player/360-button-pause.png new file mode 100644 index 00000000..5a74e94b Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-pause.png differ diff --git a/media/soundmanager/demo/360-player/360-button-play-2x.png b/media/soundmanager/demo/360-player/360-button-play-2x.png new file mode 100644 index 00000000..4321e3ed Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-play-2x.png differ diff --git a/media/soundmanager/demo/360-player/360-button-play-light-2x.png b/media/soundmanager/demo/360-player/360-button-play-light-2x.png new file mode 100644 index 00000000..25fc0572 Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-play-light-2x.png differ diff --git a/media/soundmanager/demo/360-player/360-button-play-light.gif b/media/soundmanager/demo/360-player/360-button-play-light.gif new file mode 100644 index 00000000..22be94f8 Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-play-light.gif differ diff --git a/media/soundmanager/demo/360-player/360-button-play-light.png b/media/soundmanager/demo/360-player/360-button-play-light.png new file mode 100644 index 00000000..fc30c5f4 Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-play-light.png differ diff --git a/media/soundmanager/demo/360-player/360-button-play.gif b/media/soundmanager/demo/360-player/360-button-play.gif new file mode 100644 index 00000000..d150c0d6 Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-play.gif differ diff --git a/media/soundmanager/demo/360-player/360-button-play.png b/media/soundmanager/demo/360-player/360-button-play.png new file mode 100644 index 00000000..d69ce57e Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-play.png differ diff --git a/media/soundmanager/demo/360-player/360-button-vis-pause-light.gif b/media/soundmanager/demo/360-player/360-button-vis-pause-light.gif new file mode 100644 index 00000000..68bf149f Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-vis-pause-light.gif differ diff --git a/media/soundmanager/demo/360-player/360-button-vis-pause-light.png b/media/soundmanager/demo/360-player/360-button-vis-pause-light.png new file mode 100644 index 00000000..96a89ff7 Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-vis-pause-light.png differ diff --git a/media/soundmanager/demo/360-player/360-button-vis-pause.gif b/media/soundmanager/demo/360-player/360-button-vis-pause.gif new file mode 100644 index 00000000..4bd23332 Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-vis-pause.gif differ diff --git a/media/soundmanager/demo/360-player/360-button-vis-pause.png b/media/soundmanager/demo/360-player/360-button-vis-pause.png new file mode 100644 index 00000000..d62fd3c8 Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-vis-pause.png differ diff --git a/media/soundmanager/demo/360-player/360-button-vis-play-light.gif b/media/soundmanager/demo/360-player/360-button-vis-play-light.gif new file mode 100644 index 00000000..7ce69321 Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-vis-play-light.gif differ diff --git a/media/soundmanager/demo/360-player/360-button-vis-play-light.png b/media/soundmanager/demo/360-player/360-button-vis-play-light.png new file mode 100644 index 00000000..599b0c67 Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-vis-play-light.png differ diff --git a/media/soundmanager/demo/360-player/360-button-vis-play.gif b/media/soundmanager/demo/360-player/360-button-vis-play.gif new file mode 100644 index 00000000..4837776a Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-vis-play.gif differ diff --git a/media/soundmanager/demo/360-player/360-button-vis-play.png b/media/soundmanager/demo/360-player/360-button-vis-play.png new file mode 100644 index 00000000..a36478d8 Binary files /dev/null and b/media/soundmanager/demo/360-player/360-button-vis-play.png differ diff --git a/media/soundmanager/demo/360-player/360player-visualization.css b/media/soundmanager/demo/360-player/360player-visualization.css new file mode 100644 index 00000000..c931ae5a --- /dev/null +++ b/media/soundmanager/demo/360-player/360player-visualization.css @@ -0,0 +1,150 @@ +/* larger canvas, spectrum + EQ visualization and other items */ + +.ui360-vis, +.ui360-vis .sm2-360ui, +.sm2-inline-list .ui360-vis { + /* size of the container for the circle, etc. */ + width:256px; + height:256px; +} + +.ui360-vis { + position:relative; + /* a little extra spacing */ + padding-top:1px; + padding-bottom:1px; + padding-left:248px; + margin-left:0px; + background-position:22.6% 50%; /* (~109px) initial play button position */ +} + +.sm2-inline-list .ui360-vis { + cursor:pointer +} + +.ui360-vis a { + font:14px "helvetica neue",helvetica,monaco,lucida,terminal,monospace; + white-space:nowrap; + text-indent:0px; /* undo inline style */ + top:46%; /* ehh. */ +} + +.sm2-inline-list .ui360-vis a { + line-height:256px; + top:auto; +} + +.ui360-vis .sm2-360ui { + margin-left:-256px; +} + +.ui360-vis .sm2-timing { + font:bold 24px "helvetica neue",helvetica,monaco,lucida,terminal,monospace; + color:#333; + text-align:center; + line-height:256px; + text-indent:0px; +} + +.sm2-inline-list .ui360-vis, +.sm2-inline-list .ui360-vis .sm2-360ui { + margin-left:0px; +} + +.sm2-inline-list .ui360-vis { + margin:8px 13px 7px 0px; + padding-left:0px; + background-position:50% 50%; /* initial play button position */ +} + +.sm2-inline-list .ui360-vis .sm2-360ui { + border:1px solid #eee; + /* offset the border */ + margin-left:-1px; + margin-top:-1px; +} + +.sm2-inline-list .ui360-vis a { + position:absolute; + display:inline; + left:0px; + bottom:0px; + top:1px; + width:100%; /* 2px padding in box */ + height:99%; /* dumb vertical hack */ + *height:256px; /* IE is dumb. */ + overflow:hidden; + font-size:small; + font-weight:300; + color:#333; + margin:0px; + padding:0px; + line-height:488px; /* bottom vertical alignment for text */ + *line-height:480px; /* IE again */ + text-align:center; + border-radius:0px; +} + +.sm2-inline-list .ui360 a:hover { + background-color:transparent; /* reset */ +} + +.sm2-inline-list .ui360-vis:hover .sm2-360ui, +.sm2-inline-list .ui360-vis a.sm2_link:hover, +.sm2-inline-list .ui360-vis a.sm2_link:active, +.sm2-inline-list .ui360-vis a.sm2_link:focus { + background-color:transparent; +} + +/* Use a bigger loading image for this layout */ + +.ui360-vis .sm2-360btn, +.ui360-vis .sm2-360ui.sm2_paused .sm2-360btn, +.ui360-vis .sm2-360ui.sm2_playing .sm2-360btn { + width:48px; + height:48px; + margin-left:-24px; + margin-top:-24px; + border-radius: none; +} + +.ui360-vis, +.ui360-vis .sm2-360ui.sm2_paused .sm2-360btn, +.ui360-vis .sm2-360btn-default { + background:transparent url(360-button-vis-play.png) no-repeat 50% 50%; + background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAABuVBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADv7++lpaXr6+uAgIDk5OQzMzPt7e1tbW3n5+dgYGDW1tZNTU10dHQ5OTnw8PCvr6/e3t6JiYlAQEDb29vo6OgrKyuqqqrq6uq4uLjf399AQEDGxsbq6uqAgIDY2Nje3t61tbXp6enU1NTu7u7r6+vl5eXt7e2fn5/n5+fDw8Ph4eHv7+/t7e3CwsLW1tbu7u7b29vw8PDm5uYgICDp6enY2Nji4uLo6Ojm5uakpKTS0tLPz8/h4eHw8PDs7Ozj4+Pa2trg4ODx8fHT09Pk5OTPz8/S0tLBwcGmpqawsLCOjo7h4eHn5+fo6OgAAADY2NjNzc3n5+cAAADd3d3Gxsbu7u7t7e0AAADX19fl5eXi4uLf39/Hx8fn5+fs7Ozg4ODR0dHX19e4uLjv7+/z8/P09PTy8vL19fXv7+/n5+fx8fH29vbs7Ozq6urm5ubo6Ojw8PDu7u7p6enr6+sAAAB/f3/Z2dn39/fh4eGOjo4ODg7t7e3l5eWWlpba2tqjo6NVVVXk5OTe3t65ubnMzMzExMTf39/GxsampqZiYmJNcTiZAAAAbXRSTlMAAQIEAwcFCAb5EdAImAXpB6oIUAoLCfsgZQ0EVrsGEr4ZYQgbsgpUYxikNd/aatQQli+R7rlUUdas6+8I+VaFruoOOV/S8Nq5sWL8UqmKUFsuHyTcrtsJm0z7C49V3NMKkdKXuk7S7oVeVSv7tAAEVwAAAu5JREFUeF6llmVz3DwURmNLsr1pmJmZmZmxzMwsybS8gXJfhl9cKXbHEK+TmZ4P/nDnOXN1NbalHD8CQ7QRGDmhnIQhBDYQnkhheRECSVIQQrLMHookAciUkHhBw1zVwuLShcJIpPDC0uJC1VxDQTaFx1srSvM3DUxU1TRVlWBjM7+0opUrQaupLSnrLK7ELIepwaCYmbiyuLOspJY38eeLykdGxzDhYQfKCmOjI+VFPkMQYF7NZD0l2DgFJrR+siYPegxBzBvqeoQxpgGw8qOuoTz3HGw9udUPCaFZIORhdS5blZOHjXWDBIdABusanb0S4MpqEw4XcNPqCrQFQQTN+XwPQ8CY5jcDUbB3KLdlg6hnQDZacqEgWA3a2rF6Jri9zWohwI6dXXK2QHZ3OqBw0qC7B6vnAPd0sxZMkHr7VNPD34YZgNrXK3EBSgPU9HJ4eIQDDDogQS4ow4QJxy4+MmKs4oYJZFhhggjQuMoKHoHzn3bsQx1HQOTClOkXLP6lviZTtjCjmn7B5g/izqszliBHTB+HDhl3PSJbwnxSS3n45HDkVLXkvCWg5Uws7eHgJ98/uKqxzLI9w3o6oXuwhd+OPNVEet0WtnU9/sWNJfz1u6cY1/VtLghQuRgk/PmBmT7hogJPXo3L8YQed3Nw8PWfuB89Eb8scUGUrl33DfH/N93BGeH6NUnkArh1O5FOuNETp2GR27cAE/iaJu6mz8HdCQnan+i96XQmdgaZ9PQ9+xMVoPJgNhrNhBKNzj5Q+E/AavH4SSz6OZRo7Mlj3oDDp7jyPJoKJfr8CpvAOUrQi6eppJaVZOrpCwTdP1cgr93UjKxoN9dka2KX8ealZtBADO3lG2+e7xRAd7Y0igOg2tYdBKD/CBIBenf/lYGJD2y8uv8OgaBDDkry3v57SlQXhL7f35OlwJOXGUBBl571JykmzCIE02T/s0tIASyf/R6Arr59fcM62G+8fnsVhdwFwq4Ov345Of/15wd0RYY81HHUTQAAAABJRU5ErkJggg==); + *background-image:url(360-button-vis-play.png); + _background:transparent url(360-button-vis-play.gif) no-repeat 50% 50%; + cursor:pointer; +} + +.ui360-vis:hover .sm2-360btn, +.ui360-vis .sm2-360btn-default:hover, +.ui360-vis .sm2-360ui.sm2_paused .sm2-360btn:hover { + background:transparent url(360-button-vis-play-light.png) no-repeat 50% 50%; + _background:transparent url(360-button-vis-play.gif) no-repeat 50% 50%; + cursor:pointer; +} + + +.ui360-vis .sm2-360ui.sm2_playing .sm2-360btn:hover, +.ui360-vis .sm2-360btn-playing:hover { + background:transparent url(360-button-vis-pause-light.png) no-repeat 50% 50%; + _background:transparent url(360-button-vis-pause-light.gif) no-repeat 50% 50%; + cursor:pointer; +} + +.ui360-vis { + /* non-JS / before-loaded state */ + background-position: 21% 50%; + _background:transparent url(360-button-vis-play.gif) no-repeat 21% 50%; /* IE 6-only: special crap GIF */ +} + +.ui360-vis .sm2-360btn-default { + /* real button, post-loaded state */ + _background:transparent url(360-button-vis-play.gif) no-repeat 50% 50%; /* IE 6-only: special crap GIF */ +} + +.ui360-vis .sm2-360ui.sm2_dragging .sm2-360btn { + visibility: hidden; +} \ No newline at end of file diff --git a/media/soundmanager/demo/360-player/360player.css b/media/soundmanager/demo/360-player/360player.css new file mode 100644 index 00000000..7ad639b0 --- /dev/null +++ b/media/soundmanager/demo/360-player/360player.css @@ -0,0 +1,316 @@ +/* General warning: Beta-ish. Code could be a bit cleaner. */ + +.ui360, /* entire UI */ +.sm2-360ui { /* canvas container */ + position:relative; +} + +.ui360 { + margin-bottom: 5px; + margin-right: 5px; +} + +.ui360, +.sm2-360ui { + min-width:50px; /* should always be at least this. */ + min-height:50px; +} + +.sm2-360ui { + width:50px; + height:50px; +} + +.sm2-360ui { + /* slight inner shadow + BG color + border */ + background-color: #f9f9f9; + background-color: rgba(0,0,0,0.025); + box-shadow: inset 0px 0px 8px rgba(0,0,0,0.15); + /* a little radii, modern browsers only */ + border-radius: 100%; + -webkit-transition: all 0.1s ease-in-out; + -moz-transition: all 0.1s ease-in-out; + transition: all 0.1s ease-in-out; + /* specifics */ + -moz-transition-property: background, border, box-shadow; + -webkit-transition-property: background, border, box-shadow; + transition-property: background, border, box-shadow; +} + +.sm2-360ui:hover { + background-color: rgba(0,0,0,0.1); + border-color: rgba(0,0,0,0.15); + box-shadow: inset 0px 0px 5px rgba(0,0,0,0.15); +} + +.ui360, +.ui360 * { + vertical-align:middle; +} + +.sm2-360ui { + position:relative; + display:inline-block; /* firefox 3 et al */ + float:left; /* IE 6+7, firefox 2 needs this, inline-block would work with fx3 and others */ + *display:inline; + clear:left; +} + +.sm2-360ui.sm2_playing, +.sm2-360ui.sm2_paused { + /* bump on top when active */ + z-index:10; +} + +.ui360 a { /* .sm2_link class added to playable links by SM2 */ + float:left; + display:inline; + position:relative; + color:#000; + text-decoration:none; + left:3px; /* slight spacing on left UI */ + top:18px; /* vertical align */ + text-indent:50px; /* make room for UI at left */ +} + +.ui360 a.sm2_link { /* SM2 has now started */ + text-indent:0px; /* UI now in place. */ +} + +.ui360 a, +.ui360 a:hover, +.ui360 a:focus { + padding:2px; + margin-left:-2px; + margin-top:-2px; +} + +.ui360 a:hover, +.ui360 a:focus { + background:#eee; + border-radius:3px; + outline:none; +} + +.ui360 .sm2-canvas { + position:absolute; + left:0px; + top:0px; +} + +.ui360 .sm2-canvas.hi-dpi { + /* hi-dpi / "retina" screens */ + top: -50%; + left: -50%; + -moz-transform: scale(0.5); + -ms-transform: scale(0.5); + -webkit-transform: scale(0.5); + transform: scale(0.5); +} + +.ui360 .sm2-timing { + position:absolute; + display:block; + left:0px; + top:0px; + width:100%; + height:100%; + margin:0px; + font:11px "helvetica neue",helvetica,monaco,lucida,terminal,monospace; + color:#666; + text-align:center; + line-height:50px; +} + +.ui360 .sm2-timing.alignTweak { + /* devious center-alignment tweak for Safari (might break things for others.) */ + /* no longer applies. */ + /* + text-indent:1px; + */ +} + +.ui360 .sm2-cover { + position:absolute; + left:0px; + top:0px; + width:100%; + height:100%; + z-index:2; + display:none; + background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==); /* old-skool bug: IE 9 won't catch mouse events otherwise. /smash */ +} + +.ui360 .sm2-360btn { + position:absolute; + display:block; + top:50%; + left:50%; +/* + width:22px; + height:22px; + margin-left:-11px; + margin-top:-11px; +*/ + /* by default, cover whole space. make smaller when playing. */ + width:50px; + height:50px; + margin-left:-25px; + margin-top:-25px; + border-radius: 25px; + cursor:pointer; + z-index:3; +} + +.ui360 .sm2-360data { + display:inline-block; + font-family:helvetica; +} + +.sm2-inline-block .ui360 .sm2-360btn, +.ui360 .sm2-360ui.sm2_playing .sm2-360btn, +.ui360 .sm2-360ui.sm2_paused .sm2-360btn { + /* smaller clickable button, in center */ + width:22px; + height:22px; + margin-left:-11px; + margin-top:-11px; +} + +.ui360 .sm2-360ui.sm2_playing .sm2-cover, +.ui360 .sm2-360ui.sm2_paused .sm2-cover { + display:block; +} + +/* this could be optimized a fair bit. */ + +.ui360, +.ui360 .sm2-360btn-default, +.ui360 .sm2-360ui.sm2_paused .sm2-360btn { + background:transparent url(360-button-play.png) no-repeat; + /* if you change the source image, update these data: URIs as well. */ + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAABoUlEQVR42sWVu2oCQRhGU/s8gpVYJeQJNkZSbiH4QNuLlQZS21sJayGYaOEFVFDxNiremj9zig2uzk5YQpKFg8PMd75ZZle9E5Ff4e+Ll8tlQuNoPI2vUcCYOdbIxCmm9F5T0YgNMmS/LebSwWdNa7VayXq9ls1mI9vtVna7nQBj5lgjQxYHN7KY3QkiUbDf7+V4PMrpdArBHGtkyOJc3/n1mVaUUl+F5/PZSrABDi4dpmKH3QkixQEHlw5TsccZmsRCoSD1et1ajkuHqdg/HA5GKZPJCOTzeanVasYMLh2mYsXDIGAoDuG6rlSr1WCdBxrcsTIWazgrQiHS6bSRYJ3XDzeq2O/3+9Ltdm9IpVIhstmslEqlUAY36ii8ZrMpjUbjhmQyKeA4jhSLRWMGN+rhOZ1Oh8ANuVxOyuUy40hwo163RK/XeyPQbrdjgYNr/ILAYDB41Gf1wZnFAQfX+iM0HA5fxuPx+2g0Ej22QoYsDq61mGsymTxMp9NX/Sk2yJDFsRZfXpzXbDZ7WiwW3nw+9zUKGDPHGpkL5V//mn7OJyJZApyzeUS5AAAAAElFTkSuQmCC); + /* hi-dpi, we presume */ + background-image: none, url(360-button-play-2x.png); + background-size: 22px 22px; + *background-image: url(360-button-play.png); + background-repeat: no-repeat; +} + +.ui360 { + /* + "fake" button shown before SM2 has started, non-JS/non-SM2 case etc. + background image will be removed via JS, in threeSixyPlayer.init() + */ + background-position: 14px 50%; + _background:transparent url(360-button-play.gif) no-repeat 14px 50%; /* IE 6-only: special crap GIF */ +} + +.ui360 .sm2-360btn-default, +.ui360 .sm2-360ui.sm2_paused .sm2-360btn { + background-position:50% 50%; + _background:transparent url(360-button-play.gif) no-repeat 50% 50%; /* IE 6-only: special crap GIF */ +} + +.ui360 .sm2-360btn-default, +.ui360 .sm2-360ui.sm2_paused .sm2-360btn { + cursor:pointer; +} + +.ui360 .sm2-360btn-default:hover, +.ui360 .sm2-360ui.sm2_paused .sm2-360btn:hover { + background:transparent url(360-button-play-light.png) no-repeat 50% 50%; + /* hi-dpi, we presume */ + background-image: none, url(360-button-play-light-2x.png); + background-size: 22px 22px; + _background:transparent url(360-button-play.gif) no-repeat 50% 50%; + cursor:pointer; +} + +.ui360 .sm2-360ui.sm2_playing .sm2-360btn:hover, +.ui360 .sm2-360btn-playing:hover { + background:transparent url(360-button-pause-light.png) no-repeat 50% 50%; + background-image: none, url(360-button-pause-light-2x.png); + background-size: 22px 22px; + _background:transparent url(360-button-pause-light.gif) no-repeat 50% 50%; + cursor:pointer; +} + +.ui360 .sm2-360ui.sm2_playing .sm2-timing { + visibility:visible; +} + +.ui360 .sm2-360ui.sm2_buffering .sm2-timing { + visibility:hidden; +} + +.ui360 .sm2-360ui .sm2-timing, +.ui360 .sm2-360ui .sm2-360btn:hover + .sm2-timing, +.ui360 .sm2-360ui.sm2_paused .sm2-timing { + visibility:hidden; +} + +.ui360 .sm2-360ui.sm2_dragging .sm2-timing, +.ui360 .sm2-360ui.sm2_dragging .sm2-360btn:hover + .sm2-timing { + /* paused + dragging */ + visibility:visible; +} + +.ui360 .sm2-360ui.sm2_playing .sm2-360btn, +.ui360 .sm2-360ui.sm2_dragging .sm2-360btn, +.ui360 .sm2-360ui.sm2_dragging .sm2-360btn:hover, +.ui360 .sm2-360ui.sm2_dragging .sm2-360btn-playing:hover { + /* don't let pause button show on hover when dragging (or paused and dragging) */ + background:transparent; + cursor:auto; +} + +.ui360 .sm2-360ui.sm2_buffering .sm2-360btn, +.ui360 .sm2-360ui.sm2_buffering .sm2-360btn:hover { + background:transparent url(icon_loading_spinner.gif) no-repeat 50% 50%; + opacity:0.5; + visibility:visible; +} + +/* inline list style */ + +.sm2-inline-list .ui360, +.sm2-inline-block .ui360 { + position:relative; + display:inline-block; + float:left; + _display:inline; + /* + margin-bottom:-15px; + */ +} + +.sm2-inline-block .ui360 { + margin-right:8px; +} + +.sm2-inline-list .ui360 a { + display:none; +} + +/* annotations */ + +ul.ui360playlist { + list-style-type:none; +} + +ul.ui360playlist, +ul.ui360playlist li { + margin:0px; + padding:0px; +} + +div.ui360 div.metadata { + display:none; +} + +div.ui360 a span.metadata, +div.ui360 a span.metadata * { + /* name of track, note etc. */ + vertical-align:baseline; +} diff --git a/media/soundmanager/demo/360-player/canvas-visualization-basic.html b/media/soundmanager/demo/360-player/canvas-visualization-basic.html new file mode 100644 index 00000000..352856b4 --- /dev/null +++ b/media/soundmanager/demo/360-player/canvas-visualization-basic.html @@ -0,0 +1,132 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> +<head> +<title>360&deg; MP3 player UI demo (SoundManager 2): Javascript + Canvas Visualization, basic example</title> +<meta name="robots" content="noindex" /> +<meta name="description" content="Basic example of 360-degree circular control for MP3 links, with EQ and spectrum visualization options" /> +<!-- demo: make the fonts nicer etc. --> +<link rel="stylesheet" type="text/css" href="../index.css" /> + +<!-- soundManager.useFlashBlock: related CSS --> +<link rel="stylesheet" type="text/css" href="../flashblock/flashblock.css" /> + +<!-- required --> +<link rel="stylesheet" type="text/css" href="360player.css" /> +<link rel="stylesheet" type="text/css" href="360player-visualization.css" /> + +<!-- special IE-only canvas fix --> +<!--[if IE]><script type="text/javascript" src="script/excanvas.js"></script><![endif]--> + +<!-- Apache-licensed animation library --> +<script type="text/javascript" src="script/berniecode-animator.js"></script> + +<!-- the core stuff --> +<script type="text/javascript" src="../../script/soundmanager2.js"></script> +<script type="text/javascript" src="script/360player.js"></script> + +<script type="text/javascript"> + +soundManager.setup({ + // path to directory containing SM2 SWF + url: '../../swf/' +}); + +threeSixtyPlayer.config.scaleFont = (navigator.userAgent.match(/msie/i)?false:true); +threeSixtyPlayer.config.showHMSTime = true; + +// enable some spectrum stuffs + +threeSixtyPlayer.config.useWaveformData = true; +threeSixtyPlayer.config.useEQData = true; + +// enable this in SM2 as well, as needed + +if (threeSixtyPlayer.config.useWaveformData) { + soundManager.flash9Options.useWaveformData = true; +} +if (threeSixtyPlayer.config.useEQData) { + soundManager.flash9Options.useEQData = true; +} +if (threeSixtyPlayer.config.usePeakData) { + soundManager.flash9Options.usePeakData = true; +} + +if (threeSixtyPlayer.config.useWaveformData || threeSixtyPlayer.flash9Options.useEQData || threeSixtyPlayer.flash9Options.usePeakData) { + // even if HTML5 supports MP3, prefer flash so the visualization features can be used. + soundManager.preferFlash = true; +} + +// favicon is expensive CPU-wise, but can be enabled. +threeSixtyPlayer.config.useFavIcon = false; + +</script> + +<link rel="stylesheet" type="text/css" href="demo.css" /> +<style type="text/css"> + +#left h2 { + padding-top:0px; + margin-bottom:0.25em; + color:#666; +} + +pre.block { + margin-top:0.5em; +} + +/* special case */ + +#left { + width:auto; + max-width:100%; +} + +</style> + +</head> + +<body> + +<div id="left"> + + <h1><a href="http://schillmania.com/projects/soundmanager2/demo/360-player/">360&deg; Player Demo</a> - Visualization Example, Basic Template</h1> + + <p class="note" style="color:#666;margin-bottom:0.5em">Canvas-based UI with visualization options. <b>Note: No EQ/spectrum support for IE &lt; 9 (too slow.) Data not implemented in HTML5.</b></p> + + <div style="clear:left"></div> + + <div id="sm2-container"> + <!-- sm2 flash goes here --> + </div> + + <!-- here are the MP3 links, which are decorated with the 360 canvas element/UI etc. --> + + <h2 style="margin-top:1em">Inline list</h2> + + <div class="sm2-inline-list"> <!-- remove this class to have one item per line --> + + <div class="ui360 ui360-vis"><a href="../../demo/mpc/audio/CRASH_1.mp3">Crash 1</a></div> + <div class="ui360 ui360-vis"><a href="../../demo/mpc/audio/CRASH_5.mp3">Crash 5</a></div> + <div class="ui360 ui360-vis"><a href="../../demo/mpc/audio/CRASH_6.mp3">Crash 6</a></div> + <div class="ui360 ui360-vis"><a href="../../demo/mpc/audio/CHINA_1.mp3">China 1</a></div> + + </div> + + <h2 style="clear:both;padding-top:1em">Block list</h2> + + <div> + <div class="ui360 ui360-vis"><a href="../../demo/_mp3/sine,%20square,%20sawtooth,%20rando.mp3">Sine, Square, Sawtooth, Wave (Warning: LOUD)</a></div> + <div class="ui360 ui360-vis"><a href="../../demo/_mp3/1hz-10khz-sweep.mp3">1-10 Khz Sweep (Warning: LOUD)</a></div> + </div> + + </div> + + <p style="margin-left:1em"> + <a href="http://www.schillmania.com/projects/soundmanager2/" title="SoundManager 2 home">SoundManager 2 project page</a> (not an MP3 link) + </p> + +</div> + +</body> +</html> diff --git a/media/soundmanager/demo/360-player/canvas-visualization.html b/media/soundmanager/demo/360-player/canvas-visualization.html new file mode 100644 index 00000000..e58c4489 --- /dev/null +++ b/media/soundmanager/demo/360-player/canvas-visualization.html @@ -0,0 +1,360 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> +<head> +<title>360&deg; MP3 player UI demo (SoundManager 2): Javascript + Canvas Visualization</title> +<meta name="robots" content="noindex" /> +<meta name="description" content="Javascript + Canvas + SoundManager 2: 360-degree circular control / jog wheel example for playing MP3 links, with EQ and spectrum visualization options" /> +<!-- demo, make the fonts nicer etc. --> +<link rel="stylesheet" type="text/css" href="../index.css" /> + +<!-- soundManager.useFlashBlock: related CSS --> +<link rel="stylesheet" type="text/css" href="../flashblock/flashblock.css" /> + +<!-- required --> +<link rel="stylesheet" type="text/css" href="360player.css" /> +<link rel="stylesheet" type="text/css" href="360player-visualization.css" /> + +<!-- special IE-only canvas fix --> +<!--[if IE]><script type="text/javascript" src="script/excanvas.js"></script><![endif]--> + +<!-- Apache-licensed animation library --> +<script type="text/javascript" src="script/berniecode-animator.js"></script> + +<!-- the core stuff --> +<script type="text/javascript" src="../../script/soundmanager2.js"></script> +<script type="text/javascript" src="script/360player.js"></script> + +<script type="text/javascript"> + +soundManager.setup({ + // path to directory containing SM2 SWF + url: '../../swf/' +}); + +threeSixtyPlayer.config.scaleFont = (navigator.userAgent.match(/msie/i)?false:true); +threeSixtyPlayer.config.showHMSTime = true; + +// enable some spectrum stuffs + +threeSixtyPlayer.config.useWaveformData = true; +threeSixtyPlayer.config.useEQData = true; + +// enable this in SM2 as well, as needed + +if (threeSixtyPlayer.config.useWaveformData) { + soundManager.flash9Options.useWaveformData = true; +} +if (threeSixtyPlayer.config.useEQData) { + soundManager.flash9Options.useEQData = true; +} +if (threeSixtyPlayer.config.usePeakData) { + soundManager.flash9Options.usePeakData = true; +} + +if (threeSixtyPlayer.config.useWaveformData || threeSixtyPlayer.flash9Options.useEQData || threeSixtyPlayer.flash9Options.usePeakData) { + // even if HTML5 supports MP3, prefer flash so the visualization features can be used. + soundManager.preferFlash = true; +} + +// favicon is expensive CPU-wise, but can be used. +if (window.location.href.match(/hifi/i)) { + threeSixtyPlayer.config.useFavIcon = true; +} + +if (window.location.href.match(/html5/i)) { + // for testing IE 9, etc. + soundManager.useHTML5Audio = true; +} + +</script> + +<!-- DEMO only, customization UI: Yahoo! YUI colorpicker stuff --> +<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.7.0/build/slider/assets/skins/sam/slider.css" /> +<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.7.0/build/colorpicker/assets/skins/sam/colorpicker.css" /> +<script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/yahoo-dom-event/yahoo-dom-event.js"></script> +<script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js"></script> +<script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/dragdrop/dragdrop-min.js"></script> +<script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/slider/slider-min.js"></script> +<script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/element/element-min.js"></script> +<script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/colorpicker/colorpicker-min.js"></script> + +<link rel="stylesheet" type="text/css" href="demo.css" /> +<style type="text/css"> + +body { + background-image: none; +} + +#left h2 { + padding-top:0px; + margin-bottom:0.25em; + color:#666; +} + +pre.block { + margin-top:0.5em; +} + +/* special case */ + +#left { + width:auto; + max-width:100%; +} + +.ui360 span { + vertical-align: top; +} + +</style> + +<!-- demo configuration stuff, you don't need this --> +<link rel="stylesheet" type="text/css" href="demo-slider-controls.css" /> +<script type="text/javascript" src="demo-slider-controls.js"></script> + +</head> + +<body> + +<div id="left"> + + <h1><a href="http://www.schillmania.com/projects/soundmanager2/" title="Javascript MP3 player project home">SoundManager 2</a> / <a href="http://schillmania.com/projects/soundmanager2/demo/360-player/">360&deg; Player Demo</a>: JS + Canvas Visualization</h1> + + <p class="note" style="color:#666;margin-top:0.5em;margin-bottom:0.5em">Canvas-based UI with visualization options. <b>Note: Spectrum/EQ visualizations disabled for IE &lt; 9 (too slow.) Data is not implemented under HTML5.</b></p> + <p class="note" style="color:#666;margin-bottom:0.5em">You can also <a href="#debug=1" onclick="window.location.href = this.href;window.location.reload()" title="Enable debug mode, show frames per second">show FPS</a><span id="config-link"> or <a href="#customize" onclick="window.location.href=this.href;window.location.reload()">customize the UI</a></span><span id="hifi">, or see the <a href="#hifi=1" onclick="window.location.href=this.href;window.location.reload()">hi-fi version</a></span>. Check the <a href="canvas-visualization-basic.html">basic template</a> for a minimal code example; also see the <a href="../360-player/" title="360&deg; player UI">default 360&deg; UI</a>.</p> + + <!-- customization crap --> + + <div id="config-ui" style="clear:both;position:relative;max-width:1110px;margin-top:1em;display:none"> + + <div style="position:relative"> + + <form action="#" method="get"> + + <div id="controls"> + + <div class="checkbox"> + <div> + <input id="use-waveform" type="checkbox" checked="checked" title="Enable waveform feature." onclick="controller.updateExample();controller.updateExampleCode()" value="Apply" /> Waveform + <input id="disabled-1" type="checkbox" title="Enable EQ (spectrum) feature." onclick="controller.updateExample();controller.updateExampleCode()" value="Apply" style="margin-left:1em" checked="checked" /> EQ + <input type="checkbox" name="use-amplifier" id="use-amplifier" checked="checked" onclick="controller.updateExample();controller.updateExampleCode()" style="margin-left:1em"> Amplifier + </div> + </div> + + <div style="clear:left"></div> + + <dl class="col"> + + <dt>Circle Diameter</dt> + <dd class="title">Size</dd> + <dd>1-256</dd> + <dd class="control"> + <div class="bar" title="Click to move here"></div> + <div class="slider" title="Size of circle"></div> + </dd> + + <dt>Waveform Thickness</dt> + <dd class="title">thickness</dd> + <dd>1-100</dd> + <dd class="control"> + <div class="bar" title="Click to move here"></div> + <div class="slider" title="Thickness of line"></div> + </dd> + + <dt>Wave Downsample</dt> + <dd class="title">(Scale)</dd> + <dd>1-16</dd> + <dd class="control"> + <div class="bar" title="Click to move here"></div> + <div class="slider" title="Amount to downsample waveform data by"></div> + </dd> + + <dt>EQ Thickness</dt> + <dd class="title">thickness</dd> + <dd>1-50</dd> + <dd class="control"> + <div class="bar" title="Click to move here"></div> + <div class="slider" title="Thickness of line"></div> + </dd> + + <dt>EQ Downsample</dt> + <dd class="title">(Scale)</dd> + <dd>1-16</dd> + <dd class="control"> + <div class="bar" title="Click to move here"></div> + <div class="slider" title="Amount to downsample EQ data by"></div> + </dd> + + <dt>Ring Thickness</dt> + <dd class="title">(Scale)</dd> + <dd>1-200</dd> + <dd class="control"> + <div class="bar" title="Click to move here"></div> + <div class="slider" title="Scale factor for the ring width"></div> + </dd> + + </dl> + + <div id="options" class="col"> + + <div> + Waveform position: + <input type="radio" name="waveform-inside" id="waveform-inside" value="true" checked="checked" onclick="controller.updateExample();controller.updateExampleCode()"> Inside | <input type="radio" name="waveform-inside" id="waveform-inside" value="false" onclick="controller.updateExample();controller.updateExampleCode()"> Outside + </div> + + <div> + EQ position: + <input type="radio" name="eq-inside" id="eq-inside" value="true" onclick="controller.updateExample();controller.updateExampleCode()"> Inside | <input type="radio" name="eq-inside" id="eq-inside" value="false" checked="checked" onclick="controller.updateExample();controller.updateExampleCode()"> Outside + </div> + + <div> + Waveform color: + <input type="text" name="waveform-color" id="waveform-color" value="#000000" onclick="createCP(this,setWaveformColor)" /> + </div> + + <div> + EQ color: + <input type="text" name="eq-color" id="eq-color" value="#000000" onclick="createCP(this,setEQColor)" /> + </div> + + <div> + Loaded ring color: + <input type="text" name="loaded-ring-color" id="loaded-ring-color" value="#000000" onclick="createCP(this,setLoadedRingColor)" /> + </div> + + <div> + Progress ring color: + <input type="text" name="progress-ring-color" id="progress-ring-color" value="#000000" onclick="createCP(this,setProgressRingColor)" /> + </div> + + <div> + Background ring color: + <input type="text" name="bg-ring-color" id="bg-ring-color" value="#000000" onclick="createCP(this,setBackgroundRingColor)" /> + </div> + + <p class="compact"> + <input type="button" onclick="controller.randomize()" value="Randomize controls" title="Assign random control values" style="font-size:x-small" /> + </p> + + </form> + + </div> + + <div id="cp-container"> + <!-- color picker stuff goes here --> + </div> + + <div id="config-code-block" style="float:right;display:inline;margin-left:1em;margin-top:-0.7em"> + <!-- + <pre id="config-link" class="block"><code style="cursor:pointer" onclick="document.getElementById('config-link').style.display='none';document.getElementById('config-pre-block').style.display='block';return false"> [click to show code] </code></pre> + --> + <pre id="config-pre-block" class="block"><code id="config-code">Code goes here</code></pre> + </div> + + </div> + + </div> + + <p style="clear:left">Get a sound playing, then adjust the values to see real-time updates.</p> + + </div> + + <!-- here are the MP3 links, which are decorated with the 360 canvas element/UI etc. --> + + <div id="sm2-container"> + <!-- sm2 flash goes here --> + </div> + + <h2 style="margin-top:1em">Inline list</h2> + + <div class="sm2-inline-list"> <!-- remove this class to have one item per line --> + + <div class="ui360 ui360-vis"><a href="http://freshly-ground.com/data/audio/sm2/The%20Fugitives%20-%20Graffiti%20Sex.mp3">The Fugitives - Graffiti Sex</a></div> + <div class="ui360 ui360-vis"><a href="http://freshly-ground.com/data/audio/sm2/Adrian%20Glynn%20-%20Blue%20Belle%20Lament.mp3">Adrian Glynn - Blue Belle Lament</a></div> + <div class="ui360 ui360-vis"><a href="http://freshly-ground.com/data/audio/sm2/SonReal%20-%20I%20Tried.mp3">SonReal - I Tried</a></div> + <div class="ui360 ui360-vis"><a href="http://freshly-ground.com/data/audio/sm2/SonReal%20-%20People%20Asking.mp3">SonReal - People Asking</a></div> + <div class="ui360 ui360-vis"><a href="http://freshly-ground.com/data/audio/mpc/20060826%20-%20Armstrong.mp3">20060826 - Armstrong Groove</a></div> + + </div> + + <p class="note medium-note" style="clear:both"><b>Artist thank-yous</b>: "Graffiti Sex" courtesy of <a href="http://www.fugitives.ca/" title="A group of musicians, poets, and multi-instrumentalists from Vancouver, Canada">The Fugitives</a>. "Blue Belle Lament" courtesy of <a href="http://www.adrianglynn.com/" title="Adrian Glynn, Vancouver-based Singer/Songwriter">Adrian Glynn</a>. "I Tried" and "People Asking" courtesy of <a href="http://sonreal.bandcamp.com/album/the-lightyear-mixtape" title="The Lightyear Mixtape from SonReal, Vancouver-based hip-hop artist">SonReal</a>.</p> + + <h2 style="clear:left;padding-top:1em">Block list</h2> + + <div> + <div class="ui360 ui360-vis"><a href="http://freshly-ground.com/data/audio/sm2/gong-192kbps.mp3">32" Chau Gong Sounds</a></div> + <div class="ui360 ui360-vis"><a href="http://freshly-ground.com/data/audio/mpc/20090207%20-%20Loverman.mp3">20090207 - Loverman</a></div> + <div class="ui360 ui360-vis"><a href="http://freshly-ground.com/data/audio/sm2/dialup.mp3">56K Modem dial-up sound (Warning: <span style="color:#ff3333">LOUD</span>)</a></div> + <div class="ui360 ui360-vis"><a href="../../demo/_mp3/1hz-10khz-sweep.mp3">1-10 Khz Sweep (Warning: <span style="color:#ff3333">LOUD</span>)</a></div> + <div class="ui360 ui360-vis"><a href="../../demo/_mp3/sine,%20square,%20sawtooth,%20rando.mp3">Sine, Square, Sawtooth, Wave (Warning: <span style="color:#ff3333">LOUD</span>)</a></div> + </div> + + <p class="note medium-note" style="clear:left">56K Modem sound (Creative Commons license) via <a href="http://www.freesound.org/samplesViewSingle.php?id=16475">dialup.mp3</a>, from freesound.org user <a href="http://www.freesound.org/usersViewSingle.php?id=54447">Jlew</a>.</p> + + + <h2 style="clear:left;padding-top:1em">Variant: Annotations/meta-data</h2> + + + <ul class="ui360playlist"> + + <li> + + <div class="ui360 ui360-vis"> + <a href="http://freshly-ground.com/data/audio/binaural/A%20Virtual%20Haircut%20in%20San%20Francisco%20%283%20Scenes%29.mp3">A Virtual Haircut (3 scenes)</a> + <div class="metadata"> + <div class="duration">4:43</div> <!-- total track time (for positioning while loading, until determined --> + <ul> + <li><p>Electric razor</p><span>0:00</span></li> <!-- first scene --> + <li><p>Water, scissors</p><span>2:41</span></li> <!-- start time of second scene --> + <li><p>More razor work</p><span>4:00</span></li> + </ul> + </div> + </div> + + </li> + + <li> + + <div class="ui360 ui360-vis"> + <a href="http://freshly-ground.com/data/audio/binaural/Rubber%20Chicken%20Launch%20%28office%29.mp3">Rubber Chicken Launch (Office)</a> + + <div class="metadata"> + <div class="duration">0:47</div> + <ul> + <li><p>First attempt</p><span>0:00</span></li> + <li><p>Fire!</p><span>0:02</span></li> + <li><p>"Too much angle"</p><span>0:05</span></li> + <li><p>Random chicken noise</p><span>0:18</span></li> + <li><p>"Wait a second"</p><span>0:31</span></li> + <li><p>Derrr..</p><span>0:34</span></li> + <li><p>Launch attempt #2</p><span>0:36</span></li> + <li><p>"Wrong angle"</p><span>0:39</span></li> + <li><p>"Fail"</p><span>0:42</span></li> + </ul> + </div> + + + </div> + + </li> + + </ul> + + <div style="clear:both"></div> + + <p style="margin-left:1em"> + <a href="http://www.schillmania.com/projects/soundmanager2/" title="SoundManager 2 home">SoundManager 2 project page</a> (not an MP3 link) + </p> + + <script type="text/javascript"> + if (window.location.toString().match(/#customize/i)) { + document.getElementById('config-link').style.display = 'none'; + document.getElementById('config-ui').style.display = 'block'; + } + </script> + +</div> + +</body> +</html> diff --git a/media/soundmanager/demo/360-player/demo-slider-controls.css b/media/soundmanager/demo/360-player/demo-slider-controls.css new file mode 100644 index 00000000..27281c0b --- /dev/null +++ b/media/soundmanager/demo/360-player/demo-slider-controls.css @@ -0,0 +1,179 @@ +#cp-container { position:relative;float:left;display:inline; margin-left:1em;padding: 6px; background-color: #f6f6f6; border:1px solid #eee; width: 320px; height:180px;z-index:2; } + +.yui-picker-controls li, +.yui-picker-controls input { + font-size:1em; + font-family:"helvetica neue",helvetica,arial,verdana; +} + +#controls { + position:relative; + margin-top:1.5em; + font-size:0.85em; +} + +#options { + float:left; + display:inline; + margin-bottom:0.5em; + margin-top:-1.2em; +} + +#controls .checkbox { + float:left; + display:inline; + width:21.2em; + margin-right:2.5em; +} + +#controls .checkbox div { + /* tab */ + width:auto; + padding:0.4em; + border:1px solid #ddd; + border-bottom:none; + background:#eee; +} + +#controls .checkbox div, +#controls .checkbox input { + font-family:arial,tahoma,verdana,"sans serif"; + font-size:1em; + vertical-align:middle; +} + +#controls dl { + width:21em; +} + +#controls dl.col { + position:relative; + float:left; + display:inline; + margin:0px; + margin-right:1em; + padding:0.75em; +/* + height:12.4em; +*/ + height:auto; + border:1px solid #ddd; + background:#f6f6f6; +} + +#controls .disabled { + color:#ccc; +} + +#controls .disabled dt, +#controls .disabled dd { + color:#999; + opacity:0.5; +} + +#controls dl dd p { + margin:0px; + padding:0px; +} + +#controls dt, +#controls dd { + margin:0px; + padding:0px; +} + +#controls dt { + border-bottom:none; +} + +#controls dt { + float:left; + display:inline; + background:transparent; + padding-right:0.7em; + margin-right:0.7em; + border-right:1px solid #ccc; + font-size:1.1em; + color:#333; + font-family:"helvetica neue",helvetica,verdana,arial,"sans serif"; +} + +#controls dd { + margin:0px; + padding:0px; + font-size:0.9em; + vertical-align:middle; + color:#666; +} + +#controls .title { + float:left; + display:inline; + margin-right:0.6em; + color:#333; +} + +/* those slider bits you might be wondering about */ + +#controls .control { + position:relative; + border-left:0px; + width:214px; + height:20px; +} + +#controls .control .bar { + position:absolute; + left:0px; + top:0px; + width:214px; + height:20px; + background:transparent url(../_image/slider-bar.gif) no-repeat 0px 9px; + cursor:pointer; + cursor:hand; +} + +#controls .control .slider { + position:absolute; + left:0px; + top:0px; + width:20px; + height:20px; + background:transparent url(../_image/slider.png) no-repeat 0px 0px; + *background:none; + filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='../_image/slider.png'); + cursor:pointer; + cursor:hand; +} + +#controls .control .slider:hover { + background:transparent url(../_image/slider-1.png) no-repeat 0px 0px; + *background:none; +} + +#controls .control .slider.hover { + filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='../_image/slider-1.png'); +} + +#controls .disabled .control .slider { + background:transparent url(../_image/slider-disabled.png) no-repeat 0px 0px; + *background:none; + filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='../_image/slider-disabled.png'); +} + +#controls .disabled .control .slider:hover { + background:transparent url(../_image/slider-disabled-1.png) no-repeat 0px 0px; + *background:none; +} + +#controls .disabled .control .slider.hover { + filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='../_image/slider-disabled-1.png'); +} + +#controls input[type=text] { + width:5em; +} + +#options div { + margin-bottom:0.25em; +} \ No newline at end of file diff --git a/media/soundmanager/demo/360-player/demo-slider-controls.js b/media/soundmanager/demo/360-player/demo-slider-controls.js new file mode 100644 index 00000000..379cd33d --- /dev/null +++ b/media/soundmanager/demo/360-player/demo-slider-controls.js @@ -0,0 +1,750 @@ +/* + Ancient fireworks slider control code (2005) + Kinda/sorta refactored for SM2 360 demo + http://schillmania.com/projects/fireworks/ + -------------------------------------------- + Not required for your use! +*/ + +function Animator2() { + var self = this; + this.tweens = []; + this.tweens['default'] = [1,2,3,4,5,6,7,8,9,10,9,8,7,6,5,4,3,2,1]; + this.tweens['blast'] = [12,12,11,10,10,9,8,7,6,5,4,3,2,1]; + this.tweens['fade'] = [10,10,10,10,10,10,10,10,10,10]; + this.queue = []; + this.queue.IDs = []; + this.active = false; + this.timer = null; + + this.createTween = function(start,end,type) { + // return array of tween coordinate data (start->end) + type = type||'default'; + var tween = [start]; + var tmp = start; + var diff = end-start; + var x = self.tweens[type].length; + for (var i=0; i<x; i++) { + tmp += diff*self.tweens[type][i]*0.01; + tween[i] = new Object(); + tween[i].data = tmp; + tween[i].event = null; + } + return tween; + } + + this.enqueue = function(o,fMethod,fOnComplete) { + // add object and associated methods to animation queue + // writeDebug('animator.enqueue()'); + if (!fMethod) { + // writeDebug('animator.enqueue(): missing fMethod'); + } + if (typeof(self.queue.IDs[o.oID])=='undefined') { + // writeDebug('animator.enqueue(): added '+o.oID); + var i = self.queue.length; + self.queue.IDs[o.oID] = i; + self.queue[i] = o; + } else { + // writeDebug('animator.enqueue(): '+o.oID+' already queued'); + var i = self.queue.IDs[o.oID]; // retrieve queue index + self.queue[i].active = true; + self.queue[i].frame = 0; + } + o.active = true; // flag for animation + self.queue[i]._method = fMethod; + self.queue[i]._oncomplete = fOnComplete?fOnComplete:null; + } + + this.animate = function() { + var active = 0; + for (var i=self.queue.length; i--;) { + if (self.queue[i].active) { + self.queue[i]._method(); + active++; + } + } + if (active==0 && self.timer) { + // all animations finished + self.stop(); + } else { + // writeDebug(active+' active'); + } + } + + this.start = function() { + if (self.timer || self.active) { + // writeDebug('animator.start(): already active'); + return false; + } + // writeDebug('animator.start()'); // report only if started + self.active = true; + self.timer = setInterval(self.animate,mc.intervalRate); + } + + this.stop = function() { + // writeDebug('animator.stop()',true); + clearInterval(self.timer); + self.timer = null; + self.active = false; + self.queue = []; + self.queue.IDs = []; + } + +} + +function MainController() { + var self = this; + this.intervalRate = 20; // rate (ms) to run animation at, general best default = 20 + this.DEBUG = true; // debug mode disabled by default + this.oFW = null; + this.isIE = (navigator.appVersion.indexOf('MSIE')+1); + this.isOpera = (navigator.userAgent.toLowerCase().indexOf('opera')+1); + if (this.isOpera) this.isIE = false; // no impersonation allowed here! + this.animator = null; + this.gOID = 0; // global object ID counter (for animation queue) + this.particleTypes = 6; + this.particleXY = 10; + this.tweenFade = [100,90,80,70,60,50,40,30,20,10,0]; + this.isSafari = (navigator.appVersion.toLowerCase().indexOf('safari')+1?1:0); + this.canvasX = null; + this.canvasY = null; + this.screenY = null; // screen area (not entire page) + self.scrollY = null; + + self.getWindowCoords = function() { + self.canvasX = (document.documentElement.clientWidth||document.body.clientWidth||document.body.scrollWidth); + self.canvasY = (document.documentElement.clientHeight||document.body.clientHeight||document.body.scrollHeight); + self.screenY = self.canvasY; + self.scrollY = parseInt(window.scrollY||document.documentElement.scrollTop||document.body.scrollTop); + self.canvasY += self.scrollY; + } + + this.getWindowCoordsAlt = function() { + self.canvasX = window.innerWidth; + self.canvasY = window.innerHeight; + self.screenY = self.canvasY; + self.scrollY = parseInt(window.scrollY||document.documentElement.scrollTop||document.body.scrollTop); + self.canvasY += self.scrollY; + } + + this.getPanX = function(x) { + x = parseInt(x); + var pos = x/self.canvasX; + if (pos<0.4) { + pos *= -1; + } else if (pos >= 0.4 && pos <= 0.6) { + pos = 0.5; + } + pos = parseInt(pos*100); + // writeDebug('getPanX('+x+'): '+pos+'%'); + return pos; + } + + this.isEmpty = function(o) { + // needs further hacking + return (typeof(o)=='undefined'||(o==null&&o!=0)||(o==''&&o!=0)||o=='null'); + } + + this.init = function() { +// self.oFW = document.getElementById('fw'); +// self.oFP = document.getElementById('fp'); +// if (typeof(enableDebugMode)!='undefined' && (self.DEBUG||window.location.toString().toLowerCase().indexOf('debug')>=0)) enableDebugMode(); + self.getWindowCoords(); + self.animator = new Animator2(); + } + + this.destructor = function() { +/* + for (var i=self.fireworks.length; i--;) { + self.fireworks[i] = null; + } + self.fireworks = null; + if (soundManager) { + soundManager.destructor(); + soundManager = null; + } +*/ + } + + if (this.isSafari || this.isOpera) this.getWindowCoords = this.getWindowCoordsAlt; + +} + + +function Controller(o) { + var self = this; + this.o = o; + this.controls = []; + this.cb = []; + this.options = []; + this.functionExample = document.getElementById('function-example'); + this.fbIE = null; + + this.randomize = function() { + for (var i=1; i<self.controls.length; i++) { + setTimeout(self.controls[i].randomize,20+(20*i+1)); + } + } + + this.cbClick = function(nIndex) { + document.getElementById('controls').getElementsByTagName('dl')[nIndex].className = 'col'+(this.checked==false||this.checked==''?' disabled':''); + self.updateExample(); + self.updateExampleCode(); + } + + this.updateExample = function() { + if (threeSixtyPlayer) { + var val = self.controls[0].value; + threeSixtyPlayer.config.circleDiameter = self.controls[0].value; + + threeSixtyPlayer.config.circleRadius = self.controls[0].value/2; + // update some stuff + + // set the cover width/height to match the canvas + if (threeSixtyPlayer.lastSound) { + // always set cover to max area? + // threeSixtyPlayer.lastSound._data.oCover.style.width = 250+'px'; + // threeSixtyPlayer.lastSound._data.oCover.style.height = 250+'px'; + // threeSixtyPlayer.lastSound._data.oCover.style.width = threeSixtyPlayer.config.circleDiameter+'px'; + // threeSixtyPlayer.lastSound._data.oCover.style.height = threeSixtyPlayer.config.circleDiameter+'px'; + threeSixtyPlayer.refreshCoords(threeSixtyPlayer.lastSound); + } + + threeSixtyPlayer.config.waveformDataLineRatio = (self.controls[1].value/100)*2; + + threeSixtyPlayer.config.waveformDataDownsample = (self.controls[2].value); + + threeSixtyPlayer.config.eqDataLineRatio = parseInt((self.controls[3].value/100)*3*1000)/1000; + + threeSixtyPlayer.config.eqDataDownsample = (self.controls[4].value); + + threeSixtyPlayer.config.scaleArcWidth = (self.controls[5].value/100); + + threeSixtyPlayer.config.useEQData = (document.getElementById('disabled-1').checked?true:false); + + // radio buttons + + threeSixtyPlayer.config.useWaveformData=(document.getElementById('use-waveform').checked?true:false); + + threeSixtyPlayer.config.waveformDataOutside = document.getElementById('waveform-inside').checked?false:true; + + threeSixtyPlayer.config.eqDataOutside = document.getElementById('eq-inside').checked?false:true; + + threeSixtyPlayer.config.useAmplifier = (document.getElementById('use-amplifier').checked?true:false); + + // threeSixtyPlayer.refreshCoords(); + } + + if (threeSixtyPlayer.lastSound) { + + threeSixtyPlayer.lastSound._360data.circleDiameter = self.controls[0].value; + + threeSixtyPlayer.lastSound._360data.circleRadius = self.controls[0].value/2; + + threeSixtyPlayer.lastSound._360data.waveformDataLineRatio = (self.controls[1].value/100)*2; + + threeSixtyPlayer.lastSound._360data.waveformDataDownsample = (self.controls[2].value); + + threeSixtyPlayer.lastSound._360data.eqDataLineRatio = parseInt((self.controls[3].value/100)*3*1000)/1000; + + threeSixtyPlayer.lastSound._360data.eqDataDownsample = (self.controls[4].value); + + threeSixtyPlayer.lastSound._360data.useEQData = (document.getElementById('disabled-1').checked?true:false); + + // radio buttons + + threeSixtyPlayer.lastSound._360data.useWaveformData=(document.getElementById('use-waveform').checked?true:false); + + threeSixtyPlayer.lastSound._360data.waveformDataOutside = document.getElementById('waveform-inside').checked?false:true; + + threeSixtyPlayer.lastSound._360data.eqDataOutside = document.getElementById('eq-inside').checked?false:true; + + threeSixtyPlayer.lastSound._360data.useAmplifier = (document.getElementById('use-amplifier').checked?true:false); + + } + + } + + this.updateExampleCode = function() { + // set innerHTML +document.getElementById('config-code').innerHTML = "\ +// 360player.js, config section\n\ +\n\ +this.config = {\n\ +\n\ + playNext: <span>"+threeSixtyPlayer.config.playNext+"</span>,\n\ + autoPlay: <span>"+threeSixtyPlayer.config.autoPlay+"</span>,\n\ + allowMultiple: <span>"+threeSixtyPlayer.config.allowMultiple+"</span>,\n\ + loadRingColor: <span>'"+threeSixtyPlayer.config.loadRingColor+"'</span>,\n\ + playRingColor: <span>'"+threeSixtyPlayer.config.playRingColor+"'</span>,\n\ + backgroundRingColor: <span>'"+threeSixtyPlayer.config.backgroundRingColor+"'</span>,\n\ + circleDiameter: <span>"+threeSixtyPlayer.config.circleDiameter+"</span>,\n\ + circleRadius: <span>"+threeSixtyPlayer.config.circleRadius+"</span>,\n\ + animDuration: <span>"+threeSixtyPlayer.config.animDuration+"</span>,\n\ + animTransition: <span>Animator.tx.bouncy</span>,\n\ + showHMSTime: <span>"+threeSixtyPlayer.config.showHMSTime+"</span>,\n\ +\n\ + useWaveformData: <span>"+threeSixtyPlayer.config.useWaveformData+"</span>,\n\ + waveformDataColor: <span>'"+threeSixtyPlayer.config.waveformDataColor+"'</span>,\n\ + waveformDataDownsample: <span>"+threeSixtyPlayer.config.waveformDataDownsample+"</span>,\n\ + waveformDataOutside: <span>"+threeSixtyPlayer.config.waveformDataOutside+"</span>,\n\ + waveformDataConstrain: <span>false</span>,\n\ + waveformDataLineRatio: <span>"+threeSixtyPlayer.config.waveformDataLineRatio+"</span>,\n\ +\n\ + useEQData: <span>"+threeSixtyPlayer.config.useEQData+"</span>,\n\ + eqDataColor: <span>'"+threeSixtyPlayer.config.eqDataColor+"'</span>,\n\ + eqDataDownsample: <span>"+threeSixtyPlayer.config.eqDataDownsample+"</span>,\n\ + eqDataOutside: <span>"+threeSixtyPlayer.config.eqDataOutside+"</span>,\n\ + eqDataLineRatio: <span>"+threeSixtyPlayer.config.eqDataLineRatio+"</span>,\n\ +\n\ + usePeakData: <span>"+threeSixtyPlayer.config.usePeakData+"</span>,\n\ + peakDataColor: <span>'"+threeSixtyPlayer.config.peakDataColor+"'</span>,\n\ + peakDataOutside: <span>"+threeSixtyPlayer.config.peakDataOutside+"</span>,\n\ + peakDataLineRatio: <span>"+threeSixtyPlayer.config.peakDataLineRatio+"</span>,\n\ +\n\ + useAmplifier: <span>"+threeSixtyPlayer.config.useAmplifier+"</span>\n\ +\n\ +}"; +document.getElementById('config-code').style.display = 'block'; // weird Fx fix + } + + this.createCustomFirework = function() { + } + + this.destructor = function() { + for (var i=self.controls.length; i--;) { + self.controls[i].destructor(); + } + for (i=self.cb.length; i--;) { + self.cb.onclick = null; + self.cb[i] = null; + } + for (i=self.options.length; i--;) { + self.options[i] = null; + } + if (navigator.userAgent.match(/msie/i)) { + self.fbIE.onmouseover = null; + self.fbIE.onmouseout = null; + self.fbIE = null; + } + self.cb = null; + self.options = null; + self.controls = null; + self.functionExample = null; + self.o = null; + } + + var items = parseInt(this.o.length/3); + for (var i=0; i<items; i++) { + this.controls[this.controls.length] = new Slider(this.o[(3*i)+2].getElementsByTagName('div')[1],this.o[(3*i)+1],this.o[(3*i)+2].getElementsByTagName('div')[0]); + } + this.cb = [document.getElementById('disabled-0'),document.getElementById('disabled-1')]; +/* + for (i=this.cb.length; i--;) { + this.cb[i]._index = i; + this.cb[i].onclick = this.cbClick; + } +*/ + this.options = []; +/* + this.cb[1].checked = false; + this.options = [document.getElementById('opt-random0'),document.getElementById('opt-random1')]; + this.options[0].checked = false; + this.options[1].checked = true; + if (navigator.userAgent.match(/msie/i)) { + this.fbIE = document.getElementById('fireButton'); + this.fbIE.onmouseover = function() {this.className='hover';} + this.fbIE.onmouseout = function() {this.className='';} + } +*/ + + setTimeout(function(){ + // default values for controls + var values = [ + 256, + 65, + 40, + 72, + 48, + 100 + ]; + for (var i=0; i<values.length; i++) { + self.controls[i].setValue(values[i]); // defaults + } + },1); +} + +function Slider(o,oV,oB) { + var self = this; + this.o = o; + this.oV = oV; + this.oB = oB; + this.scale = parseInt(oV.innerHTML.toString().substr(2)); + this.oID = 'sc'+(gOID++); + this.offX = 0; + this.x = 0; + this.xMin = 0-10; + this.xMax = self.o.parentNode.offsetWidth-10; + this.value = 0; + this.timer = null; + this._className = this.o.className; + this.tween = []; + this.frame = 0; + + this.over = function() { + this.className = self._className+' hover'; + event.cancelBubble=true; + return false; + } + + this.out = function() { + this.className = self._className; + event.cancelBubble=true; + return false; + } + + this.down = function(e) { + var e = e?e:event; + self.offX = e.clientX-self.o.offsetLeft; + addEvent(document,'mousemove',self.move); + addEvent(document,'mouseup',self.up); + return false; + } + + this.barClick = function(e) { + var e=e?e:event; + self.slide(self.x,e.clientX-self.o.parentNode.parentNode.offsetLeft-self.o.offsetWidth); + } + + this.move = function(e) { + var e=e?e:event; + var x = e.clientX-self.offX; + if (x>self.xMax) { + x = self.xMax; + } else if (x<self.xMin) { + x = self.xMin; + } + if (x != self.x) { + self.moveTo(x); + self.doUpdate(); + controller.updateExample(); + controller.updateExampleCode(); + } + e.stopPropgation?e.stopPropagation():e.cancelBubble=true; + return false; + } + + this.up = function(e) { + removeEvent(document,'mousemove',self.move); + removeEvent(document,'mouseup',self.up); + // controller.updateExample(); + controller.updateExampleCode(); + } + + this.slide = function(x0,x1) { + self.tween = mc.animator.createTween(x0,x1); + mc.animator.enqueue(self,self.animate,function(){ + controller.updateExample() + controller.updateExampleCode(); + }); + mc.animator.start(); + } + + this.moveTo = function(x) { + self.x = x; + self.o.style.marginLeft = x+'px'; + } + + this.animate = function() { + self.moveTo(self.tween[self.frame].data); + self.doUpdate(50); + controller.updateExample(); + if (self.frame++>=self.tween.length-1) { + self.active = false; + self.frame = 0; + if (self._oncomplete) self._oncomplete(); +// self.doUpdate(); + return false; + } + self.doUpdate(); + return true; + } + + this.doUpdate = function(t) { + // if (!self.timer) self.timer = setTimeout(self.update,t||20); + self.update(); + } + + this.update = function() { + self.timer = null; + self.value = 1+parseInt(self.x/self.xMax*(self.scale-1)); + if (self.value<1) self.value = 1; + // if (self.oV.innerHTML != self.value) self.oV.innerHTML = self.value; + // self.oV.innerHTML = self.value; + } + + this.setValue = function(x) { + self.slide(self.x,Math.min(self.xMax,x)); + } + + this.randomize = function() { + self.slide(self.x,parseInt(Math.random()*self.xMax)); + } + + this.destructor = function() { + self.o.onmouseover = null; + self.o.onmouseout = null; + self.o.onmousedown = null; + self.o = null; + self.oV = null; + self.oB.onclick = null; + self.oB = null; + } + + if (soundManager.isIE) { + // IE is lame, no :hover + this.o.onmouseover = this.over; + this.o.onmouseout = this.out; + } + + this.o.onmousedown = this.down; + this.oB.onclick = this.barClick; + self.update(); + +} + +var gOID = 0; + +function demoInit() { + controller = new Controller(document.getElementById('controls').getElementsByTagName('dd')); +} + +function demoDestuctor() { + controller.destructor(); + controller = null; +} + +var controller = null; + +var mc = new MainController(); +// create null objects if APIs not present + +function createCP(oInput,oHandler) { + var Event = YAHOO.util.Event; + + cpHandler = oHandler; + if (picker != null) { + // picker.showcontrols(true); + var c = oInput.value.substr(1); + picker.setValue(hex2decArray([c.substr(0,2),c.substr(2,2),c.substr(4,2)]),true); // be silent + return false; + } + + Event.onDOMReady(function() { + picker = new YAHOO.widget.ColorPicker("cp-container", { + showhsvcontrols: true, + showhexcontrols: true, + images: { + PICKER_THUMB: "../_image/picker_thumb.png", + HUE_THUMB: "../_image/hue_thumb.png" + } + }); + +// picker.showcontrols(false); + //a listener for logging RGB color changes; + //this will only be visible if logger is enabled: + var onRgbChange = function(o) { + /*o is an object + { newValue: (array of R, G, B values), + prevValue: (array of R, G, B values), + type: "rgbChange" + } + */ + cpHandler(o.newValue); + controller.updateExampleCode(); + } + + //subscribe to the rgbChange event; + picker.on("rgbChange", onRgbChange); + + //use setValue to reset the value to white: + Event.on("reset", "click", function(e) { + picker.setValue([255, 255, 255], false); //false here means that rgbChange + //wil fire; true would silence it + }); + + //use the "get" method to get the current value + //of one of the Color Picker's properties; in + //this case, we'll get the hex value and write it + //to the log: + Event.on("gethex", "click", function(e) { + console.log("Current hex value: " + picker.get("hex")); + }); + + }); +} + +var picker = null; + +cpHandler = function() { +} + + + // hex -> dec / dec -> hex + // http://www.southwest.com.au/~jfuller/binary/converter.htm + + function dec2hex(cval) { + if (cval > 255) cval = 255; + var hexascii = "0123456789ABCDEF"; + var cval0 = Math.floor(cval/16); + var cval1 = cval-(cval0*16); + var c1 = hexascii.charAt(cval0); + var c2 = hexascii.charAt(cval1); + return (c1+c2); + } + + function hex2dec(cval) { + cval = cval.toUpperCase(); + var tval = 0; + var hexascii = "0123456789ABCDEF"; + var mychar, ch; + for (var c=0; c<cval.length; c++) { + mychar = cval.charAt(c); + for (ch=0; ch<16; ch++) { + if (mychar == hexascii.charAt(ch)) { + tval += ch; + if (c<cval.length-1) tval *= 16; + } + } + } + return tval; + } + + function hex2decArray(hArray) { + var result = []; + for (var i=0,j=hArray.length; i<j; i++) { + result[i] = hex2dec(hArray[i]); + } + return result; + } + + function dec2hexArray(dArray) { + var result = []; + for (var i=0,j=dArray.length; i<j; i++) { + result[i] = dec2hex(dArray[i]); + } + return result; + } + + +/* + + +threeSixtyPlayer.config.waveformDataColor = '#'+dec2hexArray([self.controls[5].value,self.controls[6].value,self.controls[7].value]).join(''); + +threeSixtyPlayer.config.eqDataColor = '#'+dec2hexArray([self.controls[8].value,self.controls[9].value,self.controls[10].value]).join(''); + +threeSixtyPlayer.config.loadRingColor = '#'+dec2hexArray([self.controls[11].value,self.controls[12].value,self.controls[13].value]).join(''); + +threeSixtyPlayer.config.playRingColor = '#'+dec2hexArray([self.controls[14].value,self.controls[15].value,self.controls[16].value]).join(''); + +threeSixtyPlayer.config.waveformDataLineRatio = (self.controls[1].value/100)*2; + +threeSixtyPlayer.config.waveformDataDownsample = (self.controls[2].value); + +threeSixtyPlayer.config.eqDataLineRatio = (self.controls[3].value/100)*3; + +threeSixtyPlayer.config.eqDataDownsample = (self.controls[4].value); + +*/ + +function _id(sID) { + return document.getElementById(sID); +} + +function setWaveformColor(sColor) { + var value = '#'+(dec2hexArray(sColor).join('')); + threeSixtyPlayer.config.waveformDataColor = value; + _id('waveform-color').value = value; +} + +function setEQColor(sColor) { + var value = '#'+dec2hexArray(sColor).join(''); + _id('eq-color').value = value; + threeSixtyPlayer.config.eqDataColor = value; +} + +function setLoadedRingColor(sColor) { + var value = '#'+dec2hexArray(sColor).join(''); + _id('loaded-ring-color').value = value; + threeSixtyPlayer.config.loadRingColor = value; +} + +function setProgressRingColor(sColor) { + var value = '#'+dec2hexArray(sColor).join(''); + _id('progress-ring-color').value = value; + threeSixtyPlayer.config.playRingColor = value; +} + +function setBackgroundRingColor(sColor) { + var value = '#'+dec2hexArray(sColor).join(''); + _id('bg-ring-color').value = value; + threeSixtyPlayer.config.backgroundRingColor = value; +} + +function addEvent(o,evtName,evtHandler) { + typeof window.addEventListener !== 'undefined' ? o.addEventListener(evtName,evtHandler,false) : o.attachEvent('on'+evtName,evtHandler); +} + +function removeEvent(o,evtName,evtHandler) { + typeof window.removeEventListener !== 'undefined' ? o.removeEventListener(evtName,evtHandler,false) : o.detachEvent('on'+evtName,evtHandler); +} + +if (window.location.toString().match(/#customize/i)) { + addEvent(window,'resize',mc.getWindowCoords); + addEvent(window,'scroll',mc.getWindowCoords); + addEvent(window,'load',mc.init); + addEvent(window,'load',demoInit); +} + +if (window.location.toString().match(/hifi/i)) { + soundManager.onready(function(){ + document.getElementById('hifi').style.display = 'none'; + + threeSixtyPlayer.config = { + + playNext: false, + autoPlay: false, + loadRingColor: '#ccc', + playRingColor: '#000', + backgroundRingColor: '#eee', + circleDiameter: 256, + circleRadius: 128, + animDuration: 500, + animTransition: Animator.tx.bouncy, + showHMSTime: true, + + useWaveformData: true, + waveformDataColor: '#0099ff', + waveformDataDownsample: 1, + waveformDataOutside: true, + waveformDataConstrain: false, + waveformDataLineRatio: 0.56, + + useEQData: true, + eqDataColor: '#339933', + eqDataDownsample: 1, + eqDataOutside: true, + eqDataLineRatio: 0.72, + + usePeakData: true, + peakDataColor: '#ff33ff', + peakDataOutside: true, + peakDataLineRatio: 0.5, + scaleArcWidth: 1, // thickness factor of playback progress ring + useAmplifier: true + + } + + }); +} \ No newline at end of file diff --git a/media/soundmanager/demo/360-player/demo.css b/media/soundmanager/demo/360-player/demo.css new file mode 100644 index 00000000..68acf363 --- /dev/null +++ b/media/soundmanager/demo/360-player/demo.css @@ -0,0 +1,64 @@ +/** + * In-page demo CSS - see external CSS for actual relevant stuff. +*/ + +#soundmanager-debug { + /* SM2 debug container (optional, makes debug more useable) */ + position:absolute;position:fixed;*position:absolute;bottom:10px;right:10px;width:50em;height:18em;overflow:auto;background:#fff;margin:1em;padding:1em;border:1px solid #999;font-family:"lucida console",verdana,tahoma,"sans serif";font-size:x-small;line-height:1.5em;opacity:0.9;filter:alpha(opacity=90); +} + +body { + font:75% normal verdana,arial,tahoma,"sans serif"; +} + +h1, h2, h3 { + font:3em arial,tahoma,verdana; + font-weight:normal; + margin-bottom:0px; +} + +h1 { + margin-top:0.25em; +} + +h1, h2 { + letter-spacing: -0.005em; /* zomg web x.0! ;) */ +} + +h2 { + font-size:2em; + margin-top:0px; + margin-bottom:0.1em; +} + +h3 { + font-size:1.5em; + margin-bottom:1em; +} + +h1 a, +h1 a:hover { + color:#000; + text-decoration:none; +} + +h1 a:hover { + text-decoration:underline; +} + +ul.notes { + margin-left:0px; + padding-left:1.5em; +} + +.note { + margin-top:0px; + font-style:italic; + color:#999; + margin-bottom:0px; +} + +#left { + max-width:56em; + margin-left:1em; +} diff --git a/media/soundmanager/demo/360-player/icon_loading_dots.gif b/media/soundmanager/demo/360-player/icon_loading_dots.gif new file mode 100644 index 00000000..fdef4983 Binary files /dev/null and b/media/soundmanager/demo/360-player/icon_loading_dots.gif differ diff --git a/media/soundmanager/demo/360-player/icon_loading_spinner.gif b/media/soundmanager/demo/360-player/icon_loading_spinner.gif new file mode 100644 index 00000000..8449353f Binary files /dev/null and b/media/soundmanager/demo/360-player/icon_loading_spinner.gif differ diff --git a/media/soundmanager/demo/360-player/icon_loading_spinner_bigger.gif b/media/soundmanager/demo/360-player/icon_loading_spinner_bigger.gif new file mode 100644 index 00000000..87985e93 Binary files /dev/null and b/media/soundmanager/demo/360-player/icon_loading_spinner_bigger.gif differ diff --git a/media/soundmanager/demo/360-player/index.html b/media/soundmanager/demo/360-player/index.html new file mode 100644 index 00000000..559c911d --- /dev/null +++ b/media/soundmanager/demo/360-player/index.html @@ -0,0 +1,171 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> +<head> +<title>360&deg; MP3 player UI demo (SoundManager 2)</title> +<meta name="robots" content="noindex" /> +<meta name="description" content="Javascript-driven sound, canvas-based MP3 player UI demo: 360-degree circular control / jog wheel example for playing MP3 links using SoundManager 2, Javascript and Canvas."> + +<!-- required --> +<link rel="stylesheet" type="text/css" href="360player.css" /> + +<!-- special IE-only canvas fix --> +<!--[if IE]><script type="text/javascript" src="script/excanvas.js"></script><![endif]--> + +<!-- Apache-licensed animation library --> +<script type="text/javascript" src="script/berniecode-animator.js"></script> + +<!-- the core stuff --> +<script type="text/javascript" src="../../script/soundmanager2.js"></script> +<script type="text/javascript" src="script/360player.js"></script> + +<script type="text/javascript"> +soundManager.setup({ + // path to directory containing SM2 SWF + url: '../../swf/' +}); +</script> + +<!-- stuff you don't need --> +<!-- makes the fonts nicer etc. --> +<link rel="stylesheet" type="text/css" href="../index.css" /> +<link rel="stylesheet" type="text/css" href="demo.css" /> + +<!-- soundManager.useFlashBlock: related CSS --> +<link rel="stylesheet" type="text/css" href="../flashblock/flashblock.css" /> + +<style type="text/css"> + +/* Demo page, general layout */ + +body { + background-image: none; +} + +#left { + position:relative; + width:950px; + max-width:100%; +} + +#left h2 { + padding-top:0px; + margin-bottom:0.25em; + color:#666; +} + +pre.block { + margin-top:0.5em; +} + +</style> + +</head> + +<body> + +<div id="left"> + + <h1><a href="http://www.schillmania.com/projects/soundmanager2/" title="Javascript MP3 player project home">SoundManager 2</a> / <a href="http://schillmania.com/projects/soundmanager2/demo/360-player/">360&deg; Player</a>: JavaScript + Canvas UI</h1> + + <p class="note" style="color:#666;margin-top:0.5em;margin-bottom:0.5em">Canvas-based UI. Load progress, seek, play/pause etc. Also see <a href="canvas-visualization.html" title="Javascript canvas visualization with waveform/eq data">360&deg; UI visualization</a> demo.</p> + +<div id="sm2-container"> + <!-- flash movie is added here --> +</div> + +<div style="margin-top:1.25em"> + + <div style="float:left;display:inline;min-width:200px"> <!-- float is just for this demo layout, you don't need it. --> + + <div class="ui360" style="margin-top:-0.55em"><a href="../_mp3/rain.mp3">Rain</a></div> + + <div class="ui360"><a href="http://freshly-ground.com/data/audio/mpc/20090119%20-%20Untitled%20Groove.mp3">20090119 - Untitled Groove</a></div> + + </div> + + + <div style="float:left;display:inline;margin-left:40px;border-left:1px solid #ccc;padding-left:30px;width:150px"> + + <div class="sm2-inline-list" style="margin-bottom:10px"> <!-- note the CSS class, changes the layout --> + + <div class="ui360"><a href="http://www.freshly-ground.com/data/audio/binaural/Mak.mp3">Angry cow sound?</a></div> + <div class="ui360"><a href="http://www.freshly-ground.com/data/audio/binaural/Things that open, close and roll.mp3">Things that open, close and roll</a></div> + <div class="ui360"><a href="http://www.freshly-ground.com/misc/music/20060826%20-%20Armstrong.mp3">20060826 - Armstrong</a></div> + + </div> + + </div> + +</div> + +<div style="clear:both"></div> + + + <h3>How This Works</h3> + + <p>The script looks for a container element matching <code>div.<span>ui360</span></code>, and then the first link inside of it.</p> + + <div> + +<pre class="block"><code>&lt;div class="<span>ui360</span>"&gt; + &lt;a href="/path/to/an.mp3"&gt;play "an.mp3"&lt;/a&gt; +&lt;/div&gt;</code></pre> + + </div> + + <p>When the 360 player script loads, it adds a <code>UI</code> template to the block, prepending it in front of the MP3 link:</p> + +<pre class="block"><code>&lt;div class="<span>ui360</span>"&gt; + <span><span>&lt;-- dynamically-inserted block --&gt;</span></span> + &lt;div class="<span>ui</span>"&gt; + &lt;canvas class="<span>sm2-canvas</span>"&gt;&lt;/canvas&gt; + &lt;span class="<span>sm2-360btn</span>"&gt;&lt;/span&gt; + &lt;div class="<span>sm2-timing</span>"&gt;&lt;/div&gt; + &lt;div class="<span>sm2-cover</span>"&gt;&lt;/div&gt; + &lt;/div&gt; + <span><span>&lt;-- /UI --&gt;</span></span> + &lt;a href="<span>/path/to/an.mp3</span>"&gt; +&lt;/div&gt;</code></pre> + +<h3>Customizing the UI</h3> + +<p>The player's default 50x50-pixel canvas is defined both within JavaScript and CSS. For an example with different values, see this <a href="canvas-visualization.html" title="360&deg; UI: larger version">larger version</a>.</p> + +<pre class="block"><code>threeSixtyPlayer.config = { + playNext: <span>false</span>, <span><span>// stop after one sound, or play through list until end</span></span> + autoPlay: <span>false</span>, <span><span>// start playing the first sound right away</span></span> + allowMultiple: <span>true</span>, <span><span>// let many sounds play at once (false = one at a time)</span></span> + loadRingColor: <span>'#ccc',</span> <span><span>// amount of sound which has loaded</span></span> + playRingColor: <span>'#000'</span>, <span><span>// amount of sound which has played</span></span> + backgroundRingColor: <span>'#eee', </span><span><span>// "default" color shown underneath everything else</span></span> + animDuration: <span>500</span>, + animTransition: <span>Animator.tx.bouncy</span> <span><span>// http://www.berniecode.com/writing/animator.html</span></span> +}</code></pre> + +<p>The CSS for the canvas UI block is a bit ugly, but JavaScript reads the width of the <code>.sm2-360ui</code> element in the DOM as set by CSS and uses that to later draw and update the canvas element while playing.</p> + +<pre class="block"><code>.ui360, +.sm2-360ui { + <span><span>/* size of the container for the circle, etc. */</span></span> + width:<span>50px</span>; + height:<span>50px</span>; +} +</code></pre> + +<h3>Third-party Components</h3> + +<p>This demo includes use of <a href="http://www.berniecode.com/writing/animator.html">Bernie's Better Animation Class</a> (Apache licensed) for some animation effects.</p> +<p>Also, some loader/spinner icons from <a href="http://ajaxload.info">ajaxload.info</a> are used for showing loading/buffering states.</p> + +<hr /> + + <p> + <a href="http://www.schillmania.com/projects/soundmanager2/" title="SoundManager 2 home">SoundManager 2 project page</a> (not an MP3 link) + </p> + + +</div> + +</body> +</html> diff --git a/media/soundmanager/demo/360-player/script/360player.js b/media/soundmanager/demo/360-player/script/360player.js new file mode 100644 index 00000000..4546a415 --- /dev/null +++ b/media/soundmanager/demo/360-player/script/360player.js @@ -0,0 +1,1416 @@ +/** + * + * SoundManager 2 Demo: 360-degree / "donut player" + * ------------------------------------------------ + * http://schillmania.com/projects/soundmanager2/ + * + * An inline player with a circular UI. + * Based on the original SM2 inline player. + * Inspired by Apple's preview feature in the + * iTunes music store (iPhone), among others. + * + * Requires SoundManager 2 Javascript API. + * Also uses Bernie's Better Animation Class (BSD): + * http://www.berniecode.com/writing/animator.html + * +*/ + +/*jslint white: false, onevar: true, undef: true, nomen: false, eqeqeq: true, plusplus: false, bitwise: true, regexp: false, newcap: true, immed: true */ +/*global document, window, soundManager, navigator */ + +var threeSixtyPlayer, // instance + ThreeSixtyPlayer; // constructor + +(function(window) { + +function ThreeSixtyPlayer() { + + var self = this, + pl = this, + sm = soundManager, // soundManager instance + uA = navigator.userAgent, + isIE = (uA.match(/msie/i)), + isOpera = (uA.match(/opera/i)), + isSafari = (uA.match(/safari/i)), + isChrome = (uA.match(/chrome/i)), + isFirefox = (uA.match(/firefox/i)), + isTouchDevice = (uA.match(/ipad|iphone/i)), + hasRealCanvas = (typeof window.G_vmlCanvasManager === 'undefined' && typeof document.createElement('canvas').getContext('2d') !== 'undefined'), + // I dunno what Opera doesn't like about this. I'm probably doing it wrong. + fullCircle = (isOpera||isChrome?359.9:360), + // exclude old IE from hi-DPI / "retina"-scale display size + hiDPIScale = (navigator.userAgent.match(/msie [678]/i)? 1 : 2); + + // CSS class for ignoring MP3 links + this.excludeClass = 'threesixty-exclude'; + this.links = []; + this.sounds = []; + this.soundsByURL = []; + this.indexByURL = []; + this.lastSound = null; + this.lastTouchedSound = null; + this.soundCount = 0; + this.oUITemplate = null; + this.oUIImageMap = null; + this.vuMeter = null; + this.callbackCount = 0; + this.peakDataHistory = []; + + // 360player configuration options + this.config = { + + playNext: false, // stop after one sound, or play through list until end + autoPlay: false, // start playing the first sound right away + allowMultiple: false, // let many sounds play at once (false = only one sound playing at a time) + loadRingColor: '#ccc', // how much has loaded + playRingColor: '#000', // how much has played + backgroundRingColor: '#eee', // color shown underneath load + play ("not yet loaded" color) + + // optional segment/annotation (metadata) stuff.. + segmentRingColor: 'rgba(255,255,255,0.33)', // metadata/annotation (segment) colors + segmentRingColorAlt: 'rgba(0,0,0,0.1)', + loadRingColorMetadata: '#ddd', // "annotations" load color + playRingColorMetadata: 'rgba(128,192,256,0.9)', // how much has played when metadata is present + + circleDiameter: null, // set dynamically according to values from CSS + circleRadius: null, + animDuration: 500, + animTransition: window.Animator.tx.bouncy, // http://www.berniecode.com/writing/animator.html + showHMSTime: false, // hours:minutes:seconds vs. seconds-only + scaleFont: true, // also set the font size (if possible) while animating the circle + + // optional: spectrum or EQ graph in canvas (not supported in IE <9, too slow via ExCanvas) + useWaveformData: false, + waveformDataColor: '#0099ff', + waveformDataDownsample: 3, // use only one in X (of a set of 256 values) - 1 means all 256 + waveformDataOutside: false, + waveformDataConstrain: false, // if true, +ve values only - keep within inside circle + waveformDataLineRatio: 0.64, + + // "spectrum frequency" option + useEQData: false, + eqDataColor: '#339933', + eqDataDownsample: 4, // use only one in X (of 256 values) + eqDataOutside: true, + eqDataLineRatio: 0.54, + + // enable "amplifier" (canvas pulses like a speaker) effect + usePeakData: true, + peakDataColor: '#ff33ff', + peakDataOutside: true, + peakDataLineRatio: 0.5, + + useAmplifier: true, // "pulse" like a speaker + + fontSizeMax: null, // set according to CSS + + scaleArcWidth: 1, // thickness factor of playback progress ring + + useFavIcon: false // Experimental (also requires usePeakData: true).. Try to draw a "VU Meter" in the favicon area, if browser supports it (Firefox + Opera as of 2009) + + }; + + this.css = { + + // CSS class names appended to link during various states + sDefault: 'sm2_link', // default state + sBuffering: 'sm2_buffering', + sPlaying: 'sm2_playing', + sPaused: 'sm2_paused' + + }; + + this.addEventHandler = (typeof window.addEventListener !== 'undefined' ? function(o, evtName, evtHandler) { + return o.addEventListener(evtName,evtHandler,false); + } : function(o, evtName, evtHandler) { + o.attachEvent('on'+evtName,evtHandler); + }); + + this.removeEventHandler = (typeof window.removeEventListener !== 'undefined' ? function(o, evtName, evtHandler) { + return o.removeEventListener(evtName,evtHandler,false); + } : function(o, evtName, evtHandler) { + return o.detachEvent('on'+evtName,evtHandler); + }); + + this.hasClass = function(o,cStr) { + return typeof(o.className)!=='undefined'?o.className.match(new RegExp('(\\s|^)'+cStr+'(\\s|$)')):false; + }; + + this.addClass = function(o,cStr) { + + if (!o || !cStr || self.hasClass(o,cStr)) { + return false; + } + o.className = (o.className?o.className+' ':'')+cStr; + + }; + + this.removeClass = function(o,cStr) { + + if (!o || !cStr || !self.hasClass(o,cStr)) { + return false; + } + o.className = o.className.replace(new RegExp('( '+cStr+')|('+cStr+')','g'),''); + + }; + + this.getElementsByClassName = function(className,tagNames,oParent) { + + var doc = (oParent||document), + matches = [], i,j, nodes = []; + if (typeof tagNames !== 'undefined' && typeof tagNames !== 'string') { + for (i=tagNames.length; i--;) { + if (!nodes || !nodes[tagNames[i]]) { + nodes[tagNames[i]] = doc.getElementsByTagName(tagNames[i]); + } + } + } else if (tagNames) { + nodes = doc.getElementsByTagName(tagNames); + } else { + nodes = doc.all||doc.getElementsByTagName('*'); + } + if (typeof(tagNames)!=='string') { + for (i=tagNames.length; i--;) { + for (j=nodes[tagNames[i]].length; j--;) { + if (self.hasClass(nodes[tagNames[i]][j],className)) { + matches.push(nodes[tagNames[i]][j]); + } + } + } + } else { + for (i=0; i<nodes.length; i++) { + if (self.hasClass(nodes[i],className)) { + matches.push(nodes[i]); + } + } + } + return matches; + + }; + + this.getParentByNodeName = function(oChild,sParentNodeName) { + + if (!oChild || !sParentNodeName) { + return false; + } + sParentNodeName = sParentNodeName.toLowerCase(); + while (oChild.parentNode && sParentNodeName !== oChild.parentNode.nodeName.toLowerCase()) { + oChild = oChild.parentNode; + } + return (oChild.parentNode && sParentNodeName === oChild.parentNode.nodeName.toLowerCase()?oChild.parentNode:null); + + }; + + this.getParentByClassName = function(oChild,sParentClassName) { + + if (!oChild || !sParentClassName) { + return false; + } + while (oChild.parentNode && !self.hasClass(oChild.parentNode,sParentClassName)) { + oChild = oChild.parentNode; + } + return (oChild.parentNode && self.hasClass(oChild.parentNode,sParentClassName)?oChild.parentNode:null); + + }; + + this.getSoundByURL = function(sURL) { + return (typeof self.soundsByURL[sURL] !== 'undefined'?self.soundsByURL[sURL]:null); + }; + + this.isChildOfNode = function(o,sNodeName) { + + if (!o || !o.parentNode) { + return false; + } + sNodeName = sNodeName.toLowerCase(); + do { + o = o.parentNode; + } while (o && o.parentNode && o.nodeName.toLowerCase() !== sNodeName); + return (o && o.nodeName.toLowerCase() === sNodeName?o:null); + + }; + + this.isChildOfClass = function(oChild,oClass) { + + if (!oChild || !oClass) { + return false; + } + while (oChild.parentNode && !self.hasClass(oChild,oClass)) { + oChild = self.findParent(oChild); + } + return (self.hasClass(oChild,oClass)); + + }; + + this.findParent = function(o) { + + if (!o || !o.parentNode) { + return false; + } + o = o.parentNode; + if (o.nodeType === 2) { + while (o && o.parentNode && o.parentNode.nodeType === 2) { + o = o.parentNode; + } + } + return o; + + }; + + this.getStyle = function(o,sProp) { + + // http://www.quirksmode.org/dom/getstyles.html + try { + if (o.currentStyle) { + return o.currentStyle[sProp]; + } else if (window.getComputedStyle) { + return document.defaultView.getComputedStyle(o,null).getPropertyValue(sProp); + } + } catch(e) { + // oh well + } + return null; + + }; + + this.findXY = function(obj) { + + var curleft = 0, curtop = 0; + do { + curleft += obj.offsetLeft; + curtop += obj.offsetTop; + } while (!!(obj = obj.offsetParent)); + return [curleft,curtop]; + + }; + + this.getMouseXY = function(e) { + + // http://www.quirksmode.org/js/events_properties.html + e = e?e:window.event; + if (isTouchDevice && e.touches) { + e = e.touches[0]; + } + if (e.pageX || e.pageY) { + return [e.pageX,e.pageY]; + } else if (e.clientX || e.clientY) { + return [e.clientX+self.getScrollLeft(),e.clientY+self.getScrollTop()]; + } + + }; + + this.getScrollLeft = function() { + return (document.body.scrollLeft+document.documentElement.scrollLeft); + }; + + this.getScrollTop = function() { + return (document.body.scrollTop+document.documentElement.scrollTop); + }; + + this.events = { + + // handlers for sound events as they're started/stopped/played + + play: function() { + pl.removeClass(this._360data.oUIBox,this._360data.className); + this._360data.className = pl.css.sPlaying; + pl.addClass(this._360data.oUIBox,this._360data.className); + self.fanOut(this); + }, + + stop: function() { + pl.removeClass(this._360data.oUIBox,this._360data.className); + this._360data.className = ''; + self.fanIn(this); + }, + + pause: function() { + pl.removeClass(this._360data.oUIBox,this._360data.className); + this._360data.className = pl.css.sPaused; + pl.addClass(this._360data.oUIBox,this._360data.className); + }, + + resume: function() { + pl.removeClass(this._360data.oUIBox,this._360data.className); + this._360data.className = pl.css.sPlaying; + pl.addClass(this._360data.oUIBox,this._360data.className); + }, + + finish: function() { + var nextLink; + pl.removeClass(this._360data.oUIBox,this._360data.className); + this._360data.className = ''; + // self.clearCanvas(this._360data.oCanvas); + this._360data.didFinish = true; // so fan draws full circle + self.fanIn(this); + if (pl.config.playNext) { + nextLink = (pl.indexByURL[this._360data.oLink.href]+1); + if (nextLink<pl.links.length) { + pl.handleClick({'target':pl.links[nextLink]}); + } + } + }, + + whileloading: function() { + if (this.paused) { + self.updatePlaying.apply(this); + } + }, + + whileplaying: function() { + self.updatePlaying.apply(this); + this._360data.fps++; + }, + + bufferchange: function() { + if (this.isBuffering) { + pl.addClass(this._360data.oUIBox,pl.css.sBuffering); + } else { + pl.removeClass(this._360data.oUIBox,pl.css.sBuffering); + } + } + + }; + + this.stopEvent = function(e) { + + if (typeof e !== 'undefined' && typeof e.preventDefault !== 'undefined') { + e.preventDefault(); + } else if (typeof window.event !== 'undefined' && typeof window.event.returnValue !== 'undefined') { + window.event.returnValue = false; + } + return false; + + }; + + this.getTheDamnLink = (isIE)?function(e) { + // I really didn't want to have to do this. + return (e && e.target?e.target:window.event.srcElement); + }:function(e) { + return e.target; + }; + + this.handleClick = function(e) { + + // a sound link was clicked + if (e.button > 1) { + // only catch left-clicks + return true; + } + + var o = self.getTheDamnLink(e), + canvasElements, sURL, soundURL, thisSound, oContainer, has_vis, diameter; + + if (o.nodeName.toLowerCase() !== 'a') { + o = self.isChildOfNode(o,'a'); + if (!o) { + return true; + } + } + + if (!self.isChildOfClass(o,'ui360')) { + // not a link we're interested in + return true; + } + + sURL = o.getAttribute('href'); + + if (!o.href || !sm.canPlayLink(o) || self.hasClass(o,self.excludeClass)) { + return true; // pass-thru for non-MP3/non-links + } + + sm._writeDebug('handleClick()'); + soundURL = (o.href); + thisSound = self.getSoundByURL(soundURL); + + if (thisSound) { + + // already exists + if (thisSound === self.lastSound) { + // and was playing (or paused) + thisSound.togglePause(); + } else { + // different sound + thisSound.togglePause(); // start playing current + sm._writeDebug('sound different than last sound: '+self.lastSound.id); + if (!self.config.allowMultiple && self.lastSound) { + self.stopSound(self.lastSound); + } + } + + } else { + + // append some dom shiz, make noise + + oContainer = o.parentNode; + has_vis = (self.getElementsByClassName('ui360-vis','div',oContainer.parentNode).length); + + // create sound + thisSound = sm.createSound({ + id:'ui360Sound'+(self.soundCount++), + url:soundURL, + onplay:self.events.play, + onstop:self.events.stop, + onpause:self.events.pause, + onresume:self.events.resume, + onfinish:self.events.finish, + onbufferchange:self.events.bufferchange, + type:(o.type||null), + whileloading:self.events.whileloading, + whileplaying:self.events.whileplaying, + useWaveformData:(has_vis && self.config.useWaveformData), + useEQData:(has_vis && self.config.useEQData), + usePeakData:(has_vis && self.config.usePeakData) + }); + + // tack on some custom data + + diameter = parseInt(self.getElementsByClassName('sm2-360ui','div',oContainer)[0].offsetWidth * hiDPIScale, 10); + + // see note re: IE <9 and excanvas when Modernizr is included, making weird things happen with <canvas>. + canvasElements = self.getElementsByClassName('sm2-canvas','canvas',oContainer), + + thisSound._360data = { + oUI360: self.getParentByClassName(o,'ui360'), // the (whole) entire container + oLink: o, // DOM node for reference within SM2 object event handlers + className: self.css.sPlaying, + oUIBox: self.getElementsByClassName('sm2-360ui','div',oContainer)[0], + oCanvas: canvasElements[canvasElements.length-1], + oButton: self.getElementsByClassName('sm2-360btn','span',oContainer)[0], + oTiming: self.getElementsByClassName('sm2-timing','div',oContainer)[0], + oCover: self.getElementsByClassName('sm2-cover','div',oContainer)[0], + circleDiameter: diameter, + circleRadius: diameter/2, + lastTime: null, + didFinish: null, + pauseCount:0, + radius:0, + fontSize: 1, + fontSizeMax: self.config.fontSizeMax, + scaleFont: (has_vis && self.config.scaleFont), + showHMSTime: has_vis, + amplifier: (has_vis && self.config.usePeakData?0.9:1), // TODO: x1 if not being used, else use dynamic "how much to amplify by" value + radiusMax: diameter*0.175, // circle radius + width:0, + widthMax: diameter*0.4, // width of the outer ring + lastValues: { + bytesLoaded: 0, + bytesTotal: 0, + position: 0, + durationEstimate: 0 + }, // used to track "last good known" values before sound finish/reset for anim + animating: false, + oAnim: new window.Animator({ + duration: self.config.animDuration, + transition:self.config.animTransition, + onComplete: function() { + // var thisSound = this; + // thisSound._360data.didFinish = false; // reset full circle + } + }), + oAnimProgress: function(nProgress) { + var thisSound = this; + thisSound._360data.radius = parseInt(thisSound._360data.radiusMax*thisSound._360data.amplifier*nProgress, 10); + thisSound._360data.width = parseInt(thisSound._360data.widthMax*thisSound._360data.amplifier*nProgress, 10); + if (thisSound._360data.scaleFont && thisSound._360data.fontSizeMax !== null) { + thisSound._360data.oTiming.style.fontSize = parseInt(Math.max(1,thisSound._360data.fontSizeMax*nProgress), 10)+'px'; + thisSound._360data.oTiming.style.opacity = nProgress; + } + if (thisSound.paused || thisSound.playState === 0 || thisSound._360data.lastValues.bytesLoaded === 0 || thisSound._360data.lastValues.position === 0) { + self.updatePlaying.apply(thisSound); + } + }, + fps: 0 + }; + + // "Metadata" (annotations) + if (typeof self.Metadata !== 'undefined' && self.getElementsByClassName('metadata','div',thisSound._360data.oUI360).length) { + thisSound._360data.metadata = new self.Metadata(thisSound,self); + } + + // minimize ze font + if (thisSound._360data.scaleFont && thisSound._360data.fontSizeMax !== null) { + thisSound._360data.oTiming.style.fontSize = '1px'; + } + + // set up ze animation + thisSound._360data.oAnim.addSubject(thisSound._360data.oAnimProgress,thisSound); + + // animate the radius out nice + self.refreshCoords(thisSound); + + self.updatePlaying.apply(thisSound); + + self.soundsByURL[soundURL] = thisSound; + self.sounds.push(thisSound); + if (!self.config.allowMultiple && self.lastSound) { + self.stopSound(self.lastSound); + } + thisSound.play(); + + } + + self.lastSound = thisSound; // reference for next call + + if (typeof e !== 'undefined' && typeof e.preventDefault !== 'undefined') { + e.preventDefault(); + } else if (typeof window.event !== 'undefined') { + window.event.returnValue = false; + } + return false; + + }; + + this.fanOut = function(oSound) { + + var thisSound = oSound; + if (thisSound._360data.animating === 1) { + return false; + } + thisSound._360data.animating = 0; + soundManager._writeDebug('fanOut: '+thisSound.id+': '+thisSound._360data.oLink.href); + thisSound._360data.oAnim.seekTo(1); // play to end + window.setTimeout(function() { + // oncomplete hack + thisSound._360data.animating = 0; + },self.config.animDuration+20); + + }; + + this.fanIn = function(oSound) { + + var thisSound = oSound; + if (thisSound._360data.animating === -1) { + return false; + } + thisSound._360data.animating = -1; + soundManager._writeDebug('fanIn: '+thisSound.id+': '+thisSound._360data.oLink.href); + // massive hack + thisSound._360data.oAnim.seekTo(0); // play to end + window.setTimeout(function() { + // reset full 360 fill after animation has completed (oncomplete hack) + thisSound._360data.didFinish = false; + thisSound._360data.animating = 0; + self.resetLastValues(thisSound); + }, self.config.animDuration+20); + + }; + + this.resetLastValues = function(oSound) { + oSound._360data.lastValues.position = 0; + }; + + this.refreshCoords = function(thisSound) { + + thisSound._360data.canvasXY = self.findXY(thisSound._360data.oCanvas); + thisSound._360data.canvasMid = [thisSound._360data.circleRadius,thisSound._360data.circleRadius]; + thisSound._360data.canvasMidXY = [thisSound._360data.canvasXY[0]+thisSound._360data.canvasMid[0], thisSound._360data.canvasXY[1]+thisSound._360data.canvasMid[1]]; + + }; + + this.stopSound = function(oSound) { + + soundManager._writeDebug('stopSound: '+oSound.id); + soundManager.stop(oSound.id); + if (!isTouchDevice) { // iOS 4.2+ security blocks onfinish() -> playNext() if we set a .src in-between(?) + soundManager.unload(oSound.id); + } + + }; + + this.buttonClick = function(e) { + + var o = e?(e.target?e.target:e.srcElement):window.event.srcElement; + self.handleClick({target:self.getParentByClassName(o,'sm2-360ui').nextSibling}); // link next to the nodes we inserted + return false; + + }; + + this.buttonMouseDown = function(e) { + + // user might decide to drag from here + // watch for mouse move + if (!isTouchDevice) { + document.onmousemove = function(e) { + // should be boundary-checked, really (eg. move 3px first?) + self.mouseDown(e); + }; + } else { + self.addEventHandler(document,'touchmove',self.mouseDown); + } + self.stopEvent(e); + return false; + + }; + + this.mouseDown = function(e) { + + if (!isTouchDevice && e.button > 1) { + return true; // ignore non-left-click + } + + if (!self.lastSound) { + self.stopEvent(e); + return false; + } + + var evt = e?e:window.event, + target, thisSound, oData; + + if (isTouchDevice && evt.touches) { + evt = evt.touches[0]; + } + target = (evt.target||evt.srcElement); + + thisSound = self.getSoundByURL(self.getElementsByClassName('sm2_link','a',self.getParentByClassName(target,'ui360'))[0].href); // self.lastSound; // TODO: In multiple sound case, figure out which sound is involved etc. + // just in case, update coordinates (maybe the element moved since last time.) + self.lastTouchedSound = thisSound; + self.refreshCoords(thisSound); + oData = thisSound._360data; + self.addClass(oData.oUIBox,'sm2_dragging'); + oData.pauseCount = (self.lastTouchedSound.paused?1:0); + // self.lastSound.pause(); + self.mmh(e?e:window.event); + + if (isTouchDevice) { + self.removeEventHandler(document,'touchmove',self.mouseDown); + self.addEventHandler(document,'touchmove',self.mmh); + self.addEventHandler(document,'touchend',self.mouseUp); + } else { + // incredibly old-skool. TODO: Modernize. + document.onmousemove = self.mmh; + document.onmouseup = self.mouseUp; + } + + self.stopEvent(e); + return false; + + }; + + this.mouseUp = function(e) { + + var oData = self.lastTouchedSound._360data; + self.removeClass(oData.oUIBox,'sm2_dragging'); + if (oData.pauseCount === 0) { + self.lastTouchedSound.resume(); + } + if (!isTouchDevice) { + document.onmousemove = null; + document.onmouseup = null; + } else { + self.removeEventHandler(document,'touchmove',self.mmh); + self.removeEventHandler(document,'touchend',self.mouseUP); + } + + }; + + this.mmh = function(e) { + + if (typeof e === 'undefined') { + e = window.event; + } + var oSound = self.lastTouchedSound, + coords = self.getMouseXY(e), + x = coords[0], + y = coords[1], + deltaX = x-oSound._360data.canvasMidXY[0], + deltaY = y-oSound._360data.canvasMidXY[1], + angle = Math.floor(fullCircle-(self.rad2deg(Math.atan2(deltaX,deltaY))+180)); + + oSound.setPosition(oSound.durationEstimate*(angle/fullCircle)); + self.stopEvent(e); + return false; + + }; + + // assignMouseDown(); + + this.drawSolidArc = function(oCanvas, color, radius, width, radians, startAngle, noClear) { + + // thank you, http://www.snipersystems.co.nz/community/polarclock/tutorial.html + + var x = radius, + y = radius, + canvas = oCanvas, + ctx, innerRadius, doesntLikeZero, endPoint; + + if (canvas.getContext) { + // use getContext to use the canvas for drawing + ctx = canvas.getContext('2d'); + } + + // re-assign canvas as the actual context + oCanvas = ctx; + + if (!noClear) { + self.clearCanvas(canvas); + } + // ctx.restore(); + + if (color) { + ctx.fillStyle = color; + } + + oCanvas.beginPath(); + + if (isNaN(radians)) { + radians = 0; + } + + innerRadius = radius-width; + doesntLikeZero = (isOpera || isSafari); // safari 4 doesn't actually seem to mind. + + if (!doesntLikeZero || (doesntLikeZero && radius > 0)) { + oCanvas.arc(0, 0, radius, startAngle, radians, false); + endPoint = self.getArcEndpointCoords(innerRadius, radians); + oCanvas.lineTo(endPoint.x, endPoint.y); + oCanvas.arc(0, 0, innerRadius, radians, startAngle, true); + oCanvas.closePath(); + oCanvas.fill(); + } + + }; + + this.getArcEndpointCoords = function(radius, radians) { + + return { + x: radius * Math.cos(radians), + y: radius * Math.sin(radians) + }; + + }; + + this.deg2rad = function(nDeg) { + return (nDeg * Math.PI/180); + }; + + this.rad2deg = function(nRad) { + return (nRad * 180/Math.PI); + }; + + this.getTime = function(nMSec,bAsString) { + + // convert milliseconds to mm:ss, return as object literal or string + var nSec = Math.floor(nMSec/1000), + min = Math.floor(nSec/60), + sec = nSec-(min*60); + // if (min === 0 && sec === 0) return null; // return 0:00 as null + return (bAsString?(min+':'+(sec<10?'0'+sec:sec)):{'min':min,'sec':sec}); + + }; + + this.clearCanvas = function(oCanvas) { + + var canvas = oCanvas, + ctx = null, + width, height; + + if (canvas.getContext) { + // use getContext to use the canvas for drawing + ctx = canvas.getContext('2d'); + } + + if (ctx) { + width = canvas.offsetWidth; + height = canvas.offsetHeight; + ctx.clearRect(-(width/2), -(height/2), width, height); + } + + }; + + this.updatePlaying = function() { + + var timeNow = (this._360data.showHMSTime?self.getTime(this.position,true):parseInt(this.position/1000, 10)); + var ringScaleFactor = self.config.scaleArcWidth; + + if (this.bytesLoaded) { + this._360data.lastValues.bytesLoaded = this.bytesLoaded; + this._360data.lastValues.bytesTotal = this.bytesTotal; + } + + if (this.position) { + this._360data.lastValues.position = this.position; + } + + if (this.durationEstimate) { + this._360data.lastValues.durationEstimate = this.durationEstimate; + } + + // background ring + self.drawSolidArc(this._360data.oCanvas,self.config.backgroundRingColor,this._360data.width,this._360data.radius * ringScaleFactor,self.deg2rad(fullCircle),false); + + // loaded ring + self.drawSolidArc(this._360data.oCanvas,(this._360data.metadata?self.config.loadRingColorMetadata:self.config.loadRingColor),this._360data.width,this._360data.radius * ringScaleFactor,self.deg2rad(fullCircle*(this._360data.lastValues.bytesLoaded/this._360data.lastValues.bytesTotal)),0,true); + + // don't draw if 0 (full black circle in Opera) + if (this._360data.lastValues.position !== 0) { + self.drawSolidArc(this._360data.oCanvas,(this._360data.metadata?self.config.playRingColorMetadata:self.config.playRingColor),this._360data.width,this._360data.radius * ringScaleFactor,self.deg2rad((this._360data.didFinish===1?fullCircle:fullCircle*(this._360data.lastValues.position/this._360data.lastValues.durationEstimate))),0,true); + } + + // metadata goes here + if (this._360data.metadata) { + this._360data.metadata.events.whileplaying(); + } + + if (timeNow !== this._360data.lastTime) { + this._360data.lastTime = timeNow; + this._360data.oTiming.innerHTML = timeNow; + } + + // draw spectrum, if applicable + if ((this.instanceOptions.useWaveformData || this.instanceOptions.useEQData) && hasRealCanvas) { // IE <9 can render maybe 3 or 4 FPS when including the wave/EQ, so don't bother. + self.updateWaveform(this); + } + + if (self.config.useFavIcon && self.vuMeter) { + self.vuMeter.updateVU(this); + } + + }; + + this.updateWaveform = function(oSound) { + + if ((!self.config.useWaveformData && !self.config.useEQData) || (!sm.features.waveformData && !sm.features.eqData)) { + // feature not enabled.. + return false; + } + + if (!oSound.waveformData.left.length && !oSound.eqData.length && !oSound.peakData.left) { + // no data (or errored out/paused/unavailable?) + return false; + } + + /* use for testing the data */ + /* + for (i=0; i<256; i++) { + oSound.eqData[i] = 1-(i/256); + } + */ + + var oCanvas = oSound._360data.oCanvas.getContext('2d'), + offX = 0, + offY = parseInt(oSound._360data.circleDiameter/2, 10), + scale = offY/2, // Y axis (+/- this distance from 0) + // lineWidth = Math.floor(oSound._360data.circleDiameter-(oSound._360data.circleDiameter*0.175)/(oSound._360data.circleDiameter/255)); // width for each line + lineWidth = 1, + lineHeight = 1, + thisY = 0, + offset = offY, + i, j, direction, downSample, dataLength, sampleCount, startAngle, endAngle, waveData, innerRadius, perItemAngle, yDiff, eqSamples, playedAngle, iAvg, nPeak; + + if (self.config.useWaveformData) { + // raw waveform + downSample = self.config.waveformDataDownsample; // only sample X in 256 (greater number = less sample points) + downSample = Math.max(1,downSample); // make sure it's at least 1 + dataLength = 256; + sampleCount = (dataLength/downSample); + startAngle = 0; + endAngle = 0; + waveData = null; + innerRadius = (self.config.waveformDataOutside?1:(self.config.waveformDataConstrain?0.5:0.565)); + scale = (self.config.waveformDataOutside?0.7:0.75); + perItemAngle = self.deg2rad((360/sampleCount)*self.config.waveformDataLineRatio); // 0.85 = clean pixel lines at 150? // self.deg2rad(360*(Math.max(1,downSample-1))/sampleCount); + for (i=0; i<dataLength; i+=downSample) { + startAngle = self.deg2rad(360*(i/(sampleCount)*1/downSample)); // +0.67 - counter for spacing + endAngle = startAngle+perItemAngle; + waveData = oSound.waveformData.left[i]; + if (waveData<0 && self.config.waveformDataConstrain) { + waveData = Math.abs(waveData); + } + self.drawSolidArc(oSound._360data.oCanvas,self.config.waveformDataColor,oSound._360data.width*innerRadius*(2-self.config.scaleArcWidth),oSound._360data.radius*scale*1.25*waveData,endAngle,startAngle,true); + } + } + + if (self.config.useEQData) { + // EQ spectrum + downSample = self.config.eqDataDownsample; // only sample N in 256 + yDiff = 0; + downSample = Math.max(1,downSample); // make sure it's at least 1 + eqSamples = 192; // drop the last 25% of the spectrum (>16500 Hz), most stuff won't actually use it. + sampleCount = (eqSamples/downSample); + innerRadius = (self.config.eqDataOutside?1:0.565); + direction = (self.config.eqDataOutside?-1:1); + scale = (self.config.eqDataOutside?0.5:0.75); + startAngle = 0; + endAngle = 0; + perItemAngle = self.deg2rad((360/sampleCount)*self.config.eqDataLineRatio); // self.deg2rad(360/(sampleCount+1)); + playedAngle = self.deg2rad((oSound._360data.didFinish===1?360:360*(oSound._360data.lastValues.position/oSound._360data.lastValues.durationEstimate))); + j=0; + iAvg = 0; + for (i=0; i<eqSamples; i+=downSample) { + startAngle = self.deg2rad(360*(i/eqSamples)); + endAngle = startAngle+perItemAngle; + self.drawSolidArc(oSound._360data.oCanvas,(endAngle>playedAngle?self.config.eqDataColor:self.config.playRingColor),oSound._360data.width*innerRadius,oSound._360data.radius*scale*(oSound.eqData.left[i]*direction),endAngle,startAngle,true); + } + } + + if (self.config.usePeakData) { + if (!oSound._360data.animating) { + nPeak = (oSound.peakData.left||oSound.peakData.right); + // GIANT HACK: use EQ spectrum data for bass frequencies + eqSamples = 3; + for (i=0; i<eqSamples; i++) { + nPeak = (nPeak||oSound.eqData[i]); + } + oSound._360data.amplifier = (self.config.useAmplifier?(0.9+(nPeak*0.1)):1); + oSound._360data.radiusMax = oSound._360data.circleDiameter*0.175*oSound._360data.amplifier; + oSound._360data.widthMax = oSound._360data.circleDiameter*0.4*oSound._360data.amplifier; + oSound._360data.radius = parseInt(oSound._360data.radiusMax*oSound._360data.amplifier, 10); + oSound._360data.width = parseInt(oSound._360data.widthMax*oSound._360data.amplifier, 10); + } + } + + }; + + this.getUIHTML = function(diameter) { + + return [ + '<canvas class="sm2-canvas" width="'+diameter+'" height="'+diameter+'"></canvas>', + ' <span class="sm2-360btn sm2-360btn-default"></span>', // note use of imageMap, edit or remove if you use a different-size image. + ' <div class="sm2-timing'+(navigator.userAgent.match(/safari/i)?' alignTweak':'')+'"></div>', // + Ever-so-slight Safari horizontal alignment tweak + ' <div class="sm2-cover"></div>' + ]; + + }; + + this.uiTest = function(sClass) { + + // fake a 360 UI so we can get some numbers from CSS, etc. + + var oTemplate = document.createElement('div'), + oFakeUI, oFakeUIBox, oTemp, fakeDiameter, uiHTML, circleDiameter, circleRadius, fontSizeMax, oTiming; + + oTemplate.className = 'sm2-360ui'; + + oFakeUI = document.createElement('div'); + oFakeUI.className = 'ui360'+(sClass?' '+sClass:''); // ui360 ui360-vis + + oFakeUIBox = oFakeUI.appendChild(oTemplate.cloneNode(true)); + + oFakeUI.style.position = 'absolute'; + oFakeUI.style.left = '-9999px'; + + oTemp = document.body.appendChild(oFakeUI); + + fakeDiameter = oFakeUIBox.offsetWidth * hiDPIScale; + + uiHTML = self.getUIHTML(fakeDiameter); + + oFakeUIBox.innerHTML = uiHTML[1]+uiHTML[2]+uiHTML[3]; + + circleDiameter = parseInt(fakeDiameter, 10); + circleRadius = parseInt(circleDiameter/2, 10); + + oTiming = self.getElementsByClassName('sm2-timing','div',oTemp)[0]; + fontSizeMax = parseInt(self.getStyle(oTiming,'font-size'), 10); + if (isNaN(fontSizeMax)) { + // getStyle() etc. didn't work. + fontSizeMax = null; + } + + // soundManager._writeDebug('diameter, font size: '+circleDiameter+','+fontSizeMax); + + oFakeUI.parentNode.removeChild(oFakeUI); + + uiHTML = oFakeUI = oFakeUIBox = oTemp = null; + + return { + circleDiameter: circleDiameter, + circleRadius: circleRadius, + fontSizeMax: fontSizeMax + }; + + }; + + this.init = function() { + + sm._writeDebug('threeSixtyPlayer.init()'); + + var oItems = self.getElementsByClassName('ui360','div'), + i, j, oLinks = [], is_vis = false, foundItems = 0, canvasElements, oCanvas, oCanvasCTX, oCover, diameter, radius, uiData, uiDataVis, oUI, oBtn, o, o2, oID; + + for (i=0,j=oItems.length; i<j; i++) { + oLinks.push(oItems[i].getElementsByTagName('a')[0]); + // remove "fake" play button (unsupported case) + oItems[i].style.backgroundImage = 'none'; + } + // grab all links, look for .mp3 + + self.oUITemplate = document.createElement('div'); + self.oUITemplate.className = 'sm2-360ui'; + + self.oUITemplateVis = document.createElement('div'); + self.oUITemplateVis.className = 'sm2-360ui'; + + uiData = self.uiTest(); + + self.config.circleDiameter = uiData.circleDiameter; + self.config.circleRadius = uiData.circleRadius; + // self.config.fontSizeMax = uiData.fontSizeMax; + + uiDataVis = self.uiTest('ui360-vis'); + + self.config.fontSizeMax = uiDataVis.fontSizeMax; + + // canvas needs inline width and height, doesn't quite work otherwise + self.oUITemplate.innerHTML = self.getUIHTML(self.config.circleDiameter).join(''); + + self.oUITemplateVis.innerHTML = self.getUIHTML(uiDataVis.circleDiameter).join(''); + + for (i=0,j=oLinks.length; i<j; i++) { + if (sm.canPlayLink(oLinks[i]) && !self.hasClass(oLinks[i],self.excludeClass) && !self.hasClass(oLinks[i],self.css.sDefault)) { + self.addClass(oLinks[i],self.css.sDefault); // add default CSS decoration + self.links[foundItems] = (oLinks[i]); + self.indexByURL[oLinks[i].href] = foundItems; // hack for indexing + foundItems++; + + is_vis = self.hasClass(oLinks[i].parentNode, 'ui360-vis'); + + diameter = (is_vis ? uiDataVis : uiData).circleDiameter; + radius = (is_vis ? uiDataVis : uiData).circleRadius; + + // add canvas shiz + oUI = oLinks[i].parentNode.insertBefore((is_vis?self.oUITemplateVis:self.oUITemplate).cloneNode(true),oLinks[i]); + + if (isIE && typeof window.G_vmlCanvasManager !== 'undefined') { // IE only + o = oLinks[i].parentNode; + o2 = document.createElement('canvas'); + o2.className = 'sm2-canvas'; + oID = 'sm2_canvas_'+i+(new Date().getTime()); + o2.id = oID; + o2.width = diameter; + o2.height = diameter; + oUI.appendChild(o2); + window.G_vmlCanvasManager.initElement(o2); // Apply ExCanvas compatibility magic + oCanvas = document.getElementById(oID); + /** + * 05/2013: If present, Modernizr results in two canvas elements or something being made, one being <:canvas>. + * When this is the case, the first doesn't have getContext('2d') and such - so, use the second. + */ + canvasElements = oCanvas.parentNode.getElementsByTagName('canvas'); + if (canvasElements.length > 1) { + oCanvas = canvasElements[canvasElements.length-1]; + } + } else { + // add a handler for the button + oCanvas = oLinks[i].parentNode.getElementsByTagName('canvas')[0]; + } + // enable hi-DPI / retina features? + if (hiDPIScale > 1) { + self.addClass(oCanvas, 'hi-dpi'); + } + oCover = self.getElementsByClassName('sm2-cover','div',oLinks[i].parentNode)[0]; + oBtn = oLinks[i].parentNode.getElementsByTagName('span')[0]; + self.addEventHandler(oBtn,'click',self.buttonClick); + if (!isTouchDevice) { + self.addEventHandler(oCover,'mousedown',self.mouseDown); + } else { + self.addEventHandler(oCover,'touchstart',self.mouseDown); + } + oCanvasCTX = oCanvas.getContext('2d'); + oCanvasCTX.translate(radius, radius); + oCanvasCTX.rotate(self.deg2rad(-90)); // compensate for arc starting at EAST // http://stackoverflow.com/questions/319267/tutorial-for-html-canvass-arc-function + } + } + if (foundItems>0) { + self.addEventHandler(document,'click',self.handleClick); + if (self.config.autoPlay) { + self.handleClick({target:self.links[0],preventDefault:function(){}}); + } + } + sm._writeDebug('threeSixtyPlayer.init(): Found '+foundItems+' relevant items.'); + + if (self.config.useFavIcon && typeof this.VUMeter !== 'undefined') { + this.vuMeter = new this.VUMeter(this); + } + + }; + +} + +// Optional: VU Meter component + +ThreeSixtyPlayer.prototype.VUMeter = function(oParent) { + + var self = oParent, + me = this, + _head = document.getElementsByTagName('head')[0], + isOpera = (navigator.userAgent.match(/opera/i)), + isFirefox = (navigator.userAgent.match(/firefox/i)); + + this.vuMeterData = []; + this.vuDataCanvas = null; + + this.setPageIcon = function(sDataURL) { + + if (!self.config.useFavIcon || !self.config.usePeakData || !sDataURL) { + return false; + } + + var link = document.getElementById('sm2-favicon'); + if (link) { + _head.removeChild(link); + link = null; + } + if (!link) { + link = document.createElement('link'); + link.id = 'sm2-favicon'; + link.rel = 'shortcut icon'; + link.type = 'image/png'; + link.href = sDataURL; + document.getElementsByTagName('head')[0].appendChild(link); + } + + }; + + this.resetPageIcon = function() { + + if (!self.config.useFavIcon) { + return false; + } + var link = document.getElementById('favicon'); + if (link) { + link.href = '/favicon.ico'; + } + + }; + + this.updateVU = function(oSound) { + + if (soundManager.flashVersion >= 9 && self.config.useFavIcon && self.config.usePeakData) { + me.setPageIcon(me.vuMeterData[parseInt(16*oSound.peakData.left, 10)][parseInt(16*oSound.peakData.right, 10)]); + } + + }; + + this.createVUData = function() { + + var i=0, j=0, + canvas = me.vuDataCanvas.getContext('2d'), + vuGrad = canvas.createLinearGradient(0, 16, 0, 0), + bgGrad = canvas.createLinearGradient(0, 16, 0, 0), + outline = 'rgba(0,0,0,0.2)'; + + vuGrad.addColorStop(0,'rgb(0,192,0)'); + vuGrad.addColorStop(0.30,'rgb(0,255,0)'); + vuGrad.addColorStop(0.625,'rgb(255,255,0)'); + vuGrad.addColorStop(0.85,'rgb(255,0,0)'); + bgGrad.addColorStop(0,outline); + bgGrad.addColorStop(1,'rgba(0,0,0,0.5)'); + for (i=0; i<16; i++) { + me.vuMeterData[i] = []; + } + for (i=0; i<16; i++) { + for (j=0; j<16; j++) { + // reset/erase canvas + me.vuDataCanvas.setAttribute('width',16); + me.vuDataCanvas.setAttribute('height',16); + // draw new stuffs + canvas.fillStyle = bgGrad; + canvas.fillRect(0,0,7,15); + canvas.fillRect(8,0,7,15); + /* + // shadow + canvas.fillStyle = 'rgba(0,0,0,0.1)'; + canvas.fillRect(1,15-i,7,17-(17-i)); + canvas.fillRect(9,15-j,7,17-(17-j)); + */ + canvas.fillStyle = vuGrad; + canvas.fillRect(0,15-i,7,16-(16-i)); + canvas.fillRect(8,15-j,7,16-(16-j)); + // and now, clear out some bits. + canvas.clearRect(0,3,16,1); + canvas.clearRect(0,7,16,1); + canvas.clearRect(0,11,16,1); + me.vuMeterData[i][j] = me.vuDataCanvas.toDataURL('image/png'); + // for debugging VU images + /* + var o = document.createElement('img'); + o.style.marginRight = '5px'; + o.src = vuMeterData[i][j]; + document.documentElement.appendChild(o); + */ + } + } + + }; + + this.testCanvas = function() { + + // canvas + toDataURL(); + var c = document.createElement('canvas'), + ctx = null, ok; + if (!c || typeof c.getContext === 'undefined') { + return null; + } + ctx = c.getContext('2d'); + if (!ctx || typeof c.toDataURL !== 'function') { + return null; + } + // just in case.. + try { + ok = c.toDataURL('image/png'); + } catch(e) { + // no canvas or no toDataURL() + return null; + } + // assume we're all good. + return c; + + }; + + this.init = function() { + + if (self.config.useFavIcon) { + me.vuDataCanvas = me.testCanvas(); + if (me.vuDataCanvas && (isFirefox || isOpera)) { + // these browsers support dynamically-updating the favicon + me.createVUData(); + } else { + // browser doesn't support doing this + self.config.useFavIcon = false; + } + } + + }; + + this.init(); + +}; + +// completely optional: Metadata/annotations/segments code + +ThreeSixtyPlayer.prototype.Metadata = function(oSound, oParent) { + + soundManager._wD('Metadata()'); + + var me = this, + oBox = oSound._360data.oUI360, + o = oBox.getElementsByTagName('ul')[0], + oItems = o.getElementsByTagName('li'), + isFirefox = (navigator.userAgent.match(/firefox/i)), + isAlt = false, i, oDuration; + + this.lastWPExec = 0; + this.refreshInterval = 250; + this.totalTime = 0; + + this.events = { + + whileplaying: function() { + + var width = oSound._360data.width, + radius = oSound._360data.radius, + fullDuration = (oSound.durationEstimate||(me.totalTime*1000)), + isAlt = null, i, j, d; + + for (i=0,j=me.data.length; i<j; i++) { + isAlt = (i%2===0); + oParent.drawSolidArc(oSound._360data.oCanvas,(isAlt?oParent.config.segmentRingColorAlt:oParent.config.segmentRingColor),isAlt?width:width, isAlt?radius/2:radius/2, oParent.deg2rad(360*(me.data[i].endTimeMS/fullDuration)), oParent.deg2rad(360*((me.data[i].startTimeMS||1)/fullDuration)), true); + } + d = new Date(); + if (d-me.lastWPExec>me.refreshInterval) { + me.refresh(); + me.lastWPExec = d; + } + + } + + }; + + this.refresh = function() { + + // Display info as appropriate + var i, j, index = null, + now = oSound.position, + metadata = oSound._360data.metadata.data; + + for (i=0, j=metadata.length; i<j; i++) { + if (now >= metadata[i].startTimeMS && now <= metadata[i].endTimeMS) { + index = i; + break; + } + } + if (index !== metadata.currentItem && index < metadata.length) { + // update + oSound._360data.oLink.innerHTML = metadata.mainTitle+' <span class="metadata"><span class="sm2_divider"> | </span><span class="sm2_metadata">'+metadata[index].title+'</span></span>'; + // self.setPageTitle(metadata[index].title+' | '+metadata.mainTitle); + metadata.currentItem = index; + } + + }; + + this.strToTime = function(sTime) { + var segments = sTime.split(':'), + seconds = 0, i; + for (i=segments.length; i--;) { + seconds += parseInt(segments[i], 10)*Math.pow(60,segments.length-1-i); // hours, minutes + } + return seconds; + }; + + this.data = []; + this.data.givenDuration = null; + this.data.currentItem = null; + this.data.mainTitle = oSound._360data.oLink.innerHTML; + + for (i=0; i<oItems.length; i++) { + this.data[i] = { + o: null, + title: oItems[i].getElementsByTagName('p')[0].innerHTML, + startTime: oItems[i].getElementsByTagName('span')[0].innerHTML, + startSeconds: me.strToTime(oItems[i].getElementsByTagName('span')[0].innerHTML.replace(/[()]/g,'')), + duration: 0, + durationMS: null, + startTimeMS: null, + endTimeMS: null, + oNote: null + }; + } + oDuration = oParent.getElementsByClassName('duration','div',oBox); + this.data.givenDuration = (oDuration.length?me.strToTime(oDuration[0].innerHTML)*1000:0); + for (i=0; i<this.data.length; i++) { + this.data[i].duration = parseInt(this.data[i+1]?this.data[i+1].startSeconds:(me.data.givenDuration?me.data.givenDuration:oSound.durationEstimate)/1000, 10)-this.data[i].startSeconds; + this.data[i].startTimeMS = this.data[i].startSeconds*1000; + this.data[i].durationMS = this.data[i].duration*1000; + this.data[i].endTimeMS = this.data[i].startTimeMS+this.data[i].durationMS; + this.totalTime += this.data[i].duration; + } + +}; + +if (navigator.userAgent.match(/webkit/i) && navigator.userAgent.match(/mobile/i)) { + // iPad, iPhone etc. + soundManager.setup({ + useHTML5Audio: true + }); +} + +soundManager.setup({ + html5PollingInterval: 50, // increased framerate for whileplaying() etc. + debugMode: (window.location.href.match(/debug=1/i)), // disable or enable debug output + consoleOnly: true, + flashVersion: 9, + useHighPerformance: true/*, + useFlashBlock: true*/ +}); + +// FPS data, testing/debug only +if (soundManager.debugMode) { + window.setInterval(function() { + var p = window.threeSixtyPlayer; + if (p && p.lastSound && p.lastSound._360data.fps && typeof window.isHome === 'undefined') { + soundManager._writeDebug('fps: ~'+p.lastSound._360data.fps); + p.lastSound._360data.fps = 0; + } + },1000); +} + +window.ThreeSixtyPlayer = ThreeSixtyPlayer; // constructor + +}(window)); + +threeSixtyPlayer = new ThreeSixtyPlayer(); + +// hook into SM2 init +soundManager.onready(threeSixtyPlayer.init); \ No newline at end of file diff --git a/media/soundmanager/demo/360-player/script/berniecode-animator.js b/media/soundmanager/demo/360-player/script/berniecode-animator.js new file mode 100644 index 00000000..1c3b46f5 --- /dev/null +++ b/media/soundmanager/demo/360-player/script/berniecode-animator.js @@ -0,0 +1,674 @@ +/** @license + Animator.js 1.1.9 + + This library is released under the BSD license: + + Copyright (c) 2006, Bernard Sumption. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. Redistributions in binary + form must reproduce the above copyright notice, this list of conditions and + the following disclaimer in the documentation and/or other materials + provided with the distribution. Neither the name BernieCode nor + the names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR + ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + DAMAGE. + +*/ + +// http://www.berniecode.com/writing/animator.html + +// Applies a sequence of numbers between 0 and 1 to a number of subjects +// construct - see setOptions for parameters +function Animator(options) { + this.setOptions(options); + var _this = this; + this.timerDelegate = function(){_this.onTimerEvent()}; + this.subjects = []; + this.subjectScopes = []; + this.target = 0; + this.state = 0; + this.lastTime = null; +}; +Animator.prototype = { + // apply defaults + setOptions: function(options) { + this.options = Animator.applyDefaults({ + interval: 20, // time between animation frames + duration: 400, // length of animation + onComplete: function(){}, + onStep: function(){}, + transition: Animator.tx.easeInOut + }, options); + }, + // animate from the current state to provided value + seekTo: function(to) { + this.seekFromTo(this.state, to); + }, + // animate from the current state to provided value + seekFromTo: function(from, to) { + this.target = Math.max(0, Math.min(1, to)); + this.state = Math.max(0, Math.min(1, from)); + this.lastTime = new Date().getTime(); + if (!this.intervalId) { + this.intervalId = window.setInterval(this.timerDelegate, this.options.interval); + } + }, + // animate from the current state to provided value + jumpTo: function(to) { + this.target = this.state = Math.max(0, Math.min(1, to)); + this.propagate(); + }, + // seek to the opposite of the current target + toggle: function() { + this.seekTo(1 - this.target); + }, + // add a function or an object with a method setState(state) that will be called with a number + // between 0 and 1 on each frame of the animation + addSubject: function(subject,scope) { + this.subjects[this.subjects.length] = subject; + this.subjectScopes[this.subjectScopes.length] = scope; + return this; + }, + // remove all subjects + clearSubjects: function() { + this.subjects = []; + this.subjectScopes = []; + }, + // forward the current state to the animation subjects + propagate: function() { + var value = this.options.transition(this.state); + for (var i=0; i<this.subjects.length; i++) { + if (this.subjects[i].setState) { + this.subjects[i].setState(value); + } else { + this.subjects[i].apply(this.subjectScopes[i],[value]); + } + } + }, + // called once per frame to update the current state + onTimerEvent: function() { + var now = new Date().getTime(); + var timePassed = now - this.lastTime; + this.lastTime = now; + var movement = (timePassed / this.options.duration) * (this.state < this.target ? 1 : -1); + if (Math.abs(movement) >= Math.abs(this.state - this.target)) { + this.state = this.target; + } else { + this.state += movement; + } + + try { + this.propagate(); + } finally { + this.options.onStep.call(this); + if (this.target == this.state) { + window.clearInterval(this.intervalId); + this.intervalId = null; + this.options.onComplete.call(this); + } + } + }, + // shortcuts + play: function() {this.seekFromTo(0, 1)}, + reverse: function() {this.seekFromTo(1, 0)}, + // return a string describing this Animator, for debugging + inspect: function() { + var str = "#<Animator:\n"; + for (var i=0; i<this.subjects.length; i++) { + str += this.subjects[i].inspect(); + } + str += ">"; + return str; + } +} +// merge the properties of two objects +Animator.applyDefaults = function(defaults, prefs) { + prefs = prefs || {}; + var prop, result = {}; + for (prop in defaults) result[prop] = prefs[prop] !== undefined ? prefs[prop] : defaults[prop]; + return result; +} +// make an array from any object +Animator.makeArray = function(o) { + if (o == null) return []; + if (!o.length) return [o]; + var result = []; + for (var i=0; i<o.length; i++) result[i] = o[i]; + return result; +} +// convert a dash-delimited-property to a camelCaseProperty (c/o Prototype, thanks Sam!) +Animator.camelize = function(string) { + var oStringList = string.split('-'); + if (oStringList.length == 1) return oStringList[0]; + + var camelizedString = string.indexOf('-') == 0 + ? oStringList[0].charAt(0).toUpperCase() + oStringList[0].substring(1) + : oStringList[0]; + + for (var i = 1, len = oStringList.length; i < len; i++) { + var s = oStringList[i]; + camelizedString += s.charAt(0).toUpperCase() + s.substring(1); + } + return camelizedString; +} +// syntactic sugar for creating CSSStyleSubjects +Animator.apply = function(el, style, options) { + if (style instanceof Array) { + return new Animator(options).addSubject(new CSSStyleSubject(el, style[0], style[1])); + } + return new Animator(options).addSubject(new CSSStyleSubject(el, style)); +} +// make a transition function that gradually accelerates. pass a=1 for smooth +// gravitational acceleration, higher values for an exaggerated effect +Animator.makeEaseIn = function(a) { + return function(state) { + return Math.pow(state, a*2); + } +} +// as makeEaseIn but for deceleration +Animator.makeEaseOut = function(a) { + return function(state) { + return 1 - Math.pow(1 - state, a*2); + } +} +// make a transition function that, like an object with momentum being attracted to a point, +// goes past the target then returns +Animator.makeElastic = function(bounces) { + return function(state) { + state = Animator.tx.easeInOut(state); + return ((1-Math.cos(state * Math.PI * bounces)) * (1 - state)) + state; + } +} +// make an Attack Decay Sustain Release envelope that starts and finishes on the same level +// +Animator.makeADSR = function(attackEnd, decayEnd, sustainEnd, sustainLevel) { + if (sustainLevel == null) sustainLevel = 0.5; + return function(state) { + if (state < attackEnd) { + return state / attackEnd; + } + if (state < decayEnd) { + return 1 - ((state - attackEnd) / (decayEnd - attackEnd) * (1 - sustainLevel)); + } + if (state < sustainEnd) { + return sustainLevel; + } + return sustainLevel * (1 - ((state - sustainEnd) / (1 - sustainEnd))); + } +} +// make a transition function that, like a ball falling to floor, reaches the target and/ +// bounces back again +Animator.makeBounce = function(bounces) { + var fn = Animator.makeElastic(bounces); + return function(state) { + state = fn(state); + return state <= 1 ? state : 2-state; + } +} + +// pre-made transition functions to use with the 'transition' option +Animator.tx = { + easeInOut: function(pos){ + return ((-Math.cos(pos*Math.PI)/2) + 0.5); + }, + linear: function(x) { + return x; + }, + easeIn: Animator.makeEaseIn(1.5), + easeOut: Animator.makeEaseOut(1.5), + strongEaseIn: Animator.makeEaseIn(2.5), + strongEaseOut: Animator.makeEaseOut(2.5), + elastic: Animator.makeElastic(1), + veryElastic: Animator.makeElastic(3), + bouncy: Animator.makeBounce(1), + veryBouncy: Animator.makeBounce(3) +} + +// animates a pixel-based style property between two integer values +function NumericalStyleSubject(els, property, from, to, units) { + this.els = Animator.makeArray(els); + if (property == 'opacity' && window.ActiveXObject) { + this.property = 'filter'; + } else { + this.property = Animator.camelize(property); + } + this.from = parseFloat(from); + this.to = parseFloat(to); + this.units = units != null ? units : 'px'; +} +NumericalStyleSubject.prototype = { + setState: function(state) { + var style = this.getStyle(state); + var visibility = (this.property == 'opacity' && state == 0) ? 'hidden' : ''; + var j=0; + for (var i=0; i<this.els.length; i++) { + try { + this.els[i].style[this.property] = style; + } catch (e) { + // ignore fontWeight - intermediate numerical values cause exeptions in firefox + if (this.property != 'fontWeight') throw e; + } + if (j++ > 20) return; + } + }, + getStyle: function(state) { + state = this.from + ((this.to - this.from) * state); + if (this.property == 'filter') return "alpha(opacity=" + Math.round(state*100) + ")"; + if (this.property == 'opacity') return state; + return Math.round(state) + this.units; + }, + inspect: function() { + return "\t" + this.property + "(" + this.from + this.units + " to " + this.to + this.units + ")\n"; + } +} + +// animates a colour based style property between two hex values +function ColorStyleSubject(els, property, from, to) { + this.els = Animator.makeArray(els); + this.property = Animator.camelize(property); + this.to = this.expandColor(to); + this.from = this.expandColor(from); + this.origFrom = from; + this.origTo = to; +} + +ColorStyleSubject.prototype = { + // parse "#FFFF00" to [256, 256, 0] + expandColor: function(color) { + var hexColor, red, green, blue; + hexColor = ColorStyleSubject.parseColor(color); + if (hexColor) { + red = parseInt(hexColor.slice(1, 3), 16); + green = parseInt(hexColor.slice(3, 5), 16); + blue = parseInt(hexColor.slice(5, 7), 16); + return [red,green,blue] + } + if (window.DEBUG) { + alert("Invalid colour: '" + color + "'"); + } + }, + getValueForState: function(color, state) { + return Math.round(this.from[color] + ((this.to[color] - this.from[color]) * state)); + }, + setState: function(state) { + var color = '#' + + ColorStyleSubject.toColorPart(this.getValueForState(0, state)) + + ColorStyleSubject.toColorPart(this.getValueForState(1, state)) + + ColorStyleSubject.toColorPart(this.getValueForState(2, state)); + for (var i=0; i<this.els.length; i++) { + this.els[i].style[this.property] = color; + } + }, + inspect: function() { + return "\t" + this.property + "(" + this.origFrom + " to " + this.origTo + ")\n"; + } +} + +// return a properly formatted 6-digit hex colour spec, or false +ColorStyleSubject.parseColor = function(string) { + var color = '#', match; + if(match = ColorStyleSubject.parseColor.rgbRe.exec(string)) { + var part; + for (var i=1; i<=3; i++) { + part = Math.max(0, Math.min(255, parseInt(match[i]))); + color += ColorStyleSubject.toColorPart(part); + } + return color; + } + if (match = ColorStyleSubject.parseColor.hexRe.exec(string)) { + if(match[1].length == 3) { + for (var i=0; i<3; i++) { + color += match[1].charAt(i) + match[1].charAt(i); + } + return color; + } + return '#' + match[1]; + } + return false; +} +// convert a number to a 2 digit hex string +ColorStyleSubject.toColorPart = function(number) { + if (number > 255) number = 255; + var digits = number.toString(16); + if (number < 16) return '0' + digits; + return digits; +} +ColorStyleSubject.parseColor.rgbRe = /^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i; +ColorStyleSubject.parseColor.hexRe = /^\#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/; + +// Animates discrete styles, i.e. ones that do not scale but have discrete values +// that can't be interpolated +function DiscreteStyleSubject(els, property, from, to, threshold) { + this.els = Animator.makeArray(els); + this.property = Animator.camelize(property); + this.from = from; + this.to = to; + this.threshold = threshold || 0.5; +} + +DiscreteStyleSubject.prototype = { + setState: function(state) { + var j=0; + for (var i=0; i<this.els.length; i++) { + this.els[i].style[this.property] = state <= this.threshold ? this.from : this.to; + } + }, + inspect: function() { + return "\t" + this.property + "(" + this.from + " to " + this.to + " @ " + this.threshold + ")\n"; + } +} + +// animates between two styles defined using CSS. +// if style1 and style2 are present, animate between them, if only style1 +// is present, animate between the element's current style and style1 +function CSSStyleSubject(els, style1, style2) { + els = Animator.makeArray(els); + this.subjects = []; + if (els.length == 0) return; + var prop, toStyle, fromStyle; + if (style2) { + fromStyle = this.parseStyle(style1, els[0]); + toStyle = this.parseStyle(style2, els[0]); + } else { + toStyle = this.parseStyle(style1, els[0]); + fromStyle = {}; + for (prop in toStyle) { + fromStyle[prop] = CSSStyleSubject.getStyle(els[0], prop); + } + } + // remove unchanging properties + var prop; + for (prop in fromStyle) { + if (fromStyle[prop] == toStyle[prop]) { + delete fromStyle[prop]; + delete toStyle[prop]; + } + } + // discover the type (numerical or colour) of each style + var prop, units, match, type, from, to; + for (prop in fromStyle) { + var fromProp = String(fromStyle[prop]); + var toProp = String(toStyle[prop]); + if (toStyle[prop] == null) { + if (window.DEBUG) alert("No to style provided for '" + prop + '"'); + continue; + } + + if (from = ColorStyleSubject.parseColor(fromProp)) { + to = ColorStyleSubject.parseColor(toProp); + type = ColorStyleSubject; + } else if (fromProp.match(CSSStyleSubject.numericalRe) + && toProp.match(CSSStyleSubject.numericalRe)) { + from = parseFloat(fromProp); + to = parseFloat(toProp); + type = NumericalStyleSubject; + match = CSSStyleSubject.numericalRe.exec(fromProp); + var reResult = CSSStyleSubject.numericalRe.exec(toProp); + if (match[1] != null) { + units = match[1]; + } else if (reResult[1] != null) { + units = reResult[1]; + } else { + units = reResult; + } + } else if (fromProp.match(CSSStyleSubject.discreteRe) + && toProp.match(CSSStyleSubject.discreteRe)) { + from = fromProp; + to = toProp; + type = DiscreteStyleSubject; + units = 0; // hack - how to get an animator option down to here + } else { + if (window.DEBUG) { + alert("Unrecognised format for value of " + + prop + ": '" + fromStyle[prop] + "'"); + } + continue; + } + this.subjects[this.subjects.length] = new type(els, prop, from, to, units); + } +} + +CSSStyleSubject.prototype = { + // parses "width: 400px; color: #FFBB2E" to {width: "400px", color: "#FFBB2E"} + parseStyle: function(style, el) { + var rtn = {}; + // if style is a rule set + if (style.indexOf(":") != -1) { + var styles = style.split(";"); + for (var i=0; i<styles.length; i++) { + var parts = CSSStyleSubject.ruleRe.exec(styles[i]); + if (parts) { + rtn[parts[1]] = parts[2]; + } + } + } + // else assume style is a class name + else { + var prop, value, oldClass; + oldClass = el.className; + el.className = style; + for (var i=0; i<CSSStyleSubject.cssProperties.length; i++) { + prop = CSSStyleSubject.cssProperties[i]; + value = CSSStyleSubject.getStyle(el, prop); + if (value != null) { + rtn[prop] = value; + } + } + el.className = oldClass; + } + return rtn; + + }, + setState: function(state) { + for (var i=0; i<this.subjects.length; i++) { + this.subjects[i].setState(state); + } + }, + inspect: function() { + var str = ""; + for (var i=0; i<this.subjects.length; i++) { + str += this.subjects[i].inspect(); + } + return str; + } +} +// get the current value of a css property, +CSSStyleSubject.getStyle = function(el, property){ + var style; + if(document.defaultView && document.defaultView.getComputedStyle){ + style = document.defaultView.getComputedStyle(el, "").getPropertyValue(property); + if (style) { + return style; + } + } + property = Animator.camelize(property); + if(el.currentStyle){ + style = el.currentStyle[property]; + } + return style || el.style[property] +} + + +CSSStyleSubject.ruleRe = /^\s*([a-zA-Z\-]+)\s*:\s*(\S(.+\S)?)\s*$/; +CSSStyleSubject.numericalRe = /^-?\d+(?:\.\d+)?(%|[a-zA-Z]{2})?$/; +CSSStyleSubject.discreteRe = /^\w+$/; + +// required because the style object of elements isn't enumerable in Safari +/* +CSSStyleSubject.cssProperties = ['background-color','border','border-color','border-spacing', +'border-style','border-top','border-right','border-bottom','border-left','border-top-color', +'border-right-color','border-bottom-color','border-left-color','border-top-width','border-right-width', +'border-bottom-width','border-left-width','border-width','bottom','color','font-size','font-size-adjust', +'font-stretch','font-style','height','left','letter-spacing','line-height','margin','margin-top', +'margin-right','margin-bottom','margin-left','marker-offset','max-height','max-width','min-height', +'min-width','orphans','outline','outline-color','outline-style','outline-width','overflow','padding', +'padding-top','padding-right','padding-bottom','padding-left','quotes','right','size','text-indent', +'top','width','word-spacing','z-index','opacity','outline-offset'];*/ + + +CSSStyleSubject.cssProperties = ['azimuth','background','background-attachment','background-color','background-image','background-position','background-repeat','border-collapse','border-color','border-spacing','border-style','border-top','border-top-color','border-right-color','border-bottom-color','border-left-color','border-top-style','border-right-style','border-bottom-style','border-left-style','border-top-width','border-right-width','border-bottom-width','border-left-width','border-width','bottom','clear','clip','color','content','cursor','direction','display','elevation','empty-cells','css-float','font','font-family','font-size','font-size-adjust','font-stretch','font-style','font-variant','font-weight','height','left','letter-spacing','line-height','list-style','list-style-image','list-style-position','list-style-type','margin','margin-top','margin-right','margin-bottom','margin-left','max-height','max-width','min-height','min-width','orphans','outline','outline-color','outline-style','outline-width','overflow','padding','padding-top','padding-right','padding-bottom','padding-left','pause','position','right','size','table-layout','text-align','text-decoration','text-indent','text-shadow','text-transform','top','vertical-align','visibility','white-space','width','word-spacing','z-index','opacity','outline-offset','overflow-x','overflow-y']; + + +// chains several Animator objects together +function AnimatorChain(animators, options) { + this.animators = animators; + this.setOptions(options); + for (var i=0; i<this.animators.length; i++) { + this.listenTo(this.animators[i]); + } + this.forwards = false; + this.current = 0; +} + +AnimatorChain.prototype = { + // apply defaults + setOptions: function(options) { + this.options = Animator.applyDefaults({ + // by default, each call to AnimatorChain.play() calls jumpTo(0) of each animator + // before playing, which can cause flickering if you have multiple animators all + // targeting the same element. Set this to false to avoid this. + resetOnPlay: true + }, options); + }, + // play each animator in turn + play: function() { + this.forwards = true; + this.current = -1; + if (this.options.resetOnPlay) { + for (var i=0; i<this.animators.length; i++) { + this.animators[i].jumpTo(0); + } + } + this.advance(); + }, + // play all animators backwards + reverse: function() { + this.forwards = false; + this.current = this.animators.length; + if (this.options.resetOnPlay) { + for (var i=0; i<this.animators.length; i++) { + this.animators[i].jumpTo(1); + } + } + this.advance(); + }, + // if we have just play()'d, then call reverse(), and vice versa + toggle: function() { + if (this.forwards) { + this.seekTo(0); + } else { + this.seekTo(1); + } + }, + // internal: install an event listener on an animator's onComplete option + // to trigger the next animator + listenTo: function(animator) { + var oldOnComplete = animator.options.onComplete; + var _this = this; + animator.options.onComplete = function() { + if (oldOnComplete) oldOnComplete.call(animator); + _this.advance(); + } + }, + // play the next animator + advance: function() { + if (this.forwards) { + if (this.animators[this.current + 1] == null) return; + this.current++; + this.animators[this.current].play(); + } else { + if (this.animators[this.current - 1] == null) return; + this.current--; + this.animators[this.current].reverse(); + } + }, + // this function is provided for drop-in compatibility with Animator objects, + // but only accepts 0 and 1 as target values + seekTo: function(target) { + if (target <= 0) { + this.forwards = false; + this.animators[this.current].seekTo(0); + } else { + this.forwards = true; + this.animators[this.current].seekTo(1); + } + } +} + +// an Accordion is a class that creates and controls a number of Animators. An array of elements is passed in, +// and for each element an Animator and a activator button is created. When an Animator's activator button is +// clicked, the Animator and all before it seek to 0, and all Animators after it seek to 1. This can be used to +// create the classic Accordion effect, hence the name. +// see setOptions for arguments +function Accordion(options) { + this.setOptions(options); + var selected = this.options.initialSection, current; + if (this.options.rememberance) { + current = document.location.hash.substring(1); + } + this.rememberanceTexts = []; + this.ans = []; + var _this = this; + for (var i=0; i<this.options.sections.length; i++) { + var el = this.options.sections[i]; + var an = new Animator(this.options.animatorOptions); + var from = this.options.from + (this.options.shift * i); + var to = this.options.to + (this.options.shift * i); + an.addSubject(new NumericalStyleSubject(el, this.options.property, from, to, this.options.units)); + an.jumpTo(0); + var activator = this.options.getActivator(el); + activator.index = i; + activator.onclick = function(){_this.show(this.index)}; + this.ans[this.ans.length] = an; + this.rememberanceTexts[i] = activator.innerHTML.replace(/\s/g, ""); + if (this.rememberanceTexts[i] === current) { + selected = i; + } + } + this.show(selected); +} + +Accordion.prototype = { + // apply defaults + setOptions: function(options) { + this.options = Object.extend({ + // REQUIRED: an array of elements to use as the accordion sections + sections: null, + // a function that locates an activator button element given a section element. + // by default it takes a button id from the section's "activator" attibute + getActivator: function(el) {return document.getElementById(el.getAttribute("activator"))}, + // shifts each animator's range, for example with options {from:0,to:100,shift:20} + // the animators' ranges will be 0-100, 20-120, 40-140 etc. + shift: 0, + // the first page to show + initialSection: 0, + // if set to true, document.location.hash will be used to preserve the open section across page reloads + rememberance: true, + // constructor arguments to the Animator objects + animatorOptions: {} + }, options || {}); + }, + show: function(section) { + for (var i=0; i<this.ans.length; i++) { + this.ans[i].seekTo(i > section ? 1 : 0); + } + if (this.options.rememberance) { + document.location.hash = this.rememberanceTexts[section]; + } + } +} diff --git a/media/soundmanager/demo/360-player/script/excanvas.js b/media/soundmanager/demo/360-player/script/excanvas.js new file mode 100644 index 00000000..d7488739 --- /dev/null +++ b/media/soundmanager/demo/360-player/script/excanvas.js @@ -0,0 +1,17 @@ +// Excanvas (Explorer Canvas) R43 +// http://excanvas.sourceforge.net/ +// Copyright 2006 Google Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +if(!document.createElement("canvas").getContext){(function(){var u=Math;var v=u.round;var r=u.sin;var C=u.cos;var l=u.abs;var B=u.sqrt;var a=10;var n=a/2;function g(){return this.context_||(this.context_=new p(this))}var t=Array.prototype.slice;function D(j,m,E){var i=t.call(arguments,2);return function(){return j.apply(m,i.concat(t.call(arguments)))}}var h={init:function(i){if(/MSIE/.test(navigator.userAgent)&&!window.opera){var j=i||document;j.createElement("canvas");j.attachEvent("onreadystatechange",D(this.init_,this,j))}},init_:function(F){if(!F.namespaces.g_vml_){F.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML")}if(!F.namespaces.g_o_){F.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML")}if(!F.styleSheets.ex_canvas_){var E=F.createStyleSheet();E.owningElement.id="ex_canvas_";E.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}g_vml_\\:*{behavior:url(#default#VML)}g_o_\\:*{behavior:url(#default#VML)}"}var m=F.getElementsByTagName("canvas");for(var j=0;j<m.length;j++){this.initElement(m[j])}},initElement:function(j){if(!j.getContext){j.getContext=g;j.innerHTML="";j.attachEvent("onpropertychange",A);j.attachEvent("onresize",b);var i=j.attributes;if(i.width&&i.width.specified){j.style.width=i.width.nodeValue+"px"}else{j.width=j.clientWidth}if(i.height&&i.height.specified){j.style.height=i.height.nodeValue+"px"}else{j.height=j.clientHeight}}return j}};function A(j){var i=j.srcElement;switch(j.propertyName){case"width":i.style.width=i.attributes.width.nodeValue+"px";i.getContext().clearRect();break;case"height":i.style.height=i.attributes.height.nodeValue+"px";i.getContext().clearRect();break}}function b(j){var i=j.srcElement;if(i.firstChild){i.firstChild.style.width=i.clientWidth+"px";i.firstChild.style.height=i.clientHeight+"px"}}h.init();var e=[];for(var y=0;y<16;y++){for(var x=0;x<16;x++){e[y*16+x]=y.toString(16)+x.toString(16)}}function q(){return[[1,0,0],[0,1,0],[0,0,1]]}function d(E,m){var j=q();for(var i=0;i<3;i++){for(var H=0;H<3;H++){var F=0;for(var G=0;G<3;G++){F+=E[i][G]*m[G][H]}j[i][H]=F}}return j}function w(j,i){i.fillStyle=j.fillStyle;i.lineCap=j.lineCap;i.lineJoin=j.lineJoin;i.lineWidth=j.lineWidth;i.miterLimit=j.miterLimit;i.shadowBlur=j.shadowBlur;i.shadowColor=j.shadowColor;i.shadowOffsetX=j.shadowOffsetX;i.shadowOffsetY=j.shadowOffsetY;i.strokeStyle=j.strokeStyle;i.globalAlpha=j.globalAlpha;i.arcScaleX_=j.arcScaleX_;i.arcScaleY_=j.arcScaleY_;i.lineScale_=j.lineScale_}function c(m){var G,F=1;m=String(m);if(m.substring(0,3)=="rgb"){var I=m.indexOf("(",3);var j=m.indexOf(")",I+1);var H=m.substring(I+1,j).split(",");G="#";for(var E=0;E<3;E++){G+=e[Number(H[E])]}if(H.length==4&&m.substr(3,1)=="a"){F=H[3]}}else{G=m}return{color:G,alpha:F}}function s(i){switch(i){case"butt":return"flat";case"round":return"round";case"square":default:return"square"}}function p(j){this.m_=q();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.strokeStyle="#000";this.fillStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=a*1;this.globalAlpha=1;this.canvas=j;var i=j.ownerDocument.createElement("div");i.style.width=j.clientWidth+"px";i.style.height=j.clientHeight+"px";i.style.overflow="hidden";i.style.position="absolute";j.appendChild(i);this.element_=i;this.arcScaleX_=1;this.arcScaleY_=1;this.lineScale_=1}var k=p.prototype;k.clearRect=function(){this.element_.innerHTML=""};k.beginPath=function(){this.currentPath_=[]};k.moveTo=function(j,i){var m=this.getCoords_(j,i);this.currentPath_.push({type:"moveTo",x:m.x,y:m.y});this.currentX_=m.x;this.currentY_=m.y};k.lineTo=function(j,i){var m=this.getCoords_(j,i);this.currentPath_.push({type:"lineTo",x:m.x,y:m.y});this.currentX_=m.x;this.currentY_=m.y};k.bezierCurveTo=function(m,j,J,I,H,F){var i=this.getCoords_(H,F);var G=this.getCoords_(m,j);var E=this.getCoords_(J,I);o(this,G,E,i)};function o(i,E,m,j){i.currentPath_.push({type:"bezierCurveTo",cp1x:E.x,cp1y:E.y,cp2x:m.x,cp2y:m.y,x:j.x,y:j.y});i.currentX_=j.x;i.currentY_=j.y}k.quadraticCurveTo=function(H,m,j,i){var G=this.getCoords_(H,m);var F=this.getCoords_(j,i);var I={x:this.currentX_+2/3*(G.x-this.currentX_),y:this.currentY_+2/3*(G.y-this.currentY_)};var E={x:I.x+(F.x-this.currentX_)/3,y:I.y+(F.y-this.currentY_)/3};o(this,I,E,F)};k.arc=function(K,I,J,F,j,m){J*=a;var O=m?"at":"wa";var L=K+C(F)*J-n;var N=I+r(F)*J-n;var i=K+C(j)*J-n;var M=I+r(j)*J-n;if(L==i&&!m){L+=0.125}var E=this.getCoords_(K,I);var H=this.getCoords_(L,N);var G=this.getCoords_(i,M);this.currentPath_.push({type:O,x:E.x,y:E.y,radius:J,xStart:H.x,yStart:H.y,xEnd:G.x,yEnd:G.y})};k.rect=function(m,j,i,E){this.moveTo(m,j);this.lineTo(m+i,j);this.lineTo(m+i,j+E);this.lineTo(m,j+E);this.closePath()};k.strokeRect=function(m,j,i,E){var F=this.currentPath_;this.beginPath();this.moveTo(m,j);this.lineTo(m+i,j);this.lineTo(m+i,j+E);this.lineTo(m,j+E);this.closePath();this.stroke();this.currentPath_=F};k.fillRect=function(m,j,i,E){var F=this.currentPath_;this.beginPath();this.moveTo(m,j);this.lineTo(m+i,j);this.lineTo(m+i,j+E);this.lineTo(m,j+E);this.closePath();this.fill();this.currentPath_=F};k.createLinearGradient=function(j,E,i,m){var F=new z("gradient");F.x0_=j;F.y0_=E;F.x1_=i;F.y1_=m;return F};k.createRadialGradient=function(E,G,m,j,F,i){var H=new z("gradientradial");H.x0_=E;H.y0_=G;H.r0_=m;H.x1_=j;H.y1_=F;H.r1_=i;return H};k.drawImage=function(R,m){var K,I,M,Z,P,N,T,ab;var L=R.runtimeStyle.width;var Q=R.runtimeStyle.height;R.runtimeStyle.width="auto";R.runtimeStyle.height="auto";var J=R.width;var X=R.height;R.runtimeStyle.width=L;R.runtimeStyle.height=Q;if(arguments.length==3){K=arguments[1];I=arguments[2];P=N=0;T=M=J;ab=Z=X}else{if(arguments.length==5){K=arguments[1];I=arguments[2];M=arguments[3];Z=arguments[4];P=N=0;T=J;ab=X}else{if(arguments.length==9){P=arguments[1];N=arguments[2];T=arguments[3];ab=arguments[4];K=arguments[5];I=arguments[6];M=arguments[7];Z=arguments[8]}else{throw Error("Invalid number of arguments")}}}var aa=this.getCoords_(K,I);var E=T/2;var j=ab/2;var Y=[];var i=10;var G=10;Y.push(" <g_vml_:group",' coordsize="',a*i,",",a*G,'"',' coordorigin="0,0"',' style="width:',i,"px;height:",G,"px;position:absolute;");if(this.m_[0][0]!=1||this.m_[0][1]){var F=[];F.push("M11=",this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",v(aa.x/a),",","Dy=",v(aa.y/a),"");var V=aa;var U=this.getCoords_(K+M,I);var S=this.getCoords_(K,I+Z);var O=this.getCoords_(K+M,I+Z);V.x=u.max(V.x,U.x,S.x,O.x);V.y=u.max(V.y,U.y,S.y,O.y);Y.push("padding:0 ",v(V.x/a),"px ",v(V.y/a),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",F.join(""),", sizingmethod='clip');")}else{Y.push("top:",v(aa.y/a),"px;left:",v(aa.x/a),"px;")}Y.push(' ">','<g_vml_:image src="',R.src,'"',' style="width:',a*M,"px;"," height:",a*Z,'px;"',' cropleft="',P/J,'"',' croptop="',N/X,'"',' cropright="',(J-P-T)/J,'"',' cropbottom="',(X-N-ab)/X,'"'," />","</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",Y.join(""))};k.stroke=function(ae){var J=[];var K=false;var ap=c(ae?this.fillStyle:this.strokeStyle);var aa=ap.color;var ak=ap.alpha*this.globalAlpha;var F=10;var M=10;J.push("<g_vml_:shape",' filled="',!!ae,'"',' style="position:absolute;width:',F,"px;height:",M,'px;"',' coordorigin="0 0" coordsize="',a*F," ",a*M,'"',' stroked="',!ae,'"',' path="');var L=false;var ao={x:null,y:null};var V={x:null,y:null};for(var aj=0;aj<this.currentPath_.length;aj++){var ai=this.currentPath_[aj];var an;switch(ai.type){case"moveTo":an=ai;J.push(" m ",v(ai.x),",",v(ai.y));break;case"lineTo":J.push(" l ",v(ai.x),",",v(ai.y));break;case"close":J.push(" x ");ai=null;break;case"bezierCurveTo":J.push(" c ",v(ai.cp1x),",",v(ai.cp1y),",",v(ai.cp2x),",",v(ai.cp2y),",",v(ai.x),",",v(ai.y));break;case"at":case"wa":J.push(" ",ai.type," ",v(ai.x-this.arcScaleX_*ai.radius),",",v(ai.y-this.arcScaleY_*ai.radius)," ",v(ai.x+this.arcScaleX_*ai.radius),",",v(ai.y+this.arcScaleY_*ai.radius)," ",v(ai.xStart),",",v(ai.yStart)," ",v(ai.xEnd),",",v(ai.yEnd));break}if(ai){if(ao.x==null||ai.x<ao.x){ao.x=ai.x}if(V.x==null||ai.x>V.x){V.x=ai.x}if(ao.y==null||ai.y<ao.y){ao.y=ai.y}if(V.y==null||ai.y>V.y){V.y=ai.y}}}J.push(' ">');if(!ae){var U=this.lineScale_*this.lineWidth;if(U<1){ak*=U}J.push("<g_vml_:stroke",' opacity="',ak,'"',' joinstyle="',this.lineJoin,'"',' miterlimit="',this.miterLimit,'"',' endcap="',s(this.lineCap),'"',' weight="',U,'px"',' color="',aa,'" />')}else{if(typeof this.fillStyle=="object"){var N=this.fillStyle;var S=0;var ah={x:0,y:0};var ab=0;var Q=1;if(N.type_=="gradient"){var P=N.x0_/this.arcScaleX_;var m=N.y0_/this.arcScaleY_;var O=N.x1_/this.arcScaleX_;var aq=N.y1_/this.arcScaleY_;var am=this.getCoords_(P,m);var al=this.getCoords_(O,aq);var I=al.x-am.x;var G=al.y-am.y;S=Math.atan2(I,G)*180/Math.PI;if(S<0){S+=360}if(S<0.000001){S=0}}else{var am=this.getCoords_(N.x0_,N.y0_);var j=V.x-ao.x;var E=V.y-ao.y;ah={x:(am.x-ao.x)/j,y:(am.y-ao.y)/E};j/=this.arcScaleX_*a;E/=this.arcScaleY_*a;var ag=u.max(j,E);ab=2*N.r0_/ag;Q=2*N.r1_/ag-ab}var Z=N.colors_;Z.sort(function(H,i){return H.offset-i.offset});var T=Z.length;var Y=Z[0].color;var X=Z[T-1].color;var ad=Z[0].alpha*this.globalAlpha;var ac=Z[T-1].alpha*this.globalAlpha;var af=[];for(var aj=0;aj<T;aj++){var R=Z[aj];af.push(R.offset*Q+ab+" "+R.color)}J.push('<g_vml_:fill type="',N.type_,'"',' method="none" focus="100%"',' color="',Y,'"',' color2="',X,'"',' colors="',af.join(","),'"',' opacity="',ac,'"',' g_o_:opacity2="',ad,'"',' angle="',S,'"',' focusposition="',ah.x,",",ah.y,'" />')}else{J.push('<g_vml_:fill color="',aa,'" opacity="',ak,'" />')}}J.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",J.join(""))};k.fill=function(){this.stroke(true)};k.closePath=function(){this.currentPath_.push({type:"close"})};k.getCoords_=function(E,j){var i=this.m_;return{x:a*(E*i[0][0]+j*i[1][0]+i[2][0])-n,y:a*(E*i[0][1]+j*i[1][1]+i[2][1])-n}};k.save=function(){var i={};w(this,i);this.aStack_.push(i);this.mStack_.push(this.m_);this.m_=d(q(),this.m_)};k.restore=function(){w(this.aStack_.pop(),this);this.m_=this.mStack_.pop()};k.translate=function(m,j){var i=[[1,0,0],[0,1,0],[m,j,1]];this.m_=d(i,this.m_)};k.rotate=function(j){var E=C(j);var m=r(j);var i=[[E,m,0],[-m,E,0],[0,0,1]];this.m_=d(i,this.m_)};k.scale=function(G,F){this.arcScaleX_*=G;this.arcScaleY_*=F;var j=[[G,0,0],[0,F,0],[0,0,1]];var i=this.m_=d(j,this.m_);var E=i[0][0]*i[1][1]-i[0][1]*i[1][0];this.lineScale_=B(l(E))};k.clip=function(){};k.arcTo=function(){};k.createPattern=function(){return new f};function z(i){this.type_=i;this.x0_=0;this.y0_=0;this.r0_=0;this.x1_=0;this.y1_=0;this.r1_=0;this.colors_=[]}z.prototype.addColorStop=function(j,i){i=c(i);this.colors_.push({offset:j,color:i.color,alpha:i.alpha})};function f(){}G_vmlCanvasManager=h;CanvasRenderingContext2D=p;CanvasGradient=z;CanvasPattern=f})()}; \ No newline at end of file diff --git a/media/soundmanager/demo/index.html b/media/soundmanager/demo/index.html new file mode 100644 index 00000000..31133af0 --- /dev/null +++ b/media/soundmanager/demo/index.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> +<head> +<title>MP3 player demo</title> +<meta name="robots" content="noindex" /> +<meta name="author" content="Scott Schiller" /> +<meta name="language" content="en-us" /> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<meta name="keywords" content="javascript sound library api" /> +<meta name="description" content="Demo page for soundmanager mp3 player" /> +<script type="text/javascript" src="../script/soundmanager2.js"></script> +<script type="text/javascript" src="script/default.js"></script> +</head> + +<body> + +<div> + + <h1>SoundManager 2 Demos</h1> + + <p> + <a href="http://www.schillmania.com/projects/soundmanager2/">SoundManager 2 project page</a> + </p> + +</div> + +</body> diff --git a/media/soundmanager/index.html b/media/soundmanager/index.html new file mode 100644 index 00000000..c84bfff5 --- /dev/null +++ b/media/soundmanager/index.html @@ -0,0 +1,1046 @@ +<!doctype html> +<html lang="en"> +<head> +<title>SoundManager 2: JavaScript Sound For The Web</title> +<meta name="robots" content="noindex" /> +<meta name="description" content="Play sound from JavaScript including MP3, MPEG-4 and HTML5-supported audio formats with SoundManager 2, a cross-browser/platform sound API. BSD licensed."/> +<meta name="keywords" content="javascript sound, html5 audio, html5 sound, javascript audio, javascript play mp3, javascript sound control, mp3, mp4, mpeg4, aac, Scott Schiller, Schill, Schillmania"/> +<meta name="author" content="Scott Schiller"/> +<meta name="dcterms.rights" content="Copyright (C) 1997 onwards Scott Schiller"/> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + +<!-- inline demo CSS (combined + minified for performance; see comments for raw source URLs) --> +<link rel="stylesheet" type="text/css" href="demo/index-rollup.css"/> + +<!-- the SoundManager 2 API --> +<script type="text/javascript" src="script/soundmanager2.js"></script> + +<!-- 360 UI demo, canvas magic for IE --> +<!--[if lt IE 9]><script type="text/javascript" src="demo/360-player/script/excanvas.js"></script><![endif]--> + +<!-- SM2 demo/homepage-specific stuff --> +<script type="text/javascript">var is_home = true;</script> + +<!-- inline demo JS (combined + minified; see comments for raw source URLs) --> +<script type="text/javascript" src="demo/index-rollup.js"></script> + +<!-- testing 2 --> +<script src="demo/bar-ui/script/bar-ui.js"></script> + +<!-- IE CSS font hax --> +<!--[if lte IE 8]> +<style> + #turntable-demo { + /* nope. */ + display: none; + } + #tidal-link { display: none; /* this uses SVG, so, meh. */ } + h2.special { + /* IE 6-8 font reset, doesn't like sort-of-defined @font-family */ + font-family:"helvetica neue",helvetica,arial,verdana,tahoma,"sans serif"; + } + body.home #about-header { + padding-left: 0px; + } +.sm2-speaker, + #inline-video { + display: none; + } +</style> +<![endif]--> +</head> + +<body class="home"> + +<div id="content"> + + <div id="lights"></div> + + <div id="top"> + + <h1>A JavaScript Sound API supporting MP3, MPEG4 and HTML5 Audio.</h1> + + <div id="nav"> + <div id="version" title="Version of SM2 loaded on this page"></div> + <ul> + <li> + <strong><a href="#home">Home</a></strong> + </li> + <li> + <a href="#">Demos</a> + <ul> + <li><a href="demo/template/">Basic Template</a></li> + <li><a href="demo/api/">API Examples</a></li> + <li><a href="demo/bar-ui/">Bar UI</a></li> + <li><a href="demo/play-mp3-links/">Playable MP3 links</a></li> + <li><a href="demo/mp3-player-button/" class="exclude">Basic MP3 Play Button</a></li> + <li><a href="demo/page-player/">Muxtape-style UI</a></li> + <li><a href="demo/360-player/">360&deg; Player UI</a></li> + <li><a href="demo/mpc/">Drum Machine (MPC)</a></li> + <li><a href="demo/animation/">DOM/Animation Demos</a></li> + <li><a href="demo/flashblock/">FlashBlock Handling</a></li> + </ul> + </li> + <li> + <a href="doc/getstarted/">Getting Started</a> + <ul> + <li><a href="doc/getstarted/#how-sm2-works">How SoundManager 2 works</a></li> + <li><a href="doc/getstarted/#basic-inclusion">Including SM2 on your site</a></li> + <li><a href="doc/getstarted/#troubleshooting">Troubleshooting</a></li> + </ul> + </li> + <li> + <a href="doc/">Documentation</a> + <ul> + <li><a href="doc/#sm-config">SoundManager Properties</a></li> + <li><a href="doc/#sound-object-properties">Sound Object Properties</a></li> + <li><a href="doc/#smdefaults">Global Sound Defaults</a></li> + <li><a href="doc/#api">SoundManager Core API</a></li> + <li><a href="doc/#smsoundmethods">Sound Object (SMSound) API</a></li> + <li><a href="doc/generated/soundmanager2.html">Generated Documentation</a></li> + </ul> + </li> + <li> + <a href="doc/download/">Download</a> + <ul> + <li><a href="doc/download/#latest">Get SoundManager 2</a></li> + <li><a href="doc/download/#revision-history">Revision History</a></li> + </ul> + </li> + <li> + <a href="doc/technotes/">Technical Notes</a> + <ul> + <li><a href="doc/technotes/#requirements">System Requirements</a></li> + <li><a href="doc/technotes/#serving-audio">Serving To HTML5 + Flash Clients</a></li> + <li><a href="doc/technotes/#client-requests">How Clients Download Audio</a></li> + <li><a href="doc/technotes/#mobile-device-limitations">Mobile Device Limitations</a></li> + <li><a href="doc/technotes/#debug-output">Debug + Console Output</a></li> + </ul> + </li> + <li> + <a href="doc/resources/">Resources</a> + <ul> + <li><a href="doc/resources/#licensing">Licensing</a></li> + <li><a href="doc/resources/#related">Related Projects</a></li> + <li><a href="http://getsatisfaction.com/schillmania/products/schillmania_soundmanager_2/">SM2 support / discussion</a></li> + <li><a href="http://www.schillmania.com/content/react/contact/">Contact Info @ Schillmania.com</a></li> + </ul> + </li> + </ul> + <div class="clear"></div> + </div> + </div> + +<div id="main-wrapper"> + + <div id="main" class="triple"> + + <div id="col3" class="c3"> + + <div id="support-wrapper"> + <div id="get-satisfaction" class="box"> + <div id="gsfn_list_widget"> + <h2><a href="http://getsatisfaction.com/schillmania/products/schillmania_soundmanager_2/" title="User discussion, FAQs and support for SoundManager 2" rel="nofollow">Discussion / Support</a><span class="l"></span><span class="r"></span></h2> + <div id="gsfn_content"> + </div> + <div class="powered_by"> + <a href="http://getsatisfaction.com/" rel="nofollow">Get Satisfaction support network</a> + </div> + </div> + <!-- /.box --> + </div> + + <div id="sm2-options"> + <p> + SM2 options:&nbsp; <span id="with-html5"><a href="?sm2-usehtml5audio=1" title="View this page with HTML5 audio support enabled">+html5</a></span> + <span id="options-divider-with-html5" class="options-divider">&nbsp;|&nbsp;</span> + <span id="without-html5"><a href="?sm2-usehtml5audio=0" title="View this page with HTML5 audio support disabled">-html5</a></span> + <span id="options-divider-without-html5" class="options-divider">&nbsp;|&nbsp;</span> + <span id="with-debug"><a href="#debug=1" title="View this page with debug output mode enabled (console.log() or HTML-based)" onclick="document.location.href=this.href;document.location.reload()">+debug</a></span> + </p> + </div> + + </div> + + <!-- /main --> + </div> + + <div id="live-demos" class="columnar"> + + <div id="about-sm2"> + + <div id="sm2-support-warning"> + <!-- as needed, warning is displayed here --> + </div> + + <div id="about-header"> + + <div class="sm2-speaker"></div> + + <h2 class="special">SoundManager 2 makes it easier to play audio using JavaScript.</h2> + + <p> + <a href="doc/download/" title="Download SoundManager 2" class="feature" style="float:right;font-family:helvetica;font-weight:500;margin:0px;white-space:nowrap">Get SoundManager 2</a> + <span style="line-height:1.75em;font-size:110%">SoundManager 2 provides simple, reliable cross-platform audio under a single JavaScript API.&nbsp;</span> + </p> + + </div> + + <div id="inline-video"> + + <video id="turntable-video" loop autoplay onclick="if (!this.paused) { this.pause(); } else { this.play(); }"> + <source src="demo/_image/turntable-loop-1920x500-bw.webm" type="video/webm"> + <source src="demo/_image/turntable-loop-1920x500-h264-512kbps-h264.mp4"> + <source src="demo/_image/turntable-loop-1920x500-h264-512kbps-bw.mov" type="video/mp4"> + <img id="turntable-static-video" src="demo/_image/turntable-loop-poster.jpg" alt="" style="width:100%;max-width:1920px" /> + </video> + + <script> + + (function() { + + /** + * iPhone doesn't play inline video, nor does iOS < 7 on iPad (IIRC.) + * This is a dirty hack to not show video in the general mobile / tablet / "you're not a desktop (and not Windows XP)" case. + * GIF made using the following... + * gifsicle source.gif --colors 32 --optimize --dither=o3 > output.gif + * from source GIF: + * gifsicle turntable-loop-original.gif --delay 8 --colors 32 --dither=o3 `seq -f "#%g" 0 2 43` -O2 --gamma=3 -o turntable-loop-960-22f-32c-03.gif + * APNG made with APNG Anime Maker (Windows.) + */ + + var i, doesAPNG, replacements, ua, url, video; + + replacements = { + 'gif': 'demo/_image/turntable-loop-960-22f-32c-03.gif', // framerate / quality / file size trade-off + 'apng': 'demo/_image/turntable-loop-960-27f.apng' // pretty good all-around + } + + ua = navigator.userAgent; + + // that oughta get enough of you guys. YOU get a .GIF, and *YOU* get a .GIF! + if (ua.match(/iphone|ipad|ios|mobile|windows phone|tablet/i) || navigator.userAgent.match(/windows nt 5\.1/i) || window.location.href.match(/img/i)) { + // if your device lies about its capabilities, you will probably now pay the price for this naive detection. + video = document.getElementById('inline-video'); + if (video) { + // dirty, evil tricks. + doesAPNG = (ua.match(/os (8|9|10)\s/i) || window.location.href.match(/apng/i)); // iOS 8+ is presumed as "OS 8|9|10" or whatever's eventually released. + url = replacements[(doesAPNG ? 'apng' : 'gif')]; + video.innerHTML = '<img src="demo/_image/turntable-loop-poster.jpg" alt="" style="width:100%;max-width:1920px" /><div style="position:absolute;left:0px;top:0px;width:100%;height:100%;background: transparent url(' + url + ');background-size:100% auto;background-repeat:no-repeat' + (!doesAPNG ? ';opacity:0.8' : '') + '" onclick="this.style.display=\'none\'"></div>'; + } + } + + }()); + + </script> + + <div id="bar-ui-1" class="sm2-bar-ui full-width bottom"> + + <div class="bd sm2-main-controls"> + + <div class="sm2-inline-texture"></div> + <div class="sm2-inline-gradient"></div> + + <div class="sm2-inline-element sm2-button-element"> + <div class="sm2-button-bd"> + <a href="#play" class="sm2-inline-button play-pause">Play / pause</a> + </div> + </div> + + <div class="sm2-inline-element sm2-inline-status"> + + <div class="sm2-playlist"> + <div class="sm2-playlist-target"> + <!-- playlist <ul> + <li> markup will be injected here --> + <!-- if you want default / non-JS content, you can put that here. --> + <noscript><p>JavaScript is required.</p></noscript> + </div> + </div> + + <div class="sm2-progress"> + <div class="sm2-row"> + <div class="sm2-inline-time">0:00</div> + <div class="sm2-progress-bd"> + <div class="sm2-progress-track"> + <div class="sm2-progress-bar"></div> + <div class="sm2-progress-ball"><div class="icon-overlay"></div></div> + </div> + </div> + <div class="sm2-inline-duration">0:00</div> + </div> + </div> + + </div> + + <div class="sm2-inline-element sm2-button-element sm2-volume"> + <div class="sm2-button-bd"> + <span class="sm2-inline-button sm2-volume-control volume-shade"></span> + <a href="#volume" class="sm2-inline-button sm2-volume-control">volume</a> + </div> + </div> + + <div class="sm2-inline-element sm2-button-element"> + <div class="sm2-button-bd"> + <a href="#prev" title="Previous" class="sm2-inline-button previous">&lt; previous</a> + </div> + </div> + + <div class="sm2-inline-element sm2-button-element"> + <div class="sm2-button-bd"> + <a href="#next" title="Next" class="sm2-inline-button next">&gt; next</a> + </div> + </div> + + <div class="sm2-inline-element sm2-button-element sm2-menu"> + <div class="sm2-button-bd"> + <a href="#menu" class="sm2-inline-button menu">menu</a> + </div> + </div> + + </div> + + <div class="bd sm2-playlist-drawer sm2-element"> + + <!-- playlist content is mirrored here --> + + <div class="sm2-playlist-wrapper"> + <ul class="sm2-playlist-bd"> + <!-- example: playable link, "buy" link, "download" link --> + <li> + <div class="sm2-row"> + <div class="sm2-col sm2-wide"> + <a href="http://freshly-ground.com/data/audio/sm2/Figub%20Brazlevi%C4%8D%20-%20Bosnian%20Syndicate.mp3" class="exclude button-exclude inline-exclude"><b>Figub Brazlevič</b> - Bosnian Syndicate <span title="Published under a Creative Commons BY-NC-ND license" class="label">(BY-CC-ND license)</span></a> + </div> + <div class="sm2-col"> + <a href="http://figubbrazlevic.bandcamp.com/track/bosnian-syndicate" target="_blank" title="Buy &quot;Bosnian Syndicate&quot;" class="sm2-icon sm2-cart">Buy this track</a> + </div> + </div> + </li> + <li><a href="http://freshly-ground.com/data/audio/sm2/SonReal%20-%20Let%20Me%20%28Prod%202oolman%29.mp3" class="exclude button-exclude inline-exclude"><b>SonReal</b> - Let Me <span class="label">Explicit</span></a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/SonReal%20-%20LA%20%28Prod%20Chin%20Injetti%29.mp3" class="exclude button-exclude inline-exclude"><b>SonReal</b> - LA (Prod. Chin Injetti)<span class="label">Explicit</span></a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/SonReal%20-%20People%20Asking.mp3" class="exclude button-exclude inline-exclude"><b>SonReal</b> - People Asking <span class="label">Explicit</span></a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/SonReal%20-%20Already%20There%20Remix%20ft.%20Rich%20Kidd%2C%20Saukrates.mp3" class="exclude button-exclude inline-exclude"><b>SonReal</b> - Already There Remix ft. Rich Kidd, Saukrates <span class="label">Explicit</span></a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/The%20Fugitives%20-%20Graffiti%20Sex.mp3" class="exclude button-exclude inline-exclude"><b>The Fugitives</b> - Graffiti Sex</a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/Adrian%20Glynn%20-%20Seven%20Or%20Eight%20Days.mp3" class="exclude button-exclude inline-exclude"><b>Adrian Glynn</b> - Seven Or Eight Days</a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/SonReal%20-%20I%20Tried.mp3" class="exclude button-exclude inline-exclude"><b>SonReal</b> - I Tried</a></li> + <li><a href="http://freshly-ground.com/data/audio/mpc/20060826%20-%20Armstrong.mp3" class="exclude button-exclude inline-exclude">Armstrong Beat</a></li> + <li><a href="http://freshly-ground.com/data/audio/mpc/20090119%20-%20Untitled%20Groove.mp3" class="exclude button-exclude inline-exclude">Untitled Groove</a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/birds-in-kauai-128kbps-aac-lc.mp4" class="exclude button-exclude inline-exclude">Birds In Kaua'i (AAC)</a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/20130320%20-%20Po%27ipu%20Beach%20Waves.ogg" class="exclude button-exclude inline-exclude">Po'ipu Beach Waves (OGG)</a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/bottle-pop.wav" class="exclude button-exclude inline-exclude">A corked beer bottle (WAV)</a></li> + <li><a href="demo/_mp3/rain.mp3" class="norewrite exclude button-exclude inline-exclude">Rain</a></li> + </ul> + </div> + + </div> + + </div> + + <div class="demo-more" style="margin-top:-45px"> + Featured demo: <a href="demo/bar-ui/" title="Bar UI: Demo" class="cta dark-cta">Bar UI <span>&raquo;</span></a> + </div> + + </div> + + <hr /> + + <div class="threeup first"> + + <div class="column"> + + <div class="column-wrapper"> + + <h3>Speak and <b style="white-space:nowrap">be heard<span class="music-note icon"></span></b></h3> + <h4>More sound, <b>in more places</b></h4> + + <p>Despite being one of the senses, sound has largely been missing from the web due to inconsistent technology support. SoundManager 2 bridges this gap, making it easier to use audio across a growing variety of devices and platforms, both desktop and mobile.</p> + + <p><a href="#getting-started" class="cta">Getting started</a> is pretty easy, too.</p> + + <p>A few live examples:</p> + + <div id="sm2-support" class="demo-block"> + <!-- "oh snap", SM2 didn't load etc. messaging --> + </div> + + <div style="position:relative;*zoom:1;min-width:275px"> + + <div id="special-demo-left" class="sm2-inline-list"> + + <div class="ui360"> + <a href="demo/_mp3/office_lobby.mp3" class="norewrite exclude button-exclude inline-exclude">Office lobby sound</a> + </div> + + <div class="ui360" style="float:left;display:inline"> + <a href="demo/_mp3/mak.mp3" title="360 demo: Angry Cow Sound" class="norewrite exclude button-exclude inline-exclude">Random</a> + </div> + + <div class="ui360" style="float:left;display:inline"> + <a href="http://freshly-ground.com/data/audio/sm2/water-drop.mp3" title="360 Demo: Water Drop" class="exclude button-exclude inline-exclude">Water Drop</a> + </div> + + <div class="demo-more-abs" style="margin-right:1.5em"> + <a href="demo/360-player/" title="360&deg; UI player demo" class="cta">360&deg; UI <span>&raquo;</span></a> + </div> + + </div> + + <div id="special-demo-right"> + <a href="demo/_mp3/coins.mp3" title="Play &quot;Change&quot;" class="sm2_button exclude inline-exclude norewrite">coins.mp3</a> + &nbsp;&nbsp; <a href="demo/christmas-lights/sound/glass0.mp3" class="sm2_button exclude inline-exclude norewrite" title="Play &quot;Glass break 1&quot;">glass0.mp3</a> + &nbsp;&nbsp; <a href="demo/christmas-lights/sound/glass1.mp3" class="sm2_button exclude inline-exclude threesixty-exclude norewrite" title="Play &quot;Glass break 2&quot;">glass1.mp3</a> + + <div class="demo-more-abs"> + <a href="demo/mp3-player-button/" title="MP3 buttons demo" class="cta">mp3 buttons <span>&raquo;</span></a> + </div> + + </div> + + </div> + + <div id="html5-audio-notes"> + </div> + + </div> + + </div> + + + <div class="column"> + <div class="column-wrapper"> + + <h3>HTML5 + flash <b style="white-space:nowrap">hybrid<span class="package icon"></span></b></h3> + <h4>Complexity, <b>reduced</b></h4> + + <p>Supporting HTML5 audio can be tedious in modern browsers, let alone legacy ones. With real-world visitors using browsers ranging from mobile Safari to IE 6 across a wide range of devices, there can be many support cases to consider.</p> + + <p>SoundManager 2 gives you a single, powerful API that supports both new and old, using HTML5 audio where supported and optional Flash-based fallback where needed. Ideally when using SoundManager 2, audio "just works."</p> + + <div class="icons"> + <ul> + <li class="desktop" title="Desktop support: Windows, Mac OS, Linux">Desktop support: Windows, Mac OS, Linux</li> + <li class="laptop" title="Laptop/tablet support: Windows, Mac OS, Linux / Blackberry Playbook, Kindle Fire + other HTML5/Flash devices">Laptop/tablet support: Windows, Mac OS, Linux / Blackberry Playbook, Kindle Fire + other HTML5/Flash devices</li> + <li class="iphone" title="iPhone support: iPhone with iOS 4.0 and newer">iPhone support: iOS 4.0 and newer</li> + <li class="ipad" title="iPad support: Version 1.0 (iOS 3.2) and newer">iPad support: Version 1.0 (iOS 3.2) and newer</li> + <li class="android" title="Android OS supporting HTML5 and/or Flash (Version 2.3 or newer)">Android OS supporting HTML5 and/or Flash (Version 2.3 or newer)</li> + </ul> + The details: <a href="doc/getstarted/#intro" class="cta" style="text-align:right">how it works <span>&raquo;</span></a> + </div> + + </div> + </div> + + <div class="column"> + <div class="column-wrapper"> + <h3 style="cursor:help" title="Gzip-compressed file size on a typical set-up is 12 KB. And was it supposed to be the &quot;Swiss Army&quot; kind? I forget.">The ginsu knife: <b style="white-space:nowrap">12 KB<span class="performance icon"></span></b></h3> + <h4>Big&nbsp;features, <b>small footprint</b></h4> + <p><em>But wait, there's more!</em></p> + <p>Performance is an important metric, too. SoundManager 2 packs a comprehensive, feature-rich API into as little as <a href="doc/getstarted/#basic-inclusion" title="SoundManager 2: Build options (down to ~12 KB in size)" style="white-space:nowrap" class="cta">12 KB</a> over the wire when optimized; that's less than 8% of the original, uncompressed file size.</p> + <p>SM2 is self-contained, having no external dependencies, and is compatible with popular JavaScript frameworks.</p> + <p>The source code is BSD-licensed and is provided in fully-commented, non-debug and compiler-optimized "minified" versions appropriate for development and production use.</p> + </div> + </div> + + </div> + + + <div class="threeup"> + + <div class="column"> + <div class="column-wrapper"> + + <h3>Basic</h3> + <h4>Playable <b>links and playlists</b></h4> + + <p>These demos use unordered lists with MP3 links that play in-place; the UI is easily customized via CSS.</p> + + <ul id="graphic-playlist" class="graphic"> + <li><a href="demo/_mp3/rain.mp3" class="exclude">Rain</a></li> + <li><a href="demo/_mp3/walking.mp3" class="exclude">Walking</a></li> + <!-- files from the web (note that ID3 information will *not* load from remote domains without permission, Flash restriction) --> + <li><a href="http://freshly-ground.com/data/video/Rain%20on%20Car%20Roof.aac" title="Rain on car roof (AAC)" class="exclude">Rain On Car Roof <span class="sidenote">(AAC)</span></a></li> + </ul> + + <div class="demo-more" style="text-align:right;white-space:normal"> + <a href="demo/play-mp3-links/" title="&quot;Play MP3 Links&quot; demo" class="cta">play MP3 links <span>&raquo;</span></a> + </div> + + <div style="clear:both"></div> + + <p>A richer playlist theme with optional time, seekable progress bar and a VU meter where supported:</p> + + <ul id="inline-playlist" class="playlist"> + <li><a href="http://freshly-ground.com/data/audio/mpc/20060826%20-%20Armstrong.mp3" class="button-exclude inline-exclude threesixty-exclude">Armstrong Beat</a></li> + <li><a href="http://freshly-ground.com/data/audio/mpc/20090119%20-%20Untitled%20Groove.mp3" class="button-exclude inline-exclude threesixty-exclude">Untitled Groove</a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/birds-in-kauai-128kbps-aac-lc.mp4" title="128 kbps MPEG-4 AAC LC (Low Complexity) sound: Birds in Kaua'i" class="button-exclude inline-exclude threesixty-exclude">Birds In Kaua'i <span class="sidenote">(128 kbps AAC)</span></a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/20130320%20-%20Po%27ipu%20Beach%20Waves.ogg" title="Po'ipu Beach Waves: OGG sound format, requires HTML5 Audio() support to play" class="muxtape-html5 button-exclude inline-exclude threesixty-exclude">Po'ipu Beach Waves <span class="sidenote">(OGG)</span></a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/bottle-pop.wav" title="WAV sound format, requires HTML5 Audio() support to play" class="muxtape-html5 button-exclude inline-exclude threesixty-exclude">A corked beer bottle <span class="sidenote">(WAV)</span></a></li> + </ul> + <div class="demo-more"> + <a href="demo/page-player/" title="Muxtape-style UI demo" class="cta">muxtape-style UI <span>&raquo;</span></a> + </div> + + </div> + </div> + + <div class="column"> + <div class="column-wrapper"> + + <h3>Shiny</h3> + <h4>Fancier UI, more features</h4> + + <p>The <em>Bar UI</em> uses SVG for a resolution-independent UI, with HTML and CSS that makes customization easy.</p> + + <div class="sm2-bar-ui" style="min-width:10em"> + + <div class="bd sm2-main-controls"> + + <div class="sm2-inline-texture"></div> + <div class="sm2-inline-gradient"></div> + + <div class="sm2-inline-element sm2-button-element"> + <div class="sm2-button-bd"> + <a href="#play" class="sm2-inline-button play-pause">Play / pause</a> + </div> + </div> + + <div class="sm2-inline-element sm2-inline-status"> + + <div class="sm2-playlist"> + <div class="sm2-playlist-target"> + <!-- playlist <ul> + <li> markup will be injected here --> + <!-- if you want default / non-JS content, you can put that here. --> + <noscript><p>JavaScript is required.</p></noscript> + </div> + </div> + + <div class="sm2-progress"> + <div class="sm2-row"> + <div class="sm2-inline-time">0:00</div> + <div class="sm2-progress-bd"> + <div class="sm2-progress-track"> + <div class="sm2-progress-bar"></div> + <div class="sm2-progress-ball"><div class="icon-overlay"></div></div> + </div> + </div> + <div class="sm2-inline-duration">0:00</div> + </div> + </div> + + </div> + + <div class="sm2-inline-element sm2-button-element sm2-volume"> + <div class="sm2-button-bd"> + <span class="sm2-inline-button sm2-volume-control volume-shade"></span> + <a href="#volume" class="sm2-inline-button sm2-volume-control">volume</a> + </div> + </div> + + <div class="sm2-inline-element sm2-button-element sm2-menu"> + <div class="sm2-button-bd"> + <a href="#menu" class="sm2-inline-button menu">menu</a> + </div> + </div> + + </div> + + <div class="bd sm2-playlist-drawer sm2-element"> + + <div class="sm2-inline-texture"> + <div class="sm2-box-shadow"></div> + </div> + + <!-- playlist content is mirrored here --> + + <div class="sm2-playlist-wrapper"> + <ul class="sm2-playlist-bd"> + <li><a href="http://freshly-ground.com/data/audio/sm2/SonReal%20-%20LA%20(Prod%20Chin%20Injetti).mp3" class="exclude button-exclude inline-exclude">SonReal - LA (Prod. Chin Injetti)<span class="label">Explicit</span></a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/SonReal%20-%20Let%20Me%20(Prod%202oolman).mp3" class="exclude button-exclude inline-exclude"><b>SonReal</b> - Let Me <span class="label">Explicit</span></a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/SonReal%20-%20People%20Asking.mp3" class="exclude button-exclude inline-exclude"><b>SonReal</b> - People Asking <span class="label">Explicit</span></a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/SonReal%20-%20Already%20There%20Remix%20ft.%20Rich%20Kidd,%20Saukrates.mp3" class="exclude button-exclude inline-exclude"><b>SonReal</b> - Already There Remix ft. Rich Kidd, Saukrates <span class="label">Explicit</span></a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/The%20Fugitives%20-%20Graffiti%20Sex.mp3" class="exclude button-exclude inline-exclude"><b>The Fugitives</b> - Graffiti Sex</a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/Adrian%20Glynn%20-%20Seven%20Or%20Eight%20Days.mp3" class="exclude button-exclude inline-exclude"><b>Adrian Glynn</b> - Seven Or Eight Days</a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/SonReal%20-%20I%20Tried.mp3" class="exclude button-exclude inline-exclude"><b>SonReal</b> - I Tried</a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/gong-192kbps.mp3" class="exclude button-exclude inline-exclude">32" Gong Sounds (rubber + standard mallets)</a></li> + <li><a href="http://freshly-ground.com/data/audio/mpc/20060826%20-%20Armstrong.mp3" class="exclude button-exclude inline-exclude">Armstrong Beat</a></li> + <li><a href="http://freshly-ground.com/data/audio/mpc/20090119%20-%20Untitled%20Groove.mp3" class="exclude button-exclude inline-exclude">Untitled Groove</a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/birds-in-kauai-128kbps-aac-lc.mp4" class="exclude button-exclude inline-exclude">Birds In Kaua'i (AAC)</a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/20130320%20-%20Po%27ipu%20Beach%20Waves.ogg" class="exclude button-exclude inline-exclude">Po'ipu Beach Waves (OGG)</a></li> + <li><a href="http://freshly-ground.com/data/audio/sm2/bottle-pop.wav" class="exclude button-exclude inline-exclude">A corked beer bottle (WAV)</a></li> + <li><a href="demo/_mp3/rain.mp3" class="norewrite exclude button-exclude inline-exclude">Rain</a></li> + </ul> + </div> + + <div class="sm2-extra-controls"> + + <div class="bd"> + + <div class="sm2-inline-element sm2-button-element"> + <a href="#prev" title="Previous" class="sm2-inline-button previous">&lt; previous</a> + </div> + + <div class="sm2-inline-element sm2-button-element"> + <a href="#next" title="Next" class="sm2-inline-button next">&gt; next</a> + </div> + + <div class="sm2-inline-element sm2-button-element disabled"> + <a href="#repeat" title="Repeat playlist" class="sm2-inline-button repeat">&infin; repeat</a> + </div> + + <div class="sm2-inline-element sm2-button-element disabled"> + <a href="#shuffle" title="Shuffle" class="sm2-inline-button shuffle">shuffle</a> + </div> + + </div> + + </div> + + </div> + + </div> + + <div class="demo-more"> + <a href="demo/bar-ui/" title="Bar UI: Demo" class="cta">Bar UI <span>&raquo;</span></a> + </div> + + <!-- 360 player --> + + <p>The 360&deg; player UI demo uses &lt;canvas&gt; and includes options for waveform and spectrum analysis data via Flash 9, adding beautiful visual feedback to the interface.</p> + + <p style="font-size:92%;text-align:left;color:#666;white-space:normal"><em>Seven Or Eight Days</em> courtesy of <a href="http://www.adrianglynn.com/" title="Adrian Glynn, Vancouver, Canadian singer/songwriter" class="cta">Adrian Glynn</a>, from&nbsp;the album <em>Bruise</em>. For more, see the <a href="https://www.youtube.com/watch?v=dFc2QQiGcUQ" title="Adrian Glynn: &quot;Seven Or Eight Days&quot; video" rel="nofollow" class="cta">music video</a>.</p> + + <!-- + <div id="inline-demos"> + <h4 id="inline-demo-header">Inline demos using SoundManager 2</h4> + </div> + --> + + <div> + + <div id="sm2-visualization" class="sm2-inline-list"> + + <div class="ui360 ui360-vis"> + <a href="http://freshly-ground.com/data/audio/sm2/Adrian%20Glynn%20-%20Seven%20Or%20Eight%20Days.mp3" class="exclude button-exclude inline-exclude" style="position:absolute;color:#333">Adrian Glynn - Seven Or Eight Days</a> + </div> + + </div> + + <div class="demo-more" style="width:256px;margin:0.5em auto 0px auto;clear:both"> + <a href="demo/360-player/canvas-visualization.html" title="360&deg; UI: JavaScript + Canvas Visualization" class="cta">360&deg; + spectrum UI <span>&raquo;</span></a> + </div> + + </div> + + </div> + </div> + + <div class="column"> + + <div class="column-wrapper"> + + <h3>Experimental</h3> + <h4>Advanced <b>prototypes</b></h4> + + <div id="turntable-demo"> + + <div style="clear:both;position:relative;text-align:center;margin-top:-7.5%"> + + <!-- note: inline-block is just for centering --> + + <div id="turntable-large" class="turntable has-slipmat" style="display:inline-block"> + + <div class="frame"></div> + + <div class="table-bg"></div> + + <!-- image that sets the base dimensions--> + <img src="demo/turntable/image/tt_case_and_lighting.png" alt="" class="stub" /> + + <div class="bd"> + + <div class="platter"></div> + + <div class="slipmat-holder"> + <div class="slipmat"></div> + </div> + + <div class="record-holder"> + <div class="record"></div> + <div class="record-grooves"></div> + <div class="label"></div> + </div> + + <div class="spindle"></div> + <div class="power-light"></div> + <a href="#" class="power-dial" data-method="powerToggle"></a> + <a href="#" class="button start-stop" data-method="toggle"></a> + <a href="#" class="button speed-33 on"></a> + <a href="#" class="button speed-45"></a> + <div class="light light-on"></div> + <a href="#" class="button light"></a> + <div class="tonearm-holder"> + <div class="tonearm"></div> + </div> + </div> + + </div> + + </div> + + <div class="demo-more" style="position:relative;z-index:2;margin-right:7%;margin-top:-5.25%"> + <a href="demo/turntable/" title="Turntable UI Demo" class="cta dark-cta">Turntable UI <span>&raquo;</span></a> + </div> + + <!-- end turntable --> + + <ul class="tt-playlist"> + <li> + <a href="http://freshly-ground.com/data/audio/sm2/Beckyoncé%20-%20Single%20Loser.mp3" data-turntable="turntable-large" data-artwork="http://freshly-ground.com/data/image/sm2/beckyonce.jpg" class="norewrite exclude button-exclude inline-exclude sm2-exclude cta turntable-include">Beckyoncé - Single Loser (Put A Beck On It)</a> (<span title="Published under a Creative Commons BY-NC-SA license">BY-NC-SA</span>, <a href="https://soundcloud.com/beckyonce/single-loser-put-a-beck-on-it" target="_blank" class="cta">via</a>) + </li> + <li> + <a href="http://freshly-ground.com/data/audio/sm2/Figub%20Brazlevi%C4%8D%20-%20Bosnian%20Syndicate.mp3" data-turntable="turntable-large" data-artwork="http://freshly-ground.com/data/image/sm2/trainyards-cover-640.jpg" class="norewrite exclude button-exclude inline-exclude sm2-exclude cta turntable-include"><b>Figub Brazlevič</b> - Bosnian Syndicate</a> (<span title="Published under a Creative Commons BY-NC-ND license">BY-CC-ND license</span>, <a href="http://figubbrazlevic.bandcamp.com/track/bosnian-syndicate" target="_blank" class="cta">via</a>) + </li> + <li> + <a href="http://freshly-ground.com/data/audio/sm2/Chill With Schill (Summer 2012 Session Excerpt).mp3" data-turntable="turntable-large" class="norewrite exclude button-exclude inline-exclude sm2-exclude cta turntable-include">Chill With Schill (Summer 2012 Session Excerpt)</a> + </li> + <li> + <a href="http://freshly-ground.com/data/audio/sm2/SonReal%20-%20LA%20%28Prod%20Chin%20Injetti%29.mp3" data-turntable="turntable-large" data-artwork="http://freshly-ground.com/data/image/sm2/sonreal-onelongday-65.jpg" class="norewrite exclude button-exclude inline-exclude cta turntable-include">SonReal - L.A. (Prod. Injetti)</a> + </li> + </ul> + + </div> + + <style> + /* quick hack for playlist above */ + ul.tt-playlist { + position: relative; + color: #999; + padding-left: 2.75em; + font-size: 92%; + } + ul.tt-playlist li { + margin: 0px; + padding: 0px; + } + /* + .turntable .frame { + background: url(demo/turntable/image/pinstriped_suit_vertical.png); + background-size: 142px 76px; + } + */ + </style> + + <p>The Cassette Tape UI is a skinnable player based on the TDK MA-R90 cassette tape, a classic design from 1982.</p> + + <div> + <a href="demo/cassette-tape/" title="Cassette Tape UI (Prototype Demo)"><img src="demo/_image/cassette-tape-ui-screenshot.jpg" alt="Cassette Tape UI Prototype Screenshot" style="max-width:506px;min-width:100%;width:100%;border-radius:12px" /></a> + </div> + + <p style="margin:0.5em 0px 0px 0px;padding:0px;font-size:92%;text-align:left;color:#666;margin-bottom:0.5em;white-space:normal">Remember Type IV, Metal &amp; Chromium/CrO2? <a href="http://www.youtube.com/watch?v=uMUnaI_IdBU" title="TDK TV ad, 1980s" class="cta">Those were the days</a>.</p> + + </div> + </div> + + </div> + + <div id="how-to" class="twoup"> + + <div class="column"> + <div id="getting-started" class="column-wrapper"> + + <h3>Getting <b>started</b></h3> + + <h4>Basic SoundManager 2 set-up</h4> + + <p>Including the script, configuring the <code>url</code> and registering an <code>onready()</code> callback:</p> + +<pre class="block"><code>&lt;script src="soundmanager2.js"&gt;&lt;/script&gt; +&lt;script&gt; +<a href="doc/#soundmanager-setup" title="soundManager.setup() documentation" onclick="checkDomain()">soundManager.setup</a>({ + <span><span>// where to find flash audio SWFs, as needed</span></span> + url: '<span>/path/to/swf-files/</span>', + onready: function() { + <span><span>// SM2 is ready to play audio!</span></span> + } +}); +&lt;/script&gt;</code></pre> + + <p>Upon execution of soundmanager2.js, SM2 will determine what Flash SWF to load (if any) based on the path defined in <code>soundManager.url</code>.</p> + <p>After successful initialization, <code>soundManager.onready()</code> will fire and sounds can be played.</p> + <p>By default, SM2 uses a Flash 8-based SWF build. Some <a href="#flash9-features" title="SoundManager 2: Flash 9 API-based features" class="cta">additional features</a> are available when using the Flash 9-based build.</p> + + <p>For a live example, see the <a href="demo/template/" class="cta">basic template demo</a>.</p> + + </div> + + </div> + + + <div class="column"> + + <div class="column-wrapper"> + + <h3>Playing <b>audio</b></h3> + <h4>Basic playback control</h4> + + <p>Once <code>soundManager.onready()</code> has fired, sounds can be loaded and played.</p> + + <h4>Creating and playing a sound object</h4> + +<pre class="block"><code><span><span>// create "mySound"...</span></span> +var mySound = <a href="doc/#soundmanager-createsound" title="soundManager.createSound() documentation" onclick="checkDomain()">soundManager.createSound</a>({ + url: '<span>/path/to/an.mp3</span>' +}); + +<span><span>// ...and play it</span></span> +mySound.play(); +</code></pre> + + <p>Additional options and events can be specified when loading and playing sounds. For more examples of playback features, see <a href="demo/api/" class="cta">API Demos</a>.</p> + + </div> + + </div> + + </div> + + <div class="twoup"> + + <div class="column"> + <div class="column-wrapper"> + + <h3>Bonus</h3> + <h4>Additional <b>demos</b></h4> + + <p> + Examples using multi-track playback, progress and combinations of sound and animation: + </p> + + <h4>Armor Alley: Web Prototype (PC-DOS game remake)</strong></h4> + + <iframe width="100%" height="400" src="https://www.youtube.com/embed/bTH2OYJ6vVY" frameborder="0" allowfullscreen></iframe> + + <p><a href="http://schillmania.com/armor-alley/" class="cta">Armor Alley</a> is a side-scrolling, real-time vehicle simulation / strategy game, originally released for the Mac and PC-DOS computers in 1990. This web-based remake is a tribute to the attention to detail shown in the original. Your goal is to defend a convoy as it moves into enemy territory; the game ends when a van reaches the opposing base. See the <a href="http://www.schillmania.com/content/entries/2013/armor-alley-web-prototype/" class="cta">making-of</a> for more.</p> + + <h4>SURVIVOR (Commodore 64 game remake)</strong></h4> + + <iframe width="100%" height="390" src="https://www.youtube.com/embed/h6DyJbCnLvw" frameborder="0" allowfullscreen></iframe> + + <p><a href="http://schillmania.com/survivor/" class="cta">SURVIVOR</a> is a web-based remake of a Commodore 64 game. The goal is to shoot out turrets and destroy bases, while avoiding contact with basically everything around you. Sound was used creatively in the original, and it has been re-implemented in this modern interpretation. See the <a href="http://www.schillmania.com/content/entries/2012/survivor-c64-html-remake/" class="cta">making-of</a> for more.</p> + + </div> + + </div> + + <div class="column"> + <div class="column-wrapper"> + + <h3>Elsewhere</h3> + <h4>As heard on <b><span class="scratched-out">TV</span> the internets</b></h4> + + <p>A few nifty places SoundManager 2 has been seen in use on the Wild World Web:</p> + + <div class="inthewild active"> + + <ul class="inthewild"> + <li id="tidal-link"> + <a id="tidal" href="http://tidal.com/" title="TIDAL (web player, non-FLAC streaming)"><span>TIDAL</span></a> + </li> + <li> + <a id="beats-music" href="http://beatsmusic.com/" title="Beats Music (web player)"><span>Beats Music</span></a> + </li> + <li> + <a id="songza" href="http://songza.com/" title="Songza"><span>Songza</span></a> + </li> + <li> + <a id="earbits" href="http://earbits.com/" title="Earbits"><span>Earbits</span></a> + </li> + <li> + <a id="lastfm" href="http://www.last.fm/" title="last.fm"><span>last.fm</span></a> + </li> + <li> + <a id="pitchfork" href="http://www.pitchfork.com/" title="Pitchfork"><span>Pitchfork</span></a> + </li> + <li> + <a id="eight-tracks" href="http://8tracks.com/" title="8tracks"><span>8tracks</span></a> + </li> + <li> + <a id="discogs" href="http://www.discogs.com/" title="Discogs"><span>Discogs</span></a> + </li> + <li> + <a id="hypem" href="http://hypem.com/" title="The Hype Machine"><span>The Hype Machine</span></a> + </li> + <li> + <a id="nyancat" href="http://nyan.cat/" title="NON-STOP NYAN CAT!"><span>NON-STOP NYAN CAT!</span></a> + </li> + <li> + <a id="freesound" href="http://freesound.org" title="Freesound.org"><span>freesound.org</span></a> + </li> + <li> + <a id="baroque-me" href="http://www.chenalexander.com/Bach" title="Alexander Chen's &quot;baroque.me&quot;"><span>Baroque</span></a> + </li> + </ul> + + </div> + + <h4 style="padding-top:1em">Articles and presentations</h4> + + <p>Some other words, pictures and video on the subject of HTML5 and web audio:</p> + + <ul class="standard"> + <li>Video, 02/2012: <a href="http://www.youtube.com/watch?v=C2Tw0BeZb8Q" title="Scott Schiller: Web Audio: HTML5 + Flash (in a tree)" class="cta">Web Audio: HTML5 + Flash (in a tree)</a> (<a href="http://isflashdeadyet.com/talks/html5/bayjax_yahoo_sunnyvale_02-06-2012/" title="&quot;Web Audio: HTML5 + Flash (in a tree)&quot; presentation slides" class="cta">slides</a>.) Updated HTML5 content, demos and <a href="http://www.schillmania.com/content/entries/2012/survivor-c64-html-remake/" title="SURVIVOR: Remaking a Commodore 64 game in HTML" class="cta">SURVIVOR</a> C64 game demo.</li> + <li>Video presentation: <a href="http://www.youtube.com/watch?v=KjdPNtWV3Z0#t=56s" title="Scott Schiller: &quot;Adding Sound To HTML&quot;" class="cta">Adding Sound To HTML</a> (<a href="http://isflashdeadyet.com/talks/html5/" title="&quot;Adding Sound To HTML&quot; presentation slides" class="cta">slides</a>) (12/2011)</li> + <li>Video: <a href="http://www.youtube.com/watch?v=ffk65q5Rl9I" title="Yahoo!/YUI Blog, video presentation: Scott Schiller on the State of HTML5 Audio" class="cta">Probably, Maybe, No: The State of HTML5 Audio</a> + turntable demo (05/2011)</li> + <li>24ways.org article, <a href="http://24ways.org/2010/the-state-of-html5-audio" title="Probably, Maybe, No: The State Of HTML5 Audio (24ways.org)" class="cta">The State Of HTML5 Audio</a> (12/2010)</li> + </ul> + + <h4 style="padding-top:1em">Credits and thank-yous</h4> + + <ul class="standard"> + <li>Icons: Desktop / mobile / iOS device iconography via <a href="http://glyphish.com/" class="cta">glyphish.com</a> (<a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons Attribution 3.0 Unported" class="cta">CC</a>). Tile background: "<a href="http://subtlepatterns.com/tiny-grid/" class="cta">Tiny Grid</a>". Homepage header typeface: <a href="http://work.meredithmandel.com/#379252/Typeface-Chunk-Five" class="cta">Chunk (Five)</a> by Meredith Mandel (<a href="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;id=OFL&amp;_sc=1" title="SIL Open Font License (OFL)" class="cta">OFL</a>).</li> + <li>Music: <em>Seven Or Eight Days</em> courtesy of <a href="http://www.adrianglynn.com/" title="Adrian Glynn, Vancouver-based Singer/Songwriter" class="cta">Adrian Glynn</a>. <em>Graffiti Sex</em> courtesy of <a href="http://www.fugitives.ca/" title="The Fugitives, multi-instrumentalists from Vancouver" class="cta">The Fugitives</a>, from the album <em>In Streetlight Communion</em>. <em>Let Me</em>, <em>LA</em>, <em>I Tried</em> and <em>People Asking</em> courtesy of <a href="http://sonreal.ca/" title="SonReal, Vancouver-based hip-hop artist" class="cta">SonReal</a>.</li> + </ul> + + <h4 style="clear:left;padding-top:1em">Additional experimental demo</h4> + + <p>The "Wheels Of Steel" started as a simple CSS prototype, and evolved to replicate most of the UI and functionality of a traditional DJ set-up. Pitch bending, scratch and EQ effects are present where supported.</p> + <p style="margin:0px 0px 0.5em 0px;padding:0px;text-align:center" class="bonus-demo"><a href="http://wheelsofsteel.net/" title="The Wheels Of Steel: Online turntable / browser-based DJ prototype" style="margin:0px;padding:0px;background:#fff"><img src="demo/_image/wheelsofsteel-full-ui.jpg" alt="wheelsofsteel.net: Online turntable demo (screenshot)" style="display:block;width:100%;min-width:100%;max-width:315px;margin-left:-4px;border:1px solid #f0f0f0" /></a></p> + <p style="margin:0px;padding:0px;font-size:92%;text-align:left;color:#666;margin-bottom:0.5em;white-space:normal">The <a href="http://wheelsofsteel.net/" title="The Wheels Of Steel: Online turntable / browser-based DJ prototype" class="cta">Wheels Of Steel</a>, a browser-based DJ turntable prototype. For the tech details, read <a href="http://www.schillmania.com/content/entries/2011/wheels-of-steel/" title="The making of 'The Wheels Of Steel': An Ode To Turntables (in HTML)" class="cta">An Ode To Turntables (in HTML.)</a></p> + + </div> + + </div> + +<!-- + <div class="column"> + <div class="column-wrapper"> + + <h3>Download <b>the code</b></h3> + + <p> + <a href="doc/download/" class="feature">Get SoundManager 2</a> + </p> + + </div> + </div> +--> + + </div> + + <div class="threeup"> + + <div class="column"> + <div class="column-wrapper"> + + <h3>Technical <b>overview</b></h3> + + <h4>HTML5 audio + optional Flash fallback</h4> + + <ul class="standard"> + <li>100% Flash-free audio on iPad, iPhone (iOS4) and other HTML5-enabled devices + browsers</li> + <li>Invisible Flash SWF provides HTML5 fallback as needed</li> + <li>API is consistent whether using HTML5 or Flash</li> + <li>See <a href="doc/#soundmanager-usehtml5audio" title="soundManager.useHTML5Audio HTML5 Audio() support feature documentation" class="cta">useHTML5Audio</a> for implementation details</li> + </ul> + + </div> + </div> + + <div class="column"> + <div class="column-wrapper"> <!-- spaced-out --> + + <h3>API <b>specifics</b></h3> + <h4>Basic API features (HTML5, Flash 8*)</h4> + + <ul class="standard"> + <li>Load, stop, play, pause, mute, seek, pan*, volume control from JavaScript</li> + <li>Events: <code>onload()</code>, <code>whileloading()</code>, <code>whileplaying()</code>, <code>onfinish()</code> and more</li> + <li>ID3V1 + ID3V2 tag support for MP3s (title, artist, genre etc.)*</li> + </ul> + + <br /> + + <h4 id="flash9-features">Additional Flash 9-based API features</h4> + + <ul class="standard"> + <li>RTMP / Flash Media Server streaming support (experimental) - see <a href="doc/#smsound-serverurl" title="SMSound.serverURL parameter" class="cta">serverURL</a></li> + <li>MPEG-4 (AAC, HE-AAC, H.264) audio support</li> + <li>"MultiShot" play (layered/chorusing effects)</li> + <li>Waveform/frequency spectrum data</li> + <li>Peak (L/R channel volume) data</li> + <li>Audio buffering state/event handling</li> + </ul> + + </div> + </div> + + <div class="column"> + <div class="column-wrapper"> <!-- spaced-out --> + + <h3>Everything <b>else</b></h3> + <h4>Documentation, tools and demos</h4> + + <ul class="standard"> + <li>Extensive <a href="doc/" title="SoundManager 2 documentation" class="cta">API Documentation</a> with examples and notes</li> + <li>Built-in <a href="doc/technotes/#debug-output" title="SoundManager 2 console.log()-style debug output" class="cta">debugging</a> and <a href="doc/getstarted/#troubleshooting" title="SoundManager 2 troubleshooting tool" class="cta">troubleshooting tools</a></li> + <li>Community-based <a href="http://getsatisfaction.com/schillmania/products/schillmania_soundmanager_2" title="discussion/support for SoundManager 2 on Get Satisfaction" class="cta">discussion/support</a></li> + <li id="licensing"><a href="license.txt" title="SoundManager 2 BSD license" class="cta norewrite">BSD licensed</a></li> + </ul> + + <br /> + <h4 class="home-shopping-network">Not only do you get the ginsu knife...</h4> + <p style="font-size:92%">Even more demos and examples using the SoundManager 2 API...</p> + <ul class="standard"> + <li><a href="demo/play-mp3-links/" title="Links to MP3 files that play inline" class="cta">Playable MP3 links</a></li> + <li><a href="demo/mpc/" title="MPC sampler/drum machine demo" class="cta">MPC sampler/drum machine</a></li> + <li><a href="demo/animation-1/" title="Bouncing ball animation with sound effects" class="cta">Basic animation + sound</a></li> + <li><a href="demo/christmas-lights/" title="Smashable christmas lights demo (animation and sound)" class="cta">Smashable christmas lights</a></li> + <li><a href="demo/api/" title="See the code, click the button, watch it run: Live API demos using test sounds" class="cta">Live API + code examples</a></li> + </ul> + + + </div> + </div> + + <!--/min-width --> + + </div> + +<!-- three --> + + <!-- /#about-sm2 --> + </div> + + </div> + + <div class="clear">&nbsp;</div> + + <!-- /content --> + + </div> + + <script type="text/javascript"> + // <![CDATA[ + if (document.location.href.match(/debug=1/i)) { + document.getElementById('with-debug').style.display = 'none'; + } + if (document.location.href.match(/debug/i)) { + document.getElementById('options-divider-with-html5').style.display = 'none'; + } + if (soundManager.useHTML5Audio || document.location.href.match(/html5audio=1/i)) { + document.getElementById('with-html5').style.display = 'none'; + document.getElementById('options-divider-with-html5').style.display = 'none'; + } else { + document.getElementById('without-html5').style.display = 'none'; + document.getElementById('options-divider-without-html5').style.display = 'none'; + } + init(); + // ]]> + </script> + + </div> + +</div> + +</body> +</html> diff --git a/media/soundmanager/license.txt b/media/soundmanager/license.txt new file mode 100644 index 00000000..1a17182f --- /dev/null +++ b/media/soundmanager/license.txt @@ -0,0 +1,29 @@ +Software License Agreement (BSD License) + +Copyright (c) 2007, Scott Schiller (schillmania.com) +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, this + list of conditions and the following disclaimer in the documentation and/or + other materials provided with the distribution. + +* Neither the name of schillmania.com nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission from schillmania.com. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/media/soundmanager/script/soundmanager2-jsmin.js b/media/soundmanager/script/soundmanager2-jsmin.js new file mode 100644 index 00000000..2077360f --- /dev/null +++ b/media/soundmanager/script/soundmanager2-jsmin.js @@ -0,0 +1,113 @@ +/** @license + + + SoundManager 2: JavaScript Sound for the Web + ---------------------------------------------- + http://schillmania.com/projects/soundmanager2/ + + Copyright (c) 2007, Scott Schiller. All rights reserved. + Code provided under the BSD License: + http://schillmania.com/projects/soundmanager2/license.txt + + V2.97a.20150601 +*/ +(function(h,g){function K(sb,K){function ha(b){return c.preferFlash&&H&&!c.ignoreFlash&&c.flash[b]!==g&&c.flash[b]}function r(b){return function(d){var e=this._s;e&&e._a?d=b.call(this,d):(e&&e.id?c._wD(e.id+": Ignoring "+d.type):c._wD("HTML5::Ignoring "+d.type),d=null);return d}}this.setupOptions={url:sb||null,flashVersion:8,debugMode:!0,debugFlash:!1,useConsole:!0,consoleOnly:!0,waitForWindowLoad:!1,bgColor:"#ffffff",useHighPerformance:!1,flashPollingInterval:null,html5PollingInterval:null,flashLoadTimeout:1E3, +wmode:null,allowScriptAccess:"always",useFlashBlock:!1,useHTML5Audio:!0,forceUseGlobalHTML5Audio:!1,ignoreMobileRestrictions:!1,html5Test:/^(probably|maybe)$/i,preferFlash:!1,noSWFCache:!1,idPrefix:"sound"};this.defaultOptions={autoLoad:!1,autoPlay:!1,from:null,loops:1,onid3:null,onload:null,whileloading:null,onplay:null,onpause:null,onresume:null,whileplaying:null,onposition:null,onstop:null,onfailure:null,onfinish:null,multiShot:!0,multiShotEvents:!1,position:null,pan:0,stream:!0,to:null,type:null, +usePolicyFile:!1,volume:100};this.flash9Options={isMovieStar:null,usePeakData:!1,useWaveformData:!1,useEQData:!1,onbufferchange:null,ondataerror:null};this.movieStarOptions={bufferTime:3,serverURL:null,onconnect:null,duration:null};this.audioFormats={mp3:{type:['audio/mpeg; codecs="mp3"',"audio/mpeg","audio/mp3","audio/MPA","audio/mpa-robust"],required:!0},mp4:{related:["aac","m4a","m4b"],type:['audio/mp4; codecs="mp4a.40.2"',"audio/aac","audio/x-m4a","audio/MP4A-LATM","audio/mpeg4-generic"],required:!1}, +ogg:{type:["audio/ogg; codecs=vorbis"],required:!1},opus:{type:["audio/ogg; codecs=opus","audio/opus"],required:!1},wav:{type:['audio/wav; codecs="1"',"audio/wav","audio/wave","audio/x-wav"],required:!1}};this.movieID="sm2-container";this.id=K||"sm2movie";this.debugID="soundmanager-debug";this.debugURLParam=/([#?&])debug=1/i;this.versionNumber="V2.97a.20150601";this.altURL=this.movieURL=this.version=null;this.enabled=this.swfLoaded=!1;this.oMC=null;this.sounds={};this.soundIDs=[];this.didFlashBlock= +this.muted=!1;this.filePattern=null;this.filePatterns={flash8:/\.mp3(\?.*)?$/i,flash9:/\.mp3(\?.*)?$/i};this.features={buffering:!1,peakData:!1,waveformData:!1,eqData:!1,movieStar:!1};this.sandbox={type:null,types:{remote:"remote (domain-based) rules",localWithFile:"local with file access (no internet access)",localWithNetwork:"local with network (internet access only, no local access)",localTrusted:"local, trusted (local+internet access)"},description:null,noRemote:null,noLocal:null};this.html5= +{usingFlash:null};this.flash={};this.ignoreFlash=this.html5Only=!1;var W,c=this,Ya=null,l=null,F,v=navigator.userAgent,ia=h.location.href.toString(),m=document,ya,Za,za,n,I=[],Aa=!0,D,X=!1,Y=!1,q=!1,y=!1,ja=!1,p,tb=0,Z,A,Ba,R,Ca,P,S,T,$a,Da,Ea,ka,z,la,Q,Fa,aa,ma,na,U,ab,Ga,bb=["log","info","warn","error"],cb,Ha,db,ba=null,Ia=null,t,Ja,V,eb,oa,pa,L,w,ca=!1,Ka=!1,fb,gb,hb,qa=0,da=null,ra,M=[],ea,u=null,ib,sa,fa,N,ta,La,jb,x,kb=Array.prototype.slice,C=!1,Ma,H,Na,lb,J,mb,Oa,ua,nb=0,Pa,Qa=v.match(/(ipad|iphone|ipod)/i), +Ra=v.match(/android/i),O=v.match(/msie/i),ub=v.match(/webkit/i),va=v.match(/safari/i)&&!v.match(/chrome/i),Sa=v.match(/opera/i),wa=v.match(/(mobile|pre\/|xoom)/i)||Qa||Ra,Ta=!ia.match(/usehtml5audio/i)&&!ia.match(/sm2\-ignorebadua/i)&&va&&!v.match(/silk/i)&&v.match(/OS X 10_6_([3-7])/i),Ua=h.console!==g&&console.log!==g,Va=m.hasFocus!==g?m.hasFocus():null,xa=va&&(m.hasFocus===g||!m.hasFocus()),ob=!xa,pb=/(mp3|mp4|mpa|m4a|m4b)/i,ga=m.location?m.location.protocol.match(/http/i):null,vb=ga?"":"http://", +qb=/^\s*audio\/(?:x-)?(?:mpeg4|aac|flv|mov|mp4||m4v|m4a|m4b|mp4v|3gp|3g2)\s*(?:$|;)/i,rb="mpeg4 aac flv mov mp4 m4v f4v m4a m4b mp4v 3gp 3g2".split(" "),wb=new RegExp("\\.("+rb.join("|")+")(\\?.*)?$","i");this.mimePattern=/^\s*audio\/(?:x-)?(?:mp(?:eg|3))\s*(?:$|;)/i;this.useAltURL=!ga;var Wa;try{Wa=Audio!==g&&(Sa&&opera!==g&&10>opera.version()?new Audio(null):new Audio).canPlayType!==g}catch(xb){Wa=!1}this.hasHTML5=Wa;this.setup=function(b){var d=!c.url;b!==g&&q&&u&&c.ok()&&(b.flashVersion!==g|| +b.url!==g||b.html5Test!==g)&&L(t("setupLate"));Ba(b);if(!C)if(wa){if(!c.setupOptions.ignoreMobileRestrictions||c.setupOptions.forceUseGlobalHTML5Audio)M.push(z.globalHTML5),C=!0}else c.setupOptions.forceUseGlobalHTML5Audio&&(M.push(z.globalHTML5),C=!0);if(!Pa&&wa)if(c.setupOptions.ignoreMobileRestrictions)M.push(z.ignoreMobile);else if(c.setupOptions.useHTML5Audio&&!c.setupOptions.preferFlash||c._wD(z.mobileUA),c.setupOptions.useHTML5Audio=!0,c.setupOptions.preferFlash=!1,Qa)c.ignoreFlash=!0;else if(Ra&& +!v.match(/android\s2\.3/i)||!Ra)c._wD(z.globalHTML5),C=!0;b&&(d&&aa&&b.url!==g&&c.beginDelayedInit(),aa||b.url===g||"complete"!==m.readyState||setTimeout(Q,1));Pa=!0;return c};this.supported=this.ok=function(){return u?q&&!y:c.useHTML5Audio&&c.hasHTML5};this.getMovie=function(c){return F(c)||m[c]||h[c]};this.createSound=function(b,d){function e(){f=oa(f);c.sounds[f.id]=new W(f);c.soundIDs.push(f.id);return c.sounds[f.id]}var a,f;a=null;a="soundManager.createSound(): "+t(q?"notOK":"notReady");if(!q|| +!c.ok())return L(a),!1;d!==g&&(b={id:b,url:d});f=A(b);f.url=ra(f.url);f.id===g&&(f.id=c.setupOptions.idPrefix+nb++);f.id.toString().charAt(0).match(/^[0-9]$/)&&c._wD("soundManager.createSound(): "+t("badID",f.id),2);c._wD("soundManager.createSound(): "+f.id+(f.url?" ("+f.url+")":""),1);if(w(f.id,!0))return c._wD("soundManager.createSound(): "+f.id+" exists",1),c.sounds[f.id];if(sa(f))a=e(),c.html5Only||c._wD(f.id+": Using HTML5"),a._setup_html5(f);else{if(c.html5Only)return c._wD(f.id+": No HTML5 support for this sound, and no Flash. Exiting."), +e();if(c.html5.usingFlash&&f.url&&f.url.match(/data\:/i))return c._wD(f.id+": data: URIs not supported via Flash. Exiting."),e();8<n&&(null===f.isMovieStar&&(f.isMovieStar=!!(f.serverURL||f.type&&f.type.match(qb)||f.url&&f.url.match(wb))),f.isMovieStar&&(c._wD("soundManager.createSound(): using MovieStar handling"),1<f.loops&&p("noNSLoop")));f=pa(f,"soundManager.createSound(): ");a=e();8===n?l._createSound(f.id,f.loops||1,f.usePolicyFile):(l._createSound(f.id,f.url,f.usePeakData,f.useWaveformData, +f.useEQData,f.isMovieStar,f.isMovieStar?f.bufferTime:!1,f.loops||1,f.serverURL,f.duration||null,f.autoPlay,!0,f.autoLoad,f.usePolicyFile),f.serverURL||(a.connected=!0,f.onconnect&&f.onconnect.apply(a)));f.serverURL||!f.autoLoad&&!f.autoPlay||a.load(f)}!f.serverURL&&f.autoPlay&&a.play();return a};this.destroySound=function(b,d){if(!w(b))return!1;var e=c.sounds[b],a;e.stop();e._iO={};e.unload();for(a=0;a<c.soundIDs.length;a++)if(c.soundIDs[a]===b){c.soundIDs.splice(a,1);break}d||e.destruct(!0);delete c.sounds[b]; +return!0};this.load=function(b,d){return w(b)?c.sounds[b].load(d):!1};this.unload=function(b){return w(b)?c.sounds[b].unload():!1};this.onposition=this.onPosition=function(b,d,e,a){return w(b)?c.sounds[b].onposition(d,e,a):!1};this.clearOnPosition=function(b,d,e){return w(b)?c.sounds[b].clearOnPosition(d,e):!1};this.start=this.play=function(b,d){var e=null,a=d&&!(d instanceof Object);if(!q||!c.ok())return L("soundManager.play(): "+t(q?"notOK":"notReady")),!1;if(w(b,a))a&&(d={url:d});else{if(!a)return!1; +a&&(d={url:d});d&&d.url&&(c._wD('soundManager.play(): Attempting to create "'+b+'"',1),d.id=b,e=c.createSound(d).play())}null===e&&(e=c.sounds[b].play(d));return e};this.setPosition=function(b,d){return w(b)?c.sounds[b].setPosition(d):!1};this.stop=function(b){if(!w(b))return!1;c._wD("soundManager.stop("+b+")",1);return c.sounds[b].stop()};this.stopAll=function(){var b;c._wD("soundManager.stopAll()",1);for(b in c.sounds)c.sounds.hasOwnProperty(b)&&c.sounds[b].stop()};this.pause=function(b){return w(b)? +c.sounds[b].pause():!1};this.pauseAll=function(){var b;for(b=c.soundIDs.length-1;0<=b;b--)c.sounds[c.soundIDs[b]].pause()};this.resume=function(b){return w(b)?c.sounds[b].resume():!1};this.resumeAll=function(){var b;for(b=c.soundIDs.length-1;0<=b;b--)c.sounds[c.soundIDs[b]].resume()};this.togglePause=function(b){return w(b)?c.sounds[b].togglePause():!1};this.setPan=function(b,d){return w(b)?c.sounds[b].setPan(d):!1};this.setVolume=function(b,d){var e,a;if(b===g||isNaN(b)||d!==g)return w(b)?c.sounds[b].setVolume(d): +!1;e=0;for(a=c.soundIDs.length;e<a;e++)c.sounds[c.soundIDs[e]].setVolume(b)};this.mute=function(b){var d=0;b instanceof String&&(b=null);if(b){if(!w(b))return!1;c._wD('soundManager.mute(): Muting "'+b+'"');return c.sounds[b].mute()}c._wD("soundManager.mute(): Muting all sounds");for(d=c.soundIDs.length-1;0<=d;d--)c.sounds[c.soundIDs[d]].mute();return c.muted=!0};this.muteAll=function(){c.mute()};this.unmute=function(b){b instanceof String&&(b=null);if(b){if(!w(b))return!1;c._wD('soundManager.unmute(): Unmuting "'+ +b+'"');return c.sounds[b].unmute()}c._wD("soundManager.unmute(): Unmuting all sounds");for(b=c.soundIDs.length-1;0<=b;b--)c.sounds[c.soundIDs[b]].unmute();c.muted=!1;return!0};this.unmuteAll=function(){c.unmute()};this.toggleMute=function(b){return w(b)?c.sounds[b].toggleMute():!1};this.getMemoryUse=function(){var c=0;l&&8!==n&&(c=parseInt(l._getMemoryUse(),10));return c};this.disable=function(b){var d;b===g&&(b=!1);if(y)return!1;y=!0;p("shutdown",1);for(d=c.soundIDs.length-1;0<=d;d--)cb(c.sounds[c.soundIDs[d]]); +Z(b);x.remove(h,"load",S);return!0};this.canPlayMIME=function(b){var d;c.hasHTML5&&(d=fa({type:b}));!d&&u&&(d=b&&c.ok()?!!(8<n&&b.match(qb)||b.match(c.mimePattern)):null);return d};this.canPlayURL=function(b){var d;c.hasHTML5&&(d=fa({url:b}));!d&&u&&(d=b&&c.ok()?!!b.match(c.filePattern):null);return d};this.canPlayLink=function(b){return b.type!==g&&b.type&&c.canPlayMIME(b.type)?!0:c.canPlayURL(b.href)};this.getSoundById=function(b,d){if(!b)return null;var e=c.sounds[b];e||d||c._wD('soundManager.getSoundById(): Sound "'+ +b+'" not found.',2);return e};this.onready=function(b,d){if("function"===typeof b)q&&c._wD(t("queue","onready")),d||(d=h),Ca("onready",b,d),P();else throw t("needFunction","onready");return!0};this.ontimeout=function(b,d){if("function"===typeof b)q&&c._wD(t("queue","ontimeout")),d||(d=h),Ca("ontimeout",b,d),P({type:"ontimeout"});else throw t("needFunction","ontimeout");return!0};this._writeDebug=function(b,d){var e,a;if(!c.setupOptions.debugMode)return!1;if(Ua&&c.useConsole){if(d&&"object"===typeof d)console.log(b, +d);else if(bb[d]!==g)console[bb[d]](b);else console.log(b);if(c.consoleOnly)return!0}e=F("soundmanager-debug");if(!e)return!1;a=m.createElement("div");0===++tb%2&&(a.className="sm2-alt");d=d===g?0:parseInt(d,10);a.appendChild(m.createTextNode(b));d&&(2<=d&&(a.style.fontWeight="bold"),3===d&&(a.style.color="#ff3333"));e.insertBefore(a,e.firstChild);return!0};-1!==ia.indexOf("sm2-debug=alert")&&(this._writeDebug=function(c){h.alert(c)});this._wD=this._writeDebug;this._debug=function(){var b,d;p("currentObj", +1);b=0;for(d=c.soundIDs.length;b<d;b++)c.sounds[c.soundIDs[b]]._debug()};this.reboot=function(b,d){c.soundIDs.length&&c._wD("Destroying "+c.soundIDs.length+" SMSound object"+(1!==c.soundIDs.length?"s":"")+"...");var e,a,f;for(e=c.soundIDs.length-1;0<=e;e--)c.sounds[c.soundIDs[e]].destruct();if(l)try{O&&(Ia=l.innerHTML),ba=l.parentNode.removeChild(l)}catch(g){p("badRemove",2)}Ia=ba=u=l=null;c.enabled=aa=q=ca=Ka=X=Y=y=C=c.swfLoaded=!1;c.soundIDs=[];c.sounds={};nb=0;Pa=!1;if(b)I=[];else for(e in I)if(I.hasOwnProperty(e))for(a= +0,f=I[e].length;a<f;a++)I[e][a].fired=!1;d||c._wD("soundManager: Rebooting...");c.html5={usingFlash:null};c.flash={};c.html5Only=!1;c.ignoreFlash=!1;h.setTimeout(function(){d||c.beginDelayedInit()},20);return c};this.reset=function(){p("reset");return c.reboot(!0,!0)};this.getMoviePercent=function(){return l&&"PercentLoaded"in l?l.PercentLoaded():null};this.beginDelayedInit=function(){ja=!0;Q();setTimeout(function(){if(Ka)return!1;na();la();return Ka=!0},20);T()};this.destruct=function(){c._wD("soundManager.destruct()"); +c.disable(!0)};W=function(b){var d,e,a=this,f,h,k,G,m,q,r=!1,E=[],v=0,Xa,y,u=null,z;e=d=null;this.sID=this.id=b.id;this.url=b.url;this._iO=this.instanceOptions=this.options=A(b);this.pan=this.options.pan;this.volume=this.options.volume;this.isHTML5=!1;this._a=null;z=this.url?!1:!0;this.id3={};this._debug=function(){c._wD(a.id+": Merged options:",a.options)};this.load=function(b){var d=null,e;b!==g?a._iO=A(b,a.options):(b=a.options,a._iO=b,u&&u!==a.url&&(p("manURL"),a._iO.url=a.url,a.url=null));a._iO.url|| +(a._iO.url=a.url);a._iO.url=ra(a._iO.url);e=a.instanceOptions=a._iO;c._wD(a.id+": load ("+e.url+")");if(!e.url&&!a.url)return c._wD(a.id+": load(): url is unassigned. Exiting.",2),a;a.isHTML5||8!==n||a.url||e.autoPlay||c._wD(a.id+": Flash 8 load() limitation: Wait for onload() before calling play().",1);if(e.url===a.url&&0!==a.readyState&&2!==a.readyState)return p("onURL",1),3===a.readyState&&e.onload&&ua(a,function(){e.onload.apply(a,[!!a.duration])}),a;a.loaded=!1;a.readyState=1;a.playState=0;a.id3= +{};if(sa(e))d=a._setup_html5(e),d._called_load?c._wD(a.id+": Ignoring request to load again"):(a._html5_canplay=!1,a.url!==e.url&&(c._wD(p("manURL")+": "+e.url),a._a.src=e.url,a.setPosition(0)),a._a.autobuffer="auto",a._a.preload="auto",a._a._called_load=!0);else{if(c.html5Only)return c._wD(a.id+": No flash support. Exiting."),a;if(a._iO.url&&a._iO.url.match(/data\:/i))return c._wD(a.id+": data: URIs not supported via Flash. Exiting."),a;try{a.isHTML5=!1,a._iO=pa(oa(e)),a._iO.autoPlay&&(a._iO.position|| +a._iO.from)&&(c._wD(a.id+": Disabling autoPlay because of non-zero offset case"),a._iO.autoPlay=!1),e=a._iO,8===n?l._load(a.id,e.url,e.stream,e.autoPlay,e.usePolicyFile):l._load(a.id,e.url,!!e.stream,!!e.autoPlay,e.loops||1,!!e.autoLoad,e.usePolicyFile)}catch(f){p("smError",2),D("onload",!1),U({type:"SMSOUND_LOAD_JS_EXCEPTION",fatal:!0})}}a.url=e.url;return a};this.unload=function(){0!==a.readyState&&(c._wD(a.id+": unload()"),a.isHTML5?(G(),a._a&&(a._a.pause(),u=ta(a._a))):8===n?l._unload(a.id,"about:blank"): +l._unload(a.id),f());return a};this.destruct=function(b){c._wD(a.id+": Destruct");a.isHTML5?(G(),a._a&&(a._a.pause(),ta(a._a),C||k(),a._a._s=null,a._a=null)):(a._iO.onfailure=null,l._destroySound(a.id));b||c.destroySound(a.id,!0)};this.start=this.play=function(b,d){var e,f,k,G,h,B=!0,B=null;e=a.id+": play(): ";d=d===g?!0:d;b||(b={});a.url&&(a._iO.url=a.url);a._iO=A(a._iO,a.options);a._iO=A(b,a._iO);a._iO.url=ra(a._iO.url);a.instanceOptions=a._iO;if(!a.isHTML5&&a._iO.serverURL&&!a.connected)return a.getAutoPlay()|| +(c._wD(e+" Netstream not connected yet - setting autoPlay"),a.setAutoPlay(!0)),a;sa(a._iO)&&(a._setup_html5(a._iO),m());1!==a.playState||a.paused||((f=a._iO.multiShot)?c._wD(e+"Already playing (multi-shot)",1):(c._wD(e+"Already playing (one-shot)",1),a.isHTML5&&a.setPosition(a._iO.position),B=a));if(null!==B)return B;b.url&&b.url!==a.url&&(a.readyState||a.isHTML5||8!==n||!z?a.load(a._iO):z=!1);a.loaded?c._wD(e.substr(0,e.lastIndexOf(":"))):0===a.readyState?(c._wD(e+"Attempting to load"),a.isHTML5|| +c.html5Only?a.isHTML5?a.load(a._iO):(c._wD(e+"Unsupported type. Exiting."),B=a):(a._iO.autoPlay=!0,a.load(a._iO)),a.instanceOptions=a._iO):2===a.readyState?(c._wD(e+"Could not load - exiting",2),B=a):c._wD(e+"Loading - attempting to play...");if(null!==B)return B;!a.isHTML5&&9===n&&0<a.position&&a.position===a.duration&&(c._wD(e+"Sound at end, resetting to position: 0"),b.position=0);if(a.paused&&0<=a.position&&(!a._iO.serverURL||0<a.position))c._wD(e+"Resuming from paused state",1),a.resume();else{a._iO= +A(b,a._iO);if((!a.isHTML5&&null!==a._iO.position&&0<a._iO.position||null!==a._iO.from&&0<a._iO.from||null!==a._iO.to)&&0===a.instanceCount&&0===a.playState&&!a._iO.serverURL){f=function(){a._iO=A(b,a._iO);a.play(a._iO)};a.isHTML5&&!a._html5_canplay?(c._wD(e+"Beginning load for non-zero offset case"),a.load({_oncanplay:f}),B=!1):a.isHTML5||a.loaded||a.readyState&&2===a.readyState||(c._wD(e+"Preloading for non-zero offset case"),a.load({onload:f}),B=!1);if(null!==B)return B;a._iO=y()}(!a.instanceCount|| +a._iO.multiShotEvents||a.isHTML5&&a._iO.multiShot&&!C||!a.isHTML5&&8<n&&!a.getAutoPlay())&&a.instanceCount++;a._iO.onposition&&0===a.playState&&q(a);a.playState=1;a.paused=!1;a.position=a._iO.position===g||isNaN(a._iO.position)?0:a._iO.position;a.isHTML5||(a._iO=pa(oa(a._iO)));a._iO.onplay&&d&&(a._iO.onplay.apply(a),r=!0);a.setVolume(a._iO.volume,!0);a.setPan(a._iO.pan,!0);a.isHTML5?2>a.instanceCount?(m(),e=a._setup_html5(),a.setPosition(a._iO.position),e.play()):(c._wD(a.id+": Cloning Audio() for instance #"+ +a.instanceCount+"..."),k=new Audio(a._iO.url),G=function(){x.remove(k,"ended",G);a._onfinish(a);ta(k);k=null},h=function(){x.remove(k,"canplay",h);try{k.currentTime=a._iO.position/1E3}catch(c){L(a.id+": multiShot play() failed to apply position of "+a._iO.position/1E3)}k.play()},x.add(k,"ended",G),a._iO.volume!==g&&(k.volume=Math.max(0,Math.min(1,a._iO.volume/100))),a.muted&&(k.muted=!0),a._iO.position?x.add(k,"canplay",h):k.play()):(B=l._start(a.id,a._iO.loops||1,9===n?a.position:a.position/1E3, +a._iO.multiShot||!1),9!==n||B||(c._wD(e+"No sound hardware, or 32-sound ceiling hit",2),a._iO.onplayerror&&a._iO.onplayerror.apply(a)))}return a};this.stop=function(b){var d=a._iO;1===a.playState&&(c._wD(a.id+": stop()"),a._onbufferchange(0),a._resetOnPosition(0),a.paused=!1,a.isHTML5||(a.playState=0),Xa(),d.to&&a.clearOnPosition(d.to),a.isHTML5?a._a&&(b=a.position,a.setPosition(0),a.position=b,a._a.pause(),a.playState=0,a._onTimer(),G()):(l._stop(a.id,b),d.serverURL&&a.unload()),a.instanceCount= +0,a._iO={},d.onstop&&d.onstop.apply(a));return a};this.setAutoPlay=function(b){c._wD(a.id+": Autoplay turned "+(b?"on":"off"));a._iO.autoPlay=b;a.isHTML5||(l._setAutoPlay(a.id,b),b&&!a.instanceCount&&1===a.readyState&&(a.instanceCount++,c._wD(a.id+": Incremented instance count to "+a.instanceCount)))};this.getAutoPlay=function(){return a._iO.autoPlay};this.setPosition=function(b){b===g&&(b=0);var d=a.isHTML5?Math.max(b,0):Math.min(a.duration||a._iO.duration,Math.max(b,0));a.position=d;b=a.position/ +1E3;a._resetOnPosition(a.position);a._iO.position=d;if(!a.isHTML5)b=9===n?a.position:b,a.readyState&&2!==a.readyState&&l._setPosition(a.id,b,a.paused||!a.playState,a._iO.multiShot);else if(a._a){if(a._html5_canplay){if(a._a.currentTime!==b){c._wD(a.id+": setPosition("+b+")");try{a._a.currentTime=b,(0===a.playState||a.paused)&&a._a.pause()}catch(e){c._wD(a.id+": setPosition("+b+") failed: "+e.message,2)}}}else if(b)return c._wD(a.id+": setPosition("+b+"): Cannot seek yet, sound not ready",2),a;a.paused&& +a._onTimer(!0)}return a};this.pause=function(b){if(a.paused||0===a.playState&&1!==a.readyState)return a;c._wD(a.id+": pause()");a.paused=!0;a.isHTML5?(a._setup_html5().pause(),G()):(b||b===g)&&l._pause(a.id,a._iO.multiShot);a._iO.onpause&&a._iO.onpause.apply(a);return a};this.resume=function(){var b=a._iO;if(!a.paused)return a;c._wD(a.id+": resume()");a.paused=!1;a.playState=1;a.isHTML5?(a._setup_html5().play(),m()):(b.isMovieStar&&!b.serverURL&&a.setPosition(a.position),l._pause(a.id,b.multiShot)); +!r&&b.onplay?(b.onplay.apply(a),r=!0):b.onresume&&b.onresume.apply(a);return a};this.togglePause=function(){c._wD(a.id+": togglePause()");if(0===a.playState)return a.play({position:9!==n||a.isHTML5?a.position/1E3:a.position}),a;a.paused?a.resume():a.pause();return a};this.setPan=function(c,b){c===g&&(c=0);b===g&&(b=!1);a.isHTML5||l._setPan(a.id,c);a._iO.pan=c;b||(a.pan=c,a.options.pan=c);return a};this.setVolume=function(b,d){b===g&&(b=100);d===g&&(d=!1);a.isHTML5?a._a&&(c.muted&&!a.muted&&(a.muted= +!0,a._a.muted=!0),a._a.volume=Math.max(0,Math.min(1,b/100))):l._setVolume(a.id,c.muted&&!a.muted||a.muted?0:b);a._iO.volume=b;d||(a.volume=b,a.options.volume=b);return a};this.mute=function(){a.muted=!0;a.isHTML5?a._a&&(a._a.muted=!0):l._setVolume(a.id,0);return a};this.unmute=function(){a.muted=!1;var b=a._iO.volume!==g;a.isHTML5?a._a&&(a._a.muted=!1):l._setVolume(a.id,b?a._iO.volume:a.options.volume);return a};this.toggleMute=function(){return a.muted?a.unmute():a.mute()};this.onposition=this.onPosition= +function(b,c,d){E.push({position:parseInt(b,10),method:c,scope:d!==g?d:a,fired:!1});return a};this.clearOnPosition=function(a,b){var c;a=parseInt(a,10);if(isNaN(a))return!1;for(c=0;c<E.length;c++)a!==E[c].position||b&&b!==E[c].method||(E[c].fired&&v--,E.splice(c,1))};this._processOnPosition=function(){var b,c;b=E.length;if(!b||!a.playState||v>=b)return!1;for(--b;0<=b;b--)c=E[b],!c.fired&&a.position>=c.position&&(c.fired=!0,v++,c.method.apply(c.scope,[c.position]));return!0};this._resetOnPosition= +function(a){var b,c;b=E.length;if(!b)return!1;for(--b;0<=b;b--)c=E[b],c.fired&&a<=c.position&&(c.fired=!1,v--);return!0};y=function(){var b=a._iO,d=b.from,e=b.to,f,g;g=function(){c._wD(a.id+': "To" time of '+e+" reached.");a.clearOnPosition(e,g);a.stop()};f=function(){c._wD(a.id+': Playing "from" '+d);if(null!==e&&!isNaN(e))a.onPosition(e,g)};null===d||isNaN(d)||(b.position=d,b.multiShot=!1,f());return b};q=function(){var b,c=a._iO.onposition;if(c)for(b in c)if(c.hasOwnProperty(b))a.onPosition(parseInt(b, +10),c[b])};Xa=function(){var b,c=a._iO.onposition;if(c)for(b in c)c.hasOwnProperty(b)&&a.clearOnPosition(parseInt(b,10))};m=function(){a.isHTML5&&fb(a)};G=function(){a.isHTML5&&gb(a)};f=function(b){b||(E=[],v=0);r=!1;a._hasTimer=null;a._a=null;a._html5_canplay=!1;a.bytesLoaded=null;a.bytesTotal=null;a.duration=a._iO&&a._iO.duration?a._iO.duration:null;a.durationEstimate=null;a.buffered=[];a.eqData=[];a.eqData.left=[];a.eqData.right=[];a.failures=0;a.isBuffering=!1;a.instanceOptions={};a.instanceCount= +0;a.loaded=!1;a.metadata={};a.readyState=0;a.muted=!1;a.paused=!1;a.peakData={left:0,right:0};a.waveformData={left:[],right:[]};a.playState=0;a.position=null;a.id3={}};f();this._onTimer=function(b){var c,f=!1,g={};if(a._hasTimer||b)return a._a&&(b||(0<a.playState||1===a.readyState)&&!a.paused)&&(c=a._get_html5_duration(),c!==d&&(d=c,a.duration=c,f=!0),a.durationEstimate=a.duration,c=1E3*a._a.currentTime||0,c!==e&&(e=c,f=!0),(f||b)&&a._whileplaying(c,g,g,g,g)),f};this._get_html5_duration=function(){var b= +a._iO;return(b=a._a&&a._a.duration?1E3*a._a.duration:b&&b.duration?b.duration:null)&&!isNaN(b)&&Infinity!==b?b:null};this._apply_loop=function(a,b){!a.loop&&1<b&&c._wD("Note: Native HTML5 looping is infinite.",1);a.loop=1<b?"loop":""};this._setup_html5=function(b){b=A(a._iO,b);var c=C?Ya:a._a,d=decodeURI(b.url),e;C?d===decodeURI(Ma)&&(e=!0):d===decodeURI(u)&&(e=!0);if(c){if(c._s)if(C)c._s&&c._s.playState&&!e&&c._s.stop();else if(!C&&d===decodeURI(u))return a._apply_loop(c,b.loops),c;e||(u&&f(!1), +c.src=b.url,Ma=u=a.url=b.url,c._called_load=!1)}else b.autoLoad||b.autoPlay?(a._a=new Audio(b.url),a._a.load()):a._a=Sa&&10>opera.version()?new Audio(null):new Audio,c=a._a,c._called_load=!1,C&&(Ya=c);a.isHTML5=!0;a._a=c;c._s=a;h();a._apply_loop(c,b.loops);b.autoLoad||b.autoPlay?a.load():(c.autobuffer=!1,c.preload="auto");return c};h=function(){if(a._a._added_events)return!1;var b;a._a._added_events=!0;for(b in J)J.hasOwnProperty(b)&&a._a&&a._a.addEventListener(b,J[b],!1);return!0};k=function(){var b; +c._wD(a.id+": Removing event listeners");a._a._added_events=!1;for(b in J)J.hasOwnProperty(b)&&a._a&&a._a.removeEventListener(b,J[b],!1)};this._onload=function(b){var d=!!b||!a.isHTML5&&8===n&&a.duration;b=a.id+": ";c._wD(b+(d?"onload()":"Failed to load / invalid sound?"+(a.duration?" -":" Zero-length duration reported.")+" ("+a.url+")"),d?1:2);d||a.isHTML5||(!0===c.sandbox.noRemote&&c._wD(b+t("noNet"),1),!0===c.sandbox.noLocal&&c._wD(b+t("noLocal"),1));a.loaded=d;a.readyState=d?3:2;a._onbufferchange(0); +a._iO.onload&&ua(a,function(){a._iO.onload.apply(a,[d])});return!0};this._onbufferchange=function(b){if(0===a.playState||b&&a.isBuffering||!b&&!a.isBuffering)return!1;a.isBuffering=1===b;a._iO.onbufferchange&&(c._wD(a.id+": Buffer state change: "+b),a._iO.onbufferchange.apply(a,[b]));return!0};this._onsuspend=function(){a._iO.onsuspend&&(c._wD(a.id+": Playback suspended"),a._iO.onsuspend.apply(a));return!0};this._onfailure=function(b,d,e){a.failures++;c._wD(a.id+": Failure ("+a.failures+"): "+b); +if(a._iO.onfailure&&1===a.failures)a._iO.onfailure(b,d,e);else c._wD(a.id+": Ignoring failure")};this._onwarning=function(b,c,d){if(a._iO.onwarning)a._iO.onwarning(b,c,d)};this._onfinish=function(){var b=a._iO.onfinish;a._onbufferchange(0);a._resetOnPosition(0);a.instanceCount&&(a.instanceCount--,a.instanceCount||(Xa(),a.playState=0,a.paused=!1,a.instanceCount=0,a.instanceOptions={},a._iO={},G(),a.isHTML5&&(a.position=0)),a.instanceCount&&!a._iO.multiShotEvents||!b||(c._wD(a.id+": onfinish()"),ua(a, +function(){b.apply(a)})))};this._whileloading=function(b,c,d,e){var f=a._iO;a.bytesLoaded=b;a.bytesTotal=c;a.duration=Math.floor(d);a.bufferLength=e;a.durationEstimate=a.isHTML5||f.isMovieStar?a.duration:f.duration?a.duration>f.duration?a.duration:f.duration:parseInt(a.bytesTotal/a.bytesLoaded*a.duration,10);a.isHTML5||(a.buffered=[{start:0,end:a.duration}]);(3!==a.readyState||a.isHTML5)&&f.whileloading&&f.whileloading.apply(a)};this._whileplaying=function(b,c,d,e,f){var k=a._iO;if(isNaN(b)||null=== +b)return!1;a.position=Math.max(0,b);a._processOnPosition();!a.isHTML5&&8<n&&(k.usePeakData&&c!==g&&c&&(a.peakData={left:c.leftPeak,right:c.rightPeak}),k.useWaveformData&&d!==g&&d&&(a.waveformData={left:d.split(","),right:e.split(",")}),k.useEQData&&f!==g&&f&&f.leftEQ&&(b=f.leftEQ.split(","),a.eqData=b,a.eqData.left=b,f.rightEQ!==g&&f.rightEQ&&(a.eqData.right=f.rightEQ.split(","))));1===a.playState&&(a.isHTML5||8!==n||a.position||!a.isBuffering||a._onbufferchange(0),k.whileplaying&&k.whileplaying.apply(a)); +return!0};this._oncaptiondata=function(b){c._wD(a.id+": Caption data received.");a.captiondata=b;a._iO.oncaptiondata&&a._iO.oncaptiondata.apply(a,[b])};this._onmetadata=function(b,d){c._wD(a.id+": Metadata received.");var e={},f,g;f=0;for(g=b.length;f<g;f++)e[b[f]]=d[f];a.metadata=e;a._iO.onmetadata&&a._iO.onmetadata.call(a,a.metadata)};this._onid3=function(b,d){c._wD(a.id+": ID3 data received.");var e=[],f,g;f=0;for(g=b.length;f<g;f++)e[b[f]]=d[f];a.id3=A(a.id3,e);a._iO.onid3&&a._iO.onid3.apply(a)}; +this._onconnect=function(b){b=1===b;c._wD(a.id+": "+(b?"Connected.":"Failed to connect? - "+a.url),b?1:2);if(a.connected=b)a.failures=0,w(a.id)&&(a.getAutoPlay()?a.play(g,a.getAutoPlay()):a._iO.autoLoad&&a.load()),a._iO.onconnect&&a._iO.onconnect.apply(a,[b])};this._ondataerror=function(b){0<a.playState&&(c._wD(a.id+": Data error: "+b),a._iO.ondataerror&&a._iO.ondataerror.apply(a))};this._debug()};ma=function(){return m.body||m.getElementsByTagName("div")[0]};F=function(b){return m.getElementById(b)}; +A=function(b,d){var e=b||{},a,f;a=d===g?c.defaultOptions:d;for(f in a)a.hasOwnProperty(f)&&e[f]===g&&(e[f]="object"!==typeof a[f]||null===a[f]?a[f]:A(e[f],a[f]));return e};ua=function(b,c){b.isHTML5||8!==n?c():h.setTimeout(c,0)};R={onready:1,ontimeout:1,defaultOptions:1,flash9Options:1,movieStarOptions:1};Ba=function(b,d){var e,a=!0,f=d!==g,h=c.setupOptions;if(b===g){a=[];for(e in h)h.hasOwnProperty(e)&&a.push(e);for(e in R)R.hasOwnProperty(e)&&("object"===typeof c[e]?a.push(e+": {...}"):c[e]instanceof +Function?a.push(e+": function() {...}"):a.push(e));c._wD(t("setup",a.join(", ")));return!1}for(e in b)if(b.hasOwnProperty(e))if("object"!==typeof b[e]||null===b[e]||b[e]instanceof Array||b[e]instanceof RegExp)f&&R[d]!==g?c[d][e]=b[e]:h[e]!==g?(c.setupOptions[e]=b[e],c[e]=b[e]):R[e]===g?(L(t(c[e]===g?"setupUndef":"setupError",e),2),a=!1):c[e]instanceof Function?c[e].apply(c,b[e]instanceof Array?b[e]:[b[e]]):c[e]=b[e];else if(R[e]===g)L(t(c[e]===g?"setupUndef":"setupError",e),2),a=!1;else return Ba(b[e], +e);return a};x=function(){function b(a){a=kb.call(a);var b=a.length;e?(a[1]="on"+a[1],3<b&&a.pop()):3===b&&a.push(!1);return a}function c(b,d){var g=b.shift(),h=[a[d]];if(e)g[h](b[0],b[1]);else g[h].apply(g,b)}var e=h.attachEvent,a={add:e?"attachEvent":"addEventListener",remove:e?"detachEvent":"removeEventListener"};return{add:function(){c(b(arguments),"add")},remove:function(){c(b(arguments),"remove")}}}();J={abort:r(function(){c._wD(this._s.id+": abort")}),canplay:r(function(){var b=this._s,d;if(b._html5_canplay)return!0; +b._html5_canplay=!0;c._wD(b.id+": canplay");b._onbufferchange(0);d=b._iO.position===g||isNaN(b._iO.position)?null:b._iO.position/1E3;if(this.currentTime!==d){c._wD(b.id+": canplay: Setting position to "+d);try{this.currentTime=d}catch(e){c._wD(b.id+": canplay: Setting position of "+d+" failed: "+e.message,2)}}b._iO._oncanplay&&b._iO._oncanplay()}),canplaythrough:r(function(){var b=this._s;b.loaded||(b._onbufferchange(0),b._whileloading(b.bytesLoaded,b.bytesTotal,b._get_html5_duration()),b._onload(!0))}), +durationchange:r(function(){var b=this._s,d;d=b._get_html5_duration();isNaN(d)||d===b.duration||(c._wD(this._s.id+": durationchange ("+d+")"+(b.duration?", previously "+b.duration:"")),b.durationEstimate=b.duration=d)}),ended:r(function(){var b=this._s;c._wD(b.id+": ended");b._onfinish()}),error:r(function(){c._wD(this._s.id+": HTML5 error, code "+this.error.code);this._s._onload(!1)}),loadeddata:r(function(){var b=this._s;c._wD(b.id+": loadeddata");b._loaded||va||(b.duration=b._get_html5_duration())}), +loadedmetadata:r(function(){c._wD(this._s.id+": loadedmetadata")}),loadstart:r(function(){c._wD(this._s.id+": loadstart");this._s._onbufferchange(1)}),play:r(function(){this._s._onbufferchange(0)}),playing:r(function(){c._wD(this._s.id+": playing "+String.fromCharCode(9835));this._s._onbufferchange(0)}),progress:r(function(b){var d=this._s,e,a,f;e=0;var g="progress"===b.type,k=b.target.buffered,h=b.loaded||0,m=b.total||1;d.buffered=[];if(k&&k.length){e=0;for(a=k.length;e<a;e++)d.buffered.push({start:1E3* +k.start(e),end:1E3*k.end(e)});e=1E3*(k.end(0)-k.start(0));h=Math.min(1,e/(1E3*b.target.duration));if(g&&1<k.length){f=[];a=k.length;for(e=0;e<a;e++)f.push(1E3*b.target.buffered.start(e)+"-"+1E3*b.target.buffered.end(e));c._wD(this._s.id+": progress, timeRanges: "+f.join(", "))}g&&!isNaN(h)&&c._wD(this._s.id+": progress, "+Math.floor(100*h)+"% loaded")}isNaN(h)||(d._whileloading(h,m,d._get_html5_duration()),h&&m&&h===m&&J.canplaythrough.call(this,b))}),ratechange:r(function(){c._wD(this._s.id+": ratechange")}), +suspend:r(function(b){var d=this._s;c._wD(this._s.id+": suspend");J.progress.call(this,b);d._onsuspend()}),stalled:r(function(){c._wD(this._s.id+": stalled")}),timeupdate:r(function(){this._s._onTimer()}),waiting:r(function(){var b=this._s;c._wD(this._s.id+": waiting");b._onbufferchange(1)})};sa=function(b){return b&&(b.type||b.url||b.serverURL)?b.serverURL||b.type&&ha(b.type)?!1:b.type?fa({type:b.type}):fa({url:b.url})||c.html5Only||b.url.match(/data\:/i):!1};ta=function(b){var d;b&&(d=va?"about:blank": +c.html5.canPlayType("audio/wav")?"data:audio/wave;base64,/UklGRiYAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQIAAAD//w==":"about:blank",b.src=d,b._called_unload!==g&&(b._called_load=!1));C&&(Ma=null);return d};fa=function(b){if(!c.useHTML5Audio||!c.hasHTML5)return!1;var d=b.url||null;b=b.type||null;var e=c.audioFormats,a;if(b&&c.html5[b]!==g)return c.html5[b]&&!ha(b);if(!N){N=[];for(a in e)e.hasOwnProperty(a)&&(N.push(a),e[a].related&&(N=N.concat(e[a].related)));N=new RegExp("\\.("+N.join("|")+ +")(\\?.*)?$","i")}(a=d?d.toLowerCase().match(N):null)&&a.length?a=a[1]:b&&(d=b.indexOf(";"),a=(-1!==d?b.substr(0,d):b).substr(6));a&&c.html5[a]!==g?d=c.html5[a]&&!ha(a):(b="audio/"+a,d=c.html5.canPlayType({type:b}),d=(c.html5[a]=d)&&c.html5[b]&&!ha(b));return d};jb=function(){function b(a){var b,e=b=!1;if(!d||"function"!==typeof d.canPlayType)return b;if(a instanceof Array){k=0;for(b=a.length;k<b;k++)if(c.html5[a[k]]||d.canPlayType(a[k]).match(c.html5Test))e=!0,c.html5[a[k]]=!0,c.flash[a[k]]=!!a[k].match(pb); +b=e}else a=d&&"function"===typeof d.canPlayType?d.canPlayType(a):!1,b=!(!a||!a.match(c.html5Test));return b}if(!c.useHTML5Audio||!c.hasHTML5)return u=c.html5.usingFlash=!0,!1;var d=Audio!==g?Sa&&10>opera.version()?new Audio(null):new Audio:null,e,a,f={},h,k;h=c.audioFormats;for(e in h)if(h.hasOwnProperty(e)&&(a="audio/"+e,f[e]=b(h[e].type),f[a]=f[e],e.match(pb)?(c.flash[e]=!0,c.flash[a]=!0):(c.flash[e]=!1,c.flash[a]=!1),h[e]&&h[e].related))for(k=h[e].related.length-1;0<=k;k--)f["audio/"+h[e].related[k]]= +f[e],c.html5[h[e].related[k]]=f[e],c.flash[h[e].related[k]]=f[e];f.canPlayType=d?b:null;c.html5=A(c.html5,f);c.html5.usingFlash=ib();u=c.html5.usingFlash;return!0};z={notReady:"Unavailable - wait until onready() has fired.",notOK:"Audio support is not available.",domError:"soundManagerexception caught while appending SWF to DOM.",spcWmode:"Removing wmode, preventing known SWF loading issue(s)",swf404:"soundManager: Verify that %s is a valid path.",tryDebug:"Try soundManager.debugFlash = true for more security details (output goes to SWF.)", +checkSWF:"See SWF output for more debug info.",localFail:"soundManager: Non-HTTP page ("+m.location.protocol+" URL?) Review Flash player security settings for this special case:\nhttp://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html\nMay need to add/allow path, eg. c:/sm2/ or /users/me/sm2/",waitFocus:"soundManager: Special case: Waiting for SWF to load with window focus...",waitForever:"soundManager: Waiting indefinitely for Flash (will recover if unblocked)...", +waitSWF:"soundManager: Waiting for 100% SWF load...",needFunction:"soundManager: Function object expected for %s",badID:'Sound ID "%s" should be a string, starting with a non-numeric character',currentObj:"soundManager: _debug(): Current sound objects",waitOnload:"soundManager: Waiting for window.onload()",docLoaded:"soundManager: Document already loaded",onload:"soundManager: initComplete(): calling soundManager.onload()",onloadOK:"soundManager.onload() complete",didInit:"soundManager: init(): Already called?", +secNote:"Flash security note: Network/internet URLs will not load due to security restrictions. Access can be configured via Flash Player Global Security Settings Page: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html",badRemove:"soundManager: Failed to remove Flash node.",shutdown:"soundManager.disable(): Shutting down",queue:"soundManager: Queueing %s handler",smError:"SMSound.load(): Exception: JS-Flash communication failed, or JS error.",fbTimeout:"No flash response, applying .swf_timedout CSS...", +fbLoaded:"Flash loaded",fbHandler:"soundManager: flashBlockHandler()",manURL:"SMSound.load(): Using manually-assigned URL",onURL:"soundManager.load(): current URL already assigned.",badFV:'soundManager.flashVersion must be 8 or 9. "%s" is invalid. Reverting to %s.',as2loop:"Note: Setting stream:false so looping can work (flash 8 limitation)",noNSLoop:"Note: Looping not implemented for MovieStar formats",needfl9:"Note: Switching to flash 9, required for MP4 formats.",mfTimeout:"Setting flashLoadTimeout = 0 (infinite) for off-screen, mobile flash case", +needFlash:"soundManager: Fatal error: Flash is needed to play some required formats, but is not available.",gotFocus:"soundManager: Got window focus.",policy:"Enabling usePolicyFile for data access",setup:"soundManager.setup(): allowed parameters: %s",setupError:'soundManager.setup(): "%s" cannot be assigned with this method.',setupUndef:'soundManager.setup(): Could not find option "%s"',setupLate:"soundManager.setup(): url, flashVersion and html5Test property changes will not take effect until reboot().", +noURL:"soundManager: Flash URL required. Call soundManager.setup({url:...}) to get started.",sm2Loaded:"SoundManager 2: Ready. "+String.fromCharCode(10003),reset:"soundManager.reset(): Removing event callbacks",mobileUA:"Mobile UA detected, preferring HTML5 by default.",globalHTML5:"Using singleton HTML5 Audio() pattern for this device.",ignoreMobile:"Ignoring mobile restrictions for this device."};t=function(){var b,c,e,a;b=kb.call(arguments);c=b.shift();if((a=z&&z[c]?z[c]:"")&&b&&b.length)for(c= +0,e=b.length;c<e;c++)a=a.replace("%s",b[c]);return a};oa=function(b){8===n&&1<b.loops&&b.stream&&(p("as2loop"),b.stream=!1);return b};pa=function(b,d){b&&!b.usePolicyFile&&(b.onid3||b.usePeakData||b.useWaveformData||b.useEQData)&&(c._wD((d||"")+t("policy")),b.usePolicyFile=!0);return b};L=function(b){Ua&&console.warn!==g?console.warn(b):c._wD(b)};ya=function(){return!1};cb=function(b){for(var c in b)b.hasOwnProperty(c)&&"function"===typeof b[c]&&(b[c]=ya)};Ha=function(b){b===g&&(b=!1);(y||b)&&c.disable(b)}; +db=function(b){var d=null;if(b)if(b.match(/\.swf(\?.*)?$/i)){if(d=b.substr(b.toLowerCase().lastIndexOf(".swf?")+4))return b}else b.lastIndexOf("/")!==b.length-1&&(b+="/");b=(b&&-1!==b.lastIndexOf("/")?b.substr(0,b.lastIndexOf("/")+1):"./")+c.movieURL;c.noSWFCache&&(b+="?ts="+(new Date).getTime());return b};Ea=function(){n=parseInt(c.flashVersion,10);8!==n&&9!==n&&(c._wD(t("badFV",n,8)),c.flashVersion=n=8);var b=c.debugMode||c.debugFlash?"_debug.swf":".swf";c.useHTML5Audio&&!c.html5Only&&c.audioFormats.mp4.required&& +9>n&&(c._wD(t("needfl9")),c.flashVersion=n=9);c.version=c.versionNumber+(c.html5Only?" (HTML5-only mode)":9===n?" (AS3/Flash 9)":" (AS2/Flash 8)");8<n?(c.defaultOptions=A(c.defaultOptions,c.flash9Options),c.features.buffering=!0,c.defaultOptions=A(c.defaultOptions,c.movieStarOptions),c.filePatterns.flash9=new RegExp("\\.(mp3|"+rb.join("|")+")(\\?.*)?$","i"),c.features.movieStar=!0):c.features.movieStar=!1;c.filePattern=c.filePatterns[8!==n?"flash9":"flash8"];c.movieURL=(8===n?"soundmanager2.swf": +"soundmanager2_flash9.swf").replace(".swf",b);c.features.peakData=c.features.waveformData=c.features.eqData=8<n};ab=function(b,c){if(!l)return!1;l._setPolling(b,c)};Ga=function(){c.debugURLParam.test(ia)&&(c.setupOptions.debugMode=c.debugMode=!0);if(F(c.debugID))return!1;var b,d,e,a;if(!(!c.debugMode||F(c.debugID)||Ua&&c.useConsole&&c.consoleOnly)){b=m.createElement("div");b.id=c.debugID+"-toggle";d={position:"fixed",bottom:"0px",right:"0px",width:"1.2em",height:"1.2em",lineHeight:"1.2em",margin:"2px", +textAlign:"center",border:"1px solid #999",cursor:"pointer",background:"#fff",color:"#333",zIndex:10001};b.appendChild(m.createTextNode("-"));b.onclick=eb;b.title="Toggle SM2 debug console";v.match(/msie 6/i)&&(b.style.position="absolute",b.style.cursor="hand");for(a in d)d.hasOwnProperty(a)&&(b.style[a]=d[a]);d=m.createElement("div");d.id=c.debugID;d.style.display=c.debugMode?"block":"none";if(c.debugMode&&!F(b.id)){try{e=ma(),e.appendChild(b)}catch(f){throw Error(t("domError")+" \n"+f.toString()); +}e.appendChild(d)}}};w=this.getSoundById;p=function(b,d){return b?c._wD(t(b),d):""};eb=function(){var b=F(c.debugID),d=F(c.debugID+"-toggle");if(!b)return!1;Aa?(d.innerHTML="+",b.style.display="none"):(d.innerHTML="-",b.style.display="block");Aa=!Aa};D=function(b,c,e){if(h.sm2Debugger!==g)try{sm2Debugger.handleEvent(b,c,e)}catch(a){return!1}return!0};V=function(){var b=[];c.debugMode&&b.push("sm2_debug");c.debugFlash&&b.push("flash_debug");c.useHighPerformance&&b.push("high_performance");return b.join(" ")}; +Ja=function(){var b=t("fbHandler"),d=c.getMoviePercent(),e={type:"FLASHBLOCK"};if(c.html5Only)return!1;c.ok()?(c.didFlashBlock&&c._wD(b+": Unblocked"),c.oMC&&(c.oMC.className=[V(),"movieContainer","swf_loaded"+(c.didFlashBlock?" swf_unblocked":"")].join(" "))):(u&&(c.oMC.className=V()+" movieContainer "+(null===d?"swf_timedout":"swf_error"),c._wD(b+": "+t("fbTimeout")+(d?" ("+t("fbLoaded")+")":""))),c.didFlashBlock=!0,P({type:"ontimeout",ignoreInit:!0,error:e}),U(e))};Ca=function(b,c,e){I[b]===g&& +(I[b]=[]);I[b].push({method:c,scope:e||null,fired:!1})};P=function(b){b||(b={type:c.ok()?"onready":"ontimeout"});if(!q&&b&&!b.ignoreInit||"ontimeout"===b.type&&(c.ok()||y&&!b.ignoreInit))return!1;var d={success:b&&b.ignoreInit?c.ok():!y},e=b&&b.type?I[b.type]||[]:[],a=[],f,d=[d],g=u&&!c.ok();b.error&&(d[0].error=b.error);b=0;for(f=e.length;b<f;b++)!0!==e[b].fired&&a.push(e[b]);if(a.length)for(b=0,f=a.length;b<f;b++)a[b].scope?a[b].method.apply(a[b].scope,d):a[b].method.apply(this,d),g||(a[b].fired= +!0);return!0};S=function(){h.setTimeout(function(){c.useFlashBlock&&Ja();P();"function"===typeof c.onload&&(p("onload",1),c.onload.apply(h),p("onloadOK",1));c.waitForWindowLoad&&x.add(h,"load",S)},1)};Na=function(){if(H!==g)return H;var b=!1,c=navigator,e=c.plugins,a,f=h.ActiveXObject;if(e&&e.length)(c=c.mimeTypes)&&c["application/x-shockwave-flash"]&&c["application/x-shockwave-flash"].enabledPlugin&&c["application/x-shockwave-flash"].enabledPlugin.description&&(b=!0);else if(f!==g&&!v.match(/MSAppHost/i)){try{a= +new f("ShockwaveFlash.ShockwaveFlash")}catch(m){a=null}b=!!a}return H=b};ib=function(){var b,d,e=c.audioFormats;Qa&&v.match(/os (1|2|3_0|3_1)\s/i)?(c.hasHTML5=!1,c.html5Only=!0,c.oMC&&(c.oMC.style.display="none")):c.useHTML5Audio&&(c.html5&&c.html5.canPlayType||(c._wD("SoundManager: No HTML5 Audio() support detected."),c.hasHTML5=!1),Ta&&c._wD("soundManager: Note: Buggy HTML5 Audio in Safari on this OS X release, see https://bugs.webkit.org/show_bug.cgi?id=32159 - "+(H?"will use flash fallback for MP3/MP4, if available": +" would use flash fallback for MP3/MP4, but none detected."),1));if(c.useHTML5Audio&&c.hasHTML5)for(d in ea=!0,e)e.hasOwnProperty(d)&&e[d].required&&(c.html5.canPlayType(e[d].type)?c.preferFlash&&(c.flash[d]||c.flash[e[d].type])&&(b=!0):(ea=!1,b=!0));c.ignoreFlash&&(b=!1,ea=!0);c.html5Only=c.hasHTML5&&c.useHTML5Audio&&!b;return!c.html5Only};ra=function(b){var d,e,a=0;if(b instanceof Array){d=0;for(e=b.length;d<e;d++)if(b[d]instanceof Object){if(c.canPlayMIME(b[d].type)){a=d;break}}else if(c.canPlayURL(b[d])){a= +d;break}b[a].url&&(b[a]=b[a].url);b=b[a]}return b};fb=function(b){b._hasTimer||(b._hasTimer=!0,!wa&&c.html5PollingInterval&&(null===da&&0===qa&&(da=setInterval(hb,c.html5PollingInterval)),qa++))};gb=function(b){b._hasTimer&&(b._hasTimer=!1,!wa&&c.html5PollingInterval&&qa--)};hb=function(){var b;if(null!==da&&!qa)return clearInterval(da),da=null,!1;for(b=c.soundIDs.length-1;0<=b;b--)c.sounds[c.soundIDs[b]].isHTML5&&c.sounds[c.soundIDs[b]]._hasTimer&&c.sounds[c.soundIDs[b]]._onTimer()};U=function(b){b= +b!==g?b:{};"function"===typeof c.onerror&&c.onerror.apply(h,[{type:b.type!==g?b.type:null}]);b.fatal!==g&&b.fatal&&c.disable()};lb=function(){if(!Ta||!Na())return!1;var b=c.audioFormats,d,e;for(e in b)if(b.hasOwnProperty(e)&&("mp3"===e||"mp4"===e)&&(c._wD("soundManager: Using flash fallback for "+e+" format"),c.html5[e]=!1,b[e]&&b[e].related))for(d=b[e].related.length-1;0<=d;d--)c.html5[b[e].related[d]]=!1};this._setSandboxType=function(b){var d=c.sandbox;d.type=b;d.description=d.types[d.types[b]!== +g?b:"unknown"];"localWithFile"===d.type?(d.noRemote=!0,d.noLocal=!1,p("secNote",2)):"localWithNetwork"===d.type?(d.noRemote=!1,d.noLocal=!0):"localTrusted"===d.type&&(d.noRemote=!1,d.noLocal=!1)};this._externalInterfaceOK=function(b){if(c.swfLoaded)return!1;var d;D("swf",!0);D("flashtojs",!0);c.swfLoaded=!0;xa=!1;Ta&&lb();if(!b||b.replace(/\+dev/i,"")!==c.versionNumber.replace(/\+dev/i,""))return d='soundManager: Fatal: JavaScript file build "'+c.versionNumber+'" does not match Flash SWF build "'+ +b+'" at '+c.url+". Ensure both are up-to-date.",setTimeout(function(){throw Error(d);},0),!1;setTimeout(za,O?100:1)};na=function(b,d){function e(){var a=[],b,d=[];b="SoundManager "+c.version+(!c.html5Only&&c.useHTML5Audio?c.hasHTML5?" + HTML5 audio":", no HTML5 audio support":"");c.html5Only?c.html5PollingInterval&&a.push("html5PollingInterval ("+c.html5PollingInterval+"ms)"):(c.preferFlash&&a.push("preferFlash"),c.useHighPerformance&&a.push("useHighPerformance"),c.flashPollingInterval&&a.push("flashPollingInterval ("+ +c.flashPollingInterval+"ms)"),c.html5PollingInterval&&a.push("html5PollingInterval ("+c.html5PollingInterval+"ms)"),c.wmode&&a.push("wmode ("+c.wmode+")"),c.debugFlash&&a.push("debugFlash"),c.useFlashBlock&&a.push("flashBlock"));a.length&&(d=d.concat([a.join(" + ")]));c._wD(b+(d.length?" + "+d.join(", "):""),1);mb()}function a(a,b){return'<param name="'+a+'" value="'+b+'" />'}if(X&&Y)return!1;if(c.html5Only)return Ea(),e(),c.oMC=F(c.movieID),za(),Y=X=!0,!1;var f=d||c.url,h=c.altURL||f,k=ma(),l=V(), +n=null,n=m.getElementsByTagName("html")[0],p,r,q,n=n&&n.dir&&n.dir.match(/rtl/i);b=b===g?c.id:b;Ea();c.url=db(ga?f:h);d=c.url;c.wmode=!c.wmode&&c.useHighPerformance?"transparent":c.wmode;null!==c.wmode&&(v.match(/msie 8/i)||!O&&!c.useHighPerformance)&&navigator.platform.match(/win32|win64/i)&&(M.push(z.spcWmode),c.wmode=null);k={name:b,id:b,src:d,quality:"high",allowScriptAccess:c.allowScriptAccess,bgcolor:c.bgColor,pluginspage:vb+"www.macromedia.com/go/getflashplayer",title:"JS/Flash audio component (SoundManager 2)", +type:"application/x-shockwave-flash",wmode:c.wmode,hasPriority:"true"};c.debugFlash&&(k.FlashVars="debug=1");c.wmode||delete k.wmode;if(O)f=m.createElement("div"),r=['<object id="'+b+'" data="'+d+'" type="'+k.type+'" title="'+k.title+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">',a("movie",d),a("AllowScriptAccess",c.allowScriptAccess),a("quality",k.quality),c.wmode?a("wmode",c.wmode):"",a("bgcolor", +c.bgColor),a("hasPriority","true"),c.debugFlash?a("FlashVars",k.FlashVars):"","</object>"].join("");else for(p in f=m.createElement("embed"),k)k.hasOwnProperty(p)&&f.setAttribute(p,k[p]);Ga();l=V();if(k=ma())if(c.oMC=F(c.movieID)||m.createElement("div"),c.oMC.id)q=c.oMC.className,c.oMC.className=(q?q+" ":"movieContainer")+(l?" "+l:""),c.oMC.appendChild(f),O&&(p=c.oMC.appendChild(m.createElement("div")),p.className="sm2-object-box",p.innerHTML=r),Y=!0;else{c.oMC.id=c.movieID;c.oMC.className="movieContainer "+ +l;p=l=null;c.useFlashBlock||(c.useHighPerformance?l={position:"fixed",width:"8px",height:"8px",bottom:"0px",left:"0px",overflow:"hidden"}:(l={position:"absolute",width:"6px",height:"6px",top:"-9999px",left:"-9999px"},n&&(l.left=Math.abs(parseInt(l.left,10))+"px")));ub&&(c.oMC.style.zIndex=1E4);if(!c.debugFlash)for(q in l)l.hasOwnProperty(q)&&(c.oMC.style[q]=l[q]);try{O||c.oMC.appendChild(f),k.appendChild(c.oMC),O&&(p=c.oMC.appendChild(m.createElement("div")),p.className="sm2-object-box",p.innerHTML= +r),Y=!0}catch(u){throw Error(t("domError")+" \n"+u.toString());}}X=!0;e();return!0};la=function(){if(c.html5Only)return na(),!1;if(l)return!1;if(!c.url)return p("noURL"),!1;l=c.getMovie(c.id);l||(ba?(O?c.oMC.innerHTML=Ia:c.oMC.appendChild(ba),ba=null,X=!0):na(c.id,c.url),l=c.getMovie(c.id));"function"===typeof c.oninitmovie&&setTimeout(c.oninitmovie,1);Oa();return!0};T=function(){setTimeout($a,1E3)};Da=function(){h.setTimeout(function(){L("soundManager: useFlashBlock is false, 100% HTML5 mode is possible. Rebooting with preferFlash: false..."); +c.setup({preferFlash:!1}).reboot();c.didFlashBlock=!0;c.beginDelayedInit()},1)};$a=function(){var b,d=!1;if(!c.url||ca)return!1;ca=!0;x.remove(h,"load",T);if(H&&xa&&!Va)return p("waitFocus"),!1;q||(b=c.getMoviePercent(),0<b&&100>b&&(d=!0));setTimeout(function(){b=c.getMoviePercent();if(d)return ca=!1,c._wD(t("waitSWF")),h.setTimeout(T,1),!1;q||(c._wD("soundManager: No Flash response within expected time. Likely causes: "+(0===b?"SWF load failed, ":"")+"Flash blocked or JS-Flash security error."+(c.debugFlash? +" "+t("checkSWF"):""),2),!ga&&b&&(p("localFail",2),c.debugFlash||p("tryDebug",2)),0===b&&c._wD(t("swf404",c.url),1),D("flashtojs",!1,": Timed out"+(ga?" (Check flash security or flash blockers)":" (No plugin/missing SWF?)")));!q&&ob&&(null===b?c.useFlashBlock||0===c.flashLoadTimeout?(c.useFlashBlock&&Ja(),p("waitForever")):!c.useFlashBlock&&ea?Da():(p("waitForever"),P({type:"ontimeout",ignoreInit:!0,error:{type:"INIT_FLASHBLOCK"}})):0===c.flashLoadTimeout?p("waitForever"):!c.useFlashBlock&&ea?Da(): +Ha(!0))},c.flashLoadTimeout)};ka=function(){if(Va||!xa)return x.remove(h,"focus",ka),!0;Va=ob=!0;p("gotFocus");ca=!1;T();x.remove(h,"focus",ka);return!0};Oa=function(){M.length&&(c._wD("SoundManager 2: "+M.join(" "),1),M=[])};mb=function(){Oa();var b,d=[];if(c.useHTML5Audio&&c.hasHTML5){for(b in c.audioFormats)c.audioFormats.hasOwnProperty(b)&&d.push(b+" = "+c.html5[b]+(!c.html5[b]&&u&&c.flash[b]?" (using flash)":c.preferFlash&&c.flash[b]&&u?" (preferring flash)":c.html5[b]?"":" ("+(c.audioFormats[b].required? +"required, ":"")+"and no flash support)"));c._wD("SoundManager 2 HTML5 support: "+d.join(", "),1)}};Z=function(b){if(q)return!1;if(c.html5Only)return p("sm2Loaded",1),q=!0,S(),D("onload",!0),!0;var d=!0,e;c.useFlashBlock&&c.flashLoadTimeout&&!c.getMoviePercent()||(q=!0);e={type:!H&&u?"NO_FLASH":"INIT_TIMEOUT"};c._wD("SoundManager 2 "+(y?"failed to load":"loaded")+" ("+(y?"Flash security/load error":"OK")+") "+String.fromCharCode(y?10006:10003),y?2:1);y||b?(c.useFlashBlock&&c.oMC&&(c.oMC.className= +V()+" "+(null===c.getMoviePercent()?"swf_timedout":"swf_error")),P({type:"ontimeout",error:e,ignoreInit:!0}),D("onload",!1),U(e),d=!1):D("onload",!0);y||(c.waitForWindowLoad&&!ja?(p("waitOnload"),x.add(h,"load",S)):(c.waitForWindowLoad&&ja&&p("docLoaded"),S()));return d};Za=function(){var b,d=c.setupOptions;for(b in d)d.hasOwnProperty(b)&&(c[b]===g?c[b]=d[b]:c[b]!==d[b]&&(c.setupOptions[b]=c[b]))};za=function(){if(q)return p("didInit"),!1;if(c.html5Only)return q||(x.remove(h,"load",c.beginDelayedInit), +c.enabled=!0,Z()),!0;la();try{l._externalInterfaceTest(!1),ab(!0,c.flashPollingInterval||(c.useHighPerformance?10:50)),c.debugMode||l._disableDebug(),c.enabled=!0,D("jstoflash",!0),c.html5Only||x.add(h,"unload",ya)}catch(b){return c._wD("js/flash exception: "+b.toString()),D("jstoflash",!1),U({type:"JS_TO_FLASH_EXCEPTION",fatal:!0}),Ha(!0),Z(),!1}Z();x.remove(h,"load",c.beginDelayedInit);return!0};Q=function(){if(aa)return!1;aa=!0;Za();Ga();!H&&c.hasHTML5&&(c._wD("SoundManager 2: No Flash detected"+ +(c.useHTML5Audio?". Trying HTML5-only mode.":", enabling HTML5."),1),c.setup({useHTML5Audio:!0,preferFlash:!1}));jb();!H&&u&&(M.push(z.needFlash),c.setup({flashLoadTimeout:1}));m.removeEventListener&&m.removeEventListener("DOMContentLoaded",Q,!1);la();return!0};La=function(){"complete"===m.readyState&&(Q(),m.detachEvent("onreadystatechange",La));return!0};Fa=function(){ja=!0;Q();x.remove(h,"load",Fa)};Na();x.add(h,"focus",ka);x.add(h,"load",T);x.add(h,"load",Fa);m.addEventListener?m.addEventListener("DOMContentLoaded", +Q,!1):m.attachEvent?m.attachEvent("onreadystatechange",La):(D("onload",!1),U({type:"NO_DOM2_EVENTS",fatal:!0}))}if(!h||!h.document)throw Error("SoundManager requires a browser with window and document objects.");var W=null;h.SM2_DEFER!==g&&SM2_DEFER||(W=new K);"object"===typeof module&&module&&"object"===typeof module.exports?(module.exports.SoundManager=K,module.exports.soundManager=W):"function"===typeof define&&define.amd&&define(function(){return{constructor:K,getInstance:function(g){!h.soundManager&& +g instanceof Function&&(g=g(K),g instanceof K&&(h.soundManager=g));return h.soundManager}}});h.SoundManager=K;h.soundManager=W})(window); \ No newline at end of file diff --git a/media/soundmanager/script/soundmanager2-nodebug-jsmin.js b/media/soundmanager/script/soundmanager2-nodebug-jsmin.js new file mode 100644 index 00000000..f7004790 --- /dev/null +++ b/media/soundmanager/script/soundmanager2-nodebug-jsmin.js @@ -0,0 +1,83 @@ +/** @license + * + * SoundManager 2: JavaScript Sound for the Web + * ---------------------------------------------- + * http://schillmania.com/projects/soundmanager2/ + * + * Copyright (c) 2007, Scott Schiller. All rights reserved. + * Code provided under the BSD License: + * http://schillmania.com/projects/soundmanager2/license.txt + * + * V2.97a.20150601 + */ +(function(h,g){function w(gb,w){function Z(b){return c.preferFlash&&A&&!c.ignoreFlash&&c.flash[b]!==g&&c.flash[b]}function r(b){return function(c){var d=this._s;return d&&d._a?b.call(this,c):null}}this.setupOptions={url:gb||null,flashVersion:8,debugMode:!0,debugFlash:!1,useConsole:!0,consoleOnly:!0,waitForWindowLoad:!1,bgColor:"#ffffff",useHighPerformance:!1,flashPollingInterval:null,html5PollingInterval:null,flashLoadTimeout:1E3,wmode:null,allowScriptAccess:"always",useFlashBlock:!1,useHTML5Audio:!0, +forceUseGlobalHTML5Audio:!1,ignoreMobileRestrictions:!1,html5Test:/^(probably|maybe)$/i,preferFlash:!1,noSWFCache:!1,idPrefix:"sound"};this.defaultOptions={autoLoad:!1,autoPlay:!1,from:null,loops:1,onid3:null,onload:null,whileloading:null,onplay:null,onpause:null,onresume:null,whileplaying:null,onposition:null,onstop:null,onfailure:null,onfinish:null,multiShot:!0,multiShotEvents:!1,position:null,pan:0,stream:!0,to:null,type:null,usePolicyFile:!1,volume:100};this.flash9Options={isMovieStar:null,usePeakData:!1, +useWaveformData:!1,useEQData:!1,onbufferchange:null,ondataerror:null};this.movieStarOptions={bufferTime:3,serverURL:null,onconnect:null,duration:null};this.audioFormats={mp3:{type:['audio/mpeg; codecs="mp3"',"audio/mpeg","audio/mp3","audio/MPA","audio/mpa-robust"],required:!0},mp4:{related:["aac","m4a","m4b"],type:['audio/mp4; codecs="mp4a.40.2"',"audio/aac","audio/x-m4a","audio/MP4A-LATM","audio/mpeg4-generic"],required:!1},ogg:{type:["audio/ogg; codecs=vorbis"],required:!1},opus:{type:["audio/ogg; codecs=opus", +"audio/opus"],required:!1},wav:{type:['audio/wav; codecs="1"',"audio/wav","audio/wave","audio/x-wav"],required:!1}};this.movieID="sm2-container";this.id=w||"sm2movie";this.debugID="soundmanager-debug";this.debugURLParam=/([#?&])debug=1/i;this.versionNumber="V2.97a.20150601";this.altURL=this.movieURL=this.version=null;this.enabled=this.swfLoaded=!1;this.oMC=null;this.sounds={};this.soundIDs=[];this.didFlashBlock=this.muted=!1;this.filePattern=null;this.filePatterns={flash8:/\.mp3(\?.*)?$/i,flash9:/\.mp3(\?.*)?$/i}; +this.features={buffering:!1,peakData:!1,waveformData:!1,eqData:!1,movieStar:!1};this.sandbox={};this.html5={usingFlash:null};this.flash={};this.ignoreFlash=this.html5Only=!1;var N,c=this,Oa=null,k=null,aa,u=navigator.userAgent,Pa=h.location.href.toString(),p=document,pa,Qa,qa,m,y=[],O=!1,P=!1,l=!1,B=!1,ra=!1,Q,x,sa,ba,ta,F,H,I,Ra,ua,va,ca,J,da,G,wa,R,xa,ea,K,Sa,ya,Ta,za,Ua,S=null,Aa=null,T,Ba,L,fa,ga,q,U=!1,Ca=!1,Va,Wa,Xa,ha=0,V=null,ia,W=[],X,v=null,Ya,ja,Y,D,ka,Da,Za,t,hb=Array.prototype.slice, +z=!1,Ea,A,Fa,$a,C,la,ab=0,Ga,Ha=u.match(/(ipad|iphone|ipod)/i),Ia=u.match(/android/i),E=u.match(/msie/i),ib=u.match(/webkit/i),ma=u.match(/safari/i)&&!u.match(/chrome/i),Ja=u.match(/opera/i),na=u.match(/(mobile|pre\/|xoom)/i)||Ha||Ia,bb=!Pa.match(/usehtml5audio/i)&&!Pa.match(/sm2\-ignorebadua/i)&&ma&&!u.match(/silk/i)&&u.match(/OS X 10_6_([3-7])/i),Ka=p.hasFocus!==g?p.hasFocus():null,oa=ma&&(p.hasFocus===g||!p.hasFocus()),cb=!oa,db=/(mp3|mp4|mpa|m4a|m4b)/i,La=p.location?p.location.protocol.match(/http/i): +null,jb=La?"":"http://",eb=/^\s*audio\/(?:x-)?(?:mpeg4|aac|flv|mov|mp4||m4v|m4a|m4b|mp4v|3gp|3g2)\s*(?:$|;)/i,fb="mpeg4 aac flv mov mp4 m4v f4v m4a m4b mp4v 3gp 3g2".split(" "),kb=new RegExp("\\.("+fb.join("|")+")(\\?.*)?$","i");this.mimePattern=/^\s*audio\/(?:x-)?(?:mp(?:eg|3))\s*(?:$|;)/i;this.useAltURL=!La;var Ma;try{Ma=Audio!==g&&(Ja&&opera!==g&&10>opera.version()?new Audio(null):new Audio).canPlayType!==g}catch(lb){Ma=!1}this.hasHTML5=Ma;this.setup=function(b){var e=!c.url;b!==g&&l&&v&&c.ok(); +sa(b);if(!z)if(na){if(!c.setupOptions.ignoreMobileRestrictions||c.setupOptions.forceUseGlobalHTML5Audio)W.push(J.globalHTML5),z=!0}else c.setupOptions.forceUseGlobalHTML5Audio&&(W.push(J.globalHTML5),z=!0);if(!Ga&&na)if(c.setupOptions.ignoreMobileRestrictions)W.push(J.ignoreMobile);else if(c.setupOptions.useHTML5Audio=!0,c.setupOptions.preferFlash=!1,Ha)c.ignoreFlash=!0;else if(Ia&&!u.match(/android\s2\.3/i)||!Ia)z=!0;b&&(e&&R&&b.url!==g&&c.beginDelayedInit(),R||b.url===g||"complete"!==p.readyState|| +setTimeout(G,1));Ga=!0;return c};this.supported=this.ok=function(){return v?l&&!B:c.useHTML5Audio&&c.hasHTML5};this.getMovie=function(b){return aa(b)||p[b]||h[b]};this.createSound=function(b,e){function d(){a=fa(a);c.sounds[a.id]=new N(a);c.soundIDs.push(a.id);return c.sounds[a.id]}var a,f=null;if(!l||!c.ok())return!1;e!==g&&(b={id:b,url:e});a=x(b);a.url=ia(a.url);a.id===g&&(a.id=c.setupOptions.idPrefix+ab++);if(q(a.id,!0))return c.sounds[a.id];if(ja(a))f=d(),f._setup_html5(a);else{if(c.html5Only|| +c.html5.usingFlash&&a.url&&a.url.match(/data\:/i))return d();8<m&&null===a.isMovieStar&&(a.isMovieStar=!!(a.serverURL||a.type&&a.type.match(eb)||a.url&&a.url.match(kb)));a=ga(a,void 0);f=d();8===m?k._createSound(a.id,a.loops||1,a.usePolicyFile):(k._createSound(a.id,a.url,a.usePeakData,a.useWaveformData,a.useEQData,a.isMovieStar,a.isMovieStar?a.bufferTime:!1,a.loops||1,a.serverURL,a.duration||null,a.autoPlay,!0,a.autoLoad,a.usePolicyFile),a.serverURL||(f.connected=!0,a.onconnect&&a.onconnect.apply(f))); +a.serverURL||!a.autoLoad&&!a.autoPlay||f.load(a)}!a.serverURL&&a.autoPlay&&f.play();return f};this.destroySound=function(b,e){if(!q(b))return!1;var d=c.sounds[b],a;d.stop();d._iO={};d.unload();for(a=0;a<c.soundIDs.length;a++)if(c.soundIDs[a]===b){c.soundIDs.splice(a,1);break}e||d.destruct(!0);delete c.sounds[b];return!0};this.load=function(b,e){return q(b)?c.sounds[b].load(e):!1};this.unload=function(b){return q(b)?c.sounds[b].unload():!1};this.onposition=this.onPosition=function(b,e,d,a){return q(b)? +c.sounds[b].onposition(e,d,a):!1};this.clearOnPosition=function(b,e,d){return q(b)?c.sounds[b].clearOnPosition(e,d):!1};this.start=this.play=function(b,e){var d=null,a=e&&!(e instanceof Object);if(!l||!c.ok())return!1;if(q(b,a))a&&(e={url:e});else{if(!a)return!1;a&&(e={url:e});e&&e.url&&(e.id=b,d=c.createSound(e).play())}null===d&&(d=c.sounds[b].play(e));return d};this.setPosition=function(b,e){return q(b)?c.sounds[b].setPosition(e):!1};this.stop=function(b){return q(b)?c.sounds[b].stop():!1};this.stopAll= +function(){for(var b in c.sounds)c.sounds.hasOwnProperty(b)&&c.sounds[b].stop()};this.pause=function(b){return q(b)?c.sounds[b].pause():!1};this.pauseAll=function(){var b;for(b=c.soundIDs.length-1;0<=b;b--)c.sounds[c.soundIDs[b]].pause()};this.resume=function(b){return q(b)?c.sounds[b].resume():!1};this.resumeAll=function(){var b;for(b=c.soundIDs.length-1;0<=b;b--)c.sounds[c.soundIDs[b]].resume()};this.togglePause=function(b){return q(b)?c.sounds[b].togglePause():!1};this.setPan=function(b,e){return q(b)? +c.sounds[b].setPan(e):!1};this.setVolume=function(b,e){var d,a;if(b===g||isNaN(b)||e!==g)return q(b)?c.sounds[b].setVolume(e):!1;d=0;for(a=c.soundIDs.length;d<a;d++)c.sounds[c.soundIDs[d]].setVolume(b)};this.mute=function(b){var e=0;b instanceof String&&(b=null);if(b)return q(b)?c.sounds[b].mute():!1;for(e=c.soundIDs.length-1;0<=e;e--)c.sounds[c.soundIDs[e]].mute();return c.muted=!0};this.muteAll=function(){c.mute()};this.unmute=function(b){b instanceof String&&(b=null);if(b)return q(b)?c.sounds[b].unmute(): +!1;for(b=c.soundIDs.length-1;0<=b;b--)c.sounds[c.soundIDs[b]].unmute();c.muted=!1;return!0};this.unmuteAll=function(){c.unmute()};this.toggleMute=function(b){return q(b)?c.sounds[b].toggleMute():!1};this.getMemoryUse=function(){var b=0;k&&8!==m&&(b=parseInt(k._getMemoryUse(),10));return b};this.disable=function(b){var e;b===g&&(b=!1);if(B)return!1;B=!0;for(e=c.soundIDs.length-1;0<=e;e--)Ta(c.sounds[c.soundIDs[e]]);Q(b);t.remove(h,"load",H);return!0};this.canPlayMIME=function(b){var e;c.hasHTML5&& +(e=Y({type:b}));!e&&v&&(e=b&&c.ok()?!!(8<m&&b.match(eb)||b.match(c.mimePattern)):null);return e};this.canPlayURL=function(b){var e;c.hasHTML5&&(e=Y({url:b}));!e&&v&&(e=b&&c.ok()?!!b.match(c.filePattern):null);return e};this.canPlayLink=function(b){return b.type!==g&&b.type&&c.canPlayMIME(b.type)?!0:c.canPlayURL(b.href)};this.getSoundById=function(b,e){return b?c.sounds[b]:null};this.onready=function(b,c){if("function"===typeof b)c||(c=h),ta("onready",b,c),F();else throw T("needFunction","onready"); +return!0};this.ontimeout=function(b,c){if("function"===typeof b)c||(c=h),ta("ontimeout",b,c),F({type:"ontimeout"});else throw T("needFunction","ontimeout");return!0};this._wD=this._writeDebug=function(b,c){return!0};this._debug=function(){};this.reboot=function(b,e){var d,a,f;for(d=c.soundIDs.length-1;0<=d;d--)c.sounds[c.soundIDs[d]].destruct();if(k)try{E&&(Aa=k.innerHTML),S=k.parentNode.removeChild(k)}catch(g){}Aa=S=v=k=null;c.enabled=R=l=U=Ca=O=P=B=z=c.swfLoaded=!1;c.soundIDs=[];c.sounds={};ab= +0;Ga=!1;if(b)y=[];else for(d in y)if(y.hasOwnProperty(d))for(a=0,f=y[d].length;a<f;a++)y[d][a].fired=!1;c.html5={usingFlash:null};c.flash={};c.html5Only=!1;c.ignoreFlash=!1;h.setTimeout(function(){e||c.beginDelayedInit()},20);return c};this.reset=function(){return c.reboot(!0,!0)};this.getMoviePercent=function(){return k&&"PercentLoaded"in k?k.PercentLoaded():null};this.beginDelayedInit=function(){ra=!0;G();setTimeout(function(){if(Ca)return!1;ea();da();return Ca=!0},20);I()};this.destruct=function(){c.disable(!0)}; +N=function(b){var e,d,a=this,f,n,h,M,p,r,u=!1,l=[],v=0,y,B,w=null,A;d=e=null;this.sID=this.id=b.id;this.url=b.url;this._iO=this.instanceOptions=this.options=x(b);this.pan=this.options.pan;this.volume=this.options.volume;this.isHTML5=!1;this._a=null;A=this.url?!1:!0;this.id3={};this._debug=function(){};this.load=function(b){var e=null,d;b!==g?a._iO=x(b,a.options):(b=a.options,a._iO=b,w&&w!==a.url&&(a._iO.url=a.url,a.url=null));a._iO.url||(a._iO.url=a.url);a._iO.url=ia(a._iO.url);d=a.instanceOptions= +a._iO;if(!d.url&&!a.url)return a;if(d.url===a.url&&0!==a.readyState&&2!==a.readyState)return 3===a.readyState&&d.onload&&la(a,function(){d.onload.apply(a,[!!a.duration])}),a;a.loaded=!1;a.readyState=1;a.playState=0;a.id3={};if(ja(d))e=a._setup_html5(d),e._called_load||(a._html5_canplay=!1,a.url!==d.url&&(a._a.src=d.url,a.setPosition(0)),a._a.autobuffer="auto",a._a.preload="auto",a._a._called_load=!0);else{if(c.html5Only||a._iO.url&&a._iO.url.match(/data\:/i))return a;try{a.isHTML5=!1,a._iO=ga(fa(d)), +a._iO.autoPlay&&(a._iO.position||a._iO.from)&&(a._iO.autoPlay=!1),d=a._iO,8===m?k._load(a.id,d.url,d.stream,d.autoPlay,d.usePolicyFile):k._load(a.id,d.url,!!d.stream,!!d.autoPlay,d.loops||1,!!d.autoLoad,d.usePolicyFile)}catch(f){K({type:"SMSOUND_LOAD_JS_EXCEPTION",fatal:!0})}}a.url=d.url;return a};this.unload=function(){0!==a.readyState&&(a.isHTML5?(M(),a._a&&(a._a.pause(),w=ka(a._a))):8===m?k._unload(a.id,"about:blank"):k._unload(a.id),f());return a};this.destruct=function(b){a.isHTML5?(M(),a._a&& +(a._a.pause(),ka(a._a),z||h(),a._a._s=null,a._a=null)):(a._iO.onfailure=null,k._destroySound(a.id));b||c.destroySound(a.id,!0)};this.start=this.play=function(b,e){var d,f,n,h,Na;f=!0;f=null;e=e===g?!0:e;b||(b={});a.url&&(a._iO.url=a.url);a._iO=x(a._iO,a.options);a._iO=x(b,a._iO);a._iO.url=ia(a._iO.url);a.instanceOptions=a._iO;if(!a.isHTML5&&a._iO.serverURL&&!a.connected)return a.getAutoPlay()||a.setAutoPlay(!0),a;ja(a._iO)&&(a._setup_html5(a._iO),p());1!==a.playState||a.paused||(d=a._iO.multiShot, +d||(a.isHTML5&&a.setPosition(a._iO.position),f=a));if(null!==f)return f;b.url&&b.url!==a.url&&(a.readyState||a.isHTML5||8!==m||!A?a.load(a._iO):A=!1);a.loaded||(0===a.readyState?(a.isHTML5||c.html5Only?a.isHTML5?a.load(a._iO):f=a:(a._iO.autoPlay=!0,a.load(a._iO)),a.instanceOptions=a._iO):2===a.readyState&&(f=a));if(null!==f)return f;!a.isHTML5&&9===m&&0<a.position&&a.position===a.duration&&(b.position=0);if(a.paused&&0<=a.position&&(!a._iO.serverURL||0<a.position))a.resume();else{a._iO=x(b,a._iO); +if((!a.isHTML5&&null!==a._iO.position&&0<a._iO.position||null!==a._iO.from&&0<a._iO.from||null!==a._iO.to)&&0===a.instanceCount&&0===a.playState&&!a._iO.serverURL){d=function(){a._iO=x(b,a._iO);a.play(a._iO)};a.isHTML5&&!a._html5_canplay?(a.load({_oncanplay:d}),f=!1):a.isHTML5||a.loaded||a.readyState&&2===a.readyState||(a.load({onload:d}),f=!1);if(null!==f)return f;a._iO=B()}(!a.instanceCount||a._iO.multiShotEvents||a.isHTML5&&a._iO.multiShot&&!z||!a.isHTML5&&8<m&&!a.getAutoPlay())&&a.instanceCount++; +a._iO.onposition&&0===a.playState&&r(a);a.playState=1;a.paused=!1;a.position=a._iO.position===g||isNaN(a._iO.position)?0:a._iO.position;a.isHTML5||(a._iO=ga(fa(a._iO)));a._iO.onplay&&e&&(a._iO.onplay.apply(a),u=!0);a.setVolume(a._iO.volume,!0);a.setPan(a._iO.pan,!0);a.isHTML5?2>a.instanceCount?(p(),f=a._setup_html5(),a.setPosition(a._iO.position),f.play()):(n=new Audio(a._iO.url),h=function(){t.remove(n,"ended",h);a._onfinish(a);ka(n);n=null},Na=function(){t.remove(n,"canplay",Na);try{n.currentTime= +a._iO.position/1E3}catch(b){}n.play()},t.add(n,"ended",h),a._iO.volume!==g&&(n.volume=Math.max(0,Math.min(1,a._iO.volume/100))),a.muted&&(n.muted=!0),a._iO.position?t.add(n,"canplay",Na):n.play()):(f=k._start(a.id,a._iO.loops||1,9===m?a.position:a.position/1E3,a._iO.multiShot||!1),9!==m||f||a._iO.onplayerror&&a._iO.onplayerror.apply(a))}return a};this.stop=function(b){var c=a._iO;1===a.playState&&(a._onbufferchange(0),a._resetOnPosition(0),a.paused=!1,a.isHTML5||(a.playState=0),y(),c.to&&a.clearOnPosition(c.to), +a.isHTML5?a._a&&(b=a.position,a.setPosition(0),a.position=b,a._a.pause(),a.playState=0,a._onTimer(),M()):(k._stop(a.id,b),c.serverURL&&a.unload()),a.instanceCount=0,a._iO={},c.onstop&&c.onstop.apply(a));return a};this.setAutoPlay=function(b){a._iO.autoPlay=b;a.isHTML5||(k._setAutoPlay(a.id,b),b&&(a.instanceCount||1!==a.readyState||a.instanceCount++))};this.getAutoPlay=function(){return a._iO.autoPlay};this.setPosition=function(b){b===g&&(b=0);var c=a.isHTML5?Math.max(b,0):Math.min(a.duration||a._iO.duration, +Math.max(b,0));a.position=c;b=a.position/1E3;a._resetOnPosition(a.position);a._iO.position=c;if(!a.isHTML5)b=9===m?a.position:b,a.readyState&&2!==a.readyState&&k._setPosition(a.id,b,a.paused||!a.playState,a._iO.multiShot);else if(a._a){if(a._html5_canplay){if(a._a.currentTime!==b)try{a._a.currentTime=b,(0===a.playState||a.paused)&&a._a.pause()}catch(e){}}else if(b)return a;a.paused&&a._onTimer(!0)}return a};this.pause=function(b){if(a.paused||0===a.playState&&1!==a.readyState)return a;a.paused=!0; +a.isHTML5?(a._setup_html5().pause(),M()):(b||b===g)&&k._pause(a.id,a._iO.multiShot);a._iO.onpause&&a._iO.onpause.apply(a);return a};this.resume=function(){var b=a._iO;if(!a.paused)return a;a.paused=!1;a.playState=1;a.isHTML5?(a._setup_html5().play(),p()):(b.isMovieStar&&!b.serverURL&&a.setPosition(a.position),k._pause(a.id,b.multiShot));!u&&b.onplay?(b.onplay.apply(a),u=!0):b.onresume&&b.onresume.apply(a);return a};this.togglePause=function(){if(0===a.playState)return a.play({position:9!==m||a.isHTML5? +a.position/1E3:a.position}),a;a.paused?a.resume():a.pause();return a};this.setPan=function(b,c){b===g&&(b=0);c===g&&(c=!1);a.isHTML5||k._setPan(a.id,b);a._iO.pan=b;c||(a.pan=b,a.options.pan=b);return a};this.setVolume=function(b,e){b===g&&(b=100);e===g&&(e=!1);a.isHTML5?a._a&&(c.muted&&!a.muted&&(a.muted=!0,a._a.muted=!0),a._a.volume=Math.max(0,Math.min(1,b/100))):k._setVolume(a.id,c.muted&&!a.muted||a.muted?0:b);a._iO.volume=b;e||(a.volume=b,a.options.volume=b);return a};this.mute=function(){a.muted= +!0;a.isHTML5?a._a&&(a._a.muted=!0):k._setVolume(a.id,0);return a};this.unmute=function(){a.muted=!1;var b=a._iO.volume!==g;a.isHTML5?a._a&&(a._a.muted=!1):k._setVolume(a.id,b?a._iO.volume:a.options.volume);return a};this.toggleMute=function(){return a.muted?a.unmute():a.mute()};this.onposition=this.onPosition=function(b,c,e){l.push({position:parseInt(b,10),method:c,scope:e!==g?e:a,fired:!1});return a};this.clearOnPosition=function(a,b){var c;a=parseInt(a,10);if(isNaN(a))return!1;for(c=0;c<l.length;c++)a!== +l[c].position||b&&b!==l[c].method||(l[c].fired&&v--,l.splice(c,1))};this._processOnPosition=function(){var b,c;b=l.length;if(!b||!a.playState||v>=b)return!1;for(--b;0<=b;b--)c=l[b],!c.fired&&a.position>=c.position&&(c.fired=!0,v++,c.method.apply(c.scope,[c.position]));return!0};this._resetOnPosition=function(a){var b,c;b=l.length;if(!b)return!1;for(--b;0<=b;b--)c=l[b],c.fired&&a<=c.position&&(c.fired=!1,v--);return!0};B=function(){var b=a._iO,c=b.from,e=b.to,d,f;f=function(){a.clearOnPosition(e,f); +a.stop()};d=function(){if(null!==e&&!isNaN(e))a.onPosition(e,f)};null===c||isNaN(c)||(b.position=c,b.multiShot=!1,d());return b};r=function(){var b,c=a._iO.onposition;if(c)for(b in c)if(c.hasOwnProperty(b))a.onPosition(parseInt(b,10),c[b])};y=function(){var b,c=a._iO.onposition;if(c)for(b in c)c.hasOwnProperty(b)&&a.clearOnPosition(parseInt(b,10))};p=function(){a.isHTML5&&Va(a)};M=function(){a.isHTML5&&Wa(a)};f=function(b){b||(l=[],v=0);u=!1;a._hasTimer=null;a._a=null;a._html5_canplay=!1;a.bytesLoaded= +null;a.bytesTotal=null;a.duration=a._iO&&a._iO.duration?a._iO.duration:null;a.durationEstimate=null;a.buffered=[];a.eqData=[];a.eqData.left=[];a.eqData.right=[];a.failures=0;a.isBuffering=!1;a.instanceOptions={};a.instanceCount=0;a.loaded=!1;a.metadata={};a.readyState=0;a.muted=!1;a.paused=!1;a.peakData={left:0,right:0};a.waveformData={left:[],right:[]};a.playState=0;a.position=null;a.id3={}};f();this._onTimer=function(b){var c,f=!1,g={};if(a._hasTimer||b)return a._a&&(b||(0<a.playState||1===a.readyState)&& +!a.paused)&&(c=a._get_html5_duration(),c!==e&&(e=c,a.duration=c,f=!0),a.durationEstimate=a.duration,c=1E3*a._a.currentTime||0,c!==d&&(d=c,f=!0),(f||b)&&a._whileplaying(c,g,g,g,g)),f};this._get_html5_duration=function(){var b=a._iO;return(b=a._a&&a._a.duration?1E3*a._a.duration:b&&b.duration?b.duration:null)&&!isNaN(b)&&Infinity!==b?b:null};this._apply_loop=function(a,b){a.loop=1<b?"loop":""};this._setup_html5=function(b){b=x(a._iO,b);var c=z?Oa:a._a,e=decodeURI(b.url),d;z?e===decodeURI(Ea)&&(d=!0): +e===decodeURI(w)&&(d=!0);if(c){if(c._s)if(z)c._s&&c._s.playState&&!d&&c._s.stop();else if(!z&&e===decodeURI(w))return a._apply_loop(c,b.loops),c;d||(w&&f(!1),c.src=b.url,Ea=w=a.url=b.url,c._called_load=!1)}else b.autoLoad||b.autoPlay?(a._a=new Audio(b.url),a._a.load()):a._a=Ja&&10>opera.version()?new Audio(null):new Audio,c=a._a,c._called_load=!1,z&&(Oa=c);a.isHTML5=!0;a._a=c;c._s=a;n();a._apply_loop(c,b.loops);b.autoLoad||b.autoPlay?a.load():(c.autobuffer=!1,c.preload="auto");return c};n=function(){if(a._a._added_events)return!1; +var b;a._a._added_events=!0;for(b in C)C.hasOwnProperty(b)&&a._a&&a._a.addEventListener(b,C[b],!1);return!0};h=function(){var b;a._a._added_events=!1;for(b in C)C.hasOwnProperty(b)&&a._a&&a._a.removeEventListener(b,C[b],!1)};this._onload=function(b){var c=!!b||!a.isHTML5&&8===m&&a.duration;a.loaded=c;a.readyState=c?3:2;a._onbufferchange(0);a._iO.onload&&la(a,function(){a._iO.onload.apply(a,[c])});return!0};this._onbufferchange=function(b){if(0===a.playState||b&&a.isBuffering||!b&&!a.isBuffering)return!1; +a.isBuffering=1===b;a._iO.onbufferchange&&a._iO.onbufferchange.apply(a,[b]);return!0};this._onsuspend=function(){a._iO.onsuspend&&a._iO.onsuspend.apply(a);return!0};this._onfailure=function(b,c,e){a.failures++;if(a._iO.onfailure&&1===a.failures)a._iO.onfailure(b,c,e)};this._onwarning=function(b,c,e){if(a._iO.onwarning)a._iO.onwarning(b,c,e)};this._onfinish=function(){var b=a._iO.onfinish;a._onbufferchange(0);a._resetOnPosition(0);a.instanceCount&&(a.instanceCount--,a.instanceCount||(y(),a.playState= +0,a.paused=!1,a.instanceCount=0,a.instanceOptions={},a._iO={},M(),a.isHTML5&&(a.position=0)),(!a.instanceCount||a._iO.multiShotEvents)&&b&&la(a,function(){b.apply(a)}))};this._whileloading=function(b,c,e,d){var f=a._iO;a.bytesLoaded=b;a.bytesTotal=c;a.duration=Math.floor(e);a.bufferLength=d;a.durationEstimate=a.isHTML5||f.isMovieStar?a.duration:f.duration?a.duration>f.duration?a.duration:f.duration:parseInt(a.bytesTotal/a.bytesLoaded*a.duration,10);a.isHTML5||(a.buffered=[{start:0,end:a.duration}]); +(3!==a.readyState||a.isHTML5)&&f.whileloading&&f.whileloading.apply(a)};this._whileplaying=function(b,c,e,d,f){var n=a._iO;if(isNaN(b)||null===b)return!1;a.position=Math.max(0,b);a._processOnPosition();!a.isHTML5&&8<m&&(n.usePeakData&&c!==g&&c&&(a.peakData={left:c.leftPeak,right:c.rightPeak}),n.useWaveformData&&e!==g&&e&&(a.waveformData={left:e.split(","),right:d.split(",")}),n.useEQData&&f!==g&&f&&f.leftEQ&&(b=f.leftEQ.split(","),a.eqData=b,a.eqData.left=b,f.rightEQ!==g&&f.rightEQ&&(a.eqData.right= +f.rightEQ.split(","))));1===a.playState&&(a.isHTML5||8!==m||a.position||!a.isBuffering||a._onbufferchange(0),n.whileplaying&&n.whileplaying.apply(a));return!0};this._oncaptiondata=function(b){a.captiondata=b;a._iO.oncaptiondata&&a._iO.oncaptiondata.apply(a,[b])};this._onmetadata=function(b,c){var e={},d,f;d=0;for(f=b.length;d<f;d++)e[b[d]]=c[d];a.metadata=e;a._iO.onmetadata&&a._iO.onmetadata.call(a,a.metadata)};this._onid3=function(b,c){var e=[],d,f;d=0;for(f=b.length;d<f;d++)e[b[d]]=c[d];a.id3=x(a.id3, +e);a._iO.onid3&&a._iO.onid3.apply(a)};this._onconnect=function(b){b=1===b;if(a.connected=b)a.failures=0,q(a.id)&&(a.getAutoPlay()?a.play(g,a.getAutoPlay()):a._iO.autoLoad&&a.load()),a._iO.onconnect&&a._iO.onconnect.apply(a,[b])};this._ondataerror=function(b){0<a.playState&&a._iO.ondataerror&&a._iO.ondataerror.apply(a)}};xa=function(){return p.body||p.getElementsByTagName("div")[0]};aa=function(b){return p.getElementById(b)};x=function(b,e){var d=b||{},a,f;a=e===g?c.defaultOptions:e;for(f in a)a.hasOwnProperty(f)&& +d[f]===g&&(d[f]="object"!==typeof a[f]||null===a[f]?a[f]:x(d[f],a[f]));return d};la=function(b,c){b.isHTML5||8!==m?c():h.setTimeout(c,0)};ba={onready:1,ontimeout:1,defaultOptions:1,flash9Options:1,movieStarOptions:1};sa=function(b,e){var d,a=!0,f=e!==g,n=c.setupOptions;for(d in b)if(b.hasOwnProperty(d))if("object"!==typeof b[d]||null===b[d]||b[d]instanceof Array||b[d]instanceof RegExp)f&&ba[e]!==g?c[e][d]=b[d]:n[d]!==g?(c.setupOptions[d]=b[d],c[d]=b[d]):ba[d]===g?a=!1:c[d]instanceof Function?c[d].apply(c, +b[d]instanceof Array?b[d]:[b[d]]):c[d]=b[d];else if(ba[d]===g)a=!1;else return sa(b[d],d);return a};t=function(){function b(a){a=hb.call(a);var b=a.length;d?(a[1]="on"+a[1],3<b&&a.pop()):3===b&&a.push(!1);return a}function c(b,e){var g=b.shift(),h=[a[e]];if(d)g[h](b[0],b[1]);else g[h].apply(g,b)}var d=h.attachEvent,a={add:d?"attachEvent":"addEventListener",remove:d?"detachEvent":"removeEventListener"};return{add:function(){c(b(arguments),"add")},remove:function(){c(b(arguments),"remove")}}}();C={abort:r(function(){}), +canplay:r(function(){var b=this._s,c;if(b._html5_canplay)return!0;b._html5_canplay=!0;b._onbufferchange(0);c=b._iO.position===g||isNaN(b._iO.position)?null:b._iO.position/1E3;if(this.currentTime!==c)try{this.currentTime=c}catch(d){}b._iO._oncanplay&&b._iO._oncanplay()}),canplaythrough:r(function(){var b=this._s;b.loaded||(b._onbufferchange(0),b._whileloading(b.bytesLoaded,b.bytesTotal,b._get_html5_duration()),b._onload(!0))}),durationchange:r(function(){var b=this._s,c;c=b._get_html5_duration();isNaN(c)|| +c===b.duration||(b.durationEstimate=b.duration=c)}),ended:r(function(){this._s._onfinish()}),error:r(function(){this._s._onload(!1)}),loadeddata:r(function(){var b=this._s;b._loaded||ma||(b.duration=b._get_html5_duration())}),loadedmetadata:r(function(){}),loadstart:r(function(){this._s._onbufferchange(1)}),play:r(function(){this._s._onbufferchange(0)}),playing:r(function(){this._s._onbufferchange(0)}),progress:r(function(b){var c=this._s,d,a,f=0,f=b.target.buffered;d=b.loaded||0;var g=b.total||1; +c.buffered=[];if(f&&f.length){d=0;for(a=f.length;d<a;d++)c.buffered.push({start:1E3*f.start(d),end:1E3*f.end(d)});f=1E3*(f.end(0)-f.start(0));d=Math.min(1,f/(1E3*b.target.duration))}isNaN(d)||(c._whileloading(d,g,c._get_html5_duration()),d&&g&&d===g&&C.canplaythrough.call(this,b))}),ratechange:r(function(){}),suspend:r(function(b){var c=this._s;C.progress.call(this,b);c._onsuspend()}),stalled:r(function(){}),timeupdate:r(function(){this._s._onTimer()}),waiting:r(function(){this._s._onbufferchange(1)})}; +ja=function(b){return b&&(b.type||b.url||b.serverURL)?b.serverURL||b.type&&Z(b.type)?!1:b.type?Y({type:b.type}):Y({url:b.url})||c.html5Only||b.url.match(/data\:/i):!1};ka=function(b){var e;b&&(e=ma?"about:blank":c.html5.canPlayType("audio/wav")?"data:audio/wave;base64,/UklGRiYAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQIAAAD//w==":"about:blank",b.src=e,b._called_unload!==g&&(b._called_load=!1));z&&(Ea=null);return e};Y=function(b){if(!c.useHTML5Audio||!c.hasHTML5)return!1;var e=b.url||null;b=b.type|| +null;var d=c.audioFormats,a;if(b&&c.html5[b]!==g)return c.html5[b]&&!Z(b);if(!D){D=[];for(a in d)d.hasOwnProperty(a)&&(D.push(a),d[a].related&&(D=D.concat(d[a].related)));D=new RegExp("\\.("+D.join("|")+")(\\?.*)?$","i")}(a=e?e.toLowerCase().match(D):null)&&a.length?a=a[1]:b&&(e=b.indexOf(";"),a=(-1!==e?b.substr(0,e):b).substr(6));a&&c.html5[a]!==g?e=c.html5[a]&&!Z(a):(b="audio/"+a,e=c.html5.canPlayType({type:b}),e=(c.html5[a]=e)&&c.html5[b]&&!Z(b));return e};Za=function(){function b(a){var b,d=b= +!1;if(!e||"function"!==typeof e.canPlayType)return b;if(a instanceof Array){h=0;for(b=a.length;h<b;h++)if(c.html5[a[h]]||e.canPlayType(a[h]).match(c.html5Test))d=!0,c.html5[a[h]]=!0,c.flash[a[h]]=!!a[h].match(db);b=d}else a=e&&"function"===typeof e.canPlayType?e.canPlayType(a):!1,b=!(!a||!a.match(c.html5Test));return b}if(!c.useHTML5Audio||!c.hasHTML5)return v=c.html5.usingFlash=!0,!1;var e=Audio!==g?Ja&&10>opera.version()?new Audio(null):new Audio:null,d,a,f={},n,h;n=c.audioFormats;for(d in n)if(n.hasOwnProperty(d)&& +(a="audio/"+d,f[d]=b(n[d].type),f[a]=f[d],d.match(db)?(c.flash[d]=!0,c.flash[a]=!0):(c.flash[d]=!1,c.flash[a]=!1),n[d]&&n[d].related))for(h=n[d].related.length-1;0<=h;h--)f["audio/"+n[d].related[h]]=f[d],c.html5[n[d].related[h]]=f[d],c.flash[n[d].related[h]]=f[d];f.canPlayType=e?b:null;c.html5=x(c.html5,f);c.html5.usingFlash=Ya();v=c.html5.usingFlash;return!0};J={};T=function(){};fa=function(b){8===m&&1<b.loops&&b.stream&&(b.stream=!1);return b};ga=function(b,c){b&&!b.usePolicyFile&&(b.onid3||b.usePeakData|| +b.useWaveformData||b.useEQData)&&(b.usePolicyFile=!0);return b};pa=function(){return!1};Ta=function(b){for(var c in b)b.hasOwnProperty(c)&&"function"===typeof b[c]&&(b[c]=pa)};za=function(b){b===g&&(b=!1);(B||b)&&c.disable(b)};Ua=function(b){var e=null;if(b)if(b.match(/\.swf(\?.*)?$/i)){if(e=b.substr(b.toLowerCase().lastIndexOf(".swf?")+4))return b}else b.lastIndexOf("/")!==b.length-1&&(b+="/");b=(b&&-1!==b.lastIndexOf("/")?b.substr(0,b.lastIndexOf("/")+1):"./")+c.movieURL;c.noSWFCache&&(b+="?ts="+ +(new Date).getTime());return b};va=function(){m=parseInt(c.flashVersion,10);8!==m&&9!==m&&(c.flashVersion=m=8);var b=c.debugMode||c.debugFlash?"_debug.swf":".swf";c.useHTML5Audio&&!c.html5Only&&c.audioFormats.mp4.required&&9>m&&(c.flashVersion=m=9);c.version=c.versionNumber+(c.html5Only?" (HTML5-only mode)":9===m?" (AS3/Flash 9)":" (AS2/Flash 8)");8<m?(c.defaultOptions=x(c.defaultOptions,c.flash9Options),c.features.buffering=!0,c.defaultOptions=x(c.defaultOptions,c.movieStarOptions),c.filePatterns.flash9= +new RegExp("\\.(mp3|"+fb.join("|")+")(\\?.*)?$","i"),c.features.movieStar=!0):c.features.movieStar=!1;c.filePattern=c.filePatterns[8!==m?"flash9":"flash8"];c.movieURL=(8===m?"soundmanager2.swf":"soundmanager2_flash9.swf").replace(".swf",b);c.features.peakData=c.features.waveformData=c.features.eqData=8<m};Sa=function(b,c){if(!k)return!1;k._setPolling(b,c)};ya=function(){};q=this.getSoundById;L=function(){var b=[];c.debugMode&&b.push("sm2_debug");c.debugFlash&&b.push("flash_debug");c.useHighPerformance&& +b.push("high_performance");return b.join(" ")};Ba=function(){T("fbHandler");var b=c.getMoviePercent(),e={type:"FLASHBLOCK"};if(c.html5Only)return!1;c.ok()?c.oMC&&(c.oMC.className=[L(),"movieContainer","swf_loaded"+(c.didFlashBlock?" swf_unblocked":"")].join(" ")):(v&&(c.oMC.className=L()+" movieContainer "+(null===b?"swf_timedout":"swf_error")),c.didFlashBlock=!0,F({type:"ontimeout",ignoreInit:!0,error:e}),K(e))};ta=function(b,c,d){y[b]===g&&(y[b]=[]);y[b].push({method:c,scope:d||null,fired:!1})}; +F=function(b){b||(b={type:c.ok()?"onready":"ontimeout"});if(!l&&b&&!b.ignoreInit||"ontimeout"===b.type&&(c.ok()||B&&!b.ignoreInit))return!1;var e={success:b&&b.ignoreInit?c.ok():!B},d=b&&b.type?y[b.type]||[]:[],a=[],f,e=[e],g=v&&!c.ok();b.error&&(e[0].error=b.error);b=0;for(f=d.length;b<f;b++)!0!==d[b].fired&&a.push(d[b]);if(a.length)for(b=0,f=a.length;b<f;b++)a[b].scope?a[b].method.apply(a[b].scope,e):a[b].method.apply(this,e),g||(a[b].fired=!0);return!0};H=function(){h.setTimeout(function(){c.useFlashBlock&& +Ba();F();"function"===typeof c.onload&&c.onload.apply(h);c.waitForWindowLoad&&t.add(h,"load",H)},1)};Fa=function(){if(A!==g)return A;var b=!1,c=navigator,d=c.plugins,a,f=h.ActiveXObject;if(d&&d.length)(c=c.mimeTypes)&&c["application/x-shockwave-flash"]&&c["application/x-shockwave-flash"].enabledPlugin&&c["application/x-shockwave-flash"].enabledPlugin.description&&(b=!0);else if(f!==g&&!u.match(/MSAppHost/i)){try{a=new f("ShockwaveFlash.ShockwaveFlash")}catch(n){a=null}b=!!a}return A=b};Ya=function(){var b, +e,d=c.audioFormats;Ha&&u.match(/os (1|2|3_0|3_1)\s/i)?(c.hasHTML5=!1,c.html5Only=!0,c.oMC&&(c.oMC.style.display="none")):!c.useHTML5Audio||c.html5&&c.html5.canPlayType||(c.hasHTML5=!1);if(c.useHTML5Audio&&c.hasHTML5)for(e in X=!0,d)d.hasOwnProperty(e)&&d[e].required&&(c.html5.canPlayType(d[e].type)?c.preferFlash&&(c.flash[e]||c.flash[d[e].type])&&(b=!0):(X=!1,b=!0));c.ignoreFlash&&(b=!1,X=!0);c.html5Only=c.hasHTML5&&c.useHTML5Audio&&!b;return!c.html5Only};ia=function(b){var e,d,a=0;if(b instanceof +Array){e=0;for(d=b.length;e<d;e++)if(b[e]instanceof Object){if(c.canPlayMIME(b[e].type)){a=e;break}}else if(c.canPlayURL(b[e])){a=e;break}b[a].url&&(b[a]=b[a].url);b=b[a]}return b};Va=function(b){b._hasTimer||(b._hasTimer=!0,!na&&c.html5PollingInterval&&(null===V&&0===ha&&(V=setInterval(Xa,c.html5PollingInterval)),ha++))};Wa=function(b){b._hasTimer&&(b._hasTimer=!1,!na&&c.html5PollingInterval&&ha--)};Xa=function(){var b;if(null!==V&&!ha)return clearInterval(V),V=null,!1;for(b=c.soundIDs.length-1;0<= +b;b--)c.sounds[c.soundIDs[b]].isHTML5&&c.sounds[c.soundIDs[b]]._hasTimer&&c.sounds[c.soundIDs[b]]._onTimer()};K=function(b){b=b!==g?b:{};"function"===typeof c.onerror&&c.onerror.apply(h,[{type:b.type!==g?b.type:null}]);b.fatal!==g&&b.fatal&&c.disable()};$a=function(){if(!bb||!Fa())return!1;var b=c.audioFormats,e,d;for(d in b)if(b.hasOwnProperty(d)&&("mp3"===d||"mp4"===d)&&(c.html5[d]=!1,b[d]&&b[d].related))for(e=b[d].related.length-1;0<=e;e--)c.html5[b[d].related[e]]=!1};this._setSandboxType=function(b){}; +this._externalInterfaceOK=function(b){if(c.swfLoaded)return!1;c.swfLoaded=!0;oa=!1;bb&&$a();setTimeout(qa,E?100:1)};ea=function(b,e){function d(a,b){return'<param name="'+a+'" value="'+b+'" />'}if(O&&P)return!1;if(c.html5Only)return va(),c.oMC=aa(c.movieID),qa(),P=O=!0,!1;var a=e||c.url,f=c.altURL||a,h=xa(),k=L(),m=null,m=p.getElementsByTagName("html")[0],l,r,q,m=m&&m.dir&&m.dir.match(/rtl/i);b=b===g?c.id:b;va();c.url=Ua(La?a:f);e=c.url;c.wmode=!c.wmode&&c.useHighPerformance?"transparent":c.wmode; +null!==c.wmode&&(u.match(/msie 8/i)||!E&&!c.useHighPerformance)&&navigator.platform.match(/win32|win64/i)&&(W.push(J.spcWmode),c.wmode=null);h={name:b,id:b,src:e,quality:"high",allowScriptAccess:c.allowScriptAccess,bgcolor:c.bgColor,pluginspage:jb+"www.macromedia.com/go/getflashplayer",title:"JS/Flash audio component (SoundManager 2)",type:"application/x-shockwave-flash",wmode:c.wmode,hasPriority:"true"};c.debugFlash&&(h.FlashVars="debug=1");c.wmode||delete h.wmode;if(E)a=p.createElement("div"),r= +['<object id="'+b+'" data="'+e+'" type="'+h.type+'" title="'+h.title+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">',d("movie",e),d("AllowScriptAccess",c.allowScriptAccess),d("quality",h.quality),c.wmode?d("wmode",c.wmode):"",d("bgcolor",c.bgColor),d("hasPriority","true"),c.debugFlash?d("FlashVars",h.FlashVars):"","</object>"].join("");else for(l in a=p.createElement("embed"),h)h.hasOwnProperty(l)&& +a.setAttribute(l,h[l]);ya();k=L();if(h=xa())if(c.oMC=aa(c.movieID)||p.createElement("div"),c.oMC.id)q=c.oMC.className,c.oMC.className=(q?q+" ":"movieContainer")+(k?" "+k:""),c.oMC.appendChild(a),E&&(l=c.oMC.appendChild(p.createElement("div")),l.className="sm2-object-box",l.innerHTML=r),P=!0;else{c.oMC.id=c.movieID;c.oMC.className="movieContainer "+k;l=k=null;c.useFlashBlock||(c.useHighPerformance?k={position:"fixed",width:"8px",height:"8px",bottom:"0px",left:"0px",overflow:"hidden"}:(k={position:"absolute", +width:"6px",height:"6px",top:"-9999px",left:"-9999px"},m&&(k.left=Math.abs(parseInt(k.left,10))+"px")));ib&&(c.oMC.style.zIndex=1E4);if(!c.debugFlash)for(q in k)k.hasOwnProperty(q)&&(c.oMC.style[q]=k[q]);try{E||c.oMC.appendChild(a),h.appendChild(c.oMC),E&&(l=c.oMC.appendChild(p.createElement("div")),l.className="sm2-object-box",l.innerHTML=r),P=!0}catch(t){throw Error(T("domError")+" \n"+t.toString());}}return O=!0};da=function(){if(c.html5Only)return ea(),!1;if(k||!c.url)return!1;k=c.getMovie(c.id); +k||(S?(E?c.oMC.innerHTML=Aa:c.oMC.appendChild(S),S=null,O=!0):ea(c.id,c.url),k=c.getMovie(c.id));"function"===typeof c.oninitmovie&&setTimeout(c.oninitmovie,1);return!0};I=function(){setTimeout(Ra,1E3)};ua=function(){h.setTimeout(function(){c.setup({preferFlash:!1}).reboot();c.didFlashBlock=!0;c.beginDelayedInit()},1)};Ra=function(){var b,e=!1;if(!c.url||U)return!1;U=!0;t.remove(h,"load",I);if(A&&oa&&!Ka)return!1;l||(b=c.getMoviePercent(),0<b&&100>b&&(e=!0));setTimeout(function(){b=c.getMoviePercent(); +if(e)return U=!1,h.setTimeout(I,1),!1;!l&&cb&&(null===b?c.useFlashBlock||0===c.flashLoadTimeout?c.useFlashBlock&&Ba():!c.useFlashBlock&&X?ua():F({type:"ontimeout",ignoreInit:!0,error:{type:"INIT_FLASHBLOCK"}}):0!==c.flashLoadTimeout&&(!c.useFlashBlock&&X?ua():za(!0)))},c.flashLoadTimeout)};ca=function(){if(Ka||!oa)return t.remove(h,"focus",ca),!0;Ka=cb=!0;U=!1;I();t.remove(h,"focus",ca);return!0};Q=function(b){if(l)return!1;if(c.html5Only)return l=!0,H(),!0;var e=!0,d;c.useFlashBlock&&c.flashLoadTimeout&& +!c.getMoviePercent()||(l=!0);d={type:!A&&v?"NO_FLASH":"INIT_TIMEOUT"};if(B||b)c.useFlashBlock&&c.oMC&&(c.oMC.className=L()+" "+(null===c.getMoviePercent()?"swf_timedout":"swf_error")),F({type:"ontimeout",error:d,ignoreInit:!0}),K(d),e=!1;B||(c.waitForWindowLoad&&!ra?t.add(h,"load",H):H());return e};Qa=function(){var b,e=c.setupOptions;for(b in e)e.hasOwnProperty(b)&&(c[b]===g?c[b]=e[b]:c[b]!==e[b]&&(c.setupOptions[b]=c[b]))};qa=function(){if(l)return!1;if(c.html5Only)return l||(t.remove(h,"load", +c.beginDelayedInit),c.enabled=!0,Q()),!0;da();try{k._externalInterfaceTest(!1),Sa(!0,c.flashPollingInterval||(c.useHighPerformance?10:50)),c.debugMode||k._disableDebug(),c.enabled=!0,c.html5Only||t.add(h,"unload",pa)}catch(b){return K({type:"JS_TO_FLASH_EXCEPTION",fatal:!0}),za(!0),Q(),!1}Q();t.remove(h,"load",c.beginDelayedInit);return!0};G=function(){if(R)return!1;R=!0;Qa();ya();!A&&c.hasHTML5&&c.setup({useHTML5Audio:!0,preferFlash:!1});Za();!A&&v&&(W.push(J.needFlash),c.setup({flashLoadTimeout:1})); +p.removeEventListener&&p.removeEventListener("DOMContentLoaded",G,!1);da();return!0};Da=function(){"complete"===p.readyState&&(G(),p.detachEvent("onreadystatechange",Da));return!0};wa=function(){ra=!0;G();t.remove(h,"load",wa)};Fa();t.add(h,"focus",ca);t.add(h,"load",I);t.add(h,"load",wa);p.addEventListener?p.addEventListener("DOMContentLoaded",G,!1):p.attachEvent?p.attachEvent("onreadystatechange",Da):K({type:"NO_DOM2_EVENTS",fatal:!0})}if(!h||!h.document)throw Error("SoundManager requires a browser with window and document objects."); +var N=null;h.SM2_DEFER!==g&&SM2_DEFER||(N=new w);"object"===typeof module&&module&&"object"===typeof module.exports?(module.exports.SoundManager=w,module.exports.soundManager=N):"function"===typeof define&&define.amd&&define(function(){return{constructor:w,getInstance:function(g){!h.soundManager&&g instanceof Function&&(g=g(w),g instanceof w&&(h.soundManager=g));return h.soundManager}}});h.SoundManager=w;h.soundManager=N})(window); \ No newline at end of file diff --git a/media/soundmanager/script/soundmanager2-nodebug.js b/media/soundmanager/script/soundmanager2-nodebug.js new file mode 100644 index 00000000..6a131c03 --- /dev/null +++ b/media/soundmanager/script/soundmanager2-nodebug.js @@ -0,0 +1,2765 @@ +/** @license + * + * SoundManager 2: JavaScript Sound for the Web + * ---------------------------------------------- + * http://schillmania.com/projects/soundmanager2/ + * + * Copyright (c) 2007, Scott Schiller. All rights reserved. + * Code provided under the BSD License: + * http://schillmania.com/projects/soundmanager2/license.txt + * + * V2.97a.20150601 + */ + +/*global window, SM2_DEFER, sm2Debugger, console, document, navigator, setTimeout, setInterval, clearInterval, Audio, opera, module, define */ +/*jslint regexp: true, sloppy: true, white: true, nomen: true, plusplus: true, todo: true */ + +(function(window, _undefined) { +"use strict"; +if (!window || !window.document) { + throw new Error('SoundManager requires a browser with window and document objects.'); +} +var soundManager = null; +function SoundManager(smURL, smID) { + this.setupOptions = { + 'url': (smURL || null), + 'flashVersion': 8, + 'debugMode': true, + 'debugFlash': false, + 'useConsole': true, + 'consoleOnly': true, + 'waitForWindowLoad': false, + 'bgColor': '#ffffff', + 'useHighPerformance': false, + 'flashPollingInterval': null, + 'html5PollingInterval': null, + 'flashLoadTimeout': 1000, + 'wmode': null, + 'allowScriptAccess': 'always', + 'useFlashBlock': false, + 'useHTML5Audio': true, + 'forceUseGlobalHTML5Audio': false, + 'ignoreMobileRestrictions': false, + 'html5Test': /^(probably|maybe)$/i, + 'preferFlash': false, + 'noSWFCache': false, + 'idPrefix': 'sound' + }; + this.defaultOptions = { + 'autoLoad': false, + 'autoPlay': false, + 'from': null, + 'loops': 1, + 'onid3': null, + 'onload': null, + 'whileloading': null, + 'onplay': null, + 'onpause': null, + 'onresume': null, + 'whileplaying': null, + 'onposition': null, + 'onstop': null, + 'onfailure': null, + 'onfinish': null, + 'multiShot': true, + 'multiShotEvents': false, + 'position': null, + 'pan': 0, + 'stream': true, + 'to': null, + 'type': null, + 'usePolicyFile': false, + 'volume': 100 + }; + this.flash9Options = { + 'isMovieStar': null, + 'usePeakData': false, + 'useWaveformData': false, + 'useEQData': false, + 'onbufferchange': null, + 'ondataerror': null + }; + this.movieStarOptions = { + 'bufferTime': 3, + 'serverURL': null, + 'onconnect': null, + 'duration': null + }; + this.audioFormats = { + 'mp3': { + 'type': ['audio/mpeg; codecs="mp3"', 'audio/mpeg', 'audio/mp3', 'audio/MPA', 'audio/mpa-robust'], + 'required': true + }, + 'mp4': { + 'related': ['aac','m4a','m4b'], + 'type': ['audio/mp4; codecs="mp4a.40.2"', 'audio/aac', 'audio/x-m4a', 'audio/MP4A-LATM', 'audio/mpeg4-generic'], + 'required': false + }, + 'ogg': { + 'type': ['audio/ogg; codecs=vorbis'], + 'required': false + }, + 'opus': { + 'type': ['audio/ogg; codecs=opus', 'audio/opus'], + 'required': false + }, + 'wav': { + 'type': ['audio/wav; codecs="1"', 'audio/wav', 'audio/wave', 'audio/x-wav'], + 'required': false + } + }; + this.movieID = 'sm2-container'; + this.id = (smID || 'sm2movie'); + this.debugID = 'soundmanager-debug'; + this.debugURLParam = /([#?&])debug=1/i; + this.versionNumber = 'V2.97a.20150601'; + this.version = null; + this.movieURL = null; + this.altURL = null; + this.swfLoaded = false; + this.enabled = false; + this.oMC = null; + this.sounds = {}; + this.soundIDs = []; + this.muted = false; + this.didFlashBlock = false; + this.filePattern = null; + this.filePatterns = { + 'flash8': /\.mp3(\?.*)?$/i, + 'flash9': /\.mp3(\?.*)?$/i + }; + this.features = { + 'buffering': false, + 'peakData': false, + 'waveformData': false, + 'eqData': false, + 'movieStar': false + }; + this.sandbox = { + }; + this.html5 = { + 'usingFlash': null + }; + this.flash = {}; + this.html5Only = false; + this.ignoreFlash = false; + var SMSound, + sm2 = this, globalHTML5Audio = null, flash = null, sm = 'soundManager', smc = sm + ': ', h5 = 'HTML5::', id, ua = navigator.userAgent, wl = window.location.href.toString(), doc = document, doNothing, setProperties, init, fV, on_queue = [], debugOpen = true, debugTS, didAppend = false, appendSuccess = false, didInit = false, disabled = false, windowLoaded = false, _wDS, wdCount = 0, initComplete, mixin, assign, extraOptions, addOnEvent, processOnEvents, initUserOnload, delayWaitForEI, waitForEI, rebootIntoHTML5, setVersionInfo, handleFocus, strings, initMovie, domContentLoaded, winOnLoad, didDCLoaded, getDocument, createMovie, catchError, setPolling, initDebug, debugLevels = ['log', 'info', 'warn', 'error'], defaultFlashVersion = 8, disableObject, failSafely, normalizeMovieURL, oRemoved = null, oRemovedHTML = null, str, flashBlockHandler, getSWFCSS, swfCSS, toggleDebug, loopFix, policyFix, complain, idCheck, waitingForEI = false, initPending = false, startTimer, stopTimer, timerExecute, h5TimerCount = 0, h5IntervalTimer = null, parseURL, messages = [], + canIgnoreFlash, needsFlash = null, featureCheck, html5OK, html5CanPlay, html5Ext, html5Unload, domContentLoadedIE, testHTML5, event, slice = Array.prototype.slice, useGlobalHTML5Audio = false, lastGlobalHTML5URL, hasFlash, detectFlash, badSafariFix, html5_events, showSupport, flushMessages, wrapCallback, idCounter = 0, didSetup, msecScale = 1000, + is_iDevice = ua.match(/(ipad|iphone|ipod)/i), isAndroid = ua.match(/android/i), isIE = ua.match(/msie/i), + isWebkit = ua.match(/webkit/i), + isSafari = (ua.match(/safari/i) && !ua.match(/chrome/i)), + isOpera = (ua.match(/opera/i)), + mobileHTML5 = (ua.match(/(mobile|pre\/|xoom)/i) || is_iDevice || isAndroid), + isBadSafari = (!wl.match(/usehtml5audio/i) && !wl.match(/sm2\-ignorebadua/i) && isSafari && !ua.match(/silk/i) && ua.match(/OS X 10_6_([3-7])/i)), + hasConsole = (window.console !== _undefined && console.log !== _undefined), + isFocused = (doc.hasFocus !== _undefined ? doc.hasFocus() : null), + tryInitOnFocus = (isSafari && (doc.hasFocus === _undefined || !doc.hasFocus())), + okToDisable = !tryInitOnFocus, + flashMIME = /(mp3|mp4|mpa|m4a|m4b)/i, + emptyURL = 'about:blank', + emptyWAV = 'data:audio/wave;base64,/UklGRiYAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQIAAAD//w==', + overHTTP = (doc.location ? doc.location.protocol.match(/http/i) : null), + http = (!overHTTP ? 'http:/'+'/' : ''), + netStreamMimeTypes = /^\s*audio\/(?:x-)?(?:mpeg4|aac|flv|mov|mp4||m4v|m4a|m4b|mp4v|3gp|3g2)\s*(?:$|;)/i, + netStreamTypes = ['mpeg4', 'aac', 'flv', 'mov', 'mp4', 'm4v', 'f4v', 'm4a', 'm4b', 'mp4v', '3gp', '3g2'], + netStreamPattern = new RegExp('\\.(' + netStreamTypes.join('|') + ')(\\?.*)?$', 'i'); + this.mimePattern = /^\s*audio\/(?:x-)?(?:mp(?:eg|3))\s*(?:$|;)/i; + this.useAltURL = !overHTTP; + swfCSS = { + 'swfBox': 'sm2-object-box', + 'swfDefault': 'movieContainer', + 'swfError': 'swf_error', + 'swfTimedout': 'swf_timedout', + 'swfLoaded': 'swf_loaded', + 'swfUnblocked': 'swf_unblocked', + 'sm2Debug': 'sm2_debug', + 'highPerf': 'high_performance', + 'flashDebug': 'flash_debug' + }; + this.hasHTML5 = (function() { + try { + return (Audio !== _undefined && (isOpera && opera !== _undefined && opera.version() < 10 ? new Audio(null) : new Audio()).canPlayType !== _undefined); + } catch(e) { + return false; + } + }()); + this.setup = function(options) { + var noURL = (!sm2.url); + if (options !== _undefined && didInit && needsFlash && sm2.ok() && (options.flashVersion !== _undefined || options.url !== _undefined || options.html5Test !== _undefined)) { + } + assign(options); + if (!useGlobalHTML5Audio) { + if (mobileHTML5) { + if (!sm2.setupOptions.ignoreMobileRestrictions || sm2.setupOptions.forceUseGlobalHTML5Audio) { + messages.push(strings.globalHTML5); + useGlobalHTML5Audio = true; + } + } else { + if (sm2.setupOptions.forceUseGlobalHTML5Audio) { + messages.push(strings.globalHTML5); + useGlobalHTML5Audio = true; + } + } + } + if (!didSetup && mobileHTML5) { + if (sm2.setupOptions.ignoreMobileRestrictions) { + messages.push(strings.ignoreMobile); + } else { + sm2.setupOptions.useHTML5Audio = true; + sm2.setupOptions.preferFlash = false; + if (is_iDevice) { + sm2.ignoreFlash = true; + } else if ((isAndroid && !ua.match(/android\s2\.3/i)) || !isAndroid) { + useGlobalHTML5Audio = true; + } + } + } + if (options) { + if (noURL && didDCLoaded && options.url !== _undefined) { + sm2.beginDelayedInit(); + } + if (!didDCLoaded && options.url !== _undefined && doc.readyState === 'complete') { + setTimeout(domContentLoaded, 1); + } + } + didSetup = true; + return sm2; + }; + this.ok = function() { + return (needsFlash ? (didInit && !disabled) : (sm2.useHTML5Audio && sm2.hasHTML5)); + }; + this.supported = this.ok; + this.getMovie = function(smID) { + return id(smID) || doc[smID] || window[smID]; + }; + this.createSound = function(oOptions, _url) { + var cs, cs_string, options, oSound = null; + if (!didInit || !sm2.ok()) { + return false; + } + if (_url !== _undefined) { + oOptions = { + 'id': oOptions, + 'url': _url + }; + } + options = mixin(oOptions); + options.url = parseURL(options.url); + if (options.id === _undefined) { + options.id = sm2.setupOptions.idPrefix + (idCounter++); + } + if (idCheck(options.id, true)) { + return sm2.sounds[options.id]; + } + function make() { + options = loopFix(options); + sm2.sounds[options.id] = new SMSound(options); + sm2.soundIDs.push(options.id); + return sm2.sounds[options.id]; + } + if (html5OK(options)) { + oSound = make(); + oSound._setup_html5(options); + } else { + if (sm2.html5Only) { + return make(); + } + if (sm2.html5.usingFlash && options.url && options.url.match(/data\:/i)) { + return make(); + } + if (fV > 8) { + if (options.isMovieStar === null) { + options.isMovieStar = !!(options.serverURL || (options.type ? options.type.match(netStreamMimeTypes) : false) || (options.url && options.url.match(netStreamPattern))); + } + } + options = policyFix(options, cs); + oSound = make(); + if (fV === 8) { + flash._createSound(options.id, options.loops || 1, options.usePolicyFile); + } else { + flash._createSound(options.id, options.url, options.usePeakData, options.useWaveformData, options.useEQData, options.isMovieStar, (options.isMovieStar ? options.bufferTime : false), options.loops || 1, options.serverURL, options.duration || null, options.autoPlay, true, options.autoLoad, options.usePolicyFile); + if (!options.serverURL) { + oSound.connected = true; + if (options.onconnect) { + options.onconnect.apply(oSound); + } + } + } + if (!options.serverURL && (options.autoLoad || options.autoPlay)) { + oSound.load(options); + } + } + if (!options.serverURL && options.autoPlay) { + oSound.play(); + } + return oSound; + }; + this.destroySound = function(sID, _bFromSound) { + if (!idCheck(sID)) { + return false; + } + var oS = sm2.sounds[sID], i; + oS.stop(); + oS._iO = {}; + oS.unload(); + for (i = 0; i < sm2.soundIDs.length; i++) { + if (sm2.soundIDs[i] === sID) { + sm2.soundIDs.splice(i, 1); + break; + } + } + if (!_bFromSound) { + oS.destruct(true); + } + oS = null; + delete sm2.sounds[sID]; + return true; + }; + this.load = function(sID, oOptions) { + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].load(oOptions); + }; + this.unload = function(sID) { + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].unload(); + }; + this.onPosition = function(sID, nPosition, oMethod, oScope) { + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].onposition(nPosition, oMethod, oScope); + }; + this.onposition = this.onPosition; + this.clearOnPosition = function(sID, nPosition, oMethod) { + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].clearOnPosition(nPosition, oMethod); + }; + this.play = function(sID, oOptions) { + var result = null, + overloaded = (oOptions && !(oOptions instanceof Object)); + if (!didInit || !sm2.ok()) { + return false; + } + if (!idCheck(sID, overloaded)) { + if (!overloaded) { + return false; + } + if (overloaded) { + oOptions = { + url: oOptions + }; + } + if (oOptions && oOptions.url) { + oOptions.id = sID; + result = sm2.createSound(oOptions).play(); + } + } else if (overloaded) { + oOptions = { + url: oOptions + }; + } + if (result === null) { + result = sm2.sounds[sID].play(oOptions); + } + return result; + }; + this.start = this.play; + this.setPosition = function(sID, nMsecOffset) { + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].setPosition(nMsecOffset); + }; + this.stop = function(sID) { + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].stop(); + }; + this.stopAll = function() { + var oSound; + for (oSound in sm2.sounds) { + if (sm2.sounds.hasOwnProperty(oSound)) { + sm2.sounds[oSound].stop(); + } + } + }; + this.pause = function(sID) { + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].pause(); + }; + this.pauseAll = function() { + var i; + for (i = sm2.soundIDs.length - 1; i >= 0; i--) { + sm2.sounds[sm2.soundIDs[i]].pause(); + } + }; + this.resume = function(sID) { + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].resume(); + }; + this.resumeAll = function() { + var i; + for (i = sm2.soundIDs.length- 1 ; i >= 0; i--) { + sm2.sounds[sm2.soundIDs[i]].resume(); + } + }; + this.togglePause = function(sID) { + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].togglePause(); + }; + this.setPan = function(sID, nPan) { + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].setPan(nPan); + }; + this.setVolume = function(sID, nVol) { + var i, j; + if (sID !== _undefined && !isNaN(sID) && nVol === _undefined) { + for (i = 0, j = sm2.soundIDs.length; i < j; i++) { + sm2.sounds[sm2.soundIDs[i]].setVolume(sID); + } + return; + } + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].setVolume(nVol); + }; + this.mute = function(sID) { + var i = 0; + if (sID instanceof String) { + sID = null; + } + if (!sID) { + for (i = sm2.soundIDs.length - 1; i >= 0; i--) { + sm2.sounds[sm2.soundIDs[i]].mute(); + } + sm2.muted = true; + } else { + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].mute(); + } + return true; + }; + this.muteAll = function() { + sm2.mute(); + }; + this.unmute = function(sID) { + var i; + if (sID instanceof String) { + sID = null; + } + if (!sID) { + for (i = sm2.soundIDs.length - 1; i >= 0; i--) { + sm2.sounds[sm2.soundIDs[i]].unmute(); + } + sm2.muted = false; + } else { + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].unmute(); + } + return true; + }; + this.unmuteAll = function() { + sm2.unmute(); + }; + this.toggleMute = function(sID) { + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].toggleMute(); + }; + this.getMemoryUse = function() { + var ram = 0; + if (flash && fV !== 8) { + ram = parseInt(flash._getMemoryUse(), 10); + } + return ram; + }; + this.disable = function(bNoDisable) { + var i; + if (bNoDisable === _undefined) { + bNoDisable = false; + } + if (disabled) { + return false; + } + disabled = true; + for (i = sm2.soundIDs.length - 1; i >= 0; i--) { + disableObject(sm2.sounds[sm2.soundIDs[i]]); + } + initComplete(bNoDisable); + event.remove(window, 'load', initUserOnload); + return true; + }; + this.canPlayMIME = function(sMIME) { + var result; + if (sm2.hasHTML5) { + result = html5CanPlay({ + type: sMIME + }); + } + if (!result && needsFlash) { + result = (sMIME && sm2.ok() ? !!((fV > 8 ? sMIME.match(netStreamMimeTypes) : null) || sMIME.match(sm2.mimePattern)) : null); + } + return result; + }; + this.canPlayURL = function(sURL) { + var result; + if (sm2.hasHTML5) { + result = html5CanPlay({ + url: sURL + }); + } + if (!result && needsFlash) { + result = (sURL && sm2.ok() ? !!(sURL.match(sm2.filePattern)) : null); + } + return result; + }; + this.canPlayLink = function(oLink) { + if (oLink.type !== _undefined && oLink.type) { + if (sm2.canPlayMIME(oLink.type)) { + return true; + } + } + return sm2.canPlayURL(oLink.href); + }; + this.getSoundById = function(sID, _suppressDebug) { + if (!sID) { + return null; + } + var result = sm2.sounds[sID]; + return result; + }; + this.onready = function(oMethod, oScope) { + var sType = 'onready', + result = false; + if (typeof oMethod === 'function') { + if (!oScope) { + oScope = window; + } + addOnEvent(sType, oMethod, oScope); + processOnEvents(); + result = true; + } else { + throw str('needFunction', sType); + } + return result; + }; + this.ontimeout = function(oMethod, oScope) { + var sType = 'ontimeout', + result = false; + if (typeof oMethod === 'function') { + if (!oScope) { + oScope = window; + } + addOnEvent(sType, oMethod, oScope); + processOnEvents({type:sType}); + result = true; + } else { + throw str('needFunction', sType); + } + return result; + }; + this._writeDebug = function(sText, sTypeOrObject) { + return true; + }; + this._wD = this._writeDebug; + this._debug = function() { + }; + this.reboot = function(resetEvents, excludeInit) { + var i, j, k; + for (i = sm2.soundIDs.length- 1 ; i >= 0; i--) { + sm2.sounds[sm2.soundIDs[i]].destruct(); + } + if (flash) { + try { + if (isIE) { + oRemovedHTML = flash.innerHTML; + } + oRemoved = flash.parentNode.removeChild(flash); + } catch(e) { + } + } + oRemovedHTML = oRemoved = needsFlash = flash = null; + sm2.enabled = didDCLoaded = didInit = waitingForEI = initPending = didAppend = appendSuccess = disabled = useGlobalHTML5Audio = sm2.swfLoaded = false; + sm2.soundIDs = []; + sm2.sounds = {}; + idCounter = 0; + didSetup = false; + if (!resetEvents) { + for (i in on_queue) { + if (on_queue.hasOwnProperty(i)) { + for (j = 0, k = on_queue[i].length; j < k; j++) { + on_queue[i][j].fired = false; + } + } + } + } else { + on_queue = []; + } + sm2.html5 = { + 'usingFlash': null + }; + sm2.flash = {}; + sm2.html5Only = false; + sm2.ignoreFlash = false; + window.setTimeout(function() { + if (!excludeInit) { + sm2.beginDelayedInit(); + } + }, 20); + return sm2; + }; + this.reset = function() { + return sm2.reboot(true, true); + }; + this.getMoviePercent = function() { + return (flash && 'PercentLoaded' in flash ? flash.PercentLoaded() : null); + }; + this.beginDelayedInit = function() { + windowLoaded = true; + domContentLoaded(); + setTimeout(function() { + if (initPending) { + return false; + } + createMovie(); + initMovie(); + initPending = true; + return true; + }, 20); + delayWaitForEI(); + }; + this.destruct = function() { + sm2.disable(true); + }; + SMSound = function(oOptions) { + var s = this, resetProperties, add_html5_events, remove_html5_events, stop_html5_timer, start_html5_timer, attachOnPosition, onplay_called = false, onPositionItems = [], onPositionFired = 0, detachOnPosition, applyFromTo, lastURL = null, lastHTML5State, urlOmitted; + lastHTML5State = { + duration: null, + time: null + }; + this.id = oOptions.id; + this.sID = this.id; + this.url = oOptions.url; + this.options = mixin(oOptions); + this.instanceOptions = this.options; + this._iO = this.instanceOptions; + this.pan = this.options.pan; + this.volume = this.options.volume; + this.isHTML5 = false; + this._a = null; + urlOmitted = (this.url ? false : true); + this.id3 = {}; + this._debug = function() { + }; + this.load = function(oOptions) { + var oSound = null, instanceOptions; + if (oOptions !== _undefined) { + s._iO = mixin(oOptions, s.options); + } else { + oOptions = s.options; + s._iO = oOptions; + if (lastURL && lastURL !== s.url) { + s._iO.url = s.url; + s.url = null; + } + } + if (!s._iO.url) { + s._iO.url = s.url; + } + s._iO.url = parseURL(s._iO.url); + s.instanceOptions = s._iO; + instanceOptions = s._iO; + if (!instanceOptions.url && !s.url) { + return s; + } + if (instanceOptions.url === s.url && s.readyState !== 0 && s.readyState !== 2) { + if (s.readyState === 3 && instanceOptions.onload) { + wrapCallback(s, function() { + instanceOptions.onload.apply(s, [(!!s.duration)]); + }); + } + return s; + } + s.loaded = false; + s.readyState = 1; + s.playState = 0; + s.id3 = {}; + if (html5OK(instanceOptions)) { + oSound = s._setup_html5(instanceOptions); + if (!oSound._called_load) { + s._html5_canplay = false; + if (s.url !== instanceOptions.url) { + s._a.src = instanceOptions.url; + s.setPosition(0); + } + s._a.autobuffer = 'auto'; + s._a.preload = 'auto'; + s._a._called_load = true; + } else { + } + } else { + if (sm2.html5Only) { + return s; + } + if (s._iO.url && s._iO.url.match(/data\:/i)) { + return s; + } + try { + s.isHTML5 = false; + s._iO = policyFix(loopFix(instanceOptions)); + if (s._iO.autoPlay && (s._iO.position || s._iO.from)) { + s._iO.autoPlay = false; + } + instanceOptions = s._iO; + if (fV === 8) { + flash._load(s.id, instanceOptions.url, instanceOptions.stream, instanceOptions.autoPlay, instanceOptions.usePolicyFile); + } else { + flash._load(s.id, instanceOptions.url, !!(instanceOptions.stream), !!(instanceOptions.autoPlay), instanceOptions.loops || 1, !!(instanceOptions.autoLoad), instanceOptions.usePolicyFile); + } + } catch(e) { + catchError({ + type: 'SMSOUND_LOAD_JS_EXCEPTION', + fatal: true + }); + } + } + s.url = instanceOptions.url; + return s; + }; + this.unload = function() { + if (s.readyState !== 0) { + if (!s.isHTML5) { + if (fV === 8) { + flash._unload(s.id, emptyURL); + } else { + flash._unload(s.id); + } + } else { + stop_html5_timer(); + if (s._a) { + s._a.pause(); + lastURL = html5Unload(s._a); + } + } + resetProperties(); + } + return s; + }; + this.destruct = function(_bFromSM) { + if (!s.isHTML5) { + s._iO.onfailure = null; + flash._destroySound(s.id); + } else { + stop_html5_timer(); + if (s._a) { + s._a.pause(); + html5Unload(s._a); + if (!useGlobalHTML5Audio) { + remove_html5_events(); + } + s._a._s = null; + s._a = null; + } + } + if (!_bFromSM) { + sm2.destroySound(s.id, true); + } + }; + this.play = function(oOptions, _updatePlayState) { + var fN, allowMulti, a, onready, + audioClone, onended, oncanplay, + startOK = true, + exit = null; + _updatePlayState = (_updatePlayState === _undefined ? true : _updatePlayState); + if (!oOptions) { + oOptions = {}; + } + if (s.url) { + s._iO.url = s.url; + } + s._iO = mixin(s._iO, s.options); + s._iO = mixin(oOptions, s._iO); + s._iO.url = parseURL(s._iO.url); + s.instanceOptions = s._iO; + if (!s.isHTML5 && s._iO.serverURL && !s.connected) { + if (!s.getAutoPlay()) { + s.setAutoPlay(true); + } + return s; + } + if (html5OK(s._iO)) { + s._setup_html5(s._iO); + start_html5_timer(); + } + if (s.playState === 1 && !s.paused) { + allowMulti = s._iO.multiShot; + if (!allowMulti) { + if (s.isHTML5) { + s.setPosition(s._iO.position); + } + exit = s; + } else { + } + } + if (exit !== null) { + return exit; + } + if (oOptions.url && oOptions.url !== s.url) { + if (!s.readyState && !s.isHTML5 && fV === 8 && urlOmitted) { + urlOmitted = false; + } else { + s.load(s._iO); + } + } + if (!s.loaded) { + if (s.readyState === 0) { + if (!s.isHTML5 && !sm2.html5Only) { + s._iO.autoPlay = true; + s.load(s._iO); + } else if (s.isHTML5) { + s.load(s._iO); + } else { + exit = s; + } + s.instanceOptions = s._iO; + } else if (s.readyState === 2) { + exit = s; + } else { + } + } else { + } + if (exit !== null) { + return exit; + } + if (!s.isHTML5 && fV === 9 && s.position > 0 && s.position === s.duration) { + oOptions.position = 0; + } + if (s.paused && s.position >= 0 && (!s._iO.serverURL || s.position > 0)) { + s.resume(); + } else { + s._iO = mixin(oOptions, s._iO); + if (((!s.isHTML5 && s._iO.position !== null && s._iO.position > 0) || (s._iO.from !== null && s._iO.from > 0) || s._iO.to !== null) && s.instanceCount === 0 && s.playState === 0 && !s._iO.serverURL) { + onready = function() { + s._iO = mixin(oOptions, s._iO); + s.play(s._iO); + }; + if (s.isHTML5 && !s._html5_canplay) { + s.load({ + _oncanplay: onready + }); + exit = false; + } else if (!s.isHTML5 && !s.loaded && (!s.readyState || s.readyState !== 2)) { + s.load({ + onload: onready + }); + exit = false; + } + if (exit !== null) { + return exit; + } + s._iO = applyFromTo(); + } + if (!s.instanceCount || s._iO.multiShotEvents || (s.isHTML5 && s._iO.multiShot && !useGlobalHTML5Audio) || (!s.isHTML5 && fV > 8 && !s.getAutoPlay())) { + s.instanceCount++; + } + if (s._iO.onposition && s.playState === 0) { + attachOnPosition(s); + } + s.playState = 1; + s.paused = false; + s.position = (s._iO.position !== _undefined && !isNaN(s._iO.position) ? s._iO.position : 0); + if (!s.isHTML5) { + s._iO = policyFix(loopFix(s._iO)); + } + if (s._iO.onplay && _updatePlayState) { + s._iO.onplay.apply(s); + onplay_called = true; + } + s.setVolume(s._iO.volume, true); + s.setPan(s._iO.pan, true); + if (!s.isHTML5) { + startOK = flash._start(s.id, s._iO.loops || 1, (fV === 9 ? s.position : s.position / msecScale), s._iO.multiShot || false); + if (fV === 9 && !startOK) { + if (s._iO.onplayerror) { + s._iO.onplayerror.apply(s); + } + } + } else { + if (s.instanceCount < 2) { + start_html5_timer(); + a = s._setup_html5(); + s.setPosition(s._iO.position); + a.play(); + } else { + audioClone = new Audio(s._iO.url); + onended = function() { + event.remove(audioClone, 'ended', onended); + s._onfinish(s); + html5Unload(audioClone); + audioClone = null; + }; + oncanplay = function() { + event.remove(audioClone, 'canplay', oncanplay); + try { + audioClone.currentTime = s._iO.position/msecScale; + } catch(err) { + } + audioClone.play(); + }; + event.add(audioClone, 'ended', onended); + if (s._iO.volume !== _undefined) { + audioClone.volume = Math.max(0, Math.min(1, s._iO.volume/100)); + } + if (s.muted) { + audioClone.muted = true; + } + if (s._iO.position) { + event.add(audioClone, 'canplay', oncanplay); + } else { + audioClone.play(); + } + } + } + } + return s; + }; + this.start = this.play; + this.stop = function(bAll) { + var instanceOptions = s._iO, + originalPosition; + if (s.playState === 1) { + s._onbufferchange(0); + s._resetOnPosition(0); + s.paused = false; + if (!s.isHTML5) { + s.playState = 0; + } + detachOnPosition(); + if (instanceOptions.to) { + s.clearOnPosition(instanceOptions.to); + } + if (!s.isHTML5) { + flash._stop(s.id, bAll); + if (instanceOptions.serverURL) { + s.unload(); + } + } else { + if (s._a) { + originalPosition = s.position; + s.setPosition(0); + s.position = originalPosition; + s._a.pause(); + s.playState = 0; + s._onTimer(); + stop_html5_timer(); + } + } + s.instanceCount = 0; + s._iO = {}; + if (instanceOptions.onstop) { + instanceOptions.onstop.apply(s); + } + } + return s; + }; + this.setAutoPlay = function(autoPlay) { + s._iO.autoPlay = autoPlay; + if (!s.isHTML5) { + flash._setAutoPlay(s.id, autoPlay); + if (autoPlay) { + if (!s.instanceCount && s.readyState === 1) { + s.instanceCount++; + } + } + } + }; + this.getAutoPlay = function() { + return s._iO.autoPlay; + }; + this.setPosition = function(nMsecOffset) { + if (nMsecOffset === _undefined) { + nMsecOffset = 0; + } + var position, position1K, + offset = (s.isHTML5 ? Math.max(nMsecOffset, 0) : Math.min(s.duration || s._iO.duration, Math.max(nMsecOffset, 0))); + s.position = offset; + position1K = s.position/msecScale; + s._resetOnPosition(s.position); + s._iO.position = offset; + if (!s.isHTML5) { + position = (fV === 9 ? s.position : position1K); + if (s.readyState && s.readyState !== 2) { + flash._setPosition(s.id, position, (s.paused || !s.playState), s._iO.multiShot); + } + } else if (s._a) { + if (s._html5_canplay) { + if (s._a.currentTime !== position1K) { + try { + s._a.currentTime = position1K; + if (s.playState === 0 || s.paused) { + s._a.pause(); + } + } catch(e) { + } + } + } else if (position1K) { + return s; + } + if (s.paused) { + s._onTimer(true); + } + } + return s; + }; + this.pause = function(_bCallFlash) { + if (s.paused || (s.playState === 0 && s.readyState !== 1)) { + return s; + } + s.paused = true; + if (!s.isHTML5) { + if (_bCallFlash || _bCallFlash === _undefined) { + flash._pause(s.id, s._iO.multiShot); + } + } else { + s._setup_html5().pause(); + stop_html5_timer(); + } + if (s._iO.onpause) { + s._iO.onpause.apply(s); + } + return s; + }; + this.resume = function() { + var instanceOptions = s._iO; + if (!s.paused) { + return s; + } + s.paused = false; + s.playState = 1; + if (!s.isHTML5) { + if (instanceOptions.isMovieStar && !instanceOptions.serverURL) { + s.setPosition(s.position); + } + flash._pause(s.id, instanceOptions.multiShot); + } else { + s._setup_html5().play(); + start_html5_timer(); + } + if (!onplay_called && instanceOptions.onplay) { + instanceOptions.onplay.apply(s); + onplay_called = true; + } else if (instanceOptions.onresume) { + instanceOptions.onresume.apply(s); + } + return s; + }; + this.togglePause = function() { + if (s.playState === 0) { + s.play({ + position: (fV === 9 && !s.isHTML5 ? s.position : s.position / msecScale) + }); + return s; + } + if (s.paused) { + s.resume(); + } else { + s.pause(); + } + return s; + }; + this.setPan = function(nPan, bInstanceOnly) { + if (nPan === _undefined) { + nPan = 0; + } + if (bInstanceOnly === _undefined) { + bInstanceOnly = false; + } + if (!s.isHTML5) { + flash._setPan(s.id, nPan); + } + s._iO.pan = nPan; + if (!bInstanceOnly) { + s.pan = nPan; + s.options.pan = nPan; + } + return s; + }; + this.setVolume = function(nVol, _bInstanceOnly) { + if (nVol === _undefined) { + nVol = 100; + } + if (_bInstanceOnly === _undefined) { + _bInstanceOnly = false; + } + if (!s.isHTML5) { + flash._setVolume(s.id, (sm2.muted && !s.muted) || s.muted ? 0 : nVol); + } else if (s._a) { + if (sm2.muted && !s.muted) { + s.muted = true; + s._a.muted = true; + } + s._a.volume = Math.max(0, Math.min(1, nVol/100)); + } + s._iO.volume = nVol; + if (!_bInstanceOnly) { + s.volume = nVol; + s.options.volume = nVol; + } + return s; + }; + this.mute = function() { + s.muted = true; + if (!s.isHTML5) { + flash._setVolume(s.id, 0); + } else if (s._a) { + s._a.muted = true; + } + return s; + }; + this.unmute = function() { + s.muted = false; + var hasIO = (s._iO.volume !== _undefined); + if (!s.isHTML5) { + flash._setVolume(s.id, hasIO ? s._iO.volume : s.options.volume); + } else if (s._a) { + s._a.muted = false; + } + return s; + }; + this.toggleMute = function() { + return (s.muted ? s.unmute() : s.mute()); + }; + this.onPosition = function(nPosition, oMethod, oScope) { + onPositionItems.push({ + position: parseInt(nPosition, 10), + method: oMethod, + scope: (oScope !== _undefined ? oScope : s), + fired: false + }); + return s; + }; + this.onposition = this.onPosition; + this.clearOnPosition = function(nPosition, oMethod) { + var i; + nPosition = parseInt(nPosition, 10); + if (isNaN(nPosition)) { + return false; + } + for (i=0; i < onPositionItems.length; i++) { + if (nPosition === onPositionItems[i].position) { + if (!oMethod || (oMethod === onPositionItems[i].method)) { + if (onPositionItems[i].fired) { + onPositionFired--; + } + onPositionItems.splice(i, 1); + } + } + } + }; + this._processOnPosition = function() { + var i, item, j = onPositionItems.length; + if (!j || !s.playState || onPositionFired >= j) { + return false; + } + for (i = j - 1; i >= 0; i--) { + item = onPositionItems[i]; + if (!item.fired && s.position >= item.position) { + item.fired = true; + onPositionFired++; + item.method.apply(item.scope, [item.position]); + j = onPositionItems.length; + } + } + return true; + }; + this._resetOnPosition = function(nPosition) { + var i, item, j = onPositionItems.length; + if (!j) { + return false; + } + for (i = j - 1; i >= 0; i--) { + item = onPositionItems[i]; + if (item.fired && nPosition <= item.position) { + item.fired = false; + onPositionFired--; + } + } + return true; + }; + applyFromTo = function() { + var instanceOptions = s._iO, + f = instanceOptions.from, + t = instanceOptions.to, + start, end; + end = function() { + s.clearOnPosition(t, end); + s.stop(); + }; + start = function() { + if (t !== null && !isNaN(t)) { + s.onPosition(t, end); + } + }; + if (f !== null && !isNaN(f)) { + instanceOptions.position = f; + instanceOptions.multiShot = false; + start(); + } + return instanceOptions; + }; + attachOnPosition = function() { + var item, + op = s._iO.onposition; + if (op) { + for (item in op) { + if (op.hasOwnProperty(item)) { + s.onPosition(parseInt(item, 10), op[item]); + } + } + } + }; + detachOnPosition = function() { + var item, + op = s._iO.onposition; + if (op) { + for (item in op) { + if (op.hasOwnProperty(item)) { + s.clearOnPosition(parseInt(item, 10)); + } + } + } + }; + start_html5_timer = function() { + if (s.isHTML5) { + startTimer(s); + } + }; + stop_html5_timer = function() { + if (s.isHTML5) { + stopTimer(s); + } + }; + resetProperties = function(retainPosition) { + if (!retainPosition) { + onPositionItems = []; + onPositionFired = 0; + } + onplay_called = false; + s._hasTimer = null; + s._a = null; + s._html5_canplay = false; + s.bytesLoaded = null; + s.bytesTotal = null; + s.duration = (s._iO && s._iO.duration ? s._iO.duration : null); + s.durationEstimate = null; + s.buffered = []; + s.eqData = []; + s.eqData.left = []; + s.eqData.right = []; + s.failures = 0; + s.isBuffering = false; + s.instanceOptions = {}; + s.instanceCount = 0; + s.loaded = false; + s.metadata = {}; + s.readyState = 0; + s.muted = false; + s.paused = false; + s.peakData = { + left: 0, + right: 0 + }; + s.waveformData = { + left: [], + right: [] + }; + s.playState = 0; + s.position = null; + s.id3 = {}; + }; + resetProperties(); + this._onTimer = function(bForce) { + var duration, isNew = false, time, x = {}; + if (s._hasTimer || bForce) { + if (s._a && (bForce || ((s.playState > 0 || s.readyState === 1) && !s.paused))) { + duration = s._get_html5_duration(); + if (duration !== lastHTML5State.duration) { + lastHTML5State.duration = duration; + s.duration = duration; + isNew = true; + } + s.durationEstimate = s.duration; + time = (s._a.currentTime * msecScale || 0); + if (time !== lastHTML5State.time) { + lastHTML5State.time = time; + isNew = true; + } + if (isNew || bForce) { + s._whileplaying(time, x, x, x, x); + } + } + return isNew; + } + }; + this._get_html5_duration = function() { + var instanceOptions = s._iO, + d = (s._a && s._a.duration ? s._a.duration * msecScale : (instanceOptions && instanceOptions.duration ? instanceOptions.duration : null)), + result = (d && !isNaN(d) && d !== Infinity ? d : null); + return result; + }; + this._apply_loop = function(a, nLoops) { + a.loop = (nLoops > 1 ? 'loop' : ''); + }; + this._setup_html5 = function(oOptions) { + var instanceOptions = mixin(s._iO, oOptions), + a = useGlobalHTML5Audio ? globalHTML5Audio : s._a, + dURL = decodeURI(instanceOptions.url), + sameURL; + if (useGlobalHTML5Audio) { + if (dURL === decodeURI(lastGlobalHTML5URL)) { + sameURL = true; + } + } else if (dURL === decodeURI(lastURL)) { + sameURL = true; + } + if (a) { + if (a._s) { + if (useGlobalHTML5Audio) { + if (a._s && a._s.playState && !sameURL) { + a._s.stop(); + } + } else if (!useGlobalHTML5Audio && dURL === decodeURI(lastURL)) { + s._apply_loop(a, instanceOptions.loops); + return a; + } + } + if (!sameURL) { + if (lastURL) { + resetProperties(false); + } + a.src = instanceOptions.url; + s.url = instanceOptions.url; + lastURL = instanceOptions.url; + lastGlobalHTML5URL = instanceOptions.url; + a._called_load = false; + } + } else { + if (instanceOptions.autoLoad || instanceOptions.autoPlay) { + s._a = new Audio(instanceOptions.url); + s._a.load(); + } else { + s._a = (isOpera && opera.version() < 10 ? new Audio(null) : new Audio()); + } + a = s._a; + a._called_load = false; + if (useGlobalHTML5Audio) { + globalHTML5Audio = a; + } + } + s.isHTML5 = true; + s._a = a; + a._s = s; + add_html5_events(); + s._apply_loop(a, instanceOptions.loops); + if (instanceOptions.autoLoad || instanceOptions.autoPlay) { + s.load(); + } else { + a.autobuffer = false; + a.preload = 'auto'; + } + return a; + }; + add_html5_events = function() { + if (s._a._added_events) { + return false; + } + var f; + function add(oEvt, oFn, bCapture) { + return s._a ? s._a.addEventListener(oEvt, oFn, bCapture || false) : null; + } + s._a._added_events = true; + for (f in html5_events) { + if (html5_events.hasOwnProperty(f)) { + add(f, html5_events[f]); + } + } + return true; + }; + remove_html5_events = function() { + var f; + function remove(oEvt, oFn, bCapture) { + return (s._a ? s._a.removeEventListener(oEvt, oFn, bCapture || false) : null); + } + s._a._added_events = false; + for (f in html5_events) { + if (html5_events.hasOwnProperty(f)) { + remove(f, html5_events[f]); + } + } + }; + this._onload = function(nSuccess) { + var fN, + loadOK = !!nSuccess || (!s.isHTML5 && fV === 8 && s.duration); + s.loaded = loadOK; + s.readyState = (loadOK ? 3 : 2); + s._onbufferchange(0); + if (s._iO.onload) { + wrapCallback(s, function() { + s._iO.onload.apply(s, [loadOK]); + }); + } + return true; + }; + this._onbufferchange = function(nIsBuffering) { + if (s.playState === 0) { + return false; + } + if ((nIsBuffering && s.isBuffering) || (!nIsBuffering && !s.isBuffering)) { + return false; + } + s.isBuffering = (nIsBuffering === 1); + if (s._iO.onbufferchange) { + s._iO.onbufferchange.apply(s, [nIsBuffering]); + } + return true; + }; + this._onsuspend = function() { + if (s._iO.onsuspend) { + s._iO.onsuspend.apply(s); + } + return true; + }; + this._onfailure = function(msg, level, code) { + s.failures++; + if (s._iO.onfailure && s.failures === 1) { + s._iO.onfailure(msg, level, code); + } else { + } + }; + this._onwarning = function(msg, level, code) { + if (s._iO.onwarning) { + s._iO.onwarning(msg, level, code); + } + }; + this._onfinish = function() { + var io_onfinish = s._iO.onfinish; + s._onbufferchange(0); + s._resetOnPosition(0); + if (s.instanceCount) { + s.instanceCount--; + if (!s.instanceCount) { + detachOnPosition(); + s.playState = 0; + s.paused = false; + s.instanceCount = 0; + s.instanceOptions = {}; + s._iO = {}; + stop_html5_timer(); + if (s.isHTML5) { + s.position = 0; + } + } + if (!s.instanceCount || s._iO.multiShotEvents) { + if (io_onfinish) { + wrapCallback(s, function() { + io_onfinish.apply(s); + }); + } + } + } + }; + this._whileloading = function(nBytesLoaded, nBytesTotal, nDuration, nBufferLength) { + var instanceOptions = s._iO; + s.bytesLoaded = nBytesLoaded; + s.bytesTotal = nBytesTotal; + s.duration = Math.floor(nDuration); + s.bufferLength = nBufferLength; + if (!s.isHTML5 && !instanceOptions.isMovieStar) { + if (instanceOptions.duration) { + s.durationEstimate = (s.duration > instanceOptions.duration) ? s.duration : instanceOptions.duration; + } else { + s.durationEstimate = parseInt((s.bytesTotal / s.bytesLoaded) * s.duration, 10); + } + } else { + s.durationEstimate = s.duration; + } + if (!s.isHTML5) { + s.buffered = [{ + 'start': 0, + 'end': s.duration + }]; + } + if ((s.readyState !== 3 || s.isHTML5) && instanceOptions.whileloading) { + instanceOptions.whileloading.apply(s); + } + }; + this._whileplaying = function(nPosition, oPeakData, oWaveformDataLeft, oWaveformDataRight, oEQData) { + var instanceOptions = s._iO, + eqLeft; + if (isNaN(nPosition) || nPosition === null) { + return false; + } + s.position = Math.max(0, nPosition); + s._processOnPosition(); + if (!s.isHTML5 && fV > 8) { + if (instanceOptions.usePeakData && oPeakData !== _undefined && oPeakData) { + s.peakData = { + left: oPeakData.leftPeak, + right: oPeakData.rightPeak + }; + } + if (instanceOptions.useWaveformData && oWaveformDataLeft !== _undefined && oWaveformDataLeft) { + s.waveformData = { + left: oWaveformDataLeft.split(','), + right: oWaveformDataRight.split(',') + }; + } + if (instanceOptions.useEQData) { + if (oEQData !== _undefined && oEQData && oEQData.leftEQ) { + eqLeft = oEQData.leftEQ.split(','); + s.eqData = eqLeft; + s.eqData.left = eqLeft; + if (oEQData.rightEQ !== _undefined && oEQData.rightEQ) { + s.eqData.right = oEQData.rightEQ.split(','); + } + } + } + } + if (s.playState === 1) { + if (!s.isHTML5 && fV === 8 && !s.position && s.isBuffering) { + s._onbufferchange(0); + } + if (instanceOptions.whileplaying) { + instanceOptions.whileplaying.apply(s); + } + } + return true; + }; + this._oncaptiondata = function(oData) { + s.captiondata = oData; + if (s._iO.oncaptiondata) { + s._iO.oncaptiondata.apply(s, [oData]); + } + }; + this._onmetadata = function(oMDProps, oMDData) { + var oData = {}, i, j; + for (i = 0, j = oMDProps.length; i < j; i++) { + oData[oMDProps[i]] = oMDData[i]; + } + s.metadata = oData; + if (s._iO.onmetadata) { + s._iO.onmetadata.call(s, s.metadata); + } + }; + this._onid3 = function(oID3Props, oID3Data) { + var oData = [], i, j; + for (i = 0, j = oID3Props.length; i < j; i++) { + oData[oID3Props[i]] = oID3Data[i]; + } + s.id3 = mixin(s.id3, oData); + if (s._iO.onid3) { + s._iO.onid3.apply(s); + } + }; + this._onconnect = function(bSuccess) { + bSuccess = (bSuccess === 1); + s.connected = bSuccess; + if (bSuccess) { + s.failures = 0; + if (idCheck(s.id)) { + if (s.getAutoPlay()) { + s.play(_undefined, s.getAutoPlay()); + } else if (s._iO.autoLoad) { + s.load(); + } + } + if (s._iO.onconnect) { + s._iO.onconnect.apply(s, [bSuccess]); + } + } + }; + this._ondataerror = function(sError) { + if (s.playState > 0) { + if (s._iO.ondataerror) { + s._iO.ondataerror.apply(s); + } + } + }; + }; + getDocument = function() { + return (doc.body || doc.getElementsByTagName('div')[0]); + }; + id = function(sID) { + return doc.getElementById(sID); + }; + mixin = function(oMain, oAdd) { + var o1 = (oMain || {}), o2, o; + o2 = (oAdd === _undefined ? sm2.defaultOptions : oAdd); + for (o in o2) { + if (o2.hasOwnProperty(o) && o1[o] === _undefined) { + if (typeof o2[o] !== 'object' || o2[o] === null) { + o1[o] = o2[o]; + } else { + o1[o] = mixin(o1[o], o2[o]); + } + } + } + return o1; + }; + wrapCallback = function(oSound, callback) { + if (!oSound.isHTML5 && fV === 8) { + window.setTimeout(callback, 0); + } else { + callback(); + } + }; + extraOptions = { + 'onready': 1, + 'ontimeout': 1, + 'defaultOptions': 1, + 'flash9Options': 1, + 'movieStarOptions': 1 + }; + assign = function(o, oParent) { + var i, + result = true, + hasParent = (oParent !== _undefined), + setupOptions = sm2.setupOptions, + bonusOptions = extraOptions; + for (i in o) { + if (o.hasOwnProperty(i)) { + if (typeof o[i] !== 'object' || o[i] === null || o[i] instanceof Array || o[i] instanceof RegExp) { + if (hasParent && bonusOptions[oParent] !== _undefined) { + sm2[oParent][i] = o[i]; + } else if (setupOptions[i] !== _undefined) { + sm2.setupOptions[i] = o[i]; + sm2[i] = o[i]; + } else if (bonusOptions[i] === _undefined) { + result = false; + } else { + if (sm2[i] instanceof Function) { + sm2[i].apply(sm2, (o[i] instanceof Array ? o[i] : [o[i]])); + } else { + sm2[i] = o[i]; + } + } + } else { + if (bonusOptions[i] === _undefined) { + result = false; + } else { + return assign(o[i], i); + } + } + } + } + return result; + }; + function preferFlashCheck(kind) { + return (sm2.preferFlash && hasFlash && !sm2.ignoreFlash && (sm2.flash[kind] !== _undefined && sm2.flash[kind])); + } + event = (function() { + var old = (window.attachEvent), + evt = { + add: (old ? 'attachEvent' : 'addEventListener'), + remove: (old ? 'detachEvent' : 'removeEventListener') + }; + function getArgs(oArgs) { + var args = slice.call(oArgs), + len = args.length; + if (old) { + args[1] = 'on' + args[1]; + if (len > 3) { + args.pop(); + } + } else if (len === 3) { + args.push(false); + } + return args; + } + function apply(args, sType) { + var element = args.shift(), + method = [evt[sType]]; + if (old) { + element[method](args[0], args[1]); + } else { + element[method].apply(element, args); + } + } + function add() { + apply(getArgs(arguments), 'add'); + } + function remove() { + apply(getArgs(arguments), 'remove'); + } + return { + 'add': add, + 'remove': remove + }; + }()); + function html5_event(oFn) { + return function(e) { + var s = this._s, + result; + if (!s || !s._a) { + result = null; + } else { + result = oFn.call(this, e); + } + return result; + }; + } + html5_events = { + abort: html5_event(function() { + }), + canplay: html5_event(function() { + var s = this._s, + position1K; + if (s._html5_canplay) { + return true; + } + s._html5_canplay = true; + s._onbufferchange(0); + position1K = (s._iO.position !== _undefined && !isNaN(s._iO.position) ? s._iO.position/msecScale : null); + if (this.currentTime !== position1K) { + try { + this.currentTime = position1K; + } catch(ee) { + } + } + if (s._iO._oncanplay) { + s._iO._oncanplay(); + } + }), + canplaythrough: html5_event(function() { + var s = this._s; + if (!s.loaded) { + s._onbufferchange(0); + s._whileloading(s.bytesLoaded, s.bytesTotal, s._get_html5_duration()); + s._onload(true); + } + }), + durationchange: html5_event(function() { + var s = this._s, + duration; + duration = s._get_html5_duration(); + if (!isNaN(duration) && duration !== s.duration) { + s.durationEstimate = s.duration = duration; + } + }), + ended: html5_event(function() { + var s = this._s; + s._onfinish(); + }), + error: html5_event(function() { + this._s._onload(false); + }), + loadeddata: html5_event(function() { + var s = this._s; + if (!s._loaded && !isSafari) { + s.duration = s._get_html5_duration(); + } + }), + loadedmetadata: html5_event(function() { + }), + loadstart: html5_event(function() { + this._s._onbufferchange(1); + }), + play: html5_event(function() { + this._s._onbufferchange(0); + }), + playing: html5_event(function() { + this._s._onbufferchange(0); + }), + progress: html5_event(function(e) { + var s = this._s, + i, j, progStr, buffered = 0, + isProgress = (e.type === 'progress'), + ranges = e.target.buffered, + loaded = (e.loaded || 0), + total = (e.total || 1); + s.buffered = []; + if (ranges && ranges.length) { + for (i = 0, j = ranges.length; i < j; i++) { + s.buffered.push({ + 'start': ranges.start(i) * msecScale, + 'end': ranges.end(i) * msecScale + }); + } + buffered = (ranges.end(0) - ranges.start(0)) * msecScale; + loaded = Math.min(1, buffered / (e.target.duration * msecScale)); + } + if (!isNaN(loaded)) { + s._whileloading(loaded, total, s._get_html5_duration()); + if (loaded && total && loaded === total) { + html5_events.canplaythrough.call(this, e); + } + } + }), + ratechange: html5_event(function() { + }), + suspend: html5_event(function(e) { + var s = this._s; + html5_events.progress.call(this, e); + s._onsuspend(); + }), + stalled: html5_event(function() { + }), + timeupdate: html5_event(function() { + this._s._onTimer(); + }), + waiting: html5_event(function() { + var s = this._s; + s._onbufferchange(1); + }) + }; + html5OK = function(iO) { + var result; + if (!iO || (!iO.type && !iO.url && !iO.serverURL)) { + result = false; + } else if (iO.serverURL || (iO.type && preferFlashCheck(iO.type))) { + result = false; + } else { + result = ((iO.type ? html5CanPlay({type:iO.type}) : html5CanPlay({url:iO.url}) || sm2.html5Only || iO.url.match(/data\:/i))); + } + return result; + }; + html5Unload = function(oAudio) { + var url; + if (oAudio) { + url = (isSafari ? emptyURL : (sm2.html5.canPlayType('audio/wav') ? emptyWAV : emptyURL)); + oAudio.src = url; + if (oAudio._called_unload !== _undefined) { + oAudio._called_load = false; + } + } + if (useGlobalHTML5Audio) { + lastGlobalHTML5URL = null; + } + return url; + }; + html5CanPlay = function(o) { + if (!sm2.useHTML5Audio || !sm2.hasHTML5) { + return false; + } + var url = (o.url || null), + mime = (o.type || null), + aF = sm2.audioFormats, + result, + offset, + fileExt, + item; + if (mime && sm2.html5[mime] !== _undefined) { + return (sm2.html5[mime] && !preferFlashCheck(mime)); + } + if (!html5Ext) { + html5Ext = []; + for (item in aF) { + if (aF.hasOwnProperty(item)) { + html5Ext.push(item); + if (aF[item].related) { + html5Ext = html5Ext.concat(aF[item].related); + } + } + } + html5Ext = new RegExp('\\.('+html5Ext.join('|')+')(\\?.*)?$','i'); + } + fileExt = (url ? url.toLowerCase().match(html5Ext) : null); + if (!fileExt || !fileExt.length) { + if (!mime) { + result = false; + } else { + offset = mime.indexOf(';'); + fileExt = (offset !== -1 ? mime.substr(0,offset) : mime).substr(6); + } + } else { + fileExt = fileExt[1]; + } + if (fileExt && sm2.html5[fileExt] !== _undefined) { + result = (sm2.html5[fileExt] && !preferFlashCheck(fileExt)); + } else { + mime = 'audio/' + fileExt; + result = sm2.html5.canPlayType({type:mime}); + sm2.html5[fileExt] = result; + result = (result && sm2.html5[mime] && !preferFlashCheck(mime)); + } + return result; + }; + testHTML5 = function() { + if (!sm2.useHTML5Audio || !sm2.hasHTML5) { + sm2.html5.usingFlash = true; + needsFlash = true; + return false; + } + var a = (Audio !== _undefined ? (isOpera && opera.version() < 10 ? new Audio(null) : new Audio()) : null), + item, lookup, support = {}, aF, i; + function cp(m) { + var canPlay, j, + result = false, + isOK = false; + if (!a || typeof a.canPlayType !== 'function') { + return result; + } + if (m instanceof Array) { + for (i = 0, j = m.length; i < j; i++) { + if (sm2.html5[m[i]] || a.canPlayType(m[i]).match(sm2.html5Test)) { + isOK = true; + sm2.html5[m[i]] = true; + sm2.flash[m[i]] = !!(m[i].match(flashMIME)); + } + } + result = isOK; + } else { + canPlay = (a && typeof a.canPlayType === 'function' ? a.canPlayType(m) : false); + result = !!(canPlay && (canPlay.match(sm2.html5Test))); + } + return result; + } + aF = sm2.audioFormats; + for (item in aF) { + if (aF.hasOwnProperty(item)) { + lookup = 'audio/' + item; + support[item] = cp(aF[item].type); + support[lookup] = support[item]; + if (item.match(flashMIME)) { + sm2.flash[item] = true; + sm2.flash[lookup] = true; + } else { + sm2.flash[item] = false; + sm2.flash[lookup] = false; + } + if (aF[item] && aF[item].related) { + for (i = aF[item].related.length - 1; i >= 0; i--) { + support['audio/' + aF[item].related[i]] = support[item]; + sm2.html5[aF[item].related[i]] = support[item]; + sm2.flash[aF[item].related[i]] = support[item]; + } + } + } + } + support.canPlayType = (a ? cp : null); + sm2.html5 = mixin(sm2.html5, support); + sm2.html5.usingFlash = featureCheck(); + needsFlash = sm2.html5.usingFlash; + return true; + }; + strings = { + }; + str = function() { + }; + loopFix = function(sOpt) { + if (fV === 8 && sOpt.loops > 1 && sOpt.stream) { + sOpt.stream = false; + } + return sOpt; + }; + policyFix = function(sOpt, sPre) { + if (sOpt && !sOpt.usePolicyFile && (sOpt.onid3 || sOpt.usePeakData || sOpt.useWaveformData || sOpt.useEQData)) { + sOpt.usePolicyFile = true; + } + return sOpt; + }; + complain = function(sMsg) { + }; + doNothing = function() { + return false; + }; + disableObject = function(o) { + var oProp; + for (oProp in o) { + if (o.hasOwnProperty(oProp) && typeof o[oProp] === 'function') { + o[oProp] = doNothing; + } + } + oProp = null; + }; + failSafely = function(bNoDisable) { + if (bNoDisable === _undefined) { + bNoDisable = false; + } + if (disabled || bNoDisable) { + sm2.disable(bNoDisable); + } + }; + normalizeMovieURL = function(smURL) { + var urlParams = null, url; + if (smURL) { + if (smURL.match(/\.swf(\?.*)?$/i)) { + urlParams = smURL.substr(smURL.toLowerCase().lastIndexOf('.swf?') + 4); + if (urlParams) { + return smURL; + } + } else if (smURL.lastIndexOf('/') !== smURL.length - 1) { + smURL += '/'; + } + } + url = (smURL && smURL.lastIndexOf('/') !== - 1 ? smURL.substr(0, smURL.lastIndexOf('/') + 1) : './') + sm2.movieURL; + if (sm2.noSWFCache) { + url += ('?ts=' + new Date().getTime()); + } + return url; + }; + setVersionInfo = function() { + fV = parseInt(sm2.flashVersion, 10); + if (fV !== 8 && fV !== 9) { + sm2.flashVersion = fV = defaultFlashVersion; + } + var isDebug = (sm2.debugMode || sm2.debugFlash ? '_debug.swf' : '.swf'); + if (sm2.useHTML5Audio && !sm2.html5Only && sm2.audioFormats.mp4.required && fV < 9) { + sm2.flashVersion = fV = 9; + } + sm2.version = sm2.versionNumber + (sm2.html5Only ? ' (HTML5-only mode)' : (fV === 9 ? ' (AS3/Flash 9)' : ' (AS2/Flash 8)')); + if (fV > 8) { + sm2.defaultOptions = mixin(sm2.defaultOptions, sm2.flash9Options); + sm2.features.buffering = true; + sm2.defaultOptions = mixin(sm2.defaultOptions, sm2.movieStarOptions); + sm2.filePatterns.flash9 = new RegExp('\\.(mp3|' + netStreamTypes.join('|') + ')(\\?.*)?$', 'i'); + sm2.features.movieStar = true; + } else { + sm2.features.movieStar = false; + } + sm2.filePattern = sm2.filePatterns[(fV !== 8 ? 'flash9' : 'flash8')]; + sm2.movieURL = (fV === 8 ? 'soundmanager2.swf' : 'soundmanager2_flash9.swf').replace('.swf', isDebug); + sm2.features.peakData = sm2.features.waveformData = sm2.features.eqData = (fV > 8); + }; + setPolling = function(bPolling, bHighPerformance) { + if (!flash) { + return false; + } + flash._setPolling(bPolling, bHighPerformance); + }; + initDebug = function() { + }; + idCheck = this.getSoundById; + getSWFCSS = function() { + var css = []; + if (sm2.debugMode) { + css.push(swfCSS.sm2Debug); + } + if (sm2.debugFlash) { + css.push(swfCSS.flashDebug); + } + if (sm2.useHighPerformance) { + css.push(swfCSS.highPerf); + } + return css.join(' '); + }; + flashBlockHandler = function() { + var name = str('fbHandler'), + p = sm2.getMoviePercent(), + css = swfCSS, + error = { + type:'FLASHBLOCK' + }; + if (sm2.html5Only) { + return false; + } + if (!sm2.ok()) { + if (needsFlash) { + sm2.oMC.className = getSWFCSS() + ' ' + css.swfDefault + ' ' + (p === null ? css.swfTimedout : css.swfError); + } + sm2.didFlashBlock = true; + processOnEvents({ + type: 'ontimeout', + ignoreInit: true, + error: error + }); + catchError(error); + } else { + if (sm2.oMC) { + sm2.oMC.className = [getSWFCSS(), css.swfDefault, css.swfLoaded + (sm2.didFlashBlock ? ' ' + css.swfUnblocked : '')].join(' '); + } + } + }; + addOnEvent = function(sType, oMethod, oScope) { + if (on_queue[sType] === _undefined) { + on_queue[sType] = []; + } + on_queue[sType].push({ + 'method': oMethod, + 'scope': (oScope || null), + 'fired': false + }); + }; + processOnEvents = function(oOptions) { + if (!oOptions) { + oOptions = { + type: (sm2.ok() ? 'onready' : 'ontimeout') + }; + } + if (!didInit && oOptions && !oOptions.ignoreInit) { + return false; + } + if (oOptions.type === 'ontimeout' && (sm2.ok() || (disabled && !oOptions.ignoreInit))) { + return false; + } + var status = { + success: (oOptions && oOptions.ignoreInit ? sm2.ok() : !disabled) + }, + srcQueue = (oOptions && oOptions.type ? on_queue[oOptions.type] || [] : []), + queue = [], i, j, + args = [status], + canRetry = (needsFlash && !sm2.ok()); + if (oOptions.error) { + args[0].error = oOptions.error; + } + for (i = 0, j = srcQueue.length; i < j; i++) { + if (srcQueue[i].fired !== true) { + queue.push(srcQueue[i]); + } + } + if (queue.length) { + for (i = 0, j = queue.length; i < j; i++) { + if (queue[i].scope) { + queue[i].method.apply(queue[i].scope, args); + } else { + queue[i].method.apply(this, args); + } + if (!canRetry) { + queue[i].fired = true; + } + } + } + return true; + }; + initUserOnload = function() { + window.setTimeout(function() { + if (sm2.useFlashBlock) { + flashBlockHandler(); + } + processOnEvents(); + if (typeof sm2.onload === 'function') { + sm2.onload.apply(window); + } + if (sm2.waitForWindowLoad) { + event.add(window, 'load', initUserOnload); + } + }, 1); + }; + detectFlash = function() { + if (hasFlash !== _undefined) { + return hasFlash; + } + var hasPlugin = false, n = navigator, nP = n.plugins, obj, type, types, AX = window.ActiveXObject; + if (nP && nP.length) { + type = 'application/x-shockwave-flash'; + types = n.mimeTypes; + if (types && types[type] && types[type].enabledPlugin && types[type].enabledPlugin.description) { + hasPlugin = true; + } + } else if (AX !== _undefined && !ua.match(/MSAppHost/i)) { + try { + obj = new AX('ShockwaveFlash.ShockwaveFlash'); + } catch(e) { + obj = null; + } + hasPlugin = (!!obj); + obj = null; + } + hasFlash = hasPlugin; + return hasPlugin; + }; +featureCheck = function() { + var flashNeeded, + item, + formats = sm2.audioFormats, + isSpecial = (is_iDevice && !!(ua.match(/os (1|2|3_0|3_1)\s/i))); + if (isSpecial) { + sm2.hasHTML5 = false; + sm2.html5Only = true; + if (sm2.oMC) { + sm2.oMC.style.display = 'none'; + } + } else { + if (sm2.useHTML5Audio) { + if (!sm2.html5 || !sm2.html5.canPlayType) { + sm2.hasHTML5 = false; + } + } + } + if (sm2.useHTML5Audio && sm2.hasHTML5) { + canIgnoreFlash = true; + for (item in formats) { + if (formats.hasOwnProperty(item)) { + if (formats[item].required) { + if (!sm2.html5.canPlayType(formats[item].type)) { + canIgnoreFlash = false; + flashNeeded = true; + } else if (sm2.preferFlash && (sm2.flash[item] || sm2.flash[formats[item].type])) { + flashNeeded = true; + } + } + } + } + } + if (sm2.ignoreFlash) { + flashNeeded = false; + canIgnoreFlash = true; + } + sm2.html5Only = (sm2.hasHTML5 && sm2.useHTML5Audio && !flashNeeded); + return (!sm2.html5Only); + }; + parseURL = function(url) { + var i, j, urlResult = 0, result; + if (url instanceof Array) { + for (i = 0, j = url.length; i < j; i++) { + if (url[i] instanceof Object) { + if (sm2.canPlayMIME(url[i].type)) { + urlResult = i; + break; + } + } else if (sm2.canPlayURL(url[i])) { + urlResult = i; + break; + } + } + if (url[urlResult].url) { + url[urlResult] = url[urlResult].url; + } + result = url[urlResult]; + } else { + result = url; + } + return result; + }; + startTimer = function(oSound) { + if (!oSound._hasTimer) { + oSound._hasTimer = true; + if (!mobileHTML5 && sm2.html5PollingInterval) { + if (h5IntervalTimer === null && h5TimerCount === 0) { + h5IntervalTimer = setInterval(timerExecute, sm2.html5PollingInterval); + } + h5TimerCount++; + } + } + }; + stopTimer = function(oSound) { + if (oSound._hasTimer) { + oSound._hasTimer = false; + if (!mobileHTML5 && sm2.html5PollingInterval) { + h5TimerCount--; + } + } + }; + timerExecute = function() { + var i; + if (h5IntervalTimer !== null && !h5TimerCount) { + clearInterval(h5IntervalTimer); + h5IntervalTimer = null; + return false; + } + for (i = sm2.soundIDs.length - 1; i >= 0; i--) { + if (sm2.sounds[sm2.soundIDs[i]].isHTML5 && sm2.sounds[sm2.soundIDs[i]]._hasTimer) { + sm2.sounds[sm2.soundIDs[i]]._onTimer(); + } + } + }; + catchError = function(options) { + options = (options !== _undefined ? options : {}); + if (typeof sm2.onerror === 'function') { + sm2.onerror.apply(window, [{ + type: (options.type !== _undefined ? options.type : null) + }]); + } + if (options.fatal !== _undefined && options.fatal) { + sm2.disable(); + } + }; + badSafariFix = function() { + if (!isBadSafari || !detectFlash()) { + return false; + } + var aF = sm2.audioFormats, i, item; + for (item in aF) { + if (aF.hasOwnProperty(item)) { + if (item === 'mp3' || item === 'mp4') { + sm2.html5[item] = false; + if (aF[item] && aF[item].related) { + for (i = aF[item].related.length - 1; i >= 0; i--) { + sm2.html5[aF[item].related[i]] = false; + } + } + } + } + } + }; + this._setSandboxType = function(sandboxType) { + }; + this._externalInterfaceOK = function(swfVersion) { + if (sm2.swfLoaded) { + return false; + } + var e; + sm2.swfLoaded = true; + tryInitOnFocus = false; + if (isBadSafari) { + badSafariFix(); + } + setTimeout(init, isIE ? 100 : 1); + }; + createMovie = function(smID, smURL) { + if (didAppend && appendSuccess) { + return false; + } + function initMsg() { + } + if (sm2.html5Only) { + setVersionInfo(); + initMsg(); + sm2.oMC = id(sm2.movieID); + init(); + didAppend = true; + appendSuccess = true; + return false; + } + var remoteURL = (smURL || sm2.url), + localURL = (sm2.altURL || remoteURL), + swfTitle = 'JS/Flash audio component (SoundManager 2)', + oTarget = getDocument(), + extraClass = getSWFCSS(), + isRTL = null, + html = doc.getElementsByTagName('html')[0], + oEmbed, oMovie, tmp, movieHTML, oEl, s, x, sClass; + isRTL = (html && html.dir && html.dir.match(/rtl/i)); + smID = (smID === _undefined ? sm2.id : smID); + function param(name, value) { + return '<param name="' + name + '" value="' + value + '" />'; + } + setVersionInfo(); + sm2.url = normalizeMovieURL(overHTTP ? remoteURL : localURL); + smURL = sm2.url; + sm2.wmode = (!sm2.wmode && sm2.useHighPerformance ? 'transparent' : sm2.wmode); + if (sm2.wmode !== null && (ua.match(/msie 8/i) || (!isIE && !sm2.useHighPerformance)) && navigator.platform.match(/win32|win64/i)) { + messages.push(strings.spcWmode); + sm2.wmode = null; + } + oEmbed = { + 'name': smID, + 'id': smID, + 'src': smURL, + 'quality': 'high', + 'allowScriptAccess': sm2.allowScriptAccess, + 'bgcolor': sm2.bgColor, + 'pluginspage': http + 'www.macromedia.com/go/getflashplayer', + 'title': swfTitle, + 'type': 'application/x-shockwave-flash', + 'wmode': sm2.wmode, + 'hasPriority': 'true' + }; + if (sm2.debugFlash) { + oEmbed.FlashVars = 'debug=1'; + } + if (!sm2.wmode) { + delete oEmbed.wmode; + } + if (isIE) { + oMovie = doc.createElement('div'); + movieHTML = [ + '<object id="' + smID + '" data="' + smURL + '" type="' + oEmbed.type + '" title="' + oEmbed.title +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">', + param('movie', smURL), + param('AllowScriptAccess', sm2.allowScriptAccess), + param('quality', oEmbed.quality), + (sm2.wmode? param('wmode', sm2.wmode): ''), + param('bgcolor', sm2.bgColor), + param('hasPriority', 'true'), + (sm2.debugFlash ? param('FlashVars', oEmbed.FlashVars) : ''), + '</object>' + ].join(''); + } else { + oMovie = doc.createElement('embed'); + for (tmp in oEmbed) { + if (oEmbed.hasOwnProperty(tmp)) { + oMovie.setAttribute(tmp, oEmbed[tmp]); + } + } + } + initDebug(); + extraClass = getSWFCSS(); + oTarget = getDocument(); + if (oTarget) { + sm2.oMC = (id(sm2.movieID) || doc.createElement('div')); + if (!sm2.oMC.id) { + sm2.oMC.id = sm2.movieID; + sm2.oMC.className = swfCSS.swfDefault + ' ' + extraClass; + s = null; + oEl = null; + if (!sm2.useFlashBlock) { + if (sm2.useHighPerformance) { + s = { + 'position': 'fixed', + 'width': '8px', + 'height': '8px', + 'bottom': '0px', + 'left': '0px', + 'overflow': 'hidden' + }; + } else { + s = { + 'position': 'absolute', + 'width': '6px', + 'height': '6px', + 'top': '-9999px', + 'left': '-9999px' + }; + if (isRTL) { + s.left = Math.abs(parseInt(s.left, 10)) + 'px'; + } + } + } + if (isWebkit) { + sm2.oMC.style.zIndex = 10000; + } + if (!sm2.debugFlash) { + for (x in s) { + if (s.hasOwnProperty(x)) { + sm2.oMC.style[x] = s[x]; + } + } + } + try { + if (!isIE) { + sm2.oMC.appendChild(oMovie); + } + oTarget.appendChild(sm2.oMC); + if (isIE) { + oEl = sm2.oMC.appendChild(doc.createElement('div')); + oEl.className = swfCSS.swfBox; + oEl.innerHTML = movieHTML; + } + appendSuccess = true; + } catch(e) { + throw new Error(str('domError') + ' \n' + e.toString()); + } + } else { + sClass = sm2.oMC.className; + sm2.oMC.className = (sClass ? sClass + ' ' : swfCSS.swfDefault) + (extraClass ? ' ' + extraClass : ''); + sm2.oMC.appendChild(oMovie); + if (isIE) { + oEl = sm2.oMC.appendChild(doc.createElement('div')); + oEl.className = swfCSS.swfBox; + oEl.innerHTML = movieHTML; + } + appendSuccess = true; + } + } + didAppend = true; + initMsg(); + return true; + }; + initMovie = function() { + if (sm2.html5Only) { + createMovie(); + return false; + } + if (flash) { + return false; + } + if (!sm2.url) { + return false; + } + flash = sm2.getMovie(sm2.id); + if (!flash) { + if (!oRemoved) { + createMovie(sm2.id, sm2.url); + } else { + if (!isIE) { + sm2.oMC.appendChild(oRemoved); + } else { + sm2.oMC.innerHTML = oRemovedHTML; + } + oRemoved = null; + didAppend = true; + } + flash = sm2.getMovie(sm2.id); + } + if (typeof sm2.oninitmovie === 'function') { + setTimeout(sm2.oninitmovie, 1); + } + return true; + }; + delayWaitForEI = function() { + setTimeout(waitForEI, 1000); + }; + rebootIntoHTML5 = function() { + window.setTimeout(function() { + sm2.setup({ + preferFlash: false + }).reboot(); + sm2.didFlashBlock = true; + sm2.beginDelayedInit(); + }, 1); + }; + waitForEI = function() { + var p, + loadIncomplete = false; + if (!sm2.url) { + return false; + } + if (waitingForEI) { + return false; + } + waitingForEI = true; + event.remove(window, 'load', delayWaitForEI); + if (hasFlash && tryInitOnFocus && !isFocused) { + return false; + } + if (!didInit) { + p = sm2.getMoviePercent(); + if (p > 0 && p < 100) { + loadIncomplete = true; + } + } + setTimeout(function() { + p = sm2.getMoviePercent(); + if (loadIncomplete) { + waitingForEI = false; + window.setTimeout(delayWaitForEI, 1); + return false; + } + if (!didInit && okToDisable) { + if (p === null) { + if (sm2.useFlashBlock || sm2.flashLoadTimeout === 0) { + if (sm2.useFlashBlock) { + flashBlockHandler(); + } + } else { + if (!sm2.useFlashBlock && canIgnoreFlash) { + rebootIntoHTML5(); + } else { + processOnEvents({ + type: 'ontimeout', + ignoreInit: true, + error: { + type: 'INIT_FLASHBLOCK' + } + }); + } + } + } else { + if (sm2.flashLoadTimeout === 0) { + } else { + if (!sm2.useFlashBlock && canIgnoreFlash) { + rebootIntoHTML5(); + } else { + failSafely(true); + } + } + } + } + }, sm2.flashLoadTimeout); + }; + handleFocus = function() { + function cleanup() { + event.remove(window, 'focus', handleFocus); + } + if (isFocused || !tryInitOnFocus) { + cleanup(); + return true; + } + okToDisable = true; + isFocused = true; + waitingForEI = false; + delayWaitForEI(); + cleanup(); + return true; + }; + flushMessages = function() { + }; + showSupport = function() { + }; + initComplete = function(bNoDisable) { + if (didInit) { + return false; + } + if (sm2.html5Only) { + didInit = true; + initUserOnload(); + return true; + } + var wasTimeout = (sm2.useFlashBlock && sm2.flashLoadTimeout && !sm2.getMoviePercent()), + result = true, + error; + if (!wasTimeout) { + didInit = true; + } + error = { + type: (!hasFlash && needsFlash ? 'NO_FLASH' : 'INIT_TIMEOUT') + }; + if (disabled || bNoDisable) { + if (sm2.useFlashBlock && sm2.oMC) { + sm2.oMC.className = getSWFCSS() + ' ' + (sm2.getMoviePercent() === null ? swfCSS.swfTimedout : swfCSS.swfError); + } + processOnEvents({ + type: 'ontimeout', + error: error, + ignoreInit: true + }); + catchError(error); + result = false; + } else { + } + if (!disabled) { + if (sm2.waitForWindowLoad && !windowLoaded) { + event.add(window, 'load', initUserOnload); + } else { + initUserOnload(); + } + } + return result; + }; + setProperties = function() { + var i, + o = sm2.setupOptions; + for (i in o) { + if (o.hasOwnProperty(i)) { + if (sm2[i] === _undefined) { + sm2[i] = o[i]; + } else if (sm2[i] !== o[i]) { + sm2.setupOptions[i] = sm2[i]; + } + } + } + }; + init = function() { + if (didInit) { + return false; + } + function cleanup() { + event.remove(window, 'load', sm2.beginDelayedInit); + } + if (sm2.html5Only) { + if (!didInit) { + cleanup(); + sm2.enabled = true; + initComplete(); + } + return true; + } + initMovie(); + try { + flash._externalInterfaceTest(false); + setPolling(true, (sm2.flashPollingInterval || (sm2.useHighPerformance ? 10 : 50))); + if (!sm2.debugMode) { + flash._disableDebug(); + } + sm2.enabled = true; + if (!sm2.html5Only) { + event.add(window, 'unload', doNothing); + } + } catch(e) { + catchError({ + type: 'JS_TO_FLASH_EXCEPTION', + fatal: true + }); + failSafely(true); + initComplete(); + return false; + } + initComplete(); + cleanup(); + return true; + }; + domContentLoaded = function() { + if (didDCLoaded) { + return false; + } + didDCLoaded = true; + setProperties(); + initDebug(); + if (!hasFlash && sm2.hasHTML5) { + sm2.setup({ + 'useHTML5Audio': true, + 'preferFlash': false + }); + } + testHTML5(); + if (!hasFlash && needsFlash) { + messages.push(strings.needFlash); + sm2.setup({ + 'flashLoadTimeout': 1 + }); + } + if (doc.removeEventListener) { + doc.removeEventListener('DOMContentLoaded', domContentLoaded, false); + } + initMovie(); + return true; + }; + domContentLoadedIE = function() { + if (doc.readyState === 'complete') { + domContentLoaded(); + doc.detachEvent('onreadystatechange', domContentLoadedIE); + } + return true; + }; + winOnLoad = function() { + windowLoaded = true; + domContentLoaded(); + event.remove(window, 'load', winOnLoad); + }; + detectFlash(); + event.add(window, 'focus', handleFocus); + event.add(window, 'load', delayWaitForEI); + event.add(window, 'load', winOnLoad); + if (doc.addEventListener) { + doc.addEventListener('DOMContentLoaded', domContentLoaded, false); + } else if (doc.attachEvent) { + doc.attachEvent('onreadystatechange', domContentLoadedIE); + } else { + catchError({ + type: 'NO_DOM2_EVENTS', + fatal: true + }); + } +} +// SM2_DEFER details: http://www.schillmania.com/projects/soundmanager2/doc/getstarted/#lazy-loading +if (window.SM2_DEFER === _undefined || !SM2_DEFER) { + soundManager = new SoundManager(); +} +if (typeof module === 'object' && module && typeof module.exports === 'object') { + module.exports.SoundManager = SoundManager; + module.exports.soundManager = soundManager; +} else if (typeof define === 'function' && define.amd) { + define(function() { + function getInstance(smBuilder) { + if (!window.soundManager && smBuilder instanceof Function) { + var instance = smBuilder(SoundManager); + if (instance instanceof SoundManager) { + window.soundManager = instance; + } + } + return window.soundManager; + } + return { + constructor: SoundManager, + getInstance: getInstance + } + }); +} +// standard browser case +// constructor +window.SoundManager = SoundManager; +// public API, flash callbacks etc. +window.soundManager = soundManager; +}(window)); diff --git a/media/soundmanager/script/soundmanager2.js b/media/soundmanager/script/soundmanager2.js new file mode 100644 index 00000000..b33d8c10 --- /dev/null +++ b/media/soundmanager/script/soundmanager2.js @@ -0,0 +1,6325 @@ +/** @license + * + * SoundManager 2: JavaScript Sound for the Web + * ---------------------------------------------- + * http://schillmania.com/projects/soundmanager2/ + * + * Copyright (c) 2007, Scott Schiller. All rights reserved. + * Code provided under the BSD License: + * http://schillmania.com/projects/soundmanager2/license.txt + * + * V2.97a.20150601 + */ + +/*global window, SM2_DEFER, sm2Debugger, console, document, navigator, setTimeout, setInterval, clearInterval, Audio, opera, module, define */ +/*jslint regexp: true, sloppy: true, white: true, nomen: true, plusplus: true, todo: true */ + +/** + * About this file + * ------------------------------------------------------------------------------------- + * This is the fully-commented source version of the SoundManager 2 API, + * recommended for use during development and testing. + * + * See soundmanager2-nodebug-jsmin.js for an optimized build (~11KB with gzip.) + * http://schillmania.com/projects/soundmanager2/doc/getstarted/#basic-inclusion + * Alternately, serve this file with gzip for 75% compression savings (~30KB over HTTP.) + * + * You may notice <d> and </d> comments in this source; these are delimiters for + * debug blocks which are removed in the -nodebug builds, further optimizing code size. + * + * Also, as you may note: Whoa, reliable cross-platform/device audio support is hard! ;) + */ + +(function(window, _undefined) { + +"use strict"; + +if (!window || !window.document) { + + // Don't cross the [environment] streams. SM2 expects to be running in a browser, not under node.js etc. + // Additionally, if a browser somehow manages to fail this test, as Egon said: "It would be bad." + + throw new Error('SoundManager requires a browser with window and document objects.'); + +} + +var soundManager = null; + +/** + * The SoundManager constructor. + * + * @constructor + * @param {string} smURL Optional: Path to SWF files + * @param {string} smID Optional: The ID to use for the SWF container element + * @this {SoundManager} + * @return {SoundManager} The new SoundManager instance + */ + +function SoundManager(smURL, smID) { + + /** + * soundManager configuration options list + * defines top-level configuration properties to be applied to the soundManager instance (eg. soundManager.flashVersion) + * to set these properties, use the setup() method - eg., soundManager.setup({url: '/swf/', flashVersion: 9}) + */ + + this.setupOptions = { + + 'url': (smURL || null), // path (directory) where SoundManager 2 SWFs exist, eg., /path/to/swfs/ + 'flashVersion': 8, // flash build to use (8 or 9.) Some API features require 9. + 'debugMode': true, // enable debugging output (console.log() with HTML fallback) + 'debugFlash': false, // enable debugging output inside SWF, troubleshoot Flash/browser issues + 'useConsole': true, // use console.log() if available (otherwise, writes to #soundmanager-debug element) + 'consoleOnly': true, // if console is being used, do not create/write to #soundmanager-debug + 'waitForWindowLoad': false, // force SM2 to wait for window.onload() before trying to call soundManager.onload() + 'bgColor': '#ffffff', // SWF background color. N/A when wmode = 'transparent' + 'useHighPerformance': false, // position:fixed flash movie can help increase js/flash speed, minimize lag + 'flashPollingInterval': null, // msec affecting whileplaying/loading callback frequency. If null, default of 50 msec is used. + 'html5PollingInterval': null, // msec affecting whileplaying() for HTML5 audio, excluding mobile devices. If null, native HTML5 update events are used. + 'flashLoadTimeout': 1000, // msec to wait for flash movie to load before failing (0 = infinity) + 'wmode': null, // flash rendering mode - null, 'transparent', or 'opaque' (last two allow z-index to work) + 'allowScriptAccess': 'always', // for scripting the SWF (object/embed property), 'always' or 'sameDomain' + 'useFlashBlock': false, // *requires flashblock.css, see demos* - allow recovery from flash blockers. Wait indefinitely and apply timeout CSS to SWF, if applicable. + 'useHTML5Audio': true, // use HTML5 Audio() where API is supported (most Safari, Chrome versions), Firefox (MP3/MP4 support varies.) Ideally, transparent vs. Flash API where possible. + 'forceUseGlobalHTML5Audio': false, // if true, a single Audio() object is used for all sounds - and only one can play at a time. + 'ignoreMobileRestrictions': false, // if true, SM2 will not apply global HTML5 audio rules to mobile UAs. iOS > 7 and WebViews may allow multiple Audio() instances. + 'html5Test': /^(probably|maybe)$/i, // HTML5 Audio() format support test. Use /^probably$/i; if you want to be more conservative. + 'preferFlash': false, // overrides useHTML5audio, will use Flash for MP3/MP4/AAC if present. Potential option if HTML5 playback with these formats is quirky. + 'noSWFCache': false, // if true, appends ?ts={date} to break aggressive SWF caching. + 'idPrefix': 'sound' // if an id is not provided to createSound(), this prefix is used for generated IDs - 'sound0', 'sound1' etc. + + }; + + this.defaultOptions = { + + /** + * the default configuration for sound objects made with createSound() and related methods + * eg., volume, auto-load behaviour and so forth + */ + + 'autoLoad': false, // enable automatic loading (otherwise .load() will be called on demand with .play(), the latter being nicer on bandwidth - if you want to .load yourself, you also can) + 'autoPlay': false, // enable playing of file as soon as possible (much faster if "stream" is true) + 'from': null, // position to start playback within a sound (msec), default = beginning + 'loops': 1, // how many times to repeat the sound (position will wrap around to 0, setPosition() will break out of loop when >0) + 'onid3': null, // callback function for "ID3 data is added/available" + 'onload': null, // callback function for "load finished" + 'whileloading': null, // callback function for "download progress update" (X of Y bytes received) + 'onplay': null, // callback for "play" start + 'onpause': null, // callback for "pause" + 'onresume': null, // callback for "resume" (pause toggle) + 'whileplaying': null, // callback during play (position update) + 'onposition': null, // object containing times and function callbacks for positions of interest + 'onstop': null, // callback for "user stop" + 'onfailure': null, // callback function for when playing fails + 'onfinish': null, // callback function for "sound finished playing" + 'multiShot': true, // let sounds "restart" or layer on top of each other when played multiple times, rather than one-shot/one at a time + 'multiShotEvents': false, // fire multiple sound events (currently onfinish() only) when multiShot is enabled + 'position': null, // offset (milliseconds) to seek to within loaded sound data. + 'pan': 0, // "pan" settings, left-to-right, -100 to 100 + 'stream': true, // allows playing before entire file has loaded (recommended) + 'to': null, // position to end playback within a sound (msec), default = end + 'type': null, // MIME-like hint for file pattern / canPlay() tests, eg. audio/mp3 + 'usePolicyFile': false, // enable crossdomain.xml request for audio on remote domains (for ID3/waveform access) + 'volume': 100 // self-explanatory. 0-100, the latter being the max. + + }; + + this.flash9Options = { + + /** + * flash 9-only options, + * merged into defaultOptions if flash 9 is being used + */ + + 'isMovieStar': null, // "MovieStar" MPEG4 audio mode. Null (default) = auto detect MP4, AAC etc. based on URL. true = force on, ignore URL + 'usePeakData': false, // enable left/right channel peak (level) data + 'useWaveformData': false, // enable sound spectrum (raw waveform data) - NOTE: May increase CPU load. + 'useEQData': false, // enable sound EQ (frequency spectrum data) - NOTE: May increase CPU load. + 'onbufferchange': null, // callback for "isBuffering" property change + 'ondataerror': null // callback for waveform/eq data access error (flash playing audio in other tabs/domains) + + }; + + this.movieStarOptions = { + + /** + * flash 9.0r115+ MPEG4 audio options, + * merged into defaultOptions if flash 9+movieStar mode is enabled + */ + + 'bufferTime': 3, // seconds of data to buffer before playback begins (null = flash default of 0.1 seconds - if AAC playback is gappy, try increasing.) + 'serverURL': null, // rtmp: FMS or FMIS server to connect to, required when requesting media via RTMP or one of its variants + 'onconnect': null, // rtmp: callback for connection to flash media server + 'duration': null // rtmp: song duration (msec) + + }; + + this.audioFormats = { + + /** + * determines HTML5 support + flash requirements. + * if no support (via flash and/or HTML5) for a "required" format, SM2 will fail to start. + * flash fallback is used for MP3 or MP4 if HTML5 can't play it (or if preferFlash = true) + */ + + 'mp3': { + 'type': ['audio/mpeg; codecs="mp3"', 'audio/mpeg', 'audio/mp3', 'audio/MPA', 'audio/mpa-robust'], + 'required': true + }, + + 'mp4': { + 'related': ['aac','m4a','m4b'], // additional formats under the MP4 container + 'type': ['audio/mp4; codecs="mp4a.40.2"', 'audio/aac', 'audio/x-m4a', 'audio/MP4A-LATM', 'audio/mpeg4-generic'], + 'required': false + }, + + 'ogg': { + 'type': ['audio/ogg; codecs=vorbis'], + 'required': false + }, + + 'opus': { + 'type': ['audio/ogg; codecs=opus', 'audio/opus'], + 'required': false + }, + + 'wav': { + 'type': ['audio/wav; codecs="1"', 'audio/wav', 'audio/wave', 'audio/x-wav'], + 'required': false + } + + }; + + // HTML attributes (id + class names) for the SWF container + + this.movieID = 'sm2-container'; + this.id = (smID || 'sm2movie'); + + this.debugID = 'soundmanager-debug'; + this.debugURLParam = /([#?&])debug=1/i; + + // dynamic attributes + + this.versionNumber = 'V2.97a.20150601'; + this.version = null; + this.movieURL = null; + this.altURL = null; + this.swfLoaded = false; + this.enabled = false; + this.oMC = null; + this.sounds = {}; + this.soundIDs = []; + this.muted = false; + this.didFlashBlock = false; + this.filePattern = null; + + this.filePatterns = { + 'flash8': /\.mp3(\?.*)?$/i, + 'flash9': /\.mp3(\?.*)?$/i + }; + + // support indicators, set at init + + this.features = { + 'buffering': false, + 'peakData': false, + 'waveformData': false, + 'eqData': false, + 'movieStar': false + }; + + // flash sandbox info, used primarily in troubleshooting + + this.sandbox = { + // <d> + 'type': null, + 'types': { + 'remote': 'remote (domain-based) rules', + 'localWithFile': 'local with file access (no internet access)', + 'localWithNetwork': 'local with network (internet access only, no local access)', + 'localTrusted': 'local, trusted (local+internet access)' + }, + 'description': null, + 'noRemote': null, + 'noLocal': null + // </d> + }; + + /** + * format support (html5/flash) + * stores canPlayType() results based on audioFormats. + * eg. { mp3: boolean, mp4: boolean } + * treat as read-only. + */ + + this.html5 = { + 'usingFlash': null // set if/when flash fallback is needed + }; + + // file type support hash + this.flash = {}; + + // determined at init time + this.html5Only = false; + + // used for special cases (eg. iPad/iPhone/palm OS?) + this.ignoreFlash = false; + + /** + * a few private internals (OK, a lot. :D) + */ + + var SMSound, + sm2 = this, globalHTML5Audio = null, flash = null, sm = 'soundManager', smc = sm + ': ', h5 = 'HTML5::', id, ua = navigator.userAgent, wl = window.location.href.toString(), doc = document, doNothing, setProperties, init, fV, on_queue = [], debugOpen = true, debugTS, didAppend = false, appendSuccess = false, didInit = false, disabled = false, windowLoaded = false, _wDS, wdCount = 0, initComplete, mixin, assign, extraOptions, addOnEvent, processOnEvents, initUserOnload, delayWaitForEI, waitForEI, rebootIntoHTML5, setVersionInfo, handleFocus, strings, initMovie, domContentLoaded, winOnLoad, didDCLoaded, getDocument, createMovie, catchError, setPolling, initDebug, debugLevels = ['log', 'info', 'warn', 'error'], defaultFlashVersion = 8, disableObject, failSafely, normalizeMovieURL, oRemoved = null, oRemovedHTML = null, str, flashBlockHandler, getSWFCSS, swfCSS, toggleDebug, loopFix, policyFix, complain, idCheck, waitingForEI = false, initPending = false, startTimer, stopTimer, timerExecute, h5TimerCount = 0, h5IntervalTimer = null, parseURL, messages = [], + canIgnoreFlash, needsFlash = null, featureCheck, html5OK, html5CanPlay, html5Ext, html5Unload, domContentLoadedIE, testHTML5, event, slice = Array.prototype.slice, useGlobalHTML5Audio = false, lastGlobalHTML5URL, hasFlash, detectFlash, badSafariFix, html5_events, showSupport, flushMessages, wrapCallback, idCounter = 0, didSetup, msecScale = 1000, + is_iDevice = ua.match(/(ipad|iphone|ipod)/i), isAndroid = ua.match(/android/i), isIE = ua.match(/msie/i), + isWebkit = ua.match(/webkit/i), + isSafari = (ua.match(/safari/i) && !ua.match(/chrome/i)), + isOpera = (ua.match(/opera/i)), + mobileHTML5 = (ua.match(/(mobile|pre\/|xoom)/i) || is_iDevice || isAndroid), + isBadSafari = (!wl.match(/usehtml5audio/i) && !wl.match(/sm2\-ignorebadua/i) && isSafari && !ua.match(/silk/i) && ua.match(/OS X 10_6_([3-7])/i)), // Safari 4 and 5 (excluding Kindle Fire, "Silk") occasionally fail to load/play HTML5 audio on Snow Leopard 10.6.3 through 10.6.7 due to bug(s) in QuickTime X and/or other underlying frameworks. :/ Confirmed bug. https://bugs.webkit.org/show_bug.cgi?id=32159 + hasConsole = (window.console !== _undefined && console.log !== _undefined), + isFocused = (doc.hasFocus !== _undefined ? doc.hasFocus() : null), + tryInitOnFocus = (isSafari && (doc.hasFocus === _undefined || !doc.hasFocus())), + okToDisable = !tryInitOnFocus, + flashMIME = /(mp3|mp4|mpa|m4a|m4b)/i, + emptyURL = 'about:blank', // safe URL to unload, or load nothing from (flash 8 + most HTML5 UAs) + emptyWAV = 'data:audio/wave;base64,/UklGRiYAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQIAAAD//w==', // tiny WAV for HTML5 unloading + overHTTP = (doc.location ? doc.location.protocol.match(/http/i) : null), + http = (!overHTTP ? 'http:/'+'/' : ''), + // mp3, mp4, aac etc. + netStreamMimeTypes = /^\s*audio\/(?:x-)?(?:mpeg4|aac|flv|mov|mp4||m4v|m4a|m4b|mp4v|3gp|3g2)\s*(?:$|;)/i, + // Flash v9.0r115+ "moviestar" formats + netStreamTypes = ['mpeg4', 'aac', 'flv', 'mov', 'mp4', 'm4v', 'f4v', 'm4a', 'm4b', 'mp4v', '3gp', '3g2'], + netStreamPattern = new RegExp('\\.(' + netStreamTypes.join('|') + ')(\\?.*)?$', 'i'); + + this.mimePattern = /^\s*audio\/(?:x-)?(?:mp(?:eg|3))\s*(?:$|;)/i; // default mp3 set + + // use altURL if not "online" + this.useAltURL = !overHTTP; + + swfCSS = { + 'swfBox': 'sm2-object-box', + 'swfDefault': 'movieContainer', + 'swfError': 'swf_error', // SWF loaded, but SM2 couldn't start (other error) + 'swfTimedout': 'swf_timedout', + 'swfLoaded': 'swf_loaded', + 'swfUnblocked': 'swf_unblocked', // or loaded OK + 'sm2Debug': 'sm2_debug', + 'highPerf': 'high_performance', + 'flashDebug': 'flash_debug' + }; + + /** + * basic HTML5 Audio() support test + * try...catch because of IE 9 "not implemented" nonsense + * https://github.com/Modernizr/Modernizr/issues/224 + */ + + this.hasHTML5 = (function() { + try { + // new Audio(null) for stupid Opera 9.64 case, which throws not_enough_arguments exception otherwise. + return (Audio !== _undefined && (isOpera && opera !== _undefined && opera.version() < 10 ? new Audio(null) : new Audio()).canPlayType !== _undefined); + } catch(e) { + return false; + } + }()); + + /** + * Public SoundManager API + * ----------------------- + */ + + /** + * Configures top-level soundManager properties. + * + * @param {object} options Option parameters, eg. { flashVersion: 9, url: '/path/to/swfs/' } + * onready and ontimeout are also accepted parameters. call soundManager.setup() to see the full list. + */ + + this.setup = function(options) { + + var noURL = (!sm2.url); + + // warn if flash options have already been applied + + if (options !== _undefined && didInit && needsFlash && sm2.ok() && (options.flashVersion !== _undefined || options.url !== _undefined || options.html5Test !== _undefined)) { + complain(str('setupLate')); + } + + // TODO: defer: true? + + assign(options); + + if (!useGlobalHTML5Audio) { + + if (mobileHTML5) { + + // force the singleton HTML5 pattern on mobile, by default. + if (!sm2.setupOptions.ignoreMobileRestrictions || sm2.setupOptions.forceUseGlobalHTML5Audio) { + messages.push(strings.globalHTML5); + useGlobalHTML5Audio = true; + } + + } else { + + // only apply singleton HTML5 on desktop if forced. + if (sm2.setupOptions.forceUseGlobalHTML5Audio) { + messages.push(strings.globalHTML5); + useGlobalHTML5Audio = true; + } + + } + + } + + if (!didSetup && mobileHTML5) { + + if (sm2.setupOptions.ignoreMobileRestrictions) { + + messages.push(strings.ignoreMobile); + + } else { + + // prefer HTML5 for mobile + tablet-like devices, probably more reliable vs. flash at this point. + + // <d> + if (!sm2.setupOptions.useHTML5Audio || sm2.setupOptions.preferFlash) { + // notify that defaults are being changed. + sm2._wD(strings.mobileUA); + } + // </d> + + sm2.setupOptions.useHTML5Audio = true; + sm2.setupOptions.preferFlash = false; + + if (is_iDevice) { + + // no flash here. + sm2.ignoreFlash = true; + + } else if ((isAndroid && !ua.match(/android\s2\.3/i)) || !isAndroid) { + + /** + * Android devices tend to work better with a single audio instance, specifically for chained playback of sounds in sequence. + * Common use case: exiting sound onfinish() -> createSound() -> play() + * Presuming similar restrictions for other mobile, non-Android, non-iOS devices. + */ + + // <d> + sm2._wD(strings.globalHTML5); + // </d> + + useGlobalHTML5Audio = true; + + } + + } + + } + + // special case 1: "Late setup". SM2 loaded normally, but user didn't assign flash URL eg., setup({url:...}) before SM2 init. Treat as delayed init. + + if (options) { + + if (noURL && didDCLoaded && options.url !== _undefined) { + sm2.beginDelayedInit(); + } + + // special case 2: If lazy-loading SM2 (DOMContentLoaded has already happened) and user calls setup() with url: parameter, try to init ASAP. + + if (!didDCLoaded && options.url !== _undefined && doc.readyState === 'complete') { + setTimeout(domContentLoaded, 1); + } + + } + + didSetup = true; + + return sm2; + + }; + + this.ok = function() { + + return (needsFlash ? (didInit && !disabled) : (sm2.useHTML5Audio && sm2.hasHTML5)); + + }; + + this.supported = this.ok; // legacy + + this.getMovie = function(smID) { + + // safety net: some old browsers differ on SWF references, possibly related to ExternalInterface / flash version + return id(smID) || doc[smID] || window[smID]; + + }; + + /** + * Creates a SMSound sound object instance. Can also be overloaded, e.g., createSound('mySound', '/some.mp3'); + * + * @param {object} oOptions Sound options (at minimum, url parameter is required.) + * @return {object} SMSound The new SMSound object. + */ + + this.createSound = function(oOptions, _url) { + + var cs, cs_string, options, oSound = null; + + // <d> + cs = sm + '.createSound(): '; + cs_string = cs + str(!didInit ? 'notReady' : 'notOK'); + // </d> + + if (!didInit || !sm2.ok()) { + complain(cs_string); + return false; + } + + if (_url !== _undefined) { + // function overloading in JS! :) ... assume simple createSound(id, url) use case. + oOptions = { + 'id': oOptions, + 'url': _url + }; + } + + // inherit from defaultOptions + options = mixin(oOptions); + + options.url = parseURL(options.url); + + // generate an id, if needed. + if (options.id === _undefined) { + options.id = sm2.setupOptions.idPrefix + (idCounter++); + } + + // <d> + if (options.id.toString().charAt(0).match(/^[0-9]$/)) { + sm2._wD(cs + str('badID', options.id), 2); + } + + sm2._wD(cs + options.id + (options.url ? ' (' + options.url + ')' : ''), 1); + // </d> + + if (idCheck(options.id, true)) { + sm2._wD(cs + options.id + ' exists', 1); + return sm2.sounds[options.id]; + } + + function make() { + + options = loopFix(options); + sm2.sounds[options.id] = new SMSound(options); + sm2.soundIDs.push(options.id); + return sm2.sounds[options.id]; + + } + + if (html5OK(options)) { + + oSound = make(); + // <d> + if (!sm2.html5Only) { + sm2._wD(options.id + ': Using HTML5'); + } + // </d> + oSound._setup_html5(options); + + } else { + + if (sm2.html5Only) { + sm2._wD(options.id + ': No HTML5 support for this sound, and no Flash. Exiting.'); + return make(); + } + + // TODO: Move HTML5/flash checks into generic URL parsing/handling function. + + if (sm2.html5.usingFlash && options.url && options.url.match(/data\:/i)) { + // data: URIs not supported by Flash, either. + sm2._wD(options.id + ': data: URIs not supported via Flash. Exiting.'); + return make(); + } + + if (fV > 8) { + if (options.isMovieStar === null) { + // attempt to detect MPEG-4 formats + options.isMovieStar = !!(options.serverURL || (options.type ? options.type.match(netStreamMimeTypes) : false) || (options.url && options.url.match(netStreamPattern))); + } + // <d> + if (options.isMovieStar) { + sm2._wD(cs + 'using MovieStar handling'); + if (options.loops > 1) { + _wDS('noNSLoop'); + } + } + // </d> + } + + options = policyFix(options, cs); + oSound = make(); + + if (fV === 8) { + flash._createSound(options.id, options.loops || 1, options.usePolicyFile); + } else { + flash._createSound(options.id, options.url, options.usePeakData, options.useWaveformData, options.useEQData, options.isMovieStar, (options.isMovieStar ? options.bufferTime : false), options.loops || 1, options.serverURL, options.duration || null, options.autoPlay, true, options.autoLoad, options.usePolicyFile); + if (!options.serverURL) { + // We are connected immediately + oSound.connected = true; + if (options.onconnect) { + options.onconnect.apply(oSound); + } + } + } + + if (!options.serverURL && (options.autoLoad || options.autoPlay)) { + // call load for non-rtmp streams + oSound.load(options); + } + + } + + // rtmp will play in onconnect + if (!options.serverURL && options.autoPlay) { + oSound.play(); + } + + return oSound; + + }; + + /** + * Destroys a SMSound sound object instance. + * + * @param {string} sID The ID of the sound to destroy + */ + + this.destroySound = function(sID, _bFromSound) { + + // explicitly destroy a sound before normal page unload, etc. + + if (!idCheck(sID)) { + return false; + } + + var oS = sm2.sounds[sID], i; + + oS.stop(); + + // Disable all callbacks after stop(), when the sound is being destroyed + oS._iO = {}; + + oS.unload(); + + for (i = 0; i < sm2.soundIDs.length; i++) { + if (sm2.soundIDs[i] === sID) { + sm2.soundIDs.splice(i, 1); + break; + } + } + + if (!_bFromSound) { + // ignore if being called from SMSound instance + oS.destruct(true); + } + + oS = null; + delete sm2.sounds[sID]; + + return true; + + }; + + /** + * Calls the load() method of a SMSound object by ID. + * + * @param {string} sID The ID of the sound + * @param {object} oOptions Optional: Sound options + */ + + this.load = function(sID, oOptions) { + + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].load(oOptions); + + }; + + /** + * Calls the unload() method of a SMSound object by ID. + * + * @param {string} sID The ID of the sound + */ + + this.unload = function(sID) { + + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].unload(); + + }; + + /** + * Calls the onPosition() method of a SMSound object by ID. + * + * @param {string} sID The ID of the sound + * @param {number} nPosition The position to watch for + * @param {function} oMethod The relevant callback to fire + * @param {object} oScope Optional: The scope to apply the callback to + * @return {SMSound} The SMSound object + */ + + this.onPosition = function(sID, nPosition, oMethod, oScope) { + + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].onposition(nPosition, oMethod, oScope); + + }; + + // legacy/backwards-compability: lower-case method name + this.onposition = this.onPosition; + + /** + * Calls the clearOnPosition() method of a SMSound object by ID. + * + * @param {string} sID The ID of the sound + * @param {number} nPosition The position to watch for + * @param {function} oMethod Optional: The relevant callback to fire + * @return {SMSound} The SMSound object + */ + + this.clearOnPosition = function(sID, nPosition, oMethod) { + + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].clearOnPosition(nPosition, oMethod); + + }; + + /** + * Calls the play() method of a SMSound object by ID. + * + * @param {string} sID The ID of the sound + * @param {object} oOptions Optional: Sound options + * @return {SMSound} The SMSound object + */ + + this.play = function(sID, oOptions) { + + var result = null, + // legacy function-overloading use case: play('mySound', '/path/to/some.mp3'); + overloaded = (oOptions && !(oOptions instanceof Object)); + + if (!didInit || !sm2.ok()) { + complain(sm + '.play(): ' + str(!didInit?'notReady':'notOK')); + return false; + } + + if (!idCheck(sID, overloaded)) { + + if (!overloaded) { + // no sound found for the given ID. Bail. + return false; + } + + if (overloaded) { + oOptions = { + url: oOptions + }; + } + + if (oOptions && oOptions.url) { + // overloading use case, create+play: .play('someID', {url:'/path/to.mp3'}); + sm2._wD(sm + '.play(): Attempting to create "' + sID + '"', 1); + oOptions.id = sID; + result = sm2.createSound(oOptions).play(); + } + + } else if (overloaded) { + + // existing sound object case + oOptions = { + url: oOptions + }; + + } + + if (result === null) { + // default case + result = sm2.sounds[sID].play(oOptions); + } + + return result; + + }; + + // just for convenience + this.start = this.play; + + /** + * Calls the setPosition() method of a SMSound object by ID. + * + * @param {string} sID The ID of the sound + * @param {number} nMsecOffset Position (milliseconds) + * @return {SMSound} The SMSound object + */ + + this.setPosition = function(sID, nMsecOffset) { + + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].setPosition(nMsecOffset); + + }; + + /** + * Calls the stop() method of a SMSound object by ID. + * + * @param {string} sID The ID of the sound + * @return {SMSound} The SMSound object + */ + + this.stop = function(sID) { + + if (!idCheck(sID)) { + return false; + } + + sm2._wD(sm + '.stop(' + sID + ')', 1); + return sm2.sounds[sID].stop(); + + }; + + /** + * Stops all currently-playing sounds. + */ + + this.stopAll = function() { + + var oSound; + sm2._wD(sm + '.stopAll()', 1); + + for (oSound in sm2.sounds) { + if (sm2.sounds.hasOwnProperty(oSound)) { + // apply only to sound objects + sm2.sounds[oSound].stop(); + } + } + + }; + + /** + * Calls the pause() method of a SMSound object by ID. + * + * @param {string} sID The ID of the sound + * @return {SMSound} The SMSound object + */ + + this.pause = function(sID) { + + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].pause(); + + }; + + /** + * Pauses all currently-playing sounds. + */ + + this.pauseAll = function() { + + var i; + for (i = sm2.soundIDs.length - 1; i >= 0; i--) { + sm2.sounds[sm2.soundIDs[i]].pause(); + } + + }; + + /** + * Calls the resume() method of a SMSound object by ID. + * + * @param {string} sID The ID of the sound + * @return {SMSound} The SMSound object + */ + + this.resume = function(sID) { + + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].resume(); + + }; + + /** + * Resumes all currently-paused sounds. + */ + + this.resumeAll = function() { + + var i; + for (i = sm2.soundIDs.length- 1 ; i >= 0; i--) { + sm2.sounds[sm2.soundIDs[i]].resume(); + } + + }; + + /** + * Calls the togglePause() method of a SMSound object by ID. + * + * @param {string} sID The ID of the sound + * @return {SMSound} The SMSound object + */ + + this.togglePause = function(sID) { + + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].togglePause(); + + }; + + /** + * Calls the setPan() method of a SMSound object by ID. + * + * @param {string} sID The ID of the sound + * @param {number} nPan The pan value (-100 to 100) + * @return {SMSound} The SMSound object + */ + + this.setPan = function(sID, nPan) { + + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].setPan(nPan); + + }; + + /** + * Calls the setVolume() method of a SMSound object by ID + * Overloaded case: pass only volume argument eg., setVolume(50) to apply to all sounds. + * + * @param {string} sID The ID of the sound + * @param {number} nVol The volume value (0 to 100) + * @return {SMSound} The SMSound object + */ + + this.setVolume = function(sID, nVol) { + + // setVolume(50) function overloading case - apply to all sounds + + var i, j; + + if (sID !== _undefined && !isNaN(sID) && nVol === _undefined) { + for (i = 0, j = sm2.soundIDs.length; i < j; i++) { + sm2.sounds[sm2.soundIDs[i]].setVolume(sID); + } + return; + } + + // setVolume('mySound', 50) case + + if (!idCheck(sID)) { + return false; + } + + return sm2.sounds[sID].setVolume(nVol); + + }; + + /** + * Calls the mute() method of either a single SMSound object by ID, or all sound objects. + * + * @param {string} sID Optional: The ID of the sound (if omitted, all sounds will be used.) + */ + + this.mute = function(sID) { + + var i = 0; + + if (sID instanceof String) { + sID = null; + } + + if (!sID) { + + sm2._wD(sm + '.mute(): Muting all sounds'); + for (i = sm2.soundIDs.length - 1; i >= 0; i--) { + sm2.sounds[sm2.soundIDs[i]].mute(); + } + sm2.muted = true; + + } else { + + if (!idCheck(sID)) { + return false; + } + sm2._wD(sm + '.mute(): Muting "' + sID + '"'); + return sm2.sounds[sID].mute(); + + } + + return true; + + }; + + /** + * Mutes all sounds. + */ + + this.muteAll = function() { + + sm2.mute(); + + }; + + /** + * Calls the unmute() method of either a single SMSound object by ID, or all sound objects. + * + * @param {string} sID Optional: The ID of the sound (if omitted, all sounds will be used.) + */ + + this.unmute = function(sID) { + + var i; + + if (sID instanceof String) { + sID = null; + } + + if (!sID) { + + sm2._wD(sm + '.unmute(): Unmuting all sounds'); + for (i = sm2.soundIDs.length - 1; i >= 0; i--) { + sm2.sounds[sm2.soundIDs[i]].unmute(); + } + sm2.muted = false; + + } else { + + if (!idCheck(sID)) { + return false; + } + sm2._wD(sm + '.unmute(): Unmuting "' + sID + '"'); + return sm2.sounds[sID].unmute(); + + } + + return true; + + }; + + /** + * Unmutes all sounds. + */ + + this.unmuteAll = function() { + + sm2.unmute(); + + }; + + /** + * Calls the toggleMute() method of a SMSound object by ID. + * + * @param {string} sID The ID of the sound + * @return {SMSound} The SMSound object + */ + + this.toggleMute = function(sID) { + + if (!idCheck(sID)) { + return false; + } + return sm2.sounds[sID].toggleMute(); + + }; + + /** + * Retrieves the memory used by the flash plugin. + * + * @return {number} The amount of memory in use + */ + + this.getMemoryUse = function() { + + // flash-only + var ram = 0; + + if (flash && fV !== 8) { + ram = parseInt(flash._getMemoryUse(), 10); + } + + return ram; + + }; + + /** + * Undocumented: NOPs soundManager and all SMSound objects. + */ + + this.disable = function(bNoDisable) { + + // destroy all functions + var i; + + if (bNoDisable === _undefined) { + bNoDisable = false; + } + + if (disabled) { + return false; + } + + disabled = true; + _wDS('shutdown', 1); + + for (i = sm2.soundIDs.length - 1; i >= 0; i--) { + disableObject(sm2.sounds[sm2.soundIDs[i]]); + } + + // fire "complete", despite fail + initComplete(bNoDisable); + event.remove(window, 'load', initUserOnload); + + return true; + + }; + + /** + * Determines playability of a MIME type, eg. 'audio/mp3'. + */ + + this.canPlayMIME = function(sMIME) { + + var result; + + if (sm2.hasHTML5) { + result = html5CanPlay({ + type: sMIME + }); + } + + if (!result && needsFlash) { + // if flash 9, test netStream (movieStar) types as well. + result = (sMIME && sm2.ok() ? !!((fV > 8 ? sMIME.match(netStreamMimeTypes) : null) || sMIME.match(sm2.mimePattern)) : null); // TODO: make less "weird" (per JSLint) + } + + return result; + + }; + + /** + * Determines playability of a URL based on audio support. + * + * @param {string} sURL The URL to test + * @return {boolean} URL playability + */ + + this.canPlayURL = function(sURL) { + + var result; + + if (sm2.hasHTML5) { + result = html5CanPlay({ + url: sURL + }); + } + + if (!result && needsFlash) { + result = (sURL && sm2.ok() ? !!(sURL.match(sm2.filePattern)) : null); + } + + return result; + + }; + + /** + * Determines playability of an HTML DOM &lt;a&gt; object (or similar object literal) based on audio support. + * + * @param {object} oLink an HTML DOM &lt;a&gt; object or object literal including href and/or type attributes + * @return {boolean} URL playability + */ + + this.canPlayLink = function(oLink) { + + if (oLink.type !== _undefined && oLink.type) { + if (sm2.canPlayMIME(oLink.type)) { + return true; + } + } + + return sm2.canPlayURL(oLink.href); + + }; + + /** + * Retrieves a SMSound object by ID. + * + * @param {string} sID The ID of the sound + * @return {SMSound} The SMSound object + */ + + this.getSoundById = function(sID, _suppressDebug) { + + if (!sID) { + return null; + } + + var result = sm2.sounds[sID]; + + // <d> + if (!result && !_suppressDebug) { + sm2._wD(sm + '.getSoundById(): Sound "' + sID + '" not found.', 2); + } + // </d> + + return result; + + }; + + /** + * Queues a callback for execution when SoundManager has successfully initialized. + * + * @param {function} oMethod The callback method to fire + * @param {object} oScope Optional: The scope to apply to the callback + */ + + this.onready = function(oMethod, oScope) { + + var sType = 'onready', + result = false; + + if (typeof oMethod === 'function') { + + // <d> + if (didInit) { + sm2._wD(str('queue', sType)); + } + // </d> + + if (!oScope) { + oScope = window; + } + + addOnEvent(sType, oMethod, oScope); + processOnEvents(); + + result = true; + + } else { + + throw str('needFunction', sType); + + } + + return result; + + }; + + /** + * Queues a callback for execution when SoundManager has failed to initialize. + * + * @param {function} oMethod The callback method to fire + * @param {object} oScope Optional: The scope to apply to the callback + */ + + this.ontimeout = function(oMethod, oScope) { + + var sType = 'ontimeout', + result = false; + + if (typeof oMethod === 'function') { + + // <d> + if (didInit) { + sm2._wD(str('queue', sType)); + } + // </d> + + if (!oScope) { + oScope = window; + } + + addOnEvent(sType, oMethod, oScope); + processOnEvents({type:sType}); + + result = true; + + } else { + + throw str('needFunction', sType); + + } + + return result; + + }; + + /** + * Writes console.log()-style debug output to a console or in-browser element. + * Applies when debugMode = true + * + * @param {string} sText The console message + * @param {object} nType Optional log level (number), or object. Number case: Log type/style where 0 = 'info', 1 = 'warn', 2 = 'error'. Object case: Object to be dumped. + */ + + this._writeDebug = function(sText, sTypeOrObject) { + + // pseudo-private console.log()-style output + // <d> + + var sDID = 'soundmanager-debug', o, oItem; + + if (!sm2.setupOptions.debugMode) { + return false; + } + + if (hasConsole && sm2.useConsole) { + if (sTypeOrObject && typeof sTypeOrObject === 'object') { + // object passed; dump to console. + console.log(sText, sTypeOrObject); + } else if (debugLevels[sTypeOrObject] !== _undefined) { + console[debugLevels[sTypeOrObject]](sText); + } else { + console.log(sText); + } + if (sm2.consoleOnly) { + return true; + } + } + + o = id(sDID); + + if (!o) { + return false; + } + + oItem = doc.createElement('div'); + + if (++wdCount % 2 === 0) { + oItem.className = 'sm2-alt'; + } + + if (sTypeOrObject === _undefined) { + sTypeOrObject = 0; + } else { + sTypeOrObject = parseInt(sTypeOrObject, 10); + } + + oItem.appendChild(doc.createTextNode(sText)); + + if (sTypeOrObject) { + if (sTypeOrObject >= 2) { + oItem.style.fontWeight = 'bold'; + } + if (sTypeOrObject === 3) { + oItem.style.color = '#ff3333'; + } + } + + // top-to-bottom + // o.appendChild(oItem); + + // bottom-to-top + o.insertBefore(oItem, o.firstChild); + + o = null; + // </d> + + return true; + + }; + + // <d> + // last-resort debugging option + if (wl.indexOf('sm2-debug=alert') !== -1) { + this._writeDebug = function(sText) { + window.alert(sText); + }; + } + // </d> + + // alias + this._wD = this._writeDebug; + + /** + * Provides debug / state information on all SMSound objects. + */ + + this._debug = function() { + + // <d> + var i, j; + _wDS('currentObj', 1); + + for (i = 0, j = sm2.soundIDs.length; i < j; i++) { + sm2.sounds[sm2.soundIDs[i]]._debug(); + } + // </d> + + }; + + /** + * Restarts and re-initializes the SoundManager instance. + * + * @param {boolean} resetEvents Optional: When true, removes all registered onready and ontimeout event callbacks. + * @param {boolean} excludeInit Options: When true, does not call beginDelayedInit() (which would restart SM2). + * @return {object} soundManager The soundManager instance. + */ + + this.reboot = function(resetEvents, excludeInit) { + + // reset some (or all) state, and re-init unless otherwise specified. + + // <d> + if (sm2.soundIDs.length) { + sm2._wD('Destroying ' + sm2.soundIDs.length + ' SMSound object' + (sm2.soundIDs.length !== 1 ? 's' : '') + '...'); + } + // </d> + + var i, j, k; + + for (i = sm2.soundIDs.length- 1 ; i >= 0; i--) { + sm2.sounds[sm2.soundIDs[i]].destruct(); + } + + // trash ze flash (remove from the DOM) + + if (flash) { + + try { + + if (isIE) { + oRemovedHTML = flash.innerHTML; + } + + oRemoved = flash.parentNode.removeChild(flash); + + } catch(e) { + + // Remove failed? May be due to flash blockers silently removing the SWF object/embed node from the DOM. Warn and continue. + + _wDS('badRemove', 2); + + } + + } + + // actually, force recreate of movie. + + oRemovedHTML = oRemoved = needsFlash = flash = null; + + sm2.enabled = didDCLoaded = didInit = waitingForEI = initPending = didAppend = appendSuccess = disabled = useGlobalHTML5Audio = sm2.swfLoaded = false; + + sm2.soundIDs = []; + sm2.sounds = {}; + + idCounter = 0; + didSetup = false; + + if (!resetEvents) { + // reset callbacks for onready, ontimeout etc. so that they will fire again on re-init + for (i in on_queue) { + if (on_queue.hasOwnProperty(i)) { + for (j = 0, k = on_queue[i].length; j < k; j++) { + on_queue[i][j].fired = false; + } + } + } + } else { + // remove all callbacks entirely + on_queue = []; + } + + // <d> + if (!excludeInit) { + sm2._wD(sm + ': Rebooting...'); + } + // </d> + + // reset HTML5 and flash canPlay test results + + sm2.html5 = { + 'usingFlash': null + }; + + sm2.flash = {}; + + // reset device-specific HTML/flash mode switches + + sm2.html5Only = false; + sm2.ignoreFlash = false; + + window.setTimeout(function() { + + // by default, re-init + + if (!excludeInit) { + sm2.beginDelayedInit(); + } + + }, 20); + + return sm2; + + }; + + this.reset = function() { + + /** + * Shuts down and restores the SoundManager instance to its original loaded state, without an explicit reboot. All onready/ontimeout handlers are removed. + * After this call, SM2 may be re-initialized via soundManager.beginDelayedInit(). + * @return {object} soundManager The soundManager instance. + */ + + _wDS('reset'); + return sm2.reboot(true, true); + + }; + + /** + * Undocumented: Determines the SM2 flash movie's load progress. + * + * @return {number or null} Percent loaded, or if invalid/unsupported, null. + */ + + this.getMoviePercent = function() { + + /** + * Interesting syntax notes... + * Flash/ExternalInterface (ActiveX/NPAPI) bridge methods are not typeof "function" nor instanceof Function, but are still valid. + * Additionally, JSLint dislikes ('PercentLoaded' in flash)-style syntax and recommends hasOwnProperty(), which does not work in this case. + * Furthermore, using (flash && flash.PercentLoaded) causes IE to throw "object doesn't support this property or method". + * Thus, 'in' syntax must be used. + */ + + return (flash && 'PercentLoaded' in flash ? flash.PercentLoaded() : null); // Yes, JSLint. See nearby comment in source for explanation. + + }; + + /** + * Additional helper for manually invoking SM2's init process after DOM Ready / window.onload(). + */ + + this.beginDelayedInit = function() { + + windowLoaded = true; + domContentLoaded(); + + setTimeout(function() { + + if (initPending) { + return false; + } + + createMovie(); + initMovie(); + initPending = true; + + return true; + + }, 20); + + delayWaitForEI(); + + }; + + /** + * Destroys the SoundManager instance and all SMSound instances. + */ + + this.destruct = function() { + + sm2._wD(sm + '.destruct()'); + sm2.disable(true); + + }; + + /** + * SMSound() (sound object) constructor + * ------------------------------------ + * + * @param {object} oOptions Sound options (id and url are required attributes) + * @return {SMSound} The new SMSound object + */ + + SMSound = function(oOptions) { + + var s = this, resetProperties, add_html5_events, remove_html5_events, stop_html5_timer, start_html5_timer, attachOnPosition, onplay_called = false, onPositionItems = [], onPositionFired = 0, detachOnPosition, applyFromTo, lastURL = null, lastHTML5State, urlOmitted; + + lastHTML5State = { + // tracks duration + position (time) + duration: null, + time: null + }; + + this.id = oOptions.id; + + // legacy + this.sID = this.id; + + this.url = oOptions.url; + this.options = mixin(oOptions); + + // per-play-instance-specific options + this.instanceOptions = this.options; + + // short alias + this._iO = this.instanceOptions; + + // assign property defaults + this.pan = this.options.pan; + this.volume = this.options.volume; + + // whether or not this object is using HTML5 + this.isHTML5 = false; + + // internal HTML5 Audio() object reference + this._a = null; + + // for flash 8 special-case createSound() without url, followed by load/play with url case + urlOmitted = (this.url ? false : true); + + /** + * SMSound() public methods + * ------------------------ + */ + + this.id3 = {}; + + /** + * Writes SMSound object parameters to debug console + */ + + this._debug = function() { + + // <d> + sm2._wD(s.id + ': Merged options:', s.options); + // </d> + + }; + + /** + * Begins loading a sound per its *url*. + * + * @param {object} oOptions Optional: Sound options + * @return {SMSound} The SMSound object + */ + + this.load = function(oOptions) { + + var oSound = null, instanceOptions; + + if (oOptions !== _undefined) { + s._iO = mixin(oOptions, s.options); + } else { + oOptions = s.options; + s._iO = oOptions; + if (lastURL && lastURL !== s.url) { + _wDS('manURL'); + s._iO.url = s.url; + s.url = null; + } + } + + if (!s._iO.url) { + s._iO.url = s.url; + } + + s._iO.url = parseURL(s._iO.url); + + // ensure we're in sync + s.instanceOptions = s._iO; + + // local shortcut + instanceOptions = s._iO; + + sm2._wD(s.id + ': load (' + instanceOptions.url + ')'); + + if (!instanceOptions.url && !s.url) { + sm2._wD(s.id + ': load(): url is unassigned. Exiting.', 2); + return s; + } + + // <d> + if (!s.isHTML5 && fV === 8 && !s.url && !instanceOptions.autoPlay) { + // flash 8 load() -> play() won't work before onload has fired. + sm2._wD(s.id + ': Flash 8 load() limitation: Wait for onload() before calling play().', 1); + } + // </d> + + if (instanceOptions.url === s.url && s.readyState !== 0 && s.readyState !== 2) { + _wDS('onURL', 1); + // if loaded and an onload() exists, fire immediately. + if (s.readyState === 3 && instanceOptions.onload) { + // assume success based on truthy duration. + wrapCallback(s, function() { + instanceOptions.onload.apply(s, [(!!s.duration)]); + }); + } + return s; + } + + // reset a few state properties + + s.loaded = false; + s.readyState = 1; + s.playState = 0; + s.id3 = {}; + + // TODO: If switching from HTML5 -> flash (or vice versa), stop currently-playing audio. + + if (html5OK(instanceOptions)) { + + oSound = s._setup_html5(instanceOptions); + + if (!oSound._called_load) { + + s._html5_canplay = false; + + // TODO: review called_load / html5_canplay logic + + // if url provided directly to load(), assign it here. + + if (s.url !== instanceOptions.url) { + + sm2._wD(_wDS('manURL') + ': ' + instanceOptions.url); + + s._a.src = instanceOptions.url; + + // TODO: review / re-apply all relevant options (volume, loop, onposition etc.) + + // reset position for new URL + s.setPosition(0); + + } + + // given explicit load call, try to preload. + + // early HTML5 implementation (non-standard) + s._a.autobuffer = 'auto'; + + // standard property, values: none / metadata / auto + // reference: http://msdn.microsoft.com/en-us/library/ie/ff974759%28v=vs.85%29.aspx + s._a.preload = 'auto'; + + s._a._called_load = true; + + } else { + + sm2._wD(s.id + ': Ignoring request to load again'); + + } + + } else { + + if (sm2.html5Only) { + sm2._wD(s.id + ': No flash support. Exiting.'); + return s; + } + + if (s._iO.url && s._iO.url.match(/data\:/i)) { + // data: URIs not supported by Flash, either. + sm2._wD(s.id + ': data: URIs not supported via Flash. Exiting.'); + return s; + } + + try { + s.isHTML5 = false; + s._iO = policyFix(loopFix(instanceOptions)); + // if we have "position", disable auto-play as we'll be seeking to that position at onload(). + if (s._iO.autoPlay && (s._iO.position || s._iO.from)) { + sm2._wD(s.id + ': Disabling autoPlay because of non-zero offset case'); + s._iO.autoPlay = false; + } + // re-assign local shortcut + instanceOptions = s._iO; + if (fV === 8) { + flash._load(s.id, instanceOptions.url, instanceOptions.stream, instanceOptions.autoPlay, instanceOptions.usePolicyFile); + } else { + flash._load(s.id, instanceOptions.url, !!(instanceOptions.stream), !!(instanceOptions.autoPlay), instanceOptions.loops || 1, !!(instanceOptions.autoLoad), instanceOptions.usePolicyFile); + } + } catch(e) { + _wDS('smError', 2); + debugTS('onload', false); + catchError({ + type: 'SMSOUND_LOAD_JS_EXCEPTION', + fatal: true + }); + } + + } + + // after all of this, ensure sound url is up to date. + s.url = instanceOptions.url; + + return s; + + }; + + /** + * Unloads a sound, canceling any open HTTP requests. + * + * @return {SMSound} The SMSound object + */ + + this.unload = function() { + + // Flash 8/AS2 can't "close" a stream - fake it by loading an empty URL + // Flash 9/AS3: Close stream, preventing further load + // HTML5: Most UAs will use empty URL + + if (s.readyState !== 0) { + + sm2._wD(s.id + ': unload()'); + + if (!s.isHTML5) { + + if (fV === 8) { + flash._unload(s.id, emptyURL); + } else { + flash._unload(s.id); + } + + } else { + + stop_html5_timer(); + + if (s._a) { + + s._a.pause(); + + // update empty URL, too + lastURL = html5Unload(s._a); + + } + + } + + // reset load/status flags + resetProperties(); + + } + + return s; + + }; + + /** + * Unloads and destroys a sound. + */ + + this.destruct = function(_bFromSM) { + + sm2._wD(s.id + ': Destruct'); + + if (!s.isHTML5) { + + // kill sound within Flash + // Disable the onfailure handler + s._iO.onfailure = null; + flash._destroySound(s.id); + + } else { + + stop_html5_timer(); + + if (s._a) { + s._a.pause(); + html5Unload(s._a); + if (!useGlobalHTML5Audio) { + remove_html5_events(); + } + // break obvious circular reference + s._a._s = null; + s._a = null; + } + + } + + if (!_bFromSM) { + // ensure deletion from controller + sm2.destroySound(s.id, true); + } + + }; + + /** + * Begins playing a sound. + * + * @param {object} oOptions Optional: Sound options + * @return {SMSound} The SMSound object + */ + + this.play = function(oOptions, _updatePlayState) { + + var fN, allowMulti, a, onready, + audioClone, onended, oncanplay, + startOK = true, + exit = null; + + // <d> + fN = s.id + ': play(): '; + // </d> + + // default to true + _updatePlayState = (_updatePlayState === _undefined ? true : _updatePlayState); + + if (!oOptions) { + oOptions = {}; + } + + // first, use local URL (if specified) + if (s.url) { + s._iO.url = s.url; + } + + // mix in any options defined at createSound() + s._iO = mixin(s._iO, s.options); + + // mix in any options specific to this method + s._iO = mixin(oOptions, s._iO); + + s._iO.url = parseURL(s._iO.url); + + s.instanceOptions = s._iO; + + // RTMP-only + if (!s.isHTML5 && s._iO.serverURL && !s.connected) { + if (!s.getAutoPlay()) { + sm2._wD(fN +' Netstream not connected yet - setting autoPlay'); + s.setAutoPlay(true); + } + // play will be called in onconnect() + return s; + } + + if (html5OK(s._iO)) { + s._setup_html5(s._iO); + start_html5_timer(); + } + + if (s.playState === 1 && !s.paused) { + + allowMulti = s._iO.multiShot; + + if (!allowMulti) { + + sm2._wD(fN + 'Already playing (one-shot)', 1); + + if (s.isHTML5) { + // go back to original position. + s.setPosition(s._iO.position); + } + + exit = s; + + } else { + sm2._wD(fN + 'Already playing (multi-shot)', 1); + } + + } + + if (exit !== null) { + return exit; + } + + // edge case: play() with explicit URL parameter + if (oOptions.url && oOptions.url !== s.url) { + + // special case for createSound() followed by load() / play() with url; avoid double-load case. + if (!s.readyState && !s.isHTML5 && fV === 8 && urlOmitted) { + + urlOmitted = false; + + } else { + + // load using merged options + s.load(s._iO); + + } + + } + + if (!s.loaded) { + + if (s.readyState === 0) { + + sm2._wD(fN + 'Attempting to load'); + + // try to get this sound playing ASAP + if (!s.isHTML5 && !sm2.html5Only) { + + // flash: assign directly because setAutoPlay() increments the instanceCount + s._iO.autoPlay = true; + s.load(s._iO); + + } else if (s.isHTML5) { + + // iOS needs this when recycling sounds, loading a new URL on an existing object. + s.load(s._iO); + + } else { + + sm2._wD(fN + 'Unsupported type. Exiting.'); + exit = s; + + } + + // HTML5 hack - re-set instanceOptions? + s.instanceOptions = s._iO; + + } else if (s.readyState === 2) { + + sm2._wD(fN + 'Could not load - exiting', 2); + exit = s; + + } else { + + sm2._wD(fN + 'Loading - attempting to play...'); + + } + + } else { + + // "play()" + sm2._wD(fN.substr(0, fN.lastIndexOf(':'))); + + } + + if (exit !== null) { + return exit; + } + + if (!s.isHTML5 && fV === 9 && s.position > 0 && s.position === s.duration) { + // flash 9 needs a position reset if play() is called while at the end of a sound. + sm2._wD(fN + 'Sound at end, resetting to position: 0'); + oOptions.position = 0; + } + + /** + * Streams will pause when their buffer is full if they are being loaded. + * In this case paused is true, but the song hasn't started playing yet. + * If we just call resume() the onplay() callback will never be called. + * So only call resume() if the position is > 0. + * Another reason is because options like volume won't have been applied yet. + * For normal sounds, just resume. + */ + + if (s.paused && s.position >= 0 && (!s._iO.serverURL || s.position > 0)) { + + // https://gist.github.com/37b17df75cc4d7a90bf6 + sm2._wD(fN + 'Resuming from paused state', 1); + s.resume(); + + } else { + + s._iO = mixin(oOptions, s._iO); + + /** + * Preload in the event of play() with position under Flash, + * or from/to parameters and non-RTMP case + */ + if (((!s.isHTML5 && s._iO.position !== null && s._iO.position > 0) || (s._iO.from !== null && s._iO.from > 0) || s._iO.to !== null) && s.instanceCount === 0 && s.playState === 0 && !s._iO.serverURL) { + + onready = function() { + // sound "canplay" or onload() + // re-apply position/from/to to instance options, and start playback + s._iO = mixin(oOptions, s._iO); + s.play(s._iO); + }; + + // HTML5 needs to at least have "canplay" fired before seeking. + if (s.isHTML5 && !s._html5_canplay) { + + // this hasn't been loaded yet. load it first, and then do this again. + sm2._wD(fN + 'Beginning load for non-zero offset case'); + + s.load({ + // note: custom HTML5-only event added for from/to implementation. + _oncanplay: onready + }); + + exit = false; + + } else if (!s.isHTML5 && !s.loaded && (!s.readyState || s.readyState !== 2)) { + + // to be safe, preload the whole thing in Flash. + + sm2._wD(fN + 'Preloading for non-zero offset case'); + + s.load({ + onload: onready + }); + + exit = false; + + } + + if (exit !== null) { + return exit; + } + + // otherwise, we're ready to go. re-apply local options, and continue + + s._iO = applyFromTo(); + + } + + // sm2._wD(fN + 'Starting to play'); + + // increment instance counter, where enabled + supported + if (!s.instanceCount || s._iO.multiShotEvents || (s.isHTML5 && s._iO.multiShot && !useGlobalHTML5Audio) || (!s.isHTML5 && fV > 8 && !s.getAutoPlay())) { + s.instanceCount++; + } + + // if first play and onposition parameters exist, apply them now + if (s._iO.onposition && s.playState === 0) { + attachOnPosition(s); + } + + s.playState = 1; + s.paused = false; + + s.position = (s._iO.position !== _undefined && !isNaN(s._iO.position) ? s._iO.position : 0); + + if (!s.isHTML5) { + s._iO = policyFix(loopFix(s._iO)); + } + + if (s._iO.onplay && _updatePlayState) { + s._iO.onplay.apply(s); + onplay_called = true; + } + + s.setVolume(s._iO.volume, true); + s.setPan(s._iO.pan, true); + + if (!s.isHTML5) { + + startOK = flash._start(s.id, s._iO.loops || 1, (fV === 9 ? s.position : s.position / msecScale), s._iO.multiShot || false); + + if (fV === 9 && !startOK) { + // edge case: no sound hardware, or 32-channel flash ceiling hit. + // applies only to Flash 9, non-NetStream/MovieStar sounds. + // http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Sound.html#play%28%29 + sm2._wD(fN + 'No sound hardware, or 32-sound ceiling hit', 2); + if (s._iO.onplayerror) { + s._iO.onplayerror.apply(s); + } + + } + + } else { + + if (s.instanceCount < 2) { + + // HTML5 single-instance case + + start_html5_timer(); + + a = s._setup_html5(); + + s.setPosition(s._iO.position); + + a.play(); + + } else { + + // HTML5 multi-shot case + + sm2._wD(s.id + ': Cloning Audio() for instance #' + s.instanceCount + '...'); + + audioClone = new Audio(s._iO.url); + + onended = function() { + event.remove(audioClone, 'ended', onended); + s._onfinish(s); + // cleanup + html5Unload(audioClone); + audioClone = null; + }; + + oncanplay = function() { + event.remove(audioClone, 'canplay', oncanplay); + try { + audioClone.currentTime = s._iO.position/msecScale; + } catch(err) { + complain(s.id + ': multiShot play() failed to apply position of ' + (s._iO.position/msecScale)); + } + audioClone.play(); + }; + + event.add(audioClone, 'ended', onended); + + // apply volume to clones, too + if (s._iO.volume !== _undefined) { + audioClone.volume = Math.max(0, Math.min(1, s._iO.volume/100)); + } + + // playing multiple muted sounds? if you do this, you're weird ;) - but let's cover it. + if (s.muted) { + audioClone.muted = true; + } + + if (s._iO.position) { + // HTML5 audio can't seek before onplay() event has fired. + // wait for canplay, then seek to position and start playback. + event.add(audioClone, 'canplay', oncanplay); + } else { + // begin playback at currentTime: 0 + audioClone.play(); + } + + } + + } + + } + + return s; + + }; + + // just for convenience + this.start = this.play; + + /** + * Stops playing a sound (and optionally, all sounds) + * + * @param {boolean} bAll Optional: Whether to stop all sounds + * @return {SMSound} The SMSound object + */ + + this.stop = function(bAll) { + + var instanceOptions = s._iO, + originalPosition; + + if (s.playState === 1) { + + sm2._wD(s.id + ': stop()'); + + s._onbufferchange(0); + s._resetOnPosition(0); + s.paused = false; + + if (!s.isHTML5) { + s.playState = 0; + } + + // remove onPosition listeners, if any + detachOnPosition(); + + // and "to" position, if set + if (instanceOptions.to) { + s.clearOnPosition(instanceOptions.to); + } + + if (!s.isHTML5) { + + flash._stop(s.id, bAll); + + // hack for netStream: just unload + if (instanceOptions.serverURL) { + s.unload(); + } + + } else { + + if (s._a) { + + originalPosition = s.position; + + // act like Flash, though + s.setPosition(0); + + // hack: reflect old position for onstop() (also like Flash) + s.position = originalPosition; + + // html5 has no stop() + // NOTE: pausing means iOS requires interaction to resume. + s._a.pause(); + + s.playState = 0; + + // and update UI + s._onTimer(); + + stop_html5_timer(); + + } + + } + + s.instanceCount = 0; + s._iO = {}; + + if (instanceOptions.onstop) { + instanceOptions.onstop.apply(s); + } + + } + + return s; + + }; + + /** + * Undocumented/internal: Sets autoPlay for RTMP. + * + * @param {boolean} autoPlay state + */ + + this.setAutoPlay = function(autoPlay) { + + sm2._wD(s.id + ': Autoplay turned ' + (autoPlay ? 'on' : 'off')); + s._iO.autoPlay = autoPlay; + + if (!s.isHTML5) { + flash._setAutoPlay(s.id, autoPlay); + if (autoPlay) { + // only increment the instanceCount if the sound isn't loaded (TODO: verify RTMP) + if (!s.instanceCount && s.readyState === 1) { + s.instanceCount++; + sm2._wD(s.id + ': Incremented instance count to '+s.instanceCount); + } + } + } + + }; + + /** + * Undocumented/internal: Returns the autoPlay boolean. + * + * @return {boolean} The current autoPlay value + */ + + this.getAutoPlay = function() { + + return s._iO.autoPlay; + + }; + + /** + * Sets the position of a sound. + * + * @param {number} nMsecOffset Position (milliseconds) + * @return {SMSound} The SMSound object + */ + + this.setPosition = function(nMsecOffset) { + + if (nMsecOffset === _undefined) { + nMsecOffset = 0; + } + + var position, position1K, + // Use the duration from the instance options, if we don't have a track duration yet. + // position >= 0 and <= current available (loaded) duration + offset = (s.isHTML5 ? Math.max(nMsecOffset, 0) : Math.min(s.duration || s._iO.duration, Math.max(nMsecOffset, 0))); + + s.position = offset; + position1K = s.position/msecScale; + s._resetOnPosition(s.position); + s._iO.position = offset; + + if (!s.isHTML5) { + + position = (fV === 9 ? s.position : position1K); + + if (s.readyState && s.readyState !== 2) { + // if paused or not playing, will not resume (by playing) + flash._setPosition(s.id, position, (s.paused || !s.playState), s._iO.multiShot); + } + + } else if (s._a) { + + // Set the position in the canplay handler if the sound is not ready yet + if (s._html5_canplay) { + + if (s._a.currentTime !== position1K) { + + /** + * DOM/JS errors/exceptions to watch out for: + * if seek is beyond (loaded?) position, "DOM exception 11" + * "INDEX_SIZE_ERR": DOM exception 1 + */ + sm2._wD(s.id + ': setPosition(' + position1K + ')'); + + try { + s._a.currentTime = position1K; + if (s.playState === 0 || s.paused) { + // allow seek without auto-play/resume + s._a.pause(); + } + } catch(e) { + sm2._wD(s.id + ': setPosition(' + position1K + ') failed: ' + e.message, 2); + } + + } + + } else if (position1K) { + + // warn on non-zero seek attempts + sm2._wD(s.id + ': setPosition(' + position1K + '): Cannot seek yet, sound not ready', 2); + return s; + + } + + if (s.paused) { + + // if paused, refresh UI right away by forcing update + s._onTimer(true); + + } + + } + + return s; + + }; + + /** + * Pauses sound playback. + * + * @return {SMSound} The SMSound object + */ + + this.pause = function(_bCallFlash) { + + if (s.paused || (s.playState === 0 && s.readyState !== 1)) { + return s; + } + + sm2._wD(s.id + ': pause()'); + s.paused = true; + + if (!s.isHTML5) { + if (_bCallFlash || _bCallFlash === _undefined) { + flash._pause(s.id, s._iO.multiShot); + } + } else { + s._setup_html5().pause(); + stop_html5_timer(); + } + + if (s._iO.onpause) { + s._iO.onpause.apply(s); + } + + return s; + + }; + + /** + * Resumes sound playback. + * + * @return {SMSound} The SMSound object + */ + + /** + * When auto-loaded streams pause on buffer full they have a playState of 0. + * We need to make sure that the playState is set to 1 when these streams "resume". + * When a paused stream is resumed, we need to trigger the onplay() callback if it + * hasn't been called already. In this case since the sound is being played for the + * first time, I think it's more appropriate to call onplay() rather than onresume(). + */ + + this.resume = function() { + + var instanceOptions = s._iO; + + if (!s.paused) { + return s; + } + + sm2._wD(s.id + ': resume()'); + s.paused = false; + s.playState = 1; + + if (!s.isHTML5) { + + if (instanceOptions.isMovieStar && !instanceOptions.serverURL) { + // Bizarre Webkit bug (Chrome reported via 8tracks.com dudes): AAC content paused for 30+ seconds(?) will not resume without a reposition. + s.setPosition(s.position); + } + + // flash method is toggle-based (pause/resume) + flash._pause(s.id, instanceOptions.multiShot); + + } else { + + s._setup_html5().play(); + start_html5_timer(); + + } + + if (!onplay_called && instanceOptions.onplay) { + + instanceOptions.onplay.apply(s); + onplay_called = true; + + } else if (instanceOptions.onresume) { + + instanceOptions.onresume.apply(s); + + } + + return s; + + }; + + /** + * Toggles sound playback. + * + * @return {SMSound} The SMSound object + */ + + this.togglePause = function() { + + sm2._wD(s.id + ': togglePause()'); + + if (s.playState === 0) { + s.play({ + position: (fV === 9 && !s.isHTML5 ? s.position : s.position / msecScale) + }); + return s; + } + + if (s.paused) { + s.resume(); + } else { + s.pause(); + } + + return s; + + }; + + /** + * Sets the panning (L-R) effect. + * + * @param {number} nPan The pan value (-100 to 100) + * @return {SMSound} The SMSound object + */ + + this.setPan = function(nPan, bInstanceOnly) { + + if (nPan === _undefined) { + nPan = 0; + } + + if (bInstanceOnly === _undefined) { + bInstanceOnly = false; + } + + if (!s.isHTML5) { + flash._setPan(s.id, nPan); + } // else { no HTML5 pan? } + + s._iO.pan = nPan; + + if (!bInstanceOnly) { + s.pan = nPan; + s.options.pan = nPan; + } + + return s; + + }; + + /** + * Sets the volume. + * + * @param {number} nVol The volume value (0 to 100) + * @return {SMSound} The SMSound object + */ + + this.setVolume = function(nVol, _bInstanceOnly) { + + /** + * Note: Setting volume has no effect on iOS "special snowflake" devices. + * Hardware volume control overrides software, and volume + * will always return 1 per Apple docs. (iOS 4 + 5.) + * http://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/HTML-canvas-guide/AddingSoundtoCanvasAnimations/AddingSoundtoCanvasAnimations.html + */ + + if (nVol === _undefined) { + nVol = 100; + } + + if (_bInstanceOnly === _undefined) { + _bInstanceOnly = false; + } + + if (!s.isHTML5) { + + flash._setVolume(s.id, (sm2.muted && !s.muted) || s.muted ? 0 : nVol); + + } else if (s._a) { + + if (sm2.muted && !s.muted) { + s.muted = true; + s._a.muted = true; + } + + // valid range for native HTML5 Audio(): 0-1 + s._a.volume = Math.max(0, Math.min(1, nVol/100)); + + } + + s._iO.volume = nVol; + + if (!_bInstanceOnly) { + s.volume = nVol; + s.options.volume = nVol; + } + + return s; + + }; + + /** + * Mutes the sound. + * + * @return {SMSound} The SMSound object + */ + + this.mute = function() { + + s.muted = true; + + if (!s.isHTML5) { + flash._setVolume(s.id, 0); + } else if (s._a) { + s._a.muted = true; + } + + return s; + + }; + + /** + * Unmutes the sound. + * + * @return {SMSound} The SMSound object + */ + + this.unmute = function() { + + s.muted = false; + var hasIO = (s._iO.volume !== _undefined); + + if (!s.isHTML5) { + flash._setVolume(s.id, hasIO ? s._iO.volume : s.options.volume); + } else if (s._a) { + s._a.muted = false; + } + + return s; + + }; + + /** + * Toggles the muted state of a sound. + * + * @return {SMSound} The SMSound object + */ + + this.toggleMute = function() { + + return (s.muted ? s.unmute() : s.mute()); + + }; + + /** + * Registers a callback to be fired when a sound reaches a given position during playback. + * + * @param {number} nPosition The position to watch for + * @param {function} oMethod The relevant callback to fire + * @param {object} oScope Optional: The scope to apply the callback to + * @return {SMSound} The SMSound object + */ + + this.onPosition = function(nPosition, oMethod, oScope) { + + // TODO: basic dupe checking? + + onPositionItems.push({ + position: parseInt(nPosition, 10), + method: oMethod, + scope: (oScope !== _undefined ? oScope : s), + fired: false + }); + + return s; + + }; + + // legacy/backwards-compability: lower-case method name + this.onposition = this.onPosition; + + /** + * Removes registered callback(s) from a sound, by position and/or callback. + * + * @param {number} nPosition The position to clear callback(s) for + * @param {function} oMethod Optional: Identify one callback to be removed when multiple listeners exist for one position + * @return {SMSound} The SMSound object + */ + + this.clearOnPosition = function(nPosition, oMethod) { + + var i; + + nPosition = parseInt(nPosition, 10); + + if (isNaN(nPosition)) { + // safety check + return false; + } + + for (i=0; i < onPositionItems.length; i++) { + + if (nPosition === onPositionItems[i].position) { + // remove this item if no method was specified, or, if the method matches + + if (!oMethod || (oMethod === onPositionItems[i].method)) { + + if (onPositionItems[i].fired) { + // decrement "fired" counter, too + onPositionFired--; + } + + onPositionItems.splice(i, 1); + + } + + } + + } + + }; + + this._processOnPosition = function() { + + var i, item, j = onPositionItems.length; + + if (!j || !s.playState || onPositionFired >= j) { + return false; + } + + for (i = j - 1; i >= 0; i--) { + + item = onPositionItems[i]; + + if (!item.fired && s.position >= item.position) { + + item.fired = true; + onPositionFired++; + item.method.apply(item.scope, [item.position]); + + // reset j -- onPositionItems.length can be changed in the item callback above... occasionally breaking the loop. + j = onPositionItems.length; + + } + + } + + return true; + + }; + + this._resetOnPosition = function(nPosition) { + + // reset "fired" for items interested in this position + var i, item, j = onPositionItems.length; + + if (!j) { + return false; + } + + for (i = j - 1; i >= 0; i--) { + + item = onPositionItems[i]; + + if (item.fired && nPosition <= item.position) { + item.fired = false; + onPositionFired--; + } + + } + + return true; + + }; + + /** + * SMSound() private internals + * -------------------------------- + */ + + applyFromTo = function() { + + var instanceOptions = s._iO, + f = instanceOptions.from, + t = instanceOptions.to, + start, end; + + end = function() { + + // end has been reached. + sm2._wD(s.id + ': "To" time of ' + t + ' reached.'); + + // detach listener + s.clearOnPosition(t, end); + + // stop should clear this, too + s.stop(); + + }; + + start = function() { + + sm2._wD(s.id + ': Playing "from" ' + f); + + // add listener for end + if (t !== null && !isNaN(t)) { + s.onPosition(t, end); + } + + }; + + if (f !== null && !isNaN(f)) { + + // apply to instance options, guaranteeing correct start position. + instanceOptions.position = f; + + // multiShot timing can't be tracked, so prevent that. + instanceOptions.multiShot = false; + + start(); + + } + + // return updated instanceOptions including starting position + return instanceOptions; + + }; + + attachOnPosition = function() { + + var item, + op = s._iO.onposition; + + // attach onposition things, if any, now. + + if (op) { + + for (item in op) { + if (op.hasOwnProperty(item)) { + s.onPosition(parseInt(item, 10), op[item]); + } + } + + } + + }; + + detachOnPosition = function() { + + var item, + op = s._iO.onposition; + + // detach any onposition()-style listeners. + + if (op) { + + for (item in op) { + if (op.hasOwnProperty(item)) { + s.clearOnPosition(parseInt(item, 10)); + } + } + + } + + }; + + start_html5_timer = function() { + + if (s.isHTML5) { + startTimer(s); + } + + }; + + stop_html5_timer = function() { + + if (s.isHTML5) { + stopTimer(s); + } + + }; + + resetProperties = function(retainPosition) { + + if (!retainPosition) { + onPositionItems = []; + onPositionFired = 0; + } + + onplay_called = false; + + s._hasTimer = null; + s._a = null; + s._html5_canplay = false; + s.bytesLoaded = null; + s.bytesTotal = null; + s.duration = (s._iO && s._iO.duration ? s._iO.duration : null); + s.durationEstimate = null; + s.buffered = []; + + // legacy: 1D array + s.eqData = []; + + s.eqData.left = []; + s.eqData.right = []; + + s.failures = 0; + s.isBuffering = false; + s.instanceOptions = {}; + s.instanceCount = 0; + s.loaded = false; + s.metadata = {}; + + // 0 = uninitialised, 1 = loading, 2 = failed/error, 3 = loaded/success + s.readyState = 0; + + s.muted = false; + s.paused = false; + + s.peakData = { + left: 0, + right: 0 + }; + + s.waveformData = { + left: [], + right: [] + }; + + s.playState = 0; + s.position = null; + + s.id3 = {}; + + }; + + resetProperties(); + + /** + * Pseudo-private SMSound internals + * -------------------------------- + */ + + this._onTimer = function(bForce) { + + /** + * HTML5-only _whileplaying() etc. + * called from both HTML5 native events, and polling/interval-based timers + * mimics flash and fires only when time/duration change, so as to be polling-friendly + */ + + var duration, isNew = false, time, x = {}; + + if (s._hasTimer || bForce) { + + // TODO: May not need to track readyState (1 = loading) + + if (s._a && (bForce || ((s.playState > 0 || s.readyState === 1) && !s.paused))) { + + duration = s._get_html5_duration(); + + if (duration !== lastHTML5State.duration) { + + lastHTML5State.duration = duration; + s.duration = duration; + isNew = true; + + } + + // TODO: investigate why this goes wack if not set/re-set each time. + s.durationEstimate = s.duration; + + time = (s._a.currentTime * msecScale || 0); + + if (time !== lastHTML5State.time) { + + lastHTML5State.time = time; + isNew = true; + + } + + if (isNew || bForce) { + + s._whileplaying(time, x, x, x, x); + + } + + }/* else { + + // sm2._wD('_onTimer: Warn for "'+s.id+'": '+(!s._a?'Could not find element. ':'')+(s.playState === 0?'playState bad, 0?':'playState = '+s.playState+', OK')); + + return false; + + }*/ + + return isNew; + + } + + }; + + this._get_html5_duration = function() { + + var instanceOptions = s._iO, + // if audio object exists, use its duration - else, instance option duration (if provided - it's a hack, really, and should be retired) OR null + d = (s._a && s._a.duration ? s._a.duration * msecScale : (instanceOptions && instanceOptions.duration ? instanceOptions.duration : null)), + result = (d && !isNaN(d) && d !== Infinity ? d : null); + + return result; + + }; + + this._apply_loop = function(a, nLoops) { + + /** + * boolean instead of "loop", for webkit? - spec says string. http://www.w3.org/TR/html-markup/audio.html#audio.attrs.loop + * note that loop is either off or infinite under HTML5, unlike Flash which allows arbitrary loop counts to be specified. + */ + + // <d> + if (!a.loop && nLoops > 1) { + sm2._wD('Note: Native HTML5 looping is infinite.', 1); + } + // </d> + + a.loop = (nLoops > 1 ? 'loop' : ''); + + }; + + this._setup_html5 = function(oOptions) { + + var instanceOptions = mixin(s._iO, oOptions), + a = useGlobalHTML5Audio ? globalHTML5Audio : s._a, + dURL = decodeURI(instanceOptions.url), + sameURL; + + /** + * "First things first, I, Poppa..." (reset the previous state of the old sound, if playing) + * Fixes case with devices that can only play one sound at a time + * Otherwise, other sounds in mid-play will be terminated without warning and in a stuck state + */ + + if (useGlobalHTML5Audio) { + + if (dURL === decodeURI(lastGlobalHTML5URL)) { + // global HTML5 audio: re-use of URL + sameURL = true; + } + + } else if (dURL === decodeURI(lastURL)) { + + // options URL is the same as the "last" URL, and we used (loaded) it + sameURL = true; + + } + + if (a) { + + if (a._s) { + + if (useGlobalHTML5Audio) { + + if (a._s && a._s.playState && !sameURL) { + + // global HTML5 audio case, and loading a new URL. stop the currently-playing one. + a._s.stop(); + + } + + } else if (!useGlobalHTML5Audio && dURL === decodeURI(lastURL)) { + + // non-global HTML5 reuse case: same url, ignore request + s._apply_loop(a, instanceOptions.loops); + + return a; + + } + + } + + if (!sameURL) { + + // don't retain onPosition() stuff with new URLs. + + if (lastURL) { + resetProperties(false); + } + + // assign new HTML5 URL + + a.src = instanceOptions.url; + + s.url = instanceOptions.url; + + lastURL = instanceOptions.url; + + lastGlobalHTML5URL = instanceOptions.url; + + a._called_load = false; + + } + + } else { + + if (instanceOptions.autoLoad || instanceOptions.autoPlay) { + + s._a = new Audio(instanceOptions.url); + s._a.load(); + + } else { + + // null for stupid Opera 9.64 case + s._a = (isOpera && opera.version() < 10 ? new Audio(null) : new Audio()); + + } + + // assign local reference + a = s._a; + + a._called_load = false; + + if (useGlobalHTML5Audio) { + + globalHTML5Audio = a; + + } + + } + + s.isHTML5 = true; + + // store a ref on the track + s._a = a; + + // store a ref on the audio + a._s = s; + + add_html5_events(); + + s._apply_loop(a, instanceOptions.loops); + + if (instanceOptions.autoLoad || instanceOptions.autoPlay) { + + s.load(); + + } else { + + // early HTML5 implementation (non-standard) + a.autobuffer = false; + + // standard ('none' is also an option.) + a.preload = 'auto'; + + } + + return a; + + }; + + add_html5_events = function() { + + if (s._a._added_events) { + return false; + } + + var f; + + function add(oEvt, oFn, bCapture) { + return s._a ? s._a.addEventListener(oEvt, oFn, bCapture || false) : null; + } + + s._a._added_events = true; + + for (f in html5_events) { + if (html5_events.hasOwnProperty(f)) { + add(f, html5_events[f]); + } + } + + return true; + + }; + + remove_html5_events = function() { + + // Remove event listeners + + var f; + + function remove(oEvt, oFn, bCapture) { + return (s._a ? s._a.removeEventListener(oEvt, oFn, bCapture || false) : null); + } + + sm2._wD(s.id + ': Removing event listeners'); + s._a._added_events = false; + + for (f in html5_events) { + if (html5_events.hasOwnProperty(f)) { + remove(f, html5_events[f]); + } + } + + }; + + /** + * Pseudo-private event internals + * ------------------------------ + */ + + this._onload = function(nSuccess) { + + var fN, + // check for duration to prevent false positives from flash 8 when loading from cache. + loadOK = !!nSuccess || (!s.isHTML5 && fV === 8 && s.duration); + + // <d> + fN = s.id + ': '; + sm2._wD(fN + (loadOK ? 'onload()' : 'Failed to load / invalid sound?' + (!s.duration ? ' Zero-length duration reported.' : ' -') + ' (' + s.url + ')'), (loadOK ? 1 : 2)); + + if (!loadOK && !s.isHTML5) { + if (sm2.sandbox.noRemote === true) { + sm2._wD(fN + str('noNet'), 1); + } + if (sm2.sandbox.noLocal === true) { + sm2._wD(fN + str('noLocal'), 1); + } + } + // </d> + + s.loaded = loadOK; + s.readyState = (loadOK ? 3 : 2); + s._onbufferchange(0); + + if (s._iO.onload) { + wrapCallback(s, function() { + s._iO.onload.apply(s, [loadOK]); + }); + } + + return true; + + }; + + this._onbufferchange = function(nIsBuffering) { + + if (s.playState === 0) { + // ignore if not playing + return false; + } + + if ((nIsBuffering && s.isBuffering) || (!nIsBuffering && !s.isBuffering)) { + return false; + } + + s.isBuffering = (nIsBuffering === 1); + + if (s._iO.onbufferchange) { + sm2._wD(s.id + ': Buffer state change: ' + nIsBuffering); + s._iO.onbufferchange.apply(s, [nIsBuffering]); + } + + return true; + + }; + + /** + * Playback may have stopped due to buffering, or related reason. + * This state can be encountered on iOS < 6 when auto-play is blocked. + */ + + this._onsuspend = function() { + + if (s._iO.onsuspend) { + sm2._wD(s.id + ': Playback suspended'); + s._iO.onsuspend.apply(s); + } + + return true; + + }; + + /** + * flash 9/movieStar + RTMP-only method, should fire only once at most + * at this point we just recreate failed sounds rather than trying to reconnect + */ + + this._onfailure = function(msg, level, code) { + + s.failures++; + sm2._wD(s.id + ': Failure (' + s.failures + '): ' + msg); + + if (s._iO.onfailure && s.failures === 1) { + s._iO.onfailure(msg, level, code); + } else { + sm2._wD(s.id + ': Ignoring failure'); + } + + }; + + /** + * flash 9/movieStar + RTMP-only method for unhandled warnings/exceptions from Flash + * e.g., RTMP "method missing" warning (non-fatal) for getStreamLength on server + */ + + this._onwarning = function(msg, level, code) { + + if (s._iO.onwarning) { + s._iO.onwarning(msg, level, code); + } + + }; + + this._onfinish = function() { + + // store local copy before it gets trashed... + var io_onfinish = s._iO.onfinish; + + s._onbufferchange(0); + s._resetOnPosition(0); + + // reset some state items + if (s.instanceCount) { + + s.instanceCount--; + + if (!s.instanceCount) { + + // remove onPosition listeners, if any + detachOnPosition(); + + // reset instance options + s.playState = 0; + s.paused = false; + s.instanceCount = 0; + s.instanceOptions = {}; + s._iO = {}; + stop_html5_timer(); + + // reset position, too + if (s.isHTML5) { + s.position = 0; + } + + } + + if (!s.instanceCount || s._iO.multiShotEvents) { + // fire onfinish for last, or every instance + if (io_onfinish) { + sm2._wD(s.id + ': onfinish()'); + wrapCallback(s, function() { + io_onfinish.apply(s); + }); + } + } + + } + + }; + + this._whileloading = function(nBytesLoaded, nBytesTotal, nDuration, nBufferLength) { + + var instanceOptions = s._iO; + + s.bytesLoaded = nBytesLoaded; + s.bytesTotal = nBytesTotal; + s.duration = Math.floor(nDuration); + s.bufferLength = nBufferLength; + + if (!s.isHTML5 && !instanceOptions.isMovieStar) { + + if (instanceOptions.duration) { + // use duration from options, if specified and larger. nobody should be specifying duration in options, actually, and it should be retired. + s.durationEstimate = (s.duration > instanceOptions.duration) ? s.duration : instanceOptions.duration; + } else { + s.durationEstimate = parseInt((s.bytesTotal / s.bytesLoaded) * s.duration, 10); + } + + } else { + + s.durationEstimate = s.duration; + + } + + // for flash, reflect sequential-load-style buffering + if (!s.isHTML5) { + s.buffered = [{ + 'start': 0, + 'end': s.duration + }]; + } + + // allow whileloading to fire even if "load" fired under HTML5, due to HTTP range/partials + if ((s.readyState !== 3 || s.isHTML5) && instanceOptions.whileloading) { + instanceOptions.whileloading.apply(s); + } + + }; + + this._whileplaying = function(nPosition, oPeakData, oWaveformDataLeft, oWaveformDataRight, oEQData) { + + var instanceOptions = s._iO, + eqLeft; + + if (isNaN(nPosition) || nPosition === null) { + // flash safety net + return false; + } + + // Safari HTML5 play() may return small -ve values when starting from position: 0, eg. -50.120396875. Unexpected/invalid per W3, I think. Normalize to 0. + s.position = Math.max(0, nPosition); + + s._processOnPosition(); + + if (!s.isHTML5 && fV > 8) { + + if (instanceOptions.usePeakData && oPeakData !== _undefined && oPeakData) { + s.peakData = { + left: oPeakData.leftPeak, + right: oPeakData.rightPeak + }; + } + + if (instanceOptions.useWaveformData && oWaveformDataLeft !== _undefined && oWaveformDataLeft) { + s.waveformData = { + left: oWaveformDataLeft.split(','), + right: oWaveformDataRight.split(',') + }; + } + + if (instanceOptions.useEQData) { + if (oEQData !== _undefined && oEQData && oEQData.leftEQ) { + eqLeft = oEQData.leftEQ.split(','); + s.eqData = eqLeft; + s.eqData.left = eqLeft; + if (oEQData.rightEQ !== _undefined && oEQData.rightEQ) { + s.eqData.right = oEQData.rightEQ.split(','); + } + } + } + + } + + if (s.playState === 1) { + + // special case/hack: ensure buffering is false if loading from cache (and not yet started) + if (!s.isHTML5 && fV === 8 && !s.position && s.isBuffering) { + s._onbufferchange(0); + } + + if (instanceOptions.whileplaying) { + // flash may call after actual finish + instanceOptions.whileplaying.apply(s); + } + + } + + return true; + + }; + + this._oncaptiondata = function(oData) { + + /** + * internal: flash 9 + NetStream (MovieStar/RTMP-only) feature + * + * @param {object} oData + */ + + sm2._wD(s.id + ': Caption data received.'); + + s.captiondata = oData; + + if (s._iO.oncaptiondata) { + s._iO.oncaptiondata.apply(s, [oData]); + } + + }; + + this._onmetadata = function(oMDProps, oMDData) { + + /** + * internal: flash 9 + NetStream (MovieStar/RTMP-only) feature + * RTMP may include song title, MovieStar content may include encoding info + * + * @param {array} oMDProps (names) + * @param {array} oMDData (values) + */ + + sm2._wD(s.id + ': Metadata received.'); + + var oData = {}, i, j; + + for (i = 0, j = oMDProps.length; i < j; i++) { + oData[oMDProps[i]] = oMDData[i]; + } + + s.metadata = oData; + + if (s._iO.onmetadata) { + s._iO.onmetadata.call(s, s.metadata); + } + + }; + + this._onid3 = function(oID3Props, oID3Data) { + + /** + * internal: flash 8 + flash 9 ID3 feature + * may include artist, song title etc. + * + * @param {array} oID3Props (names) + * @param {array} oID3Data (values) + */ + + sm2._wD(s.id + ': ID3 data received.'); + + var oData = [], i, j; + + for (i = 0, j = oID3Props.length; i < j; i++) { + oData[oID3Props[i]] = oID3Data[i]; + } + + s.id3 = mixin(s.id3, oData); + + if (s._iO.onid3) { + s._iO.onid3.apply(s); + } + + }; + + // flash/RTMP-only + + this._onconnect = function(bSuccess) { + + bSuccess = (bSuccess === 1); + sm2._wD(s.id + ': ' + (bSuccess ? 'Connected.' : 'Failed to connect? - ' + s.url), (bSuccess ? 1 : 2)); + s.connected = bSuccess; + + if (bSuccess) { + + s.failures = 0; + + if (idCheck(s.id)) { + if (s.getAutoPlay()) { + // only update the play state if auto playing + s.play(_undefined, s.getAutoPlay()); + } else if (s._iO.autoLoad) { + s.load(); + } + } + + if (s._iO.onconnect) { + s._iO.onconnect.apply(s, [bSuccess]); + } + + } + + }; + + this._ondataerror = function(sError) { + + // flash 9 wave/eq data handler + // hack: called at start, and end from flash at/after onfinish() + if (s.playState > 0) { + sm2._wD(s.id + ': Data error: ' + sError); + if (s._iO.ondataerror) { + s._iO.ondataerror.apply(s); + } + } + + }; + + // <d> + this._debug(); + // </d> + + }; // SMSound() + + /** + * Private SoundManager internals + * ------------------------------ + */ + + getDocument = function() { + + return (doc.body || doc.getElementsByTagName('div')[0]); + + }; + + id = function(sID) { + + return doc.getElementById(sID); + + }; + + mixin = function(oMain, oAdd) { + + // non-destructive merge + var o1 = (oMain || {}), o2, o; + + // if unspecified, o2 is the default options object + o2 = (oAdd === _undefined ? sm2.defaultOptions : oAdd); + + for (o in o2) { + + if (o2.hasOwnProperty(o) && o1[o] === _undefined) { + + if (typeof o2[o] !== 'object' || o2[o] === null) { + + // assign directly + o1[o] = o2[o]; + + } else { + + // recurse through o2 + o1[o] = mixin(o1[o], o2[o]); + + } + + } + + } + + return o1; + + }; + + wrapCallback = function(oSound, callback) { + + /** + * 03/03/2013: Fix for Flash Player 11.6.602.171 + Flash 8 (flashVersion = 8) SWF issue + * setTimeout() fix for certain SMSound callbacks like onload() and onfinish(), where subsequent calls like play() and load() fail when Flash Player 11.6.602.171 is installed, and using soundManager with flashVersion = 8 (which is the default). + * Not sure of exact cause. Suspect race condition and/or invalid (NaN-style) position argument trickling down to the next JS -> Flash _start() call, in the play() case. + * Fix: setTimeout() to yield, plus safer null / NaN checking on position argument provided to Flash. + * https://getsatisfaction.com/schillmania/topics/recent_chrome_update_seems_to_have_broken_my_sm2_audio_player + */ + if (!oSound.isHTML5 && fV === 8) { + window.setTimeout(callback, 0); + } else { + callback(); + } + + }; + + // additional soundManager properties that soundManager.setup() will accept + + extraOptions = { + 'onready': 1, + 'ontimeout': 1, + 'defaultOptions': 1, + 'flash9Options': 1, + 'movieStarOptions': 1 + }; + + assign = function(o, oParent) { + + /** + * recursive assignment of properties, soundManager.setup() helper + * allows property assignment based on whitelist + */ + + var i, + result = true, + hasParent = (oParent !== _undefined), + setupOptions = sm2.setupOptions, + bonusOptions = extraOptions; + + // <d> + + // if soundManager.setup() called, show accepted parameters. + + if (o === _undefined) { + + result = []; + + for (i in setupOptions) { + + if (setupOptions.hasOwnProperty(i)) { + result.push(i); + } + + } + + for (i in bonusOptions) { + + if (bonusOptions.hasOwnProperty(i)) { + + if (typeof sm2[i] === 'object') { + result.push(i + ': {...}'); + } else if (sm2[i] instanceof Function) { + result.push(i + ': function() {...}'); + } else { + result.push(i); + } + + } + + } + + sm2._wD(str('setup', result.join(', '))); + + return false; + + } + + // </d> + + for (i in o) { + + if (o.hasOwnProperty(i)) { + + // if not an {object} we want to recurse through... + + if (typeof o[i] !== 'object' || o[i] === null || o[i] instanceof Array || o[i] instanceof RegExp) { + + // check "allowed" options + + if (hasParent && bonusOptions[oParent] !== _undefined) { + + // valid recursive / nested object option, eg., { defaultOptions: { volume: 50 } } + sm2[oParent][i] = o[i]; + + } else if (setupOptions[i] !== _undefined) { + + // special case: assign to setupOptions object, which soundManager property references + sm2.setupOptions[i] = o[i]; + + // assign directly to soundManager, too + sm2[i] = o[i]; + + } else if (bonusOptions[i] === _undefined) { + + // invalid or disallowed parameter. complain. + complain(str((sm2[i] === _undefined ? 'setupUndef' : 'setupError'), i), 2); + + result = false; + + } else { + + /** + * valid extraOptions (bonusOptions) parameter. + * is it a method, like onready/ontimeout? call it. + * multiple parameters should be in an array, eg. soundManager.setup({onready: [myHandler, myScope]}); + */ + + if (sm2[i] instanceof Function) { + + sm2[i].apply(sm2, (o[i] instanceof Array ? o[i] : [o[i]])); + + } else { + + // good old-fashioned direct assignment + sm2[i] = o[i]; + + } + + } + + } else { + + // recursion case, eg., { defaultOptions: { ... } } + + if (bonusOptions[i] === _undefined) { + + // invalid or disallowed parameter. complain. + complain(str((sm2[i] === _undefined ? 'setupUndef' : 'setupError'), i), 2); + + result = false; + + } else { + + // recurse through object + return assign(o[i], i); + + } + + } + + } + + } + + return result; + + }; + + function preferFlashCheck(kind) { + + // whether flash should play a given type + return (sm2.preferFlash && hasFlash && !sm2.ignoreFlash && (sm2.flash[kind] !== _undefined && sm2.flash[kind])); + + } + + /** + * Internal DOM2-level event helpers + * --------------------------------- + */ + + event = (function() { + + // normalize event methods + var old = (window.attachEvent), + evt = { + add: (old ? 'attachEvent' : 'addEventListener'), + remove: (old ? 'detachEvent' : 'removeEventListener') + }; + + // normalize "on" event prefix, optional capture argument + function getArgs(oArgs) { + + var args = slice.call(oArgs), + len = args.length; + + if (old) { + // prefix + args[1] = 'on' + args[1]; + if (len > 3) { + // no capture + args.pop(); + } + } else if (len === 3) { + args.push(false); + } + + return args; + + } + + function apply(args, sType) { + + // normalize and call the event method, with the proper arguments + var element = args.shift(), + method = [evt[sType]]; + + if (old) { + // old IE can't do apply(). + element[method](args[0], args[1]); + } else { + element[method].apply(element, args); + } + + } + + function add() { + apply(getArgs(arguments), 'add'); + } + + function remove() { + apply(getArgs(arguments), 'remove'); + } + + return { + 'add': add, + 'remove': remove + }; + + }()); + + /** + * Internal HTML5 event handling + * ----------------------------- + */ + + function html5_event(oFn) { + + // wrap html5 event handlers so we don't call them on destroyed and/or unloaded sounds + + return function(e) { + + var s = this._s, + result; + + if (!s || !s._a) { + // <d> + if (s && s.id) { + sm2._wD(s.id + ': Ignoring ' + e.type); + } else { + sm2._wD(h5 + 'Ignoring ' + e.type); + } + // </d> + result = null; + } else { + result = oFn.call(this, e); + } + + return result; + + }; + + } + + html5_events = { + + // HTML5 event-name-to-handler map + + abort: html5_event(function() { + + sm2._wD(this._s.id + ': abort'); + + }), + + // enough has loaded to play + + canplay: html5_event(function() { + + var s = this._s, + position1K; + + if (s._html5_canplay) { + // this event has already fired. ignore. + return true; + } + + s._html5_canplay = true; + sm2._wD(s.id + ': canplay'); + s._onbufferchange(0); + + // position according to instance options + position1K = (s._iO.position !== _undefined && !isNaN(s._iO.position) ? s._iO.position/msecScale : null); + + // set the position if position was provided before the sound loaded + if (this.currentTime !== position1K) { + sm2._wD(s.id + ': canplay: Setting position to ' + position1K); + try { + this.currentTime = position1K; + } catch(ee) { + sm2._wD(s.id + ': canplay: Setting position of ' + position1K + ' failed: ' + ee.message, 2); + } + } + + // hack for HTML5 from/to case + if (s._iO._oncanplay) { + s._iO._oncanplay(); + } + + }), + + canplaythrough: html5_event(function() { + + var s = this._s; + + if (!s.loaded) { + s._onbufferchange(0); + s._whileloading(s.bytesLoaded, s.bytesTotal, s._get_html5_duration()); + s._onload(true); + } + + }), + + durationchange: html5_event(function() { + + // durationchange may fire at various times, probably the safest way to capture accurate/final duration. + + var s = this._s, + duration; + + duration = s._get_html5_duration(); + + if (!isNaN(duration) && duration !== s.duration) { + + sm2._wD(this._s.id + ': durationchange (' + duration + ')' + (s.duration ? ', previously ' + s.duration : '')); + + s.durationEstimate = s.duration = duration; + + } + + }), + + // TODO: Reserved for potential use + /* + emptied: html5_event(function() { + + sm2._wD(this._s.id + ': emptied'); + + }), + */ + + ended: html5_event(function() { + + var s = this._s; + + sm2._wD(s.id + ': ended'); + + s._onfinish(); + + }), + + error: html5_event(function() { + + sm2._wD(this._s.id + ': HTML5 error, code ' + this.error.code); + /** + * HTML5 error codes, per W3C + * Error 1: Client aborted download at user's request. + * Error 2: Network error after load started. + * Error 3: Decoding issue. + * Error 4: Media (audio file) not supported. + * Reference: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#error-codes + */ + // call load with error state? + this._s._onload(false); + + }), + + loadeddata: html5_event(function() { + + var s = this._s; + + sm2._wD(s.id + ': loadeddata'); + + // safari seems to nicely report progress events, eventually totalling 100% + if (!s._loaded && !isSafari) { + s.duration = s._get_html5_duration(); + } + + }), + + loadedmetadata: html5_event(function() { + + sm2._wD(this._s.id + ': loadedmetadata'); + + }), + + loadstart: html5_event(function() { + + sm2._wD(this._s.id + ': loadstart'); + // assume buffering at first + this._s._onbufferchange(1); + + }), + + play: html5_event(function() { + + // sm2._wD(this._s.id + ': play()'); + // once play starts, no buffering + this._s._onbufferchange(0); + + }), + + playing: html5_event(function() { + + sm2._wD(this._s.id + ': playing ' + String.fromCharCode(9835)); + // once play starts, no buffering + this._s._onbufferchange(0); + + }), + + progress: html5_event(function(e) { + + // note: can fire repeatedly after "loaded" event, due to use of HTTP range/partials + + var s = this._s, + i, j, progStr, buffered = 0, + isProgress = (e.type === 'progress'), + ranges = e.target.buffered, + // firefox 3.6 implements e.loaded/total (bytes) + loaded = (e.loaded || 0), + total = (e.total || 1); + + // reset the "buffered" (loaded byte ranges) array + s.buffered = []; + + if (ranges && ranges.length) { + + // if loaded is 0, try TimeRanges implementation as % of load + // https://developer.mozilla.org/en/DOM/TimeRanges + + // re-build "buffered" array + // HTML5 returns seconds. SM2 API uses msec for setPosition() etc., whether Flash or HTML5. + for (i = 0, j = ranges.length; i < j; i++) { + s.buffered.push({ + 'start': ranges.start(i) * msecScale, + 'end': ranges.end(i) * msecScale + }); + } + + // use the last value locally + buffered = (ranges.end(0) - ranges.start(0)) * msecScale; + + // linear case, buffer sum; does not account for seeking and HTTP partials / byte ranges + loaded = Math.min(1, buffered / (e.target.duration * msecScale)); + + // <d> + if (isProgress && ranges.length > 1) { + progStr = []; + j = ranges.length; + for (i = 0; i < j; i++) { + progStr.push((e.target.buffered.start(i) * msecScale) + '-' + (e.target.buffered.end(i) * msecScale)); + } + sm2._wD(this._s.id + ': progress, timeRanges: ' + progStr.join(', ')); + } + + if (isProgress && !isNaN(loaded)) { + sm2._wD(this._s.id + ': progress, ' + Math.floor(loaded * 100) + '% loaded'); + } + // </d> + + } + + if (!isNaN(loaded)) { + + // TODO: prevent calls with duplicate values. + s._whileloading(loaded, total, s._get_html5_duration()); + if (loaded && total && loaded === total) { + // in case "onload" doesn't fire (eg. gecko 1.9.2) + html5_events.canplaythrough.call(this, e); + } + + } + + }), + + ratechange: html5_event(function() { + + sm2._wD(this._s.id + ': ratechange'); + + }), + + suspend: html5_event(function(e) { + + // download paused/stopped, may have finished (eg. onload) + var s = this._s; + + sm2._wD(this._s.id + ': suspend'); + html5_events.progress.call(this, e); + s._onsuspend(); + + }), + + stalled: html5_event(function() { + + sm2._wD(this._s.id + ': stalled'); + + }), + + timeupdate: html5_event(function() { + + this._s._onTimer(); + + }), + + waiting: html5_event(function() { + + var s = this._s; + + // see also: seeking + sm2._wD(this._s.id + ': waiting'); + + // playback faster than download rate, etc. + s._onbufferchange(1); + + }) + + }; + + html5OK = function(iO) { + + // playability test based on URL or MIME type + + var result; + + if (!iO || (!iO.type && !iO.url && !iO.serverURL)) { + + // nothing to check + result = false; + + } else if (iO.serverURL || (iO.type && preferFlashCheck(iO.type))) { + + // RTMP, or preferring flash + result = false; + + } else { + + // Use type, if specified. Pass data: URIs to HTML5. If HTML5-only mode, no other options, so just give 'er + result = ((iO.type ? html5CanPlay({type:iO.type}) : html5CanPlay({url:iO.url}) || sm2.html5Only || iO.url.match(/data\:/i))); + + } + + return result; + + }; + + html5Unload = function(oAudio) { + + /** + * Internal method: Unload media, and cancel any current/pending network requests. + * Firefox can load an empty URL, which allegedly destroys the decoder and stops the download. + * https://developer.mozilla.org/En/Using_audio_and_video_in_Firefox#Stopping_the_download_of_media + * However, Firefox has been seen loading a relative URL from '' and thus requesting the hosting page on unload. + * Other UA behaviour is unclear, so everyone else gets an about:blank-style URL. + */ + + var url; + + if (oAudio) { + + // Firefox and Chrome accept short WAVe data: URIs. Chome dislikes audio/wav, but accepts audio/wav for data: MIME. + // Desktop Safari complains / fails on data: URI, so it gets about:blank. + url = (isSafari ? emptyURL : (sm2.html5.canPlayType('audio/wav') ? emptyWAV : emptyURL)); + + oAudio.src = url; + + // reset some state, too + if (oAudio._called_unload !== _undefined) { + oAudio._called_load = false; + } + + } + + if (useGlobalHTML5Audio) { + + // ensure URL state is trashed, also + lastGlobalHTML5URL = null; + + } + + return url; + + }; + + html5CanPlay = function(o) { + + /** + * Try to find MIME, test and return truthiness + * o = { + * url: '/path/to/an.mp3', + * type: 'audio/mp3' + * } + */ + + if (!sm2.useHTML5Audio || !sm2.hasHTML5) { + return false; + } + + var url = (o.url || null), + mime = (o.type || null), + aF = sm2.audioFormats, + result, + offset, + fileExt, + item; + + // account for known cases like audio/mp3 + + if (mime && sm2.html5[mime] !== _undefined) { + return (sm2.html5[mime] && !preferFlashCheck(mime)); + } + + if (!html5Ext) { + + html5Ext = []; + + for (item in aF) { + + if (aF.hasOwnProperty(item)) { + + html5Ext.push(item); + + if (aF[item].related) { + html5Ext = html5Ext.concat(aF[item].related); + } + + } + + } + + html5Ext = new RegExp('\\.('+html5Ext.join('|')+')(\\?.*)?$','i'); + + } + + // TODO: Strip URL queries, etc. + fileExt = (url ? url.toLowerCase().match(html5Ext) : null); + + if (!fileExt || !fileExt.length) { + + if (!mime) { + + result = false; + + } else { + + // audio/mp3 -> mp3, result should be known + offset = mime.indexOf(';'); + + // strip "audio/X; codecs..." + fileExt = (offset !== -1 ? mime.substr(0,offset) : mime).substr(6); + + } + + } else { + + // match the raw extension name - "mp3", for example + fileExt = fileExt[1]; + + } + + if (fileExt && sm2.html5[fileExt] !== _undefined) { + + // result known + result = (sm2.html5[fileExt] && !preferFlashCheck(fileExt)); + + } else { + + mime = 'audio/' + fileExt; + result = sm2.html5.canPlayType({type:mime}); + + sm2.html5[fileExt] = result; + + // sm2._wD('canPlayType, found result: ' + result); + result = (result && sm2.html5[mime] && !preferFlashCheck(mime)); + } + + return result; + + }; + + testHTML5 = function() { + + /** + * Internal: Iterates over audioFormats, determining support eg. audio/mp3, audio/mpeg and so on + * assigns results to html5[] and flash[]. + */ + + if (!sm2.useHTML5Audio || !sm2.hasHTML5) { + + // without HTML5, we need Flash. + sm2.html5.usingFlash = true; + needsFlash = true; + + return false; + + } + + // double-whammy: Opera 9.64 throws WRONG_ARGUMENTS_ERR if no parameter passed to Audio(), and Webkit + iOS happily tries to load "null" as a URL. :/ + var a = (Audio !== _undefined ? (isOpera && opera.version() < 10 ? new Audio(null) : new Audio()) : null), + item, lookup, support = {}, aF, i; + + function cp(m) { + + var canPlay, j, + result = false, + isOK = false; + + if (!a || typeof a.canPlayType !== 'function') { + return result; + } + + if (m instanceof Array) { + + // iterate through all mime types, return any successes + + for (i = 0, j = m.length; i < j; i++) { + + if (sm2.html5[m[i]] || a.canPlayType(m[i]).match(sm2.html5Test)) { + + isOK = true; + sm2.html5[m[i]] = true; + + // note flash support, too + sm2.flash[m[i]] = !!(m[i].match(flashMIME)); + + } + + } + + result = isOK; + + } else { + + canPlay = (a && typeof a.canPlayType === 'function' ? a.canPlayType(m) : false); + result = !!(canPlay && (canPlay.match(sm2.html5Test))); + + } + + return result; + + } + + // test all registered formats + codecs + + aF = sm2.audioFormats; + + for (item in aF) { + + if (aF.hasOwnProperty(item)) { + + lookup = 'audio/' + item; + + support[item] = cp(aF[item].type); + + // write back generic type too, eg. audio/mp3 + support[lookup] = support[item]; + + // assign flash + if (item.match(flashMIME)) { + + sm2.flash[item] = true; + sm2.flash[lookup] = true; + + } else { + + sm2.flash[item] = false; + sm2.flash[lookup] = false; + + } + + // assign result to related formats, too + + if (aF[item] && aF[item].related) { + + for (i = aF[item].related.length - 1; i >= 0; i--) { + + // eg. audio/m4a + support['audio/' + aF[item].related[i]] = support[item]; + sm2.html5[aF[item].related[i]] = support[item]; + sm2.flash[aF[item].related[i]] = support[item]; + + } + + } + + } + + } + + support.canPlayType = (a ? cp : null); + sm2.html5 = mixin(sm2.html5, support); + + sm2.html5.usingFlash = featureCheck(); + needsFlash = sm2.html5.usingFlash; + + return true; + + }; + + strings = { + + // <d> + notReady: 'Unavailable - wait until onready() has fired.', + notOK: 'Audio support is not available.', + domError: sm + 'exception caught while appending SWF to DOM.', + spcWmode: 'Removing wmode, preventing known SWF loading issue(s)', + swf404: smc + 'Verify that %s is a valid path.', + tryDebug: 'Try ' + sm + '.debugFlash = true for more security details (output goes to SWF.)', + checkSWF: 'See SWF output for more debug info.', + localFail: smc + 'Non-HTTP page (' + doc.location.protocol + ' URL?) Review Flash player security settings for this special case:\nhttp://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html\nMay need to add/allow path, eg. c:/sm2/ or /users/me/sm2/', + waitFocus: smc + 'Special case: Waiting for SWF to load with window focus...', + waitForever: smc + 'Waiting indefinitely for Flash (will recover if unblocked)...', + waitSWF: smc + 'Waiting for 100% SWF load...', + needFunction: smc + 'Function object expected for %s', + badID: 'Sound ID "%s" should be a string, starting with a non-numeric character', + currentObj: smc + '_debug(): Current sound objects', + waitOnload: smc + 'Waiting for window.onload()', + docLoaded: smc + 'Document already loaded', + onload: smc + 'initComplete(): calling soundManager.onload()', + onloadOK: sm + '.onload() complete', + didInit: smc + 'init(): Already called?', + secNote: 'Flash security note: Network/internet URLs will not load due to security restrictions. Access can be configured via Flash Player Global Security Settings Page: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html', + badRemove: smc + 'Failed to remove Flash node.', + shutdown: sm + '.disable(): Shutting down', + queue: smc + 'Queueing %s handler', + smError: 'SMSound.load(): Exception: JS-Flash communication failed, or JS error.', + fbTimeout: 'No flash response, applying .' + swfCSS.swfTimedout + ' CSS...', + fbLoaded: 'Flash loaded', + fbHandler: smc + 'flashBlockHandler()', + manURL: 'SMSound.load(): Using manually-assigned URL', + onURL: sm + '.load(): current URL already assigned.', + badFV: sm + '.flashVersion must be 8 or 9. "%s" is invalid. Reverting to %s.', + as2loop: 'Note: Setting stream:false so looping can work (flash 8 limitation)', + noNSLoop: 'Note: Looping not implemented for MovieStar formats', + needfl9: 'Note: Switching to flash 9, required for MP4 formats.', + mfTimeout: 'Setting flashLoadTimeout = 0 (infinite) for off-screen, mobile flash case', + needFlash: smc + 'Fatal error: Flash is needed to play some required formats, but is not available.', + gotFocus: smc + 'Got window focus.', + policy: 'Enabling usePolicyFile for data access', + setup: sm + '.setup(): allowed parameters: %s', + setupError: sm + '.setup(): "%s" cannot be assigned with this method.', + setupUndef: sm + '.setup(): Could not find option "%s"', + setupLate: sm + '.setup(): url, flashVersion and html5Test property changes will not take effect until reboot().', + noURL: smc + 'Flash URL required. Call soundManager.setup({url:...}) to get started.', + sm2Loaded: 'SoundManager 2: Ready. ' + String.fromCharCode(10003), + reset: sm + '.reset(): Removing event callbacks', + mobileUA: 'Mobile UA detected, preferring HTML5 by default.', + globalHTML5: 'Using singleton HTML5 Audio() pattern for this device.', + ignoreMobile: 'Ignoring mobile restrictions for this device.' + // </d> + + }; + + str = function() { + + // internal string replace helper. + // arguments: o [,items to replace] + // <d> + + var args, + i, j, o, + sstr; + + // real array, please + args = slice.call(arguments); + + // first argument + o = args.shift(); + + sstr = (strings && strings[o] ? strings[o] : ''); + + if (sstr && args && args.length) { + for (i = 0, j = args.length; i < j; i++) { + sstr = sstr.replace('%s', args[i]); + } + } + + return sstr; + // </d> + + }; + + loopFix = function(sOpt) { + + // flash 8 requires stream = false for looping to work + if (fV === 8 && sOpt.loops > 1 && sOpt.stream) { + _wDS('as2loop'); + sOpt.stream = false; + } + + return sOpt; + + }; + + policyFix = function(sOpt, sPre) { + + if (sOpt && !sOpt.usePolicyFile && (sOpt.onid3 || sOpt.usePeakData || sOpt.useWaveformData || sOpt.useEQData)) { + sm2._wD((sPre || '') + str('policy')); + sOpt.usePolicyFile = true; + } + + return sOpt; + + }; + + complain = function(sMsg) { + + // <d> + if (hasConsole && console.warn !== _undefined) { + console.warn(sMsg); + } else { + sm2._wD(sMsg); + } + // </d> + + }; + + doNothing = function() { + + return false; + + }; + + disableObject = function(o) { + + var oProp; + + for (oProp in o) { + if (o.hasOwnProperty(oProp) && typeof o[oProp] === 'function') { + o[oProp] = doNothing; + } + } + + oProp = null; + + }; + + failSafely = function(bNoDisable) { + + // general failure exception handler + + if (bNoDisable === _undefined) { + bNoDisable = false; + } + + if (disabled || bNoDisable) { + sm2.disable(bNoDisable); + } + + }; + + normalizeMovieURL = function(smURL) { + + var urlParams = null, url; + + if (smURL) { + + if (smURL.match(/\.swf(\?.*)?$/i)) { + + urlParams = smURL.substr(smURL.toLowerCase().lastIndexOf('.swf?') + 4); + + if (urlParams) { + // assume user knows what they're doing + return smURL; + } + + } else if (smURL.lastIndexOf('/') !== smURL.length - 1) { + + // append trailing slash, if needed + smURL += '/'; + + } + + } + + url = (smURL && smURL.lastIndexOf('/') !== - 1 ? smURL.substr(0, smURL.lastIndexOf('/') + 1) : './') + sm2.movieURL; + + if (sm2.noSWFCache) { + url += ('?ts=' + new Date().getTime()); + } + + return url; + + }; + + setVersionInfo = function() { + + // short-hand for internal use + + fV = parseInt(sm2.flashVersion, 10); + + if (fV !== 8 && fV !== 9) { + sm2._wD(str('badFV', fV, defaultFlashVersion)); + sm2.flashVersion = fV = defaultFlashVersion; + } + + // debug flash movie, if applicable + + var isDebug = (sm2.debugMode || sm2.debugFlash ? '_debug.swf' : '.swf'); + + if (sm2.useHTML5Audio && !sm2.html5Only && sm2.audioFormats.mp4.required && fV < 9) { + sm2._wD(str('needfl9')); + sm2.flashVersion = fV = 9; + } + + sm2.version = sm2.versionNumber + (sm2.html5Only ? ' (HTML5-only mode)' : (fV === 9 ? ' (AS3/Flash 9)' : ' (AS2/Flash 8)')); + + // set up default options + if (fV > 8) { + + // +flash 9 base options + sm2.defaultOptions = mixin(sm2.defaultOptions, sm2.flash9Options); + sm2.features.buffering = true; + + // +moviestar support + sm2.defaultOptions = mixin(sm2.defaultOptions, sm2.movieStarOptions); + sm2.filePatterns.flash9 = new RegExp('\\.(mp3|' + netStreamTypes.join('|') + ')(\\?.*)?$', 'i'); + sm2.features.movieStar = true; + + } else { + + sm2.features.movieStar = false; + + } + + // regExp for flash canPlay(), etc. + sm2.filePattern = sm2.filePatterns[(fV !== 8 ? 'flash9' : 'flash8')]; + + // if applicable, use _debug versions of SWFs + sm2.movieURL = (fV === 8 ? 'soundmanager2.swf' : 'soundmanager2_flash9.swf').replace('.swf', isDebug); + + sm2.features.peakData = sm2.features.waveformData = sm2.features.eqData = (fV > 8); + + }; + + setPolling = function(bPolling, bHighPerformance) { + + if (!flash) { + return false; + } + + flash._setPolling(bPolling, bHighPerformance); + + }; + + initDebug = function() { + + // starts debug mode, creating output <div> for UAs without console object + + // allow force of debug mode via URL + // <d> + if (sm2.debugURLParam.test(wl)) { + sm2.setupOptions.debugMode = sm2.debugMode = true; + } + + if (id(sm2.debugID)) { + return false; + } + + var oD, oDebug, oTarget, oToggle, tmp; + + if (sm2.debugMode && !id(sm2.debugID) && (!hasConsole || !sm2.useConsole || !sm2.consoleOnly)) { + + oD = doc.createElement('div'); + oD.id = sm2.debugID + '-toggle'; + + oToggle = { + 'position': 'fixed', + 'bottom': '0px', + 'right': '0px', + 'width': '1.2em', + 'height': '1.2em', + 'lineHeight': '1.2em', + 'margin': '2px', + 'textAlign': 'center', + 'border': '1px solid #999', + 'cursor': 'pointer', + 'background': '#fff', + 'color': '#333', + 'zIndex': 10001 + }; + + oD.appendChild(doc.createTextNode('-')); + oD.onclick = toggleDebug; + oD.title = 'Toggle SM2 debug console'; + + if (ua.match(/msie 6/i)) { + oD.style.position = 'absolute'; + oD.style.cursor = 'hand'; + } + + for (tmp in oToggle) { + if (oToggle.hasOwnProperty(tmp)) { + oD.style[tmp] = oToggle[tmp]; + } + } + + oDebug = doc.createElement('div'); + oDebug.id = sm2.debugID; + oDebug.style.display = (sm2.debugMode ? 'block' : 'none'); + + if (sm2.debugMode && !id(oD.id)) { + try { + oTarget = getDocument(); + oTarget.appendChild(oD); + } catch(e2) { + throw new Error(str('domError') + ' \n' + e2.toString()); + } + oTarget.appendChild(oDebug); + } + + } + + oTarget = null; + // </d> + + }; + + idCheck = this.getSoundById; + + // <d> + _wDS = function(o, errorLevel) { + + return (!o ? '' : sm2._wD(str(o), errorLevel)); + + }; + + toggleDebug = function() { + + var o = id(sm2.debugID), + oT = id(sm2.debugID + '-toggle'); + + if (!o) { + return false; + } + + if (debugOpen) { + // minimize + oT.innerHTML = '+'; + o.style.display = 'none'; + } else { + oT.innerHTML = '-'; + o.style.display = 'block'; + } + + debugOpen = !debugOpen; + + }; + + debugTS = function(sEventType, bSuccess, sMessage) { + + // troubleshooter debug hooks + + if (window.sm2Debugger !== _undefined) { + try { + sm2Debugger.handleEvent(sEventType, bSuccess, sMessage); + } catch(e) { + // oh well + return false; + } + } + + return true; + + }; + // </d> + + getSWFCSS = function() { + + var css = []; + + if (sm2.debugMode) { + css.push(swfCSS.sm2Debug); + } + + if (sm2.debugFlash) { + css.push(swfCSS.flashDebug); + } + + if (sm2.useHighPerformance) { + css.push(swfCSS.highPerf); + } + + return css.join(' '); + + }; + + flashBlockHandler = function() { + + // *possible* flash block situation. + + var name = str('fbHandler'), + p = sm2.getMoviePercent(), + css = swfCSS, + error = { + type:'FLASHBLOCK' + }; + + if (sm2.html5Only) { + // no flash, or unused + return false; + } + + if (!sm2.ok()) { + + if (needsFlash) { + // make the movie more visible, so user can fix + sm2.oMC.className = getSWFCSS() + ' ' + css.swfDefault + ' ' + (p === null ? css.swfTimedout : css.swfError); + sm2._wD(name + ': ' + str('fbTimeout') + (p ? ' (' + str('fbLoaded') + ')' : '')); + } + + sm2.didFlashBlock = true; + + // fire onready(), complain lightly + processOnEvents({ + type: 'ontimeout', + ignoreInit: true, + error: error + }); + + catchError(error); + + } else { + + // SM2 loaded OK (or recovered) + + // <d> + if (sm2.didFlashBlock) { + sm2._wD(name + ': Unblocked'); + } + // </d> + + if (sm2.oMC) { + sm2.oMC.className = [getSWFCSS(), css.swfDefault, css.swfLoaded + (sm2.didFlashBlock ? ' ' + css.swfUnblocked : '')].join(' '); + } + + } + + }; + + addOnEvent = function(sType, oMethod, oScope) { + + if (on_queue[sType] === _undefined) { + on_queue[sType] = []; + } + + on_queue[sType].push({ + 'method': oMethod, + 'scope': (oScope || null), + 'fired': false + }); + + }; + + processOnEvents = function(oOptions) { + + // if unspecified, assume OK/error + + if (!oOptions) { + oOptions = { + type: (sm2.ok() ? 'onready' : 'ontimeout') + }; + } + + if (!didInit && oOptions && !oOptions.ignoreInit) { + // not ready yet. + return false; + } + + if (oOptions.type === 'ontimeout' && (sm2.ok() || (disabled && !oOptions.ignoreInit))) { + // invalid case + return false; + } + + var status = { + success: (oOptions && oOptions.ignoreInit ? sm2.ok() : !disabled) + }, + + // queue specified by type, or none + srcQueue = (oOptions && oOptions.type ? on_queue[oOptions.type] || [] : []), + + queue = [], i, j, + args = [status], + canRetry = (needsFlash && !sm2.ok()); + + if (oOptions.error) { + args[0].error = oOptions.error; + } + + for (i = 0, j = srcQueue.length; i < j; i++) { + if (srcQueue[i].fired !== true) { + queue.push(srcQueue[i]); + } + } + + if (queue.length) { + + // sm2._wD(sm + ': Firing ' + queue.length + ' ' + oOptions.type + '() item' + (queue.length === 1 ? '' : 's')); + for (i = 0, j = queue.length; i < j; i++) { + + if (queue[i].scope) { + queue[i].method.apply(queue[i].scope, args); + } else { + queue[i].method.apply(this, args); + } + + if (!canRetry) { + // useFlashBlock and SWF timeout case doesn't count here. + queue[i].fired = true; + + } + + } + + } + + return true; + + }; + + initUserOnload = function() { + + window.setTimeout(function() { + + if (sm2.useFlashBlock) { + flashBlockHandler(); + } + + processOnEvents(); + + // call user-defined "onload", scoped to window + + if (typeof sm2.onload === 'function') { + _wDS('onload', 1); + sm2.onload.apply(window); + _wDS('onloadOK', 1); + } + + if (sm2.waitForWindowLoad) { + event.add(window, 'load', initUserOnload); + } + + }, 1); + + }; + + detectFlash = function() { + + /** + * Hat tip: Flash Detect library (BSD, (C) 2007) by Carl "DocYes" S. Yestrau + * http://featureblend.com/javascript-flash-detection-library.html / http://featureblend.com/license.txt + */ + + if (hasFlash !== _undefined) { + // this work has already been done. + return hasFlash; + } + + var hasPlugin = false, n = navigator, nP = n.plugins, obj, type, types, AX = window.ActiveXObject; + + if (nP && nP.length) { + + type = 'application/x-shockwave-flash'; + types = n.mimeTypes; + + if (types && types[type] && types[type].enabledPlugin && types[type].enabledPlugin.description) { + hasPlugin = true; + } + + } else if (AX !== _undefined && !ua.match(/MSAppHost/i)) { + + // Windows 8 Store Apps (MSAppHost) are weird (compatibility?) and won't complain here, but will barf if Flash/ActiveX object is appended to the DOM. + try { + obj = new AX('ShockwaveFlash.ShockwaveFlash'); + } catch(e) { + // oh well + obj = null; + } + + hasPlugin = (!!obj); + + // cleanup, because it is ActiveX after all + obj = null; + + } + + hasFlash = hasPlugin; + + return hasPlugin; + + }; + +featureCheck = function() { + + var flashNeeded, + item, + formats = sm2.audioFormats, + // iPhone <= 3.1 has broken HTML5 audio(), but firmware 3.2 (original iPad) + iOS4 works. + isSpecial = (is_iDevice && !!(ua.match(/os (1|2|3_0|3_1)\s/i))); + + if (isSpecial) { + + // has Audio(), but is broken; let it load links directly. + sm2.hasHTML5 = false; + + // ignore flash case, however + sm2.html5Only = true; + + // hide the SWF, if present + if (sm2.oMC) { + sm2.oMC.style.display = 'none'; + } + + } else { + + if (sm2.useHTML5Audio) { + + if (!sm2.html5 || !sm2.html5.canPlayType) { + sm2._wD('SoundManager: No HTML5 Audio() support detected.'); + sm2.hasHTML5 = false; + } + + // <d> + if (isBadSafari) { + sm2._wD(smc + 'Note: Buggy HTML5 Audio in Safari on this OS X release, see https://bugs.webkit.org/show_bug.cgi?id=32159 - ' + (!hasFlash ? ' would use flash fallback for MP3/MP4, but none detected.' : 'will use flash fallback for MP3/MP4, if available'), 1); + } + // </d> + + } + + } + + if (sm2.useHTML5Audio && sm2.hasHTML5) { + + // sort out whether flash is optional, required or can be ignored. + + // innocent until proven guilty. + canIgnoreFlash = true; + + for (item in formats) { + + if (formats.hasOwnProperty(item)) { + + if (formats[item].required) { + + if (!sm2.html5.canPlayType(formats[item].type)) { + + // 100% HTML5 mode is not possible. + canIgnoreFlash = false; + flashNeeded = true; + + } else if (sm2.preferFlash && (sm2.flash[item] || sm2.flash[formats[item].type])) { + + // flash may be required, or preferred for this format. + flashNeeded = true; + + } + + } + + } + + } + + } + + // sanity check... + if (sm2.ignoreFlash) { + flashNeeded = false; + canIgnoreFlash = true; + } + + sm2.html5Only = (sm2.hasHTML5 && sm2.useHTML5Audio && !flashNeeded); + + return (!sm2.html5Only); + + }; + + parseURL = function(url) { + + /** + * Internal: Finds and returns the first playable URL (or failing that, the first URL.) + * @param {string or array} url A single URL string, OR, an array of URL strings or {url:'/path/to/resource', type:'audio/mp3'} objects. + */ + + var i, j, urlResult = 0, result; + + if (url instanceof Array) { + + // find the first good one + for (i = 0, j = url.length; i < j; i++) { + + if (url[i] instanceof Object) { + + // MIME check + if (sm2.canPlayMIME(url[i].type)) { + urlResult = i; + break; + } + + } else if (sm2.canPlayURL(url[i])) { + + // URL string check + urlResult = i; + break; + + } + + } + + // normalize to string + if (url[urlResult].url) { + url[urlResult] = url[urlResult].url; + } + + result = url[urlResult]; + + } else { + + // single URL case + result = url; + + } + + return result; + + }; + + + startTimer = function(oSound) { + + /** + * attach a timer to this sound, and start an interval if needed + */ + + if (!oSound._hasTimer) { + + oSound._hasTimer = true; + + if (!mobileHTML5 && sm2.html5PollingInterval) { + + if (h5IntervalTimer === null && h5TimerCount === 0) { + + h5IntervalTimer = setInterval(timerExecute, sm2.html5PollingInterval); + + } + + h5TimerCount++; + + } + + } + + }; + + stopTimer = function(oSound) { + + /** + * detach a timer + */ + + if (oSound._hasTimer) { + + oSound._hasTimer = false; + + if (!mobileHTML5 && sm2.html5PollingInterval) { + + // interval will stop itself at next execution. + + h5TimerCount--; + + } + + } + + }; + + timerExecute = function() { + + /** + * manual polling for HTML5 progress events, ie., whileplaying() + * (can achieve greater precision than conservative default HTML5 interval) + */ + + var i; + + if (h5IntervalTimer !== null && !h5TimerCount) { + + // no active timers, stop polling interval. + + clearInterval(h5IntervalTimer); + + h5IntervalTimer = null; + + return false; + + } + + // check all HTML5 sounds with timers + + for (i = sm2.soundIDs.length - 1; i >= 0; i--) { + + if (sm2.sounds[sm2.soundIDs[i]].isHTML5 && sm2.sounds[sm2.soundIDs[i]]._hasTimer) { + sm2.sounds[sm2.soundIDs[i]]._onTimer(); + } + + } + + }; + + catchError = function(options) { + + options = (options !== _undefined ? options : {}); + + if (typeof sm2.onerror === 'function') { + sm2.onerror.apply(window, [{ + type: (options.type !== _undefined ? options.type : null) + }]); + } + + if (options.fatal !== _undefined && options.fatal) { + sm2.disable(); + } + + }; + + badSafariFix = function() { + + // special case: "bad" Safari (OS X 10.3 - 10.7) must fall back to flash for MP3/MP4 + if (!isBadSafari || !detectFlash()) { + // doesn't apply + return false; + } + + var aF = sm2.audioFormats, i, item; + + for (item in aF) { + + if (aF.hasOwnProperty(item)) { + + if (item === 'mp3' || item === 'mp4') { + + sm2._wD(sm + ': Using flash fallback for ' + item + ' format'); + sm2.html5[item] = false; + + // assign result to related formats, too + if (aF[item] && aF[item].related) { + for (i = aF[item].related.length - 1; i >= 0; i--) { + sm2.html5[aF[item].related[i]] = false; + } + } + + } + + } + + } + + }; + + /** + * Pseudo-private flash/ExternalInterface methods + * ---------------------------------------------- + */ + + this._setSandboxType = function(sandboxType) { + + // <d> + // Security sandbox according to Flash plugin + var sb = sm2.sandbox; + + sb.type = sandboxType; + sb.description = sb.types[(sb.types[sandboxType] !== _undefined?sandboxType : 'unknown')]; + + if (sb.type === 'localWithFile') { + + sb.noRemote = true; + sb.noLocal = false; + _wDS('secNote', 2); + + } else if (sb.type === 'localWithNetwork') { + + sb.noRemote = false; + sb.noLocal = true; + + } else if (sb.type === 'localTrusted') { + + sb.noRemote = false; + sb.noLocal = false; + + } + // </d> + + }; + + this._externalInterfaceOK = function(swfVersion) { + + // flash callback confirming flash loaded, EI working etc. + // swfVersion: SWF build string + + if (sm2.swfLoaded) { + return false; + } + + var e; + + debugTS('swf', true); + debugTS('flashtojs', true); + sm2.swfLoaded = true; + tryInitOnFocus = false; + + if (isBadSafari) { + badSafariFix(); + } + + // complain if JS + SWF build/version strings don't match, excluding +DEV builds + // <d> + if (!swfVersion || swfVersion.replace(/\+dev/i,'') !== sm2.versionNumber.replace(/\+dev/i, '')) { + + e = sm + ': Fatal: JavaScript file build "' + sm2.versionNumber + '" does not match Flash SWF build "' + swfVersion + '" at ' + sm2.url + '. Ensure both are up-to-date.'; + + // escape flash -> JS stack so this error fires in window. + setTimeout(function versionMismatch() { + throw new Error(e); + }, 0); + + // exit, init will fail with timeout + return false; + + } + // </d> + + // IE needs a larger timeout + setTimeout(init, isIE ? 100 : 1); + + }; + + /** + * Private initialization helpers + * ------------------------------ + */ + + createMovie = function(smID, smURL) { + + if (didAppend && appendSuccess) { + // ignore if already succeeded + return false; + } + + function initMsg() { + + // <d> + + var options = [], + title, + msg = [], + delimiter = ' + '; + + title = 'SoundManager ' + sm2.version + (!sm2.html5Only && sm2.useHTML5Audio ? (sm2.hasHTML5 ? ' + HTML5 audio' : ', no HTML5 audio support') : ''); + + if (!sm2.html5Only) { + + if (sm2.preferFlash) { + options.push('preferFlash'); + } + + if (sm2.useHighPerformance) { + options.push('useHighPerformance'); + } + + if (sm2.flashPollingInterval) { + options.push('flashPollingInterval (' + sm2.flashPollingInterval + 'ms)'); + } + + if (sm2.html5PollingInterval) { + options.push('html5PollingInterval (' + sm2.html5PollingInterval + 'ms)'); + } + + if (sm2.wmode) { + options.push('wmode (' + sm2.wmode + ')'); + } + + if (sm2.debugFlash) { + options.push('debugFlash'); + } + + if (sm2.useFlashBlock) { + options.push('flashBlock'); + } + + } else { + + if (sm2.html5PollingInterval) { + options.push('html5PollingInterval (' + sm2.html5PollingInterval + 'ms)'); + } + + } + + if (options.length) { + msg = msg.concat([options.join(delimiter)]); + } + + sm2._wD(title + (msg.length ? delimiter + msg.join(', ') : ''), 1); + + showSupport(); + + // </d> + + } + + if (sm2.html5Only) { + + // 100% HTML5 mode + setVersionInfo(); + + initMsg(); + sm2.oMC = id(sm2.movieID); + init(); + + // prevent multiple init attempts + didAppend = true; + + appendSuccess = true; + + return false; + + } + + // flash path + var remoteURL = (smURL || sm2.url), + localURL = (sm2.altURL || remoteURL), + swfTitle = 'JS/Flash audio component (SoundManager 2)', + oTarget = getDocument(), + extraClass = getSWFCSS(), + isRTL = null, + html = doc.getElementsByTagName('html')[0], + oEmbed, oMovie, tmp, movieHTML, oEl, s, x, sClass; + + isRTL = (html && html.dir && html.dir.match(/rtl/i)); + smID = (smID === _undefined ? sm2.id : smID); + + function param(name, value) { + return '<param name="' + name + '" value="' + value + '" />'; + } + + // safety check for legacy (change to Flash 9 URL) + setVersionInfo(); + sm2.url = normalizeMovieURL(overHTTP ? remoteURL : localURL); + smURL = sm2.url; + + sm2.wmode = (!sm2.wmode && sm2.useHighPerformance ? 'transparent' : sm2.wmode); + + if (sm2.wmode !== null && (ua.match(/msie 8/i) || (!isIE && !sm2.useHighPerformance)) && navigator.platform.match(/win32|win64/i)) { + /** + * extra-special case: movie doesn't load until scrolled into view when using wmode = anything but 'window' here + * does not apply when using high performance (position:fixed means on-screen), OR infinite flash load timeout + * wmode breaks IE 8 on Vista + Win7 too in some cases, as of January 2011 (?) + */ + messages.push(strings.spcWmode); + sm2.wmode = null; + } + + oEmbed = { + 'name': smID, + 'id': smID, + 'src': smURL, + 'quality': 'high', + 'allowScriptAccess': sm2.allowScriptAccess, + 'bgcolor': sm2.bgColor, + 'pluginspage': http + 'www.macromedia.com/go/getflashplayer', + 'title': swfTitle, + 'type': 'application/x-shockwave-flash', + 'wmode': sm2.wmode, + // http://help.adobe.com/en_US/as3/mobile/WS4bebcd66a74275c36cfb8137124318eebc6-7ffd.html + 'hasPriority': 'true' + }; + + if (sm2.debugFlash) { + oEmbed.FlashVars = 'debug=1'; + } + + if (!sm2.wmode) { + // don't write empty attribute + delete oEmbed.wmode; + } + + if (isIE) { + + // IE is "special". + oMovie = doc.createElement('div'); + movieHTML = [ + '<object id="' + smID + '" data="' + smURL + '" type="' + oEmbed.type + '" title="' + oEmbed.title +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">', + param('movie', smURL), + param('AllowScriptAccess', sm2.allowScriptAccess), + param('quality', oEmbed.quality), + (sm2.wmode? param('wmode', sm2.wmode): ''), + param('bgcolor', sm2.bgColor), + param('hasPriority', 'true'), + (sm2.debugFlash ? param('FlashVars', oEmbed.FlashVars) : ''), + '</object>' + ].join(''); + + } else { + + oMovie = doc.createElement('embed'); + for (tmp in oEmbed) { + if (oEmbed.hasOwnProperty(tmp)) { + oMovie.setAttribute(tmp, oEmbed[tmp]); + } + } + + } + + initDebug(); + extraClass = getSWFCSS(); + oTarget = getDocument(); + + if (oTarget) { + + sm2.oMC = (id(sm2.movieID) || doc.createElement('div')); + + if (!sm2.oMC.id) { + + sm2.oMC.id = sm2.movieID; + sm2.oMC.className = swfCSS.swfDefault + ' ' + extraClass; + s = null; + oEl = null; + + if (!sm2.useFlashBlock) { + if (sm2.useHighPerformance) { + // on-screen at all times + s = { + 'position': 'fixed', + 'width': '8px', + 'height': '8px', + // >= 6px for flash to run fast, >= 8px to start up under Firefox/win32 in some cases. odd? yes. + 'bottom': '0px', + 'left': '0px', + 'overflow': 'hidden' + }; + } else { + // hide off-screen, lower priority + s = { + 'position': 'absolute', + 'width': '6px', + 'height': '6px', + 'top': '-9999px', + 'left': '-9999px' + }; + if (isRTL) { + s.left = Math.abs(parseInt(s.left, 10)) + 'px'; + } + } + } + + if (isWebkit) { + // soundcloud-reported render/crash fix, safari 5 + sm2.oMC.style.zIndex = 10000; + } + + if (!sm2.debugFlash) { + for (x in s) { + if (s.hasOwnProperty(x)) { + sm2.oMC.style[x] = s[x]; + } + } + } + + try { + + if (!isIE) { + sm2.oMC.appendChild(oMovie); + } + + oTarget.appendChild(sm2.oMC); + + if (isIE) { + oEl = sm2.oMC.appendChild(doc.createElement('div')); + oEl.className = swfCSS.swfBox; + oEl.innerHTML = movieHTML; + } + + appendSuccess = true; + + } catch(e) { + + throw new Error(str('domError') + ' \n' + e.toString()); + + } + + } else { + + // SM2 container is already in the document (eg. flashblock use case) + sClass = sm2.oMC.className; + sm2.oMC.className = (sClass ? sClass + ' ' : swfCSS.swfDefault) + (extraClass ? ' ' + extraClass : ''); + sm2.oMC.appendChild(oMovie); + + if (isIE) { + oEl = sm2.oMC.appendChild(doc.createElement('div')); + oEl.className = swfCSS.swfBox; + oEl.innerHTML = movieHTML; + } + + appendSuccess = true; + + } + + } + + didAppend = true; + + initMsg(); + + // sm2._wD(sm + ': Trying to load ' + smURL + (!overHTTP && sm2.altURL ? ' (alternate URL)' : ''), 1); + + return true; + + }; + + initMovie = function() { + + if (sm2.html5Only) { + createMovie(); + return false; + } + + // attempt to get, or create, movie (may already exist) + if (flash) { + return false; + } + + if (!sm2.url) { + + /** + * Something isn't right - we've reached init, but the soundManager url property has not been set. + * User has not called setup({url: ...}), or has not set soundManager.url (legacy use case) directly before init time. + * Notify and exit. If user calls setup() with a url: property, init will be restarted as in the deferred loading case. + */ + + _wDS('noURL'); + return false; + + } + + // inline markup case + flash = sm2.getMovie(sm2.id); + + if (!flash) { + + if (!oRemoved) { + + // try to create + createMovie(sm2.id, sm2.url); + + } else { + + // try to re-append removed movie after reboot() + if (!isIE) { + sm2.oMC.appendChild(oRemoved); + } else { + sm2.oMC.innerHTML = oRemovedHTML; + } + + oRemoved = null; + didAppend = true; + + } + + flash = sm2.getMovie(sm2.id); + + } + + if (typeof sm2.oninitmovie === 'function') { + setTimeout(sm2.oninitmovie, 1); + } + + // <d> + flushMessages(); + // </d> + + return true; + + }; + + delayWaitForEI = function() { + + setTimeout(waitForEI, 1000); + + }; + + rebootIntoHTML5 = function() { + + // special case: try for a reboot with preferFlash: false, if 100% HTML5 mode is possible and useFlashBlock is not enabled. + + window.setTimeout(function() { + + complain(smc + 'useFlashBlock is false, 100% HTML5 mode is possible. Rebooting with preferFlash: false...'); + + sm2.setup({ + preferFlash: false + }).reboot(); + + // if for some reason you want to detect this case, use an ontimeout() callback and look for html5Only and didFlashBlock == true. + sm2.didFlashBlock = true; + + sm2.beginDelayedInit(); + + }, 1); + + }; + + waitForEI = function() { + + var p, + loadIncomplete = false; + + if (!sm2.url) { + // No SWF url to load (noURL case) - exit for now. Will be retried when url is set. + return false; + } + + if (waitingForEI) { + return false; + } + + waitingForEI = true; + event.remove(window, 'load', delayWaitForEI); + + if (hasFlash && tryInitOnFocus && !isFocused) { + // Safari won't load flash in background tabs, only when focused. + _wDS('waitFocus'); + return false; + } + + if (!didInit) { + p = sm2.getMoviePercent(); + if (p > 0 && p < 100) { + loadIncomplete = true; + } + } + + setTimeout(function() { + + p = sm2.getMoviePercent(); + + if (loadIncomplete) { + // special case: if movie *partially* loaded, retry until it's 100% before assuming failure. + waitingForEI = false; + sm2._wD(str('waitSWF')); + window.setTimeout(delayWaitForEI, 1); + return false; + } + + // <d> + if (!didInit) { + + sm2._wD(sm + ': No Flash response within expected time. Likely causes: ' + (p === 0 ? 'SWF load failed, ' : '') + 'Flash blocked or JS-Flash security error.' + (sm2.debugFlash ? ' ' + str('checkSWF') : ''), 2); + + if (!overHTTP && p) { + + _wDS('localFail', 2); + + if (!sm2.debugFlash) { + _wDS('tryDebug', 2); + } + + } + + if (p === 0) { + + // if 0 (not null), probably a 404. + sm2._wD(str('swf404', sm2.url), 1); + + } + + debugTS('flashtojs', false, ': Timed out' + (overHTTP ? ' (Check flash security or flash blockers)':' (No plugin/missing SWF?)')); + + } + // </d> + + // give up / time-out, depending + + if (!didInit && okToDisable) { + + if (p === null) { + + // SWF failed to report load progress. Possibly blocked. + + if (sm2.useFlashBlock || sm2.flashLoadTimeout === 0) { + + if (sm2.useFlashBlock) { + + flashBlockHandler(); + + } + + _wDS('waitForever'); + + } else { + + // no custom flash block handling, but SWF has timed out. Will recover if user unblocks / allows SWF load. + + if (!sm2.useFlashBlock && canIgnoreFlash) { + + rebootIntoHTML5(); + + } else { + + _wDS('waitForever'); + + // fire any regular registered ontimeout() listeners. + processOnEvents({ + type: 'ontimeout', + ignoreInit: true, + error: { + type: 'INIT_FLASHBLOCK' + } + }); + + } + + } + + } else { + + // SWF loaded? Shouldn't be a blocking issue, then. + + if (sm2.flashLoadTimeout === 0) { + + _wDS('waitForever'); + + } else { + + if (!sm2.useFlashBlock && canIgnoreFlash) { + + rebootIntoHTML5(); + + } else { + + failSafely(true); + + } + + } + + } + + } + + }, sm2.flashLoadTimeout); + + }; + + handleFocus = function() { + + function cleanup() { + event.remove(window, 'focus', handleFocus); + } + + if (isFocused || !tryInitOnFocus) { + // already focused, or not special Safari background tab case + cleanup(); + return true; + } + + okToDisable = true; + isFocused = true; + _wDS('gotFocus'); + + // allow init to restart + waitingForEI = false; + + // kick off ExternalInterface timeout, now that the SWF has started + delayWaitForEI(); + + cleanup(); + return true; + + }; + + flushMessages = function() { + + // <d> + + // SM2 pre-init debug messages + if (messages.length) { + sm2._wD('SoundManager 2: ' + messages.join(' '), 1); + messages = []; + } + + // </d> + + }; + + showSupport = function() { + + // <d> + + flushMessages(); + + var item, tests = []; + + if (sm2.useHTML5Audio && sm2.hasHTML5) { + for (item in sm2.audioFormats) { + if (sm2.audioFormats.hasOwnProperty(item)) { + tests.push(item + ' = ' + sm2.html5[item] + (!sm2.html5[item] && needsFlash && sm2.flash[item] ? ' (using flash)' : (sm2.preferFlash && sm2.flash[item] && needsFlash ? ' (preferring flash)' : (!sm2.html5[item] ? ' (' + (sm2.audioFormats[item].required ? 'required, ' : '') + 'and no flash support)' : '')))); + } + } + sm2._wD('SoundManager 2 HTML5 support: ' + tests.join(', '), 1); + } + + // </d> + + }; + + initComplete = function(bNoDisable) { + + if (didInit) { + return false; + } + + if (sm2.html5Only) { + // all good. + _wDS('sm2Loaded', 1); + didInit = true; + initUserOnload(); + debugTS('onload', true); + return true; + } + + var wasTimeout = (sm2.useFlashBlock && sm2.flashLoadTimeout && !sm2.getMoviePercent()), + result = true, + error; + + if (!wasTimeout) { + didInit = true; + } + + error = { + type: (!hasFlash && needsFlash ? 'NO_FLASH' : 'INIT_TIMEOUT') + }; + + sm2._wD('SoundManager 2 ' + (disabled ? 'failed to load' : 'loaded') + ' (' + (disabled ? 'Flash security/load error' : 'OK') + ') ' + String.fromCharCode(disabled ? 10006 : 10003), disabled ? 2: 1); + + if (disabled || bNoDisable) { + + if (sm2.useFlashBlock && sm2.oMC) { + sm2.oMC.className = getSWFCSS() + ' ' + (sm2.getMoviePercent() === null ? swfCSS.swfTimedout : swfCSS.swfError); + } + + processOnEvents({ + type: 'ontimeout', + error: error, + ignoreInit: true + }); + + debugTS('onload', false); + catchError(error); + + result = false; + + } else { + + debugTS('onload', true); + + } + + if (!disabled) { + + if (sm2.waitForWindowLoad && !windowLoaded) { + + _wDS('waitOnload'); + event.add(window, 'load', initUserOnload); + + } else { + + // <d> + if (sm2.waitForWindowLoad && windowLoaded) { + _wDS('docLoaded'); + } + // </d> + + initUserOnload(); + + } + + } + + return result; + + }; + + /** + * apply top-level setupOptions object as local properties, eg., this.setupOptions.flashVersion -> this.flashVersion (soundManager.flashVersion) + * this maintains backward compatibility, and allows properties to be defined separately for use by soundManager.setup(). + */ + + setProperties = function() { + + var i, + o = sm2.setupOptions; + + for (i in o) { + + if (o.hasOwnProperty(i)) { + + // assign local property if not already defined + + if (sm2[i] === _undefined) { + + sm2[i] = o[i]; + + } else if (sm2[i] !== o[i]) { + + // legacy support: write manually-assigned property (eg., soundManager.url) back to setupOptions to keep things in sync + sm2.setupOptions[i] = sm2[i]; + + } + + } + + } + + }; + + + init = function() { + + // called after onload() + + if (didInit) { + _wDS('didInit'); + return false; + } + + function cleanup() { + event.remove(window, 'load', sm2.beginDelayedInit); + } + + if (sm2.html5Only) { + + if (!didInit) { + // we don't need no steenking flash! + cleanup(); + sm2.enabled = true; + initComplete(); + } + + return true; + + } + + // flash path + initMovie(); + + try { + + // attempt to talk to Flash + flash._externalInterfaceTest(false); + + /** + * Apply user-specified polling interval, OR, if "high performance" set, faster vs. default polling + * (determines frequency of whileloading/whileplaying callbacks, effectively driving UI framerates) + */ + setPolling(true, (sm2.flashPollingInterval || (sm2.useHighPerformance ? 10 : 50))); + + if (!sm2.debugMode) { + // stop the SWF from making debug output calls to JS + flash._disableDebug(); + } + + sm2.enabled = true; + debugTS('jstoflash', true); + + if (!sm2.html5Only) { + // prevent browser from showing cached page state (or rather, restoring "suspended" page state) via back button, because flash may be dead + // http://www.webkit.org/blog/516/webkit-page-cache-ii-the-unload-event/ + event.add(window, 'unload', doNothing); + } + + } catch(e) { + + sm2._wD('js/flash exception: ' + e.toString()); + + debugTS('jstoflash', false); + + catchError({ + type: 'JS_TO_FLASH_EXCEPTION', + fatal: true + }); + + // don't disable, for reboot() + failSafely(true); + + initComplete(); + + return false; + + } + + initComplete(); + + // disconnect events + cleanup(); + + return true; + + }; + + domContentLoaded = function() { + + if (didDCLoaded) { + return false; + } + + didDCLoaded = true; + + // assign top-level soundManager properties eg. soundManager.url + setProperties(); + + initDebug(); + + if (!hasFlash && sm2.hasHTML5) { + + sm2._wD('SoundManager 2: No Flash detected' + (!sm2.useHTML5Audio ? ', enabling HTML5.' : '. Trying HTML5-only mode.'), 1); + + sm2.setup({ + 'useHTML5Audio': true, + // make sure we aren't preferring flash, either + // TODO: preferFlash should not matter if flash is not installed. Currently, stuff breaks without the below tweak. + 'preferFlash': false + }); + + } + + testHTML5(); + + if (!hasFlash && needsFlash) { + + messages.push(strings.needFlash); + + // TODO: Fatal here vs. timeout approach, etc. + // hack: fail sooner. + sm2.setup({ + 'flashLoadTimeout': 1 + }); + + } + + if (doc.removeEventListener) { + doc.removeEventListener('DOMContentLoaded', domContentLoaded, false); + } + + initMovie(); + + return true; + + }; + + domContentLoadedIE = function() { + + if (doc.readyState === 'complete') { + domContentLoaded(); + doc.detachEvent('onreadystatechange', domContentLoadedIE); + } + + return true; + + }; + + winOnLoad = function() { + + // catch edge case of initComplete() firing after window.load() + windowLoaded = true; + + // catch case where DOMContentLoaded has been sent, but we're still in doc.readyState = 'interactive' + domContentLoaded(); + + event.remove(window, 'load', winOnLoad); + + }; + + // sniff up-front + detectFlash(); + + // focus and window load, init (primarily flash-driven) + event.add(window, 'focus', handleFocus); + event.add(window, 'load', delayWaitForEI); + event.add(window, 'load', winOnLoad); + + if (doc.addEventListener) { + + doc.addEventListener('DOMContentLoaded', domContentLoaded, false); + + } else if (doc.attachEvent) { + + doc.attachEvent('onreadystatechange', domContentLoadedIE); + + } else { + + // no add/attachevent support - safe to assume no JS -> Flash either + debugTS('onload', false); + catchError({ + type: 'NO_DOM2_EVENTS', + fatal: true + }); + + } + +} // SoundManager() + +// SM2_DEFER details: http://www.schillmania.com/projects/soundmanager2/doc/getstarted/#lazy-loading + +if (window.SM2_DEFER === _undefined || !SM2_DEFER) { + soundManager = new SoundManager(); +} + +/** + * SoundManager public interfaces + * ------------------------------ + */ + +if (typeof module === 'object' && module && typeof module.exports === 'object') { + + /** + * commonJS module + */ + + module.exports.SoundManager = SoundManager; + module.exports.soundManager = soundManager; + +} else if (typeof define === 'function' && define.amd) { + + /** + * AMD - requireJS + * basic usage: + * require(["/path/to/soundmanager2.js"], function(SoundManager) { + * SoundManager.getInstance().setup({ + * url: '/swf/', + * onready: function() { ... } + * }) + * }); + * + * SM2_DEFER usage: + * window.SM2_DEFER = true; + * require(["/path/to/soundmanager2.js"], function(SoundManager) { + * SoundManager.getInstance(function() { + * var soundManager = new SoundManager.constructor(); + * soundManager.setup({ + * url: '/swf/', + * ... + * }); + * ... + * soundManager.beginDelayedInit(); + * return soundManager; + * }) + * }); + */ + + define(function() { + /** + * Retrieve the global instance of SoundManager. + * If a global instance does not exist it can be created using a callback. + * + * @param {Function} smBuilder Optional: Callback used to create a new SoundManager instance + * @return {SoundManager} The global SoundManager instance + */ + function getInstance(smBuilder) { + if (!window.soundManager && smBuilder instanceof Function) { + var instance = smBuilder(SoundManager); + if (instance instanceof SoundManager) { + window.soundManager = instance; + } + } + return window.soundManager; + } + return { + constructor: SoundManager, + getInstance: getInstance + } + }); + +} + +// standard browser case + +// constructor +window.SoundManager = SoundManager; + +/** + * note: SM2 requires a window global due to Flash, which makes calls to window.soundManager. + * Flash may not always be needed, but this is not known until async init and SM2 may even "reboot" into Flash mode. + */ + +// public API, flash callbacks etc. +window.soundManager = soundManager; + +}(window)); diff --git a/media/soundmanager/swf/soundmanager2.swf b/media/soundmanager/swf/soundmanager2.swf new file mode 100644 index 00000000..0403e0ef Binary files /dev/null and b/media/soundmanager/swf/soundmanager2.swf differ diff --git a/media/soundmanager/swf/soundmanager2_debug.swf b/media/soundmanager/swf/soundmanager2_debug.swf new file mode 100644 index 00000000..9dbc7fe9 Binary files /dev/null and b/media/soundmanager/swf/soundmanager2_debug.swf differ diff --git a/media/soundmanager/swf/soundmanager2_flash9.swf b/media/soundmanager/swf/soundmanager2_flash9.swf new file mode 100644 index 00000000..f401b2ff Binary files /dev/null and b/media/soundmanager/swf/soundmanager2_flash9.swf differ diff --git a/media/soundmanager/swf/soundmanager2_flash9_debug.swf b/media/soundmanager/swf/soundmanager2_flash9_debug.swf new file mode 100644 index 00000000..cbc44425 Binary files /dev/null and b/media/soundmanager/swf/soundmanager2_flash9_debug.swf differ diff --git a/media/soundmanager/swf/soundmanager2_flash_xdomain.zip b/media/soundmanager/swf/soundmanager2_flash_xdomain.zip new file mode 100644 index 00000000..7ebcecc2 Binary files /dev/null and b/media/soundmanager/swf/soundmanager2_flash_xdomain.zip differ diff --git a/media/uikit/css/components/accordion.almost-flat.css b/media/uikit/css/components/accordion.almost-flat.css new file mode 100644 index 00000000..f8edc0dd --- /dev/null +++ b/media/uikit/css/components/accordion.almost-flat.css @@ -0,0 +1,39 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Accordion + ========================================================================== */ +/* Sub-object: `uk-accordion-title` + ========================================================================== */ +.uk-accordion-title { + margin-top: 0; + margin-bottom: 15px; + padding: 5px 15px; + background: #f5f5f5; + font-size: 18px; + line-height: 24px; + cursor: pointer; + border: 1px solid #dddddd; + border-radius: 4px; +} +/* Sub-object: `uk-accordion-content` + ========================================================================== */ +.uk-accordion-content { + padding: 0 15px 15px 15px; +} +/* + * Micro clearfix to make panels more robust + */ +.uk-accordion-content:before, +.uk-accordion-content:after { + content: ""; + display: table; +} +.uk-accordion-content:after { + clear: both; +} +/* + * Remove margin from the last-child + */ +.uk-accordion-content > :last-child { + margin-bottom: 0; +} diff --git a/media/uikit/css/components/accordion.almost-flat.min.css b/media/uikit/css/components/accordion.almost-flat.min.css new file mode 100644 index 00000000..1f1f9413 --- /dev/null +++ b/media/uikit/css/components/accordion.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-accordion-title{margin-top:0;margin-bottom:15px;padding:5px 15px;background:#f5f5f5;font-size:18px;line-height:24px;cursor:pointer;border:1px solid #ddd;border-radius:4px}.uk-accordion-content{padding:0 15px 15px 15px}.uk-accordion-content:after,.uk-accordion-content:before{content:"";display:table}.uk-accordion-content:after{clear:both}.uk-accordion-content>:last-child{margin-bottom:0} \ No newline at end of file diff --git a/media/uikit/css/components/accordion.css b/media/uikit/css/components/accordion.css new file mode 100644 index 00000000..fe84c73f --- /dev/null +++ b/media/uikit/css/components/accordion.css @@ -0,0 +1,37 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Accordion + ========================================================================== */ +/* Sub-object: `uk-accordion-title` + ========================================================================== */ +.uk-accordion-title { + margin-top: 0; + margin-bottom: 15px; + padding: 5px 15px; + background: #eeeeee; + font-size: 18px; + line-height: 24px; + cursor: pointer; +} +/* Sub-object: `uk-accordion-content` + ========================================================================== */ +.uk-accordion-content { + padding: 0 15px 15px 15px; +} +/* + * Micro clearfix to make panels more robust + */ +.uk-accordion-content:before, +.uk-accordion-content:after { + content: ""; + display: table; +} +.uk-accordion-content:after { + clear: both; +} +/* + * Remove margin from the last-child + */ +.uk-accordion-content > :last-child { + margin-bottom: 0; +} diff --git a/media/uikit/css/components/accordion.gradient.css b/media/uikit/css/components/accordion.gradient.css new file mode 100644 index 00000000..afc5c473 --- /dev/null +++ b/media/uikit/css/components/accordion.gradient.css @@ -0,0 +1,39 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Accordion + ========================================================================== */ +/* Sub-object: `uk-accordion-title` + ========================================================================== */ +.uk-accordion-title { + margin-top: 0; + margin-bottom: 15px; + padding: 5px 15px; + background: #f7f7f7; + font-size: 18px; + line-height: 24px; + cursor: pointer; + border: 1px solid #dddddd; + border-radius: 4px; +} +/* Sub-object: `uk-accordion-content` + ========================================================================== */ +.uk-accordion-content { + padding: 0 15px 15px 15px; +} +/* + * Micro clearfix to make panels more robust + */ +.uk-accordion-content:before, +.uk-accordion-content:after { + content: ""; + display: table; +} +.uk-accordion-content:after { + clear: both; +} +/* + * Remove margin from the last-child + */ +.uk-accordion-content > :last-child { + margin-bottom: 0; +} diff --git a/media/uikit/css/components/accordion.gradient.min.css b/media/uikit/css/components/accordion.gradient.min.css new file mode 100644 index 00000000..27b3e73c --- /dev/null +++ b/media/uikit/css/components/accordion.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-accordion-title{margin-top:0;margin-bottom:15px;padding:5px 15px;background:#f7f7f7;font-size:18px;line-height:24px;cursor:pointer;border:1px solid #ddd;border-radius:4px}.uk-accordion-content{padding:0 15px 15px 15px}.uk-accordion-content:after,.uk-accordion-content:before{content:"";display:table}.uk-accordion-content:after{clear:both}.uk-accordion-content>:last-child{margin-bottom:0} \ No newline at end of file diff --git a/media/uikit/css/components/accordion.min.css b/media/uikit/css/components/accordion.min.css new file mode 100644 index 00000000..a1b3a904 --- /dev/null +++ b/media/uikit/css/components/accordion.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-accordion-title{margin-top:0;margin-bottom:15px;padding:5px 15px;background:#eee;font-size:18px;line-height:24px;cursor:pointer}.uk-accordion-content{padding:0 15px 15px 15px}.uk-accordion-content:after,.uk-accordion-content:before{content:"";display:table}.uk-accordion-content:after{clear:both}.uk-accordion-content>:last-child{margin-bottom:0} \ No newline at end of file diff --git a/media/uikit/css/components/autocomplete.almost-flat.css b/media/uikit/css/components/autocomplete.almost-flat.css new file mode 100644 index 00000000..8f5176b5 --- /dev/null +++ b/media/uikit/css/components/autocomplete.almost-flat.css @@ -0,0 +1,52 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Autocomplete + ========================================================================== */ +/* + * 1. Container width fits its content + * 2. Create position context + * 3. Prevent `inline-block` consequences + * 4. Remove the gap between the container and its child element + */ +.uk-autocomplete { + /* 1 */ + display: inline-block; + /* 2 */ + position: relative; + /* 3 */ + max-width: 100%; + /* 4 */ + vertical-align: middle; +} +/* Nav modifier `uk-nav-autocomplete` + ========================================================================== */ +/* + * Items + */ +.uk-nav-autocomplete > li > a { + color: #444444; +} +/* + * Active + * 1. Remove default focus style + */ +.uk-nav-autocomplete > li.uk-active > a { + background: #00a8e6; + color: #ffffff; + /* 1 */ + outline: none; + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1); +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-autocomplete .uk-nav-header { + color: #999999; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-autocomplete .uk-nav-divider { + border-top: 1px solid #dddddd; +} diff --git a/media/uikit/css/components/autocomplete.almost-flat.min.css b/media/uikit/css/components/autocomplete.almost-flat.min.css new file mode 100644 index 00000000..ee6875b2 --- /dev/null +++ b/media/uikit/css/components/autocomplete.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-autocomplete{display:inline-block;position:relative;max-width:100%;vertical-align:middle}.uk-nav-autocomplete>li>a{color:#444}.uk-nav-autocomplete>li.uk-active>a{background:#00a8e6;color:#fff;outline:0;box-shadow:inset 0 0 5px rgba(0,0,0,.05);text-shadow:0 -1px 0 rgba(0,0,0,.1)}.uk-nav-autocomplete .uk-nav-header{color:#999}.uk-nav-autocomplete .uk-nav-divider{border-top:1px solid #ddd} \ No newline at end of file diff --git a/media/uikit/css/components/autocomplete.css b/media/uikit/css/components/autocomplete.css new file mode 100644 index 00000000..bb71335f --- /dev/null +++ b/media/uikit/css/components/autocomplete.css @@ -0,0 +1,50 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Autocomplete + ========================================================================== */ +/* + * 1. Container width fits its content + * 2. Create position context + * 3. Prevent `inline-block` consequences + * 4. Remove the gap between the container and its child element + */ +.uk-autocomplete { + /* 1 */ + display: inline-block; + /* 2 */ + position: relative; + /* 3 */ + max-width: 100%; + /* 4 */ + vertical-align: middle; +} +/* Nav modifier `uk-nav-autocomplete` + ========================================================================== */ +/* + * Items + */ +.uk-nav-autocomplete > li > a { + color: #444444; +} +/* + * Active + * 1. Remove default focus style + */ +.uk-nav-autocomplete > li.uk-active > a { + background: #00a8e6; + color: #ffffff; + /* 1 */ + outline: none; +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-autocomplete .uk-nav-header { + color: #999999; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-autocomplete .uk-nav-divider { + border-top: 1px solid #dddddd; +} diff --git a/media/uikit/css/components/autocomplete.gradient.css b/media/uikit/css/components/autocomplete.gradient.css new file mode 100644 index 00000000..06e2c523 --- /dev/null +++ b/media/uikit/css/components/autocomplete.gradient.css @@ -0,0 +1,52 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Autocomplete + ========================================================================== */ +/* + * 1. Container width fits its content + * 2. Create position context + * 3. Prevent `inline-block` consequences + * 4. Remove the gap between the container and its child element + */ +.uk-autocomplete { + /* 1 */ + display: inline-block; + /* 2 */ + position: relative; + /* 3 */ + max-width: 100%; + /* 4 */ + vertical-align: middle; +} +/* Nav modifier `uk-nav-autocomplete` + ========================================================================== */ +/* + * Items + */ +.uk-nav-autocomplete > li > a { + color: #444444; +} +/* + * Active + * 1. Remove default focus style + */ +.uk-nav-autocomplete > li.uk-active > a { + background: #009dd8; + color: #ffffff; + /* 1 */ + outline: none; + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-autocomplete .uk-nav-header { + color: #999999; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-autocomplete .uk-nav-divider { + border-top: 1px solid #dddddd; +} diff --git a/media/uikit/css/components/autocomplete.gradient.min.css b/media/uikit/css/components/autocomplete.gradient.min.css new file mode 100644 index 00000000..83041378 --- /dev/null +++ b/media/uikit/css/components/autocomplete.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-autocomplete{display:inline-block;position:relative;max-width:100%;vertical-align:middle}.uk-nav-autocomplete>li>a{color:#444}.uk-nav-autocomplete>li.uk-active>a{background:#009dd8;color:#fff;outline:0;box-shadow:inset 0 2px 4px rgba(0,0,0,.2);text-shadow:0 -1px 0 rgba(0,0,0,.2)}.uk-nav-autocomplete .uk-nav-header{color:#999}.uk-nav-autocomplete .uk-nav-divider{border-top:1px solid #ddd} \ No newline at end of file diff --git a/media/uikit/css/components/autocomplete.min.css b/media/uikit/css/components/autocomplete.min.css new file mode 100644 index 00000000..03b1be2f --- /dev/null +++ b/media/uikit/css/components/autocomplete.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-autocomplete{display:inline-block;position:relative;max-width:100%;vertical-align:middle}.uk-nav-autocomplete>li>a{color:#444}.uk-nav-autocomplete>li.uk-active>a{background:#00a8e6;color:#fff;outline:0}.uk-nav-autocomplete .uk-nav-header{color:#999}.uk-nav-autocomplete .uk-nav-divider{border-top:1px solid #ddd} \ No newline at end of file diff --git a/media/uikit/css/components/datepicker.almost-flat.css b/media/uikit/css/components/datepicker.almost-flat.css new file mode 100644 index 00000000..ecc80801 --- /dev/null +++ b/media/uikit/css/components/datepicker.almost-flat.css @@ -0,0 +1,129 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Datepicker + ========================================================================== */ +/* + * 1. Highest z-index + * 2. Reset dropdown width + * 3. Set animation + * 4. Needed for scale animation + */ +.uk-datepicker { + /* 1 */ + z-index: 1050; + /* 2 */ + width: auto; + /* 3 */ + -webkit-animation: uk-fade 0.2s ease-in-out; + animation: uk-fade 0.2s ease-in-out; + /* 4 */ + -webkit-transform-origin: 0 0; + transform-origin: 0 0; +} +/* Sub-object: `uk-datepicker-nav` +========================================================================== */ +.uk-datepicker-nav { + margin-bottom: 15px; + text-align: center; + line-height: 20px; +} +/* + * Micro clearfix + */ +.uk-datepicker-nav:before, +.uk-datepicker-nav:after { + content: ""; + display: table; +} +.uk-datepicker-nav:after { + clear: both; +} +/* + * Previous and next navigation + */ +.uk-datepicker-nav a { + color: #444444; + text-decoration: none; +} +.uk-datepicker-nav a:hover { + color: #444444; +} +.uk-datepicker-previous { + float: left; +} +.uk-datepicker-next { + float: right; +} +.uk-datepicker-previous:after, +.uk-datepicker-next:after { + width: 20px; + font-family: FontAwesome; +} +.uk-datepicker-previous:after { + content: "\f053"; +} +.uk-datepicker-next:after { + content: "\f054"; +} +/* Sub-object: `uk-datepicker-heading` +========================================================================== */ +/* Sub-object: `uk-datepicker-table` +========================================================================== */ +/* Block element behavior */ +.uk-datepicker-table { + width: 100%; +} +.uk-datepicker-table th, +.uk-datepicker-table td { + padding: 2px; +} +.uk-datepicker-table th { + font-size: 12px; +} +/* + * Item + */ +.uk-datepicker-table a { + display: block; + width: 26px; + line-height: 24px; + text-align: center; + color: #444444; + text-decoration: none; + border: 1px solid transparent; + border-radius: 4px; +} +/* + * Sub-object: `uk-datepicker-table-muted` + */ +a.uk-datepicker-table-muted { + color: #999999; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-datepicker-table a:hover, +.uk-datepicker-table a:focus { + background-color: #fafafa; + color: #444444; + /* 2 */ + outline: none; + border-color: rgba(0, 0, 0, 0.16); + text-shadow: 0 1px 0 #ffffff; +} +/* OnClick */ +.uk-datepicker-table a:active { + background-color: #eeeeee; + color: #444444; +} +/* + * Active + */ +.uk-datepicker-table a.uk-active { + background: #00a8e6; + color: #ffffff; + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1); +} diff --git a/media/uikit/css/components/datepicker.almost-flat.min.css b/media/uikit/css/components/datepicker.almost-flat.min.css new file mode 100644 index 00000000..5f9ab45e --- /dev/null +++ b/media/uikit/css/components/datepicker.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-datepicker{z-index:1050;width:auto;-webkit-animation:uk-fade .2s ease-in-out;animation:uk-fade .2s ease-in-out;-webkit-transform-origin:0 0;transform-origin:0 0}.uk-datepicker-nav{margin-bottom:15px;text-align:center;line-height:20px}.uk-datepicker-nav:after,.uk-datepicker-nav:before{content:"";display:table}.uk-datepicker-nav:after{clear:both}.uk-datepicker-nav a{color:#444;text-decoration:none}.uk-datepicker-nav a:hover{color:#444}.uk-datepicker-previous{float:left}.uk-datepicker-next{float:right}.uk-datepicker-next:after,.uk-datepicker-previous:after{width:20px;font-family:FontAwesome}.uk-datepicker-previous:after{content:"\f053"}.uk-datepicker-next:after{content:"\f054"}.uk-datepicker-table{width:100%}.uk-datepicker-table td,.uk-datepicker-table th{padding:2px}.uk-datepicker-table th{font-size:12px}.uk-datepicker-table a{display:block;width:26px;line-height:24px;text-align:center;color:#444;text-decoration:none;border:1px solid transparent;border-radius:4px}a.uk-datepicker-table-muted{color:#999}.uk-datepicker-table a:focus,.uk-datepicker-table a:hover{background-color:#fafafa;color:#444;outline:0;border-color:rgba(0,0,0,.16);text-shadow:0 1px 0 #fff}.uk-datepicker-table a:active{background-color:#eee;color:#444}.uk-datepicker-table a.uk-active{background:#00a8e6;color:#fff;box-shadow:inset 0 0 5px rgba(0,0,0,.05);text-shadow:0 -1px 0 rgba(0,0,0,.1)} \ No newline at end of file diff --git a/media/uikit/css/components/datepicker.css b/media/uikit/css/components/datepicker.css new file mode 100644 index 00000000..5414e4f4 --- /dev/null +++ b/media/uikit/css/components/datepicker.css @@ -0,0 +1,123 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Datepicker + ========================================================================== */ +/* + * 1. Highest z-index + * 2. Reset dropdown width + * 3. Set animation + * 4. Needed for scale animation + */ +.uk-datepicker { + /* 1 */ + z-index: 1050; + /* 2 */ + width: auto; + /* 3 */ + -webkit-animation: uk-fade 0.2s ease-in-out; + animation: uk-fade 0.2s ease-in-out; + /* 4 */ + -webkit-transform-origin: 0 0; + transform-origin: 0 0; +} +/* Sub-object: `uk-datepicker-nav` +========================================================================== */ +.uk-datepicker-nav { + margin-bottom: 15px; + text-align: center; + line-height: 20px; +} +/* + * Micro clearfix + */ +.uk-datepicker-nav:before, +.uk-datepicker-nav:after { + content: ""; + display: table; +} +.uk-datepicker-nav:after { + clear: both; +} +/* + * Previous and next navigation + */ +.uk-datepicker-nav a { + color: #444444; + text-decoration: none; +} +.uk-datepicker-nav a:hover { + color: #444444; +} +.uk-datepicker-previous { + float: left; +} +.uk-datepicker-next { + float: right; +} +.uk-datepicker-previous:after, +.uk-datepicker-next:after { + width: 20px; + font-family: FontAwesome; +} +.uk-datepicker-previous:after { + content: "\f053"; +} +.uk-datepicker-next:after { + content: "\f054"; +} +/* Sub-object: `uk-datepicker-heading` +========================================================================== */ +/* Sub-object: `uk-datepicker-table` +========================================================================== */ +/* Block element behavior */ +.uk-datepicker-table { + width: 100%; +} +.uk-datepicker-table th, +.uk-datepicker-table td { + padding: 2px; +} +.uk-datepicker-table th { + font-size: 12px; +} +/* + * Item + */ +.uk-datepicker-table a { + display: block; + width: 26px; + line-height: 24px; + text-align: center; + color: #444444; + text-decoration: none; +} +/* + * Sub-object: `uk-datepicker-table-muted` + */ +a.uk-datepicker-table-muted { + color: #999999; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-datepicker-table a:hover, +.uk-datepicker-table a:focus { + background-color: #dddddd; + color: #444444; + /* 2 */ + outline: none; +} +/* OnClick */ +.uk-datepicker-table a:active { + background-color: #cccccc; + color: #444444; +} +/* + * Active + */ +.uk-datepicker-table a.uk-active { + background: #00a8e6; + color: #ffffff; +} diff --git a/media/uikit/css/components/datepicker.gradient.css b/media/uikit/css/components/datepicker.gradient.css new file mode 100644 index 00000000..94366b61 --- /dev/null +++ b/media/uikit/css/components/datepicker.gradient.css @@ -0,0 +1,139 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Datepicker + ========================================================================== */ +/* + * 1. Highest z-index + * 2. Reset dropdown width + * 3. Set animation + * 4. Needed for scale animation + */ +.uk-datepicker { + /* 1 */ + z-index: 1050; + /* 2 */ + width: auto; + /* 3 */ + -webkit-animation: uk-fade 0.2s ease-in-out; + animation: uk-fade 0.2s ease-in-out; + /* 4 */ + -webkit-transform-origin: 0 0; + transform-origin: 0 0; +} +/* Sub-object: `uk-datepicker-nav` +========================================================================== */ +.uk-datepicker-nav { + margin-bottom: 15px; + text-align: center; + line-height: 20px; +} +/* + * Micro clearfix + */ +.uk-datepicker-nav:before, +.uk-datepicker-nav:after { + content: ""; + display: table; +} +.uk-datepicker-nav:after { + clear: both; +} +/* + * Previous and next navigation + */ +.uk-datepicker-nav a { + color: #444444; + text-decoration: none; +} +.uk-datepicker-nav a:hover { + color: #444444; +} +.uk-datepicker-previous { + float: left; +} +.uk-datepicker-next { + float: right; +} +.uk-datepicker-previous:after, +.uk-datepicker-next:after { + width: 20px; + font-family: FontAwesome; +} +.uk-datepicker-previous:after { + content: "\f053"; +} +.uk-datepicker-next:after { + content: "\f054"; +} +/* Sub-object: `uk-datepicker-heading` +========================================================================== */ +/* Sub-object: `uk-datepicker-table` +========================================================================== */ +/* Block element behavior */ +.uk-datepicker-table { + width: 100%; +} +.uk-datepicker-table th, +.uk-datepicker-table td { + padding: 2px; +} +.uk-datepicker-table th { + font-size: 12px; +} +/* + * Item + */ +.uk-datepicker-table a { + display: block; + width: 26px; + line-height: 24px; + text-align: center; + color: #444444; + text-decoration: none; + border: 1px solid transparent; + border-radius: 4px; + background-origin: border-box; +} +/* + * Sub-object: `uk-datepicker-table-muted` + */ +a.uk-datepicker-table-muted { + color: #999999; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-datepicker-table a:hover, +.uk-datepicker-table a:focus { + background-color: #fafafa; + color: #444444; + /* 2 */ + outline: none; + border-color: rgba(0, 0, 0, 0.2); + border-bottom-color: rgba(0, 0, 0, 0.3); + text-shadow: 0 1px 0 #ffffff; +} +/* OnClick */ +.uk-datepicker-table a:active { + background-color: #f5f5f5; + color: #444444; + border-color: rgba(0, 0, 0, 0.2); + border-top-color: rgba(0, 0, 0, 0.3); + background-image: none; + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); +} +/* + * Active + */ +.uk-datepicker-table a.uk-active { + background: #009dd8; + color: #ffffff; + border: 1px solid rgba(0, 0, 0, 0.2); + border-bottom-color: rgba(0, 0, 0, 0.4); + background-origin: border-box; + background-image: -webkit-linear-gradient(top, #00b4f5, #008dc5); + background-image: linear-gradient(to bottom, #00b4f5, #008dc5); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); +} diff --git a/media/uikit/css/components/datepicker.gradient.min.css b/media/uikit/css/components/datepicker.gradient.min.css new file mode 100644 index 00000000..102458b0 --- /dev/null +++ b/media/uikit/css/components/datepicker.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-datepicker{z-index:1050;width:auto;-webkit-animation:uk-fade .2s ease-in-out;animation:uk-fade .2s ease-in-out;-webkit-transform-origin:0 0;transform-origin:0 0}.uk-datepicker-nav{margin-bottom:15px;text-align:center;line-height:20px}.uk-datepicker-nav:after,.uk-datepicker-nav:before{content:"";display:table}.uk-datepicker-nav:after{clear:both}.uk-datepicker-nav a{color:#444;text-decoration:none}.uk-datepicker-nav a:hover{color:#444}.uk-datepicker-previous{float:left}.uk-datepicker-next{float:right}.uk-datepicker-next:after,.uk-datepicker-previous:after{width:20px;font-family:FontAwesome}.uk-datepicker-previous:after{content:"\f053"}.uk-datepicker-next:after{content:"\f054"}.uk-datepicker-table{width:100%}.uk-datepicker-table td,.uk-datepicker-table th{padding:2px}.uk-datepicker-table th{font-size:12px}.uk-datepicker-table a{display:block;width:26px;line-height:24px;text-align:center;color:#444;text-decoration:none;border:1px solid transparent;border-radius:4px;background-origin:border-box}a.uk-datepicker-table-muted{color:#999}.uk-datepicker-table a:focus,.uk-datepicker-table a:hover{background-color:#fafafa;color:#444;outline:0;border-color:rgba(0,0,0,.2);border-bottom-color:rgba(0,0,0,.3);text-shadow:0 1px 0 #fff}.uk-datepicker-table a:active{background-color:#f5f5f5;color:#444;border-color:rgba(0,0,0,.2);border-top-color:rgba(0,0,0,.3);background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.1)}.uk-datepicker-table a.uk-active{background:#009dd8;color:#fff;border:1px solid rgba(0,0,0,.2);border-bottom-color:rgba(0,0,0,.4);background-origin:border-box;background-image:-webkit-linear-gradient(top,#00b4f5,#008dc5);background-image:linear-gradient(to bottom,#00b4f5,#008dc5);text-shadow:0 -1px 0 rgba(0,0,0,.2)} \ No newline at end of file diff --git a/media/uikit/css/components/datepicker.min.css b/media/uikit/css/components/datepicker.min.css new file mode 100644 index 00000000..7738f987 --- /dev/null +++ b/media/uikit/css/components/datepicker.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-datepicker{z-index:1050;width:auto;-webkit-animation:uk-fade .2s ease-in-out;animation:uk-fade .2s ease-in-out;-webkit-transform-origin:0 0;transform-origin:0 0}.uk-datepicker-nav{margin-bottom:15px;text-align:center;line-height:20px}.uk-datepicker-nav:after,.uk-datepicker-nav:before{content:"";display:table}.uk-datepicker-nav:after{clear:both}.uk-datepicker-nav a{color:#444;text-decoration:none}.uk-datepicker-nav a:hover{color:#444}.uk-datepicker-previous{float:left}.uk-datepicker-next{float:right}.uk-datepicker-next:after,.uk-datepicker-previous:after{width:20px;font-family:FontAwesome}.uk-datepicker-previous:after{content:"\f053"}.uk-datepicker-next:after{content:"\f054"}.uk-datepicker-table{width:100%}.uk-datepicker-table td,.uk-datepicker-table th{padding:2px}.uk-datepicker-table th{font-size:12px}.uk-datepicker-table a{display:block;width:26px;line-height:24px;text-align:center;color:#444;text-decoration:none}a.uk-datepicker-table-muted{color:#999}.uk-datepicker-table a:focus,.uk-datepicker-table a:hover{background-color:#ddd;color:#444;outline:0}.uk-datepicker-table a:active{background-color:#ccc;color:#444}.uk-datepicker-table a.uk-active{background:#00a8e6;color:#fff} \ No newline at end of file diff --git a/media/uikit/css/components/dotnav.almost-flat.css b/media/uikit/css/components/dotnav.almost-flat.css new file mode 100644 index 00000000..78bf0490 --- /dev/null +++ b/media/uikit/css/components/dotnav.almost-flat.css @@ -0,0 +1,129 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Dotnav + ========================================================================== */ +/* + * 1. Gutter + * 2. Remove default list style + */ +.uk-dotnav { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + /* 1 */ + margin-left: -15px; + margin-top: -15px; + /* 2 */ + padding: 0; + list-style: none; +} +/* + * 1. Space is allocated solely based on content dimensions + * 2. Horizontal gutter is using `padding` so `uk-width-*` classes can be applied + */ +.uk-dotnav > * { + /* 1 */ + -ms-flex: none; + -webkit-flex: none; + flex: none; + /* 2 */ + padding-left: 15px; + margin-top: 15px; +} +/* + * DEPRECATED IE9 Support + */ +.uk-dotnav:before, +.uk-dotnav:after { + content: ""; + display: block; + overflow: hidden; +} +.uk-dotnav:after { + clear: both; +} +.uk-dotnav > * { + float: left; +} +/* Items + ========================================================================== */ +/* + * Items + * 1. Hide text if present + */ +.uk-dotnav > * > * { + display: block; + -moz-box-sizing: content-box; + box-sizing: content-box; + width: 20px; + height: 20px; + border-radius: 50%; + background: rgba(50, 50, 50, 0.1); + /* 1 */ + text-indent: 100%; + overflow: hidden; + white-space: nowrap; + -webkit-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-dotnav > * > :hover, +.uk-dotnav > * > :focus { + background: rgba(50, 50, 50, 0.4); + /* 2 */ + outline: none; +} +/* OnClick */ +.uk-dotnav > * > :active { + background: rgba(50, 50, 50, 0.6); +} +/* Active */ +.uk-dotnav > .uk-active > * { + background: rgba(50, 50, 50, 0.4); + -webkit-transform: scale(1.3); + transform: scale(1.3); +} +/* Modifier: `uk-dotnav-contrast` + ========================================================================== */ +.uk-dotnav-contrast > * > * { + background: rgba(255, 255, 255, 0.4); +} +/* + * Hover + * 1. Apply hover style also to focus state + */ +.uk-dotnav-contrast > * > :hover, +.uk-dotnav-contrast > * > :focus { + background: rgba(255, 255, 255, 0.7); +} +/* OnClick */ +.uk-dotnav-contrast > * > :active { + background: rgba(255, 255, 255, 0.9); +} +/* Active */ +.uk-dotnav-contrast > .uk-active > * { + background: rgba(255, 255, 255, 0.9); +} +/* Modifier: 'uk-dotnav-vertical' + ========================================================================== */ +/* + * DEPRECATED + */ +.uk-dotnav-vertical { + -ms-flex-direction: column; + -webkit-flex-direction: column; + flex-direction: column; +} +/* + * DEPRECATED IE9 Support + */ +.uk-dotnav-vertical > * { + float: none; +} diff --git a/media/uikit/css/components/dotnav.almost-flat.min.css b/media/uikit/css/components/dotnav.almost-flat.min.css new file mode 100644 index 00000000..f1410c48 --- /dev/null +++ b/media/uikit/css/components/dotnav.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-dotnav{display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-left:-15px;margin-top:-15px;padding:0;list-style:none}.uk-dotnav>*{-ms-flex:none;-webkit-flex:none;flex:none;padding-left:15px;margin-top:15px}.uk-dotnav:after,.uk-dotnav:before{content:"";display:block;overflow:hidden}.uk-dotnav:after{clear:both}.uk-dotnav>*{float:left}.uk-dotnav>*>*{display:block;-moz-box-sizing:content-box;box-sizing:content-box;width:20px;height:20px;border-radius:50%;background:rgba(50,50,50,.1);text-indent:100%;overflow:hidden;white-space:nowrap;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.uk-dotnav>*>:focus,.uk-dotnav>*>:hover{background:rgba(50,50,50,.4);outline:0}.uk-dotnav>*>:active{background:rgba(50,50,50,.6)}.uk-dotnav>.uk-active>*{background:rgba(50,50,50,.4);-webkit-transform:scale(1.3);transform:scale(1.3)}.uk-dotnav-contrast>*>*{background:rgba(255,255,255,.4)}.uk-dotnav-contrast>*>:focus,.uk-dotnav-contrast>*>:hover{background:rgba(255,255,255,.7)}.uk-dotnav-contrast>*>:active{background:rgba(255,255,255,.9)}.uk-dotnav-contrast>.uk-active>*{background:rgba(255,255,255,.9)}.uk-dotnav-vertical{-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.uk-dotnav-vertical>*{float:none} \ No newline at end of file diff --git a/media/uikit/css/components/dotnav.css b/media/uikit/css/components/dotnav.css new file mode 100644 index 00000000..57a1771b --- /dev/null +++ b/media/uikit/css/components/dotnav.css @@ -0,0 +1,125 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Dotnav + ========================================================================== */ +/* + * 1. Gutter + * 2. Remove default list style + */ +.uk-dotnav { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + /* 1 */ + margin-left: -15px; + margin-top: -15px; + /* 2 */ + padding: 0; + list-style: none; +} +/* + * 1. Space is allocated solely based on content dimensions + * 2. Horizontal gutter is using `padding` so `uk-width-*` classes can be applied + */ +.uk-dotnav > * { + /* 1 */ + -ms-flex: none; + -webkit-flex: none; + flex: none; + /* 2 */ + padding-left: 15px; + margin-top: 15px; +} +/* + * DEPRECATED IE9 Support + */ +.uk-dotnav:before, +.uk-dotnav:after { + content: ""; + display: block; + overflow: hidden; +} +.uk-dotnav:after { + clear: both; +} +.uk-dotnav > * { + float: left; +} +/* Items + ========================================================================== */ +/* + * Items + * 1. Hide text if present + */ +.uk-dotnav > * > * { + display: block; + -moz-box-sizing: content-box; + box-sizing: content-box; + width: 20px; + height: 20px; + border-radius: 50%; + background: rgba(50, 50, 50, 0.1); + /* 1 */ + text-indent: 100%; + overflow: hidden; + white-space: nowrap; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-dotnav > * > :hover, +.uk-dotnav > * > :focus { + background: rgba(50, 50, 50, 0.4); + /* 2 */ + outline: none; +} +/* OnClick */ +.uk-dotnav > * > :active { + background: rgba(50, 50, 50, 0.6); +} +/* Active */ +.uk-dotnav > .uk-active > * { + background: rgba(50, 50, 50, 0.4); +} +/* Modifier: `uk-dotnav-contrast` + ========================================================================== */ +.uk-dotnav-contrast > * > * { + background: rgba(255, 255, 255, 0.4); +} +/* + * Hover + * 1. Apply hover style also to focus state + */ +.uk-dotnav-contrast > * > :hover, +.uk-dotnav-contrast > * > :focus { + background: rgba(255, 255, 255, 0.7); +} +/* OnClick */ +.uk-dotnav-contrast > * > :active { + background: rgba(255, 255, 255, 0.9); +} +/* Active */ +.uk-dotnav-contrast > .uk-active > * { + background: rgba(255, 255, 255, 0.9); +} +/* Modifier: 'uk-dotnav-vertical' + ========================================================================== */ +/* + * DEPRECATED + */ +.uk-dotnav-vertical { + -ms-flex-direction: column; + -webkit-flex-direction: column; + flex-direction: column; +} +/* + * DEPRECATED IE9 Support + */ +.uk-dotnav-vertical > * { + float: none; +} diff --git a/media/uikit/css/components/dotnav.gradient.css b/media/uikit/css/components/dotnav.gradient.css new file mode 100644 index 00000000..78bf0490 --- /dev/null +++ b/media/uikit/css/components/dotnav.gradient.css @@ -0,0 +1,129 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Dotnav + ========================================================================== */ +/* + * 1. Gutter + * 2. Remove default list style + */ +.uk-dotnav { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + /* 1 */ + margin-left: -15px; + margin-top: -15px; + /* 2 */ + padding: 0; + list-style: none; +} +/* + * 1. Space is allocated solely based on content dimensions + * 2. Horizontal gutter is using `padding` so `uk-width-*` classes can be applied + */ +.uk-dotnav > * { + /* 1 */ + -ms-flex: none; + -webkit-flex: none; + flex: none; + /* 2 */ + padding-left: 15px; + margin-top: 15px; +} +/* + * DEPRECATED IE9 Support + */ +.uk-dotnav:before, +.uk-dotnav:after { + content: ""; + display: block; + overflow: hidden; +} +.uk-dotnav:after { + clear: both; +} +.uk-dotnav > * { + float: left; +} +/* Items + ========================================================================== */ +/* + * Items + * 1. Hide text if present + */ +.uk-dotnav > * > * { + display: block; + -moz-box-sizing: content-box; + box-sizing: content-box; + width: 20px; + height: 20px; + border-radius: 50%; + background: rgba(50, 50, 50, 0.1); + /* 1 */ + text-indent: 100%; + overflow: hidden; + white-space: nowrap; + -webkit-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-dotnav > * > :hover, +.uk-dotnav > * > :focus { + background: rgba(50, 50, 50, 0.4); + /* 2 */ + outline: none; +} +/* OnClick */ +.uk-dotnav > * > :active { + background: rgba(50, 50, 50, 0.6); +} +/* Active */ +.uk-dotnav > .uk-active > * { + background: rgba(50, 50, 50, 0.4); + -webkit-transform: scale(1.3); + transform: scale(1.3); +} +/* Modifier: `uk-dotnav-contrast` + ========================================================================== */ +.uk-dotnav-contrast > * > * { + background: rgba(255, 255, 255, 0.4); +} +/* + * Hover + * 1. Apply hover style also to focus state + */ +.uk-dotnav-contrast > * > :hover, +.uk-dotnav-contrast > * > :focus { + background: rgba(255, 255, 255, 0.7); +} +/* OnClick */ +.uk-dotnav-contrast > * > :active { + background: rgba(255, 255, 255, 0.9); +} +/* Active */ +.uk-dotnav-contrast > .uk-active > * { + background: rgba(255, 255, 255, 0.9); +} +/* Modifier: 'uk-dotnav-vertical' + ========================================================================== */ +/* + * DEPRECATED + */ +.uk-dotnav-vertical { + -ms-flex-direction: column; + -webkit-flex-direction: column; + flex-direction: column; +} +/* + * DEPRECATED IE9 Support + */ +.uk-dotnav-vertical > * { + float: none; +} diff --git a/media/uikit/css/components/dotnav.gradient.min.css b/media/uikit/css/components/dotnav.gradient.min.css new file mode 100644 index 00000000..f1410c48 --- /dev/null +++ b/media/uikit/css/components/dotnav.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-dotnav{display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-left:-15px;margin-top:-15px;padding:0;list-style:none}.uk-dotnav>*{-ms-flex:none;-webkit-flex:none;flex:none;padding-left:15px;margin-top:15px}.uk-dotnav:after,.uk-dotnav:before{content:"";display:block;overflow:hidden}.uk-dotnav:after{clear:both}.uk-dotnav>*{float:left}.uk-dotnav>*>*{display:block;-moz-box-sizing:content-box;box-sizing:content-box;width:20px;height:20px;border-radius:50%;background:rgba(50,50,50,.1);text-indent:100%;overflow:hidden;white-space:nowrap;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.uk-dotnav>*>:focus,.uk-dotnav>*>:hover{background:rgba(50,50,50,.4);outline:0}.uk-dotnav>*>:active{background:rgba(50,50,50,.6)}.uk-dotnav>.uk-active>*{background:rgba(50,50,50,.4);-webkit-transform:scale(1.3);transform:scale(1.3)}.uk-dotnav-contrast>*>*{background:rgba(255,255,255,.4)}.uk-dotnav-contrast>*>:focus,.uk-dotnav-contrast>*>:hover{background:rgba(255,255,255,.7)}.uk-dotnav-contrast>*>:active{background:rgba(255,255,255,.9)}.uk-dotnav-contrast>.uk-active>*{background:rgba(255,255,255,.9)}.uk-dotnav-vertical{-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.uk-dotnav-vertical>*{float:none} \ No newline at end of file diff --git a/media/uikit/css/components/dotnav.min.css b/media/uikit/css/components/dotnav.min.css new file mode 100644 index 00000000..8db104ca --- /dev/null +++ b/media/uikit/css/components/dotnav.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-dotnav{display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-left:-15px;margin-top:-15px;padding:0;list-style:none}.uk-dotnav>*{-ms-flex:none;-webkit-flex:none;flex:none;padding-left:15px;margin-top:15px}.uk-dotnav:after,.uk-dotnav:before{content:"";display:block;overflow:hidden}.uk-dotnav:after{clear:both}.uk-dotnav>*{float:left}.uk-dotnav>*>*{display:block;-moz-box-sizing:content-box;box-sizing:content-box;width:20px;height:20px;border-radius:50%;background:rgba(50,50,50,.1);text-indent:100%;overflow:hidden;white-space:nowrap}.uk-dotnav>*>:focus,.uk-dotnav>*>:hover{background:rgba(50,50,50,.4);outline:0}.uk-dotnav>*>:active{background:rgba(50,50,50,.6)}.uk-dotnav>.uk-active>*{background:rgba(50,50,50,.4)}.uk-dotnav-contrast>*>*{background:rgba(255,255,255,.4)}.uk-dotnav-contrast>*>:focus,.uk-dotnav-contrast>*>:hover{background:rgba(255,255,255,.7)}.uk-dotnav-contrast>*>:active{background:rgba(255,255,255,.9)}.uk-dotnav-contrast>.uk-active>*{background:rgba(255,255,255,.9)}.uk-dotnav-vertical{-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.uk-dotnav-vertical>*{float:none} \ No newline at end of file diff --git a/media/uikit/css/components/form-advanced.almost-flat.css b/media/uikit/css/components/form-advanced.almost-flat.css new file mode 100644 index 00000000..4c807601 --- /dev/null +++ b/media/uikit/css/components/form-advanced.almost-flat.css @@ -0,0 +1,78 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Form advanced + Note: Only works in Webkit at the moment + ========================================================================== */ +/* + * 1. Style + * 2. Makes box more robust so it clips the child element + * 3. Vertical alignment + * 4. Remove default style + * 5. Fix black background on iOS + */ +.uk-form input[type="radio"], +.uk-form input[type="checkbox"] { + /* 1 */ + display: inline-block; + height: 14px; + width: 14px; + border: 1px solid #aaaaaa; + /* 2 */ + overflow: hidden; + /* 3 */ + margin-top: -4px; + vertical-align: middle; + /* 4 */ + -webkit-appearance: none; + outline: 0; + /* 5 */ + background: transparent; +} +/* Radio */ +.uk-form input[type="radio"] { + border-radius: 50%; +} +/* + * Checked + */ +.uk-form input[type=radio]:before, +.uk-form input[type=checkbox]:before { + display: block; +} +/* Radio */ +.uk-form input[type=radio]:checked:before { + content: ''; + width: 8px; + height: 8px; + margin: 2px auto 0; + border-radius: 50%; + background: #00a8e6; +} +/* Checkbox */ +.uk-form input[type=checkbox]:checked:before, +.uk-form input[type=checkbox]:indeterminate:before { + content: "\f00c"; + font-family: FontAwesome; + font-size: 12px; + -webkit-font-smoothing: antialiased; + text-align: center; + line-height: 12px; + color: #00a8e6; +} +.uk-form input[type=checkbox]:indeterminate:before { + content: "\f068"; +} +/* + * Disabled + */ +.uk-form input[type=radio]:disabled, +.uk-form input[type=checkbox]:disabled { + border-color: #dddddd; +} +.uk-form input[type=radio]:disabled:checked:before { + background-color: #aaaaaa; +} +.uk-form input[type=checkbox]:disabled:checked:before, +.uk-form input[type=checkbox]:disabled:indeterminate:before { + color: #aaaaaa; +} diff --git a/media/uikit/css/components/form-advanced.almost-flat.min.css b/media/uikit/css/components/form-advanced.almost-flat.min.css new file mode 100644 index 00000000..03d82f0e --- /dev/null +++ b/media/uikit/css/components/form-advanced.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-form input[type=radio],.uk-form input[type=checkbox]{display:inline-block;height:14px;width:14px;border:1px solid #aaa;overflow:hidden;margin-top:-4px;vertical-align:middle;-webkit-appearance:none;outline:0;background:0 0}.uk-form input[type=radio]{border-radius:50%}.uk-form input[type=checkbox]:before,.uk-form input[type=radio]:before{display:block}.uk-form input[type=radio]:checked:before{content:'';width:8px;height:8px;margin:2px auto 0;border-radius:50%;background:#00a8e6}.uk-form input[type=checkbox]:checked:before,.uk-form input[type=checkbox]:indeterminate:before{content:"\f00c";font-family:FontAwesome;font-size:12px;-webkit-font-smoothing:antialiased;text-align:center;line-height:12px;color:#00a8e6}.uk-form input[type=checkbox]:indeterminate:before{content:"\f068"}.uk-form input[type=checkbox]:disabled,.uk-form input[type=radio]:disabled{border-color:#ddd}.uk-form input[type=radio]:disabled:checked:before{background-color:#aaa}.uk-form input[type=checkbox]:disabled:checked:before,.uk-form input[type=checkbox]:disabled:indeterminate:before{color:#aaa} \ No newline at end of file diff --git a/media/uikit/css/components/form-advanced.css b/media/uikit/css/components/form-advanced.css new file mode 100644 index 00000000..4c807601 --- /dev/null +++ b/media/uikit/css/components/form-advanced.css @@ -0,0 +1,78 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Form advanced + Note: Only works in Webkit at the moment + ========================================================================== */ +/* + * 1. Style + * 2. Makes box more robust so it clips the child element + * 3. Vertical alignment + * 4. Remove default style + * 5. Fix black background on iOS + */ +.uk-form input[type="radio"], +.uk-form input[type="checkbox"] { + /* 1 */ + display: inline-block; + height: 14px; + width: 14px; + border: 1px solid #aaaaaa; + /* 2 */ + overflow: hidden; + /* 3 */ + margin-top: -4px; + vertical-align: middle; + /* 4 */ + -webkit-appearance: none; + outline: 0; + /* 5 */ + background: transparent; +} +/* Radio */ +.uk-form input[type="radio"] { + border-radius: 50%; +} +/* + * Checked + */ +.uk-form input[type=radio]:before, +.uk-form input[type=checkbox]:before { + display: block; +} +/* Radio */ +.uk-form input[type=radio]:checked:before { + content: ''; + width: 8px; + height: 8px; + margin: 2px auto 0; + border-radius: 50%; + background: #00a8e6; +} +/* Checkbox */ +.uk-form input[type=checkbox]:checked:before, +.uk-form input[type=checkbox]:indeterminate:before { + content: "\f00c"; + font-family: FontAwesome; + font-size: 12px; + -webkit-font-smoothing: antialiased; + text-align: center; + line-height: 12px; + color: #00a8e6; +} +.uk-form input[type=checkbox]:indeterminate:before { + content: "\f068"; +} +/* + * Disabled + */ +.uk-form input[type=radio]:disabled, +.uk-form input[type=checkbox]:disabled { + border-color: #dddddd; +} +.uk-form input[type=radio]:disabled:checked:before { + background-color: #aaaaaa; +} +.uk-form input[type=checkbox]:disabled:checked:before, +.uk-form input[type=checkbox]:disabled:indeterminate:before { + color: #aaaaaa; +} diff --git a/media/uikit/css/components/form-advanced.gradient.css b/media/uikit/css/components/form-advanced.gradient.css new file mode 100644 index 00000000..4c807601 --- /dev/null +++ b/media/uikit/css/components/form-advanced.gradient.css @@ -0,0 +1,78 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Form advanced + Note: Only works in Webkit at the moment + ========================================================================== */ +/* + * 1. Style + * 2. Makes box more robust so it clips the child element + * 3. Vertical alignment + * 4. Remove default style + * 5. Fix black background on iOS + */ +.uk-form input[type="radio"], +.uk-form input[type="checkbox"] { + /* 1 */ + display: inline-block; + height: 14px; + width: 14px; + border: 1px solid #aaaaaa; + /* 2 */ + overflow: hidden; + /* 3 */ + margin-top: -4px; + vertical-align: middle; + /* 4 */ + -webkit-appearance: none; + outline: 0; + /* 5 */ + background: transparent; +} +/* Radio */ +.uk-form input[type="radio"] { + border-radius: 50%; +} +/* + * Checked + */ +.uk-form input[type=radio]:before, +.uk-form input[type=checkbox]:before { + display: block; +} +/* Radio */ +.uk-form input[type=radio]:checked:before { + content: ''; + width: 8px; + height: 8px; + margin: 2px auto 0; + border-radius: 50%; + background: #00a8e6; +} +/* Checkbox */ +.uk-form input[type=checkbox]:checked:before, +.uk-form input[type=checkbox]:indeterminate:before { + content: "\f00c"; + font-family: FontAwesome; + font-size: 12px; + -webkit-font-smoothing: antialiased; + text-align: center; + line-height: 12px; + color: #00a8e6; +} +.uk-form input[type=checkbox]:indeterminate:before { + content: "\f068"; +} +/* + * Disabled + */ +.uk-form input[type=radio]:disabled, +.uk-form input[type=checkbox]:disabled { + border-color: #dddddd; +} +.uk-form input[type=radio]:disabled:checked:before { + background-color: #aaaaaa; +} +.uk-form input[type=checkbox]:disabled:checked:before, +.uk-form input[type=checkbox]:disabled:indeterminate:before { + color: #aaaaaa; +} diff --git a/media/uikit/css/components/form-advanced.gradient.min.css b/media/uikit/css/components/form-advanced.gradient.min.css new file mode 100644 index 00000000..03d82f0e --- /dev/null +++ b/media/uikit/css/components/form-advanced.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-form input[type=radio],.uk-form input[type=checkbox]{display:inline-block;height:14px;width:14px;border:1px solid #aaa;overflow:hidden;margin-top:-4px;vertical-align:middle;-webkit-appearance:none;outline:0;background:0 0}.uk-form input[type=radio]{border-radius:50%}.uk-form input[type=checkbox]:before,.uk-form input[type=radio]:before{display:block}.uk-form input[type=radio]:checked:before{content:'';width:8px;height:8px;margin:2px auto 0;border-radius:50%;background:#00a8e6}.uk-form input[type=checkbox]:checked:before,.uk-form input[type=checkbox]:indeterminate:before{content:"\f00c";font-family:FontAwesome;font-size:12px;-webkit-font-smoothing:antialiased;text-align:center;line-height:12px;color:#00a8e6}.uk-form input[type=checkbox]:indeterminate:before{content:"\f068"}.uk-form input[type=checkbox]:disabled,.uk-form input[type=radio]:disabled{border-color:#ddd}.uk-form input[type=radio]:disabled:checked:before{background-color:#aaa}.uk-form input[type=checkbox]:disabled:checked:before,.uk-form input[type=checkbox]:disabled:indeterminate:before{color:#aaa} \ No newline at end of file diff --git a/media/uikit/css/components/form-advanced.min.css b/media/uikit/css/components/form-advanced.min.css new file mode 100644 index 00000000..03d82f0e --- /dev/null +++ b/media/uikit/css/components/form-advanced.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-form input[type=radio],.uk-form input[type=checkbox]{display:inline-block;height:14px;width:14px;border:1px solid #aaa;overflow:hidden;margin-top:-4px;vertical-align:middle;-webkit-appearance:none;outline:0;background:0 0}.uk-form input[type=radio]{border-radius:50%}.uk-form input[type=checkbox]:before,.uk-form input[type=radio]:before{display:block}.uk-form input[type=radio]:checked:before{content:'';width:8px;height:8px;margin:2px auto 0;border-radius:50%;background:#00a8e6}.uk-form input[type=checkbox]:checked:before,.uk-form input[type=checkbox]:indeterminate:before{content:"\f00c";font-family:FontAwesome;font-size:12px;-webkit-font-smoothing:antialiased;text-align:center;line-height:12px;color:#00a8e6}.uk-form input[type=checkbox]:indeterminate:before{content:"\f068"}.uk-form input[type=checkbox]:disabled,.uk-form input[type=radio]:disabled{border-color:#ddd}.uk-form input[type=radio]:disabled:checked:before{background-color:#aaa}.uk-form input[type=checkbox]:disabled:checked:before,.uk-form input[type=checkbox]:disabled:indeterminate:before{color:#aaa} \ No newline at end of file diff --git a/media/uikit/css/components/form-file.almost-flat.css b/media/uikit/css/components/form-file.almost-flat.css new file mode 100644 index 00000000..70fe2c45 --- /dev/null +++ b/media/uikit/css/components/form-file.almost-flat.css @@ -0,0 +1,34 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Form file + ========================================================================== */ +/* + * 1. Behave like form elements + * 2. Create position context for dropdowns + * 3. Clip content + */ +.uk-form-file { + /* 1 */ + display: inline-block; + vertical-align: middle; + /* 2 */ + position: relative; + /* 3 */ + overflow: hidden; +} +/* + * 1. Required for Firefox + * 2. Expand height and required for the cursor + */ +.uk-form-file input[type="file"] { + position: absolute; + top: 0; + z-index: 1; + width: 100%; + opacity: 0; + cursor: pointer; + /* 1 */ + left: 0; + /* 2 */ + font-size: 500px; +} diff --git a/media/uikit/css/components/form-file.almost-flat.min.css b/media/uikit/css/components/form-file.almost-flat.min.css new file mode 100644 index 00000000..3da0ea63 --- /dev/null +++ b/media/uikit/css/components/form-file.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-form-file{display:inline-block;vertical-align:middle;position:relative;overflow:hidden}.uk-form-file input[type=file]{position:absolute;top:0;z-index:1;width:100%;opacity:0;cursor:pointer;left:0;font-size:500px} \ No newline at end of file diff --git a/media/uikit/css/components/form-file.css b/media/uikit/css/components/form-file.css new file mode 100644 index 00000000..70fe2c45 --- /dev/null +++ b/media/uikit/css/components/form-file.css @@ -0,0 +1,34 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Form file + ========================================================================== */ +/* + * 1. Behave like form elements + * 2. Create position context for dropdowns + * 3. Clip content + */ +.uk-form-file { + /* 1 */ + display: inline-block; + vertical-align: middle; + /* 2 */ + position: relative; + /* 3 */ + overflow: hidden; +} +/* + * 1. Required for Firefox + * 2. Expand height and required for the cursor + */ +.uk-form-file input[type="file"] { + position: absolute; + top: 0; + z-index: 1; + width: 100%; + opacity: 0; + cursor: pointer; + /* 1 */ + left: 0; + /* 2 */ + font-size: 500px; +} diff --git a/media/uikit/css/components/form-file.gradient.css b/media/uikit/css/components/form-file.gradient.css new file mode 100644 index 00000000..70fe2c45 --- /dev/null +++ b/media/uikit/css/components/form-file.gradient.css @@ -0,0 +1,34 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Form file + ========================================================================== */ +/* + * 1. Behave like form elements + * 2. Create position context for dropdowns + * 3. Clip content + */ +.uk-form-file { + /* 1 */ + display: inline-block; + vertical-align: middle; + /* 2 */ + position: relative; + /* 3 */ + overflow: hidden; +} +/* + * 1. Required for Firefox + * 2. Expand height and required for the cursor + */ +.uk-form-file input[type="file"] { + position: absolute; + top: 0; + z-index: 1; + width: 100%; + opacity: 0; + cursor: pointer; + /* 1 */ + left: 0; + /* 2 */ + font-size: 500px; +} diff --git a/media/uikit/css/components/form-file.gradient.min.css b/media/uikit/css/components/form-file.gradient.min.css new file mode 100644 index 00000000..3da0ea63 --- /dev/null +++ b/media/uikit/css/components/form-file.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-form-file{display:inline-block;vertical-align:middle;position:relative;overflow:hidden}.uk-form-file input[type=file]{position:absolute;top:0;z-index:1;width:100%;opacity:0;cursor:pointer;left:0;font-size:500px} \ No newline at end of file diff --git a/media/uikit/css/components/form-file.min.css b/media/uikit/css/components/form-file.min.css new file mode 100644 index 00000000..3da0ea63 --- /dev/null +++ b/media/uikit/css/components/form-file.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-form-file{display:inline-block;vertical-align:middle;position:relative;overflow:hidden}.uk-form-file input[type=file]{position:absolute;top:0;z-index:1;width:100%;opacity:0;cursor:pointer;left:0;font-size:500px} \ No newline at end of file diff --git a/media/uikit/css/components/form-password.almost-flat.css b/media/uikit/css/components/form-password.almost-flat.css new file mode 100644 index 00000000..b328f60f --- /dev/null +++ b/media/uikit/css/components/form-password.almost-flat.css @@ -0,0 +1,34 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Form password + ========================================================================== */ +/* + * 1. Container width fits its content + * 2. Create position context + * 3. Prevent `inline-block` consequences + */ +.uk-form-password { + /* 1 */ + display: inline-block; + /* 2 */ + position: relative; + /* 3 */ + max-width: 100%; +} +.uk-form-password-toggle { + display: block; + position: absolute; + top: 50%; + right: 10px; + margin-top: -6px; + font-size: 13px; + line-height: 13px; + color: #999999; +} +.uk-form-password-toggle:hover { + color: #999999; + text-decoration: none; +} +.uk-form-password > input { + padding-right: 50px !important; +} diff --git a/media/uikit/css/components/form-password.almost-flat.min.css b/media/uikit/css/components/form-password.almost-flat.min.css new file mode 100644 index 00000000..1f55b7c9 --- /dev/null +++ b/media/uikit/css/components/form-password.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-form-password{display:inline-block;position:relative;max-width:100%}.uk-form-password-toggle{display:block;position:absolute;top:50%;right:10px;margin-top:-6px;font-size:13px;line-height:13px;color:#999}.uk-form-password-toggle:hover{color:#999;text-decoration:none}.uk-form-password>input{padding-right:50px!important} \ No newline at end of file diff --git a/media/uikit/css/components/form-password.css b/media/uikit/css/components/form-password.css new file mode 100644 index 00000000..b328f60f --- /dev/null +++ b/media/uikit/css/components/form-password.css @@ -0,0 +1,34 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Form password + ========================================================================== */ +/* + * 1. Container width fits its content + * 2. Create position context + * 3. Prevent `inline-block` consequences + */ +.uk-form-password { + /* 1 */ + display: inline-block; + /* 2 */ + position: relative; + /* 3 */ + max-width: 100%; +} +.uk-form-password-toggle { + display: block; + position: absolute; + top: 50%; + right: 10px; + margin-top: -6px; + font-size: 13px; + line-height: 13px; + color: #999999; +} +.uk-form-password-toggle:hover { + color: #999999; + text-decoration: none; +} +.uk-form-password > input { + padding-right: 50px !important; +} diff --git a/media/uikit/css/components/form-password.gradient.css b/media/uikit/css/components/form-password.gradient.css new file mode 100644 index 00000000..b328f60f --- /dev/null +++ b/media/uikit/css/components/form-password.gradient.css @@ -0,0 +1,34 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Form password + ========================================================================== */ +/* + * 1. Container width fits its content + * 2. Create position context + * 3. Prevent `inline-block` consequences + */ +.uk-form-password { + /* 1 */ + display: inline-block; + /* 2 */ + position: relative; + /* 3 */ + max-width: 100%; +} +.uk-form-password-toggle { + display: block; + position: absolute; + top: 50%; + right: 10px; + margin-top: -6px; + font-size: 13px; + line-height: 13px; + color: #999999; +} +.uk-form-password-toggle:hover { + color: #999999; + text-decoration: none; +} +.uk-form-password > input { + padding-right: 50px !important; +} diff --git a/media/uikit/css/components/form-password.gradient.min.css b/media/uikit/css/components/form-password.gradient.min.css new file mode 100644 index 00000000..1f55b7c9 --- /dev/null +++ b/media/uikit/css/components/form-password.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-form-password{display:inline-block;position:relative;max-width:100%}.uk-form-password-toggle{display:block;position:absolute;top:50%;right:10px;margin-top:-6px;font-size:13px;line-height:13px;color:#999}.uk-form-password-toggle:hover{color:#999;text-decoration:none}.uk-form-password>input{padding-right:50px!important} \ No newline at end of file diff --git a/media/uikit/css/components/form-password.min.css b/media/uikit/css/components/form-password.min.css new file mode 100644 index 00000000..1f55b7c9 --- /dev/null +++ b/media/uikit/css/components/form-password.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-form-password{display:inline-block;position:relative;max-width:100%}.uk-form-password-toggle{display:block;position:absolute;top:50%;right:10px;margin-top:-6px;font-size:13px;line-height:13px;color:#999}.uk-form-password-toggle:hover{color:#999;text-decoration:none}.uk-form-password>input{padding-right:50px!important} \ No newline at end of file diff --git a/media/uikit/css/components/form-select.almost-flat.css b/media/uikit/css/components/form-select.almost-flat.css new file mode 100644 index 00000000..17839091 --- /dev/null +++ b/media/uikit/css/components/form-select.almost-flat.css @@ -0,0 +1,35 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Form select + ========================================================================== */ +/* + * 1. Behave like form elements + * 2. Create position context for dropdowns + * 3. Clip content + */ +.uk-form-select { + /* 1 */ + display: inline-block; + vertical-align: middle; + /* 2 */ + position: relative; + /* 3 */ + overflow: hidden; +} +/* + * 1. Required for Firefox + * 1. Required for Webkit to make `height` work + */ +.uk-form-select select { + position: absolute; + top: 0; + z-index: 1; + width: 100%; + height: 100%; + opacity: 0; + cursor: pointer; + /* 1 */ + left: 0; + /* 2 */ + -webkit-appearance: none; +} diff --git a/media/uikit/css/components/form-select.almost-flat.min.css b/media/uikit/css/components/form-select.almost-flat.min.css new file mode 100644 index 00000000..5a38b0f8 --- /dev/null +++ b/media/uikit/css/components/form-select.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-form-select{display:inline-block;vertical-align:middle;position:relative;overflow:hidden}.uk-form-select select{position:absolute;top:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer;left:0;-webkit-appearance:none} \ No newline at end of file diff --git a/media/uikit/css/components/form-select.css b/media/uikit/css/components/form-select.css new file mode 100644 index 00000000..17839091 --- /dev/null +++ b/media/uikit/css/components/form-select.css @@ -0,0 +1,35 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Form select + ========================================================================== */ +/* + * 1. Behave like form elements + * 2. Create position context for dropdowns + * 3. Clip content + */ +.uk-form-select { + /* 1 */ + display: inline-block; + vertical-align: middle; + /* 2 */ + position: relative; + /* 3 */ + overflow: hidden; +} +/* + * 1. Required for Firefox + * 1. Required for Webkit to make `height` work + */ +.uk-form-select select { + position: absolute; + top: 0; + z-index: 1; + width: 100%; + height: 100%; + opacity: 0; + cursor: pointer; + /* 1 */ + left: 0; + /* 2 */ + -webkit-appearance: none; +} diff --git a/media/uikit/css/components/form-select.gradient.css b/media/uikit/css/components/form-select.gradient.css new file mode 100644 index 00000000..17839091 --- /dev/null +++ b/media/uikit/css/components/form-select.gradient.css @@ -0,0 +1,35 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Form select + ========================================================================== */ +/* + * 1. Behave like form elements + * 2. Create position context for dropdowns + * 3. Clip content + */ +.uk-form-select { + /* 1 */ + display: inline-block; + vertical-align: middle; + /* 2 */ + position: relative; + /* 3 */ + overflow: hidden; +} +/* + * 1. Required for Firefox + * 1. Required for Webkit to make `height` work + */ +.uk-form-select select { + position: absolute; + top: 0; + z-index: 1; + width: 100%; + height: 100%; + opacity: 0; + cursor: pointer; + /* 1 */ + left: 0; + /* 2 */ + -webkit-appearance: none; +} diff --git a/media/uikit/css/components/form-select.gradient.min.css b/media/uikit/css/components/form-select.gradient.min.css new file mode 100644 index 00000000..5a38b0f8 --- /dev/null +++ b/media/uikit/css/components/form-select.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-form-select{display:inline-block;vertical-align:middle;position:relative;overflow:hidden}.uk-form-select select{position:absolute;top:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer;left:0;-webkit-appearance:none} \ No newline at end of file diff --git a/media/uikit/css/components/form-select.min.css b/media/uikit/css/components/form-select.min.css new file mode 100644 index 00000000..5a38b0f8 --- /dev/null +++ b/media/uikit/css/components/form-select.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-form-select{display:inline-block;vertical-align:middle;position:relative;overflow:hidden}.uk-form-select select{position:absolute;top:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer;left:0;-webkit-appearance:none} \ No newline at end of file diff --git a/media/uikit/css/components/htmleditor.almost-flat.css b/media/uikit/css/components/htmleditor.almost-flat.css new file mode 100644 index 00000000..c24af888 --- /dev/null +++ b/media/uikit/css/components/htmleditor.almost-flat.css @@ -0,0 +1,225 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: HTML editor + ========================================================================== */ +/* Sub-object `uk-htmleditor-navbar` + ========================================================================== */ +.uk-htmleditor-navbar { + background: #f5f5f5; + border: 1px solid rgba(0, 0, 0, 0.06); + border-top-left-radius: 4px; + border-top-right-radius: 4px; +} +/* + * Micro clearfix + */ +.uk-htmleditor-navbar:before, +.uk-htmleditor-navbar:after { + content: ""; + display: table; +} +.uk-htmleditor-navbar:after { + clear: both; +} +/* Sub-object `uk-htmleditor-navbar-nav` + ========================================================================== */ +.uk-htmleditor-navbar-nav { + margin: 0; + padding: 0; + list-style: none; + float: left; +} +.uk-htmleditor-navbar-nav > li { + float: left; +} +/* + * 1. Dimensions + * 2. Style + */ +.uk-htmleditor-navbar-nav > li > a { + display: block; + -moz-box-sizing: border-box; + box-sizing: border-box; + text-decoration: none; + /* 1 */ + height: 41px; + padding: 0 15px; + line-height: 40px; + /* 2 */ + color: #444444; + font-size: 11px; + cursor: pointer; + margin-top: -1px; + margin-left: -1px; + border: 1px solid transparent; + border-bottom-width: 0; + text-shadow: 0 1px 0 #ffffff; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-htmleditor-navbar-nav > li:hover > a, +.uk-htmleditor-navbar-nav > li > a:focus { + background-color: #fafafa; + color: #444444; + outline: none; + /* 2 */ + position: relative; + z-index: 1; + border-left-color: rgba(0, 0, 0, 0.1); + border-right-color: rgba(0, 0, 0, 0.1); + border-top-color: rgba(0, 0, 0, 0.1); +} +/* OnClick */ +.uk-htmleditor-navbar-nav > li > a:active { + background-color: #eeeeee; + color: #444444; + border-left-color: rgba(0, 0, 0, 0.1); + border-right-color: rgba(0, 0, 0, 0.1); + border-top-color: rgba(0, 0, 0, 0.2); +} +/* Active */ +.uk-htmleditor-navbar-nav > li.uk-active > a { + background-color: #fafafa; + color: #444444; + border-left-color: rgba(0, 0, 0, 0.1); + border-right-color: rgba(0, 0, 0, 0.1); + border-top-color: rgba(0, 0, 0, 0.1); +} +/* Sub-object: `uk-htmleditor-navbar-flip` + ========================================================================== */ +.uk-htmleditor-navbar-flip { + float: right; +} +/* Sub-object for special buttons + ========================================================================== */ +[data-mode='split'] .uk-htmleditor-button-code, +[data-mode='split'] .uk-htmleditor-button-preview { + display: none; +} +/* Sub-object `uk-htmleditor-content` + ========================================================================== */ +.uk-htmleditor-content { + border-left: 1px solid #dddddd; + border-right: 1px solid #dddddd; + border-bottom: 1px solid #dddddd; + background: #ffffff; + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; +} +/* + * Micro clearfix + */ +.uk-htmleditor-content:before, +.uk-htmleditor-content:after { + content: ""; + display: table; +} +.uk-htmleditor-content:after { + clear: both; +} +/* Modifier `uk-htmleditor-fullscreen` + ========================================================================== */ +.uk-htmleditor-fullscreen { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: 990; +} +.uk-htmleditor-fullscreen .uk-htmleditor-content { + position: absolute; + top: 41px; + left: 0; + right: 0; + bottom: 0; +} +.uk-htmleditor-fullscreen .uk-icon-expand:before { + content: "\f066"; +} +/* Sub-objects `uk-htmleditor-code` and `uk-htmleditor-preview` + ========================================================================== */ +.uk-htmleditor-code, +.uk-htmleditor-preview { + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.uk-htmleditor-preview { + padding: 20px; + overflow-y: scroll; + position: relative; +} +/* + * Tab view + */ +[data-mode='tab'][data-active-tab='code'] .uk-htmleditor-preview, +[data-mode='tab'][data-active-tab='preview'] .uk-htmleditor-code { + display: none; +} +/* + * Split view + */ +[data-mode='split'] .uk-htmleditor-code, +[data-mode='split'] .uk-htmleditor-preview { + float: left; + width: 50%; +} +[data-mode='split'] .uk-htmleditor-code { + border-right: 1px solid #eeeeee; +} +/* Sub-object `uk-htmleditor-iframe` + ========================================================================== */ +.uk-htmleditor-iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +/* CodeMirror modifications + ========================================================================== */ +.uk-htmleditor .CodeMirror { + padding: 10px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +/* + * Apply same `border-radius` as `uk-htmleditor-navbar` + */ +.uk-htmleditor-navbar-nav:first-child > li:first-child > a { + border-top-left-radius: 4px; +} +/* + * Sub-modifier `uk-htmleditor-navbar-flip` + */ +/* Collapse border */ +.uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav > li > a { + margin-left: 0; + margin-right: -1px; +} +/* Apply same `border-radius` as `uk-htmleditor-navbar` */ +.uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav:first-child > li:first-child > a { + border-top-left-radius: 0; +} +.uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav:last-child > li:last-child > a { + border-top-right-radius: 4px; +} +/* + * Sub-modifier `uk-htmleditor-fullscreen` + */ +.uk-htmleditor-fullscreen .uk-htmleditor-navbar { + border-top: none; + border-left: none; + border-right: none; + border-radius: 0; +} +.uk-htmleditor-fullscreen .uk-htmleditor-content { + border: none; + border-radius: 0; +} +.uk-htmleditor-fullscreen .uk-htmleditor-navbar-nav > li > a { + border-radius: 0 !important; +} diff --git a/media/uikit/css/components/htmleditor.almost-flat.min.css b/media/uikit/css/components/htmleditor.almost-flat.min.css new file mode 100644 index 00000000..e50023d0 --- /dev/null +++ b/media/uikit/css/components/htmleditor.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-htmleditor-navbar{background:#f5f5f5;border:1px solid rgba(0,0,0,.06);border-top-left-radius:4px;border-top-right-radius:4px}.uk-htmleditor-navbar:after,.uk-htmleditor-navbar:before{content:"";display:table}.uk-htmleditor-navbar:after{clear:both}.uk-htmleditor-navbar-nav{margin:0;padding:0;list-style:none;float:left}.uk-htmleditor-navbar-nav>li{float:left}.uk-htmleditor-navbar-nav>li>a{display:block;-moz-box-sizing:border-box;box-sizing:border-box;text-decoration:none;height:41px;padding:0 15px;line-height:40px;color:#444;font-size:11px;cursor:pointer;margin-top:-1px;margin-left:-1px;border:1px solid transparent;border-bottom-width:0;text-shadow:0 1px 0 #fff}.uk-htmleditor-navbar-nav>li:hover>a,.uk-htmleditor-navbar-nav>li>a:focus{background-color:#fafafa;color:#444;outline:0;position:relative;z-index:1;border-left-color:rgba(0,0,0,.1);border-right-color:rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.1)}.uk-htmleditor-navbar-nav>li>a:active{background-color:#eee;color:#444;border-left-color:rgba(0,0,0,.1);border-right-color:rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.2)}.uk-htmleditor-navbar-nav>li.uk-active>a{background-color:#fafafa;color:#444;border-left-color:rgba(0,0,0,.1);border-right-color:rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.1)}.uk-htmleditor-navbar-flip{float:right}[data-mode=split] .uk-htmleditor-button-code,[data-mode=split] .uk-htmleditor-button-preview{display:none}.uk-htmleditor-content{border-left:1px solid #ddd;border-right:1px solid #ddd;border-bottom:1px solid #ddd;background:#fff;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.uk-htmleditor-content:after,.uk-htmleditor-content:before{content:"";display:table}.uk-htmleditor-content:after{clear:both}.uk-htmleditor-fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;z-index:990}.uk-htmleditor-fullscreen .uk-htmleditor-content{position:absolute;top:41px;left:0;right:0;bottom:0}.uk-htmleditor-fullscreen .uk-icon-expand:before{content:"\f066"}.uk-htmleditor-code,.uk-htmleditor-preview{-moz-box-sizing:border-box;box-sizing:border-box}.uk-htmleditor-preview{padding:20px;overflow-y:scroll;position:relative}[data-mode=tab][data-active-tab=code] .uk-htmleditor-preview,[data-mode=tab][data-active-tab=preview] .uk-htmleditor-code{display:none}[data-mode=split] .uk-htmleditor-code,[data-mode=split] .uk-htmleditor-preview{float:left;width:50%}[data-mode=split] .uk-htmleditor-code{border-right:1px solid #eee}.uk-htmleditor-iframe{position:absolute;top:0;left:0;width:100%;height:100%}.uk-htmleditor .CodeMirror{padding:10px;-moz-box-sizing:border-box;box-sizing:border-box}.uk-htmleditor-navbar-nav:first-child>li:first-child>a{border-top-left-radius:4px}.uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav>li>a{margin-left:0;margin-right:-1px}.uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav:first-child>li:first-child>a{border-top-left-radius:0}.uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav:last-child>li:last-child>a{border-top-right-radius:4px}.uk-htmleditor-fullscreen .uk-htmleditor-navbar{border-top:none;border-left:none;border-right:none;border-radius:0}.uk-htmleditor-fullscreen .uk-htmleditor-content{border:none;border-radius:0}.uk-htmleditor-fullscreen .uk-htmleditor-navbar-nav>li>a{border-radius:0!important} \ No newline at end of file diff --git a/media/uikit/css/components/htmleditor.css b/media/uikit/css/components/htmleditor.css new file mode 100644 index 00000000..3861baa3 --- /dev/null +++ b/media/uikit/css/components/htmleditor.css @@ -0,0 +1,167 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: HTML editor + ========================================================================== */ +/* Sub-object `uk-htmleditor-navbar` + ========================================================================== */ +.uk-htmleditor-navbar { + background: #eeeeee; +} +/* + * Micro clearfix + */ +.uk-htmleditor-navbar:before, +.uk-htmleditor-navbar:after { + content: ""; + display: table; +} +.uk-htmleditor-navbar:after { + clear: both; +} +/* Sub-object `uk-htmleditor-navbar-nav` + ========================================================================== */ +.uk-htmleditor-navbar-nav { + margin: 0; + padding: 0; + list-style: none; + float: left; +} +.uk-htmleditor-navbar-nav > li { + float: left; +} +/* + * 1. Dimensions + * 2. Style + */ +.uk-htmleditor-navbar-nav > li > a { + display: block; + -moz-box-sizing: border-box; + box-sizing: border-box; + text-decoration: none; + /* 1 */ + height: 40px; + padding: 0 15px; + line-height: 40px; + /* 2 */ + color: #444444; + font-size: 11px; + cursor: pointer; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-htmleditor-navbar-nav > li:hover > a, +.uk-htmleditor-navbar-nav > li > a:focus { + background-color: #f5f5f5; + color: #444444; + outline: none; + /* 2 */ +} +/* OnClick */ +.uk-htmleditor-navbar-nav > li > a:active { + background-color: #dddddd; + color: #444444; +} +/* Active */ +.uk-htmleditor-navbar-nav > li.uk-active > a { + background-color: #f5f5f5; + color: #444444; +} +/* Sub-object: `uk-htmleditor-navbar-flip` + ========================================================================== */ +.uk-htmleditor-navbar-flip { + float: right; +} +/* Sub-object for special buttons + ========================================================================== */ +[data-mode='split'] .uk-htmleditor-button-code, +[data-mode='split'] .uk-htmleditor-button-preview { + display: none; +} +/* Sub-object `uk-htmleditor-content` + ========================================================================== */ +.uk-htmleditor-content { + border-left: 1px solid #dddddd; + border-right: 1px solid #dddddd; + border-bottom: 1px solid #dddddd; + background: #ffffff; +} +/* + * Micro clearfix + */ +.uk-htmleditor-content:before, +.uk-htmleditor-content:after { + content: ""; + display: table; +} +.uk-htmleditor-content:after { + clear: both; +} +/* Modifier `uk-htmleditor-fullscreen` + ========================================================================== */ +.uk-htmleditor-fullscreen { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: 990; +} +.uk-htmleditor-fullscreen .uk-htmleditor-content { + position: absolute; + top: 40px; + left: 0; + right: 0; + bottom: 0; +} +.uk-htmleditor-fullscreen .uk-icon-expand:before { + content: "\f066"; +} +/* Sub-objects `uk-htmleditor-code` and `uk-htmleditor-preview` + ========================================================================== */ +.uk-htmleditor-code, +.uk-htmleditor-preview { + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.uk-htmleditor-preview { + padding: 20px; + overflow-y: scroll; + position: relative; +} +/* + * Tab view + */ +[data-mode='tab'][data-active-tab='code'] .uk-htmleditor-preview, +[data-mode='tab'][data-active-tab='preview'] .uk-htmleditor-code { + display: none; +} +/* + * Split view + */ +[data-mode='split'] .uk-htmleditor-code, +[data-mode='split'] .uk-htmleditor-preview { + float: left; + width: 50%; +} +[data-mode='split'] .uk-htmleditor-code { + border-right: 1px solid #eeeeee; +} +/* Sub-object `uk-htmleditor-iframe` + ========================================================================== */ +.uk-htmleditor-iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +/* CodeMirror modifications + ========================================================================== */ +.uk-htmleditor .CodeMirror { + padding: 10px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} diff --git a/media/uikit/css/components/htmleditor.gradient.css b/media/uikit/css/components/htmleditor.gradient.css new file mode 100644 index 00000000..9c9624ee --- /dev/null +++ b/media/uikit/css/components/htmleditor.gradient.css @@ -0,0 +1,232 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: HTML editor + ========================================================================== */ +/* Sub-object `uk-htmleditor-navbar` + ========================================================================== */ +.uk-htmleditor-navbar { + background: #f7f7f7; + border: 1px solid rgba(0, 0, 0, 0.1); + border-bottom-color: rgba(0, 0, 0, 0.2); + border-top-left-radius: 4px; + border-top-right-radius: 4px; + background-origin: border-box; + background-image: -webkit-linear-gradient(top, #ffffff, #eeeeee); + background-image: linear-gradient(to bottom, #ffffff, #eeeeee); +} +/* + * Micro clearfix + */ +.uk-htmleditor-navbar:before, +.uk-htmleditor-navbar:after { + content: ""; + display: table; +} +.uk-htmleditor-navbar:after { + clear: both; +} +/* Sub-object `uk-htmleditor-navbar-nav` + ========================================================================== */ +.uk-htmleditor-navbar-nav { + margin: 0; + padding: 0; + list-style: none; + float: left; +} +.uk-htmleditor-navbar-nav > li { + float: left; +} +/* + * 1. Dimensions + * 2. Style + */ +.uk-htmleditor-navbar-nav > li > a { + display: block; + -moz-box-sizing: border-box; + box-sizing: border-box; + text-decoration: none; + /* 1 */ + height: 41px; + padding: 0 15px; + line-height: 40px; + /* 2 */ + color: #444444; + font-size: 11px; + cursor: pointer; + margin-top: -1px; + margin-left: -1px; + border: 1px solid transparent; + border-bottom-width: 0; + text-shadow: 0 1px 0 #ffffff; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-htmleditor-navbar-nav > li:hover > a, +.uk-htmleditor-navbar-nav > li > a:focus { + background-color: transparent; + color: #444444; + outline: none; + /* 2 */ + position: relative; + z-index: 1; + border-left-color: rgba(0, 0, 0, 0.1); + border-right-color: rgba(0, 0, 0, 0.1); + border-top-color: rgba(0, 0, 0, 0.1); + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); +} +/* OnClick */ +.uk-htmleditor-navbar-nav > li > a:active { + background-color: #f5f5f5; + color: #444444; + border-left-color: rgba(0, 0, 0, 0.1); + border-right-color: rgba(0, 0, 0, 0.1); + border-top-color: rgba(0, 0, 0, 0.2); + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); +} +/* Active */ +.uk-htmleditor-navbar-nav > li.uk-active > a { + background-color: #fafafa; + color: #444444; + border-left-color: rgba(0, 0, 0, 0.1); + border-right-color: rgba(0, 0, 0, 0.1); + border-top-color: rgba(0, 0, 0, 0.2); + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); +} +/* Sub-object: `uk-htmleditor-navbar-flip` + ========================================================================== */ +.uk-htmleditor-navbar-flip { + float: right; +} +/* Sub-object for special buttons + ========================================================================== */ +[data-mode='split'] .uk-htmleditor-button-code, +[data-mode='split'] .uk-htmleditor-button-preview { + display: none; +} +/* Sub-object `uk-htmleditor-content` + ========================================================================== */ +.uk-htmleditor-content { + border-left: 1px solid #dddddd; + border-right: 1px solid #dddddd; + border-bottom: 1px solid #dddddd; + background: #ffffff; + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; +} +/* + * Micro clearfix + */ +.uk-htmleditor-content:before, +.uk-htmleditor-content:after { + content: ""; + display: table; +} +.uk-htmleditor-content:after { + clear: both; +} +/* Modifier `uk-htmleditor-fullscreen` + ========================================================================== */ +.uk-htmleditor-fullscreen { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: 990; +} +.uk-htmleditor-fullscreen .uk-htmleditor-content { + position: absolute; + top: 41px; + left: 0; + right: 0; + bottom: 0; +} +.uk-htmleditor-fullscreen .uk-icon-expand:before { + content: "\f066"; +} +/* Sub-objects `uk-htmleditor-code` and `uk-htmleditor-preview` + ========================================================================== */ +.uk-htmleditor-code, +.uk-htmleditor-preview { + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.uk-htmleditor-preview { + padding: 20px; + overflow-y: scroll; + position: relative; +} +/* + * Tab view + */ +[data-mode='tab'][data-active-tab='code'] .uk-htmleditor-preview, +[data-mode='tab'][data-active-tab='preview'] .uk-htmleditor-code { + display: none; +} +/* + * Split view + */ +[data-mode='split'] .uk-htmleditor-code, +[data-mode='split'] .uk-htmleditor-preview { + float: left; + width: 50%; +} +[data-mode='split'] .uk-htmleditor-code { + border-right: 1px solid #eeeeee; +} +/* Sub-object `uk-htmleditor-iframe` + ========================================================================== */ +.uk-htmleditor-iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +/* CodeMirror modifications + ========================================================================== */ +.uk-htmleditor .CodeMirror { + padding: 10px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +/* + * Apply same `border-radius` as `uk-htmleditor-navbar` + */ +.uk-htmleditor-navbar-nav:first-child > li:first-child > a { + border-top-left-radius: 4px; +} +/* + * Sub-modifier `uk-htmleditor-navbar-flip` + */ +/* Collapse border */ +.uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav > li > a { + margin-left: 0; + margin-right: -1px; +} +/* Apply same `border-radius` as `uk-htmleditor-navbar` */ +.uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav:first-child > li:first-child > a { + border-top-left-radius: 0; +} +.uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav:last-child > li:last-child > a { + border-top-right-radius: 4px; +} +/* + * Sub-modifier `uk-htmleditor-fullscreen` + */ +.uk-htmleditor-fullscreen .uk-htmleditor-navbar { + border-top: none; + border-left: none; + border-right: none; + border-radius: 0; +} +.uk-htmleditor-fullscreen .uk-htmleditor-content { + border: none; + border-radius: 0; +} +.uk-htmleditor-fullscreen .uk-htmleditor-navbar-nav > li > a { + border-radius: 0 !important; +} diff --git a/media/uikit/css/components/htmleditor.gradient.min.css b/media/uikit/css/components/htmleditor.gradient.min.css new file mode 100644 index 00000000..f7178028 --- /dev/null +++ b/media/uikit/css/components/htmleditor.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-htmleditor-navbar{background:#f7f7f7;border:1px solid rgba(0,0,0,.1);border-bottom-color:rgba(0,0,0,.2);border-top-left-radius:4px;border-top-right-radius:4px;background-origin:border-box;background-image:-webkit-linear-gradient(top,#fff,#eee);background-image:linear-gradient(to bottom,#fff,#eee)}.uk-htmleditor-navbar:after,.uk-htmleditor-navbar:before{content:"";display:table}.uk-htmleditor-navbar:after{clear:both}.uk-htmleditor-navbar-nav{margin:0;padding:0;list-style:none;float:left}.uk-htmleditor-navbar-nav>li{float:left}.uk-htmleditor-navbar-nav>li>a{display:block;-moz-box-sizing:border-box;box-sizing:border-box;text-decoration:none;height:41px;padding:0 15px;line-height:40px;color:#444;font-size:11px;cursor:pointer;margin-top:-1px;margin-left:-1px;border:1px solid transparent;border-bottom-width:0;text-shadow:0 1px 0 #fff}.uk-htmleditor-navbar-nav>li:hover>a,.uk-htmleditor-navbar-nav>li>a:focus{background-color:transparent;color:#444;outline:0;position:relative;z-index:1;border-left-color:rgba(0,0,0,.1);border-right-color:rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.1);box-shadow:inset 0 2px 4px rgba(0,0,0,.1)}.uk-htmleditor-navbar-nav>li>a:active{background-color:#f5f5f5;color:#444;border-left-color:rgba(0,0,0,.1);border-right-color:rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.2);box-shadow:inset 0 2px 4px rgba(0,0,0,.1)}.uk-htmleditor-navbar-nav>li.uk-active>a{background-color:#fafafa;color:#444;border-left-color:rgba(0,0,0,.1);border-right-color:rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.2);box-shadow:inset 0 2px 4px rgba(0,0,0,.1)}.uk-htmleditor-navbar-flip{float:right}[data-mode=split] .uk-htmleditor-button-code,[data-mode=split] .uk-htmleditor-button-preview{display:none}.uk-htmleditor-content{border-left:1px solid #ddd;border-right:1px solid #ddd;border-bottom:1px solid #ddd;background:#fff;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.uk-htmleditor-content:after,.uk-htmleditor-content:before{content:"";display:table}.uk-htmleditor-content:after{clear:both}.uk-htmleditor-fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;z-index:990}.uk-htmleditor-fullscreen .uk-htmleditor-content{position:absolute;top:41px;left:0;right:0;bottom:0}.uk-htmleditor-fullscreen .uk-icon-expand:before{content:"\f066"}.uk-htmleditor-code,.uk-htmleditor-preview{-moz-box-sizing:border-box;box-sizing:border-box}.uk-htmleditor-preview{padding:20px;overflow-y:scroll;position:relative}[data-mode=tab][data-active-tab=code] .uk-htmleditor-preview,[data-mode=tab][data-active-tab=preview] .uk-htmleditor-code{display:none}[data-mode=split] .uk-htmleditor-code,[data-mode=split] .uk-htmleditor-preview{float:left;width:50%}[data-mode=split] .uk-htmleditor-code{border-right:1px solid #eee}.uk-htmleditor-iframe{position:absolute;top:0;left:0;width:100%;height:100%}.uk-htmleditor .CodeMirror{padding:10px;-moz-box-sizing:border-box;box-sizing:border-box}.uk-htmleditor-navbar-nav:first-child>li:first-child>a{border-top-left-radius:4px}.uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav>li>a{margin-left:0;margin-right:-1px}.uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav:first-child>li:first-child>a{border-top-left-radius:0}.uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav:last-child>li:last-child>a{border-top-right-radius:4px}.uk-htmleditor-fullscreen .uk-htmleditor-navbar{border-top:none;border-left:none;border-right:none;border-radius:0}.uk-htmleditor-fullscreen .uk-htmleditor-content{border:none;border-radius:0}.uk-htmleditor-fullscreen .uk-htmleditor-navbar-nav>li>a{border-radius:0!important} \ No newline at end of file diff --git a/media/uikit/css/components/htmleditor.min.css b/media/uikit/css/components/htmleditor.min.css new file mode 100644 index 00000000..074b3d48 --- /dev/null +++ b/media/uikit/css/components/htmleditor.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-htmleditor-navbar{background:#eee}.uk-htmleditor-navbar:after,.uk-htmleditor-navbar:before{content:"";display:table}.uk-htmleditor-navbar:after{clear:both}.uk-htmleditor-navbar-nav{margin:0;padding:0;list-style:none;float:left}.uk-htmleditor-navbar-nav>li{float:left}.uk-htmleditor-navbar-nav>li>a{display:block;-moz-box-sizing:border-box;box-sizing:border-box;text-decoration:none;height:40px;padding:0 15px;line-height:40px;color:#444;font-size:11px;cursor:pointer}.uk-htmleditor-navbar-nav>li:hover>a,.uk-htmleditor-navbar-nav>li>a:focus{background-color:#f5f5f5;color:#444;outline:0}.uk-htmleditor-navbar-nav>li>a:active{background-color:#ddd;color:#444}.uk-htmleditor-navbar-nav>li.uk-active>a{background-color:#f5f5f5;color:#444}.uk-htmleditor-navbar-flip{float:right}[data-mode=split] .uk-htmleditor-button-code,[data-mode=split] .uk-htmleditor-button-preview{display:none}.uk-htmleditor-content{border-left:1px solid #ddd;border-right:1px solid #ddd;border-bottom:1px solid #ddd;background:#fff}.uk-htmleditor-content:after,.uk-htmleditor-content:before{content:"";display:table}.uk-htmleditor-content:after{clear:both}.uk-htmleditor-fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;z-index:990}.uk-htmleditor-fullscreen .uk-htmleditor-content{position:absolute;top:40px;left:0;right:0;bottom:0}.uk-htmleditor-fullscreen .uk-icon-expand:before{content:"\f066"}.uk-htmleditor-code,.uk-htmleditor-preview{-moz-box-sizing:border-box;box-sizing:border-box}.uk-htmleditor-preview{padding:20px;overflow-y:scroll;position:relative}[data-mode=tab][data-active-tab=code] .uk-htmleditor-preview,[data-mode=tab][data-active-tab=preview] .uk-htmleditor-code{display:none}[data-mode=split] .uk-htmleditor-code,[data-mode=split] .uk-htmleditor-preview{float:left;width:50%}[data-mode=split] .uk-htmleditor-code{border-right:1px solid #eee}.uk-htmleditor-iframe{position:absolute;top:0;left:0;width:100%;height:100%}.uk-htmleditor .CodeMirror{padding:10px;-moz-box-sizing:border-box;box-sizing:border-box} \ No newline at end of file diff --git a/media/uikit/css/components/index.html b/media/uikit/css/components/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/uikit/css/components/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/uikit/css/components/nestable.almost-flat.css b/media/uikit/css/components/nestable.almost-flat.css new file mode 100644 index 00000000..4d6f3d4a --- /dev/null +++ b/media/uikit/css/components/nestable.almost-flat.css @@ -0,0 +1,135 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Nestable + ========================================================================== */ +.uk-nestable { + padding: 0; + list-style: none; +} +/* + * Disables the default callout shown when you touch and hold a touch target + * Currently only works in Webkit + */ +.uk-nestable a, +.uk-nestable img { + -webkit-touch-callout: none; +} +/* Sub-object `uk-nestable-list` + ========================================================================== */ +.uk-nestable-list { + margin: 0; + padding-left: 40px; + list-style: none; +} +/* Sub-modifier `uk-nestable-item` + ========================================================================== */ +/* + * 1. Deactivate browser touch actions in IE11 + */ +.uk-nestable-item { + /* 1 */ + touch-action: none; +} +.uk-nestable-item + .uk-nestable-item { + margin-top: 10px; +} +.uk-nestable-list:not(.uk-nestable-dragged) > .uk-nestable-item:first-child { + margin-top: 10px; +} +/* Sub-modifier `uk-nestable-dragged` + ========================================================================== */ +/* + * 1. Reset style + */ +.uk-nestable-dragged { + position: absolute; + z-index: 1050; + pointer-events: none; + /* 1 */ + padding-left: 0; +} +/* Sub-modifier `uk-nestable-placeholder` + ========================================================================== */ +.uk-nestable-placeholder { + position: relative; +} +.uk-nestable-placeholder > * { + opacity: 0; +} +.uk-nestable-placeholder:after { + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + border: 1px dashed #dddddd; + opacity: 1; +} +/* Empty List + ========================================================================== */ +.uk-nestable:empty { + min-height: 30px; +} +/* Sub-object `uk-nestable-handle` + ========================================================================== */ +/* + * Deactivate browser touch actions in IE11 + */ +.uk-nestable-handle { + touch-action: none; +} +/* Hover */ +.uk-nestable-handle:hover { + cursor: move; +} +/* Sub-object `uk-nestable-moving` + ========================================================================== */ +.uk-nestable-moving, +.uk-nestable-moving * { + cursor: move; +} +/* [data-nestable-action='toggle'] + ========================================================================== */ +/* + * 1. Makes text unselectable. Happens if double clicked by mistake + */ +[data-nestable-action='toggle'] { + cursor: pointer; + /* 1 */ + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; +} +/* Sub-object `.uk-nestable-toggle` + ========================================================================== */ +.uk-nestable-toggle { + display: inline-block; + visibility: hidden; +} +.uk-nestable-toggle:after { + content: "\f147"; + font-family: FontAwesome; +} +.uk-parent > :not(.uk-nestable-list) .uk-nestable-toggle { + visibility: visible; +} +/* + * Collapsed + */ +.uk-collapsed .uk-nestable-list { + display: none; +} +.uk-collapsed .uk-nestable-toggle:after { + content: "\f196"; +} +/* Sub-object `uk-nestable-panel` + ========================================================================== */ +.uk-nestable-panel { + padding: 5px; + background: #f5f5f5; + border-radius: 4px; + border: 1px solid rgba(0, 0, 0, 0.06); + text-shadow: 0 1px 0 #ffffff; +} diff --git a/media/uikit/css/components/nestable.almost-flat.min.css b/media/uikit/css/components/nestable.almost-flat.min.css new file mode 100644 index 00000000..8d651de1 --- /dev/null +++ b/media/uikit/css/components/nestable.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-nestable{padding:0;list-style:none}.uk-nestable a,.uk-nestable img{-webkit-touch-callout:none}.uk-nestable-list{margin:0;padding-left:40px;list-style:none}.uk-nestable-item{touch-action:none}.uk-nestable-item+.uk-nestable-item{margin-top:10px}.uk-nestable-list:not(.uk-nestable-dragged)>.uk-nestable-item:first-child{margin-top:10px}.uk-nestable-dragged{position:absolute;z-index:1050;pointer-events:none;padding-left:0}.uk-nestable-placeholder{position:relative}.uk-nestable-placeholder>*{opacity:0}.uk-nestable-placeholder:after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border:1px dashed #ddd;opacity:1}.uk-nestable:empty{min-height:30px}.uk-nestable-handle{touch-action:none}.uk-nestable-handle:hover{cursor:move}.uk-nestable-moving,.uk-nestable-moving *{cursor:move}[data-nestable-action=toggle]{cursor:pointer;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.uk-nestable-toggle{display:inline-block;visibility:hidden}.uk-nestable-toggle:after{content:"\f147";font-family:FontAwesome}.uk-parent>:not(.uk-nestable-list) .uk-nestable-toggle{visibility:visible}.uk-collapsed .uk-nestable-list{display:none}.uk-collapsed .uk-nestable-toggle:after{content:"\f196"}.uk-nestable-panel{padding:5px;background:#f5f5f5;border-radius:4px;border:1px solid rgba(0,0,0,.06);text-shadow:0 1px 0 #fff} \ No newline at end of file diff --git a/media/uikit/css/components/nestable.css b/media/uikit/css/components/nestable.css new file mode 100644 index 00000000..aa4c6447 --- /dev/null +++ b/media/uikit/css/components/nestable.css @@ -0,0 +1,132 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Nestable + ========================================================================== */ +.uk-nestable { + padding: 0; + list-style: none; +} +/* + * Disables the default callout shown when you touch and hold a touch target + * Currently only works in Webkit + */ +.uk-nestable a, +.uk-nestable img { + -webkit-touch-callout: none; +} +/* Sub-object `uk-nestable-list` + ========================================================================== */ +.uk-nestable-list { + margin: 0; + padding-left: 40px; + list-style: none; +} +/* Sub-modifier `uk-nestable-item` + ========================================================================== */ +/* + * 1. Deactivate browser touch actions in IE11 + */ +.uk-nestable-item { + /* 1 */ + touch-action: none; +} +.uk-nestable-item + .uk-nestable-item { + margin-top: 10px; +} +.uk-nestable-list:not(.uk-nestable-dragged) > .uk-nestable-item:first-child { + margin-top: 10px; +} +/* Sub-modifier `uk-nestable-dragged` + ========================================================================== */ +/* + * 1. Reset style + */ +.uk-nestable-dragged { + position: absolute; + z-index: 1050; + pointer-events: none; + /* 1 */ + padding-left: 0; +} +/* Sub-modifier `uk-nestable-placeholder` + ========================================================================== */ +.uk-nestable-placeholder { + position: relative; +} +.uk-nestable-placeholder > * { + opacity: 0; +} +.uk-nestable-placeholder:after { + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + border: 1px dashed #dddddd; + opacity: 1; +} +/* Empty List + ========================================================================== */ +.uk-nestable:empty { + min-height: 30px; +} +/* Sub-object `uk-nestable-handle` + ========================================================================== */ +/* + * Deactivate browser touch actions in IE11 + */ +.uk-nestable-handle { + touch-action: none; +} +/* Hover */ +.uk-nestable-handle:hover { + cursor: move; +} +/* Sub-object `uk-nestable-moving` + ========================================================================== */ +.uk-nestable-moving, +.uk-nestable-moving * { + cursor: move; +} +/* [data-nestable-action='toggle'] + ========================================================================== */ +/* + * 1. Makes text unselectable. Happens if double clicked by mistake + */ +[data-nestable-action='toggle'] { + cursor: pointer; + /* 1 */ + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; +} +/* Sub-object `.uk-nestable-toggle` + ========================================================================== */ +.uk-nestable-toggle { + display: inline-block; + visibility: hidden; +} +.uk-nestable-toggle:after { + content: "\f147"; + font-family: FontAwesome; +} +.uk-parent > :not(.uk-nestable-list) .uk-nestable-toggle { + visibility: visible; +} +/* + * Collapsed + */ +.uk-collapsed .uk-nestable-list { + display: none; +} +.uk-collapsed .uk-nestable-toggle:after { + content: "\f196"; +} +/* Sub-object `uk-nestable-panel` + ========================================================================== */ +.uk-nestable-panel { + padding: 5px; + background: #f5f5f5; +} diff --git a/media/uikit/css/components/nestable.gradient.css b/media/uikit/css/components/nestable.gradient.css new file mode 100644 index 00000000..26c50604 --- /dev/null +++ b/media/uikit/css/components/nestable.gradient.css @@ -0,0 +1,139 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Nestable + ========================================================================== */ +.uk-nestable { + padding: 0; + list-style: none; +} +/* + * Disables the default callout shown when you touch and hold a touch target + * Currently only works in Webkit + */ +.uk-nestable a, +.uk-nestable img { + -webkit-touch-callout: none; +} +/* Sub-object `uk-nestable-list` + ========================================================================== */ +.uk-nestable-list { + margin: 0; + padding-left: 40px; + list-style: none; +} +/* Sub-modifier `uk-nestable-item` + ========================================================================== */ +/* + * 1. Deactivate browser touch actions in IE11 + */ +.uk-nestable-item { + /* 1 */ + touch-action: none; +} +.uk-nestable-item + .uk-nestable-item { + margin-top: 10px; +} +.uk-nestable-list:not(.uk-nestable-dragged) > .uk-nestable-item:first-child { + margin-top: 10px; +} +/* Sub-modifier `uk-nestable-dragged` + ========================================================================== */ +/* + * 1. Reset style + */ +.uk-nestable-dragged { + position: absolute; + z-index: 1050; + pointer-events: none; + /* 1 */ + padding-left: 0; +} +/* Sub-modifier `uk-nestable-placeholder` + ========================================================================== */ +.uk-nestable-placeholder { + position: relative; +} +.uk-nestable-placeholder > * { + opacity: 0; +} +.uk-nestable-placeholder:after { + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + border: 1px dashed #dddddd; + opacity: 1; +} +/* Empty List + ========================================================================== */ +.uk-nestable:empty { + min-height: 30px; +} +/* Sub-object `uk-nestable-handle` + ========================================================================== */ +/* + * Deactivate browser touch actions in IE11 + */ +.uk-nestable-handle { + touch-action: none; +} +/* Hover */ +.uk-nestable-handle:hover { + cursor: move; +} +/* Sub-object `uk-nestable-moving` + ========================================================================== */ +.uk-nestable-moving, +.uk-nestable-moving * { + cursor: move; +} +/* [data-nestable-action='toggle'] + ========================================================================== */ +/* + * 1. Makes text unselectable. Happens if double clicked by mistake + */ +[data-nestable-action='toggle'] { + cursor: pointer; + /* 1 */ + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; +} +/* Sub-object `.uk-nestable-toggle` + ========================================================================== */ +.uk-nestable-toggle { + display: inline-block; + visibility: hidden; +} +.uk-nestable-toggle:after { + content: "\f147"; + font-family: FontAwesome; +} +.uk-parent > :not(.uk-nestable-list) .uk-nestable-toggle { + visibility: visible; +} +/* + * Collapsed + */ +.uk-collapsed .uk-nestable-list { + display: none; +} +.uk-collapsed .uk-nestable-toggle:after { + content: "\f196"; +} +/* Sub-object `uk-nestable-panel` + ========================================================================== */ +.uk-nestable-panel { + padding: 5px; + background: #f7f7f7; + border-radius: 4px; + border: 1px solid rgba(0, 0, 0, 0.2); + border-bottom-color: rgba(0, 0, 0, 0.3); + background-origin: border-box; + background-image: -webkit-linear-gradient(top, #ffffff, #eeeeee); + background-image: linear-gradient(to bottom, #ffffff, #eeeeee); + text-shadow: 0 1px 0 #ffffff; +} diff --git a/media/uikit/css/components/nestable.gradient.min.css b/media/uikit/css/components/nestable.gradient.min.css new file mode 100644 index 00000000..58a8f715 --- /dev/null +++ b/media/uikit/css/components/nestable.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-nestable{padding:0;list-style:none}.uk-nestable a,.uk-nestable img{-webkit-touch-callout:none}.uk-nestable-list{margin:0;padding-left:40px;list-style:none}.uk-nestable-item{touch-action:none}.uk-nestable-item+.uk-nestable-item{margin-top:10px}.uk-nestable-list:not(.uk-nestable-dragged)>.uk-nestable-item:first-child{margin-top:10px}.uk-nestable-dragged{position:absolute;z-index:1050;pointer-events:none;padding-left:0}.uk-nestable-placeholder{position:relative}.uk-nestable-placeholder>*{opacity:0}.uk-nestable-placeholder:after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border:1px dashed #ddd;opacity:1}.uk-nestable:empty{min-height:30px}.uk-nestable-handle{touch-action:none}.uk-nestable-handle:hover{cursor:move}.uk-nestable-moving,.uk-nestable-moving *{cursor:move}[data-nestable-action=toggle]{cursor:pointer;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.uk-nestable-toggle{display:inline-block;visibility:hidden}.uk-nestable-toggle:after{content:"\f147";font-family:FontAwesome}.uk-parent>:not(.uk-nestable-list) .uk-nestable-toggle{visibility:visible}.uk-collapsed .uk-nestable-list{display:none}.uk-collapsed .uk-nestable-toggle:after{content:"\f196"}.uk-nestable-panel{padding:5px;background:#f7f7f7;border-radius:4px;border:1px solid rgba(0,0,0,.2);border-bottom-color:rgba(0,0,0,.3);background-origin:border-box;background-image:-webkit-linear-gradient(top,#fff,#eee);background-image:linear-gradient(to bottom,#fff,#eee);text-shadow:0 1px 0 #fff} \ No newline at end of file diff --git a/media/uikit/css/components/nestable.min.css b/media/uikit/css/components/nestable.min.css new file mode 100644 index 00000000..94941fbe --- /dev/null +++ b/media/uikit/css/components/nestable.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-nestable{padding:0;list-style:none}.uk-nestable a,.uk-nestable img{-webkit-touch-callout:none}.uk-nestable-list{margin:0;padding-left:40px;list-style:none}.uk-nestable-item{touch-action:none}.uk-nestable-item+.uk-nestable-item{margin-top:10px}.uk-nestable-list:not(.uk-nestable-dragged)>.uk-nestable-item:first-child{margin-top:10px}.uk-nestable-dragged{position:absolute;z-index:1050;pointer-events:none;padding-left:0}.uk-nestable-placeholder{position:relative}.uk-nestable-placeholder>*{opacity:0}.uk-nestable-placeholder:after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border:1px dashed #ddd;opacity:1}.uk-nestable:empty{min-height:30px}.uk-nestable-handle{touch-action:none}.uk-nestable-handle:hover{cursor:move}.uk-nestable-moving,.uk-nestable-moving *{cursor:move}[data-nestable-action=toggle]{cursor:pointer;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.uk-nestable-toggle{display:inline-block;visibility:hidden}.uk-nestable-toggle:after{content:"\f147";font-family:FontAwesome}.uk-parent>:not(.uk-nestable-list) .uk-nestable-toggle{visibility:visible}.uk-collapsed .uk-nestable-list{display:none}.uk-collapsed .uk-nestable-toggle:after{content:"\f196"}.uk-nestable-panel{padding:5px;background:#f5f5f5} \ No newline at end of file diff --git a/media/uikit/css/components/notify.almost-flat.css b/media/uikit/css/components/notify.almost-flat.css new file mode 100644 index 00000000..64211194 --- /dev/null +++ b/media/uikit/css/components/notify.almost-flat.css @@ -0,0 +1,99 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Notify + ========================================================================== */ +/* + * Message container for positioning + */ +.uk-notify { + position: fixed; + top: 10px; + left: 10px; + z-index: 1040; + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 350px; +} +/* Position modifiers +========================================================================== */ +.uk-notify-top-right, +.uk-notify-bottom-right { + left: auto; + right: 10px; +} +.uk-notify-top-center, +.uk-notify-bottom-center { + left: 50%; + margin-left: -175px; +} +.uk-notify-bottom-left, +.uk-notify-bottom-right, +.uk-notify-bottom-center { + top: auto; + bottom: 10px; +} +/* Responsiveness +========================================================================== */ +/* Phones portrait and smaller */ +@media (max-width: 479px) { + /* + * Fit in small screen + */ + .uk-notify { + left: 10px; + right: 10px; + width: auto; + margin: 0; + } +} +/* Sub-object: `uk-notify-message` +========================================================================== */ +.uk-notify-message { + position: relative; + margin-bottom: 10px; + padding: 15px; + background: #444444; + color: #ffffff; + font-size: 16px; + line-height: 22px; + cursor: pointer; + border: 1px solid #444444; + border-radius: 4px; +} +/* Close in notify + ========================================================================== */ +.uk-notify-message > .uk-close { + visibility: hidden; + float: right; +} +.uk-notify-message:hover > .uk-close { + visibility: visible; +} +/* Modifier: `uk-alert-info` + ========================================================================== */ +.uk-notify-message-primary { + background: #ebf7fd; + color: #2d7091; + border-color: rgba(45, 112, 145, 0.3); +} +/* Modifier: `uk-alert-success` + ========================================================================== */ +.uk-notify-message-success { + background: #f2fae3; + color: #659f13; + border-color: rgba(101, 159, 19, 0.3); +} +/* Modifier: `uk-notify-message-warning` + ========================================================================== */ +.uk-notify-message-warning { + background: #fffceb; + color: #e28327; + border-color: rgba(226, 131, 39, 0.3); +} +/* Modifier: `uk-notify-message-danger` + ========================================================================== */ +.uk-notify-message-danger { + background: #fff1f0; + color: #d85030; + border-color: rgba(216, 80, 48, 0.3); +} diff --git a/media/uikit/css/components/notify.almost-flat.min.css b/media/uikit/css/components/notify.almost-flat.min.css new file mode 100644 index 00000000..4d33bb37 --- /dev/null +++ b/media/uikit/css/components/notify.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-notify{position:fixed;top:10px;left:10px;z-index:1040;-moz-box-sizing:border-box;box-sizing:border-box;width:350px}.uk-notify-bottom-right,.uk-notify-top-right{left:auto;right:10px}.uk-notify-bottom-center,.uk-notify-top-center{left:50%;margin-left:-175px}.uk-notify-bottom-center,.uk-notify-bottom-left,.uk-notify-bottom-right{top:auto;bottom:10px}@media (max-width:479px){.uk-notify{left:10px;right:10px;width:auto;margin:0}}.uk-notify-message{position:relative;margin-bottom:10px;padding:15px;background:#444;color:#fff;font-size:16px;line-height:22px;cursor:pointer;border:1px solid #444;border-radius:4px}.uk-notify-message>.uk-close{visibility:hidden;float:right}.uk-notify-message:hover>.uk-close{visibility:visible}.uk-notify-message-primary{background:#ebf7fd;color:#2d7091;border-color:rgba(45,112,145,.3)}.uk-notify-message-success{background:#f2fae3;color:#659f13;border-color:rgba(101,159,19,.3)}.uk-notify-message-warning{background:#fffceb;color:#e28327;border-color:rgba(226,131,39,.3)}.uk-notify-message-danger{background:#fff1f0;color:#d85030;border-color:rgba(216,80,48,.3)} \ No newline at end of file diff --git a/media/uikit/css/components/notify.css b/media/uikit/css/components/notify.css new file mode 100644 index 00000000..42d7bce2 --- /dev/null +++ b/media/uikit/css/components/notify.css @@ -0,0 +1,93 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Notify + ========================================================================== */ +/* + * Message container for positioning + */ +.uk-notify { + position: fixed; + top: 10px; + left: 10px; + z-index: 1040; + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 350px; +} +/* Position modifiers +========================================================================== */ +.uk-notify-top-right, +.uk-notify-bottom-right { + left: auto; + right: 10px; +} +.uk-notify-top-center, +.uk-notify-bottom-center { + left: 50%; + margin-left: -175px; +} +.uk-notify-bottom-left, +.uk-notify-bottom-right, +.uk-notify-bottom-center { + top: auto; + bottom: 10px; +} +/* Responsiveness +========================================================================== */ +/* Phones portrait and smaller */ +@media (max-width: 479px) { + /* + * Fit in small screen + */ + .uk-notify { + left: 10px; + right: 10px; + width: auto; + margin: 0; + } +} +/* Sub-object: `uk-notify-message` +========================================================================== */ +.uk-notify-message { + position: relative; + margin-bottom: 10px; + padding: 15px; + background: #444444; + color: #ffffff; + font-size: 16px; + line-height: 22px; + cursor: pointer; +} +/* Close in notify + ========================================================================== */ +.uk-notify-message > .uk-close { + visibility: hidden; + float: right; +} +.uk-notify-message:hover > .uk-close { + visibility: visible; +} +/* Modifier: `uk-alert-info` + ========================================================================== */ +.uk-notify-message-primary { + background: #ebf7fd; + color: #2d7091; +} +/* Modifier: `uk-alert-success` + ========================================================================== */ +.uk-notify-message-success { + background: #f2fae3; + color: #659f13; +} +/* Modifier: `uk-notify-message-warning` + ========================================================================== */ +.uk-notify-message-warning { + background: #fffceb; + color: #e28327; +} +/* Modifier: `uk-notify-message-danger` + ========================================================================== */ +.uk-notify-message-danger { + background: #fff1f0; + color: #d85030; +} diff --git a/media/uikit/css/components/notify.gradient.css b/media/uikit/css/components/notify.gradient.css new file mode 100644 index 00000000..64211194 --- /dev/null +++ b/media/uikit/css/components/notify.gradient.css @@ -0,0 +1,99 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Notify + ========================================================================== */ +/* + * Message container for positioning + */ +.uk-notify { + position: fixed; + top: 10px; + left: 10px; + z-index: 1040; + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 350px; +} +/* Position modifiers +========================================================================== */ +.uk-notify-top-right, +.uk-notify-bottom-right { + left: auto; + right: 10px; +} +.uk-notify-top-center, +.uk-notify-bottom-center { + left: 50%; + margin-left: -175px; +} +.uk-notify-bottom-left, +.uk-notify-bottom-right, +.uk-notify-bottom-center { + top: auto; + bottom: 10px; +} +/* Responsiveness +========================================================================== */ +/* Phones portrait and smaller */ +@media (max-width: 479px) { + /* + * Fit in small screen + */ + .uk-notify { + left: 10px; + right: 10px; + width: auto; + margin: 0; + } +} +/* Sub-object: `uk-notify-message` +========================================================================== */ +.uk-notify-message { + position: relative; + margin-bottom: 10px; + padding: 15px; + background: #444444; + color: #ffffff; + font-size: 16px; + line-height: 22px; + cursor: pointer; + border: 1px solid #444444; + border-radius: 4px; +} +/* Close in notify + ========================================================================== */ +.uk-notify-message > .uk-close { + visibility: hidden; + float: right; +} +.uk-notify-message:hover > .uk-close { + visibility: visible; +} +/* Modifier: `uk-alert-info` + ========================================================================== */ +.uk-notify-message-primary { + background: #ebf7fd; + color: #2d7091; + border-color: rgba(45, 112, 145, 0.3); +} +/* Modifier: `uk-alert-success` + ========================================================================== */ +.uk-notify-message-success { + background: #f2fae3; + color: #659f13; + border-color: rgba(101, 159, 19, 0.3); +} +/* Modifier: `uk-notify-message-warning` + ========================================================================== */ +.uk-notify-message-warning { + background: #fffceb; + color: #e28327; + border-color: rgba(226, 131, 39, 0.3); +} +/* Modifier: `uk-notify-message-danger` + ========================================================================== */ +.uk-notify-message-danger { + background: #fff1f0; + color: #d85030; + border-color: rgba(216, 80, 48, 0.3); +} diff --git a/media/uikit/css/components/notify.gradient.min.css b/media/uikit/css/components/notify.gradient.min.css new file mode 100644 index 00000000..4d33bb37 --- /dev/null +++ b/media/uikit/css/components/notify.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-notify{position:fixed;top:10px;left:10px;z-index:1040;-moz-box-sizing:border-box;box-sizing:border-box;width:350px}.uk-notify-bottom-right,.uk-notify-top-right{left:auto;right:10px}.uk-notify-bottom-center,.uk-notify-top-center{left:50%;margin-left:-175px}.uk-notify-bottom-center,.uk-notify-bottom-left,.uk-notify-bottom-right{top:auto;bottom:10px}@media (max-width:479px){.uk-notify{left:10px;right:10px;width:auto;margin:0}}.uk-notify-message{position:relative;margin-bottom:10px;padding:15px;background:#444;color:#fff;font-size:16px;line-height:22px;cursor:pointer;border:1px solid #444;border-radius:4px}.uk-notify-message>.uk-close{visibility:hidden;float:right}.uk-notify-message:hover>.uk-close{visibility:visible}.uk-notify-message-primary{background:#ebf7fd;color:#2d7091;border-color:rgba(45,112,145,.3)}.uk-notify-message-success{background:#f2fae3;color:#659f13;border-color:rgba(101,159,19,.3)}.uk-notify-message-warning{background:#fffceb;color:#e28327;border-color:rgba(226,131,39,.3)}.uk-notify-message-danger{background:#fff1f0;color:#d85030;border-color:rgba(216,80,48,.3)} \ No newline at end of file diff --git a/media/uikit/css/components/notify.min.css b/media/uikit/css/components/notify.min.css new file mode 100644 index 00000000..3aa6b89a --- /dev/null +++ b/media/uikit/css/components/notify.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-notify{position:fixed;top:10px;left:10px;z-index:1040;-moz-box-sizing:border-box;box-sizing:border-box;width:350px}.uk-notify-bottom-right,.uk-notify-top-right{left:auto;right:10px}.uk-notify-bottom-center,.uk-notify-top-center{left:50%;margin-left:-175px}.uk-notify-bottom-center,.uk-notify-bottom-left,.uk-notify-bottom-right{top:auto;bottom:10px}@media (max-width:479px){.uk-notify{left:10px;right:10px;width:auto;margin:0}}.uk-notify-message{position:relative;margin-bottom:10px;padding:15px;background:#444;color:#fff;font-size:16px;line-height:22px;cursor:pointer}.uk-notify-message>.uk-close{visibility:hidden;float:right}.uk-notify-message:hover>.uk-close{visibility:visible}.uk-notify-message-primary{background:#ebf7fd;color:#2d7091}.uk-notify-message-success{background:#f2fae3;color:#659f13}.uk-notify-message-warning{background:#fffceb;color:#e28327}.uk-notify-message-danger{background:#fff1f0;color:#d85030} \ No newline at end of file diff --git a/media/uikit/css/components/placeholder.almost-flat.css b/media/uikit/css/components/placeholder.almost-flat.css new file mode 100644 index 00000000..7b72cfe5 --- /dev/null +++ b/media/uikit/css/components/placeholder.almost-flat.css @@ -0,0 +1,29 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Placeholder + ========================================================================== */ +.uk-placeholder { + margin-bottom: 15px; + padding: 20px; + border: 1px dashed #dddddd; + background: #fafafa; + color: #444444; +} +/* + * Add margin if adjacent element + */ +* + .uk-placeholder { + margin-top: 15px; +} +/* + * Remove margin from the last-child + */ +.uk-placeholder > :last-child { + margin-bottom: 0; +} +/* Modifier: `uk-placeholder-large` + ========================================================================== */ +.uk-placeholder-large { + padding-top: 80px; + padding-bottom: 80px; +} diff --git a/media/uikit/css/components/placeholder.almost-flat.min.css b/media/uikit/css/components/placeholder.almost-flat.min.css new file mode 100644 index 00000000..ba4b565e --- /dev/null +++ b/media/uikit/css/components/placeholder.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-placeholder{margin-bottom:15px;padding:20px;border:1px dashed #ddd;background:#fafafa;color:#444}*+.uk-placeholder{margin-top:15px}.uk-placeholder>:last-child{margin-bottom:0}.uk-placeholder-large{padding-top:80px;padding-bottom:80px} \ No newline at end of file diff --git a/media/uikit/css/components/placeholder.css b/media/uikit/css/components/placeholder.css new file mode 100644 index 00000000..7b72cfe5 --- /dev/null +++ b/media/uikit/css/components/placeholder.css @@ -0,0 +1,29 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Placeholder + ========================================================================== */ +.uk-placeholder { + margin-bottom: 15px; + padding: 20px; + border: 1px dashed #dddddd; + background: #fafafa; + color: #444444; +} +/* + * Add margin if adjacent element + */ +* + .uk-placeholder { + margin-top: 15px; +} +/* + * Remove margin from the last-child + */ +.uk-placeholder > :last-child { + margin-bottom: 0; +} +/* Modifier: `uk-placeholder-large` + ========================================================================== */ +.uk-placeholder-large { + padding-top: 80px; + padding-bottom: 80px; +} diff --git a/media/uikit/css/components/placeholder.gradient.css b/media/uikit/css/components/placeholder.gradient.css new file mode 100644 index 00000000..7b72cfe5 --- /dev/null +++ b/media/uikit/css/components/placeholder.gradient.css @@ -0,0 +1,29 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Placeholder + ========================================================================== */ +.uk-placeholder { + margin-bottom: 15px; + padding: 20px; + border: 1px dashed #dddddd; + background: #fafafa; + color: #444444; +} +/* + * Add margin if adjacent element + */ +* + .uk-placeholder { + margin-top: 15px; +} +/* + * Remove margin from the last-child + */ +.uk-placeholder > :last-child { + margin-bottom: 0; +} +/* Modifier: `uk-placeholder-large` + ========================================================================== */ +.uk-placeholder-large { + padding-top: 80px; + padding-bottom: 80px; +} diff --git a/media/uikit/css/components/placeholder.gradient.min.css b/media/uikit/css/components/placeholder.gradient.min.css new file mode 100644 index 00000000..ba4b565e --- /dev/null +++ b/media/uikit/css/components/placeholder.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-placeholder{margin-bottom:15px;padding:20px;border:1px dashed #ddd;background:#fafafa;color:#444}*+.uk-placeholder{margin-top:15px}.uk-placeholder>:last-child{margin-bottom:0}.uk-placeholder-large{padding-top:80px;padding-bottom:80px} \ No newline at end of file diff --git a/media/uikit/css/components/placeholder.min.css b/media/uikit/css/components/placeholder.min.css new file mode 100644 index 00000000..ba4b565e --- /dev/null +++ b/media/uikit/css/components/placeholder.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-placeholder{margin-bottom:15px;padding:20px;border:1px dashed #ddd;background:#fafafa;color:#444}*+.uk-placeholder{margin-top:15px}.uk-placeholder>:last-child{margin-bottom:0}.uk-placeholder-large{padding-top:80px;padding-bottom:80px} \ No newline at end of file diff --git a/media/uikit/css/components/progress.almost-flat.css b/media/uikit/css/components/progress.almost-flat.css new file mode 100644 index 00000000..baf0e683 --- /dev/null +++ b/media/uikit/css/components/progress.almost-flat.css @@ -0,0 +1,105 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Progress + ========================================================================== */ +/* + * 1. Clearing + * 2. Vertical alignment if text is used + */ +.uk-progress { + -moz-box-sizing: border-box; + box-sizing: border-box; + height: 20px; + margin-bottom: 15px; + background: #f5f5f5; + /* 1 */ + overflow: hidden; + /* 2 */ + line-height: 20px; + box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); + border-radius: 4px; +} +/* + * Add margin if adjacent element + */ +* + .uk-progress { + margin-top: 15px; +} +/* Sub-object: `uk-progress-bar` + ========================================================================== */ +/* + * 1. Transition + * 2. Needed for text + */ +.uk-progress-bar { + width: 0; + height: 100%; + background: #00a8e6; + float: left; + /* 1 */ + -webkit-transition: width 0.6s ease; + transition: width 0.6s ease; + /* 2 */ + font-size: 12px; + color: #ffffff; + text-align: center; + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1); +} +/* Size modifiers + ========================================================================== */ +/* Mini */ +.uk-progress-mini { + height: 6px; +} +/* Small */ +.uk-progress-small { + height: 12px; +} +/* Color modifiers + ========================================================================== */ +.uk-progress-success .uk-progress-bar { + background-color: #8cc14c; +} +.uk-progress-warning .uk-progress-bar { + background-color: #faa732; +} +.uk-progress-danger .uk-progress-bar { + background-color: #da314b; +} +/* Modifier: `uk-progress-striped` + ========================================================================== */ +.uk-progress-striped .uk-progress-bar { + 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: 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: 30px 30px; +} +/* + * Animation + */ +.uk-progress-striped.uk-active .uk-progress-bar { + -webkit-animation: uk-progress-bar-stripes 2s linear infinite; + animation: uk-progress-bar-stripes 2s linear infinite; +} +@-webkit-keyframes uk-progress-bar-stripes { + 0% { + background-position: 0 0; + } + 100% { + background-position: 30px 0; + } +} +@keyframes uk-progress-bar-stripes { + 0% { + background-position: 0 0; + } + 100% { + background-position: 30px 0; + } +} +/* Size modifiers + ========================================================================== */ +.uk-progress-mini, +.uk-progress-small { + border-radius: 500px; +} diff --git a/media/uikit/css/components/progress.almost-flat.min.css b/media/uikit/css/components/progress.almost-flat.min.css new file mode 100644 index 00000000..33b06049 --- /dev/null +++ b/media/uikit/css/components/progress.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-progress{-moz-box-sizing:border-box;box-sizing:border-box;height:20px;margin-bottom:15px;background:#f5f5f5;overflow:hidden;line-height:20px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);border-radius:4px}*+.uk-progress{margin-top:15px}.uk-progress-bar{width:0;height:100%;background:#00a8e6;float:left;-webkit-transition:width .6s ease;transition:width .6s ease;font-size:12px;color:#fff;text-align:center;box-shadow:inset 0 0 5px rgba(0,0,0,.05);text-shadow:0 -1px 0 rgba(0,0,0,.1)}.uk-progress-mini{height:6px}.uk-progress-small{height:12px}.uk-progress-success .uk-progress-bar{background-color:#8cc14c}.uk-progress-warning .uk-progress-bar{background-color:#faa732}.uk-progress-danger .uk-progress-bar{background-color:#da314b}.uk-progress-striped .uk-progress-bar{background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:30px 30px}.uk-progress-striped.uk-active .uk-progress-bar{-webkit-animation:uk-progress-bar-stripes 2s linear infinite;animation:uk-progress-bar-stripes 2s linear infinite}@-webkit-keyframes uk-progress-bar-stripes{0%{background-position:0 0}100%{background-position:30px 0}}@keyframes uk-progress-bar-stripes{0%{background-position:0 0}100%{background-position:30px 0}}.uk-progress-mini,.uk-progress-small{border-radius:500px} \ No newline at end of file diff --git a/media/uikit/css/components/progress.css b/media/uikit/css/components/progress.css new file mode 100644 index 00000000..8ae61e53 --- /dev/null +++ b/media/uikit/css/components/progress.css @@ -0,0 +1,95 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Progress + ========================================================================== */ +/* + * 1. Clearing + * 2. Vertical alignment if text is used + */ +.uk-progress { + -moz-box-sizing: border-box; + box-sizing: border-box; + height: 20px; + margin-bottom: 15px; + background: #eeeeee; + /* 1 */ + overflow: hidden; + /* 2 */ + line-height: 20px; +} +/* + * Add margin if adjacent element + */ +* + .uk-progress { + margin-top: 15px; +} +/* Sub-object: `uk-progress-bar` + ========================================================================== */ +/* + * 1. Transition + * 2. Needed for text + */ +.uk-progress-bar { + width: 0; + height: 100%; + background: #00a8e6; + float: left; + /* 1 */ + -webkit-transition: width 0.6s ease; + transition: width 0.6s ease; + /* 2 */ + font-size: 12px; + color: #ffffff; + text-align: center; +} +/* Size modifiers + ========================================================================== */ +/* Mini */ +.uk-progress-mini { + height: 6px; +} +/* Small */ +.uk-progress-small { + height: 12px; +} +/* Color modifiers + ========================================================================== */ +.uk-progress-success .uk-progress-bar { + background-color: #8cc14c; +} +.uk-progress-warning .uk-progress-bar { + background-color: #faa732; +} +.uk-progress-danger .uk-progress-bar { + background-color: #da314b; +} +/* Modifier: `uk-progress-striped` + ========================================================================== */ +.uk-progress-striped .uk-progress-bar { + 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: 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: 30px 30px; +} +/* + * Animation + */ +.uk-progress-striped.uk-active .uk-progress-bar { + -webkit-animation: uk-progress-bar-stripes 2s linear infinite; + animation: uk-progress-bar-stripes 2s linear infinite; +} +@-webkit-keyframes uk-progress-bar-stripes { + 0% { + background-position: 0 0; + } + 100% { + background-position: 30px 0; + } +} +@keyframes uk-progress-bar-stripes { + 0% { + background-position: 0 0; + } + 100% { + background-position: 30px 0; + } +} diff --git a/media/uikit/css/components/progress.gradient.css b/media/uikit/css/components/progress.gradient.css new file mode 100644 index 00000000..452d8f21 --- /dev/null +++ b/media/uikit/css/components/progress.gradient.css @@ -0,0 +1,113 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Progress + ========================================================================== */ +/* + * 1. Clearing + * 2. Vertical alignment if text is used + */ +.uk-progress { + -moz-box-sizing: border-box; + box-sizing: border-box; + height: 20px; + margin-bottom: 15px; + background: #f7f7f7; + /* 1 */ + overflow: hidden; + /* 2 */ + line-height: 20px; + box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07), inset 0 2px 2px rgba(0, 0, 0, 0.07); + border-radius: 4px; +} +/* + * Add margin if adjacent element + */ +* + .uk-progress { + margin-top: 15px; +} +/* Sub-object: `uk-progress-bar` + ========================================================================== */ +/* + * 1. Transition + * 2. Needed for text + */ +.uk-progress-bar { + width: 0; + height: 100%; + background: #009dd8; + float: left; + /* 1 */ + -webkit-transition: width 0.6s ease; + transition: width 0.6s ease; + /* 2 */ + font-size: 12px; + color: #ffffff; + text-align: center; + background-image: -webkit-linear-gradient(top, #00b4f5, #008dc5); + background-image: linear-gradient(to bottom, #00b4f5, #008dc5); + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.1); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); +} +/* Size modifiers + ========================================================================== */ +/* Mini */ +.uk-progress-mini { + height: 6px; +} +/* Small */ +.uk-progress-small { + height: 12px; +} +/* Color modifiers + ========================================================================== */ +.uk-progress-success .uk-progress-bar { + background-color: #82bb42; + background-image: -webkit-linear-gradient(top, #9fd256, #6fac34); + background-image: linear-gradient(to bottom, #9fd256, #6fac34); +} +.uk-progress-warning .uk-progress-bar { + background-color: #f9a124; + background-image: -webkit-linear-gradient(top, #fbb450, #f89406); + background-image: linear-gradient(to bottom, #fbb450, #f89406); +} +.uk-progress-danger .uk-progress-bar { + background-color: #d32c46; + background-image: -webkit-linear-gradient(top, #ee465a, #c11a39); + background-image: linear-gradient(to bottom, #ee465a, #c11a39); +} +/* Modifier: `uk-progress-striped` + ========================================================================== */ +.uk-progress-striped .uk-progress-bar { + 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: 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: 30px 30px; +} +/* + * Animation + */ +.uk-progress-striped.uk-active .uk-progress-bar { + -webkit-animation: uk-progress-bar-stripes 2s linear infinite; + animation: uk-progress-bar-stripes 2s linear infinite; +} +@-webkit-keyframes uk-progress-bar-stripes { + 0% { + background-position: 0 0; + } + 100% { + background-position: 30px 0; + } +} +@keyframes uk-progress-bar-stripes { + 0% { + background-position: 0 0; + } + 100% { + background-position: 30px 0; + } +} +/* Size modifiers + ========================================================================== */ +.uk-progress-mini, +.uk-progress-small { + border-radius: 500px; +} diff --git a/media/uikit/css/components/progress.gradient.min.css b/media/uikit/css/components/progress.gradient.min.css new file mode 100644 index 00000000..39137190 --- /dev/null +++ b/media/uikit/css/components/progress.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-progress{-moz-box-sizing:border-box;box-sizing:border-box;height:20px;margin-bottom:15px;background:#f7f7f7;overflow:hidden;line-height:20px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.07),inset 0 2px 2px rgba(0,0,0,.07);border-radius:4px}*+.uk-progress{margin-top:15px}.uk-progress-bar{width:0;height:100%;background:#009dd8;float:left;-webkit-transition:width .6s ease;transition:width .6s ease;font-size:12px;color:#fff;text-align:center;background-image:-webkit-linear-gradient(top,#00b4f5,#008dc5);background-image:linear-gradient(to bottom,#00b4f5,#008dc5);box-shadow:inset 0 -1px 0 rgba(0,0,0,.2),inset 0 0 0 1px rgba(0,0,0,.1);text-shadow:0 -1px 0 rgba(0,0,0,.2)}.uk-progress-mini{height:6px}.uk-progress-small{height:12px}.uk-progress-success .uk-progress-bar{background-color:#82bb42;background-image:-webkit-linear-gradient(top,#9fd256,#6fac34);background-image:linear-gradient(to bottom,#9fd256,#6fac34)}.uk-progress-warning .uk-progress-bar{background-color:#f9a124;background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406)}.uk-progress-danger .uk-progress-bar{background-color:#d32c46;background-image:-webkit-linear-gradient(top,#ee465a,#c11a39);background-image:linear-gradient(to bottom,#ee465a,#c11a39)}.uk-progress-striped .uk-progress-bar{background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:30px 30px}.uk-progress-striped.uk-active .uk-progress-bar{-webkit-animation:uk-progress-bar-stripes 2s linear infinite;animation:uk-progress-bar-stripes 2s linear infinite}@-webkit-keyframes uk-progress-bar-stripes{0%{background-position:0 0}100%{background-position:30px 0}}@keyframes uk-progress-bar-stripes{0%{background-position:0 0}100%{background-position:30px 0}}.uk-progress-mini,.uk-progress-small{border-radius:500px} \ No newline at end of file diff --git a/media/uikit/css/components/progress.min.css b/media/uikit/css/components/progress.min.css new file mode 100644 index 00000000..fec2675a --- /dev/null +++ b/media/uikit/css/components/progress.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-progress{-moz-box-sizing:border-box;box-sizing:border-box;height:20px;margin-bottom:15px;background:#eee;overflow:hidden;line-height:20px}*+.uk-progress{margin-top:15px}.uk-progress-bar{width:0;height:100%;background:#00a8e6;float:left;-webkit-transition:width .6s ease;transition:width .6s ease;font-size:12px;color:#fff;text-align:center}.uk-progress-mini{height:6px}.uk-progress-small{height:12px}.uk-progress-success .uk-progress-bar{background-color:#8cc14c}.uk-progress-warning .uk-progress-bar{background-color:#faa732}.uk-progress-danger .uk-progress-bar{background-color:#da314b}.uk-progress-striped .uk-progress-bar{background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:30px 30px}.uk-progress-striped.uk-active .uk-progress-bar{-webkit-animation:uk-progress-bar-stripes 2s linear infinite;animation:uk-progress-bar-stripes 2s linear infinite}@-webkit-keyframes uk-progress-bar-stripes{0%{background-position:0 0}100%{background-position:30px 0}}@keyframes uk-progress-bar-stripes{0%{background-position:0 0}100%{background-position:30px 0}} \ No newline at end of file diff --git a/media/uikit/css/components/search.almost-flat.css b/media/uikit/css/components/search.almost-flat.css new file mode 100644 index 00000000..513289bf --- /dev/null +++ b/media/uikit/css/components/search.almost-flat.css @@ -0,0 +1,192 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Search + ========================================================================== */ +/* + * 1. Create position context for dropdowns + * 2. Needed for `form` element + */ +.uk-search { + display: inline-block; + /* 1 */ + position: relative; + /* 2 */ + margin: 0; +} +/* + * Icon + */ +.uk-search:before { + content: "\f002"; + position: absolute; + top: 0; + left: 0; + width: 30px; + line-height: 30px; + text-align: center; + font-family: FontAwesome; + font-size: 14px; + color: rgba(0, 0, 0, 0.2); +} +/* Sub-object `uk-search-field` + ========================================================================== */ +/* + * Removes inner padding and border in Firefox 4+. + */ +.uk-search-field::-moz-focus-inner { + border: 0; + padding: 0; +} +/* + * Remove inner padding and search cancel button in Chrome, Safari and Opera on OS X. + */ +.uk-search-field::-webkit-search-cancel-button, +.uk-search-field::-webkit-search-decoration { + -webkit-appearance: none; +} +/* + * Removes cancel button in IE10 + */ +.uk-search-field::-ms-clear { + display: none; +} +/* + * Removes placeholder transparency in Firefox. + */ +.uk-search-field::-moz-placeholder { + opacity: 1; +} +/* + * 1. Define consistent box sizing. + * 2. Address margins set differently in Firefox/IE and Chrome/Safari/Opera. + * 3. Remove `border-radius` in iOS. + * 4. Correct `font` properties and `color` not being inherited. + * 5. Remove default style in iOS. + * 6. Style + */ +.uk-search-field { + /* 1 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 2 */ + margin: 0; + /* 3 */ + border-radius: 0; + /* 4 */ + font: inherit; + color: #444444; + /* 5 */ + -webkit-appearance: none; + /* 6 */ + width: 120px; + height: 30px; + padding: 0 0 0 30px; + border: 1px solid rgba(0, 0, 0, 0); + background: rgba(0, 0, 0, 0); + -webkit-transition: all linear 0.2s; + transition: all linear 0.2s; + vertical-align: middle; +} +/* Placeholder */ +.uk-search-field:-ms-input-placeholder { + color: #999999 !important; +} +.uk-search-field::-moz-placeholder { + color: #999999; +} +.uk-search-field::-webkit-input-placeholder { + color: #999999; +} +/* Focus */ +.uk-search-field:focus { + outline: 0; +} +/* Focus + Active */ +.uk-search-field:focus, +.uk-search.uk-active .uk-search-field { + width: 180px; +} +/* Dropdown modifier: `uk-dropdown-search` + ========================================================================== */ +.uk-dropdown-search { + width: 300px; + margin-top: 0; + background: #ffffff; + color: #444444; +} +.uk-open > .uk-dropdown-search { + -webkit-animation: uk-slide-top-fixed 0.2s ease-in-out; + animation: uk-slide-top-fixed 0.2s ease-in-out; +} +/* + * Dependency `uk-navbar-flip` + */ +.uk-navbar-flip .uk-dropdown-search { + margin-top: 12px; + margin-right: -16px; +} +/* Nav modifier `uk-nav-search` + ========================================================================== */ +/* + * Items + */ +.uk-nav-search > li > a { + color: #444444; +} +/* + * Active + * 1. Remove default focus style + */ +.uk-nav-search > li.uk-active > a { + background: #00a8e6; + color: #ffffff; + /* 1 */ + outline: none; + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1); +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-search .uk-nav-header { + color: #999999; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-search .uk-nav-divider { + border-top: 1px solid #dddddd; +} +/* + * Nested items + */ +.uk-nav-search ul a { + color: #0077dd; +} +.uk-nav-search ul a:hover { + color: #005599; +} +/* Search in offcanvas + ========================================================================== */ +.uk-offcanvas .uk-search { + display: block; + margin: 20px 15px; +} +.uk-offcanvas .uk-search:before { + color: #777777; +} +.uk-offcanvas .uk-search-field { + width: 100%; + border-color: rgba(0, 0, 0, 0); + background: #1a1a1a; + color: #cccccc; +} +.uk-offcanvas .uk-search-field:-ms-input-placeholder { + color: #777777 !important; +} +.uk-offcanvas .uk-search-field::-moz-placeholder { + color: #777777; +} +.uk-offcanvas .uk-search-field::-webkit-input-placeholder { + color: #777777; +} diff --git a/media/uikit/css/components/search.almost-flat.min.css b/media/uikit/css/components/search.almost-flat.min.css new file mode 100644 index 00000000..bdbc0b78 --- /dev/null +++ b/media/uikit/css/components/search.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-search{display:inline-block;position:relative;margin:0}.uk-search:before{content:"\f002";position:absolute;top:0;left:0;width:30px;line-height:30px;text-align:center;font-family:FontAwesome;font-size:14px;color:rgba(0,0,0,.2)}.uk-search-field::-moz-focus-inner{border:0;padding:0}.uk-search-field::-webkit-search-cancel-button,.uk-search-field::-webkit-search-decoration{-webkit-appearance:none}.uk-search-field::-ms-clear{display:none}.uk-search-field::-moz-placeholder{opacity:1}.uk-search-field{-moz-box-sizing:border-box;box-sizing:border-box;margin:0;border-radius:0;font:inherit;color:#444;-webkit-appearance:none;width:120px;height:30px;padding:0 0 0 30px;border:1px solid transparent;background:transparent;-webkit-transition:all linear .2s;transition:all linear .2s;vertical-align:middle}.uk-search-field:-ms-input-placeholder{color:#999!important}.uk-search-field::-moz-placeholder{color:#999}.uk-search-field::-webkit-input-placeholder{color:#999}.uk-search-field:focus{outline:0}.uk-search-field:focus,.uk-search.uk-active .uk-search-field{width:180px}.uk-dropdown-search{width:300px;margin-top:0;background:#fff;color:#444}.uk-open>.uk-dropdown-search{-webkit-animation:uk-slide-top-fixed .2s ease-in-out;animation:uk-slide-top-fixed .2s ease-in-out}.uk-navbar-flip .uk-dropdown-search{margin-top:12px;margin-right:-16px}.uk-nav-search>li>a{color:#444}.uk-nav-search>li.uk-active>a{background:#00a8e6;color:#fff;outline:0;box-shadow:inset 0 0 5px rgba(0,0,0,.05);text-shadow:0 -1px 0 rgba(0,0,0,.1)}.uk-nav-search .uk-nav-header{color:#999}.uk-nav-search .uk-nav-divider{border-top:1px solid #ddd}.uk-nav-search ul a{color:#07d}.uk-nav-search ul a:hover{color:#059}.uk-offcanvas .uk-search{display:block;margin:20px 15px}.uk-offcanvas .uk-search:before{color:#777}.uk-offcanvas .uk-search-field{width:100%;border-color:transparent;background:#1a1a1a;color:#ccc}.uk-offcanvas .uk-search-field:-ms-input-placeholder{color:#777!important}.uk-offcanvas .uk-search-field::-moz-placeholder{color:#777}.uk-offcanvas .uk-search-field::-webkit-input-placeholder{color:#777} \ No newline at end of file diff --git a/media/uikit/css/components/search.css b/media/uikit/css/components/search.css new file mode 100644 index 00000000..5cb3071c --- /dev/null +++ b/media/uikit/css/components/search.css @@ -0,0 +1,190 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Search + ========================================================================== */ +/* + * 1. Create position context for dropdowns + * 2. Needed for `form` element + */ +.uk-search { + display: inline-block; + /* 1 */ + position: relative; + /* 2 */ + margin: 0; +} +/* + * Icon + */ +.uk-search:before { + content: "\f002"; + position: absolute; + top: 0; + left: 0; + width: 30px; + line-height: 30px; + text-align: center; + font-family: FontAwesome; + font-size: 14px; + color: rgba(0, 0, 0, 0.2); +} +/* Sub-object `uk-search-field` + ========================================================================== */ +/* + * Removes inner padding and border in Firefox 4+. + */ +.uk-search-field::-moz-focus-inner { + border: 0; + padding: 0; +} +/* + * Remove inner padding and search cancel button in Chrome, Safari and Opera on OS X. + */ +.uk-search-field::-webkit-search-cancel-button, +.uk-search-field::-webkit-search-decoration { + -webkit-appearance: none; +} +/* + * Removes cancel button in IE10 + */ +.uk-search-field::-ms-clear { + display: none; +} +/* + * Removes placeholder transparency in Firefox. + */ +.uk-search-field::-moz-placeholder { + opacity: 1; +} +/* + * 1. Define consistent box sizing. + * 2. Address margins set differently in Firefox/IE and Chrome/Safari/Opera. + * 3. Remove `border-radius` in iOS. + * 4. Correct `font` properties and `color` not being inherited. + * 5. Remove default style in iOS. + * 6. Style + */ +.uk-search-field { + /* 1 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 2 */ + margin: 0; + /* 3 */ + border-radius: 0; + /* 4 */ + font: inherit; + color: #444444; + /* 5 */ + -webkit-appearance: none; + /* 6 */ + width: 120px; + height: 30px; + padding: 0 0 0 30px; + border: 1px solid rgba(0, 0, 0, 0); + background: rgba(0, 0, 0, 0); + -webkit-transition: all linear 0.2s; + transition: all linear 0.2s; + vertical-align: middle; +} +/* Placeholder */ +.uk-search-field:-ms-input-placeholder { + color: #999999 !important; +} +.uk-search-field::-moz-placeholder { + color: #999999; +} +.uk-search-field::-webkit-input-placeholder { + color: #999999; +} +/* Focus */ +.uk-search-field:focus { + outline: 0; +} +/* Focus + Active */ +.uk-search-field:focus, +.uk-search.uk-active .uk-search-field { + width: 180px; +} +/* Dropdown modifier: `uk-dropdown-search` + ========================================================================== */ +.uk-dropdown-search { + width: 300px; + margin-top: 0; + background: #f5f5f5; + color: #444444; +} +.uk-open > .uk-dropdown-search { + -webkit-animation: uk-slide-top-fixed 0.2s ease-in-out; + animation: uk-slide-top-fixed 0.2s ease-in-out; +} +/* + * Dependency `uk-navbar-flip` + */ +.uk-navbar-flip .uk-dropdown-search { + margin-top: 5px; + margin-right: -15px; +} +/* Nav modifier `uk-nav-search` + ========================================================================== */ +/* + * Items + */ +.uk-nav-search > li > a { + color: #444444; +} +/* + * Active + * 1. Remove default focus style + */ +.uk-nav-search > li.uk-active > a { + background: #00a8e6; + color: #ffffff; + /* 1 */ + outline: none; +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-search .uk-nav-header { + color: #999999; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-search .uk-nav-divider { + border-top: 1px solid #dddddd; +} +/* + * Nested items + */ +.uk-nav-search ul a { + color: #0077dd; +} +.uk-nav-search ul a:hover { + color: #005599; +} +/* Search in offcanvas + ========================================================================== */ +.uk-offcanvas .uk-search { + display: block; + margin: 20px 15px; +} +.uk-offcanvas .uk-search:before { + color: #777777; +} +.uk-offcanvas .uk-search-field { + width: 100%; + border-color: rgba(0, 0, 0, 0); + background: #1a1a1a; + color: #cccccc; +} +.uk-offcanvas .uk-search-field:-ms-input-placeholder { + color: #777777 !important; +} +.uk-offcanvas .uk-search-field::-moz-placeholder { + color: #777777; +} +.uk-offcanvas .uk-search-field::-webkit-input-placeholder { + color: #777777; +} diff --git a/media/uikit/css/components/search.gradient.css b/media/uikit/css/components/search.gradient.css new file mode 100644 index 00000000..b5853b07 --- /dev/null +++ b/media/uikit/css/components/search.gradient.css @@ -0,0 +1,192 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Search + ========================================================================== */ +/* + * 1. Create position context for dropdowns + * 2. Needed for `form` element + */ +.uk-search { + display: inline-block; + /* 1 */ + position: relative; + /* 2 */ + margin: 0; +} +/* + * Icon + */ +.uk-search:before { + content: "\f002"; + position: absolute; + top: 0; + left: 0; + width: 30px; + line-height: 30px; + text-align: center; + font-family: FontAwesome; + font-size: 14px; + color: rgba(0, 0, 0, 0.2); +} +/* Sub-object `uk-search-field` + ========================================================================== */ +/* + * Removes inner padding and border in Firefox 4+. + */ +.uk-search-field::-moz-focus-inner { + border: 0; + padding: 0; +} +/* + * Remove inner padding and search cancel button in Chrome, Safari and Opera on OS X. + */ +.uk-search-field::-webkit-search-cancel-button, +.uk-search-field::-webkit-search-decoration { + -webkit-appearance: none; +} +/* + * Removes cancel button in IE10 + */ +.uk-search-field::-ms-clear { + display: none; +} +/* + * Removes placeholder transparency in Firefox. + */ +.uk-search-field::-moz-placeholder { + opacity: 1; +} +/* + * 1. Define consistent box sizing. + * 2. Address margins set differently in Firefox/IE and Chrome/Safari/Opera. + * 3. Remove `border-radius` in iOS. + * 4. Correct `font` properties and `color` not being inherited. + * 5. Remove default style in iOS. + * 6. Style + */ +.uk-search-field { + /* 1 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 2 */ + margin: 0; + /* 3 */ + border-radius: 0; + /* 4 */ + font: inherit; + color: #444444; + /* 5 */ + -webkit-appearance: none; + /* 6 */ + width: 120px; + height: 30px; + padding: 0 0 0 30px; + border: 1px solid rgba(0, 0, 0, 0); + background: rgba(0, 0, 0, 0); + -webkit-transition: all linear 0.2s; + transition: all linear 0.2s; + vertical-align: middle; +} +/* Placeholder */ +.uk-search-field:-ms-input-placeholder { + color: #999999 !important; +} +.uk-search-field::-moz-placeholder { + color: #999999; +} +.uk-search-field::-webkit-input-placeholder { + color: #999999; +} +/* Focus */ +.uk-search-field:focus { + outline: 0; +} +/* Focus + Active */ +.uk-search-field:focus, +.uk-search.uk-active .uk-search-field { + width: 180px; +} +/* Dropdown modifier: `uk-dropdown-search` + ========================================================================== */ +.uk-dropdown-search { + width: 300px; + margin-top: 0; + background: #ffffff; + color: #444444; +} +.uk-open > .uk-dropdown-search { + -webkit-animation: uk-slide-top-fixed 0.2s ease-in-out; + animation: uk-slide-top-fixed 0.2s ease-in-out; +} +/* + * Dependency `uk-navbar-flip` + */ +.uk-navbar-flip .uk-dropdown-search { + margin-top: 12px; + margin-right: -16px; +} +/* Nav modifier `uk-nav-search` + ========================================================================== */ +/* + * Items + */ +.uk-nav-search > li > a { + color: #444444; +} +/* + * Active + * 1. Remove default focus style + */ +.uk-nav-search > li.uk-active > a { + background: #009dd8; + color: #ffffff; + /* 1 */ + outline: none; + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-search .uk-nav-header { + color: #999999; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-search .uk-nav-divider { + border-top: 1px solid #dddddd; +} +/* + * Nested items + */ +.uk-nav-search ul a { + color: #0077dd; +} +.uk-nav-search ul a:hover { + color: #005599; +} +/* Search in offcanvas + ========================================================================== */ +.uk-offcanvas .uk-search { + display: block; + margin: 20px 15px; +} +.uk-offcanvas .uk-search:before { + color: #777777; +} +.uk-offcanvas .uk-search-field { + width: 100%; + border-color: rgba(0, 0, 0, 0); + background: #1a1a1a; + color: #cccccc; +} +.uk-offcanvas .uk-search-field:-ms-input-placeholder { + color: #777777 !important; +} +.uk-offcanvas .uk-search-field::-moz-placeholder { + color: #777777; +} +.uk-offcanvas .uk-search-field::-webkit-input-placeholder { + color: #777777; +} diff --git a/media/uikit/css/components/search.gradient.min.css b/media/uikit/css/components/search.gradient.min.css new file mode 100644 index 00000000..166173bc --- /dev/null +++ b/media/uikit/css/components/search.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-search{display:inline-block;position:relative;margin:0}.uk-search:before{content:"\f002";position:absolute;top:0;left:0;width:30px;line-height:30px;text-align:center;font-family:FontAwesome;font-size:14px;color:rgba(0,0,0,.2)}.uk-search-field::-moz-focus-inner{border:0;padding:0}.uk-search-field::-webkit-search-cancel-button,.uk-search-field::-webkit-search-decoration{-webkit-appearance:none}.uk-search-field::-ms-clear{display:none}.uk-search-field::-moz-placeholder{opacity:1}.uk-search-field{-moz-box-sizing:border-box;box-sizing:border-box;margin:0;border-radius:0;font:inherit;color:#444;-webkit-appearance:none;width:120px;height:30px;padding:0 0 0 30px;border:1px solid transparent;background:transparent;-webkit-transition:all linear .2s;transition:all linear .2s;vertical-align:middle}.uk-search-field:-ms-input-placeholder{color:#999!important}.uk-search-field::-moz-placeholder{color:#999}.uk-search-field::-webkit-input-placeholder{color:#999}.uk-search-field:focus{outline:0}.uk-search-field:focus,.uk-search.uk-active .uk-search-field{width:180px}.uk-dropdown-search{width:300px;margin-top:0;background:#fff;color:#444}.uk-open>.uk-dropdown-search{-webkit-animation:uk-slide-top-fixed .2s ease-in-out;animation:uk-slide-top-fixed .2s ease-in-out}.uk-navbar-flip .uk-dropdown-search{margin-top:12px;margin-right:-16px}.uk-nav-search>li>a{color:#444}.uk-nav-search>li.uk-active>a{background:#009dd8;color:#fff;outline:0;box-shadow:inset 0 2px 4px rgba(0,0,0,.2);text-shadow:0 -1px 0 rgba(0,0,0,.2)}.uk-nav-search .uk-nav-header{color:#999}.uk-nav-search .uk-nav-divider{border-top:1px solid #ddd}.uk-nav-search ul a{color:#07d}.uk-nav-search ul a:hover{color:#059}.uk-offcanvas .uk-search{display:block;margin:20px 15px}.uk-offcanvas .uk-search:before{color:#777}.uk-offcanvas .uk-search-field{width:100%;border-color:transparent;background:#1a1a1a;color:#ccc}.uk-offcanvas .uk-search-field:-ms-input-placeholder{color:#777!important}.uk-offcanvas .uk-search-field::-moz-placeholder{color:#777}.uk-offcanvas .uk-search-field::-webkit-input-placeholder{color:#777} \ No newline at end of file diff --git a/media/uikit/css/components/search.min.css b/media/uikit/css/components/search.min.css new file mode 100644 index 00000000..8e826a42 --- /dev/null +++ b/media/uikit/css/components/search.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-search{display:inline-block;position:relative;margin:0}.uk-search:before{content:"\f002";position:absolute;top:0;left:0;width:30px;line-height:30px;text-align:center;font-family:FontAwesome;font-size:14px;color:rgba(0,0,0,.2)}.uk-search-field::-moz-focus-inner{border:0;padding:0}.uk-search-field::-webkit-search-cancel-button,.uk-search-field::-webkit-search-decoration{-webkit-appearance:none}.uk-search-field::-ms-clear{display:none}.uk-search-field::-moz-placeholder{opacity:1}.uk-search-field{-moz-box-sizing:border-box;box-sizing:border-box;margin:0;border-radius:0;font:inherit;color:#444;-webkit-appearance:none;width:120px;height:30px;padding:0 0 0 30px;border:1px solid transparent;background:transparent;-webkit-transition:all linear .2s;transition:all linear .2s;vertical-align:middle}.uk-search-field:-ms-input-placeholder{color:#999!important}.uk-search-field::-moz-placeholder{color:#999}.uk-search-field::-webkit-input-placeholder{color:#999}.uk-search-field:focus{outline:0}.uk-search-field:focus,.uk-search.uk-active .uk-search-field{width:180px}.uk-dropdown-search{width:300px;margin-top:0;background:#f5f5f5;color:#444}.uk-open>.uk-dropdown-search{-webkit-animation:uk-slide-top-fixed .2s ease-in-out;animation:uk-slide-top-fixed .2s ease-in-out}.uk-navbar-flip .uk-dropdown-search{margin-top:5px;margin-right:-15px}.uk-nav-search>li>a{color:#444}.uk-nav-search>li.uk-active>a{background:#00a8e6;color:#fff;outline:0}.uk-nav-search .uk-nav-header{color:#999}.uk-nav-search .uk-nav-divider{border-top:1px solid #ddd}.uk-nav-search ul a{color:#07d}.uk-nav-search ul a:hover{color:#059}.uk-offcanvas .uk-search{display:block;margin:20px 15px}.uk-offcanvas .uk-search:before{color:#777}.uk-offcanvas .uk-search-field{width:100%;border-color:transparent;background:#1a1a1a;color:#ccc}.uk-offcanvas .uk-search-field:-ms-input-placeholder{color:#777!important}.uk-offcanvas .uk-search-field::-moz-placeholder{color:#777}.uk-offcanvas .uk-search-field::-webkit-input-placeholder{color:#777} \ No newline at end of file diff --git a/media/uikit/css/components/slidenav.almost-flat.css b/media/uikit/css/components/slidenav.almost-flat.css new file mode 100644 index 00000000..7445f255 --- /dev/null +++ b/media/uikit/css/components/slidenav.almost-flat.css @@ -0,0 +1,99 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Slidenav + ========================================================================== */ +/* + * 1. Required for `a` elements + * 2. Dimension + * 3. Style + */ +.uk-slidenav { + /* 1 */ + display: inline-block; + /* 2 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 60px; + height: 60px; + /* 3 */ + line-height: 60px; + color: rgba(50, 50, 50, 0.4); + font-size: 60px; + text-align: center; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + * 3. Required for `a` elements + * 4. Style + */ +.uk-slidenav:hover, +.uk-slidenav:focus { + /* 2 */ + outline: none; + /* 3 */ + text-decoration: none; + /* 4 */ + color: rgba(50, 50, 50, 0.7); + cursor: pointer; +} +/* Active */ +.uk-slidenav:active { + color: rgba(50, 50, 50, 0.9); +} +/* + * Icons + */ +.uk-slidenav-previous:before { + content: "\f104"; + font-family: FontAwesome; +} +.uk-slidenav-next:before { + content: "\f105"; + font-family: FontAwesome; +} +/* Sub-object: `uk-slidenav-position` + ========================================================================== */ +/* + * Create position context + */ +.uk-slidenav-position { + position: relative; +} +/* + * Center vertically + */ +.uk-slidenav-position .uk-slidenav { + display: none; + position: absolute; + top: 50%; + z-index: 1; + margin-top: -30px; +} +.uk-slidenav-position:hover .uk-slidenav { + display: block; +} +.uk-slidenav-position .uk-slidenav-previous { + left: 20px; +} +.uk-slidenav-position .uk-slidenav-next { + right: 20px; +} +/* Modifier: `uk-slidenav-contrast` + ========================================================================== */ +.uk-slidenav-contrast { + color: rgba(255, 255, 255, 0.5); +} +/* + * Hover + * 1. Apply hover style also to focus state + */ +.uk-slidenav-contrast:hover, +.uk-slidenav-contrast:focus { + color: rgba(255, 255, 255, 0.7); +} +/* Active */ +.uk-slidenav-contrast:active { + color: rgba(255, 255, 255, 0.9); +} diff --git a/media/uikit/css/components/slidenav.almost-flat.min.css b/media/uikit/css/components/slidenav.almost-flat.min.css new file mode 100644 index 00000000..31445f0e --- /dev/null +++ b/media/uikit/css/components/slidenav.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-slidenav{display:inline-block;-moz-box-sizing:border-box;box-sizing:border-box;width:60px;height:60px;line-height:60px;color:rgba(50,50,50,.4);font-size:60px;text-align:center}.uk-slidenav:focus,.uk-slidenav:hover{outline:0;text-decoration:none;color:rgba(50,50,50,.7);cursor:pointer}.uk-slidenav:active{color:rgba(50,50,50,.9)}.uk-slidenav-previous:before{content:"\f104";font-family:FontAwesome}.uk-slidenav-next:before{content:"\f105";font-family:FontAwesome}.uk-slidenav-position{position:relative}.uk-slidenav-position .uk-slidenav{display:none;position:absolute;top:50%;z-index:1;margin-top:-30px}.uk-slidenav-position:hover .uk-slidenav{display:block}.uk-slidenav-position .uk-slidenav-previous{left:20px}.uk-slidenav-position .uk-slidenav-next{right:20px}.uk-slidenav-contrast{color:rgba(255,255,255,.5)}.uk-slidenav-contrast:focus,.uk-slidenav-contrast:hover{color:rgba(255,255,255,.7)}.uk-slidenav-contrast:active{color:rgba(255,255,255,.9)} \ No newline at end of file diff --git a/media/uikit/css/components/slidenav.css b/media/uikit/css/components/slidenav.css new file mode 100644 index 00000000..7445f255 --- /dev/null +++ b/media/uikit/css/components/slidenav.css @@ -0,0 +1,99 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Slidenav + ========================================================================== */ +/* + * 1. Required for `a` elements + * 2. Dimension + * 3. Style + */ +.uk-slidenav { + /* 1 */ + display: inline-block; + /* 2 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 60px; + height: 60px; + /* 3 */ + line-height: 60px; + color: rgba(50, 50, 50, 0.4); + font-size: 60px; + text-align: center; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + * 3. Required for `a` elements + * 4. Style + */ +.uk-slidenav:hover, +.uk-slidenav:focus { + /* 2 */ + outline: none; + /* 3 */ + text-decoration: none; + /* 4 */ + color: rgba(50, 50, 50, 0.7); + cursor: pointer; +} +/* Active */ +.uk-slidenav:active { + color: rgba(50, 50, 50, 0.9); +} +/* + * Icons + */ +.uk-slidenav-previous:before { + content: "\f104"; + font-family: FontAwesome; +} +.uk-slidenav-next:before { + content: "\f105"; + font-family: FontAwesome; +} +/* Sub-object: `uk-slidenav-position` + ========================================================================== */ +/* + * Create position context + */ +.uk-slidenav-position { + position: relative; +} +/* + * Center vertically + */ +.uk-slidenav-position .uk-slidenav { + display: none; + position: absolute; + top: 50%; + z-index: 1; + margin-top: -30px; +} +.uk-slidenav-position:hover .uk-slidenav { + display: block; +} +.uk-slidenav-position .uk-slidenav-previous { + left: 20px; +} +.uk-slidenav-position .uk-slidenav-next { + right: 20px; +} +/* Modifier: `uk-slidenav-contrast` + ========================================================================== */ +.uk-slidenav-contrast { + color: rgba(255, 255, 255, 0.5); +} +/* + * Hover + * 1. Apply hover style also to focus state + */ +.uk-slidenav-contrast:hover, +.uk-slidenav-contrast:focus { + color: rgba(255, 255, 255, 0.7); +} +/* Active */ +.uk-slidenav-contrast:active { + color: rgba(255, 255, 255, 0.9); +} diff --git a/media/uikit/css/components/slidenav.gradient.css b/media/uikit/css/components/slidenav.gradient.css new file mode 100644 index 00000000..7445f255 --- /dev/null +++ b/media/uikit/css/components/slidenav.gradient.css @@ -0,0 +1,99 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Slidenav + ========================================================================== */ +/* + * 1. Required for `a` elements + * 2. Dimension + * 3. Style + */ +.uk-slidenav { + /* 1 */ + display: inline-block; + /* 2 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 60px; + height: 60px; + /* 3 */ + line-height: 60px; + color: rgba(50, 50, 50, 0.4); + font-size: 60px; + text-align: center; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + * 3. Required for `a` elements + * 4. Style + */ +.uk-slidenav:hover, +.uk-slidenav:focus { + /* 2 */ + outline: none; + /* 3 */ + text-decoration: none; + /* 4 */ + color: rgba(50, 50, 50, 0.7); + cursor: pointer; +} +/* Active */ +.uk-slidenav:active { + color: rgba(50, 50, 50, 0.9); +} +/* + * Icons + */ +.uk-slidenav-previous:before { + content: "\f104"; + font-family: FontAwesome; +} +.uk-slidenav-next:before { + content: "\f105"; + font-family: FontAwesome; +} +/* Sub-object: `uk-slidenav-position` + ========================================================================== */ +/* + * Create position context + */ +.uk-slidenav-position { + position: relative; +} +/* + * Center vertically + */ +.uk-slidenav-position .uk-slidenav { + display: none; + position: absolute; + top: 50%; + z-index: 1; + margin-top: -30px; +} +.uk-slidenav-position:hover .uk-slidenav { + display: block; +} +.uk-slidenav-position .uk-slidenav-previous { + left: 20px; +} +.uk-slidenav-position .uk-slidenav-next { + right: 20px; +} +/* Modifier: `uk-slidenav-contrast` + ========================================================================== */ +.uk-slidenav-contrast { + color: rgba(255, 255, 255, 0.5); +} +/* + * Hover + * 1. Apply hover style also to focus state + */ +.uk-slidenav-contrast:hover, +.uk-slidenav-contrast:focus { + color: rgba(255, 255, 255, 0.7); +} +/* Active */ +.uk-slidenav-contrast:active { + color: rgba(255, 255, 255, 0.9); +} diff --git a/media/uikit/css/components/slidenav.gradient.min.css b/media/uikit/css/components/slidenav.gradient.min.css new file mode 100644 index 00000000..31445f0e --- /dev/null +++ b/media/uikit/css/components/slidenav.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-slidenav{display:inline-block;-moz-box-sizing:border-box;box-sizing:border-box;width:60px;height:60px;line-height:60px;color:rgba(50,50,50,.4);font-size:60px;text-align:center}.uk-slidenav:focus,.uk-slidenav:hover{outline:0;text-decoration:none;color:rgba(50,50,50,.7);cursor:pointer}.uk-slidenav:active{color:rgba(50,50,50,.9)}.uk-slidenav-previous:before{content:"\f104";font-family:FontAwesome}.uk-slidenav-next:before{content:"\f105";font-family:FontAwesome}.uk-slidenav-position{position:relative}.uk-slidenav-position .uk-slidenav{display:none;position:absolute;top:50%;z-index:1;margin-top:-30px}.uk-slidenav-position:hover .uk-slidenav{display:block}.uk-slidenav-position .uk-slidenav-previous{left:20px}.uk-slidenav-position .uk-slidenav-next{right:20px}.uk-slidenav-contrast{color:rgba(255,255,255,.5)}.uk-slidenav-contrast:focus,.uk-slidenav-contrast:hover{color:rgba(255,255,255,.7)}.uk-slidenav-contrast:active{color:rgba(255,255,255,.9)} \ No newline at end of file diff --git a/media/uikit/css/components/slidenav.min.css b/media/uikit/css/components/slidenav.min.css new file mode 100644 index 00000000..31445f0e --- /dev/null +++ b/media/uikit/css/components/slidenav.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-slidenav{display:inline-block;-moz-box-sizing:border-box;box-sizing:border-box;width:60px;height:60px;line-height:60px;color:rgba(50,50,50,.4);font-size:60px;text-align:center}.uk-slidenav:focus,.uk-slidenav:hover{outline:0;text-decoration:none;color:rgba(50,50,50,.7);cursor:pointer}.uk-slidenav:active{color:rgba(50,50,50,.9)}.uk-slidenav-previous:before{content:"\f104";font-family:FontAwesome}.uk-slidenav-next:before{content:"\f105";font-family:FontAwesome}.uk-slidenav-position{position:relative}.uk-slidenav-position .uk-slidenav{display:none;position:absolute;top:50%;z-index:1;margin-top:-30px}.uk-slidenav-position:hover .uk-slidenav{display:block}.uk-slidenav-position .uk-slidenav-previous{left:20px}.uk-slidenav-position .uk-slidenav-next{right:20px}.uk-slidenav-contrast{color:rgba(255,255,255,.5)}.uk-slidenav-contrast:focus,.uk-slidenav-contrast:hover{color:rgba(255,255,255,.7)}.uk-slidenav-contrast:active{color:rgba(255,255,255,.9)} \ No newline at end of file diff --git a/media/uikit/css/components/slider.almost-flat.css b/media/uikit/css/components/slider.almost-flat.css new file mode 100644 index 00000000..2f16434b --- /dev/null +++ b/media/uikit/css/components/slider.almost-flat.css @@ -0,0 +1,85 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Slider + ========================================================================== */ +/* + * 1. Create position context + * 2. Create stacking context to prevent z-index issues with other components + * 3. Deactivate browser history navigation in IE11 + */ +.uk-slider { + /* 1 */ + position: relative; + /* 2 */ + z-index: 0; + /* 3 */ + touch-action: pan-y; +} +/* + * 1. Reset list style without interfering with grid + */ +.uk-slider:not(.uk-grid) { + /* 1 */ + margin: 0; + padding: 0; + list-style: none; +} +/* + * Sub-object item + * 1. Position items above each other + */ +.uk-slider > * { + /* 1 */ + position: absolute; + top: 0; + left: 0; +} +/* + * Clip child elements + */ +.uk-slider-container { + overflow: hidden; +} +/* + * Dragged + */ +.uk-slider:not(.uk-drag) { + -webkit-transition: -webkit-transform 200ms linear; + transition: transform 200ms linear; +} +/* + * 1. Makes text unselectable + */ +.uk-slider.uk-drag { + cursor: col-resize; + /* 1 */ + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; +} +/* + * 1. Prevents images and links from being dragged (default browser behavior) + * 2. Disables the default callout shown when you touch and hold a touch target + * Currently only works in Webkit + */ +.uk-slider a, +.uk-slider img { + /* 1 */ + -webkit-user-drag: none; + user-drag: none; + /* 2 */ + -webkit-touch-callout: none; +} +/* + * 1. Prevents images and links from being dragged in Firefox + */ +.uk-slider img { + pointer-events: none; +} +/* Modifier: `uk-slider-fullscreen` + ========================================================================== */ +.uk-slider-fullscreen, +.uk-slider-fullscreen > li { + height: 100vh; +} diff --git a/media/uikit/css/components/slider.almost-flat.min.css b/media/uikit/css/components/slider.almost-flat.min.css new file mode 100644 index 00000000..4b177be6 --- /dev/null +++ b/media/uikit/css/components/slider.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-slider{position:relative;z-index:0;touch-action:pan-y}.uk-slider:not(.uk-grid){margin:0;padding:0;list-style:none}.uk-slider>*{position:absolute;top:0;left:0}.uk-slider-container{overflow:hidden}.uk-slider:not(.uk-drag){-webkit-transition:-webkit-transform 200ms linear;transition:transform 200ms linear}.uk-slider.uk-drag{cursor:col-resize;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.uk-slider a,.uk-slider img{-webkit-user-drag:none;user-drag:none;-webkit-touch-callout:none}.uk-slider img{pointer-events:none}.uk-slider-fullscreen,.uk-slider-fullscreen>li{height:100vh} \ No newline at end of file diff --git a/media/uikit/css/components/slider.css b/media/uikit/css/components/slider.css new file mode 100644 index 00000000..2f16434b --- /dev/null +++ b/media/uikit/css/components/slider.css @@ -0,0 +1,85 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Slider + ========================================================================== */ +/* + * 1. Create position context + * 2. Create stacking context to prevent z-index issues with other components + * 3. Deactivate browser history navigation in IE11 + */ +.uk-slider { + /* 1 */ + position: relative; + /* 2 */ + z-index: 0; + /* 3 */ + touch-action: pan-y; +} +/* + * 1. Reset list style without interfering with grid + */ +.uk-slider:not(.uk-grid) { + /* 1 */ + margin: 0; + padding: 0; + list-style: none; +} +/* + * Sub-object item + * 1. Position items above each other + */ +.uk-slider > * { + /* 1 */ + position: absolute; + top: 0; + left: 0; +} +/* + * Clip child elements + */ +.uk-slider-container { + overflow: hidden; +} +/* + * Dragged + */ +.uk-slider:not(.uk-drag) { + -webkit-transition: -webkit-transform 200ms linear; + transition: transform 200ms linear; +} +/* + * 1. Makes text unselectable + */ +.uk-slider.uk-drag { + cursor: col-resize; + /* 1 */ + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; +} +/* + * 1. Prevents images and links from being dragged (default browser behavior) + * 2. Disables the default callout shown when you touch and hold a touch target + * Currently only works in Webkit + */ +.uk-slider a, +.uk-slider img { + /* 1 */ + -webkit-user-drag: none; + user-drag: none; + /* 2 */ + -webkit-touch-callout: none; +} +/* + * 1. Prevents images and links from being dragged in Firefox + */ +.uk-slider img { + pointer-events: none; +} +/* Modifier: `uk-slider-fullscreen` + ========================================================================== */ +.uk-slider-fullscreen, +.uk-slider-fullscreen > li { + height: 100vh; +} diff --git a/media/uikit/css/components/slider.gradient.css b/media/uikit/css/components/slider.gradient.css new file mode 100644 index 00000000..2f16434b --- /dev/null +++ b/media/uikit/css/components/slider.gradient.css @@ -0,0 +1,85 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Slider + ========================================================================== */ +/* + * 1. Create position context + * 2. Create stacking context to prevent z-index issues with other components + * 3. Deactivate browser history navigation in IE11 + */ +.uk-slider { + /* 1 */ + position: relative; + /* 2 */ + z-index: 0; + /* 3 */ + touch-action: pan-y; +} +/* + * 1. Reset list style without interfering with grid + */ +.uk-slider:not(.uk-grid) { + /* 1 */ + margin: 0; + padding: 0; + list-style: none; +} +/* + * Sub-object item + * 1. Position items above each other + */ +.uk-slider > * { + /* 1 */ + position: absolute; + top: 0; + left: 0; +} +/* + * Clip child elements + */ +.uk-slider-container { + overflow: hidden; +} +/* + * Dragged + */ +.uk-slider:not(.uk-drag) { + -webkit-transition: -webkit-transform 200ms linear; + transition: transform 200ms linear; +} +/* + * 1. Makes text unselectable + */ +.uk-slider.uk-drag { + cursor: col-resize; + /* 1 */ + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; +} +/* + * 1. Prevents images and links from being dragged (default browser behavior) + * 2. Disables the default callout shown when you touch and hold a touch target + * Currently only works in Webkit + */ +.uk-slider a, +.uk-slider img { + /* 1 */ + -webkit-user-drag: none; + user-drag: none; + /* 2 */ + -webkit-touch-callout: none; +} +/* + * 1. Prevents images and links from being dragged in Firefox + */ +.uk-slider img { + pointer-events: none; +} +/* Modifier: `uk-slider-fullscreen` + ========================================================================== */ +.uk-slider-fullscreen, +.uk-slider-fullscreen > li { + height: 100vh; +} diff --git a/media/uikit/css/components/slider.gradient.min.css b/media/uikit/css/components/slider.gradient.min.css new file mode 100644 index 00000000..4b177be6 --- /dev/null +++ b/media/uikit/css/components/slider.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-slider{position:relative;z-index:0;touch-action:pan-y}.uk-slider:not(.uk-grid){margin:0;padding:0;list-style:none}.uk-slider>*{position:absolute;top:0;left:0}.uk-slider-container{overflow:hidden}.uk-slider:not(.uk-drag){-webkit-transition:-webkit-transform 200ms linear;transition:transform 200ms linear}.uk-slider.uk-drag{cursor:col-resize;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.uk-slider a,.uk-slider img{-webkit-user-drag:none;user-drag:none;-webkit-touch-callout:none}.uk-slider img{pointer-events:none}.uk-slider-fullscreen,.uk-slider-fullscreen>li{height:100vh} \ No newline at end of file diff --git a/media/uikit/css/components/slider.min.css b/media/uikit/css/components/slider.min.css new file mode 100644 index 00000000..4b177be6 --- /dev/null +++ b/media/uikit/css/components/slider.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-slider{position:relative;z-index:0;touch-action:pan-y}.uk-slider:not(.uk-grid){margin:0;padding:0;list-style:none}.uk-slider>*{position:absolute;top:0;left:0}.uk-slider-container{overflow:hidden}.uk-slider:not(.uk-drag){-webkit-transition:-webkit-transform 200ms linear;transition:transform 200ms linear}.uk-slider.uk-drag{cursor:col-resize;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.uk-slider a,.uk-slider img{-webkit-user-drag:none;user-drag:none;-webkit-touch-callout:none}.uk-slider img{pointer-events:none}.uk-slider-fullscreen,.uk-slider-fullscreen>li{height:100vh} \ No newline at end of file diff --git a/media/uikit/css/components/slideshow.almost-flat.css b/media/uikit/css/components/slideshow.almost-flat.css new file mode 100644 index 00000000..8b6d69c0 --- /dev/null +++ b/media/uikit/css/components/slideshow.almost-flat.css @@ -0,0 +1,140 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Slideshow + ========================================================================== */ +/* + * 1. Create position context + * 2. Create stacking context to prevent z-index issues with other components + * 3. Set width because child elements are positioned absolute. Height is set via JS + * 4. Reset list style + * 5. Clip child elements + * 6. Deactivate browser history navigation in IE11 + */ +.uk-slideshow { + /* 1 */ + position: relative; + /* 2 */ + z-index: 0; + /* 3 */ + width: 100%; + /* 4 */ + margin: 0; + padding: 0; + list-style: none; + /* 5 */ + overflow: hidden; + /* 6 */ + touch-action: pan-y; +} +/* + * Sub-object item + * 1. Position items above each other + * 2. Expand to parent container width + * 3. Hide by default + */ +.uk-slideshow > li { + /* 1 */ + position: absolute; + top: 0; + left: 0; + /* 2 */ + width: 100%; + /* 3 */ + opacity: 0; +} +/* + * Active + * 1. Stack at first + * 2. Show slide + */ +.uk-slideshow > .uk-active { + /* 1 */ + z-index: 10; + /* 2 */ + opacity: 1; +} +/* + * Hide default images which is only relevant to keep existing proportions + */ +.uk-slideshow > li > img { + visibility: hidden; +} +/* + * Pointer for controls + */ +[data-uk-slideshow-slide] { + cursor: pointer; +} +/* Modifier: `uk-slideshow-fullscreen` + ========================================================================== */ +.uk-slideshow-fullscreen, +.uk-slideshow-fullscreen > li { + height: 100vh; +} +/* Animations + ========================================================================== */ +/* + * Fade + */ +.uk-slideshow-fade-out { + -webkit-animation: uk-fade 0.5s linear reverse; + animation: uk-fade 0.5s linear reverse; +} +/* + * Scroll + */ +.uk-slideshow-scroll-forward-in { + -webkit-animation: uk-slide-right 0.5s ease-in-out; + animation: uk-slide-right 0.5s ease-in-out; +} +.uk-slideshow-scroll-forward-out { + -webkit-animation: uk-slide-left 0.5s ease-in-out reverse; + animation: uk-slide-left 0.5s ease-in-out reverse; +} +.uk-slideshow-scroll-backward-in { + -webkit-animation: uk-slide-left 0.5s ease-in-out; + animation: uk-slide-left 0.5s ease-in-out; +} +.uk-slideshow-scroll-backward-out { + -webkit-animation: uk-slide-right 0.5s ease-in-out reverse; + animation: uk-slide-right 0.5s ease-in-out reverse; +} +/* + * Scale + */ +.uk-slideshow-scale-out { + -webkit-animation: uk-fade-scale-15 0.5s ease-in-out reverse; + animation: uk-fade-scale-15 0.5s ease-in-out reverse; +} +/* + * Swipe + */ +.uk-slideshow-swipe-forward-in { + -webkit-animation: uk-slide-left-33 0.5s ease-in-out; + animation: uk-slide-left-33 0.5s ease-in-out; +} +.uk-slideshow-swipe-forward-out { + -webkit-animation: uk-slide-left 0.5s ease-in-out reverse; + animation: uk-slide-left 0.5s ease-in-out reverse; +} +.uk-slideshow-swipe-backward-in { + -webkit-animation: uk-slide-right-33 0.5s ease-in-out; + animation: uk-slide-right-33 0.5s ease-in-out; +} +.uk-slideshow-swipe-backward-out { + -webkit-animation: uk-slide-right 0.5s ease-in-out reverse; + animation: uk-slide-right 0.5s ease-in-out reverse; +} +.uk-slideshow-swipe-forward-in:before, +.uk-slideshow-swipe-backward-in:before { + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 1; + background: rgba(0, 0, 0, 0.6); + -webkit-animation: uk-fade 0.5s ease-in-out reverse; + animation: uk-fade 0.5s ease-in-out reverse; +} diff --git a/media/uikit/css/components/slideshow.almost-flat.min.css b/media/uikit/css/components/slideshow.almost-flat.min.css new file mode 100644 index 00000000..e9348e0b --- /dev/null +++ b/media/uikit/css/components/slideshow.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-slideshow{position:relative;z-index:0;width:100%;margin:0;padding:0;list-style:none;overflow:hidden;touch-action:pan-y}.uk-slideshow>li{position:absolute;top:0;left:0;width:100%;opacity:0}.uk-slideshow>.uk-active{z-index:10;opacity:1}.uk-slideshow>li>img{visibility:hidden}[data-uk-slideshow-slide]{cursor:pointer}.uk-slideshow-fullscreen,.uk-slideshow-fullscreen>li{height:100vh}.uk-slideshow-fade-out{-webkit-animation:uk-fade .5s linear reverse;animation:uk-fade .5s linear reverse}.uk-slideshow-scroll-forward-in{-webkit-animation:uk-slide-right .5s ease-in-out;animation:uk-slide-right .5s ease-in-out}.uk-slideshow-scroll-forward-out{-webkit-animation:uk-slide-left .5s ease-in-out reverse;animation:uk-slide-left .5s ease-in-out reverse}.uk-slideshow-scroll-backward-in{-webkit-animation:uk-slide-left .5s ease-in-out;animation:uk-slide-left .5s ease-in-out}.uk-slideshow-scroll-backward-out{-webkit-animation:uk-slide-right .5s ease-in-out reverse;animation:uk-slide-right .5s ease-in-out reverse}.uk-slideshow-scale-out{-webkit-animation:uk-fade-scale-15 .5s ease-in-out reverse;animation:uk-fade-scale-15 .5s ease-in-out reverse}.uk-slideshow-swipe-forward-in{-webkit-animation:uk-slide-left-33 .5s ease-in-out;animation:uk-slide-left-33 .5s ease-in-out}.uk-slideshow-swipe-forward-out{-webkit-animation:uk-slide-left .5s ease-in-out reverse;animation:uk-slide-left .5s ease-in-out reverse}.uk-slideshow-swipe-backward-in{-webkit-animation:uk-slide-right-33 .5s ease-in-out;animation:uk-slide-right-33 .5s ease-in-out}.uk-slideshow-swipe-backward-out{-webkit-animation:uk-slide-right .5s ease-in-out reverse;animation:uk-slide-right .5s ease-in-out reverse}.uk-slideshow-swipe-backward-in:before,.uk-slideshow-swipe-forward-in:before{content:'';position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;background:rgba(0,0,0,.6);-webkit-animation:uk-fade .5s ease-in-out reverse;animation:uk-fade .5s ease-in-out reverse} \ No newline at end of file diff --git a/media/uikit/css/components/slideshow.css b/media/uikit/css/components/slideshow.css new file mode 100644 index 00000000..8b6d69c0 --- /dev/null +++ b/media/uikit/css/components/slideshow.css @@ -0,0 +1,140 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Slideshow + ========================================================================== */ +/* + * 1. Create position context + * 2. Create stacking context to prevent z-index issues with other components + * 3. Set width because child elements are positioned absolute. Height is set via JS + * 4. Reset list style + * 5. Clip child elements + * 6. Deactivate browser history navigation in IE11 + */ +.uk-slideshow { + /* 1 */ + position: relative; + /* 2 */ + z-index: 0; + /* 3 */ + width: 100%; + /* 4 */ + margin: 0; + padding: 0; + list-style: none; + /* 5 */ + overflow: hidden; + /* 6 */ + touch-action: pan-y; +} +/* + * Sub-object item + * 1. Position items above each other + * 2. Expand to parent container width + * 3. Hide by default + */ +.uk-slideshow > li { + /* 1 */ + position: absolute; + top: 0; + left: 0; + /* 2 */ + width: 100%; + /* 3 */ + opacity: 0; +} +/* + * Active + * 1. Stack at first + * 2. Show slide + */ +.uk-slideshow > .uk-active { + /* 1 */ + z-index: 10; + /* 2 */ + opacity: 1; +} +/* + * Hide default images which is only relevant to keep existing proportions + */ +.uk-slideshow > li > img { + visibility: hidden; +} +/* + * Pointer for controls + */ +[data-uk-slideshow-slide] { + cursor: pointer; +} +/* Modifier: `uk-slideshow-fullscreen` + ========================================================================== */ +.uk-slideshow-fullscreen, +.uk-slideshow-fullscreen > li { + height: 100vh; +} +/* Animations + ========================================================================== */ +/* + * Fade + */ +.uk-slideshow-fade-out { + -webkit-animation: uk-fade 0.5s linear reverse; + animation: uk-fade 0.5s linear reverse; +} +/* + * Scroll + */ +.uk-slideshow-scroll-forward-in { + -webkit-animation: uk-slide-right 0.5s ease-in-out; + animation: uk-slide-right 0.5s ease-in-out; +} +.uk-slideshow-scroll-forward-out { + -webkit-animation: uk-slide-left 0.5s ease-in-out reverse; + animation: uk-slide-left 0.5s ease-in-out reverse; +} +.uk-slideshow-scroll-backward-in { + -webkit-animation: uk-slide-left 0.5s ease-in-out; + animation: uk-slide-left 0.5s ease-in-out; +} +.uk-slideshow-scroll-backward-out { + -webkit-animation: uk-slide-right 0.5s ease-in-out reverse; + animation: uk-slide-right 0.5s ease-in-out reverse; +} +/* + * Scale + */ +.uk-slideshow-scale-out { + -webkit-animation: uk-fade-scale-15 0.5s ease-in-out reverse; + animation: uk-fade-scale-15 0.5s ease-in-out reverse; +} +/* + * Swipe + */ +.uk-slideshow-swipe-forward-in { + -webkit-animation: uk-slide-left-33 0.5s ease-in-out; + animation: uk-slide-left-33 0.5s ease-in-out; +} +.uk-slideshow-swipe-forward-out { + -webkit-animation: uk-slide-left 0.5s ease-in-out reverse; + animation: uk-slide-left 0.5s ease-in-out reverse; +} +.uk-slideshow-swipe-backward-in { + -webkit-animation: uk-slide-right-33 0.5s ease-in-out; + animation: uk-slide-right-33 0.5s ease-in-out; +} +.uk-slideshow-swipe-backward-out { + -webkit-animation: uk-slide-right 0.5s ease-in-out reverse; + animation: uk-slide-right 0.5s ease-in-out reverse; +} +.uk-slideshow-swipe-forward-in:before, +.uk-slideshow-swipe-backward-in:before { + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 1; + background: rgba(0, 0, 0, 0.6); + -webkit-animation: uk-fade 0.5s ease-in-out reverse; + animation: uk-fade 0.5s ease-in-out reverse; +} diff --git a/media/uikit/css/components/slideshow.gradient.css b/media/uikit/css/components/slideshow.gradient.css new file mode 100644 index 00000000..8b6d69c0 --- /dev/null +++ b/media/uikit/css/components/slideshow.gradient.css @@ -0,0 +1,140 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Slideshow + ========================================================================== */ +/* + * 1. Create position context + * 2. Create stacking context to prevent z-index issues with other components + * 3. Set width because child elements are positioned absolute. Height is set via JS + * 4. Reset list style + * 5. Clip child elements + * 6. Deactivate browser history navigation in IE11 + */ +.uk-slideshow { + /* 1 */ + position: relative; + /* 2 */ + z-index: 0; + /* 3 */ + width: 100%; + /* 4 */ + margin: 0; + padding: 0; + list-style: none; + /* 5 */ + overflow: hidden; + /* 6 */ + touch-action: pan-y; +} +/* + * Sub-object item + * 1. Position items above each other + * 2. Expand to parent container width + * 3. Hide by default + */ +.uk-slideshow > li { + /* 1 */ + position: absolute; + top: 0; + left: 0; + /* 2 */ + width: 100%; + /* 3 */ + opacity: 0; +} +/* + * Active + * 1. Stack at first + * 2. Show slide + */ +.uk-slideshow > .uk-active { + /* 1 */ + z-index: 10; + /* 2 */ + opacity: 1; +} +/* + * Hide default images which is only relevant to keep existing proportions + */ +.uk-slideshow > li > img { + visibility: hidden; +} +/* + * Pointer for controls + */ +[data-uk-slideshow-slide] { + cursor: pointer; +} +/* Modifier: `uk-slideshow-fullscreen` + ========================================================================== */ +.uk-slideshow-fullscreen, +.uk-slideshow-fullscreen > li { + height: 100vh; +} +/* Animations + ========================================================================== */ +/* + * Fade + */ +.uk-slideshow-fade-out { + -webkit-animation: uk-fade 0.5s linear reverse; + animation: uk-fade 0.5s linear reverse; +} +/* + * Scroll + */ +.uk-slideshow-scroll-forward-in { + -webkit-animation: uk-slide-right 0.5s ease-in-out; + animation: uk-slide-right 0.5s ease-in-out; +} +.uk-slideshow-scroll-forward-out { + -webkit-animation: uk-slide-left 0.5s ease-in-out reverse; + animation: uk-slide-left 0.5s ease-in-out reverse; +} +.uk-slideshow-scroll-backward-in { + -webkit-animation: uk-slide-left 0.5s ease-in-out; + animation: uk-slide-left 0.5s ease-in-out; +} +.uk-slideshow-scroll-backward-out { + -webkit-animation: uk-slide-right 0.5s ease-in-out reverse; + animation: uk-slide-right 0.5s ease-in-out reverse; +} +/* + * Scale + */ +.uk-slideshow-scale-out { + -webkit-animation: uk-fade-scale-15 0.5s ease-in-out reverse; + animation: uk-fade-scale-15 0.5s ease-in-out reverse; +} +/* + * Swipe + */ +.uk-slideshow-swipe-forward-in { + -webkit-animation: uk-slide-left-33 0.5s ease-in-out; + animation: uk-slide-left-33 0.5s ease-in-out; +} +.uk-slideshow-swipe-forward-out { + -webkit-animation: uk-slide-left 0.5s ease-in-out reverse; + animation: uk-slide-left 0.5s ease-in-out reverse; +} +.uk-slideshow-swipe-backward-in { + -webkit-animation: uk-slide-right-33 0.5s ease-in-out; + animation: uk-slide-right-33 0.5s ease-in-out; +} +.uk-slideshow-swipe-backward-out { + -webkit-animation: uk-slide-right 0.5s ease-in-out reverse; + animation: uk-slide-right 0.5s ease-in-out reverse; +} +.uk-slideshow-swipe-forward-in:before, +.uk-slideshow-swipe-backward-in:before { + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 1; + background: rgba(0, 0, 0, 0.6); + -webkit-animation: uk-fade 0.5s ease-in-out reverse; + animation: uk-fade 0.5s ease-in-out reverse; +} diff --git a/media/uikit/css/components/slideshow.gradient.min.css b/media/uikit/css/components/slideshow.gradient.min.css new file mode 100644 index 00000000..e9348e0b --- /dev/null +++ b/media/uikit/css/components/slideshow.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-slideshow{position:relative;z-index:0;width:100%;margin:0;padding:0;list-style:none;overflow:hidden;touch-action:pan-y}.uk-slideshow>li{position:absolute;top:0;left:0;width:100%;opacity:0}.uk-slideshow>.uk-active{z-index:10;opacity:1}.uk-slideshow>li>img{visibility:hidden}[data-uk-slideshow-slide]{cursor:pointer}.uk-slideshow-fullscreen,.uk-slideshow-fullscreen>li{height:100vh}.uk-slideshow-fade-out{-webkit-animation:uk-fade .5s linear reverse;animation:uk-fade .5s linear reverse}.uk-slideshow-scroll-forward-in{-webkit-animation:uk-slide-right .5s ease-in-out;animation:uk-slide-right .5s ease-in-out}.uk-slideshow-scroll-forward-out{-webkit-animation:uk-slide-left .5s ease-in-out reverse;animation:uk-slide-left .5s ease-in-out reverse}.uk-slideshow-scroll-backward-in{-webkit-animation:uk-slide-left .5s ease-in-out;animation:uk-slide-left .5s ease-in-out}.uk-slideshow-scroll-backward-out{-webkit-animation:uk-slide-right .5s ease-in-out reverse;animation:uk-slide-right .5s ease-in-out reverse}.uk-slideshow-scale-out{-webkit-animation:uk-fade-scale-15 .5s ease-in-out reverse;animation:uk-fade-scale-15 .5s ease-in-out reverse}.uk-slideshow-swipe-forward-in{-webkit-animation:uk-slide-left-33 .5s ease-in-out;animation:uk-slide-left-33 .5s ease-in-out}.uk-slideshow-swipe-forward-out{-webkit-animation:uk-slide-left .5s ease-in-out reverse;animation:uk-slide-left .5s ease-in-out reverse}.uk-slideshow-swipe-backward-in{-webkit-animation:uk-slide-right-33 .5s ease-in-out;animation:uk-slide-right-33 .5s ease-in-out}.uk-slideshow-swipe-backward-out{-webkit-animation:uk-slide-right .5s ease-in-out reverse;animation:uk-slide-right .5s ease-in-out reverse}.uk-slideshow-swipe-backward-in:before,.uk-slideshow-swipe-forward-in:before{content:'';position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;background:rgba(0,0,0,.6);-webkit-animation:uk-fade .5s ease-in-out reverse;animation:uk-fade .5s ease-in-out reverse} \ No newline at end of file diff --git a/media/uikit/css/components/slideshow.min.css b/media/uikit/css/components/slideshow.min.css new file mode 100644 index 00000000..e9348e0b --- /dev/null +++ b/media/uikit/css/components/slideshow.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-slideshow{position:relative;z-index:0;width:100%;margin:0;padding:0;list-style:none;overflow:hidden;touch-action:pan-y}.uk-slideshow>li{position:absolute;top:0;left:0;width:100%;opacity:0}.uk-slideshow>.uk-active{z-index:10;opacity:1}.uk-slideshow>li>img{visibility:hidden}[data-uk-slideshow-slide]{cursor:pointer}.uk-slideshow-fullscreen,.uk-slideshow-fullscreen>li{height:100vh}.uk-slideshow-fade-out{-webkit-animation:uk-fade .5s linear reverse;animation:uk-fade .5s linear reverse}.uk-slideshow-scroll-forward-in{-webkit-animation:uk-slide-right .5s ease-in-out;animation:uk-slide-right .5s ease-in-out}.uk-slideshow-scroll-forward-out{-webkit-animation:uk-slide-left .5s ease-in-out reverse;animation:uk-slide-left .5s ease-in-out reverse}.uk-slideshow-scroll-backward-in{-webkit-animation:uk-slide-left .5s ease-in-out;animation:uk-slide-left .5s ease-in-out}.uk-slideshow-scroll-backward-out{-webkit-animation:uk-slide-right .5s ease-in-out reverse;animation:uk-slide-right .5s ease-in-out reverse}.uk-slideshow-scale-out{-webkit-animation:uk-fade-scale-15 .5s ease-in-out reverse;animation:uk-fade-scale-15 .5s ease-in-out reverse}.uk-slideshow-swipe-forward-in{-webkit-animation:uk-slide-left-33 .5s ease-in-out;animation:uk-slide-left-33 .5s ease-in-out}.uk-slideshow-swipe-forward-out{-webkit-animation:uk-slide-left .5s ease-in-out reverse;animation:uk-slide-left .5s ease-in-out reverse}.uk-slideshow-swipe-backward-in{-webkit-animation:uk-slide-right-33 .5s ease-in-out;animation:uk-slide-right-33 .5s ease-in-out}.uk-slideshow-swipe-backward-out{-webkit-animation:uk-slide-right .5s ease-in-out reverse;animation:uk-slide-right .5s ease-in-out reverse}.uk-slideshow-swipe-backward-in:before,.uk-slideshow-swipe-forward-in:before{content:'';position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;background:rgba(0,0,0,.6);-webkit-animation:uk-fade .5s ease-in-out reverse;animation:uk-fade .5s ease-in-out reverse} \ No newline at end of file diff --git a/media/uikit/css/components/sortable.almost-flat.css b/media/uikit/css/components/sortable.almost-flat.css new file mode 100644 index 00000000..862682c7 --- /dev/null +++ b/media/uikit/css/components/sortable.almost-flat.css @@ -0,0 +1,62 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Sortable + ========================================================================== */ +.uk-sortable { + position: relative; +} +/* + * Deactivate browser touch actions in IE11 + */ +.uk-sortable > * { + touch-action: none; +} +/* + * Disables the default callout shown when you touch and hold a touch target + * Currently only works in Webkit + */ +.uk-sortable a, +.uk-sortable img { + -webkit-touch-callout: none; +} +/* + * Remove margin from the last-child + */ +.uk-sortable > :last-child { + margin-bottom: 0; +} +/* Sub-modifier `uk-sortable-dragged` + ========================================================================== */ +.uk-sortable-dragged { + position: absolute; + z-index: 1050; + pointer-events: none; +} +/* Sub-modifier `uk-sortable-placeholder` + ========================================================================== */ +.uk-sortable-placeholder { + opacity: 0; +} +/* Empty List + ========================================================================== */ +.uk-sortable:empty { + min-height: 30px; +} +/* Sub-object `uk-sortable-handle` + ========================================================================== */ +/* + * Deactivate browser touch actions in IE11 + */ +.uk-sortable-handle { + touch-action: none; +} +/* Hover */ +.uk-sortable-handle:hover { + cursor: move; +} +/* Sub-object `uk-sortable-moving` + ========================================================================== */ +.uk-sortable-moving, +.uk-sortable-moving * { + cursor: move; +} diff --git a/media/uikit/css/components/sortable.almost-flat.min.css b/media/uikit/css/components/sortable.almost-flat.min.css new file mode 100644 index 00000000..d1b6a9d2 --- /dev/null +++ b/media/uikit/css/components/sortable.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-sortable{position:relative}.uk-sortable>*{touch-action:none}.uk-sortable a,.uk-sortable img{-webkit-touch-callout:none}.uk-sortable>:last-child{margin-bottom:0}.uk-sortable-dragged{position:absolute;z-index:1050;pointer-events:none}.uk-sortable-placeholder{opacity:0}.uk-sortable:empty{min-height:30px}.uk-sortable-handle{touch-action:none}.uk-sortable-handle:hover{cursor:move}.uk-sortable-moving,.uk-sortable-moving *{cursor:move} \ No newline at end of file diff --git a/media/uikit/css/components/sortable.css b/media/uikit/css/components/sortable.css new file mode 100644 index 00000000..862682c7 --- /dev/null +++ b/media/uikit/css/components/sortable.css @@ -0,0 +1,62 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Sortable + ========================================================================== */ +.uk-sortable { + position: relative; +} +/* + * Deactivate browser touch actions in IE11 + */ +.uk-sortable > * { + touch-action: none; +} +/* + * Disables the default callout shown when you touch and hold a touch target + * Currently only works in Webkit + */ +.uk-sortable a, +.uk-sortable img { + -webkit-touch-callout: none; +} +/* + * Remove margin from the last-child + */ +.uk-sortable > :last-child { + margin-bottom: 0; +} +/* Sub-modifier `uk-sortable-dragged` + ========================================================================== */ +.uk-sortable-dragged { + position: absolute; + z-index: 1050; + pointer-events: none; +} +/* Sub-modifier `uk-sortable-placeholder` + ========================================================================== */ +.uk-sortable-placeholder { + opacity: 0; +} +/* Empty List + ========================================================================== */ +.uk-sortable:empty { + min-height: 30px; +} +/* Sub-object `uk-sortable-handle` + ========================================================================== */ +/* + * Deactivate browser touch actions in IE11 + */ +.uk-sortable-handle { + touch-action: none; +} +/* Hover */ +.uk-sortable-handle:hover { + cursor: move; +} +/* Sub-object `uk-sortable-moving` + ========================================================================== */ +.uk-sortable-moving, +.uk-sortable-moving * { + cursor: move; +} diff --git a/media/uikit/css/components/sortable.gradient.css b/media/uikit/css/components/sortable.gradient.css new file mode 100644 index 00000000..862682c7 --- /dev/null +++ b/media/uikit/css/components/sortable.gradient.css @@ -0,0 +1,62 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Sortable + ========================================================================== */ +.uk-sortable { + position: relative; +} +/* + * Deactivate browser touch actions in IE11 + */ +.uk-sortable > * { + touch-action: none; +} +/* + * Disables the default callout shown when you touch and hold a touch target + * Currently only works in Webkit + */ +.uk-sortable a, +.uk-sortable img { + -webkit-touch-callout: none; +} +/* + * Remove margin from the last-child + */ +.uk-sortable > :last-child { + margin-bottom: 0; +} +/* Sub-modifier `uk-sortable-dragged` + ========================================================================== */ +.uk-sortable-dragged { + position: absolute; + z-index: 1050; + pointer-events: none; +} +/* Sub-modifier `uk-sortable-placeholder` + ========================================================================== */ +.uk-sortable-placeholder { + opacity: 0; +} +/* Empty List + ========================================================================== */ +.uk-sortable:empty { + min-height: 30px; +} +/* Sub-object `uk-sortable-handle` + ========================================================================== */ +/* + * Deactivate browser touch actions in IE11 + */ +.uk-sortable-handle { + touch-action: none; +} +/* Hover */ +.uk-sortable-handle:hover { + cursor: move; +} +/* Sub-object `uk-sortable-moving` + ========================================================================== */ +.uk-sortable-moving, +.uk-sortable-moving * { + cursor: move; +} diff --git a/media/uikit/css/components/sortable.gradient.min.css b/media/uikit/css/components/sortable.gradient.min.css new file mode 100644 index 00000000..d1b6a9d2 --- /dev/null +++ b/media/uikit/css/components/sortable.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-sortable{position:relative}.uk-sortable>*{touch-action:none}.uk-sortable a,.uk-sortable img{-webkit-touch-callout:none}.uk-sortable>:last-child{margin-bottom:0}.uk-sortable-dragged{position:absolute;z-index:1050;pointer-events:none}.uk-sortable-placeholder{opacity:0}.uk-sortable:empty{min-height:30px}.uk-sortable-handle{touch-action:none}.uk-sortable-handle:hover{cursor:move}.uk-sortable-moving,.uk-sortable-moving *{cursor:move} \ No newline at end of file diff --git a/media/uikit/css/components/sortable.min.css b/media/uikit/css/components/sortable.min.css new file mode 100644 index 00000000..d1b6a9d2 --- /dev/null +++ b/media/uikit/css/components/sortable.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-sortable{position:relative}.uk-sortable>*{touch-action:none}.uk-sortable a,.uk-sortable img{-webkit-touch-callout:none}.uk-sortable>:last-child{margin-bottom:0}.uk-sortable-dragged{position:absolute;z-index:1050;pointer-events:none}.uk-sortable-placeholder{opacity:0}.uk-sortable:empty{min-height:30px}.uk-sortable-handle{touch-action:none}.uk-sortable-handle:hover{cursor:move}.uk-sortable-moving,.uk-sortable-moving *{cursor:move} \ No newline at end of file diff --git a/media/uikit/css/components/sticky.almost-flat.css b/media/uikit/css/components/sticky.almost-flat.css new file mode 100644 index 00000000..a6dd3c48 --- /dev/null +++ b/media/uikit/css/components/sticky.almost-flat.css @@ -0,0 +1,32 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Sticky + ========================================================================== */ +/* + * 1. More robust if padding and border are used + */ +[data-uk-sticky].uk-active { + z-index: 980; + /* 1 */ + -moz-box-sizing: border-box; + box-sizing: border-box; +} +/* + * 1. Resolve frame-rate issues on devices with lower frame-rates. Forces hardware acceleration + */ +.uk-sticky-placeholder > * { + /* 1 */ + -webkit-backface-visibility: hidden; + backface-visibility: hidden; +} +/* + * Faster animations + */ +[data-uk-sticky][class*='uk-animation-'] { + -webkit-animation-duration: 0.15s; + animation-duration: 0.15s; +} +[data-uk-sticky].uk-animation-reverse { + -webkit-animation-duration: 0.04s; + animation-duration: 0.04s; +} diff --git a/media/uikit/css/components/sticky.almost-flat.min.css b/media/uikit/css/components/sticky.almost-flat.min.css new file mode 100644 index 00000000..01857ab3 --- /dev/null +++ b/media/uikit/css/components/sticky.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +[data-uk-sticky].uk-active{z-index:980;-moz-box-sizing:border-box;box-sizing:border-box}.uk-sticky-placeholder>*{-webkit-backface-visibility:hidden;backface-visibility:hidden}[data-uk-sticky][class*=uk-animation-]{-webkit-animation-duration:.15s;animation-duration:.15s}[data-uk-sticky].uk-animation-reverse{-webkit-animation-duration:.04s;animation-duration:.04s} \ No newline at end of file diff --git a/media/uikit/css/components/sticky.css b/media/uikit/css/components/sticky.css new file mode 100644 index 00000000..a6dd3c48 --- /dev/null +++ b/media/uikit/css/components/sticky.css @@ -0,0 +1,32 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Sticky + ========================================================================== */ +/* + * 1. More robust if padding and border are used + */ +[data-uk-sticky].uk-active { + z-index: 980; + /* 1 */ + -moz-box-sizing: border-box; + box-sizing: border-box; +} +/* + * 1. Resolve frame-rate issues on devices with lower frame-rates. Forces hardware acceleration + */ +.uk-sticky-placeholder > * { + /* 1 */ + -webkit-backface-visibility: hidden; + backface-visibility: hidden; +} +/* + * Faster animations + */ +[data-uk-sticky][class*='uk-animation-'] { + -webkit-animation-duration: 0.15s; + animation-duration: 0.15s; +} +[data-uk-sticky].uk-animation-reverse { + -webkit-animation-duration: 0.04s; + animation-duration: 0.04s; +} diff --git a/media/uikit/css/components/sticky.gradient.css b/media/uikit/css/components/sticky.gradient.css new file mode 100644 index 00000000..a6dd3c48 --- /dev/null +++ b/media/uikit/css/components/sticky.gradient.css @@ -0,0 +1,32 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Sticky + ========================================================================== */ +/* + * 1. More robust if padding and border are used + */ +[data-uk-sticky].uk-active { + z-index: 980; + /* 1 */ + -moz-box-sizing: border-box; + box-sizing: border-box; +} +/* + * 1. Resolve frame-rate issues on devices with lower frame-rates. Forces hardware acceleration + */ +.uk-sticky-placeholder > * { + /* 1 */ + -webkit-backface-visibility: hidden; + backface-visibility: hidden; +} +/* + * Faster animations + */ +[data-uk-sticky][class*='uk-animation-'] { + -webkit-animation-duration: 0.15s; + animation-duration: 0.15s; +} +[data-uk-sticky].uk-animation-reverse { + -webkit-animation-duration: 0.04s; + animation-duration: 0.04s; +} diff --git a/media/uikit/css/components/sticky.gradient.min.css b/media/uikit/css/components/sticky.gradient.min.css new file mode 100644 index 00000000..01857ab3 --- /dev/null +++ b/media/uikit/css/components/sticky.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +[data-uk-sticky].uk-active{z-index:980;-moz-box-sizing:border-box;box-sizing:border-box}.uk-sticky-placeholder>*{-webkit-backface-visibility:hidden;backface-visibility:hidden}[data-uk-sticky][class*=uk-animation-]{-webkit-animation-duration:.15s;animation-duration:.15s}[data-uk-sticky].uk-animation-reverse{-webkit-animation-duration:.04s;animation-duration:.04s} \ No newline at end of file diff --git a/media/uikit/css/components/sticky.min.css b/media/uikit/css/components/sticky.min.css new file mode 100644 index 00000000..01857ab3 --- /dev/null +++ b/media/uikit/css/components/sticky.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +[data-uk-sticky].uk-active{z-index:980;-moz-box-sizing:border-box;box-sizing:border-box}.uk-sticky-placeholder>*{-webkit-backface-visibility:hidden;backface-visibility:hidden}[data-uk-sticky][class*=uk-animation-]{-webkit-animation-duration:.15s;animation-duration:.15s}[data-uk-sticky].uk-animation-reverse{-webkit-animation-duration:.04s;animation-duration:.04s} \ No newline at end of file diff --git a/media/uikit/css/components/tooltip.almost-flat.css b/media/uikit/css/components/tooltip.almost-flat.css new file mode 100644 index 00000000..27d92008 --- /dev/null +++ b/media/uikit/css/components/tooltip.almost-flat.css @@ -0,0 +1,120 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Tooltip + ========================================================================== */ +/* + * 1. Hide by default + * 2. Set fixed position + * 3. Set dimensions + * 4. Set style + */ +.uk-tooltip { + /* 1 */ + display: none; + /* 2 */ + position: absolute; + z-index: 1030; + /* 3 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + max-width: 200px; + padding: 5px 8px; + /* 4 */ + background: #333333; + color: rgba(255, 255, 255, 0.7); + font-size: 12px; + line-height: 18px; + text-align: center; + border-radius: 3px; + text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); +} +/* Triangle + ========================================================================== */ +/* + * 1. Dashed is less antialised than solid + */ +.uk-tooltip:after { + content: ""; + display: block; + position: absolute; + width: 0; + height: 0; + /* 1 */ + border: 5px dashed #333333; +} +/* Direction modifiers + ========================================================================== */ +/* + * Top + */ +.uk-tooltip-top:after, +.uk-tooltip-top-left:after, +.uk-tooltip-top-right:after { + bottom: -5px; + border-top-style: solid; + border-bottom: none; + border-left-color: transparent; + border-right-color: transparent; + border-top-color: #333333; +} +/* + * Bottom + */ +.uk-tooltip-bottom:after, +.uk-tooltip-bottom-left:after, +.uk-tooltip-bottom-right:after { + top: -5px; + border-bottom-style: solid; + border-top: none; + border-left-color: transparent; + border-right-color: transparent; + border-bottom-color: #333333; +} +/* + * Top/Bottom center + */ +.uk-tooltip-top:after, +.uk-tooltip-bottom:after { + left: 50%; + margin-left: -5px; +} +/* + * Top/Bottom left + */ +.uk-tooltip-top-left:after, +.uk-tooltip-bottom-left:after { + left: 10px; +} +/* + * Top/Bottom right + */ +.uk-tooltip-top-right:after, +.uk-tooltip-bottom-right:after { + right: 10px; +} +/* + * Left + */ +.uk-tooltip-left:after { + right: -5px; + top: 50%; + margin-top: -5px; + border-left-style: solid; + border-right: none; + border-top-color: transparent; + border-bottom-color: transparent; + border-left-color: #333333; +} +/* + * Right + */ +.uk-tooltip-right:after { + left: -5px; + top: 50%; + margin-top: -5px; + border-right-style: solid; + border-left: none; + border-top-color: transparent; + border-bottom-color: transparent; + border-right-color: #333333; +} diff --git a/media/uikit/css/components/tooltip.almost-flat.min.css b/media/uikit/css/components/tooltip.almost-flat.min.css new file mode 100644 index 00000000..1660ddc8 --- /dev/null +++ b/media/uikit/css/components/tooltip.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-tooltip{display:none;position:absolute;z-index:1030;-moz-box-sizing:border-box;box-sizing:border-box;max-width:200px;padding:5px 8px;background:#333;color:rgba(255,255,255,.7);font-size:12px;line-height:18px;text-align:center;border-radius:3px;text-shadow:0 1px 0 rgba(0,0,0,.5)}.uk-tooltip:after{content:"";display:block;position:absolute;width:0;height:0;border:5px dashed #333}.uk-tooltip-top-left:after,.uk-tooltip-top-right:after,.uk-tooltip-top:after{bottom:-5px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-color:#333}.uk-tooltip-bottom-left:after,.uk-tooltip-bottom-right:after,.uk-tooltip-bottom:after{top:-5px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent;border-bottom-color:#333}.uk-tooltip-bottom:after,.uk-tooltip-top:after{left:50%;margin-left:-5px}.uk-tooltip-bottom-left:after,.uk-tooltip-top-left:after{left:10px}.uk-tooltip-bottom-right:after,.uk-tooltip-top-right:after{right:10px}.uk-tooltip-left:after{right:-5px;top:50%;margin-top:-5px;border-left-style:solid;border-right:none;border-top-color:transparent;border-bottom-color:transparent;border-left-color:#333}.uk-tooltip-right:after{left:-5px;top:50%;margin-top:-5px;border-right-style:solid;border-left:none;border-top-color:transparent;border-bottom-color:transparent;border-right-color:#333} \ No newline at end of file diff --git a/media/uikit/css/components/tooltip.css b/media/uikit/css/components/tooltip.css new file mode 100644 index 00000000..7ec0df08 --- /dev/null +++ b/media/uikit/css/components/tooltip.css @@ -0,0 +1,118 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Tooltip + ========================================================================== */ +/* + * 1. Hide by default + * 2. Set fixed position + * 3. Set dimensions + * 4. Set style + */ +.uk-tooltip { + /* 1 */ + display: none; + /* 2 */ + position: absolute; + z-index: 1030; + /* 3 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + max-width: 200px; + padding: 5px 8px; + /* 4 */ + background: #333333; + color: rgba(255, 255, 255, 0.7); + font-size: 12px; + line-height: 18px; + text-align: center; +} +/* Triangle + ========================================================================== */ +/* + * 1. Dashed is less antialised than solid + */ +.uk-tooltip:after { + content: ""; + display: block; + position: absolute; + width: 0; + height: 0; + /* 1 */ + border: 5px dashed #333333; +} +/* Direction modifiers + ========================================================================== */ +/* + * Top + */ +.uk-tooltip-top:after, +.uk-tooltip-top-left:after, +.uk-tooltip-top-right:after { + bottom: -5px; + border-top-style: solid; + border-bottom: none; + border-left-color: transparent; + border-right-color: transparent; + border-top-color: #333333; +} +/* + * Bottom + */ +.uk-tooltip-bottom:after, +.uk-tooltip-bottom-left:after, +.uk-tooltip-bottom-right:after { + top: -5px; + border-bottom-style: solid; + border-top: none; + border-left-color: transparent; + border-right-color: transparent; + border-bottom-color: #333333; +} +/* + * Top/Bottom center + */ +.uk-tooltip-top:after, +.uk-tooltip-bottom:after { + left: 50%; + margin-left: -5px; +} +/* + * Top/Bottom left + */ +.uk-tooltip-top-left:after, +.uk-tooltip-bottom-left:after { + left: 10px; +} +/* + * Top/Bottom right + */ +.uk-tooltip-top-right:after, +.uk-tooltip-bottom-right:after { + right: 10px; +} +/* + * Left + */ +.uk-tooltip-left:after { + right: -5px; + top: 50%; + margin-top: -5px; + border-left-style: solid; + border-right: none; + border-top-color: transparent; + border-bottom-color: transparent; + border-left-color: #333333; +} +/* + * Right + */ +.uk-tooltip-right:after { + left: -5px; + top: 50%; + margin-top: -5px; + border-right-style: solid; + border-left: none; + border-top-color: transparent; + border-bottom-color: transparent; + border-right-color: #333333; +} diff --git a/media/uikit/css/components/tooltip.gradient.css b/media/uikit/css/components/tooltip.gradient.css new file mode 100644 index 00000000..27d92008 --- /dev/null +++ b/media/uikit/css/components/tooltip.gradient.css @@ -0,0 +1,120 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Tooltip + ========================================================================== */ +/* + * 1. Hide by default + * 2. Set fixed position + * 3. Set dimensions + * 4. Set style + */ +.uk-tooltip { + /* 1 */ + display: none; + /* 2 */ + position: absolute; + z-index: 1030; + /* 3 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + max-width: 200px; + padding: 5px 8px; + /* 4 */ + background: #333333; + color: rgba(255, 255, 255, 0.7); + font-size: 12px; + line-height: 18px; + text-align: center; + border-radius: 3px; + text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); +} +/* Triangle + ========================================================================== */ +/* + * 1. Dashed is less antialised than solid + */ +.uk-tooltip:after { + content: ""; + display: block; + position: absolute; + width: 0; + height: 0; + /* 1 */ + border: 5px dashed #333333; +} +/* Direction modifiers + ========================================================================== */ +/* + * Top + */ +.uk-tooltip-top:after, +.uk-tooltip-top-left:after, +.uk-tooltip-top-right:after { + bottom: -5px; + border-top-style: solid; + border-bottom: none; + border-left-color: transparent; + border-right-color: transparent; + border-top-color: #333333; +} +/* + * Bottom + */ +.uk-tooltip-bottom:after, +.uk-tooltip-bottom-left:after, +.uk-tooltip-bottom-right:after { + top: -5px; + border-bottom-style: solid; + border-top: none; + border-left-color: transparent; + border-right-color: transparent; + border-bottom-color: #333333; +} +/* + * Top/Bottom center + */ +.uk-tooltip-top:after, +.uk-tooltip-bottom:after { + left: 50%; + margin-left: -5px; +} +/* + * Top/Bottom left + */ +.uk-tooltip-top-left:after, +.uk-tooltip-bottom-left:after { + left: 10px; +} +/* + * Top/Bottom right + */ +.uk-tooltip-top-right:after, +.uk-tooltip-bottom-right:after { + right: 10px; +} +/* + * Left + */ +.uk-tooltip-left:after { + right: -5px; + top: 50%; + margin-top: -5px; + border-left-style: solid; + border-right: none; + border-top-color: transparent; + border-bottom-color: transparent; + border-left-color: #333333; +} +/* + * Right + */ +.uk-tooltip-right:after { + left: -5px; + top: 50%; + margin-top: -5px; + border-right-style: solid; + border-left: none; + border-top-color: transparent; + border-bottom-color: transparent; + border-right-color: #333333; +} diff --git a/media/uikit/css/components/tooltip.gradient.min.css b/media/uikit/css/components/tooltip.gradient.min.css new file mode 100644 index 00000000..1660ddc8 --- /dev/null +++ b/media/uikit/css/components/tooltip.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-tooltip{display:none;position:absolute;z-index:1030;-moz-box-sizing:border-box;box-sizing:border-box;max-width:200px;padding:5px 8px;background:#333;color:rgba(255,255,255,.7);font-size:12px;line-height:18px;text-align:center;border-radius:3px;text-shadow:0 1px 0 rgba(0,0,0,.5)}.uk-tooltip:after{content:"";display:block;position:absolute;width:0;height:0;border:5px dashed #333}.uk-tooltip-top-left:after,.uk-tooltip-top-right:after,.uk-tooltip-top:after{bottom:-5px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-color:#333}.uk-tooltip-bottom-left:after,.uk-tooltip-bottom-right:after,.uk-tooltip-bottom:after{top:-5px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent;border-bottom-color:#333}.uk-tooltip-bottom:after,.uk-tooltip-top:after{left:50%;margin-left:-5px}.uk-tooltip-bottom-left:after,.uk-tooltip-top-left:after{left:10px}.uk-tooltip-bottom-right:after,.uk-tooltip-top-right:after{right:10px}.uk-tooltip-left:after{right:-5px;top:50%;margin-top:-5px;border-left-style:solid;border-right:none;border-top-color:transparent;border-bottom-color:transparent;border-left-color:#333}.uk-tooltip-right:after{left:-5px;top:50%;margin-top:-5px;border-right-style:solid;border-left:none;border-top-color:transparent;border-bottom-color:transparent;border-right-color:#333} \ No newline at end of file diff --git a/media/uikit/css/components/tooltip.min.css b/media/uikit/css/components/tooltip.min.css new file mode 100644 index 00000000..07e31dc9 --- /dev/null +++ b/media/uikit/css/components/tooltip.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-tooltip{display:none;position:absolute;z-index:1030;-moz-box-sizing:border-box;box-sizing:border-box;max-width:200px;padding:5px 8px;background:#333;color:rgba(255,255,255,.7);font-size:12px;line-height:18px;text-align:center}.uk-tooltip:after{content:"";display:block;position:absolute;width:0;height:0;border:5px dashed #333}.uk-tooltip-top-left:after,.uk-tooltip-top-right:after,.uk-tooltip-top:after{bottom:-5px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-color:#333}.uk-tooltip-bottom-left:after,.uk-tooltip-bottom-right:after,.uk-tooltip-bottom:after{top:-5px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent;border-bottom-color:#333}.uk-tooltip-bottom:after,.uk-tooltip-top:after{left:50%;margin-left:-5px}.uk-tooltip-bottom-left:after,.uk-tooltip-top-left:after{left:10px}.uk-tooltip-bottom-right:after,.uk-tooltip-top-right:after{right:10px}.uk-tooltip-left:after{right:-5px;top:50%;margin-top:-5px;border-left-style:solid;border-right:none;border-top-color:transparent;border-bottom-color:transparent;border-left-color:#333}.uk-tooltip-right:after{left:-5px;top:50%;margin-top:-5px;border-right-style:solid;border-left:none;border-top-color:transparent;border-bottom-color:transparent;border-right-color:#333} \ No newline at end of file diff --git a/media/uikit/css/components/upload.almost-flat.css b/media/uikit/css/components/upload.almost-flat.css new file mode 100644 index 00000000..ab07f2b1 --- /dev/null +++ b/media/uikit/css/components/upload.almost-flat.css @@ -0,0 +1,10 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Upload + ========================================================================== */ +/* + * Create a box-shadow when dragging a file over the upload area + */ +.uk-dragover { + box-shadow: 0 0 20px rgba(100, 100, 100, 0.3); +} diff --git a/media/uikit/css/components/upload.almost-flat.min.css b/media/uikit/css/components/upload.almost-flat.min.css new file mode 100644 index 00000000..f1d2c795 --- /dev/null +++ b/media/uikit/css/components/upload.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-dragover{box-shadow:0 0 20px rgba(100,100,100,.3)} \ No newline at end of file diff --git a/media/uikit/css/components/upload.css b/media/uikit/css/components/upload.css new file mode 100644 index 00000000..ab07f2b1 --- /dev/null +++ b/media/uikit/css/components/upload.css @@ -0,0 +1,10 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Upload + ========================================================================== */ +/* + * Create a box-shadow when dragging a file over the upload area + */ +.uk-dragover { + box-shadow: 0 0 20px rgba(100, 100, 100, 0.3); +} diff --git a/media/uikit/css/components/upload.gradient.css b/media/uikit/css/components/upload.gradient.css new file mode 100644 index 00000000..ab07f2b1 --- /dev/null +++ b/media/uikit/css/components/upload.gradient.css @@ -0,0 +1,10 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Upload + ========================================================================== */ +/* + * Create a box-shadow when dragging a file over the upload area + */ +.uk-dragover { + box-shadow: 0 0 20px rgba(100, 100, 100, 0.3); +} diff --git a/media/uikit/css/components/upload.gradient.min.css b/media/uikit/css/components/upload.gradient.min.css new file mode 100644 index 00000000..f1d2c795 --- /dev/null +++ b/media/uikit/css/components/upload.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-dragover{box-shadow:0 0 20px rgba(100,100,100,.3)} \ No newline at end of file diff --git a/media/uikit/css/components/upload.min.css b/media/uikit/css/components/upload.min.css new file mode 100644 index 00000000..f1d2c795 --- /dev/null +++ b/media/uikit/css/components/upload.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +.uk-dragover{box-shadow:0 0 20px rgba(100,100,100,.3)} \ No newline at end of file diff --git a/media/uikit/css/index.html b/media/uikit/css/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/uikit/css/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/uikit/css/uikit.almost-flat.css b/media/uikit/css/uikit.almost-flat.css new file mode 100644 index 00000000..5dd95df4 --- /dev/null +++ b/media/uikit/css/uikit.almost-flat.css @@ -0,0 +1,8355 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Base + ========================================================================== */ +/* + * 1. Normalizes default `font-family` and sets `font-size` here to support `rem` units + * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom + * 3. Style + */ +html { + /* 1 */ + font: normal 14px / 20px "Helvetica Neue", Helvetica, Arial, sans-serif; + /* 2 */ + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + /* 3 */ + background: #ffffff; + color: #444444; +} +/* + * Removes default margin. + */ +body { + margin: 0; +} +/* Links + ========================================================================== */ +/* + * Remove the gray background color from active links in IE 10. + */ +a { + background: transparent; +} +/* + * Improves readability when focused and also mouse hovered in all browsers. + */ +a:active, +a:hover { + outline: 0; +} +/* + * Style + */ +a, +.uk-link { + color: #0077dd; + text-decoration: none; + cursor: pointer; +} +a:hover, +.uk-link:hover { + color: #005599; + text-decoration: underline; +} +/* Text-level semantics + ========================================================================== */ +/* + * Addresses styling not present in Chrome, Safari, Opera and IE 8/9/10. + */ +abbr[title] { + border-bottom: 1px dotted; +} +/* + * Addresses style set to `bolder` in Firefox + */ +b, +strong { + font-weight: bold; +} +/* + * 1. Address odd `em`-unit font size rendering in all browsers. + * 2. Consolas has a better baseline in running text compared to `Courier` + */ +:not(pre) > code, +:not(pre) > kbd, +:not(pre) > samp { + /* 1 */ + font-size: 12px; + /* 2 */ + font-family: Consolas, monospace, serif; + /* 3 */ + color: #dd0055; + white-space: nowrap; + padding: 0 4px; + border: 1px solid #dddddd; + border-radius: 3px; + background: #fafafa; +} +/* + * Emphasize + */ +em { + color: #dd0055; +} +/* + * Insert + */ +ins { + background: #ffffaa; + color: #444444; + text-decoration: none; +} +/* + * Mark + * Note: Addresses styling not present in IE 8/9. + */ +mark { + background: #ffffaa; + color: #444444; +} +/* + * Quote + */ +q { + font-style: italic; +} +/* + * Addresses inconsistent and variable font size in all browsers. + */ +small { + font-size: 80%; +} +/* + * Prevents `sub` and `sup` affecting `line-height` in all browsers. + */ +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} +sup { + top: -0.5em; +} +sub { + bottom: -0.25em; +} +/* Images + ========================================================================== */ +/* + * 1. Responsiveness: Sets a maximum width relative to the parent and auto scales the height + * 2. Corrects `max-width` behavior if padding and border are used + * 3. Remove border when inside `a` element in IE 8/9/10. + * 4. Remove the gap between images and the bottom of their containers + */ +img { + /* 1 */ + max-width: 100%; + height: auto; + /* 2 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 3 */ + border: 0; + /* 4 */ + vertical-align: middle; +} +/* + * Preserve original image dimensions + */ +.uk-img-preserve, +.uk-img-preserve img { + max-width: none; +} +/* + * Correct overflow not hidden in IE 9/10/11. + */ +svg:not(:root) { + overflow: hidden; +} +/* Block elements + ========================================================================== */ +/* + * Reset margin + */ +blockquote, +figure { + margin: 0; +} +/* + * Margins + */ +p, +ul, +ol, +dl, +blockquote, +pre, +address, +fieldset, +figure { + margin: 0 0 15px 0; +} +* + p, +* + ul, +* + ol, +* + dl, +* + blockquote, +* + pre, +* + address, +* + fieldset, +* + figure { + margin-top: 15px; +} +/* Headings + ========================================================================== */ +h1, +h2, +h3, +h4, +h5, +h6 { + margin: 0 0 15px 0; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-weight: normal; + color: #444444; + text-transform: none; +} +/* + * Margins + */ +* + h1, +* + h2, +* + h3, +* + h4, +* + h5, +* + h6 { + margin-top: 25px; +} +/* + * Sizes + */ +h1, +.uk-h1 { + font-size: 36px; + line-height: 42px; +} +h2, +.uk-h2 { + font-size: 24px; + line-height: 30px; +} +h3, +.uk-h3 { + font-size: 18px; + line-height: 24px; +} +h4, +.uk-h4 { + font-size: 16px; + line-height: 22px; +} +h5, +.uk-h5 { + font-size: 14px; + line-height: 20px; +} +h6, +.uk-h6 { + font-size: 12px; + line-height: 18px; +} +/* Lists + ========================================================================== */ +ul, +ol { + padding-left: 30px; +} +/* + * Reset margin for nested lists + */ +ul > li > ul, +ul > li > ol, +ol > li > ol, +ol > li > ul { + margin: 0; +} +/* Description lists + ========================================================================== */ +dt { + font-weight: bold; +} +dd { + margin-left: 0; +} +/* Horizontal rules + ========================================================================== */ +/* + * 1. Address differences between Firefox and other browsers. + * 2. Style + */ +hr { + /* 1 */ + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; + /* 2 */ + margin: 15px 0; + border: 0; + border-top: 1px solid #dddddd; +} +/* Address + ========================================================================== */ +address { + font-style: normal; +} +/* Blockquotes + ========================================================================== */ +blockquote { + padding-left: 15px; + border-left: 5px solid #dddddd; + font-size: 16px; + line-height: 22px; + font-style: italic; +} +/* Preformatted text + ========================================================================== */ +/* + * 1. Contain overflow in all browsers. + */ +pre { + padding: 10px; + background: #fafafa; + font: 12px / 18px Consolas, monospace, serif; + color: #444444; + -moz-tab-size: 4; + tab-size: 4; + /* 1 */ + overflow: auto; + border: 1px solid #dddddd; + border-radius: 3px; +} +/* Selection pseudo-element + ========================================================================== */ +::-moz-selection { + background: #3399ff; + color: #ffffff; + text-shadow: none; +} +::selection { + background: #3399ff; + color: #ffffff; + text-shadow: none; +} +/* HTML5 elements + ========================================================================== */ +/* + * Corrects `block` display not defined in IE 8/9. + */ +article, +aside, +details, +figcaption, +figure, +footer, +header, +main, +nav, +section, +summary { + display: block; +} +/* + * Addresses inconsistent vertical alignment of `progress` in Chrome, Firefox and Opera. + */ +progress { + vertical-align: baseline; +} +/* + * Prevent displaying `audio` without controls in Chrome, Safari and Opera + */ +audio:not([controls]) { + display: none; +} +/* + * Address `[hidden]` styling not present in IE 8/9. + * Hide the `template` element in IE and Safari + */ +[hidden], +template { + display: none; +} +/* Iframe + ========================================================================== */ +iframe { + border: 0; +} +/* Fix viewport for IE10 snap mode + ========================================================================== */ +@media screen and (max-width: 400px) { + @-ms-viewport { + width: device-width; + } +} +/* ======================================================================== + Component: Grid + ========================================================================== */ +/* + * 1. Makes grid more robust so that it can be used with other block elements like lists + */ +.uk-grid { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + /* 1 */ + margin: 0; + padding: 0; + list-style: none; +} +/* + * DEPRECATED + * Micro clearfix + * Can't use `table` because it creates a 1px gap when it becomes a flex item, only in Webkit + */ +.uk-grid:before, +.uk-grid:after { + content: ""; + display: block; + overflow: hidden; +} +.uk-grid:after { + clear: both; +} +/* + * Grid cell + * 1. Space is allocated solely based on content dimensions + * 2. Makes grid more robust so that it can be used with other block elements + * 3. DEPRECATED Using `float` to support IE9 + */ +.uk-grid > * { + /* 1 */ + -ms-flex: none; + -webkit-flex: none; + flex: none; + /* 2 */ + margin: 0; + /* 3 */ + float: left; +} +/* + * Remove margin from the last-child + */ +.uk-grid > * > :last-child { + margin-bottom: 0; +} +/* Grid gutter + ========================================================================== */ +/* + * Default gutter + */ +/* Horizontal */ +.uk-grid { + margin-left: -25px; +} +.uk-grid > * { + padding-left: 25px; +} +/* Vertical */ +.uk-grid + .uk-grid, +.uk-grid-margin, +.uk-grid > * > .uk-panel + .uk-panel { + margin-top: 25px; +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + /* Horizontal */ + .uk-grid { + margin-left: -35px; + } + .uk-grid > * { + padding-left: 35px; + } + /* Vertical */ + .uk-grid + .uk-grid, + .uk-grid-margin, + .uk-grid > * > .uk-panel + .uk-panel { + margin-top: 35px; + } +} +/* + * Collapse gutter + */ +/* Horizontal */ +.uk-grid-collapse { + margin-left: 0; +} +.uk-grid-collapse > * { + padding-left: 0; +} +/* Vertical */ +.uk-grid-collapse + .uk-grid-collapse, +.uk-grid-collapse > .uk-grid-margin, +.uk-grid-collapse > * > .uk-panel + .uk-panel { + margin-top: 0; +} +/* + * Small gutter + */ +/* Horizontal */ +.uk-grid-small { + margin-left: -10px; +} +.uk-grid-small > * { + padding-left: 10px; +} +/* Vertical */ +.uk-grid-small + .uk-grid-small, +.uk-grid-small > .uk-grid-margin, +.uk-grid-small > * > .uk-panel + .uk-panel { + margin-top: 10px; +} +/* + * Medium gutter + */ +/* Horizontal */ +.uk-grid-medium { + margin-left: -25px; +} +.uk-grid-medium > * { + padding-left: 25px; +} +/* Vertical */ +.uk-grid-medium + .uk-grid-medium, +.uk-grid-medium > .uk-grid-margin, +.uk-grid-medium > * > .uk-panel + .uk-panel { + margin-top: 25px; +} +/* Modifier: `uk-grid-divider` + ========================================================================== */ +/* + * Horizontal divider + * Only works with the default gutter. Does not work with gutter collapse, small or large. + * Does not work with `uk-push-*`, `uk-pull-*` and not if the columns float into the next row. + */ +.uk-grid-divider:not(:empty) { + margin-left: -25px; + margin-right: -25px; +} +.uk-grid-divider > * { + padding-left: 25px; + padding-right: 25px; +} +.uk-grid-divider > [class*='uk-width-1-']:not(.uk-width-1-1):nth-child(n+2), +.uk-grid-divider > [class*='uk-width-2-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-3-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-4-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-5-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-6-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-7-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-8-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-9-']:nth-child(n+2) { + border-left: 1px solid #dddddd; +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-grid-divider > [class*='uk-width-medium-']:not(.uk-width-medium-1-1):nth-child(n+2) { + border-left: 1px solid #dddddd; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-grid-divider > [class*='uk-width-large-']:not(.uk-width-large-1-1):nth-child(n+2) { + border-left: 1px solid #dddddd; + } +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + /* + * Large gutter + */ + .uk-grid-divider:not(:empty) { + margin-left: -35px; + margin-right: -35px; + } + .uk-grid-divider > * { + padding-left: 35px; + padding-right: 35px; + } + .uk-grid-divider:empty { + margin-top: 35px; + margin-bottom: 35px; + } +} +/* + * Vertical divider + */ +.uk-grid-divider:empty { + margin-top: 25px; + margin-bottom: 25px; + border-top: 1px solid #dddddd; +} +/* Match panels in grids + ========================================================================== */ +.uk-grid-match > * { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; +} +/* + * 1. Behave like a block element + */ +.uk-grid-match > * > * { + /* 1 */ + -ms-flex: none; + -webkit-flex: none; + flex: none; + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 100%; +} +/* Even grid cell widths + ========================================================================== */ +[class*='uk-grid-width'] > * { + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 100%; +} +.uk-grid-width-1-2 > * { + width: 50%; +} +.uk-grid-width-1-3 > * { + width: 33.333%; +} +.uk-grid-width-1-4 > * { + width: 25%; +} +.uk-grid-width-1-5 > * { + width: 20%; +} +.uk-grid-width-1-6 > * { + width: 16.666%; +} +.uk-grid-width-1-10 > * { + width: 10%; +} +/* Phone landscape and bigger */ +@media (min-width: 480px) { + .uk-grid-width-small-1-2 > * { + width: 50%; + } + .uk-grid-width-small-1-3 > * { + width: 33.333%; + } + .uk-grid-width-small-1-4 > * { + width: 25%; + } + .uk-grid-width-small-1-5 > * { + width: 20%; + } + .uk-grid-width-small-1-6 > * { + width: 16.666%; + } + .uk-grid-width-small-1-10 > * { + width: 10%; + } +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-grid-width-medium-1-2 > * { + width: 50%; + } + .uk-grid-width-medium-1-3 > * { + width: 33.333%; + } + .uk-grid-width-medium-1-4 > * { + width: 25%; + } + .uk-grid-width-medium-1-5 > * { + width: 20%; + } + .uk-grid-width-medium-1-6 > * { + width: 16.666%; + } + .uk-grid-width-medium-1-10 > * { + width: 10%; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-grid-width-large-1-2 > * { + width: 50%; + } + .uk-grid-width-large-1-3 > * { + width: 33.333%; + } + .uk-grid-width-large-1-4 > * { + width: 25%; + } + .uk-grid-width-large-1-5 > * { + width: 20%; + } + .uk-grid-width-large-1-6 > * { + width: 16.666%; + } + .uk-grid-width-large-1-10 > * { + width: 10%; + } +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + .uk-grid-width-xlarge-1-2 > * { + width: 50%; + } + .uk-grid-width-xlarge-1-3 > * { + width: 33.333%; + } + .uk-grid-width-xlarge-1-4 > * { + width: 25%; + } + .uk-grid-width-xlarge-1-5 > * { + width: 20%; + } + .uk-grid-width-xlarge-1-6 > * { + width: 16.666%; + } + .uk-grid-width-xlarge-1-10 > * { + width: 10%; + } +} +/* Sub-objects: `uk-width-*` + ========================================================================== */ +[class*='uk-width'] { + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 100%; +} +/* + * Widths + */ +/* Whole */ +.uk-width-1-1 { + width: 100%; +} +/* Halves */ +.uk-width-1-2, +.uk-width-2-4, +.uk-width-3-6, +.uk-width-5-10 { + width: 50%; +} +/* Thirds */ +.uk-width-1-3, +.uk-width-2-6 { + width: 33.333%; +} +.uk-width-2-3, +.uk-width-4-6 { + width: 66.666%; +} +/* Quarters */ +.uk-width-1-4 { + width: 25%; +} +.uk-width-3-4 { + width: 75%; +} +/* Fifths */ +.uk-width-1-5, +.uk-width-2-10 { + width: 20%; +} +.uk-width-2-5, +.uk-width-4-10 { + width: 40%; +} +.uk-width-3-5, +.uk-width-6-10 { + width: 60%; +} +.uk-width-4-5, +.uk-width-8-10 { + width: 80%; +} +/* Sixths */ +.uk-width-1-6 { + width: 16.666%; +} +.uk-width-5-6 { + width: 83.333%; +} +/* Tenths */ +.uk-width-1-10 { + width: 10%; +} +.uk-width-3-10 { + width: 30%; +} +.uk-width-7-10 { + width: 70%; +} +.uk-width-9-10 { + width: 90%; +} +/* Phone landscape and bigger */ +@media (min-width: 480px) { + /* Whole */ + .uk-width-small-1-1 { + width: 100%; + } + /* Halves */ + .uk-width-small-1-2, + .uk-width-small-2-4, + .uk-width-small-3-6, + .uk-width-small-5-10 { + width: 50%; + } + /* Thirds */ + .uk-width-small-1-3, + .uk-width-small-2-6 { + width: 33.333%; + } + .uk-width-small-2-3, + .uk-width-small-4-6 { + width: 66.666%; + } + /* Quarters */ + .uk-width-small-1-4 { + width: 25%; + } + .uk-width-small-3-4 { + width: 75%; + } + /* Fifths */ + .uk-width-small-1-5, + .uk-width-small-2-10 { + width: 20%; + } + .uk-width-small-2-5, + .uk-width-small-4-10 { + width: 40%; + } + .uk-width-small-3-5, + .uk-width-small-6-10 { + width: 60%; + } + .uk-width-small-4-5, + .uk-width-small-8-10 { + width: 80%; + } + /* Sixths */ + .uk-width-small-1-6 { + width: 16.666%; + } + .uk-width-small-5-6 { + width: 83.333%; + } + /* Tenths */ + .uk-width-small-1-10 { + width: 10%; + } + .uk-width-small-3-10 { + width: 30%; + } + .uk-width-small-7-10 { + width: 70%; + } + .uk-width-small-9-10 { + width: 90%; + } +} +/* Tablet and bigger */ +@media (min-width: 768px) { + /* Whole */ + .uk-width-medium-1-1 { + width: 100%; + } + /* Halves */ + .uk-width-medium-1-2, + .uk-width-medium-2-4, + .uk-width-medium-3-6, + .uk-width-medium-5-10 { + width: 50%; + } + /* Thirds */ + .uk-width-medium-1-3, + .uk-width-medium-2-6 { + width: 33.333%; + } + .uk-width-medium-2-3, + .uk-width-medium-4-6 { + width: 66.666%; + } + /* Quarters */ + .uk-width-medium-1-4 { + width: 25%; + } + .uk-width-medium-3-4 { + width: 75%; + } + /* Fifths */ + .uk-width-medium-1-5, + .uk-width-medium-2-10 { + width: 20%; + } + .uk-width-medium-2-5, + .uk-width-medium-4-10 { + width: 40%; + } + .uk-width-medium-3-5, + .uk-width-medium-6-10 { + width: 60%; + } + .uk-width-medium-4-5, + .uk-width-medium-8-10 { + width: 80%; + } + /* Sixths */ + .uk-width-medium-1-6 { + width: 16.666%; + } + .uk-width-medium-5-6 { + width: 83.333%; + } + /* Tenths */ + .uk-width-medium-1-10 { + width: 10%; + } + .uk-width-medium-3-10 { + width: 30%; + } + .uk-width-medium-7-10 { + width: 70%; + } + .uk-width-medium-9-10 { + width: 90%; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + /* Whole */ + .uk-width-large-1-1 { + width: 100%; + } + /* Halves */ + .uk-width-large-1-2, + .uk-width-large-2-4, + .uk-width-large-3-6, + .uk-width-large-5-10 { + width: 50%; + } + /* Thirds */ + .uk-width-large-1-3, + .uk-width-large-2-6 { + width: 33.333%; + } + .uk-width-large-2-3, + .uk-width-large-4-6 { + width: 66.666%; + } + /* Quarters */ + .uk-width-large-1-4 { + width: 25%; + } + .uk-width-large-3-4 { + width: 75%; + } + /* Fifths */ + .uk-width-large-1-5, + .uk-width-large-2-10 { + width: 20%; + } + .uk-width-large-2-5, + .uk-width-large-4-10 { + width: 40%; + } + .uk-width-large-3-5, + .uk-width-large-6-10 { + width: 60%; + } + .uk-width-large-4-5, + .uk-width-large-8-10 { + width: 80%; + } + /* Sixths */ + .uk-width-large-1-6 { + width: 16.666%; + } + .uk-width-large-5-6 { + width: 83.333%; + } + /* Tenths */ + .uk-width-large-1-10 { + width: 10%; + } + .uk-width-large-3-10 { + width: 30%; + } + .uk-width-large-7-10 { + width: 70%; + } + .uk-width-large-9-10 { + width: 90%; + } +} +/* Sub-object: `uk-push-*` and `uk-pull-*` + ========================================================================== */ +/* + * Source ordering + * Works only with `uk-width-medium-*` + */ +/* Tablet and bigger */ +@media (min-width: 768px) { + [class*='uk-push-'], + [class*='uk-pull-'] { + position: relative; + } + /* + * Push + */ + /* Halves */ + .uk-push-1-2, + .uk-push-2-4, + .uk-push-3-6, + .uk-push-5-10 { + left: 50%; + } + /* Thirds */ + .uk-push-1-3, + .uk-push-2-6 { + left: 33.333%; + } + .uk-push-2-3, + .uk-push-4-6 { + left: 66.666%; + } + /* Quarters */ + .uk-push-1-4 { + left: 25%; + } + .uk-push-3-4 { + left: 75%; + } + /* Fifths */ + .uk-push-1-5, + .uk-push-2-10 { + left: 20%; + } + .uk-push-2-5, + .uk-push-4-10 { + left: 40%; + } + .uk-push-3-5, + .uk-push-6-10 { + left: 60%; + } + .uk-push-4-5, + .uk-push-8-10 { + left: 80%; + } + /* Sixths */ + .uk-push-1-6 { + left: 16.666%; + } + .uk-push-5-6 { + left: 83.333%; + } + /* Tenths */ + .uk-push-1-10 { + left: 10%; + } + .uk-push-3-10 { + left: 30%; + } + .uk-push-7-10 { + left: 70%; + } + .uk-push-9-10 { + left: 90%; + } + /* + * Pull + */ + /* Halves */ + .uk-pull-1-2, + .uk-pull-2-4, + .uk-pull-3-6, + .uk-pull-5-10 { + left: -50%; + } + /* Thirds */ + .uk-pull-1-3, + .uk-pull-2-6 { + left: -33.333%; + } + .uk-pull-2-3, + .uk-pull-4-6 { + left: -66.666%; + } + /* Quarters */ + .uk-pull-1-4 { + left: -25%; + } + .uk-pull-3-4 { + left: -75%; + } + /* Fifths */ + .uk-pull-1-5, + .uk-pull-2-10 { + left: -20%; + } + .uk-pull-2-5, + .uk-pull-4-10 { + left: -40%; + } + .uk-pull-3-5, + .uk-pull-6-10 { + left: -60%; + } + .uk-pull-4-5, + .uk-pull-8-10 { + left: -80%; + } + /* Sixths */ + .uk-pull-1-6 { + left: -16.666%; + } + .uk-pull-5-6 { + left: -83.333%; + } + /* Tenths */ + .uk-pull-1-10 { + left: -10%; + } + .uk-pull-3-10 { + left: -30%; + } + .uk-pull-7-10 { + left: -70%; + } + .uk-pull-9-10 { + left: -90%; + } +} +/* ======================================================================== + Component: Panel + ========================================================================== */ +/* + * 1. Needed for `a` elements + * 2. Create position context for badges + */ +.uk-panel { + /* 1 */ + display: block; + /* 2 */ + position: relative; +} +/* + * Allow panels to be anchors + */ +.uk-panel, +.uk-panel:hover { + text-decoration: none; +} +/* + * Micro clearfix to make panels more robust + */ +.uk-panel:before, +.uk-panel:after { + content: ""; + display: table; +} +.uk-panel:after { + clear: both; +} +/* + * Remove margin from the last-child if not `uk-widget-title` + */ +.uk-panel > :not(.uk-panel-title):last-child { + margin-bottom: 0; +} +/* Sub-object: `uk-panel-title` + ========================================================================== */ +.uk-panel-title { + margin-top: 0; + margin-bottom: 15px; + font-size: 18px; + line-height: 24px; + font-weight: normal; + text-transform: none; + color: #444444; +} +/* Sub-object: `uk-panel-badge` + ========================================================================== */ +.uk-panel-badge { + position: absolute; + top: 0; + right: 0; + z-index: 1; +} +/* Sub-object: `uk-panel-teaser` + ========================================================================== */ +.uk-panel-teaser { + margin-bottom: 15px; +} +/* Modifier: `uk-panel-box` + ========================================================================== */ +.uk-panel-box { + padding: 15px; + background: #fafafa; + color: #444444; + border: 1px solid #dddddd; + border-radius: 4px; +} +.uk-panel-box-hover:hover { + color: #444444; +} +.uk-panel-box .uk-panel-title { + color: #444444; +} +.uk-panel-box .uk-panel-badge { + top: 10px; + right: 10px; +} +.uk-panel-box .uk-panel-teaser { + margin-top: -16px; + margin-left: -16px; + margin-right: -16px; +} +/* + * Nav in panel + */ +.uk-panel-box > .uk-nav-side { + margin: 0 -15px; +} +/* + * Sub-modifier: `uk-panel-box-primary` + */ +.uk-panel-box-primary { + background-color: #ebf7fd; + color: #2d7091; + border-color: rgba(45, 112, 145, 0.3); +} +.uk-panel-box-primary-hover:hover { + color: #2d7091; +} +.uk-panel-box-primary .uk-panel-title { + color: #2d7091; +} +/* + * Sub-modifier: `uk-panel-box-secondary` + */ +.uk-panel-box-secondary { + background-color: #ffffff; + color: #444444; +} +.uk-panel-box-secondary-hover:hover { + color: #444444; +} +.uk-panel-box-secondary .uk-panel-title { + color: #444444; +} +/* Modifier: `uk-panel-hover` + ========================================================================== */ +.uk-panel-hover { + padding: 15px; + color: #444444; + border: 1px solid transparent; + border-radius: 4px; +} +.uk-panel-hover:hover { + background: #fafafa; + color: #444444; + border-color: #dddddd; +} +.uk-panel-hover .uk-panel-badge { + top: 10px; + right: 10px; +} +.uk-panel-hover .uk-panel-teaser { + margin-top: -16px; + margin-left: -16px; + margin-right: -16px; +} +/* Modifier: `uk-panel-header` + ========================================================================== */ +.uk-panel-header .uk-panel-title { + padding-bottom: 10px; + border-bottom: 1px solid #dddddd; + color: #444444; +} +/* Modifier: `uk-panel-space` + ========================================================================== */ +.uk-panel-space { + padding: 30px; +} +.uk-panel-space .uk-panel-badge { + top: 30px; + right: 30px; +} +/* Modifier: `uk-panel-divider` + ========================================================================== */ +.uk-panel + .uk-panel-divider { + margin-top: 50px !important; +} +.uk-panel + .uk-panel-divider:before { + content: ""; + display: block; + position: absolute; + top: -25px; + left: 0; + right: 0; + border-top: 1px solid #dddddd; +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + .uk-panel + .uk-panel-divider { + margin-top: 70px !important; + } + .uk-panel + .uk-panel-divider:before { + top: -35px; + } +} +.uk-panel-box .uk-panel-teaser { + border-top-left-radius: 4px; + border-top-right-radius: 4px; + overflow: hidden; + -webkit-transform: translateZ(0); +} +/* ======================================================================== + Component: Block + ========================================================================== */ +.uk-block { + position: relative; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding-top: 20px; + padding-bottom: 20px; +} +/* Phone landscape and bigger */ +@media (min-width: 768px) { + .uk-block { + padding-top: 50px; + padding-bottom: 50px; + } +} +/* + * Micro clearfix to make blocks more robust + */ +.uk-block:before, +.uk-block:after { + content: ""; + display: table; +} +.uk-block:after { + clear: both; +} +/* + * Remove margin from the last-child + */ +.uk-block > :last-child { + margin-bottom: 0; +} +/* Padding Modifier + ========================================================================== */ +/* + * Large padding + */ +.uk-block-large { + padding-top: 20px; + padding-bottom: 20px; +} +/* Tablets and bigger */ +@media (min-width: 768px) { + .uk-block-large { + padding-top: 50px; + padding-bottom: 50px; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-block-large { + padding-top: 100px; + padding-bottom: 100px; + } +} +/* Color Modifier + ========================================================================== */ +/* + * Default + */ +.uk-block-default { + background: #ffffff; +} +/* + * Muted + */ +.uk-block-muted { + background: #f9f9f9; +} +/* + * Primary + */ +.uk-block-primary { + background: #00a8e6; +} +/* + * Secondary + */ +.uk-block-secondary { + background: #222222; +} +/* + * Adjust padding between equal colored blocks + */ +.uk-block-default + .uk-block-default, +.uk-block-muted + .uk-block-muted, +.uk-block-primary + .uk-block-primary, +.uk-block-secondary + .uk-block-secondary { + padding-top: 0; +} +/* ======================================================================== + Component: Article + ========================================================================== */ +/* + * Micro clearfix to make articles more robust + */ +.uk-article:before, +.uk-article:after { + content: ""; + display: table; +} +.uk-article:after { + clear: both; +} +/* + * Remove margin from the last-child + */ +.uk-article > :last-child { + margin-bottom: 0; +} +/* + * Vertical gutter for articles + */ +.uk-article + .uk-article { + margin-top: 25px; +} +/* Sub-object `uk-article-title` + ========================================================================== */ +.uk-article-title { + font-size: 36px; + line-height: 42px; + font-weight: normal; + text-transform: none; +} +.uk-article-title a { + color: inherit; + text-decoration: none; +} +/* Sub-object `uk-article-meta` + ========================================================================== */ +.uk-article-meta { + font-size: 12px; + line-height: 18px; + color: #999999; +} +/* Sub-object `uk-article-lead` + ========================================================================== */ +.uk-article-lead { + color: #444444; + font-size: 18px; + line-height: 24px; + font-weight: normal; +} +/* Sub-object `uk-article-divider` + ========================================================================== */ +.uk-article-divider { + margin-bottom: 25px; + border-color: #dddddd; +} +* + .uk-article-divider { + margin-top: 25px; +} +.uk-article + .uk-article { + padding-top: 25px; + border-top: 1px solid #dddddd; +} +/* ======================================================================== + Component: Comment + ========================================================================== */ +/* Sub-object `uk-comment-header` + ========================================================================== */ +.uk-comment-header { + margin-bottom: 15px; + padding: 10px; + border: 1px solid #dddddd; + border-radius: 4px; + background: #fafafa; +} +/* + * Micro clearfix + */ +.uk-comment-header:before, +.uk-comment-header:after { + content: ""; + display: table; +} +.uk-comment-header:after { + clear: both; +} +/* Sub-object `uk-comment-avatar` + ========================================================================== */ +.uk-comment-avatar { + margin-right: 15px; + float: left; +} +/* Sub-object `uk-comment-title` + ========================================================================== */ +.uk-comment-title { + margin: 5px 0 0 0; + font-size: 16px; + line-height: 22px; +} +/* Sub-object `uk-comment-meta` + ========================================================================== */ +.uk-comment-meta { + margin: 2px 0 0 0; + font-size: 11px; + line-height: 16px; + color: #999999; +} +/* Sub-object `uk-comment-body` + ========================================================================== */ +.uk-comment-body { + padding-left: 10px; + padding-right: 10px; +} +/* + * Remove margin from the last-child + */ +.uk-comment-body > :last-child { + margin-bottom: 0; +} +/* Sub-object `uk-comment-list` + ========================================================================== */ +.uk-comment-list { + padding: 0; + list-style: none; +} +.uk-comment-list .uk-comment + ul { + margin: 25px 0 0 0; + list-style: none; +} +.uk-comment-list > li:nth-child(n+2), +.uk-comment-list .uk-comment + ul > li:nth-child(n+2) { + margin-top: 25px; +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-comment-list .uk-comment + ul { + padding-left: 100px; + } +} +/* Modifier `uk-comment-primary` + ========================================================================== */ +.uk-comment-primary .uk-comment-header { + border-color: rgba(45, 112, 145, 0.3); + background-color: #ebf7fd; + color: #2d7091; + text-shadow: 0 1px 0 #ffffff; +} +/* ======================================================================== + Component: Cover + ========================================================================== */ +/* + * Background image always covers and centers its element + */ +.uk-cover-background { + background-position: 50% 50%; + background-size: cover; + background-repeat: no-repeat; +} +/* + * Emulates image cover, works with video and image elements + * 1. Parent container which clips resized object + * 2. Resizes the object to always covers its container + * 3. Reset the responsive image CSS + * 4. Center object + */ +/* 1 */ +.uk-cover { + overflow: hidden; +} +.uk-cover-object { + /* 2 */ + width: auto; + height: auto; + min-width: 100%; + min-height: 100%; + /* 3 */ + max-width: none; + /* 4 */ + position: relative; + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); +} +/* + * To center iframes use `data-uk-cover` JavaScript + */ +[data-uk-cover] { + position: relative; + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); +} +/* ======================================================================== + Component: Nav + ========================================================================== */ +.uk-nav, +.uk-nav ul { + margin: 0; + padding: 0; + list-style: none; +} +/* + * Items + */ +.uk-nav li > a { + display: block; + text-decoration: none; +} +.uk-nav > li > a { + padding: 5px 15px; +} +/* + * Nested items + */ +.uk-nav ul { + padding-left: 15px; +} +.uk-nav ul a { + padding: 2px 0; +} +/* + * Item subtitle + */ +.uk-nav li > a > div { + font-size: 12px; + line-height: 18px; +} +/* Sub-object: `uk-nav-header` + ========================================================================== */ +.uk-nav-header { + padding: 5px 15px; + text-transform: uppercase; + font-weight: bold; + font-size: 12px; +} +.uk-nav-header:not(:first-child) { + margin-top: 15px; +} +/* Sub-object: `uk-nav-divider` + ========================================================================== */ +.uk-nav-divider { + margin: 9px 15px; +} +/* Sub-object: `uk-nav-sub` + ========================================================================== */ +/* + * `ul` needed for higher specificity to override padding + */ +ul.uk-nav-sub { + padding: 5px 0 5px 15px; +} +/* Modifier: `uk-nav-parent-icon` + ========================================================================== */ +.uk-nav-parent-icon > .uk-parent > a:after { + content: "\f104"; + width: 20px; + margin-right: -10px; + float: right; + font-family: FontAwesome; + text-align: center; +} +.uk-nav-parent-icon > .uk-parent.uk-open > a:after { + content: "\f107"; +} +/* Modifier `uk-nav-side` + ========================================================================== */ +/* + * Items + */ +.uk-nav-side > li > a { + color: #444444; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-nav-side > li > a:hover, +.uk-nav-side > li > a:focus { + background: rgba(0, 0, 0, 0.03); + color: #444444; + /* 2 */ + outline: none; + box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.06); + text-shadow: 0 -1px 0 #ffffff; +} +/* Active */ +.uk-nav-side > li.uk-active > a { + background: #00a8e6; + color: #ffffff; + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1); +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-side .uk-nav-header { + color: #444444; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-side .uk-nav-divider { + border-top: 1px solid #dddddd; + box-shadow: 0 1px 0 #ffffff; +} +/* + * Nested items + */ +.uk-nav-side ul a { + color: #0077dd; +} +.uk-nav-side ul a:hover { + color: #005599; +} +/* Modifier `uk-nav-dropdown` + ========================================================================== */ +/* + * Items + */ +.uk-nav-dropdown > li > a { + color: #444444; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-nav-dropdown > li > a:hover, +.uk-nav-dropdown > li > a:focus { + background: #00a8e6; + color: #ffffff; + /* 2 */ + outline: none; + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1); +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-dropdown .uk-nav-header { + color: #999999; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-dropdown .uk-nav-divider { + border-top: 1px solid #dddddd; +} +/* + * Nested items + */ +.uk-nav-dropdown ul a { + color: #0077dd; +} +.uk-nav-dropdown ul a:hover { + color: #005599; +} +/* Modifier `uk-nav-navbar` + ========================================================================== */ +/* + * Items + */ +.uk-nav-navbar > li > a { + color: #444444; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-nav-navbar > li > a:hover, +.uk-nav-navbar > li > a:focus { + background: #00a8e6; + color: #ffffff; + /* 2 */ + outline: none; + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1); +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-navbar .uk-nav-header { + color: #999999; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-navbar .uk-nav-divider { + border-top: 1px solid #dddddd; +} +/* + * Nested items + */ +.uk-nav-navbar ul a { + color: #0077dd; +} +.uk-nav-navbar ul a:hover { + color: #005599; +} +/* Modifier `uk-nav-offcanvas` + ========================================================================== */ +/* + * Items + */ +.uk-nav-offcanvas > li > a { + color: #cccccc; + padding: 10px 15px; + border-top: 1px solid rgba(0, 0, 0, 0.3); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); + text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); +} +/* + * Hover + * No hover on touch devices because it behaves buggy in fixed offcanvas + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-nav-offcanvas > .uk-open > a, +html:not(.uk-touch) .uk-nav-offcanvas > li > a:hover, +html:not(.uk-touch) .uk-nav-offcanvas > li > a:focus { + background: #404040; + color: #ffffff; + /* 2 */ + outline: none; +} +/* + * Active + * `html .uk-nav` needed for higher specificity to override hover + */ +html .uk-nav.uk-nav-offcanvas > li.uk-active > a { + background: #1a1a1a; + color: #ffffff; + box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3); +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-offcanvas .uk-nav-header { + color: #777777; + margin-top: 0; + border-top: 1px solid rgba(0, 0, 0, 0.3); + background: #404040; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); + text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-offcanvas .uk-nav-divider { + border-top: 1px solid rgba(255, 255, 255, 0.01); + margin: 0; + height: 4px; + background: rgba(0, 0, 0, 0.2); + box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3); +} +/* + * Nested items + * No hover on touch devices because it behaves buggy in fixed offcanvas + */ +.uk-nav-offcanvas ul a { + color: #cccccc; +} +html:not(.uk-touch) .uk-nav-offcanvas ul a:hover { + color: #ffffff; +} +/* + * Modifier `uk-nav-offcanvas` + */ +.uk-nav-offcanvas { + border-bottom: 1px solid rgba(0, 0, 0, 0.3); + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05); +} +/* + * Sub-object: `uk-nav-sub` + */ +.uk-nav-offcanvas .uk-nav-sub { + border-top: 1px solid rgba(0, 0, 0, 0.3); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); +} +/* ======================================================================== + Component: Navbar + ========================================================================== */ +.uk-navbar { + background: #f5f5f5; + color: #444444; + border: 1px solid rgba(0, 0, 0, 0.06); + border-radius: 4px; +} +/* + * Micro clearfix + */ +.uk-navbar:before, +.uk-navbar:after { + content: ""; + display: table; +} +.uk-navbar:after { + clear: both; +} +/* Sub-object: `uk-navbar-nav` + ========================================================================== */ +.uk-navbar-nav { + margin: 0; + padding: 0; + list-style: none; + float: left; +} +/* + * 1. Create position context for dropdowns + */ +.uk-navbar-nav > li { + float: left; + /* 1 */ + position: relative; +} +/* + * 1. Dimensions + * 2. Style + */ +.uk-navbar-nav > li > a { + display: block; + -moz-box-sizing: border-box; + box-sizing: border-box; + text-decoration: none; + /* 1 */ + height: 41px; + padding: 0 15px; + line-height: 40px; + /* 2 */ + color: #444444; + font-size: 14px; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-weight: normal; + margin-top: -1px; + margin-left: -1px; + border: 1px solid transparent; + border-bottom-width: 0; + text-shadow: 0 1px 0 #ffffff; +} +/* Appear not as link */ +.uk-navbar-nav > li > a[href='#'] { + cursor: text; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Also apply if dropdown is opened + * 3. Remove default focus style + */ +.uk-navbar-nav > li:hover > a, +.uk-navbar-nav > li > a:focus, +.uk-navbar-nav > li.uk-open > a { + background-color: #fafafa; + color: #444444; + /* 3 */ + outline: none; + position: relative; + z-index: 1; + border-left-color: rgba(0, 0, 0, 0.1); + border-right-color: rgba(0, 0, 0, 0.1); + border-top-color: rgba(0, 0, 0, 0.1); +} +/* OnClick */ +.uk-navbar-nav > li > a:active { + background-color: #eeeeee; + color: #444444; + border-left-color: rgba(0, 0, 0, 0.1); + border-right-color: rgba(0, 0, 0, 0.1); + border-top-color: rgba(0, 0, 0, 0.2); +} +/* Active */ +.uk-navbar-nav > li.uk-active > a { + background-color: #fafafa; + color: #444444; + border-left-color: rgba(0, 0, 0, 0.1); + border-right-color: rgba(0, 0, 0, 0.1); + border-top-color: rgba(0, 0, 0, 0.1); +} +/* Sub-objects: `uk-navbar-nav-subtitle` + ========================================================================== */ +.uk-navbar-nav .uk-navbar-nav-subtitle { + line-height: 28px; +} +.uk-navbar-nav-subtitle > div { + margin-top: -6px; + font-size: 10px; + line-height: 12px; +} +/* Sub-objects: `uk-navbar-content`, `uk-navbar-brand`, `uk-navbar-toggle` + ========================================================================== */ +/* + * Imitate navbar items + */ +.uk-navbar-content, +.uk-navbar-brand, +.uk-navbar-toggle { + -moz-box-sizing: border-box; + box-sizing: border-box; + display: block; + height: 41px; + padding: 0 15px; + float: left; + margin-top: -1px; + text-shadow: 0 1px 0 #ffffff; +} +/* + * Helper to center all child elements vertically + */ +.uk-navbar-content:before, +.uk-navbar-brand:before, +.uk-navbar-toggle:before { + content: ''; + display: inline-block; + height: 100%; + vertical-align: middle; +} +/* Sub-objects: `uk-navbar-content` + ========================================================================== */ +/* + * Better sibling spacing + */ +.uk-navbar-content + .uk-navbar-content:not(.uk-navbar-center) { + padding-left: 0; +} +/* + * Link colors + */ +.uk-navbar-content > a:not([class]) { + color: #0077dd; +} +.uk-navbar-content > a:not([class]):hover { + color: #005599; +} +/* Sub-objects: `uk-navbar-brand` + ========================================================================== */ +.uk-navbar-brand { + font-size: 18px; + color: #444444; + text-decoration: none; +} +/* + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-navbar-brand:hover, +.uk-navbar-brand:focus { + color: #444444; + text-decoration: none; + /* 2 */ + outline: none; +} +/* Sub-object: `uk-navbar-toggle` + ========================================================================== */ +.uk-navbar-toggle { + font-size: 18px; + color: #444444; + text-decoration: none; +} +/* + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-navbar-toggle:hover, +.uk-navbar-toggle:focus { + color: #444444; + text-decoration: none; + /* 2 */ + outline: none; +} +/* + * 1. Center icon vertically + */ +.uk-navbar-toggle:after { + content: "\f0c9"; + font-family: FontAwesome; + /* 1 */ + vertical-align: middle; +} +.uk-navbar-toggle-alt:after { + content: "\f002"; +} +/* Sub-object: `uk-navbar-center` + ========================================================================== */ +/* + * The element with this class needs to be last child in the navbar + * 1. This hack is needed because other float elements shift centered text + */ +.uk-navbar-center { + float: none; + text-align: center; + /* 1 */ + max-width: 50%; + margin-left: auto; + margin-right: auto; +} +/* Sub-object: `uk-navbar-flip` + ========================================================================== */ +.uk-navbar-flip { + float: right; +} +/* + * Apply same `border-radius` as `uk-navbar` + */ +.uk-navbar-nav:first-child > li:first-child > a { + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; +} +/* + * Sub-modifier `uk-navbar-flip` + */ +/* Collapse border */ +.uk-navbar-flip .uk-navbar-nav > li > a { + margin-left: 0; + margin-right: -1px; +} +/* Apply same `border-radius` as `uk-navbar` */ +.uk-navbar-flip .uk-navbar-nav:first-child > li:first-child > a { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} +.uk-navbar-flip .uk-navbar-nav:last-child > li:last-child > a { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; +} +/* + * Sub-modifier `uk-navbar-attached` + */ +.uk-navbar-attached { + border-top-color: transparent; + border-left-color: transparent; + border-right-color: transparent; + border-radius: 0; +} +.uk-navbar-attached .uk-navbar-nav > li > a { + border-radius: 0 !important; +} +/* ======================================================================== + Component: Subnav + ========================================================================== */ +/* + * 1. Gutter + * 2. Remove default list style + */ +.uk-subnav { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + /* 1 */ + margin-left: -10px; + margin-top: -10px; + /* 2 */ + padding: 0; + list-style: none; +} +/* + * 1. Space is allocated solely based on content dimensions + * 2. Horizontal gutter is using `padding` so `uk-width-*` classes can be applied + * 3. Create position context for dropdowns + */ +.uk-subnav > * { + /* 1 */ + -ms-flex: none; + -webkit-flex: none; + flex: none; + /* 2 */ + padding-left: 10px; + margin-top: 10px; + /* 3 */ + position: relative; +} +/* + * DEPRECATED IE9 Support + */ +.uk-subnav:before, +.uk-subnav:after { + content: ""; + display: block; + overflow: hidden; +} +.uk-subnav:after { + clear: both; +} +.uk-subnav > * { + float: left; +} +/* Items + ========================================================================== */ +.uk-subnav > * > * { + display: inline-block; + color: #444444; +} +/* + * Hover + * 1. Apply hover style also to focus state + */ +.uk-subnav > * > :hover, +.uk-subnav > * > :focus { + color: #0077dd; + text-decoration: none; +} +/* + * Active + */ +.uk-subnav > .uk-active > * { + color: #0077dd; +} +/* Modifier: 'subnav-line' + ========================================================================== */ +.uk-subnav-line > :before { + content: ""; + display: inline-block; + height: 10px; + vertical-align: middle; +} +.uk-subnav-line > :nth-child(n+2):before { + margin-right: 10px; + border-left: 1px solid #dddddd; +} +/* Modifier: 'subnav-pill' + ========================================================================== */ +.uk-subnav-pill > * > * { + padding: 3px 9px; + border-radius: 4px; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-subnav-pill > * > :hover, +.uk-subnav-pill > * > :focus { + background: #fafafa; + color: #444444; + text-decoration: none; + /* 2 */ + outline: none; + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); +} +/* + * Active + * `li` needed for higher specificity to override hover + */ +.uk-subnav-pill > .uk-active > * { + background: #00a8e6; + color: #ffffff; + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); +} +/* Disabled state + ========================================================================== */ +.uk-subnav > .uk-disabled > * { + background: none; + color: #999999; + text-decoration: none; + cursor: text; + box-shadow: none; +} +/* ======================================================================== + Component: Breadcrumb + ========================================================================== */ +/* + * 1. Remove default list style + * 2. Remove whitespace between child elements when using `inline-block` + */ +.uk-breadcrumb { + /* 1 */ + padding: 0; + list-style: none; + /* 2 */ + font-size: 0.001px; +} +/* Items + ========================================================================== */ +/* + * Reset whitespace hack + */ +.uk-breadcrumb > li { + font-size: 1rem; + vertical-align: top; +} +.uk-breadcrumb > li, +.uk-breadcrumb > li > a, +.uk-breadcrumb > li > span { + display: inline-block; +} +.uk-breadcrumb > li:nth-child(n+2):before { + content: "/"; + display: inline-block; + margin: 0 8px; +} +/* + * Disabled + */ +.uk-breadcrumb > li:not(.uk-active) > span { + color: #999999; +} +/* ======================================================================== + Component: Pagination + ========================================================================== */ +/* + * 1. Remove default list style + * 2. Center pagination by default + * 3. Remove whitespace between child elements when using `inline-block` + */ +.uk-pagination { + /* 1 */ + padding: 0; + list-style: none; + /* 2 */ + text-align: center; + /* 3 */ + font-size: 0.001px; +} +/* + * Micro clearfix + * Needed if `uk-pagination-previous` or `uk-pagination-next` sub-objects are used + */ +.uk-pagination:before, +.uk-pagination:after { + content: ""; + display: table; +} +.uk-pagination:after { + clear: both; +} +/* Items + ========================================================================== */ +/* + * 1. Reset whitespace hack + * 2. Remove the gap at the bottom of it container + */ +.uk-pagination > li { + display: inline-block; + /* 1 */ + font-size: 1rem; + /* 2 */ + vertical-align: top; +} +.uk-pagination > li:nth-child(n+2) { + margin-left: 5px; +} +/* + * 1. Makes pagination more robust against different box-sizing use + * 2. Reset text-align to center if alignment modifier is used + */ +.uk-pagination > li > a, +.uk-pagination > li > span { + display: inline-block; + min-width: 16px; + padding: 3px 5px; + line-height: 20px; + text-decoration: none; + /* 1 */ + -moz-box-sizing: content-box; + box-sizing: content-box; + /* 2 */ + text-align: center; + border: 1px solid rgba(0, 0, 0, 0.06); + border-radius: 4px; +} +/* + * Links + */ +.uk-pagination > li > a { + background: #f5f5f5; + color: #444444; + text-shadow: 0 1px 0 #ffffff; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-pagination > li > a:hover, +.uk-pagination > li > a:focus { + background-color: #fafafa; + color: #444444; + /* 2 */ + outline: none; + border-color: rgba(0, 0, 0, 0.16); +} +/* OnClick */ +.uk-pagination > li > a:active { + background-color: #eeeeee; + color: #444444; +} +/* + * Active + */ +.uk-pagination > .uk-active > span { + background: #00a8e6; + color: #ffffff; + border-color: transparent; + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1); +} +/* + * Disabled + */ +.uk-pagination > .uk-disabled > span { + background-color: #fafafa; + color: #999999; + border: 1px solid rgba(0, 0, 0, 0.06); + text-shadow: 0 1px 0 #ffffff; +} +/* Previous and next navigation + ========================================================================== */ +.uk-pagination-previous { + float: left; +} +.uk-pagination-next { + float: right; +} +/* Alignment modifiers + ========================================================================== */ +.uk-pagination-left { + text-align: left; +} +.uk-pagination-right { + text-align: right; +} +/* ======================================================================== + Component: Tab + ========================================================================== */ +.uk-tab { + margin: 0; + padding: 0; + list-style: none; + border-bottom: 1px solid #dddddd; +} +/* + * Micro clearfix on the deepest container + */ +.uk-tab:before, +.uk-tab:after { + content: ""; + display: table; +} +.uk-tab:after { + clear: both; +} +/* + * Items + * 1. Create position context for dropdowns + */ +.uk-tab > li { + margin-bottom: -1px; + float: left; + /* 1 */ + position: relative; +} +.uk-tab > li > a { + display: block; + padding: 8px 12px 8px 12px; + border: 1px solid transparent; + border-bottom-width: 0; + color: #0077dd; + text-decoration: none; + border-radius: 4px 4px 0 0; + text-shadow: 0 1px 0 #ffffff; +} +.uk-tab > li:nth-child(n+2) > a { + margin-left: 5px; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Also apply if dropdown is opened + * 3. Remove default focus style + */ +.uk-tab > li > a:hover, +.uk-tab > li > a:focus, +.uk-tab > li.uk-open > a { + border-color: rgba(0, 0, 0, 0.06); + background: #f5f5f5; + color: #005599; + /* 2 */ + outline: none; +} +.uk-tab > li:not(.uk-active) > a:hover, +.uk-tab > li:not(.uk-active) > a:focus, +.uk-tab > li.uk-open:not(.uk-active) > a { + margin-bottom: 1px; + padding-bottom: 7px; +} +/* Active */ +.uk-tab > li.uk-active > a { + border-color: #dddddd; + border-bottom-color: transparent; + background: #ffffff; + color: #444444; +} +/* Disabled */ +.uk-tab > li.uk-disabled > a { + color: #999999; + cursor: text; +} +.uk-tab > li.uk-disabled > a:hover, +.uk-tab > li.uk-disabled > a:focus, +.uk-tab > li.uk-disabled.uk-active > a { + background: none; + border-color: transparent; +} +/* Modifier: 'tab-flip' + ========================================================================== */ +.uk-tab-flip > li { + float: right; +} +.uk-tab-flip > li:nth-child(n+2) > a { + margin-left: 0; + margin-right: 5px; +} +/* Modifier: 'tab-responsive' + ========================================================================== */ +.uk-tab > li.uk-tab-responsive > a { + margin-left: 0; + margin-right: 0; +} +/* + * Icon + */ +.uk-tab-responsive > a:before { + content: "\f0c9\00a0"; + font-family: FontAwesome; +} +/* Modifier: 'tab-center' + ========================================================================== */ +.uk-tab-center { + border-bottom: 1px solid #dddddd; +} +.uk-tab-center-bottom { + border-bottom: none; + border-top: 1px solid #dddddd; +} +.uk-tab-center:before, +.uk-tab-center:after { + content: ""; + display: table; +} +.uk-tab-center:after { + clear: both; +} +/* + * 1. Using `right` to prevent vertical scrollbar caused by centering if to many tabs + */ +.uk-tab-center .uk-tab { + position: relative; + right: 50%; + border: none; + float: right; +} +.uk-tab-center .uk-tab > li { + position: relative; + right: -50%; +} +.uk-tab-center .uk-tab > li > a { + text-align: center; +} +/* Modifier: 'tab-bottom' + ========================================================================== */ +.uk-tab-bottom { + border-top: 1px solid #dddddd; + border-bottom: none; +} +.uk-tab-bottom > li { + margin-top: -1px; + margin-bottom: 0; +} +.uk-tab-bottom > li > a { + padding-top: 8px; + padding-bottom: 8px; + border-bottom-width: 1px; + border-top-width: 0; +} +.uk-tab-bottom > li:not(.uk-active) > a:hover, +.uk-tab-bottom > li:not(.uk-active) > a:focus, +.uk-tab-bottom > li.uk-open:not(.uk-active) > a { + margin-bottom: 0; + margin-top: 1px; + padding-bottom: 8px; + padding-top: 7px; +} +.uk-tab-bottom > li.uk-active > a { + border-top-color: transparent; + border-bottom-color: #dddddd; +} +/* Modifier: 'tab-grid' + ========================================================================== */ +/* + * 1. Create position context to prevent hidden border because of negative `z-index` + */ +.uk-tab-grid { + margin-left: -5px; + border-bottom: none; + /* 1 */ + position: relative; + z-index: 0; +} +.uk-tab-grid:before { + display: block; + position: absolute; + left: 5px; + right: 0; + bottom: -1px; + border-top: 1px solid #dddddd; + /* 1 */ + z-index: -1; +} +.uk-tab-grid > li:first-child > a { + margin-left: 5px; +} +.uk-tab-grid > li > a { + text-align: center; +} +/* + * If `uk-tab-bottom` + */ +.uk-tab-grid.uk-tab-bottom { + border-top: none; +} +.uk-tab-grid.uk-tab-bottom:before { + top: -1px; + bottom: auto; +} +/* Modifier: 'tab-left', 'tab-right' + ========================================================================== */ +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-tab-left, + .uk-tab-right { + border-bottom: none; + } + .uk-tab-left > li, + .uk-tab-right > li { + margin-bottom: 0; + float: none; + } + .uk-tab-left > li > a, + .uk-tab-right > li > a { + padding-top: 8px; + padding-bottom: 8px; + } + .uk-tab-left > li:nth-child(n+2) > a, + .uk-tab-right > li:nth-child(n+2) > a { + margin-left: 0; + margin-top: 5px; + } + .uk-tab-left > li.uk-active > a, + .uk-tab-right > li.uk-active > a { + border-color: #dddddd; + } + /* + * Modifier: 'tab-left' + */ + .uk-tab-left { + border-right: 1px solid #dddddd; + } + .uk-tab-left > li { + margin-right: -1px; + } + .uk-tab-left > li > a { + border-bottom-width: 1px; + border-right-width: 0; + } + .uk-tab-left > li:not(.uk-active) > a:hover, + .uk-tab-left > li:not(.uk-active) > a:focus { + margin-bottom: 0; + margin-right: 1px; + padding-bottom: 8px; + padding-right: 11px; + } + .uk-tab-left > li.uk-active > a { + border-right-color: transparent; + } + /* + * Modifier: 'tab-right' + */ + .uk-tab-right { + border-left: 1px solid #dddddd; + } + .uk-tab-right > li { + margin-left: -1px; + } + .uk-tab-right > li > a { + border-bottom-width: 1px; + border-left-width: 0; + } + .uk-tab-right > li:not(.uk-active) > a:hover, + .uk-tab-right > li:not(.uk-active) > a:focus { + margin-bottom: 0; + margin-left: 1px; + padding-bottom: 8px; + padding-left: 11px; + } + .uk-tab-right > li.uk-active > a { + border-left-color: transparent; + } +} +/* Modifier: `uk-tab-bottom' + ========================================================================== */ +.uk-tab-bottom > li > a { + border-radius: 0 0 4px 4px; +} +/* Modifier: `uk-tab-left', `uk-tab-right' + ========================================================================== */ +/* Tablet and bigger */ +@media (min-width: 768px) { + /* + * Modifier: `uk-tab-left' + */ + .uk-tab-left > li > a { + border-radius: 4px 0 0 4px; + } + /* + * Modifier: `uk-tab-right' + */ + .uk-tab-right > li > a { + border-radius: 0 4px 4px 0; + } +} +/* ======================================================================== + Component: Thumbnav + ========================================================================== */ +/* + * 1. Gutter + * 2. Remove default list style + */ +.uk-thumbnav { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + /* 1 */ + margin-left: -10px; + margin-top: -10px; + /* 2 */ + padding: 0; + list-style: none; +} +/* + * 1. Space is allocated solely based on content dimensions + * 2. Horizontal gutter is using `padding` so `uk-width-*` classes can be applied + */ +.uk-thumbnav > * { + /* 1 */ + -ms-flex: none; + -webkit-flex: none; + flex: none; + /* 2 */ + padding-left: 10px; + margin-top: 10px; +} +/* + * DEPRECATED IE9 Support + */ +.uk-thumbnav:before, +.uk-thumbnav:after { + content: ""; + display: block; + overflow: hidden; +} +.uk-thumbnav:after { + clear: both; +} +.uk-thumbnav > * { + float: left; +} +/* Items + ========================================================================== */ +.uk-thumbnav > * > * { + display: block; + background: #ffffff; +} +.uk-thumbnav > * > * > img { + opacity: 0.7; + -webkit-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; +} +/* + * Hover + */ +.uk-thumbnav > * > :hover > img, +.uk-thumbnav > * > :focus > img { + opacity: 1; +} +/* + * Active + */ +.uk-thumbnav > .uk-active > * > img { + opacity: 1; +} +/* ======================================================================== + Component: List + ========================================================================== */ +.uk-list { + padding: 0; + list-style: none; +} +/* + * Micro clearfix to make list more robust + */ +.uk-list > li:before, +.uk-list > li:after { + content: ""; + display: table; +} +.uk-list > li:after { + clear: both; +} +/* + * Remove margin from the last-child + */ +.uk-list > li > :last-child { + margin-bottom: 0; +} +/* + * Nested lists + */ +.uk-list ul { + margin: 0; + padding-left: 20px; + list-style: none; +} +/* Modifier: `uk-list-line` + ========================================================================== */ +.uk-list-line > li:nth-child(n+2) { + margin-top: 5px; + padding-top: 5px; + border-top: 1px solid #dddddd; +} +/* Modifier: `uk-list-striped` + ========================================================================== */ +.uk-list-striped > li { + padding: 5px 5px; + border-bottom: 1px solid #dddddd; +} +.uk-list-striped > li:nth-of-type(odd) { + background: #fafafa; +} +/* Modifier: `uk-list-space` + ========================================================================== */ +.uk-list-space > li:nth-child(n+2) { + margin-top: 10px; +} +.uk-list-striped > li:first-child { + border-top: 1px solid #dddddd; +} +/* ======================================================================== + Component: Description list + ========================================================================== */ +/* Modifier: `uk-description-list-horizontal` + ========================================================================== */ +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-description-list-horizontal { + overflow: hidden; + } + .uk-description-list-horizontal > dt { + width: 160px; + float: left; + clear: both; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + .uk-description-list-horizontal > dd { + margin-left: 180px; + } +} +/* Modifier: `uk-description-list-line` + ========================================================================== */ +.uk-description-list-line > dt { + font-weight: normal; +} +.uk-description-list-line > dt:nth-child(n+2) { + margin-top: 5px; + padding-top: 5px; + border-top: 1px solid #dddddd; +} +.uk-description-list-line > dd { + color: #999999; +} +/* ======================================================================== + Component: Table + ========================================================================== */ +/* + * 1. Remove most spacing between table cells. + * 2. Block element behavior + * 3. Style + */ +.uk-table { + /* 1 */ + border-collapse: collapse; + border-spacing: 0; + /* 2 */ + width: 100%; + /* 3 */ + margin-bottom: 15px; +} +/* + * Add margin if adjacent element + */ +* + .uk-table { + margin-top: 15px; +} +.uk-table th, +.uk-table td { + padding: 8px 8px; + border-bottom: 1px solid #dddddd; +} +/* + * Set alignment + */ +.uk-table th { + text-align: left; +} +.uk-table td { + vertical-align: top; +} +.uk-table thead th { + vertical-align: bottom; +} +/* + * Caption and footer + */ +.uk-table caption, +.uk-table tfoot { + font-size: 12px; + font-style: italic; +} +.uk-table caption { + text-align: left; + color: #999999; +} +/* + * Active State + */ +.uk-table tbody tr.uk-active { + background: #f0f0f0; +} +/* Sub-modifier: `uk-table-middle` + ========================================================================== */ +.uk-table-middle, +.uk-table-middle td { + vertical-align: middle !important; +} +/* Modifier: `uk-table-striped` + ========================================================================== */ +.uk-table-striped tbody tr:nth-of-type(odd) { + background: #fafafa; +} +/* Modifier: `uk-table-condensed` + ========================================================================== */ +.uk-table-condensed td { + padding: 4px 8px; +} +/* Modifier: `uk-table-hover` + ========================================================================== */ +.uk-table-hover tbody tr:hover { + background: #f0f0f0; +} +/* ======================================================================== + Component: Form + ========================================================================== */ +/* + * 1. Define consistent box sizing. + * Default is `content-box` with following exceptions set to `border-box` + * `button`, `select`, `input[type="checkbox"]` and `input[type="radio"]` + * `input[type="search"]` in Chrome, Safari and Opera + * `input[type="color"]` in Firefox + * 2. Address margins set differently in Firefox/IE and Chrome/Safari/Opera. + * 3. Remove `border-radius` in iOS. + * 4. Correct `font` properties and `color` not being inherited. + */ +.uk-form input, +.uk-form select, +.uk-form textarea { + /* 1 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 2 */ + margin: 0; + /* 3 */ + border-radius: 0; + /* 4 */ + font: inherit; + color: inherit; +} +/* + * Address inconsistent `text-transform` inheritance which is only inherit in Firefox + */ +.uk-form select { + text-transform: none; +} +/* + * 1. Correct `font` properties not being inherited. + * 2. Don't inherit the `font-weight` and use `bold` instead. + * NOTE: Both declarations don't work in Chrome, Safari and Opera. + */ +.uk-form optgroup { + /* 1 */ + font: inherit; + /* 2 */ + font-weight: bold; +} +/* + * Removes inner padding and border in Firefox 4+. + */ +.uk-form input::-moz-focus-inner { + border: 0; + padding: 0; +} +/* + * Removes excess padding in IE 8/9/10. + */ +.uk-form input[type="checkbox"], +.uk-form input[type="radio"] { + padding: 0; +} +/* + * Improves consistency of cursor style for clickable elements + */ +.uk-form input[type="checkbox"]:not(:disabled), +.uk-form input[type="radio"]:not(:disabled) { + cursor: pointer; +} +/* + * Remove default style in iOS. + */ +.uk-form textarea, +.uk-form input:not([type]), +.uk-form input[type="text"], +.uk-form input[type="password"], +.uk-form input[type="email"], +.uk-form input[type="url"], +.uk-form input[type="search"], +.uk-form input[type="tel"], +.uk-form input[type="number"], +.uk-form input[type="datetime"] { + -webkit-appearance: none; +} +/* + * Remove inner padding and search cancel button in Chrome, Safari and Opera on OS X. + */ +.uk-form input[type="search"]::-webkit-search-cancel-button, +.uk-form input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} +/* + * Fix the cursor style for Chrome's increment/decrement buttons. For certain + * `font-size` values of the `input`, it causes the cursor style of the + * decrement button to change from `default` to `text`. + */ +.uk-form input[type="number"]::-webkit-inner-spin-button, +.uk-form input[type="number"]::-webkit-outer-spin-button { + height: auto; +} +/* + * Define consistent border, margin, and padding. + */ +.uk-form fieldset { + border: none; + margin: 0; + padding: 0; +} +/* + * 1. Remove default vertical scrollbar in IE 8/9/10/11. + * 2. Improve readability and alignment in all browsers. + */ +.uk-form textarea { + /* 1 */ + overflow: auto; + /* 2 */ + vertical-align: top; +} +/* + * Removes placeholder transparency in Firefox. + */ +.uk-form ::-moz-placeholder { + opacity: 1; +} +/* + * Removes `box-shadow` for invalid controls in Firefox. + */ +.uk-form :invalid { + box-shadow: none; +} +/* + * Vertical alignment + */ +.uk-form input:not([type="radio"]):not([type="checkbox"]), +.uk-form select { + vertical-align: middle; +} +/* Style + ========================================================================== */ +/* + * Remove margin from the last-child + */ +.uk-form > :last-child { + margin-bottom: 0; +} +/* + * Controls + * Except for `range`, `radio`, `checkbox`, `file`, `submit`, `reset`, `button` and `image` + * 1. Must be `height` because `min-height` is not working in OSX + * 2. Responsiveness: Sets a maximum width relative to the parent to scale on narrower viewports + * 3. Vertical `padding` needed for `select` elements in Firefox + * 4. Style + */ +.uk-form select, +.uk-form textarea, +.uk-form input:not([type]), +.uk-form input[type="text"], +.uk-form input[type="password"], +.uk-form input[type="datetime"], +.uk-form input[type="datetime-local"], +.uk-form input[type="date"], +.uk-form input[type="month"], +.uk-form input[type="time"], +.uk-form input[type="week"], +.uk-form input[type="number"], +.uk-form input[type="email"], +.uk-form input[type="url"], +.uk-form input[type="search"], +.uk-form input[type="tel"], +.uk-form input[type="color"] { + /* 1 */ + height: 30px; + /* 2 */ + max-width: 100%; + /* 3 */ + padding: 4px 6px; + /* 4 */ + border: 1px solid #dddddd; + background: #ffffff; + color: #444444; + -webkit-transition: all linear 0.2s; + transition: all linear 0.2s; + border-radius: 4px; +} +.uk-form select:focus, +.uk-form textarea:focus, +.uk-form input:not([type]):focus, +.uk-form input[type="text"]:focus, +.uk-form input[type="password"]:focus, +.uk-form input[type="datetime"]:focus, +.uk-form input[type="datetime-local"]:focus, +.uk-form input[type="date"]:focus, +.uk-form input[type="month"]:focus, +.uk-form input[type="time"]:focus, +.uk-form input[type="week"]:focus, +.uk-form input[type="number"]:focus, +.uk-form input[type="email"]:focus, +.uk-form input[type="url"]:focus, +.uk-form input[type="search"]:focus, +.uk-form input[type="tel"]:focus, +.uk-form input[type="color"]:focus { + border-color: #99baca; + outline: 0; + background: #f5fbfe; + color: #444444; +} +.uk-form select:disabled, +.uk-form textarea:disabled, +.uk-form input:not([type]):disabled, +.uk-form input[type="text"]:disabled, +.uk-form input[type="password"]:disabled, +.uk-form input[type="datetime"]:disabled, +.uk-form input[type="datetime-local"]:disabled, +.uk-form input[type="date"]:disabled, +.uk-form input[type="month"]:disabled, +.uk-form input[type="time"]:disabled, +.uk-form input[type="week"]:disabled, +.uk-form input[type="number"]:disabled, +.uk-form input[type="email"]:disabled, +.uk-form input[type="url"]:disabled, +.uk-form input[type="search"]:disabled, +.uk-form input[type="tel"]:disabled, +.uk-form input[type="color"]:disabled { + border-color: #dddddd; + background-color: #fafafa; + color: #999999; +} +/* + * Placeholder + */ +.uk-form :-ms-input-placeholder { + color: #999999 !important; +} +.uk-form ::-moz-placeholder { + color: #999999; +} +.uk-form ::-webkit-input-placeholder { + color: #999999; +} +.uk-form :disabled:-ms-input-placeholder { + color: #999999 !important; +} +.uk-form :disabled::-moz-placeholder { + color: #999999; +} +.uk-form :disabled::-webkit-input-placeholder { + color: #999999; +} +/* + * Legend + * 1. Behave like block element + * 2. Correct `color` not being inherited in IE 8/9/10/11. + * 3. Remove padding + * 4. `margin-bottom` is not working in Safari and Opera. + * Using `padding` and :after instead to create the border + * 5. Style + */ +.uk-form legend { + /* 1 */ + width: 100%; + /* 2 */ + border: 0; + /* 3 */ + padding: 0; + /* 4 */ + padding-bottom: 15px; + /* 5 */ + font-size: 18px; + line-height: 30px; +} +/* + * 1. Fixes IE9 + */ +.uk-form legend:after { + content: ""; + display: block; + border-bottom: 1px solid #dddddd; + /* 1 */ + width: 100%; +} +/* Size modifiers + * Higher specificity needed to override defaults + ========================================================================== */ +select.uk-form-small, +textarea.uk-form-small, +input[type].uk-form-small, +input:not([type]).uk-form-small { + height: 25px; + padding: 3px 3px; + font-size: 12px; +} +select.uk-form-large, +textarea.uk-form-large, +input[type].uk-form-large, +input:not([type]).uk-form-large { + height: 40px; + padding: 8px 6px; + font-size: 16px; +} +/* Reset height + * Must be after size modifiers + ========================================================================== */ +.uk-form textarea, +.uk-form select[multiple], +.uk-form select[size] { + height: auto; +} +/* Validation states + * Using !important to keep the selector simple + ========================================================================== */ +/* + * Error state + */ +.uk-form-danger { + border-color: #dc8d99 !important; + background: #fff7f8 !important; + color: #d85030 !important; +} +/* + * Success state + */ +.uk-form-success { + border-color: #8ec73b !important; + background: #fafff2 !important; + color: #659f13 !important; +} +/* Style modifiers + * Using !important to keep the selector simple + ========================================================================== */ +/* + * Blank form + */ +.uk-form-blank { + border-color: transparent !important; + border-style: dashed !important; + background: none !important; +} +.uk-form-blank:focus { + border-color: #dddddd !important; +} +/* Size sub-modifiers + ========================================================================== */ +/* + * Fixed widths + * Different widths for mini sized `input` and `select` elements + */ +input.uk-form-width-mini { + width: 40px; +} +select.uk-form-width-mini { + width: 65px; +} +.uk-form-width-small { + width: 130px; +} +.uk-form-width-medium { + width: 200px; +} +.uk-form-width-large { + width: 500px; +} +/* Sub-objects: `uk-form-row` + * Groups labels and controls in rows + ========================================================================== */ +/* + * Micro clearfix + * Needed for `uk-form-horizontal` modifier + */ +.uk-form-row:before, +.uk-form-row:after { + content: ""; + display: table; +} +.uk-form-row:after { + clear: both; +} +/* + * Vertical gutter + */ +.uk-form-row + .uk-form-row { + margin-top: 15px; +} +/* Help text + * Sub-object: `uk-form-help-inline`, `uk-form-help-block` + ========================================================================== */ +.uk-form-help-inline { + display: inline-block; + margin: 0 0 0 10px; +} +.uk-form-help-block { + margin: 5px 0 0 0; +} +/* Controls content + * Sub-object: `uk-form-controls`, `uk-form-controls-condensed` + ========================================================================== */ +/* + * Remove margins + */ +.uk-form-controls > :first-child { + margin-top: 0; +} +.uk-form-controls > :last-child { + margin-bottom: 0; +} +/* + * Group controls and text into blocks with a small spacing between blocks + */ +.uk-form-controls-condensed { + margin: 5px 0; +} +/* Modifier: `uk-form-stacked` + * Requires sub-object: `uk-form-label` + ========================================================================== */ +.uk-form-stacked .uk-form-label { + display: block; + margin-bottom: 5px; + font-weight: bold; +} +/* Modifier: `uk-form-horizontal` + * Requires sub-objects: `uk-form-label`, `uk-form-controls` + ========================================================================== */ +/* Tablet portrait and smaller */ +@media (max-width: 959px) { + /* Behave like `uk-form-stacked` */ + .uk-form-horizontal .uk-form-label { + display: block; + margin-bottom: 5px; + font-weight: bold; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-form-horizontal .uk-form-label { + width: 200px; + margin-top: 5px; + float: left; + } + .uk-form-horizontal .uk-form-controls { + margin-left: 215px; + } + /* Better vertical alignment if controls are checkboxes and radio buttons with text */ + .uk-form-horizontal .uk-form-controls-text { + padding-top: 5px; + } +} +/* Sub-object: `uk-form-icon` + ========================================================================== */ +/* + * 1. Container width fits its content + * 2. Create position context + * 3. Prevent `inline-block` consequences + */ +.uk-form-icon { + /* 1 */ + display: inline-block; + /* 2 */ + position: relative; + /* 3 */ + max-width: 100%; +} +/* + * 1. Make form element clickable through icon + */ +.uk-form-icon > [class*='uk-icon-'] { + position: absolute; + top: 50%; + width: 30px; + margin-top: -7px; + font-size: 14px; + color: #999999; + text-align: center; + /* 1 */ + pointer-events: none; +} +.uk-form-icon:not(.uk-form-icon-flip) > input { + padding-left: 30px !important; +} +/* + * Sub-modifier: `uk-form-icon-flip` + */ +.uk-form-icon-flip > [class*='uk-icon-'] { + right: 0; +} +.uk-form-icon-flip > input { + padding-right: 30px !important; +} +/* ======================================================================== + Component: Button + ========================================================================== */ +/* + * Removes inner padding and border in Firefox 4+. + */ +.uk-button::-moz-focus-inner { + border: 0; + padding: 0; +} +/* + * 1. Correct inability to style clickable `input` types in iOS. + * 2. Remove margins in Chrome, Safari and Opera. + * 3. Remove borders for `button`. + * 4. Address `overflow` set to `hidden` in IE 8/9/10/11. + * 5. Correct `font` properties and `color` not being inherited for `button`. + * 6. Address inconsistent `text-transform` inheritance which is only inherit in Firefox and IE + * 7. Style + * 8. `line-height` is used to create a height + * 9. `min-height` is necessary for `input` elements in Firefox and Opera because `line-height` is not working. + * 10. Reset button group whitespace hack + * 11. Required for `a`. + */ +.uk-button { + /* 1 */ + -webkit-appearance: none; + /* 2 */ + margin: 0; + /* 3 */ + border: none; + /* 4 */ + overflow: visible; + /* 5 */ + font: inherit; + color: #444444; + /* 6 */ + text-transform: none; + /* 7 */ + display: inline-block; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding: 0 12px; + background: #f5f5f5; + vertical-align: middle; + /* 8 */ + line-height: 28px; + /* 9 */ + min-height: 30px; + /* 10 */ + font-size: 1rem; + /* 11 */ + text-decoration: none; + text-align: center; + border: 1px solid rgba(0, 0, 0, 0.06); + border-radius: 4px; + text-shadow: 0 1px 0 #ffffff; +} +.uk-button:not(:disabled) { + cursor: pointer; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + * 3. Required for `a` elements + */ +.uk-button:hover, +.uk-button:focus { + background-color: #fafafa; + color: #444444; + /* 2 */ + outline: none; + /* 3 */ + text-decoration: none; + border-color: rgba(0, 0, 0, 0.16); +} +/* Active */ +.uk-button:active, +.uk-button.uk-active { + background-color: #eeeeee; + color: #444444; +} +/* Color modifiers + ========================================================================== */ +/* + * Modifier: `uk-button-primary` + */ +.uk-button-primary { + background-color: #00a8e6; + color: #ffffff; +} +/* Hover */ +.uk-button-primary:hover, +.uk-button-primary:focus { + background-color: #35b3ee; + color: #ffffff; +} +/* Active */ +.uk-button-primary:active, +.uk-button-primary.uk-active { + background-color: #0091ca; + color: #ffffff; +} +/* + * Modifier: `uk-button-success` + */ +.uk-button-success { + background-color: #8cc14c; + color: #ffffff; +} +/* Hover */ +.uk-button-success:hover, +.uk-button-success:focus { + background-color: #8ec73b; + color: #ffffff; +} +/* Active */ +.uk-button-success:active, +.uk-button-success.uk-active { + background-color: #72ae41; + color: #ffffff; +} +/* + * Modifier: `uk-button-danger` + */ +.uk-button-danger { + background-color: #da314b; + color: #ffffff; +} +/* Hover */ +.uk-button-danger:hover, +.uk-button-danger:focus { + background-color: #e4354f; + color: #ffffff; +} +/* Active */ +.uk-button-danger:active, +.uk-button-danger.uk-active { + background-color: #c91032; + color: #ffffff; +} +/* Disabled state + * Overrides also the color modifiers + ========================================================================== */ +/* Equal for all button types */ +.uk-button:disabled { + background-color: #fafafa; + color: #999999; + border-color: rgba(0, 0, 0, 0.06); + box-shadow: none; + text-shadow: 0 1px 0 #ffffff; +} +/* Modifier: `uk-button-link` + ========================================================================== */ +/* Reset */ +.uk-button-link, +.uk-button-link:hover, +.uk-button-link:focus, +.uk-button-link:active, +.uk-button-link.uk-active, +.uk-button-link:disabled { + border-color: transparent; + background: none; + box-shadow: none; + text-shadow: none; +} +/* Color */ +.uk-button-link { + color: #0077dd; +} +.uk-button-link:hover, +.uk-button-link:focus, +.uk-button-link:active, +.uk-button-link.uk-active { + color: #005599; + text-decoration: underline; +} +.uk-button-link:disabled { + color: #999999; +} +/* Focus */ +.uk-button-link:focus { + outline: 1px dotted; +} +/* Size modifiers + ========================================================================== */ +.uk-button-mini { + min-height: 20px; + padding: 0 6px; + line-height: 18px; + font-size: 11px; +} +.uk-button-small { + min-height: 25px; + padding: 0 10px; + line-height: 23px; + font-size: 12px; +} +.uk-button-large { + min-height: 40px; + padding: 0 15px; + line-height: 38px; + font-size: 16px; + border-radius: 5px; +} +/* Sub-object `uk-button-group` + ========================================================================== */ +/* + * 1. Behave like buttons + * 2. Create position context for dropdowns + * 3. Remove whitespace between child elements when using `inline-block` + * 4. Prevent buttons from wrapping + * 5. Remove whitespace between child elements when using `inline-block` + */ +.uk-button-group { + /* 1 */ + display: inline-block; + vertical-align: middle; + /* 2 */ + position: relative; + /* 3 */ + font-size: 0.001px; + /* 4 */ + white-space: nowrap; +} +.uk-button-group > * { + display: inline-block; +} +/* 5 */ +.uk-button-group .uk-button { + vertical-align: top; +} +/* Sub-object: `uk-button-dropdown` + ========================================================================== */ +/* + * 1. Behave like buttons + * 2. Create position context for dropdowns + */ +.uk-button-dropdown { + /* 1 */ + display: inline-block; + vertical-align: middle; + /* 2 */ + position: relative; +} +/* Color modifiers + ========================================================================== */ +.uk-button-primary, +.uk-button-success, +.uk-button-danger { + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1); +} +.uk-button-primary:hover, +.uk-button-primary:focus, +.uk-button-success:hover, +.uk-button-success:focus, +.uk-button-danger:hover, +.uk-button-danger:focus { + border-color: rgba(0, 0, 0, 0.21); +} +/* Sub-object `uk-button-group` + ========================================================================== */ +/* + * Reset border-radius + */ +.uk-button-group > .uk-button:not(:first-child):not(:last-child), +.uk-button-group > div:not(:first-child):not(:last-child) .uk-button { + border-left-color: rgba(0, 0, 0, 0.1); + border-right-color: rgba(0, 0, 0, 0.1); + border-radius: 0; +} +.uk-button-group > .uk-button:first-child, +.uk-button-group > div:first-child .uk-button { + border-right-color: rgba(0, 0, 0, 0.1); + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} +.uk-button-group > .uk-button:last-child, +.uk-button-group > div:last-child .uk-button { + border-left-color: rgba(0, 0, 0, 0.1); + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} +/* + * Collapse border + */ +.uk-button-group > .uk-button:nth-child(n+2), +.uk-button-group > div:nth-child(n+2) .uk-button { + margin-left: -1px; +} +/* + * Create position context to superimpose the successor elements border + * Known issue: If you use an `a` element as button and an icon inside, + * the active state will not work if you click the icon inside the button + * Workaround: Just use a `button` or `input` element as button + */ +.uk-button-group .uk-button:hover, +.uk-button-group .uk-button:active { + position: relative; +} +/* ======================================================================== + Component: Icon + ========================================================================== */ +@font-face { + font-family: 'FontAwesome'; + src: url("../fonts/fontawesome-webfont.eot"); + src: url("../fonts/fontawesome-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/fontawesome-webfont.woff2") format('woff2'), url("../fonts/fontawesome-webfont.woff") format("woff"), url("../fonts/fontawesome-webfont.ttf") format("truetype"); + font-weight: normal; + font-style: normal; +} +/* + * 1. Allow margin + * 2. Prevent inherit font style + * 4. Correct line-height + * 5. Better font rendering + * 6. Remove `text-decoration` for anchors + */ +[class*='uk-icon-'] { + font-family: FontAwesome; + /* 1 */ + display: inline-block; + /* 2 */ + font-weight: normal; + font-style: normal; + /* 4 */ + line-height: 1; + /* 5 */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +/* 6 */ +[class*='uk-icon-'], +[class*='uk-icon-']:hover, +[class*='uk-icon-']:focus { + text-decoration: none; +} +/* Size modifiers + ========================================================================== */ +.uk-icon-small { + font-size: 150%; + vertical-align: -10%; +} +.uk-icon-medium { + font-size: 200%; + vertical-align: -16%; +} +.uk-icon-large { + font-size: 250%; + vertical-align: -22%; +} +/* Modifier: `uk-icon-justify` + ========================================================================== */ +.uk-icon-justify { + width: 1em; + text-align: center; +} +/* Modifier: `uk-icon-spin` + ========================================================================== */ +.uk-icon-spin { + display: inline-block; + -webkit-animation: uk-rotate 2s infinite linear; + animation: uk-rotate 2s infinite linear; +} +/* Modifier: `uk-icon-hover` + ========================================================================== */ +.uk-icon-hover { + color: #999999; +} +/* + * Hover + */ +.uk-icon-hover:hover { + color: #444444; +} +/* Modifier: `uk-icon-button` + ========================================================================== */ +.uk-icon-button { + -moz-box-sizing: border-box; + box-sizing: border-box; + display: inline-block; + width: 35px; + height: 35px; + border-radius: 100%; + background: #f5f5f5; + line-height: 35px; + color: #444444; + font-size: 18px; + text-align: center; + border: 1px solid #e7e7e7; + text-shadow: 0 1px 0 #ffffff; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-icon-button:hover, +.uk-icon-button:focus { + background-color: #fafafa; + color: #444444; + /* 2 */ + outline: none; + border-color: #d3d3d3; +} +/* Active */ +.uk-icon-button:active { + background-color: #eeeeee; + color: #444444; +} +/* Icon mapping + ========================================================================== */ +.uk-icon-glass:before { + content: "\f000"; +} +.uk-icon-music:before { + content: "\f001"; +} +.uk-icon-search:before { + content: "\f002"; +} +.uk-icon-envelope-o:before { + content: "\f003"; +} +.uk-icon-heart:before { + content: "\f004"; +} +.uk-icon-star:before { + content: "\f005"; +} +.uk-icon-star-o:before { + content: "\f006"; +} +.uk-icon-user:before { + content: "\f007"; +} +.uk-icon-film:before { + content: "\f008"; +} +.uk-icon-th-large:before { + content: "\f009"; +} +.uk-icon-th:before { + content: "\f00a"; +} +.uk-icon-th-list:before { + content: "\f00b"; +} +.uk-icon-check:before { + content: "\f00c"; +} +.uk-icon-remove:before, +.uk-icon-close:before, +.uk-icon-times:before { + content: "\f00d"; +} +.uk-icon-search-plus:before { + content: "\f00e"; +} +.uk-icon-search-minus:before { + content: "\f010"; +} +.uk-icon-power-off:before { + content: "\f011"; +} +.uk-icon-signal:before { + content: "\f012"; +} +.uk-icon-gear:before, +.uk-icon-cog:before { + content: "\f013"; +} +.uk-icon-trash-o:before { + content: "\f014"; +} +.uk-icon-home:before { + content: "\f015"; +} +.uk-icon-file-o:before { + content: "\f016"; +} +.uk-icon-clock-o:before { + content: "\f017"; +} +.uk-icon-road:before { + content: "\f018"; +} +.uk-icon-download:before { + content: "\f019"; +} +.uk-icon-arrow-circle-o-down:before { + content: "\f01a"; +} +.uk-icon-arrow-circle-o-up:before { + content: "\f01b"; +} +.uk-icon-inbox:before { + content: "\f01c"; +} +.uk-icon-play-circle-o:before { + content: "\f01d"; +} +.uk-icon-rotate-right:before, +.uk-icon-repeat:before { + content: "\f01e"; +} +.uk-icon-refresh:before { + content: "\f021"; +} +.uk-icon-list-alt:before { + content: "\f022"; +} +.uk-icon-lock:before { + content: "\f023"; +} +.uk-icon-flag:before { + content: "\f024"; +} +.uk-icon-headphones:before { + content: "\f025"; +} +.uk-icon-volume-off:before { + content: "\f026"; +} +.uk-icon-volume-down:before { + content: "\f027"; +} +.uk-icon-volume-up:before { + content: "\f028"; +} +.uk-icon-qrcode:before { + content: "\f029"; +} +.uk-icon-barcode:before { + content: "\f02a"; +} +.uk-icon-tag:before { + content: "\f02b"; +} +.uk-icon-tags:before { + content: "\f02c"; +} +.uk-icon-book:before { + content: "\f02d"; +} +.uk-icon-bookmark:before { + content: "\f02e"; +} +.uk-icon-print:before { + content: "\f02f"; +} +.uk-icon-camera:before { + content: "\f030"; +} +.uk-icon-font:before { + content: "\f031"; +} +.uk-icon-bold:before { + content: "\f032"; +} +.uk-icon-italic:before { + content: "\f033"; +} +.uk-icon-text-height:before { + content: "\f034"; +} +.uk-icon-text-width:before { + content: "\f035"; +} +.uk-icon-align-left:before { + content: "\f036"; +} +.uk-icon-align-center:before { + content: "\f037"; +} +.uk-icon-align-right:before { + content: "\f038"; +} +.uk-icon-align-justify:before { + content: "\f039"; +} +.uk-icon-list:before { + content: "\f03a"; +} +.uk-icon-dedent:before, +.uk-icon-outdent:before { + content: "\f03b"; +} +.uk-icon-indent:before { + content: "\f03c"; +} +.uk-icon-video-camera:before { + content: "\f03d"; +} +.uk-icon-photo:before, +.uk-icon-image:before, +.uk-icon-picture-o:before { + content: "\f03e"; +} +.uk-icon-pencil:before { + content: "\f040"; +} +.uk-icon-map-marker:before { + content: "\f041"; +} +.uk-icon-adjust:before { + content: "\f042"; +} +.uk-icon-tint:before { + content: "\f043"; +} +.uk-icon-edit:before, +.uk-icon-pencil-square-o:before { + content: "\f044"; +} +.uk-icon-share-square-o:before { + content: "\f045"; +} +.uk-icon-check-square-o:before { + content: "\f046"; +} +.uk-icon-arrows:before { + content: "\f047"; +} +.uk-icon-step-backward:before { + content: "\f048"; +} +.uk-icon-fast-backward:before { + content: "\f049"; +} +.uk-icon-backward:before { + content: "\f04a"; +} +.uk-icon-play:before { + content: "\f04b"; +} +.uk-icon-pause:before { + content: "\f04c"; +} +.uk-icon-stop:before { + content: "\f04d"; +} +.uk-icon-forward:before { + content: "\f04e"; +} +.uk-icon-fast-forward:before { + content: "\f050"; +} +.uk-icon-step-forward:before { + content: "\f051"; +} +.uk-icon-eject:before { + content: "\f052"; +} +.uk-icon-chevron-left:before { + content: "\f053"; +} +.uk-icon-chevron-right:before { + content: "\f054"; +} +.uk-icon-plus-circle:before { + content: "\f055"; +} +.uk-icon-minus-circle:before { + content: "\f056"; +} +.uk-icon-times-circle:before { + content: "\f057"; +} +.uk-icon-check-circle:before { + content: "\f058"; +} +.uk-icon-question-circle:before { + content: "\f059"; +} +.uk-icon-info-circle:before { + content: "\f05a"; +} +.uk-icon-crosshairs:before { + content: "\f05b"; +} +.uk-icon-times-circle-o:before { + content: "\f05c"; +} +.uk-icon-check-circle-o:before { + content: "\f05d"; +} +.uk-icon-ban:before { + content: "\f05e"; +} +.uk-icon-arrow-left:before { + content: "\f060"; +} +.uk-icon-arrow-right:before { + content: "\f061"; +} +.uk-icon-arrow-up:before { + content: "\f062"; +} +.uk-icon-arrow-down:before { + content: "\f063"; +} +.uk-icon-mail-forward:before, +.uk-icon-share:before { + content: "\f064"; +} +.uk-icon-expand:before { + content: "\f065"; +} +.uk-icon-compress:before { + content: "\f066"; +} +.uk-icon-plus:before { + content: "\f067"; +} +.uk-icon-minus:before { + content: "\f068"; +} +.uk-icon-asterisk:before { + content: "\f069"; +} +.uk-icon-exclamation-circle:before { + content: "\f06a"; +} +.uk-icon-gift:before { + content: "\f06b"; +} +.uk-icon-leaf:before { + content: "\f06c"; +} +.uk-icon-fire:before { + content: "\f06d"; +} +.uk-icon-eye:before { + content: "\f06e"; +} +.uk-icon-eye-slash:before { + content: "\f070"; +} +.uk-icon-warning:before, +.uk-icon-exclamation-triangle:before { + content: "\f071"; +} +.uk-icon-plane:before { + content: "\f072"; +} +.uk-icon-calendar:before { + content: "\f073"; +} +.uk-icon-random:before { + content: "\f074"; +} +.uk-icon-comment:before { + content: "\f075"; +} +.uk-icon-magnet:before { + content: "\f076"; +} +.uk-icon-chevron-up:before { + content: "\f077"; +} +.uk-icon-chevron-down:before { + content: "\f078"; +} +.uk-icon-retweet:before { + content: "\f079"; +} +.uk-icon-shopping-cart:before { + content: "\f07a"; +} +.uk-icon-folder:before { + content: "\f07b"; +} +.uk-icon-folder-open:before { + content: "\f07c"; +} +.uk-icon-arrows-v:before { + content: "\f07d"; +} +.uk-icon-arrows-h:before { + content: "\f07e"; +} +.uk-icon-bar-chart-o:before, +.uk-icon-bar-chart:before { + content: "\f080"; +} +.uk-icon-twitter-square:before { + content: "\f081"; +} +.uk-icon-facebook-square:before { + content: "\f082"; +} +.uk-icon-camera-retro:before { + content: "\f083"; +} +.uk-icon-key:before { + content: "\f084"; +} +.uk-icon-gears:before, +.uk-icon-cogs:before { + content: "\f085"; +} +.uk-icon-comments:before { + content: "\f086"; +} +.uk-icon-thumbs-o-up:before { + content: "\f087"; +} +.uk-icon-thumbs-o-down:before { + content: "\f088"; +} +.uk-icon-star-half:before { + content: "\f089"; +} +.uk-icon-heart-o:before { + content: "\f08a"; +} +.uk-icon-sign-out:before { + content: "\f08b"; +} +.uk-icon-linkedin-square:before { + content: "\f08c"; +} +.uk-icon-thumb-tack:before { + content: "\f08d"; +} +.uk-icon-external-link:before { + content: "\f08e"; +} +.uk-icon-sign-in:before { + content: "\f090"; +} +.uk-icon-trophy:before { + content: "\f091"; +} +.uk-icon-github-square:before { + content: "\f092"; +} +.uk-icon-upload:before { + content: "\f093"; +} +.uk-icon-lemon-o:before { + content: "\f094"; +} +.uk-icon-phone:before { + content: "\f095"; +} +.uk-icon-square-o:before { + content: "\f096"; +} +.uk-icon-bookmark-o:before { + content: "\f097"; +} +.uk-icon-phone-square:before { + content: "\f098"; +} +.uk-icon-twitter:before { + content: "\f099"; +} +.uk-icon-facebook-f:before, +.uk-icon-facebook:before { + content: "\f09a"; +} +.uk-icon-github:before { + content: "\f09b"; +} +.uk-icon-unlock:before { + content: "\f09c"; +} +.uk-icon-credit-card:before { + content: "\f09d"; +} +.uk-icon-rss:before { + content: "\f09e"; +} +.uk-icon-hdd-o:before { + content: "\f0a0"; +} +.uk-icon-bullhorn:before { + content: "\f0a1"; +} +.uk-icon-bell:before { + content: "\f0f3"; +} +.uk-icon-certificate:before { + content: "\f0a3"; +} +.uk-icon-hand-o-right:before { + content: "\f0a4"; +} +.uk-icon-hand-o-left:before { + content: "\f0a5"; +} +.uk-icon-hand-o-up:before { + content: "\f0a6"; +} +.uk-icon-hand-o-down:before { + content: "\f0a7"; +} +.uk-icon-arrow-circle-left:before { + content: "\f0a8"; +} +.uk-icon-arrow-circle-right:before { + content: "\f0a9"; +} +.uk-icon-arrow-circle-up:before { + content: "\f0aa"; +} +.uk-icon-arrow-circle-down:before { + content: "\f0ab"; +} +.uk-icon-globe:before { + content: "\f0ac"; +} +.uk-icon-wrench:before { + content: "\f0ad"; +} +.uk-icon-tasks:before { + content: "\f0ae"; +} +.uk-icon-filter:before { + content: "\f0b0"; +} +.uk-icon-briefcase:before { + content: "\f0b1"; +} +.uk-icon-arrows-alt:before { + content: "\f0b2"; +} +.uk-icon-group:before, +.uk-icon-users:before { + content: "\f0c0"; +} +.uk-icon-chain:before, +.uk-icon-link:before { + content: "\f0c1"; +} +.uk-icon-cloud:before { + content: "\f0c2"; +} +.uk-icon-flask:before { + content: "\f0c3"; +} +.uk-icon-cut:before, +.uk-icon-scissors:before { + content: "\f0c4"; +} +.uk-icon-copy:before, +.uk-icon-files-o:before { + content: "\f0c5"; +} +.uk-icon-paperclip:before { + content: "\f0c6"; +} +.uk-icon-save:before, +.uk-icon-floppy-o:before { + content: "\f0c7"; +} +.uk-icon-square:before { + content: "\f0c8"; +} +.uk-icon-navicon:before, +.uk-icon-reorder:before, +.uk-icon-bars:before { + content: "\f0c9"; +} +.uk-icon-list-ul:before { + content: "\f0ca"; +} +.uk-icon-list-ol:before { + content: "\f0cb"; +} +.uk-icon-strikethrough:before { + content: "\f0cc"; +} +.uk-icon-underline:before { + content: "\f0cd"; +} +.uk-icon-table:before { + content: "\f0ce"; +} +.uk-icon-magic:before { + content: "\f0d0"; +} +.uk-icon-truck:before { + content: "\f0d1"; +} +.uk-icon-pinterest:before { + content: "\f0d2"; +} +.uk-icon-pinterest-square:before { + content: "\f0d3"; +} +.uk-icon-google-plus-square:before { + content: "\f0d4"; +} +.uk-icon-google-plus:before { + content: "\f0d5"; +} +.uk-icon-money:before { + content: "\f0d6"; +} +.uk-icon-caret-down:before { + content: "\f0d7"; +} +.uk-icon-caret-up:before { + content: "\f0d8"; +} +.uk-icon-caret-left:before { + content: "\f0d9"; +} +.uk-icon-caret-right:before { + content: "\f0da"; +} +.uk-icon-columns:before { + content: "\f0db"; +} +.uk-icon-unsorted:before, +.uk-icon-sort:before { + content: "\f0dc"; +} +.uk-icon-sort-down:before, +.uk-icon-sort-desc:before { + content: "\f0dd"; +} +.uk-icon-sort-up:before, +.uk-icon-sort-asc:before { + content: "\f0de"; +} +.uk-icon-envelope:before { + content: "\f0e0"; +} +.uk-icon-linkedin:before { + content: "\f0e1"; +} +.uk-icon-rotate-left:before, +.uk-icon-undo:before { + content: "\f0e2"; +} +.uk-icon-legal:before, +.uk-icon-gavel:before { + content: "\f0e3"; +} +.uk-icon-dashboard:before, +.uk-icon-tachometer:before { + content: "\f0e4"; +} +.uk-icon-comment-o:before { + content: "\f0e5"; +} +.uk-icon-comments-o:before { + content: "\f0e6"; +} +.uk-icon-flash:before, +.uk-icon-bolt:before { + content: "\f0e7"; +} +.uk-icon-sitemap:before { + content: "\f0e8"; +} +.uk-icon-umbrella:before { + content: "\f0e9"; +} +.uk-icon-paste:before, +.uk-icon-clipboard:before { + content: "\f0ea"; +} +.uk-icon-lightbulb-o:before { + content: "\f0eb"; +} +.uk-icon-exchange:before { + content: "\f0ec"; +} +.uk-icon-cloud-download:before { + content: "\f0ed"; +} +.uk-icon-cloud-upload:before { + content: "\f0ee"; +} +.uk-icon-user-md:before { + content: "\f0f0"; +} +.uk-icon-stethoscope:before { + content: "\f0f1"; +} +.uk-icon-suitcase:before { + content: "\f0f2"; +} +.uk-icon-bell-o:before { + content: "\f0a2"; +} +.uk-icon-coffee:before { + content: "\f0f4"; +} +.uk-icon-cutlery:before { + content: "\f0f5"; +} +.uk-icon-file-text-o:before { + content: "\f0f6"; +} +.uk-icon-building-o:before { + content: "\f0f7"; +} +.uk-icon-hospital-o:before { + content: "\f0f8"; +} +.uk-icon-ambulance:before { + content: "\f0f9"; +} +.uk-icon-medkit:before { + content: "\f0fa"; +} +.uk-icon-fighter-jet:before { + content: "\f0fb"; +} +.uk-icon-beer:before { + content: "\f0fc"; +} +.uk-icon-h-square:before { + content: "\f0fd"; +} +.uk-icon-plus-square:before { + content: "\f0fe"; +} +.uk-icon-angle-double-left:before { + content: "\f100"; +} +.uk-icon-angle-double-right:before { + content: "\f101"; +} +.uk-icon-angle-double-up:before { + content: "\f102"; +} +.uk-icon-angle-double-down:before { + content: "\f103"; +} +.uk-icon-angle-left:before { + content: "\f104"; +} +.uk-icon-angle-right:before { + content: "\f105"; +} +.uk-icon-angle-up:before { + content: "\f106"; +} +.uk-icon-angle-down:before { + content: "\f107"; +} +.uk-icon-desktop:before { + content: "\f108"; +} +.uk-icon-laptop:before { + content: "\f109"; +} +.uk-icon-tablet:before { + content: "\f10a"; +} +.uk-icon-mobile-phone:before, +.uk-icon-mobile:before { + content: "\f10b"; +} +.uk-icon-circle-o:before { + content: "\f10c"; +} +.uk-icon-quote-left:before { + content: "\f10d"; +} +.uk-icon-quote-right:before { + content: "\f10e"; +} +.uk-icon-spinner:before { + content: "\f110"; +} +.uk-icon-circle:before { + content: "\f111"; +} +.uk-icon-mail-reply:before, +.uk-icon-reply:before { + content: "\f112"; +} +.uk-icon-github-alt:before { + content: "\f113"; +} +.uk-icon-folder-o:before { + content: "\f114"; +} +.uk-icon-folder-open-o:before { + content: "\f115"; +} +.uk-icon-smile-o:before { + content: "\f118"; +} +.uk-icon-frown-o:before { + content: "\f119"; +} +.uk-icon-meh-o:before { + content: "\f11a"; +} +.uk-icon-gamepad:before { + content: "\f11b"; +} +.uk-icon-keyboard-o:before { + content: "\f11c"; +} +.uk-icon-flag-o:before { + content: "\f11d"; +} +.uk-icon-flag-checkered:before { + content: "\f11e"; +} +.uk-icon-terminal:before { + content: "\f120"; +} +.uk-icon-code:before { + content: "\f121"; +} +.uk-icon-mail-reply-all:before, +.uk-icon-reply-all:before { + content: "\f122"; +} +.uk-icon-star-half-empty:before, +.uk-icon-star-half-full:before, +.uk-icon-star-half-o:before { + content: "\f123"; +} +.uk-icon-location-arrow:before { + content: "\f124"; +} +.uk-icon-crop:before { + content: "\f125"; +} +.uk-icon-code-fork:before { + content: "\f126"; +} +.uk-icon-unlink:before, +.uk-icon-chain-broken:before { + content: "\f127"; +} +.uk-icon-question:before { + content: "\f128"; +} +.uk-icon-info:before { + content: "\f129"; +} +.uk-icon-exclamation:before { + content: "\f12a"; +} +.uk-icon-superscript:before { + content: "\f12b"; +} +.uk-icon-subscript:before { + content: "\f12c"; +} +.uk-icon-eraser:before { + content: "\f12d"; +} +.uk-icon-puzzle-piece:before { + content: "\f12e"; +} +.uk-icon-microphone:before { + content: "\f130"; +} +.uk-icon-microphone-slash:before { + content: "\f131"; +} +.uk-icon-shield:before { + content: "\f132"; +} +.uk-icon-calendar-o:before { + content: "\f133"; +} +.uk-icon-fire-extinguisher:before { + content: "\f134"; +} +.uk-icon-rocket:before { + content: "\f135"; +} +.uk-icon-maxcdn:before { + content: "\f136"; +} +.uk-icon-chevron-circle-left:before { + content: "\f137"; +} +.uk-icon-chevron-circle-right:before { + content: "\f138"; +} +.uk-icon-chevron-circle-up:before { + content: "\f139"; +} +.uk-icon-chevron-circle-down:before { + content: "\f13a"; +} +.uk-icon-html5:before { + content: "\f13b"; +} +.uk-icon-css3:before { + content: "\f13c"; +} +.uk-icon-anchor:before { + content: "\f13d"; +} +.uk-icon-unlock-alt:before { + content: "\f13e"; +} +.uk-icon-bullseye:before { + content: "\f140"; +} +.uk-icon-ellipsis-h:before { + content: "\f141"; +} +.uk-icon-ellipsis-v:before { + content: "\f142"; +} +.uk-icon-rss-square:before { + content: "\f143"; +} +.uk-icon-play-circle:before { + content: "\f144"; +} +.uk-icon-ticket:before { + content: "\f145"; +} +.uk-icon-minus-square:before { + content: "\f146"; +} +.uk-icon-minus-square-o:before { + content: "\f147"; +} +.uk-icon-level-up:before { + content: "\f148"; +} +.uk-icon-level-down:before { + content: "\f149"; +} +.uk-icon-check-square:before { + content: "\f14a"; +} +.uk-icon-pencil-square:before { + content: "\f14b"; +} +.uk-icon-external-link-square:before { + content: "\f14c"; +} +.uk-icon-share-square:before { + content: "\f14d"; +} +.uk-icon-compass:before { + content: "\f14e"; +} +.uk-icon-toggle-down:before, +.uk-icon-caret-square-o-down:before { + content: "\f150"; +} +.uk-icon-toggle-up:before, +.uk-icon-caret-square-o-up:before { + content: "\f151"; +} +.uk-icon-toggle-right:before, +.uk-icon-caret-square-o-right:before { + content: "\f152"; +} +.uk-icon-euro:before, +.uk-icon-eur:before { + content: "\f153"; +} +.uk-icon-gbp:before { + content: "\f154"; +} +.uk-icon-dollar:before, +.uk-icon-usd:before { + content: "\f155"; +} +.uk-icon-rupee:before, +.uk-icon-inr:before { + content: "\f156"; +} +.uk-icon-cny:before, +.uk-icon-rmb:before, +.uk-icon-yen:before, +.uk-icon-jpy:before { + content: "\f157"; +} +.uk-icon-ruble:before, +.uk-icon-rouble:before, +.uk-icon-rub:before { + content: "\f158"; +} +.uk-icon-won:before, +.uk-icon-krw:before { + content: "\f159"; +} +.uk-icon-bitcoin:before, +.uk-icon-btc:before { + content: "\f15a"; +} +.uk-icon-file:before { + content: "\f15b"; +} +.uk-icon-file-text:before { + content: "\f15c"; +} +.uk-icon-sort-alpha-asc:before { + content: "\f15d"; +} +.uk-icon-sort-alpha-desc:before { + content: "\f15e"; +} +.uk-icon-sort-amount-asc:before { + content: "\f160"; +} +.uk-icon-sort-amount-desc:before { + content: "\f161"; +} +.uk-icon-sort-numeric-asc:before { + content: "\f162"; +} +.uk-icon-sort-numeric-desc:before { + content: "\f163"; +} +.uk-icon-thumbs-up:before { + content: "\f164"; +} +.uk-icon-thumbs-down:before { + content: "\f165"; +} +.uk-icon-youtube-square:before { + content: "\f166"; +} +.uk-icon-youtube:before { + content: "\f167"; +} +.uk-icon-xing:before { + content: "\f168"; +} +.uk-icon-xing-square:before { + content: "\f169"; +} +.uk-icon-youtube-play:before { + content: "\f16a"; +} +.uk-icon-dropbox:before { + content: "\f16b"; +} +.uk-icon-stack-overflow:before { + content: "\f16c"; +} +.uk-icon-instagram:before { + content: "\f16d"; +} +.uk-icon-flickr:before { + content: "\f16e"; +} +.uk-icon-adn:before { + content: "\f170"; +} +.uk-icon-bitbucket:before { + content: "\f171"; +} +.uk-icon-bitbucket-square:before { + content: "\f172"; +} +.uk-icon-tumblr:before { + content: "\f173"; +} +.uk-icon-tumblr-square:before { + content: "\f174"; +} +.uk-icon-long-arrow-down:before { + content: "\f175"; +} +.uk-icon-long-arrow-up:before { + content: "\f176"; +} +.uk-icon-long-arrow-left:before { + content: "\f177"; +} +.uk-icon-long-arrow-right:before { + content: "\f178"; +} +.uk-icon-apple:before { + content: "\f179"; +} +.uk-icon-windows:before { + content: "\f17a"; +} +.uk-icon-android:before { + content: "\f17b"; +} +.uk-icon-linux:before { + content: "\f17c"; +} +.uk-icon-dribbble:before { + content: "\f17d"; +} +.uk-icon-skype:before { + content: "\f17e"; +} +.uk-icon-foursquare:before { + content: "\f180"; +} +.uk-icon-trello:before { + content: "\f181"; +} +.uk-icon-female:before { + content: "\f182"; +} +.uk-icon-male:before { + content: "\f183"; +} +.uk-icon-gittip:before, +.uk-icon-gratipay:before { + content: "\f184"; +} +.uk-icon-sun-o:before { + content: "\f185"; +} +.uk-icon-moon-o:before { + content: "\f186"; +} +.uk-icon-archive:before { + content: "\f187"; +} +.uk-icon-bug:before { + content: "\f188"; +} +.uk-icon-vk:before { + content: "\f189"; +} +.uk-icon-weibo:before { + content: "\f18a"; +} +.uk-icon-renren:before { + content: "\f18b"; +} +.uk-icon-pagelines:before { + content: "\f18c"; +} +.uk-icon-stack-exchange:before { + content: "\f18d"; +} +.uk-icon-arrow-circle-o-right:before { + content: "\f18e"; +} +.uk-icon-arrow-circle-o-left:before { + content: "\f190"; +} +.uk-icon-toggle-left:before, +.uk-icon-caret-square-o-left:before { + content: "\f191"; +} +.uk-icon-dot-circle-o:before { + content: "\f192"; +} +.uk-icon-wheelchair:before { + content: "\f193"; +} +.uk-icon-vimeo-square:before { + content: "\f194"; +} +.uk-icon-turkish-lira:before, +.uk-icon-try:before { + content: "\f195"; +} +.uk-icon-plus-square-o:before { + content: "\f196"; +} +.uk-icon-space-shuttle:before { + content: "\f197"; +} +.uk-icon-slack:before { + content: "\f198"; +} +.uk-icon-envelope-square:before { + content: "\f199"; +} +.uk-icon-wordpress:before { + content: "\f19a"; +} +.uk-icon-openid:before { + content: "\f19b"; +} +.uk-icon-institution:before, +.uk-icon-bank:before, +.uk-icon-university:before { + content: "\f19c"; +} +.uk-icon-mortar-board:before, +.uk-icon-graduation-cap:before { + content: "\f19d"; +} +.uk-icon-yahoo:before { + content: "\f19e"; +} +.uk-icon-google:before { + content: "\f1a0"; +} +.uk-icon-reddit:before { + content: "\f1a1"; +} +.uk-icon-reddit-square:before { + content: "\f1a2"; +} +.uk-icon-stumbleupon-circle:before { + content: "\f1a3"; +} +.uk-icon-stumbleupon:before { + content: "\f1a4"; +} +.uk-icon-delicious:before { + content: "\f1a5"; +} +.uk-icon-digg:before { + content: "\f1a6"; +} +.uk-icon-pied-piper:before { + content: "\f1a7"; +} +.uk-icon-pied-piper-alt:before { + content: "\f1a8"; +} +.uk-icon-drupal:before { + content: "\f1a9"; +} +.uk-icon-joomla:before { + content: "\f1aa"; +} +.uk-icon-language:before { + content: "\f1ab"; +} +.uk-icon-fax:before { + content: "\f1ac"; +} +.uk-icon-building:before { + content: "\f1ad"; +} +.uk-icon-child:before { + content: "\f1ae"; +} +.uk-icon-paw:before { + content: "\f1b0"; +} +.uk-icon-spoon:before { + content: "\f1b1"; +} +.uk-icon-cube:before { + content: "\f1b2"; +} +.uk-icon-cubes:before { + content: "\f1b3"; +} +.uk-icon-behance:before { + content: "\f1b4"; +} +.uk-icon-behance-square:before { + content: "\f1b5"; +} +.uk-icon-steam:before { + content: "\f1b6"; +} +.uk-icon-steam-square:before { + content: "\f1b7"; +} +.uk-icon-recycle:before { + content: "\f1b8"; +} +.uk-icon-automobile:before, +.uk-icon-car:before { + content: "\f1b9"; +} +.uk-icon-cab:before, +.uk-icon-taxi:before { + content: "\f1ba"; +} +.uk-icon-tree:before { + content: "\f1bb"; +} +.uk-icon-spotify:before { + content: "\f1bc"; +} +.uk-icon-deviantart:before { + content: "\f1bd"; +} +.uk-icon-soundcloud:before { + content: "\f1be"; +} +.uk-icon-database:before { + content: "\f1c0"; +} +.uk-icon-file-pdf-o:before { + content: "\f1c1"; +} +.uk-icon-file-word-o:before { + content: "\f1c2"; +} +.uk-icon-file-excel-o:before { + content: "\f1c3"; +} +.uk-icon-file-powerpoint-o:before { + content: "\f1c4"; +} +.uk-icon-file-photo-o:before, +.uk-icon-file-picture-o:before, +.uk-icon-file-image-o:before { + content: "\f1c5"; +} +.uk-icon-file-zip-o:before, +.uk-icon-file-archive-o:before { + content: "\f1c6"; +} +.uk-icon-file-sound-o:before, +.uk-icon-file-audio-o:before { + content: "\f1c7"; +} +.uk-icon-file-movie-o:before, +.uk-icon-file-video-o:before { + content: "\f1c8"; +} +.uk-icon-file-code-o:before { + content: "\f1c9"; +} +.uk-icon-vine:before { + content: "\f1ca"; +} +.uk-icon-codepen:before { + content: "\f1cb"; +} +.uk-icon-jsfiddle:before { + content: "\f1cc"; +} +.uk-icon-life-bouy:before, +.uk-icon-life-buoy:before, +.uk-icon-life-saver:before, +.uk-icon-support:before, +.uk-icon-life-ring:before { + content: "\f1cd"; +} +.uk-icon-circle-o-notch:before { + content: "\f1ce"; +} +.uk-icon-ra:before, +.uk-icon-rebel:before { + content: "\f1d0"; +} +.uk-icon-ge:before, +.uk-icon-empire:before { + content: "\f1d1"; +} +.uk-icon-git-square:before { + content: "\f1d2"; +} +.uk-icon-git:before { + content: "\f1d3"; +} +.uk-icon-hacker-news:before { + content: "\f1d4"; +} +.uk-icon-tencent-weibo:before { + content: "\f1d5"; +} +.uk-icon-qq:before { + content: "\f1d6"; +} +.uk-icon-wechat:before, +.uk-icon-weixin:before { + content: "\f1d7"; +} +.uk-icon-send:before, +.uk-icon-paper-plane:before { + content: "\f1d8"; +} +.uk-icon-send-o:before, +.uk-icon-paper-plane-o:before { + content: "\f1d9"; +} +.uk-icon-history:before { + content: "\f1da"; +} +.uk-icon-genderless:before, +.uk-icon-circle-thin:before { + content: "\f1db"; +} +.uk-icon-header:before { + content: "\f1dc"; +} +.uk-icon-paragraph:before { + content: "\f1dd"; +} +.uk-icon-sliders:before { + content: "\f1de"; +} +.uk-icon-share-alt:before { + content: "\f1e0"; +} +.uk-icon-share-alt-square:before { + content: "\f1e1"; +} +.uk-icon-bomb:before { + content: "\f1e2"; +} +.uk-icon-soccer-ball-o:before, +.uk-icon-futbol-o:before { + content: "\f1e3"; +} +.uk-icon-tty:before { + content: "\f1e4"; +} +.uk-icon-binoculars:before { + content: "\f1e5"; +} +.uk-icon-plug:before { + content: "\f1e6"; +} +.uk-icon-slideshare:before { + content: "\f1e7"; +} +.uk-icon-twitch:before { + content: "\f1e8"; +} +.uk-icon-yelp:before { + content: "\f1e9"; +} +.uk-icon-newspaper-o:before { + content: "\f1ea"; +} +.uk-icon-wifi:before { + content: "\f1eb"; +} +.uk-icon-calculator:before { + content: "\f1ec"; +} +.uk-icon-paypal:before { + content: "\f1ed"; +} +.uk-icon-google-wallet:before { + content: "\f1ee"; +} +.uk-icon-cc-visa:before { + content: "\f1f0"; +} +.uk-icon-cc-mastercard:before { + content: "\f1f1"; +} +.uk-icon-cc-discover:before { + content: "\f1f2"; +} +.uk-icon-cc-amex:before { + content: "\f1f3"; +} +.uk-icon-cc-paypal:before { + content: "\f1f4"; +} +.uk-icon-cc-stripe:before { + content: "\f1f5"; +} +.uk-icon-bell-slash:before { + content: "\f1f6"; +} +.uk-icon-bell-slash-o:before { + content: "\f1f7"; +} +.uk-icon-trash:before { + content: "\f1f8"; +} +.uk-icon-copyright:before { + content: "\f1f9"; +} +.uk-icon-at:before { + content: "\f1fa"; +} +.uk-icon-eyedropper:before { + content: "\f1fb"; +} +.uk-icon-paint-brush:before { + content: "\f1fc"; +} +.uk-icon-birthday-cake:before { + content: "\f1fd"; +} +.uk-icon-area-chart:before { + content: "\f1fe"; +} +.uk-icon-pie-chart:before { + content: "\f200"; +} +.uk-icon-line-chart:before { + content: "\f201"; +} +.uk-icon-lastfm:before { + content: "\f202"; +} +.uk-icon-lastfm-square:before { + content: "\f203"; +} +.uk-icon-toggle-off:before { + content: "\f204"; +} +.uk-icon-toggle-on:before { + content: "\f205"; +} +.uk-icon-bicycle:before { + content: "\f206"; +} +.uk-icon-bus:before { + content: "\f207"; +} +.uk-icon-ioxhost:before { + content: "\f208"; +} +.uk-icon-angellist:before { + content: "\f209"; +} +.uk-icon-cc:before { + content: "\f20a"; +} +.uk-icon-shekel:before, +.uk-icon-sheqel:before, +.uk-icon-ils:before { + content: "\f20b"; +} +.uk-icon-meanpath:before { + content: "\f20c"; +} +.uk-icon-buysellads:before { + content: "\f20d"; +} +.uk-icon-connectdevelop:before { + content: "\f20e"; +} +.uk-icon-dashcube:before { + content: "\f210"; +} +.uk-icon-forumbee:before { + content: "\f211"; +} +.uk-icon-leanpub:before { + content: "\f212"; +} +.uk-icon-sellsy:before { + content: "\f213"; +} +.uk-icon-shirtsinbulk:before { + content: "\f214"; +} +.uk-icon-simplybuilt:before { + content: "\f215"; +} +.uk-icon-skyatlas:before { + content: "\f216"; +} +.uk-icon-cart-plus:before { + content: "\f217"; +} +.uk-icon-cart-arrow-down:before { + content: "\f218"; +} +.uk-icon-diamond:before { + content: "\f219"; +} +.uk-icon-ship:before { + content: "\f21a"; +} +.uk-icon-user-secret:before { + content: "\f21b"; +} +.uk-icon-motorcycle:before { + content: "\f21c"; +} +.uk-icon-street-view:before { + content: "\f21d"; +} +.uk-icon-heartbeat:before { + content: "\f21e"; +} +.uk-icon-venus:before { + content: "\f221"; +} +.uk-icon-mars:before { + content: "\f222"; +} +.uk-icon-mercury:before { + content: "\f223"; +} +.uk-icon-transgender:before { + content: "\f224"; +} +.uk-icon-transgender-alt:before { + content: "\f225"; +} +.uk-icon-venus-double:before { + content: "\f226"; +} +.uk-icon-mars-double:before { + content: "\f227"; +} +.uk-icon-venus-mars:before { + content: "\f228"; +} +.uk-icon-mars-stroke:before { + content: "\f229"; +} +.uk-icon-mars-stroke-v:before { + content: "\f22a"; +} +.uk-icon-mars-stroke-h:before { + content: "\f22b"; +} +.uk-icon-neuter:before { + content: "\f22c"; +} +.uk-icon-facebook-official:before { + content: "\f230"; +} +.uk-icon-pinterest-p:before { + content: "\f231"; +} +.uk-icon-whatsapp:before { + content: "\f232"; +} +.uk-icon-server:before { + content: "\f233"; +} +.uk-icon-user-plus:before { + content: "\f234"; +} +.uk-icon-user-times:before { + content: "\f235"; +} +.uk-icon-hotel:before, +.uk-icon-bed:before { + content: "\f236"; +} +.uk-icon-viacoin:before { + content: "\f237"; +} +.uk-icon-train:before { + content: "\f238"; +} +.uk-icon-subway:before { + content: "\f239"; +} +.uk-icon-medium-logo:before { + content: "\f23a"; +} +/* ======================================================================== + Component: Close + ========================================================================== */ +/* + * Removes inner padding and border in Firefox 4+. + */ +.uk-close::-moz-focus-inner { + border: 0; + padding: 0; +} +/* + * 1. Correct inability to style clickable `input` types in iOS. + * 2. Remove margins in Chrome, Safari and Opera. + * 3. Remove borders for `button`. + * 4. Address `overflow` set to `hidden` in IE 8/9/10/11. + * 5. Correct `font` properties and `color` not being inherited for `button`. + * 6. Address inconsistent `text-transform` inheritance which is only inherit in Firefox and IE + * 7. Remove default `button` padding and background color + * 8. Style + */ +.uk-close { + /* 1 */ + -webkit-appearance: none; + /* 2 */ + margin: 0; + /* 3 */ + border: none; + /* 4 */ + overflow: visible; + /* 5 */ + font: inherit; + color: inherit; + /* 6 */ + text-transform: none; + /* 7. */ + padding: 0; + background: transparent; + /* 8 */ + display: inline-block; + -moz-box-sizing: content-box; + box-sizing: content-box; + width: 20px; + line-height: 20px; + text-align: center; + vertical-align: middle; + opacity: 0.3; +} +/* Icon */ +.uk-close:after { + display: block; + content: "\f00d"; + font-family: FontAwesome; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + * 3. Required for `a` elements + */ +.uk-close:hover, +.uk-close:focus { + opacity: 0.5; + /* 2 */ + outline: none; + /* 3 */ + color: inherit; + text-decoration: none; + cursor: pointer; +} +/* Modifier + ========================================================================== */ +.uk-close-alt { + padding: 2px; + border-radius: 50%; + background: #ffffff; + opacity: 1; + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 0 6px rgba(0, 0, 0, 0.3); +} +/* Hover */ +.uk-close-alt:hover, +.uk-close-alt:focus { + opacity: 1; +} +/* Icon */ +.uk-close-alt:after { + opacity: 0.5; +} +.uk-close-alt:hover:after, +.uk-close-alt:focus:after { + opacity: 0.8; +} +/* ======================================================================== + Component: Badge + ========================================================================== */ +.uk-badge { + display: inline-block; + padding: 0 5px; + background: #00a8e6; + font-size: 10px; + font-weight: bold; + line-height: 14px; + color: #ffffff; + text-align: center; + vertical-align: middle; + text-transform: none; + border: 1px solid rgba(0, 0, 0, 0.06); + border-radius: 2px; + text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); +} +/* + * Keep color when badge is a link + */ +a.uk-badge:hover { + color: #ffffff; +} +/* Modifier: `uk-badge-notification`; + ========================================================================== */ +.uk-badge-notification { + -moz-box-sizing: border-box; + box-sizing: border-box; + min-width: 18px; + border-radius: 500px; + font-size: 12px; + line-height: 18px; +} +/* Color modifier + ========================================================================== */ +/* + * Modifier: `uk-badge-success` + */ +.uk-badge-success { + background-color: #8cc14c; +} +/* + * Modifier: `uk-badge-warning` + */ +.uk-badge-warning { + background-color: #faa732; +} +/* + * Modifier: `uk-badge-danger` + */ +.uk-badge-danger { + background-color: #da314b; +} +/* ======================================================================== + Component: Alert + ========================================================================== */ +.uk-alert { + margin-bottom: 15px; + padding: 10px; + background: #ebf7fd; + color: #2d7091; + border: 1px solid rgba(45, 112, 145, 0.3); + border-radius: 4px; + text-shadow: 0 1px 0 #ffffff; +} +/* + * Add margin if adjacent element + */ +* + .uk-alert { + margin-top: 15px; +} +/* + * Remove margin from the last-child + */ +.uk-alert > :last-child { + margin-bottom: 0; +} +/* + * Keep color for headings if the default heading color is changed + */ +.uk-alert h1, +.uk-alert h2, +.uk-alert h3, +.uk-alert h4, +.uk-alert h5, +.uk-alert h6 { + color: inherit; +} +/* Close in alert + ========================================================================== */ +.uk-alert > .uk-close:first-child { + float: right; +} +/* + * Remove margin from adjacent element + */ +.uk-alert > .uk-close:first-child + * { + margin-top: 0; +} +/* Modifier: `uk-alert-success` + ========================================================================== */ +.uk-alert-success { + background: #f2fae3; + color: #659f13; + border-color: rgba(101, 159, 19, 0.3); +} +/* Modifier: `uk-alert-warning` + ========================================================================== */ +.uk-alert-warning { + background: #fffceb; + color: #e28327; + border-color: rgba(226, 131, 39, 0.3); +} +/* Modifier: `uk-alert-danger` + ========================================================================== */ +.uk-alert-danger { + background: #fff1f0; + color: #d85030; + border-color: rgba(216, 80, 48, 0.3); +} +/* Modifier: `uk-alert-large` + ========================================================================== */ +.uk-alert-large { + padding: 20px; +} +.uk-alert-large > .uk-close:first-child { + margin: -10px -10px 0 0; +} +/* ======================================================================== + Component: Thumbnail + ========================================================================== */ +/* + * 1. Container width fits its content + * 2. Responsive behavior + * 3. Corrects `max-width` behavior sed + * 4. Required for `figure` element + * 5. Style + */ +.uk-thumbnail { + /* 1 */ + display: inline-block; + /* 2 */ + max-width: 100%; + /* 3 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 3 */ + margin: 0; + /* 4 */ + padding: 4px; + border: 1px solid #dddddd; + background: #ffffff; + border-radius: 4px; +} +/* + * Hover state for `a` elements + * 1. Apply hover style also to focus state + * 2. Needed for caption + * 3. Remove default focus style + */ +a.uk-thumbnail:hover, +a.uk-thumbnail:focus { + border-color: #aaaaaa; + background-color: #ffffff; + /* 2 */ + text-decoration: none; + /* 3 */ + outline: none; +} +/* Caption + ========================================================================== */ +.uk-thumbnail-caption { + padding-top: 4px; + text-align: center; + color: #444444; +} +/* Sizes + ========================================================================== */ +.uk-thumbnail-mini { + width: 150px; +} +.uk-thumbnail-small { + width: 200px; +} +.uk-thumbnail-medium { + width: 300px; +} +.uk-thumbnail-large { + width: 400px; +} +.uk-thumbnail-expand, +.uk-thumbnail-expand > img { + width: 100%; +} +/* ======================================================================== + Component: Overlay + ========================================================================== */ +/* + * 1. Container width fits its content + * 2. Create position context + * 3. Set max-width for responsive images to prevent `inline-block` consequences + * 4. Remove the gap between the container and its child element + * 5. Needed for transitions and to fixed wrong scaling calculation for images in Chrome + * 6. Fixed `overflow: hidden` to be ignored with border-radius and CSS transforms in Webkit + * 7. Reset margin + */ +.uk-overlay { + /* 1 */ + display: inline-block; + /* 2 */ + position: relative; + /* 3 */ + max-width: 100%; + /* 4 */ + vertical-align: middle; + /* 5 */ + overflow: hidden; + /* 6 */ + -webkit-transform: translateZ(0); + /* 7 */ + margin: 0; +} +/* 6 for Safari */ +.uk-overlay.uk-border-circle { + -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%); +} +/* + * Remove margin from content + */ +.uk-overlay > :first-child { + margin-bottom: 0; +} +/* Sub-object `uk-overlay-panel` + ========================================================================== */ +/* + * 1. Position cover + * 2. Style + */ +.uk-overlay-panel { + /* 1 */ + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + /* 2 */ + padding: 20px; + color: #ffffff; +} +/* + * Remove margin from the last-child + */ +.uk-overlay-panel > :last-child, +.uk-overlay-panel.uk-flex > * > :last-child { + margin-bottom: 0; +} +/* + * Keep color for headings if the default heading color is changed + */ +.uk-overlay-panel h1, +.uk-overlay-panel h2, +.uk-overlay-panel h3, +.uk-overlay-panel h4, +.uk-overlay-panel h5, +.uk-overlay-panel h6 { + color: inherit; +} +.uk-overlay-panel a:not([class]) { + color: inherit; + text-decoration: underline; +} +.uk-overlay-panel a[class*='uk-icon-']:not(.uk-icon-button) { + color: inherit; +} +/* Sub-object `uk-overlay-hover` and `uk-overlay-active` + ========================================================================== */ +.uk-overlay-hover:not(:hover):not(.uk-hover) .uk-overlay-panel:not(.uk-ignore) { + opacity: 0; +} +.uk-overlay-active :not(.uk-active) > .uk-overlay-panel:not(.uk-ignore) { + opacity: 0; +} +/* Modifier `uk-overlay-background` + ========================================================================== */ +.uk-overlay-background { + background: rgba(0, 0, 0, 0.5); +} +/* Modifier `uk-overlay-image` + ========================================================================== */ +/* + * Reset panel + */ +.uk-overlay-image { + padding: 0; +} +/* Position modifiers + ========================================================================== */ +.uk-overlay-top { + bottom: auto; +} +.uk-overlay-bottom { + top: auto; +} +.uk-overlay-left { + right: auto; +} +.uk-overlay-right { + left: auto; +} +/* Sub-object `uk-overlay-icon` + ========================================================================== */ +.uk-overlay-icon:before { + content: "\f002"; + position: absolute; + top: 50%; + left: 50%; + width: 50px; + height: 50px; + margin-top: -25px; + margin-left: -25px; + font-size: 50px; + line-height: 1; + font-family: FontAwesome; + text-align: center; + color: #ffffff; +} +/* Transitions + ========================================================================== */ +.uk-overlay-fade, +.uk-overlay-scale, +.uk-overlay-spin, +.uk-overlay-grayscale, +.uk-overlay-blur, +[class*='uk-overlay-slide'] { + transition-duration: 0.3s; + transition-timing-function: ease-out; + transition-property: opacity transform filter; +} +.uk-overlay-active .uk-overlay-fade, +.uk-overlay-active .uk-overlay-scale, +.uk-overlay-active .uk-overlay-spin, +.uk-overlay-active [class*='uk-overlay-slide'] { + transition-duration: 0.8s; +} +/* + * Fade + */ +.uk-overlay-fade { + opacity: 0.7; +} +.uk-overlay-hover:hover .uk-overlay-fade, +.uk-overlay-active .uk-active > .uk-overlay-fade { + opacity: 1; +} +/* + * Scale + */ +.uk-overlay-scale { + -webkit-transform: scale(1); + transform: scale(1); +} +.uk-overlay-hover:hover .uk-overlay-scale, +.uk-overlay-active .uk-active > .uk-overlay-scale { + -webkit-transform: scale(1.1); + transform: scale(1.1); +} +/* + * Spin + */ +.uk-overlay-spin { + -webkit-transform: scale(1) rotate(0deg); + transform: scale(1) rotate(0deg); +} +.uk-overlay-hover:hover .uk-overlay-spin, +.uk-overlay-active .uk-active > .uk-overlay-spin { + -webkit-transform: scale(1.1) rotate(3deg); + transform: scale(1.1) rotate(3deg); +} +/* + * Grayscale + */ +.uk-overlay-grayscale { + -webkit-filter: grayscale(100%); + filter: grayscale(100%); +} +.uk-overlay-hover:hover .uk-overlay-grayscale, +.uk-overlay-active .uk-active > .uk-overlay-grayscale { + -webkit-filter: grayscale(0%); + filter: grayscale(0%); +} +/* + * Slide + */ +[class*='uk-overlay-slide'] { + opacity: 0; +} +/* Top */ +.uk-overlay-slide-top { + -webkit-transform: translateY(-100%); + transform: translateY(-100%); +} +/* Bottom */ +.uk-overlay-slide-bottom { + -webkit-transform: translateY(100%); + transform: translateY(100%); +} +/* Left */ +.uk-overlay-slide-left { + -webkit-transform: translateX(-100%); + transform: translateX(-100%); +} +/* Right */ +.uk-overlay-slide-right { + -webkit-transform: translateX(100%); + transform: translateX(100%); +} +/* Hover */ +.uk-overlay-hover:hover [class*='uk-overlay-slide'], +.uk-overlay-active .uk-active > [class*='uk-overlay-slide'] { + opacity: 1; + -webkit-transform: translateX(0) translateY(0); + transform: translateX(0) translateY(0); +} +/* DEPRECATED + * Sub-object `uk-overlay-area` + ========================================================================== */ +/* + * 1. Set position + * 2. Set style + * 3. Fade-in transition + */ +.uk-overlay-area { + /* 1 */ + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + /* 2 */ + background: rgba(0, 0, 0, 0.3); + /* 3 */ + opacity: 0; + -webkit-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; + -webkit-transform: translate3d(0, 0, 0); +} +/* + * Hover + * 1. `uk-hover` to support touch devices + * 2. Use optional `uk-overlay-toggle` to trigger the overlay earlier + */ +.uk-overlay:hover .uk-overlay-area, +.uk-overlay.uk-hover .uk-overlay-area, +.uk-overlay-toggle:hover .uk-overlay-area, +.uk-overlay-toggle.uk-hover .uk-overlay-area { + opacity: 1; +} +/* + * Icon + */ +.uk-overlay-area:empty:before { + content: "\f002"; + position: absolute; + top: 50%; + left: 50%; + width: 50px; + height: 50px; + margin-top: -25px; + margin-left: -25px; + font-size: 50px; + line-height: 1; + font-family: FontAwesome; + text-align: center; + color: #ffffff; +} +/* DEPRECATED + * Sub-object `uk-overlay-area-content` + ========================================================================== */ +/* + * Remove whitespace between child elements when using `inline-block` + * Needed for Firefox + */ +.uk-overlay-area:not(:empty) { + font-size: 0.001px; +} +/* + * 1. Needed for vertical alignment + */ +.uk-overlay-area:not(:empty):before { + content: ''; + display: inline-block; + height: 100%; + vertical-align: middle; +} +/* + * 1. Set vertical alignment + * 2. Reset whitespace hack + * 3. Set horizontal alignment + * 4. Set style + */ +.uk-overlay-area-content { + /* 1 */ + display: inline-block; + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 100%; + vertical-align: middle; + /* 2 */ + font-size: 1rem; + /* 3 */ + text-align: center; + /* 4 */ + padding: 0 15px; + color: #ffffff; +} +/* + * Remove margin from the last-child + */ +.uk-overlay-area-content > :last-child { + margin-bottom: 0; +} +/* + * Links in overlay area + */ +.uk-overlay-area-content a:not([class]), +.uk-overlay-area-content a:not([class]):hover { + color: inherit; +} +/* DEPRECATED + * Sub-object `uk-overlay-caption` + ========================================================================== */ +/* + * 1. Set position + * 2. Set style + * 3. Fade-in transition + */ +.uk-overlay-caption { + /* 1 */ + position: absolute; + bottom: 0; + left: 0; + right: 0; + /* 2 */ + padding: 15px; + background: rgba(0, 0, 0, 0.5); + color: #ffffff; + /* 3 */ + opacity: 0; + -webkit-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; + -webkit-transform: translate3d(0, 0, 0); +} +/* + * Hover + * 1. `uk-hover` to support touch devices + * 2. Use optional `uk-overlay-toggle` to trigger the overlay earlier + */ +.uk-overlay:hover .uk-overlay-caption, +.uk-overlay.uk-hover .uk-overlay-caption, +.uk-overlay-toggle:hover .uk-overlay-caption, +.uk-overlay-toggle.uk-hover .uk-overlay-caption { + opacity: 1; +} +/* ======================================================================== + Component: Animation + ========================================================================== */ +[class*='uk-animation-'] { + -webkit-animation-duration: 0.5s; + animation-duration: 0.5s; + -webkit-animation-timing-function: ease-out; + animation-timing-function: ease-out; + -webkit-animation-fill-mode: both; + animation-fill-mode: both; +} +/* Hide animated element if scrollspy is used */ +@media screen { + [data-uk-scrollspy*='uk-animation-']:not([data-uk-scrollspy*='target']) { + opacity: 0; + } +} +/* + * Fade + * Higher specificity (!important) needed because of reverse modifier + */ +.uk-animation-fade { + -webkit-animation-name: uk-fade; + animation-name: uk-fade; + -webkit-animation-duration: 0.8s; + animation-duration: 0.8s; + -webkit-animation-timing-function: linear !important; + animation-timing-function: linear !important; +} +/* + * Fade with scale + */ +.uk-animation-scale-up { + -webkit-animation-name: uk-fade-scale-02; + animation-name: uk-fade-scale-02; +} +.uk-animation-scale-down { + -webkit-animation-name: uk-fade-scale-18; + animation-name: uk-fade-scale-18; +} +/* + * Fade with slide + */ +.uk-animation-slide-top { + -webkit-animation-name: uk-fade-top; + animation-name: uk-fade-top; +} +.uk-animation-slide-bottom { + -webkit-animation-name: uk-fade-bottom; + animation-name: uk-fade-bottom; +} +.uk-animation-slide-left { + -webkit-animation-name: uk-fade-left; + animation-name: uk-fade-left; +} +.uk-animation-slide-right { + -webkit-animation-name: uk-fade-right; + animation-name: uk-fade-right; +} +/* + * Scale + */ +.uk-animation-scale { + -webkit-animation-name: uk-scale-12; + animation-name: uk-scale-12; +} +/* + * Shake + */ +.uk-animation-shake { + -webkit-animation-name: uk-shake; + animation-name: uk-shake; +} +/* Direction modifiers + ========================================================================== */ +.uk-animation-reverse { + -webkit-animation-direction: reverse; + animation-direction: reverse; + -webkit-animation-timing-function: ease-in; + animation-timing-function: ease-in; +} +/* Duration modifiers +========================================================================== */ +.uk-animation-15 { + -webkit-animation-duration: 15s; + animation-duration: 15s; +} +/* Origin modifiers +========================================================================== */ +.uk-animation-top-left { + -webkit-transform-origin: 0 0; + transform-origin: 0 0; +} +.uk-animation-top-center { + -webkit-transform-origin: 50% 0; + transform-origin: 50% 0; +} +.uk-animation-top-right { + -webkit-transform-origin: 100% 0; + transform-origin: 100% 0; +} +.uk-animation-middle-left { + -webkit-transform-origin: 0 50%; + transform-origin: 0 50%; +} +.uk-animation-middle-right { + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; +} +.uk-animation-bottom-left { + -webkit-transform-origin: 0 100%; + transform-origin: 0 100%; +} +.uk-animation-bottom-center { + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +.uk-animation-bottom-right { + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; +} +/* Sub-object: `uk-animation-hover` +========================================================================== */ +/* + * Enable animation only on hover + * Note: Firefox also needs this because animations are not triggered when switching between display `hidden` and `block` + */ +.uk-animation-hover:not(:hover), +.uk-animation-hover:not(:hover) [class*='uk-animation-'], +.uk-touch .uk-animation-hover:not(.uk-hover), +.uk-touch .uk-animation-hover:not(.uk-hover) [class*='uk-animation-'] { + -webkit-animation-name: none; + animation-name: none; +} +/* Keyframes: Fade + * Used by dropdown, datepicker and slideshow component + ========================================================================== */ +@-webkit-keyframes uk-fade { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +@keyframes uk-fade { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +/* Keyframes: Fade with slide + ========================================================================== */ +/* + * Top + */ +@-webkit-keyframes uk-fade-top { + 0% { + opacity: 0; + -webkit-transform: translateY(-100%); + } + 100% { + opacity: 1; + -webkit-transform: translateY(0); + } +} +@keyframes uk-fade-top { + 0% { + opacity: 0; + transform: translateY(-100%); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +/* + * Bottom + */ +@-webkit-keyframes uk-fade-bottom { + 0% { + opacity: 0; + -webkit-transform: translateY(100%); + } + 100% { + opacity: 1; + -webkit-transform: translateY(0); + } +} +@keyframes uk-fade-bottom { + 0% { + opacity: 0; + transform: translateY(100%); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +/* + * Left + */ +@-webkit-keyframes uk-fade-left { + 0% { + opacity: 0; + -webkit-transform: translateX(-100%); + } + 100% { + opacity: 1; + -webkit-transform: translateX(0); + } +} +@keyframes uk-fade-left { + 0% { + opacity: 0; + transform: translateX(-100%); + } + 100% { + opacity: 1; + transform: translateX(0); + } +} +/* + * Right + */ +@-webkit-keyframes uk-fade-right { + 0% { + opacity: 0; + -webkit-transform: translateX(100%); + } + 100% { + opacity: 1; + -webkit-transform: translateX(0); + } +} +@keyframes uk-fade-right { + 0% { + opacity: 0; + transform: translateX(100%); + } + 100% { + opacity: 1; + transform: translateX(0); + } +} +/* Keyframes: Fade with scale + ========================================================================== */ +/* + * Scale by 0.2 + */ +@-webkit-keyframes uk-fade-scale-02 { + 0% { + opacity: 0; + -webkit-transform: scale(0.2); + } + 100% { + opacity: 1; + -webkit-transform: scale(1); + } +} +@keyframes uk-fade-scale-02 { + 0% { + opacity: 0; + transform: scale(0.2); + } + 100% { + opacity: 1; + transform: scale(1); + } +} +/* + * Scale by 1.5 + * Used by slideshow component + */ +@-webkit-keyframes uk-fade-scale-15 { + 0% { + opacity: 0; + -webkit-transform: scale(1.5); + } + 100% { + opacity: 1; + -webkit-transform: scale(1); + } +} +@keyframes uk-fade-scale-15 { + 0% { + opacity: 0; + transform: scale(1.5); + } + 100% { + opacity: 1; + transform: scale(1); + } +} +/* + * Scale by 1.8 + */ +@-webkit-keyframes uk-fade-scale-18 { + 0% { + opacity: 0; + -webkit-transform: scale(1.8); + } + 100% { + opacity: 1; + -webkit-transform: scale(1); + } +} +@keyframes uk-fade-scale-18 { + 0% { + opacity: 0; + transform: scale(1.8); + } + 100% { + opacity: 1; + transform: scale(1); + } +} +/* Keyframes: Slide + * Used by slideshow component + ========================================================================== */ +/* + * Left + */ +@-webkit-keyframes uk-slide-left { + 0% { + -webkit-transform: translateX(-100%); + } + 100% { + -webkit-transform: translateX(0); + } +} +@keyframes uk-slide-left { + 0% { + transform: translateX(-100%); + } + 100% { + transform: translateX(0); + } +} +/* + * Right + */ +@-webkit-keyframes uk-slide-right { + 0% { + -webkit-transform: translateX(100%); + } + 100% { + -webkit-transform: translateX(0); + } +} +@keyframes uk-slide-right { + 0% { + transform: translateX(100%); + } + 100% { + transform: translateX(0); + } +} +/* + * Left third + */ +@-webkit-keyframes uk-slide-left-33 { + 0% { + -webkit-transform: translateX(33%); + } + 100% { + -webkit-transform: translateX(0); + } +} +@keyframes uk-slide-left-33 { + 0% { + transform: translateX(33%); + } + 100% { + transform: translateX(0); + } +} +/* + * Right third + */ +@-webkit-keyframes uk-slide-right-33 { + 0% { + -webkit-transform: translateX(-33%); + } + 100% { + -webkit-transform: translateX(0); + } +} +@keyframes uk-slide-right-33 { + 0% { + transform: translateX(-33%); + } + 100% { + transform: translateX(0); + } +} +/* Keyframes: Scale + ========================================================================== */ +@-webkit-keyframes uk-scale-12 { + 0% { + -webkit-transform: scale(1.2); + } + 100% { + -webkit-transform: scale(1); + } +} +@keyframes uk-scale-12 { + 0% { + transform: scale(1.2); + } + 100% { + transform: scale(1); + } +} +/* Keyframes: Rotate + * Used by icon component + ========================================================================== */ +@-webkit-keyframes uk-rotate { + 0% { + -webkit-transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + } +} +@keyframes uk-rotate { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(359deg); + } +} +/* Keyframes: Shake + ========================================================================== */ +@-webkit-keyframes uk-shake { + 0%, + 100% { + -webkit-transform: translateX(0); + } + 10% { + -webkit-transform: translateX(-9px); + } + 20% { + -webkit-transform: translateX(8px); + } + 30% { + -webkit-transform: translateX(-7px); + } + 40% { + -webkit-transform: translateX(6px); + } + 50% { + -webkit-transform: translateX(-5px); + } + 60% { + -webkit-transform: translateX(4px); + } + 70% { + -webkit-transform: translateX(-3px); + } + 80% { + -webkit-transform: translateX(2px); + } + 90% { + -webkit-transform: translateX(-1px); + } +} +@keyframes uk-shake { + 0%, + 100% { + transform: translateX(0); + } + 10% { + transform: translateX(-9px); + } + 20% { + transform: translateX(8px); + } + 30% { + transform: translateX(-7px); + } + 40% { + transform: translateX(6px); + } + 50% { + transform: translateX(-5px); + } + 60% { + transform: translateX(4px); + } + 70% { + transform: translateX(-3px); + } + 80% { + transform: translateX(2px); + } + 90% { + transform: translateX(-1px); + } +} +/* Keyframes: Fade with slide fixed + * Used by dropdown and search component + ========================================================================== */ +/* + * Top fixed + */ +@-webkit-keyframes uk-slide-top-fixed { + 0% { + opacity: 0; + -webkit-transform: translateY(-10px); + } + 100% { + opacity: 1; + -webkit-transform: translateY(0); + } +} +@keyframes uk-slide-top-fixed { + 0% { + opacity: 0; + transform: translateY(-10px); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +/* + * Bottom fixed + */ +@-webkit-keyframes uk-slide-bottom-fixed { + 0% { + opacity: 0; + -webkit-transform: translateY(10px); + } + 100% { + opacity: 1; + -webkit-transform: translateY(0); + } +} +@keyframes uk-slide-bottom-fixed { + 0% { + opacity: 0; + transform: translateY(10px); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +/* ======================================================================== + Component: Dropdown + ========================================================================== */ +/* + * 1. Hide by default + * 2. Set position + * 3. Box-sizing is needed for `uk-dropdown-justify` + * 4. Set style + * 5. Reset button group whitespace hack + */ +.uk-dropdown { + /* 1 */ + display: none; + /* 2 */ + position: absolute; + top: 100%; + left: 0; + z-index: 1020; + /* 3 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 4 */ + width: 200px; + margin-top: 5px; + padding: 15px; + background: #ffffff; + color: #444444; + /* 5 */ + font-size: 1rem; + vertical-align: top; + border: 1px solid #dddddd; + border-radius: 4px; +} +/* + * 1. Show dropdown + * 2. Set animation + * 3. Needed for scale animation + */ +.uk-open > .uk-dropdown { + /* 1 */ + display: block; + /* 2 */ + -webkit-animation: uk-fade 0.2s ease-in-out; + animation: uk-fade 0.2s ease-in-out; + /* 3 */ + -webkit-transform-origin: 0 0; + transform-origin: 0 0; +} +/* Alignment modifiers + ========================================================================== */ +/* + * Modifier `uk-dropdown-flip` + */ +.uk-dropdown-flip { + left: auto; + right: 0; +} +/* + * Modifier `uk-dropdown-up` + */ +.uk-dropdown-up { + top: auto; + bottom: 100%; + margin-top: auto; + margin-bottom: 5px; +} +/* Nav in dropdown + ========================================================================== */ +.uk-dropdown .uk-nav { + margin: 0 -15px; +} +/* Grid and panel in dropdown + ========================================================================== */ +/* +* Vertical gutter +*/ +/* + * Grid + * Higher specificity to override large gutter + */ +.uk-grid .uk-dropdown-grid + .uk-dropdown-grid { + margin-top: 15px; +} +/* Panels */ +.uk-dropdown-grid > [class*='uk-width-'] > .uk-panel + .uk-panel { + margin-top: 15px; +} +/* Tablet and bigger */ +@media (min-width: 768px) { + /* + * Horizontal gutter + */ + .uk-dropdown:not(.uk-dropdown-stack) > .uk-dropdown-grid { + margin-left: -15px; + margin-right: -15px; + } + .uk-dropdown:not(.uk-dropdown-stack) > .uk-dropdown-grid > [class*='uk-width-'] { + padding-left: 15px; + padding-right: 15px; + } + /* + * Column divider + */ + .uk-dropdown:not(.uk-dropdown-stack) > .uk-dropdown-grid > [class*='uk-width-']:nth-child(n+2) { + border-left: 1px solid #dddddd; + } + /* + * Width multiplier for dropdown columns + */ + .uk-dropdown-width-2:not(.uk-dropdown-stack) { + width: 400px; + } + .uk-dropdown-width-3:not(.uk-dropdown-stack) { + width: 600px; + } + .uk-dropdown-width-4:not(.uk-dropdown-stack) { + width: 800px; + } + .uk-dropdown-width-5:not(.uk-dropdown-stack) { + width: 1000px; + } +} +/* Phone landscape and smaller */ +@media (max-width: 767px) { + /* + * Stack columns and take full width + */ + .uk-dropdown-grid > [class*='uk-width-'] { + width: 100%; + } + /* + * Vertical gutter + */ + .uk-dropdown-grid > [class*='uk-width-']:nth-child(n+2) { + margin-top: 15px; + } +} +/* +* Stack grid columns +*/ +.uk-dropdown-stack > .uk-dropdown-grid > [class*='uk-width-'] { + width: 100%; +} +.uk-dropdown-stack > .uk-dropdown-grid > [class*='uk-width-']:nth-child(n+2) { + margin-top: 15px; +} +/* Modifier `uk-dropdown-small` + ========================================================================== */ +/* + * Set min-width and text expands dropdown if needed + */ +.uk-dropdown-small { + min-width: 150px; + width: auto; + padding: 5px; + white-space: nowrap; +} +/* + * Nav in dropdown + */ +.uk-dropdown-small .uk-nav { + margin: 0 -5px; +} +/* Modifier: `uk-dropdown-navbar` + ========================================================================== */ +.uk-dropdown-navbar { + margin-top: 6px; + background: #ffffff; + color: #444444; + left: -1px; +} +.uk-open > .uk-dropdown-navbar { + -webkit-animation: uk-slide-top-fixed 0.2s ease-in-out; + animation: uk-slide-top-fixed 0.2s ease-in-out; +} +/* Modifier `uk-dropdown-scrollable` + ========================================================================== */ +/* + * Usefull for long lists + */ +.uk-dropdown-scrollable { + overflow-y: auto; + max-height: 200px; +} +.uk-dropdown-navbar.uk-dropdown-flip { + left: auto; +} +/* ======================================================================== + Component: Modal + ========================================================================== */ +/* + * This is the modal overlay and modal dialog container + * 1. Hide by default + * 2. Set fixed position + * 3. Allow scrolling for the modal dialog + * 4. Mask the background page + * 5. Fade-in transition + * 6. Deactivate browser history navigation in IE11 + * 7. force hardware acceleration to prevent browser rendering hiccups + */ +.uk-modal { + /* 1 */ + display: none; + /* 2 */ + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1010; + /* 3 */ + overflow-y: auto; + -webkit-overflow-scrolling: touch; + /* 4 */ + background: rgba(0, 0, 0, 0.6); + /* 5 */ + opacity: 0; + -webkit-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; + /* 6 */ + touch-action: cross-slide-y pinch-zoom double-tap-zoom; + /* 7 */ + -webkit-transform: translateZ(0); + transform: translateZ(0); +} +/* + * Open state + */ +.uk-modal.uk-open { + opacity: 1; +} +/* + * Prevents duplicated scrollbar caused by 4. + */ +.uk-modal-page, +.uk-modal-page body { + overflow: hidden; +} +/* Sub-object: `uk-modal-dialog` + ========================================================================== */ +/* + * 1. Create position context for caption, spinner and close button + * 2. Set box sizing + * 3. Set style + * 4. Slide-in transition + */ +.uk-modal-dialog { + /* 1 */ + position: relative; + /* 2 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + margin: 50px auto; + padding: 20px; + width: 600px; + max-width: 100%; + max-width: calc(100% - 20px); + /* 3 */ + background: #ffffff; + /* 4 */ + opacity: 0; + -webkit-transform: translateY(-100px); + transform: translateY(-100px); + -webkit-transition: opacity 0.3s linear, -webkit-transform 0.3s ease-out; + transition: opacity 0.3s linear, transform 0.3s ease-out; + border-radius: 4px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); +} +/* Phone landscape and smaller */ +@media (max-width: 767px) { + /* + * Fit in small screen + */ + .uk-modal-dialog { + width: auto; + margin: 10px auto; + } +} +/* + * Open state + */ +.uk-open .uk-modal-dialog { + /* 4 */ + opacity: 1; + -webkit-transform: translateY(0); + transform: translateY(0); +} +/* + * Remove margin from the last-child + */ +.uk-modal-dialog > :not([class*='uk-modal-']):last-child { + margin-bottom: 0; +} +/* Close in modal + ========================================================================== */ +.uk-modal-dialog > .uk-close:first-child { + margin: -10px -10px 0 0; + float: right; +} +/* + * Remove margin from adjacent element + */ +.uk-modal-dialog > .uk-close:first-child + :not([class*='uk-modal-']) { + margin-top: 0; +} +/* Modifier: `uk-modal-dialog-lightbox` + ========================================================================== */ +.uk-modal-dialog-lightbox { + margin: 15px auto; + padding: 0; + max-width: 95%; + max-width: calc(100% - 30px); + border-radius: 0; +} +/* + * Close button + */ +.uk-modal-dialog-lightbox > .uk-close:first-child { + position: absolute; + top: -12px; + right: -12px; + margin: 0; + float: none; +} +/* Phone landscape and smaller */ +@media (max-width: 767px) { + .uk-modal-dialog-lightbox > .uk-close:first-child { + top: -7px; + right: -7px; + } +} +/* Modifier: `uk-modal-dialog-large` + ========================================================================== */ +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-modal-dialog-large { + width: 930px; + } +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + .uk-modal-dialog-large { + width: 1130px; + } +} +/* Sub-Object: `uk-modal-header` and `uk-modal-footer` + ========================================================================== */ +.uk-modal-header { + margin-bottom: 15px; + margin: -20px -20px 15px -20px; + padding: 20px; + border-bottom: 1px solid #dddddd; + border-radius: 4px 4px 0 0; + background: #fafafa; +} +.uk-modal-footer { + margin-top: 15px; + margin: 15px -20px -20px -20px; + padding: 20px; + border-top: 1px solid #dddddd; + border-radius: 0 0 4px 4px; + background: #fafafa; +} +/* + * Remove margin from the last-child + */ +.uk-modal-header > :last-child, +.uk-modal-footer > :last-child { + margin-bottom: 0; +} +/* Sub-Object: `uk-modal-caption` + ========================================================================== */ +.uk-modal-caption { + position: absolute; + left: 0; + right: 0; + bottom: -20px; + margin-bottom: -10px; + color: #ffffff; + text-align: center; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +/* Sub-Object: `uk-modal-spinner` + ========================================================================== */ +.uk-modal-spinner { + position: absolute; + top: 50%; + left: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + font-size: 25px; + color: #ddd; +} +.uk-modal-spinner:after { + content: "\f110"; + font-family: FontAwesome; + -webkit-animation: uk-rotate 2s infinite linear; + animation: uk-rotate 2s infinite linear; +} +/* ======================================================================== + Component: Off-canvas + ========================================================================== */ +/* + * This is the offcanvas overlay and bar container + * 1. Hide by default + * 2. Set fixed position + * 3. Deactivate browser touch actions in IE11 + * 4. Mask the background page + */ +.uk-offcanvas { + /* 1 */ + display: none; + /* 2 */ + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1000; + /* 3 */ + touch-action: none; + /* 4 */ + background: rgba(0, 0, 0, 0.1); +} +.uk-offcanvas.uk-active { + display: block; +} +/* Sub-object `uk-offcanvas-page` + ========================================================================== */ +/* + * Prepares the whole HTML page to slide-out + * 1. Fix the main page and disallow scrolling + * 2. Side-out transition + */ +.uk-offcanvas-page { + /* 1 */ + position: fixed; + /* 2 */ + -webkit-transition: margin-left 0.3s ease-in-out; + transition: margin-left 0.3s ease-in-out; +} +/* Sub-object `uk-offcanvas-bar` + ========================================================================== */ +/* + * This is the offcanvas bar + * 1. Set fixed position + * 2. Size and style + * 3. Allow scrolling + * 4. Side-out transition + * 5. Deavtivate scroll chaining in IE11 + */ +.uk-offcanvas-bar { + /* 1 */ + position: fixed; + top: 0; + bottom: 0; + left: 0; + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + z-index: 1001; + /* 2 */ + width: 270px; + max-width: 100%; + background: #333333; + /* 3 */ + overflow-y: auto; + -webkit-overflow-scrolling: touch; + /* 4 */ + -webkit-transition: -webkit-transform 0.3s ease-in-out; + transition: transform 0.3s ease-in-out; + /* 5 */ + -ms-scroll-chaining: none; +} +.uk-offcanvas.uk-active .uk-offcanvas-bar.uk-offcanvas-bar-show { + -webkit-transform: translateX(0%); + transform: translateX(0%); +} +/* Modifier `uk-offcanvas-bar-flip` + ========================================================================== */ +.uk-offcanvas-bar-flip { + left: auto; + right: 0; + -webkit-transform: translateX(100%); + transform: translateX(100%); +} +/* Panel in offcanvas + ========================================================================== */ +.uk-offcanvas .uk-panel { + margin: 20px 15px; + color: #777777; + text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); +} +.uk-offcanvas .uk-panel-title { + color: #cccccc; +} +.uk-offcanvas .uk-panel a:not([class]) { + color: #cccccc; +} +.uk-offcanvas .uk-panel a:not([class]):hover { + color: #ffffff; +} +.uk-offcanvas-bar:after { + content: ""; + display: block; + position: absolute; + top: 0; + bottom: 0; + right: 0; + width: 1px; + background: rgba(0, 0, 0, 0.6); + box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.6); +} +.uk-offcanvas-bar-flip:after { + right: auto; + left: 0; + width: 1px; + background: rgba(0, 0, 0, 0.6); + box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.6); +} +/* ======================================================================== + Component: Switcher + ========================================================================== */ +/* + * 1. Deactivate browser history navigation in IE11 + */ +.uk-switcher { + margin: 0; + padding: 0; + list-style: none; + /* 1 */ + touch-action: cross-slide-y pinch-zoom double-tap-zoom; +} +/* + * Items + */ +.uk-switcher > :not(.uk-active) { + display: none; +} +/* ======================================================================== + Component: Text + ========================================================================== */ +/* Size modifiers + ========================================================================== */ +.uk-text-small { + font-size: 11px; + line-height: 16px; +} +.uk-text-large { + font-size: 18px; + line-height: 24px; + font-weight: normal; +} +/* Weight modifiers + ========================================================================== */ +.uk-text-bold { + font-weight: bold; +} +/* Color modifiers + ========================================================================== */ +.uk-text-muted { + color: #999999 !important; +} +.uk-text-primary { + color: #2d7091 !important; +} +.uk-text-success { + color: #659f13 !important; +} +.uk-text-warning { + color: #e28327 !important; +} +.uk-text-danger { + color: #d85030 !important; +} +.uk-text-contrast { + color: #ffffff !important; +} +/* Alignment modifiers + ========================================================================== */ +.uk-text-left { + text-align: left !important; +} +.uk-text-right { + text-align: right !important; +} +.uk-text-center { + text-align: center !important; +} +.uk-text-justify { + text-align: justify !important; +} +.uk-text-top { + vertical-align: top !important; +} +.uk-text-middle { + vertical-align: middle !important; +} +.uk-text-bottom { + vertical-align: bottom !important; +} +/* Only tablets portrait and smaller */ +@media (max-width: 959px) { + .uk-text-center-medium { + text-align: center !important; + } + .uk-text-left-medium { + text-align: left !important; + } +} +/* Phone landscape and smaller */ +@media (max-width: 767px) { + .uk-text-center-small { + text-align: center !important; + } + .uk-text-left-small { + text-align: left !important; + } +} +/* Wrap modifiers + ========================================================================== */ +/* + * Prevent text from wrapping onto multiple lines + */ +.uk-text-nowrap { + white-space: nowrap; +} +/* + * Prevent text from wrapping onto multiple lines, and truncate with an ellipsis + */ +.uk-text-truncate { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +/* + * Break strings if their length exceeds the width of their container + */ +.uk-text-break { + word-wrap: break-word; + -webkit-hyphens: auto; + -ms-hyphens: auto; + -moz-hyphens: auto; + hyphens: auto; +} +/* ======================================================================== + Component: Utility + ========================================================================== */ +/* Container + ========================================================================== */ +.uk-container { + -moz-box-sizing: border-box; + box-sizing: border-box; + max-width: 980px; + padding: 0 25px; +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + .uk-container { + max-width: 1200px; + padding: 0 35px; + } +} +/* + * Micro clearfix + */ +.uk-container:before, +.uk-container:after { + content: ""; + display: table; +} +.uk-container:after { + clear: both; +} +/* + * Center container + */ +.uk-container-center { + margin-left: auto; + margin-right: auto; +} +/* Clearing + ========================================================================== */ +/* + * Micro clearfix +* `table-cell` is used with `:before` because `table` creates a 1px gap when it becomes a flex item, only in Webkit + * `table` is used again with `:after` because `clear` only works with block elements. + * Note: `display: block` with `overflow: hidden` is currently not working in the latest Safari + */ +.uk-clearfix:before { + content: ""; + display: table-cell; +} +.uk-clearfix:after { + content: ""; + display: table; + clear: both; +} +/* + * Create a new block formatting context + */ +.uk-nbfc { + overflow: hidden; +} +.uk-nbfc-alt { + display: table-cell; + width: 10000px; +} +/* Alignment of block elements + ========================================================================== */ +/* + * Float blocks + * 1. Prevent content overflow on small devices + */ +.uk-float-left { + float: left; +} +.uk-float-right { + float: right; +} +/* 1 */ +[class*='uk-float-'] { + max-width: 100%; +} +/* Alignment of images and objects + ========================================================================== */ +/* + * Alignment + */ +[class*='uk-align-'] { + display: block; + margin-bottom: 15px; +} +.uk-align-left { + margin-right: 15px; + float: left; +} +.uk-align-right { + margin-left: 15px; + float: right; +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-align-medium-left { + margin-right: 15px; + margin-bottom: 15px; + float: left; + } + .uk-align-medium-right { + margin-left: 15px; + margin-bottom: 15px; + float: right; + } +} +.uk-align-center { + margin-left: auto; + margin-right: auto; +} +/* Vertical alignment + ========================================================================== */ +/* + * Remove whitespace between child elements when using `inline-block` + */ +.uk-vertical-align { + font-size: 0.001px; +} +/* + * The `uk-vertical-align` container needs a specific height + */ +.uk-vertical-align:before { + content: ''; + display: inline-block; + height: 100%; + vertical-align: middle; +} +/* + * Sub-object which can have any height + * 1. Reset whitespace hack + */ +.uk-vertical-align-middle, +.uk-vertical-align-bottom { + display: inline-block; + max-width: 100%; + /* 1 */ + font-size: 1rem; +} +.uk-vertical-align-middle { + vertical-align: middle; +} +.uk-vertical-align-bottom { + vertical-align: bottom; +} +/* Height + ========================================================================== */ +/* + * More robust if padding and border are used + */ +[class*='uk-height'] { + -moz-box-sizing: border-box; + box-sizing: border-box; +} +/* + * Useful to extend the `html` and `body` element to the full height of the page. + */ +.uk-height-1-1 { + height: 100%; +} +/* + * Useful to create image teasers + */ +.uk-height-viewport { + height: 100vh; + min-height: 600px; +} +/* Responsive objects + * Note: Images are already responsive by default, see Base component + ========================================================================== */ +/* + * 1. Corrects `max-width` and `max-height` behavior if padding and border are used + */ +.uk-responsive-width, +.uk-responsive-height { + -moz-box-sizing: border-box; + box-sizing: border-box; +} +/* + * Responsiveness: Sets a maximum width relative to the parent and auto scales the height + * `important` needed to override `uk-img-preserve img` + */ +.uk-responsive-width { + max-width: 100% !important; + height: auto; +} +/* + * Responsiveness: Sets a maximum height relative to the parent and auto scales the width + * Only works if the parent element has a fixed height. + */ +.uk-responsive-height { + max-height: 100%; + width: auto; +} +/* Margin + ========================================================================== */ +/* + * Create a block with the same margin of a paragraph + * Add margin if adjacent element + */ +.uk-margin { + margin-bottom: 15px; +} +* + .uk-margin { + margin-top: 15px; +} +.uk-margin-top { + margin-top: 15px !important; +} +.uk-margin-bottom { + margin-bottom: 15px !important; +} +.uk-margin-left { + margin-left: 15px !important; +} +.uk-margin-right { + margin-right: 15px !important; +} +/* + * Larger margins + */ +.uk-margin-large { + margin-bottom: 50px; +} +* + .uk-margin-large { + margin-top: 50px; +} +.uk-margin-large-top { + margin-top: 50px !important; +} +.uk-margin-large-bottom { + margin-bottom: 50px !important; +} +.uk-margin-large-left { + margin-left: 50px !important; +} +.uk-margin-large-right { + margin-right: 50px !important; +} +/* + * Smaller margins + */ +.uk-margin-small { + margin-bottom: 5px; +} +* + .uk-margin-small { + margin-top: 5px; +} +.uk-margin-small-top { + margin-top: 5px !important; +} +.uk-margin-small-bottom { + margin-bottom: 5px !important; +} +.uk-margin-small-left { + margin-left: 5px !important; +} +.uk-margin-small-right { + margin-right: 5px !important; +} +/* + * Remove margins + */ +.uk-margin-remove { + margin: 0 !important; +} +.uk-margin-top-remove { + margin-top: 0 !important; +} +.uk-margin-bottom-remove { + margin-bottom: 0 !important; +} +/* Padding + ========================================================================== */ +.uk-padding-remove { + padding: 0 !important; +} +.uk-padding-top-remove { + padding-top: 0 !important; +} +.uk-padding-bottom-remove { + padding-bottom: 0 !important; +} +.uk-padding-vertical-remove { + padding-top: 0 !important; + padding-bottom: 0 !important; +} +/* Border + ========================================================================== */ +.uk-border-circle { + border-radius: 50%; +} +.uk-border-rounded { + border-radius: 5px; +} +/* Headings + ========================================================================== */ +.uk-heading-large { + font-size: 36px; + line-height: 42px; +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-heading-large { + font-size: 52px; + line-height: 64px; + } +} +/* Link + ========================================================================== */ +/* + * Let links appear in default text color + */ +.uk-link-muted, +.uk-link-muted a { + color: #444444; +} +.uk-link-muted:hover, +.uk-link-muted a:hover { + color: #444444; +} +/* + * Reset link style + */ +.uk-link-reset, +.uk-link-reset a, +.uk-link-reset:hover, +.uk-link-reset a:hover, +.uk-link-reset:focus, +.uk-link-reset a:focus { + color: inherit; + text-decoration: none; +} +/* Scrollable + ========================================================================== */ +/* + * Enable scrolling for preformatted text + */ +.uk-scrollable-text { + height: 300px; + overflow-y: scroll; + -webkit-overflow-scrolling: touch; + resize: both; +} +/* + * Box with scrolling enabled + */ +.uk-scrollable-box { + -moz-box-sizing: border-box; + box-sizing: border-box; + height: 170px; + padding: 10px; + border: 1px solid #dddddd; + overflow: auto; + -webkit-overflow-scrolling: touch; + resize: both; + border-radius: 3px; +} +.uk-scrollable-box > :last-child { + margin-bottom: 0; +} +/* Overflow + ========================================================================== */ +.uk-overflow-hidden { + overflow: hidden; +} +/* + * Enable scrollbars if content is clipped + */ +.uk-overflow-container { + overflow: auto; + -webkit-overflow-scrolling: touch; +} +.uk-overflow-container > :last-child { + margin-bottom: 0; +} +/* Position + ========================================================================== */ +.uk-position-absolute, +[class*='uk-position-top'], +[class*='uk-position-bottom'] { + position: absolute !important; +} +.uk-position-top { + top: 0; + width: 100%; +} +.uk-position-bottom { + bottom: 0; + width: 100%; +} +.uk-position-top-left { + top: 0; + left: 0; +} +.uk-position-top-right { + top: 0; + right: 0; +} +.uk-position-bottom-left { + bottom: 0; + left: 0; +} +.uk-position-bottom-right { + bottom: 0; + right: 0; +} +/* + * Cover + */ +.uk-position-cover { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; +} +/* + * Relative + */ +.uk-position-relative { + position: relative !important; +} +/* + * Z-index + */ +.uk-position-z-index { + z-index: 1; +} +/* Display + ========================================================================== */ +/* + * Display + */ +.uk-display-block { + display: block !important; +} +.uk-display-inline { + display: inline !important; +} +.uk-display-inline-block { + display: inline-block !important; +} +/* + * Visibility + * Avoids setting display to `block` so it works also with `inline-block` and `table` + */ +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-visible-small { + display: none !important; + } + .uk-visible-medium { + display: none !important; + } + .uk-hidden-large { + display: none !important; + } +} +/* Tablets portrait */ +@media (min-width: 768px) and (max-width: 959px) { + .uk-visible-small { + display: none !important; + } + .uk-visible-large { + display: none !important ; + } + .uk-hidden-medium { + display: none !important; + } +} +/* Phone landscape and smaller*/ +@media (max-width: 767px) { + .uk-visible-medium { + display: none !important; + } + .uk-visible-large { + display: none !important; + } + .uk-hidden-small { + display: none !important; + } +} +/* Remove from the flow and screen readers on any device */ +.uk-hidden { + display: none !important; + visibility: hidden !important; +} +/* It's hidden, but still affects layout */ +.uk-invisible { + visibility: hidden !important; +} +/* Show on hover */ +.uk-visible-hover:hover .uk-hidden, +.uk-visible-hover:hover .uk-invisible { + display: block !important; + visibility: visible !important; +} +.uk-visible-hover-inline:hover .uk-hidden, +.uk-visible-hover-inline:hover .uk-invisible { + display: inline-block !important; + visibility: visible !important; +} +/* Hide on touch */ +.uk-touch .uk-hidden-touch, +.uk-notouch .uk-hidden-notouch { + display: none !important; +} +/* ======================================================================== + Component: Flex + ========================================================================== */ +.uk-flex { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; +} +.uk-flex-inline { + display: -ms-inline-flexbox; + display: -webkit-inline-flex; + display: inline-flex; +} +/* + * Fixes initial flex-shrink value in IE10 + */ +.uk-flex > *, +.uk-flex-inline > * { + -ms-flex-negative: 1; +} +/* Alignment + ========================================================================== */ +/* + * Vertical alignment + * Default value is `stretch` + */ +.uk-flex-top { + -ms-flex-align: start; + -webkit-align-items: flex-start; + align-items: flex-start; +} +.uk-flex-middle { + -ms-flex-align: center; + -webkit-align-items: center; + align-items: center; +} +.uk-flex-bottom { + -ms-flex-align: end; + -webkit-align-items: flex-end; + align-items: flex-end; +} +/* + * Horizontal alignment + * Default value is `flex-start` + */ +.uk-flex-center { + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; +} +.uk-flex-right { + -ms-flex-pack: end; + -webkit-justify-content: flex-end; + justify-content: flex-end; +} +.uk-flex-space-between { + -ms-flex-pack: justify; + -webkit-justify-content: space-between; + justify-content: space-between; +} +.uk-flex-space-around { + -ms-flex-pack: distribute; + -webkit-justify-content: space-around; + justify-content: space-around; +} +/* Direction + ========================================================================== */ +.uk-flex-row-reverse { + -ms-flex-direction: row-reverse; + -webkit-flex-direction: row-reverse; + flex-direction: row-reverse; +} +.uk-flex-column { + -ms-flex-direction: column; + -webkit-flex-direction: column; + flex-direction: column; +} +.uk-flex-column-reverse { + -ms-flex-direction: column-reverse; + -webkit-flex-direction: column-reverse; + flex-direction: column-reverse; +} +/* Wrap + ========================================================================== */ +.uk-flex-nowrap { + -ms-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + flex-wrap: nowrap; +} +.uk-flex-wrap { + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; +} +.uk-flex-wrap-reverse { + -ms-flex-wrap: wrap-reverse; + -webkit-flex-wrap: wrap-reverse; + flex-wrap: wrap-reverse; +} +/* + * Horizontal alignment + * Default value is `stretch` + */ +.uk-flex-wrap-top { + -ms-flex-line-pack: start; + -webkit-align-content: flex-start; + align-content: flex-start; +} +.uk-flex-wrap-middle { + -ms-flex-line-pack: center; + -webkit-align-content: center; + align-content: center; +} +.uk-flex-wrap-bottom { + -ms-flex-line-pack: end; + -webkit-align-content: flex-end; + align-content: flex-end; +} +.uk-flex-wrap-space-between { + -ms-flex-line-pack: justify; + -webkit-align-content: space-between; + align-content: space-between; +} +.uk-flex-wrap-space-around { + -ms-flex-line-pack: distribute; + -webkit-align-content: space-around; + align-content: space-around; +} +/* Item ordering + ========================================================================== */ +/* + * Default is 0 + */ +.uk-flex-order-first { + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; +} +.uk-flex-order-last { + -ms-flex-order: 99; + -webkit-order: 99; + order: 99; +} +/* Phone landscape and bigger */ +@media (min-width: 480px) { + .uk-flex-order-first-small { + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; + } + .uk-flex-order-last-small { + -ms-flex-order: 99; + -webkit-order: 99; + order: 99; + } +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-flex-order-first-medium { + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; + } + .uk-flex-order-last-medium { + -ms-flex-order: 99; + -webkit-order: 99; + order: 99; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-flex-order-first-large { + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; + } + .uk-flex-order-last-large { + -ms-flex-order: 99; + -webkit-order: 99; + order: 99; + } +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + .uk-flex-order-first-xlarge { + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; + } + .uk-flex-order-last-xlarge { + -ms-flex-order: 99; + -webkit-order: 99; + order: 99; + } +} +/* Item dimensions + ========================================================================== */ +/* + * Initial: 0 1 auto + * Content dimensions, but shrinks + */ +/* + * No Flex: 0 0 auto + * Content dimensions + */ +.uk-flex-item-none { + -ms-flex: none; + -webkit-flex: none; + flex: none; +} +/* + * Relative Flex: 1 1 auto + * Space is allocated considering content + * 1. Fixes flex-shrink value in IE10 + */ +.uk-flex-item-auto { + -ms-flex: auto; + -webkit-flex: auto; + flex: auto; + /* 1 */ + -ms-flex-negative: 1; +} +/* + * Absolute Flex: 1 1 0% + * Space is allocated solely based on flex + */ +.uk-flex-item-1 { + -ms-flex: 1; + -webkit-flex: 1; + flex: 1; +} +/* ======================================================================== + Component: Contrast + ========================================================================== */ +.uk-contrast { + color: #ffffff; +} +.uk-contrast a:not([class]), +.uk-contrast .uk-link { + color: rgba(255, 255, 255, 0.7); + text-decoration: none; +} +.uk-contrast a:not([class]):hover, +.uk-contrast .uk-link:hover { + color: #ffffff; + text-decoration: underline; +} +.uk-contrast :not(pre) > code, +.uk-contrast :not(pre) > kbd, +.uk-contrast :not(pre) > samp { + color: #ffffff; + border-color: rgba(255, 255, 255, 0.2); + background: rgba(255, 255, 255, 0.1); +} +.uk-contrast em { + color: #ffffff; +} +.uk-contrast h1, +.uk-contrast h2, +.uk-contrast h3, +.uk-contrast h4, +.uk-contrast h5, +.uk-contrast h6 { + color: #ffffff; +} +.uk-contrast hr { + border-top-color: rgba(255, 255, 255, 0.2); +} +.uk-contrast .uk-nav li > a, +.uk-contrast .uk-nav li > a:hover { + text-decoration: none; +} +.uk-contrast .uk-nav-side > li > a { + color: #ffffff; +} +.uk-contrast .uk-nav-side > li > a:hover, +.uk-contrast .uk-nav-side > li > a:focus { + background: rgba(255, 255, 255, 0.1); + color: #ffffff; + text-shadow: none; +} +.uk-contrast .uk-nav-side > li.uk-active > a { + background: #ffffff; + color: #444444; + text-shadow: none; +} +.uk-contrast .uk-nav-side .uk-nav-header { + color: #ffffff; +} +.uk-contrast .uk-nav-side .uk-nav-divider { + border-top-color: rgba(255, 255, 255, 0.2); +} +.uk-contrast .uk-nav-side ul a { + color: rgba(255, 255, 255, 0.7); +} +.uk-contrast .uk-nav-side ul a:hover { + color: #ffffff; +} +.uk-contrast .uk-subnav > * > a { + color: rgba(255, 255, 255, 0.7); + text-decoration: none; +} +.uk-contrast .uk-subnav > * > a:hover, +.uk-contrast .uk-subnav > * > a:focus { + color: #ffffff; + text-decoration: none; +} +.uk-contrast .uk-subnav > .uk-active > a { + color: #ffffff; +} +.uk-contrast .uk-subnav-line > :nth-child(n+2):before { + border-left-color: rgba(255, 255, 255, 0.2); +} +.uk-contrast .uk-subnav-pill > * > a:hover, +.uk-contrast .uk-subnav-pill > * > a:focus { + background: rgba(255, 255, 255, 0.7); + color: #444444; + text-decoration: none; +} +.uk-contrast .uk-subnav-pill > .uk-active > a { + background: #ffffff; + color: #444444; +} +.uk-contrast .uk-list-line > li:nth-child(n+2) { + border-top-color: rgba(255, 255, 255, 0.2); +} +.uk-contrast .uk-form select, +.uk-contrast .uk-form textarea, +.uk-contrast .uk-form input:not([type]), +.uk-contrast .uk-form input[type="text"], +.uk-contrast .uk-form input[type="password"], +.uk-contrast .uk-form input[type="datetime"], +.uk-contrast .uk-form input[type="datetime-local"], +.uk-contrast .uk-form input[type="date"], +.uk-contrast .uk-form input[type="month"], +.uk-contrast .uk-form input[type="time"], +.uk-contrast .uk-form input[type="week"], +.uk-contrast .uk-form input[type="number"], +.uk-contrast .uk-form input[type="email"], +.uk-contrast .uk-form input[type="url"], +.uk-contrast .uk-form input[type="search"], +.uk-contrast .uk-form input[type="tel"], +.uk-contrast .uk-form input[type="color"] { + border-color: rgba(255, 255, 255, 0.8); + background: rgba(255, 255, 255, 0.8); + color: #444444; + background-clip: padding-box; +} +.uk-contrast .uk-form select:focus, +.uk-contrast .uk-form textarea:focus, +.uk-contrast .uk-form input:not([type]):focus, +.uk-contrast .uk-form input[type="text"]:focus, +.uk-contrast .uk-form input[type="password"]:focus, +.uk-contrast .uk-form input[type="datetime"]:focus, +.uk-contrast .uk-form input[type="datetime-local"]:focus, +.uk-contrast .uk-form input[type="date"]:focus, +.uk-contrast .uk-form input[type="month"]:focus, +.uk-contrast .uk-form input[type="time"]:focus, +.uk-contrast .uk-form input[type="week"]:focus, +.uk-contrast .uk-form input[type="number"]:focus, +.uk-contrast .uk-form input[type="email"]:focus, +.uk-contrast .uk-form input[type="url"]:focus, +.uk-contrast .uk-form input[type="search"]:focus, +.uk-contrast .uk-form input[type="tel"]:focus, +.uk-contrast .uk-form input[type="color"]:focus { + border-color: #ffffff; + background: #ffffff; + color: #444444; +} +.uk-contrast .uk-form :-ms-input-placeholder { + color: rgba(68, 68, 68, 0.7) !important; +} +.uk-contrast .uk-form ::-moz-placeholder { + color: rgba(68, 68, 68, 0.7); +} +.uk-contrast .uk-form ::-webkit-input-placeholder { + color: rgba(68, 68, 68, 0.7); +} +.uk-contrast .uk-button { + color: #444444; + background: #ffffff; + border-color: transparent; +} +.uk-contrast .uk-button:hover, +.uk-contrast .uk-button:focus { + background-color: rgba(255, 255, 255, 0.8); + color: #444444; + border-color: transparent; +} +.uk-contrast .uk-button:active, +.uk-contrast .uk-button.uk-active { + background-color: rgba(255, 255, 255, 0.7); + color: #444444; +} +.uk-contrast .uk-button-primary { + background-color: #00a8e6; + color: #ffffff; +} +.uk-contrast .uk-button-primary:hover, +.uk-contrast .uk-button-primary:focus { + background-color: #35b3ee; + color: #ffffff; +} +.uk-contrast .uk-button-primary:active, +.uk-contrast .uk-button-primary.uk-active { + background-color: #0091ca; + color: #ffffff; +} +.uk-contrast .uk-icon-hover { + color: rgba(255, 255, 255, 0.7); +} +.uk-contrast .uk-icon-hover:hover { + color: #ffffff; +} +.uk-contrast .uk-icon-button { + background: #ffffff; + color: #444444; + border-color: transparent; +} +.uk-contrast .uk-icon-button:hover, +.uk-contrast .uk-icon-button:focus { + background-color: rgba(255, 255, 255, 0.8); + color: #444444; + border-color: transparent; +} +.uk-contrast .uk-icon-button:active { + background-color: rgba(255, 255, 255, 0.7); + color: #444444; +} +.uk-contrast .uk-text-muted { + color: rgba(255, 255, 255, 0.6) !important; +} +.uk-contrast .uk-text-primary { + color: #2d7091 !important; +} +/* ======================================================================== + Component: Print + ========================================================================== */ +@media print { + * { + background: transparent !important; + color: black !important; + box-shadow: none !important; + text-shadow: none !important; + } + a, + a:visited { + text-decoration: underline; + } + 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; + } + @page { + margin: 0.5cm; + } + p, + h2, + h3 { + orphans: 3; + widows: 3; + } + h2, + h3 { + page-break-after: avoid; + } +} diff --git a/media/uikit/css/uikit.almost-flat.min.css b/media/uikit/css/uikit.almost-flat.min.css new file mode 100644 index 00000000..7f70f78b --- /dev/null +++ b/media/uikit/css/uikit.almost-flat.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +html{font:400 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;background:#fff;color:#444}body{margin:0}a{background:0 0}a:active,a:hover{outline:0}.uk-link,a{color:#07d;text-decoration:none;cursor:pointer}.uk-link:hover,a:hover{color:#059;text-decoration:underline}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}:not(pre)>code,:not(pre)>kbd,:not(pre)>samp{font-size:12px;font-family:Consolas,monospace,serif;color:#d05;white-space:nowrap;padding:0 4px;border:1px solid #ddd;border-radius:3px;background:#fafafa}em{color:#d05}ins{background:#ffa;color:#444;text-decoration:none}mark{background:#ffa;color:#444}q{font-style:italic}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{max-width:100%;height:auto;-moz-box-sizing:border-box;box-sizing:border-box;border:0;vertical-align:middle}.uk-img-preserve,.uk-img-preserve img{max-width:none}svg:not(:root){overflow:hidden}blockquote,figure{margin:0}address,blockquote,dl,fieldset,figure,ol,p,pre,ul{margin:0 0 15px 0}*+address,*+blockquote,*+dl,*+fieldset,*+figure,*+ol,*+p,*+pre,*+ul{margin-top:15px}h1,h2,h3,h4,h5,h6{margin:0 0 15px 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;color:#444;text-transform:none}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:25px}.uk-h1,h1{font-size:36px;line-height:42px}.uk-h2,h2{font-size:24px;line-height:30px}.uk-h3,h3{font-size:18px;line-height:24px}.uk-h4,h4{font-size:16px;line-height:22px}.uk-h5,h5{font-size:14px;line-height:20px}.uk-h6,h6{font-size:12px;line-height:18px}ol,ul{padding-left:30px}ol>li>ol,ol>li>ul,ul>li>ol,ul>li>ul{margin:0}dt{font-weight:700}dd{margin-left:0}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;margin:15px 0;border:0;border-top:1px solid #ddd}address{font-style:normal}blockquote{padding-left:15px;border-left:5px solid #ddd;font-size:16px;line-height:22px;font-style:italic}pre{padding:10px;background:#fafafa;font:12px/18px Consolas,monospace,serif;color:#444;-moz-tab-size:4;tab-size:4;overflow:auto;border:1px solid #ddd;border-radius:3px}::-moz-selection{background:#39f;color:#fff;text-shadow:none}::selection{background:#39f;color:#fff;text-shadow:none}article,aside,details,figcaption,figure,footer,header,main,nav,section,summary{display:block}progress{vertical-align:baseline}audio:not([controls]){display:none}[hidden],template{display:none}iframe{border:0}@media screen and (max-width:400px){@-ms-viewport{width:device-width}}.uk-grid{display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin:0;padding:0;list-style:none}.uk-grid:after,.uk-grid:before{content:"";display:block;overflow:hidden}.uk-grid:after{clear:both}.uk-grid>*{-ms-flex:none;-webkit-flex:none;flex:none;margin:0;float:left}.uk-grid>*>:last-child{margin-bottom:0}.uk-grid{margin-left:-25px}.uk-grid>*{padding-left:25px}.uk-grid+.uk-grid,.uk-grid-margin,.uk-grid>*>.uk-panel+.uk-panel{margin-top:25px}@media (min-width:1220px){.uk-grid{margin-left:-35px}.uk-grid>*{padding-left:35px}.uk-grid+.uk-grid,.uk-grid-margin,.uk-grid>*>.uk-panel+.uk-panel{margin-top:35px}}.uk-grid-collapse{margin-left:0}.uk-grid-collapse>*{padding-left:0}.uk-grid-collapse+.uk-grid-collapse,.uk-grid-collapse>*>.uk-panel+.uk-panel,.uk-grid-collapse>.uk-grid-margin{margin-top:0}.uk-grid-small{margin-left:-10px}.uk-grid-small>*{padding-left:10px}.uk-grid-small+.uk-grid-small,.uk-grid-small>*>.uk-panel+.uk-panel,.uk-grid-small>.uk-grid-margin{margin-top:10px}.uk-grid-medium{margin-left:-25px}.uk-grid-medium>*{padding-left:25px}.uk-grid-medium+.uk-grid-medium,.uk-grid-medium>*>.uk-panel+.uk-panel,.uk-grid-medium>.uk-grid-margin{margin-top:25px}.uk-grid-divider:not(:empty){margin-left:-25px;margin-right:-25px}.uk-grid-divider>*{padding-left:25px;padding-right:25px}.uk-grid-divider>[class*=uk-width-9-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-1-]:not(.uk-width-1-1):nth-child(n+2),.uk-grid-divider>[class*=uk-width-2-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-3-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-4-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-5-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-6-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-7-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-8-]:nth-child(n+2){border-left:1px solid #ddd}@media (min-width:768px){.uk-grid-divider>[class*=uk-width-medium-]:not(.uk-width-medium-1-1):nth-child(n+2){border-left:1px solid #ddd}}@media (min-width:960px){.uk-grid-divider>[class*=uk-width-large-]:not(.uk-width-large-1-1):nth-child(n+2){border-left:1px solid #ddd}}@media (min-width:1220px){.uk-grid-divider:not(:empty){margin-left:-35px;margin-right:-35px}.uk-grid-divider>*{padding-left:35px;padding-right:35px}.uk-grid-divider:empty{margin-top:35px;margin-bottom:35px}}.uk-grid-divider:empty{margin-top:25px;margin-bottom:25px;border-top:1px solid #ddd}.uk-grid-match>*{display:-ms-flexbox;display:-webkit-flex;display:flex}.uk-grid-match>*>*{-ms-flex:none;-webkit-flex:none;flex:none;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;-moz-box-sizing:border-box;box-sizing:border-box;width:100%}[class*=uk-grid-width]>*{-moz-box-sizing:border-box;box-sizing:border-box;width:100%}.uk-grid-width-1-2>*{width:50%}.uk-grid-width-1-3>*{width:33.333%}.uk-grid-width-1-4>*{width:25%}.uk-grid-width-1-5>*{width:20%}.uk-grid-width-1-6>*{width:16.666%}.uk-grid-width-1-10>*{width:10%}@media (min-width:480px){.uk-grid-width-small-1-2>*{width:50%}.uk-grid-width-small-1-3>*{width:33.333%}.uk-grid-width-small-1-4>*{width:25%}.uk-grid-width-small-1-5>*{width:20%}.uk-grid-width-small-1-6>*{width:16.666%}.uk-grid-width-small-1-10>*{width:10%}}@media (min-width:768px){.uk-grid-width-medium-1-2>*{width:50%}.uk-grid-width-medium-1-3>*{width:33.333%}.uk-grid-width-medium-1-4>*{width:25%}.uk-grid-width-medium-1-5>*{width:20%}.uk-grid-width-medium-1-6>*{width:16.666%}.uk-grid-width-medium-1-10>*{width:10%}}@media (min-width:960px){.uk-grid-width-large-1-2>*{width:50%}.uk-grid-width-large-1-3>*{width:33.333%}.uk-grid-width-large-1-4>*{width:25%}.uk-grid-width-large-1-5>*{width:20%}.uk-grid-width-large-1-6>*{width:16.666%}.uk-grid-width-large-1-10>*{width:10%}}@media (min-width:1220px){.uk-grid-width-xlarge-1-2>*{width:50%}.uk-grid-width-xlarge-1-3>*{width:33.333%}.uk-grid-width-xlarge-1-4>*{width:25%}.uk-grid-width-xlarge-1-5>*{width:20%}.uk-grid-width-xlarge-1-6>*{width:16.666%}.uk-grid-width-xlarge-1-10>*{width:10%}}[class*=uk-width]{-moz-box-sizing:border-box;box-sizing:border-box;width:100%}.uk-width-1-1{width:100%}.uk-width-1-2,.uk-width-2-4,.uk-width-3-6,.uk-width-5-10{width:50%}.uk-width-1-3,.uk-width-2-6{width:33.333%}.uk-width-2-3,.uk-width-4-6{width:66.666%}.uk-width-1-4{width:25%}.uk-width-3-4{width:75%}.uk-width-1-5,.uk-width-2-10{width:20%}.uk-width-2-5,.uk-width-4-10{width:40%}.uk-width-3-5,.uk-width-6-10{width:60%}.uk-width-4-5,.uk-width-8-10{width:80%}.uk-width-1-6{width:16.666%}.uk-width-5-6{width:83.333%}.uk-width-1-10{width:10%}.uk-width-3-10{width:30%}.uk-width-7-10{width:70%}.uk-width-9-10{width:90%}@media (min-width:480px){.uk-width-small-1-1{width:100%}.uk-width-small-1-2,.uk-width-small-2-4,.uk-width-small-3-6,.uk-width-small-5-10{width:50%}.uk-width-small-1-3,.uk-width-small-2-6{width:33.333%}.uk-width-small-2-3,.uk-width-small-4-6{width:66.666%}.uk-width-small-1-4{width:25%}.uk-width-small-3-4{width:75%}.uk-width-small-1-5,.uk-width-small-2-10{width:20%}.uk-width-small-2-5,.uk-width-small-4-10{width:40%}.uk-width-small-3-5,.uk-width-small-6-10{width:60%}.uk-width-small-4-5,.uk-width-small-8-10{width:80%}.uk-width-small-1-6{width:16.666%}.uk-width-small-5-6{width:83.333%}.uk-width-small-1-10{width:10%}.uk-width-small-3-10{width:30%}.uk-width-small-7-10{width:70%}.uk-width-small-9-10{width:90%}}@media (min-width:768px){.uk-width-medium-1-1{width:100%}.uk-width-medium-1-2,.uk-width-medium-2-4,.uk-width-medium-3-6,.uk-width-medium-5-10{width:50%}.uk-width-medium-1-3,.uk-width-medium-2-6{width:33.333%}.uk-width-medium-2-3,.uk-width-medium-4-6{width:66.666%}.uk-width-medium-1-4{width:25%}.uk-width-medium-3-4{width:75%}.uk-width-medium-1-5,.uk-width-medium-2-10{width:20%}.uk-width-medium-2-5,.uk-width-medium-4-10{width:40%}.uk-width-medium-3-5,.uk-width-medium-6-10{width:60%}.uk-width-medium-4-5,.uk-width-medium-8-10{width:80%}.uk-width-medium-1-6{width:16.666%}.uk-width-medium-5-6{width:83.333%}.uk-width-medium-1-10{width:10%}.uk-width-medium-3-10{width:30%}.uk-width-medium-7-10{width:70%}.uk-width-medium-9-10{width:90%}}@media (min-width:960px){.uk-width-large-1-1{width:100%}.uk-width-large-1-2,.uk-width-large-2-4,.uk-width-large-3-6,.uk-width-large-5-10{width:50%}.uk-width-large-1-3,.uk-width-large-2-6{width:33.333%}.uk-width-large-2-3,.uk-width-large-4-6{width:66.666%}.uk-width-large-1-4{width:25%}.uk-width-large-3-4{width:75%}.uk-width-large-1-5,.uk-width-large-2-10{width:20%}.uk-width-large-2-5,.uk-width-large-4-10{width:40%}.uk-width-large-3-5,.uk-width-large-6-10{width:60%}.uk-width-large-4-5,.uk-width-large-8-10{width:80%}.uk-width-large-1-6{width:16.666%}.uk-width-large-5-6{width:83.333%}.uk-width-large-1-10{width:10%}.uk-width-large-3-10{width:30%}.uk-width-large-7-10{width:70%}.uk-width-large-9-10{width:90%}}@media (min-width:768px){[class*=uk-push-],[class*=uk-pull-]{position:relative}.uk-push-1-2,.uk-push-2-4,.uk-push-3-6,.uk-push-5-10{left:50%}.uk-push-1-3,.uk-push-2-6{left:33.333%}.uk-push-2-3,.uk-push-4-6{left:66.666%}.uk-push-1-4{left:25%}.uk-push-3-4{left:75%}.uk-push-1-5,.uk-push-2-10{left:20%}.uk-push-2-5,.uk-push-4-10{left:40%}.uk-push-3-5,.uk-push-6-10{left:60%}.uk-push-4-5,.uk-push-8-10{left:80%}.uk-push-1-6{left:16.666%}.uk-push-5-6{left:83.333%}.uk-push-1-10{left:10%}.uk-push-3-10{left:30%}.uk-push-7-10{left:70%}.uk-push-9-10{left:90%}.uk-pull-1-2,.uk-pull-2-4,.uk-pull-3-6,.uk-pull-5-10{left:-50%}.uk-pull-1-3,.uk-pull-2-6{left:-33.333%}.uk-pull-2-3,.uk-pull-4-6{left:-66.666%}.uk-pull-1-4{left:-25%}.uk-pull-3-4{left:-75%}.uk-pull-1-5,.uk-pull-2-10{left:-20%}.uk-pull-2-5,.uk-pull-4-10{left:-40%}.uk-pull-3-5,.uk-pull-6-10{left:-60%}.uk-pull-4-5,.uk-pull-8-10{left:-80%}.uk-pull-1-6{left:-16.666%}.uk-pull-5-6{left:-83.333%}.uk-pull-1-10{left:-10%}.uk-pull-3-10{left:-30%}.uk-pull-7-10{left:-70%}.uk-pull-9-10{left:-90%}}.uk-panel{display:block;position:relative}.uk-panel,.uk-panel:hover{text-decoration:none}.uk-panel:after,.uk-panel:before{content:"";display:table}.uk-panel:after{clear:both}.uk-panel>:not(.uk-panel-title):last-child{margin-bottom:0}.uk-panel-title{margin-top:0;margin-bottom:15px;font-size:18px;line-height:24px;font-weight:400;text-transform:none;color:#444}.uk-panel-badge{position:absolute;top:0;right:0;z-index:1}.uk-panel-teaser{margin-bottom:15px}.uk-panel-box{padding:15px;background:#fafafa;color:#444;border:1px solid #ddd;border-radius:4px}.uk-panel-box-hover:hover{color:#444}.uk-panel-box .uk-panel-title{color:#444}.uk-panel-box .uk-panel-badge{top:10px;right:10px}.uk-panel-box .uk-panel-teaser{margin-top:-16px;margin-left:-16px;margin-right:-16px}.uk-panel-box>.uk-nav-side{margin:0 -15px}.uk-panel-box-primary{background-color:#ebf7fd;color:#2d7091;border-color:rgba(45,112,145,.3)}.uk-panel-box-primary-hover:hover{color:#2d7091}.uk-panel-box-primary .uk-panel-title{color:#2d7091}.uk-panel-box-secondary{background-color:#fff;color:#444}.uk-panel-box-secondary-hover:hover{color:#444}.uk-panel-box-secondary .uk-panel-title{color:#444}.uk-panel-hover{padding:15px;color:#444;border:1px solid transparent;border-radius:4px}.uk-panel-hover:hover{background:#fafafa;color:#444;border-color:#ddd}.uk-panel-hover .uk-panel-badge{top:10px;right:10px}.uk-panel-hover .uk-panel-teaser{margin-top:-16px;margin-left:-16px;margin-right:-16px}.uk-panel-header .uk-panel-title{padding-bottom:10px;border-bottom:1px solid #ddd;color:#444}.uk-panel-space{padding:30px}.uk-panel-space .uk-panel-badge{top:30px;right:30px}.uk-panel+.uk-panel-divider{margin-top:50px!important}.uk-panel+.uk-panel-divider:before{content:"";display:block;position:absolute;top:-25px;left:0;right:0;border-top:1px solid #ddd}@media (min-width:1220px){.uk-panel+.uk-panel-divider{margin-top:70px!important}.uk-panel+.uk-panel-divider:before{top:-35px}}.uk-panel-box .uk-panel-teaser{border-top-left-radius:4px;border-top-right-radius:4px;overflow:hidden;-webkit-transform:translateZ(0)}.uk-block{position:relative;-moz-box-sizing:border-box;box-sizing:border-box;padding-top:20px;padding-bottom:20px}@media (min-width:768px){.uk-block{padding-top:50px;padding-bottom:50px}}.uk-block:after,.uk-block:before{content:"";display:table}.uk-block:after{clear:both}.uk-block>:last-child{margin-bottom:0}.uk-block-large{padding-top:20px;padding-bottom:20px}@media (min-width:768px){.uk-block-large{padding-top:50px;padding-bottom:50px}}@media (min-width:960px){.uk-block-large{padding-top:100px;padding-bottom:100px}}.uk-block-default{background:#fff}.uk-block-muted{background:#f9f9f9}.uk-block-primary{background:#00a8e6}.uk-block-secondary{background:#222}.uk-block-default+.uk-block-default,.uk-block-muted+.uk-block-muted,.uk-block-primary+.uk-block-primary,.uk-block-secondary+.uk-block-secondary{padding-top:0}.uk-article:after,.uk-article:before{content:"";display:table}.uk-article:after{clear:both}.uk-article>:last-child{margin-bottom:0}.uk-article+.uk-article{margin-top:25px}.uk-article-title{font-size:36px;line-height:42px;font-weight:400;text-transform:none}.uk-article-title a{color:inherit;text-decoration:none}.uk-article-meta{font-size:12px;line-height:18px;color:#999}.uk-article-lead{color:#444;font-size:18px;line-height:24px;font-weight:400}.uk-article-divider{margin-bottom:25px;border-color:#ddd}*+.uk-article-divider{margin-top:25px}.uk-article+.uk-article{padding-top:25px;border-top:1px solid #ddd}.uk-comment-header{margin-bottom:15px;padding:10px;border:1px solid #ddd;border-radius:4px;background:#fafafa}.uk-comment-header:after,.uk-comment-header:before{content:"";display:table}.uk-comment-header:after{clear:both}.uk-comment-avatar{margin-right:15px;float:left}.uk-comment-title{margin:5px 0 0 0;font-size:16px;line-height:22px}.uk-comment-meta{margin:2px 0 0 0;font-size:11px;line-height:16px;color:#999}.uk-comment-body{padding-left:10px;padding-right:10px}.uk-comment-body>:last-child{margin-bottom:0}.uk-comment-list{padding:0;list-style:none}.uk-comment-list .uk-comment+ul{margin:25px 0 0 0;list-style:none}.uk-comment-list .uk-comment+ul>li:nth-child(n+2),.uk-comment-list>li:nth-child(n+2){margin-top:25px}@media (min-width:768px){.uk-comment-list .uk-comment+ul{padding-left:100px}}.uk-comment-primary .uk-comment-header{border-color:rgba(45,112,145,.3);background-color:#ebf7fd;color:#2d7091;text-shadow:0 1px 0 #fff}.uk-cover-background{background-position:50% 50%;background-size:cover;background-repeat:no-repeat}.uk-cover{overflow:hidden}.uk-cover-object{width:auto;height:auto;min-width:100%;min-height:100%;max-width:none;position:relative;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}[data-uk-cover]{position:relative;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.uk-nav,.uk-nav ul{margin:0;padding:0;list-style:none}.uk-nav li>a{display:block;text-decoration:none}.uk-nav>li>a{padding:5px 15px}.uk-nav ul{padding-left:15px}.uk-nav ul a{padding:2px 0}.uk-nav li>a>div{font-size:12px;line-height:18px}.uk-nav-header{padding:5px 15px;text-transform:uppercase;font-weight:700;font-size:12px}.uk-nav-header:not(:first-child){margin-top:15px}.uk-nav-divider{margin:9px 15px}ul.uk-nav-sub{padding:5px 0 5px 15px}.uk-nav-parent-icon>.uk-parent>a:after{content:"\f104";width:20px;margin-right:-10px;float:right;font-family:FontAwesome;text-align:center}.uk-nav-parent-icon>.uk-parent.uk-open>a:after{content:"\f107"}.uk-nav-side>li>a{color:#444}.uk-nav-side>li>a:focus,.uk-nav-side>li>a:hover{background:rgba(0,0,0,.03);color:#444;outline:0;box-shadow:inset 0 0 1px rgba(0,0,0,.06);text-shadow:0 -1px 0 #fff}.uk-nav-side>li.uk-active>a{background:#00a8e6;color:#fff;box-shadow:inset 0 0 5px rgba(0,0,0,.05);text-shadow:0 -1px 0 rgba(0,0,0,.1)}.uk-nav-side .uk-nav-header{color:#444}.uk-nav-side .uk-nav-divider{border-top:1px solid #ddd;box-shadow:0 1px 0 #fff}.uk-nav-side ul a{color:#07d}.uk-nav-side ul a:hover{color:#059}.uk-nav-dropdown>li>a{color:#444}.uk-nav-dropdown>li>a:focus,.uk-nav-dropdown>li>a:hover{background:#00a8e6;color:#fff;outline:0;box-shadow:inset 0 0 5px rgba(0,0,0,.05);text-shadow:0 -1px 0 rgba(0,0,0,.1)}.uk-nav-dropdown .uk-nav-header{color:#999}.uk-nav-dropdown .uk-nav-divider{border-top:1px solid #ddd}.uk-nav-dropdown ul a{color:#07d}.uk-nav-dropdown ul a:hover{color:#059}.uk-nav-navbar>li>a{color:#444}.uk-nav-navbar>li>a:focus,.uk-nav-navbar>li>a:hover{background:#00a8e6;color:#fff;outline:0;box-shadow:inset 0 0 5px rgba(0,0,0,.05);text-shadow:0 -1px 0 rgba(0,0,0,.1)}.uk-nav-navbar .uk-nav-header{color:#999}.uk-nav-navbar .uk-nav-divider{border-top:1px solid #ddd}.uk-nav-navbar ul a{color:#07d}.uk-nav-navbar ul a:hover{color:#059}.uk-nav-offcanvas>li>a{color:#ccc;padding:10px 15px;border-top:1px solid rgba(0,0,0,.3);box-shadow:inset 0 1px 0 rgba(255,255,255,.05);text-shadow:0 1px 0 rgba(0,0,0,.5)}.uk-nav-offcanvas>.uk-open>a,html:not(.uk-touch) .uk-nav-offcanvas>li>a:focus,html:not(.uk-touch) .uk-nav-offcanvas>li>a:hover{background:#404040;color:#fff;outline:0}html .uk-nav.uk-nav-offcanvas>li.uk-active>a{background:#1a1a1a;color:#fff;box-shadow:inset 0 1px 3px rgba(0,0,0,.3)}.uk-nav-offcanvas .uk-nav-header{color:#777;margin-top:0;border-top:1px solid rgba(0,0,0,.3);background:#404040;box-shadow:inset 0 1px 0 rgba(255,255,255,.05);text-shadow:0 1px 0 rgba(0,0,0,.5)}.uk-nav-offcanvas .uk-nav-divider{border-top:1px solid rgba(255,255,255,.01);margin:0;height:4px;background:rgba(0,0,0,.2);box-shadow:inset 0 1px 3px rgba(0,0,0,.3)}.uk-nav-offcanvas ul a{color:#ccc}html:not(.uk-touch) .uk-nav-offcanvas ul a:hover{color:#fff}.uk-nav-offcanvas{border-bottom:1px solid rgba(0,0,0,.3);box-shadow:0 1px 0 rgba(255,255,255,.05)}.uk-nav-offcanvas .uk-nav-sub{border-top:1px solid rgba(0,0,0,.3);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}.uk-navbar{background:#f5f5f5;color:#444;border:1px solid rgba(0,0,0,.06);border-radius:4px}.uk-navbar:after,.uk-navbar:before{content:"";display:table}.uk-navbar:after{clear:both}.uk-navbar-nav{margin:0;padding:0;list-style:none;float:left}.uk-navbar-nav>li{float:left;position:relative}.uk-navbar-nav>li>a{display:block;-moz-box-sizing:border-box;box-sizing:border-box;text-decoration:none;height:41px;padding:0 15px;line-height:40px;color:#444;font-size:14px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;margin-top:-1px;margin-left:-1px;border:1px solid transparent;border-bottom-width:0;text-shadow:0 1px 0 #fff}.uk-navbar-nav>li>a[href='#']{cursor:text}.uk-navbar-nav>li.uk-open>a,.uk-navbar-nav>li:hover>a,.uk-navbar-nav>li>a:focus{background-color:#fafafa;color:#444;outline:0;position:relative;z-index:1;border-left-color:rgba(0,0,0,.1);border-right-color:rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.1)}.uk-navbar-nav>li>a:active{background-color:#eee;color:#444;border-left-color:rgba(0,0,0,.1);border-right-color:rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.2)}.uk-navbar-nav>li.uk-active>a{background-color:#fafafa;color:#444;border-left-color:rgba(0,0,0,.1);border-right-color:rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.1)}.uk-navbar-nav .uk-navbar-nav-subtitle{line-height:28px}.uk-navbar-nav-subtitle>div{margin-top:-6px;font-size:10px;line-height:12px}.uk-navbar-brand,.uk-navbar-content,.uk-navbar-toggle{-moz-box-sizing:border-box;box-sizing:border-box;display:block;height:41px;padding:0 15px;float:left;margin-top:-1px;text-shadow:0 1px 0 #fff}.uk-navbar-brand:before,.uk-navbar-content:before,.uk-navbar-toggle:before{content:'';display:inline-block;height:100%;vertical-align:middle}.uk-navbar-content+.uk-navbar-content:not(.uk-navbar-center){padding-left:0}.uk-navbar-content>a:not([class]){color:#07d}.uk-navbar-content>a:not([class]):hover{color:#059}.uk-navbar-brand{font-size:18px;color:#444;text-decoration:none}.uk-navbar-brand:focus,.uk-navbar-brand:hover{color:#444;text-decoration:none;outline:0}.uk-navbar-toggle{font-size:18px;color:#444;text-decoration:none}.uk-navbar-toggle:focus,.uk-navbar-toggle:hover{color:#444;text-decoration:none;outline:0}.uk-navbar-toggle:after{content:"\f0c9";font-family:FontAwesome;vertical-align:middle}.uk-navbar-toggle-alt:after{content:"\f002"}.uk-navbar-center{float:none;text-align:center;max-width:50%;margin-left:auto;margin-right:auto}.uk-navbar-flip{float:right}.uk-navbar-nav:first-child>li:first-child>a{border-top-left-radius:4px;border-bottom-left-radius:4px}.uk-navbar-flip .uk-navbar-nav>li>a{margin-left:0;margin-right:-1px}.uk-navbar-flip .uk-navbar-nav:first-child>li:first-child>a{border-top-left-radius:0;border-bottom-left-radius:0}.uk-navbar-flip .uk-navbar-nav:last-child>li:last-child>a{border-top-right-radius:4px;border-bottom-right-radius:4px}.uk-navbar-attached{border-top-color:transparent;border-left-color:transparent;border-right-color:transparent;border-radius:0}.uk-navbar-attached .uk-navbar-nav>li>a{border-radius:0!important}.uk-subnav{display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-left:-10px;margin-top:-10px;padding:0;list-style:none}.uk-subnav>*{-ms-flex:none;-webkit-flex:none;flex:none;padding-left:10px;margin-top:10px;position:relative}.uk-subnav:after,.uk-subnav:before{content:"";display:block;overflow:hidden}.uk-subnav:after{clear:both}.uk-subnav>*{float:left}.uk-subnav>*>*{display:inline-block;color:#444}.uk-subnav>*>:focus,.uk-subnav>*>:hover{color:#07d;text-decoration:none}.uk-subnav>.uk-active>*{color:#07d}.uk-subnav-line>:before{content:"";display:inline-block;height:10px;vertical-align:middle}.uk-subnav-line>:nth-child(n+2):before{margin-right:10px;border-left:1px solid #ddd}.uk-subnav-pill>*>*{padding:3px 9px;border-radius:4px}.uk-subnav-pill>*>:focus,.uk-subnav-pill>*>:hover{background:#fafafa;color:#444;text-decoration:none;outline:0;box-shadow:0 0 0 1px rgba(0,0,0,.15)}.uk-subnav-pill>.uk-active>*{background:#00a8e6;color:#fff;box-shadow:inset 0 0 5px rgba(0,0,0,.05)}.uk-subnav>.uk-disabled>*{background:0 0;color:#999;text-decoration:none;cursor:text;box-shadow:none}.uk-breadcrumb{padding:0;list-style:none;font-size:0}.uk-breadcrumb>li{font-size:1rem;vertical-align:top}.uk-breadcrumb>li,.uk-breadcrumb>li>a,.uk-breadcrumb>li>span{display:inline-block}.uk-breadcrumb>li:nth-child(n+2):before{content:"/";display:inline-block;margin:0 8px}.uk-breadcrumb>li:not(.uk-active)>span{color:#999}.uk-pagination{padding:0;list-style:none;text-align:center;font-size:0}.uk-pagination:after,.uk-pagination:before{content:"";display:table}.uk-pagination:after{clear:both}.uk-pagination>li{display:inline-block;font-size:1rem;vertical-align:top}.uk-pagination>li:nth-child(n+2){margin-left:5px}.uk-pagination>li>a,.uk-pagination>li>span{display:inline-block;min-width:16px;padding:3px 5px;line-height:20px;text-decoration:none;-moz-box-sizing:content-box;box-sizing:content-box;text-align:center;border:1px solid rgba(0,0,0,.06);border-radius:4px}.uk-pagination>li>a{background:#f5f5f5;color:#444;text-shadow:0 1px 0 #fff}.uk-pagination>li>a:focus,.uk-pagination>li>a:hover{background-color:#fafafa;color:#444;outline:0;border-color:rgba(0,0,0,.16)}.uk-pagination>li>a:active{background-color:#eee;color:#444}.uk-pagination>.uk-active>span{background:#00a8e6;color:#fff;border-color:transparent;box-shadow:inset 0 0 5px rgba(0,0,0,.05);text-shadow:0 -1px 0 rgba(0,0,0,.1)}.uk-pagination>.uk-disabled>span{background-color:#fafafa;color:#999;border:1px solid rgba(0,0,0,.06);text-shadow:0 1px 0 #fff}.uk-pagination-previous{float:left}.uk-pagination-next{float:right}.uk-pagination-left{text-align:left}.uk-pagination-right{text-align:right}.uk-tab{margin:0;padding:0;list-style:none;border-bottom:1px solid #ddd}.uk-tab:after,.uk-tab:before{content:"";display:table}.uk-tab:after{clear:both}.uk-tab>li{margin-bottom:-1px;float:left;position:relative}.uk-tab>li>a{display:block;padding:8px 12px 8px 12px;border:1px solid transparent;border-bottom-width:0;color:#07d;text-decoration:none;border-radius:4px 4px 0 0;text-shadow:0 1px 0 #fff}.uk-tab>li:nth-child(n+2)>a{margin-left:5px}.uk-tab>li.uk-open>a,.uk-tab>li>a:focus,.uk-tab>li>a:hover{border-color:rgba(0,0,0,.06);background:#f5f5f5;color:#059;outline:0}.uk-tab>li.uk-open:not(.uk-active)>a,.uk-tab>li:not(.uk-active)>a:focus,.uk-tab>li:not(.uk-active)>a:hover{margin-bottom:1px;padding-bottom:7px}.uk-tab>li.uk-active>a{border-color:#ddd;border-bottom-color:transparent;background:#fff;color:#444}.uk-tab>li.uk-disabled>a{color:#999;cursor:text}.uk-tab>li.uk-disabled.uk-active>a,.uk-tab>li.uk-disabled>a:focus,.uk-tab>li.uk-disabled>a:hover{background:0 0;border-color:transparent}.uk-tab-flip>li{float:right}.uk-tab-flip>li:nth-child(n+2)>a{margin-left:0;margin-right:5px}.uk-tab>li.uk-tab-responsive>a{margin-left:0;margin-right:0}.uk-tab-responsive>a:before{content:"\f0c9\00a0";font-family:FontAwesome}.uk-tab-center{border-bottom:1px solid #ddd}.uk-tab-center-bottom{border-bottom:none;border-top:1px solid #ddd}.uk-tab-center:after,.uk-tab-center:before{content:"";display:table}.uk-tab-center:after{clear:both}.uk-tab-center .uk-tab{position:relative;right:50%;border:none;float:right}.uk-tab-center .uk-tab>li{position:relative;right:-50%}.uk-tab-center .uk-tab>li>a{text-align:center}.uk-tab-bottom{border-top:1px solid #ddd;border-bottom:none}.uk-tab-bottom>li{margin-top:-1px;margin-bottom:0}.uk-tab-bottom>li>a{padding-top:8px;padding-bottom:8px;border-bottom-width:1px;border-top-width:0}.uk-tab-bottom>li.uk-open:not(.uk-active)>a,.uk-tab-bottom>li:not(.uk-active)>a:focus,.uk-tab-bottom>li:not(.uk-active)>a:hover{margin-bottom:0;margin-top:1px;padding-bottom:8px;padding-top:7px}.uk-tab-bottom>li.uk-active>a{border-top-color:transparent;border-bottom-color:#ddd}.uk-tab-grid{margin-left:-5px;border-bottom:none;position:relative;z-index:0}.uk-tab-grid:before{display:block;position:absolute;left:5px;right:0;bottom:-1px;border-top:1px solid #ddd;z-index:-1}.uk-tab-grid>li:first-child>a{margin-left:5px}.uk-tab-grid>li>a{text-align:center}.uk-tab-grid.uk-tab-bottom{border-top:none}.uk-tab-grid.uk-tab-bottom:before{top:-1px;bottom:auto}@media (min-width:768px){.uk-tab-left,.uk-tab-right{border-bottom:none}.uk-tab-left>li,.uk-tab-right>li{margin-bottom:0;float:none}.uk-tab-left>li>a,.uk-tab-right>li>a{padding-top:8px;padding-bottom:8px}.uk-tab-left>li:nth-child(n+2)>a,.uk-tab-right>li:nth-child(n+2)>a{margin-left:0;margin-top:5px}.uk-tab-left>li.uk-active>a,.uk-tab-right>li.uk-active>a{border-color:#ddd}.uk-tab-left{border-right:1px solid #ddd}.uk-tab-left>li{margin-right:-1px}.uk-tab-left>li>a{border-bottom-width:1px;border-right-width:0}.uk-tab-left>li:not(.uk-active)>a:focus,.uk-tab-left>li:not(.uk-active)>a:hover{margin-bottom:0;margin-right:1px;padding-bottom:8px;padding-right:11px}.uk-tab-left>li.uk-active>a{border-right-color:transparent}.uk-tab-right{border-left:1px solid #ddd}.uk-tab-right>li{margin-left:-1px}.uk-tab-right>li>a{border-bottom-width:1px;border-left-width:0}.uk-tab-right>li:not(.uk-active)>a:focus,.uk-tab-right>li:not(.uk-active)>a:hover{margin-bottom:0;margin-left:1px;padding-bottom:8px;padding-left:11px}.uk-tab-right>li.uk-active>a{border-left-color:transparent}}.uk-tab-bottom>li>a{border-radius:0 0 4px 4px}@media (min-width:768px){.uk-tab-left>li>a{border-radius:4px 0 0 4px}.uk-tab-right>li>a{border-radius:0 4px 4px 0}}.uk-thumbnav{display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-left:-10px;margin-top:-10px;padding:0;list-style:none}.uk-thumbnav>*{-ms-flex:none;-webkit-flex:none;flex:none;padding-left:10px;margin-top:10px}.uk-thumbnav:after,.uk-thumbnav:before{content:"";display:block;overflow:hidden}.uk-thumbnav:after{clear:both}.uk-thumbnav>*{float:left}.uk-thumbnav>*>*{display:block;background:#fff}.uk-thumbnav>*>*>img{opacity:.7;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.uk-thumbnav>*>:focus>img,.uk-thumbnav>*>:hover>img{opacity:1}.uk-thumbnav>.uk-active>*>img{opacity:1}.uk-list{padding:0;list-style:none}.uk-list>li:after,.uk-list>li:before{content:"";display:table}.uk-list>li:after{clear:both}.uk-list>li>:last-child{margin-bottom:0}.uk-list ul{margin:0;padding-left:20px;list-style:none}.uk-list-line>li:nth-child(n+2){margin-top:5px;padding-top:5px;border-top:1px solid #ddd}.uk-list-striped>li{padding:5px 5px;border-bottom:1px solid #ddd}.uk-list-striped>li:nth-of-type(odd){background:#fafafa}.uk-list-space>li:nth-child(n+2){margin-top:10px}.uk-list-striped>li:first-child{border-top:1px solid #ddd}@media (min-width:768px){.uk-description-list-horizontal{overflow:hidden}.uk-description-list-horizontal>dt{width:160px;float:left;clear:both;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uk-description-list-horizontal>dd{margin-left:180px}}.uk-description-list-line>dt{font-weight:400}.uk-description-list-line>dt:nth-child(n+2){margin-top:5px;padding-top:5px;border-top:1px solid #ddd}.uk-description-list-line>dd{color:#999}.uk-table{border-collapse:collapse;border-spacing:0;width:100%;margin-bottom:15px}*+.uk-table{margin-top:15px}.uk-table td,.uk-table th{padding:8px 8px;border-bottom:1px solid #ddd}.uk-table th{text-align:left}.uk-table td{vertical-align:top}.uk-table thead th{vertical-align:bottom}.uk-table caption,.uk-table tfoot{font-size:12px;font-style:italic}.uk-table caption{text-align:left;color:#999}.uk-table tbody tr.uk-active{background:#f0f0f0}.uk-table-middle,.uk-table-middle td{vertical-align:middle!important}.uk-table-striped tbody tr:nth-of-type(odd){background:#fafafa}.uk-table-condensed td{padding:4px 8px}.uk-table-hover tbody tr:hover{background:#f0f0f0}.uk-form input,.uk-form select,.uk-form textarea{-moz-box-sizing:border-box;box-sizing:border-box;margin:0;border-radius:0;font:inherit;color:inherit}.uk-form select{text-transform:none}.uk-form optgroup{font:inherit;font-weight:700}.uk-form input::-moz-focus-inner{border:0;padding:0}.uk-form input[type=checkbox],.uk-form input[type=radio]{padding:0}.uk-form input[type=checkbox]:not(:disabled),.uk-form input[type=radio]:not(:disabled){cursor:pointer}.uk-form input:not([type]),.uk-form input[type=text],.uk-form input[type=password],.uk-form input[type=email],.uk-form input[type=url],.uk-form input[type=search],.uk-form input[type=tel],.uk-form input[type=number],.uk-form input[type=datetime],.uk-form textarea{-webkit-appearance:none}.uk-form input[type=search]::-webkit-search-cancel-button,.uk-form input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.uk-form input[type=number]::-webkit-inner-spin-button,.uk-form input[type=number]::-webkit-outer-spin-button{height:auto}.uk-form fieldset{border:none;margin:0;padding:0}.uk-form textarea{overflow:auto;vertical-align:top}.uk-form ::-moz-placeholder{opacity:1}.uk-form :invalid{box-shadow:none}.uk-form input:not([type=radio]):not([type=checkbox]),.uk-form select{vertical-align:middle}.uk-form>:last-child{margin-bottom:0}.uk-form input:not([type]),.uk-form input[type=text],.uk-form input[type=password],.uk-form input[type=email],.uk-form input[type=url],.uk-form input[type=search],.uk-form input[type=tel],.uk-form input[type=number],.uk-form input[type=datetime],.uk-form input[type=datetime-local],.uk-form input[type=date],.uk-form input[type=month],.uk-form input[type=time],.uk-form input[type=week],.uk-form input[type=color],.uk-form select,.uk-form textarea{height:30px;max-width:100%;padding:4px 6px;border:1px solid #ddd;background:#fff;color:#444;-webkit-transition:all linear .2s;transition:all linear .2s;border-radius:4px}.uk-form input:not([type]):focus,.uk-form input[type=text]:focus,.uk-form input[type=password]:focus,.uk-form input[type=email]:focus,.uk-form input[type=url]:focus,.uk-form input[type=search]:focus,.uk-form input[type=tel]:focus,.uk-form input[type=number]:focus,.uk-form input[type=datetime]:focus,.uk-form input[type=datetime-local]:focus,.uk-form input[type=date]:focus,.uk-form input[type=month]:focus,.uk-form input[type=time]:focus,.uk-form input[type=week]:focus,.uk-form input[type=color]:focus,.uk-form select:focus,.uk-form textarea:focus{border-color:#99baca;outline:0;background:#f5fbfe;color:#444}.uk-form input:not([type]):disabled,.uk-form input[type=text]:disabled,.uk-form input[type=password]:disabled,.uk-form input[type=email]:disabled,.uk-form input[type=url]:disabled,.uk-form input[type=search]:disabled,.uk-form input[type=tel]:disabled,.uk-form input[type=number]:disabled,.uk-form input[type=datetime]:disabled,.uk-form input[type=datetime-local]:disabled,.uk-form input[type=date]:disabled,.uk-form input[type=month]:disabled,.uk-form input[type=time]:disabled,.uk-form input[type=week]:disabled,.uk-form input[type=color]:disabled,.uk-form select:disabled,.uk-form textarea:disabled{border-color:#ddd;background-color:#fafafa;color:#999}.uk-form :-ms-input-placeholder{color:#999!important}.uk-form ::-moz-placeholder{color:#999}.uk-form ::-webkit-input-placeholder{color:#999}.uk-form :disabled:-ms-input-placeholder{color:#999!important}.uk-form :disabled::-moz-placeholder{color:#999}.uk-form :disabled::-webkit-input-placeholder{color:#999}.uk-form legend{width:100%;border:0;padding:0;padding-bottom:15px;font-size:18px;line-height:30px}.uk-form legend:after{content:"";display:block;border-bottom:1px solid #ddd;width:100%}input:not([type]).uk-form-small,input[type].uk-form-small,select.uk-form-small,textarea.uk-form-small{height:25px;padding:3px 3px;font-size:12px}input:not([type]).uk-form-large,input[type].uk-form-large,select.uk-form-large,textarea.uk-form-large{height:40px;padding:8px 6px;font-size:16px}.uk-form select[multiple],.uk-form select[size],.uk-form textarea{height:auto}.uk-form-danger{border-color:#dc8d99!important;background:#fff7f8!important;color:#d85030!important}.uk-form-success{border-color:#8ec73b!important;background:#fafff2!important;color:#659f13!important}.uk-form-blank{border-color:transparent!important;border-style:dashed!important;background:0 0!important}.uk-form-blank:focus{border-color:#ddd!important}input.uk-form-width-mini{width:40px}select.uk-form-width-mini{width:65px}.uk-form-width-small{width:130px}.uk-form-width-medium{width:200px}.uk-form-width-large{width:500px}.uk-form-row:after,.uk-form-row:before{content:"";display:table}.uk-form-row:after{clear:both}.uk-form-row+.uk-form-row{margin-top:15px}.uk-form-help-inline{display:inline-block;margin:0 0 0 10px}.uk-form-help-block{margin:5px 0 0 0}.uk-form-controls>:first-child{margin-top:0}.uk-form-controls>:last-child{margin-bottom:0}.uk-form-controls-condensed{margin:5px 0}.uk-form-stacked .uk-form-label{display:block;margin-bottom:5px;font-weight:700}@media (max-width:959px){.uk-form-horizontal .uk-form-label{display:block;margin-bottom:5px;font-weight:700}}@media (min-width:960px){.uk-form-horizontal .uk-form-label{width:200px;margin-top:5px;float:left}.uk-form-horizontal .uk-form-controls{margin-left:215px}.uk-form-horizontal .uk-form-controls-text{padding-top:5px}}.uk-form-icon{display:inline-block;position:relative;max-width:100%}.uk-form-icon>[class*=uk-icon-]{position:absolute;top:50%;width:30px;margin-top:-7px;font-size:14px;color:#999;text-align:center;pointer-events:none}.uk-form-icon:not(.uk-form-icon-flip)>input{padding-left:30px!important}.uk-form-icon-flip>[class*=uk-icon-]{right:0}.uk-form-icon-flip>input{padding-right:30px!important}.uk-button::-moz-focus-inner{border:0;padding:0}.uk-button{-webkit-appearance:none;margin:0;border:none;overflow:visible;font:inherit;color:#444;text-transform:none;display:inline-block;-moz-box-sizing:border-box;box-sizing:border-box;padding:0 12px;background:#f5f5f5;vertical-align:middle;line-height:28px;min-height:30px;font-size:1rem;text-decoration:none;text-align:center;border:1px solid rgba(0,0,0,.06);border-radius:4px;text-shadow:0 1px 0 #fff}.uk-button:not(:disabled){cursor:pointer}.uk-button:focus,.uk-button:hover{background-color:#fafafa;color:#444;outline:0;text-decoration:none;border-color:rgba(0,0,0,.16)}.uk-button.uk-active,.uk-button:active{background-color:#eee;color:#444}.uk-button-primary{background-color:#00a8e6;color:#fff}.uk-button-primary:focus,.uk-button-primary:hover{background-color:#35b3ee;color:#fff}.uk-button-primary.uk-active,.uk-button-primary:active{background-color:#0091ca;color:#fff}.uk-button-success{background-color:#8cc14c;color:#fff}.uk-button-success:focus,.uk-button-success:hover{background-color:#8ec73b;color:#fff}.uk-button-success.uk-active,.uk-button-success:active{background-color:#72ae41;color:#fff}.uk-button-danger{background-color:#da314b;color:#fff}.uk-button-danger:focus,.uk-button-danger:hover{background-color:#e4354f;color:#fff}.uk-button-danger.uk-active,.uk-button-danger:active{background-color:#c91032;color:#fff}.uk-button:disabled{background-color:#fafafa;color:#999;border-color:rgba(0,0,0,.06);box-shadow:none;text-shadow:0 1px 0 #fff}.uk-button-link,.uk-button-link.uk-active,.uk-button-link:active,.uk-button-link:disabled,.uk-button-link:focus,.uk-button-link:hover{border-color:transparent;background:0 0;box-shadow:none;text-shadow:none}.uk-button-link{color:#07d}.uk-button-link.uk-active,.uk-button-link:active,.uk-button-link:focus,.uk-button-link:hover{color:#059;text-decoration:underline}.uk-button-link:disabled{color:#999}.uk-button-link:focus{outline:1px dotted}.uk-button-mini{min-height:20px;padding:0 6px;line-height:18px;font-size:11px}.uk-button-small{min-height:25px;padding:0 10px;line-height:23px;font-size:12px}.uk-button-large{min-height:40px;padding:0 15px;line-height:38px;font-size:16px;border-radius:5px}.uk-button-group{display:inline-block;vertical-align:middle;position:relative;font-size:0;white-space:nowrap}.uk-button-group>*{display:inline-block}.uk-button-group .uk-button{vertical-align:top}.uk-button-dropdown{display:inline-block;vertical-align:middle;position:relative}.uk-button-danger,.uk-button-primary,.uk-button-success{box-shadow:inset 0 0 5px rgba(0,0,0,.05);text-shadow:0 -1px 0 rgba(0,0,0,.1)}.uk-button-danger:focus,.uk-button-danger:hover,.uk-button-primary:focus,.uk-button-primary:hover,.uk-button-success:focus,.uk-button-success:hover{border-color:rgba(0,0,0,.21)}.uk-button-group>.uk-button:not(:first-child):not(:last-child),.uk-button-group>div:not(:first-child):not(:last-child) .uk-button{border-left-color:rgba(0,0,0,.1);border-right-color:rgba(0,0,0,.1);border-radius:0}.uk-button-group>.uk-button:first-child,.uk-button-group>div:first-child .uk-button{border-right-color:rgba(0,0,0,.1);border-top-right-radius:0;border-bottom-right-radius:0}.uk-button-group>.uk-button:last-child,.uk-button-group>div:last-child .uk-button{border-left-color:rgba(0,0,0,.1);border-top-left-radius:0;border-bottom-left-radius:0}.uk-button-group>.uk-button:nth-child(n+2),.uk-button-group>div:nth-child(n+2) .uk-button{margin-left:-1px}.uk-button-group .uk-button:active,.uk-button-group .uk-button:hover{position:relative}@font-face{font-family:FontAwesome;src:url(../fonts/fontawesome-webfont.eot);src:url(../fonts/fontawesome-webfont.eot?#iefix)format("embedded-opentype"),url(../fonts/fontawesome-webfont.woff2)format('woff2'),url(../fonts/fontawesome-webfont.woff)format("woff"),url(../fonts/fontawesome-webfont.ttf)format("truetype");font-weight:400;font-style:normal}[class*=uk-icon-]{font-family:FontAwesome;display:inline-block;font-weight:400;font-style:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[class*=uk-icon-],[class*=uk-icon-]:focus,[class*=uk-icon-]:hover{text-decoration:none}.uk-icon-small{font-size:150%;vertical-align:-10%}.uk-icon-medium{font-size:200%;vertical-align:-16%}.uk-icon-large{font-size:250%;vertical-align:-22%}.uk-icon-justify{width:1em;text-align:center}.uk-icon-spin{display:inline-block;-webkit-animation:uk-rotate 2s infinite linear;animation:uk-rotate 2s infinite linear}.uk-icon-hover{color:#999}.uk-icon-hover:hover{color:#444}.uk-icon-button{-moz-box-sizing:border-box;box-sizing:border-box;display:inline-block;width:35px;height:35px;border-radius:100%;background:#f5f5f5;line-height:35px;color:#444;font-size:18px;text-align:center;border:1px solid #e7e7e7;text-shadow:0 1px 0 #fff}.uk-icon-button:focus,.uk-icon-button:hover{background-color:#fafafa;color:#444;outline:0;border-color:#d3d3d3}.uk-icon-button:active{background-color:#eee;color:#444}.uk-icon-glass:before{content:"\f000"}.uk-icon-music:before{content:"\f001"}.uk-icon-search:before{content:"\f002"}.uk-icon-envelope-o:before{content:"\f003"}.uk-icon-heart:before{content:"\f004"}.uk-icon-star:before{content:"\f005"}.uk-icon-star-o:before{content:"\f006"}.uk-icon-user:before{content:"\f007"}.uk-icon-film:before{content:"\f008"}.uk-icon-th-large:before{content:"\f009"}.uk-icon-th:before{content:"\f00a"}.uk-icon-th-list:before{content:"\f00b"}.uk-icon-check:before{content:"\f00c"}.uk-icon-close:before,.uk-icon-remove:before,.uk-icon-times:before{content:"\f00d"}.uk-icon-search-plus:before{content:"\f00e"}.uk-icon-search-minus:before{content:"\f010"}.uk-icon-power-off:before{content:"\f011"}.uk-icon-signal:before{content:"\f012"}.uk-icon-cog:before,.uk-icon-gear:before{content:"\f013"}.uk-icon-trash-o:before{content:"\f014"}.uk-icon-home:before{content:"\f015"}.uk-icon-file-o:before{content:"\f016"}.uk-icon-clock-o:before{content:"\f017"}.uk-icon-road:before{content:"\f018"}.uk-icon-download:before{content:"\f019"}.uk-icon-arrow-circle-o-down:before{content:"\f01a"}.uk-icon-arrow-circle-o-up:before{content:"\f01b"}.uk-icon-inbox:before{content:"\f01c"}.uk-icon-play-circle-o:before{content:"\f01d"}.uk-icon-repeat:before,.uk-icon-rotate-right:before{content:"\f01e"}.uk-icon-refresh:before{content:"\f021"}.uk-icon-list-alt:before{content:"\f022"}.uk-icon-lock:before{content:"\f023"}.uk-icon-flag:before{content:"\f024"}.uk-icon-headphones:before{content:"\f025"}.uk-icon-volume-off:before{content:"\f026"}.uk-icon-volume-down:before{content:"\f027"}.uk-icon-volume-up:before{content:"\f028"}.uk-icon-qrcode:before{content:"\f029"}.uk-icon-barcode:before{content:"\f02a"}.uk-icon-tag:before{content:"\f02b"}.uk-icon-tags:before{content:"\f02c"}.uk-icon-book:before{content:"\f02d"}.uk-icon-bookmark:before{content:"\f02e"}.uk-icon-print:before{content:"\f02f"}.uk-icon-camera:before{content:"\f030"}.uk-icon-font:before{content:"\f031"}.uk-icon-bold:before{content:"\f032"}.uk-icon-italic:before{content:"\f033"}.uk-icon-text-height:before{content:"\f034"}.uk-icon-text-width:before{content:"\f035"}.uk-icon-align-left:before{content:"\f036"}.uk-icon-align-center:before{content:"\f037"}.uk-icon-align-right:before{content:"\f038"}.uk-icon-align-justify:before{content:"\f039"}.uk-icon-list:before{content:"\f03a"}.uk-icon-dedent:before,.uk-icon-outdent:before{content:"\f03b"}.uk-icon-indent:before{content:"\f03c"}.uk-icon-video-camera:before{content:"\f03d"}.uk-icon-image:before,.uk-icon-photo:before,.uk-icon-picture-o:before{content:"\f03e"}.uk-icon-pencil:before{content:"\f040"}.uk-icon-map-marker:before{content:"\f041"}.uk-icon-adjust:before{content:"\f042"}.uk-icon-tint:before{content:"\f043"}.uk-icon-edit:before,.uk-icon-pencil-square-o:before{content:"\f044"}.uk-icon-share-square-o:before{content:"\f045"}.uk-icon-check-square-o:before{content:"\f046"}.uk-icon-arrows:before{content:"\f047"}.uk-icon-step-backward:before{content:"\f048"}.uk-icon-fast-backward:before{content:"\f049"}.uk-icon-backward:before{content:"\f04a"}.uk-icon-play:before{content:"\f04b"}.uk-icon-pause:before{content:"\f04c"}.uk-icon-stop:before{content:"\f04d"}.uk-icon-forward:before{content:"\f04e"}.uk-icon-fast-forward:before{content:"\f050"}.uk-icon-step-forward:before{content:"\f051"}.uk-icon-eject:before{content:"\f052"}.uk-icon-chevron-left:before{content:"\f053"}.uk-icon-chevron-right:before{content:"\f054"}.uk-icon-plus-circle:before{content:"\f055"}.uk-icon-minus-circle:before{content:"\f056"}.uk-icon-times-circle:before{content:"\f057"}.uk-icon-check-circle:before{content:"\f058"}.uk-icon-question-circle:before{content:"\f059"}.uk-icon-info-circle:before{content:"\f05a"}.uk-icon-crosshairs:before{content:"\f05b"}.uk-icon-times-circle-o:before{content:"\f05c"}.uk-icon-check-circle-o:before{content:"\f05d"}.uk-icon-ban:before{content:"\f05e"}.uk-icon-arrow-left:before{content:"\f060"}.uk-icon-arrow-right:before{content:"\f061"}.uk-icon-arrow-up:before{content:"\f062"}.uk-icon-arrow-down:before{content:"\f063"}.uk-icon-mail-forward:before,.uk-icon-share:before{content:"\f064"}.uk-icon-expand:before{content:"\f065"}.uk-icon-compress:before{content:"\f066"}.uk-icon-plus:before{content:"\f067"}.uk-icon-minus:before{content:"\f068"}.uk-icon-asterisk:before{content:"\f069"}.uk-icon-exclamation-circle:before{content:"\f06a"}.uk-icon-gift:before{content:"\f06b"}.uk-icon-leaf:before{content:"\f06c"}.uk-icon-fire:before{content:"\f06d"}.uk-icon-eye:before{content:"\f06e"}.uk-icon-eye-slash:before{content:"\f070"}.uk-icon-exclamation-triangle:before,.uk-icon-warning:before{content:"\f071"}.uk-icon-plane:before{content:"\f072"}.uk-icon-calendar:before{content:"\f073"}.uk-icon-random:before{content:"\f074"}.uk-icon-comment:before{content:"\f075"}.uk-icon-magnet:before{content:"\f076"}.uk-icon-chevron-up:before{content:"\f077"}.uk-icon-chevron-down:before{content:"\f078"}.uk-icon-retweet:before{content:"\f079"}.uk-icon-shopping-cart:before{content:"\f07a"}.uk-icon-folder:before{content:"\f07b"}.uk-icon-folder-open:before{content:"\f07c"}.uk-icon-arrows-v:before{content:"\f07d"}.uk-icon-arrows-h:before{content:"\f07e"}.uk-icon-bar-chart-o:before,.uk-icon-bar-chart:before{content:"\f080"}.uk-icon-twitter-square:before{content:"\f081"}.uk-icon-facebook-square:before{content:"\f082"}.uk-icon-camera-retro:before{content:"\f083"}.uk-icon-key:before{content:"\f084"}.uk-icon-cogs:before,.uk-icon-gears:before{content:"\f085"}.uk-icon-comments:before{content:"\f086"}.uk-icon-thumbs-o-up:before{content:"\f087"}.uk-icon-thumbs-o-down:before{content:"\f088"}.uk-icon-star-half:before{content:"\f089"}.uk-icon-heart-o:before{content:"\f08a"}.uk-icon-sign-out:before{content:"\f08b"}.uk-icon-linkedin-square:before{content:"\f08c"}.uk-icon-thumb-tack:before{content:"\f08d"}.uk-icon-external-link:before{content:"\f08e"}.uk-icon-sign-in:before{content:"\f090"}.uk-icon-trophy:before{content:"\f091"}.uk-icon-github-square:before{content:"\f092"}.uk-icon-upload:before{content:"\f093"}.uk-icon-lemon-o:before{content:"\f094"}.uk-icon-phone:before{content:"\f095"}.uk-icon-square-o:before{content:"\f096"}.uk-icon-bookmark-o:before{content:"\f097"}.uk-icon-phone-square:before{content:"\f098"}.uk-icon-twitter:before{content:"\f099"}.uk-icon-facebook-f:before,.uk-icon-facebook:before{content:"\f09a"}.uk-icon-github:before{content:"\f09b"}.uk-icon-unlock:before{content:"\f09c"}.uk-icon-credit-card:before{content:"\f09d"}.uk-icon-rss:before{content:"\f09e"}.uk-icon-hdd-o:before{content:"\f0a0"}.uk-icon-bullhorn:before{content:"\f0a1"}.uk-icon-bell:before{content:"\f0f3"}.uk-icon-certificate:before{content:"\f0a3"}.uk-icon-hand-o-right:before{content:"\f0a4"}.uk-icon-hand-o-left:before{content:"\f0a5"}.uk-icon-hand-o-up:before{content:"\f0a6"}.uk-icon-hand-o-down:before{content:"\f0a7"}.uk-icon-arrow-circle-left:before{content:"\f0a8"}.uk-icon-arrow-circle-right:before{content:"\f0a9"}.uk-icon-arrow-circle-up:before{content:"\f0aa"}.uk-icon-arrow-circle-down:before{content:"\f0ab"}.uk-icon-globe:before{content:"\f0ac"}.uk-icon-wrench:before{content:"\f0ad"}.uk-icon-tasks:before{content:"\f0ae"}.uk-icon-filter:before{content:"\f0b0"}.uk-icon-briefcase:before{content:"\f0b1"}.uk-icon-arrows-alt:before{content:"\f0b2"}.uk-icon-group:before,.uk-icon-users:before{content:"\f0c0"}.uk-icon-chain:before,.uk-icon-link:before{content:"\f0c1"}.uk-icon-cloud:before{content:"\f0c2"}.uk-icon-flask:before{content:"\f0c3"}.uk-icon-cut:before,.uk-icon-scissors:before{content:"\f0c4"}.uk-icon-copy:before,.uk-icon-files-o:before{content:"\f0c5"}.uk-icon-paperclip:before{content:"\f0c6"}.uk-icon-floppy-o:before,.uk-icon-save:before{content:"\f0c7"}.uk-icon-square:before{content:"\f0c8"}.uk-icon-bars:before,.uk-icon-navicon:before,.uk-icon-reorder:before{content:"\f0c9"}.uk-icon-list-ul:before{content:"\f0ca"}.uk-icon-list-ol:before{content:"\f0cb"}.uk-icon-strikethrough:before{content:"\f0cc"}.uk-icon-underline:before{content:"\f0cd"}.uk-icon-table:before{content:"\f0ce"}.uk-icon-magic:before{content:"\f0d0"}.uk-icon-truck:before{content:"\f0d1"}.uk-icon-pinterest:before{content:"\f0d2"}.uk-icon-pinterest-square:before{content:"\f0d3"}.uk-icon-google-plus-square:before{content:"\f0d4"}.uk-icon-google-plus:before{content:"\f0d5"}.uk-icon-money:before{content:"\f0d6"}.uk-icon-caret-down:before{content:"\f0d7"}.uk-icon-caret-up:before{content:"\f0d8"}.uk-icon-caret-left:before{content:"\f0d9"}.uk-icon-caret-right:before{content:"\f0da"}.uk-icon-columns:before{content:"\f0db"}.uk-icon-sort:before,.uk-icon-unsorted:before{content:"\f0dc"}.uk-icon-sort-desc:before,.uk-icon-sort-down:before{content:"\f0dd"}.uk-icon-sort-asc:before,.uk-icon-sort-up:before{content:"\f0de"}.uk-icon-envelope:before{content:"\f0e0"}.uk-icon-linkedin:before{content:"\f0e1"}.uk-icon-rotate-left:before,.uk-icon-undo:before{content:"\f0e2"}.uk-icon-gavel:before,.uk-icon-legal:before{content:"\f0e3"}.uk-icon-dashboard:before,.uk-icon-tachometer:before{content:"\f0e4"}.uk-icon-comment-o:before{content:"\f0e5"}.uk-icon-comments-o:before{content:"\f0e6"}.uk-icon-bolt:before,.uk-icon-flash:before{content:"\f0e7"}.uk-icon-sitemap:before{content:"\f0e8"}.uk-icon-umbrella:before{content:"\f0e9"}.uk-icon-clipboard:before,.uk-icon-paste:before{content:"\f0ea"}.uk-icon-lightbulb-o:before{content:"\f0eb"}.uk-icon-exchange:before{content:"\f0ec"}.uk-icon-cloud-download:before{content:"\f0ed"}.uk-icon-cloud-upload:before{content:"\f0ee"}.uk-icon-user-md:before{content:"\f0f0"}.uk-icon-stethoscope:before{content:"\f0f1"}.uk-icon-suitcase:before{content:"\f0f2"}.uk-icon-bell-o:before{content:"\f0a2"}.uk-icon-coffee:before{content:"\f0f4"}.uk-icon-cutlery:before{content:"\f0f5"}.uk-icon-file-text-o:before{content:"\f0f6"}.uk-icon-building-o:before{content:"\f0f7"}.uk-icon-hospital-o:before{content:"\f0f8"}.uk-icon-ambulance:before{content:"\f0f9"}.uk-icon-medkit:before{content:"\f0fa"}.uk-icon-fighter-jet:before{content:"\f0fb"}.uk-icon-beer:before{content:"\f0fc"}.uk-icon-h-square:before{content:"\f0fd"}.uk-icon-plus-square:before{content:"\f0fe"}.uk-icon-angle-double-left:before{content:"\f100"}.uk-icon-angle-double-right:before{content:"\f101"}.uk-icon-angle-double-up:before{content:"\f102"}.uk-icon-angle-double-down:before{content:"\f103"}.uk-icon-angle-left:before{content:"\f104"}.uk-icon-angle-right:before{content:"\f105"}.uk-icon-angle-up:before{content:"\f106"}.uk-icon-angle-down:before{content:"\f107"}.uk-icon-desktop:before{content:"\f108"}.uk-icon-laptop:before{content:"\f109"}.uk-icon-tablet:before{content:"\f10a"}.uk-icon-mobile-phone:before,.uk-icon-mobile:before{content:"\f10b"}.uk-icon-circle-o:before{content:"\f10c"}.uk-icon-quote-left:before{content:"\f10d"}.uk-icon-quote-right:before{content:"\f10e"}.uk-icon-spinner:before{content:"\f110"}.uk-icon-circle:before{content:"\f111"}.uk-icon-mail-reply:before,.uk-icon-reply:before{content:"\f112"}.uk-icon-github-alt:before{content:"\f113"}.uk-icon-folder-o:before{content:"\f114"}.uk-icon-folder-open-o:before{content:"\f115"}.uk-icon-smile-o:before{content:"\f118"}.uk-icon-frown-o:before{content:"\f119"}.uk-icon-meh-o:before{content:"\f11a"}.uk-icon-gamepad:before{content:"\f11b"}.uk-icon-keyboard-o:before{content:"\f11c"}.uk-icon-flag-o:before{content:"\f11d"}.uk-icon-flag-checkered:before{content:"\f11e"}.uk-icon-terminal:before{content:"\f120"}.uk-icon-code:before{content:"\f121"}.uk-icon-mail-reply-all:before,.uk-icon-reply-all:before{content:"\f122"}.uk-icon-star-half-empty:before,.uk-icon-star-half-full:before,.uk-icon-star-half-o:before{content:"\f123"}.uk-icon-location-arrow:before{content:"\f124"}.uk-icon-crop:before{content:"\f125"}.uk-icon-code-fork:before{content:"\f126"}.uk-icon-chain-broken:before,.uk-icon-unlink:before{content:"\f127"}.uk-icon-question:before{content:"\f128"}.uk-icon-info:before{content:"\f129"}.uk-icon-exclamation:before{content:"\f12a"}.uk-icon-superscript:before{content:"\f12b"}.uk-icon-subscript:before{content:"\f12c"}.uk-icon-eraser:before{content:"\f12d"}.uk-icon-puzzle-piece:before{content:"\f12e"}.uk-icon-microphone:before{content:"\f130"}.uk-icon-microphone-slash:before{content:"\f131"}.uk-icon-shield:before{content:"\f132"}.uk-icon-calendar-o:before{content:"\f133"}.uk-icon-fire-extinguisher:before{content:"\f134"}.uk-icon-rocket:before{content:"\f135"}.uk-icon-maxcdn:before{content:"\f136"}.uk-icon-chevron-circle-left:before{content:"\f137"}.uk-icon-chevron-circle-right:before{content:"\f138"}.uk-icon-chevron-circle-up:before{content:"\f139"}.uk-icon-chevron-circle-down:before{content:"\f13a"}.uk-icon-html5:before{content:"\f13b"}.uk-icon-css3:before{content:"\f13c"}.uk-icon-anchor:before{content:"\f13d"}.uk-icon-unlock-alt:before{content:"\f13e"}.uk-icon-bullseye:before{content:"\f140"}.uk-icon-ellipsis-h:before{content:"\f141"}.uk-icon-ellipsis-v:before{content:"\f142"}.uk-icon-rss-square:before{content:"\f143"}.uk-icon-play-circle:before{content:"\f144"}.uk-icon-ticket:before{content:"\f145"}.uk-icon-minus-square:before{content:"\f146"}.uk-icon-minus-square-o:before{content:"\f147"}.uk-icon-level-up:before{content:"\f148"}.uk-icon-level-down:before{content:"\f149"}.uk-icon-check-square:before{content:"\f14a"}.uk-icon-pencil-square:before{content:"\f14b"}.uk-icon-external-link-square:before{content:"\f14c"}.uk-icon-share-square:before{content:"\f14d"}.uk-icon-compass:before{content:"\f14e"}.uk-icon-caret-square-o-down:before,.uk-icon-toggle-down:before{content:"\f150"}.uk-icon-caret-square-o-up:before,.uk-icon-toggle-up:before{content:"\f151"}.uk-icon-caret-square-o-right:before,.uk-icon-toggle-right:before{content:"\f152"}.uk-icon-eur:before,.uk-icon-euro:before{content:"\f153"}.uk-icon-gbp:before{content:"\f154"}.uk-icon-dollar:before,.uk-icon-usd:before{content:"\f155"}.uk-icon-inr:before,.uk-icon-rupee:before{content:"\f156"}.uk-icon-cny:before,.uk-icon-jpy:before,.uk-icon-rmb:before,.uk-icon-yen:before{content:"\f157"}.uk-icon-rouble:before,.uk-icon-rub:before,.uk-icon-ruble:before{content:"\f158"}.uk-icon-krw:before,.uk-icon-won:before{content:"\f159"}.uk-icon-bitcoin:before,.uk-icon-btc:before{content:"\f15a"}.uk-icon-file:before{content:"\f15b"}.uk-icon-file-text:before{content:"\f15c"}.uk-icon-sort-alpha-asc:before{content:"\f15d"}.uk-icon-sort-alpha-desc:before{content:"\f15e"}.uk-icon-sort-amount-asc:before{content:"\f160"}.uk-icon-sort-amount-desc:before{content:"\f161"}.uk-icon-sort-numeric-asc:before{content:"\f162"}.uk-icon-sort-numeric-desc:before{content:"\f163"}.uk-icon-thumbs-up:before{content:"\f164"}.uk-icon-thumbs-down:before{content:"\f165"}.uk-icon-youtube-square:before{content:"\f166"}.uk-icon-youtube:before{content:"\f167"}.uk-icon-xing:before{content:"\f168"}.uk-icon-xing-square:before{content:"\f169"}.uk-icon-youtube-play:before{content:"\f16a"}.uk-icon-dropbox:before{content:"\f16b"}.uk-icon-stack-overflow:before{content:"\f16c"}.uk-icon-instagram:before{content:"\f16d"}.uk-icon-flickr:before{content:"\f16e"}.uk-icon-adn:before{content:"\f170"}.uk-icon-bitbucket:before{content:"\f171"}.uk-icon-bitbucket-square:before{content:"\f172"}.uk-icon-tumblr:before{content:"\f173"}.uk-icon-tumblr-square:before{content:"\f174"}.uk-icon-long-arrow-down:before{content:"\f175"}.uk-icon-long-arrow-up:before{content:"\f176"}.uk-icon-long-arrow-left:before{content:"\f177"}.uk-icon-long-arrow-right:before{content:"\f178"}.uk-icon-apple:before{content:"\f179"}.uk-icon-windows:before{content:"\f17a"}.uk-icon-android:before{content:"\f17b"}.uk-icon-linux:before{content:"\f17c"}.uk-icon-dribbble:before{content:"\f17d"}.uk-icon-skype:before{content:"\f17e"}.uk-icon-foursquare:before{content:"\f180"}.uk-icon-trello:before{content:"\f181"}.uk-icon-female:before{content:"\f182"}.uk-icon-male:before{content:"\f183"}.uk-icon-gittip:before,.uk-icon-gratipay:before{content:"\f184"}.uk-icon-sun-o:before{content:"\f185"}.uk-icon-moon-o:before{content:"\f186"}.uk-icon-archive:before{content:"\f187"}.uk-icon-bug:before{content:"\f188"}.uk-icon-vk:before{content:"\f189"}.uk-icon-weibo:before{content:"\f18a"}.uk-icon-renren:before{content:"\f18b"}.uk-icon-pagelines:before{content:"\f18c"}.uk-icon-stack-exchange:before{content:"\f18d"}.uk-icon-arrow-circle-o-right:before{content:"\f18e"}.uk-icon-arrow-circle-o-left:before{content:"\f190"}.uk-icon-caret-square-o-left:before,.uk-icon-toggle-left:before{content:"\f191"}.uk-icon-dot-circle-o:before{content:"\f192"}.uk-icon-wheelchair:before{content:"\f193"}.uk-icon-vimeo-square:before{content:"\f194"}.uk-icon-try:before,.uk-icon-turkish-lira:before{content:"\f195"}.uk-icon-plus-square-o:before{content:"\f196"}.uk-icon-space-shuttle:before{content:"\f197"}.uk-icon-slack:before{content:"\f198"}.uk-icon-envelope-square:before{content:"\f199"}.uk-icon-wordpress:before{content:"\f19a"}.uk-icon-openid:before{content:"\f19b"}.uk-icon-bank:before,.uk-icon-institution:before,.uk-icon-university:before{content:"\f19c"}.uk-icon-graduation-cap:before,.uk-icon-mortar-board:before{content:"\f19d"}.uk-icon-yahoo:before{content:"\f19e"}.uk-icon-google:before{content:"\f1a0"}.uk-icon-reddit:before{content:"\f1a1"}.uk-icon-reddit-square:before{content:"\f1a2"}.uk-icon-stumbleupon-circle:before{content:"\f1a3"}.uk-icon-stumbleupon:before{content:"\f1a4"}.uk-icon-delicious:before{content:"\f1a5"}.uk-icon-digg:before{content:"\f1a6"}.uk-icon-pied-piper:before{content:"\f1a7"}.uk-icon-pied-piper-alt:before{content:"\f1a8"}.uk-icon-drupal:before{content:"\f1a9"}.uk-icon-joomla:before{content:"\f1aa"}.uk-icon-language:before{content:"\f1ab"}.uk-icon-fax:before{content:"\f1ac"}.uk-icon-building:before{content:"\f1ad"}.uk-icon-child:before{content:"\f1ae"}.uk-icon-paw:before{content:"\f1b0"}.uk-icon-spoon:before{content:"\f1b1"}.uk-icon-cube:before{content:"\f1b2"}.uk-icon-cubes:before{content:"\f1b3"}.uk-icon-behance:before{content:"\f1b4"}.uk-icon-behance-square:before{content:"\f1b5"}.uk-icon-steam:before{content:"\f1b6"}.uk-icon-steam-square:before{content:"\f1b7"}.uk-icon-recycle:before{content:"\f1b8"}.uk-icon-automobile:before,.uk-icon-car:before{content:"\f1b9"}.uk-icon-cab:before,.uk-icon-taxi:before{content:"\f1ba"}.uk-icon-tree:before{content:"\f1bb"}.uk-icon-spotify:before{content:"\f1bc"}.uk-icon-deviantart:before{content:"\f1bd"}.uk-icon-soundcloud:before{content:"\f1be"}.uk-icon-database:before{content:"\f1c0"}.uk-icon-file-pdf-o:before{content:"\f1c1"}.uk-icon-file-word-o:before{content:"\f1c2"}.uk-icon-file-excel-o:before{content:"\f1c3"}.uk-icon-file-powerpoint-o:before{content:"\f1c4"}.uk-icon-file-image-o:before,.uk-icon-file-photo-o:before,.uk-icon-file-picture-o:before{content:"\f1c5"}.uk-icon-file-archive-o:before,.uk-icon-file-zip-o:before{content:"\f1c6"}.uk-icon-file-audio-o:before,.uk-icon-file-sound-o:before{content:"\f1c7"}.uk-icon-file-movie-o:before,.uk-icon-file-video-o:before{content:"\f1c8"}.uk-icon-file-code-o:before{content:"\f1c9"}.uk-icon-vine:before{content:"\f1ca"}.uk-icon-codepen:before{content:"\f1cb"}.uk-icon-jsfiddle:before{content:"\f1cc"}.uk-icon-life-bouy:before,.uk-icon-life-buoy:before,.uk-icon-life-ring:before,.uk-icon-life-saver:before,.uk-icon-support:before{content:"\f1cd"}.uk-icon-circle-o-notch:before{content:"\f1ce"}.uk-icon-ra:before,.uk-icon-rebel:before{content:"\f1d0"}.uk-icon-empire:before,.uk-icon-ge:before{content:"\f1d1"}.uk-icon-git-square:before{content:"\f1d2"}.uk-icon-git:before{content:"\f1d3"}.uk-icon-hacker-news:before{content:"\f1d4"}.uk-icon-tencent-weibo:before{content:"\f1d5"}.uk-icon-qq:before{content:"\f1d6"}.uk-icon-wechat:before,.uk-icon-weixin:before{content:"\f1d7"}.uk-icon-paper-plane:before,.uk-icon-send:before{content:"\f1d8"}.uk-icon-paper-plane-o:before,.uk-icon-send-o:before{content:"\f1d9"}.uk-icon-history:before{content:"\f1da"}.uk-icon-circle-thin:before,.uk-icon-genderless:before{content:"\f1db"}.uk-icon-header:before{content:"\f1dc"}.uk-icon-paragraph:before{content:"\f1dd"}.uk-icon-sliders:before{content:"\f1de"}.uk-icon-share-alt:before{content:"\f1e0"}.uk-icon-share-alt-square:before{content:"\f1e1"}.uk-icon-bomb:before{content:"\f1e2"}.uk-icon-futbol-o:before,.uk-icon-soccer-ball-o:before{content:"\f1e3"}.uk-icon-tty:before{content:"\f1e4"}.uk-icon-binoculars:before{content:"\f1e5"}.uk-icon-plug:before{content:"\f1e6"}.uk-icon-slideshare:before{content:"\f1e7"}.uk-icon-twitch:before{content:"\f1e8"}.uk-icon-yelp:before{content:"\f1e9"}.uk-icon-newspaper-o:before{content:"\f1ea"}.uk-icon-wifi:before{content:"\f1eb"}.uk-icon-calculator:before{content:"\f1ec"}.uk-icon-paypal:before{content:"\f1ed"}.uk-icon-google-wallet:before{content:"\f1ee"}.uk-icon-cc-visa:before{content:"\f1f0"}.uk-icon-cc-mastercard:before{content:"\f1f1"}.uk-icon-cc-discover:before{content:"\f1f2"}.uk-icon-cc-amex:before{content:"\f1f3"}.uk-icon-cc-paypal:before{content:"\f1f4"}.uk-icon-cc-stripe:before{content:"\f1f5"}.uk-icon-bell-slash:before{content:"\f1f6"}.uk-icon-bell-slash-o:before{content:"\f1f7"}.uk-icon-trash:before{content:"\f1f8"}.uk-icon-copyright:before{content:"\f1f9"}.uk-icon-at:before{content:"\f1fa"}.uk-icon-eyedropper:before{content:"\f1fb"}.uk-icon-paint-brush:before{content:"\f1fc"}.uk-icon-birthday-cake:before{content:"\f1fd"}.uk-icon-area-chart:before{content:"\f1fe"}.uk-icon-pie-chart:before{content:"\f200"}.uk-icon-line-chart:before{content:"\f201"}.uk-icon-lastfm:before{content:"\f202"}.uk-icon-lastfm-square:before{content:"\f203"}.uk-icon-toggle-off:before{content:"\f204"}.uk-icon-toggle-on:before{content:"\f205"}.uk-icon-bicycle:before{content:"\f206"}.uk-icon-bus:before{content:"\f207"}.uk-icon-ioxhost:before{content:"\f208"}.uk-icon-angellist:before{content:"\f209"}.uk-icon-cc:before{content:"\f20a"}.uk-icon-ils:before,.uk-icon-shekel:before,.uk-icon-sheqel:before{content:"\f20b"}.uk-icon-meanpath:before{content:"\f20c"}.uk-icon-buysellads:before{content:"\f20d"}.uk-icon-connectdevelop:before{content:"\f20e"}.uk-icon-dashcube:before{content:"\f210"}.uk-icon-forumbee:before{content:"\f211"}.uk-icon-leanpub:before{content:"\f212"}.uk-icon-sellsy:before{content:"\f213"}.uk-icon-shirtsinbulk:before{content:"\f214"}.uk-icon-simplybuilt:before{content:"\f215"}.uk-icon-skyatlas:before{content:"\f216"}.uk-icon-cart-plus:before{content:"\f217"}.uk-icon-cart-arrow-down:before{content:"\f218"}.uk-icon-diamond:before{content:"\f219"}.uk-icon-ship:before{content:"\f21a"}.uk-icon-user-secret:before{content:"\f21b"}.uk-icon-motorcycle:before{content:"\f21c"}.uk-icon-street-view:before{content:"\f21d"}.uk-icon-heartbeat:before{content:"\f21e"}.uk-icon-venus:before{content:"\f221"}.uk-icon-mars:before{content:"\f222"}.uk-icon-mercury:before{content:"\f223"}.uk-icon-transgender:before{content:"\f224"}.uk-icon-transgender-alt:before{content:"\f225"}.uk-icon-venus-double:before{content:"\f226"}.uk-icon-mars-double:before{content:"\f227"}.uk-icon-venus-mars:before{content:"\f228"}.uk-icon-mars-stroke:before{content:"\f229"}.uk-icon-mars-stroke-v:before{content:"\f22a"}.uk-icon-mars-stroke-h:before{content:"\f22b"}.uk-icon-neuter:before{content:"\f22c"}.uk-icon-facebook-official:before{content:"\f230"}.uk-icon-pinterest-p:before{content:"\f231"}.uk-icon-whatsapp:before{content:"\f232"}.uk-icon-server:before{content:"\f233"}.uk-icon-user-plus:before{content:"\f234"}.uk-icon-user-times:before{content:"\f235"}.uk-icon-bed:before,.uk-icon-hotel:before{content:"\f236"}.uk-icon-viacoin:before{content:"\f237"}.uk-icon-train:before{content:"\f238"}.uk-icon-subway:before{content:"\f239"}.uk-icon-medium-logo:before{content:"\f23a"}.uk-close::-moz-focus-inner{border:0;padding:0}.uk-close{-webkit-appearance:none;margin:0;border:none;overflow:visible;font:inherit;color:inherit;text-transform:none;padding:0;background:0 0;display:inline-block;-moz-box-sizing:content-box;box-sizing:content-box;width:20px;line-height:20px;text-align:center;vertical-align:middle;opacity:.3}.uk-close:after{display:block;content:"\f00d";font-family:FontAwesome}.uk-close:focus,.uk-close:hover{opacity:.5;outline:0;color:inherit;text-decoration:none;cursor:pointer}.uk-close-alt{padding:2px;border-radius:50%;background:#fff;opacity:1;box-shadow:0 0 0 1px rgba(0,0,0,.1),0 0 6px rgba(0,0,0,.3)}.uk-close-alt:focus,.uk-close-alt:hover{opacity:1}.uk-close-alt:after{opacity:.5}.uk-close-alt:focus:after,.uk-close-alt:hover:after{opacity:.8}.uk-badge{display:inline-block;padding:0 5px;background:#00a8e6;font-size:10px;font-weight:700;line-height:14px;color:#fff;text-align:center;vertical-align:middle;text-transform:none;border:1px solid rgba(0,0,0,.06);border-radius:2px;text-shadow:0 1px 0 rgba(0,0,0,.1)}a.uk-badge:hover{color:#fff}.uk-badge-notification{-moz-box-sizing:border-box;box-sizing:border-box;min-width:18px;border-radius:500px;font-size:12px;line-height:18px}.uk-badge-success{background-color:#8cc14c}.uk-badge-warning{background-color:#faa732}.uk-badge-danger{background-color:#da314b}.uk-alert{margin-bottom:15px;padding:10px;background:#ebf7fd;color:#2d7091;border:1px solid rgba(45,112,145,.3);border-radius:4px;text-shadow:0 1px 0 #fff}*+.uk-alert{margin-top:15px}.uk-alert>:last-child{margin-bottom:0}.uk-alert h1,.uk-alert h2,.uk-alert h3,.uk-alert h4,.uk-alert h5,.uk-alert h6{color:inherit}.uk-alert>.uk-close:first-child{float:right}.uk-alert>.uk-close:first-child+*{margin-top:0}.uk-alert-success{background:#f2fae3;color:#659f13;border-color:rgba(101,159,19,.3)}.uk-alert-warning{background:#fffceb;color:#e28327;border-color:rgba(226,131,39,.3)}.uk-alert-danger{background:#fff1f0;color:#d85030;border-color:rgba(216,80,48,.3)}.uk-alert-large{padding:20px}.uk-alert-large>.uk-close:first-child{margin:-10px -10px 0 0}.uk-thumbnail{display:inline-block;max-width:100%;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:4px;border:1px solid #ddd;background:#fff;border-radius:4px}a.uk-thumbnail:focus,a.uk-thumbnail:hover{border-color:#aaa;background-color:#fff;text-decoration:none;outline:0}.uk-thumbnail-caption{padding-top:4px;text-align:center;color:#444}.uk-thumbnail-mini{width:150px}.uk-thumbnail-small{width:200px}.uk-thumbnail-medium{width:300px}.uk-thumbnail-large{width:400px}.uk-thumbnail-expand,.uk-thumbnail-expand>img{width:100%}.uk-overlay{display:inline-block;position:relative;max-width:100%;vertical-align:middle;overflow:hidden;-webkit-transform:translateZ(0);margin:0}.uk-overlay.uk-border-circle{-webkit-mask-image:-webkit-radial-gradient(circle,#fff 100%,#000 100%)}.uk-overlay>:first-child{margin-bottom:0}.uk-overlay-panel{position:absolute;top:0;bottom:0;left:0;right:0;padding:20px;color:#fff}.uk-overlay-panel.uk-flex>*>:last-child,.uk-overlay-panel>:last-child{margin-bottom:0}.uk-overlay-panel h1,.uk-overlay-panel h2,.uk-overlay-panel h3,.uk-overlay-panel h4,.uk-overlay-panel h5,.uk-overlay-panel h6{color:inherit}.uk-overlay-panel a:not([class]){color:inherit;text-decoration:underline}.uk-overlay-panel a[class*=uk-icon-]:not(.uk-icon-button){color:inherit}.uk-overlay-hover:not(:hover):not(.uk-hover) .uk-overlay-panel:not(.uk-ignore){opacity:0}.uk-overlay-active :not(.uk-active)>.uk-overlay-panel:not(.uk-ignore){opacity:0}.uk-overlay-background{background:rgba(0,0,0,.5)}.uk-overlay-image{padding:0}.uk-overlay-top{bottom:auto}.uk-overlay-bottom{top:auto}.uk-overlay-left{right:auto}.uk-overlay-right{left:auto}.uk-overlay-icon:before{content:"\f002";position:absolute;top:50%;left:50%;width:50px;height:50px;margin-top:-25px;margin-left:-25px;font-size:50px;line-height:1;font-family:FontAwesome;text-align:center;color:#fff}.uk-overlay-blur,.uk-overlay-fade,.uk-overlay-grayscale,.uk-overlay-scale,.uk-overlay-spin,[class*=uk-overlay-slide]{transition-duration:.3s;transition-timing-function:ease-out;transition-property:opacity transform filter}.uk-overlay-active .uk-overlay-fade,.uk-overlay-active .uk-overlay-scale,.uk-overlay-active .uk-overlay-spin,.uk-overlay-active [class*=uk-overlay-slide]{transition-duration:.8s}.uk-overlay-fade{opacity:.7}.uk-overlay-active .uk-active>.uk-overlay-fade,.uk-overlay-hover:hover .uk-overlay-fade{opacity:1}.uk-overlay-scale{-webkit-transform:scale(1);transform:scale(1)}.uk-overlay-active .uk-active>.uk-overlay-scale,.uk-overlay-hover:hover .uk-overlay-scale{-webkit-transform:scale(1.1);transform:scale(1.1)}.uk-overlay-spin{-webkit-transform:scale(1)rotate(0);transform:scale(1)rotate(0)}.uk-overlay-active .uk-active>.uk-overlay-spin,.uk-overlay-hover:hover .uk-overlay-spin{-webkit-transform:scale(1.1)rotate(3deg);transform:scale(1.1)rotate(3deg)}.uk-overlay-grayscale{-webkit-filter:grayscale(100%);filter:grayscale(100%)}.uk-overlay-active .uk-active>.uk-overlay-grayscale,.uk-overlay-hover:hover .uk-overlay-grayscale{-webkit-filter:grayscale(0);filter:grayscale(0)}[class*=uk-overlay-slide]{opacity:0}.uk-overlay-slide-top{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.uk-overlay-slide-bottom{-webkit-transform:translateY(100%);transform:translateY(100%)}.uk-overlay-slide-left{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.uk-overlay-slide-right{-webkit-transform:translateX(100%);transform:translateX(100%)}.uk-overlay-active .uk-active>[class*=uk-overlay-slide],.uk-overlay-hover:hover [class*=uk-overlay-slide]{opacity:1;-webkit-transform:translateX(0)translateY(0);transform:translateX(0)translateY(0)}.uk-overlay-area{position:absolute;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,.3);opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear;-webkit-transform:translate3d(0,0,0)}.uk-overlay-toggle.uk-hover .uk-overlay-area,.uk-overlay-toggle:hover .uk-overlay-area,.uk-overlay.uk-hover .uk-overlay-area,.uk-overlay:hover .uk-overlay-area{opacity:1}.uk-overlay-area:empty:before{content:"\f002";position:absolute;top:50%;left:50%;width:50px;height:50px;margin-top:-25px;margin-left:-25px;font-size:50px;line-height:1;font-family:FontAwesome;text-align:center;color:#fff}.uk-overlay-area:not(:empty){font-size:0}.uk-overlay-area:not(:empty):before{content:'';display:inline-block;height:100%;vertical-align:middle}.uk-overlay-area-content{display:inline-block;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;vertical-align:middle;font-size:1rem;text-align:center;padding:0 15px;color:#fff}.uk-overlay-area-content>:last-child{margin-bottom:0}.uk-overlay-area-content a:not([class]),.uk-overlay-area-content a:not([class]):hover{color:inherit}.uk-overlay-caption{position:absolute;bottom:0;left:0;right:0;padding:15px;background:rgba(0,0,0,.5);color:#fff;opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear;-webkit-transform:translate3d(0,0,0)}.uk-overlay-toggle.uk-hover .uk-overlay-caption,.uk-overlay-toggle:hover .uk-overlay-caption,.uk-overlay.uk-hover .uk-overlay-caption,.uk-overlay:hover .uk-overlay-caption{opacity:1}[class*=uk-animation-]{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}@media screen{[data-uk-scrollspy*=uk-animation-]:not([data-uk-scrollspy*=target]){opacity:0}}.uk-animation-fade{-webkit-animation-name:uk-fade;animation-name:uk-fade;-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-timing-function:linear!important;animation-timing-function:linear!important}.uk-animation-scale-up{-webkit-animation-name:uk-fade-scale-02;animation-name:uk-fade-scale-02}.uk-animation-scale-down{-webkit-animation-name:uk-fade-scale-18;animation-name:uk-fade-scale-18}.uk-animation-slide-top{-webkit-animation-name:uk-fade-top;animation-name:uk-fade-top}.uk-animation-slide-bottom{-webkit-animation-name:uk-fade-bottom;animation-name:uk-fade-bottom}.uk-animation-slide-left{-webkit-animation-name:uk-fade-left;animation-name:uk-fade-left}.uk-animation-slide-right{-webkit-animation-name:uk-fade-right;animation-name:uk-fade-right}.uk-animation-scale{-webkit-animation-name:uk-scale-12;animation-name:uk-scale-12}.uk-animation-shake{-webkit-animation-name:uk-shake;animation-name:uk-shake}.uk-animation-reverse{-webkit-animation-direction:reverse;animation-direction:reverse;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}.uk-animation-15{-webkit-animation-duration:15s;animation-duration:15s}.uk-animation-top-left{-webkit-transform-origin:0 0;transform-origin:0 0}.uk-animation-top-center{-webkit-transform-origin:50% 0;transform-origin:50% 0}.uk-animation-top-right{-webkit-transform-origin:100% 0;transform-origin:100% 0}.uk-animation-middle-left{-webkit-transform-origin:0 50%;transform-origin:0 50%}.uk-animation-middle-right{-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.uk-animation-bottom-left{-webkit-transform-origin:0 100%;transform-origin:0 100%}.uk-animation-bottom-center{-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.uk-animation-bottom-right{-webkit-transform-origin:100% 100%;transform-origin:100% 100%}.uk-animation-hover:not(:hover),.uk-animation-hover:not(:hover) [class*=uk-animation-],.uk-touch .uk-animation-hover:not(.uk-hover),.uk-touch .uk-animation-hover:not(.uk-hover) [class*=uk-animation-]{-webkit-animation-name:none;animation-name:none}@-webkit-keyframes uk-fade{0%{opacity:0}100%{opacity:1}}@keyframes uk-fade{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes uk-fade-top{0%{opacity:0;-webkit-transform:translateY(-100%)}100%{opacity:1;-webkit-transform:translateY(0)}}@keyframes uk-fade-top{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@-webkit-keyframes uk-fade-bottom{0%{opacity:0;-webkit-transform:translateY(100%)}100%{opacity:1;-webkit-transform:translateY(0)}}@keyframes uk-fade-bottom{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@-webkit-keyframes uk-fade-left{0%{opacity:0;-webkit-transform:translateX(-100%)}100%{opacity:1;-webkit-transform:translateX(0)}}@keyframes uk-fade-left{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@-webkit-keyframes uk-fade-right{0%{opacity:0;-webkit-transform:translateX(100%)}100%{opacity:1;-webkit-transform:translateX(0)}}@keyframes uk-fade-right{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@-webkit-keyframes uk-fade-scale-02{0%{opacity:0;-webkit-transform:scale(.2)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes uk-fade-scale-02{0%{opacity:0;transform:scale(.2)}100%{opacity:1;transform:scale(1)}}@-webkit-keyframes uk-fade-scale-15{0%{opacity:0;-webkit-transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes uk-fade-scale-15{0%{opacity:0;transform:scale(1.5)}100%{opacity:1;transform:scale(1)}}@-webkit-keyframes uk-fade-scale-18{0%{opacity:0;-webkit-transform:scale(1.8)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes uk-fade-scale-18{0%{opacity:0;transform:scale(1.8)}100%{opacity:1;transform:scale(1)}}@-webkit-keyframes uk-slide-left{0%{-webkit-transform:translateX(-100%)}100%{-webkit-transform:translateX(0)}}@keyframes uk-slide-left{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@-webkit-keyframes uk-slide-right{0%{-webkit-transform:translateX(100%)}100%{-webkit-transform:translateX(0)}}@keyframes uk-slide-right{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@-webkit-keyframes uk-slide-left-33{0%{-webkit-transform:translateX(33%)}100%{-webkit-transform:translateX(0)}}@keyframes uk-slide-left-33{0%{transform:translateX(33%)}100%{transform:translateX(0)}}@-webkit-keyframes uk-slide-right-33{0%{-webkit-transform:translateX(-33%)}100%{-webkit-transform:translateX(0)}}@keyframes uk-slide-right-33{0%{transform:translateX(-33%)}100%{transform:translateX(0)}}@-webkit-keyframes uk-scale-12{0%{-webkit-transform:scale(1.2)}100%{-webkit-transform:scale(1)}}@keyframes uk-scale-12{0%{transform:scale(1.2)}100%{transform:scale(1)}}@-webkit-keyframes uk-rotate{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(359deg)}}@keyframes uk-rotate{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}@-webkit-keyframes uk-shake{0%,100%{-webkit-transform:translateX(0)}10%{-webkit-transform:translateX(-9px)}20%{-webkit-transform:translateX(8px)}30%{-webkit-transform:translateX(-7px)}40%{-webkit-transform:translateX(6px)}50%{-webkit-transform:translateX(-5px)}60%{-webkit-transform:translateX(4px)}70%{-webkit-transform:translateX(-3px)}80%{-webkit-transform:translateX(2px)}90%{-webkit-transform:translateX(-1px)}}@keyframes uk-shake{0%,100%{transform:translateX(0)}10%{transform:translateX(-9px)}20%{transform:translateX(8px)}30%{transform:translateX(-7px)}40%{transform:translateX(6px)}50%{transform:translateX(-5px)}60%{transform:translateX(4px)}70%{transform:translateX(-3px)}80%{transform:translateX(2px)}90%{transform:translateX(-1px)}}@-webkit-keyframes uk-slide-top-fixed{0%{opacity:0;-webkit-transform:translateY(-10px)}100%{opacity:1;-webkit-transform:translateY(0)}}@keyframes uk-slide-top-fixed{0%{opacity:0;transform:translateY(-10px)}100%{opacity:1;transform:translateY(0)}}@-webkit-keyframes uk-slide-bottom-fixed{0%{opacity:0;-webkit-transform:translateY(10px)}100%{opacity:1;-webkit-transform:translateY(0)}}@keyframes uk-slide-bottom-fixed{0%{opacity:0;transform:translateY(10px)}100%{opacity:1;transform:translateY(0)}}.uk-dropdown{display:none;position:absolute;top:100%;left:0;z-index:1020;-moz-box-sizing:border-box;box-sizing:border-box;width:200px;margin-top:5px;padding:15px;background:#fff;color:#444;font-size:1rem;vertical-align:top;border:1px solid #ddd;border-radius:4px}.uk-open>.uk-dropdown{display:block;-webkit-animation:uk-fade .2s ease-in-out;animation:uk-fade .2s ease-in-out;-webkit-transform-origin:0 0;transform-origin:0 0}.uk-dropdown-flip{left:auto;right:0}.uk-dropdown-up{top:auto;bottom:100%;margin-top:auto;margin-bottom:5px}.uk-dropdown .uk-nav{margin:0 -15px}.uk-grid .uk-dropdown-grid+.uk-dropdown-grid{margin-top:15px}.uk-dropdown-grid>[class*=uk-width-]>.uk-panel+.uk-panel{margin-top:15px}@media (min-width:768px){.uk-dropdown:not(.uk-dropdown-stack)>.uk-dropdown-grid{margin-left:-15px;margin-right:-15px}.uk-dropdown:not(.uk-dropdown-stack)>.uk-dropdown-grid>[class*=uk-width-]{padding-left:15px;padding-right:15px}.uk-dropdown:not(.uk-dropdown-stack)>.uk-dropdown-grid>[class*=uk-width-]:nth-child(n+2){border-left:1px solid #ddd}.uk-dropdown-width-2:not(.uk-dropdown-stack){width:400px}.uk-dropdown-width-3:not(.uk-dropdown-stack){width:600px}.uk-dropdown-width-4:not(.uk-dropdown-stack){width:800px}.uk-dropdown-width-5:not(.uk-dropdown-stack){width:1000px}}@media (max-width:767px){.uk-dropdown-grid>[class*=uk-width-]{width:100%}.uk-dropdown-grid>[class*=uk-width-]:nth-child(n+2){margin-top:15px}}.uk-dropdown-stack>.uk-dropdown-grid>[class*=uk-width-]{width:100%}.uk-dropdown-stack>.uk-dropdown-grid>[class*=uk-width-]:nth-child(n+2){margin-top:15px}.uk-dropdown-small{min-width:150px;width:auto;padding:5px;white-space:nowrap}.uk-dropdown-small .uk-nav{margin:0 -5px}.uk-dropdown-navbar{margin-top:6px;background:#fff;color:#444;left:-1px}.uk-open>.uk-dropdown-navbar{-webkit-animation:uk-slide-top-fixed .2s ease-in-out;animation:uk-slide-top-fixed .2s ease-in-out}.uk-dropdown-scrollable{overflow-y:auto;max-height:200px}.uk-dropdown-navbar.uk-dropdown-flip{left:auto}.uk-modal{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1010;overflow-y:auto;-webkit-overflow-scrolling:touch;background:rgba(0,0,0,.6);opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear;touch-action:cross-slide-y pinch-zoom double-tap-zoom;-webkit-transform:translateZ(0);transform:translateZ(0)}.uk-modal.uk-open{opacity:1}.uk-modal-page,.uk-modal-page body{overflow:hidden}.uk-modal-dialog{position:relative;-moz-box-sizing:border-box;box-sizing:border-box;margin:50px auto;padding:20px;width:600px;max-width:100%;max-width:calc(100% - 20px);background:#fff;opacity:0;-webkit-transform:translateY(-100px);transform:translateY(-100px);-webkit-transition:opacity .3s linear,-webkit-transform .3s ease-out;transition:opacity .3s linear,transform .3s ease-out;border-radius:4px;box-shadow:0 0 10px rgba(0,0,0,.3)}@media (max-width:767px){.uk-modal-dialog{width:auto;margin:10px auto}}.uk-open .uk-modal-dialog{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}.uk-modal-dialog>:not([class*=uk-modal-]):last-child{margin-bottom:0}.uk-modal-dialog>.uk-close:first-child{margin:-10px -10px 0 0;float:right}.uk-modal-dialog>.uk-close:first-child+:not([class*=uk-modal-]){margin-top:0}.uk-modal-dialog-lightbox{margin:15px auto;padding:0;max-width:95%;max-width:calc(100% - 30px);border-radius:0}.uk-modal-dialog-lightbox>.uk-close:first-child{position:absolute;top:-12px;right:-12px;margin:0;float:none}@media (max-width:767px){.uk-modal-dialog-lightbox>.uk-close:first-child{top:-7px;right:-7px}}@media (min-width:768px){.uk-modal-dialog-large{width:930px}}@media (min-width:1220px){.uk-modal-dialog-large{width:1130px}}.uk-modal-header{margin-bottom:15px;margin:-20px -20px 15px -20px;padding:20px;border-bottom:1px solid #ddd;border-radius:4px 4px 0 0;background:#fafafa}.uk-modal-footer{margin-top:15px;margin:15px -20px -20px -20px;padding:20px;border-top:1px solid #ddd;border-radius:0 0 4px 4px;background:#fafafa}.uk-modal-footer>:last-child,.uk-modal-header>:last-child{margin-bottom:0}.uk-modal-caption{position:absolute;left:0;right:0;bottom:-20px;margin-bottom:-10px;color:#fff;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uk-modal-spinner{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);font-size:25px;color:#ddd}.uk-modal-spinner:after{content:"\f110";font-family:FontAwesome;-webkit-animation:uk-rotate 2s infinite linear;animation:uk-rotate 2s infinite linear}.uk-offcanvas{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;touch-action:none;background:rgba(0,0,0,.1)}.uk-offcanvas.uk-active{display:block}.uk-offcanvas-page{position:fixed;-webkit-transition:margin-left .3s ease-in-out;transition:margin-left .3s ease-in-out}.uk-offcanvas-bar{position:fixed;top:0;bottom:0;left:0;-webkit-transform:translateX(-100%);transform:translateX(-100%);z-index:1001;width:270px;max-width:100%;background:#333;overflow-y:auto;-webkit-overflow-scrolling:touch;-webkit-transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;-ms-scroll-chaining:none}.uk-offcanvas.uk-active .uk-offcanvas-bar.uk-offcanvas-bar-show{-webkit-transform:translateX(0);transform:translateX(0)}.uk-offcanvas-bar-flip{left:auto;right:0;-webkit-transform:translateX(100%);transform:translateX(100%)}.uk-offcanvas .uk-panel{margin:20px 15px;color:#777;text-shadow:0 1px 0 rgba(0,0,0,.5)}.uk-offcanvas .uk-panel-title{color:#ccc}.uk-offcanvas .uk-panel a:not([class]){color:#ccc}.uk-offcanvas .uk-panel a:not([class]):hover{color:#fff}.uk-offcanvas-bar:after{content:"";display:block;position:absolute;top:0;bottom:0;right:0;width:1px;background:rgba(0,0,0,.6);box-shadow:0 0 5px 2px rgba(0,0,0,.6)}.uk-offcanvas-bar-flip:after{right:auto;left:0;width:1px;background:rgba(0,0,0,.6);box-shadow:0 0 5px 2px rgba(0,0,0,.6)}.uk-switcher{margin:0;padding:0;list-style:none;touch-action:cross-slide-y pinch-zoom double-tap-zoom}.uk-switcher>:not(.uk-active){display:none}.uk-text-small{font-size:11px;line-height:16px}.uk-text-large{font-size:18px;line-height:24px;font-weight:400}.uk-text-bold{font-weight:700}.uk-text-muted{color:#999!important}.uk-text-primary{color:#2d7091!important}.uk-text-success{color:#659f13!important}.uk-text-warning{color:#e28327!important}.uk-text-danger{color:#d85030!important}.uk-text-contrast{color:#fff!important}.uk-text-left{text-align:left!important}.uk-text-right{text-align:right!important}.uk-text-center{text-align:center!important}.uk-text-justify{text-align:justify!important}.uk-text-top{vertical-align:top!important}.uk-text-middle{vertical-align:middle!important}.uk-text-bottom{vertical-align:bottom!important}@media (max-width:959px){.uk-text-center-medium{text-align:center!important}.uk-text-left-medium{text-align:left!important}}@media (max-width:767px){.uk-text-center-small{text-align:center!important}.uk-text-left-small{text-align:left!important}}.uk-text-nowrap{white-space:nowrap}.uk-text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uk-text-break{word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;-moz-hyphens:auto;hyphens:auto}.uk-container{-moz-box-sizing:border-box;box-sizing:border-box;max-width:980px;padding:0 25px}@media (min-width:1220px){.uk-container{max-width:1200px;padding:0 35px}}.uk-container:after,.uk-container:before{content:"";display:table}.uk-container:after{clear:both}.uk-container-center{margin-left:auto;margin-right:auto}.uk-clearfix:before{content:"";display:table-cell}.uk-clearfix:after{content:"";display:table;clear:both}.uk-nbfc{overflow:hidden}.uk-nbfc-alt{display:table-cell;width:10000px}.uk-float-left{float:left}.uk-float-right{float:right}[class*=uk-float-]{max-width:100%}[class*=uk-align-]{display:block;margin-bottom:15px}.uk-align-left{margin-right:15px;float:left}.uk-align-right{margin-left:15px;float:right}@media (min-width:768px){.uk-align-medium-left{margin-right:15px;margin-bottom:15px;float:left}.uk-align-medium-right{margin-left:15px;margin-bottom:15px;float:right}}.uk-align-center{margin-left:auto;margin-right:auto}.uk-vertical-align{font-size:0}.uk-vertical-align:before{content:'';display:inline-block;height:100%;vertical-align:middle}.uk-vertical-align-bottom,.uk-vertical-align-middle{display:inline-block;max-width:100%;font-size:1rem}.uk-vertical-align-middle{vertical-align:middle}.uk-vertical-align-bottom{vertical-align:bottom}[class*=uk-height]{-moz-box-sizing:border-box;box-sizing:border-box}.uk-height-1-1{height:100%}.uk-height-viewport{height:100vh;min-height:600px}.uk-responsive-height,.uk-responsive-width{-moz-box-sizing:border-box;box-sizing:border-box}.uk-responsive-width{max-width:100%!important;height:auto}.uk-responsive-height{max-height:100%;width:auto}.uk-margin{margin-bottom:15px}*+.uk-margin{margin-top:15px}.uk-margin-top{margin-top:15px!important}.uk-margin-bottom{margin-bottom:15px!important}.uk-margin-left{margin-left:15px!important}.uk-margin-right{margin-right:15px!important}.uk-margin-large{margin-bottom:50px}*+.uk-margin-large{margin-top:50px}.uk-margin-large-top{margin-top:50px!important}.uk-margin-large-bottom{margin-bottom:50px!important}.uk-margin-large-left{margin-left:50px!important}.uk-margin-large-right{margin-right:50px!important}.uk-margin-small{margin-bottom:5px}*+.uk-margin-small{margin-top:5px}.uk-margin-small-top{margin-top:5px!important}.uk-margin-small-bottom{margin-bottom:5px!important}.uk-margin-small-left{margin-left:5px!important}.uk-margin-small-right{margin-right:5px!important}.uk-margin-remove{margin:0!important}.uk-margin-top-remove{margin-top:0!important}.uk-margin-bottom-remove{margin-bottom:0!important}.uk-padding-remove{padding:0!important}.uk-padding-top-remove{padding-top:0!important}.uk-padding-bottom-remove{padding-bottom:0!important}.uk-padding-vertical-remove{padding-top:0!important;padding-bottom:0!important}.uk-border-circle{border-radius:50%}.uk-border-rounded{border-radius:5px}.uk-heading-large{font-size:36px;line-height:42px}@media (min-width:768px){.uk-heading-large{font-size:52px;line-height:64px}}.uk-link-muted,.uk-link-muted a{color:#444}.uk-link-muted a:hover,.uk-link-muted:hover{color:#444}.uk-link-reset,.uk-link-reset a,.uk-link-reset a:focus,.uk-link-reset a:hover,.uk-link-reset:focus,.uk-link-reset:hover{color:inherit;text-decoration:none}.uk-scrollable-text{height:300px;overflow-y:scroll;-webkit-overflow-scrolling:touch;resize:both}.uk-scrollable-box{-moz-box-sizing:border-box;box-sizing:border-box;height:170px;padding:10px;border:1px solid #ddd;overflow:auto;-webkit-overflow-scrolling:touch;resize:both;border-radius:3px}.uk-scrollable-box>:last-child{margin-bottom:0}.uk-overflow-hidden{overflow:hidden}.uk-overflow-container{overflow:auto;-webkit-overflow-scrolling:touch}.uk-overflow-container>:last-child{margin-bottom:0}.uk-position-absolute,[class*=uk-position-top],[class*=uk-position-bottom]{position:absolute!important}.uk-position-top{top:0;width:100%}.uk-position-bottom{bottom:0;width:100%}.uk-position-top-left{top:0;left:0}.uk-position-top-right{top:0;right:0}.uk-position-bottom-left{bottom:0;left:0}.uk-position-bottom-right{bottom:0;right:0}.uk-position-cover{position:absolute;top:0;bottom:0;left:0;right:0}.uk-position-relative{position:relative!important}.uk-position-z-index{z-index:1}.uk-display-block{display:block!important}.uk-display-inline{display:inline!important}.uk-display-inline-block{display:inline-block!important}@media (min-width:960px){.uk-visible-small{display:none!important}.uk-visible-medium{display:none!important}.uk-hidden-large{display:none!important}}@media (min-width:768px)and (max-width:959px){.uk-visible-small{display:none!important}.uk-visible-large{display:none!important}.uk-hidden-medium{display:none!important}}@media (max-width:767px){.uk-visible-medium{display:none!important}.uk-visible-large{display:none!important}.uk-hidden-small{display:none!important}}.uk-hidden{display:none!important;visibility:hidden!important}.uk-invisible{visibility:hidden!important}.uk-visible-hover:hover .uk-hidden,.uk-visible-hover:hover .uk-invisible{display:block!important;visibility:visible!important}.uk-visible-hover-inline:hover .uk-hidden,.uk-visible-hover-inline:hover .uk-invisible{display:inline-block!important;visibility:visible!important}.uk-notouch .uk-hidden-notouch,.uk-touch .uk-hidden-touch{display:none!important}.uk-flex{display:-ms-flexbox;display:-webkit-flex;display:flex}.uk-flex-inline{display:-ms-inline-flexbox;display:-webkit-inline-flex;display:inline-flex}.uk-flex-inline>*,.uk-flex>*{-ms-flex-negative:1}.uk-flex-top{-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start}.uk-flex-middle{-ms-flex-align:center;-webkit-align-items:center;align-items:center}.uk-flex-bottom{-ms-flex-align:end;-webkit-align-items:flex-end;align-items:flex-end}.uk-flex-center{-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}.uk-flex-right{-ms-flex-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.uk-flex-space-between{-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.uk-flex-space-around{-ms-flex-pack:distribute;-webkit-justify-content:space-around;justify-content:space-around}.uk-flex-row-reverse{-ms-flex-direction:row-reverse;-webkit-flex-direction:row-reverse;flex-direction:row-reverse}.uk-flex-column{-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.uk-flex-column-reverse{-ms-flex-direction:column-reverse;-webkit-flex-direction:column-reverse;flex-direction:column-reverse}.uk-flex-nowrap{-ms-flex-wrap:nowrap;-webkit-flex-wrap:nowrap;flex-wrap:nowrap}.uk-flex-wrap{-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap}.uk-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;-webkit-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.uk-flex-wrap-top{-ms-flex-line-pack:start;-webkit-align-content:flex-start;align-content:flex-start}.uk-flex-wrap-middle{-ms-flex-line-pack:center;-webkit-align-content:center;align-content:center}.uk-flex-wrap-bottom{-ms-flex-line-pack:end;-webkit-align-content:flex-end;align-content:flex-end}.uk-flex-wrap-space-between{-ms-flex-line-pack:justify;-webkit-align-content:space-between;align-content:space-between}.uk-flex-wrap-space-around{-ms-flex-line-pack:distribute;-webkit-align-content:space-around;align-content:space-around}.uk-flex-order-first{-ms-flex-order:-1;-webkit-order:-1;order:-1}.uk-flex-order-last{-ms-flex-order:99;-webkit-order:99;order:99}@media (min-width:480px){.uk-flex-order-first-small{-ms-flex-order:-1;-webkit-order:-1;order:-1}.uk-flex-order-last-small{-ms-flex-order:99;-webkit-order:99;order:99}}@media (min-width:768px){.uk-flex-order-first-medium{-ms-flex-order:-1;-webkit-order:-1;order:-1}.uk-flex-order-last-medium{-ms-flex-order:99;-webkit-order:99;order:99}}@media (min-width:960px){.uk-flex-order-first-large{-ms-flex-order:-1;-webkit-order:-1;order:-1}.uk-flex-order-last-large{-ms-flex-order:99;-webkit-order:99;order:99}}@media (min-width:1220px){.uk-flex-order-first-xlarge{-ms-flex-order:-1;-webkit-order:-1;order:-1}.uk-flex-order-last-xlarge{-ms-flex-order:99;-webkit-order:99;order:99}}.uk-flex-item-none{-ms-flex:none;-webkit-flex:none;flex:none}.uk-flex-item-auto{-ms-flex:auto;-webkit-flex:auto;flex:auto;-ms-flex-negative:1}.uk-flex-item-1{-ms-flex:1;-webkit-flex:1;flex:1}.uk-contrast{color:#fff}.uk-contrast .uk-link,.uk-contrast a:not([class]){color:rgba(255,255,255,.7);text-decoration:none}.uk-contrast .uk-link:hover,.uk-contrast a:not([class]):hover{color:#fff;text-decoration:underline}.uk-contrast :not(pre)>code,.uk-contrast :not(pre)>kbd,.uk-contrast :not(pre)>samp{color:#fff;border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.1)}.uk-contrast em{color:#fff}.uk-contrast h1,.uk-contrast h2,.uk-contrast h3,.uk-contrast h4,.uk-contrast h5,.uk-contrast h6{color:#fff}.uk-contrast hr{border-top-color:rgba(255,255,255,.2)}.uk-contrast .uk-nav li>a,.uk-contrast .uk-nav li>a:hover{text-decoration:none}.uk-contrast .uk-nav-side>li>a{color:#fff}.uk-contrast .uk-nav-side>li>a:focus,.uk-contrast .uk-nav-side>li>a:hover{background:rgba(255,255,255,.1);color:#fff;text-shadow:none}.uk-contrast .uk-nav-side>li.uk-active>a{background:#fff;color:#444;text-shadow:none}.uk-contrast .uk-nav-side .uk-nav-header{color:#fff}.uk-contrast .uk-nav-side .uk-nav-divider{border-top-color:rgba(255,255,255,.2)}.uk-contrast .uk-nav-side ul a{color:rgba(255,255,255,.7)}.uk-contrast .uk-nav-side ul a:hover{color:#fff}.uk-contrast .uk-subnav>*>a{color:rgba(255,255,255,.7);text-decoration:none}.uk-contrast .uk-subnav>*>a:focus,.uk-contrast .uk-subnav>*>a:hover{color:#fff;text-decoration:none}.uk-contrast .uk-subnav>.uk-active>a{color:#fff}.uk-contrast .uk-subnav-line>:nth-child(n+2):before{border-left-color:rgba(255,255,255,.2)}.uk-contrast .uk-subnav-pill>*>a:focus,.uk-contrast .uk-subnav-pill>*>a:hover{background:rgba(255,255,255,.7);color:#444;text-decoration:none}.uk-contrast .uk-subnav-pill>.uk-active>a{background:#fff;color:#444}.uk-contrast .uk-list-line>li:nth-child(n+2){border-top-color:rgba(255,255,255,.2)}.uk-contrast .uk-form input:not([type]),.uk-contrast .uk-form input[type=text],.uk-contrast .uk-form input[type=password],.uk-contrast .uk-form input[type=email],.uk-contrast .uk-form input[type=url],.uk-contrast .uk-form input[type=search],.uk-contrast .uk-form input[type=tel],.uk-contrast .uk-form input[type=number],.uk-contrast .uk-form input[type=datetime],.uk-contrast .uk-form input[type=datetime-local],.uk-contrast .uk-form input[type=date],.uk-contrast .uk-form input[type=month],.uk-contrast .uk-form input[type=time],.uk-contrast .uk-form input[type=week],.uk-contrast .uk-form input[type=color],.uk-contrast .uk-form select,.uk-contrast .uk-form textarea{border-color:rgba(255,255,255,.8);background:rgba(255,255,255,.8);color:#444;background-clip:padding-box}.uk-contrast .uk-form input:not([type]):focus,.uk-contrast .uk-form input[type=text]:focus,.uk-contrast .uk-form input[type=password]:focus,.uk-contrast .uk-form input[type=email]:focus,.uk-contrast .uk-form input[type=url]:focus,.uk-contrast .uk-form input[type=search]:focus,.uk-contrast .uk-form input[type=tel]:focus,.uk-contrast .uk-form input[type=number]:focus,.uk-contrast .uk-form input[type=datetime]:focus,.uk-contrast .uk-form input[type=datetime-local]:focus,.uk-contrast .uk-form input[type=date]:focus,.uk-contrast .uk-form input[type=month]:focus,.uk-contrast .uk-form input[type=time]:focus,.uk-contrast .uk-form input[type=week]:focus,.uk-contrast .uk-form input[type=color]:focus,.uk-contrast .uk-form select:focus,.uk-contrast .uk-form textarea:focus{border-color:#fff;background:#fff;color:#444}.uk-contrast .uk-form :-ms-input-placeholder{color:rgba(68,68,68,.7)!important}.uk-contrast .uk-form ::-moz-placeholder{color:rgba(68,68,68,.7)}.uk-contrast .uk-form ::-webkit-input-placeholder{color:rgba(68,68,68,.7)}.uk-contrast .uk-button{color:#444;background:#fff;border-color:transparent}.uk-contrast .uk-button:focus,.uk-contrast .uk-button:hover{background-color:rgba(255,255,255,.8);color:#444;border-color:transparent}.uk-contrast .uk-button.uk-active,.uk-contrast .uk-button:active{background-color:rgba(255,255,255,.7);color:#444}.uk-contrast .uk-button-primary{background-color:#00a8e6;color:#fff}.uk-contrast .uk-button-primary:focus,.uk-contrast .uk-button-primary:hover{background-color:#35b3ee;color:#fff}.uk-contrast .uk-button-primary.uk-active,.uk-contrast .uk-button-primary:active{background-color:#0091ca;color:#fff}.uk-contrast .uk-icon-hover{color:rgba(255,255,255,.7)}.uk-contrast .uk-icon-hover:hover{color:#fff}.uk-contrast .uk-icon-button{background:#fff;color:#444;border-color:transparent}.uk-contrast .uk-icon-button:focus,.uk-contrast .uk-icon-button:hover{background-color:rgba(255,255,255,.8);color:#444;border-color:transparent}.uk-contrast .uk-icon-button:active{background-color:rgba(255,255,255,.7);color:#444}.uk-contrast .uk-text-muted{color:rgba(255,255,255,.6)!important}.uk-contrast .uk-text-primary{color:#2d7091!important}@media print{*{background:0 0!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}} \ No newline at end of file diff --git a/media/uikit/css/uikit.css b/media/uikit/css/uikit.css new file mode 100644 index 00000000..a9637cec --- /dev/null +++ b/media/uikit/css/uikit.css @@ -0,0 +1,8057 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Base + ========================================================================== */ +/* + * 1. Normalizes default `font-family` and sets `font-size` here to support `rem` units + * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom + * 3. Style + */ +html { + /* 1 */ + font: normal 14px / 20px "Helvetica Neue", Helvetica, Arial, sans-serif; + /* 2 */ + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + /* 3 */ + background: #ffffff; + color: #444444; +} +/* + * Removes default margin. + */ +body { + margin: 0; +} +/* Links + ========================================================================== */ +/* + * Remove the gray background color from active links in IE 10. + */ +a { + background: transparent; +} +/* + * Improves readability when focused and also mouse hovered in all browsers. + */ +a:active, +a:hover { + outline: 0; +} +/* + * Style + */ +a, +.uk-link { + color: #0077dd; + text-decoration: none; + cursor: pointer; +} +a:hover, +.uk-link:hover { + color: #005599; + text-decoration: underline; +} +/* Text-level semantics + ========================================================================== */ +/* + * Addresses styling not present in Chrome, Safari, Opera and IE 8/9/10. + */ +abbr[title] { + border-bottom: 1px dotted; +} +/* + * Addresses style set to `bolder` in Firefox + */ +b, +strong { + font-weight: bold; +} +/* + * 1. Address odd `em`-unit font size rendering in all browsers. + * 2. Consolas has a better baseline in running text compared to `Courier` + */ +:not(pre) > code, +:not(pre) > kbd, +:not(pre) > samp { + /* 1 */ + font-size: 12px; + /* 2 */ + font-family: Consolas, monospace, serif; + /* 3 */ + color: #dd0055; + white-space: nowrap; +} +/* + * Emphasize + */ +em { + color: #dd0055; +} +/* + * Insert + */ +ins { + background: #ffffaa; + color: #444444; + text-decoration: none; +} +/* + * Mark + * Note: Addresses styling not present in IE 8/9. + */ +mark { + background: #ffffaa; + color: #444444; +} +/* + * Quote + */ +q { + font-style: italic; +} +/* + * Addresses inconsistent and variable font size in all browsers. + */ +small { + font-size: 80%; +} +/* + * Prevents `sub` and `sup` affecting `line-height` in all browsers. + */ +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} +sup { + top: -0.5em; +} +sub { + bottom: -0.25em; +} +/* Images + ========================================================================== */ +/* + * 1. Responsiveness: Sets a maximum width relative to the parent and auto scales the height + * 2. Corrects `max-width` behavior if padding and border are used + * 3. Remove border when inside `a` element in IE 8/9/10. + * 4. Remove the gap between images and the bottom of their containers + */ +img { + /* 1 */ + max-width: 100%; + height: auto; + /* 2 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 3 */ + border: 0; + /* 4 */ + vertical-align: middle; +} +/* + * Preserve original image dimensions + */ +.uk-img-preserve, +.uk-img-preserve img { + max-width: none; +} +/* + * Correct overflow not hidden in IE 9/10/11. + */ +svg:not(:root) { + overflow: hidden; +} +/* Block elements + ========================================================================== */ +/* + * Reset margin + */ +blockquote, +figure { + margin: 0; +} +/* + * Margins + */ +p, +ul, +ol, +dl, +blockquote, +pre, +address, +fieldset, +figure { + margin: 0 0 15px 0; +} +* + p, +* + ul, +* + ol, +* + dl, +* + blockquote, +* + pre, +* + address, +* + fieldset, +* + figure { + margin-top: 15px; +} +/* Headings + ========================================================================== */ +h1, +h2, +h3, +h4, +h5, +h6 { + margin: 0 0 15px 0; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-weight: normal; + color: #444444; + text-transform: none; +} +/* + * Margins + */ +* + h1, +* + h2, +* + h3, +* + h4, +* + h5, +* + h6 { + margin-top: 25px; +} +/* + * Sizes + */ +h1, +.uk-h1 { + font-size: 36px; + line-height: 42px; +} +h2, +.uk-h2 { + font-size: 24px; + line-height: 30px; +} +h3, +.uk-h3 { + font-size: 18px; + line-height: 24px; +} +h4, +.uk-h4 { + font-size: 16px; + line-height: 22px; +} +h5, +.uk-h5 { + font-size: 14px; + line-height: 20px; +} +h6, +.uk-h6 { + font-size: 12px; + line-height: 18px; +} +/* Lists + ========================================================================== */ +ul, +ol { + padding-left: 30px; +} +/* + * Reset margin for nested lists + */ +ul > li > ul, +ul > li > ol, +ol > li > ol, +ol > li > ul { + margin: 0; +} +/* Description lists + ========================================================================== */ +dt { + font-weight: bold; +} +dd { + margin-left: 0; +} +/* Horizontal rules + ========================================================================== */ +/* + * 1. Address differences between Firefox and other browsers. + * 2. Style + */ +hr { + /* 1 */ + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; + /* 2 */ + margin: 15px 0; + border: 0; + border-top: 1px solid #dddddd; +} +/* Address + ========================================================================== */ +address { + font-style: normal; +} +/* Blockquotes + ========================================================================== */ +blockquote { + padding-left: 15px; + border-left: 5px solid #dddddd; + font-size: 16px; + line-height: 22px; + font-style: italic; +} +/* Preformatted text + ========================================================================== */ +/* + * 1. Contain overflow in all browsers. + */ +pre { + padding: 10px; + background: #f5f5f5; + font: 12px / 18px Consolas, monospace, serif; + color: #444444; + -moz-tab-size: 4; + tab-size: 4; + /* 1 */ + overflow: auto; +} +/* Selection pseudo-element + ========================================================================== */ +::-moz-selection { + background: #3399ff; + color: #ffffff; + text-shadow: none; +} +::selection { + background: #3399ff; + color: #ffffff; + text-shadow: none; +} +/* HTML5 elements + ========================================================================== */ +/* + * Corrects `block` display not defined in IE 8/9. + */ +article, +aside, +details, +figcaption, +figure, +footer, +header, +main, +nav, +section, +summary { + display: block; +} +/* + * Addresses inconsistent vertical alignment of `progress` in Chrome, Firefox and Opera. + */ +progress { + vertical-align: baseline; +} +/* + * Prevent displaying `audio` without controls in Chrome, Safari and Opera + */ +audio:not([controls]) { + display: none; +} +/* + * Address `[hidden]` styling not present in IE 8/9. + * Hide the `template` element in IE and Safari + */ +[hidden], +template { + display: none; +} +/* Iframe + ========================================================================== */ +iframe { + border: 0; +} +/* Fix viewport for IE10 snap mode + ========================================================================== */ +@media screen and (max-width: 400px) { + @-ms-viewport { + width: device-width; + } +} +/* ======================================================================== + Component: Grid + ========================================================================== */ +/* + * 1. Makes grid more robust so that it can be used with other block elements like lists + */ +.uk-grid { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + /* 1 */ + margin: 0; + padding: 0; + list-style: none; +} +/* + * DEPRECATED + * Micro clearfix + * Can't use `table` because it creates a 1px gap when it becomes a flex item, only in Webkit + */ +.uk-grid:before, +.uk-grid:after { + content: ""; + display: block; + overflow: hidden; +} +.uk-grid:after { + clear: both; +} +/* + * Grid cell + * 1. Space is allocated solely based on content dimensions + * 2. Makes grid more robust so that it can be used with other block elements + * 3. DEPRECATED Using `float` to support IE9 + */ +.uk-grid > * { + /* 1 */ + -ms-flex: none; + -webkit-flex: none; + flex: none; + /* 2 */ + margin: 0; + /* 3 */ + float: left; +} +/* + * Remove margin from the last-child + */ +.uk-grid > * > :last-child { + margin-bottom: 0; +} +/* Grid gutter + ========================================================================== */ +/* + * Default gutter + */ +/* Horizontal */ +.uk-grid { + margin-left: -25px; +} +.uk-grid > * { + padding-left: 25px; +} +/* Vertical */ +.uk-grid + .uk-grid, +.uk-grid-margin, +.uk-grid > * > .uk-panel + .uk-panel { + margin-top: 25px; +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + /* Horizontal */ + .uk-grid { + margin-left: -35px; + } + .uk-grid > * { + padding-left: 35px; + } + /* Vertical */ + .uk-grid + .uk-grid, + .uk-grid-margin, + .uk-grid > * > .uk-panel + .uk-panel { + margin-top: 35px; + } +} +/* + * Collapse gutter + */ +/* Horizontal */ +.uk-grid-collapse { + margin-left: 0; +} +.uk-grid-collapse > * { + padding-left: 0; +} +/* Vertical */ +.uk-grid-collapse + .uk-grid-collapse, +.uk-grid-collapse > .uk-grid-margin, +.uk-grid-collapse > * > .uk-panel + .uk-panel { + margin-top: 0; +} +/* + * Small gutter + */ +/* Horizontal */ +.uk-grid-small { + margin-left: -10px; +} +.uk-grid-small > * { + padding-left: 10px; +} +/* Vertical */ +.uk-grid-small + .uk-grid-small, +.uk-grid-small > .uk-grid-margin, +.uk-grid-small > * > .uk-panel + .uk-panel { + margin-top: 10px; +} +/* + * Medium gutter + */ +/* Horizontal */ +.uk-grid-medium { + margin-left: -25px; +} +.uk-grid-medium > * { + padding-left: 25px; +} +/* Vertical */ +.uk-grid-medium + .uk-grid-medium, +.uk-grid-medium > .uk-grid-margin, +.uk-grid-medium > * > .uk-panel + .uk-panel { + margin-top: 25px; +} +/* Modifier: `uk-grid-divider` + ========================================================================== */ +/* + * Horizontal divider + * Only works with the default gutter. Does not work with gutter collapse, small or large. + * Does not work with `uk-push-*`, `uk-pull-*` and not if the columns float into the next row. + */ +.uk-grid-divider:not(:empty) { + margin-left: -25px; + margin-right: -25px; +} +.uk-grid-divider > * { + padding-left: 25px; + padding-right: 25px; +} +.uk-grid-divider > [class*='uk-width-1-']:not(.uk-width-1-1):nth-child(n+2), +.uk-grid-divider > [class*='uk-width-2-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-3-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-4-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-5-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-6-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-7-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-8-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-9-']:nth-child(n+2) { + border-left: 1px solid #dddddd; +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-grid-divider > [class*='uk-width-medium-']:not(.uk-width-medium-1-1):nth-child(n+2) { + border-left: 1px solid #dddddd; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-grid-divider > [class*='uk-width-large-']:not(.uk-width-large-1-1):nth-child(n+2) { + border-left: 1px solid #dddddd; + } +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + /* + * Large gutter + */ + .uk-grid-divider:not(:empty) { + margin-left: -35px; + margin-right: -35px; + } + .uk-grid-divider > * { + padding-left: 35px; + padding-right: 35px; + } + .uk-grid-divider:empty { + margin-top: 35px; + margin-bottom: 35px; + } +} +/* + * Vertical divider + */ +.uk-grid-divider:empty { + margin-top: 25px; + margin-bottom: 25px; + border-top: 1px solid #dddddd; +} +/* Match panels in grids + ========================================================================== */ +.uk-grid-match > * { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; +} +/* + * 1. Behave like a block element + */ +.uk-grid-match > * > * { + /* 1 */ + -ms-flex: none; + -webkit-flex: none; + flex: none; + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 100%; +} +/* Even grid cell widths + ========================================================================== */ +[class*='uk-grid-width'] > * { + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 100%; +} +.uk-grid-width-1-2 > * { + width: 50%; +} +.uk-grid-width-1-3 > * { + width: 33.333%; +} +.uk-grid-width-1-4 > * { + width: 25%; +} +.uk-grid-width-1-5 > * { + width: 20%; +} +.uk-grid-width-1-6 > * { + width: 16.666%; +} +.uk-grid-width-1-10 > * { + width: 10%; +} +/* Phone landscape and bigger */ +@media (min-width: 480px) { + .uk-grid-width-small-1-2 > * { + width: 50%; + } + .uk-grid-width-small-1-3 > * { + width: 33.333%; + } + .uk-grid-width-small-1-4 > * { + width: 25%; + } + .uk-grid-width-small-1-5 > * { + width: 20%; + } + .uk-grid-width-small-1-6 > * { + width: 16.666%; + } + .uk-grid-width-small-1-10 > * { + width: 10%; + } +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-grid-width-medium-1-2 > * { + width: 50%; + } + .uk-grid-width-medium-1-3 > * { + width: 33.333%; + } + .uk-grid-width-medium-1-4 > * { + width: 25%; + } + .uk-grid-width-medium-1-5 > * { + width: 20%; + } + .uk-grid-width-medium-1-6 > * { + width: 16.666%; + } + .uk-grid-width-medium-1-10 > * { + width: 10%; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-grid-width-large-1-2 > * { + width: 50%; + } + .uk-grid-width-large-1-3 > * { + width: 33.333%; + } + .uk-grid-width-large-1-4 > * { + width: 25%; + } + .uk-grid-width-large-1-5 > * { + width: 20%; + } + .uk-grid-width-large-1-6 > * { + width: 16.666%; + } + .uk-grid-width-large-1-10 > * { + width: 10%; + } +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + .uk-grid-width-xlarge-1-2 > * { + width: 50%; + } + .uk-grid-width-xlarge-1-3 > * { + width: 33.333%; + } + .uk-grid-width-xlarge-1-4 > * { + width: 25%; + } + .uk-grid-width-xlarge-1-5 > * { + width: 20%; + } + .uk-grid-width-xlarge-1-6 > * { + width: 16.666%; + } + .uk-grid-width-xlarge-1-10 > * { + width: 10%; + } +} +/* Sub-objects: `uk-width-*` + ========================================================================== */ +[class*='uk-width'] { + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 100%; +} +/* + * Widths + */ +/* Whole */ +.uk-width-1-1 { + width: 100%; +} +/* Halves */ +.uk-width-1-2, +.uk-width-2-4, +.uk-width-3-6, +.uk-width-5-10 { + width: 50%; +} +/* Thirds */ +.uk-width-1-3, +.uk-width-2-6 { + width: 33.333%; +} +.uk-width-2-3, +.uk-width-4-6 { + width: 66.666%; +} +/* Quarters */ +.uk-width-1-4 { + width: 25%; +} +.uk-width-3-4 { + width: 75%; +} +/* Fifths */ +.uk-width-1-5, +.uk-width-2-10 { + width: 20%; +} +.uk-width-2-5, +.uk-width-4-10 { + width: 40%; +} +.uk-width-3-5, +.uk-width-6-10 { + width: 60%; +} +.uk-width-4-5, +.uk-width-8-10 { + width: 80%; +} +/* Sixths */ +.uk-width-1-6 { + width: 16.666%; +} +.uk-width-5-6 { + width: 83.333%; +} +/* Tenths */ +.uk-width-1-10 { + width: 10%; +} +.uk-width-3-10 { + width: 30%; +} +.uk-width-7-10 { + width: 70%; +} +.uk-width-9-10 { + width: 90%; +} +/* Phone landscape and bigger */ +@media (min-width: 480px) { + /* Whole */ + .uk-width-small-1-1 { + width: 100%; + } + /* Halves */ + .uk-width-small-1-2, + .uk-width-small-2-4, + .uk-width-small-3-6, + .uk-width-small-5-10 { + width: 50%; + } + /* Thirds */ + .uk-width-small-1-3, + .uk-width-small-2-6 { + width: 33.333%; + } + .uk-width-small-2-3, + .uk-width-small-4-6 { + width: 66.666%; + } + /* Quarters */ + .uk-width-small-1-4 { + width: 25%; + } + .uk-width-small-3-4 { + width: 75%; + } + /* Fifths */ + .uk-width-small-1-5, + .uk-width-small-2-10 { + width: 20%; + } + .uk-width-small-2-5, + .uk-width-small-4-10 { + width: 40%; + } + .uk-width-small-3-5, + .uk-width-small-6-10 { + width: 60%; + } + .uk-width-small-4-5, + .uk-width-small-8-10 { + width: 80%; + } + /* Sixths */ + .uk-width-small-1-6 { + width: 16.666%; + } + .uk-width-small-5-6 { + width: 83.333%; + } + /* Tenths */ + .uk-width-small-1-10 { + width: 10%; + } + .uk-width-small-3-10 { + width: 30%; + } + .uk-width-small-7-10 { + width: 70%; + } + .uk-width-small-9-10 { + width: 90%; + } +} +/* Tablet and bigger */ +@media (min-width: 768px) { + /* Whole */ + .uk-width-medium-1-1 { + width: 100%; + } + /* Halves */ + .uk-width-medium-1-2, + .uk-width-medium-2-4, + .uk-width-medium-3-6, + .uk-width-medium-5-10 { + width: 50%; + } + /* Thirds */ + .uk-width-medium-1-3, + .uk-width-medium-2-6 { + width: 33.333%; + } + .uk-width-medium-2-3, + .uk-width-medium-4-6 { + width: 66.666%; + } + /* Quarters */ + .uk-width-medium-1-4 { + width: 25%; + } + .uk-width-medium-3-4 { + width: 75%; + } + /* Fifths */ + .uk-width-medium-1-5, + .uk-width-medium-2-10 { + width: 20%; + } + .uk-width-medium-2-5, + .uk-width-medium-4-10 { + width: 40%; + } + .uk-width-medium-3-5, + .uk-width-medium-6-10 { + width: 60%; + } + .uk-width-medium-4-5, + .uk-width-medium-8-10 { + width: 80%; + } + /* Sixths */ + .uk-width-medium-1-6 { + width: 16.666%; + } + .uk-width-medium-5-6 { + width: 83.333%; + } + /* Tenths */ + .uk-width-medium-1-10 { + width: 10%; + } + .uk-width-medium-3-10 { + width: 30%; + } + .uk-width-medium-7-10 { + width: 70%; + } + .uk-width-medium-9-10 { + width: 90%; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + /* Whole */ + .uk-width-large-1-1 { + width: 100%; + } + /* Halves */ + .uk-width-large-1-2, + .uk-width-large-2-4, + .uk-width-large-3-6, + .uk-width-large-5-10 { + width: 50%; + } + /* Thirds */ + .uk-width-large-1-3, + .uk-width-large-2-6 { + width: 33.333%; + } + .uk-width-large-2-3, + .uk-width-large-4-6 { + width: 66.666%; + } + /* Quarters */ + .uk-width-large-1-4 { + width: 25%; + } + .uk-width-large-3-4 { + width: 75%; + } + /* Fifths */ + .uk-width-large-1-5, + .uk-width-large-2-10 { + width: 20%; + } + .uk-width-large-2-5, + .uk-width-large-4-10 { + width: 40%; + } + .uk-width-large-3-5, + .uk-width-large-6-10 { + width: 60%; + } + .uk-width-large-4-5, + .uk-width-large-8-10 { + width: 80%; + } + /* Sixths */ + .uk-width-large-1-6 { + width: 16.666%; + } + .uk-width-large-5-6 { + width: 83.333%; + } + /* Tenths */ + .uk-width-large-1-10 { + width: 10%; + } + .uk-width-large-3-10 { + width: 30%; + } + .uk-width-large-7-10 { + width: 70%; + } + .uk-width-large-9-10 { + width: 90%; + } +} +/* Sub-object: `uk-push-*` and `uk-pull-*` + ========================================================================== */ +/* + * Source ordering + * Works only with `uk-width-medium-*` + */ +/* Tablet and bigger */ +@media (min-width: 768px) { + [class*='uk-push-'], + [class*='uk-pull-'] { + position: relative; + } + /* + * Push + */ + /* Halves */ + .uk-push-1-2, + .uk-push-2-4, + .uk-push-3-6, + .uk-push-5-10 { + left: 50%; + } + /* Thirds */ + .uk-push-1-3, + .uk-push-2-6 { + left: 33.333%; + } + .uk-push-2-3, + .uk-push-4-6 { + left: 66.666%; + } + /* Quarters */ + .uk-push-1-4 { + left: 25%; + } + .uk-push-3-4 { + left: 75%; + } + /* Fifths */ + .uk-push-1-5, + .uk-push-2-10 { + left: 20%; + } + .uk-push-2-5, + .uk-push-4-10 { + left: 40%; + } + .uk-push-3-5, + .uk-push-6-10 { + left: 60%; + } + .uk-push-4-5, + .uk-push-8-10 { + left: 80%; + } + /* Sixths */ + .uk-push-1-6 { + left: 16.666%; + } + .uk-push-5-6 { + left: 83.333%; + } + /* Tenths */ + .uk-push-1-10 { + left: 10%; + } + .uk-push-3-10 { + left: 30%; + } + .uk-push-7-10 { + left: 70%; + } + .uk-push-9-10 { + left: 90%; + } + /* + * Pull + */ + /* Halves */ + .uk-pull-1-2, + .uk-pull-2-4, + .uk-pull-3-6, + .uk-pull-5-10 { + left: -50%; + } + /* Thirds */ + .uk-pull-1-3, + .uk-pull-2-6 { + left: -33.333%; + } + .uk-pull-2-3, + .uk-pull-4-6 { + left: -66.666%; + } + /* Quarters */ + .uk-pull-1-4 { + left: -25%; + } + .uk-pull-3-4 { + left: -75%; + } + /* Fifths */ + .uk-pull-1-5, + .uk-pull-2-10 { + left: -20%; + } + .uk-pull-2-5, + .uk-pull-4-10 { + left: -40%; + } + .uk-pull-3-5, + .uk-pull-6-10 { + left: -60%; + } + .uk-pull-4-5, + .uk-pull-8-10 { + left: -80%; + } + /* Sixths */ + .uk-pull-1-6 { + left: -16.666%; + } + .uk-pull-5-6 { + left: -83.333%; + } + /* Tenths */ + .uk-pull-1-10 { + left: -10%; + } + .uk-pull-3-10 { + left: -30%; + } + .uk-pull-7-10 { + left: -70%; + } + .uk-pull-9-10 { + left: -90%; + } +} +/* ======================================================================== + Component: Panel + ========================================================================== */ +/* + * 1. Needed for `a` elements + * 2. Create position context for badges + */ +.uk-panel { + /* 1 */ + display: block; + /* 2 */ + position: relative; +} +/* + * Allow panels to be anchors + */ +.uk-panel, +.uk-panel:hover { + text-decoration: none; +} +/* + * Micro clearfix to make panels more robust + */ +.uk-panel:before, +.uk-panel:after { + content: ""; + display: table; +} +.uk-panel:after { + clear: both; +} +/* + * Remove margin from the last-child if not `uk-widget-title` + */ +.uk-panel > :not(.uk-panel-title):last-child { + margin-bottom: 0; +} +/* Sub-object: `uk-panel-title` + ========================================================================== */ +.uk-panel-title { + margin-top: 0; + margin-bottom: 15px; + font-size: 18px; + line-height: 24px; + font-weight: normal; + text-transform: none; + color: #444444; +} +/* Sub-object: `uk-panel-badge` + ========================================================================== */ +.uk-panel-badge { + position: absolute; + top: 0; + right: 0; + z-index: 1; +} +/* Sub-object: `uk-panel-teaser` + ========================================================================== */ +.uk-panel-teaser { + margin-bottom: 15px; +} +/* Modifier: `uk-panel-box` + ========================================================================== */ +.uk-panel-box { + padding: 15px; + background: #f5f5f5; + color: #444444; +} +.uk-panel-box-hover:hover { + color: #444444; +} +.uk-panel-box .uk-panel-title { + color: #444444; +} +.uk-panel-box .uk-panel-badge { + top: 10px; + right: 10px; +} +.uk-panel-box .uk-panel-teaser { + margin-top: -15px; + margin-left: -15px; + margin-right: -15px; +} +/* + * Nav in panel + */ +.uk-panel-box > .uk-nav-side { + margin: 0 -15px; +} +/* + * Sub-modifier: `uk-panel-box-primary` + */ +.uk-panel-box-primary { + background-color: #ebf7fd; + color: #2d7091; +} +.uk-panel-box-primary-hover:hover { + color: #2d7091; +} +.uk-panel-box-primary .uk-panel-title { + color: #2d7091; +} +/* + * Sub-modifier: `uk-panel-box-secondary` + */ +.uk-panel-box-secondary { + background-color: #eeeeee; + color: #444444; +} +.uk-panel-box-secondary-hover:hover { + color: #444444; +} +.uk-panel-box-secondary .uk-panel-title { + color: #444444; +} +/* Modifier: `uk-panel-hover` + ========================================================================== */ +.uk-panel-hover { + padding: 15px; + color: #444444; +} +.uk-panel-hover:hover { + background: #f5f5f5; + color: #444444; +} +.uk-panel-hover .uk-panel-badge { + top: 10px; + right: 10px; +} +.uk-panel-hover .uk-panel-teaser { + margin-top: -15px; + margin-left: -15px; + margin-right: -15px; +} +/* Modifier: `uk-panel-header` + ========================================================================== */ +.uk-panel-header .uk-panel-title { + padding-bottom: 10px; + border-bottom: 1px solid #dddddd; + color: #444444; +} +/* Modifier: `uk-panel-space` + ========================================================================== */ +.uk-panel-space { + padding: 30px; +} +.uk-panel-space .uk-panel-badge { + top: 30px; + right: 30px; +} +/* Modifier: `uk-panel-divider` + ========================================================================== */ +.uk-panel + .uk-panel-divider { + margin-top: 50px !important; +} +.uk-panel + .uk-panel-divider:before { + content: ""; + display: block; + position: absolute; + top: -25px; + left: 0; + right: 0; + border-top: 1px solid #dddddd; +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + .uk-panel + .uk-panel-divider { + margin-top: 70px !important; + } + .uk-panel + .uk-panel-divider:before { + top: -35px; + } +} +/* ======================================================================== + Component: Block + ========================================================================== */ +.uk-block { + position: relative; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding-top: 20px; + padding-bottom: 20px; +} +/* Phone landscape and bigger */ +@media (min-width: 768px) { + .uk-block { + padding-top: 50px; + padding-bottom: 50px; + } +} +/* + * Micro clearfix to make blocks more robust + */ +.uk-block:before, +.uk-block:after { + content: ""; + display: table; +} +.uk-block:after { + clear: both; +} +/* + * Remove margin from the last-child + */ +.uk-block > :last-child { + margin-bottom: 0; +} +/* Padding Modifier + ========================================================================== */ +/* + * Large padding + */ +.uk-block-large { + padding-top: 20px; + padding-bottom: 20px; +} +/* Tablets and bigger */ +@media (min-width: 768px) { + .uk-block-large { + padding-top: 50px; + padding-bottom: 50px; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-block-large { + padding-top: 100px; + padding-bottom: 100px; + } +} +/* Color Modifier + ========================================================================== */ +/* + * Default + */ +.uk-block-default { + background: #ffffff; +} +/* + * Muted + */ +.uk-block-muted { + background: #f9f9f9; +} +/* + * Primary + */ +.uk-block-primary { + background: #00a8e6; +} +/* + * Secondary + */ +.uk-block-secondary { + background: #222222; +} +/* + * Adjust padding between equal colored blocks + */ +.uk-block-default + .uk-block-default, +.uk-block-muted + .uk-block-muted, +.uk-block-primary + .uk-block-primary, +.uk-block-secondary + .uk-block-secondary { + padding-top: 0; +} +/* ======================================================================== + Component: Article + ========================================================================== */ +/* + * Micro clearfix to make articles more robust + */ +.uk-article:before, +.uk-article:after { + content: ""; + display: table; +} +.uk-article:after { + clear: both; +} +/* + * Remove margin from the last-child + */ +.uk-article > :last-child { + margin-bottom: 0; +} +/* + * Vertical gutter for articles + */ +.uk-article + .uk-article { + margin-top: 25px; +} +/* Sub-object `uk-article-title` + ========================================================================== */ +.uk-article-title { + font-size: 36px; + line-height: 42px; + font-weight: normal; + text-transform: none; +} +.uk-article-title a { + color: inherit; + text-decoration: none; +} +/* Sub-object `uk-article-meta` + ========================================================================== */ +.uk-article-meta { + font-size: 12px; + line-height: 18px; + color: #999999; +} +/* Sub-object `uk-article-lead` + ========================================================================== */ +.uk-article-lead { + color: #444444; + font-size: 18px; + line-height: 24px; + font-weight: normal; +} +/* Sub-object `uk-article-divider` + ========================================================================== */ +.uk-article-divider { + margin-bottom: 25px; + border-color: #dddddd; +} +* + .uk-article-divider { + margin-top: 25px; +} +/* ======================================================================== + Component: Comment + ========================================================================== */ +/* Sub-object `uk-comment-header` + ========================================================================== */ +.uk-comment-header { + margin-bottom: 15px; +} +/* + * Micro clearfix + */ +.uk-comment-header:before, +.uk-comment-header:after { + content: ""; + display: table; +} +.uk-comment-header:after { + clear: both; +} +/* Sub-object `uk-comment-avatar` + ========================================================================== */ +.uk-comment-avatar { + margin-right: 15px; + float: left; +} +/* Sub-object `uk-comment-title` + ========================================================================== */ +.uk-comment-title { + margin: 5px 0 0 0; + font-size: 16px; + line-height: 22px; +} +/* Sub-object `uk-comment-meta` + ========================================================================== */ +.uk-comment-meta { + margin: 2px 0 0 0; + font-size: 11px; + line-height: 16px; + color: #999999; +} +/* Sub-object `uk-comment-body` + ========================================================================== */ +/* + * Remove margin from the last-child + */ +.uk-comment-body > :last-child { + margin-bottom: 0; +} +/* Sub-object `uk-comment-list` + ========================================================================== */ +.uk-comment-list { + padding: 0; + list-style: none; +} +.uk-comment-list .uk-comment + ul { + margin: 15px 0 0 0; + list-style: none; +} +.uk-comment-list > li:nth-child(n+2), +.uk-comment-list .uk-comment + ul > li:nth-child(n+2) { + margin-top: 15px; +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-comment-list .uk-comment + ul { + padding-left: 100px; + } +} +/* Modifier `uk-comment-primary` + ========================================================================== */ +/* ======================================================================== + Component: Cover + ========================================================================== */ +/* + * Background image always covers and centers its element + */ +.uk-cover-background { + background-position: 50% 50%; + background-size: cover; + background-repeat: no-repeat; +} +/* + * Emulates image cover, works with video and image elements + * 1. Parent container which clips resized object + * 2. Resizes the object to always covers its container + * 3. Reset the responsive image CSS + * 4. Center object + */ +/* 1 */ +.uk-cover { + overflow: hidden; +} +.uk-cover-object { + /* 2 */ + width: auto; + height: auto; + min-width: 100%; + min-height: 100%; + /* 3 */ + max-width: none; + /* 4 */ + position: relative; + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); +} +/* + * To center iframes use `data-uk-cover` JavaScript + */ +[data-uk-cover] { + position: relative; + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); +} +/* ======================================================================== + Component: Nav + ========================================================================== */ +.uk-nav, +.uk-nav ul { + margin: 0; + padding: 0; + list-style: none; +} +/* + * Items + */ +.uk-nav li > a { + display: block; + text-decoration: none; +} +.uk-nav > li > a { + padding: 5px 15px; +} +/* + * Nested items + */ +.uk-nav ul { + padding-left: 15px; +} +.uk-nav ul a { + padding: 2px 0; +} +/* + * Item subtitle + */ +.uk-nav li > a > div { + font-size: 12px; + line-height: 18px; +} +/* Sub-object: `uk-nav-header` + ========================================================================== */ +.uk-nav-header { + padding: 5px 15px; + text-transform: uppercase; + font-weight: bold; + font-size: 12px; +} +.uk-nav-header:not(:first-child) { + margin-top: 15px; +} +/* Sub-object: `uk-nav-divider` + ========================================================================== */ +.uk-nav-divider { + margin: 9px 15px; +} +/* Sub-object: `uk-nav-sub` + ========================================================================== */ +/* + * `ul` needed for higher specificity to override padding + */ +ul.uk-nav-sub { + padding: 5px 0 5px 15px; +} +/* Modifier: `uk-nav-parent-icon` + ========================================================================== */ +.uk-nav-parent-icon > .uk-parent > a:after { + content: "\f104"; + width: 20px; + margin-right: -10px; + float: right; + font-family: FontAwesome; + text-align: center; +} +.uk-nav-parent-icon > .uk-parent.uk-open > a:after { + content: "\f107"; +} +/* Modifier `uk-nav-side` + ========================================================================== */ +/* + * Items + */ +.uk-nav-side > li > a { + color: #444444; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-nav-side > li > a:hover, +.uk-nav-side > li > a:focus { + background: rgba(0, 0, 0, 0.05); + color: #444444; + /* 2 */ + outline: none; +} +/* Active */ +.uk-nav-side > li.uk-active > a { + background: #00a8e6; + color: #ffffff; +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-side .uk-nav-header { + color: #444444; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-side .uk-nav-divider { + border-top: 1px solid #dddddd; +} +/* + * Nested items + */ +.uk-nav-side ul a { + color: #0077dd; +} +.uk-nav-side ul a:hover { + color: #005599; +} +/* Modifier `uk-nav-dropdown` + ========================================================================== */ +/* + * Items + */ +.uk-nav-dropdown > li > a { + color: #444444; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-nav-dropdown > li > a:hover, +.uk-nav-dropdown > li > a:focus { + background: #00a8e6; + color: #ffffff; + /* 2 */ + outline: none; +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-dropdown .uk-nav-header { + color: #999999; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-dropdown .uk-nav-divider { + border-top: 1px solid #dddddd; +} +/* + * Nested items + */ +.uk-nav-dropdown ul a { + color: #0077dd; +} +.uk-nav-dropdown ul a:hover { + color: #005599; +} +/* Modifier `uk-nav-navbar` + ========================================================================== */ +/* + * Items + */ +.uk-nav-navbar > li > a { + color: #444444; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-nav-navbar > li > a:hover, +.uk-nav-navbar > li > a:focus { + background: #00a8e6; + color: #ffffff; + /* 2 */ + outline: none; +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-navbar .uk-nav-header { + color: #999999; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-navbar .uk-nav-divider { + border-top: 1px solid #dddddd; +} +/* + * Nested items + */ +.uk-nav-navbar ul a { + color: #0077dd; +} +.uk-nav-navbar ul a:hover { + color: #005599; +} +/* Modifier `uk-nav-offcanvas` + ========================================================================== */ +/* + * Items + */ +.uk-nav-offcanvas > li > a { + color: #cccccc; + padding: 10px 15px; +} +/* + * Hover + * No hover on touch devices because it behaves buggy in fixed offcanvas + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-nav-offcanvas > .uk-open > a, +html:not(.uk-touch) .uk-nav-offcanvas > li > a:hover, +html:not(.uk-touch) .uk-nav-offcanvas > li > a:focus { + background: #404040; + color: #ffffff; + /* 2 */ + outline: none; +} +/* + * Active + * `html .uk-nav` needed for higher specificity to override hover + */ +html .uk-nav.uk-nav-offcanvas > li.uk-active > a { + background: #1a1a1a; + color: #ffffff; +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-offcanvas .uk-nav-header { + color: #777777; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-offcanvas .uk-nav-divider { + border-top: 1px solid #1a1a1a; +} +/* + * Nested items + * No hover on touch devices because it behaves buggy in fixed offcanvas + */ +.uk-nav-offcanvas ul a { + color: #cccccc; +} +html:not(.uk-touch) .uk-nav-offcanvas ul a:hover { + color: #ffffff; +} +/* ======================================================================== + Component: Navbar + ========================================================================== */ +.uk-navbar { + background: #eeeeee; + color: #444444; +} +/* + * Micro clearfix + */ +.uk-navbar:before, +.uk-navbar:after { + content: ""; + display: table; +} +.uk-navbar:after { + clear: both; +} +/* Sub-object: `uk-navbar-nav` + ========================================================================== */ +.uk-navbar-nav { + margin: 0; + padding: 0; + list-style: none; + float: left; +} +/* + * 1. Create position context for dropdowns + */ +.uk-navbar-nav > li { + float: left; + /* 1 */ + position: relative; +} +/* + * 1. Dimensions + * 2. Style + */ +.uk-navbar-nav > li > a { + display: block; + -moz-box-sizing: border-box; + box-sizing: border-box; + text-decoration: none; + /* 1 */ + height: 40px; + padding: 0 15px; + line-height: 40px; + /* 2 */ + color: #444444; + font-size: 14px; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-weight: normal; +} +/* Appear not as link */ +.uk-navbar-nav > li > a[href='#'] { + cursor: text; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Also apply if dropdown is opened + * 3. Remove default focus style + */ +.uk-navbar-nav > li:hover > a, +.uk-navbar-nav > li > a:focus, +.uk-navbar-nav > li.uk-open > a { + background-color: #f5f5f5; + color: #444444; + /* 3 */ + outline: none; +} +/* OnClick */ +.uk-navbar-nav > li > a:active { + background-color: #dddddd; + color: #444444; +} +/* Active */ +.uk-navbar-nav > li.uk-active > a { + background-color: #f5f5f5; + color: #444444; +} +/* Sub-objects: `uk-navbar-nav-subtitle` + ========================================================================== */ +.uk-navbar-nav .uk-navbar-nav-subtitle { + line-height: 28px; +} +.uk-navbar-nav-subtitle > div { + margin-top: -6px; + font-size: 10px; + line-height: 12px; +} +/* Sub-objects: `uk-navbar-content`, `uk-navbar-brand`, `uk-navbar-toggle` + ========================================================================== */ +/* + * Imitate navbar items + */ +.uk-navbar-content, +.uk-navbar-brand, +.uk-navbar-toggle { + -moz-box-sizing: border-box; + box-sizing: border-box; + display: block; + height: 40px; + padding: 0 15px; + float: left; +} +/* + * Helper to center all child elements vertically + */ +.uk-navbar-content:before, +.uk-navbar-brand:before, +.uk-navbar-toggle:before { + content: ''; + display: inline-block; + height: 100%; + vertical-align: middle; +} +/* Sub-objects: `uk-navbar-content` + ========================================================================== */ +/* + * Better sibling spacing + */ +.uk-navbar-content + .uk-navbar-content:not(.uk-navbar-center) { + padding-left: 0; +} +/* + * Link colors + */ +.uk-navbar-content > a:not([class]) { + color: #0077dd; +} +.uk-navbar-content > a:not([class]):hover { + color: #005599; +} +/* Sub-objects: `uk-navbar-brand` + ========================================================================== */ +.uk-navbar-brand { + font-size: 18px; + color: #444444; + text-decoration: none; +} +/* + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-navbar-brand:hover, +.uk-navbar-brand:focus { + color: #444444; + text-decoration: none; + /* 2 */ + outline: none; +} +/* Sub-object: `uk-navbar-toggle` + ========================================================================== */ +.uk-navbar-toggle { + font-size: 18px; + color: #444444; + text-decoration: none; +} +/* + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-navbar-toggle:hover, +.uk-navbar-toggle:focus { + color: #444444; + text-decoration: none; + /* 2 */ + outline: none; +} +/* + * 1. Center icon vertically + */ +.uk-navbar-toggle:after { + content: "\f0c9"; + font-family: FontAwesome; + /* 1 */ + vertical-align: middle; +} +.uk-navbar-toggle-alt:after { + content: "\f002"; +} +/* Sub-object: `uk-navbar-center` + ========================================================================== */ +/* + * The element with this class needs to be last child in the navbar + * 1. This hack is needed because other float elements shift centered text + */ +.uk-navbar-center { + float: none; + text-align: center; + /* 1 */ + max-width: 50%; + margin-left: auto; + margin-right: auto; +} +/* Sub-object: `uk-navbar-flip` + ========================================================================== */ +.uk-navbar-flip { + float: right; +} +/* ======================================================================== + Component: Subnav + ========================================================================== */ +/* + * 1. Gutter + * 2. Remove default list style + */ +.uk-subnav { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + /* 1 */ + margin-left: -10px; + margin-top: -10px; + /* 2 */ + padding: 0; + list-style: none; +} +/* + * 1. Space is allocated solely based on content dimensions + * 2. Horizontal gutter is using `padding` so `uk-width-*` classes can be applied + * 3. Create position context for dropdowns + */ +.uk-subnav > * { + /* 1 */ + -ms-flex: none; + -webkit-flex: none; + flex: none; + /* 2 */ + padding-left: 10px; + margin-top: 10px; + /* 3 */ + position: relative; +} +/* + * DEPRECATED IE9 Support + */ +.uk-subnav:before, +.uk-subnav:after { + content: ""; + display: block; + overflow: hidden; +} +.uk-subnav:after { + clear: both; +} +.uk-subnav > * { + float: left; +} +/* Items + ========================================================================== */ +.uk-subnav > * > * { + display: inline-block; + color: #444444; +} +/* + * Hover + * 1. Apply hover style also to focus state + */ +.uk-subnav > * > :hover, +.uk-subnav > * > :focus { + color: #0077dd; + text-decoration: none; +} +/* + * Active + */ +.uk-subnav > .uk-active > * { + color: #0077dd; +} +/* Modifier: 'subnav-line' + ========================================================================== */ +.uk-subnav-line > :before { + content: ""; + display: inline-block; + height: 10px; + vertical-align: middle; +} +.uk-subnav-line > :nth-child(n+2):before { + margin-right: 10px; + border-left: 1px solid #dddddd; +} +/* Modifier: 'subnav-pill' + ========================================================================== */ +.uk-subnav-pill > * > * { + padding: 3px 9px; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-subnav-pill > * > :hover, +.uk-subnav-pill > * > :focus { + background: #eeeeee; + color: #444444; + text-decoration: none; + /* 2 */ + outline: none; +} +/* + * Active + * `li` needed for higher specificity to override hover + */ +.uk-subnav-pill > .uk-active > * { + background: #00a8e6; + color: #ffffff; +} +/* Disabled state + ========================================================================== */ +.uk-subnav > .uk-disabled > * { + background: none; + color: #999999; + text-decoration: none; + cursor: text; +} +/* ======================================================================== + Component: Breadcrumb + ========================================================================== */ +/* + * 1. Remove default list style + * 2. Remove whitespace between child elements when using `inline-block` + */ +.uk-breadcrumb { + /* 1 */ + padding: 0; + list-style: none; + /* 2 */ + font-size: 0.001px; +} +/* Items + ========================================================================== */ +/* + * Reset whitespace hack + */ +.uk-breadcrumb > li { + font-size: 1rem; + vertical-align: top; +} +.uk-breadcrumb > li, +.uk-breadcrumb > li > a, +.uk-breadcrumb > li > span { + display: inline-block; +} +.uk-breadcrumb > li:nth-child(n+2):before { + content: "/"; + display: inline-block; + margin: 0 8px; +} +/* + * Disabled + */ +.uk-breadcrumb > li:not(.uk-active) > span { + color: #999999; +} +/* ======================================================================== + Component: Pagination + ========================================================================== */ +/* + * 1. Remove default list style + * 2. Center pagination by default + * 3. Remove whitespace between child elements when using `inline-block` + */ +.uk-pagination { + /* 1 */ + padding: 0; + list-style: none; + /* 2 */ + text-align: center; + /* 3 */ + font-size: 0.001px; +} +/* + * Micro clearfix + * Needed if `uk-pagination-previous` or `uk-pagination-next` sub-objects are used + */ +.uk-pagination:before, +.uk-pagination:after { + content: ""; + display: table; +} +.uk-pagination:after { + clear: both; +} +/* Items + ========================================================================== */ +/* + * 1. Reset whitespace hack + * 2. Remove the gap at the bottom of it container + */ +.uk-pagination > li { + display: inline-block; + /* 1 */ + font-size: 1rem; + /* 2 */ + vertical-align: top; +} +.uk-pagination > li:nth-child(n+2) { + margin-left: 5px; +} +/* + * 1. Makes pagination more robust against different box-sizing use + * 2. Reset text-align to center if alignment modifier is used + */ +.uk-pagination > li > a, +.uk-pagination > li > span { + display: inline-block; + min-width: 16px; + padding: 3px 5px; + line-height: 20px; + text-decoration: none; + /* 1 */ + -moz-box-sizing: content-box; + box-sizing: content-box; + /* 2 */ + text-align: center; +} +/* + * Links + */ +.uk-pagination > li > a { + background: #eeeeee; + color: #444444; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-pagination > li > a:hover, +.uk-pagination > li > a:focus { + background-color: #f5f5f5; + color: #444444; + /* 2 */ + outline: none; +} +/* OnClick */ +.uk-pagination > li > a:active { + background-color: #dddddd; + color: #444444; +} +/* + * Active + */ +.uk-pagination > .uk-active > span { + background: #00a8e6; + color: #ffffff; +} +/* + * Disabled + */ +.uk-pagination > .uk-disabled > span { + background-color: #f5f5f5; + color: #999999; +} +/* Previous and next navigation + ========================================================================== */ +.uk-pagination-previous { + float: left; +} +.uk-pagination-next { + float: right; +} +/* Alignment modifiers + ========================================================================== */ +.uk-pagination-left { + text-align: left; +} +.uk-pagination-right { + text-align: right; +} +/* ======================================================================== + Component: Tab + ========================================================================== */ +.uk-tab { + margin: 0; + padding: 0; + list-style: none; + border-bottom: 1px solid #dddddd; +} +/* + * Micro clearfix on the deepest container + */ +.uk-tab:before, +.uk-tab:after { + content: ""; + display: table; +} +.uk-tab:after { + clear: both; +} +/* + * Items + * 1. Create position context for dropdowns + */ +.uk-tab > li { + margin-bottom: -1px; + float: left; + /* 1 */ + position: relative; +} +.uk-tab > li > a { + display: block; + padding: 8px 12px 8px 12px; + border: 1px solid transparent; + border-bottom-width: 0; + color: #0077dd; + text-decoration: none; +} +.uk-tab > li:nth-child(n+2) > a { + margin-left: 5px; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Also apply if dropdown is opened + * 3. Remove default focus style + */ +.uk-tab > li > a:hover, +.uk-tab > li > a:focus, +.uk-tab > li.uk-open > a { + border-color: #f5f5f5; + background: #f5f5f5; + color: #005599; + /* 2 */ + outline: none; +} +.uk-tab > li:not(.uk-active) > a:hover, +.uk-tab > li:not(.uk-active) > a:focus, +.uk-tab > li.uk-open:not(.uk-active) > a { + margin-bottom: 1px; + padding-bottom: 7px; +} +/* Active */ +.uk-tab > li.uk-active > a { + border-color: #dddddd; + border-bottom-color: transparent; + background: #ffffff; + color: #444444; +} +/* Disabled */ +.uk-tab > li.uk-disabled > a { + color: #999999; + cursor: text; +} +.uk-tab > li.uk-disabled > a:hover, +.uk-tab > li.uk-disabled > a:focus, +.uk-tab > li.uk-disabled.uk-active > a { + background: none; + border-color: transparent; +} +/* Modifier: 'tab-flip' + ========================================================================== */ +.uk-tab-flip > li { + float: right; +} +.uk-tab-flip > li:nth-child(n+2) > a { + margin-left: 0; + margin-right: 5px; +} +/* Modifier: 'tab-responsive' + ========================================================================== */ +.uk-tab > li.uk-tab-responsive > a { + margin-left: 0; + margin-right: 0; +} +/* + * Icon + */ +.uk-tab-responsive > a:before { + content: "\f0c9\00a0"; + font-family: FontAwesome; +} +/* Modifier: 'tab-center' + ========================================================================== */ +.uk-tab-center { + border-bottom: 1px solid #dddddd; +} +.uk-tab-center-bottom { + border-bottom: none; + border-top: 1px solid #dddddd; +} +.uk-tab-center:before, +.uk-tab-center:after { + content: ""; + display: table; +} +.uk-tab-center:after { + clear: both; +} +/* + * 1. Using `right` to prevent vertical scrollbar caused by centering if to many tabs + */ +.uk-tab-center .uk-tab { + position: relative; + right: 50%; + border: none; + float: right; +} +.uk-tab-center .uk-tab > li { + position: relative; + right: -50%; +} +.uk-tab-center .uk-tab > li > a { + text-align: center; +} +/* Modifier: 'tab-bottom' + ========================================================================== */ +.uk-tab-bottom { + border-top: 1px solid #dddddd; + border-bottom: none; +} +.uk-tab-bottom > li { + margin-top: -1px; + margin-bottom: 0; +} +.uk-tab-bottom > li > a { + padding-top: 8px; + padding-bottom: 8px; + border-bottom-width: 1px; + border-top-width: 0; +} +.uk-tab-bottom > li:not(.uk-active) > a:hover, +.uk-tab-bottom > li:not(.uk-active) > a:focus, +.uk-tab-bottom > li.uk-open:not(.uk-active) > a { + margin-bottom: 0; + margin-top: 1px; + padding-bottom: 8px; + padding-top: 7px; +} +.uk-tab-bottom > li.uk-active > a { + border-top-color: transparent; + border-bottom-color: #dddddd; +} +/* Modifier: 'tab-grid' + ========================================================================== */ +/* + * 1. Create position context to prevent hidden border because of negative `z-index` + */ +.uk-tab-grid { + margin-left: -5px; + border-bottom: none; + /* 1 */ + position: relative; + z-index: 0; +} +.uk-tab-grid:before { + display: block; + position: absolute; + left: 5px; + right: 0; + bottom: -1px; + border-top: 1px solid #dddddd; + /* 1 */ + z-index: -1; +} +.uk-tab-grid > li:first-child > a { + margin-left: 5px; +} +.uk-tab-grid > li > a { + text-align: center; +} +/* + * If `uk-tab-bottom` + */ +.uk-tab-grid.uk-tab-bottom { + border-top: none; +} +.uk-tab-grid.uk-tab-bottom:before { + top: -1px; + bottom: auto; +} +/* Modifier: 'tab-left', 'tab-right' + ========================================================================== */ +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-tab-left, + .uk-tab-right { + border-bottom: none; + } + .uk-tab-left > li, + .uk-tab-right > li { + margin-bottom: 0; + float: none; + } + .uk-tab-left > li > a, + .uk-tab-right > li > a { + padding-top: 8px; + padding-bottom: 8px; + } + .uk-tab-left > li:nth-child(n+2) > a, + .uk-tab-right > li:nth-child(n+2) > a { + margin-left: 0; + margin-top: 5px; + } + .uk-tab-left > li.uk-active > a, + .uk-tab-right > li.uk-active > a { + border-color: #dddddd; + } + /* + * Modifier: 'tab-left' + */ + .uk-tab-left { + border-right: 1px solid #dddddd; + } + .uk-tab-left > li { + margin-right: -1px; + } + .uk-tab-left > li > a { + border-bottom-width: 1px; + border-right-width: 0; + } + .uk-tab-left > li:not(.uk-active) > a:hover, + .uk-tab-left > li:not(.uk-active) > a:focus { + margin-bottom: 0; + margin-right: 1px; + padding-bottom: 8px; + padding-right: 11px; + } + .uk-tab-left > li.uk-active > a { + border-right-color: transparent; + } + /* + * Modifier: 'tab-right' + */ + .uk-tab-right { + border-left: 1px solid #dddddd; + } + .uk-tab-right > li { + margin-left: -1px; + } + .uk-tab-right > li > a { + border-bottom-width: 1px; + border-left-width: 0; + } + .uk-tab-right > li:not(.uk-active) > a:hover, + .uk-tab-right > li:not(.uk-active) > a:focus { + margin-bottom: 0; + margin-left: 1px; + padding-bottom: 8px; + padding-left: 11px; + } + .uk-tab-right > li.uk-active > a { + border-left-color: transparent; + } +} +/* ======================================================================== + Component: Thumbnav + ========================================================================== */ +/* + * 1. Gutter + * 2. Remove default list style + */ +.uk-thumbnav { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + /* 1 */ + margin-left: -10px; + margin-top: -10px; + /* 2 */ + padding: 0; + list-style: none; +} +/* + * 1. Space is allocated solely based on content dimensions + * 2. Horizontal gutter is using `padding` so `uk-width-*` classes can be applied + */ +.uk-thumbnav > * { + /* 1 */ + -ms-flex: none; + -webkit-flex: none; + flex: none; + /* 2 */ + padding-left: 10px; + margin-top: 10px; +} +/* + * DEPRECATED IE9 Support + */ +.uk-thumbnav:before, +.uk-thumbnav:after { + content: ""; + display: block; + overflow: hidden; +} +.uk-thumbnav:after { + clear: both; +} +.uk-thumbnav > * { + float: left; +} +/* Items + ========================================================================== */ +.uk-thumbnav > * > * { + display: block; + background: #ffffff; +} +.uk-thumbnav > * > * > img { + opacity: 0.7; + -webkit-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; +} +/* + * Hover + */ +.uk-thumbnav > * > :hover > img, +.uk-thumbnav > * > :focus > img { + opacity: 1; +} +/* + * Active + */ +.uk-thumbnav > .uk-active > * > img { + opacity: 1; +} +/* ======================================================================== + Component: List + ========================================================================== */ +.uk-list { + padding: 0; + list-style: none; +} +/* + * Micro clearfix to make list more robust + */ +.uk-list > li:before, +.uk-list > li:after { + content: ""; + display: table; +} +.uk-list > li:after { + clear: both; +} +/* + * Remove margin from the last-child + */ +.uk-list > li > :last-child { + margin-bottom: 0; +} +/* + * Nested lists + */ +.uk-list ul { + margin: 0; + padding-left: 20px; + list-style: none; +} +/* Modifier: `uk-list-line` + ========================================================================== */ +.uk-list-line > li:nth-child(n+2) { + margin-top: 5px; + padding-top: 5px; + border-top: 1px solid #dddddd; +} +/* Modifier: `uk-list-striped` + ========================================================================== */ +.uk-list-striped > li { + padding: 5px 5px; +} +.uk-list-striped > li:nth-of-type(odd) { + background: #f5f5f5; +} +/* Modifier: `uk-list-space` + ========================================================================== */ +.uk-list-space > li:nth-child(n+2) { + margin-top: 10px; +} +/* ======================================================================== + Component: Description list + ========================================================================== */ +/* Modifier: `uk-description-list-horizontal` + ========================================================================== */ +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-description-list-horizontal { + overflow: hidden; + } + .uk-description-list-horizontal > dt { + width: 160px; + float: left; + clear: both; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + .uk-description-list-horizontal > dd { + margin-left: 180px; + } +} +/* Modifier: `uk-description-list-line` + ========================================================================== */ +.uk-description-list-line > dt { + font-weight: normal; +} +.uk-description-list-line > dt:nth-child(n+2) { + margin-top: 5px; + padding-top: 5px; + border-top: 1px solid #dddddd; +} +.uk-description-list-line > dd { + color: #999999; +} +/* ======================================================================== + Component: Table + ========================================================================== */ +/* + * 1. Remove most spacing between table cells. + * 2. Block element behavior + * 3. Style + */ +.uk-table { + /* 1 */ + border-collapse: collapse; + border-spacing: 0; + /* 2 */ + width: 100%; + /* 3 */ + margin-bottom: 15px; +} +/* + * Add margin if adjacent element + */ +* + .uk-table { + margin-top: 15px; +} +.uk-table th, +.uk-table td { + padding: 8px 8px; +} +/* + * Set alignment + */ +.uk-table th { + text-align: left; +} +.uk-table td { + vertical-align: top; +} +.uk-table thead th { + vertical-align: bottom; +} +/* + * Caption and footer + */ +.uk-table caption, +.uk-table tfoot { + font-size: 12px; + font-style: italic; +} +.uk-table caption { + text-align: left; + color: #999999; +} +/* + * Active State + */ +.uk-table tbody tr.uk-active { + background: #eeeeee; +} +/* Sub-modifier: `uk-table-middle` + ========================================================================== */ +.uk-table-middle, +.uk-table-middle td { + vertical-align: middle !important; +} +/* Modifier: `uk-table-striped` + ========================================================================== */ +.uk-table-striped tbody tr:nth-of-type(odd) { + background: #f5f5f5; +} +/* Modifier: `uk-table-condensed` + ========================================================================== */ +.uk-table-condensed td { + padding: 4px 8px; +} +/* Modifier: `uk-table-hover` + ========================================================================== */ +.uk-table-hover tbody tr:hover { + background: #eeeeee; +} +/* ======================================================================== + Component: Form + ========================================================================== */ +/* + * 1. Define consistent box sizing. + * Default is `content-box` with following exceptions set to `border-box` + * `button`, `select`, `input[type="checkbox"]` and `input[type="radio"]` + * `input[type="search"]` in Chrome, Safari and Opera + * `input[type="color"]` in Firefox + * 2. Address margins set differently in Firefox/IE and Chrome/Safari/Opera. + * 3. Remove `border-radius` in iOS. + * 4. Correct `font` properties and `color` not being inherited. + */ +.uk-form input, +.uk-form select, +.uk-form textarea { + /* 1 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 2 */ + margin: 0; + /* 3 */ + border-radius: 0; + /* 4 */ + font: inherit; + color: inherit; +} +/* + * Address inconsistent `text-transform` inheritance which is only inherit in Firefox + */ +.uk-form select { + text-transform: none; +} +/* + * 1. Correct `font` properties not being inherited. + * 2. Don't inherit the `font-weight` and use `bold` instead. + * NOTE: Both declarations don't work in Chrome, Safari and Opera. + */ +.uk-form optgroup { + /* 1 */ + font: inherit; + /* 2 */ + font-weight: bold; +} +/* + * Removes inner padding and border in Firefox 4+. + */ +.uk-form input::-moz-focus-inner { + border: 0; + padding: 0; +} +/* + * Removes excess padding in IE 8/9/10. + */ +.uk-form input[type="checkbox"], +.uk-form input[type="radio"] { + padding: 0; +} +/* + * Improves consistency of cursor style for clickable elements + */ +.uk-form input[type="checkbox"]:not(:disabled), +.uk-form input[type="radio"]:not(:disabled) { + cursor: pointer; +} +/* + * Remove default style in iOS. + */ +.uk-form textarea, +.uk-form input:not([type]), +.uk-form input[type="text"], +.uk-form input[type="password"], +.uk-form input[type="email"], +.uk-form input[type="url"], +.uk-form input[type="search"], +.uk-form input[type="tel"], +.uk-form input[type="number"], +.uk-form input[type="datetime"] { + -webkit-appearance: none; +} +/* + * Remove inner padding and search cancel button in Chrome, Safari and Opera on OS X. + */ +.uk-form input[type="search"]::-webkit-search-cancel-button, +.uk-form input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} +/* + * Fix the cursor style for Chrome's increment/decrement buttons. For certain + * `font-size` values of the `input`, it causes the cursor style of the + * decrement button to change from `default` to `text`. + */ +.uk-form input[type="number"]::-webkit-inner-spin-button, +.uk-form input[type="number"]::-webkit-outer-spin-button { + height: auto; +} +/* + * Define consistent border, margin, and padding. + */ +.uk-form fieldset { + border: none; + margin: 0; + padding: 0; +} +/* + * 1. Remove default vertical scrollbar in IE 8/9/10/11. + * 2. Improve readability and alignment in all browsers. + */ +.uk-form textarea { + /* 1 */ + overflow: auto; + /* 2 */ + vertical-align: top; +} +/* + * Removes placeholder transparency in Firefox. + */ +.uk-form ::-moz-placeholder { + opacity: 1; +} +/* + * Removes `box-shadow` for invalid controls in Firefox. + */ +.uk-form :invalid { + box-shadow: none; +} +/* + * Vertical alignment + */ +.uk-form input:not([type="radio"]):not([type="checkbox"]), +.uk-form select { + vertical-align: middle; +} +/* Style + ========================================================================== */ +/* + * Remove margin from the last-child + */ +.uk-form > :last-child { + margin-bottom: 0; +} +/* + * Controls + * Except for `range`, `radio`, `checkbox`, `file`, `submit`, `reset`, `button` and `image` + * 1. Must be `height` because `min-height` is not working in OSX + * 2. Responsiveness: Sets a maximum width relative to the parent to scale on narrower viewports + * 3. Vertical `padding` needed for `select` elements in Firefox + * 4. Style + */ +.uk-form select, +.uk-form textarea, +.uk-form input:not([type]), +.uk-form input[type="text"], +.uk-form input[type="password"], +.uk-form input[type="datetime"], +.uk-form input[type="datetime-local"], +.uk-form input[type="date"], +.uk-form input[type="month"], +.uk-form input[type="time"], +.uk-form input[type="week"], +.uk-form input[type="number"], +.uk-form input[type="email"], +.uk-form input[type="url"], +.uk-form input[type="search"], +.uk-form input[type="tel"], +.uk-form input[type="color"] { + /* 1 */ + height: 30px; + /* 2 */ + max-width: 100%; + /* 3 */ + padding: 4px 6px; + /* 4 */ + border: 1px solid #dddddd; + background: #ffffff; + color: #444444; + -webkit-transition: all linear 0.2s; + transition: all linear 0.2s; +} +.uk-form select:focus, +.uk-form textarea:focus, +.uk-form input:not([type]):focus, +.uk-form input[type="text"]:focus, +.uk-form input[type="password"]:focus, +.uk-form input[type="datetime"]:focus, +.uk-form input[type="datetime-local"]:focus, +.uk-form input[type="date"]:focus, +.uk-form input[type="month"]:focus, +.uk-form input[type="time"]:focus, +.uk-form input[type="week"]:focus, +.uk-form input[type="number"]:focus, +.uk-form input[type="email"]:focus, +.uk-form input[type="url"]:focus, +.uk-form input[type="search"]:focus, +.uk-form input[type="tel"]:focus, +.uk-form input[type="color"]:focus { + border-color: #99baca; + outline: 0; + background: #f5fbfe; + color: #444444; +} +.uk-form select:disabled, +.uk-form textarea:disabled, +.uk-form input:not([type]):disabled, +.uk-form input[type="text"]:disabled, +.uk-form input[type="password"]:disabled, +.uk-form input[type="datetime"]:disabled, +.uk-form input[type="datetime-local"]:disabled, +.uk-form input[type="date"]:disabled, +.uk-form input[type="month"]:disabled, +.uk-form input[type="time"]:disabled, +.uk-form input[type="week"]:disabled, +.uk-form input[type="number"]:disabled, +.uk-form input[type="email"]:disabled, +.uk-form input[type="url"]:disabled, +.uk-form input[type="search"]:disabled, +.uk-form input[type="tel"]:disabled, +.uk-form input[type="color"]:disabled { + border-color: #dddddd; + background-color: #f5f5f5; + color: #999999; +} +/* + * Placeholder + */ +.uk-form :-ms-input-placeholder { + color: #999999 !important; +} +.uk-form ::-moz-placeholder { + color: #999999; +} +.uk-form ::-webkit-input-placeholder { + color: #999999; +} +.uk-form :disabled:-ms-input-placeholder { + color: #999999 !important; +} +.uk-form :disabled::-moz-placeholder { + color: #999999; +} +.uk-form :disabled::-webkit-input-placeholder { + color: #999999; +} +/* + * Legend + * 1. Behave like block element + * 2. Correct `color` not being inherited in IE 8/9/10/11. + * 3. Remove padding + * 4. `margin-bottom` is not working in Safari and Opera. + * Using `padding` and :after instead to create the border + * 5. Style + */ +.uk-form legend { + /* 1 */ + width: 100%; + /* 2 */ + border: 0; + /* 3 */ + padding: 0; + /* 4 */ + padding-bottom: 15px; + /* 5 */ + font-size: 18px; + line-height: 30px; +} +/* + * 1. Fixes IE9 + */ +.uk-form legend:after { + content: ""; + display: block; + border-bottom: 1px solid #dddddd; + /* 1 */ + width: 100%; +} +/* Size modifiers + * Higher specificity needed to override defaults + ========================================================================== */ +select.uk-form-small, +textarea.uk-form-small, +input[type].uk-form-small, +input:not([type]).uk-form-small { + height: 25px; + padding: 3px 3px; + font-size: 12px; +} +select.uk-form-large, +textarea.uk-form-large, +input[type].uk-form-large, +input:not([type]).uk-form-large { + height: 40px; + padding: 8px 6px; + font-size: 16px; +} +/* Reset height + * Must be after size modifiers + ========================================================================== */ +.uk-form textarea, +.uk-form select[multiple], +.uk-form select[size] { + height: auto; +} +/* Validation states + * Using !important to keep the selector simple + ========================================================================== */ +/* + * Error state + */ +.uk-form-danger { + border-color: #dc8d99 !important; + background: #fff7f8 !important; + color: #d85030 !important; +} +/* + * Success state + */ +.uk-form-success { + border-color: #8ec73b !important; + background: #fafff2 !important; + color: #659f13 !important; +} +/* Style modifiers + * Using !important to keep the selector simple + ========================================================================== */ +/* + * Blank form + */ +.uk-form-blank { + border-color: transparent !important; + border-style: dashed !important; + background: none !important; +} +.uk-form-blank:focus { + border-color: #dddddd !important; +} +/* Size sub-modifiers + ========================================================================== */ +/* + * Fixed widths + * Different widths for mini sized `input` and `select` elements + */ +input.uk-form-width-mini { + width: 40px; +} +select.uk-form-width-mini { + width: 65px; +} +.uk-form-width-small { + width: 130px; +} +.uk-form-width-medium { + width: 200px; +} +.uk-form-width-large { + width: 500px; +} +/* Sub-objects: `uk-form-row` + * Groups labels and controls in rows + ========================================================================== */ +/* + * Micro clearfix + * Needed for `uk-form-horizontal` modifier + */ +.uk-form-row:before, +.uk-form-row:after { + content: ""; + display: table; +} +.uk-form-row:after { + clear: both; +} +/* + * Vertical gutter + */ +.uk-form-row + .uk-form-row { + margin-top: 15px; +} +/* Help text + * Sub-object: `uk-form-help-inline`, `uk-form-help-block` + ========================================================================== */ +.uk-form-help-inline { + display: inline-block; + margin: 0 0 0 10px; +} +.uk-form-help-block { + margin: 5px 0 0 0; +} +/* Controls content + * Sub-object: `uk-form-controls`, `uk-form-controls-condensed` + ========================================================================== */ +/* + * Remove margins + */ +.uk-form-controls > :first-child { + margin-top: 0; +} +.uk-form-controls > :last-child { + margin-bottom: 0; +} +/* + * Group controls and text into blocks with a small spacing between blocks + */ +.uk-form-controls-condensed { + margin: 5px 0; +} +/* Modifier: `uk-form-stacked` + * Requires sub-object: `uk-form-label` + ========================================================================== */ +.uk-form-stacked .uk-form-label { + display: block; + margin-bottom: 5px; + font-weight: bold; +} +/* Modifier: `uk-form-horizontal` + * Requires sub-objects: `uk-form-label`, `uk-form-controls` + ========================================================================== */ +/* Tablet portrait and smaller */ +@media (max-width: 959px) { + /* Behave like `uk-form-stacked` */ + .uk-form-horizontal .uk-form-label { + display: block; + margin-bottom: 5px; + font-weight: bold; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-form-horizontal .uk-form-label { + width: 200px; + margin-top: 5px; + float: left; + } + .uk-form-horizontal .uk-form-controls { + margin-left: 215px; + } + /* Better vertical alignment if controls are checkboxes and radio buttons with text */ + .uk-form-horizontal .uk-form-controls-text { + padding-top: 5px; + } +} +/* Sub-object: `uk-form-icon` + ========================================================================== */ +/* + * 1. Container width fits its content + * 2. Create position context + * 3. Prevent `inline-block` consequences + */ +.uk-form-icon { + /* 1 */ + display: inline-block; + /* 2 */ + position: relative; + /* 3 */ + max-width: 100%; +} +/* + * 1. Make form element clickable through icon + */ +.uk-form-icon > [class*='uk-icon-'] { + position: absolute; + top: 50%; + width: 30px; + margin-top: -7px; + font-size: 14px; + color: #999999; + text-align: center; + /* 1 */ + pointer-events: none; +} +.uk-form-icon:not(.uk-form-icon-flip) > input { + padding-left: 30px !important; +} +/* + * Sub-modifier: `uk-form-icon-flip` + */ +.uk-form-icon-flip > [class*='uk-icon-'] { + right: 0; +} +.uk-form-icon-flip > input { + padding-right: 30px !important; +} +/* ======================================================================== + Component: Button + ========================================================================== */ +/* + * Removes inner padding and border in Firefox 4+. + */ +.uk-button::-moz-focus-inner { + border: 0; + padding: 0; +} +/* + * 1. Correct inability to style clickable `input` types in iOS. + * 2. Remove margins in Chrome, Safari and Opera. + * 3. Remove borders for `button`. + * 4. Address `overflow` set to `hidden` in IE 8/9/10/11. + * 5. Correct `font` properties and `color` not being inherited for `button`. + * 6. Address inconsistent `text-transform` inheritance which is only inherit in Firefox and IE + * 7. Style + * 8. `line-height` is used to create a height + * 9. `min-height` is necessary for `input` elements in Firefox and Opera because `line-height` is not working. + * 10. Reset button group whitespace hack + * 11. Required for `a`. + */ +.uk-button { + /* 1 */ + -webkit-appearance: none; + /* 2 */ + margin: 0; + /* 3 */ + border: none; + /* 4 */ + overflow: visible; + /* 5 */ + font: inherit; + color: #444444; + /* 6 */ + text-transform: none; + /* 7 */ + display: inline-block; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding: 0 12px; + background: #eeeeee; + vertical-align: middle; + /* 8 */ + line-height: 30px; + /* 9 */ + min-height: 30px; + /* 10 */ + font-size: 1rem; + /* 11 */ + text-decoration: none; + text-align: center; +} +.uk-button:not(:disabled) { + cursor: pointer; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + * 3. Required for `a` elements + */ +.uk-button:hover, +.uk-button:focus { + background-color: #f5f5f5; + color: #444444; + /* 2 */ + outline: none; + /* 3 */ + text-decoration: none; +} +/* Active */ +.uk-button:active, +.uk-button.uk-active { + background-color: #dddddd; + color: #444444; +} +/* Color modifiers + ========================================================================== */ +/* + * Modifier: `uk-button-primary` + */ +.uk-button-primary { + background-color: #00a8e6; + color: #ffffff; +} +/* Hover */ +.uk-button-primary:hover, +.uk-button-primary:focus { + background-color: #35b3ee; + color: #ffffff; +} +/* Active */ +.uk-button-primary:active, +.uk-button-primary.uk-active { + background-color: #0091ca; + color: #ffffff; +} +/* + * Modifier: `uk-button-success` + */ +.uk-button-success { + background-color: #8cc14c; + color: #ffffff; +} +/* Hover */ +.uk-button-success:hover, +.uk-button-success:focus { + background-color: #8ec73b; + color: #ffffff; +} +/* Active */ +.uk-button-success:active, +.uk-button-success.uk-active { + background-color: #72ae41; + color: #ffffff; +} +/* + * Modifier: `uk-button-danger` + */ +.uk-button-danger { + background-color: #da314b; + color: #ffffff; +} +/* Hover */ +.uk-button-danger:hover, +.uk-button-danger:focus { + background-color: #e4354f; + color: #ffffff; +} +/* Active */ +.uk-button-danger:active, +.uk-button-danger.uk-active { + background-color: #c91032; + color: #ffffff; +} +/* Disabled state + * Overrides also the color modifiers + ========================================================================== */ +/* Equal for all button types */ +.uk-button:disabled { + background-color: #f5f5f5; + color: #999999; +} +/* Modifier: `uk-button-link` + ========================================================================== */ +/* Reset */ +.uk-button-link, +.uk-button-link:hover, +.uk-button-link:focus, +.uk-button-link:active, +.uk-button-link.uk-active, +.uk-button-link:disabled { + border-color: transparent; + background: none; +} +/* Color */ +.uk-button-link { + color: #0077dd; +} +.uk-button-link:hover, +.uk-button-link:focus, +.uk-button-link:active, +.uk-button-link.uk-active { + color: #005599; + text-decoration: underline; +} +.uk-button-link:disabled { + color: #999999; +} +/* Focus */ +.uk-button-link:focus { + outline: 1px dotted; +} +/* Size modifiers + ========================================================================== */ +.uk-button-mini { + min-height: 20px; + padding: 0 6px; + line-height: 20px; + font-size: 11px; +} +.uk-button-small { + min-height: 25px; + padding: 0 10px; + line-height: 25px; + font-size: 12px; +} +.uk-button-large { + min-height: 40px; + padding: 0 15px; + line-height: 40px; + font-size: 16px; +} +/* Sub-object `uk-button-group` + ========================================================================== */ +/* + * 1. Behave like buttons + * 2. Create position context for dropdowns + * 3. Remove whitespace between child elements when using `inline-block` + * 4. Prevent buttons from wrapping + * 5. Remove whitespace between child elements when using `inline-block` + */ +.uk-button-group { + /* 1 */ + display: inline-block; + vertical-align: middle; + /* 2 */ + position: relative; + /* 3 */ + font-size: 0.001px; + /* 4 */ + white-space: nowrap; +} +.uk-button-group > * { + display: inline-block; +} +/* 5 */ +.uk-button-group .uk-button { + vertical-align: top; +} +/* Sub-object: `uk-button-dropdown` + ========================================================================== */ +/* + * 1. Behave like buttons + * 2. Create position context for dropdowns + */ +.uk-button-dropdown { + /* 1 */ + display: inline-block; + vertical-align: middle; + /* 2 */ + position: relative; +} +/* ======================================================================== + Component: Icon + ========================================================================== */ +@font-face { + font-family: 'FontAwesome'; + src: url("../fonts/fontawesome-webfont.eot"); + src: url("../fonts/fontawesome-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/fontawesome-webfont.woff2") format('woff2'), url("../fonts/fontawesome-webfont.woff") format("woff"), url("../fonts/fontawesome-webfont.ttf") format("truetype"); + font-weight: normal; + font-style: normal; +} +/* + * 1. Allow margin + * 2. Prevent inherit font style + * 4. Correct line-height + * 5. Better font rendering + * 6. Remove `text-decoration` for anchors + */ +[class*='uk-icon-'] { + font-family: FontAwesome; + /* 1 */ + display: inline-block; + /* 2 */ + font-weight: normal; + font-style: normal; + /* 4 */ + line-height: 1; + /* 5 */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +/* 6 */ +[class*='uk-icon-'], +[class*='uk-icon-']:hover, +[class*='uk-icon-']:focus { + text-decoration: none; +} +/* Size modifiers + ========================================================================== */ +.uk-icon-small { + font-size: 150%; + vertical-align: -10%; +} +.uk-icon-medium { + font-size: 200%; + vertical-align: -16%; +} +.uk-icon-large { + font-size: 250%; + vertical-align: -22%; +} +/* Modifier: `uk-icon-justify` + ========================================================================== */ +.uk-icon-justify { + width: 1em; + text-align: center; +} +/* Modifier: `uk-icon-spin` + ========================================================================== */ +.uk-icon-spin { + display: inline-block; + -webkit-animation: uk-rotate 2s infinite linear; + animation: uk-rotate 2s infinite linear; +} +/* Modifier: `uk-icon-hover` + ========================================================================== */ +.uk-icon-hover { + color: #999999; +} +/* + * Hover + */ +.uk-icon-hover:hover { + color: #444444; +} +/* Modifier: `uk-icon-button` + ========================================================================== */ +.uk-icon-button { + -moz-box-sizing: border-box; + box-sizing: border-box; + display: inline-block; + width: 35px; + height: 35px; + border-radius: 100%; + background: #eeeeee; + line-height: 35px; + color: #444444; + font-size: 18px; + text-align: center; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-icon-button:hover, +.uk-icon-button:focus { + background-color: #f5f5f5; + color: #444444; + /* 2 */ + outline: none; +} +/* Active */ +.uk-icon-button:active { + background-color: #dddddd; + color: #444444; +} +/* Icon mapping + ========================================================================== */ +.uk-icon-glass:before { + content: "\f000"; +} +.uk-icon-music:before { + content: "\f001"; +} +.uk-icon-search:before { + content: "\f002"; +} +.uk-icon-envelope-o:before { + content: "\f003"; +} +.uk-icon-heart:before { + content: "\f004"; +} +.uk-icon-star:before { + content: "\f005"; +} +.uk-icon-star-o:before { + content: "\f006"; +} +.uk-icon-user:before { + content: "\f007"; +} +.uk-icon-film:before { + content: "\f008"; +} +.uk-icon-th-large:before { + content: "\f009"; +} +.uk-icon-th:before { + content: "\f00a"; +} +.uk-icon-th-list:before { + content: "\f00b"; +} +.uk-icon-check:before { + content: "\f00c"; +} +.uk-icon-remove:before, +.uk-icon-close:before, +.uk-icon-times:before { + content: "\f00d"; +} +.uk-icon-search-plus:before { + content: "\f00e"; +} +.uk-icon-search-minus:before { + content: "\f010"; +} +.uk-icon-power-off:before { + content: "\f011"; +} +.uk-icon-signal:before { + content: "\f012"; +} +.uk-icon-gear:before, +.uk-icon-cog:before { + content: "\f013"; +} +.uk-icon-trash-o:before { + content: "\f014"; +} +.uk-icon-home:before { + content: "\f015"; +} +.uk-icon-file-o:before { + content: "\f016"; +} +.uk-icon-clock-o:before { + content: "\f017"; +} +.uk-icon-road:before { + content: "\f018"; +} +.uk-icon-download:before { + content: "\f019"; +} +.uk-icon-arrow-circle-o-down:before { + content: "\f01a"; +} +.uk-icon-arrow-circle-o-up:before { + content: "\f01b"; +} +.uk-icon-inbox:before { + content: "\f01c"; +} +.uk-icon-play-circle-o:before { + content: "\f01d"; +} +.uk-icon-rotate-right:before, +.uk-icon-repeat:before { + content: "\f01e"; +} +.uk-icon-refresh:before { + content: "\f021"; +} +.uk-icon-list-alt:before { + content: "\f022"; +} +.uk-icon-lock:before { + content: "\f023"; +} +.uk-icon-flag:before { + content: "\f024"; +} +.uk-icon-headphones:before { + content: "\f025"; +} +.uk-icon-volume-off:before { + content: "\f026"; +} +.uk-icon-volume-down:before { + content: "\f027"; +} +.uk-icon-volume-up:before { + content: "\f028"; +} +.uk-icon-qrcode:before { + content: "\f029"; +} +.uk-icon-barcode:before { + content: "\f02a"; +} +.uk-icon-tag:before { + content: "\f02b"; +} +.uk-icon-tags:before { + content: "\f02c"; +} +.uk-icon-book:before { + content: "\f02d"; +} +.uk-icon-bookmark:before { + content: "\f02e"; +} +.uk-icon-print:before { + content: "\f02f"; +} +.uk-icon-camera:before { + content: "\f030"; +} +.uk-icon-font:before { + content: "\f031"; +} +.uk-icon-bold:before { + content: "\f032"; +} +.uk-icon-italic:before { + content: "\f033"; +} +.uk-icon-text-height:before { + content: "\f034"; +} +.uk-icon-text-width:before { + content: "\f035"; +} +.uk-icon-align-left:before { + content: "\f036"; +} +.uk-icon-align-center:before { + content: "\f037"; +} +.uk-icon-align-right:before { + content: "\f038"; +} +.uk-icon-align-justify:before { + content: "\f039"; +} +.uk-icon-list:before { + content: "\f03a"; +} +.uk-icon-dedent:before, +.uk-icon-outdent:before { + content: "\f03b"; +} +.uk-icon-indent:before { + content: "\f03c"; +} +.uk-icon-video-camera:before { + content: "\f03d"; +} +.uk-icon-photo:before, +.uk-icon-image:before, +.uk-icon-picture-o:before { + content: "\f03e"; +} +.uk-icon-pencil:before { + content: "\f040"; +} +.uk-icon-map-marker:before { + content: "\f041"; +} +.uk-icon-adjust:before { + content: "\f042"; +} +.uk-icon-tint:before { + content: "\f043"; +} +.uk-icon-edit:before, +.uk-icon-pencil-square-o:before { + content: "\f044"; +} +.uk-icon-share-square-o:before { + content: "\f045"; +} +.uk-icon-check-square-o:before { + content: "\f046"; +} +.uk-icon-arrows:before { + content: "\f047"; +} +.uk-icon-step-backward:before { + content: "\f048"; +} +.uk-icon-fast-backward:before { + content: "\f049"; +} +.uk-icon-backward:before { + content: "\f04a"; +} +.uk-icon-play:before { + content: "\f04b"; +} +.uk-icon-pause:before { + content: "\f04c"; +} +.uk-icon-stop:before { + content: "\f04d"; +} +.uk-icon-forward:before { + content: "\f04e"; +} +.uk-icon-fast-forward:before { + content: "\f050"; +} +.uk-icon-step-forward:before { + content: "\f051"; +} +.uk-icon-eject:before { + content: "\f052"; +} +.uk-icon-chevron-left:before { + content: "\f053"; +} +.uk-icon-chevron-right:before { + content: "\f054"; +} +.uk-icon-plus-circle:before { + content: "\f055"; +} +.uk-icon-minus-circle:before { + content: "\f056"; +} +.uk-icon-times-circle:before { + content: "\f057"; +} +.uk-icon-check-circle:before { + content: "\f058"; +} +.uk-icon-question-circle:before { + content: "\f059"; +} +.uk-icon-info-circle:before { + content: "\f05a"; +} +.uk-icon-crosshairs:before { + content: "\f05b"; +} +.uk-icon-times-circle-o:before { + content: "\f05c"; +} +.uk-icon-check-circle-o:before { + content: "\f05d"; +} +.uk-icon-ban:before { + content: "\f05e"; +} +.uk-icon-arrow-left:before { + content: "\f060"; +} +.uk-icon-arrow-right:before { + content: "\f061"; +} +.uk-icon-arrow-up:before { + content: "\f062"; +} +.uk-icon-arrow-down:before { + content: "\f063"; +} +.uk-icon-mail-forward:before, +.uk-icon-share:before { + content: "\f064"; +} +.uk-icon-expand:before { + content: "\f065"; +} +.uk-icon-compress:before { + content: "\f066"; +} +.uk-icon-plus:before { + content: "\f067"; +} +.uk-icon-minus:before { + content: "\f068"; +} +.uk-icon-asterisk:before { + content: "\f069"; +} +.uk-icon-exclamation-circle:before { + content: "\f06a"; +} +.uk-icon-gift:before { + content: "\f06b"; +} +.uk-icon-leaf:before { + content: "\f06c"; +} +.uk-icon-fire:before { + content: "\f06d"; +} +.uk-icon-eye:before { + content: "\f06e"; +} +.uk-icon-eye-slash:before { + content: "\f070"; +} +.uk-icon-warning:before, +.uk-icon-exclamation-triangle:before { + content: "\f071"; +} +.uk-icon-plane:before { + content: "\f072"; +} +.uk-icon-calendar:before { + content: "\f073"; +} +.uk-icon-random:before { + content: "\f074"; +} +.uk-icon-comment:before { + content: "\f075"; +} +.uk-icon-magnet:before { + content: "\f076"; +} +.uk-icon-chevron-up:before { + content: "\f077"; +} +.uk-icon-chevron-down:before { + content: "\f078"; +} +.uk-icon-retweet:before { + content: "\f079"; +} +.uk-icon-shopping-cart:before { + content: "\f07a"; +} +.uk-icon-folder:before { + content: "\f07b"; +} +.uk-icon-folder-open:before { + content: "\f07c"; +} +.uk-icon-arrows-v:before { + content: "\f07d"; +} +.uk-icon-arrows-h:before { + content: "\f07e"; +} +.uk-icon-bar-chart-o:before, +.uk-icon-bar-chart:before { + content: "\f080"; +} +.uk-icon-twitter-square:before { + content: "\f081"; +} +.uk-icon-facebook-square:before { + content: "\f082"; +} +.uk-icon-camera-retro:before { + content: "\f083"; +} +.uk-icon-key:before { + content: "\f084"; +} +.uk-icon-gears:before, +.uk-icon-cogs:before { + content: "\f085"; +} +.uk-icon-comments:before { + content: "\f086"; +} +.uk-icon-thumbs-o-up:before { + content: "\f087"; +} +.uk-icon-thumbs-o-down:before { + content: "\f088"; +} +.uk-icon-star-half:before { + content: "\f089"; +} +.uk-icon-heart-o:before { + content: "\f08a"; +} +.uk-icon-sign-out:before { + content: "\f08b"; +} +.uk-icon-linkedin-square:before { + content: "\f08c"; +} +.uk-icon-thumb-tack:before { + content: "\f08d"; +} +.uk-icon-external-link:before { + content: "\f08e"; +} +.uk-icon-sign-in:before { + content: "\f090"; +} +.uk-icon-trophy:before { + content: "\f091"; +} +.uk-icon-github-square:before { + content: "\f092"; +} +.uk-icon-upload:before { + content: "\f093"; +} +.uk-icon-lemon-o:before { + content: "\f094"; +} +.uk-icon-phone:before { + content: "\f095"; +} +.uk-icon-square-o:before { + content: "\f096"; +} +.uk-icon-bookmark-o:before { + content: "\f097"; +} +.uk-icon-phone-square:before { + content: "\f098"; +} +.uk-icon-twitter:before { + content: "\f099"; +} +.uk-icon-facebook-f:before, +.uk-icon-facebook:before { + content: "\f09a"; +} +.uk-icon-github:before { + content: "\f09b"; +} +.uk-icon-unlock:before { + content: "\f09c"; +} +.uk-icon-credit-card:before { + content: "\f09d"; +} +.uk-icon-rss:before { + content: "\f09e"; +} +.uk-icon-hdd-o:before { + content: "\f0a0"; +} +.uk-icon-bullhorn:before { + content: "\f0a1"; +} +.uk-icon-bell:before { + content: "\f0f3"; +} +.uk-icon-certificate:before { + content: "\f0a3"; +} +.uk-icon-hand-o-right:before { + content: "\f0a4"; +} +.uk-icon-hand-o-left:before { + content: "\f0a5"; +} +.uk-icon-hand-o-up:before { + content: "\f0a6"; +} +.uk-icon-hand-o-down:before { + content: "\f0a7"; +} +.uk-icon-arrow-circle-left:before { + content: "\f0a8"; +} +.uk-icon-arrow-circle-right:before { + content: "\f0a9"; +} +.uk-icon-arrow-circle-up:before { + content: "\f0aa"; +} +.uk-icon-arrow-circle-down:before { + content: "\f0ab"; +} +.uk-icon-globe:before { + content: "\f0ac"; +} +.uk-icon-wrench:before { + content: "\f0ad"; +} +.uk-icon-tasks:before { + content: "\f0ae"; +} +.uk-icon-filter:before { + content: "\f0b0"; +} +.uk-icon-briefcase:before { + content: "\f0b1"; +} +.uk-icon-arrows-alt:before { + content: "\f0b2"; +} +.uk-icon-group:before, +.uk-icon-users:before { + content: "\f0c0"; +} +.uk-icon-chain:before, +.uk-icon-link:before { + content: "\f0c1"; +} +.uk-icon-cloud:before { + content: "\f0c2"; +} +.uk-icon-flask:before { + content: "\f0c3"; +} +.uk-icon-cut:before, +.uk-icon-scissors:before { + content: "\f0c4"; +} +.uk-icon-copy:before, +.uk-icon-files-o:before { + content: "\f0c5"; +} +.uk-icon-paperclip:before { + content: "\f0c6"; +} +.uk-icon-save:before, +.uk-icon-floppy-o:before { + content: "\f0c7"; +} +.uk-icon-square:before { + content: "\f0c8"; +} +.uk-icon-navicon:before, +.uk-icon-reorder:before, +.uk-icon-bars:before { + content: "\f0c9"; +} +.uk-icon-list-ul:before { + content: "\f0ca"; +} +.uk-icon-list-ol:before { + content: "\f0cb"; +} +.uk-icon-strikethrough:before { + content: "\f0cc"; +} +.uk-icon-underline:before { + content: "\f0cd"; +} +.uk-icon-table:before { + content: "\f0ce"; +} +.uk-icon-magic:before { + content: "\f0d0"; +} +.uk-icon-truck:before { + content: "\f0d1"; +} +.uk-icon-pinterest:before { + content: "\f0d2"; +} +.uk-icon-pinterest-square:before { + content: "\f0d3"; +} +.uk-icon-google-plus-square:before { + content: "\f0d4"; +} +.uk-icon-google-plus:before { + content: "\f0d5"; +} +.uk-icon-money:before { + content: "\f0d6"; +} +.uk-icon-caret-down:before { + content: "\f0d7"; +} +.uk-icon-caret-up:before { + content: "\f0d8"; +} +.uk-icon-caret-left:before { + content: "\f0d9"; +} +.uk-icon-caret-right:before { + content: "\f0da"; +} +.uk-icon-columns:before { + content: "\f0db"; +} +.uk-icon-unsorted:before, +.uk-icon-sort:before { + content: "\f0dc"; +} +.uk-icon-sort-down:before, +.uk-icon-sort-desc:before { + content: "\f0dd"; +} +.uk-icon-sort-up:before, +.uk-icon-sort-asc:before { + content: "\f0de"; +} +.uk-icon-envelope:before { + content: "\f0e0"; +} +.uk-icon-linkedin:before { + content: "\f0e1"; +} +.uk-icon-rotate-left:before, +.uk-icon-undo:before { + content: "\f0e2"; +} +.uk-icon-legal:before, +.uk-icon-gavel:before { + content: "\f0e3"; +} +.uk-icon-dashboard:before, +.uk-icon-tachometer:before { + content: "\f0e4"; +} +.uk-icon-comment-o:before { + content: "\f0e5"; +} +.uk-icon-comments-o:before { + content: "\f0e6"; +} +.uk-icon-flash:before, +.uk-icon-bolt:before { + content: "\f0e7"; +} +.uk-icon-sitemap:before { + content: "\f0e8"; +} +.uk-icon-umbrella:before { + content: "\f0e9"; +} +.uk-icon-paste:before, +.uk-icon-clipboard:before { + content: "\f0ea"; +} +.uk-icon-lightbulb-o:before { + content: "\f0eb"; +} +.uk-icon-exchange:before { + content: "\f0ec"; +} +.uk-icon-cloud-download:before { + content: "\f0ed"; +} +.uk-icon-cloud-upload:before { + content: "\f0ee"; +} +.uk-icon-user-md:before { + content: "\f0f0"; +} +.uk-icon-stethoscope:before { + content: "\f0f1"; +} +.uk-icon-suitcase:before { + content: "\f0f2"; +} +.uk-icon-bell-o:before { + content: "\f0a2"; +} +.uk-icon-coffee:before { + content: "\f0f4"; +} +.uk-icon-cutlery:before { + content: "\f0f5"; +} +.uk-icon-file-text-o:before { + content: "\f0f6"; +} +.uk-icon-building-o:before { + content: "\f0f7"; +} +.uk-icon-hospital-o:before { + content: "\f0f8"; +} +.uk-icon-ambulance:before { + content: "\f0f9"; +} +.uk-icon-medkit:before { + content: "\f0fa"; +} +.uk-icon-fighter-jet:before { + content: "\f0fb"; +} +.uk-icon-beer:before { + content: "\f0fc"; +} +.uk-icon-h-square:before { + content: "\f0fd"; +} +.uk-icon-plus-square:before { + content: "\f0fe"; +} +.uk-icon-angle-double-left:before { + content: "\f100"; +} +.uk-icon-angle-double-right:before { + content: "\f101"; +} +.uk-icon-angle-double-up:before { + content: "\f102"; +} +.uk-icon-angle-double-down:before { + content: "\f103"; +} +.uk-icon-angle-left:before { + content: "\f104"; +} +.uk-icon-angle-right:before { + content: "\f105"; +} +.uk-icon-angle-up:before { + content: "\f106"; +} +.uk-icon-angle-down:before { + content: "\f107"; +} +.uk-icon-desktop:before { + content: "\f108"; +} +.uk-icon-laptop:before { + content: "\f109"; +} +.uk-icon-tablet:before { + content: "\f10a"; +} +.uk-icon-mobile-phone:before, +.uk-icon-mobile:before { + content: "\f10b"; +} +.uk-icon-circle-o:before { + content: "\f10c"; +} +.uk-icon-quote-left:before { + content: "\f10d"; +} +.uk-icon-quote-right:before { + content: "\f10e"; +} +.uk-icon-spinner:before { + content: "\f110"; +} +.uk-icon-circle:before { + content: "\f111"; +} +.uk-icon-mail-reply:before, +.uk-icon-reply:before { + content: "\f112"; +} +.uk-icon-github-alt:before { + content: "\f113"; +} +.uk-icon-folder-o:before { + content: "\f114"; +} +.uk-icon-folder-open-o:before { + content: "\f115"; +} +.uk-icon-smile-o:before { + content: "\f118"; +} +.uk-icon-frown-o:before { + content: "\f119"; +} +.uk-icon-meh-o:before { + content: "\f11a"; +} +.uk-icon-gamepad:before { + content: "\f11b"; +} +.uk-icon-keyboard-o:before { + content: "\f11c"; +} +.uk-icon-flag-o:before { + content: "\f11d"; +} +.uk-icon-flag-checkered:before { + content: "\f11e"; +} +.uk-icon-terminal:before { + content: "\f120"; +} +.uk-icon-code:before { + content: "\f121"; +} +.uk-icon-mail-reply-all:before, +.uk-icon-reply-all:before { + content: "\f122"; +} +.uk-icon-star-half-empty:before, +.uk-icon-star-half-full:before, +.uk-icon-star-half-o:before { + content: "\f123"; +} +.uk-icon-location-arrow:before { + content: "\f124"; +} +.uk-icon-crop:before { + content: "\f125"; +} +.uk-icon-code-fork:before { + content: "\f126"; +} +.uk-icon-unlink:before, +.uk-icon-chain-broken:before { + content: "\f127"; +} +.uk-icon-question:before { + content: "\f128"; +} +.uk-icon-info:before { + content: "\f129"; +} +.uk-icon-exclamation:before { + content: "\f12a"; +} +.uk-icon-superscript:before { + content: "\f12b"; +} +.uk-icon-subscript:before { + content: "\f12c"; +} +.uk-icon-eraser:before { + content: "\f12d"; +} +.uk-icon-puzzle-piece:before { + content: "\f12e"; +} +.uk-icon-microphone:before { + content: "\f130"; +} +.uk-icon-microphone-slash:before { + content: "\f131"; +} +.uk-icon-shield:before { + content: "\f132"; +} +.uk-icon-calendar-o:before { + content: "\f133"; +} +.uk-icon-fire-extinguisher:before { + content: "\f134"; +} +.uk-icon-rocket:before { + content: "\f135"; +} +.uk-icon-maxcdn:before { + content: "\f136"; +} +.uk-icon-chevron-circle-left:before { + content: "\f137"; +} +.uk-icon-chevron-circle-right:before { + content: "\f138"; +} +.uk-icon-chevron-circle-up:before { + content: "\f139"; +} +.uk-icon-chevron-circle-down:before { + content: "\f13a"; +} +.uk-icon-html5:before { + content: "\f13b"; +} +.uk-icon-css3:before { + content: "\f13c"; +} +.uk-icon-anchor:before { + content: "\f13d"; +} +.uk-icon-unlock-alt:before { + content: "\f13e"; +} +.uk-icon-bullseye:before { + content: "\f140"; +} +.uk-icon-ellipsis-h:before { + content: "\f141"; +} +.uk-icon-ellipsis-v:before { + content: "\f142"; +} +.uk-icon-rss-square:before { + content: "\f143"; +} +.uk-icon-play-circle:before { + content: "\f144"; +} +.uk-icon-ticket:before { + content: "\f145"; +} +.uk-icon-minus-square:before { + content: "\f146"; +} +.uk-icon-minus-square-o:before { + content: "\f147"; +} +.uk-icon-level-up:before { + content: "\f148"; +} +.uk-icon-level-down:before { + content: "\f149"; +} +.uk-icon-check-square:before { + content: "\f14a"; +} +.uk-icon-pencil-square:before { + content: "\f14b"; +} +.uk-icon-external-link-square:before { + content: "\f14c"; +} +.uk-icon-share-square:before { + content: "\f14d"; +} +.uk-icon-compass:before { + content: "\f14e"; +} +.uk-icon-toggle-down:before, +.uk-icon-caret-square-o-down:before { + content: "\f150"; +} +.uk-icon-toggle-up:before, +.uk-icon-caret-square-o-up:before { + content: "\f151"; +} +.uk-icon-toggle-right:before, +.uk-icon-caret-square-o-right:before { + content: "\f152"; +} +.uk-icon-euro:before, +.uk-icon-eur:before { + content: "\f153"; +} +.uk-icon-gbp:before { + content: "\f154"; +} +.uk-icon-dollar:before, +.uk-icon-usd:before { + content: "\f155"; +} +.uk-icon-rupee:before, +.uk-icon-inr:before { + content: "\f156"; +} +.uk-icon-cny:before, +.uk-icon-rmb:before, +.uk-icon-yen:before, +.uk-icon-jpy:before { + content: "\f157"; +} +.uk-icon-ruble:before, +.uk-icon-rouble:before, +.uk-icon-rub:before { + content: "\f158"; +} +.uk-icon-won:before, +.uk-icon-krw:before { + content: "\f159"; +} +.uk-icon-bitcoin:before, +.uk-icon-btc:before { + content: "\f15a"; +} +.uk-icon-file:before { + content: "\f15b"; +} +.uk-icon-file-text:before { + content: "\f15c"; +} +.uk-icon-sort-alpha-asc:before { + content: "\f15d"; +} +.uk-icon-sort-alpha-desc:before { + content: "\f15e"; +} +.uk-icon-sort-amount-asc:before { + content: "\f160"; +} +.uk-icon-sort-amount-desc:before { + content: "\f161"; +} +.uk-icon-sort-numeric-asc:before { + content: "\f162"; +} +.uk-icon-sort-numeric-desc:before { + content: "\f163"; +} +.uk-icon-thumbs-up:before { + content: "\f164"; +} +.uk-icon-thumbs-down:before { + content: "\f165"; +} +.uk-icon-youtube-square:before { + content: "\f166"; +} +.uk-icon-youtube:before { + content: "\f167"; +} +.uk-icon-xing:before { + content: "\f168"; +} +.uk-icon-xing-square:before { + content: "\f169"; +} +.uk-icon-youtube-play:before { + content: "\f16a"; +} +.uk-icon-dropbox:before { + content: "\f16b"; +} +.uk-icon-stack-overflow:before { + content: "\f16c"; +} +.uk-icon-instagram:before { + content: "\f16d"; +} +.uk-icon-flickr:before { + content: "\f16e"; +} +.uk-icon-adn:before { + content: "\f170"; +} +.uk-icon-bitbucket:before { + content: "\f171"; +} +.uk-icon-bitbucket-square:before { + content: "\f172"; +} +.uk-icon-tumblr:before { + content: "\f173"; +} +.uk-icon-tumblr-square:before { + content: "\f174"; +} +.uk-icon-long-arrow-down:before { + content: "\f175"; +} +.uk-icon-long-arrow-up:before { + content: "\f176"; +} +.uk-icon-long-arrow-left:before { + content: "\f177"; +} +.uk-icon-long-arrow-right:before { + content: "\f178"; +} +.uk-icon-apple:before { + content: "\f179"; +} +.uk-icon-windows:before { + content: "\f17a"; +} +.uk-icon-android:before { + content: "\f17b"; +} +.uk-icon-linux:before { + content: "\f17c"; +} +.uk-icon-dribbble:before { + content: "\f17d"; +} +.uk-icon-skype:before { + content: "\f17e"; +} +.uk-icon-foursquare:before { + content: "\f180"; +} +.uk-icon-trello:before { + content: "\f181"; +} +.uk-icon-female:before { + content: "\f182"; +} +.uk-icon-male:before { + content: "\f183"; +} +.uk-icon-gittip:before, +.uk-icon-gratipay:before { + content: "\f184"; +} +.uk-icon-sun-o:before { + content: "\f185"; +} +.uk-icon-moon-o:before { + content: "\f186"; +} +.uk-icon-archive:before { + content: "\f187"; +} +.uk-icon-bug:before { + content: "\f188"; +} +.uk-icon-vk:before { + content: "\f189"; +} +.uk-icon-weibo:before { + content: "\f18a"; +} +.uk-icon-renren:before { + content: "\f18b"; +} +.uk-icon-pagelines:before { + content: "\f18c"; +} +.uk-icon-stack-exchange:before { + content: "\f18d"; +} +.uk-icon-arrow-circle-o-right:before { + content: "\f18e"; +} +.uk-icon-arrow-circle-o-left:before { + content: "\f190"; +} +.uk-icon-toggle-left:before, +.uk-icon-caret-square-o-left:before { + content: "\f191"; +} +.uk-icon-dot-circle-o:before { + content: "\f192"; +} +.uk-icon-wheelchair:before { + content: "\f193"; +} +.uk-icon-vimeo-square:before { + content: "\f194"; +} +.uk-icon-turkish-lira:before, +.uk-icon-try:before { + content: "\f195"; +} +.uk-icon-plus-square-o:before { + content: "\f196"; +} +.uk-icon-space-shuttle:before { + content: "\f197"; +} +.uk-icon-slack:before { + content: "\f198"; +} +.uk-icon-envelope-square:before { + content: "\f199"; +} +.uk-icon-wordpress:before { + content: "\f19a"; +} +.uk-icon-openid:before { + content: "\f19b"; +} +.uk-icon-institution:before, +.uk-icon-bank:before, +.uk-icon-university:before { + content: "\f19c"; +} +.uk-icon-mortar-board:before, +.uk-icon-graduation-cap:before { + content: "\f19d"; +} +.uk-icon-yahoo:before { + content: "\f19e"; +} +.uk-icon-google:before { + content: "\f1a0"; +} +.uk-icon-reddit:before { + content: "\f1a1"; +} +.uk-icon-reddit-square:before { + content: "\f1a2"; +} +.uk-icon-stumbleupon-circle:before { + content: "\f1a3"; +} +.uk-icon-stumbleupon:before { + content: "\f1a4"; +} +.uk-icon-delicious:before { + content: "\f1a5"; +} +.uk-icon-digg:before { + content: "\f1a6"; +} +.uk-icon-pied-piper:before { + content: "\f1a7"; +} +.uk-icon-pied-piper-alt:before { + content: "\f1a8"; +} +.uk-icon-drupal:before { + content: "\f1a9"; +} +.uk-icon-joomla:before { + content: "\f1aa"; +} +.uk-icon-language:before { + content: "\f1ab"; +} +.uk-icon-fax:before { + content: "\f1ac"; +} +.uk-icon-building:before { + content: "\f1ad"; +} +.uk-icon-child:before { + content: "\f1ae"; +} +.uk-icon-paw:before { + content: "\f1b0"; +} +.uk-icon-spoon:before { + content: "\f1b1"; +} +.uk-icon-cube:before { + content: "\f1b2"; +} +.uk-icon-cubes:before { + content: "\f1b3"; +} +.uk-icon-behance:before { + content: "\f1b4"; +} +.uk-icon-behance-square:before { + content: "\f1b5"; +} +.uk-icon-steam:before { + content: "\f1b6"; +} +.uk-icon-steam-square:before { + content: "\f1b7"; +} +.uk-icon-recycle:before { + content: "\f1b8"; +} +.uk-icon-automobile:before, +.uk-icon-car:before { + content: "\f1b9"; +} +.uk-icon-cab:before, +.uk-icon-taxi:before { + content: "\f1ba"; +} +.uk-icon-tree:before { + content: "\f1bb"; +} +.uk-icon-spotify:before { + content: "\f1bc"; +} +.uk-icon-deviantart:before { + content: "\f1bd"; +} +.uk-icon-soundcloud:before { + content: "\f1be"; +} +.uk-icon-database:before { + content: "\f1c0"; +} +.uk-icon-file-pdf-o:before { + content: "\f1c1"; +} +.uk-icon-file-word-o:before { + content: "\f1c2"; +} +.uk-icon-file-excel-o:before { + content: "\f1c3"; +} +.uk-icon-file-powerpoint-o:before { + content: "\f1c4"; +} +.uk-icon-file-photo-o:before, +.uk-icon-file-picture-o:before, +.uk-icon-file-image-o:before { + content: "\f1c5"; +} +.uk-icon-file-zip-o:before, +.uk-icon-file-archive-o:before { + content: "\f1c6"; +} +.uk-icon-file-sound-o:before, +.uk-icon-file-audio-o:before { + content: "\f1c7"; +} +.uk-icon-file-movie-o:before, +.uk-icon-file-video-o:before { + content: "\f1c8"; +} +.uk-icon-file-code-o:before { + content: "\f1c9"; +} +.uk-icon-vine:before { + content: "\f1ca"; +} +.uk-icon-codepen:before { + content: "\f1cb"; +} +.uk-icon-jsfiddle:before { + content: "\f1cc"; +} +.uk-icon-life-bouy:before, +.uk-icon-life-buoy:before, +.uk-icon-life-saver:before, +.uk-icon-support:before, +.uk-icon-life-ring:before { + content: "\f1cd"; +} +.uk-icon-circle-o-notch:before { + content: "\f1ce"; +} +.uk-icon-ra:before, +.uk-icon-rebel:before { + content: "\f1d0"; +} +.uk-icon-ge:before, +.uk-icon-empire:before { + content: "\f1d1"; +} +.uk-icon-git-square:before { + content: "\f1d2"; +} +.uk-icon-git:before { + content: "\f1d3"; +} +.uk-icon-hacker-news:before { + content: "\f1d4"; +} +.uk-icon-tencent-weibo:before { + content: "\f1d5"; +} +.uk-icon-qq:before { + content: "\f1d6"; +} +.uk-icon-wechat:before, +.uk-icon-weixin:before { + content: "\f1d7"; +} +.uk-icon-send:before, +.uk-icon-paper-plane:before { + content: "\f1d8"; +} +.uk-icon-send-o:before, +.uk-icon-paper-plane-o:before { + content: "\f1d9"; +} +.uk-icon-history:before { + content: "\f1da"; +} +.uk-icon-genderless:before, +.uk-icon-circle-thin:before { + content: "\f1db"; +} +.uk-icon-header:before { + content: "\f1dc"; +} +.uk-icon-paragraph:before { + content: "\f1dd"; +} +.uk-icon-sliders:before { + content: "\f1de"; +} +.uk-icon-share-alt:before { + content: "\f1e0"; +} +.uk-icon-share-alt-square:before { + content: "\f1e1"; +} +.uk-icon-bomb:before { + content: "\f1e2"; +} +.uk-icon-soccer-ball-o:before, +.uk-icon-futbol-o:before { + content: "\f1e3"; +} +.uk-icon-tty:before { + content: "\f1e4"; +} +.uk-icon-binoculars:before { + content: "\f1e5"; +} +.uk-icon-plug:before { + content: "\f1e6"; +} +.uk-icon-slideshare:before { + content: "\f1e7"; +} +.uk-icon-twitch:before { + content: "\f1e8"; +} +.uk-icon-yelp:before { + content: "\f1e9"; +} +.uk-icon-newspaper-o:before { + content: "\f1ea"; +} +.uk-icon-wifi:before { + content: "\f1eb"; +} +.uk-icon-calculator:before { + content: "\f1ec"; +} +.uk-icon-paypal:before { + content: "\f1ed"; +} +.uk-icon-google-wallet:before { + content: "\f1ee"; +} +.uk-icon-cc-visa:before { + content: "\f1f0"; +} +.uk-icon-cc-mastercard:before { + content: "\f1f1"; +} +.uk-icon-cc-discover:before { + content: "\f1f2"; +} +.uk-icon-cc-amex:before { + content: "\f1f3"; +} +.uk-icon-cc-paypal:before { + content: "\f1f4"; +} +.uk-icon-cc-stripe:before { + content: "\f1f5"; +} +.uk-icon-bell-slash:before { + content: "\f1f6"; +} +.uk-icon-bell-slash-o:before { + content: "\f1f7"; +} +.uk-icon-trash:before { + content: "\f1f8"; +} +.uk-icon-copyright:before { + content: "\f1f9"; +} +.uk-icon-at:before { + content: "\f1fa"; +} +.uk-icon-eyedropper:before { + content: "\f1fb"; +} +.uk-icon-paint-brush:before { + content: "\f1fc"; +} +.uk-icon-birthday-cake:before { + content: "\f1fd"; +} +.uk-icon-area-chart:before { + content: "\f1fe"; +} +.uk-icon-pie-chart:before { + content: "\f200"; +} +.uk-icon-line-chart:before { + content: "\f201"; +} +.uk-icon-lastfm:before { + content: "\f202"; +} +.uk-icon-lastfm-square:before { + content: "\f203"; +} +.uk-icon-toggle-off:before { + content: "\f204"; +} +.uk-icon-toggle-on:before { + content: "\f205"; +} +.uk-icon-bicycle:before { + content: "\f206"; +} +.uk-icon-bus:before { + content: "\f207"; +} +.uk-icon-ioxhost:before { + content: "\f208"; +} +.uk-icon-angellist:before { + content: "\f209"; +} +.uk-icon-cc:before { + content: "\f20a"; +} +.uk-icon-shekel:before, +.uk-icon-sheqel:before, +.uk-icon-ils:before { + content: "\f20b"; +} +.uk-icon-meanpath:before { + content: "\f20c"; +} +.uk-icon-buysellads:before { + content: "\f20d"; +} +.uk-icon-connectdevelop:before { + content: "\f20e"; +} +.uk-icon-dashcube:before { + content: "\f210"; +} +.uk-icon-forumbee:before { + content: "\f211"; +} +.uk-icon-leanpub:before { + content: "\f212"; +} +.uk-icon-sellsy:before { + content: "\f213"; +} +.uk-icon-shirtsinbulk:before { + content: "\f214"; +} +.uk-icon-simplybuilt:before { + content: "\f215"; +} +.uk-icon-skyatlas:before { + content: "\f216"; +} +.uk-icon-cart-plus:before { + content: "\f217"; +} +.uk-icon-cart-arrow-down:before { + content: "\f218"; +} +.uk-icon-diamond:before { + content: "\f219"; +} +.uk-icon-ship:before { + content: "\f21a"; +} +.uk-icon-user-secret:before { + content: "\f21b"; +} +.uk-icon-motorcycle:before { + content: "\f21c"; +} +.uk-icon-street-view:before { + content: "\f21d"; +} +.uk-icon-heartbeat:before { + content: "\f21e"; +} +.uk-icon-venus:before { + content: "\f221"; +} +.uk-icon-mars:before { + content: "\f222"; +} +.uk-icon-mercury:before { + content: "\f223"; +} +.uk-icon-transgender:before { + content: "\f224"; +} +.uk-icon-transgender-alt:before { + content: "\f225"; +} +.uk-icon-venus-double:before { + content: "\f226"; +} +.uk-icon-mars-double:before { + content: "\f227"; +} +.uk-icon-venus-mars:before { + content: "\f228"; +} +.uk-icon-mars-stroke:before { + content: "\f229"; +} +.uk-icon-mars-stroke-v:before { + content: "\f22a"; +} +.uk-icon-mars-stroke-h:before { + content: "\f22b"; +} +.uk-icon-neuter:before { + content: "\f22c"; +} +.uk-icon-facebook-official:before { + content: "\f230"; +} +.uk-icon-pinterest-p:before { + content: "\f231"; +} +.uk-icon-whatsapp:before { + content: "\f232"; +} +.uk-icon-server:before { + content: "\f233"; +} +.uk-icon-user-plus:before { + content: "\f234"; +} +.uk-icon-user-times:before { + content: "\f235"; +} +.uk-icon-hotel:before, +.uk-icon-bed:before { + content: "\f236"; +} +.uk-icon-viacoin:before { + content: "\f237"; +} +.uk-icon-train:before { + content: "\f238"; +} +.uk-icon-subway:before { + content: "\f239"; +} +.uk-icon-medium-logo:before { + content: "\f23a"; +} +/* ======================================================================== + Component: Close + ========================================================================== */ +/* + * Removes inner padding and border in Firefox 4+. + */ +.uk-close::-moz-focus-inner { + border: 0; + padding: 0; +} +/* + * 1. Correct inability to style clickable `input` types in iOS. + * 2. Remove margins in Chrome, Safari and Opera. + * 3. Remove borders for `button`. + * 4. Address `overflow` set to `hidden` in IE 8/9/10/11. + * 5. Correct `font` properties and `color` not being inherited for `button`. + * 6. Address inconsistent `text-transform` inheritance which is only inherit in Firefox and IE + * 7. Remove default `button` padding and background color + * 8. Style + */ +.uk-close { + /* 1 */ + -webkit-appearance: none; + /* 2 */ + margin: 0; + /* 3 */ + border: none; + /* 4 */ + overflow: visible; + /* 5 */ + font: inherit; + color: inherit; + /* 6 */ + text-transform: none; + /* 7. */ + padding: 0; + background: transparent; + /* 8 */ + display: inline-block; + -moz-box-sizing: content-box; + box-sizing: content-box; + width: 20px; + line-height: 20px; + text-align: center; + vertical-align: middle; + opacity: 0.3; +} +/* Icon */ +.uk-close:after { + display: block; + content: "\f00d"; + font-family: FontAwesome; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + * 3. Required for `a` elements + */ +.uk-close:hover, +.uk-close:focus { + opacity: 0.5; + /* 2 */ + outline: none; + /* 3 */ + color: inherit; + text-decoration: none; + cursor: pointer; +} +/* Modifier + ========================================================================== */ +.uk-close-alt { + padding: 2px; + border-radius: 50%; + background: #eeeeee; + opacity: 1; +} +/* Hover */ +.uk-close-alt:hover, +.uk-close-alt:focus { + opacity: 1; +} +/* Icon */ +.uk-close-alt:after { + opacity: 0.5; +} +.uk-close-alt:hover:after, +.uk-close-alt:focus:after { + opacity: 0.8; +} +/* ======================================================================== + Component: Badge + ========================================================================== */ +.uk-badge { + display: inline-block; + padding: 0 5px; + background: #00a8e6; + font-size: 10px; + font-weight: bold; + line-height: 14px; + color: #ffffff; + text-align: center; + vertical-align: middle; + text-transform: none; +} +/* + * Keep color when badge is a link + */ +a.uk-badge:hover { + color: #ffffff; +} +/* Modifier: `uk-badge-notification`; + ========================================================================== */ +.uk-badge-notification { + -moz-box-sizing: border-box; + box-sizing: border-box; + min-width: 18px; + border-radius: 500px; + font-size: 12px; + line-height: 18px; +} +/* Color modifier + ========================================================================== */ +/* + * Modifier: `uk-badge-success` + */ +.uk-badge-success { + background-color: #8cc14c; +} +/* + * Modifier: `uk-badge-warning` + */ +.uk-badge-warning { + background-color: #faa732; +} +/* + * Modifier: `uk-badge-danger` + */ +.uk-badge-danger { + background-color: #da314b; +} +/* ======================================================================== + Component: Alert + ========================================================================== */ +.uk-alert { + margin-bottom: 15px; + padding: 10px; + background: #ebf7fd; + color: #2d7091; +} +/* + * Add margin if adjacent element + */ +* + .uk-alert { + margin-top: 15px; +} +/* + * Remove margin from the last-child + */ +.uk-alert > :last-child { + margin-bottom: 0; +} +/* + * Keep color for headings if the default heading color is changed + */ +.uk-alert h1, +.uk-alert h2, +.uk-alert h3, +.uk-alert h4, +.uk-alert h5, +.uk-alert h6 { + color: inherit; +} +/* Close in alert + ========================================================================== */ +.uk-alert > .uk-close:first-child { + float: right; +} +/* + * Remove margin from adjacent element + */ +.uk-alert > .uk-close:first-child + * { + margin-top: 0; +} +/* Modifier: `uk-alert-success` + ========================================================================== */ +.uk-alert-success { + background: #f2fae3; + color: #659f13; +} +/* Modifier: `uk-alert-warning` + ========================================================================== */ +.uk-alert-warning { + background: #fffceb; + color: #e28327; +} +/* Modifier: `uk-alert-danger` + ========================================================================== */ +.uk-alert-danger { + background: #fff1f0; + color: #d85030; +} +/* Modifier: `uk-alert-large` + ========================================================================== */ +.uk-alert-large { + padding: 20px; +} +.uk-alert-large > .uk-close:first-child { + margin: -10px -10px 0 0; +} +/* ======================================================================== + Component: Thumbnail + ========================================================================== */ +/* + * 1. Container width fits its content + * 2. Responsive behavior + * 3. Corrects `max-width` behavior sed + * 4. Required for `figure` element + * 5. Style + */ +.uk-thumbnail { + /* 1 */ + display: inline-block; + /* 2 */ + max-width: 100%; + /* 3 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 3 */ + margin: 0; + /* 4 */ + padding: 4px; + border: 1px solid #dddddd; + background: #ffffff; +} +/* + * Hover state for `a` elements + * 1. Apply hover style also to focus state + * 2. Needed for caption + * 3. Remove default focus style + */ +a.uk-thumbnail:hover, +a.uk-thumbnail:focus { + border-color: #aaaaaa; + background-color: #ffffff; + /* 2 */ + text-decoration: none; + /* 3 */ + outline: none; +} +/* Caption + ========================================================================== */ +.uk-thumbnail-caption { + padding-top: 4px; + text-align: center; + color: #444444; +} +/* Sizes + ========================================================================== */ +.uk-thumbnail-mini { + width: 150px; +} +.uk-thumbnail-small { + width: 200px; +} +.uk-thumbnail-medium { + width: 300px; +} +.uk-thumbnail-large { + width: 400px; +} +.uk-thumbnail-expand, +.uk-thumbnail-expand > img { + width: 100%; +} +/* ======================================================================== + Component: Overlay + ========================================================================== */ +/* + * 1. Container width fits its content + * 2. Create position context + * 3. Set max-width for responsive images to prevent `inline-block` consequences + * 4. Remove the gap between the container and its child element + * 5. Needed for transitions and to fixed wrong scaling calculation for images in Chrome + * 6. Fixed `overflow: hidden` to be ignored with border-radius and CSS transforms in Webkit + * 7. Reset margin + */ +.uk-overlay { + /* 1 */ + display: inline-block; + /* 2 */ + position: relative; + /* 3 */ + max-width: 100%; + /* 4 */ + vertical-align: middle; + /* 5 */ + overflow: hidden; + /* 6 */ + -webkit-transform: translateZ(0); + /* 7 */ + margin: 0; +} +/* 6 for Safari */ +.uk-overlay.uk-border-circle { + -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%); +} +/* + * Remove margin from content + */ +.uk-overlay > :first-child { + margin-bottom: 0; +} +/* Sub-object `uk-overlay-panel` + ========================================================================== */ +/* + * 1. Position cover + * 2. Style + */ +.uk-overlay-panel { + /* 1 */ + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + /* 2 */ + padding: 20px; + color: #ffffff; +} +/* + * Remove margin from the last-child + */ +.uk-overlay-panel > :last-child, +.uk-overlay-panel.uk-flex > * > :last-child { + margin-bottom: 0; +} +/* + * Keep color for headings if the default heading color is changed + */ +.uk-overlay-panel h1, +.uk-overlay-panel h2, +.uk-overlay-panel h3, +.uk-overlay-panel h4, +.uk-overlay-panel h5, +.uk-overlay-panel h6 { + color: inherit; +} +.uk-overlay-panel a:not([class]) { + color: inherit; + text-decoration: underline; +} +.uk-overlay-panel a[class*='uk-icon-']:not(.uk-icon-button) { + color: inherit; +} +/* Sub-object `uk-overlay-hover` and `uk-overlay-active` + ========================================================================== */ +.uk-overlay-hover:not(:hover):not(.uk-hover) .uk-overlay-panel:not(.uk-ignore) { + opacity: 0; +} +.uk-overlay-active :not(.uk-active) > .uk-overlay-panel:not(.uk-ignore) { + opacity: 0; +} +/* Modifier `uk-overlay-background` + ========================================================================== */ +.uk-overlay-background { + background: rgba(0, 0, 0, 0.5); +} +/* Modifier `uk-overlay-image` + ========================================================================== */ +/* + * Reset panel + */ +.uk-overlay-image { + padding: 0; +} +/* Position modifiers + ========================================================================== */ +.uk-overlay-top { + bottom: auto; +} +.uk-overlay-bottom { + top: auto; +} +.uk-overlay-left { + right: auto; +} +.uk-overlay-right { + left: auto; +} +/* Sub-object `uk-overlay-icon` + ========================================================================== */ +.uk-overlay-icon:before { + content: "\f002"; + position: absolute; + top: 50%; + left: 50%; + width: 50px; + height: 50px; + margin-top: -25px; + margin-left: -25px; + font-size: 50px; + line-height: 1; + font-family: FontAwesome; + text-align: center; + color: #ffffff; +} +/* Transitions + ========================================================================== */ +.uk-overlay-fade, +.uk-overlay-scale, +.uk-overlay-spin, +.uk-overlay-grayscale, +.uk-overlay-blur, +[class*='uk-overlay-slide'] { + transition-duration: 0.3s; + transition-timing-function: ease-out; + transition-property: opacity transform filter; +} +.uk-overlay-active .uk-overlay-fade, +.uk-overlay-active .uk-overlay-scale, +.uk-overlay-active .uk-overlay-spin, +.uk-overlay-active [class*='uk-overlay-slide'] { + transition-duration: 0.8s; +} +/* + * Fade + */ +.uk-overlay-fade { + opacity: 0.7; +} +.uk-overlay-hover:hover .uk-overlay-fade, +.uk-overlay-active .uk-active > .uk-overlay-fade { + opacity: 1; +} +/* + * Scale + */ +.uk-overlay-scale { + -webkit-transform: scale(1); + transform: scale(1); +} +.uk-overlay-hover:hover .uk-overlay-scale, +.uk-overlay-active .uk-active > .uk-overlay-scale { + -webkit-transform: scale(1.1); + transform: scale(1.1); +} +/* + * Spin + */ +.uk-overlay-spin { + -webkit-transform: scale(1) rotate(0deg); + transform: scale(1) rotate(0deg); +} +.uk-overlay-hover:hover .uk-overlay-spin, +.uk-overlay-active .uk-active > .uk-overlay-spin { + -webkit-transform: scale(1.1) rotate(3deg); + transform: scale(1.1) rotate(3deg); +} +/* + * Grayscale + */ +.uk-overlay-grayscale { + -webkit-filter: grayscale(100%); + filter: grayscale(100%); +} +.uk-overlay-hover:hover .uk-overlay-grayscale, +.uk-overlay-active .uk-active > .uk-overlay-grayscale { + -webkit-filter: grayscale(0%); + filter: grayscale(0%); +} +/* + * Slide + */ +[class*='uk-overlay-slide'] { + opacity: 0; +} +/* Top */ +.uk-overlay-slide-top { + -webkit-transform: translateY(-100%); + transform: translateY(-100%); +} +/* Bottom */ +.uk-overlay-slide-bottom { + -webkit-transform: translateY(100%); + transform: translateY(100%); +} +/* Left */ +.uk-overlay-slide-left { + -webkit-transform: translateX(-100%); + transform: translateX(-100%); +} +/* Right */ +.uk-overlay-slide-right { + -webkit-transform: translateX(100%); + transform: translateX(100%); +} +/* Hover */ +.uk-overlay-hover:hover [class*='uk-overlay-slide'], +.uk-overlay-active .uk-active > [class*='uk-overlay-slide'] { + opacity: 1; + -webkit-transform: translateX(0) translateY(0); + transform: translateX(0) translateY(0); +} +/* DEPRECATED + * Sub-object `uk-overlay-area` + ========================================================================== */ +/* + * 1. Set position + * 2. Set style + * 3. Fade-in transition + */ +.uk-overlay-area { + /* 1 */ + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + /* 2 */ + background: rgba(0, 0, 0, 0.3); + /* 3 */ + opacity: 0; + -webkit-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; + -webkit-transform: translate3d(0, 0, 0); +} +/* + * Hover + * 1. `uk-hover` to support touch devices + * 2. Use optional `uk-overlay-toggle` to trigger the overlay earlier + */ +.uk-overlay:hover .uk-overlay-area, +.uk-overlay.uk-hover .uk-overlay-area, +.uk-overlay-toggle:hover .uk-overlay-area, +.uk-overlay-toggle.uk-hover .uk-overlay-area { + opacity: 1; +} +/* + * Icon + */ +.uk-overlay-area:empty:before { + content: "\f002"; + position: absolute; + top: 50%; + left: 50%; + width: 50px; + height: 50px; + margin-top: -25px; + margin-left: -25px; + font-size: 50px; + line-height: 1; + font-family: FontAwesome; + text-align: center; + color: #ffffff; +} +/* DEPRECATED + * Sub-object `uk-overlay-area-content` + ========================================================================== */ +/* + * Remove whitespace between child elements when using `inline-block` + * Needed for Firefox + */ +.uk-overlay-area:not(:empty) { + font-size: 0.001px; +} +/* + * 1. Needed for vertical alignment + */ +.uk-overlay-area:not(:empty):before { + content: ''; + display: inline-block; + height: 100%; + vertical-align: middle; +} +/* + * 1. Set vertical alignment + * 2. Reset whitespace hack + * 3. Set horizontal alignment + * 4. Set style + */ +.uk-overlay-area-content { + /* 1 */ + display: inline-block; + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 100%; + vertical-align: middle; + /* 2 */ + font-size: 1rem; + /* 3 */ + text-align: center; + /* 4 */ + padding: 0 15px; + color: #ffffff; +} +/* + * Remove margin from the last-child + */ +.uk-overlay-area-content > :last-child { + margin-bottom: 0; +} +/* + * Links in overlay area + */ +.uk-overlay-area-content a:not([class]), +.uk-overlay-area-content a:not([class]):hover { + color: inherit; +} +/* DEPRECATED + * Sub-object `uk-overlay-caption` + ========================================================================== */ +/* + * 1. Set position + * 2. Set style + * 3. Fade-in transition + */ +.uk-overlay-caption { + /* 1 */ + position: absolute; + bottom: 0; + left: 0; + right: 0; + /* 2 */ + padding: 15px; + background: rgba(0, 0, 0, 0.5); + color: #ffffff; + /* 3 */ + opacity: 0; + -webkit-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; + -webkit-transform: translate3d(0, 0, 0); +} +/* + * Hover + * 1. `uk-hover` to support touch devices + * 2. Use optional `uk-overlay-toggle` to trigger the overlay earlier + */ +.uk-overlay:hover .uk-overlay-caption, +.uk-overlay.uk-hover .uk-overlay-caption, +.uk-overlay-toggle:hover .uk-overlay-caption, +.uk-overlay-toggle.uk-hover .uk-overlay-caption { + opacity: 1; +} +/* ======================================================================== + Component: Animation + ========================================================================== */ +[class*='uk-animation-'] { + -webkit-animation-duration: 0.5s; + animation-duration: 0.5s; + -webkit-animation-timing-function: ease-out; + animation-timing-function: ease-out; + -webkit-animation-fill-mode: both; + animation-fill-mode: both; +} +/* Hide animated element if scrollspy is used */ +@media screen { + [data-uk-scrollspy*='uk-animation-']:not([data-uk-scrollspy*='target']) { + opacity: 0; + } +} +/* + * Fade + * Higher specificity (!important) needed because of reverse modifier + */ +.uk-animation-fade { + -webkit-animation-name: uk-fade; + animation-name: uk-fade; + -webkit-animation-duration: 0.8s; + animation-duration: 0.8s; + -webkit-animation-timing-function: linear !important; + animation-timing-function: linear !important; +} +/* + * Fade with scale + */ +.uk-animation-scale-up { + -webkit-animation-name: uk-fade-scale-02; + animation-name: uk-fade-scale-02; +} +.uk-animation-scale-down { + -webkit-animation-name: uk-fade-scale-18; + animation-name: uk-fade-scale-18; +} +/* + * Fade with slide + */ +.uk-animation-slide-top { + -webkit-animation-name: uk-fade-top; + animation-name: uk-fade-top; +} +.uk-animation-slide-bottom { + -webkit-animation-name: uk-fade-bottom; + animation-name: uk-fade-bottom; +} +.uk-animation-slide-left { + -webkit-animation-name: uk-fade-left; + animation-name: uk-fade-left; +} +.uk-animation-slide-right { + -webkit-animation-name: uk-fade-right; + animation-name: uk-fade-right; +} +/* + * Scale + */ +.uk-animation-scale { + -webkit-animation-name: uk-scale-12; + animation-name: uk-scale-12; +} +/* + * Shake + */ +.uk-animation-shake { + -webkit-animation-name: uk-shake; + animation-name: uk-shake; +} +/* Direction modifiers + ========================================================================== */ +.uk-animation-reverse { + -webkit-animation-direction: reverse; + animation-direction: reverse; + -webkit-animation-timing-function: ease-in; + animation-timing-function: ease-in; +} +/* Duration modifiers +========================================================================== */ +.uk-animation-15 { + -webkit-animation-duration: 15s; + animation-duration: 15s; +} +/* Origin modifiers +========================================================================== */ +.uk-animation-top-left { + -webkit-transform-origin: 0 0; + transform-origin: 0 0; +} +.uk-animation-top-center { + -webkit-transform-origin: 50% 0; + transform-origin: 50% 0; +} +.uk-animation-top-right { + -webkit-transform-origin: 100% 0; + transform-origin: 100% 0; +} +.uk-animation-middle-left { + -webkit-transform-origin: 0 50%; + transform-origin: 0 50%; +} +.uk-animation-middle-right { + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; +} +.uk-animation-bottom-left { + -webkit-transform-origin: 0 100%; + transform-origin: 0 100%; +} +.uk-animation-bottom-center { + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +.uk-animation-bottom-right { + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; +} +/* Sub-object: `uk-animation-hover` +========================================================================== */ +/* + * Enable animation only on hover + * Note: Firefox also needs this because animations are not triggered when switching between display `hidden` and `block` + */ +.uk-animation-hover:not(:hover), +.uk-animation-hover:not(:hover) [class*='uk-animation-'], +.uk-touch .uk-animation-hover:not(.uk-hover), +.uk-touch .uk-animation-hover:not(.uk-hover) [class*='uk-animation-'] { + -webkit-animation-name: none; + animation-name: none; +} +/* Keyframes: Fade + * Used by dropdown, datepicker and slideshow component + ========================================================================== */ +@-webkit-keyframes uk-fade { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +@keyframes uk-fade { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +/* Keyframes: Fade with slide + ========================================================================== */ +/* + * Top + */ +@-webkit-keyframes uk-fade-top { + 0% { + opacity: 0; + -webkit-transform: translateY(-100%); + } + 100% { + opacity: 1; + -webkit-transform: translateY(0); + } +} +@keyframes uk-fade-top { + 0% { + opacity: 0; + transform: translateY(-100%); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +/* + * Bottom + */ +@-webkit-keyframes uk-fade-bottom { + 0% { + opacity: 0; + -webkit-transform: translateY(100%); + } + 100% { + opacity: 1; + -webkit-transform: translateY(0); + } +} +@keyframes uk-fade-bottom { + 0% { + opacity: 0; + transform: translateY(100%); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +/* + * Left + */ +@-webkit-keyframes uk-fade-left { + 0% { + opacity: 0; + -webkit-transform: translateX(-100%); + } + 100% { + opacity: 1; + -webkit-transform: translateX(0); + } +} +@keyframes uk-fade-left { + 0% { + opacity: 0; + transform: translateX(-100%); + } + 100% { + opacity: 1; + transform: translateX(0); + } +} +/* + * Right + */ +@-webkit-keyframes uk-fade-right { + 0% { + opacity: 0; + -webkit-transform: translateX(100%); + } + 100% { + opacity: 1; + -webkit-transform: translateX(0); + } +} +@keyframes uk-fade-right { + 0% { + opacity: 0; + transform: translateX(100%); + } + 100% { + opacity: 1; + transform: translateX(0); + } +} +/* Keyframes: Fade with scale + ========================================================================== */ +/* + * Scale by 0.2 + */ +@-webkit-keyframes uk-fade-scale-02 { + 0% { + opacity: 0; + -webkit-transform: scale(0.2); + } + 100% { + opacity: 1; + -webkit-transform: scale(1); + } +} +@keyframes uk-fade-scale-02 { + 0% { + opacity: 0; + transform: scale(0.2); + } + 100% { + opacity: 1; + transform: scale(1); + } +} +/* + * Scale by 1.5 + * Used by slideshow component + */ +@-webkit-keyframes uk-fade-scale-15 { + 0% { + opacity: 0; + -webkit-transform: scale(1.5); + } + 100% { + opacity: 1; + -webkit-transform: scale(1); + } +} +@keyframes uk-fade-scale-15 { + 0% { + opacity: 0; + transform: scale(1.5); + } + 100% { + opacity: 1; + transform: scale(1); + } +} +/* + * Scale by 1.8 + */ +@-webkit-keyframes uk-fade-scale-18 { + 0% { + opacity: 0; + -webkit-transform: scale(1.8); + } + 100% { + opacity: 1; + -webkit-transform: scale(1); + } +} +@keyframes uk-fade-scale-18 { + 0% { + opacity: 0; + transform: scale(1.8); + } + 100% { + opacity: 1; + transform: scale(1); + } +} +/* Keyframes: Slide + * Used by slideshow component + ========================================================================== */ +/* + * Left + */ +@-webkit-keyframes uk-slide-left { + 0% { + -webkit-transform: translateX(-100%); + } + 100% { + -webkit-transform: translateX(0); + } +} +@keyframes uk-slide-left { + 0% { + transform: translateX(-100%); + } + 100% { + transform: translateX(0); + } +} +/* + * Right + */ +@-webkit-keyframes uk-slide-right { + 0% { + -webkit-transform: translateX(100%); + } + 100% { + -webkit-transform: translateX(0); + } +} +@keyframes uk-slide-right { + 0% { + transform: translateX(100%); + } + 100% { + transform: translateX(0); + } +} +/* + * Left third + */ +@-webkit-keyframes uk-slide-left-33 { + 0% { + -webkit-transform: translateX(33%); + } + 100% { + -webkit-transform: translateX(0); + } +} +@keyframes uk-slide-left-33 { + 0% { + transform: translateX(33%); + } + 100% { + transform: translateX(0); + } +} +/* + * Right third + */ +@-webkit-keyframes uk-slide-right-33 { + 0% { + -webkit-transform: translateX(-33%); + } + 100% { + -webkit-transform: translateX(0); + } +} +@keyframes uk-slide-right-33 { + 0% { + transform: translateX(-33%); + } + 100% { + transform: translateX(0); + } +} +/* Keyframes: Scale + ========================================================================== */ +@-webkit-keyframes uk-scale-12 { + 0% { + -webkit-transform: scale(1.2); + } + 100% { + -webkit-transform: scale(1); + } +} +@keyframes uk-scale-12 { + 0% { + transform: scale(1.2); + } + 100% { + transform: scale(1); + } +} +/* Keyframes: Rotate + * Used by icon component + ========================================================================== */ +@-webkit-keyframes uk-rotate { + 0% { + -webkit-transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + } +} +@keyframes uk-rotate { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(359deg); + } +} +/* Keyframes: Shake + ========================================================================== */ +@-webkit-keyframes uk-shake { + 0%, + 100% { + -webkit-transform: translateX(0); + } + 10% { + -webkit-transform: translateX(-9px); + } + 20% { + -webkit-transform: translateX(8px); + } + 30% { + -webkit-transform: translateX(-7px); + } + 40% { + -webkit-transform: translateX(6px); + } + 50% { + -webkit-transform: translateX(-5px); + } + 60% { + -webkit-transform: translateX(4px); + } + 70% { + -webkit-transform: translateX(-3px); + } + 80% { + -webkit-transform: translateX(2px); + } + 90% { + -webkit-transform: translateX(-1px); + } +} +@keyframes uk-shake { + 0%, + 100% { + transform: translateX(0); + } + 10% { + transform: translateX(-9px); + } + 20% { + transform: translateX(8px); + } + 30% { + transform: translateX(-7px); + } + 40% { + transform: translateX(6px); + } + 50% { + transform: translateX(-5px); + } + 60% { + transform: translateX(4px); + } + 70% { + transform: translateX(-3px); + } + 80% { + transform: translateX(2px); + } + 90% { + transform: translateX(-1px); + } +} +/* Keyframes: Fade with slide fixed + * Used by dropdown and search component + ========================================================================== */ +/* + * Top fixed + */ +@-webkit-keyframes uk-slide-top-fixed { + 0% { + opacity: 0; + -webkit-transform: translateY(-10px); + } + 100% { + opacity: 1; + -webkit-transform: translateY(0); + } +} +@keyframes uk-slide-top-fixed { + 0% { + opacity: 0; + transform: translateY(-10px); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +/* + * Bottom fixed + */ +@-webkit-keyframes uk-slide-bottom-fixed { + 0% { + opacity: 0; + -webkit-transform: translateY(10px); + } + 100% { + opacity: 1; + -webkit-transform: translateY(0); + } +} +@keyframes uk-slide-bottom-fixed { + 0% { + opacity: 0; + transform: translateY(10px); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +/* ======================================================================== + Component: Dropdown + ========================================================================== */ +/* + * 1. Hide by default + * 2. Set position + * 3. Box-sizing is needed for `uk-dropdown-justify` + * 4. Set style + * 5. Reset button group whitespace hack + */ +.uk-dropdown { + /* 1 */ + display: none; + /* 2 */ + position: absolute; + top: 100%; + left: 0; + z-index: 1020; + /* 3 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 4 */ + width: 200px; + margin-top: 5px; + padding: 15px; + background: #f5f5f5; + color: #444444; + /* 5 */ + font-size: 1rem; + vertical-align: top; +} +/* + * 1. Show dropdown + * 2. Set animation + * 3. Needed for scale animation + */ +.uk-open > .uk-dropdown { + /* 1 */ + display: block; + /* 2 */ + -webkit-animation: uk-fade 0.2s ease-in-out; + animation: uk-fade 0.2s ease-in-out; + /* 3 */ + -webkit-transform-origin: 0 0; + transform-origin: 0 0; +} +/* Alignment modifiers + ========================================================================== */ +/* + * Modifier `uk-dropdown-flip` + */ +.uk-dropdown-flip { + left: auto; + right: 0; +} +/* + * Modifier `uk-dropdown-up` + */ +.uk-dropdown-up { + top: auto; + bottom: 100%; + margin-top: auto; + margin-bottom: 5px; +} +/* Nav in dropdown + ========================================================================== */ +.uk-dropdown .uk-nav { + margin: 0 -15px; +} +/* Grid and panel in dropdown + ========================================================================== */ +/* +* Vertical gutter +*/ +/* + * Grid + * Higher specificity to override large gutter + */ +.uk-grid .uk-dropdown-grid + .uk-dropdown-grid { + margin-top: 15px; +} +/* Panels */ +.uk-dropdown-grid > [class*='uk-width-'] > .uk-panel + .uk-panel { + margin-top: 15px; +} +/* Tablet and bigger */ +@media (min-width: 768px) { + /* + * Horizontal gutter + */ + .uk-dropdown:not(.uk-dropdown-stack) > .uk-dropdown-grid { + margin-left: -15px; + margin-right: -15px; + } + .uk-dropdown:not(.uk-dropdown-stack) > .uk-dropdown-grid > [class*='uk-width-'] { + padding-left: 15px; + padding-right: 15px; + } + /* + * Column divider + */ + .uk-dropdown:not(.uk-dropdown-stack) > .uk-dropdown-grid > [class*='uk-width-']:nth-child(n+2) { + border-left: 1px solid #dddddd; + } + /* + * Width multiplier for dropdown columns + */ + .uk-dropdown-width-2:not(.uk-dropdown-stack) { + width: 400px; + } + .uk-dropdown-width-3:not(.uk-dropdown-stack) { + width: 600px; + } + .uk-dropdown-width-4:not(.uk-dropdown-stack) { + width: 800px; + } + .uk-dropdown-width-5:not(.uk-dropdown-stack) { + width: 1000px; + } +} +/* Phone landscape and smaller */ +@media (max-width: 767px) { + /* + * Stack columns and take full width + */ + .uk-dropdown-grid > [class*='uk-width-'] { + width: 100%; + } + /* + * Vertical gutter + */ + .uk-dropdown-grid > [class*='uk-width-']:nth-child(n+2) { + margin-top: 15px; + } +} +/* +* Stack grid columns +*/ +.uk-dropdown-stack > .uk-dropdown-grid > [class*='uk-width-'] { + width: 100%; +} +.uk-dropdown-stack > .uk-dropdown-grid > [class*='uk-width-']:nth-child(n+2) { + margin-top: 15px; +} +/* Modifier `uk-dropdown-small` + ========================================================================== */ +/* + * Set min-width and text expands dropdown if needed + */ +.uk-dropdown-small { + min-width: 150px; + width: auto; + padding: 5px; + white-space: nowrap; +} +/* + * Nav in dropdown + */ +.uk-dropdown-small .uk-nav { + margin: 0 -5px; +} +/* Modifier: `uk-dropdown-navbar` + ========================================================================== */ +.uk-dropdown-navbar { + margin-top: 0; + background: #f5f5f5; + color: #444444; +} +.uk-open > .uk-dropdown-navbar { + -webkit-animation: uk-slide-top-fixed 0.2s ease-in-out; + animation: uk-slide-top-fixed 0.2s ease-in-out; +} +/* Modifier `uk-dropdown-scrollable` + ========================================================================== */ +/* + * Usefull for long lists + */ +.uk-dropdown-scrollable { + overflow-y: auto; + max-height: 200px; +} +/* ======================================================================== + Component: Modal + ========================================================================== */ +/* + * This is the modal overlay and modal dialog container + * 1. Hide by default + * 2. Set fixed position + * 3. Allow scrolling for the modal dialog + * 4. Mask the background page + * 5. Fade-in transition + * 6. Deactivate browser history navigation in IE11 + * 7. force hardware acceleration to prevent browser rendering hiccups + */ +.uk-modal { + /* 1 */ + display: none; + /* 2 */ + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1010; + /* 3 */ + overflow-y: auto; + -webkit-overflow-scrolling: touch; + /* 4 */ + background: rgba(0, 0, 0, 0.6); + /* 5 */ + opacity: 0; + -webkit-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; + /* 6 */ + touch-action: cross-slide-y pinch-zoom double-tap-zoom; + /* 7 */ + -webkit-transform: translateZ(0); + transform: translateZ(0); +} +/* + * Open state + */ +.uk-modal.uk-open { + opacity: 1; +} +/* + * Prevents duplicated scrollbar caused by 4. + */ +.uk-modal-page, +.uk-modal-page body { + overflow: hidden; +} +/* Sub-object: `uk-modal-dialog` + ========================================================================== */ +/* + * 1. Create position context for caption, spinner and close button + * 2. Set box sizing + * 3. Set style + * 4. Slide-in transition + */ +.uk-modal-dialog { + /* 1 */ + position: relative; + /* 2 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + margin: 50px auto; + padding: 20px; + width: 600px; + max-width: 100%; + max-width: calc(100% - 20px); + /* 3 */ + background: #ffffff; + /* 4 */ + opacity: 0; + -webkit-transform: translateY(-100px); + transform: translateY(-100px); + -webkit-transition: opacity 0.3s linear, -webkit-transform 0.3s ease-out; + transition: opacity 0.3s linear, transform 0.3s ease-out; +} +/* Phone landscape and smaller */ +@media (max-width: 767px) { + /* + * Fit in small screen + */ + .uk-modal-dialog { + width: auto; + margin: 10px auto; + } +} +/* + * Open state + */ +.uk-open .uk-modal-dialog { + /* 4 */ + opacity: 1; + -webkit-transform: translateY(0); + transform: translateY(0); +} +/* + * Remove margin from the last-child + */ +.uk-modal-dialog > :not([class*='uk-modal-']):last-child { + margin-bottom: 0; +} +/* Close in modal + ========================================================================== */ +.uk-modal-dialog > .uk-close:first-child { + margin: -10px -10px 0 0; + float: right; +} +/* + * Remove margin from adjacent element + */ +.uk-modal-dialog > .uk-close:first-child + :not([class*='uk-modal-']) { + margin-top: 0; +} +/* Modifier: `uk-modal-dialog-lightbox` + ========================================================================== */ +.uk-modal-dialog-lightbox { + margin: 15px auto; + padding: 0; + max-width: 95%; + max-width: calc(100% - 30px); +} +/* + * Close button + */ +.uk-modal-dialog-lightbox > .uk-close:first-child { + position: absolute; + top: -12px; + right: -12px; + margin: 0; + float: none; +} +/* Phone landscape and smaller */ +@media (max-width: 767px) { + .uk-modal-dialog-lightbox > .uk-close:first-child { + top: -7px; + right: -7px; + } +} +/* Modifier: `uk-modal-dialog-large` + ========================================================================== */ +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-modal-dialog-large { + width: 930px; + } +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + .uk-modal-dialog-large { + width: 1130px; + } +} +/* Sub-Object: `uk-modal-header` and `uk-modal-footer` + ========================================================================== */ +.uk-modal-header { + margin-bottom: 15px; +} +.uk-modal-footer { + margin-top: 15px; +} +/* + * Remove margin from the last-child + */ +.uk-modal-header > :last-child, +.uk-modal-footer > :last-child { + margin-bottom: 0; +} +/* Sub-Object: `uk-modal-caption` + ========================================================================== */ +.uk-modal-caption { + position: absolute; + left: 0; + right: 0; + bottom: -20px; + margin-bottom: -10px; + color: #ffffff; + text-align: center; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +/* Sub-Object: `uk-modal-spinner` + ========================================================================== */ +.uk-modal-spinner { + position: absolute; + top: 50%; + left: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + font-size: 25px; + color: #ddd; +} +.uk-modal-spinner:after { + content: "\f110"; + font-family: FontAwesome; + -webkit-animation: uk-rotate 2s infinite linear; + animation: uk-rotate 2s infinite linear; +} +/* ======================================================================== + Component: Off-canvas + ========================================================================== */ +/* + * This is the offcanvas overlay and bar container + * 1. Hide by default + * 2. Set fixed position + * 3. Deactivate browser touch actions in IE11 + * 4. Mask the background page + */ +.uk-offcanvas { + /* 1 */ + display: none; + /* 2 */ + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1000; + /* 3 */ + touch-action: none; + /* 4 */ + background: rgba(0, 0, 0, 0.1); +} +.uk-offcanvas.uk-active { + display: block; +} +/* Sub-object `uk-offcanvas-page` + ========================================================================== */ +/* + * Prepares the whole HTML page to slide-out + * 1. Fix the main page and disallow scrolling + * 2. Side-out transition + */ +.uk-offcanvas-page { + /* 1 */ + position: fixed; + /* 2 */ + -webkit-transition: margin-left 0.3s ease-in-out; + transition: margin-left 0.3s ease-in-out; +} +/* Sub-object `uk-offcanvas-bar` + ========================================================================== */ +/* + * This is the offcanvas bar + * 1. Set fixed position + * 2. Size and style + * 3. Allow scrolling + * 4. Side-out transition + * 5. Deavtivate scroll chaining in IE11 + */ +.uk-offcanvas-bar { + /* 1 */ + position: fixed; + top: 0; + bottom: 0; + left: 0; + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + z-index: 1001; + /* 2 */ + width: 270px; + max-width: 100%; + background: #333333; + /* 3 */ + overflow-y: auto; + -webkit-overflow-scrolling: touch; + /* 4 */ + -webkit-transition: -webkit-transform 0.3s ease-in-out; + transition: transform 0.3s ease-in-out; + /* 5 */ + -ms-scroll-chaining: none; +} +.uk-offcanvas.uk-active .uk-offcanvas-bar.uk-offcanvas-bar-show { + -webkit-transform: translateX(0%); + transform: translateX(0%); +} +/* Modifier `uk-offcanvas-bar-flip` + ========================================================================== */ +.uk-offcanvas-bar-flip { + left: auto; + right: 0; + -webkit-transform: translateX(100%); + transform: translateX(100%); +} +/* Panel in offcanvas + ========================================================================== */ +.uk-offcanvas .uk-panel { + margin: 20px 15px; + color: #777777; +} +.uk-offcanvas .uk-panel-title { + color: #cccccc; +} +.uk-offcanvas .uk-panel a:not([class]) { + color: #cccccc; +} +.uk-offcanvas .uk-panel a:not([class]):hover { + color: #ffffff; +} +/* ======================================================================== + Component: Switcher + ========================================================================== */ +/* + * 1. Deactivate browser history navigation in IE11 + */ +.uk-switcher { + margin: 0; + padding: 0; + list-style: none; + /* 1 */ + touch-action: cross-slide-y pinch-zoom double-tap-zoom; +} +/* + * Items + */ +.uk-switcher > :not(.uk-active) { + display: none; +} +/* ======================================================================== + Component: Text + ========================================================================== */ +/* Size modifiers + ========================================================================== */ +.uk-text-small { + font-size: 11px; + line-height: 16px; +} +.uk-text-large { + font-size: 18px; + line-height: 24px; + font-weight: normal; +} +/* Weight modifiers + ========================================================================== */ +.uk-text-bold { + font-weight: bold; +} +/* Color modifiers + ========================================================================== */ +.uk-text-muted { + color: #999999 !important; +} +.uk-text-primary { + color: #2d7091 !important; +} +.uk-text-success { + color: #659f13 !important; +} +.uk-text-warning { + color: #e28327 !important; +} +.uk-text-danger { + color: #d85030 !important; +} +.uk-text-contrast { + color: #ffffff !important; +} +/* Alignment modifiers + ========================================================================== */ +.uk-text-left { + text-align: left !important; +} +.uk-text-right { + text-align: right !important; +} +.uk-text-center { + text-align: center !important; +} +.uk-text-justify { + text-align: justify !important; +} +.uk-text-top { + vertical-align: top !important; +} +.uk-text-middle { + vertical-align: middle !important; +} +.uk-text-bottom { + vertical-align: bottom !important; +} +/* Only tablets portrait and smaller */ +@media (max-width: 959px) { + .uk-text-center-medium { + text-align: center !important; + } + .uk-text-left-medium { + text-align: left !important; + } +} +/* Phone landscape and smaller */ +@media (max-width: 767px) { + .uk-text-center-small { + text-align: center !important; + } + .uk-text-left-small { + text-align: left !important; + } +} +/* Wrap modifiers + ========================================================================== */ +/* + * Prevent text from wrapping onto multiple lines + */ +.uk-text-nowrap { + white-space: nowrap; +} +/* + * Prevent text from wrapping onto multiple lines, and truncate with an ellipsis + */ +.uk-text-truncate { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +/* + * Break strings if their length exceeds the width of their container + */ +.uk-text-break { + word-wrap: break-word; + -webkit-hyphens: auto; + -ms-hyphens: auto; + -moz-hyphens: auto; + hyphens: auto; +} +/* ======================================================================== + Component: Utility + ========================================================================== */ +/* Container + ========================================================================== */ +.uk-container { + -moz-box-sizing: border-box; + box-sizing: border-box; + max-width: 980px; + padding: 0 25px; +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + .uk-container { + max-width: 1200px; + padding: 0 35px; + } +} +/* + * Micro clearfix + */ +.uk-container:before, +.uk-container:after { + content: ""; + display: table; +} +.uk-container:after { + clear: both; +} +/* + * Center container + */ +.uk-container-center { + margin-left: auto; + margin-right: auto; +} +/* Clearing + ========================================================================== */ +/* + * Micro clearfix +* `table-cell` is used with `:before` because `table` creates a 1px gap when it becomes a flex item, only in Webkit + * `table` is used again with `:after` because `clear` only works with block elements. + * Note: `display: block` with `overflow: hidden` is currently not working in the latest Safari + */ +.uk-clearfix:before { + content: ""; + display: table-cell; +} +.uk-clearfix:after { + content: ""; + display: table; + clear: both; +} +/* + * Create a new block formatting context + */ +.uk-nbfc { + overflow: hidden; +} +.uk-nbfc-alt { + display: table-cell; + width: 10000px; +} +/* Alignment of block elements + ========================================================================== */ +/* + * Float blocks + * 1. Prevent content overflow on small devices + */ +.uk-float-left { + float: left; +} +.uk-float-right { + float: right; +} +/* 1 */ +[class*='uk-float-'] { + max-width: 100%; +} +/* Alignment of images and objects + ========================================================================== */ +/* + * Alignment + */ +[class*='uk-align-'] { + display: block; + margin-bottom: 15px; +} +.uk-align-left { + margin-right: 15px; + float: left; +} +.uk-align-right { + margin-left: 15px; + float: right; +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-align-medium-left { + margin-right: 15px; + margin-bottom: 15px; + float: left; + } + .uk-align-medium-right { + margin-left: 15px; + margin-bottom: 15px; + float: right; + } +} +.uk-align-center { + margin-left: auto; + margin-right: auto; +} +/* Vertical alignment + ========================================================================== */ +/* + * Remove whitespace between child elements when using `inline-block` + */ +.uk-vertical-align { + font-size: 0.001px; +} +/* + * The `uk-vertical-align` container needs a specific height + */ +.uk-vertical-align:before { + content: ''; + display: inline-block; + height: 100%; + vertical-align: middle; +} +/* + * Sub-object which can have any height + * 1. Reset whitespace hack + */ +.uk-vertical-align-middle, +.uk-vertical-align-bottom { + display: inline-block; + max-width: 100%; + /* 1 */ + font-size: 1rem; +} +.uk-vertical-align-middle { + vertical-align: middle; +} +.uk-vertical-align-bottom { + vertical-align: bottom; +} +/* Height + ========================================================================== */ +/* + * More robust if padding and border are used + */ +[class*='uk-height'] { + -moz-box-sizing: border-box; + box-sizing: border-box; +} +/* + * Useful to extend the `html` and `body` element to the full height of the page. + */ +.uk-height-1-1 { + height: 100%; +} +/* + * Useful to create image teasers + */ +.uk-height-viewport { + height: 100vh; + min-height: 600px; +} +/* Responsive objects + * Note: Images are already responsive by default, see Base component + ========================================================================== */ +/* + * 1. Corrects `max-width` and `max-height` behavior if padding and border are used + */ +.uk-responsive-width, +.uk-responsive-height { + -moz-box-sizing: border-box; + box-sizing: border-box; +} +/* + * Responsiveness: Sets a maximum width relative to the parent and auto scales the height + * `important` needed to override `uk-img-preserve img` + */ +.uk-responsive-width { + max-width: 100% !important; + height: auto; +} +/* + * Responsiveness: Sets a maximum height relative to the parent and auto scales the width + * Only works if the parent element has a fixed height. + */ +.uk-responsive-height { + max-height: 100%; + width: auto; +} +/* Margin + ========================================================================== */ +/* + * Create a block with the same margin of a paragraph + * Add margin if adjacent element + */ +.uk-margin { + margin-bottom: 15px; +} +* + .uk-margin { + margin-top: 15px; +} +.uk-margin-top { + margin-top: 15px !important; +} +.uk-margin-bottom { + margin-bottom: 15px !important; +} +.uk-margin-left { + margin-left: 15px !important; +} +.uk-margin-right { + margin-right: 15px !important; +} +/* + * Larger margins + */ +.uk-margin-large { + margin-bottom: 50px; +} +* + .uk-margin-large { + margin-top: 50px; +} +.uk-margin-large-top { + margin-top: 50px !important; +} +.uk-margin-large-bottom { + margin-bottom: 50px !important; +} +.uk-margin-large-left { + margin-left: 50px !important; +} +.uk-margin-large-right { + margin-right: 50px !important; +} +/* + * Smaller margins + */ +.uk-margin-small { + margin-bottom: 5px; +} +* + .uk-margin-small { + margin-top: 5px; +} +.uk-margin-small-top { + margin-top: 5px !important; +} +.uk-margin-small-bottom { + margin-bottom: 5px !important; +} +.uk-margin-small-left { + margin-left: 5px !important; +} +.uk-margin-small-right { + margin-right: 5px !important; +} +/* + * Remove margins + */ +.uk-margin-remove { + margin: 0 !important; +} +.uk-margin-top-remove { + margin-top: 0 !important; +} +.uk-margin-bottom-remove { + margin-bottom: 0 !important; +} +/* Padding + ========================================================================== */ +.uk-padding-remove { + padding: 0 !important; +} +.uk-padding-top-remove { + padding-top: 0 !important; +} +.uk-padding-bottom-remove { + padding-bottom: 0 !important; +} +.uk-padding-vertical-remove { + padding-top: 0 !important; + padding-bottom: 0 !important; +} +/* Border + ========================================================================== */ +.uk-border-circle { + border-radius: 50%; +} +.uk-border-rounded { + border-radius: 5px; +} +/* Headings + ========================================================================== */ +.uk-heading-large { + font-size: 36px; + line-height: 42px; +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-heading-large { + font-size: 52px; + line-height: 64px; + } +} +/* Link + ========================================================================== */ +/* + * Let links appear in default text color + */ +.uk-link-muted, +.uk-link-muted a { + color: #444444; +} +.uk-link-muted:hover, +.uk-link-muted a:hover { + color: #444444; +} +/* + * Reset link style + */ +.uk-link-reset, +.uk-link-reset a, +.uk-link-reset:hover, +.uk-link-reset a:hover, +.uk-link-reset:focus, +.uk-link-reset a:focus { + color: inherit; + text-decoration: none; +} +/* Scrollable + ========================================================================== */ +/* + * Enable scrolling for preformatted text + */ +.uk-scrollable-text { + height: 300px; + overflow-y: scroll; + -webkit-overflow-scrolling: touch; + resize: both; +} +/* + * Box with scrolling enabled + */ +.uk-scrollable-box { + -moz-box-sizing: border-box; + box-sizing: border-box; + height: 170px; + padding: 10px; + border: 1px solid #dddddd; + overflow: auto; + -webkit-overflow-scrolling: touch; + resize: both; +} +.uk-scrollable-box > :last-child { + margin-bottom: 0; +} +/* Overflow + ========================================================================== */ +.uk-overflow-hidden { + overflow: hidden; +} +/* + * Enable scrollbars if content is clipped + */ +.uk-overflow-container { + overflow: auto; + -webkit-overflow-scrolling: touch; +} +.uk-overflow-container > :last-child { + margin-bottom: 0; +} +/* Position + ========================================================================== */ +.uk-position-absolute, +[class*='uk-position-top'], +[class*='uk-position-bottom'] { + position: absolute !important; +} +.uk-position-top { + top: 0; + width: 100%; +} +.uk-position-bottom { + bottom: 0; + width: 100%; +} +.uk-position-top-left { + top: 0; + left: 0; +} +.uk-position-top-right { + top: 0; + right: 0; +} +.uk-position-bottom-left { + bottom: 0; + left: 0; +} +.uk-position-bottom-right { + bottom: 0; + right: 0; +} +/* + * Cover + */ +.uk-position-cover { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; +} +/* + * Relative + */ +.uk-position-relative { + position: relative !important; +} +/* + * Z-index + */ +.uk-position-z-index { + z-index: 1; +} +/* Display + ========================================================================== */ +/* + * Display + */ +.uk-display-block { + display: block !important; +} +.uk-display-inline { + display: inline !important; +} +.uk-display-inline-block { + display: inline-block !important; +} +/* + * Visibility + * Avoids setting display to `block` so it works also with `inline-block` and `table` + */ +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-visible-small { + display: none !important; + } + .uk-visible-medium { + display: none !important; + } + .uk-hidden-large { + display: none !important; + } +} +/* Tablets portrait */ +@media (min-width: 768px) and (max-width: 959px) { + .uk-visible-small { + display: none !important; + } + .uk-visible-large { + display: none !important ; + } + .uk-hidden-medium { + display: none !important; + } +} +/* Phone landscape and smaller*/ +@media (max-width: 767px) { + .uk-visible-medium { + display: none !important; + } + .uk-visible-large { + display: none !important; + } + .uk-hidden-small { + display: none !important; + } +} +/* Remove from the flow and screen readers on any device */ +.uk-hidden { + display: none !important; + visibility: hidden !important; +} +/* It's hidden, but still affects layout */ +.uk-invisible { + visibility: hidden !important; +} +/* Show on hover */ +.uk-visible-hover:hover .uk-hidden, +.uk-visible-hover:hover .uk-invisible { + display: block !important; + visibility: visible !important; +} +.uk-visible-hover-inline:hover .uk-hidden, +.uk-visible-hover-inline:hover .uk-invisible { + display: inline-block !important; + visibility: visible !important; +} +/* Hide on touch */ +.uk-touch .uk-hidden-touch, +.uk-notouch .uk-hidden-notouch { + display: none !important; +} +/* ======================================================================== + Component: Flex + ========================================================================== */ +.uk-flex { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; +} +.uk-flex-inline { + display: -ms-inline-flexbox; + display: -webkit-inline-flex; + display: inline-flex; +} +/* + * Fixes initial flex-shrink value in IE10 + */ +.uk-flex > *, +.uk-flex-inline > * { + -ms-flex-negative: 1; +} +/* Alignment + ========================================================================== */ +/* + * Vertical alignment + * Default value is `stretch` + */ +.uk-flex-top { + -ms-flex-align: start; + -webkit-align-items: flex-start; + align-items: flex-start; +} +.uk-flex-middle { + -ms-flex-align: center; + -webkit-align-items: center; + align-items: center; +} +.uk-flex-bottom { + -ms-flex-align: end; + -webkit-align-items: flex-end; + align-items: flex-end; +} +/* + * Horizontal alignment + * Default value is `flex-start` + */ +.uk-flex-center { + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; +} +.uk-flex-right { + -ms-flex-pack: end; + -webkit-justify-content: flex-end; + justify-content: flex-end; +} +.uk-flex-space-between { + -ms-flex-pack: justify; + -webkit-justify-content: space-between; + justify-content: space-between; +} +.uk-flex-space-around { + -ms-flex-pack: distribute; + -webkit-justify-content: space-around; + justify-content: space-around; +} +/* Direction + ========================================================================== */ +.uk-flex-row-reverse { + -ms-flex-direction: row-reverse; + -webkit-flex-direction: row-reverse; + flex-direction: row-reverse; +} +.uk-flex-column { + -ms-flex-direction: column; + -webkit-flex-direction: column; + flex-direction: column; +} +.uk-flex-column-reverse { + -ms-flex-direction: column-reverse; + -webkit-flex-direction: column-reverse; + flex-direction: column-reverse; +} +/* Wrap + ========================================================================== */ +.uk-flex-nowrap { + -ms-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + flex-wrap: nowrap; +} +.uk-flex-wrap { + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; +} +.uk-flex-wrap-reverse { + -ms-flex-wrap: wrap-reverse; + -webkit-flex-wrap: wrap-reverse; + flex-wrap: wrap-reverse; +} +/* + * Horizontal alignment + * Default value is `stretch` + */ +.uk-flex-wrap-top { + -ms-flex-line-pack: start; + -webkit-align-content: flex-start; + align-content: flex-start; +} +.uk-flex-wrap-middle { + -ms-flex-line-pack: center; + -webkit-align-content: center; + align-content: center; +} +.uk-flex-wrap-bottom { + -ms-flex-line-pack: end; + -webkit-align-content: flex-end; + align-content: flex-end; +} +.uk-flex-wrap-space-between { + -ms-flex-line-pack: justify; + -webkit-align-content: space-between; + align-content: space-between; +} +.uk-flex-wrap-space-around { + -ms-flex-line-pack: distribute; + -webkit-align-content: space-around; + align-content: space-around; +} +/* Item ordering + ========================================================================== */ +/* + * Default is 0 + */ +.uk-flex-order-first { + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; +} +.uk-flex-order-last { + -ms-flex-order: 99; + -webkit-order: 99; + order: 99; +} +/* Phone landscape and bigger */ +@media (min-width: 480px) { + .uk-flex-order-first-small { + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; + } + .uk-flex-order-last-small { + -ms-flex-order: 99; + -webkit-order: 99; + order: 99; + } +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-flex-order-first-medium { + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; + } + .uk-flex-order-last-medium { + -ms-flex-order: 99; + -webkit-order: 99; + order: 99; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-flex-order-first-large { + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; + } + .uk-flex-order-last-large { + -ms-flex-order: 99; + -webkit-order: 99; + order: 99; + } +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + .uk-flex-order-first-xlarge { + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; + } + .uk-flex-order-last-xlarge { + -ms-flex-order: 99; + -webkit-order: 99; + order: 99; + } +} +/* Item dimensions + ========================================================================== */ +/* + * Initial: 0 1 auto + * Content dimensions, but shrinks + */ +/* + * No Flex: 0 0 auto + * Content dimensions + */ +.uk-flex-item-none { + -ms-flex: none; + -webkit-flex: none; + flex: none; +} +/* + * Relative Flex: 1 1 auto + * Space is allocated considering content + * 1. Fixes flex-shrink value in IE10 + */ +.uk-flex-item-auto { + -ms-flex: auto; + -webkit-flex: auto; + flex: auto; + /* 1 */ + -ms-flex-negative: 1; +} +/* + * Absolute Flex: 1 1 0% + * Space is allocated solely based on flex + */ +.uk-flex-item-1 { + -ms-flex: 1; + -webkit-flex: 1; + flex: 1; +} +/* ======================================================================== + Component: Contrast + ========================================================================== */ +.uk-contrast { + color: #ffffff; +} +.uk-contrast a:not([class]), +.uk-contrast .uk-link { + color: rgba(255, 255, 255, 0.7); + text-decoration: none; +} +.uk-contrast a:not([class]):hover, +.uk-contrast .uk-link:hover { + color: #ffffff; + text-decoration: underline; +} +.uk-contrast :not(pre) > code, +.uk-contrast :not(pre) > kbd, +.uk-contrast :not(pre) > samp { + color: #ffffff; +} +.uk-contrast em { + color: #ffffff; +} +.uk-contrast h1, +.uk-contrast h2, +.uk-contrast h3, +.uk-contrast h4, +.uk-contrast h5, +.uk-contrast h6 { + color: #ffffff; +} +.uk-contrast hr { + border-top-color: rgba(255, 255, 255, 0.2); +} +.uk-contrast .uk-nav li > a, +.uk-contrast .uk-nav li > a:hover { + text-decoration: none; +} +.uk-contrast .uk-nav-side > li > a { + color: #ffffff; +} +.uk-contrast .uk-nav-side > li > a:hover, +.uk-contrast .uk-nav-side > li > a:focus { + background: rgba(255, 255, 255, 0.1); + color: #ffffff; +} +.uk-contrast .uk-nav-side > li.uk-active > a { + background: #ffffff; + color: #444444; +} +.uk-contrast .uk-nav-side .uk-nav-header { + color: #ffffff; +} +.uk-contrast .uk-nav-side .uk-nav-divider { + border-top-color: rgba(255, 255, 255, 0.2); +} +.uk-contrast .uk-nav-side ul a { + color: rgba(255, 255, 255, 0.7); +} +.uk-contrast .uk-nav-side ul a:hover { + color: #ffffff; +} +.uk-contrast .uk-subnav > * > a { + color: rgba(255, 255, 255, 0.7); + text-decoration: none; +} +.uk-contrast .uk-subnav > * > a:hover, +.uk-contrast .uk-subnav > * > a:focus { + color: #ffffff; + text-decoration: none; +} +.uk-contrast .uk-subnav > .uk-active > a { + color: #ffffff; +} +.uk-contrast .uk-subnav-line > :nth-child(n+2):before { + border-left-color: rgba(255, 255, 255, 0.2); +} +.uk-contrast .uk-subnav-pill > * > a:hover, +.uk-contrast .uk-subnav-pill > * > a:focus { + background: rgba(255, 255, 255, 0.7); + color: #444444; + text-decoration: none; +} +.uk-contrast .uk-subnav-pill > .uk-active > a { + background: #ffffff; + color: #444444; +} +.uk-contrast .uk-list-line > li:nth-child(n+2) { + border-top-color: rgba(255, 255, 255, 0.2); +} +.uk-contrast .uk-form select, +.uk-contrast .uk-form textarea, +.uk-contrast .uk-form input:not([type]), +.uk-contrast .uk-form input[type="text"], +.uk-contrast .uk-form input[type="password"], +.uk-contrast .uk-form input[type="datetime"], +.uk-contrast .uk-form input[type="datetime-local"], +.uk-contrast .uk-form input[type="date"], +.uk-contrast .uk-form input[type="month"], +.uk-contrast .uk-form input[type="time"], +.uk-contrast .uk-form input[type="week"], +.uk-contrast .uk-form input[type="number"], +.uk-contrast .uk-form input[type="email"], +.uk-contrast .uk-form input[type="url"], +.uk-contrast .uk-form input[type="search"], +.uk-contrast .uk-form input[type="tel"], +.uk-contrast .uk-form input[type="color"] { + border-color: rgba(255, 255, 255, 0.8); + background: rgba(255, 255, 255, 0.8); + color: #444444; + background-clip: padding-box; +} +.uk-contrast .uk-form select:focus, +.uk-contrast .uk-form textarea:focus, +.uk-contrast .uk-form input:not([type]):focus, +.uk-contrast .uk-form input[type="text"]:focus, +.uk-contrast .uk-form input[type="password"]:focus, +.uk-contrast .uk-form input[type="datetime"]:focus, +.uk-contrast .uk-form input[type="datetime-local"]:focus, +.uk-contrast .uk-form input[type="date"]:focus, +.uk-contrast .uk-form input[type="month"]:focus, +.uk-contrast .uk-form input[type="time"]:focus, +.uk-contrast .uk-form input[type="week"]:focus, +.uk-contrast .uk-form input[type="number"]:focus, +.uk-contrast .uk-form input[type="email"]:focus, +.uk-contrast .uk-form input[type="url"]:focus, +.uk-contrast .uk-form input[type="search"]:focus, +.uk-contrast .uk-form input[type="tel"]:focus, +.uk-contrast .uk-form input[type="color"]:focus { + border-color: #ffffff; + background: #ffffff; + color: #444444; +} +.uk-contrast .uk-form :-ms-input-placeholder { + color: rgba(68, 68, 68, 0.7) !important; +} +.uk-contrast .uk-form ::-moz-placeholder { + color: rgba(68, 68, 68, 0.7); +} +.uk-contrast .uk-form ::-webkit-input-placeholder { + color: rgba(68, 68, 68, 0.7); +} +.uk-contrast .uk-button { + color: #444444; + background: #ffffff; +} +.uk-contrast .uk-button:hover, +.uk-contrast .uk-button:focus { + background-color: rgba(255, 255, 255, 0.8); + color: #444444; +} +.uk-contrast .uk-button:active, +.uk-contrast .uk-button.uk-active { + background-color: rgba(255, 255, 255, 0.7); + color: #444444; +} +.uk-contrast .uk-button-primary { + background-color: #00a8e6; + color: #ffffff; +} +.uk-contrast .uk-button-primary:hover, +.uk-contrast .uk-button-primary:focus { + background-color: #35b3ee; + color: #ffffff; +} +.uk-contrast .uk-button-primary:active, +.uk-contrast .uk-button-primary.uk-active { + background-color: #0091ca; + color: #ffffff; +} +.uk-contrast .uk-icon-hover { + color: rgba(255, 255, 255, 0.7); +} +.uk-contrast .uk-icon-hover:hover { + color: #ffffff; +} +.uk-contrast .uk-icon-button { + background: #ffffff; + color: #444444; +} +.uk-contrast .uk-icon-button:hover, +.uk-contrast .uk-icon-button:focus { + background-color: rgba(255, 255, 255, 0.8); + color: #444444; +} +.uk-contrast .uk-icon-button:active { + background-color: rgba(255, 255, 255, 0.7); + color: #444444; +} +.uk-contrast .uk-text-muted { + color: rgba(255, 255, 255, 0.6) !important; +} +.uk-contrast .uk-text-primary { + color: #2d7091 !important; +} +/* ======================================================================== + Component: Print + ========================================================================== */ +@media print { + * { + background: transparent !important; + color: black !important; + box-shadow: none !important; + text-shadow: none !important; + } + a, + a:visited { + text-decoration: underline; + } + 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; + } + @page { + margin: 0.5cm; + } + p, + h2, + h3 { + orphans: 3; + widows: 3; + } + h2, + h3 { + page-break-after: avoid; + } +} diff --git a/media/uikit/css/uikit.gradient.css b/media/uikit/css/uikit.gradient.css new file mode 100644 index 00000000..4284f44f --- /dev/null +++ b/media/uikit/css/uikit.gradient.css @@ -0,0 +1,8417 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* ======================================================================== + Component: Base + ========================================================================== */ +/* + * 1. Normalizes default `font-family` and sets `font-size` here to support `rem` units + * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom + * 3. Style + */ +html { + /* 1 */ + font: normal 14px / 20px "Helvetica Neue", Helvetica, Arial, sans-serif; + /* 2 */ + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + /* 3 */ + background: #ffffff; + color: #444444; + background-image: -webkit-radial-gradient(100% 100%, center, #ffffff, #ffffff); + background-image: radial-gradient(100% 100% at center, #ffffff, #ffffff); +} +/* + * Removes default margin. + */ +body { + margin: 0; +} +/* Links + ========================================================================== */ +/* + * Remove the gray background color from active links in IE 10. + */ +a { + background: transparent; +} +/* + * Improves readability when focused and also mouse hovered in all browsers. + */ +a:active, +a:hover { + outline: 0; +} +/* + * Style + */ +a, +.uk-link { + color: #0077dd; + text-decoration: none; + cursor: pointer; +} +a:hover, +.uk-link:hover { + color: #005599; + text-decoration: underline; +} +/* Text-level semantics + ========================================================================== */ +/* + * Addresses styling not present in Chrome, Safari, Opera and IE 8/9/10. + */ +abbr[title] { + border-bottom: 1px dotted; +} +/* + * Addresses style set to `bolder` in Firefox + */ +b, +strong { + font-weight: bold; +} +/* + * 1. Address odd `em`-unit font size rendering in all browsers. + * 2. Consolas has a better baseline in running text compared to `Courier` + */ +:not(pre) > code, +:not(pre) > kbd, +:not(pre) > samp { + /* 1 */ + font-size: 12px; + /* 2 */ + font-family: Consolas, monospace, serif; + /* 3 */ + color: #dd0055; + white-space: nowrap; + padding: 0 4px; + border: 1px solid #dddddd; + border-radius: 3px; + background: #fafafa; +} +/* + * Emphasize + */ +em { + color: #dd0055; +} +/* + * Insert + */ +ins { + background: #ffffaa; + color: #444444; + text-decoration: none; +} +/* + * Mark + * Note: Addresses styling not present in IE 8/9. + */ +mark { + background: #ffffaa; + color: #444444; +} +/* + * Quote + */ +q { + font-style: italic; +} +/* + * Addresses inconsistent and variable font size in all browsers. + */ +small { + font-size: 80%; +} +/* + * Prevents `sub` and `sup` affecting `line-height` in all browsers. + */ +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} +sup { + top: -0.5em; +} +sub { + bottom: -0.25em; +} +/* Images + ========================================================================== */ +/* + * 1. Responsiveness: Sets a maximum width relative to the parent and auto scales the height + * 2. Corrects `max-width` behavior if padding and border are used + * 3. Remove border when inside `a` element in IE 8/9/10. + * 4. Remove the gap between images and the bottom of their containers + */ +img { + /* 1 */ + max-width: 100%; + height: auto; + /* 2 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 3 */ + border: 0; + /* 4 */ + vertical-align: middle; +} +/* + * Preserve original image dimensions + */ +.uk-img-preserve, +.uk-img-preserve img { + max-width: none; +} +/* + * Correct overflow not hidden in IE 9/10/11. + */ +svg:not(:root) { + overflow: hidden; +} +/* Block elements + ========================================================================== */ +/* + * Reset margin + */ +blockquote, +figure { + margin: 0; +} +/* + * Margins + */ +p, +ul, +ol, +dl, +blockquote, +pre, +address, +fieldset, +figure { + margin: 0 0 15px 0; +} +* + p, +* + ul, +* + ol, +* + dl, +* + blockquote, +* + pre, +* + address, +* + fieldset, +* + figure { + margin-top: 15px; +} +/* Headings + ========================================================================== */ +h1, +h2, +h3, +h4, +h5, +h6 { + margin: 0 0 15px 0; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-weight: normal; + color: #444444; + text-transform: none; +} +/* + * Margins + */ +* + h1, +* + h2, +* + h3, +* + h4, +* + h5, +* + h6 { + margin-top: 25px; +} +/* + * Sizes + */ +h1, +.uk-h1 { + font-size: 36px; + line-height: 42px; +} +h2, +.uk-h2 { + font-size: 24px; + line-height: 30px; +} +h3, +.uk-h3 { + font-size: 18px; + line-height: 24px; +} +h4, +.uk-h4 { + font-size: 16px; + line-height: 22px; +} +h5, +.uk-h5 { + font-size: 14px; + line-height: 20px; +} +h6, +.uk-h6 { + font-size: 12px; + line-height: 18px; +} +/* Lists + ========================================================================== */ +ul, +ol { + padding-left: 30px; +} +/* + * Reset margin for nested lists + */ +ul > li > ul, +ul > li > ol, +ol > li > ol, +ol > li > ul { + margin: 0; +} +/* Description lists + ========================================================================== */ +dt { + font-weight: bold; +} +dd { + margin-left: 0; +} +/* Horizontal rules + ========================================================================== */ +/* + * 1. Address differences between Firefox and other browsers. + * 2. Style + */ +hr { + /* 1 */ + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; + /* 2 */ + margin: 15px 0; + border: 0; + border-top: 1px solid #dddddd; +} +/* Address + ========================================================================== */ +address { + font-style: normal; +} +/* Blockquotes + ========================================================================== */ +blockquote { + padding-left: 15px; + border-left: 5px solid #dddddd; + font-size: 16px; + line-height: 22px; + font-style: italic; +} +/* Preformatted text + ========================================================================== */ +/* + * 1. Contain overflow in all browsers. + */ +pre { + padding: 10px; + background: #fafafa; + font: 12px / 18px Consolas, monospace, serif; + color: #444444; + -moz-tab-size: 4; + tab-size: 4; + /* 1 */ + overflow: auto; + border: 1px solid #dddddd; + border-radius: 3px; +} +/* Selection pseudo-element + ========================================================================== */ +::-moz-selection { + background: #3399ff; + color: #ffffff; + text-shadow: none; +} +::selection { + background: #3399ff; + color: #ffffff; + text-shadow: none; +} +/* HTML5 elements + ========================================================================== */ +/* + * Corrects `block` display not defined in IE 8/9. + */ +article, +aside, +details, +figcaption, +figure, +footer, +header, +main, +nav, +section, +summary { + display: block; +} +/* + * Addresses inconsistent vertical alignment of `progress` in Chrome, Firefox and Opera. + */ +progress { + vertical-align: baseline; +} +/* + * Prevent displaying `audio` without controls in Chrome, Safari and Opera + */ +audio:not([controls]) { + display: none; +} +/* + * Address `[hidden]` styling not present in IE 8/9. + * Hide the `template` element in IE and Safari + */ +[hidden], +template { + display: none; +} +/* Iframe + ========================================================================== */ +iframe { + border: 0; +} +/* Fix viewport for IE10 snap mode + ========================================================================== */ +@media screen and (max-width: 400px) { + @-ms-viewport { + width: device-width; + } +} +/* ======================================================================== + Component: Grid + ========================================================================== */ +/* + * 1. Makes grid more robust so that it can be used with other block elements like lists + */ +.uk-grid { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + /* 1 */ + margin: 0; + padding: 0; + list-style: none; +} +/* + * DEPRECATED + * Micro clearfix + * Can't use `table` because it creates a 1px gap when it becomes a flex item, only in Webkit + */ +.uk-grid:before, +.uk-grid:after { + content: ""; + display: block; + overflow: hidden; +} +.uk-grid:after { + clear: both; +} +/* + * Grid cell + * 1. Space is allocated solely based on content dimensions + * 2. Makes grid more robust so that it can be used with other block elements + * 3. DEPRECATED Using `float` to support IE9 + */ +.uk-grid > * { + /* 1 */ + -ms-flex: none; + -webkit-flex: none; + flex: none; + /* 2 */ + margin: 0; + /* 3 */ + float: left; +} +/* + * Remove margin from the last-child + */ +.uk-grid > * > :last-child { + margin-bottom: 0; +} +/* Grid gutter + ========================================================================== */ +/* + * Default gutter + */ +/* Horizontal */ +.uk-grid { + margin-left: -25px; +} +.uk-grid > * { + padding-left: 25px; +} +/* Vertical */ +.uk-grid + .uk-grid, +.uk-grid-margin, +.uk-grid > * > .uk-panel + .uk-panel { + margin-top: 25px; +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + /* Horizontal */ + .uk-grid { + margin-left: -35px; + } + .uk-grid > * { + padding-left: 35px; + } + /* Vertical */ + .uk-grid + .uk-grid, + .uk-grid-margin, + .uk-grid > * > .uk-panel + .uk-panel { + margin-top: 35px; + } +} +/* + * Collapse gutter + */ +/* Horizontal */ +.uk-grid-collapse { + margin-left: 0; +} +.uk-grid-collapse > * { + padding-left: 0; +} +/* Vertical */ +.uk-grid-collapse + .uk-grid-collapse, +.uk-grid-collapse > .uk-grid-margin, +.uk-grid-collapse > * > .uk-panel + .uk-panel { + margin-top: 0; +} +/* + * Small gutter + */ +/* Horizontal */ +.uk-grid-small { + margin-left: -10px; +} +.uk-grid-small > * { + padding-left: 10px; +} +/* Vertical */ +.uk-grid-small + .uk-grid-small, +.uk-grid-small > .uk-grid-margin, +.uk-grid-small > * > .uk-panel + .uk-panel { + margin-top: 10px; +} +/* + * Medium gutter + */ +/* Horizontal */ +.uk-grid-medium { + margin-left: -25px; +} +.uk-grid-medium > * { + padding-left: 25px; +} +/* Vertical */ +.uk-grid-medium + .uk-grid-medium, +.uk-grid-medium > .uk-grid-margin, +.uk-grid-medium > * > .uk-panel + .uk-panel { + margin-top: 25px; +} +/* Modifier: `uk-grid-divider` + ========================================================================== */ +/* + * Horizontal divider + * Only works with the default gutter. Does not work with gutter collapse, small or large. + * Does not work with `uk-push-*`, `uk-pull-*` and not if the columns float into the next row. + */ +.uk-grid-divider:not(:empty) { + margin-left: -25px; + margin-right: -25px; +} +.uk-grid-divider > * { + padding-left: 25px; + padding-right: 25px; +} +.uk-grid-divider > [class*='uk-width-1-']:not(.uk-width-1-1):nth-child(n+2), +.uk-grid-divider > [class*='uk-width-2-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-3-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-4-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-5-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-6-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-7-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-8-']:nth-child(n+2), +.uk-grid-divider > [class*='uk-width-9-']:nth-child(n+2) { + border-left: 1px solid #dddddd; +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-grid-divider > [class*='uk-width-medium-']:not(.uk-width-medium-1-1):nth-child(n+2) { + border-left: 1px solid #dddddd; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-grid-divider > [class*='uk-width-large-']:not(.uk-width-large-1-1):nth-child(n+2) { + border-left: 1px solid #dddddd; + } +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + /* + * Large gutter + */ + .uk-grid-divider:not(:empty) { + margin-left: -35px; + margin-right: -35px; + } + .uk-grid-divider > * { + padding-left: 35px; + padding-right: 35px; + } + .uk-grid-divider:empty { + margin-top: 35px; + margin-bottom: 35px; + } +} +/* + * Vertical divider + */ +.uk-grid-divider:empty { + margin-top: 25px; + margin-bottom: 25px; + border-top: 1px solid #dddddd; +} +/* Match panels in grids + ========================================================================== */ +.uk-grid-match > * { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; +} +/* + * 1. Behave like a block element + */ +.uk-grid-match > * > * { + /* 1 */ + -ms-flex: none; + -webkit-flex: none; + flex: none; + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 100%; +} +/* Even grid cell widths + ========================================================================== */ +[class*='uk-grid-width'] > * { + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 100%; +} +.uk-grid-width-1-2 > * { + width: 50%; +} +.uk-grid-width-1-3 > * { + width: 33.333%; +} +.uk-grid-width-1-4 > * { + width: 25%; +} +.uk-grid-width-1-5 > * { + width: 20%; +} +.uk-grid-width-1-6 > * { + width: 16.666%; +} +.uk-grid-width-1-10 > * { + width: 10%; +} +/* Phone landscape and bigger */ +@media (min-width: 480px) { + .uk-grid-width-small-1-2 > * { + width: 50%; + } + .uk-grid-width-small-1-3 > * { + width: 33.333%; + } + .uk-grid-width-small-1-4 > * { + width: 25%; + } + .uk-grid-width-small-1-5 > * { + width: 20%; + } + .uk-grid-width-small-1-6 > * { + width: 16.666%; + } + .uk-grid-width-small-1-10 > * { + width: 10%; + } +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-grid-width-medium-1-2 > * { + width: 50%; + } + .uk-grid-width-medium-1-3 > * { + width: 33.333%; + } + .uk-grid-width-medium-1-4 > * { + width: 25%; + } + .uk-grid-width-medium-1-5 > * { + width: 20%; + } + .uk-grid-width-medium-1-6 > * { + width: 16.666%; + } + .uk-grid-width-medium-1-10 > * { + width: 10%; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-grid-width-large-1-2 > * { + width: 50%; + } + .uk-grid-width-large-1-3 > * { + width: 33.333%; + } + .uk-grid-width-large-1-4 > * { + width: 25%; + } + .uk-grid-width-large-1-5 > * { + width: 20%; + } + .uk-grid-width-large-1-6 > * { + width: 16.666%; + } + .uk-grid-width-large-1-10 > * { + width: 10%; + } +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + .uk-grid-width-xlarge-1-2 > * { + width: 50%; + } + .uk-grid-width-xlarge-1-3 > * { + width: 33.333%; + } + .uk-grid-width-xlarge-1-4 > * { + width: 25%; + } + .uk-grid-width-xlarge-1-5 > * { + width: 20%; + } + .uk-grid-width-xlarge-1-6 > * { + width: 16.666%; + } + .uk-grid-width-xlarge-1-10 > * { + width: 10%; + } +} +/* Sub-objects: `uk-width-*` + ========================================================================== */ +[class*='uk-width'] { + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 100%; +} +/* + * Widths + */ +/* Whole */ +.uk-width-1-1 { + width: 100%; +} +/* Halves */ +.uk-width-1-2, +.uk-width-2-4, +.uk-width-3-6, +.uk-width-5-10 { + width: 50%; +} +/* Thirds */ +.uk-width-1-3, +.uk-width-2-6 { + width: 33.333%; +} +.uk-width-2-3, +.uk-width-4-6 { + width: 66.666%; +} +/* Quarters */ +.uk-width-1-4 { + width: 25%; +} +.uk-width-3-4 { + width: 75%; +} +/* Fifths */ +.uk-width-1-5, +.uk-width-2-10 { + width: 20%; +} +.uk-width-2-5, +.uk-width-4-10 { + width: 40%; +} +.uk-width-3-5, +.uk-width-6-10 { + width: 60%; +} +.uk-width-4-5, +.uk-width-8-10 { + width: 80%; +} +/* Sixths */ +.uk-width-1-6 { + width: 16.666%; +} +.uk-width-5-6 { + width: 83.333%; +} +/* Tenths */ +.uk-width-1-10 { + width: 10%; +} +.uk-width-3-10 { + width: 30%; +} +.uk-width-7-10 { + width: 70%; +} +.uk-width-9-10 { + width: 90%; +} +/* Phone landscape and bigger */ +@media (min-width: 480px) { + /* Whole */ + .uk-width-small-1-1 { + width: 100%; + } + /* Halves */ + .uk-width-small-1-2, + .uk-width-small-2-4, + .uk-width-small-3-6, + .uk-width-small-5-10 { + width: 50%; + } + /* Thirds */ + .uk-width-small-1-3, + .uk-width-small-2-6 { + width: 33.333%; + } + .uk-width-small-2-3, + .uk-width-small-4-6 { + width: 66.666%; + } + /* Quarters */ + .uk-width-small-1-4 { + width: 25%; + } + .uk-width-small-3-4 { + width: 75%; + } + /* Fifths */ + .uk-width-small-1-5, + .uk-width-small-2-10 { + width: 20%; + } + .uk-width-small-2-5, + .uk-width-small-4-10 { + width: 40%; + } + .uk-width-small-3-5, + .uk-width-small-6-10 { + width: 60%; + } + .uk-width-small-4-5, + .uk-width-small-8-10 { + width: 80%; + } + /* Sixths */ + .uk-width-small-1-6 { + width: 16.666%; + } + .uk-width-small-5-6 { + width: 83.333%; + } + /* Tenths */ + .uk-width-small-1-10 { + width: 10%; + } + .uk-width-small-3-10 { + width: 30%; + } + .uk-width-small-7-10 { + width: 70%; + } + .uk-width-small-9-10 { + width: 90%; + } +} +/* Tablet and bigger */ +@media (min-width: 768px) { + /* Whole */ + .uk-width-medium-1-1 { + width: 100%; + } + /* Halves */ + .uk-width-medium-1-2, + .uk-width-medium-2-4, + .uk-width-medium-3-6, + .uk-width-medium-5-10 { + width: 50%; + } + /* Thirds */ + .uk-width-medium-1-3, + .uk-width-medium-2-6 { + width: 33.333%; + } + .uk-width-medium-2-3, + .uk-width-medium-4-6 { + width: 66.666%; + } + /* Quarters */ + .uk-width-medium-1-4 { + width: 25%; + } + .uk-width-medium-3-4 { + width: 75%; + } + /* Fifths */ + .uk-width-medium-1-5, + .uk-width-medium-2-10 { + width: 20%; + } + .uk-width-medium-2-5, + .uk-width-medium-4-10 { + width: 40%; + } + .uk-width-medium-3-5, + .uk-width-medium-6-10 { + width: 60%; + } + .uk-width-medium-4-5, + .uk-width-medium-8-10 { + width: 80%; + } + /* Sixths */ + .uk-width-medium-1-6 { + width: 16.666%; + } + .uk-width-medium-5-6 { + width: 83.333%; + } + /* Tenths */ + .uk-width-medium-1-10 { + width: 10%; + } + .uk-width-medium-3-10 { + width: 30%; + } + .uk-width-medium-7-10 { + width: 70%; + } + .uk-width-medium-9-10 { + width: 90%; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + /* Whole */ + .uk-width-large-1-1 { + width: 100%; + } + /* Halves */ + .uk-width-large-1-2, + .uk-width-large-2-4, + .uk-width-large-3-6, + .uk-width-large-5-10 { + width: 50%; + } + /* Thirds */ + .uk-width-large-1-3, + .uk-width-large-2-6 { + width: 33.333%; + } + .uk-width-large-2-3, + .uk-width-large-4-6 { + width: 66.666%; + } + /* Quarters */ + .uk-width-large-1-4 { + width: 25%; + } + .uk-width-large-3-4 { + width: 75%; + } + /* Fifths */ + .uk-width-large-1-5, + .uk-width-large-2-10 { + width: 20%; + } + .uk-width-large-2-5, + .uk-width-large-4-10 { + width: 40%; + } + .uk-width-large-3-5, + .uk-width-large-6-10 { + width: 60%; + } + .uk-width-large-4-5, + .uk-width-large-8-10 { + width: 80%; + } + /* Sixths */ + .uk-width-large-1-6 { + width: 16.666%; + } + .uk-width-large-5-6 { + width: 83.333%; + } + /* Tenths */ + .uk-width-large-1-10 { + width: 10%; + } + .uk-width-large-3-10 { + width: 30%; + } + .uk-width-large-7-10 { + width: 70%; + } + .uk-width-large-9-10 { + width: 90%; + } +} +/* Sub-object: `uk-push-*` and `uk-pull-*` + ========================================================================== */ +/* + * Source ordering + * Works only with `uk-width-medium-*` + */ +/* Tablet and bigger */ +@media (min-width: 768px) { + [class*='uk-push-'], + [class*='uk-pull-'] { + position: relative; + } + /* + * Push + */ + /* Halves */ + .uk-push-1-2, + .uk-push-2-4, + .uk-push-3-6, + .uk-push-5-10 { + left: 50%; + } + /* Thirds */ + .uk-push-1-3, + .uk-push-2-6 { + left: 33.333%; + } + .uk-push-2-3, + .uk-push-4-6 { + left: 66.666%; + } + /* Quarters */ + .uk-push-1-4 { + left: 25%; + } + .uk-push-3-4 { + left: 75%; + } + /* Fifths */ + .uk-push-1-5, + .uk-push-2-10 { + left: 20%; + } + .uk-push-2-5, + .uk-push-4-10 { + left: 40%; + } + .uk-push-3-5, + .uk-push-6-10 { + left: 60%; + } + .uk-push-4-5, + .uk-push-8-10 { + left: 80%; + } + /* Sixths */ + .uk-push-1-6 { + left: 16.666%; + } + .uk-push-5-6 { + left: 83.333%; + } + /* Tenths */ + .uk-push-1-10 { + left: 10%; + } + .uk-push-3-10 { + left: 30%; + } + .uk-push-7-10 { + left: 70%; + } + .uk-push-9-10 { + left: 90%; + } + /* + * Pull + */ + /* Halves */ + .uk-pull-1-2, + .uk-pull-2-4, + .uk-pull-3-6, + .uk-pull-5-10 { + left: -50%; + } + /* Thirds */ + .uk-pull-1-3, + .uk-pull-2-6 { + left: -33.333%; + } + .uk-pull-2-3, + .uk-pull-4-6 { + left: -66.666%; + } + /* Quarters */ + .uk-pull-1-4 { + left: -25%; + } + .uk-pull-3-4 { + left: -75%; + } + /* Fifths */ + .uk-pull-1-5, + .uk-pull-2-10 { + left: -20%; + } + .uk-pull-2-5, + .uk-pull-4-10 { + left: -40%; + } + .uk-pull-3-5, + .uk-pull-6-10 { + left: -60%; + } + .uk-pull-4-5, + .uk-pull-8-10 { + left: -80%; + } + /* Sixths */ + .uk-pull-1-6 { + left: -16.666%; + } + .uk-pull-5-6 { + left: -83.333%; + } + /* Tenths */ + .uk-pull-1-10 { + left: -10%; + } + .uk-pull-3-10 { + left: -30%; + } + .uk-pull-7-10 { + left: -70%; + } + .uk-pull-9-10 { + left: -90%; + } +} +/* ======================================================================== + Component: Panel + ========================================================================== */ +/* + * 1. Needed for `a` elements + * 2. Create position context for badges + */ +.uk-panel { + /* 1 */ + display: block; + /* 2 */ + position: relative; +} +/* + * Allow panels to be anchors + */ +.uk-panel, +.uk-panel:hover { + text-decoration: none; +} +/* + * Micro clearfix to make panels more robust + */ +.uk-panel:before, +.uk-panel:after { + content: ""; + display: table; +} +.uk-panel:after { + clear: both; +} +/* + * Remove margin from the last-child if not `uk-widget-title` + */ +.uk-panel > :not(.uk-panel-title):last-child { + margin-bottom: 0; +} +/* Sub-object: `uk-panel-title` + ========================================================================== */ +.uk-panel-title { + margin-top: 0; + margin-bottom: 15px; + font-size: 18px; + line-height: 24px; + font-weight: normal; + text-transform: none; + color: #444444; +} +/* Sub-object: `uk-panel-badge` + ========================================================================== */ +.uk-panel-badge { + position: absolute; + top: 0; + right: 0; + z-index: 1; +} +/* Sub-object: `uk-panel-teaser` + ========================================================================== */ +.uk-panel-teaser { + margin-bottom: 15px; +} +/* Modifier: `uk-panel-box` + ========================================================================== */ +.uk-panel-box { + padding: 15px; + background: #fafafa; + color: #444444; + border: 1px solid #dddddd; + border-radius: 4px; +} +.uk-panel-box-hover:hover { + color: #444444; +} +.uk-panel-box .uk-panel-title { + color: #444444; +} +.uk-panel-box .uk-panel-badge { + top: 10px; + right: 10px; +} +.uk-panel-box .uk-panel-teaser { + margin-top: -16px; + margin-left: -16px; + margin-right: -16px; +} +/* + * Nav in panel + */ +.uk-panel-box > .uk-nav-side { + margin: 0 -15px; +} +/* + * Sub-modifier: `uk-panel-box-primary` + */ +.uk-panel-box-primary { + background-color: #ebf7fd; + color: #2d7091; + border-color: rgba(45, 112, 145, 0.3); +} +.uk-panel-box-primary-hover:hover { + color: #2d7091; +} +.uk-panel-box-primary .uk-panel-title { + color: #2d7091; +} +/* + * Sub-modifier: `uk-panel-box-secondary` + */ +.uk-panel-box-secondary { + background-color: #ffffff; + color: #444444; +} +.uk-panel-box-secondary-hover:hover { + color: #444444; +} +.uk-panel-box-secondary .uk-panel-title { + color: #444444; +} +/* Modifier: `uk-panel-hover` + ========================================================================== */ +.uk-panel-hover { + padding: 15px; + color: #444444; + border: 1px solid transparent; + border-radius: 4px; +} +.uk-panel-hover:hover { + background: #fafafa; + color: #444444; + border-color: #dddddd; +} +.uk-panel-hover .uk-panel-badge { + top: 10px; + right: 10px; +} +.uk-panel-hover .uk-panel-teaser { + margin-top: -16px; + margin-left: -16px; + margin-right: -16px; +} +/* Modifier: `uk-panel-header` + ========================================================================== */ +.uk-panel-header .uk-panel-title { + padding-bottom: 10px; + border-bottom: 1px solid #dddddd; + color: #444444; +} +/* Modifier: `uk-panel-space` + ========================================================================== */ +.uk-panel-space { + padding: 30px; +} +.uk-panel-space .uk-panel-badge { + top: 30px; + right: 30px; +} +/* Modifier: `uk-panel-divider` + ========================================================================== */ +.uk-panel + .uk-panel-divider { + margin-top: 50px !important; +} +.uk-panel + .uk-panel-divider:before { + content: ""; + display: block; + position: absolute; + top: -25px; + left: 0; + right: 0; + border-top: 1px solid #dddddd; +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + .uk-panel + .uk-panel-divider { + margin-top: 70px !important; + } + .uk-panel + .uk-panel-divider:before { + top: -35px; + } +} +.uk-panel-box .uk-panel-teaser { + border-top-left-radius: 4px; + border-top-right-radius: 4px; + overflow: hidden; + -webkit-transform: translateZ(0); +} +/* ======================================================================== + Component: Block + ========================================================================== */ +.uk-block { + position: relative; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding-top: 20px; + padding-bottom: 20px; +} +/* Phone landscape and bigger */ +@media (min-width: 768px) { + .uk-block { + padding-top: 50px; + padding-bottom: 50px; + } +} +/* + * Micro clearfix to make blocks more robust + */ +.uk-block:before, +.uk-block:after { + content: ""; + display: table; +} +.uk-block:after { + clear: both; +} +/* + * Remove margin from the last-child + */ +.uk-block > :last-child { + margin-bottom: 0; +} +/* Padding Modifier + ========================================================================== */ +/* + * Large padding + */ +.uk-block-large { + padding-top: 20px; + padding-bottom: 20px; +} +/* Tablets and bigger */ +@media (min-width: 768px) { + .uk-block-large { + padding-top: 50px; + padding-bottom: 50px; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-block-large { + padding-top: 100px; + padding-bottom: 100px; + } +} +/* Color Modifier + ========================================================================== */ +/* + * Default + */ +.uk-block-default { + background: #ffffff; +} +/* + * Muted + */ +.uk-block-muted { + background: #f9f9f9; +} +/* + * Primary + */ +.uk-block-primary { + background: #00a8e6; +} +/* + * Secondary + */ +.uk-block-secondary { + background: #222222; +} +/* + * Adjust padding between equal colored blocks + */ +.uk-block-default + .uk-block-default, +.uk-block-muted + .uk-block-muted, +.uk-block-primary + .uk-block-primary, +.uk-block-secondary + .uk-block-secondary { + padding-top: 0; +} +/* ======================================================================== + Component: Article + ========================================================================== */ +/* + * Micro clearfix to make articles more robust + */ +.uk-article:before, +.uk-article:after { + content: ""; + display: table; +} +.uk-article:after { + clear: both; +} +/* + * Remove margin from the last-child + */ +.uk-article > :last-child { + margin-bottom: 0; +} +/* + * Vertical gutter for articles + */ +.uk-article + .uk-article { + margin-top: 25px; +} +/* Sub-object `uk-article-title` + ========================================================================== */ +.uk-article-title { + font-size: 36px; + line-height: 42px; + font-weight: normal; + text-transform: none; +} +.uk-article-title a { + color: inherit; + text-decoration: none; +} +/* Sub-object `uk-article-meta` + ========================================================================== */ +.uk-article-meta { + font-size: 12px; + line-height: 18px; + color: #999999; +} +/* Sub-object `uk-article-lead` + ========================================================================== */ +.uk-article-lead { + color: #444444; + font-size: 18px; + line-height: 24px; + font-weight: normal; +} +/* Sub-object `uk-article-divider` + ========================================================================== */ +.uk-article-divider { + margin-bottom: 25px; + border-color: #dddddd; +} +* + .uk-article-divider { + margin-top: 25px; +} +.uk-article + .uk-article { + padding-top: 25px; + border-top: 1px solid #dddddd; +} +/* ======================================================================== + Component: Comment + ========================================================================== */ +/* Sub-object `uk-comment-header` + ========================================================================== */ +.uk-comment-header { + margin-bottom: 15px; + padding: 10px; + border: 1px solid #dddddd; + border-radius: 4px; + background: #fafafa; +} +/* + * Micro clearfix + */ +.uk-comment-header:before, +.uk-comment-header:after { + content: ""; + display: table; +} +.uk-comment-header:after { + clear: both; +} +/* Sub-object `uk-comment-avatar` + ========================================================================== */ +.uk-comment-avatar { + margin-right: 15px; + float: left; +} +/* Sub-object `uk-comment-title` + ========================================================================== */ +.uk-comment-title { + margin: 5px 0 0 0; + font-size: 16px; + line-height: 22px; +} +/* Sub-object `uk-comment-meta` + ========================================================================== */ +.uk-comment-meta { + margin: 2px 0 0 0; + font-size: 11px; + line-height: 16px; + color: #999999; +} +/* Sub-object `uk-comment-body` + ========================================================================== */ +.uk-comment-body { + padding-left: 10px; + padding-right: 10px; +} +/* + * Remove margin from the last-child + */ +.uk-comment-body > :last-child { + margin-bottom: 0; +} +/* Sub-object `uk-comment-list` + ========================================================================== */ +.uk-comment-list { + padding: 0; + list-style: none; +} +.uk-comment-list .uk-comment + ul { + margin: 25px 0 0 0; + list-style: none; +} +.uk-comment-list > li:nth-child(n+2), +.uk-comment-list .uk-comment + ul > li:nth-child(n+2) { + margin-top: 25px; +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-comment-list .uk-comment + ul { + padding-left: 100px; + } +} +/* Modifier `uk-comment-primary` + ========================================================================== */ +.uk-comment-primary .uk-comment-header { + border-color: rgba(45, 112, 145, 0.3); + background-color: #ebf7fd; + color: #2d7091; + text-shadow: 0 1px 0 #ffffff; +} +/* ======================================================================== + Component: Cover + ========================================================================== */ +/* + * Background image always covers and centers its element + */ +.uk-cover-background { + background-position: 50% 50%; + background-size: cover; + background-repeat: no-repeat; +} +/* + * Emulates image cover, works with video and image elements + * 1. Parent container which clips resized object + * 2. Resizes the object to always covers its container + * 3. Reset the responsive image CSS + * 4. Center object + */ +/* 1 */ +.uk-cover { + overflow: hidden; +} +.uk-cover-object { + /* 2 */ + width: auto; + height: auto; + min-width: 100%; + min-height: 100%; + /* 3 */ + max-width: none; + /* 4 */ + position: relative; + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); +} +/* + * To center iframes use `data-uk-cover` JavaScript + */ +[data-uk-cover] { + position: relative; + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); +} +/* ======================================================================== + Component: Nav + ========================================================================== */ +.uk-nav, +.uk-nav ul { + margin: 0; + padding: 0; + list-style: none; +} +/* + * Items + */ +.uk-nav li > a { + display: block; + text-decoration: none; +} +.uk-nav > li > a { + padding: 5px 15px; +} +/* + * Nested items + */ +.uk-nav ul { + padding-left: 15px; +} +.uk-nav ul a { + padding: 2px 0; +} +/* + * Item subtitle + */ +.uk-nav li > a > div { + font-size: 12px; + line-height: 18px; +} +/* Sub-object: `uk-nav-header` + ========================================================================== */ +.uk-nav-header { + padding: 5px 15px; + text-transform: uppercase; + font-weight: bold; + font-size: 12px; +} +.uk-nav-header:not(:first-child) { + margin-top: 15px; +} +/* Sub-object: `uk-nav-divider` + ========================================================================== */ +.uk-nav-divider { + margin: 9px 15px; +} +/* Sub-object: `uk-nav-sub` + ========================================================================== */ +/* + * `ul` needed for higher specificity to override padding + */ +ul.uk-nav-sub { + padding: 5px 0 5px 15px; +} +/* Modifier: `uk-nav-parent-icon` + ========================================================================== */ +.uk-nav-parent-icon > .uk-parent > a:after { + content: "\f104"; + width: 20px; + margin-right: -10px; + float: right; + font-family: FontAwesome; + text-align: center; +} +.uk-nav-parent-icon > .uk-parent.uk-open > a:after { + content: "\f107"; +} +/* Modifier `uk-nav-side` + ========================================================================== */ +/* + * Items + */ +.uk-nav-side > li > a { + color: #444444; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-nav-side > li > a:hover, +.uk-nav-side > li > a:focus { + background: rgba(0, 0, 0, 0.03); + color: #444444; + /* 2 */ + outline: none; + box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.1); + text-shadow: 0 -1px 0 #ffffff; +} +/* Active */ +.uk-nav-side > li.uk-active > a { + background: #009dd8; + color: #ffffff; + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-side .uk-nav-header { + color: #444444; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-side .uk-nav-divider { + border-top: 1px solid #dddddd; + box-shadow: 0 1px 0 #ffffff; +} +/* + * Nested items + */ +.uk-nav-side ul a { + color: #0077dd; +} +.uk-nav-side ul a:hover { + color: #005599; +} +/* Modifier `uk-nav-dropdown` + ========================================================================== */ +/* + * Items + */ +.uk-nav-dropdown > li > a { + color: #444444; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-nav-dropdown > li > a:hover, +.uk-nav-dropdown > li > a:focus { + background: #009dd8; + color: #ffffff; + /* 2 */ + outline: none; + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-dropdown .uk-nav-header { + color: #999999; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-dropdown .uk-nav-divider { + border-top: 1px solid #dddddd; +} +/* + * Nested items + */ +.uk-nav-dropdown ul a { + color: #0077dd; +} +.uk-nav-dropdown ul a:hover { + color: #005599; +} +/* Modifier `uk-nav-navbar` + ========================================================================== */ +/* + * Items + */ +.uk-nav-navbar > li > a { + color: #444444; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-nav-navbar > li > a:hover, +.uk-nav-navbar > li > a:focus { + background: #009dd8; + color: #ffffff; + /* 2 */ + outline: none; + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-navbar .uk-nav-header { + color: #999999; +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-navbar .uk-nav-divider { + border-top: 1px solid #dddddd; +} +/* + * Nested items + */ +.uk-nav-navbar ul a { + color: #0077dd; +} +.uk-nav-navbar ul a:hover { + color: #005599; +} +/* Modifier `uk-nav-offcanvas` + ========================================================================== */ +/* + * Items + */ +.uk-nav-offcanvas > li > a { + color: #cccccc; + padding: 10px 15px; + border-top: 1px solid rgba(0, 0, 0, 0.3); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); + text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); +} +/* + * Hover + * No hover on touch devices because it behaves buggy in fixed offcanvas + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-nav-offcanvas > .uk-open > a, +html:not(.uk-touch) .uk-nav-offcanvas > li > a:hover, +html:not(.uk-touch) .uk-nav-offcanvas > li > a:focus { + background: #404040; + color: #ffffff; + /* 2 */ + outline: none; +} +/* + * Active + * `html .uk-nav` needed for higher specificity to override hover + */ +html .uk-nav.uk-nav-offcanvas > li.uk-active > a { + background: #1a1a1a; + color: #ffffff; + box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3); +} +/* + * Sub-object: `uk-nav-header` + */ +.uk-nav-offcanvas .uk-nav-header { + color: #777777; + margin-top: 0; + border-top: 1px solid rgba(0, 0, 0, 0.3); + background: #404040; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); + text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); +} +/* + * Sub-object: `uk-nav-divider` + */ +.uk-nav-offcanvas .uk-nav-divider { + border-top: 1px solid rgba(255, 255, 255, 0.01); + margin: 0; + height: 4px; + background: rgba(0, 0, 0, 0.2); + box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3); +} +/* + * Nested items + * No hover on touch devices because it behaves buggy in fixed offcanvas + */ +.uk-nav-offcanvas ul a { + color: #cccccc; +} +html:not(.uk-touch) .uk-nav-offcanvas ul a:hover { + color: #ffffff; +} +/* + * Modifier `uk-nav-offcanvas` + */ +.uk-nav-offcanvas { + border-bottom: 1px solid rgba(0, 0, 0, 0.3); + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05); +} +/* + * Sub-object: `uk-nav-sub` + */ +.uk-nav-offcanvas .uk-nav-sub { + border-top: 1px solid rgba(0, 0, 0, 0.3); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); +} +/* ======================================================================== + Component: Navbar + ========================================================================== */ +.uk-navbar { + background: #f7f7f7; + color: #444444; + border: 1px solid rgba(0, 0, 0, 0.1); + border-bottom-color: rgba(0, 0, 0, 0.3); + border-radius: 4px; + background-origin: border-box; + background-image: -webkit-linear-gradient(top, #ffffff, #eeeeee); + background-image: linear-gradient(to bottom, #ffffff, #eeeeee); +} +/* + * Micro clearfix + */ +.uk-navbar:before, +.uk-navbar:after { + content: ""; + display: table; +} +.uk-navbar:after { + clear: both; +} +/* Sub-object: `uk-navbar-nav` + ========================================================================== */ +.uk-navbar-nav { + margin: 0; + padding: 0; + list-style: none; + float: left; +} +/* + * 1. Create position context for dropdowns + */ +.uk-navbar-nav > li { + float: left; + /* 1 */ + position: relative; +} +/* + * 1. Dimensions + * 2. Style + */ +.uk-navbar-nav > li > a { + display: block; + -moz-box-sizing: border-box; + box-sizing: border-box; + text-decoration: none; + /* 1 */ + height: 41px; + padding: 0 15px; + line-height: 40px; + /* 2 */ + color: #444444; + font-size: 14px; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-weight: normal; + margin-top: -1px; + margin-left: -1px; + border: 1px solid transparent; + border-bottom-width: 0; + text-shadow: 0 1px 0 #ffffff; +} +/* Appear not as link */ +.uk-navbar-nav > li > a[href='#'] { + cursor: text; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Also apply if dropdown is opened + * 3. Remove default focus style + */ +.uk-navbar-nav > li:hover > a, +.uk-navbar-nav > li > a:focus, +.uk-navbar-nav > li.uk-open > a { + background-color: transparent; + color: #444444; + /* 3 */ + outline: none; + position: relative; + z-index: 1; + border-left-color: rgba(0, 0, 0, 0.1); + border-right-color: rgba(0, 0, 0, 0.1); + border-top-color: rgba(0, 0, 0, 0.1); + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); +} +/* OnClick */ +.uk-navbar-nav > li > a:active { + background-color: #f5f5f5; + color: #444444; + border-left-color: rgba(0, 0, 0, 0.1); + border-right-color: rgba(0, 0, 0, 0.1); + border-top-color: rgba(0, 0, 0, 0.2); + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); +} +/* Active */ +.uk-navbar-nav > li.uk-active > a { + background-color: #fafafa; + color: #444444; + border-left-color: rgba(0, 0, 0, 0.1); + border-right-color: rgba(0, 0, 0, 0.1); + border-top-color: rgba(0, 0, 0, 0.2); + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); +} +/* Sub-objects: `uk-navbar-nav-subtitle` + ========================================================================== */ +.uk-navbar-nav .uk-navbar-nav-subtitle { + line-height: 28px; +} +.uk-navbar-nav-subtitle > div { + margin-top: -6px; + font-size: 10px; + line-height: 12px; +} +/* Sub-objects: `uk-navbar-content`, `uk-navbar-brand`, `uk-navbar-toggle` + ========================================================================== */ +/* + * Imitate navbar items + */ +.uk-navbar-content, +.uk-navbar-brand, +.uk-navbar-toggle { + -moz-box-sizing: border-box; + box-sizing: border-box; + display: block; + height: 41px; + padding: 0 15px; + float: left; + margin-top: -1px; + text-shadow: 0 1px 0 #ffffff; +} +/* + * Helper to center all child elements vertically + */ +.uk-navbar-content:before, +.uk-navbar-brand:before, +.uk-navbar-toggle:before { + content: ''; + display: inline-block; + height: 100%; + vertical-align: middle; +} +/* Sub-objects: `uk-navbar-content` + ========================================================================== */ +/* + * Better sibling spacing + */ +.uk-navbar-content + .uk-navbar-content:not(.uk-navbar-center) { + padding-left: 0; +} +/* + * Link colors + */ +.uk-navbar-content > a:not([class]) { + color: #0077dd; +} +.uk-navbar-content > a:not([class]):hover { + color: #005599; +} +/* Sub-objects: `uk-navbar-brand` + ========================================================================== */ +.uk-navbar-brand { + font-size: 18px; + color: #444444; + text-decoration: none; +} +/* + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-navbar-brand:hover, +.uk-navbar-brand:focus { + color: #444444; + text-decoration: none; + /* 2 */ + outline: none; +} +/* Sub-object: `uk-navbar-toggle` + ========================================================================== */ +.uk-navbar-toggle { + font-size: 18px; + color: #444444; + text-decoration: none; +} +/* + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-navbar-toggle:hover, +.uk-navbar-toggle:focus { + color: #444444; + text-decoration: none; + /* 2 */ + outline: none; +} +/* + * 1. Center icon vertically + */ +.uk-navbar-toggle:after { + content: "\f0c9"; + font-family: FontAwesome; + /* 1 */ + vertical-align: middle; +} +.uk-navbar-toggle-alt:after { + content: "\f002"; +} +/* Sub-object: `uk-navbar-center` + ========================================================================== */ +/* + * The element with this class needs to be last child in the navbar + * 1. This hack is needed because other float elements shift centered text + */ +.uk-navbar-center { + float: none; + text-align: center; + /* 1 */ + max-width: 50%; + margin-left: auto; + margin-right: auto; +} +/* Sub-object: `uk-navbar-flip` + ========================================================================== */ +.uk-navbar-flip { + float: right; +} +/* + * Apply same `border-radius` as `uk-navbar` + */ +.uk-navbar-nav:first-child > li:first-child > a { + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; +} +/* + * Sub-modifier `uk-navbar-flip` + */ +/* Collapse border */ +.uk-navbar-flip .uk-navbar-nav > li > a { + margin-left: 0; + margin-right: -1px; +} +/* Apply same `border-radius` as `uk-navbar` */ +.uk-navbar-flip .uk-navbar-nav:first-child > li:first-child > a { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} +.uk-navbar-flip .uk-navbar-nav:last-child > li:last-child > a { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; +} +/* + * Sub-modifier `uk-navbar-attached` + */ +.uk-navbar-attached { + border-top-color: transparent; + border-left-color: transparent; + border-right-color: transparent; + border-radius: 0; +} +.uk-navbar-attached .uk-navbar-nav > li > a { + border-radius: 0 !important; +} +/* ======================================================================== + Component: Subnav + ========================================================================== */ +/* + * 1. Gutter + * 2. Remove default list style + */ +.uk-subnav { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + /* 1 */ + margin-left: -10px; + margin-top: -10px; + /* 2 */ + padding: 0; + list-style: none; +} +/* + * 1. Space is allocated solely based on content dimensions + * 2. Horizontal gutter is using `padding` so `uk-width-*` classes can be applied + * 3. Create position context for dropdowns + */ +.uk-subnav > * { + /* 1 */ + -ms-flex: none; + -webkit-flex: none; + flex: none; + /* 2 */ + padding-left: 10px; + margin-top: 10px; + /* 3 */ + position: relative; +} +/* + * DEPRECATED IE9 Support + */ +.uk-subnav:before, +.uk-subnav:after { + content: ""; + display: block; + overflow: hidden; +} +.uk-subnav:after { + clear: both; +} +.uk-subnav > * { + float: left; +} +/* Items + ========================================================================== */ +.uk-subnav > * > * { + display: inline-block; + color: #444444; +} +/* + * Hover + * 1. Apply hover style also to focus state + */ +.uk-subnav > * > :hover, +.uk-subnav > * > :focus { + color: #0077dd; + text-decoration: none; +} +/* + * Active + */ +.uk-subnav > .uk-active > * { + color: #0077dd; +} +/* Modifier: 'subnav-line' + ========================================================================== */ +.uk-subnav-line > :before { + content: ""; + display: inline-block; + height: 10px; + vertical-align: middle; +} +.uk-subnav-line > :nth-child(n+2):before { + margin-right: 10px; + border-left: 1px solid #dddddd; +} +/* Modifier: 'subnav-pill' + ========================================================================== */ +.uk-subnav-pill > * > * { + padding: 3px 9px; + border-radius: 4px; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-subnav-pill > * > :hover, +.uk-subnav-pill > * > :focus { + background: #fafafa; + color: #444444; + text-decoration: none; + /* 2 */ + outline: none; + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); +} +/* + * Active + * `li` needed for higher specificity to override hover + */ +.uk-subnav-pill > .uk-active > * { + background: #009dd8; + color: #ffffff; + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); +} +/* Disabled state + ========================================================================== */ +.uk-subnav > .uk-disabled > * { + background: none; + color: #999999; + text-decoration: none; + cursor: text; + box-shadow: none; +} +/* ======================================================================== + Component: Breadcrumb + ========================================================================== */ +/* + * 1. Remove default list style + * 2. Remove whitespace between child elements when using `inline-block` + */ +.uk-breadcrumb { + /* 1 */ + padding: 0; + list-style: none; + /* 2 */ + font-size: 0.001px; +} +/* Items + ========================================================================== */ +/* + * Reset whitespace hack + */ +.uk-breadcrumb > li { + font-size: 1rem; + vertical-align: top; +} +.uk-breadcrumb > li, +.uk-breadcrumb > li > a, +.uk-breadcrumb > li > span { + display: inline-block; +} +.uk-breadcrumb > li:nth-child(n+2):before { + content: "/"; + display: inline-block; + margin: 0 8px; +} +/* + * Disabled + */ +.uk-breadcrumb > li:not(.uk-active) > span { + color: #999999; +} +/* ======================================================================== + Component: Pagination + ========================================================================== */ +/* + * 1. Remove default list style + * 2. Center pagination by default + * 3. Remove whitespace between child elements when using `inline-block` + */ +.uk-pagination { + /* 1 */ + padding: 0; + list-style: none; + /* 2 */ + text-align: center; + /* 3 */ + font-size: 0.001px; +} +/* + * Micro clearfix + * Needed if `uk-pagination-previous` or `uk-pagination-next` sub-objects are used + */ +.uk-pagination:before, +.uk-pagination:after { + content: ""; + display: table; +} +.uk-pagination:after { + clear: both; +} +/* Items + ========================================================================== */ +/* + * 1. Reset whitespace hack + * 2. Remove the gap at the bottom of it container + */ +.uk-pagination > li { + display: inline-block; + /* 1 */ + font-size: 1rem; + /* 2 */ + vertical-align: top; +} +.uk-pagination > li:nth-child(n+2) { + margin-left: 5px; +} +/* + * 1. Makes pagination more robust against different box-sizing use + * 2. Reset text-align to center if alignment modifier is used + */ +.uk-pagination > li > a, +.uk-pagination > li > span { + display: inline-block; + min-width: 16px; + padding: 3px 5px; + line-height: 20px; + text-decoration: none; + /* 1 */ + -moz-box-sizing: content-box; + box-sizing: content-box; + /* 2 */ + text-align: center; + border-radius: 4px; +} +/* + * Links + */ +.uk-pagination > li > a { + background: #f7f7f7; + color: #444444; + border: 1px solid rgba(0, 0, 0, 0.2); + border-bottom-color: rgba(0, 0, 0, 0.3); + background-origin: border-box; + background-image: -webkit-linear-gradient(top, #ffffff, #eeeeee); + background-image: linear-gradient(to bottom, #ffffff, #eeeeee); + text-shadow: 0 1px 0 #ffffff; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-pagination > li > a:hover, +.uk-pagination > li > a:focus { + background-color: #fafafa; + color: #444444; + /* 2 */ + outline: none; + background-image: none; +} +/* OnClick */ +.uk-pagination > li > a:active { + background-color: #f5f5f5; + color: #444444; + border-color: rgba(0, 0, 0, 0.2); + border-top-color: rgba(0, 0, 0, 0.3); + background-image: none; + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); +} +/* + * Active + */ +.uk-pagination > .uk-active > span { + background: #009dd8; + color: #ffffff; + border: 1px solid rgba(0, 0, 0, 0.2); + border-bottom-color: rgba(0, 0, 0, 0.4); + background-origin: border-box; + background-image: -webkit-linear-gradient(top, #00b4f5, #008dc5); + background-image: linear-gradient(to bottom, #00b4f5, #008dc5); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); +} +/* + * Disabled + */ +.uk-pagination > .uk-disabled > span { + background-color: #fafafa; + color: #999999; + border: 1px solid rgba(0, 0, 0, 0.2); + text-shadow: 0 1px 0 #ffffff; +} +/* Previous and next navigation + ========================================================================== */ +.uk-pagination-previous { + float: left; +} +.uk-pagination-next { + float: right; +} +/* Alignment modifiers + ========================================================================== */ +.uk-pagination-left { + text-align: left; +} +.uk-pagination-right { + text-align: right; +} +/* ======================================================================== + Component: Tab + ========================================================================== */ +.uk-tab { + margin: 0; + padding: 0; + list-style: none; + border-bottom: 1px solid #dddddd; +} +/* + * Micro clearfix on the deepest container + */ +.uk-tab:before, +.uk-tab:after { + content: ""; + display: table; +} +.uk-tab:after { + clear: both; +} +/* + * Items + * 1. Create position context for dropdowns + */ +.uk-tab > li { + margin-bottom: -1px; + float: left; + /* 1 */ + position: relative; +} +.uk-tab > li > a { + display: block; + padding: 8px 12px 8px 12px; + border: 1px solid transparent; + border-bottom-width: 0; + color: #0077dd; + text-decoration: none; + border-radius: 4px 4px 0 0; + text-shadow: 0 1px 0 #ffffff; +} +.uk-tab > li:nth-child(n+2) > a { + margin-left: 5px; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Also apply if dropdown is opened + * 3. Remove default focus style + */ +.uk-tab > li > a:hover, +.uk-tab > li > a:focus, +.uk-tab > li.uk-open > a { + border-color: #dddddd; + background: #fafafa; + color: #005599; + /* 2 */ + outline: none; +} +.uk-tab > li:not(.uk-active) > a:hover, +.uk-tab > li:not(.uk-active) > a:focus, +.uk-tab > li.uk-open:not(.uk-active) > a { + margin-bottom: 1px; + padding-bottom: 7px; +} +/* Active */ +.uk-tab > li.uk-active > a { + border-color: #dddddd; + border-bottom-color: transparent; + background: #ffffff; + color: #444444; +} +/* Disabled */ +.uk-tab > li.uk-disabled > a { + color: #999999; + cursor: text; +} +.uk-tab > li.uk-disabled > a:hover, +.uk-tab > li.uk-disabled > a:focus, +.uk-tab > li.uk-disabled.uk-active > a { + background: none; + border-color: transparent; +} +/* Modifier: 'tab-flip' + ========================================================================== */ +.uk-tab-flip > li { + float: right; +} +.uk-tab-flip > li:nth-child(n+2) > a { + margin-left: 0; + margin-right: 5px; +} +/* Modifier: 'tab-responsive' + ========================================================================== */ +.uk-tab > li.uk-tab-responsive > a { + margin-left: 0; + margin-right: 0; +} +/* + * Icon + */ +.uk-tab-responsive > a:before { + content: "\f0c9\00a0"; + font-family: FontAwesome; +} +/* Modifier: 'tab-center' + ========================================================================== */ +.uk-tab-center { + border-bottom: 1px solid #dddddd; +} +.uk-tab-center-bottom { + border-bottom: none; + border-top: 1px solid #dddddd; +} +.uk-tab-center:before, +.uk-tab-center:after { + content: ""; + display: table; +} +.uk-tab-center:after { + clear: both; +} +/* + * 1. Using `right` to prevent vertical scrollbar caused by centering if to many tabs + */ +.uk-tab-center .uk-tab { + position: relative; + right: 50%; + border: none; + float: right; +} +.uk-tab-center .uk-tab > li { + position: relative; + right: -50%; +} +.uk-tab-center .uk-tab > li > a { + text-align: center; +} +/* Modifier: 'tab-bottom' + ========================================================================== */ +.uk-tab-bottom { + border-top: 1px solid #dddddd; + border-bottom: none; +} +.uk-tab-bottom > li { + margin-top: -1px; + margin-bottom: 0; +} +.uk-tab-bottom > li > a { + padding-top: 8px; + padding-bottom: 8px; + border-bottom-width: 1px; + border-top-width: 0; +} +.uk-tab-bottom > li:not(.uk-active) > a:hover, +.uk-tab-bottom > li:not(.uk-active) > a:focus, +.uk-tab-bottom > li.uk-open:not(.uk-active) > a { + margin-bottom: 0; + margin-top: 1px; + padding-bottom: 8px; + padding-top: 7px; +} +.uk-tab-bottom > li.uk-active > a { + border-top-color: transparent; + border-bottom-color: #dddddd; +} +/* Modifier: 'tab-grid' + ========================================================================== */ +/* + * 1. Create position context to prevent hidden border because of negative `z-index` + */ +.uk-tab-grid { + margin-left: -5px; + border-bottom: none; + /* 1 */ + position: relative; + z-index: 0; +} +.uk-tab-grid:before { + display: block; + position: absolute; + left: 5px; + right: 0; + bottom: -1px; + border-top: 1px solid #dddddd; + /* 1 */ + z-index: -1; +} +.uk-tab-grid > li:first-child > a { + margin-left: 5px; +} +.uk-tab-grid > li > a { + text-align: center; +} +/* + * If `uk-tab-bottom` + */ +.uk-tab-grid.uk-tab-bottom { + border-top: none; +} +.uk-tab-grid.uk-tab-bottom:before { + top: -1px; + bottom: auto; +} +/* Modifier: 'tab-left', 'tab-right' + ========================================================================== */ +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-tab-left, + .uk-tab-right { + border-bottom: none; + } + .uk-tab-left > li, + .uk-tab-right > li { + margin-bottom: 0; + float: none; + } + .uk-tab-left > li > a, + .uk-tab-right > li > a { + padding-top: 8px; + padding-bottom: 8px; + } + .uk-tab-left > li:nth-child(n+2) > a, + .uk-tab-right > li:nth-child(n+2) > a { + margin-left: 0; + margin-top: 5px; + } + .uk-tab-left > li.uk-active > a, + .uk-tab-right > li.uk-active > a { + border-color: #dddddd; + } + /* + * Modifier: 'tab-left' + */ + .uk-tab-left { + border-right: 1px solid #dddddd; + } + .uk-tab-left > li { + margin-right: -1px; + } + .uk-tab-left > li > a { + border-bottom-width: 1px; + border-right-width: 0; + } + .uk-tab-left > li:not(.uk-active) > a:hover, + .uk-tab-left > li:not(.uk-active) > a:focus { + margin-bottom: 0; + margin-right: 1px; + padding-bottom: 8px; + padding-right: 11px; + } + .uk-tab-left > li.uk-active > a { + border-right-color: transparent; + } + /* + * Modifier: 'tab-right' + */ + .uk-tab-right { + border-left: 1px solid #dddddd; + } + .uk-tab-right > li { + margin-left: -1px; + } + .uk-tab-right > li > a { + border-bottom-width: 1px; + border-left-width: 0; + } + .uk-tab-right > li:not(.uk-active) > a:hover, + .uk-tab-right > li:not(.uk-active) > a:focus { + margin-bottom: 0; + margin-left: 1px; + padding-bottom: 8px; + padding-left: 11px; + } + .uk-tab-right > li.uk-active > a { + border-left-color: transparent; + } +} +/* Modifier: `uk-tab-bottom' + ========================================================================== */ +.uk-tab-bottom > li > a { + border-radius: 0 0 4px 4px; +} +/* Modifier: `uk-tab-left', `uk-tab-right' + ========================================================================== */ +/* Tablet and bigger */ +@media (min-width: 768px) { + /* + * Modifier: `uk-tab-left' + */ + .uk-tab-left > li > a { + border-radius: 4px 0 0 4px; + } + /* + * Modifier: `uk-tab-right' + */ + .uk-tab-right > li > a { + border-radius: 0 4px 4px 0; + } +} +/* ======================================================================== + Component: Thumbnav + ========================================================================== */ +/* + * 1. Gutter + * 2. Remove default list style + */ +.uk-thumbnav { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + /* 1 */ + margin-left: -10px; + margin-top: -10px; + /* 2 */ + padding: 0; + list-style: none; +} +/* + * 1. Space is allocated solely based on content dimensions + * 2. Horizontal gutter is using `padding` so `uk-width-*` classes can be applied + */ +.uk-thumbnav > * { + /* 1 */ + -ms-flex: none; + -webkit-flex: none; + flex: none; + /* 2 */ + padding-left: 10px; + margin-top: 10px; +} +/* + * DEPRECATED IE9 Support + */ +.uk-thumbnav:before, +.uk-thumbnav:after { + content: ""; + display: block; + overflow: hidden; +} +.uk-thumbnav:after { + clear: both; +} +.uk-thumbnav > * { + float: left; +} +/* Items + ========================================================================== */ +.uk-thumbnav > * > * { + display: block; + background: #ffffff; +} +.uk-thumbnav > * > * > img { + opacity: 0.7; + -webkit-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; +} +/* + * Hover + */ +.uk-thumbnav > * > :hover > img, +.uk-thumbnav > * > :focus > img { + opacity: 1; +} +/* + * Active + */ +.uk-thumbnav > .uk-active > * > img { + opacity: 1; +} +/* ======================================================================== + Component: List + ========================================================================== */ +.uk-list { + padding: 0; + list-style: none; +} +/* + * Micro clearfix to make list more robust + */ +.uk-list > li:before, +.uk-list > li:after { + content: ""; + display: table; +} +.uk-list > li:after { + clear: both; +} +/* + * Remove margin from the last-child + */ +.uk-list > li > :last-child { + margin-bottom: 0; +} +/* + * Nested lists + */ +.uk-list ul { + margin: 0; + padding-left: 20px; + list-style: none; +} +/* Modifier: `uk-list-line` + ========================================================================== */ +.uk-list-line > li:nth-child(n+2) { + margin-top: 5px; + padding-top: 5px; + border-top: 1px solid #dddddd; +} +/* Modifier: `uk-list-striped` + ========================================================================== */ +.uk-list-striped > li { + padding: 5px 5px; + border-bottom: 1px solid #dddddd; +} +.uk-list-striped > li:nth-of-type(odd) { + background: #fafafa; +} +/* Modifier: `uk-list-space` + ========================================================================== */ +.uk-list-space > li:nth-child(n+2) { + margin-top: 10px; +} +.uk-list-striped > li:first-child { + border-top: 1px solid #dddddd; +} +/* ======================================================================== + Component: Description list + ========================================================================== */ +/* Modifier: `uk-description-list-horizontal` + ========================================================================== */ +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-description-list-horizontal { + overflow: hidden; + } + .uk-description-list-horizontal > dt { + width: 160px; + float: left; + clear: both; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + .uk-description-list-horizontal > dd { + margin-left: 180px; + } +} +/* Modifier: `uk-description-list-line` + ========================================================================== */ +.uk-description-list-line > dt { + font-weight: normal; +} +.uk-description-list-line > dt:nth-child(n+2) { + margin-top: 5px; + padding-top: 5px; + border-top: 1px solid #dddddd; +} +.uk-description-list-line > dd { + color: #999999; +} +/* ======================================================================== + Component: Table + ========================================================================== */ +/* + * 1. Remove most spacing between table cells. + * 2. Block element behavior + * 3. Style + */ +.uk-table { + /* 1 */ + border-collapse: collapse; + border-spacing: 0; + /* 2 */ + width: 100%; + /* 3 */ + margin-bottom: 15px; +} +/* + * Add margin if adjacent element + */ +* + .uk-table { + margin-top: 15px; +} +.uk-table th, +.uk-table td { + padding: 8px 8px; + border-bottom: 1px solid #dddddd; +} +/* + * Set alignment + */ +.uk-table th { + text-align: left; +} +.uk-table td { + vertical-align: top; +} +.uk-table thead th { + vertical-align: bottom; +} +/* + * Caption and footer + */ +.uk-table caption, +.uk-table tfoot { + font-size: 12px; + font-style: italic; +} +.uk-table caption { + text-align: left; + color: #999999; +} +/* + * Active State + */ +.uk-table tbody tr.uk-active { + background: #f0f0f0; +} +/* Sub-modifier: `uk-table-middle` + ========================================================================== */ +.uk-table-middle, +.uk-table-middle td { + vertical-align: middle !important; +} +/* Modifier: `uk-table-striped` + ========================================================================== */ +.uk-table-striped tbody tr:nth-of-type(odd) { + background: #fafafa; +} +/* Modifier: `uk-table-condensed` + ========================================================================== */ +.uk-table-condensed td { + padding: 4px 8px; +} +/* Modifier: `uk-table-hover` + ========================================================================== */ +.uk-table-hover tbody tr:hover { + background: #f0f0f0; +} +/* ======================================================================== + Component: Form + ========================================================================== */ +/* + * 1. Define consistent box sizing. + * Default is `content-box` with following exceptions set to `border-box` + * `button`, `select`, `input[type="checkbox"]` and `input[type="radio"]` + * `input[type="search"]` in Chrome, Safari and Opera + * `input[type="color"]` in Firefox + * 2. Address margins set differently in Firefox/IE and Chrome/Safari/Opera. + * 3. Remove `border-radius` in iOS. + * 4. Correct `font` properties and `color` not being inherited. + */ +.uk-form input, +.uk-form select, +.uk-form textarea { + /* 1 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 2 */ + margin: 0; + /* 3 */ + border-radius: 0; + /* 4 */ + font: inherit; + color: inherit; +} +/* + * Address inconsistent `text-transform` inheritance which is only inherit in Firefox + */ +.uk-form select { + text-transform: none; +} +/* + * 1. Correct `font` properties not being inherited. + * 2. Don't inherit the `font-weight` and use `bold` instead. + * NOTE: Both declarations don't work in Chrome, Safari and Opera. + */ +.uk-form optgroup { + /* 1 */ + font: inherit; + /* 2 */ + font-weight: bold; +} +/* + * Removes inner padding and border in Firefox 4+. + */ +.uk-form input::-moz-focus-inner { + border: 0; + padding: 0; +} +/* + * Removes excess padding in IE 8/9/10. + */ +.uk-form input[type="checkbox"], +.uk-form input[type="radio"] { + padding: 0; +} +/* + * Improves consistency of cursor style for clickable elements + */ +.uk-form input[type="checkbox"]:not(:disabled), +.uk-form input[type="radio"]:not(:disabled) { + cursor: pointer; +} +/* + * Remove default style in iOS. + */ +.uk-form textarea, +.uk-form input:not([type]), +.uk-form input[type="text"], +.uk-form input[type="password"], +.uk-form input[type="email"], +.uk-form input[type="url"], +.uk-form input[type="search"], +.uk-form input[type="tel"], +.uk-form input[type="number"], +.uk-form input[type="datetime"] { + -webkit-appearance: none; +} +/* + * Remove inner padding and search cancel button in Chrome, Safari and Opera on OS X. + */ +.uk-form input[type="search"]::-webkit-search-cancel-button, +.uk-form input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} +/* + * Fix the cursor style for Chrome's increment/decrement buttons. For certain + * `font-size` values of the `input`, it causes the cursor style of the + * decrement button to change from `default` to `text`. + */ +.uk-form input[type="number"]::-webkit-inner-spin-button, +.uk-form input[type="number"]::-webkit-outer-spin-button { + height: auto; +} +/* + * Define consistent border, margin, and padding. + */ +.uk-form fieldset { + border: none; + margin: 0; + padding: 0; +} +/* + * 1. Remove default vertical scrollbar in IE 8/9/10/11. + * 2. Improve readability and alignment in all browsers. + */ +.uk-form textarea { + /* 1 */ + overflow: auto; + /* 2 */ + vertical-align: top; +} +/* + * Removes placeholder transparency in Firefox. + */ +.uk-form ::-moz-placeholder { + opacity: 1; +} +/* + * Removes `box-shadow` for invalid controls in Firefox. + */ +.uk-form :invalid { + box-shadow: none; +} +/* + * Vertical alignment + */ +.uk-form input:not([type="radio"]):not([type="checkbox"]), +.uk-form select { + vertical-align: middle; +} +/* Style + ========================================================================== */ +/* + * Remove margin from the last-child + */ +.uk-form > :last-child { + margin-bottom: 0; +} +/* + * Controls + * Except for `range`, `radio`, `checkbox`, `file`, `submit`, `reset`, `button` and `image` + * 1. Must be `height` because `min-height` is not working in OSX + * 2. Responsiveness: Sets a maximum width relative to the parent to scale on narrower viewports + * 3. Vertical `padding` needed for `select` elements in Firefox + * 4. Style + */ +.uk-form select, +.uk-form textarea, +.uk-form input:not([type]), +.uk-form input[type="text"], +.uk-form input[type="password"], +.uk-form input[type="datetime"], +.uk-form input[type="datetime-local"], +.uk-form input[type="date"], +.uk-form input[type="month"], +.uk-form input[type="time"], +.uk-form input[type="week"], +.uk-form input[type="number"], +.uk-form input[type="email"], +.uk-form input[type="url"], +.uk-form input[type="search"], +.uk-form input[type="tel"], +.uk-form input[type="color"] { + /* 1 */ + height: 30px; + /* 2 */ + max-width: 100%; + /* 3 */ + padding: 4px 6px; + /* 4 */ + border: 1px solid #dddddd; + background: #ffffff; + color: #444444; + -webkit-transition: all linear 0.2s; + transition: all linear 0.2s; + border-radius: 4px; +} +.uk-form select:focus, +.uk-form textarea:focus, +.uk-form input:not([type]):focus, +.uk-form input[type="text"]:focus, +.uk-form input[type="password"]:focus, +.uk-form input[type="datetime"]:focus, +.uk-form input[type="datetime-local"]:focus, +.uk-form input[type="date"]:focus, +.uk-form input[type="month"]:focus, +.uk-form input[type="time"]:focus, +.uk-form input[type="week"]:focus, +.uk-form input[type="number"]:focus, +.uk-form input[type="email"]:focus, +.uk-form input[type="url"]:focus, +.uk-form input[type="search"]:focus, +.uk-form input[type="tel"]:focus, +.uk-form input[type="color"]:focus { + border-color: #99baca; + outline: 0; + background: #f5fbfe; + color: #444444; +} +.uk-form select:disabled, +.uk-form textarea:disabled, +.uk-form input:not([type]):disabled, +.uk-form input[type="text"]:disabled, +.uk-form input[type="password"]:disabled, +.uk-form input[type="datetime"]:disabled, +.uk-form input[type="datetime-local"]:disabled, +.uk-form input[type="date"]:disabled, +.uk-form input[type="month"]:disabled, +.uk-form input[type="time"]:disabled, +.uk-form input[type="week"]:disabled, +.uk-form input[type="number"]:disabled, +.uk-form input[type="email"]:disabled, +.uk-form input[type="url"]:disabled, +.uk-form input[type="search"]:disabled, +.uk-form input[type="tel"]:disabled, +.uk-form input[type="color"]:disabled { + border-color: #dddddd; + background-color: #fafafa; + color: #999999; +} +/* + * Placeholder + */ +.uk-form :-ms-input-placeholder { + color: #999999 !important; +} +.uk-form ::-moz-placeholder { + color: #999999; +} +.uk-form ::-webkit-input-placeholder { + color: #999999; +} +.uk-form :disabled:-ms-input-placeholder { + color: #999999 !important; +} +.uk-form :disabled::-moz-placeholder { + color: #999999; +} +.uk-form :disabled::-webkit-input-placeholder { + color: #999999; +} +/* + * Legend + * 1. Behave like block element + * 2. Correct `color` not being inherited in IE 8/9/10/11. + * 3. Remove padding + * 4. `margin-bottom` is not working in Safari and Opera. + * Using `padding` and :after instead to create the border + * 5. Style + */ +.uk-form legend { + /* 1 */ + width: 100%; + /* 2 */ + border: 0; + /* 3 */ + padding: 0; + /* 4 */ + padding-bottom: 15px; + /* 5 */ + font-size: 18px; + line-height: 30px; +} +/* + * 1. Fixes IE9 + */ +.uk-form legend:after { + content: ""; + display: block; + border-bottom: 1px solid #dddddd; + /* 1 */ + width: 100%; +} +/* Size modifiers + * Higher specificity needed to override defaults + ========================================================================== */ +select.uk-form-small, +textarea.uk-form-small, +input[type].uk-form-small, +input:not([type]).uk-form-small { + height: 25px; + padding: 3px 3px; + font-size: 12px; +} +select.uk-form-large, +textarea.uk-form-large, +input[type].uk-form-large, +input:not([type]).uk-form-large { + height: 40px; + padding: 8px 6px; + font-size: 16px; +} +/* Reset height + * Must be after size modifiers + ========================================================================== */ +.uk-form textarea, +.uk-form select[multiple], +.uk-form select[size] { + height: auto; +} +/* Validation states + * Using !important to keep the selector simple + ========================================================================== */ +/* + * Error state + */ +.uk-form-danger { + border-color: #dc8d99 !important; + background: #fff7f8 !important; + color: #d85030 !important; +} +/* + * Success state + */ +.uk-form-success { + border-color: #8ec73b !important; + background: #fafff2 !important; + color: #659f13 !important; +} +/* Style modifiers + * Using !important to keep the selector simple + ========================================================================== */ +/* + * Blank form + */ +.uk-form-blank { + border-color: transparent !important; + border-style: dashed !important; + background: none !important; +} +.uk-form-blank:focus { + border-color: #dddddd !important; +} +/* Size sub-modifiers + ========================================================================== */ +/* + * Fixed widths + * Different widths for mini sized `input` and `select` elements + */ +input.uk-form-width-mini { + width: 40px; +} +select.uk-form-width-mini { + width: 65px; +} +.uk-form-width-small { + width: 130px; +} +.uk-form-width-medium { + width: 200px; +} +.uk-form-width-large { + width: 500px; +} +/* Sub-objects: `uk-form-row` + * Groups labels and controls in rows + ========================================================================== */ +/* + * Micro clearfix + * Needed for `uk-form-horizontal` modifier + */ +.uk-form-row:before, +.uk-form-row:after { + content: ""; + display: table; +} +.uk-form-row:after { + clear: both; +} +/* + * Vertical gutter + */ +.uk-form-row + .uk-form-row { + margin-top: 15px; +} +/* Help text + * Sub-object: `uk-form-help-inline`, `uk-form-help-block` + ========================================================================== */ +.uk-form-help-inline { + display: inline-block; + margin: 0 0 0 10px; +} +.uk-form-help-block { + margin: 5px 0 0 0; +} +/* Controls content + * Sub-object: `uk-form-controls`, `uk-form-controls-condensed` + ========================================================================== */ +/* + * Remove margins + */ +.uk-form-controls > :first-child { + margin-top: 0; +} +.uk-form-controls > :last-child { + margin-bottom: 0; +} +/* + * Group controls and text into blocks with a small spacing between blocks + */ +.uk-form-controls-condensed { + margin: 5px 0; +} +/* Modifier: `uk-form-stacked` + * Requires sub-object: `uk-form-label` + ========================================================================== */ +.uk-form-stacked .uk-form-label { + display: block; + margin-bottom: 5px; + font-weight: bold; +} +/* Modifier: `uk-form-horizontal` + * Requires sub-objects: `uk-form-label`, `uk-form-controls` + ========================================================================== */ +/* Tablet portrait and smaller */ +@media (max-width: 959px) { + /* Behave like `uk-form-stacked` */ + .uk-form-horizontal .uk-form-label { + display: block; + margin-bottom: 5px; + font-weight: bold; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-form-horizontal .uk-form-label { + width: 200px; + margin-top: 5px; + float: left; + } + .uk-form-horizontal .uk-form-controls { + margin-left: 215px; + } + /* Better vertical alignment if controls are checkboxes and radio buttons with text */ + .uk-form-horizontal .uk-form-controls-text { + padding-top: 5px; + } +} +/* Sub-object: `uk-form-icon` + ========================================================================== */ +/* + * 1. Container width fits its content + * 2. Create position context + * 3. Prevent `inline-block` consequences + */ +.uk-form-icon { + /* 1 */ + display: inline-block; + /* 2 */ + position: relative; + /* 3 */ + max-width: 100%; +} +/* + * 1. Make form element clickable through icon + */ +.uk-form-icon > [class*='uk-icon-'] { + position: absolute; + top: 50%; + width: 30px; + margin-top: -7px; + font-size: 14px; + color: #999999; + text-align: center; + /* 1 */ + pointer-events: none; +} +.uk-form-icon:not(.uk-form-icon-flip) > input { + padding-left: 30px !important; +} +/* + * Sub-modifier: `uk-form-icon-flip` + */ +.uk-form-icon-flip > [class*='uk-icon-'] { + right: 0; +} +.uk-form-icon-flip > input { + padding-right: 30px !important; +} +/* ======================================================================== + Component: Button + ========================================================================== */ +/* + * Removes inner padding and border in Firefox 4+. + */ +.uk-button::-moz-focus-inner { + border: 0; + padding: 0; +} +/* + * 1. Correct inability to style clickable `input` types in iOS. + * 2. Remove margins in Chrome, Safari and Opera. + * 3. Remove borders for `button`. + * 4. Address `overflow` set to `hidden` in IE 8/9/10/11. + * 5. Correct `font` properties and `color` not being inherited for `button`. + * 6. Address inconsistent `text-transform` inheritance which is only inherit in Firefox and IE + * 7. Style + * 8. `line-height` is used to create a height + * 9. `min-height` is necessary for `input` elements in Firefox and Opera because `line-height` is not working. + * 10. Reset button group whitespace hack + * 11. Required for `a`. + */ +.uk-button { + /* 1 */ + -webkit-appearance: none; + /* 2 */ + margin: 0; + /* 3 */ + border: none; + /* 4 */ + overflow: visible; + /* 5 */ + font: inherit; + color: #444444; + /* 6 */ + text-transform: none; + /* 7 */ + display: inline-block; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding: 0 12px; + background: #f7f7f7; + vertical-align: middle; + /* 8 */ + line-height: 28px; + /* 9 */ + min-height: 30px; + /* 10 */ + font-size: 1rem; + /* 11 */ + text-decoration: none; + text-align: center; + border: 1px solid rgba(0, 0, 0, 0.2); + border-bottom-color: rgba(0, 0, 0, 0.3); + background-origin: border-box; + background-image: -webkit-linear-gradient(top, #ffffff, #eeeeee); + background-image: linear-gradient(to bottom, #ffffff, #eeeeee); + border-radius: 4px; + text-shadow: 0 1px 0 #ffffff; +} +.uk-button:not(:disabled) { + cursor: pointer; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + * 3. Required for `a` elements + */ +.uk-button:hover, +.uk-button:focus { + background-color: #fafafa; + color: #444444; + /* 2 */ + outline: none; + /* 3 */ + text-decoration: none; + background-image: none; +} +/* Active */ +.uk-button:active, +.uk-button.uk-active { + background-color: #f5f5f5; + color: #444444; + border-color: rgba(0, 0, 0, 0.2); + border-top-color: rgba(0, 0, 0, 0.3); + background-image: none; + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); +} +/* Color modifiers + ========================================================================== */ +/* + * Modifier: `uk-button-primary` + */ +.uk-button-primary { + background-color: #009dd8; + color: #ffffff; + background-image: -webkit-linear-gradient(top, #00b4f5, #008dc5); + background-image: linear-gradient(to bottom, #00b4f5, #008dc5); + border-color: rgba(0, 0, 0, 0.2); + border-bottom-color: rgba(0, 0, 0, 0.4); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); +} +/* Hover */ +.uk-button-primary:hover, +.uk-button-primary:focus { + background-color: #00aff2; + color: #ffffff; + background-image: none; +} +/* Active */ +.uk-button-primary:active, +.uk-button-primary.uk-active { + background-color: #008abf; + color: #ffffff; + background-image: none; + border-color: rgba(0, 0, 0, 0.2); + border-top-color: rgba(0, 0, 0, 0.4); + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); +} +/* + * Modifier: `uk-button-success` + */ +.uk-button-success { + background-color: #82bb42; + color: #ffffff; + background-image: -webkit-linear-gradient(top, #9fd256, #6fac34); + background-image: linear-gradient(to bottom, #9fd256, #6fac34); + border-color: rgba(0, 0, 0, 0.2); + border-bottom-color: rgba(0, 0, 0, 0.4); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); +} +/* Hover */ +.uk-button-success:hover, +.uk-button-success:focus { + background-color: #8fce48; + color: #ffffff; + background-image: none; +} +/* Active */ +.uk-button-success:active, +.uk-button-success.uk-active { + background-color: #76b430; + color: #ffffff; + background-image: none; + border-color: rgba(0, 0, 0, 0.2); + border-top-color: rgba(0, 0, 0, 0.4); + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); +} +/* + * Modifier: `uk-button-danger` + */ +.uk-button-danger { + background-color: #d32c46; + color: #ffffff; + background-image: -webkit-linear-gradient(top, #ee465a, #c11a39); + background-image: linear-gradient(to bottom, #ee465a, #c11a39); + border-color: rgba(0, 0, 0, 0.2); + border-bottom-color: rgba(0, 0, 0, 0.4); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); +} +/* Hover */ +.uk-button-danger:hover, +.uk-button-danger:focus { + background-color: #e33551; + color: #ffffff; + background-image: none; +} +/* Active */ +.uk-button-danger:active, +.uk-button-danger.uk-active { + background-color: #c91c37; + color: #ffffff; + background-image: none; + border-color: rgba(0, 0, 0, 0.2); + border-top-color: rgba(0, 0, 0, 0.4); + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); +} +/* Disabled state + * Overrides also the color modifiers + ========================================================================== */ +/* Equal for all button types */ +.uk-button:disabled { + background-color: #fafafa; + color: #999999; + border-color: rgba(0, 0, 0, 0.2); + background-image: none; + box-shadow: none; + text-shadow: 0 1px 0 #ffffff; +} +/* Modifier: `uk-button-link` + ========================================================================== */ +/* Reset */ +.uk-button-link, +.uk-button-link:hover, +.uk-button-link:focus, +.uk-button-link:active, +.uk-button-link.uk-active, +.uk-button-link:disabled { + border-color: transparent; + background: none; + box-shadow: none; + text-shadow: none; +} +/* Color */ +.uk-button-link { + color: #0077dd; +} +.uk-button-link:hover, +.uk-button-link:focus, +.uk-button-link:active, +.uk-button-link.uk-active { + color: #005599; + text-decoration: underline; +} +.uk-button-link:disabled { + color: #999999; +} +/* Focus */ +.uk-button-link:focus { + outline: 1px dotted; +} +/* Size modifiers + ========================================================================== */ +.uk-button-mini { + min-height: 20px; + padding: 0 6px; + line-height: 18px; + font-size: 11px; +} +.uk-button-small { + min-height: 25px; + padding: 0 10px; + line-height: 23px; + font-size: 12px; +} +.uk-button-large { + min-height: 40px; + padding: 0 15px; + line-height: 38px; + font-size: 16px; + border-radius: 5px; +} +/* Sub-object `uk-button-group` + ========================================================================== */ +/* + * 1. Behave like buttons + * 2. Create position context for dropdowns + * 3. Remove whitespace between child elements when using `inline-block` + * 4. Prevent buttons from wrapping + * 5. Remove whitespace between child elements when using `inline-block` + */ +.uk-button-group { + /* 1 */ + display: inline-block; + vertical-align: middle; + /* 2 */ + position: relative; + /* 3 */ + font-size: 0.001px; + /* 4 */ + white-space: nowrap; +} +.uk-button-group > * { + display: inline-block; +} +/* 5 */ +.uk-button-group .uk-button { + vertical-align: top; +} +/* Sub-object: `uk-button-dropdown` + ========================================================================== */ +/* + * 1. Behave like buttons + * 2. Create position context for dropdowns + */ +.uk-button-dropdown { + /* 1 */ + display: inline-block; + vertical-align: middle; + /* 2 */ + position: relative; +} +/* Sub-object `uk-button-group` + ========================================================================== */ +/* + * Reset border-radius + */ +.uk-button-group > .uk-button:not(:first-child):not(:last-child), +.uk-button-group > div:not(:first-child):not(:last-child) .uk-button { + border-radius: 0; +} +.uk-button-group > .uk-button:first-child, +.uk-button-group > div:first-child .uk-button { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} +.uk-button-group > .uk-button:last-child, +.uk-button-group > div:last-child .uk-button { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} +/* + * Collapse border + */ +.uk-button-group > .uk-button:nth-child(n+2), +.uk-button-group > div:nth-child(n+2) .uk-button { + margin-left: -1px; +} +/* + * Create position context to superimpose the successor elements border + * Known issue: If you use an `a` element as button and an icon inside, + * the active state will not work if you click the icon inside the button + * Workaround: Just use a `button` or `input` element as button + */ +.uk-button-group .uk-button:active { + position: relative; +} +/* ======================================================================== + Component: Icon + ========================================================================== */ +@font-face { + font-family: 'FontAwesome'; + src: url("../fonts/fontawesome-webfont.eot"); + src: url("../fonts/fontawesome-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/fontawesome-webfont.woff2") format('woff2'), url("../fonts/fontawesome-webfont.woff") format("woff"), url("../fonts/fontawesome-webfont.ttf") format("truetype"); + font-weight: normal; + font-style: normal; +} +/* + * 1. Allow margin + * 2. Prevent inherit font style + * 4. Correct line-height + * 5. Better font rendering + * 6. Remove `text-decoration` for anchors + */ +[class*='uk-icon-'] { + font-family: FontAwesome; + /* 1 */ + display: inline-block; + /* 2 */ + font-weight: normal; + font-style: normal; + /* 4 */ + line-height: 1; + /* 5 */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +/* 6 */ +[class*='uk-icon-'], +[class*='uk-icon-']:hover, +[class*='uk-icon-']:focus { + text-decoration: none; +} +/* Size modifiers + ========================================================================== */ +.uk-icon-small { + font-size: 150%; + vertical-align: -10%; +} +.uk-icon-medium { + font-size: 200%; + vertical-align: -16%; +} +.uk-icon-large { + font-size: 250%; + vertical-align: -22%; +} +/* Modifier: `uk-icon-justify` + ========================================================================== */ +.uk-icon-justify { + width: 1em; + text-align: center; +} +/* Modifier: `uk-icon-spin` + ========================================================================== */ +.uk-icon-spin { + display: inline-block; + -webkit-animation: uk-rotate 2s infinite linear; + animation: uk-rotate 2s infinite linear; +} +/* Modifier: `uk-icon-hover` + ========================================================================== */ +.uk-icon-hover { + color: #999999; +} +/* + * Hover + */ +.uk-icon-hover:hover { + color: #444444; +} +/* Modifier: `uk-icon-button` + ========================================================================== */ +.uk-icon-button { + -moz-box-sizing: border-box; + box-sizing: border-box; + display: inline-block; + width: 35px; + height: 35px; + border-radius: 100%; + background: #f7f7f7; + line-height: 35px; + color: #444444; + font-size: 18px; + text-align: center; + border: 1px solid #cccccc; + border-bottom-color: #bbbbbb; + background-origin: border-box; + background-image: -webkit-linear-gradient(top, #ffffff, #eeeeee); + background-image: linear-gradient(to bottom, #ffffff, #eeeeee); + text-shadow: 0 1px 0 #ffffff; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + */ +.uk-icon-button:hover, +.uk-icon-button:focus { + background-color: #fafafa; + color: #444444; + /* 2 */ + outline: none; + background-image: none; +} +/* Active */ +.uk-icon-button:active { + background-color: #f5f5f5; + color: #444444; + border-color: #cccccc; + border-top-color: #bbbbbb; + background-image: none; + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); +} +/* Icon mapping + ========================================================================== */ +.uk-icon-glass:before { + content: "\f000"; +} +.uk-icon-music:before { + content: "\f001"; +} +.uk-icon-search:before { + content: "\f002"; +} +.uk-icon-envelope-o:before { + content: "\f003"; +} +.uk-icon-heart:before { + content: "\f004"; +} +.uk-icon-star:before { + content: "\f005"; +} +.uk-icon-star-o:before { + content: "\f006"; +} +.uk-icon-user:before { + content: "\f007"; +} +.uk-icon-film:before { + content: "\f008"; +} +.uk-icon-th-large:before { + content: "\f009"; +} +.uk-icon-th:before { + content: "\f00a"; +} +.uk-icon-th-list:before { + content: "\f00b"; +} +.uk-icon-check:before { + content: "\f00c"; +} +.uk-icon-remove:before, +.uk-icon-close:before, +.uk-icon-times:before { + content: "\f00d"; +} +.uk-icon-search-plus:before { + content: "\f00e"; +} +.uk-icon-search-minus:before { + content: "\f010"; +} +.uk-icon-power-off:before { + content: "\f011"; +} +.uk-icon-signal:before { + content: "\f012"; +} +.uk-icon-gear:before, +.uk-icon-cog:before { + content: "\f013"; +} +.uk-icon-trash-o:before { + content: "\f014"; +} +.uk-icon-home:before { + content: "\f015"; +} +.uk-icon-file-o:before { + content: "\f016"; +} +.uk-icon-clock-o:before { + content: "\f017"; +} +.uk-icon-road:before { + content: "\f018"; +} +.uk-icon-download:before { + content: "\f019"; +} +.uk-icon-arrow-circle-o-down:before { + content: "\f01a"; +} +.uk-icon-arrow-circle-o-up:before { + content: "\f01b"; +} +.uk-icon-inbox:before { + content: "\f01c"; +} +.uk-icon-play-circle-o:before { + content: "\f01d"; +} +.uk-icon-rotate-right:before, +.uk-icon-repeat:before { + content: "\f01e"; +} +.uk-icon-refresh:before { + content: "\f021"; +} +.uk-icon-list-alt:before { + content: "\f022"; +} +.uk-icon-lock:before { + content: "\f023"; +} +.uk-icon-flag:before { + content: "\f024"; +} +.uk-icon-headphones:before { + content: "\f025"; +} +.uk-icon-volume-off:before { + content: "\f026"; +} +.uk-icon-volume-down:before { + content: "\f027"; +} +.uk-icon-volume-up:before { + content: "\f028"; +} +.uk-icon-qrcode:before { + content: "\f029"; +} +.uk-icon-barcode:before { + content: "\f02a"; +} +.uk-icon-tag:before { + content: "\f02b"; +} +.uk-icon-tags:before { + content: "\f02c"; +} +.uk-icon-book:before { + content: "\f02d"; +} +.uk-icon-bookmark:before { + content: "\f02e"; +} +.uk-icon-print:before { + content: "\f02f"; +} +.uk-icon-camera:before { + content: "\f030"; +} +.uk-icon-font:before { + content: "\f031"; +} +.uk-icon-bold:before { + content: "\f032"; +} +.uk-icon-italic:before { + content: "\f033"; +} +.uk-icon-text-height:before { + content: "\f034"; +} +.uk-icon-text-width:before { + content: "\f035"; +} +.uk-icon-align-left:before { + content: "\f036"; +} +.uk-icon-align-center:before { + content: "\f037"; +} +.uk-icon-align-right:before { + content: "\f038"; +} +.uk-icon-align-justify:before { + content: "\f039"; +} +.uk-icon-list:before { + content: "\f03a"; +} +.uk-icon-dedent:before, +.uk-icon-outdent:before { + content: "\f03b"; +} +.uk-icon-indent:before { + content: "\f03c"; +} +.uk-icon-video-camera:before { + content: "\f03d"; +} +.uk-icon-photo:before, +.uk-icon-image:before, +.uk-icon-picture-o:before { + content: "\f03e"; +} +.uk-icon-pencil:before { + content: "\f040"; +} +.uk-icon-map-marker:before { + content: "\f041"; +} +.uk-icon-adjust:before { + content: "\f042"; +} +.uk-icon-tint:before { + content: "\f043"; +} +.uk-icon-edit:before, +.uk-icon-pencil-square-o:before { + content: "\f044"; +} +.uk-icon-share-square-o:before { + content: "\f045"; +} +.uk-icon-check-square-o:before { + content: "\f046"; +} +.uk-icon-arrows:before { + content: "\f047"; +} +.uk-icon-step-backward:before { + content: "\f048"; +} +.uk-icon-fast-backward:before { + content: "\f049"; +} +.uk-icon-backward:before { + content: "\f04a"; +} +.uk-icon-play:before { + content: "\f04b"; +} +.uk-icon-pause:before { + content: "\f04c"; +} +.uk-icon-stop:before { + content: "\f04d"; +} +.uk-icon-forward:before { + content: "\f04e"; +} +.uk-icon-fast-forward:before { + content: "\f050"; +} +.uk-icon-step-forward:before { + content: "\f051"; +} +.uk-icon-eject:before { + content: "\f052"; +} +.uk-icon-chevron-left:before { + content: "\f053"; +} +.uk-icon-chevron-right:before { + content: "\f054"; +} +.uk-icon-plus-circle:before { + content: "\f055"; +} +.uk-icon-minus-circle:before { + content: "\f056"; +} +.uk-icon-times-circle:before { + content: "\f057"; +} +.uk-icon-check-circle:before { + content: "\f058"; +} +.uk-icon-question-circle:before { + content: "\f059"; +} +.uk-icon-info-circle:before { + content: "\f05a"; +} +.uk-icon-crosshairs:before { + content: "\f05b"; +} +.uk-icon-times-circle-o:before { + content: "\f05c"; +} +.uk-icon-check-circle-o:before { + content: "\f05d"; +} +.uk-icon-ban:before { + content: "\f05e"; +} +.uk-icon-arrow-left:before { + content: "\f060"; +} +.uk-icon-arrow-right:before { + content: "\f061"; +} +.uk-icon-arrow-up:before { + content: "\f062"; +} +.uk-icon-arrow-down:before { + content: "\f063"; +} +.uk-icon-mail-forward:before, +.uk-icon-share:before { + content: "\f064"; +} +.uk-icon-expand:before { + content: "\f065"; +} +.uk-icon-compress:before { + content: "\f066"; +} +.uk-icon-plus:before { + content: "\f067"; +} +.uk-icon-minus:before { + content: "\f068"; +} +.uk-icon-asterisk:before { + content: "\f069"; +} +.uk-icon-exclamation-circle:before { + content: "\f06a"; +} +.uk-icon-gift:before { + content: "\f06b"; +} +.uk-icon-leaf:before { + content: "\f06c"; +} +.uk-icon-fire:before { + content: "\f06d"; +} +.uk-icon-eye:before { + content: "\f06e"; +} +.uk-icon-eye-slash:before { + content: "\f070"; +} +.uk-icon-warning:before, +.uk-icon-exclamation-triangle:before { + content: "\f071"; +} +.uk-icon-plane:before { + content: "\f072"; +} +.uk-icon-calendar:before { + content: "\f073"; +} +.uk-icon-random:before { + content: "\f074"; +} +.uk-icon-comment:before { + content: "\f075"; +} +.uk-icon-magnet:before { + content: "\f076"; +} +.uk-icon-chevron-up:before { + content: "\f077"; +} +.uk-icon-chevron-down:before { + content: "\f078"; +} +.uk-icon-retweet:before { + content: "\f079"; +} +.uk-icon-shopping-cart:before { + content: "\f07a"; +} +.uk-icon-folder:before { + content: "\f07b"; +} +.uk-icon-folder-open:before { + content: "\f07c"; +} +.uk-icon-arrows-v:before { + content: "\f07d"; +} +.uk-icon-arrows-h:before { + content: "\f07e"; +} +.uk-icon-bar-chart-o:before, +.uk-icon-bar-chart:before { + content: "\f080"; +} +.uk-icon-twitter-square:before { + content: "\f081"; +} +.uk-icon-facebook-square:before { + content: "\f082"; +} +.uk-icon-camera-retro:before { + content: "\f083"; +} +.uk-icon-key:before { + content: "\f084"; +} +.uk-icon-gears:before, +.uk-icon-cogs:before { + content: "\f085"; +} +.uk-icon-comments:before { + content: "\f086"; +} +.uk-icon-thumbs-o-up:before { + content: "\f087"; +} +.uk-icon-thumbs-o-down:before { + content: "\f088"; +} +.uk-icon-star-half:before { + content: "\f089"; +} +.uk-icon-heart-o:before { + content: "\f08a"; +} +.uk-icon-sign-out:before { + content: "\f08b"; +} +.uk-icon-linkedin-square:before { + content: "\f08c"; +} +.uk-icon-thumb-tack:before { + content: "\f08d"; +} +.uk-icon-external-link:before { + content: "\f08e"; +} +.uk-icon-sign-in:before { + content: "\f090"; +} +.uk-icon-trophy:before { + content: "\f091"; +} +.uk-icon-github-square:before { + content: "\f092"; +} +.uk-icon-upload:before { + content: "\f093"; +} +.uk-icon-lemon-o:before { + content: "\f094"; +} +.uk-icon-phone:before { + content: "\f095"; +} +.uk-icon-square-o:before { + content: "\f096"; +} +.uk-icon-bookmark-o:before { + content: "\f097"; +} +.uk-icon-phone-square:before { + content: "\f098"; +} +.uk-icon-twitter:before { + content: "\f099"; +} +.uk-icon-facebook-f:before, +.uk-icon-facebook:before { + content: "\f09a"; +} +.uk-icon-github:before { + content: "\f09b"; +} +.uk-icon-unlock:before { + content: "\f09c"; +} +.uk-icon-credit-card:before { + content: "\f09d"; +} +.uk-icon-rss:before { + content: "\f09e"; +} +.uk-icon-hdd-o:before { + content: "\f0a0"; +} +.uk-icon-bullhorn:before { + content: "\f0a1"; +} +.uk-icon-bell:before { + content: "\f0f3"; +} +.uk-icon-certificate:before { + content: "\f0a3"; +} +.uk-icon-hand-o-right:before { + content: "\f0a4"; +} +.uk-icon-hand-o-left:before { + content: "\f0a5"; +} +.uk-icon-hand-o-up:before { + content: "\f0a6"; +} +.uk-icon-hand-o-down:before { + content: "\f0a7"; +} +.uk-icon-arrow-circle-left:before { + content: "\f0a8"; +} +.uk-icon-arrow-circle-right:before { + content: "\f0a9"; +} +.uk-icon-arrow-circle-up:before { + content: "\f0aa"; +} +.uk-icon-arrow-circle-down:before { + content: "\f0ab"; +} +.uk-icon-globe:before { + content: "\f0ac"; +} +.uk-icon-wrench:before { + content: "\f0ad"; +} +.uk-icon-tasks:before { + content: "\f0ae"; +} +.uk-icon-filter:before { + content: "\f0b0"; +} +.uk-icon-briefcase:before { + content: "\f0b1"; +} +.uk-icon-arrows-alt:before { + content: "\f0b2"; +} +.uk-icon-group:before, +.uk-icon-users:before { + content: "\f0c0"; +} +.uk-icon-chain:before, +.uk-icon-link:before { + content: "\f0c1"; +} +.uk-icon-cloud:before { + content: "\f0c2"; +} +.uk-icon-flask:before { + content: "\f0c3"; +} +.uk-icon-cut:before, +.uk-icon-scissors:before { + content: "\f0c4"; +} +.uk-icon-copy:before, +.uk-icon-files-o:before { + content: "\f0c5"; +} +.uk-icon-paperclip:before { + content: "\f0c6"; +} +.uk-icon-save:before, +.uk-icon-floppy-o:before { + content: "\f0c7"; +} +.uk-icon-square:before { + content: "\f0c8"; +} +.uk-icon-navicon:before, +.uk-icon-reorder:before, +.uk-icon-bars:before { + content: "\f0c9"; +} +.uk-icon-list-ul:before { + content: "\f0ca"; +} +.uk-icon-list-ol:before { + content: "\f0cb"; +} +.uk-icon-strikethrough:before { + content: "\f0cc"; +} +.uk-icon-underline:before { + content: "\f0cd"; +} +.uk-icon-table:before { + content: "\f0ce"; +} +.uk-icon-magic:before { + content: "\f0d0"; +} +.uk-icon-truck:before { + content: "\f0d1"; +} +.uk-icon-pinterest:before { + content: "\f0d2"; +} +.uk-icon-pinterest-square:before { + content: "\f0d3"; +} +.uk-icon-google-plus-square:before { + content: "\f0d4"; +} +.uk-icon-google-plus:before { + content: "\f0d5"; +} +.uk-icon-money:before { + content: "\f0d6"; +} +.uk-icon-caret-down:before { + content: "\f0d7"; +} +.uk-icon-caret-up:before { + content: "\f0d8"; +} +.uk-icon-caret-left:before { + content: "\f0d9"; +} +.uk-icon-caret-right:before { + content: "\f0da"; +} +.uk-icon-columns:before { + content: "\f0db"; +} +.uk-icon-unsorted:before, +.uk-icon-sort:before { + content: "\f0dc"; +} +.uk-icon-sort-down:before, +.uk-icon-sort-desc:before { + content: "\f0dd"; +} +.uk-icon-sort-up:before, +.uk-icon-sort-asc:before { + content: "\f0de"; +} +.uk-icon-envelope:before { + content: "\f0e0"; +} +.uk-icon-linkedin:before { + content: "\f0e1"; +} +.uk-icon-rotate-left:before, +.uk-icon-undo:before { + content: "\f0e2"; +} +.uk-icon-legal:before, +.uk-icon-gavel:before { + content: "\f0e3"; +} +.uk-icon-dashboard:before, +.uk-icon-tachometer:before { + content: "\f0e4"; +} +.uk-icon-comment-o:before { + content: "\f0e5"; +} +.uk-icon-comments-o:before { + content: "\f0e6"; +} +.uk-icon-flash:before, +.uk-icon-bolt:before { + content: "\f0e7"; +} +.uk-icon-sitemap:before { + content: "\f0e8"; +} +.uk-icon-umbrella:before { + content: "\f0e9"; +} +.uk-icon-paste:before, +.uk-icon-clipboard:before { + content: "\f0ea"; +} +.uk-icon-lightbulb-o:before { + content: "\f0eb"; +} +.uk-icon-exchange:before { + content: "\f0ec"; +} +.uk-icon-cloud-download:before { + content: "\f0ed"; +} +.uk-icon-cloud-upload:before { + content: "\f0ee"; +} +.uk-icon-user-md:before { + content: "\f0f0"; +} +.uk-icon-stethoscope:before { + content: "\f0f1"; +} +.uk-icon-suitcase:before { + content: "\f0f2"; +} +.uk-icon-bell-o:before { + content: "\f0a2"; +} +.uk-icon-coffee:before { + content: "\f0f4"; +} +.uk-icon-cutlery:before { + content: "\f0f5"; +} +.uk-icon-file-text-o:before { + content: "\f0f6"; +} +.uk-icon-building-o:before { + content: "\f0f7"; +} +.uk-icon-hospital-o:before { + content: "\f0f8"; +} +.uk-icon-ambulance:before { + content: "\f0f9"; +} +.uk-icon-medkit:before { + content: "\f0fa"; +} +.uk-icon-fighter-jet:before { + content: "\f0fb"; +} +.uk-icon-beer:before { + content: "\f0fc"; +} +.uk-icon-h-square:before { + content: "\f0fd"; +} +.uk-icon-plus-square:before { + content: "\f0fe"; +} +.uk-icon-angle-double-left:before { + content: "\f100"; +} +.uk-icon-angle-double-right:before { + content: "\f101"; +} +.uk-icon-angle-double-up:before { + content: "\f102"; +} +.uk-icon-angle-double-down:before { + content: "\f103"; +} +.uk-icon-angle-left:before { + content: "\f104"; +} +.uk-icon-angle-right:before { + content: "\f105"; +} +.uk-icon-angle-up:before { + content: "\f106"; +} +.uk-icon-angle-down:before { + content: "\f107"; +} +.uk-icon-desktop:before { + content: "\f108"; +} +.uk-icon-laptop:before { + content: "\f109"; +} +.uk-icon-tablet:before { + content: "\f10a"; +} +.uk-icon-mobile-phone:before, +.uk-icon-mobile:before { + content: "\f10b"; +} +.uk-icon-circle-o:before { + content: "\f10c"; +} +.uk-icon-quote-left:before { + content: "\f10d"; +} +.uk-icon-quote-right:before { + content: "\f10e"; +} +.uk-icon-spinner:before { + content: "\f110"; +} +.uk-icon-circle:before { + content: "\f111"; +} +.uk-icon-mail-reply:before, +.uk-icon-reply:before { + content: "\f112"; +} +.uk-icon-github-alt:before { + content: "\f113"; +} +.uk-icon-folder-o:before { + content: "\f114"; +} +.uk-icon-folder-open-o:before { + content: "\f115"; +} +.uk-icon-smile-o:before { + content: "\f118"; +} +.uk-icon-frown-o:before { + content: "\f119"; +} +.uk-icon-meh-o:before { + content: "\f11a"; +} +.uk-icon-gamepad:before { + content: "\f11b"; +} +.uk-icon-keyboard-o:before { + content: "\f11c"; +} +.uk-icon-flag-o:before { + content: "\f11d"; +} +.uk-icon-flag-checkered:before { + content: "\f11e"; +} +.uk-icon-terminal:before { + content: "\f120"; +} +.uk-icon-code:before { + content: "\f121"; +} +.uk-icon-mail-reply-all:before, +.uk-icon-reply-all:before { + content: "\f122"; +} +.uk-icon-star-half-empty:before, +.uk-icon-star-half-full:before, +.uk-icon-star-half-o:before { + content: "\f123"; +} +.uk-icon-location-arrow:before { + content: "\f124"; +} +.uk-icon-crop:before { + content: "\f125"; +} +.uk-icon-code-fork:before { + content: "\f126"; +} +.uk-icon-unlink:before, +.uk-icon-chain-broken:before { + content: "\f127"; +} +.uk-icon-question:before { + content: "\f128"; +} +.uk-icon-info:before { + content: "\f129"; +} +.uk-icon-exclamation:before { + content: "\f12a"; +} +.uk-icon-superscript:before { + content: "\f12b"; +} +.uk-icon-subscript:before { + content: "\f12c"; +} +.uk-icon-eraser:before { + content: "\f12d"; +} +.uk-icon-puzzle-piece:before { + content: "\f12e"; +} +.uk-icon-microphone:before { + content: "\f130"; +} +.uk-icon-microphone-slash:before { + content: "\f131"; +} +.uk-icon-shield:before { + content: "\f132"; +} +.uk-icon-calendar-o:before { + content: "\f133"; +} +.uk-icon-fire-extinguisher:before { + content: "\f134"; +} +.uk-icon-rocket:before { + content: "\f135"; +} +.uk-icon-maxcdn:before { + content: "\f136"; +} +.uk-icon-chevron-circle-left:before { + content: "\f137"; +} +.uk-icon-chevron-circle-right:before { + content: "\f138"; +} +.uk-icon-chevron-circle-up:before { + content: "\f139"; +} +.uk-icon-chevron-circle-down:before { + content: "\f13a"; +} +.uk-icon-html5:before { + content: "\f13b"; +} +.uk-icon-css3:before { + content: "\f13c"; +} +.uk-icon-anchor:before { + content: "\f13d"; +} +.uk-icon-unlock-alt:before { + content: "\f13e"; +} +.uk-icon-bullseye:before { + content: "\f140"; +} +.uk-icon-ellipsis-h:before { + content: "\f141"; +} +.uk-icon-ellipsis-v:before { + content: "\f142"; +} +.uk-icon-rss-square:before { + content: "\f143"; +} +.uk-icon-play-circle:before { + content: "\f144"; +} +.uk-icon-ticket:before { + content: "\f145"; +} +.uk-icon-minus-square:before { + content: "\f146"; +} +.uk-icon-minus-square-o:before { + content: "\f147"; +} +.uk-icon-level-up:before { + content: "\f148"; +} +.uk-icon-level-down:before { + content: "\f149"; +} +.uk-icon-check-square:before { + content: "\f14a"; +} +.uk-icon-pencil-square:before { + content: "\f14b"; +} +.uk-icon-external-link-square:before { + content: "\f14c"; +} +.uk-icon-share-square:before { + content: "\f14d"; +} +.uk-icon-compass:before { + content: "\f14e"; +} +.uk-icon-toggle-down:before, +.uk-icon-caret-square-o-down:before { + content: "\f150"; +} +.uk-icon-toggle-up:before, +.uk-icon-caret-square-o-up:before { + content: "\f151"; +} +.uk-icon-toggle-right:before, +.uk-icon-caret-square-o-right:before { + content: "\f152"; +} +.uk-icon-euro:before, +.uk-icon-eur:before { + content: "\f153"; +} +.uk-icon-gbp:before { + content: "\f154"; +} +.uk-icon-dollar:before, +.uk-icon-usd:before { + content: "\f155"; +} +.uk-icon-rupee:before, +.uk-icon-inr:before { + content: "\f156"; +} +.uk-icon-cny:before, +.uk-icon-rmb:before, +.uk-icon-yen:before, +.uk-icon-jpy:before { + content: "\f157"; +} +.uk-icon-ruble:before, +.uk-icon-rouble:before, +.uk-icon-rub:before { + content: "\f158"; +} +.uk-icon-won:before, +.uk-icon-krw:before { + content: "\f159"; +} +.uk-icon-bitcoin:before, +.uk-icon-btc:before { + content: "\f15a"; +} +.uk-icon-file:before { + content: "\f15b"; +} +.uk-icon-file-text:before { + content: "\f15c"; +} +.uk-icon-sort-alpha-asc:before { + content: "\f15d"; +} +.uk-icon-sort-alpha-desc:before { + content: "\f15e"; +} +.uk-icon-sort-amount-asc:before { + content: "\f160"; +} +.uk-icon-sort-amount-desc:before { + content: "\f161"; +} +.uk-icon-sort-numeric-asc:before { + content: "\f162"; +} +.uk-icon-sort-numeric-desc:before { + content: "\f163"; +} +.uk-icon-thumbs-up:before { + content: "\f164"; +} +.uk-icon-thumbs-down:before { + content: "\f165"; +} +.uk-icon-youtube-square:before { + content: "\f166"; +} +.uk-icon-youtube:before { + content: "\f167"; +} +.uk-icon-xing:before { + content: "\f168"; +} +.uk-icon-xing-square:before { + content: "\f169"; +} +.uk-icon-youtube-play:before { + content: "\f16a"; +} +.uk-icon-dropbox:before { + content: "\f16b"; +} +.uk-icon-stack-overflow:before { + content: "\f16c"; +} +.uk-icon-instagram:before { + content: "\f16d"; +} +.uk-icon-flickr:before { + content: "\f16e"; +} +.uk-icon-adn:before { + content: "\f170"; +} +.uk-icon-bitbucket:before { + content: "\f171"; +} +.uk-icon-bitbucket-square:before { + content: "\f172"; +} +.uk-icon-tumblr:before { + content: "\f173"; +} +.uk-icon-tumblr-square:before { + content: "\f174"; +} +.uk-icon-long-arrow-down:before { + content: "\f175"; +} +.uk-icon-long-arrow-up:before { + content: "\f176"; +} +.uk-icon-long-arrow-left:before { + content: "\f177"; +} +.uk-icon-long-arrow-right:before { + content: "\f178"; +} +.uk-icon-apple:before { + content: "\f179"; +} +.uk-icon-windows:before { + content: "\f17a"; +} +.uk-icon-android:before { + content: "\f17b"; +} +.uk-icon-linux:before { + content: "\f17c"; +} +.uk-icon-dribbble:before { + content: "\f17d"; +} +.uk-icon-skype:before { + content: "\f17e"; +} +.uk-icon-foursquare:before { + content: "\f180"; +} +.uk-icon-trello:before { + content: "\f181"; +} +.uk-icon-female:before { + content: "\f182"; +} +.uk-icon-male:before { + content: "\f183"; +} +.uk-icon-gittip:before, +.uk-icon-gratipay:before { + content: "\f184"; +} +.uk-icon-sun-o:before { + content: "\f185"; +} +.uk-icon-moon-o:before { + content: "\f186"; +} +.uk-icon-archive:before { + content: "\f187"; +} +.uk-icon-bug:before { + content: "\f188"; +} +.uk-icon-vk:before { + content: "\f189"; +} +.uk-icon-weibo:before { + content: "\f18a"; +} +.uk-icon-renren:before { + content: "\f18b"; +} +.uk-icon-pagelines:before { + content: "\f18c"; +} +.uk-icon-stack-exchange:before { + content: "\f18d"; +} +.uk-icon-arrow-circle-o-right:before { + content: "\f18e"; +} +.uk-icon-arrow-circle-o-left:before { + content: "\f190"; +} +.uk-icon-toggle-left:before, +.uk-icon-caret-square-o-left:before { + content: "\f191"; +} +.uk-icon-dot-circle-o:before { + content: "\f192"; +} +.uk-icon-wheelchair:before { + content: "\f193"; +} +.uk-icon-vimeo-square:before { + content: "\f194"; +} +.uk-icon-turkish-lira:before, +.uk-icon-try:before { + content: "\f195"; +} +.uk-icon-plus-square-o:before { + content: "\f196"; +} +.uk-icon-space-shuttle:before { + content: "\f197"; +} +.uk-icon-slack:before { + content: "\f198"; +} +.uk-icon-envelope-square:before { + content: "\f199"; +} +.uk-icon-wordpress:before { + content: "\f19a"; +} +.uk-icon-openid:before { + content: "\f19b"; +} +.uk-icon-institution:before, +.uk-icon-bank:before, +.uk-icon-university:before { + content: "\f19c"; +} +.uk-icon-mortar-board:before, +.uk-icon-graduation-cap:before { + content: "\f19d"; +} +.uk-icon-yahoo:before { + content: "\f19e"; +} +.uk-icon-google:before { + content: "\f1a0"; +} +.uk-icon-reddit:before { + content: "\f1a1"; +} +.uk-icon-reddit-square:before { + content: "\f1a2"; +} +.uk-icon-stumbleupon-circle:before { + content: "\f1a3"; +} +.uk-icon-stumbleupon:before { + content: "\f1a4"; +} +.uk-icon-delicious:before { + content: "\f1a5"; +} +.uk-icon-digg:before { + content: "\f1a6"; +} +.uk-icon-pied-piper:before { + content: "\f1a7"; +} +.uk-icon-pied-piper-alt:before { + content: "\f1a8"; +} +.uk-icon-drupal:before { + content: "\f1a9"; +} +.uk-icon-joomla:before { + content: "\f1aa"; +} +.uk-icon-language:before { + content: "\f1ab"; +} +.uk-icon-fax:before { + content: "\f1ac"; +} +.uk-icon-building:before { + content: "\f1ad"; +} +.uk-icon-child:before { + content: "\f1ae"; +} +.uk-icon-paw:before { + content: "\f1b0"; +} +.uk-icon-spoon:before { + content: "\f1b1"; +} +.uk-icon-cube:before { + content: "\f1b2"; +} +.uk-icon-cubes:before { + content: "\f1b3"; +} +.uk-icon-behance:before { + content: "\f1b4"; +} +.uk-icon-behance-square:before { + content: "\f1b5"; +} +.uk-icon-steam:before { + content: "\f1b6"; +} +.uk-icon-steam-square:before { + content: "\f1b7"; +} +.uk-icon-recycle:before { + content: "\f1b8"; +} +.uk-icon-automobile:before, +.uk-icon-car:before { + content: "\f1b9"; +} +.uk-icon-cab:before, +.uk-icon-taxi:before { + content: "\f1ba"; +} +.uk-icon-tree:before { + content: "\f1bb"; +} +.uk-icon-spotify:before { + content: "\f1bc"; +} +.uk-icon-deviantart:before { + content: "\f1bd"; +} +.uk-icon-soundcloud:before { + content: "\f1be"; +} +.uk-icon-database:before { + content: "\f1c0"; +} +.uk-icon-file-pdf-o:before { + content: "\f1c1"; +} +.uk-icon-file-word-o:before { + content: "\f1c2"; +} +.uk-icon-file-excel-o:before { + content: "\f1c3"; +} +.uk-icon-file-powerpoint-o:before { + content: "\f1c4"; +} +.uk-icon-file-photo-o:before, +.uk-icon-file-picture-o:before, +.uk-icon-file-image-o:before { + content: "\f1c5"; +} +.uk-icon-file-zip-o:before, +.uk-icon-file-archive-o:before { + content: "\f1c6"; +} +.uk-icon-file-sound-o:before, +.uk-icon-file-audio-o:before { + content: "\f1c7"; +} +.uk-icon-file-movie-o:before, +.uk-icon-file-video-o:before { + content: "\f1c8"; +} +.uk-icon-file-code-o:before { + content: "\f1c9"; +} +.uk-icon-vine:before { + content: "\f1ca"; +} +.uk-icon-codepen:before { + content: "\f1cb"; +} +.uk-icon-jsfiddle:before { + content: "\f1cc"; +} +.uk-icon-life-bouy:before, +.uk-icon-life-buoy:before, +.uk-icon-life-saver:before, +.uk-icon-support:before, +.uk-icon-life-ring:before { + content: "\f1cd"; +} +.uk-icon-circle-o-notch:before { + content: "\f1ce"; +} +.uk-icon-ra:before, +.uk-icon-rebel:before { + content: "\f1d0"; +} +.uk-icon-ge:before, +.uk-icon-empire:before { + content: "\f1d1"; +} +.uk-icon-git-square:before { + content: "\f1d2"; +} +.uk-icon-git:before { + content: "\f1d3"; +} +.uk-icon-hacker-news:before { + content: "\f1d4"; +} +.uk-icon-tencent-weibo:before { + content: "\f1d5"; +} +.uk-icon-qq:before { + content: "\f1d6"; +} +.uk-icon-wechat:before, +.uk-icon-weixin:before { + content: "\f1d7"; +} +.uk-icon-send:before, +.uk-icon-paper-plane:before { + content: "\f1d8"; +} +.uk-icon-send-o:before, +.uk-icon-paper-plane-o:before { + content: "\f1d9"; +} +.uk-icon-history:before { + content: "\f1da"; +} +.uk-icon-genderless:before, +.uk-icon-circle-thin:before { + content: "\f1db"; +} +.uk-icon-header:before { + content: "\f1dc"; +} +.uk-icon-paragraph:before { + content: "\f1dd"; +} +.uk-icon-sliders:before { + content: "\f1de"; +} +.uk-icon-share-alt:before { + content: "\f1e0"; +} +.uk-icon-share-alt-square:before { + content: "\f1e1"; +} +.uk-icon-bomb:before { + content: "\f1e2"; +} +.uk-icon-soccer-ball-o:before, +.uk-icon-futbol-o:before { + content: "\f1e3"; +} +.uk-icon-tty:before { + content: "\f1e4"; +} +.uk-icon-binoculars:before { + content: "\f1e5"; +} +.uk-icon-plug:before { + content: "\f1e6"; +} +.uk-icon-slideshare:before { + content: "\f1e7"; +} +.uk-icon-twitch:before { + content: "\f1e8"; +} +.uk-icon-yelp:before { + content: "\f1e9"; +} +.uk-icon-newspaper-o:before { + content: "\f1ea"; +} +.uk-icon-wifi:before { + content: "\f1eb"; +} +.uk-icon-calculator:before { + content: "\f1ec"; +} +.uk-icon-paypal:before { + content: "\f1ed"; +} +.uk-icon-google-wallet:before { + content: "\f1ee"; +} +.uk-icon-cc-visa:before { + content: "\f1f0"; +} +.uk-icon-cc-mastercard:before { + content: "\f1f1"; +} +.uk-icon-cc-discover:before { + content: "\f1f2"; +} +.uk-icon-cc-amex:before { + content: "\f1f3"; +} +.uk-icon-cc-paypal:before { + content: "\f1f4"; +} +.uk-icon-cc-stripe:before { + content: "\f1f5"; +} +.uk-icon-bell-slash:before { + content: "\f1f6"; +} +.uk-icon-bell-slash-o:before { + content: "\f1f7"; +} +.uk-icon-trash:before { + content: "\f1f8"; +} +.uk-icon-copyright:before { + content: "\f1f9"; +} +.uk-icon-at:before { + content: "\f1fa"; +} +.uk-icon-eyedropper:before { + content: "\f1fb"; +} +.uk-icon-paint-brush:before { + content: "\f1fc"; +} +.uk-icon-birthday-cake:before { + content: "\f1fd"; +} +.uk-icon-area-chart:before { + content: "\f1fe"; +} +.uk-icon-pie-chart:before { + content: "\f200"; +} +.uk-icon-line-chart:before { + content: "\f201"; +} +.uk-icon-lastfm:before { + content: "\f202"; +} +.uk-icon-lastfm-square:before { + content: "\f203"; +} +.uk-icon-toggle-off:before { + content: "\f204"; +} +.uk-icon-toggle-on:before { + content: "\f205"; +} +.uk-icon-bicycle:before { + content: "\f206"; +} +.uk-icon-bus:before { + content: "\f207"; +} +.uk-icon-ioxhost:before { + content: "\f208"; +} +.uk-icon-angellist:before { + content: "\f209"; +} +.uk-icon-cc:before { + content: "\f20a"; +} +.uk-icon-shekel:before, +.uk-icon-sheqel:before, +.uk-icon-ils:before { + content: "\f20b"; +} +.uk-icon-meanpath:before { + content: "\f20c"; +} +.uk-icon-buysellads:before { + content: "\f20d"; +} +.uk-icon-connectdevelop:before { + content: "\f20e"; +} +.uk-icon-dashcube:before { + content: "\f210"; +} +.uk-icon-forumbee:before { + content: "\f211"; +} +.uk-icon-leanpub:before { + content: "\f212"; +} +.uk-icon-sellsy:before { + content: "\f213"; +} +.uk-icon-shirtsinbulk:before { + content: "\f214"; +} +.uk-icon-simplybuilt:before { + content: "\f215"; +} +.uk-icon-skyatlas:before { + content: "\f216"; +} +.uk-icon-cart-plus:before { + content: "\f217"; +} +.uk-icon-cart-arrow-down:before { + content: "\f218"; +} +.uk-icon-diamond:before { + content: "\f219"; +} +.uk-icon-ship:before { + content: "\f21a"; +} +.uk-icon-user-secret:before { + content: "\f21b"; +} +.uk-icon-motorcycle:before { + content: "\f21c"; +} +.uk-icon-street-view:before { + content: "\f21d"; +} +.uk-icon-heartbeat:before { + content: "\f21e"; +} +.uk-icon-venus:before { + content: "\f221"; +} +.uk-icon-mars:before { + content: "\f222"; +} +.uk-icon-mercury:before { + content: "\f223"; +} +.uk-icon-transgender:before { + content: "\f224"; +} +.uk-icon-transgender-alt:before { + content: "\f225"; +} +.uk-icon-venus-double:before { + content: "\f226"; +} +.uk-icon-mars-double:before { + content: "\f227"; +} +.uk-icon-venus-mars:before { + content: "\f228"; +} +.uk-icon-mars-stroke:before { + content: "\f229"; +} +.uk-icon-mars-stroke-v:before { + content: "\f22a"; +} +.uk-icon-mars-stroke-h:before { + content: "\f22b"; +} +.uk-icon-neuter:before { + content: "\f22c"; +} +.uk-icon-facebook-official:before { + content: "\f230"; +} +.uk-icon-pinterest-p:before { + content: "\f231"; +} +.uk-icon-whatsapp:before { + content: "\f232"; +} +.uk-icon-server:before { + content: "\f233"; +} +.uk-icon-user-plus:before { + content: "\f234"; +} +.uk-icon-user-times:before { + content: "\f235"; +} +.uk-icon-hotel:before, +.uk-icon-bed:before { + content: "\f236"; +} +.uk-icon-viacoin:before { + content: "\f237"; +} +.uk-icon-train:before { + content: "\f238"; +} +.uk-icon-subway:before { + content: "\f239"; +} +.uk-icon-medium-logo:before { + content: "\f23a"; +} +/* ======================================================================== + Component: Close + ========================================================================== */ +/* + * Removes inner padding and border in Firefox 4+. + */ +.uk-close::-moz-focus-inner { + border: 0; + padding: 0; +} +/* + * 1. Correct inability to style clickable `input` types in iOS. + * 2. Remove margins in Chrome, Safari and Opera. + * 3. Remove borders for `button`. + * 4. Address `overflow` set to `hidden` in IE 8/9/10/11. + * 5. Correct `font` properties and `color` not being inherited for `button`. + * 6. Address inconsistent `text-transform` inheritance which is only inherit in Firefox and IE + * 7. Remove default `button` padding and background color + * 8. Style + */ +.uk-close { + /* 1 */ + -webkit-appearance: none; + /* 2 */ + margin: 0; + /* 3 */ + border: none; + /* 4 */ + overflow: visible; + /* 5 */ + font: inherit; + color: inherit; + /* 6 */ + text-transform: none; + /* 7. */ + padding: 0; + background: transparent; + /* 8 */ + display: inline-block; + -moz-box-sizing: content-box; + box-sizing: content-box; + width: 20px; + line-height: 20px; + text-align: center; + vertical-align: middle; + opacity: 0.3; +} +/* Icon */ +.uk-close:after { + display: block; + content: "\f00d"; + font-family: FontAwesome; +} +/* + * Hover + * 1. Apply hover style also to focus state + * 2. Remove default focus style + * 3. Required for `a` elements + */ +.uk-close:hover, +.uk-close:focus { + opacity: 0.5; + /* 2 */ + outline: none; + /* 3 */ + color: inherit; + text-decoration: none; + cursor: pointer; +} +/* Modifier + ========================================================================== */ +.uk-close-alt { + padding: 2px; + border-radius: 50%; + background: #ffffff; + opacity: 1; + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 0 6px rgba(0, 0, 0, 0.3); +} +/* Hover */ +.uk-close-alt:hover, +.uk-close-alt:focus { + opacity: 1; +} +/* Icon */ +.uk-close-alt:after { + opacity: 0.5; +} +.uk-close-alt:hover:after, +.uk-close-alt:focus:after { + opacity: 0.8; +} +/* ======================================================================== + Component: Badge + ========================================================================== */ +.uk-badge { + display: inline-block; + padding: 0 5px; + background: #009dd8; + font-size: 10px; + font-weight: bold; + line-height: 14px; + color: #ffffff; + text-align: center; + vertical-align: middle; + text-transform: none; + border: 1px solid rgba(0, 0, 0, 0.2); + border-bottom-color: rgba(0, 0, 0, 0.3); + background-origin: border-box; + background-image: -webkit-linear-gradient(top, #00b4f5, #008dc5); + background-image: linear-gradient(to bottom, #00b4f5, #008dc5); + border-radius: 2px; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); +} +/* + * Keep color when badge is a link + */ +a.uk-badge:hover { + color: #ffffff; +} +/* Modifier: `uk-badge-notification`; + ========================================================================== */ +.uk-badge-notification { + -moz-box-sizing: border-box; + box-sizing: border-box; + min-width: 18px; + border-radius: 500px; + font-size: 12px; + line-height: 18px; +} +/* Color modifier + ========================================================================== */ +/* + * Modifier: `uk-badge-success` + */ +.uk-badge-success { + background-color: #82bb42; + background-image: -webkit-linear-gradient(top, #9fd256, #6fac34); + background-image: linear-gradient(to bottom, #9fd256, #6fac34); +} +/* + * Modifier: `uk-badge-warning` + */ +.uk-badge-warning { + background-color: #f9a124; + background-image: -webkit-linear-gradient(top, #fbb450, #f89406); + background-image: linear-gradient(to bottom, #fbb450, #f89406); +} +/* + * Modifier: `uk-badge-danger` + */ +.uk-badge-danger { + background-color: #d32c46; + background-image: -webkit-linear-gradient(top, #ee465a, #c11a39); + background-image: linear-gradient(to bottom, #ee465a, #c11a39); +} +/* ======================================================================== + Component: Alert + ========================================================================== */ +.uk-alert { + margin-bottom: 15px; + padding: 10px; + background: #ebf7fd; + color: #2d7091; + border: 1px solid rgba(45, 112, 145, 0.3); + border-radius: 4px; + text-shadow: 0 1px 0 #ffffff; +} +/* + * Add margin if adjacent element + */ +* + .uk-alert { + margin-top: 15px; +} +/* + * Remove margin from the last-child + */ +.uk-alert > :last-child { + margin-bottom: 0; +} +/* + * Keep color for headings if the default heading color is changed + */ +.uk-alert h1, +.uk-alert h2, +.uk-alert h3, +.uk-alert h4, +.uk-alert h5, +.uk-alert h6 { + color: inherit; +} +/* Close in alert + ========================================================================== */ +.uk-alert > .uk-close:first-child { + float: right; +} +/* + * Remove margin from adjacent element + */ +.uk-alert > .uk-close:first-child + * { + margin-top: 0; +} +/* Modifier: `uk-alert-success` + ========================================================================== */ +.uk-alert-success { + background: #f2fae3; + color: #659f13; + border-color: rgba(101, 159, 19, 0.3); +} +/* Modifier: `uk-alert-warning` + ========================================================================== */ +.uk-alert-warning { + background: #fffceb; + color: #e28327; + border-color: rgba(226, 131, 39, 0.3); +} +/* Modifier: `uk-alert-danger` + ========================================================================== */ +.uk-alert-danger { + background: #fff1f0; + color: #d85030; + border-color: rgba(216, 80, 48, 0.3); +} +/* Modifier: `uk-alert-large` + ========================================================================== */ +.uk-alert-large { + padding: 20px; +} +.uk-alert-large > .uk-close:first-child { + margin: -10px -10px 0 0; +} +/* ======================================================================== + Component: Thumbnail + ========================================================================== */ +/* + * 1. Container width fits its content + * 2. Responsive behavior + * 3. Corrects `max-width` behavior sed + * 4. Required for `figure` element + * 5. Style + */ +.uk-thumbnail { + /* 1 */ + display: inline-block; + /* 2 */ + max-width: 100%; + /* 3 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 3 */ + margin: 0; + /* 4 */ + padding: 4px; + border: 1px solid #dddddd; + background: #ffffff; + border-radius: 4px; + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); +} +/* + * Hover state for `a` elements + * 1. Apply hover style also to focus state + * 2. Needed for caption + * 3. Remove default focus style + */ +a.uk-thumbnail:hover, +a.uk-thumbnail:focus { + border-color: #aaaaaa; + background-color: #ffffff; + /* 2 */ + text-decoration: none; + /* 3 */ + outline: none; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); +} +/* Caption + ========================================================================== */ +.uk-thumbnail-caption { + padding-top: 4px; + text-align: center; + color: #444444; +} +/* Sizes + ========================================================================== */ +.uk-thumbnail-mini { + width: 150px; +} +.uk-thumbnail-small { + width: 200px; +} +.uk-thumbnail-medium { + width: 300px; +} +.uk-thumbnail-large { + width: 400px; +} +.uk-thumbnail-expand, +.uk-thumbnail-expand > img { + width: 100%; +} +/* ======================================================================== + Component: Overlay + ========================================================================== */ +/* + * 1. Container width fits its content + * 2. Create position context + * 3. Set max-width for responsive images to prevent `inline-block` consequences + * 4. Remove the gap between the container and its child element + * 5. Needed for transitions and to fixed wrong scaling calculation for images in Chrome + * 6. Fixed `overflow: hidden` to be ignored with border-radius and CSS transforms in Webkit + * 7. Reset margin + */ +.uk-overlay { + /* 1 */ + display: inline-block; + /* 2 */ + position: relative; + /* 3 */ + max-width: 100%; + /* 4 */ + vertical-align: middle; + /* 5 */ + overflow: hidden; + /* 6 */ + -webkit-transform: translateZ(0); + /* 7 */ + margin: 0; +} +/* 6 for Safari */ +.uk-overlay.uk-border-circle { + -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%); +} +/* + * Remove margin from content + */ +.uk-overlay > :first-child { + margin-bottom: 0; +} +/* Sub-object `uk-overlay-panel` + ========================================================================== */ +/* + * 1. Position cover + * 2. Style + */ +.uk-overlay-panel { + /* 1 */ + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + /* 2 */ + padding: 20px; + color: #ffffff; +} +/* + * Remove margin from the last-child + */ +.uk-overlay-panel > :last-child, +.uk-overlay-panel.uk-flex > * > :last-child { + margin-bottom: 0; +} +/* + * Keep color for headings if the default heading color is changed + */ +.uk-overlay-panel h1, +.uk-overlay-panel h2, +.uk-overlay-panel h3, +.uk-overlay-panel h4, +.uk-overlay-panel h5, +.uk-overlay-panel h6 { + color: inherit; +} +.uk-overlay-panel a:not([class]) { + color: inherit; + text-decoration: underline; +} +.uk-overlay-panel a[class*='uk-icon-']:not(.uk-icon-button) { + color: inherit; +} +/* Sub-object `uk-overlay-hover` and `uk-overlay-active` + ========================================================================== */ +.uk-overlay-hover:not(:hover):not(.uk-hover) .uk-overlay-panel:not(.uk-ignore) { + opacity: 0; +} +.uk-overlay-active :not(.uk-active) > .uk-overlay-panel:not(.uk-ignore) { + opacity: 0; +} +/* Modifier `uk-overlay-background` + ========================================================================== */ +.uk-overlay-background { + background: rgba(0, 0, 0, 0.5); +} +/* Modifier `uk-overlay-image` + ========================================================================== */ +/* + * Reset panel + */ +.uk-overlay-image { + padding: 0; +} +/* Position modifiers + ========================================================================== */ +.uk-overlay-top { + bottom: auto; +} +.uk-overlay-bottom { + top: auto; +} +.uk-overlay-left { + right: auto; +} +.uk-overlay-right { + left: auto; +} +/* Sub-object `uk-overlay-icon` + ========================================================================== */ +.uk-overlay-icon:before { + content: "\f002"; + position: absolute; + top: 50%; + left: 50%; + width: 50px; + height: 50px; + margin-top: -25px; + margin-left: -25px; + font-size: 50px; + line-height: 1; + font-family: FontAwesome; + text-align: center; + color: #ffffff; +} +/* Transitions + ========================================================================== */ +.uk-overlay-fade, +.uk-overlay-scale, +.uk-overlay-spin, +.uk-overlay-grayscale, +.uk-overlay-blur, +[class*='uk-overlay-slide'] { + transition-duration: 0.3s; + transition-timing-function: ease-out; + transition-property: opacity transform filter; +} +.uk-overlay-active .uk-overlay-fade, +.uk-overlay-active .uk-overlay-scale, +.uk-overlay-active .uk-overlay-spin, +.uk-overlay-active [class*='uk-overlay-slide'] { + transition-duration: 0.8s; +} +/* + * Fade + */ +.uk-overlay-fade { + opacity: 0.7; +} +.uk-overlay-hover:hover .uk-overlay-fade, +.uk-overlay-active .uk-active > .uk-overlay-fade { + opacity: 1; +} +/* + * Scale + */ +.uk-overlay-scale { + -webkit-transform: scale(1); + transform: scale(1); +} +.uk-overlay-hover:hover .uk-overlay-scale, +.uk-overlay-active .uk-active > .uk-overlay-scale { + -webkit-transform: scale(1.1); + transform: scale(1.1); +} +/* + * Spin + */ +.uk-overlay-spin { + -webkit-transform: scale(1) rotate(0deg); + transform: scale(1) rotate(0deg); +} +.uk-overlay-hover:hover .uk-overlay-spin, +.uk-overlay-active .uk-active > .uk-overlay-spin { + -webkit-transform: scale(1.1) rotate(3deg); + transform: scale(1.1) rotate(3deg); +} +/* + * Grayscale + */ +.uk-overlay-grayscale { + -webkit-filter: grayscale(100%); + filter: grayscale(100%); +} +.uk-overlay-hover:hover .uk-overlay-grayscale, +.uk-overlay-active .uk-active > .uk-overlay-grayscale { + -webkit-filter: grayscale(0%); + filter: grayscale(0%); +} +/* + * Slide + */ +[class*='uk-overlay-slide'] { + opacity: 0; +} +/* Top */ +.uk-overlay-slide-top { + -webkit-transform: translateY(-100%); + transform: translateY(-100%); +} +/* Bottom */ +.uk-overlay-slide-bottom { + -webkit-transform: translateY(100%); + transform: translateY(100%); +} +/* Left */ +.uk-overlay-slide-left { + -webkit-transform: translateX(-100%); + transform: translateX(-100%); +} +/* Right */ +.uk-overlay-slide-right { + -webkit-transform: translateX(100%); + transform: translateX(100%); +} +/* Hover */ +.uk-overlay-hover:hover [class*='uk-overlay-slide'], +.uk-overlay-active .uk-active > [class*='uk-overlay-slide'] { + opacity: 1; + -webkit-transform: translateX(0) translateY(0); + transform: translateX(0) translateY(0); +} +/* DEPRECATED + * Sub-object `uk-overlay-area` + ========================================================================== */ +/* + * 1. Set position + * 2. Set style + * 3. Fade-in transition + */ +.uk-overlay-area { + /* 1 */ + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + /* 2 */ + background: rgba(0, 0, 0, 0.3); + /* 3 */ + opacity: 0; + -webkit-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; + -webkit-transform: translate3d(0, 0, 0); +} +/* + * Hover + * 1. `uk-hover` to support touch devices + * 2. Use optional `uk-overlay-toggle` to trigger the overlay earlier + */ +.uk-overlay:hover .uk-overlay-area, +.uk-overlay.uk-hover .uk-overlay-area, +.uk-overlay-toggle:hover .uk-overlay-area, +.uk-overlay-toggle.uk-hover .uk-overlay-area { + opacity: 1; +} +/* + * Icon + */ +.uk-overlay-area:empty:before { + content: "\f002"; + position: absolute; + top: 50%; + left: 50%; + width: 50px; + height: 50px; + margin-top: -25px; + margin-left: -25px; + font-size: 50px; + line-height: 1; + font-family: FontAwesome; + text-align: center; + color: #ffffff; +} +/* DEPRECATED + * Sub-object `uk-overlay-area-content` + ========================================================================== */ +/* + * Remove whitespace between child elements when using `inline-block` + * Needed for Firefox + */ +.uk-overlay-area:not(:empty) { + font-size: 0.001px; +} +/* + * 1. Needed for vertical alignment + */ +.uk-overlay-area:not(:empty):before { + content: ''; + display: inline-block; + height: 100%; + vertical-align: middle; +} +/* + * 1. Set vertical alignment + * 2. Reset whitespace hack + * 3. Set horizontal alignment + * 4. Set style + */ +.uk-overlay-area-content { + /* 1 */ + display: inline-block; + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 100%; + vertical-align: middle; + /* 2 */ + font-size: 1rem; + /* 3 */ + text-align: center; + /* 4 */ + padding: 0 15px; + color: #ffffff; +} +/* + * Remove margin from the last-child + */ +.uk-overlay-area-content > :last-child { + margin-bottom: 0; +} +/* + * Links in overlay area + */ +.uk-overlay-area-content a:not([class]), +.uk-overlay-area-content a:not([class]):hover { + color: inherit; +} +/* DEPRECATED + * Sub-object `uk-overlay-caption` + ========================================================================== */ +/* + * 1. Set position + * 2. Set style + * 3. Fade-in transition + */ +.uk-overlay-caption { + /* 1 */ + position: absolute; + bottom: 0; + left: 0; + right: 0; + /* 2 */ + padding: 15px; + background: rgba(0, 0, 0, 0.5); + color: #ffffff; + /* 3 */ + opacity: 0; + -webkit-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; + -webkit-transform: translate3d(0, 0, 0); +} +/* + * Hover + * 1. `uk-hover` to support touch devices + * 2. Use optional `uk-overlay-toggle` to trigger the overlay earlier + */ +.uk-overlay:hover .uk-overlay-caption, +.uk-overlay.uk-hover .uk-overlay-caption, +.uk-overlay-toggle:hover .uk-overlay-caption, +.uk-overlay-toggle.uk-hover .uk-overlay-caption { + opacity: 1; +} +/* ======================================================================== + Component: Animation + ========================================================================== */ +[class*='uk-animation-'] { + -webkit-animation-duration: 0.5s; + animation-duration: 0.5s; + -webkit-animation-timing-function: ease-out; + animation-timing-function: ease-out; + -webkit-animation-fill-mode: both; + animation-fill-mode: both; +} +/* Hide animated element if scrollspy is used */ +@media screen { + [data-uk-scrollspy*='uk-animation-']:not([data-uk-scrollspy*='target']) { + opacity: 0; + } +} +/* + * Fade + * Higher specificity (!important) needed because of reverse modifier + */ +.uk-animation-fade { + -webkit-animation-name: uk-fade; + animation-name: uk-fade; + -webkit-animation-duration: 0.8s; + animation-duration: 0.8s; + -webkit-animation-timing-function: linear !important; + animation-timing-function: linear !important; +} +/* + * Fade with scale + */ +.uk-animation-scale-up { + -webkit-animation-name: uk-fade-scale-02; + animation-name: uk-fade-scale-02; +} +.uk-animation-scale-down { + -webkit-animation-name: uk-fade-scale-18; + animation-name: uk-fade-scale-18; +} +/* + * Fade with slide + */ +.uk-animation-slide-top { + -webkit-animation-name: uk-fade-top; + animation-name: uk-fade-top; +} +.uk-animation-slide-bottom { + -webkit-animation-name: uk-fade-bottom; + animation-name: uk-fade-bottom; +} +.uk-animation-slide-left { + -webkit-animation-name: uk-fade-left; + animation-name: uk-fade-left; +} +.uk-animation-slide-right { + -webkit-animation-name: uk-fade-right; + animation-name: uk-fade-right; +} +/* + * Scale + */ +.uk-animation-scale { + -webkit-animation-name: uk-scale-12; + animation-name: uk-scale-12; +} +/* + * Shake + */ +.uk-animation-shake { + -webkit-animation-name: uk-shake; + animation-name: uk-shake; +} +/* Direction modifiers + ========================================================================== */ +.uk-animation-reverse { + -webkit-animation-direction: reverse; + animation-direction: reverse; + -webkit-animation-timing-function: ease-in; + animation-timing-function: ease-in; +} +/* Duration modifiers +========================================================================== */ +.uk-animation-15 { + -webkit-animation-duration: 15s; + animation-duration: 15s; +} +/* Origin modifiers +========================================================================== */ +.uk-animation-top-left { + -webkit-transform-origin: 0 0; + transform-origin: 0 0; +} +.uk-animation-top-center { + -webkit-transform-origin: 50% 0; + transform-origin: 50% 0; +} +.uk-animation-top-right { + -webkit-transform-origin: 100% 0; + transform-origin: 100% 0; +} +.uk-animation-middle-left { + -webkit-transform-origin: 0 50%; + transform-origin: 0 50%; +} +.uk-animation-middle-right { + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; +} +.uk-animation-bottom-left { + -webkit-transform-origin: 0 100%; + transform-origin: 0 100%; +} +.uk-animation-bottom-center { + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +.uk-animation-bottom-right { + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; +} +/* Sub-object: `uk-animation-hover` +========================================================================== */ +/* + * Enable animation only on hover + * Note: Firefox also needs this because animations are not triggered when switching between display `hidden` and `block` + */ +.uk-animation-hover:not(:hover), +.uk-animation-hover:not(:hover) [class*='uk-animation-'], +.uk-touch .uk-animation-hover:not(.uk-hover), +.uk-touch .uk-animation-hover:not(.uk-hover) [class*='uk-animation-'] { + -webkit-animation-name: none; + animation-name: none; +} +/* Keyframes: Fade + * Used by dropdown, datepicker and slideshow component + ========================================================================== */ +@-webkit-keyframes uk-fade { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +@keyframes uk-fade { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +/* Keyframes: Fade with slide + ========================================================================== */ +/* + * Top + */ +@-webkit-keyframes uk-fade-top { + 0% { + opacity: 0; + -webkit-transform: translateY(-100%); + } + 100% { + opacity: 1; + -webkit-transform: translateY(0); + } +} +@keyframes uk-fade-top { + 0% { + opacity: 0; + transform: translateY(-100%); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +/* + * Bottom + */ +@-webkit-keyframes uk-fade-bottom { + 0% { + opacity: 0; + -webkit-transform: translateY(100%); + } + 100% { + opacity: 1; + -webkit-transform: translateY(0); + } +} +@keyframes uk-fade-bottom { + 0% { + opacity: 0; + transform: translateY(100%); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +/* + * Left + */ +@-webkit-keyframes uk-fade-left { + 0% { + opacity: 0; + -webkit-transform: translateX(-100%); + } + 100% { + opacity: 1; + -webkit-transform: translateX(0); + } +} +@keyframes uk-fade-left { + 0% { + opacity: 0; + transform: translateX(-100%); + } + 100% { + opacity: 1; + transform: translateX(0); + } +} +/* + * Right + */ +@-webkit-keyframes uk-fade-right { + 0% { + opacity: 0; + -webkit-transform: translateX(100%); + } + 100% { + opacity: 1; + -webkit-transform: translateX(0); + } +} +@keyframes uk-fade-right { + 0% { + opacity: 0; + transform: translateX(100%); + } + 100% { + opacity: 1; + transform: translateX(0); + } +} +/* Keyframes: Fade with scale + ========================================================================== */ +/* + * Scale by 0.2 + */ +@-webkit-keyframes uk-fade-scale-02 { + 0% { + opacity: 0; + -webkit-transform: scale(0.2); + } + 100% { + opacity: 1; + -webkit-transform: scale(1); + } +} +@keyframes uk-fade-scale-02 { + 0% { + opacity: 0; + transform: scale(0.2); + } + 100% { + opacity: 1; + transform: scale(1); + } +} +/* + * Scale by 1.5 + * Used by slideshow component + */ +@-webkit-keyframes uk-fade-scale-15 { + 0% { + opacity: 0; + -webkit-transform: scale(1.5); + } + 100% { + opacity: 1; + -webkit-transform: scale(1); + } +} +@keyframes uk-fade-scale-15 { + 0% { + opacity: 0; + transform: scale(1.5); + } + 100% { + opacity: 1; + transform: scale(1); + } +} +/* + * Scale by 1.8 + */ +@-webkit-keyframes uk-fade-scale-18 { + 0% { + opacity: 0; + -webkit-transform: scale(1.8); + } + 100% { + opacity: 1; + -webkit-transform: scale(1); + } +} +@keyframes uk-fade-scale-18 { + 0% { + opacity: 0; + transform: scale(1.8); + } + 100% { + opacity: 1; + transform: scale(1); + } +} +/* Keyframes: Slide + * Used by slideshow component + ========================================================================== */ +/* + * Left + */ +@-webkit-keyframes uk-slide-left { + 0% { + -webkit-transform: translateX(-100%); + } + 100% { + -webkit-transform: translateX(0); + } +} +@keyframes uk-slide-left { + 0% { + transform: translateX(-100%); + } + 100% { + transform: translateX(0); + } +} +/* + * Right + */ +@-webkit-keyframes uk-slide-right { + 0% { + -webkit-transform: translateX(100%); + } + 100% { + -webkit-transform: translateX(0); + } +} +@keyframes uk-slide-right { + 0% { + transform: translateX(100%); + } + 100% { + transform: translateX(0); + } +} +/* + * Left third + */ +@-webkit-keyframes uk-slide-left-33 { + 0% { + -webkit-transform: translateX(33%); + } + 100% { + -webkit-transform: translateX(0); + } +} +@keyframes uk-slide-left-33 { + 0% { + transform: translateX(33%); + } + 100% { + transform: translateX(0); + } +} +/* + * Right third + */ +@-webkit-keyframes uk-slide-right-33 { + 0% { + -webkit-transform: translateX(-33%); + } + 100% { + -webkit-transform: translateX(0); + } +} +@keyframes uk-slide-right-33 { + 0% { + transform: translateX(-33%); + } + 100% { + transform: translateX(0); + } +} +/* Keyframes: Scale + ========================================================================== */ +@-webkit-keyframes uk-scale-12 { + 0% { + -webkit-transform: scale(1.2); + } + 100% { + -webkit-transform: scale(1); + } +} +@keyframes uk-scale-12 { + 0% { + transform: scale(1.2); + } + 100% { + transform: scale(1); + } +} +/* Keyframes: Rotate + * Used by icon component + ========================================================================== */ +@-webkit-keyframes uk-rotate { + 0% { + -webkit-transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + } +} +@keyframes uk-rotate { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(359deg); + } +} +/* Keyframes: Shake + ========================================================================== */ +@-webkit-keyframes uk-shake { + 0%, + 100% { + -webkit-transform: translateX(0); + } + 10% { + -webkit-transform: translateX(-9px); + } + 20% { + -webkit-transform: translateX(8px); + } + 30% { + -webkit-transform: translateX(-7px); + } + 40% { + -webkit-transform: translateX(6px); + } + 50% { + -webkit-transform: translateX(-5px); + } + 60% { + -webkit-transform: translateX(4px); + } + 70% { + -webkit-transform: translateX(-3px); + } + 80% { + -webkit-transform: translateX(2px); + } + 90% { + -webkit-transform: translateX(-1px); + } +} +@keyframes uk-shake { + 0%, + 100% { + transform: translateX(0); + } + 10% { + transform: translateX(-9px); + } + 20% { + transform: translateX(8px); + } + 30% { + transform: translateX(-7px); + } + 40% { + transform: translateX(6px); + } + 50% { + transform: translateX(-5px); + } + 60% { + transform: translateX(4px); + } + 70% { + transform: translateX(-3px); + } + 80% { + transform: translateX(2px); + } + 90% { + transform: translateX(-1px); + } +} +/* Keyframes: Fade with slide fixed + * Used by dropdown and search component + ========================================================================== */ +/* + * Top fixed + */ +@-webkit-keyframes uk-slide-top-fixed { + 0% { + opacity: 0; + -webkit-transform: translateY(-10px); + } + 100% { + opacity: 1; + -webkit-transform: translateY(0); + } +} +@keyframes uk-slide-top-fixed { + 0% { + opacity: 0; + transform: translateY(-10px); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +/* + * Bottom fixed + */ +@-webkit-keyframes uk-slide-bottom-fixed { + 0% { + opacity: 0; + -webkit-transform: translateY(10px); + } + 100% { + opacity: 1; + -webkit-transform: translateY(0); + } +} +@keyframes uk-slide-bottom-fixed { + 0% { + opacity: 0; + transform: translateY(10px); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +/* ======================================================================== + Component: Dropdown + ========================================================================== */ +/* + * 1. Hide by default + * 2. Set position + * 3. Box-sizing is needed for `uk-dropdown-justify` + * 4. Set style + * 5. Reset button group whitespace hack + */ +.uk-dropdown { + /* 1 */ + display: none; + /* 2 */ + position: absolute; + top: 100%; + left: 0; + z-index: 1020; + /* 3 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 4 */ + width: 200px; + margin-top: 5px; + padding: 15px; + background: #ffffff; + color: #444444; + /* 5 */ + font-size: 1rem; + vertical-align: top; + border: 1px solid #cbcbcb; + border-radius: 4px; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); +} +/* + * 1. Show dropdown + * 2. Set animation + * 3. Needed for scale animation + */ +.uk-open > .uk-dropdown { + /* 1 */ + display: block; + /* 2 */ + -webkit-animation: uk-fade 0.2s ease-in-out; + animation: uk-fade 0.2s ease-in-out; + /* 3 */ + -webkit-transform-origin: 0 0; + transform-origin: 0 0; +} +/* Alignment modifiers + ========================================================================== */ +/* + * Modifier `uk-dropdown-flip` + */ +.uk-dropdown-flip { + left: auto; + right: 0; +} +/* + * Modifier `uk-dropdown-up` + */ +.uk-dropdown-up { + top: auto; + bottom: 100%; + margin-top: auto; + margin-bottom: 5px; +} +/* Nav in dropdown + ========================================================================== */ +.uk-dropdown .uk-nav { + margin: 0 -15px; +} +/* Grid and panel in dropdown + ========================================================================== */ +/* +* Vertical gutter +*/ +/* + * Grid + * Higher specificity to override large gutter + */ +.uk-grid .uk-dropdown-grid + .uk-dropdown-grid { + margin-top: 15px; +} +/* Panels */ +.uk-dropdown-grid > [class*='uk-width-'] > .uk-panel + .uk-panel { + margin-top: 15px; +} +/* Tablet and bigger */ +@media (min-width: 768px) { + /* + * Horizontal gutter + */ + .uk-dropdown:not(.uk-dropdown-stack) > .uk-dropdown-grid { + margin-left: -15px; + margin-right: -15px; + } + .uk-dropdown:not(.uk-dropdown-stack) > .uk-dropdown-grid > [class*='uk-width-'] { + padding-left: 15px; + padding-right: 15px; + } + /* + * Column divider + */ + .uk-dropdown:not(.uk-dropdown-stack) > .uk-dropdown-grid > [class*='uk-width-']:nth-child(n+2) { + border-left: 1px solid #dddddd; + } + /* + * Width multiplier for dropdown columns + */ + .uk-dropdown-width-2:not(.uk-dropdown-stack) { + width: 400px; + } + .uk-dropdown-width-3:not(.uk-dropdown-stack) { + width: 600px; + } + .uk-dropdown-width-4:not(.uk-dropdown-stack) { + width: 800px; + } + .uk-dropdown-width-5:not(.uk-dropdown-stack) { + width: 1000px; + } +} +/* Phone landscape and smaller */ +@media (max-width: 767px) { + /* + * Stack columns and take full width + */ + .uk-dropdown-grid > [class*='uk-width-'] { + width: 100%; + } + /* + * Vertical gutter + */ + .uk-dropdown-grid > [class*='uk-width-']:nth-child(n+2) { + margin-top: 15px; + } +} +/* +* Stack grid columns +*/ +.uk-dropdown-stack > .uk-dropdown-grid > [class*='uk-width-'] { + width: 100%; +} +.uk-dropdown-stack > .uk-dropdown-grid > [class*='uk-width-']:nth-child(n+2) { + margin-top: 15px; +} +/* Modifier `uk-dropdown-small` + ========================================================================== */ +/* + * Set min-width and text expands dropdown if needed + */ +.uk-dropdown-small { + min-width: 150px; + width: auto; + padding: 5px; + white-space: nowrap; +} +/* + * Nav in dropdown + */ +.uk-dropdown-small .uk-nav { + margin: 0 -5px; +} +/* Modifier: `uk-dropdown-navbar` + ========================================================================== */ +.uk-dropdown-navbar { + margin-top: 6px; + background: #ffffff; + color: #444444; + left: -1px; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); +} +.uk-open > .uk-dropdown-navbar { + -webkit-animation: uk-slide-top-fixed 0.2s ease-in-out; + animation: uk-slide-top-fixed 0.2s ease-in-out; +} +/* Modifier `uk-dropdown-scrollable` + ========================================================================== */ +/* + * Usefull for long lists + */ +.uk-dropdown-scrollable { + overflow-y: auto; + max-height: 200px; +} +.uk-dropdown-navbar.uk-dropdown-flip { + left: auto; +} +/* ======================================================================== + Component: Modal + ========================================================================== */ +/* + * This is the modal overlay and modal dialog container + * 1. Hide by default + * 2. Set fixed position + * 3. Allow scrolling for the modal dialog + * 4. Mask the background page + * 5. Fade-in transition + * 6. Deactivate browser history navigation in IE11 + * 7. force hardware acceleration to prevent browser rendering hiccups + */ +.uk-modal { + /* 1 */ + display: none; + /* 2 */ + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1010; + /* 3 */ + overflow-y: auto; + -webkit-overflow-scrolling: touch; + /* 4 */ + background: rgba(0, 0, 0, 0.6); + /* 5 */ + opacity: 0; + -webkit-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; + /* 6 */ + touch-action: cross-slide-y pinch-zoom double-tap-zoom; + /* 7 */ + -webkit-transform: translateZ(0); + transform: translateZ(0); +} +/* + * Open state + */ +.uk-modal.uk-open { + opacity: 1; +} +/* + * Prevents duplicated scrollbar caused by 4. + */ +.uk-modal-page, +.uk-modal-page body { + overflow: hidden; +} +/* Sub-object: `uk-modal-dialog` + ========================================================================== */ +/* + * 1. Create position context for caption, spinner and close button + * 2. Set box sizing + * 3. Set style + * 4. Slide-in transition + */ +.uk-modal-dialog { + /* 1 */ + position: relative; + /* 2 */ + -moz-box-sizing: border-box; + box-sizing: border-box; + margin: 50px auto; + padding: 20px; + width: 600px; + max-width: 100%; + max-width: calc(100% - 20px); + /* 3 */ + background: #ffffff; + /* 4 */ + opacity: 0; + -webkit-transform: translateY(-100px); + transform: translateY(-100px); + -webkit-transition: opacity 0.3s linear, -webkit-transform 0.3s ease-out; + transition: opacity 0.3s linear, transform 0.3s ease-out; + border-radius: 4px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); +} +/* Phone landscape and smaller */ +@media (max-width: 767px) { + /* + * Fit in small screen + */ + .uk-modal-dialog { + width: auto; + margin: 10px auto; + } +} +/* + * Open state + */ +.uk-open .uk-modal-dialog { + /* 4 */ + opacity: 1; + -webkit-transform: translateY(0); + transform: translateY(0); +} +/* + * Remove margin from the last-child + */ +.uk-modal-dialog > :not([class*='uk-modal-']):last-child { + margin-bottom: 0; +} +/* Close in modal + ========================================================================== */ +.uk-modal-dialog > .uk-close:first-child { + margin: -10px -10px 0 0; + float: right; +} +/* + * Remove margin from adjacent element + */ +.uk-modal-dialog > .uk-close:first-child + :not([class*='uk-modal-']) { + margin-top: 0; +} +/* Modifier: `uk-modal-dialog-lightbox` + ========================================================================== */ +.uk-modal-dialog-lightbox { + margin: 15px auto; + padding: 0; + max-width: 95%; + max-width: calc(100% - 30px); + border-radius: 0; +} +/* + * Close button + */ +.uk-modal-dialog-lightbox > .uk-close:first-child { + position: absolute; + top: -12px; + right: -12px; + margin: 0; + float: none; +} +/* Phone landscape and smaller */ +@media (max-width: 767px) { + .uk-modal-dialog-lightbox > .uk-close:first-child { + top: -7px; + right: -7px; + } +} +/* Modifier: `uk-modal-dialog-large` + ========================================================================== */ +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-modal-dialog-large { + width: 930px; + } +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + .uk-modal-dialog-large { + width: 1130px; + } +} +/* Sub-Object: `uk-modal-header` and `uk-modal-footer` + ========================================================================== */ +.uk-modal-header { + margin-bottom: 15px; + margin: -20px -20px 15px -20px; + padding: 20px; + border-bottom: 1px solid #dddddd; + border-radius: 4px 4px 0 0; + background: #fafafa; +} +.uk-modal-footer { + margin-top: 15px; + margin: 15px -20px -20px -20px; + padding: 20px; + border-top: 1px solid #dddddd; + border-radius: 0 0 4px 4px; + background: #fafafa; +} +/* + * Remove margin from the last-child + */ +.uk-modal-header > :last-child, +.uk-modal-footer > :last-child { + margin-bottom: 0; +} +/* Sub-Object: `uk-modal-caption` + ========================================================================== */ +.uk-modal-caption { + position: absolute; + left: 0; + right: 0; + bottom: -20px; + margin-bottom: -10px; + color: #ffffff; + text-align: center; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +/* Sub-Object: `uk-modal-spinner` + ========================================================================== */ +.uk-modal-spinner { + position: absolute; + top: 50%; + left: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + font-size: 25px; + color: #ddd; +} +.uk-modal-spinner:after { + content: "\f110"; + font-family: FontAwesome; + -webkit-animation: uk-rotate 2s infinite linear; + animation: uk-rotate 2s infinite linear; +} +/* ======================================================================== + Component: Off-canvas + ========================================================================== */ +/* + * This is the offcanvas overlay and bar container + * 1. Hide by default + * 2. Set fixed position + * 3. Deactivate browser touch actions in IE11 + * 4. Mask the background page + */ +.uk-offcanvas { + /* 1 */ + display: none; + /* 2 */ + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1000; + /* 3 */ + touch-action: none; + /* 4 */ + background: rgba(0, 0, 0, 0.1); +} +.uk-offcanvas.uk-active { + display: block; +} +/* Sub-object `uk-offcanvas-page` + ========================================================================== */ +/* + * Prepares the whole HTML page to slide-out + * 1. Fix the main page and disallow scrolling + * 2. Side-out transition + */ +.uk-offcanvas-page { + /* 1 */ + position: fixed; + /* 2 */ + -webkit-transition: margin-left 0.3s ease-in-out; + transition: margin-left 0.3s ease-in-out; +} +/* Sub-object `uk-offcanvas-bar` + ========================================================================== */ +/* + * This is the offcanvas bar + * 1. Set fixed position + * 2. Size and style + * 3. Allow scrolling + * 4. Side-out transition + * 5. Deavtivate scroll chaining in IE11 + */ +.uk-offcanvas-bar { + /* 1 */ + position: fixed; + top: 0; + bottom: 0; + left: 0; + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + z-index: 1001; + /* 2 */ + width: 270px; + max-width: 100%; + background: #333333; + /* 3 */ + overflow-y: auto; + -webkit-overflow-scrolling: touch; + /* 4 */ + -webkit-transition: -webkit-transform 0.3s ease-in-out; + transition: transform 0.3s ease-in-out; + /* 5 */ + -ms-scroll-chaining: none; +} +.uk-offcanvas.uk-active .uk-offcanvas-bar.uk-offcanvas-bar-show { + -webkit-transform: translateX(0%); + transform: translateX(0%); +} +/* Modifier `uk-offcanvas-bar-flip` + ========================================================================== */ +.uk-offcanvas-bar-flip { + left: auto; + right: 0; + -webkit-transform: translateX(100%); + transform: translateX(100%); +} +/* Panel in offcanvas + ========================================================================== */ +.uk-offcanvas .uk-panel { + margin: 20px 15px; + color: #777777; + text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); +} +.uk-offcanvas .uk-panel-title { + color: #cccccc; +} +.uk-offcanvas .uk-panel a:not([class]) { + color: #cccccc; +} +.uk-offcanvas .uk-panel a:not([class]):hover { + color: #ffffff; +} +.uk-offcanvas-bar:after { + content: ""; + display: block; + position: absolute; + top: 0; + bottom: 0; + right: 0; + width: 1px; + background: rgba(0, 0, 0, 0.6); + box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.6); +} +.uk-offcanvas-bar-flip:after { + right: auto; + left: 0; + width: 1px; + background: rgba(0, 0, 0, 0.6); + box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.6); +} +/* ======================================================================== + Component: Switcher + ========================================================================== */ +/* + * 1. Deactivate browser history navigation in IE11 + */ +.uk-switcher { + margin: 0; + padding: 0; + list-style: none; + /* 1 */ + touch-action: cross-slide-y pinch-zoom double-tap-zoom; +} +/* + * Items + */ +.uk-switcher > :not(.uk-active) { + display: none; +} +/* ======================================================================== + Component: Text + ========================================================================== */ +/* Size modifiers + ========================================================================== */ +.uk-text-small { + font-size: 11px; + line-height: 16px; +} +.uk-text-large { + font-size: 18px; + line-height: 24px; + font-weight: normal; +} +/* Weight modifiers + ========================================================================== */ +.uk-text-bold { + font-weight: bold; +} +/* Color modifiers + ========================================================================== */ +.uk-text-muted { + color: #999999 !important; +} +.uk-text-primary { + color: #2d7091 !important; +} +.uk-text-success { + color: #659f13 !important; +} +.uk-text-warning { + color: #e28327 !important; +} +.uk-text-danger { + color: #d85030 !important; +} +.uk-text-contrast { + color: #ffffff !important; +} +/* Alignment modifiers + ========================================================================== */ +.uk-text-left { + text-align: left !important; +} +.uk-text-right { + text-align: right !important; +} +.uk-text-center { + text-align: center !important; +} +.uk-text-justify { + text-align: justify !important; +} +.uk-text-top { + vertical-align: top !important; +} +.uk-text-middle { + vertical-align: middle !important; +} +.uk-text-bottom { + vertical-align: bottom !important; +} +/* Only tablets portrait and smaller */ +@media (max-width: 959px) { + .uk-text-center-medium { + text-align: center !important; + } + .uk-text-left-medium { + text-align: left !important; + } +} +/* Phone landscape and smaller */ +@media (max-width: 767px) { + .uk-text-center-small { + text-align: center !important; + } + .uk-text-left-small { + text-align: left !important; + } +} +/* Wrap modifiers + ========================================================================== */ +/* + * Prevent text from wrapping onto multiple lines + */ +.uk-text-nowrap { + white-space: nowrap; +} +/* + * Prevent text from wrapping onto multiple lines, and truncate with an ellipsis + */ +.uk-text-truncate { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +/* + * Break strings if their length exceeds the width of their container + */ +.uk-text-break { + word-wrap: break-word; + -webkit-hyphens: auto; + -ms-hyphens: auto; + -moz-hyphens: auto; + hyphens: auto; +} +/* ======================================================================== + Component: Utility + ========================================================================== */ +/* Container + ========================================================================== */ +.uk-container { + -moz-box-sizing: border-box; + box-sizing: border-box; + max-width: 980px; + padding: 0 25px; +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + .uk-container { + max-width: 1200px; + padding: 0 35px; + } +} +/* + * Micro clearfix + */ +.uk-container:before, +.uk-container:after { + content: ""; + display: table; +} +.uk-container:after { + clear: both; +} +/* + * Center container + */ +.uk-container-center { + margin-left: auto; + margin-right: auto; +} +/* Clearing + ========================================================================== */ +/* + * Micro clearfix +* `table-cell` is used with `:before` because `table` creates a 1px gap when it becomes a flex item, only in Webkit + * `table` is used again with `:after` because `clear` only works with block elements. + * Note: `display: block` with `overflow: hidden` is currently not working in the latest Safari + */ +.uk-clearfix:before { + content: ""; + display: table-cell; +} +.uk-clearfix:after { + content: ""; + display: table; + clear: both; +} +/* + * Create a new block formatting context + */ +.uk-nbfc { + overflow: hidden; +} +.uk-nbfc-alt { + display: table-cell; + width: 10000px; +} +/* Alignment of block elements + ========================================================================== */ +/* + * Float blocks + * 1. Prevent content overflow on small devices + */ +.uk-float-left { + float: left; +} +.uk-float-right { + float: right; +} +/* 1 */ +[class*='uk-float-'] { + max-width: 100%; +} +/* Alignment of images and objects + ========================================================================== */ +/* + * Alignment + */ +[class*='uk-align-'] { + display: block; + margin-bottom: 15px; +} +.uk-align-left { + margin-right: 15px; + float: left; +} +.uk-align-right { + margin-left: 15px; + float: right; +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-align-medium-left { + margin-right: 15px; + margin-bottom: 15px; + float: left; + } + .uk-align-medium-right { + margin-left: 15px; + margin-bottom: 15px; + float: right; + } +} +.uk-align-center { + margin-left: auto; + margin-right: auto; +} +/* Vertical alignment + ========================================================================== */ +/* + * Remove whitespace between child elements when using `inline-block` + */ +.uk-vertical-align { + font-size: 0.001px; +} +/* + * The `uk-vertical-align` container needs a specific height + */ +.uk-vertical-align:before { + content: ''; + display: inline-block; + height: 100%; + vertical-align: middle; +} +/* + * Sub-object which can have any height + * 1. Reset whitespace hack + */ +.uk-vertical-align-middle, +.uk-vertical-align-bottom { + display: inline-block; + max-width: 100%; + /* 1 */ + font-size: 1rem; +} +.uk-vertical-align-middle { + vertical-align: middle; +} +.uk-vertical-align-bottom { + vertical-align: bottom; +} +/* Height + ========================================================================== */ +/* + * More robust if padding and border are used + */ +[class*='uk-height'] { + -moz-box-sizing: border-box; + box-sizing: border-box; +} +/* + * Useful to extend the `html` and `body` element to the full height of the page. + */ +.uk-height-1-1 { + height: 100%; +} +/* + * Useful to create image teasers + */ +.uk-height-viewport { + height: 100vh; + min-height: 600px; +} +/* Responsive objects + * Note: Images are already responsive by default, see Base component + ========================================================================== */ +/* + * 1. Corrects `max-width` and `max-height` behavior if padding and border are used + */ +.uk-responsive-width, +.uk-responsive-height { + -moz-box-sizing: border-box; + box-sizing: border-box; +} +/* + * Responsiveness: Sets a maximum width relative to the parent and auto scales the height + * `important` needed to override `uk-img-preserve img` + */ +.uk-responsive-width { + max-width: 100% !important; + height: auto; +} +/* + * Responsiveness: Sets a maximum height relative to the parent and auto scales the width + * Only works if the parent element has a fixed height. + */ +.uk-responsive-height { + max-height: 100%; + width: auto; +} +/* Margin + ========================================================================== */ +/* + * Create a block with the same margin of a paragraph + * Add margin if adjacent element + */ +.uk-margin { + margin-bottom: 15px; +} +* + .uk-margin { + margin-top: 15px; +} +.uk-margin-top { + margin-top: 15px !important; +} +.uk-margin-bottom { + margin-bottom: 15px !important; +} +.uk-margin-left { + margin-left: 15px !important; +} +.uk-margin-right { + margin-right: 15px !important; +} +/* + * Larger margins + */ +.uk-margin-large { + margin-bottom: 50px; +} +* + .uk-margin-large { + margin-top: 50px; +} +.uk-margin-large-top { + margin-top: 50px !important; +} +.uk-margin-large-bottom { + margin-bottom: 50px !important; +} +.uk-margin-large-left { + margin-left: 50px !important; +} +.uk-margin-large-right { + margin-right: 50px !important; +} +/* + * Smaller margins + */ +.uk-margin-small { + margin-bottom: 5px; +} +* + .uk-margin-small { + margin-top: 5px; +} +.uk-margin-small-top { + margin-top: 5px !important; +} +.uk-margin-small-bottom { + margin-bottom: 5px !important; +} +.uk-margin-small-left { + margin-left: 5px !important; +} +.uk-margin-small-right { + margin-right: 5px !important; +} +/* + * Remove margins + */ +.uk-margin-remove { + margin: 0 !important; +} +.uk-margin-top-remove { + margin-top: 0 !important; +} +.uk-margin-bottom-remove { + margin-bottom: 0 !important; +} +/* Padding + ========================================================================== */ +.uk-padding-remove { + padding: 0 !important; +} +.uk-padding-top-remove { + padding-top: 0 !important; +} +.uk-padding-bottom-remove { + padding-bottom: 0 !important; +} +.uk-padding-vertical-remove { + padding-top: 0 !important; + padding-bottom: 0 !important; +} +/* Border + ========================================================================== */ +.uk-border-circle { + border-radius: 50%; +} +.uk-border-rounded { + border-radius: 5px; +} +/* Headings + ========================================================================== */ +.uk-heading-large { + font-size: 36px; + line-height: 42px; +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-heading-large { + font-size: 52px; + line-height: 64px; + } +} +/* Link + ========================================================================== */ +/* + * Let links appear in default text color + */ +.uk-link-muted, +.uk-link-muted a { + color: #444444; +} +.uk-link-muted:hover, +.uk-link-muted a:hover { + color: #444444; +} +/* + * Reset link style + */ +.uk-link-reset, +.uk-link-reset a, +.uk-link-reset:hover, +.uk-link-reset a:hover, +.uk-link-reset:focus, +.uk-link-reset a:focus { + color: inherit; + text-decoration: none; +} +/* Scrollable + ========================================================================== */ +/* + * Enable scrolling for preformatted text + */ +.uk-scrollable-text { + height: 300px; + overflow-y: scroll; + -webkit-overflow-scrolling: touch; + resize: both; +} +/* + * Box with scrolling enabled + */ +.uk-scrollable-box { + -moz-box-sizing: border-box; + box-sizing: border-box; + height: 170px; + padding: 10px; + border: 1px solid #dddddd; + overflow: auto; + -webkit-overflow-scrolling: touch; + resize: both; + border-radius: 3px; +} +.uk-scrollable-box > :last-child { + margin-bottom: 0; +} +/* Overflow + ========================================================================== */ +.uk-overflow-hidden { + overflow: hidden; +} +/* + * Enable scrollbars if content is clipped + */ +.uk-overflow-container { + overflow: auto; + -webkit-overflow-scrolling: touch; +} +.uk-overflow-container > :last-child { + margin-bottom: 0; +} +/* Position + ========================================================================== */ +.uk-position-absolute, +[class*='uk-position-top'], +[class*='uk-position-bottom'] { + position: absolute !important; +} +.uk-position-top { + top: 0; + width: 100%; +} +.uk-position-bottom { + bottom: 0; + width: 100%; +} +.uk-position-top-left { + top: 0; + left: 0; +} +.uk-position-top-right { + top: 0; + right: 0; +} +.uk-position-bottom-left { + bottom: 0; + left: 0; +} +.uk-position-bottom-right { + bottom: 0; + right: 0; +} +/* + * Cover + */ +.uk-position-cover { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; +} +/* + * Relative + */ +.uk-position-relative { + position: relative !important; +} +/* + * Z-index + */ +.uk-position-z-index { + z-index: 1; +} +/* Display + ========================================================================== */ +/* + * Display + */ +.uk-display-block { + display: block !important; +} +.uk-display-inline { + display: inline !important; +} +.uk-display-inline-block { + display: inline-block !important; +} +/* + * Visibility + * Avoids setting display to `block` so it works also with `inline-block` and `table` + */ +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-visible-small { + display: none !important; + } + .uk-visible-medium { + display: none !important; + } + .uk-hidden-large { + display: none !important; + } +} +/* Tablets portrait */ +@media (min-width: 768px) and (max-width: 959px) { + .uk-visible-small { + display: none !important; + } + .uk-visible-large { + display: none !important ; + } + .uk-hidden-medium { + display: none !important; + } +} +/* Phone landscape and smaller*/ +@media (max-width: 767px) { + .uk-visible-medium { + display: none !important; + } + .uk-visible-large { + display: none !important; + } + .uk-hidden-small { + display: none !important; + } +} +/* Remove from the flow and screen readers on any device */ +.uk-hidden { + display: none !important; + visibility: hidden !important; +} +/* It's hidden, but still affects layout */ +.uk-invisible { + visibility: hidden !important; +} +/* Show on hover */ +.uk-visible-hover:hover .uk-hidden, +.uk-visible-hover:hover .uk-invisible { + display: block !important; + visibility: visible !important; +} +.uk-visible-hover-inline:hover .uk-hidden, +.uk-visible-hover-inline:hover .uk-invisible { + display: inline-block !important; + visibility: visible !important; +} +/* Hide on touch */ +.uk-touch .uk-hidden-touch, +.uk-notouch .uk-hidden-notouch { + display: none !important; +} +/* ======================================================================== + Component: Flex + ========================================================================== */ +.uk-flex { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; +} +.uk-flex-inline { + display: -ms-inline-flexbox; + display: -webkit-inline-flex; + display: inline-flex; +} +/* + * Fixes initial flex-shrink value in IE10 + */ +.uk-flex > *, +.uk-flex-inline > * { + -ms-flex-negative: 1; +} +/* Alignment + ========================================================================== */ +/* + * Vertical alignment + * Default value is `stretch` + */ +.uk-flex-top { + -ms-flex-align: start; + -webkit-align-items: flex-start; + align-items: flex-start; +} +.uk-flex-middle { + -ms-flex-align: center; + -webkit-align-items: center; + align-items: center; +} +.uk-flex-bottom { + -ms-flex-align: end; + -webkit-align-items: flex-end; + align-items: flex-end; +} +/* + * Horizontal alignment + * Default value is `flex-start` + */ +.uk-flex-center { + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; +} +.uk-flex-right { + -ms-flex-pack: end; + -webkit-justify-content: flex-end; + justify-content: flex-end; +} +.uk-flex-space-between { + -ms-flex-pack: justify; + -webkit-justify-content: space-between; + justify-content: space-between; +} +.uk-flex-space-around { + -ms-flex-pack: distribute; + -webkit-justify-content: space-around; + justify-content: space-around; +} +/* Direction + ========================================================================== */ +.uk-flex-row-reverse { + -ms-flex-direction: row-reverse; + -webkit-flex-direction: row-reverse; + flex-direction: row-reverse; +} +.uk-flex-column { + -ms-flex-direction: column; + -webkit-flex-direction: column; + flex-direction: column; +} +.uk-flex-column-reverse { + -ms-flex-direction: column-reverse; + -webkit-flex-direction: column-reverse; + flex-direction: column-reverse; +} +/* Wrap + ========================================================================== */ +.uk-flex-nowrap { + -ms-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + flex-wrap: nowrap; +} +.uk-flex-wrap { + -ms-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; +} +.uk-flex-wrap-reverse { + -ms-flex-wrap: wrap-reverse; + -webkit-flex-wrap: wrap-reverse; + flex-wrap: wrap-reverse; +} +/* + * Horizontal alignment + * Default value is `stretch` + */ +.uk-flex-wrap-top { + -ms-flex-line-pack: start; + -webkit-align-content: flex-start; + align-content: flex-start; +} +.uk-flex-wrap-middle { + -ms-flex-line-pack: center; + -webkit-align-content: center; + align-content: center; +} +.uk-flex-wrap-bottom { + -ms-flex-line-pack: end; + -webkit-align-content: flex-end; + align-content: flex-end; +} +.uk-flex-wrap-space-between { + -ms-flex-line-pack: justify; + -webkit-align-content: space-between; + align-content: space-between; +} +.uk-flex-wrap-space-around { + -ms-flex-line-pack: distribute; + -webkit-align-content: space-around; + align-content: space-around; +} +/* Item ordering + ========================================================================== */ +/* + * Default is 0 + */ +.uk-flex-order-first { + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; +} +.uk-flex-order-last { + -ms-flex-order: 99; + -webkit-order: 99; + order: 99; +} +/* Phone landscape and bigger */ +@media (min-width: 480px) { + .uk-flex-order-first-small { + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; + } + .uk-flex-order-last-small { + -ms-flex-order: 99; + -webkit-order: 99; + order: 99; + } +} +/* Tablet and bigger */ +@media (min-width: 768px) { + .uk-flex-order-first-medium { + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; + } + .uk-flex-order-last-medium { + -ms-flex-order: 99; + -webkit-order: 99; + order: 99; + } +} +/* Desktop and bigger */ +@media (min-width: 960px) { + .uk-flex-order-first-large { + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; + } + .uk-flex-order-last-large { + -ms-flex-order: 99; + -webkit-order: 99; + order: 99; + } +} +/* Large screen and bigger */ +@media (min-width: 1220px) { + .uk-flex-order-first-xlarge { + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; + } + .uk-flex-order-last-xlarge { + -ms-flex-order: 99; + -webkit-order: 99; + order: 99; + } +} +/* Item dimensions + ========================================================================== */ +/* + * Initial: 0 1 auto + * Content dimensions, but shrinks + */ +/* + * No Flex: 0 0 auto + * Content dimensions + */ +.uk-flex-item-none { + -ms-flex: none; + -webkit-flex: none; + flex: none; +} +/* + * Relative Flex: 1 1 auto + * Space is allocated considering content + * 1. Fixes flex-shrink value in IE10 + */ +.uk-flex-item-auto { + -ms-flex: auto; + -webkit-flex: auto; + flex: auto; + /* 1 */ + -ms-flex-negative: 1; +} +/* + * Absolute Flex: 1 1 0% + * Space is allocated solely based on flex + */ +.uk-flex-item-1 { + -ms-flex: 1; + -webkit-flex: 1; + flex: 1; +} +/* ======================================================================== + Component: Contrast + ========================================================================== */ +.uk-contrast { + color: #ffffff; +} +.uk-contrast a:not([class]), +.uk-contrast .uk-link { + color: rgba(255, 255, 255, 0.7); + text-decoration: none; +} +.uk-contrast a:not([class]):hover, +.uk-contrast .uk-link:hover { + color: #ffffff; + text-decoration: underline; +} +.uk-contrast :not(pre) > code, +.uk-contrast :not(pre) > kbd, +.uk-contrast :not(pre) > samp { + color: #ffffff; + border-color: rgba(255, 255, 255, 0.2); + background: rgba(255, 255, 255, 0.1); +} +.uk-contrast em { + color: #ffffff; +} +.uk-contrast h1, +.uk-contrast h2, +.uk-contrast h3, +.uk-contrast h4, +.uk-contrast h5, +.uk-contrast h6 { + color: #ffffff; +} +.uk-contrast hr { + border-top-color: rgba(255, 255, 255, 0.2); +} +.uk-contrast .uk-nav li > a, +.uk-contrast .uk-nav li > a:hover { + text-decoration: none; +} +.uk-contrast .uk-nav-side > li > a { + color: #ffffff; +} +.uk-contrast .uk-nav-side > li > a:hover, +.uk-contrast .uk-nav-side > li > a:focus { + background: rgba(255, 255, 255, 0.1); + color: #ffffff; + text-shadow: none; +} +.uk-contrast .uk-nav-side > li.uk-active > a { + background: #ffffff; + color: #444444; + text-shadow: none; +} +.uk-contrast .uk-nav-side .uk-nav-header { + color: #ffffff; +} +.uk-contrast .uk-nav-side .uk-nav-divider { + border-top-color: rgba(255, 255, 255, 0.2); +} +.uk-contrast .uk-nav-side ul a { + color: rgba(255, 255, 255, 0.7); +} +.uk-contrast .uk-nav-side ul a:hover { + color: #ffffff; +} +.uk-contrast .uk-subnav > * > a { + color: rgba(255, 255, 255, 0.7); + text-decoration: none; +} +.uk-contrast .uk-subnav > * > a:hover, +.uk-contrast .uk-subnav > * > a:focus { + color: #ffffff; + text-decoration: none; +} +.uk-contrast .uk-subnav > .uk-active > a { + color: #ffffff; +} +.uk-contrast .uk-subnav-line > :nth-child(n+2):before { + border-left-color: rgba(255, 255, 255, 0.2); +} +.uk-contrast .uk-subnav-pill > * > a:hover, +.uk-contrast .uk-subnav-pill > * > a:focus { + background: rgba(255, 255, 255, 0.7); + color: #444444; + text-decoration: none; +} +.uk-contrast .uk-subnav-pill > .uk-active > a { + background: #ffffff; + color: #444444; +} +.uk-contrast .uk-list-line > li:nth-child(n+2) { + border-top-color: rgba(255, 255, 255, 0.2); +} +.uk-contrast .uk-form select, +.uk-contrast .uk-form textarea, +.uk-contrast .uk-form input:not([type]), +.uk-contrast .uk-form input[type="text"], +.uk-contrast .uk-form input[type="password"], +.uk-contrast .uk-form input[type="datetime"], +.uk-contrast .uk-form input[type="datetime-local"], +.uk-contrast .uk-form input[type="date"], +.uk-contrast .uk-form input[type="month"], +.uk-contrast .uk-form input[type="time"], +.uk-contrast .uk-form input[type="week"], +.uk-contrast .uk-form input[type="number"], +.uk-contrast .uk-form input[type="email"], +.uk-contrast .uk-form input[type="url"], +.uk-contrast .uk-form input[type="search"], +.uk-contrast .uk-form input[type="tel"], +.uk-contrast .uk-form input[type="color"] { + border-color: rgba(255, 255, 255, 0.8); + background: rgba(255, 255, 255, 0.8); + color: #444444; + background-clip: padding-box; +} +.uk-contrast .uk-form select:focus, +.uk-contrast .uk-form textarea:focus, +.uk-contrast .uk-form input:not([type]):focus, +.uk-contrast .uk-form input[type="text"]:focus, +.uk-contrast .uk-form input[type="password"]:focus, +.uk-contrast .uk-form input[type="datetime"]:focus, +.uk-contrast .uk-form input[type="datetime-local"]:focus, +.uk-contrast .uk-form input[type="date"]:focus, +.uk-contrast .uk-form input[type="month"]:focus, +.uk-contrast .uk-form input[type="time"]:focus, +.uk-contrast .uk-form input[type="week"]:focus, +.uk-contrast .uk-form input[type="number"]:focus, +.uk-contrast .uk-form input[type="email"]:focus, +.uk-contrast .uk-form input[type="url"]:focus, +.uk-contrast .uk-form input[type="search"]:focus, +.uk-contrast .uk-form input[type="tel"]:focus, +.uk-contrast .uk-form input[type="color"]:focus { + border-color: #ffffff; + background: #ffffff; + color: #444444; +} +.uk-contrast .uk-form :-ms-input-placeholder { + color: rgba(68, 68, 68, 0.7) !important; +} +.uk-contrast .uk-form ::-moz-placeholder { + color: rgba(68, 68, 68, 0.7); +} +.uk-contrast .uk-form ::-webkit-input-placeholder { + color: rgba(68, 68, 68, 0.7); +} +.uk-contrast .uk-button { + color: #444444; + background: #ffffff; + border-color: transparent; +} +.uk-contrast .uk-button:hover, +.uk-contrast .uk-button:focus { + background-color: rgba(255, 255, 255, 0.8); + color: #444444; + border-color: transparent; +} +.uk-contrast .uk-button:active, +.uk-contrast .uk-button.uk-active { + background-color: rgba(255, 255, 255, 0.7); + color: #444444; + box-shadow: none; +} +.uk-contrast .uk-button-primary { + background-color: #009dd8; + color: #ffffff; +} +.uk-contrast .uk-button-primary:hover, +.uk-contrast .uk-button-primary:focus { + background-color: #00aff2; + color: #ffffff; +} +.uk-contrast .uk-button-primary:active, +.uk-contrast .uk-button-primary.uk-active { + background-color: #008abf; + color: #ffffff; +} +.uk-contrast .uk-icon-hover { + color: rgba(255, 255, 255, 0.7); +} +.uk-contrast .uk-icon-hover:hover { + color: #ffffff; +} +.uk-contrast .uk-icon-button { + background: #ffffff; + color: #444444; + border-color: transparent; +} +.uk-contrast .uk-icon-button:hover, +.uk-contrast .uk-icon-button:focus { + background-color: rgba(255, 255, 255, 0.8); + color: #444444; + border-color: transparent; +} +.uk-contrast .uk-icon-button:active { + background-color: rgba(255, 255, 255, 0.7); + color: #444444; + box-shadow: none; +} +.uk-contrast .uk-text-muted { + color: rgba(255, 255, 255, 0.6) !important; +} +.uk-contrast .uk-text-primary { + color: #2d7091 !important; +} +/* ======================================================================== + Component: Print + ========================================================================== */ +@media print { + * { + background: transparent !important; + color: black !important; + box-shadow: none !important; + text-shadow: none !important; + } + a, + a:visited { + text-decoration: underline; + } + 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; + } + @page { + margin: 0.5cm; + } + p, + h2, + h3 { + orphans: 3; + widows: 3; + } + h2, + h3 { + page-break-after: avoid; + } +} diff --git a/media/uikit/css/uikit.gradient.min.css b/media/uikit/css/uikit.gradient.min.css new file mode 100644 index 00000000..219d5233 --- /dev/null +++ b/media/uikit/css/uikit.gradient.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +html{font:400 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;background:#fff;color:#444;background-image:-webkit-radial-gradient(100% 100%,center,#fff,#fff);background-image:radial-gradient(100% 100% at center,#fff,#fff)}body{margin:0}a{background:0 0}a:active,a:hover{outline:0}.uk-link,a{color:#07d;text-decoration:none;cursor:pointer}.uk-link:hover,a:hover{color:#059;text-decoration:underline}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}:not(pre)>code,:not(pre)>kbd,:not(pre)>samp{font-size:12px;font-family:Consolas,monospace,serif;color:#d05;white-space:nowrap;padding:0 4px;border:1px solid #ddd;border-radius:3px;background:#fafafa}em{color:#d05}ins{background:#ffa;color:#444;text-decoration:none}mark{background:#ffa;color:#444}q{font-style:italic}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{max-width:100%;height:auto;-moz-box-sizing:border-box;box-sizing:border-box;border:0;vertical-align:middle}.uk-img-preserve,.uk-img-preserve img{max-width:none}svg:not(:root){overflow:hidden}blockquote,figure{margin:0}address,blockquote,dl,fieldset,figure,ol,p,pre,ul{margin:0 0 15px 0}*+address,*+blockquote,*+dl,*+fieldset,*+figure,*+ol,*+p,*+pre,*+ul{margin-top:15px}h1,h2,h3,h4,h5,h6{margin:0 0 15px 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;color:#444;text-transform:none}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:25px}.uk-h1,h1{font-size:36px;line-height:42px}.uk-h2,h2{font-size:24px;line-height:30px}.uk-h3,h3{font-size:18px;line-height:24px}.uk-h4,h4{font-size:16px;line-height:22px}.uk-h5,h5{font-size:14px;line-height:20px}.uk-h6,h6{font-size:12px;line-height:18px}ol,ul{padding-left:30px}ol>li>ol,ol>li>ul,ul>li>ol,ul>li>ul{margin:0}dt{font-weight:700}dd{margin-left:0}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;margin:15px 0;border:0;border-top:1px solid #ddd}address{font-style:normal}blockquote{padding-left:15px;border-left:5px solid #ddd;font-size:16px;line-height:22px;font-style:italic}pre{padding:10px;background:#fafafa;font:12px/18px Consolas,monospace,serif;color:#444;-moz-tab-size:4;tab-size:4;overflow:auto;border:1px solid #ddd;border-radius:3px}::-moz-selection{background:#39f;color:#fff;text-shadow:none}::selection{background:#39f;color:#fff;text-shadow:none}article,aside,details,figcaption,figure,footer,header,main,nav,section,summary{display:block}progress{vertical-align:baseline}audio:not([controls]){display:none}[hidden],template{display:none}iframe{border:0}@media screen and (max-width:400px){@-ms-viewport{width:device-width}}.uk-grid{display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin:0;padding:0;list-style:none}.uk-grid:after,.uk-grid:before{content:"";display:block;overflow:hidden}.uk-grid:after{clear:both}.uk-grid>*{-ms-flex:none;-webkit-flex:none;flex:none;margin:0;float:left}.uk-grid>*>:last-child{margin-bottom:0}.uk-grid{margin-left:-25px}.uk-grid>*{padding-left:25px}.uk-grid+.uk-grid,.uk-grid-margin,.uk-grid>*>.uk-panel+.uk-panel{margin-top:25px}@media (min-width:1220px){.uk-grid{margin-left:-35px}.uk-grid>*{padding-left:35px}.uk-grid+.uk-grid,.uk-grid-margin,.uk-grid>*>.uk-panel+.uk-panel{margin-top:35px}}.uk-grid-collapse{margin-left:0}.uk-grid-collapse>*{padding-left:0}.uk-grid-collapse+.uk-grid-collapse,.uk-grid-collapse>*>.uk-panel+.uk-panel,.uk-grid-collapse>.uk-grid-margin{margin-top:0}.uk-grid-small{margin-left:-10px}.uk-grid-small>*{padding-left:10px}.uk-grid-small+.uk-grid-small,.uk-grid-small>*>.uk-panel+.uk-panel,.uk-grid-small>.uk-grid-margin{margin-top:10px}.uk-grid-medium{margin-left:-25px}.uk-grid-medium>*{padding-left:25px}.uk-grid-medium+.uk-grid-medium,.uk-grid-medium>*>.uk-panel+.uk-panel,.uk-grid-medium>.uk-grid-margin{margin-top:25px}.uk-grid-divider:not(:empty){margin-left:-25px;margin-right:-25px}.uk-grid-divider>*{padding-left:25px;padding-right:25px}.uk-grid-divider>[class*=uk-width-9-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-1-]:not(.uk-width-1-1):nth-child(n+2),.uk-grid-divider>[class*=uk-width-2-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-3-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-4-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-5-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-6-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-7-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-8-]:nth-child(n+2){border-left:1px solid #ddd}@media (min-width:768px){.uk-grid-divider>[class*=uk-width-medium-]:not(.uk-width-medium-1-1):nth-child(n+2){border-left:1px solid #ddd}}@media (min-width:960px){.uk-grid-divider>[class*=uk-width-large-]:not(.uk-width-large-1-1):nth-child(n+2){border-left:1px solid #ddd}}@media (min-width:1220px){.uk-grid-divider:not(:empty){margin-left:-35px;margin-right:-35px}.uk-grid-divider>*{padding-left:35px;padding-right:35px}.uk-grid-divider:empty{margin-top:35px;margin-bottom:35px}}.uk-grid-divider:empty{margin-top:25px;margin-bottom:25px;border-top:1px solid #ddd}.uk-grid-match>*{display:-ms-flexbox;display:-webkit-flex;display:flex}.uk-grid-match>*>*{-ms-flex:none;-webkit-flex:none;flex:none;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;-moz-box-sizing:border-box;box-sizing:border-box;width:100%}[class*=uk-grid-width]>*{-moz-box-sizing:border-box;box-sizing:border-box;width:100%}.uk-grid-width-1-2>*{width:50%}.uk-grid-width-1-3>*{width:33.333%}.uk-grid-width-1-4>*{width:25%}.uk-grid-width-1-5>*{width:20%}.uk-grid-width-1-6>*{width:16.666%}.uk-grid-width-1-10>*{width:10%}@media (min-width:480px){.uk-grid-width-small-1-2>*{width:50%}.uk-grid-width-small-1-3>*{width:33.333%}.uk-grid-width-small-1-4>*{width:25%}.uk-grid-width-small-1-5>*{width:20%}.uk-grid-width-small-1-6>*{width:16.666%}.uk-grid-width-small-1-10>*{width:10%}}@media (min-width:768px){.uk-grid-width-medium-1-2>*{width:50%}.uk-grid-width-medium-1-3>*{width:33.333%}.uk-grid-width-medium-1-4>*{width:25%}.uk-grid-width-medium-1-5>*{width:20%}.uk-grid-width-medium-1-6>*{width:16.666%}.uk-grid-width-medium-1-10>*{width:10%}}@media (min-width:960px){.uk-grid-width-large-1-2>*{width:50%}.uk-grid-width-large-1-3>*{width:33.333%}.uk-grid-width-large-1-4>*{width:25%}.uk-grid-width-large-1-5>*{width:20%}.uk-grid-width-large-1-6>*{width:16.666%}.uk-grid-width-large-1-10>*{width:10%}}@media (min-width:1220px){.uk-grid-width-xlarge-1-2>*{width:50%}.uk-grid-width-xlarge-1-3>*{width:33.333%}.uk-grid-width-xlarge-1-4>*{width:25%}.uk-grid-width-xlarge-1-5>*{width:20%}.uk-grid-width-xlarge-1-6>*{width:16.666%}.uk-grid-width-xlarge-1-10>*{width:10%}}[class*=uk-width]{-moz-box-sizing:border-box;box-sizing:border-box;width:100%}.uk-width-1-1{width:100%}.uk-width-1-2,.uk-width-2-4,.uk-width-3-6,.uk-width-5-10{width:50%}.uk-width-1-3,.uk-width-2-6{width:33.333%}.uk-width-2-3,.uk-width-4-6{width:66.666%}.uk-width-1-4{width:25%}.uk-width-3-4{width:75%}.uk-width-1-5,.uk-width-2-10{width:20%}.uk-width-2-5,.uk-width-4-10{width:40%}.uk-width-3-5,.uk-width-6-10{width:60%}.uk-width-4-5,.uk-width-8-10{width:80%}.uk-width-1-6{width:16.666%}.uk-width-5-6{width:83.333%}.uk-width-1-10{width:10%}.uk-width-3-10{width:30%}.uk-width-7-10{width:70%}.uk-width-9-10{width:90%}@media (min-width:480px){.uk-width-small-1-1{width:100%}.uk-width-small-1-2,.uk-width-small-2-4,.uk-width-small-3-6,.uk-width-small-5-10{width:50%}.uk-width-small-1-3,.uk-width-small-2-6{width:33.333%}.uk-width-small-2-3,.uk-width-small-4-6{width:66.666%}.uk-width-small-1-4{width:25%}.uk-width-small-3-4{width:75%}.uk-width-small-1-5,.uk-width-small-2-10{width:20%}.uk-width-small-2-5,.uk-width-small-4-10{width:40%}.uk-width-small-3-5,.uk-width-small-6-10{width:60%}.uk-width-small-4-5,.uk-width-small-8-10{width:80%}.uk-width-small-1-6{width:16.666%}.uk-width-small-5-6{width:83.333%}.uk-width-small-1-10{width:10%}.uk-width-small-3-10{width:30%}.uk-width-small-7-10{width:70%}.uk-width-small-9-10{width:90%}}@media (min-width:768px){.uk-width-medium-1-1{width:100%}.uk-width-medium-1-2,.uk-width-medium-2-4,.uk-width-medium-3-6,.uk-width-medium-5-10{width:50%}.uk-width-medium-1-3,.uk-width-medium-2-6{width:33.333%}.uk-width-medium-2-3,.uk-width-medium-4-6{width:66.666%}.uk-width-medium-1-4{width:25%}.uk-width-medium-3-4{width:75%}.uk-width-medium-1-5,.uk-width-medium-2-10{width:20%}.uk-width-medium-2-5,.uk-width-medium-4-10{width:40%}.uk-width-medium-3-5,.uk-width-medium-6-10{width:60%}.uk-width-medium-4-5,.uk-width-medium-8-10{width:80%}.uk-width-medium-1-6{width:16.666%}.uk-width-medium-5-6{width:83.333%}.uk-width-medium-1-10{width:10%}.uk-width-medium-3-10{width:30%}.uk-width-medium-7-10{width:70%}.uk-width-medium-9-10{width:90%}}@media (min-width:960px){.uk-width-large-1-1{width:100%}.uk-width-large-1-2,.uk-width-large-2-4,.uk-width-large-3-6,.uk-width-large-5-10{width:50%}.uk-width-large-1-3,.uk-width-large-2-6{width:33.333%}.uk-width-large-2-3,.uk-width-large-4-6{width:66.666%}.uk-width-large-1-4{width:25%}.uk-width-large-3-4{width:75%}.uk-width-large-1-5,.uk-width-large-2-10{width:20%}.uk-width-large-2-5,.uk-width-large-4-10{width:40%}.uk-width-large-3-5,.uk-width-large-6-10{width:60%}.uk-width-large-4-5,.uk-width-large-8-10{width:80%}.uk-width-large-1-6{width:16.666%}.uk-width-large-5-6{width:83.333%}.uk-width-large-1-10{width:10%}.uk-width-large-3-10{width:30%}.uk-width-large-7-10{width:70%}.uk-width-large-9-10{width:90%}}@media (min-width:768px){[class*=uk-push-],[class*=uk-pull-]{position:relative}.uk-push-1-2,.uk-push-2-4,.uk-push-3-6,.uk-push-5-10{left:50%}.uk-push-1-3,.uk-push-2-6{left:33.333%}.uk-push-2-3,.uk-push-4-6{left:66.666%}.uk-push-1-4{left:25%}.uk-push-3-4{left:75%}.uk-push-1-5,.uk-push-2-10{left:20%}.uk-push-2-5,.uk-push-4-10{left:40%}.uk-push-3-5,.uk-push-6-10{left:60%}.uk-push-4-5,.uk-push-8-10{left:80%}.uk-push-1-6{left:16.666%}.uk-push-5-6{left:83.333%}.uk-push-1-10{left:10%}.uk-push-3-10{left:30%}.uk-push-7-10{left:70%}.uk-push-9-10{left:90%}.uk-pull-1-2,.uk-pull-2-4,.uk-pull-3-6,.uk-pull-5-10{left:-50%}.uk-pull-1-3,.uk-pull-2-6{left:-33.333%}.uk-pull-2-3,.uk-pull-4-6{left:-66.666%}.uk-pull-1-4{left:-25%}.uk-pull-3-4{left:-75%}.uk-pull-1-5,.uk-pull-2-10{left:-20%}.uk-pull-2-5,.uk-pull-4-10{left:-40%}.uk-pull-3-5,.uk-pull-6-10{left:-60%}.uk-pull-4-5,.uk-pull-8-10{left:-80%}.uk-pull-1-6{left:-16.666%}.uk-pull-5-6{left:-83.333%}.uk-pull-1-10{left:-10%}.uk-pull-3-10{left:-30%}.uk-pull-7-10{left:-70%}.uk-pull-9-10{left:-90%}}.uk-panel{display:block;position:relative}.uk-panel,.uk-panel:hover{text-decoration:none}.uk-panel:after,.uk-panel:before{content:"";display:table}.uk-panel:after{clear:both}.uk-panel>:not(.uk-panel-title):last-child{margin-bottom:0}.uk-panel-title{margin-top:0;margin-bottom:15px;font-size:18px;line-height:24px;font-weight:400;text-transform:none;color:#444}.uk-panel-badge{position:absolute;top:0;right:0;z-index:1}.uk-panel-teaser{margin-bottom:15px}.uk-panel-box{padding:15px;background:#fafafa;color:#444;border:1px solid #ddd;border-radius:4px}.uk-panel-box-hover:hover{color:#444}.uk-panel-box .uk-panel-title{color:#444}.uk-panel-box .uk-panel-badge{top:10px;right:10px}.uk-panel-box .uk-panel-teaser{margin-top:-16px;margin-left:-16px;margin-right:-16px}.uk-panel-box>.uk-nav-side{margin:0 -15px}.uk-panel-box-primary{background-color:#ebf7fd;color:#2d7091;border-color:rgba(45,112,145,.3)}.uk-panel-box-primary-hover:hover{color:#2d7091}.uk-panel-box-primary .uk-panel-title{color:#2d7091}.uk-panel-box-secondary{background-color:#fff;color:#444}.uk-panel-box-secondary-hover:hover{color:#444}.uk-panel-box-secondary .uk-panel-title{color:#444}.uk-panel-hover{padding:15px;color:#444;border:1px solid transparent;border-radius:4px}.uk-panel-hover:hover{background:#fafafa;color:#444;border-color:#ddd}.uk-panel-hover .uk-panel-badge{top:10px;right:10px}.uk-panel-hover .uk-panel-teaser{margin-top:-16px;margin-left:-16px;margin-right:-16px}.uk-panel-header .uk-panel-title{padding-bottom:10px;border-bottom:1px solid #ddd;color:#444}.uk-panel-space{padding:30px}.uk-panel-space .uk-panel-badge{top:30px;right:30px}.uk-panel+.uk-panel-divider{margin-top:50px!important}.uk-panel+.uk-panel-divider:before{content:"";display:block;position:absolute;top:-25px;left:0;right:0;border-top:1px solid #ddd}@media (min-width:1220px){.uk-panel+.uk-panel-divider{margin-top:70px!important}.uk-panel+.uk-panel-divider:before{top:-35px}}.uk-panel-box .uk-panel-teaser{border-top-left-radius:4px;border-top-right-radius:4px;overflow:hidden;-webkit-transform:translateZ(0)}.uk-block{position:relative;-moz-box-sizing:border-box;box-sizing:border-box;padding-top:20px;padding-bottom:20px}@media (min-width:768px){.uk-block{padding-top:50px;padding-bottom:50px}}.uk-block:after,.uk-block:before{content:"";display:table}.uk-block:after{clear:both}.uk-block>:last-child{margin-bottom:0}.uk-block-large{padding-top:20px;padding-bottom:20px}@media (min-width:768px){.uk-block-large{padding-top:50px;padding-bottom:50px}}@media (min-width:960px){.uk-block-large{padding-top:100px;padding-bottom:100px}}.uk-block-default{background:#fff}.uk-block-muted{background:#f9f9f9}.uk-block-primary{background:#00a8e6}.uk-block-secondary{background:#222}.uk-block-default+.uk-block-default,.uk-block-muted+.uk-block-muted,.uk-block-primary+.uk-block-primary,.uk-block-secondary+.uk-block-secondary{padding-top:0}.uk-article:after,.uk-article:before{content:"";display:table}.uk-article:after{clear:both}.uk-article>:last-child{margin-bottom:0}.uk-article+.uk-article{margin-top:25px}.uk-article-title{font-size:36px;line-height:42px;font-weight:400;text-transform:none}.uk-article-title a{color:inherit;text-decoration:none}.uk-article-meta{font-size:12px;line-height:18px;color:#999}.uk-article-lead{color:#444;font-size:18px;line-height:24px;font-weight:400}.uk-article-divider{margin-bottom:25px;border-color:#ddd}*+.uk-article-divider{margin-top:25px}.uk-article+.uk-article{padding-top:25px;border-top:1px solid #ddd}.uk-comment-header{margin-bottom:15px;padding:10px;border:1px solid #ddd;border-radius:4px;background:#fafafa}.uk-comment-header:after,.uk-comment-header:before{content:"";display:table}.uk-comment-header:after{clear:both}.uk-comment-avatar{margin-right:15px;float:left}.uk-comment-title{margin:5px 0 0 0;font-size:16px;line-height:22px}.uk-comment-meta{margin:2px 0 0 0;font-size:11px;line-height:16px;color:#999}.uk-comment-body{padding-left:10px;padding-right:10px}.uk-comment-body>:last-child{margin-bottom:0}.uk-comment-list{padding:0;list-style:none}.uk-comment-list .uk-comment+ul{margin:25px 0 0 0;list-style:none}.uk-comment-list .uk-comment+ul>li:nth-child(n+2),.uk-comment-list>li:nth-child(n+2){margin-top:25px}@media (min-width:768px){.uk-comment-list .uk-comment+ul{padding-left:100px}}.uk-comment-primary .uk-comment-header{border-color:rgba(45,112,145,.3);background-color:#ebf7fd;color:#2d7091;text-shadow:0 1px 0 #fff}.uk-cover-background{background-position:50% 50%;background-size:cover;background-repeat:no-repeat}.uk-cover{overflow:hidden}.uk-cover-object{width:auto;height:auto;min-width:100%;min-height:100%;max-width:none;position:relative;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}[data-uk-cover]{position:relative;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.uk-nav,.uk-nav ul{margin:0;padding:0;list-style:none}.uk-nav li>a{display:block;text-decoration:none}.uk-nav>li>a{padding:5px 15px}.uk-nav ul{padding-left:15px}.uk-nav ul a{padding:2px 0}.uk-nav li>a>div{font-size:12px;line-height:18px}.uk-nav-header{padding:5px 15px;text-transform:uppercase;font-weight:700;font-size:12px}.uk-nav-header:not(:first-child){margin-top:15px}.uk-nav-divider{margin:9px 15px}ul.uk-nav-sub{padding:5px 0 5px 15px}.uk-nav-parent-icon>.uk-parent>a:after{content:"\f104";width:20px;margin-right:-10px;float:right;font-family:FontAwesome;text-align:center}.uk-nav-parent-icon>.uk-parent.uk-open>a:after{content:"\f107"}.uk-nav-side>li>a{color:#444}.uk-nav-side>li>a:focus,.uk-nav-side>li>a:hover{background:rgba(0,0,0,.03);color:#444;outline:0;box-shadow:inset 0 0 1px rgba(0,0,0,.1);text-shadow:0 -1px 0 #fff}.uk-nav-side>li.uk-active>a{background:#009dd8;color:#fff;box-shadow:inset 0 2px 4px rgba(0,0,0,.2);text-shadow:0 -1px 0 rgba(0,0,0,.2)}.uk-nav-side .uk-nav-header{color:#444}.uk-nav-side .uk-nav-divider{border-top:1px solid #ddd;box-shadow:0 1px 0 #fff}.uk-nav-side ul a{color:#07d}.uk-nav-side ul a:hover{color:#059}.uk-nav-dropdown>li>a{color:#444}.uk-nav-dropdown>li>a:focus,.uk-nav-dropdown>li>a:hover{background:#009dd8;color:#fff;outline:0;box-shadow:inset 0 2px 4px rgba(0,0,0,.2);text-shadow:0 -1px 0 rgba(0,0,0,.2)}.uk-nav-dropdown .uk-nav-header{color:#999}.uk-nav-dropdown .uk-nav-divider{border-top:1px solid #ddd}.uk-nav-dropdown ul a{color:#07d}.uk-nav-dropdown ul a:hover{color:#059}.uk-nav-navbar>li>a{color:#444}.uk-nav-navbar>li>a:focus,.uk-nav-navbar>li>a:hover{background:#009dd8;color:#fff;outline:0;box-shadow:inset 0 2px 4px rgba(0,0,0,.2);text-shadow:0 -1px 0 rgba(0,0,0,.2)}.uk-nav-navbar .uk-nav-header{color:#999}.uk-nav-navbar .uk-nav-divider{border-top:1px solid #ddd}.uk-nav-navbar ul a{color:#07d}.uk-nav-navbar ul a:hover{color:#059}.uk-nav-offcanvas>li>a{color:#ccc;padding:10px 15px;border-top:1px solid rgba(0,0,0,.3);box-shadow:inset 0 1px 0 rgba(255,255,255,.05);text-shadow:0 1px 0 rgba(0,0,0,.5)}.uk-nav-offcanvas>.uk-open>a,html:not(.uk-touch) .uk-nav-offcanvas>li>a:focus,html:not(.uk-touch) .uk-nav-offcanvas>li>a:hover{background:#404040;color:#fff;outline:0}html .uk-nav.uk-nav-offcanvas>li.uk-active>a{background:#1a1a1a;color:#fff;box-shadow:inset 0 1px 3px rgba(0,0,0,.3)}.uk-nav-offcanvas .uk-nav-header{color:#777;margin-top:0;border-top:1px solid rgba(0,0,0,.3);background:#404040;box-shadow:inset 0 1px 0 rgba(255,255,255,.05);text-shadow:0 1px 0 rgba(0,0,0,.5)}.uk-nav-offcanvas .uk-nav-divider{border-top:1px solid rgba(255,255,255,.01);margin:0;height:4px;background:rgba(0,0,0,.2);box-shadow:inset 0 1px 3px rgba(0,0,0,.3)}.uk-nav-offcanvas ul a{color:#ccc}html:not(.uk-touch) .uk-nav-offcanvas ul a:hover{color:#fff}.uk-nav-offcanvas{border-bottom:1px solid rgba(0,0,0,.3);box-shadow:0 1px 0 rgba(255,255,255,.05)}.uk-nav-offcanvas .uk-nav-sub{border-top:1px solid rgba(0,0,0,.3);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}.uk-navbar{background:#f7f7f7;color:#444;border:1px solid rgba(0,0,0,.1);border-bottom-color:rgba(0,0,0,.3);border-radius:4px;background-origin:border-box;background-image:-webkit-linear-gradient(top,#fff,#eee);background-image:linear-gradient(to bottom,#fff,#eee)}.uk-navbar:after,.uk-navbar:before{content:"";display:table}.uk-navbar:after{clear:both}.uk-navbar-nav{margin:0;padding:0;list-style:none;float:left}.uk-navbar-nav>li{float:left;position:relative}.uk-navbar-nav>li>a{display:block;-moz-box-sizing:border-box;box-sizing:border-box;text-decoration:none;height:41px;padding:0 15px;line-height:40px;color:#444;font-size:14px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;margin-top:-1px;margin-left:-1px;border:1px solid transparent;border-bottom-width:0;text-shadow:0 1px 0 #fff}.uk-navbar-nav>li>a[href='#']{cursor:text}.uk-navbar-nav>li.uk-open>a,.uk-navbar-nav>li:hover>a,.uk-navbar-nav>li>a:focus{background-color:transparent;color:#444;outline:0;position:relative;z-index:1;border-left-color:rgba(0,0,0,.1);border-right-color:rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.1);box-shadow:inset 0 2px 4px rgba(0,0,0,.1)}.uk-navbar-nav>li>a:active{background-color:#f5f5f5;color:#444;border-left-color:rgba(0,0,0,.1);border-right-color:rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.2);box-shadow:inset 0 2px 4px rgba(0,0,0,.1)}.uk-navbar-nav>li.uk-active>a{background-color:#fafafa;color:#444;border-left-color:rgba(0,0,0,.1);border-right-color:rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.2);box-shadow:inset 0 2px 4px rgba(0,0,0,.1)}.uk-navbar-nav .uk-navbar-nav-subtitle{line-height:28px}.uk-navbar-nav-subtitle>div{margin-top:-6px;font-size:10px;line-height:12px}.uk-navbar-brand,.uk-navbar-content,.uk-navbar-toggle{-moz-box-sizing:border-box;box-sizing:border-box;display:block;height:41px;padding:0 15px;float:left;margin-top:-1px;text-shadow:0 1px 0 #fff}.uk-navbar-brand:before,.uk-navbar-content:before,.uk-navbar-toggle:before{content:'';display:inline-block;height:100%;vertical-align:middle}.uk-navbar-content+.uk-navbar-content:not(.uk-navbar-center){padding-left:0}.uk-navbar-content>a:not([class]){color:#07d}.uk-navbar-content>a:not([class]):hover{color:#059}.uk-navbar-brand{font-size:18px;color:#444;text-decoration:none}.uk-navbar-brand:focus,.uk-navbar-brand:hover{color:#444;text-decoration:none;outline:0}.uk-navbar-toggle{font-size:18px;color:#444;text-decoration:none}.uk-navbar-toggle:focus,.uk-navbar-toggle:hover{color:#444;text-decoration:none;outline:0}.uk-navbar-toggle:after{content:"\f0c9";font-family:FontAwesome;vertical-align:middle}.uk-navbar-toggle-alt:after{content:"\f002"}.uk-navbar-center{float:none;text-align:center;max-width:50%;margin-left:auto;margin-right:auto}.uk-navbar-flip{float:right}.uk-navbar-nav:first-child>li:first-child>a{border-top-left-radius:4px;border-bottom-left-radius:4px}.uk-navbar-flip .uk-navbar-nav>li>a{margin-left:0;margin-right:-1px}.uk-navbar-flip .uk-navbar-nav:first-child>li:first-child>a{border-top-left-radius:0;border-bottom-left-radius:0}.uk-navbar-flip .uk-navbar-nav:last-child>li:last-child>a{border-top-right-radius:4px;border-bottom-right-radius:4px}.uk-navbar-attached{border-top-color:transparent;border-left-color:transparent;border-right-color:transparent;border-radius:0}.uk-navbar-attached .uk-navbar-nav>li>a{border-radius:0!important}.uk-subnav{display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-left:-10px;margin-top:-10px;padding:0;list-style:none}.uk-subnav>*{-ms-flex:none;-webkit-flex:none;flex:none;padding-left:10px;margin-top:10px;position:relative}.uk-subnav:after,.uk-subnav:before{content:"";display:block;overflow:hidden}.uk-subnav:after{clear:both}.uk-subnav>*{float:left}.uk-subnav>*>*{display:inline-block;color:#444}.uk-subnav>*>:focus,.uk-subnav>*>:hover{color:#07d;text-decoration:none}.uk-subnav>.uk-active>*{color:#07d}.uk-subnav-line>:before{content:"";display:inline-block;height:10px;vertical-align:middle}.uk-subnav-line>:nth-child(n+2):before{margin-right:10px;border-left:1px solid #ddd}.uk-subnav-pill>*>*{padding:3px 9px;border-radius:4px}.uk-subnav-pill>*>:focus,.uk-subnav-pill>*>:hover{background:#fafafa;color:#444;text-decoration:none;outline:0;box-shadow:0 0 0 1px rgba(0,0,0,.1)}.uk-subnav-pill>.uk-active>*{background:#009dd8;color:#fff;box-shadow:inset 0 2px 4px rgba(0,0,0,.2)}.uk-subnav>.uk-disabled>*{background:0 0;color:#999;text-decoration:none;cursor:text;box-shadow:none}.uk-breadcrumb{padding:0;list-style:none;font-size:0}.uk-breadcrumb>li{font-size:1rem;vertical-align:top}.uk-breadcrumb>li,.uk-breadcrumb>li>a,.uk-breadcrumb>li>span{display:inline-block}.uk-breadcrumb>li:nth-child(n+2):before{content:"/";display:inline-block;margin:0 8px}.uk-breadcrumb>li:not(.uk-active)>span{color:#999}.uk-pagination{padding:0;list-style:none;text-align:center;font-size:0}.uk-pagination:after,.uk-pagination:before{content:"";display:table}.uk-pagination:after{clear:both}.uk-pagination>li{display:inline-block;font-size:1rem;vertical-align:top}.uk-pagination>li:nth-child(n+2){margin-left:5px}.uk-pagination>li>a,.uk-pagination>li>span{display:inline-block;min-width:16px;padding:3px 5px;line-height:20px;text-decoration:none;-moz-box-sizing:content-box;box-sizing:content-box;text-align:center;border-radius:4px}.uk-pagination>li>a{background:#f7f7f7;color:#444;border:1px solid rgba(0,0,0,.2);border-bottom-color:rgba(0,0,0,.3);background-origin:border-box;background-image:-webkit-linear-gradient(top,#fff,#eee);background-image:linear-gradient(to bottom,#fff,#eee);text-shadow:0 1px 0 #fff}.uk-pagination>li>a:focus,.uk-pagination>li>a:hover{background-color:#fafafa;color:#444;outline:0;background-image:none}.uk-pagination>li>a:active{background-color:#f5f5f5;color:#444;border-color:rgba(0,0,0,.2);border-top-color:rgba(0,0,0,.3);background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.1)}.uk-pagination>.uk-active>span{background:#009dd8;color:#fff;border:1px solid rgba(0,0,0,.2);border-bottom-color:rgba(0,0,0,.4);background-origin:border-box;background-image:-webkit-linear-gradient(top,#00b4f5,#008dc5);background-image:linear-gradient(to bottom,#00b4f5,#008dc5);text-shadow:0 -1px 0 rgba(0,0,0,.2)}.uk-pagination>.uk-disabled>span{background-color:#fafafa;color:#999;border:1px solid rgba(0,0,0,.2);text-shadow:0 1px 0 #fff}.uk-pagination-previous{float:left}.uk-pagination-next{float:right}.uk-pagination-left{text-align:left}.uk-pagination-right{text-align:right}.uk-tab{margin:0;padding:0;list-style:none;border-bottom:1px solid #ddd}.uk-tab:after,.uk-tab:before{content:"";display:table}.uk-tab:after{clear:both}.uk-tab>li{margin-bottom:-1px;float:left;position:relative}.uk-tab>li>a{display:block;padding:8px 12px 8px 12px;border:1px solid transparent;border-bottom-width:0;color:#07d;text-decoration:none;border-radius:4px 4px 0 0;text-shadow:0 1px 0 #fff}.uk-tab>li:nth-child(n+2)>a{margin-left:5px}.uk-tab>li.uk-open>a,.uk-tab>li>a:focus,.uk-tab>li>a:hover{border-color:#ddd;background:#fafafa;color:#059;outline:0}.uk-tab>li.uk-open:not(.uk-active)>a,.uk-tab>li:not(.uk-active)>a:focus,.uk-tab>li:not(.uk-active)>a:hover{margin-bottom:1px;padding-bottom:7px}.uk-tab>li.uk-active>a{border-color:#ddd;border-bottom-color:transparent;background:#fff;color:#444}.uk-tab>li.uk-disabled>a{color:#999;cursor:text}.uk-tab>li.uk-disabled.uk-active>a,.uk-tab>li.uk-disabled>a:focus,.uk-tab>li.uk-disabled>a:hover{background:0 0;border-color:transparent}.uk-tab-flip>li{float:right}.uk-tab-flip>li:nth-child(n+2)>a{margin-left:0;margin-right:5px}.uk-tab>li.uk-tab-responsive>a{margin-left:0;margin-right:0}.uk-tab-responsive>a:before{content:"\f0c9\00a0";font-family:FontAwesome}.uk-tab-center{border-bottom:1px solid #ddd}.uk-tab-center-bottom{border-bottom:none;border-top:1px solid #ddd}.uk-tab-center:after,.uk-tab-center:before{content:"";display:table}.uk-tab-center:after{clear:both}.uk-tab-center .uk-tab{position:relative;right:50%;border:none;float:right}.uk-tab-center .uk-tab>li{position:relative;right:-50%}.uk-tab-center .uk-tab>li>a{text-align:center}.uk-tab-bottom{border-top:1px solid #ddd;border-bottom:none}.uk-tab-bottom>li{margin-top:-1px;margin-bottom:0}.uk-tab-bottom>li>a{padding-top:8px;padding-bottom:8px;border-bottom-width:1px;border-top-width:0}.uk-tab-bottom>li.uk-open:not(.uk-active)>a,.uk-tab-bottom>li:not(.uk-active)>a:focus,.uk-tab-bottom>li:not(.uk-active)>a:hover{margin-bottom:0;margin-top:1px;padding-bottom:8px;padding-top:7px}.uk-tab-bottom>li.uk-active>a{border-top-color:transparent;border-bottom-color:#ddd}.uk-tab-grid{margin-left:-5px;border-bottom:none;position:relative;z-index:0}.uk-tab-grid:before{display:block;position:absolute;left:5px;right:0;bottom:-1px;border-top:1px solid #ddd;z-index:-1}.uk-tab-grid>li:first-child>a{margin-left:5px}.uk-tab-grid>li>a{text-align:center}.uk-tab-grid.uk-tab-bottom{border-top:none}.uk-tab-grid.uk-tab-bottom:before{top:-1px;bottom:auto}@media (min-width:768px){.uk-tab-left,.uk-tab-right{border-bottom:none}.uk-tab-left>li,.uk-tab-right>li{margin-bottom:0;float:none}.uk-tab-left>li>a,.uk-tab-right>li>a{padding-top:8px;padding-bottom:8px}.uk-tab-left>li:nth-child(n+2)>a,.uk-tab-right>li:nth-child(n+2)>a{margin-left:0;margin-top:5px}.uk-tab-left>li.uk-active>a,.uk-tab-right>li.uk-active>a{border-color:#ddd}.uk-tab-left{border-right:1px solid #ddd}.uk-tab-left>li{margin-right:-1px}.uk-tab-left>li>a{border-bottom-width:1px;border-right-width:0}.uk-tab-left>li:not(.uk-active)>a:focus,.uk-tab-left>li:not(.uk-active)>a:hover{margin-bottom:0;margin-right:1px;padding-bottom:8px;padding-right:11px}.uk-tab-left>li.uk-active>a{border-right-color:transparent}.uk-tab-right{border-left:1px solid #ddd}.uk-tab-right>li{margin-left:-1px}.uk-tab-right>li>a{border-bottom-width:1px;border-left-width:0}.uk-tab-right>li:not(.uk-active)>a:focus,.uk-tab-right>li:not(.uk-active)>a:hover{margin-bottom:0;margin-left:1px;padding-bottom:8px;padding-left:11px}.uk-tab-right>li.uk-active>a{border-left-color:transparent}}.uk-tab-bottom>li>a{border-radius:0 0 4px 4px}@media (min-width:768px){.uk-tab-left>li>a{border-radius:4px 0 0 4px}.uk-tab-right>li>a{border-radius:0 4px 4px 0}}.uk-thumbnav{display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-left:-10px;margin-top:-10px;padding:0;list-style:none}.uk-thumbnav>*{-ms-flex:none;-webkit-flex:none;flex:none;padding-left:10px;margin-top:10px}.uk-thumbnav:after,.uk-thumbnav:before{content:"";display:block;overflow:hidden}.uk-thumbnav:after{clear:both}.uk-thumbnav>*{float:left}.uk-thumbnav>*>*{display:block;background:#fff}.uk-thumbnav>*>*>img{opacity:.7;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.uk-thumbnav>*>:focus>img,.uk-thumbnav>*>:hover>img{opacity:1}.uk-thumbnav>.uk-active>*>img{opacity:1}.uk-list{padding:0;list-style:none}.uk-list>li:after,.uk-list>li:before{content:"";display:table}.uk-list>li:after{clear:both}.uk-list>li>:last-child{margin-bottom:0}.uk-list ul{margin:0;padding-left:20px;list-style:none}.uk-list-line>li:nth-child(n+2){margin-top:5px;padding-top:5px;border-top:1px solid #ddd}.uk-list-striped>li{padding:5px 5px;border-bottom:1px solid #ddd}.uk-list-striped>li:nth-of-type(odd){background:#fafafa}.uk-list-space>li:nth-child(n+2){margin-top:10px}.uk-list-striped>li:first-child{border-top:1px solid #ddd}@media (min-width:768px){.uk-description-list-horizontal{overflow:hidden}.uk-description-list-horizontal>dt{width:160px;float:left;clear:both;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uk-description-list-horizontal>dd{margin-left:180px}}.uk-description-list-line>dt{font-weight:400}.uk-description-list-line>dt:nth-child(n+2){margin-top:5px;padding-top:5px;border-top:1px solid #ddd}.uk-description-list-line>dd{color:#999}.uk-table{border-collapse:collapse;border-spacing:0;width:100%;margin-bottom:15px}*+.uk-table{margin-top:15px}.uk-table td,.uk-table th{padding:8px 8px;border-bottom:1px solid #ddd}.uk-table th{text-align:left}.uk-table td{vertical-align:top}.uk-table thead th{vertical-align:bottom}.uk-table caption,.uk-table tfoot{font-size:12px;font-style:italic}.uk-table caption{text-align:left;color:#999}.uk-table tbody tr.uk-active{background:#f0f0f0}.uk-table-middle,.uk-table-middle td{vertical-align:middle!important}.uk-table-striped tbody tr:nth-of-type(odd){background:#fafafa}.uk-table-condensed td{padding:4px 8px}.uk-table-hover tbody tr:hover{background:#f0f0f0}.uk-form input,.uk-form select,.uk-form textarea{-moz-box-sizing:border-box;box-sizing:border-box;margin:0;border-radius:0;font:inherit;color:inherit}.uk-form select{text-transform:none}.uk-form optgroup{font:inherit;font-weight:700}.uk-form input::-moz-focus-inner{border:0;padding:0}.uk-form input[type=checkbox],.uk-form input[type=radio]{padding:0}.uk-form input[type=checkbox]:not(:disabled),.uk-form input[type=radio]:not(:disabled){cursor:pointer}.uk-form input:not([type]),.uk-form input[type=text],.uk-form input[type=password],.uk-form input[type=email],.uk-form input[type=url],.uk-form input[type=search],.uk-form input[type=tel],.uk-form input[type=number],.uk-form input[type=datetime],.uk-form textarea{-webkit-appearance:none}.uk-form input[type=search]::-webkit-search-cancel-button,.uk-form input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.uk-form input[type=number]::-webkit-inner-spin-button,.uk-form input[type=number]::-webkit-outer-spin-button{height:auto}.uk-form fieldset{border:none;margin:0;padding:0}.uk-form textarea{overflow:auto;vertical-align:top}.uk-form ::-moz-placeholder{opacity:1}.uk-form :invalid{box-shadow:none}.uk-form input:not([type=radio]):not([type=checkbox]),.uk-form select{vertical-align:middle}.uk-form>:last-child{margin-bottom:0}.uk-form input:not([type]),.uk-form input[type=text],.uk-form input[type=password],.uk-form input[type=email],.uk-form input[type=url],.uk-form input[type=search],.uk-form input[type=tel],.uk-form input[type=number],.uk-form input[type=datetime],.uk-form input[type=datetime-local],.uk-form input[type=date],.uk-form input[type=month],.uk-form input[type=time],.uk-form input[type=week],.uk-form input[type=color],.uk-form select,.uk-form textarea{height:30px;max-width:100%;padding:4px 6px;border:1px solid #ddd;background:#fff;color:#444;-webkit-transition:all linear .2s;transition:all linear .2s;border-radius:4px}.uk-form input:not([type]):focus,.uk-form input[type=text]:focus,.uk-form input[type=password]:focus,.uk-form input[type=email]:focus,.uk-form input[type=url]:focus,.uk-form input[type=search]:focus,.uk-form input[type=tel]:focus,.uk-form input[type=number]:focus,.uk-form input[type=datetime]:focus,.uk-form input[type=datetime-local]:focus,.uk-form input[type=date]:focus,.uk-form input[type=month]:focus,.uk-form input[type=time]:focus,.uk-form input[type=week]:focus,.uk-form input[type=color]:focus,.uk-form select:focus,.uk-form textarea:focus{border-color:#99baca;outline:0;background:#f5fbfe;color:#444}.uk-form input:not([type]):disabled,.uk-form input[type=text]:disabled,.uk-form input[type=password]:disabled,.uk-form input[type=email]:disabled,.uk-form input[type=url]:disabled,.uk-form input[type=search]:disabled,.uk-form input[type=tel]:disabled,.uk-form input[type=number]:disabled,.uk-form input[type=datetime]:disabled,.uk-form input[type=datetime-local]:disabled,.uk-form input[type=date]:disabled,.uk-form input[type=month]:disabled,.uk-form input[type=time]:disabled,.uk-form input[type=week]:disabled,.uk-form input[type=color]:disabled,.uk-form select:disabled,.uk-form textarea:disabled{border-color:#ddd;background-color:#fafafa;color:#999}.uk-form :-ms-input-placeholder{color:#999!important}.uk-form ::-moz-placeholder{color:#999}.uk-form ::-webkit-input-placeholder{color:#999}.uk-form :disabled:-ms-input-placeholder{color:#999!important}.uk-form :disabled::-moz-placeholder{color:#999}.uk-form :disabled::-webkit-input-placeholder{color:#999}.uk-form legend{width:100%;border:0;padding:0;padding-bottom:15px;font-size:18px;line-height:30px}.uk-form legend:after{content:"";display:block;border-bottom:1px solid #ddd;width:100%}input:not([type]).uk-form-small,input[type].uk-form-small,select.uk-form-small,textarea.uk-form-small{height:25px;padding:3px 3px;font-size:12px}input:not([type]).uk-form-large,input[type].uk-form-large,select.uk-form-large,textarea.uk-form-large{height:40px;padding:8px 6px;font-size:16px}.uk-form select[multiple],.uk-form select[size],.uk-form textarea{height:auto}.uk-form-danger{border-color:#dc8d99!important;background:#fff7f8!important;color:#d85030!important}.uk-form-success{border-color:#8ec73b!important;background:#fafff2!important;color:#659f13!important}.uk-form-blank{border-color:transparent!important;border-style:dashed!important;background:0 0!important}.uk-form-blank:focus{border-color:#ddd!important}input.uk-form-width-mini{width:40px}select.uk-form-width-mini{width:65px}.uk-form-width-small{width:130px}.uk-form-width-medium{width:200px}.uk-form-width-large{width:500px}.uk-form-row:after,.uk-form-row:before{content:"";display:table}.uk-form-row:after{clear:both}.uk-form-row+.uk-form-row{margin-top:15px}.uk-form-help-inline{display:inline-block;margin:0 0 0 10px}.uk-form-help-block{margin:5px 0 0 0}.uk-form-controls>:first-child{margin-top:0}.uk-form-controls>:last-child{margin-bottom:0}.uk-form-controls-condensed{margin:5px 0}.uk-form-stacked .uk-form-label{display:block;margin-bottom:5px;font-weight:700}@media (max-width:959px){.uk-form-horizontal .uk-form-label{display:block;margin-bottom:5px;font-weight:700}}@media (min-width:960px){.uk-form-horizontal .uk-form-label{width:200px;margin-top:5px;float:left}.uk-form-horizontal .uk-form-controls{margin-left:215px}.uk-form-horizontal .uk-form-controls-text{padding-top:5px}}.uk-form-icon{display:inline-block;position:relative;max-width:100%}.uk-form-icon>[class*=uk-icon-]{position:absolute;top:50%;width:30px;margin-top:-7px;font-size:14px;color:#999;text-align:center;pointer-events:none}.uk-form-icon:not(.uk-form-icon-flip)>input{padding-left:30px!important}.uk-form-icon-flip>[class*=uk-icon-]{right:0}.uk-form-icon-flip>input{padding-right:30px!important}.uk-button::-moz-focus-inner{border:0;padding:0}.uk-button{-webkit-appearance:none;margin:0;border:none;overflow:visible;font:inherit;color:#444;text-transform:none;display:inline-block;-moz-box-sizing:border-box;box-sizing:border-box;padding:0 12px;background:#f7f7f7;vertical-align:middle;line-height:28px;min-height:30px;font-size:1rem;text-decoration:none;text-align:center;border:1px solid rgba(0,0,0,.2);border-bottom-color:rgba(0,0,0,.3);background-origin:border-box;background-image:-webkit-linear-gradient(top,#fff,#eee);background-image:linear-gradient(to bottom,#fff,#eee);border-radius:4px;text-shadow:0 1px 0 #fff}.uk-button:not(:disabled){cursor:pointer}.uk-button:focus,.uk-button:hover{background-color:#fafafa;color:#444;outline:0;text-decoration:none;background-image:none}.uk-button.uk-active,.uk-button:active{background-color:#f5f5f5;color:#444;border-color:rgba(0,0,0,.2);border-top-color:rgba(0,0,0,.3);background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.1)}.uk-button-primary{background-color:#009dd8;color:#fff;background-image:-webkit-linear-gradient(top,#00b4f5,#008dc5);background-image:linear-gradient(to bottom,#00b4f5,#008dc5);border-color:rgba(0,0,0,.2);border-bottom-color:rgba(0,0,0,.4);text-shadow:0 -1px 0 rgba(0,0,0,.2)}.uk-button-primary:focus,.uk-button-primary:hover{background-color:#00aff2;color:#fff;background-image:none}.uk-button-primary.uk-active,.uk-button-primary:active{background-color:#008abf;color:#fff;background-image:none;border-color:rgba(0,0,0,.2);border-top-color:rgba(0,0,0,.4);box-shadow:inset 0 2px 4px rgba(0,0,0,.2)}.uk-button-success{background-color:#82bb42;color:#fff;background-image:-webkit-linear-gradient(top,#9fd256,#6fac34);background-image:linear-gradient(to bottom,#9fd256,#6fac34);border-color:rgba(0,0,0,.2);border-bottom-color:rgba(0,0,0,.4);text-shadow:0 -1px 0 rgba(0,0,0,.2)}.uk-button-success:focus,.uk-button-success:hover{background-color:#8fce48;color:#fff;background-image:none}.uk-button-success.uk-active,.uk-button-success:active{background-color:#76b430;color:#fff;background-image:none;border-color:rgba(0,0,0,.2);border-top-color:rgba(0,0,0,.4);box-shadow:inset 0 2px 4px rgba(0,0,0,.2)}.uk-button-danger{background-color:#d32c46;color:#fff;background-image:-webkit-linear-gradient(top,#ee465a,#c11a39);background-image:linear-gradient(to bottom,#ee465a,#c11a39);border-color:rgba(0,0,0,.2);border-bottom-color:rgba(0,0,0,.4);text-shadow:0 -1px 0 rgba(0,0,0,.2)}.uk-button-danger:focus,.uk-button-danger:hover{background-color:#e33551;color:#fff;background-image:none}.uk-button-danger.uk-active,.uk-button-danger:active{background-color:#c91c37;color:#fff;background-image:none;border-color:rgba(0,0,0,.2);border-top-color:rgba(0,0,0,.4);box-shadow:inset 0 2px 4px rgba(0,0,0,.2)}.uk-button:disabled{background-color:#fafafa;color:#999;border-color:rgba(0,0,0,.2);background-image:none;box-shadow:none;text-shadow:0 1px 0 #fff}.uk-button-link,.uk-button-link.uk-active,.uk-button-link:active,.uk-button-link:disabled,.uk-button-link:focus,.uk-button-link:hover{border-color:transparent;background:0 0;box-shadow:none;text-shadow:none}.uk-button-link{color:#07d}.uk-button-link.uk-active,.uk-button-link:active,.uk-button-link:focus,.uk-button-link:hover{color:#059;text-decoration:underline}.uk-button-link:disabled{color:#999}.uk-button-link:focus{outline:1px dotted}.uk-button-mini{min-height:20px;padding:0 6px;line-height:18px;font-size:11px}.uk-button-small{min-height:25px;padding:0 10px;line-height:23px;font-size:12px}.uk-button-large{min-height:40px;padding:0 15px;line-height:38px;font-size:16px;border-radius:5px}.uk-button-group{display:inline-block;vertical-align:middle;position:relative;font-size:0;white-space:nowrap}.uk-button-group>*{display:inline-block}.uk-button-group .uk-button{vertical-align:top}.uk-button-dropdown{display:inline-block;vertical-align:middle;position:relative}.uk-button-group>.uk-button:not(:first-child):not(:last-child),.uk-button-group>div:not(:first-child):not(:last-child) .uk-button{border-radius:0}.uk-button-group>.uk-button:first-child,.uk-button-group>div:first-child .uk-button{border-top-right-radius:0;border-bottom-right-radius:0}.uk-button-group>.uk-button:last-child,.uk-button-group>div:last-child .uk-button{border-top-left-radius:0;border-bottom-left-radius:0}.uk-button-group>.uk-button:nth-child(n+2),.uk-button-group>div:nth-child(n+2) .uk-button{margin-left:-1px}.uk-button-group .uk-button:active{position:relative}@font-face{font-family:FontAwesome;src:url(../fonts/fontawesome-webfont.eot);src:url(../fonts/fontawesome-webfont.eot?#iefix)format("embedded-opentype"),url(../fonts/fontawesome-webfont.woff2)format('woff2'),url(../fonts/fontawesome-webfont.woff)format("woff"),url(../fonts/fontawesome-webfont.ttf)format("truetype");font-weight:400;font-style:normal}[class*=uk-icon-]{font-family:FontAwesome;display:inline-block;font-weight:400;font-style:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[class*=uk-icon-],[class*=uk-icon-]:focus,[class*=uk-icon-]:hover{text-decoration:none}.uk-icon-small{font-size:150%;vertical-align:-10%}.uk-icon-medium{font-size:200%;vertical-align:-16%}.uk-icon-large{font-size:250%;vertical-align:-22%}.uk-icon-justify{width:1em;text-align:center}.uk-icon-spin{display:inline-block;-webkit-animation:uk-rotate 2s infinite linear;animation:uk-rotate 2s infinite linear}.uk-icon-hover{color:#999}.uk-icon-hover:hover{color:#444}.uk-icon-button{-moz-box-sizing:border-box;box-sizing:border-box;display:inline-block;width:35px;height:35px;border-radius:100%;background:#f7f7f7;line-height:35px;color:#444;font-size:18px;text-align:center;border:1px solid #ccc;border-bottom-color:#bbb;background-origin:border-box;background-image:-webkit-linear-gradient(top,#fff,#eee);background-image:linear-gradient(to bottom,#fff,#eee);text-shadow:0 1px 0 #fff}.uk-icon-button:focus,.uk-icon-button:hover{background-color:#fafafa;color:#444;outline:0;background-image:none}.uk-icon-button:active{background-color:#f5f5f5;color:#444;border-color:#ccc;border-top-color:#bbb;background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.1)}.uk-icon-glass:before{content:"\f000"}.uk-icon-music:before{content:"\f001"}.uk-icon-search:before{content:"\f002"}.uk-icon-envelope-o:before{content:"\f003"}.uk-icon-heart:before{content:"\f004"}.uk-icon-star:before{content:"\f005"}.uk-icon-star-o:before{content:"\f006"}.uk-icon-user:before{content:"\f007"}.uk-icon-film:before{content:"\f008"}.uk-icon-th-large:before{content:"\f009"}.uk-icon-th:before{content:"\f00a"}.uk-icon-th-list:before{content:"\f00b"}.uk-icon-check:before{content:"\f00c"}.uk-icon-close:before,.uk-icon-remove:before,.uk-icon-times:before{content:"\f00d"}.uk-icon-search-plus:before{content:"\f00e"}.uk-icon-search-minus:before{content:"\f010"}.uk-icon-power-off:before{content:"\f011"}.uk-icon-signal:before{content:"\f012"}.uk-icon-cog:before,.uk-icon-gear:before{content:"\f013"}.uk-icon-trash-o:before{content:"\f014"}.uk-icon-home:before{content:"\f015"}.uk-icon-file-o:before{content:"\f016"}.uk-icon-clock-o:before{content:"\f017"}.uk-icon-road:before{content:"\f018"}.uk-icon-download:before{content:"\f019"}.uk-icon-arrow-circle-o-down:before{content:"\f01a"}.uk-icon-arrow-circle-o-up:before{content:"\f01b"}.uk-icon-inbox:before{content:"\f01c"}.uk-icon-play-circle-o:before{content:"\f01d"}.uk-icon-repeat:before,.uk-icon-rotate-right:before{content:"\f01e"}.uk-icon-refresh:before{content:"\f021"}.uk-icon-list-alt:before{content:"\f022"}.uk-icon-lock:before{content:"\f023"}.uk-icon-flag:before{content:"\f024"}.uk-icon-headphones:before{content:"\f025"}.uk-icon-volume-off:before{content:"\f026"}.uk-icon-volume-down:before{content:"\f027"}.uk-icon-volume-up:before{content:"\f028"}.uk-icon-qrcode:before{content:"\f029"}.uk-icon-barcode:before{content:"\f02a"}.uk-icon-tag:before{content:"\f02b"}.uk-icon-tags:before{content:"\f02c"}.uk-icon-book:before{content:"\f02d"}.uk-icon-bookmark:before{content:"\f02e"}.uk-icon-print:before{content:"\f02f"}.uk-icon-camera:before{content:"\f030"}.uk-icon-font:before{content:"\f031"}.uk-icon-bold:before{content:"\f032"}.uk-icon-italic:before{content:"\f033"}.uk-icon-text-height:before{content:"\f034"}.uk-icon-text-width:before{content:"\f035"}.uk-icon-align-left:before{content:"\f036"}.uk-icon-align-center:before{content:"\f037"}.uk-icon-align-right:before{content:"\f038"}.uk-icon-align-justify:before{content:"\f039"}.uk-icon-list:before{content:"\f03a"}.uk-icon-dedent:before,.uk-icon-outdent:before{content:"\f03b"}.uk-icon-indent:before{content:"\f03c"}.uk-icon-video-camera:before{content:"\f03d"}.uk-icon-image:before,.uk-icon-photo:before,.uk-icon-picture-o:before{content:"\f03e"}.uk-icon-pencil:before{content:"\f040"}.uk-icon-map-marker:before{content:"\f041"}.uk-icon-adjust:before{content:"\f042"}.uk-icon-tint:before{content:"\f043"}.uk-icon-edit:before,.uk-icon-pencil-square-o:before{content:"\f044"}.uk-icon-share-square-o:before{content:"\f045"}.uk-icon-check-square-o:before{content:"\f046"}.uk-icon-arrows:before{content:"\f047"}.uk-icon-step-backward:before{content:"\f048"}.uk-icon-fast-backward:before{content:"\f049"}.uk-icon-backward:before{content:"\f04a"}.uk-icon-play:before{content:"\f04b"}.uk-icon-pause:before{content:"\f04c"}.uk-icon-stop:before{content:"\f04d"}.uk-icon-forward:before{content:"\f04e"}.uk-icon-fast-forward:before{content:"\f050"}.uk-icon-step-forward:before{content:"\f051"}.uk-icon-eject:before{content:"\f052"}.uk-icon-chevron-left:before{content:"\f053"}.uk-icon-chevron-right:before{content:"\f054"}.uk-icon-plus-circle:before{content:"\f055"}.uk-icon-minus-circle:before{content:"\f056"}.uk-icon-times-circle:before{content:"\f057"}.uk-icon-check-circle:before{content:"\f058"}.uk-icon-question-circle:before{content:"\f059"}.uk-icon-info-circle:before{content:"\f05a"}.uk-icon-crosshairs:before{content:"\f05b"}.uk-icon-times-circle-o:before{content:"\f05c"}.uk-icon-check-circle-o:before{content:"\f05d"}.uk-icon-ban:before{content:"\f05e"}.uk-icon-arrow-left:before{content:"\f060"}.uk-icon-arrow-right:before{content:"\f061"}.uk-icon-arrow-up:before{content:"\f062"}.uk-icon-arrow-down:before{content:"\f063"}.uk-icon-mail-forward:before,.uk-icon-share:before{content:"\f064"}.uk-icon-expand:before{content:"\f065"}.uk-icon-compress:before{content:"\f066"}.uk-icon-plus:before{content:"\f067"}.uk-icon-minus:before{content:"\f068"}.uk-icon-asterisk:before{content:"\f069"}.uk-icon-exclamation-circle:before{content:"\f06a"}.uk-icon-gift:before{content:"\f06b"}.uk-icon-leaf:before{content:"\f06c"}.uk-icon-fire:before{content:"\f06d"}.uk-icon-eye:before{content:"\f06e"}.uk-icon-eye-slash:before{content:"\f070"}.uk-icon-exclamation-triangle:before,.uk-icon-warning:before{content:"\f071"}.uk-icon-plane:before{content:"\f072"}.uk-icon-calendar:before{content:"\f073"}.uk-icon-random:before{content:"\f074"}.uk-icon-comment:before{content:"\f075"}.uk-icon-magnet:before{content:"\f076"}.uk-icon-chevron-up:before{content:"\f077"}.uk-icon-chevron-down:before{content:"\f078"}.uk-icon-retweet:before{content:"\f079"}.uk-icon-shopping-cart:before{content:"\f07a"}.uk-icon-folder:before{content:"\f07b"}.uk-icon-folder-open:before{content:"\f07c"}.uk-icon-arrows-v:before{content:"\f07d"}.uk-icon-arrows-h:before{content:"\f07e"}.uk-icon-bar-chart-o:before,.uk-icon-bar-chart:before{content:"\f080"}.uk-icon-twitter-square:before{content:"\f081"}.uk-icon-facebook-square:before{content:"\f082"}.uk-icon-camera-retro:before{content:"\f083"}.uk-icon-key:before{content:"\f084"}.uk-icon-cogs:before,.uk-icon-gears:before{content:"\f085"}.uk-icon-comments:before{content:"\f086"}.uk-icon-thumbs-o-up:before{content:"\f087"}.uk-icon-thumbs-o-down:before{content:"\f088"}.uk-icon-star-half:before{content:"\f089"}.uk-icon-heart-o:before{content:"\f08a"}.uk-icon-sign-out:before{content:"\f08b"}.uk-icon-linkedin-square:before{content:"\f08c"}.uk-icon-thumb-tack:before{content:"\f08d"}.uk-icon-external-link:before{content:"\f08e"}.uk-icon-sign-in:before{content:"\f090"}.uk-icon-trophy:before{content:"\f091"}.uk-icon-github-square:before{content:"\f092"}.uk-icon-upload:before{content:"\f093"}.uk-icon-lemon-o:before{content:"\f094"}.uk-icon-phone:before{content:"\f095"}.uk-icon-square-o:before{content:"\f096"}.uk-icon-bookmark-o:before{content:"\f097"}.uk-icon-phone-square:before{content:"\f098"}.uk-icon-twitter:before{content:"\f099"}.uk-icon-facebook-f:before,.uk-icon-facebook:before{content:"\f09a"}.uk-icon-github:before{content:"\f09b"}.uk-icon-unlock:before{content:"\f09c"}.uk-icon-credit-card:before{content:"\f09d"}.uk-icon-rss:before{content:"\f09e"}.uk-icon-hdd-o:before{content:"\f0a0"}.uk-icon-bullhorn:before{content:"\f0a1"}.uk-icon-bell:before{content:"\f0f3"}.uk-icon-certificate:before{content:"\f0a3"}.uk-icon-hand-o-right:before{content:"\f0a4"}.uk-icon-hand-o-left:before{content:"\f0a5"}.uk-icon-hand-o-up:before{content:"\f0a6"}.uk-icon-hand-o-down:before{content:"\f0a7"}.uk-icon-arrow-circle-left:before{content:"\f0a8"}.uk-icon-arrow-circle-right:before{content:"\f0a9"}.uk-icon-arrow-circle-up:before{content:"\f0aa"}.uk-icon-arrow-circle-down:before{content:"\f0ab"}.uk-icon-globe:before{content:"\f0ac"}.uk-icon-wrench:before{content:"\f0ad"}.uk-icon-tasks:before{content:"\f0ae"}.uk-icon-filter:before{content:"\f0b0"}.uk-icon-briefcase:before{content:"\f0b1"}.uk-icon-arrows-alt:before{content:"\f0b2"}.uk-icon-group:before,.uk-icon-users:before{content:"\f0c0"}.uk-icon-chain:before,.uk-icon-link:before{content:"\f0c1"}.uk-icon-cloud:before{content:"\f0c2"}.uk-icon-flask:before{content:"\f0c3"}.uk-icon-cut:before,.uk-icon-scissors:before{content:"\f0c4"}.uk-icon-copy:before,.uk-icon-files-o:before{content:"\f0c5"}.uk-icon-paperclip:before{content:"\f0c6"}.uk-icon-floppy-o:before,.uk-icon-save:before{content:"\f0c7"}.uk-icon-square:before{content:"\f0c8"}.uk-icon-bars:before,.uk-icon-navicon:before,.uk-icon-reorder:before{content:"\f0c9"}.uk-icon-list-ul:before{content:"\f0ca"}.uk-icon-list-ol:before{content:"\f0cb"}.uk-icon-strikethrough:before{content:"\f0cc"}.uk-icon-underline:before{content:"\f0cd"}.uk-icon-table:before{content:"\f0ce"}.uk-icon-magic:before{content:"\f0d0"}.uk-icon-truck:before{content:"\f0d1"}.uk-icon-pinterest:before{content:"\f0d2"}.uk-icon-pinterest-square:before{content:"\f0d3"}.uk-icon-google-plus-square:before{content:"\f0d4"}.uk-icon-google-plus:before{content:"\f0d5"}.uk-icon-money:before{content:"\f0d6"}.uk-icon-caret-down:before{content:"\f0d7"}.uk-icon-caret-up:before{content:"\f0d8"}.uk-icon-caret-left:before{content:"\f0d9"}.uk-icon-caret-right:before{content:"\f0da"}.uk-icon-columns:before{content:"\f0db"}.uk-icon-sort:before,.uk-icon-unsorted:before{content:"\f0dc"}.uk-icon-sort-desc:before,.uk-icon-sort-down:before{content:"\f0dd"}.uk-icon-sort-asc:before,.uk-icon-sort-up:before{content:"\f0de"}.uk-icon-envelope:before{content:"\f0e0"}.uk-icon-linkedin:before{content:"\f0e1"}.uk-icon-rotate-left:before,.uk-icon-undo:before{content:"\f0e2"}.uk-icon-gavel:before,.uk-icon-legal:before{content:"\f0e3"}.uk-icon-dashboard:before,.uk-icon-tachometer:before{content:"\f0e4"}.uk-icon-comment-o:before{content:"\f0e5"}.uk-icon-comments-o:before{content:"\f0e6"}.uk-icon-bolt:before,.uk-icon-flash:before{content:"\f0e7"}.uk-icon-sitemap:before{content:"\f0e8"}.uk-icon-umbrella:before{content:"\f0e9"}.uk-icon-clipboard:before,.uk-icon-paste:before{content:"\f0ea"}.uk-icon-lightbulb-o:before{content:"\f0eb"}.uk-icon-exchange:before{content:"\f0ec"}.uk-icon-cloud-download:before{content:"\f0ed"}.uk-icon-cloud-upload:before{content:"\f0ee"}.uk-icon-user-md:before{content:"\f0f0"}.uk-icon-stethoscope:before{content:"\f0f1"}.uk-icon-suitcase:before{content:"\f0f2"}.uk-icon-bell-o:before{content:"\f0a2"}.uk-icon-coffee:before{content:"\f0f4"}.uk-icon-cutlery:before{content:"\f0f5"}.uk-icon-file-text-o:before{content:"\f0f6"}.uk-icon-building-o:before{content:"\f0f7"}.uk-icon-hospital-o:before{content:"\f0f8"}.uk-icon-ambulance:before{content:"\f0f9"}.uk-icon-medkit:before{content:"\f0fa"}.uk-icon-fighter-jet:before{content:"\f0fb"}.uk-icon-beer:before{content:"\f0fc"}.uk-icon-h-square:before{content:"\f0fd"}.uk-icon-plus-square:before{content:"\f0fe"}.uk-icon-angle-double-left:before{content:"\f100"}.uk-icon-angle-double-right:before{content:"\f101"}.uk-icon-angle-double-up:before{content:"\f102"}.uk-icon-angle-double-down:before{content:"\f103"}.uk-icon-angle-left:before{content:"\f104"}.uk-icon-angle-right:before{content:"\f105"}.uk-icon-angle-up:before{content:"\f106"}.uk-icon-angle-down:before{content:"\f107"}.uk-icon-desktop:before{content:"\f108"}.uk-icon-laptop:before{content:"\f109"}.uk-icon-tablet:before{content:"\f10a"}.uk-icon-mobile-phone:before,.uk-icon-mobile:before{content:"\f10b"}.uk-icon-circle-o:before{content:"\f10c"}.uk-icon-quote-left:before{content:"\f10d"}.uk-icon-quote-right:before{content:"\f10e"}.uk-icon-spinner:before{content:"\f110"}.uk-icon-circle:before{content:"\f111"}.uk-icon-mail-reply:before,.uk-icon-reply:before{content:"\f112"}.uk-icon-github-alt:before{content:"\f113"}.uk-icon-folder-o:before{content:"\f114"}.uk-icon-folder-open-o:before{content:"\f115"}.uk-icon-smile-o:before{content:"\f118"}.uk-icon-frown-o:before{content:"\f119"}.uk-icon-meh-o:before{content:"\f11a"}.uk-icon-gamepad:before{content:"\f11b"}.uk-icon-keyboard-o:before{content:"\f11c"}.uk-icon-flag-o:before{content:"\f11d"}.uk-icon-flag-checkered:before{content:"\f11e"}.uk-icon-terminal:before{content:"\f120"}.uk-icon-code:before{content:"\f121"}.uk-icon-mail-reply-all:before,.uk-icon-reply-all:before{content:"\f122"}.uk-icon-star-half-empty:before,.uk-icon-star-half-full:before,.uk-icon-star-half-o:before{content:"\f123"}.uk-icon-location-arrow:before{content:"\f124"}.uk-icon-crop:before{content:"\f125"}.uk-icon-code-fork:before{content:"\f126"}.uk-icon-chain-broken:before,.uk-icon-unlink:before{content:"\f127"}.uk-icon-question:before{content:"\f128"}.uk-icon-info:before{content:"\f129"}.uk-icon-exclamation:before{content:"\f12a"}.uk-icon-superscript:before{content:"\f12b"}.uk-icon-subscript:before{content:"\f12c"}.uk-icon-eraser:before{content:"\f12d"}.uk-icon-puzzle-piece:before{content:"\f12e"}.uk-icon-microphone:before{content:"\f130"}.uk-icon-microphone-slash:before{content:"\f131"}.uk-icon-shield:before{content:"\f132"}.uk-icon-calendar-o:before{content:"\f133"}.uk-icon-fire-extinguisher:before{content:"\f134"}.uk-icon-rocket:before{content:"\f135"}.uk-icon-maxcdn:before{content:"\f136"}.uk-icon-chevron-circle-left:before{content:"\f137"}.uk-icon-chevron-circle-right:before{content:"\f138"}.uk-icon-chevron-circle-up:before{content:"\f139"}.uk-icon-chevron-circle-down:before{content:"\f13a"}.uk-icon-html5:before{content:"\f13b"}.uk-icon-css3:before{content:"\f13c"}.uk-icon-anchor:before{content:"\f13d"}.uk-icon-unlock-alt:before{content:"\f13e"}.uk-icon-bullseye:before{content:"\f140"}.uk-icon-ellipsis-h:before{content:"\f141"}.uk-icon-ellipsis-v:before{content:"\f142"}.uk-icon-rss-square:before{content:"\f143"}.uk-icon-play-circle:before{content:"\f144"}.uk-icon-ticket:before{content:"\f145"}.uk-icon-minus-square:before{content:"\f146"}.uk-icon-minus-square-o:before{content:"\f147"}.uk-icon-level-up:before{content:"\f148"}.uk-icon-level-down:before{content:"\f149"}.uk-icon-check-square:before{content:"\f14a"}.uk-icon-pencil-square:before{content:"\f14b"}.uk-icon-external-link-square:before{content:"\f14c"}.uk-icon-share-square:before{content:"\f14d"}.uk-icon-compass:before{content:"\f14e"}.uk-icon-caret-square-o-down:before,.uk-icon-toggle-down:before{content:"\f150"}.uk-icon-caret-square-o-up:before,.uk-icon-toggle-up:before{content:"\f151"}.uk-icon-caret-square-o-right:before,.uk-icon-toggle-right:before{content:"\f152"}.uk-icon-eur:before,.uk-icon-euro:before{content:"\f153"}.uk-icon-gbp:before{content:"\f154"}.uk-icon-dollar:before,.uk-icon-usd:before{content:"\f155"}.uk-icon-inr:before,.uk-icon-rupee:before{content:"\f156"}.uk-icon-cny:before,.uk-icon-jpy:before,.uk-icon-rmb:before,.uk-icon-yen:before{content:"\f157"}.uk-icon-rouble:before,.uk-icon-rub:before,.uk-icon-ruble:before{content:"\f158"}.uk-icon-krw:before,.uk-icon-won:before{content:"\f159"}.uk-icon-bitcoin:before,.uk-icon-btc:before{content:"\f15a"}.uk-icon-file:before{content:"\f15b"}.uk-icon-file-text:before{content:"\f15c"}.uk-icon-sort-alpha-asc:before{content:"\f15d"}.uk-icon-sort-alpha-desc:before{content:"\f15e"}.uk-icon-sort-amount-asc:before{content:"\f160"}.uk-icon-sort-amount-desc:before{content:"\f161"}.uk-icon-sort-numeric-asc:before{content:"\f162"}.uk-icon-sort-numeric-desc:before{content:"\f163"}.uk-icon-thumbs-up:before{content:"\f164"}.uk-icon-thumbs-down:before{content:"\f165"}.uk-icon-youtube-square:before{content:"\f166"}.uk-icon-youtube:before{content:"\f167"}.uk-icon-xing:before{content:"\f168"}.uk-icon-xing-square:before{content:"\f169"}.uk-icon-youtube-play:before{content:"\f16a"}.uk-icon-dropbox:before{content:"\f16b"}.uk-icon-stack-overflow:before{content:"\f16c"}.uk-icon-instagram:before{content:"\f16d"}.uk-icon-flickr:before{content:"\f16e"}.uk-icon-adn:before{content:"\f170"}.uk-icon-bitbucket:before{content:"\f171"}.uk-icon-bitbucket-square:before{content:"\f172"}.uk-icon-tumblr:before{content:"\f173"}.uk-icon-tumblr-square:before{content:"\f174"}.uk-icon-long-arrow-down:before{content:"\f175"}.uk-icon-long-arrow-up:before{content:"\f176"}.uk-icon-long-arrow-left:before{content:"\f177"}.uk-icon-long-arrow-right:before{content:"\f178"}.uk-icon-apple:before{content:"\f179"}.uk-icon-windows:before{content:"\f17a"}.uk-icon-android:before{content:"\f17b"}.uk-icon-linux:before{content:"\f17c"}.uk-icon-dribbble:before{content:"\f17d"}.uk-icon-skype:before{content:"\f17e"}.uk-icon-foursquare:before{content:"\f180"}.uk-icon-trello:before{content:"\f181"}.uk-icon-female:before{content:"\f182"}.uk-icon-male:before{content:"\f183"}.uk-icon-gittip:before,.uk-icon-gratipay:before{content:"\f184"}.uk-icon-sun-o:before{content:"\f185"}.uk-icon-moon-o:before{content:"\f186"}.uk-icon-archive:before{content:"\f187"}.uk-icon-bug:before{content:"\f188"}.uk-icon-vk:before{content:"\f189"}.uk-icon-weibo:before{content:"\f18a"}.uk-icon-renren:before{content:"\f18b"}.uk-icon-pagelines:before{content:"\f18c"}.uk-icon-stack-exchange:before{content:"\f18d"}.uk-icon-arrow-circle-o-right:before{content:"\f18e"}.uk-icon-arrow-circle-o-left:before{content:"\f190"}.uk-icon-caret-square-o-left:before,.uk-icon-toggle-left:before{content:"\f191"}.uk-icon-dot-circle-o:before{content:"\f192"}.uk-icon-wheelchair:before{content:"\f193"}.uk-icon-vimeo-square:before{content:"\f194"}.uk-icon-try:before,.uk-icon-turkish-lira:before{content:"\f195"}.uk-icon-plus-square-o:before{content:"\f196"}.uk-icon-space-shuttle:before{content:"\f197"}.uk-icon-slack:before{content:"\f198"}.uk-icon-envelope-square:before{content:"\f199"}.uk-icon-wordpress:before{content:"\f19a"}.uk-icon-openid:before{content:"\f19b"}.uk-icon-bank:before,.uk-icon-institution:before,.uk-icon-university:before{content:"\f19c"}.uk-icon-graduation-cap:before,.uk-icon-mortar-board:before{content:"\f19d"}.uk-icon-yahoo:before{content:"\f19e"}.uk-icon-google:before{content:"\f1a0"}.uk-icon-reddit:before{content:"\f1a1"}.uk-icon-reddit-square:before{content:"\f1a2"}.uk-icon-stumbleupon-circle:before{content:"\f1a3"}.uk-icon-stumbleupon:before{content:"\f1a4"}.uk-icon-delicious:before{content:"\f1a5"}.uk-icon-digg:before{content:"\f1a6"}.uk-icon-pied-piper:before{content:"\f1a7"}.uk-icon-pied-piper-alt:before{content:"\f1a8"}.uk-icon-drupal:before{content:"\f1a9"}.uk-icon-joomla:before{content:"\f1aa"}.uk-icon-language:before{content:"\f1ab"}.uk-icon-fax:before{content:"\f1ac"}.uk-icon-building:before{content:"\f1ad"}.uk-icon-child:before{content:"\f1ae"}.uk-icon-paw:before{content:"\f1b0"}.uk-icon-spoon:before{content:"\f1b1"}.uk-icon-cube:before{content:"\f1b2"}.uk-icon-cubes:before{content:"\f1b3"}.uk-icon-behance:before{content:"\f1b4"}.uk-icon-behance-square:before{content:"\f1b5"}.uk-icon-steam:before{content:"\f1b6"}.uk-icon-steam-square:before{content:"\f1b7"}.uk-icon-recycle:before{content:"\f1b8"}.uk-icon-automobile:before,.uk-icon-car:before{content:"\f1b9"}.uk-icon-cab:before,.uk-icon-taxi:before{content:"\f1ba"}.uk-icon-tree:before{content:"\f1bb"}.uk-icon-spotify:before{content:"\f1bc"}.uk-icon-deviantart:before{content:"\f1bd"}.uk-icon-soundcloud:before{content:"\f1be"}.uk-icon-database:before{content:"\f1c0"}.uk-icon-file-pdf-o:before{content:"\f1c1"}.uk-icon-file-word-o:before{content:"\f1c2"}.uk-icon-file-excel-o:before{content:"\f1c3"}.uk-icon-file-powerpoint-o:before{content:"\f1c4"}.uk-icon-file-image-o:before,.uk-icon-file-photo-o:before,.uk-icon-file-picture-o:before{content:"\f1c5"}.uk-icon-file-archive-o:before,.uk-icon-file-zip-o:before{content:"\f1c6"}.uk-icon-file-audio-o:before,.uk-icon-file-sound-o:before{content:"\f1c7"}.uk-icon-file-movie-o:before,.uk-icon-file-video-o:before{content:"\f1c8"}.uk-icon-file-code-o:before{content:"\f1c9"}.uk-icon-vine:before{content:"\f1ca"}.uk-icon-codepen:before{content:"\f1cb"}.uk-icon-jsfiddle:before{content:"\f1cc"}.uk-icon-life-bouy:before,.uk-icon-life-buoy:before,.uk-icon-life-ring:before,.uk-icon-life-saver:before,.uk-icon-support:before{content:"\f1cd"}.uk-icon-circle-o-notch:before{content:"\f1ce"}.uk-icon-ra:before,.uk-icon-rebel:before{content:"\f1d0"}.uk-icon-empire:before,.uk-icon-ge:before{content:"\f1d1"}.uk-icon-git-square:before{content:"\f1d2"}.uk-icon-git:before{content:"\f1d3"}.uk-icon-hacker-news:before{content:"\f1d4"}.uk-icon-tencent-weibo:before{content:"\f1d5"}.uk-icon-qq:before{content:"\f1d6"}.uk-icon-wechat:before,.uk-icon-weixin:before{content:"\f1d7"}.uk-icon-paper-plane:before,.uk-icon-send:before{content:"\f1d8"}.uk-icon-paper-plane-o:before,.uk-icon-send-o:before{content:"\f1d9"}.uk-icon-history:before{content:"\f1da"}.uk-icon-circle-thin:before,.uk-icon-genderless:before{content:"\f1db"}.uk-icon-header:before{content:"\f1dc"}.uk-icon-paragraph:before{content:"\f1dd"}.uk-icon-sliders:before{content:"\f1de"}.uk-icon-share-alt:before{content:"\f1e0"}.uk-icon-share-alt-square:before{content:"\f1e1"}.uk-icon-bomb:before{content:"\f1e2"}.uk-icon-futbol-o:before,.uk-icon-soccer-ball-o:before{content:"\f1e3"}.uk-icon-tty:before{content:"\f1e4"}.uk-icon-binoculars:before{content:"\f1e5"}.uk-icon-plug:before{content:"\f1e6"}.uk-icon-slideshare:before{content:"\f1e7"}.uk-icon-twitch:before{content:"\f1e8"}.uk-icon-yelp:before{content:"\f1e9"}.uk-icon-newspaper-o:before{content:"\f1ea"}.uk-icon-wifi:before{content:"\f1eb"}.uk-icon-calculator:before{content:"\f1ec"}.uk-icon-paypal:before{content:"\f1ed"}.uk-icon-google-wallet:before{content:"\f1ee"}.uk-icon-cc-visa:before{content:"\f1f0"}.uk-icon-cc-mastercard:before{content:"\f1f1"}.uk-icon-cc-discover:before{content:"\f1f2"}.uk-icon-cc-amex:before{content:"\f1f3"}.uk-icon-cc-paypal:before{content:"\f1f4"}.uk-icon-cc-stripe:before{content:"\f1f5"}.uk-icon-bell-slash:before{content:"\f1f6"}.uk-icon-bell-slash-o:before{content:"\f1f7"}.uk-icon-trash:before{content:"\f1f8"}.uk-icon-copyright:before{content:"\f1f9"}.uk-icon-at:before{content:"\f1fa"}.uk-icon-eyedropper:before{content:"\f1fb"}.uk-icon-paint-brush:before{content:"\f1fc"}.uk-icon-birthday-cake:before{content:"\f1fd"}.uk-icon-area-chart:before{content:"\f1fe"}.uk-icon-pie-chart:before{content:"\f200"}.uk-icon-line-chart:before{content:"\f201"}.uk-icon-lastfm:before{content:"\f202"}.uk-icon-lastfm-square:before{content:"\f203"}.uk-icon-toggle-off:before{content:"\f204"}.uk-icon-toggle-on:before{content:"\f205"}.uk-icon-bicycle:before{content:"\f206"}.uk-icon-bus:before{content:"\f207"}.uk-icon-ioxhost:before{content:"\f208"}.uk-icon-angellist:before{content:"\f209"}.uk-icon-cc:before{content:"\f20a"}.uk-icon-ils:before,.uk-icon-shekel:before,.uk-icon-sheqel:before{content:"\f20b"}.uk-icon-meanpath:before{content:"\f20c"}.uk-icon-buysellads:before{content:"\f20d"}.uk-icon-connectdevelop:before{content:"\f20e"}.uk-icon-dashcube:before{content:"\f210"}.uk-icon-forumbee:before{content:"\f211"}.uk-icon-leanpub:before{content:"\f212"}.uk-icon-sellsy:before{content:"\f213"}.uk-icon-shirtsinbulk:before{content:"\f214"}.uk-icon-simplybuilt:before{content:"\f215"}.uk-icon-skyatlas:before{content:"\f216"}.uk-icon-cart-plus:before{content:"\f217"}.uk-icon-cart-arrow-down:before{content:"\f218"}.uk-icon-diamond:before{content:"\f219"}.uk-icon-ship:before{content:"\f21a"}.uk-icon-user-secret:before{content:"\f21b"}.uk-icon-motorcycle:before{content:"\f21c"}.uk-icon-street-view:before{content:"\f21d"}.uk-icon-heartbeat:before{content:"\f21e"}.uk-icon-venus:before{content:"\f221"}.uk-icon-mars:before{content:"\f222"}.uk-icon-mercury:before{content:"\f223"}.uk-icon-transgender:before{content:"\f224"}.uk-icon-transgender-alt:before{content:"\f225"}.uk-icon-venus-double:before{content:"\f226"}.uk-icon-mars-double:before{content:"\f227"}.uk-icon-venus-mars:before{content:"\f228"}.uk-icon-mars-stroke:before{content:"\f229"}.uk-icon-mars-stroke-v:before{content:"\f22a"}.uk-icon-mars-stroke-h:before{content:"\f22b"}.uk-icon-neuter:before{content:"\f22c"}.uk-icon-facebook-official:before{content:"\f230"}.uk-icon-pinterest-p:before{content:"\f231"}.uk-icon-whatsapp:before{content:"\f232"}.uk-icon-server:before{content:"\f233"}.uk-icon-user-plus:before{content:"\f234"}.uk-icon-user-times:before{content:"\f235"}.uk-icon-bed:before,.uk-icon-hotel:before{content:"\f236"}.uk-icon-viacoin:before{content:"\f237"}.uk-icon-train:before{content:"\f238"}.uk-icon-subway:before{content:"\f239"}.uk-icon-medium-logo:before{content:"\f23a"}.uk-close::-moz-focus-inner{border:0;padding:0}.uk-close{-webkit-appearance:none;margin:0;border:none;overflow:visible;font:inherit;color:inherit;text-transform:none;padding:0;background:0 0;display:inline-block;-moz-box-sizing:content-box;box-sizing:content-box;width:20px;line-height:20px;text-align:center;vertical-align:middle;opacity:.3}.uk-close:after{display:block;content:"\f00d";font-family:FontAwesome}.uk-close:focus,.uk-close:hover{opacity:.5;outline:0;color:inherit;text-decoration:none;cursor:pointer}.uk-close-alt{padding:2px;border-radius:50%;background:#fff;opacity:1;box-shadow:0 0 0 1px rgba(0,0,0,.1),0 0 6px rgba(0,0,0,.3)}.uk-close-alt:focus,.uk-close-alt:hover{opacity:1}.uk-close-alt:after{opacity:.5}.uk-close-alt:focus:after,.uk-close-alt:hover:after{opacity:.8}.uk-badge{display:inline-block;padding:0 5px;background:#009dd8;font-size:10px;font-weight:700;line-height:14px;color:#fff;text-align:center;vertical-align:middle;text-transform:none;border:1px solid rgba(0,0,0,.2);border-bottom-color:rgba(0,0,0,.3);background-origin:border-box;background-image:-webkit-linear-gradient(top,#00b4f5,#008dc5);background-image:linear-gradient(to bottom,#00b4f5,#008dc5);border-radius:2px;text-shadow:0 -1px 0 rgba(0,0,0,.2)}a.uk-badge:hover{color:#fff}.uk-badge-notification{-moz-box-sizing:border-box;box-sizing:border-box;min-width:18px;border-radius:500px;font-size:12px;line-height:18px}.uk-badge-success{background-color:#82bb42;background-image:-webkit-linear-gradient(top,#9fd256,#6fac34);background-image:linear-gradient(to bottom,#9fd256,#6fac34)}.uk-badge-warning{background-color:#f9a124;background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406)}.uk-badge-danger{background-color:#d32c46;background-image:-webkit-linear-gradient(top,#ee465a,#c11a39);background-image:linear-gradient(to bottom,#ee465a,#c11a39)}.uk-alert{margin-bottom:15px;padding:10px;background:#ebf7fd;color:#2d7091;border:1px solid rgba(45,112,145,.3);border-radius:4px;text-shadow:0 1px 0 #fff}*+.uk-alert{margin-top:15px}.uk-alert>:last-child{margin-bottom:0}.uk-alert h1,.uk-alert h2,.uk-alert h3,.uk-alert h4,.uk-alert h5,.uk-alert h6{color:inherit}.uk-alert>.uk-close:first-child{float:right}.uk-alert>.uk-close:first-child+*{margin-top:0}.uk-alert-success{background:#f2fae3;color:#659f13;border-color:rgba(101,159,19,.3)}.uk-alert-warning{background:#fffceb;color:#e28327;border-color:rgba(226,131,39,.3)}.uk-alert-danger{background:#fff1f0;color:#d85030;border-color:rgba(216,80,48,.3)}.uk-alert-large{padding:20px}.uk-alert-large>.uk-close:first-child{margin:-10px -10px 0 0}.uk-thumbnail{display:inline-block;max-width:100%;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:4px;border:1px solid #ddd;background:#fff;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.05)}a.uk-thumbnail:focus,a.uk-thumbnail:hover{border-color:#aaa;background-color:#fff;text-decoration:none;outline:0;box-shadow:0 1px 4px rgba(0,0,0,.3)}.uk-thumbnail-caption{padding-top:4px;text-align:center;color:#444}.uk-thumbnail-mini{width:150px}.uk-thumbnail-small{width:200px}.uk-thumbnail-medium{width:300px}.uk-thumbnail-large{width:400px}.uk-thumbnail-expand,.uk-thumbnail-expand>img{width:100%}.uk-overlay{display:inline-block;position:relative;max-width:100%;vertical-align:middle;overflow:hidden;-webkit-transform:translateZ(0);margin:0}.uk-overlay.uk-border-circle{-webkit-mask-image:-webkit-radial-gradient(circle,#fff 100%,#000 100%)}.uk-overlay>:first-child{margin-bottom:0}.uk-overlay-panel{position:absolute;top:0;bottom:0;left:0;right:0;padding:20px;color:#fff}.uk-overlay-panel.uk-flex>*>:last-child,.uk-overlay-panel>:last-child{margin-bottom:0}.uk-overlay-panel h1,.uk-overlay-panel h2,.uk-overlay-panel h3,.uk-overlay-panel h4,.uk-overlay-panel h5,.uk-overlay-panel h6{color:inherit}.uk-overlay-panel a:not([class]){color:inherit;text-decoration:underline}.uk-overlay-panel a[class*=uk-icon-]:not(.uk-icon-button){color:inherit}.uk-overlay-hover:not(:hover):not(.uk-hover) .uk-overlay-panel:not(.uk-ignore){opacity:0}.uk-overlay-active :not(.uk-active)>.uk-overlay-panel:not(.uk-ignore){opacity:0}.uk-overlay-background{background:rgba(0,0,0,.5)}.uk-overlay-image{padding:0}.uk-overlay-top{bottom:auto}.uk-overlay-bottom{top:auto}.uk-overlay-left{right:auto}.uk-overlay-right{left:auto}.uk-overlay-icon:before{content:"\f002";position:absolute;top:50%;left:50%;width:50px;height:50px;margin-top:-25px;margin-left:-25px;font-size:50px;line-height:1;font-family:FontAwesome;text-align:center;color:#fff}.uk-overlay-blur,.uk-overlay-fade,.uk-overlay-grayscale,.uk-overlay-scale,.uk-overlay-spin,[class*=uk-overlay-slide]{transition-duration:.3s;transition-timing-function:ease-out;transition-property:opacity transform filter}.uk-overlay-active .uk-overlay-fade,.uk-overlay-active .uk-overlay-scale,.uk-overlay-active .uk-overlay-spin,.uk-overlay-active [class*=uk-overlay-slide]{transition-duration:.8s}.uk-overlay-fade{opacity:.7}.uk-overlay-active .uk-active>.uk-overlay-fade,.uk-overlay-hover:hover .uk-overlay-fade{opacity:1}.uk-overlay-scale{-webkit-transform:scale(1);transform:scale(1)}.uk-overlay-active .uk-active>.uk-overlay-scale,.uk-overlay-hover:hover .uk-overlay-scale{-webkit-transform:scale(1.1);transform:scale(1.1)}.uk-overlay-spin{-webkit-transform:scale(1)rotate(0);transform:scale(1)rotate(0)}.uk-overlay-active .uk-active>.uk-overlay-spin,.uk-overlay-hover:hover .uk-overlay-spin{-webkit-transform:scale(1.1)rotate(3deg);transform:scale(1.1)rotate(3deg)}.uk-overlay-grayscale{-webkit-filter:grayscale(100%);filter:grayscale(100%)}.uk-overlay-active .uk-active>.uk-overlay-grayscale,.uk-overlay-hover:hover .uk-overlay-grayscale{-webkit-filter:grayscale(0);filter:grayscale(0)}[class*=uk-overlay-slide]{opacity:0}.uk-overlay-slide-top{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.uk-overlay-slide-bottom{-webkit-transform:translateY(100%);transform:translateY(100%)}.uk-overlay-slide-left{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.uk-overlay-slide-right{-webkit-transform:translateX(100%);transform:translateX(100%)}.uk-overlay-active .uk-active>[class*=uk-overlay-slide],.uk-overlay-hover:hover [class*=uk-overlay-slide]{opacity:1;-webkit-transform:translateX(0)translateY(0);transform:translateX(0)translateY(0)}.uk-overlay-area{position:absolute;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,.3);opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear;-webkit-transform:translate3d(0,0,0)}.uk-overlay-toggle.uk-hover .uk-overlay-area,.uk-overlay-toggle:hover .uk-overlay-area,.uk-overlay.uk-hover .uk-overlay-area,.uk-overlay:hover .uk-overlay-area{opacity:1}.uk-overlay-area:empty:before{content:"\f002";position:absolute;top:50%;left:50%;width:50px;height:50px;margin-top:-25px;margin-left:-25px;font-size:50px;line-height:1;font-family:FontAwesome;text-align:center;color:#fff}.uk-overlay-area:not(:empty){font-size:0}.uk-overlay-area:not(:empty):before{content:'';display:inline-block;height:100%;vertical-align:middle}.uk-overlay-area-content{display:inline-block;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;vertical-align:middle;font-size:1rem;text-align:center;padding:0 15px;color:#fff}.uk-overlay-area-content>:last-child{margin-bottom:0}.uk-overlay-area-content a:not([class]),.uk-overlay-area-content a:not([class]):hover{color:inherit}.uk-overlay-caption{position:absolute;bottom:0;left:0;right:0;padding:15px;background:rgba(0,0,0,.5);color:#fff;opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear;-webkit-transform:translate3d(0,0,0)}.uk-overlay-toggle.uk-hover .uk-overlay-caption,.uk-overlay-toggle:hover .uk-overlay-caption,.uk-overlay.uk-hover .uk-overlay-caption,.uk-overlay:hover .uk-overlay-caption{opacity:1}[class*=uk-animation-]{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}@media screen{[data-uk-scrollspy*=uk-animation-]:not([data-uk-scrollspy*=target]){opacity:0}}.uk-animation-fade{-webkit-animation-name:uk-fade;animation-name:uk-fade;-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-timing-function:linear!important;animation-timing-function:linear!important}.uk-animation-scale-up{-webkit-animation-name:uk-fade-scale-02;animation-name:uk-fade-scale-02}.uk-animation-scale-down{-webkit-animation-name:uk-fade-scale-18;animation-name:uk-fade-scale-18}.uk-animation-slide-top{-webkit-animation-name:uk-fade-top;animation-name:uk-fade-top}.uk-animation-slide-bottom{-webkit-animation-name:uk-fade-bottom;animation-name:uk-fade-bottom}.uk-animation-slide-left{-webkit-animation-name:uk-fade-left;animation-name:uk-fade-left}.uk-animation-slide-right{-webkit-animation-name:uk-fade-right;animation-name:uk-fade-right}.uk-animation-scale{-webkit-animation-name:uk-scale-12;animation-name:uk-scale-12}.uk-animation-shake{-webkit-animation-name:uk-shake;animation-name:uk-shake}.uk-animation-reverse{-webkit-animation-direction:reverse;animation-direction:reverse;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}.uk-animation-15{-webkit-animation-duration:15s;animation-duration:15s}.uk-animation-top-left{-webkit-transform-origin:0 0;transform-origin:0 0}.uk-animation-top-center{-webkit-transform-origin:50% 0;transform-origin:50% 0}.uk-animation-top-right{-webkit-transform-origin:100% 0;transform-origin:100% 0}.uk-animation-middle-left{-webkit-transform-origin:0 50%;transform-origin:0 50%}.uk-animation-middle-right{-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.uk-animation-bottom-left{-webkit-transform-origin:0 100%;transform-origin:0 100%}.uk-animation-bottom-center{-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.uk-animation-bottom-right{-webkit-transform-origin:100% 100%;transform-origin:100% 100%}.uk-animation-hover:not(:hover),.uk-animation-hover:not(:hover) [class*=uk-animation-],.uk-touch .uk-animation-hover:not(.uk-hover),.uk-touch .uk-animation-hover:not(.uk-hover) [class*=uk-animation-]{-webkit-animation-name:none;animation-name:none}@-webkit-keyframes uk-fade{0%{opacity:0}100%{opacity:1}}@keyframes uk-fade{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes uk-fade-top{0%{opacity:0;-webkit-transform:translateY(-100%)}100%{opacity:1;-webkit-transform:translateY(0)}}@keyframes uk-fade-top{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@-webkit-keyframes uk-fade-bottom{0%{opacity:0;-webkit-transform:translateY(100%)}100%{opacity:1;-webkit-transform:translateY(0)}}@keyframes uk-fade-bottom{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@-webkit-keyframes uk-fade-left{0%{opacity:0;-webkit-transform:translateX(-100%)}100%{opacity:1;-webkit-transform:translateX(0)}}@keyframes uk-fade-left{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@-webkit-keyframes uk-fade-right{0%{opacity:0;-webkit-transform:translateX(100%)}100%{opacity:1;-webkit-transform:translateX(0)}}@keyframes uk-fade-right{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@-webkit-keyframes uk-fade-scale-02{0%{opacity:0;-webkit-transform:scale(.2)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes uk-fade-scale-02{0%{opacity:0;transform:scale(.2)}100%{opacity:1;transform:scale(1)}}@-webkit-keyframes uk-fade-scale-15{0%{opacity:0;-webkit-transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes uk-fade-scale-15{0%{opacity:0;transform:scale(1.5)}100%{opacity:1;transform:scale(1)}}@-webkit-keyframes uk-fade-scale-18{0%{opacity:0;-webkit-transform:scale(1.8)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes uk-fade-scale-18{0%{opacity:0;transform:scale(1.8)}100%{opacity:1;transform:scale(1)}}@-webkit-keyframes uk-slide-left{0%{-webkit-transform:translateX(-100%)}100%{-webkit-transform:translateX(0)}}@keyframes uk-slide-left{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@-webkit-keyframes uk-slide-right{0%{-webkit-transform:translateX(100%)}100%{-webkit-transform:translateX(0)}}@keyframes uk-slide-right{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@-webkit-keyframes uk-slide-left-33{0%{-webkit-transform:translateX(33%)}100%{-webkit-transform:translateX(0)}}@keyframes uk-slide-left-33{0%{transform:translateX(33%)}100%{transform:translateX(0)}}@-webkit-keyframes uk-slide-right-33{0%{-webkit-transform:translateX(-33%)}100%{-webkit-transform:translateX(0)}}@keyframes uk-slide-right-33{0%{transform:translateX(-33%)}100%{transform:translateX(0)}}@-webkit-keyframes uk-scale-12{0%{-webkit-transform:scale(1.2)}100%{-webkit-transform:scale(1)}}@keyframes uk-scale-12{0%{transform:scale(1.2)}100%{transform:scale(1)}}@-webkit-keyframes uk-rotate{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(359deg)}}@keyframes uk-rotate{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}@-webkit-keyframes uk-shake{0%,100%{-webkit-transform:translateX(0)}10%{-webkit-transform:translateX(-9px)}20%{-webkit-transform:translateX(8px)}30%{-webkit-transform:translateX(-7px)}40%{-webkit-transform:translateX(6px)}50%{-webkit-transform:translateX(-5px)}60%{-webkit-transform:translateX(4px)}70%{-webkit-transform:translateX(-3px)}80%{-webkit-transform:translateX(2px)}90%{-webkit-transform:translateX(-1px)}}@keyframes uk-shake{0%,100%{transform:translateX(0)}10%{transform:translateX(-9px)}20%{transform:translateX(8px)}30%{transform:translateX(-7px)}40%{transform:translateX(6px)}50%{transform:translateX(-5px)}60%{transform:translateX(4px)}70%{transform:translateX(-3px)}80%{transform:translateX(2px)}90%{transform:translateX(-1px)}}@-webkit-keyframes uk-slide-top-fixed{0%{opacity:0;-webkit-transform:translateY(-10px)}100%{opacity:1;-webkit-transform:translateY(0)}}@keyframes uk-slide-top-fixed{0%{opacity:0;transform:translateY(-10px)}100%{opacity:1;transform:translateY(0)}}@-webkit-keyframes uk-slide-bottom-fixed{0%{opacity:0;-webkit-transform:translateY(10px)}100%{opacity:1;-webkit-transform:translateY(0)}}@keyframes uk-slide-bottom-fixed{0%{opacity:0;transform:translateY(10px)}100%{opacity:1;transform:translateY(0)}}.uk-dropdown{display:none;position:absolute;top:100%;left:0;z-index:1020;-moz-box-sizing:border-box;box-sizing:border-box;width:200px;margin-top:5px;padding:15px;background:#fff;color:#444;font-size:1rem;vertical-align:top;border:1px solid #cbcbcb;border-radius:4px;box-shadow:0 2px 5px rgba(0,0,0,.1)}.uk-open>.uk-dropdown{display:block;-webkit-animation:uk-fade .2s ease-in-out;animation:uk-fade .2s ease-in-out;-webkit-transform-origin:0 0;transform-origin:0 0}.uk-dropdown-flip{left:auto;right:0}.uk-dropdown-up{top:auto;bottom:100%;margin-top:auto;margin-bottom:5px}.uk-dropdown .uk-nav{margin:0 -15px}.uk-grid .uk-dropdown-grid+.uk-dropdown-grid{margin-top:15px}.uk-dropdown-grid>[class*=uk-width-]>.uk-panel+.uk-panel{margin-top:15px}@media (min-width:768px){.uk-dropdown:not(.uk-dropdown-stack)>.uk-dropdown-grid{margin-left:-15px;margin-right:-15px}.uk-dropdown:not(.uk-dropdown-stack)>.uk-dropdown-grid>[class*=uk-width-]{padding-left:15px;padding-right:15px}.uk-dropdown:not(.uk-dropdown-stack)>.uk-dropdown-grid>[class*=uk-width-]:nth-child(n+2){border-left:1px solid #ddd}.uk-dropdown-width-2:not(.uk-dropdown-stack){width:400px}.uk-dropdown-width-3:not(.uk-dropdown-stack){width:600px}.uk-dropdown-width-4:not(.uk-dropdown-stack){width:800px}.uk-dropdown-width-5:not(.uk-dropdown-stack){width:1000px}}@media (max-width:767px){.uk-dropdown-grid>[class*=uk-width-]{width:100%}.uk-dropdown-grid>[class*=uk-width-]:nth-child(n+2){margin-top:15px}}.uk-dropdown-stack>.uk-dropdown-grid>[class*=uk-width-]{width:100%}.uk-dropdown-stack>.uk-dropdown-grid>[class*=uk-width-]:nth-child(n+2){margin-top:15px}.uk-dropdown-small{min-width:150px;width:auto;padding:5px;white-space:nowrap}.uk-dropdown-small .uk-nav{margin:0 -5px}.uk-dropdown-navbar{margin-top:6px;background:#fff;color:#444;left:-1px;box-shadow:0 2px 5px rgba(0,0,0,.1)}.uk-open>.uk-dropdown-navbar{-webkit-animation:uk-slide-top-fixed .2s ease-in-out;animation:uk-slide-top-fixed .2s ease-in-out}.uk-dropdown-scrollable{overflow-y:auto;max-height:200px}.uk-dropdown-navbar.uk-dropdown-flip{left:auto}.uk-modal{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1010;overflow-y:auto;-webkit-overflow-scrolling:touch;background:rgba(0,0,0,.6);opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear;touch-action:cross-slide-y pinch-zoom double-tap-zoom;-webkit-transform:translateZ(0);transform:translateZ(0)}.uk-modal.uk-open{opacity:1}.uk-modal-page,.uk-modal-page body{overflow:hidden}.uk-modal-dialog{position:relative;-moz-box-sizing:border-box;box-sizing:border-box;margin:50px auto;padding:20px;width:600px;max-width:100%;max-width:calc(100% - 20px);background:#fff;opacity:0;-webkit-transform:translateY(-100px);transform:translateY(-100px);-webkit-transition:opacity .3s linear,-webkit-transform .3s ease-out;transition:opacity .3s linear,transform .3s ease-out;border-radius:4px;box-shadow:0 0 10px rgba(0,0,0,.3)}@media (max-width:767px){.uk-modal-dialog{width:auto;margin:10px auto}}.uk-open .uk-modal-dialog{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}.uk-modal-dialog>:not([class*=uk-modal-]):last-child{margin-bottom:0}.uk-modal-dialog>.uk-close:first-child{margin:-10px -10px 0 0;float:right}.uk-modal-dialog>.uk-close:first-child+:not([class*=uk-modal-]){margin-top:0}.uk-modal-dialog-lightbox{margin:15px auto;padding:0;max-width:95%;max-width:calc(100% - 30px);border-radius:0}.uk-modal-dialog-lightbox>.uk-close:first-child{position:absolute;top:-12px;right:-12px;margin:0;float:none}@media (max-width:767px){.uk-modal-dialog-lightbox>.uk-close:first-child{top:-7px;right:-7px}}@media (min-width:768px){.uk-modal-dialog-large{width:930px}}@media (min-width:1220px){.uk-modal-dialog-large{width:1130px}}.uk-modal-header{margin-bottom:15px;margin:-20px -20px 15px -20px;padding:20px;border-bottom:1px solid #ddd;border-radius:4px 4px 0 0;background:#fafafa}.uk-modal-footer{margin-top:15px;margin:15px -20px -20px -20px;padding:20px;border-top:1px solid #ddd;border-radius:0 0 4px 4px;background:#fafafa}.uk-modal-footer>:last-child,.uk-modal-header>:last-child{margin-bottom:0}.uk-modal-caption{position:absolute;left:0;right:0;bottom:-20px;margin-bottom:-10px;color:#fff;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uk-modal-spinner{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);font-size:25px;color:#ddd}.uk-modal-spinner:after{content:"\f110";font-family:FontAwesome;-webkit-animation:uk-rotate 2s infinite linear;animation:uk-rotate 2s infinite linear}.uk-offcanvas{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;touch-action:none;background:rgba(0,0,0,.1)}.uk-offcanvas.uk-active{display:block}.uk-offcanvas-page{position:fixed;-webkit-transition:margin-left .3s ease-in-out;transition:margin-left .3s ease-in-out}.uk-offcanvas-bar{position:fixed;top:0;bottom:0;left:0;-webkit-transform:translateX(-100%);transform:translateX(-100%);z-index:1001;width:270px;max-width:100%;background:#333;overflow-y:auto;-webkit-overflow-scrolling:touch;-webkit-transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;-ms-scroll-chaining:none}.uk-offcanvas.uk-active .uk-offcanvas-bar.uk-offcanvas-bar-show{-webkit-transform:translateX(0);transform:translateX(0)}.uk-offcanvas-bar-flip{left:auto;right:0;-webkit-transform:translateX(100%);transform:translateX(100%)}.uk-offcanvas .uk-panel{margin:20px 15px;color:#777;text-shadow:0 1px 0 rgba(0,0,0,.5)}.uk-offcanvas .uk-panel-title{color:#ccc}.uk-offcanvas .uk-panel a:not([class]){color:#ccc}.uk-offcanvas .uk-panel a:not([class]):hover{color:#fff}.uk-offcanvas-bar:after{content:"";display:block;position:absolute;top:0;bottom:0;right:0;width:1px;background:rgba(0,0,0,.6);box-shadow:0 0 5px 2px rgba(0,0,0,.6)}.uk-offcanvas-bar-flip:after{right:auto;left:0;width:1px;background:rgba(0,0,0,.6);box-shadow:0 0 5px 2px rgba(0,0,0,.6)}.uk-switcher{margin:0;padding:0;list-style:none;touch-action:cross-slide-y pinch-zoom double-tap-zoom}.uk-switcher>:not(.uk-active){display:none}.uk-text-small{font-size:11px;line-height:16px}.uk-text-large{font-size:18px;line-height:24px;font-weight:400}.uk-text-bold{font-weight:700}.uk-text-muted{color:#999!important}.uk-text-primary{color:#2d7091!important}.uk-text-success{color:#659f13!important}.uk-text-warning{color:#e28327!important}.uk-text-danger{color:#d85030!important}.uk-text-contrast{color:#fff!important}.uk-text-left{text-align:left!important}.uk-text-right{text-align:right!important}.uk-text-center{text-align:center!important}.uk-text-justify{text-align:justify!important}.uk-text-top{vertical-align:top!important}.uk-text-middle{vertical-align:middle!important}.uk-text-bottom{vertical-align:bottom!important}@media (max-width:959px){.uk-text-center-medium{text-align:center!important}.uk-text-left-medium{text-align:left!important}}@media (max-width:767px){.uk-text-center-small{text-align:center!important}.uk-text-left-small{text-align:left!important}}.uk-text-nowrap{white-space:nowrap}.uk-text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uk-text-break{word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;-moz-hyphens:auto;hyphens:auto}.uk-container{-moz-box-sizing:border-box;box-sizing:border-box;max-width:980px;padding:0 25px}@media (min-width:1220px){.uk-container{max-width:1200px;padding:0 35px}}.uk-container:after,.uk-container:before{content:"";display:table}.uk-container:after{clear:both}.uk-container-center{margin-left:auto;margin-right:auto}.uk-clearfix:before{content:"";display:table-cell}.uk-clearfix:after{content:"";display:table;clear:both}.uk-nbfc{overflow:hidden}.uk-nbfc-alt{display:table-cell;width:10000px}.uk-float-left{float:left}.uk-float-right{float:right}[class*=uk-float-]{max-width:100%}[class*=uk-align-]{display:block;margin-bottom:15px}.uk-align-left{margin-right:15px;float:left}.uk-align-right{margin-left:15px;float:right}@media (min-width:768px){.uk-align-medium-left{margin-right:15px;margin-bottom:15px;float:left}.uk-align-medium-right{margin-left:15px;margin-bottom:15px;float:right}}.uk-align-center{margin-left:auto;margin-right:auto}.uk-vertical-align{font-size:0}.uk-vertical-align:before{content:'';display:inline-block;height:100%;vertical-align:middle}.uk-vertical-align-bottom,.uk-vertical-align-middle{display:inline-block;max-width:100%;font-size:1rem}.uk-vertical-align-middle{vertical-align:middle}.uk-vertical-align-bottom{vertical-align:bottom}[class*=uk-height]{-moz-box-sizing:border-box;box-sizing:border-box}.uk-height-1-1{height:100%}.uk-height-viewport{height:100vh;min-height:600px}.uk-responsive-height,.uk-responsive-width{-moz-box-sizing:border-box;box-sizing:border-box}.uk-responsive-width{max-width:100%!important;height:auto}.uk-responsive-height{max-height:100%;width:auto}.uk-margin{margin-bottom:15px}*+.uk-margin{margin-top:15px}.uk-margin-top{margin-top:15px!important}.uk-margin-bottom{margin-bottom:15px!important}.uk-margin-left{margin-left:15px!important}.uk-margin-right{margin-right:15px!important}.uk-margin-large{margin-bottom:50px}*+.uk-margin-large{margin-top:50px}.uk-margin-large-top{margin-top:50px!important}.uk-margin-large-bottom{margin-bottom:50px!important}.uk-margin-large-left{margin-left:50px!important}.uk-margin-large-right{margin-right:50px!important}.uk-margin-small{margin-bottom:5px}*+.uk-margin-small{margin-top:5px}.uk-margin-small-top{margin-top:5px!important}.uk-margin-small-bottom{margin-bottom:5px!important}.uk-margin-small-left{margin-left:5px!important}.uk-margin-small-right{margin-right:5px!important}.uk-margin-remove{margin:0!important}.uk-margin-top-remove{margin-top:0!important}.uk-margin-bottom-remove{margin-bottom:0!important}.uk-padding-remove{padding:0!important}.uk-padding-top-remove{padding-top:0!important}.uk-padding-bottom-remove{padding-bottom:0!important}.uk-padding-vertical-remove{padding-top:0!important;padding-bottom:0!important}.uk-border-circle{border-radius:50%}.uk-border-rounded{border-radius:5px}.uk-heading-large{font-size:36px;line-height:42px}@media (min-width:768px){.uk-heading-large{font-size:52px;line-height:64px}}.uk-link-muted,.uk-link-muted a{color:#444}.uk-link-muted a:hover,.uk-link-muted:hover{color:#444}.uk-link-reset,.uk-link-reset a,.uk-link-reset a:focus,.uk-link-reset a:hover,.uk-link-reset:focus,.uk-link-reset:hover{color:inherit;text-decoration:none}.uk-scrollable-text{height:300px;overflow-y:scroll;-webkit-overflow-scrolling:touch;resize:both}.uk-scrollable-box{-moz-box-sizing:border-box;box-sizing:border-box;height:170px;padding:10px;border:1px solid #ddd;overflow:auto;-webkit-overflow-scrolling:touch;resize:both;border-radius:3px}.uk-scrollable-box>:last-child{margin-bottom:0}.uk-overflow-hidden{overflow:hidden}.uk-overflow-container{overflow:auto;-webkit-overflow-scrolling:touch}.uk-overflow-container>:last-child{margin-bottom:0}.uk-position-absolute,[class*=uk-position-top],[class*=uk-position-bottom]{position:absolute!important}.uk-position-top{top:0;width:100%}.uk-position-bottom{bottom:0;width:100%}.uk-position-top-left{top:0;left:0}.uk-position-top-right{top:0;right:0}.uk-position-bottom-left{bottom:0;left:0}.uk-position-bottom-right{bottom:0;right:0}.uk-position-cover{position:absolute;top:0;bottom:0;left:0;right:0}.uk-position-relative{position:relative!important}.uk-position-z-index{z-index:1}.uk-display-block{display:block!important}.uk-display-inline{display:inline!important}.uk-display-inline-block{display:inline-block!important}@media (min-width:960px){.uk-visible-small{display:none!important}.uk-visible-medium{display:none!important}.uk-hidden-large{display:none!important}}@media (min-width:768px)and (max-width:959px){.uk-visible-small{display:none!important}.uk-visible-large{display:none!important}.uk-hidden-medium{display:none!important}}@media (max-width:767px){.uk-visible-medium{display:none!important}.uk-visible-large{display:none!important}.uk-hidden-small{display:none!important}}.uk-hidden{display:none!important;visibility:hidden!important}.uk-invisible{visibility:hidden!important}.uk-visible-hover:hover .uk-hidden,.uk-visible-hover:hover .uk-invisible{display:block!important;visibility:visible!important}.uk-visible-hover-inline:hover .uk-hidden,.uk-visible-hover-inline:hover .uk-invisible{display:inline-block!important;visibility:visible!important}.uk-notouch .uk-hidden-notouch,.uk-touch .uk-hidden-touch{display:none!important}.uk-flex{display:-ms-flexbox;display:-webkit-flex;display:flex}.uk-flex-inline{display:-ms-inline-flexbox;display:-webkit-inline-flex;display:inline-flex}.uk-flex-inline>*,.uk-flex>*{-ms-flex-negative:1}.uk-flex-top{-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start}.uk-flex-middle{-ms-flex-align:center;-webkit-align-items:center;align-items:center}.uk-flex-bottom{-ms-flex-align:end;-webkit-align-items:flex-end;align-items:flex-end}.uk-flex-center{-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}.uk-flex-right{-ms-flex-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.uk-flex-space-between{-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.uk-flex-space-around{-ms-flex-pack:distribute;-webkit-justify-content:space-around;justify-content:space-around}.uk-flex-row-reverse{-ms-flex-direction:row-reverse;-webkit-flex-direction:row-reverse;flex-direction:row-reverse}.uk-flex-column{-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.uk-flex-column-reverse{-ms-flex-direction:column-reverse;-webkit-flex-direction:column-reverse;flex-direction:column-reverse}.uk-flex-nowrap{-ms-flex-wrap:nowrap;-webkit-flex-wrap:nowrap;flex-wrap:nowrap}.uk-flex-wrap{-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap}.uk-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;-webkit-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.uk-flex-wrap-top{-ms-flex-line-pack:start;-webkit-align-content:flex-start;align-content:flex-start}.uk-flex-wrap-middle{-ms-flex-line-pack:center;-webkit-align-content:center;align-content:center}.uk-flex-wrap-bottom{-ms-flex-line-pack:end;-webkit-align-content:flex-end;align-content:flex-end}.uk-flex-wrap-space-between{-ms-flex-line-pack:justify;-webkit-align-content:space-between;align-content:space-between}.uk-flex-wrap-space-around{-ms-flex-line-pack:distribute;-webkit-align-content:space-around;align-content:space-around}.uk-flex-order-first{-ms-flex-order:-1;-webkit-order:-1;order:-1}.uk-flex-order-last{-ms-flex-order:99;-webkit-order:99;order:99}@media (min-width:480px){.uk-flex-order-first-small{-ms-flex-order:-1;-webkit-order:-1;order:-1}.uk-flex-order-last-small{-ms-flex-order:99;-webkit-order:99;order:99}}@media (min-width:768px){.uk-flex-order-first-medium{-ms-flex-order:-1;-webkit-order:-1;order:-1}.uk-flex-order-last-medium{-ms-flex-order:99;-webkit-order:99;order:99}}@media (min-width:960px){.uk-flex-order-first-large{-ms-flex-order:-1;-webkit-order:-1;order:-1}.uk-flex-order-last-large{-ms-flex-order:99;-webkit-order:99;order:99}}@media (min-width:1220px){.uk-flex-order-first-xlarge{-ms-flex-order:-1;-webkit-order:-1;order:-1}.uk-flex-order-last-xlarge{-ms-flex-order:99;-webkit-order:99;order:99}}.uk-flex-item-none{-ms-flex:none;-webkit-flex:none;flex:none}.uk-flex-item-auto{-ms-flex:auto;-webkit-flex:auto;flex:auto;-ms-flex-negative:1}.uk-flex-item-1{-ms-flex:1;-webkit-flex:1;flex:1}.uk-contrast{color:#fff}.uk-contrast .uk-link,.uk-contrast a:not([class]){color:rgba(255,255,255,.7);text-decoration:none}.uk-contrast .uk-link:hover,.uk-contrast a:not([class]):hover{color:#fff;text-decoration:underline}.uk-contrast :not(pre)>code,.uk-contrast :not(pre)>kbd,.uk-contrast :not(pre)>samp{color:#fff;border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.1)}.uk-contrast em{color:#fff}.uk-contrast h1,.uk-contrast h2,.uk-contrast h3,.uk-contrast h4,.uk-contrast h5,.uk-contrast h6{color:#fff}.uk-contrast hr{border-top-color:rgba(255,255,255,.2)}.uk-contrast .uk-nav li>a,.uk-contrast .uk-nav li>a:hover{text-decoration:none}.uk-contrast .uk-nav-side>li>a{color:#fff}.uk-contrast .uk-nav-side>li>a:focus,.uk-contrast .uk-nav-side>li>a:hover{background:rgba(255,255,255,.1);color:#fff;text-shadow:none}.uk-contrast .uk-nav-side>li.uk-active>a{background:#fff;color:#444;text-shadow:none}.uk-contrast .uk-nav-side .uk-nav-header{color:#fff}.uk-contrast .uk-nav-side .uk-nav-divider{border-top-color:rgba(255,255,255,.2)}.uk-contrast .uk-nav-side ul a{color:rgba(255,255,255,.7)}.uk-contrast .uk-nav-side ul a:hover{color:#fff}.uk-contrast .uk-subnav>*>a{color:rgba(255,255,255,.7);text-decoration:none}.uk-contrast .uk-subnav>*>a:focus,.uk-contrast .uk-subnav>*>a:hover{color:#fff;text-decoration:none}.uk-contrast .uk-subnav>.uk-active>a{color:#fff}.uk-contrast .uk-subnav-line>:nth-child(n+2):before{border-left-color:rgba(255,255,255,.2)}.uk-contrast .uk-subnav-pill>*>a:focus,.uk-contrast .uk-subnav-pill>*>a:hover{background:rgba(255,255,255,.7);color:#444;text-decoration:none}.uk-contrast .uk-subnav-pill>.uk-active>a{background:#fff;color:#444}.uk-contrast .uk-list-line>li:nth-child(n+2){border-top-color:rgba(255,255,255,.2)}.uk-contrast .uk-form input:not([type]),.uk-contrast .uk-form input[type=text],.uk-contrast .uk-form input[type=password],.uk-contrast .uk-form input[type=email],.uk-contrast .uk-form input[type=url],.uk-contrast .uk-form input[type=search],.uk-contrast .uk-form input[type=tel],.uk-contrast .uk-form input[type=number],.uk-contrast .uk-form input[type=datetime],.uk-contrast .uk-form input[type=datetime-local],.uk-contrast .uk-form input[type=date],.uk-contrast .uk-form input[type=month],.uk-contrast .uk-form input[type=time],.uk-contrast .uk-form input[type=week],.uk-contrast .uk-form input[type=color],.uk-contrast .uk-form select,.uk-contrast .uk-form textarea{border-color:rgba(255,255,255,.8);background:rgba(255,255,255,.8);color:#444;background-clip:padding-box}.uk-contrast .uk-form input:not([type]):focus,.uk-contrast .uk-form input[type=text]:focus,.uk-contrast .uk-form input[type=password]:focus,.uk-contrast .uk-form input[type=email]:focus,.uk-contrast .uk-form input[type=url]:focus,.uk-contrast .uk-form input[type=search]:focus,.uk-contrast .uk-form input[type=tel]:focus,.uk-contrast .uk-form input[type=number]:focus,.uk-contrast .uk-form input[type=datetime]:focus,.uk-contrast .uk-form input[type=datetime-local]:focus,.uk-contrast .uk-form input[type=date]:focus,.uk-contrast .uk-form input[type=month]:focus,.uk-contrast .uk-form input[type=time]:focus,.uk-contrast .uk-form input[type=week]:focus,.uk-contrast .uk-form input[type=color]:focus,.uk-contrast .uk-form select:focus,.uk-contrast .uk-form textarea:focus{border-color:#fff;background:#fff;color:#444}.uk-contrast .uk-form :-ms-input-placeholder{color:rgba(68,68,68,.7)!important}.uk-contrast .uk-form ::-moz-placeholder{color:rgba(68,68,68,.7)}.uk-contrast .uk-form ::-webkit-input-placeholder{color:rgba(68,68,68,.7)}.uk-contrast .uk-button{color:#444;background:#fff;border-color:transparent}.uk-contrast .uk-button:focus,.uk-contrast .uk-button:hover{background-color:rgba(255,255,255,.8);color:#444;border-color:transparent}.uk-contrast .uk-button.uk-active,.uk-contrast .uk-button:active{background-color:rgba(255,255,255,.7);color:#444;box-shadow:none}.uk-contrast .uk-button-primary{background-color:#009dd8;color:#fff}.uk-contrast .uk-button-primary:focus,.uk-contrast .uk-button-primary:hover{background-color:#00aff2;color:#fff}.uk-contrast .uk-button-primary.uk-active,.uk-contrast .uk-button-primary:active{background-color:#008abf;color:#fff}.uk-contrast .uk-icon-hover{color:rgba(255,255,255,.7)}.uk-contrast .uk-icon-hover:hover{color:#fff}.uk-contrast .uk-icon-button{background:#fff;color:#444;border-color:transparent}.uk-contrast .uk-icon-button:focus,.uk-contrast .uk-icon-button:hover{background-color:rgba(255,255,255,.8);color:#444;border-color:transparent}.uk-contrast .uk-icon-button:active{background-color:rgba(255,255,255,.7);color:#444;box-shadow:none}.uk-contrast .uk-text-muted{color:rgba(255,255,255,.6)!important}.uk-contrast .uk-text-primary{color:#2d7091!important}@media print{*{background:0 0!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}} \ No newline at end of file diff --git a/media/uikit/css/uikit.min.css b/media/uikit/css/uikit.min.css new file mode 100644 index 00000000..f6ef1f63 --- /dev/null +++ b/media/uikit/css/uikit.min.css @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +html{font:400 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;background:#fff;color:#444}body{margin:0}a{background:0 0}a:active,a:hover{outline:0}.uk-link,a{color:#07d;text-decoration:none;cursor:pointer}.uk-link:hover,a:hover{color:#059;text-decoration:underline}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}:not(pre)>code,:not(pre)>kbd,:not(pre)>samp{font-size:12px;font-family:Consolas,monospace,serif;color:#d05;white-space:nowrap}em{color:#d05}ins{background:#ffa;color:#444;text-decoration:none}mark{background:#ffa;color:#444}q{font-style:italic}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{max-width:100%;height:auto;-moz-box-sizing:border-box;box-sizing:border-box;border:0;vertical-align:middle}.uk-img-preserve,.uk-img-preserve img{max-width:none}svg:not(:root){overflow:hidden}blockquote,figure{margin:0}address,blockquote,dl,fieldset,figure,ol,p,pre,ul{margin:0 0 15px 0}*+address,*+blockquote,*+dl,*+fieldset,*+figure,*+ol,*+p,*+pre,*+ul{margin-top:15px}h1,h2,h3,h4,h5,h6{margin:0 0 15px 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;color:#444;text-transform:none}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:25px}.uk-h1,h1{font-size:36px;line-height:42px}.uk-h2,h2{font-size:24px;line-height:30px}.uk-h3,h3{font-size:18px;line-height:24px}.uk-h4,h4{font-size:16px;line-height:22px}.uk-h5,h5{font-size:14px;line-height:20px}.uk-h6,h6{font-size:12px;line-height:18px}ol,ul{padding-left:30px}ol>li>ol,ol>li>ul,ul>li>ol,ul>li>ul{margin:0}dt{font-weight:700}dd{margin-left:0}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;margin:15px 0;border:0;border-top:1px solid #ddd}address{font-style:normal}blockquote{padding-left:15px;border-left:5px solid #ddd;font-size:16px;line-height:22px;font-style:italic}pre{padding:10px;background:#f5f5f5;font:12px/18px Consolas,monospace,serif;color:#444;-moz-tab-size:4;tab-size:4;overflow:auto}::-moz-selection{background:#39f;color:#fff;text-shadow:none}::selection{background:#39f;color:#fff;text-shadow:none}article,aside,details,figcaption,figure,footer,header,main,nav,section,summary{display:block}progress{vertical-align:baseline}audio:not([controls]){display:none}[hidden],template{display:none}iframe{border:0}@media screen and (max-width:400px){@-ms-viewport{width:device-width}}.uk-grid{display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin:0;padding:0;list-style:none}.uk-grid:after,.uk-grid:before{content:"";display:block;overflow:hidden}.uk-grid:after{clear:both}.uk-grid>*{-ms-flex:none;-webkit-flex:none;flex:none;margin:0;float:left}.uk-grid>*>:last-child{margin-bottom:0}.uk-grid{margin-left:-25px}.uk-grid>*{padding-left:25px}.uk-grid+.uk-grid,.uk-grid-margin,.uk-grid>*>.uk-panel+.uk-panel{margin-top:25px}@media (min-width:1220px){.uk-grid{margin-left:-35px}.uk-grid>*{padding-left:35px}.uk-grid+.uk-grid,.uk-grid-margin,.uk-grid>*>.uk-panel+.uk-panel{margin-top:35px}}.uk-grid-collapse{margin-left:0}.uk-grid-collapse>*{padding-left:0}.uk-grid-collapse+.uk-grid-collapse,.uk-grid-collapse>*>.uk-panel+.uk-panel,.uk-grid-collapse>.uk-grid-margin{margin-top:0}.uk-grid-small{margin-left:-10px}.uk-grid-small>*{padding-left:10px}.uk-grid-small+.uk-grid-small,.uk-grid-small>*>.uk-panel+.uk-panel,.uk-grid-small>.uk-grid-margin{margin-top:10px}.uk-grid-medium{margin-left:-25px}.uk-grid-medium>*{padding-left:25px}.uk-grid-medium+.uk-grid-medium,.uk-grid-medium>*>.uk-panel+.uk-panel,.uk-grid-medium>.uk-grid-margin{margin-top:25px}.uk-grid-divider:not(:empty){margin-left:-25px;margin-right:-25px}.uk-grid-divider>*{padding-left:25px;padding-right:25px}.uk-grid-divider>[class*=uk-width-9-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-1-]:not(.uk-width-1-1):nth-child(n+2),.uk-grid-divider>[class*=uk-width-2-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-3-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-4-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-5-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-6-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-7-]:nth-child(n+2),.uk-grid-divider>[class*=uk-width-8-]:nth-child(n+2){border-left:1px solid #ddd}@media (min-width:768px){.uk-grid-divider>[class*=uk-width-medium-]:not(.uk-width-medium-1-1):nth-child(n+2){border-left:1px solid #ddd}}@media (min-width:960px){.uk-grid-divider>[class*=uk-width-large-]:not(.uk-width-large-1-1):nth-child(n+2){border-left:1px solid #ddd}}@media (min-width:1220px){.uk-grid-divider:not(:empty){margin-left:-35px;margin-right:-35px}.uk-grid-divider>*{padding-left:35px;padding-right:35px}.uk-grid-divider:empty{margin-top:35px;margin-bottom:35px}}.uk-grid-divider:empty{margin-top:25px;margin-bottom:25px;border-top:1px solid #ddd}.uk-grid-match>*{display:-ms-flexbox;display:-webkit-flex;display:flex}.uk-grid-match>*>*{-ms-flex:none;-webkit-flex:none;flex:none;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;-moz-box-sizing:border-box;box-sizing:border-box;width:100%}[class*=uk-grid-width]>*{-moz-box-sizing:border-box;box-sizing:border-box;width:100%}.uk-grid-width-1-2>*{width:50%}.uk-grid-width-1-3>*{width:33.333%}.uk-grid-width-1-4>*{width:25%}.uk-grid-width-1-5>*{width:20%}.uk-grid-width-1-6>*{width:16.666%}.uk-grid-width-1-10>*{width:10%}@media (min-width:480px){.uk-grid-width-small-1-2>*{width:50%}.uk-grid-width-small-1-3>*{width:33.333%}.uk-grid-width-small-1-4>*{width:25%}.uk-grid-width-small-1-5>*{width:20%}.uk-grid-width-small-1-6>*{width:16.666%}.uk-grid-width-small-1-10>*{width:10%}}@media (min-width:768px){.uk-grid-width-medium-1-2>*{width:50%}.uk-grid-width-medium-1-3>*{width:33.333%}.uk-grid-width-medium-1-4>*{width:25%}.uk-grid-width-medium-1-5>*{width:20%}.uk-grid-width-medium-1-6>*{width:16.666%}.uk-grid-width-medium-1-10>*{width:10%}}@media (min-width:960px){.uk-grid-width-large-1-2>*{width:50%}.uk-grid-width-large-1-3>*{width:33.333%}.uk-grid-width-large-1-4>*{width:25%}.uk-grid-width-large-1-5>*{width:20%}.uk-grid-width-large-1-6>*{width:16.666%}.uk-grid-width-large-1-10>*{width:10%}}@media (min-width:1220px){.uk-grid-width-xlarge-1-2>*{width:50%}.uk-grid-width-xlarge-1-3>*{width:33.333%}.uk-grid-width-xlarge-1-4>*{width:25%}.uk-grid-width-xlarge-1-5>*{width:20%}.uk-grid-width-xlarge-1-6>*{width:16.666%}.uk-grid-width-xlarge-1-10>*{width:10%}}[class*=uk-width]{-moz-box-sizing:border-box;box-sizing:border-box;width:100%}.uk-width-1-1{width:100%}.uk-width-1-2,.uk-width-2-4,.uk-width-3-6,.uk-width-5-10{width:50%}.uk-width-1-3,.uk-width-2-6{width:33.333%}.uk-width-2-3,.uk-width-4-6{width:66.666%}.uk-width-1-4{width:25%}.uk-width-3-4{width:75%}.uk-width-1-5,.uk-width-2-10{width:20%}.uk-width-2-5,.uk-width-4-10{width:40%}.uk-width-3-5,.uk-width-6-10{width:60%}.uk-width-4-5,.uk-width-8-10{width:80%}.uk-width-1-6{width:16.666%}.uk-width-5-6{width:83.333%}.uk-width-1-10{width:10%}.uk-width-3-10{width:30%}.uk-width-7-10{width:70%}.uk-width-9-10{width:90%}@media (min-width:480px){.uk-width-small-1-1{width:100%}.uk-width-small-1-2,.uk-width-small-2-4,.uk-width-small-3-6,.uk-width-small-5-10{width:50%}.uk-width-small-1-3,.uk-width-small-2-6{width:33.333%}.uk-width-small-2-3,.uk-width-small-4-6{width:66.666%}.uk-width-small-1-4{width:25%}.uk-width-small-3-4{width:75%}.uk-width-small-1-5,.uk-width-small-2-10{width:20%}.uk-width-small-2-5,.uk-width-small-4-10{width:40%}.uk-width-small-3-5,.uk-width-small-6-10{width:60%}.uk-width-small-4-5,.uk-width-small-8-10{width:80%}.uk-width-small-1-6{width:16.666%}.uk-width-small-5-6{width:83.333%}.uk-width-small-1-10{width:10%}.uk-width-small-3-10{width:30%}.uk-width-small-7-10{width:70%}.uk-width-small-9-10{width:90%}}@media (min-width:768px){.uk-width-medium-1-1{width:100%}.uk-width-medium-1-2,.uk-width-medium-2-4,.uk-width-medium-3-6,.uk-width-medium-5-10{width:50%}.uk-width-medium-1-3,.uk-width-medium-2-6{width:33.333%}.uk-width-medium-2-3,.uk-width-medium-4-6{width:66.666%}.uk-width-medium-1-4{width:25%}.uk-width-medium-3-4{width:75%}.uk-width-medium-1-5,.uk-width-medium-2-10{width:20%}.uk-width-medium-2-5,.uk-width-medium-4-10{width:40%}.uk-width-medium-3-5,.uk-width-medium-6-10{width:60%}.uk-width-medium-4-5,.uk-width-medium-8-10{width:80%}.uk-width-medium-1-6{width:16.666%}.uk-width-medium-5-6{width:83.333%}.uk-width-medium-1-10{width:10%}.uk-width-medium-3-10{width:30%}.uk-width-medium-7-10{width:70%}.uk-width-medium-9-10{width:90%}}@media (min-width:960px){.uk-width-large-1-1{width:100%}.uk-width-large-1-2,.uk-width-large-2-4,.uk-width-large-3-6,.uk-width-large-5-10{width:50%}.uk-width-large-1-3,.uk-width-large-2-6{width:33.333%}.uk-width-large-2-3,.uk-width-large-4-6{width:66.666%}.uk-width-large-1-4{width:25%}.uk-width-large-3-4{width:75%}.uk-width-large-1-5,.uk-width-large-2-10{width:20%}.uk-width-large-2-5,.uk-width-large-4-10{width:40%}.uk-width-large-3-5,.uk-width-large-6-10{width:60%}.uk-width-large-4-5,.uk-width-large-8-10{width:80%}.uk-width-large-1-6{width:16.666%}.uk-width-large-5-6{width:83.333%}.uk-width-large-1-10{width:10%}.uk-width-large-3-10{width:30%}.uk-width-large-7-10{width:70%}.uk-width-large-9-10{width:90%}}@media (min-width:768px){[class*=uk-push-],[class*=uk-pull-]{position:relative}.uk-push-1-2,.uk-push-2-4,.uk-push-3-6,.uk-push-5-10{left:50%}.uk-push-1-3,.uk-push-2-6{left:33.333%}.uk-push-2-3,.uk-push-4-6{left:66.666%}.uk-push-1-4{left:25%}.uk-push-3-4{left:75%}.uk-push-1-5,.uk-push-2-10{left:20%}.uk-push-2-5,.uk-push-4-10{left:40%}.uk-push-3-5,.uk-push-6-10{left:60%}.uk-push-4-5,.uk-push-8-10{left:80%}.uk-push-1-6{left:16.666%}.uk-push-5-6{left:83.333%}.uk-push-1-10{left:10%}.uk-push-3-10{left:30%}.uk-push-7-10{left:70%}.uk-push-9-10{left:90%}.uk-pull-1-2,.uk-pull-2-4,.uk-pull-3-6,.uk-pull-5-10{left:-50%}.uk-pull-1-3,.uk-pull-2-6{left:-33.333%}.uk-pull-2-3,.uk-pull-4-6{left:-66.666%}.uk-pull-1-4{left:-25%}.uk-pull-3-4{left:-75%}.uk-pull-1-5,.uk-pull-2-10{left:-20%}.uk-pull-2-5,.uk-pull-4-10{left:-40%}.uk-pull-3-5,.uk-pull-6-10{left:-60%}.uk-pull-4-5,.uk-pull-8-10{left:-80%}.uk-pull-1-6{left:-16.666%}.uk-pull-5-6{left:-83.333%}.uk-pull-1-10{left:-10%}.uk-pull-3-10{left:-30%}.uk-pull-7-10{left:-70%}.uk-pull-9-10{left:-90%}}.uk-panel{display:block;position:relative}.uk-panel,.uk-panel:hover{text-decoration:none}.uk-panel:after,.uk-panel:before{content:"";display:table}.uk-panel:after{clear:both}.uk-panel>:not(.uk-panel-title):last-child{margin-bottom:0}.uk-panel-title{margin-top:0;margin-bottom:15px;font-size:18px;line-height:24px;font-weight:400;text-transform:none;color:#444}.uk-panel-badge{position:absolute;top:0;right:0;z-index:1}.uk-panel-teaser{margin-bottom:15px}.uk-panel-box{padding:15px;background:#f5f5f5;color:#444}.uk-panel-box-hover:hover{color:#444}.uk-panel-box .uk-panel-title{color:#444}.uk-panel-box .uk-panel-badge{top:10px;right:10px}.uk-panel-box .uk-panel-teaser{margin-top:-15px;margin-left:-15px;margin-right:-15px}.uk-panel-box>.uk-nav-side{margin:0 -15px}.uk-panel-box-primary{background-color:#ebf7fd;color:#2d7091}.uk-panel-box-primary-hover:hover{color:#2d7091}.uk-panel-box-primary .uk-panel-title{color:#2d7091}.uk-panel-box-secondary{background-color:#eee;color:#444}.uk-panel-box-secondary-hover:hover{color:#444}.uk-panel-box-secondary .uk-panel-title{color:#444}.uk-panel-hover{padding:15px;color:#444}.uk-panel-hover:hover{background:#f5f5f5;color:#444}.uk-panel-hover .uk-panel-badge{top:10px;right:10px}.uk-panel-hover .uk-panel-teaser{margin-top:-15px;margin-left:-15px;margin-right:-15px}.uk-panel-header .uk-panel-title{padding-bottom:10px;border-bottom:1px solid #ddd;color:#444}.uk-panel-space{padding:30px}.uk-panel-space .uk-panel-badge{top:30px;right:30px}.uk-panel+.uk-panel-divider{margin-top:50px!important}.uk-panel+.uk-panel-divider:before{content:"";display:block;position:absolute;top:-25px;left:0;right:0;border-top:1px solid #ddd}@media (min-width:1220px){.uk-panel+.uk-panel-divider{margin-top:70px!important}.uk-panel+.uk-panel-divider:before{top:-35px}}.uk-block{position:relative;-moz-box-sizing:border-box;box-sizing:border-box;padding-top:20px;padding-bottom:20px}@media (min-width:768px){.uk-block{padding-top:50px;padding-bottom:50px}}.uk-block:after,.uk-block:before{content:"";display:table}.uk-block:after{clear:both}.uk-block>:last-child{margin-bottom:0}.uk-block-large{padding-top:20px;padding-bottom:20px}@media (min-width:768px){.uk-block-large{padding-top:50px;padding-bottom:50px}}@media (min-width:960px){.uk-block-large{padding-top:100px;padding-bottom:100px}}.uk-block-default{background:#fff}.uk-block-muted{background:#f9f9f9}.uk-block-primary{background:#00a8e6}.uk-block-secondary{background:#222}.uk-block-default+.uk-block-default,.uk-block-muted+.uk-block-muted,.uk-block-primary+.uk-block-primary,.uk-block-secondary+.uk-block-secondary{padding-top:0}.uk-article:after,.uk-article:before{content:"";display:table}.uk-article:after{clear:both}.uk-article>:last-child{margin-bottom:0}.uk-article+.uk-article{margin-top:25px}.uk-article-title{font-size:36px;line-height:42px;font-weight:400;text-transform:none}.uk-article-title a{color:inherit;text-decoration:none}.uk-article-meta{font-size:12px;line-height:18px;color:#999}.uk-article-lead{color:#444;font-size:18px;line-height:24px;font-weight:400}.uk-article-divider{margin-bottom:25px;border-color:#ddd}*+.uk-article-divider{margin-top:25px}.uk-comment-header{margin-bottom:15px}.uk-comment-header:after,.uk-comment-header:before{content:"";display:table}.uk-comment-header:after{clear:both}.uk-comment-avatar{margin-right:15px;float:left}.uk-comment-title{margin:5px 0 0 0;font-size:16px;line-height:22px}.uk-comment-meta{margin:2px 0 0 0;font-size:11px;line-height:16px;color:#999}.uk-comment-body>:last-child{margin-bottom:0}.uk-comment-list{padding:0;list-style:none}.uk-comment-list .uk-comment+ul{margin:15px 0 0 0;list-style:none}.uk-comment-list .uk-comment+ul>li:nth-child(n+2),.uk-comment-list>li:nth-child(n+2){margin-top:15px}@media (min-width:768px){.uk-comment-list .uk-comment+ul{padding-left:100px}}.uk-cover-background{background-position:50% 50%;background-size:cover;background-repeat:no-repeat}.uk-cover{overflow:hidden}.uk-cover-object{width:auto;height:auto;min-width:100%;min-height:100%;max-width:none;position:relative;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}[data-uk-cover]{position:relative;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.uk-nav,.uk-nav ul{margin:0;padding:0;list-style:none}.uk-nav li>a{display:block;text-decoration:none}.uk-nav>li>a{padding:5px 15px}.uk-nav ul{padding-left:15px}.uk-nav ul a{padding:2px 0}.uk-nav li>a>div{font-size:12px;line-height:18px}.uk-nav-header{padding:5px 15px;text-transform:uppercase;font-weight:700;font-size:12px}.uk-nav-header:not(:first-child){margin-top:15px}.uk-nav-divider{margin:9px 15px}ul.uk-nav-sub{padding:5px 0 5px 15px}.uk-nav-parent-icon>.uk-parent>a:after{content:"\f104";width:20px;margin-right:-10px;float:right;font-family:FontAwesome;text-align:center}.uk-nav-parent-icon>.uk-parent.uk-open>a:after{content:"\f107"}.uk-nav-side>li>a{color:#444}.uk-nav-side>li>a:focus,.uk-nav-side>li>a:hover{background:rgba(0,0,0,.05);color:#444;outline:0}.uk-nav-side>li.uk-active>a{background:#00a8e6;color:#fff}.uk-nav-side .uk-nav-header{color:#444}.uk-nav-side .uk-nav-divider{border-top:1px solid #ddd}.uk-nav-side ul a{color:#07d}.uk-nav-side ul a:hover{color:#059}.uk-nav-dropdown>li>a{color:#444}.uk-nav-dropdown>li>a:focus,.uk-nav-dropdown>li>a:hover{background:#00a8e6;color:#fff;outline:0}.uk-nav-dropdown .uk-nav-header{color:#999}.uk-nav-dropdown .uk-nav-divider{border-top:1px solid #ddd}.uk-nav-dropdown ul a{color:#07d}.uk-nav-dropdown ul a:hover{color:#059}.uk-nav-navbar>li>a{color:#444}.uk-nav-navbar>li>a:focus,.uk-nav-navbar>li>a:hover{background:#00a8e6;color:#fff;outline:0}.uk-nav-navbar .uk-nav-header{color:#999}.uk-nav-navbar .uk-nav-divider{border-top:1px solid #ddd}.uk-nav-navbar ul a{color:#07d}.uk-nav-navbar ul a:hover{color:#059}.uk-nav-offcanvas>li>a{color:#ccc;padding:10px 15px}.uk-nav-offcanvas>.uk-open>a,html:not(.uk-touch) .uk-nav-offcanvas>li>a:focus,html:not(.uk-touch) .uk-nav-offcanvas>li>a:hover{background:#404040;color:#fff;outline:0}html .uk-nav.uk-nav-offcanvas>li.uk-active>a{background:#1a1a1a;color:#fff}.uk-nav-offcanvas .uk-nav-header{color:#777}.uk-nav-offcanvas .uk-nav-divider{border-top:1px solid #1a1a1a}.uk-nav-offcanvas ul a{color:#ccc}html:not(.uk-touch) .uk-nav-offcanvas ul a:hover{color:#fff}.uk-navbar{background:#eee;color:#444}.uk-navbar:after,.uk-navbar:before{content:"";display:table}.uk-navbar:after{clear:both}.uk-navbar-nav{margin:0;padding:0;list-style:none;float:left}.uk-navbar-nav>li{float:left;position:relative}.uk-navbar-nav>li>a{display:block;-moz-box-sizing:border-box;box-sizing:border-box;text-decoration:none;height:40px;padding:0 15px;line-height:40px;color:#444;font-size:14px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400}.uk-navbar-nav>li>a[href='#']{cursor:text}.uk-navbar-nav>li.uk-open>a,.uk-navbar-nav>li:hover>a,.uk-navbar-nav>li>a:focus{background-color:#f5f5f5;color:#444;outline:0}.uk-navbar-nav>li>a:active{background-color:#ddd;color:#444}.uk-navbar-nav>li.uk-active>a{background-color:#f5f5f5;color:#444}.uk-navbar-nav .uk-navbar-nav-subtitle{line-height:28px}.uk-navbar-nav-subtitle>div{margin-top:-6px;font-size:10px;line-height:12px}.uk-navbar-brand,.uk-navbar-content,.uk-navbar-toggle{-moz-box-sizing:border-box;box-sizing:border-box;display:block;height:40px;padding:0 15px;float:left}.uk-navbar-brand:before,.uk-navbar-content:before,.uk-navbar-toggle:before{content:'';display:inline-block;height:100%;vertical-align:middle}.uk-navbar-content+.uk-navbar-content:not(.uk-navbar-center){padding-left:0}.uk-navbar-content>a:not([class]){color:#07d}.uk-navbar-content>a:not([class]):hover{color:#059}.uk-navbar-brand{font-size:18px;color:#444;text-decoration:none}.uk-navbar-brand:focus,.uk-navbar-brand:hover{color:#444;text-decoration:none;outline:0}.uk-navbar-toggle{font-size:18px;color:#444;text-decoration:none}.uk-navbar-toggle:focus,.uk-navbar-toggle:hover{color:#444;text-decoration:none;outline:0}.uk-navbar-toggle:after{content:"\f0c9";font-family:FontAwesome;vertical-align:middle}.uk-navbar-toggle-alt:after{content:"\f002"}.uk-navbar-center{float:none;text-align:center;max-width:50%;margin-left:auto;margin-right:auto}.uk-navbar-flip{float:right}.uk-subnav{display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-left:-10px;margin-top:-10px;padding:0;list-style:none}.uk-subnav>*{-ms-flex:none;-webkit-flex:none;flex:none;padding-left:10px;margin-top:10px;position:relative}.uk-subnav:after,.uk-subnav:before{content:"";display:block;overflow:hidden}.uk-subnav:after{clear:both}.uk-subnav>*{float:left}.uk-subnav>*>*{display:inline-block;color:#444}.uk-subnav>*>:focus,.uk-subnav>*>:hover{color:#07d;text-decoration:none}.uk-subnav>.uk-active>*{color:#07d}.uk-subnav-line>:before{content:"";display:inline-block;height:10px;vertical-align:middle}.uk-subnav-line>:nth-child(n+2):before{margin-right:10px;border-left:1px solid #ddd}.uk-subnav-pill>*>*{padding:3px 9px}.uk-subnav-pill>*>:focus,.uk-subnav-pill>*>:hover{background:#eee;color:#444;text-decoration:none;outline:0}.uk-subnav-pill>.uk-active>*{background:#00a8e6;color:#fff}.uk-subnav>.uk-disabled>*{background:0 0;color:#999;text-decoration:none;cursor:text}.uk-breadcrumb{padding:0;list-style:none;font-size:0}.uk-breadcrumb>li{font-size:1rem;vertical-align:top}.uk-breadcrumb>li,.uk-breadcrumb>li>a,.uk-breadcrumb>li>span{display:inline-block}.uk-breadcrumb>li:nth-child(n+2):before{content:"/";display:inline-block;margin:0 8px}.uk-breadcrumb>li:not(.uk-active)>span{color:#999}.uk-pagination{padding:0;list-style:none;text-align:center;font-size:0}.uk-pagination:after,.uk-pagination:before{content:"";display:table}.uk-pagination:after{clear:both}.uk-pagination>li{display:inline-block;font-size:1rem;vertical-align:top}.uk-pagination>li:nth-child(n+2){margin-left:5px}.uk-pagination>li>a,.uk-pagination>li>span{display:inline-block;min-width:16px;padding:3px 5px;line-height:20px;text-decoration:none;-moz-box-sizing:content-box;box-sizing:content-box;text-align:center}.uk-pagination>li>a{background:#eee;color:#444}.uk-pagination>li>a:focus,.uk-pagination>li>a:hover{background-color:#f5f5f5;color:#444;outline:0}.uk-pagination>li>a:active{background-color:#ddd;color:#444}.uk-pagination>.uk-active>span{background:#00a8e6;color:#fff}.uk-pagination>.uk-disabled>span{background-color:#f5f5f5;color:#999}.uk-pagination-previous{float:left}.uk-pagination-next{float:right}.uk-pagination-left{text-align:left}.uk-pagination-right{text-align:right}.uk-tab{margin:0;padding:0;list-style:none;border-bottom:1px solid #ddd}.uk-tab:after,.uk-tab:before{content:"";display:table}.uk-tab:after{clear:both}.uk-tab>li{margin-bottom:-1px;float:left;position:relative}.uk-tab>li>a{display:block;padding:8px 12px 8px 12px;border:1px solid transparent;border-bottom-width:0;color:#07d;text-decoration:none}.uk-tab>li:nth-child(n+2)>a{margin-left:5px}.uk-tab>li.uk-open>a,.uk-tab>li>a:focus,.uk-tab>li>a:hover{border-color:#f5f5f5;background:#f5f5f5;color:#059;outline:0}.uk-tab>li.uk-open:not(.uk-active)>a,.uk-tab>li:not(.uk-active)>a:focus,.uk-tab>li:not(.uk-active)>a:hover{margin-bottom:1px;padding-bottom:7px}.uk-tab>li.uk-active>a{border-color:#ddd;border-bottom-color:transparent;background:#fff;color:#444}.uk-tab>li.uk-disabled>a{color:#999;cursor:text}.uk-tab>li.uk-disabled.uk-active>a,.uk-tab>li.uk-disabled>a:focus,.uk-tab>li.uk-disabled>a:hover{background:0 0;border-color:transparent}.uk-tab-flip>li{float:right}.uk-tab-flip>li:nth-child(n+2)>a{margin-left:0;margin-right:5px}.uk-tab>li.uk-tab-responsive>a{margin-left:0;margin-right:0}.uk-tab-responsive>a:before{content:"\f0c9\00a0";font-family:FontAwesome}.uk-tab-center{border-bottom:1px solid #ddd}.uk-tab-center-bottom{border-bottom:none;border-top:1px solid #ddd}.uk-tab-center:after,.uk-tab-center:before{content:"";display:table}.uk-tab-center:after{clear:both}.uk-tab-center .uk-tab{position:relative;right:50%;border:none;float:right}.uk-tab-center .uk-tab>li{position:relative;right:-50%}.uk-tab-center .uk-tab>li>a{text-align:center}.uk-tab-bottom{border-top:1px solid #ddd;border-bottom:none}.uk-tab-bottom>li{margin-top:-1px;margin-bottom:0}.uk-tab-bottom>li>a{padding-top:8px;padding-bottom:8px;border-bottom-width:1px;border-top-width:0}.uk-tab-bottom>li.uk-open:not(.uk-active)>a,.uk-tab-bottom>li:not(.uk-active)>a:focus,.uk-tab-bottom>li:not(.uk-active)>a:hover{margin-bottom:0;margin-top:1px;padding-bottom:8px;padding-top:7px}.uk-tab-bottom>li.uk-active>a{border-top-color:transparent;border-bottom-color:#ddd}.uk-tab-grid{margin-left:-5px;border-bottom:none;position:relative;z-index:0}.uk-tab-grid:before{display:block;position:absolute;left:5px;right:0;bottom:-1px;border-top:1px solid #ddd;z-index:-1}.uk-tab-grid>li:first-child>a{margin-left:5px}.uk-tab-grid>li>a{text-align:center}.uk-tab-grid.uk-tab-bottom{border-top:none}.uk-tab-grid.uk-tab-bottom:before{top:-1px;bottom:auto}@media (min-width:768px){.uk-tab-left,.uk-tab-right{border-bottom:none}.uk-tab-left>li,.uk-tab-right>li{margin-bottom:0;float:none}.uk-tab-left>li>a,.uk-tab-right>li>a{padding-top:8px;padding-bottom:8px}.uk-tab-left>li:nth-child(n+2)>a,.uk-tab-right>li:nth-child(n+2)>a{margin-left:0;margin-top:5px}.uk-tab-left>li.uk-active>a,.uk-tab-right>li.uk-active>a{border-color:#ddd}.uk-tab-left{border-right:1px solid #ddd}.uk-tab-left>li{margin-right:-1px}.uk-tab-left>li>a{border-bottom-width:1px;border-right-width:0}.uk-tab-left>li:not(.uk-active)>a:focus,.uk-tab-left>li:not(.uk-active)>a:hover{margin-bottom:0;margin-right:1px;padding-bottom:8px;padding-right:11px}.uk-tab-left>li.uk-active>a{border-right-color:transparent}.uk-tab-right{border-left:1px solid #ddd}.uk-tab-right>li{margin-left:-1px}.uk-tab-right>li>a{border-bottom-width:1px;border-left-width:0}.uk-tab-right>li:not(.uk-active)>a:focus,.uk-tab-right>li:not(.uk-active)>a:hover{margin-bottom:0;margin-left:1px;padding-bottom:8px;padding-left:11px}.uk-tab-right>li.uk-active>a{border-left-color:transparent}}.uk-thumbnav{display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-left:-10px;margin-top:-10px;padding:0;list-style:none}.uk-thumbnav>*{-ms-flex:none;-webkit-flex:none;flex:none;padding-left:10px;margin-top:10px}.uk-thumbnav:after,.uk-thumbnav:before{content:"";display:block;overflow:hidden}.uk-thumbnav:after{clear:both}.uk-thumbnav>*{float:left}.uk-thumbnav>*>*{display:block;background:#fff}.uk-thumbnav>*>*>img{opacity:.7;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.uk-thumbnav>*>:focus>img,.uk-thumbnav>*>:hover>img{opacity:1}.uk-thumbnav>.uk-active>*>img{opacity:1}.uk-list{padding:0;list-style:none}.uk-list>li:after,.uk-list>li:before{content:"";display:table}.uk-list>li:after{clear:both}.uk-list>li>:last-child{margin-bottom:0}.uk-list ul{margin:0;padding-left:20px;list-style:none}.uk-list-line>li:nth-child(n+2){margin-top:5px;padding-top:5px;border-top:1px solid #ddd}.uk-list-striped>li{padding:5px 5px}.uk-list-striped>li:nth-of-type(odd){background:#f5f5f5}.uk-list-space>li:nth-child(n+2){margin-top:10px}@media (min-width:768px){.uk-description-list-horizontal{overflow:hidden}.uk-description-list-horizontal>dt{width:160px;float:left;clear:both;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uk-description-list-horizontal>dd{margin-left:180px}}.uk-description-list-line>dt{font-weight:400}.uk-description-list-line>dt:nth-child(n+2){margin-top:5px;padding-top:5px;border-top:1px solid #ddd}.uk-description-list-line>dd{color:#999}.uk-table{border-collapse:collapse;border-spacing:0;width:100%;margin-bottom:15px}*+.uk-table{margin-top:15px}.uk-table td,.uk-table th{padding:8px 8px}.uk-table th{text-align:left}.uk-table td{vertical-align:top}.uk-table thead th{vertical-align:bottom}.uk-table caption,.uk-table tfoot{font-size:12px;font-style:italic}.uk-table caption{text-align:left;color:#999}.uk-table tbody tr.uk-active{background:#eee}.uk-table-middle,.uk-table-middle td{vertical-align:middle!important}.uk-table-striped tbody tr:nth-of-type(odd){background:#f5f5f5}.uk-table-condensed td{padding:4px 8px}.uk-table-hover tbody tr:hover{background:#eee}.uk-form input,.uk-form select,.uk-form textarea{-moz-box-sizing:border-box;box-sizing:border-box;margin:0;border-radius:0;font:inherit;color:inherit}.uk-form select{text-transform:none}.uk-form optgroup{font:inherit;font-weight:700}.uk-form input::-moz-focus-inner{border:0;padding:0}.uk-form input[type=checkbox],.uk-form input[type=radio]{padding:0}.uk-form input[type=checkbox]:not(:disabled),.uk-form input[type=radio]:not(:disabled){cursor:pointer}.uk-form input:not([type]),.uk-form input[type=text],.uk-form input[type=password],.uk-form input[type=email],.uk-form input[type=url],.uk-form input[type=search],.uk-form input[type=tel],.uk-form input[type=number],.uk-form input[type=datetime],.uk-form textarea{-webkit-appearance:none}.uk-form input[type=search]::-webkit-search-cancel-button,.uk-form input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.uk-form input[type=number]::-webkit-inner-spin-button,.uk-form input[type=number]::-webkit-outer-spin-button{height:auto}.uk-form fieldset{border:none;margin:0;padding:0}.uk-form textarea{overflow:auto;vertical-align:top}.uk-form ::-moz-placeholder{opacity:1}.uk-form :invalid{box-shadow:none}.uk-form input:not([type=radio]):not([type=checkbox]),.uk-form select{vertical-align:middle}.uk-form>:last-child{margin-bottom:0}.uk-form input:not([type]),.uk-form input[type=text],.uk-form input[type=password],.uk-form input[type=email],.uk-form input[type=url],.uk-form input[type=search],.uk-form input[type=tel],.uk-form input[type=number],.uk-form input[type=datetime],.uk-form input[type=datetime-local],.uk-form input[type=date],.uk-form input[type=month],.uk-form input[type=time],.uk-form input[type=week],.uk-form input[type=color],.uk-form select,.uk-form textarea{height:30px;max-width:100%;padding:4px 6px;border:1px solid #ddd;background:#fff;color:#444;-webkit-transition:all linear .2s;transition:all linear .2s}.uk-form input:not([type]):focus,.uk-form input[type=text]:focus,.uk-form input[type=password]:focus,.uk-form input[type=email]:focus,.uk-form input[type=url]:focus,.uk-form input[type=search]:focus,.uk-form input[type=tel]:focus,.uk-form input[type=number]:focus,.uk-form input[type=datetime]:focus,.uk-form input[type=datetime-local]:focus,.uk-form input[type=date]:focus,.uk-form input[type=month]:focus,.uk-form input[type=time]:focus,.uk-form input[type=week]:focus,.uk-form input[type=color]:focus,.uk-form select:focus,.uk-form textarea:focus{border-color:#99baca;outline:0;background:#f5fbfe;color:#444}.uk-form input:not([type]):disabled,.uk-form input[type=text]:disabled,.uk-form input[type=password]:disabled,.uk-form input[type=email]:disabled,.uk-form input[type=url]:disabled,.uk-form input[type=search]:disabled,.uk-form input[type=tel]:disabled,.uk-form input[type=number]:disabled,.uk-form input[type=datetime]:disabled,.uk-form input[type=datetime-local]:disabled,.uk-form input[type=date]:disabled,.uk-form input[type=month]:disabled,.uk-form input[type=time]:disabled,.uk-form input[type=week]:disabled,.uk-form input[type=color]:disabled,.uk-form select:disabled,.uk-form textarea:disabled{border-color:#ddd;background-color:#f5f5f5;color:#999}.uk-form :-ms-input-placeholder{color:#999!important}.uk-form ::-moz-placeholder{color:#999}.uk-form ::-webkit-input-placeholder{color:#999}.uk-form :disabled:-ms-input-placeholder{color:#999!important}.uk-form :disabled::-moz-placeholder{color:#999}.uk-form :disabled::-webkit-input-placeholder{color:#999}.uk-form legend{width:100%;border:0;padding:0;padding-bottom:15px;font-size:18px;line-height:30px}.uk-form legend:after{content:"";display:block;border-bottom:1px solid #ddd;width:100%}input:not([type]).uk-form-small,input[type].uk-form-small,select.uk-form-small,textarea.uk-form-small{height:25px;padding:3px 3px;font-size:12px}input:not([type]).uk-form-large,input[type].uk-form-large,select.uk-form-large,textarea.uk-form-large{height:40px;padding:8px 6px;font-size:16px}.uk-form select[multiple],.uk-form select[size],.uk-form textarea{height:auto}.uk-form-danger{border-color:#dc8d99!important;background:#fff7f8!important;color:#d85030!important}.uk-form-success{border-color:#8ec73b!important;background:#fafff2!important;color:#659f13!important}.uk-form-blank{border-color:transparent!important;border-style:dashed!important;background:0 0!important}.uk-form-blank:focus{border-color:#ddd!important}input.uk-form-width-mini{width:40px}select.uk-form-width-mini{width:65px}.uk-form-width-small{width:130px}.uk-form-width-medium{width:200px}.uk-form-width-large{width:500px}.uk-form-row:after,.uk-form-row:before{content:"";display:table}.uk-form-row:after{clear:both}.uk-form-row+.uk-form-row{margin-top:15px}.uk-form-help-inline{display:inline-block;margin:0 0 0 10px}.uk-form-help-block{margin:5px 0 0 0}.uk-form-controls>:first-child{margin-top:0}.uk-form-controls>:last-child{margin-bottom:0}.uk-form-controls-condensed{margin:5px 0}.uk-form-stacked .uk-form-label{display:block;margin-bottom:5px;font-weight:700}@media (max-width:959px){.uk-form-horizontal .uk-form-label{display:block;margin-bottom:5px;font-weight:700}}@media (min-width:960px){.uk-form-horizontal .uk-form-label{width:200px;margin-top:5px;float:left}.uk-form-horizontal .uk-form-controls{margin-left:215px}.uk-form-horizontal .uk-form-controls-text{padding-top:5px}}.uk-form-icon{display:inline-block;position:relative;max-width:100%}.uk-form-icon>[class*=uk-icon-]{position:absolute;top:50%;width:30px;margin-top:-7px;font-size:14px;color:#999;text-align:center;pointer-events:none}.uk-form-icon:not(.uk-form-icon-flip)>input{padding-left:30px!important}.uk-form-icon-flip>[class*=uk-icon-]{right:0}.uk-form-icon-flip>input{padding-right:30px!important}.uk-button::-moz-focus-inner{border:0;padding:0}.uk-button{-webkit-appearance:none;margin:0;border:none;overflow:visible;font:inherit;color:#444;text-transform:none;display:inline-block;-moz-box-sizing:border-box;box-sizing:border-box;padding:0 12px;background:#eee;vertical-align:middle;line-height:30px;min-height:30px;font-size:1rem;text-decoration:none;text-align:center}.uk-button:not(:disabled){cursor:pointer}.uk-button:focus,.uk-button:hover{background-color:#f5f5f5;color:#444;outline:0;text-decoration:none}.uk-button.uk-active,.uk-button:active{background-color:#ddd;color:#444}.uk-button-primary{background-color:#00a8e6;color:#fff}.uk-button-primary:focus,.uk-button-primary:hover{background-color:#35b3ee;color:#fff}.uk-button-primary.uk-active,.uk-button-primary:active{background-color:#0091ca;color:#fff}.uk-button-success{background-color:#8cc14c;color:#fff}.uk-button-success:focus,.uk-button-success:hover{background-color:#8ec73b;color:#fff}.uk-button-success.uk-active,.uk-button-success:active{background-color:#72ae41;color:#fff}.uk-button-danger{background-color:#da314b;color:#fff}.uk-button-danger:focus,.uk-button-danger:hover{background-color:#e4354f;color:#fff}.uk-button-danger.uk-active,.uk-button-danger:active{background-color:#c91032;color:#fff}.uk-button:disabled{background-color:#f5f5f5;color:#999}.uk-button-link,.uk-button-link.uk-active,.uk-button-link:active,.uk-button-link:disabled,.uk-button-link:focus,.uk-button-link:hover{border-color:transparent;background:0 0}.uk-button-link{color:#07d}.uk-button-link.uk-active,.uk-button-link:active,.uk-button-link:focus,.uk-button-link:hover{color:#059;text-decoration:underline}.uk-button-link:disabled{color:#999}.uk-button-link:focus{outline:1px dotted}.uk-button-mini{min-height:20px;padding:0 6px;line-height:20px;font-size:11px}.uk-button-small{min-height:25px;padding:0 10px;line-height:25px;font-size:12px}.uk-button-large{min-height:40px;padding:0 15px;line-height:40px;font-size:16px}.uk-button-group{display:inline-block;vertical-align:middle;position:relative;font-size:0;white-space:nowrap}.uk-button-group>*{display:inline-block}.uk-button-group .uk-button{vertical-align:top}.uk-button-dropdown{display:inline-block;vertical-align:middle;position:relative}@font-face{font-family:FontAwesome;src:url(../fonts/fontawesome-webfont.eot);src:url(../fonts/fontawesome-webfont.eot?#iefix)format("embedded-opentype"),url(../fonts/fontawesome-webfont.woff2)format('woff2'),url(../fonts/fontawesome-webfont.woff)format("woff"),url(../fonts/fontawesome-webfont.ttf)format("truetype");font-weight:400;font-style:normal}[class*=uk-icon-]{font-family:FontAwesome;display:inline-block;font-weight:400;font-style:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[class*=uk-icon-],[class*=uk-icon-]:focus,[class*=uk-icon-]:hover{text-decoration:none}.uk-icon-small{font-size:150%;vertical-align:-10%}.uk-icon-medium{font-size:200%;vertical-align:-16%}.uk-icon-large{font-size:250%;vertical-align:-22%}.uk-icon-justify{width:1em;text-align:center}.uk-icon-spin{display:inline-block;-webkit-animation:uk-rotate 2s infinite linear;animation:uk-rotate 2s infinite linear}.uk-icon-hover{color:#999}.uk-icon-hover:hover{color:#444}.uk-icon-button{-moz-box-sizing:border-box;box-sizing:border-box;display:inline-block;width:35px;height:35px;border-radius:100%;background:#eee;line-height:35px;color:#444;font-size:18px;text-align:center}.uk-icon-button:focus,.uk-icon-button:hover{background-color:#f5f5f5;color:#444;outline:0}.uk-icon-button:active{background-color:#ddd;color:#444}.uk-icon-glass:before{content:"\f000"}.uk-icon-music:before{content:"\f001"}.uk-icon-search:before{content:"\f002"}.uk-icon-envelope-o:before{content:"\f003"}.uk-icon-heart:before{content:"\f004"}.uk-icon-star:before{content:"\f005"}.uk-icon-star-o:before{content:"\f006"}.uk-icon-user:before{content:"\f007"}.uk-icon-film:before{content:"\f008"}.uk-icon-th-large:before{content:"\f009"}.uk-icon-th:before{content:"\f00a"}.uk-icon-th-list:before{content:"\f00b"}.uk-icon-check:before{content:"\f00c"}.uk-icon-close:before,.uk-icon-remove:before,.uk-icon-times:before{content:"\f00d"}.uk-icon-search-plus:before{content:"\f00e"}.uk-icon-search-minus:before{content:"\f010"}.uk-icon-power-off:before{content:"\f011"}.uk-icon-signal:before{content:"\f012"}.uk-icon-cog:before,.uk-icon-gear:before{content:"\f013"}.uk-icon-trash-o:before{content:"\f014"}.uk-icon-home:before{content:"\f015"}.uk-icon-file-o:before{content:"\f016"}.uk-icon-clock-o:before{content:"\f017"}.uk-icon-road:before{content:"\f018"}.uk-icon-download:before{content:"\f019"}.uk-icon-arrow-circle-o-down:before{content:"\f01a"}.uk-icon-arrow-circle-o-up:before{content:"\f01b"}.uk-icon-inbox:before{content:"\f01c"}.uk-icon-play-circle-o:before{content:"\f01d"}.uk-icon-repeat:before,.uk-icon-rotate-right:before{content:"\f01e"}.uk-icon-refresh:before{content:"\f021"}.uk-icon-list-alt:before{content:"\f022"}.uk-icon-lock:before{content:"\f023"}.uk-icon-flag:before{content:"\f024"}.uk-icon-headphones:before{content:"\f025"}.uk-icon-volume-off:before{content:"\f026"}.uk-icon-volume-down:before{content:"\f027"}.uk-icon-volume-up:before{content:"\f028"}.uk-icon-qrcode:before{content:"\f029"}.uk-icon-barcode:before{content:"\f02a"}.uk-icon-tag:before{content:"\f02b"}.uk-icon-tags:before{content:"\f02c"}.uk-icon-book:before{content:"\f02d"}.uk-icon-bookmark:before{content:"\f02e"}.uk-icon-print:before{content:"\f02f"}.uk-icon-camera:before{content:"\f030"}.uk-icon-font:before{content:"\f031"}.uk-icon-bold:before{content:"\f032"}.uk-icon-italic:before{content:"\f033"}.uk-icon-text-height:before{content:"\f034"}.uk-icon-text-width:before{content:"\f035"}.uk-icon-align-left:before{content:"\f036"}.uk-icon-align-center:before{content:"\f037"}.uk-icon-align-right:before{content:"\f038"}.uk-icon-align-justify:before{content:"\f039"}.uk-icon-list:before{content:"\f03a"}.uk-icon-dedent:before,.uk-icon-outdent:before{content:"\f03b"}.uk-icon-indent:before{content:"\f03c"}.uk-icon-video-camera:before{content:"\f03d"}.uk-icon-image:before,.uk-icon-photo:before,.uk-icon-picture-o:before{content:"\f03e"}.uk-icon-pencil:before{content:"\f040"}.uk-icon-map-marker:before{content:"\f041"}.uk-icon-adjust:before{content:"\f042"}.uk-icon-tint:before{content:"\f043"}.uk-icon-edit:before,.uk-icon-pencil-square-o:before{content:"\f044"}.uk-icon-share-square-o:before{content:"\f045"}.uk-icon-check-square-o:before{content:"\f046"}.uk-icon-arrows:before{content:"\f047"}.uk-icon-step-backward:before{content:"\f048"}.uk-icon-fast-backward:before{content:"\f049"}.uk-icon-backward:before{content:"\f04a"}.uk-icon-play:before{content:"\f04b"}.uk-icon-pause:before{content:"\f04c"}.uk-icon-stop:before{content:"\f04d"}.uk-icon-forward:before{content:"\f04e"}.uk-icon-fast-forward:before{content:"\f050"}.uk-icon-step-forward:before{content:"\f051"}.uk-icon-eject:before{content:"\f052"}.uk-icon-chevron-left:before{content:"\f053"}.uk-icon-chevron-right:before{content:"\f054"}.uk-icon-plus-circle:before{content:"\f055"}.uk-icon-minus-circle:before{content:"\f056"}.uk-icon-times-circle:before{content:"\f057"}.uk-icon-check-circle:before{content:"\f058"}.uk-icon-question-circle:before{content:"\f059"}.uk-icon-info-circle:before{content:"\f05a"}.uk-icon-crosshairs:before{content:"\f05b"}.uk-icon-times-circle-o:before{content:"\f05c"}.uk-icon-check-circle-o:before{content:"\f05d"}.uk-icon-ban:before{content:"\f05e"}.uk-icon-arrow-left:before{content:"\f060"}.uk-icon-arrow-right:before{content:"\f061"}.uk-icon-arrow-up:before{content:"\f062"}.uk-icon-arrow-down:before{content:"\f063"}.uk-icon-mail-forward:before,.uk-icon-share:before{content:"\f064"}.uk-icon-expand:before{content:"\f065"}.uk-icon-compress:before{content:"\f066"}.uk-icon-plus:before{content:"\f067"}.uk-icon-minus:before{content:"\f068"}.uk-icon-asterisk:before{content:"\f069"}.uk-icon-exclamation-circle:before{content:"\f06a"}.uk-icon-gift:before{content:"\f06b"}.uk-icon-leaf:before{content:"\f06c"}.uk-icon-fire:before{content:"\f06d"}.uk-icon-eye:before{content:"\f06e"}.uk-icon-eye-slash:before{content:"\f070"}.uk-icon-exclamation-triangle:before,.uk-icon-warning:before{content:"\f071"}.uk-icon-plane:before{content:"\f072"}.uk-icon-calendar:before{content:"\f073"}.uk-icon-random:before{content:"\f074"}.uk-icon-comment:before{content:"\f075"}.uk-icon-magnet:before{content:"\f076"}.uk-icon-chevron-up:before{content:"\f077"}.uk-icon-chevron-down:before{content:"\f078"}.uk-icon-retweet:before{content:"\f079"}.uk-icon-shopping-cart:before{content:"\f07a"}.uk-icon-folder:before{content:"\f07b"}.uk-icon-folder-open:before{content:"\f07c"}.uk-icon-arrows-v:before{content:"\f07d"}.uk-icon-arrows-h:before{content:"\f07e"}.uk-icon-bar-chart-o:before,.uk-icon-bar-chart:before{content:"\f080"}.uk-icon-twitter-square:before{content:"\f081"}.uk-icon-facebook-square:before{content:"\f082"}.uk-icon-camera-retro:before{content:"\f083"}.uk-icon-key:before{content:"\f084"}.uk-icon-cogs:before,.uk-icon-gears:before{content:"\f085"}.uk-icon-comments:before{content:"\f086"}.uk-icon-thumbs-o-up:before{content:"\f087"}.uk-icon-thumbs-o-down:before{content:"\f088"}.uk-icon-star-half:before{content:"\f089"}.uk-icon-heart-o:before{content:"\f08a"}.uk-icon-sign-out:before{content:"\f08b"}.uk-icon-linkedin-square:before{content:"\f08c"}.uk-icon-thumb-tack:before{content:"\f08d"}.uk-icon-external-link:before{content:"\f08e"}.uk-icon-sign-in:before{content:"\f090"}.uk-icon-trophy:before{content:"\f091"}.uk-icon-github-square:before{content:"\f092"}.uk-icon-upload:before{content:"\f093"}.uk-icon-lemon-o:before{content:"\f094"}.uk-icon-phone:before{content:"\f095"}.uk-icon-square-o:before{content:"\f096"}.uk-icon-bookmark-o:before{content:"\f097"}.uk-icon-phone-square:before{content:"\f098"}.uk-icon-twitter:before{content:"\f099"}.uk-icon-facebook-f:before,.uk-icon-facebook:before{content:"\f09a"}.uk-icon-github:before{content:"\f09b"}.uk-icon-unlock:before{content:"\f09c"}.uk-icon-credit-card:before{content:"\f09d"}.uk-icon-rss:before{content:"\f09e"}.uk-icon-hdd-o:before{content:"\f0a0"}.uk-icon-bullhorn:before{content:"\f0a1"}.uk-icon-bell:before{content:"\f0f3"}.uk-icon-certificate:before{content:"\f0a3"}.uk-icon-hand-o-right:before{content:"\f0a4"}.uk-icon-hand-o-left:before{content:"\f0a5"}.uk-icon-hand-o-up:before{content:"\f0a6"}.uk-icon-hand-o-down:before{content:"\f0a7"}.uk-icon-arrow-circle-left:before{content:"\f0a8"}.uk-icon-arrow-circle-right:before{content:"\f0a9"}.uk-icon-arrow-circle-up:before{content:"\f0aa"}.uk-icon-arrow-circle-down:before{content:"\f0ab"}.uk-icon-globe:before{content:"\f0ac"}.uk-icon-wrench:before{content:"\f0ad"}.uk-icon-tasks:before{content:"\f0ae"}.uk-icon-filter:before{content:"\f0b0"}.uk-icon-briefcase:before{content:"\f0b1"}.uk-icon-arrows-alt:before{content:"\f0b2"}.uk-icon-group:before,.uk-icon-users:before{content:"\f0c0"}.uk-icon-chain:before,.uk-icon-link:before{content:"\f0c1"}.uk-icon-cloud:before{content:"\f0c2"}.uk-icon-flask:before{content:"\f0c3"}.uk-icon-cut:before,.uk-icon-scissors:before{content:"\f0c4"}.uk-icon-copy:before,.uk-icon-files-o:before{content:"\f0c5"}.uk-icon-paperclip:before{content:"\f0c6"}.uk-icon-floppy-o:before,.uk-icon-save:before{content:"\f0c7"}.uk-icon-square:before{content:"\f0c8"}.uk-icon-bars:before,.uk-icon-navicon:before,.uk-icon-reorder:before{content:"\f0c9"}.uk-icon-list-ul:before{content:"\f0ca"}.uk-icon-list-ol:before{content:"\f0cb"}.uk-icon-strikethrough:before{content:"\f0cc"}.uk-icon-underline:before{content:"\f0cd"}.uk-icon-table:before{content:"\f0ce"}.uk-icon-magic:before{content:"\f0d0"}.uk-icon-truck:before{content:"\f0d1"}.uk-icon-pinterest:before{content:"\f0d2"}.uk-icon-pinterest-square:before{content:"\f0d3"}.uk-icon-google-plus-square:before{content:"\f0d4"}.uk-icon-google-plus:before{content:"\f0d5"}.uk-icon-money:before{content:"\f0d6"}.uk-icon-caret-down:before{content:"\f0d7"}.uk-icon-caret-up:before{content:"\f0d8"}.uk-icon-caret-left:before{content:"\f0d9"}.uk-icon-caret-right:before{content:"\f0da"}.uk-icon-columns:before{content:"\f0db"}.uk-icon-sort:before,.uk-icon-unsorted:before{content:"\f0dc"}.uk-icon-sort-desc:before,.uk-icon-sort-down:before{content:"\f0dd"}.uk-icon-sort-asc:before,.uk-icon-sort-up:before{content:"\f0de"}.uk-icon-envelope:before{content:"\f0e0"}.uk-icon-linkedin:before{content:"\f0e1"}.uk-icon-rotate-left:before,.uk-icon-undo:before{content:"\f0e2"}.uk-icon-gavel:before,.uk-icon-legal:before{content:"\f0e3"}.uk-icon-dashboard:before,.uk-icon-tachometer:before{content:"\f0e4"}.uk-icon-comment-o:before{content:"\f0e5"}.uk-icon-comments-o:before{content:"\f0e6"}.uk-icon-bolt:before,.uk-icon-flash:before{content:"\f0e7"}.uk-icon-sitemap:before{content:"\f0e8"}.uk-icon-umbrella:before{content:"\f0e9"}.uk-icon-clipboard:before,.uk-icon-paste:before{content:"\f0ea"}.uk-icon-lightbulb-o:before{content:"\f0eb"}.uk-icon-exchange:before{content:"\f0ec"}.uk-icon-cloud-download:before{content:"\f0ed"}.uk-icon-cloud-upload:before{content:"\f0ee"}.uk-icon-user-md:before{content:"\f0f0"}.uk-icon-stethoscope:before{content:"\f0f1"}.uk-icon-suitcase:before{content:"\f0f2"}.uk-icon-bell-o:before{content:"\f0a2"}.uk-icon-coffee:before{content:"\f0f4"}.uk-icon-cutlery:before{content:"\f0f5"}.uk-icon-file-text-o:before{content:"\f0f6"}.uk-icon-building-o:before{content:"\f0f7"}.uk-icon-hospital-o:before{content:"\f0f8"}.uk-icon-ambulance:before{content:"\f0f9"}.uk-icon-medkit:before{content:"\f0fa"}.uk-icon-fighter-jet:before{content:"\f0fb"}.uk-icon-beer:before{content:"\f0fc"}.uk-icon-h-square:before{content:"\f0fd"}.uk-icon-plus-square:before{content:"\f0fe"}.uk-icon-angle-double-left:before{content:"\f100"}.uk-icon-angle-double-right:before{content:"\f101"}.uk-icon-angle-double-up:before{content:"\f102"}.uk-icon-angle-double-down:before{content:"\f103"}.uk-icon-angle-left:before{content:"\f104"}.uk-icon-angle-right:before{content:"\f105"}.uk-icon-angle-up:before{content:"\f106"}.uk-icon-angle-down:before{content:"\f107"}.uk-icon-desktop:before{content:"\f108"}.uk-icon-laptop:before{content:"\f109"}.uk-icon-tablet:before{content:"\f10a"}.uk-icon-mobile-phone:before,.uk-icon-mobile:before{content:"\f10b"}.uk-icon-circle-o:before{content:"\f10c"}.uk-icon-quote-left:before{content:"\f10d"}.uk-icon-quote-right:before{content:"\f10e"}.uk-icon-spinner:before{content:"\f110"}.uk-icon-circle:before{content:"\f111"}.uk-icon-mail-reply:before,.uk-icon-reply:before{content:"\f112"}.uk-icon-github-alt:before{content:"\f113"}.uk-icon-folder-o:before{content:"\f114"}.uk-icon-folder-open-o:before{content:"\f115"}.uk-icon-smile-o:before{content:"\f118"}.uk-icon-frown-o:before{content:"\f119"}.uk-icon-meh-o:before{content:"\f11a"}.uk-icon-gamepad:before{content:"\f11b"}.uk-icon-keyboard-o:before{content:"\f11c"}.uk-icon-flag-o:before{content:"\f11d"}.uk-icon-flag-checkered:before{content:"\f11e"}.uk-icon-terminal:before{content:"\f120"}.uk-icon-code:before{content:"\f121"}.uk-icon-mail-reply-all:before,.uk-icon-reply-all:before{content:"\f122"}.uk-icon-star-half-empty:before,.uk-icon-star-half-full:before,.uk-icon-star-half-o:before{content:"\f123"}.uk-icon-location-arrow:before{content:"\f124"}.uk-icon-crop:before{content:"\f125"}.uk-icon-code-fork:before{content:"\f126"}.uk-icon-chain-broken:before,.uk-icon-unlink:before{content:"\f127"}.uk-icon-question:before{content:"\f128"}.uk-icon-info:before{content:"\f129"}.uk-icon-exclamation:before{content:"\f12a"}.uk-icon-superscript:before{content:"\f12b"}.uk-icon-subscript:before{content:"\f12c"}.uk-icon-eraser:before{content:"\f12d"}.uk-icon-puzzle-piece:before{content:"\f12e"}.uk-icon-microphone:before{content:"\f130"}.uk-icon-microphone-slash:before{content:"\f131"}.uk-icon-shield:before{content:"\f132"}.uk-icon-calendar-o:before{content:"\f133"}.uk-icon-fire-extinguisher:before{content:"\f134"}.uk-icon-rocket:before{content:"\f135"}.uk-icon-maxcdn:before{content:"\f136"}.uk-icon-chevron-circle-left:before{content:"\f137"}.uk-icon-chevron-circle-right:before{content:"\f138"}.uk-icon-chevron-circle-up:before{content:"\f139"}.uk-icon-chevron-circle-down:before{content:"\f13a"}.uk-icon-html5:before{content:"\f13b"}.uk-icon-css3:before{content:"\f13c"}.uk-icon-anchor:before{content:"\f13d"}.uk-icon-unlock-alt:before{content:"\f13e"}.uk-icon-bullseye:before{content:"\f140"}.uk-icon-ellipsis-h:before{content:"\f141"}.uk-icon-ellipsis-v:before{content:"\f142"}.uk-icon-rss-square:before{content:"\f143"}.uk-icon-play-circle:before{content:"\f144"}.uk-icon-ticket:before{content:"\f145"}.uk-icon-minus-square:before{content:"\f146"}.uk-icon-minus-square-o:before{content:"\f147"}.uk-icon-level-up:before{content:"\f148"}.uk-icon-level-down:before{content:"\f149"}.uk-icon-check-square:before{content:"\f14a"}.uk-icon-pencil-square:before{content:"\f14b"}.uk-icon-external-link-square:before{content:"\f14c"}.uk-icon-share-square:before{content:"\f14d"}.uk-icon-compass:before{content:"\f14e"}.uk-icon-caret-square-o-down:before,.uk-icon-toggle-down:before{content:"\f150"}.uk-icon-caret-square-o-up:before,.uk-icon-toggle-up:before{content:"\f151"}.uk-icon-caret-square-o-right:before,.uk-icon-toggle-right:before{content:"\f152"}.uk-icon-eur:before,.uk-icon-euro:before{content:"\f153"}.uk-icon-gbp:before{content:"\f154"}.uk-icon-dollar:before,.uk-icon-usd:before{content:"\f155"}.uk-icon-inr:before,.uk-icon-rupee:before{content:"\f156"}.uk-icon-cny:before,.uk-icon-jpy:before,.uk-icon-rmb:before,.uk-icon-yen:before{content:"\f157"}.uk-icon-rouble:before,.uk-icon-rub:before,.uk-icon-ruble:before{content:"\f158"}.uk-icon-krw:before,.uk-icon-won:before{content:"\f159"}.uk-icon-bitcoin:before,.uk-icon-btc:before{content:"\f15a"}.uk-icon-file:before{content:"\f15b"}.uk-icon-file-text:before{content:"\f15c"}.uk-icon-sort-alpha-asc:before{content:"\f15d"}.uk-icon-sort-alpha-desc:before{content:"\f15e"}.uk-icon-sort-amount-asc:before{content:"\f160"}.uk-icon-sort-amount-desc:before{content:"\f161"}.uk-icon-sort-numeric-asc:before{content:"\f162"}.uk-icon-sort-numeric-desc:before{content:"\f163"}.uk-icon-thumbs-up:before{content:"\f164"}.uk-icon-thumbs-down:before{content:"\f165"}.uk-icon-youtube-square:before{content:"\f166"}.uk-icon-youtube:before{content:"\f167"}.uk-icon-xing:before{content:"\f168"}.uk-icon-xing-square:before{content:"\f169"}.uk-icon-youtube-play:before{content:"\f16a"}.uk-icon-dropbox:before{content:"\f16b"}.uk-icon-stack-overflow:before{content:"\f16c"}.uk-icon-instagram:before{content:"\f16d"}.uk-icon-flickr:before{content:"\f16e"}.uk-icon-adn:before{content:"\f170"}.uk-icon-bitbucket:before{content:"\f171"}.uk-icon-bitbucket-square:before{content:"\f172"}.uk-icon-tumblr:before{content:"\f173"}.uk-icon-tumblr-square:before{content:"\f174"}.uk-icon-long-arrow-down:before{content:"\f175"}.uk-icon-long-arrow-up:before{content:"\f176"}.uk-icon-long-arrow-left:before{content:"\f177"}.uk-icon-long-arrow-right:before{content:"\f178"}.uk-icon-apple:before{content:"\f179"}.uk-icon-windows:before{content:"\f17a"}.uk-icon-android:before{content:"\f17b"}.uk-icon-linux:before{content:"\f17c"}.uk-icon-dribbble:before{content:"\f17d"}.uk-icon-skype:before{content:"\f17e"}.uk-icon-foursquare:before{content:"\f180"}.uk-icon-trello:before{content:"\f181"}.uk-icon-female:before{content:"\f182"}.uk-icon-male:before{content:"\f183"}.uk-icon-gittip:before,.uk-icon-gratipay:before{content:"\f184"}.uk-icon-sun-o:before{content:"\f185"}.uk-icon-moon-o:before{content:"\f186"}.uk-icon-archive:before{content:"\f187"}.uk-icon-bug:before{content:"\f188"}.uk-icon-vk:before{content:"\f189"}.uk-icon-weibo:before{content:"\f18a"}.uk-icon-renren:before{content:"\f18b"}.uk-icon-pagelines:before{content:"\f18c"}.uk-icon-stack-exchange:before{content:"\f18d"}.uk-icon-arrow-circle-o-right:before{content:"\f18e"}.uk-icon-arrow-circle-o-left:before{content:"\f190"}.uk-icon-caret-square-o-left:before,.uk-icon-toggle-left:before{content:"\f191"}.uk-icon-dot-circle-o:before{content:"\f192"}.uk-icon-wheelchair:before{content:"\f193"}.uk-icon-vimeo-square:before{content:"\f194"}.uk-icon-try:before,.uk-icon-turkish-lira:before{content:"\f195"}.uk-icon-plus-square-o:before{content:"\f196"}.uk-icon-space-shuttle:before{content:"\f197"}.uk-icon-slack:before{content:"\f198"}.uk-icon-envelope-square:before{content:"\f199"}.uk-icon-wordpress:before{content:"\f19a"}.uk-icon-openid:before{content:"\f19b"}.uk-icon-bank:before,.uk-icon-institution:before,.uk-icon-university:before{content:"\f19c"}.uk-icon-graduation-cap:before,.uk-icon-mortar-board:before{content:"\f19d"}.uk-icon-yahoo:before{content:"\f19e"}.uk-icon-google:before{content:"\f1a0"}.uk-icon-reddit:before{content:"\f1a1"}.uk-icon-reddit-square:before{content:"\f1a2"}.uk-icon-stumbleupon-circle:before{content:"\f1a3"}.uk-icon-stumbleupon:before{content:"\f1a4"}.uk-icon-delicious:before{content:"\f1a5"}.uk-icon-digg:before{content:"\f1a6"}.uk-icon-pied-piper:before{content:"\f1a7"}.uk-icon-pied-piper-alt:before{content:"\f1a8"}.uk-icon-drupal:before{content:"\f1a9"}.uk-icon-joomla:before{content:"\f1aa"}.uk-icon-language:before{content:"\f1ab"}.uk-icon-fax:before{content:"\f1ac"}.uk-icon-building:before{content:"\f1ad"}.uk-icon-child:before{content:"\f1ae"}.uk-icon-paw:before{content:"\f1b0"}.uk-icon-spoon:before{content:"\f1b1"}.uk-icon-cube:before{content:"\f1b2"}.uk-icon-cubes:before{content:"\f1b3"}.uk-icon-behance:before{content:"\f1b4"}.uk-icon-behance-square:before{content:"\f1b5"}.uk-icon-steam:before{content:"\f1b6"}.uk-icon-steam-square:before{content:"\f1b7"}.uk-icon-recycle:before{content:"\f1b8"}.uk-icon-automobile:before,.uk-icon-car:before{content:"\f1b9"}.uk-icon-cab:before,.uk-icon-taxi:before{content:"\f1ba"}.uk-icon-tree:before{content:"\f1bb"}.uk-icon-spotify:before{content:"\f1bc"}.uk-icon-deviantart:before{content:"\f1bd"}.uk-icon-soundcloud:before{content:"\f1be"}.uk-icon-database:before{content:"\f1c0"}.uk-icon-file-pdf-o:before{content:"\f1c1"}.uk-icon-file-word-o:before{content:"\f1c2"}.uk-icon-file-excel-o:before{content:"\f1c3"}.uk-icon-file-powerpoint-o:before{content:"\f1c4"}.uk-icon-file-image-o:before,.uk-icon-file-photo-o:before,.uk-icon-file-picture-o:before{content:"\f1c5"}.uk-icon-file-archive-o:before,.uk-icon-file-zip-o:before{content:"\f1c6"}.uk-icon-file-audio-o:before,.uk-icon-file-sound-o:before{content:"\f1c7"}.uk-icon-file-movie-o:before,.uk-icon-file-video-o:before{content:"\f1c8"}.uk-icon-file-code-o:before{content:"\f1c9"}.uk-icon-vine:before{content:"\f1ca"}.uk-icon-codepen:before{content:"\f1cb"}.uk-icon-jsfiddle:before{content:"\f1cc"}.uk-icon-life-bouy:before,.uk-icon-life-buoy:before,.uk-icon-life-ring:before,.uk-icon-life-saver:before,.uk-icon-support:before{content:"\f1cd"}.uk-icon-circle-o-notch:before{content:"\f1ce"}.uk-icon-ra:before,.uk-icon-rebel:before{content:"\f1d0"}.uk-icon-empire:before,.uk-icon-ge:before{content:"\f1d1"}.uk-icon-git-square:before{content:"\f1d2"}.uk-icon-git:before{content:"\f1d3"}.uk-icon-hacker-news:before{content:"\f1d4"}.uk-icon-tencent-weibo:before{content:"\f1d5"}.uk-icon-qq:before{content:"\f1d6"}.uk-icon-wechat:before,.uk-icon-weixin:before{content:"\f1d7"}.uk-icon-paper-plane:before,.uk-icon-send:before{content:"\f1d8"}.uk-icon-paper-plane-o:before,.uk-icon-send-o:before{content:"\f1d9"}.uk-icon-history:before{content:"\f1da"}.uk-icon-circle-thin:before,.uk-icon-genderless:before{content:"\f1db"}.uk-icon-header:before{content:"\f1dc"}.uk-icon-paragraph:before{content:"\f1dd"}.uk-icon-sliders:before{content:"\f1de"}.uk-icon-share-alt:before{content:"\f1e0"}.uk-icon-share-alt-square:before{content:"\f1e1"}.uk-icon-bomb:before{content:"\f1e2"}.uk-icon-futbol-o:before,.uk-icon-soccer-ball-o:before{content:"\f1e3"}.uk-icon-tty:before{content:"\f1e4"}.uk-icon-binoculars:before{content:"\f1e5"}.uk-icon-plug:before{content:"\f1e6"}.uk-icon-slideshare:before{content:"\f1e7"}.uk-icon-twitch:before{content:"\f1e8"}.uk-icon-yelp:before{content:"\f1e9"}.uk-icon-newspaper-o:before{content:"\f1ea"}.uk-icon-wifi:before{content:"\f1eb"}.uk-icon-calculator:before{content:"\f1ec"}.uk-icon-paypal:before{content:"\f1ed"}.uk-icon-google-wallet:before{content:"\f1ee"}.uk-icon-cc-visa:before{content:"\f1f0"}.uk-icon-cc-mastercard:before{content:"\f1f1"}.uk-icon-cc-discover:before{content:"\f1f2"}.uk-icon-cc-amex:before{content:"\f1f3"}.uk-icon-cc-paypal:before{content:"\f1f4"}.uk-icon-cc-stripe:before{content:"\f1f5"}.uk-icon-bell-slash:before{content:"\f1f6"}.uk-icon-bell-slash-o:before{content:"\f1f7"}.uk-icon-trash:before{content:"\f1f8"}.uk-icon-copyright:before{content:"\f1f9"}.uk-icon-at:before{content:"\f1fa"}.uk-icon-eyedropper:before{content:"\f1fb"}.uk-icon-paint-brush:before{content:"\f1fc"}.uk-icon-birthday-cake:before{content:"\f1fd"}.uk-icon-area-chart:before{content:"\f1fe"}.uk-icon-pie-chart:before{content:"\f200"}.uk-icon-line-chart:before{content:"\f201"}.uk-icon-lastfm:before{content:"\f202"}.uk-icon-lastfm-square:before{content:"\f203"}.uk-icon-toggle-off:before{content:"\f204"}.uk-icon-toggle-on:before{content:"\f205"}.uk-icon-bicycle:before{content:"\f206"}.uk-icon-bus:before{content:"\f207"}.uk-icon-ioxhost:before{content:"\f208"}.uk-icon-angellist:before{content:"\f209"}.uk-icon-cc:before{content:"\f20a"}.uk-icon-ils:before,.uk-icon-shekel:before,.uk-icon-sheqel:before{content:"\f20b"}.uk-icon-meanpath:before{content:"\f20c"}.uk-icon-buysellads:before{content:"\f20d"}.uk-icon-connectdevelop:before{content:"\f20e"}.uk-icon-dashcube:before{content:"\f210"}.uk-icon-forumbee:before{content:"\f211"}.uk-icon-leanpub:before{content:"\f212"}.uk-icon-sellsy:before{content:"\f213"}.uk-icon-shirtsinbulk:before{content:"\f214"}.uk-icon-simplybuilt:before{content:"\f215"}.uk-icon-skyatlas:before{content:"\f216"}.uk-icon-cart-plus:before{content:"\f217"}.uk-icon-cart-arrow-down:before{content:"\f218"}.uk-icon-diamond:before{content:"\f219"}.uk-icon-ship:before{content:"\f21a"}.uk-icon-user-secret:before{content:"\f21b"}.uk-icon-motorcycle:before{content:"\f21c"}.uk-icon-street-view:before{content:"\f21d"}.uk-icon-heartbeat:before{content:"\f21e"}.uk-icon-venus:before{content:"\f221"}.uk-icon-mars:before{content:"\f222"}.uk-icon-mercury:before{content:"\f223"}.uk-icon-transgender:before{content:"\f224"}.uk-icon-transgender-alt:before{content:"\f225"}.uk-icon-venus-double:before{content:"\f226"}.uk-icon-mars-double:before{content:"\f227"}.uk-icon-venus-mars:before{content:"\f228"}.uk-icon-mars-stroke:before{content:"\f229"}.uk-icon-mars-stroke-v:before{content:"\f22a"}.uk-icon-mars-stroke-h:before{content:"\f22b"}.uk-icon-neuter:before{content:"\f22c"}.uk-icon-facebook-official:before{content:"\f230"}.uk-icon-pinterest-p:before{content:"\f231"}.uk-icon-whatsapp:before{content:"\f232"}.uk-icon-server:before{content:"\f233"}.uk-icon-user-plus:before{content:"\f234"}.uk-icon-user-times:before{content:"\f235"}.uk-icon-bed:before,.uk-icon-hotel:before{content:"\f236"}.uk-icon-viacoin:before{content:"\f237"}.uk-icon-train:before{content:"\f238"}.uk-icon-subway:before{content:"\f239"}.uk-icon-medium-logo:before{content:"\f23a"}.uk-close::-moz-focus-inner{border:0;padding:0}.uk-close{-webkit-appearance:none;margin:0;border:none;overflow:visible;font:inherit;color:inherit;text-transform:none;padding:0;background:0 0;display:inline-block;-moz-box-sizing:content-box;box-sizing:content-box;width:20px;line-height:20px;text-align:center;vertical-align:middle;opacity:.3}.uk-close:after{display:block;content:"\f00d";font-family:FontAwesome}.uk-close:focus,.uk-close:hover{opacity:.5;outline:0;color:inherit;text-decoration:none;cursor:pointer}.uk-close-alt{padding:2px;border-radius:50%;background:#eee;opacity:1}.uk-close-alt:focus,.uk-close-alt:hover{opacity:1}.uk-close-alt:after{opacity:.5}.uk-close-alt:focus:after,.uk-close-alt:hover:after{opacity:.8}.uk-badge{display:inline-block;padding:0 5px;background:#00a8e6;font-size:10px;font-weight:700;line-height:14px;color:#fff;text-align:center;vertical-align:middle;text-transform:none}a.uk-badge:hover{color:#fff}.uk-badge-notification{-moz-box-sizing:border-box;box-sizing:border-box;min-width:18px;border-radius:500px;font-size:12px;line-height:18px}.uk-badge-success{background-color:#8cc14c}.uk-badge-warning{background-color:#faa732}.uk-badge-danger{background-color:#da314b}.uk-alert{margin-bottom:15px;padding:10px;background:#ebf7fd;color:#2d7091}*+.uk-alert{margin-top:15px}.uk-alert>:last-child{margin-bottom:0}.uk-alert h1,.uk-alert h2,.uk-alert h3,.uk-alert h4,.uk-alert h5,.uk-alert h6{color:inherit}.uk-alert>.uk-close:first-child{float:right}.uk-alert>.uk-close:first-child+*{margin-top:0}.uk-alert-success{background:#f2fae3;color:#659f13}.uk-alert-warning{background:#fffceb;color:#e28327}.uk-alert-danger{background:#fff1f0;color:#d85030}.uk-alert-large{padding:20px}.uk-alert-large>.uk-close:first-child{margin:-10px -10px 0 0}.uk-thumbnail{display:inline-block;max-width:100%;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:4px;border:1px solid #ddd;background:#fff}a.uk-thumbnail:focus,a.uk-thumbnail:hover{border-color:#aaa;background-color:#fff;text-decoration:none;outline:0}.uk-thumbnail-caption{padding-top:4px;text-align:center;color:#444}.uk-thumbnail-mini{width:150px}.uk-thumbnail-small{width:200px}.uk-thumbnail-medium{width:300px}.uk-thumbnail-large{width:400px}.uk-thumbnail-expand,.uk-thumbnail-expand>img{width:100%}.uk-overlay{display:inline-block;position:relative;max-width:100%;vertical-align:middle;overflow:hidden;-webkit-transform:translateZ(0);margin:0}.uk-overlay.uk-border-circle{-webkit-mask-image:-webkit-radial-gradient(circle,#fff 100%,#000 100%)}.uk-overlay>:first-child{margin-bottom:0}.uk-overlay-panel{position:absolute;top:0;bottom:0;left:0;right:0;padding:20px;color:#fff}.uk-overlay-panel.uk-flex>*>:last-child,.uk-overlay-panel>:last-child{margin-bottom:0}.uk-overlay-panel h1,.uk-overlay-panel h2,.uk-overlay-panel h3,.uk-overlay-panel h4,.uk-overlay-panel h5,.uk-overlay-panel h6{color:inherit}.uk-overlay-panel a:not([class]){color:inherit;text-decoration:underline}.uk-overlay-panel a[class*=uk-icon-]:not(.uk-icon-button){color:inherit}.uk-overlay-hover:not(:hover):not(.uk-hover) .uk-overlay-panel:not(.uk-ignore){opacity:0}.uk-overlay-active :not(.uk-active)>.uk-overlay-panel:not(.uk-ignore){opacity:0}.uk-overlay-background{background:rgba(0,0,0,.5)}.uk-overlay-image{padding:0}.uk-overlay-top{bottom:auto}.uk-overlay-bottom{top:auto}.uk-overlay-left{right:auto}.uk-overlay-right{left:auto}.uk-overlay-icon:before{content:"\f002";position:absolute;top:50%;left:50%;width:50px;height:50px;margin-top:-25px;margin-left:-25px;font-size:50px;line-height:1;font-family:FontAwesome;text-align:center;color:#fff}.uk-overlay-blur,.uk-overlay-fade,.uk-overlay-grayscale,.uk-overlay-scale,.uk-overlay-spin,[class*=uk-overlay-slide]{transition-duration:.3s;transition-timing-function:ease-out;transition-property:opacity transform filter}.uk-overlay-active .uk-overlay-fade,.uk-overlay-active .uk-overlay-scale,.uk-overlay-active .uk-overlay-spin,.uk-overlay-active [class*=uk-overlay-slide]{transition-duration:.8s}.uk-overlay-fade{opacity:.7}.uk-overlay-active .uk-active>.uk-overlay-fade,.uk-overlay-hover:hover .uk-overlay-fade{opacity:1}.uk-overlay-scale{-webkit-transform:scale(1);transform:scale(1)}.uk-overlay-active .uk-active>.uk-overlay-scale,.uk-overlay-hover:hover .uk-overlay-scale{-webkit-transform:scale(1.1);transform:scale(1.1)}.uk-overlay-spin{-webkit-transform:scale(1)rotate(0);transform:scale(1)rotate(0)}.uk-overlay-active .uk-active>.uk-overlay-spin,.uk-overlay-hover:hover .uk-overlay-spin{-webkit-transform:scale(1.1)rotate(3deg);transform:scale(1.1)rotate(3deg)}.uk-overlay-grayscale{-webkit-filter:grayscale(100%);filter:grayscale(100%)}.uk-overlay-active .uk-active>.uk-overlay-grayscale,.uk-overlay-hover:hover .uk-overlay-grayscale{-webkit-filter:grayscale(0);filter:grayscale(0)}[class*=uk-overlay-slide]{opacity:0}.uk-overlay-slide-top{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.uk-overlay-slide-bottom{-webkit-transform:translateY(100%);transform:translateY(100%)}.uk-overlay-slide-left{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.uk-overlay-slide-right{-webkit-transform:translateX(100%);transform:translateX(100%)}.uk-overlay-active .uk-active>[class*=uk-overlay-slide],.uk-overlay-hover:hover [class*=uk-overlay-slide]{opacity:1;-webkit-transform:translateX(0)translateY(0);transform:translateX(0)translateY(0)}.uk-overlay-area{position:absolute;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,.3);opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear;-webkit-transform:translate3d(0,0,0)}.uk-overlay-toggle.uk-hover .uk-overlay-area,.uk-overlay-toggle:hover .uk-overlay-area,.uk-overlay.uk-hover .uk-overlay-area,.uk-overlay:hover .uk-overlay-area{opacity:1}.uk-overlay-area:empty:before{content:"\f002";position:absolute;top:50%;left:50%;width:50px;height:50px;margin-top:-25px;margin-left:-25px;font-size:50px;line-height:1;font-family:FontAwesome;text-align:center;color:#fff}.uk-overlay-area:not(:empty){font-size:0}.uk-overlay-area:not(:empty):before{content:'';display:inline-block;height:100%;vertical-align:middle}.uk-overlay-area-content{display:inline-block;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;vertical-align:middle;font-size:1rem;text-align:center;padding:0 15px;color:#fff}.uk-overlay-area-content>:last-child{margin-bottom:0}.uk-overlay-area-content a:not([class]),.uk-overlay-area-content a:not([class]):hover{color:inherit}.uk-overlay-caption{position:absolute;bottom:0;left:0;right:0;padding:15px;background:rgba(0,0,0,.5);color:#fff;opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear;-webkit-transform:translate3d(0,0,0)}.uk-overlay-toggle.uk-hover .uk-overlay-caption,.uk-overlay-toggle:hover .uk-overlay-caption,.uk-overlay.uk-hover .uk-overlay-caption,.uk-overlay:hover .uk-overlay-caption{opacity:1}[class*=uk-animation-]{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}@media screen{[data-uk-scrollspy*=uk-animation-]:not([data-uk-scrollspy*=target]){opacity:0}}.uk-animation-fade{-webkit-animation-name:uk-fade;animation-name:uk-fade;-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-timing-function:linear!important;animation-timing-function:linear!important}.uk-animation-scale-up{-webkit-animation-name:uk-fade-scale-02;animation-name:uk-fade-scale-02}.uk-animation-scale-down{-webkit-animation-name:uk-fade-scale-18;animation-name:uk-fade-scale-18}.uk-animation-slide-top{-webkit-animation-name:uk-fade-top;animation-name:uk-fade-top}.uk-animation-slide-bottom{-webkit-animation-name:uk-fade-bottom;animation-name:uk-fade-bottom}.uk-animation-slide-left{-webkit-animation-name:uk-fade-left;animation-name:uk-fade-left}.uk-animation-slide-right{-webkit-animation-name:uk-fade-right;animation-name:uk-fade-right}.uk-animation-scale{-webkit-animation-name:uk-scale-12;animation-name:uk-scale-12}.uk-animation-shake{-webkit-animation-name:uk-shake;animation-name:uk-shake}.uk-animation-reverse{-webkit-animation-direction:reverse;animation-direction:reverse;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}.uk-animation-15{-webkit-animation-duration:15s;animation-duration:15s}.uk-animation-top-left{-webkit-transform-origin:0 0;transform-origin:0 0}.uk-animation-top-center{-webkit-transform-origin:50% 0;transform-origin:50% 0}.uk-animation-top-right{-webkit-transform-origin:100% 0;transform-origin:100% 0}.uk-animation-middle-left{-webkit-transform-origin:0 50%;transform-origin:0 50%}.uk-animation-middle-right{-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.uk-animation-bottom-left{-webkit-transform-origin:0 100%;transform-origin:0 100%}.uk-animation-bottom-center{-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.uk-animation-bottom-right{-webkit-transform-origin:100% 100%;transform-origin:100% 100%}.uk-animation-hover:not(:hover),.uk-animation-hover:not(:hover) [class*=uk-animation-],.uk-touch .uk-animation-hover:not(.uk-hover),.uk-touch .uk-animation-hover:not(.uk-hover) [class*=uk-animation-]{-webkit-animation-name:none;animation-name:none}@-webkit-keyframes uk-fade{0%{opacity:0}100%{opacity:1}}@keyframes uk-fade{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes uk-fade-top{0%{opacity:0;-webkit-transform:translateY(-100%)}100%{opacity:1;-webkit-transform:translateY(0)}}@keyframes uk-fade-top{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@-webkit-keyframes uk-fade-bottom{0%{opacity:0;-webkit-transform:translateY(100%)}100%{opacity:1;-webkit-transform:translateY(0)}}@keyframes uk-fade-bottom{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@-webkit-keyframes uk-fade-left{0%{opacity:0;-webkit-transform:translateX(-100%)}100%{opacity:1;-webkit-transform:translateX(0)}}@keyframes uk-fade-left{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@-webkit-keyframes uk-fade-right{0%{opacity:0;-webkit-transform:translateX(100%)}100%{opacity:1;-webkit-transform:translateX(0)}}@keyframes uk-fade-right{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@-webkit-keyframes uk-fade-scale-02{0%{opacity:0;-webkit-transform:scale(.2)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes uk-fade-scale-02{0%{opacity:0;transform:scale(.2)}100%{opacity:1;transform:scale(1)}}@-webkit-keyframes uk-fade-scale-15{0%{opacity:0;-webkit-transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes uk-fade-scale-15{0%{opacity:0;transform:scale(1.5)}100%{opacity:1;transform:scale(1)}}@-webkit-keyframes uk-fade-scale-18{0%{opacity:0;-webkit-transform:scale(1.8)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes uk-fade-scale-18{0%{opacity:0;transform:scale(1.8)}100%{opacity:1;transform:scale(1)}}@-webkit-keyframes uk-slide-left{0%{-webkit-transform:translateX(-100%)}100%{-webkit-transform:translateX(0)}}@keyframes uk-slide-left{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@-webkit-keyframes uk-slide-right{0%{-webkit-transform:translateX(100%)}100%{-webkit-transform:translateX(0)}}@keyframes uk-slide-right{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@-webkit-keyframes uk-slide-left-33{0%{-webkit-transform:translateX(33%)}100%{-webkit-transform:translateX(0)}}@keyframes uk-slide-left-33{0%{transform:translateX(33%)}100%{transform:translateX(0)}}@-webkit-keyframes uk-slide-right-33{0%{-webkit-transform:translateX(-33%)}100%{-webkit-transform:translateX(0)}}@keyframes uk-slide-right-33{0%{transform:translateX(-33%)}100%{transform:translateX(0)}}@-webkit-keyframes uk-scale-12{0%{-webkit-transform:scale(1.2)}100%{-webkit-transform:scale(1)}}@keyframes uk-scale-12{0%{transform:scale(1.2)}100%{transform:scale(1)}}@-webkit-keyframes uk-rotate{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(359deg)}}@keyframes uk-rotate{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}@-webkit-keyframes uk-shake{0%,100%{-webkit-transform:translateX(0)}10%{-webkit-transform:translateX(-9px)}20%{-webkit-transform:translateX(8px)}30%{-webkit-transform:translateX(-7px)}40%{-webkit-transform:translateX(6px)}50%{-webkit-transform:translateX(-5px)}60%{-webkit-transform:translateX(4px)}70%{-webkit-transform:translateX(-3px)}80%{-webkit-transform:translateX(2px)}90%{-webkit-transform:translateX(-1px)}}@keyframes uk-shake{0%,100%{transform:translateX(0)}10%{transform:translateX(-9px)}20%{transform:translateX(8px)}30%{transform:translateX(-7px)}40%{transform:translateX(6px)}50%{transform:translateX(-5px)}60%{transform:translateX(4px)}70%{transform:translateX(-3px)}80%{transform:translateX(2px)}90%{transform:translateX(-1px)}}@-webkit-keyframes uk-slide-top-fixed{0%{opacity:0;-webkit-transform:translateY(-10px)}100%{opacity:1;-webkit-transform:translateY(0)}}@keyframes uk-slide-top-fixed{0%{opacity:0;transform:translateY(-10px)}100%{opacity:1;transform:translateY(0)}}@-webkit-keyframes uk-slide-bottom-fixed{0%{opacity:0;-webkit-transform:translateY(10px)}100%{opacity:1;-webkit-transform:translateY(0)}}@keyframes uk-slide-bottom-fixed{0%{opacity:0;transform:translateY(10px)}100%{opacity:1;transform:translateY(0)}}.uk-dropdown{display:none;position:absolute;top:100%;left:0;z-index:1020;-moz-box-sizing:border-box;box-sizing:border-box;width:200px;margin-top:5px;padding:15px;background:#f5f5f5;color:#444;font-size:1rem;vertical-align:top}.uk-open>.uk-dropdown{display:block;-webkit-animation:uk-fade .2s ease-in-out;animation:uk-fade .2s ease-in-out;-webkit-transform-origin:0 0;transform-origin:0 0}.uk-dropdown-flip{left:auto;right:0}.uk-dropdown-up{top:auto;bottom:100%;margin-top:auto;margin-bottom:5px}.uk-dropdown .uk-nav{margin:0 -15px}.uk-grid .uk-dropdown-grid+.uk-dropdown-grid{margin-top:15px}.uk-dropdown-grid>[class*=uk-width-]>.uk-panel+.uk-panel{margin-top:15px}@media (min-width:768px){.uk-dropdown:not(.uk-dropdown-stack)>.uk-dropdown-grid{margin-left:-15px;margin-right:-15px}.uk-dropdown:not(.uk-dropdown-stack)>.uk-dropdown-grid>[class*=uk-width-]{padding-left:15px;padding-right:15px}.uk-dropdown:not(.uk-dropdown-stack)>.uk-dropdown-grid>[class*=uk-width-]:nth-child(n+2){border-left:1px solid #ddd}.uk-dropdown-width-2:not(.uk-dropdown-stack){width:400px}.uk-dropdown-width-3:not(.uk-dropdown-stack){width:600px}.uk-dropdown-width-4:not(.uk-dropdown-stack){width:800px}.uk-dropdown-width-5:not(.uk-dropdown-stack){width:1000px}}@media (max-width:767px){.uk-dropdown-grid>[class*=uk-width-]{width:100%}.uk-dropdown-grid>[class*=uk-width-]:nth-child(n+2){margin-top:15px}}.uk-dropdown-stack>.uk-dropdown-grid>[class*=uk-width-]{width:100%}.uk-dropdown-stack>.uk-dropdown-grid>[class*=uk-width-]:nth-child(n+2){margin-top:15px}.uk-dropdown-small{min-width:150px;width:auto;padding:5px;white-space:nowrap}.uk-dropdown-small .uk-nav{margin:0 -5px}.uk-dropdown-navbar{margin-top:0;background:#f5f5f5;color:#444}.uk-open>.uk-dropdown-navbar{-webkit-animation:uk-slide-top-fixed .2s ease-in-out;animation:uk-slide-top-fixed .2s ease-in-out}.uk-dropdown-scrollable{overflow-y:auto;max-height:200px}.uk-modal{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1010;overflow-y:auto;-webkit-overflow-scrolling:touch;background:rgba(0,0,0,.6);opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear;touch-action:cross-slide-y pinch-zoom double-tap-zoom;-webkit-transform:translateZ(0);transform:translateZ(0)}.uk-modal.uk-open{opacity:1}.uk-modal-page,.uk-modal-page body{overflow:hidden}.uk-modal-dialog{position:relative;-moz-box-sizing:border-box;box-sizing:border-box;margin:50px auto;padding:20px;width:600px;max-width:100%;max-width:calc(100% - 20px);background:#fff;opacity:0;-webkit-transform:translateY(-100px);transform:translateY(-100px);-webkit-transition:opacity .3s linear,-webkit-transform .3s ease-out;transition:opacity .3s linear,transform .3s ease-out}@media (max-width:767px){.uk-modal-dialog{width:auto;margin:10px auto}}.uk-open .uk-modal-dialog{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}.uk-modal-dialog>:not([class*=uk-modal-]):last-child{margin-bottom:0}.uk-modal-dialog>.uk-close:first-child{margin:-10px -10px 0 0;float:right}.uk-modal-dialog>.uk-close:first-child+:not([class*=uk-modal-]){margin-top:0}.uk-modal-dialog-lightbox{margin:15px auto;padding:0;max-width:95%;max-width:calc(100% - 30px)}.uk-modal-dialog-lightbox>.uk-close:first-child{position:absolute;top:-12px;right:-12px;margin:0;float:none}@media (max-width:767px){.uk-modal-dialog-lightbox>.uk-close:first-child{top:-7px;right:-7px}}@media (min-width:768px){.uk-modal-dialog-large{width:930px}}@media (min-width:1220px){.uk-modal-dialog-large{width:1130px}}.uk-modal-header{margin-bottom:15px}.uk-modal-footer{margin-top:15px}.uk-modal-footer>:last-child,.uk-modal-header>:last-child{margin-bottom:0}.uk-modal-caption{position:absolute;left:0;right:0;bottom:-20px;margin-bottom:-10px;color:#fff;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uk-modal-spinner{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);font-size:25px;color:#ddd}.uk-modal-spinner:after{content:"\f110";font-family:FontAwesome;-webkit-animation:uk-rotate 2s infinite linear;animation:uk-rotate 2s infinite linear}.uk-offcanvas{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;touch-action:none;background:rgba(0,0,0,.1)}.uk-offcanvas.uk-active{display:block}.uk-offcanvas-page{position:fixed;-webkit-transition:margin-left .3s ease-in-out;transition:margin-left .3s ease-in-out}.uk-offcanvas-bar{position:fixed;top:0;bottom:0;left:0;-webkit-transform:translateX(-100%);transform:translateX(-100%);z-index:1001;width:270px;max-width:100%;background:#333;overflow-y:auto;-webkit-overflow-scrolling:touch;-webkit-transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;-ms-scroll-chaining:none}.uk-offcanvas.uk-active .uk-offcanvas-bar.uk-offcanvas-bar-show{-webkit-transform:translateX(0);transform:translateX(0)}.uk-offcanvas-bar-flip{left:auto;right:0;-webkit-transform:translateX(100%);transform:translateX(100%)}.uk-offcanvas .uk-panel{margin:20px 15px;color:#777}.uk-offcanvas .uk-panel-title{color:#ccc}.uk-offcanvas .uk-panel a:not([class]){color:#ccc}.uk-offcanvas .uk-panel a:not([class]):hover{color:#fff}.uk-switcher{margin:0;padding:0;list-style:none;touch-action:cross-slide-y pinch-zoom double-tap-zoom}.uk-switcher>:not(.uk-active){display:none}.uk-text-small{font-size:11px;line-height:16px}.uk-text-large{font-size:18px;line-height:24px;font-weight:400}.uk-text-bold{font-weight:700}.uk-text-muted{color:#999!important}.uk-text-primary{color:#2d7091!important}.uk-text-success{color:#659f13!important}.uk-text-warning{color:#e28327!important}.uk-text-danger{color:#d85030!important}.uk-text-contrast{color:#fff!important}.uk-text-left{text-align:left!important}.uk-text-right{text-align:right!important}.uk-text-center{text-align:center!important}.uk-text-justify{text-align:justify!important}.uk-text-top{vertical-align:top!important}.uk-text-middle{vertical-align:middle!important}.uk-text-bottom{vertical-align:bottom!important}@media (max-width:959px){.uk-text-center-medium{text-align:center!important}.uk-text-left-medium{text-align:left!important}}@media (max-width:767px){.uk-text-center-small{text-align:center!important}.uk-text-left-small{text-align:left!important}}.uk-text-nowrap{white-space:nowrap}.uk-text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uk-text-break{word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;-moz-hyphens:auto;hyphens:auto}.uk-container{-moz-box-sizing:border-box;box-sizing:border-box;max-width:980px;padding:0 25px}@media (min-width:1220px){.uk-container{max-width:1200px;padding:0 35px}}.uk-container:after,.uk-container:before{content:"";display:table}.uk-container:after{clear:both}.uk-container-center{margin-left:auto;margin-right:auto}.uk-clearfix:before{content:"";display:table-cell}.uk-clearfix:after{content:"";display:table;clear:both}.uk-nbfc{overflow:hidden}.uk-nbfc-alt{display:table-cell;width:10000px}.uk-float-left{float:left}.uk-float-right{float:right}[class*=uk-float-]{max-width:100%}[class*=uk-align-]{display:block;margin-bottom:15px}.uk-align-left{margin-right:15px;float:left}.uk-align-right{margin-left:15px;float:right}@media (min-width:768px){.uk-align-medium-left{margin-right:15px;margin-bottom:15px;float:left}.uk-align-medium-right{margin-left:15px;margin-bottom:15px;float:right}}.uk-align-center{margin-left:auto;margin-right:auto}.uk-vertical-align{font-size:0}.uk-vertical-align:before{content:'';display:inline-block;height:100%;vertical-align:middle}.uk-vertical-align-bottom,.uk-vertical-align-middle{display:inline-block;max-width:100%;font-size:1rem}.uk-vertical-align-middle{vertical-align:middle}.uk-vertical-align-bottom{vertical-align:bottom}[class*=uk-height]{-moz-box-sizing:border-box;box-sizing:border-box}.uk-height-1-1{height:100%}.uk-height-viewport{height:100vh;min-height:600px}.uk-responsive-height,.uk-responsive-width{-moz-box-sizing:border-box;box-sizing:border-box}.uk-responsive-width{max-width:100%!important;height:auto}.uk-responsive-height{max-height:100%;width:auto}.uk-margin{margin-bottom:15px}*+.uk-margin{margin-top:15px}.uk-margin-top{margin-top:15px!important}.uk-margin-bottom{margin-bottom:15px!important}.uk-margin-left{margin-left:15px!important}.uk-margin-right{margin-right:15px!important}.uk-margin-large{margin-bottom:50px}*+.uk-margin-large{margin-top:50px}.uk-margin-large-top{margin-top:50px!important}.uk-margin-large-bottom{margin-bottom:50px!important}.uk-margin-large-left{margin-left:50px!important}.uk-margin-large-right{margin-right:50px!important}.uk-margin-small{margin-bottom:5px}*+.uk-margin-small{margin-top:5px}.uk-margin-small-top{margin-top:5px!important}.uk-margin-small-bottom{margin-bottom:5px!important}.uk-margin-small-left{margin-left:5px!important}.uk-margin-small-right{margin-right:5px!important}.uk-margin-remove{margin:0!important}.uk-margin-top-remove{margin-top:0!important}.uk-margin-bottom-remove{margin-bottom:0!important}.uk-padding-remove{padding:0!important}.uk-padding-top-remove{padding-top:0!important}.uk-padding-bottom-remove{padding-bottom:0!important}.uk-padding-vertical-remove{padding-top:0!important;padding-bottom:0!important}.uk-border-circle{border-radius:50%}.uk-border-rounded{border-radius:5px}.uk-heading-large{font-size:36px;line-height:42px}@media (min-width:768px){.uk-heading-large{font-size:52px;line-height:64px}}.uk-link-muted,.uk-link-muted a{color:#444}.uk-link-muted a:hover,.uk-link-muted:hover{color:#444}.uk-link-reset,.uk-link-reset a,.uk-link-reset a:focus,.uk-link-reset a:hover,.uk-link-reset:focus,.uk-link-reset:hover{color:inherit;text-decoration:none}.uk-scrollable-text{height:300px;overflow-y:scroll;-webkit-overflow-scrolling:touch;resize:both}.uk-scrollable-box{-moz-box-sizing:border-box;box-sizing:border-box;height:170px;padding:10px;border:1px solid #ddd;overflow:auto;-webkit-overflow-scrolling:touch;resize:both}.uk-scrollable-box>:last-child{margin-bottom:0}.uk-overflow-hidden{overflow:hidden}.uk-overflow-container{overflow:auto;-webkit-overflow-scrolling:touch}.uk-overflow-container>:last-child{margin-bottom:0}.uk-position-absolute,[class*=uk-position-top],[class*=uk-position-bottom]{position:absolute!important}.uk-position-top{top:0;width:100%}.uk-position-bottom{bottom:0;width:100%}.uk-position-top-left{top:0;left:0}.uk-position-top-right{top:0;right:0}.uk-position-bottom-left{bottom:0;left:0}.uk-position-bottom-right{bottom:0;right:0}.uk-position-cover{position:absolute;top:0;bottom:0;left:0;right:0}.uk-position-relative{position:relative!important}.uk-position-z-index{z-index:1}.uk-display-block{display:block!important}.uk-display-inline{display:inline!important}.uk-display-inline-block{display:inline-block!important}@media (min-width:960px){.uk-visible-small{display:none!important}.uk-visible-medium{display:none!important}.uk-hidden-large{display:none!important}}@media (min-width:768px)and (max-width:959px){.uk-visible-small{display:none!important}.uk-visible-large{display:none!important}.uk-hidden-medium{display:none!important}}@media (max-width:767px){.uk-visible-medium{display:none!important}.uk-visible-large{display:none!important}.uk-hidden-small{display:none!important}}.uk-hidden{display:none!important;visibility:hidden!important}.uk-invisible{visibility:hidden!important}.uk-visible-hover:hover .uk-hidden,.uk-visible-hover:hover .uk-invisible{display:block!important;visibility:visible!important}.uk-visible-hover-inline:hover .uk-hidden,.uk-visible-hover-inline:hover .uk-invisible{display:inline-block!important;visibility:visible!important}.uk-notouch .uk-hidden-notouch,.uk-touch .uk-hidden-touch{display:none!important}.uk-flex{display:-ms-flexbox;display:-webkit-flex;display:flex}.uk-flex-inline{display:-ms-inline-flexbox;display:-webkit-inline-flex;display:inline-flex}.uk-flex-inline>*,.uk-flex>*{-ms-flex-negative:1}.uk-flex-top{-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start}.uk-flex-middle{-ms-flex-align:center;-webkit-align-items:center;align-items:center}.uk-flex-bottom{-ms-flex-align:end;-webkit-align-items:flex-end;align-items:flex-end}.uk-flex-center{-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}.uk-flex-right{-ms-flex-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.uk-flex-space-between{-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.uk-flex-space-around{-ms-flex-pack:distribute;-webkit-justify-content:space-around;justify-content:space-around}.uk-flex-row-reverse{-ms-flex-direction:row-reverse;-webkit-flex-direction:row-reverse;flex-direction:row-reverse}.uk-flex-column{-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.uk-flex-column-reverse{-ms-flex-direction:column-reverse;-webkit-flex-direction:column-reverse;flex-direction:column-reverse}.uk-flex-nowrap{-ms-flex-wrap:nowrap;-webkit-flex-wrap:nowrap;flex-wrap:nowrap}.uk-flex-wrap{-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap}.uk-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;-webkit-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.uk-flex-wrap-top{-ms-flex-line-pack:start;-webkit-align-content:flex-start;align-content:flex-start}.uk-flex-wrap-middle{-ms-flex-line-pack:center;-webkit-align-content:center;align-content:center}.uk-flex-wrap-bottom{-ms-flex-line-pack:end;-webkit-align-content:flex-end;align-content:flex-end}.uk-flex-wrap-space-between{-ms-flex-line-pack:justify;-webkit-align-content:space-between;align-content:space-between}.uk-flex-wrap-space-around{-ms-flex-line-pack:distribute;-webkit-align-content:space-around;align-content:space-around}.uk-flex-order-first{-ms-flex-order:-1;-webkit-order:-1;order:-1}.uk-flex-order-last{-ms-flex-order:99;-webkit-order:99;order:99}@media (min-width:480px){.uk-flex-order-first-small{-ms-flex-order:-1;-webkit-order:-1;order:-1}.uk-flex-order-last-small{-ms-flex-order:99;-webkit-order:99;order:99}}@media (min-width:768px){.uk-flex-order-first-medium{-ms-flex-order:-1;-webkit-order:-1;order:-1}.uk-flex-order-last-medium{-ms-flex-order:99;-webkit-order:99;order:99}}@media (min-width:960px){.uk-flex-order-first-large{-ms-flex-order:-1;-webkit-order:-1;order:-1}.uk-flex-order-last-large{-ms-flex-order:99;-webkit-order:99;order:99}}@media (min-width:1220px){.uk-flex-order-first-xlarge{-ms-flex-order:-1;-webkit-order:-1;order:-1}.uk-flex-order-last-xlarge{-ms-flex-order:99;-webkit-order:99;order:99}}.uk-flex-item-none{-ms-flex:none;-webkit-flex:none;flex:none}.uk-flex-item-auto{-ms-flex:auto;-webkit-flex:auto;flex:auto;-ms-flex-negative:1}.uk-flex-item-1{-ms-flex:1;-webkit-flex:1;flex:1}.uk-contrast{color:#fff}.uk-contrast .uk-link,.uk-contrast a:not([class]){color:rgba(255,255,255,.7);text-decoration:none}.uk-contrast .uk-link:hover,.uk-contrast a:not([class]):hover{color:#fff;text-decoration:underline}.uk-contrast :not(pre)>code,.uk-contrast :not(pre)>kbd,.uk-contrast :not(pre)>samp{color:#fff}.uk-contrast em{color:#fff}.uk-contrast h1,.uk-contrast h2,.uk-contrast h3,.uk-contrast h4,.uk-contrast h5,.uk-contrast h6{color:#fff}.uk-contrast hr{border-top-color:rgba(255,255,255,.2)}.uk-contrast .uk-nav li>a,.uk-contrast .uk-nav li>a:hover{text-decoration:none}.uk-contrast .uk-nav-side>li>a{color:#fff}.uk-contrast .uk-nav-side>li>a:focus,.uk-contrast .uk-nav-side>li>a:hover{background:rgba(255,255,255,.1);color:#fff}.uk-contrast .uk-nav-side>li.uk-active>a{background:#fff;color:#444}.uk-contrast .uk-nav-side .uk-nav-header{color:#fff}.uk-contrast .uk-nav-side .uk-nav-divider{border-top-color:rgba(255,255,255,.2)}.uk-contrast .uk-nav-side ul a{color:rgba(255,255,255,.7)}.uk-contrast .uk-nav-side ul a:hover{color:#fff}.uk-contrast .uk-subnav>*>a{color:rgba(255,255,255,.7);text-decoration:none}.uk-contrast .uk-subnav>*>a:focus,.uk-contrast .uk-subnav>*>a:hover{color:#fff;text-decoration:none}.uk-contrast .uk-subnav>.uk-active>a{color:#fff}.uk-contrast .uk-subnav-line>:nth-child(n+2):before{border-left-color:rgba(255,255,255,.2)}.uk-contrast .uk-subnav-pill>*>a:focus,.uk-contrast .uk-subnav-pill>*>a:hover{background:rgba(255,255,255,.7);color:#444;text-decoration:none}.uk-contrast .uk-subnav-pill>.uk-active>a{background:#fff;color:#444}.uk-contrast .uk-list-line>li:nth-child(n+2){border-top-color:rgba(255,255,255,.2)}.uk-contrast .uk-form input:not([type]),.uk-contrast .uk-form input[type=text],.uk-contrast .uk-form input[type=password],.uk-contrast .uk-form input[type=email],.uk-contrast .uk-form input[type=url],.uk-contrast .uk-form input[type=search],.uk-contrast .uk-form input[type=tel],.uk-contrast .uk-form input[type=number],.uk-contrast .uk-form input[type=datetime],.uk-contrast .uk-form input[type=datetime-local],.uk-contrast .uk-form input[type=date],.uk-contrast .uk-form input[type=month],.uk-contrast .uk-form input[type=time],.uk-contrast .uk-form input[type=week],.uk-contrast .uk-form input[type=color],.uk-contrast .uk-form select,.uk-contrast .uk-form textarea{border-color:rgba(255,255,255,.8);background:rgba(255,255,255,.8);color:#444;background-clip:padding-box}.uk-contrast .uk-form input:not([type]):focus,.uk-contrast .uk-form input[type=text]:focus,.uk-contrast .uk-form input[type=password]:focus,.uk-contrast .uk-form input[type=email]:focus,.uk-contrast .uk-form input[type=url]:focus,.uk-contrast .uk-form input[type=search]:focus,.uk-contrast .uk-form input[type=tel]:focus,.uk-contrast .uk-form input[type=number]:focus,.uk-contrast .uk-form input[type=datetime]:focus,.uk-contrast .uk-form input[type=datetime-local]:focus,.uk-contrast .uk-form input[type=date]:focus,.uk-contrast .uk-form input[type=month]:focus,.uk-contrast .uk-form input[type=time]:focus,.uk-contrast .uk-form input[type=week]:focus,.uk-contrast .uk-form input[type=color]:focus,.uk-contrast .uk-form select:focus,.uk-contrast .uk-form textarea:focus{border-color:#fff;background:#fff;color:#444}.uk-contrast .uk-form :-ms-input-placeholder{color:rgba(68,68,68,.7)!important}.uk-contrast .uk-form ::-moz-placeholder{color:rgba(68,68,68,.7)}.uk-contrast .uk-form ::-webkit-input-placeholder{color:rgba(68,68,68,.7)}.uk-contrast .uk-button{color:#444;background:#fff}.uk-contrast .uk-button:focus,.uk-contrast .uk-button:hover{background-color:rgba(255,255,255,.8);color:#444}.uk-contrast .uk-button.uk-active,.uk-contrast .uk-button:active{background-color:rgba(255,255,255,.7);color:#444}.uk-contrast .uk-button-primary{background-color:#00a8e6;color:#fff}.uk-contrast .uk-button-primary:focus,.uk-contrast .uk-button-primary:hover{background-color:#35b3ee;color:#fff}.uk-contrast .uk-button-primary.uk-active,.uk-contrast .uk-button-primary:active{background-color:#0091ca;color:#fff}.uk-contrast .uk-icon-hover{color:rgba(255,255,255,.7)}.uk-contrast .uk-icon-hover:hover{color:#fff}.uk-contrast .uk-icon-button{background:#fff;color:#444}.uk-contrast .uk-icon-button:focus,.uk-contrast .uk-icon-button:hover{background-color:rgba(255,255,255,.8);color:#444}.uk-contrast .uk-icon-button:active{background-color:rgba(255,255,255,.7);color:#444}.uk-contrast .uk-text-muted{color:rgba(255,255,255,.6)!important}.uk-contrast .uk-text-primary{color:#2d7091!important}@media print{*{background:0 0!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}} \ No newline at end of file diff --git a/media/uikit/fonts/FontAwesome.otf b/media/uikit/fonts/FontAwesome.otf new file mode 100644 index 00000000..f7936cc1 Binary files /dev/null and b/media/uikit/fonts/FontAwesome.otf differ diff --git a/media/uikit/fonts/fontawesome-webfont.eot b/media/uikit/fonts/fontawesome-webfont.eot new file mode 100644 index 00000000..33b2bb80 Binary files /dev/null and b/media/uikit/fonts/fontawesome-webfont.eot differ diff --git a/media/uikit/fonts/fontawesome-webfont.ttf b/media/uikit/fonts/fontawesome-webfont.ttf new file mode 100644 index 00000000..ed9372f8 Binary files /dev/null and b/media/uikit/fonts/fontawesome-webfont.ttf differ diff --git a/media/uikit/fonts/fontawesome-webfont.woff b/media/uikit/fonts/fontawesome-webfont.woff new file mode 100644 index 00000000..8b280b98 Binary files /dev/null and b/media/uikit/fonts/fontawesome-webfont.woff differ diff --git a/media/uikit/fonts/fontawesome-webfont.woff2 b/media/uikit/fonts/fontawesome-webfont.woff2 new file mode 100644 index 00000000..3311d585 Binary files /dev/null and b/media/uikit/fonts/fontawesome-webfont.woff2 differ diff --git a/media/uikit/fonts/index.html b/media/uikit/fonts/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/uikit/fonts/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/uikit/index.html b/media/uikit/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/uikit/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/uikit/js/components/accordion.js b/media/uikit/js/components/accordion.js new file mode 100644 index 00000000..d8a62c62 --- /dev/null +++ b/media/uikit/js/components/accordion.js @@ -0,0 +1,172 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-accordion", ["uikit"], function(){ + return component || addon(UIkit); + }); + } +})(function(UI){ + + "use strict"; + + UI.component('accordion', { + + defaults: { + showfirst : true, + collapse : true, + animate : true, + easing : 'swing', + duration : 300, + toggle : '.uk-accordion-title', + containers : '.uk-accordion-content', + clsactive : 'uk-active' + }, + + boot: function() { + + // init code + UI.ready(function(context) { + + setTimeout(function(){ + + UI.$("[data-uk-accordion]", context).each(function(){ + + var ele = UI.$(this); + + if(!ele.data("accordion")) { + UI.accordion(ele, UI.Utils.options(ele.attr('data-uk-accordion'))); + } + }); + + }, 0); + }); + }, + + init: function() { + + var $this = this; + + this.element.on('click.uikit.accordion', this.options.toggle, function(e) { + + e.preventDefault(); + + $this.toggleItem(UI.$(this).data('wrapper'), $this.options.animate, $this.options.collapse); + }); + + this.update(); + + if (this.options.showfirst) { + this.toggleItem(this.toggle.eq(0).data('wrapper'), false, false); + } + }, + + toggleItem: function(wrapper, animated, collapse) { + + var $this = this; + + wrapper.data('toggle').toggleClass(this.options.clsactive); + + var active = wrapper.data('toggle').hasClass(this.options.clsactive); + + if (collapse) { + this.toggle.not(wrapper.data('toggle')).removeClass(this.options.clsactive); + this.content.not(wrapper.data('content')).parent().stop().css('overflow', 'hidden').animate({ height: 0 }, {easing: this.options.easing, duration: animated ? this.options.duration : 0}).attr('aria-expanded', 'false'); + } + + wrapper.stop().css('overflow', 'hidden'); + + if (animated) { + + wrapper.animate({ height: active ? getHeight(wrapper.data('content')) : 0 }, {easing: this.options.easing, duration: this.options.duration, complete: function() { + + if (active) { + wrapper.css({'overflow': '', 'height': 'auto'}); + UI.Utils.checkDisplay(wrapper.data('content')); + } + + $this.trigger('display.uk.check'); + }}); + + } else { + + wrapper.height(active ? 'auto' : 0); + + if (active) { + wrapper.css({'overflow': ''}); + UI.Utils.checkDisplay(wrapper.data('content')); + } + + this.trigger('display.uk.check'); + } + + // Update ARIA + wrapper.attr('aria-expanded', active); + + this.element.trigger('toggle.uk.accordion', [active, wrapper.data('toggle'), wrapper.data('content')]); + }, + + update: function() { + + var $this = this, $content, $wrapper, $toggle; + + this.toggle = this.find(this.options.toggle); + this.content = this.find(this.options.containers); + + this.content.each(function(index) { + + $content = UI.$(this); + + if ($content.parent().data('wrapper')) { + $wrapper = $content.parent(); + } else { + $wrapper = UI.$(this).wrap('<div data-wrapper="true" style="overflow:hidden;height:0;position:relative;"></div>').parent(); + + // Init ARIA + $wrapper.attr('aria-expanded', 'false'); + } + + $toggle = $this.toggle.eq(index); + + $wrapper.data('toggle', $toggle); + $wrapper.data('content', $content); + $toggle.data('wrapper', $wrapper); + $content.data('wrapper', $wrapper); + }); + + this.element.trigger('update.uk.accordion', [this]); + } + + }); + + // helper + + function getHeight(ele) { + + var $ele = UI.$(ele), height = "auto"; + + if ($ele.is(":visible")) { + height = $ele.outerHeight(); + } else { + + var tmp = { + position : $ele.css("position"), + visibility : $ele.css("visibility"), + display : $ele.css("display") + }; + + height = $ele.css({position: 'absolute', visibility: 'hidden', display: 'block'}).outerHeight(); + + $ele.css(tmp); // reset element + } + + return height; + } + + return UI.accordion; +}); diff --git a/media/uikit/js/components/accordion.min.js b/media/uikit/js/components/accordion.min.js new file mode 100644 index 00000000..7da07243 --- /dev/null +++ b/media/uikit/js/components/accordion.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var i;window.UIkit&&(i=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-accordion",["uikit"],function(){return i||t(UIkit)})}(function(t){"use strict";function i(i){var o=t.$(i),e="auto";if(o.is(":visible"))e=o.outerHeight();else{var a={position:o.css("position"),visibility:o.css("visibility"),display:o.css("display")};e=o.css({position:"absolute",visibility:"hidden",display:"block"}).outerHeight(),o.css(a)}return e}return t.component("accordion",{defaults:{showfirst:!0,collapse:!0,animate:!0,easing:"swing",duration:300,toggle:".uk-accordion-title",containers:".uk-accordion-content",clsactive:"uk-active"},boot:function(){t.ready(function(i){setTimeout(function(){t.$("[data-uk-accordion]",i).each(function(){var i=t.$(this);i.data("accordion")||t.accordion(i,t.Utils.options(i.attr("data-uk-accordion")))})},0)})},init:function(){var i=this;this.element.on("click.uikit.accordion",this.options.toggle,function(o){o.preventDefault(),i.toggleItem(t.$(this).data("wrapper"),i.options.animate,i.options.collapse)}),this.update(),this.options.showfirst&&this.toggleItem(this.toggle.eq(0).data("wrapper"),!1,!1)},toggleItem:function(o,e,a){var n=this;o.data("toggle").toggleClass(this.options.clsactive);var s=o.data("toggle").hasClass(this.options.clsactive);a&&(this.toggle.not(o.data("toggle")).removeClass(this.options.clsactive),this.content.not(o.data("content")).parent().stop().css("overflow","hidden").animate({height:0},{easing:this.options.easing,duration:e?this.options.duration:0}).attr("aria-expanded","false")),o.stop().css("overflow","hidden"),e?o.animate({height:s?i(o.data("content")):0},{easing:this.options.easing,duration:this.options.duration,complete:function(){s&&(o.css({overflow:"",height:"auto"}),t.Utils.checkDisplay(o.data("content"))),n.trigger("display.uk.check")}}):(o.height(s?"auto":0),s&&(o.css({overflow:""}),t.Utils.checkDisplay(o.data("content"))),this.trigger("display.uk.check")),o.attr("aria-expanded",s),this.element.trigger("toggle.uk.accordion",[s,o.data("toggle"),o.data("content")])},update:function(){var i,o,e,a=this;this.toggle=this.find(this.options.toggle),this.content=this.find(this.options.containers),this.content.each(function(n){i=t.$(this),i.parent().data("wrapper")?o=i.parent():(o=t.$(this).wrap('<div data-wrapper="true" style="overflow:hidden;height:0;position:relative;"></div>').parent(),o.attr("aria-expanded","false")),e=a.toggle.eq(n),o.data("toggle",e),o.data("content",i),e.data("wrapper",o),i.data("wrapper",o)}),this.element.trigger("update.uk.accordion",[this])}}),t.accordion}); \ No newline at end of file diff --git a/media/uikit/js/components/autocomplete.js b/media/uikit/js/components/autocomplete.js new file mode 100644 index 00000000..7031f945 --- /dev/null +++ b/media/uikit/js/components/autocomplete.js @@ -0,0 +1,336 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-autocomplete", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + var active; + + UI.component('autocomplete', { + + defaults: { + minLength: 3, + param: 'search', + method: 'post', + delay: 300, + loadingClass: 'uk-loading', + flipDropdown: false, + skipClass: 'uk-skip', + hoverClass: 'uk-active', + source: null, + renderer: null, + + // template + + template: '<ul class="uk-nav uk-nav-autocomplete uk-autocomplete-results">{{~items}}<li data-value="{{$item.value}}"><a>{{$item.value}}</a></li>{{/items}}</ul>' + }, + + visible : false, + value : null, + selected : null, + + boot: function() { + + // init code + UI.$html.on("focus.autocomplete.uikit", "[data-uk-autocomplete]", function(e) { + + var ele = UI.$(this); + + if (!ele.data("autocomplete")) { + var obj = UI.autocomplete(ele, UI.Utils.options(ele.attr("data-uk-autocomplete"))); + } + }); + + // register outer click for autocompletes + UI.$html.on("click.autocomplete.uikit", function(e) { + if (active && e.target!=active.input[0]) active.hide(); + }); + }, + + init: function() { + + var $this = this, + select = false, + trigger = UI.Utils.debounce(function(e) { + if(select) { + return (select = false); + } + $this.handle(); + }, this.options.delay); + + + this.dropdown = this.find('.uk-dropdown'); + this.template = this.find('script[type="text/autocomplete"]').html(); + this.template = UI.Utils.template(this.template || this.options.template); + this.input = this.find("input:first").attr("autocomplete", "off"); + + if (!this.dropdown.length) { + this.dropdown = UI.$('<div class="uk-dropdown"></div>').appendTo(this.element); + } + + if (this.options.flipDropdown) { + this.dropdown.addClass('uk-dropdown-flip'); + } + + this.dropdown.attr('aria-expanded', 'false'); + + this.input.on({ + "keydown": function(e) { + + if (e && e.which && !e.shiftKey) { + + switch (e.which) { + case 13: // enter + select = true; + + if ($this.selected) { + e.preventDefault(); + $this.select(); + } + break; + case 38: // up + e.preventDefault(); + $this.pick('prev', true); + break; + case 40: // down + e.preventDefault(); + $this.pick('next', true); + break; + case 27: + case 9: // esc, tab + $this.hide(); + break; + default: + break; + } + } + + }, + "keyup": trigger + }); + + this.dropdown.on("click", ".uk-autocomplete-results > *", function(){ + $this.select(); + }); + + this.dropdown.on("mouseover", ".uk-autocomplete-results > *", function(){ + $this.pick(UI.$(this)); + }); + + this.triggercomplete = trigger; + }, + + handle: function() { + + var $this = this, old = this.value; + + this.value = this.input.val(); + + if (this.value.length < this.options.minLength) return this.hide(); + + if (this.value != old) { + $this.request(); + } + + return this; + }, + + pick: function(item, scrollinview) { + + var $this = this, + items = UI.$(this.dropdown.find('.uk-autocomplete-results').children(':not(.'+this.options.skipClass+')')), + selected = false; + + if (typeof item !== "string" && !item.hasClass(this.options.skipClass)) { + selected = item; + } else if (item == 'next' || item == 'prev') { + + if (this.selected) { + var index = items.index(this.selected); + + if (item == 'next') { + selected = items.eq(index + 1 < items.length ? index + 1 : 0); + } else { + selected = items.eq(index - 1 < 0 ? items.length - 1 : index - 1); + } + + } else { + selected = items[(item == 'next') ? 'first' : 'last'](); + } + + selected = UI.$(selected); + } + + if (selected && selected.length) { + this.selected = selected; + items.removeClass(this.options.hoverClass); + this.selected.addClass(this.options.hoverClass); + + // jump to selected if not in view + if (scrollinview) { + + var top = selected.position().top, + scrollTop = $this.dropdown.scrollTop(), + dpheight = $this.dropdown.height(); + + if (top > dpheight || top < 0) { + $this.dropdown.scrollTop(scrollTop + top); + } + } + } + }, + + select: function() { + + if(!this.selected) return; + + var data = this.selected.data(); + + this.trigger("selectitem.uk.autocomplete", [data, this]); + + if (data.value) { + this.input.val(data.value).trigger('change'); + } + + this.hide(); + }, + + show: function() { + if (this.visible) return; + this.visible = true; + this.element.addClass("uk-open"); + + if (active && active!==this) { + active.hide(); + } + + active = this; + + // Update aria + this.dropdown.attr('aria-expanded', 'true'); + + return this; + }, + + hide: function() { + if (!this.visible) return; + this.visible = false; + this.element.removeClass("uk-open"); + + if (active === this) { + active = false; + } + + // Update aria + this.dropdown.attr('aria-expanded', 'false'); + + return this; + }, + + request: function() { + + var $this = this, + release = function(data) { + + if(data) { + $this.render(data); + } + + $this.element.removeClass($this.options.loadingClass); + }; + + this.element.addClass(this.options.loadingClass); + + if (this.options.source) { + + var source = this.options.source; + + switch(typeof(this.options.source)) { + case 'function': + + this.options.source.apply(this, [release]); + + break; + + case 'object': + + if(source.length) { + + var items = []; + + source.forEach(function(item){ + if(item.value && item.value.toLowerCase().indexOf($this.value.toLowerCase())!=-1) { + items.push(item); + } + }); + + release(items); + } + + break; + + case 'string': + + var params ={}; + + params[this.options.param] = this.value; + + UI.$.ajax({ + url: this.options.source, + data: params, + type: this.options.method, + dataType: 'json' + }).done(function(json) { + release(json || []); + }); + + break; + + default: + release(null); + } + + } else { + this.element.removeClass($this.options.loadingClass); + } + }, + + render: function(data) { + + var $this = this; + + this.dropdown.empty(); + + this.selected = false; + + if (this.options.renderer) { + + this.options.renderer.apply(this, [data]); + + } else if(data && data.length) { + + this.dropdown.append(this.template({"items":data})); + this.show(); + + this.trigger('show.uk.autocomplete'); + } + + return this; + } + }); + + return UI.autocomplete; +}); diff --git a/media/uikit/js/components/autocomplete.min.js b/media/uikit/js/components/autocomplete.min.js new file mode 100644 index 00000000..2752df49 --- /dev/null +++ b/media/uikit/js/components/autocomplete.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-autocomplete",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";var e;return t.component("autocomplete",{defaults:{minLength:3,param:"search",method:"post",delay:300,loadingClass:"uk-loading",flipDropdown:!1,skipClass:"uk-skip",hoverClass:"uk-active",source:null,renderer:null,template:'<ul class="uk-nav uk-nav-autocomplete uk-autocomplete-results">{{~items}}<li data-value="{{$item.value}}"><a>{{$item.value}}</a></li>{{/items}}</ul>'},visible:!1,value:null,selected:null,boot:function(){t.$html.on("focus.autocomplete.uikit","[data-uk-autocomplete]",function(){var e=t.$(this);if(!e.data("autocomplete")){t.autocomplete(e,t.Utils.options(e.attr("data-uk-autocomplete")))}}),t.$html.on("click.autocomplete.uikit",function(t){e&&t.target!=e.input[0]&&e.hide()})},init:function(){var e=this,i=!1,s=t.Utils.debounce(function(){return i?i=!1:(e.handle(),void 0)},this.options.delay);this.dropdown=this.find(".uk-dropdown"),this.template=this.find('script[type="text/autocomplete"]').html(),this.template=t.Utils.template(this.template||this.options.template),this.input=this.find("input:first").attr("autocomplete","off"),this.dropdown.length||(this.dropdown=t.$('<div class="uk-dropdown"></div>').appendTo(this.element)),this.options.flipDropdown&&this.dropdown.addClass("uk-dropdown-flip"),this.dropdown.attr("aria-expanded","false"),this.input.on({keydown:function(t){if(t&&t.which&&!t.shiftKey)switch(t.which){case 13:i=!0,e.selected&&(t.preventDefault(),e.select());break;case 38:t.preventDefault(),e.pick("prev",!0);break;case 40:t.preventDefault(),e.pick("next",!0);break;case 27:case 9:e.hide()}},keyup:s}),this.dropdown.on("click",".uk-autocomplete-results > *",function(){e.select()}),this.dropdown.on("mouseover",".uk-autocomplete-results > *",function(){e.pick(t.$(this))}),this.triggercomplete=s},handle:function(){var t=this,e=this.value;return this.value=this.input.val(),this.value.length<this.options.minLength?this.hide():(this.value!=e&&t.request(),this)},pick:function(e,i){var s=this,o=t.$(this.dropdown.find(".uk-autocomplete-results").children(":not(."+this.options.skipClass+")")),n=!1;if("string"==typeof e||e.hasClass(this.options.skipClass)){if("next"==e||"prev"==e){if(this.selected){var a=o.index(this.selected);n="next"==e?o.eq(a+1<o.length?a+1:0):o.eq(0>a-1?o.length-1:a-1)}else n=o["next"==e?"first":"last"]();n=t.$(n)}}else n=e;if(n&&n.length&&(this.selected=n,o.removeClass(this.options.hoverClass),this.selected.addClass(this.options.hoverClass),i)){var l=n.position().top,h=s.dropdown.scrollTop(),r=s.dropdown.height();(l>r||0>l)&&s.dropdown.scrollTop(h+l)}},select:function(){if(this.selected){var t=this.selected.data();this.trigger("selectitem.uk.autocomplete",[t,this]),t.value&&this.input.val(t.value).trigger("change"),this.hide()}},show:function(){return this.visible?void 0:(this.visible=!0,this.element.addClass("uk-open"),e&&e!==this&&e.hide(),e=this,this.dropdown.attr("aria-expanded","true"),this)},hide:function(){return this.visible?(this.visible=!1,this.element.removeClass("uk-open"),e===this&&(e=!1),this.dropdown.attr("aria-expanded","false"),this):void 0},request:function(){var e=this,i=function(t){t&&e.render(t),e.element.removeClass(e.options.loadingClass)};if(this.element.addClass(this.options.loadingClass),this.options.source){var s=this.options.source;switch(typeof this.options.source){case"function":this.options.source.apply(this,[i]);break;case"object":if(s.length){var o=[];s.forEach(function(t){t.value&&-1!=t.value.toLowerCase().indexOf(e.value.toLowerCase())&&o.push(t)}),i(o)}break;case"string":var n={};n[this.options.param]=this.value,t.$.ajax({url:this.options.source,data:n,type:this.options.method,dataType:"json"}).done(function(t){i(t||[])});break;default:i(null)}}else this.element.removeClass(e.options.loadingClass)},render:function(t){return this.dropdown.empty(),this.selected=!1,this.options.renderer?this.options.renderer.apply(this,[t]):t&&t.length&&(this.dropdown.append(this.template({items:t})),this.show(),this.trigger("show.uk.autocomplete")),this}}),t.autocomplete}); \ No newline at end of file diff --git a/media/uikit/js/components/datepicker.js b/media/uikit/js/components/datepicker.js new file mode 100644 index 00000000..6a260e1e --- /dev/null +++ b/media/uikit/js/components/datepicker.js @@ -0,0 +1,3168 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-datepicker", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + // Datepicker + + var active = false, dropdown, moment; + + UI.component('datepicker', { + + defaults: { + mobile: false, + weekstart: 1, + i18n: { + months : ['January','February','March','April','May','June','July','August','September','October','November','December'], + weekdays : ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'] + }, + format: "DD.MM.YYYY", + offsettop: 5, + maxDate: false, + minDate: false, + pos: 'auto', + template: function(data, opts) { + + var content = '', maxDate, minDate, i; + + if (opts.maxDate!==false){ + maxDate = isNaN(opts.maxDate) ? moment(opts.maxDate, opts.format) : moment().add(opts.maxDate, 'days'); + } + + if (opts.minDate!==false){ + minDate = isNaN(opts.minDate) ? moment(opts.minDate, opts.format) : moment().add(opts.minDate-1, 'days'); + } + + content += '<div class="uk-datepicker-nav">'; + content += '<a href="" class="uk-datepicker-previous"></a>'; + content += '<a href="" class="uk-datepicker-next"></a>'; + + if (UI.formSelect) { + + var currentyear = (new Date()).getFullYear(), options = [], months, years, minYear, maxYear; + + for (i=0;i<opts.i18n.months.length;i++) { + if(i==data.month) { + options.push('<option value="'+i+'" selected>'+opts.i18n.months[i]+'</option>'); + } else { + options.push('<option value="'+i+'">'+opts.i18n.months[i]+'</option>'); + } + } + + months = '<span class="uk-form-select">'+ opts.i18n.months[data.month] + '<select class="update-picker-month">'+options.join('')+'</select></span>'; + + // -- + + options = []; + + minYear = minDate ? minDate.year() : currentyear - 50; + maxYear = maxDate ? maxDate.year() : currentyear + 20; + + for (i=minYear;i<=maxYear;i++) { + if (i == data.year) { + options.push('<option value="'+i+'" selected>'+i+'</option>'); + } else { + options.push('<option value="'+i+'">'+i+'</option>'); + } + } + + years = '<span class="uk-form-select">'+ data.year + '<select class="update-picker-year">'+options.join('')+'</select></span>'; + + content += '<div class="uk-datepicker-heading">'+ months + ' ' + years +'</div>'; + + } else { + content += '<div class="uk-datepicker-heading">'+ opts.i18n.months[data.month] +' '+ data.year+'</div>'; + } + + content += '</div>'; + + content += '<table class="uk-datepicker-table">'; + content += '<thead>'; + for(i = 0; i < data.weekdays.length; i++) { + if (data.weekdays[i]) { + content += '<th>'+data.weekdays[i]+'</th>'; + } + } + content += '</thead>'; + + content += '<tbody>'; + for(i = 0; i < data.days.length; i++) { + if (data.days[i] && data.days[i].length){ + content += '<tr>'; + for(var d = 0; d < data.days[i].length; d++) { + if (data.days[i][d]) { + var day = data.days[i][d], + cls = []; + + if(!day.inmonth) cls.push("uk-datepicker-table-muted"); + if(day.selected) cls.push("uk-active"); + + if (maxDate && day.day > maxDate) cls.push('uk-datepicker-date-disabled uk-datepicker-table-muted'); + if (minDate && minDate > day.day) cls.push('uk-datepicker-date-disabled uk-datepicker-table-muted'); + + content += '<td><a href="" class="'+cls.join(" ")+'" data-date="'+day.day.format()+'">'+day.day.format("D")+'</a></td>'; + } + } + content += '</tr>'; + } + } + content += '</tbody>'; + + content += '</table>'; + + return content; + } + }, + + boot: function() { + + UI.$win.on("resize orientationchange", function() { + + if (active) { + active.hide(); + } + }); + + // init code + UI.$html.on("focus.datepicker.uikit", "[data-uk-datepicker]", function(e) { + + var ele = UI.$(this); + + if (!ele.data("datepicker")) { + e.preventDefault(); + var obj = UI.datepicker(ele, UI.Utils.options(ele.attr("data-uk-datepicker"))); + ele.trigger("focus"); + } + }); + + UI.$html.on("click.datepicker.uikit", function(e) { + + var target = UI.$(e.target); + + if (active && target[0] != dropdown[0] && !target.data("datepicker") && !target.parents(".uk-datepicker:first").length) { + active.hide(); + } + }); + }, + + init: function() { + + // use native datepicker on touch devices + if (UI.support.touch && this.element.attr('type')=='date' && !this.options.mobile) { + return; + } + + var $this = this; + + this.current = this.element.val() ? moment(this.element.val(), this.options.format) : moment(); + + this.on("click focus", function(){ + if (active!==$this) $this.pick(this.value ? this.value:($this.options.minDate ? $this.options.minDate :'')); + }).on("change", function(){ + + if ($this.element.val() && !moment($this.element.val(), $this.options.format).isValid()) { + $this.element.val(moment().format($this.options.format)); + } + }); + + // init dropdown + if (!dropdown) { + + dropdown = UI.$('<div class="uk-dropdown uk-datepicker"></div>'); + + dropdown.on("click", ".uk-datepicker-next, .uk-datepicker-previous, [data-date]", function(e){ + + e.stopPropagation(); + e.preventDefault(); + + var ele = UI.$(this); + + if (ele.hasClass('uk-datepicker-date-disabled')) return false; + + if (ele.is('[data-date]')) { + active.element.val(moment(ele.data("date")).format(active.options.format)).trigger("change"); + dropdown.hide(); + active = false; + } else { + active.add(1 * (ele.hasClass("uk-datepicker-next") ? 1:-1), "months"); + } + }); + + dropdown.on('change', '.update-picker-month, .update-picker-year', function(){ + + var select = UI.$(this); + active[select.is('.update-picker-year') ? 'setYear':'setMonth'](Number(select.val())); + }); + + dropdown.appendTo("body"); + } + }, + + pick: function(initdate) { + + var offset = this.element.offset(), + css = {"left": offset.left, "right":""}; + + this.current = initdate ? moment(initdate, this.options.format):moment(); + this.initdate = this.current.format("YYYY-MM-DD"); + + this.update(); + + if (UI.langdirection == 'right') { + css.right = window.innerWidth - (css.left + this.element.outerWidth()); + css.left = ""; + } + + var posTop = (offset.top - this.element.outerHeight() + this.element.height()) - this.options.offsettop - dropdown.outerHeight(), + posBottom = offset.top + this.element.outerHeight() + this.options.offsettop; + + css.top = posBottom; + + if (this.options.pos == 'top') { + css.top = posTop; + } else if(this.options.pos == 'auto' && (window.innerHeight - posBottom - dropdown.outerHeight() < 0 && posTop >= 0) ) { + css.top = posTop; + } + + dropdown.css(css).show(); + this.trigger('show.uk.datepicker'); + + active = this; + }, + + add: function(unit, value) { + this.current.add(unit, value); + this.update(); + }, + + setMonth: function(month) { + this.current.month(month); + this.update(); + }, + + setYear: function(year) { + this.current.year(year); + this.update(); + }, + + update: function() { + + var data = this.getRows(this.current.year(), this.current.month()), + tpl = this.options.template(data, this.options); + + dropdown.html(tpl); + + this.trigger('update.uk.datepicker'); + }, + + getRows: function(year, month) { + + var opts = this.options, + now = moment().format('YYYY-MM-DD'), + days = [31, (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month], + before = new Date(year, month, 1).getDay(), + data = {"month":month, "year":year,"weekdays":[],"days":[]}, + row = []; + + data.weekdays = (function(){ + + for (var i=0, arr=[]; i < 7; i++) { + + var day = i + (opts.weekstart || 0); + + while (day >= 7) { + day -= 7; + } + + arr.push(opts.i18n.weekdays[day]); + } + + return arr; + })(); + + if (opts.weekstart && opts.weekstart > 0) { + before -= opts.weekstart; + if (before < 0) { + before += 7; + } + } + + var cells = days + before, after = cells; + + while(after > 7) { after -= 7; } + + cells += 7 - after; + + var day, isDisabled, isSelected, isToday, isInMonth; + + for (var i = 0, r = 0; i < cells; i++) { + + day = new Date(year, month, 1 + (i - before)); + isDisabled = (opts.mindate && day < opts.mindate) || (opts.maxdate && day > opts.maxdate); + isInMonth = !(i < before || i >= (days + before)); + + day = moment(day); + + isSelected = this.initdate == day.format("YYYY-MM-DD"); + isToday = now == day.format("YYYY-MM-DD"); + + row.push({"selected": isSelected, "today": isToday, "disabled": isDisabled, "day":day, "inmonth":isInMonth}); + + if (++r === 7) { + data.days.push(row); + row = []; + r = 0; + } + } + + return data; + }, + + hide: function() { + + if (active && active === this) { + dropdown.hide(); + active = false; + + this.trigger('hide.uk.datepicker'); + } + } + }); + + //! moment.js + //! version : 2.8.3 + //! authors : Tim Wood, Iskren Chernev, Moment.js contributors + //! license : MIT + //! momentjs.com + + moment = (function (undefined) { + /************************************ + Constants + ************************************/ + var moment, + VERSION = '2.8.3', + // the global-scope this is NOT the global object in Node.js + globalScope = typeof global !== 'undefined' ? global : this, + oldGlobalMoment, + round = Math.round, + hasOwnProperty = Object.prototype.hasOwnProperty, + i, + + YEAR = 0, + MONTH = 1, + DATE = 2, + HOUR = 3, + MINUTE = 4, + SECOND = 5, + MILLISECOND = 6, + + // internal storage for locale config files + locales = {}, + + // extra moment internal properties (plugins register props here) + momentProperties = [], + + // check for nodeJS + hasModule = (typeof module !== 'undefined' && module.exports), + + // ASP.NET json date format regex + aspNetJsonRegex = /^\/?Date\((\-?\d+)/i, + aspNetTimeSpanJsonRegex = /(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/, + + // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html + // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere + isoDurationRegex = /^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/, + + // format tokens + formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g, + localFormattingTokens = /(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g, + + // parsing token regexes + parseTokenOneOrTwoDigits = /\d\d?/, // 0 - 99 + parseTokenOneToThreeDigits = /\d{1,3}/, // 0 - 999 + parseTokenOneToFourDigits = /\d{1,4}/, // 0 - 9999 + parseTokenOneToSixDigits = /[+\-]?\d{1,6}/, // -999,999 - 999,999 + parseTokenDigits = /\d+/, // nonzero number of digits + parseTokenWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i, // any word (or two) characters or numbers including two/three word month in arabic. + parseTokenTimezone = /Z|[\+\-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z + parseTokenT = /T/i, // T (ISO separator) + parseTokenTimestampMs = /[\+\-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123 + parseTokenOrdinal = /\d{1,2}/, + + //strict parsing regexes + parseTokenOneDigit = /\d/, // 0 - 9 + parseTokenTwoDigits = /\d\d/, // 00 - 99 + parseTokenThreeDigits = /\d{3}/, // 000 - 999 + parseTokenFourDigits = /\d{4}/, // 0000 - 9999 + parseTokenSixDigits = /[+-]?\d{6}/, // -999,999 - 999,999 + parseTokenSignedNumber = /[+-]?\d+/, // -inf - inf + + // iso 8601 regex + // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00) + isoRegex = /^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, + + isoFormat = 'YYYY-MM-DDTHH:mm:ssZ', + + isoDates = [ + ['YYYYYY-MM-DD', /[+-]\d{6}-\d{2}-\d{2}/], + ['YYYY-MM-DD', /\d{4}-\d{2}-\d{2}/], + ['GGGG-[W]WW-E', /\d{4}-W\d{2}-\d/], + ['GGGG-[W]WW', /\d{4}-W\d{2}/], + ['YYYY-DDD', /\d{4}-\d{3}/] + ], + + // iso time formats and regexes + isoTimes = [ + ['HH:mm:ss.SSSS', /(T| )\d\d:\d\d:\d\d\.\d+/], + ['HH:mm:ss', /(T| )\d\d:\d\d:\d\d/], + ['HH:mm', /(T| )\d\d:\d\d/], + ['HH', /(T| )\d\d/] + ], + + // timezone chunker '+10:00' > ['10', '00'] or '-1530' > ['-15', '30'] + parseTimezoneChunker = /([\+\-]|\d\d)/gi, + + // getter and setter names + proxyGettersAndSetters = 'Date|Hours|Minutes|Seconds|Milliseconds'.split('|'), + unitMillisecondFactors = { + 'Milliseconds' : 1, + 'Seconds' : 1e3, + 'Minutes' : 6e4, + 'Hours' : 36e5, + 'Days' : 864e5, + 'Months' : 2592e6, + 'Years' : 31536e6 + }, + + unitAliases = { + ms : 'millisecond', + s : 'second', + m : 'minute', + h : 'hour', + d : 'day', + D : 'date', + w : 'week', + W : 'isoWeek', + M : 'month', + Q : 'quarter', + y : 'year', + DDD : 'dayOfYear', + e : 'weekday', + E : 'isoWeekday', + gg: 'weekYear', + GG: 'isoWeekYear' + }, + + camelFunctions = { + dayofyear : 'dayOfYear', + isoweekday : 'isoWeekday', + isoweek : 'isoWeek', + weekyear : 'weekYear', + isoweekyear : 'isoWeekYear' + }, + + // format function strings + formatFunctions = {}, + + // default relative time thresholds + relativeTimeThresholds = { + s: 45, // seconds to minute + m: 45, // minutes to hour + h: 22, // hours to day + d: 26, // days to month + M: 11 // months to year + }, + + // tokens to ordinalize and pad + ordinalizeTokens = 'DDD w W M D d'.split(' '), + paddedTokens = 'M D H h m s w W'.split(' '), + + formatTokenFunctions = { + M : function () { + return this.month() + 1; + }, + MMM : function (format) { + return this.localeData().monthsShort(this, format); + }, + MMMM : function (format) { + return this.localeData().months(this, format); + }, + D : function () { + return this.date(); + }, + DDD : function () { + return this.dayOfYear(); + }, + d : function () { + return this.day(); + }, + dd : function (format) { + return this.localeData().weekdaysMin(this, format); + }, + ddd : function (format) { + return this.localeData().weekdaysShort(this, format); + }, + dddd : function (format) { + return this.localeData().weekdays(this, format); + }, + w : function () { + return this.week(); + }, + W : function () { + return this.isoWeek(); + }, + YY : function () { + return leftZeroFill(this.year() % 100, 2); + }, + YYYY : function () { + return leftZeroFill(this.year(), 4); + }, + YYYYY : function () { + return leftZeroFill(this.year(), 5); + }, + YYYYYY : function () { + var y = this.year(), sign = y >= 0 ? '+' : '-'; + return sign + leftZeroFill(Math.abs(y), 6); + }, + gg : function () { + return leftZeroFill(this.weekYear() % 100, 2); + }, + gggg : function () { + return leftZeroFill(this.weekYear(), 4); + }, + ggggg : function () { + return leftZeroFill(this.weekYear(), 5); + }, + GG : function () { + return leftZeroFill(this.isoWeekYear() % 100, 2); + }, + GGGG : function () { + return leftZeroFill(this.isoWeekYear(), 4); + }, + GGGGG : function () { + return leftZeroFill(this.isoWeekYear(), 5); + }, + e : function () { + return this.weekday(); + }, + E : function () { + return this.isoWeekday(); + }, + a : function () { + return this.localeData().meridiem(this.hours(), this.minutes(), true); + }, + A : function () { + return this.localeData().meridiem(this.hours(), this.minutes(), false); + }, + H : function () { + return this.hours(); + }, + h : function () { + return this.hours() % 12 || 12; + }, + m : function () { + return this.minutes(); + }, + s : function () { + return this.seconds(); + }, + S : function () { + return toInt(this.milliseconds() / 100); + }, + SS : function () { + return leftZeroFill(toInt(this.milliseconds() / 10), 2); + }, + SSS : function () { + return leftZeroFill(this.milliseconds(), 3); + }, + SSSS : function () { + return leftZeroFill(this.milliseconds(), 3); + }, + Z : function () { + var a = -this.zone(), + b = '+'; + if (a < 0) { + a = -a; + b = '-'; + } + return b + leftZeroFill(toInt(a / 60), 2) + ':' + leftZeroFill(toInt(a) % 60, 2); + }, + ZZ : function () { + var a = -this.zone(), + b = '+'; + if (a < 0) { + a = -a; + b = '-'; + } + return b + leftZeroFill(toInt(a / 60), 2) + leftZeroFill(toInt(a) % 60, 2); + }, + z : function () { + return this.zoneAbbr(); + }, + zz : function () { + return this.zoneName(); + }, + X : function () { + return this.unix(); + }, + Q : function () { + return this.quarter(); + } + }, + + deprecations = {}, + + lists = ['months', 'monthsShort', 'weekdays', 'weekdaysShort', 'weekdaysMin']; + + // Pick the first defined of two or three arguments. dfl comes from + // default. + function dfl(a, b, c) { + switch (arguments.length) { + case 2: return a != null ? a : b; + case 3: return a != null ? a : b != null ? b : c; + default: throw new Error('Implement me'); + } + } + + function hasOwnProp(a, b) { + return hasOwnProperty.call(a, b); + } + + function defaultParsingFlags() { + // We need to deep clone this object, and es5 standard is not very + // helpful. + return { + empty : false, + unusedTokens : [], + unusedInput : [], + overflow : -2, + charsLeftOver : 0, + nullInput : false, + invalidMonth : null, + invalidFormat : false, + userInvalidated : false, + iso: false + }; + } + + function printMsg(msg) { + if (moment.suppressDeprecationWarnings === false && + typeof console !== 'undefined' && console.warn) { + console.warn('Deprecation warning: ' + msg); + } + } + + function deprecate(msg, fn) { + var firstTime = true; + return extend(function () { + if (firstTime) { + printMsg(msg); + firstTime = false; + } + return fn.apply(this, arguments); + }, fn); + } + + function deprecateSimple(name, msg) { + if (!deprecations[name]) { + printMsg(msg); + deprecations[name] = true; + } + } + + function padToken(func, count) { + return function (a) { + return leftZeroFill(func.call(this, a), count); + }; + } + function ordinalizeToken(func, period) { + return function (a) { + return this.localeData().ordinal(func.call(this, a), period); + }; + } + + while (ordinalizeTokens.length) { + i = ordinalizeTokens.pop(); + formatTokenFunctions[i + 'o'] = ordinalizeToken(formatTokenFunctions[i], i); + } + while (paddedTokens.length) { + i = paddedTokens.pop(); + formatTokenFunctions[i + i] = padToken(formatTokenFunctions[i], 2); + } + formatTokenFunctions.DDDD = padToken(formatTokenFunctions.DDD, 3); + + + /************************************ + Constructors + ************************************/ + + function Locale() { + } + + // Moment prototype object + function Moment(config, skipOverflow) { + if (skipOverflow !== false) { + checkOverflow(config); + } + copyConfig(this, config); + this._d = new Date(+config._d); + } + + // Duration Constructor + function Duration(duration) { + var normalizedInput = normalizeObjectUnits(duration), + years = normalizedInput.year || 0, + quarters = normalizedInput.quarter || 0, + months = normalizedInput.month || 0, + weeks = normalizedInput.week || 0, + days = normalizedInput.day || 0, + hours = normalizedInput.hour || 0, + minutes = normalizedInput.minute || 0, + seconds = normalizedInput.second || 0, + milliseconds = normalizedInput.millisecond || 0; + + // representation for dateAddRemove + this._milliseconds = +milliseconds + + seconds * 1e3 + // 1000 + minutes * 6e4 + // 1000 * 60 + hours * 36e5; // 1000 * 60 * 60 + // Because of dateAddRemove treats 24 hours as different from a + // day when working around DST, we need to store them separately + this._days = +days + + weeks * 7; + // It is impossible translate months into days without knowing + // which months you are are talking about, so we have to store + // it separately. + this._months = +months + + quarters * 3 + + years * 12; + + this._data = {}; + + this._locale = moment.localeData(); + + this._bubble(); + } + + /************************************ + Helpers + ************************************/ + + + function extend(a, b) { + for (var i in b) { + if (hasOwnProp(b, i)) { + a[i] = b[i]; + } + } + + if (hasOwnProp(b, 'toString')) { + a.toString = b.toString; + } + + if (hasOwnProp(b, 'valueOf')) { + a.valueOf = b.valueOf; + } + + return a; + } + + function copyConfig(to, from) { + var i, prop, val; + + if (typeof from._isAMomentObject !== 'undefined') { + to._isAMomentObject = from._isAMomentObject; + } + if (typeof from._i !== 'undefined') { + to._i = from._i; + } + if (typeof from._f !== 'undefined') { + to._f = from._f; + } + if (typeof from._l !== 'undefined') { + to._l = from._l; + } + if (typeof from._strict !== 'undefined') { + to._strict = from._strict; + } + if (typeof from._tzm !== 'undefined') { + to._tzm = from._tzm; + } + if (typeof from._isUTC !== 'undefined') { + to._isUTC = from._isUTC; + } + if (typeof from._offset !== 'undefined') { + to._offset = from._offset; + } + if (typeof from._pf !== 'undefined') { + to._pf = from._pf; + } + if (typeof from._locale !== 'undefined') { + to._locale = from._locale; + } + + if (momentProperties.length > 0) { + for (i in momentProperties) { + prop = momentProperties[i]; + val = from[prop]; + if (typeof val !== 'undefined') { + to[prop] = val; + } + } + } + + return to; + } + + function absRound(number) { + if (number < 0) { + return Math.ceil(number); + } else { + return Math.floor(number); + } + } + + // left zero fill a number + // see http://jsperf.com/left-zero-filling for performance comparison + function leftZeroFill(number, targetLength, forceSign) { + var output = '' + Math.abs(number), + sign = number >= 0; + + while (output.length < targetLength) { + output = '0' + output; + } + return (sign ? (forceSign ? '+' : '') : '-') + output; + } + + function positiveMomentsDifference(base, other) { + var res = {milliseconds: 0, months: 0}; + + res.months = other.month() - base.month() + + (other.year() - base.year()) * 12; + if (base.clone().add(res.months, 'M').isAfter(other)) { + --res.months; + } + + res.milliseconds = +other - +(base.clone().add(res.months, 'M')); + + return res; + } + + function momentsDifference(base, other) { + var res; + other = makeAs(other, base); + if (base.isBefore(other)) { + res = positiveMomentsDifference(base, other); + } else { + res = positiveMomentsDifference(other, base); + res.milliseconds = -res.milliseconds; + res.months = -res.months; + } + + return res; + } + + // TODO: remove 'name' arg after deprecation is removed + function createAdder(direction, name) { + return function (val, period) { + var dur, tmp; + //invert the arguments, but complain about it + if (period !== null && !isNaN(+period)) { + deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period).'); + tmp = val; val = period; period = tmp; + } + + val = typeof val === 'string' ? +val : val; + dur = moment.duration(val, period); + addOrSubtractDurationFromMoment(this, dur, direction); + return this; + }; + } + + function addOrSubtractDurationFromMoment(mom, duration, isAdding, updateOffset) { + var milliseconds = duration._milliseconds, + days = duration._days, + months = duration._months; + updateOffset = updateOffset == null ? true : updateOffset; + + if (milliseconds) { + mom._d.setTime(+mom._d + milliseconds * isAdding); + } + if (days) { + rawSetter(mom, 'Date', rawGetter(mom, 'Date') + days * isAdding); + } + if (months) { + rawMonthSetter(mom, rawGetter(mom, 'Month') + months * isAdding); + } + if (updateOffset) { + moment.updateOffset(mom, days || months); + } + } + + // check if is an array + function isArray(input) { + return Object.prototype.toString.call(input) === '[object Array]'; + } + + function isDate(input) { + return Object.prototype.toString.call(input) === '[object Date]' || + input instanceof Date; + } + + // compare two arrays, return the number of differences + function compareArrays(array1, array2, dontConvert) { + var len = Math.min(array1.length, array2.length), + lengthDiff = Math.abs(array1.length - array2.length), + diffs = 0, + i; + for (i = 0; i < len; i++) { + if ((dontConvert && array1[i] !== array2[i]) || + (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) { + diffs++; + } + } + return diffs + lengthDiff; + } + + function normalizeUnits(units) { + if (units) { + var lowered = units.toLowerCase().replace(/(.)s$/, '$1'); + units = unitAliases[units] || camelFunctions[lowered] || lowered; + } + return units; + } + + function normalizeObjectUnits(inputObject) { + var normalizedInput = {}, + normalizedProp, + prop; + + for (prop in inputObject) { + if (hasOwnProp(inputObject, prop)) { + normalizedProp = normalizeUnits(prop); + if (normalizedProp) { + normalizedInput[normalizedProp] = inputObject[prop]; + } + } + } + + return normalizedInput; + } + + function makeList(field) { + var count, setter; + + if (field.indexOf('week') === 0) { + count = 7; + setter = 'day'; + } + else if (field.indexOf('month') === 0) { + count = 12; + setter = 'month'; + } + else { + return; + } + + moment[field] = function (format, index) { + var i, getter, + method = moment._locale[field], + results = []; + + if (typeof format === 'number') { + index = format; + format = undefined; + } + + getter = function (i) { + var m = moment().utc().set(setter, i); + return method.call(moment._locale, m, format || ''); + }; + + if (index != null) { + return getter(index); + } + else { + for (i = 0; i < count; i++) { + results.push(getter(i)); + } + return results; + } + }; + } + + function toInt(argumentForCoercion) { + var coercedNumber = +argumentForCoercion, + value = 0; + + if (coercedNumber !== 0 && isFinite(coercedNumber)) { + if (coercedNumber >= 0) { + value = Math.floor(coercedNumber); + } else { + value = Math.ceil(coercedNumber); + } + } + + return value; + } + + function daysInMonth(year, month) { + return new Date(Date.UTC(year, month + 1, 0)).getUTCDate(); + } + + function weeksInYear(year, dow, doy) { + return weekOfYear(moment([year, 11, 31 + dow - doy]), dow, doy).week; + } + + function daysInYear(year) { + return isLeapYear(year) ? 366 : 365; + } + + function isLeapYear(year) { + return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; + } + + function checkOverflow(m) { + var overflow; + if (m._a && m._pf.overflow === -2) { + overflow = + m._a[MONTH] < 0 || m._a[MONTH] > 11 ? MONTH : + m._a[DATE] < 1 || m._a[DATE] > daysInMonth(m._a[YEAR], m._a[MONTH]) ? DATE : + m._a[HOUR] < 0 || m._a[HOUR] > 23 ? HOUR : + m._a[MINUTE] < 0 || m._a[MINUTE] > 59 ? MINUTE : + m._a[SECOND] < 0 || m._a[SECOND] > 59 ? SECOND : + m._a[MILLISECOND] < 0 || m._a[MILLISECOND] > 999 ? MILLISECOND : + -1; + + if (m._pf._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) { + overflow = DATE; + } + + m._pf.overflow = overflow; + } + } + + function isValid(m) { + if (m._isValid == null) { + m._isValid = !isNaN(m._d.getTime()) && + m._pf.overflow < 0 && + !m._pf.empty && + !m._pf.invalidMonth && + !m._pf.nullInput && + !m._pf.invalidFormat && + !m._pf.userInvalidated; + + if (m._strict) { + m._isValid = m._isValid && + m._pf.charsLeftOver === 0 && + m._pf.unusedTokens.length === 0; + } + } + return m._isValid; + } + + function normalizeLocale(key) { + return key ? key.toLowerCase().replace('_', '-') : key; + } + + // pick the locale from the array + // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each + // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root + function chooseLocale(names) { + var i = 0, j, next, locale, split; + + while (i < names.length) { + split = normalizeLocale(names[i]).split('-'); + j = split.length; + next = normalizeLocale(names[i + 1]); + next = next ? next.split('-') : null; + while (j > 0) { + locale = loadLocale(split.slice(0, j).join('-')); + if (locale) { + return locale; + } + if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) { + //the next array item is better than a shallower substring of this one + break; + } + j--; + } + i++; + } + return null; + } + + function loadLocale(name) { + var oldLocale = null; + if (!locales[name] && hasModule) { + try { + oldLocale = moment.locale(); + require('./locale/' + name); + // because defineLocale currently also sets the global locale, we want to undo that for lazy loaded locales + moment.locale(oldLocale); + } catch (e) { } + } + return locales[name]; + } + + // Return a moment from input, that is local/utc/zone equivalent to model. + function makeAs(input, model) { + return model._isUTC ? moment(input).zone(model._offset || 0) : + moment(input).local(); + } + + /************************************ + Locale + ************************************/ + + + extend(Locale.prototype, { + + set : function (config) { + var prop, i; + for (i in config) { + prop = config[i]; + if (typeof prop === 'function') { + this[i] = prop; + } else { + this['_' + i] = prop; + } + } + }, + + _months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), + months : function (m) { + return this._months[m.month()]; + }, + + _monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + monthsShort : function (m) { + return this._monthsShort[m.month()]; + }, + + monthsParse : function (monthName) { + var i, mom, regex; + + if (!this._monthsParse) { + this._monthsParse = []; + } + + for (i = 0; i < 12; i++) { + // make the regex if we don't have it already + if (!this._monthsParse[i]) { + mom = moment.utc([2000, i]); + regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); + this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); + } + // test the regex + if (this._monthsParse[i].test(monthName)) { + return i; + } + } + }, + + _weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), + weekdays : function (m) { + return this._weekdays[m.day()]; + }, + + _weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysShort : function (m) { + return this._weekdaysShort[m.day()]; + }, + + _weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + weekdaysMin : function (m) { + return this._weekdaysMin[m.day()]; + }, + + weekdaysParse : function (weekdayName) { + var i, mom, regex; + + if (!this._weekdaysParse) { + this._weekdaysParse = []; + } + + for (i = 0; i < 7; i++) { + // make the regex if we don't have it already + if (!this._weekdaysParse[i]) { + mom = moment([2000, 1]).day(i); + regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, ''); + this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); + } + // test the regex + if (this._weekdaysParse[i].test(weekdayName)) { + return i; + } + } + }, + + _longDateFormat : { + LT : 'h:mm A', + L : 'MM/DD/YYYY', + LL : 'MMMM D, YYYY', + LLL : 'MMMM D, YYYY LT', + LLLL : 'dddd, MMMM D, YYYY LT' + }, + longDateFormat : function (key) { + var output = this._longDateFormat[key]; + if (!output && this._longDateFormat[key.toUpperCase()]) { + output = this._longDateFormat[key.toUpperCase()].replace(/MMMM|MM|DD|dddd/g, function (val) { + return val.slice(1); + }); + this._longDateFormat[key] = output; + } + return output; + }, + + isPM : function (input) { + // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays + // Using charAt should be more compatible. + return ((input + '').toLowerCase().charAt(0) === 'p'); + }, + + _meridiemParse : /[ap]\.?m?\.?/i, + meridiem : function (hours, minutes, isLower) { + if (hours > 11) { + return isLower ? 'pm' : 'PM'; + } else { + return isLower ? 'am' : 'AM'; + } + }, + + _calendar : { + sameDay : '[Today at] LT', + nextDay : '[Tomorrow at] LT', + nextWeek : 'dddd [at] LT', + lastDay : '[Yesterday at] LT', + lastWeek : '[Last] dddd [at] LT', + sameElse : 'L' + }, + calendar : function (key, mom) { + var output = this._calendar[key]; + return typeof output === 'function' ? output.apply(mom) : output; + }, + + _relativeTime : { + future : 'in %s', + past : '%s ago', + s : 'a few seconds', + m : 'a minute', + mm : '%d minutes', + h : 'an hour', + hh : '%d hours', + d : 'a day', + dd : '%d days', + M : 'a month', + MM : '%d months', + y : 'a year', + yy : '%d years' + }, + + relativeTime : function (number, withoutSuffix, string, isFuture) { + var output = this._relativeTime[string]; + return (typeof output === 'function') ? + output(number, withoutSuffix, string, isFuture) : + output.replace(/%d/i, number); + }, + + pastFuture : function (diff, output) { + var format = this._relativeTime[diff > 0 ? 'future' : 'past']; + return typeof format === 'function' ? format(output) : format.replace(/%s/i, output); + }, + + ordinal : function (number) { + return this._ordinal.replace('%d', number); + }, + _ordinal : '%d', + + preparse : function (string) { + return string; + }, + + postformat : function (string) { + return string; + }, + + week : function (mom) { + return weekOfYear(mom, this._week.dow, this._week.doy).week; + }, + + _week : { + dow : 0, // Sunday is the first day of the week. + doy : 6 // The week that contains Jan 1st is the first week of the year. + }, + + _invalidDate: 'Invalid date', + invalidDate: function () { + return this._invalidDate; + } + }); + + /************************************ + Formatting + ************************************/ + + + function removeFormattingTokens(input) { + if (input.match(/\[[\s\S]/)) { + return input.replace(/^\[|\]$/g, ''); + } + return input.replace(/\\/g, ''); + } + + function makeFormatFunction(format) { + var array = format.match(formattingTokens), i, length; + + for (i = 0, length = array.length; i < length; i++) { + if (formatTokenFunctions[array[i]]) { + array[i] = formatTokenFunctions[array[i]]; + } else { + array[i] = removeFormattingTokens(array[i]); + } + } + + return function (mom) { + var output = ''; + for (i = 0; i < length; i++) { + output += array[i] instanceof Function ? array[i].call(mom, format) : array[i]; + } + return output; + }; + } + + // format date using native date object + function formatMoment(m, format) { + if (!m.isValid()) { + return m.localeData().invalidDate(); + } + + format = expandFormat(format, m.localeData()); + + if (!formatFunctions[format]) { + formatFunctions[format] = makeFormatFunction(format); + } + + return formatFunctions[format](m); + } + + function expandFormat(format, locale) { + var i = 5; + + function replaceLongDateFormatTokens(input) { + return locale.longDateFormat(input) || input; + } + + localFormattingTokens.lastIndex = 0; + while (i >= 0 && localFormattingTokens.test(format)) { + format = format.replace(localFormattingTokens, replaceLongDateFormatTokens); + localFormattingTokens.lastIndex = 0; + i -= 1; + } + + return format; + } + + + /************************************ + Parsing + ************************************/ + + + // get the regex to find the next token + function getParseRegexForToken(token, config) { + var a, strict = config._strict; + switch (token) { + case 'Q': + return parseTokenOneDigit; + case 'DDDD': + return parseTokenThreeDigits; + case 'YYYY': + case 'GGGG': + case 'gggg': + return strict ? parseTokenFourDigits : parseTokenOneToFourDigits; + case 'Y': + case 'G': + case 'g': + return parseTokenSignedNumber; + case 'YYYYYY': + case 'YYYYY': + case 'GGGGG': + case 'ggggg': + return strict ? parseTokenSixDigits : parseTokenOneToSixDigits; + case 'S': + if (strict) { + return parseTokenOneDigit; + } + /* falls through */ + case 'SS': + if (strict) { + return parseTokenTwoDigits; + } + /* falls through */ + case 'SSS': + if (strict) { + return parseTokenThreeDigits; + } + /* falls through */ + case 'DDD': + return parseTokenOneToThreeDigits; + case 'MMM': + case 'MMMM': + case 'dd': + case 'ddd': + case 'dddd': + return parseTokenWord; + case 'a': + case 'A': + return config._locale._meridiemParse; + case 'X': + return parseTokenTimestampMs; + case 'Z': + case 'ZZ': + return parseTokenTimezone; + case 'T': + return parseTokenT; + case 'SSSS': + return parseTokenDigits; + case 'MM': + case 'DD': + case 'YY': + case 'GG': + case 'gg': + case 'HH': + case 'hh': + case 'mm': + case 'ss': + case 'ww': + case 'WW': + return strict ? parseTokenTwoDigits : parseTokenOneOrTwoDigits; + case 'M': + case 'D': + case 'd': + case 'H': + case 'h': + case 'm': + case 's': + case 'w': + case 'W': + case 'e': + case 'E': + return parseTokenOneOrTwoDigits; + case 'Do': + return parseTokenOrdinal; + default : + a = new RegExp(regexpEscape(unescapeFormat(token.replace('\\', '')), 'i')); + return a; + } + } + + function timezoneMinutesFromString(string) { + string = string || ''; + var possibleTzMatches = (string.match(parseTokenTimezone) || []), + tzChunk = possibleTzMatches[possibleTzMatches.length - 1] || [], + parts = (tzChunk + '').match(parseTimezoneChunker) || ['-', 0, 0], + minutes = +(parts[1] * 60) + toInt(parts[2]); + + return parts[0] === '+' ? -minutes : minutes; + } + + // function to convert string input to date + function addTimeToArrayFromToken(token, input, config) { + var a, datePartArray = config._a; + + switch (token) { + // QUARTER + case 'Q': + if (input != null) { + datePartArray[MONTH] = (toInt(input) - 1) * 3; + } + break; + // MONTH + case 'M' : // fall through to MM + case 'MM' : + if (input != null) { + datePartArray[MONTH] = toInt(input) - 1; + } + break; + case 'MMM' : // fall through to MMMM + case 'MMMM' : + a = config._locale.monthsParse(input); + // if we didn't find a month name, mark the date as invalid. + if (a != null) { + datePartArray[MONTH] = a; + } else { + config._pf.invalidMonth = input; + } + break; + // DAY OF MONTH + case 'D' : // fall through to DD + case 'DD' : + if (input != null) { + datePartArray[DATE] = toInt(input); + } + break; + case 'Do' : + if (input != null) { + datePartArray[DATE] = toInt(parseInt(input, 10)); + } + break; + // DAY OF YEAR + case 'DDD' : // fall through to DDDD + case 'DDDD' : + if (input != null) { + config._dayOfYear = toInt(input); + } + + break; + // YEAR + case 'YY' : + datePartArray[YEAR] = moment.parseTwoDigitYear(input); + break; + case 'YYYY' : + case 'YYYYY' : + case 'YYYYYY' : + datePartArray[YEAR] = toInt(input); + break; + // AM / PM + case 'a' : // fall through to A + case 'A' : + config._isPm = config._locale.isPM(input); + break; + // 24 HOUR + case 'H' : // fall through to hh + case 'HH' : // fall through to hh + case 'h' : // fall through to hh + case 'hh' : + datePartArray[HOUR] = toInt(input); + break; + // MINUTE + case 'm' : // fall through to mm + case 'mm' : + datePartArray[MINUTE] = toInt(input); + break; + // SECOND + case 's' : // fall through to ss + case 'ss' : + datePartArray[SECOND] = toInt(input); + break; + // MILLISECOND + case 'S' : + case 'SS' : + case 'SSS' : + case 'SSSS' : + datePartArray[MILLISECOND] = toInt(('0.' + input) * 1000); + break; + // UNIX TIMESTAMP WITH MS + case 'X': + config._d = new Date(parseFloat(input) * 1000); + break; + // TIMEZONE + case 'Z' : // fall through to ZZ + case 'ZZ' : + config._useUTC = true; + config._tzm = timezoneMinutesFromString(input); + break; + // WEEKDAY - human + case 'dd': + case 'ddd': + case 'dddd': + a = config._locale.weekdaysParse(input); + // if we didn't get a weekday name, mark the date as invalid + if (a != null) { + config._w = config._w || {}; + config._w['d'] = a; + } else { + config._pf.invalidWeekday = input; + } + break; + // WEEK, WEEK DAY - numeric + case 'w': + case 'ww': + case 'W': + case 'WW': + case 'd': + case 'e': + case 'E': + token = token.substr(0, 1); + /* falls through */ + case 'gggg': + case 'GGGG': + case 'GGGGG': + token = token.substr(0, 2); + if (input) { + config._w = config._w || {}; + config._w[token] = toInt(input); + } + break; + case 'gg': + case 'GG': + config._w = config._w || {}; + config._w[token] = moment.parseTwoDigitYear(input); + } + } + + function dayOfYearFromWeekInfo(config) { + var w, weekYear, week, weekday, dow, doy, temp; + + w = config._w; + if (w.GG != null || w.W != null || w.E != null) { + dow = 1; + doy = 4; + + // TODO: We need to take the current isoWeekYear, but that depends on + // how we interpret now (local, utc, fixed offset). So create + // a now version of current config (take local/utc/offset flags, and + // create now). + weekYear = dfl(w.GG, config._a[YEAR], weekOfYear(moment(), 1, 4).year); + week = dfl(w.W, 1); + weekday = dfl(w.E, 1); + } else { + dow = config._locale._week.dow; + doy = config._locale._week.doy; + + weekYear = dfl(w.gg, config._a[YEAR], weekOfYear(moment(), dow, doy).year); + week = dfl(w.w, 1); + + if (w.d != null) { + // weekday -- low day numbers are considered next week + weekday = w.d; + if (weekday < dow) { + ++week; + } + } else if (w.e != null) { + // local weekday -- counting starts from begining of week + weekday = w.e + dow; + } else { + // default to begining of week + weekday = dow; + } + } + temp = dayOfYearFromWeeks(weekYear, week, weekday, doy, dow); + + config._a[YEAR] = temp.year; + config._dayOfYear = temp.dayOfYear; + } + + // convert an array to a date. + // the array should mirror the parameters below + // note: all values past the year are optional and will default to the lowest possible value. + // [year, month, day , hour, minute, second, millisecond] + function dateFromConfig(config) { + var i, date, input = [], currentDate, yearToUse; + + if (config._d) { + return; + } + + currentDate = currentDateArray(config); + + //compute day of the year from weeks and weekdays + if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { + dayOfYearFromWeekInfo(config); + } + + //if the day of the year is set, figure out what it is + if (config._dayOfYear) { + yearToUse = dfl(config._a[YEAR], currentDate[YEAR]); + + if (config._dayOfYear > daysInYear(yearToUse)) { + config._pf._overflowDayOfYear = true; + } + + date = makeUTCDate(yearToUse, 0, config._dayOfYear); + config._a[MONTH] = date.getUTCMonth(); + config._a[DATE] = date.getUTCDate(); + } + + // Default to current date. + // * if no year, month, day of month are given, default to today + // * if day of month is given, default month and year + // * if month is given, default only year + // * if year is given, don't default anything + for (i = 0; i < 3 && config._a[i] == null; ++i) { + config._a[i] = input[i] = currentDate[i]; + } + + // Zero out whatever was not defaulted, including time + for (; i < 7; i++) { + config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i]; + } + + config._d = (config._useUTC ? makeUTCDate : makeDate).apply(null, input); + // Apply timezone offset from input. The actual zone can be changed + // with parseZone. + if (config._tzm != null) { + config._d.setUTCMinutes(config._d.getUTCMinutes() + config._tzm); + } + } + + function dateFromObject(config) { + var normalizedInput; + + if (config._d) { + return; + } + + normalizedInput = normalizeObjectUnits(config._i); + config._a = [ + normalizedInput.year, + normalizedInput.month, + normalizedInput.day, + normalizedInput.hour, + normalizedInput.minute, + normalizedInput.second, + normalizedInput.millisecond + ]; + + dateFromConfig(config); + } + + function currentDateArray(config) { + var now = new Date(); + if (config._useUTC) { + return [ + now.getUTCFullYear(), + now.getUTCMonth(), + now.getUTCDate() + ]; + } else { + return [now.getFullYear(), now.getMonth(), now.getDate()]; + } + } + + // date from string and format string + function makeDateFromStringAndFormat(config) { + if (config._f === moment.ISO_8601) { + parseISO(config); + return; + } + + config._a = []; + config._pf.empty = true; + + // This array is used to make a Date, either with `new Date` or `Date.UTC` + var string = '' + config._i, + i, parsedInput, tokens, token, skipped, + stringLength = string.length, + totalParsedInputLength = 0; + + tokens = expandFormat(config._f, config._locale).match(formattingTokens) || []; + + for (i = 0; i < tokens.length; i++) { + token = tokens[i]; + parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0]; + if (parsedInput) { + skipped = string.substr(0, string.indexOf(parsedInput)); + if (skipped.length > 0) { + config._pf.unusedInput.push(skipped); + } + string = string.slice(string.indexOf(parsedInput) + parsedInput.length); + totalParsedInputLength += parsedInput.length; + } + // don't parse if it's not a known token + if (formatTokenFunctions[token]) { + if (parsedInput) { + config._pf.empty = false; + } + else { + config._pf.unusedTokens.push(token); + } + addTimeToArrayFromToken(token, parsedInput, config); + } + else if (config._strict && !parsedInput) { + config._pf.unusedTokens.push(token); + } + } + + // add remaining unparsed input length to the string + config._pf.charsLeftOver = stringLength - totalParsedInputLength; + if (string.length > 0) { + config._pf.unusedInput.push(string); + } + + // handle am pm + if (config._isPm && config._a[HOUR] < 12) { + config._a[HOUR] += 12; + } + // if is 12 am, change hours to 0 + if (config._isPm === false && config._a[HOUR] === 12) { + config._a[HOUR] = 0; + } + + dateFromConfig(config); + checkOverflow(config); + } + + function unescapeFormat(s) { + return s.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) { + return p1 || p2 || p3 || p4; + }); + } + + // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript + function regexpEscape(s) { + return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); + } + + // date from string and array of format strings + function makeDateFromStringAndArray(config) { + var tempConfig, + bestMoment, + + scoreToBeat, + i, + currentScore; + + if (config._f.length === 0) { + config._pf.invalidFormat = true; + config._d = new Date(NaN); + return; + } + + for (i = 0; i < config._f.length; i++) { + currentScore = 0; + tempConfig = copyConfig({}, config); + if (config._useUTC != null) { + tempConfig._useUTC = config._useUTC; + } + tempConfig._pf = defaultParsingFlags(); + tempConfig._f = config._f[i]; + makeDateFromStringAndFormat(tempConfig); + + if (!isValid(tempConfig)) { + continue; + } + + // if there is any input that was not parsed add a penalty for that format + currentScore += tempConfig._pf.charsLeftOver; + + //or tokens + currentScore += tempConfig._pf.unusedTokens.length * 10; + + tempConfig._pf.score = currentScore; + + if (scoreToBeat == null || currentScore < scoreToBeat) { + scoreToBeat = currentScore; + bestMoment = tempConfig; + } + } + + extend(config, bestMoment || tempConfig); + } + + // date from iso format + function parseISO(config) { + var i, l, + string = config._i, + match = isoRegex.exec(string); + + if (match) { + config._pf.iso = true; + for (i = 0, l = isoDates.length; i < l; i++) { + if (isoDates[i][1].exec(string)) { + // match[5] should be 'T' or undefined + config._f = isoDates[i][0] + (match[6] || ' '); + break; + } + } + for (i = 0, l = isoTimes.length; i < l; i++) { + if (isoTimes[i][1].exec(string)) { + config._f += isoTimes[i][0]; + break; + } + } + if (string.match(parseTokenTimezone)) { + config._f += 'Z'; + } + makeDateFromStringAndFormat(config); + } else { + config._isValid = false; + } + } + + // date from iso format or fallback + function makeDateFromString(config) { + parseISO(config); + if (config._isValid === false) { + delete config._isValid; + moment.createFromInputFallback(config); + } + } + + function map(arr, fn) { + var res = [], i; + for (i = 0; i < arr.length; ++i) { + res.push(fn(arr[i], i)); + } + return res; + } + + function makeDateFromInput(config) { + var input = config._i, matched; + if (input === undefined) { + config._d = new Date(); + } else if (isDate(input)) { + config._d = new Date(+input); + } else if ((matched = aspNetJsonRegex.exec(input)) !== null) { + config._d = new Date(+matched[1]); + } else if (typeof input === 'string') { + makeDateFromString(config); + } else if (isArray(input)) { + config._a = map(input.slice(0), function (obj) { + return parseInt(obj, 10); + }); + dateFromConfig(config); + } else if (typeof(input) === 'object') { + dateFromObject(config); + } else if (typeof(input) === 'number') { + // from milliseconds + config._d = new Date(input); + } else { + moment.createFromInputFallback(config); + } + } + + function makeDate(y, m, d, h, M, s, ms) { + //can't just apply() to create a date: + //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply + var date = new Date(y, m, d, h, M, s, ms); + + //the date constructor doesn't accept years < 1970 + if (y < 1970) { + date.setFullYear(y); + } + return date; + } + + function makeUTCDate(y) { + var date = new Date(Date.UTC.apply(null, arguments)); + if (y < 1970) { + date.setUTCFullYear(y); + } + return date; + } + + function parseWeekday(input, locale) { + if (typeof input === 'string') { + if (!isNaN(input)) { + input = parseInt(input, 10); + } + else { + input = locale.weekdaysParse(input); + if (typeof input !== 'number') { + return null; + } + } + } + return input; + } + + /************************************ + Relative Time + ************************************/ + + + // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize + function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { + return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); + } + + function relativeTime(posNegDuration, withoutSuffix, locale) { + var duration = moment.duration(posNegDuration).abs(), + seconds = round(duration.as('s')), + minutes = round(duration.as('m')), + hours = round(duration.as('h')), + days = round(duration.as('d')), + months = round(duration.as('M')), + years = round(duration.as('y')), + + args = seconds < relativeTimeThresholds.s && ['s', seconds] || + minutes === 1 && ['m'] || + minutes < relativeTimeThresholds.m && ['mm', minutes] || + hours === 1 && ['h'] || + hours < relativeTimeThresholds.h && ['hh', hours] || + days === 1 && ['d'] || + days < relativeTimeThresholds.d && ['dd', days] || + months === 1 && ['M'] || + months < relativeTimeThresholds.M && ['MM', months] || + years === 1 && ['y'] || ['yy', years]; + + args[2] = withoutSuffix; + args[3] = +posNegDuration > 0; + args[4] = locale; + return substituteTimeAgo.apply({}, args); + } + + + /************************************ + Week of Year + ************************************/ + + + // firstDayOfWeek 0 = sun, 6 = sat + // the day of the week that starts the week + // (usually sunday or monday) + // firstDayOfWeekOfYear 0 = sun, 6 = sat + // the first week is the week that contains the first + // of this day of the week + // (eg. ISO weeks use thursday (4)) + function weekOfYear(mom, firstDayOfWeek, firstDayOfWeekOfYear) { + var end = firstDayOfWeekOfYear - firstDayOfWeek, + daysToDayOfWeek = firstDayOfWeekOfYear - mom.day(), + adjustedMoment; + + + if (daysToDayOfWeek > end) { + daysToDayOfWeek -= 7; + } + + if (daysToDayOfWeek < end - 7) { + daysToDayOfWeek += 7; + } + + adjustedMoment = moment(mom).add(daysToDayOfWeek, 'd'); + return { + week: Math.ceil(adjustedMoment.dayOfYear() / 7), + year: adjustedMoment.year() + }; + } + + //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday + function dayOfYearFromWeeks(year, week, weekday, firstDayOfWeekOfYear, firstDayOfWeek) { + var d = makeUTCDate(year, 0, 1).getUTCDay(), daysToAdd, dayOfYear; + + d = d === 0 ? 7 : d; + weekday = weekday != null ? weekday : firstDayOfWeek; + daysToAdd = firstDayOfWeek - d + (d > firstDayOfWeekOfYear ? 7 : 0) - (d < firstDayOfWeek ? 7 : 0); + dayOfYear = 7 * (week - 1) + (weekday - firstDayOfWeek) + daysToAdd + 1; + + return { + year: dayOfYear > 0 ? year : year - 1, + dayOfYear: dayOfYear > 0 ? dayOfYear : daysInYear(year - 1) + dayOfYear + }; + } + + /************************************ + Top Level Functions + ************************************/ + + function makeMoment(config) { + var input = config._i, + format = config._f; + + config._locale = config._locale || moment.localeData(config._l); + + if (input === null || (format === undefined && input === '')) { + return moment.invalid({nullInput: true}); + } + + if (typeof input === 'string') { + config._i = input = config._locale.preparse(input); + } + + if (moment.isMoment(input)) { + return new Moment(input, true); + } else if (format) { + if (isArray(format)) { + makeDateFromStringAndArray(config); + } else { + makeDateFromStringAndFormat(config); + } + } else { + makeDateFromInput(config); + } + + return new Moment(config); + } + + moment = function (input, format, locale, strict) { + var c; + + if (typeof(locale) === 'boolean') { + strict = locale; + locale = undefined; + } + // object construction must be done this way. + // https://github.com/moment/moment/issues/1423 + c = {}; + c._isAMomentObject = true; + c._i = input; + c._f = format; + c._l = locale; + c._strict = strict; + c._isUTC = false; + c._pf = defaultParsingFlags(); + + return makeMoment(c); + }; + + moment.suppressDeprecationWarnings = false; + + moment.createFromInputFallback = deprecate( + 'moment construction falls back to js Date. This is ' + + 'discouraged and will be removed in upcoming major ' + + 'release. Please refer to ' + + 'https://github.com/moment/moment/issues/1407 for more info.', + function (config) { + config._d = new Date(config._i); + } + ); + + // Pick a moment m from moments so that m[fn](other) is true for all + // other. This relies on the function fn to be transitive. + // + // moments should either be an array of moment objects or an array, whose + // first element is an array of moment objects. + function pickBy(fn, moments) { + var res, i; + if (moments.length === 1 && isArray(moments[0])) { + moments = moments[0]; + } + if (!moments.length) { + return moment(); + } + res = moments[0]; + for (i = 1; i < moments.length; ++i) { + if (moments[i][fn](res)) { + res = moments[i]; + } + } + return res; + } + + moment.min = function () { + var args = [].slice.call(arguments, 0); + + return pickBy('isBefore', args); + }; + + moment.max = function () { + var args = [].slice.call(arguments, 0); + + return pickBy('isAfter', args); + }; + + // creating with utc + moment.utc = function (input, format, locale, strict) { + var c; + + if (typeof(locale) === 'boolean') { + strict = locale; + locale = undefined; + } + // object construction must be done this way. + // https://github.com/moment/moment/issues/1423 + c = {}; + c._isAMomentObject = true; + c._useUTC = true; + c._isUTC = true; + c._l = locale; + c._i = input; + c._f = format; + c._strict = strict; + c._pf = defaultParsingFlags(); + + return makeMoment(c).utc(); + }; + + // creating with unix timestamp (in seconds) + moment.unix = function (input) { + return moment(input * 1000); + }; + + // duration + moment.duration = function (input, key) { + var duration = input, + // matching against regexp is expensive, do it on demand + match = null, + sign, + ret, + parseIso, + diffRes; + + if (moment.isDuration(input)) { + duration = { + ms: input._milliseconds, + d: input._days, + M: input._months + }; + } else if (typeof input === 'number') { + duration = {}; + if (key) { + duration[key] = input; + } else { + duration.milliseconds = input; + } + } else if (!!(match = aspNetTimeSpanJsonRegex.exec(input))) { + sign = (match[1] === '-') ? -1 : 1; + duration = { + y: 0, + d: toInt(match[DATE]) * sign, + h: toInt(match[HOUR]) * sign, + m: toInt(match[MINUTE]) * sign, + s: toInt(match[SECOND]) * sign, + ms: toInt(match[MILLISECOND]) * sign + }; + } else if (!!(match = isoDurationRegex.exec(input))) { + sign = (match[1] === '-') ? -1 : 1; + parseIso = function (inp) { + // We'd normally use ~~inp for this, but unfortunately it also + // converts floats to ints. + // inp may be undefined, so careful calling replace on it. + var res = inp && parseFloat(inp.replace(',', '.')); + // apply sign while we're at it + return (isNaN(res) ? 0 : res) * sign; + }; + duration = { + y: parseIso(match[2]), + M: parseIso(match[3]), + d: parseIso(match[4]), + h: parseIso(match[5]), + m: parseIso(match[6]), + s: parseIso(match[7]), + w: parseIso(match[8]) + }; + } else if (typeof duration === 'object' && + ('from' in duration || 'to' in duration)) { + diffRes = momentsDifference(moment(duration.from), moment(duration.to)); + + duration = {}; + duration.ms = diffRes.milliseconds; + duration.M = diffRes.months; + } + + ret = new Duration(duration); + + if (moment.isDuration(input) && hasOwnProp(input, '_locale')) { + ret._locale = input._locale; + } + + return ret; + }; + + // version number + moment.version = VERSION; + + // default format + moment.defaultFormat = isoFormat; + + // constant that refers to the ISO standard + moment.ISO_8601 = function () {}; + + // Plugins that add properties should also add the key here (null value), + // so we can properly clone ourselves. + moment.momentProperties = momentProperties; + + // This function will be called whenever a moment is mutated. + // It is intended to keep the offset in sync with the timezone. + moment.updateOffset = function () {}; + + // This function allows you to set a threshold for relative time strings + moment.relativeTimeThreshold = function (threshold, limit) { + if (relativeTimeThresholds[threshold] === undefined) { + return false; + } + if (limit === undefined) { + return relativeTimeThresholds[threshold]; + } + relativeTimeThresholds[threshold] = limit; + return true; + }; + + moment.lang = deprecate( + 'moment.lang is deprecated. Use moment.locale instead.', + function (key, value) { + return moment.locale(key, value); + } + ); + + // This function will load locale and then set the global locale. If + // no arguments are passed in, it will simply return the current global + // locale key. + moment.locale = function (key, values) { + var data; + if (key) { + if (typeof(values) !== 'undefined') { + data = moment.defineLocale(key, values); + } + else { + data = moment.localeData(key); + } + + if (data) { + moment.duration._locale = moment._locale = data; + } + } + + return moment._locale._abbr; + }; + + moment.defineLocale = function (name, values) { + if (values !== null) { + values.abbr = name; + if (!locales[name]) { + locales[name] = new Locale(); + } + locales[name].set(values); + + // backwards compat for now: also set the locale + moment.locale(name); + + return locales[name]; + } else { + // useful for testing + delete locales[name]; + return null; + } + }; + + moment.langData = deprecate( + 'moment.langData is deprecated. Use moment.localeData instead.', + function (key) { + return moment.localeData(key); + } + ); + + // returns locale data + moment.localeData = function (key) { + var locale; + + if (key && key._locale && key._locale._abbr) { + key = key._locale._abbr; + } + + if (!key) { + return moment._locale; + } + + if (!isArray(key)) { + //short-circuit everything else + locale = loadLocale(key); + if (locale) { + return locale; + } + key = [key]; + } + + return chooseLocale(key); + }; + + // compare moment object + moment.isMoment = function (obj) { + return obj instanceof Moment || + (obj != null && hasOwnProp(obj, '_isAMomentObject')); + }; + + // for typechecking Duration objects + moment.isDuration = function (obj) { + return obj instanceof Duration; + }; + + for (i = lists.length - 1; i >= 0; --i) { + makeList(lists[i]); + } + + moment.normalizeUnits = function (units) { + return normalizeUnits(units); + }; + + moment.invalid = function (flags) { + var m = moment.utc(NaN); + if (flags != null) { + extend(m._pf, flags); + } + else { + m._pf.userInvalidated = true; + } + + return m; + }; + + moment.parseZone = function () { + return moment.apply(null, arguments).parseZone(); + }; + + moment.parseTwoDigitYear = function (input) { + return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); + }; + + /************************************ + Moment Prototype + ************************************/ + + + extend(moment.fn = Moment.prototype, { + + clone : function () { + return moment(this); + }, + + valueOf : function () { + return +this._d + ((this._offset || 0) * 60000); + }, + + unix : function () { + return Math.floor(+this / 1000); + }, + + toString : function () { + return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); + }, + + toDate : function () { + return this._offset ? new Date(+this) : this._d; + }, + + toISOString : function () { + var m = moment(this).utc(); + if (0 < m.year() && m.year() <= 9999) { + return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); + } else { + return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); + } + }, + + toArray : function () { + var m = this; + return [ + m.year(), + m.month(), + m.date(), + m.hours(), + m.minutes(), + m.seconds(), + m.milliseconds() + ]; + }, + + isValid : function () { + return isValid(this); + }, + + isDSTShifted : function () { + if (this._a) { + return this.isValid() && compareArrays(this._a, (this._isUTC ? moment.utc(this._a) : moment(this._a)).toArray()) > 0; + } + + return false; + }, + + parsingFlags : function () { + return extend({}, this._pf); + }, + + invalidAt: function () { + return this._pf.overflow; + }, + + utc : function (keepLocalTime) { + return this.zone(0, keepLocalTime); + }, + + local : function (keepLocalTime) { + if (this._isUTC) { + this.zone(0, keepLocalTime); + this._isUTC = false; + + if (keepLocalTime) { + this.add(this._dateTzOffset(), 'm'); + } + } + return this; + }, + + format : function (inputString) { + var output = formatMoment(this, inputString || moment.defaultFormat); + return this.localeData().postformat(output); + }, + + add : createAdder(1, 'add'), + + subtract : createAdder(-1, 'subtract'), + + diff : function (input, units, asFloat) { + var that = makeAs(input, this), + zoneDiff = (this.zone() - that.zone()) * 6e4, + diff, output, daysAdjust; + + units = normalizeUnits(units); + + if (units === 'year' || units === 'month') { + // average number of days in the months in the given dates + diff = (this.daysInMonth() + that.daysInMonth()) * 432e5; // 24 * 60 * 60 * 1000 / 2 + // difference in months + output = ((this.year() - that.year()) * 12) + (this.month() - that.month()); + // adjust by taking difference in days, average number of days + // and dst in the given months. + daysAdjust = (this - moment(this).startOf('month')) - + (that - moment(that).startOf('month')); + // same as above but with zones, to negate all dst + daysAdjust -= ((this.zone() - moment(this).startOf('month').zone()) - + (that.zone() - moment(that).startOf('month').zone())) * 6e4; + output += daysAdjust / diff; + if (units === 'year') { + output = output / 12; + } + } else { + diff = (this - that); + output = units === 'second' ? diff / 1e3 : // 1000 + units === 'minute' ? diff / 6e4 : // 1000 * 60 + units === 'hour' ? diff / 36e5 : // 1000 * 60 * 60 + units === 'day' ? (diff - zoneDiff) / 864e5 : // 1000 * 60 * 60 * 24, negate dst + units === 'week' ? (diff - zoneDiff) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst + diff; + } + return asFloat ? output : absRound(output); + }, + + from : function (time, withoutSuffix) { + return moment.duration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix); + }, + + fromNow : function (withoutSuffix) { + return this.from(moment(), withoutSuffix); + }, + + calendar : function (time) { + // We want to compare the start of today, vs this. + // Getting start-of-today depends on whether we're zone'd or not. + var now = time || moment(), + sod = makeAs(now, this).startOf('day'), + diff = this.diff(sod, 'days', true), + format = diff < -6 ? 'sameElse' : + diff < -1 ? 'lastWeek' : + diff < 0 ? 'lastDay' : + diff < 1 ? 'sameDay' : + diff < 2 ? 'nextDay' : + diff < 7 ? 'nextWeek' : 'sameElse'; + return this.format(this.localeData().calendar(format, this)); + }, + + isLeapYear : function () { + return isLeapYear(this.year()); + }, + + isDST : function () { + return (this.zone() < this.clone().month(0).zone() || + this.zone() < this.clone().month(5).zone()); + }, + + day : function (input) { + var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); + if (input != null) { + input = parseWeekday(input, this.localeData()); + return this.add(input - day, 'd'); + } else { + return day; + } + }, + + month : makeAccessor('Month', true), + + startOf : function (units) { + units = normalizeUnits(units); + // the following switch intentionally omits break keywords + // to utilize falling through the cases. + switch (units) { + case 'year': + this.month(0); + /* falls through */ + case 'quarter': + case 'month': + this.date(1); + /* falls through */ + case 'week': + case 'isoWeek': + case 'day': + this.hours(0); + /* falls through */ + case 'hour': + this.minutes(0); + /* falls through */ + case 'minute': + this.seconds(0); + /* falls through */ + case 'second': + this.milliseconds(0); + /* falls through */ + } + + // weeks are a special case + if (units === 'week') { + this.weekday(0); + } else if (units === 'isoWeek') { + this.isoWeekday(1); + } + + // quarters are also special + if (units === 'quarter') { + this.month(Math.floor(this.month() / 3) * 3); + } + + return this; + }, + + endOf: function (units) { + units = normalizeUnits(units); + return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms'); + }, + + isAfter: function (input, units) { + units = normalizeUnits(typeof units !== 'undefined' ? units : 'millisecond'); + if (units === 'millisecond') { + input = moment.isMoment(input) ? input : moment(input); + return +this > +input; + } else { + return +this.clone().startOf(units) > +moment(input).startOf(units); + } + }, + + isBefore: function (input, units) { + units = normalizeUnits(typeof units !== 'undefined' ? units : 'millisecond'); + if (units === 'millisecond') { + input = moment.isMoment(input) ? input : moment(input); + return +this < +input; + } else { + return +this.clone().startOf(units) < +moment(input).startOf(units); + } + }, + + isSame: function (input, units) { + units = normalizeUnits(units || 'millisecond'); + if (units === 'millisecond') { + input = moment.isMoment(input) ? input : moment(input); + return +this === +input; + } else { + return +this.clone().startOf(units) === +makeAs(input, this).startOf(units); + } + }, + + min: deprecate( + 'moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548', + function (other) { + other = moment.apply(null, arguments); + return other < this ? this : other; + } + ), + + max: deprecate( + 'moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548', + function (other) { + other = moment.apply(null, arguments); + return other > this ? this : other; + } + ), + + // keepLocalTime = true means only change the timezone, without + // affecting the local hour. So 5:31:26 +0300 --[zone(2, true)]--> + // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist int zone + // +0200, so we adjust the time as needed, to be valid. + // + // Keeping the time actually adds/subtracts (one hour) + // from the actual represented time. That is why we call updateOffset + // a second time. In case it wants us to change the offset again + // _changeInProgress == true case, then we have to adjust, because + // there is no such time in the given timezone. + zone : function (input, keepLocalTime) { + var offset = this._offset || 0, + localAdjust; + if (input != null) { + if (typeof input === 'string') { + input = timezoneMinutesFromString(input); + } + if (Math.abs(input) < 16) { + input = input * 60; + } + if (!this._isUTC && keepLocalTime) { + localAdjust = this._dateTzOffset(); + } + this._offset = input; + this._isUTC = true; + if (localAdjust != null) { + this.subtract(localAdjust, 'm'); + } + if (offset !== input) { + if (!keepLocalTime || this._changeInProgress) { + addOrSubtractDurationFromMoment(this, + moment.duration(offset - input, 'm'), 1, false); + } else if (!this._changeInProgress) { + this._changeInProgress = true; + moment.updateOffset(this, true); + this._changeInProgress = null; + } + } + } else { + return this._isUTC ? offset : this._dateTzOffset(); + } + return this; + }, + + zoneAbbr : function () { + return this._isUTC ? 'UTC' : ''; + }, + + zoneName : function () { + return this._isUTC ? 'Coordinated Universal Time' : ''; + }, + + parseZone : function () { + if (this._tzm) { + this.zone(this._tzm); + } else if (typeof this._i === 'string') { + this.zone(this._i); + } + return this; + }, + + hasAlignedHourOffset : function (input) { + if (!input) { + input = 0; + } + else { + input = moment(input).zone(); + } + + return (this.zone() - input) % 60 === 0; + }, + + daysInMonth : function () { + return daysInMonth(this.year(), this.month()); + }, + + dayOfYear : function (input) { + var dayOfYear = round((moment(this).startOf('day') - moment(this).startOf('year')) / 864e5) + 1; + return input == null ? dayOfYear : this.add((input - dayOfYear), 'd'); + }, + + quarter : function (input) { + return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3); + }, + + weekYear : function (input) { + var year = weekOfYear(this, this.localeData()._week.dow, this.localeData()._week.doy).year; + return input == null ? year : this.add((input - year), 'y'); + }, + + isoWeekYear : function (input) { + var year = weekOfYear(this, 1, 4).year; + return input == null ? year : this.add((input - year), 'y'); + }, + + week : function (input) { + var week = this.localeData().week(this); + return input == null ? week : this.add((input - week) * 7, 'd'); + }, + + isoWeek : function (input) { + var week = weekOfYear(this, 1, 4).week; + return input == null ? week : this.add((input - week) * 7, 'd'); + }, + + weekday : function (input) { + var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; + return input == null ? weekday : this.add(input - weekday, 'd'); + }, + + isoWeekday : function (input) { + // behaves the same as moment#day except + // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) + // as a setter, sunday should belong to the previous week. + return input == null ? this.day() || 7 : this.day(this.day() % 7 ? input : input - 7); + }, + + isoWeeksInYear : function () { + return weeksInYear(this.year(), 1, 4); + }, + + weeksInYear : function () { + var weekInfo = this.localeData()._week; + return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); + }, + + get : function (units) { + units = normalizeUnits(units); + return this[units](); + }, + + set : function (units, value) { + units = normalizeUnits(units); + if (typeof this[units] === 'function') { + this[units](value); + } + return this; + }, + + // If passed a locale key, it will set the locale for this + // instance. Otherwise, it will return the locale configuration + // variables for this instance. + locale : function (key) { + var newLocaleData; + + if (key === undefined) { + return this._locale._abbr; + } else { + newLocaleData = moment.localeData(key); + if (newLocaleData != null) { + this._locale = newLocaleData; + } + return this; + } + }, + + lang : deprecate( + 'moment().lang() is deprecated. Use moment().localeData() instead.', + function (key) { + if (key === undefined) { + return this.localeData(); + } else { + return this.locale(key); + } + } + ), + + localeData : function () { + return this._locale; + }, + + _dateTzOffset : function () { + // On Firefox.24 Date#getTimezoneOffset returns a floating point. + // https://github.com/moment/moment/pull/1871 + return Math.round(this._d.getTimezoneOffset() / 15) * 15; + } + }); + + function rawMonthSetter(mom, value) { + var dayOfMonth; + + // TODO: Move this out of here! + if (typeof value === 'string') { + value = mom.localeData().monthsParse(value); + // TODO: Another silent failure? + if (typeof value !== 'number') { + return mom; + } + } + + dayOfMonth = Math.min(mom.date(), + daysInMonth(mom.year(), value)); + mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); + return mom; + } + + function rawGetter(mom, unit) { + return mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit](); + } + + function rawSetter(mom, unit, value) { + if (unit === 'Month') { + return rawMonthSetter(mom, value); + } else { + return mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); + } + } + + function makeAccessor(unit, keepTime) { + return function (value) { + if (value != null) { + rawSetter(this, unit, value); + moment.updateOffset(this, keepTime); + return this; + } else { + return rawGetter(this, unit); + } + }; + } + + moment.fn.millisecond = moment.fn.milliseconds = makeAccessor('Milliseconds', false); + moment.fn.second = moment.fn.seconds = makeAccessor('Seconds', false); + moment.fn.minute = moment.fn.minutes = makeAccessor('Minutes', false); + // Setting the hour should keep the time, because the user explicitly + // specified which hour he wants. So trying to maintain the same hour (in + // a new timezone) makes sense. Adding/subtracting hours does not follow + // this rule. + moment.fn.hour = moment.fn.hours = makeAccessor('Hours', true); + // moment.fn.month is defined separately + moment.fn.date = makeAccessor('Date', true); + moment.fn.dates = deprecate('dates accessor is deprecated. Use date instead.', makeAccessor('Date', true)); + moment.fn.year = makeAccessor('FullYear', true); + moment.fn.years = deprecate('years accessor is deprecated. Use year instead.', makeAccessor('FullYear', true)); + + // add plural methods + moment.fn.days = moment.fn.day; + moment.fn.months = moment.fn.month; + moment.fn.weeks = moment.fn.week; + moment.fn.isoWeeks = moment.fn.isoWeek; + moment.fn.quarters = moment.fn.quarter; + + // add aliased format methods + moment.fn.toJSON = moment.fn.toISOString; + + /************************************ + Duration Prototype + ************************************/ + + + function daysToYears (days) { + // 400 years have 146097 days (taking into account leap year rules) + return days * 400 / 146097; + } + + function yearsToDays (years) { + // years * 365 + absRound(years / 4) - + // absRound(years / 100) + absRound(years / 400); + return years * 146097 / 400; + } + + extend(moment.duration.fn = Duration.prototype, { + + _bubble : function () { + var milliseconds = this._milliseconds, + days = this._days, + months = this._months, + data = this._data, + seconds, minutes, hours, years = 0; + + // The following code bubbles up values, see the tests for + // examples of what that means. + data.milliseconds = milliseconds % 1000; + + seconds = absRound(milliseconds / 1000); + data.seconds = seconds % 60; + + minutes = absRound(seconds / 60); + data.minutes = minutes % 60; + + hours = absRound(minutes / 60); + data.hours = hours % 24; + + days += absRound(hours / 24); + + // Accurately convert days to years, assume start from year 0. + years = absRound(daysToYears(days)); + days -= absRound(yearsToDays(years)); + + // 30 days to a month + // TODO (iskren): Use anchor date (like 1st Jan) to compute this. + months += absRound(days / 30); + days %= 30; + + // 12 months -> 1 year + years += absRound(months / 12); + months %= 12; + + data.days = days; + data.months = months; + data.years = years; + }, + + abs : function () { + this._milliseconds = Math.abs(this._milliseconds); + this._days = Math.abs(this._days); + this._months = Math.abs(this._months); + + this._data.milliseconds = Math.abs(this._data.milliseconds); + this._data.seconds = Math.abs(this._data.seconds); + this._data.minutes = Math.abs(this._data.minutes); + this._data.hours = Math.abs(this._data.hours); + this._data.months = Math.abs(this._data.months); + this._data.years = Math.abs(this._data.years); + + return this; + }, + + weeks : function () { + return absRound(this.days() / 7); + }, + + valueOf : function () { + return this._milliseconds + + this._days * 864e5 + + (this._months % 12) * 2592e6 + + toInt(this._months / 12) * 31536e6; + }, + + humanize : function (withSuffix) { + var output = relativeTime(this, !withSuffix, this.localeData()); + + if (withSuffix) { + output = this.localeData().pastFuture(+this, output); + } + + return this.localeData().postformat(output); + }, + + add : function (input, val) { + // supports only 2.0-style add(1, 's') or add(moment) + var dur = moment.duration(input, val); + + this._milliseconds += dur._milliseconds; + this._days += dur._days; + this._months += dur._months; + + this._bubble(); + + return this; + }, + + subtract : function (input, val) { + var dur = moment.duration(input, val); + + this._milliseconds -= dur._milliseconds; + this._days -= dur._days; + this._months -= dur._months; + + this._bubble(); + + return this; + }, + + get : function (units) { + units = normalizeUnits(units); + return this[units.toLowerCase() + 's'](); + }, + + as : function (units) { + var days, months; + units = normalizeUnits(units); + + if (units === 'month' || units === 'year') { + days = this._days + this._milliseconds / 864e5; + months = this._months + daysToYears(days) * 12; + return units === 'month' ? months : months / 12; + } else { + // handle milliseconds separately because of floating point math errors (issue #1867) + days = this._days + yearsToDays(this._months / 12); + switch (units) { + case 'week': return days / 7 + this._milliseconds / 6048e5; + case 'day': return days + this._milliseconds / 864e5; + case 'hour': return days * 24 + this._milliseconds / 36e5; + case 'minute': return days * 24 * 60 + this._milliseconds / 6e4; + case 'second': return days * 24 * 60 * 60 + this._milliseconds / 1000; + // Math.floor prevents floating point math errors here + case 'millisecond': return Math.floor(days * 24 * 60 * 60 * 1000) + this._milliseconds; + default: throw new Error('Unknown unit ' + units); + } + } + }, + + lang : moment.fn.lang, + locale : moment.fn.locale, + + toIsoString : deprecate( + 'toIsoString() is deprecated. Please use toISOString() instead ' + + '(notice the capitals)', + function () { + return this.toISOString(); + } + ), + + toISOString : function () { + // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js + var years = Math.abs(this.years()), + months = Math.abs(this.months()), + days = Math.abs(this.days()), + hours = Math.abs(this.hours()), + minutes = Math.abs(this.minutes()), + seconds = Math.abs(this.seconds() + this.milliseconds() / 1000); + + if (!this.asSeconds()) { + // this is the same as C#'s (Noda) and python (isodate)... + // but not other JS (goog.date) + return 'P0D'; + } + + return (this.asSeconds() < 0 ? '-' : '') + + 'P' + + (years ? years + 'Y' : '') + + (months ? months + 'M' : '') + + (days ? days + 'D' : '') + + ((hours || minutes || seconds) ? 'T' : '') + + (hours ? hours + 'H' : '') + + (minutes ? minutes + 'M' : '') + + (seconds ? seconds + 'S' : ''); + }, + + localeData : function () { + return this._locale; + } + }); + + moment.duration.fn.toString = moment.duration.fn.toISOString; + + function makeDurationGetter(name) { + moment.duration.fn[name] = function () { + return this._data[name]; + }; + } + + for (i in unitMillisecondFactors) { + if (hasOwnProp(unitMillisecondFactors, i)) { + makeDurationGetter(i.toLowerCase()); + } + } + + moment.duration.fn.asMilliseconds = function () { + return this.as('ms'); + }; + moment.duration.fn.asSeconds = function () { + return this.as('s'); + }; + moment.duration.fn.asMinutes = function () { + return this.as('m'); + }; + moment.duration.fn.asHours = function () { + return this.as('h'); + }; + moment.duration.fn.asDays = function () { + return this.as('d'); + }; + moment.duration.fn.asWeeks = function () { + return this.as('weeks'); + }; + moment.duration.fn.asMonths = function () { + return this.as('M'); + }; + moment.duration.fn.asYears = function () { + return this.as('y'); + }; + + /************************************ + Default Locale + ************************************/ + + + // Set default locale, other locale will inherit from English. + moment.locale('en', { + ordinal : function (number) { + var b = number % 10, + output = (toInt(number % 100 / 10) === 1) ? 'th' : + (b === 1) ? 'st' : + (b === 2) ? 'nd' : + (b === 3) ? 'rd' : 'th'; + return number + output; + } + }); + + return moment; + + }).call(this); + + UI.Utils.moment = moment; + + return UI.datepicker; +}); diff --git a/media/uikit/js/components/datepicker.min.js b/media/uikit/js/components/datepicker.min.js new file mode 100644 index 00000000..9a30a1f2 --- /dev/null +++ b/media/uikit/js/components/datepicker.min.js @@ -0,0 +1,3 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-datepicker",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";var e,n,a=!1;return t.component("datepicker",{defaults:{mobile:!1,weekstart:1,i18n:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},format:"DD.MM.YYYY",offsettop:5,maxDate:!1,minDate:!1,pos:"auto",template:function(e,a){var s,i,r,o="";if(a.maxDate!==!1&&(s=isNaN(a.maxDate)?n(a.maxDate,a.format):n().add(a.maxDate,"days")),a.minDate!==!1&&(i=isNaN(a.minDate)?n(a.minDate,a.format):n().add(a.minDate-1,"days")),o+='<div class="uk-datepicker-nav">',o+='<a href="" class="uk-datepicker-previous"></a>',o+='<a href="" class="uk-datepicker-next"></a>',t.formSelect){var u,c,d,l,h=(new Date).getFullYear(),f=[];for(r=0;r<a.i18n.months.length;r++)r==e.month?f.push('<option value="'+r+'" selected>'+a.i18n.months[r]+"</option>"):f.push('<option value="'+r+'">'+a.i18n.months[r]+"</option>");for(u='<span class="uk-form-select">'+a.i18n.months[e.month]+'<select class="update-picker-month">'+f.join("")+"</select></span>",f=[],d=i?i.year():h-50,l=s?s.year():h+20,r=d;l>=r;r++)r==e.year?f.push('<option value="'+r+'" selected>'+r+"</option>"):f.push('<option value="'+r+'">'+r+"</option>");c='<span class="uk-form-select">'+e.year+'<select class="update-picker-year">'+f.join("")+"</select></span>",o+='<div class="uk-datepicker-heading">'+u+" "+c+"</div>"}else o+='<div class="uk-datepicker-heading">'+a.i18n.months[e.month]+" "+e.year+"</div>";for(o+="</div>",o+='<table class="uk-datepicker-table">',o+="<thead>",r=0;r<e.weekdays.length;r++)e.weekdays[r]&&(o+="<th>"+e.weekdays[r]+"</th>");for(o+="</thead>",o+="<tbody>",r=0;r<e.days.length;r++)if(e.days[r]&&e.days[r].length){o+="<tr>";for(var m=0;m<e.days[r].length;m++)if(e.days[r][m]){var _=e.days[r][m],p=[];_.inmonth||p.push("uk-datepicker-table-muted"),_.selected&&p.push("uk-active"),s&&_.day>s&&p.push("uk-datepicker-date-disabled uk-datepicker-table-muted"),i&&i>_.day&&p.push("uk-datepicker-date-disabled uk-datepicker-table-muted"),o+='<td><a href="" class="'+p.join(" ")+'" data-date="'+_.day.format()+'">'+_.day.format("D")+"</a></td>"}o+="</tr>"}return o+="</tbody>",o+="</table>"}},boot:function(){t.$win.on("resize orientationchange",function(){a&&a.hide()}),t.$html.on("focus.datepicker.uikit","[data-uk-datepicker]",function(e){var n=t.$(this);if(!n.data("datepicker")){e.preventDefault();{t.datepicker(n,t.Utils.options(n.attr("data-uk-datepicker")))}n.trigger("focus")}}),t.$html.on("click.datepicker.uikit",function(n){var s=t.$(n.target);!a||s[0]==e[0]||s.data("datepicker")||s.parents(".uk-datepicker:first").length||a.hide()})},init:function(){if(!t.support.touch||"date"!=this.element.attr("type")||this.options.mobile){var s=this;this.current=this.element.val()?n(this.element.val(),this.options.format):n(),this.on("click focus",function(){a!==s&&s.pick(this.value?this.value:s.options.minDate?s.options.minDate:"")}).on("change",function(){s.element.val()&&!n(s.element.val(),s.options.format).isValid()&&s.element.val(n().format(s.options.format))}),e||(e=t.$('<div class="uk-dropdown uk-datepicker"></div>'),e.on("click",".uk-datepicker-next, .uk-datepicker-previous, [data-date]",function(s){s.stopPropagation(),s.preventDefault();var i=t.$(this);return i.hasClass("uk-datepicker-date-disabled")?!1:(i.is("[data-date]")?(a.element.val(n(i.data("date")).format(a.options.format)).trigger("change"),e.hide(),a=!1):a.add(1*(i.hasClass("uk-datepicker-next")?1:-1),"months"),void 0)}),e.on("change",".update-picker-month, .update-picker-year",function(){var e=t.$(this);a[e.is(".update-picker-year")?"setYear":"setMonth"](Number(e.val()))}),e.appendTo("body"))}},pick:function(s){var i=this.element.offset(),r={left:i.left,right:""};this.current=s?n(s,this.options.format):n(),this.initdate=this.current.format("YYYY-MM-DD"),this.update(),"right"==t.langdirection&&(r.right=window.innerWidth-(r.left+this.element.outerWidth()),r.left="");var o=i.top-this.element.outerHeight()+this.element.height()-this.options.offsettop-e.outerHeight(),u=i.top+this.element.outerHeight()+this.options.offsettop;r.top=u,"top"==this.options.pos?r.top=o:"auto"==this.options.pos&&window.innerHeight-u-e.outerHeight()<0&&o>=0&&(r.top=o),e.css(r).show(),this.trigger("show.uk.datepicker"),a=this},add:function(t,e){this.current.add(t,e),this.update()},setMonth:function(t){this.current.month(t),this.update()},setYear:function(t){this.current.year(t),this.update()},update:function(){var t=this.getRows(this.current.year(),this.current.month()),n=this.options.template(t,this.options);e.html(n),this.trigger("update.uk.datepicker")},getRows:function(t,e){var a=this.options,s=n().format("YYYY-MM-DD"),i=[31,t%4===0&&t%100!==0||t%400===0?29:28,31,30,31,30,31,31,30,31,30,31][e],r=new Date(t,e,1).getDay(),o={month:e,year:t,weekdays:[],days:[]},u=[];o.weekdays=function(){for(var t=0,e=[];7>t;t++){for(var n=t+(a.weekstart||0);n>=7;)n-=7;e.push(a.i18n.weekdays[n])}return e}(),a.weekstart&&a.weekstart>0&&(r-=a.weekstart,0>r&&(r+=7));for(var c=i+r,d=c;d>7;)d-=7;c+=7-d;for(var l,h,f,m,_,p=0,y=0;c>p;p++)l=new Date(t,e,1+(p-r)),h=a.mindate&&l<a.mindate||a.maxdate&&l>a.maxdate,_=!(r>p||p>=i+r),l=n(l),f=this.initdate==l.format("YYYY-MM-DD"),m=s==l.format("YYYY-MM-DD"),u.push({selected:f,today:m,disabled:h,day:l,inmonth:_}),7===++y&&(o.days.push(u),u=[],y=0);return o},hide:function(){a&&a===this&&(e.hide(),a=!1,this.trigger("hide.uk.datepicker"))}}),n=function(t){function e(t,e,n){switch(arguments.length){case 2:return null!=t?t:e;case 3:return null!=t?t:null!=e?e:n;default:throw new Error("Implement me")}}function n(t,e){return Ye.call(t,e)}function a(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function s(t){ke.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function i(t,e){var n=!0;return h(function(){return n&&(s(t),n=!1),e.apply(this,arguments)},e)}function r(t,e){mn[t]||(s(e),mn[t]=!0)}function o(t,e){return function(n){return _(t.call(this,n),e)}}function u(t,e){return function(n){return this.localeData().ordinal(t.call(this,n),e)}}function c(){}function d(t,e){e!==!1&&F(t),f(this,t),this._d=new Date(+t._d)}function l(t){var e=v(t),n=e.year||0,a=e.quarter||0,s=e.month||0,i=e.week||0,r=e.day||0,o=e.hour||0,u=e.minute||0,c=e.second||0,d=e.millisecond||0;this._milliseconds=+d+1e3*c+6e4*u+36e5*o,this._days=+r+7*i,this._months=+s+3*a+12*n,this._data={},this._locale=ke.localeData(),this._bubble()}function h(t,e){for(var a in e)n(e,a)&&(t[a]=e[a]);return n(e,"toString")&&(t.toString=e.toString),n(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e){var n,a,s;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._strict=e._strict),"undefined"!=typeof e._tzm&&(t._tzm=e._tzm),"undefined"!=typeof e._isUTC&&(t._isUTC=e._isUTC),"undefined"!=typeof e._offset&&(t._offset=e._offset),"undefined"!=typeof e._pf&&(t._pf=e._pf),"undefined"!=typeof e._locale&&(t._locale=e._locale),Fe.length>0)for(n in Fe)a=Fe[n],s=e[a],"undefined"!=typeof s&&(t[a]=s);return t}function m(t){return 0>t?Math.ceil(t):Math.floor(t)}function _(t,e,n){for(var a=""+Math.abs(t),s=t>=0;a.length<e;)a="0"+a;return(s?n?"+":"":"-")+a}function p(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function y(t,e){var n;return e=H(e,t),t.isBefore(e)?n=p(t,e):(n=p(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function k(t,e){return function(n,a){var s,i;return null===a||isNaN(+a)||(r(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),i=n,n=a,a=i),n="string"==typeof n?+n:n,s=ke.duration(n,a),D(this,s,t),this}}function D(t,e,n,a){var s=e._milliseconds,i=e._days,r=e._months;a=null==a?!0:a,s&&t._d.setTime(+t._d+s*n),i&&fe(t,"Date",he(t,"Date")+i*n),r&&le(t,he(t,"Month")+r*n),a&&ke.updateOffset(t,i||r)}function g(t){return"[object Array]"===Object.prototype.toString.call(t)}function M(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function Y(t,e,n){var a,s=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),r=0;for(a=0;s>a;a++)(n&&t[a]!==e[a]||!n&&S(t[a])!==S(e[a]))&&r++;return r+i}function w(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=on[t]||un[e]||e}return t}function v(t){var e,a,s={};for(a in t)n(t,a)&&(e=w(a),e&&(s[e]=t[a]));return s}function b(e){var n,a;if(0===e.indexOf("week"))n=7,a="day";else{if(0!==e.indexOf("month"))return;n=12,a="month"}ke[e]=function(s,i){var r,o,u=ke._locale[e],c=[];if("number"==typeof s&&(i=s,s=t),o=function(t){var e=ke().utc().set(a,t);return u.call(ke._locale,e,s||"")},null!=i)return o(i);for(r=0;n>r;r++)c.push(o(r));return c}}function S(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function T(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function O(t,e,n){return oe(ke([t,11,31+e-n]),e,n).week}function W(t){return U(t)?366:365}function U(t){return t%4===0&&t%100!==0||t%400===0}function F(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[ve]<0||t._a[ve]>11?ve:t._a[be]<1||t._a[be]>T(t._a[we],t._a[ve])?be:t._a[Se]<0||t._a[Se]>23?Se:t._a[Te]<0||t._a[Te]>59?Te:t._a[Oe]<0||t._a[Oe]>59?Oe:t._a[We]<0||t._a[We]>999?We:-1,t._pf._overflowDayOfYear&&(we>e||e>be)&&(e=be),t._pf.overflow=e)}function G(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length)),t._isValid}function C(t){return t?t.toLowerCase().replace("_","-"):t}function z(t){for(var e,n,a,s,i=0;i<t.length;){for(s=C(t[i]).split("-"),e=s.length,n=C(t[i+1]),n=n?n.split("-"):null;e>0;){if(a=I(s.slice(0,e).join("-")))return a;if(n&&n.length>=e&&Y(s,n,!0)>=e-1)break;e--}i++}return null}function I(t){var e=null;if(!Ue[t]&&Ge)try{e=ke.locale(),require("./locale/"+t),ke.locale(e)}catch(n){}return Ue[t]}function H(t,e){return e._isUTC?ke(t).zone(e._offset||0):ke(t).local()}function x(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function L(t){var e,n,a=t.match(He);for(e=0,n=a.length;n>e;e++)a[e]=fn[a[e]]?fn[a[e]]:x(a[e]);return function(s){var i="";for(e=0;n>e;e++)i+=a[e]instanceof Function?a[e].call(s,t):a[e];return i}}function P(t,e){return t.isValid()?(e=A(e,t.localeData()),cn[e]||(cn[e]=L(e)),cn[e](t)):t.localeData().invalidDate()}function A(t,e){function n(t){return e.longDateFormat(t)||t}var a=5;for(xe.lastIndex=0;a>=0&&xe.test(t);)t=t.replace(xe,n),xe.lastIndex=0,a-=1;return t}function Z(t,e){var n,a=e._strict;switch(t){case"Q":return qe;case"DDDD":return Re;case"YYYY":case"GGGG":case"gggg":return a?Xe:Ae;case"Y":case"G":case"g":return Ke;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return a?Be:Ze;case"S":if(a)return qe;case"SS":if(a)return Qe;case"SSS":if(a)return Re;case"DDD":return Pe;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return je;case"a":case"A":return e._locale._meridiemParse;case"X":return Ve;case"Z":case"ZZ":return Ee;case"T":return $e;case"SSSS":return Ne;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return a?Qe:Le;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Le;case"Do":return Je;default:return n=new RegExp(R(Q(t.replace("\\","")),"i"))}}function N(t){t=t||"";var e=t.match(Ee)||[],n=e[e.length-1]||[],a=(n+"").match(sn)||["-",0,0],s=+(60*a[1])+S(a[2]);return"+"===a[0]?-s:s}function j(t,e,n){var a,s=n._a;switch(t){case"Q":null!=e&&(s[ve]=3*(S(e)-1));break;case"M":case"MM":null!=e&&(s[ve]=S(e)-1);break;case"MMM":case"MMMM":a=n._locale.monthsParse(e),null!=a?s[ve]=a:n._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(s[be]=S(e));break;case"Do":null!=e&&(s[be]=S(parseInt(e,10)));break;case"DDD":case"DDDD":null!=e&&(n._dayOfYear=S(e));break;case"YY":s[we]=ke.parseTwoDigitYear(e);break;case"YYYY":case"YYYYY":case"YYYYYY":s[we]=S(e);break;case"a":case"A":n._isPm=n._locale.isPM(e);break;case"H":case"HH":case"h":case"hh":s[Se]=S(e);break;case"m":case"mm":s[Te]=S(e);break;case"s":case"ss":s[Oe]=S(e);break;case"S":case"SS":case"SSS":case"SSSS":s[We]=S(1e3*("0."+e));break;case"X":n._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=N(e);break;case"dd":case"ddd":case"dddd":a=n._locale.weekdaysParse(e),null!=a?(n._w=n._w||{},n._w.d=a):n._pf.invalidWeekday=e;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":t=t.substr(0,1);case"gggg":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(n._w=n._w||{},n._w[t]=S(e));break;case"gg":case"GG":n._w=n._w||{},n._w[t]=ke.parseTwoDigitYear(e)}}function E(t){var n,a,s,i,r,o,u;n=t._w,null!=n.GG||null!=n.W||null!=n.E?(r=1,o=4,a=e(n.GG,t._a[we],oe(ke(),1,4).year),s=e(n.W,1),i=e(n.E,1)):(r=t._locale._week.dow,o=t._locale._week.doy,a=e(n.gg,t._a[we],oe(ke(),r,o).year),s=e(n.w,1),null!=n.d?(i=n.d,r>i&&++s):i=null!=n.e?n.e+r:r),u=ue(a,s,i,o,r),t._a[we]=u.year,t._dayOfYear=u.dayOfYear}function $(t){var n,a,s,i,r=[];if(!t._d){for(s=J(t),t._w&&null==t._a[be]&&null==t._a[ve]&&E(t),t._dayOfYear&&(i=e(t._a[we],s[we]),t._dayOfYear>W(i)&&(t._pf._overflowDayOfYear=!0),a=ae(i,0,t._dayOfYear),t._a[ve]=a.getUTCMonth(),t._a[be]=a.getUTCDate()),n=0;3>n&&null==t._a[n];++n)t._a[n]=r[n]=s[n];for(;7>n;n++)t._a[n]=r[n]=null==t._a[n]?2===n?1:0:t._a[n];t._d=(t._useUTC?ae:ne).apply(null,r),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()+t._tzm)}}function V(t){var e;t._d||(e=v(t._i),t._a=[e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond],$(t))}function J(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function q(t){if(t._f===ke.ISO_8601)return B(t),void 0;t._a=[],t._pf.empty=!0;var e,n,a,s,i,r=""+t._i,o=r.length,u=0;for(a=A(t._f,t._locale).match(He)||[],e=0;e<a.length;e++)s=a[e],n=(r.match(Z(s,t))||[])[0],n&&(i=r.substr(0,r.indexOf(n)),i.length>0&&t._pf.unusedInput.push(i),r=r.slice(r.indexOf(n)+n.length),u+=n.length),fn[s]?(n?t._pf.empty=!1:t._pf.unusedTokens.push(s),j(s,n,t)):t._strict&&!n&&t._pf.unusedTokens.push(s);t._pf.charsLeftOver=o-u,r.length>0&&t._pf.unusedInput.push(r),t._isPm&&t._a[Se]<12&&(t._a[Se]+=12),t._isPm===!1&&12===t._a[Se]&&(t._a[Se]=0),$(t),F(t)}function Q(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,a,s){return e||n||a||s})}function R(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function X(t){var e,n,s,i,r;if(0===t._f.length)return t._pf.invalidFormat=!0,t._d=new Date(0/0),void 0;for(i=0;i<t._f.length;i++)r=0,e=f({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._pf=a(),e._f=t._f[i],q(e),G(e)&&(r+=e._pf.charsLeftOver,r+=10*e._pf.unusedTokens.length,e._pf.score=r,(null==s||s>r)&&(s=r,n=e));h(t,n||e)}function B(t){var e,n,a=t._i,s=tn.exec(a);if(s){for(t._pf.iso=!0,e=0,n=nn.length;n>e;e++)if(nn[e][1].exec(a)){t._f=nn[e][0]+(s[6]||" ");break}for(e=0,n=an.length;n>e;e++)if(an[e][1].exec(a)){t._f+=an[e][0];break}a.match(Ee)&&(t._f+="Z"),q(t)}else t._isValid=!1}function K(t){B(t),t._isValid===!1&&(delete t._isValid,ke.createFromInputFallback(t))}function te(t,e){var n,a=[];for(n=0;n<t.length;++n)a.push(e(t[n],n));return a}function ee(e){var n,a=e._i;a===t?e._d=new Date:M(a)?e._d=new Date(+a):null!==(n=Ce.exec(a))?e._d=new Date(+n[1]):"string"==typeof a?K(e):g(a)?(e._a=te(a.slice(0),function(t){return parseInt(t,10)}),$(e)):"object"==typeof a?V(e):"number"==typeof a?e._d=new Date(a):ke.createFromInputFallback(e)}function ne(t,e,n,a,s,i,r){var o=new Date(t,e,n,a,s,i,r);return 1970>t&&o.setFullYear(t),o}function ae(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function se(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function ie(t,e,n,a,s){return s.relativeTime(e||1,!!n,t,a)}function re(t,e,n){var a=ke.duration(t).abs(),s=Me(a.as("s")),i=Me(a.as("m")),r=Me(a.as("h")),o=Me(a.as("d")),u=Me(a.as("M")),c=Me(a.as("y")),d=s<dn.s&&["s",s]||1===i&&["m"]||i<dn.m&&["mm",i]||1===r&&["h"]||r<dn.h&&["hh",r]||1===o&&["d"]||o<dn.d&&["dd",o]||1===u&&["M"]||u<dn.M&&["MM",u]||1===c&&["y"]||["yy",c];return d[2]=e,d[3]=+t>0,d[4]=n,ie.apply({},d)}function oe(t,e,n){var a,s=n-e,i=n-t.day();return i>s&&(i-=7),s-7>i&&(i+=7),a=ke(t).add(i,"d"),{week:Math.ceil(a.dayOfYear()/7),year:a.year()}}function ue(t,e,n,a,s){var i,r,o=ae(t,0,1).getUTCDay();return o=0===o?7:o,n=null!=n?n:s,i=s-o+(o>a?7:0)-(s>o?7:0),r=7*(e-1)+(n-s)+i+1,{year:r>0?t:t-1,dayOfYear:r>0?r:W(t-1)+r}}function ce(e){var n=e._i,a=e._f;return e._locale=e._locale||ke.localeData(e._l),null===n||a===t&&""===n?ke.invalid({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),ke.isMoment(n)?new d(n,!0):(a?g(a)?X(e):q(e):ee(e),new d(e)))}function de(t,e){var n,a;if(1===e.length&&g(e[0])&&(e=e[0]),!e.length)return ke();for(n=e[0],a=1;a<e.length;++a)e[a][t](n)&&(n=e[a]);return n}function le(t,e){var n;return"string"==typeof e&&(e=t.localeData().monthsParse(e),"number"!=typeof e)?t:(n=Math.min(t.date(),T(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t)}function he(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function fe(t,e,n){return"Month"===e?le(t,n):t._d["set"+(t._isUTC?"UTC":"")+e](n)}function me(t,e){return function(n){return null!=n?(fe(this,t,n),ke.updateOffset(this,e),this):he(this,t)}}function _e(t){return 400*t/146097}function pe(t){return 146097*t/400}function ye(t){ke.duration.fn[t]=function(){return this._data[t]}}for(var ke,De,ge="2.8.3",Me=Math.round,Ye=Object.prototype.hasOwnProperty,we=0,ve=1,be=2,Se=3,Te=4,Oe=5,We=6,Ue={},Fe=[],Ge="undefined"!=typeof module&&module.exports,Ce=/^\/?Date\((\-?\d+)/i,ze=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Ie=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,He=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,xe=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,Le=/\d\d?/,Pe=/\d{1,3}/,Ae=/\d{1,4}/,Ze=/[+\-]?\d{1,6}/,Ne=/\d+/,je=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Ee=/Z|[\+\-]\d\d:?\d\d/gi,$e=/T/i,Ve=/[\+\-]?\d+(\.\d{1,3})?/,Je=/\d{1,2}/,qe=/\d/,Qe=/\d\d/,Re=/\d{3}/,Xe=/\d{4}/,Be=/[+-]?\d{6}/,Ke=/[+-]?\d+/,tn=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,en="YYYY-MM-DDTHH:mm:ssZ",nn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],an=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],sn=/([\+\-]|\d\d)/gi,rn=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),on={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},un={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},cn={},dn={s:45,m:45,h:22,d:26,M:11},ln="DDD w W M D d".split(" "),hn="M D H h m s w W".split(" "),fn={M:function(){return this.month()+1},MMM:function(t){return this.localeData().monthsShort(this,t)},MMMM:function(t){return this.localeData().months(this,t)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(t){return this.localeData().weekdaysMin(this,t)},ddd:function(t){return this.localeData().weekdaysShort(this,t)},dddd:function(t){return this.localeData().weekdays(this,t)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return _(this.year()%100,2)},YYYY:function(){return _(this.year(),4)},YYYYY:function(){return _(this.year(),5)},YYYYYY:function(){var t=this.year(),e=t>=0?"+":"-";return e+_(Math.abs(t),6)},gg:function(){return _(this.weekYear()%100,2)},gggg:function(){return _(this.weekYear(),4)},ggggg:function(){return _(this.weekYear(),5)},GG:function(){return _(this.isoWeekYear()%100,2)},GGGG:function(){return _(this.isoWeekYear(),4)},GGGGG:function(){return _(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return S(this.milliseconds()/100)},SS:function(){return _(S(this.milliseconds()/10),2)},SSS:function(){return _(this.milliseconds(),3)},SSSS:function(){return _(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+_(S(t/60),2)+":"+_(S(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+_(S(t/60),2)+_(S(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},mn={},_n=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];ln.length;)De=ln.pop(),fn[De+"o"]=u(fn[De],De);for(;hn.length;)De=hn.pop(),fn[De+De]=o(fn[De],2);fn.DDDD=o(fn.DDD,3),h(c.prototype,{set:function(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t){var e,n,a;for(this._monthsParse||(this._monthsParse=[]),e=0;12>e;e++)if(this._monthsParse[e]||(n=ke.utc([2e3,e]),a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[e]=new RegExp(a.replace(".",""),"i")),this._monthsParse[e].test(t))return e},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,n,a;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=ke([2e3,1]).day(e),a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(a.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e){var n=this._calendar[t];return"function"==typeof n?n.apply(e):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,n,a){var s=this._relativeTime[n];return"function"==typeof s?s(t,e,n,a):s.replace(/%d/i,t)},pastFuture:function(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",preparse:function(t){return t},postformat:function(t){return t},week:function(t){return oe(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),ke=function(e,n,s,i){var r;return"boolean"==typeof s&&(i=s,s=t),r={},r._isAMomentObject=!0,r._i=e,r._f=n,r._l=s,r._strict=i,r._isUTC=!1,r._pf=a(),ce(r)},ke.suppressDeprecationWarnings=!1,ke.createFromInputFallback=i("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i)}),ke.min=function(){var t=[].slice.call(arguments,0);return de("isBefore",t)},ke.max=function(){var t=[].slice.call(arguments,0);return de("isAfter",t)},ke.utc=function(e,n,s,i){var r;return"boolean"==typeof s&&(i=s,s=t),r={},r._isAMomentObject=!0,r._useUTC=!0,r._isUTC=!0,r._l=s,r._i=e,r._f=n,r._strict=i,r._pf=a(),ce(r).utc()},ke.unix=function(t){return ke(1e3*t)},ke.duration=function(t,e){var a,s,i,r,o=t,u=null;return ke.isDuration(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(o={},e?o[e]=t:o.milliseconds=t):(u=ze.exec(t))?(a="-"===u[1]?-1:1,o={y:0,d:S(u[be])*a,h:S(u[Se])*a,m:S(u[Te])*a,s:S(u[Oe])*a,ms:S(u[We])*a}):(u=Ie.exec(t))?(a="-"===u[1]?-1:1,i=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*a},o={y:i(u[2]),M:i(u[3]),d:i(u[4]),h:i(u[5]),m:i(u[6]),s:i(u[7]),w:i(u[8])}):"object"==typeof o&&("from"in o||"to"in o)&&(r=y(ke(o.from),ke(o.to)),o={},o.ms=r.milliseconds,o.M=r.months),s=new l(o),ke.isDuration(t)&&n(t,"_locale")&&(s._locale=t._locale),s},ke.version=ge,ke.defaultFormat=en,ke.ISO_8601=function(){},ke.momentProperties=Fe,ke.updateOffset=function(){},ke.relativeTimeThreshold=function(e,n){return dn[e]===t?!1:n===t?dn[e]:(dn[e]=n,!0)},ke.lang=i("moment.lang is deprecated. Use moment.locale instead.",function(t,e){return ke.locale(t,e)}),ke.locale=function(t,e){var n;return t&&(n="undefined"!=typeof e?ke.defineLocale(t,e):ke.localeData(t),n&&(ke.duration._locale=ke._locale=n)),ke._locale._abbr},ke.defineLocale=function(t,e){return null!==e?(e.abbr=t,Ue[t]||(Ue[t]=new c),Ue[t].set(e),ke.locale(t),Ue[t]):(delete Ue[t],null)},ke.langData=i("moment.langData is deprecated. Use moment.localeData instead.",function(t){return ke.localeData(t)}),ke.localeData=function(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ke._locale;if(!g(t)){if(e=I(t))return e;t=[t]}return z(t)},ke.isMoment=function(t){return t instanceof d||null!=t&&n(t,"_isAMomentObject")},ke.isDuration=function(t){return t instanceof l};for(De=_n.length-1;De>=0;--De)b(_n[De]);ke.normalizeUnits=function(t){return w(t)},ke.invalid=function(t){var e=ke.utc(0/0);return null!=t?h(e._pf,t):e._pf.userInvalidated=!0,e},ke.parseZone=function(){return ke.apply(null,arguments).parseZone()},ke.parseTwoDigitYear=function(t){return S(t)+(S(t)>68?1900:2e3)},h(ke.fn=d.prototype,{clone:function(){return ke(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=ke(this).utc();return 0<t.year()&&t.year()<=9999?P(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):P(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var t=this;return[t.year(),t.month(),t.date(),t.hours(),t.minutes(),t.seconds(),t.milliseconds()]},isValid:function(){return G(this)},isDSTShifted:function(){return this._a?this.isValid()&&Y(this._a,(this._isUTC?ke.utc(this._a):ke(this._a)).toArray())>0:!1},parsingFlags:function(){return h({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(t){return this.zone(0,t)},local:function(t){return this._isUTC&&(this.zone(0,t),this._isUTC=!1,t&&this.add(this._dateTzOffset(),"m")),this},format:function(t){var e=P(this,t||ke.defaultFormat);return this.localeData().postformat(e)},add:k(1,"add"),subtract:k(-1,"subtract"),diff:function(t,e,n){var a,s,i,r=H(t,this),o=6e4*(this.zone()-r.zone());return e=w(e),"year"===e||"month"===e?(a=432e5*(this.daysInMonth()+r.daysInMonth()),s=12*(this.year()-r.year())+(this.month()-r.month()),i=this-ke(this).startOf("month")-(r-ke(r).startOf("month")),i-=6e4*(this.zone()-ke(this).startOf("month").zone()-(r.zone()-ke(r).startOf("month").zone())),s+=i/a,"year"===e&&(s/=12)):(a=this-r,s="second"===e?a/1e3:"minute"===e?a/6e4:"hour"===e?a/36e5:"day"===e?(a-o)/864e5:"week"===e?(a-o)/6048e5:a),n?s:m(s)},from:function(t,e){return ke.duration({to:this,from:t}).locale(this.locale()).humanize(!e)},fromNow:function(t){return this.from(ke(),t)},calendar:function(t){var e=t||ke(),n=H(e,this).startOf("day"),a=this.diff(n,"days",!0),s=-6>a?"sameElse":-1>a?"lastWeek":0>a?"lastDay":1>a?"sameDay":2>a?"nextDay":7>a?"nextWeek":"sameElse";return this.format(this.localeData().calendar(s,this))},isLeapYear:function(){return U(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=se(t,this.localeData()),this.add(t-e,"d")):e},month:me("Month",!0),startOf:function(t){switch(t=w(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t?this.weekday(0):"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(t){return t=w(t),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},isAfter:function(t,e){return e=w("undefined"!=typeof e?e:"millisecond"),"millisecond"===e?(t=ke.isMoment(t)?t:ke(t),+this>+t):+this.clone().startOf(e)>+ke(t).startOf(e)},isBefore:function(t,e){return e=w("undefined"!=typeof e?e:"millisecond"),"millisecond"===e?(t=ke.isMoment(t)?t:ke(t),+t>+this):+this.clone().startOf(e)<+ke(t).startOf(e)},isSame:function(t,e){return e=w(e||"millisecond"),"millisecond"===e?(t=ke.isMoment(t)?t:ke(t),+this===+t):+this.clone().startOf(e)===+H(t,this).startOf(e)},min:i("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(t){return t=ke.apply(null,arguments),this>t?this:t}),max:i("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(t){return t=ke.apply(null,arguments),t>this?this:t}),zone:function(t,e){var n,a=this._offset||0;return null==t?this._isUTC?a:this._dateTzOffset():("string"==typeof t&&(t=N(t)),Math.abs(t)<16&&(t=60*t),!this._isUTC&&e&&(n=this._dateTzOffset()),this._offset=t,this._isUTC=!0,null!=n&&this.subtract(n,"m"),a!==t&&(!e||this._changeInProgress?D(this,ke.duration(a-t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ke.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this +},hasAlignedHourOffset:function(t){return t=t?ke(t).zone():0,(this.zone()-t)%60===0},daysInMonth:function(){return T(this.year(),this.month())},dayOfYear:function(t){var e=Me((ke(this).startOf("day")-ke(this).startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},quarter:function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},weekYear:function(t){var e=oe(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")},isoWeekYear:function(t){var e=oe(this,1,4).year;return null==t?e:this.add(t-e,"y")},week:function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},isoWeek:function(t){var e=oe(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},weekday:function(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},isoWeeksInYear:function(){return O(this.year(),1,4)},weeksInYear:function(){var t=this.localeData()._week;return O(this.year(),t.dow,t.doy)},get:function(t){return t=w(t),this[t]()},set:function(t,e){return t=w(t),"function"==typeof this[t]&&this[t](e),this},locale:function(e){var n;return e===t?this._locale._abbr:(n=ke.localeData(e),null!=n&&(this._locale=n),this)},lang:i("moment().lang() is deprecated. Use moment().localeData() instead.",function(e){return e===t?this.localeData():this.locale(e)}),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}}),ke.fn.millisecond=ke.fn.milliseconds=me("Milliseconds",!1),ke.fn.second=ke.fn.seconds=me("Seconds",!1),ke.fn.minute=ke.fn.minutes=me("Minutes",!1),ke.fn.hour=ke.fn.hours=me("Hours",!0),ke.fn.date=me("Date",!0),ke.fn.dates=i("dates accessor is deprecated. Use date instead.",me("Date",!0)),ke.fn.year=me("FullYear",!0),ke.fn.years=i("years accessor is deprecated. Use year instead.",me("FullYear",!0)),ke.fn.days=ke.fn.day,ke.fn.months=ke.fn.month,ke.fn.weeks=ke.fn.week,ke.fn.isoWeeks=ke.fn.isoWeek,ke.fn.quarters=ke.fn.quarter,ke.fn.toJSON=ke.fn.toISOString,h(ke.duration.fn=l.prototype,{_bubble:function(){var t,e,n,a=this._milliseconds,s=this._days,i=this._months,r=this._data,o=0;r.milliseconds=a%1e3,t=m(a/1e3),r.seconds=t%60,e=m(t/60),r.minutes=e%60,n=m(e/60),r.hours=n%24,s+=m(n/24),o=m(_e(s)),s-=m(pe(o)),i+=m(s/30),s%=30,o+=m(i/12),i%=12,r.days=s,r.months=i,r.years=o},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return m(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12)},humanize:function(t){var e=re(this,!t,this.localeData());return t&&(e=this.localeData().pastFuture(+this,e)),this.localeData().postformat(e)},add:function(t,e){var n=ke.duration(t,e);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(t,e){var n=ke.duration(t,e);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(t){return t=w(t),this[t.toLowerCase()+"s"]()},as:function(t){var e,n;if(t=w(t),"month"===t||"year"===t)return e=this._days+this._milliseconds/864e5,n=this._months+12*_e(e),"month"===t?n:n/12;switch(e=this._days+pe(this._months/12),t){case"week":return e/7+this._milliseconds/6048e5;case"day":return e+this._milliseconds/864e5;case"hour":return 24*e+this._milliseconds/36e5;case"minute":return 24*e*60+this._milliseconds/6e4;case"second":return 24*e*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*e*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+t)}},lang:ke.fn.lang,locale:ke.fn.locale,toIsoString:i("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var t=Math.abs(this.years()),e=Math.abs(this.months()),n=Math.abs(this.days()),a=Math.abs(this.hours()),s=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(a||s||i?"T":"")+(a?a+"H":"")+(s?s+"M":"")+(i?i+"S":""):"P0D"},localeData:function(){return this._locale}}),ke.duration.fn.toString=ke.duration.fn.toISOString;for(De in rn)n(rn,De)&&ye(De.toLowerCase());return ke.duration.fn.asMilliseconds=function(){return this.as("ms")},ke.duration.fn.asSeconds=function(){return this.as("s")},ke.duration.fn.asMinutes=function(){return this.as("m")},ke.duration.fn.asHours=function(){return this.as("h")},ke.duration.fn.asDays=function(){return this.as("d")},ke.duration.fn.asWeeks=function(){return this.as("weeks")},ke.duration.fn.asMonths=function(){return this.as("M")},ke.duration.fn.asYears=function(){return this.as("y")},ke.locale("en",{ordinal:function(t){var e=t%10,n=1===S(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),ke}.call(this),t.Utils.moment=n,t.datepicker}); \ No newline at end of file diff --git a/media/uikit/js/components/form-password.js b/media/uikit/js/components/form-password.js new file mode 100644 index 00000000..38d0549e --- /dev/null +++ b/media/uikit/js/components/form-password.js @@ -0,0 +1,66 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-form-password", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + UI.component('formPassword', { + + defaults: { + "lblShow": "Show", + "lblHide": "Hide" + }, + + boot: function() { + // init code + UI.$html.on("click.formpassword.uikit", "[data-uk-form-password]", function(e) { + + var ele = UI.$(this); + + if (!ele.data("formPassword")) { + + e.preventDefault(); + + var obj = UI.formPassword(ele, UI.Utils.options(ele.attr("data-uk-form-password"))); + ele.trigger("click"); + } + }); + }, + + init: function() { + + var $this = this; + + this.on("click", function(e) { + + e.preventDefault(); + + if($this.input.length) { + var type = $this.input.attr("type"); + $this.input.attr("type", type=="text" ? "password":"text"); + $this.element.text($this.options[type=="text" ? "lblShow":"lblHide"]); + } + }); + + this.input = this.element.next("input").length ? this.element.next("input") : this.element.prev("input"); + this.element.text(this.options[this.input.is("[type='password']") ? "lblShow":"lblHide"]); + + this.element.data("formPassword", this); + } + }); + + return UI.formPassword; +}); diff --git a/media/uikit/js/components/form-password.min.js b/media/uikit/js/components/form-password.min.js new file mode 100644 index 00000000..a57ba508 --- /dev/null +++ b/media/uikit/js/components/form-password.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var i;window.UIkit&&(i=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-form-password",["uikit"],function(){return i||t(UIkit)})}(function(t){"use strict";return t.component("formPassword",{defaults:{lblShow:"Show",lblHide:"Hide"},boot:function(){t.$html.on("click.formpassword.uikit","[data-uk-form-password]",function(i){var e=t.$(this);if(!e.data("formPassword")){i.preventDefault();{t.formPassword(e,t.Utils.options(e.attr("data-uk-form-password")))}e.trigger("click")}})},init:function(){var t=this;this.on("click",function(i){if(i.preventDefault(),t.input.length){var e=t.input.attr("type");t.input.attr("type","text"==e?"password":"text"),t.element.text(t.options["text"==e?"lblShow":"lblHide"])}}),this.input=this.element.next("input").length?this.element.next("input"):this.element.prev("input"),this.element.text(this.options[this.input.is("[type='password']")?"lblShow":"lblHide"]),this.element.data("formPassword",this)}}),t.formPassword}); \ No newline at end of file diff --git a/media/uikit/js/components/form-select.js b/media/uikit/js/components/form-select.js new file mode 100644 index 00000000..ddafff85 --- /dev/null +++ b/media/uikit/js/components/form-select.js @@ -0,0 +1,70 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-form-select", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + UI.component('formSelect', { + + defaults: { + 'target': '>span:first', + 'activeClass': 'uk-active' + }, + + boot: function() { + // init code + UI.ready(function(context) { + + UI.$("[data-uk-form-select]", context).each(function(){ + + var ele = UI.$(this); + + if (!ele.data("formSelect")) { + var obj = UI.formSelect(ele, UI.Utils.options(ele.attr("data-uk-form-select"))); + } + }); + }); + }, + + init: function() { + var $this = this; + + this.target = this.find(this.options.target); + this.select = this.find('select'); + + // init + on change event + this.select.on("change", (function(){ + + var select = $this.select[0], fn = function(){ + + try { + $this.target.text(select.options[select.selectedIndex].text); + } catch(e) {} + + $this.element[$this.select.val() ? 'addClass':'removeClass']($this.options.activeClass); + + return fn; + }; + + return fn(); + })()); + + this.element.data("formSelect", this); + } + }); + + return UI.formSelect; +}); diff --git a/media/uikit/js/components/form-select.min.js b/media/uikit/js/components/form-select.min.js new file mode 100644 index 00000000..fc09bfb3 --- /dev/null +++ b/media/uikit/js/components/form-select.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-form-select",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";return t.component("formSelect",{defaults:{target:">span:first",activeClass:"uk-active"},boot:function(){t.ready(function(e){t.$("[data-uk-form-select]",e).each(function(){var e=t.$(this);if(!e.data("formSelect")){t.formSelect(e,t.Utils.options(e.attr("data-uk-form-select")))}})})},init:function(){var t=this;this.target=this.find(this.options.target),this.select=this.find("select"),this.select.on("change",function(){var e=t.select[0],i=function(){try{t.target.text(e.options[e.selectedIndex].text)}catch(n){}return t.element[t.select.val()?"addClass":"removeClass"](t.options.activeClass),i};return i()}()),this.element.data("formSelect",this)}}),t.formSelect}); \ No newline at end of file diff --git a/media/uikit/js/components/grid.js b/media/uikit/js/components/grid.js new file mode 100644 index 00000000..3a7ae7a3 --- /dev/null +++ b/media/uikit/js/components/grid.js @@ -0,0 +1,524 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-grid", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + UI.component('grid', { + + defaults: { + colwidth : 'auto', + animation : true, + duration : 300, + gutter : 0, + controls : false, + filter : false + }, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$('[data-uk-grid]', context).each(function(){ + + var ele = UI.$(this); + + if(!ele.data("grid")) { + var plugin = UI.grid(ele, UI.Utils.options(ele.attr('data-uk-grid'))); + } + }); + }); + }, + + init: function() { + + var $this = this, gutter = String(this.options.gutter).trim().split(' '); + + this.gutterv = parseInt(gutter[0], 10); + this.gutterh = parseInt((gutter[1] || gutter[0]), 10); + + // make sure parent element has the right position property + this.element.css({'position': 'relative'}); + + this.controls = null; + + if (this.options.controls) { + + this.controls = UI.$(this.options.controls); + + // filter + this.controls.on('click', '[data-uk-filter]', function(e){ + e.preventDefault(); + $this.filter(UI.$(this).data('ukFilter')); + }); + + // sort + this.controls.on('click', '[data-uk-sort]', function(e){ + e.preventDefault(); + var cmd = UI.$(this).attr('data-uk-sort').split(':'); + $this.sort(cmd[0], cmd[1]); + }); + } + + UI.$win.on('load resize orientationchange', UI.Utils.debounce(function(){ + + if ($this.currentfilter) { + $this.filter($this.currentfilter); + } else { + this.updateLayout(); + } + + }.bind(this), 100)); + + this.on('display.uk.check', function(){ + if ($this.element.is(":visible")) $this.updateLayout(); + }); + + UI.$html.on("changed.uk.dom", function(e) { + $this.updateLayout(); + }); + + if (this.options.filter !== false) { + this.filter(this.options.filter); + } else { + this.updateLayout(); + } + }, + + _prepareElements: function() { + + var children = this.element.children(':not([data-grid-prepared])'), css; + + // exit if no already prepared elements found + if (!children.length) { + return; + } + + css = { + 'position' : 'absolute', + 'box-sizing' : 'border-box', + 'width' : this.options.colwidth == 'auto' ? '' : this.options.colwidth + }; + + if (this.options.gutter) { + + css['padding-left'] = this.gutterh; + css['padding-bottom'] = this.gutterv; + + this.element.css('margin-left', this.gutterh * -1); + } + + children.attr('data-grid-prepared', 'true').css(css); + }, + + updateLayout: function(elements) { + + this._prepareElements(); + + elements = elements || this.element.children(':visible'); + + var $this = this, + children = elements, + maxwidth = this.element.width() + (2*this.gutterh) + 2, + left = 0, + top = 0, + positions = [], + + item, width, height, pos, aX, aY, i, z, max, size; + + this.trigger('beforeupdate.uk.grid', [children]); + + children.each(function(index){ + + size = getElementSize(this); + + item = UI.$(this); + width = size.outerWidth; + height = size.outerHeight; + left = 0; + top = 0; + + for (i=0,max=positions.length;i<max;i++) { + + pos = positions[i]; + + if (left <= pos.aX) { left = pos.aX; } + if (maxwidth < (left + width)) { left = 0; } + if (top <= pos.aY) { top = pos.aY; } + } + + positions.push({ + "ele" : item, + "top" : top, + "left" : left, + "width" : width, + "height" : height, + "aY" : (top + height), + "aX" : (left + width) + }); + }); + + var posPrev, maxHeight = 0; + + // fix top + for (i=0,max=positions.length;i<max;i++) { + + pos = positions[i]; + top = 0; + + for (z=0;z<i;z++) { + + posPrev = positions[z]; + + // (posPrev.left + 1) fixex 1px bug when using % based widths + if (pos.left < posPrev.aX && (posPrev.left +1) < pos.aX) { + top = posPrev.aY; + } + } + + pos.top = top; + pos.aY = top + pos.height; + + maxHeight = Math.max(maxHeight, pos.aY); + } + + maxHeight = maxHeight - this.gutterv; + + if (this.options.animation) { + + this.element.stop().animate({'height': maxHeight}, 100); + + positions.forEach(function(pos){ + pos.ele.stop().animate({"top": pos.top, "left": pos.left, opacity: 1}, this.options.duration); + }.bind(this)); + + } else { + + this.element.css('height', maxHeight); + + positions.forEach(function(pos){ + pos.ele.css({"top": pos.top, "left": pos.left, opacity: 1}); + }.bind(this)); + } + + // make sure to trigger possible scrollpies etc. + setTimeout(function() { + UI.$doc.trigger('scrolling.uk.document'); + }, 2 * this.options.duration * (this.options.animation ? 1:0)); + + this.trigger('afterupdate.uk.grid', [children]); + }, + + filter: function(filter) { + + this.currentfilter = filter; + + filter = filter || []; + + if (typeof(filter) === 'string') { + filter = filter.split(/,/).map(function(item){ return item.trim(); }); + } + + var $this = this, children = this.element.children(), elements = {"visible": [], "hidden": []}, visible, hidden; + + children.each(function(index){ + + var ele = UI.$(this), f = ele.attr('data-uk-filter'), infilter = filter.length ? false : true; + + if (f) { + + f = f.split(/,/).map(function(item){ return item.trim(); }); + + filter.forEach(function(item){ + if (f.indexOf(item) > -1) infilter = true; + }); + } + + elements[infilter ? "visible":"hidden"].push(ele); + }); + + // convert to jQuery collections + elements.hidden = UI.$(elements.hidden).map(function () {return this[0];}); + elements.visible = UI.$(elements.visible).map(function () {return this[0];}); + + elements.hidden.attr('aria-hidden', 'true').filter(':visible').fadeOut(this.options.duration); + elements.visible.attr('aria-hidden', 'false').filter(':hidden').css('opacity', 0).show(); + + $this.updateLayout(elements.visible); + + if (this.controls && this.controls.length) { + this.controls.find('[data-uk-filter]').removeClass('uk-active').filter('[data-uk-filter="'+filter+'"]').addClass('uk-active'); + } + }, + + sort: function(by, order){ + + order = order || 1; + + // covert from string (asc|desc) to number + if (typeof(order) === 'string') { + order = order.toLowerCase() == 'desc' ? -1 : 1; + } + + var elements = this.element.children(); + + elements.sort(function(a, b){ + + a = UI.$(a); + b = UI.$(b); + + return (b.data(by) || '') < (a.data(by) || '') ? order : (order*-1); + + }).appendTo(this.element); + + this.updateLayout(elements.filter(':visible')); + + if (this.controls && this.controls.length) { + this.controls.find('[data-uk-sort]').removeClass('uk-active').filter('[data-uk-sort="'+by+':'+(order == -1 ? 'desc':'asc')+'"]').addClass('uk-active'); + } + } + }); + + + /*! + * getSize v1.2.2 + * measure size of elements + * MIT license + * https://github.com/desandro/get-size + */ + var _getSize = (function(){ + + var prefixes = 'Webkit Moz ms Ms O'.split(' '); + var docElemStyle = document.documentElement.style; + + function getStyleProperty( propName ) { + if ( !propName ) { + return; + } + + // test standard property first + if ( typeof docElemStyle[ propName ] === 'string' ) { + return propName; + } + + // capitalize + propName = propName.charAt(0).toUpperCase() + propName.slice(1); + + // test vendor specific properties + var prefixed; + for ( var i=0, len = prefixes.length; i < len; i++ ) { + prefixed = prefixes[i] + propName; + if ( typeof docElemStyle[ prefixed ] === 'string' ) { + return prefixed; + } + } + } + + // -------------------------- helpers -------------------------- // + + // get a number from a string, not a percentage + function getStyleSize( value ) { + var num = parseFloat( value ); + // not a percent like '100%', and a number + var isValid = value.indexOf('%') === -1 && !isNaN( num ); + return isValid && num; + } + + function noop() {} + + var logError = typeof console === 'undefined' ? noop : function( message ) { + console.error( message ); + }; + + // -------------------------- measurements -------------------------- // + + var measurements = [ + 'paddingLeft', + 'paddingRight', + 'paddingTop', + 'paddingBottom', + 'marginLeft', + 'marginRight', + 'marginTop', + 'marginBottom', + 'borderLeftWidth', + 'borderRightWidth', + 'borderTopWidth', + 'borderBottomWidth' + ]; + + function getZeroSize() { + var size = { + width: 0, + height: 0, + innerWidth: 0, + innerHeight: 0, + outerWidth: 0, + outerHeight: 0 + }; + for ( var i=0, len = measurements.length; i < len; i++ ) { + var measurement = measurements[i]; + size[ measurement ] = 0; + } + return size; + } + + + // -------------------------- setup -------------------------- // + + var isSetup = false; + var getStyle, boxSizingProp, isBoxSizeOuter; + + /** + * setup vars and functions + * do it on initial getSize(), rather than on script load + * For Firefox bug https://bugzilla.mozilla.org/show_bug.cgi?id=548397 + */ + function setup() { + // setup once + if ( isSetup ) { + return; + } + isSetup = true; + + var getComputedStyle = window.getComputedStyle; + getStyle = ( function() { + var getStyleFn = getComputedStyle ? + function( elem ) { + return getComputedStyle( elem, null ); + } : + function( elem ) { + return elem.currentStyle; + }; + + return function getStyle( elem ) { + var style = getStyleFn( elem ); + if ( !style ) { + logError( 'Style returned ' + style + + '. Are you running this code in a hidden iframe on Firefox? ' + + 'See http://bit.ly/getsizebug1' ); + } + return style; + }; + })(); + + // -------------------------- box sizing -------------------------- // + + boxSizingProp = getStyleProperty('boxSizing'); + + /** + * WebKit measures the outer-width on style.width on border-box elems + * IE & Firefox measures the inner-width + */ + if ( boxSizingProp ) { + var div = document.createElement('div'); + div.style.width = '200px'; + div.style.padding = '1px 2px 3px 4px'; + div.style.borderStyle = 'solid'; + div.style.borderWidth = '1px 2px 3px 4px'; + div.style[ boxSizingProp ] = 'border-box'; + + var body = document.body || document.documentElement; + body.appendChild( div ); + var style = getStyle( div ); + + isBoxSizeOuter = getStyleSize( style.width ) === 200; + body.removeChild( div ); + } + + } + + // -------------------------- getSize -------------------------- // + + function getSize( elem ) { + setup(); + + // use querySeletor if elem is string + if ( typeof elem === 'string' ) { + elem = document.querySelector( elem ); + } + + // do not proceed on non-objects + if ( !elem || typeof elem !== 'object' || !elem.nodeType ) { + return; + } + + var style = getStyle( elem ); + + // if hidden, everything is 0 + if ( style.display === 'none' ) { + return getZeroSize(); + } + + var size = {}; + size.width = elem.offsetWidth; + size.height = elem.offsetHeight; + + var isBorderBox = size.isBorderBox = !!( boxSizingProp && + style[ boxSizingProp ] && style[ boxSizingProp ] === 'border-box' ); + + // get all measurements + for ( var i=0, len = measurements.length; i < len; i++ ) { + var measurement = measurements[i]; + var value = style[ measurement ]; + + var num = parseFloat( value ); + // any 'auto', 'medium' value will be 0 + size[ measurement ] = !isNaN( num ) ? num : 0; + } + + var paddingWidth = size.paddingLeft + size.paddingRight; + var paddingHeight = size.paddingTop + size.paddingBottom; + var marginWidth = size.marginLeft + size.marginRight; + var marginHeight = size.marginTop + size.marginBottom; + var borderWidth = size.borderLeftWidth + size.borderRightWidth; + var borderHeight = size.borderTopWidth + size.borderBottomWidth; + + var isBorderBoxSizeOuter = isBorderBox && isBoxSizeOuter; + + // overwrite width and height if we can get it from style + var styleWidth = getStyleSize( style.width ); + if ( styleWidth !== false ) { + size.width = styleWidth + + // add padding and border unless it's already including it + ( isBorderBoxSizeOuter ? 0 : paddingWidth + borderWidth ); + } + + var styleHeight = getStyleSize( style.height ); + if ( styleHeight !== false ) { + size.height = styleHeight + + // add padding and border unless it's already including it + ( isBorderBoxSizeOuter ? 0 : paddingHeight + borderHeight ); + } + + size.innerWidth = size.width - ( paddingWidth + borderWidth ); + size.innerHeight = size.height - ( paddingHeight + borderHeight ); + + size.outerWidth = size.width + marginWidth; + size.outerHeight = size.height + marginHeight; + + return size; + } + + return getSize; + + })(); + + function getElementSize(ele) { + return _getSize(ele); + } +}); diff --git a/media/uikit/js/components/grid.min.js b/media/uikit/js/components/grid.min.js new file mode 100644 index 00000000..ce3bbdea --- /dev/null +++ b/media/uikit/js/components/grid.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var i;window.UIkit&&(i=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-grid",["uikit"],function(){return i||t(UIkit)})}(function(t){"use strict";function i(t){return e(t)}t.component("grid",{defaults:{colwidth:"auto",animation:!0,duration:300,gutter:0,controls:!1,filter:!1},boot:function(){t.ready(function(i){t.$("[data-uk-grid]",i).each(function(){var i=t.$(this);if(!i.data("grid")){t.grid(i,t.Utils.options(i.attr("data-uk-grid")))}})})},init:function(){var i=this,e=String(this.options.gutter).trim().split(" ");this.gutterv=parseInt(e[0],10),this.gutterh=parseInt(e[1]||e[0],10),this.element.css({position:"relative"}),this.controls=null,this.options.controls&&(this.controls=t.$(this.options.controls),this.controls.on("click","[data-uk-filter]",function(e){e.preventDefault(),i.filter(t.$(this).data("ukFilter"))}),this.controls.on("click","[data-uk-sort]",function(e){e.preventDefault();var n=t.$(this).attr("data-uk-sort").split(":");i.sort(n[0],n[1])})),t.$win.on("load resize orientationchange",t.Utils.debounce(function(){i.currentfilter?i.filter(i.currentfilter):this.updateLayout()}.bind(this),100)),this.on("display.uk.check",function(){i.element.is(":visible")&&i.updateLayout()}),t.$html.on("changed.uk.dom",function(){i.updateLayout()}),this.options.filter!==!1?this.filter(this.options.filter):this.updateLayout()},_prepareElements:function(){var t,i=this.element.children(":not([data-grid-prepared])");i.length&&(t={position:"absolute","box-sizing":"border-box",width:"auto"==this.options.colwidth?"":this.options.colwidth},this.options.gutter&&(t["padding-left"]=this.gutterh,t["padding-bottom"]=this.gutterv,this.element.css("margin-left",-1*this.gutterh)),i.attr("data-grid-prepared","true").css(t))},updateLayout:function(e){this._prepareElements(),e=e||this.element.children(":visible");var n,r,o,a,s,d,h,u,l=e,f=this.element.width()+2*this.gutterh+2,c=0,p=0,g=[];this.trigger("beforeupdate.uk.grid",[l]),l.each(function(){for(u=i(this),n=t.$(this),r=u.outerWidth,o=u.outerHeight,c=0,p=0,s=0,h=g.length;h>s;s++)a=g[s],c<=a.aX&&(c=a.aX),c+r>f&&(c=0),p<=a.aY&&(p=a.aY);g.push({ele:n,top:p,left:c,width:r,height:o,aY:p+o,aX:c+r})});var m,v=0;for(s=0,h=g.length;h>s;s++){for(a=g[s],p=0,d=0;s>d;d++)m=g[d],a.left<m.aX&&m.left+1<a.aX&&(p=m.aY);a.top=p,a.aY=p+a.height,v=Math.max(v,a.aY)}v-=this.gutterv,this.options.animation?(this.element.stop().animate({height:v},100),g.forEach(function(t){t.ele.stop().animate({top:t.top,left:t.left,opacity:1},this.options.duration)}.bind(this))):(this.element.css("height",v),g.forEach(function(t){t.ele.css({top:t.top,left:t.left,opacity:1})}.bind(this))),setTimeout(function(){t.$doc.trigger("scrolling.uk.document")},2*this.options.duration*(this.options.animation?1:0)),this.trigger("afterupdate.uk.grid",[l])},filter:function(i){this.currentfilter=i,i=i||[],"string"==typeof i&&(i=i.split(/,/).map(function(t){return t.trim()}));var e=this,n=this.element.children(),r={visible:[],hidden:[]};n.each(function(){var e=t.$(this),n=e.attr("data-uk-filter"),o=i.length?!1:!0;n&&(n=n.split(/,/).map(function(t){return t.trim()}),i.forEach(function(t){n.indexOf(t)>-1&&(o=!0)})),r[o?"visible":"hidden"].push(e)}),r.hidden=t.$(r.hidden).map(function(){return this[0]}),r.visible=t.$(r.visible).map(function(){return this[0]}),r.hidden.attr("aria-hidden","true").filter(":visible").fadeOut(this.options.duration),r.visible.attr("aria-hidden","false").filter(":hidden").css("opacity",0).show(),e.updateLayout(r.visible),this.controls&&this.controls.length&&this.controls.find("[data-uk-filter]").removeClass("uk-active").filter('[data-uk-filter="'+i+'"]').addClass("uk-active")},sort:function(i,e){e=e||1,"string"==typeof e&&(e="desc"==e.toLowerCase()?-1:1);var n=this.element.children();n.sort(function(n,r){return n=t.$(n),r=t.$(r),(r.data(i)||"")<(n.data(i)||"")?e:-1*e}).appendTo(this.element),this.updateLayout(n.filter(":visible")),this.controls&&this.controls.length&&this.controls.find("[data-uk-sort]").removeClass("uk-active").filter('[data-uk-sort="'+i+":"+(-1==e?"desc":"asc")+'"]').addClass("uk-active")}});var e=function(){function t(t){if(t){if("string"==typeof u[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var i,e=0,n=h.length;n>e;e++)if(i=h[e]+t,"string"==typeof u[i])return i}}function i(t){var i=parseFloat(t),e=-1===t.indexOf("%")&&!isNaN(i);return e&&i}function e(){}function n(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0,e=f.length;e>i;i++){var n=f[i];t[n]=0}return t}function r(){if(!c){c=!0;var e=window.getComputedStyle;if(a=function(){var t=e?function(t){return e(t,null)}:function(t){return t.currentStyle};return function(i){var e=t(i);return e||l("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}}(),s=t("boxSizing")){var n=document.createElement("div");n.style.width="200px",n.style.padding="1px 2px 3px 4px",n.style.borderStyle="solid",n.style.borderWidth="1px 2px 3px 4px",n.style[s]="border-box";var r=document.body||document.documentElement;r.appendChild(n);var o=a(n);d=200===i(o.width),r.removeChild(n)}}}function o(t){if(r(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=a(t);if("none"===e.display)return n();var o={};o.width=t.offsetWidth,o.height=t.offsetHeight;for(var h=o.isBorderBox=!(!s||!e[s]||"border-box"!==e[s]),u=0,l=f.length;l>u;u++){var c=f[u],p=e[c],g=parseFloat(p);o[c]=isNaN(g)?0:g}var m=o.paddingLeft+o.paddingRight,v=o.paddingTop+o.paddingBottom,b=o.marginLeft+o.marginRight,y=o.marginTop+o.marginBottom,k=o.borderLeftWidth+o.borderRightWidth,w=o.borderTopWidth+o.borderBottomWidth,x=h&&d,W=i(e.width);W!==!1&&(o.width=W+(x?0:m+k));var L=i(e.height);return L!==!1&&(o.height=L+(x?0:v+w)),o.innerWidth=o.width-(m+k),o.innerHeight=o.height-(v+w),o.outerWidth=o.width+b,o.outerHeight=o.height+y,o}}var a,s,d,h="Webkit Moz ms Ms O".split(" "),u=document.documentElement.style,l="undefined"==typeof console?e:function(t){console.error(t)},f=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],c=!1;return o}()}); \ No newline at end of file diff --git a/media/uikit/js/components/htmleditor.js b/media/uikit/js/components/htmleditor.js new file mode 100644 index 00000000..08586bd6 --- /dev/null +++ b/media/uikit/js/components/htmleditor.js @@ -0,0 +1,621 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-htmleditor", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI) { + + "use strict"; + + var editors = []; + + UI.component('htmleditor', { + + defaults: { + iframe : false, + mode : 'split', + markdown : false, + autocomplete : true, + height : 500, + maxsplitsize : 1000, + codemirror : { mode: 'htmlmixed', lineWrapping: true, dragDrop: false, autoCloseTags: true, matchTags: true, autoCloseBrackets: true, matchBrackets: true, indentUnit: 4, indentWithTabs: false, tabSize: 4, hintOptions: {completionSingle:false} }, + toolbar : [ 'bold', 'italic', 'strike', 'link', 'image', 'blockquote', 'listUl', 'listOl' ], + lblPreview : 'Preview', + lblCodeview : 'HTML', + lblMarkedview: 'Markdown' + }, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$('textarea[data-uk-htmleditor]', context).each(function() { + + var editor = UI.$(this), obj; + + if (!editor.data('htmleditor')) { + obj = UI.htmleditor(editor, UI.Utils.options(editor.attr('data-uk-htmleditor'))); + } + }); + }); + }, + + init: function() { + + var $this = this, tpl = UI.components.htmleditor.template; + + this.CodeMirror = this.options.CodeMirror || CodeMirror; + this.buttons = {}; + + tpl = tpl.replace(/\{:lblPreview\}/g, this.options.lblPreview); + tpl = tpl.replace(/\{:lblCodeview\}/g, this.options.lblCodeview); + + this.htmleditor = UI.$(tpl); + this.content = this.htmleditor.find('.uk-htmleditor-content'); + this.toolbar = this.htmleditor.find('.uk-htmleditor-toolbar'); + this.preview = this.htmleditor.find('.uk-htmleditor-preview').children().eq(0); + this.code = this.htmleditor.find('.uk-htmleditor-code'); + + this.element.before(this.htmleditor).appendTo(this.code); + this.editor = this.CodeMirror.fromTextArea(this.element[0], this.options.codemirror); + this.editor.htmleditor = this; + this.editor.on('change', UI.Utils.debounce(function() { $this.render(); }, 150)); + this.editor.on('change', function() { + $this.editor.save(); + $this.element.trigger('input'); + }); + this.code.find('.CodeMirror').css('height', this.options.height); + + // iframe mode? + if (this.options.iframe) { + + this.iframe = UI.$('<iframe class="uk-htmleditor-iframe" frameborder="0" scrolling="auto" height="100" width="100%"></iframe>'); + this.preview.append(this.iframe); + + // must open and close document object to start using it! + this.iframe[0].contentWindow.document.open(); + this.iframe[0].contentWindow.document.close(); + + this.preview.container = UI.$(this.iframe[0].contentWindow.document).find('body'); + + // append custom stylesheet + if (typeof(this.options.iframe) === 'string') { + this.preview.container.parent().append('<link rel="stylesheet" href="'+this.options.iframe+'">'); + } + + } else { + this.preview.container = this.preview; + } + + UI.$win.on('resize load', UI.Utils.debounce(function() { $this.fit(); }, 200)); + + var previewContainer = this.iframe ? this.preview.container:$this.preview.parent(), + codeContent = this.code.find('.CodeMirror-sizer'), + codeScroll = this.code.find('.CodeMirror-scroll').on('scroll', UI.Utils.debounce(function() { + + if ($this.htmleditor.attr('data-mode') == 'tab') return; + + // calc position + var codeHeight = codeContent.height() - codeScroll.height(), + previewHeight = previewContainer[0].scrollHeight - ($this.iframe ? $this.iframe.height() : previewContainer.height()), + ratio = previewHeight / codeHeight, + previewPostition = codeScroll.scrollTop() * ratio; + + // apply new scroll + previewContainer.scrollTop(previewPostition); + + }, 10)); + + this.htmleditor.on('click', '.uk-htmleditor-button-code, .uk-htmleditor-button-preview', function(e) { + + e.preventDefault(); + + if ($this.htmleditor.attr('data-mode') == 'tab') { + + $this.htmleditor.find('.uk-htmleditor-button-code, .uk-htmleditor-button-preview').removeClass('uk-active').filter(this).addClass('uk-active'); + + $this.activetab = UI.$(this).hasClass('uk-htmleditor-button-code') ? 'code' : 'preview'; + $this.htmleditor.attr('data-active-tab', $this.activetab); + $this.editor.refresh(); + } + }); + + // toolbar actions + this.htmleditor.on('click', 'a[data-htmleditor-button]', function() { + + if (!$this.code.is(':visible')) return; + + $this.trigger('action.' + UI.$(this).data('htmleditor-button'), [$this.editor]); + }); + + this.preview.parent().css('height', this.code.height()); + + // autocomplete + if (this.options.autocomplete && this.CodeMirror.showHint && this.CodeMirror.hint && this.CodeMirror.hint.html) { + + this.editor.on('inputRead', UI.Utils.debounce(function() { + var doc = $this.editor.getDoc(), POS = doc.getCursor(), mode = $this.CodeMirror.innerMode($this.editor.getMode(), $this.editor.getTokenAt(POS).state).mode.name; + + if (mode == 'xml') { //html depends on xml + + var cur = $this.editor.getCursor(), token = $this.editor.getTokenAt(cur); + + if (token.string.charAt(0) == '<' || token.type == 'attribute') { + $this.CodeMirror.showHint($this.editor, $this.CodeMirror.hint.html, { completeSingle: false }); + } + } + }, 100)); + } + + this.debouncedRedraw = UI.Utils.debounce(function () { $this.redraw(); }, 5); + + this.on('init.uk.component', function() { + $this.redraw(); + }); + + this.element.attr('data-uk-check-display', 1).on('display.uk.check', function(e) { + if (this.htmleditor.is(":visible")) this.fit(); + }.bind(this)); + + editors.push(this); + }, + + addButton: function(name, button) { + this.buttons[name] = button; + }, + + addButtons: function(buttons) { + UI.$.extend(this.buttons, buttons); + }, + + replaceInPreview: function(regexp, callback) { + + var editor = this.editor, results = [], value = editor.getValue(), offset = -1; + + this.currentvalue = this.currentvalue.replace(regexp, function() { + + offset = value.indexOf(arguments[0], ++offset); + + var match = { + matches: arguments, + from : translateOffset(offset), + to : translateOffset(offset + arguments[0].length), + replace: function(value) { + editor.replaceRange(value, match.from, match.to); + }, + inRange: function(cursor) { + + if (cursor.line === match.from.line && cursor.line === match.to.line) { + return cursor.ch >= match.from.ch && cursor.ch < match.to.ch; + } + + return (cursor.line === match.from.line && cursor.ch >= match.from.ch) || + (cursor.line > match.from.line && cursor.line < match.to.line) || + (cursor.line === match.to.line && cursor.ch < match.to.ch); + } + }; + + var result = callback(match); + + if (!result) { + return arguments[0]; + } + + results.push(match); + return result; + }); + + function translateOffset(offset) { + var result = editor.getValue().substring(0, offset).split('\n'); + return { line: result.length - 1, ch: result[result.length - 1].length } + } + + return results; + }, + + _buildtoolbar: function() { + + if (!(this.options.toolbar && this.options.toolbar.length)) return; + + var $this = this, bar = []; + + this.toolbar.empty(); + + this.options.toolbar.forEach(function(button) { + if (!$this.buttons[button]) return; + + var title = $this.buttons[button].title ? $this.buttons[button].title : button; + + bar.push('<li><a data-htmleditor-button="'+button+'" title="'+title+'" data-uk-tooltip>'+$this.buttons[button].label+'</a></li>'); + }); + + this.toolbar.html(bar.join('\n')); + }, + + fit: function() { + + var mode = this.options.mode; + + if (mode == 'split' && this.htmleditor.width() < this.options.maxsplitsize) { + mode = 'tab'; + } + + if (mode == 'tab') { + if (!this.activetab) { + this.activetab = 'code'; + this.htmleditor.attr('data-active-tab', this.activetab); + } + + this.htmleditor.find('.uk-htmleditor-button-code, .uk-htmleditor-button-preview').removeClass('uk-active') + .filter(this.activetab == 'code' ? '.uk-htmleditor-button-code' : '.uk-htmleditor-button-preview') + .addClass('uk-active'); + } + + this.editor.refresh(); + this.preview.parent().css('height', this.code.height()); + + this.htmleditor.attr('data-mode', mode); + }, + + redraw: function() { + this._buildtoolbar(); + this.render(); + this.fit(); + }, + + getMode: function() { + return this.editor.getOption('mode'); + }, + + getCursorMode: function() { + var param = { mode: 'html'}; + this.trigger('cursorMode', [param]); + return param.mode; + }, + + render: function() { + + this.currentvalue = this.editor.getValue(); + + // empty code + if (!this.currentvalue) { + + this.element.val(''); + this.preview.container.html(''); + + return; + } + + this.trigger('render', [this]); + this.trigger('renderLate', [this]); + + this.preview.container.html(this.currentvalue); + }, + + addShortcut: function(name, callback) { + var map = {}; + if (!UI.$.isArray(name)) { + name = [name]; + } + + name.forEach(function(key) { + map[key] = callback; + }); + + this.editor.addKeyMap(map); + + return map; + }, + + addShortcutAction: function(action, shortcuts) { + var editor = this; + this.addShortcut(shortcuts, function() { + editor.element.trigger('action.' + action, [editor.editor]); + }); + }, + + replaceSelection: function(replace) { + + var text = this.editor.getSelection(); + + if (!text.length) { + + var cur = this.editor.getCursor(), + curLine = this.editor.getLine(cur.line), + start = cur.ch, + end = start; + + while (end < curLine.length && /[\w$]+/.test(curLine.charAt(end))) ++end; + while (start && /[\w$]+/.test(curLine.charAt(start - 1))) --start; + + var curWord = start != end && curLine.slice(start, end); + + if (curWord) { + this.editor.setSelection({ line: cur.line, ch: start}, { line: cur.line, ch: end }); + text = curWord; + } + } + + var html = replace.replace('$1', text); + + this.editor.replaceSelection(html, 'end'); + this.editor.focus(); + }, + + replaceLine: function(replace) { + var pos = this.editor.getDoc().getCursor(), + text = this.editor.getLine(pos.line), + html = replace.replace('$1', text); + + this.editor.replaceRange(html , { line: pos.line, ch: 0 }, { line: pos.line, ch: text.length }); + this.editor.setCursor({ line: pos.line, ch: html.length }); + this.editor.focus(); + }, + + save: function() { + this.editor.save(); + } + }); + + + UI.components.htmleditor.template = [ + '<div class="uk-htmleditor uk-clearfix" data-mode="split">', + '<div class="uk-htmleditor-navbar">', + '<ul class="uk-htmleditor-navbar-nav uk-htmleditor-toolbar"></ul>', + '<div class="uk-htmleditor-navbar-flip">', + '<ul class="uk-htmleditor-navbar-nav">', + '<li class="uk-htmleditor-button-code"><a>{:lblCodeview}</a></li>', + '<li class="uk-htmleditor-button-preview"><a>{:lblPreview}</a></li>', + '<li><a data-htmleditor-button="fullscreen"><i class="uk-icon-expand"></i></a></li>', + '</ul>', + '</div>', + '</div>', + '<div class="uk-htmleditor-content">', + '<div class="uk-htmleditor-code"></div>', + '<div class="uk-htmleditor-preview"><div></div></div>', + '</div>', + '</div>' + ].join(''); + + + UI.plugin('htmleditor', 'base', { + + init: function(editor) { + + editor.addButtons({ + + fullscreen: { + title : 'Fullscreen', + label : '<i class="uk-icon-expand"></i>' + }, + bold : { + title : 'Bold', + label : '<i class="uk-icon-bold"></i>' + }, + italic : { + title : 'Italic', + label : '<i class="uk-icon-italic"></i>' + }, + strike : { + title : 'Strikethrough', + label : '<i class="uk-icon-strikethrough"></i>' + }, + blockquote : { + title : 'Blockquote', + label : '<i class="uk-icon-quote-right"></i>' + }, + link : { + title : 'Link', + label : '<i class="uk-icon-link"></i>' + }, + image : { + title : 'Image', + label : '<i class="uk-icon-picture-o"></i>' + }, + listUl : { + title : 'Unordered List', + label : '<i class="uk-icon-list-ul"></i>' + }, + listOl : { + title : 'Ordered List', + label : '<i class="uk-icon-list-ol"></i>' + } + + }); + + addAction('bold', '<strong>$1</strong>'); + addAction('italic', '<em>$1</em>'); + addAction('strike', '<del>$1</del>'); + addAction('blockquote', '<blockquote><p>$1</p></blockquote>', 'replaceLine'); + addAction('link', '<a href="http://">$1</a>'); + addAction('image', '<img src="http://" alt="$1">'); + + var listfn = function() { + if (editor.getCursorMode() == 'html') { + + var cm = editor.editor, + pos = cm.getDoc().getCursor(true), + posend = cm.getDoc().getCursor(false); + + for (var i=pos.line; i<(posend.line+1);i++) { + cm.replaceRange('<li>'+cm.getLine(i)+'</li>', { line: i, ch: 0 }, { line: i, ch: cm.getLine(i).length }); + } + + cm.setCursor({ line: posend.line, ch: cm.getLine(posend.line).length }); + cm.focus(); + } + } + + editor.on('action.listUl', function() { + listfn(); + }); + + editor.on('action.listOl', function() { + listfn(); + }); + + editor.htmleditor.on('click', 'a[data-htmleditor-button="fullscreen"]', function() { + editor.htmleditor.toggleClass('uk-htmleditor-fullscreen'); + + var wrap = editor.editor.getWrapperElement(); + + if (editor.htmleditor.hasClass('uk-htmleditor-fullscreen')) { + + editor.editor.state.fullScreenRestore = {scrollTop: window.pageYOffset, scrollLeft: window.pageXOffset, width: wrap.style.width, height: wrap.style.height}; + wrap.style.width = ''; + wrap.style.height = editor.content.height()+'px'; + document.documentElement.style.overflow = 'hidden'; + + } else { + + document.documentElement.style.overflow = ''; + var info = editor.editor.state.fullScreenRestore; + wrap.style.width = info.width; wrap.style.height = info.height; + window.scrollTo(info.scrollLeft, info.scrollTop); + } + + setTimeout(function() { + editor.fit(); + UI.$win.trigger('resize'); + }, 50); + }); + + editor.addShortcut(['Ctrl-S', 'Cmd-S'], function() { editor.element.trigger('htmleditor-save', [editor]); }); + editor.addShortcutAction('bold', ['Ctrl-B', 'Cmd-B']); + + function addAction(name, replace, mode) { + editor.on('action.'+name, function() { + if (editor.getCursorMode() == 'html') { + editor[mode == 'replaceLine' ? 'replaceLine' : 'replaceSelection'](replace); + } + }); + } + } + }); + + UI.plugin('htmleditor', 'markdown', { + + init: function(editor) { + + var parser = editor.options.mdparser || marked || null; + + if (!parser) return; + + if (editor.options.markdown) { + enableMarkdown(); + } + + addAction('bold', '**$1**'); + addAction('italic', '*$1*'); + addAction('strike', '~~$1~~'); + addAction('blockquote', '> $1', 'replaceLine'); + addAction('link', '[$1](http://)'); + addAction('image', '![$1](http://)'); + + editor.on('action.listUl', function() { + + if (editor.getCursorMode() == 'markdown') { + + var cm = editor.editor, + pos = cm.getDoc().getCursor(true), + posend = cm.getDoc().getCursor(false); + + for (var i=pos.line; i<(posend.line+1);i++) { + cm.replaceRange('* '+cm.getLine(i), { line: i, ch: 0 }, { line: i, ch: cm.getLine(i).length }); + } + + cm.setCursor({ line: posend.line, ch: cm.getLine(posend.line).length }); + cm.focus(); + } + }); + + editor.on('action.listOl', function() { + + if (editor.getCursorMode() == 'markdown') { + + var cm = editor.editor, + pos = cm.getDoc().getCursor(true), + posend = cm.getDoc().getCursor(false), + prefix = 1; + + if (pos.line > 0) { + var prevline = cm.getLine(pos.line-1), matches; + + if(matches = prevline.match(/^(\d+)\./)) { + prefix = Number(matches[1])+1; + } + } + + for (var i=pos.line; i<(posend.line+1);i++) { + cm.replaceRange(prefix+'. '+cm.getLine(i), { line: i, ch: 0 }, { line: i, ch: cm.getLine(i).length }); + prefix++; + } + + cm.setCursor({ line: posend.line, ch: cm.getLine(posend.line).length }); + cm.focus(); + } + }); + + editor.on('renderLate', function() { + if (editor.editor.options.mode == 'gfm') { + editor.currentvalue = parser(editor.currentvalue); + } + }); + + editor.on('cursorMode', function(e, param) { + if (editor.editor.options.mode == 'gfm') { + var pos = editor.editor.getDoc().getCursor(); + if (!editor.editor.getTokenAt(pos).state.base.htmlState) { + param.mode = 'markdown'; + } + } + }); + + UI.$.extend(editor, { + + enableMarkdown: function() { + enableMarkdown() + this.render(); + }, + disableMarkdown: function() { + this.editor.setOption('mode', 'htmlmixed'); + this.htmleditor.find('.uk-htmleditor-button-code a').html(this.options.lblCodeview); + this.render(); + } + + }); + + // switch markdown mode on event + editor.on({ + enableMarkdown : function() { editor.enableMarkdown(); }, + disableMarkdown : function() { editor.disableMarkdown(); } + }); + + function enableMarkdown() { + editor.editor.setOption('mode', 'gfm'); + editor.htmleditor.find('.uk-htmleditor-button-code a').html(editor.options.lblMarkedview); + } + + function addAction(name, replace, mode) { + editor.on('action.'+name, function() { + if (editor.getCursorMode() == 'markdown') { + editor[mode == 'replaceLine' ? 'replaceLine' : 'replaceSelection'](replace); + } + }); + } + } + }); + + return UI.htmleditor; +}); diff --git a/media/uikit/js/components/htmleditor.min.js b/media/uikit/js/components/htmleditor.min.js new file mode 100644 index 00000000..a33d65fb --- /dev/null +++ b/media/uikit/js/components/htmleditor.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-htmleditor",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";var e=[];return t.component("htmleditor",{defaults:{iframe:!1,mode:"split",markdown:!1,autocomplete:!0,height:500,maxsplitsize:1e3,codemirror:{mode:"htmlmixed",lineWrapping:!0,dragDrop:!1,autoCloseTags:!0,matchTags:!0,autoCloseBrackets:!0,matchBrackets:!0,indentUnit:4,indentWithTabs:!1,tabSize:4,hintOptions:{completionSingle:!1}},toolbar:["bold","italic","strike","link","image","blockquote","listUl","listOl"],lblPreview:"Preview",lblCodeview:"HTML",lblMarkedview:"Markdown"},boot:function(){t.ready(function(e){t.$("textarea[data-uk-htmleditor]",e).each(function(){var e,i=t.$(this);i.data("htmleditor")||(e=t.htmleditor(i,t.Utils.options(i.attr("data-uk-htmleditor"))))})})},init:function(){var i=this,o=t.components.htmleditor.template;this.CodeMirror=this.options.CodeMirror||CodeMirror,this.buttons={},o=o.replace(/\{:lblPreview\}/g,this.options.lblPreview),o=o.replace(/\{:lblCodeview\}/g,this.options.lblCodeview),this.htmleditor=t.$(o),this.content=this.htmleditor.find(".uk-htmleditor-content"),this.toolbar=this.htmleditor.find(".uk-htmleditor-toolbar"),this.preview=this.htmleditor.find(".uk-htmleditor-preview").children().eq(0),this.code=this.htmleditor.find(".uk-htmleditor-code"),this.element.before(this.htmleditor).appendTo(this.code),this.editor=this.CodeMirror.fromTextArea(this.element[0],this.options.codemirror),this.editor.htmleditor=this,this.editor.on("change",t.Utils.debounce(function(){i.render()},150)),this.editor.on("change",function(){i.editor.save(),i.element.trigger("input")}),this.code.find(".CodeMirror").css("height",this.options.height),this.options.iframe?(this.iframe=t.$('<iframe class="uk-htmleditor-iframe" frameborder="0" scrolling="auto" height="100" width="100%"></iframe>'),this.preview.append(this.iframe),this.iframe[0].contentWindow.document.open(),this.iframe[0].contentWindow.document.close(),this.preview.container=t.$(this.iframe[0].contentWindow.document).find("body"),"string"==typeof this.options.iframe&&this.preview.container.parent().append('<link rel="stylesheet" href="'+this.options.iframe+'">')):this.preview.container=this.preview,t.$win.on("resize load",t.Utils.debounce(function(){i.fit()},200));var r=this.iframe?this.preview.container:i.preview.parent(),n=this.code.find(".CodeMirror-sizer"),l=this.code.find(".CodeMirror-scroll").on("scroll",t.Utils.debounce(function(){if("tab"!=i.htmleditor.attr("data-mode")){var t=n.height()-l.height(),e=r[0].scrollHeight-(i.iframe?i.iframe.height():r.height()),o=e/t,s=l.scrollTop()*o;r.scrollTop(s)}},10));this.htmleditor.on("click",".uk-htmleditor-button-code, .uk-htmleditor-button-preview",function(e){e.preventDefault(),"tab"==i.htmleditor.attr("data-mode")&&(i.htmleditor.find(".uk-htmleditor-button-code, .uk-htmleditor-button-preview").removeClass("uk-active").filter(this).addClass("uk-active"),i.activetab=t.$(this).hasClass("uk-htmleditor-button-code")?"code":"preview",i.htmleditor.attr("data-active-tab",i.activetab),i.editor.refresh())}),this.htmleditor.on("click","a[data-htmleditor-button]",function(){i.code.is(":visible")&&i.trigger("action."+t.$(this).data("htmleditor-button"),[i.editor])}),this.preview.parent().css("height",this.code.height()),this.options.autocomplete&&this.CodeMirror.showHint&&this.CodeMirror.hint&&this.CodeMirror.hint.html&&this.editor.on("inputRead",t.Utils.debounce(function(){var t=i.editor.getDoc(),e=t.getCursor(),o=i.CodeMirror.innerMode(i.editor.getMode(),i.editor.getTokenAt(e).state).mode.name;if("xml"==o){var r=i.editor.getCursor(),n=i.editor.getTokenAt(r);("<"==n.string.charAt(0)||"attribute"==n.type)&&i.CodeMirror.showHint(i.editor,i.CodeMirror.hint.html,{completeSingle:!1})}},100)),this.debouncedRedraw=t.Utils.debounce(function(){i.redraw()},5),this.on("init.uk.component",function(){i.redraw()}),this.element.attr("data-uk-check-display",1).on("display.uk.check",function(){this.htmleditor.is(":visible")&&this.fit()}.bind(this)),e.push(this)},addButton:function(t,e){this.buttons[t]=e},addButtons:function(e){t.$.extend(this.buttons,e)},replaceInPreview:function(t,e){function i(t){var e=o.getValue().substring(0,t).split("\n");return{line:e.length-1,ch:e[e.length-1].length}}var o=this.editor,r=[],n=o.getValue(),l=-1;return this.currentvalue=this.currentvalue.replace(t,function(){l=n.indexOf(arguments[0],++l);var t={matches:arguments,from:i(l),to:i(l+arguments[0].length),replace:function(e){o.replaceRange(e,t.from,t.to)},inRange:function(e){return e.line===t.from.line&&e.line===t.to.line?e.ch>=t.from.ch&&e.ch<t.to.ch:e.line===t.from.line&&e.ch>=t.from.ch||e.line>t.from.line&&e.line<t.to.line||e.line===t.to.line&&e.ch<t.to.ch}},s=e(t);return s?(r.push(t),s):arguments[0]}),r},_buildtoolbar:function(){if(this.options.toolbar&&this.options.toolbar.length){var t=this,e=[];this.toolbar.empty(),this.options.toolbar.forEach(function(i){if(t.buttons[i]){var o=t.buttons[i].title?t.buttons[i].title:i;e.push('<li><a data-htmleditor-button="'+i+'" title="'+o+'" data-uk-tooltip>'+t.buttons[i].label+"</a></li>")}}),this.toolbar.html(e.join("\n"))}},fit:function(){var t=this.options.mode;"split"==t&&this.htmleditor.width()<this.options.maxsplitsize&&(t="tab"),"tab"==t&&(this.activetab||(this.activetab="code",this.htmleditor.attr("data-active-tab",this.activetab)),this.htmleditor.find(".uk-htmleditor-button-code, .uk-htmleditor-button-preview").removeClass("uk-active").filter("code"==this.activetab?".uk-htmleditor-button-code":".uk-htmleditor-button-preview").addClass("uk-active")),this.editor.refresh(),this.preview.parent().css("height",this.code.height()),this.htmleditor.attr("data-mode",t)},redraw:function(){this._buildtoolbar(),this.render(),this.fit()},getMode:function(){return this.editor.getOption("mode")},getCursorMode:function(){var t={mode:"html"};return this.trigger("cursorMode",[t]),t.mode},render:function(){return this.currentvalue=this.editor.getValue(),this.currentvalue?(this.trigger("render",[this]),this.trigger("renderLate",[this]),this.preview.container.html(this.currentvalue),void 0):(this.element.val(""),this.preview.container.html(""),void 0)},addShortcut:function(e,i){var o={};return t.$.isArray(e)||(e=[e]),e.forEach(function(t){o[t]=i}),this.editor.addKeyMap(o),o},addShortcutAction:function(t,e){var i=this;this.addShortcut(e,function(){i.element.trigger("action."+t,[i.editor])})},replaceSelection:function(t){var e=this.editor.getSelection();if(!e.length){for(var i=this.editor.getCursor(),o=this.editor.getLine(i.line),r=i.ch,n=r;n<o.length&&/[\w$]+/.test(o.charAt(n));)++n;for(;r&&/[\w$]+/.test(o.charAt(r-1));)--r;var l=r!=n&&o.slice(r,n);l&&(this.editor.setSelection({line:i.line,ch:r},{line:i.line,ch:n}),e=l)}var s=t.replace("$1",e);this.editor.replaceSelection(s,"end"),this.editor.focus()},replaceLine:function(t){var e=this.editor.getDoc().getCursor(),i=this.editor.getLine(e.line),o=t.replace("$1",i);this.editor.replaceRange(o,{line:e.line,ch:0},{line:e.line,ch:i.length}),this.editor.setCursor({line:e.line,ch:o.length}),this.editor.focus()},save:function(){this.editor.save()}}),t.components.htmleditor.template=['<div class="uk-htmleditor uk-clearfix" data-mode="split">','<div class="uk-htmleditor-navbar">','<ul class="uk-htmleditor-navbar-nav uk-htmleditor-toolbar"></ul>','<div class="uk-htmleditor-navbar-flip">','<ul class="uk-htmleditor-navbar-nav">','<li class="uk-htmleditor-button-code"><a>{:lblCodeview}</a></li>','<li class="uk-htmleditor-button-preview"><a>{:lblPreview}</a></li>','<li><a data-htmleditor-button="fullscreen"><i class="uk-icon-expand"></i></a></li>',"</ul>","</div>","</div>",'<div class="uk-htmleditor-content">','<div class="uk-htmleditor-code"></div>','<div class="uk-htmleditor-preview"><div></div></div>',"</div>","</div>"].join(""),t.plugin("htmleditor","base",{init:function(e){function i(t,i,o){e.on("action."+t,function(){"html"==e.getCursorMode()&&e["replaceLine"==o?"replaceLine":"replaceSelection"](i)})}e.addButtons({fullscreen:{title:"Fullscreen",label:'<i class="uk-icon-expand"></i>'},bold:{title:"Bold",label:'<i class="uk-icon-bold"></i>'},italic:{title:"Italic",label:'<i class="uk-icon-italic"></i>'},strike:{title:"Strikethrough",label:'<i class="uk-icon-strikethrough"></i>'},blockquote:{title:"Blockquote",label:'<i class="uk-icon-quote-right"></i>'},link:{title:"Link",label:'<i class="uk-icon-link"></i>'},image:{title:"Image",label:'<i class="uk-icon-picture-o"></i>'},listUl:{title:"Unordered List",label:'<i class="uk-icon-list-ul"></i>'},listOl:{title:"Ordered List",label:'<i class="uk-icon-list-ol"></i>'}}),i("bold","<strong>$1</strong>"),i("italic","<em>$1</em>"),i("strike","<del>$1</del>"),i("blockquote","<blockquote><p>$1</p></blockquote>","replaceLine"),i("link",'<a href="http://">$1</a>'),i("image",'<img src="http://" alt="$1">');var o=function(){if("html"==e.getCursorMode()){for(var t=e.editor,i=t.getDoc().getCursor(!0),o=t.getDoc().getCursor(!1),r=i.line;r<o.line+1;r++)t.replaceRange("<li>"+t.getLine(r)+"</li>",{line:r,ch:0},{line:r,ch:t.getLine(r).length});t.setCursor({line:o.line,ch:t.getLine(o.line).length}),t.focus()}};e.on("action.listUl",function(){o()}),e.on("action.listOl",function(){o()}),e.htmleditor.on("click",'a[data-htmleditor-button="fullscreen"]',function(){e.htmleditor.toggleClass("uk-htmleditor-fullscreen");var i=e.editor.getWrapperElement();if(e.htmleditor.hasClass("uk-htmleditor-fullscreen"))e.editor.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:i.style.width,height:i.style.height},i.style.width="",i.style.height=e.content.height()+"px",document.documentElement.style.overflow="hidden";else{document.documentElement.style.overflow="";var o=e.editor.state.fullScreenRestore;i.style.width=o.width,i.style.height=o.height,window.scrollTo(o.scrollLeft,o.scrollTop)}setTimeout(function(){e.fit(),t.$win.trigger("resize")},50)}),e.addShortcut(["Ctrl-S","Cmd-S"],function(){e.element.trigger("htmleditor-save",[e])}),e.addShortcutAction("bold",["Ctrl-B","Cmd-B"])}}),t.plugin("htmleditor","markdown",{init:function(e){function i(){e.editor.setOption("mode","gfm"),e.htmleditor.find(".uk-htmleditor-button-code a").html(e.options.lblMarkedview)}function o(t,i,o){e.on("action."+t,function(){"markdown"==e.getCursorMode()&&e["replaceLine"==o?"replaceLine":"replaceSelection"](i)})}var r=e.options.mdparser||marked||null;r&&(e.options.markdown&&i(),o("bold","**$1**"),o("italic","*$1*"),o("strike","~~$1~~"),o("blockquote","> $1","replaceLine"),o("link","[$1](http://)"),o("image","![$1](http://)"),e.on("action.listUl",function(){if("markdown"==e.getCursorMode()){for(var t=e.editor,i=t.getDoc().getCursor(!0),o=t.getDoc().getCursor(!1),r=i.line;r<o.line+1;r++)t.replaceRange("* "+t.getLine(r),{line:r,ch:0},{line:r,ch:t.getLine(r).length});t.setCursor({line:o.line,ch:t.getLine(o.line).length}),t.focus()}}),e.on("action.listOl",function(){if("markdown"==e.getCursorMode()){var t=e.editor,i=t.getDoc().getCursor(!0),o=t.getDoc().getCursor(!1),r=1;if(i.line>0){var n,l=t.getLine(i.line-1);(n=l.match(/^(\d+)\./))&&(r=Number(n[1])+1)}for(var s=i.line;s<o.line+1;s++)t.replaceRange(r+". "+t.getLine(s),{line:s,ch:0},{line:s,ch:t.getLine(s).length}),r++;t.setCursor({line:o.line,ch:t.getLine(o.line).length}),t.focus()}}),e.on("renderLate",function(){"gfm"==e.editor.options.mode&&(e.currentvalue=r(e.currentvalue))}),e.on("cursorMode",function(t,i){if("gfm"==e.editor.options.mode){var o=e.editor.getDoc().getCursor();e.editor.getTokenAt(o).state.base.htmlState||(i.mode="markdown")}}),t.$.extend(e,{enableMarkdown:function(){i(),this.render()},disableMarkdown:function(){this.editor.setOption("mode","htmlmixed"),this.htmleditor.find(".uk-htmleditor-button-code a").html(this.options.lblCodeview),this.render()}}),e.on({enableMarkdown:function(){e.enableMarkdown()},disableMarkdown:function(){e.disableMarkdown()}}))}}),t.htmleditor}); \ No newline at end of file diff --git a/media/uikit/js/components/index.html b/media/uikit/js/components/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/uikit/js/components/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/uikit/js/components/lightbox.js b/media/uikit/js/components/lightbox.js new file mode 100644 index 00000000..1abb1a54 --- /dev/null +++ b/media/uikit/js/components/lightbox.js @@ -0,0 +1,544 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { // AMD + define("uikit-lightbox", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + var modal, cache = {}; + + UI.component('lightbox', { + + defaults: { + "group" : false, + "duration" : 400, + "keyboard" : true + }, + + index : 0, + items : false, + + boot: function() { + + UI.$html.on('click', '[data-uk-lightbox]', function(e){ + + e.preventDefault(); + + var link = UI.$(this); + + if (!link.data("lightbox")) { + + UI.lightbox(link, UI.Utils.options(link.attr("data-uk-lightbox"))); + } + + link.data("lightbox").show(link); + }); + + // keyboard navigation + UI.$doc.on('keyup', function(e) { + + if (modal && modal.is(':visible') && modal.lightbox.options.keyboard) { + + e.preventDefault(); + + switch(e.keyCode) { + case 37: + modal.lightbox.previous(); + break; + case 39: + modal.lightbox.next(); + break; + } + } + }); + }, + + init: function() { + + var $this = this, siblings = []; + + this.index = 0; + this.siblings = []; + + if (this.element && this.element.length) { + + var domSiblings = this.options.group ? UI.$([ + '[data-uk-lightbox*="'+this.options.group+'"]', + "[data-uk-lightbox*='"+this.options.group+"']" + ].join(',')) : this.element; + + domSiblings.each(function() { + + var ele = UI.$(this); + + siblings.push({ + 'source': ele.attr('href'), + 'title' : ele.attr('title'), + 'type' : ele.attr("data-lightbox-type") || 'auto', + 'link' : ele + }); + }); + + this.index = domSiblings.index(this.element); + this.siblings = siblings; + + } else if (this.options.group && this.options.group.length) { + this.siblings = this.options.group; + } + + this.trigger('lightbox-init', [this]); + }, + + show: function(index) { + + this.modal = getModal(this); + + // stop previous animation + this.modal.dialog.stop(); + this.modal.content.stop(); + + var $this = this, promise = UI.$.Deferred(), data, item; + + index = index || 0; + + // index is a jQuery object or DOM element + if (typeof(index) == 'object') { + + this.siblings.forEach(function(s, idx){ + + if (index[0] === s.link[0]) { + index = idx; + } + }); + } + + // fix index if needed + if ( index < 0 ) { + index = this.siblings.length - index; + } else if (!this.siblings[index]) { + index = 0; + } + + item = this.siblings[index]; + + data = { + "lightbox" : $this, + "source" : item.source, + "type" : item.type, + "index" : index, + "promise" : promise, + "title" : item.title, + "item" : item, + "meta" : { + "content" : '', + "width" : null, + "height" : null + } + }; + + this.index = index; + + this.modal.content.empty(); + + if (!this.modal.is(':visible')) { + this.modal.content.css({width:'', height:''}).empty(); + this.modal.modal.show(); + } + + this.modal.loader.removeClass('uk-hidden'); + + promise.promise().done(function() { + + $this.data = data; + $this.fitSize(data); + + }).fail(function(){ + + data.meta.content = '<div class="uk-position-cover uk-flex uk-flex-middle uk-flex-center"><strong>Loading resource failed!</strong></div>'; + data.meta.width = 400; + data.meta.height = 300; + + $this.data = data; + $this.fitSize(data); + }); + + $this.trigger('showitem.uk.lightbox', [data]); + }, + + fitSize: function() { + + var $this = this, + data = this.data, + pad = this.modal.dialog.outerWidth() - this.modal.dialog.width(), + dpadTop = parseInt(this.modal.dialog.css('margin-top'), 10), + dpadBot = parseInt(this.modal.dialog.css('margin-bottom'), 10), + dpad = dpadTop + dpadBot, + content = data.meta.content, + duration = $this.options.duration; + + if (this.siblings.length > 1) { + + content = [ + content, + '<a href="#" class="uk-slidenav uk-slidenav-contrast uk-slidenav-previous uk-hidden-touch" data-lightbox-previous></a>', + '<a href="#" class="uk-slidenav uk-slidenav-contrast uk-slidenav-next uk-hidden-touch" data-lightbox-next></a>' + ].join(''); + } + + // calculate width + var tmp = UI.$('<div>&nbsp;</div>').css({ + 'opacity' : 0, + 'position' : 'absolute', + 'top' : 0, + 'left' : 0, + 'width' : '100%', + 'max-width' : $this.modal.dialog.css('max-width'), + 'padding' : $this.modal.dialog.css('padding'), + 'margin' : $this.modal.dialog.css('margin') + }), maxwidth, maxheight, w = data.meta.width, h = data.meta.height; + + tmp.appendTo('body').width(); + + maxwidth = tmp.width(); + maxheight = window.innerHeight - dpad; + + tmp.remove(); + + this.modal.dialog.find('.uk-modal-caption').remove(); + + if (data.title) { + this.modal.dialog.append('<div class="uk-modal-caption">'+data.title+'</div>'); + maxheight -= this.modal.dialog.find('.uk-modal-caption').outerHeight(); + } + + if (maxwidth < data.meta.width) { + + h = Math.floor( h * (maxwidth / w) ); + w = maxwidth; + } + + if (maxheight < h) { + + h = Math.floor(maxheight); + w = Math.ceil(data.meta.width * (maxheight/data.meta.height)); + } + + this.modal.content.css('opacity', 0).width(w).html(content); + + if (data.type == 'iframe') { + this.modal.content.find('iframe:first').height(h); + } + + var dh = h + pad, + t = Math.floor(window.innerHeight/2 - dh/2) - dpad; + + if (t < 0) { t = 0; } + + this.modal.closer.addClass('uk-hidden'); + + if ($this.modal.data('mwidth') == w && $this.modal.data('mheight') == h) { + duration = 0; + } + + this.modal.dialog.animate({width: w + pad, height: h + pad, top: t }, duration, 'swing', function() { + $this.modal.loader.addClass('uk-hidden'); + $this.modal.content.css({width:''}).animate({'opacity': 1}, function() { + $this.modal.closer.removeClass('uk-hidden'); + }); + + $this.modal.data({'mwidth': w, 'mheight': h}); + }); + }, + + next: function() { + this.show(this.siblings[(this.index+1)] ? (this.index+1) : 0); + }, + + previous: function() { + this.show(this.siblings[(this.index-1)] ? (this.index-1) : this.siblings.length-1); + } + }); + + + // Plugins + + UI.plugin('lightbox', 'image', { + + init: function(lightbox) { + + lightbox.on("showitem.uk.lightbox", function(e, data){ + + if (data.type == 'image' || data.source && data.source.match(/\.(jpg|jpeg|png|gif|svg)$/i)) { + + var resolve = function(source, width, height) { + + data.meta = { + "content" : '<img class="uk-responsive-width" width="'+width+'" height="'+height+'" src ="'+source+'">', + "width" : width, + "height" : height + }; + + data.type = 'image'; + + data.promise.resolve(); + }; + + if (!cache[data.source]) { + + var img = new Image(); + + img.onerror = function(){ + data.promise.reject('Loading image failed'); + }; + + img.onload = function(){ + cache[data.source] = {width: img.width, height: img.height}; + resolve(data.source, cache[data.source].width, cache[data.source].height); + }; + + img.src = data.source; + + } else { + resolve(data.source, cache[data.source].width, cache[data.source].height); + } + } + }); + } + }); + + UI.plugin("lightbox", "youtube", { + + init: function(lightbox) { + + var youtubeRegExp = /(\/\/.*?youtube\.[a-z]+)\/watch\?v=([^&]+)&?(.*)/, + youtubeRegExpShort = /youtu\.be\/(.*)/; + + + lightbox.on("showitem.uk.lightbox", function(e, data){ + + var id, matches, resolve = function(id, width, height) { + + data.meta = { + 'content': '<iframe src="//www.youtube.com/embed/'+id+'" width="'+width+'" height="'+height+'" style="max-width:100%;"></iframe>', + 'width': width, + 'height': height + }; + + data.type = 'iframe'; + + data.promise.resolve(); + }; + + if (matches = data.source.match(youtubeRegExp)) { + id = matches[2]; + } + + if (matches = data.source.match(youtubeRegExpShort)) { + id = matches[1]; + } + + if (id) { + + if(!cache[id]) { + + var img = new Image(); + + img.onerror = function(){ + cache[id] = {width:640, height:320}; + resolve(id, cache[id].width, cache[id].height); + }; + + img.onload = function(){ + cache[id] = {width:img.width, height:img.height}; + resolve(id, img.width, img.height); + }; + + img.src = '//img.youtube.com/vi/'+id+'/0.jpg'; + + } else { + resolve(id, cache[id].width, cache[id].height); + } + + e.stopImmediatePropagation(); + } + }); + } + }); + + + UI.plugin("lightbox", "vimeo", { + + init: function(lightbox) { + + var regex = /(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/, matches; + + + lightbox.on("showitem.uk.lightbox", function(e, data){ + + var id, resolve = function(id, width, height) { + + data.meta = { + 'content': '<iframe src="//player.vimeo.com/video/'+id+'" width="'+width+'" height="'+height+'" style="width:100%;box-sizing:border-box;"></iframe>', + 'width': width, + 'height': height + }; + + data.type = 'iframe'; + + data.promise.resolve(); + }; + + if (matches = data.source.match(regex)) { + + id = matches[2]; + + if(!cache[id]) { + + UI.$.ajax({ + type : 'GET', + url : 'http://vimeo.com/api/oembed.json?url=' + encodeURI(data.source), + jsonp : 'callback', + dataType : 'jsonp', + success : function(data) { + cache[id] = {width:data.width, height:data.height}; + resolve(id, cache[id].width, cache[id].height); + } + }); + + } else { + resolve(id, cache[id].width, cache[id].height); + } + + e.stopImmediatePropagation(); + } + }); + } + }); + + UI.plugin("lightbox", "video", { + + init: function(lightbox) { + + lightbox.on("showitem.uk.lightbox", function(e, data){ + + + var resolve = function(source, width, height) { + + data.meta = { + 'content': '<video class="uk-responsive-width" src="'+source+'" width="'+width+'" height="'+height+'" controls></video>', + 'width': width, + 'height': height + }; + + data.type = 'video'; + + data.promise.resolve(); + }; + + if (data.type == 'video' || data.source.match(/\.(mp4|webm|ogv)$/i)) { + + if (!cache[data.source]) { + + var vid = UI.$('<video style="position:fixed;visibility:hidden;top:-10000px;"></video>').attr('src', data.source).appendTo('body'); + + var idle = setInterval(function() { + + if (vid[0].videoWidth) { + clearInterval(idle); + cache[data.source] = {width: vid[0].videoWidth, height: vid[0].videoHeight}; + resolve(data.source, cache[data.source].width, cache[data.source].height); + vid.remove(); + } + + }, 20); + + } else { + resolve(data.source, cache[data.source].width, cache[data.source].height); + } + } + }); + } + }); + + + function getModal(lightbox) { + + if (modal) { + modal.lightbox = lightbox; + return modal; + } + + // init lightbox container + modal = UI.$([ + '<div class="uk-modal">', + '<div class="uk-modal-dialog uk-modal-dialog-lightbox uk-slidenav-position" style="margin-left:auto;margin-right:auto;width:200px;height:200px;top:'+Math.abs(window.innerHeight/2 - 200)+'px;">', + '<a href="#" class="uk-modal-close uk-close uk-close-alt"></a>', + '<div class="uk-lightbox-content"></div>', + '<div class="uk-modal-spinner uk-hidden"></div>', + '</div>', + '</div>' + ].join('')).appendTo('body'); + + modal.dialog = modal.find('.uk-modal-dialog:first'); + modal.content = modal.find('.uk-lightbox-content:first'); + modal.loader = modal.find('.uk-modal-spinner:first'); + modal.closer = modal.find('.uk-close.uk-close-alt'); + modal.modal = UI.modal(modal, {modal:false}); + + // next / previous + modal.on("swipeRight swipeLeft", function(e) { + modal.lightbox[e.type=='swipeLeft' ? 'next':'previous'](); + }).on("click", "[data-lightbox-previous], [data-lightbox-next]", function(e){ + e.preventDefault(); + modal.lightbox[UI.$(this).is('[data-lightbox-next]') ? 'next':'previous'](); + }); + + // destroy content on modal hide + modal.on("hide.uk.modal", function(e) { + modal.content.html(''); + }); + + UI.$win.on('load resize orientationchange', UI.Utils.debounce(function(e){ + if (modal.is(':visible') && !UI.Utils.isFullscreen()) modal.lightbox.fitSize(); + }.bind(this), 100)); + + modal.lightbox = lightbox; + + return modal; + } + + UI.lightbox.create = function(items, options) { + + if (!items) return; + + var group = [], o; + + items.forEach(function(item) { + + group.push(UI.$.extend({ + 'source' : '', + 'title' : '', + 'type' : 'auto', + 'link' : false + }, (typeof(item) == 'string' ? {'source': item} : item))); + }); + + o = UI.lightbox(UI.$.extend({}, options, {'group':group})); + + return o; + }; + + return UI.lightbox; +}); diff --git a/media/uikit/js/components/lightbox.min.js b/media/uikit/js/components/lightbox.min.js new file mode 100644 index 00000000..a6aeeb4e --- /dev/null +++ b/media/uikit/js/components/lightbox.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(i){var t;window.UIkit&&(t=i(UIkit)),"function"==typeof define&&define.amd&&define("uikit-lightbox",["uikit"],function(){return t||i(UIkit)})}(function(i){"use strict";function t(t){return e?(e.lightbox=t,e):(e=i.$(['<div class="uk-modal">','<div class="uk-modal-dialog uk-modal-dialog-lightbox uk-slidenav-position" style="margin-left:auto;margin-right:auto;width:200px;height:200px;top:'+Math.abs(window.innerHeight/2-200)+'px;">','<a href="#" class="uk-modal-close uk-close uk-close-alt"></a>','<div class="uk-lightbox-content"></div>','<div class="uk-modal-spinner uk-hidden"></div>',"</div>","</div>"].join("")).appendTo("body"),e.dialog=e.find(".uk-modal-dialog:first"),e.content=e.find(".uk-lightbox-content:first"),e.loader=e.find(".uk-modal-spinner:first"),e.closer=e.find(".uk-close.uk-close-alt"),e.modal=i.modal(e,{modal:!1}),e.on("swipeRight swipeLeft",function(i){e.lightbox["swipeLeft"==i.type?"next":"previous"]()}).on("click","[data-lightbox-previous], [data-lightbox-next]",function(t){t.preventDefault(),e.lightbox[i.$(this).is("[data-lightbox-next]")?"next":"previous"]()}),e.on("hide.uk.modal",function(){e.content.html("")}),i.$win.on("load resize orientationchange",i.Utils.debounce(function(){e.is(":visible")&&!i.Utils.isFullscreen()&&e.lightbox.fitSize()}.bind(this),100)),e.lightbox=t,e)}var e,o={};return i.component("lightbox",{defaults:{group:!1,duration:400,keyboard:!0},index:0,items:!1,boot:function(){i.$html.on("click","[data-uk-lightbox]",function(t){t.preventDefault();var e=i.$(this);e.data("lightbox")||i.lightbox(e,i.Utils.options(e.attr("data-uk-lightbox"))),e.data("lightbox").show(e)}),i.$doc.on("keyup",function(i){if(e&&e.is(":visible")&&e.lightbox.options.keyboard)switch(i.preventDefault(),i.keyCode){case 37:e.lightbox.previous();break;case 39:e.lightbox.next()}})},init:function(){var t=[];if(this.index=0,this.siblings=[],this.element&&this.element.length){var e=this.options.group?i.$(['[data-uk-lightbox*="'+this.options.group+'"]',"[data-uk-lightbox*='"+this.options.group+"']"].join(",")):this.element;e.each(function(){var e=i.$(this);t.push({source:e.attr("href"),title:e.attr("title"),type:e.attr("data-lightbox-type")||"auto",link:e})}),this.index=e.index(this.element),this.siblings=t}else this.options.group&&this.options.group.length&&(this.siblings=this.options.group);this.trigger("lightbox-init",[this])},show:function(e){this.modal=t(this),this.modal.dialog.stop(),this.modal.content.stop();var o,n,s=this,h=i.$.Deferred();e=e||0,"object"==typeof e&&this.siblings.forEach(function(i,t){e[0]===i.link[0]&&(e=t)}),0>e?e=this.siblings.length-e:this.siblings[e]||(e=0),n=this.siblings[e],o={lightbox:s,source:n.source,type:n.type,index:e,promise:h,title:n.title,item:n,meta:{content:"",width:null,height:null}},this.index=e,this.modal.content.empty(),this.modal.is(":visible")||(this.modal.content.css({width:"",height:""}).empty(),this.modal.modal.show()),this.modal.loader.removeClass("uk-hidden"),h.promise().done(function(){s.data=o,s.fitSize(o)}).fail(function(){o.meta.content='<div class="uk-position-cover uk-flex uk-flex-middle uk-flex-center"><strong>Loading resource failed!</strong></div>',o.meta.width=400,o.meta.height=300,s.data=o,s.fitSize(o)}),s.trigger("showitem.uk.lightbox",[o])},fitSize:function(){var t=this,e=this.data,o=this.modal.dialog.outerWidth()-this.modal.dialog.width(),n=parseInt(this.modal.dialog.css("margin-top"),10),s=parseInt(this.modal.dialog.css("margin-bottom"),10),h=n+s,a=e.meta.content,d=t.options.duration;this.siblings.length>1&&(a=[a,'<a href="#" class="uk-slidenav uk-slidenav-contrast uk-slidenav-previous uk-hidden-touch" data-lightbox-previous></a>','<a href="#" class="uk-slidenav uk-slidenav-contrast uk-slidenav-next uk-hidden-touch" data-lightbox-next></a>'].join(""));var l,r,u=i.$("<div>&nbsp;</div>").css({opacity:0,position:"absolute",top:0,left:0,width:"100%","max-width":t.modal.dialog.css("max-width"),padding:t.modal.dialog.css("padding"),margin:t.modal.dialog.css("margin")}),c=e.meta.width,g=e.meta.height;u.appendTo("body").width(),l=u.width(),r=window.innerHeight-h,u.remove(),this.modal.dialog.find(".uk-modal-caption").remove(),e.title&&(this.modal.dialog.append('<div class="uk-modal-caption">'+e.title+"</div>"),r-=this.modal.dialog.find(".uk-modal-caption").outerHeight()),l<e.meta.width&&(g=Math.floor(g*(l/c)),c=l),g>r&&(g=Math.floor(r),c=Math.ceil(e.meta.width*(r/e.meta.height))),this.modal.content.css("opacity",0).width(c).html(a),"iframe"==e.type&&this.modal.content.find("iframe:first").height(g);var m=g+o,p=Math.floor(window.innerHeight/2-m/2)-h;0>p&&(p=0),this.modal.closer.addClass("uk-hidden"),t.modal.data("mwidth")==c&&t.modal.data("mheight")==g&&(d=0),this.modal.dialog.animate({width:c+o,height:g+o,top:p},d,"swing",function(){t.modal.loader.addClass("uk-hidden"),t.modal.content.css({width:""}).animate({opacity:1},function(){t.modal.closer.removeClass("uk-hidden")}),t.modal.data({mwidth:c,mheight:g})})},next:function(){this.show(this.siblings[this.index+1]?this.index+1:0)},previous:function(){this.show(this.siblings[this.index-1]?this.index-1:this.siblings.length-1)}}),i.plugin("lightbox","image",{init:function(i){i.on("showitem.uk.lightbox",function(i,t){if("image"==t.type||t.source&&t.source.match(/\.(jpg|jpeg|png|gif|svg)$/i)){var e=function(i,e,o){t.meta={content:'<img class="uk-responsive-width" width="'+e+'" height="'+o+'" src ="'+i+'">',width:e,height:o},t.type="image",t.promise.resolve()};if(o[t.source])e(t.source,o[t.source].width,o[t.source].height);else{var n=new Image;n.onerror=function(){t.promise.reject("Loading image failed")},n.onload=function(){o[t.source]={width:n.width,height:n.height},e(t.source,o[t.source].width,o[t.source].height)},n.src=t.source}}})}}),i.plugin("lightbox","youtube",{init:function(i){var t=/(\/\/.*?youtube\.[a-z]+)\/watch\?v=([^&]+)&?(.*)/,e=/youtu\.be\/(.*)/;i.on("showitem.uk.lightbox",function(i,n){var s,h,a=function(i,t,e){n.meta={content:'<iframe src="//www.youtube.com/embed/'+i+'" width="'+t+'" height="'+e+'" style="max-width:100%;"></iframe>',width:t,height:e},n.type="iframe",n.promise.resolve()};if((h=n.source.match(t))&&(s=h[2]),(h=n.source.match(e))&&(s=h[1]),s){if(o[s])a(s,o[s].width,o[s].height);else{var d=new Image;d.onerror=function(){o[s]={width:640,height:320},a(s,o[s].width,o[s].height)},d.onload=function(){o[s]={width:d.width,height:d.height},a(s,d.width,d.height)},d.src="//img.youtube.com/vi/"+s+"/0.jpg"}i.stopImmediatePropagation()}})}}),i.plugin("lightbox","vimeo",{init:function(t){var e,n=/(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/;t.on("showitem.uk.lightbox",function(t,s){var h,a=function(i,t,e){s.meta={content:'<iframe src="//player.vimeo.com/video/'+i+'" width="'+t+'" height="'+e+'" style="width:100%;box-sizing:border-box;"></iframe>',width:t,height:e},s.type="iframe",s.promise.resolve()};(e=s.source.match(n))&&(h=e[2],o[h]?a(h,o[h].width,o[h].height):i.$.ajax({type:"GET",url:"http://vimeo.com/api/oembed.json?url="+encodeURI(s.source),jsonp:"callback",dataType:"jsonp",success:function(i){o[h]={width:i.width,height:i.height},a(h,o[h].width,o[h].height)}}),t.stopImmediatePropagation())})}}),i.plugin("lightbox","video",{init:function(t){t.on("showitem.uk.lightbox",function(t,e){var n=function(i,t,o){e.meta={content:'<video class="uk-responsive-width" src="'+i+'" width="'+t+'" height="'+o+'" controls></video>',width:t,height:o},e.type="video",e.promise.resolve()};if("video"==e.type||e.source.match(/\.(mp4|webm|ogv)$/i))if(o[e.source])n(e.source,o[e.source].width,o[e.source].height);else var s=i.$('<video style="position:fixed;visibility:hidden;top:-10000px;"></video>').attr("src",e.source).appendTo("body"),h=setInterval(function(){s[0].videoWidth&&(clearInterval(h),o[e.source]={width:s[0].videoWidth,height:s[0].videoHeight},n(e.source,o[e.source].width,o[e.source].height),s.remove())},20)})}}),i.lightbox.create=function(t,e){if(t){var o,n=[];return t.forEach(function(t){n.push(i.$.extend({source:"",title:"",type:"auto",link:!1},"string"==typeof t?{source:t}:t))}),o=i.lightbox(i.$.extend({},e,{group:n}))}},i.lightbox}); \ No newline at end of file diff --git a/media/uikit/js/components/nestable.js b/media/uikit/js/components/nestable.js new file mode 100644 index 00000000..a7f423f1 --- /dev/null +++ b/media/uikit/js/components/nestable.js @@ -0,0 +1,625 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* + * Based on Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/ + */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-nestable", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI) { + + "use strict"; + + var hasTouch = 'ontouchstart' in window, + html = UI.$html, + touchedlists = [], + $win = UI.$win, + draggingElement, dragSource; + + var eStart = hasTouch ? 'touchstart' : 'mousedown', + eMove = hasTouch ? 'touchmove' : 'mousemove', + eEnd = hasTouch ? 'touchend' : 'mouseup', + eCancel = hasTouch ? 'touchcancel' : 'mouseup'; + + + UI.component('nestable', { + + defaults: { + listBaseClass : 'uk-nestable', + listClass : 'uk-nestable-list', + listItemClass : 'uk-nestable-item', + dragClass : 'uk-nestable-dragged', + movingClass : 'uk-nestable-moving', + handleClass : '', + collapsedClass : 'uk-collapsed', + placeholderClass: 'uk-nestable-placeholder', + noDragClass : 'uk-nestable-nodrag', + group : false, + maxDepth : 10, + threshold : 20, + idlethreshold : 10 + }, + + boot: function() { + + // adjust document scrolling + UI.$html.on('mousemove touchmove', function(e) { + + if (draggingElement) { + + var top = draggingElement.offset().top; + + if (top < UI.$win.scrollTop()) { + UI.$win.scrollTop(UI.$win.scrollTop() - Math.ceil(draggingElement.height()/2)); + } else if ( (top + draggingElement.height()) > (window.innerHeight + UI.$win.scrollTop()) ) { + UI.$win.scrollTop(UI.$win.scrollTop() + Math.ceil(draggingElement.height()/2)); + } + } + }); + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-nestable]", context).each(function(){ + + var ele = UI.$(this); + + if (!ele.data("nestable")) { + UI.nestable(ele, UI.Utils.options(ele.attr("data-uk-nestable"))); + } + }); + }); + }, + + init: function() { + + var $this = this; + + Object.keys(this.options).forEach(function(key){ + + if(String(key).indexOf('Class')!=-1) { + $this.options['_'+key] = '.' + $this.options[key]; + } + }); + + this.find(this.options._listItemClass).find(">ul").addClass(this.options.listClass); + + this.checkEmptyList(); + + this.reset(); + this.element.data('nestable-group', this.options.group || UI.Utils.uid('nestable-group')); + + this.find(this.options._listItemClass).each(function() { + $this.setParent(UI.$(this)); + }); + + this.on('click', '[data-nestable-action]', function(e) { + + if ($this.dragEl || (!hasTouch && e.button !== 0)) { + return; + } + + e.preventDefault(); + + var target = UI.$(e.currentTarget), + action = target.data('nestableAction'), + item = target.closest($this.options._listItemClass); + + if (action === 'collapse') { + $this.collapseItem(item); + } + if (action === 'expand') { + $this.expandItem(item); + } + if (action === 'toggle') { + $this.toggleItem(item); + } + }); + + var onStartEvent = function(e) { + + var handle = UI.$(e.target); + + if (e.target === $this.element[0]) { + return; + } + + if (handle.is($this.options._noDragClass) || handle.closest($this.options._noDragClass).length) { + return; + } + + if (handle.is('[data-nestable-action]') || handle.closest('[data-nestable-action]').length) { + return; + } + + if ($this.options.handleClass && !handle.hasClass($this.options.handleClass)) { + + if ($this.options.handleClass) { + handle = handle.closest($this.options._handleClass); + } + } + + if (!handle.length || $this.dragEl || (!hasTouch && e.button !== 0) || (hasTouch && e.touches.length !== 1)) { + return; + } + + if (e.originalEvent && e.originalEvent.touches) { + e = evt.originalEvent.touches[0]; + } + + $this.delayMove = function(evt) { + + evt.preventDefault(); + $this.dragStart(e); + $this.trigger('start.uk.nestable', [$this]); + + $this.delayMove = false; + }; + + $this.delayMove.x = parseInt(e.pageX, 10); + $this.delayMove.y = parseInt(e.pageY, 10); + $this.delayMove.threshold = $this.options.idlethreshold; + + e.preventDefault(); + }; + + var onMoveEvent = function(e) { + + if (e.originalEvent && e.originalEvent.touches) { + e = e.originalEvent.touches[0]; + } + + if ($this.delayMove && (Math.abs(e.pageX - $this.delayMove.x) > $this.delayMove.threshold || Math.abs(e.pageY - $this.delayMove.y) > $this.delayMove.threshold)) { + + if (!window.getSelection().toString()) { + $this.delayMove(e); + } else { + $this.delayMove = false; + } + } + + if ($this.dragEl) { + e.preventDefault(); + $this.dragMove(e); + $this.trigger('move.uk.nestable', [$this]); + } + }; + + var onEndEvent = function(e) { + + if ($this.dragEl) { + e.preventDefault(); + $this.dragStop(hasTouch ? e.touches[0] : e); + } + + draggingElement = false; + $this.delayMove = false; + }; + + if (hasTouch) { + this.element[0].addEventListener(eStart, onStartEvent, false); + window.addEventListener(eMove, onMoveEvent, false); + window.addEventListener(eEnd, onEndEvent, false); + window.addEventListener(eCancel, onEndEvent, false); + } else { + this.on(eStart, onStartEvent); + $win.on(eMove, onMoveEvent); + $win.on(eEnd, onEndEvent); + } + + }, + + serialize: function() { + + var data, + depth = 0, + list = this, + step = function(level, depth) { + + var array = [ ], items = level.children(list.options._listItemClass); + + items.each(function() { + + var li = UI.$(this), + item = {}, attribute, + sub = li.children(list.options._listClass); + + for (var i = 0; i < li[0].attributes.length; i++) { + attribute = li[0].attributes[i]; + if (attribute.name.indexOf('data-') === 0) { + item[attribute.name.substr(5)] = UI.Utils.str2json(attribute.value); + } + } + + if (sub.length) { + item.children = step(sub, depth + 1); + } + + array.push(item); + + }); + return array; + }; + + data = step(list.element, depth); + + return data; + }, + + list: function(options) { + + var data = [], + list = this, + depth = 0, + step = function(level, depth, parent) { + + var items = level.children(options._listItemClass); + + items.each(function(index) { + var li = UI.$(this), + item = UI.$.extend({parent_id: (parent ? parent : null), depth: depth, order: index}, li.data()), + sub = li.children(options._listClass); + + data.push(item); + + if (sub.length) { + step(sub, depth + 1, li.data(options.idProperty || 'id')); + } + }); + }; + + options = UI.$.extend({}, list.options, options); + + step(list.element, depth); + + return data; + }, + + reset: function() { + + this.mouse = { + offsetX : 0, + offsetY : 0, + startX : 0, + startY : 0, + lastX : 0, + lastY : 0, + nowX : 0, + nowY : 0, + distX : 0, + distY : 0, + dirAx : 0, + dirX : 0, + dirY : 0, + lastDirX : 0, + lastDirY : 0, + distAxX : 0, + distAxY : 0 + }; + this.moving = false; + this.dragEl = null; + this.dragRootEl = null; + this.dragDepth = 0; + this.hasNewRoot = false; + this.pointEl = null; + + for (var i=0; i<touchedlists.length; i++) { + this.checkEmptyList(touchedlists[i]); + } + + touchedlists = []; + }, + + toggleItem: function(li) { + this[li.hasClass(this.options.collapsedClass) ? "expandItem":"collapseItem"](li); + }, + + expandItem: function(li) { + li.removeClass(this.options.collapsedClass); + }, + + collapseItem: function(li) { + var lists = li.children(this.options._listClass); + if (lists.length) { + li.addClass(this.options.collapsedClass); + } + }, + + expandAll: function() { + var list = this; + this.find(list.options._listItemClass).each(function() { + list.expandItem(UI.$(this)); + }); + }, + + collapseAll: function() { + var list = this; + this.find(list.options._listItemClass).each(function() { + list.collapseItem(UI.$(this)); + }); + }, + + setParent: function(li) { + + if (li.children(this.options._listClass).length) { + li.addClass("uk-parent"); + } + }, + + unsetParent: function(li) { + li.removeClass('uk-parent '+this.options.collapsedClass); + li.children(this.options._listClass).remove(); + }, + + dragStart: function(e) { + + var mouse = this.mouse, + target = UI.$(e.target), + dragItem = target.closest(this.options._listItemClass), + offset = dragItem.offset(); + + this.placeEl = dragItem; + + mouse.offsetX = e.pageX - offset.left; + mouse.offsetY = e.pageY - offset.top; + + mouse.startX = mouse.lastX = offset.left; + mouse.startY = mouse.lastY = offset.top; + + this.dragRootEl = this.element; + + this.dragEl = UI.$('<ul></ul>').addClass(this.options.listClass + ' ' + this.options.dragClass).append(dragItem.clone()); + this.dragEl.css('width', dragItem.width()); + this.placeEl.addClass(this.options.placeholderClass); + + draggingElement = this.dragEl; + + this.tmpDragOnSiblings = [dragItem[0].previousSibling, dragItem[0].nextSibling]; + + UI.$body.append(this.dragEl); + + this.dragEl.css({ + left : offset.left, + top : offset.top + }); + + // total depth of dragging item + var i, depth, items = this.dragEl.find(this.options._listItemClass); + + for (i = 0; i < items.length; i++) { + depth = UI.$(items[i]).parents(this.options._listClass+','+this.options._listBaseClass).length; + if (depth > this.dragDepth) { + this.dragDepth = depth; + } + } + + html.addClass(this.options.movingClass); + }, + + dragStop: function(e) { + + var el = this.placeEl, + root = this.placeEl.parents(this.options._listBaseClass+':first'); + + this.placeEl.removeClass(this.options.placeholderClass); + this.dragEl.remove(); + + if (this.element[0] !== root[0]) { + + root.trigger('change.uk.nestable',[el, "added", root, root.data('nestable')]); + this.element.trigger('change.uk.nestable', [el, "removed", this.element, this]); + + } else { + this.element.trigger('change.uk.nestable',[el, "moved", this.element, this]); + } + + this.trigger('stop.uk.nestable', [this, el]); + + this.reset(); + + html.removeClass(this.options.movingClass); + }, + + dragMove: function(e) { + var list, parent, prev, next, depth, + opt = this.options, + mouse = this.mouse, + maxDepth = this.dragRootEl ? this.dragRootEl.data('nestable').options.maxDepth : opt.maxDepth; + + this.dragEl.css({ + left : e.pageX - mouse.offsetX, + top : e.pageY - mouse.offsetY + }); + + // mouse position last events + mouse.lastX = mouse.nowX; + mouse.lastY = mouse.nowY; + // mouse position this events + mouse.nowX = e.pageX; + mouse.nowY = e.pageY; + // distance mouse moved between events + mouse.distX = mouse.nowX - mouse.lastX; + mouse.distY = mouse.nowY - mouse.lastY; + // direction mouse was moving + mouse.lastDirX = mouse.dirX; + mouse.lastDirY = mouse.dirY; + // direction mouse is now moving (on both axis) + mouse.dirX = mouse.distX === 0 ? 0 : mouse.distX > 0 ? 1 : -1; + mouse.dirY = mouse.distY === 0 ? 0 : mouse.distY > 0 ? 1 : -1; + // axis mouse is now moving on + var newAx = Math.abs(mouse.distX) > Math.abs(mouse.distY) ? 1 : 0; + + // do nothing on first move + if (!mouse.moving) { + mouse.dirAx = newAx; + mouse.moving = true; + return; + } + + // calc distance moved on this axis (and direction) + if (mouse.dirAx !== newAx) { + mouse.distAxX = 0; + mouse.distAxY = 0; + } else { + mouse.distAxX += Math.abs(mouse.distX); + if (mouse.dirX !== 0 && mouse.dirX !== mouse.lastDirX) { + mouse.distAxX = 0; + } + mouse.distAxY += Math.abs(mouse.distY); + if (mouse.dirY !== 0 && mouse.dirY !== mouse.lastDirY) { + mouse.distAxY = 0; + } + } + mouse.dirAx = newAx; + + /** + * move horizontal + */ + if (mouse.dirAx && mouse.distAxX >= opt.threshold) { + // reset move distance on x-axis for new phase + mouse.distAxX = 0; + prev = this.placeEl.prev('li'); + + // increase horizontal level if previous sibling exists and is not collapsed + if (mouse.distX > 0 && prev.length && !prev.hasClass(opt.collapsedClass)) { + + // cannot increase level when item above is collapsed + list = prev.find(opt._listClass).last(); + + // check if depth limit has reached + depth = this.placeEl.parents(opt._listClass+','+opt._listBaseClass).length; + + if (depth + this.dragDepth <= maxDepth) { + + // create new sub-level if one doesn't exist + if (!list.length) { + list = UI.$('<ul/>').addClass(opt.listClass); + list.append(this.placeEl); + prev.append(list); + this.setParent(prev); + } else { + // else append to next level up + list = prev.children(opt._listClass).last(); + list.append(this.placeEl); + } + } + } + // decrease horizontal level + if (mouse.distX < 0) { + // we can't decrease a level if an item preceeds the current one + next = this.placeEl.next('li'); + if (!next.length) { + parent = this.placeEl.parent(); + this.placeEl.closest(opt._listItemClass).after(this.placeEl); + if (!parent.children().length) { + this.unsetParent(parent.parent()); + } + } + } + } + + var isEmpty = false; + + // find list item under cursor + var pointX = this.dragEl.offset().left - (window.pageXOffset || document.scrollLeft || 0), + pointY = e.pageY - (window.pageYOffset || document.documentElement.scrollTop); + this.pointEl = UI.$(document.elementFromPoint(pointX, pointY)); + + if (opt.handleClass && this.pointEl.hasClass(opt.handleClass)) { + + this.pointEl = this.pointEl.closest(opt._listItemClass); + + } else { + + var nestableitem = this.pointEl.closest(opt._listItemClass); + + if (nestableitem.length) { + this.pointEl = nestableitem; + } + } + + if (this.placeEl.find(this.pointEl).length) { + return; + } + + if (this.pointEl.data('nestable') && !this.pointEl.children().length) { + isEmpty = true; + this.checkEmptyList(this.pointEl); + } else if (!this.pointEl.length || !this.pointEl.hasClass(opt.listItemClass)) { + return; + } + + // find parent list of item under cursor + var pointElRoot = this.element, + tmpRoot = this.pointEl.closest(this.options._listBaseClass), + isNewRoot = pointElRoot[0] !== this.pointEl.closest(this.options._listBaseClass)[0]; + + /** + * move vertical + */ + if (!mouse.dirAx || isNewRoot || isEmpty) { + + // check if groups match if dragging over new root + if (isNewRoot && opt.group !== tmpRoot.data('nestable-group')) { + return; + } else { + touchedlists.push(pointElRoot); + } + + // check depth limit + depth = this.dragDepth - 1 + this.pointEl.parents(opt._listClass+','+opt._listBaseClass).length; + + if (depth > maxDepth) { + return; + } + + var before = e.pageY < (this.pointEl.offset().top + this.pointEl.height() / 2); + + parent = this.placeEl.parent(); + + if (isEmpty) { + this.pointEl.append(this.placeEl); + } else if (before) { + this.pointEl.before(this.placeEl); + } else { + this.pointEl.after(this.placeEl); + } + + if (!parent.children().length) { + if (!parent.data("nestable")) this.unsetParent(parent.parent()); + } + + this.checkEmptyList(this.dragRootEl); + this.checkEmptyList(pointElRoot); + + // parent root list has changed + if (isNewRoot) { + this.dragRootEl = tmpRoot; + this.hasNewRoot = this.element[0] !== this.dragRootEl[0]; + } + } + }, + + checkEmptyList: function(list) { + + list = list ? UI.$(list) : this.element; + + if (!list.children().length) { + list.html(''); + } + } + + }); + + return UI.nestable; +}); diff --git a/media/uikit/js/components/nestable.min.js b/media/uikit/js/components/nestable.min.js new file mode 100644 index 00000000..30629de9 --- /dev/null +++ b/media/uikit/js/components/nestable.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var s;window.UIkit&&(s=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-nestable",["uikit"],function(){return s||t(UIkit)})}(function(t){"use strict";var s,e="ontouchstart"in window,i=t.$html,l=[],a=t.$win,n=e?"touchstart":"mousedown",o=e?"touchmove":"mousemove",h=e?"touchend":"mouseup",r=e?"touchcancel":"mouseup";return t.component("nestable",{defaults:{listBaseClass:"uk-nestable",listClass:"uk-nestable-list",listItemClass:"uk-nestable-item",dragClass:"uk-nestable-dragged",movingClass:"uk-nestable-moving",handleClass:"",collapsedClass:"uk-collapsed",placeholderClass:"uk-nestable-placeholder",noDragClass:"uk-nestable-nodrag",group:!1,maxDepth:10,threshold:20,idlethreshold:10},boot:function(){t.$html.on("mousemove touchmove",function(){if(s){var e=s.offset().top;e<t.$win.scrollTop()?t.$win.scrollTop(t.$win.scrollTop()-Math.ceil(s.height()/2)):e+s.height()>window.innerHeight+t.$win.scrollTop()&&t.$win.scrollTop(t.$win.scrollTop()+Math.ceil(s.height()/2))}}),t.ready(function(s){t.$("[data-uk-nestable]",s).each(function(){var s=t.$(this);s.data("nestable")||t.nestable(s,t.Utils.options(s.attr("data-uk-nestable")))})})},init:function(){var i=this;Object.keys(this.options).forEach(function(t){-1!=String(t).indexOf("Class")&&(i.options["_"+t]="."+i.options[t])}),this.find(this.options._listItemClass).find(">ul").addClass(this.options.listClass),this.checkEmptyList(),this.reset(),this.element.data("nestable-group",this.options.group||t.Utils.uid("nestable-group")),this.find(this.options._listItemClass).each(function(){i.setParent(t.$(this))}),this.on("click","[data-nestable-action]",function(s){if(!i.dragEl&&(e||0===s.button)){s.preventDefault();var l=t.$(s.currentTarget),a=l.data("nestableAction"),n=l.closest(i.options._listItemClass);"collapse"===a&&i.collapseItem(n),"expand"===a&&i.expandItem(n),"toggle"===a&&i.toggleItem(n)}});var l=function(s){var l=t.$(s.target);s.target!==i.element[0]&&(l.is(i.options._noDragClass)||l.closest(i.options._noDragClass).length||l.is("[data-nestable-action]")||l.closest("[data-nestable-action]").length||(i.options.handleClass&&!l.hasClass(i.options.handleClass)&&i.options.handleClass&&(l=l.closest(i.options._handleClass)),!l.length||i.dragEl||!e&&0!==s.button||e&&1!==s.touches.length||(s.originalEvent&&s.originalEvent.touches&&(s=evt.originalEvent.touches[0]),i.delayMove=function(t){t.preventDefault(),i.dragStart(s),i.trigger("start.uk.nestable",[i]),i.delayMove=!1},i.delayMove.x=parseInt(s.pageX,10),i.delayMove.y=parseInt(s.pageY,10),i.delayMove.threshold=i.options.idlethreshold,s.preventDefault())))},d=function(t){t.originalEvent&&t.originalEvent.touches&&(t=t.originalEvent.touches[0]),i.delayMove&&(Math.abs(t.pageX-i.delayMove.x)>i.delayMove.threshold||Math.abs(t.pageY-i.delayMove.y)>i.delayMove.threshold)&&(window.getSelection().toString()?i.delayMove=!1:i.delayMove(t)),i.dragEl&&(t.preventDefault(),i.dragMove(t),i.trigger("move.uk.nestable",[i]))},p=function(t){i.dragEl&&(t.preventDefault(),i.dragStop(e?t.touches[0]:t)),s=!1,i.delayMove=!1};e?(this.element[0].addEventListener(n,l,!1),window.addEventListener(o,d,!1),window.addEventListener(h,p,!1),window.addEventListener(r,p,!1)):(this.on(n,l),a.on(o,d),a.on(h,p))},serialize:function(){var s,e=0,i=this,l=function(s,e){var a=[],n=s.children(i.options._listItemClass);return n.each(function(){for(var s,n=t.$(this),o={},h=n.children(i.options._listClass),r=0;r<n[0].attributes.length;r++)s=n[0].attributes[r],0===s.name.indexOf("data-")&&(o[s.name.substr(5)]=t.Utils.str2json(s.value));h.length&&(o.children=l(h,e+1)),a.push(o)}),a};return s=l(i.element,e)},list:function(s){var e=[],i=this,l=0,a=function(i,l,n){var o=i.children(s._listItemClass);o.each(function(i){var o=t.$(this),h=t.$.extend({parent_id:n?n:null,depth:l,order:i},o.data()),r=o.children(s._listClass);e.push(h),r.length&&a(r,l+1,o.data(s.idProperty||"id"))})};return s=t.$.extend({},i.options,s),a(i.element,l),e},reset:function(){this.mouse={offsetX:0,offsetY:0,startX:0,startY:0,lastX:0,lastY:0,nowX:0,nowY:0,distX:0,distY:0,dirAx:0,dirX:0,dirY:0,lastDirX:0,lastDirY:0,distAxX:0,distAxY:0},this.moving=!1,this.dragEl=null,this.dragRootEl=null,this.dragDepth=0,this.hasNewRoot=!1,this.pointEl=null;for(var t=0;t<l.length;t++)this.checkEmptyList(l[t]);l=[]},toggleItem:function(t){this[t.hasClass(this.options.collapsedClass)?"expandItem":"collapseItem"](t)},expandItem:function(t){t.removeClass(this.options.collapsedClass)},collapseItem:function(t){var s=t.children(this.options._listClass);s.length&&t.addClass(this.options.collapsedClass)},expandAll:function(){var s=this;this.find(s.options._listItemClass).each(function(){s.expandItem(t.$(this))})},collapseAll:function(){var s=this;this.find(s.options._listItemClass).each(function(){s.collapseItem(t.$(this))})},setParent:function(t){t.children(this.options._listClass).length&&t.addClass("uk-parent")},unsetParent:function(t){t.removeClass("uk-parent "+this.options.collapsedClass),t.children(this.options._listClass).remove()},dragStart:function(e){var l=this.mouse,a=t.$(e.target),n=a.closest(this.options._listItemClass),o=n.offset();this.placeEl=n,l.offsetX=e.pageX-o.left,l.offsetY=e.pageY-o.top,l.startX=l.lastX=o.left,l.startY=l.lastY=o.top,this.dragRootEl=this.element,this.dragEl=t.$("<ul></ul>").addClass(this.options.listClass+" "+this.options.dragClass).append(n.clone()),this.dragEl.css("width",n.width()),this.placeEl.addClass(this.options.placeholderClass),s=this.dragEl,this.tmpDragOnSiblings=[n[0].previousSibling,n[0].nextSibling],t.$body.append(this.dragEl),this.dragEl.css({left:o.left,top:o.top});var h,r,d=this.dragEl.find(this.options._listItemClass);for(h=0;h<d.length;h++)r=t.$(d[h]).parents(this.options._listClass+","+this.options._listBaseClass).length,r>this.dragDepth&&(this.dragDepth=r);i.addClass(this.options.movingClass)},dragStop:function(){var t=this.placeEl,s=this.placeEl.parents(this.options._listBaseClass+":first");this.placeEl.removeClass(this.options.placeholderClass),this.dragEl.remove(),this.element[0]!==s[0]?(s.trigger("change.uk.nestable",[t,"added",s,s.data("nestable")]),this.element.trigger("change.uk.nestable",[t,"removed",this.element,this])):this.element.trigger("change.uk.nestable",[t,"moved",this.element,this]),this.trigger("stop.uk.nestable",[this,t]),this.reset(),i.removeClass(this.options.movingClass)},dragMove:function(s){var e,i,a,n,o,h=this.options,r=this.mouse,d=this.dragRootEl?this.dragRootEl.data("nestable").options.maxDepth:h.maxDepth;this.dragEl.css({left:s.pageX-r.offsetX,top:s.pageY-r.offsetY}),r.lastX=r.nowX,r.lastY=r.nowY,r.nowX=s.pageX,r.nowY=s.pageY,r.distX=r.nowX-r.lastX,r.distY=r.nowY-r.lastY,r.lastDirX=r.dirX,r.lastDirY=r.dirY,r.dirX=0===r.distX?0:r.distX>0?1:-1,r.dirY=0===r.distY?0:r.distY>0?1:-1;var p=Math.abs(r.distX)>Math.abs(r.distY)?1:0;if(!r.moving)return r.dirAx=p,r.moving=!0,void 0;r.dirAx!==p?(r.distAxX=0,r.distAxY=0):(r.distAxX+=Math.abs(r.distX),0!==r.dirX&&r.dirX!==r.lastDirX&&(r.distAxX=0),r.distAxY+=Math.abs(r.distY),0!==r.dirY&&r.dirY!==r.lastDirY&&(r.distAxY=0)),r.dirAx=p,r.dirAx&&r.distAxX>=h.threshold&&(r.distAxX=0,a=this.placeEl.prev("li"),r.distX>0&&a.length&&!a.hasClass(h.collapsedClass)&&(e=a.find(h._listClass).last(),o=this.placeEl.parents(h._listClass+","+h._listBaseClass).length,o+this.dragDepth<=d&&(e.length?(e=a.children(h._listClass).last(),e.append(this.placeEl)):(e=t.$("<ul/>").addClass(h.listClass),e.append(this.placeEl),a.append(e),this.setParent(a)))),r.distX<0&&(n=this.placeEl.next("li"),n.length||(i=this.placeEl.parent(),this.placeEl.closest(h._listItemClass).after(this.placeEl),i.children().length||this.unsetParent(i.parent()))));var c=!1,g=this.dragEl.offset().left-(window.pageXOffset||document.scrollLeft||0),u=s.pageY-(window.pageYOffset||document.documentElement.scrollTop);if(this.pointEl=t.$(document.elementFromPoint(g,u)),h.handleClass&&this.pointEl.hasClass(h.handleClass))this.pointEl=this.pointEl.closest(h._listItemClass);else{var f=this.pointEl.closest(h._listItemClass);f.length&&(this.pointEl=f)}if(!this.placeEl.find(this.pointEl).length){if(this.pointEl.data("nestable")&&!this.pointEl.children().length)c=!0,this.checkEmptyList(this.pointEl);else if(!this.pointEl.length||!this.pointEl.hasClass(h.listItemClass))return;var m=this.element,v=this.pointEl.closest(this.options._listBaseClass),E=m[0]!==this.pointEl.closest(this.options._listBaseClass)[0];if(!r.dirAx||E||c){if(E&&h.group!==v.data("nestable-group"))return;if(l.push(m),o=this.dragDepth-1+this.pointEl.parents(h._listClass+","+h._listBaseClass).length,o>d)return;var C=s.pageY<this.pointEl.offset().top+this.pointEl.height()/2;i=this.placeEl.parent(),c?this.pointEl.append(this.placeEl):C?this.pointEl.before(this.placeEl):this.pointEl.after(this.placeEl),i.children().length||i.data("nestable")||this.unsetParent(i.parent()),this.checkEmptyList(this.dragRootEl),this.checkEmptyList(m),E&&(this.dragRootEl=v,this.hasNewRoot=this.element[0]!==this.dragRootEl[0])}}},checkEmptyList:function(s){s=s?t.$(s):this.element,s.children().length||s.html("")}}),t.nestable}); \ No newline at end of file diff --git a/media/uikit/js/components/notify.js b/media/uikit/js/components/notify.js new file mode 100644 index 00000000..b4fba057 --- /dev/null +++ b/media/uikit/js/components/notify.js @@ -0,0 +1,191 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-notify", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + var containers = {}, + messages = {}, + + notify = function(options){ + + if (UI.$.type(options) == 'string') { + options = { message: options }; + } + + if (arguments[1]) { + options = UI.$.extend(options, UI.$.type(arguments[1]) == 'string' ? {status:arguments[1]} : arguments[1]); + } + + return (new Message(options)).show(); + }, + closeAll = function(group, instantly){ + + var id; + + if (group) { + for(id in messages) { if(group===messages[id].group) messages[id].close(instantly); } + } else { + for(id in messages) { messages[id].close(instantly); } + } + }; + + var Message = function(options){ + + var $this = this; + + this.options = UI.$.extend({}, Message.defaults, options); + + this.uuid = UI.Utils.uid("notifymsg"); + this.element = UI.$([ + + '<div class="uk-notify-message">', + '<a class="uk-close"></a>', + '<div></div>', + '</div>' + + ].join('')).data("notifyMessage", this); + + this.content(this.options.message); + + // status + if (this.options.status) { + this.element.addClass('uk-notify-message-'+this.options.status); + this.currentstatus = this.options.status; + } + + this.group = this.options.group; + + messages[this.uuid] = this; + + if(!containers[this.options.pos]) { + containers[this.options.pos] = UI.$('<div class="uk-notify uk-notify-'+this.options.pos+'"></div>').appendTo('body').on("click", ".uk-notify-message", function(){ + + var message = UI.$(this).data("notifyMessage"); + + message.element.trigger('manualclose.uk.notify', [message]); + message.close(); + }); + } + }; + + + UI.$.extend(Message.prototype, { + + uuid: false, + element: false, + timout: false, + currentstatus: "", + group: false, + + show: function() { + + if (this.element.is(":visible")) return; + + var $this = this; + + containers[this.options.pos].show().prepend(this.element); + + var marginbottom = parseInt(this.element.css("margin-bottom"), 10); + + this.element.css({"opacity":0, "margin-top": -1*this.element.outerHeight(), "margin-bottom":0}).animate({"opacity":1, "margin-top": 0, "margin-bottom":marginbottom}, function(){ + + if ($this.options.timeout) { + + var closefn = function(){ $this.close(); }; + + $this.timeout = setTimeout(closefn, $this.options.timeout); + + $this.element.hover( + function() { clearTimeout($this.timeout); }, + function() { $this.timeout = setTimeout(closefn, $this.options.timeout); } + ); + } + + }); + + return this; + }, + + close: function(instantly) { + + var $this = this, + finalize = function(){ + $this.element.remove(); + + if (!containers[$this.options.pos].children().length) { + containers[$this.options.pos].hide(); + } + + $this.options.onClose.apply($this, []); + $this.element.trigger('close.uk.notify', [$this]); + + delete messages[$this.uuid]; + }; + + if (this.timeout) clearTimeout(this.timeout); + + if (instantly) { + finalize(); + } else { + this.element.animate({"opacity":0, "margin-top": -1* this.element.outerHeight(), "margin-bottom":0}, function(){ + finalize(); + }); + } + }, + + content: function(html){ + + var container = this.element.find(">div"); + + if(!html) { + return container.html(); + } + + container.html(html); + + return this; + }, + + status: function(status) { + + if (!status) { + return this.currentstatus; + } + + this.element.removeClass('uk-notify-message-'+this.currentstatus).addClass('uk-notify-message-'+status); + + this.currentstatus = status; + + return this; + } + }); + + Message.defaults = { + message: "", + status: "", + timeout: 5000, + group: null, + pos: 'top-center', + onClose: function() {} + }; + + UI.notify = notify; + UI.notify.message = Message; + UI.notify.closeAll = closeAll; + + return notify; +}); diff --git a/media/uikit/js/components/notify.min.js b/media/uikit/js/components/notify.min.js new file mode 100644 index 00000000..12891160 --- /dev/null +++ b/media/uikit/js/components/notify.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-notify",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";var e={},i={},s=function(e){return"string"==t.$.type(e)&&(e={message:e}),arguments[1]&&(e=t.$.extend(e,"string"==t.$.type(arguments[1])?{status:arguments[1]}:arguments[1])),new n(e).show()},o=function(t,e){var s;if(t)for(s in i)t===i[s].group&&i[s].close(e);else for(s in i)i[s].close(e)},n=function(s){this.options=t.$.extend({},n.defaults,s),this.uuid=t.Utils.uid("notifymsg"),this.element=t.$(['<div class="uk-notify-message">','<a class="uk-close"></a>',"<div></div>","</div>"].join("")).data("notifyMessage",this),this.content(this.options.message),this.options.status&&(this.element.addClass("uk-notify-message-"+this.options.status),this.currentstatus=this.options.status),this.group=this.options.group,i[this.uuid]=this,e[this.options.pos]||(e[this.options.pos]=t.$('<div class="uk-notify uk-notify-'+this.options.pos+'"></div>').appendTo("body").on("click",".uk-notify-message",function(){var e=t.$(this).data("notifyMessage");e.element.trigger("manualclose.uk.notify",[e]),e.close()}))};return t.$.extend(n.prototype,{uuid:!1,element:!1,timout:!1,currentstatus:"",group:!1,show:function(){if(!this.element.is(":visible")){var t=this;e[this.options.pos].show().prepend(this.element);var i=parseInt(this.element.css("margin-bottom"),10);return this.element.css({opacity:0,"margin-top":-1*this.element.outerHeight(),"margin-bottom":0}).animate({opacity:1,"margin-top":0,"margin-bottom":i},function(){if(t.options.timeout){var e=function(){t.close()};t.timeout=setTimeout(e,t.options.timeout),t.element.hover(function(){clearTimeout(t.timeout)},function(){t.timeout=setTimeout(e,t.options.timeout)})}}),this}},close:function(t){var s=this,o=function(){s.element.remove(),e[s.options.pos].children().length||e[s.options.pos].hide(),s.options.onClose.apply(s,[]),s.element.trigger("close.uk.notify",[s]),delete i[s.uuid]};this.timeout&&clearTimeout(this.timeout),t?o():this.element.animate({opacity:0,"margin-top":-1*this.element.outerHeight(),"margin-bottom":0},function(){o()})},content:function(t){var e=this.element.find(">div");return t?(e.html(t),this):e.html()},status:function(t){return t?(this.element.removeClass("uk-notify-message-"+this.currentstatus).addClass("uk-notify-message-"+t),this.currentstatus=t,this):this.currentstatus}}),n.defaults={message:"",status:"",timeout:5e3,group:null,pos:"top-center",onClose:function(){}},t.notify=s,t.notify.message=n,t.notify.closeAll=o,s}); \ No newline at end of file diff --git a/media/uikit/js/components/pagination.js b/media/uikit/js/components/pagination.js new file mode 100644 index 00000000..fa01908f --- /dev/null +++ b/media/uikit/js/components/pagination.js @@ -0,0 +1,148 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* + * Based on simplePagination - Copyright (c) 2012 Flavius Matis - http://flaviusmatis.github.com/simplePagination.js/ (MIT) + */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-pagination", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + UI.component('pagination', { + + defaults: { + items : 1, + itemsOnPage : 1, + pages : 0, + displayedPages : 3, + edges : 3, + currentPage : 1, + lblPrev : false, + lblNext : false, + onSelectPage : function() {} + }, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-pagination]", context).each(function(){ + var ele = UI.$(this); + + if (!ele.data("pagination")) { + var obj = UI.pagination(ele, UI.Utils.options(ele.attr("data-uk-pagination"))); + } + }); + }); + }, + + init: function() { + + var $this = this; + + this.pages = this.options.pages ? this.options.pages : Math.ceil(this.options.items / this.options.itemsOnPage) ? Math.ceil(this.options.items / this.options.itemsOnPage) : 1; + this.currentPage = this.options.currentPage - 1; + this.halfDisplayed = this.options.displayedPages / 2; + + this.on("click", "a[data-page]", function(e){ + e.preventDefault(); + $this.selectPage(UI.$(this).data("page")); + }); + + this._render(); + }, + + _getInterval: function() { + + return { + start: Math.ceil(this.currentPage > this.halfDisplayed ? Math.max(Math.min(this.currentPage - this.halfDisplayed, (this.pages - this.options.displayedPages)), 0) : 0), + end : Math.ceil(this.currentPage > this.halfDisplayed ? Math.min(this.currentPage + this.halfDisplayed, this.pages) : Math.min(this.options.displayedPages, this.pages)) + }; + }, + + render: function(pages) { + this.pages = pages ? pages : this.pages; + this._render(); + }, + + selectPage: function(pageIndex, pages) { + this.currentPage = pageIndex; + this.render(pages); + + this.options.onSelectPage.apply(this, [pageIndex]); + this.trigger('select.uk.pagination', [pageIndex, this]); + }, + + _render: function() { + + var o = this.options, interval = this._getInterval(), i; + + this.element.empty(); + + // Generate Prev link + if (o.lblPrev) this._append(o.currentPage - 1, {text: o.lblPrev}); + + // Generate start edges + if (interval.start > 0 && o.edges > 0) { + + var end = Math.min(o.edges, interval.start); + + for (i = 0; i < end; i++) this._append(i); + + if (o.edges < interval.start && (interval.start - o.edges != 1)) { + this.element.append('<li><span>...</span></li>'); + } else if (interval.start - o.edges == 1) { + this._append(o.edges); + } + } + + // Generate interval links + for (i = interval.start; i < interval.end; i++) this._append(i); + + // Generate end edges + if (interval.end < this.pages && o.edges > 0) { + + if (this.pages - o.edges > interval.end && (this.pages - o.edges - interval.end != 1)) { + this.element.append('<li><span>...</span></li>'); + } else if (this.pages - o.edges - interval.end == 1) { + this._append(interval.end++); + } + + var begin = Math.max(this.pages - o.edges, interval.end); + + for (i = begin; i < this.pages; i++) this._append(i); + } + + // Generate Next link (unless option is set for at front) + if (o.lblNext) this._append(o.currentPage + 1, {text: o.lblNext}); + }, + + _append: function(pageIndex, opts) { + + var $this = this, item, link, options; + + pageIndex = pageIndex < 0 ? 0 : (pageIndex < this.pages ? pageIndex : this.pages - 1); + options = UI.$.extend({ text: pageIndex + 1 }, opts); + + item = (pageIndex == this.currentPage) ? '<li class="uk-active"><span>' + (options.text) + '</span></li>' + : '<li><a href="#page-'+(pageIndex+1)+'" data-page="'+pageIndex+'">'+options.text+'</a></li>'; + + this.element.append(item); + } + }); + + return UI.pagination; +}); diff --git a/media/uikit/js/components/pagination.min.js b/media/uikit/js/components/pagination.min.js new file mode 100644 index 00000000..220310b6 --- /dev/null +++ b/media/uikit/js/components/pagination.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-pagination",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";return t.component("pagination",{defaults:{items:1,itemsOnPage:1,pages:0,displayedPages:3,edges:3,currentPage:1,lblPrev:!1,lblNext:!1,onSelectPage:function(){}},boot:function(){t.ready(function(e){t.$("[data-uk-pagination]",e).each(function(){var e=t.$(this);if(!e.data("pagination")){t.pagination(e,t.Utils.options(e.attr("data-uk-pagination")))}})})},init:function(){var e=this;this.pages=this.options.pages?this.options.pages:Math.ceil(this.options.items/this.options.itemsOnPage)?Math.ceil(this.options.items/this.options.itemsOnPage):1,this.currentPage=this.options.currentPage-1,this.halfDisplayed=this.options.displayedPages/2,this.on("click","a[data-page]",function(i){i.preventDefault(),e.selectPage(t.$(this).data("page"))}),this._render()},_getInterval:function(){return{start:Math.ceil(this.currentPage>this.halfDisplayed?Math.max(Math.min(this.currentPage-this.halfDisplayed,this.pages-this.options.displayedPages),0):0),end:Math.ceil(this.currentPage>this.halfDisplayed?Math.min(this.currentPage+this.halfDisplayed,this.pages):Math.min(this.options.displayedPages,this.pages))}},render:function(t){this.pages=t?t:this.pages,this._render()},selectPage:function(t,e){this.currentPage=t,this.render(e),this.options.onSelectPage.apply(this,[t]),this.trigger("select.uk.pagination",[t,this])},_render:function(){var t,e=this.options,i=this._getInterval();if(this.element.empty(),e.lblPrev&&this._append(e.currentPage-1,{text:e.lblPrev}),i.start>0&&e.edges>0){var s=Math.min(e.edges,i.start);for(t=0;s>t;t++)this._append(t);e.edges<i.start&&i.start-e.edges!=1?this.element.append("<li><span>...</span></li>"):i.start-e.edges==1&&this._append(e.edges)}for(t=i.start;t<i.end;t++)this._append(t);if(i.end<this.pages&&e.edges>0){this.pages-e.edges>i.end&&this.pages-e.edges-i.end!=1?this.element.append("<li><span>...</span></li>"):this.pages-e.edges-i.end==1&&this._append(i.end++);var a=Math.max(this.pages-e.edges,i.end);for(t=a;t<this.pages;t++)this._append(t)}e.lblNext&&this._append(e.currentPage+1,{text:e.lblNext})},_append:function(e,i){var s,a;e=0>e?0:e<this.pages?e:this.pages-1,a=t.$.extend({text:e+1},i),s=e==this.currentPage?'<li class="uk-active"><span>'+a.text+"</span></li>":'<li><a href="#page-'+(e+1)+'" data-page="'+e+'">'+a.text+"</a></li>",this.element.append(s)}}),t.pagination}); \ No newline at end of file diff --git a/media/uikit/js/components/parallax.js b/media/uikit/js/components/parallax.js new file mode 100644 index 00000000..31750270 --- /dev/null +++ b/media/uikit/js/components/parallax.js @@ -0,0 +1,417 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-parallax", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + var parallaxes = [], + supports3d = false, + scrolltop = 0, + wh = window.innerHeight, + checkParallaxes = function() { + + scrolltop = UI.$win.scrollTop(); + + window.requestAnimationFrame.apply(window, [function(){ + for (var i=0; i < parallaxes.length; i++) { + parallaxes[i].process(); + } + }]); + }; + + + UI.component('parallax', { + + defaults: { + velocity : 0.5, + target : false, + viewport : false, + media : false + }, + + boot: function() { + + supports3d = (function(){ + + var el = document.createElement('div'), + has3d, + transforms = { + 'WebkitTransform':'-webkit-transform', + 'MSTransform':'-ms-transform', + 'MozTransform':'-moz-transform', + 'Transform':'transform' + }; + + // Add it to the body to get the computed style. + document.body.insertBefore(el, null); + + for (var t in transforms) { + if (el.style[t] !== undefined) { + el.style[t] = "translate3d(1px,1px,1px)"; + has3d = window.getComputedStyle(el).getPropertyValue(transforms[t]); + } + } + + document.body.removeChild(el); + + return (has3d !== undefined && has3d.length > 0 && has3d !== "none"); + })(); + + // listen to scroll and resize + UI.$doc.on("scrolling.uk.document", checkParallaxes); + UI.$win.on("load resize orientationchange", UI.Utils.debounce(function(){ + wh = window.innerHeight; + checkParallaxes(); + }, 50)); + + // init code + UI.ready(function(context) { + + UI.$('[data-uk-parallax]', context).each(function() { + + var parallax = UI.$(this); + + if (!parallax.data("parallax")) { + var obj = UI.parallax(parallax, UI.Utils.options(parallax.attr("data-uk-parallax"))); + } + }); + }); + }, + + init: function() { + + this.base = this.options.target ? UI.$(this.options.target) : this.element; + this.props = {}; + this.velocity = (this.options.velocity || 1); + + var reserved = ['target','velocity','viewport','plugins','media']; + + Object.keys(this.options).forEach(function(prop){ + + if (reserved.indexOf(prop) !== -1) { + return; + } + + var start, end, dir, diff, startend = String(this.options[prop]).split(','); + + if (prop.match(/color/i)) { + start = startend[1] ? startend[0] : this._getStartValue(prop), + end = startend[1] ? startend[1] : startend[0]; + + if (!start) { + start = 'rgba(255,255,255,0)'; + } + + } else { + start = parseFloat(startend[1] ? startend[0] : this._getStartValue(prop)), + end = parseFloat(startend[1] ? startend[1] : startend[0]); + diff = (start < end ? (end-start):(start-end)); + dir = (start < end ? 1:-1); + } + + this.props[prop] = { 'start': start, 'end': end, 'dir': dir, 'diff': diff }; + + }.bind(this)); + + parallaxes.push(this); + }, + + process: function() { + + if (this.options.media) { + + switch(typeof(this.options.media)) { + case 'number': + if (window.innerWidth < this.options.media) { + return false; + } + break; + case 'string': + if (window.matchMedia && !window.matchMedia(this.options.media).matches) { + return false; + } + break; + } + } + + var percent = this.percentageInViewport(); + + if (this.options.viewport !== false) { + percent = (this.options.viewport === 0) ? 1 : percent / this.options.viewport; + } + + this.update(percent); + }, + + percentageInViewport: function() { + + var top = this.base.offset().top, + height = this.base.outerHeight(), + distance, percentage, percent; + + if (top > (scrolltop + wh)) { + percent = 0; + } else if ((top + height) < scrolltop) { + percent = 1; + } else { + + if ((top + height) < wh) { + + percent = (scrolltop < wh ? scrolltop : scrolltop - wh) / (top+height); + + } else { + + distance = (scrolltop + wh) - top; + percentage = Math.round(distance / ((wh + height) / 100)); + percent = percentage/100; + } + } + + return percent; + }, + + update: function(percent) { + + var css = {'transform':''}, + compercent = percent * (1 - (this.velocity - (this.velocity * percent))), + opts, val; + + if (compercent < 0) compercent = 0; + if (compercent > 1) compercent = 1; + + if (this._percent !== undefined && this._percent == compercent) { + return; + } + + Object.keys(this.props).forEach(function(prop) { + + opts = this.props[prop]; + + if (percent === 0) { + val = opts.start; + } else if(percent === 1) { + val = opts.end; + } else if(opts.diff !== undefined) { + val = opts.start + (opts.diff * compercent * opts.dir); + } + + if ((prop == 'bg' || prop == 'bgp') && !this._bgcover) { + this._bgcover = initBgImageParallax(this, prop, opts); + } + + switch(prop) { + + // transforms + case "x": + css.transform += supports3d ? ' translate3d('+val+'px, 0, 0)':' translateX('+val+'px)'; + break; + case "xp": + css.transform += supports3d ? ' translate3d('+val+'%, 0, 0)':' translateX('+val+'%)'; + break; + case "y": + css.transform += supports3d ? ' translate3d(0, '+val+'px, 0)':' translateY('+val+'px)'; + break; + case "yp": + css.transform += supports3d ? ' translate3d(0, '+val+'%, 0)':' translateY('+val+'%)'; + break; + case "rotate": + css.transform += ' rotate('+val+'deg)'; + break; + case "scale": + css.transform += ' scale('+val+')'; + break; + + // bg image + case "bg": + css['background-position'] = '50% '+val+'px'; + break; + case "bgp": + css['background-position'] = '50% '+val+'%'; + break; + + // color + case "color": + case "background-color": + case "border-color": + css[prop] = calcColor(opts.start, opts.end, compercent); + break; + + default: + css[prop] = val; + break; + } + + }.bind(this)); + + this.element.css(css); + + this._percent = compercent; + }, + + _getStartValue: function(prop) { + + var value = 0; + + switch(prop) { + case 'scale': + value = 1; + break; + default: + value = this.element.css(prop); + } + + return (value || 0); + } + + }); + + + // helper + + function initBgImageParallax(obj, prop, opts) { + + var img = new Image(), url, loaded, element, size, check, ratio, width, height; + + element = obj.element.css({'background-size': 'cover', 'background-repeat': 'no-repeat'}); + url = element.css('background-image').replace(/^url\(/g, '').replace(/\)$/g, '').replace(/("|')/g, ''); + check = function() { + + var w = element.width(), h = element.height(), extra = (prop=='bg') ? opts.diff : (opts.diff/100) * h; + + h += extra; + w += Math.ceil(extra * ratio); + + // if element height < parent height (gap underneath) + if ((w / ratio) < h) { + width = Math.ceil(h * ratio); + height = h; + + // element width < parent width (gap to right) + } else { + width = w; + height = Math.ceil(w / ratio); + } + + obj.element.css({'background-size': (width+'px '+height+'px')}); + }; + + img.onerror = function(){ + // image url doesn't exist + }; + + img.onload = function(){ + size = {w:img.width, height:img.height}; + ratio = img.width / img.height; + + UI.$win.on("load resize orientationchange", UI.Utils.debounce(function(){ + check(); + }, 50)); + + check(); + }; + + img.src = url; + + return true; + } + + + // Some named colors to work with, added by Bradley Ayers + // From Interface by Stefan Petre + // http://interface.eyecon.ro/ + var colors = { + 'black': [0,0,0,1], + 'blue': [0,0,255,1], + 'brown': [165,42,42,1], + 'cyan': [0,255,255,1], + 'fuchsia': [255,0,255,1], + 'gold': [255,215,0,1], + 'green': [0,128,0,1], + 'indigo': [75,0,130,1], + 'khaki': [240,230,140,1], + 'lime': [0,255,0,1], + 'magenta': [255,0,255,1], + 'maroon': [128,0,0,1], + 'navy': [0,0,128,1], + 'olive': [128,128,0,1], + 'orange': [255,165,0,1], + 'pink': [255,192,203,1], + 'purple': [128,0,128,1], + 'violet': [128,0,128,1], + 'red': [255,0,0,1], + 'silver': [192,192,192,1], + 'white': [255,255,255,1], + 'yellow': [255,255,0,1], + 'transparent': [255,255,255,0] + }; + + function calcColor(start, end, pos) { + + start = parseColor(start); + end = parseColor(end); + pos = pos || 0; + + return calculateColor(start, end, pos); + } + + /**! + * @preserve Color animation 1.6.0 + * http://www.bitstorm.org/jquery/color-animation/ + * Copyright 2011, 2013 Edwin Martin <edwin@bitstorm.org> + * Released under the MIT and GPL licenses. + */ + + // Calculate an in-between color. Returns "#aabbcc"-like string. + function calculateColor(begin, end, pos) { + var color = 'rgba(' + + parseInt((begin[0] + pos * (end[0] - begin[0])), 10) + ',' + + parseInt((begin[1] + pos * (end[1] - begin[1])), 10) + ',' + + parseInt((begin[2] + pos * (end[2] - begin[2])), 10) + ',' + + (begin && end ? parseFloat(begin[3] + pos * (end[3] - begin[3])) : 1); + + color += ')'; + return color; + } + + // Parse an CSS-syntax color. Outputs an array [r, g, b] + function parseColor(color) { + + var match, quadruplet; + + // Match #aabbcc + if (match = /#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/.exec(color)) { + quadruplet = [parseInt(match[1], 16), parseInt(match[2], 16), parseInt(match[3], 16), 1]; + + // Match #abc + } else if (match = /#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/.exec(color)) { + quadruplet = [parseInt(match[1], 16) * 17, parseInt(match[2], 16) * 17, parseInt(match[3], 16) * 17, 1]; + + // Match rgb(n, n, n) + } else if (match = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color)) { + quadruplet = [parseInt(match[1]), parseInt(match[2]), parseInt(match[3]), 1]; + + } else if (match = /rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9\.]*)\s*\)/.exec(color)) { + quadruplet = [parseInt(match[1], 10), parseInt(match[2], 10), parseInt(match[3], 10),parseFloat(match[4])]; + + // No browser returns rgb(n%, n%, n%), so little reason to support this format. + } else { + quadruplet = colors[color] || [255,255,255,0]; + } + return quadruplet; + } + + return UI.parallax; +}); diff --git a/media/uikit/js/components/parallax.min.js b/media/uikit/js/components/parallax.min.js new file mode 100644 index 00000000..9964ffaf --- /dev/null +++ b/media/uikit/js/components/parallax.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-parallax",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";function e(e,a,r){var n,i,o,s,c,p,l,d=new Image;return i=e.element.css({"background-size":"cover","background-repeat":"no-repeat"}),n=i.css("background-image").replace(/^url\(/g,"").replace(/\)$/g,"").replace(/("|')/g,""),s=function(){var t=i.width(),n=i.height(),o="bg"==a?r.diff:r.diff/100*n;n+=o,t+=Math.ceil(o*c),n>t/c?(p=Math.ceil(n*c),l=n):(p=t,l=Math.ceil(t/c)),e.element.css({"background-size":p+"px "+l+"px"})},d.onerror=function(){},d.onload=function(){o={w:d.width,height:d.height},c=d.width/d.height,t.$win.on("load resize orientationchange",t.Utils.debounce(function(){s()},50)),s()},d.src=n,!0}function a(t,e,a){return t=n(t),e=n(e),a=a||0,r(t,e,a)}function r(t,e,a){var r="rgba("+parseInt(t[0]+a*(e[0]-t[0]),10)+","+parseInt(t[1]+a*(e[1]-t[1]),10)+","+parseInt(t[2]+a*(e[2]-t[2]),10)+","+(t&&e?parseFloat(t[3]+a*(e[3]-t[3])):1);return r+=")"}function n(t){var e,a;return a=(e=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/.exec(t))?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),1]:(e=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/.exec(t))?[17*parseInt(e[1],16),17*parseInt(e[2],16),17*parseInt(e[3],16),1]:(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(t))?[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),1]:(e=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9\.]*)\s*\)/.exec(t))?[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])]:l[t]||[255,255,255,0]}var i=[],o=!1,s=0,c=window.innerHeight,p=function(){s=t.$win.scrollTop(),window.requestAnimationFrame.apply(window,[function(){for(var t=0;t<i.length;t++)i[t].process()}])};t.component("parallax",{defaults:{velocity:.5,target:!1,viewport:!1,media:!1},boot:function(){o=function(){var t,e=document.createElement("div"),a={WebkitTransform:"-webkit-transform",MSTransform:"-ms-transform",MozTransform:"-moz-transform",Transform:"transform"};document.body.insertBefore(e,null);for(var r in a)void 0!==e.style[r]&&(e.style[r]="translate3d(1px,1px,1px)",t=window.getComputedStyle(e).getPropertyValue(a[r]));return document.body.removeChild(e),void 0!==t&&t.length>0&&"none"!==t}(),t.$doc.on("scrolling.uk.document",p),t.$win.on("load resize orientationchange",t.Utils.debounce(function(){c=window.innerHeight,p()},50)),t.ready(function(e){t.$("[data-uk-parallax]",e).each(function(){var e=t.$(this);if(!e.data("parallax")){t.parallax(e,t.Utils.options(e.attr("data-uk-parallax")))}})})},init:function(){this.base=this.options.target?t.$(this.options.target):this.element,this.props={},this.velocity=this.options.velocity||1;var e=["target","velocity","viewport","plugins","media"];Object.keys(this.options).forEach(function(t){if(-1===e.indexOf(t)){var a,r,n,i,o=String(this.options[t]).split(",");t.match(/color/i)?(a=o[1]?o[0]:this._getStartValue(t),r=o[1]?o[1]:o[0],a||(a="rgba(255,255,255,0)")):(a=parseFloat(o[1]?o[0]:this._getStartValue(t)),r=parseFloat(o[1]?o[1]:o[0]),i=r>a?r-a:a-r,n=r>a?1:-1),this.props[t]={start:a,end:r,dir:n,diff:i}}}.bind(this)),i.push(this)},process:function(){if(this.options.media)switch(typeof this.options.media){case"number":if(window.innerWidth<this.options.media)return!1;break;case"string":if(window.matchMedia&&!window.matchMedia(this.options.media).matches)return!1}var t=this.percentageInViewport();this.options.viewport!==!1&&(t=0===this.options.viewport?1:t/this.options.viewport),this.update(t)},percentageInViewport:function(){var t,e,a,r=this.base.offset().top,n=this.base.outerHeight();return r>s+c?a=0:s>r+n?a=1:c>r+n?a=(c>s?s:s-c)/(r+n):(t=s+c-r,e=Math.round(t/((c+n)/100)),a=e/100),a},update:function(t){var r,n,i={transform:""},s=t*(1-(this.velocity-this.velocity*t));0>s&&(s=0),s>1&&(s=1),(void 0===this._percent||this._percent!=s)&&(Object.keys(this.props).forEach(function(c){switch(r=this.props[c],0===t?n=r.start:1===t?n=r.end:void 0!==r.diff&&(n=r.start+r.diff*s*r.dir),"bg"!=c&&"bgp"!=c||this._bgcover||(this._bgcover=e(this,c,r)),c){case"x":i.transform+=o?" translate3d("+n+"px, 0, 0)":" translateX("+n+"px)";break;case"xp":i.transform+=o?" translate3d("+n+"%, 0, 0)":" translateX("+n+"%)";break;case"y":i.transform+=o?" translate3d(0, "+n+"px, 0)":" translateY("+n+"px)";break;case"yp":i.transform+=o?" translate3d(0, "+n+"%, 0)":" translateY("+n+"%)";break;case"rotate":i.transform+=" rotate("+n+"deg)";break;case"scale":i.transform+=" scale("+n+")";break;case"bg":i["background-position"]="50% "+n+"px";break;case"bgp":i["background-position"]="50% "+n+"%";break;case"color":case"background-color":case"border-color":i[c]=a(r.start,r.end,s);break;default:i[c]=n}}.bind(this)),this.element.css(i),this._percent=s)},_getStartValue:function(t){var e=0;switch(t){case"scale":e=1;break;default:e=this.element.css(t)}return e||0}});var l={black:[0,0,0,1],blue:[0,0,255,1],brown:[165,42,42,1],cyan:[0,255,255,1],fuchsia:[255,0,255,1],gold:[255,215,0,1],green:[0,128,0,1],indigo:[75,0,130,1],khaki:[240,230,140,1],lime:[0,255,0,1],magenta:[255,0,255,1],maroon:[128,0,0,1],navy:[0,0,128,1],olive:[128,128,0,1],orange:[255,165,0,1],pink:[255,192,203,1],purple:[128,0,128,1],violet:[128,0,128,1],red:[255,0,0,1],silver:[192,192,192,1],white:[255,255,255,1],yellow:[255,255,0,1],transparent:[255,255,255,0]};return t.parallax}); \ No newline at end of file diff --git a/media/uikit/js/components/search.js b/media/uikit/js/components/search.js new file mode 100644 index 00000000..8de251c5 --- /dev/null +++ b/media/uikit/js/components/search.js @@ -0,0 +1,92 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-search", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + UI.component('search', { + defaults: { + msgResultsHeader : 'Search Results', + msgMoreResults : 'More Results', + msgNoResults : 'No results found', + template : '<ul class="uk-nav uk-nav-search uk-autocomplete-results">\ + {{#msgResultsHeader}}<li class="uk-nav-header uk-skip">{{msgResultsHeader}}</li>{{/msgResultsHeader}}\ + {{#items && items.length}}\ + {{~items}}\ + <li data-url="{{!$item.url}}">\ + <a href="{{!$item.url}}">\ + {{{$item.title}}}\ + {{#$item.text}}<div>{{{$item.text}}}</div>{{/$item.text}}\ + </a>\ + </li>\ + {{/items}}\ + {{#msgMoreResults}}\ + <li class="uk-nav-divider uk-skip"></li>\ + <li class="uk-search-moreresults" data-moreresults="true"><a href="#" onclick="jQuery(this).closest(\'form\').submit();">{{msgMoreResults}}</a></li>\ + {{/msgMoreResults}}\ + {{/end}}\ + {{^items.length}}\ + {{#msgNoResults}}<li class="uk-skip"><a>{{msgNoResults}}</a></li>{{/msgNoResults}}\ + {{/end}}\ + </ul>', + + renderer: function(data) { + + var $this = this, opts = this.options; + + this.dropdown.append(this.template({"items":data.results || [], "msgResultsHeader":opts.msgResultsHeader, "msgMoreResults": opts.msgMoreResults, "msgNoResults": opts.msgNoResults})); + this.show(); + } + }, + + boot: function() { + + // init code + UI.$html.on("focus.search.uikit", "[data-uk-search]", function(e) { + var ele =UI.$(this); + + if (!ele.data("search")) { + var obj = UI.search(ele, UI.Utils.options(ele.attr("data-uk-search"))); + } + }); + }, + + init: function() { + var $this = this; + + this.autocomplete = UI.autocomplete(this.element, this.options); + + this.autocomplete.dropdown.addClass('uk-dropdown-search'); + + this.autocomplete.input.on("keyup", function(){ + $this.element[$this.autocomplete.input.val() ? "addClass":"removeClass"]("uk-active"); + }).closest("form").on("reset", function(){ + $this.value=""; + $this.element.removeClass("uk-active"); + }); + + this.on('selectitem.uk.autocomplete', function(e, data) { + if (data.url) { + location.href = data.url; + } else if(data.moreresults) { + $this.autocomplete.input.closest('form').submit(); + } + }); + + this.element.data("search", this); + } + }); +}); diff --git a/media/uikit/js/components/search.min.js b/media/uikit/js/components/search.min.js new file mode 100644 index 00000000..09fedd7f --- /dev/null +++ b/media/uikit/js/components/search.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(e){var s;window.UIkit&&(s=e(UIkit)),"function"==typeof define&&define.amd&&define("uikit-search",["uikit"],function(){return s||e(UIkit)})}(function(e){"use strict";e.component("search",{defaults:{msgResultsHeader:"Search Results",msgMoreResults:"More Results",msgNoResults:"No results found",template:'<ul class="uk-nav uk-nav-search uk-autocomplete-results"> {{#msgResultsHeader}}<li class="uk-nav-header uk-skip">{{msgResultsHeader}}</li>{{/msgResultsHeader}} {{#items && items.length}} {{~items}} <li data-url="{{!$item.url}}"> <a href="{{!$item.url}}"> {{{$item.title}}} {{#$item.text}}<div>{{{$item.text}}}</div>{{/$item.text}} </a> </li> {{/items}} {{#msgMoreResults}} <li class="uk-nav-divider uk-skip"></li> <li class="uk-search-moreresults" data-moreresults="true"><a href="#" onclick="jQuery(this).closest(\'form\').submit();">{{msgMoreResults}}</a></li> {{/msgMoreResults}} {{/end}} {{^items.length}} {{#msgNoResults}}<li class="uk-skip"><a>{{msgNoResults}}</a></li>{{/msgNoResults}} {{/end}} </ul>',renderer:function(e){var s=this.options;this.dropdown.append(this.template({items:e.results||[],msgResultsHeader:s.msgResultsHeader,msgMoreResults:s.msgMoreResults,msgNoResults:s.msgNoResults})),this.show()}},boot:function(){e.$html.on("focus.search.uikit","[data-uk-search]",function(){var s=e.$(this);if(!s.data("search")){e.search(s,e.Utils.options(s.attr("data-uk-search")))}})},init:function(){var s=this;this.autocomplete=e.autocomplete(this.element,this.options),this.autocomplete.dropdown.addClass("uk-dropdown-search"),this.autocomplete.input.on("keyup",function(){s.element[s.autocomplete.input.val()?"addClass":"removeClass"]("uk-active")}).closest("form").on("reset",function(){s.value="",s.element.removeClass("uk-active")}),this.on("selectitem.uk.autocomplete",function(e,t){t.url?location.href=t.url:t.moreresults&&s.autocomplete.input.closest("form").submit()}),this.element.data("search",this)}})}); \ No newline at end of file diff --git a/media/uikit/js/components/slider.js b/media/uikit/js/components/slider.js new file mode 100644 index 00000000..dc77cd48 --- /dev/null +++ b/media/uikit/js/components/slider.js @@ -0,0 +1,482 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-slider", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + var dragging, delayIdle, anchor, dragged, store = {}; + + UI.component('slider', { + + defaults: { + center : false, + threshold : 10, + infinite : true, + activecls : 'uk-active' + }, + + boot: function() { + + // init code + UI.ready(function(context) { + + setTimeout(function(){ + + UI.$("[data-uk-slider]", context).each(function(){ + + var ele = UI.$(this); + + if (!ele.data("slider")) { + UI.slider(ele, UI.Utils.options(ele.attr('data-uk-slider'))); + } + }); + + }, 0); + }); + }, + + init: function() { + + var $this = this; + + this.container = this.element.find('.uk-slider'); + this.focus = 0; + + UI.$win.on("resize load", UI.Utils.debounce(function() { + $this.resize(true); + }, 100)); + + this.on("click.uikit.slider", '[data-uk-slider-item]', function(e) { + + e.preventDefault(); + + var item = UI.$(this).attr('data-uk-slider-item'); + + if ($this.focus == item) return; + + switch(item) { + case 'next': + case 'previous': + $this[item=='next' ? 'next':'previous'](); + break; + default: + $this.updateFocus(parseInt(slide, 10)); + } + }); + + this.container.on('touchstart mousedown', function(evt) { + + if (evt.originalEvent && evt.originalEvent.touches) { + evt = evt.originalEvent.touches[0]; + } + + // ignore right click button + if (evt.button && evt.button==2 || !$this.active) { + return; + } + + anchor = UI.$(evt.target).is('a') ? UI.$(evt.target) : UI.$(evt.target).parents('a:first'); + dragged = false; + + if (anchor.length) { + + anchor.one('click', function(e){ + if (dragged) e.preventDefault(); + }); + } + + delayIdle = function(e) { + + dragged = true; + dragging = $this; + store = { + touchx : parseInt(e.pageX, 10), + dir : 1, + focus : $this.focus, + base : $this.options.center ? 'center':'area' + }; + + if (e.originalEvent && e.originalEvent.touches) { + e = e.originalEvent.touches[0]; + } + + dragging.element.data({ + 'pointer-start': {x: parseInt(e.pageX, 10), y: parseInt(e.pageY, 10)}, + 'pointer-pos-start': $this.pos + }); + + $this.container.addClass('uk-drag'); + + delayIdle = false; + }; + + delayIdle.x = parseInt(evt.pageX, 10); + delayIdle.threshold = $this.options.threshold; + + }); + + this.resize(true); + + this.on('display.uk.check', function(){ + if ($this.element.is(":visible")) { + $this.resize(true); + } + }); + + // prevent dragging links + images + this.element.find('a,img').attr('draggable', 'false'); + }, + + resize: function(focus) { + + var $this = this, pos = 0, maxheight = 0, item, width, cwidth, size; + + this.items = this.container.children().filter(':visible'); + this.vp = this.element[0].getBoundingClientRect().width; + + this.container.css({'min-width': '', 'min-height': ''}); + + this.items.each(function(idx){ + + item = UI.$(this); + size = item.css({'left': '', 'width':''})[0].getBoundingClientRect(); + width = size.width; + cwidth = item.width(); + maxheight = Math.max(maxheight, size.height); + + item.css({'left': pos, 'width':width}).data({'idx':idx, 'left': pos, 'width': width, 'cwidth':cwidth, 'area': (pos+width), 'center':(pos - ($this.vp/2 - cwidth/2))}); + + pos += width; + }); + + this.container.css({'min-width': pos, 'min-height': maxheight}); + + if (this.options.infinite && pos <= (2*this.vp) && !this.itemsResized) { + + // fill with cloned items + this.container.children().each(function(idx){ + $this.container.append($this.items.eq(idx).clone(true).attr('id', '')); + }).each(function(idx){ + $this.container.append($this.items.eq(idx).clone(true).attr('id', '')); + }); + + this.itemsResized = true; + + return this.resize(); + } + + this.cw = pos; + this.pos = 0; + this.active = pos >= this.vp; + + this.container.css({ + '-ms-transform': '', + '-webkit-transform': '', + 'transform': '' + }); + + this.updateFocus(0); + }, + + updatePos: function(pos) { + this.pos = pos; + this.container.css({ + '-ms-transform': 'translateX('+pos+'px)', + '-webkit-transform': 'translateX('+pos+'px)', + 'transform': 'translateX('+pos+'px)' + }); + }, + + updateFocus: function(idx, dir) { + + if (!this.active) { + return; + } + + dir = dir || (idx > this.focus ? 1:-1); + + var $this = this, item = this.items.eq(idx), area, i; + + if (this.options.infinite) { + this.infinite(idx, dir); + } + + if (this.options.center) { + + this.updatePos(item.data('center')*-1); + + this.items.filter('.'+this.options.activecls).removeClass(this.options.activecls); + item.addClass(this.options.activecls); + + } else { + + if (this.options.infinite) { + + this.updatePos(item.data('left')*-1); + + } else { + + area = 0; + + for (i=idx;i<this.items.length;i++) { + area += this.items.eq(i).data('width'); + } + + + if (area > this.vp) { + + this.updatePos(item.data('left')*-1); + + } else { + + if (dir == 1) { + + area = 0; + + for (i=this.items.length-1;i>=0;i--) { + + area += this.items.eq(i).data('width'); + + if (area >= this.vp) { + idx = i; + break; + } + } + + this.updatePos(this.items.eq(idx).data('left')*-1); + } + } + } + } + + this.focus = idx; + + this.trigger('focusitem.uk.slider', [idx,this.items.eq(idx),this]); + }, + + next: function() { + + var focus = this.items[this.focus + 1] ? (this.focus + 1) : (this.options.infinite ? 0:this.focus); + + this.updateFocus(focus, 1); + }, + + previous: function() { + + var focus = this.items[this.focus - 1] ? (this.focus - 1) : (this.options.infinite ? (this.items[this.focus - 1] ? this.items-1:this.items.length-1):this.focus); + + this.updateFocus(focus, -1); + }, + + infinite: function(baseidx, direction) { + + var $this = this, item = this.items.eq(baseidx), i, z = baseidx, move = [], lastvisible, area = 0; + + if (direction == 1) { + + + for (i=0;i<this.items.length;i++) { + + if (z != baseidx) { + area += this.items.eq(z).data('width'); + move.push(this.items.eq(z)); + } + + if (area > this.vp) { + break; + } + + z = z+1 == this.items.length ? 0:z+1; + } + + if (move.length) { + + move.forEach(function(itm){ + + var left = item.data('area'); + + itm.css({'left': left}).data({ + 'left' : left, + 'area' : (left+itm.data('width')), + 'center': (left - ($this.vp/2 - itm.data('cwidth')/2)) + }); + + item = itm; + }); + } + + + } else { + + for (i=this.items.length-1;i >-1 ;i--) { + + area += this.items.eq(z).data('width'); + + if (z != baseidx) { + move.push(this.items.eq(z)); + } + + if (area > this.vp) { + break; + } + + z = z-1 == -1 ? this.items.length-1:z-1; + } + + if (move.length) { + + move.forEach(function(itm){ + + var left = item.data('left') - itm.data('width'); + + itm.css({'left': left}).data({ + 'left' : left, + 'area' : (left+itm.data('width')), + 'center': (left - ($this.vp/2 - itm.data('cwidth')/2)) + }); + + item = itm; + }); + } + } + } + }); + + // handle dragging + UI.$doc.on('mousemove.uikit.slider touchmove.uikit.slider', function(e) { + + if (e.originalEvent && e.originalEvent.touches) { + e = e.originalEvent.touches[0]; + } + + if (delayIdle && Math.abs(e.pageX - delayIdle.x) > delayIdle.threshold) { + + if (!window.getSelection().toString()) { + delayIdle(e); + } else { + dragging = delayIdle = false; + } + } + + if (!dragging) { + return; + } + + var x, xDiff, pos, dir, focus, item, next, diff, i, z, itm; + + if (e.clientX || e.clientY) { + x = e.clientX; + } else if (e.pageX || e.pageY) { + x = e.pageX - document.body.scrollLeft - document.documentElement.scrollLeft; + } + + focus = store.focus; + xDiff = x - dragging.element.data('pointer-start').x; + pos = dragging.element.data('pointer-pos-start') + xDiff; + dir = x > dragging.element.data('pointer-start').x ? -1:1; + item = dragging.items.eq(store.focus); + + if (dir == 1) { + + diff = item.data('left') + Math.abs(xDiff); + + for (i=0,z=store.focus;i<dragging.items.length;i++) { + + itm = dragging.items.eq(z); + + if (z != store.focus && itm.data('left') < diff && itm.data('area') > diff) { + focus = z; + break; + } + + z = z+1 == dragging.items.length ? 0:z+1; + } + + } else { + + diff = item.data('left') - Math.abs(xDiff); + + for (i=0,z=store.focus;i<dragging.items.length;i++) { + + itm = dragging.items.eq(z); + + if (z != store.focus && itm.data('area') <= item.data('left') && itm.data('center') < diff) { + focus = z; + break; + } + + z = z-1 == -1 ? dragging.items.length-1:z-1; + } + } + + if (dragging.options.infinite && focus!=store._focus) { + dragging.infinite(focus, dir); + } + + dragging.updatePos(pos); + + store.dir = dir; + store._focus = focus; + store.touchx = parseInt(e.pageX, 10); + store.diff = diff; + }); + + UI.$doc.on('mouseup.uikit.slider touchend.uikit.slider', function(e) { + + if (dragging) { + + dragging.container.removeClass('uk-drag'); + + var item = dragging.items.eq(store.focus), itm, focus = false, i, z; + + if (store.dir == 1) { + + for (i=0,z=store.focus;i<dragging.items.length;i++) { + + itm = dragging.items.eq(z); + + if (z != store.focus && itm.data('left') > store.diff) { + focus = z; + break; + } + + z = z+1 == dragging.items.length ? 0:z+1; + } + + } else { + + for (i=0,z=store.focus;i<dragging.items.length;i++) { + + itm = dragging.items.eq(z); + + if (z != store.focus && itm.data('left') < store.diff) { + focus = z; + break; + } + + z = z-1 == -1 ? dragging.items.length-1:z-1; + } + } + + dragging.updateFocus(focus!==false ? focus:store._focus); + + } + + dragging = delayIdle = false; + }); + + return UI.slider; +}); diff --git a/media/uikit/js/components/slider.min.js b/media/uikit/js/components/slider.min.js new file mode 100644 index 00000000..5159096e --- /dev/null +++ b/media/uikit/js/components/slider.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var i;window.UIkit&&(i=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-slider",["uikit"],function(){return i||t(UIkit)})}(function(t){"use strict";var i,e,s,n,a={};return t.component("slider",{defaults:{center:!1,threshold:10,infinite:!0,activecls:"uk-active"},boot:function(){t.ready(function(i){setTimeout(function(){t.$("[data-uk-slider]",i).each(function(){var i=t.$(this);i.data("slider")||t.slider(i,t.Utils.options(i.attr("data-uk-slider")))})},0)})},init:function(){var o=this;this.container=this.element.find(".uk-slider"),this.focus=0,t.$win.on("resize load",t.Utils.debounce(function(){o.resize(!0)},100)),this.on("click.uikit.slider","[data-uk-slider-item]",function(i){i.preventDefault();var e=t.$(this).attr("data-uk-slider-item");if(o.focus!=e)switch(e){case"next":case"previous":o["next"==e?"next":"previous"]();break;default:o.updateFocus(parseInt(slide,10))}}),this.container.on("touchstart mousedown",function(h){h.originalEvent&&h.originalEvent.touches&&(h=h.originalEvent.touches[0]),h.button&&2==h.button||!o.active||(s=t.$(h.target).is("a")?t.$(h.target):t.$(h.target).parents("a:first"),n=!1,s.length&&s.one("click",function(t){n&&t.preventDefault()}),e=function(t){n=!0,i=o,a={touchx:parseInt(t.pageX,10),dir:1,focus:o.focus,base:o.options.center?"center":"area"},t.originalEvent&&t.originalEvent.touches&&(t=t.originalEvent.touches[0]),i.element.data({"pointer-start":{x:parseInt(t.pageX,10),y:parseInt(t.pageY,10)},"pointer-pos-start":o.pos}),o.container.addClass("uk-drag"),e=!1},e.x=parseInt(h.pageX,10),e.threshold=o.options.threshold)}),this.resize(!0),this.on("display.uk.check",function(){o.element.is(":visible")&&o.resize(!0)}),this.element.find("a,img").attr("draggable","false")},resize:function(){var i,e,s,n,a=this,o=0,h=0;return this.items=this.container.children().filter(":visible"),this.vp=this.element[0].getBoundingClientRect().width,this.container.css({"min-width":"","min-height":""}),this.items.each(function(r){i=t.$(this),n=i.css({left:"",width:""})[0].getBoundingClientRect(),e=n.width,s=i.width(),h=Math.max(h,n.height),i.css({left:o,width:e}).data({idx:r,left:o,width:e,cwidth:s,area:o+e,center:o-(a.vp/2-s/2)}),o+=e}),this.container.css({"min-width":o,"min-height":h}),this.options.infinite&&o<=2*this.vp&&!this.itemsResized?(this.container.children().each(function(t){a.container.append(a.items.eq(t).clone(!0).attr("id",""))}).each(function(t){a.container.append(a.items.eq(t).clone(!0).attr("id",""))}),this.itemsResized=!0,this.resize()):(this.cw=o,this.pos=0,this.active=o>=this.vp,this.container.css({"-ms-transform":"","-webkit-transform":"",transform:""}),this.updateFocus(0),void 0)},updatePos:function(t){this.pos=t,this.container.css({"-ms-transform":"translateX("+t+"px)","-webkit-transform":"translateX("+t+"px)",transform:"translateX("+t+"px)"})},updateFocus:function(t,i){if(this.active){i=i||(t>this.focus?1:-1);var e,s,n=this.items.eq(t);if(this.options.infinite&&this.infinite(t,i),this.options.center)this.updatePos(-1*n.data("center")),this.items.filter("."+this.options.activecls).removeClass(this.options.activecls),n.addClass(this.options.activecls);else if(this.options.infinite)this.updatePos(-1*n.data("left"));else{for(e=0,s=t;s<this.items.length;s++)e+=this.items.eq(s).data("width");if(e>this.vp)this.updatePos(-1*n.data("left"));else if(1==i){for(e=0,s=this.items.length-1;s>=0;s--)if(e+=this.items.eq(s).data("width"),e>=this.vp){t=s;break}this.updatePos(-1*this.items.eq(t).data("left"))}}this.focus=t,this.trigger("focusitem.uk.slider",[t,this.items.eq(t),this])}},next:function(){var t=this.items[this.focus+1]?this.focus+1:this.options.infinite?0:this.focus;this.updateFocus(t,1)},previous:function(){var t=this.items[this.focus-1]?this.focus-1:this.options.infinite?this.items[this.focus-1]?this.items-1:this.items.length-1:this.focus;this.updateFocus(t,-1)},infinite:function(t,i){var e,s=this,n=this.items.eq(t),a=t,o=[],h=0;if(1==i){for(e=0;e<this.items.length&&(a!=t&&(h+=this.items.eq(a).data("width"),o.push(this.items.eq(a))),!(h>this.vp));e++)a=a+1==this.items.length?0:a+1;o.length&&o.forEach(function(t){var i=n.data("area");t.css({left:i}).data({left:i,area:i+t.data("width"),center:i-(s.vp/2-t.data("cwidth")/2)}),n=t})}else{for(e=this.items.length-1;e>-1&&(h+=this.items.eq(a).data("width"),a!=t&&o.push(this.items.eq(a)),!(h>this.vp));e--)a=a-1==-1?this.items.length-1:a-1;o.length&&o.forEach(function(t){var i=n.data("left")-t.data("width");t.css({left:i}).data({left:i,area:i+t.data("width"),center:i-(s.vp/2-t.data("cwidth")/2)}),n=t})}}}),t.$doc.on("mousemove.uikit.slider touchmove.uikit.slider",function(t){if(t.originalEvent&&t.originalEvent.touches&&(t=t.originalEvent.touches[0]),e&&Math.abs(t.pageX-e.x)>e.threshold&&(window.getSelection().toString()?i=e=!1:e(t)),i){var s,n,o,h,r,c,f,d,u,l;if(t.clientX||t.clientY?s=t.clientX:(t.pageX||t.pageY)&&(s=t.pageX-document.body.scrollLeft-document.documentElement.scrollLeft),r=a.focus,n=s-i.element.data("pointer-start").x,o=i.element.data("pointer-pos-start")+n,h=s>i.element.data("pointer-start").x?-1:1,c=i.items.eq(a.focus),1==h)for(f=c.data("left")+Math.abs(n),d=0,u=a.focus;d<i.items.length;d++){if(l=i.items.eq(u),u!=a.focus&&l.data("left")<f&&l.data("area")>f){r=u;break}u=u+1==i.items.length?0:u+1}else for(f=c.data("left")-Math.abs(n),d=0,u=a.focus;d<i.items.length;d++){if(l=i.items.eq(u),u!=a.focus&&l.data("area")<=c.data("left")&&l.data("center")<f){r=u;break}u=u-1==-1?i.items.length-1:u-1}i.options.infinite&&r!=a._focus&&i.infinite(r,h),i.updatePos(o),a.dir=h,a._focus=r,a.touchx=parseInt(t.pageX,10),a.diff=f}}),t.$doc.on("mouseup.uikit.slider touchend.uikit.slider",function(){if(i){i.container.removeClass("uk-drag");var t,s,n,o=(i.items.eq(a.focus),!1);if(1==a.dir)for(s=0,n=a.focus;s<i.items.length;s++){if(t=i.items.eq(n),n!=a.focus&&t.data("left")>a.diff){o=n;break}n=n+1==i.items.length?0:n+1}else for(s=0,n=a.focus;s<i.items.length;s++){if(t=i.items.eq(n),n!=a.focus&&t.data("left")<a.diff){o=n;break}n=n-1==-1?i.items.length-1:n-1}i.updateFocus(o!==!1?o:a._focus)}i=e=!1}),t.slider}); \ No newline at end of file diff --git a/media/uikit/js/components/slideset.js b/media/uikit/js/components/slideset.js new file mode 100644 index 00000000..b6693d75 --- /dev/null +++ b/media/uikit/js/components/slideset.js @@ -0,0 +1,503 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-slideset", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + var Animations; + + UI.component('slideset', { + + defaults: { + default : 1, + animation : 'fade', + duration : 200, + filter : '', + delay : false, + controls : false, + autoplay : false, + autoplayInterval : 7000, + pauseOnHover : true + }, + + sets: [], + + boot: function() { + + // auto init + UI.ready(function(context) { + + UI.$("[data-uk-slideset]", context).each(function(){ + + var ele = UI.$(this); + + if(!ele.data("slideset")) { + var plugin = UI.slideset(ele, UI.Utils.options(ele.attr("data-uk-slideset"))); + } + }); + }); + }, + + init: function() { + + var $this = this; + + this.activeSet = false; + this.list = this.element.find('.uk-slideset'); + this.nav = this.element.find('.uk-slideset-nav'); + this.controls = this.options.controls ? UI.$(this.options.controls) : this.element; + + UI.$win.on("resize load", UI.Utils.debounce(function() { + $this.updateSets(); + }, 100)); + + $this.list.addClass('uk-grid-width-1-'+$this.options.default); + + ['xlarge', 'large', 'medium', 'small'].forEach(function(bp) { + + if (!$this.options[bp]) { + return; + } + + $this.list.addClass('uk-grid-width-'+bp+'-1-'+$this.options[bp]); + }); + + this.on("click.uikit.slideset", '[data-uk-slideset-item]', function(e) { + + e.preventDefault(); + + if ($this.animating) { + return; + } + + var set = UI.$(this).attr('data-uk-slideset-item'); + + if ($this.activeSet === set) return; + + switch(set) { + case 'next': + case 'previous': + $this[set=='next' ? 'next':'previous'](); + break; + default: + $this.show(parseInt(set, 10)); + } + + }); + + this.controls.on('click.uikit.slideset', '[data-uk-filter]', function(e) { + + var ele = UI.$(this); + + if (ele.parent().hasClass('uk-slideset')) { + return; + } + + e.preventDefault(); + + if ($this.animating || $this.currentFilter == ele.attr('data-uk-filter')) { + return; + } + + $this.updateFilter(ele.attr('data-uk-filter')); + + $this._hide().then(function(){ + + $this.updateSets(true, true); + }); + }); + + this.on('swipeRight swipeLeft', function(e) { + $this[e.type=='swipeLeft' ? 'next' : 'previous'](); + }); + + this.updateFilter(this.options.filter); + this.updateSets(); + + this.element.on({ + mouseenter: function() { if ($this.options.pauseOnHover) $this.hovering = true; }, + mouseleave: function() { $this.hovering = false; } + }); + + // Set autoplay + if (this.options.autoplay) { + this.start(); + } + }, + + updateSets: function(animate, force) { + + var $this = this, visible = this.visible, i; + + this.visible = this.getVisibleOnCurrenBreakpoint(); + + if (visible == this.visible && !force) { + return; + } + + this.children = this.list.children().hide(); + this.items = this.getItems(); + this.sets = array_chunk(this.items, this.visible); + + for (i=0;i<this.sets.length;i++) { + this.sets[i].css({'display': 'none'}); + } + + // update nav + if (this.nav.length && this.nav.empty()) { + + for (i=0;i<this.sets.length;i++) { + this.nav.append('<li data-uk-slideset-item="'+i+'"><a></a></li>'); + } + + this.nav[this.nav.children().length==1 ? 'addClass':'removeClass']('uk-invisible'); + } + + this.activeSet = false; + this.show(0, !animate); + }, + + updateFilter: function(currentfilter) { + + var $this = this, filter; + + this.currentFilter = currentfilter; + + this.controls.find('[data-uk-filter]').each(function(){ + + filter = UI.$(this); + + if (!filter.parent().hasClass('uk-slideset')) { + + if (filter.attr('data-uk-filter') == $this.currentFilter) { + filter.addClass('uk-active'); + } else { + filter.removeClass('uk-active'); + } + } + }); + }, + + getVisibleOnCurrenBreakpoint: function() { + + var breakpoint = null, + tmp = UI.$('<div style="position:absolute;height:1px;top:-1000px;width:100px"><div></div></div>').appendTo('body'), + testdiv = tmp.children().eq(0), + breakpoints = this.options; + + ['xlarge', 'large', 'medium', 'small'].forEach(function(bp) { + + if (!breakpoints[bp] || breakpoint) { + return; + } + + tmp.attr('class', 'uk-grid-width-'+bp+'-1-2').width(); + + if (testdiv.width() == 50) { + breakpoint = bp; + } + }); + + tmp.remove(); + + return this.options[breakpoint] || this.options['default']; + }, + + getItems: function() { + + var items = [], filter; + + if (this.currentFilter) { + + filter = this.currentFilter || []; + + if (typeof(filter) === 'string') { + filter = filter.split(/,/).map(function(item){ return item.trim(); }); + } + + this.children.each(function(index){ + + var ele = UI.$(this), f = ele.attr('data-uk-filter'), infilter = filter.length ? false : true; + + if (f) { + + f = f.split(/,/).map(function(item){ return item.trim(); }); + + filter.forEach(function(item){ + if (f.indexOf(item) > -1) infilter = true; + }); + } + + if(infilter) items.push(ele[0]); + }); + + items = UI.$(items); + + } else { + items = this.list.children(); + } + + return items; + }, + + show: function(setIndex, noanimate, dir) { + + var $this = this; + + if (this.activeSet === setIndex || this.animating) { + return; + } + + dir = dir || (setIndex < this.activeSet ? -1:1); + + var current = this.sets[this.activeSet] || [], + next = this.sets[setIndex], + animation = this._getAnimation(); + + if (noanimate || !UI.support.animation) { + animation = Animations.none; + } + + this.animating = true; + + if (this.nav.length) { + this.nav.children().removeClass('uk-active').eq(setIndex).addClass('uk-active'); + } + + animation.apply($this, [current, next, dir]).then(function(){ + + UI.Utils.checkDisplay(next, true); + + $this.children.hide().removeClass('uk-active'); + next.addClass('uk-active').css({'display': '', 'opacity':''}); + + $this.animating = false; + $this.activeSet = setIndex; + + UI.Utils.checkDisplay(next, true); + + $this.trigger('show.uk.slideset', [next]); + }); + + }, + + _getAnimation: function() { + + var $this = this, + animation = Animations[this.options.animation] || Animations.none; + + if (!UI.support.animation) { + animation = Animations.none; + } + + return animation; + }, + + _hide: function() { + + var $this = this, + current = this.sets[this.activeSet] || [], + animation = this._getAnimation(); + + this.animating = true; + + return animation.apply($this, [current, [], 1]).then(function(){ + $this.animating = false; + }); + }, + + next: function() { + this.show(this.sets[this.activeSet + 1] ? (this.activeSet + 1) : 0, false, 1); + }, + + previous: function() { + this.show(this.sets[this.activeSet - 1] ? (this.activeSet - 1) : (this.sets.length - 1), false, -1); + }, + + start: function() { + + this.stop(); + + var $this = this; + + this.interval = setInterval(function() { + if (!$this.hovering && !$this.animating) $this.next(); + }, this.options.autoplayInterval); + + }, + + stop: function() { + if (this.interval) clearInterval(this.interval); + } + }); + + Animations = { + + 'none': function() { + var d = UI.$.Deferred(); + d.resolve(); + return d.promise(); + }, + + 'fade': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-fade', current, next]); + }, + + 'slide-bottom': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-slide-bottom', current, next]); + }, + + 'slide-top': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-slide-top', current, next]); + }, + + 'slide-vertical': function(current, next, dir) { + + var anim = ['uk-animation-slide-top', 'uk-animation-slide-bottom']; + + if (dir == -1) { + anim.reverse(); + } + + return coreAnimation.apply(this, [anim, current, next]); + }, + + 'slide-horizontal': function(current, next, dir) { + + var anim = ['uk-animation-slide-right', 'uk-animation-slide-left']; + + if (dir == -1) { + anim.reverse(); + } + + return coreAnimation.apply(this, [anim, current, next, dir]); + }, + + 'scale': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-scale-up', current, next]); + } + }; + + UI.slideset.animations = Animations; + + // helpers + + function coreAnimation(cls, current, next, dir) { + + var d = UI.$.Deferred(), + delay = (this.options.delay === false) ? Math.floor(this.options.duration/2) : this.options.delay, + $this = this, clsIn, clsOut, release, i; + + dir = dir || 1; + + this.element.css('min-height', this.element.height()); + + if (next[0]===current[0]) { + d.resolve(); + return d.promise(); + } + + if (typeof(cls) == 'object') { + clsIn = cls[0]; + clsOut = cls[1] || cls[0]; + } else { + clsIn = cls; + clsOut = clsIn; + } + + release = function() { + + if (current && current.length) { + current.hide().removeClass(clsOut+' uk-animation-reverse').css({'opacity':'', 'animation-delay': '', 'animation':''}); + } + + if (!next.length) { + d.resolve(); + return; + } + + for (i=0;i<next.length;i++) { + next.eq(dir == 1 ? i:(next.length - i)-1).css('animation-delay', (i*delay)+'ms'); + } + + next.addClass(clsIn)[dir==1 ? 'last':'first']().one(UI.support.animation.end, function() { + + next.removeClass(''+clsIn+'').css({opacity:'', display:'', 'animation-delay':'', 'animation':''}); + d.resolve(); + $this.element.css('min-height', ''); + + }).end().css('display', ''); + }; + + if (next.length) { + next.css('animation-duration', this.options.duration+'ms'); + } + + if (current && current.length) { + + current.css('animation-duration', this.options.duration+'ms')[dir==1 ? 'last':'first']().one(UI.support.animation.end, function() { + release(); + }); + + for (i=0;i<current.length;i++) { + + (function (index, ele){ + + setTimeout(function(){ + ele.css('display', 'none').css('display', '').css('opacity', 0).addClass(clsOut+' uk-animation-reverse'); + }.bind(this), i * delay); + + })(i, current.eq(dir == 1 ? i:(current.length - i)-1)); + } + + } else { + release(); + } + + return d.promise(); + } + + function array_chunk(input, size) { + + var x, i = 0, c = -1, l = input.length || 0, n = []; + + if (size < 1) return null; + + while (i < l) { + + x = i % size; + + if(x) { + n[c][x] = input[i]; + } else { + n[++c] = [input[i]]; + } + + i++; + } + + i = 0; + l = n.length; + + while (i < l) { + n[i] = jQuery(n[i]); + i++; + } + + return n; + } + +}); diff --git a/media/uikit/js/components/slideset.min.js b/media/uikit/js/components/slideset.min.js new file mode 100644 index 00000000..0117b1a6 --- /dev/null +++ b/media/uikit/js/components/slideset.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var i;window.UIkit&&(i=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-slideset",["uikit"],function(){return i||t(UIkit)})}(function(t){"use strict";function i(i,e,s,n){var a,o,r,l,h=t.$.Deferred(),u=this.options.delay===!1?Math.floor(this.options.duration/2):this.options.delay,d=this;if(n=n||1,this.element.css("min-height",this.element.height()),s[0]===e[0])return h.resolve(),h.promise();if("object"==typeof i?(a=i[0],o=i[1]||i[0]):(a=i,o=a),r=function(){if(e&&e.length&&e.hide().removeClass(o+" uk-animation-reverse").css({opacity:"","animation-delay":"",animation:""}),!s.length)return h.resolve(),void 0;for(l=0;l<s.length;l++)s.eq(1==n?l:s.length-l-1).css("animation-delay",l*u+"ms");s.addClass(a)[1==n?"last":"first"]().one(t.support.animation.end,function(){s.removeClass(""+a).css({opacity:"",display:"","animation-delay":"",animation:""}),h.resolve(),d.element.css("min-height","")}).end().css("display","")},s.length&&s.css("animation-duration",this.options.duration+"ms"),e&&e.length)for(e.css("animation-duration",this.options.duration+"ms")[1==n?"last":"first"]().one(t.support.animation.end,function(){r()}),l=0;l<e.length;l++)!function(t,i){setTimeout(function(){i.css("display","none").css("display","").css("opacity",0).addClass(o+" uk-animation-reverse")}.bind(this),l*u)}(l,e.eq(1==n?l:e.length-l-1));else r();return h.promise()}function e(t,i){var e,s=0,n=-1,a=t.length||0,o=[];if(1>i)return null;for(;a>s;)e=s%i,e?o[n][e]=t[s]:o[++n]=[t[s]],s++;for(s=0,a=o.length;a>s;)o[s]=jQuery(o[s]),s++;return o}var s;t.component("slideset",{defaults:{"default":1,animation:"fade",duration:200,filter:"",delay:!1,controls:!1,autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},sets:[],boot:function(){t.ready(function(i){t.$("[data-uk-slideset]",i).each(function(){var i=t.$(this);if(!i.data("slideset")){t.slideset(i,t.Utils.options(i.attr("data-uk-slideset")))}})})},init:function(){var i=this;this.activeSet=!1,this.list=this.element.find(".uk-slideset"),this.nav=this.element.find(".uk-slideset-nav"),this.controls=this.options.controls?t.$(this.options.controls):this.element,t.$win.on("resize load",t.Utils.debounce(function(){i.updateSets()},100)),i.list.addClass("uk-grid-width-1-"+i.options.default),["xlarge","large","medium","small"].forEach(function(t){i.options[t]&&i.list.addClass("uk-grid-width-"+t+"-1-"+i.options[t])}),this.on("click.uikit.slideset","[data-uk-slideset-item]",function(e){if(e.preventDefault(),!i.animating){var s=t.$(this).attr("data-uk-slideset-item");if(i.activeSet!==s)switch(s){case"next":case"previous":i["next"==s?"next":"previous"]();break;default:i.show(parseInt(s,10))}}}),this.controls.on("click.uikit.slideset","[data-uk-filter]",function(e){var s=t.$(this);s.parent().hasClass("uk-slideset")||(e.preventDefault(),i.animating||i.currentFilter==s.attr("data-uk-filter")||(i.updateFilter(s.attr("data-uk-filter")),i._hide().then(function(){i.updateSets(!0,!0)})))}),this.on("swipeRight swipeLeft",function(t){i["swipeLeft"==t.type?"next":"previous"]()}),this.updateFilter(this.options.filter),this.updateSets(),this.element.on({mouseenter:function(){i.options.pauseOnHover&&(i.hovering=!0)},mouseleave:function(){i.hovering=!1}}),this.options.autoplay&&this.start()},updateSets:function(t,i){var s,n=this.visible;if(this.visible=this.getVisibleOnCurrenBreakpoint(),n!=this.visible||i){for(this.children=this.list.children().hide(),this.items=this.getItems(),this.sets=e(this.items,this.visible),s=0;s<this.sets.length;s++)this.sets[s].css({display:"none"});if(this.nav.length&&this.nav.empty()){for(s=0;s<this.sets.length;s++)this.nav.append('<li data-uk-slideset-item="'+s+'"><a></a></li>');this.nav[1==this.nav.children().length?"addClass":"removeClass"]("uk-invisible")}this.activeSet=!1,this.show(0,!t)}},updateFilter:function(i){var e,s=this;this.currentFilter=i,this.controls.find("[data-uk-filter]").each(function(){e=t.$(this),e.parent().hasClass("uk-slideset")||(e.attr("data-uk-filter")==s.currentFilter?e.addClass("uk-active"):e.removeClass("uk-active"))})},getVisibleOnCurrenBreakpoint:function(){var i=null,e=t.$('<div style="position:absolute;height:1px;top:-1000px;width:100px"><div></div></div>').appendTo("body"),s=e.children().eq(0),n=this.options;return["xlarge","large","medium","small"].forEach(function(t){n[t]&&!i&&(e.attr("class","uk-grid-width-"+t+"-1-2").width(),50==s.width()&&(i=t))}),e.remove(),this.options[i]||this.options["default"]},getItems:function(){var i,e=[];return this.currentFilter?(i=this.currentFilter||[],"string"==typeof i&&(i=i.split(/,/).map(function(t){return t.trim()})),this.children.each(function(){var s=t.$(this),n=s.attr("data-uk-filter"),a=i.length?!1:!0;n&&(n=n.split(/,/).map(function(t){return t.trim()}),i.forEach(function(t){n.indexOf(t)>-1&&(a=!0)})),a&&e.push(s[0])}),e=t.$(e)):e=this.list.children(),e},show:function(i,e,n){var a=this;if(this.activeSet!==i&&!this.animating){n=n||(i<this.activeSet?-1:1);var o=this.sets[this.activeSet]||[],r=this.sets[i],l=this._getAnimation();(e||!t.support.animation)&&(l=s.none),this.animating=!0,this.nav.length&&this.nav.children().removeClass("uk-active").eq(i).addClass("uk-active"),l.apply(a,[o,r,n]).then(function(){t.Utils.checkDisplay(r,!0),a.children.hide().removeClass("uk-active"),r.addClass("uk-active").css({display:"",opacity:""}),a.animating=!1,a.activeSet=i,t.Utils.checkDisplay(r,!0),a.trigger("show.uk.slideset",[r])})}},_getAnimation:function(){var i=s[this.options.animation]||s.none;return t.support.animation||(i=s.none),i},_hide:function(){var t=this,i=this.sets[this.activeSet]||[],e=this._getAnimation();return this.animating=!0,e.apply(t,[i,[],1]).then(function(){t.animating=!1})},next:function(){this.show(this.sets[this.activeSet+1]?this.activeSet+1:0,!1,1)},previous:function(){this.show(this.sets[this.activeSet-1]?this.activeSet-1:this.sets.length-1,!1,-1)},start:function(){this.stop();var t=this;this.interval=setInterval(function(){t.hovering||t.animating||t.next()},this.options.autoplayInterval)},stop:function(){this.interval&&clearInterval(this.interval)}}),s={none:function(){var i=t.$.Deferred();return i.resolve(),i.promise()},fade:function(t,e){return i.apply(this,["uk-animation-fade",t,e])},"slide-bottom":function(t,e){return i.apply(this,["uk-animation-slide-bottom",t,e])},"slide-top":function(t,e){return i.apply(this,["uk-animation-slide-top",t,e])},"slide-vertical":function(t,e,s){var n=["uk-animation-slide-top","uk-animation-slide-bottom"];return-1==s&&n.reverse(),i.apply(this,[n,t,e])},"slide-horizontal":function(t,e,s){var n=["uk-animation-slide-right","uk-animation-slide-left"];return-1==s&&n.reverse(),i.apply(this,[n,t,e,s])},scale:function(t,e){return i.apply(this,["uk-animation-scale-up",t,e])}},t.slideset.animations=s}); \ No newline at end of file diff --git a/media/uikit/js/components/slideshow-fx.js b/media/uikit/js/components/slideshow-fx.js new file mode 100644 index 00000000..78ed1613 --- /dev/null +++ b/media/uikit/js/components/slideshow-fx.js @@ -0,0 +1,377 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-slideshow-fx", ["uikit"], function() { + return component || addon(UIkit); + }); + } + +})(function(UI) { + + "use strict"; + + var Animations = UI.slideshow.animations; + + UI.$.extend(UI.slideshow.animations, { + 'slice': function(current, next, dir, fromfx) { + + if (!current.data('cover')) { + return Animations.fade.apply(this, arguments); + } + + var d = UI.$.Deferred(); + + var sliceWidth = Math.ceil(this.element.width() / this.options.slices), + bgimage = next.data('cover').css('background-image'), + ghost = UI.$('<li></li>').css({ + top : 0, + left : 0, + width : this.container.width(), + height : this.container.height(), + opacity: 1, + zIndex : 15 + }), + ghostWidth = ghost.width(), + ghostHeight = ghost.height(), + pos = fromfx == 'slice-up' ? ghostHeight:'0', + bar; + + for (var i = 0; i < this.options.slices; i++) { + + if (fromfx == 'slice-up-down') { + pos = ((i % 2) + 2) % 2==0 ? '0':ghostHeight; + } + + var width = (i == this.options.slices-1) ? sliceWidth : sliceWidth, + clipto = ('rect(0px, '+(width*(i+1))+'px, '+ghostHeight+'px, '+(sliceWidth*i)+'px)'), + clipfrom; + + //slice-down - default + clipfrom = ('rect(0px, '+(width*(i+1))+'px, 0px, '+(sliceWidth*i)+'px)'); + + if (fromfx == 'slice-up' || (fromfx == 'slice-up-down' && ((i % 2) + 2) % 2==0 )) { + clipfrom = ('rect('+ghostHeight+'px, '+(width*(i+1))+'px, '+ghostHeight+'px, '+(sliceWidth*i)+'px)'); + } + + bar = UI.$('<div class="uk-cover-background"></div>').css({ + 'position' : 'absolute', + 'top' : 0, + 'left' : 0, + 'width' : ghostWidth, + 'height' : ghostHeight, + 'background-image' : bgimage, + 'clip' : clipfrom, + 'opacity' : 0, + 'transition' : 'all '+this.options.duration+'ms ease-in-out '+(i*60)+'ms', + '-webkit-transition' : 'all '+this.options.duration+'ms ease-in-out '+(i*60)+'ms' + + }).data('clip', clipto); + + ghost.append(bar); + } + + this.container.append(ghost); + + ghost.children().last().on(UI.support.transition.end, function() { + ghost.remove(); + d.resolve(); + }); + + ghost.width(); + + ghost.children().each(function() { + var bar = UI.$(this); + + bar.css({ + 'clip': bar.data('clip'), + 'opacity': 1 + }); + }); + + return d.promise(); + }, + + 'slice-up': function(current, next, dir) { + return Animations.slice.apply(this, [current, next, dir, 'slice-up']); + }, + + 'slice-down': function(current, next, dir) { + return Animations.slice.apply(this, [current, next, dir, 'slice-down']); + }, + + 'slice-up-down': function(current, next, dir) { + return Animations.slice.apply(this, [current, next, dir, 'slice-up-down']); + }, + + 'fold': function(current, next, dir) { + + if (!next.data('cover')) { + return Animations.fade.apply(this, arguments); + } + + var d = UI.$.Deferred(); + + var sliceWidth = Math.ceil(this.element.width() / this.options.slices), + bgimage = next.data('cover').css('background-image'), + ghost = UI.$('<li></li>').css({ + width : next.width(), + height : next.height(), + opacity: 1, + zIndex : 15 + }), + ghostWidth = next.width(), + ghostHeight = next.height(), + bar; + + for (var i = 0; i < this.options.slices; i++) { + + var width = (i == this.options.slices-1) ? (ghostWidth - (sliceWidth*i)) : sliceWidth; + + bar = UI.$('<div class="uk-cover-background"></div>').css({ + 'position' : 'absolute', + 'top' : 0, + 'left' : 0, + 'width' : ghostWidth, + 'height' : ghostHeight, + 'background-image' : bgimage, + 'transform-origin' : (sliceWidth*i)+'px 0 0', + 'clip' : ('rect(0px, '+(sliceWidth*(i+1))+'px, '+ghostHeight+'px, '+(sliceWidth*i)+'px)'), + 'opacity' : 0, + 'transform' : 'scaleX(0.000001)', + 'transition' : 'all '+this.options.duration+'ms ease-in-out '+(100+i*60)+'ms', + '-webkit-transition' : 'all '+this.options.duration+'ms ease-in-out '+(100+i*60)+'ms' + }); + + ghost.prepend(bar); + } + + this.container.append(ghost); + + ghost.width(); + + ghost.children().first().on(UI.support.transition.end, function() { + ghost.remove(); + d.resolve(); + }).end().css({ + 'transform': 'scaleX(1)', + 'opacity': 1 + }); + + return d.promise(); + }, + + 'puzzle': function(current, next, dir) { + + if (!next.data('cover')) { + return Animations.fade.apply(this, arguments); + } + + var d = UI.$.Deferred(), $this = this; + + var boxCols = Math.round(this.options.slices/2), + boxWidth = Math.round(next.width()/boxCols), + boxRows = Math.round(next.height()/boxWidth), + boxHeight = Math.round(next.height()/boxRows)+1, + bgimage = next.data('cover').css('background-image'), + ghost = UI.$('<li></li>').css({ + width : this.container.width(), + height : this.container.height(), + opacity : 1, + zIndex : 15 + }), + ghostWidth = this.container.width(), + ghostHeight = this.container.height(), + box, rect, width; + + for (var rows = 0; rows < boxRows; rows++) { + + for (var cols = 0; cols < boxCols; cols++) { + + width = (cols == boxCols-1) ? (boxWidth + 2) : boxWidth; + + rect = [ + (boxHeight * rows) +'px', // top + (width * (cols+1)) +'px', // right + (boxHeight * (rows + 1)) +'px', // bottom + (boxWidth * cols) +'px' // left + ]; + + box = UI.$('<div class="uk-cover-background"></div>').css({ + 'position' : 'absolute', + 'top' : 0, + 'left' : 0, + 'opacity' : 0, + 'width' : ghostWidth, + 'height' : ghostHeight, + 'background-image' : bgimage, + 'clip' : ('rect('+rect.join(',')+')'), + '-webkit-transform' : 'translateZ(0)', // fixes webkit opacity flickering bug + 'transform' : 'translateZ(0)' // fixes moz opacity flickering bug + }); + + ghost.append(box); + } + } + + this.container.append(ghost); + + var boxes = shuffle(ghost.children()); + + boxes.each(function(i) { + UI.$(this).css({ + 'transition': 'all '+$this.options.duration+'ms ease-in-out '+(50+i*25)+'ms', + '-webkit-transition': 'all '+$this.options.duration+'ms ease-in-out '+(50+i*25)+'ms' + }); + }).last().on(UI.support.transition.end, function() { + ghost.remove(); + d.resolve(); + }); + + ghost.width(); + + boxes.css({'opacity': 1}); + + return d.promise(); + }, + + 'boxes': function(current, next, dir, fromfx) { + + if (!next.data('cover')) { + return Animations.fade.apply(this, arguments); + } + + var d = UI.$.Deferred(); + + var boxCols = Math.round(this.options.slices/2), + boxWidth = Math.round(next.width()/boxCols), + boxRows = Math.round(next.height()/boxWidth), + boxHeight = Math.round(next.height()/boxRows)+1, + bgimage = next.data('cover').css('background-image'), + ghost = UI.$('<li></li>').css({ + width : next.width(), + height : next.height(), + opacity : 1, + zIndex : 15 + }), + ghostWidth = next.width(), + ghostHeight = next.height(), + box, rect, width, cols; + + for (var rows = 0; rows < boxRows; rows++) { + + for (cols = 0; cols < boxCols; cols++) { + + width = (cols == boxCols-1) ? (boxWidth + 2) : boxWidth; + + rect = [ + (boxHeight * rows) +'px', // top + (width * (cols+1)) +'px', // right + (boxHeight * (rows + 1)) +'px', // bottom + (boxWidth * cols) +'px' // left + ]; + + box = UI.$('<div class="uk-cover-background"></div>').css({ + 'position' : 'absolute', + 'top' : 0, + 'left' : 0, + 'opacity' : 1, + 'width' : ghostWidth, + 'height' : ghostHeight, + 'background-image' : bgimage, + 'transform-origin' : rect[3]+' '+rect[0]+' 0', + 'clip' : ('rect('+rect.join(',')+')'), + '-webkit-transform' : 'scale(0.0000000000000001)', + 'transform' : 'scale(0.0000000000000001)' + }); + + ghost.append(box); + } + } + + this.container.append(ghost); + + var rowIndex = 0, colIndex = 0, timeBuff = 0, box2Darr = [[]], boxes = ghost.children(), prevCol; + + if (fromfx == 'boxes-reverse') { + boxes = [].reverse.apply(boxes); + } + + boxes.each(function() { + + box2Darr[rowIndex][colIndex] = UI.$(this); + colIndex++; + + if(colIndex == boxCols) { + rowIndex++; + colIndex = 0; + box2Darr[rowIndex] = []; + } + }); + + for (cols = 0, prevCol = 0; cols < (boxCols * boxRows); cols++) { + + prevCol = cols; + + for (var row = 0; row < boxRows; row++) { + + if (prevCol >= 0 && prevCol < boxCols) { + + box2Darr[row][prevCol].css({ + 'transition': 'all '+this.options.duration+'ms linear '+(50+timeBuff)+'ms', + '-webkit-transition': 'all '+this.options.duration+'ms linear '+(50+timeBuff)+'ms' + }); + } + prevCol--; + } + timeBuff += 100; + } + + boxes.last().on(UI.support.transition.end, function() { + ghost.remove(); + d.resolve(); + }); + + ghost.width(); + + boxes.css({ + '-webkit-transform': 'scale(1)', + 'transform': 'scale(1)' + }); + + return d.promise(); + }, + + 'boxes-reverse': function(current, next, dir) { + return Animations.boxes.apply(this, [current, next, dir, 'boxes-reverse']); + }, + + 'random-fx': function(){ + + var animations = ['slice-up', 'fold', 'puzzle', 'slice-down', 'boxes', 'slice-up-down', 'boxes-reverse']; + + this.fxIndex = (this.fxIndex === undefined ? -1 : this.fxIndex) + 1; + + if (!animations[this.fxIndex]) this.fxIndex = 0; + + return Animations[animations[this.fxIndex]].apply(this, arguments); + }, + }); + + + // helper functions + + // Shuffle an array + var shuffle = function(arr) { + for (var j, x, i = arr.length; i; j = parseInt(Math.random() * i), x = arr[--i], arr[i] = arr[j], arr[j] = x) {} + return arr; + }; + + return UI.slideshow.animations; +}); diff --git a/media/uikit/js/components/slideshow-fx.min.js b/media/uikit/js/components/slideshow-fx.min.js new file mode 100644 index 00000000..cb185771 --- /dev/null +++ b/media/uikit/js/components/slideshow-fx.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(i){var t;window.UIkit&&(t=i(UIkit)),"function"==typeof define&&define.amd&&define("uikit-slideshow-fx",["uikit"],function(){return t||i(UIkit)})}(function(i){"use strict";var t=i.slideshow.animations;i.$.extend(i.slideshow.animations,{slice:function(e,s,n,o){if(!e.data("cover"))return t.fade.apply(this,arguments);for(var r,a=i.$.Deferred(),c=Math.ceil(this.element.width()/this.options.slices),h=s.data("cover").css("background-image"),p=i.$("<li></li>").css({top:0,left:0,width:this.container.width(),height:this.container.height(),opacity:1,zIndex:15}),d=p.width(),l=p.height(),u="slice-up"==o?l:"0",f=0;f<this.options.slices;f++){"slice-up-down"==o&&(u=(f%2+2)%2==0?"0":l);var m,x=f==this.options.slices-1?c:c,v="rect(0px, "+x*(f+1)+"px, "+l+"px, "+c*f+"px)";m="rect(0px, "+x*(f+1)+"px, 0px, "+c*f+"px)",("slice-up"==o||"slice-up-down"==o&&(f%2+2)%2==0)&&(m="rect("+l+"px, "+x*(f+1)+"px, "+l+"px, "+c*f+"px)"),r=i.$('<div class="uk-cover-background"></div>').css({position:"absolute",top:0,left:0,width:d,height:l,"background-image":h,clip:m,opacity:0,transition:"all "+this.options.duration+"ms ease-in-out "+60*f+"ms","-webkit-transition":"all "+this.options.duration+"ms ease-in-out "+60*f+"ms"}).data("clip",v),p.append(r)}return this.container.append(p),p.children().last().on(i.support.transition.end,function(){p.remove(),a.resolve()}),p.width(),p.children().each(function(){var t=i.$(this);t.css({clip:t.data("clip"),opacity:1})}),a.promise()},"slice-up":function(i,e,s){return t.slice.apply(this,[i,e,s,"slice-up"])},"slice-down":function(i,e,s){return t.slice.apply(this,[i,e,s,"slice-down"])},"slice-up-down":function(i,e,s){return t.slice.apply(this,[i,e,s,"slice-up-down"])},fold:function(e,s){if(!s.data("cover"))return t.fade.apply(this,arguments);for(var n,o=i.$.Deferred(),r=Math.ceil(this.element.width()/this.options.slices),a=s.data("cover").css("background-image"),c=i.$("<li></li>").css({width:s.width(),height:s.height(),opacity:1,zIndex:15}),h=s.width(),p=s.height(),d=0;d<this.options.slices;d++){{d==this.options.slices-1?h-r*d:r}n=i.$('<div class="uk-cover-background"></div>').css({position:"absolute",top:0,left:0,width:h,height:p,"background-image":a,"transform-origin":r*d+"px 0 0",clip:"rect(0px, "+r*(d+1)+"px, "+p+"px, "+r*d+"px)",opacity:0,transform:"scaleX(0.000001)",transition:"all "+this.options.duration+"ms ease-in-out "+(100+60*d)+"ms","-webkit-transition":"all "+this.options.duration+"ms ease-in-out "+(100+60*d)+"ms"}),c.prepend(n)}return this.container.append(c),c.width(),c.children().first().on(i.support.transition.end,function(){c.remove(),o.resolve()}).end().css({transform:"scaleX(1)",opacity:1}),o.promise()},puzzle:function(s,n){if(!n.data("cover"))return t.fade.apply(this,arguments);for(var o,r,a,c=i.$.Deferred(),h=this,p=Math.round(this.options.slices/2),d=Math.round(n.width()/p),l=Math.round(n.height()/d),u=Math.round(n.height()/l)+1,f=n.data("cover").css("background-image"),m=i.$("<li></li>").css({width:this.container.width(),height:this.container.height(),opacity:1,zIndex:15}),x=this.container.width(),v=this.container.height(),g=0;l>g;g++)for(var w=0;p>w;w++)a=w==p-1?d+2:d,r=[u*g+"px",a*(w+1)+"px",u*(g+1)+"px",d*w+"px"],o=i.$('<div class="uk-cover-background"></div>').css({position:"absolute",top:0,left:0,opacity:0,width:x,height:v,"background-image":f,clip:"rect("+r.join(",")+")","-webkit-transform":"translateZ(0)",transform:"translateZ(0)"}),m.append(o);this.container.append(m);var b=e(m.children());return b.each(function(t){i.$(this).css({transition:"all "+h.options.duration+"ms ease-in-out "+(50+25*t)+"ms","-webkit-transition":"all "+h.options.duration+"ms ease-in-out "+(50+25*t)+"ms"})}).last().on(i.support.transition.end,function(){m.remove(),c.resolve()}),m.width(),b.css({opacity:1}),c.promise()},boxes:function(e,s,n,o){if(!s.data("cover"))return t.fade.apply(this,arguments);for(var r,a,c,h,p=i.$.Deferred(),d=Math.round(this.options.slices/2),l=Math.round(s.width()/d),u=Math.round(s.height()/l),f=Math.round(s.height()/u)+1,m=s.data("cover").css("background-image"),x=i.$("<li></li>").css({width:s.width(),height:s.height(),opacity:1,zIndex:15}),v=s.width(),g=s.height(),w=0;u>w;w++)for(h=0;d>h;h++)c=h==d-1?l+2:l,a=[f*w+"px",c*(h+1)+"px",f*(w+1)+"px",l*h+"px"],r=i.$('<div class="uk-cover-background"></div>').css({position:"absolute",top:0,left:0,opacity:1,width:v,height:g,"background-image":m,"transform-origin":a[3]+" "+a[0]+" 0",clip:"rect("+a.join(",")+")","-webkit-transform":"scale(0.0000000000000001)",transform:"scale(0.0000000000000001)"}),x.append(r);this.container.append(x);var b,k=0,y=0,$=0,I=[[]],M=x.children();for("boxes-reverse"==o&&(M=[].reverse.apply(M)),M.each(function(){I[k][y]=i.$(this),y++,y==d&&(k++,y=0,I[k]=[])}),h=0,b=0;d*u>h;h++){b=h;for(var z=0;u>z;z++)b>=0&&d>b&&I[z][b].css({transition:"all "+this.options.duration+"ms linear "+(50+$)+"ms","-webkit-transition":"all "+this.options.duration+"ms linear "+(50+$)+"ms"}),b--;$+=100}return M.last().on(i.support.transition.end,function(){x.remove(),p.resolve()}),x.width(),M.css({"-webkit-transform":"scale(1)",transform:"scale(1)"}),p.promise()},"boxes-reverse":function(i,e,s){return t.boxes.apply(this,[i,e,s,"boxes-reverse"])},"random-fx":function(){var i=["slice-up","fold","puzzle","slice-down","boxes","slice-up-down","boxes-reverse"];return this.fxIndex=(void 0===this.fxIndex?-1:this.fxIndex)+1,i[this.fxIndex]||(this.fxIndex=0),t[i[this.fxIndex]].apply(this,arguments)}});var e=function(i){for(var t,e,s=i.length;s;t=parseInt(Math.random()*s),e=i[--s],i[s]=i[t],i[t]=e);return i};return i.slideshow.animations}); \ No newline at end of file diff --git a/media/uikit/js/components/slideshow.js b/media/uikit/js/components/slideshow.js new file mode 100644 index 00000000..d897bc95 --- /dev/null +++ b/media/uikit/js/components/slideshow.js @@ -0,0 +1,545 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-slideshow", ["uikit"], function() { + return component || addon(UIkit); + }); + } + +})(function(UI) { + + "use strict"; + + var Animations, playerId = 0; + + UI.component('slideshow', { + + defaults: { + animation : "fade", + duration : 500, + height : "auto", + start : 0, + autoplay : false, + autoplayInterval : 7000, + videoautoplay : true, + videomute : true, + slices : 15, + pauseOnHover : true, + kenburns : false, + kenburnsanimations : [ + 'uk-animation-middle-left', + 'uk-animation-top-right', + 'uk-animation-bottom-left', + 'uk-animation-top-center', + '', // middle-center + 'uk-animation-bottom-right' + ], + }, + + current : false, + interval : null, + hovering : false, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$('[data-uk-slideshow]', context).each(function() { + + var slideshow = UI.$(this); + + if (!slideshow.data("slideshow")) { + var obj = UI.slideshow(slideshow, UI.Utils.options(slideshow.attr("data-uk-slideshow"))); + } + }); + }); + }, + + init: function() { + + var $this = this, canvas, kbanimduration; + + this.container = this.element.hasClass('uk-slideshow') ? this.element : UI.$(this.find('.uk-slideshow')); + this.slides = this.container.children(); + this.slidesCount = this.slides.length; + this.current = this.options.start; + this.animating = false; + this.triggers = this.find('[data-uk-slideshow-item]'); + this.fixFullscreen = navigator.userAgent.match(/(iPad|iPhone|iPod)/g) && this.container.hasClass('uk-slideshow-fullscreen'); // viewport unit fix for height:100vh - should be fixed in iOS 8 + + if (this.options.kenburns) { + + kbanimduration = this.options.kenburns === true ? '15s': this.options.kenburns; + + if (!String(kbanimduration).match(/(ms|s)$/)) { + kbanimduration += 'ms'; + } + + if (typeof(this.options.kenburnsanimations) == 'string') { + this.options.kenburnsanimations = this.options.kenburnsanimations.split(','); + } + } + + this.slides.each(function(index) { + + var slide = UI.$(this), + media = slide.children('img,video,iframe').eq(0); + + slide.data('media', media); + slide.data('sizer', media); + + if (media.length) { + + var placeholder; + + switch(media[0].nodeName) { + case 'IMG': + + var cover = UI.$('<div class="uk-cover-background uk-position-cover"></div>').css({'background-image':'url('+ media.attr('src') + ')'}); + + media.css({'width': '100%','height': 'auto'}); + slide.prepend(cover).data('cover', cover); + break; + + case 'IFRAME': + + var src = media[0].src, iframeId = 'sw-'+(++playerId); + + media + .attr('src', '').on('load', function(){ + + if (index !== $this.current || (index == $this.current && !$this.options.videoautoplay)) { + $this.pausemedia(media); + } + + if ($this.options.videomute) { + + $this.mutemedia(media); + + var inv = setInterval((function(ic) { + return function() { + $this.mutemedia(media); + if (++ic >= 4) clearInterval(inv); + } + })(0), 250); + } + + }) + .data('slideshow', $this) // add self-reference for the vimeo-ready listener + .attr('data-player-id', iframeId) // add frameId for the vimeo-ready listener + .attr('src', [src, (src.indexOf('?') > -1 ? '&':'?'), 'enablejsapi=1&api=1&player_id='+iframeId].join('')) + .addClass('uk-position-absolute'); + + // disable pointer events + if(!UI.support.touch) media.css('pointer-events', 'none'); + + placeholder = true; + + if (UI.cover) { + UI.cover(media); + media.attr('data-uk-cover', '{}'); + } + + break; + + case 'VIDEO': + media.addClass('uk-cover-object uk-position-absolute'); + placeholder = true; + + if ($this.options.videomute) $this.mutemedia(media); + } + + if (placeholder) { + + canvas = UI.$('<canvas></canvas>').attr({'width': media[0].width, 'height': media[0].height}); + var img = UI.$('<img style="width:100%;height:auto;">').attr('src', canvas[0].toDataURL()); + + slide.prepend(img); + slide.data('sizer', img); + } + + } else { + slide.data('sizer', slide); + } + + if ($this.hasKenBurns(slide)) { + + slide.data('cover').css({ + '-webkit-animation-duration': kbanimduration, + 'animation-duration': kbanimduration + }); + } + }); + + this.on("click.uikit.slideshow", '[data-uk-slideshow-item]', function(e) { + + e.preventDefault(); + + var slide = UI.$(this).attr('data-uk-slideshow-item'); + + if ($this.current == slide) return; + + switch(slide) { + case 'next': + case 'previous': + $this[slide=='next' ? 'next':'previous'](); + break; + default: + $this.show(parseInt(slide, 10)); + } + + $this.stop(); + }); + + // Set start slide + this.slides.attr('aria-hidden', 'true').eq(this.current).addClass('uk-active').attr('aria-hidden', 'false'); + this.triggers.filter('[data-uk-slideshow-item="'+this.current+'"]').addClass('uk-active'); + + UI.$win.on("resize load", UI.Utils.debounce(function() { + $this.resize(); + + if ($this.fixFullscreen) { + $this.container.css('height', window.innerHeight); + $this.slides.css('height', window.innerHeight); + } + }, 100)); + + // chrome image load fix + setTimeout(function(){ + $this.resize(); + }, 80); + + // Set autoplay + if (this.options.autoplay) { + this.start(); + } + + if (this.options.videoautoplay && this.slides.eq(this.current).data('media')) { + this.playmedia(this.slides.eq(this.current).data('media')); + } + + if (this.options.kenburns) { + this.applyKenBurns(this.slides.eq(this.current)); + } + + this.container.on({ + mouseenter: function() { if ($this.options.pauseOnHover) $this.hovering = true; }, + mouseleave: function() { $this.hovering = false; } + }); + + this.on('swipeRight swipeLeft', function(e) { + $this[e.type=='swipeLeft' ? 'next' : 'previous'](); + }); + + this.on('display.uk.check', function(){ + if ($this.element.is(":visible")) { + + $this.resize(); + + if ($this.fixFullscreen) { + $this.container.css('height', window.innerHeight); + $this.slides.css('height', window.innerHeight); + } + } + }); + }, + + + resize: function() { + + if (this.container.hasClass('uk-slideshow-fullscreen')) return; + + var $this = this, height = this.options.height; + + if (this.options.height === 'auto') { + + height = 0; + + this.slides.css('height', '').each(function() { + height = Math.max(height, UI.$(this).height()); + }); + } + + this.container.css('height', height); + this.slides.css('height', height); + }, + + show: function(index, direction) { + + if (this.animating || this.current == index) return; + + this.animating = true; + + var $this = this, + current = this.slides.eq(this.current), + next = this.slides.eq(index), + dir = direction ? direction : this.current < index ? -1 : 1, + currentmedia = current.data('media'), + animation = Animations[this.options.animation] ? this.options.animation : 'fade', + nextmedia = next.data('media'), + finalize = function() { + + if (!$this.animating) return; + + if (currentmedia && currentmedia.is('video,iframe')) { + $this.pausemedia(currentmedia); + } + + if (nextmedia && nextmedia.is('video,iframe')) { + $this.playmedia(nextmedia); + } + + next.addClass("uk-active").attr('aria-hidden', 'false'); + current.removeClass("uk-active").attr('aria-hidden', 'true'); + + $this.animating = false; + $this.current = index; + + UI.Utils.checkDisplay(next, '[class*="uk-animation-"]:not(.uk-cover-background.uk-position-cover)'); + + $this.trigger('show.uk.slideshow', [next]); + }; + + $this.applyKenBurns(next); + + // animation fallback + if (!UI.support.animation) { + animation = 'none'; + } + + current = UI.$(current); + next = UI.$(next); + + Animations[animation].apply(this, [current, next, dir]).then(finalize); + + $this.triggers.removeClass('uk-active'); + $this.triggers.filter('[data-uk-slideshow-item="'+index+'"]').addClass('uk-active'); + }, + + applyKenBurns: function(slide) { + + if (!this.hasKenBurns(slide)) { + return; + } + + var animations = this.options.kenburnsanimations, + index = this.kbindex || 0; + + + slide.data('cover').attr('class', 'uk-cover-background uk-position-cover').width(); + slide.data('cover').addClass(['uk-animation-scale', 'uk-animation-reverse', animations[index].trim()].join(' ')); + + this.kbindex = animations[index + 1] ? (index+1):0; + }, + + hasKenBurns: function(slide) { + return (this.options.kenburns && slide.data('cover')); + }, + + next: function() { + this.show(this.slides[this.current + 1] ? (this.current + 1) : 0); + }, + + previous: function() { + this.show(this.slides[this.current - 1] ? (this.current - 1) : (this.slides.length - 1)); + }, + + start: function() { + + this.stop(); + + var $this = this; + + this.interval = setInterval(function() { + if (!$this.hovering) $this.next(); + }, this.options.autoplayInterval); + + }, + + stop: function() { + if (this.interval) clearInterval(this.interval); + }, + + playmedia: function(media) { + + if (!(media && media[0])) return; + + switch(media[0].nodeName) { + case 'VIDEO': + + if (!this.options.videomute) { + media[0].muted = false; + } + + media[0].play(); + break; + case 'IFRAME': + + if (!this.options.videomute) { + media[0].contentWindow.postMessage('{ "event": "command", "func": "unmute", "method":"setVolume", "value":1}', '*'); + } + + media[0].contentWindow.postMessage('{ "event": "command", "func": "playVideo", "method":"play"}', '*'); + break; + } + }, + + pausemedia: function(media) { + + switch(media[0].nodeName) { + case 'VIDEO': + media[0].pause(); + break; + case 'IFRAME': + media[0].contentWindow.postMessage('{ "event": "command", "func": "pauseVideo", "method":"pause"}', '*'); + break; + } + }, + + mutemedia: function(media) { + + switch(media[0].nodeName) { + case 'VIDEO': + media[0].muted = true; + break; + case 'IFRAME': + media[0].contentWindow.postMessage('{ "event": "command", "func": "mute", "method":"setVolume", "value":0}', '*'); + break; + } + } + }); + + Animations = { + + 'none': function() { + + var d = UI.$.Deferred(); + d.resolve(); + return d.promise(); + }, + + 'scroll': function(current, next, dir) { + + var d = UI.$.Deferred(); + + current.css('animation-duration', this.options.duration+'ms'); + next.css('animation-duration', this.options.duration+'ms'); + + next.css('opacity', 1).one(UI.support.animation.end, function() { + + current.removeClass(dir === 1 ? 'uk-slideshow-scroll-backward-out' : 'uk-slideshow-scroll-forward-out'); + next.css('opacity', '').removeClass(dir === 1 ? 'uk-slideshow-scroll-backward-in' : 'uk-slideshow-scroll-forward-in'); + d.resolve(); + + }.bind(this)); + + current.addClass(dir == 1 ? 'uk-slideshow-scroll-backward-out' : 'uk-slideshow-scroll-forward-out'); + next.addClass(dir == 1 ? 'uk-slideshow-scroll-backward-in' : 'uk-slideshow-scroll-forward-in'); + next.width(); // force redraw + + return d.promise(); + }, + + 'swipe': function(current, next, dir) { + + var d = UI.$.Deferred(); + + current.css('animation-duration', this.options.duration+'ms'); + next.css('animation-duration', this.options.duration+'ms'); + + next.css('opacity', 1).one(UI.support.animation.end, function() { + + current.removeClass(dir === 1 ? 'uk-slideshow-swipe-backward-out' : 'uk-slideshow-swipe-forward-out'); + next.css('opacity', '').removeClass(dir === 1 ? 'uk-slideshow-swipe-backward-in' : 'uk-slideshow-swipe-forward-in'); + d.resolve(); + + }.bind(this)); + + current.addClass(dir == 1 ? 'uk-slideshow-swipe-backward-out' : 'uk-slideshow-swipe-forward-out'); + next.addClass(dir == 1 ? 'uk-slideshow-swipe-backward-in' : 'uk-slideshow-swipe-forward-in'); + next.width(); // force redraw + + return d.promise(); + }, + + 'scale': function(current, next, dir) { + + var d = UI.$.Deferred(); + + current.css('animation-duration', this.options.duration+'ms'); + next.css('animation-duration', this.options.duration+'ms'); + + next.css('opacity', 1); + + current.one(UI.support.animation.end, function() { + + current.removeClass('uk-slideshow-scale-out'); + next.css('opacity', ''); + d.resolve(); + + }.bind(this)); + + current.addClass('uk-slideshow-scale-out'); + current.width(); // force redraw + + return d.promise(); + }, + + 'fade': function(current, next, dir) { + + var d = UI.$.Deferred(); + + current.css('animation-duration', this.options.duration+'ms'); + next.css('animation-duration', this.options.duration+'ms'); + + next.css('opacity', 1); + + current.one(UI.support.animation.end, function() { + + current.removeClass('uk-slideshow-fade-out'); + next.css('opacity', ''); + d.resolve(); + + }.bind(this)); + + current.addClass('uk-slideshow-fade-out'); + current.width(); // force redraw + + return d.promise(); + } + }; + + UI.slideshow.animations = Animations; + + // Listen for messages from the vimeo player + window.addEventListener('message', function onMessageReceived(e) { + + var data = e.data, iframe; + + if (typeof(data) == 'string') { + + try { + data = JSON.parse(data); + } catch(err) { + data = {}; + } + } + + if (e.origin && e.origin.indexOf('vimeo') > -1 && data.event == 'ready' && data.player_id) { + iframe = UI.$('[data-player-id="'+ data.player_id+'"]'); + + if (iframe.length) { + iframe.data('slideshow').mutemedia(iframe); + } + } + }, false); + +}); diff --git a/media/uikit/js/components/slideshow.min.js b/media/uikit/js/components/slideshow.min.js new file mode 100644 index 00000000..e7af4f05 --- /dev/null +++ b/media/uikit/js/components/slideshow.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(i){var s;window.UIkit&&(s=i(UIkit)),"function"==typeof define&&define.amd&&define("uikit-slideshow",["uikit"],function(){return s||i(UIkit)})}(function(i){"use strict";var s,t=0;i.component("slideshow",{defaults:{animation:"fade",duration:500,height:"auto",start:0,autoplay:!1,autoplayInterval:7e3,videoautoplay:!0,videomute:!0,slices:15,pauseOnHover:!0,kenburns:!1,kenburnsanimations:["uk-animation-middle-left","uk-animation-top-right","uk-animation-bottom-left","uk-animation-top-center","","uk-animation-bottom-right"]},current:!1,interval:null,hovering:!1,boot:function(){i.ready(function(s){i.$("[data-uk-slideshow]",s).each(function(){var s=i.$(this);if(!s.data("slideshow")){i.slideshow(s,i.Utils.options(s.attr("data-uk-slideshow")))}})})},init:function(){var s,e,n=this;this.container=this.element.hasClass("uk-slideshow")?this.element:i.$(this.find(".uk-slideshow")),this.slides=this.container.children(),this.slidesCount=this.slides.length,this.current=this.options.start,this.animating=!1,this.triggers=this.find("[data-uk-slideshow-item]"),this.fixFullscreen=navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&this.container.hasClass("uk-slideshow-fullscreen"),this.options.kenburns&&(e=this.options.kenburns===!0?"15s":this.options.kenburns,String(e).match(/(ms|s)$/)||(e+="ms"),"string"==typeof this.options.kenburnsanimations&&(this.options.kenburnsanimations=this.options.kenburnsanimations.split(","))),this.slides.each(function(a){var o=i.$(this),r=o.children("img,video,iframe").eq(0);if(o.data("media",r),o.data("sizer",r),r.length){var d;switch(r[0].nodeName){case"IMG":var u=i.$('<div class="uk-cover-background uk-position-cover"></div>').css({"background-image":"url("+r.attr("src")+")"});r.css({width:"100%",height:"auto"}),o.prepend(u).data("cover",u);break;case"IFRAME":var h=r[0].src,c="sw-"+ ++t;r.attr("src","").on("load",function(){if((a!==n.current||a==n.current&&!n.options.videoautoplay)&&n.pausemedia(r),n.options.videomute){n.mutemedia(r);var i=setInterval(function(s){return function(){n.mutemedia(r),++s>=4&&clearInterval(i)}}(0),250)}}).data("slideshow",n).attr("data-player-id",c).attr("src",[h,h.indexOf("?")>-1?"&":"?","enablejsapi=1&api=1&player_id="+c].join("")).addClass("uk-position-absolute"),i.support.touch||r.css("pointer-events","none"),d=!0,i.cover&&(i.cover(r),r.attr("data-uk-cover","{}"));break;case"VIDEO":r.addClass("uk-cover-object uk-position-absolute"),d=!0,n.options.videomute&&n.mutemedia(r)}if(d){s=i.$("<canvas></canvas>").attr({width:r[0].width,height:r[0].height});var l=i.$('<img style="width:100%;height:auto;">').attr("src",s[0].toDataURL());o.prepend(l),o.data("sizer",l)}}else o.data("sizer",o);n.hasKenBurns(o)&&o.data("cover").css({"-webkit-animation-duration":e,"animation-duration":e})}),this.on("click.uikit.slideshow","[data-uk-slideshow-item]",function(s){s.preventDefault();var t=i.$(this).attr("data-uk-slideshow-item");if(n.current!=t){switch(t){case"next":case"previous":n["next"==t?"next":"previous"]();break;default:n.show(parseInt(t,10))}n.stop()}}),this.slides.attr("aria-hidden","true").eq(this.current).addClass("uk-active").attr("aria-hidden","false"),this.triggers.filter('[data-uk-slideshow-item="'+this.current+'"]').addClass("uk-active"),i.$win.on("resize load",i.Utils.debounce(function(){n.resize(),n.fixFullscreen&&(n.container.css("height",window.innerHeight),n.slides.css("height",window.innerHeight))},100)),setTimeout(function(){n.resize()},80),this.options.autoplay&&this.start(),this.options.videoautoplay&&this.slides.eq(this.current).data("media")&&this.playmedia(this.slides.eq(this.current).data("media")),this.options.kenburns&&this.applyKenBurns(this.slides.eq(this.current)),this.container.on({mouseenter:function(){n.options.pauseOnHover&&(n.hovering=!0)},mouseleave:function(){n.hovering=!1}}),this.on("swipeRight swipeLeft",function(i){n["swipeLeft"==i.type?"next":"previous"]()}),this.on("display.uk.check",function(){n.element.is(":visible")&&(n.resize(),n.fixFullscreen&&(n.container.css("height",window.innerHeight),n.slides.css("height",window.innerHeight)))})},resize:function(){if(!this.container.hasClass("uk-slideshow-fullscreen")){var s=this.options.height;"auto"===this.options.height&&(s=0,this.slides.css("height","").each(function(){s=Math.max(s,i.$(this).height())})),this.container.css("height",s),this.slides.css("height",s)}},show:function(t,e){if(!this.animating&&this.current!=t){this.animating=!0;var n=this,a=this.slides.eq(this.current),o=this.slides.eq(t),r=e?e:this.current<t?-1:1,d=a.data("media"),u=s[this.options.animation]?this.options.animation:"fade",h=o.data("media"),c=function(){n.animating&&(d&&d.is("video,iframe")&&n.pausemedia(d),h&&h.is("video,iframe")&&n.playmedia(h),o.addClass("uk-active").attr("aria-hidden","false"),a.removeClass("uk-active").attr("aria-hidden","true"),n.animating=!1,n.current=t,i.Utils.checkDisplay(o,'[class*="uk-animation-"]:not(.uk-cover-background.uk-position-cover)'),n.trigger("show.uk.slideshow",[o]))};n.applyKenBurns(o),i.support.animation||(u="none"),a=i.$(a),o=i.$(o),s[u].apply(this,[a,o,r]).then(c),n.triggers.removeClass("uk-active"),n.triggers.filter('[data-uk-slideshow-item="'+t+'"]').addClass("uk-active")}},applyKenBurns:function(i){if(this.hasKenBurns(i)){var s=this.options.kenburnsanimations,t=this.kbindex||0;i.data("cover").attr("class","uk-cover-background uk-position-cover").width(),i.data("cover").addClass(["uk-animation-scale","uk-animation-reverse",s[t].trim()].join(" ")),this.kbindex=s[t+1]?t+1:0}},hasKenBurns:function(i){return this.options.kenburns&&i.data("cover")},next:function(){this.show(this.slides[this.current+1]?this.current+1:0)},previous:function(){this.show(this.slides[this.current-1]?this.current-1:this.slides.length-1)},start:function(){this.stop();var i=this;this.interval=setInterval(function(){i.hovering||i.next()},this.options.autoplayInterval)},stop:function(){this.interval&&clearInterval(this.interval)},playmedia:function(i){if(i&&i[0])switch(i[0].nodeName){case"VIDEO":this.options.videomute||(i[0].muted=!1),i[0].play();break;case"IFRAME":this.options.videomute||i[0].contentWindow.postMessage('{ "event": "command", "func": "unmute", "method":"setVolume", "value":1}',"*"),i[0].contentWindow.postMessage('{ "event": "command", "func": "playVideo", "method":"play"}',"*")}},pausemedia:function(i){switch(i[0].nodeName){case"VIDEO":i[0].pause();break;case"IFRAME":i[0].contentWindow.postMessage('{ "event": "command", "func": "pauseVideo", "method":"pause"}',"*")}},mutemedia:function(i){switch(i[0].nodeName){case"VIDEO":i[0].muted=!0;break;case"IFRAME":i[0].contentWindow.postMessage('{ "event": "command", "func": "mute", "method":"setVolume", "value":0}',"*")}}}),s={none:function(){var s=i.$.Deferred();return s.resolve(),s.promise()},scroll:function(s,t,e){var n=i.$.Deferred();return s.css("animation-duration",this.options.duration+"ms"),t.css("animation-duration",this.options.duration+"ms"),t.css("opacity",1).one(i.support.animation.end,function(){s.removeClass(1===e?"uk-slideshow-scroll-backward-out":"uk-slideshow-scroll-forward-out"),t.css("opacity","").removeClass(1===e?"uk-slideshow-scroll-backward-in":"uk-slideshow-scroll-forward-in"),n.resolve()}.bind(this)),s.addClass(1==e?"uk-slideshow-scroll-backward-out":"uk-slideshow-scroll-forward-out"),t.addClass(1==e?"uk-slideshow-scroll-backward-in":"uk-slideshow-scroll-forward-in"),t.width(),n.promise()},swipe:function(s,t,e){var n=i.$.Deferred();return s.css("animation-duration",this.options.duration+"ms"),t.css("animation-duration",this.options.duration+"ms"),t.css("opacity",1).one(i.support.animation.end,function(){s.removeClass(1===e?"uk-slideshow-swipe-backward-out":"uk-slideshow-swipe-forward-out"),t.css("opacity","").removeClass(1===e?"uk-slideshow-swipe-backward-in":"uk-slideshow-swipe-forward-in"),n.resolve()}.bind(this)),s.addClass(1==e?"uk-slideshow-swipe-backward-out":"uk-slideshow-swipe-forward-out"),t.addClass(1==e?"uk-slideshow-swipe-backward-in":"uk-slideshow-swipe-forward-in"),t.width(),n.promise()},scale:function(s,t){var e=i.$.Deferred();return s.css("animation-duration",this.options.duration+"ms"),t.css("animation-duration",this.options.duration+"ms"),t.css("opacity",1),s.one(i.support.animation.end,function(){s.removeClass("uk-slideshow-scale-out"),t.css("opacity",""),e.resolve()}.bind(this)),s.addClass("uk-slideshow-scale-out"),s.width(),e.promise()},fade:function(s,t){var e=i.$.Deferred();return s.css("animation-duration",this.options.duration+"ms"),t.css("animation-duration",this.options.duration+"ms"),t.css("opacity",1),s.one(i.support.animation.end,function(){s.removeClass("uk-slideshow-fade-out"),t.css("opacity",""),e.resolve()}.bind(this)),s.addClass("uk-slideshow-fade-out"),s.width(),e.promise()}},i.slideshow.animations=s,window.addEventListener("message",function(s){var t,e=s.data;if("string"==typeof e)try{e=JSON.parse(e)}catch(n){e={}}s.origin&&s.origin.indexOf("vimeo")>-1&&"ready"==e.event&&e.player_id&&(t=i.$('[data-player-id="'+e.player_id+'"]'),t.length&&t.data("slideshow").mutemedia(t))},!1)}); \ No newline at end of file diff --git a/media/uikit/js/components/sortable.js b/media/uikit/js/components/sortable.js new file mode 100644 index 00000000..37a369ba --- /dev/null +++ b/media/uikit/js/components/sortable.js @@ -0,0 +1,643 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/* + * Based on nativesortable - Copyright (c) Brian Grinstead - https://github.com/bgrins/nativesortable + */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-sortable", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + var supportsTouch = ('ontouchstart' in window) || (window.DocumentTouch && document instanceof DocumentTouch), + draggingPlaceholder, currentlyDraggingElement, currentlyDraggingTarget, dragging, moving, clickedlink, delayIdle, touchedlists, moved; + + function closestSortable(ele) { + + ele = UI.$(ele); + + do { + if (ele.data('sortable')) { + return ele; + } + ele = UI.$(ele).parent(); + } while(ele.length); + + return ele; + } + + UI.component('sortable', { + + defaults: { + + animation : 150, + threshold : 10, + + childClass : 'uk-sortable-item', + placeholderClass : 'uk-sortable-placeholder', + overClass : 'uk-sortable-over', + draggingClass : 'uk-sortable-dragged', + dragMovingClass : 'uk-sortable-moving', + baseClass : 'uk-sortable', + noDragClass : 'uk-sortable-nodrag', + dragCustomClass : '', + handleClass : false, + group : false, + + stop : function() {}, + start : function() {}, + change : function() {} + }, + + boot: function() { + + // auto init + UI.ready(function(context) { + + UI.$("[data-uk-sortable]", context).each(function(){ + + var ele = UI.$(this); + + if(!ele.data("sortable")) { + var plugin = UI.sortable(ele, UI.Utils.options(ele.attr("data-uk-sortable"))); + } + }); + }); + + UI.$html.on('mousemove touchmove', function(e) { + + if (delayIdle) { + + var src = e.originalEvent.targetTouches ? e.originalEvent.targetTouches[0] : e; + + if (Math.abs(src.pageX - delayIdle.pos.x) > delayIdle.threshold || Math.abs(src.pageY - delayIdle.pos.y) > delayIdle.threshold) { + delayIdle.apply(src); + } + } + + if (draggingPlaceholder) { + + if (!moving) { + moving = true; + draggingPlaceholder.show(); + + draggingPlaceholder.$current.addClass(draggingPlaceholder.$sortable.options.placeholderClass); + draggingPlaceholder.$sortable.element.children().addClass(draggingPlaceholder.$sortable.options.childClass); + + UI.$html.addClass(draggingPlaceholder.$sortable.options.dragMovingClass); + } + + var offset = draggingPlaceholder.data('mouse-offset'), + left = parseInt(e.originalEvent.pageX, 10) + offset.left, + top = parseInt(e.originalEvent.pageY, 10) + offset.top; + + draggingPlaceholder.css({'left': left, 'top': top }); + + // adjust document scrolling + if (top < UI.$win.scrollTop()) { + UI.$win.scrollTop(UI.$win.scrollTop() - Math.ceil(draggingPlaceholder.height()/2)); + } else if ( (top + draggingPlaceholder.height()) > (window.innerHeight + UI.$win.scrollTop()) ) { + UI.$win.scrollTop(UI.$win.scrollTop() + Math.ceil(draggingPlaceholder.height()/2)); + } + } + }); + + UI.$html.on('mouseup touchend', function(e) { + + delayIdle = clickedlink = false; + + // dragging? + if (!currentlyDraggingElement || !draggingPlaceholder) { + // completely reset dragging attempt. will cause weird delay behavior elsewise + currentlyDraggingElement = draggingPlaceholder = null; + return; + } + + // inside or outside of sortable? + var sortable = closestSortable(e.target), + component = draggingPlaceholder.$sortable, + ev = { type: e.type }; + + if (sortable[0]) { + component.dragDrop(ev, component.element); + } + component.dragEnd(ev, component.element); + }); + }, + + init: function() { + + var $this = this, + element = this.element[0], + children; + + touchedlists = []; + + // make sure :empty selector works on empty lists + if (this.element.children().length === 0) { + this.element.html(''); + } + + this.element.data('sortable-group', this.options.group ? this.options.group : UI.Utils.uid('sortable-group')); + + var handleDragStart = delegate(function(e) { + + var $target = UI.$(e.target), + $link = $target.is('a[href]') ? $target:$target.parents('a[href]'); + + if ($target.is(':input')) { + return; + } + + e.preventDefault(); + + if (!supportsTouch && $link.length) { + + $link.one('click', function(e){ + e.preventDefault(); + }).one('mouseup', function(){ + if(!moved) $link.trigger('click'); + }); + } + + return $this.dragStart(e, this); + }); + + var handleDragOver = delegate(function(e) { + + if (!currentlyDraggingElement) { + return true; + } + + if (e.preventDefault) { + e.preventDefault(); + } + + return false; + }); + + var handleDragEnter = delegate(UI.Utils.debounce(function(e) { + return $this.dragEnter(e, this); + }), 40); + + var handleDragLeave = delegate(function(e) { + + // Prevent dragenter on a child from allowing a dragleave on the container + var previousCounter = $this.dragenterData(this); + $this.dragenterData(this, previousCounter - 1); + + // This is a fix for child elements firing dragenter before the parent fires dragleave + if (!$this.dragenterData(this)) { + UI.$(this).removeClass($this.options.overClass); + $this.dragenterData(this, false); + } + }); + + var handleTouchMove = delegate(function(e) { + + if (!currentlyDraggingElement || + currentlyDraggingElement === this || + currentlyDraggingTarget === this) { + return true; + } + + $this.element.children().removeClass($this.options.overClass); + currentlyDraggingTarget = this; + + $this.moveElementNextTo(currentlyDraggingElement, this); + + return prevent(e); + }); + + // Bind/unbind standard mouse/touch events as a polyfill. + function addDragHandlers() { + if (supportsTouch) { + element.addEventListener("touchmove", handleTouchMove, false); + } else { + element.addEventListener('mouseover', handleDragEnter, false); + element.addEventListener('mouseout', handleDragLeave, false); + } + + // document.addEventListener("selectstart", prevent, false); + } + + function removeDragHandlers() { + if (supportsTouch) { + element.removeEventListener("touchmove", handleTouchMove, false); + } else { + element.removeEventListener('mouseover', handleDragEnter, false); + element.removeEventListener('mouseout', handleDragLeave, false); + } + + // document.removeEventListener("selectstart", prevent, false); + } + + this.addDragHandlers = addDragHandlers; + this.removeDragHandlers = removeDragHandlers; + + function handleDragMove(e) { + + if (!currentlyDraggingElement) { + return; + } + + $this.dragMove(e, $this); + } + + function delegate(fn) { + + return function(e) { + + var touch, target, context; + + if (e) { + touch = (supportsTouch && e.touches && e.touches[0]) || { }; + target = touch.target || e.target; + + // Fix event.target for a touch event + if (supportsTouch && document.elementFromPoint) { + target = document.elementFromPoint(e.pageX - document.body.scrollLeft, e.pageY - document.body.scrollTop); + } + } + + if (UI.$(target).hasClass($this.options.childClass)) { + fn.apply(target, [e]); + } else if (target !== element) { + + // If a child is initiating the event or ending it, then use the container as context for the callback. + context = moveUpToChildNode(element, target); + + if (context) { + fn.apply(context, [e]); + } + } + }; + } + + window.addEventListener(supportsTouch ? 'touchmove' : 'mousemove', handleDragMove, false); + element.addEventListener(supportsTouch ? 'touchstart': 'mousedown', handleDragStart, false); + }, + + dragStart: function(e, elem) { + + moved = false; + moving = false; + dragging = false; + + var $this = this, + target = UI.$(e.target), + children = $this.element.children(); + + if (!supportsTouch && e.button==2) { + return; + } + + if ($this.options.handleClass) { + + var handle = target.hasClass($this.options.handleClass) ? target : target.closest('.'+$this.options.handleClass, $this.element); + + if (!handle.length) { + //e.preventDefault(); + return; + } + } + + if (target.is('.'+$this.options.noDragClass) || target.closest('.'+$this.options._noDragClass).length) { + return; + } + + // prevent dragging if taget is a form field + if (target.is(':input')) { + return; + } + + currentlyDraggingElement = elem; + + // init drag placeholder + if (draggingPlaceholder) { + draggingPlaceholder.remove(); + } + + var $current = UI.$(currentlyDraggingElement), offset = $current.offset(); + + delayIdle = { + + pos : { x:e.pageX, y:e.pageY }, + threshold : $this.options.threshold, + apply : function(evt) { + + draggingPlaceholder = UI.$('<div class="'+([$this.options.draggingClass, $this.options.dragCustomClass].join(' '))+'"></div>').css({ + display : 'none', + top : offset.top, + left : offset.left, + width : $current.width(), + height : $current.height(), + padding : $current.css('padding') + }).data({ + 'mouse-offset': { + 'left' : offset.left - parseInt(evt.pageX, 10), + 'top' : offset.top - parseInt(evt.pageY, 10) + }, + 'origin' : $this.element, + 'index' : $current.index() + }).append($current.html()).appendTo('body'); + + draggingPlaceholder.$current = $current; + draggingPlaceholder.$sortable = $this; + $current.data('sortable-group', $this.options.group); + + $this.addDragHandlers(); + + $this.options.start(this, currentlyDraggingElement); + $this.trigger('start.uk.sortable', [$this, currentlyDraggingElement]); + + moved = true; + delayIdle = false; + } + }; + }, + + dragMove: function(e, elem) { + var overEl = UI.$(document.elementFromPoint(e.pageX - document.body.scrollLeft, e.pageY - (window.pageYOffset || document.documentElement.scrollTop))), + overRoot = overEl.closest('.'+this.options.baseClass), + groupOver = overRoot.data("sortable-group"), + $current = UI.$(currentlyDraggingElement), + currentRoot = $current.parent(), + groupCurrent = $current.data("sortable-group"), + overChild; + + if (overRoot[0] !== currentRoot[0] && groupCurrent !== undefined && groupOver === groupCurrent) { + overRoot.data('sortable').addDragHandlers(); + + touchedlists.push(overRoot); + overRoot.children().addClass(this.options.childClass); + + // swap root + if (overRoot.children().length > 0) { + overChild = overEl.closest('.'+this.options.childClass); + overChild.before($current); + } else { // empty list + overEl.append($current); + } + + // list empty? remove inner whitespace to make sure :empty selector works + if (currentRoot.children().length === 0) { + currentRoot.html(''); + } + + UIkit.$doc.trigger('mouseover'); + } + }, + + dragEnter: function(e, elem) { + + if (!currentlyDraggingElement || currentlyDraggingElement === elem) { + return true; + } + + // Prevent dragenter on a child from allowing a dragleave on the container + var previousCounter = this.dragenterData(elem); + + this.dragenterData(elem, previousCounter + 1); + + if (previousCounter === 0) { + + UI.$(elem).addClass(this.options.overClass); + + this.moveElementNextTo(currentlyDraggingElement, elem); + } + + return false; + }, + + dragEnd: function(e, elem) { + + var $this = this; + + // avoid triggering event twice + if (currentlyDraggingElement) { + // TODO: trigger on right element? + this.options.stop(elem); + this.trigger('stop.uk.sortable', [this]); + } + + currentlyDraggingElement = null; + currentlyDraggingTarget = null; + + touchedlists.push(this.element); + touchedlists.forEach(function(el, i) { + UI.$(el).children().each(function() { + if (this.nodeType === 1) { + UI.$(this).removeClass($this.options.overClass) + .removeClass($this.options.placeholderClass) + .removeClass($this.options.childClass); + $this.dragenterData(this, false); + } + }); + }); + + touchedlists = []; + + UI.$html.removeClass(this.options.dragMovingClass); + + this.removeDragHandlers(); + + if (draggingPlaceholder) { + draggingPlaceholder.remove(); + draggingPlaceholder = null; + } + }, + + dragDrop: function(e, elem) { + + if (e.type === 'drop') { + + if (e.stopPropagation) { + e.stopPropagation(); + } + + if (e.preventDefault) { + e.preventDefault(); + } + } + + this.triggerChangeEvents(); + }, + + triggerChangeEvents: function() { + + // trigger events once + if (!currentlyDraggingElement) return; + + var $current = UI.$(currentlyDraggingElement), + oldRoot = draggingPlaceholder.data("origin"), + newRoot = $current.closest('.'+this.options.baseClass), + triggers = []; + + // events depending on move inside lists or across lists + if (oldRoot[0] === newRoot[0] && draggingPlaceholder.data('index') != $current.index() ) { + triggers.push({el: this, mode: 'moved'}); + } else if (oldRoot[0] != newRoot[0]) { + triggers.push({el: newRoot, mode: 'added'}, {el: oldRoot, mode: 'removed'}); + } + + triggers.forEach(function (trigger, i) { + trigger.el.trigger('change.uk.sortable', [trigger.el, currentlyDraggingElement, trigger.mode]); + }); + }, + + dragenterData: function(element, val) { + + element = UI.$(element); + + if (arguments.length == 1) { + return parseInt(element.data('child-dragenter'), 10) || 0; + } else if (!val) { + element.removeData('child-dragenter'); + } else { + element.data('child-dragenter', Math.max(0, val)); + } + }, + + moveElementNextTo: function(element, elementToMoveNextTo) { + + dragging = true; + + var $this = this, + list = UI.$(element).parent().css('min-height', ''), + next = isBelow(element, elementToMoveNextTo) ? elementToMoveNextTo : elementToMoveNextTo.nextSibling, + children = list.children(), + count = children.length; + + if (!$this.options.animation) { + elementToMoveNextTo.parentNode.insertBefore(element, next); + UI.Utils.checkDisplay($this.element.parent()); + return; + } + + list.css('min-height', list.height()); + + children.stop().each(function(){ + var ele = UI.$(this), + offset = ele.position(); + + offset.width = ele.width(); + + ele.data('offset-before', offset); + }); + + elementToMoveNextTo.parentNode.insertBefore(element, next); + + UI.Utils.checkDisplay($this.element.parent()); + + children = list.children().each(function() { + var ele = UI.$(this); + ele.data('offset-after', ele.position()); + }).each(function() { + var ele = UI.$(this), + before = ele.data('offset-before'); + ele.css({'position':'absolute', 'top':before.top, 'left':before.left, 'min-width':before.width }); + }); + + children.each(function(){ + + var ele = UI.$(this), + before = ele.data('offset-before'), + offset = ele.data('offset-after'); + + ele.css('pointer-events', 'none').width(); + + setTimeout(function(){ + ele.animate({'top':offset.top, 'left':offset.left}, $this.options.animation, function() { + ele.css({'position':'','top':'', 'left':'', 'min-width': '', 'pointer-events':''}).removeClass($this.options.overClass).removeData('child-dragenter'); + count--; + if (!count) { + list.css('min-height', ''); + UI.Utils.checkDisplay($this.element.parent()); + } + }); + }, 0); + }); + }, + + serialize: function() { + + var data = [], item, attribute; + + this.element.children().each(function(j, child) { + item = {}; + for (var i = 0; i < child.attributes.length; i++) { + attribute = child.attributes[i]; + if (attribute.name.indexOf('data-') === 0) { + item[attribute.name.substr(5)] = UI.Utils.str2json(attribute.value); + } + } + data.push(item); + }); + + return data; + } + }); + + // helpers + + function isBelow(el1, el2) { + + var parent = el1.parentNode; + + if (el2.parentNode != parent) { + return false; + } + + var cur = el1.previousSibling; + + while (cur && cur.nodeType !== 9) { + if (cur === el2) { + return true; + } + cur = cur.previousSibling; + } + + return false; + } + + function moveUpToChildNode(parent, child) { + var cur = child; + if (cur == parent) { return null; } + + while (cur) { + if (cur.parentNode === parent) { + return cur; + } + + cur = cur.parentNode; + if ( !cur || !cur.ownerDocument || cur.nodeType === 11 ) { + break; + } + } + return null; + } + + function prevent(e) { + if (e.stopPropagation) { + e.stopPropagation(); + } + if (e.preventDefault) { + e.preventDefault(); + } + e.returnValue = false; + } + + return UI.sortable; +}); diff --git a/media/uikit/js/components/sortable.min.js b/media/uikit/js/components/sortable.min.js new file mode 100644 index 00000000..7bd90d72 --- /dev/null +++ b/media/uikit/js/components/sortable.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-sortable",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";function e(e){e=t.$(e);do{if(e.data("sortable"))return e;e=t.$(e).parent()}while(e.length);return e}function o(t,e){var o=t.parentNode;if(e.parentNode!=o)return!1;for(var n=t.previousSibling;n&&9!==n.nodeType;){if(n===e)return!0;n=n.previousSibling}return!1}function n(t,e){var o=e;if(o==t)return null;for(;o;){if(o.parentNode===t)return o;if(o=o.parentNode,!o||!o.ownerDocument||11===o.nodeType)break}return null}function a(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}var s,r,i,l,d,h,u,p,c,g="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch;return t.component("sortable",{defaults:{animation:150,threshold:10,childClass:"uk-sortable-item",placeholderClass:"uk-sortable-placeholder",overClass:"uk-sortable-over",draggingClass:"uk-sortable-dragged",dragMovingClass:"uk-sortable-moving",baseClass:"uk-sortable",noDragClass:"uk-sortable-nodrag",dragCustomClass:"",handleClass:!1,group:!1,stop:function(){},start:function(){},change:function(){}},boot:function(){t.ready(function(e){t.$("[data-uk-sortable]",e).each(function(){var e=t.$(this);if(!e.data("sortable")){t.sortable(e,t.Utils.options(e.attr("data-uk-sortable")))}})}),t.$html.on("mousemove touchmove",function(e){if(u){var o=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0]:e;(Math.abs(o.pageX-u.pos.x)>u.threshold||Math.abs(o.pageY-u.pos.y)>u.threshold)&&u.apply(o)}if(s){d||(d=!0,s.show(),s.$current.addClass(s.$sortable.options.placeholderClass),s.$sortable.element.children().addClass(s.$sortable.options.childClass),t.$html.addClass(s.$sortable.options.dragMovingClass));var n=s.data("mouse-offset"),a=parseInt(e.originalEvent.pageX,10)+n.left,r=parseInt(e.originalEvent.pageY,10)+n.top;s.css({left:a,top:r}),r<t.$win.scrollTop()?t.$win.scrollTop(t.$win.scrollTop()-Math.ceil(s.height()/2)):r+s.height()>window.innerHeight+t.$win.scrollTop()&&t.$win.scrollTop(t.$win.scrollTop()+Math.ceil(s.height()/2))}}),t.$html.on("mouseup touchend",function(t){if(u=h=!1,!r||!s)return r=s=null,void 0;var o=e(t.target),n=s.$sortable,a={type:t.type};o[0]&&n.dragDrop(a,n.element),n.dragEnd(a,n.element)})},init:function(){function e(){g?h.addEventListener("touchmove",v,!1):(h.addEventListener("mouseover",f,!1),h.addEventListener("mouseout",m,!1))}function o(){g?h.removeEventListener("touchmove",v,!1):(h.removeEventListener("mouseover",f,!1),h.removeEventListener("mouseout",m,!1))}function s(t){r&&d.dragMove(t,d)}function l(e){return function(o){var a,s,r;o&&(a=g&&o.touches&&o.touches[0]||{},s=a.target||o.target,g&&document.elementFromPoint&&(s=document.elementFromPoint(o.pageX-document.body.scrollLeft,o.pageY-document.body.scrollTop))),t.$(s).hasClass(d.options.childClass)?e.apply(s,[o]):s!==h&&(r=n(h,s),r&&e.apply(r,[o]))}}var d=this,h=this.element[0];p=[],0===this.element.children().length&&this.element.html(""),this.element.data("sortable-group",this.options.group?this.options.group:t.Utils.uid("sortable-group"));var u=l(function(e){var o=t.$(e.target),n=o.is("a[href]")?o:o.parents("a[href]");if(!o.is(":input"))return e.preventDefault(),!g&&n.length&&n.one("click",function(t){t.preventDefault()}).one("mouseup",function(){c||n.trigger("click")}),d.dragStart(e,this)}),f=(l(function(t){return r?(t.preventDefault&&t.preventDefault(),!1):!0}),l(t.Utils.debounce(function(t){return d.dragEnter(t,this)}),40)),m=l(function(){var e=d.dragenterData(this);d.dragenterData(this,e-1),d.dragenterData(this)||(t.$(this).removeClass(d.options.overClass),d.dragenterData(this,!1))}),v=l(function(t){return r&&r!==this&&i!==this?(d.element.children().removeClass(d.options.overClass),i=this,d.moveElementNextTo(r,this),a(t)):!0});this.addDragHandlers=e,this.removeDragHandlers=o,window.addEventListener(g?"touchmove":"mousemove",s,!1),h.addEventListener(g?"touchstart":"mousedown",u,!1)},dragStart:function(e,o){c=!1,d=!1,l=!1;{var n=this,a=t.$(e.target);n.element.children()}if(g||2!=e.button){if(n.options.handleClass){var i=a.hasClass(n.options.handleClass)?a:a.closest("."+n.options.handleClass,n.element);if(!i.length)return}if(!a.is("."+n.options.noDragClass)&&!a.closest("."+n.options._noDragClass).length&&!a.is(":input")){r=o,s&&s.remove();var h=t.$(r),p=h.offset();u={pos:{x:e.pageX,y:e.pageY},threshold:n.options.threshold,apply:function(e){s=t.$('<div class="'+[n.options.draggingClass,n.options.dragCustomClass].join(" ")+'"></div>').css({display:"none",top:p.top,left:p.left,width:h.width(),height:h.height(),padding:h.css("padding")}).data({"mouse-offset":{left:p.left-parseInt(e.pageX,10),top:p.top-parseInt(e.pageY,10)},origin:n.element,index:h.index()}).append(h.html()).appendTo("body"),s.$current=h,s.$sortable=n,h.data("sortable-group",n.options.group),n.addDragHandlers(),n.options.start(this,r),n.trigger("start.uk.sortable",[n,r]),c=!0,u=!1}}}}},dragMove:function(e){var o,n=t.$(document.elementFromPoint(e.pageX-document.body.scrollLeft,e.pageY-(window.pageYOffset||document.documentElement.scrollTop))),a=n.closest("."+this.options.baseClass),s=a.data("sortable-group"),i=t.$(r),l=i.parent(),d=i.data("sortable-group");a[0]!==l[0]&&void 0!==d&&s===d&&(a.data("sortable").addDragHandlers(),p.push(a),a.children().addClass(this.options.childClass),a.children().length>0?(o=n.closest("."+this.options.childClass),o.before(i)):n.append(i),0===l.children().length&&l.html(""),UIkit.$doc.trigger("mouseover"))},dragEnter:function(e,o){if(!r||r===o)return!0;var n=this.dragenterData(o);return this.dragenterData(o,n+1),0===n&&(t.$(o).addClass(this.options.overClass),this.moveElementNextTo(r,o)),!1},dragEnd:function(e,o){var n=this;r&&(this.options.stop(o),this.trigger("stop.uk.sortable",[this])),r=null,i=null,p.push(this.element),p.forEach(function(e){t.$(e).children().each(function(){1===this.nodeType&&(t.$(this).removeClass(n.options.overClass).removeClass(n.options.placeholderClass).removeClass(n.options.childClass),n.dragenterData(this,!1))})}),p=[],t.$html.removeClass(this.options.dragMovingClass),this.removeDragHandlers(),s&&(s.remove(),s=null)},dragDrop:function(t){"drop"===t.type&&(t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()),this.triggerChangeEvents()},triggerChangeEvents:function(){if(r){var e=t.$(r),o=s.data("origin"),n=e.closest("."+this.options.baseClass),a=[];o[0]===n[0]&&s.data("index")!=e.index()?a.push({el:this,mode:"moved"}):o[0]!=n[0]&&a.push({el:n,mode:"added"},{el:o,mode:"removed"}),a.forEach(function(t){t.el.trigger("change.uk.sortable",[t.el,r,t.mode])})}},dragenterData:function(e,o){return e=t.$(e),1==arguments.length?parseInt(e.data("child-dragenter"),10)||0:(o?e.data("child-dragenter",Math.max(0,o)):e.removeData("child-dragenter"),void 0)},moveElementNextTo:function(e,n){l=!0;var a=this,s=t.$(e).parent().css("min-height",""),r=o(e,n)?n:n.nextSibling,i=s.children(),d=i.length;return a.options.animation?(s.css("min-height",s.height()),i.stop().each(function(){var e=t.$(this),o=e.position();o.width=e.width(),e.data("offset-before",o)}),n.parentNode.insertBefore(e,r),t.Utils.checkDisplay(a.element.parent()),i=s.children().each(function(){var e=t.$(this);e.data("offset-after",e.position())}).each(function(){var e=t.$(this),o=e.data("offset-before");e.css({position:"absolute",top:o.top,left:o.left,"min-width":o.width})}),i.each(function(){var e=t.$(this),o=(e.data("offset-before"),e.data("offset-after"));e.css("pointer-events","none").width(),setTimeout(function(){e.animate({top:o.top,left:o.left},a.options.animation,function(){e.css({position:"",top:"",left:"","min-width":"","pointer-events":""}).removeClass(a.options.overClass).removeData("child-dragenter"),d--,d||(s.css("min-height",""),t.Utils.checkDisplay(a.element.parent()))})},0)}),void 0):(n.parentNode.insertBefore(e,r),t.Utils.checkDisplay(a.element.parent()),void 0)},serialize:function(){var e,o,n=[];return this.element.children().each(function(a,s){e={};for(var r=0;r<s.attributes.length;r++)o=s.attributes[r],0===o.name.indexOf("data-")&&(e[o.name.substr(5)]=t.Utils.str2json(o.value));n.push(e)}),n}}),t.sortable}); \ No newline at end of file diff --git a/media/uikit/js/components/sticky.js b/media/uikit/js/components/sticky.js new file mode 100644 index 00000000..a335a5ee --- /dev/null +++ b/media/uikit/js/components/sticky.js @@ -0,0 +1,298 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-sticky", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + var $win = UI.$win, + $doc = UI.$doc, + sticked = []; + + UI.component('sticky', { + + defaults: { + top : 0, + bottom : 0, + animation : '', + clsinit : 'uk-sticky-init', + clsactive : 'uk-active', + getWidthFrom : '', + boundary : false, + media : false, + target : false, + disabled : false + }, + + boot: function() { + + // should be more efficient than using $win.scroll(checkscrollposition): + UI.$doc.on('scrolling.uk.document', function() { checkscrollposition(); }); + UI.$win.on('resize orientationchange', UI.Utils.debounce(function() { + + if (!sticked.length) return; + + for (var i = 0; i < sticked.length; i++) { + sticked[i].reset(true); + sticked[i].self.computeWrapper(); + } + + checkscrollposition(); + }, 100)); + + // init code + UI.ready(function(context) { + + setTimeout(function(){ + + UI.$("[data-uk-sticky]", context).each(function(){ + + var $ele = UI.$(this); + + if(!$ele.data("sticky")) { + UI.sticky($ele, UI.Utils.options($ele.attr('data-uk-sticky'))); + } + }); + + checkscrollposition(); + }, 0); + }); + }, + + init: function() { + + var wrapper = UI.$('<div class="uk-sticky-placeholder"></div>'), boundary = this.options.boundary, boundtoparent; + + this.wrapper = this.element.css('margin', 0).wrap(wrapper).parent(); + + this.computeWrapper(); + + if (boundary) { + + if (boundary === true) { + + boundary = this.wrapper.parent(); + boundtoparent = true; + + } else if (typeof boundary === "string") { + boundary = UI.$(boundary); + } + } + + this.sticky = { + self : this, + options : this.options, + element : this.element, + currentTop : null, + wrapper : this.wrapper, + init : false, + getWidthFrom : this.options.getWidthFrom || this.wrapper, + boundary : boundary, + boundtoparent : boundtoparent, + reset : function(force) { + + var finalize = function() { + this.element.css({"position":"", "top":"", "width":"", "left":"", "margin":"0"}); + this.element.removeClass([this.options.animation, 'uk-animation-reverse', this.options.clsactive].join(' ')); + + this.currentTop = null; + this.animate = false; + }.bind(this); + + + if (!force && this.options.animation && UI.support.animation) { + + this.animate = true; + + this.element.removeClass(this.options.animation).one(UI.support.animation.end, function(){ + finalize(); + }).width(); // force redraw + + this.element.addClass(this.options.animation+' '+'uk-animation-reverse'); + } else { + finalize(); + } + }, + + check: function() { + + if (this.options.disabled) { + return false; + } + + if (this.options.media) { + + switch(typeof(this.options.media)) { + case 'number': + if (window.innerWidth < this.options.media) { + return false; + } + break; + case 'string': + if (window.matchMedia && !window.matchMedia(this.options.media).matches) { + return false; + } + break; + } + } + + var scrollTop = $win.scrollTop(), + documentHeight = $doc.height(), + dwh = documentHeight - window.innerHeight, + extra = (scrollTop > dwh) ? dwh - scrollTop : 0, + elementTop = this.wrapper.offset().top, + etse = elementTop - this.options.top - extra; + + return (scrollTop >= etse); + } + }; + + sticked.push(this.sticky); + }, + + update: function() { + checkscrollposition(this.sticky); + }, + + enable: function() { + this.options.disabled = false; + this.update(); + }, + + disable: function(force) { + this.options.disabled = true; + this.sticky.reset(force); + }, + + computeWrapper: function() { + + this.wrapper.css({ + 'height' : this.element.css('position') != 'absolute' ? this.element.outerHeight() : '', + 'float' : this.element.css("float") != "none" ? this.element.css("float") : '', + 'margin' : this.element.css("margin") + }); + } + }); + + function checkscrollposition() { + + var stickies = arguments.length ? arguments : sticked; + + if (!stickies.length || $win.scrollTop() < 0) return; + + var scrollTop = $win.scrollTop(), + documentHeight = $doc.height(), + windowHeight = $win.height(), + dwh = documentHeight - windowHeight, + extra = (scrollTop > dwh) ? dwh - scrollTop : 0, + newTop, containerBottom, stickyHeight, sticky; + + for (var i = 0; i < stickies.length; i++) { + + sticky = stickies[i]; + + if (!sticky.element.is(":visible") || sticky.animate) { + continue; + } + + if (!sticky.check()) { + + if (sticky.currentTop !== null) { + sticky.reset(); + } + + } else { + + if (sticky.options.top < 0) { + newTop = 0; + } else { + stickyHeight = sticky.element.outerHeight(); + newTop = documentHeight - stickyHeight - sticky.options.top - sticky.options.bottom - scrollTop - extra; + newTop = newTop < 0 ? newTop + sticky.options.top : sticky.options.top; + } + + if (sticky.boundary && sticky.boundary.length) { + + var bTop = sticky.boundary.position().top; + + if (sticky.boundtoparent) { + containerBottom = documentHeight - (bTop + sticky.boundary.outerHeight()) + parseInt(sticky.boundary.css('padding-bottom')); + } else { + containerBottom = documentHeight - bTop - parseInt(sticky.boundary.css('margin-top')); + } + + newTop = (scrollTop + stickyHeight) > (documentHeight - containerBottom - (sticky.options.top < 0 ? 0 : sticky.options.top)) ? (documentHeight - containerBottom) - (scrollTop + stickyHeight) : newTop; + } + + + if (sticky.currentTop != newTop) { + + sticky.element.css({ + "position" : "fixed", + "top" : newTop, + "width" : (typeof sticky.getWidthFrom !== 'undefined') ? UI.$(sticky.getWidthFrom).width() : sticky.element.width(), + "left" : sticky.wrapper.offset().left + }); + + if (!sticky.init) { + + sticky.element.addClass(sticky.options.clsinit); + + if (location.hash && scrollTop > 0 && sticky.options.target) { + + var $target = UI.$(location.hash); + + if ($target.length) { + + setTimeout((function($target, sticky){ + + return function() { + + sticky.element.width(); // force redraw + + var offset = $target.offset(), + maxoffset = offset.top + $target.outerHeight(), + stickyOffset = sticky.element.offset(), + stickyHeight = sticky.element.outerHeight(), + stickyMaxOffset = stickyOffset.top + stickyHeight; + + if (stickyOffset.top < maxoffset && offset.top < stickyMaxOffset) { + scrollTop = offset.top - stickyHeight - sticky.options.target; + window.scrollTo(0, scrollTop); + } + }; + + })($target, sticky), 0); + } + } + } + + sticky.element.addClass(sticky.options.clsactive); + sticky.element.css('margin', ''); + + if (sticky.options.animation && sticky.init) { + sticky.element.addClass(sticky.options.animation); + } + + sticky.currentTop = newTop; + } + } + + sticky.init = true; + } + } + + return UI.sticky; +}); diff --git a/media/uikit/js/components/sticky.min.js b/media/uikit/js/components/sticky.min.js new file mode 100644 index 00000000..a0f318e2 --- /dev/null +++ b/media/uikit/js/components/sticky.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var i;window.UIkit&&(i=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-sticky",["uikit"],function(){return i||t(UIkit)})}(function(t){"use strict";function i(){var i=arguments.length?arguments:o;if(i.length&&!(e.scrollTop()<0))for(var s,a,r,p,h=e.scrollTop(),c=n.height(),l=e.height(),u=c-l,d=h>u?u-h:0,m=0;m<i.length;m++)if(p=i[m],p.element.is(":visible")&&!p.animate){if(p.check()){if(p.options.top<0?s=0:(r=p.element.outerHeight(),s=c-r-p.options.top-p.options.bottom-h-d,s=0>s?s+p.options.top:p.options.top),p.boundary&&p.boundary.length){var f=p.boundary.position().top;a=p.boundtoparent?c-(f+p.boundary.outerHeight())+parseInt(p.boundary.css("padding-bottom")):c-f-parseInt(p.boundary.css("margin-top")),s=h+r>c-a-(p.options.top<0?0:p.options.top)?c-a-(h+r):s}if(p.currentTop!=s){if(p.element.css({position:"fixed",top:s,width:"undefined"!=typeof p.getWidthFrom?t.$(p.getWidthFrom).width():p.element.width(),left:p.wrapper.offset().left}),!p.init&&(p.element.addClass(p.options.clsinit),location.hash&&h>0&&p.options.target)){var g=t.$(location.hash);g.length&&setTimeout(function(t,i){return function(){i.element.width();var e=t.offset(),n=e.top+t.outerHeight(),o=i.element.offset(),s=i.element.outerHeight(),a=o.top+s;o.top<n&&e.top<a&&(h=e.top-s-i.options.target,window.scrollTo(0,h))}}(g,p),0)}p.element.addClass(p.options.clsactive),p.element.css("margin",""),p.options.animation&&p.init&&p.element.addClass(p.options.animation),p.currentTop=s}}else null!==p.currentTop&&p.reset();p.init=!0}}var e=t.$win,n=t.$doc,o=[];return t.component("sticky",{defaults:{top:0,bottom:0,animation:"",clsinit:"uk-sticky-init",clsactive:"uk-active",getWidthFrom:"",boundary:!1,media:!1,target:!1,disabled:!1},boot:function(){t.$doc.on("scrolling.uk.document",function(){i()}),t.$win.on("resize orientationchange",t.Utils.debounce(function(){if(o.length){for(var t=0;t<o.length;t++)o[t].reset(!0),o[t].self.computeWrapper();i()}},100)),t.ready(function(e){setTimeout(function(){t.$("[data-uk-sticky]",e).each(function(){var i=t.$(this);i.data("sticky")||t.sticky(i,t.Utils.options(i.attr("data-uk-sticky")))}),i()},0)})},init:function(){var i,s=t.$('<div class="uk-sticky-placeholder"></div>'),a=this.options.boundary;this.wrapper=this.element.css("margin",0).wrap(s).parent(),this.computeWrapper(),a&&(a===!0?(a=this.wrapper.parent(),i=!0):"string"==typeof a&&(a=t.$(a))),this.sticky={self:this,options:this.options,element:this.element,currentTop:null,wrapper:this.wrapper,init:!1,getWidthFrom:this.options.getWidthFrom||this.wrapper,boundary:a,boundtoparent:i,reset:function(i){var e=function(){this.element.css({position:"",top:"",width:"",left:"",margin:"0"}),this.element.removeClass([this.options.animation,"uk-animation-reverse",this.options.clsactive].join(" ")),this.currentTop=null,this.animate=!1}.bind(this);!i&&this.options.animation&&t.support.animation?(this.animate=!0,this.element.removeClass(this.options.animation).one(t.support.animation.end,function(){e()}).width(),this.element.addClass(this.options.animation+" uk-animation-reverse")):e()},check:function(){if(this.options.disabled)return!1;if(this.options.media)switch(typeof this.options.media){case"number":if(window.innerWidth<this.options.media)return!1;break;case"string":if(window.matchMedia&&!window.matchMedia(this.options.media).matches)return!1}var t=e.scrollTop(),i=n.height(),o=i-window.innerHeight,s=t>o?o-t:0,a=this.wrapper.offset().top,r=a-this.options.top-s;return t>=r}},o.push(this.sticky)},update:function(){i(this.sticky)},enable:function(){this.options.disabled=!1,this.update()},disable:function(t){this.options.disabled=!0,this.sticky.reset(t)},computeWrapper:function(){this.wrapper.css({height:"absolute"!=this.element.css("position")?this.element.outerHeight():"","float":"none"!=this.element.css("float")?this.element.css("float"):"",margin:this.element.css("margin")})}}),t.sticky}); \ No newline at end of file diff --git a/media/uikit/js/components/timepicker.js b/media/uikit/js/components/timepicker.js new file mode 100644 index 00000000..4f48c3ff --- /dev/null +++ b/media/uikit/js/components/timepicker.js @@ -0,0 +1,192 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-search", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + + UI.component('timepicker', { + + defaults: { + format : '24h', + delay : 0, + start : 0, + end : 24 + }, + + boot: function() { + + // init code + UI.$html.on("focus.timepicker.uikit", "[data-uk-timepicker]", function(e) { + + var ele = UI.$(this); + + if (!ele.data("timepicker")) { + var obj = UI.timepicker(ele, UI.Utils.options(ele.attr("data-uk-timepicker"))); + + setTimeout(function(){ + obj.autocomplete.input.focus(); + }, 40); + } + }); + }, + + init: function() { + + var $this = this, times = getTimeRange(this.options.start, this.options.end), container; + + this.options.minLength = 0; + this.options.template = '<ul class="uk-nav uk-nav-autocomplete uk-autocomplete-results">{{~items}}<li data-value="{{$item.value}}"><a>{{$item.value}}</a></li>{{/items}}</ul>'; + + this.options.source = function(release) { + release(times[$this.options.format] || times['12h']); + }; + + if (this.element.is('input')) { + this.element.wrap('<div class="uk-autocomplete"></div>'); + container = this.element.parent(); + } else { + container = this.element.addClass('uk-autocomplete'); + } + + this.autocomplete = UI.autocomplete(container, this.options); + this.autocomplete.dropdown.addClass('uk-dropdown-small uk-dropdown-scrollable'); + + this.autocomplete.on('show.uk.autocomplete', function() { + + var selected = $this.autocomplete.dropdown.find('[data-value="'+$this.autocomplete.input.val()+'"]'); + + setTimeout(function(){ + $this.autocomplete.pick(selected, true); + }, 10); + }); + + this.autocomplete.input.on('focus', function(){ + + $this.autocomplete.value = Math.random(); + $this.autocomplete.triggercomplete(); + + }).on('blur', function() { + $this.checkTime(); + }); + + this.element.data("timepicker", this); + }, + + checkTime: function() { + + var arr, timeArray, meridian = 'AM', hour, minute, time = this.autocomplete.input.val(); + + if (this.options.format == '12h') { + arr = time.split(' '); + timeArray = arr[0].split(':'); + meridian = arr[1]; + } else { + timeArray = time.split(':'); + } + + hour = parseInt(timeArray[0], 10); + minute = parseInt(timeArray[1], 10); + + if (isNaN(hour)) hour = 0; + if (isNaN(minute)) minute = 0; + + if (this.options.format == '12h') { + if (hour > 12) { + hour = 12; + } else if (hour < 0) { + hour = 12; + } + + if (meridian === 'am' || meridian === 'a') { + meridian = 'AM'; + } else if (meridian === 'pm' || meridian === 'p') { + meridian = 'PM'; + } + + if (meridian !== 'AM' && meridian !== 'PM') { + meridian = 'AM'; + } + + } else { + + if (hour >= 24) { + hour = 23; + } else if (hour < 0) { + hour = 0; + } + } + + if (minute < 0) { + minute = 0; + } else if (minute >= 60) { + minute = 0; + } + + this.autocomplete.input.val(this.formatTime(hour, minute, meridian)).trigger('change'); + }, + + formatTime: function(hour, minute, meridian) { + hour = hour < 10 ? '0' + hour : hour; + minute = minute < 10 ? '0' + minute : minute; + return hour + ':' + minute + (this.options.format == '12h' ? ' ' + meridian : ''); + } + }); + + // helper + + function getTimeRange(start, end) { + + start = start || 0; + end = end || 24; + + var times = {'12h':[], '24h':[]}, i, h; + + for (i = start, h=''; i<end; i++) { + + h = ''+i; + + if (i<10) h = '0'+h; + + times['24h'].push({value: (h+':00')}); + times['24h'].push({value: (h+':30')}); + + if (i === 0) { + h = 12; + times['12h'].push({value: (h+':00 AM')}); + times['12h'].push({value: (h+':30 AM')}); + } + + if (i > 0 && i<13 && i!==12) { + times['12h'].push({value: (h+':00 AM')}); + times['12h'].push({value: (h+':30 AM')}); + } + + if (i >= 12) { + + h = h-12; + if (h === 0) h = 12; + if (h < 10) h = '0'+String(h); + + times['12h'].push({value: (h+':00 PM')}); + times['12h'].push({value: (h+':30 PM')}); + } + } + + return times; + } + +}); diff --git a/media/uikit/js/components/timepicker.min.js b/media/uikit/js/components/timepicker.min.js new file mode 100644 index 00000000..f11f4a8e --- /dev/null +++ b/media/uikit/js/components/timepicker.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-search",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";function e(t,e){t=t||0,e=e||24;var i,o,a={"12h":[],"24h":[]};for(i=t,o="";e>i;i++)o=""+i,10>i&&(o="0"+o),a["24h"].push({value:o+":00"}),a["24h"].push({value:o+":30"}),0===i&&(o=12,a["12h"].push({value:o+":00 AM"}),a["12h"].push({value:o+":30 AM"})),i>0&&13>i&&12!==i&&(a["12h"].push({value:o+":00 AM"}),a["12h"].push({value:o+":30 AM"})),i>=12&&(o-=12,0===o&&(o=12),10>o&&(o="0"+String(o)),a["12h"].push({value:o+":00 PM"}),a["12h"].push({value:o+":30 PM"}));return a}t.component("timepicker",{defaults:{format:"24h",delay:0,start:0,end:24},boot:function(){t.$html.on("focus.timepicker.uikit","[data-uk-timepicker]",function(){var e=t.$(this);if(!e.data("timepicker")){var i=t.timepicker(e,t.Utils.options(e.attr("data-uk-timepicker")));setTimeout(function(){i.autocomplete.input.focus()},40)}})},init:function(){var i,o=this,a=e(this.options.start,this.options.end);this.options.minLength=0,this.options.template='<ul class="uk-nav uk-nav-autocomplete uk-autocomplete-results">{{~items}}<li data-value="{{$item.value}}"><a>{{$item.value}}</a></li>{{/items}}</ul>',this.options.source=function(t){t(a[o.options.format]||a["12h"])},this.element.is("input")?(this.element.wrap('<div class="uk-autocomplete"></div>'),i=this.element.parent()):i=this.element.addClass("uk-autocomplete"),this.autocomplete=t.autocomplete(i,this.options),this.autocomplete.dropdown.addClass("uk-dropdown-small uk-dropdown-scrollable"),this.autocomplete.on("show.uk.autocomplete",function(){var t=o.autocomplete.dropdown.find('[data-value="'+o.autocomplete.input.val()+'"]');setTimeout(function(){o.autocomplete.pick(t,!0)},10)}),this.autocomplete.input.on("focus",function(){o.autocomplete.value=Math.random(),o.autocomplete.triggercomplete()}).on("blur",function(){o.checkTime()}),this.element.data("timepicker",this)},checkTime:function(){var t,e,i,o,a="AM",u=this.autocomplete.input.val();"12h"==this.options.format?(t=u.split(" "),e=t[0].split(":"),a=t[1]):e=u.split(":"),i=parseInt(e[0],10),o=parseInt(e[1],10),isNaN(i)&&(i=0),isNaN(o)&&(o=0),"12h"==this.options.format?(i>12?i=12:0>i&&(i=12),"am"===a||"a"===a?a="AM":("pm"===a||"p"===a)&&(a="PM"),"AM"!==a&&"PM"!==a&&(a="AM")):i>=24?i=23:0>i&&(i=0),0>o?o=0:o>=60&&(o=0),this.autocomplete.input.val(this.formatTime(i,o,a)).trigger("change")},formatTime:function(t,e,i){return t=10>t?"0"+t:t,e=10>e?"0"+e:e,t+":"+e+("12h"==this.options.format?" "+i:"")}})}); \ No newline at end of file diff --git a/media/uikit/js/components/tooltip.js b/media/uikit/js/components/tooltip.js new file mode 100644 index 00000000..8e704f78 --- /dev/null +++ b/media/uikit/js/components/tooltip.js @@ -0,0 +1,234 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-tooltip", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + var $tooltip, // tooltip container + tooltipdelay, checkdelay; + + UI.component('tooltip', { + + defaults: { + "offset": 5, + "pos": "top", + "animation": false, + "delay": 0, // in miliseconds + "cls": "", + "activeClass": "uk-active", + "src": function(ele, title) { + + title = ele.attr('title'); + + if (title) { + ele.data('cached-title', title).removeAttr('title'); + } + + return ele.data("cached-title"); + } + }, + + tip: "", + + boot: function() { + + // init code + UI.$html.on("mouseenter.tooltip.uikit focus.tooltip.uikit", "[data-uk-tooltip]", function(e) { + var ele = UI.$(this); + + if (!ele.data("tooltip")) { + var obj = UI.tooltip(ele, UI.Utils.options(ele.attr("data-uk-tooltip"))); + ele.trigger("mouseenter"); + } + }); + }, + + init: function() { + + var $this = this; + + if (!$tooltip) { + $tooltip = UI.$('<div class="uk-tooltip"></div>').appendTo("body"); + } + + this.on({ + focus : function(e) { $this.show(); }, + blur : function(e) { $this.hide(); }, + mouseenter : function(e) { $this.show(); }, + mouseleave : function(e) { $this.hide(); } + }); + }, + + show: function() { + + this.tip = typeof(this.options.src) === "function" ? this.options.src(this.element) : this.options.src; + + if (tooltipdelay) clearTimeout(tooltipdelay); + if (checkdelay) clearTimeout(checkdelay); + if (!this.tip.length) return; + + $tooltip.stop().css({"top": -2000, "visibility": "hidden"}).removeClass(this.options.activeClass).show(); + $tooltip.html('<div class="uk-tooltip-inner">' + this.tip + '</div>'); + + var $this = this, + pos = UI.$.extend({}, this.element.offset(), {width: this.element[0].offsetWidth, height: this.element[0].offsetHeight}), + width = $tooltip[0].offsetWidth, + height = $tooltip[0].offsetHeight, + offset = typeof(this.options.offset) === "function" ? this.options.offset.call(this.element) : this.options.offset, + position = typeof(this.options.pos) === "function" ? this.options.pos.call(this.element) : this.options.pos, + tmppos = position.split("-"), + tcss = { + "display" : "none", + "visibility" : "visible", + "top" : (pos.top + pos.height + height), + "left" : pos.left + }; + + + // prevent strange position + // when tooltip is in offcanvas etc. + if (UI.$html.css('position')=='fixed' || UI.$body.css('position')=='fixed'){ + var bodyoffset = UI.$('body').offset(), + htmloffset = UI.$('html').offset(), + docoffset = {'top': (htmloffset.top + bodyoffset.top), 'left': (htmloffset.left + bodyoffset.left)}; + + pos.left -= docoffset.left; + pos.top -= docoffset.top; + } + + + if ((tmppos[0] == "left" || tmppos[0] == "right") && UI.langdirection == 'right') { + tmppos[0] = tmppos[0] == "left" ? "right" : "left"; + } + + var variants = { + "bottom" : {top: pos.top + pos.height + offset, left: pos.left + pos.width / 2 - width / 2}, + "top" : {top: pos.top - height - offset, left: pos.left + pos.width / 2 - width / 2}, + "left" : {top: pos.top + pos.height / 2 - height / 2, left: pos.left - width - offset}, + "right" : {top: pos.top + pos.height / 2 - height / 2, left: pos.left + pos.width + offset} + }; + + UI.$.extend(tcss, variants[tmppos[0]]); + + if (tmppos.length == 2) tcss.left = (tmppos[1] == 'left') ? (pos.left) : ((pos.left + pos.width) - width); + + var boundary = this.checkBoundary(tcss.left, tcss.top, width, height); + + if(boundary) { + + switch(boundary) { + case "x": + + if (tmppos.length == 2) { + position = tmppos[0]+"-"+(tcss.left < 0 ? "left": "right"); + } else { + position = tcss.left < 0 ? "right": "left"; + } + + break; + + case "y": + if (tmppos.length == 2) { + position = (tcss.top < 0 ? "bottom": "top")+"-"+tmppos[1]; + } else { + position = (tcss.top < 0 ? "bottom": "top"); + } + + break; + + case "xy": + if (tmppos.length == 2) { + position = (tcss.top < 0 ? "bottom": "top")+"-"+(tcss.left < 0 ? "left": "right"); + } else { + position = tcss.left < 0 ? "right": "left"; + } + + break; + + } + + tmppos = position.split("-"); + + UI.$.extend(tcss, variants[tmppos[0]]); + + if (tmppos.length == 2) tcss.left = (tmppos[1] == 'left') ? (pos.left) : ((pos.left + pos.width) - width); + } + + + tcss.left -= UI.$body.position().left; + + tooltipdelay = setTimeout(function(){ + + $tooltip.css(tcss).attr("class", ["uk-tooltip", "uk-tooltip-"+position, $this.options.cls].join(' ')); + + if ($this.options.animation) { + $tooltip.css({opacity: 0, display: 'block'}).addClass($this.options.activeClass).animate({opacity: 1}, parseInt($this.options.animation, 10) || 400); + } else { + $tooltip.show().addClass($this.options.activeClass); + } + + tooltipdelay = false; + + // close tooltip if element was removed or hidden + checkdelay = setInterval(function(){ + if(!$this.element.is(':visible')) $this.hide(); + }, 150); + + }, parseInt(this.options.delay, 10) || 0); + }, + + hide: function() { + if(this.element.is("input") && this.element[0]===document.activeElement) return; + + if(tooltipdelay) clearTimeout(tooltipdelay); + if (checkdelay) clearTimeout(checkdelay); + + $tooltip.stop(); + + if (this.options.animation) { + + var $this = this; + + $tooltip.fadeOut(parseInt(this.options.animation, 10) || 400, function(){ + $tooltip.removeClass($this.options.activeClass) + }); + + } else { + $tooltip.hide().removeClass(this.options.activeClass); + } + }, + + content: function() { + return this.tip; + }, + + checkBoundary: function(left, top, width, height) { + + var axis = ""; + + if(left < 0 || ((left - UI.$win.scrollLeft())+width) > window.innerWidth) { + axis += "x"; + } + + if(top < 0 || ((top - UI.$win.scrollTop())+height) > window.innerHeight) { + axis += "y"; + } + + return axis; + } + }); + + return UI.tooltip; +}); diff --git a/media/uikit/js/components/tooltip.min.js b/media/uikit/js/components/tooltip.min.js new file mode 100644 index 00000000..80a1f052 --- /dev/null +++ b/media/uikit/js/components/tooltip.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){var i;window.UIkit&&(i=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-tooltip",["uikit"],function(){return i||t(UIkit)})}(function(t){"use strict";var i,o,e;return t.component("tooltip",{defaults:{offset:5,pos:"top",animation:!1,delay:0,cls:"",activeClass:"uk-active",src:function(t,i){return i=t.attr("title"),i&&t.data("cached-title",i).removeAttr("title"),t.data("cached-title")}},tip:"",boot:function(){t.$html.on("mouseenter.tooltip.uikit focus.tooltip.uikit","[data-uk-tooltip]",function(){var i=t.$(this);if(!i.data("tooltip")){{t.tooltip(i,t.Utils.options(i.attr("data-uk-tooltip")))}i.trigger("mouseenter")}})},init:function(){var o=this;i||(i=t.$('<div class="uk-tooltip"></div>').appendTo("body")),this.on({focus:function(){o.show()},blur:function(){o.hide()},mouseenter:function(){o.show()},mouseleave:function(){o.hide()}})},show:function(){if(this.tip="function"==typeof this.options.src?this.options.src(this.element):this.options.src,o&&clearTimeout(o),e&&clearTimeout(e),this.tip.length){i.stop().css({top:-2e3,visibility:"hidden"}).removeClass(this.options.activeClass).show(),i.html('<div class="uk-tooltip-inner">'+this.tip+"</div>");var s=this,n=t.$.extend({},this.element.offset(),{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}),l=i[0].offsetWidth,f=i[0].offsetHeight,p="function"==typeof this.options.offset?this.options.offset.call(this.element):this.options.offset,a="function"==typeof this.options.pos?this.options.pos.call(this.element):this.options.pos,h=a.split("-"),c={display:"none",visibility:"visible",top:n.top+n.height+f,left:n.left};if("fixed"==t.$html.css("position")||"fixed"==t.$body.css("position")){var r=t.$("body").offset(),d=t.$("html").offset(),u={top:d.top+r.top,left:d.left+r.left};n.left-=u.left,n.top-=u.top}"left"!=h[0]&&"right"!=h[0]||"right"!=t.langdirection||(h[0]="left"==h[0]?"right":"left");var m={bottom:{top:n.top+n.height+p,left:n.left+n.width/2-l/2},top:{top:n.top-f-p,left:n.left+n.width/2-l/2},left:{top:n.top+n.height/2-f/2,left:n.left-l-p},right:{top:n.top+n.height/2-f/2,left:n.left+n.width+p}};t.$.extend(c,m[h[0]]),2==h.length&&(c.left="left"==h[1]?n.left:n.left+n.width-l);var v=this.checkBoundary(c.left,c.top,l,f);if(v){switch(v){case"x":a=2==h.length?h[0]+"-"+(c.left<0?"left":"right"):c.left<0?"right":"left";break;case"y":a=2==h.length?(c.top<0?"bottom":"top")+"-"+h[1]:c.top<0?"bottom":"top";break;case"xy":a=2==h.length?(c.top<0?"bottom":"top")+"-"+(c.left<0?"left":"right"):c.left<0?"right":"left"}h=a.split("-"),t.$.extend(c,m[h[0]]),2==h.length&&(c.left="left"==h[1]?n.left:n.left+n.width-l)}c.left-=t.$body.position().left,o=setTimeout(function(){i.css(c).attr("class",["uk-tooltip","uk-tooltip-"+a,s.options.cls].join(" ")),s.options.animation?i.css({opacity:0,display:"block"}).addClass(s.options.activeClass).animate({opacity:1},parseInt(s.options.animation,10)||400):i.show().addClass(s.options.activeClass),o=!1,e=setInterval(function(){s.element.is(":visible")||s.hide()},150)},parseInt(this.options.delay,10)||0)}},hide:function(){if(!this.element.is("input")||this.element[0]!==document.activeElement)if(o&&clearTimeout(o),e&&clearTimeout(e),i.stop(),this.options.animation){var t=this;i.fadeOut(parseInt(this.options.animation,10)||400,function(){i.removeClass(t.options.activeClass)})}else i.hide().removeClass(this.options.activeClass)},content:function(){return this.tip},checkBoundary:function(i,o,e,s){var n="";return(0>i||i-t.$win.scrollLeft()+e>window.innerWidth)&&(n+="x"),(0>o||o-t.$win.scrollTop()+s>window.innerHeight)&&(n+="y"),n}}),t.tooltip}); \ No newline at end of file diff --git a/media/uikit/js/components/upload.js b/media/uikit/js/components/upload.js new file mode 100644 index 00000000..21699b01 --- /dev/null +++ b/media/uikit/js/components/upload.js @@ -0,0 +1,256 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(addon) { + + var component; + + if (window.UIkit) { + component = addon(UIkit); + } + + if (typeof define == "function" && define.amd) { + define("uikit-upload", ["uikit"], function(){ + return component || addon(UIkit); + }); + } + +})(function(UI){ + + "use strict"; + + UI.component('uploadSelect', { + + init: function() { + + var $this = this; + + this.on("change", function() { + xhrupload($this.element[0].files, $this.options); + var twin = $this.element.clone(true).data('uploadSelect', $this); + $this.element.replaceWith(twin); + $this.element = twin; + }); + } + }); + + UI.component('uploadDrop', { + + defaults: { + 'dragoverClass': 'uk-dragover' + }, + + init: function() { + + var $this = this, hasdragCls = false; + + this.on("drop", function(e){ + + if (e.dataTransfer && e.dataTransfer.files) { + + e.stopPropagation(); + e.preventDefault(); + + $this.element.removeClass($this.options.dragoverClass); + $this.element.trigger('dropped.uk.upload', [e.dataTransfer.files]); + + xhrupload(e.dataTransfer.files, $this.options); + } + + }).on("dragenter", function(e){ + e.stopPropagation(); + e.preventDefault(); + }).on("dragover", function(e){ + e.stopPropagation(); + e.preventDefault(); + + if (!hasdragCls) { + $this.element.addClass($this.options.dragoverClass); + hasdragCls = true; + } + }).on("dragleave", function(e){ + e.stopPropagation(); + e.preventDefault(); + $this.element.removeClass($this.options.dragoverClass); + hasdragCls = false; + }); + } + }); + + + UI.support.ajaxupload = (function() { + + function supportFileAPI() { + var fi = document.createElement('INPUT'); fi.type = 'file'; return 'files' in fi; + } + + function supportAjaxUploadProgressEvents() { + var xhr = new XMLHttpRequest(); return !! (xhr && ('upload' in xhr) && ('onprogress' in xhr.upload)); + } + + function supportFormData() { + return !! window.FormData; + } + + return supportFileAPI() && supportAjaxUploadProgressEvents() && supportFormData(); + })(); + + if (UI.support.ajaxupload){ + UI.$.event.props.push("dataTransfer"); + } + + function xhrupload(files, settings) { + + if (!UI.support.ajaxupload){ + return this; + } + + settings = UI.$.extend({}, xhrupload.defaults, settings); + + if (!files.length){ + return; + } + + if (settings.allow !== '*.*') { + + for(var i=0,file;file=files[i];i++) { + + if(!matchName(settings.allow, file.name)) { + + if(typeof(settings.notallowed) == 'string') { + alert(settings.notallowed); + } else { + settings.notallowed(file, settings); + } + return; + } + } + } + + var complete = settings.complete; + + if (settings.single){ + + var count = files.length, + uploaded = 0, + allow = true; + + settings.beforeAll(files); + + settings.complete = function(response, xhr){ + + uploaded = uploaded + 1; + + complete(response, xhr); + + if (settings.filelimit && uploaded >= settings.filelimit){ + allow = false; + } + + if (allow && uploaded<count){ + upload([files[uploaded]], settings); + } else { + settings.allcomplete(response, xhr); + } + }; + + upload([files[0]], settings); + + } else { + + settings.complete = function(response, xhr){ + complete(response, xhr); + settings.allcomplete(response, xhr); + }; + + upload(files, settings); + } + + function upload(files, settings){ + + // upload all at once + var formData = new FormData(), xhr = new XMLHttpRequest(); + + if (settings.before(settings, files)===false) return; + + for (var i = 0, f; f = files[i]; i++) { formData.append(settings.param, f); } + for (var p in settings.params) { formData.append(p, settings.params[p]); } + + // Add any event handlers here... + xhr.upload.addEventListener("progress", function(e){ + var percent = (e.loaded / e.total)*100; + settings.progress(percent, e); + }, false); + + xhr.addEventListener("loadstart", function(e){ settings.loadstart(e); }, false); + xhr.addEventListener("load", function(e){ settings.load(e); }, false); + xhr.addEventListener("loadend", function(e){ settings.loadend(e); }, false); + xhr.addEventListener("error", function(e){ settings.error(e); }, false); + xhr.addEventListener("abort", function(e){ settings.abort(e); }, false); + + xhr.open(settings.method, settings.action, true); + + xhr.onreadystatechange = function() { + + settings.readystatechange(xhr); + + if (xhr.readyState==4){ + + var response = xhr.responseText; + + if (settings.type=="json") { + try { + response = UI.$.parseJSON(response); + } catch(e) { + response = false; + } + } + + settings.complete(response, xhr); + } + }; + settings.beforeSend(xhr); + xhr.send(formData); + } + } + + xhrupload.defaults = { + 'action': '', + 'single': true, + 'method': 'POST', + 'param' : 'files[]', + 'params': {}, + 'allow' : '*.*', + 'type' : 'text', + 'filelimit': false, + + // events + 'before' : function(o){}, + 'beforeSend' : function(xhr){}, + 'beforeAll' : function(){}, + 'loadstart' : function(){}, + 'load' : function(){}, + 'loadend' : function(){}, + 'error' : function(){}, + 'abort' : function(){}, + 'progress' : function(){}, + 'complete' : function(){}, + 'allcomplete' : function(){}, + 'readystatechange': function(){}, + 'notallowed' : function(file, settings){ alert('Only the following file types are allowed: '+settings.allow); } + }; + + function matchName(pattern, path) { + + var parsedPattern = '^' + pattern.replace(/\//g, '\\/'). + replace(/\*\*/g, '(\\/[^\\/]+)*'). + replace(/\*/g, '[^\\/]+'). + replace(/((?!\\))\?/g, '$1.') + '$'; + + parsedPattern = '^' + parsedPattern + '$'; + + return (path.match(new RegExp(parsedPattern, 'i')) !== null); + } + + UI.Utils.xhrupload = xhrupload; + + return xhrupload; +}); diff --git a/media/uikit/js/components/upload.min.js b/media/uikit/js/components/upload.min.js new file mode 100644 index 00000000..e9b47595 --- /dev/null +++ b/media/uikit/js/components/upload.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(e){var t;window.UIkit&&(t=e(UIkit)),"function"==typeof define&&define.amd&&define("uikit-upload",["uikit"],function(){return t||e(UIkit)})}(function(e){"use strict";function t(o,a){function r(t,n){var o=new FormData,a=new XMLHttpRequest;if(n.before(n,t)!==!1){for(var r,l=0;r=t[l];l++)o.append(n.param,r);for(var i in n.params)o.append(i,n.params[i]);a.upload.addEventListener("progress",function(e){var t=e.loaded/e.total*100;n.progress(t,e)},!1),a.addEventListener("loadstart",function(e){n.loadstart(e)},!1),a.addEventListener("load",function(e){n.load(e)},!1),a.addEventListener("loadend",function(e){n.loadend(e)},!1),a.addEventListener("error",function(e){n.error(e)},!1),a.addEventListener("abort",function(e){n.abort(e)},!1),a.open(n.method,n.action,!0),a.onreadystatechange=function(){if(n.readystatechange(a),4==a.readyState){var t=a.responseText;if("json"==n.type)try{t=e.$.parseJSON(t)}catch(o){t=!1}n.complete(t,a)}},n.beforeSend(a),a.send(o)}}if(!e.support.ajaxupload)return this;if(a=e.$.extend({},t.defaults,a),o.length){if("*.*"!==a.allow)for(var l,i=0;l=o[i];i++)if(!n(a.allow,l.name))return"string"==typeof a.notallowed?alert(a.notallowed):a.notallowed(l,a),void 0;var f=a.complete;if(a.single){var d=o.length,s=0,p=!0;a.beforeAll(o),a.complete=function(e,t){s+=1,f(e,t),a.filelimit&&s>=a.filelimit&&(p=!1),p&&d>s?r([o[s]],a):a.allcomplete(e,t)},r([o[0]],a)}else a.complete=function(e,t){f(e,t),a.allcomplete(e,t)},r(o,a)}}function n(e,t){var n="^"+e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$";return n="^"+n+"$",null!==t.match(new RegExp(n,"i"))}return e.component("uploadSelect",{init:function(){var e=this;this.on("change",function(){t(e.element[0].files,e.options);var n=e.element.clone(!0).data("uploadSelect",e);e.element.replaceWith(n),e.element=n})}}),e.component("uploadDrop",{defaults:{dragoverClass:"uk-dragover"},init:function(){var e=this,n=!1;this.on("drop",function(n){n.dataTransfer&&n.dataTransfer.files&&(n.stopPropagation(),n.preventDefault(),e.element.removeClass(e.options.dragoverClass),e.element.trigger("dropped.uk.upload",[n.dataTransfer.files]),t(n.dataTransfer.files,e.options))}).on("dragenter",function(e){e.stopPropagation(),e.preventDefault()}).on("dragover",function(t){t.stopPropagation(),t.preventDefault(),n||(e.element.addClass(e.options.dragoverClass),n=!0)}).on("dragleave",function(t){t.stopPropagation(),t.preventDefault(),e.element.removeClass(e.options.dragoverClass),n=!1})}}),e.support.ajaxupload=function(){function e(){var e=document.createElement("INPUT");return e.type="file","files"in e}function t(){var e=new XMLHttpRequest;return!!(e&&"upload"in e&&"onprogress"in e.upload)}function n(){return!!window.FormData}return e()&&t()&&n()}(),e.support.ajaxupload&&e.$.event.props.push("dataTransfer"),t.defaults={action:"",single:!0,method:"POST",param:"files[]",params:{},allow:"*.*",type:"text",filelimit:!1,before:function(){},beforeSend:function(){},beforeAll:function(){},loadstart:function(){},load:function(){},loadend:function(){},error:function(){},abort:function(){},progress:function(){},complete:function(){},allcomplete:function(){},readystatechange:function(){},notallowed:function(e,t){alert("Only the following file types are allowed: "+t.allow)}},e.Utils.xhrupload=t,t}); \ No newline at end of file diff --git a/media/uikit/js/core/alert.js b/media/uikit/js/core/alert.js new file mode 100644 index 00000000..25ea2adc --- /dev/null +++ b/media/uikit/js/core/alert.js @@ -0,0 +1,66 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(UI) { + + "use strict"; + + UI.component('alert', { + + defaults: { + "fade": true, + "duration": 200, + "trigger": ".uk-alert-close" + }, + + boot: function() { + + // init code + UI.$html.on("click.alert.uikit", "[data-uk-alert]", function(e) { + + var ele = UI.$(this); + + if (!ele.data("alert")) { + + var alert = UI.alert(ele, UI.Utils.options(ele.attr("data-uk-alert"))); + + if (UI.$(e.target).is(alert.options.trigger)) { + e.preventDefault(); + alert.close(); + } + } + }); + }, + + init: function() { + + var $this = this; + + this.on("click", this.options.trigger, function(e) { + e.preventDefault(); + $this.close(); + }); + }, + + close: function() { + + var element = this.trigger("close.uk.alert"), + removeElement = function () { + this.trigger("closed.uk.alert").remove(); + }.bind(this); + + if (this.options.fade) { + element.css("overflow", "hidden").css("max-height", element.height()).animate({ + "height" : 0, + "opacity" : 0, + "padding-top" : 0, + "padding-bottom" : 0, + "margin-top" : 0, + "margin-bottom" : 0 + }, this.options.duration, removeElement); + } else { + removeElement(); + } + } + + }); + +})(UIkit); diff --git a/media/uikit/js/core/alert.min.js b/media/uikit/js/core/alert.min.js new file mode 100644 index 00000000..224b4e15 --- /dev/null +++ b/media/uikit/js/core/alert.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){"use strict";t.component("alert",{defaults:{fade:!0,duration:200,trigger:".uk-alert-close"},boot:function(){t.$html.on("click.alert.uikit","[data-uk-alert]",function(i){var o=t.$(this);if(!o.data("alert")){var e=t.alert(o,t.Utils.options(o.attr("data-uk-alert")));t.$(i.target).is(e.options.trigger)&&(i.preventDefault(),e.close())}})},init:function(){var t=this;this.on("click",this.options.trigger,function(i){i.preventDefault(),t.close()})},close:function(){var t=this.trigger("close.uk.alert"),i=function(){this.trigger("closed.uk.alert").remove()}.bind(this);this.options.fade?t.css("overflow","hidden").css("max-height",t.height()).animate({height:0,opacity:0,"padding-top":0,"padding-bottom":0,"margin-top":0,"margin-bottom":0},this.options.duration,i):i()}})}(UIkit); \ No newline at end of file diff --git a/media/uikit/js/core/button.js b/media/uikit/js/core/button.js new file mode 100644 index 00000000..6256e551 --- /dev/null +++ b/media/uikit/js/core/button.js @@ -0,0 +1,154 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(UI) { + + "use strict"; + + UI.component('buttonRadio', { + + defaults: { + "target": ".uk-button" + }, + + boot: function() { + + // init code + UI.$html.on("click.buttonradio.uikit", "[data-uk-button-radio]", function(e) { + + var ele = UI.$(this); + + if (!ele.data("buttonRadio")) { + + var obj = UI.buttonRadio(ele, UI.Utils.options(ele.attr("data-uk-button-radio"))), + target = UI.$(e.target); + + if (target.is(obj.options.target)) { + target.trigger("click"); + } + } + }); + }, + + init: function() { + + var $this = this; + + // Init ARIA + this.find($this.options.target).attr('aria-checked', 'false').filter(".uk-active").attr('aria-checked', 'true'); + + this.on("click", this.options.target, function(e) { + + var ele = UI.$(this); + + if (ele.is('a[href="#"]')) e.preventDefault(); + + $this.find($this.options.target).not(ele).removeClass("uk-active").blur(); + ele.addClass("uk-active"); + + // Update ARIA + $this.find($this.options.target).not(ele).attr('aria-checked', 'false'); + ele.attr('aria-checked', 'true'); + + $this.trigger("change.uk.button", [ele]); + }); + + }, + + getSelected: function() { + return this.find(".uk-active"); + } + }); + + UI.component('buttonCheckbox', { + + defaults: { + "target": ".uk-button" + }, + + boot: function() { + + UI.$html.on("click.buttoncheckbox.uikit", "[data-uk-button-checkbox]", function(e) { + var ele = UI.$(this); + + if (!ele.data("buttonCheckbox")) { + + var obj = UI.buttonCheckbox(ele, UI.Utils.options(ele.attr("data-uk-button-checkbox"))), + target = UI.$(e.target); + + if (target.is(obj.options.target)) { + target.trigger("click"); + } + } + }); + }, + + init: function() { + + var $this = this; + + // Init ARIA + this.find($this.options.target).attr('aria-checked', 'false').filter(".uk-active").attr('aria-checked', 'true'); + + this.on("click", this.options.target, function(e) { + var ele = UI.$(this); + + if (ele.is('a[href="#"]')) e.preventDefault(); + + ele.toggleClass("uk-active").blur(); + + // Update ARIA + ele.attr('aria-checked', ele.hasClass("uk-active")); + + $this.trigger("change.uk.button", [ele]); + }); + + }, + + getSelected: function() { + return this.find(".uk-active"); + } + }); + + + UI.component('button', { + + defaults: {}, + + boot: function() { + + UI.$html.on("click.button.uikit", "[data-uk-button]", function(e) { + var ele = UI.$(this); + + if (!ele.data("button")) { + + var obj = UI.button(ele, UI.Utils.options(ele.attr("data-uk-button"))); + ele.trigger("click"); + } + }); + }, + + init: function() { + + var $this = this; + + // Init ARIA + this.element.attr('aria-pressed', this.element.hasClass("uk-active")); + + this.on("click", function(e) { + + if ($this.element.is('a[href="#"]')) e.preventDefault(); + + $this.toggle(); + $this.trigger("change.uk.button", [$this.element.blur().hasClass("uk-active")]); + }); + + }, + + toggle: function() { + this.element.toggleClass("uk-active"); + + // Update ARIA + this.element.attr('aria-pressed', this.element.hasClass("uk-active")); + } + }); + +})(UIkit); diff --git a/media/uikit/js/core/button.min.js b/media/uikit/js/core/button.min.js new file mode 100644 index 00000000..bac71eec --- /dev/null +++ b/media/uikit/js/core/button.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){"use strict";t.component("buttonRadio",{defaults:{target:".uk-button"},boot:function(){t.$html.on("click.buttonradio.uikit","[data-uk-button-radio]",function(i){var e=t.$(this);if(!e.data("buttonRadio")){var a=t.buttonRadio(e,t.Utils.options(e.attr("data-uk-button-radio"))),n=t.$(i.target);n.is(a.options.target)&&n.trigger("click")}})},init:function(){var i=this;this.find(i.options.target).attr("aria-checked","false").filter(".uk-active").attr("aria-checked","true"),this.on("click",this.options.target,function(e){var a=t.$(this);a.is('a[href="#"]')&&e.preventDefault(),i.find(i.options.target).not(a).removeClass("uk-active").blur(),a.addClass("uk-active"),i.find(i.options.target).not(a).attr("aria-checked","false"),a.attr("aria-checked","true"),i.trigger("change.uk.button",[a])})},getSelected:function(){return this.find(".uk-active")}}),t.component("buttonCheckbox",{defaults:{target:".uk-button"},boot:function(){t.$html.on("click.buttoncheckbox.uikit","[data-uk-button-checkbox]",function(i){var e=t.$(this);if(!e.data("buttonCheckbox")){var a=t.buttonCheckbox(e,t.Utils.options(e.attr("data-uk-button-checkbox"))),n=t.$(i.target);n.is(a.options.target)&&n.trigger("click")}})},init:function(){var i=this;this.find(i.options.target).attr("aria-checked","false").filter(".uk-active").attr("aria-checked","true"),this.on("click",this.options.target,function(e){var a=t.$(this);a.is('a[href="#"]')&&e.preventDefault(),a.toggleClass("uk-active").blur(),a.attr("aria-checked",a.hasClass("uk-active")),i.trigger("change.uk.button",[a])})},getSelected:function(){return this.find(".uk-active")}}),t.component("button",{defaults:{},boot:function(){t.$html.on("click.button.uikit","[data-uk-button]",function(){var i=t.$(this);if(!i.data("button")){{t.button(i,t.Utils.options(i.attr("data-uk-button")))}i.trigger("click")}})},init:function(){var t=this;this.element.attr("aria-pressed",this.element.hasClass("uk-active")),this.on("click",function(i){t.element.is('a[href="#"]')&&i.preventDefault(),t.toggle(),t.trigger("change.uk.button",[t.element.blur().hasClass("uk-active")])})},toggle:function(){this.element.toggleClass("uk-active"),this.element.attr("aria-pressed",this.element.hasClass("uk-active"))}})}(UIkit); \ No newline at end of file diff --git a/media/uikit/js/core/core.js b/media/uikit/js/core/core.js new file mode 100644 index 00000000..096ff494 --- /dev/null +++ b/media/uikit/js/core/core.js @@ -0,0 +1,722 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(core) { + + if (typeof define == "function" && define.amd) { // AMD + + define("uikit", function(){ + + var uikit = window.UIkit || core(window, window.jQuery, window.document); + + uikit.load = function(res, req, onload, config) { + + var resources = res.split(','), load = [], i, base = (config.config && config.config.uikit && config.config.uikit.base ? config.config.uikit.base : "").replace(/\/+$/g, ""); + + if (!base) { + throw new Error( "Please define base path to UIkit in the requirejs config." ); + } + + for (i = 0; i < resources.length; i += 1) { + var resource = resources[i].replace(/\./g, '/'); + load.push(base+'/components/'+resource); + } + + req(load, function() { + onload(uikit); + }); + }; + + return uikit; + }); + } + + if (!window.jQuery) { + throw new Error( "UIkit requires jQuery" ); + } + + if (window && window.jQuery) { + core(window, window.jQuery, window.document); + } + + +})(function(global, $, doc) { + + "use strict"; + + var UI = {}, _UI = global.UIkit ? Object.create(global.UIkit) : undefined; + + UI.version = '2.21.0'; + + UI.noConflict = function() { + // restore UIkit version + if (_UI) { + global.UIkit = _UI; + $.UIkit = _UI; + $.fn.uk = _UI.fn; + } + + return UI; + }; + + UI.prefix = function(str) { + return str; + }; + + // cache jQuery + UI.$ = $; + + UI.$doc = UI.$(document); + UI.$win = UI.$(window); + UI.$html = UI.$('html'); + + UI.support = {}; + UI.support.transition = (function() { + + var transitionEnd = (function() { + + var element = doc.body || doc.documentElement, + transEndEventNames = { + WebkitTransition : 'webkitTransitionEnd', + MozTransition : 'transitionend', + OTransition : 'oTransitionEnd otransitionend', + transition : 'transitionend' + }, name; + + for (name in transEndEventNames) { + if (element.style[name] !== undefined) return transEndEventNames[name]; + } + }()); + + return transitionEnd && { end: transitionEnd }; + })(); + + UI.support.animation = (function() { + + var animationEnd = (function() { + + var element = doc.body || doc.documentElement, + animEndEventNames = { + WebkitAnimation : 'webkitAnimationEnd', + MozAnimation : 'animationend', + OAnimation : 'oAnimationEnd oanimationend', + animation : 'animationend' + }, name; + + for (name in animEndEventNames) { + if (element.style[name] !== undefined) return animEndEventNames[name]; + } + }()); + + return animationEnd && { end: animationEnd }; + })(); + + // requestAnimationFrame polyfill + // https://gist.github.com/paulirish/1579671 + (function(){ + + var lastTime = 0; + + global.requestAnimationFrame = global.requestAnimationFrame || global.webkitRequestAnimationFrame || function(callback, element) { + var currTime = new Date().getTime(); + var timeToCall = Math.max(0, 16 - (currTime - lastTime)); + var id = global.setTimeout(function() { callback(currTime + timeToCall); }, timeToCall); + lastTime = currTime + timeToCall; + return id; + }; + + if (!global.cancelAnimationFrame) { + + global.cancelAnimationFrame = function(id) { + clearTimeout(id); + }; + } + + })(); + + UI.support.touch = ( + ('ontouchstart' in document) || + (global.DocumentTouch && document instanceof global.DocumentTouch) || + (global.navigator.msPointerEnabled && global.navigator.msMaxTouchPoints > 0) || //IE 10 + (global.navigator.pointerEnabled && global.navigator.maxTouchPoints > 0) || //IE >=11 + false + ); + + UI.support.mutationobserver = (global.MutationObserver || global.WebKitMutationObserver || null); + + UI.Utils = {}; + + UI.Utils.isFullscreen = function() { + return document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement || document.fullscreenElement || false; + }; + + UI.Utils.str2json = function(str, notevil) { + try { + if (notevil) { + return JSON.parse(str + // wrap keys without quote with valid double quote + .replace(/([\$\w]+)\s*:/g, function(_, $1){return '"'+$1+'":';}) + // replacing single quote wrapped ones to double quote + .replace(/'([^']+)'/g, function(_, $1){return '"'+$1+'"';}) + ); + } else { + return (new Function("", "var json = " + str + "; return JSON.parse(JSON.stringify(json));"))(); + } + } catch(e) { return false; } + }; + + UI.Utils.debounce = function(func, wait, immediate) { + var timeout; + return function() { + var context = this, args = arguments; + var later = function() { + timeout = null; + if (!immediate) func.apply(context, args); + }; + var callNow = immediate && !timeout; + clearTimeout(timeout); + timeout = setTimeout(later, wait); + if (callNow) func.apply(context, args); + }; + }; + + UI.Utils.removeCssRules = function(selectorRegEx) { + var idx, idxs, stylesheet, _i, _j, _k, _len, _len1, _len2, _ref; + + if(!selectorRegEx) return; + + setTimeout(function(){ + try { + _ref = document.styleSheets; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + stylesheet = _ref[_i]; + idxs = []; + stylesheet.cssRules = stylesheet.cssRules; + for (idx = _j = 0, _len1 = stylesheet.cssRules.length; _j < _len1; idx = ++_j) { + if (stylesheet.cssRules[idx].type === CSSRule.STYLE_RULE && selectorRegEx.test(stylesheet.cssRules[idx].selectorText)) { + idxs.unshift(idx); + } + } + for (_k = 0, _len2 = idxs.length; _k < _len2; _k++) { + stylesheet.deleteRule(idxs[_k]); + } + } + } catch (_error) {} + }, 0); + }; + + UI.Utils.isInView = function(element, options) { + + var $element = $(element); + + if (!$element.is(':visible')) { + return false; + } + + var window_left = UI.$win.scrollLeft(), window_top = UI.$win.scrollTop(), offset = $element.offset(), left = offset.left, top = offset.top; + + options = $.extend({topoffset:0, leftoffset:0}, options); + + if (top + $element.height() >= window_top && top - options.topoffset <= window_top + UI.$win.height() && + left + $element.width() >= window_left && left - options.leftoffset <= window_left + UI.$win.width()) { + return true; + } else { + return false; + } + }; + + UI.Utils.checkDisplay = function(context, initanimation) { + + var elements = UI.$('[data-uk-margin], [data-uk-grid-match], [data-uk-grid-margin], [data-uk-check-display]', context || document), animated; + + if (context && !elements.length) { + elements = $(context); + } + + elements.trigger('display.uk.check'); + + // fix firefox / IE animations + if (initanimation) { + + if (typeof(initanimation)!='string') { + initanimation = '[class*="uk-animation-"]'; + } + + elements.find(initanimation).each(function(){ + + var ele = UI.$(this), + cls = ele.attr('class'), + anim = cls.match(/uk\-animation\-(.+)/); + + ele.removeClass(anim[0]).width(); + + ele.addClass(anim[0]); + }); + } + + return elements; + }; + + UI.Utils.options = function(string) { + + if ($.isPlainObject(string)) return string; + + var start = (string ? string.indexOf("{") : -1), options = {}; + + if (start != -1) { + try { + options = UI.Utils.str2json(string.substr(start)); + } catch (e) {} + } + + return options; + }; + + UI.Utils.animate = function(element, cls) { + + var d = $.Deferred(); + + element = UI.$(element); + cls = cls; + + element.css('display', 'none').addClass(cls).one(UI.support.animation.end, function() { + element.removeClass(cls); + d.resolve(); + }).width(); + + element.css('display', ''); + + return d.promise(); + }; + + UI.Utils.uid = function(prefix) { + return (prefix || 'id') + (new Date().getTime())+"RAND"+(Math.ceil(Math.random() * 100000)); + }; + + UI.Utils.template = function(str, data) { + + var tokens = str.replace(/\n/g, '\\n').replace(/\{\{\{\s*(.+?)\s*\}\}\}/g, "{{!$1}}").split(/(\{\{\s*(.+?)\s*\}\})/g), + i=0, toc, cmd, prop, val, fn, output = [], openblocks = 0; + + while(i < tokens.length) { + + toc = tokens[i]; + + if(toc.match(/\{\{\s*(.+?)\s*\}\}/)) { + i = i + 1; + toc = tokens[i]; + cmd = toc[0]; + prop = toc.substring(toc.match(/^(\^|\#|\!|\~|\:)/) ? 1:0); + + switch(cmd) { + case '~': + output.push("for(var $i=0;$i<"+prop+".length;$i++) { var $item = "+prop+"[$i];"); + openblocks++; + break; + case ':': + output.push("for(var $key in "+prop+") { var $val = "+prop+"[$key];"); + openblocks++; + break; + case '#': + output.push("if("+prop+") {"); + openblocks++; + break; + case '^': + output.push("if(!"+prop+") {"); + openblocks++; + break; + case '/': + output.push("}"); + openblocks--; + break; + case '!': + output.push("__ret.push("+prop+");"); + break; + default: + output.push("__ret.push(escape("+prop+"));"); + break; + } + } else { + output.push("__ret.push('"+toc.replace(/\'/g, "\\'")+"');"); + } + i = i + 1; + } + + fn = new Function('$data', [ + 'var __ret = [];', + 'try {', + 'with($data){', (!openblocks ? output.join('') : '__ret = ["Not all blocks are closed correctly."]'), '};', + '}catch(e){__ret = [e.message];}', + 'return __ret.join("").replace(/\\n\\n/g, "\\n");', + "function escape(html) { return String(html).replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');}" + ].join("\n")); + + return data ? fn(data) : fn; + }; + + UI.Utils.events = {}; + UI.Utils.events.click = UI.support.touch ? 'tap' : 'click'; + + global.UIkit = UI; + + // deprecated + + UI.fn = function(command, options) { + + var args = arguments, cmd = command.match(/^([a-z\-]+)(?:\.([a-z]+))?/i), component = cmd[1], method = cmd[2]; + + if (!UI[component]) { + $.error("UIkit component [" + component + "] does not exist."); + return this; + } + + return this.each(function() { + var $this = $(this), data = $this.data(component); + if (!data) $this.data(component, (data = UI[component](this, method ? undefined : options))); + if (method) data[method].apply(data, Array.prototype.slice.call(args, 1)); + }); + }; + + $.UIkit = UI; + $.fn.uk = UI.fn; + + UI.langdirection = UI.$html.attr("dir") == "rtl" ? "right" : "left"; + + UI.components = {}; + + UI.component = function(name, def) { + + var fn = function(element, options) { + + var $this = this; + + this.UIkit = UI; + this.element = element ? UI.$(element) : null; + this.options = $.extend(true, {}, this.defaults, options); + this.plugins = {}; + + if (this.element) { + this.element.data(name, this); + } + + this.init(); + + (this.options.plugins.length ? this.options.plugins : Object.keys(fn.plugins)).forEach(function(plugin) { + + if (fn.plugins[plugin].init) { + fn.plugins[plugin].init($this); + $this.plugins[plugin] = true; + } + + }); + + this.trigger('init.uk.component', [name, this]); + + return this; + }; + + fn.plugins = {}; + + $.extend(true, fn.prototype, { + + defaults : {plugins: []}, + + boot: function(){}, + init: function(){}, + + on: function(a1,a2,a3){ + return UI.$(this.element || this).on(a1,a2,a3); + }, + + one: function(a1,a2,a3){ + return UI.$(this.element || this).one(a1,a2,a3); + }, + + off: function(evt){ + return UI.$(this.element || this).off(evt); + }, + + trigger: function(evt, params) { + return UI.$(this.element || this).trigger(evt, params); + }, + + find: function(selector) { + return UI.$(this.element ? this.element: []).find(selector); + }, + + proxy: function(obj, methods) { + + var $this = this; + + methods.split(' ').forEach(function(method) { + if (!$this[method]) $this[method] = function() { return obj[method].apply(obj, arguments); }; + }); + }, + + mixin: function(obj, methods) { + + var $this = this; + + methods.split(' ').forEach(function(method) { + if (!$this[method]) $this[method] = obj[method].bind($this); + }); + }, + + option: function() { + + if (arguments.length == 1) { + return this.options[arguments[0]] || undefined; + } else if (arguments.length == 2) { + this.options[arguments[0]] = arguments[1]; + } + } + + }, def); + + this.components[name] = fn; + + this[name] = function() { + + var element, options; + + if (arguments.length) { + + switch(arguments.length) { + case 1: + + if (typeof arguments[0] === "string" || arguments[0].nodeType || arguments[0] instanceof jQuery) { + element = $(arguments[0]); + } else { + options = arguments[0]; + } + + break; + case 2: + + element = $(arguments[0]); + options = arguments[1]; + break; + } + } + + if (element && element.data(name)) { + return element.data(name); + } + + return (new UI.components[name](element, options)); + }; + + if (UI.domready) { + UI.component.boot(name); + } + + return fn; + }; + + UI.plugin = function(component, name, def) { + this.components[component].plugins[name] = def; + }; + + UI.component.boot = function(name) { + + if (UI.components[name].prototype && UI.components[name].prototype.boot && !UI.components[name].booted) { + UI.components[name].prototype.boot.apply(UI, []); + UI.components[name].booted = true; + } + }; + + UI.component.bootComponents = function() { + + for (var component in UI.components) { + UI.component.boot(component); + } + }; + + + // DOM mutation save ready helper function + + UI.domObservers = []; + UI.domready = false; + + UI.ready = function(fn) { + + UI.domObservers.push(fn); + + if (UI.domready) { + fn(document); + } + }; + + UI.on = function(a1,a2,a3){ + + if (a1 && a1.indexOf('ready.uk.dom') > -1 && UI.domready) { + a2.apply(UI.$doc); + } + + return UI.$doc.on(a1,a2,a3); + }; + + UI.one = function(a1,a2,a3){ + + if (a1 && a1.indexOf('ready.uk.dom') > -1 && UI.domready) { + a2.apply(UI.$doc); + return UI.$doc; + } + + return UI.$doc.one(a1,a2,a3); + }; + + UI.trigger = function(evt, params) { + return UI.$doc.trigger(evt, params); + }; + + UI.domObserve = function(selector, fn) { + + if(!UI.support.mutationobserver) return; + + fn = fn || function() {}; + + UI.$(selector).each(function() { + + var element = this, + $element = UI.$(element); + + if ($element.data('observer')) { + return; + } + + try { + + var observer = new UI.support.mutationobserver(UI.Utils.debounce(function(mutations) { + fn.apply(element, []); + $element.trigger('changed.uk.dom'); + }, 50)); + + // pass in the target node, as well as the observer options + observer.observe(element, { childList: true, subtree: true }); + + $element.data('observer', observer); + + } catch(e) {} + }); + }; + + UI.init = function(root) { + + root = root || document; + + UI.domObservers.forEach(function(fn){ + fn(root); + }); + }; + + UI.on('domready.uk.dom', function(){ + + UI.init(); + + if (UI.domready) UI.Utils.checkDisplay(); + }); + + $(function(){ + + UI.$body = UI.$('body'); + + UI.ready(function(context){ + UI.domObserve('[data-uk-observe]'); + }); + + UI.on('changed.uk.dom', function(e) { + UI.init(e.target); + UI.Utils.checkDisplay(e.target); + }); + + UI.trigger('beforeready.uk.dom'); + + UI.component.bootComponents(); + + // custom scroll observer + setInterval((function(){ + + var memory = {x: window.pageXOffset, y:window.pageYOffset}, dir; + + var fn = function(){ + + if (memory.x != window.pageXOffset || memory.y != window.pageYOffset) { + + dir = {x: 0 , y: 0}; + + if (window.pageXOffset != memory.x) dir.x = window.pageXOffset > memory.x ? 1:-1; + if (window.pageYOffset != memory.y) dir.y = window.pageYOffset > memory.y ? 1:-1; + + memory = { + "dir": dir, "x": window.pageXOffset, "y": window.pageYOffset + }; + + UI.$doc.trigger('scrolling.uk.document', [memory]); + } + }; + + if (UI.support.touch) { + UI.$html.on('touchmove touchend MSPointerMove MSPointerUp pointermove pointerup', fn); + } + + if (memory.x || memory.y) fn(); + + return fn; + + })(), 15); + + // run component init functions on dom + UI.trigger('domready.uk.dom'); + + if (UI.support.touch) { + + // remove css hover rules for touch devices + // UI.Utils.removeCssRules(/\.uk-(?!navbar).*:hover/); + + // viewport unit fix for uk-height-viewport - should be fixed in iOS 8 + if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g)) { + + UI.$win.on('load orientationchange resize', UI.Utils.debounce((function(){ + + var fn = function() { + $('.uk-height-viewport').css('height', window.innerHeight); + return fn; + }; + + return fn(); + + })(), 100)); + } + } + + UI.trigger('afterready.uk.dom'); + + // mark that domready is left behind + UI.domready = true; + }); + + // add touch identifier class + UI.$html.addClass(UI.support.touch ? "uk-touch" : "uk-notouch"); + + // add uk-hover class on tap to support overlays on touch devices + if (UI.support.touch) { + + var hoverset = false, exclude, hovercls = 'uk-hover', selector = '.uk-overlay, .uk-overlay-hover, .uk-overlay-toggle, .uk-animation-hover, .uk-has-hover'; + + UI.$html.on('touchstart MSPointerDown pointerdown', selector, function() { + + if (hoverset) $('.'+hovercls).removeClass(hovercls); + + hoverset = $(this).addClass(hovercls); + + }).on('touchend MSPointerUp pointerup', function(e) { + + exclude = $(e.target).parents(selector); + + if (hoverset) { + hoverset.not(exclude).removeClass(hovercls); + } + }); + } + + return UI; +}); diff --git a/media/uikit/js/core/core.min.js b/media/uikit/js/core/core.min.js new file mode 100644 index 00000000..42c051f0 --- /dev/null +++ b/media/uikit/js/core/core.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){if("function"==typeof define&&define.amd&&define("uikit",function(){var n=window.UIkit||t(window,window.jQuery,window.document);return n.load=function(t,e,o,i){var r,s=t.split(","),a=[],u=(i.config&&i.config.uikit&&i.config.uikit.base?i.config.uikit.base:"").replace(/\/+$/g,"");if(!u)throw new Error("Please define base path to UIkit in the requirejs config.");for(r=0;r<s.length;r+=1){var c=s[r].replace(/\./g,"/");a.push(u+"/components/"+c)}e(a,function(){o(n)})},n}),!window.jQuery)throw new Error("UIkit requires jQuery");window&&window.jQuery&&t(window,window.jQuery,window.document)}(function(t,n,e){"use strict";var o={},i=t.UIkit?Object.create(t.UIkit):void 0;if(o.version="2.21.0",o.noConflict=function(){return i&&(t.UIkit=i,n.UIkit=i,n.fn.uk=i.fn),o},o.prefix=function(t){return t},o.$=n,o.$doc=o.$(document),o.$win=o.$(window),o.$html=o.$("html"),o.support={},o.support.transition=function(){var t=function(){var t,n=e.body||e.documentElement,o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in o)if(void 0!==n.style[t])return o[t]}();return t&&{end:t}}(),o.support.animation=function(){var t=function(){var t,n=e.body||e.documentElement,o={WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(t in o)if(void 0!==n.style[t])return o[t]}();return t&&{end:t}}(),function(){var n=0;t.requestAnimationFrame=t.requestAnimationFrame||t.webkitRequestAnimationFrame||function(e){var o=(new Date).getTime(),i=Math.max(0,16-(o-n)),r=t.setTimeout(function(){e(o+i)},i);return n=o+i,r},t.cancelAnimationFrame||(t.cancelAnimationFrame=function(t){clearTimeout(t)})}(),o.support.touch="ontouchstart"in document||t.DocumentTouch&&document instanceof t.DocumentTouch||t.navigator.msPointerEnabled&&t.navigator.msMaxTouchPoints>0||t.navigator.pointerEnabled&&t.navigator.maxTouchPoints>0||!1,o.support.mutationobserver=t.MutationObserver||t.WebKitMutationObserver||null,o.Utils={},o.Utils.isFullscreen=function(){return document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.fullscreenElement||!1},o.Utils.str2json=function(t,n){try{return n?JSON.parse(t.replace(/([\$\w]+)\s*:/g,function(t,n){return'"'+n+'":'}).replace(/'([^']+)'/g,function(t,n){return'"'+n+'"'})):new Function("","var json = "+t+"; return JSON.parse(JSON.stringify(json));")()}catch(e){return!1}},o.Utils.debounce=function(t,n,e){var o;return function(){var i=this,r=arguments,s=function(){o=null,e||t.apply(i,r)},a=e&&!o;clearTimeout(o),o=setTimeout(s,n),a&&t.apply(i,r)}},o.Utils.removeCssRules=function(t){var n,e,o,i,r,s,a,u,c,d;t&&setTimeout(function(){try{for(d=document.styleSheets,i=0,a=d.length;a>i;i++){for(o=d[i],e=[],o.cssRules=o.cssRules,n=r=0,u=o.cssRules.length;u>r;n=++r)o.cssRules[n].type===CSSRule.STYLE_RULE&&t.test(o.cssRules[n].selectorText)&&e.unshift(n);for(s=0,c=e.length;c>s;s++)o.deleteRule(e[s])}}catch(l){}},0)},o.Utils.isInView=function(t,e){var i=n(t);if(!i.is(":visible"))return!1;var r=o.$win.scrollLeft(),s=o.$win.scrollTop(),a=i.offset(),u=a.left,c=a.top;return e=n.extend({topoffset:0,leftoffset:0},e),c+i.height()>=s&&c-e.topoffset<=s+o.$win.height()&&u+i.width()>=r&&u-e.leftoffset<=r+o.$win.width()?!0:!1},o.Utils.checkDisplay=function(t,e){var i=o.$("[data-uk-margin], [data-uk-grid-match], [data-uk-grid-margin], [data-uk-check-display]",t||document);return t&&!i.length&&(i=n(t)),i.trigger("display.uk.check"),e&&("string"!=typeof e&&(e='[class*="uk-animation-"]'),i.find(e).each(function(){var t=o.$(this),n=t.attr("class"),e=n.match(/uk\-animation\-(.+)/);t.removeClass(e[0]).width(),t.addClass(e[0])})),i},o.Utils.options=function(t){if(n.isPlainObject(t))return t;var e=t?t.indexOf("{"):-1,i={};if(-1!=e)try{i=o.Utils.str2json(t.substr(e))}catch(r){}return i},o.Utils.animate=function(t,e){var i=n.Deferred();return t=o.$(t),e=e,t.css("display","none").addClass(e).one(o.support.animation.end,function(){t.removeClass(e),i.resolve()}).width(),t.css("display",""),i.promise()},o.Utils.uid=function(t){return(t||"id")+(new Date).getTime()+"RAND"+Math.ceil(1e5*Math.random())},o.Utils.template=function(t,n){for(var e,o,i,r,s=t.replace(/\n/g,"\\n").replace(/\{\{\{\s*(.+?)\s*\}\}\}/g,"{{!$1}}").split(/(\{\{\s*(.+?)\s*\}\})/g),a=0,u=[],c=0;a<s.length;){if(e=s[a],e.match(/\{\{\s*(.+?)\s*\}\}/))switch(a+=1,e=s[a],o=e[0],i=e.substring(e.match(/^(\^|\#|\!|\~|\:)/)?1:0),o){case"~":u.push("for(var $i=0;$i<"+i+".length;$i++) { var $item = "+i+"[$i];"),c++;break;case":":u.push("for(var $key in "+i+") { var $val = "+i+"[$key];"),c++;break;case"#":u.push("if("+i+") {"),c++;break;case"^":u.push("if(!"+i+") {"),c++;break;case"/":u.push("}"),c--;break;case"!":u.push("__ret.push("+i+");");break;default:u.push("__ret.push(escape("+i+"));")}else u.push("__ret.push('"+e.replace(/\'/g,"\\'")+"');");a+=1}return r=new Function("$data",["var __ret = [];","try {","with($data){",c?'__ret = ["Not all blocks are closed correctly."]':u.join(""),"};","}catch(e){__ret = [e.message];}",'return __ret.join("").replace(/\\n\\n/g, "\\n");',"function escape(html) { return String(html).replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');}"].join("\n")),n?r(n):r},o.Utils.events={},o.Utils.events.click=o.support.touch?"tap":"click",t.UIkit=o,o.fn=function(t,e){var i=arguments,r=t.match(/^([a-z\-]+)(?:\.([a-z]+))?/i),s=r[1],a=r[2];return o[s]?this.each(function(){var t=n(this),r=t.data(s);r||t.data(s,r=o[s](this,a?void 0:e)),a&&r[a].apply(r,Array.prototype.slice.call(i,1))}):(n.error("UIkit component ["+s+"] does not exist."),this)},n.UIkit=o,n.fn.uk=o.fn,o.langdirection="rtl"==o.$html.attr("dir")?"right":"left",o.components={},o.component=function(t,e){var i=function(e,r){var s=this;return this.UIkit=o,this.element=e?o.$(e):null,this.options=n.extend(!0,{},this.defaults,r),this.plugins={},this.element&&this.element.data(t,this),this.init(),(this.options.plugins.length?this.options.plugins:Object.keys(i.plugins)).forEach(function(t){i.plugins[t].init&&(i.plugins[t].init(s),s.plugins[t]=!0)}),this.trigger("init.uk.component",[t,this]),this};return i.plugins={},n.extend(!0,i.prototype,{defaults:{plugins:[]},boot:function(){},init:function(){},on:function(t,n,e){return o.$(this.element||this).on(t,n,e)},one:function(t,n,e){return o.$(this.element||this).one(t,n,e)},off:function(t){return o.$(this.element||this).off(t)},trigger:function(t,n){return o.$(this.element||this).trigger(t,n)},find:function(t){return o.$(this.element?this.element:[]).find(t)},proxy:function(t,n){var e=this;n.split(" ").forEach(function(n){e[n]||(e[n]=function(){return t[n].apply(t,arguments)})})},mixin:function(t,n){var e=this;n.split(" ").forEach(function(n){e[n]||(e[n]=t[n].bind(e))})},option:function(){return 1==arguments.length?this.options[arguments[0]]||void 0:(2==arguments.length&&(this.options[arguments[0]]=arguments[1]),void 0)}},e),this.components[t]=i,this[t]=function(){var e,i;if(arguments.length)switch(arguments.length){case 1:"string"==typeof arguments[0]||arguments[0].nodeType||arguments[0]instanceof jQuery?e=n(arguments[0]):i=arguments[0];break;case 2:e=n(arguments[0]),i=arguments[1]}return e&&e.data(t)?e.data(t):new o.components[t](e,i)},o.domready&&o.component.boot(t),i},o.plugin=function(t,n,e){this.components[t].plugins[n]=e},o.component.boot=function(t){o.components[t].prototype&&o.components[t].prototype.boot&&!o.components[t].booted&&(o.components[t].prototype.boot.apply(o,[]),o.components[t].booted=!0)},o.component.bootComponents=function(){for(var t in o.components)o.component.boot(t)},o.domObservers=[],o.domready=!1,o.ready=function(t){o.domObservers.push(t),o.domready&&t(document)},o.on=function(t,n,e){return t&&t.indexOf("ready.uk.dom")>-1&&o.domready&&n.apply(o.$doc),o.$doc.on(t,n,e)},o.one=function(t,n,e){return t&&t.indexOf("ready.uk.dom")>-1&&o.domready?(n.apply(o.$doc),o.$doc):o.$doc.one(t,n,e)},o.trigger=function(t,n){return o.$doc.trigger(t,n)},o.domObserve=function(t,n){o.support.mutationobserver&&(n=n||function(){},o.$(t).each(function(){var t=this,e=o.$(t);if(!e.data("observer"))try{var i=new o.support.mutationobserver(o.Utils.debounce(function(){n.apply(t,[]),e.trigger("changed.uk.dom")},50));i.observe(t,{childList:!0,subtree:!0}),e.data("observer",i)}catch(r){}}))},o.init=function(t){t=t||document,o.domObservers.forEach(function(n){n(t)})},o.on("domready.uk.dom",function(){o.init(),o.domready&&o.Utils.checkDisplay()}),n(function(){o.$body=o.$("body"),o.ready(function(){o.domObserve("[data-uk-observe]")}),o.on("changed.uk.dom",function(t){o.init(t.target),o.Utils.checkDisplay(t.target)}),o.trigger("beforeready.uk.dom"),o.component.bootComponents(),setInterval(function(){var t,n={x:window.pageXOffset,y:window.pageYOffset},e=function(){(n.x!=window.pageXOffset||n.y!=window.pageYOffset)&&(t={x:0,y:0},window.pageXOffset!=n.x&&(t.x=window.pageXOffset>n.x?1:-1),window.pageYOffset!=n.y&&(t.y=window.pageYOffset>n.y?1:-1),n={dir:t,x:window.pageXOffset,y:window.pageYOffset},o.$doc.trigger("scrolling.uk.document",[n]))};return o.support.touch&&o.$html.on("touchmove touchend MSPointerMove MSPointerUp pointermove pointerup",e),(n.x||n.y)&&e(),e}(),15),o.trigger("domready.uk.dom"),o.support.touch&&navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&o.$win.on("load orientationchange resize",o.Utils.debounce(function(){var t=function(){return n(".uk-height-viewport").css("height",window.innerHeight),t};return t()}(),100)),o.trigger("afterready.uk.dom"),o.domready=!0}),o.$html.addClass(o.support.touch?"uk-touch":"uk-notouch"),o.support.touch){var r,s=!1,a="uk-hover",u=".uk-overlay, .uk-overlay-hover, .uk-overlay-toggle, .uk-animation-hover, .uk-has-hover";o.$html.on("touchstart MSPointerDown pointerdown",u,function(){s&&n("."+a).removeClass(a),s=n(this).addClass(a)}).on("touchend MSPointerUp pointerup",function(t){r=n(t.target).parents(u),s&&s.not(r).removeClass(a)})}return o}); \ No newline at end of file diff --git a/media/uikit/js/core/cover.js b/media/uikit/js/core/cover.js new file mode 100644 index 00000000..a505b78a --- /dev/null +++ b/media/uikit/js/core/cover.js @@ -0,0 +1,95 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(UI){ + + "use strict"; + + UI.component('cover', { + + defaults: { + automute : true + }, + + boot: function() { + + // auto init + UI.ready(function(context) { + + UI.$("[data-uk-cover]", context).each(function(){ + + var ele = UI.$(this); + + if(!ele.data("cover")) { + var plugin = UI.cover(ele, UI.Utils.options(ele.attr("data-uk-cover"))); + } + }); + }); + }, + + init: function() { + + this.parent = this.element.parent(); + + UI.$win.on('load resize orientationchange', UI.Utils.debounce(function(){ + this.check(); + }.bind(this), 100)); + + this.on("display.uk.check", function(e) { + if(this.element.is(":visible")) this.check(); + }.bind(this)); + + this.check(); + + if (this.element.is('iframe') && this.options.automute) { + + var src = this.element.attr('src'); + + this.element.attr('src', '').on('load', function(){ + + this.contentWindow.postMessage('{ "event": "command", "func": "mute", "method":"setVolume", "value":0}', '*'); + + }).attr('src', [src, (src.indexOf('?') > -1 ? '&':'?'), 'enablejsapi=1&api=1'].join('')); + } + }, + + check: function() { + + this.element.css({ + 'width' : '', + 'height' : '' + }); + + this.dimension = {w: this.element.width(), h: this.element.height()}; + + if (this.element.attr('width') && !isNaN(this.element.attr('width'))) { + this.dimension.w = this.element.attr('width'); + } + + if (this.element.attr('height') && !isNaN(this.element.attr('height'))) { + this.dimension.h = this.element.attr('height'); + } + + this.ratio = this.dimension.w / this.dimension.h; + + var w = this.parent.width(), h = this.parent.height(), width, height; + + // if element height < parent height (gap underneath) + if ((w / this.ratio) < h) { + + width = Math.ceil(h * this.ratio); + height = h; + + // element width < parent width (gap to right) + } else { + + width = w; + height = Math.ceil(w / this.ratio); + } + + this.element.css({ + 'width' : width, + 'height' : height + }); + } + }); + +})(UIkit); diff --git a/media/uikit/js/core/cover.min.js b/media/uikit/js/core/cover.min.js new file mode 100644 index 00000000..70bdffd3 --- /dev/null +++ b/media/uikit/js/core/cover.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){"use strict";t.component("cover",{defaults:{automute:!0},boot:function(){t.ready(function(i){t.$("[data-uk-cover]",i).each(function(){var i=t.$(this);if(!i.data("cover")){t.cover(i,t.Utils.options(i.attr("data-uk-cover")))}})})},init:function(){if(this.parent=this.element.parent(),t.$win.on("load resize orientationchange",t.Utils.debounce(function(){this.check()}.bind(this),100)),this.on("display.uk.check",function(){this.element.is(":visible")&&this.check()}.bind(this)),this.check(),this.element.is("iframe")&&this.options.automute){var i=this.element.attr("src");this.element.attr("src","").on("load",function(){this.contentWindow.postMessage('{ "event": "command", "func": "mute", "method":"setVolume", "value":0}',"*")}).attr("src",[i,i.indexOf("?")>-1?"&":"?","enablejsapi=1&api=1"].join(""))}},check:function(){this.element.css({width:"",height:""}),this.dimension={w:this.element.width(),h:this.element.height()},this.element.attr("width")&&!isNaN(this.element.attr("width"))&&(this.dimension.w=this.element.attr("width")),this.element.attr("height")&&!isNaN(this.element.attr("height"))&&(this.dimension.h=this.element.attr("height")),this.ratio=this.dimension.w/this.dimension.h;var t,i,e=this.parent.width(),n=this.parent.height();e/this.ratio<n?(t=Math.ceil(n*this.ratio),i=n):(t=e,i=Math.ceil(e/this.ratio)),this.element.css({width:t,height:i})}})}(UIkit); \ No newline at end of file diff --git a/media/uikit/js/core/dropdown.js b/media/uikit/js/core/dropdown.js new file mode 100644 index 00000000..bb931844 --- /dev/null +++ b/media/uikit/js/core/dropdown.js @@ -0,0 +1,296 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(UI) { + + "use strict"; + + var active = false, hoverIdle; + + UI.component('dropdown', { + + defaults: { + 'mode' : 'hover', + 'remaintime' : 800, + 'justify' : false, + 'boundary' : UI.$win, + 'delay' : 0, + 'hoverDelayIdle' : 250 + }, + + remainIdle: false, + + boot: function() { + + var triggerevent = UI.support.touch ? "click" : "mouseenter"; + + // init code + UI.$html.on(triggerevent+".dropdown.uikit", "[data-uk-dropdown]", function(e) { + + var ele = UI.$(this); + + if (!ele.data("dropdown")) { + + var dropdown = UI.dropdown(ele, UI.Utils.options(ele.attr("data-uk-dropdown"))); + + if (triggerevent=="click" || (triggerevent=="mouseenter" && dropdown.options.mode=="hover")) { + dropdown.element.trigger(triggerevent); + } + + if (dropdown.element.find('.uk-dropdown').length) { + e.preventDefault(); + } + } + }); + }, + + init: function() { + + var $this = this; + + this.dropdown = this.find('.uk-dropdown'); + + this.centered = this.dropdown.hasClass('uk-dropdown-center'); + this.justified = this.options.justify ? UI.$(this.options.justify) : false; + + this.boundary = UI.$(this.options.boundary); + this.flipped = this.dropdown.hasClass('uk-dropdown-flip'); + + if (!this.boundary.length) { + this.boundary = UI.$win; + } + + // Init ARIA + this.element.attr('aria-haspopup', 'true'); + this.element.attr('aria-expanded', this.element.hasClass("uk-open")); + + if (this.options.mode == "click" || UI.support.touch) { + + this.on("click.uikit.dropdown", function(e) { + + var $target = UI.$(e.target); + + if (!$target.parents(".uk-dropdown").length) { + + if ($target.is("a[href='#']") || $target.parent().is("a[href='#']") || ($this.dropdown.length && !$this.dropdown.is(":visible")) ){ + e.preventDefault(); + } + + $target.blur(); + } + + if (!$this.element.hasClass('uk-open')) { + + $this.show(); + + } else { + + if ($target.is("a:not(.js-uk-prevent)") || $target.is(".uk-dropdown-close") || !$this.dropdown.find(e.target).length) { + $this.hide(); + } + } + }); + + } else { + + this.on("mouseenter", function(e) { + + if ($this.remainIdle) { + clearTimeout($this.remainIdle); + } + + if (hoverIdle) { + clearTimeout(hoverIdle); + } + + if (active && active == $this) { + return; + } + + // pseudo manuAim + if (active && active != $this) { + + hoverIdle = setTimeout(function() { + hoverIdle = setTimeout($this.show.bind($this), $this.options.delay); + }, $this.options.hoverDelayIdle); + + } else { + + hoverIdle = setTimeout($this.show.bind($this), $this.options.delay); + } + + }).on("mouseleave", function() { + + if (hoverIdle) { + clearTimeout(hoverIdle); + } + + $this.remainIdle = setTimeout(function() { + if (active && active == $this) $this.hide(); + }, $this.options.remaintime); + + }).on("click", function(e){ + + var $target = UI.$(e.target); + + if ($this.remainIdle) { + clearTimeout($this.remainIdle); + } + + if ($target.is("a[href='#']") || $target.parent().is("a[href='#']")){ + e.preventDefault(); + } + + $this.show(); + }); + } + }, + + show: function(){ + + UI.$html.off("click.outer.dropdown"); + + if (active && active != this) { + active.hide(); + } + + if (hoverIdle) { + clearTimeout(hoverIdle); + } + + this.checkDimensions(); + this.element.addClass('uk-open'); + + // Update ARIA + this.element.attr('aria-expanded', 'true'); + + this.trigger('show.uk.dropdown', [this]); + + UI.Utils.checkDisplay(this.dropdown, true); + active = this; + + this.registerOuterClick(); + }, + + hide: function() { + this.element.removeClass('uk-open'); + + if (this.remainIdle) { + clearTimeout(this.remainIdle); + } + + this.remainIdle = false; + + // Update ARIA + this.element.attr('aria-expanded', 'false'); + + this.trigger('hide.uk.dropdown', [this]); + + if (active == this) active = false; + }, + + registerOuterClick: function(){ + + var $this = this; + + UI.$html.off("click.outer.dropdown"); + + setTimeout(function() { + + UI.$html.on("click.outer.dropdown", function(e) { + + if (hoverIdle) { + clearTimeout(hoverIdle); + } + + var $target = UI.$(e.target); + + if (active == $this && ($target.is("a:not(.js-uk-prevent)") || $target.is(".uk-dropdown-close") || !$this.dropdown.find(e.target).length)) { + $this.hide(); + UI.$html.off("click.outer.dropdown"); + } + }); + }, 10); + }, + + checkDimensions: function() { + + if (!this.dropdown.length) return; + + if (this.justified && this.justified.length) { + this.dropdown.css("min-width", ""); + } + + var $this = this, + dropdown = this.dropdown.css("margin-" + UI.langdirection, ""), + offset = dropdown.show().offset(), + width = dropdown.outerWidth(), + boundarywidth = this.boundary.width(), + boundaryoffset = this.boundary.offset() ? this.boundary.offset().left:0; + + // centered dropdown + if (this.centered) { + dropdown.css("margin-" + UI.langdirection, (parseFloat(width) / 2 - dropdown.parent().width() / 2) * -1); + offset = dropdown.offset(); + + // reset dropdown + if ((width + offset.left) > boundarywidth || offset.left < 0) { + dropdown.css("margin-" + UI.langdirection, ""); + offset = dropdown.offset(); + } + } + + // justify dropdown + if (this.justified && this.justified.length) { + + var jwidth = this.justified.outerWidth(); + + dropdown.css("min-width", jwidth); + + if (UI.langdirection == 'right') { + + var right1 = boundarywidth - (this.justified.offset().left + jwidth), + right2 = boundarywidth - (dropdown.offset().left + dropdown.outerWidth()); + + dropdown.css("margin-right", right1 - right2); + + } else { + dropdown.css("margin-left", this.justified.offset().left - offset.left); + } + + offset = dropdown.offset(); + + } + + if ((width + (offset.left-boundaryoffset)) > boundarywidth) { + dropdown.addClass('uk-dropdown-flip'); + offset = dropdown.offset(); + } + + if ((offset.left-boundaryoffset) < 0) { + + dropdown.addClass("uk-dropdown-stack"); + + if (dropdown.hasClass('uk-dropdown-flip')) { + + if (!this.flipped) { + dropdown.removeClass('uk-dropdown-flip'); + offset = dropdown.offset(); + dropdown.addClass('uk-dropdown-flip'); + } + + setTimeout(function(){ + + if ((dropdown.offset().left-boundaryoffset) < 0 || !$this.flipped && (dropdown.outerWidth() + (offset.left-boundaryoffset)) < boundarywidth) { + dropdown.removeClass('uk-dropdown-flip'); + } + }, 0); + } + + this.trigger('stack.uk.dropdown', [this]); + } + + dropdown.css("display", ""); + } + + }); + +})(UIkit); diff --git a/media/uikit/js/core/dropdown.min.js b/media/uikit/js/core/dropdown.min.js new file mode 100644 index 00000000..4a72cc39 --- /dev/null +++ b/media/uikit/js/core/dropdown.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){"use strict";var e,i=!1;t.component("dropdown",{defaults:{mode:"hover",remaintime:800,justify:!1,boundary:t.$win,delay:0,hoverDelayIdle:250},remainIdle:!1,boot:function(){var e=t.support.touch?"click":"mouseenter";t.$html.on(e+".dropdown.uikit","[data-uk-dropdown]",function(i){var o=t.$(this);if(!o.data("dropdown")){var s=t.dropdown(o,t.Utils.options(o.attr("data-uk-dropdown")));("click"==e||"mouseenter"==e&&"hover"==s.options.mode)&&s.element.trigger(e),s.element.find(".uk-dropdown").length&&i.preventDefault()}})},init:function(){var o=this;this.dropdown=this.find(".uk-dropdown"),this.centered=this.dropdown.hasClass("uk-dropdown-center"),this.justified=this.options.justify?t.$(this.options.justify):!1,this.boundary=t.$(this.options.boundary),this.flipped=this.dropdown.hasClass("uk-dropdown-flip"),this.boundary.length||(this.boundary=t.$win),this.element.attr("aria-haspopup","true"),this.element.attr("aria-expanded",this.element.hasClass("uk-open")),"click"==this.options.mode||t.support.touch?this.on("click.uikit.dropdown",function(e){var i=t.$(e.target);i.parents(".uk-dropdown").length||((i.is("a[href='#']")||i.parent().is("a[href='#']")||o.dropdown.length&&!o.dropdown.is(":visible"))&&e.preventDefault(),i.blur()),o.element.hasClass("uk-open")?(i.is("a:not(.js-uk-prevent)")||i.is(".uk-dropdown-close")||!o.dropdown.find(e.target).length)&&o.hide():o.show()}):this.on("mouseenter",function(){o.remainIdle&&clearTimeout(o.remainIdle),e&&clearTimeout(e),i&&i==o||(e=i&&i!=o?setTimeout(function(){e=setTimeout(o.show.bind(o),o.options.delay)},o.options.hoverDelayIdle):setTimeout(o.show.bind(o),o.options.delay))}).on("mouseleave",function(){e&&clearTimeout(e),o.remainIdle=setTimeout(function(){i&&i==o&&o.hide()},o.options.remaintime)}).on("click",function(e){var i=t.$(e.target);o.remainIdle&&clearTimeout(o.remainIdle),(i.is("a[href='#']")||i.parent().is("a[href='#']"))&&e.preventDefault(),o.show()})},show:function(){t.$html.off("click.outer.dropdown"),i&&i!=this&&i.hide(),e&&clearTimeout(e),this.checkDimensions(),this.element.addClass("uk-open"),this.element.attr("aria-expanded","true"),this.trigger("show.uk.dropdown",[this]),t.Utils.checkDisplay(this.dropdown,!0),i=this,this.registerOuterClick()},hide:function(){this.element.removeClass("uk-open"),this.remainIdle&&clearTimeout(this.remainIdle),this.remainIdle=!1,this.element.attr("aria-expanded","false"),this.trigger("hide.uk.dropdown",[this]),i==this&&(i=!1)},registerOuterClick:function(){var o=this;t.$html.off("click.outer.dropdown"),setTimeout(function(){t.$html.on("click.outer.dropdown",function(s){e&&clearTimeout(e);var n=t.$(s.target);i!=o||!n.is("a:not(.js-uk-prevent)")&&!n.is(".uk-dropdown-close")&&o.dropdown.find(s.target).length||(o.hide(),t.$html.off("click.outer.dropdown"))})},10)},checkDimensions:function(){if(this.dropdown.length){this.justified&&this.justified.length&&this.dropdown.css("min-width","");var e=this,i=this.dropdown.css("margin-"+t.langdirection,""),o=i.show().offset(),s=i.outerWidth(),n=this.boundary.width(),d=this.boundary.offset()?this.boundary.offset().left:0;if(this.centered&&(i.css("margin-"+t.langdirection,-1*(parseFloat(s)/2-i.parent().width()/2)),o=i.offset(),(s+o.left>n||o.left<0)&&(i.css("margin-"+t.langdirection,""),o=i.offset())),this.justified&&this.justified.length){var r=this.justified.outerWidth();if(i.css("min-width",r),"right"==t.langdirection){var a=n-(this.justified.offset().left+r),h=n-(i.offset().left+i.outerWidth());i.css("margin-right",a-h)}else i.css("margin-left",this.justified.offset().left-o.left);o=i.offset()}s+(o.left-d)>n&&(i.addClass("uk-dropdown-flip"),o=i.offset()),o.left-d<0&&(i.addClass("uk-dropdown-stack"),i.hasClass("uk-dropdown-flip")&&(this.flipped||(i.removeClass("uk-dropdown-flip"),o=i.offset(),i.addClass("uk-dropdown-flip")),setTimeout(function(){(i.offset().left-d<0||!e.flipped&&i.outerWidth()+(o.left-d)<n)&&i.removeClass("uk-dropdown-flip")},0)),this.trigger("stack.uk.dropdown",[this])),i.css("display","")}}})}(UIkit); \ No newline at end of file diff --git a/media/uikit/js/core/grid.js b/media/uikit/js/core/grid.js new file mode 100644 index 00000000..f1e45f48 --- /dev/null +++ b/media/uikit/js/core/grid.js @@ -0,0 +1,114 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(UI) { + + "use strict"; + + var grids = []; + + UI.component('gridMatchHeight', { + + defaults: { + "target" : false, + "row" : true, + "ignorestacked" : false + }, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-grid-match]", context).each(function() { + var grid = UI.$(this), obj; + + if (!grid.data("gridMatchHeight")) { + obj = UI.gridMatchHeight(grid, UI.Utils.options(grid.attr("data-uk-grid-match"))); + } + }); + }); + }, + + init: function() { + + var $this = this; + + this.columns = this.element.children(); + this.elements = this.options.target ? this.find(this.options.target) : this.columns; + + if (!this.columns.length) return; + + UI.$win.on('load resize orientationchange', (function() { + + var fn = function() { + $this.match(); + }; + + UI.$(function() { fn(); }); + + return UI.Utils.debounce(fn, 50); + })()); + + UI.$html.on("changed.uk.dom", function(e) { + $this.columns = $this.element.children(); + $this.elements = $this.options.target ? $this.find($this.options.target) : $this.columns; + $this.match(); + }); + + this.on("display.uk.check", function(e) { + if(this.element.is(":visible")) this.match(); + }.bind(this)); + + grids.push(this); + }, + + match: function() { + + var firstvisible = this.columns.filter(":visible:first"); + + if (!firstvisible.length) return; + + var stacked = Math.ceil(100 * parseFloat(firstvisible.css('width')) / parseFloat(firstvisible.parent().css('width'))) >= 100; + + if (stacked && !this.options.ignorestacked) { + this.revert(); + } else { + UI.Utils.matchHeights(this.elements, this.options); + } + + return this; + }, + + revert: function() { + this.elements.css('min-height', ''); + return this; + } + }); + + UI.component('gridMargin', { + + defaults: { + "cls": "uk-grid-margin" + }, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-grid-margin]", context).each(function() { + var grid = UI.$(this), obj; + + if (!grid.data("gridMargin")) { + obj = UI.gridMargin(grid, UI.Utils.options(grid.attr("data-uk-grid-margin"))); + } + }); + }); + }, + + init: function() { + + var stackMargin = UI.stackMargin(this.element, this.options); + } + }); + +})(UIkit); diff --git a/media/uikit/js/core/grid.min.js b/media/uikit/js/core/grid.min.js new file mode 100644 index 00000000..465d413a --- /dev/null +++ b/media/uikit/js/core/grid.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){"use strict";var i=[];t.component("gridMatchHeight",{defaults:{target:!1,row:!0,ignorestacked:!1},boot:function(){t.ready(function(i){t.$("[data-uk-grid-match]",i).each(function(){var i,n=t.$(this);n.data("gridMatchHeight")||(i=t.gridMatchHeight(n,t.Utils.options(n.attr("data-uk-grid-match"))))})})},init:function(){var n=this;this.columns=this.element.children(),this.elements=this.options.target?this.find(this.options.target):this.columns,this.columns.length&&(t.$win.on("load resize orientationchange",function(){var i=function(){n.match()};return t.$(function(){i()}),t.Utils.debounce(i,50)}()),t.$html.on("changed.uk.dom",function(){n.columns=n.element.children(),n.elements=n.options.target?n.find(n.options.target):n.columns,n.match()}),this.on("display.uk.check",function(){this.element.is(":visible")&&this.match()}.bind(this)),i.push(this))},match:function(){var i=this.columns.filter(":visible:first");if(i.length){var n=Math.ceil(100*parseFloat(i.css("width"))/parseFloat(i.parent().css("width")))>=100;return n&&!this.options.ignorestacked?this.revert():t.Utils.matchHeights(this.elements,this.options),this}},revert:function(){return this.elements.css("min-height",""),this}}),t.component("gridMargin",{defaults:{cls:"uk-grid-margin"},boot:function(){t.ready(function(i){t.$("[data-uk-grid-margin]",i).each(function(){var i,n=t.$(this);n.data("gridMargin")||(i=t.gridMargin(n,t.Utils.options(n.attr("data-uk-grid-margin"))))})})},init:function(){t.stackMargin(this.element,this.options)}})}(UIkit); \ No newline at end of file diff --git a/media/uikit/js/core/index.html b/media/uikit/js/core/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/uikit/js/core/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/uikit/js/core/modal.js b/media/uikit/js/core/modal.js new file mode 100644 index 00000000..4bfb3fd6 --- /dev/null +++ b/media/uikit/js/core/modal.js @@ -0,0 +1,373 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(UI) { + + "use strict"; + + var active = false, activeCount = 0, $html = UI.$html, body; + + UI.component('modal', { + + defaults: { + keyboard: true, + bgclose: true, + minScrollHeight: 150, + center: false, + modal: true + }, + + scrollable: false, + transition: false, + + init: function() { + + if (!body) body = UI.$('body'); + + if (!this.element.length) return; + + var $this = this; + + this.paddingdir = "padding-" + (UI.langdirection == 'left' ? "right":"left"); + this.dialog = this.find(".uk-modal-dialog"); + + this.active = false; + + // Update ARIA + this.element.attr('aria-hidden', this.element.hasClass("uk-open")); + + this.on("click", ".uk-modal-close", function(e) { + e.preventDefault(); + $this.hide(); + }).on("click", function(e) { + + var target = UI.$(e.target); + + if (target[0] == $this.element[0] && $this.options.bgclose) { + $this.hide(); + } + }); + }, + + toggle: function() { + return this[this.isActive() ? "hide" : "show"](); + }, + + show: function() { + + if (!this.element.length) return; + + var $this = this; + + if (this.isActive()) return; + + if (this.options.modal && active) { + active.hide(true); + } + + this.element.removeClass("uk-open").show(); + this.resize(); + + if (this.options.modal) { + active = this; + } + + this.active = true; + + activeCount++; + + this.element.addClass("uk-open"); + + $html.addClass("uk-modal-page").height(); // force browser engine redraw + + // Update ARIA + this.element.attr('aria-hidden', 'false'); + + this.element.trigger("show.uk.modal"); + + UI.Utils.checkDisplay(this.dialog, true); + + return this; + }, + + hide: function(force) { + + if (!force && UI.support.transition) { + + var $this = this; + + this.one(UI.support.transition.end, function() { + $this._hide(); + }).removeClass("uk-open"); + + } else { + + this._hide(); + } + + return this; + }, + + resize: function() { + + var bodywidth = body.width(); + + this.scrollbarwidth = window.innerWidth - bodywidth; + + body.css(this.paddingdir, this.scrollbarwidth); + + this.element.css('overflow-y', this.scrollbarwidth ? 'scroll' : 'auto'); + + if (!this.updateScrollable() && this.options.center) { + + var dh = this.dialog.outerHeight(), + pad = parseInt(this.dialog.css('margin-top'), 10) + parseInt(this.dialog.css('margin-bottom'), 10); + + if ((dh + pad) < window.innerHeight) { + this.dialog.css({'top': (window.innerHeight/2 - dh/2) - pad }); + } else { + this.dialog.css({'top': ''}); + } + } + }, + + updateScrollable: function() { + + // has scrollable? + var scrollable = this.dialog.find('.uk-overflow-container:visible:first'); + + if (scrollable.length) { + + scrollable.css("height", 0); + + var offset = Math.abs(parseInt(this.dialog.css("margin-top"), 10)), + dh = this.dialog.outerHeight(), + wh = window.innerHeight, + h = wh - 2*(offset < 20 ? 20:offset) - dh; + + scrollable.css("height", h < this.options.minScrollHeight ? "":h); + + return true; + } + + return false; + }, + + _hide: function() { + + this.active = false; + activeCount--; + + this.element.hide().removeClass("uk-open"); + + // Update ARIA + this.element.attr('aria-hidden', 'true'); + + if (!activeCount) { + $html.removeClass("uk-modal-page"); + body.css(this.paddingdir, ""); + } + + if(active===this) active = false; + + this.trigger("hide.uk.modal"); + }, + + isActive: function() { + return this.active; + } + + }); + + UI.component('modalTrigger', { + + boot: function() { + + // init code + UI.$html.on("click.modal.uikit", "[data-uk-modal]", function(e) { + + var ele = UI.$(this); + + if (ele.is("a")) { + e.preventDefault(); + } + + if (!ele.data("modalTrigger")) { + var modal = UI.modalTrigger(ele, UI.Utils.options(ele.attr("data-uk-modal"))); + modal.show(); + } + + }); + + // close modal on esc button + UI.$html.on('keydown.modal.uikit', function (e) { + + if (active && e.keyCode === 27 && active.options.keyboard) { // ESC + e.preventDefault(); + active.hide(); + } + }); + + UI.$win.on("resize orientationchange", UI.Utils.debounce(function(){ + if (active) active.resize(); + }, 150)); + }, + + init: function() { + + var $this = this; + + this.options = UI.$.extend({ + "target": $this.element.is("a") ? $this.element.attr("href") : false + }, this.options); + + this.modal = UI.modal(this.options.target, this.options); + + this.on("click", function(e) { + e.preventDefault(); + $this.show(); + }); + + //methods + this.proxy(this.modal, "show hide isActive"); + } + }); + + UI.modal.dialog = function(content, options) { + + var modal = UI.modal(UI.$(UI.modal.dialog.template).appendTo("body"), options); + + modal.on("hide.uk.modal", function(){ + if (modal.persist) { + modal.persist.appendTo(modal.persist.data("modalPersistParent")); + modal.persist = false; + } + modal.element.remove(); + }); + + setContent(content, modal); + + return modal; + }; + + UI.modal.dialog.template = '<div class="uk-modal"><div class="uk-modal-dialog" style="min-height:0;"></div></div>'; + + UI.modal.alert = function(content, options) { + + options = UI.$.extend(true, {bgclose:false, keyboard:false, modal:false, labels:UI.modal.labels}, options); + + var modal = UI.modal.dialog(([ + '<div class="uk-margin uk-modal-content">'+String(content)+'</div>', + '<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-button-primary uk-modal-close">'+options.labels.Ok+'</button></div>' + ]).join(""), options); + + modal.on('show.uk.modal', function(){ + setTimeout(function(){ + modal.element.find('button:first').focus(); + }, 50); + }); + + modal.show(); + }; + + UI.modal.confirm = function(content, onconfirm, options) { + + onconfirm = UI.$.isFunction(onconfirm) ? onconfirm : function(){}; + options = UI.$.extend(true, {bgclose:false, keyboard:false, modal:false, labels:UI.modal.labels}, options); + + var modal = UI.modal.dialog(([ + '<div class="uk-margin uk-modal-content">'+String(content)+'</div>', + '<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-button-primary js-modal-confirm">'+options.labels.Ok+'</button> <button class="uk-button uk-modal-close">'+options.labels.Cancel+'</button></div>' + ]).join(""), options); + + modal.element.find(".js-modal-confirm").on("click", function(){ + onconfirm(); + modal.hide(); + }); + + modal.on('show.uk.modal', function(){ + setTimeout(function(){ + modal.element.find('button:first').focus(); + }, 50); + }); + + modal.show(); + }; + + UI.modal.prompt = function(text, value, onsubmit, options) { + + onsubmit = UI.$.isFunction(onsubmit) ? onsubmit : function(value){}; + options = UI.$.extend(true, {bgclose:false, keyboard:false, modal:false, labels:UI.modal.labels}, options); + + var modal = UI.modal.dialog(([ + text ? '<div class="uk-modal-content uk-form">'+String(text)+'</div>':'', + '<div class="uk-margin-small-top uk-modal-content uk-form"><p><input type="text" class="uk-width-1-1"></p></div>', + '<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-button-primary js-modal-ok">'+options.labels.Ok+'</button> <button class="uk-button uk-modal-close">'+options.labels.Cancel+'</button></div>' + ]).join(""), options), + + input = modal.element.find("input[type='text']").val(value || '').on('keyup', function(e){ + if (e.keyCode == 13) { + modal.element.find(".js-modal-ok").trigger('click'); + } + }); + + modal.element.find(".js-modal-ok").on("click", function(){ + if (onsubmit(input.val())!==false){ + modal.hide(); + } + }); + + modal.on('show.uk.modal', function(){ + setTimeout(function(){ + input.focus(); + }, 50); + }); + + modal.show(); + }; + + UI.modal.blockUI = function(content, options) { + + var modal = UI.modal.dialog(([ + '<div class="uk-margin uk-modal-content">'+String(content || '<div class="uk-text-center">...</div>')+'</div>' + ]).join(""), UI.$.extend({bgclose:false, keyboard:false, modal:false}, options)); + + modal.content = modal.element.find('.uk-modal-content:first'); + modal.show(); + + return modal; + }; + + + UI.modal.labels = { + 'Ok': 'Ok', + 'Cancel': 'Cancel' + }; + + + // helper functions + function setContent(content, modal){ + + if(!modal) return; + + if (typeof content === 'object') { + + // convert DOM object to a jQuery object + content = content instanceof jQuery ? content : UI.$(content); + + if(content.parent().length) { + modal.persist = content; + modal.persist.data("modalPersistParent", content.parent()); + } + }else if (typeof content === 'string' || typeof content === 'number') { + // just insert the data as innerHTML + content = UI.$('<div></div>').html(content); + }else { + // unsupported data type! + content = UI.$('<div></div>').html('UIkit.modal Error: Unsupported data type: ' + typeof content); + } + + content.appendTo(modal.element.find('.uk-modal-dialog')); + + return modal; + } + +})(UIkit); diff --git a/media/uikit/js/core/modal.min.js b/media/uikit/js/core/modal.min.js new file mode 100644 index 00000000..92429536 --- /dev/null +++ b/media/uikit/js/core/modal.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){"use strict";function i(i,o){return o?("object"==typeof i?(i=i instanceof jQuery?i:t.$(i),i.parent().length&&(o.persist=i,o.persist.data("modalPersistParent",i.parent()))):i="string"==typeof i||"number"==typeof i?t.$("<div></div>").html(i):t.$("<div></div>").html("UIkit.modal Error: Unsupported data type: "+typeof i),i.appendTo(o.element.find(".uk-modal-dialog")),o):void 0}var o,e=!1,n=0,s=t.$html;t.component("modal",{defaults:{keyboard:!0,bgclose:!0,minScrollHeight:150,center:!1,modal:!0},scrollable:!1,transition:!1,init:function(){if(o||(o=t.$("body")),this.element.length){var i=this;this.paddingdir="padding-"+("left"==t.langdirection?"right":"left"),this.dialog=this.find(".uk-modal-dialog"),this.active=!1,this.element.attr("aria-hidden",this.element.hasClass("uk-open")),this.on("click",".uk-modal-close",function(t){t.preventDefault(),i.hide()}).on("click",function(o){var e=t.$(o.target);e[0]==i.element[0]&&i.options.bgclose&&i.hide()})}},toggle:function(){return this[this.isActive()?"hide":"show"]()},show:function(){if(this.element.length){if(!this.isActive())return this.options.modal&&e&&e.hide(!0),this.element.removeClass("uk-open").show(),this.resize(),this.options.modal&&(e=this),this.active=!0,n++,this.element.addClass("uk-open"),s.addClass("uk-modal-page").height(),this.element.attr("aria-hidden","false"),this.element.trigger("show.uk.modal"),t.Utils.checkDisplay(this.dialog,!0),this}},hide:function(i){if(!i&&t.support.transition){var o=this;this.one(t.support.transition.end,function(){o._hide()}).removeClass("uk-open")}else this._hide();return this},resize:function(){var t=o.width();if(this.scrollbarwidth=window.innerWidth-t,o.css(this.paddingdir,this.scrollbarwidth),this.element.css("overflow-y",this.scrollbarwidth?"scroll":"auto"),!this.updateScrollable()&&this.options.center){var i=this.dialog.outerHeight(),e=parseInt(this.dialog.css("margin-top"),10)+parseInt(this.dialog.css("margin-bottom"),10);i+e<window.innerHeight?this.dialog.css({top:window.innerHeight/2-i/2-e}):this.dialog.css({top:""})}},updateScrollable:function(){var t=this.dialog.find(".uk-overflow-container:visible:first");if(t.length){t.css("height",0);var i=Math.abs(parseInt(this.dialog.css("margin-top"),10)),o=this.dialog.outerHeight(),e=window.innerHeight,n=e-2*(20>i?20:i)-o;return t.css("height",n<this.options.minScrollHeight?"":n),!0}return!1},_hide:function(){this.active=!1,n--,this.element.hide().removeClass("uk-open"),this.element.attr("aria-hidden","true"),n||(s.removeClass("uk-modal-page"),o.css(this.paddingdir,"")),e===this&&(e=!1),this.trigger("hide.uk.modal")},isActive:function(){return this.active}}),t.component("modalTrigger",{boot:function(){t.$html.on("click.modal.uikit","[data-uk-modal]",function(i){var o=t.$(this);if(o.is("a")&&i.preventDefault(),!o.data("modalTrigger")){var e=t.modalTrigger(o,t.Utils.options(o.attr("data-uk-modal")));e.show()}}),t.$html.on("keydown.modal.uikit",function(t){e&&27===t.keyCode&&e.options.keyboard&&(t.preventDefault(),e.hide())}),t.$win.on("resize orientationchange",t.Utils.debounce(function(){e&&e.resize()},150))},init:function(){var i=this;this.options=t.$.extend({target:i.element.is("a")?i.element.attr("href"):!1},this.options),this.modal=t.modal(this.options.target,this.options),this.on("click",function(t){t.preventDefault(),i.show()}),this.proxy(this.modal,"show hide isActive")}}),t.modal.dialog=function(o,e){var n=t.modal(t.$(t.modal.dialog.template).appendTo("body"),e);return n.on("hide.uk.modal",function(){n.persist&&(n.persist.appendTo(n.persist.data("modalPersistParent")),n.persist=!1),n.element.remove()}),i(o,n),n},t.modal.dialog.template='<div class="uk-modal"><div class="uk-modal-dialog" style="min-height:0;"></div></div>',t.modal.alert=function(i,o){o=t.$.extend(!0,{bgclose:!1,keyboard:!1,modal:!1,labels:t.modal.labels},o);var e=t.modal.dialog(['<div class="uk-margin uk-modal-content">'+String(i)+"</div>",'<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-button-primary uk-modal-close">'+o.labels.Ok+"</button></div>"].join(""),o);e.on("show.uk.modal",function(){setTimeout(function(){e.element.find("button:first").focus()},50)}),e.show()},t.modal.confirm=function(i,o,e){o=t.$.isFunction(o)?o:function(){},e=t.$.extend(!0,{bgclose:!1,keyboard:!1,modal:!1,labels:t.modal.labels},e);var n=t.modal.dialog(['<div class="uk-margin uk-modal-content">'+String(i)+"</div>",'<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-button-primary js-modal-confirm">'+e.labels.Ok+'</button> <button class="uk-button uk-modal-close">'+e.labels.Cancel+"</button></div>"].join(""),e);n.element.find(".js-modal-confirm").on("click",function(){o(),n.hide()}),n.on("show.uk.modal",function(){setTimeout(function(){n.element.find("button:first").focus()},50)}),n.show()},t.modal.prompt=function(i,o,e,n){e=t.$.isFunction(e)?e:function(){},n=t.$.extend(!0,{bgclose:!1,keyboard:!1,modal:!1,labels:t.modal.labels},n);var s=t.modal.dialog([i?'<div class="uk-modal-content uk-form">'+String(i)+"</div>":"",'<div class="uk-margin-small-top uk-modal-content uk-form"><p><input type="text" class="uk-width-1-1"></p></div>','<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-button-primary js-modal-ok">'+n.labels.Ok+'</button> <button class="uk-button uk-modal-close">'+n.labels.Cancel+"</button></div>"].join(""),n),a=s.element.find("input[type='text']").val(o||"").on("keyup",function(t){13==t.keyCode&&s.element.find(".js-modal-ok").trigger("click")});s.element.find(".js-modal-ok").on("click",function(){e(a.val())!==!1&&s.hide()}),s.on("show.uk.modal",function(){setTimeout(function(){a.focus()},50)}),s.show()},t.modal.blockUI=function(i,o){var e=t.modal.dialog(['<div class="uk-margin uk-modal-content">'+String(i||'<div class="uk-text-center">...</div>')+"</div>"].join(""),t.$.extend({bgclose:!1,keyboard:!1,modal:!1},o));return e.content=e.element.find(".uk-modal-content:first"),e.show(),e},t.modal.labels={Ok:"Ok",Cancel:"Cancel"}}(UIkit); \ No newline at end of file diff --git a/media/uikit/js/core/nav.js b/media/uikit/js/core/nav.js new file mode 100644 index 00000000..020a2331 --- /dev/null +++ b/media/uikit/js/core/nav.js @@ -0,0 +1,136 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(UI) { + + "use strict"; + + UI.component('nav', { + + defaults: { + "toggle": ">li.uk-parent > a[href='#']", + "lists": ">li.uk-parent > ul", + "multiple": false + }, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-nav]", context).each(function() { + var nav = UI.$(this); + + if (!nav.data("nav")) { + var obj = UI.nav(nav, UI.Utils.options(nav.attr("data-uk-nav"))); + } + }); + }); + }, + + init: function() { + + var $this = this; + + this.on("click.uikit.nav", this.options.toggle, function(e) { + e.preventDefault(); + var ele = UI.$(this); + $this.open(ele.parent()[0] == $this.element[0] ? ele : ele.parent("li")); + }); + + this.find(this.options.lists).each(function() { + var $ele = UI.$(this), + parent = $ele.parent(), + active = parent.hasClass("uk-active"); + + $ele.wrap('<div style="overflow:hidden;height:0;position:relative;"></div>'); + parent.data("list-container", $ele.parent()[active ? 'removeClass':'addClass']('uk-hidden')); + + // Init ARIA + parent.attr('aria-expanded', parent.hasClass("uk-open")); + + if (active) $this.open(parent, true); + }); + + }, + + open: function(li, noanimation) { + + var $this = this, element = this.element, $li = UI.$(li), $container = $li.data('list-container'); + + if (!this.options.multiple) { + + element.children('.uk-open').not(li).each(function() { + + var ele = UI.$(this); + + if (ele.data('list-container')) { + ele.data('list-container').stop().animate({height: 0}, function() { + UI.$(this).parent().removeClass('uk-open').end().addClass('uk-hidden'); + }); + } + }); + } + + $li.toggleClass('uk-open'); + + // Update ARIA + $li.attr('aria-expanded', $li.hasClass('uk-open')); + + if ($container) { + + if ($li.hasClass('uk-open')) { + $container.removeClass('uk-hidden'); + } + + if (noanimation) { + + $container.stop().height($li.hasClass('uk-open') ? 'auto' : 0); + + if (!$li.hasClass('uk-open')) { + $container.addClass('uk-hidden'); + } + + this.trigger('display.uk.check'); + + } else { + + $container.stop().animate({ + height: ($li.hasClass('uk-open') ? getHeight($container.find('ul:first')) : 0) + }, function() { + + if (!$li.hasClass('uk-open')) { + $container.addClass('uk-hidden'); + } else { + $container.css('height', ''); + } + + $this.trigger('display.uk.check'); + }); + } + } + } + }); + + + // helper + + function getHeight(ele) { + var $ele = UI.$(ele), height = "auto"; + + if ($ele.is(":visible")) { + height = $ele.outerHeight(); + } else { + var tmp = { + position: $ele.css("position"), + visibility: $ele.css("visibility"), + display: $ele.css("display") + }; + + height = $ele.css({position: 'absolute', visibility: 'hidden', display: 'block'}).outerHeight(); + + $ele.css(tmp); // reset element + } + + return height; + } + +})(UIkit); diff --git a/media/uikit/js/core/nav.min.js b/media/uikit/js/core/nav.min.js new file mode 100644 index 00000000..e5dfc888 --- /dev/null +++ b/media/uikit/js/core/nav.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(i){"use strict";function t(t){var s=i.$(t),a="auto";if(s.is(":visible"))a=s.outerHeight();else{var e={position:s.css("position"),visibility:s.css("visibility"),display:s.css("display")};a=s.css({position:"absolute",visibility:"hidden",display:"block"}).outerHeight(),s.css(e)}return a}i.component("nav",{defaults:{toggle:">li.uk-parent > a[href='#']",lists:">li.uk-parent > ul",multiple:!1},boot:function(){i.ready(function(t){i.$("[data-uk-nav]",t).each(function(){var t=i.$(this);if(!t.data("nav")){i.nav(t,i.Utils.options(t.attr("data-uk-nav")))}})})},init:function(){var t=this;this.on("click.uikit.nav",this.options.toggle,function(s){s.preventDefault();var a=i.$(this);t.open(a.parent()[0]==t.element[0]?a:a.parent("li"))}),this.find(this.options.lists).each(function(){var s=i.$(this),a=s.parent(),e=a.hasClass("uk-active");s.wrap('<div style="overflow:hidden;height:0;position:relative;"></div>'),a.data("list-container",s.parent()[e?"removeClass":"addClass"]("uk-hidden")),a.attr("aria-expanded",a.hasClass("uk-open")),e&&t.open(a,!0)})},open:function(s,a){var e=this,n=this.element,o=i.$(s),l=o.data("list-container");this.options.multiple||n.children(".uk-open").not(s).each(function(){var t=i.$(this);t.data("list-container")&&t.data("list-container").stop().animate({height:0},function(){i.$(this).parent().removeClass("uk-open").end().addClass("uk-hidden")})}),o.toggleClass("uk-open"),o.attr("aria-expanded",o.hasClass("uk-open")),l&&(o.hasClass("uk-open")&&l.removeClass("uk-hidden"),a?(l.stop().height(o.hasClass("uk-open")?"auto":0),o.hasClass("uk-open")||l.addClass("uk-hidden"),this.trigger("display.uk.check")):l.stop().animate({height:o.hasClass("uk-open")?t(l.find("ul:first")):0},function(){o.hasClass("uk-open")?l.css("height",""):l.addClass("uk-hidden"),e.trigger("display.uk.check")}))}})}(UIkit); \ No newline at end of file diff --git a/media/uikit/js/core/offcanvas.js b/media/uikit/js/core/offcanvas.js new file mode 100644 index 00000000..68de1979 --- /dev/null +++ b/media/uikit/js/core/offcanvas.js @@ -0,0 +1,178 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(UI) { + + "use strict"; + + var scrollpos = {x: window.scrollX, y: window.scrollY}, + $win = UI.$win, + $doc = UI.$doc, + $html = UI.$html, + Offcanvas = { + + show: function(element) { + + element = UI.$(element); + + if (!element.length) return; + + var $body = UI.$('body'), + bar = element.find(".uk-offcanvas-bar:first"), + rtl = (UI.langdirection == "right"), + flip = bar.hasClass("uk-offcanvas-bar-flip") ? -1:1, + dir = flip * (rtl ? -1 : 1); + + scrollpos = {x: window.pageXOffset, y: window.pageYOffset}; + + element.addClass("uk-active"); + + $body.css({"width": window.innerWidth, "height": window.innerHeight}).addClass("uk-offcanvas-page"); + $body.css((rtl ? "margin-right" : "margin-left"), (rtl ? -1 : 1) * (bar.outerWidth() * dir)).width(); // .width() - force redraw + + $html.css('margin-top', scrollpos.y * -1); + + bar.addClass("uk-offcanvas-bar-show"); + + this._initElement(element); + + bar.trigger('show.uk.offcanvas', [element, bar]); + + // Update ARIA + element.attr('aria-hidden', 'false'); + }, + + hide: function(force) { + + var $body = UI.$('body'), + panel = UI.$(".uk-offcanvas.uk-active"), + rtl = (UI.langdirection == "right"), + bar = panel.find(".uk-offcanvas-bar:first"), + finalize = function() { + $body.removeClass("uk-offcanvas-page").css({"width": "", "height": "", "margin-left": "", "margin-right": ""}); + panel.removeClass("uk-active"); + + bar.removeClass("uk-offcanvas-bar-show"); + $html.css('margin-top', ''); + window.scrollTo(scrollpos.x, scrollpos.y); + bar.trigger('hide.uk.offcanvas', [panel, bar]); + + // Update ARIA + panel.attr('aria-hidden', 'true'); + }; + + if (!panel.length) return; + + if (UI.support.transition && !force) { + + $body.one(UI.support.transition.end, function() { + finalize(); + }).css((rtl ? "margin-right" : "margin-left"), ""); + + setTimeout(function(){ + bar.removeClass("uk-offcanvas-bar-show"); + }, 0); + + } else { + finalize(); + } + }, + + _initElement: function(element) { + + if (element.data("OffcanvasInit")) return; + + element.on("click.uk.offcanvas swipeRight.uk.offcanvas swipeLeft.uk.offcanvas", function(e) { + + var target = UI.$(e.target); + + if (!e.type.match(/swipe/)) { + + if (!target.hasClass("uk-offcanvas-close")) { + if (target.hasClass("uk-offcanvas-bar")) return; + if (target.parents(".uk-offcanvas-bar:first").length) return; + } + } + + e.stopImmediatePropagation(); + Offcanvas.hide(); + }); + + element.on("click", "a[href^='#']", function(e){ + + var link = UI.$(this), + href = link.attr("href"); + + if (href == "#") { + return; + } + + UI.$doc.one('hide.uk.offcanvas', function() { + + var target; + + try { + target = UI.$(href); + } catch (e){ + target = "" + } + + if (!target.length) { + target = UI.$('[name="'+href.replace('#','')+'"]'); + } + + if (target.length && link.attr('data-uk-smooth-scroll') && UI.Utils.scrollToElement) { + UI.Utils.scrollToElement(target, UI.Utils.options(link.attr('data-uk-smooth-scroll') || '{}')); + } else { + window.location.href = href; + } + }); + + Offcanvas.hide(); + }); + + element.data("OffcanvasInit", true); + } + }; + + UI.component('offcanvasTrigger', { + + boot: function() { + + // init code + $html.on("click.offcanvas.uikit", "[data-uk-offcanvas]", function(e) { + + e.preventDefault(); + + var ele = UI.$(this); + + if (!ele.data("offcanvasTrigger")) { + var obj = UI.offcanvasTrigger(ele, UI.Utils.options(ele.attr("data-uk-offcanvas"))); + ele.trigger("click"); + } + }); + + $html.on('keydown.uk.offcanvas', function(e) { + + if (e.keyCode === 27) { // ESC + Offcanvas.hide(); + } + }); + }, + + init: function() { + + var $this = this; + + this.options = UI.$.extend({ + "target": $this.element.is("a") ? $this.element.attr("href") : false + }, this.options); + + this.on("click", function(e) { + e.preventDefault(); + Offcanvas.show($this.options.target); + }); + } + }); + + UI.offcanvas = Offcanvas; + +})(UIkit); diff --git a/media/uikit/js/core/offcanvas.min.js b/media/uikit/js/core/offcanvas.min.js new file mode 100644 index 00000000..480906eb --- /dev/null +++ b/media/uikit/js/core/offcanvas.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(a){"use strict";var t={x:window.scrollX,y:window.scrollY},n=(a.$win,a.$doc,a.$html),i={show:function(i){if(i=a.$(i),i.length){var o=a.$("body"),s=i.find(".uk-offcanvas-bar:first"),e="right"==a.langdirection,f=s.hasClass("uk-offcanvas-bar-flip")?-1:1,r=f*(e?-1:1);t={x:window.pageXOffset,y:window.pageYOffset},i.addClass("uk-active"),o.css({width:window.innerWidth,height:window.innerHeight}).addClass("uk-offcanvas-page"),o.css(e?"margin-right":"margin-left",(e?-1:1)*s.outerWidth()*r).width(),n.css("margin-top",-1*t.y),s.addClass("uk-offcanvas-bar-show"),this._initElement(i),s.trigger("show.uk.offcanvas",[i,s]),i.attr("aria-hidden","false")}},hide:function(i){var o=a.$("body"),s=a.$(".uk-offcanvas.uk-active"),e="right"==a.langdirection,f=s.find(".uk-offcanvas-bar:first"),r=function(){o.removeClass("uk-offcanvas-page").css({width:"",height:"","margin-left":"","margin-right":""}),s.removeClass("uk-active"),f.removeClass("uk-offcanvas-bar-show"),n.css("margin-top",""),window.scrollTo(t.x,t.y),f.trigger("hide.uk.offcanvas",[s,f]),s.attr("aria-hidden","true")};s.length&&(a.support.transition&&!i?(o.one(a.support.transition.end,function(){r()}).css(e?"margin-right":"margin-left",""),setTimeout(function(){f.removeClass("uk-offcanvas-bar-show")},0)):r())},_initElement:function(t){t.data("OffcanvasInit")||(t.on("click.uk.offcanvas swipeRight.uk.offcanvas swipeLeft.uk.offcanvas",function(t){var n=a.$(t.target);if(!t.type.match(/swipe/)&&!n.hasClass("uk-offcanvas-close")){if(n.hasClass("uk-offcanvas-bar"))return;if(n.parents(".uk-offcanvas-bar:first").length)return}t.stopImmediatePropagation(),i.hide()}),t.on("click","a[href^='#']",function(){var t=a.$(this),n=t.attr("href");"#"!=n&&(a.$doc.one("hide.uk.offcanvas",function(){var i;try{i=a.$(n)}catch(o){i=""}i.length||(i=a.$('[name="'+n.replace("#","")+'"]')),i.length&&t.attr("data-uk-smooth-scroll")&&a.Utils.scrollToElement?a.Utils.scrollToElement(i,a.Utils.options(t.attr("data-uk-smooth-scroll")||"{}")):window.location.href=n}),i.hide())}),t.data("OffcanvasInit",!0))}};a.component("offcanvasTrigger",{boot:function(){n.on("click.offcanvas.uikit","[data-uk-offcanvas]",function(t){t.preventDefault();var n=a.$(this);if(!n.data("offcanvasTrigger")){{a.offcanvasTrigger(n,a.Utils.options(n.attr("data-uk-offcanvas")))}n.trigger("click")}}),n.on("keydown.uk.offcanvas",function(a){27===a.keyCode&&i.hide()})},init:function(){var t=this;this.options=a.$.extend({target:t.element.is("a")?t.element.attr("href"):!1},this.options),this.on("click",function(a){a.preventDefault(),i.show(t.options.target)})}}),a.offcanvas=i}(UIkit); \ No newline at end of file diff --git a/media/uikit/js/core/scrollspy.js b/media/uikit/js/core/scrollspy.js new file mode 100644 index 00000000..9b8349ed --- /dev/null +++ b/media/uikit/js/core/scrollspy.js @@ -0,0 +1,208 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(UI) { + + "use strict"; + + var $win = UI.$win, + $doc = UI.$doc, + scrollspies = [], + checkScrollSpy = function() { + for(var i=0; i < scrollspies.length; i++) { + window.requestAnimationFrame.apply(window, [scrollspies[i].check]); + } + }; + + UI.component('scrollspy', { + + defaults: { + "target" : false, + "cls" : "uk-scrollspy-inview", + "initcls" : "uk-scrollspy-init-inview", + "topoffset" : 0, + "leftoffset" : 0, + "repeat" : false, + "delay" : 0 + }, + + boot: function() { + + // listen to scroll and resize + $doc.on("scrolling.uk.document", checkScrollSpy); + $win.on("load resize orientationchange", UI.Utils.debounce(checkScrollSpy, 50)); + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-scrollspy]", context).each(function() { + + var element = UI.$(this); + + if (!element.data("scrollspy")) { + var obj = UI.scrollspy(element, UI.Utils.options(element.attr("data-uk-scrollspy"))); + } + }); + }); + }, + + init: function() { + + var $this = this, inviewstate, initinview, togglecls = this.options.cls.split(/,/), fn = function(){ + + var elements = $this.options.target ? $this.element.find($this.options.target) : $this.element, + delayIdx = elements.length === 1 ? 1 : 0, + toggleclsIdx = 0; + + elements.each(function(idx){ + + var element = UI.$(this), + inviewstate = element.data('inviewstate'), + inview = UI.Utils.isInView(element, $this.options), + toggle = element.data('ukScrollspyCls') || togglecls[toggleclsIdx].trim(); + + if (inview && !inviewstate && !element.data('scrollspy-idle')) { + + if (!initinview) { + element.addClass($this.options.initcls); + $this.offset = element.offset(); + initinview = true; + + element.trigger("init.uk.scrollspy"); + } + + element.data('scrollspy-idle', setTimeout(function(){ + + element.addClass("uk-scrollspy-inview").toggleClass(toggle).width(); + element.trigger("inview.uk.scrollspy"); + + element.data('scrollspy-idle', false); + element.data('inviewstate', true); + + }, $this.options.delay * delayIdx)); + + delayIdx++; + } + + if (!inview && inviewstate && $this.options.repeat) { + + if (element.data('scrollspy-idle')) { + clearTimeout(element.data('scrollspy-idle')); + } + + element.removeClass("uk-scrollspy-inview").toggleClass(toggle); + element.data('inviewstate', false); + + element.trigger("outview.uk.scrollspy"); + } + + toggleclsIdx = togglecls[toggleclsIdx + 1] ? (toggleclsIdx + 1) : 0; + + }); + }; + + fn(); + + this.check = fn; + + scrollspies.push(this); + } + }); + + + var scrollspynavs = [], + checkScrollSpyNavs = function() { + for(var i=0; i < scrollspynavs.length; i++) { + window.requestAnimationFrame.apply(window, [scrollspynavs[i].check]); + } + }; + + UI.component('scrollspynav', { + + defaults: { + "cls" : 'uk-active', + "closest" : false, + "topoffset" : 0, + "leftoffset" : 0, + "smoothscroll" : false + }, + + boot: function() { + + // listen to scroll and resize + $doc.on("scrolling.uk.document", checkScrollSpyNavs); + $win.on("resize orientationchange", UI.Utils.debounce(checkScrollSpyNavs, 50)); + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-scrollspy-nav]", context).each(function() { + + var element = UI.$(this); + + if (!element.data("scrollspynav")) { + var obj = UI.scrollspynav(element, UI.Utils.options(element.attr("data-uk-scrollspy-nav"))); + } + }); + }); + }, + + init: function() { + + var ids = [], + links = this.find("a[href^='#']").each(function(){ ids.push(UI.$(this).attr("href")); }), + targets = UI.$(ids.join(",")), + + clsActive = this.options.cls, + clsClosest = this.options.closest || this.options.closest; + + var $this = this, inviews, fn = function(){ + + inviews = []; + + for (var i=0 ; i < targets.length ; i++) { + if (UI.Utils.isInView(targets.eq(i), $this.options)) { + inviews.push(targets.eq(i)); + } + } + + if (inviews.length) { + + var navitems, + scrollTop = $win.scrollTop(), + target = (function(){ + for(var i=0; i< inviews.length;i++){ + if(inviews[i].offset().top >= scrollTop){ + return inviews[i]; + } + } + })(); + + if (!target) return; + + if ($this.options.closest) { + links.closest(clsClosest).removeClass(clsActive); + navitems = links.filter("a[href='#"+target.attr("id")+"']").closest(clsClosest).addClass(clsActive); + } else { + navitems = links.removeClass(clsActive).filter("a[href='#"+target.attr("id")+"']").addClass(clsActive); + } + + $this.element.trigger("inview.uk.scrollspynav", [target, navitems]); + } + }; + + if (this.options.smoothscroll && UI.smoothScroll) { + links.each(function(){ + UI.smoothScroll(this, $this.options.smoothscroll); + }); + } + + fn(); + + this.element.data("scrollspynav", this); + + this.check = fn; + scrollspynavs.push(this); + + } + }); + +})(UIkit); diff --git a/media/uikit/js/core/scrollspy.min.js b/media/uikit/js/core/scrollspy.min.js new file mode 100644 index 00000000..ade68908 --- /dev/null +++ b/media/uikit/js/core/scrollspy.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){"use strict";var s=t.$win,o=t.$doc,i=[],e=function(){for(var t=0;t<i.length;t++)window.requestAnimationFrame.apply(window,[i[t].check])};t.component("scrollspy",{defaults:{target:!1,cls:"uk-scrollspy-inview",initcls:"uk-scrollspy-init-inview",topoffset:0,leftoffset:0,repeat:!1,delay:0},boot:function(){o.on("scrolling.uk.document",e),s.on("load resize orientationchange",t.Utils.debounce(e,50)),t.ready(function(s){t.$("[data-uk-scrollspy]",s).each(function(){var s=t.$(this);if(!s.data("scrollspy")){t.scrollspy(s,t.Utils.options(s.attr("data-uk-scrollspy")))}})})},init:function(){var s,o=this,e=this.options.cls.split(/,/),l=function(){var i=o.options.target?o.element.find(o.options.target):o.element,l=1===i.length?1:0,n=0;i.each(function(){var i=t.$(this),a=i.data("inviewstate"),r=t.Utils.isInView(i,o.options),c=i.data("ukScrollspyCls")||e[n].trim();!r||a||i.data("scrollspy-idle")||(s||(i.addClass(o.options.initcls),o.offset=i.offset(),s=!0,i.trigger("init.uk.scrollspy")),i.data("scrollspy-idle",setTimeout(function(){i.addClass("uk-scrollspy-inview").toggleClass(c).width(),i.trigger("inview.uk.scrollspy"),i.data("scrollspy-idle",!1),i.data("inviewstate",!0)},o.options.delay*l)),l++),!r&&a&&o.options.repeat&&(i.data("scrollspy-idle")&&clearTimeout(i.data("scrollspy-idle")),i.removeClass("uk-scrollspy-inview").toggleClass(c),i.data("inviewstate",!1),i.trigger("outview.uk.scrollspy")),n=e[n+1]?n+1:0})};l(),this.check=l,i.push(this)}});var l=[],n=function(){for(var t=0;t<l.length;t++)window.requestAnimationFrame.apply(window,[l[t].check])};t.component("scrollspynav",{defaults:{cls:"uk-active",closest:!1,topoffset:0,leftoffset:0,smoothscroll:!1},boot:function(){o.on("scrolling.uk.document",n),s.on("resize orientationchange",t.Utils.debounce(n,50)),t.ready(function(s){t.$("[data-uk-scrollspy-nav]",s).each(function(){var s=t.$(this);if(!s.data("scrollspynav")){t.scrollspynav(s,t.Utils.options(s.attr("data-uk-scrollspy-nav")))}})})},init:function(){var o,i=[],e=this.find("a[href^='#']").each(function(){i.push(t.$(this).attr("href"))}),n=t.$(i.join(",")),a=this.options.cls,r=this.options.closest||this.options.closest,c=this,p=function(){o=[];for(var i=0;i<n.length;i++)t.Utils.isInView(n.eq(i),c.options)&&o.push(n.eq(i));if(o.length){var l,p=s.scrollTop(),f=function(){for(var t=0;t<o.length;t++)if(o[t].offset().top>=p)return o[t]}();if(!f)return;c.options.closest?(e.closest(r).removeClass(a),l=e.filter("a[href='#"+f.attr("id")+"']").closest(r).addClass(a)):l=e.removeClass(a).filter("a[href='#"+f.attr("id")+"']").addClass(a),c.element.trigger("inview.uk.scrollspynav",[f,l])}};this.options.smoothscroll&&t.smoothScroll&&e.each(function(){t.smoothScroll(this,c.options.smoothscroll)}),p(),this.element.data("scrollspynav",this),this.check=p,l.push(this)}})}(UIkit); \ No newline at end of file diff --git a/media/uikit/js/core/smooth-scroll.js b/media/uikit/js/core/smooth-scroll.js new file mode 100644 index 00000000..a7ebce0e --- /dev/null +++ b/media/uikit/js/core/smooth-scroll.js @@ -0,0 +1,62 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(UI) { + + "use strict"; + + UI.component('smoothScroll', { + + boot: function() { + + // init code + UI.$html.on("click.smooth-scroll.uikit", "[data-uk-smooth-scroll]", function(e) { + var ele = UI.$(this); + + if (!ele.data("smoothScroll")) { + var obj = UI.smoothScroll(ele, UI.Utils.options(ele.attr("data-uk-smooth-scroll"))); + ele.trigger("click"); + } + + return false; + }); + }, + + init: function() { + + var $this = this; + + this.on("click", function(e) { + e.preventDefault(); + scrollToElement(UI.$(this.hash).length ? UI.$(this.hash) : UI.$("body"), $this.options); + }); + } + }); + + function scrollToElement(ele, options) { + + options = UI.$.extend({ + duration: 1000, + transition: 'easeOutExpo', + offset: 0, + complete: function(){} + }, options); + + // get / set parameters + var target = ele.offset().top - options.offset, + docheight = UI.$doc.height(), + winheight = window.innerHeight; + + if ((target + winheight) > docheight) { + target = docheight - winheight; + } + + // animate to target, fire callback when done + UI.$("html,body").stop().animate({scrollTop: target}, options.duration, options.transition).promise().done(options.complete); + } + + UI.Utils.scrollToElement = scrollToElement; + + if (!UI.$.easing.easeOutExpo) { + UI.$.easing.easeOutExpo = function(x, t, b, c, d) { return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b; }; + } + +})(UIkit); diff --git a/media/uikit/js/core/smooth-scroll.min.js b/media/uikit/js/core/smooth-scroll.min.js new file mode 100644 index 00000000..0c09be5d --- /dev/null +++ b/media/uikit/js/core/smooth-scroll.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){"use strict";function o(o,i){i=t.$.extend({duration:1e3,transition:"easeOutExpo",offset:0,complete:function(){}},i);var n=o.offset().top-i.offset,s=t.$doc.height(),e=window.innerHeight;n+e>s&&(n=s-e),t.$("html,body").stop().animate({scrollTop:n},i.duration,i.transition).promise().done(i.complete)}t.component("smoothScroll",{boot:function(){t.$html.on("click.smooth-scroll.uikit","[data-uk-smooth-scroll]",function(){var o=t.$(this);if(!o.data("smoothScroll")){{t.smoothScroll(o,t.Utils.options(o.attr("data-uk-smooth-scroll")))}o.trigger("click")}return!1})},init:function(){var i=this;this.on("click",function(n){n.preventDefault(),o(t.$(this.hash).length?t.$(this.hash):t.$("body"),i.options)})}}),t.Utils.scrollToElement=o,t.$.easing.easeOutExpo||(t.$.easing.easeOutExpo=function(t,o,i,n,s){return o==s?i+n:n*(-Math.pow(2,-10*o/s)+1)+i})}(UIkit); \ No newline at end of file diff --git a/media/uikit/js/core/switcher.js b/media/uikit/js/core/switcher.js new file mode 100644 index 00000000..4d4cfcbb --- /dev/null +++ b/media/uikit/js/core/switcher.js @@ -0,0 +1,298 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(UI) { + + "use strict"; + + var Animations; + + UI.component('switcher', { + + defaults: { + connect : false, + toggle : ">*", + active : 0, + animation : false, + duration : 200 + }, + + animating: false, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-switcher]", context).each(function() { + var switcher = UI.$(this); + + if (!switcher.data("switcher")) { + var obj = UI.switcher(switcher, UI.Utils.options(switcher.attr("data-uk-switcher"))); + } + }); + }); + }, + + init: function() { + + var $this = this; + + this.on("click.uikit.switcher", this.options.toggle, function(e) { + e.preventDefault(); + $this.show(this); + }); + + if (this.options.connect) { + + this.connect = UI.$(this.options.connect); + + this.connect.find(".uk-active").removeClass(".uk-active"); + + // delegate switch commands within container content + if (this.connect.length) { + + // Init ARIA for connect + this.connect.children().attr('aria-hidden', 'true'); + + this.connect.on("click", '[data-uk-switcher-item]', function(e) { + + e.preventDefault(); + + var item = UI.$(this).attr('data-uk-switcher-item'); + + if ($this.index == item) return; + + switch(item) { + case 'next': + case 'previous': + $this.show($this.index + (item=='next' ? 1:-1)); + break; + default: + $this.show(parseInt(item, 10)); + } + }).on('swipeRight swipeLeft', function(e) { + e.preventDefault(); + if(!window.getSelection().toString()) { + $this.show($this.index + (e.type == 'swipeLeft' ? 1 : -1)); + } + }); + } + + var toggles = this.find(this.options.toggle), + active = toggles.filter(".uk-active"); + + if (active.length) { + this.show(active, false); + } else { + + if (this.options.active===false) return; + + active = toggles.eq(this.options.active); + this.show(active.length ? active : toggles.eq(0), false); + } + + // Init ARIA for toggles + toggles.not(active).attr('aria-expanded', 'false'); + active.attr('aria-expanded', 'true'); + + this.on('changed.uk.dom', function() { + $this.connect = UI.$($this.options.connect); + }); + } + + }, + + show: function(tab, animate) { + + if (this.animating) { + return; + } + + if (isNaN(tab)) { + tab = UI.$(tab); + } else { + + var toggles = this.find(this.options.toggle); + + tab = tab < 0 ? toggles.length-1 : tab; + tab = toggles.eq(toggles[tab] ? tab : 0); + } + + var $this = this, + toggles = this.find(this.options.toggle), + active = UI.$(tab), + animation = Animations[this.options.animation] || function(current, next) { + + if (!$this.options.animation) { + return Animations.none.apply($this); + } + + var anim = $this.options.animation.split(','); + + if (anim.length == 1) { + anim[1] = anim[0]; + } + + anim[0] = anim[0].trim(); + anim[1] = anim[1].trim(); + + return coreAnimation.apply($this, [anim, current, next]); + }; + + if (animate===false || !UI.support.animation) { + animation = Animations.none; + } + + if (active.hasClass("uk-disabled")) return; + + // Update ARIA for Toggles + toggles.attr('aria-expanded', 'false'); + active.attr('aria-expanded', 'true'); + + toggles.filter(".uk-active").removeClass("uk-active"); + active.addClass("uk-active"); + + if (this.options.connect && this.connect.length) { + + this.index = this.find(this.options.toggle).index(active); + + if (this.index == -1 ) { + this.index = 0; + } + + this.connect.each(function() { + + var container = UI.$(this), + children = UI.$(container.children()), + current = UI.$(children.filter('.uk-active')), + next = UI.$(children.eq($this.index)); + + $this.animating = true; + + animation.apply($this, [current, next]).then(function(){ + + current.removeClass("uk-active"); + next.addClass("uk-active"); + + // Update ARIA for connect + current.attr('aria-hidden', 'true'); + next.attr('aria-hidden', 'false'); + + UI.Utils.checkDisplay(next, true); + + $this.animating = false; + }); + }); + } + + this.trigger("show.uk.switcher", [active]); + } + }); + + Animations = { + + 'none': function() { + var d = UI.$.Deferred(); + d.resolve(); + return d.promise(); + }, + + 'fade': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-fade', current, next]); + }, + + 'slide-bottom': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-slide-bottom', current, next]); + }, + + 'slide-top': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-slide-top', current, next]); + }, + + 'slide-vertical': function(current, next, dir) { + + var anim = ['uk-animation-slide-top', 'uk-animation-slide-bottom']; + + if (current && current.index() > next.index()) { + anim.reverse(); + } + + return coreAnimation.apply(this, [anim, current, next]); + }, + + 'slide-left': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-slide-left', current, next]); + }, + + 'slide-right': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-slide-right', current, next]); + }, + + 'slide-horizontal': function(current, next, dir) { + + var anim = ['uk-animation-slide-right', 'uk-animation-slide-left']; + + if (current && current.index() > next.index()) { + anim.reverse(); + } + + return coreAnimation.apply(this, [anim, current, next]); + }, + + 'scale': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-scale-up', current, next]); + } + }; + + UI.switcher.animations = Animations; + + + // helpers + + function coreAnimation(cls, current, next) { + + var d = UI.$.Deferred(), clsIn = cls, clsOut = cls, release; + + if (next[0]===current[0]) { + d.resolve(); + return d.promise(); + } + + if (typeof(cls) == 'object') { + clsIn = cls[0]; + clsOut = cls[1] || cls[0]; + } + + release = function() { + + if (current) current.hide().removeClass('uk-active '+clsOut+' uk-animation-reverse'); + + next.addClass(clsIn).one(UI.support.animation.end, function() { + + next.removeClass(''+clsIn+'').css({opacity:'', display:''}); + + d.resolve(); + + if (current) current.css({opacity:'', display:''}); + + }.bind(this)).show(); + }; + + next.css('animation-duration', this.options.duration+'ms'); + + if (current && current.length) { + + current.css('animation-duration', this.options.duration+'ms'); + + current.css('display', 'none').addClass(clsOut+' uk-animation-reverse').one(UI.support.animation.end, function() { + release(); + }.bind(this)).css('display', ''); + + } else { + next.addClass('uk-active'); + release(); + } + + return d.promise(); + } + +})(UIkit); diff --git a/media/uikit/js/core/switcher.min.js b/media/uikit/js/core/switcher.min.js new file mode 100644 index 00000000..d06a3a00 --- /dev/null +++ b/media/uikit/js/core/switcher.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){"use strict";function i(i,n,e){var a,s=t.$.Deferred(),o=i,r=i;return e[0]===n[0]?(s.resolve(),s.promise()):("object"==typeof i&&(o=i[0],r=i[1]||i[0]),a=function(){n&&n.hide().removeClass("uk-active "+r+" uk-animation-reverse"),e.addClass(o).one(t.support.animation.end,function(){e.removeClass(""+o).css({opacity:"",display:""}),s.resolve(),n&&n.css({opacity:"",display:""})}.bind(this)).show()},e.css("animation-duration",this.options.duration+"ms"),n&&n.length?(n.css("animation-duration",this.options.duration+"ms"),n.css("display","none").addClass(r+" uk-animation-reverse").one(t.support.animation.end,function(){a()}.bind(this)).css("display","")):(e.addClass("uk-active"),a()),s.promise())}var n;t.component("switcher",{defaults:{connect:!1,toggle:">*",active:0,animation:!1,duration:200},animating:!1,boot:function(){t.ready(function(i){t.$("[data-uk-switcher]",i).each(function(){var i=t.$(this);if(!i.data("switcher")){t.switcher(i,t.Utils.options(i.attr("data-uk-switcher")))}})})},init:function(){var i=this;if(this.on("click.uikit.switcher",this.options.toggle,function(t){t.preventDefault(),i.show(this)}),this.options.connect){this.connect=t.$(this.options.connect),this.connect.find(".uk-active").removeClass(".uk-active"),this.connect.length&&(this.connect.children().attr("aria-hidden","true"),this.connect.on("click","[data-uk-switcher-item]",function(n){n.preventDefault();var e=t.$(this).attr("data-uk-switcher-item");if(i.index!=e)switch(e){case"next":case"previous":i.show(i.index+("next"==e?1:-1));break;default:i.show(parseInt(e,10))}}).on("swipeRight swipeLeft",function(t){t.preventDefault(),window.getSelection().toString()||i.show(i.index+("swipeLeft"==t.type?1:-1))}));var n=this.find(this.options.toggle),e=n.filter(".uk-active");if(e.length)this.show(e,!1);else{if(this.options.active===!1)return;e=n.eq(this.options.active),this.show(e.length?e:n.eq(0),!1)}n.not(e).attr("aria-expanded","false"),e.attr("aria-expanded","true"),this.on("changed.uk.dom",function(){i.connect=t.$(i.options.connect)})}},show:function(e,a){if(!this.animating){if(isNaN(e))e=t.$(e);else{var s=this.find(this.options.toggle);e=0>e?s.length-1:e,e=s.eq(s[e]?e:0)}var o=this,s=this.find(this.options.toggle),r=t.$(e),c=n[this.options.animation]||function(t,e){if(!o.options.animation)return n.none.apply(o);var a=o.options.animation.split(",");return 1==a.length&&(a[1]=a[0]),a[0]=a[0].trim(),a[1]=a[1].trim(),i.apply(o,[a,t,e])};a!==!1&&t.support.animation||(c=n.none),r.hasClass("uk-disabled")||(s.attr("aria-expanded","false"),r.attr("aria-expanded","true"),s.filter(".uk-active").removeClass("uk-active"),r.addClass("uk-active"),this.options.connect&&this.connect.length&&(this.index=this.find(this.options.toggle).index(r),-1==this.index&&(this.index=0),this.connect.each(function(){var i=t.$(this),n=t.$(i.children()),e=t.$(n.filter(".uk-active")),a=t.$(n.eq(o.index));o.animating=!0,c.apply(o,[e,a]).then(function(){e.removeClass("uk-active"),a.addClass("uk-active"),e.attr("aria-hidden","true"),a.attr("aria-hidden","false"),t.Utils.checkDisplay(a,!0),o.animating=!1})})),this.trigger("show.uk.switcher",[r]))}}}),n={none:function(){var i=t.$.Deferred();return i.resolve(),i.promise()},fade:function(t,n){return i.apply(this,["uk-animation-fade",t,n])},"slide-bottom":function(t,n){return i.apply(this,["uk-animation-slide-bottom",t,n])},"slide-top":function(t,n){return i.apply(this,["uk-animation-slide-top",t,n])},"slide-vertical":function(t,n){var e=["uk-animation-slide-top","uk-animation-slide-bottom"];return t&&t.index()>n.index()&&e.reverse(),i.apply(this,[e,t,n])},"slide-left":function(t,n){return i.apply(this,["uk-animation-slide-left",t,n])},"slide-right":function(t,n){return i.apply(this,["uk-animation-slide-right",t,n])},"slide-horizontal":function(t,n){var e=["uk-animation-slide-right","uk-animation-slide-left"];return t&&t.index()>n.index()&&e.reverse(),i.apply(this,[e,t,n])},scale:function(t,n){return i.apply(this,["uk-animation-scale-up",t,n])}},t.switcher.animations=n}(UIkit); \ No newline at end of file diff --git a/media/uikit/js/core/tab.js b/media/uikit/js/core/tab.js new file mode 100644 index 00000000..6040e7fc --- /dev/null +++ b/media/uikit/js/core/tab.js @@ -0,0 +1,165 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(UI) { + + "use strict"; + + UI.component('tab', { + + defaults: { + 'target' : '>li:not(.uk-tab-responsive, .uk-disabled)', + 'connect' : false, + 'active' : 0, + 'animation' : false, + 'duration' : 200 + }, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-tab]", context).each(function() { + + var tab = UI.$(this); + + if (!tab.data("tab")) { + var obj = UI.tab(tab, UI.Utils.options(tab.attr("data-uk-tab"))); + } + }); + }); + }, + + init: function() { + + var $this = this; + + this.current = false; + + this.on("click.uikit.tab", this.options.target, function(e) { + + e.preventDefault(); + + if ($this.switcher && $this.switcher.animating) { + return; + } + + var current = $this.find($this.options.target).not(this); + + current.removeClass("uk-active").blur(); + + $this.trigger("change.uk.tab", [UI.$(this).addClass("uk-active"), $this.current]); + + $this.current = UI.$(this); + + // Update ARIA + if (!$this.options.connect) { + current.attr('aria-expanded', 'false'); + UI.$(this).attr('aria-expanded', 'true'); + } + }); + + if (this.options.connect) { + this.connect = UI.$(this.options.connect); + } + + // init responsive tab + this.responsivetab = UI.$('<li class="uk-tab-responsive uk-active"><a></a></li>').append('<div class="uk-dropdown uk-dropdown-small"><ul class="uk-nav uk-nav-dropdown"></ul><div>'); + + this.responsivetab.dropdown = this.responsivetab.find('.uk-dropdown'); + this.responsivetab.lst = this.responsivetab.dropdown.find('ul'); + this.responsivetab.caption = this.responsivetab.find('a:first'); + + if (this.element.hasClass("uk-tab-bottom")) this.responsivetab.dropdown.addClass("uk-dropdown-up"); + + // handle click + this.responsivetab.lst.on('click.uikit.tab', 'a', function(e) { + + e.preventDefault(); + e.stopPropagation(); + + var link = UI.$(this); + + $this.element.children('li:not(.uk-tab-responsive)').eq(link.data('index')).trigger('click'); + }); + + this.on('show.uk.switcher change.uk.tab', function(e, tab) { + $this.responsivetab.caption.html(tab.text()); + }); + + this.element.append(this.responsivetab); + + // init UIkit components + if (this.options.connect) { + this.switcher = UI.switcher(this.element, { + "toggle" : ">li:not(.uk-tab-responsive)", + "connect" : this.options.connect, + "active" : this.options.active, + "animation" : this.options.animation, + "duration" : this.options.duration + }); + } + + UI.dropdown(this.responsivetab, {"mode": "click"}); + + // init + $this.trigger("change.uk.tab", [this.element.find(this.options.target).not('.uk-tab-responsive').filter('.uk-active')]); + + this.check(); + + UI.$win.on('resize orientationchange', UI.Utils.debounce(function(){ + if ($this.element.is(":visible")) $this.check(); + }, 100)); + + this.on('display.uk.check', function(){ + if ($this.element.is(":visible")) $this.check(); + }); + }, + + check: function() { + + var children = this.element.children('li:not(.uk-tab-responsive)').removeClass('uk-hidden'); + + if (!children.length) { + this.responsivetab.addClass('uk-hidden'); + return; + } + + var top = (children.eq(0).offset().top + Math.ceil(children.eq(0).height()/2)), + doresponsive = false, + item, link, clone; + + this.responsivetab.lst.empty(); + + children.each(function(){ + + if (UI.$(this).offset().top > top) { + doresponsive = true; + } + }); + + if (doresponsive) { + + for (var i = 0; i < children.length; i++) { + + item = UI.$(children.eq(i)); + link = item.find('a'); + + if (item.css('float') != 'none' && !item.attr('uk-dropdown')) { + + if (!item.hasClass('uk-disabled')) { + + clone = item[0].outerHTML.replace('<a ', '<a data-index="'+i+'" '); + + this.responsivetab.lst.append(clone); + } + + item.addClass('uk-hidden'); + } + } + } + + this.responsivetab[this.responsivetab.lst.children('li').length ? 'removeClass':'addClass']('uk-hidden'); + } + }); + +})(UIkit); diff --git a/media/uikit/js/core/tab.min.js b/media/uikit/js/core/tab.min.js new file mode 100644 index 00000000..3447bc66 --- /dev/null +++ b/media/uikit/js/core/tab.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){"use strict";t.component("tab",{defaults:{target:">li:not(.uk-tab-responsive, .uk-disabled)",connect:!1,active:0,animation:!1,duration:200},boot:function(){t.ready(function(i){t.$("[data-uk-tab]",i).each(function(){var i=t.$(this);if(!i.data("tab")){t.tab(i,t.Utils.options(i.attr("data-uk-tab")))}})})},init:function(){var i=this;this.current=!1,this.on("click.uikit.tab",this.options.target,function(e){if(e.preventDefault(),!i.switcher||!i.switcher.animating){var s=i.find(i.options.target).not(this);s.removeClass("uk-active").blur(),i.trigger("change.uk.tab",[t.$(this).addClass("uk-active"),i.current]),i.current=t.$(this),i.options.connect||(s.attr("aria-expanded","false"),t.$(this).attr("aria-expanded","true"))}}),this.options.connect&&(this.connect=t.$(this.options.connect)),this.responsivetab=t.$('<li class="uk-tab-responsive uk-active"><a></a></li>').append('<div class="uk-dropdown uk-dropdown-small"><ul class="uk-nav uk-nav-dropdown"></ul><div>'),this.responsivetab.dropdown=this.responsivetab.find(".uk-dropdown"),this.responsivetab.lst=this.responsivetab.dropdown.find("ul"),this.responsivetab.caption=this.responsivetab.find("a:first"),this.element.hasClass("uk-tab-bottom")&&this.responsivetab.dropdown.addClass("uk-dropdown-up"),this.responsivetab.lst.on("click.uikit.tab","a",function(e){e.preventDefault(),e.stopPropagation();var s=t.$(this);i.element.children("li:not(.uk-tab-responsive)").eq(s.data("index")).trigger("click")}),this.on("show.uk.switcher change.uk.tab",function(t,e){i.responsivetab.caption.html(e.text())}),this.element.append(this.responsivetab),this.options.connect&&(this.switcher=t.switcher(this.element,{toggle:">li:not(.uk-tab-responsive)",connect:this.options.connect,active:this.options.active,animation:this.options.animation,duration:this.options.duration})),t.dropdown(this.responsivetab,{mode:"click"}),i.trigger("change.uk.tab",[this.element.find(this.options.target).not(".uk-tab-responsive").filter(".uk-active")]),this.check(),t.$win.on("resize orientationchange",t.Utils.debounce(function(){i.element.is(":visible")&&i.check()},100)),this.on("display.uk.check",function(){i.element.is(":visible")&&i.check()})},check:function(){var i=this.element.children("li:not(.uk-tab-responsive)").removeClass("uk-hidden");if(!i.length)return this.responsivetab.addClass("uk-hidden"),void 0;var e,s,n,a=i.eq(0).offset().top+Math.ceil(i.eq(0).height()/2),o=!1;if(this.responsivetab.lst.empty(),i.each(function(){t.$(this).offset().top>a&&(o=!0)}),o)for(var r=0;r<i.length;r++)e=t.$(i.eq(r)),s=e.find("a"),"none"==e.css("float")||e.attr("uk-dropdown")||(e.hasClass("uk-disabled")||(n=e[0].outerHTML.replace("<a ",'<a data-index="'+r+'" '),this.responsivetab.lst.append(n)),e.addClass("uk-hidden"));this.responsivetab[this.responsivetab.lst.children("li").length?"removeClass":"addClass"]("uk-hidden")}})}(UIkit); \ No newline at end of file diff --git a/media/uikit/js/core/toggle.js b/media/uikit/js/core/toggle.js new file mode 100644 index 00000000..29badf02 --- /dev/null +++ b/media/uikit/js/core/toggle.js @@ -0,0 +1,117 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(UI){ + + "use strict"; + + var toggles = []; + + UI.component('toggle', { + + defaults: { + target : false, + cls : 'uk-hidden', + animation : false, + duration : 200 + }, + + boot: function(){ + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-toggle]", context).each(function() { + var ele = UI.$(this); + + if (!ele.data("toggle")) { + var obj = UI.toggle(ele, UI.Utils.options(ele.attr("data-uk-toggle"))); + } + }); + + setTimeout(function(){ + + toggles.forEach(function(toggle){ + toggle.getToggles(); + }); + + }, 0); + }); + }, + + init: function() { + + var $this = this; + + this.aria = (this.options.cls.indexOf('uk-hidden') !== -1); + + this.getToggles(); + + this.on("click", function(e) { + if ($this.element.is('a[href="#"]')) e.preventDefault(); + $this.toggle(); + }); + + toggles.push(this); + }, + + toggle: function() { + + if(!this.totoggle.length) return; + + if (this.options.animation && UI.support.animation) { + + var $this = this, animations = this.options.animation.split(','); + + if (animations.length == 1) { + animations[1] = animations[0]; + } + + animations[0] = animations[0].trim(); + animations[1] = animations[1].trim(); + + this.totoggle.css('animation-duration', this.options.duration+'ms'); + + if (this.totoggle.hasClass(this.options.cls)) { + + this.totoggle.toggleClass(this.options.cls); + + this.totoggle.each(function(){ + UI.Utils.animate(this, animations[0]).then(function(){ + UI.$(this).css('animation-duration', ''); + UI.Utils.checkDisplay(this); + }); + }); + + } else { + + this.totoggle.each(function(){ + UI.Utils.animate(this, animations[1]+' uk-animation-reverse').then(function(){ + UI.$(this).toggleClass($this.options.cls).css('animation-duration', ''); + UI.Utils.checkDisplay(this); + }.bind(this)); + }); + } + + } else { + this.totoggle.toggleClass(this.options.cls); + UI.Utils.checkDisplay(this.totoggle); + } + + this.updateAria(); + + }, + + getToggles: function() { + this.totoggle = this.options.target ? UI.$(this.options.target):[]; + this.updateAria(); + }, + + updateAria: function() { + if (this.aria && this.totoggle.length) { + this.totoggle.each(function(){ + UI.$(this).attr('aria-hidden', UI.$(this).hasClass('uk-hidden')); + }); + } + } + }); + +})(UIkit); diff --git a/media/uikit/js/core/toggle.min.js b/media/uikit/js/core/toggle.min.js new file mode 100644 index 00000000..c2cf3325 --- /dev/null +++ b/media/uikit/js/core/toggle.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){"use strict";var i=[];t.component("toggle",{defaults:{target:!1,cls:"uk-hidden",animation:!1,duration:200},boot:function(){t.ready(function(s){t.$("[data-uk-toggle]",s).each(function(){var i=t.$(this);if(!i.data("toggle")){t.toggle(i,t.Utils.options(i.attr("data-uk-toggle")))}}),setTimeout(function(){i.forEach(function(t){t.getToggles()})},0)})},init:function(){var t=this;this.aria=-1!==this.options.cls.indexOf("uk-hidden"),this.getToggles(),this.on("click",function(i){t.element.is('a[href="#"]')&&i.preventDefault(),t.toggle()}),i.push(this)},toggle:function(){if(this.totoggle.length){if(this.options.animation&&t.support.animation){var i=this,s=this.options.animation.split(",");1==s.length&&(s[1]=s[0]),s[0]=s[0].trim(),s[1]=s[1].trim(),this.totoggle.css("animation-duration",this.options.duration+"ms"),this.totoggle.hasClass(this.options.cls)?(this.totoggle.toggleClass(this.options.cls),this.totoggle.each(function(){t.Utils.animate(this,s[0]).then(function(){t.$(this).css("animation-duration",""),t.Utils.checkDisplay(this)})})):this.totoggle.each(function(){t.Utils.animate(this,s[1]+" uk-animation-reverse").then(function(){t.$(this).toggleClass(i.options.cls).css("animation-duration",""),t.Utils.checkDisplay(this)}.bind(this))})}else this.totoggle.toggleClass(this.options.cls),t.Utils.checkDisplay(this.totoggle);this.updateAria()}},getToggles:function(){this.totoggle=this.options.target?t.$(this.options.target):[],this.updateAria()},updateAria:function(){this.aria&&this.totoggle.length&&this.totoggle.each(function(){t.$(this).attr("aria-hidden",t.$(this).hasClass("uk-hidden"))})}})}(UIkit); \ No newline at end of file diff --git a/media/uikit/js/core/touch.js b/media/uikit/js/core/touch.js new file mode 100644 index 00000000..9afbce16 --- /dev/null +++ b/media/uikit/js/core/touch.js @@ -0,0 +1,173 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +// Based on Zeptos touch.js +// https://raw.github.com/madrobby/zepto/master/src/touch.js +// Zepto.js may be freely distributed under the MIT license. + +;(function($){ + + if ($.fn.swipeLeft) { + return; + } + + + var touch = {}, touchTimeout, tapTimeout, swipeTimeout, longTapTimeout, longTapDelay = 750, gesture; + + function swipeDirection(x1, x2, y1, y2) { + return Math.abs(x1 - x2) >= Math.abs(y1 - y2) ? (x1 - x2 > 0 ? 'Left' : 'Right') : (y1 - y2 > 0 ? 'Up' : 'Down'); + } + + function longTap() { + longTapTimeout = null; + if (touch.last) { + touch.el.trigger('longTap'); + touch = {}; + } + } + + function cancelLongTap() { + if (longTapTimeout) clearTimeout(longTapTimeout); + longTapTimeout = null; + } + + function cancelAll() { + if (touchTimeout) clearTimeout(touchTimeout); + if (tapTimeout) clearTimeout(tapTimeout); + if (swipeTimeout) clearTimeout(swipeTimeout); + if (longTapTimeout) clearTimeout(longTapTimeout); + touchTimeout = tapTimeout = swipeTimeout = longTapTimeout = null; + touch = {}; + } + + function isPrimaryTouch(event){ + return event.pointerType == event.MSPOINTER_TYPE_TOUCH && event.isPrimary; + } + + $(function(){ + var now, delta, deltaX = 0, deltaY = 0, firstTouch; + + if ('MSGesture' in window) { + gesture = new MSGesture(); + gesture.target = document.body; + } + + $(document) + .on('MSGestureEnd gestureend', function(e){ + + var swipeDirectionFromVelocity = e.originalEvent.velocityX > 1 ? 'Right' : e.originalEvent.velocityX < -1 ? 'Left' : e.originalEvent.velocityY > 1 ? 'Down' : e.originalEvent.velocityY < -1 ? 'Up' : null; + + if (swipeDirectionFromVelocity) { + touch.el.trigger('swipe'); + touch.el.trigger('swipe'+ swipeDirectionFromVelocity); + } + }) + // MSPointerDown: for IE10 + // pointerdown: for IE11 + .on('touchstart MSPointerDown pointerdown', function(e){ + + if(e.type == 'MSPointerDown' && !isPrimaryTouch(e.originalEvent)) return; + + firstTouch = (e.type == 'MSPointerDown' || e.type == 'pointerdown') ? e : e.originalEvent.touches[0]; + + now = Date.now(); + delta = now - (touch.last || now); + touch.el = $('tagName' in firstTouch.target ? firstTouch.target : firstTouch.target.parentNode); + + if(touchTimeout) clearTimeout(touchTimeout); + + touch.x1 = firstTouch.pageX; + touch.y1 = firstTouch.pageY; + + if (delta > 0 && delta <= 250) touch.isDoubleTap = true; + + touch.last = now; + longTapTimeout = setTimeout(longTap, longTapDelay); + + // adds the current touch contact for IE gesture recognition + if (gesture && ( e.type == 'MSPointerDown' || e.type == 'pointerdown' || e.type == 'touchstart' ) ) { + gesture.addPointer(e.originalEvent.pointerId); + } + + }) + // MSPointerMove: for IE10 + // pointermove: for IE11 + .on('touchmove MSPointerMove pointermove', function(e){ + + if (e.type == 'MSPointerMove' && !isPrimaryTouch(e.originalEvent)) return; + + firstTouch = (e.type == 'MSPointerMove' || e.type == 'pointermove') ? e : e.originalEvent.touches[0]; + + cancelLongTap(); + touch.x2 = firstTouch.pageX; + touch.y2 = firstTouch.pageY; + + deltaX += Math.abs(touch.x1 - touch.x2); + deltaY += Math.abs(touch.y1 - touch.y2); + }) + // MSPointerUp: for IE10 + // pointerup: for IE11 + .on('touchend MSPointerUp pointerup', function(e){ + + if (e.type == 'MSPointerUp' && !isPrimaryTouch(e.originalEvent)) return; + + cancelLongTap(); + + // swipe + if ((touch.x2 && Math.abs(touch.x1 - touch.x2) > 30) || (touch.y2 && Math.abs(touch.y1 - touch.y2) > 30)){ + + swipeTimeout = setTimeout(function() { + touch.el.trigger('swipe'); + touch.el.trigger('swipe' + (swipeDirection(touch.x1, touch.x2, touch.y1, touch.y2))); + touch = {}; + }, 0); + + // normal tap + } else if ('last' in touch) { + + // don't fire tap when delta position changed by more than 30 pixels, + // for instance when moving to a point and back to origin + if (isNaN(deltaX) || (deltaX < 30 && deltaY < 30)) { + // delay by one tick so we can cancel the 'tap' event if 'scroll' fires + // ('tap' fires before 'scroll') + tapTimeout = setTimeout(function() { + + // trigger universal 'tap' with the option to cancelTouch() + // (cancelTouch cancels processing of single vs double taps for faster 'tap' response) + var event = $.Event('tap'); + event.cancelTouch = cancelAll; + touch.el.trigger(event); + + // trigger double tap immediately + if (touch.isDoubleTap) { + touch.el.trigger('doubleTap'); + touch = {}; + } + + // trigger single tap after 250ms of inactivity + else { + touchTimeout = setTimeout(function(){ + touchTimeout = null; + touch.el.trigger('singleTap'); + touch = {}; + }, 250); + } + }, 0); + } else { + touch = {}; + } + deltaX = deltaY = 0; + } + }) + // when the browser window loses focus, + // for example when a modal dialog is shown, + // cancel all ongoing events + .on('touchcancel MSPointerCancel', cancelAll); + + // scrolling the window indicates intention of the user + // to scroll, not tap or swipe, so cancel all ongoing events + $(window).on('scroll', cancelAll); + }); + + ['swipe', 'swipeLeft', 'swipeRight', 'swipeUp', 'swipeDown', 'doubleTap', 'tap', 'singleTap', 'longTap'].forEach(function(eventName){ + $.fn[eventName] = function(callback){ return $(this).on(eventName, callback); }; + }); +})(jQuery); diff --git a/media/uikit/js/core/touch.min.js b/media/uikit/js/core/touch.min.js new file mode 100644 index 00000000..a2ef7ded --- /dev/null +++ b/media/uikit/js/core/touch.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(e){function t(e,t,n,o){return Math.abs(e-t)>=Math.abs(n-o)?e-t>0?"Left":"Right":n-o>0?"Up":"Down"}function n(){p=null,g.last&&(g.el.trigger("longTap"),g={})}function o(){p&&clearTimeout(p),p=null}function i(){a&&clearTimeout(a),l&&clearTimeout(l),u&&clearTimeout(u),p&&clearTimeout(p),a=l=u=p=null,g={}}function r(e){return e.pointerType==e.MSPOINTER_TYPE_TOUCH&&e.isPrimary}if(!e.fn.swipeLeft){var a,l,u,p,c,g={},s=750;e(function(){var y,w,v,f=0,M=0;"MSGesture"in window&&(c=new MSGesture,c.target=document.body),e(document).on("MSGestureEnd gestureend",function(e){var t=e.originalEvent.velocityX>1?"Right":e.originalEvent.velocityX<-1?"Left":e.originalEvent.velocityY>1?"Down":e.originalEvent.velocityY<-1?"Up":null;t&&(g.el.trigger("swipe"),g.el.trigger("swipe"+t))}).on("touchstart MSPointerDown pointerdown",function(t){("MSPointerDown"!=t.type||r(t.originalEvent))&&(v="MSPointerDown"==t.type||"pointerdown"==t.type?t:t.originalEvent.touches[0],y=Date.now(),w=y-(g.last||y),g.el=e("tagName"in v.target?v.target:v.target.parentNode),a&&clearTimeout(a),g.x1=v.pageX,g.y1=v.pageY,w>0&&250>=w&&(g.isDoubleTap=!0),g.last=y,p=setTimeout(n,s),!c||"MSPointerDown"!=t.type&&"pointerdown"!=t.type&&"touchstart"!=t.type||c.addPointer(t.originalEvent.pointerId))}).on("touchmove MSPointerMove pointermove",function(e){("MSPointerMove"!=e.type||r(e.originalEvent))&&(v="MSPointerMove"==e.type||"pointermove"==e.type?e:e.originalEvent.touches[0],o(),g.x2=v.pageX,g.y2=v.pageY,f+=Math.abs(g.x1-g.x2),M+=Math.abs(g.y1-g.y2))}).on("touchend MSPointerUp pointerup",function(n){("MSPointerUp"!=n.type||r(n.originalEvent))&&(o(),g.x2&&Math.abs(g.x1-g.x2)>30||g.y2&&Math.abs(g.y1-g.y2)>30?u=setTimeout(function(){g.el.trigger("swipe"),g.el.trigger("swipe"+t(g.x1,g.x2,g.y1,g.y2)),g={}},0):"last"in g&&(isNaN(f)||30>f&&30>M?l=setTimeout(function(){var t=e.Event("tap");t.cancelTouch=i,g.el.trigger(t),g.isDoubleTap?(g.el.trigger("doubleTap"),g={}):a=setTimeout(function(){a=null,g.el.trigger("singleTap"),g={}},250)},0):g={},f=M=0))}).on("touchcancel MSPointerCancel",i),e(window).on("scroll",i)}),["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","singleTap","longTap"].forEach(function(t){e.fn[t]=function(n){return e(this).on(t,n)}})}}(jQuery); \ No newline at end of file diff --git a/media/uikit/js/core/utility.js b/media/uikit/js/core/utility.js new file mode 100644 index 00000000..0d423a64 --- /dev/null +++ b/media/uikit/js/core/utility.js @@ -0,0 +1,243 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(UI) { + + "use strict"; + + var stacks = []; + + UI.component('stackMargin', { + + defaults: { + 'cls': 'uk-margin-small-top' + }, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-margin]", context).each(function() { + + var ele = UI.$(this), obj; + + if (!ele.data("stackMargin")) { + obj = UI.stackMargin(ele, UI.Utils.options(ele.attr("data-uk-margin"))); + } + }); + }); + }, + + init: function() { + + var $this = this; + + this.columns = this.element.children(); + + if (!this.columns.length) return; + + UI.$win.on('resize orientationchange', (function() { + + var fn = function() { + $this.process(); + }; + + UI.$(function() { + fn(); + UI.$win.on("load", fn); + }); + + return UI.Utils.debounce(fn, 20); + })()); + + UI.$html.on("changed.uk.dom", function(e) { + $this.columns = $this.element.children(); + $this.process(); + }); + + this.on("display.uk.check", function(e) { + $this.columns = $this.element.children(); + if (this.element.is(":visible")) this.process(); + }.bind(this)); + + stacks.push(this); + }, + + process: function() { + + var $this = this; + + UI.Utils.stackMargin(this.columns, this.options); + + return this; + }, + + revert: function() { + this.columns.removeClass(this.options.cls); + return this; + } + }); + + + // responsive element e.g. iframes + + (function(){ + + var elements = [], check = function(ele) { + + if (!ele.is(':visible')) return; + + var width = ele.parent().width(), + iwidth = ele.data('width'), + ratio = (width / iwidth), + height = Math.floor(ratio * ele.data('height')); + + ele.css({'height': (width < iwidth) ? height : ele.data('height')}); + }; + + UI.component('responsiveElement', { + + defaults: {}, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$("iframe.uk-responsive-width, [data-uk-responsive]", context).each(function() { + + var ele = UI.$(this), obj; + + if (!ele.data("responsiveIframe")) { + obj = UI.responsiveElement(ele, {}); + } + }); + }); + }, + + init: function() { + + var ele = this.element; + + if (ele.attr('width') && ele.attr('height')) { + + ele.data({ + + 'width' : ele.attr('width'), + 'height': ele.attr('height') + + }).on('display.uk.check', function(){ + check(ele); + }); + + check(ele); + + elements.push(ele); + } + } + }); + + UI.$win.on('resize load', UI.Utils.debounce(function(){ + + elements.forEach(function(ele){ + check(ele); + }); + + }, 15)); + + })(); + + + + // helper + + UI.Utils.stackMargin = function(elements, options) { + + options = UI.$.extend({ + 'cls': 'uk-margin-small-top' + }, options); + + options.cls = options.cls; + + elements = UI.$(elements).removeClass(options.cls); + + var skip = false, + firstvisible = elements.filter(":visible:first"), + offset = firstvisible.length ? (firstvisible.position().top + firstvisible.outerHeight()) - 1 : false; // (-1): weird firefox bug when parent container is display:flex + + if (offset === false) return; + + elements.each(function() { + + var column = UI.$(this); + + if (column.is(":visible")) { + + if (skip) { + column.addClass(options.cls); + } else { + + if (column.position().top >= offset) { + skip = column.addClass(options.cls); + } + } + } + }); + }; + + UI.Utils.matchHeights = function(elements, options) { + + elements = UI.$(elements).css('min-height', ''); + options = UI.$.extend({ row : true }, options); + + var matchHeights = function(group){ + + if (group.length < 2) return; + + var max = 0; + + group.each(function() { + max = Math.max(max, UI.$(this).outerHeight()); + }).each(function() { + + var element = UI.$(this), + height = max - (element.css('box-sizing') == 'border-box' ? 0 : (element.outerHeight() - element.height())); + + element.css('min-height', height + 'px'); + }); + }; + + if (options.row) { + + elements.first().width(); // force redraw + + setTimeout(function(){ + + var lastoffset = false, group = []; + + elements.each(function() { + + var ele = UI.$(this), offset = ele.offset().top; + + if (offset != lastoffset && group.length) { + + matchHeights(UI.$(group)); + group = []; + offset = ele.offset().top; + } + + group.push(ele); + lastoffset = offset; + }); + + if (group.length) { + matchHeights(UI.$(group)); + } + + }, 0); + + } else { + matchHeights(elements); + } + }; + +})(UIkit); diff --git a/media/uikit/js/core/utility.min.js b/media/uikit/js/core/utility.min.js new file mode 100644 index 00000000..70897090 --- /dev/null +++ b/media/uikit/js/core/utility.min.js @@ -0,0 +1,2 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){"use strict";var i=[];t.component("stackMargin",{defaults:{cls:"uk-margin-small-top"},boot:function(){t.ready(function(i){t.$("[data-uk-margin]",i).each(function(){var i,n=t.$(this);n.data("stackMargin")||(i=t.stackMargin(n,t.Utils.options(n.attr("data-uk-margin"))))})})},init:function(){var n=this;this.columns=this.element.children(),this.columns.length&&(t.$win.on("resize orientationchange",function(){var i=function(){n.process()};return t.$(function(){i(),t.$win.on("load",i)}),t.Utils.debounce(i,20)}()),t.$html.on("changed.uk.dom",function(){n.columns=n.element.children(),n.process()}),this.on("display.uk.check",function(){n.columns=n.element.children(),this.element.is(":visible")&&this.process()}.bind(this)),i.push(this))},process:function(){return t.Utils.stackMargin(this.columns,this.options),this},revert:function(){return this.columns.removeClass(this.options.cls),this}}),function(){var i=[],n=function(t){if(t.is(":visible")){var i=t.parent().width(),n=t.data("width"),s=i/n,e=Math.floor(s*t.data("height"));t.css({height:n>i?e:t.data("height")})}};t.component("responsiveElement",{defaults:{},boot:function(){t.ready(function(i){t.$("iframe.uk-responsive-width, [data-uk-responsive]",i).each(function(){var i,n=t.$(this);n.data("responsiveIframe")||(i=t.responsiveElement(n,{}))})})},init:function(){var t=this.element;t.attr("width")&&t.attr("height")&&(t.data({width:t.attr("width"),height:t.attr("height")}).on("display.uk.check",function(){n(t)}),n(t),i.push(t))}}),t.$win.on("resize load",t.Utils.debounce(function(){i.forEach(function(t){n(t)})},15))}(),t.Utils.stackMargin=function(i,n){n=t.$.extend({cls:"uk-margin-small-top"},n),n.cls=n.cls,i=t.$(i).removeClass(n.cls);var s=!1,e=i.filter(":visible:first"),o=e.length?e.position().top+e.outerHeight()-1:!1;o!==!1&&i.each(function(){var i=t.$(this);i.is(":visible")&&(s?i.addClass(n.cls):i.position().top>=o&&(s=i.addClass(n.cls)))})},t.Utils.matchHeights=function(i,n){i=t.$(i).css("min-height",""),n=t.$.extend({row:!0},n);var s=function(i){if(!(i.length<2)){var n=0;i.each(function(){n=Math.max(n,t.$(this).outerHeight())}).each(function(){var i=t.$(this),s=n-("border-box"==i.css("box-sizing")?0:i.outerHeight()-i.height());i.css("min-height",s+"px")})}};n.row?(i.first().width(),setTimeout(function(){var n=!1,e=[];i.each(function(){var i=t.$(this),o=i.offset().top;o!=n&&e.length&&(s(t.$(e)),e=[],o=i.offset().top),e.push(i),n=o}),e.length&&s(t.$(e))},0)):s(i)}}(UIkit); \ No newline at end of file diff --git a/media/uikit/js/index.html b/media/uikit/js/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/media/uikit/js/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/media/uikit/js/uikit.js b/media/uikit/js/uikit.js new file mode 100644 index 00000000..bce6f80a --- /dev/null +++ b/media/uikit/js/uikit.js @@ -0,0 +1,3400 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +(function(core) { + + if (typeof define == "function" && define.amd) { // AMD + + define("uikit", function(){ + + var uikit = window.UIkit || core(window, window.jQuery, window.document); + + uikit.load = function(res, req, onload, config) { + + var resources = res.split(','), load = [], i, base = (config.config && config.config.uikit && config.config.uikit.base ? config.config.uikit.base : "").replace(/\/+$/g, ""); + + if (!base) { + throw new Error( "Please define base path to UIkit in the requirejs config." ); + } + + for (i = 0; i < resources.length; i += 1) { + var resource = resources[i].replace(/\./g, '/'); + load.push(base+'/components/'+resource); + } + + req(load, function() { + onload(uikit); + }); + }; + + return uikit; + }); + } + + if (!window.jQuery) { + throw new Error( "UIkit requires jQuery" ); + } + + if (window && window.jQuery) { + core(window, window.jQuery, window.document); + } + + +})(function(global, $, doc) { + + "use strict"; + + var UI = {}, _UI = global.UIkit ? Object.create(global.UIkit) : undefined; + + UI.version = '2.21.0'; + + UI.noConflict = function() { + // restore UIkit version + if (_UI) { + global.UIkit = _UI; + $.UIkit = _UI; + $.fn.uk = _UI.fn; + } + + return UI; + }; + + UI.prefix = function(str) { + return str; + }; + + // cache jQuery + UI.$ = $; + + UI.$doc = UI.$(document); + UI.$win = UI.$(window); + UI.$html = UI.$('html'); + + UI.support = {}; + UI.support.transition = (function() { + + var transitionEnd = (function() { + + var element = doc.body || doc.documentElement, + transEndEventNames = { + WebkitTransition : 'webkitTransitionEnd', + MozTransition : 'transitionend', + OTransition : 'oTransitionEnd otransitionend', + transition : 'transitionend' + }, name; + + for (name in transEndEventNames) { + if (element.style[name] !== undefined) return transEndEventNames[name]; + } + }()); + + return transitionEnd && { end: transitionEnd }; + })(); + + UI.support.animation = (function() { + + var animationEnd = (function() { + + var element = doc.body || doc.documentElement, + animEndEventNames = { + WebkitAnimation : 'webkitAnimationEnd', + MozAnimation : 'animationend', + OAnimation : 'oAnimationEnd oanimationend', + animation : 'animationend' + }, name; + + for (name in animEndEventNames) { + if (element.style[name] !== undefined) return animEndEventNames[name]; + } + }()); + + return animationEnd && { end: animationEnd }; + })(); + + // requestAnimationFrame polyfill + // https://gist.github.com/paulirish/1579671 + (function(){ + + var lastTime = 0; + + global.requestAnimationFrame = global.requestAnimationFrame || global.webkitRequestAnimationFrame || function(callback, element) { + var currTime = new Date().getTime(); + var timeToCall = Math.max(0, 16 - (currTime - lastTime)); + var id = global.setTimeout(function() { callback(currTime + timeToCall); }, timeToCall); + lastTime = currTime + timeToCall; + return id; + }; + + if (!global.cancelAnimationFrame) { + + global.cancelAnimationFrame = function(id) { + clearTimeout(id); + }; + } + + })(); + + UI.support.touch = ( + ('ontouchstart' in document) || + (global.DocumentTouch && document instanceof global.DocumentTouch) || + (global.navigator.msPointerEnabled && global.navigator.msMaxTouchPoints > 0) || //IE 10 + (global.navigator.pointerEnabled && global.navigator.maxTouchPoints > 0) || //IE >=11 + false + ); + + UI.support.mutationobserver = (global.MutationObserver || global.WebKitMutationObserver || null); + + UI.Utils = {}; + + UI.Utils.isFullscreen = function() { + return document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement || document.fullscreenElement || false; + }; + + UI.Utils.str2json = function(str, notevil) { + try { + if (notevil) { + return JSON.parse(str + // wrap keys without quote with valid double quote + .replace(/([\$\w]+)\s*:/g, function(_, $1){return '"'+$1+'":';}) + // replacing single quote wrapped ones to double quote + .replace(/'([^']+)'/g, function(_, $1){return '"'+$1+'"';}) + ); + } else { + return (new Function("", "var json = " + str + "; return JSON.parse(JSON.stringify(json));"))(); + } + } catch(e) { return false; } + }; + + UI.Utils.debounce = function(func, wait, immediate) { + var timeout; + return function() { + var context = this, args = arguments; + var later = function() { + timeout = null; + if (!immediate) func.apply(context, args); + }; + var callNow = immediate && !timeout; + clearTimeout(timeout); + timeout = setTimeout(later, wait); + if (callNow) func.apply(context, args); + }; + }; + + UI.Utils.removeCssRules = function(selectorRegEx) { + var idx, idxs, stylesheet, _i, _j, _k, _len, _len1, _len2, _ref; + + if(!selectorRegEx) return; + + setTimeout(function(){ + try { + _ref = document.styleSheets; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + stylesheet = _ref[_i]; + idxs = []; + stylesheet.cssRules = stylesheet.cssRules; + for (idx = _j = 0, _len1 = stylesheet.cssRules.length; _j < _len1; idx = ++_j) { + if (stylesheet.cssRules[idx].type === CSSRule.STYLE_RULE && selectorRegEx.test(stylesheet.cssRules[idx].selectorText)) { + idxs.unshift(idx); + } + } + for (_k = 0, _len2 = idxs.length; _k < _len2; _k++) { + stylesheet.deleteRule(idxs[_k]); + } + } + } catch (_error) {} + }, 0); + }; + + UI.Utils.isInView = function(element, options) { + + var $element = $(element); + + if (!$element.is(':visible')) { + return false; + } + + var window_left = UI.$win.scrollLeft(), window_top = UI.$win.scrollTop(), offset = $element.offset(), left = offset.left, top = offset.top; + + options = $.extend({topoffset:0, leftoffset:0}, options); + + if (top + $element.height() >= window_top && top - options.topoffset <= window_top + UI.$win.height() && + left + $element.width() >= window_left && left - options.leftoffset <= window_left + UI.$win.width()) { + return true; + } else { + return false; + } + }; + + UI.Utils.checkDisplay = function(context, initanimation) { + + var elements = UI.$('[data-uk-margin], [data-uk-grid-match], [data-uk-grid-margin], [data-uk-check-display]', context || document), animated; + + if (context && !elements.length) { + elements = $(context); + } + + elements.trigger('display.uk.check'); + + // fix firefox / IE animations + if (initanimation) { + + if (typeof(initanimation)!='string') { + initanimation = '[class*="uk-animation-"]'; + } + + elements.find(initanimation).each(function(){ + + var ele = UI.$(this), + cls = ele.attr('class'), + anim = cls.match(/uk\-animation\-(.+)/); + + ele.removeClass(anim[0]).width(); + + ele.addClass(anim[0]); + }); + } + + return elements; + }; + + UI.Utils.options = function(string) { + + if ($.isPlainObject(string)) return string; + + var start = (string ? string.indexOf("{") : -1), options = {}; + + if (start != -1) { + try { + options = UI.Utils.str2json(string.substr(start)); + } catch (e) {} + } + + return options; + }; + + UI.Utils.animate = function(element, cls) { + + var d = $.Deferred(); + + element = UI.$(element); + cls = cls; + + element.css('display', 'none').addClass(cls).one(UI.support.animation.end, function() { + element.removeClass(cls); + d.resolve(); + }).width(); + + element.css('display', ''); + + return d.promise(); + }; + + UI.Utils.uid = function(prefix) { + return (prefix || 'id') + (new Date().getTime())+"RAND"+(Math.ceil(Math.random() * 100000)); + }; + + UI.Utils.template = function(str, data) { + + var tokens = str.replace(/\n/g, '\\n').replace(/\{\{\{\s*(.+?)\s*\}\}\}/g, "{{!$1}}").split(/(\{\{\s*(.+?)\s*\}\})/g), + i=0, toc, cmd, prop, val, fn, output = [], openblocks = 0; + + while(i < tokens.length) { + + toc = tokens[i]; + + if(toc.match(/\{\{\s*(.+?)\s*\}\}/)) { + i = i + 1; + toc = tokens[i]; + cmd = toc[0]; + prop = toc.substring(toc.match(/^(\^|\#|\!|\~|\:)/) ? 1:0); + + switch(cmd) { + case '~': + output.push("for(var $i=0;$i<"+prop+".length;$i++) { var $item = "+prop+"[$i];"); + openblocks++; + break; + case ':': + output.push("for(var $key in "+prop+") { var $val = "+prop+"[$key];"); + openblocks++; + break; + case '#': + output.push("if("+prop+") {"); + openblocks++; + break; + case '^': + output.push("if(!"+prop+") {"); + openblocks++; + break; + case '/': + output.push("}"); + openblocks--; + break; + case '!': + output.push("__ret.push("+prop+");"); + break; + default: + output.push("__ret.push(escape("+prop+"));"); + break; + } + } else { + output.push("__ret.push('"+toc.replace(/\'/g, "\\'")+"');"); + } + i = i + 1; + } + + fn = new Function('$data', [ + 'var __ret = [];', + 'try {', + 'with($data){', (!openblocks ? output.join('') : '__ret = ["Not all blocks are closed correctly."]'), '};', + '}catch(e){__ret = [e.message];}', + 'return __ret.join("").replace(/\\n\\n/g, "\\n");', + "function escape(html) { return String(html).replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');}" + ].join("\n")); + + return data ? fn(data) : fn; + }; + + UI.Utils.events = {}; + UI.Utils.events.click = UI.support.touch ? 'tap' : 'click'; + + global.UIkit = UI; + + // deprecated + + UI.fn = function(command, options) { + + var args = arguments, cmd = command.match(/^([a-z\-]+)(?:\.([a-z]+))?/i), component = cmd[1], method = cmd[2]; + + if (!UI[component]) { + $.error("UIkit component [" + component + "] does not exist."); + return this; + } + + return this.each(function() { + var $this = $(this), data = $this.data(component); + if (!data) $this.data(component, (data = UI[component](this, method ? undefined : options))); + if (method) data[method].apply(data, Array.prototype.slice.call(args, 1)); + }); + }; + + $.UIkit = UI; + $.fn.uk = UI.fn; + + UI.langdirection = UI.$html.attr("dir") == "rtl" ? "right" : "left"; + + UI.components = {}; + + UI.component = function(name, def) { + + var fn = function(element, options) { + + var $this = this; + + this.UIkit = UI; + this.element = element ? UI.$(element) : null; + this.options = $.extend(true, {}, this.defaults, options); + this.plugins = {}; + + if (this.element) { + this.element.data(name, this); + } + + this.init(); + + (this.options.plugins.length ? this.options.plugins : Object.keys(fn.plugins)).forEach(function(plugin) { + + if (fn.plugins[plugin].init) { + fn.plugins[plugin].init($this); + $this.plugins[plugin] = true; + } + + }); + + this.trigger('init.uk.component', [name, this]); + + return this; + }; + + fn.plugins = {}; + + $.extend(true, fn.prototype, { + + defaults : {plugins: []}, + + boot: function(){}, + init: function(){}, + + on: function(a1,a2,a3){ + return UI.$(this.element || this).on(a1,a2,a3); + }, + + one: function(a1,a2,a3){ + return UI.$(this.element || this).one(a1,a2,a3); + }, + + off: function(evt){ + return UI.$(this.element || this).off(evt); + }, + + trigger: function(evt, params) { + return UI.$(this.element || this).trigger(evt, params); + }, + + find: function(selector) { + return UI.$(this.element ? this.element: []).find(selector); + }, + + proxy: function(obj, methods) { + + var $this = this; + + methods.split(' ').forEach(function(method) { + if (!$this[method]) $this[method] = function() { return obj[method].apply(obj, arguments); }; + }); + }, + + mixin: function(obj, methods) { + + var $this = this; + + methods.split(' ').forEach(function(method) { + if (!$this[method]) $this[method] = obj[method].bind($this); + }); + }, + + option: function() { + + if (arguments.length == 1) { + return this.options[arguments[0]] || undefined; + } else if (arguments.length == 2) { + this.options[arguments[0]] = arguments[1]; + } + } + + }, def); + + this.components[name] = fn; + + this[name] = function() { + + var element, options; + + if (arguments.length) { + + switch(arguments.length) { + case 1: + + if (typeof arguments[0] === "string" || arguments[0].nodeType || arguments[0] instanceof jQuery) { + element = $(arguments[0]); + } else { + options = arguments[0]; + } + + break; + case 2: + + element = $(arguments[0]); + options = arguments[1]; + break; + } + } + + if (element && element.data(name)) { + return element.data(name); + } + + return (new UI.components[name](element, options)); + }; + + if (UI.domready) { + UI.component.boot(name); + } + + return fn; + }; + + UI.plugin = function(component, name, def) { + this.components[component].plugins[name] = def; + }; + + UI.component.boot = function(name) { + + if (UI.components[name].prototype && UI.components[name].prototype.boot && !UI.components[name].booted) { + UI.components[name].prototype.boot.apply(UI, []); + UI.components[name].booted = true; + } + }; + + UI.component.bootComponents = function() { + + for (var component in UI.components) { + UI.component.boot(component); + } + }; + + + // DOM mutation save ready helper function + + UI.domObservers = []; + UI.domready = false; + + UI.ready = function(fn) { + + UI.domObservers.push(fn); + + if (UI.domready) { + fn(document); + } + }; + + UI.on = function(a1,a2,a3){ + + if (a1 && a1.indexOf('ready.uk.dom') > -1 && UI.domready) { + a2.apply(UI.$doc); + } + + return UI.$doc.on(a1,a2,a3); + }; + + UI.one = function(a1,a2,a3){ + + if (a1 && a1.indexOf('ready.uk.dom') > -1 && UI.domready) { + a2.apply(UI.$doc); + return UI.$doc; + } + + return UI.$doc.one(a1,a2,a3); + }; + + UI.trigger = function(evt, params) { + return UI.$doc.trigger(evt, params); + }; + + UI.domObserve = function(selector, fn) { + + if(!UI.support.mutationobserver) return; + + fn = fn || function() {}; + + UI.$(selector).each(function() { + + var element = this, + $element = UI.$(element); + + if ($element.data('observer')) { + return; + } + + try { + + var observer = new UI.support.mutationobserver(UI.Utils.debounce(function(mutations) { + fn.apply(element, []); + $element.trigger('changed.uk.dom'); + }, 50)); + + // pass in the target node, as well as the observer options + observer.observe(element, { childList: true, subtree: true }); + + $element.data('observer', observer); + + } catch(e) {} + }); + }; + + UI.init = function(root) { + + root = root || document; + + UI.domObservers.forEach(function(fn){ + fn(root); + }); + }; + + UI.on('domready.uk.dom', function(){ + + UI.init(); + + if (UI.domready) UI.Utils.checkDisplay(); + }); + + $(function(){ + + UI.$body = UI.$('body'); + + UI.ready(function(context){ + UI.domObserve('[data-uk-observe]'); + }); + + UI.on('changed.uk.dom', function(e) { + UI.init(e.target); + UI.Utils.checkDisplay(e.target); + }); + + UI.trigger('beforeready.uk.dom'); + + UI.component.bootComponents(); + + // custom scroll observer + setInterval((function(){ + + var memory = {x: window.pageXOffset, y:window.pageYOffset}, dir; + + var fn = function(){ + + if (memory.x != window.pageXOffset || memory.y != window.pageYOffset) { + + dir = {x: 0 , y: 0}; + + if (window.pageXOffset != memory.x) dir.x = window.pageXOffset > memory.x ? 1:-1; + if (window.pageYOffset != memory.y) dir.y = window.pageYOffset > memory.y ? 1:-1; + + memory = { + "dir": dir, "x": window.pageXOffset, "y": window.pageYOffset + }; + + UI.$doc.trigger('scrolling.uk.document', [memory]); + } + }; + + if (UI.support.touch) { + UI.$html.on('touchmove touchend MSPointerMove MSPointerUp pointermove pointerup', fn); + } + + if (memory.x || memory.y) fn(); + + return fn; + + })(), 15); + + // run component init functions on dom + UI.trigger('domready.uk.dom'); + + if (UI.support.touch) { + + // remove css hover rules for touch devices + // UI.Utils.removeCssRules(/\.uk-(?!navbar).*:hover/); + + // viewport unit fix for uk-height-viewport - should be fixed in iOS 8 + if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g)) { + + UI.$win.on('load orientationchange resize', UI.Utils.debounce((function(){ + + var fn = function() { + $('.uk-height-viewport').css('height', window.innerHeight); + return fn; + }; + + return fn(); + + })(), 100)); + } + } + + UI.trigger('afterready.uk.dom'); + + // mark that domready is left behind + UI.domready = true; + }); + + // add touch identifier class + UI.$html.addClass(UI.support.touch ? "uk-touch" : "uk-notouch"); + + // add uk-hover class on tap to support overlays on touch devices + if (UI.support.touch) { + + var hoverset = false, exclude, hovercls = 'uk-hover', selector = '.uk-overlay, .uk-overlay-hover, .uk-overlay-toggle, .uk-animation-hover, .uk-has-hover'; + + UI.$html.on('touchstart MSPointerDown pointerdown', selector, function() { + + if (hoverset) $('.'+hovercls).removeClass(hovercls); + + hoverset = $(this).addClass(hovercls); + + }).on('touchend MSPointerUp pointerup', function(e) { + + exclude = $(e.target).parents(selector); + + if (hoverset) { + hoverset.not(exclude).removeClass(hovercls); + } + }); + } + + return UI; +}); + +// Based on Zeptos touch.js +// https://raw.github.com/madrobby/zepto/master/src/touch.js +// Zepto.js may be freely distributed under the MIT license. + +;(function($){ + + if ($.fn.swipeLeft) { + return; + } + + + var touch = {}, touchTimeout, tapTimeout, swipeTimeout, longTapTimeout, longTapDelay = 750, gesture; + + function swipeDirection(x1, x2, y1, y2) { + return Math.abs(x1 - x2) >= Math.abs(y1 - y2) ? (x1 - x2 > 0 ? 'Left' : 'Right') : (y1 - y2 > 0 ? 'Up' : 'Down'); + } + + function longTap() { + longTapTimeout = null; + if (touch.last) { + touch.el.trigger('longTap'); + touch = {}; + } + } + + function cancelLongTap() { + if (longTapTimeout) clearTimeout(longTapTimeout); + longTapTimeout = null; + } + + function cancelAll() { + if (touchTimeout) clearTimeout(touchTimeout); + if (tapTimeout) clearTimeout(tapTimeout); + if (swipeTimeout) clearTimeout(swipeTimeout); + if (longTapTimeout) clearTimeout(longTapTimeout); + touchTimeout = tapTimeout = swipeTimeout = longTapTimeout = null; + touch = {}; + } + + function isPrimaryTouch(event){ + return event.pointerType == event.MSPOINTER_TYPE_TOUCH && event.isPrimary; + } + + $(function(){ + var now, delta, deltaX = 0, deltaY = 0, firstTouch; + + if ('MSGesture' in window) { + gesture = new MSGesture(); + gesture.target = document.body; + } + + $(document) + .on('MSGestureEnd gestureend', function(e){ + + var swipeDirectionFromVelocity = e.originalEvent.velocityX > 1 ? 'Right' : e.originalEvent.velocityX < -1 ? 'Left' : e.originalEvent.velocityY > 1 ? 'Down' : e.originalEvent.velocityY < -1 ? 'Up' : null; + + if (swipeDirectionFromVelocity) { + touch.el.trigger('swipe'); + touch.el.trigger('swipe'+ swipeDirectionFromVelocity); + } + }) + // MSPointerDown: for IE10 + // pointerdown: for IE11 + .on('touchstart MSPointerDown pointerdown', function(e){ + + if(e.type == 'MSPointerDown' && !isPrimaryTouch(e.originalEvent)) return; + + firstTouch = (e.type == 'MSPointerDown' || e.type == 'pointerdown') ? e : e.originalEvent.touches[0]; + + now = Date.now(); + delta = now - (touch.last || now); + touch.el = $('tagName' in firstTouch.target ? firstTouch.target : firstTouch.target.parentNode); + + if(touchTimeout) clearTimeout(touchTimeout); + + touch.x1 = firstTouch.pageX; + touch.y1 = firstTouch.pageY; + + if (delta > 0 && delta <= 250) touch.isDoubleTap = true; + + touch.last = now; + longTapTimeout = setTimeout(longTap, longTapDelay); + + // adds the current touch contact for IE gesture recognition + if (gesture && ( e.type == 'MSPointerDown' || e.type == 'pointerdown' || e.type == 'touchstart' ) ) { + gesture.addPointer(e.originalEvent.pointerId); + } + + }) + // MSPointerMove: for IE10 + // pointermove: for IE11 + .on('touchmove MSPointerMove pointermove', function(e){ + + if (e.type == 'MSPointerMove' && !isPrimaryTouch(e.originalEvent)) return; + + firstTouch = (e.type == 'MSPointerMove' || e.type == 'pointermove') ? e : e.originalEvent.touches[0]; + + cancelLongTap(); + touch.x2 = firstTouch.pageX; + touch.y2 = firstTouch.pageY; + + deltaX += Math.abs(touch.x1 - touch.x2); + deltaY += Math.abs(touch.y1 - touch.y2); + }) + // MSPointerUp: for IE10 + // pointerup: for IE11 + .on('touchend MSPointerUp pointerup', function(e){ + + if (e.type == 'MSPointerUp' && !isPrimaryTouch(e.originalEvent)) return; + + cancelLongTap(); + + // swipe + if ((touch.x2 && Math.abs(touch.x1 - touch.x2) > 30) || (touch.y2 && Math.abs(touch.y1 - touch.y2) > 30)){ + + swipeTimeout = setTimeout(function() { + touch.el.trigger('swipe'); + touch.el.trigger('swipe' + (swipeDirection(touch.x1, touch.x2, touch.y1, touch.y2))); + touch = {}; + }, 0); + + // normal tap + } else if ('last' in touch) { + + // don't fire tap when delta position changed by more than 30 pixels, + // for instance when moving to a point and back to origin + if (isNaN(deltaX) || (deltaX < 30 && deltaY < 30)) { + // delay by one tick so we can cancel the 'tap' event if 'scroll' fires + // ('tap' fires before 'scroll') + tapTimeout = setTimeout(function() { + + // trigger universal 'tap' with the option to cancelTouch() + // (cancelTouch cancels processing of single vs double taps for faster 'tap' response) + var event = $.Event('tap'); + event.cancelTouch = cancelAll; + touch.el.trigger(event); + + // trigger double tap immediately + if (touch.isDoubleTap) { + touch.el.trigger('doubleTap'); + touch = {}; + } + + // trigger single tap after 250ms of inactivity + else { + touchTimeout = setTimeout(function(){ + touchTimeout = null; + touch.el.trigger('singleTap'); + touch = {}; + }, 250); + } + }, 0); + } else { + touch = {}; + } + deltaX = deltaY = 0; + } + }) + // when the browser window loses focus, + // for example when a modal dialog is shown, + // cancel all ongoing events + .on('touchcancel MSPointerCancel', cancelAll); + + // scrolling the window indicates intention of the user + // to scroll, not tap or swipe, so cancel all ongoing events + $(window).on('scroll', cancelAll); + }); + + ['swipe', 'swipeLeft', 'swipeRight', 'swipeUp', 'swipeDown', 'doubleTap', 'tap', 'singleTap', 'longTap'].forEach(function(eventName){ + $.fn[eventName] = function(callback){ return $(this).on(eventName, callback); }; + }); +})(jQuery); + +(function(UI) { + + "use strict"; + + var stacks = []; + + UI.component('stackMargin', { + + defaults: { + 'cls': 'uk-margin-small-top' + }, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-margin]", context).each(function() { + + var ele = UI.$(this), obj; + + if (!ele.data("stackMargin")) { + obj = UI.stackMargin(ele, UI.Utils.options(ele.attr("data-uk-margin"))); + } + }); + }); + }, + + init: function() { + + var $this = this; + + this.columns = this.element.children(); + + if (!this.columns.length) return; + + UI.$win.on('resize orientationchange', (function() { + + var fn = function() { + $this.process(); + }; + + UI.$(function() { + fn(); + UI.$win.on("load", fn); + }); + + return UI.Utils.debounce(fn, 20); + })()); + + UI.$html.on("changed.uk.dom", function(e) { + $this.columns = $this.element.children(); + $this.process(); + }); + + this.on("display.uk.check", function(e) { + $this.columns = $this.element.children(); + if (this.element.is(":visible")) this.process(); + }.bind(this)); + + stacks.push(this); + }, + + process: function() { + + var $this = this; + + UI.Utils.stackMargin(this.columns, this.options); + + return this; + }, + + revert: function() { + this.columns.removeClass(this.options.cls); + return this; + } + }); + + + // responsive element e.g. iframes + + (function(){ + + var elements = [], check = function(ele) { + + if (!ele.is(':visible')) return; + + var width = ele.parent().width(), + iwidth = ele.data('width'), + ratio = (width / iwidth), + height = Math.floor(ratio * ele.data('height')); + + ele.css({'height': (width < iwidth) ? height : ele.data('height')}); + }; + + UI.component('responsiveElement', { + + defaults: {}, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$("iframe.uk-responsive-width, [data-uk-responsive]", context).each(function() { + + var ele = UI.$(this), obj; + + if (!ele.data("responsiveIframe")) { + obj = UI.responsiveElement(ele, {}); + } + }); + }); + }, + + init: function() { + + var ele = this.element; + + if (ele.attr('width') && ele.attr('height')) { + + ele.data({ + + 'width' : ele.attr('width'), + 'height': ele.attr('height') + + }).on('display.uk.check', function(){ + check(ele); + }); + + check(ele); + + elements.push(ele); + } + } + }); + + UI.$win.on('resize load', UI.Utils.debounce(function(){ + + elements.forEach(function(ele){ + check(ele); + }); + + }, 15)); + + })(); + + + + // helper + + UI.Utils.stackMargin = function(elements, options) { + + options = UI.$.extend({ + 'cls': 'uk-margin-small-top' + }, options); + + options.cls = options.cls; + + elements = UI.$(elements).removeClass(options.cls); + + var skip = false, + firstvisible = elements.filter(":visible:first"), + offset = firstvisible.length ? (firstvisible.position().top + firstvisible.outerHeight()) - 1 : false; // (-1): weird firefox bug when parent container is display:flex + + if (offset === false) return; + + elements.each(function() { + + var column = UI.$(this); + + if (column.is(":visible")) { + + if (skip) { + column.addClass(options.cls); + } else { + + if (column.position().top >= offset) { + skip = column.addClass(options.cls); + } + } + } + }); + }; + + UI.Utils.matchHeights = function(elements, options) { + + elements = UI.$(elements).css('min-height', ''); + options = UI.$.extend({ row : true }, options); + + var matchHeights = function(group){ + + if (group.length < 2) return; + + var max = 0; + + group.each(function() { + max = Math.max(max, UI.$(this).outerHeight()); + }).each(function() { + + var element = UI.$(this), + height = max - (element.css('box-sizing') == 'border-box' ? 0 : (element.outerHeight() - element.height())); + + element.css('min-height', height + 'px'); + }); + }; + + if (options.row) { + + elements.first().width(); // force redraw + + setTimeout(function(){ + + var lastoffset = false, group = []; + + elements.each(function() { + + var ele = UI.$(this), offset = ele.offset().top; + + if (offset != lastoffset && group.length) { + + matchHeights(UI.$(group)); + group = []; + offset = ele.offset().top; + } + + group.push(ele); + lastoffset = offset; + }); + + if (group.length) { + matchHeights(UI.$(group)); + } + + }, 0); + + } else { + matchHeights(elements); + } + }; + +})(UIkit); + +(function(UI) { + + "use strict"; + + UI.component('smoothScroll', { + + boot: function() { + + // init code + UI.$html.on("click.smooth-scroll.uikit", "[data-uk-smooth-scroll]", function(e) { + var ele = UI.$(this); + + if (!ele.data("smoothScroll")) { + var obj = UI.smoothScroll(ele, UI.Utils.options(ele.attr("data-uk-smooth-scroll"))); + ele.trigger("click"); + } + + return false; + }); + }, + + init: function() { + + var $this = this; + + this.on("click", function(e) { + e.preventDefault(); + scrollToElement(UI.$(this.hash).length ? UI.$(this.hash) : UI.$("body"), $this.options); + }); + } + }); + + function scrollToElement(ele, options) { + + options = UI.$.extend({ + duration: 1000, + transition: 'easeOutExpo', + offset: 0, + complete: function(){} + }, options); + + // get / set parameters + var target = ele.offset().top - options.offset, + docheight = UI.$doc.height(), + winheight = window.innerHeight; + + if ((target + winheight) > docheight) { + target = docheight - winheight; + } + + // animate to target, fire callback when done + UI.$("html,body").stop().animate({scrollTop: target}, options.duration, options.transition).promise().done(options.complete); + } + + UI.Utils.scrollToElement = scrollToElement; + + if (!UI.$.easing.easeOutExpo) { + UI.$.easing.easeOutExpo = function(x, t, b, c, d) { return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b; }; + } + +})(UIkit); + +(function(UI) { + + "use strict"; + + var $win = UI.$win, + $doc = UI.$doc, + scrollspies = [], + checkScrollSpy = function() { + for(var i=0; i < scrollspies.length; i++) { + window.requestAnimationFrame.apply(window, [scrollspies[i].check]); + } + }; + + UI.component('scrollspy', { + + defaults: { + "target" : false, + "cls" : "uk-scrollspy-inview", + "initcls" : "uk-scrollspy-init-inview", + "topoffset" : 0, + "leftoffset" : 0, + "repeat" : false, + "delay" : 0 + }, + + boot: function() { + + // listen to scroll and resize + $doc.on("scrolling.uk.document", checkScrollSpy); + $win.on("load resize orientationchange", UI.Utils.debounce(checkScrollSpy, 50)); + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-scrollspy]", context).each(function() { + + var element = UI.$(this); + + if (!element.data("scrollspy")) { + var obj = UI.scrollspy(element, UI.Utils.options(element.attr("data-uk-scrollspy"))); + } + }); + }); + }, + + init: function() { + + var $this = this, inviewstate, initinview, togglecls = this.options.cls.split(/,/), fn = function(){ + + var elements = $this.options.target ? $this.element.find($this.options.target) : $this.element, + delayIdx = elements.length === 1 ? 1 : 0, + toggleclsIdx = 0; + + elements.each(function(idx){ + + var element = UI.$(this), + inviewstate = element.data('inviewstate'), + inview = UI.Utils.isInView(element, $this.options), + toggle = element.data('ukScrollspyCls') || togglecls[toggleclsIdx].trim(); + + if (inview && !inviewstate && !element.data('scrollspy-idle')) { + + if (!initinview) { + element.addClass($this.options.initcls); + $this.offset = element.offset(); + initinview = true; + + element.trigger("init.uk.scrollspy"); + } + + element.data('scrollspy-idle', setTimeout(function(){ + + element.addClass("uk-scrollspy-inview").toggleClass(toggle).width(); + element.trigger("inview.uk.scrollspy"); + + element.data('scrollspy-idle', false); + element.data('inviewstate', true); + + }, $this.options.delay * delayIdx)); + + delayIdx++; + } + + if (!inview && inviewstate && $this.options.repeat) { + + if (element.data('scrollspy-idle')) { + clearTimeout(element.data('scrollspy-idle')); + } + + element.removeClass("uk-scrollspy-inview").toggleClass(toggle); + element.data('inviewstate', false); + + element.trigger("outview.uk.scrollspy"); + } + + toggleclsIdx = togglecls[toggleclsIdx + 1] ? (toggleclsIdx + 1) : 0; + + }); + }; + + fn(); + + this.check = fn; + + scrollspies.push(this); + } + }); + + + var scrollspynavs = [], + checkScrollSpyNavs = function() { + for(var i=0; i < scrollspynavs.length; i++) { + window.requestAnimationFrame.apply(window, [scrollspynavs[i].check]); + } + }; + + UI.component('scrollspynav', { + + defaults: { + "cls" : 'uk-active', + "closest" : false, + "topoffset" : 0, + "leftoffset" : 0, + "smoothscroll" : false + }, + + boot: function() { + + // listen to scroll and resize + $doc.on("scrolling.uk.document", checkScrollSpyNavs); + $win.on("resize orientationchange", UI.Utils.debounce(checkScrollSpyNavs, 50)); + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-scrollspy-nav]", context).each(function() { + + var element = UI.$(this); + + if (!element.data("scrollspynav")) { + var obj = UI.scrollspynav(element, UI.Utils.options(element.attr("data-uk-scrollspy-nav"))); + } + }); + }); + }, + + init: function() { + + var ids = [], + links = this.find("a[href^='#']").each(function(){ ids.push(UI.$(this).attr("href")); }), + targets = UI.$(ids.join(",")), + + clsActive = this.options.cls, + clsClosest = this.options.closest || this.options.closest; + + var $this = this, inviews, fn = function(){ + + inviews = []; + + for (var i=0 ; i < targets.length ; i++) { + if (UI.Utils.isInView(targets.eq(i), $this.options)) { + inviews.push(targets.eq(i)); + } + } + + if (inviews.length) { + + var navitems, + scrollTop = $win.scrollTop(), + target = (function(){ + for(var i=0; i< inviews.length;i++){ + if(inviews[i].offset().top >= scrollTop){ + return inviews[i]; + } + } + })(); + + if (!target) return; + + if ($this.options.closest) { + links.closest(clsClosest).removeClass(clsActive); + navitems = links.filter("a[href='#"+target.attr("id")+"']").closest(clsClosest).addClass(clsActive); + } else { + navitems = links.removeClass(clsActive).filter("a[href='#"+target.attr("id")+"']").addClass(clsActive); + } + + $this.element.trigger("inview.uk.scrollspynav", [target, navitems]); + } + }; + + if (this.options.smoothscroll && UI.smoothScroll) { + links.each(function(){ + UI.smoothScroll(this, $this.options.smoothscroll); + }); + } + + fn(); + + this.element.data("scrollspynav", this); + + this.check = fn; + scrollspynavs.push(this); + + } + }); + +})(UIkit); + +(function(UI){ + + "use strict"; + + var toggles = []; + + UI.component('toggle', { + + defaults: { + target : false, + cls : 'uk-hidden', + animation : false, + duration : 200 + }, + + boot: function(){ + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-toggle]", context).each(function() { + var ele = UI.$(this); + + if (!ele.data("toggle")) { + var obj = UI.toggle(ele, UI.Utils.options(ele.attr("data-uk-toggle"))); + } + }); + + setTimeout(function(){ + + toggles.forEach(function(toggle){ + toggle.getToggles(); + }); + + }, 0); + }); + }, + + init: function() { + + var $this = this; + + this.aria = (this.options.cls.indexOf('uk-hidden') !== -1); + + this.getToggles(); + + this.on("click", function(e) { + if ($this.element.is('a[href="#"]')) e.preventDefault(); + $this.toggle(); + }); + + toggles.push(this); + }, + + toggle: function() { + + if(!this.totoggle.length) return; + + if (this.options.animation && UI.support.animation) { + + var $this = this, animations = this.options.animation.split(','); + + if (animations.length == 1) { + animations[1] = animations[0]; + } + + animations[0] = animations[0].trim(); + animations[1] = animations[1].trim(); + + this.totoggle.css('animation-duration', this.options.duration+'ms'); + + if (this.totoggle.hasClass(this.options.cls)) { + + this.totoggle.toggleClass(this.options.cls); + + this.totoggle.each(function(){ + UI.Utils.animate(this, animations[0]).then(function(){ + UI.$(this).css('animation-duration', ''); + UI.Utils.checkDisplay(this); + }); + }); + + } else { + + this.totoggle.each(function(){ + UI.Utils.animate(this, animations[1]+' uk-animation-reverse').then(function(){ + UI.$(this).toggleClass($this.options.cls).css('animation-duration', ''); + UI.Utils.checkDisplay(this); + }.bind(this)); + }); + } + + } else { + this.totoggle.toggleClass(this.options.cls); + UI.Utils.checkDisplay(this.totoggle); + } + + this.updateAria(); + + }, + + getToggles: function() { + this.totoggle = this.options.target ? UI.$(this.options.target):[]; + this.updateAria(); + }, + + updateAria: function() { + if (this.aria && this.totoggle.length) { + this.totoggle.each(function(){ + UI.$(this).attr('aria-hidden', UI.$(this).hasClass('uk-hidden')); + }); + } + } + }); + +})(UIkit); + +(function(UI) { + + "use strict"; + + UI.component('alert', { + + defaults: { + "fade": true, + "duration": 200, + "trigger": ".uk-alert-close" + }, + + boot: function() { + + // init code + UI.$html.on("click.alert.uikit", "[data-uk-alert]", function(e) { + + var ele = UI.$(this); + + if (!ele.data("alert")) { + + var alert = UI.alert(ele, UI.Utils.options(ele.attr("data-uk-alert"))); + + if (UI.$(e.target).is(alert.options.trigger)) { + e.preventDefault(); + alert.close(); + } + } + }); + }, + + init: function() { + + var $this = this; + + this.on("click", this.options.trigger, function(e) { + e.preventDefault(); + $this.close(); + }); + }, + + close: function() { + + var element = this.trigger("close.uk.alert"), + removeElement = function () { + this.trigger("closed.uk.alert").remove(); + }.bind(this); + + if (this.options.fade) { + element.css("overflow", "hidden").css("max-height", element.height()).animate({ + "height" : 0, + "opacity" : 0, + "padding-top" : 0, + "padding-bottom" : 0, + "margin-top" : 0, + "margin-bottom" : 0 + }, this.options.duration, removeElement); + } else { + removeElement(); + } + } + + }); + +})(UIkit); + +(function(UI) { + + "use strict"; + + UI.component('buttonRadio', { + + defaults: { + "target": ".uk-button" + }, + + boot: function() { + + // init code + UI.$html.on("click.buttonradio.uikit", "[data-uk-button-radio]", function(e) { + + var ele = UI.$(this); + + if (!ele.data("buttonRadio")) { + + var obj = UI.buttonRadio(ele, UI.Utils.options(ele.attr("data-uk-button-radio"))), + target = UI.$(e.target); + + if (target.is(obj.options.target)) { + target.trigger("click"); + } + } + }); + }, + + init: function() { + + var $this = this; + + // Init ARIA + this.find($this.options.target).attr('aria-checked', 'false').filter(".uk-active").attr('aria-checked', 'true'); + + this.on("click", this.options.target, function(e) { + + var ele = UI.$(this); + + if (ele.is('a[href="#"]')) e.preventDefault(); + + $this.find($this.options.target).not(ele).removeClass("uk-active").blur(); + ele.addClass("uk-active"); + + // Update ARIA + $this.find($this.options.target).not(ele).attr('aria-checked', 'false'); + ele.attr('aria-checked', 'true'); + + $this.trigger("change.uk.button", [ele]); + }); + + }, + + getSelected: function() { + return this.find(".uk-active"); + } + }); + + UI.component('buttonCheckbox', { + + defaults: { + "target": ".uk-button" + }, + + boot: function() { + + UI.$html.on("click.buttoncheckbox.uikit", "[data-uk-button-checkbox]", function(e) { + var ele = UI.$(this); + + if (!ele.data("buttonCheckbox")) { + + var obj = UI.buttonCheckbox(ele, UI.Utils.options(ele.attr("data-uk-button-checkbox"))), + target = UI.$(e.target); + + if (target.is(obj.options.target)) { + target.trigger("click"); + } + } + }); + }, + + init: function() { + + var $this = this; + + // Init ARIA + this.find($this.options.target).attr('aria-checked', 'false').filter(".uk-active").attr('aria-checked', 'true'); + + this.on("click", this.options.target, function(e) { + var ele = UI.$(this); + + if (ele.is('a[href="#"]')) e.preventDefault(); + + ele.toggleClass("uk-active").blur(); + + // Update ARIA + ele.attr('aria-checked', ele.hasClass("uk-active")); + + $this.trigger("change.uk.button", [ele]); + }); + + }, + + getSelected: function() { + return this.find(".uk-active"); + } + }); + + + UI.component('button', { + + defaults: {}, + + boot: function() { + + UI.$html.on("click.button.uikit", "[data-uk-button]", function(e) { + var ele = UI.$(this); + + if (!ele.data("button")) { + + var obj = UI.button(ele, UI.Utils.options(ele.attr("data-uk-button"))); + ele.trigger("click"); + } + }); + }, + + init: function() { + + var $this = this; + + // Init ARIA + this.element.attr('aria-pressed', this.element.hasClass("uk-active")); + + this.on("click", function(e) { + + if ($this.element.is('a[href="#"]')) e.preventDefault(); + + $this.toggle(); + $this.trigger("change.uk.button", [$this.element.blur().hasClass("uk-active")]); + }); + + }, + + toggle: function() { + this.element.toggleClass("uk-active"); + + // Update ARIA + this.element.attr('aria-pressed', this.element.hasClass("uk-active")); + } + }); + +})(UIkit); + +(function(UI) { + + "use strict"; + + var active = false, hoverIdle; + + UI.component('dropdown', { + + defaults: { + 'mode' : 'hover', + 'remaintime' : 800, + 'justify' : false, + 'boundary' : UI.$win, + 'delay' : 0, + 'hoverDelayIdle' : 250 + }, + + remainIdle: false, + + boot: function() { + + var triggerevent = UI.support.touch ? "click" : "mouseenter"; + + // init code + UI.$html.on(triggerevent+".dropdown.uikit", "[data-uk-dropdown]", function(e) { + + var ele = UI.$(this); + + if (!ele.data("dropdown")) { + + var dropdown = UI.dropdown(ele, UI.Utils.options(ele.attr("data-uk-dropdown"))); + + if (triggerevent=="click" || (triggerevent=="mouseenter" && dropdown.options.mode=="hover")) { + dropdown.element.trigger(triggerevent); + } + + if (dropdown.element.find('.uk-dropdown').length) { + e.preventDefault(); + } + } + }); + }, + + init: function() { + + var $this = this; + + this.dropdown = this.find('.uk-dropdown'); + + this.centered = this.dropdown.hasClass('uk-dropdown-center'); + this.justified = this.options.justify ? UI.$(this.options.justify) : false; + + this.boundary = UI.$(this.options.boundary); + this.flipped = this.dropdown.hasClass('uk-dropdown-flip'); + + if (!this.boundary.length) { + this.boundary = UI.$win; + } + + // Init ARIA + this.element.attr('aria-haspopup', 'true'); + this.element.attr('aria-expanded', this.element.hasClass("uk-open")); + + if (this.options.mode == "click" || UI.support.touch) { + + this.on("click.uikit.dropdown", function(e) { + + var $target = UI.$(e.target); + + if (!$target.parents(".uk-dropdown").length) { + + if ($target.is("a[href='#']") || $target.parent().is("a[href='#']") || ($this.dropdown.length && !$this.dropdown.is(":visible")) ){ + e.preventDefault(); + } + + $target.blur(); + } + + if (!$this.element.hasClass('uk-open')) { + + $this.show(); + + } else { + + if ($target.is("a:not(.js-uk-prevent)") || $target.is(".uk-dropdown-close") || !$this.dropdown.find(e.target).length) { + $this.hide(); + } + } + }); + + } else { + + this.on("mouseenter", function(e) { + + if ($this.remainIdle) { + clearTimeout($this.remainIdle); + } + + if (hoverIdle) { + clearTimeout(hoverIdle); + } + + if (active && active == $this) { + return; + } + + // pseudo manuAim + if (active && active != $this) { + + hoverIdle = setTimeout(function() { + hoverIdle = setTimeout($this.show.bind($this), $this.options.delay); + }, $this.options.hoverDelayIdle); + + } else { + + hoverIdle = setTimeout($this.show.bind($this), $this.options.delay); + } + + }).on("mouseleave", function() { + + if (hoverIdle) { + clearTimeout(hoverIdle); + } + + $this.remainIdle = setTimeout(function() { + if (active && active == $this) $this.hide(); + }, $this.options.remaintime); + + }).on("click", function(e){ + + var $target = UI.$(e.target); + + if ($this.remainIdle) { + clearTimeout($this.remainIdle); + } + + if ($target.is("a[href='#']") || $target.parent().is("a[href='#']")){ + e.preventDefault(); + } + + $this.show(); + }); + } + }, + + show: function(){ + + UI.$html.off("click.outer.dropdown"); + + if (active && active != this) { + active.hide(); + } + + if (hoverIdle) { + clearTimeout(hoverIdle); + } + + this.checkDimensions(); + this.element.addClass('uk-open'); + + // Update ARIA + this.element.attr('aria-expanded', 'true'); + + this.trigger('show.uk.dropdown', [this]); + + UI.Utils.checkDisplay(this.dropdown, true); + active = this; + + this.registerOuterClick(); + }, + + hide: function() { + this.element.removeClass('uk-open'); + + if (this.remainIdle) { + clearTimeout(this.remainIdle); + } + + this.remainIdle = false; + + // Update ARIA + this.element.attr('aria-expanded', 'false'); + + this.trigger('hide.uk.dropdown', [this]); + + if (active == this) active = false; + }, + + registerOuterClick: function(){ + + var $this = this; + + UI.$html.off("click.outer.dropdown"); + + setTimeout(function() { + + UI.$html.on("click.outer.dropdown", function(e) { + + if (hoverIdle) { + clearTimeout(hoverIdle); + } + + var $target = UI.$(e.target); + + if (active == $this && ($target.is("a:not(.js-uk-prevent)") || $target.is(".uk-dropdown-close") || !$this.dropdown.find(e.target).length)) { + $this.hide(); + UI.$html.off("click.outer.dropdown"); + } + }); + }, 10); + }, + + checkDimensions: function() { + + if (!this.dropdown.length) return; + + if (this.justified && this.justified.length) { + this.dropdown.css("min-width", ""); + } + + var $this = this, + dropdown = this.dropdown.css("margin-" + UI.langdirection, ""), + offset = dropdown.show().offset(), + width = dropdown.outerWidth(), + boundarywidth = this.boundary.width(), + boundaryoffset = this.boundary.offset() ? this.boundary.offset().left:0; + + // centered dropdown + if (this.centered) { + dropdown.css("margin-" + UI.langdirection, (parseFloat(width) / 2 - dropdown.parent().width() / 2) * -1); + offset = dropdown.offset(); + + // reset dropdown + if ((width + offset.left) > boundarywidth || offset.left < 0) { + dropdown.css("margin-" + UI.langdirection, ""); + offset = dropdown.offset(); + } + } + + // justify dropdown + if (this.justified && this.justified.length) { + + var jwidth = this.justified.outerWidth(); + + dropdown.css("min-width", jwidth); + + if (UI.langdirection == 'right') { + + var right1 = boundarywidth - (this.justified.offset().left + jwidth), + right2 = boundarywidth - (dropdown.offset().left + dropdown.outerWidth()); + + dropdown.css("margin-right", right1 - right2); + + } else { + dropdown.css("margin-left", this.justified.offset().left - offset.left); + } + + offset = dropdown.offset(); + + } + + if ((width + (offset.left-boundaryoffset)) > boundarywidth) { + dropdown.addClass('uk-dropdown-flip'); + offset = dropdown.offset(); + } + + if ((offset.left-boundaryoffset) < 0) { + + dropdown.addClass("uk-dropdown-stack"); + + if (dropdown.hasClass('uk-dropdown-flip')) { + + if (!this.flipped) { + dropdown.removeClass('uk-dropdown-flip'); + offset = dropdown.offset(); + dropdown.addClass('uk-dropdown-flip'); + } + + setTimeout(function(){ + + if ((dropdown.offset().left-boundaryoffset) < 0 || !$this.flipped && (dropdown.outerWidth() + (offset.left-boundaryoffset)) < boundarywidth) { + dropdown.removeClass('uk-dropdown-flip'); + } + }, 0); + } + + this.trigger('stack.uk.dropdown', [this]); + } + + dropdown.css("display", ""); + } + + }); + +})(UIkit); + +(function(UI) { + + "use strict"; + + var grids = []; + + UI.component('gridMatchHeight', { + + defaults: { + "target" : false, + "row" : true, + "ignorestacked" : false + }, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-grid-match]", context).each(function() { + var grid = UI.$(this), obj; + + if (!grid.data("gridMatchHeight")) { + obj = UI.gridMatchHeight(grid, UI.Utils.options(grid.attr("data-uk-grid-match"))); + } + }); + }); + }, + + init: function() { + + var $this = this; + + this.columns = this.element.children(); + this.elements = this.options.target ? this.find(this.options.target) : this.columns; + + if (!this.columns.length) return; + + UI.$win.on('load resize orientationchange', (function() { + + var fn = function() { + $this.match(); + }; + + UI.$(function() { fn(); }); + + return UI.Utils.debounce(fn, 50); + })()); + + UI.$html.on("changed.uk.dom", function(e) { + $this.columns = $this.element.children(); + $this.elements = $this.options.target ? $this.find($this.options.target) : $this.columns; + $this.match(); + }); + + this.on("display.uk.check", function(e) { + if(this.element.is(":visible")) this.match(); + }.bind(this)); + + grids.push(this); + }, + + match: function() { + + var firstvisible = this.columns.filter(":visible:first"); + + if (!firstvisible.length) return; + + var stacked = Math.ceil(100 * parseFloat(firstvisible.css('width')) / parseFloat(firstvisible.parent().css('width'))) >= 100; + + if (stacked && !this.options.ignorestacked) { + this.revert(); + } else { + UI.Utils.matchHeights(this.elements, this.options); + } + + return this; + }, + + revert: function() { + this.elements.css('min-height', ''); + return this; + } + }); + + UI.component('gridMargin', { + + defaults: { + "cls": "uk-grid-margin" + }, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-grid-margin]", context).each(function() { + var grid = UI.$(this), obj; + + if (!grid.data("gridMargin")) { + obj = UI.gridMargin(grid, UI.Utils.options(grid.attr("data-uk-grid-margin"))); + } + }); + }); + }, + + init: function() { + + var stackMargin = UI.stackMargin(this.element, this.options); + } + }); + +})(UIkit); + +(function(UI) { + + "use strict"; + + var active = false, activeCount = 0, $html = UI.$html, body; + + UI.component('modal', { + + defaults: { + keyboard: true, + bgclose: true, + minScrollHeight: 150, + center: false, + modal: true + }, + + scrollable: false, + transition: false, + + init: function() { + + if (!body) body = UI.$('body'); + + if (!this.element.length) return; + + var $this = this; + + this.paddingdir = "padding-" + (UI.langdirection == 'left' ? "right":"left"); + this.dialog = this.find(".uk-modal-dialog"); + + this.active = false; + + // Update ARIA + this.element.attr('aria-hidden', this.element.hasClass("uk-open")); + + this.on("click", ".uk-modal-close", function(e) { + e.preventDefault(); + $this.hide(); + }).on("click", function(e) { + + var target = UI.$(e.target); + + if (target[0] == $this.element[0] && $this.options.bgclose) { + $this.hide(); + } + }); + }, + + toggle: function() { + return this[this.isActive() ? "hide" : "show"](); + }, + + show: function() { + + if (!this.element.length) return; + + var $this = this; + + if (this.isActive()) return; + + if (this.options.modal && active) { + active.hide(true); + } + + this.element.removeClass("uk-open").show(); + this.resize(); + + if (this.options.modal) { + active = this; + } + + this.active = true; + + activeCount++; + + this.element.addClass("uk-open"); + + $html.addClass("uk-modal-page").height(); // force browser engine redraw + + // Update ARIA + this.element.attr('aria-hidden', 'false'); + + this.element.trigger("show.uk.modal"); + + UI.Utils.checkDisplay(this.dialog, true); + + return this; + }, + + hide: function(force) { + + if (!force && UI.support.transition) { + + var $this = this; + + this.one(UI.support.transition.end, function() { + $this._hide(); + }).removeClass("uk-open"); + + } else { + + this._hide(); + } + + return this; + }, + + resize: function() { + + var bodywidth = body.width(); + + this.scrollbarwidth = window.innerWidth - bodywidth; + + body.css(this.paddingdir, this.scrollbarwidth); + + this.element.css('overflow-y', this.scrollbarwidth ? 'scroll' : 'auto'); + + if (!this.updateScrollable() && this.options.center) { + + var dh = this.dialog.outerHeight(), + pad = parseInt(this.dialog.css('margin-top'), 10) + parseInt(this.dialog.css('margin-bottom'), 10); + + if ((dh + pad) < window.innerHeight) { + this.dialog.css({'top': (window.innerHeight/2 - dh/2) - pad }); + } else { + this.dialog.css({'top': ''}); + } + } + }, + + updateScrollable: function() { + + // has scrollable? + var scrollable = this.dialog.find('.uk-overflow-container:visible:first'); + + if (scrollable.length) { + + scrollable.css("height", 0); + + var offset = Math.abs(parseInt(this.dialog.css("margin-top"), 10)), + dh = this.dialog.outerHeight(), + wh = window.innerHeight, + h = wh - 2*(offset < 20 ? 20:offset) - dh; + + scrollable.css("height", h < this.options.minScrollHeight ? "":h); + + return true; + } + + return false; + }, + + _hide: function() { + + this.active = false; + activeCount--; + + this.element.hide().removeClass("uk-open"); + + // Update ARIA + this.element.attr('aria-hidden', 'true'); + + if (!activeCount) { + $html.removeClass("uk-modal-page"); + body.css(this.paddingdir, ""); + } + + if(active===this) active = false; + + this.trigger("hide.uk.modal"); + }, + + isActive: function() { + return this.active; + } + + }); + + UI.component('modalTrigger', { + + boot: function() { + + // init code + UI.$html.on("click.modal.uikit", "[data-uk-modal]", function(e) { + + var ele = UI.$(this); + + if (ele.is("a")) { + e.preventDefault(); + } + + if (!ele.data("modalTrigger")) { + var modal = UI.modalTrigger(ele, UI.Utils.options(ele.attr("data-uk-modal"))); + modal.show(); + } + + }); + + // close modal on esc button + UI.$html.on('keydown.modal.uikit', function (e) { + + if (active && e.keyCode === 27 && active.options.keyboard) { // ESC + e.preventDefault(); + active.hide(); + } + }); + + UI.$win.on("resize orientationchange", UI.Utils.debounce(function(){ + if (active) active.resize(); + }, 150)); + }, + + init: function() { + + var $this = this; + + this.options = UI.$.extend({ + "target": $this.element.is("a") ? $this.element.attr("href") : false + }, this.options); + + this.modal = UI.modal(this.options.target, this.options); + + this.on("click", function(e) { + e.preventDefault(); + $this.show(); + }); + + //methods + this.proxy(this.modal, "show hide isActive"); + } + }); + + UI.modal.dialog = function(content, options) { + + var modal = UI.modal(UI.$(UI.modal.dialog.template).appendTo("body"), options); + + modal.on("hide.uk.modal", function(){ + if (modal.persist) { + modal.persist.appendTo(modal.persist.data("modalPersistParent")); + modal.persist = false; + } + modal.element.remove(); + }); + + setContent(content, modal); + + return modal; + }; + + UI.modal.dialog.template = '<div class="uk-modal"><div class="uk-modal-dialog" style="min-height:0;"></div></div>'; + + UI.modal.alert = function(content, options) { + + options = UI.$.extend(true, {bgclose:false, keyboard:false, modal:false, labels:UI.modal.labels}, options); + + var modal = UI.modal.dialog(([ + '<div class="uk-margin uk-modal-content">'+String(content)+'</div>', + '<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-button-primary uk-modal-close">'+options.labels.Ok+'</button></div>' + ]).join(""), options); + + modal.on('show.uk.modal', function(){ + setTimeout(function(){ + modal.element.find('button:first').focus(); + }, 50); + }); + + modal.show(); + }; + + UI.modal.confirm = function(content, onconfirm, options) { + + onconfirm = UI.$.isFunction(onconfirm) ? onconfirm : function(){}; + options = UI.$.extend(true, {bgclose:false, keyboard:false, modal:false, labels:UI.modal.labels}, options); + + var modal = UI.modal.dialog(([ + '<div class="uk-margin uk-modal-content">'+String(content)+'</div>', + '<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-button-primary js-modal-confirm">'+options.labels.Ok+'</button> <button class="uk-button uk-modal-close">'+options.labels.Cancel+'</button></div>' + ]).join(""), options); + + modal.element.find(".js-modal-confirm").on("click", function(){ + onconfirm(); + modal.hide(); + }); + + modal.on('show.uk.modal', function(){ + setTimeout(function(){ + modal.element.find('button:first').focus(); + }, 50); + }); + + modal.show(); + }; + + UI.modal.prompt = function(text, value, onsubmit, options) { + + onsubmit = UI.$.isFunction(onsubmit) ? onsubmit : function(value){}; + options = UI.$.extend(true, {bgclose:false, keyboard:false, modal:false, labels:UI.modal.labels}, options); + + var modal = UI.modal.dialog(([ + text ? '<div class="uk-modal-content uk-form">'+String(text)+'</div>':'', + '<div class="uk-margin-small-top uk-modal-content uk-form"><p><input type="text" class="uk-width-1-1"></p></div>', + '<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-button-primary js-modal-ok">'+options.labels.Ok+'</button> <button class="uk-button uk-modal-close">'+options.labels.Cancel+'</button></div>' + ]).join(""), options), + + input = modal.element.find("input[type='text']").val(value || '').on('keyup', function(e){ + if (e.keyCode == 13) { + modal.element.find(".js-modal-ok").trigger('click'); + } + }); + + modal.element.find(".js-modal-ok").on("click", function(){ + if (onsubmit(input.val())!==false){ + modal.hide(); + } + }); + + modal.on('show.uk.modal', function(){ + setTimeout(function(){ + input.focus(); + }, 50); + }); + + modal.show(); + }; + + UI.modal.blockUI = function(content, options) { + + var modal = UI.modal.dialog(([ + '<div class="uk-margin uk-modal-content">'+String(content || '<div class="uk-text-center">...</div>')+'</div>' + ]).join(""), UI.$.extend({bgclose:false, keyboard:false, modal:false}, options)); + + modal.content = modal.element.find('.uk-modal-content:first'); + modal.show(); + + return modal; + }; + + + UI.modal.labels = { + 'Ok': 'Ok', + 'Cancel': 'Cancel' + }; + + + // helper functions + function setContent(content, modal){ + + if(!modal) return; + + if (typeof content === 'object') { + + // convert DOM object to a jQuery object + content = content instanceof jQuery ? content : UI.$(content); + + if(content.parent().length) { + modal.persist = content; + modal.persist.data("modalPersistParent", content.parent()); + } + }else if (typeof content === 'string' || typeof content === 'number') { + // just insert the data as innerHTML + content = UI.$('<div></div>').html(content); + }else { + // unsupported data type! + content = UI.$('<div></div>').html('UIkit.modal Error: Unsupported data type: ' + typeof content); + } + + content.appendTo(modal.element.find('.uk-modal-dialog')); + + return modal; + } + +})(UIkit); + +(function(UI) { + + "use strict"; + + UI.component('nav', { + + defaults: { + "toggle": ">li.uk-parent > a[href='#']", + "lists": ">li.uk-parent > ul", + "multiple": false + }, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-nav]", context).each(function() { + var nav = UI.$(this); + + if (!nav.data("nav")) { + var obj = UI.nav(nav, UI.Utils.options(nav.attr("data-uk-nav"))); + } + }); + }); + }, + + init: function() { + + var $this = this; + + this.on("click.uikit.nav", this.options.toggle, function(e) { + e.preventDefault(); + var ele = UI.$(this); + $this.open(ele.parent()[0] == $this.element[0] ? ele : ele.parent("li")); + }); + + this.find(this.options.lists).each(function() { + var $ele = UI.$(this), + parent = $ele.parent(), + active = parent.hasClass("uk-active"); + + $ele.wrap('<div style="overflow:hidden;height:0;position:relative;"></div>'); + parent.data("list-container", $ele.parent()[active ? 'removeClass':'addClass']('uk-hidden')); + + // Init ARIA + parent.attr('aria-expanded', parent.hasClass("uk-open")); + + if (active) $this.open(parent, true); + }); + + }, + + open: function(li, noanimation) { + + var $this = this, element = this.element, $li = UI.$(li), $container = $li.data('list-container'); + + if (!this.options.multiple) { + + element.children('.uk-open').not(li).each(function() { + + var ele = UI.$(this); + + if (ele.data('list-container')) { + ele.data('list-container').stop().animate({height: 0}, function() { + UI.$(this).parent().removeClass('uk-open').end().addClass('uk-hidden'); + }); + } + }); + } + + $li.toggleClass('uk-open'); + + // Update ARIA + $li.attr('aria-expanded', $li.hasClass('uk-open')); + + if ($container) { + + if ($li.hasClass('uk-open')) { + $container.removeClass('uk-hidden'); + } + + if (noanimation) { + + $container.stop().height($li.hasClass('uk-open') ? 'auto' : 0); + + if (!$li.hasClass('uk-open')) { + $container.addClass('uk-hidden'); + } + + this.trigger('display.uk.check'); + + } else { + + $container.stop().animate({ + height: ($li.hasClass('uk-open') ? getHeight($container.find('ul:first')) : 0) + }, function() { + + if (!$li.hasClass('uk-open')) { + $container.addClass('uk-hidden'); + } else { + $container.css('height', ''); + } + + $this.trigger('display.uk.check'); + }); + } + } + } + }); + + + // helper + + function getHeight(ele) { + var $ele = UI.$(ele), height = "auto"; + + if ($ele.is(":visible")) { + height = $ele.outerHeight(); + } else { + var tmp = { + position: $ele.css("position"), + visibility: $ele.css("visibility"), + display: $ele.css("display") + }; + + height = $ele.css({position: 'absolute', visibility: 'hidden', display: 'block'}).outerHeight(); + + $ele.css(tmp); // reset element + } + + return height; + } + +})(UIkit); + +(function(UI) { + + "use strict"; + + var scrollpos = {x: window.scrollX, y: window.scrollY}, + $win = UI.$win, + $doc = UI.$doc, + $html = UI.$html, + Offcanvas = { + + show: function(element) { + + element = UI.$(element); + + if (!element.length) return; + + var $body = UI.$('body'), + bar = element.find(".uk-offcanvas-bar:first"), + rtl = (UI.langdirection == "right"), + flip = bar.hasClass("uk-offcanvas-bar-flip") ? -1:1, + dir = flip * (rtl ? -1 : 1); + + scrollpos = {x: window.pageXOffset, y: window.pageYOffset}; + + element.addClass("uk-active"); + + $body.css({"width": window.innerWidth, "height": window.innerHeight}).addClass("uk-offcanvas-page"); + $body.css((rtl ? "margin-right" : "margin-left"), (rtl ? -1 : 1) * (bar.outerWidth() * dir)).width(); // .width() - force redraw + + $html.css('margin-top', scrollpos.y * -1); + + bar.addClass("uk-offcanvas-bar-show"); + + this._initElement(element); + + bar.trigger('show.uk.offcanvas', [element, bar]); + + // Update ARIA + element.attr('aria-hidden', 'false'); + }, + + hide: function(force) { + + var $body = UI.$('body'), + panel = UI.$(".uk-offcanvas.uk-active"), + rtl = (UI.langdirection == "right"), + bar = panel.find(".uk-offcanvas-bar:first"), + finalize = function() { + $body.removeClass("uk-offcanvas-page").css({"width": "", "height": "", "margin-left": "", "margin-right": ""}); + panel.removeClass("uk-active"); + + bar.removeClass("uk-offcanvas-bar-show"); + $html.css('margin-top', ''); + window.scrollTo(scrollpos.x, scrollpos.y); + bar.trigger('hide.uk.offcanvas', [panel, bar]); + + // Update ARIA + panel.attr('aria-hidden', 'true'); + }; + + if (!panel.length) return; + + if (UI.support.transition && !force) { + + $body.one(UI.support.transition.end, function() { + finalize(); + }).css((rtl ? "margin-right" : "margin-left"), ""); + + setTimeout(function(){ + bar.removeClass("uk-offcanvas-bar-show"); + }, 0); + + } else { + finalize(); + } + }, + + _initElement: function(element) { + + if (element.data("OffcanvasInit")) return; + + element.on("click.uk.offcanvas swipeRight.uk.offcanvas swipeLeft.uk.offcanvas", function(e) { + + var target = UI.$(e.target); + + if (!e.type.match(/swipe/)) { + + if (!target.hasClass("uk-offcanvas-close")) { + if (target.hasClass("uk-offcanvas-bar")) return; + if (target.parents(".uk-offcanvas-bar:first").length) return; + } + } + + e.stopImmediatePropagation(); + Offcanvas.hide(); + }); + + element.on("click", "a[href^='#']", function(e){ + + var link = UI.$(this), + href = link.attr("href"); + + if (href == "#") { + return; + } + + UI.$doc.one('hide.uk.offcanvas', function() { + + var target; + + try { + target = UI.$(href); + } catch (e){ + target = "" + } + + if (!target.length) { + target = UI.$('[name="'+href.replace('#','')+'"]'); + } + + if (target.length && link.attr('data-uk-smooth-scroll') && UI.Utils.scrollToElement) { + UI.Utils.scrollToElement(target, UI.Utils.options(link.attr('data-uk-smooth-scroll') || '{}')); + } else { + window.location.href = href; + } + }); + + Offcanvas.hide(); + }); + + element.data("OffcanvasInit", true); + } + }; + + UI.component('offcanvasTrigger', { + + boot: function() { + + // init code + $html.on("click.offcanvas.uikit", "[data-uk-offcanvas]", function(e) { + + e.preventDefault(); + + var ele = UI.$(this); + + if (!ele.data("offcanvasTrigger")) { + var obj = UI.offcanvasTrigger(ele, UI.Utils.options(ele.attr("data-uk-offcanvas"))); + ele.trigger("click"); + } + }); + + $html.on('keydown.uk.offcanvas', function(e) { + + if (e.keyCode === 27) { // ESC + Offcanvas.hide(); + } + }); + }, + + init: function() { + + var $this = this; + + this.options = UI.$.extend({ + "target": $this.element.is("a") ? $this.element.attr("href") : false + }, this.options); + + this.on("click", function(e) { + e.preventDefault(); + Offcanvas.show($this.options.target); + }); + } + }); + + UI.offcanvas = Offcanvas; + +})(UIkit); + +(function(UI) { + + "use strict"; + + var Animations; + + UI.component('switcher', { + + defaults: { + connect : false, + toggle : ">*", + active : 0, + animation : false, + duration : 200 + }, + + animating: false, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-switcher]", context).each(function() { + var switcher = UI.$(this); + + if (!switcher.data("switcher")) { + var obj = UI.switcher(switcher, UI.Utils.options(switcher.attr("data-uk-switcher"))); + } + }); + }); + }, + + init: function() { + + var $this = this; + + this.on("click.uikit.switcher", this.options.toggle, function(e) { + e.preventDefault(); + $this.show(this); + }); + + if (this.options.connect) { + + this.connect = UI.$(this.options.connect); + + this.connect.find(".uk-active").removeClass(".uk-active"); + + // delegate switch commands within container content + if (this.connect.length) { + + // Init ARIA for connect + this.connect.children().attr('aria-hidden', 'true'); + + this.connect.on("click", '[data-uk-switcher-item]', function(e) { + + e.preventDefault(); + + var item = UI.$(this).attr('data-uk-switcher-item'); + + if ($this.index == item) return; + + switch(item) { + case 'next': + case 'previous': + $this.show($this.index + (item=='next' ? 1:-1)); + break; + default: + $this.show(parseInt(item, 10)); + } + }).on('swipeRight swipeLeft', function(e) { + e.preventDefault(); + if(!window.getSelection().toString()) { + $this.show($this.index + (e.type == 'swipeLeft' ? 1 : -1)); + } + }); + } + + var toggles = this.find(this.options.toggle), + active = toggles.filter(".uk-active"); + + if (active.length) { + this.show(active, false); + } else { + + if (this.options.active===false) return; + + active = toggles.eq(this.options.active); + this.show(active.length ? active : toggles.eq(0), false); + } + + // Init ARIA for toggles + toggles.not(active).attr('aria-expanded', 'false'); + active.attr('aria-expanded', 'true'); + + this.on('changed.uk.dom', function() { + $this.connect = UI.$($this.options.connect); + }); + } + + }, + + show: function(tab, animate) { + + if (this.animating) { + return; + } + + if (isNaN(tab)) { + tab = UI.$(tab); + } else { + + var toggles = this.find(this.options.toggle); + + tab = tab < 0 ? toggles.length-1 : tab; + tab = toggles.eq(toggles[tab] ? tab : 0); + } + + var $this = this, + toggles = this.find(this.options.toggle), + active = UI.$(tab), + animation = Animations[this.options.animation] || function(current, next) { + + if (!$this.options.animation) { + return Animations.none.apply($this); + } + + var anim = $this.options.animation.split(','); + + if (anim.length == 1) { + anim[1] = anim[0]; + } + + anim[0] = anim[0].trim(); + anim[1] = anim[1].trim(); + + return coreAnimation.apply($this, [anim, current, next]); + }; + + if (animate===false || !UI.support.animation) { + animation = Animations.none; + } + + if (active.hasClass("uk-disabled")) return; + + // Update ARIA for Toggles + toggles.attr('aria-expanded', 'false'); + active.attr('aria-expanded', 'true'); + + toggles.filter(".uk-active").removeClass("uk-active"); + active.addClass("uk-active"); + + if (this.options.connect && this.connect.length) { + + this.index = this.find(this.options.toggle).index(active); + + if (this.index == -1 ) { + this.index = 0; + } + + this.connect.each(function() { + + var container = UI.$(this), + children = UI.$(container.children()), + current = UI.$(children.filter('.uk-active')), + next = UI.$(children.eq($this.index)); + + $this.animating = true; + + animation.apply($this, [current, next]).then(function(){ + + current.removeClass("uk-active"); + next.addClass("uk-active"); + + // Update ARIA for connect + current.attr('aria-hidden', 'true'); + next.attr('aria-hidden', 'false'); + + UI.Utils.checkDisplay(next, true); + + $this.animating = false; + }); + }); + } + + this.trigger("show.uk.switcher", [active]); + } + }); + + Animations = { + + 'none': function() { + var d = UI.$.Deferred(); + d.resolve(); + return d.promise(); + }, + + 'fade': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-fade', current, next]); + }, + + 'slide-bottom': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-slide-bottom', current, next]); + }, + + 'slide-top': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-slide-top', current, next]); + }, + + 'slide-vertical': function(current, next, dir) { + + var anim = ['uk-animation-slide-top', 'uk-animation-slide-bottom']; + + if (current && current.index() > next.index()) { + anim.reverse(); + } + + return coreAnimation.apply(this, [anim, current, next]); + }, + + 'slide-left': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-slide-left', current, next]); + }, + + 'slide-right': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-slide-right', current, next]); + }, + + 'slide-horizontal': function(current, next, dir) { + + var anim = ['uk-animation-slide-right', 'uk-animation-slide-left']; + + if (current && current.index() > next.index()) { + anim.reverse(); + } + + return coreAnimation.apply(this, [anim, current, next]); + }, + + 'scale': function(current, next) { + return coreAnimation.apply(this, ['uk-animation-scale-up', current, next]); + } + }; + + UI.switcher.animations = Animations; + + + // helpers + + function coreAnimation(cls, current, next) { + + var d = UI.$.Deferred(), clsIn = cls, clsOut = cls, release; + + if (next[0]===current[0]) { + d.resolve(); + return d.promise(); + } + + if (typeof(cls) == 'object') { + clsIn = cls[0]; + clsOut = cls[1] || cls[0]; + } + + release = function() { + + if (current) current.hide().removeClass('uk-active '+clsOut+' uk-animation-reverse'); + + next.addClass(clsIn).one(UI.support.animation.end, function() { + + next.removeClass(''+clsIn+'').css({opacity:'', display:''}); + + d.resolve(); + + if (current) current.css({opacity:'', display:''}); + + }.bind(this)).show(); + }; + + next.css('animation-duration', this.options.duration+'ms'); + + if (current && current.length) { + + current.css('animation-duration', this.options.duration+'ms'); + + current.css('display', 'none').addClass(clsOut+' uk-animation-reverse').one(UI.support.animation.end, function() { + release(); + }.bind(this)).css('display', ''); + + } else { + next.addClass('uk-active'); + release(); + } + + return d.promise(); + } + +})(UIkit); + +(function(UI) { + + "use strict"; + + UI.component('tab', { + + defaults: { + 'target' : '>li:not(.uk-tab-responsive, .uk-disabled)', + 'connect' : false, + 'active' : 0, + 'animation' : false, + 'duration' : 200 + }, + + boot: function() { + + // init code + UI.ready(function(context) { + + UI.$("[data-uk-tab]", context).each(function() { + + var tab = UI.$(this); + + if (!tab.data("tab")) { + var obj = UI.tab(tab, UI.Utils.options(tab.attr("data-uk-tab"))); + } + }); + }); + }, + + init: function() { + + var $this = this; + + this.current = false; + + this.on("click.uikit.tab", this.options.target, function(e) { + + e.preventDefault(); + + if ($this.switcher && $this.switcher.animating) { + return; + } + + var current = $this.find($this.options.target).not(this); + + current.removeClass("uk-active").blur(); + + $this.trigger("change.uk.tab", [UI.$(this).addClass("uk-active"), $this.current]); + + $this.current = UI.$(this); + + // Update ARIA + if (!$this.options.connect) { + current.attr('aria-expanded', 'false'); + UI.$(this).attr('aria-expanded', 'true'); + } + }); + + if (this.options.connect) { + this.connect = UI.$(this.options.connect); + } + + // init responsive tab + this.responsivetab = UI.$('<li class="uk-tab-responsive uk-active"><a></a></li>').append('<div class="uk-dropdown uk-dropdown-small"><ul class="uk-nav uk-nav-dropdown"></ul><div>'); + + this.responsivetab.dropdown = this.responsivetab.find('.uk-dropdown'); + this.responsivetab.lst = this.responsivetab.dropdown.find('ul'); + this.responsivetab.caption = this.responsivetab.find('a:first'); + + if (this.element.hasClass("uk-tab-bottom")) this.responsivetab.dropdown.addClass("uk-dropdown-up"); + + // handle click + this.responsivetab.lst.on('click.uikit.tab', 'a', function(e) { + + e.preventDefault(); + e.stopPropagation(); + + var link = UI.$(this); + + $this.element.children('li:not(.uk-tab-responsive)').eq(link.data('index')).trigger('click'); + }); + + this.on('show.uk.switcher change.uk.tab', function(e, tab) { + $this.responsivetab.caption.html(tab.text()); + }); + + this.element.append(this.responsivetab); + + // init UIkit components + if (this.options.connect) { + this.switcher = UI.switcher(this.element, { + "toggle" : ">li:not(.uk-tab-responsive)", + "connect" : this.options.connect, + "active" : this.options.active, + "animation" : this.options.animation, + "duration" : this.options.duration + }); + } + + UI.dropdown(this.responsivetab, {"mode": "click"}); + + // init + $this.trigger("change.uk.tab", [this.element.find(this.options.target).not('.uk-tab-responsive').filter('.uk-active')]); + + this.check(); + + UI.$win.on('resize orientationchange', UI.Utils.debounce(function(){ + if ($this.element.is(":visible")) $this.check(); + }, 100)); + + this.on('display.uk.check', function(){ + if ($this.element.is(":visible")) $this.check(); + }); + }, + + check: function() { + + var children = this.element.children('li:not(.uk-tab-responsive)').removeClass('uk-hidden'); + + if (!children.length) { + this.responsivetab.addClass('uk-hidden'); + return; + } + + var top = (children.eq(0).offset().top + Math.ceil(children.eq(0).height()/2)), + doresponsive = false, + item, link, clone; + + this.responsivetab.lst.empty(); + + children.each(function(){ + + if (UI.$(this).offset().top > top) { + doresponsive = true; + } + }); + + if (doresponsive) { + + for (var i = 0; i < children.length; i++) { + + item = UI.$(children.eq(i)); + link = item.find('a'); + + if (item.css('float') != 'none' && !item.attr('uk-dropdown')) { + + if (!item.hasClass('uk-disabled')) { + + clone = item[0].outerHTML.replace('<a ', '<a data-index="'+i+'" '); + + this.responsivetab.lst.append(clone); + } + + item.addClass('uk-hidden'); + } + } + } + + this.responsivetab[this.responsivetab.lst.children('li').length ? 'removeClass':'addClass']('uk-hidden'); + } + }); + +})(UIkit); + +(function(UI){ + + "use strict"; + + UI.component('cover', { + + defaults: { + automute : true + }, + + boot: function() { + + // auto init + UI.ready(function(context) { + + UI.$("[data-uk-cover]", context).each(function(){ + + var ele = UI.$(this); + + if(!ele.data("cover")) { + var plugin = UI.cover(ele, UI.Utils.options(ele.attr("data-uk-cover"))); + } + }); + }); + }, + + init: function() { + + this.parent = this.element.parent(); + + UI.$win.on('load resize orientationchange', UI.Utils.debounce(function(){ + this.check(); + }.bind(this), 100)); + + this.on("display.uk.check", function(e) { + if(this.element.is(":visible")) this.check(); + }.bind(this)); + + this.check(); + + if (this.element.is('iframe') && this.options.automute) { + + var src = this.element.attr('src'); + + this.element.attr('src', '').on('load', function(){ + + this.contentWindow.postMessage('{ "event": "command", "func": "mute", "method":"setVolume", "value":0}', '*'); + + }).attr('src', [src, (src.indexOf('?') > -1 ? '&':'?'), 'enablejsapi=1&api=1'].join('')); + } + }, + + check: function() { + + this.element.css({ + 'width' : '', + 'height' : '' + }); + + this.dimension = {w: this.element.width(), h: this.element.height()}; + + if (this.element.attr('width') && !isNaN(this.element.attr('width'))) { + this.dimension.w = this.element.attr('width'); + } + + if (this.element.attr('height') && !isNaN(this.element.attr('height'))) { + this.dimension.h = this.element.attr('height'); + } + + this.ratio = this.dimension.w / this.dimension.h; + + var w = this.parent.width(), h = this.parent.height(), width, height; + + // if element height < parent height (gap underneath) + if ((w / this.ratio) < h) { + + width = Math.ceil(h * this.ratio); + height = h; + + // element width < parent width (gap to right) + } else { + + width = w; + height = Math.ceil(w / this.ratio); + } + + this.element.css({ + 'width' : width, + 'height' : height + }); + } + }); + +})(UIkit); diff --git a/media/uikit/js/uikit.min.js b/media/uikit/js/uikit.min.js new file mode 100644 index 00000000..1702ac2a --- /dev/null +++ b/media/uikit/js/uikit.min.js @@ -0,0 +1,3 @@ +/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +!function(t){if("function"==typeof define&&define.amd&&define("uikit",function(){var i=window.UIkit||t(window,window.jQuery,window.document);return i.load=function(t,e,n,o){var s,a=t.split(","),r=[],l=(o.config&&o.config.uikit&&o.config.uikit.base?o.config.uikit.base:"").replace(/\/+$/g,"");if(!l)throw new Error("Please define base path to UIkit in the requirejs config.");for(s=0;s<a.length;s+=1){var c=a[s].replace(/\./g,"/");r.push(l+"/components/"+c)}e(r,function(){n(i)})},i}),!window.jQuery)throw new Error("UIkit requires jQuery");window&&window.jQuery&&t(window,window.jQuery,window.document)}(function(t,i,e){"use strict";var n={},o=t.UIkit?Object.create(t.UIkit):void 0;if(n.version="2.21.0",n.noConflict=function(){return o&&(t.UIkit=o,i.UIkit=o,i.fn.uk=o.fn),n},n.prefix=function(t){return t},n.$=i,n.$doc=n.$(document),n.$win=n.$(window),n.$html=n.$("html"),n.support={},n.support.transition=function(){var t=function(){var t,i=e.body||e.documentElement,n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in n)if(void 0!==i.style[t])return n[t]}();return t&&{end:t}}(),n.support.animation=function(){var t=function(){var t,i=e.body||e.documentElement,n={WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(t in n)if(void 0!==i.style[t])return n[t]}();return t&&{end:t}}(),function(){var i=0;t.requestAnimationFrame=t.requestAnimationFrame||t.webkitRequestAnimationFrame||function(e){var n=(new Date).getTime(),o=Math.max(0,16-(n-i)),s=t.setTimeout(function(){e(n+o)},o);return i=n+o,s},t.cancelAnimationFrame||(t.cancelAnimationFrame=function(t){clearTimeout(t)})}(),n.support.touch="ontouchstart"in document||t.DocumentTouch&&document instanceof t.DocumentTouch||t.navigator.msPointerEnabled&&t.navigator.msMaxTouchPoints>0||t.navigator.pointerEnabled&&t.navigator.maxTouchPoints>0||!1,n.support.mutationobserver=t.MutationObserver||t.WebKitMutationObserver||null,n.Utils={},n.Utils.isFullscreen=function(){return document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.fullscreenElement||!1},n.Utils.str2json=function(t,i){try{return i?JSON.parse(t.replace(/([\$\w]+)\s*:/g,function(t,i){return'"'+i+'":'}).replace(/'([^']+)'/g,function(t,i){return'"'+i+'"'})):new Function("","var json = "+t+"; return JSON.parse(JSON.stringify(json));")()}catch(e){return!1}},n.Utils.debounce=function(t,i,e){var n;return function(){var o=this,s=arguments,a=function(){n=null,e||t.apply(o,s)},r=e&&!n;clearTimeout(n),n=setTimeout(a,i),r&&t.apply(o,s)}},n.Utils.removeCssRules=function(t){var i,e,n,o,s,a,r,l,c,u;t&&setTimeout(function(){try{for(u=document.styleSheets,o=0,r=u.length;r>o;o++){for(n=u[o],e=[],n.cssRules=n.cssRules,i=s=0,l=n.cssRules.length;l>s;i=++s)n.cssRules[i].type===CSSRule.STYLE_RULE&&t.test(n.cssRules[i].selectorText)&&e.unshift(i);for(a=0,c=e.length;c>a;a++)n.deleteRule(e[a])}}catch(h){}},0)},n.Utils.isInView=function(t,e){var o=i(t);if(!o.is(":visible"))return!1;var s=n.$win.scrollLeft(),a=n.$win.scrollTop(),r=o.offset(),l=r.left,c=r.top;return e=i.extend({topoffset:0,leftoffset:0},e),c+o.height()>=a&&c-e.topoffset<=a+n.$win.height()&&l+o.width()>=s&&l-e.leftoffset<=s+n.$win.width()?!0:!1},n.Utils.checkDisplay=function(t,e){var o=n.$("[data-uk-margin], [data-uk-grid-match], [data-uk-grid-margin], [data-uk-check-display]",t||document);return t&&!o.length&&(o=i(t)),o.trigger("display.uk.check"),e&&("string"!=typeof e&&(e='[class*="uk-animation-"]'),o.find(e).each(function(){var t=n.$(this),i=t.attr("class"),e=i.match(/uk\-animation\-(.+)/);t.removeClass(e[0]).width(),t.addClass(e[0])})),o},n.Utils.options=function(t){if(i.isPlainObject(t))return t;var e=t?t.indexOf("{"):-1,o={};if(-1!=e)try{o=n.Utils.str2json(t.substr(e))}catch(s){}return o},n.Utils.animate=function(t,e){var o=i.Deferred();return t=n.$(t),e=e,t.css("display","none").addClass(e).one(n.support.animation.end,function(){t.removeClass(e),o.resolve()}).width(),t.css("display",""),o.promise()},n.Utils.uid=function(t){return(t||"id")+(new Date).getTime()+"RAND"+Math.ceil(1e5*Math.random())},n.Utils.template=function(t,i){for(var e,n,o,s,a=t.replace(/\n/g,"\\n").replace(/\{\{\{\s*(.+?)\s*\}\}\}/g,"{{!$1}}").split(/(\{\{\s*(.+?)\s*\}\})/g),r=0,l=[],c=0;r<a.length;){if(e=a[r],e.match(/\{\{\s*(.+?)\s*\}\}/))switch(r+=1,e=a[r],n=e[0],o=e.substring(e.match(/^(\^|\#|\!|\~|\:)/)?1:0),n){case"~":l.push("for(var $i=0;$i<"+o+".length;$i++) { var $item = "+o+"[$i];"),c++;break;case":":l.push("for(var $key in "+o+") { var $val = "+o+"[$key];"),c++;break;case"#":l.push("if("+o+") {"),c++;break;case"^":l.push("if(!"+o+") {"),c++;break;case"/":l.push("}"),c--;break;case"!":l.push("__ret.push("+o+");");break;default:l.push("__ret.push(escape("+o+"));")}else l.push("__ret.push('"+e.replace(/\'/g,"\\'")+"');");r+=1}return s=new Function("$data",["var __ret = [];","try {","with($data){",c?'__ret = ["Not all blocks are closed correctly."]':l.join(""),"};","}catch(e){__ret = [e.message];}",'return __ret.join("").replace(/\\n\\n/g, "\\n");',"function escape(html) { return String(html).replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');}"].join("\n")),i?s(i):s},n.Utils.events={},n.Utils.events.click=n.support.touch?"tap":"click",t.UIkit=n,n.fn=function(t,e){var o=arguments,s=t.match(/^([a-z\-]+)(?:\.([a-z]+))?/i),a=s[1],r=s[2];return n[a]?this.each(function(){var t=i(this),s=t.data(a);s||t.data(a,s=n[a](this,r?void 0:e)),r&&s[r].apply(s,Array.prototype.slice.call(o,1))}):(i.error("UIkit component ["+a+"] does not exist."),this)},i.UIkit=n,i.fn.uk=n.fn,n.langdirection="rtl"==n.$html.attr("dir")?"right":"left",n.components={},n.component=function(t,e){var o=function(e,s){var a=this;return this.UIkit=n,this.element=e?n.$(e):null,this.options=i.extend(!0,{},this.defaults,s),this.plugins={},this.element&&this.element.data(t,this),this.init(),(this.options.plugins.length?this.options.plugins:Object.keys(o.plugins)).forEach(function(t){o.plugins[t].init&&(o.plugins[t].init(a),a.plugins[t]=!0)}),this.trigger("init.uk.component",[t,this]),this};return o.plugins={},i.extend(!0,o.prototype,{defaults:{plugins:[]},boot:function(){},init:function(){},on:function(t,i,e){return n.$(this.element||this).on(t,i,e)},one:function(t,i,e){return n.$(this.element||this).one(t,i,e)},off:function(t){return n.$(this.element||this).off(t)},trigger:function(t,i){return n.$(this.element||this).trigger(t,i)},find:function(t){return n.$(this.element?this.element:[]).find(t)},proxy:function(t,i){var e=this;i.split(" ").forEach(function(i){e[i]||(e[i]=function(){return t[i].apply(t,arguments)})})},mixin:function(t,i){var e=this;i.split(" ").forEach(function(i){e[i]||(e[i]=t[i].bind(e))})},option:function(){return 1==arguments.length?this.options[arguments[0]]||void 0:(2==arguments.length&&(this.options[arguments[0]]=arguments[1]),void 0)}},e),this.components[t]=o,this[t]=function(){var e,o;if(arguments.length)switch(arguments.length){case 1:"string"==typeof arguments[0]||arguments[0].nodeType||arguments[0]instanceof jQuery?e=i(arguments[0]):o=arguments[0];break;case 2:e=i(arguments[0]),o=arguments[1]}return e&&e.data(t)?e.data(t):new n.components[t](e,o)},n.domready&&n.component.boot(t),o},n.plugin=function(t,i,e){this.components[t].plugins[i]=e},n.component.boot=function(t){n.components[t].prototype&&n.components[t].prototype.boot&&!n.components[t].booted&&(n.components[t].prototype.boot.apply(n,[]),n.components[t].booted=!0)},n.component.bootComponents=function(){for(var t in n.components)n.component.boot(t)},n.domObservers=[],n.domready=!1,n.ready=function(t){n.domObservers.push(t),n.domready&&t(document)},n.on=function(t,i,e){return t&&t.indexOf("ready.uk.dom")>-1&&n.domready&&i.apply(n.$doc),n.$doc.on(t,i,e)},n.one=function(t,i,e){return t&&t.indexOf("ready.uk.dom")>-1&&n.domready?(i.apply(n.$doc),n.$doc):n.$doc.one(t,i,e)},n.trigger=function(t,i){return n.$doc.trigger(t,i)},n.domObserve=function(t,i){n.support.mutationobserver&&(i=i||function(){},n.$(t).each(function(){var t=this,e=n.$(t);if(!e.data("observer"))try{var o=new n.support.mutationobserver(n.Utils.debounce(function(){i.apply(t,[]),e.trigger("changed.uk.dom")},50));o.observe(t,{childList:!0,subtree:!0}),e.data("observer",o)}catch(s){}}))},n.init=function(t){t=t||document,n.domObservers.forEach(function(i){i(t)})},n.on("domready.uk.dom",function(){n.init(),n.domready&&n.Utils.checkDisplay()}),i(function(){n.$body=n.$("body"),n.ready(function(){n.domObserve("[data-uk-observe]")}),n.on("changed.uk.dom",function(t){n.init(t.target),n.Utils.checkDisplay(t.target)}),n.trigger("beforeready.uk.dom"),n.component.bootComponents(),setInterval(function(){var t,i={x:window.pageXOffset,y:window.pageYOffset},e=function(){(i.x!=window.pageXOffset||i.y!=window.pageYOffset)&&(t={x:0,y:0},window.pageXOffset!=i.x&&(t.x=window.pageXOffset>i.x?1:-1),window.pageYOffset!=i.y&&(t.y=window.pageYOffset>i.y?1:-1),i={dir:t,x:window.pageXOffset,y:window.pageYOffset},n.$doc.trigger("scrolling.uk.document",[i]))};return n.support.touch&&n.$html.on("touchmove touchend MSPointerMove MSPointerUp pointermove pointerup",e),(i.x||i.y)&&e(),e}(),15),n.trigger("domready.uk.dom"),n.support.touch&&navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&n.$win.on("load orientationchange resize",n.Utils.debounce(function(){var t=function(){return i(".uk-height-viewport").css("height",window.innerHeight),t};return t()}(),100)),n.trigger("afterready.uk.dom"),n.domready=!0}),n.$html.addClass(n.support.touch?"uk-touch":"uk-notouch"),n.support.touch){var s,a=!1,r="uk-hover",l=".uk-overlay, .uk-overlay-hover, .uk-overlay-toggle, .uk-animation-hover, .uk-has-hover";n.$html.on("touchstart MSPointerDown pointerdown",l,function(){a&&i("."+r).removeClass(r),a=i(this).addClass(r)}).on("touchend MSPointerUp pointerup",function(t){s=i(t.target).parents(l),a&&a.not(s).removeClass(r)})}return n}),function(t){function i(t,i,e,n){return Math.abs(t-i)>=Math.abs(e-n)?t-i>0?"Left":"Right":e-n>0?"Up":"Down"}function e(){c=null,h.last&&(h.el.trigger("longTap"),h={})}function n(){c&&clearTimeout(c),c=null}function o(){a&&clearTimeout(a),r&&clearTimeout(r),l&&clearTimeout(l),c&&clearTimeout(c),a=r=l=c=null,h={}}function s(t){return t.pointerType==t.MSPOINTER_TYPE_TOUCH&&t.isPrimary}if(!t.fn.swipeLeft){var a,r,l,c,u,h={},d=750;t(function(){var f,p,m,g=0,v=0;"MSGesture"in window&&(u=new MSGesture,u.target=document.body),t(document).on("MSGestureEnd gestureend",function(t){var i=t.originalEvent.velocityX>1?"Right":t.originalEvent.velocityX<-1?"Left":t.originalEvent.velocityY>1?"Down":t.originalEvent.velocityY<-1?"Up":null;i&&(h.el.trigger("swipe"),h.el.trigger("swipe"+i))}).on("touchstart MSPointerDown pointerdown",function(i){("MSPointerDown"!=i.type||s(i.originalEvent))&&(m="MSPointerDown"==i.type||"pointerdown"==i.type?i:i.originalEvent.touches[0],f=Date.now(),p=f-(h.last||f),h.el=t("tagName"in m.target?m.target:m.target.parentNode),a&&clearTimeout(a),h.x1=m.pageX,h.y1=m.pageY,p>0&&250>=p&&(h.isDoubleTap=!0),h.last=f,c=setTimeout(e,d),!u||"MSPointerDown"!=i.type&&"pointerdown"!=i.type&&"touchstart"!=i.type||u.addPointer(i.originalEvent.pointerId))}).on("touchmove MSPointerMove pointermove",function(t){("MSPointerMove"!=t.type||s(t.originalEvent))&&(m="MSPointerMove"==t.type||"pointermove"==t.type?t:t.originalEvent.touches[0],n(),h.x2=m.pageX,h.y2=m.pageY,g+=Math.abs(h.x1-h.x2),v+=Math.abs(h.y1-h.y2))}).on("touchend MSPointerUp pointerup",function(e){("MSPointerUp"!=e.type||s(e.originalEvent))&&(n(),h.x2&&Math.abs(h.x1-h.x2)>30||h.y2&&Math.abs(h.y1-h.y2)>30?l=setTimeout(function(){h.el.trigger("swipe"),h.el.trigger("swipe"+i(h.x1,h.x2,h.y1,h.y2)),h={}},0):"last"in h&&(isNaN(g)||30>g&&30>v?r=setTimeout(function(){var i=t.Event("tap");i.cancelTouch=o,h.el.trigger(i),h.isDoubleTap?(h.el.trigger("doubleTap"),h={}):a=setTimeout(function(){a=null,h.el.trigger("singleTap"),h={}},250)},0):h={},g=v=0))}).on("touchcancel MSPointerCancel",o),t(window).on("scroll",o)}),["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","singleTap","longTap"].forEach(function(i){t.fn[i]=function(e){return t(this).on(i,e)}})}}(jQuery),function(t){"use strict";var i=[];t.component("stackMargin",{defaults:{cls:"uk-margin-small-top"},boot:function(){t.ready(function(i){t.$("[data-uk-margin]",i).each(function(){var i,e=t.$(this);e.data("stackMargin")||(i=t.stackMargin(e,t.Utils.options(e.attr("data-uk-margin"))))})})},init:function(){var e=this;this.columns=this.element.children(),this.columns.length&&(t.$win.on("resize orientationchange",function(){var i=function(){e.process()};return t.$(function(){i(),t.$win.on("load",i)}),t.Utils.debounce(i,20)}()),t.$html.on("changed.uk.dom",function(){e.columns=e.element.children(),e.process()}),this.on("display.uk.check",function(){e.columns=e.element.children(),this.element.is(":visible")&&this.process()}.bind(this)),i.push(this))},process:function(){return t.Utils.stackMargin(this.columns,this.options),this},revert:function(){return this.columns.removeClass(this.options.cls),this}}),function(){var i=[],e=function(t){if(t.is(":visible")){var i=t.parent().width(),e=t.data("width"),n=i/e,o=Math.floor(n*t.data("height"));t.css({height:e>i?o:t.data("height")})}};t.component("responsiveElement",{defaults:{},boot:function(){t.ready(function(i){t.$("iframe.uk-responsive-width, [data-uk-responsive]",i).each(function(){var i,e=t.$(this);e.data("responsiveIframe")||(i=t.responsiveElement(e,{}))})})},init:function(){var t=this.element;t.attr("width")&&t.attr("height")&&(t.data({width:t.attr("width"),height:t.attr("height")}).on("display.uk.check",function(){e(t)}),e(t),i.push(t))}}),t.$win.on("resize load",t.Utils.debounce(function(){i.forEach(function(t){e(t)})},15))}(),t.Utils.stackMargin=function(i,e){e=t.$.extend({cls:"uk-margin-small-top"},e),e.cls=e.cls,i=t.$(i).removeClass(e.cls);var n=!1,o=i.filter(":visible:first"),s=o.length?o.position().top+o.outerHeight()-1:!1;s!==!1&&i.each(function(){var i=t.$(this);i.is(":visible")&&(n?i.addClass(e.cls):i.position().top>=s&&(n=i.addClass(e.cls)))})},t.Utils.matchHeights=function(i,e){i=t.$(i).css("min-height",""),e=t.$.extend({row:!0},e);var n=function(i){if(!(i.length<2)){var e=0;i.each(function(){e=Math.max(e,t.$(this).outerHeight())}).each(function(){var i=t.$(this),n=e-("border-box"==i.css("box-sizing")?0:i.outerHeight()-i.height());i.css("min-height",n+"px")})}};e.row?(i.first().width(),setTimeout(function(){var e=!1,o=[];i.each(function(){var i=t.$(this),s=i.offset().top;s!=e&&o.length&&(n(t.$(o)),o=[],s=i.offset().top),o.push(i),e=s}),o.length&&n(t.$(o))},0)):n(i)}}(UIkit),function(t){"use strict";function i(i,e){e=t.$.extend({duration:1e3,transition:"easeOutExpo",offset:0,complete:function(){}},e);var n=i.offset().top-e.offset,o=t.$doc.height(),s=window.innerHeight;n+s>o&&(n=o-s),t.$("html,body").stop().animate({scrollTop:n},e.duration,e.transition).promise().done(e.complete)}t.component("smoothScroll",{boot:function(){t.$html.on("click.smooth-scroll.uikit","[data-uk-smooth-scroll]",function(){var i=t.$(this);if(!i.data("smoothScroll")){{t.smoothScroll(i,t.Utils.options(i.attr("data-uk-smooth-scroll")))}i.trigger("click")}return!1})},init:function(){var e=this;this.on("click",function(n){n.preventDefault(),i(t.$(this.hash).length?t.$(this.hash):t.$("body"),e.options)})}}),t.Utils.scrollToElement=i,t.$.easing.easeOutExpo||(t.$.easing.easeOutExpo=function(t,i,e,n,o){return i==o?e+n:n*(-Math.pow(2,-10*i/o)+1)+e})}(UIkit),function(t){"use strict";var i=t.$win,e=t.$doc,n=[],o=function(){for(var t=0;t<n.length;t++)window.requestAnimationFrame.apply(window,[n[t].check])};t.component("scrollspy",{defaults:{target:!1,cls:"uk-scrollspy-inview",initcls:"uk-scrollspy-init-inview",topoffset:0,leftoffset:0,repeat:!1,delay:0},boot:function(){e.on("scrolling.uk.document",o),i.on("load resize orientationchange",t.Utils.debounce(o,50)),t.ready(function(i){t.$("[data-uk-scrollspy]",i).each(function(){var i=t.$(this);if(!i.data("scrollspy")){t.scrollspy(i,t.Utils.options(i.attr("data-uk-scrollspy")))}})})},init:function(){var i,e=this,o=this.options.cls.split(/,/),s=function(){var n=e.options.target?e.element.find(e.options.target):e.element,s=1===n.length?1:0,a=0;n.each(function(){var n=t.$(this),r=n.data("inviewstate"),l=t.Utils.isInView(n,e.options),c=n.data("ukScrollspyCls")||o[a].trim();!l||r||n.data("scrollspy-idle")||(i||(n.addClass(e.options.initcls),e.offset=n.offset(),i=!0,n.trigger("init.uk.scrollspy")),n.data("scrollspy-idle",setTimeout(function(){n.addClass("uk-scrollspy-inview").toggleClass(c).width(),n.trigger("inview.uk.scrollspy"),n.data("scrollspy-idle",!1),n.data("inviewstate",!0)},e.options.delay*s)),s++),!l&&r&&e.options.repeat&&(n.data("scrollspy-idle")&&clearTimeout(n.data("scrollspy-idle")),n.removeClass("uk-scrollspy-inview").toggleClass(c),n.data("inviewstate",!1),n.trigger("outview.uk.scrollspy")),a=o[a+1]?a+1:0})};s(),this.check=s,n.push(this)}});var s=[],a=function(){for(var t=0;t<s.length;t++)window.requestAnimationFrame.apply(window,[s[t].check])};t.component("scrollspynav",{defaults:{cls:"uk-active",closest:!1,topoffset:0,leftoffset:0,smoothscroll:!1},boot:function(){e.on("scrolling.uk.document",a),i.on("resize orientationchange",t.Utils.debounce(a,50)),t.ready(function(i){t.$("[data-uk-scrollspy-nav]",i).each(function(){var i=t.$(this);if(!i.data("scrollspynav")){t.scrollspynav(i,t.Utils.options(i.attr("data-uk-scrollspy-nav")))}})})},init:function(){var e,n=[],o=this.find("a[href^='#']").each(function(){n.push(t.$(this).attr("href"))}),a=t.$(n.join(",")),r=this.options.cls,l=this.options.closest||this.options.closest,c=this,u=function(){e=[];for(var n=0;n<a.length;n++)t.Utils.isInView(a.eq(n),c.options)&&e.push(a.eq(n));if(e.length){var s,u=i.scrollTop(),h=function(){for(var t=0;t<e.length;t++)if(e[t].offset().top>=u)return e[t]}();if(!h)return;c.options.closest?(o.closest(l).removeClass(r),s=o.filter("a[href='#"+h.attr("id")+"']").closest(l).addClass(r)):s=o.removeClass(r).filter("a[href='#"+h.attr("id")+"']").addClass(r),c.element.trigger("inview.uk.scrollspynav",[h,s])}};this.options.smoothscroll&&t.smoothScroll&&o.each(function(){t.smoothScroll(this,c.options.smoothscroll)}),u(),this.element.data("scrollspynav",this),this.check=u,s.push(this)}})}(UIkit),function(t){"use strict";var i=[];t.component("toggle",{defaults:{target:!1,cls:"uk-hidden",animation:!1,duration:200},boot:function(){t.ready(function(e){t.$("[data-uk-toggle]",e).each(function(){var i=t.$(this);if(!i.data("toggle")){t.toggle(i,t.Utils.options(i.attr("data-uk-toggle")))}}),setTimeout(function(){i.forEach(function(t){t.getToggles()})},0)})},init:function(){var t=this;this.aria=-1!==this.options.cls.indexOf("uk-hidden"),this.getToggles(),this.on("click",function(i){t.element.is('a[href="#"]')&&i.preventDefault(),t.toggle()}),i.push(this)},toggle:function(){if(this.totoggle.length){if(this.options.animation&&t.support.animation){var i=this,e=this.options.animation.split(",");1==e.length&&(e[1]=e[0]),e[0]=e[0].trim(),e[1]=e[1].trim(),this.totoggle.css("animation-duration",this.options.duration+"ms"),this.totoggle.hasClass(this.options.cls)?(this.totoggle.toggleClass(this.options.cls),this.totoggle.each(function(){t.Utils.animate(this,e[0]).then(function(){t.$(this).css("animation-duration",""),t.Utils.checkDisplay(this)})})):this.totoggle.each(function(){t.Utils.animate(this,e[1]+" uk-animation-reverse").then(function(){t.$(this).toggleClass(i.options.cls).css("animation-duration",""),t.Utils.checkDisplay(this)}.bind(this))})}else this.totoggle.toggleClass(this.options.cls),t.Utils.checkDisplay(this.totoggle);this.updateAria()}},getToggles:function(){this.totoggle=this.options.target?t.$(this.options.target):[],this.updateAria()},updateAria:function(){this.aria&&this.totoggle.length&&this.totoggle.each(function(){t.$(this).attr("aria-hidden",t.$(this).hasClass("uk-hidden"))})}})}(UIkit),function(t){"use strict";t.component("alert",{defaults:{fade:!0,duration:200,trigger:".uk-alert-close"},boot:function(){t.$html.on("click.alert.uikit","[data-uk-alert]",function(i){var e=t.$(this);if(!e.data("alert")){var n=t.alert(e,t.Utils.options(e.attr("data-uk-alert")));t.$(i.target).is(n.options.trigger)&&(i.preventDefault(),n.close())}})},init:function(){var t=this;this.on("click",this.options.trigger,function(i){i.preventDefault(),t.close()})},close:function(){var t=this.trigger("close.uk.alert"),i=function(){this.trigger("closed.uk.alert").remove()}.bind(this);this.options.fade?t.css("overflow","hidden").css("max-height",t.height()).animate({height:0,opacity:0,"padding-top":0,"padding-bottom":0,"margin-top":0,"margin-bottom":0},this.options.duration,i):i()}})}(UIkit),function(t){"use strict";t.component("buttonRadio",{defaults:{target:".uk-button"},boot:function(){t.$html.on("click.buttonradio.uikit","[data-uk-button-radio]",function(i){var e=t.$(this);if(!e.data("buttonRadio")){var n=t.buttonRadio(e,t.Utils.options(e.attr("data-uk-button-radio"))),o=t.$(i.target);o.is(n.options.target)&&o.trigger("click")}})},init:function(){var i=this;this.find(i.options.target).attr("aria-checked","false").filter(".uk-active").attr("aria-checked","true"),this.on("click",this.options.target,function(e){var n=t.$(this);n.is('a[href="#"]')&&e.preventDefault(),i.find(i.options.target).not(n).removeClass("uk-active").blur(),n.addClass("uk-active"),i.find(i.options.target).not(n).attr("aria-checked","false"),n.attr("aria-checked","true"),i.trigger("change.uk.button",[n])})},getSelected:function(){return this.find(".uk-active")}}),t.component("buttonCheckbox",{defaults:{target:".uk-button"},boot:function(){t.$html.on("click.buttoncheckbox.uikit","[data-uk-button-checkbox]",function(i){var e=t.$(this);if(!e.data("buttonCheckbox")){var n=t.buttonCheckbox(e,t.Utils.options(e.attr("data-uk-button-checkbox"))),o=t.$(i.target);o.is(n.options.target)&&o.trigger("click")}})},init:function(){var i=this;this.find(i.options.target).attr("aria-checked","false").filter(".uk-active").attr("aria-checked","true"),this.on("click",this.options.target,function(e){var n=t.$(this);n.is('a[href="#"]')&&e.preventDefault(),n.toggleClass("uk-active").blur(),n.attr("aria-checked",n.hasClass("uk-active")),i.trigger("change.uk.button",[n])})},getSelected:function(){return this.find(".uk-active")}}),t.component("button",{defaults:{},boot:function(){t.$html.on("click.button.uikit","[data-uk-button]",function(){var i=t.$(this);if(!i.data("button")){{t.button(i,t.Utils.options(i.attr("data-uk-button")))}i.trigger("click")}})},init:function(){var t=this;this.element.attr("aria-pressed",this.element.hasClass("uk-active")),this.on("click",function(i){t.element.is('a[href="#"]')&&i.preventDefault(),t.toggle(),t.trigger("change.uk.button",[t.element.blur().hasClass("uk-active")])})},toggle:function(){this.element.toggleClass("uk-active"),this.element.attr("aria-pressed",this.element.hasClass("uk-active"))}})}(UIkit),function(t){"use strict";var i,e=!1;t.component("dropdown",{defaults:{mode:"hover",remaintime:800,justify:!1,boundary:t.$win,delay:0,hoverDelayIdle:250},remainIdle:!1,boot:function(){var i=t.support.touch?"click":"mouseenter";t.$html.on(i+".dropdown.uikit","[data-uk-dropdown]",function(e){var n=t.$(this);if(!n.data("dropdown")){var o=t.dropdown(n,t.Utils.options(n.attr("data-uk-dropdown")));("click"==i||"mouseenter"==i&&"hover"==o.options.mode)&&o.element.trigger(i),o.element.find(".uk-dropdown").length&&e.preventDefault()}})},init:function(){var n=this;this.dropdown=this.find(".uk-dropdown"),this.centered=this.dropdown.hasClass("uk-dropdown-center"),this.justified=this.options.justify?t.$(this.options.justify):!1,this.boundary=t.$(this.options.boundary),this.flipped=this.dropdown.hasClass("uk-dropdown-flip"),this.boundary.length||(this.boundary=t.$win),this.element.attr("aria-haspopup","true"),this.element.attr("aria-expanded",this.element.hasClass("uk-open")),"click"==this.options.mode||t.support.touch?this.on("click.uikit.dropdown",function(i){var e=t.$(i.target);e.parents(".uk-dropdown").length||((e.is("a[href='#']")||e.parent().is("a[href='#']")||n.dropdown.length&&!n.dropdown.is(":visible"))&&i.preventDefault(),e.blur()),n.element.hasClass("uk-open")?(e.is("a:not(.js-uk-prevent)")||e.is(".uk-dropdown-close")||!n.dropdown.find(i.target).length)&&n.hide():n.show()}):this.on("mouseenter",function(){n.remainIdle&&clearTimeout(n.remainIdle),i&&clearTimeout(i),e&&e==n||(i=e&&e!=n?setTimeout(function(){i=setTimeout(n.show.bind(n),n.options.delay)},n.options.hoverDelayIdle):setTimeout(n.show.bind(n),n.options.delay))}).on("mouseleave",function(){i&&clearTimeout(i),n.remainIdle=setTimeout(function(){e&&e==n&&n.hide()},n.options.remaintime)}).on("click",function(i){var e=t.$(i.target);n.remainIdle&&clearTimeout(n.remainIdle),(e.is("a[href='#']")||e.parent().is("a[href='#']"))&&i.preventDefault(),n.show()})},show:function(){t.$html.off("click.outer.dropdown"),e&&e!=this&&e.hide(),i&&clearTimeout(i),this.checkDimensions(),this.element.addClass("uk-open"),this.element.attr("aria-expanded","true"),this.trigger("show.uk.dropdown",[this]),t.Utils.checkDisplay(this.dropdown,!0),e=this,this.registerOuterClick()},hide:function(){this.element.removeClass("uk-open"),this.remainIdle&&clearTimeout(this.remainIdle),this.remainIdle=!1,this.element.attr("aria-expanded","false"),this.trigger("hide.uk.dropdown",[this]),e==this&&(e=!1)},registerOuterClick:function(){var n=this;t.$html.off("click.outer.dropdown"),setTimeout(function(){t.$html.on("click.outer.dropdown",function(o){i&&clearTimeout(i);var s=t.$(o.target);e!=n||!s.is("a:not(.js-uk-prevent)")&&!s.is(".uk-dropdown-close")&&n.dropdown.find(o.target).length||(n.hide(),t.$html.off("click.outer.dropdown"))})},10)},checkDimensions:function(){if(this.dropdown.length){this.justified&&this.justified.length&&this.dropdown.css("min-width","");var i=this,e=this.dropdown.css("margin-"+t.langdirection,""),n=e.show().offset(),o=e.outerWidth(),s=this.boundary.width(),a=this.boundary.offset()?this.boundary.offset().left:0;if(this.centered&&(e.css("margin-"+t.langdirection,-1*(parseFloat(o)/2-e.parent().width()/2)),n=e.offset(),(o+n.left>s||n.left<0)&&(e.css("margin-"+t.langdirection,""),n=e.offset())),this.justified&&this.justified.length){var r=this.justified.outerWidth();if(e.css("min-width",r),"right"==t.langdirection){var l=s-(this.justified.offset().left+r),c=s-(e.offset().left+e.outerWidth());e.css("margin-right",l-c)}else e.css("margin-left",this.justified.offset().left-n.left);n=e.offset()}o+(n.left-a)>s&&(e.addClass("uk-dropdown-flip"),n=e.offset()),n.left-a<0&&(e.addClass("uk-dropdown-stack"),e.hasClass("uk-dropdown-flip")&&(this.flipped||(e.removeClass("uk-dropdown-flip"),n=e.offset(),e.addClass("uk-dropdown-flip")),setTimeout(function(){(e.offset().left-a<0||!i.flipped&&e.outerWidth()+(n.left-a)<s)&&e.removeClass("uk-dropdown-flip")},0)),this.trigger("stack.uk.dropdown",[this])),e.css("display","")}}})}(UIkit),function(t){"use strict";var i=[];t.component("gridMatchHeight",{defaults:{target:!1,row:!0,ignorestacked:!1},boot:function(){t.ready(function(i){t.$("[data-uk-grid-match]",i).each(function(){var i,e=t.$(this);e.data("gridMatchHeight")||(i=t.gridMatchHeight(e,t.Utils.options(e.attr("data-uk-grid-match"))))})})},init:function(){var e=this;this.columns=this.element.children(),this.elements=this.options.target?this.find(this.options.target):this.columns,this.columns.length&&(t.$win.on("load resize orientationchange",function(){var i=function(){e.match()};return t.$(function(){i()}),t.Utils.debounce(i,50)}()),t.$html.on("changed.uk.dom",function(){e.columns=e.element.children(),e.elements=e.options.target?e.find(e.options.target):e.columns,e.match()}),this.on("display.uk.check",function(){this.element.is(":visible")&&this.match()}.bind(this)),i.push(this))},match:function(){var i=this.columns.filter(":visible:first");if(i.length){var e=Math.ceil(100*parseFloat(i.css("width"))/parseFloat(i.parent().css("width")))>=100;return e&&!this.options.ignorestacked?this.revert():t.Utils.matchHeights(this.elements,this.options),this}},revert:function(){return this.elements.css("min-height",""),this}}),t.component("gridMargin",{defaults:{cls:"uk-grid-margin"},boot:function(){t.ready(function(i){t.$("[data-uk-grid-margin]",i).each(function(){var i,e=t.$(this);e.data("gridMargin")||(i=t.gridMargin(e,t.Utils.options(e.attr("data-uk-grid-margin"))))})})},init:function(){t.stackMargin(this.element,this.options)}})}(UIkit),function(t){"use strict";function i(i,e){return e?("object"==typeof i?(i=i instanceof jQuery?i:t.$(i),i.parent().length&&(e.persist=i,e.persist.data("modalPersistParent",i.parent()))):i="string"==typeof i||"number"==typeof i?t.$("<div></div>").html(i):t.$("<div></div>").html("UIkit.modal Error: Unsupported data type: "+typeof i),i.appendTo(e.element.find(".uk-modal-dialog")),e):void 0}var e,n=!1,o=0,s=t.$html;t.component("modal",{defaults:{keyboard:!0,bgclose:!0,minScrollHeight:150,center:!1,modal:!0},scrollable:!1,transition:!1,init:function(){if(e||(e=t.$("body")),this.element.length){var i=this;this.paddingdir="padding-"+("left"==t.langdirection?"right":"left"),this.dialog=this.find(".uk-modal-dialog"),this.active=!1,this.element.attr("aria-hidden",this.element.hasClass("uk-open")),this.on("click",".uk-modal-close",function(t){t.preventDefault(),i.hide()}).on("click",function(e){var n=t.$(e.target);n[0]==i.element[0]&&i.options.bgclose&&i.hide()})}},toggle:function(){return this[this.isActive()?"hide":"show"]()},show:function(){if(this.element.length){if(!this.isActive())return this.options.modal&&n&&n.hide(!0),this.element.removeClass("uk-open").show(),this.resize(),this.options.modal&&(n=this),this.active=!0,o++,this.element.addClass("uk-open"),s.addClass("uk-modal-page").height(),this.element.attr("aria-hidden","false"),this.element.trigger("show.uk.modal"),t.Utils.checkDisplay(this.dialog,!0),this}},hide:function(i){if(!i&&t.support.transition){var e=this;this.one(t.support.transition.end,function(){e._hide()}).removeClass("uk-open")}else this._hide();return this},resize:function(){var t=e.width();if(this.scrollbarwidth=window.innerWidth-t,e.css(this.paddingdir,this.scrollbarwidth),this.element.css("overflow-y",this.scrollbarwidth?"scroll":"auto"),!this.updateScrollable()&&this.options.center){var i=this.dialog.outerHeight(),n=parseInt(this.dialog.css("margin-top"),10)+parseInt(this.dialog.css("margin-bottom"),10);i+n<window.innerHeight?this.dialog.css({top:window.innerHeight/2-i/2-n}):this.dialog.css({top:""})}},updateScrollable:function(){var t=this.dialog.find(".uk-overflow-container:visible:first");if(t.length){t.css("height",0);var i=Math.abs(parseInt(this.dialog.css("margin-top"),10)),e=this.dialog.outerHeight(),n=window.innerHeight,o=n-2*(20>i?20:i)-e;return t.css("height",o<this.options.minScrollHeight?"":o),!0}return!1},_hide:function(){this.active=!1,o--,this.element.hide().removeClass("uk-open"),this.element.attr("aria-hidden","true"),o||(s.removeClass("uk-modal-page"),e.css(this.paddingdir,"")),n===this&&(n=!1),this.trigger("hide.uk.modal")},isActive:function(){return this.active}}),t.component("modalTrigger",{boot:function(){t.$html.on("click.modal.uikit","[data-uk-modal]",function(i){var e=t.$(this);if(e.is("a")&&i.preventDefault(),!e.data("modalTrigger")){var n=t.modalTrigger(e,t.Utils.options(e.attr("data-uk-modal")));n.show()}}),t.$html.on("keydown.modal.uikit",function(t){n&&27===t.keyCode&&n.options.keyboard&&(t.preventDefault(),n.hide())}),t.$win.on("resize orientationchange",t.Utils.debounce(function(){n&&n.resize()},150))},init:function(){var i=this;this.options=t.$.extend({target:i.element.is("a")?i.element.attr("href"):!1},this.options),this.modal=t.modal(this.options.target,this.options),this.on("click",function(t){t.preventDefault(),i.show()}),this.proxy(this.modal,"show hide isActive") +}}),t.modal.dialog=function(e,n){var o=t.modal(t.$(t.modal.dialog.template).appendTo("body"),n);return o.on("hide.uk.modal",function(){o.persist&&(o.persist.appendTo(o.persist.data("modalPersistParent")),o.persist=!1),o.element.remove()}),i(e,o),o},t.modal.dialog.template='<div class="uk-modal"><div class="uk-modal-dialog" style="min-height:0;"></div></div>',t.modal.alert=function(i,e){e=t.$.extend(!0,{bgclose:!1,keyboard:!1,modal:!1,labels:t.modal.labels},e);var n=t.modal.dialog(['<div class="uk-margin uk-modal-content">'+String(i)+"</div>",'<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-button-primary uk-modal-close">'+e.labels.Ok+"</button></div>"].join(""),e);n.on("show.uk.modal",function(){setTimeout(function(){n.element.find("button:first").focus()},50)}),n.show()},t.modal.confirm=function(i,e,n){e=t.$.isFunction(e)?e:function(){},n=t.$.extend(!0,{bgclose:!1,keyboard:!1,modal:!1,labels:t.modal.labels},n);var o=t.modal.dialog(['<div class="uk-margin uk-modal-content">'+String(i)+"</div>",'<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-button-primary js-modal-confirm">'+n.labels.Ok+'</button> <button class="uk-button uk-modal-close">'+n.labels.Cancel+"</button></div>"].join(""),n);o.element.find(".js-modal-confirm").on("click",function(){e(),o.hide()}),o.on("show.uk.modal",function(){setTimeout(function(){o.element.find("button:first").focus()},50)}),o.show()},t.modal.prompt=function(i,e,n,o){n=t.$.isFunction(n)?n:function(){},o=t.$.extend(!0,{bgclose:!1,keyboard:!1,modal:!1,labels:t.modal.labels},o);var s=t.modal.dialog([i?'<div class="uk-modal-content uk-form">'+String(i)+"</div>":"",'<div class="uk-margin-small-top uk-modal-content uk-form"><p><input type="text" class="uk-width-1-1"></p></div>','<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-button-primary js-modal-ok">'+o.labels.Ok+'</button> <button class="uk-button uk-modal-close">'+o.labels.Cancel+"</button></div>"].join(""),o),a=s.element.find("input[type='text']").val(e||"").on("keyup",function(t){13==t.keyCode&&s.element.find(".js-modal-ok").trigger("click")});s.element.find(".js-modal-ok").on("click",function(){n(a.val())!==!1&&s.hide()}),s.on("show.uk.modal",function(){setTimeout(function(){a.focus()},50)}),s.show()},t.modal.blockUI=function(i,e){var n=t.modal.dialog(['<div class="uk-margin uk-modal-content">'+String(i||'<div class="uk-text-center">...</div>')+"</div>"].join(""),t.$.extend({bgclose:!1,keyboard:!1,modal:!1},e));return n.content=n.element.find(".uk-modal-content:first"),n.show(),n},t.modal.labels={Ok:"Ok",Cancel:"Cancel"}}(UIkit),function(t){"use strict";function i(i){var e=t.$(i),n="auto";if(e.is(":visible"))n=e.outerHeight();else{var o={position:e.css("position"),visibility:e.css("visibility"),display:e.css("display")};n=e.css({position:"absolute",visibility:"hidden",display:"block"}).outerHeight(),e.css(o)}return n}t.component("nav",{defaults:{toggle:">li.uk-parent > a[href='#']",lists:">li.uk-parent > ul",multiple:!1},boot:function(){t.ready(function(i){t.$("[data-uk-nav]",i).each(function(){var i=t.$(this);if(!i.data("nav")){t.nav(i,t.Utils.options(i.attr("data-uk-nav")))}})})},init:function(){var i=this;this.on("click.uikit.nav",this.options.toggle,function(e){e.preventDefault();var n=t.$(this);i.open(n.parent()[0]==i.element[0]?n:n.parent("li"))}),this.find(this.options.lists).each(function(){var e=t.$(this),n=e.parent(),o=n.hasClass("uk-active");e.wrap('<div style="overflow:hidden;height:0;position:relative;"></div>'),n.data("list-container",e.parent()[o?"removeClass":"addClass"]("uk-hidden")),n.attr("aria-expanded",n.hasClass("uk-open")),o&&i.open(n,!0)})},open:function(e,n){var o=this,s=this.element,a=t.$(e),r=a.data("list-container");this.options.multiple||s.children(".uk-open").not(e).each(function(){var i=t.$(this);i.data("list-container")&&i.data("list-container").stop().animate({height:0},function(){t.$(this).parent().removeClass("uk-open").end().addClass("uk-hidden")})}),a.toggleClass("uk-open"),a.attr("aria-expanded",a.hasClass("uk-open")),r&&(a.hasClass("uk-open")&&r.removeClass("uk-hidden"),n?(r.stop().height(a.hasClass("uk-open")?"auto":0),a.hasClass("uk-open")||r.addClass("uk-hidden"),this.trigger("display.uk.check")):r.stop().animate({height:a.hasClass("uk-open")?i(r.find("ul:first")):0},function(){a.hasClass("uk-open")?r.css("height",""):r.addClass("uk-hidden"),o.trigger("display.uk.check")}))}})}(UIkit),function(t){"use strict";var i={x:window.scrollX,y:window.scrollY},e=(t.$win,t.$doc,t.$html),n={show:function(n){if(n=t.$(n),n.length){var o=t.$("body"),s=n.find(".uk-offcanvas-bar:first"),a="right"==t.langdirection,r=s.hasClass("uk-offcanvas-bar-flip")?-1:1,l=r*(a?-1:1);i={x:window.pageXOffset,y:window.pageYOffset},n.addClass("uk-active"),o.css({width:window.innerWidth,height:window.innerHeight}).addClass("uk-offcanvas-page"),o.css(a?"margin-right":"margin-left",(a?-1:1)*s.outerWidth()*l).width(),e.css("margin-top",-1*i.y),s.addClass("uk-offcanvas-bar-show"),this._initElement(n),s.trigger("show.uk.offcanvas",[n,s]),n.attr("aria-hidden","false")}},hide:function(n){var o=t.$("body"),s=t.$(".uk-offcanvas.uk-active"),a="right"==t.langdirection,r=s.find(".uk-offcanvas-bar:first"),l=function(){o.removeClass("uk-offcanvas-page").css({width:"",height:"","margin-left":"","margin-right":""}),s.removeClass("uk-active"),r.removeClass("uk-offcanvas-bar-show"),e.css("margin-top",""),window.scrollTo(i.x,i.y),r.trigger("hide.uk.offcanvas",[s,r]),s.attr("aria-hidden","true")};s.length&&(t.support.transition&&!n?(o.one(t.support.transition.end,function(){l()}).css(a?"margin-right":"margin-left",""),setTimeout(function(){r.removeClass("uk-offcanvas-bar-show")},0)):l())},_initElement:function(i){i.data("OffcanvasInit")||(i.on("click.uk.offcanvas swipeRight.uk.offcanvas swipeLeft.uk.offcanvas",function(i){var e=t.$(i.target);if(!i.type.match(/swipe/)&&!e.hasClass("uk-offcanvas-close")){if(e.hasClass("uk-offcanvas-bar"))return;if(e.parents(".uk-offcanvas-bar:first").length)return}i.stopImmediatePropagation(),n.hide()}),i.on("click","a[href^='#']",function(){var i=t.$(this),e=i.attr("href");"#"!=e&&(t.$doc.one("hide.uk.offcanvas",function(){var n;try{n=t.$(e)}catch(o){n=""}n.length||(n=t.$('[name="'+e.replace("#","")+'"]')),n.length&&i.attr("data-uk-smooth-scroll")&&t.Utils.scrollToElement?t.Utils.scrollToElement(n,t.Utils.options(i.attr("data-uk-smooth-scroll")||"{}")):window.location.href=e}),n.hide())}),i.data("OffcanvasInit",!0))}};t.component("offcanvasTrigger",{boot:function(){e.on("click.offcanvas.uikit","[data-uk-offcanvas]",function(i){i.preventDefault();var e=t.$(this);if(!e.data("offcanvasTrigger")){{t.offcanvasTrigger(e,t.Utils.options(e.attr("data-uk-offcanvas")))}e.trigger("click")}}),e.on("keydown.uk.offcanvas",function(t){27===t.keyCode&&n.hide()})},init:function(){var i=this;this.options=t.$.extend({target:i.element.is("a")?i.element.attr("href"):!1},this.options),this.on("click",function(t){t.preventDefault(),n.show(i.options.target)})}}),t.offcanvas=n}(UIkit),function(t){"use strict";function i(i,e,n){var o,s=t.$.Deferred(),a=i,r=i;return n[0]===e[0]?(s.resolve(),s.promise()):("object"==typeof i&&(a=i[0],r=i[1]||i[0]),o=function(){e&&e.hide().removeClass("uk-active "+r+" uk-animation-reverse"),n.addClass(a).one(t.support.animation.end,function(){n.removeClass(""+a).css({opacity:"",display:""}),s.resolve(),e&&e.css({opacity:"",display:""})}.bind(this)).show()},n.css("animation-duration",this.options.duration+"ms"),e&&e.length?(e.css("animation-duration",this.options.duration+"ms"),e.css("display","none").addClass(r+" uk-animation-reverse").one(t.support.animation.end,function(){o()}.bind(this)).css("display","")):(n.addClass("uk-active"),o()),s.promise())}var e;t.component("switcher",{defaults:{connect:!1,toggle:">*",active:0,animation:!1,duration:200},animating:!1,boot:function(){t.ready(function(i){t.$("[data-uk-switcher]",i).each(function(){var i=t.$(this);if(!i.data("switcher")){t.switcher(i,t.Utils.options(i.attr("data-uk-switcher")))}})})},init:function(){var i=this;if(this.on("click.uikit.switcher",this.options.toggle,function(t){t.preventDefault(),i.show(this)}),this.options.connect){this.connect=t.$(this.options.connect),this.connect.find(".uk-active").removeClass(".uk-active"),this.connect.length&&(this.connect.children().attr("aria-hidden","true"),this.connect.on("click","[data-uk-switcher-item]",function(e){e.preventDefault();var n=t.$(this).attr("data-uk-switcher-item");if(i.index!=n)switch(n){case"next":case"previous":i.show(i.index+("next"==n?1:-1));break;default:i.show(parseInt(n,10))}}).on("swipeRight swipeLeft",function(t){t.preventDefault(),window.getSelection().toString()||i.show(i.index+("swipeLeft"==t.type?1:-1))}));var e=this.find(this.options.toggle),n=e.filter(".uk-active");if(n.length)this.show(n,!1);else{if(this.options.active===!1)return;n=e.eq(this.options.active),this.show(n.length?n:e.eq(0),!1)}e.not(n).attr("aria-expanded","false"),n.attr("aria-expanded","true"),this.on("changed.uk.dom",function(){i.connect=t.$(i.options.connect)})}},show:function(n,o){if(!this.animating){if(isNaN(n))n=t.$(n);else{var s=this.find(this.options.toggle);n=0>n?s.length-1:n,n=s.eq(s[n]?n:0)}var a=this,s=this.find(this.options.toggle),r=t.$(n),l=e[this.options.animation]||function(t,n){if(!a.options.animation)return e.none.apply(a);var o=a.options.animation.split(",");return 1==o.length&&(o[1]=o[0]),o[0]=o[0].trim(),o[1]=o[1].trim(),i.apply(a,[o,t,n])};o!==!1&&t.support.animation||(l=e.none),r.hasClass("uk-disabled")||(s.attr("aria-expanded","false"),r.attr("aria-expanded","true"),s.filter(".uk-active").removeClass("uk-active"),r.addClass("uk-active"),this.options.connect&&this.connect.length&&(this.index=this.find(this.options.toggle).index(r),-1==this.index&&(this.index=0),this.connect.each(function(){var i=t.$(this),e=t.$(i.children()),n=t.$(e.filter(".uk-active")),o=t.$(e.eq(a.index));a.animating=!0,l.apply(a,[n,o]).then(function(){n.removeClass("uk-active"),o.addClass("uk-active"),n.attr("aria-hidden","true"),o.attr("aria-hidden","false"),t.Utils.checkDisplay(o,!0),a.animating=!1})})),this.trigger("show.uk.switcher",[r]))}}}),e={none:function(){var i=t.$.Deferred();return i.resolve(),i.promise()},fade:function(t,e){return i.apply(this,["uk-animation-fade",t,e])},"slide-bottom":function(t,e){return i.apply(this,["uk-animation-slide-bottom",t,e])},"slide-top":function(t,e){return i.apply(this,["uk-animation-slide-top",t,e])},"slide-vertical":function(t,e){var n=["uk-animation-slide-top","uk-animation-slide-bottom"];return t&&t.index()>e.index()&&n.reverse(),i.apply(this,[n,t,e])},"slide-left":function(t,e){return i.apply(this,["uk-animation-slide-left",t,e])},"slide-right":function(t,e){return i.apply(this,["uk-animation-slide-right",t,e])},"slide-horizontal":function(t,e){var n=["uk-animation-slide-right","uk-animation-slide-left"];return t&&t.index()>e.index()&&n.reverse(),i.apply(this,[n,t,e])},scale:function(t,e){return i.apply(this,["uk-animation-scale-up",t,e])}},t.switcher.animations=e}(UIkit),function(t){"use strict";t.component("tab",{defaults:{target:">li:not(.uk-tab-responsive, .uk-disabled)",connect:!1,active:0,animation:!1,duration:200},boot:function(){t.ready(function(i){t.$("[data-uk-tab]",i).each(function(){var i=t.$(this);if(!i.data("tab")){t.tab(i,t.Utils.options(i.attr("data-uk-tab")))}})})},init:function(){var i=this;this.current=!1,this.on("click.uikit.tab",this.options.target,function(e){if(e.preventDefault(),!i.switcher||!i.switcher.animating){var n=i.find(i.options.target).not(this);n.removeClass("uk-active").blur(),i.trigger("change.uk.tab",[t.$(this).addClass("uk-active"),i.current]),i.current=t.$(this),i.options.connect||(n.attr("aria-expanded","false"),t.$(this).attr("aria-expanded","true"))}}),this.options.connect&&(this.connect=t.$(this.options.connect)),this.responsivetab=t.$('<li class="uk-tab-responsive uk-active"><a></a></li>').append('<div class="uk-dropdown uk-dropdown-small"><ul class="uk-nav uk-nav-dropdown"></ul><div>'),this.responsivetab.dropdown=this.responsivetab.find(".uk-dropdown"),this.responsivetab.lst=this.responsivetab.dropdown.find("ul"),this.responsivetab.caption=this.responsivetab.find("a:first"),this.element.hasClass("uk-tab-bottom")&&this.responsivetab.dropdown.addClass("uk-dropdown-up"),this.responsivetab.lst.on("click.uikit.tab","a",function(e){e.preventDefault(),e.stopPropagation();var n=t.$(this);i.element.children("li:not(.uk-tab-responsive)").eq(n.data("index")).trigger("click")}),this.on("show.uk.switcher change.uk.tab",function(t,e){i.responsivetab.caption.html(e.text())}),this.element.append(this.responsivetab),this.options.connect&&(this.switcher=t.switcher(this.element,{toggle:">li:not(.uk-tab-responsive)",connect:this.options.connect,active:this.options.active,animation:this.options.animation,duration:this.options.duration})),t.dropdown(this.responsivetab,{mode:"click"}),i.trigger("change.uk.tab",[this.element.find(this.options.target).not(".uk-tab-responsive").filter(".uk-active")]),this.check(),t.$win.on("resize orientationchange",t.Utils.debounce(function(){i.element.is(":visible")&&i.check()},100)),this.on("display.uk.check",function(){i.element.is(":visible")&&i.check()})},check:function(){var i=this.element.children("li:not(.uk-tab-responsive)").removeClass("uk-hidden");if(!i.length)return this.responsivetab.addClass("uk-hidden"),void 0;var e,n,o,s=i.eq(0).offset().top+Math.ceil(i.eq(0).height()/2),a=!1;if(this.responsivetab.lst.empty(),i.each(function(){t.$(this).offset().top>s&&(a=!0)}),a)for(var r=0;r<i.length;r++)e=t.$(i.eq(r)),n=e.find("a"),"none"==e.css("float")||e.attr("uk-dropdown")||(e.hasClass("uk-disabled")||(o=e[0].outerHTML.replace("<a ",'<a data-index="'+r+'" '),this.responsivetab.lst.append(o)),e.addClass("uk-hidden"));this.responsivetab[this.responsivetab.lst.children("li").length?"removeClass":"addClass"]("uk-hidden")}})}(UIkit),function(t){"use strict";t.component("cover",{defaults:{automute:!0},boot:function(){t.ready(function(i){t.$("[data-uk-cover]",i).each(function(){var i=t.$(this);if(!i.data("cover")){t.cover(i,t.Utils.options(i.attr("data-uk-cover")))}})})},init:function(){if(this.parent=this.element.parent(),t.$win.on("load resize orientationchange",t.Utils.debounce(function(){this.check()}.bind(this),100)),this.on("display.uk.check",function(){this.element.is(":visible")&&this.check()}.bind(this)),this.check(),this.element.is("iframe")&&this.options.automute){var i=this.element.attr("src");this.element.attr("src","").on("load",function(){this.contentWindow.postMessage('{ "event": "command", "func": "mute", "method":"setVolume", "value":0}',"*")}).attr("src",[i,i.indexOf("?")>-1?"&":"?","enablejsapi=1&api=1"].join(""))}},check:function(){this.element.css({width:"",height:""}),this.dimension={w:this.element.width(),h:this.element.height()},this.element.attr("width")&&!isNaN(this.element.attr("width"))&&(this.dimension.w=this.element.attr("width")),this.element.attr("height")&&!isNaN(this.element.attr("height"))&&(this.dimension.h=this.element.attr("height")),this.ratio=this.dimension.w/this.dimension.h;var t,i,e=this.parent.width(),n=this.parent.height();e/this.ratio<n?(t=Math.ceil(n*this.ratio),i=n):(t=e,i=Math.ceil(e/this.ratio)),this.element.css({width:t,height:i})}})}(UIkit); \ No newline at end of file diff --git a/script.php b/script.php new file mode 100644 index 00000000..35fe49e7 --- /dev/null +++ b/script.php @@ -0,0 +1,737 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage script.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +JHTML::_('behavior.modal'); +jimport('joomla.installer.installer'); +jimport('joomla.installer.helper'); + +/** + * Script File of Sermondistributor Component + */ +class com_sermondistributorInstallerScript +{ + /** + * method to install the component + * + * + * @return void + */ + function install($parent) + { + + } + + /** + * method to uninstall the component + * + * @return void + */ + function uninstall($parent) + { + // [4209] Get Application object + $app = JFactory::getApplication(); + + // [4211] Get The Database object + $db = JFactory::getDbo(); + + // [4220] Create a new query object. + $query = $db->getQuery(true); + // [4222] Select id from content type table + $query->select($db->quoteName('type_id')); + $query->from($db->quoteName('#__content_types')); + // [4225] Where Preacher alias is found + $query->where( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.preacher') ); + $db->setQuery($query); + // [4228] Execute query to see if alias is found + $db->execute(); + $preacher_found = $db->getNumRows(); + // [4231] Now check if there were any rows + if ($preacher_found) + { + // [4234] Since there are load the needed preacher type ids + $preacher_ids = $db->loadColumn(); + // [4238] Remove Preacher from the content type table + $preacher_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.preacher') ); + // [4240] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__content_types')); + $query->where($preacher_condition); + $db->setQuery($query); + // [4245] Execute the query to remove Preacher items + $preacher_done = $db->execute(); + if ($preacher_done); + { + // [4249] If succesfully remove Preacher add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.preacher) type alias was removed from the <b>#__content_type</b> table')); + } + + // [4255] Remove Preacher items from the contentitem tag map table + $preacher_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.preacher') ); + // [4257] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__contentitem_tag_map')); + $query->where($preacher_condition); + $db->setQuery($query); + // [4262] Execute the query to remove Preacher items + $preacher_done = $db->execute(); + if ($preacher_done); + { + // [4266] If succesfully remove Preacher add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.preacher) type alias was removed from the <b>#__contentitem_tag_map</b> table')); + } + + // [4272] Remove Preacher items from the ucm content table + $preacher_condition = array( $db->quoteName('core_type_alias') . ' = ' . $db->quote('com_sermondistributor.preacher') ); + // [4274] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_content')); + $query->where($preacher_condition); + $db->setQuery($query); + // [4279] Execute the query to remove Preacher items + $preacher_done = $db->execute(); + if ($preacher_done); + { + // [4283] If succesfully remove Preacher add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.preacher) type alias was removed from the <b>#__ucm_content</b> table')); + } + + // [4289] Make sure that all the Preacher items are cleared from DB + foreach ($preacher_ids as $preacher_id) + { + // [4294] Remove Preacher items from the ucm base table + $preacher_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $preacher_id); + // [4296] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_base')); + $query->where($preacher_condition); + $db->setQuery($query); + // [4301] Execute the query to remove Preacher items + $db->execute(); + + // [4305] Remove Preacher items from the ucm history table + $preacher_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $preacher_id); + // [4307] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_history')); + $query->where($preacher_condition); + $db->setQuery($query); + // [4312] Execute the query to remove Preacher items + $db->execute(); + } + } + + // [4220] Create a new query object. + $query = $db->getQuery(true); + // [4222] Select id from content type table + $query->select($db->quoteName('type_id')); + $query->from($db->quoteName('#__content_types')); + // [4225] Where Sermon alias is found + $query->where( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.sermon') ); + $db->setQuery($query); + // [4228] Execute query to see if alias is found + $db->execute(); + $sermon_found = $db->getNumRows(); + // [4231] Now check if there were any rows + if ($sermon_found) + { + // [4234] Since there are load the needed sermon type ids + $sermon_ids = $db->loadColumn(); + // [4238] Remove Sermon from the content type table + $sermon_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.sermon') ); + // [4240] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__content_types')); + $query->where($sermon_condition); + $db->setQuery($query); + // [4245] Execute the query to remove Sermon items + $sermon_done = $db->execute(); + if ($sermon_done); + { + // [4249] If succesfully remove Sermon add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.sermon) type alias was removed from the <b>#__content_type</b> table')); + } + + // [4255] Remove Sermon items from the contentitem tag map table + $sermon_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.sermon') ); + // [4257] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__contentitem_tag_map')); + $query->where($sermon_condition); + $db->setQuery($query); + // [4262] Execute the query to remove Sermon items + $sermon_done = $db->execute(); + if ($sermon_done); + { + // [4266] If succesfully remove Sermon add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.sermon) type alias was removed from the <b>#__contentitem_tag_map</b> table')); + } + + // [4272] Remove Sermon items from the ucm content table + $sermon_condition = array( $db->quoteName('core_type_alias') . ' = ' . $db->quote('com_sermondistributor.sermon') ); + // [4274] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_content')); + $query->where($sermon_condition); + $db->setQuery($query); + // [4279] Execute the query to remove Sermon items + $sermon_done = $db->execute(); + if ($sermon_done); + { + // [4283] If succesfully remove Sermon add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.sermon) type alias was removed from the <b>#__ucm_content</b> table')); + } + + // [4289] Make sure that all the Sermon items are cleared from DB + foreach ($sermon_ids as $sermon_id) + { + // [4294] Remove Sermon items from the ucm base table + $sermon_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $sermon_id); + // [4296] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_base')); + $query->where($sermon_condition); + $db->setQuery($query); + // [4301] Execute the query to remove Sermon items + $db->execute(); + + // [4305] Remove Sermon items from the ucm history table + $sermon_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $sermon_id); + // [4307] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_history')); + $query->where($sermon_condition); + $db->setQuery($query); + // [4312] Execute the query to remove Sermon items + $db->execute(); + } + } + + // [4220] Create a new query object. + $query = $db->getQuery(true); + // [4222] Select id from content type table + $query->select($db->quoteName('type_id')); + $query->from($db->quoteName('#__content_types')); + // [4225] Where Sermon catid alias is found + $query->where( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.sermons.category') ); + $db->setQuery($query); + // [4228] Execute query to see if alias is found + $db->execute(); + $sermon_catid_found = $db->getNumRows(); + // [4231] Now check if there were any rows + if ($sermon_catid_found) + { + // [4234] Since there are load the needed sermon_catid type ids + $sermon_catid_ids = $db->loadColumn(); + // [4238] Remove Sermon catid from the content type table + $sermon_catid_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.sermons.category') ); + // [4240] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__content_types')); + $query->where($sermon_catid_condition); + $db->setQuery($query); + // [4245] Execute the query to remove Sermon catid items + $sermon_catid_done = $db->execute(); + if ($sermon_catid_done); + { + // [4249] If succesfully remove Sermon catid add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.sermons.category) type alias was removed from the <b>#__content_type</b> table')); + } + + // [4255] Remove Sermon catid items from the contentitem tag map table + $sermon_catid_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.sermons.category') ); + // [4257] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__contentitem_tag_map')); + $query->where($sermon_catid_condition); + $db->setQuery($query); + // [4262] Execute the query to remove Sermon catid items + $sermon_catid_done = $db->execute(); + if ($sermon_catid_done); + { + // [4266] If succesfully remove Sermon catid add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.sermons.category) type alias was removed from the <b>#__contentitem_tag_map</b> table')); + } + + // [4272] Remove Sermon catid items from the ucm content table + $sermon_catid_condition = array( $db->quoteName('core_type_alias') . ' = ' . $db->quote('com_sermondistributor.sermons.category') ); + // [4274] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_content')); + $query->where($sermon_catid_condition); + $db->setQuery($query); + // [4279] Execute the query to remove Sermon catid items + $sermon_catid_done = $db->execute(); + if ($sermon_catid_done); + { + // [4283] If succesfully remove Sermon catid add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.sermons.category) type alias was removed from the <b>#__ucm_content</b> table')); + } + + // [4289] Make sure that all the Sermon catid items are cleared from DB + foreach ($sermon_catid_ids as $sermon_catid_id) + { + // [4294] Remove Sermon catid items from the ucm base table + $sermon_catid_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $sermon_catid_id); + // [4296] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_base')); + $query->where($sermon_catid_condition); + $db->setQuery($query); + // [4301] Execute the query to remove Sermon catid items + $db->execute(); + + // [4305] Remove Sermon catid items from the ucm history table + $sermon_catid_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $sermon_catid_id); + // [4307] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_history')); + $query->where($sermon_catid_condition); + $db->setQuery($query); + // [4312] Execute the query to remove Sermon catid items + $db->execute(); + } + } + + // [4220] Create a new query object. + $query = $db->getQuery(true); + // [4222] Select id from content type table + $query->select($db->quoteName('type_id')); + $query->from($db->quoteName('#__content_types')); + // [4225] Where Series alias is found + $query->where( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.series') ); + $db->setQuery($query); + // [4228] Execute query to see if alias is found + $db->execute(); + $series_found = $db->getNumRows(); + // [4231] Now check if there were any rows + if ($series_found) + { + // [4234] Since there are load the needed series type ids + $series_ids = $db->loadColumn(); + // [4238] Remove Series from the content type table + $series_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.series') ); + // [4240] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__content_types')); + $query->where($series_condition); + $db->setQuery($query); + // [4245] Execute the query to remove Series items + $series_done = $db->execute(); + if ($series_done); + { + // [4249] If succesfully remove Series add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.series) type alias was removed from the <b>#__content_type</b> table')); + } + + // [4255] Remove Series items from the contentitem tag map table + $series_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.series') ); + // [4257] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__contentitem_tag_map')); + $query->where($series_condition); + $db->setQuery($query); + // [4262] Execute the query to remove Series items + $series_done = $db->execute(); + if ($series_done); + { + // [4266] If succesfully remove Series add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.series) type alias was removed from the <b>#__contentitem_tag_map</b> table')); + } + + // [4272] Remove Series items from the ucm content table + $series_condition = array( $db->quoteName('core_type_alias') . ' = ' . $db->quote('com_sermondistributor.series') ); + // [4274] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_content')); + $query->where($series_condition); + $db->setQuery($query); + // [4279] Execute the query to remove Series items + $series_done = $db->execute(); + if ($series_done); + { + // [4283] If succesfully remove Series add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.series) type alias was removed from the <b>#__ucm_content</b> table')); + } + + // [4289] Make sure that all the Series items are cleared from DB + foreach ($series_ids as $series_id) + { + // [4294] Remove Series items from the ucm base table + $series_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $series_id); + // [4296] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_base')); + $query->where($series_condition); + $db->setQuery($query); + // [4301] Execute the query to remove Series items + $db->execute(); + + // [4305] Remove Series items from the ucm history table + $series_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $series_id); + // [4307] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_history')); + $query->where($series_condition); + $db->setQuery($query); + // [4312] Execute the query to remove Series items + $db->execute(); + } + } + + // [4220] Create a new query object. + $query = $db->getQuery(true); + // [4222] Select id from content type table + $query->select($db->quoteName('type_id')); + $query->from($db->quoteName('#__content_types')); + // [4225] Where Statistic alias is found + $query->where( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.statistic') ); + $db->setQuery($query); + // [4228] Execute query to see if alias is found + $db->execute(); + $statistic_found = $db->getNumRows(); + // [4231] Now check if there were any rows + if ($statistic_found) + { + // [4234] Since there are load the needed statistic type ids + $statistic_ids = $db->loadColumn(); + // [4238] Remove Statistic from the content type table + $statistic_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.statistic') ); + // [4240] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__content_types')); + $query->where($statistic_condition); + $db->setQuery($query); + // [4245] Execute the query to remove Statistic items + $statistic_done = $db->execute(); + if ($statistic_done); + { + // [4249] If succesfully remove Statistic add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.statistic) type alias was removed from the <b>#__content_type</b> table')); + } + + // [4255] Remove Statistic items from the contentitem tag map table + $statistic_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.statistic') ); + // [4257] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__contentitem_tag_map')); + $query->where($statistic_condition); + $db->setQuery($query); + // [4262] Execute the query to remove Statistic items + $statistic_done = $db->execute(); + if ($statistic_done); + { + // [4266] If succesfully remove Statistic add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.statistic) type alias was removed from the <b>#__contentitem_tag_map</b> table')); + } + + // [4272] Remove Statistic items from the ucm content table + $statistic_condition = array( $db->quoteName('core_type_alias') . ' = ' . $db->quote('com_sermondistributor.statistic') ); + // [4274] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_content')); + $query->where($statistic_condition); + $db->setQuery($query); + // [4279] Execute the query to remove Statistic items + $statistic_done = $db->execute(); + if ($statistic_done); + { + // [4283] If succesfully remove Statistic add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.statistic) type alias was removed from the <b>#__ucm_content</b> table')); + } + + // [4289] Make sure that all the Statistic items are cleared from DB + foreach ($statistic_ids as $statistic_id) + { + // [4294] Remove Statistic items from the ucm base table + $statistic_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $statistic_id); + // [4296] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_base')); + $query->where($statistic_condition); + $db->setQuery($query); + // [4301] Execute the query to remove Statistic items + $db->execute(); + + // [4305] Remove Statistic items from the ucm history table + $statistic_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $statistic_id); + // [4307] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_history')); + $query->where($statistic_condition); + $db->setQuery($query); + // [4312] Execute the query to remove Statistic items + $db->execute(); + } + } + + // [4220] Create a new query object. + $query = $db->getQuery(true); + // [4222] Select id from content type table + $query->select($db->quoteName('type_id')); + $query->from($db->quoteName('#__content_types')); + // [4225] Where Help_document alias is found + $query->where( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.help_document') ); + $db->setQuery($query); + // [4228] Execute query to see if alias is found + $db->execute(); + $help_document_found = $db->getNumRows(); + // [4231] Now check if there were any rows + if ($help_document_found) + { + // [4234] Since there are load the needed help_document type ids + $help_document_ids = $db->loadColumn(); + // [4238] Remove Help_document from the content type table + $help_document_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.help_document') ); + // [4240] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__content_types')); + $query->where($help_document_condition); + $db->setQuery($query); + // [4245] Execute the query to remove Help_document items + $help_document_done = $db->execute(); + if ($help_document_done); + { + // [4249] If succesfully remove Help_document add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.help_document) type alias was removed from the <b>#__content_type</b> table')); + } + + // [4255] Remove Help_document items from the contentitem tag map table + $help_document_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.help_document') ); + // [4257] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__contentitem_tag_map')); + $query->where($help_document_condition); + $db->setQuery($query); + // [4262] Execute the query to remove Help_document items + $help_document_done = $db->execute(); + if ($help_document_done); + { + // [4266] If succesfully remove Help_document add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.help_document) type alias was removed from the <b>#__contentitem_tag_map</b> table')); + } + + // [4272] Remove Help_document items from the ucm content table + $help_document_condition = array( $db->quoteName('core_type_alias') . ' = ' . $db->quote('com_sermondistributor.help_document') ); + // [4274] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_content')); + $query->where($help_document_condition); + $db->setQuery($query); + // [4279] Execute the query to remove Help_document items + $help_document_done = $db->execute(); + if ($help_document_done); + { + // [4283] If succesfully remove Help_document add queued success message. + $app->enqueueMessage(JText::_('The (com_sermondistributor.help_document) type alias was removed from the <b>#__ucm_content</b> table')); + } + + // [4289] Make sure that all the Help_document items are cleared from DB + foreach ($help_document_ids as $help_document_id) + { + // [4294] Remove Help_document items from the ucm base table + $help_document_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $help_document_id); + // [4296] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_base')); + $query->where($help_document_condition); + $db->setQuery($query); + // [4301] Execute the query to remove Help_document items + $db->execute(); + + // [4305] Remove Help_document items from the ucm history table + $help_document_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $help_document_id); + // [4307] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__ucm_history')); + $query->where($help_document_condition); + $db->setQuery($query); + // [4312] Execute the query to remove Help_document items + $db->execute(); + } + } + + // [4320] If All related items was removed queued success message. + $app->enqueueMessage(JText::_('All related items was removed from the <b>#__ucm_base</b> table')); + $app->enqueueMessage(JText::_('All related items was removed from the <b>#__ucm_history</b> table')); + + // [4325] Remove sermondistributor assets from the assets table + $sermondistributor_condition = array( $db->quoteName('name') . ' LIKE ' . $db->quote('com_sermondistributor%') ); + + // [4327] Create a new query object. + $query = $db->getQuery(true); + $query->delete($db->quoteName('#__assets')); + $query->where($sermondistributor_condition); + $db->setQuery($query); + $help_document_done = $db->execute(); + if ($help_document_done); + { + // [4335] If succesfully remove sermondistributor add queued success message. + $app->enqueueMessage(JText::_('All related items was removed from the <b>#__assets</b> table')); + } + + // little notice as after service, in case of bad experience with component. + echo '<h2>Did something go wrong? Are you disappointed?</h2> + <p>Please let me know at <a href="mailto:llewellyn@vdm.io">llewellyn@vdm.io</a>. + <br />We at Vast Development Method are committed to building extensions that performs proficiently! You can help us, really! + <br />Send me your thoughts on improvements that is needed, trust me, I will be very grateful! + <br />Visit us at <a href="https://www.vdm.io/" target="_blank">https://www.vdm.io/</a> today!</p>'; + } + + /** + * method to update the component + * + * @return void + */ + function update($parent) + { + + } + + /** + * method to run before an install/update/uninstall method + * + * @return void + */ + function preflight($type, $parent) + { + if ($type == 'uninstall') + { + return true; + } + + $app = JFactory::getApplication(); + $jversion = new JVersion(); + if (!$jversion->isCompatible('3.4.1')) + { + $app->enqueueMessage('Please upgrade to at least Joomla! 3.4.1 before continuing!', 'error'); + return false; + } + } + + /** + * method to run after an install/update/uninstall method + * + * @return void + */ + function postflight($type, $parent) + { + //set the default component settings + if ($type == 'install') + { + + // [4380] Get The Database object + + $db = JFactory::getDbo(); + + // [4387] Create the preacher content type object. + $preacher = new stdClass(); + $preacher->type_title = 'Sermondistributor Preacher'; + $preacher->type_alias = 'com_sermondistributor.preacher'; + $preacher->table = '{"special": {"dbtable": "#__sermondistributor_preacher","key": "id","type": "Preacher","prefix": "sermondistributorTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}'; + $preacher->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "description","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "metadata","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "metakey","core_metadesc": "metadesc","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","alias":"alias","email":"email","website":"website","icon":"icon"}}'; + $preacher->router = 'SermondistributorHelperRoute::getPreacherRoute'; + $preacher->content_history_options = '{"formFile": "administrator/components/com_sermondistributor/models/forms/preacher.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'; + + // [4393] Insert the object into the content types table. + $preacherInserted = $db->insertObject('#__content_types', $preacher); + + // [4387] Create the sermon content type object. + $sermon = new stdClass(); + $sermon->type_title = 'Sermondistributor Sermon'; + $sermon->type_alias = 'com_sermondistributor.sermon'; + $sermon->table = '{"special": {"dbtable": "#__sermondistributor_sermon","key": "id","type": "Sermon","prefix": "sermondistributorTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}'; + $sermon->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "description","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "metadata","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "metakey","core_metadesc": "metadesc","core_catid": "catid","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","preacher":"preacher","series":"series","short_description":"short_description","link_type":"link_type","source":"source","icon":"icon","tags":"tags","local_files":"local_files","description":"description","alias":"alias","not_required":"not_required","manual_files":"manual_files","scripture":"scripture","url":"url","build":"build","auto_sermons":"auto_sermons"}}'; + $sermon->router = 'SermondistributorHelperRoute::getSermonRoute'; + $sermon->content_history_options = '{"formFile": "administrator/components/com_sermondistributor/models/forms/sermon.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required","auto_sermons"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","preacher","series","catid","link_type","source","not_required","build"],"displayLookup": [{"sourceColumn": "catid","targetTable": "#__categories","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "preacher","targetTable": "#__sermondistributor_preacher","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "series","targetTable": "#__sermondistributor_series","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "local_files","targetTable": "","targetColumn": "","displayColumn": ""},{"sourceColumn": "manual_files","targetTable": "","targetColumn": "","displayColumn": ""}]}'; + + // [4393] Insert the object into the content types table. + $sermonInserted = $db->insertObject('#__content_types', $sermon); + + // [4387] Create the sermon catagory content type object. + $sermon_catagory = new stdClass(); + $sermon_catagory->type_title = 'Sermondistributor Sermon Catid'; + $sermon_catagory->type_alias = 'com_sermondistributor.sermons.category'; + $sermon_catagory->table = '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'; + $sermon_catagory->field_mappings = '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}'; + $sermon_catagory->router = 'SermondistributorHelperRoute::getCategoryRoute'; + $sermon_catagory->content_history_options = '{"formFile":"administrator\/components\/com_categories\/models\/forms\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'; + + // [4393] Insert the object into the content types table. + $sermon_catagoryInserted = $db->insertObject('#__content_types', $sermon_catagory); + + // [4387] Create the series content type object. + $series = new stdClass(); + $series->type_title = 'Sermondistributor Series'; + $series->type_alias = 'com_sermondistributor.series'; + $series->table = '{"special": {"dbtable": "#__sermondistributor_series","key": "id","type": "Series","prefix": "sermondistributorTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}'; + $series->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "description","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "metadata","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "metakey","core_metadesc": "metadesc","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","alias":"alias","icon":"icon","scripture":"scripture"}}'; + $series->router = 'SermondistributorHelperRoute::getSeriesRoute'; + $series->content_history_options = '{"formFile": "administrator/components/com_sermondistributor/models/forms/series.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'; + + // [4393] Insert the object into the content types table. + $seriesInserted = $db->insertObject('#__content_types', $series); + + // [4387] Create the statistic content type object. + $statistic = new stdClass(); + $statistic->type_title = 'Sermondistributor Statistic'; + $statistic->type_alias = 'com_sermondistributor.statistic'; + $statistic->table = '{"special": {"dbtable": "#__sermondistributor_statistic","key": "id","type": "Statistic","prefix": "sermondistributorTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}'; + $statistic->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "filename","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "metadata","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "metakey","core_metadesc": "metadesc","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"filename":"filename","sermon":"sermon","preacher":"preacher","series":"series","counter":"counter"}}'; + $statistic->router = 'SermondistributorHelperRoute::getStatisticRoute'; + $statistic->content_history_options = '{"formFile": "administrator/components/com_sermondistributor/models/forms/statistic.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","sermon","preacher","series","counter"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "sermon","targetTable": "#__sermondistributor_sermon","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "preacher","targetTable": "#__sermondistributor_preacher","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "series","targetTable": "#__sermondistributor_series","targetColumn": "id","displayColumn": "name"}]}'; + + // [4393] Insert the object into the content types table. + $statisticInserted = $db->insertObject('#__content_types', $statistic); + + // [4387] Create the help_document content type object. + $help_document = new stdClass(); + $help_document->type_title = 'Sermondistributor Help_document'; + $help_document->type_alias = 'com_sermondistributor.help_document'; + $help_document->table = '{"special": {"dbtable": "#__sermondistributor_help_document","key": "id","type": "Help_document","prefix": "sermondistributorTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}'; + $help_document->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "title","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "content","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "metadata","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "metakey","core_metadesc": "metadesc","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"title":"title","type":"type","groups":"groups","location":"location","admin_view":"admin_view","site_view":"site_view","target":"target","content":"content","alias":"alias","article":"article","url":"url","not_required":"not_required"}}'; + $help_document->router = 'SermondistributorHelperRoute::getHelp_documentRoute'; + $help_document->content_history_options = '{"formFile": "administrator/components/com_sermondistributor/models/forms/help_document.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","type","location","target","article","not_required"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "article","targetTable": "#__content","targetColumn": "id","displayColumn": "title"}]}'; + + // [4393] Insert the object into the content types table. + $help_documentInserted = $db->insertObject('#__content_types', $help_document); + + + // [4405] Install the global extenstion params. + $query = $db->getQuery(true); + + // [4413] Field to update. + $fields = array( + $db->quoteName('params') . ' = ' . $db->quote('{"autorName":"Llewellyn van der Merwe","autorEmail":"llewellyn@vdm.io","add_to_dropbox":"0","dropbox_filetypes":"zero","manual_link_update_method":"1","manual_dropbox_timer":"60","auto_link_update_method":"1","auto_dropbox_timer":"60","preacher_state":"1","series_state":"1","sermon_state":"1","auto_link_type":"1","link_encryption":")$KCGiB3BEfDf6kzEWrFnHex5uTJxlQG","preachers_display":"2","preachers_list_style":"2","preachers_table_color":"0","preachers_icon":"1","preachers_desc":"1","preachers_sermon_count":"1","preachers_hits":"1","preachers_website":"1","preachers_email":"1","preacher_request_id":"zero","preacher_display":"3","preacher_box_contrast":"1","preacher_list_style":"3","preacher_icon":"1","preacher_desc":"1","preacher_sermon_count":"1","preacher_hits":"1","preacher_email":"1","preacher_website":"1","preacher_sermons_display":"2","preacher_sermons_list_style":"2","preacher_sermons_table_color":"0","preacher_sermons_icon":"1","preacher_sermons_desc":"1","preacher_sermons_series":"1","preacher_sermons_category":"1","preacher_sermons_download_counter":"1","preacher_sermons_hits":"1","preacher_sermons_downloads":"1","preacher_sermons_open":"1","categories_display":"2","categories_list_style":"2","categories_table_color":"0","categories_icon":"1","categories_desc":"1","categories_sermon_count":"1","categories_hits":"1","category_display":"3","category_box_contrast":"1","category_list_style":"3","category_icon":"1","category_desc":"1","category_sermon_count":"1","category_hits":"1","category_sermons_display":"2","category_sermons_list_style":"1","category_sermons_table_color":"1","category_sermons_icon":"1","category_sermons_desc":"1","category_sermons_preacher":"1","category_sermons_series":"1","category_sermons_download_counter":"1","category_sermons_hits":"1","category_sermons_downloads":"1","category_sermons_open":"1","list_series_display":"2","list_series_list_style":"2","list_series_table_color":"0","list_series_icon":"1","list_series_desc":"1","list_series_sermon_count":"1","list_series_hits":"1","series_request_id":"zero","series_display":"3","series_box_contrast":"1","series_list_style":"3","series_icon":"1","series_desc":"1","series_sermon_count":"1","series_hits":"1","series_sermons_display":"2","series_sermons_list_style":"1","series_sermons_table_color":"1","series_sermons_icon":"1","series_sermons_desc":"1","series_sermons_preacher":"1","series_sermons_category":"1","series_sermons_download_counter":"1","series_sermons_hits":"1","series_sermons_downloads":"1","series_sermons_open":"1","sermon_display":"1","sermon_box_contrast":"one","sermon_list_style":"1","sermon_icon":"1","sermon_desc":"1","sermon_preacher":"1","sermon_series":"1","sermon_series":"1","sermon_category":"1","sermon_download_counter":"1","sermon_hits":"1","sermon_downloads":"1","check_in":"-1 day","save_history":"1","history_limit":"10","uikit_load":"1","uikit_min":"","uikit_style":""}'), + ); + + // [4417] Condition. + $conditions = array( + $db->quoteName('element') . ' = ' . $db->quote('com_sermondistributor') + ); + + $query->update($db->quoteName('#__extensions'))->set($fields)->where($conditions); + $db->setQuery($query); + $allDone = $db->execute(); + } + } +} diff --git a/sermondistributor.xml b/sermondistributor.xml new file mode 100644 index 00000000..3728cce4 --- /dev/null +++ b/sermondistributor.xml @@ -0,0 +1,112 @@ +<?xml version="1.0" encoding="utf-8"?> +<extension type="component" version="3.2" method="upgrade"> + <name>COM_SERMONDISTRIBUTOR</name> + <creationDate>22nd October, 2015</creationDate> + <author>Llewellyn van der Merwe</author> + <authorEmail>llewellyn@vdm.io</authorEmail> + <authorUrl>https://www.vdm.io/</authorUrl> + <copyright>Copyright (C) 2015. All Rights Reserved</copyright> + <license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license> + <version>1.2.9</version> + <description><![CDATA[ + <h1>Sermon Distributor (v.1.2.9)</h1> + <div style="clear: both;"></div> + <p>Distributor is a highly advanced sermon distributor that runs on the [Joomla] (http://www.joomla.org) framework. You can link a shared folder from Dropbox to the component and use Dropbox as your file host, not to mention the advanced auto builder that gives you the ability to simply load sermons to your website by only adding them to Dropbox. + +The best way to see all your options is to install this component on you Joomla website and test all features yourself. Here is a [direct download link] (https://github.com/SermonDistributor/Joomla-3-Component/archive/master.zip) + +### Example Website, That Has Over 6000 Audio Files + +[LoudVoice.org] (http://www.loudvoice.org) + +### Some Video Demonstrations + ++ [Setup overview] (https://youtu.be/yMPp1Cp3W_0?t=20m) ++ [Setup Dropbox] (https://youtu.be/btpKFDk0-dI) ++ [Component Build] (https://youtu.be/yMPp1Cp3W_0)</p> + <p>Created by <a href="https://www.vdm.io/" target="_blank">Llewellyn van der Merwe</a> + ]]></description> + + <!-- Runs on install; New in Joomla 1.5 --> + <install> + <sql> + <file driver="mysql" charset="utf8">sql/install.mysql.utf8.sql</file> + </sql> + </install> + + <!-- Runs on uninstall; New in Joomla 1.5 --> + <uninstall> + <sql> + <file driver="mysql" charset="utf8">sql/uninstall.mysql.utf8.sql</file> + </sql> + </uninstall> + + <!-- Runs on install/uninstall/update; New in Joomla 2.5 --> + <scriptfile>script.php</scriptfile> + + <media destination="com_sermondistributor" folder="media"> + <filename>index.html</filename> + <folder>js</folder> + <folder>css</folder> + <folder>images</folder> + <folder>soundmanager</folder> + <folder>uikit</folder> + <folder>footable</folder> + </media> + + <!-- Update Schema; New in Joomla 2.5 --> + <update> + <schemas> + <schemapath type="mysql">sql/updates/mysql/</schemapath> + </schemas> + </update> + + <files folder="site"> + <filename>controller.php</filename> + <filename>index.html</filename> + <filename>router.php</filename> + <filename>sermondistributor.php</filename> + <folder>assets</folder> + <folder>helpers</folder> + <folder>controllers</folder> + <folder>models</folder> + <folder>views</folder> + <folder>layouts</folder> + </files> + + <languages folder="site"> + <language tag="en-GB">language/en-GB/en-GB.com_sermondistributor.ini</language> + <language tag="en-GB">language/en-GB/en-GB.com_sermondistributor.sys.ini</language> + </languages> + + <administration> + <menu>COM_SERMONDISTRIBUTOR_MENU</menu> + <submenu> + <!-- Instead of link you can specify individual link attributes --> + <menu option="com_sermondistributor" view="preachers">COM_SERMONDISTRIBUTOR_MENU_PREACHERS</menu> + <menu option="com_sermondistributor" view="sermons">COM_SERMONDISTRIBUTOR_MENU_SERMONS</menu> + <menu option="com_sermondistributor" view="series_list">COM_SERMONDISTRIBUTOR_MENU_SERIES_LIST</menu> + </submenu> + <files folder="admin"> + <filename>access.xml</filename> + <filename>config.xml</filename> + <filename>controller.php</filename> + <filename>index.html</filename> + <filename>sermondistributor.php</filename> + <folder>assets</folder> + <folder>controllers</folder> + <folder>helpers</folder> + <folder>models</folder> + <folder>sql</folder> + <folder>tables</folder> + <folder>views</folder> + <folder>layouts</folder> + </files> + + <languages folder="admin"> + <language tag="en-GB">language/en-GB/en-GB.com_sermondistributor.ini</language> + <language tag="en-GB">language/en-GB/en-GB.com_sermondistributor.sys.ini</language> + </languages> + + </administration> +</extension> \ No newline at end of file diff --git a/site/assets/css/categories.css b/site/assets/css/categories.css new file mode 100644 index 00000000..5d881cd8 --- /dev/null +++ b/site/assets/css/categories.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage categories.css + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/site/assets/css/category.css b/site/assets/css/category.css new file mode 100644 index 00000000..ada6388c --- /dev/null +++ b/site/assets/css/category.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage category.css + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/site/assets/css/index.html b/site/assets/css/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/assets/css/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/assets/css/preacher.css b/site/assets/css/preacher.css new file mode 100644 index 00000000..e1269cc8 --- /dev/null +++ b/site/assets/css/preacher.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage preacher.css + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/site/assets/css/preachers.css b/site/assets/css/preachers.css new file mode 100644 index 00000000..7fa8f104 --- /dev/null +++ b/site/assets/css/preachers.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage preachers.css + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/site/assets/css/series.css b/site/assets/css/series.css new file mode 100644 index 00000000..41600fb4 --- /dev/null +++ b/site/assets/css/series.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage series.css + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/site/assets/css/serieslist.css b/site/assets/css/serieslist.css new file mode 100644 index 00000000..ce5e78aa --- /dev/null +++ b/site/assets/css/serieslist.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage serieslist.css + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/site/assets/css/sermon.css b/site/assets/css/sermon.css new file mode 100644 index 00000000..8844fbdc --- /dev/null +++ b/site/assets/css/sermon.css @@ -0,0 +1,22 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermon.css + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/site/assets/css/site.css b/site/assets/css/site.css new file mode 100644 index 00000000..9c3493ce --- /dev/null +++ b/site/assets/css/site.css @@ -0,0 +1,24 @@ +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage site.css + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ +.no-click { + pointer-events: none; +} + diff --git a/site/assets/images/index.html b/site/assets/images/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/assets/images/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/assets/index.html b/site/assets/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/assets/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/assets/js/index.html b/site/assets/js/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/assets/js/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/assets/js/site.js b/site/assets/js/site.js new file mode 100644 index 00000000..e69de29b diff --git a/site/controller.php b/site/controller.php new file mode 100644 index 00000000..d588547b --- /dev/null +++ b/site/controller.php @@ -0,0 +1,96 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage controller.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controller library +jimport('joomla.application.component.controller'); + +/** + * Sermondistributor Component Controller + */ +class SermondistributorController extends JControllerLegacy +{ + /** + * display task + * + * @return void + */ + function display($cachable = false, $urlparams = false) + { + // set default view if not set + $view = $this->input->getCmd('view', 'preachers'); + $isEdit = $this->checkEditView($view); + $layout = $this->input->get('layout', null, 'WORD'); + $id = $this->input->getInt('id'); + $cachable = true; + + // Check for edit form. + if($isEdit) + { + if ($layout == 'edit' && !$this->checkEditId('com_sermondistributor.edit.'.$view, $id)) + { + // Somehow the person just went to the form - we don't allow that. + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id)); + $this->setMessage($this->getError(), 'error'); + // check if item was opend from other then its own list view + $ref = $this->input->getCmd('ref', 0); + $refid = $this->input->getInt('refid', 0); + // set redirect + if ($refid > 0 && SermondistributorHelper::checkString($ref)) + { + // redirect to item of ref + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view='.(string)$ref.'&layout=edit&id='.(int)$refid, false)); + } + elseif (SermondistributorHelper::checkString($ref)) + { + + // redirect to ref + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view='.(string)$ref, false)); + } + else + { + // normal redirect back to the list default site view + $this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers', false)); + } + return false; + } + } + + return parent::display($cachable, $urlparams); + } + + protected function checkEditView($view) + { + if (SermondistributorHelper::checkString($view)) + { + $views = array( + + ); + // check if this is a edit view + if (in_array($view,$views)) + { + return true; + } + } + return false; + } +} diff --git a/site/controllers/ajax.json.php b/site/controllers/ajax.json.php new file mode 100644 index 00000000..d53722bf --- /dev/null +++ b/site/controllers/ajax.json.php @@ -0,0 +1,137 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage ajax.json.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controllerform library +jimport('joomla.application.component.controller'); + +/** + * Sermondistributor Ajax Controller + */ +class SermondistributorControllerAjax extends JControllerLegacy +{ + public function __construct($config) + { + parent::__construct($config); + // make sure all json stuff are set + JFactory::getDocument()->setMimeEncoding( 'application/json' ); + JResponse::setHeader('Content-Disposition','attachment;filename="getajax.json"'); + JResponse::setHeader("Access-Control-Allow-Origin", "*"); + // load the tasks + $this->registerTask('checkDropboxListing', 'ajax'); + $this->registerTask('countDownload', 'ajax'); + } + + public function ajax() + { + $user = JFactory::getUser(); + $jinput = JFactory::getApplication()->input; + // Check Token! + $token = JSession::getFormToken(); + $call_token = $jinput->get('token', 0, 'ALNUM'); + if($token == $call_token) + { + $task = $this->getTask(); + switch($task) + { + case 'checkDropboxListing': + try + { + $viewValue = $jinput->get('view', NULL, 'INT'); + if($viewValue) + { + $result = $this->getModel('ajax')->dropbox($viewValue); + } + else + { + $result = false; + } + if(array_key_exists('callback',$_GET)) + { + echo $_GET['callback'] . "(".json_encode($result).");"; + } + else + { + echo "(".json_encode($result).");"; + } + } + catch(Exception $e) + { + if(array_key_exists('callback',$_GET)) + { + echo $_GET['callback']."(".json_encode($e).");"; + } + else + { + echo "(".json_encode($e).");"; + } + } + break; + case 'countDownload': + try + { + $keyValue = $jinput->get('key', NULL, 'BASE64'); + $filenameValue = $jinput->get('filename', NULL, 'CMD'); + if($keyValue && $filenameValue) + { + $result = $this->getModel('ajax')->countDownload($keyValue, $filenameValue); + } + else + { + $result = false; + } + if(array_key_exists('callback',$_GET)) + { + echo $_GET['callback'] . "(".json_encode($result).");"; + } + else + { + echo "(".json_encode($result).");"; + } + } + catch(Exception $e) + { + if(array_key_exists('callback',$_GET)) + { + echo $_GET['callback']."(".json_encode($e).");"; + } + else + { + echo "(".json_encode($e).");"; + } + } + break; + } + } + else + { + if(array_key_exists('callback',$_GET)) + { + echo $_GET['callback']."(".json_encode(false).");"; + } + else + { + echo "(".json_encode(false).");"; + } + } + } +} diff --git a/site/controllers/download.php b/site/controllers/download.php new file mode 100644 index 00000000..3d0d0ce2 --- /dev/null +++ b/site/controllers/download.php @@ -0,0 +1,159 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage download.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controllerform library +jimport('joomla.application.component.controller'); + +/** + * Sermondistributor Download Controller + */ +class SermondistributorControllerDownload extends JControllerLegacy +{ + + public function __construct($config) + { + parent::__construct($config); + // load the tasks + $this->registerTask('file', 'download'); + } + + public function download() + { + $jinput = JFactory::getApplication()->input; + // Check Token! + $token = JSession::getFormToken(); + $call_token = $jinput->get('token', 0, 'ALNUM'); + if($token == $call_token) + { + $task = $this->getTask(); + switch($task) + { + case 'file': + $keys = $jinput->get('key', NULL, 'BASE64'); + $enUrl = $jinput->get('link', NULL, 'BASE64'); + $filename = $jinput->get('filename', NULL, 'CMD'); + if((base64_encode(base64_decode($enUrl, true)) === $enUrl) && (base64_encode(base64_decode($keys, true)) === $keys) && $filename) + { + // we must first count this download + if (SermondistributorHelper::countDownload($keys,$filename)) + { + // Get local key + $localkey = SermondistributorHelper::getLocalKey(); + $opener = new FOFEncryptAes($localkey, 256); + $link = rtrim($opener->decryptString(base64_decode($enUrl))); + $info = $this->getContentInfo($link); + // set headers + if (isset($info['type']) && $info['type']) + { + header('Content-Type: '.$info['type']); + } + elseif (strpos($filename, '.mp3') !== false) + { + header('Content-Type: audio/mpeg'); + } + else + { + header('Content-Type: application/octet-stream'); + } + header("Content-Transfer-Encoding: Binary"); + header("Content-disposition: attachment; filename=\"" . $filename . "\""); + header('Expires: 0'); + header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); + header('Pragma: public'); + if (isset($info['filesize']) && $info['filesize']) + { + header('Content-Length: ' . $info['filesize']); + } + ob_clean(); + flush(); + // this is faster but expose the dropbox url + // header("Location: $link"); + // this is slower but better much more secure + readfile($link); + jexit(); + } + } + break; + } + } + return false; + } + + protected function getContentInfo($url) + { + // we first try the curl option + if ($this->_isCurl()) + { + $ch = curl_init($url); + curl_setopt($ch, CURLOPT_NOBODY, true); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_HEADER, true); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); + + $data = curl_exec($ch); + curl_close($ch); + } + else + { + // then we try getheaders (this is slower) + stream_context_set_default( array('http' => array('method' => 'HEAD'))); + $headers = get_headers($url); + if (SermondistributorHelper::checkArray($headers)) + { + $data = implode("\n", $headers); + } + } + // get the Content Length + if (preg_match('/Content-Length: (\d+)/', $data, $matches)) + { + // Contains file size in bytes + $found['filesize'] = (int)$matches[1]; + + } + // get the Content Type + if (preg_match_all('/Content-Type: (.+)/', $data, $matches)) + { + foreach ($matches[1] as $match) + { + // not the html + if (strpos( $match, 'text/html') === false) + { + $found['type'] = $match; + break; + } + } + + } + // return found values + if (isset($found) && SermondistributorHelper::checkArray($found)) + { + return $found; + } + return false; + } + + protected function _isCurl() + { + return function_exists('curl_version'); + } +} diff --git a/site/controllers/help.php b/site/controllers/help.php new file mode 100644 index 00000000..3ea81f5d --- /dev/null +++ b/site/controllers/help.php @@ -0,0 +1,125 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage help.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controllerform library +jimport('joomla.application.component.controller'); + +/** + * Sermondistributor Help Controller + */ +class SermondistributorControllerHelp extends JControllerLegacy +{ + public function __construct($config) + { + parent::__construct($config); + // load the tasks + $this->registerTask('getText', 'help'); + } + + public function help() + { + $user = JFactory::getUser(); + $jinput = JFactory::getApplication()->input; + // Check Token! + $token = JSession::getFormToken(); + $call_token = $jinput->get('token', 0, 'ALNUM'); + if($token == $call_token){ + $task = $this->getTask(); + switch($task){ + case 'getText': + try + { + $idValue = $jinput->get('id', 0, 'INT'); + if($idValue) + { + $result = $this->getHelpDocumentText($idValue); + } + else + { + $result = ''; + } + echo $result; + // stop execution gracefully + jexit(); + } + catch(Exception $e) + { + // stop execution gracefully + jexit(); + } + break; + } + } + else + { + // stop execution gracefully + jexit(); + } + } + + protected function getHelpDocumentText($id) + { + $db = JFactory::getDbo(); + $query = $db->getQuery(true); + $query->select(array('a.title','a.content')); + $query->from('#__sermondistributor_help_document AS a'); + $query->where('a.id = '.(int) $id); + $query->where('a.published = 1'); + $query->where('a.location = 2'); + $db->setQuery($query); + $db->execute(); + if($db->getNumRows()) + { + $text = array(); + $document = $db->loadObject(); + // fix image issue + $images['src="images'] = 'src="'.JURI::root().'images'; + $images["src='images"] = "src='".JURI::root()."images"; + $images['src="/images'] = 'src="'.JURI::root().'images'; + $images["src='/images"] = "src='".JURI::root()."images"; + // set document template + $text[] = "<!doctype html>"; + $text[] = '<html>'; + $text[] = "<head>"; + $text[] = '<meta charset="utf-8">'; + $text[] = "<title>".$document->title."</title>"; + $text[] = '<link type="text/css" href="'.JURI::root().'media/com_sermondistributor/uikit/css/uikit.gradient.min.css" rel="stylesheet"></link>'; + $text[] = '<script type="text/javascript" src="'.JURI::root().'media/com_sermondistributor/uikit/js/uikit.min.js"></script>'; + $text[] = "</head>"; + $text[] = '<body><br />'; + $text[] = '<div class="uk-container uk-container-center uk-grid-collapse">'; + $text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">'; + // build the help text + $text[] = '<h3 class="uk-panel-title">'.$document->title."</h3>"; + $text[] = str_replace(array_keys($images),array_values($images),$document->content); + // end template + $text[] = '</div>'; + $text[] = '</div>'; + $text[] = "</body>"; + $text[] = "</html>"; + + return implode("\n",$text); + } + return false; + } +} diff --git a/site/controllers/index.html b/site/controllers/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/controllers/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/helpers/dropbox.php b/site/helpers/dropbox.php new file mode 100644 index 00000000..659c98ee --- /dev/null +++ b/site/helpers/dropbox.php @@ -0,0 +1,342 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.0.0 - 01st July, 2015 + @package Dropbox Links builder + @subpackage dropboxlinks.php + @author Llewellyn van der Merwe <http://www.vdm.io> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access. +defined('_JEXEC') or die; + +/** + * Dropbox class + */ +class Dropbox +{ + // the file name + public $fileName; + + // the file array + public $files = array(); + + // the extension to get + protected $getfiles = array(); + + // the extensions to leave + protected $notfiles = array(); + + // the folder array + protected $folders = array(); + + // folder identifiers + protected $getfolders = array('?dl=0'); + + // the list of extension to help identify what is folders (not exhaustive, only some of the commen files) + protected $notfolders = array( + '.3gp','.3gpp','.7z','.aac','.act','.aiff','.aiff','.amr','.ape','.ar','.asf','.au','.avi','.awb','.bmp','.bup','.bzip2','.crx','.css','.dct','.deb','.djvu', + '.doc','.docx','.drc','.dss','.ear','.egg','.exe','.flac','.flv','.gif','.gifv','.gzip','.htaccess','.html','.ico','.ini','.iso','.jar','.jpeg','.jpg','.js', + '.json','.lzip','.m3u','.m4a','.m4p','.m4v','.mkv','.mmf','.mng','.mov','.mp3','.mp4','.mpc','.mpeg','.mpeg4','.mpegps','.mpg','.mpkg','.msi','.odt','.ogg', + '.opus','.pdf','.pea','.php','.pkg','.png','.ppt','.pptx','.ps','.psd','.pst','.pxv','.rar','.raw','.rm','.rmvb','.rpm','.rtf','.shar','.sql','.svg','.sxw', + '.tar','.tgz','.tgz','.tiff','.txt','.veg','.vep','.vob','.wav','.webm','.wma','.wmv','.xar','.xls','.xml','.yuv','.zip' ); + + // the directory where the downloaded files should be stored + protected $dir; + + /** + * Constructor + */ + public function __construct($mainurl, $config = array('save' => false, 'filename' => 'dropbox', 'download' => false, 'dir' => __DIR__)) + { + if ($this->checkArray($config)) + { + // we need more then the normal time to run this script 5 minutes at least. + ini_set('max_execution_time', 500); // TODO this is not the best option I am sure, but for now seems like the only option. + // set main url + $this->mainurl = $mainurl; + // if custom get list is set use it + if (isset($config['get']) && $this->checkArray($config['get'])) + { + $this->getfiles = $config['get']; + } + elseif (isset($config['get']) && $this->checkString($config['get'])) + { + $this->getfiles = array($config['get']); + } + // if custom excludelist is set use it + if (isset($config['not']) && $this->checkArray($config['not'])) + { + $this->notfiles = $config['not']; + } + elseif (isset($config['not']) && $this->checkString($config['not'])) + { + $this->notfiles = array($config['not']); + } + // set main folder name + $this->fileName = (isset($config['filename'])) ? md5($this->mainurl.$config['filename']) : md5($this->mainurl.'nofilenamewasset'); + // set save switch + $save = (isset($config['save'])) ? $config['save'] : false; + // set download switch + $download = (isset($config['download'])) ? $config['download'] : false; + // make sure the note folder identifiers are complete + $this->notfolders = array_unique(array_merge($this->getfiles,$this->notfiles,$this->notfolders)); + // set local directory + $this->dir = (isset($config['dir'])) ? $config['dir'] : __DIR__; + // check if the parching of the drobox files is up to date + if (($json = @file_get_contents($this->fileName.".json")) !== FALSE) + { + $this->files = json_decode($json, true); + } + else + { + // set all folders + $this->parseFolders($this->mainurl, 'VDM_pLeK_h0uEr'); + } + // check if we should save the file + if ($save) + { + $this->save(); + } + // check if we should download the file + if ($download) + { + $this->download(); + } + return true; + } + return false; + } + + public function download($dir = null) + { + if ($this->checkArray($this->files)) + { + // insure the directory is set + $dir = ($dir) ? $dir : $this->dir; + foreach($this->files as $path => $url) + { + // now setup correct path + $path = str_replace('VDM_pLeK_h0uEr', $dir, $path); + // boom here we go move.... + $this->getFile($url, $path); + } + } + } + + public function getFile($url, $path) + { + $newfname = $path; + if (($file = @fopen($url, "rb")) !== FALSE) + { + $filename = substr($path, strrpos($path, '/')); + $makePath = str_replace($filename,'',$path); + if (!file_exists($makePath)) + { + mkdir($makePath, 0755, true); + } + + $newf = fopen($newfname, "wb"); + } + else + { + echo 'error! '.$url.' not found'; + } + + if ($newf) + { + while(!feof($file)) + { + fwrite($newf, fread($file, 1024 * 8 ), 1024 * 8 ); + } + } + + if ($file) + { + fclose($file); + } + + if ($newf) + { + fclose($newf); + } + } + + public function save($filename = null) + { + if ($this->checkString($filename)) + { + // set main folder name + $this->fileName = md5($this->mainurl.$filename); + } + if ($this->checkArray($this->files)) + { + $data = json_encode($this->files); + // now save this folders data to a file. + $this->saveJson($data); + + return true; + } + return false; + } + + protected function saveJson($data) + { + if ($this->checkString($data)) + { + /* + for now it will save + the files in the same + directory as the php + file where the class + is called we will have + to change this to suite + your custom needs. + */ + $fp = fopen($this->fileName.'.json', 'w'); + fwrite($fp, $data); + fclose($fp); + } + } + + protected function parseFolders($url, $foldername) + { + if ($this->checkString($url)) + { + // get the page html + if (($html = @file_get_contents($url)) !== FALSE) + { + //Create a new DOM document + $dom = new DOMDocument; + + //Parse the HTML. The @ is used to suppress any parsing errors + //that will be thrown if the $html string isn't valid XHTML. + @$dom->loadHTML($html); + + //Get all links. You could also use any other tag name here, + //like 'img' or 'table', to extract other tags. + $links = $dom->getElementsByTagName('a'); + + //Iterate over the extracted links and display their URLs + if ($this->checkObject($links)) + { + // the types + $types = array('folders','files'); + foreach ($types as $type) + { + // folder bucket + $buket = array(); + foreach ($links as $nr => $link) + { + // switch to add link + $add = false; + // get actual link + $href = $link->getAttribute('href'); + // only use link reated to type + if ($this->checkArray($this->{'get'.$type}) && $this->checkString($href)) + { + foreach ($this->{'get'.$type} as $get) + { + if (!$add) + { + if (strpos($get,'?dl') === false) + { + $get = $get . '?dl=0'; + } + if (strpos($href,'https://www.dropbox.com/') !== false && strpos($href,$get) !== false) + { + $add = true; + } + } + } + } + else + { + if (strpos($href,'https://www.dropbox.com/') !== false && strpos($href,'?dl=0') !== false) + { + $add = true; + } + } + + // remove if not related to type + if ($this->checkArray($this->{'not'.$type}) && $this->checkString($href) && $add) + { + foreach ($this->{'not'.$type} as $not) + { + if ($add) + { + if (strpos($href,$not) !== false) + { + $add = false; + } + } + } + } + + // now add if still related to type + if ($add) + { + if (!in_array($href,$buket)) + { + $name = str_replace('?dl=0','',substr($href, strrpos($href, '/') + 1)); + + if ($type == 'folders' && strpos($name,'.') === false) + { + // parse this folder for more files and sub folders + $this->parseFolders($href, $foldername.'/'.str_replace('?lst','',$name)); + $buket[] = $href; + unset($links->$nr); + + } + elseif ($type == 'files' && strpos($name,'.') !== false) + { + // Add to file list + $this->files[$foldername.'/'.$name] = str_replace('?dl=0','?dl=1',$href); + $buket[] = $href; + unset($links->$nr); + } + } + } + } + } + } + return true; + } + } + return false; + } + + protected function checkObject($object) + { + if (isset($object) && is_object($object) && count($object) > 0) + { + return true; + } + return false; + } + + protected function checkArray($array) + { + if (isset($array) && is_array($array) && count($array) > 0) + { + return true; + } + return false; + } + + protected function checkString($string) + { + if (isset($string) && is_string($string) && strlen($string) > 0) + { + return true; + } + return false; + } +} + +?> \ No newline at end of file diff --git a/site/helpers/dropboxupdater.php b/site/helpers/dropboxupdater.php new file mode 100644 index 00000000..c6777c47 --- /dev/null +++ b/site/helpers/dropboxupdater.php @@ -0,0 +1,431 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage dropboxupdater.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Dropbox updater component helper + */ +class Dropboxupdater +{ + /** + * to see where we are in the prosses + **/ + public $progress = array('report' => 0); + + /** + * update flag (if false update will not happen) + **/ + protected $okay = true; + + /** + * the type of linksto update + **/ + protected $type; + + /** + * allow a forced manual update + **/ + protected $runManual; + + /** + * Todays date-time + **/ + protected $today; + + /** + * Next updat date-time + **/ + protected $next; + + /** + * update method + **/ + protected $updateMethod; + + /** + * update links + **/ + protected $updateLinks = array(); + + /** + * Listing of dropbox links + **/ + protected $listing = array(); + + /** + * info related to this update + **/ + protected $updateInfo; + protected $infoFilePath; + + /** + * get the localkey + **/ + protected $localkey = false; + + /** + * component parameters + **/ + protected $app_params; + + /** + * everything we want done when initialized + **/ + public function __construct() + { + // get params + $this->app_params = JComponentHelper::getParams('com_sermondistributor'); + + // set local key + $this->localkey = md5($this->app_params->get('link_encryption', 'localKey34fdWEkl')); + } + + /** + * update mehtod + **/ + public function update($type = false, $runManual = false) + { + if ($type) + { + // start frech + $this->okay = true; + // set type + $this->type = $type; + $this->runManual = $runManual; + + // set progress file name + $this->progressFilePath = JPATH_COMPONENT_SITE.'/helpers/'.md5($this->type.'progress'.$this->localkey).'.json'; + + // what update method is set + $this->setUpdateMethod(); + + // set the update links + $this->setUpdateLinks(); + + // set needed dates + if ($this->okay) + { + $this->setDates(); + } + + // get info data or set if not found + if ($this->okay) + { + $this->setInfoData(); + } + + // check if update should run now + if ($this->okay) + { + $this->checkUpdateStatus(); + } + // set progress + if ($this->okay) + { + $this->saveProgress(); + } + + // before update save update info incase class is called again + if($this->okay) + { + if ($this->updateInfo->updatenow) + { + // turn update to active + $this->updateInfo->updatenow = false; + $this->updateInfo->updateactive = true; + // now save the date + $this->okay = $this->saveUpdateInfo(); + } + else + { + $this->okay = false; + } + } + + // run the update if all is okay + if ($this->okay) + { + // set the config + $this->setDropboxConfig(); + // set progress + $this->progress['report'] = 30; + $this->saveProgress(); + // load the file + JLoader::import('dropbox', JPATH_COMPONENT_SITE.'/helpers'); + // okay now update + if ($this->doUpdate()) + { + return $this->okay; + } + } + } + return false; + } + + /** + * set update mehtod + **/ + protected function setUpdateMethod() + { + $method = $this->app_params->get($this->type.'_link_update_method', 0); + if ($this->runManual) + { + // this is a manual method + $this->updateMethod = 'manual'; + } + elseif (2 == $method) + { + // this it an auto mehtod + $this->updateMethod = 'auto'; + } + else + { + $this->okay = false; + } + } + + /** + * set update Links + **/ + protected function setUpdateLinks() + { + // the number of links + $numbers = range(1, 4); + // now check if they are set + foreach ($numbers as $number) + { + // set the number to string + $numStr = SermondistributorHelper::safeString($number); + // Get the url + $url = $this->app_params->get($this->type.'dropbox'.$numStr, null); + // only load those that are set + if ($url) + { + $this->updateLinks[] = $url; + } + } + // check if we found any + if (!isset($this->updateLinks) || !SermondistributorHelper::checkArray($this->updateLinks)) + { + $this->okay = false; + } + } + + /** + * set next update time + **/ + protected function setDates() + { + // set todays date/time + $this->today = time(); + + // set the next update date/time + if ('manual' == $this->updateMethod) + { + // set the date to two days ago to ensure the update runs now + $this->next = strtotime("-2 days"); + } + else + { + // based on the auto time we will set the next update date/time + $timer = $this->app_params->get($this->type.'_dropbox_timer', '60'); + if ($timer != 0) + { + // Get Next Update Time + $this->next = strtotime('+'.$timer.' minutes', $this->today); + } + // if timer is 0 we should not update + else + { + $this->okay = false; + } + } + } + + /** + * set update mehtod + **/ + protected function setInfoData() + { + // set the info file name + $fileName = md5($this->type.'info'.$this->localkey); + // set file path + $this->infoFilePath = JPATH_COMPONENT_SITE.'/helpers/'.$fileName.'.json'; + + if (($json = @file_get_contents($this->infoFilePath)) !== FALSE) + { + $this->updateInfo = json_decode($json); + } + else + { + $this->updateInfo = new stdClass; + $this->updateInfo->nextupdate = 0; + $this->updateInfo->updateactive = false; + $this->updateInfo->updatenow = false; + } + } + + /** + * check update status + **/ + protected function checkUpdateStatus() + { + // check if there is already an update running + if ($this->updateInfo->updateactive) + { + $this->okay = false; + } + // check if the time has come to do the next update + elseif (('auto' == $this->updateMethod) && ($this->updateInfo->nextupdate > $this->today)) + { + $this->okay = false; + } + else + { + $this->updateInfo->updatenow = true; + } + } + + /** + * save the update info + **/ + protected function saveProgress() + { + return $this->saveJson(json_encode($this->progress),$this->progressFilePath); + } + + /** + * save the update info + **/ + protected function saveUpdateInfo() + { + return $this->saveJson(json_encode($this->updateInfo),$this->infoFilePath); + } + + /** + * update the local listing + **/ + protected function doUpdate() + { + // we need more then the normal time to run this script 5 minutes at least. + ini_set('max_execution_time', 500); + // get data of all the urls + foreach ($this->updateLinks as $mainUrl) + { + // set progress + if ($this->progress['report'] < 60) + { + $this->progress['report'] = $this->progress['report'] + 5; + $this->saveProgress(); + } + // get ldropbox links + $dropbox = new Dropbox($mainUrl, $this->dropboxConfig); + // set progress + if ($this->progress['report'] < 70) + { + $this->progress['report'] = $this->progress['report'] + 5; + $this->saveProgress(); + } + // get the links + if (SermondistributorHelper::checkArray($dropbox->files)) + { + $this->listing = array_merge($this->listing, $dropbox->files); + } + // set progress + if ($this->progress['report'] < 80) + { + $this->progress['report'] = $this->progress['report'] + 5; + $this->saveProgress(); + } + unset($dropbox); + } + + // now store the new listing + return $this->setNewListing(); + } + + protected function setNewListing() + { + // set progress + $this->progress['report'] = 100; + $this->saveProgress(); + // reset storage + $storeage = array(); + // set the listing file name + $fileName = md5($this->type.'listing'.$this->localkey); + // set file path + $listingFilePath = JPATH_COMPONENT_SITE.'/helpers/'.$fileName.'.json'; + + // now store the new listing + if (SermondistributorHelper::checkArray($this->listing)) + { + // encrypt the urls + $locker = new FOFEncryptAes($this->localkey, 256); + foreach ($this->listing as $folder => $link) + { + $storeage[$folder] = base64_encode($locker->encryptString($link)); + } + } + else + { + $this->okay = false; + } + // save the update links. + $this->saveJson(json_encode($storeage),$listingFilePath); + // make sure the update reset + $this->updateInfo->nextupdate = $this->next; + $this->updateInfo->updateactive = false; + $this->updateInfo->updatenow = false; + + return $this->saveUpdateInfo(); + } + + /** + * set the configeration for dropbox class + **/ + protected function setDropboxConfig() + { + // reset config + $this->dropboxConfig = array(); + // get the legal files set + $getfiles = $this->app_params->get('dropbox_filetypes', null); + if (SermondistributorHelper::checkArray($getfiles)) + { + $this->dropboxConfig['get'] = $getfiles; + } + // set other config settings + $this->dropboxConfig['save'] = false; + $this->dropboxConfig['download'] = false; + } + + protected function saveJson($data,$filename) + { + if (SermondistributorHelper::checkString($data)) + { + $fp = fopen($filename, 'w'); + fwrite($fp, $data); + fclose($fp); + return true; + } + return false; + } +} diff --git a/site/helpers/headercheck.php b/site/helpers/headercheck.php new file mode 100644 index 00000000..60cc7f41 --- /dev/null +++ b/site/helpers/headercheck.php @@ -0,0 +1,80 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage headercheck.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +class HeaderCheck +{ + function js_loaded($script_name) + { + // UIkit check point + if (strpos($script_name,'uikit') !== false) + { + $app = JFactory::getApplication(); + $getTemplateName = $app->getTemplate('template')->template; + + if (strpos($getTemplateName,'yoo') !== false) + { + return true; + } + } + + $document = JFactory::getDocument(); + $head_data = $document->getHeadData(); + foreach (array_keys($head_data['scripts']) as $script) + { + if (stristr($script, $script_name)) + { + return true; + } + } + + return false; + } + + function css_loaded($script_name) + { + // UIkit check point + if (strpos($script_name,'uikit') !== false) + { + $app = JFactory::getApplication(); + $getTemplateName = $app->getTemplate('template')->template; + + if (strpos($getTemplateName,'yoo') !== false) + { + return true; + } + } + + $document = JFactory::getDocument(); + $head_data = $document->getHeadData(); + + foreach (array_keys($head_data['styleSheets']) as $script) + { + if (stristr($script, $script_name)) + { + return true; + } + } + + return false; + } +} \ No newline at end of file diff --git a/site/helpers/index.html b/site/helpers/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/helpers/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/helpers/route.php b/site/helpers/route.php new file mode 100644 index 00000000..fdc9fb42 --- /dev/null +++ b/site/helpers/route.php @@ -0,0 +1,480 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage route.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// Component Helper +jimport('joomla.application.component.helper'); +jimport('joomla.application.categories'); + +/** + * Sermondistributor Route Helper + **/ +abstract class SermondistributorHelperRoute +{ + protected static $lookup; + + /** + * @param int The route of the Sermon + */ + public static function getSermonRoute($id = 0, $catid = 0) + { + if ($id > 0) + { + // [4544] Initialize the needel array. + $needles = array( + 'sermon' => array((int) $id) + ); + // [4548] Create the link + $link = 'index.php?option=com_sermondistributor&view=sermon&id='. $id; + } + else + { + // [4553] Initialize the needel array. + $needles = array(); + // [4555]Create the link but don't add the id. + $link = 'index.php?option=com_sermondistributor&view=sermon'; + } + if ($catid > 1) + { + $categories = JCategories::getInstance('sermondistributor.sermons'); + $category = $categories->get($catid); + if ($category) + { + $needles['category'] = array_reverse($category->getPath()); + $needles['categories'] = $needles['category']; + $link .= '&catid='.$catid; + } + } + + if ($item = self::_findItem($needles, 'sermon')) + { + $link .= '&Itemid='.$item; + } + + return $link; + } + + /** + * @param int The route of the Preachers + */ + public static function getPreachersRoute($id = 0, $catid = 0) + { + if ($id > 0) + { + // [4544] Initialize the needel array. + $needles = array( + 'preachers' => array((int) $id) + ); + // [4548] Create the link + $link = 'index.php?option=com_sermondistributor&view=preachers&id='. $id; + } + else + { + // [4553] Initialize the needel array. + $needles = array(); + // [4555]Create the link but don't add the id. + $link = 'index.php?option=com_sermondistributor&view=preachers'; + } + if ($catid > 1) + { + $categories = JCategories::getInstance('sermondistributor.preachers'); + $category = $categories->get($catid); + if ($category) + { + $needles['category'] = array_reverse($category->getPath()); + $needles['categories'] = $needles['category']; + $link .= '&catid='.$catid; + } + } + + if ($item = self::_findItem($needles)) + { + $link .= '&Itemid='.$item; + } + + return $link; + } + + /** + * @param int The route of the Preacher + */ + public static function getPreacherRoute($id = 0, $catid = 0) + { + if ($id > 0) + { + // [4544] Initialize the needel array. + $needles = array( + 'preacher' => array((int) $id) + ); + // [4548] Create the link + $link = 'index.php?option=com_sermondistributor&view=preacher&id='. $id; + } + else + { + // [4553] Initialize the needel array. + $needles = array(); + // [4555]Create the link but don't add the id. + $link = 'index.php?option=com_sermondistributor&view=preacher'; + } + if ($catid > 1) + { + $categories = JCategories::getInstance('sermondistributor.preacher'); + $category = $categories->get($catid); + if ($category) + { + $needles['category'] = array_reverse($category->getPath()); + $needles['categories'] = $needles['category']; + $link .= '&catid='.$catid; + } + } + + if ($item = self::_findItem($needles, 'preacher')) + { + $link .= '&Itemid='.$item; + } + + return $link; + } + + /** + * @param int The route of the Categories + */ + public static function getCategoriesRoute($id = 0) + { + if ($id > 0) + { + // [4544] Initialize the needel array. + $needles = array( + 'categories' => array((int) $id) + ); + // [4548] Create the link + $link = 'index.php?option=com_sermondistributor&view=categories&id='. $id; + } + else + { + // [4553] Initialize the needel array. + $needles = array(); + // [4555]Create the link but don't add the id. + $link = 'index.php?option=com_sermondistributor&view=categories'; + } + + if ($item = self::_findItem($needles)) + { + $link .= '&Itemid='.$item; + } + + return $link; + } + + /** + * @param int The route of the Category + */ + public static function getCategoryRoute($id = 0) + { + if ($id > 0) + { + // [4544] Initialize the needel array. + $needles = array( + 'category' => array((int) $id) + ); + // [4548] Create the link + $link = 'index.php?option=com_sermondistributor&view=category&id='. $id; + } + else + { + // [4553] Initialize the needel array. + $needles = array(); + // [4555]Create the link but don't add the id. + $link = 'index.php?option=com_sermondistributor&view=category'; + } + + if ($item = self::_findItem($needles, 'category')) + { + $link .= '&Itemid='.$item; + } + + return $link; + } + + /** + * @param int The route of the Serieslist + */ + public static function getSerieslistRoute($id = 0, $catid = 0) + { + if ($id > 0) + { + // [4544] Initialize the needel array. + $needles = array( + 'serieslist' => array((int) $id) + ); + // [4548] Create the link + $link = 'index.php?option=com_sermondistributor&view=serieslist&id='. $id; + } + else + { + // [4553] Initialize the needel array. + $needles = array(); + // [4555]Create the link but don't add the id. + $link = 'index.php?option=com_sermondistributor&view=serieslist'; + } + if ($catid > 1) + { + $categories = JCategories::getInstance('sermondistributor.serieslist'); + $category = $categories->get($catid); + if ($category) + { + $needles['category'] = array_reverse($category->getPath()); + $needles['categories'] = $needles['category']; + $link .= '&catid='.$catid; + } + } + + if ($item = self::_findItem($needles)) + { + $link .= '&Itemid='.$item; + } + + return $link; + } + + /** + * @param int The route of the Series + */ + public static function getSeriesRoute($id = 0, $catid = 0) + { + if ($id > 0) + { + // [4544] Initialize the needel array. + $needles = array( + 'series' => array((int) $id) + ); + // [4548] Create the link + $link = 'index.php?option=com_sermondistributor&view=series&id='. $id; + } + else + { + // [4553] Initialize the needel array. + $needles = array(); + // [4555]Create the link but don't add the id. + $link = 'index.php?option=com_sermondistributor&view=series'; + } + if ($catid > 1) + { + $categories = JCategories::getInstance('sermondistributor.series'); + $category = $categories->get($catid); + if ($category) + { + $needles['category'] = array_reverse($category->getPath()); + $needles['categories'] = $needles['category']; + $link .= '&catid='.$catid; + } + } + + if ($item = self::_findItem($needles, 'series')) + { + $link .= '&Itemid='.$item; + } + + return $link; + } + + /** + * Get the URL route for sermondistributor category from a category ID and language + * + * @param mixed $catid The id of the items's category either an integer id or a instance of JCategoryNode + * @param mixed $language The id of the language being used. + * + * @return string The link to the contact + * + * @since 1.5 + */ + public static function getCategoryRoute_keep_for_later($catid, $language = 0) + { + if ($catid instanceof JCategoryNode) + { + $id = $catid->id; + $category = $catid; + } + else + { + throw new Exception('First parameter must be JCategoryNode'); + } + + $views = array( + "com_sermondistributor.sermons" => "sermon"); + $view = $views[$category->extension]; + + if ($id < 1 || !($category instanceof JCategoryNode)) + { + $link = ''; + } + else + { + //Create the link + $link = 'index.php?option=com_sermondistributor&view='.$view.'&category='.$category->slug; + + $needles = array( + $view => array($id), + 'category' => array($id) + ); + + if ($language && $language != "*" && JLanguageMultilang::isEnabled()) + { + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select('a.sef AS sef') + ->select('a.lang_code AS lang_code') + ->from('#__languages AS a'); + + $db->setQuery($query); + $langs = $db->loadObjectList(); + foreach ($langs as $lang) + { + if ($language == $lang->lang_code) + { + $link .= '&lang='.$lang->sef; + $needles['language'] = $language; + } + } + } + + if ($item = self::_findItem($needles,'category')) + { + + $link .= '&Itemid='.$item; + } + else + { + if ($category) + { + $catids = array_reverse($category->getPath()); + $needles = array( + 'category' => $catids + ); + if ($item = self::_findItem($needles,'category')) + { + $link .= '&Itemid='.$item; + } + elseif ($item = self::_findItem(null, 'category')) + { + $link .= '&Itemid='.$item; + } + } + } + } + return $link; + } + + protected static function _findItem($needles = null,$type = null) + { + $app = JFactory::getApplication(); + $menus = $app->getMenu('site'); + $language = isset($needles['language']) ? $needles['language'] : '*'; + + // Prepare the reverse lookup array. + if (!isset(self::$lookup[$language])) + { + self::$lookup[$language] = array(); + + $component = JComponentHelper::getComponent('com_sermondistributor'); + + $attributes = array('component_id'); + $values = array($component->id); + + if ($language != '*') + { + $attributes[] = 'language'; + $values[] = array($needles['language'], '*'); + } + + $items = $menus->getItems($attributes, $values); + + foreach ($items as $item) + { + if (isset($item->query) && isset($item->query['view'])) + { + $view = $item->query['view']; + + if (!isset(self::$lookup[$language][$view])) + { + self::$lookup[$language][$view] = array(); + } + + if (isset($item->query['id'])) + { + /** + * Here it will become a bit tricky + * language != * can override existing entries + * language == * cannot override existing entries + */ + if (!isset(self::$lookup[$language][$view][$item->query['id']]) || $item->language != '*') + { + self::$lookup[$language][$view][$item->query['id']] = $item->id; + } + } + } + } + } + + if ($needles) + { + foreach ($needles as $view => $ids) + { + if (isset(self::$lookup[$language][$view])) + { + foreach ($ids as $id) + { + if (isset(self::$lookup[$language][$view][(int) $id])) + { + return self::$lookup[$language][$view][(int) $id]; + } + } + } + } + } + + if ($type) + { + // Check if the global menu item has been set. + $params = JComponentHelper::getParams('com_sermondistributor'); + if ($item = $params->get($type.'_menu', 0)) + { + return $item; + } + } + + // Check if the active menuitem matches the requested language + $active = $menus->getActive(); + + if ($active + && $active->component == 'com_sermondistributor' + && ($language == '*' || in_array($active->language, array('*', $language)) || !JLanguageMultilang::isEnabled())) + { + return $active->id; + } + + // If not found, return language specific home link + $default = $menus->getDefault($language); + + return !empty($default->id) ? $default->id : null; + } +} diff --git a/site/helpers/sermondistributor.php b/site/helpers/sermondistributor.php new file mode 100644 index 00000000..36d03ad3 --- /dev/null +++ b/site/helpers/sermondistributor.php @@ -0,0 +1,1394 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermondistributor.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Sermondistributor component helper + */ +abstract class SermondistributorHelper +{ + + /** + * The Global Site Event Method. + **/ + public static function globalEvent($document) + { + self::loadDropboxAjax($document); + } + + /** + * Load the Dropbox Ajax to page + **/ + public static function loadDropboxAjax($document) + { + $document->addScriptDeclaration(" + jQuery(window).load(function() { + checkDropboxListing(3); + }); + + function checkDropboxListing(view){ + var getUrl = '".JRoute::_('index.php?option=com_sermondistributor&task=ajax.checkDropboxListing&format=json')."'; + if(view > 0){ + var request = 'token=".JSession::getFormToken()."&view='+view; + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'jsonp', + data: request, + jsonp: 'callback' + }); + } + "); + } + + /** + * The dropbox links auto + **/ + protected static $links_dropbox_auto; + + /** + * The dropbox links manual + **/ + protected static $links_dropbox_manual; + + /** + * The dropbox info File Name + **/ + protected static $autoprogress = false; + + /** + * The dropbox info File Name + **/ + protected static $manualprogress = false; + + /** + * The dropbox info File Name + **/ + protected static $autolisting = false; + + /** + * The dropbox info File Name + **/ + protected static $manuallisting = false; + + /** + * check Dropbox Local Listing + **/ + public static function getDownloadLinks(&$sermon) + { + $links = array(); + // Get local key + $localkey = self::getLocalKey(); + // decrypt the urls + $safe = new FOFEncryptAes($localkey, 256); + // internal download url + $keyCounter = new stdClass; + $keyCounter->sermon = $sermon->id; + if ($sermon->preacher) + { + $keyCounter->preacher = $sermon->preacher; + } + if ($sermon->series) + { + $keyCounter->series = $sermon->series; + } + $keyCounter = base64_encode($safe->encryptString(json_encode($keyCounter))); + $token = JSession::getFormToken(); + $downloadURL = 'index.php?option=com_sermondistributor&task=download.file&key='.$keyCounter.'&token='.$token; + // check if local .htaccess should be set + $setHtaccess = false; + $onclick = ' onclick="sermonCounter(\''.$keyCounter.'\',\'FILENAME\');"'; + // check what source of our link + switch ($sermon->source) + { + case 1: + // local file get local folder and check if outside root (if not then allow direct) + $localFolder = JComponentHelper::getParams('com_sermondistributor')->get('localfolder', JPATH_ROOT.'/images').'/'; + // should we allow direct downloads + $allowDirect = false; + if (2 == $sermon->link_type && strpos($localFolder, JPATH_ROOT) !== false) + { + $allowDirect = true; + $localFolderURL = JURI::root().str_replace(JPATH_ROOT, '', $localFolder); + // insure no double // is in the URL + $localFolderURL = str_replace('//', '/', $localFolderURL); + $localFolderURL = str_replace(':/', '://', $localFolderURL); + } + // insure no double // is in the path name + $localFolder = str_replace('//', '/', $localFolder); + $localFolder = str_replace(':/', '://', $localFolder); + if (self::checkArray($sermon->local_files)) + { + foreach($sermon->local_files as $key) + { + if (1 == $sermon->link_type || !$allowDirect) + { + // get the file name use the same method as the auto + $filename = self::getDownloadFileName($sermon,$key,'local'); + $lockedFolderPath = base64_encode($safe->encryptString($localFolder.$key)); + $sermon->download_links[$filename] = JRoute::_($downloadURL.'&link='.$lockedFolderPath.'&filename='.$filename); + $sermon->onclick[$filename] = ''; + } + elseif (2 == $sermon->link_type && $allowDirect) + { + $filename = $key; + $sermon->download_links[$filename] = $localFolderURL.$key; + $sermon->onclick[$filename] = str_replace('FILENAME', $filename, $onclick); + $setHtaccess = true; + } + } + } + break; + case 2: + // Dropbox get global dropbox switch + $dropboxButton = JComponentHelper::getParams('com_sermondistributor')->get('add_to_dropbox', 1); + if (1 == $sermon->build) + { + if (self::checkArray($sermon->manual_files)) + { + // manual dropbox + foreach($sermon->manual_files as $key) + { + // get the link + $dropURL = self::getDropboxLink('manual',1,$key); + if (1 == $sermon->link_type && $dropURL) + { + // get the file name use the same method as the auto + $filename = self::getDownloadFileName($sermon,$key,'dropbox_manual'); + $sermon->download_links[$filename] = JRoute::_($downloadURL.'&link='.$dropURL.'&filename='.$filename); + $sermon->onclick[$filename] = ''; + } + elseif (2 == $sermon->link_type && $dropURL) + { + $filename = str_replace('VDM_pLeK_h0uEr/', '', $key); + $sermon->download_links[$filename] = rtrim($safe->decryptString(base64_decode($dropURL))); + $sermon->onclick[$filename] = str_replace('FILENAME', $filename, $onclick); + } + // build dropbox switch if needed + if (1 == $dropboxButton && $dropURL) + { + $sermon->dropbox_buttons[$filename] = str_replace('?dl=1', '?dl=0', rtrim($safe->decryptString(base64_decode($dropURL)))); + $sermon->onclick_drobox[$filename] = str_replace('FILENAME', $filename, $onclick); + } + } + } + } + elseif (2 == $sermon->build) + { + if (self::checkArray($sermon->auto_sermons)) + { + // automatic dropbox + foreach($sermon->auto_sermons as $filename => $key) + { + // get the link + $dropURL = self::getDropboxLink('auto',1,$key); + if (1 == $sermon->link_type && $dropURL) + { + // get the file name (use the same method as the auto + $sermon->download_links[$filename] = JRoute::_($downloadURL.'&link='.$dropURL.'&filename='.$filename); + $sermon->onclick[$filename] = ''; + } + elseif (2 == $sermon->link_type && $dropURL) + { + $sermon->download_links[$filename] = rtrim($safe->decryptString(base64_decode($dropURL))); + $sermon->onclick[$filename] = str_replace('FILENAME', $filename, $onclick); + } + // build dropbox switch if needed + if (1 == $dropboxButton && $dropURL) + { + $sermon->dropbox_buttons[$filename] = str_replace('?dl=1', '?dl=0', rtrim($safe->decryptString(base64_decode($dropURL)))); + $sermon->onclick_drobox[$filename] = str_replace('FILENAME', $filename, $onclick); + } + } + } + } + break; + case 3: + // url get the file name use the same method as the auto + $filename = self::getDownloadFileName($sermon,$sermon->url,'url'); + if (1 == $sermon->link_type) + { + $lockedURL = base64_encode($safe->encryptString($sermon->url)); + $sermon->download_links[$filename] = JRoute::_($downloadURL.'&link='.$lockedURL.'&filename='.$filename); + $sermon->onclick[$filename] = ''; + } + elseif (2 == $sermon->link_type) + { + $sermon->download_links[$filename] = $sermon->url; + $sermon->onclick[$filename] = str_replace('FILENAME', $filename, $onclick); + } + break; + } + // remove the values no longer needed + unset($sermon->local_files); + unset($sermon->manual_files); + unset($sermon->auto_sermons); + unset($sermon->url); + // should we set the local .htaccess for the download folder + if ($setHtaccess) + { + // TODO we may need to add this latter to enforce download of files. + } + return true; + } + + public static function getDropboxLink($type, $return = false, $target = false) + { + // make sure all defaults are set + $found = self::checkDropboxLocalListing($type); + if ($found) + { + switch($return) + { + case 1: + // return a link + if (isset(self::${'links_dropbox_'.$type}[$target])) + { + return self::${'links_dropbox_'.$type}[$target]; + } + break; + case 2: + // return all links + return self::${'links_dropbox_'.$type}; + break; + default : + // just confirm that it is set + return true; + break; + } + } + return false; + } + + public static function countDownload($counter,$filename) + { + // Get local key + $localkey = self::getLocalKey(); + $opener = new FOFEncryptAes($localkey, 256); + $counter = json_decode(rtrim($opener->decryptString(base64_decode($counter)))); + if (self::checkObject($counter)) + { + $counter->filename = $filename; + // set the date object + $date = JFactory::getDate(); + // first check if this file already has statistics + $db = JFactory::getDbo(); + $query = $db->getQuery(true); + $query->select($db->quoteName(array('id','counter'))); + $query->from($db->quoteName('#__sermondistributor_statistic')); + $query->where($db->quoteName('sermon') . ' = '. (int) $counter->sermon); + $query->where($db->quoteName('filename') . ' = '. $db->quote($counter->filename)); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + $statistic = $db->loadObject(); + // already has an entry + $statistic->counter++; + $statistic->modified = $date->toSql(); + // update the entry + return $db->updateObject('#__sermondistributor_statistic', $statistic, 'id'); + } + else + { + // set a new entry + $counter->counter = 1; + $counter->published = 1; + $counter->created = $date->toSql(); + $counter->access = 1; + $counter->version = 1; + // set a new entry + $done = $db->insertObject('#__sermondistributor_statistic', $counter); + // if done return last used id + if ($done) + { + $newId = $db->insertid(); + // make sure the access of asset is set + return self::setAsset($newId,'statistic'); + } + } + } + return false; + } + + protected static function getDownloadFileName(&$sermon,$file,$type) + { + // first get file name and file type + $file = str_replace('VDM_pLeK_h0uEr/', '', $file); + $fileType = pathinfo($file, PATHINFO_EXTENSION); + if ($fileType) + { + $file = str_replace('.'.$fileType, '', $file); + } + else + { + $fileType = 'error'; + } + // now build download name + $downloadName = array(); + // build the Download File Name - first add the preacher name if set + if ($sermon->preacher) + { + $downloadName[] = self::safeString($sermon->preacher_name,'U'); + } + // add the series name if set + if ($sermon->series) + { + $downloadName[] = self::safeString($sermon->series_name,'F'); + } + // add the category name if set + if ($sermon->catid && self::checkString($sermon->category)) + { + $downloadName[] = self::safeString($sermon->category, 'F'); + } + if ('dropbox_manual' == $type || 'local' == $type) + { + // add the main file name + $downloadName[] = self::safeString($sermon->name,'F'); + $downloadName[] = self::safeString($file,'F'); + } + else + { + $downloadName[] = self::safeString($sermon->name,'F'); + if ('error' == $fileType || strpos('?', $fileType) !== false || strpos('&', $fileType) !== false ) + { + $fileType = 'mp3'; // TODO we don't know the url filetype (setting to mp3 but this could be wrong) + } + } + // now build the download file name + return implode('__', $downloadName).'.'.$fileType; + } + + /** + * check Dropbox Local Listing (do we have the files) + **/ + public static function checkDropboxLocalListing($type) + { + $filePath = self::getFilePath($type); + // get the local links + if (self::checkArray(self::${'links_dropbox_'.$type})) + { + // return true we have links loaded + return true; + } + elseif (($jsonlinks = @file_get_contents($filePath)) !== FALSE) + { + if (self::checkString($jsonlinks)) + { + // get saved links + $storeage = json_decode($jsonlinks,true); + if (self::checkArray($storeage)) + { + // load the saved links + self::${'links_dropbox_'.$type} = $storeage; + return true; + } + } + } + return false; + } + + protected static function getFilePath($type, $name = 'listing') + { + if (!self::checkString(self::${$type.$name})) + { + // Get local key + $localkey = self::getLocalKey(); + // set the name + $fileName = md5($type.$name.$localkey); + // set file path + self::${$type.$name} = JPATH_COMPONENT_SITE.'/helpers/'.$fileName.'.json'; + } + // return the path + return self::${$type.$name}; + } + + /** + * get the localkey + **/ + protected static $localkey = false; + + public static function getLocalKey() + { + if (!self::$localkey) + { + // get the main key + self::$localkey = md5(JComponentHelper::getParams('com_sermondistributor')->get('link_encryption', 'localKey34fdWEkl')); + } + return self::$localkey; + } + + public static function updateDropbox($type = false, $force = false) + { + // load the file + JLoader::import('dropboxupdater', JPATH_COMPONENT_SITE.'/helpers'); + // update types + $types = array('manual','auto'); + // okay now update this type + if (self::checkString($type) && in_array($type,$types)) + { + $dropbox = new Dropboxupdater(); + return $dropbox->update($type,$force); + } + return false; + } + + public static function jsonToString($value) + { + // check if string is JSON + $result = json_decode($value, true); + if (json_last_error() === JSON_ERROR_NONE) { + // is JSON + if (self::checkArray($result)) + { + $value = ''; + $counter = 0; + foreach ($result as $string) + { + if ($counter) + { + $value .= ", ".$string; + } + else + { + $value .= $string; + } + $counter++; + } + } + return json_decode($value); + } + return $value; + } + + /** + * Load the Component xml manifest. + **/ + public static function manifest() + { + $manifestUrl = JPATH_ADMINISTRATOR."/components/com_sermondistributor/sermondistributor.xml"; + return simplexml_load_file($manifestUrl); + } + + /** + * Load the Contributors details. + **/ + public static function getContributors() + { + // get params + $params = JComponentHelper::getParams('com_sermondistributor'); + // start contributors array + $contributors = array(); + // get all Contributors (max 20) + $searchArray = range('0','20'); + foreach($searchArray as $nr) + { + if ((NULL !== $params->get("showContributor".$nr)) && ($params->get("showContributor".$nr) == 2 || $params->get("showContributor".$nr) == 3)) + { + // set link based of selected option + if($params->get("useContributor".$nr) == 1) + { + $link_front = '<a href="mailto:'.$params->get("emailContributor".$nr).'" target="_blank">'; + $link_back = '</a>'; + } + elseif($params->get("useContributor".$nr) == 2) + { + $link_front = '<a href="'.$params->get("linkContributor".$nr).'" target="_blank">'; + $link_back = '</a>'; + } + else + { + $link_front = ''; + $link_back = ''; + } + $contributors[$nr]['title'] = self::htmlEscape($params->get("titleContributor".$nr)); + $contributors[$nr]['name'] = $link_front.self::htmlEscape($params->get("nameContributor".$nr)).$link_back; + } + } + return $contributors; + } + + /** + * Load the Component Help URLs. + **/ + public static function getHelpUrl($view) + { + $user = JFactory::getUser(); + $groups = $user->get('groups'); + $db = JFactory::getDbo(); + $query = $db->getQuery(true); + $query->select(array('a.id','a.groups','a.target','a.type','a.article','a.url')); + $query->from('#__sermondistributor_help_document AS a'); + $query->where('a.site_view = '.$db->quote($view)); + $query->where('a.location = 2'); + $query->where('a.published = 1'); + $db->setQuery($query); + $db->execute(); + if($db->getNumRows()) + { + $helps = $db->loadObjectList(); + if (self::checkArray($helps)) + { + foreach ($helps as $nr => $help) + { + if ($help->target == 1) + { + $targetgroups = json_decode($help->groups, true); + if (!array_intersect($targetgroups, $groups)) + { + // [1380] if user not in those target groups then remove the item + unset($helps[$nr]); + continue; + } + } + // [1385] set the return type + switch ($help->type) + { + // [1388] set joomla article + case 1: + return self::loadArticleLink($help->article); + break; + // [1392] set help text + case 2: + return self::loadHelpTextLink($help->id); + break; + // [1396] set Link + case 3: + return $help->url; + break; + } + } + } + } + return false; + } + + /** + * Get the Article Link. + **/ + protected static function loadArticleLink($id) + { + return JURI::root().'index.php?option=com_content&view=article&id='.$id.'&tmpl=component&layout=modal'; + } + + /** + * Get the Help Text Link. + **/ + protected static function loadHelpTextLink($id) + { + $token = JSession::getFormToken(); + return 'index.php?option=com_sermondistributor&task=help.getText&id=' . (int) $id . '&token=' . $token; + } + + /** + * Get any component's model + **/ + public static function getModel($name, $path = JPATH_COMPONENT_SITE, $component = 'sermondistributor') + { + // load some joomla helpers + JLoader::import('joomla.application.component.model'); + // load the model file + JLoader::import( $name, $path . '/models' ); + // return instance + return JModelLegacy::getInstance( $name, $component.'Model' ); + } + + /** + * Add to asset Table + */ + public static function setAsset($id,$table) + { + $parent = JTable::getInstance('Asset'); + $parent->loadByName('com_sermondistributor'); + + $parentId = $parent->id; + $name = 'com_sermondistributor.'.$table.'.'.$id; + $title = ''; + + $asset = JTable::getInstance('Asset'); + $asset->loadByName($name); + + // Check for an error. + $error = $asset->getError(); + + if ($error) + { + $this->setError($error); + + return false; + } + else + { + // Specify how a new or moved node asset is inserted into the tree. + if ($asset->parent_id != $parentId) + { + $asset->setLocation($parentId, 'last-child'); + } + + // Prepare the asset to be stored. + $asset->parent_id = $parentId; + $asset->name = $name; + $asset->title = $title; + // get the default asset rules + $rules = self::getDefaultAssetRules('com_sermondistributor',$table); + if ($rules instanceof JAccessRules) + { + $asset->rules = (string) $rules; + } + + if (!$asset->check() || !$asset->store()) + { + JError::raiseWarning(500, $asset->getError()); + return false; + } + else + { + // Create an asset_id or heal one that is corrupted. + $object = new stdClass(); + + // Must be a valid primary key value. + $object->id = $id; + $object->asset_id = (int) $asset->id; + + // Update their asset_id to link to the asset table. + return JFactory::getDbo()->updateObject('#__sermondistributor_'.$table, $object, 'id'); + } + } + return false; + } + + /** + * Gets the default asset Rules for a component/view. + */ + protected static function getDefaultAssetRules($component,$view) + { + // Need to find the asset id by the name of the component. + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select($db->quoteName('id')) + ->from($db->quoteName('#__assets')) + ->where($db->quoteName('name') . ' = ' . $db->quote($component)); + $db->setQuery($query); + $db->execute(); + if ($db->loadRowList()) + { + // asset alread set so use saved rules + $assetId = (int) $db->loadResult(); + $result = JAccess::getAssetRules($assetId); + if ($result instanceof JAccessRules) + { + $_result = (string) $result; + $_result = json_decode($_result); + foreach ($_result as $name => &$rule) + { + $v = explode('.', $name); + if ($view !== $v[0]) + { + // remove since it is not part of this view + unset($_result->$name); + } + else + { + // clear the value since we inherit + $rule = array(); + } + } + // check if there are any view values remaining + if (count($_result)) + { + $_result = json_encode($_result); + $_result = array($_result); + // Instantiate and return the JAccessRules object for the asset rules. + $rules = new JAccessRules($_result); + + return $rules; + } + return $result; + } + } + return JAccess::getAssetRules(0); + } + + public static function renderBoolButton() + { + $args = func_get_args(); + + // get the radio element + $button = JFormHelper::loadFieldType('radio'); + + // setup the properties + $name = self::htmlEscape($args[0]); + $additional = isset($args[1]) ? (string) $args[1] : ''; + $value = $args[2]; + $yes = isset($args[3]) ? self::htmlEscape($args[3]) : 'JYES'; + $no = isset($args[4]) ? self::htmlEscape($args[4]) : 'JNO'; + + // prepare the xml + $element = new SimpleXMLElement('<field name="'.$name.'" type="radio" class="btn-group"><option '.$additional.' value="0">'.$no.'</option><option '.$additional.' value="1">'.$yes.'</option></field>'); + + // run + $button->setup($element, $value); + + return $button->input; + + } + + /** + * UIKIT Component Classes + **/ + public static $uk_components = array( + 'data-uk-grid' => array( + 'grid' ), + 'uk-accordion' => array( + 'accordion' ), + 'uk-autocomplete' => array( + 'autocomplete' ), + 'data-uk-datepicker' => array( + 'datepicker' ), + 'uk-form-password' => array( + 'form-password' ), + 'uk-form-select' => array( + 'form-select' ), + 'data-uk-htmleditor' => array( + 'htmleditor' ), + 'data-uk-lightbox' => array( + 'lightbox' ), + 'uk-nestable' => array( + 'nestable' ), + 'UIkit.notify' => array( + 'notify' ), + 'data-uk-parallax' => array( + 'parallax' ), + 'uk-search' => array( + 'search' ), + 'uk-slider' => array( + 'slider' ), + 'uk-slideset' => array( + 'slideset' ), + 'uk-slideshow' => array( + 'slideshow', + 'slideshow-fx' ), + 'uk-sortable' => array( + 'sortable' ), + 'data-uk-sticky' => array( + 'sticky' ), + 'data-uk-timepicker' => array( + 'timepicker' ), + 'data-uk-tooltip' => array( + 'tooltip' ), + 'upload-drop' => array( + 'upload' ) + ); + + /** + * Add UIKIT Components + **/ + public static $uikit = false; + + /** + * Get UIKIT Components + **/ + public static function getUikitComp($content,$classes = array()) + { + if (strpos($content,'class="uk-') !== false) + { + // [2594] reset + $temp = array(); + foreach (self::$uk_components as $looking => $add) + { + if (strpos($content,$looking) !== false) + { + $temp[] = $looking; + } + } + // [2603] make sure uikit is loaded to config + if (strpos($content,'class="uk-') !== false) + { + self::$uikit = true; + } + // [2608] sorter + if (self::checkArray($temp)) + { + // [2611] merger + if (self::checkArray($classes)) + { + $newTemp = array_merge($temp,$classes); + $temp = array_unique($newTemp); + } + return $temp; + } + } + if (self::checkArray($classes)) + { + return $classes; + } + return false; + } + + public static function getVar($table, $where = null, $whereString = 'user', $what = 'id', $operator = '=', $main = 'sermondistributor') + { + if(!$where) + { + $where = JFactory::getUser()->id; + } + // Get a db connection. + $db = JFactory::getDbo(); + // Create a new query object. + $query = $db->getQuery(true); + + $query->select($db->quoteName(array($what))); + $query->from($db->quoteName('#__'.$main.'_'.$table)); + if (is_numeric($where)) + { + $query->where($db->quoteName($whereString) . ' '.$operator.' '.(int) $where); + } + elseif (is_string($where)) + { + $query->where($db->quoteName($whereString) . ' '.$operator.' '. $db->quote((string)$where)); + } + else + { + return false; + } + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + return $db->loadResult(); + } + return false; + } + + public static function getVars($table, $where = null, $whereString = 'user', $what = 'id', $operator = 'IN', $main = 'sermondistributor', $unique = true) + { + if(!$where) + { + $where = JFactory::getUser()->id; + } + + if (!self::checkArray($where) && $where > 0) + { + $where = array($where); + } + + if (self::checkArray($where)) + { + // Get a db connection. + $db = JFactory::getDbo(); + // Create a new query object. + $query = $db->getQuery(true); + + $query->select($db->quoteName(array($what))); + $query->from($db->quoteName('#__'.$main.'_'.$table)); + $query->where($db->quoteName($whereString) . ' '.$operator.' (' . implode(',',$where) . ')'); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + if ($unique) + { + return array_unique($db->loadColumn()); + } + return $db->loadColumn(); + } + } + return false; + } + + /** + * Get the actions permissions + **/ + public static function getActions($view,&$record = null,$views = null) + { + jimport('joomla.access.access'); + + $user = JFactory::getUser(); + $result = new JObject; + $view = self::safeString($view); + if (self::checkString($views)) + { + $views = self::safeString($views); + } + // get all actions from component + $actions = JAccess::getActions('com_sermondistributor', 'component'); + // set acctions only set in component settiongs + $componentActions = array('core.admin','core.manage','core.options','core.export'); + // loop the actions and set the permissions + foreach ($actions as $action) + { + // set to use component default + $allow = true; + if (self::checkObject($record) && isset($record->id) && $record->id > 0 && !in_array($action->name,$componentActions)) + { + // The record has been set. Check the record permissions. + $permission = $user->authorise($action->name, 'com_sermondistributor.'.$view.'.' . (int) $record->id); + if (!$permission && !is_null($permission)) + { + if ($action->name == 'core.edit' || $action->name == $view.'.edit') + { + if ($user->authorise('core.edit.own', 'com_sermondistributor.'.$view.'.' . (int) $record->id)) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + elseif ($user->authorise($view.'edit.own', 'com_sermondistributor.'.$view.'.' . (int) $record->id)) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + elseif ($user->authorise('core.edit.own', 'com_sermondistributor')) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + elseif ($user->authorise($view.'edit.own', 'com_sermondistributor')) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + } + } + elseif (self::checkString($views) && isset($record->catid) && $record->catid > 0) + { + // make sure we use the core. action check for the categories + if (strpos($action->name,$view) !== false && strpos($action->name,'core.') === false ) { + $coreCheck = explode('.',$action->name); + $coreCheck[0] = 'core'; + $categoryCheck = implode('.',$coreCheck); + } + else + { + $categoryCheck = $action->name; + } + // The record has a category. Check the category permissions. + $catpermission = $user->authorise($categoryCheck, 'com_sermondistributor.'.$views.'.category.' . (int) $record->catid); + if (!$catpermission && !is_null($catpermission)) + { + if ($action->name == 'core.edit' || $action->name == $view.'.edit') + { + if ($user->authorise('core.edit.own', 'com_sermondistributor.'.$views.'.category.' . (int) $record->catid)) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + elseif ($user->authorise($view.'edit.own', 'com_sermondistributor.'.$views.'.category.' . (int) $record->catid)) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + elseif ($user->authorise('core.edit.own', 'com_sermondistributor')) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + elseif ($user->authorise($view.'edit.own', 'com_sermondistributor')) + { + // If the owner matches 'me' then allow. + if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id)) + { + $result->set($action->name, true); + // set not to use component default + $allow = false; + } + else + { + $result->set($action->name, false); + // set not to use component default + $allow = false; + } + } + } + } + } + } + // if allowed then fall back on component global settings + if ($allow) + { + $result->set($action->name, $user->authorise($action->name, 'com_sermondistributor')); + } + } + return $result; + } + + public static function checkObject($object) + { + if (isset($object) && is_object($object) && count($object) > 0) + { + return true; + } + return false; + } + + public static function checkArray($array) + { + if (isset($array) && is_array($array) && count($array) > 0) + { + return true; + } + return false; + } + + public static function checkString($string) + { + if (isset($string) && is_string($string) && strlen($string) > 0) + { + return true; + } + return false; + } + + public static function mergeArrays($arrays) + { + if(self::checkArray($arrays)) + { + $arrayBuket = array(); + foreach ($arrays as $array) + { + if (self::checkArray($array)) + { + $arrayBuket = array_merge($arrayBuket, $array); + } + } + return $arrayBuket; + } + return false; + } + + public static function sorten($string, $length = 40, $addTip = true) + { + if (self::checkString($string)) + { + $initial = strlen($string); + $words = preg_split('/([\s\n\r]+)/', $string, null, PREG_SPLIT_DELIM_CAPTURE); + $words_count = count($words); + + $word_length = 0; + $last_word = 0; + for (; $last_word < $words_count; ++$last_word) + { + $word_length += strlen($words[$last_word]); + if ($word_length > $length) + { + break; + } + } + + $newString = implode(array_slice($words, 0, $last_word)); + $final = strlen($newString); + if ($initial != $final && $addTip) + { + $title = self::sorten($string, 400 , false); + return '<span class="hasTip" title="'.$title.'" style="cursor:help">'.trim($newString).'...</span>'; + } + elseif ($initial != $final && !$addTip) + { + return trim($newString).'...'; + } + } + return $string; + } + + public static function safeString($string, $type = 'L', $spacer = '_') + { + // remove all numbers and replace with english text version (works well only up to a thousand) + $string = self::replaceNumbers($string); + + if (self::checkString($string)) + { + // remove all other characters + $string = trim($string); + $string = preg_replace('/'.$spacer.'+/', ' ', $string); + $string = preg_replace('/\s+/', ' ', $string); + $string = preg_replace("/[^A-Za-z ]/", '', $string); + // return a string with all first letter of each word uppercase(no undersocre) + if ($type == 'W') + { + return ucwords(strtolower($string)); + } + elseif ($type == 'w') + { + return strtolower($string); + } + elseif ($type == 'Ww') + { + return ucfirst(strtolower($string)); + } + elseif ($type == 'WW') + { + return strtoupper($string); + } + elseif ($type == 'U') + { + // replace white space with underscore + $string = preg_replace('/\s+/', $spacer, $string); + // return all upper + return strtoupper($string); + } + elseif ($type == 'F') + { + // replace white space with underscore + $string = preg_replace('/\s+/', $spacer, $string); + // return with first caracter to upper + return ucfirst(strtolower($string)); + } + elseif ($type == 'L') + { + // replace white space with underscore + $string = preg_replace('/\s+/', $spacer, $string); + // default is to return lower + return strtolower($string); + } + + // return string + return $string; + } + // not a string + return ''; + } + + public static function htmlEscape($var, $charset = 'UTF-8', $sorten = false, $length = 40) + { + if (self::checkString($var)) + { + $filter = new JFilterInput(); + $string = $filter->clean(html_entity_decode(htmlentities($var, ENT_COMPAT, $charset)), 'HTML'); + if ($sorten) + { + return self::sorten($string,$length); + } + return $string; + } + else + { + return ''; + } + } + + public static function replaceNumbers($string) + { + // set numbers array + $numbers = array(); + // first get all numbers + preg_match_all('!\d+!', $string, $numbers); + // check if we have any numbers + if (isset($numbers[0]) && self::checkArray($numbers[0])) + { + foreach ($numbers[0] as $number) + { + $searchReplace[$number] = self::numberToString((int)$number); + } + // now replace numbers in string + $string = str_replace(array_keys($searchReplace), array_values($searchReplace),$string); + // check if we missed any, strange if we did. + return self::replaceNumbers($string); + } + // return the string with no numbers remaining. + return $string; + } + + /** + * Convert an integer into an English word string + * Thanks to Tom Nicholson <http://php.net/manual/en/function.strval.php#41988> + * + * @input an int + * @returns a string + **/ + public static function numberToString($x) + { + $nwords = array( "zero", "one", "two", "three", "four", "five", "six", "seven", + "eight", "nine", "ten", "eleven", "twelve", "thirteen", + "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", + "nineteen", "twenty", 30 => "thirty", 40 => "forty", + 50 => "fifty", 60 => "sixty", 70 => "seventy", 80 => "eighty", + 90 => "ninety" ); + + if(!is_numeric($x)) + { + $w = $x; + } + elseif(fmod($x, 1) != 0) + { + $w = $x; + } + else + { + if($x < 0) + { + $w = 'minus '; + $x = -$x; + } + else + { + $w = ''; + // ... now $x is a non-negative integer. + } + + if($x < 21) // 0 to 20 + { + $w .= $nwords[$x]; + } + elseif($x < 100) // 21 to 99 + { + $w .= $nwords[10 * floor($x/10)]; + $r = fmod($x, 10); + if($r > 0) + { + $w .= ' '. $nwords[$r]; + } + } + elseif($x < 1000) // 100 to 999 + { + $w .= $nwords[floor($x/100)] .' hundred'; + $r = fmod($x, 100); + if($r > 0) + { + $w .= ' and '. self::numberToString($r); + } + } + elseif($x < 1000000) // 1000 to 999999 + { + $w .= self::numberToString(floor($x/1000)) .' thousand'; + $r = fmod($x, 1000); + if($r > 0) + { + $w .= ' '; + if($r < 100) + { + $w .= 'and '; + } + $w .= self::numberToString($r); + } + } + else // millions + { + $w .= self::numberToString(floor($x/1000000)) .' million'; + $r = fmod($x, 1000000); + if($r > 0) + { + $w .= ' '; + if($r < 100) + { + $word .= 'and '; + } + $w .= self::numberToString($r); + } + } + } + return $w; + } + + /** + * Random Key + * + * @returns a string + **/ + public static function randomkey($size) + { + $bag = "abcefghijknopqrstuwxyzABCDDEFGHIJKLLMMNOPQRSTUVVWXYZabcddefghijkllmmnopqrstuvvwxyzABCEFGHIJKNOPQRSTUWXYZ"; + $key = array(); + $bagsize = strlen($bag) - 1; + for ($i = 0; $i < $size; $i++) + { + $get = rand(0, $bagsize); + $key[] = $bag[$get]; + } + return implode($key); + } +} diff --git a/site/index.html b/site/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/language/en-GB/en-GB.com_sermondistributor.ini b/site/language/en-GB/en-GB.com_sermondistributor.ini new file mode 100644 index 00000000..291a8b63 --- /dev/null +++ b/site/language/en-GB/en-GB.com_sermondistributor.ini @@ -0,0 +1,68 @@ +COM_CONTENT_FIELD_MODIFIED_DESC="The last date this item was modified." +COM_SERMONDISTRIBUTOR="Sermon Distributor" +COM_SERMONDISTRIBUTOR_CATEGORIES="Categories" +COM_SERMONDISTRIBUTOR_CATEGORIES_DESC="All categories that are published" +COM_SERMONDISTRIBUTOR_CATEGORY="Category" +COM_SERMONDISTRIBUTOR_CATEGORY_ASC="Category (Asc)" +COM_SERMONDISTRIBUTOR_CATEGORY_DESC="Category (Desc)" +COM_SERMONDISTRIBUTOR_DESCRIPTION="Description" +COM_SERMONDISTRIBUTOR_DOWNLOAD="Download" +COM_SERMONDISTRIBUTOR_DOWNLOADS="Downloads" +COM_SERMONDISTRIBUTOR_DOWNLOADS_ASC="Downloads (Asc)" +COM_SERMONDISTRIBUTOR_DOWNLOADS_DESC="Downloads (Desc)" +COM_SERMONDISTRIBUTOR_DOWNLOAD_COUNTER="Download Counter" +COM_SERMONDISTRIBUTOR_DROPBOX="Dropbox" +COM_SERMONDISTRIBUTOR_EMAIL="Email" +COM_SERMONDISTRIBUTOR_FILES="Files" +COM_SERMONDISTRIBUTOR_GO_TO_WEBSITE_OF="Go to website of" +COM_SERMONDISTRIBUTOR_HITS="Hits" +COM_SERMONDISTRIBUTOR_HITS_ASC="Hits (Asc)" +COM_SERMONDISTRIBUTOR_HITS_DESC="Hits (Desc)" +COM_SERMONDISTRIBUTOR_NAME="Name" +COM_SERMONDISTRIBUTOR_NAME_ASC="Name (Asc)" +COM_SERMONDISTRIBUTOR_NAME_DESC="Name (Desc)" +COM_SERMONDISTRIBUTOR_NO_CATEGORIES_WERE_FOUND="No categories were found." +COM_SERMONDISTRIBUTOR_NO_CATEGORY_WAS_FOUND="No category was found." +COM_SERMONDISTRIBUTOR_NO_PREACHERS_WERE_FOUND="No preachers were found." +COM_SERMONDISTRIBUTOR_NO_PREACHER_WAS_FOUND="No preacher was found." +COM_SERMONDISTRIBUTOR_NO_SERIES_WAS_FOUND="No series was found." +COM_SERMONDISTRIBUTOR_NO_SERIES_WERE_FOUND="No Series were found." +COM_SERMONDISTRIBUTOR_NO_SERMONS_WERE_FOUND="No sermons were found." +COM_SERMONDISTRIBUTOR_NO_SERMON_WAS_FOUND="No sermon was found." +COM_SERMONDISTRIBUTOR_OPEN="Open" +COM_SERMONDISTRIBUTOR_OPEN_SERMON="Open Sermon" +COM_SERMONDISTRIBUTOR_PLAY_AUDIO_FILE="Play Audio File" +COM_SERMONDISTRIBUTOR_PREACHER="Preacher" +COM_SERMONDISTRIBUTOR_PREACHERS="Preachers" +COM_SERMONDISTRIBUTOR_PREACHERS_DESC="All preachers that are published" +COM_SERMONDISTRIBUTOR_PREACHER_ASC="Preacher (Asc)" +COM_SERMONDISTRIBUTOR_PREACHER_DESC="Preacher (Desc)" +COM_SERMONDISTRIBUTOR_SAVE_TO_YOUR_DROPBOX="Save to your Dropbox" +COM_SERMONDISTRIBUTOR_SEND_EMAIL_TO="Send email to" +COM_SERMONDISTRIBUTOR_SERIES="Series" +COM_SERMONDISTRIBUTOR_SERIESLIST="Series List" +COM_SERMONDISTRIBUTOR_SERIESLIST_DESC="All series that are published" +COM_SERMONDISTRIBUTOR_SERIES_ASC="Series (Asc)" +COM_SERMONDISTRIBUTOR_SERIES_DESC="Series (Desc)" +COM_SERMONDISTRIBUTOR_SERMON="Sermon" +COM_SERMONDISTRIBUTOR_SERMONS_COUNT_ASC="Sermons Count (Asc)" +COM_SERMONDISTRIBUTOR_SERMONS_COUNT_DESC="Sermons Count (Desc)" +COM_SERMONDISTRIBUTOR_SERMON_COUNT="Sermon Count" +COM_SERMONDISTRIBUTOR_SERMON_DESC="A series that is published" +COM_SERMONDISTRIBUTOR_SERMON_DOWNLOAD_COUNT="Sermon Download Count" +COM_SERMONDISTRIBUTOR_SERMON_DOWNLOAD_COUNTER_TOTAL="Sermon Download Counter Total" +COM_SERMONDISTRIBUTOR_SERMON_TOTAL_DOWNLOADS="Sermon Total Downloads" +COM_SERMONDISTRIBUTOR_TOTAL_DOWNLOADS="Total Downloads" +COM_SERMONDISTRIBUTOR_WEBSITE="Website" +JGLOBAL_FIELD_ID_DESC="Record number in the database." +JGLOBAL_FIELD_ID_LABEL="ID" +JGLOBAL_FIELD_MODIFIED_BY_DESC="The user who did the last modification." +JGLOBAL_FIELD_MODIFIED_BY_LABEL="Modified By" +JGLOBAL_FIELD_MODIFIED_LABEL="Modified Date" +JTOOLBAR_APPLY="Save" +JTOOLBAR_CANCEL="Cancel" +JTOOLBAR_CLOSE="Close" +JTOOLBAR_HELP="Help" +JTOOLBAR_SAVE="Save & Close" +JTOOLBAR_SAVE_AND_NEW="Save & New" +JTOOLBAR_SAVE_AS_COPY="Save as Copy" diff --git a/site/language/en-GB/en-GB.com_sermondistributor.sys.ini b/site/language/en-GB/en-GB.com_sermondistributor.sys.ini new file mode 100644 index 00000000..1199ce16 --- /dev/null +++ b/site/language/en-GB/en-GB.com_sermondistributor.sys.ini @@ -0,0 +1 @@ +COM_SERMONDISTRIBUTOR="Sermon Distributor" diff --git a/site/language/en-GB/index.html b/site/language/en-GB/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/language/en-GB/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/language/index.html b/site/language/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/language/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/layouts/addtodropboxbutton.php b/site/layouts/addtodropboxbutton.php new file mode 100644 index 00000000..5644239b --- /dev/null +++ b/site/layouts/addtodropboxbutton.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage addtodropboxbutton.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + + + +?> +<?php if ($displayData->params->get('add_to_dropbox') && isset($displayData->dropbox_buttons)): ?> + <?php if (count($displayData->dropbox_buttons) == 1): ?> + <?php foreach ($displayData->dropbox_buttons as $filename => $link): ?> + <a class="uk-button uk-margin-small-bottom uk-width-1-1" target="_blank"<?php echo $displayData->onclick_drobox[$filename]; ?> href="<?php echo $link; ?>" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SAVE_TO_YOUR_DROPBOX'); ?>"><i class="uk-icon-dropbox"></i> <?php echo JText::_('COM_SERMONDISTRIBUTOR_DROPBOX'); ?></a> + <?php endforeach; ?> + <?php elseif (count($displayData->dropbox_buttons) > 1): ?> + <?php $modalId = SermondistributorHelper::randomkey(5); ?> + <button class="uk-button uk-margin-small-bottom uk-width-1-1" data-uk-modal="{target:'#download-<?php echo $modalId; ?>'}" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SAVE_TO_YOUR_DROPBOX'); ?>"><i class="uk-icon-dropbox"></i> <?php echo JText::_('COM_SERMONDISTRIBUTOR_DROPBOX'); ?></button> + <div id="download-<?php echo $modalId; ?>" class="uk-modal"> + <div class="uk-modal-dialog"> + <a class="uk-modal-close uk-close"></a> + <ul class="uk-list"> + <?php $num = 'A'; foreach ($displayData->dropbox_buttons as $filename => $link): ?> + <li> + <a class="uk-button uk-margin-small-bottom uk-width-1-1" target="_blank"<?php echo $displayData->onclick_drobox[$filename]; ?> href="<?php echo $link; ?>" title="<?php echo $filename; ?>"> + <i class="uk-icon-dropbox"></i> <?php echo JText::_('COM_SERMONDISTRIBUTOR_SAVE_TO_YOUR_DROPBOX').' '.$num; $num++;?> + </a> + </li> + <?php endforeach; ?> + </ul> + </div> + </div> + <?php endif; ?> +<?php endif; ?> diff --git a/site/layouts/addtodropboxicon.php b/site/layouts/addtodropboxicon.php new file mode 100644 index 00000000..1683cbe6 --- /dev/null +++ b/site/layouts/addtodropboxicon.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage addtodropboxicon.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + + + +?> +<?php if ($displayData->params->get('add_to_dropbox') && isset($displayData->dropbox_buttons)): ?> + <?php if (count($displayData->dropbox_buttons) == 1): ?> + <?php foreach ($displayData->dropbox_buttons as $filename => $link): ?> + <a class="uk-icon-hover uk-icon-dropbox" target="_blank"<?php echo $displayData->onclick_drobox[$filename]; ?> href="<?php echo $link; ?>" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SAVE_TO_YOUR_DROPBOX'); ?>"></a> + <?php endforeach; ?> + <?php elseif (count($displayData->dropbox_buttons) > 1): ?> + <?php $modalId = SermondistributorHelper::randomkey(5); ?> + <a class="uk-icon-hover uk-icon-dropbox" data-uk-modal href="#download-<?php echo $modalId; ?>" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SAVE_TO_YOUR_DROPBOX'); ?>"></a> + <div id="download-<?php echo $modalId; ?>" class="uk-modal"> + <div class="uk-modal-dialog"> + <a class="uk-modal-close uk-close"></a> + <ul class="uk-list"> + <?php $num = 'A'; foreach ($displayData->dropbox_buttons as $filename => $link): ?> + <li> + <a class="uk-button uk-margin-small-bottom uk-width-1-1"<?php echo $displayData->onclick_drobox[$filename]; ?> target="_blank" href="<?php echo $link; ?>" title="<?php echo $filename; ?>"> + <i class="uk-icon-dropbox"></i> <?php echo JText::_('COM_SERMONDISTRIBUTOR_SAVE_TO_YOUR_DROPBOX').' '.$num; $num++;?> + </a> + </li> + <?php endforeach; ?> + </ul> + </div> + </div> + <?php endif; ?> +<?php endif; ?> diff --git a/site/layouts/audioplayer.php b/site/layouts/audioplayer.php new file mode 100644 index 00000000..afc998f1 --- /dev/null +++ b/site/layouts/audioplayer.php @@ -0,0 +1,30 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage audioplayer.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + + + +?> +<div class="ui360"> + <a href="<?php echo $displayData['link']; ?>" title="<?php echo $displayData['filename']; ?>"><?php echo $displayData['name']; ?></a> +</div> diff --git a/site/layouts/categorieslistitem.php b/site/layouts/categorieslistitem.php new file mode 100644 index 00000000..37a1b5b5 --- /dev/null +++ b/site/layouts/categorieslistitem.php @@ -0,0 +1,34 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage categorieslistitem.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + + + +?> +<a <?php if ($displayData->params->get('categories_sermon_count')): ?> data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); ?>: <?php echo count($displayData->idSeriesSermonB); ?>" <?php endif; ?>href="<?php echo $displayData->link; ?>"><?php echo $displayData->name; ?></a> +<?php if ($displayData->params->get('categories_desc') && $displayData->desc): ?> + <?php echo $displayData->desc; ?> +<?php endif; ?> +<?php if ($displayData->params->get('categories_hits')): ?> + <em><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $displayData->hits; ?></em> +<?php endif ;?> diff --git a/site/layouts/categoriespanel.php b/site/layouts/categoriespanel.php new file mode 100644 index 00000000..669b3362 --- /dev/null +++ b/site/layouts/categoriespanel.php @@ -0,0 +1,60 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage categoriespanel.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + + + +?> +<div class="uk-panel uk-panel-box"> + <?php if ($displayData->params->get('categories_hits')): ?> + <?php + $hits_state = ($displayData->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-panel-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $displayData->hits; ?> + </div> + <?php endif ;?> + <h3 class="uk-panel-title"><?php echo $displayData->name; ?></h3> + <?php if ($displayData->params->get('categories_icon')): ?> + <?php $displayData->icon = (isset($displayData->icon) && $displayData->icon) ? $displayData->icon : $displayData->params->get('category_default_icon'); ?> + <?php if ($displayData->icon): ?> + <a href="<?php echo $displayData->link; ?>"> + <img class="uk-thumbnail uk-thumbnail-expand" src="<?php echo $displayData->icon; ?>" alt="<?php echo $displayData->name; ?>"> + </a> + <hr /> + <?php endif; ?> + <?php endif; ?> + <?php if ($displayData->params->get('categories_desc') && $displayData->desc): ?> + <?php echo $displayData->desc; ?> + <hr /> + <?php endif; ?> + <a class="uk-button uk-width-1-1 uk-margin-small-bottom uk-button-success" href="<?php echo $displayData->link; ?>"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_OPEN'); ?> + <?php if ($displayData->params->get('categories_sermon_count')): ?> + <span data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); ?>">(<?php echo count($displayData->idCatidSermonB); ?>)</span> + <?php endif; ?> + </a> +</div> diff --git a/site/layouts/categoriesrow.php b/site/layouts/categoriesrow.php new file mode 100644 index 00000000..b233db1f --- /dev/null +++ b/site/layouts/categoriesrow.php @@ -0,0 +1,56 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage categoriesrow.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + + + +?> +<td data-value="<?php echo $displayData->alias; ?>"> + <a href="<?php echo $displayData->link; ?>"><?php echo $displayData->name; ?></a> +</td> +<?php if ($displayData->params->get('categories_desc')): ?> +<td> + <?php if ($displayData->description): ?> + <?php echo $displayData->description; ?> + <?php endif; ?> +</td> +<?php endif; ?> +<?php if ($displayData->params->get('categories_hits')): ?> +<td data-value="<?php echo $displayData->hits; ?>"> + <?php + $hits_state = ($displayData->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo $displayData->hits; ?> + </div> +</td> +<?php endif ;?> +<?php if ($displayData->params->get('categories_sermon_count')): ?> +<td data-value="<?php echo count($displayData->idSeriesSermonB); ?>"> + <?php $badge_class = (count($displayData->idSeriesSermonB) > 0) ? 'uk-badge-success':'uk-badge-warning'; ?> + <div class="uk-badge uk-badge <?php echo $badge_class; ?>"><?php echo count($displayData->idSeriesSermonB); ?></div> +</td> +<?php endif; ?> diff --git a/site/layouts/downloadsermonbutton.php b/site/layouts/downloadsermonbutton.php new file mode 100644 index 00000000..5a207597 --- /dev/null +++ b/site/layouts/downloadsermonbutton.php @@ -0,0 +1,54 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage downloadsermonbutton.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + + + +?> +<?php if (isset($displayData->download_links) && count($displayData->download_links) == 1): ?> + <?php foreach ($displayData->download_links as $filename => $link): ?> + <a class="uk-button uk-width-1-1 uk-margin-small-bottom uk-button-success"<?php echo $displayData->onclick[$filename]; ?> href="<?php echo $link; ?>" title="<?php echo $filename; ?>"> + <i class="uk-icon-download"></i> <?php echo JText::_('COM_SERMONDISTRIBUTOR_DOWNLOAD'); ?> + </a> + <?php endforeach; ?> +<?php elseif (isset($displayData->download_links) && count($displayData->download_links) > 1): ?> + <?php $modalId = SermondistributorHelper::randomkey(5); ?> + <button class="uk-button uk-width-1-1 uk-button-success" data-uk-modal="{target:'#download-<?php echo $modalId; ?>'}" ><i class="uk-icon-download"></i> <?php echo JText::_('COM_SERMONDISTRIBUTOR_DOWNLOADS'); ?></button> + <div id="download-<?php echo $modalId; ?>" class="uk-modal"> + <div class="uk-modal-dialog"> + <a class="uk-modal-close uk-close"></a> + <ul class="uk-list"> + <?php $num = 'A'; foreach ($displayData->download_links as $filename => $link): ?> + <li> + <a class="uk-button uk-margin-small-bottom uk-width-1-1 uk-button-success"<?php echo $displayData->onclick[$filename]; ?> href="<?php echo $link; ?>" title="<?php echo $filename; ?>"> + <i class="uk-icon-download"></i> <?php echo JText::_('COM_SERMONDISTRIBUTOR_DOWNLOAD').' '.$num; $num++;?> + <?php if ($displayData->params->get($displayData->viewKey.'_sermons_download_counter') && isset($displayData->statistic[$filename])): ?> + <span data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_DOWNLOAD_COUNTER'); ?>">(<?php echo $displayData->statistic[$filename]; ?>)</span> + <?php endif; ?> + </a> + </li> + <?php endforeach; ?> + </ul> + </div> + </div> +<?php endif; ?> diff --git a/site/layouts/index.html b/site/layouts/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/layouts/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/layouts/mediaplayer.php b/site/layouts/mediaplayer.php new file mode 100644 index 00000000..6b554caf --- /dev/null +++ b/site/layouts/mediaplayer.php @@ -0,0 +1,52 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage mediaplayer.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + +$players = array(); +$num = 'A'; +if (isset($displayData->download_links) && count($displayData->download_links)) +{ + foreach ($displayData->download_links as $filename => $link) + { + if (strpos($filename, '.mp3') !== false) // TODO only mp3 at this time + { + $audio['link'] = $link; + if (1 == count($displayData->download_links)) + { + $audio['name'] = JText::_('COM_SERMONDISTRIBUTOR_PLAY_AUDIO_FILE'); + } + else + { + $audio['name'] = JText::_('COM_SERMONDISTRIBUTOR_PLAY_AUDIO_FILE').' '.$num; + } + $audio['filename'] = $filename; + $players[] = JLayoutHelper::render('audioplayer', $audio); + $num++; + } + } +} + +?> +<?php if (SermondistributorHelper::checkArray($players)): ?> + <li><?php echo implode('',$players); ?></li> +<?php endif; ?> diff --git a/site/layouts/opensermonbutton.php b/site/layouts/opensermonbutton.php new file mode 100644 index 00000000..64f315f3 --- /dev/null +++ b/site/layouts/opensermonbutton.php @@ -0,0 +1,91 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage opensermonbutton.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + + + +?> +<?php if ($displayData->params->get($displayData->viewKey.'_sermons_open') && $displayData->params->get('add_to_dropbox') && isset($displayData->dropbox_buttons)): ?> + <div class="uk-button-group uk-width-1-1"> + <a class="uk-button uk-margin-small-bottom uk-width-4-5 uk-button-primary" href="<?php echo $displayData->link; ?>" title="<?php echo $displayData->name; ?>"> + <i class="uk-icon-check"></i> <?php echo JText::_('COM_SERMONDISTRIBUTOR_OPEN'); ?> + <?php if ($displayData->params->get($displayData->viewKey.'_sermons_download_counter') && isset($displayData->statisticTotal)): ?> + <span data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_DOWNLOAD_COUNTER_TOTAL'); ?>">(<?php echo $displayData->statisticTotal; ?>)</span> + <?php endif; ?> + </a> + <?php if (count($displayData->dropbox_buttons) == 1): ?> + <?php foreach ($displayData->dropbox_buttons as $filename => $link): ?> + <a class="uk-button uk-margin-small-bottom uk-width-1-5" target="_blank"<?php echo $displayData->onclick_drobox[$filename]; ?> href="<?php echo $link; ?>" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SAVE_TO_YOUR_DROPBOX'); ?>"><i class="uk-icon-dropbox"></i></a> + <?php endforeach; ?> + <?php elseif (count($displayData->dropbox_buttons) > 1): ?> + <?php $modalId = SermondistributorHelper::randomkey(5); ?> + <button class="uk-button uk-margin-small-bottom uk-width-1-5" data-uk-modal="{target:'#download-<?php echo $modalId; ?>'}" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SAVE_TO_YOUR_DROPBOX'); ?>"><i class="uk-icon-dropbox"></i></button> + <?php endif; ?> + </div> + <?php if (count($displayData->dropbox_buttons) > 1): ?> + <div id="download-<?php echo $modalId; ?>" class="uk-modal"> + <div class="uk-modal-dialog"> + <a class="uk-modal-close uk-close"></a> + <ul class="uk-list"> + <?php $num = 'A'; foreach ($displayData->dropbox_buttons as $filename => $link): ?> + <li> + <a class="uk-button uk-margin-small-bottom uk-width-1-1" target="_blank"<?php echo $displayData->onclick_drobox[$filename]; ?> href="<?php echo $link; ?>" title="<?php echo $filename; ?>"> + <i class="uk-icon-dropbox"></i> <?php echo JText::_('COM_SERMONDISTRIBUTOR_SAVE_TO_YOUR_DROPBOX').' '.$num; $num++;?> + </a> + </li> + <?php endforeach; ?> + </ul> + </div> + </div> + <?php endif; ?> +<?php elseif ($displayData->params->get($displayData->viewKey.'_sermons_open')): ?> + <a class="uk-button uk-width-1-1 uk-margin-small-bottom uk-button-primary" href="<?php echo $displayData->link; ?>" title="<?php echo $displayData->name; ?>"> + <i class="uk-icon-check"></i> <?php echo JText::_('COM_SERMONDISTRIBUTOR_OPEN'); ?> + <?php if ($displayData->params->get($displayData->viewKey.'_sermons_download_counter') && isset($displayData->statisticTotal)): ?> + <span data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_DOWNLOAD_COUNTER_TOTAL'); ?>">(<?php echo $displayData->statisticTotal; ?>)</span> + <?php endif; ?> + </a> +<?php elseif ($displayData->params->get('add_to_dropbox') && isset($displayData->dropbox_buttons)): ?> + <?php if (count($displayData->dropbox_buttons) == 1): ?> + <?php foreach ($displayData->dropbox_buttons as $filename => $link): ?> + <a class="uk-button uk-margin-small-bottom uk-width-1-1" target="_blank"<?php echo $displayData->onclick_drobox[$filename]; ?> href="<?php echo $link; ?>" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SAVE_TO_YOUR_DROPBOX'); ?>"><i class="uk-icon-dropbox"></i> <?php echo JText::_('COM_SERMONDISTRIBUTOR_DROPBOX'); ?></a> + <?php endforeach; ?> + <?php elseif (count($displayData->dropbox_buttons) > 1): ?> + <?php $modalId = SermondistributorHelper::randomkey(5); ?> + <button class="uk-button uk-margin-small-bottom uk-width-1-1" data-uk-modal="{target:'#download-<?php echo $modalId; ?>'}" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SAVE_TO_YOUR_DROPBOX'); ?>"><i class="uk-icon-dropbox"></i> <?php echo JText::_('COM_SERMONDISTRIBUTOR_DROPBOX'); ?></button> + <div id="download-<?php echo $modalId; ?>" class="uk-modal"> + <div class="uk-modal-dialog"> + <a class="uk-modal-close uk-close"></a> + <ul class="uk-list"> + <?php $num = 'A'; foreach ($displayData->dropbox_buttons as $filename => $link): ?> + <li> + <a class="uk-button uk-margin-small-bottom uk-width-1-1"<?php echo $displayData->onclick_drobox[$filename]; ?> target="_blank" href="<?php echo $link; ?>" title="<?php echo $filename; ?>"> + <i class="uk-icon-dropbox"></i> <?php echo JText::_('COM_SERMONDISTRIBUTOR_SAVE_TO_YOUR_DROPBOX').' '.$num; $num++;?> + </a> + </li> + <?php endforeach; ?> + </ul> + </div> + </div> + <?php endif; ?> +<?php endif; ?> diff --git a/site/layouts/preacherslistitem.php b/site/layouts/preacherslistitem.php new file mode 100644 index 00000000..2049fe2d --- /dev/null +++ b/site/layouts/preacherslistitem.php @@ -0,0 +1,40 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage preacherslistitem.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + + + +?> +<a <?php if ($displayData->params->get('preachers_sermon_count')): ?> data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); ?>: <?php echo count($displayData->idPreacherSermonB); ?>" <?php endif; ?>href="<?php echo $displayData->link; ?>"><?php echo $displayData->name; ?></a> +<?php if ($displayData->params->get('preachers_website')): ?> + <a href="<?php echo $displayData->website; ?>" target="_blank" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_GO_TO_WEBSITE_OF'); ?> <?php echo $displayData->name; ?>"><?php echo $displayData->website; ?></a> +<?php endif ;?> +<?php if ($displayData->params->get('preachers_email')): ?> + <a href="mailto:<?php echo $displayData->email; ?>" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SEND_EMAIL_TO'); ?> <?php echo $displayData->name; ?>"><?php echo $displayData->email; ?></a> +<?php endif ;?> +<?php if ($displayData->params->get('preachers_desc') && $displayData->desc): ?> + <?php echo $displayData->desc; ?> +<?php endif; ?> +<?php if ($displayData->params->get('preachers_hits')): ?> + <em><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $displayData->hits; ?></em> +<?php endif ;?> diff --git a/site/layouts/preacherspanel.php b/site/layouts/preacherspanel.php new file mode 100644 index 00000000..f7cee4b8 --- /dev/null +++ b/site/layouts/preacherspanel.php @@ -0,0 +1,95 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage preacherspanel.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + +// build the list class +$style = $displayData->params->get('preachers_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +?> +<div class="uk-panel uk-panel-box"> + <?php if ($displayData->params->get('preachers_hits')): ?> + <?php + $hits_state = ($displayData->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-panel-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $displayData->hits; ?> + </div> + <?php endif ;?> + <h3 class="uk-panel-title"><?php echo $displayData->name; ?></h3> + <?php if ($displayData->params->get('preachers_icon')): ?> + <?php $displayData->icon = ($displayData->icon) ? $displayData->icon : $displayData->params->get('preacher_default_icon'); ?> + <?php if ($displayData->icon): ?> + <a href="<?php echo $displayData->link; ?>" title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_OPEN'); ?> <?php echo $displayData->name; ?>"> + <img class="uk-thumbnail uk-thumbnail-expand" src="<?php echo $displayData->icon; ?>" alt="<?php echo $displayData->name; ?>"> + </a> + <?php if ($displayData->params->get('preachers_desc') && $displayData->desc): ?> + <hr /> + <?php elseif ((!$displayData->params->get('preachers_website') || !$displayData->website) && (!$displayData->params->get('preachers_email') || !$displayData->email)): ?> + <hr /> + <?php endif; ?> + <?php endif; ?> + <?php endif; ?> + <?php if ($displayData->params->get('preachers_desc') && $displayData->desc): ?> + <?php echo $displayData->desc; ?> + <?php endif; ?> + <?php if (($displayData->params->get('preachers_website') && $displayData->website) || ($displayData->params->get('preachers_email') && $displayData->email)): ?> + <ul class="uk-list<?php echo $listClass; ?>"> + <?php if ($displayData->params->get('preachers_website') && $displayData->website): ?> + <li><i class="uk-icon-external-link"></i> <a href="<?php echo $displayData->website; ?>" target="_blank" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_GO_TO_WEBSITE_OF'); ?> <?php echo $displayData->name; ?>"><?php echo $displayData->website; ?></a></li> + <?php endif; ?> + <?php if ($displayData->params->get('preachers_email') && $displayData->email): ?> + <li><i class="uk-icon-envelope-o"></i> <a href="mailto:<?php echo $displayData->email; ?>" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SEND_EMAIL_TO'); ?> <?php echo $displayData->name; ?>"><?php echo $displayData->email; ?></a></li> + <?php endif; ?> + </ul> + <?php elseif ($displayData->params->get('preachers_desc') && $displayData->desc): ?> + <hr /> + <?php endif; ?> + <a class="uk-button uk-width-1-1 uk-margin-small-bottom uk-button-success" href="<?php echo $displayData->link; ?>" title="<?php echo $displayData->name; ?>"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_OPEN'); ?> + <?php if ($displayData->params->get('preachers_sermon_count')): ?> + <span data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); ?>">(<?php echo count($displayData->idPreacherSermonB); ?>)</span> + <?php endif; ?> + </a> +</div> diff --git a/site/layouts/preachersrow.php b/site/layouts/preachersrow.php new file mode 100644 index 00000000..868a6742 --- /dev/null +++ b/site/layouts/preachersrow.php @@ -0,0 +1,70 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage preachersrow.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + + + +?> +<td data-value="<?php echo $displayData->alias; ?>"> + <a href="<?php echo $displayData->link; ?>"><?php echo $displayData->name; ?></a> +</td> +<?php if ($displayData->params->get('preachers_desc')): ?> +<td> + <?php if ($displayData->description): ?> + <?php echo $displayData->description; ?> + <?php endif; ?> +</td> +<?php endif; ?> +<?php if ($displayData->params->get('preachers_website')): ?> +<td> + <?php if ($displayData->website): ?> + <?php echo $displayData->website; ?> + <?php endif; ?> +</td> +<?php endif; ?> +<?php if ($displayData->params->get('preachers_email')): ?> +<td> + <?php if ($displayData->email): ?> + <?php echo $displayData->email; ?> + <?php endif; ?> +</td> +<?php endif; ?> +<?php if ($displayData->params->get('preachers_hits')): ?> +<td data-value="<?php echo $displayData->hits; ?>"> + <?php + $hits_state = ($displayData->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo $displayData->hits; ?> + </div> +</td> +<?php endif ;?> +<?php if ($displayData->params->get('preachers_sermon_count')): ?> +<td data-value="<?php echo count($displayData->idPreacherSermonB); ?>"> + <?php $badge_class = (count($displayData->idPreacherSermonB) > 0) ? 'uk-badge-success':'uk-badge-warning'; ?> + <div class="uk-badge uk-badge <?php echo $badge_class; ?>"><?php echo count($displayData->idPreacherSermonB); ?></div> +</td> +<?php endif; ?> diff --git a/site/layouts/serieslistitem.php b/site/layouts/serieslistitem.php new file mode 100644 index 00000000..5a2877fe --- /dev/null +++ b/site/layouts/serieslistitem.php @@ -0,0 +1,34 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage serieslistitem.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + + + +?> +<a <?php if ($displayData->params->get('list_series_sermon_count')): ?> data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); ?>: <?php echo count($displayData->idSeriesSermonB); ?>" <?php endif; ?>href="<?php echo $displayData->link; ?>"><?php echo $displayData->name; ?></a> +<?php if ($displayData->params->get('list_series_desc') && $displayData->desc): ?> + <?php echo $displayData->desc; ?> +<?php endif; ?> +<?php if ($displayData->params->get('list_series_hits')): ?> + <em><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $displayData->hits; ?></em> +<?php endif ;?> diff --git a/site/layouts/seriespanel.php b/site/layouts/seriespanel.php new file mode 100644 index 00000000..d968bce4 --- /dev/null +++ b/site/layouts/seriespanel.php @@ -0,0 +1,60 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage seriespanel.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + + + +?> +<div class="uk-panel uk-panel-box"> + <?php if ($displayData->params->get('list_series_hits')): ?> + <?php + $hits_state = ($displayData->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-panel-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $displayData->hits; ?> + </div> + <?php endif ;?> + <h3 class="uk-panel-title"><?php echo $displayData->name; ?></h3> + <?php if ($displayData->params->get('list_series_icon')): ?> + <?php $displayData->icon = ($displayData->icon) ? $displayData->icon : $displayData->params->get('series_default_icon'); ?> + <?php if ($displayData->icon): ?> + <a href="<?php echo $displayData->link; ?>"> + <img class="uk-thumbnail uk-thumbnail-expand" src="<?php echo $displayData->icon; ?>" alt="<?php echo $displayData->name; ?>"> + </a> + <hr /> + <?php endif; ?> + <?php endif; ?> + <?php if ($displayData->params->get('list_series_desc') && $displayData->desc): ?> + <?php echo $displayData->desc; ?> + <hr /> + <?php endif; ?> + <a class="uk-button uk-width-1-1 uk-margin-small-bottom uk-button-success" href="<?php echo $displayData->link; ?>"> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_OPEN'); ?> + <?php if ($displayData->params->get('list_series_sermon_count')): ?> + <span data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); ?>">(<?php echo count($displayData->idSeriesSermonB); ?>)</span> + <?php endif; ?> + </a> +</div> diff --git a/site/layouts/seriesrow.php b/site/layouts/seriesrow.php new file mode 100644 index 00000000..356efba3 --- /dev/null +++ b/site/layouts/seriesrow.php @@ -0,0 +1,56 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage seriesrow.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + + + +?> +<td data-value="<?php echo $displayData->alias; ?>"> + <a href="<?php echo $displayData->link; ?>"><?php echo $displayData->name; ?></a> +</td> +<?php if ($displayData->params->get('list_series_desc')): ?> +<td> + <?php if ($displayData->description): ?> + <?php echo $displayData->description; ?> + <?php endif; ?> +</td> +<?php endif; ?> +<?php if ($displayData->params->get('list_series_hits')): ?> +<td data-value="<?php echo $displayData->hits; ?>"> + <?php + $hits_state = ($displayData->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo $displayData->hits; ?> + </div> +</td> +<?php endif ;?> +<?php if ($displayData->params->get('list_series_sermon_count')): ?> +<td data-value="<?php echo count($displayData->idSeriesSermonB); ?>"> + <?php $badge_class = (count($displayData->idSeriesSermonB) > 0) ? 'uk-badge-success':'uk-badge-warning'; ?> + <div class="uk-badge uk-badge <?php echo $badge_class; ?>"><?php echo count($displayData->idSeriesSermonB); ?></div> +</td> +<?php endif; ?> diff --git a/site/layouts/sermonslistitem.php b/site/layouts/sermonslistitem.php new file mode 100644 index 00000000..5adb3d73 --- /dev/null +++ b/site/layouts/sermonslistitem.php @@ -0,0 +1,45 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermonslistitem.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + + + +?> +<a <?php if ($displayData->params->get($displayData->viewKey.'_sermons_download_count')): ?> data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_DOWNLOAD_COUNT'); ?>: <?php echo 4; ?>" <?php endif; ?>href="<?php echo $displayData->link; ?>"><?php echo $displayData->name; ?></a> +<?php if (('preacher' == $displayData->viewKey || 'category' == $displayData->viewKey) && $displayData->params->get($displayData->viewKey.'_sermons_series')): ?> + <a href="<?php echo $displayData->series_link; ?>" data-uk-tooltip title="<?php echo $displayData->series_name; ?>"><?php echo $displayData->series_name; ?></a> +<?php endif ;?> +<?php if (('series' == $displayData->viewKey || 'category' == $displayData->viewKey) && $displayData->params->get($displayData->viewKey.'_sermons_preacher')): ?> + <a href="<?php echo $displayData->preacher_link; ?>" data-uk-tooltip title="<?php echo $displayData->preacher_name; ?>"><?php echo $displayData->preacher_name; ?></a> +<?php endif ;?> +<?php if ('category' != $displayData->viewKey && $displayData->params->get($displayData->viewKey.'_sermons_category')): ?> + <a href="mailto:<?php echo $displayData->category; ?>" data-uk-tooltip title="<?php echo $displayData->category; ?>"><?php echo $displayData->category; ?></a> +<?php endif ;?> +<?php if ($displayData->params->get($displayData->viewKey.'_sermons_desc') && $displayData->short_description): ?> + <?php echo $displayData->short_description; ?> +<?php elseif ($displayData->params->get($displayData->viewKey.'_sermons_desc') && $displayData->desc): ?> + <?php echo $displayData->desc; ?> +<?php endif; ?> +<?php if ($displayData->params->get($displayData->viewKey.'_sermons_hits')): ?> + <em><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $displayData->hits; ?></em> +<?php endif ;?> diff --git a/site/layouts/sermonspanel.php b/site/layouts/sermonspanel.php new file mode 100644 index 00000000..e2b09dbf --- /dev/null +++ b/site/layouts/sermonspanel.php @@ -0,0 +1,117 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermonspanel.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + +// build the list class +$style = $displayData->params->get($displayData->viewKey.'_sermons_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +?> +<div class="uk-panel uk-panel-box"> + <?php if ($displayData->params->get($displayData->viewKey.'_sermons_hits')): ?> + <?php + $hits_state = ($displayData->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-panel-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $displayData->hits; ?> + </div> + <?php endif ;?> + <h3 class="uk-panel-title"><?php echo $displayData->name; ?></h3> + <?php if ($displayData->params->get($displayData->viewKey.'_sermons_icon')): ?> + <?php $displayData->icon = ($displayData->icon) ? $displayData->icon : $displayData->params->get('sermon_default_icon'); ?> + <?php if ($displayData->icon): ?> + <a href="<?php echo $displayData->link; ?>" title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_OPEN_SERMON'); ?> <?php echo $displayData->name; ?>"> + <img class="uk-thumbnail uk-thumbnail-expand" src="<?php echo $displayData->icon; ?>" alt="<?php echo $displayData->name; ?>"> + </a> + <?php if ($displayData->params->get($displayData->viewKey.'_sermons_desc') && ($displayData->desc || $displayData->short_description)): ?> + <hr /> + <?php elseif ($displayData->viewKey == 'series' && ((!$displayData->params->get($displayData->viewKey.'_sermons_preacher') || !$displayData->preacher_name) && (!$displayData->params->get($displayData->viewKey.'_sermons_category') || !$displayData->category))): ?> + <hr /> + <?php elseif ($displayData->viewKey == 'preacher' && ((!$displayData->params->get($displayData->viewKey.'_sermons_series') || !$displayData->series_name) && (!$displayData->params->get($displayData->viewKey.'_sermons_category') || !$displayData->category))): ?> + <hr /> + <?php endif; ?> + <?php endif; ?> + <?php endif; ?> + <?php if ($displayData->params->get($displayData->viewKey.'_sermons_desc') && $displayData->short_description): ?> + <?php echo $displayData->short_description; ?> + <?php elseif ($displayData->params->get($displayData->viewKey.'_sermons_desc') && $displayData->desc): ?> + <?php echo $displayData->desc; ?> + <?php endif; ?> + <?php if ($displayData->viewKey == 'preacher' && (($displayData->params->get($displayData->viewKey.'_sermons_series') && $displayData->series_name) || ($displayData->params->get($displayData->viewKey.'_sermons_category') && $displayData->category))): ?> + <ul class="uk-list<?php echo $listClass; ?>"> + <?php if ($displayData->params->get($displayData->viewKey.'_sermons_series') && $displayData->series_name): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES'); ?>: <a href="<?php echo $displayData->series_link; ?>" data-uk-tooltip title="<?php echo $displayData->series_name; ?>"><?php echo $displayData->series_name; ?></a></li> + <?php endif; ?> + <?php if ($displayData->params->get($displayData->viewKey.'_sermons_category') && $displayData->category): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_CATEGORY'); ?>: <a href="<?php echo $displayData->category_link; ?>" data-uk-tooltip title="<?php echo $displayData->category; ?>"><?php echo $displayData->category; ?></a></li> + <?php endif; ?> + </ul> + <?php elseif ($displayData->viewKey == 'series' && (($displayData->params->get($displayData->viewKey.'_sermons_preacher') && $displayData->preacher_name) || ($displayData->params->get($displayData->viewKey.'_sermons_category') && $displayData->category))): ?> + <ul class="uk-list<?php echo $listClass; ?>"> + <?php if ($displayData->params->get($displayData->viewKey.'_sermons_preacher') && $displayData->preacher_name): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHER'); ?>: <a href="<?php echo $displayData->preacher_link; ?>" data-uk-tooltip title="<?php echo $displayData->preacher_name; ?>"><?php echo $displayData->preacher_name; ?></a></li> + <?php endif; ?> + <?php if ($displayData->params->get($displayData->viewKey.'_sermons_category') && $displayData->category): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_CATEGORY'); ?>: <a href="<?php echo $displayData->category_link; ?>" data-uk-tooltip title="<?php echo $displayData->category; ?>"><?php echo $displayData->category; ?></a></li> + <?php endif; ?> + </ul> + <?php elseif ($displayData->viewKey == 'category' && (($displayData->params->get($displayData->viewKey.'_sermons_series') && $displayData->series_name) || ($displayData->params->get($displayData->viewKey.'_sermons_preacher') && $displayData->preacher_name))): ?> + <ul class="uk-list<?php echo $listClass; ?>"> + <?php if ($displayData->params->get($displayData->viewKey.'_sermons_preacher') && $displayData->preacher_name): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHER'); ?>: <a href="<?php echo $displayData->preacher_link; ?>" data-uk-tooltip title="<?php echo $displayData->preacher_name; ?>"><?php echo $displayData->preacher_name; ?></a></li> + <?php endif; ?> + <?php if ($displayData->params->get($displayData->viewKey.'_sermons_series') && $displayData->series_name): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES'); ?>: <a href="<?php echo $displayData->series_link; ?>" data-uk-tooltip title="<?php echo $displayData->series_name; ?>"><?php echo $displayData->series_name; ?></a></li> + <?php endif; ?> + </ul> + <?php elseif (($displayData->params->get($displayData->viewKey.'_sermons_desc') && ($displayData->desc || $displayData->short_description)) && (($displayData->params->get($displayData->viewKey.'_sermons_open') || ($displayData->params->get('add_to_dropbox') && isset($displayData->dropbox_buttons))) || ($displayData->params->get($displayData->viewKey.'_sermons_downloads') && isset($displayData->download_links)))): ?> + <hr /> + <?php endif; ?> + <?php if (($displayData->params->get($displayData->viewKey.'_sermons_open') || ($displayData->params->get('add_to_dropbox') && isset($displayData->dropbox_buttons))) && ($displayData->params->get($displayData->viewKey.'_sermons_downloads') && isset($displayData->download_links))): ?> + <?php echo JLayoutHelper::render('opensermonbutton', $displayData); ?> + <?php echo JLayoutHelper::render('downloadsermonbutton', $displayData); ?> + <?php elseif ($displayData->params->get($displayData->viewKey.'_sermons_open') || ($displayData->params->get('add_to_dropbox') && isset($displayData->dropbox_buttons))): ?> + <?php echo JLayoutHelper::render('opensermonbutton', $displayData); ?> + <?php endif; ?> +</div> diff --git a/site/layouts/sermonsrow.php b/site/layouts/sermonsrow.php new file mode 100644 index 00000000..8fcf49fe --- /dev/null +++ b/site/layouts/sermonsrow.php @@ -0,0 +1,111 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermonsrow.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('JPATH_BASE') or die('Restricted access'); + + + +?> +<td data-value="<?php echo $displayData->alias; ?>"> + <?php if ($displayData->params->get($displayData->viewKey.'_sermons_open')): ?> + <a href="<?php echo $displayData->link; ?>"><?php echo $displayData->name; ?></a> + <?php else: ?> + <?php echo $displayData->name; ?> + <?php endif; ?> + <?php echo JLayoutHelper::render('addtodropboxicon', $displayData); ?> +</td> +<?php if ($displayData->params->get($displayData->viewKey.'_sermons_desc')): ?> +<td> + <?php if ($displayData->short_description): ?> + <?php echo $displayData->short_description; ?> + <?php elseif ($displayData->description): ?> + <?php echo $displayData->description; ?> + <?php endif; ?> +</td> +<?php endif; ?> +<?php if (($displayData->viewKey == 'series' || $displayData->viewKey == 'category') && $displayData->params->get($displayData->viewKey.'_sermons_preacher')): ?> +<td> + <?php if ($displayData->preacher): ?> + <a class="" href="<?php echo $displayData->preacher_link; ?>" title="<?php echo $displayData->preacher_name ?>"> + <?php echo $displayData->preacher_name ?> + </a> + <?php endif; ?> +</td> +<?php endif; ?> +<?php if (($displayData->viewKey == 'preacher' || $displayData->viewKey == 'category') && $displayData->params->get($displayData->viewKey.'_sermons_series')): ?> +<td> + <?php if ($displayData->series): ?> + <a class="" href="<?php echo $displayData->series_link; ?>" title="<?php echo $displayData->series_name ?>"> + <?php echo $displayData->series_name ?> + </a> + <?php endif; ?> +</td> +<?php endif; ?> +<?php if ($displayData->viewKey != 'category' && $displayData->params->get($displayData->viewKey.'_sermons_category')): ?> +<td> + <?php if ($displayData->category): ?> + <a class="" href="<?php echo $displayData->category_link; ?>" title="<?php echo $displayData->category ?>"> + <?php echo $displayData->category; ?> + </a> + <?php endif; ?> +</td> +<?php endif; ?> +<?php if ($displayData->params->get($displayData->viewKey.'_sermons_downloads')): ?> +<td> + <?php echo JLayoutHelper::render('downloadsermonbutton', $displayData); ?> +</td> +<?php endif; ?> +<?php if ($displayData->params->get($displayData->viewKey.'_sermons_download_counter')): ?> +<td> + <?php + $counter_state = ($displayData->statisticTotal > 0) ? true:false; + $counter_class = ($counter_state) ? 'uk-badge-success':'uk-badge-warning'; + $counter_icon = ($counter_state) ? 'check-circle':'minus-circle'; + ?> + + <div class="uk-badge uk-badge <?php echo $counter_class; ?>"> + <span data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_TOTAL_DOWNLOADS'); ?>"> + <i class="uk-icon-<?php echo $counter_icon; ?>"></i> + <?php echo $displayData->statisticTotal; ?> + </span> + </div> +</td> +<?php endif; ?> +<?php if ($displayData->params->get($displayData->viewKey.'_sermons_hits')): ?> +<td data-value="<?php echo $displayData->hits; ?>"> + <?php + $hits_state = ($displayData->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo $displayData->hits; ?> + </div> +</td> +<?php endif ;?> +<?php if ($displayData->params->get($displayData->viewKey.'_sermons_count')): ?> +<td data-value="<?php echo 2; ?>"> + <?php $badge_class = (1) ? 'uk-badge-success':'uk-badge-warning'; ?> + <div class="uk-badge uk-badge <?php echo $badge_class; ?>"><?php echo 2; ?></div> +</td> +<?php endif; ?> diff --git a/site/models/ajax.php b/site/models/ajax.php new file mode 100644 index 00000000..8596b13f --- /dev/null +++ b/site/models/ajax.php @@ -0,0 +1,530 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage ajax.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +jimport('joomla.application.component.helper'); + +/** + * Sermondistributor Ajax Model + */ +class SermondistributorModelAjax extends JModelList +{ + protected $app_params; + + public function __construct() + { + parent::__construct(); + // get params + $this->app_params = JComponentHelper::getParams('com_sermondistributor'); + + } + + // [8882] Used in sermon + /** + * Check and Set Dropbox local listing + **/ + public function dropbox($view) + { + // we update both if posible + $types = array('manual','auto'); + foreach ($types as $type) + { + // run the update + if (SermondistributorHelper::updateDropbox($type)) + { + // now update the system if needed + if ('auto' == $type) + { + $this->updateSystemWithDropbox(); + } + } + } + return true; + } + + /** + * Update the file download counter + **/ + public function countDownload($key,$filename) + { + // now count the download + return SermondistributorHelper::countDownload($key,$filename); + } + + /** + * Update the System with Dropbox local listing + **/ + protected function updateSystemWithDropbox() + { + // check if we should update with auto listing + $links_dropbox_auto = SermondistributorHelper::getDropboxLink('auto', 2); + if (SermondistributorHelper::checkArray($links_dropbox_auto)) + { + $bucket = array(); + $db = JFactory::getDbo(); + // load system aliases + $this->getSermonAliasesUsed($db); + // set the class var for sermons + $this->sermons = new stdClass(); + // we must first get all the preacher names + foreach ($links_dropbox_auto as $placeholder => $link) + { + // convert the name to get needed info + $name = str_replace('VDM_pLeK_h0uEr/', '', $placeholder); + $chunks = (array) explode('/', $name); + // set some defaults + $preacherName = ''; + $seriesName = ''; + $preacher = 0; + $series = 0; + $nr = 0; + foreach ($chunks as $chunk) + { + if ($nr == 0 && strpos($chunk,'.') === false) + { + $preacherName = str_replace('-', ' ', str_replace('_', ' ', $chunk)); + $preacherName = trim(preg_replace('/\s+/', ' ', urldecode($preacherName))); + $preacher = $this->getIdByName($preacherName,'preacher',$db); + } + elseif ($nr == 1 && strpos($chunk,'.') === false) + { + $seriesName = str_replace('-', ' ', str_replace('_', ' ', $chunk)); + $seriesName = trim(preg_replace('/\s+/', ' ', urldecode($seriesName))); + $series = $this->getIdByName($seriesName,'series',$db); + } + elseif (($nr == 2 || $nr == 1) && strpos($chunk,'.') !== false) + { + $chunk = urldecode($chunk); + // load thise sermon data to the global object + $this->loadSermonData($preacher,$preacherName,$series,$seriesName,$chunk,$placeholder,$db); + } + $nr++; + } + } + return $this->setSermons($db); + } + return false; + } + + protected function setSermons($db) + { + // check if we have values + if (SermondistributorHelper::checkObject($this->sermons)) + { + foreach ($this->sermons as $sermon) + { + // make sure the lock is removed + unset($sermon->lock); + // convert the placeholders to json object + $registry = new JRegistry; + $registry->loadArray($sermon->auto_sermons); + $sermon->auto_sermons = (string) $registry; + // always the same + $sermon->link_type = $this->app_params->get('auto_link_type', 1); + $sermon->source = 2; + $sermon->build = 2; + // reset id + $aId = 0; + if (isset($sermon->id) && $sermon->id) + { + // change to modified + $sermon->modified = $sermon->created; + // make sure we dont change these if + // the sermon is being updated + unset($sermon->created); + unset($sermon->metadesc); + unset($sermon->metakey); + unset($sermon->metadata); + + // update + $done = $db->updateObject('#__sermondistributor_sermon', $sermon, 'id'); + if ($done) + { + $aId = $sermon->id; + } + } + else + { + // add some defaults + $sermon->version = 1; + $sermon->published = $this->app_params->get('sermon_state', 1); + $sermon->access = 1; // TODO must use a global setting here + $sermon->metakey = implode(', ',array_unique($sermon->metakey)); + // insert + $done = $db->insertObject('#__sermondistributor_sermon', $sermon); + if ($done) + { + $aId = $db->insertid(); + // make sure the access of asset is set + SermondistributorHelper::setAsset($aId,'sermon'); + } + } + // set global id list + if ($aId > 0) + { + $this->allSermons[] = $aId; + } + } + } + return $this->allSermonsCheckStatus($db); + } + + protected function allSermonsCheckStatus($db) + { + $query = $db->getQuery(true); + // Fields to update. + $fields = array( + $db->quoteName('published') . ' = 0' + ); + if (isset($this->allSermons) && SermondistributorHelper::checkArray($this->allSermons)) + { + // unpublish those AUTO sermons not found in this id list + $conditions = array( + $db->quoteName('source') . ' = 2', + $db->quoteName('build') . ' = 2', + $db->quoteName('id') . ' NOT IN (' . implode(',',$this->allSermons) . ')' + ); + } + else + { + // unpublish all AUTO sermons + $conditions = array( + $db->quoteName('source') . ' = 2', + $db->quoteName('build') . ' = 2' + ); + } + $query->update($db->quoteName('#__sermondistributor_sermon'))->set($fields)->where($conditions); + $db->setQuery($query); + return $db->execute(); + } + + + protected function loadSermonData($preacher,$preacherName,$series,$seriesName,$sermon,$placeholder,$db) + { + // 34key521__the_file_name___tag1_tag-with2_tag-three____Salvation_Messages_____The_short_description_can_only_be_one_sentence.mp3 + $description = ''; + $category = 0; + $tags = false; + $combined = false; + // remove the file type from the string + $fileType = pathinfo($sermon, PATHINFO_EXTENSION); + if ($fileType) + { + $sermon = str_replace('.'.$fileType, '', $sermon); + } + else + { + $fileType = 'error'; + } + // first we check if this file has discription + if (strpos($sermon,'_____') !== false) + { + list($sermon, $description) = explode('_____', $sermon); + $description = preg_replace('/\s+/', ' ', str_replace('-', ' ', str_replace('_', ' ', $description))).'.'; + } + // second we check if this file has category + if (strpos($sermon,'____') !== false) + { + list($sermon, $categoryName) = explode('____', $sermon); + $categoryName = preg_replace('/\s+/', ' ', str_replace('-', ' ', str_replace('_', ' ',$categoryName))); + $category = $this->getCatogoryId($categoryName,$db); + } + // third we check if this file has tags + if (strpos($sermon,'___') !== false) + { + list($sermon, $tags) = explode('___', $sermon); // TODO not loading the tags yet, soon... + } + // forth we check if this file is combined with another + if (strpos($sermon,'__') !== false) + { + list($key,$sermon) = explode('__', $sermon); + $key = md5($key); + $combined = true; + } + else + { + $key = md5($sermon.$preacher.$series.$category); + } + // set the name of the sermon + $name = trim(preg_replace('/\s+/', ' ', str_replace('-', ' ', str_replace('_', ' ', $sermon)))); + // check if this sermon has been set + if (isset($this->sermons->$key)) + { + $SERMON = strtoupper($sermon); + if ($combined && $sermon == $SERMON) + { + $name = ucfirst(strtolower($name)); + $this->sermons->$key->name = $name; + // make sure we always use the new name as alias + $this->sermons->$key->alias = $this->getAlias($name,'sermon'); + // lock item so other will not change the name + $this->sermons->$key->lock = true; + } + elseif ($combined && !isset($this->sermons->$key->lock) && strlen($name) > strlen($this->sermons->$key->name)) + { + $this->sermons->$key->name = $name; + // make sure we always use the new name as alias + $this->sermons->$key->alias = $this->getAlias($name,'sermon'); + } + } + else + { + // load the sermon data + $this->sermons->$key = new stdClass(); + } + // check if this value has been set + if (!isset($this->sermons->$key->alias)) + { + // make sure we always use the new name as alias + $this->sermons->$key->alias = $this->getAlias($name,'sermon'); + } + + // check if this item exist (update if it does) + $id = $this->getSermonId($this->sermons->$key->alias,$preacher,$db); + if ($id) + { + $this->sermons->$key->id = $id; + } + // check if this value has been set + if (!isset($this->sermons->$key->name)) + { + $this->sermons->$key->name = $name; + } + // check if this value has been set + if (!isset($this->sermons->$key->short_description) && SermondistributorHelper::checkString($description)) + { + $this->sermons->$key->short_description = $description; + } + // check if this value has been set + if (!isset($this->sermons->$key->preacher) && $preacher > 0) + { + $this->sermons->$key->preacher = $preacher; + } + // check if this value has been set + if (!isset($this->sermons->$key->series) && $series > 0) + { + $this->sermons->$key->series = $series; + } + // check if this value has been set + if (!isset($this->sermons->$key->catid) && $category > 0) + { + $this->sermons->$key->catid = $category; + } + // check if this value has been set + if (!isset($this->sermons->$key->created)) + { + // set the date object + $date = JFactory::getDate(); + $this->sermons->$key->created = $date->toSql(); + } + // build the Download File NAme - first add the preacher name if set + if ($preacher) + { + $downloadName[] = SermondistributorHelper::safeString($preacherName,'U'); + } + // add the series name if set + if ($series) + { + $downloadName[] = SermondistributorHelper::safeString($seriesName,'F'); + } + // add the category name if set + if ($category) + { + $downloadName[] = SermondistributorHelper::safeString($categoryName, 'F'); + } + // add the main file name + $downloadName[] = SermondistributorHelper::safeString($name,'F'); + // now build the download file name + $downloadName = implode('__', $downloadName).'.'.$fileType; + // load the placeholder to the sermon + $this->sermons->$key->auto_sermons[$downloadName] = $placeholder; + // set default metadate + if (!isset($this->sermons->$key->metadesc) && SermondistributorHelper::checkString($description)) + { + // Only process once per/sermon + $bad_characters = array("\"", "<", ">"); + $this->sermons->$key->metadesc = JString::str_ireplace($bad_characters, "", $description); // just to be save + } + // Array of characters to remove. + $bad_characters = array("\n", "\r", "\"", "<", ">"); + // set the meta key words + $this->sermons->$key->metakey[] = trim(JString::str_ireplace($bad_characters, '', $name)); // just to be save + if ($series) + { + $this->sermons->$key->metakey[] = trim(JString::str_ireplace($bad_characters, '', $seriesName)); // just to be save + } + if ($preacher) + { + $this->sermons->$key->metakey[] = trim(JString::str_ireplace($bad_characters, '', $preacherName)); // just to be save + } + if ($category) + { + $this->sermons->$key->metakey[] = trim(JString::str_ireplace($bad_characters, '', $categoryName)); // just to be save + } + $author = ($preacher) ? trim($preacherName): ''; + $this->sermons->$key->metadata = '{"robots":"","author":"'.$author.'","rights":"See our site terms."}'; + + return true; + } + + protected function getAlias($name,$type = false) + { + // sanitize the name to an alias + if (JFactory::getConfig()->get('unicodeslugs') == 1) + { + $alias = JFilterOutput::stringURLUnicodeSlug($name); + } + else + { + $alias = JFilterOutput::stringURLSafe($name); + } + if ($type) + { + return $this->getUniqe($alias,'alias',$type); + } + return $alias; + } + + protected function getIdByName($name,$type,$db) + { + // sanitize the name to an alias + $alias = $this->getAlias($name); + // check if there is a recored + if ($id = SermondistributorHelper::getVar($type, $alias, 'alias', 'id')) + { + return $id; + } + else + { + // check if the name is all lowercase + if ($name == strtolower($name)) + { + // the whole name is lowercase then fix + $name = ucwords($name); + } + // create the record + $object = new stdClass(); + // set the date object + $date = JFactory::getDate(); + // build the object + $object->name = $name; + $object->alias = $alias; + $object->published = $this->app_params->get($type.'_state', 1); + $object->created = $date->toSql(); + $object->version = 1; + $object->access = 1; // TODO must use a global setting here + // Insert the object into the table. + $done = $db->insertObject('#__sermondistributor_'.$type, $object); + // if done return last used id + if ($done) + { + $newId = $db->insertid(); + // make sure the access of asset is set + SermondistributorHelper::setAsset($newId,$type); + return $newId; + } + } + return 0; + } + + protected function getSermonId($alias = false,$preacher,$db) + { + if (!$alias) + { + // sanitize the name to an alias + $alias = $this->getAlias($name,'sermon'); + } + // Create a new query object. + $query = $db->getQuery(true); + $query->select($db->quoteName(array('id'))); + $query->from($db->quoteName('#__sermondistributor_sermon')); + $query->where($db->quoteName('alias') . ' = '. $db->quote($alias)); + $query->where($db->quoteName('preacher') . ' = '. $preacher); + $query->where($db->quoteName('build') . ' = '. 2); + $query->where($db->quoteName('source') . ' = '. 2); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + return $db->loadResult(); + } + return 0; + } + + protected function getCatogoryId($name,$db) + { + // sanitize the name to an alias + $alias = $this->getAlias($name); + // Create a new query object. + $query = $db->getQuery(true); + $query->select($db->quoteName(array('id'))); + $query->from($db->quoteName('#__categories')); + $query->where($db->quoteName('alias') . ' = '. $db->quote($alias)); + $query->where($db->quoteName('extension') . ' = '. $db->quote('com_sermondistributor.sermons')); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + return $db->loadResult(); + } + return 0; // TODO creat a category if not found + } + + /** + * Method to generate a uniqe value. + * + * @param string $field name. + * @param string $value data. + * @param string $type table. + * + * @return string New value. + */ + protected function getUniqe($value,$field,$type) + { + // insure the filed is always uniqe + while (isset($this->uniqeValueArray[$type][$field][$value])) + { + $value = JString::increment($value, 'dash'); + } + $this->uniqeValueArray[$type][$field][$value] = $value; + return $value; + } + + protected function getSermonAliasesUsed($db) + { + // Create a new query object. + $query = $db->getQuery(true); + $query->select($db->quoteName(array('alias'))); + $query->from($db->quoteName('#__sermondistributor_sermon')); + $query->where($db->quoteName('build') . ' != 2'); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + $aliases = $db->loadColumn(); + foreach($aliases as $alias) + { + $this->uniqeValueArray['sermon']['alias'][$alias] = $alias; + } + } + } +} diff --git a/site/models/categories.php b/site/models/categories.php new file mode 100644 index 00000000..dc9393e3 --- /dev/null +++ b/site/models/categories.php @@ -0,0 +1,168 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage categories.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the Joomla modellist library +jimport('joomla.application.component.modellist'); + +/** + * Sermondistributor Model for Categories + */ +class SermondistributorModelCategories extends JModelList +{ + /** + * Model user data. + * + * @var strings + */ + protected $user; + protected $userId; + protected $guest; + protected $groups; + protected $levels; + protected $app; + protected $input; + protected $uikitComp; + + /** + * Method to build an SQL query to load the list data. + * + * @return string An SQL query + */ + protected function getListQuery() + { + // Get the current user for authorisation checks + $this->user = JFactory::getUser(); + $this->userId = $this->user->get('id'); + $this->guest = $this->user->get('guest'); + $this->groups = $this->user->get('groups'); + $this->authorisedGroups = $this->user->getAuthorisedGroups(); + $this->levels = $this->user->getAuthorisedViewLevels(); + $this->app = JFactory::getApplication(); + $this->input = $this->app->input; + $this->initSet = true; + // [2897] Get a db connection. + $db = JFactory::getDbo(); + + // [2906] Create a new query object. + $query = $db->getQuery(true); + + // [1788] Get from #__categories as a + $query->select($db->quoteName( + array('a.id','a.title','a.alias','a.description','a.hits','a.language'), + array('id','name','alias','description','hits','language'))); + $query->from($db->quoteName('#__categories', 'a')); + $query->where('a.access IN (' . implode(',', $this->levels) . ')'); + $query->where('a.published = 1'); + $query->where('a.extension = "com_sermondistributor.sermons"'); + $query->order('a.title ASC'); + + // [2919] return the query object + return $query; + } + + /** + * Method to get an array of data items. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getItems() + { + $user = JFactory::getUser(); + // check if this user has permission to access items + if (!$user->authorise('site.categories.access', 'com_sermondistributor')) + { + JError::raiseWarning(500, JText::_('Not authorised!')); + // redirect away if not a correct (TODO for now we go to default view) + JFactory::getApplication()->redirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers')); + return false; + } + // load parent items + $items = parent::getItems(); + + // Get the global params + $globalParams = JComponentHelper::getParams('com_sermondistributor', true); + + // [2934] Convert the parameter fields into objects. + foreach ($items as $nr => &$item) + { + // [2937] Always create a slug for sef URL's + $item->slug = (isset($item->alias)) ? $item->id.':'.$item->alias : $item->id; + // [2038] set idCatidSermonB to the $item object. + $item->idCatidSermonB = $this->getIdCatidSermonBced_B($item->id); + } + + // return items + return $items; + } + + /** + * Method to get an array of Sermon Objects. + * + * @return mixed An array of Sermon Objects on success, false on failure. + * + */ + public function getIdCatidSermonBced_B($id) + { + // [2699] Get a db connection. + $db = JFactory::getDbo(); + + // [2701] Create a new query object. + $query = $db->getQuery(true); + + // [2703] Get from #__sermondistributor_sermon as b + $query->select($db->quoteName( + array('b.id'), + array('id'))); + $query->from($db->quoteName('#__sermondistributor_sermon', 'b')); + $query->where('b.catid = ' . $db->quote($id)); + $query->where('b.access IN (' . implode(',', $this->levels) . ')'); + $query->where('b.published = 1'); + + // [2757] Reset the query using our newly populated query object. + $db->setQuery($query); + $db->execute(); + + // [2760] check if there was data returned + if ($db->getNumRows()) + { + return $db->loadObjectList(); + } + return false; + } + + + /** + * Get the uikit needed components + * + * @return mixed An array of objects on success. + * + */ + public function getUikitComp() + { + if (isset($this->uikitComp) && SermondistributorHelper::checkArray($this->uikitComp)) + { + return $this->uikitComp; + } + return false; + } +} diff --git a/site/models/category.php b/site/models/category.php new file mode 100644 index 00000000..d20a88d9 --- /dev/null +++ b/site/models/category.php @@ -0,0 +1,386 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage category.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the Joomla modellist library +jimport('joomla.application.component.modellist'); + +/** + * Sermondistributor Model for Category + */ +class SermondistributorModelCategory extends JModelList +{ + /** + * Model user data. + * + * @var strings + */ + protected $user; + protected $userId; + protected $guest; + protected $groups; + protected $levels; + protected $app; + protected $input; + protected $uikitComp; + + /** + * Method to build an SQL query to load the list data. + * + * @return string An SQL query + */ + protected function getListQuery() + { + // Get the current user for authorisation checks + $this->user = JFactory::getUser(); + $this->userId = $this->user->get('id'); + $this->guest = $this->user->get('guest'); + $this->groups = $this->user->get('groups'); + $this->authorisedGroups = $this->user->getAuthorisedGroups(); + $this->levels = $this->user->getAuthorisedViewLevels(); + $this->app = JFactory::getApplication(); + $this->input = $this->app->input; + $this->initSet = true; + // [2897] Get a db connection. + $db = JFactory::getDbo(); + + // [2906] Create a new query object. + $query = $db->getQuery(true); + + // [1788] Get from #__sermondistributor_sermon as a + $query->select($db->quoteName( + array('a.id','a.asset_id','a.name','a.alias','a.link_type','a.short_description','a.icon','a.preacher','a.series','a.catid','a.description','a.source','a.build','a.manual_files','a.local_files','a.url','a.auto_sermons','a.published','a.created_by','a.modified_by','a.created','a.modified','a.version','a.hits','a.ordering'), + array('id','asset_id','name','alias','link_type','short_description','icon','preacher','series','catid','description','source','build','manual_files','local_files','url','auto_sermons','published','created_by','modified_by','created','modified','version','hits','ordering'))); + $query->from($db->quoteName('#__sermondistributor_sermon', 'a')); + + // [1788] Get from #__sermondistributor_preacher as c + $query->select($db->quoteName( + array('c.name','c.alias'), + array('preacher_name','preacher_alias'))); + $query->join('LEFT', ($db->quoteName('#__sermondistributor_preacher', 'c')) . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('c.id') . ')'); + + // [1788] Get from #__sermondistributor_series as d + $query->select($db->quoteName( + array('d.name','d.alias'), + array('series_name','series_alias'))); + $query->join('LEFT', ($db->quoteName('#__sermondistributor_series', 'd')) . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('d.id') . ')'); + + // [1788] Get from #__categories as b + $query->select($db->quoteName( + array('b.title'), + array('category'))); + $query->join('LEFT', ($db->quoteName('#__categories', 'b')) . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('b.id') . ')'); + $query->where('a.access IN (' . implode(',', $this->levels) . ')'); + // [2130] Check if JRequest::getInt('id') is a string or numeric value. + $checkValue = JRequest::getInt('id'); + if (isset($checkValue) && SermondistributorHelper::checkString($checkValue)) + { + $query->where('a.catid = ' . $db->quote($checkValue)); + } + elseif (is_numeric($checkValue)) + { + $query->where('a.catid = ' . $checkValue); + } + else + { + return false; + } + $query->where('a.published = 1'); + $query->order('a.ordering ASC'); + + // [2919] return the query object + return $query; + } + + /** + * Method to get an array of data items. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getItems() + { + $user = JFactory::getUser(); + // check if this user has permission to access items + if (!$user->authorise('site.category.access', 'com_sermondistributor')) + { + JError::raiseWarning(500, JText::_('Not authorised!')); + // redirect away if not a correct (TODO for now we go to default view) + JFactory::getApplication()->redirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers')); + return false; + } + // load parent items + $items = parent::getItems(); + + // Get the global params + $globalParams = JComponentHelper::getParams('com_sermondistributor', true); + + // [2934] Convert the parameter fields into objects. + foreach ($items as $nr => &$item) + { + // [2937] Always create a slug for sef URL's + $item->slug = (isset($item->alias)) ? $item->id.':'.$item->alias : $item->id; + if (SermondistributorHelper::checkString($item->local_files)) + { + // [1990] Decode local_files + $item->local_files = json_decode($item->local_files, true); + } + if (SermondistributorHelper::checkString($item->manual_files)) + { + // [1990] Decode manual_files + $item->manual_files = json_decode($item->manual_files, true); + } + // [2005] Make sure the content prepare plugins fire on description. + $item->description = JHtml::_('content.prepare',$item->description); + // [2007] Checking if description has uikit components that must be loaded. + $this->uikitComp = SermondistributorHelper::getUikitComp($item->description,$this->uikitComp); + // [2038] set idSermonStatisticE to the $item object. + $item->idSermonStatisticE = $this->getIdSermonStatisticBcea_E($item->id); + } + + + // do a quick build of all the sermon links + if (isset($items) && $items) + { + foreach ($items as $nr => &$item) + { + $item->statisticTotal = 0; + if (isset($item->auto_sermons) && SermondistributorHelper::checkString($item->auto_sermons)) + { + // Decode the auto files + $item->auto_sermons = json_decode($item->auto_sermons, true); + } + // set statistic per filename if found + if (isset($item->idSermonStatisticE) && SermondistributorHelper::checkArray($item->idSermonStatisticE)) + { + foreach ($item->idSermonStatisticE as $statistic) + { + $item->statistic[$statistic->filename] = $statistic->counter; + } + // set the total downloads for this sermon + $item->statisticTotal = array_sum($item->statistic); + } + unset($item->idSermonStatisticE); + // set preacher slug + $item->preacher_slug = (isset($item->preacher_alias)) ? $item->preacher.':'.$item->preacher_alias : $item->preacher; + // build series slug + $item->series_slug = (isset($item->series_alias)) ? $item->series.':'.$item->series_alias : $item->series; + // build needed links + $item->link = JRoute::_(SermondistributorHelperRoute::getSermonRoute($item->slug)); + $item->preacher_link = JRoute::_(SermondistributorHelperRoute::getPreacherRoute($item->preacher_slug)); + $item->series_link = JRoute::_(SermondistributorHelperRoute::getSeriesRoute($item->series_slug)); + // set view key + $item->viewKey = 'category'; + SermondistributorHelper::getDownloadLinks($item); + } + } + + // return items + return $items; + } + + /** + * Method to get an array of Statistic Objects. + * + * @return mixed An array of Statistic Objects on success, false on failure. + * + */ + public function getIdSermonStatisticBcea_E($id) + { + // [2699] Get a db connection. + $db = JFactory::getDbo(); + + // [2701] Create a new query object. + $query = $db->getQuery(true); + + // [2703] Get from #__sermondistributor_statistic as e + $query->select($db->quoteName( + array('e.filename','e.sermon','e.preacher','e.series','e.counter'), + array('filename','sermon','preacher','series','counter'))); + $query->from($db->quoteName('#__sermondistributor_statistic', 'e')); + $query->where('e.sermon = ' . $db->quote($id)); + + // [2757] Reset the query using our newly populated query object. + $db->setQuery($query); + $db->execute(); + + // [2760] check if there was data returned + if ($db->getNumRows()) + { + return $db->loadObjectList(); + } + return false; + } + + + /** + * Custom Method + * + * @return mixed item data object on success, false on failure. + * + */ + public function getCategory() + { + + if (!isset($this->initSet) || !$this->initSet) + { + $this->user = JFactory::getUser(); + $this->userId = $this->user->get('id'); + $this->guest = $this->user->get('guest'); + $this->groups = $this->user->get('groups'); + $this->authorisedGroups = $this->user->getAuthorisedGroups(); + $this->levels = $this->user->getAuthorisedViewLevels(); + $this->initSet = true; + } + // [2329] Get a db connection. + $db = JFactory::getDbo(); + + // [2331] Create a new query object. + $query = $db->getQuery(true); + + // [1788] Get from #__categories as a + $query->select($db->quoteName( + array('a.id','a.parent_id','a.lft','a.rgt','a.level','a.title','a.alias','a.note','a.description','a.params','a.metadesc','a.metakey','a.metadata','a.hits','a.language','a.version'), + array('id','parent_id','lft','rgt','level','name','alias','note','description','params','metadesc','metakey','metadata','hits','language','version'))); + $query->from($db->quoteName('#__categories', 'a')); + // [2130] Check if JRequest::getInt('id') is a string or numeric value. + $checkValue = JRequest::getInt('id'); + if (isset($checkValue) && SermondistributorHelper::checkString($checkValue)) + { + $query->where('a.id = ' . $db->quote($checkValue)); + } + elseif (is_numeric($checkValue)) + { + $query->where('a.id = ' . $checkValue); + } + else + { + return false; + } + $query->where('a.published = 1'); + $query->order('a.title ASC'); + + // [2342] Reset the query using our newly populated query object. + $db->setQuery($query); + // [2344] Load the results as a stdClass object. + $data = $db->loadObject(); + + if (empty($data)) + { + return false; + } + // [2038] set idCatidSermonB to the $data object. + $data->idCatidSermonB = $this->getIdCatidSermonFbdf_B($data->id); + + // [2443] return data object. + return $data; + } + + /** + * Method to get an array of Sermon Objects. + * + * @return mixed An array of Sermon Objects on success, false on failure. + * + */ + public function getIdCatidSermonFbdf_B($id) + { + // [2699] Get a db connection. + $db = JFactory::getDbo(); + + // [2701] Create a new query object. + $query = $db->getQuery(true); + + // [2703] Get from #__sermondistributor_sermon as b + $query->select($db->quoteName( + array('b.id'), + array('id'))); + $query->from($db->quoteName('#__sermondistributor_sermon', 'b')); + $query->where('b.catid = ' . $db->quote($id)); + + // [2757] Reset the query using our newly populated query object. + $db->setQuery($query); + $db->execute(); + + // [2760] check if there was data returned + if ($db->getNumRows()) + { + $items = $db->loadObjectList(); + + // [2813] Convert the parameter fields into objects. + foreach ($items as $nr => &$item) + { + // [2026] set idSermonStatisticC to the $item object. + $item->idSermonStatisticC = $this->getIdSermonStatisticFbdf_C($item->id); + } + return $items; + } + return false; + } + + /** + * Method to get an array of Statistic Objects. + * + * @return mixed An array of Statistic Objects on success, false on failure. + * + */ + public function getIdSermonStatisticFbdf_C($id) + { + // [2699] Get a db connection. + $db = JFactory::getDbo(); + + // [2701] Create a new query object. + $query = $db->getQuery(true); + + // [2703] Get from #__sermondistributor_statistic as c + $query->select($db->quoteName( + array('c.counter'), + array('counter'))); + $query->from($db->quoteName('#__sermondistributor_statistic', 'c')); + $query->where('c.sermon = ' . $db->quote($id)); + + // [2757] Reset the query using our newly populated query object. + $db->setQuery($query); + $db->execute(); + + // [2760] check if there was data returned + if ($db->getNumRows()) + { + return $db->loadObjectList(); + } + return false; + } + + + /** + * Get the uikit needed components + * + * @return mixed An array of objects on success. + * + */ + public function getUikitComp() + { + if (isset($this->uikitComp) && SermondistributorHelper::checkArray($this->uikitComp)) + { + return $this->uikitComp; + } + return false; + } +} diff --git a/site/models/index.html b/site/models/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/models/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/models/preacher.php b/site/models/preacher.php new file mode 100644 index 00000000..efece111 --- /dev/null +++ b/site/models/preacher.php @@ -0,0 +1,456 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage preacher.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the Joomla modellist library +jimport('joomla.application.component.modellist'); + +/** + * Sermondistributor Model for Preacher + */ +class SermondistributorModelPreacher extends JModelList +{ + /** + * Model user data. + * + * @var strings + */ + protected $user; + protected $userId; + protected $guest; + protected $groups; + protected $levels; + protected $app; + protected $input; + protected $uikitComp; + + /** + * Method to build an SQL query to load the list data. + * + * @return string An SQL query + */ + protected function getListQuery() + { + // Get the current user for authorisation checks + $this->user = JFactory::getUser(); + $this->userId = $this->user->get('id'); + $this->guest = $this->user->get('guest'); + $this->groups = $this->user->get('groups'); + $this->authorisedGroups = $this->user->getAuthorisedGroups(); + $this->levels = $this->user->getAuthorisedViewLevels(); + $this->app = JFactory::getApplication(); + $this->input = $this->app->input; + $this->initSet = true; + // [2897] Get a db connection. + $db = JFactory::getDbo(); + + // [2906] Create a new query object. + $query = $db->getQuery(true); + + // [1788] Get from #__sermondistributor_sermon as a + $query->select($db->quoteName( + array('a.id','a.asset_id','a.name','a.alias','a.link_type','a.short_description','a.icon','a.preacher','a.series','a.catid','a.description','a.source','a.build','a.manual_files','a.local_files','a.url','a.auto_sermons','a.published','a.created_by','a.modified_by','a.created','a.modified','a.version','a.hits','a.ordering'), + array('id','asset_id','name','alias','link_type','short_description','icon','preacher','series','catid','description','source','build','manual_files','local_files','url','auto_sermons','published','created_by','modified_by','created','modified','version','hits','ordering'))); + $query->from($db->quoteName('#__sermondistributor_sermon', 'a')); + + // [1788] Get from #__sermondistributor_series as c + $query->select($db->quoteName( + array('c.name','c.alias'), + array('series_name','series_alias'))); + $query->join('LEFT', ($db->quoteName('#__sermondistributor_series', 'c')) . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('c.id') . ')'); + + // [1788] Get from #__sermondistributor_preacher as d + $query->select($db->quoteName( + array('d.name','d.alias'), + array('preacher_name','preacher_alias'))); + $query->join('LEFT', ($db->quoteName('#__sermondistributor_preacher', 'd')) . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('d.id') . ')'); + + // [1788] Get from #__categories as b + $query->select($db->quoteName( + array('b.title','b.alias'), + array('category','category_alias'))); + $query->join('LEFT', ($db->quoteName('#__categories', 'b')) . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('b.id') . ')'); + // [2130] Check if JRequest::getInt('id') is a string or numeric value. + $checkValue = JRequest::getInt('id'); + if (isset($checkValue) && SermondistributorHelper::checkString($checkValue)) + { + $query->where('a.preacher = ' . $db->quote($checkValue)); + } + elseif (is_numeric($checkValue)) + { + $query->where('a.preacher = ' . $checkValue); + } + else + { + return false; + } + $query->where('a.access IN (' . implode(',', $this->levels) . ')'); + $query->where('a.published = 1'); + $query->order('a.ordering ASC'); + + // [2919] return the query object + return $query; + } + + /** + * Method to get an array of data items. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getItems() + { + $user = JFactory::getUser(); + // check if this user has permission to access items + if (!$user->authorise('site.preacher.access', 'com_sermondistributor')) + { + JError::raiseWarning(500, JText::_('Not authorised!')); + // redirect away if not a correct (TODO for now we go to default view) + JFactory::getApplication()->redirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers')); + return false; + } + // load parent items + $items = parent::getItems(); + + // Get the global params + $globalParams = JComponentHelper::getParams('com_sermondistributor', true); + + // [2934] Convert the parameter fields into objects. + foreach ($items as $nr => &$item) + { + // [2937] Always create a slug for sef URL's + $item->slug = (isset($item->alias)) ? $item->id.':'.$item->alias : $item->id; + if (SermondistributorHelper::checkString($item->local_files)) + { + // [1990] Decode local_files + $item->local_files = json_decode($item->local_files, true); + } + if (SermondistributorHelper::checkString($item->manual_files)) + { + // [1990] Decode manual_files + $item->manual_files = json_decode($item->manual_files, true); + } + // [2005] Make sure the content prepare plugins fire on description. + $item->description = JHtml::_('content.prepare',$item->description); + // [2007] Checking if description has uikit components that must be loaded. + $this->uikitComp = SermondistributorHelper::getUikitComp($item->description,$this->uikitComp); + // [2038] set idSermonStatisticE to the $item object. + $item->idSermonStatisticE = $this->getIdSermonStatisticFcff_E($item->id); + } + + + // do a quick build of all the sermon links + if (isset($items) && $items) + { + foreach ($items as $nr => &$item) + { + $item->statisticTotal = 0; + if (isset($item->auto_sermons) && SermondistributorHelper::checkString($item->auto_sermons)) + { + // Decode the auto files + $item->auto_sermons = json_decode($item->auto_sermons, true); + } + // set statistic per filename if found + if (isset($item->idSermonStatisticE) && SermondistributorHelper::checkArray($item->idSermonStatisticE)) + { + foreach ($item->idSermonStatisticE as $statistic) + { + $item->statistic[$statistic->filename] = $statistic->counter; + } + // set the total downloads for this sermon + $item->statisticTotal = array_sum($item->statistic); + } + unset($item->idSermonStatisticE); + // build series slug + $item->series_slug = (isset($item->series_alias)) ? $item->series.':'.$item->series_alias : $item->series; + // build category slug + $item->category_slug = (isset($item->category_alias)) ? $item->catid.':'.$item->category_alias : $item->catid; + // build needed links + $item->link = JRoute::_(SermondistributorHelperRoute::getSermonRoute($item->slug)); + $item->series_link = JRoute::_(SermondistributorHelperRoute::getSeriesRoute($item->series_slug)); + $item->category_link = JRoute::_(SermondistributorHelperRoute::getCategoryRoute($item->category_slug)); + // set view key + $item->viewKey = 'preacher'; + SermondistributorHelper::getDownloadLinks($item); + } + } + + // return items + return $items; + } + + /** + * Method to get an array of Statistic Objects. + * + * @return mixed An array of Statistic Objects on success, false on failure. + * + */ + public function getIdSermonStatisticFcff_E($id) + { + // [2699] Get a db connection. + $db = JFactory::getDbo(); + + // [2701] Create a new query object. + $query = $db->getQuery(true); + + // [2703] Get from #__sermondistributor_statistic as e + $query->select($db->quoteName( + array('e.filename','e.sermon','e.preacher','e.series','e.counter'), + array('filename','sermon','preacher','series','counter'))); + $query->from($db->quoteName('#__sermondistributor_statistic', 'e')); + $query->where('e.sermon = ' . $db->quote($id)); + + // [2757] Reset the query using our newly populated query object. + $db->setQuery($query); + $db->execute(); + + // [2760] check if there was data returned + if ($db->getNumRows()) + { + return $db->loadObjectList(); + } + return false; + } + + + /** + * Custom Method + * + * @return mixed item data object on success, false on failure. + * + */ + public function getPreacher() + { + + if (!isset($this->initSet) || !$this->initSet) + { + $this->user = JFactory::getUser(); + $this->userId = $this->user->get('id'); + $this->guest = $this->user->get('guest'); + $this->groups = $this->user->get('groups'); + $this->authorisedGroups = $this->user->getAuthorisedGroups(); + $this->levels = $this->user->getAuthorisedViewLevels(); + $this->initSet = true; + } + // [2329] Get a db connection. + $db = JFactory::getDbo(); + + // [2331] Create a new query object. + $query = $db->getQuery(true); + + // [1788] Get from #__sermondistributor_preacher as a + $query->select($db->quoteName( + array('a.id','a.asset_id','a.name','a.alias','a.icon','a.email','a.website','a.description','a.published','a.created_by','a.modified_by','a.created','a.modified','a.version','a.hits','a.ordering','a.metadesc','a.metakey','a.metadata'), + array('id','asset_id','name','alias','icon','email','website','description','published','created_by','modified_by','created','modified','version','hits','ordering','metadesc','metakey','metadata'))); + $query->from($db->quoteName('#__sermondistributor_preacher', 'a')); + $query->where('a.access IN (' . implode(',', $this->levels) . ')'); + // [2130] Check if JRequest::getInt('id') is a string or numeric value. + $checkValue = JRequest::getInt('id'); + if (isset($checkValue) && SermondistributorHelper::checkString($checkValue)) + { + $query->where('a.id = ' . $db->quote($checkValue)); + } + elseif (is_numeric($checkValue)) + { + $query->where('a.id = ' . $checkValue); + } + else + { + return false; + } + $query->where('a.published = 1'); + $query->order('a.ordering ASC'); + + // [2342] Reset the query using our newly populated query object. + $db->setQuery($query); + // [2344] Load the results as a stdClass object. + $data = $db->loadObject(); + + if (empty($data)) + { + return false; + } + // [2005] Make sure the content prepare plugins fire on description. + $data->description = JHtml::_('content.prepare',$data->description); + // [2007] Checking if description has uikit components that must be loaded. + $this->uikitComp = SermondistributorHelper::getUikitComp($data->description,$this->uikitComp); + + // [2443] return data object. + return $data; + } + + + /** + * Custom Method + * + * @return mixed An array of objects on success, false on failure. + * + */ + public function getNumberDownloads() + { + + if (!isset($this->initSet) || !$this->initSet) + { + $this->user = JFactory::getUser(); + $this->userId = $this->user->get('id'); + $this->guest = $this->user->get('guest'); + $this->groups = $this->user->get('groups'); + $this->authorisedGroups = $this->user->getAuthorisedGroups(); + $this->levels = $this->user->getAuthorisedViewLevels(); + $this->initSet = true; + } + + // [2499] Get the global params + $globalParams = JComponentHelper::getParams('com_sermondistributor', true); + // [2897] Get a db connection. + $db = JFactory::getDbo(); + + // [2906] Create a new query object. + $query = $db->getQuery(true); + + // [1788] Get from #__sermondistributor_statistic as a + $query->select($db->quoteName( + array('a.id','a.counter'), + array('id','counter'))); + $query->from($db->quoteName('#__sermondistributor_statistic', 'a')); + // [2130] Check if JRequest::getInt('id') is a string or numeric value. + $checkValue = JRequest::getInt('id'); + if (isset($checkValue) && SermondistributorHelper::checkString($checkValue)) + { + $query->where('a.preacher = ' . $db->quote($checkValue)); + } + elseif (is_numeric($checkValue)) + { + $query->where('a.preacher = ' . $checkValue); + } + else + { + return false; + } + $query->where('a.published = 1'); + $query->order('a.ordering ASC'); + + // [2504] Reset the query using our newly populated query object. + $db->setQuery($query); + $items = $db->loadObjectList(); + + if (empty($items)) + { + return false; + } + + // [2934] Convert the parameter fields into objects. + foreach ($items as $nr => &$item) + { + // [2937] Always create a slug for sef URL's + $item->slug = (isset($item->alias)) ? $item->id.':'.$item->alias : $item->id; + } + // [2513] return items + return $items; + } + + + /** + * Custom Method + * + * @return mixed An array of objects on success, false on failure. + * + */ + public function getNumberSermons() + { + + if (!isset($this->initSet) || !$this->initSet) + { + $this->user = JFactory::getUser(); + $this->userId = $this->user->get('id'); + $this->guest = $this->user->get('guest'); + $this->groups = $this->user->get('groups'); + $this->authorisedGroups = $this->user->getAuthorisedGroups(); + $this->levels = $this->user->getAuthorisedViewLevels(); + $this->initSet = true; + } + + // [2499] Get the global params + $globalParams = JComponentHelper::getParams('com_sermondistributor', true); + // [2897] Get a db connection. + $db = JFactory::getDbo(); + + // [2906] Create a new query object. + $query = $db->getQuery(true); + + // [1788] Get from #__sermondistributor_sermon as a + $query->select($db->quoteName( + array('a.id','a.alias','a.preacher'), + array('id','alias','preacher'))); + $query->from($db->quoteName('#__sermondistributor_sermon', 'a')); + // [2130] Check if JRequest::getInt('id') is a string or numeric value. + $checkValue = JRequest::getInt('id'); + if (isset($checkValue) && SermondistributorHelper::checkString($checkValue)) + { + $query->where('a.preacher = ' . $db->quote($checkValue)); + } + elseif (is_numeric($checkValue)) + { + $query->where('a.preacher = ' . $checkValue); + } + else + { + return false; + } + $query->where('a.access IN (' . implode(',', $this->levels) . ')'); + $query->where('a.published = 1'); + $query->order('a.ordering ASC'); + + // [2504] Reset the query using our newly populated query object. + $db->setQuery($query); + $items = $db->loadObjectList(); + + if (empty($items)) + { + return false; + } + + // [2934] Convert the parameter fields into objects. + foreach ($items as $nr => &$item) + { + // [2937] Always create a slug for sef URL's + $item->slug = (isset($item->alias)) ? $item->id.':'.$item->alias : $item->id; + } + // [2513] return items + return $items; + } + + + /** + * Get the uikit needed components + * + * @return mixed An array of objects on success. + * + */ + public function getUikitComp() + { + if (isset($this->uikitComp) && SermondistributorHelper::checkArray($this->uikitComp)) + { + return $this->uikitComp; + } + return false; + } +} diff --git a/site/models/preachers.php b/site/models/preachers.php new file mode 100644 index 00000000..c8d8fe26 --- /dev/null +++ b/site/models/preachers.php @@ -0,0 +1,171 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage preachers.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the Joomla modellist library +jimport('joomla.application.component.modellist'); + +/** + * Sermondistributor Model for Preachers + */ +class SermondistributorModelPreachers extends JModelList +{ + /** + * Model user data. + * + * @var strings + */ + protected $user; + protected $userId; + protected $guest; + protected $groups; + protected $levels; + protected $app; + protected $input; + protected $uikitComp; + + /** + * Method to build an SQL query to load the list data. + * + * @return string An SQL query + */ + protected function getListQuery() + { + // Get the current user for authorisation checks + $this->user = JFactory::getUser(); + $this->userId = $this->user->get('id'); + $this->guest = $this->user->get('guest'); + $this->groups = $this->user->get('groups'); + $this->authorisedGroups = $this->user->getAuthorisedGroups(); + $this->levels = $this->user->getAuthorisedViewLevels(); + $this->app = JFactory::getApplication(); + $this->input = $this->app->input; + $this->initSet = true; + // [2897] Get a db connection. + $db = JFactory::getDbo(); + + // [2906] Create a new query object. + $query = $db->getQuery(true); + + // [1788] Get from #__sermondistributor_preacher as a + $query->select($db->quoteName( + array('a.id','a.asset_id','a.name','a.alias','a.icon','a.email','a.website','a.description','a.hits','a.ordering'), + array('id','asset_id','name','alias','icon','email','website','description','hits','ordering'))); + $query->from($db->quoteName('#__sermondistributor_preacher', 'a')); + $query->where('a.access IN (' . implode(',', $this->levels) . ')'); + $query->where('a.published = 1'); + $query->order('a.ordering ASC'); + + // [2919] return the query object + return $query; + } + + /** + * Method to get an array of data items. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getItems() + { + $user = JFactory::getUser(); + // check if this user has permission to access items + if (!$user->authorise('site.preachers.access', 'com_sermondistributor')) + { + JError::raiseWarning(500, JText::_('Not authorised!')); + // redirect away if not a correct (TODO for now we go to default view) + JFactory::getApplication()->redirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers')); + return false; + } + // load parent items + $items = parent::getItems(); + + // Get the global params + $globalParams = JComponentHelper::getParams('com_sermondistributor', true); + + // [2934] Convert the parameter fields into objects. + foreach ($items as $nr => &$item) + { + // [2937] Always create a slug for sef URL's + $item->slug = (isset($item->alias)) ? $item->id.':'.$item->alias : $item->id; + // [2005] Make sure the content prepare plugins fire on description. + $item->description = JHtml::_('content.prepare',$item->description); + // [2007] Checking if description has uikit components that must be loaded. + $this->uikitComp = SermondistributorHelper::getUikitComp($item->description,$this->uikitComp); + // [2038] set idPreacherSermonB to the $item object. + $item->idPreacherSermonB = $this->getIdPreacherSermonDcaa_B($item->id); + } + + // return items + return $items; + } + + /** + * Method to get an array of Sermon Objects. + * + * @return mixed An array of Sermon Objects on success, false on failure. + * + */ + public function getIdPreacherSermonDcaa_B($id) + { + // [2699] Get a db connection. + $db = JFactory::getDbo(); + + // [2701] Create a new query object. + $query = $db->getQuery(true); + + // [2703] Get from #__sermondistributor_sermon as b + $query->select($db->quoteName( + array('b.id'), + array('id'))); + $query->from($db->quoteName('#__sermondistributor_sermon', 'b')); + $query->where('b.preacher = ' . $db->quote($id)); + $query->where('b.access IN (' . implode(',', $this->levels) . ')'); + $query->where('b.published = 1'); + + // [2757] Reset the query using our newly populated query object. + $db->setQuery($query); + $db->execute(); + + // [2760] check if there was data returned + if ($db->getNumRows()) + { + return $db->loadObjectList(); + } + return false; + } + + + /** + * Get the uikit needed components + * + * @return mixed An array of objects on success. + * + */ + public function getUikitComp() + { + if (isset($this->uikitComp) && SermondistributorHelper::checkArray($this->uikitComp)) + { + return $this->uikitComp; + } + return false; + } +} diff --git a/site/models/series.php b/site/models/series.php new file mode 100644 index 00000000..5939b07a --- /dev/null +++ b/site/models/series.php @@ -0,0 +1,456 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage series.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the Joomla modellist library +jimport('joomla.application.component.modellist'); + +/** + * Sermondistributor Model for Series + */ +class SermondistributorModelSeries extends JModelList +{ + /** + * Model user data. + * + * @var strings + */ + protected $user; + protected $userId; + protected $guest; + protected $groups; + protected $levels; + protected $app; + protected $input; + protected $uikitComp; + + /** + * Method to build an SQL query to load the list data. + * + * @return string An SQL query + */ + protected function getListQuery() + { + // Get the current user for authorisation checks + $this->user = JFactory::getUser(); + $this->userId = $this->user->get('id'); + $this->guest = $this->user->get('guest'); + $this->groups = $this->user->get('groups'); + $this->authorisedGroups = $this->user->getAuthorisedGroups(); + $this->levels = $this->user->getAuthorisedViewLevels(); + $this->app = JFactory::getApplication(); + $this->input = $this->app->input; + $this->initSet = true; + // [2897] Get a db connection. + $db = JFactory::getDbo(); + + // [2906] Create a new query object. + $query = $db->getQuery(true); + + // [1788] Get from #__sermondistributor_sermon as a + $query->select($db->quoteName( + array('a.id','a.asset_id','a.name','a.alias','a.link_type','a.short_description','a.icon','a.preacher','a.series','a.catid','a.description','a.source','a.build','a.manual_files','a.local_files','a.url','a.auto_sermons','a.published','a.created_by','a.modified_by','a.created','a.modified','a.version','a.hits','a.ordering'), + array('id','asset_id','name','alias','link_type','short_description','icon','preacher','series','catid','description','source','build','manual_files','local_files','url','auto_sermons','published','created_by','modified_by','created','modified','version','hits','ordering'))); + $query->from($db->quoteName('#__sermondistributor_sermon', 'a')); + + // [1788] Get from #__sermondistributor_preacher as c + $query->select($db->quoteName( + array('c.name','c.alias'), + array('preacher_name','preacher_alias'))); + $query->join('LEFT', ($db->quoteName('#__sermondistributor_preacher', 'c')) . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('c.id') . ')'); + + // [1788] Get from #__sermondistributor_series as d + $query->select($db->quoteName( + array('d.name','d.alias'), + array('series_name','series_alias'))); + $query->join('LEFT', ($db->quoteName('#__sermondistributor_series', 'd')) . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('d.id') . ')'); + + // [1788] Get from #__categories as b + $query->select($db->quoteName( + array('b.title','b.alias'), + array('category','category_alias'))); + $query->join('LEFT', ($db->quoteName('#__categories', 'b')) . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('b.id') . ')'); + $query->where('a.access IN (' . implode(',', $this->levels) . ')'); + // [2130] Check if JRequest::getInt('id') is a string or numeric value. + $checkValue = JRequest::getInt('id'); + if (isset($checkValue) && SermondistributorHelper::checkString($checkValue)) + { + $query->where('a.series = ' . $db->quote($checkValue)); + } + elseif (is_numeric($checkValue)) + { + $query->where('a.series = ' . $checkValue); + } + else + { + return false; + } + $query->where('a.published = 1'); + $query->order('a.ordering ASC'); + + // [2919] return the query object + return $query; + } + + /** + * Method to get an array of data items. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getItems() + { + $user = JFactory::getUser(); + // check if this user has permission to access items + if (!$user->authorise('site.series.access', 'com_sermondistributor')) + { + JError::raiseWarning(500, JText::_('Not authorised!')); + // redirect away if not a correct (TODO for now we go to default view) + JFactory::getApplication()->redirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers')); + return false; + } + // load parent items + $items = parent::getItems(); + + // Get the global params + $globalParams = JComponentHelper::getParams('com_sermondistributor', true); + + // [2934] Convert the parameter fields into objects. + foreach ($items as $nr => &$item) + { + // [2937] Always create a slug for sef URL's + $item->slug = (isset($item->alias)) ? $item->id.':'.$item->alias : $item->id; + if (SermondistributorHelper::checkString($item->local_files)) + { + // [1990] Decode local_files + $item->local_files = json_decode($item->local_files, true); + } + if (SermondistributorHelper::checkString($item->manual_files)) + { + // [1990] Decode manual_files + $item->manual_files = json_decode($item->manual_files, true); + } + // [2005] Make sure the content prepare plugins fire on description. + $item->description = JHtml::_('content.prepare',$item->description); + // [2007] Checking if description has uikit components that must be loaded. + $this->uikitComp = SermondistributorHelper::getUikitComp($item->description,$this->uikitComp); + // [2038] set idSermonStatisticE to the $item object. + $item->idSermonStatisticE = $this->getIdSermonStatisticEfeb_E($item->id); + } + + + // do a quick build of all the sermon links + if (isset($items) && $items) + { + foreach ($items as $nr => &$item) + { + $item->statisticTotal = 0; + if (isset($item->auto_sermons) && SermondistributorHelper::checkString($item->auto_sermons)) + { + // Decode the auto files + $item->auto_sermons = json_decode($item->auto_sermons, true); + } + // set statistic per filename if found + if (isset($item->idSermonStatisticE) && SermondistributorHelper::checkArray($item->idSermonStatisticE)) + { + foreach ($item->idSermonStatisticE as $statistic) + { + $item->statistic[$statistic->filename] = $statistic->counter; + } + // set the total downloads for this sermon + $item->statisticTotal = array_sum($item->statistic); + } + unset($item->idSermonStatisticE); + // set preacher slug + $item->preacher_slug = (isset($item->preacher_alias)) ? $item->preacher.':'.$item->preacher_alias : $item->preacher; + // build category slug + $item->category_slug = (isset($item->category_alias)) ? $item->catid.':'.$item->category_alias : $item->catid; + // build needed links + $item->link = JRoute::_(SermondistributorHelperRoute::getSermonRoute($item->slug)); + $item->preacher_link = JRoute::_(SermondistributorHelperRoute::getPreacherRoute($item->preacher_slug)); + $item->category_link = JRoute::_(SermondistributorHelperRoute::getCategoryRoute($item->category_slug)); + // set view key + $item->viewKey = 'series'; + SermondistributorHelper::getDownloadLinks($item); + } + } + + // return items + return $items; + } + + /** + * Method to get an array of Statistic Objects. + * + * @return mixed An array of Statistic Objects on success, false on failure. + * + */ + public function getIdSermonStatisticEfeb_E($id) + { + // [2699] Get a db connection. + $db = JFactory::getDbo(); + + // [2701] Create a new query object. + $query = $db->getQuery(true); + + // [2703] Get from #__sermondistributor_statistic as e + $query->select($db->quoteName( + array('e.filename','e.sermon','e.preacher','e.series','e.counter'), + array('filename','sermon','preacher','series','counter'))); + $query->from($db->quoteName('#__sermondistributor_statistic', 'e')); + $query->where('e.sermon = ' . $db->quote($id)); + + // [2757] Reset the query using our newly populated query object. + $db->setQuery($query); + $db->execute(); + + // [2760] check if there was data returned + if ($db->getNumRows()) + { + return $db->loadObjectList(); + } + return false; + } + + + /** + * Custom Method + * + * @return mixed item data object on success, false on failure. + * + */ + public function getSeries() + { + + if (!isset($this->initSet) || !$this->initSet) + { + $this->user = JFactory::getUser(); + $this->userId = $this->user->get('id'); + $this->guest = $this->user->get('guest'); + $this->groups = $this->user->get('groups'); + $this->authorisedGroups = $this->user->getAuthorisedGroups(); + $this->levels = $this->user->getAuthorisedViewLevels(); + $this->initSet = true; + } + // [2329] Get a db connection. + $db = JFactory::getDbo(); + + // [2331] Create a new query object. + $query = $db->getQuery(true); + + // [1788] Get from #__sermondistributor_series as a + $query->select($db->quoteName( + array('a.id','a.asset_id','a.name','a.alias','a.description','a.icon','a.published','a.created_by','a.modified_by','a.created','a.modified','a.version','a.hits','a.ordering','a.metadesc','a.metakey','a.metadata'), + array('id','asset_id','name','alias','description','icon','published','created_by','modified_by','created','modified','version','hits','ordering','metadesc','metakey','metadata'))); + $query->from($db->quoteName('#__sermondistributor_series', 'a')); + $query->where('a.access IN (' . implode(',', $this->levels) . ')'); + // [2130] Check if JRequest::getInt('id') is a string or numeric value. + $checkValue = JRequest::getInt('id'); + if (isset($checkValue) && SermondistributorHelper::checkString($checkValue)) + { + $query->where('a.id = ' . $db->quote($checkValue)); + } + elseif (is_numeric($checkValue)) + { + $query->where('a.id = ' . $checkValue); + } + else + { + return false; + } + $query->where('a.published = 1'); + $query->order('a.ordering ASC'); + + // [2342] Reset the query using our newly populated query object. + $db->setQuery($query); + // [2344] Load the results as a stdClass object. + $data = $db->loadObject(); + + if (empty($data)) + { + return false; + } + // [2005] Make sure the content prepare plugins fire on description. + $data->description = JHtml::_('content.prepare',$data->description); + // [2007] Checking if description has uikit components that must be loaded. + $this->uikitComp = SermondistributorHelper::getUikitComp($data->description,$this->uikitComp); + + // [2443] return data object. + return $data; + } + + + /** + * Custom Method + * + * @return mixed An array of objects on success, false on failure. + * + */ + public function getNumberDownloads() + { + + if (!isset($this->initSet) || !$this->initSet) + { + $this->user = JFactory::getUser(); + $this->userId = $this->user->get('id'); + $this->guest = $this->user->get('guest'); + $this->groups = $this->user->get('groups'); + $this->authorisedGroups = $this->user->getAuthorisedGroups(); + $this->levels = $this->user->getAuthorisedViewLevels(); + $this->initSet = true; + } + + // [2499] Get the global params + $globalParams = JComponentHelper::getParams('com_sermondistributor', true); + // [2897] Get a db connection. + $db = JFactory::getDbo(); + + // [2906] Create a new query object. + $query = $db->getQuery(true); + + // [1788] Get from #__sermondistributor_statistic as a + $query->select($db->quoteName( + array('a.id','a.counter'), + array('id','counter'))); + $query->from($db->quoteName('#__sermondistributor_statistic', 'a')); + // [2130] Check if JRequest::getInt('id') is a string or numeric value. + $checkValue = JRequest::getInt('id'); + if (isset($checkValue) && SermondistributorHelper::checkString($checkValue)) + { + $query->where('a.series = ' . $db->quote($checkValue)); + } + elseif (is_numeric($checkValue)) + { + $query->where('a.series = ' . $checkValue); + } + else + { + return false; + } + $query->where('a.published = 1'); + $query->order('a.ordering ASC'); + + // [2504] Reset the query using our newly populated query object. + $db->setQuery($query); + $items = $db->loadObjectList(); + + if (empty($items)) + { + return false; + } + + // [2934] Convert the parameter fields into objects. + foreach ($items as $nr => &$item) + { + // [2937] Always create a slug for sef URL's + $item->slug = (isset($item->alias)) ? $item->id.':'.$item->alias : $item->id; + } + // [2513] return items + return $items; + } + + + /** + * Custom Method + * + * @return mixed An array of objects on success, false on failure. + * + */ + public function getNumberSermons() + { + + if (!isset($this->initSet) || !$this->initSet) + { + $this->user = JFactory::getUser(); + $this->userId = $this->user->get('id'); + $this->guest = $this->user->get('guest'); + $this->groups = $this->user->get('groups'); + $this->authorisedGroups = $this->user->getAuthorisedGroups(); + $this->levels = $this->user->getAuthorisedViewLevels(); + $this->initSet = true; + } + + // [2499] Get the global params + $globalParams = JComponentHelper::getParams('com_sermondistributor', true); + // [2897] Get a db connection. + $db = JFactory::getDbo(); + + // [2906] Create a new query object. + $query = $db->getQuery(true); + + // [1788] Get from #__sermondistributor_sermon as a + $query->select($db->quoteName( + array('a.id','a.alias','a.series'), + array('id','alias','series'))); + $query->from($db->quoteName('#__sermondistributor_sermon', 'a')); + // [2130] Check if JRequest::getInt('id') is a string or numeric value. + $checkValue = JRequest::getInt('id'); + if (isset($checkValue) && SermondistributorHelper::checkString($checkValue)) + { + $query->where('a.series = ' . $db->quote($checkValue)); + } + elseif (is_numeric($checkValue)) + { + $query->where('a.series = ' . $checkValue); + } + else + { + return false; + } + $query->where('a.access IN (' . implode(',', $this->levels) . ')'); + $query->where('a.published = 1'); + $query->order('a.ordering ASC'); + + // [2504] Reset the query using our newly populated query object. + $db->setQuery($query); + $items = $db->loadObjectList(); + + if (empty($items)) + { + return false; + } + + // [2934] Convert the parameter fields into objects. + foreach ($items as $nr => &$item) + { + // [2937] Always create a slug for sef URL's + $item->slug = (isset($item->alias)) ? $item->id.':'.$item->alias : $item->id; + } + // [2513] return items + return $items; + } + + + /** + * Get the uikit needed components + * + * @return mixed An array of objects on success. + * + */ + public function getUikitComp() + { + if (isset($this->uikitComp) && SermondistributorHelper::checkArray($this->uikitComp)) + { + return $this->uikitComp; + } + return false; + } +} diff --git a/site/models/serieslist.php b/site/models/serieslist.php new file mode 100644 index 00000000..b4a2ba08 --- /dev/null +++ b/site/models/serieslist.php @@ -0,0 +1,171 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage serieslist.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the Joomla modellist library +jimport('joomla.application.component.modellist'); + +/** + * Sermondistributor Model for Serieslist + */ +class SermondistributorModelSerieslist extends JModelList +{ + /** + * Model user data. + * + * @var strings + */ + protected $user; + protected $userId; + protected $guest; + protected $groups; + protected $levels; + protected $app; + protected $input; + protected $uikitComp; + + /** + * Method to build an SQL query to load the list data. + * + * @return string An SQL query + */ + protected function getListQuery() + { + // Get the current user for authorisation checks + $this->user = JFactory::getUser(); + $this->userId = $this->user->get('id'); + $this->guest = $this->user->get('guest'); + $this->groups = $this->user->get('groups'); + $this->authorisedGroups = $this->user->getAuthorisedGroups(); + $this->levels = $this->user->getAuthorisedViewLevels(); + $this->app = JFactory::getApplication(); + $this->input = $this->app->input; + $this->initSet = true; + // [2897] Get a db connection. + $db = JFactory::getDbo(); + + // [2906] Create a new query object. + $query = $db->getQuery(true); + + // [1788] Get from #__sermondistributor_series as a + $query->select($db->quoteName( + array('a.id','a.asset_id','a.name','a.alias','a.description','a.icon','a.hits','a.ordering'), + array('id','asset_id','name','alias','description','icon','hits','ordering'))); + $query->from($db->quoteName('#__sermondistributor_series', 'a')); + $query->where('a.access IN (' . implode(',', $this->levels) . ')'); + $query->where('a.published = 1'); + $query->order('a.ordering ASC'); + + // [2919] return the query object + return $query; + } + + /** + * Method to get an array of data items. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getItems() + { + $user = JFactory::getUser(); + // check if this user has permission to access items + if (!$user->authorise('site.serieslist.access', 'com_sermondistributor')) + { + JError::raiseWarning(500, JText::_('Not authorised!')); + // redirect away if not a correct (TODO for now we go to default view) + JFactory::getApplication()->redirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers')); + return false; + } + // load parent items + $items = parent::getItems(); + + // Get the global params + $globalParams = JComponentHelper::getParams('com_sermondistributor', true); + + // [2934] Convert the parameter fields into objects. + foreach ($items as $nr => &$item) + { + // [2937] Always create a slug for sef URL's + $item->slug = (isset($item->alias)) ? $item->id.':'.$item->alias : $item->id; + // [2005] Make sure the content prepare plugins fire on description. + $item->description = JHtml::_('content.prepare',$item->description); + // [2007] Checking if description has uikit components that must be loaded. + $this->uikitComp = SermondistributorHelper::getUikitComp($item->description,$this->uikitComp); + // [2038] set idSeriesSermonB to the $item object. + $item->idSeriesSermonB = $this->getIdSeriesSermonBcae_B($item->id); + } + + // return items + return $items; + } + + /** + * Method to get an array of Sermon Objects. + * + * @return mixed An array of Sermon Objects on success, false on failure. + * + */ + public function getIdSeriesSermonBcae_B($id) + { + // [2699] Get a db connection. + $db = JFactory::getDbo(); + + // [2701] Create a new query object. + $query = $db->getQuery(true); + + // [2703] Get from #__sermondistributor_sermon as b + $query->select($db->quoteName( + array('b.id'), + array('id'))); + $query->from($db->quoteName('#__sermondistributor_sermon', 'b')); + $query->where('b.series = ' . $db->quote($id)); + $query->where('b.access IN (' . implode(',', $this->levels) . ')'); + $query->where('b.published = 1'); + + // [2757] Reset the query using our newly populated query object. + $db->setQuery($query); + $db->execute(); + + // [2760] check if there was data returned + if ($db->getNumRows()) + { + return $db->loadObjectList(); + } + return false; + } + + + /** + * Get the uikit needed components + * + * @return mixed An array of objects on success. + * + */ + public function getUikitComp() + { + if (isset($this->uikitComp) && SermondistributorHelper::checkArray($this->uikitComp)) + { + return $this->uikitComp; + } + return false; + } +} diff --git a/site/models/sermon.php b/site/models/sermon.php new file mode 100644 index 00000000..00061293 --- /dev/null +++ b/site/models/sermon.php @@ -0,0 +1,303 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermon.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla modelitem library +jimport('joomla.application.component.modelitem'); + +/** + * Sermondistributor Sermon Model + */ +class SermondistributorModelSermon extends JModelItem +{ + /** + * Model context string. + * + * @var string + */ + protected $_context = 'com_sermondistributor.sermon'; + + /** + * Model user data. + * + * @var strings + */ + protected $user; + protected $userId; + protected $guest; + protected $groups; + protected $levels; + protected $app; + protected $input; + protected $uikitComp; + + /** + * @var object item + */ + protected $item; + + /** + * Method to auto-populate the model state. + * + * Note. Calling getState in this method will result in recursion. + * + * @since 1.6 + * + * @return void + */ + protected function populateState() + { + $this->app = JFactory::getApplication(); + $this->input = $this->app->input; + // Get the itme main id + $id = JRequest::getInt('id'); + $this->setState('sermon.id', $id); + + // Load the parameters. + $params = $this->app->getParams(); + $this->setState('params', $params); + parent::populateState(); + } + + /** + * Method to get article data. + * + * @param integer $pk The id of the article. + * + * @return mixed Menu item data object on success, false on failure. + */ + public function getItem($pk = null) + { + $this->user = JFactory::getUser(); + // check if this user has permission to access item + if (!$this->user->authorise('site.sermon.access', 'com_sermondistributor')) + { + JError::raiseWarning(500, JText::_('Not authorised!')); + // redirect away if not a correct (TODO for now we go to default view) + JFactory::getApplication()->redirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers')); + return false; + } + $this->userId = $this->user->get('id'); + $this->guest = $this->user->get('guest'); + $this->groups = $this->user->get('groups'); + $this->authorisedGroups = $this->user->getAuthorisedGroups(); + $this->levels = $this->user->getAuthorisedViewLevels(); + $this->initSet = true; + + $pk = (!empty($pk)) ? $pk : (int) $this->getState('sermon.id'); + + if ($this->_item === null) + { + $this->_item = array(); + } + + if (!isset($this->_item[$pk])) + { + try + { + // [2329] Get a db connection. + $db = JFactory::getDbo(); + + // [2331] Create a new query object. + $query = $db->getQuery(true); + + // [1788] Get from #__sermondistributor_sermon as a + $query->select($db->quoteName( + array('a.id','a.asset_id','a.name','a.alias','a.preacher','a.short_description','a.icon','a.scripture','a.series','a.catid','a.description','a.link_type','a.source','a.build','a.manual_files','a.local_files','a.url','a.not_required','a.auto_sermons','a.published','a.created_by','a.modified_by','a.created','a.modified','a.version','a.hits','a.ordering','a.metadesc','a.metakey','a.metadata'), + array('id','asset_id','name','alias','preacher','short_description','icon','scripture','series','catid','description','link_type','source','build','manual_files','local_files','url','not_required','auto_sermons','published','created_by','modified_by','created','modified','version','hits','ordering','metadesc','metakey','metadata'))); + $query->from($db->quoteName('#__sermondistributor_sermon', 'a')); + + // [1788] Get from #__sermondistributor_series as b + $query->select($db->quoteName( + array('b.name','b.alias'), + array('series_name','series_alias'))); + $query->join('LEFT', ($db->quoteName('#__sermondistributor_series', 'b')) . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('b.id') . ')'); + + // [1788] Get from #__sermondistributor_preacher as c + $query->select($db->quoteName( + array('c.name','c.alias'), + array('preacher_name','preacher_alias'))); + $query->join('LEFT', ($db->quoteName('#__sermondistributor_preacher', 'c')) . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('c.id') . ')'); + + // [1788] Get from #__categories as e + $query->select($db->quoteName( + array('e.alias','e.title'), + array('category_alias','category'))); + $query->join('LEFT', ($db->quoteName('#__categories', 'e')) . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('e.id') . ')'); + $query->where('a.access IN (' . implode(',', $this->levels) . ')'); + $query->where('a.id = ' . (int) $pk); + $query->where('a.published = 1'); + $query->order('a.ordering ASC'); + + // [2342] Reset the query using our newly populated query object. + $db->setQuery($query); + // [2344] Load the results as a stdClass object. + $data = $db->loadObject(); + + if (empty($data)) + { + // [2355] If no data is found redirect to default page and show warning. + JError::raiseWarning(500, JText::_('COM_SERMONDISTRIBUTOR_NOT_FOUND_OR_ACCESS_DENIED')); + JFactory::getApplication()->redirect('index.php?option=com_sermondistributor&view=preachers'); + return false; + } + if (SermondistributorHelper::checkString($data->local_files)) + { + // [1990] Decode local_files + $data->local_files = json_decode($data->local_files, true); + } + if (SermondistributorHelper::checkString($data->manual_files)) + { + // [1990] Decode manual_files + $data->manual_files = json_decode($data->manual_files, true); + } + // [2005] Make sure the content prepare plugins fire on description. + $data->description = JHtml::_('content.prepare',$data->description); + // [2007] Checking if description has uikit components that must be loaded. + $this->uikitComp = SermondistributorHelper::getUikitComp($data->description,$this->uikitComp); + // [2301] set the global sermon value. + $this->a_sermon = $data->id; + // [2038] set idSermonStatisticD to the $data object. + $data->idSermonStatisticD = $this->getIdSermonStatisticEbbd_D($data->id); + + // [2449] set data object to item. + $this->_item[$pk] = $data; + } + catch (Exception $e) + { + if ($e->getCode() == 404) + { + // Need to go thru the error handler to allow Redirect to work. + JError::raiseError(404, $e->getMessage()); + } + else + { + $this->setError($e); + $this->_item[$pk] = false; + } + } + } + + if(isset($this->_item[$pk])) + { + // set some default tottals + $this->_item[$pk]->statisticTotal = 0; + // set the auto links if found + if (isset($this->_item[$pk]->auto_sermons) && SermondistributorHelper::checkString($this->_item[$pk]->auto_sermons)) + { + // Decode the auto files + $this->_item[$pk]->auto_sermons = json_decode($this->_item[$pk]->auto_sermons, true); + } + // set statistic per filename if found + if (isset($this->_item[$pk]->idSermonStatisticD) && SermondistributorHelper::checkArray($this->_item[$pk]->idSermonStatisticD)) + { + foreach ($this->_item[$pk]->idSermonStatisticD as $statistic) + { + $this->_item[$pk]->statistic[$statistic->filename] = $statistic->counter; + } + // set the total downloads for this sermon + $this->_item[$pk]->statisticTotal = array_sum($this->_item[$pk]->statistic); + } + unset($this->_item[$pk]->idSermonStatisticD); + // build needed slugs + $this->_item[$pk]->preacher_slug = (isset($this->_item[$pk]->preacher_alias)) ? $this->_item[$pk]->preacher.':'.$this->_item[$pk]->preacher_alias : $this->_item[$pk]->preacher; + $this->_item[$pk]->series_slug = (isset($this->_item[$pk]->series_alias)) ? $this->_item[$pk]->series.':'.$this->_item[$pk]->series_alias : $this->_item[$pk]->series; + $this->_item[$pk]->category_slug = (isset($this->_item[$pk]->category_alias)) ? $this->_item[$pk]->catid.':'.$this->_item[$pk]->category_alias : $this->_item[$pk]->catid; + // now build the links + $this->_item[$pk]->preacher_link = JRoute::_(SermondistributorHelperRoute::getPreacherRoute($this->_item[$pk]->preacher_slug)); + $this->_item[$pk]->series_link = JRoute::_(SermondistributorHelperRoute::getSeriesRoute($this->_item[$pk]->series_slug)); + $this->_item[$pk]->category_link = JRoute::_(SermondistributorHelperRoute::getCategoryRoute($this->_item[$pk]->category_slug)); + // build the download links + SermondistributorHelper::getDownloadLinks($this->_item[$pk]); + // fix the scripture links that they will show + if (isset($this->_item[$pk]->scripture) && SermondistributorHelper::checkString($this->_item[$pk]->scripture)) + { + if (strpos(",",$this->_item[$pk]->scripture) !== false) + { + $scripture = (array) explode(",",$this->_item[$pk]->scripture); + } + elseif (strpos(";",$this->_item[$pk]->scripture) !== false) + { + $scripture = (array) explode(";",$this->_item[$pk]->scripture); + } + else + { + $scripture = (array) $this->_item[$pk]->scripture; + } + // now load the getBible taging + $scripture = '<p><span class="getBible">'.implode(' [in]</span></p><p><span class="getBible">',$scripture).' [in]</span></p>'; + $this->_item[$pk]->scripture = JHtml::_('content.prepare', $scripture); + } + } + + return $this->_item[$pk]; + } + + /** + * Method to get an array of Statistic Objects. + * + * @return mixed An array of Statistic Objects on success, false on failure. + * + */ + public function getIdSermonStatisticEbbd_D($id) + { + // [2699] Get a db connection. + $db = JFactory::getDbo(); + + // [2701] Create a new query object. + $query = $db->getQuery(true); + + // [2703] Get from #__sermondistributor_statistic as d + $query->select($db->quoteName( + array('d.filename','d.counter'), + array('filename','counter'))); + $query->from($db->quoteName('#__sermondistributor_statistic', 'd')); + $query->where('d.sermon = ' . $db->quote($id)); + + // [2757] Reset the query using our newly populated query object. + $db->setQuery($query); + $db->execute(); + + // [2760] check if there was data returned + if ($db->getNumRows()) + { + return $db->loadObjectList(); + } + return false; + } + + + /** + * Get the uikit needed components + * + * @return mixed An array of objects on success. + * + */ + public function getUikitComp() + { + if (isset($this->uikitComp) && SermondistributorHelper::checkArray($this->uikitComp)) + { + return $this->uikitComp; + } + return false; + } +} diff --git a/site/router.php b/site/router.php new file mode 100644 index 00000000..cdd4cc5f --- /dev/null +++ b/site/router.php @@ -0,0 +1,299 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage router.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Routing class from com_sermondistributor + * + * @since 3.3 + */ +class SermondistributorRouter extends JComponentRouterBase +{ + /** + * Build the route for the com_sermondistributor component + * + * @param array &$query An array of URL arguments + * + * @return array The URL arguments to use to assemble the subsequent URL. + * + * @since 3.3 + */ + public function build(&$query) + { + $segments = array(); + + // Get a menu item based on Itemid or currently active + $params = JComponentHelper::getParams('com_sermondistributor'); + + if (empty($query['Itemid'])) + { + $menuItem = $this->menu->getActive(); + } + else + { + $menuItem = $this->menu->getItem($query['Itemid']); + } + + $mView = (empty($menuItem->query['view'])) ? null : $menuItem->query['view']; + $mId = (empty($menuItem->query['id'])) ? null : $menuItem->query['id']; + + if (isset($query['view'])) + { + $view = $query['view']; + + if (empty($query['Itemid'])) + { + $segments[] = $query['view']; + } + + unset($query['view']); + } + + // Are we dealing with a item that is attached to a menu item? + if (isset($view) && ($mView == $view) and (isset($query['id'])) and ($mId == (int) $query['id'])) + { + unset($query['view']); + unset($query['catid']); + unset($query['id']); + return $segments; + } + + if (isset($view) && isset($query['id']) && ($view == 'preachers' || $view == 'preacher' || $view == 'categories' || $view == 'category' || $view == 'serieslist' || $view == 'series' || $view == 'sermon')) + { + if ($mId != (int) $query['id'] || $mView != $view) + { + if ($view == 'preachers' || $view == 'preacher' || $view == 'categories' || $view == 'category' || $view == 'serieslist' || $view == 'series' || $view == 'sermon') + { + $segments[] = $view; + $id = explode(':', $query['id']); + if (count($id) == 2) + { + $segments[] = $id[1]; + } + else + { + $segments[] = $id[0]; + } + } + } + unset($query['id']); + } + + $total = count($segments); + + for ($i = 0; $i < $total; $i++) + { + $segments[$i] = str_replace(':', '-', $segments[$i]); + } + + return $segments; + + } + + /** + * Parse the segments of a URL. + * + * @param array &$segments The segments of the URL to parse. + * + * @return array The URL attributes to be used by the application. + * + * @since 3.3 + */ + public function parse(&$segments) + { + //var_dump($segments); + //$app = JFactory::getApplication(); + //$menu = $app->getMenu(); + //$item = $menu->getActive(); + + $count = count($segments); + $vars = array(); + + //var_dump($item->query['view']); + //Handle View and Identifier + switch($segments[0]) + { + case 'preachers': + $vars['view'] = 'preachers'; + if (is_numeric($segments[$count-1])) + { + $vars['id'] = (int) $segments[$count-1]; + } + else + { + $id = $this->getVar('preachers', $segments[$count-1], 'alias', 'id'); + if($id) + { + $vars['id'] = $id; + } + } + break; + case 'preacher': + $vars['view'] = 'preacher'; + if (is_numeric($segments[$count-1])) + { + $vars['id'] = (int) $segments[$count-1]; + } + else + { + $id = $this->getVar('preacher', $segments[$count-1], 'alias', 'id'); + if($id) + { + $vars['id'] = $id; + } + } + break; + case 'categories': + $vars['view'] = 'categories'; + if (is_numeric($segments[$count-1])) + { + $vars['id'] = (int) $segments[$count-1]; + } + else + { + $id = $this->getVar('categories', $segments[$count-1], 'alias', 'id'); + if($id) + { + $vars['id'] = $id; + } + } + break; + case 'category': + $vars['view'] = 'category'; + if (is_numeric($segments[$count-1])) + { + $vars['id'] = (int) $segments[$count-1]; + } + else + { + $id = $this->getVar('category', $segments[$count-1], 'alias', 'id'); + if($id) + { + $vars['id'] = $id; + } + } + break; + case 'serieslist': + $vars['view'] = 'serieslist'; + if (is_numeric($segments[$count-1])) + { + $vars['id'] = (int) $segments[$count-1]; + } + else + { + $id = $this->getVar('serieslist', $segments[$count-1], 'alias', 'id'); + if($id) + { + $vars['id'] = $id; + } + } + break; + case 'series': + $vars['view'] = 'series'; + if (is_numeric($segments[$count-1])) + { + $vars['id'] = (int) $segments[$count-1]; + } + else + { + $id = $this->getVar('series', $segments[$count-1], 'alias', 'id'); + if($id) + { + $vars['id'] = $id; + } + } + break; + case 'sermon': + $vars['view'] = 'sermon'; + if (is_numeric($segments[$count-1])) + { + $vars['id'] = (int) $segments[$count-1]; + } + else + { + $id = $this->getVar('sermon', $segments[$count-1], 'alias', 'id'); + if($id) + { + $vars['id'] = $id; + } + } + break; + } + + return $vars; + } + + protected function getVar($table, $where = null, $whereString = 'user', $what = 'id', $operator = '=', $main = 'sermondistributor') + { + if(!$where) + { + $where = JFactory::getUser()->id; + } + // Get a db connection. + $db = JFactory::getDbo(); + // Create a new query object. + $query = $db->getQuery(true); + + $query->select($db->quoteName(array($what))); + if ('categories' == $table || 'category' == $table) + { + $query->from($db->quoteName('#__categories')); + } + else + { + $query->from($db->quoteName('#__'.$main.'_'.$table)); + } + if (is_numeric($where)) + { + $query->where($db->quoteName($whereString) . ' '.$operator.' '.(int) $where); + } + elseif (is_string($where)) + { + $query->where($db->quoteName($whereString) . ' '.$operator.' '. $db->quote((string)$where)); + } + else + { + return false; + } + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + return $db->loadResult(); + } + return false; + } +} + +function SermondistributorBuildRoute(&$query) +{ + $router = new SermondistributorRouter; + + return $router->build($query); +} + +function SermondistributorParseRoute($segments) +{ + $router = new ContentRouter; + + return $router->parse($segments); +} \ No newline at end of file diff --git a/site/sermondistributor.php b/site/sermondistributor.php new file mode 100644 index 00000000..31701bee --- /dev/null +++ b/site/sermondistributor.php @@ -0,0 +1,46 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage sermondistributor.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// Set the component css/js +$document = JFactory::getDocument(); +$document->addStyleSheet('components/com_sermondistributor/assets/css/site.css'); +$document->addScript('components/com_sermondistributor/assets/js/site.js'); + +// Require helper files +JLoader::register('SermondistributorHelper', dirname(__FILE__) . '/helpers/sermondistributor.php'); +JLoader::register('SermondistributorHelperRoute', dirname(__FILE__) . '/helpers/route.php'); + +// Triger the Global Site Event +SermondistributorHelper::globalEvent($document); + +// import joomla controller library +jimport('joomla.application.component.controller'); + +// Get an instance of the controller prefixed by Sermondistributor +$controller = JControllerLegacy::getInstance('Sermondistributor'); + +// Perform the request task +$controller->execute(JRequest::getCmd('task')); + +// Redirect if set by the controller +$controller->redirect(); diff --git a/site/views/categories/index.html b/site/views/categories/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/views/categories/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/views/categories/tmpl/default.php b/site/views/categories/tmpl/default.php new file mode 100644 index 00000000..58f44a00 --- /dev/null +++ b/site/views/categories/tmpl/default.php @@ -0,0 +1,55 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// Set the heading of the page +$heading = ($this->params->get('page_heading')) ? $this->params->get('page_heading'):(isset($this->menu->title)) ? $this->menu->title:''; + +?> + <?php if ($this->params->get('show_page_heading')): ?> + <h1 class="uk-text-primary"><?php echo $heading; ?></h1> +<?php endif; ?> +<?php if ($this->items): ?> + <?php if ($this->params->get('categories_display') == 1) : ?> + <?php echo $this->loadTemplate('categories-table'); ?> + <?php elseif ($this->params->get('categories_display') == 2) : ?> + <?php echo $this->loadTemplate('categories-grid'); ?> + <?php else: ?> + <?php echo $this->loadTemplate('categories-list'); ?> + <?php endif; ?> +<?php else: ?> + <div class="uk-alert uk-alert-warning" data-uk-alert> + <a href="" class="uk-alert-close uk-close"></a> + <p><?php echo JText::_('COM_SERMONDISTRIBUTOR_NO_CATEGORIES_WERE_FOUND'); ?></p> + </div> +<?php endif; ?> + +<?php if (isset($this->items) && sermondistributorHelper::checkArray($this->items) && count($this->items) > 4): ?> +<form name="adminForm" method="post"> + <div class="pagination"> + <?php if ($this->params->def('show_pagination_results', 1)) : ?> + <p class="counter pull-right"> <?php echo $this->pagination->getPagesCounter(); ?> <?php echo $this->pagination->getLimitBox(); ?></p> + <?php endif; ?> + <?php echo $this->pagination->getPagesLinks(); ?> + </div> +</form> +<?php endif; ?> <?php echo $this->toolbar->render(); ?> diff --git a/site/views/categories/tmpl/default.xml b/site/views/categories/tmpl/default.xml new file mode 100644 index 00000000..a173f635 --- /dev/null +++ b/site/views/categories/tmpl/default.xml @@ -0,0 +1,149 @@ +<?xml version="1.0" encoding="utf-8" ?> +<metadata> + <layout title="COM_SERMONDISTRIBUTOR_MENU_CATEGORIES_TITLE" option="COM_SERMONDISTRIBUTOR_MENU_CATEGORIES_OPTION"> + <message> + <![CDATA[COM_SERMONDISTRIBUTOR_MENU_CATEGORIES_DESC]]> + </message> + </layout> + <!-- [1729] Adding page parameters --> + <fields name="params"> + <fieldset name="basic" label="COM_SERMONDISTRIBUTOR"> + <!-- [11246] Categories_display Field. Type: Radio. (joomla) --> + <field + type="radio" + name="categories_display" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_DISPLAY_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_DISPLAY_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_TABLE</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_GRID</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_LIST</option> + </field> + <!-- [11246] Categories_list_style Field. Type: List. (joomla) --> + <field + type="list" + name="categories_list_style" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_LIST_STYLE_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_LIST_STYLE_DESCRIPTION" + class="list_class" + multiple="false" + filter="string" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_PLAIN</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_LINES</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_STRIPED</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option> + </field> + <!-- [11246] Categories_table_color Field. Type: List. (joomla) --> + <field + type="list" + name="categories_table_color" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_TABLE_COLOR_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_TABLE_COLOR_DESCRIPTION" + class="list_class" + multiple="false" + filter="string" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_BLUE</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_RED</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_PURPLE</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_GREEN</option> + <option value="4"> + COM_SERMONDISTRIBUTOR_CONFIG_DARK_BLUE</option> + <option value="5"> + COM_SERMONDISTRIBUTOR_CONFIG_LEGACY</option> + <option value="6"> + COM_SERMONDISTRIBUTOR_CONFIG_UIKIT</option> + <option value="7"> + COM_SERMONDISTRIBUTOR_CONFIG_CUSTOM</option> + <option value="8"> + COM_SERMONDISTRIBUTOR_CONFIG_NONE</option> + </field> + <!-- [11246] Categories_icon Field. Type: Radio. (joomla) --> + <field + type="radio" + name="categories_icon" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_ICON_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_ICON_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Categories_desc Field. Type: Radio. (joomla) --> + <field + type="radio" + name="categories_desc" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_DESC_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_DESC_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Categories_sermon_count Field. Type: Radio. (joomla) --> + <field + type="radio" + name="categories_sermon_count" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_SERMON_COUNT_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_SERMON_COUNT_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Categories_hits Field. Type: Radio. (joomla) --> + <field + type="radio" + name="categories_hits" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_HITS_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_HITS_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + </fieldset> + </fields> +</metadata> \ No newline at end of file diff --git a/site/views/categories/tmpl/default_categories-grid.php b/site/views/categories/tmpl/default_categories-grid.php new file mode 100644 index 00000000..0fd510f8 --- /dev/null +++ b/site/views/categories/tmpl/default_categories-grid.php @@ -0,0 +1,41 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_categories-grid.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<ul id="category-sort-menu" class="uk-subnav"> + <li data-uk-sort="category"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME_ASC'); ?></a></li> + <li data-uk-sort="category:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME_DESC'); ?></a></li> + <?php if ($this->params->get('categories_hits')): ?> + <li data-uk-sort="hits"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS_ASC'); ?></a></li> + <li data-uk-sort="hits:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS_DESC'); ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('categories_sermon_count')): ?> + <li data-uk-sort="sermons"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMONS_COUNT_ASC'); ?></a></li> + <li data-uk-sort="sermons:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMONS_COUNT_DESC'); ?></a></li> + <?php endif; ?> +</ul> +<div data-uk-check-display class="uk-grid-width-small-1-2 uk-grid-width-medium-1-3 uk-grid-width-large-1-4" data-uk-grid="{controls: '#category-sort-menu',gutter: 15}"> + <?php foreach ($this->items as $item): ?> + <div data-category="<?php echo $this->escape($item->name); ?>" data-hits="<?php echo (int) $item->hits; ?>" data-sermons="<?php echo count($item->idCatidSermonB); ?>"><?php $item->params = $this->params; $item->desc = $this->escape($item->description, true, 65); echo JLayoutHelper::render('categoriespanel', $item); ?></div> + <?php endforeach; ?> +</div> diff --git a/site/views/categories/tmpl/default_categories-list.php b/site/views/categories/tmpl/default_categories-list.php new file mode 100644 index 00000000..6c577acf --- /dev/null +++ b/site/views/categories/tmpl/default_categories-list.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_categories-list.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// build the list class +$style = $this->params->get('categories_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +?> +<ul class="uk-list<?php echo $listClass; ?>"> + <?php foreach ($this->items as $item): ?> + <li><?php $item->params = $this->params; $item->desc = $this->escape($item->description, true, 90); echo JLayoutHelper::render('categorieslistitem', $item); ?></li> + <?php endforeach; ?> +</ul> diff --git a/site/views/categories/tmpl/default_categories-table.php b/site/views/categories/tmpl/default_categories-table.php new file mode 100644 index 00000000..801ef157 --- /dev/null +++ b/site/views/categories/tmpl/default_categories-table.php @@ -0,0 +1,96 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_categories-table.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// Column counter +$column_nr = 1; +// build the table class +$color = $this->params->get('categories_table_color'); +switch ($color) +{ + case 1: + // Red + $tableClass = ' metro-red'; + break; + case 2: + // Purple + $tableClass = ' metro-purple'; + break; + case 3: + // Green + $tableClass = ' metro-green'; + break; + case 4: + // Dark Blue + $tableClass = ' metro-blue'; + break; + case 6: + // Uikit style + $tableClass = ' uk-table'; + break; + case 7: + // Custom Style + $tableClass = ' categories-table'; + break; + default: + // Light Blue and other + $tableClass = ''; + break; +} + +?> +<table class="footable<?php echo $tableClass; ?>" data-page-size="100"> + <thead> + <tr> + <th data-toggle="true"><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME'); ?></th> + <?php if ($this->params->get('categories_desc')): ?> + <th data-hide="all"><?php echo JText::_('COM_SERMONDISTRIBUTOR_DESCRIPTION'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('categories_hits')): ?> + <th data-type="numeric"><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('categories_sermon_count')): ?> + <th data-type="numeric" data-hide="phone,tablet"><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); $column_nr++;?></th> + <?php endif; ?> + </tr> + </thead> + <tfoot class="hide-if-no-paging"> + <tr> + <td colspan="<?php echo $column_nr; ?>"> + <div class="pagination pagination-centered"></div> + </td> + </tr> + </tfoot> + <tbody> + <?php foreach ($this->items as $item): ?> + <tr><?php $item->params = $this->params; echo JLayoutHelper::render('categoriesrow', $item); ?></tr> + <?php endforeach; ?> + </tbody> +</table> + +<script> +// page loading pause +jQuery(window).load(function() { + // do some stuff once page is loaded + jQuery('.footable').footable(); +}); +</script> diff --git a/site/views/categories/tmpl/index.html b/site/views/categories/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/views/categories/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/views/categories/view.html.php b/site/views/categories/view.html.php new file mode 100644 index 00000000..e82c38b1 --- /dev/null +++ b/site/views/categories/view.html.php @@ -0,0 +1,217 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Sermondistributor View class for the Categories + */ +class SermondistributorViewCategories extends JViewLegacy +{ + // Overwriting JView display method + function display($tpl = null) + { + // get combined params of both component and menu + $this->app = JFactory::getApplication(); + $this->params = $this->app->getParams(); + $this->menu = $this->app->getMenu()->getActive(); + // get the user object + $this->user = JFactory::getUser(); + // [3032] Initialise variables. + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + + // [3050] Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseWarning(500, implode("\n", $errors)); + return false; + } + // do a quick build of all the links + if ($this->items) + { + foreach ($this->items as $nr => &$item) + { + $item->link = JRoute::_(SermondistributorHelperRoute::getCategoryRoute($item->slug)); + } + } + // set the FooTable style + $style = $this->params->get('categories_table_color', 0); + if (5 == $style) + { + $this->fooTableStyle = 1; + } + elseif ($style <= 4) + { + $this->fooTableStyle = 0; + } + else + { + $this->fooTableStyle = 2; + } + + // [3067] Set the toolbar + $this->addToolBar(); + + // [3069] set the document + $this->_prepareDocument(); + + parent::display($tpl); + } + + /** + * Prepares the document + */ + protected function _prepareDocument() + { + + // [3419] always make sure jquery is loaded. + JHtml::_('jquery.framework'); + // [3421] Load the header checker class. + require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php' ); + // [3423] Initialize the header checker. + $HeaderCheck = new HeaderCheck; + + // [3428] Load uikit options. + $uikit = $this->params->get('uikit_load'); + // [3430] Set script size. + $size = $this->params->get('uikit_min'); + // [3432] Set css style. + $style = $this->params->get('uikit_style'); + + // [3435] The uikit css. + if ((!$HeaderCheck->css_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) + { + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/uikit/css/uikit'.$style.$size.'.css'); + } + // [3440] The uikit js. + if ((!$HeaderCheck->js_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) + { + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/uikit/js/uikit'.$size.'.js'); + } + + // [3449] Load the script to find all uikit components needed. + if ($uikit != 2) + { + // [3452] Set the default uikit components in this view. + $uikitComp = array(); + $uikitComp[] = 'data-uk-tooltip'; + $uikitComp[] = 'data-uk-grid'; + } + + // [3477] Load the needed uikit components in this view. + if ($uikit != 2 && isset($uikitComp) && SermondistributorHelper::checkArray($uikitComp)) + { + // [3480] load just in case. + jimport('joomla.filesystem.file'); + // [3482] loading... + foreach ($uikitComp as $class) + { + foreach (SermondistributorHelper::$uk_components[$class] as $name) + { + // [3487] check if the CSS file exists. + if (JFile::exists(JPATH_ROOT.'/media/com_sermondistributor/uikit/css/components/'.$name.$style.$size.'.css')) + { + // [3490] load the css. + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/uikit/css/components/'.$name.$style.$size.'.css'); + } + // [3493] check if the JavaScript file exists. + if (JFile::exists(JPATH_ROOT.'/media/com_sermondistributor/uikit/js/components/'.$name.$size.'.js')) + { + // [3496] load the js. + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/uikit/js/components/'.$name.$size.'.js'); + } + } + } + } + + // [6480] Add the CSS for Footable. + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css'); + + // [6482] Use the Metro Style + if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle) + { + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css'); + } + // [6487] Use the Legacy Style. + elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle) + { + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css'); + } + + // [6492] Add the JavaScript for Footable + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.paginate.js'); + // [3377] load the meta description + if ($this->params->get('menu-meta_description')) + { + $this->document->setDescription($this->params->get('menu-meta_description')); + } + // [3382] load the key words if set + if ($this->params->get('menu-meta_keywords')) + { + $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); + } + // [3387] check the robot params + if ($this->params->get('robots')) + { + $this->document->setMetadata('robots', $this->params->get('robots')); + } + // add the document default css file + $this->document->addStyleSheet(JURI::root(true) .'/components/com_sermondistributor/assets/css/categories.css'); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + // adding the joomla toolbar to the front + JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php'); + + // set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('categories'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + // now initiate the toolbar + $this->toolbar = JToolbar::getInstance(); + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var, $sorten = false, $length = 40) + { + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset, $sorten, $length); + } +} diff --git a/site/views/category/index.html b/site/views/category/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/views/category/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/views/category/tmpl/default.php b/site/views/category/tmpl/default.php new file mode 100644 index 00000000..91389512 --- /dev/null +++ b/site/views/category/tmpl/default.php @@ -0,0 +1,80 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + <?php if ($this->category): ?> + <?php if ($this->params->get('category_display') == 1) : ?> + <div class="uk-grid" data-uk-grid-match="{target:'.uk-panel'}"><?php echo $this->loadTemplate('categorypanel'); ?></div> + <?php elseif ($this->params->get('category_display') == 2) : ?> + <?php echo $this->loadTemplate('categorybox'); ?> + <?php else: ?> + <?php echo $this->loadTemplate('categorysmall'); ?> + <?php endif; ?> +<?php else: ?> + <div class="uk-alert uk-alert-warning" data-uk-alert> + <a href="" class="uk-alert-close uk-close"></a> + <p><?php echo JText::_('COM_SERMONDISTRIBUTOR_NO_CATEGORY_WAS_FOUND'); ?></p> + </div> +<?php endif; ?> +<?php if ($this->items): ?> + <?php if ($this->params->get('category_sermons_display') == 1) : ?> + <?php echo $this->loadTemplate('sermons-table'); ?> + <?php elseif ($this->params->get('category_sermons_display') == 2) : ?> + <?php echo $this->loadTemplate('sermons-grid'); ?> + <?php else: ?> + <?php echo $this->loadTemplate('sermons-list'); ?> + <?php endif; ?> + <script> + function sermonCounter(key,filename) + { + var getUrl = "index.php?option=com_sermondistributor&task=ajax.countDownload&format=json"; + if (key.length > 0 && filename.length > 0) + { + var request = 'token=<?php echo JSession::getFormToken(); ?>&key='+key+'&filename='+filename; + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'jsonp', + data: request, + jsonp: 'callback' + }); + } + </script> +<?php else: ?> + <div class="uk-alert uk-alert-warning" data-uk-alert> + <a href="" class="uk-alert-close uk-close"></a> + <p><?php echo JText::_('COM_SERMONDISTRIBUTOR_NO_SERMONS_WERE_FOUND'); ?></p> + </div> +<?php endif; ?> + +<?php if (isset($this->items) && sermondistributorHelper::checkArray($this->items) && count($this->items) > 4): ?> +<form name="adminForm" method="post"> + <div class="pagination"> + <?php if ($this->params->def('show_pagination_results', 1)) : ?> + <p class="counter pull-right"> <?php echo $this->pagination->getPagesCounter(); ?> <?php echo $this->pagination->getLimitBox(); ?></p> + <?php endif; ?> + <?php echo $this->pagination->getPagesLinks(); ?> + </div> +</form> +<?php endif; ?> <?php echo $this->toolbar->render(); ?> diff --git a/site/views/category/tmpl/default.xml b/site/views/category/tmpl/default.xml new file mode 100644 index 00000000..9278ff14 --- /dev/null +++ b/site/views/category/tmpl/default.xml @@ -0,0 +1,352 @@ +<?xml version="1.0" encoding="utf-8" ?> +<metadata> + <layout title="COM_SERMONDISTRIBUTOR_MENU_CATEGORY_TITLE" option="COM_SERMONDISTRIBUTOR_MENU_CATEGORY_OPTION"> + <message> + <![CDATA[COM_SERMONDISTRIBUTOR_MENU_CATEGORY_DESC]]> + </message> + </layout> + <!-- [1714] Add fields to the request variables for the layout. --> + <fields name="request"> + <fieldset name="request" + addfieldpath="/administrator/components/com_sermondistributor/models/fields"> + + <!-- [11332] Category_request_id Field. Type: Category. (joomla) --> + <field + type="category" + name="id" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_REQUEST_ID_LABEL" + extension="com_sermondistributor.sermons" + required="false" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_REQUEST_ID_DESCRIPTION" + class="inputbox" + /> + </fieldset> + </fields> + <!-- [1729] Adding page parameters --> + <fields name="params"> + <fieldset name="basic" label="COM_SERMONDISTRIBUTOR"> + <!-- [11246] Category_display Field. Type: Radio. (joomla) --> + <field + type="radio" + name="category_display" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DISPLAY_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DISPLAY_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_PANEL</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_BOX</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_SMALL</option> + </field> + <!-- [11246] Category_box_contrast Field. Type: Radio. (joomla) --> + <field + type="radio" + name="category_box_contrast" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_BOX_CONTRAST_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_BOX_CONTRAST_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Category_list_style Field. Type: List. (joomla) --> + <field + type="list" + name="category_list_style" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_LIST_STYLE_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_LIST_STYLE_DESCRIPTION" + class="list_class" + multiple="false" + filter="string" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_PLAIN</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_LINES</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_STRIPED</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option> + </field> + <!-- [11246] Category_icon Field. Type: Radio. (joomla) --> + <field + type="radio" + name="category_icon" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_ICON_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_ICON_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Category_desc Field. Type: Radio. (joomla) --> + <field + type="radio" + name="category_desc" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DESC_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DESC_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Category_sermon_count Field. Type: Radio. (joomla) --> + <field + type="radio" + name="category_sermon_count" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMON_COUNT_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMON_COUNT_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Category_hits Field. Type: Radio. (joomla) --> + <field + type="radio" + name="category_hits" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_HITS_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_HITS_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11346] Spacer_hr_g Field. Type: Spacer. A None Database Field. (joomla) --> + <field type="spacer" name="spacer_hr_g" hr="true" class="spacer_hr_g" /> + <!-- [11246] Category_sermons_display Field. Type: Radio. (joomla) --> + <field + type="radio" + name="category_sermons_display" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DISPLAY_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DISPLAY_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_TABLE</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_GRID</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_LIST</option> + </field> + <!-- [11246] Category_sermons_list_style Field. Type: List. (joomla) --> + <field + type="list" + name="category_sermons_list_style" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_LIST_STYLE_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_LIST_STYLE_DESCRIPTION" + class="list_class" + multiple="false" + filter="string" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_PLAIN</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_LINES</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_STRIPED</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option> + </field> + <!-- [11246] Category_sermons_table_color Field. Type: List. (joomla) --> + <field + type="list" + name="category_sermons_table_color" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_TABLE_COLOR_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_TABLE_COLOR_DESCRIPTION" + class="list_class" + multiple="false" + filter="string" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_BLUE</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_RED</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_PURPLE</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_GREEN</option> + <option value="4"> + COM_SERMONDISTRIBUTOR_CONFIG_DARK_BLUE</option> + <option value="5"> + COM_SERMONDISTRIBUTOR_CONFIG_LEGACY</option> + <option value="6"> + COM_SERMONDISTRIBUTOR_CONFIG_UIKIT</option> + <option value="7"> + COM_SERMONDISTRIBUTOR_CONFIG_CUSTOM</option> + <option value="8"> + COM_SERMONDISTRIBUTOR_CONFIG_NONE</option> + </field> + <!-- [11246] Category_sermons_icon Field. Type: Radio. (joomla) --> + <field + type="radio" + name="category_sermons_icon" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_ICON_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_ICON_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Category_sermons_desc Field. Type: Radio. (joomla) --> + <field + type="radio" + name="category_sermons_desc" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DESC_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DESC_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Category_sermons_preacher Field. Type: Radio. (joomla) --> + <field + type="radio" + name="category_sermons_preacher" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_PREACHER_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_PREACHER_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Category_sermons_series Field. Type: Radio. (joomla) --> + <field + type="radio" + name="category_sermons_series" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_SERIES_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_SERIES_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Category_sermons_download_counter Field. Type: Radio. (joomla) --> + <field + type="radio" + name="category_sermons_download_counter" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DOWNLOAD_COUNTER_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DOWNLOAD_COUNTER_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Category_sermons_hits Field. Type: Radio. (joomla) --> + <field + type="radio" + name="category_sermons_hits" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_HITS_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_HITS_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Category_sermons_downloads Field. Type: Radio. (joomla) --> + <field + type="radio" + name="category_sermons_downloads" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DOWNLOADS_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DOWNLOADS_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Category_sermons_open Field. Type: Radio. (joomla) --> + <field + type="radio" + name="category_sermons_open" + label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_OPEN_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_OPEN_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + </fieldset> + </fields> +</metadata> \ No newline at end of file diff --git a/site/views/category/tmpl/default_categorybox.php b/site/views/category/tmpl/default_categorybox.php new file mode 100644 index 00000000..ea1ebe8c --- /dev/null +++ b/site/views/category/tmpl/default_categorybox.php @@ -0,0 +1,122 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_categorybox.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// build the list class +$style = $this->params->get('category_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +// build the contrast text option +$contrast = $this->params->get('category_box_contrast'); +$contrastClass = ''; +if ($contrast) +{ + $contrastClass = 'uk-text-contrast'; +} + +// set Panal Size +$mediumMain = '1-4'; +if (($this->params->get('category_sermon_count') || $this->params->get('category_sermons_download_counter')) + && ($this->params->get('category_desc') && $this->category->description)) +{ + $mediumDesc = '2-4'; + $mediumMid = '1-4'; +} +elseif (($this->params->get('category_sermon_count') || $this->params->get('category_sermons_download_counter')) + || ($this->params->get('category_desc') && $this->category->description)) +{ + $mediumDesc = '3-4'; + $mediumMid = '3-4'; +} +elseif (!$this->params->get('category_icon')) +{ + $mediumMain = '1-1'; +} + +?> +<div class="uk-block uk-block-primary"> + <div class="uk-container"> + <h3 class="<?php echo $contrastClass; ?>"><?php echo $this->category->name; ?></h3> + <div class="uk-grid" data-uk-grid-margin="{target:'.uk-panel'}"> + <div class="uk-width-medium-<?php echo $mediumMain; ?>"> + <div class="uk-panel"> + <?php if ($this->params->get('category_hits')): ?> + <?php + $hits_state = ($this->category->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-panel-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $this->category->hits; ?> + </div> + <?php endif ;?> + <?php if ($this->params->get('category_icon')): ?> + <?php $this->category->icon = (isset($this->category->icon) && $this->category->icon) ? $this->category->icon : $this->params->get('category_default_icon'); ?> + <?php if ($this->category->icon): ?> + <img class="uk-thumbnail uk-thumbnail-expand" src="<?php echo $this->category->icon; ?>" alt="<?php echo $this->category->name; ?>"> + <?php endif; ?> + <?php endif; ?> + </div> + </div> + <?php if ($this->params->get('category_sermon_count') || $this->params->get('category_sermons_download_counter')): ?> + <div class="uk-width-medium-<?php echo $mediumMid; ?>"> + <div class="uk-panel"> + <ul class="uk-list<?php echo $listClass; ?>"> + <?php if ($this->params->get('category_sermon_count')): ?> + <li class="<?php echo $contrastClass; ?>"><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); ?>: <?php echo $this->sermonTotal; ?></li> + <?php endif; ?> + <?php if ($this->params->get('category_sermons_download_counter')): ?> + <li class="<?php echo $contrastClass; ?>"><?php echo JText::_('COM_SERMONDISTRIBUTOR_TOTAL_DOWNLOADS'); ?>: <?php echo $this->downloadTotal; ?></li> + <?php endif; ?> + </ul> + </div> + </div> + <?php endif; ?> + <?php if ($this->params->get('category_desc') && $this->category->description): ?> + <div class="uk-width-medium-<?php echo $mediumDesc; ?>"> + <div class="uk-panel <?php echo $contrastClass; ?>"> + <?php echo $this->category->description; ?> + </div> + </div> + <?php endif; ?> + </div> + </div> +</div> diff --git a/site/views/category/tmpl/default_categorypanel.php b/site/views/category/tmpl/default_categorypanel.php new file mode 100644 index 00000000..6af35cda --- /dev/null +++ b/site/views/category/tmpl/default_categorypanel.php @@ -0,0 +1,108 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_categorypanel.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// build the list class +$style = $this->params->get('category_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +// set Panal Size +$mediumMain = '1-4'; +if (($this->params->get('category_sermon_count') || $this->params->get('category_sermons_download_counter')) + && ($this->params->get('category_desc') && $this->category->description)) +{ + $mediumDesc = '2-4'; + $mediumMid = '1-4'; +} +elseif (($this->params->get('category_sermon_count') || $this->params->get('category_sermons_download_counter')) + || ($this->params->get('category_desc') && $this->category->description)) +{ + $mediumDesc = '3-4'; + $mediumMid = '3-4'; +} +elseif (!$this->params->get('category_icon')) +{ + $mediumMain = '1-1'; +} + +?> +<div class="uk-width-medium-<?php echo $mediumMain; ?>"> + <div class="uk-panel uk-panel-box"> + <?php if ($this->params->get('category_hits')): ?> + <?php + $hits_state = ($this->category->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-panel-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $this->category->hits; ?> + </div> + <?php endif ;?> + <h3 class="uk-panel-title"><?php echo $this->category->name; ?></h3> + <?php if ($this->params->get('category_icon')): ?> + <?php $this->category->icon = (isset($this->category->icon) && $this->category->icon) ? $this->category->icon : $this->params->get('category_default_icon'); ?> + <?php if ($this->category->icon): ?> + <img class="uk-thumbnail uk-thumbnail-expand" src="<?php echo $this->category->icon; ?>" alt="<?php echo $this->category->name; ?>"> + <?php endif; ?> + <?php endif; ?> + </div> +</div> +<?php if ($this->params->get('category_sermon_count') || $this->params->get('category_sermons_download_counter')): ?> + <div class="uk-width-medium-<?php echo $mediumMid; ?>"> + <div class="uk-panel uk-panel-box"> + <ul class="uk-list<?php echo $listClass; ?>"> + <?php if ($this->params->get('category_sermon_count')): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); ?>: <?php echo $this->sermonTotal; ?></li> + <?php endif; ?> + <?php if ($this->params->get('category_sermons_download_counter')): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_TOTAL_DOWNLOADS'); ?>: <?php echo $this->downloadTotal; ?></li> + <?php endif; ?> + </ul> + </div> + </div> +<?php endif; ?> +<?php if ($this->params->get('category_desc') && $this->category->description): ?> + <div class="uk-width-medium-<?php echo $mediumDesc; ?>"> + <div class="uk-panel uk-panel-box"> + <?php echo $this->category->description; ?> + </div> + </div> +<?php endif; ?> diff --git a/site/views/category/tmpl/default_categorysmall.php b/site/views/category/tmpl/default_categorysmall.php new file mode 100644 index 00000000..ffafdbbc --- /dev/null +++ b/site/views/category/tmpl/default_categorysmall.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_categorysmall.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<article class="uk-comment"> + <header class="uk-comment-header"> + <?php if ($this->params->get('category_icon')): ?> + <?php $this->category->icon = (isset($this->category->icon) && $this->category->icon) ? $this->category->icon : $this->params->get('category_default_icon'); ?> + <?php if ($this->category->icon): ?> + <img class="uk-comment-avatar" src="<?php echo $this->category->icon; ?>" alt="<?php echo $this->category->name; ?>"> + <?php endif; ?> + <?php endif; ?> + <h4 class="uk-comment-title"><?php echo $this->category->name; ?></h4> + <?php if ($this->params->get('category_hits') || $this->params->get('category_sermon_count')): ?> + <div class="uk-comment-meta"> + <?php if ($this->params->get('category_hits')): ?> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $this->category->hits; ?><br /> + <?php endif; ?> + <?php if ($this->params->get('category_sermon_count')): ?> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); ?>: <?php echo $this->sermonTotal; ?><br /> + <?php endif; ?> + <?php if ($this->params->get('category_sermons_download_counter')): ?> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_TOTAL_DOWNLOADS'); ?>: <?php echo $this->downloadTotal; ?><br /> + <?php endif; ?> + </div> + <?php endif; ?> + </header> + <?php if ($this->params->get('category_desc') && $this->category->description): ?> + <div class="uk-comment-body"><?php echo $this->category->description; ?></div> + <?php endif; ?> +</article><br /> diff --git a/site/views/category/tmpl/default_sermons-grid.php b/site/views/category/tmpl/default_sermons-grid.php new file mode 100644 index 00000000..5165584c --- /dev/null +++ b/site/views/category/tmpl/default_sermons-grid.php @@ -0,0 +1,54 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_sermons-grid.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<ul id="category-sermons-sort-menu" class="uk-tab" data-uk-tab> + <li data-uk-sort="sermon"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME_ASC'); ?></a></li> + <li data-uk-sort="sermon:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME_DESC'); ?></a></li> + <?php if ($this->params->get('category_sermons_preacher', 0)): ?> + <li data-uk-sort="preacher"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHER_ASC'); ?></a></li> + <li data-uk-sort="preacher:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHER_DESC'); ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('category_sermons_category', 0)): ?> + <li data-uk-sort="category"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_CATEGORY_ASC'); ?></a></li> + <li data-uk-sort="category:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_CATEGORY_DESC'); ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('category_sermons_series', 0)): ?> + <li data-uk-sort="series"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES_ASC'); ?></a></li> + <li data-uk-sort="series:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES_DESC'); ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('category_sermons_hits', 0)): ?> + <li data-uk-sort="hits"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS_ASC'); ?></a></li> + <li data-uk-sort="hits:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS_DESC'); ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('category_sermons_download_counter', 0)): ?> + <li data-uk-sort="downloads"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_DOWNLOADS_ASC'); ?></a></li> + <li data-uk-sort="downloads:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_DOWNLOADS_DESC'); ?></a></li> + <?php endif; ?> +</ul> + +<div data-uk-check-display class="uk-grid-width-small-1-2 uk-grid-width-medium-1-3 uk-grid-width-large-1-4" data-uk-grid="{controls: '#category-sermons-sort-menu',gutter: 15}"> + <?php foreach ($this->items as $item): ?> + <div data-sermon="<?php echo $this->escape($item->name); ?>" <?php if ($this->params->get('category_sermons_preacher')): ?>data-preacher="<?php echo $this->escape($item->preacher_name); ?>" <?php endif; ?><?php if ($this->params->get('category_sermons_category')): ?> data-category="<?php echo $this->escape($item->category); ?>" <?php endif; ?><?php if ($this->params->get('category_sermons_series')): ?> data-series="<?php echo $this->escape($item->series_name); ?>" <?php endif; ?>data-hits="<?php echo (int) $item->hits; ?>" data-downloads="<?php echo (int) $item->statisticTotal; ?>"><?php $item->params = $this->params; $item->desc = $this->escape($item->description, true, 65); echo JLayoutHelper::render('sermonspanel', $item); ?></div> + <?php endforeach; ?> +</div> diff --git a/site/views/category/tmpl/default_sermons-list.php b/site/views/category/tmpl/default_sermons-list.php new file mode 100644 index 00000000..036fd629 --- /dev/null +++ b/site/views/category/tmpl/default_sermons-list.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_sermons-list.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// build the list class +$style = $this->params->get('category_sermons_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +?> +<ul class="uk-list<?php echo $listClass; ?>"> + <?php foreach ($this->items as $item): ?> + <li><?php $item->params = $this->params; $item->desc = $this->escape($item->description, true, 90); echo JLayoutHelper::render('sermonslistitem', $item); ?></li> + <?php endforeach; ?> +</ul> diff --git a/site/views/category/tmpl/default_sermons-table.php b/site/views/category/tmpl/default_sermons-table.php new file mode 100644 index 00000000..71c4476d --- /dev/null +++ b/site/views/category/tmpl/default_sermons-table.php @@ -0,0 +1,109 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_sermons-table.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// Column counter +$column_nr = 1; +// build the table class +$color = $this->params->get('category_sermons_table_color'); +switch ($color) +{ + case 1: + // Red + $tableClass = ' metro-red'; + break; + case 2: + // Purple + $tableClass = ' metro-purple'; + break; + case 3: + // Green + $tableClass = ' metro-green'; + break; + case 4: + // Dark Blue + $tableClass = ' metro-blue'; + break; + case 6: + // Uikit style + $tableClass = ' uk-table'; + break; + case 7: + // Custom Style + $tableClass = ' category-sermons-table'; + break; + default: + // Light Blue and other + $tableClass = ''; + break; +} + +?> +<br /> +<table class="footable<?php echo $tableClass; ?>" data-page-size="100"> + <thead> + <tr> + <th data-toggle="true"><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME'); ?></th> + <?php if ($this->params->get('category_sermons_desc')): ?> + <th data-hide="all"><?php echo JText::_('COM_SERMONDISTRIBUTOR_DESCRIPTION'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('category_sermons_preacher', 0)): ?> + <th data-hide="phone,tablet"><?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHER'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('category_sermons_series', 0)): ?> + <th data-hide="phone,tablet"><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('category_sermons_category', 0)): ?> + <th data-hide="phone,tablet" ><?php echo JText::_('COM_SERMONDISTRIBUTOR_CATEGORY'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('category_sermons_downloads')): ?> + <th><?php echo JText::_('COM_SERMONDISTRIBUTOR_FILES'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('category_sermons_download_counter')): ?> + <th data-hide="phone,tablet" data-type="numeric"><?php echo JText::_('COM_SERMONDISTRIBUTOR_DOWNLOADS'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('category_sermons_hits')): ?> + <th data-hide="phone,tablet" data-type="numeric"><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); $column_nr++; ?></th> + <?php endif; ?> + </tr> + </thead> + <tfoot class="hide-if-no-paging"> + <tr> + <td colspan="<?php echo $column_nr; ?>"> + <div class="pagination pagination-centered"></div> + </td> + </tr> + </tfoot> + <tbody> + <?php foreach ($this->items as $item): ?> + <tr><?php $item->params = $this->params; echo JLayoutHelper::render('sermonsrow', $item); ?></tr> + <?php endforeach; ?> + </tbody> +</table> + +<script> +// page loading pause +jQuery(window).load(function() { + // do some stuff once page is loaded + jQuery('.footable').footable(); +}); +</script> diff --git a/site/views/category/tmpl/index.html b/site/views/category/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/views/category/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/views/category/view.html.php b/site/views/category/view.html.php new file mode 100644 index 00000000..83804ffb --- /dev/null +++ b/site/views/category/view.html.php @@ -0,0 +1,308 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Sermondistributor View class for the Category + */ +class SermondistributorViewCategory extends JViewLegacy +{ + // Overwriting JView display method + function display($tpl = null) + { + // get combined params of both component and menu + $this->app = JFactory::getApplication(); + $this->params = $this->app->getParams(); + $this->menu = $this->app->getMenu()->getActive(); + // get the user object + $this->user = JFactory::getUser(); + // [3032] Initialise variables. + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + $this->category = $this->get('Category'); + + // [3050] Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseWarning(500, implode("\n", $errors)); + return false; + } + // add a hit to the category + if ($this->hit($this->category->id)) + { + $this->category->hits++; + } + + // set some total defaults + $this->sermonTotal = count($this->category->idCatidSermonB); + $this->downloadTotal = 0; + if ($this->sermonTotal > 0) + { + foreach ($this->category->idCatidSermonB as $sermon) + { + if (isset($sermon->idSermonStatisticC) && SermondistributorHelper::checkArray($sermon->idSermonStatisticC)) + { + foreach ($sermon->idSermonStatisticC as $download) + { + $this->downloadTotal += $download->counter; + } + } + } + } + + // set the FooTable style + $style = $this->params->get('category_sermons_table_color', 0); + if (5 == $style) + { + $this->fooTableStyle = 1; + } + elseif ($style <= 4) + { + $this->fooTableStyle = 0; + } + else + { + $this->fooTableStyle = 2; + } + + // [3067] Set the toolbar + $this->addToolBar(); + + // [3069] set the document + $this->_prepareDocument(); + + parent::display($tpl); + } + + /** + * Increment the hit counter for the category. + * + * @param integer $pk Primary key of the category to increment. + * + * @return boolean True if successful; + */ + public function hit($pk = 0) + { + if ($pk) + { + $db = JFactory::getDbo(); + $query = $db->getQuery(true); + + // Fields to update. + $fields = array( + $db->quoteName('hits') . ' = '.$db->quoteName('hits').' + 1' + ); + + // Conditions for which records should be updated. + $conditions = array( + $db->quoteName('id') . ' = ' . $pk + ); + + $query->update($db->quoteName('#__categories'))->set($fields)->where($conditions); + + $db->setQuery($query); + return $db->execute(); + } + return false; + } + + /** + * Prepares the document + */ + protected function _prepareDocument() + { + + // [3419] always make sure jquery is loaded. + JHtml::_('jquery.framework'); + // [3421] Load the header checker class. + require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php' ); + // [3423] Initialize the header checker. + $HeaderCheck = new HeaderCheck; + + // [3428] Load uikit options. + $uikit = $this->params->get('uikit_load'); + // [3430] Set script size. + $size = $this->params->get('uikit_min'); + // [3432] Set css style. + $style = $this->params->get('uikit_style'); + + // [3435] The uikit css. + if ((!$HeaderCheck->css_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) + { + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/uikit/css/uikit'.$style.$size.'.css'); + } + // [3440] The uikit js. + if ((!$HeaderCheck->js_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) + { + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/uikit/js/uikit'.$size.'.js'); + } + + // [3449] Load the script to find all uikit components needed. + if ($uikit != 2) + { + // [3452] Set the default uikit components in this view. + $uikitComp = array(); + $uikitComp[] = 'data-uk-grid'; + + // [3461] Get field uikit components needed in this view. + $uikitFieldComp = $this->get('UikitComp'); + if (isset($uikitFieldComp) && SermondistributorHelper::checkArray($uikitFieldComp)) + { + if (isset($uikitComp) && SermondistributorHelper::checkArray($uikitComp)) + { + $uikitComp = array_merge($uikitComp, $uikitFieldComp); + $uikitComp = array_unique($uikitComp); + } + else + { + $uikitComp = $uikitFieldComp; + } + } + } + + // [3477] Load the needed uikit components in this view. + if ($uikit != 2 && isset($uikitComp) && SermondistributorHelper::checkArray($uikitComp)) + { + // [3480] load just in case. + jimport('joomla.filesystem.file'); + // [3482] loading... + foreach ($uikitComp as $class) + { + foreach (SermondistributorHelper::$uk_components[$class] as $name) + { + // [3487] check if the CSS file exists. + if (JFile::exists(JPATH_ROOT.'/media/com_sermondistributor/uikit/css/components/'.$name.$style.$size.'.css')) + { + // [3490] load the css. + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/uikit/css/components/'.$name.$style.$size.'.css'); + } + // [3493] check if the JavaScript file exists. + if (JFile::exists(JPATH_ROOT.'/media/com_sermondistributor/uikit/js/components/'.$name.$size.'.js')) + { + // [3496] load the js. + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/uikit/js/components/'.$name.$size.'.js'); + } + } + } + } + + // [6480] Add the CSS for Footable. + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css'); + + // [6482] Use the Metro Style + if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle) + { + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css'); + } + // [6487] Use the Legacy Style. + elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle) + { + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css'); + } + + // [6492] Add the JavaScript for Footable + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.paginate.js'); + // [3326] load the meta description + if (isset($this->category->metadesc) && $this->category->metadesc) + { + $this->document->setDescription($this->category->metadesc); + } + elseif ($this->params->get('menu-meta_description')) + { + $this->document->setDescription($this->params->get('menu-meta_description')); + } + // [3335] load the key words if set + if (isset($this->category->metakey) && $this->category->metakey) + { + $this->document->setMetadata('keywords', $this->category->metakey); + } + elseif ($this->params->get('menu-meta_keywords')) + { + $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); + } + // [3344] check the robot params + if (isset($this->category->robots) && $this->category->robots) + { + $this->document->setMetadata('robots', $this->category->robots); + } + elseif ($this->params->get('robots')) + { + $this->document->setMetadata('robots', $this->params->get('robots')); + } + // [3353] check if autor is to be set + if (isset($this->category->created_by) && $this->params->get('MetaAuthor') == '1') + { + $this->document->setMetaData('author', $this->category->created_by); + } + // [3358] check if metadata is available + if (isset($this->category->metadata) && $this->category->metadata) + { + $mdata = json_decode($this->category->metadata,true); + foreach ($mdata as $k => $v) + { + if ($v) + { + $this->document->setMetadata($k, $v); + } + } + } + // add the document default css file + $this->document->addStyleSheet(JURI::root(true) .'/components/com_sermondistributor/assets/css/category.css'); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + // adding the joomla toolbar to the front + JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php'); + + // set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('category'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + // now initiate the toolbar + $this->toolbar = JToolbar::getInstance(); + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var, $sorten = false, $length = 40) + { + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset, $sorten, $length); + } +} diff --git a/site/views/index.html b/site/views/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/views/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/views/preacher/index.html b/site/views/preacher/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/views/preacher/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/views/preacher/tmpl/default.php b/site/views/preacher/tmpl/default.php new file mode 100644 index 00000000..a660e2b0 --- /dev/null +++ b/site/views/preacher/tmpl/default.php @@ -0,0 +1,81 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + <?php if ($this->preacher): ?> + <?php if ($this->params->get('preacher_display') == 1) : ?> + <div class="uk-grid" data-uk-grid-match="{target:'.uk-panel'}"><?php echo $this->loadTemplate('preacherpanel'); ?></div> + <?php elseif ($this->params->get('preacher_display') == 2) : ?> + <?php echo $this->loadTemplate('preacherbox'); ?> + <?php else: ?> + <?php echo $this->loadTemplate('preachersmall'); ?> + <?php endif; ?> +<?php else: ?> + <div class="uk-alert uk-alert-warning" data-uk-alert> + <a href="" class="uk-alert-close uk-close"></a> + <p><?php echo JText::_('COM_SERMONDISTRIBUTOR_NO_PREACHER_WAS_FOUND'); ?></p> + </div> +<?php endif; ?> +<?php if ($this->items): ?> + <?php if ($this->params->get('preacher_sermons_display') == 1) : ?> + <?php echo $this->loadTemplate('sermons-table'); ?> + <?php elseif ($this->params->get('preacher_sermons_display') == 2) : ?> + <?php echo $this->loadTemplate('sermons-grid'); ?> + <?php else: ?> + <?php echo $this->loadTemplate('sermons-list'); ?> + <?php endif; ?> + <script> + function sermonCounter(key,filename) + { + var getUrl = "index.php?option=com_sermondistributor&task=ajax.countDownload&format=json"; + if (key.length > 0 && filename.length > 0) + { + var request = 'token=<?php echo JSession::getFormToken(); ?>&key='+key+'&filename='+filename; + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'jsonp', + data: request, + jsonp: 'callback' + }); + } + </script> +<?php else: ?> + <div class="uk-alert uk-alert-warning" data-uk-alert> + <a href="" class="uk-alert-close uk-close"></a> + <p><?php echo JText::_('COM_SERMONDISTRIBUTOR_NO_SERMONS_WERE_FOUND'); ?></p> + </div> +<?php endif; ?> + + +<?php if (isset($this->items) && sermondistributorHelper::checkArray($this->items) && count($this->items) > 4): ?> +<form name="adminForm" method="post"> + <div class="pagination"> + <?php if ($this->params->def('show_pagination_results', 1)) : ?> + <p class="counter pull-right"> <?php echo $this->pagination->getPagesCounter(); ?> <?php echo $this->pagination->getLimitBox(); ?></p> + <?php endif; ?> + <?php echo $this->pagination->getPagesLinks(); ?> + </div> +</form> +<?php endif; ?> <?php echo $this->toolbar->render(); ?> diff --git a/site/views/preacher/tmpl/default.xml b/site/views/preacher/tmpl/default.xml new file mode 100644 index 00000000..1a679380 --- /dev/null +++ b/site/views/preacher/tmpl/default.xml @@ -0,0 +1,386 @@ +<?xml version="1.0" encoding="utf-8" ?> +<metadata> + <layout title="COM_SERMONDISTRIBUTOR_MENU_PREACHER_TITLE" option="COM_SERMONDISTRIBUTOR_MENU_PREACHER_OPTION"> + <message> + <![CDATA[COM_SERMONDISTRIBUTOR_MENU_PREACHER_DESC]]> + </message> + </layout> + <!-- [1714] Add fields to the request variables for the layout. --> + <fields name="request"> + <fieldset name="request" + addfieldpath="/administrator/components/com_sermondistributor/models/fields"> + + <!-- [11453] Preacher_request_id Field. Type: Preachers. (custom) --> + <field + type="preachers" + name="id" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_REQUEST_ID_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_REQUEST_ID_DESCRIPTION" + class="list_class" + multiple="false" + default="0" + required="true" + button="false" + /> + </fieldset> + </fields> + <!-- [1729] Adding page parameters --> + <fields name="params"> + <fieldset name="basic" label="COM_SERMONDISTRIBUTOR"> + <!-- [11246] Preacher_display Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_display" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DISPLAY_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DISPLAY_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_PANEL</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_BOX</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_SMALL</option> + </field> + <!-- [11246] Preacher_box_contrast Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_box_contrast" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_BOX_CONTRAST_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_BOX_CONTRAST_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preacher_list_style Field. Type: List. (joomla) --> + <field + type="list" + name="preacher_list_style" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_LIST_STYLE_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_LIST_STYLE_DESCRIPTION" + class="list_class" + multiple="false" + filter="string" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_PLAIN</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_LINES</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_STRIPED</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option> + </field> + <!-- [11246] Preacher_icon Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_icon" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_ICON_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_ICON_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preacher_desc Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_desc" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DESC_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DESC_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preacher_sermon_count Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_sermon_count" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMON_COUNT_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMON_COUNT_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preacher_hits Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_hits" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_HITS_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_HITS_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preacher_email Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_email" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_EMAIL_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_EMAIL_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preacher_website Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_website" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_WEBSITE_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_WEBSITE_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11346] Spacer_hr_f Field. Type: Spacer. A None Database Field. (joomla) --> + <field type="spacer" name="spacer_hr_f" hr="true" class="spacer_hr_f" /> + <!-- [11246] Preacher_sermons_display Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_sermons_display" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DISPLAY_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DISPLAY_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_TABLE</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_GRID</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_LIST</option> + </field> + <!-- [11246] Preacher_sermons_list_style Field. Type: List. (joomla) --> + <field + type="list" + name="preacher_sermons_list_style" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_LIST_STYLE_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_LIST_STYLE_DESCRIPTION" + class="list_class" + multiple="false" + filter="string" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_PLAIN</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_LINES</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_STRIPED</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option> + </field> + <!-- [11246] Preacher_sermons_table_color Field. Type: List. (joomla) --> + <field + type="list" + name="preacher_sermons_table_color" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_TABLE_COLOR_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_TABLE_COLOR_DESCRIPTION" + class="list_class" + multiple="false" + filter="string" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_BLUE</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_RED</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_PURPLE</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_GREEN</option> + <option value="4"> + COM_SERMONDISTRIBUTOR_CONFIG_DARK_BLUE</option> + <option value="5"> + COM_SERMONDISTRIBUTOR_CONFIG_LEGACY</option> + <option value="6"> + COM_SERMONDISTRIBUTOR_CONFIG_UIKIT</option> + <option value="7"> + COM_SERMONDISTRIBUTOR_CONFIG_CUSTOM</option> + <option value="8"> + COM_SERMONDISTRIBUTOR_CONFIG_NONE</option> + </field> + <!-- [11246] Preacher_sermons_icon Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_sermons_icon" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_ICON_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_ICON_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preacher_sermons_desc Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_sermons_desc" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DESC_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DESC_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preacher_sermons_series Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_sermons_series" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_SERIES_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_SERIES_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preacher_sermons_category Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_sermons_category" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_CATEGORY_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_CATEGORY_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preacher_sermons_download_counter Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_sermons_download_counter" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DOWNLOAD_COUNTER_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DOWNLOAD_COUNTER_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preacher_sermons_hits Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_sermons_hits" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_HITS_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_HITS_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preacher_sermons_downloads Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_sermons_downloads" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DOWNLOADS_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DOWNLOADS_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preacher_sermons_open Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preacher_sermons_open" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_OPEN_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_OPEN_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + </fieldset> + </fields> +</metadata> \ No newline at end of file diff --git a/site/views/preacher/tmpl/default_preacherbox.php b/site/views/preacher/tmpl/default_preacherbox.php new file mode 100644 index 00000000..cca3ec18 --- /dev/null +++ b/site/views/preacher/tmpl/default_preacherbox.php @@ -0,0 +1,128 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_preacherbox.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// build the list class +$style = $this->params->get('preacher_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +// build the contrast text option +$contrast = $this->params->get('preacher_box_contrast'); +$contrastClass = ''; +if ($contrast) +{ + $contrastClass = 'uk-text-contrast'; +} + +// set Panal Size +$mediumMain = '1-4'; +if ((($this->params->get('preacher_website') && $this->preacher->website) || ($this->params->get('preacher_email') && $this->preacher->email)|| $this->params->get('preacher_sermon_count') || $this->params->get('preacher_sermons_download_counter')) + && ($this->params->get('preacher_desc') && $this->preacher->description)) +{ + $mediumDesc = '2-4'; + $mediumMid = '1-4'; +} +elseif ((($this->params->get('preacher_website') && $this->preacher->website) || ($this->params->get('preacher_email') && $this->preacher->email)|| $this->params->get('preacher_sermon_count') || $this->params->get('preacher_sermons_download_counter')) + || ($this->params->get('preacher_desc') && $this->preacher->description)) +{ + $mediumDesc = '3-4'; + $mediumMid = '3-4'; +} +elseif (!$this->params->get('preacher_icon')) +{ + $mediumMain = '1-1'; +} + +?> +<div class="uk-block uk-block-primary"> + <div class="uk-container"> + <h3 class="<?php echo $contrastClass; ?>"><?php echo $this->preacher->name; ?></h3> + <div class="uk-grid" data-uk-grid-margin="{target:'.uk-panel'}"> + <div class="uk-width-medium-<?php echo $mediumMain; ?>"> + <div class="uk-panel"> + <?php if ($this->params->get('preacher_hits')): ?> + <?php + $hits_state = ($this->preacher->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-panel-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $this->preacher->hits; ?> + </div> + <?php endif ;?> + <?php if ($this->params->get('preacher_icon')): ?> + <?php $this->preacher->icon = ($this->preacher->icon) ? $this->preacher->icon : $this->params->get('preacher_default_icon'); ?> + <?php if ($this->preacher->icon): ?> + <img class="uk-thumbnail uk-thumbnail-expand" src="<?php echo $this->preacher->icon; ?>" alt="<?php echo $this->preacher->name; ?>"> + <?php endif; ?> + <?php endif; ?> + </div> + </div> + <?php if (($this->params->get('preacher_website') && $this->preacher->website) || ($this->params->get('preacher_email') && $this->preacher->email) || $this->params->get('preacher_sermons_download_counter') || $this->params->get('preacher_sermon_count')): ?> + <div class="uk-width-medium-<?php echo $mediumMid; ?>"> + <div class="uk-panel"> + <ul class="uk-list<?php echo $listClass; ?>"> + <?php if ($this->params->get('preacher_sermon_count')): ?> + <li class="<?php echo $contrastClass; ?>"><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); ?>: <?php echo $this->sermonTotal; ?></li> + <?php endif; ?> + <?php if ($this->params->get('preacher_sermons_download_counter')): ?> + <li class="<?php echo $contrastClass; ?>"><?php echo JText::_('COM_SERMONDISTRIBUTOR_TOTAL_DOWNLOADS'); ?>: <?php echo $this->downloadTotal; ?></li> + <?php endif; ?> + <?php if ($this->params->get('preacher_website') && $this->preacher->website): ?> + <li><i class="uk-icon-external-link"></i> <a class="<?php echo $contrastClass; ?>" href="<?php echo $this->preacher->website; ?>" target="_blank" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_GO_TO_WEBSITE_OF'); ?> <?php echo $this->preacher->name; ?>"><?php echo $this->preacher->website; ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('preacher_email') && $this->preacher->email): ?> + <li><i class="uk-icon-envelope-o"></i> <a class="<?php echo $contrastClass; ?>" href="mailto:<?php echo $this->preacher->email; ?>" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SEND_EMAIL_TO'); ?> <?php echo $this->preacher->name; ?>"><?php echo $this->preacher->email; ?></a></li> + <?php endif; ?> + </ul> + </div> + </div> + <?php endif; ?> + <?php if ($this->params->get('preacher_desc') && $this->preacher->description): ?> + <div class="uk-width-medium-<?php echo $mediumDesc; ?>"> + <div class="uk-panel <?php echo $contrastClass; ?>"> + <?php echo $this->preacher->description; ?> + </div> + </div> + <?php endif; ?> + </div> + </div> +</div> diff --git a/site/views/preacher/tmpl/default_preacherpanel.php b/site/views/preacher/tmpl/default_preacherpanel.php new file mode 100644 index 00000000..4f6e4816 --- /dev/null +++ b/site/views/preacher/tmpl/default_preacherpanel.php @@ -0,0 +1,114 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_preacherpanel.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// build the list class +$style = $this->params->get('preacher_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +// set Panal Size +$mediumMain = '1-4'; +if ((($this->params->get('preacher_website') && $this->preacher->website) || ($this->params->get('preacher_email') && $this->preacher->email) || $this->params->get('preacher_sermon_count') || $this->params->get('preacher_sermons_download_counter')) + && ($this->params->get('preacher_desc') && $this->preacher->description)) +{ + $mediumDesc = '2-4'; + $mediumMid = '1-4'; +} +elseif ((($this->params->get('preacher_website') && $this->preacher->website) || ($this->params->get('preacher_email') && $this->preacher->email) || $this->params->get('preacher_sermon_count') || $this->params->get('preacher_sermons_download_counter')) + || ($this->params->get('preacher_desc') && $this->preacher->description)) +{ + $mediumDesc = '3-4'; + $mediumMid = '3-4'; +} +elseif (!$this->params->get('preacher_icon')) +{ + $mediumMain = '1-1'; +} + +?> +<div class="uk-width-medium-<?php echo $mediumMain; ?>"> + <div class="uk-panel uk-panel-box"> + <?php if ($this->params->get('preacher_hits')): ?> + <?php + $hits_state = ($this->preacher->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-panel-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $this->preacher->hits; ?> + </div> + <?php endif ;?> + <h3 class="uk-panel-title"><?php echo $this->preacher->name; ?></h3> + <?php if ($this->params->get('preacher_icon')): ?> + <?php $this->preacher->icon = ($this->preacher->icon) ? $this->preacher->icon : $this->params->get('preacher_default_icon'); ?> + <?php if ($this->preacher->icon): ?> + <img class="uk-thumbnail uk-thumbnail-expand" src="<?php echo $this->preacher->icon; ?>" alt="<?php echo $this->preacher->name; ?>"> + <?php endif; ?> + <?php endif; ?> + </div> +</div> +<?php if (($this->params->get('preacher_website') && $this->preacher->website) || ($this->params->get('preacher_email') && $this->preacher->email) || $this->params->get('preacher_sermon_count') || $this->params->get('preacher_sermons_download_counter')): ?> + <div class="uk-width-medium-<?php echo $mediumMid; ?>"> + <div class="uk-panel uk-panel-box"> + <ul class="uk-list<?php echo $listClass; ?>"> + <?php if ($this->params->get('preacher_sermon_count')): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); ?>: <?php echo $this->sermonTotal; ?></li> + <?php endif; ?> + <?php if ($this->params->get('preacher_sermons_download_counter')): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_TOTAL_DOWNLOADS'); ?>: <?php echo $this->downloadTotal; ?></li> + <?php endif; ?> + <?php if ($this->params->get('preacher_website') && $this->preacher->website): ?> + <li><i class="uk-icon-external-link"></i> <a href="<?php echo $this->preacher->website; ?>" target="_blank" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_GO_TO_WEBSITE_OF'); ?> <?php echo $this->preacher->name; ?>"><?php echo $this->preacher->website; ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('preacher_email') && $this->preacher->email): ?> + <li><i class="uk-icon-envelope-o"></i> <a href="mailto:<?php echo $this->preacher->email; ?>" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SEND_EMAIL_TO'); ?> <?php echo $this->preacher->name; ?>"><?php echo $this->preacher->email; ?></a></li> + <?php endif; ?> + </ul> + </div> + </div> +<?php endif; ?> +<?php if ($this->params->get('preacher_desc') && $this->preacher->description): ?> + <div class="uk-width-medium-<?php echo $mediumDesc; ?>"> + <div class="uk-panel uk-panel-box"> + <?php echo $this->preacher->description; ?> + </div> + </div> +<?php endif; ?> diff --git a/site/views/preacher/tmpl/default_preachersmall.php b/site/views/preacher/tmpl/default_preachersmall.php new file mode 100644 index 00000000..8c9a45c7 --- /dev/null +++ b/site/views/preacher/tmpl/default_preachersmall.php @@ -0,0 +1,60 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_preachersmall.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<article class="uk-comment"> + <header class="uk-comment-header"> + <?php if ($this->params->get('preacher_icon')): ?> + <?php $this->preacher->icon = ($this->preacher->icon) ? $this->preacher->icon : $this->params->get('preacher_default_icon'); ?> + <?php if ($this->preacher->icon): ?> + <img class="uk-comment-avatar" src="<?php echo $this->preacher->icon; ?>" alt="<?php echo $this->preacher->name; ?>"> + <?php endif; ?> + <?php endif; ?> + <h4 class="uk-comment-title"><?php echo $this->preacher->name; ?></h4> + <?php if ($this->params->get('preacher_hits') + || ($this->params->get('preacher_website') && $this->preacher->website) + || ($this->params->get('preacher_email') && $this->preacher->email) + || $this->params->get('preacher_sermon_count')): ?> + <div class="uk-comment-meta"> + <?php if ($this->params->get('preacher_hits')): ?> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $this->preacher->hits; ?><br /> + <?php endif; ?> + <?php if ($this->params->get('preacher_sermon_count')): ?> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); ?>: <?php echo $this->sermonTotal; ?><br /> + <?php endif; ?> + <?php if ($this->params->get('preacher_sermons_download_counter')): ?> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_TOTAL_DOWNLOADS'); ?>: <?php echo $this->downloadTotal; ?><br /> + <?php endif; ?> + <?php if ($this->params->get('preacher_website') && $this->preacher->website): ?> + <i class="uk-icon-external-link"></i> <a href="<?php echo $this->preacher->website; ?>" target="_blank" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_GO_TO_WEBSITE_OF'); ?> <?php echo $this->preacher->name; ?>"><?php echo $this->preacher->website; ?></a><br /> + <?php endif; ?> + <?php if ($this->params->get('preacher_email') && $this->preacher->email): ?> + <i class="uk-icon-envelope-o"></i> <a href="mailto:<?php echo $this->preacher->email; ?>" data-uk-tooltip title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_SEND_EMAIL_TO'); ?> <?php echo $this->preacher->name; ?>"><?php echo $this->preacher->email; ?></a><br /> + <?php endif; ?> + </div> + <?php endif; ?> + </header> + <?php if ($this->params->get('preacher_desc') && $this->preacher->description): ?> + <div class="uk-comment-body"><?php echo $this->preacher->description; ?></div> + <?php endif; ?> +</article><br /> diff --git a/site/views/preacher/tmpl/default_sermons-grid.php b/site/views/preacher/tmpl/default_sermons-grid.php new file mode 100644 index 00000000..e1697ee8 --- /dev/null +++ b/site/views/preacher/tmpl/default_sermons-grid.php @@ -0,0 +1,54 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_sermons-grid.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<ul id="preacher-sermons-sort-menu" class="uk-tab" data-uk-tab> + <li data-uk-sort="sermon"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME_ASC'); ?></a></li> + <li data-uk-sort="sermon:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME_DESC'); ?></a></li> + <?php if ($this->params->get('preacher_sermons_preacher', 0)): ?> + <li data-uk-sort="preacher"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHER_ASC'); ?></a></li> + <li data-uk-sort="preacher:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHER_DESC'); ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('preacher_sermons_category', 0)): ?> + <li data-uk-sort="category"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_CATEGORY_ASC'); ?></a></li> + <li data-uk-sort="category:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_CATEGORY_DESC'); ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('preacher_sermons_series', 0)): ?> + <li data-uk-sort="series"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES_ASC'); ?></a></li> + <li data-uk-sort="series:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES_DESC'); ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('preacher_sermons_hits', 0)): ?> + <li data-uk-sort="hits"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS_ASC'); ?></a></li> + <li data-uk-sort="hits:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS_DESC'); ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('preacher_sermons_download_counter', 0)): ?> + <li data-uk-sort="downloads"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_DOWNLOADS_ASC'); ?></a></li> + <li data-uk-sort="downloads:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_DOWNLOADS_DESC'); ?></a></li> + <?php endif; ?> +</ul> + +<div data-uk-check-display class="uk-grid-width-small-1-2 uk-grid-width-medium-1-3 uk-grid-width-large-1-4" data-uk-grid="{controls: '#preacher-sermons-sort-menu',gutter: 15}"> + <?php foreach ($this->items as $item): ?> + <div data-sermon="<?php echo $this->escape($item->name); ?>" <?php if ($this->params->get('preacher_sermons_preacher')): ?>data-preacher="<?php echo $this->escape($item->preacher_name); ?>" <?php endif; ?><?php if ($this->params->get('preacher_sermons_category')): ?> data-category="<?php echo $this->escape($item->category); ?>" <?php endif; ?><?php if ($this->params->get('preacher_sermons_series')): ?> data-series="<?php echo $this->escape($item->series_name); ?>" <?php endif; ?>data-hits="<?php echo (int) $item->hits; ?>" data-downloads="<?php echo (int) $item->statisticTotal; ?>"><?php $item->params = $this->params; $item->desc = $this->escape($item->description, true, 65); echo JLayoutHelper::render('sermonspanel', $item); ?></div> + <?php endforeach; ?> +</div> diff --git a/site/views/preacher/tmpl/default_sermons-list.php b/site/views/preacher/tmpl/default_sermons-list.php new file mode 100644 index 00000000..e426f94a --- /dev/null +++ b/site/views/preacher/tmpl/default_sermons-list.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_sermons-list.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// build the list class +$style = $this->params->get('preacher_sermons_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +?> +<ul class="uk-list<?php echo $listClass; ?>"> + <?php foreach ($this->items as $item): ?> + <li><?php $item->params = $this->params; $item->desc = $this->escape($item->description, true, 90); echo JLayoutHelper::render('sermonslistitem', $item); ?></li> + <?php endforeach; ?> +</ul> diff --git a/site/views/preacher/tmpl/default_sermons-table.php b/site/views/preacher/tmpl/default_sermons-table.php new file mode 100644 index 00000000..842e0a48 --- /dev/null +++ b/site/views/preacher/tmpl/default_sermons-table.php @@ -0,0 +1,109 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_sermons-table.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// Column counter +$column_nr = 1; +// build the table class +$color = $this->params->get('preacher_sermons_table_color'); +switch ($color) +{ + case 1: + // Red + $tableClass = ' metro-red'; + break; + case 2: + // Purple + $tableClass = ' metro-purple'; + break; + case 3: + // Green + $tableClass = ' metro-green'; + break; + case 4: + // Dark Blue + $tableClass = ' metro-blue'; + break; + case 6: + // Uikit style + $tableClass = ' uk-table'; + break; + case 7: + // Custom Style + $tableClass = ' preacher-sermons-table'; + break; + default: + // Light Blue and other + $tableClass = ''; + break; +} + +?> +<br /> +<table class="footable<?php echo $tableClass; ?>" data-page-size="100"> + <thead> + <tr> + <th data-toggle="true"><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME'); ?></th> + <?php if ($this->params->get('preacher_sermons_desc')): ?> + <th data-hide="all"><?php echo JText::_('COM_SERMONDISTRIBUTOR_DESCRIPTION'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('preacher_sermons_preacher', 0)): ?> + <th data-hide="phone,tablet"><?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHER'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('preacher_sermons_series', 0)): ?> + <th data-hide="phone,tablet"><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('preacher_sermons_category', 0)): ?> + <th data-hide="phone,tablet" ><?php echo JText::_('COM_SERMONDISTRIBUTOR_CATEGORY'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('preacher_sermons_downloads')): ?> + <th><?php echo JText::_('COM_SERMONDISTRIBUTOR_FILES'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('preacher_sermons_download_counter')): ?> + <th data-hide="phone,tablet" data-type="numeric"><?php echo JText::_('COM_SERMONDISTRIBUTOR_DOWNLOADS'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('preacher_sermons_hits')): ?> + <th data-hide="phone,tablet" data-type="numeric"><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); $column_nr++; ?></th> + <?php endif; ?> + </tr> + </thead> + <tfoot class="hide-if-no-paging"> + <tr> + <td colspan="<?php echo $column_nr; ?>"> + <div class="pagination pagination-centered"></div> + </td> + </tr> + </tfoot> + <tbody> + <?php foreach ($this->items as $item): ?> + <tr><?php $item->params = $this->params; echo JLayoutHelper::render('sermonsrow', $item); ?></tr> + <?php endforeach; ?> + </tbody> +</table> + +<script> +// page loading pause +jQuery(window).load(function() { + // do some stuff once page is loaded + jQuery('.footable').footable(); +}); +</script> diff --git a/site/views/preacher/tmpl/index.html b/site/views/preacher/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/views/preacher/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/views/preacher/view.html.php b/site/views/preacher/view.html.php new file mode 100644 index 00000000..350acf3c --- /dev/null +++ b/site/views/preacher/view.html.php @@ -0,0 +1,303 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Sermondistributor View class for the Preacher + */ +class SermondistributorViewPreacher extends JViewLegacy +{ + // Overwriting JView display method + function display($tpl = null) + { + // get combined params of both component and menu + $this->app = JFactory::getApplication(); + $this->params = $this->app->getParams(); + $this->menu = $this->app->getMenu()->getActive(); + // get the user object + $this->user = JFactory::getUser(); + // [3032] Initialise variables. + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + $this->preacher = $this->get('Preacher'); + $this->numberdownloads = $this->get('NumberDownloads'); + $this->numbersermons = $this->get('NumberSermons'); + + // [3050] Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseWarning(500, implode("\n", $errors)); + return false; + } + // add a hit to the preacher + if ($this->hit($this->preacher->id)) + { + $this->preacher->hits++; + } + // set some total defaults + $this->sermonTotal = count($this->numbersermons); + $this->downloadTotal = 0; + if (isset($this->numberdownloads) && SermondistributorHelper::checkArray($this->numberdownloads)) + { + foreach ($this->numberdownloads as $download) + { + $this->downloadTotal += $download->counter; + } + } + // set the FooTable style + $style = $this->params->get('preacher_sermons_table_color', 0); + if (5 == $style) + { + $this->fooTableStyle = 1; + } + elseif ($style <= 4) + { + $this->fooTableStyle = 0; + } + else + { + $this->fooTableStyle = 2; + } + + // [3067] Set the toolbar + $this->addToolBar(); + + // [3069] set the document + $this->_prepareDocument(); + + parent::display($tpl); + } + + /** + * Increment the hit counter for the preacher. + * + * @param integer $pk Primary key of the preacher to increment. + * + * @return boolean True if successful; + */ + public function hit($pk = 0) + { + if ($pk) + { + $db = JFactory::getDbo(); + $query = $db->getQuery(true); + + // Fields to update. + $fields = array( + $db->quoteName('hits') . ' = '.$db->quoteName('hits').' + 1' + ); + + // Conditions for which records should be updated. + $conditions = array( + $db->quoteName('id') . ' = ' . $pk + ); + + $query->update($db->quoteName('#__sermondistributor_preacher'))->set($fields)->where($conditions); + + $db->setQuery($query); + return $db->execute(); + } + return false; + } + + /** + * Prepares the document + */ + protected function _prepareDocument() + { + + // [3419] always make sure jquery is loaded. + JHtml::_('jquery.framework'); + // [3421] Load the header checker class. + require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php' ); + // [3423] Initialize the header checker. + $HeaderCheck = new HeaderCheck; + + // [3428] Load uikit options. + $uikit = $this->params->get('uikit_load'); + // [3430] Set script size. + $size = $this->params->get('uikit_min'); + // [3432] Set css style. + $style = $this->params->get('uikit_style'); + + // [3435] The uikit css. + if ((!$HeaderCheck->css_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) + { + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/uikit/css/uikit'.$style.$size.'.css'); + } + // [3440] The uikit js. + if ((!$HeaderCheck->js_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) + { + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/uikit/js/uikit'.$size.'.js'); + } + + // [3449] Load the script to find all uikit components needed. + if ($uikit != 2) + { + // [3452] Set the default uikit components in this view. + $uikitComp = array(); + $uikitComp[] = 'data-uk-tooltip'; + $uikitComp[] = 'data-uk-grid'; + + // [3461] Get field uikit components needed in this view. + $uikitFieldComp = $this->get('UikitComp'); + if (isset($uikitFieldComp) && SermondistributorHelper::checkArray($uikitFieldComp)) + { + if (isset($uikitComp) && SermondistributorHelper::checkArray($uikitComp)) + { + $uikitComp = array_merge($uikitComp, $uikitFieldComp); + $uikitComp = array_unique($uikitComp); + } + else + { + $uikitComp = $uikitFieldComp; + } + } + } + + // [3477] Load the needed uikit components in this view. + if ($uikit != 2 && isset($uikitComp) && SermondistributorHelper::checkArray($uikitComp)) + { + // [3480] load just in case. + jimport('joomla.filesystem.file'); + // [3482] loading... + foreach ($uikitComp as $class) + { + foreach (SermondistributorHelper::$uk_components[$class] as $name) + { + // [3487] check if the CSS file exists. + if (JFile::exists(JPATH_ROOT.'/media/com_sermondistributor/uikit/css/components/'.$name.$style.$size.'.css')) + { + // [3490] load the css. + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/uikit/css/components/'.$name.$style.$size.'.css'); + } + // [3493] check if the JavaScript file exists. + if (JFile::exists(JPATH_ROOT.'/media/com_sermondistributor/uikit/js/components/'.$name.$size.'.js')) + { + // [3496] load the js. + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/uikit/js/components/'.$name.$size.'.js'); + } + } + } + } + + // [6480] Add the CSS for Footable. + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css'); + + // [6482] Use the Metro Style + if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle) + { + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css'); + } + // [6487] Use the Legacy Style. + elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle) + { + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css'); + } + + // [6492] Add the JavaScript for Footable + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.paginate.js'); + // [3326] load the meta description + if (isset($this->preacher->metadesc) && $this->preacher->metadesc) + { + $this->document->setDescription($this->preacher->metadesc); + } + elseif ($this->params->get('menu-meta_description')) + { + $this->document->setDescription($this->params->get('menu-meta_description')); + } + // [3335] load the key words if set + if (isset($this->preacher->metakey) && $this->preacher->metakey) + { + $this->document->setMetadata('keywords', $this->preacher->metakey); + } + elseif ($this->params->get('menu-meta_keywords')) + { + $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); + } + // [3344] check the robot params + if (isset($this->preacher->robots) && $this->preacher->robots) + { + $this->document->setMetadata('robots', $this->preacher->robots); + } + elseif ($this->params->get('robots')) + { + $this->document->setMetadata('robots', $this->params->get('robots')); + } + // [3353] check if autor is to be set + if (isset($this->preacher->created_by) && $this->params->get('MetaAuthor') == '1') + { + $this->document->setMetaData('author', $this->preacher->created_by); + } + // [3358] check if metadata is available + if (isset($this->preacher->metadata) && $this->preacher->metadata) + { + $mdata = json_decode($this->preacher->metadata,true); + foreach ($mdata as $k => $v) + { + if ($v) + { + $this->document->setMetadata($k, $v); + } + } + } + // add the document default css file + $this->document->addStyleSheet(JURI::root(true) .'/components/com_sermondistributor/assets/css/preacher.css'); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + // adding the joomla toolbar to the front + JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php'); + + // set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('preacher'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + // now initiate the toolbar + $this->toolbar = JToolbar::getInstance(); + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var, $sorten = false, $length = 40) + { + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset, $sorten, $length); + } +} diff --git a/site/views/preachers/index.html b/site/views/preachers/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/views/preachers/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/views/preachers/tmpl/default.php b/site/views/preachers/tmpl/default.php new file mode 100644 index 00000000..a279f69a --- /dev/null +++ b/site/views/preachers/tmpl/default.php @@ -0,0 +1,55 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// Set the heading of the page +$heading = ($this->params->get('page_heading')) ? $this->params->get('page_heading'):(isset($this->menu->title)) ? $this->menu->title:''; + +?> + <?php if ($this->params->get('show_page_heading')): ?> + <h1 class="uk-text-primary"><?php echo $heading; ?></h1> +<?php endif; ?> +<?php if ($this->items): ?> + <?php if ($this->params->get('preachers_display') == 1) : ?> + <?php echo $this->loadTemplate('preachers-table'); ?> + <?php elseif ($this->params->get('preachers_display') == 2) : ?> + <?php echo $this->loadTemplate('preachers-grid'); ?> + <?php else: ?> + <?php echo $this->loadTemplate('preachers-list'); ?> + <?php endif; ?> +<?php else: ?> + <div class="uk-alert uk-alert-warning" data-uk-alert> + <a href="" class="uk-alert-close uk-close"></a> + <p><?php echo JText::_('COM_SERMONDISTRIBUTOR_NO_PREACHERS_WERE_FOUND'); ?></p> + </div> +<?php endif; ?> + +<?php if (isset($this->items) && sermondistributorHelper::checkArray($this->items) && count($this->items) > 4): ?> +<form name="adminForm" method="post"> + <div class="pagination"> + <?php if ($this->params->def('show_pagination_results', 1)) : ?> + <p class="counter pull-right"> <?php echo $this->pagination->getPagesCounter(); ?> <?php echo $this->pagination->getLimitBox(); ?></p> + <?php endif; ?> + <?php echo $this->pagination->getPagesLinks(); ?> + </div> +</form> +<?php endif; ?> <?php echo $this->toolbar->render(); ?> diff --git a/site/views/preachers/tmpl/default.xml b/site/views/preachers/tmpl/default.xml new file mode 100644 index 00000000..33c46127 --- /dev/null +++ b/site/views/preachers/tmpl/default.xml @@ -0,0 +1,181 @@ +<?xml version="1.0" encoding="utf-8" ?> +<metadata> + <layout title="COM_SERMONDISTRIBUTOR_MENU_PREACHERS_TITLE" option="COM_SERMONDISTRIBUTOR_MENU_PREACHERS_OPTION"> + <message> + <![CDATA[COM_SERMONDISTRIBUTOR_MENU_PREACHERS_DESC]]> + </message> + </layout> + <!-- [1729] Adding page parameters --> + <fields name="params"> + <fieldset name="basic" label="COM_SERMONDISTRIBUTOR"> + <!-- [11246] Preachers_display Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preachers_display" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_DISPLAY_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_DISPLAY_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_TABLE</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_GRID</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_LIST</option> + </field> + <!-- [11246] Preachers_list_style Field. Type: List. (joomla) --> + <field + type="list" + name="preachers_list_style" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_LIST_STYLE_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_LIST_STYLE_DESCRIPTION" + class="list_class" + multiple="false" + filter="string" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_PLAIN</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_LINES</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_STRIPED</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option> + </field> + <!-- [11246] Preachers_table_color Field. Type: List. (joomla) --> + <field + type="list" + name="preachers_table_color" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_TABLE_COLOR_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_TABLE_COLOR_DESCRIPTION" + class="list_class" + multiple="false" + filter="string" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_BLUE</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_RED</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_PURPLE</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_GREEN</option> + <option value="4"> + COM_SERMONDISTRIBUTOR_CONFIG_DARK_BLUE</option> + <option value="5"> + COM_SERMONDISTRIBUTOR_CONFIG_LEGACY</option> + <option value="6"> + COM_SERMONDISTRIBUTOR_CONFIG_UIKIT</option> + <option value="7"> + COM_SERMONDISTRIBUTOR_CONFIG_CUSTOM</option> + <option value="8"> + COM_SERMONDISTRIBUTOR_CONFIG_NONE</option> + </field> + <!-- [11246] Preachers_icon Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preachers_icon" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_ICON_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_ICON_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preachers_desc Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preachers_desc" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_DESC_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_DESC_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preachers_sermon_count Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preachers_sermon_count" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_SERMON_COUNT_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_SERMON_COUNT_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preachers_hits Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preachers_hits" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_HITS_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_HITS_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preachers_website Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preachers_website" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_WEBSITE_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_WEBSITE_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Preachers_email Field. Type: Radio. (joomla) --> + <field + type="radio" + name="preachers_email" + label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_EMAIL_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_EMAIL_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + </fieldset> + </fields> +</metadata> \ No newline at end of file diff --git a/site/views/preachers/tmpl/default_preachers-grid.php b/site/views/preachers/tmpl/default_preachers-grid.php new file mode 100644 index 00000000..c99f5848 --- /dev/null +++ b/site/views/preachers/tmpl/default_preachers-grid.php @@ -0,0 +1,41 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_preachers-grid.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<ul id="preachers-sort-menu" class="uk-subnav"> + <li data-uk-sort="preacher"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME_ASC'); ?></a></li> + <li data-uk-sort="preacher:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME_DESC'); ?></a></li> + <?php if ($this->params->get('preachers_hits')): ?> + <li data-uk-sort="hits"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS_ASC'); ?></a></li> + <li data-uk-sort="hits:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS_DESC'); ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('preachers_sermon_count')): ?> + <li data-uk-sort="sermons"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMONS_COUNT_ASC'); ?></a></li> + <li data-uk-sort="sermons:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMONS_COUNT_DESC'); ?></a></li> + <?php endif; ?> +</ul> +<div data-uk-check-display class="uk-grid-width-small-1-2 uk-grid-width-medium-1-3 uk-grid-width-large-1-4" data-uk-grid="{controls: '#preachers-sort-menu',gutter: 15}"> + <?php foreach ($this->items as $item): ?> + <div data-preacher="<?php echo $this->escape($item->name); ?>" data-hits="<?php echo (int) $item->hits; ?>" data-sermons="<?php echo count($item->idPreacherSermonB); ?>"><?php $item->params = $this->params; $item->desc = $this->escape($item->description, true, 65); echo JLayoutHelper::render('preacherspanel', $item); ?></div> + <?php endforeach; ?> +</div> diff --git a/site/views/preachers/tmpl/default_preachers-list.php b/site/views/preachers/tmpl/default_preachers-list.php new file mode 100644 index 00000000..36dc6e1b --- /dev/null +++ b/site/views/preachers/tmpl/default_preachers-list.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_preachers-list.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// build the list class +$style = $this->params->get('preachers_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +?> +<ul class="uk-list<?php echo $listClass; ?>"> + <?php foreach ($this->items as $item): ?> + <li><?php $item->params = $this->params; $item->desc = $this->escape($item->description, true, 90); echo JLayoutHelper::render('preacherslistitem', $item); ?></li> + <?php endforeach; ?> +</ul> diff --git a/site/views/preachers/tmpl/default_preachers-table.php b/site/views/preachers/tmpl/default_preachers-table.php new file mode 100644 index 00000000..d74680a7 --- /dev/null +++ b/site/views/preachers/tmpl/default_preachers-table.php @@ -0,0 +1,102 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_preachers-table.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// Column counter +$column_nr = 1; +// build the table class +$color = $this->params->get('preachers_table_color'); +switch ($color) +{ + case 1: + // Red + $tableClass = ' metro-red'; + break; + case 2: + // Purple + $tableClass = ' metro-purple'; + break; + case 3: + // Green + $tableClass = ' metro-green'; + break; + case 4: + // Dark Blue + $tableClass = ' metro-blue'; + break; + case 6: + // Uikit style + $tableClass = ' uk-table'; + break; + case 7: + // Custom Style + $tableClass = ' preachers-table'; + break; + default: + // Light Blue and other + $tableClass = ''; + break; +} + +?> +<table class="footable<?php echo $tableClass; ?>" data-page-size="100"> + <thead> + <tr> + <th data-toggle="true"><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME'); ?></th> + <?php if ($this->params->get('preachers_desc')): ?> + <th data-hide="all"><?php echo JText::_('COM_SERMONDISTRIBUTOR_DESCRIPTION'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('preachers_website')): ?> + <th data-hide="all"><?php echo JText::_('COM_SERMONDISTRIBUTOR_WEBSITE'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('preachers_email')): ?> + <th data-hide="all"><?php echo JText::_('COM_SERMONDISTRIBUTOR_EMAIL'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('preachers_hits')): ?> + <th data-type="numeric"><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('preachers_sermon_count')): ?> + <th data-type="numeric" data-hide="phone,tablet"><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); $column_nr++;?></th> + <?php endif; ?> + </tr> + </thead> + <tfoot class="hide-if-no-paging"> + <tr> + <td colspan="<?php echo $column_nr; ?>"> + <div class="pagination pagination-centered"></div> + </td> + </tr> + </tfoot> + <tbody> + <?php foreach ($this->items as $item): ?> + <tr><?php $item->params = $this->params; echo JLayoutHelper::render('preachersrow', $item); ?></tr> + <?php endforeach; ?> + </tbody> +</table> + +<script> +// page loading pause +jQuery(window).load(function() { + // do some stuff once page is loaded + jQuery('.footable').footable(); +}); +</script> diff --git a/site/views/preachers/tmpl/index.html b/site/views/preachers/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/views/preachers/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/views/preachers/view.html.php b/site/views/preachers/view.html.php new file mode 100644 index 00000000..e623168b --- /dev/null +++ b/site/views/preachers/view.html.php @@ -0,0 +1,232 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Sermondistributor View class for the Preachers + */ +class SermondistributorViewPreachers extends JViewLegacy +{ + // Overwriting JView display method + function display($tpl = null) + { + // get combined params of both component and menu + $this->app = JFactory::getApplication(); + $this->params = $this->app->getParams(); + $this->menu = $this->app->getMenu()->getActive(); + // get the user object + $this->user = JFactory::getUser(); + // [3032] Initialise variables. + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + + // [3050] Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseWarning(500, implode("\n", $errors)); + return false; + } + // do a quick build of all the links + if ($this->items) + { + foreach ($this->items as $nr => &$item) + { + $item->link = JRoute::_(SermondistributorHelperRoute::getPreacherRoute($item->slug)); + } + } + // set the FooTable style + $style = $this->params->get('preachers_table_color', 0); + if (5 == $style) + { + $this->fooTableStyle = 1; + } + elseif ($style <= 4) + { + $this->fooTableStyle = 0; + } + else + { + $this->fooTableStyle = 2; + } + + // [3067] Set the toolbar + $this->addToolBar(); + + // [3069] set the document + $this->_prepareDocument(); + + parent::display($tpl); + } + + /** + * Prepares the document + */ + protected function _prepareDocument() + { + + // [3419] always make sure jquery is loaded. + JHtml::_('jquery.framework'); + // [3421] Load the header checker class. + require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php' ); + // [3423] Initialize the header checker. + $HeaderCheck = new HeaderCheck; + + // [3428] Load uikit options. + $uikit = $this->params->get('uikit_load'); + // [3430] Set script size. + $size = $this->params->get('uikit_min'); + // [3432] Set css style. + $style = $this->params->get('uikit_style'); + + // [3435] The uikit css. + if ((!$HeaderCheck->css_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) + { + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/uikit/css/uikit'.$style.$size.'.css'); + } + // [3440] The uikit js. + if ((!$HeaderCheck->js_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) + { + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/uikit/js/uikit'.$size.'.js'); + } + + // [3449] Load the script to find all uikit components needed. + if ($uikit != 2) + { + // [3452] Set the default uikit components in this view. + $uikitComp = array(); + $uikitComp[] = 'data-uk-tooltip'; + $uikitComp[] = 'data-uk-grid'; + + // [3461] Get field uikit components needed in this view. + $uikitFieldComp = $this->get('UikitComp'); + if (isset($uikitFieldComp) && SermondistributorHelper::checkArray($uikitFieldComp)) + { + if (isset($uikitComp) && SermondistributorHelper::checkArray($uikitComp)) + { + $uikitComp = array_merge($uikitComp, $uikitFieldComp); + $uikitComp = array_unique($uikitComp); + } + else + { + $uikitComp = $uikitFieldComp; + } + } + } + + // [3477] Load the needed uikit components in this view. + if ($uikit != 2 && isset($uikitComp) && SermondistributorHelper::checkArray($uikitComp)) + { + // [3480] load just in case. + jimport('joomla.filesystem.file'); + // [3482] loading... + foreach ($uikitComp as $class) + { + foreach (SermondistributorHelper::$uk_components[$class] as $name) + { + // [3487] check if the CSS file exists. + if (JFile::exists(JPATH_ROOT.'/media/com_sermondistributor/uikit/css/components/'.$name.$style.$size.'.css')) + { + // [3490] load the css. + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/uikit/css/components/'.$name.$style.$size.'.css'); + } + // [3493] check if the JavaScript file exists. + if (JFile::exists(JPATH_ROOT.'/media/com_sermondistributor/uikit/js/components/'.$name.$size.'.js')) + { + // [3496] load the js. + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/uikit/js/components/'.$name.$size.'.js'); + } + } + } + } + + // [6480] Add the CSS for Footable. + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css'); + + // [6482] Use the Metro Style + if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle) + { + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css'); + } + // [6487] Use the Legacy Style. + elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle) + { + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css'); + } + + // [6492] Add the JavaScript for Footable + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.paginate.js'); + // [3377] load the meta description + if ($this->params->get('menu-meta_description')) + { + $this->document->setDescription($this->params->get('menu-meta_description')); + } + // [3382] load the key words if set + if ($this->params->get('menu-meta_keywords')) + { + $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); + } + // [3387] check the robot params + if ($this->params->get('robots')) + { + $this->document->setMetadata('robots', $this->params->get('robots')); + } + // add the document default css file + $this->document->addStyleSheet(JURI::root(true) .'/components/com_sermondistributor/assets/css/preachers.css'); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + // adding the joomla toolbar to the front + JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php'); + + // set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('preachers'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + // now initiate the toolbar + $this->toolbar = JToolbar::getInstance(); + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var, $sorten = false, $length = 40) + { + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset, $sorten, $length); + } +} diff --git a/site/views/series/index.html b/site/views/series/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/views/series/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/views/series/tmpl/default.php b/site/views/series/tmpl/default.php new file mode 100644 index 00000000..334355a9 --- /dev/null +++ b/site/views/series/tmpl/default.php @@ -0,0 +1,80 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + <?php if ($this->series): ?> + <?php if ($this->params->get('series_display') == 1) : ?> + <div class="uk-grid" data-uk-grid-match="{target:'.uk-panel'}"><?php echo $this->loadTemplate('seriespanel'); ?></div> + <?php elseif ($this->params->get('series_display') == 2) : ?> + <?php echo $this->loadTemplate('seriesbox'); ?> + <?php else: ?> + <?php echo $this->loadTemplate('seriessmall'); ?> + <?php endif; ?> +<?php else: ?> + <div class="uk-alert uk-alert-warning" data-uk-alert> + <a href="" class="uk-alert-close uk-close"></a> + <p><?php echo JText::_('COM_SERMONDISTRIBUTOR_NO_SERIES_WAS_FOUND'); ?></p> + </div> +<?php endif; ?> +<?php if ($this->items): ?> + <?php if ($this->params->get('series_sermons_display') == 1) : ?> + <?php echo $this->loadTemplate('sermons-table'); ?> + <?php elseif ($this->params->get('series_sermons_display') == 2) : ?> + <?php echo $this->loadTemplate('sermons-grid'); ?> + <?php else: ?> + <?php echo $this->loadTemplate('sermons-list'); ?> + <?php endif; ?> + <script> + function sermonCounter(key,filename) + { + var getUrl = "index.php?option=com_sermondistributor&task=ajax.countDownload&format=json"; + if (key.length > 0 && filename.length > 0) + { + var request = 'token=<?php echo JSession::getFormToken(); ?>&key='+key+'&filename='+filename; + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'jsonp', + data: request, + jsonp: 'callback' + }); + } + </script> +<?php else: ?> + <div class="uk-alert uk-alert-warning" data-uk-alert> + <a href="" class="uk-alert-close uk-close"></a> + <p><?php echo JText::_('COM_SERMONDISTRIBUTOR_NO_SERMONS_WERE_FOUND'); ?></p> + </div> +<?php endif; ?> + +<?php if (isset($this->items) && sermondistributorHelper::checkArray($this->items) && count($this->items) > 4): ?> +<form name="adminForm" method="post"> + <div class="pagination"> + <?php if ($this->params->def('show_pagination_results', 1)) : ?> + <p class="counter pull-right"> <?php echo $this->pagination->getPagesCounter(); ?> <?php echo $this->pagination->getLimitBox(); ?></p> + <?php endif; ?> + <?php echo $this->pagination->getPagesLinks(); ?> + </div> +</form> +<?php endif; ?> <?php echo $this->toolbar->render(); ?> diff --git a/site/views/series/tmpl/default.xml b/site/views/series/tmpl/default.xml new file mode 100644 index 00000000..8087563d --- /dev/null +++ b/site/views/series/tmpl/default.xml @@ -0,0 +1,353 @@ +<?xml version="1.0" encoding="utf-8" ?> +<metadata> + <layout title="COM_SERMONDISTRIBUTOR_MENU_SERIES_TITLE" option="COM_SERMONDISTRIBUTOR_MENU_SERIES_OPTION"> + <message> + <![CDATA[COM_SERMONDISTRIBUTOR_MENU_SERIES_DESC]]> + </message> + </layout> + <!-- [1714] Add fields to the request variables for the layout. --> + <fields name="request"> + <fieldset name="request" + addfieldpath="/administrator/components/com_sermondistributor/models/fields"> + + <!-- [11453] Series_request_id Field. Type: Series. (custom) --> + <field + type="series" + name="id" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_REQUEST_ID_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_REQUEST_ID_DESCRIPTION" + class="list_class" + multiple="false" + default="0" + button="false" + /> + </fieldset> + </fields> + <!-- [1729] Adding page parameters --> + <fields name="params"> + <fieldset name="basic" label="COM_SERMONDISTRIBUTOR"> + <!-- [11246] Series_display Field. Type: Radio. (joomla) --> + <field + type="radio" + name="series_display" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DISPLAY_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DISPLAY_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_PANEL</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_BOX</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_SMALL</option> + </field> + <!-- [11246] Series_box_contrast Field. Type: Radio. (joomla) --> + <field + type="radio" + name="series_box_contrast" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_BOX_CONTRAST_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_BOX_CONTRAST_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Series_list_style Field. Type: List. (joomla) --> + <field + type="list" + name="series_list_style" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_LIST_STYLE_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_LIST_STYLE_DESCRIPTION" + class="list_class" + multiple="false" + filter="string" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_PLAIN</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_LINES</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_STRIPED</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option> + </field> + <!-- [11246] Series_icon Field. Type: Radio. (joomla) --> + <field + type="radio" + name="series_icon" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_ICON_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_ICON_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Series_desc Field. Type: Radio. (joomla) --> + <field + type="radio" + name="series_desc" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DESC_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DESC_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Series_sermon_count Field. Type: Radio. (joomla) --> + <field + type="radio" + name="series_sermon_count" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMON_COUNT_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMON_COUNT_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Series_hits Field. Type: Radio. (joomla) --> + <field + type="radio" + name="series_hits" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_HITS_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_HITS_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11346] Spacer_hr_h Field. Type: Spacer. A None Database Field. (joomla) --> + <field type="spacer" name="spacer_hr_h" hr="true" class="spacer_hr_h" /> + <!-- [11246] Series_sermons_display Field. Type: Radio. (joomla) --> + <field + type="radio" + name="series_sermons_display" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DISPLAY_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DISPLAY_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_TABLE</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_GRID</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_LIST</option> + </field> + <!-- [11246] Series_sermons_list_style Field. Type: List. (joomla) --> + <field + type="list" + name="series_sermons_list_style" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_LIST_STYLE_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_LIST_STYLE_DESCRIPTION" + class="list_class" + multiple="false" + filter="string" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_PLAIN</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_LINES</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_STRIPED</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option> + </field> + <!-- [11246] Series_sermons_table_color Field. Type: List. (joomla) --> + <field + type="list" + name="series_sermons_table_color" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_TABLE_COLOR_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_TABLE_COLOR_DESCRIPTION" + class="list_class" + multiple="false" + filter="string" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_BLUE</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_RED</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_PURPLE</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_GREEN</option> + <option value="4"> + COM_SERMONDISTRIBUTOR_CONFIG_DARK_BLUE</option> + <option value="5"> + COM_SERMONDISTRIBUTOR_CONFIG_LEGACY</option> + <option value="6"> + COM_SERMONDISTRIBUTOR_CONFIG_UIKIT</option> + <option value="7"> + COM_SERMONDISTRIBUTOR_CONFIG_CUSTOM</option> + <option value="8"> + COM_SERMONDISTRIBUTOR_CONFIG_NONE</option> + </field> + <!-- [11246] Series_sermons_icon Field. Type: Radio. (joomla) --> + <field + type="radio" + name="series_sermons_icon" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_ICON_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_ICON_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Series_sermons_desc Field. Type: Radio. (joomla) --> + <field + type="radio" + name="series_sermons_desc" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DESC_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DESC_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Series_sermons_preacher Field. Type: Radio. (joomla) --> + <field + type="radio" + name="series_sermons_preacher" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_PREACHER_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_PREACHER_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Series_sermons_category Field. Type: Radio. (joomla) --> + <field + type="radio" + name="series_sermons_category" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_CATEGORY_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_CATEGORY_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Series_sermons_download_counter Field. Type: Radio. (joomla) --> + <field + type="radio" + name="series_sermons_download_counter" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DOWNLOAD_COUNTER_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DOWNLOAD_COUNTER_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Series_sermons_hits Field. Type: Radio. (joomla) --> + <field + type="radio" + name="series_sermons_hits" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_HITS_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_HITS_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Series_sermons_downloads Field. Type: Radio. (joomla) --> + <field + type="radio" + name="series_sermons_downloads" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DOWNLOADS_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DOWNLOADS_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] Series_sermons_open Field. Type: Radio. (joomla) --> + <field + type="radio" + name="series_sermons_open" + label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_OPEN_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_OPEN_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + </fieldset> + </fields> +</metadata> \ No newline at end of file diff --git a/site/views/series/tmpl/default_seriesbox.php b/site/views/series/tmpl/default_seriesbox.php new file mode 100644 index 00000000..75d924c1 --- /dev/null +++ b/site/views/series/tmpl/default_seriesbox.php @@ -0,0 +1,122 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_seriesbox.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// build the list class +$style = $this->params->get('series_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +// build the contrast text option +$contrast = $this->params->get('series_box_contrast'); +$contrastClass = ''; +if ($contrast) +{ + $contrastClass = 'uk-text-contrast'; +} + +// set Panal Size +$mediumMain = '1-4'; +if (($this->params->get('series_sermon_count') || $this->params->get('series_sermons_download_counter')) + && ($this->params->get('series_desc') && $this->series->description)) +{ + $mediumDesc = '2-4'; + $mediumMid = '1-4'; +} +elseif (($this->params->get('series_sermon_count') || $this->params->get('series_sermons_download_counter')) + || ($this->params->get('series_desc') && $this->series->description)) +{ + $mediumDesc = '3-4'; + $mediumMid = '3-4'; +} +elseif (!$this->params->get('series_icon')) +{ + $mediumMain = '1-1'; +} + +?> +<div class="uk-block uk-block-primary"> + <div class="uk-container"> + <h3 class="<?php echo $contrastClass; ?>"><?php echo $this->series->name; ?></h3> + <div class="uk-grid" data-uk-grid-margin="{target:'.uk-panel'}"> + <div class="uk-width-medium-<?php echo $mediumMain; ?>"> + <div class="uk-panel"> + <?php if ($this->params->get('series_hits')): ?> + <?php + $hits_state = ($this->series->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-panel-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $this->series->hits; ?> + </div> + <?php endif ;?> + <?php if ($this->params->get('series_icon')): ?> + <?php $this->series->icon = ($this->series->icon) ? $this->series->icon : $this->params->get('series_default_icon'); ?> + <?php if ($this->series->icon): ?> + <img class="uk-thumbnail uk-thumbnail-expand" src="<?php echo $this->series->icon; ?>" alt="<?php echo $this->series->name; ?>"> + <?php endif; ?> + <?php endif; ?> + </div> + </div> + <?php if ($this->params->get('series_sermon_count') || ($this->params->get('series_sermons_download_counter'))): ?> + <div class="uk-width-medium-<?php echo $mediumMid; ?>"> + <div class="uk-panel"> + <ul class="uk-list<?php echo $listClass; ?>"> + <?php if ($this->params->get('series_sermon_count')): ?> + <li class="<?php echo $contrastClass; ?>"><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); ?>: <?php echo $this->sermonTotal; ?></li> + <?php endif; ?> + <?php if ($this->params->get('series_sermons_download_counter')): ?> + <li class="<?php echo $contrastClass; ?>"><?php echo JText::_('COM_SERMONDISTRIBUTOR_TOTAL_DOWNLOADS'); ?>: <?php echo $this->downloadTotal; ?></li> + <?php endif; ?> + </ul> + </div> + </div> + <?php endif; ?> + <?php if ($this->params->get('series_desc') && $this->series->description): ?> + <div class="uk-width-medium-<?php echo $mediumDesc; ?>"> + <div class="uk-panel <?php echo $contrastClass; ?>"> + <?php echo $this->series->description; ?> + </div> + </div> + <?php endif; ?> + </div> + </div> +</div> diff --git a/site/views/series/tmpl/default_seriespanel.php b/site/views/series/tmpl/default_seriespanel.php new file mode 100644 index 00000000..3e7212f8 --- /dev/null +++ b/site/views/series/tmpl/default_seriespanel.php @@ -0,0 +1,108 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_seriespanel.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// build the list class +$style = $this->params->get('series_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +// set Panal Size +$mediumMain = '1-4'; +if (($this->params->get('series_sermon_count') || $this->params->get('series_sermons_download_counter')) + && ($this->params->get('series_desc') && $this->series->description)) +{ + $mediumDesc = '2-4'; + $mediumMid = '1-4'; +} +elseif (($this->params->get('series_sermon_count') || $this->params->get('series_sermons_download_counter')) + || ($this->params->get('series_desc') && $this->series->description)) +{ + $mediumDesc = '3-4'; + $mediumMid = '3-4'; +} +elseif (!$this->params->get('series_icon')) +{ + $mediumMain = '1-1'; +} + +?> +<div class="uk-width-medium-<?php echo $mediumMain; ?>"> + <div class="uk-panel uk-panel-box"> + <?php if ($this->params->get('series_hits')): ?> + <?php + $hits_state = ($this->series->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-panel-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $this->series->hits; ?> + </div> + <?php endif ;?> + <h3 class="uk-panel-title"><?php echo $this->series->name; ?></h3> + <?php if ($this->params->get('series_icon')): ?> + <?php $this->series->icon = ($this->series->icon) ? $this->series->icon : $this->params->get('series_default_icon'); ?> + <?php if ($this->series->icon): ?> + <img class="uk-thumbnail uk-thumbnail-expand" src="<?php echo $this->series->icon; ?>" alt="<?php echo $this->series->name; ?>"> + <?php endif; ?> + <?php endif; ?> + </div> +</div> +<?php if ($this->params->get('series_sermon_count') || $this->params->get('series_sermons_download_counter')): ?> + <div class="uk-width-medium-<?php echo $mediumMid; ?>"> + <div class="uk-panel uk-panel-box"> + <ul class="uk-list<?php echo $listClass; ?>"> + <?php if ($this->params->get('series_sermon_count')): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); ?>: <?php echo $this->sermonTotal; ?></li> + <?php endif; ?> + <?php if ($this->params->get('series_sermons_download_counter')): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_TOTAL_DOWNLOADS'); ?>: <?php echo $this->downloadTotal; ?></li> + <?php endif; ?> + </ul> + </div> + </div> +<?php endif; ?> +<?php if ($this->params->get('series_desc') && $this->series->description): ?> + <div class="uk-width-medium-<?php echo $mediumDesc; ?>"> + <div class="uk-panel uk-panel-box"> + <?php echo $this->series->description; ?> + </div> + </div> +<?php endif; ?> diff --git a/site/views/series/tmpl/default_seriessmall.php b/site/views/series/tmpl/default_seriessmall.php new file mode 100644 index 00000000..d85bfa06 --- /dev/null +++ b/site/views/series/tmpl/default_seriessmall.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_seriessmall.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<article class="uk-comment"> + <header class="uk-comment-header"> + <?php if ($this->params->get('series_icon')): ?> + <?php $this->series->icon = ($this->series->icon) ? $this->series->icon : $this->params->get('series_default_icon'); ?> + <?php if ($this->series->icon): ?> + <img class="uk-comment-avatar" src="<?php echo $this->series->icon; ?>" alt="<?php echo $this->series->name; ?>"> + <?php endif; ?> + <?php endif; ?> + <h4 class="uk-comment-title"><?php echo $this->series->name; ?></h4> + <?php if ($this->params->get('series_hits') || $this->params->get('series_sermon_count') || $this->params->get('series_sermons_download_counter')): ?> + <div class="uk-comment-meta"> + <?php if ($this->params->get('series_hits')): ?> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $this->series->hits; ?><br /> + <?php endif; ?> + <?php if ($this->params->get('series_sermon_count')): ?> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); ?>: <?php echo $this->sermonTotal; ?><br /> + <?php endif; ?> + <?php if ($this->params->get('series_sermons_download_counter')): ?> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_TOTAL_DOWNLOADS'); ?>: <?php echo $this->downloadTotal; ?><br /> + <?php endif; ?> + </div> + <?php endif; ?> + </header> + <?php if ($this->params->get('series_desc') && $this->series->description): ?> + <div class="uk-comment-body"><?php echo $this->series->description; ?></div> + <?php endif; ?> +</article><br /> diff --git a/site/views/series/tmpl/default_sermons-grid.php b/site/views/series/tmpl/default_sermons-grid.php new file mode 100644 index 00000000..50483d39 --- /dev/null +++ b/site/views/series/tmpl/default_sermons-grid.php @@ -0,0 +1,54 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_sermons-grid.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<ul id="series-sermons-sort-menu" class="uk-tab" data-uk-tab> + <li data-uk-sort="sermon"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME_ASC'); ?></a></li> + <li data-uk-sort="sermon:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME_DESC'); ?></a></li> + <?php if ($this->params->get('series_sermons_preacher', 0)): ?> + <li data-uk-sort="preacher"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHER_ASC'); ?></a></li> + <li data-uk-sort="preacher:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHER_DESC'); ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('series_sermons_category', 0)): ?> + <li data-uk-sort="category"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_CATEGORY_ASC'); ?></a></li> + <li data-uk-sort="category:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_CATEGORY_DESC'); ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('series_sermons_series', 0)): ?> + <li data-uk-sort="series"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES_ASC'); ?></a></li> + <li data-uk-sort="series:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES_DESC'); ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('series_sermons_hits', 0)): ?> + <li data-uk-sort="hits"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS_ASC'); ?></a></li> + <li data-uk-sort="hits:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS_DESC'); ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('series_sermons_download_counter', 0)): ?> + <li data-uk-sort="downloads"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_DOWNLOADS_ASC'); ?></a></li> + <li data-uk-sort="downloads:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_DOWNLOADS_DESC'); ?></a></li> + <?php endif; ?> +</ul> + +<div data-uk-check-display class="uk-grid-width-small-1-2 uk-grid-width-medium-1-3 uk-grid-width-large-1-4" data-uk-grid="{controls: '#series-sermons-sort-menu',gutter: 15}"> + <?php foreach ($this->items as $item): ?> + <div data-sermon="<?php echo $this->escape($item->name); ?>" <?php if ($this->params->get('series_sermons_preacher')): ?>data-preacher="<?php echo $this->escape($item->preacher_name); ?>" <?php endif; ?><?php if ($this->params->get('series_sermons_category')): ?> data-category="<?php echo $this->escape($item->category); ?>" <?php endif; ?><?php if ($this->params->get('series_sermons_series')): ?> data-series="<?php echo $this->escape($item->series_name); ?>" <?php endif; ?>data-hits="<?php echo (int) $item->hits; ?>" data-downloads="<?php echo (int) $item->statisticTotal; ?>"><?php $item->params = $this->params; $item->desc = $this->escape($item->description, true, 65); echo JLayoutHelper::render('sermonspanel', $item); ?></div> + <?php endforeach; ?> +</div> diff --git a/site/views/series/tmpl/default_sermons-list.php b/site/views/series/tmpl/default_sermons-list.php new file mode 100644 index 00000000..391d241d --- /dev/null +++ b/site/views/series/tmpl/default_sermons-list.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_sermons-list.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// build the list class +$style = $this->params->get('series_sermons_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +?> +<ul class="uk-list<?php echo $listClass; ?>"> + <?php foreach ($this->items as $item): ?> + <li><?php $item->params = $this->params; $item->desc = $this->escape($item->description, true, 90); echo JLayoutHelper::render('sermonslistitem', $item); ?></li> + <?php endforeach; ?> +</ul> diff --git a/site/views/series/tmpl/default_sermons-table.php b/site/views/series/tmpl/default_sermons-table.php new file mode 100644 index 00000000..720dc71b --- /dev/null +++ b/site/views/series/tmpl/default_sermons-table.php @@ -0,0 +1,109 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_sermons-table.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// Column counter +$column_nr = 1; +// build the table class +$color = $this->params->get('series_sermons_table_color'); +switch ($color) +{ + case 1: + // Red + $tableClass = ' metro-red'; + break; + case 2: + // Purple + $tableClass = ' metro-purple'; + break; + case 3: + // Green + $tableClass = ' metro-green'; + break; + case 4: + // Dark Blue + $tableClass = ' metro-blue'; + break; + case 6: + // Uikit style + $tableClass = ' uk-table'; + break; + case 7: + // Custom Style + $tableClass = ' series-sermons-table'; + break; + default: + // Light Blue and other + $tableClass = ''; + break; +} + +?> +<br /> +<table class="footable<?php echo $tableClass; ?>" data-page-size="100"> + <thead> + <tr> + <th data-toggle="true"><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME'); ?></th> + <?php if ($this->params->get('series_sermons_desc')): ?> + <th data-hide="all"><?php echo JText::_('COM_SERMONDISTRIBUTOR_DESCRIPTION'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('series_sermons_preacher', 0)): ?> + <th data-hide="phone,tablet"><?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHER'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('series_sermons_series', 0)): ?> + <th data-hide="phone,tablet"><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('series_sermons_category', 0)): ?> + <th data-hide="phone,tablet" ><?php echo JText::_('COM_SERMONDISTRIBUTOR_CATEGORY'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('series_sermons_downloads')): ?> + <th><?php echo JText::_('COM_SERMONDISTRIBUTOR_FILES'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('series_sermons_download_counter')): ?> + <th data-hide="phone,tablet" data-type="numeric"><?php echo JText::_('COM_SERMONDISTRIBUTOR_DOWNLOADS'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('series_sermons_hits')): ?> + <th data-hide="phone,tablet" data-type="numeric"><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); $column_nr++; ?></th> + <?php endif; ?> + </tr> + </thead> + <tfoot class="hide-if-no-paging"> + <tr> + <td colspan="<?php echo $column_nr; ?>"> + <div class="pagination pagination-centered"></div> + </td> + </tr> + </tfoot> + <tbody> + <?php foreach ($this->items as $item): ?> + <tr><?php $item->params = $this->params; echo JLayoutHelper::render('sermonsrow', $item); ?></tr> + <?php endforeach; ?> + </tbody> +</table> + +<script> +// page loading pause +jQuery(window).load(function() { + // do some stuff once page is loaded + jQuery('.footable').footable(); +}); +</script> diff --git a/site/views/series/tmpl/index.html b/site/views/series/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/views/series/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/views/series/view.html.php b/site/views/series/view.html.php new file mode 100644 index 00000000..216445d9 --- /dev/null +++ b/site/views/series/view.html.php @@ -0,0 +1,302 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Sermondistributor View class for the Series + */ +class SermondistributorViewSeries extends JViewLegacy +{ + // Overwriting JView display method + function display($tpl = null) + { + // get combined params of both component and menu + $this->app = JFactory::getApplication(); + $this->params = $this->app->getParams(); + $this->menu = $this->app->getMenu()->getActive(); + // get the user object + $this->user = JFactory::getUser(); + // [3032] Initialise variables. + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + $this->series = $this->get('Series'); + $this->numberdownloads = $this->get('NumberDownloads'); + $this->numbersermons = $this->get('NumberSermons'); + + // [3050] Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseWarning(500, implode("\n", $errors)); + return false; + } + // add a hit to the series + if ($this->hit($this->series->id)) + { + $this->series->hits++; + } + // set some total defaults + $this->sermonTotal = count($this->numbersermons); + $this->downloadTotal = 0; + if (isset($this->numberdownloads) && SermondistributorHelper::checkArray($this->numberdownloads)) + { + foreach ($this->numberdownloads as $download) + { + $this->downloadTotal += $download->counter; + } + } + // set the FooTable style + $style = $this->params->get('series_sermons_table_color', 0); + if (5 == $style) + { + $this->fooTableStyle = 1; + } + elseif ($style <= 4) + { + $this->fooTableStyle = 0; + } + else + { + $this->fooTableStyle = 2; + } + + // [3067] Set the toolbar + $this->addToolBar(); + + // [3069] set the document + $this->_prepareDocument(); + + parent::display($tpl); + } + + /** + * Increment the hit counter for the series. + * + * @param integer $pk Primary key of the series to increment. + * + * @return boolean True if successful; + */ + public function hit($pk = 0) + { + if ($pk) + { + $db = JFactory::getDbo(); + $query = $db->getQuery(true); + + // Fields to update. + $fields = array( + $db->quoteName('hits') . ' = '.$db->quoteName('hits').' + 1' + ); + + // Conditions for which records should be updated. + $conditions = array( + $db->quoteName('id') . ' = ' . $pk + ); + + $query->update($db->quoteName('#__sermondistributor_series'))->set($fields)->where($conditions); + + $db->setQuery($query); + return $db->execute(); + } + return false; + } + + /** + * Prepares the document + */ + protected function _prepareDocument() + { + + // [3419] always make sure jquery is loaded. + JHtml::_('jquery.framework'); + // [3421] Load the header checker class. + require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php' ); + // [3423] Initialize the header checker. + $HeaderCheck = new HeaderCheck; + + // [3428] Load uikit options. + $uikit = $this->params->get('uikit_load'); + // [3430] Set script size. + $size = $this->params->get('uikit_min'); + // [3432] Set css style. + $style = $this->params->get('uikit_style'); + + // [3435] The uikit css. + if ((!$HeaderCheck->css_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) + { + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/uikit/css/uikit'.$style.$size.'.css'); + } + // [3440] The uikit js. + if ((!$HeaderCheck->js_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) + { + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/uikit/js/uikit'.$size.'.js'); + } + + // [3449] Load the script to find all uikit components needed. + if ($uikit != 2) + { + // [3452] Set the default uikit components in this view. + $uikitComp = array(); + $uikitComp[] = 'data-uk-grid'; + + // [3461] Get field uikit components needed in this view. + $uikitFieldComp = $this->get('UikitComp'); + if (isset($uikitFieldComp) && SermondistributorHelper::checkArray($uikitFieldComp)) + { + if (isset($uikitComp) && SermondistributorHelper::checkArray($uikitComp)) + { + $uikitComp = array_merge($uikitComp, $uikitFieldComp); + $uikitComp = array_unique($uikitComp); + } + else + { + $uikitComp = $uikitFieldComp; + } + } + } + + // [3477] Load the needed uikit components in this view. + if ($uikit != 2 && isset($uikitComp) && SermondistributorHelper::checkArray($uikitComp)) + { + // [3480] load just in case. + jimport('joomla.filesystem.file'); + // [3482] loading... + foreach ($uikitComp as $class) + { + foreach (SermondistributorHelper::$uk_components[$class] as $name) + { + // [3487] check if the CSS file exists. + if (JFile::exists(JPATH_ROOT.'/media/com_sermondistributor/uikit/css/components/'.$name.$style.$size.'.css')) + { + // [3490] load the css. + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/uikit/css/components/'.$name.$style.$size.'.css'); + } + // [3493] check if the JavaScript file exists. + if (JFile::exists(JPATH_ROOT.'/media/com_sermondistributor/uikit/js/components/'.$name.$size.'.js')) + { + // [3496] load the js. + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/uikit/js/components/'.$name.$size.'.js'); + } + } + } + } + + // [6480] Add the CSS for Footable. + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css'); + + // [6482] Use the Metro Style + if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle) + { + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css'); + } + // [6487] Use the Legacy Style. + elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle) + { + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css'); + } + + // [6492] Add the JavaScript for Footable + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.paginate.js'); + // [3326] load the meta description + if (isset($this->series->metadesc) && $this->series->metadesc) + { + $this->document->setDescription($this->series->metadesc); + } + elseif ($this->params->get('menu-meta_description')) + { + $this->document->setDescription($this->params->get('menu-meta_description')); + } + // [3335] load the key words if set + if (isset($this->series->metakey) && $this->series->metakey) + { + $this->document->setMetadata('keywords', $this->series->metakey); + } + elseif ($this->params->get('menu-meta_keywords')) + { + $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); + } + // [3344] check the robot params + if (isset($this->series->robots) && $this->series->robots) + { + $this->document->setMetadata('robots', $this->series->robots); + } + elseif ($this->params->get('robots')) + { + $this->document->setMetadata('robots', $this->params->get('robots')); + } + // [3353] check if autor is to be set + if (isset($this->series->created_by) && $this->params->get('MetaAuthor') == '1') + { + $this->document->setMetaData('author', $this->series->created_by); + } + // [3358] check if metadata is available + if (isset($this->series->metadata) && $this->series->metadata) + { + $mdata = json_decode($this->series->metadata,true); + foreach ($mdata as $k => $v) + { + if ($v) + { + $this->document->setMetadata($k, $v); + } + } + } + // add the document default css file + $this->document->addStyleSheet(JURI::root(true) .'/components/com_sermondistributor/assets/css/series.css'); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + // adding the joomla toolbar to the front + JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php'); + + // set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('series'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + // now initiate the toolbar + $this->toolbar = JToolbar::getInstance(); + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var, $sorten = false, $length = 40) + { + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset, $sorten, $length); + } +} diff --git a/site/views/serieslist/index.html b/site/views/serieslist/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/views/serieslist/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/views/serieslist/tmpl/default.php b/site/views/serieslist/tmpl/default.php new file mode 100644 index 00000000..d39f99f3 --- /dev/null +++ b/site/views/serieslist/tmpl/default.php @@ -0,0 +1,55 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// Set the heading of the page +$heading = ($this->params->get('page_heading')) ? $this->params->get('page_heading'):(isset($this->menu->title)) ? $this->menu->title:''; + +?> + <?php if ($this->params->get('show_page_heading')): ?> + <h1 class="uk-text-primary"><?php echo $heading; ?></h1> +<?php endif; ?> +<?php if ($this->items): ?> + <?php if ($this->params->get('list_series_display') == 1) : ?> + <?php echo $this->loadTemplate('series-table'); ?> + <?php elseif ($this->params->get('list_series_display') == 2) : ?> + <?php echo $this->loadTemplate('series-grid'); ?> + <?php else: ?> + <?php echo $this->loadTemplate('series-list'); ?> + <?php endif; ?> +<?php else: ?> + <div class="uk-alert uk-alert-warning" data-uk-alert> + <a href="" class="uk-alert-close uk-close"></a> + <p><?php echo JText::_('COM_SERMONDISTRIBUTOR_NO_SERIES_WERE_FOUND'); ?></p> + </div> +<?php endif; ?> + +<?php if (isset($this->items) && sermondistributorHelper::checkArray($this->items) && count($this->items) > 4): ?> +<form name="adminForm" method="post"> + <div class="pagination"> + <?php if ($this->params->def('show_pagination_results', 1)) : ?> + <p class="counter pull-right"> <?php echo $this->pagination->getPagesCounter(); ?> <?php echo $this->pagination->getLimitBox(); ?></p> + <?php endif; ?> + <?php echo $this->pagination->getPagesLinks(); ?> + </div> +</form> +<?php endif; ?> diff --git a/site/views/serieslist/tmpl/default.xml b/site/views/serieslist/tmpl/default.xml new file mode 100644 index 00000000..3bcbf86c --- /dev/null +++ b/site/views/serieslist/tmpl/default.xml @@ -0,0 +1,149 @@ +<?xml version="1.0" encoding="utf-8" ?> +<metadata> + <layout title="COM_SERMONDISTRIBUTOR_MENU_SERIESLIST_TITLE" option="COM_SERMONDISTRIBUTOR_MENU_SERIESLIST_OPTION"> + <message> + <![CDATA[COM_SERMONDISTRIBUTOR_MENU_SERIESLIST_DESC]]> + </message> + </layout> + <!-- [1729] Adding page parameters --> + <fields name="params"> + <fieldset name="basic" label="COM_SERMONDISTRIBUTOR"> + <!-- [11246] List_series_display Field. Type: Radio. (joomla) --> + <field + type="radio" + name="list_series_display" + label="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_DISPLAY_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_DISPLAY_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_TABLE</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_GRID</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_LIST</option> + </field> + <!-- [11246] List_series_list_style Field. Type: List. (joomla) --> + <field + type="list" + name="list_series_list_style" + label="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_LIST_STYLE_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_LIST_STYLE_DESCRIPTION" + class="list_class" + multiple="false" + filter="string" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_PLAIN</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_LINES</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_STRIPED</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option> + </field> + <!-- [11246] List_series_table_color Field. Type: List. (joomla) --> + <field + type="list" + name="list_series_table_color" + label="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_TABLE_COLOR_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_TABLE_COLOR_DESCRIPTION" + class="list_class" + multiple="false" + filter="string" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_BLUE</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_RED</option> + <option value="2"> + COM_SERMONDISTRIBUTOR_CONFIG_PURPLE</option> + <option value="3"> + COM_SERMONDISTRIBUTOR_CONFIG_GREEN</option> + <option value="4"> + COM_SERMONDISTRIBUTOR_CONFIG_DARK_BLUE</option> + <option value="5"> + COM_SERMONDISTRIBUTOR_CONFIG_LEGACY</option> + <option value="6"> + COM_SERMONDISTRIBUTOR_CONFIG_UIKIT</option> + <option value="7"> + COM_SERMONDISTRIBUTOR_CONFIG_CUSTOM</option> + <option value="8"> + COM_SERMONDISTRIBUTOR_CONFIG_NONE</option> + </field> + <!-- [11246] List_series_icon Field. Type: Radio. (joomla) --> + <field + type="radio" + name="list_series_icon" + label="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_ICON_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_ICON_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] List_series_desc Field. Type: Radio. (joomla) --> + <field + type="radio" + name="list_series_desc" + label="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_DESC_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_DESC_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] List_series_sermon_count Field. Type: Radio. (joomla) --> + <field + type="radio" + name="list_series_sermon_count" + label="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_SERMON_COUNT_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_SERMON_COUNT_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + <!-- [11246] List_series_hits Field. Type: Radio. (joomla) --> + <field + type="radio" + name="list_series_hits" + label="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_HITS_LABEL" + description="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_HITS_DESCRIPTION" + class="btn-group btn-group-yesno" + default=""> + <!-- [11318] [1752] Global & Option Set. --> + <option value=""> + JGLOBAL_USE_GLOBAL</option> + <option value="1"> + COM_SERMONDISTRIBUTOR_CONFIG_YES</option> + <option value="0"> + COM_SERMONDISTRIBUTOR_CONFIG_NO</option> + </field> + </fieldset> + </fields> +</metadata> \ No newline at end of file diff --git a/site/views/serieslist/tmpl/default_series-grid.php b/site/views/serieslist/tmpl/default_series-grid.php new file mode 100644 index 00000000..1d56a851 --- /dev/null +++ b/site/views/serieslist/tmpl/default_series-grid.php @@ -0,0 +1,41 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_series-grid.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +<ul id="series-sort-menu" class="uk-subnav"> + <li data-uk-sort="series"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME_ASC'); ?></a></li> + <li data-uk-sort="series:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME_DESC'); ?></a></li> + <?php if ($this->params->get('list_series_hits')): ?> + <li data-uk-sort="hits"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS_ASC'); ?></a></li> + <li data-uk-sort="hits:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS_DESC'); ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('list_series_sermon_count')): ?> + <li data-uk-sort="sermons"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMONS_COUNT_ASC'); ?></a></li> + <li data-uk-sort="sermons:desc"><a href=""><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMONS_COUNT_DESC'); ?></a></li> + <?php endif; ?> +</ul> +<div data-uk-check-display class="uk-grid-width-small-1-2 uk-grid-width-medium-1-3 uk-grid-width-large-1-4" data-uk-grid="{controls: '#series-sort-menu',gutter: 15}"> + <?php foreach ($this->items as $item): ?> + <div data-series="<?php echo $this->escape($item->name); ?>" data-hits="<?php echo (int) $item->hits; ?>" data-sermons="<?php echo count($item->idSeriesSermonB); ?>"><?php $item->params = $this->params; $item->desc = $this->escape($item->description, true, 65); echo JLayoutHelper::render('seriespanel', $item); ?></div> + <?php endforeach; ?> +</div> diff --git a/site/views/serieslist/tmpl/default_series-list.php b/site/views/serieslist/tmpl/default_series-list.php new file mode 100644 index 00000000..517feff5 --- /dev/null +++ b/site/views/serieslist/tmpl/default_series-list.php @@ -0,0 +1,51 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_series-list.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// build the list class +$style = $this->params->get('list_series_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +?> +<ul class="uk-list<?php echo $listClass; ?>"> + <?php foreach ($this->items as $item): ?> + <li><?php $item->params = $this->params; $item->desc = $this->escape($item->description, true, 140); echo JLayoutHelper::render('serieslistitem', $item); ?></li> + <?php endforeach; ?> +</ul> diff --git a/site/views/serieslist/tmpl/default_series-table.php b/site/views/serieslist/tmpl/default_series-table.php new file mode 100644 index 00000000..fac63ada --- /dev/null +++ b/site/views/serieslist/tmpl/default_series-table.php @@ -0,0 +1,96 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_series-table.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// Column counter +$column_nr = 1; +// build the table class +$color = $this->params->get('list_series_table_color'); +switch ($color) +{ + case 1: + // Red + $tableClass = ' metro-red'; + break; + case 2: + // Purple + $tableClass = ' metro-purple'; + break; + case 3: + // Green + $tableClass = ' metro-green'; + break; + case 4: + // Dark Blue + $tableClass = ' metro-blue'; + break; + case 6: + // Uikit style + $tableClass = ' uk-table'; + break; + case 7: + // Custom Style + $tableClass = ' list-series-table'; + break; + default: + // Light Blue and other + $tableClass = ''; + break; +} + +?> +<table class="footable<?php echo $tableClass; ?>" data-page-size="100"> + <thead> + <tr> + <th data-toggle="true"><?php echo JText::_('COM_SERMONDISTRIBUTOR_NAME'); ?></th> + <?php if ($this->params->get('list_series_desc')): ?> + <th data-hide="all"><?php echo JText::_('COM_SERMONDISTRIBUTOR_DESCRIPTION'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('list_series_hits')): ?> + <th data-type="numeric"><?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); $column_nr++; ?></th> + <?php endif; ?> + <?php if ($this->params->get('list_series_sermon_count')): ?> + <th data-type="numeric" data-hide="phone,tablet"><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_COUNT'); $column_nr++;?></th> + <?php endif; ?> + </tr> + </thead> + <tfoot class="hide-if-no-paging"> + <tr> + <td colspan="<?php echo $column_nr; ?>"> + <div class="pagination pagination-centered"></div> + </td> + </tr> + </tfoot> + <tbody> + <?php foreach ($this->items as $item): ?> + <tr><?php $item->params = $this->params; echo JLayoutHelper::render('seriesrow', $item); ?></tr> + <?php endforeach; ?> + </tbody> +</table> + +<script> +// page loading pause +jQuery(window).load(function() { + // do some stuff once page is loaded + jQuery('.footable').footable(); +}); +</script> diff --git a/site/views/serieslist/tmpl/index.html b/site/views/serieslist/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/views/serieslist/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/views/serieslist/view.html.php b/site/views/serieslist/view.html.php new file mode 100644 index 00000000..2b14d400 --- /dev/null +++ b/site/views/serieslist/view.html.php @@ -0,0 +1,232 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Sermondistributor View class for the Serieslist + */ +class SermondistributorViewSerieslist extends JViewLegacy +{ + // Overwriting JView display method + function display($tpl = null) + { + // get combined params of both component and menu + $this->app = JFactory::getApplication(); + $this->params = $this->app->getParams(); + $this->menu = $this->app->getMenu()->getActive(); + // get the user object + $this->user = JFactory::getUser(); + // [3032] Initialise variables. + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + + // [3050] Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseWarning(500, implode("\n", $errors)); + return false; + } + // do a quick build of all the links + if ($this->items) + { + foreach ($this->items as $nr => &$item) + { + $item->link = JRoute::_(SermondistributorHelperRoute::getSeriesRoute($item->slug)); + } + } + // set the FooTable style + $style = $this->params->get('list_series_table_color', 0); + if (5 == $style) + { + $this->fooTableStyle = 1; + } + elseif ($style <= 4) + { + $this->fooTableStyle = 0; + } + else + { + $this->fooTableStyle = 2; + } + + // [3067] Set the toolbar + $this->addToolBar(); + + // [3069] set the document + $this->_prepareDocument(); + + parent::display($tpl); + } + + /** + * Prepares the document + */ + protected function _prepareDocument() + { + + // [3419] always make sure jquery is loaded. + JHtml::_('jquery.framework'); + // [3421] Load the header checker class. + require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php' ); + // [3423] Initialize the header checker. + $HeaderCheck = new HeaderCheck; + + // [3428] Load uikit options. + $uikit = $this->params->get('uikit_load'); + // [3430] Set script size. + $size = $this->params->get('uikit_min'); + // [3432] Set css style. + $style = $this->params->get('uikit_style'); + + // [3435] The uikit css. + if ((!$HeaderCheck->css_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) + { + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/uikit/css/uikit'.$style.$size.'.css'); + } + // [3440] The uikit js. + if ((!$HeaderCheck->js_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) + { + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/uikit/js/uikit'.$size.'.js'); + } + + // [3449] Load the script to find all uikit components needed. + if ($uikit != 2) + { + // [3452] Set the default uikit components in this view. + $uikitComp = array(); + $uikitComp[] = 'data-uk-tooltip'; + $uikitComp[] = 'data-uk-grid'; + + // [3461] Get field uikit components needed in this view. + $uikitFieldComp = $this->get('UikitComp'); + if (isset($uikitFieldComp) && SermondistributorHelper::checkArray($uikitFieldComp)) + { + if (isset($uikitComp) && SermondistributorHelper::checkArray($uikitComp)) + { + $uikitComp = array_merge($uikitComp, $uikitFieldComp); + $uikitComp = array_unique($uikitComp); + } + else + { + $uikitComp = $uikitFieldComp; + } + } + } + + // [3477] Load the needed uikit components in this view. + if ($uikit != 2 && isset($uikitComp) && SermondistributorHelper::checkArray($uikitComp)) + { + // [3480] load just in case. + jimport('joomla.filesystem.file'); + // [3482] loading... + foreach ($uikitComp as $class) + { + foreach (SermondistributorHelper::$uk_components[$class] as $name) + { + // [3487] check if the CSS file exists. + if (JFile::exists(JPATH_ROOT.'/media/com_sermondistributor/uikit/css/components/'.$name.$style.$size.'.css')) + { + // [3490] load the css. + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/uikit/css/components/'.$name.$style.$size.'.css'); + } + // [3493] check if the JavaScript file exists. + if (JFile::exists(JPATH_ROOT.'/media/com_sermondistributor/uikit/js/components/'.$name.$size.'.js')) + { + // [3496] load the js. + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/uikit/js/components/'.$name.$size.'.js'); + } + } + } + } + + // [6480] Add the CSS for Footable. + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css'); + + // [6482] Use the Metro Style + if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle) + { + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css'); + } + // [6487] Use the Legacy Style. + elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle) + { + $this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css'); + } + + // [6492] Add the JavaScript for Footable + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js'); + $this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.paginate.js'); + // [3377] load the meta description + if ($this->params->get('menu-meta_description')) + { + $this->document->setDescription($this->params->get('menu-meta_description')); + } + // [3382] load the key words if set + if ($this->params->get('menu-meta_keywords')) + { + $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); + } + // [3387] check the robot params + if ($this->params->get('robots')) + { + $this->document->setMetadata('robots', $this->params->get('robots')); + } + // add the document default css file + $this->document->addStyleSheet(JURI::root(true) .'/components/com_sermondistributor/assets/css/serieslist.css'); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + // adding the joomla toolbar to the front + JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php'); + + // set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('serieslist'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + // now initiate the toolbar + $this->toolbar = JToolbar::getInstance(); + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var, $sorten = false, $length = 40) + { + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset, $sorten, $length); + } +} diff --git a/site/views/sermon/index.html b/site/views/sermon/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/views/sermon/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/views/sermon/tmpl/default.php b/site/views/sermon/tmpl/default.php new file mode 100644 index 00000000..db5deac3 --- /dev/null +++ b/site/views/sermon/tmpl/default.php @@ -0,0 +1,66 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + +<?php if ($this->item): ?> + <?php if ($this->params->get('sermon_display') == 1) : ?> + <div class="uk-grid" data-uk-grid-match="{target:'.uk-panel'}"><?php echo $this->loadTemplate('sermonpanel'); ?></div> + <?php elseif ($this->params->get('sermon_display') == 2) : ?> + <?php echo $this->loadTemplate('sermonbox'); ?> + <?php else: ?> + <?php echo $this->loadTemplate('sermonbig'); ?> + <?php endif; ?> + <?php if (isset($this->item->scripture) && SermondistributorHelper::checkString($this->item->scripture)): ?> + <div><?php echo $this->item->scripture; ?></div> + <?php endif; ?> + <script> + function sermonCounter(key,filename) + { + var getUrl = "index.php?option=com_sermondistributor&task=ajax.countDownload&format=json"; + if (key.length > 0 && filename.length > 0) + { + var request = 'token=<?php echo JSession::getFormToken(); ?>&key='+key+'&filename='+filename; + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'jsonp', + data: request, + jsonp: 'callback' + }); + } + soundManager.setup({ + url: '<?php echo JURI::root(true); ?>/media/com_sermondistributor/soundmanager/swf', + flashVersion: 9, + onready: function() { + // Ready to use; soundManager.createSound() etc. can now be called. + } + }); + </script> +<?php else: ?> + <div class="uk-alert uk-alert-warning" data-uk-alert> + <a href="" class="uk-alert-close uk-close"></a> + <p><?php echo JText::_('COM_SERMONDISTRIBUTOR_NO_SERMON_WAS_FOUND'); ?></p> + </div> +<?php endif; ?> <?php echo $this->toolbar->render(); ?> diff --git a/site/views/sermon/tmpl/default_sermonbig.php b/site/views/sermon/tmpl/default_sermonbig.php new file mode 100644 index 00000000..72715b63 --- /dev/null +++ b/site/views/sermon/tmpl/default_sermonbig.php @@ -0,0 +1,141 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_sermonbig.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// build the list class +$style = $this->params->get('sermon_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +// build the contrast text option +$contrast = $this->params->get('sermon_box_contrast'); +$contrastClass = ''; +if ($contrast) +{ + $contrastClass = 'uk-text-contrast'; +} + +// set Panal Size +$mediumMain = '1-4'; +if (($this->params->get('sermon_download_counter') || $this->params->get('sermon_preacher') || $this->params->get('sermon_series') || $this->params->get('sermon_category') || $this->params->get('sermon_downloads')) + && ($this->params->get('sermon_desc') && ($this->item->description || $this->item->short_description))) +{ + $mediumDesc = '2-4'; + $mediumMid = '1-4'; +} +elseif (($this->params->get('sermon_download_counter') || $this->params->get('sermon_preacher') || $this->params->get('sermon_series') || $this->params->get('sermon_category') || $this->params->get('sermon_downloads')) + || ($this->params->get('sermon_desc') && ($this->item->description || $this->item->short_description))) +{ + $mediumDesc = '3-4'; + $mediumMid = '3-4'; +} +elseif (!$this->params->get('sermon_icon')) +{ + $mediumMain = '1-1'; +} +// set params to item +$this->item->params = $this->params; + +?> +<div class="uk-block"> + <div class="uk-container"> + <h3 class="<?php echo $contrastClass; ?>"><?php echo $this->item->name; ?></h3> + <div class="uk-grid" data-uk-grid-margin="{target:'.uk-panel'}"> + <div class="uk-width-medium-<?php echo $mediumMain; ?>"> + <div class="uk-panel"> + <?php if ($this->params->get('sermon_hits')): ?> + <?php + $hits_state = ($this->item->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-panel-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $this->item->hits; ?> + </div> + <?php endif ;?> + <?php if ($this->params->get('sermon_icon')): ?> + <?php $this->item->icon = ($this->item->icon) ? $this->item->icon : $this->params->get('sermon_default_icon'); ?> + <?php if ($this->item->icon): ?> + <img class="uk-thumbnail uk-thumbnail-expand" src="<?php echo $this->item->icon; ?>" alt="<?php echo $this->item->name; ?>"> + <?php endif; ?> + <?php endif; ?> + </div> + </div> + <?php if ($this->params->get('sermon_download_counter') || $this->params->get('sermon_preacher') || $this->params->get('sermon_series') || $this->params->get('sermon_category') || $this->params->get('sermon_downloads')): ?> + <div class="uk-width-medium-<?php echo $mediumMid; ?>"> + <div class="uk-panel"> + <ul class="uk-list<?php echo $listClass; ?>"> + <?php if ($this->params->get('sermon_download_counter')): ?> + <li class="<?php echo $contrastClass; ?>"><?php echo JText::_('COM_SERMONDISTRIBUTOR_TOTAL_DOWNLOADS'); ?>: <?php echo $this->item->statisticTotal; ?></li> + <?php endif; ?> + <?php if ($this->params->get('sermon_preacher') && $this->item->preacher): ?> + <li class="<?php echo $contrastClass; ?>"><?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHER'); ?>: <a class="<?php echo $contrastClass; ?>" href="<?php echo $this->item->preacher_link; ?>" data-uk-tooltip title="<?php echo $this->item->preacher_name; ?>"><?php echo $this->item->preacher_name; ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('sermon_series') && $this->item->series): ?> + <li class="<?php echo $contrastClass; ?>"><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES'); ?>: <a class="<?php echo $contrastClass; ?>" href="<?php echo $this->item->series_link; ?>" data-uk-tooltip title="<?php echo $this->item->series_name; ?>"><?php echo $this->item->series_name; ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('sermon_category') && $this->item->category): ?> + <li class="<?php echo $contrastClass; ?>"><?php echo JText::_('COM_SERMONDISTRIBUTOR_CATEGORY'); ?>: <a class="<?php echo $contrastClass; ?>" href="<?php echo $this->item->category_link; ?>" data-uk-tooltip title="<?php echo $this->item->category; ?>"><?php echo $this->item->category; ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('sermon_downloads')): ?> + <li><?php echo JLayoutHelper::render('downloadsermonbutton', $this->item); ?></li> + <?php endif; ?> + <?php if ($this->params->get('add_to_dropbox') && isset($this->item->dropbox_buttons)): ?> + <li><?php echo JLayoutHelper::render('addtodropboxbutton', $this->item); ?></li> + <?php endif; ?> + <?php echo JLayoutHelper::render('mediaplayer', $this->item); ?> + </ul> + </div> + </div> + <?php endif; ?> + <?php if ($this->params->get('sermon_desc') && ($this->item->description || $this->item->short_description)): ?> + <div class="uk-width-medium-<?php echo $mediumDesc; ?>"> + <div class="uk-panel <?php echo $contrastClass; ?>"> + <?php if ($this->item->description): ?> + <?php echo $this->item->description; ?> + <?php elseif ($this->item->short_description): ?> + <?php echo $this->item->short_description; ?> + <?php endif; ?> + </div> + </div> + <?php endif; ?> + </div> + </div> +</div> diff --git a/site/views/sermon/tmpl/default_sermonbox.php b/site/views/sermon/tmpl/default_sermonbox.php new file mode 100644 index 00000000..1d290eb1 --- /dev/null +++ b/site/views/sermon/tmpl/default_sermonbox.php @@ -0,0 +1,141 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_sermonbox.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// build the list class +$style = $this->params->get('sermon_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +// build the contrast text option +$contrast = $this->params->get('sermon_box_contrast'); +$contrastClass = ''; +if ($contrast) +{ + $contrastClass = 'uk-text-contrast'; +} + +// set Panal Size +$mediumMain = '1-4'; +if (($this->params->get('sermon_download_counter') || $this->params->get('sermon_preacher') || $this->params->get('sermon_series') || $this->params->get('sermon_category') || $this->params->get('sermon_downloads')) + && ($this->params->get('sermon_desc') && ($this->item->description || $this->item->short_description))) +{ + $mediumDesc = '2-4'; + $mediumMid = '1-4'; +} +elseif (($this->params->get('sermon_download_counter') || $this->params->get('sermon_preacher') || $this->params->get('sermon_series') || $this->params->get('sermon_category') || $this->params->get('sermon_downloads')) + || ($this->params->get('sermon_desc') && ($this->item->description || $this->item->short_description))) +{ + $mediumDesc = '3-4'; + $mediumMid = '3-4'; +} +elseif (!$this->params->get('sermon_icon')) +{ + $mediumMain = '1-1'; +} +// set params to item +$this->item->params = $this->params; + +?> +<div class="uk-block uk-block-primary"> + <div class="uk-container"> + <h3 class="<?php echo $contrastClass; ?>"><?php echo $this->item->name; ?></h3> + <div class="uk-grid" data-uk-grid-margin="{target:'.uk-panel'}"> + <div class="uk-width-medium-<?php echo $mediumMain; ?>"> + <div class="uk-panel"> + <?php if ($this->params->get('sermon_hits')): ?> + <?php + $hits_state = ($this->item->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-panel-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $this->item->hits; ?> + </div> + <?php endif ;?> + <?php if ($this->params->get('sermon_icon')): ?> + <?php $this->item->icon = ($this->item->icon) ? $this->item->icon : $this->params->get('sermon_default_icon'); ?> + <?php if ($this->item->icon): ?> + <img class="uk-thumbnail uk-thumbnail-expand" src="<?php echo $this->item->icon; ?>" alt="<?php echo $this->item->name; ?>"> + <?php endif; ?> + <?php endif; ?> + </div> + </div> + <?php if ($this->params->get('sermon_download_counter') || $this->params->get('sermon_preacher') || $this->params->get('sermon_series') || $this->params->get('sermon_category') || $this->params->get('sermon_downloads')): ?> + <div class="uk-width-medium-<?php echo $mediumMid; ?>"> + <div class="uk-panel"> + <ul class="uk-list<?php echo $listClass; ?>"> + <?php if ($this->params->get('sermon_download_counter')): ?> + <li class="<?php echo $contrastClass; ?>"><?php echo JText::_('COM_SERMONDISTRIBUTOR_TOTAL_DOWNLOADS'); ?>: <?php echo $this->item->statisticTotal; ?></li> + <?php endif; ?> + <?php if ($this->params->get('sermon_preacher') && $this->item->preacher): ?> + <li class="<?php echo $contrastClass; ?>"><?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHER'); ?>: <a class="<?php echo $contrastClass; ?>" href="<?php echo $this->item->preacher_link; ?>" data-uk-tooltip title="<?php echo $this->item->preacher_name; ?>"><?php echo $this->item->preacher_name; ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('sermon_series') && $this->item->series): ?> + <li class="<?php echo $contrastClass; ?>"><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES'); ?>: <a class="<?php echo $contrastClass; ?>" href="<?php echo $this->item->series_link; ?>" data-uk-tooltip title="<?php echo $this->item->series_name; ?>"><?php echo $this->item->series_name; ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('sermon_category') && $this->item->category): ?> + <li class="<?php echo $contrastClass; ?>"><?php echo JText::_('COM_SERMONDISTRIBUTOR_CATEGORY'); ?>: <a class="<?php echo $contrastClass; ?>" href="<?php echo $this->item->category_link; ?>" data-uk-tooltip title="<?php echo $this->item->category; ?>"><?php echo $this->item->category; ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('sermon_downloads')): ?> + <li><?php echo JLayoutHelper::render('downloadsermonbutton', $this->item); ?></li> + <?php endif; ?> + <?php if ($this->params->get('add_to_dropbox') && isset($this->item->dropbox_buttons)): ?> + <li><?php echo JLayoutHelper::render('addtodropboxbutton', $this->item); ?></li> + <?php endif; ?> + <?php echo JLayoutHelper::render('mediaplayer', $this->item); ?> + </ul> + </div> + </div> + <?php endif; ?> + <?php if ($this->params->get('sermon_desc') && ($this->item->description || $this->item->short_description)): ?> + <div class="uk-width-medium-<?php echo $mediumDesc; ?>"> + <div class="uk-panel <?php echo $contrastClass; ?>"> + <?php if ($this->item->description): ?> + <?php echo $this->item->description; ?> + <?php elseif ($this->item->short_description): ?> + <?php echo $this->item->short_description; ?> + <?php endif; ?> + </div> + </div> + <?php endif; ?> + </div> + </div> +</div> diff --git a/site/views/sermon/tmpl/default_sermonpanel.php b/site/views/sermon/tmpl/default_sermonpanel.php new file mode 100644 index 00000000..70e31806 --- /dev/null +++ b/site/views/sermon/tmpl/default_sermonpanel.php @@ -0,0 +1,127 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage default_sermonpanel.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// build the list class +$style = $this->params->get('sermon_list_style'); +switch ($style) +{ + case 1: + // Lines + $listClass = ' uk-list-line'; + break; + case 2: + // Striped + $listClass = ' uk-list-striped'; + break; + case 3: + // Spaced + $listClass = ' uk-list-space'; + break; + default: + // Plain + $listClass = ''; + break; +} + +// set Panal Size +$mediumMain = '1-4'; +if (($this->params->get('sermon_download_counter') || $this->params->get('sermon_preacher') || $this->params->get('sermon_series') || $this->params->get('sermon_category') || $this->params->get('sermon_downloads')) + && ($this->params->get('sermon_desc') && ($this->item->description || $this->item->short_description))) +{ + $mediumDesc = '2-4'; + $mediumMid = '1-4'; +} +elseif (($this->params->get('sermon_download_counter') || $this->params->get('sermon_preacher') || $this->params->get('sermon_series') || $this->params->get('sermon_category') || $this->params->get('sermon_downloads')) + || ($this->params->get('sermon_desc') && ($this->item->description || $this->item->short_description))) +{ + $mediumDesc = '3-4'; + $mediumMid = '3-4'; +} +elseif (!$this->params->get('sermon_icon')) +{ + $mediumMain = '1-1'; +} +// set params to item +$this->item->params = $this->params; + +?> +<div class="uk-width-medium-<?php echo $mediumMain; ?>"> + <div class="uk-panel uk-panel-box"> + <?php if ($this->params->get('sermon_hits')): ?> + <?php + $hits_state = ($this->item->hits > 0) ? true:false; + $badge_class = ($hits_state) ? 'uk-badge-success':'uk-badge-warning'; + $badge_icon = ($hits_state) ? 'check-circle':'minus-circle'; + ?> + <div class="uk-panel-badge uk-badge <?php echo $badge_class; ?>"> + <i class="uk-icon-<?php echo $badge_icon; ?>"></i> + <?php echo JText::_('COM_SERMONDISTRIBUTOR_HITS'); ?>: <?php echo $this->item->hits; ?> + </div> + <?php endif ;?> + <h3 class="uk-panel-title"><?php echo $this->item->name; ?></h3> + <?php if ($this->params->get('sermon_icon')): ?> + <?php $this->item->icon = ($this->item->icon) ? $this->item->icon : $this->params->get('sermon_default_icon'); ?> + <?php if ($this->item->icon): ?> + <img class="uk-thumbnail uk-thumbnail-expand" src="<?php echo $this->item->icon; ?>" alt="<?php echo $this->item->name; ?>"> + <?php endif; ?> + <?php endif; ?> + </div> +</div> +<?php if ($this->params->get('sermon_download_counter') || $this->params->get('sermon_preacher') || $this->params->get('sermon_series') || $this->params->get('sermon_category') || $this->params->get('sermon_downloads')): ?> + <div class="uk-width-medium-<?php echo $mediumMid; ?>"> + <div class="uk-panel uk-panel-box"> + <ul class="uk-list<?php echo $listClass; ?>"> + <?php if ($this->params->get('sermon_download_counter')): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_TOTAL_DOWNLOADS'); ?>: <?php echo $this->item->statisticTotal; ?></li> + <?php endif; ?> + <?php if ($this->params->get('sermon_preacher') && $this->item->preacher): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_PREACHER'); ?>: <a href="<?php echo $this->item->preacher_link; ?>" data-uk-tooltip title="<?php echo $this->item->preacher_name; ?>"><?php echo $this->item->preacher_name; ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('sermon_series') && $this->item->series): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_SERIES'); ?>: <a href="<?php echo $this->item->series_link; ?>" data-uk-tooltip title="<?php echo $this->item->series_name; ?>"><?php echo $this->item->series_name; ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('sermon_category') && $this->item->category): ?> + <li><?php echo JText::_('COM_SERMONDISTRIBUTOR_CATEGORY'); ?>: <a href="<?php echo $this->item->category_link; ?>" data-uk-tooltip title="<?php echo $this->item->category; ?>"><?php echo $this->item->category; ?></a></li> + <?php endif; ?> + <?php if ($this->params->get('sermon_downloads')): ?> + <li><?php echo JLayoutHelper::render('downloadsermonbutton', $this->item); ?></li> + <?php endif; ?> + <?php if ($this->params->get('add_to_dropbox') && isset($this->item->dropbox_buttons)): ?> + <li><?php echo JLayoutHelper::render('addtodropboxbutton', $this->item); ?></li> + <?php endif; ?> + <?php echo JLayoutHelper::render('mediaplayer', $this->item); ?> + </ul> + </div> + </div> +<?php endif; ?> +<?php if ($this->params->get('sermon_desc') && ($this->item->description || $this->item->short_description)): ?> + <div class="uk-width-medium-<?php echo $mediumDesc; ?>"> + <div class="uk-panel uk-panel-box"> + <?php if ($this->item->description): ?> + <?php echo $this->item->description; ?> + <?php elseif ($this->item->short_description): ?> + <?php echo $this->item->short_description; ?> + <?php endif; ?> + </div> + </div> +<?php endif; ?> diff --git a/site/views/sermon/tmpl/index.html b/site/views/sermon/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/site/views/sermon/tmpl/index.html @@ -0,0 +1 @@ +<html><body bgcolor="#FFFFFF"></body></html> \ No newline at end of file diff --git a/site/views/sermon/view.html.php b/site/views/sermon/view.html.php new file mode 100644 index 00000000..a74fa50a --- /dev/null +++ b/site/views/sermon/view.html.php @@ -0,0 +1,266 @@ +<?php +/*----------------------------------------------------------------------------------| www.vdm.io |----/ + Vast Development Method +/-------------------------------------------------------------------------------------------------------/ + + @version 1.2.9 + @build 30th November, 2015 + @created 22nd October, 2015 + @package Sermon Distributor + @subpackage view.html.php + @author Llewellyn van der Merwe <https://www.vdm.io/> + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ + (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) +.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( +\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) + +/------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Sermondistributor View class for the Sermon + */ +class SermondistributorViewSermon extends JViewLegacy +{ + // Overwriting JView display method + function display($tpl = null) + { + // get combined params of both component and menu + $this->app = JFactory::getApplication(); + $this->params = $this->app->getParams(); + $this->menu = $this->app->getMenu()->getActive(); + // get the user object + $this->user = JFactory::getUser(); + // [3026] Initialise variables. + $this->item = $this->get('Item'); + + // [3050] Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseWarning(500, implode("\n", $errors)); + return false; + } + // add a hit to the sermon + if ($this->hit($this->item->id)) + { + $this->item->hits++; + } + // set view key + $this->item->viewKey = 'sermon'; + + // [3067] Set the toolbar + $this->addToolBar(); + + // [3069] set the document + $this->_prepareDocument(); + + parent::display($tpl); + } + + /** + * Increment the hit counter for the sermon. + * + * @param integer $pk Primary key of the sermon to increment. + * + * @return boolean True if successful; + */ + public function hit($pk = 0) + { + if ($pk) + { + $db = JFactory::getDbo(); + $query = $db->getQuery(true); + + // Fields to update. + $fields = array( + $db->quoteName('hits') . ' = '.$db->quoteName('hits').' + 1' + ); + + // Conditions for which records should be updated. + $conditions = array( + $db->quoteName('id') . ' = ' . $pk + ); + + $query->update($db->quoteName('#__sermondistributor_sermon'))->set($fields)->where($conditions); + + $db->setQuery($query); + return $db->execute(); + } + return false; + } + + /** + * Prepares the document + */ + protected function _prepareDocument() + { + + // [3419] always make sure jquery is loaded. + JHtml::_('jquery.framework'); + // [3421] Load the header checker class. + require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php' ); + // [3423] Initialize the header checker. + $HeaderCheck = new HeaderCheck; + + // [3428] Load uikit options. + $uikit = $this->params->get('uikit_load'); + // [3430] Set script size. + $size = $this->params->get('uikit_min'); + // [3432] Set css style. + $style = $this->params->get('uikit_style'); + + // [3435] The uikit css. + if ((!$HeaderCheck->css_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) + { + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/uikit/css/uikit'.$style.$size.'.css'); + } + // [3440] The uikit js. + if ((!$HeaderCheck->js_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) + { + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/uikit/js/uikit'.$size.'.js'); + } + + // [3449] Load the script to find all uikit components needed. + if ($uikit != 2) + { + // [3452] Set the default uikit components in this view. + $uikitComp = array(); + $uikitComp[] = 'data-uk-tooltip'; + $uikitComp[] = 'data-uk-grid'; + + // [3461] Get field uikit components needed in this view. + $uikitFieldComp = $this->get('UikitComp'); + if (isset($uikitFieldComp) && SermondistributorHelper::checkArray($uikitFieldComp)) + { + if (isset($uikitComp) && SermondistributorHelper::checkArray($uikitComp)) + { + $uikitComp = array_merge($uikitComp, $uikitFieldComp); + $uikitComp = array_unique($uikitComp); + } + else + { + $uikitComp = $uikitFieldComp; + } + } + } + + // [3477] Load the needed uikit components in this view. + if ($uikit != 2 && isset($uikitComp) && SermondistributorHelper::checkArray($uikitComp)) + { + // [3480] load just in case. + jimport('joomla.filesystem.file'); + // [3482] loading... + foreach ($uikitComp as $class) + { + foreach (SermondistributorHelper::$uk_components[$class] as $name) + { + // [3487] check if the CSS file exists. + if (JFile::exists(JPATH_ROOT.'/media/com_sermondistributor/uikit/css/components/'.$name.$style.$size.'.css')) + { + // [3490] load the css. + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/uikit/css/components/'.$name.$style.$size.'.css'); + } + // [3493] check if the JavaScript file exists. + if (JFile::exists(JPATH_ROOT.'/media/com_sermondistributor/uikit/js/components/'.$name.$size.'.js')) + { + // [3496] load the js. + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/uikit/js/components/'.$name.$size.'.js'); + } + } + } + } + // [3326] load the meta description + if (isset($this->item->metadesc) && $this->item->metadesc) + { + $this->document->setDescription($this->item->metadesc); + } + elseif ($this->params->get('menu-meta_description')) + { + $this->document->setDescription($this->params->get('menu-meta_description')); + } + // [3335] load the key words if set + if (isset($this->item->metakey) && $this->item->metakey) + { + $this->document->setMetadata('keywords', $this->item->metakey); + } + elseif ($this->params->get('menu-meta_keywords')) + { + $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); + } + // [3344] check the robot params + if (isset($this->item->robots) && $this->item->robots) + { + $this->document->setMetadata('robots', $this->item->robots); + } + elseif ($this->params->get('robots')) + { + $this->document->setMetadata('robots', $this->params->get('robots')); + } + // [3353] check if autor is to be set + if (isset($this->item->created_by) && $this->params->get('MetaAuthor') == '1') + { + $this->document->setMetaData('author', $this->item->created_by); + } + // [3358] check if metadata is available + if (isset($this->item->metadata) && $this->item->metadata) + { + $mdata = json_decode($this->item->metadata,true); + foreach ($mdata as $k => $v) + { + if ($v) + { + $this->document->setMetadata($k, $v); + } + } + } + // default for sound mananger 2 + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/soundmanager/script/soundmanager2-nodebug-jsmin.js'); + // 360-player + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/soundmanager/demo/360-player/360player.css'); + $this->document->addStyleSheet(JURI::root(true) .'/media/com_sermondistributor/soundmanager/demo/360-player/360player-visualization.css'); + // 360-player + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/soundmanager/demo/360-player/script/berniecode-animator.js'); + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/soundmanager/demo/360-player/script/excanvas.js'); + $this->document->addScript(JURI::root(true) .'/media/com_sermondistributor/soundmanager/demo/360-player/script/360player.js'); + // add the document default css file + $this->document->addStyleSheet(JURI::root(true) .'/components/com_sermondistributor/assets/css/sermon.css'); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + // adding the joomla toolbar to the front + JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php'); + + // set help url for this view if found + $help_url = SermondistributorHelper::getHelpUrl('sermon'); + if (SermondistributorHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_SERMONDISTRIBUTOR_HELP_MANAGER', false, $help_url); + } + // now initiate the toolbar + $this->toolbar = JToolbar::getInstance(); + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var, $sorten = false, $length = 40) + { + // use the helper htmlEscape method instead. + return SermondistributorHelper::htmlEscape($var, $this->_charset, $sorten, $length); + } +}